@agrotools1/at-components 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (553) hide show
  1. package/dist/AGraphicContainer-98a4c8a4.js +109 -0
  2. package/dist/APIKeyMixin-9511e0a5.js +19 -0
  3. package/dist/Analysis-4b1d1fb5.js +31 -0
  4. package/dist/ArcGISCachedService-93e2cb27.js +47 -0
  5. package/dist/ArcGISService-3f8d89c1.js +25 -0
  6. package/dist/AreaMeasurement2D-e0bb230c.js +405 -0
  7. package/dist/AreaMeasurement3D-a9959ecf.js +488 -0
  8. package/dist/AttachmentInfo-601c56e2.js +34 -0
  9. package/dist/AttachmentQuery-3504d550.js +18 -0
  10. package/dist/AttributeStore-b90878e3.js +1707 -0
  11. package/dist/BaseDynamicLayerView2D-b2faf028.js +63 -0
  12. package/dist/BindType-5e76c8e1.js +7 -0
  13. package/dist/BingMapsLayer-5d79fe2b.js +112 -0
  14. package/dist/Bitmap-f775c851.js +128 -0
  15. package/dist/BitmapContainer-af5942b8.js +23 -0
  16. package/dist/BlendLayer-a792edf6.js +13 -0
  17. package/dist/BoundsStore-789624df.js +63 -0
  18. package/dist/BufferObject-cbd0168e.js +100 -0
  19. package/dist/BufferView-004ad517.js +683 -0
  20. package/dist/BuildingSceneLayer-25bc760b.js +535 -0
  21. package/dist/Button/Button.d.ts +24 -2
  22. package/dist/Button-70963624.js +36 -0
  23. package/dist/ByteSizeUnit-90df2840.js +7 -0
  24. package/dist/CSVLayer-fd3b6750.js +208 -0
  25. package/dist/CSVSourceWorker-eb24cd85.js +367 -0
  26. package/dist/CatalogDynamicGroupLayerView2D-dfc700a4.js +66 -0
  27. package/dist/CatalogFootprintLayerView2D-6eb16597.js +76 -0
  28. package/dist/CatalogLayer-1cc632fe.js +262 -0
  29. package/dist/CatalogLayerView2D-d143aa34.js +52 -0
  30. package/dist/Chips/index.d.ts +1 -0
  31. package/dist/CircularArray-b2bc1dfd.js +40 -0
  32. package/dist/ClassBreaksDefinition-07ba0c64.js +18 -0
  33. package/dist/ColorMaterial.glsl-e7801766.js +64 -0
  34. package/dist/ColorSet-df5696b5.js +45 -0
  35. package/dist/ColorStop-7187f368.js +29 -0
  36. package/dist/Container-ac97765a.js +521 -0
  37. package/dist/CustomParametersMixin-b3432b3e.js +12 -0
  38. package/dist/DatePicker/DatePicker.helper.d.ts +22 -0
  39. package/dist/DatePicker/DatePickerCalendar/DatePickerCalendar.helper.d.ts +18 -0
  40. package/dist/DatePicker/index.d.ts +2 -0
  41. package/dist/DefaultMaterial.glsl-3cc4efe7.js +42 -0
  42. package/dist/DefaultMaterial_COLOR_GAMMA-337c63aa.js +653 -0
  43. package/dist/DefaultTheme-12dffc66.js +130 -0
  44. package/dist/DeleteForwardEditsParameters-ae76d898.js +18 -0
  45. package/dist/DimensionLayer-9eb47c76.js +129 -0
  46. package/dist/DirectLineMeasurement3D-e9903136.js +449 -0
  47. package/dist/DistanceMeasurement2D-a4853462.js +303 -0
  48. package/dist/DoubleArray-5076283e.js +25 -0
  49. package/dist/EdgeProcessingWorker-c1783ddd.js +63 -0
  50. package/dist/EditBusLayer-e812f4c9.js +107 -0
  51. package/dist/ElevationInfo-fad03d5e.js +56 -0
  52. package/dist/ElevationLayer-397792d5.js +129 -0
  53. package/dist/ElevationQuery-beceb62f.js +598 -0
  54. package/dist/ElevationSamplerWorker-0048a204.js +62 -0
  55. package/dist/ExportImageParameters-c6c4bc61.js +66 -0
  56. package/dist/ExportStrategy-908f5b8d.js +93 -0
  57. package/dist/ExportWMSImageParameters-34da6b46.js +33 -0
  58. package/dist/External-14daf0c1.js +110 -0
  59. package/dist/FeatureCollectionSnappingSource-f97a1829.js +130 -0
  60. package/dist/FeatureCommandQueue-d4817eac.js +1244 -0
  61. package/dist/FeatureEffect-08976bbd.js +39 -0
  62. package/dist/FeatureEffectLayer-05c258f4.js +13 -0
  63. package/dist/FeatureFilter-8c5e44b1.js +27 -0
  64. package/dist/FeatureLayer-d3659466.js +693 -0
  65. package/dist/FeatureLayerBase-9b63f732.js +148 -0
  66. package/dist/FeatureLayerSource-960f1c01.js +444 -0
  67. package/dist/FeatureLayerView2D-7503e1ed.js +1967 -0
  68. package/dist/FeaturePipelineWorker-d4301d2a.js +3633 -0
  69. package/dist/FeatureReductionLayer-e6cf73ac.js +225 -0
  70. package/dist/FeatureReductionSelection-d90249a7.js +22 -0
  71. package/dist/FeatureServiceSnappingSource-9e49ca72.js +481 -0
  72. package/dist/FeatureServiceSnappingSourceWorker-39b093b3.js +747 -0
  73. package/dist/FeatureSet-d79f0e48.js +188 -0
  74. package/dist/FeatureStore-eb4b87c0.js +131 -0
  75. package/dist/FeatureTemplate-edb1b782.js +12 -0
  76. package/dist/FeatureType-bba29adb.js +25 -0
  77. package/dist/FieldsIndex-75cca4d0.js +109 -0
  78. package/dist/FormTemplate-22911c47.js +350 -0
  79. package/dist/GeoJSONLayer-b33c96b8.js +236 -0
  80. package/dist/GeoJSONSourceWorker-b04ff552.js +247 -0
  81. package/dist/GeoRSSLayer-6e5fcd0e.js +73 -0
  82. package/dist/GeoRSSLayerView2D-21b6b12e.js +140 -0
  83. package/dist/GeometryUtils-fa897cbd.js +403 -0
  84. package/dist/GraphicContainer-1fd6bfce.js +26 -0
  85. package/dist/GraphicManipulator-f3b7dc9b.js +1499 -0
  86. package/dist/GraphicsLayer-e0686779.js +38 -0
  87. package/dist/GraphicsLayerView2D-a7eba2fe.js +114 -0
  88. package/dist/GraphicsSnappingSource-594f402a.js +273 -0
  89. package/dist/GraphicsView2D-347562b8.js +620 -0
  90. package/dist/GroupLayer-7ae0a916.js +147 -0
  91. package/dist/GroupLayerView2D-ffcde606.js +98 -0
  92. package/dist/HUDMaterial.glsl-b0a3e0ce.js +65 -0
  93. package/dist/HighlightCounter-e18f0179.js +41 -0
  94. package/dist/HighlightGraphicContainer-fd774cea.js +18 -0
  95. package/dist/I3SBinaryReader-190e99de.js +310 -0
  96. package/dist/I3SLayerDefinitions-6ddaca60.js +55 -0
  97. package/dist/I3SUtil-44b83dc0.js +59 -0
  98. package/dist/IdentityManager-fbe91c13.js +899 -0
  99. package/dist/ImageHistogramParameters-d64fd9c8.js +905 -0
  100. package/dist/ImageryLayer-67878a78.js +1799 -0
  101. package/dist/ImageryLayerView2D-ae45faba.js +352 -0
  102. package/dist/ImageryTileLayer-9dca8b93.js +2157 -0
  103. package/dist/ImageryTileLayerView2D-977f66aa.js +1110 -0
  104. package/dist/ImmutableArray-fb7b7a6a.js +20 -0
  105. package/dist/Indices-e6dc3b15.js +67 -0
  106. package/dist/Input/Input.core.d.ts +37 -11
  107. package/dist/Input/index.d.ts +37 -11
  108. package/dist/IntegratedMesh3DTilesLayer-8811e7bf.js +112 -0
  109. package/dist/IntegratedMeshLayer-9162c0b5.js +141 -0
  110. package/dist/InteractiveAnalysisViewModel-b046fcb9.js +7397 -0
  111. package/dist/InterleavedLayout-32973c8a.js +163 -0
  112. package/dist/KMLLayer-80f81df7.js +162 -0
  113. package/dist/KMLLayerView2D-b6ba3b80.js +253 -0
  114. package/dist/KnowledgeGraphLayerView2D-ae91bd81.js +43 -0
  115. package/dist/LRUCache-27e8c401.js +32 -0
  116. package/dist/LabelClass-d9a476d6.js +135 -0
  117. package/dist/LabelMetric-e2728bbf.js +400 -0
  118. package/dist/LaserlinePath.glsl-60d00e61.js +64 -0
  119. package/dist/Laserlines.glsl-499a6cbf.js +65 -0
  120. package/dist/LayerFloorInfo-d05cf9dd.js +15 -0
  121. package/dist/LayerView-036988a9.js +206 -0
  122. package/dist/LercWorker-b1b4bb47.js +157 -0
  123. package/dist/LineOfSightLayer-9a9a60b7.js +147 -0
  124. package/dist/LinkChartLayer-d61803bb.js +1027 -0
  125. package/dist/Lyr3DWorker-87be14e0.js +82 -0
  126. package/dist/MD5-1b5ec1c3.js +76 -0
  127. package/dist/MagnifierPrograms-da7a27ab.js +806 -0
  128. package/dist/Map/Map.d.ts +26 -0
  129. package/dist/Map/index.d.ts +1 -0
  130. package/dist/Map/types/index.d.ts +38 -0
  131. package/dist/Map/utils/index.d.ts +24 -0
  132. package/dist/MapImageLayer-f07adf1a.js +169 -0
  133. package/dist/MapImageLayerView2D-d1b140c3.js +146 -0
  134. package/dist/MapNotesLayer-c662d147.js +283 -0
  135. package/dist/MapNotesLayerView2D-bf9ac698.js +161 -0
  136. package/dist/MapServiceLayerViewHelper-fb724de9.js +288 -0
  137. package/dist/MeasurementWidgetContent-e4888ef2.js +2642 -0
  138. package/dist/MediaLayer-36d873a3.js +523 -0
  139. package/dist/MediaLayerView2D-e58b8ec0.js +332 -0
  140. package/dist/MemCache-a9232ec2.js +227 -0
  141. package/dist/MemorySourceWorker-20ff27d6.js +222 -0
  142. package/dist/Mesh-3839826a.js +980 -0
  143. package/dist/MeshLocalVertexSpace-00151564.js +19 -0
  144. package/dist/MultiOriginJSONSupport-bb258670.js +158 -0
  145. package/dist/NestedMap-83f8e815.js +29 -0
  146. package/dist/OGCFeatureLayer-2a8b7ecc.js +211 -0
  147. package/dist/OGCFeatureLayerView2D-185f9649.js +82 -0
  148. package/dist/ObjectStack-10d91171.js +21 -0
  149. package/dist/Octree-78797046.js +495 -0
  150. package/dist/OpenStreetMapLayer-b0a17790.js +30 -0
  151. package/dist/OperationalLayer-55af27d6.js +44 -0
  152. package/dist/OptimizedFeatureSet-54e095c4.js +12 -0
  153. package/dist/OptimizedGeometry-3b808152.js +68 -0
  154. package/dist/OrderByInfo-22e3c805.js +16 -0
  155. package/dist/OrderIndependentTransparency-3eadfe42.js +214 -0
  156. package/dist/OrderedLayer-1403a591.js +26 -0
  157. package/dist/OrientedImageryLayer-8ec8d7d1.js +216 -0
  158. package/dist/OverlayCompositing.glsl-ba3bd81d.js +65 -0
  159. package/dist/OverrideHelper-82325a2c.js +242 -0
  160. package/dist/PBFDecoderWorker-f6517afc.js +213 -0
  161. package/dist/PointCloudLayer-cff43a10.js +197 -0
  162. package/dist/PointCloudUniqueValueRenderer-f337a895.js +115 -0
  163. package/dist/PointCloudWorker-cdb28dc1.js +212 -0
  164. package/dist/PooledRBush-ee4e60af.js +272 -0
  165. package/dist/Popup-c7f55588.js +3990 -0
  166. package/dist/PortalLayer-07b3c53e.js +126 -0
  167. package/dist/Program-ba2f18b2.js +694 -0
  168. package/dist/ProgramTemplate-eee4f097.js +35 -0
  169. package/dist/ProgressBar/ProgressBar.d.ts +0 -13
  170. package/dist/QueryEngine-10c97624.js +896 -0
  171. package/dist/QueryEngineCapabilities-0d8477a2.js +4 -0
  172. package/dist/QueryTask-115430b6.js +119 -0
  173. package/dist/RasterSymbolizer-fbf433fe.js +3024 -0
  174. package/dist/RasterVFDisplayObject-20b0dd86.js +581 -0
  175. package/dist/RasterWorker-44c37e20.js +78 -0
  176. package/dist/RawBlockCache-25203dbd.js +185 -0
  177. package/dist/RealisticTree.glsl-bc07c4dc.js +42 -0
  178. package/dist/Rect-894f011c.js +14 -0
  179. package/dist/RefreshableLayer-9550b85a.js +80 -0
  180. package/dist/RefreshableLayerView-601f7038.js +16 -0
  181. package/dist/Relationship-c662830e.js +64 -0
  182. package/dist/RelationshipQuery-765f068e.js +22 -0
  183. package/dist/RenderState-b244097f.js +7 -0
  184. package/dist/RenderingContext-3db74548.js +889 -0
  185. package/dist/RibbonLine.glsl-c6a715b7.js +65 -0
  186. package/dist/RouteLayer-3f5411f3.js +786 -0
  187. package/dist/RouteLayerView2D-a5fd4cbf.js +195 -0
  188. package/dist/SDFHelper-a34e90ee.js +140 -0
  189. package/dist/SSAO.glsl-5491a708.js +43 -0
  190. package/dist/SSAOBlur.glsl-f3068b8e.js +42 -0
  191. package/dist/ScaleRangeLayer-7ddf00b4.js +21 -0
  192. package/dist/SceneLayer-c594bfc3.js +542 -0
  193. package/dist/SceneLayerSnappingSource-a0504ac7.js +218 -0
  194. package/dist/SceneLayerSnappingSourceWorker-a04d6692.js +112 -0
  195. package/dist/SceneLayerWorker-1865768e.js +164 -0
  196. package/dist/SceneService-fb9f0142.js +215 -0
  197. package/dist/Scheduler-eacc84bb.js +373 -0
  198. package/dist/Select/Item/Item.d.ts +2 -1
  199. package/dist/Select/{Select.multiple.d.ts → Multiple/Select.multiple.d.ts} +26 -16
  200. package/dist/Select/Select.core.d.ts +18 -15
  201. package/dist/Select/{Select.single.d.ts → Single/Select.single.d.ts} +23 -14
  202. package/dist/Select/index.d.ts +42 -24
  203. package/dist/ShadedColorMaterial.glsl-db97956b.js +64 -0
  204. package/dist/SnappingOperation-9622a00d.js +48 -0
  205. package/dist/SourceLayerData-7016f1a5.js +116 -0
  206. package/dist/SpatialFilter-d20d4f50.js +1701 -0
  207. package/dist/Stop-68022e32.js +281 -0
  208. package/dist/StreamLayer-7c837e3d.js +188 -0
  209. package/dist/StreamLayerView2D-586f5a6a.js +164 -0
  210. package/dist/StyleDefinition-f4862d5a.js +36 -0
  211. package/dist/StyleRepository-fba75e70.js +2212 -0
  212. package/dist/SublayersOwner-3dc574cd.js +545 -0
  213. package/dist/SubtypeGroupLayer-1f9c5398.js +514 -0
  214. package/dist/SubtypeGroupLayerView2D-0f108d9d.js +84 -0
  215. package/dist/Tabs/Tab/Tab.d.ts +3 -3
  216. package/dist/TechniqueInstance-0481dbff.js +233 -0
  217. package/dist/TemporalLayer-8116b4a4.js +23 -0
  218. package/dist/Texture-22a8cca5.js +501 -0
  219. package/dist/TextureOnly.glsl-458f8148.js +65 -0
  220. package/dist/Theme-f05b8eb0.js +3426 -0
  221. package/dist/Tick-aef93b48.js +723 -0
  222. package/dist/TileContainer-0bf0ea1b.js +31 -0
  223. package/dist/TileInfoTilemapCache-d78858c0.js +38 -0
  224. package/dist/TileLayer-0edee064.js +194 -0
  225. package/dist/TileLayerView2D-78d5801b.js +187 -0
  226. package/dist/TilemapCache-79699d61.js +189 -0
  227. package/dist/TimeInfo-40c96ade.js +42 -0
  228. package/dist/TimeOnly-9ee66ca6.js +706 -0
  229. package/dist/Tooltip-e7498dc9.js +138 -0
  230. package/dist/TopFeaturesQuery-ad224e01.js +32 -0
  231. package/dist/TurboLine-6ab04aef.js +565 -0
  232. package/dist/UniqueValueRenderer-eaa5f8a6.js +1039 -0
  233. package/dist/UnknownLayer-e280ddd4.js +30 -0
  234. package/dist/UnknownTimeZone-220952b5.js +15 -0
  235. package/dist/UnsupportedLayer-447f7676.js +31 -0
  236. package/dist/UpdateTracking2D-e9adad8f.js +8566 -0
  237. package/dist/Util-002f5109.js +57 -0
  238. package/dist/VectorTileLayer-3210be81.js +544 -0
  239. package/dist/VectorTileLayerView2D-6a51e3b8.js +2108 -0
  240. package/dist/Version-3de8cbca.js +33 -0
  241. package/dist/VertexArrayObject-07998745.js +73 -0
  242. package/dist/VertexAttribute-faad30bf.js +11 -0
  243. package/dist/VertexColor.glsl-e415cf02.js +2683 -0
  244. package/dist/VertexElementDescriptor-d7c718c2.js +8 -0
  245. package/dist/VertexSnappingCandidate-b676241f.js +13 -0
  246. package/dist/VideoLayerView2D-f659dd0d.js +124 -0
  247. package/dist/VoxelLayer-003f82ff.js +631 -0
  248. package/dist/WFSLayer-3da6c5f7.js +221 -0
  249. package/dist/WFSSourceWorker-9a11693a.js +157 -0
  250. package/dist/WGLContainer-3d159b63.js +5426 -0
  251. package/dist/WMSLayer-fc0632f8.js +536 -0
  252. package/dist/WMSLayerView2D-54e80e1b.js +117 -0
  253. package/dist/WMTSLayer-9324b12b.js +531 -0
  254. package/dist/WMTSLayerView2D-3ef936db.js +142 -0
  255. package/dist/WebTileLayer-45c563ff.js +110 -0
  256. package/dist/WhereClause-7a28b740.js +2766 -0
  257. package/dist/WorkerHandle-0d54a6c7.js +47 -0
  258. package/dist/WorkerTileHandler-786c2b24.js +1539 -0
  259. package/dist/action-163397e3.js +198 -0
  260. package/dist/action-group-4859fb97.js +145 -0
  261. package/dist/action-menu-2d70b2fc.js +1759 -0
  262. package/dist/agrotools-theme.css.map +1 -1
  263. package/dist/apng-9b71d52c.js +392 -0
  264. package/dist/ar-a17f8064.js +18 -0
  265. package/dist/arcade-fa309282.js +229 -0
  266. package/dist/arcadeAsyncRuntime-738498fd.js +943 -0
  267. package/dist/arcadeUtils-f71d80fa.js +8741 -0
  268. package/dist/arcgis-knowledge-client-core-6056bcea.js +1218 -0
  269. package/dist/arcgis-knowledge-client-core-simd-9bc1f83e.js +1218 -0
  270. package/dist/arcgisLayers-b2b878bd.js +152 -0
  271. package/dist/associatedFeatureServiceUtils-df5b5187.js +92 -0
  272. package/dist/axisAngleDegrees-32643b7c.js +49 -0
  273. package/dist/basicInterfaces-fa4f5fa7.js +30 -0
  274. package/dist/basis_transcoder-3187cc92.js +1248 -0
  275. package/dist/bg_BG-9950a70b.js +18 -0
  276. package/dist/bs_BA-60482871.js +18 -0
  277. package/dist/ca_ES-a121088e.js +18 -0
  278. package/dist/calcite-action-bar-5a87c23c.js +303 -0
  279. package/dist/calcite-action-ee2ca847.js +22 -0
  280. package/dist/calcite-action-group-19aa86ee.js +28 -0
  281. package/dist/calcite-button-8e9175c0.js +228 -0
  282. package/dist/calcite-flow-57d26d2d.js +128 -0
  283. package/dist/calcite-flow-item-4a3e3fc0.js +499 -0
  284. package/dist/calcite-icon-d99e280a.js +16 -0
  285. package/dist/calcite-input-28b20785.js +24 -0
  286. package/dist/calcite-label-4f30e08d.js +79 -0
  287. package/dist/calcite-list-0cee7628.js +2135 -0
  288. package/dist/calcite-list-item-0a19efa8.js +576 -0
  289. package/dist/calcite-list-item-group-0706662f.js +71 -0
  290. package/dist/calcite-loader-865045b1.js +14 -0
  291. package/dist/calcite-modal-3e4da6fd.js +333 -0
  292. package/dist/calcite-notice-50b74ab7.js +181 -0
  293. package/dist/calcite-option-713c1d40.js +94 -0
  294. package/dist/calcite-scrim-809fbd0b.js +18 -0
  295. package/dist/calcite-select-28d8edfc.js +231 -0
  296. package/dist/capabilities-c8f838be.js +50 -0
  297. package/dist/chartCommon-13718cda.js +256 -0
  298. package/dist/chartUtilsAm5-6be145fb.js +2954 -0
  299. package/dist/clientSideDefaults-5c1f97c9.js +39 -0
  300. package/dist/colorRamps-8792655e.js +38 -0
  301. package/dist/colorUtils-54f4b662.js +164 -0
  302. package/dist/commonProperties-f9559903.js +60 -0
  303. package/dist/component-51a10bc0.js +18 -0
  304. package/dist/computeTranslationToOriginAndRotation-4876cb93.js +60 -0
  305. package/dist/conditionalSlot-87175989.js +27 -0
  306. package/dist/config-61215215.js +7 -0
  307. package/dist/constants-5bd557fe.js +5 -0
  308. package/dist/createConnection-f974a00a.js +299 -0
  309. package/dist/crsUtils-59933b10.js +7 -0
  310. package/dist/cs_CZ-1b968650.js +18 -0
  311. package/dist/da_DK-e0fe1642.js +18 -0
  312. package/dist/dataUtils-7c276b73.js +1421 -0
  313. package/dist/date-1c28c6a5.js +52 -0
  314. package/dist/de_CH-b0dbd4c8.js +6 -0
  315. package/dist/de_DE-8609ef65.js +6 -0
  316. package/dist/debounce-de27a42a.js +121 -0
  317. package/dist/deduplicate-59fb9cac.js +89 -0
  318. package/dist/defaults-2bfa4a36.js +31 -0
  319. package/dist/defaultsJSON-ba17aa15.js +10 -0
  320. package/dist/definitions-a00a3a6c.js +52 -0
  321. package/dist/deleteForwardEdits-f653b513.js +13 -0
  322. package/dist/devEnvironmentUtils-42cb97c7.js +11 -0
  323. package/dist/diffUtils-e71a6152.js +90 -0
  324. package/dist/dom-b589b728.js +358 -0
  325. package/dist/doublePrecisionUtils-46e21550.js +22 -0
  326. package/dist/drapedUtils-b42fcbc6.js +75 -0
  327. package/dist/earcut-6fa1a128.js +292 -0
  328. package/dist/edgeProcessing-2ff1f201.js +252 -0
  329. package/dist/editingSupport-68545668.js +203 -0
  330. package/dist/editsZScale-c7cdd215.js +37 -0
  331. package/dist/el_GR-5cfd1e7e.js +18 -0
  332. package/dist/elevationInfoUtils-5456a079.js +126 -0
  333. package/dist/en_CA-47f2633b.js +18 -0
  334. package/dist/en_US-47f2633b.js +18 -0
  335. package/dist/enums-25d066fc.js +13 -0
  336. package/dist/enums-2c166c09.js +99 -0
  337. package/dist/enums-fa8f05ab.js +152 -0
  338. package/dist/es_ES-489878a2.js +6 -0
  339. package/dist/et_EE-6472669a.js +18 -0
  340. package/dist/executeForIds-4ab75c0d.js +14 -0
  341. package/dist/executeForTopCount-7e095ec1.js +17 -0
  342. package/dist/executeForTopExtents-19daf9d0.js +17 -0
  343. package/dist/executeForTopIds-1ba3a4af.js +17 -0
  344. package/dist/executeQueryJSON-46168866.js +15 -0
  345. package/dist/executeQueryPBF-d8623daf.js +152 -0
  346. package/dist/executeRelationshipQuery-011dfb45.js +53 -0
  347. package/dist/executeTopFeaturesQuery-02166801.js +18 -0
  348. package/dist/featureConversionUtils-650d7601.js +479 -0
  349. package/dist/featureLayerUtils-64e09283.js +142 -0
  350. package/dist/featureLayerUtils-b07f9c11.js +250 -0
  351. package/dist/featureSetUtils-9d37d6f8.js +2530 -0
  352. package/dist/featuresetbase-62aeb079.js +707 -0
  353. package/dist/featuresetgeom-51f9fc4e.js +99 -0
  354. package/dist/featuresetstats-4db32894.js +81 -0
  355. package/dist/featuresetstring-990c3287.js +95 -0
  356. package/dist/fetchService-5198dd4a.js +33 -0
  357. package/dist/fi_FI-d7a3a525.js +18 -0
  358. package/dist/fieldProperties-edfa24cb.js +33 -0
  359. package/dist/floatRGBA-516d7961.js +20 -0
  360. package/dist/floorFilterUtils-936f7587.js +19 -0
  361. package/dist/focusTrapComponent-e849bb89.js +475 -0
  362. package/dist/form-99719d52.js +138 -0
  363. package/dist/fr_FR-a88f2596.js +7 -0
  364. package/dist/geohashUtils-2bc76440.js +85 -0
  365. package/dist/geojson-603231df.js +208 -0
  366. package/dist/geomasync-e9063b4c.js +567 -0
  367. package/dist/geometryEngine-d3bb2fd6.js +192 -0
  368. package/dist/geometryEngineAsync-55aa6170.js +217 -0
  369. package/dist/geometryEngineBase-527e8b63.js +18463 -0
  370. package/dist/geometryEngineJSON-28087174.js +46 -0
  371. package/dist/geometryEngineJSON-d54949f9.js +171 -0
  372. package/dist/geometryEngineWorker-dc2c7127.js +11 -0
  373. package/dist/geometryServiceUtils-6a3e1e93.js +28 -0
  374. package/dist/georeference-ed8b2c30.js +291 -0
  375. package/dist/gif-204e82dd.js +323 -0
  376. package/dist/glUtil-8f8bce6b.js +19 -0
  377. package/dist/gltfexport-b2566542.js +705 -0
  378. package/dist/groupLayerUtils-ea9e6359.js +39 -0
  379. package/dist/guid-5ee54248.js +17 -0
  380. package/dist/he_IL-e34cf273.js +18 -0
  381. package/dist/heatmapUtils-56758920.js +45 -0
  382. package/dist/highlightReasons-de432106.js +19 -0
  383. package/dist/hr_HR-6a124f87.js +18 -0
  384. package/dist/hu_HU-58f3feb6.js +18 -0
  385. package/dist/hydrated-0e1c7565.js +40 -0
  386. package/dist/i3s-bb0b5b67.js +809 -0
  387. package/dist/icon-c6e3bd23.js +127 -0
  388. package/dist/id_ID-18d97715.js +18 -0
  389. package/dist/imageBitmapUtils-881d8c64.js +23 -0
  390. package/dist/imageUtils-57eeedc5.js +69 -0
  391. package/dist/imageUtils-ef69c578.js +89 -0
  392. package/dist/imageryUtils-23f51cb1.js +43 -0
  393. package/dist/index-01c737ed.js +42563 -0
  394. package/dist/index.d.ts +2 -1
  395. package/dist/index.js +22 -10177
  396. package/dist/infoFor3D-bf4e6c95.js +58 -0
  397. package/dist/input-message-673a9baa.js +92 -0
  398. package/dist/input2-bbf6454e.js +575 -0
  399. package/dist/interactive-aeb2cb9f.js +80 -0
  400. package/dist/interfaces-fac3cfda.js +7 -0
  401. package/dist/it_IT-49e70bbf.js +6 -0
  402. package/dist/ja_JP-eaef2cc3.js +18 -0
  403. package/dist/json-5febf88a.js +57 -0
  404. package/dist/jsonContext-2dc288b1.js +15 -0
  405. package/dist/jsonUtils-1abd4bfc.js +59 -0
  406. package/dist/jsonUtils-913fa1bd.js +86 -0
  407. package/dist/jsonUtils-f6a5e63b.js +476 -0
  408. package/dist/kmlUtils-7c2744fe.js +112 -0
  409. package/dist/knowledgeGraphService-6a349e04.js +739 -0
  410. package/dist/knowledgegraph-c91b0bb2.js +149 -0
  411. package/dist/ko_KR-5c972fd8.js +14 -0
  412. package/dist/label2-1ab25f27.js +90 -0
  413. package/dist/labelUtils-a3634e8f.js +61 -0
  414. package/dist/labelingInfo-568c9210.js +46 -0
  415. package/dist/layerViewUtils-052e603c.js +10 -0
  416. package/dist/layersCreator-4a5366ea.js +151 -0
  417. package/dist/layersLoader-b87d4857.js +197 -0
  418. package/dist/lazyLayerLoader-8817000c.js +10 -0
  419. package/dist/lclayout-64c67b4e.js +773 -0
  420. package/dist/lengthUtils-695e744c.js +5 -0
  421. package/dist/lerc-wasm-13192bf3.js +325 -0
  422. package/dist/libtess-asm-4883179d.js +3673 -0
  423. package/dist/libtess-fc70d1ce.js +269 -0
  424. package/dist/lineSegment-3aa941f5.js +76 -0
  425. package/dist/loadGLTFMesh-db6645f5.js +181 -0
  426. package/dist/loadable-266f324b.js +24 -0
  427. package/dist/loader-d1ce1bc1.js +79 -0
  428. package/dist/lt_LT-26f13fd1.js +6 -0
  429. package/dist/lv_LV-4feafa92.js +18 -0
  430. package/dist/lyr3DWorker-dd48e619.js +2108 -0
  431. package/dist/mapViewDeps-226d9da3.js +3052 -0
  432. package/dist/mask-svg-30f64a7b.js +4 -0
  433. package/dist/mat3f64-03233387.js +19 -0
  434. package/dist/mat4f64-cce69db4.js +19 -0
  435. package/dist/mediaLayerUtils-ae485c27.js +35 -0
  436. package/dist/meshFeatureSet-8a2ad011.js +126 -0
  437. package/dist/meshVertexSpaceUtils-6efe3dcc.js +58 -0
  438. package/dist/multiOriginJSONSupportUtils-207ba4d4.js +6 -0
  439. package/dist/multidimensionalUtils-508a3f3f.js +290 -0
  440. package/dist/nb_NO-21543153.js +18 -0
  441. package/dist/nl_NL-7876d97f.js +7 -0
  442. package/dist/normalizeUtilsSync-1dae280b.js +181 -0
  443. package/dist/number-5aa3a81b.js +128 -0
  444. package/dist/objectIdUtils-93dae423.js +14 -0
  445. package/dist/objectResourceUtils-642ab03e.js +1455 -0
  446. package/dist/observers-f646a6a4.js +30 -0
  447. package/dist/ogcFeatureUtils-46ac1c44.js +206 -0
  448. package/dist/openCloseComponent-47eb52c6.js +37 -0
  449. package/dist/orientedBoundingBox-554ccdc6.js +447 -0
  450. package/dist/originUtils-87edf087.js +9 -0
  451. package/dist/overlay-svg-c3941b3b.js +4 -0
  452. package/dist/parser-0701286c.js +488 -0
  453. package/dist/pbf-5dd791f5.js +215 -0
  454. package/dist/pbfQueryUtils-a6ca7e23.js +422 -0
  455. package/dist/pe-wasm-6c16b121.js +887 -0
  456. package/dist/persistable-9eb0e8df.js +89 -0
  457. package/dist/perspectiveUtils-b194621d.js +42 -0
  458. package/dist/pieChart-b97433d0.js +555 -0
  459. package/dist/pl_PL-276c6dae.js +18 -0
  460. package/dist/plane-3398eec1.js +160 -0
  461. package/dist/popupUtils-c444b896.js +22 -0
  462. package/dist/popupUtils-d871563b.js +50 -0
  463. package/dist/portalItemUtils-4c4caad0.js +57 -0
  464. package/dist/portalLayers-cb07742f.js +312 -0
  465. package/dist/portalUtils-effd590f.js +7 -0
  466. package/dist/programUtils-65af7b7c.js +59 -0
  467. package/dist/project-ee9c2947.js +21 -0
  468. package/dist/projectPointToVector-7dc831a9.js +14 -0
  469. package/dist/projectVectorToVector-5163db7a.js +13 -0
  470. package/dist/pt_BR-4fae3055.js +6 -0
  471. package/dist/pt_PT-14d9efb1.js +6 -0
  472. package/dist/quantityUtils-5cd4cf90.js +33 -0
  473. package/dist/quantizationUtils-0a8f74c6.js +68 -0
  474. package/dist/quat-a508aed3.js +104 -0
  475. package/dist/quatf64-bec1af25.js +19 -0
  476. package/dist/query-b6e1fd14.js +89 -0
  477. package/dist/queryAttachments-7b39ebdc.js +39 -0
  478. package/dist/queryEngineUtils-cb8e309e.js +21 -0
  479. package/dist/queryTopFeatures-2e0e3941.js +50 -0
  480. package/dist/queryZScale-c5733d0a.js +12 -0
  481. package/dist/rasterProjectionHelper-213afa27.js +577 -0
  482. package/dist/rasterUtils-f2e44e8b.js +122 -0
  483. package/dist/rasterizingUtils-25cc0190.js +46 -0
  484. package/dist/request-e0c679b3.js +46 -0
  485. package/dist/requestImageUtils-37d79281.js +8 -0
  486. package/dist/resourceExtension-5f3f1c80.js +17 -0
  487. package/dist/resourceUtils-0d68cbc2.js +69 -0
  488. package/dist/resourceUtils-374db840.js +62 -0
  489. package/dist/resourceUtils-43ce192b.js +42 -0
  490. package/dist/ro_RO-8e733cf5.js +18 -0
  491. package/dist/ru_RU-f7bafc90.js +6 -0
  492. package/dist/saveAPIKeyUtils-1a3d4a8a.js +8 -0
  493. package/dist/saveUtils-43fdc547.js +24 -0
  494. package/dist/scaleUtils-bdf8b6cb.js +23 -0
  495. package/dist/scrim-44eb4dc0.js +114 -0
  496. package/dist/serviceCapabilitiesUtils-823612b8.js +64 -0
  497. package/dist/sizeVariableUtils-a1b694d8.js +27 -0
  498. package/dist/sk_SK-c279eea3.js +6 -0
  499. package/dist/sl_SL-e40950dd.js +6 -0
  500. package/dist/sourceUtils-01d115c6.js +71 -0
  501. package/dist/sphere-908cd9aa.js +199 -0
  502. package/dist/sr_RS-b1835dfa.js +18 -0
  503. package/dist/statsWorker-49f9befe.js +37 -0
  504. package/dist/streamLayerUtils-29324e05.js +31 -0
  505. package/dist/style.css +1 -1
  506. package/dist/styleUtils-82e8da52.js +75 -0
  507. package/dist/styleUtils-8541d60d.js +14 -0
  508. package/dist/sublayerUtils-eaac2486.js +37 -0
  509. package/dist/substitute-1f578d70.js +52 -0
  510. package/dist/sv_SE-15ca9e36.js +6 -0
  511. package/dist/symbolColorUtils-18fd6b3d.js +8 -0
  512. package/dist/symbolLayerUtils-4c58b291.js +31 -0
  513. package/dist/symbologySnappingCandidates-14d94b6b.js +221 -0
  514. package/dist/t9n-c1c2b6c8.js +349 -0
  515. package/dist/testSVGPremultipliedAlpha-159dac90.js +94 -0
  516. package/dist/th_TH-bf624a56.js +18 -0
  517. package/dist/tileUtils-3e0c8c1d.js +7 -0
  518. package/dist/timeSupport-3f529cdb.js +410 -0
  519. package/dist/tr_TR-ca5c315f.js +18 -0
  520. package/dist/triangle-8a3a2ba8.js +98 -0
  521. package/dist/types-adba9034.js +19 -0
  522. package/dist/uk_UA-4b3cb86d.js +6 -0
  523. package/dist/unitConversionUtils-f0ebaf75.js +17 -0
  524. package/dist/unitFormatUtils-555e2d94.js +40 -0
  525. package/dist/uploadAssetErrors-d1389781.js +70 -0
  526. package/dist/uploadAssets-5e85f09d.js +330 -0
  527. package/dist/utils-3a10b10c.js +34 -0
  528. package/dist/utils-505c54e9.js +91 -0
  529. package/dist/utils-5432e258.js +433 -0
  530. package/dist/utils-7a88ec6a.js +419 -0
  531. package/dist/utils-7fa9cdf9.js +2746 -0
  532. package/dist/utils-d252c575.js +73 -0
  533. package/dist/utils-f07e00b3.js +232 -0
  534. package/dist/utils-fda10b4b.js +79 -0
  535. package/dist/utils3-c34ab97c.js +75 -0
  536. package/dist/vec3-f79c600d.js +81 -0
  537. package/dist/vec3f32-304a6a9c.js +36 -0
  538. package/dist/vec42-36edeb73.js +125 -0
  539. package/dist/vec4f32-b2628ced.js +38 -0
  540. package/dist/vec4f64-043e974c.js +45 -0
  541. package/dist/versionUtils-6935648b.js +161 -0
  542. package/dist/vi_VN-ad09e708.js +18 -0
  543. package/dist/visualVariableUtils-c425461a.js +267 -0
  544. package/dist/webStyleSymbolUtils-4f42a29f.js +48 -0
  545. package/dist/webglDeps-5f18210d.js +23 -0
  546. package/dist/wfsUtils-6f7f1e3e.js +343 -0
  547. package/dist/workerHelper-9dc9a790.js +11 -0
  548. package/dist/xmlUtils-64cc47e1.js +24 -0
  549. package/dist/xyChart-e5648fee.js +3335 -0
  550. package/dist/zh_Hans-61faef57.js +14 -0
  551. package/dist/zh_Hant-87a9767b.js +14 -0
  552. package/dist/zipjs-wrapper-1bd67e07.js +6496 -0
  553. package/package.json +6 -1
@@ -0,0 +1,2954 @@
1
+ import { d6 as ot } from "./index-01c737ed.js";
2
+ import { B as ee, k as lt, G as ht, $ as ut, X as ct, Z as dt, u as bt, w as y, x as te, i as q, a as Ze, r as Z, z as ft, K as ie, b as Le, l as K, q as me, c as C, t as gt, e as mt, L as _e, N as re, O as pt, d as $, f as Te, g as _t, h as se, j as ze, T as je, m as yt, W as he, n as pe, s as vt, J as Ke, _ as Je, y as Ce, F as wt, o as Q, p as J, v as U, A as xt, C as H, E as Pt, D as E, H as ce, S as de, I as Fe, M as Ot, P as Ye, Q as kt, R as Mt, U as R, V as Ie, Y as St, a0 as jt, a1 as Et, a2 as Tt, a3 as X, a4 as be, a5 as Ct, a6 as He, a7 as Ee, a8 as Qe, a9 as Re, aa as Bt, ab as Dt, ac as et, ad as tt, ae as At, af as Lt, ag as zt, ah as Ft, ai as oe, aj as xe } from "./Theme-f05b8eb0.js";
3
+ import { u as We } from "./Tooltip-e7498dc9.js";
4
+ import { s as Yt } from "./DefaultTheme-12dffc66.js";
5
+ import "vue";
6
+ class It {
7
+ constructor() {
8
+ Object.defineProperty(this, "_observer", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_targets", { enumerable: !0, configurable: !0, writable: !0, value: [] }), this._observer = new ResizeObserver((e) => {
9
+ y(e, (t) => {
10
+ y(this._targets, (i) => {
11
+ i.target === t.target && i.callback();
12
+ });
13
+ });
14
+ });
15
+ }
16
+ addTarget(e, t) {
17
+ this._observer.observe(e, { box: "border-box" }), this._targets.push({ target: e, callback: t });
18
+ }
19
+ removeTarget(e) {
20
+ this._observer.unobserve(e), _e(this._targets, (t) => t.target !== e);
21
+ }
22
+ }
23
+ class ye {
24
+ constructor() {
25
+ Object.defineProperty(this, "_timer", { enumerable: !0, configurable: !0, writable: !0, value: null }), Object.defineProperty(this, "_targets", { enumerable: !0, configurable: !0, writable: !0, value: [] });
26
+ }
27
+ addTarget(e, t) {
28
+ if (this._timer === null) {
29
+ let r = null;
30
+ const a = () => {
31
+ const s = Date.now();
32
+ (r === null || s > r + ye.delay) && (r = s, y(this._targets, (n) => {
33
+ let h = n.target.getBoundingClientRect();
34
+ h.width === n.size.width && h.height === n.size.height || (n.size = h, n.callback());
35
+ })), this._targets.length === 0 ? this._timer = null : this._timer = requestAnimationFrame(a);
36
+ };
37
+ this._timer = requestAnimationFrame(a);
38
+ }
39
+ let i = { width: 0, height: 0, left: 0, right: 0, top: 0, bottom: 0, x: 0, y: 0 };
40
+ this._targets.push({ target: e, callback: t, size: i });
41
+ }
42
+ removeTarget(e) {
43
+ _e(this._targets, (t) => t.target !== e), this._targets.length === 0 && this._timer !== null && (cancelAnimationFrame(this._timer), this._timer = null);
44
+ }
45
+ }
46
+ Object.defineProperty(ye, "delay", { enumerable: !0, configurable: !0, writable: !0, value: 200 });
47
+ let Pe = null;
48
+ function Ht() {
49
+ return Pe === null && (Pe = typeof ResizeObserver < "u" ? new It() : new ye()), Pe;
50
+ }
51
+ class Rt {
52
+ constructor(e, t) {
53
+ Object.defineProperty(this, "_sensor", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_element", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_listener", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_disposed", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), this._sensor = Ht(), this._element = e, this._listener = Ke(t), this._sensor.addTarget(e, t);
54
+ }
55
+ isDisposed() {
56
+ return this._disposed;
57
+ }
58
+ dispose() {
59
+ this._disposed || (this._disposed = !0, this._sensor.removeTarget(this._element), this._listener.dispose());
60
+ }
61
+ get sensor() {
62
+ return this._sensor;
63
+ }
64
+ }
65
+ class ge extends ee {
66
+ }
67
+ Object.defineProperty(ge, "className", { enumerable: !0, configurable: !0, writable: !0, value: "InterfaceColors" }), Object.defineProperty(ge, "classNames", { enumerable: !0, configurable: !0, writable: !0, value: ee.classNames.concat([ge.className]) });
68
+ class Wt extends ee {
69
+ _setDefaults() {
70
+ this._setDefault("negativeBase", 0), this._setDefault("numberFormat", "#,###.#####"), this._setDefault("smallNumberThreshold", 1);
71
+ const e = "_big_number_suffix_", t = "_small_number_suffix_", i = "_byte_suffix_";
72
+ this._setDefault("bigNumberPrefixes", [{ number: 1e3, suffix: this._t(e + "3") }, { number: 1e6, suffix: this._t(e + "6") }, { number: 1e9, suffix: this._t(e + "9") }, { number: 1e12, suffix: this._t(e + "12") }, { number: 1e15, suffix: this._t(e + "15") }, { number: 1e18, suffix: this._t(e + "18") }, { number: 1e21, suffix: this._t(e + "21") }, { number: 1e24, suffix: this._t(e + "24") }]), this._setDefault("smallNumberPrefixes", [{ number: 1e-24, suffix: this._t(t + "24") }, { number: 1e-21, suffix: this._t(t + "21") }, { number: 1e-18, suffix: this._t(t + "18") }, { number: 1e-15, suffix: this._t(t + "15") }, { number: 1e-12, suffix: this._t(t + "12") }, { number: 1e-9, suffix: this._t(t + "9") }, { number: 1e-6, suffix: this._t(t + "6") }, { number: 1e-3, suffix: this._t(t + "3") }]), this._setDefault("bytePrefixes", [{ number: 1, suffix: this._t(i + "B") }, { number: 1024, suffix: this._t(i + "KB") }, { number: 1048576, suffix: this._t(i + "MB") }, { number: 1073741824, suffix: this._t(i + "GB") }, { number: 1099511627776, suffix: this._t(i + "TB") }, { number: 1125899906842624, suffix: this._t(i + "PB") }]), super._setDefaults();
73
+ }
74
+ _beforeChanged() {
75
+ super._beforeChanged();
76
+ }
77
+ format(e, t, i) {
78
+ let r;
79
+ (t == null || pe(t) && t.toLowerCase() === "number") && (t = this.get("numberFormat", ""));
80
+ let a = Number(e);
81
+ if (Je(t))
82
+ try {
83
+ return this.get("intlLocales") ? new Intl.NumberFormat(this.get("intlLocales"), t).format(a) : new Intl.NumberFormat(void 0, t).format(a);
84
+ } catch {
85
+ return "Invalid";
86
+ }
87
+ else {
88
+ t = Ce(t);
89
+ let s, n = this.parseFormat(t, this._root.language);
90
+ s = a > this.get("negativeBase") ? n.positive : a < this.get("negativeBase") ? n.negative : n.zero, i == null || s.mod || (s = wt(s), s.decimals.active = a == 0 ? 0 : i), r = s.template.split(Q).join(this.applyFormat(a, s));
91
+ }
92
+ return this.get("forceLTR") === !0 && (r = "‎" + r), r;
93
+ }
94
+ parseFormat(e, t) {
95
+ const i = t.translateEmpty("_thousandSeparator"), r = t.translateEmpty("_decimalSeparator");
96
+ let a = { positive: { thousands: { active: -1, passive: -1, interval: -1, separator: i }, decimals: { active: -1, passive: -1, separator: r }, template: "", source: "", parsed: !1 }, negative: { thousands: { active: -1, passive: -1, interval: -1, separator: i }, decimals: { active: -1, passive: -1, separator: r }, template: "", source: "", parsed: !1 }, zero: { thousands: { active: -1, passive: -1, interval: -1, separator: i }, decimals: { active: -1, passive: -1, separator: r }, template: "", source: "", parsed: !1 } }, s = (e = e.replace("||", J)).split("|");
97
+ return a.positive.source = s[0], s[2] === void 0 ? a.zero = a.positive : a.zero.source = s[2], s[1] === void 0 ? a.negative = a.positive : a.negative.source = s[1], he(a, (n, h) => {
98
+ if (h.parsed)
99
+ return;
100
+ let c = h.source;
101
+ c.toLowerCase() === "number" && (c = this.get("numberFormat", "#,###.#####"));
102
+ let g = U.chunk(c, !0);
103
+ for (let u = 0; u < g.length; u++) {
104
+ let b = g[u];
105
+ if (b.text = b.text.replace(J, "|"), b.type === "value") {
106
+ let o = b.text.match(/[#0.,]+[ ]?[abespABESP%!]?[abespABESP‰!]?/);
107
+ if (o)
108
+ if (o === null || o[0] === "")
109
+ h.template += b.text;
110
+ else {
111
+ let p = o[0].match(/[abespABESP%‰!]{2}|[abespABESP%‰]{1}$/);
112
+ p && (h.mod = p[0].toLowerCase(), h.modSpacing = !!o[0].match(/[ ]{1}[abespABESP%‰!]{1}$/));
113
+ let l = o[0].split(".");
114
+ if (l[0] !== "") {
115
+ h.thousands.active = (l[0].match(/0/g) || []).length, h.thousands.passive = (l[0].match(/\#/g) || []).length + h.thousands.active;
116
+ let m = l[0].split(",");
117
+ m.length === 1 || (h.thousands.interval = (m.pop() || "").length, h.thousands.interval === 0 && (h.thousands.interval = -1));
118
+ }
119
+ l[1] === void 0 || (h.decimals.active = (l[1].match(/0/g) || []).length, h.decimals.passive = (l[1].match(/\#/g) || []).length + h.decimals.active), h.template += b.text.split(o[0]).join(Q);
120
+ }
121
+ } else
122
+ h.template += b.text;
123
+ }
124
+ h.parsed = !0;
125
+ }), a;
126
+ }
127
+ applyFormat(e, t) {
128
+ let i = e < 0;
129
+ e = Math.abs(e);
130
+ let r = "", a = "", s = t.mod ? t.mod.split("") : [];
131
+ if (s.indexOf("b") !== -1) {
132
+ let u = this.applyPrefix(e, this.get("bytePrefixes"), s.indexOf("!") !== -1);
133
+ e = u[0], r = u[1], a = u[2], t.modSpacing && (a = " " + a);
134
+ } else if (s.indexOf("a") !== -1) {
135
+ let u = this.applyPrefix(e, e < this.get("smallNumberThreshold") ? this.get("smallNumberPrefixes") : this.get("bigNumberPrefixes"), s.indexOf("!") !== -1);
136
+ e = u[0], r = u[1], a = u[2], t.modSpacing && (a = " " + a);
137
+ } else if (s.indexOf("p") !== -1) {
138
+ let u = Math.min(e.toString().length + 2, 21);
139
+ e = parseFloat(e.toPrecision(u)), r = this._root.language.translate("_percentPrefix"), a = this._root.language.translate("_percentSuffix"), r == "" && a == "" && (a = "%");
140
+ } else if (s.indexOf("%") !== -1) {
141
+ let u = Math.min(e.toString().length + 2, 21);
142
+ e *= 100, e = parseFloat(e.toPrecision(u)), a = "%";
143
+ } else if (s.indexOf("‰") !== -1) {
144
+ let u = Math.min(e.toString().length + 3, 21);
145
+ e *= 1e3, e = parseFloat(e.toPrecision(u)), a = "‰";
146
+ }
147
+ if (s.indexOf("e") !== -1) {
148
+ let u;
149
+ u = t.decimals.passive >= 0 ? e.toExponential(t.decimals.passive).split("e") : e.toExponential().split("e"), e = Number(u[0]), a = "e" + u[1], t.modSpacing && (a = " " + a);
150
+ } else if (t.decimals.passive === 0)
151
+ e = Math.round(e);
152
+ else if (t.decimals.passive > 0) {
153
+ let u = Math.pow(10, t.decimals.passive);
154
+ e = Math.round(e * u) / u;
155
+ }
156
+ let n = "", h = xt(e).split("."), c = h[0];
157
+ if (c.length < t.thousands.active && (c = Array(t.thousands.active - c.length + 1).join("0") + c), t.thousands.interval > 0) {
158
+ let u = [], b = c.split("").reverse().join("");
159
+ for (let o = 0, p = c.length; o <= p; o += t.thousands.interval) {
160
+ let l = b.substr(o, t.thousands.interval).split("").reverse().join("");
161
+ l !== "" && u.unshift(l);
162
+ }
163
+ c = u.join(t.thousands.separator);
164
+ }
165
+ n += c, h.length === 1 && h.push("");
166
+ let g = h[1];
167
+ return g.length < t.decimals.active && (g += Array(t.decimals.active - g.length + 1).join("0")), g !== "" && (n += t.decimals.separator + g), n === "" && (n = "0"), e !== 0 && i && s.indexOf("s") === -1 && (n = "-" + n), r && (n = r + n), a && (n += a), n;
168
+ }
169
+ applyPrefix(e, t, i = !1) {
170
+ let r = e, a = "", s = "", n = !1, h = 1;
171
+ for (let c = 0, g = t.length; c < g; c++)
172
+ t[c].number <= e && (t[c].number === 0 ? r = 0 : (r = e / t[c].number, h = t[c].number), a = t[c].prefix, s = t[c].suffix, n = !0);
173
+ return !n && i && t.length && e != 0 && (r = e / t[0].number, a = t[0].prefix, s = t[0].suffix, n = !0), n && (r = parseFloat(r.toPrecision(Math.min(h.toString().length + Math.floor(r).toString().replace(/[^0-9]*/g, "").length, 21)))), [r, a, s];
174
+ }
175
+ escape(e) {
176
+ return e.replace("||", J);
177
+ }
178
+ unescape(e) {
179
+ return e.replace(J, "|");
180
+ }
181
+ }
182
+ function it(d, e) {
183
+ let t = 0, i = 0, r = 1, a = 0, s = 0, n = 0, h = 0, c = 0;
184
+ return d.formatToParts(e).forEach((g) => {
185
+ switch (g.type) {
186
+ case "year":
187
+ t = +g.value;
188
+ break;
189
+ case "month":
190
+ i = +g.value - 1;
191
+ break;
192
+ case "day":
193
+ r = +g.value;
194
+ break;
195
+ case "hour":
196
+ a = +g.value;
197
+ break;
198
+ case "minute":
199
+ s = +g.value;
200
+ break;
201
+ case "second":
202
+ n = +g.value;
203
+ break;
204
+ case "fractionalSecond":
205
+ h = +g.value;
206
+ break;
207
+ case "weekday":
208
+ switch (g.value) {
209
+ case "Sun":
210
+ c = 0;
211
+ break;
212
+ case "Mon":
213
+ c = 1;
214
+ break;
215
+ case "Tue":
216
+ c = 2;
217
+ break;
218
+ case "Wed":
219
+ c = 3;
220
+ break;
221
+ case "Thu":
222
+ c = 4;
223
+ break;
224
+ case "Fri":
225
+ c = 5;
226
+ break;
227
+ case "Sat":
228
+ c = 6;
229
+ }
230
+ }
231
+ }), a === 24 && (a = 0), { year: t, month: i, day: r, hour: a, minute: s, second: n, millisecond: h, weekday: c };
232
+ }
233
+ function Ue(d, e) {
234
+ const { year: t, month: i, day: r, hour: a, minute: s, second: n, millisecond: h } = it(d, e);
235
+ return Date.UTC(t, i, r, a, s, n, h);
236
+ }
237
+ class Ut {
238
+ constructor(e, t) {
239
+ if (Object.defineProperty(this, "_utc", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_dtf", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "name", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), !t)
240
+ throw new Error("You cannot use `new Class()`, instead use `Class.new()`");
241
+ this.name = e, this._utc = new Intl.DateTimeFormat("UTC", { hour12: !1, timeZone: "UTC", year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", weekday: "short", fractionalSecondDigits: 3 }), this._dtf = new Intl.DateTimeFormat("UTC", { hour12: !1, timeZone: e, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", weekday: "short", fractionalSecondDigits: 3 });
242
+ }
243
+ static new(e) {
244
+ return new this(e, !0);
245
+ }
246
+ convertLocal(e) {
247
+ const t = this.offsetUTC(e), i = e.getTimezoneOffset(), r = new Date(e);
248
+ r.setUTCMinutes(r.getUTCMinutes() - (t - i));
249
+ const a = r.getTimezoneOffset();
250
+ return i != a && r.setUTCMinutes(r.getUTCMinutes() + a - i), r;
251
+ }
252
+ offsetUTC(e) {
253
+ return (Ue(this._utc, e) - Ue(this._dtf, e)) / 6e4;
254
+ }
255
+ parseDate(e) {
256
+ return it(this._dtf, e);
257
+ }
258
+ }
259
+ class Vt extends ee {
260
+ _setDefaults() {
261
+ this._setDefault("capitalize", !0), this._setDefault("dateFormat", "yyyy-MM-dd"), super._setDefaults();
262
+ }
263
+ _beforeChanged() {
264
+ super._beforeChanged();
265
+ }
266
+ format(e, t) {
267
+ let i;
268
+ t !== void 0 && t !== "" || (t = this.get("dateFormat", "yyyy-MM-dd"));
269
+ let r = e;
270
+ if (Je(t))
271
+ try {
272
+ const n = this.get("intlLocales");
273
+ return n ? new Intl.DateTimeFormat(n, t).format(r) : new Intl.DateTimeFormat(void 0, t).format(r);
274
+ } catch {
275
+ return "Invalid";
276
+ }
277
+ let a = this.parseFormat(t);
278
+ const s = this._root.timezone;
279
+ return s && !this._root.utc && (r = s.convertLocal(r)), H(r.getTime()) ? (i = this.applyFormat(r, a), this.get("capitalize") && (i = i.replace(/^.{1}/, i.substr(0, 1).toUpperCase())), i) : "Invalid date";
280
+ }
281
+ applyFormat(e, t) {
282
+ let i, r, a, s, n, h, c, g, u = t.template, b = e.getTime();
283
+ this._root.utc ? (i = e.getUTCFullYear(), r = e.getUTCMonth(), a = e.getUTCDay(), s = e.getUTCDate(), n = e.getUTCHours(), h = e.getUTCMinutes(), c = e.getUTCSeconds(), g = e.getUTCMilliseconds()) : (i = e.getFullYear(), r = e.getMonth(), a = e.getDay(), s = e.getDate(), n = e.getHours(), h = e.getMinutes(), c = e.getSeconds(), g = e.getMilliseconds());
284
+ for (let o = 0, p = t.parts.length; o < p; o++) {
285
+ let l = "";
286
+ switch (t.parts[o]) {
287
+ case "G":
288
+ l = this._t(i < 0 ? "_era_bc" : "_era_ad");
289
+ break;
290
+ case "yyyy":
291
+ l = Math.abs(i).toString(), i < 0 && (l += this._t("_era_bc"));
292
+ break;
293
+ case "yyy":
294
+ case "yy":
295
+ case "y":
296
+ l = Math.abs(i).toString().substr(-t.parts[o].length), i < 0 && (l += this._t("_era_bc"));
297
+ break;
298
+ case "YYYY":
299
+ case "YYY":
300
+ case "YY":
301
+ case "Y":
302
+ let m = kt(e, this._root.utc);
303
+ l = t.parts[o] == "YYYY" ? Math.abs(m).toString() : Math.abs(m).toString().substr(-t.parts[o].length), m < 0 && (l += this._t("_era_bc"));
304
+ break;
305
+ case "u":
306
+ case "F":
307
+ case "g":
308
+ break;
309
+ case "q":
310
+ l = "" + Math.ceil((e.getMonth() + 1) / 3);
311
+ break;
312
+ case "MMMMM":
313
+ l = this._t(this._getMonth(r)).substr(0, 1);
314
+ break;
315
+ case "MMMM":
316
+ l = this._t(this._getMonth(r));
317
+ break;
318
+ case "MMM":
319
+ l = this._t(this._getShortMonth(r));
320
+ break;
321
+ case "MM":
322
+ l = E(r + 1, 2, "0");
323
+ break;
324
+ case "M":
325
+ l = (r + 1).toString();
326
+ break;
327
+ case "ww":
328
+ l = E(Ye(e, this._root.utc), 2, "0");
329
+ break;
330
+ case "w":
331
+ l = Ye(e, this._root.utc).toString();
332
+ break;
333
+ case "W":
334
+ l = Ot(e, this._root.utc).toString();
335
+ break;
336
+ case "dd":
337
+ l = E(s, 2, "0");
338
+ break;
339
+ case "d":
340
+ l = s.toString();
341
+ break;
342
+ case "DD":
343
+ case "DDD":
344
+ l = E(Fe(e, this._root.utc).toString(), t.parts[o].length, "0");
345
+ break;
346
+ case "D":
347
+ l = Fe(e, this._root.utc).toString();
348
+ break;
349
+ case "t":
350
+ l = this._root.language.translateFunc("_dateOrd").call(this, s);
351
+ break;
352
+ case "E":
353
+ l = (a || 7).toString();
354
+ break;
355
+ case "EE":
356
+ l = E((a || 7).toString(), 2, "0");
357
+ break;
358
+ case "EEE":
359
+ case "eee":
360
+ l = this._t(this._getShortWeekday(a));
361
+ break;
362
+ case "EEEE":
363
+ case "eeee":
364
+ l = this._t(this._getWeekday(a));
365
+ break;
366
+ case "EEEEE":
367
+ case "eeeee":
368
+ l = this._t(this._getShortWeekday(a)).substr(0, 1);
369
+ break;
370
+ case "e":
371
+ case "ee":
372
+ l = (a - (this._root.locale.firstDayOfWeek || 1) + 1).toString(), t.parts[o] == "ee" && (l = E(l, 2, "0"));
373
+ break;
374
+ case "a":
375
+ l = n >= 12 ? this._t("PM") : this._t("AM");
376
+ break;
377
+ case "aa":
378
+ l = n >= 12 ? this._t("P.M.") : this._t("A.M.");
379
+ break;
380
+ case "aaa":
381
+ l = n >= 12 ? this._t("P") : this._t("A");
382
+ break;
383
+ case "h":
384
+ l = de(n).toString();
385
+ break;
386
+ case "hh":
387
+ l = E(de(n), 2, "0");
388
+ break;
389
+ case "H":
390
+ l = n.toString();
391
+ break;
392
+ case "HH":
393
+ l = E(n, 2, "0");
394
+ break;
395
+ case "K":
396
+ l = de(n, 0).toString();
397
+ break;
398
+ case "KK":
399
+ l = E(de(n, 0), 2, "0");
400
+ break;
401
+ case "k":
402
+ l = (n + 1).toString();
403
+ break;
404
+ case "kk":
405
+ l = E(n + 1, 2, "0");
406
+ break;
407
+ case "m":
408
+ l = h.toString();
409
+ break;
410
+ case "mm":
411
+ l = E(h, 2, "0");
412
+ break;
413
+ case "s":
414
+ l = c.toString();
415
+ break;
416
+ case "ss":
417
+ l = E(c, 2, "0");
418
+ break;
419
+ case "S":
420
+ case "SS":
421
+ case "SSS":
422
+ l = Math.round(g / 1e3 * Math.pow(10, t.parts[o].length)).toString();
423
+ break;
424
+ case "x":
425
+ l = b.toString();
426
+ break;
427
+ case "n":
428
+ case "nn":
429
+ case "nnn":
430
+ l = E(g, t.parts[o].length, "0");
431
+ break;
432
+ case "z":
433
+ l = ce(e, !1, !1, this._root.utc, this._root.timezone ? this._root.timezone.name : void 0).replace(/[+-]+[0-9]+$/, "");
434
+ break;
435
+ case "zz":
436
+ l = ce(e, !0, !1, this._root.utc, this._root.timezone ? this._root.timezone.name : void 0);
437
+ break;
438
+ case "zzz":
439
+ l = ce(e, !1, !0, this._root.utc, this._root.timezone ? this._root.timezone.name : void 0).replace(/[+-]+[0-9]+$/, "");
440
+ break;
441
+ case "zzzz":
442
+ l = ce(e, !0, !0, this._root.utc, this._root.timezone ? this._root.timezone.name : void 0);
443
+ break;
444
+ case "Z":
445
+ case "ZZ":
446
+ let _ = this._root.utc ? "UTC" : this._root.timezone;
447
+ _ instanceof Ut && (_ = _.name);
448
+ const w = _ ? Pt(_) : e.getTimezoneOffset();
449
+ let v = Math.abs(w) / 60, f = Math.floor(v), x = 60 * v - 60 * f;
450
+ this._root.utc && (f = 0, x = 0), t.parts[o] == "Z" ? (l = "GMT", l += w > 0 ? "-" : "+", l += E(f, 2) + ":" + E(x, 2)) : (l = w > 0 ? "-" : "+", l += E(f, 2) + E(x, 2));
451
+ break;
452
+ case "i":
453
+ l = e.toISOString();
454
+ break;
455
+ case "I":
456
+ l = e.toUTCString();
457
+ }
458
+ u = u.replace(Q, l);
459
+ }
460
+ return u;
461
+ }
462
+ parseFormat(e) {
463
+ let t = { template: "", parts: [] }, i = U.chunk(e, !0);
464
+ for (let r = 0; r < i.length; r++) {
465
+ let a = i[r];
466
+ if (a.type === "value") {
467
+ if (a.text.match(/^date$/i)) {
468
+ let n = this.get("dateFormat", "yyyy-MM-dd");
469
+ pe(n) || (n = "yyyy-MM-dd"), a.text = n;
470
+ }
471
+ let s = a.text.match(/G|yyyy|yyy|yy|y|YYYY|YYY|YY|Y|u|q|MMMMM|MMMM|MMM|MM|M|ww|w|W|dd|d|DDD|DD|D|F|g|EEEEE|EEEE|EEE|EE|E|eeeee|eeee|eee|ee|e|aaa|aa|a|hh|h|HH|H|KK|K|kk|k|mm|m|ss|s|SSS|SS|S|A|zzzz|zzz|zz|z|ZZ|Z|t|x|nnn|nn|n|i|I/g);
472
+ if (s)
473
+ for (let n = 0; n < s.length; n++)
474
+ t.parts.push(s[n]), a.text = a.text.replace(s[n], Q);
475
+ }
476
+ t.template += a.text;
477
+ }
478
+ return t;
479
+ }
480
+ _months() {
481
+ return ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
482
+ }
483
+ _getMonth(e) {
484
+ return this._months()[e];
485
+ }
486
+ _shortMonths() {
487
+ return ["Jan", "Feb", "Mar", "Apr", "May(short)", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
488
+ }
489
+ _getShortMonth(e) {
490
+ return this._shortMonths()[e];
491
+ }
492
+ _weekdays() {
493
+ return ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"];
494
+ }
495
+ _getWeekday(e) {
496
+ return this._weekdays()[e];
497
+ }
498
+ _shortWeekdays() {
499
+ return ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];
500
+ }
501
+ _getShortWeekday(e) {
502
+ return this._shortWeekdays()[e];
503
+ }
504
+ parse(e, t) {
505
+ if (e instanceof Date)
506
+ return e;
507
+ if (H(e))
508
+ return new Date(e);
509
+ if (t == "x")
510
+ return new Date(parseInt(e));
511
+ let i;
512
+ pe(e) || (e = e.toString());
513
+ let r = "";
514
+ t = (t = Ce(t)).substr(0, e.length);
515
+ let a = this.parseFormat(t), s = { 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 }, n = { year: 1970, month: 0, day: 1, hour: 0, minute: 0, second: 0, millisecond: 0, timestamp: null, offset: 0, utc: this._root.utc }, h = 0, c = 0;
516
+ for (let b = 0; b < a.parts.length; b++) {
517
+ switch (c = b + h + 1, a.parts[b]) {
518
+ case "yyyy":
519
+ case "YYYY":
520
+ r += "([0-9]{4})", s.year = c;
521
+ break;
522
+ case "yyy":
523
+ case "YYY":
524
+ r += "([0-9]{3})", s.year3 = c;
525
+ break;
526
+ case "yy":
527
+ case "YY":
528
+ r += "([0-9]{2})", s.year2 = c;
529
+ break;
530
+ case "y":
531
+ case "Y":
532
+ r += "([0-9]{1})", s.year1 = c;
533
+ break;
534
+ case "MMMM":
535
+ r += "(" + this.getStringList(this._months()).join("|") + ")", s.monthLong = c;
536
+ break;
537
+ case "MMM":
538
+ r += "(" + this.getStringList(this._shortMonths()).join("|") + ")", s.monthShort = c;
539
+ break;
540
+ case "MM":
541
+ case "M":
542
+ r += "([0-9]{2}|[0-9]{1})", s.month = c;
543
+ break;
544
+ case "ww":
545
+ case "w":
546
+ r += "([0-9]{2}|[0-9]{1})", s.week = c;
547
+ break;
548
+ case "dd":
549
+ case "d":
550
+ r += "([0-9]{2}|[0-9]{1})", s.day = c;
551
+ break;
552
+ case "DDD":
553
+ case "DD":
554
+ case "D":
555
+ r += "([0-9]{3}|[0-9]{2}|[0-9]{1})", s.yearDay = c;
556
+ break;
557
+ case "dddd":
558
+ r += "(" + this.getStringList(this._weekdays()).join("|") + ")", s.weekdayLong = c;
559
+ break;
560
+ case "ddd":
561
+ r += "(" + this.getStringList(this._shortWeekdays()).join("|") + ")", s.weekdayShort = c;
562
+ break;
563
+ case "aaa":
564
+ case "aa":
565
+ case "a":
566
+ r += "(" + this.getStringList(["AM", "PM", "A.M.", "P.M.", "A", "P"]).join("|") + ")", s.am = c;
567
+ break;
568
+ case "hh":
569
+ case "h":
570
+ r += "([0-9]{2}|[0-9]{1})", s.hour12Base1 = c;
571
+ break;
572
+ case "HH":
573
+ case "H":
574
+ r += "([0-9]{2}|[0-9]{1})", s.hourBase0 = c;
575
+ break;
576
+ case "KK":
577
+ case "K":
578
+ r += "([0-9]{2}|[0-9]{1})", s.hour12Base0 = c;
579
+ break;
580
+ case "kk":
581
+ case "k":
582
+ r += "([0-9]{2}|[0-9]{1})", s.hourBase1 = c;
583
+ break;
584
+ case "mm":
585
+ case "m":
586
+ r += "([0-9]{2}|[0-9]{1})", s.minute = c;
587
+ break;
588
+ case "ss":
589
+ case "s":
590
+ r += "([0-9]{2}|[0-9]{1})", s.second = c;
591
+ break;
592
+ case "SSS":
593
+ case "SS":
594
+ case "S":
595
+ r += "([0-9]{3}|[0-9]{2}|[0-9]{1})", s.millisecond = c, s.millisecondDigits = a.parts[b].length;
596
+ break;
597
+ case "nnn":
598
+ case "nn":
599
+ case "n":
600
+ r += "([0-9]{3}|[0-9]{2}|[0-9]{1})", s.millisecond = c;
601
+ break;
602
+ case "x":
603
+ r += "([0-9]{1,})", s.timestamp = c;
604
+ break;
605
+ case "Z":
606
+ r += "GMT([-+]+[0-9]{2}:[0-9]{2})", s.zone = c;
607
+ break;
608
+ case "ZZ":
609
+ r += "([\\-+]+[0-9]{2}[0-9]{2})", s.zone = c;
610
+ break;
611
+ case "i":
612
+ r += "([0-9]{4})-?([0-9]{2})-?([0-9]{2})T?([0-9]{2}):?([0-9]{2}):?([0-9]{2})\\.?([0-9]{0,3})([zZ]|[+\\-][0-9]{2}:?[0-9]{2}|$)", s.iso = c, h += 7;
613
+ break;
614
+ case "G":
615
+ case "YYYY":
616
+ case "YYY":
617
+ case "YY":
618
+ case "Y":
619
+ case "MMMMM":
620
+ case "W":
621
+ case "EEEEE":
622
+ case "EEEE":
623
+ case "EEE":
624
+ case "EE":
625
+ case "E":
626
+ case "eeeee":
627
+ case "eeee":
628
+ case "eee":
629
+ case "ee":
630
+ case "e":
631
+ case "zzzz":
632
+ case "zzz":
633
+ case "zz":
634
+ case "z":
635
+ case "t":
636
+ h--;
637
+ }
638
+ r += "[^0-9]*";
639
+ }
640
+ let g = new RegExp(r), u = e.match(g);
641
+ if (u) {
642
+ if (s.year > -1 && (n.year = parseInt(u[s.year])), s.year3 > -1) {
643
+ let b = parseInt(u[s.year3]);
644
+ b += 1e3, n.year = b;
645
+ }
646
+ if (s.year2 > -1) {
647
+ let b = parseInt(u[s.year2]);
648
+ b += b > 50 ? 1e3 : 2e3, n.year = b;
649
+ }
650
+ if (s.year1 > -1) {
651
+ let b = parseInt(u[s.year1]);
652
+ b = 10 * Math.floor((/* @__PURE__ */ new Date()).getFullYear() / 10) + b, n.year = b;
653
+ }
654
+ if (s.monthLong > -1 && (n.month = this.resolveMonth(u[s.monthLong])), s.monthShort > -1 && (n.month = this.resolveShortMonth(u[s.monthShort])), s.month > -1 && (n.month = parseInt(u[s.month]) - 1), s.week > -1 && s.day === -1 && (n.month = 0, n.day = Mt(parseInt(u[s.week]), n.year, 1, this._root.utc)), s.day > -1 && (n.day = parseInt(u[s.day])), s.yearDay > -1 && (n.month = 0, n.day = parseInt(u[s.yearDay])), s.hourBase0 > -1 && (n.hour = parseInt(u[s.hourBase0])), s.hourBase1 > -1 && (n.hour = parseInt(u[s.hourBase1]) - 1), s.hour12Base0 > -1) {
655
+ let b = parseInt(u[s.hour12Base0]);
656
+ b == 11 && (b = 0), s.am > -1 && !this.isAm(u[s.am]) && (b += 12), n.hour = b;
657
+ }
658
+ if (s.hour12Base1 > -1) {
659
+ let b = parseInt(u[s.hour12Base1]);
660
+ b == 12 && (b = 0), s.am > -1 && !this.isAm(u[s.am]) && (b += 12), n.hour = b;
661
+ }
662
+ if (s.minute > -1 && (n.minute = parseInt(u[s.minute])), s.second > -1 && (n.second = parseInt(u[s.second])), s.millisecond > -1) {
663
+ let b = parseInt(u[s.millisecond]);
664
+ s.millisecondDigits == 2 ? b *= 10 : s.millisecondDigits == 1 && (b *= 100), n.millisecond = b;
665
+ }
666
+ if (s.timestamp > -1) {
667
+ n.timestamp = parseInt(u[s.timestamp]);
668
+ const b = new Date(n.timestamp);
669
+ n.year = b.getUTCFullYear(), n.month = b.getUTCMonth(), n.day = b.getUTCDate(), n.hour = b.getUTCHours(), n.minute = b.getUTCMinutes(), n.second = b.getUTCSeconds(), n.millisecond = b.getUTCMilliseconds();
670
+ }
671
+ s.zone > -1 && (n.offset = this.resolveTimezoneOffset(new Date(n.year, n.month, n.day), u[s.zone])), s.iso > -1 && (n.year = R(u[s.iso + 0]), n.month = R(u[s.iso + 1]) - 1, n.day = R(u[s.iso + 2]), n.hour = R(u[s.iso + 3]), n.minute = R(u[s.iso + 4]), n.second = R(u[s.iso + 5]), n.millisecond = R(u[s.iso + 6]), u[s.iso + 7] == "Z" || u[s.iso + 7] == "z" ? n.utc = !0 : u[s.iso + 7] != "" && (n.offset = this.resolveTimezoneOffset(new Date(n.year, n.month, n.day), u[s.iso + 7]))), i = n.utc ? new Date(Date.UTC(n.year, n.month, n.day, n.hour, n.minute, n.second, n.millisecond)) : new Date(n.year, n.month, n.day, n.hour, n.minute + n.offset, n.second, n.millisecond);
672
+ } else
673
+ i = new Date(e);
674
+ return i;
675
+ }
676
+ resolveTimezoneOffset(e, t) {
677
+ if (t.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/)) {
678
+ let i = t.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/), r = i[1], a = i[2], s = i[3], n = 60 * parseInt(a) + parseInt(s);
679
+ return r == "+" && (n *= -1), n - (e || /* @__PURE__ */ new Date()).getTimezoneOffset();
680
+ }
681
+ return 0;
682
+ }
683
+ resolveMonth(e) {
684
+ let t = this._months().indexOf(e);
685
+ return t > -1 || !this._root.language.isDefault() && (t = this._root.language.translateAll(this._months()).indexOf(e), t > -1) ? t : 0;
686
+ }
687
+ resolveShortMonth(e) {
688
+ let t = this._shortMonths().indexOf(e);
689
+ return t > -1 ? t : (t = this._months().indexOf(e), t > -1 || this._root.language && !this._root.language.isDefault() && (t = this._root.language.translateAll(this._shortMonths()).indexOf(e), t > -1) ? t : 0);
690
+ }
691
+ isAm(e) {
692
+ return this.getStringList(["AM", "A.M.", "A"]).indexOf(e.toUpperCase()) > -1;
693
+ }
694
+ getStringList(e) {
695
+ let t = [];
696
+ for (let i = 0; i < e.length; i++)
697
+ this._root.language ? t.push(Ie(this._t(e[i]))) : t.push(Ie(e[i]));
698
+ return t;
699
+ }
700
+ }
701
+ class $t extends ee {
702
+ constructor() {
703
+ super(...arguments), Object.defineProperty(this, "_unitAliases", { enumerable: !0, configurable: !0, writable: !0, value: { Y: "y", D: "d", H: "h", K: "h", k: "h", n: "S" } });
704
+ }
705
+ _setDefaults() {
706
+ const e = "_duration_millisecond", t = "_duration_second", i = "_duration_minute", r = "_duration_hour", a = "_duration_day", s = "_duration_week", n = "_duration_month", h = "_duration_year", c = "_second", g = "_minute", u = "_hour", b = "_day", o = "_week", p = "_week", l = "_year";
707
+ this._setDefault("negativeBase", 0), this._setDefault("baseUnit", "second"), this._setDefault("durationFormats", { millisecond: { millisecond: this._t(e), second: this._t(e + c), minute: this._t(e + g), hour: this._t(e + u), day: this._t(e + b), week: this._t(e + o), month: this._t(e + p), year: this._t(e + l) }, second: { second: this._t(t), minute: this._t(t + g), hour: this._t(t + u), day: this._t(t + b), week: this._t(t + o), month: this._t(t + p), year: this._t(t + l) }, minute: { minute: this._t(i), hour: this._t(i + u), day: this._t(i + b), week: this._t(i + o), month: this._t(i + p), year: this._t(i + l) }, hour: { hour: this._t(r), day: this._t(r + b), week: this._t(r + o), month: this._t(r + p), year: this._t(r + l) }, day: { day: this._t(a), week: this._t(a + o), month: this._t(a + p), year: this._t(a + l) }, week: { week: this._t(s), month: this._t(s + p), year: this._t(s + l) }, month: { month: this._t(n), year: this._t(n + l) }, year: { year: this._t(h) } }), super._setDefaults();
708
+ }
709
+ _beforeChanged() {
710
+ super._beforeChanged();
711
+ }
712
+ format(e, t, i) {
713
+ let r = i || this.get("baseUnit");
714
+ t !== void 0 && t !== "" || (t = this.get("durationFormat") != null ? this.get("durationFormat") : this.getFormat(R(e), void 0, r)), t = Ce(t);
715
+ let a, s = this.parseFormat(t, r), n = Number(e);
716
+ a = n > this.get("negativeBase") ? s.positive : n < this.get("negativeBase") ? s.negative : s.zero;
717
+ let h = this.applyFormat(n, a);
718
+ return a.color !== "" && (h = "[" + a.color + "]" + h + "[/]"), h;
719
+ }
720
+ parseFormat(e, t) {
721
+ let i = t || this.get("baseUnit"), r = { positive: { color: "", template: "", parts: [], source: "", baseUnit: i, parsed: !1, absolute: !1 }, negative: { color: "", template: "", parts: [], source: "", baseUnit: i, parsed: !1, absolute: !1 }, zero: { color: "", template: "", parts: [], source: "", baseUnit: i, parsed: !1, absolute: !1 } }, a = (e = e.replace("||", J)).split("|");
722
+ return r.positive.source = a[0], a[2] === void 0 ? r.zero = r.positive : r.zero.source = a[2], a[1] === void 0 ? r.negative = r.positive : r.negative.source = a[1], he(r, (s, n) => {
723
+ if (n.parsed)
724
+ return;
725
+ let h = n.source, c = [];
726
+ c = n.source.match(/^\[([^\]]*)\]/), c && c.length && c[0] !== "" && (h = n.source.substr(c[0].length), n.color = c[1]);
727
+ let g = U.chunk(h, !0);
728
+ for (let u = 0; u < g.length; u++) {
729
+ let b = g[u];
730
+ if (b.text = b.text.replace(J, "|"), b.type === "value") {
731
+ b.text.match(/[yYMdDwhHKkmsSn]+a/) && (n.absolute = !0, b.text = b.text.replace(/([yYMdDwhHKkmsSn]+)a/, "$1"));
732
+ let o = b.text.match(/y+|Y+|M+|d+|D+|w+|h+|H+|K+|k+|m+|s+|S+|n+/g);
733
+ if (o)
734
+ for (let p = 0; p < o.length; p++)
735
+ o[p] == null && (o[p] = this._unitAliases[o[p]]), n.parts.push(o[p]), b.text = b.text.replace(o[p], Q);
736
+ }
737
+ n.template += b.text;
738
+ }
739
+ n.parsed = !0;
740
+ }), r;
741
+ }
742
+ applyFormat(e, t) {
743
+ let i = !t.absolute && e < this.get("negativeBase");
744
+ e = Math.abs(e);
745
+ let r = this.toTimeStamp(e, t.baseUnit), a = t.template;
746
+ for (let s = 0, n = t.parts.length; s < n; s++) {
747
+ let h = t.parts[s], c = this._toTimeUnit(h.substr(0, 1)), g = h.length, u = Math.floor(r / this._getUnitValue(c));
748
+ a = a.replace(Q, E(u, g, "0")), r -= u * this._getUnitValue(c);
749
+ }
750
+ return i && (a = "-" + a), a;
751
+ }
752
+ toTimeStamp(e, t) {
753
+ return e * this._getUnitValue(t);
754
+ }
755
+ _toTimeUnit(e) {
756
+ switch (e) {
757
+ case "S":
758
+ return "millisecond";
759
+ case "s":
760
+ return "second";
761
+ case "m":
762
+ return "minute";
763
+ case "h":
764
+ return "hour";
765
+ case "d":
766
+ return "day";
767
+ case "w":
768
+ return "week";
769
+ case "M":
770
+ return "month";
771
+ case "y":
772
+ return "year";
773
+ }
774
+ }
775
+ getFormat(e, t, i) {
776
+ if (this.get("durationFormat") != null)
777
+ return this.get("durationFormat");
778
+ if (i || (i = this.get("baseUnit")), t != null && e != t) {
779
+ e = Math.abs(e), t = Math.abs(t);
780
+ let r = this.getValueUnit(Math.max(e, t), i);
781
+ return this.get("durationFormats")[i][r];
782
+ }
783
+ {
784
+ let r = this.getValueUnit(e, i);
785
+ return this.get("durationFormats")[i][r];
786
+ }
787
+ }
788
+ getValueUnit(e, t) {
789
+ let i;
790
+ t || (t = this.get("baseUnit"));
791
+ let r = this.getMilliseconds(e, t);
792
+ return St(this._getUnitValues(), (a, s) => {
793
+ if (a == t || i) {
794
+ if (r / s <= 1)
795
+ return i || (i = a), !1;
796
+ i = a;
797
+ }
798
+ return !0;
799
+ }), i;
800
+ }
801
+ getMilliseconds(e, t) {
802
+ return t || (t = this.get("baseUnit")), e * this._getUnitValue(t);
803
+ }
804
+ _getUnitValue(e) {
805
+ return this._getUnitValues()[e];
806
+ }
807
+ _getUnitValues() {
808
+ return { millisecond: 1, second: 1e3, minute: 6e4, hour: 36e5, day: 864e5, week: 6048e5, month: 2592e6, year: 31536e6 };
809
+ }
810
+ }
811
+ const rt = { firstDayOfWeek: 1, _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: "μ", _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_millisecond_full: "HH:mm:ss SSS", _date_second: "HH:mm:ss", _date_second_full: "HH:mm:ss", _date_minute: "HH:mm", _date_minute_full: "HH:mm - MMM dd, yyyy", _date_hour: "HH:mm", _date_hour_full: "HH:mm - MMM dd, yyyy", _date_day: "MMM dd", _date_day_full: "MMM dd, yyyy", _date_week: "ww", _date_week_full: "MMM dd, yyyy", _date_month: "MMM", _date_month_full: "MMM, yyyy", _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: "", 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(d) {
812
+ let e = "th";
813
+ if (d < 11 || d > 13)
814
+ switch (d % 10) {
815
+ case 1:
816
+ e = "st";
817
+ break;
818
+ case 2:
819
+ e = "nd";
820
+ break;
821
+ case 3:
822
+ e = "rd";
823
+ }
824
+ return e;
825
+ }, "Zoom Out": "", Play: "", Stop: "", Legend: "", "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": "", "Press ENTER to open": "", "Press ENTER to print.": "", "Press ENTER to export as %1.": "", "(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: "", HTML: "", "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: "" };
826
+ class Xt extends ee {
827
+ _setDefaults() {
828
+ this.setPrivate("defaultLocale", rt), super._setDefaults();
829
+ }
830
+ translate(e, t, ...i) {
831
+ t || (t = this._root.locale || this.getPrivate("defaultLocale"));
832
+ let r = e, a = t[e];
833
+ if (a === null)
834
+ r = "";
835
+ else if (a != null)
836
+ a && (r = a);
837
+ else if (t !== this.getPrivate("defaultLocale"))
838
+ return this.translate(e, this.getPrivate("defaultLocale"), ...i);
839
+ if (i.length)
840
+ for (let s = i.length, n = 0; n < s; ++n)
841
+ r = r.split("%" + (n + 1)).join(i[n]);
842
+ return r;
843
+ }
844
+ translateAny(e, t, ...i) {
845
+ return this.translate(e, t, ...i);
846
+ }
847
+ setTranslationAny(e, t, i) {
848
+ (i || this._root.locale)[e] = t;
849
+ }
850
+ setTranslationsAny(e, t) {
851
+ he(e, (i, r) => {
852
+ this.setTranslationAny(i, r, t);
853
+ });
854
+ }
855
+ translateEmpty(e, t, ...i) {
856
+ let r = this.translate(e, t, ...i);
857
+ return r == e ? "" : r;
858
+ }
859
+ translateFunc(e, t) {
860
+ return this._root.locale[e] ? this._root.locale[e] : t !== this.getPrivate("defaultLocale") ? this.translateFunc(e, this.getPrivate("defaultLocale")) : () => "";
861
+ }
862
+ translateAll(e, t) {
863
+ return this.isDefault() ? e : jt(e, (i) => this.translate(i, t));
864
+ }
865
+ isDefault() {
866
+ return this.getPrivate("defaultLocale") === this._root.locale;
867
+ }
868
+ }
869
+ class Oe {
870
+ constructor(e = 1, t = 0, i = 0, r = 1, a = 0, s = 0) {
871
+ Object.defineProperty(this, "a", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "b", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "c", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "d", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "tx", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "ty", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), this.a = e, this.b = t, this.c = i, this.d = r, this.tx = a, this.ty = s;
872
+ }
873
+ setTransform(e, t, i, r, a, s = 1) {
874
+ this.a = Math.cos(a) * s, this.b = Math.sin(a) * s, this.c = -Math.sin(a) * s, this.d = Math.cos(a) * s, this.tx = e - (i * this.a + r * this.c), this.ty = t - (i * this.b + r * this.d);
875
+ }
876
+ apply(e) {
877
+ return { x: this.a * e.x + this.c * e.y + this.tx, y: this.b * e.x + this.d * e.y + this.ty };
878
+ }
879
+ applyInverse(e) {
880
+ const t = 1 / (this.a * this.d + this.c * -this.b);
881
+ return { x: this.d * t * e.x + -this.c * t * e.y + (this.ty * this.c - this.tx * this.d) * t, y: this.a * t * e.y + -this.b * t * e.x + (-this.ty * this.a + this.tx * this.b) * t };
882
+ }
883
+ append(e) {
884
+ const t = this.a, i = this.b, r = this.c, a = this.d;
885
+ this.a = e.a * t + e.b * r, this.b = e.a * i + e.b * a, this.c = e.c * t + e.d * r, this.d = e.c * i + e.d * a, this.tx = e.tx * t + e.ty * r + this.tx, this.ty = e.tx * i + e.ty * a + this.ty;
886
+ }
887
+ prepend(e) {
888
+ const t = this.tx;
889
+ if (e.a !== 1 || e.b !== 0 || e.c !== 0 || e.d !== 1) {
890
+ const i = this.a, r = this.c;
891
+ this.a = i * e.a + this.b * e.c, this.b = i * e.b + this.b * e.d, this.c = r * e.a + this.d * e.c, this.d = r * e.b + this.d * e.d;
892
+ }
893
+ this.tx = t * e.a + this.ty * e.c + e.tx, this.ty = t * e.b + this.ty * e.d + e.ty;
894
+ }
895
+ copyFrom(e) {
896
+ this.a = e.a, this.b = e.b, this.c = e.c, this.d = e.d, this.tx = e.tx, this.ty = e.ty;
897
+ }
898
+ }
899
+ var Gt = function() {
900
+ function d(e, t) {
901
+ var i = [], r = !0, a = !1, s = void 0;
902
+ try {
903
+ for (var n, h = e[Symbol.iterator](); !(r = (n = h.next()).done) && (i.push(n.value), !t || i.length !== t); r = !0)
904
+ ;
905
+ } catch (c) {
906
+ a = !0, s = c;
907
+ } finally {
908
+ try {
909
+ !r && h.return && h.return();
910
+ } finally {
911
+ if (a)
912
+ throw s;
913
+ }
914
+ }
915
+ return i;
916
+ }
917
+ return function(e, t) {
918
+ if (Array.isArray(e))
919
+ return e;
920
+ if (Symbol.iterator in Object(e))
921
+ return d(e, t);
922
+ throw new TypeError("Invalid attempt to destructure non-iterable instance");
923
+ };
924
+ }(), le = 2 * Math.PI, ke = function(d, e, t, i, r, a, s) {
925
+ var n = d.x, h = d.y;
926
+ return { x: i * (n *= e) - r * (h *= t) + a, y: r * n + i * h + s };
927
+ }, Nt = function(d, e) {
928
+ var t = e === 1.5707963267948966 ? 0.551915024494 : e === -1.5707963267948966 ? -0.551915024494 : 1.3333333333333333 * Math.tan(e / 4), i = Math.cos(d), r = Math.sin(d), a = Math.cos(d + e), s = Math.sin(d + e);
929
+ return [{ x: i - r * t, y: r + i * t }, { x: a + s * t, y: s - a * t }, { x: a, y: s }];
930
+ }, Ve = function(d, e, t, i) {
931
+ var r = d * t + e * i;
932
+ return r > 1 && (r = 1), r < -1 && (r = -1), (d * i - e * t < 0 ? -1 : 1) * Math.acos(r);
933
+ }, qt = function(d, e, t, i, r, a, s, n, h, c, g, u) {
934
+ var b = Math.pow(r, 2), o = Math.pow(a, 2), p = Math.pow(g, 2), l = Math.pow(u, 2), m = b * o - b * l - o * p;
935
+ m < 0 && (m = 0), m /= b * l + o * p;
936
+ var _ = (m = Math.sqrt(m) * (s === n ? -1 : 1)) * r / a * u, w = m * -a / r * g, v = c * _ - h * w + (d + t) / 2, f = h * _ + c * w + (e + i) / 2, x = (g - _) / r, A = (u - w) / a, k = (-g - _) / r, S = (-u - w) / a, B = Ve(1, 0, x, A), P = Ve(x, A, k, S);
937
+ return n === 0 && P > 0 && (P -= le), n === 1 && P < 0 && (P += le), [v, f, B, P];
938
+ }, Zt = function(d) {
939
+ var e = d.px, t = d.py, i = d.cx, r = d.cy, a = d.rx, s = d.ry, n = d.xAxisRotation, h = n === void 0 ? 0 : n, c = d.largeArcFlag, g = c === void 0 ? 0 : c, u = d.sweepFlag, b = u === void 0 ? 0 : u, o = [];
940
+ if (a === 0 || s === 0)
941
+ return [];
942
+ var p = Math.sin(h * le / 360), l = Math.cos(h * le / 360), m = l * (e - i) / 2 + p * (t - r) / 2, _ = -p * (e - i) / 2 + l * (t - r) / 2;
943
+ if (m === 0 && _ === 0)
944
+ return [];
945
+ a = Math.abs(a), s = Math.abs(s);
946
+ var w = Math.pow(m, 2) / Math.pow(a, 2) + Math.pow(_, 2) / Math.pow(s, 2);
947
+ w > 1 && (a *= Math.sqrt(w), s *= Math.sqrt(w));
948
+ var v = qt(e, t, i, r, a, s, g, b, p, l, m, _), f = Gt(v, 4), x = f[0], A = f[1], k = f[2], S = f[3], B = Math.abs(S) / (le / 4);
949
+ Math.abs(1 - B) < 1e-7 && (B = 1);
950
+ var P = Math.max(Math.ceil(B), 1);
951
+ S /= P;
952
+ for (var z = 0; z < P; z++)
953
+ o.push(Nt(k, S)), k += S;
954
+ return o.map(function(D) {
955
+ var I = ke(D[0], a, s, l, p, x, A), G = I.x, T = I.y, ue = ke(D[1], a, s, l, p, x, A), O = ue.x, F = ue.y, Y = ke(D[2], a, s, l, p, x, A);
956
+ return { x1: G, y1: T, x2: O, y2: F, x: Y.x, y: Y.y };
957
+ });
958
+ };
959
+ function Kt(d, e, t) {
960
+ if (e !== t)
961
+ throw new Error("Required " + t + " arguments for " + d + " but got " + e);
962
+ }
963
+ function ae(d, e, t) {
964
+ if (e < t)
965
+ throw new Error("Required at least " + t + " arguments for " + d + " but got " + e);
966
+ }
967
+ function L(d, e, t) {
968
+ if (ae(d, e, t), e % t != 0)
969
+ throw new Error("Arguments for " + d + " must be in pairs of " + t);
970
+ }
971
+ function Jt(d) {
972
+ for (let e = 0; e < d.length; e += 7) {
973
+ let t = e + 3, i = d[t];
974
+ if (i.length > 1) {
975
+ const r = /^([01])([01])(.*)$/.exec(i);
976
+ r !== null && (d.splice(t, 0, r[1]), ++t, d.splice(t, 0, r[2]), ++t, r[3].length > 0 ? d[t] = r[3] : d.splice(t, 1));
977
+ }
978
+ if (++t, i = d[t], i.length > 1) {
979
+ const r = /^([01])(.+)$/.exec(i);
980
+ r !== null && (d.splice(t, 0, r[1]), ++t, d[t] = r[2]);
981
+ }
982
+ }
983
+ }
984
+ function $e(d) {
985
+ if (d === 0 || d === 1)
986
+ return d;
987
+ throw new Error("Flag must be 0 or 1");
988
+ }
989
+ function Qt(d) {
990
+ const e = [0, 0, 0];
991
+ for (let t = 0; t < 24; t++)
992
+ e[t % 3] <<= 1, e[t % 3] |= 1 & d, d >>= 1;
993
+ return (0 | e[0]) + (e[1] << 8) + (e[2] << 16);
994
+ }
995
+ function fe(d, e) {
996
+ for (; (!d.interactive || e(d)) && d._parent; )
997
+ d = d._parent;
998
+ }
999
+ function ei(d, e, t) {
1000
+ return C(d, Ee(e), (i) => {
1001
+ const r = Qe(i);
1002
+ let a = i.touches;
1003
+ a ? (a.length == 0 && (a = i.changedTouches), t(Bt(a), r)) : t([i], r);
1004
+ });
1005
+ }
1006
+ function Xe(d) {
1007
+ const e = document.createElement("canvas");
1008
+ e.width = 1, e.height = 1;
1009
+ const t = e.getContext("2d", { willReadFrequently: !0 });
1010
+ t.drawImage(d, 0, 0, 1, 1);
1011
+ try {
1012
+ return t.getImageData(0, 0, 1, 1), !1;
1013
+ } catch {
1014
+ return console.warn('Image "' + d.src + '" is loaded from different host and is not covered by CORS policy. For more information about the implications read here: https://www.amcharts.com/docs/v5/concepts/cors'), !0;
1015
+ }
1016
+ }
1017
+ function ne(d) {
1018
+ d.width = 0, d.height = 0, d.style.width = "0px", d.style.height = "0px";
1019
+ }
1020
+ function Ge(d) {
1021
+ return Math.floor(d) + 0.5;
1022
+ }
1023
+ class ti {
1024
+ constructor() {
1025
+ Object.defineProperty(this, "_x", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), Object.defineProperty(this, "_y", { enumerable: !0, configurable: !0, writable: !0, value: 0 });
1026
+ }
1027
+ get x() {
1028
+ return this._x;
1029
+ }
1030
+ get y() {
1031
+ return this._y;
1032
+ }
1033
+ set x(e) {
1034
+ this._x = e;
1035
+ }
1036
+ set y(e) {
1037
+ this._y = e;
1038
+ }
1039
+ }
1040
+ class ve extends zt {
1041
+ constructor(e) {
1042
+ super(), Object.defineProperty(this, "_layer", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "mask", { enumerable: !0, configurable: !0, writable: !0, value: null }), Object.defineProperty(this, "visible", { enumerable: !0, configurable: !0, writable: !0, value: !0 }), Object.defineProperty(this, "exportable", { enumerable: !0, configurable: !0, writable: !0, value: !0 }), Object.defineProperty(this, "interactive", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "inactive", { enumerable: !0, configurable: !0, writable: !0, value: null }), Object.defineProperty(this, "wheelable", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "cancelTouch", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "isMeasured", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "buttonMode", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "alpha", { enumerable: !0, configurable: !0, writable: !0, value: 1 }), Object.defineProperty(this, "compoundAlpha", { enumerable: !0, configurable: !0, writable: !0, value: 1 }), Object.defineProperty(this, "angle", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), Object.defineProperty(this, "scale", { enumerable: !0, configurable: !0, writable: !0, value: 1 }), Object.defineProperty(this, "x", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), Object.defineProperty(this, "y", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), Object.defineProperty(this, "crisp", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "pivot", { enumerable: !0, configurable: !0, writable: !0, value: new ti() }), Object.defineProperty(this, "filter", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "cursorOverStyle", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_replacedCursorStyle", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_localMatrix", { enumerable: !0, configurable: !0, writable: !0, value: new Oe() }), Object.defineProperty(this, "_matrix", { enumerable: !0, configurable: !0, writable: !0, value: new Oe() }), Object.defineProperty(this, "_uMatrix", { enumerable: !0, configurable: !0, writable: !0, value: new Oe() }), Object.defineProperty(this, "_renderer", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_parent", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_localBounds", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_bounds", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_colorId", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), this._renderer = e;
1043
+ }
1044
+ subStatus(e) {
1045
+ return { inactive: this.inactive == null ? e.inactive : this.inactive, layer: this._layer || e.layer };
1046
+ }
1047
+ _dispose() {
1048
+ this._renderer._removeObject(this), this.getLayer().dirty = !0;
1049
+ }
1050
+ getCanvas() {
1051
+ return this.getLayer().view;
1052
+ }
1053
+ getLayer() {
1054
+ let e = this;
1055
+ for (; ; ) {
1056
+ if (e._layer)
1057
+ return e._layer;
1058
+ if (!e._parent)
1059
+ return this._renderer.defaultLayer;
1060
+ e = e._parent;
1061
+ }
1062
+ }
1063
+ setLayer(e, t) {
1064
+ e == null ? this._layer = void 0 : (this._layer = this._renderer.getLayer(e, !0), this._layer.visible = !0, this._layer.margin = t, t && K(this._layer.view, !1), this._renderer._ghostLayer.setMargin(this._renderer.layers), this._parent && this._parent.registerChildLayer(this._layer), this._layer.dirty = !0, this._renderer.resizeLayer(this._layer), this._renderer.resizeGhost());
1065
+ }
1066
+ markDirtyLayer() {
1067
+ this.getLayer().dirty = !0;
1068
+ }
1069
+ clear() {
1070
+ this.invalidateBounds();
1071
+ }
1072
+ invalidateBounds() {
1073
+ this._localBounds = void 0;
1074
+ }
1075
+ _addBounds(e) {
1076
+ }
1077
+ _getColorId() {
1078
+ return this._colorId === void 0 && (this._colorId = this._renderer.paintId(this)), this._colorId;
1079
+ }
1080
+ _isInteractive(e) {
1081
+ return !e.inactive && (this.interactive || this._renderer._forceInteractive > 0);
1082
+ }
1083
+ _isInteractiveMask(e) {
1084
+ return this._isInteractive(e);
1085
+ }
1086
+ contains(e) {
1087
+ for (; ; ) {
1088
+ if (e === this)
1089
+ return !0;
1090
+ if (!e._parent)
1091
+ return !1;
1092
+ e = e._parent;
1093
+ }
1094
+ }
1095
+ toGlobal(e) {
1096
+ return this._matrix.apply(e);
1097
+ }
1098
+ toLocal(e) {
1099
+ return this._matrix.applyInverse(e);
1100
+ }
1101
+ getLocalMatrix() {
1102
+ return this._uMatrix.setTransform(0, 0, this.pivot.x, this.pivot.y, this.angle * Math.PI / 180, this.scale), this._uMatrix;
1103
+ }
1104
+ getLocalBounds() {
1105
+ return this._localBounds || (this._localBounds = { left: 1e7, top: 1e7, right: -1e7, bottom: -1e7 }, this._addBounds(this._localBounds)), this._localBounds;
1106
+ }
1107
+ getAdjustedBounds(e) {
1108
+ this._setMatrix();
1109
+ const t = this.getLocalMatrix(), i = t.apply({ x: e.left, y: e.top }), r = t.apply({ x: e.right, y: e.top }), a = t.apply({ x: e.right, y: e.bottom }), s = t.apply({ x: e.left, y: e.bottom });
1110
+ return { left: Math.min(i.x, r.x, a.x, s.x), top: Math.min(i.y, r.y, a.y, s.y), right: Math.max(i.x, r.x, a.x, s.x), bottom: Math.max(i.y, r.y, a.y, s.y) };
1111
+ }
1112
+ on(e, t, i) {
1113
+ return this.interactive ? this._renderer._addEvent(this, e, t, i) : new $(() => {
1114
+ });
1115
+ }
1116
+ _setMatrix() {
1117
+ this._localMatrix.setTransform(this.x, this.y, this.pivot.x, this.pivot.y, this.angle * Math.PI / 180, this.scale), this._matrix.copyFrom(this._localMatrix), this._parent && this._matrix.prepend(this._parent._matrix);
1118
+ }
1119
+ _transform(e, t) {
1120
+ const i = this._matrix;
1121
+ let r = i.tx * t, a = i.ty * t;
1122
+ this.crisp && (r = Ge(r), a = Ge(a)), e.setTransform(i.a * t, i.b * t, i.c * t, i.d * t, r, a);
1123
+ }
1124
+ _transformMargin(e, t, i) {
1125
+ const r = this._matrix;
1126
+ e.setTransform(r.a * t, r.b * t, r.c * t, r.d * t, (r.tx + i.left) * t, (r.ty + i.top) * t);
1127
+ }
1128
+ _transformLayer(e, t, i) {
1129
+ i.margin ? this._transformMargin(e, i.scale || t, i.margin) : this._transform(e, i.scale || t);
1130
+ }
1131
+ render(e) {
1132
+ if (this.visible && (this.exportable !== !1 || !this._renderer._omitTainted)) {
1133
+ this._setMatrix();
1134
+ const t = this.subStatus(e), i = this._renderer.resolution, r = this._renderer.layers, a = this._renderer._ghostLayer, s = a.context, n = this.mask;
1135
+ n && n._setMatrix(), y(r, (h) => {
1136
+ if (h) {
1137
+ const c = h.context;
1138
+ c.save(), n && (n._transformLayer(c, i, h), n._runPath(c), c.clip()), c.globalAlpha = this.compoundAlpha * this.alpha, this._transformLayer(c, i, h), this.filter && (c.filter = this.filter);
1139
+ }
1140
+ }), s.save(), n && this._isInteractiveMask(t) && (n._transformMargin(s, i, a.margin), n._runPath(s), s.clip()), this._transformMargin(s, i, a.margin), this._render(t), s.restore(), y(r, (h) => {
1141
+ h && h.context.restore();
1142
+ });
1143
+ }
1144
+ }
1145
+ _render(e) {
1146
+ this.exportable === !1 && (e.layer.tainted = !0);
1147
+ }
1148
+ hovering() {
1149
+ return this._renderer._hovering.has(this);
1150
+ }
1151
+ dragging() {
1152
+ return this._renderer._dragging.some((e) => e.value === this);
1153
+ }
1154
+ shouldCancelTouch() {
1155
+ const e = this._renderer;
1156
+ return !(e.tapToActivate && !e._touchActive) && (!!this.cancelTouch || !!this._parent && this._parent.shouldCancelTouch());
1157
+ }
1158
+ }
1159
+ class ii extends ve {
1160
+ constructor() {
1161
+ super(...arguments), Object.defineProperty(this, "interactiveChildren", { enumerable: !0, configurable: !0, writable: !0, value: !0 }), Object.defineProperty(this, "_childLayers", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_children", { enumerable: !0, configurable: !0, writable: !0, value: [] });
1162
+ }
1163
+ _isInteractiveMask(e) {
1164
+ return this.interactiveChildren || super._isInteractiveMask(e);
1165
+ }
1166
+ addChild(e) {
1167
+ e._parent = this, this._children.push(e), e._layer && this.registerChildLayer(e._layer);
1168
+ }
1169
+ addChildAt(e, t) {
1170
+ e._parent = this, this._children.splice(t, 0, e), e._layer && this.registerChildLayer(e._layer);
1171
+ }
1172
+ removeChild(e) {
1173
+ e._parent = void 0, Te(this._children, e);
1174
+ }
1175
+ _render(e) {
1176
+ super._render(e);
1177
+ const t = this._renderer;
1178
+ this.interactive && this.interactiveChildren && ++t._forceInteractive, y(this._children, (i) => {
1179
+ i.compoundAlpha = this.compoundAlpha * this.alpha, i.render(e);
1180
+ }), this.interactive && this.interactiveChildren && --t._forceInteractive;
1181
+ }
1182
+ registerChildLayer(e) {
1183
+ this._childLayers || (this._childLayers = []), je(this._childLayers, e), this._parent && this._parent.registerChildLayer(e);
1184
+ }
1185
+ markDirtyLayer(e = !1) {
1186
+ super.markDirtyLayer(), e && this._childLayers && y(this._childLayers, (t) => t.dirty = !0);
1187
+ }
1188
+ _dispose() {
1189
+ super._dispose(), this._childLayers && y(this._childLayers, (e) => {
1190
+ e.dirty = !0;
1191
+ });
1192
+ }
1193
+ }
1194
+ function M(d, e) {
1195
+ d.left = Math.min(d.left, e.x), d.top = Math.min(d.top, e.y), d.right = Math.max(d.right, e.x), d.bottom = Math.max(d.bottom, e.y);
1196
+ }
1197
+ class j {
1198
+ colorize(e, t) {
1199
+ }
1200
+ path(e) {
1201
+ }
1202
+ addBounds(e) {
1203
+ }
1204
+ }
1205
+ class ri extends j {
1206
+ colorize(e, t) {
1207
+ e.beginPath();
1208
+ }
1209
+ }
1210
+ class Me extends j {
1211
+ constructor(e) {
1212
+ super(), Object.defineProperty(this, "color", { enumerable: !0, configurable: !0, writable: !0, value: e });
1213
+ }
1214
+ colorize(e, t) {
1215
+ e.fillStyle = t !== void 0 ? t : this.color;
1216
+ }
1217
+ }
1218
+ class si extends j {
1219
+ constructor(e) {
1220
+ super(), Object.defineProperty(this, "clearShadow", { enumerable: !0, configurable: !0, writable: !0, value: e });
1221
+ }
1222
+ colorize(e, t) {
1223
+ e.fill(), this.clearShadow && (e.shadowColor = "", e.shadowBlur = 0, e.shadowOffsetX = 0, e.shadowOffsetY = 0);
1224
+ }
1225
+ }
1226
+ class ai extends j {
1227
+ colorize(e, t) {
1228
+ e.stroke();
1229
+ }
1230
+ }
1231
+ class Se extends j {
1232
+ constructor(e, t, i) {
1233
+ super(), Object.defineProperty(this, "width", { enumerable: !0, configurable: !0, writable: !0, value: e }), Object.defineProperty(this, "color", { enumerable: !0, configurable: !0, writable: !0, value: t }), Object.defineProperty(this, "lineJoin", { enumerable: !0, configurable: !0, writable: !0, value: i });
1234
+ }
1235
+ colorize(e, t) {
1236
+ e.strokeStyle = t !== void 0 ? t : this.color, e.lineWidth = this.width, this.lineJoin && (e.lineJoin = this.lineJoin);
1237
+ }
1238
+ }
1239
+ class ni extends j {
1240
+ constructor(e) {
1241
+ super(), Object.defineProperty(this, "dash", { enumerable: !0, configurable: !0, writable: !0, value: e });
1242
+ }
1243
+ colorize(e, t) {
1244
+ e.setLineDash(this.dash);
1245
+ }
1246
+ }
1247
+ class oi extends j {
1248
+ constructor(e) {
1249
+ super(), Object.defineProperty(this, "dashOffset", { enumerable: !0, configurable: !0, writable: !0, value: e });
1250
+ }
1251
+ colorize(e, t) {
1252
+ e.lineDashOffset = this.dashOffset;
1253
+ }
1254
+ }
1255
+ class li extends j {
1256
+ constructor(e, t, i, r) {
1257
+ super(), Object.defineProperty(this, "x", { enumerable: !0, configurable: !0, writable: !0, value: e }), Object.defineProperty(this, "y", { enumerable: !0, configurable: !0, writable: !0, value: t }), Object.defineProperty(this, "width", { enumerable: !0, configurable: !0, writable: !0, value: i }), Object.defineProperty(this, "height", { enumerable: !0, configurable: !0, writable: !0, value: r });
1258
+ }
1259
+ path(e) {
1260
+ e.rect(this.x, this.y, this.width, this.height);
1261
+ }
1262
+ addBounds(e) {
1263
+ const t = this.x, i = this.y, r = t + this.width, a = i + this.height;
1264
+ M(e, { x: t, y: i }), M(e, { x: r, y: i }), M(e, { x: t, y: a }), M(e, { x: r, y: a });
1265
+ }
1266
+ }
1267
+ class hi extends j {
1268
+ constructor(e, t, i) {
1269
+ super(), Object.defineProperty(this, "x", { enumerable: !0, configurable: !0, writable: !0, value: e }), Object.defineProperty(this, "y", { enumerable: !0, configurable: !0, writable: !0, value: t }), Object.defineProperty(this, "radius", { enumerable: !0, configurable: !0, writable: !0, value: i });
1270
+ }
1271
+ path(e) {
1272
+ e.moveTo(this.x + this.radius, this.y), e.arc(this.x, this.y, this.radius, 0, 2 * Math.PI);
1273
+ }
1274
+ addBounds(e) {
1275
+ M(e, { x: this.x - this.radius, y: this.y - this.radius }), M(e, { x: this.x + this.radius, y: this.y + this.radius });
1276
+ }
1277
+ }
1278
+ class ui extends j {
1279
+ constructor(e, t, i, r) {
1280
+ super(), Object.defineProperty(this, "x", { enumerable: !0, configurable: !0, writable: !0, value: e }), Object.defineProperty(this, "y", { enumerable: !0, configurable: !0, writable: !0, value: t }), Object.defineProperty(this, "radiusX", { enumerable: !0, configurable: !0, writable: !0, value: i }), Object.defineProperty(this, "radiusY", { enumerable: !0, configurable: !0, writable: !0, value: r });
1281
+ }
1282
+ path(e) {
1283
+ e.ellipse(0, 0, this.radiusX, this.radiusY, 0, 0, 2 * Math.PI);
1284
+ }
1285
+ addBounds(e) {
1286
+ M(e, { x: this.x - this.radiusX, y: this.y - this.radiusY }), M(e, { x: this.x + this.radiusX, y: this.y + this.radiusY });
1287
+ }
1288
+ }
1289
+ class ci extends j {
1290
+ constructor(e, t, i, r, a, s) {
1291
+ super(), Object.defineProperty(this, "cx", { enumerable: !0, configurable: !0, writable: !0, value: e }), Object.defineProperty(this, "cy", { enumerable: !0, configurable: !0, writable: !0, value: t }), Object.defineProperty(this, "radius", { enumerable: !0, configurable: !0, writable: !0, value: i }), Object.defineProperty(this, "startAngle", { enumerable: !0, configurable: !0, writable: !0, value: r }), Object.defineProperty(this, "endAngle", { enumerable: !0, configurable: !0, writable: !0, value: a }), Object.defineProperty(this, "anticlockwise", { enumerable: !0, configurable: !0, writable: !0, value: s });
1292
+ }
1293
+ path(e) {
1294
+ this.radius > 0 && e.arc(this.cx, this.cy, this.radius, this.startAngle, this.endAngle, this.anticlockwise);
1295
+ }
1296
+ addBounds(e) {
1297
+ let t = Ft(this.cx, this.cy, this.startAngle * oe, this.endAngle * oe, this.radius);
1298
+ M(e, { x: t.left, y: t.top }), M(e, { x: t.right, y: t.bottom });
1299
+ }
1300
+ }
1301
+ class di extends j {
1302
+ constructor(e, t, i, r, a) {
1303
+ super(), Object.defineProperty(this, "x1", { enumerable: !0, configurable: !0, writable: !0, value: e }), Object.defineProperty(this, "y1", { enumerable: !0, configurable: !0, writable: !0, value: t }), Object.defineProperty(this, "x2", { enumerable: !0, configurable: !0, writable: !0, value: i }), Object.defineProperty(this, "y2", { enumerable: !0, configurable: !0, writable: !0, value: r }), Object.defineProperty(this, "radius", { enumerable: !0, configurable: !0, writable: !0, value: a });
1304
+ }
1305
+ path(e) {
1306
+ this.radius > 0 && e.arcTo(this.x1, this.y1, this.x2, this.y2, this.radius);
1307
+ }
1308
+ addBounds(e) {
1309
+ }
1310
+ }
1311
+ class bi extends j {
1312
+ constructor(e, t) {
1313
+ super(), Object.defineProperty(this, "x", { enumerable: !0, configurable: !0, writable: !0, value: e }), Object.defineProperty(this, "y", { enumerable: !0, configurable: !0, writable: !0, value: t });
1314
+ }
1315
+ path(e) {
1316
+ e.lineTo(this.x, this.y);
1317
+ }
1318
+ addBounds(e) {
1319
+ M(e, { x: this.x, y: this.y });
1320
+ }
1321
+ }
1322
+ class fi extends j {
1323
+ constructor(e, t) {
1324
+ super(), Object.defineProperty(this, "x", { enumerable: !0, configurable: !0, writable: !0, value: e }), Object.defineProperty(this, "y", { enumerable: !0, configurable: !0, writable: !0, value: t });
1325
+ }
1326
+ path(e) {
1327
+ e.moveTo(this.x, this.y);
1328
+ }
1329
+ addBounds(e) {
1330
+ M(e, { x: this.x, y: this.y });
1331
+ }
1332
+ }
1333
+ class gi extends j {
1334
+ path(e) {
1335
+ e.closePath();
1336
+ }
1337
+ }
1338
+ class mi extends j {
1339
+ constructor(e, t, i, r, a, s) {
1340
+ super(), Object.defineProperty(this, "cpX", { enumerable: !0, configurable: !0, writable: !0, value: e }), Object.defineProperty(this, "cpY", { enumerable: !0, configurable: !0, writable: !0, value: t }), Object.defineProperty(this, "cpX2", { enumerable: !0, configurable: !0, writable: !0, value: i }), Object.defineProperty(this, "cpY2", { enumerable: !0, configurable: !0, writable: !0, value: r }), Object.defineProperty(this, "toX", { enumerable: !0, configurable: !0, writable: !0, value: a }), Object.defineProperty(this, "toY", { enumerable: !0, configurable: !0, writable: !0, value: s });
1341
+ }
1342
+ path(e) {
1343
+ e.bezierCurveTo(this.cpX, this.cpY, this.cpX2, this.cpY2, this.toX, this.toY);
1344
+ }
1345
+ addBounds(e) {
1346
+ M(e, { x: this.cpX, y: this.cpY }), M(e, { x: this.cpX2, y: this.cpY2 }), M(e, { x: this.toX, y: this.toY });
1347
+ }
1348
+ }
1349
+ class pi extends j {
1350
+ constructor(e, t, i, r) {
1351
+ super(), Object.defineProperty(this, "cpX", { enumerable: !0, configurable: !0, writable: !0, value: e }), Object.defineProperty(this, "cpY", { enumerable: !0, configurable: !0, writable: !0, value: t }), Object.defineProperty(this, "toX", { enumerable: !0, configurable: !0, writable: !0, value: i }), Object.defineProperty(this, "toY", { enumerable: !0, configurable: !0, writable: !0, value: r });
1352
+ }
1353
+ path(e) {
1354
+ e.quadraticCurveTo(this.cpX, this.cpY, this.toX, this.toY);
1355
+ }
1356
+ addBounds(e) {
1357
+ M(e, { x: this.cpX, y: this.cpY }), M(e, { x: this.toX, y: this.toY });
1358
+ }
1359
+ }
1360
+ class _i extends j {
1361
+ constructor(e, t, i, r, a) {
1362
+ super(), Object.defineProperty(this, "color", { enumerable: !0, configurable: !0, writable: !0, value: e }), Object.defineProperty(this, "blur", { enumerable: !0, configurable: !0, writable: !0, value: t }), Object.defineProperty(this, "offsetX", { enumerable: !0, configurable: !0, writable: !0, value: i }), Object.defineProperty(this, "offsetY", { enumerable: !0, configurable: !0, writable: !0, value: r }), Object.defineProperty(this, "opacity", { enumerable: !0, configurable: !0, writable: !0, value: a });
1363
+ }
1364
+ colorize(e, t) {
1365
+ this.opacity && (e.fillStyle = this.color), e.shadowColor = this.color, e.shadowBlur = this.blur, e.shadowOffsetX = this.offsetX, e.shadowOffsetY = this.offsetY;
1366
+ }
1367
+ }
1368
+ class yi extends j {
1369
+ constructor(e, t, i, r, a) {
1370
+ super(), Object.defineProperty(this, "image", { enumerable: !0, configurable: !0, writable: !0, value: e }), Object.defineProperty(this, "width", { enumerable: !0, configurable: !0, writable: !0, value: t }), Object.defineProperty(this, "height", { enumerable: !0, configurable: !0, writable: !0, value: i }), Object.defineProperty(this, "x", { enumerable: !0, configurable: !0, writable: !0, value: r }), Object.defineProperty(this, "y", { enumerable: !0, configurable: !0, writable: !0, value: a });
1371
+ }
1372
+ path(e) {
1373
+ e.drawImage(this.image, this.x, this.y, this.width, this.height);
1374
+ }
1375
+ addBounds(e) {
1376
+ M(e, { x: this.x, y: this.y }), M(e, { x: this.width, y: this.height });
1377
+ }
1378
+ }
1379
+ class vi extends ve {
1380
+ constructor() {
1381
+ super(...arguments), Object.defineProperty(this, "_operations", { enumerable: !0, configurable: !0, writable: !0, value: [] }), Object.defineProperty(this, "blendMode", { enumerable: !0, configurable: !0, writable: !0, value: Dt.NORMAL }), Object.defineProperty(this, "_hasShadows", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "_fillAlpha", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_strokeAlpha", { enumerable: !0, configurable: !0, writable: !0, value: void 0 });
1382
+ }
1383
+ clear() {
1384
+ super.clear(), this._operations.length = 0;
1385
+ }
1386
+ _pushOp(e) {
1387
+ this._operations.push(e);
1388
+ }
1389
+ beginFill(e, t = 1) {
1390
+ this._fillAlpha = t, e ? e instanceof X ? this._pushOp(new Me(e.toCSS(t))) : (this.isMeasured = !0, this._pushOp(new Me(e))) : this._pushOp(new Me("rgba(0, 0, 0, " + t + ")"));
1391
+ }
1392
+ endFill() {
1393
+ this._pushOp(new si(this._hasShadows));
1394
+ }
1395
+ endStroke() {
1396
+ this._pushOp(new ai());
1397
+ }
1398
+ beginPath() {
1399
+ this._pushOp(new ri());
1400
+ }
1401
+ lineStyle(e = 0, t, i = 1, r) {
1402
+ this._strokeAlpha = i, t ? t instanceof X ? this._pushOp(new Se(e, t.toCSS(i), r)) : this._pushOp(new Se(e, t, r)) : this._pushOp(new Se(e, "rgba(0, 0, 0, " + i + ")", r));
1403
+ }
1404
+ setLineDash(e) {
1405
+ this._pushOp(new ni(e || []));
1406
+ }
1407
+ setLineDashOffset(e = 0) {
1408
+ this._pushOp(new oi(e));
1409
+ }
1410
+ drawRect(e, t, i, r) {
1411
+ this._pushOp(new li(e, t, i, r));
1412
+ }
1413
+ drawCircle(e, t, i) {
1414
+ this._pushOp(new hi(e, t, i));
1415
+ }
1416
+ drawEllipse(e, t, i, r) {
1417
+ this._pushOp(new ui(e, t, i, r));
1418
+ }
1419
+ arc(e, t, i, r, a, s = !1) {
1420
+ this._pushOp(new ci(e, t, i, r, a, s));
1421
+ }
1422
+ arcTo(e, t, i, r, a) {
1423
+ this._pushOp(new di(e, t, i, r, a));
1424
+ }
1425
+ lineTo(e, t) {
1426
+ this._pushOp(new bi(e, t));
1427
+ }
1428
+ moveTo(e, t) {
1429
+ this._pushOp(new fi(e, t));
1430
+ }
1431
+ bezierCurveTo(e, t, i, r, a, s) {
1432
+ this._pushOp(new mi(e, t, i, r, a, s));
1433
+ }
1434
+ quadraticCurveTo(e, t, i, r) {
1435
+ this._pushOp(new pi(e, t, i, r));
1436
+ }
1437
+ closePath() {
1438
+ this._pushOp(new gi());
1439
+ }
1440
+ shadow(e, t = 0, i = 0, r = 0, a) {
1441
+ this._hasShadows = !0, this._pushOp(new _i(a ? e.toCSS(a) : e.toCSS(this._fillAlpha || this._strokeAlpha), t, i, r));
1442
+ }
1443
+ image(e, t, i, r, a) {
1444
+ this._pushOp(new yi(e, t, i, r, a));
1445
+ }
1446
+ svgPath(e) {
1447
+ let t = 0, i = 0, r = null, a = null, s = null, n = null;
1448
+ const h = /([MmZzLlHhVvCcSsQqTtAa])([^MmZzLlHhVvCcSsQqTtAa]*)/g, c = /[\u0009\u0020\u000A\u000C\u000D]*([\+\-]?[0-9]*\.?[0-9]+(?:[eE][\+\-]?[0-9]+)?)[\u0009\u0020\u000A\u000C\u000D]*,?/g;
1449
+ let g;
1450
+ for (; (g = h.exec(e)) !== null; ) {
1451
+ const u = g[1], b = g[2], o = [];
1452
+ for (; (g = c.exec(b)) !== null; )
1453
+ o.push(g[1]);
1454
+ switch (u !== "S" && u !== "s" && u !== "C" && u !== "c" && (r = null, a = null), u !== "Q" && u !== "q" && u !== "T" && u !== "t" && (s = null, n = null), u) {
1455
+ case "M":
1456
+ L(u, o.length, 2), t = +o[0], i = +o[1], this.moveTo(t, i);
1457
+ for (let l = 2; l < o.length; l += 2)
1458
+ t = +o[l], i = +o[l + 1], this.lineTo(t, i);
1459
+ break;
1460
+ case "m":
1461
+ L(u, o.length, 2), t += +o[0], i += +o[1], this.moveTo(t, i);
1462
+ for (let l = 2; l < o.length; l += 2)
1463
+ t += +o[l], i += +o[l + 1], this.lineTo(t, i);
1464
+ break;
1465
+ case "L":
1466
+ L(u, o.length, 2);
1467
+ for (let l = 0; l < o.length; l += 2)
1468
+ t = +o[l], i = +o[l + 1], this.lineTo(t, i);
1469
+ break;
1470
+ case "l":
1471
+ L(u, o.length, 2);
1472
+ for (let l = 0; l < o.length; l += 2)
1473
+ t += +o[l], i += +o[l + 1], this.lineTo(t, i);
1474
+ break;
1475
+ case "H":
1476
+ ae(u, o.length, 1);
1477
+ for (let l = 0; l < o.length; ++l)
1478
+ t = +o[l], this.lineTo(t, i);
1479
+ break;
1480
+ case "h":
1481
+ ae(u, o.length, 1);
1482
+ for (let l = 0; l < o.length; ++l)
1483
+ t += +o[l], this.lineTo(t, i);
1484
+ break;
1485
+ case "V":
1486
+ ae(u, o.length, 1);
1487
+ for (let l = 0; l < o.length; ++l)
1488
+ i = +o[l], this.lineTo(t, i);
1489
+ break;
1490
+ case "v":
1491
+ ae(u, o.length, 1);
1492
+ for (let l = 0; l < o.length; ++l)
1493
+ i += +o[l], this.lineTo(t, i);
1494
+ break;
1495
+ case "C":
1496
+ L(u, o.length, 6);
1497
+ for (let l = 0; l < o.length; l += 6) {
1498
+ const m = +o[l], _ = +o[l + 1];
1499
+ r = +o[l + 2], a = +o[l + 3], t = +o[l + 4], i = +o[l + 5], this.bezierCurveTo(m, _, r, a, t, i);
1500
+ }
1501
+ break;
1502
+ case "c":
1503
+ L(u, o.length, 6);
1504
+ for (let l = 0; l < o.length; l += 6) {
1505
+ const m = +o[l] + t, _ = +o[l + 1] + i;
1506
+ r = +o[l + 2] + t, a = +o[l + 3] + i, t += +o[l + 4], i += +o[l + 5], this.bezierCurveTo(m, _, r, a, t, i);
1507
+ }
1508
+ break;
1509
+ case "S":
1510
+ L(u, o.length, 4), r !== null && a !== null || (r = t, a = i);
1511
+ for (let l = 0; l < o.length; l += 4) {
1512
+ const m = 2 * t - r, _ = 2 * i - a;
1513
+ r = +o[l], a = +o[l + 1], t = +o[l + 2], i = +o[l + 3], this.bezierCurveTo(m, _, r, a, t, i);
1514
+ }
1515
+ break;
1516
+ case "s":
1517
+ L(u, o.length, 4), r !== null && a !== null || (r = t, a = i);
1518
+ for (let l = 0; l < o.length; l += 4) {
1519
+ const m = 2 * t - r, _ = 2 * i - a;
1520
+ r = +o[l] + t, a = +o[l + 1] + i, t += +o[l + 2], i += +o[l + 3], this.bezierCurveTo(m, _, r, a, t, i);
1521
+ }
1522
+ break;
1523
+ case "Q":
1524
+ L(u, o.length, 4);
1525
+ for (let l = 0; l < o.length; l += 4)
1526
+ s = +o[l], n = +o[l + 1], t = +o[l + 2], i = +o[l + 3], this.quadraticCurveTo(s, n, t, i);
1527
+ break;
1528
+ case "q":
1529
+ L(u, o.length, 4);
1530
+ for (let l = 0; l < o.length; l += 4)
1531
+ s = +o[l] + t, n = +o[l + 1] + i, t += +o[l + 2], i += +o[l + 3], this.quadraticCurveTo(s, n, t, i);
1532
+ break;
1533
+ case "T":
1534
+ L(u, o.length, 2), s !== null && n !== null || (s = t, n = i);
1535
+ for (let l = 0; l < o.length; l += 2)
1536
+ s = 2 * t - s, n = 2 * i - n, t = +o[l], i = +o[l + 1], this.quadraticCurveTo(s, n, t, i);
1537
+ break;
1538
+ case "t":
1539
+ L(u, o.length, 2), s !== null && n !== null || (s = t, n = i);
1540
+ for (let l = 0; l < o.length; l += 2)
1541
+ s = 2 * t - s, n = 2 * i - n, t += +o[l], i += +o[l + 1], this.quadraticCurveTo(s, n, t, i);
1542
+ break;
1543
+ case "A":
1544
+ case "a":
1545
+ const p = u === "a";
1546
+ Jt(o), L(u, o.length, 7);
1547
+ for (let l = 0; l < o.length; l += 7) {
1548
+ let m = +o[l + 5], _ = +o[l + 6];
1549
+ p && (m += t, _ += i);
1550
+ const w = Zt({ px: t, py: i, rx: +o[l], ry: +o[l + 1], xAxisRotation: +o[l + 2], largeArcFlag: $e(+o[l + 3]), sweepFlag: $e(+o[l + 4]), cx: m, cy: _ });
1551
+ y(w, (v) => {
1552
+ this.bezierCurveTo(v.x1, v.y1, v.x2, v.y2, v.x, v.y), t = v.x, i = v.y;
1553
+ });
1554
+ }
1555
+ break;
1556
+ case "Z":
1557
+ case "z":
1558
+ Kt(u, o.length, 0), this.closePath();
1559
+ }
1560
+ }
1561
+ }
1562
+ _runPath(e) {
1563
+ e.beginPath(), y(this._operations, (t) => {
1564
+ t.path(e);
1565
+ });
1566
+ }
1567
+ _render(e) {
1568
+ super._render(e);
1569
+ const t = e.layer.dirty, i = this._isInteractive(e);
1570
+ if (t || i) {
1571
+ const r = e.layer.context, a = this._renderer._ghostLayer.context;
1572
+ let s;
1573
+ t && (r.globalCompositeOperation = this.blendMode, r.beginPath()), i && (a.beginPath(), s = this._getColorId()), y(this._operations, (n) => {
1574
+ t && (n.path(r), n.colorize(r, void 0)), i && (n.path(a), n.colorize(a, s));
1575
+ });
1576
+ }
1577
+ }
1578
+ renderDetached(e) {
1579
+ if (this.visible) {
1580
+ this._setMatrix(), e.save();
1581
+ const t = this.mask;
1582
+ t && (t._setMatrix(), t._transform(e, 1), t._runPath(e), e.clip()), e.globalAlpha = this.compoundAlpha * this.alpha, this._transform(e, 1), this.filter && (e.filter = this.filter), e.globalCompositeOperation = this.blendMode, e.beginPath(), y(this._operations, (i) => {
1583
+ i.path(e), i.colorize(e, void 0);
1584
+ }), e.restore();
1585
+ }
1586
+ }
1587
+ _addBounds(e) {
1588
+ this.visible && this.isMeasured && y(this._operations, (t) => {
1589
+ t.addBounds(e);
1590
+ });
1591
+ }
1592
+ }
1593
+ class st extends ve {
1594
+ constructor(e, t, i) {
1595
+ super(e), Object.defineProperty(this, "text", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "style", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "resolution", { enumerable: !0, configurable: !0, writable: !0, value: 1 }), Object.defineProperty(this, "textVisible", { enumerable: !0, configurable: !0, writable: !0, value: !0 }), Object.defineProperty(this, "_textInfo", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_originalScale", { enumerable: !0, configurable: !0, writable: !0, value: 1 }), this.text = t, this.style = i;
1596
+ }
1597
+ invalidateBounds() {
1598
+ super.invalidateBounds(), this._textInfo = void 0;
1599
+ }
1600
+ _shared(e) {
1601
+ this.style.textAlign && (e.textAlign = this.style.textAlign), this.style.direction && (e.direction = this.style.direction), this.style.textBaseline && (e.textBaseline = this.style.textBaseline);
1602
+ }
1603
+ _prerender(e, t = !1, i = !1) {
1604
+ super._render(e);
1605
+ const r = e.layer.context, a = this._renderer._ghostLayer.context, s = this.style;
1606
+ let n = this._getFontStyle(void 0, i);
1607
+ r.font = n, this._isInteractive(e) && !t && (a.font = n), s.fill && (s.fill instanceof X ? r.fillStyle = s.fill.toCSS(s.fillOpacity != null ? s.fillOpacity : 1) : r.fillStyle = s.fill), s.shadowColor && (e.layer.context.shadowColor = s.shadowColor.toCSS(s.shadowOpacity || 1)), s.shadowBlur && (e.layer.context.shadowBlur = s.shadowBlur), s.shadowOffsetX && (e.layer.context.shadowOffsetX = s.shadowOffsetX), s.shadowOffsetY && (e.layer.context.shadowOffsetY = s.shadowOffsetY), this._shared(r), this._isInteractive(e) && !t && (a.fillStyle = this._getColorId(), this._shared(a));
1608
+ }
1609
+ _getFontStyle(e, t = !1) {
1610
+ const i = this.style;
1611
+ let r = [];
1612
+ return e && e.fontVariant ? r.push(e.fontVariant) : i.fontVariant && r.push(i.fontVariant), t || (e && e.fontWeight ? r.push(e.fontWeight) : i.fontWeight && r.push(i.fontWeight)), e && e.fontStyle ? r.push(e.fontStyle) : i.fontStyle && r.push(i.fontStyle), e && e.fontSize ? (H(e.fontSize) && (e.fontSize = e.fontSize + "px"), r.push(e.fontSize)) : i.fontSize && (H(i.fontSize) && (i.fontSize = i.fontSize + "px"), r.push(i.fontSize)), e && e.fontFamily ? r.push(e.fontFamily) : i.fontFamily ? r.push(i.fontFamily) : r.length && r.push("Arial"), r.join(" ");
1613
+ }
1614
+ _render(e) {
1615
+ if (this._textInfo || this._measure(e), this.textVisible) {
1616
+ const t = this._isInteractive(e), i = e.layer.context, r = e.layer.dirty, a = this._renderer._ghostLayer.context;
1617
+ i.save(), a.save(), this._prerender(e), y(this._textInfo, (s, n) => {
1618
+ y(s.textChunks, (h, c) => {
1619
+ if (h.style && (i.save(), a.save(), i.font = h.style, this._isInteractive(e) && (a.font = h.style)), h.fill && (i.save(), i.fillStyle = h.fill.toCSS()), r && i.fillText(h.text, h.offsetX, s.offsetY + h.offsetY), h.textDecoration == "underline" || h.textDecoration == "line-through") {
1620
+ let g, u = 1, b = 1, o = h.height, p = h.offsetX;
1621
+ switch (this.style.textAlign) {
1622
+ case "right":
1623
+ case "end":
1624
+ p -= h.width;
1625
+ break;
1626
+ case "center":
1627
+ p -= h.width / 2;
1628
+ }
1629
+ if (h.style)
1630
+ switch (U.getTextStyle(h.style).fontWeight) {
1631
+ case "bolder":
1632
+ case "bold":
1633
+ case "700":
1634
+ case "800":
1635
+ case "900":
1636
+ u = 2;
1637
+ }
1638
+ o && (b = o / 20), g = h.textDecoration == "line-through" ? u + s.offsetY + h.offsetY - h.height / 2 : u + 1.5 * b + s.offsetY + h.offsetY, i.save(), i.beginPath(), h.fill ? i.strokeStyle = h.fill.toCSS() : this.style.fill && this.style.fill instanceof X && (i.strokeStyle = this.style.fill.toCSS()), i.lineWidth = u * b, i.moveTo(p, g), i.lineTo(p + h.width, g), i.stroke(), i.restore();
1639
+ }
1640
+ t && this.interactive && a.fillText(h.text, h.offsetX, s.offsetY + h.offsetY), h.fill && i.restore(), h.style && (i.restore(), a.restore());
1641
+ });
1642
+ }), i.restore(), a.restore();
1643
+ }
1644
+ }
1645
+ _addBounds(e) {
1646
+ if (this.visible && this.isMeasured) {
1647
+ const t = this._measure({ inactive: this.inactive, layer: this.getLayer() });
1648
+ M(e, { x: t.left, y: t.top }), M(e, { x: t.right, y: t.bottom });
1649
+ }
1650
+ }
1651
+ _ignoreFontWeight() {
1652
+ return /apple/i.test(navigator.vendor);
1653
+ }
1654
+ _measure(e) {
1655
+ const t = e.layer.context, i = this._renderer._ghostLayer.context, r = this.style.direction == "rtl";
1656
+ this._textInfo = [];
1657
+ const a = this.style.oversizedBehavior, s = this.style.maxWidth, n = H(s) && a == "truncate", h = H(s) && (a == "wrap" || a == "wrap-no-break");
1658
+ t.save(), i.save(), this._prerender(e, !0, this._ignoreFontWeight());
1659
+ const c = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 ", g = this.text.toString().replace(/\r/g, "").split(/\n/);
1660
+ let u, b = !0, o = 0, p = 0, l = 0;
1661
+ y(g, (_, w) => {
1662
+ let v;
1663
+ for (v = _ == "" ? [{ type: "value", text: "" }] : U.chunk(_, !1, this.style.ignoreFormatting); v.length > 0; ) {
1664
+ let f = { offsetY: l, ascent: 0, width: 0, height: 0, left: 0, right: 0, textChunks: [] };
1665
+ const x = this._measureText(c, t), A = x.actualBoundingBoxAscent + x.actualBoundingBoxDescent;
1666
+ let k;
1667
+ f.height = A, f.ascent = x.actualBoundingBoxAscent;
1668
+ let S, B, P, z = this.style.textDecoration, D = !1, I = !0, G = [];
1669
+ et(v, (T, ue) => {
1670
+ if (T.type == "format")
1671
+ if (T.text == "[/]")
1672
+ b || (t.restore(), i.restore(), b = !0), S = void 0, u = void 0, B = void 0, z = this.style.textDecoration, P = void 0, k = T.text;
1673
+ else {
1674
+ b || (t.restore(), i.restore());
1675
+ let O = U.getTextStyle(T.text);
1676
+ const F = this._getFontStyle(O);
1677
+ t.save(), i.save(), t.font = F, u = F, k = T.text, O.textDecoration && (z = O.textDecoration), O.fill && (S = O.fill), O.width && (B = R(O.width)), O.verticalAlign && (P = O.verticalAlign), b = !1;
1678
+ const Y = this._measureText(c, t), N = Y.actualBoundingBoxAscent + Y.actualBoundingBoxDescent;
1679
+ N > f.height && (f.height = N), Y.actualBoundingBoxAscent > f.ascent && (f.ascent = Y.actualBoundingBoxAscent);
1680
+ }
1681
+ else if (T.type == "value" && !D) {
1682
+ const O = this._measureText(T.text, t);
1683
+ let F = O.actualBoundingBoxLeft + O.actualBoundingBoxRight;
1684
+ if (n) {
1685
+ let W = I || this.style.breakWords || !1;
1686
+ const V = this.style.ellipsis || "", Ae = this._measureText(V, t), at = Ae.actualBoundingBoxLeft + Ae.actualBoundingBoxRight;
1687
+ if (f.width + F > s) {
1688
+ const nt = s - f.width - at;
1689
+ T.text = this._truncateText(t, T.text, nt, W), T.text += V, D = !0;
1690
+ }
1691
+ } else if (h && f.width + F > s) {
1692
+ const W = s - f.width, V = this._truncateText(t, T.text, W, !1, I && this.style.oversizedBehavior != "wrap-no-break");
1693
+ if (V == "")
1694
+ return this.textVisible = !0, !1;
1695
+ G = v.slice(ue + 1), xe(V) != xe(T.text) && (G.unshift({ type: "value", text: T.text.substr(V.length) }), k && G.unshift({ type: "format", text: k })), T.text = xe(V), v = [], D = !0;
1696
+ }
1697
+ let Y = 1, N = 1;
1698
+ if (u && B && B > F) {
1699
+ const W = F / B;
1700
+ switch (this.style.textAlign) {
1701
+ case "right":
1702
+ case "end":
1703
+ Y = W;
1704
+ break;
1705
+ case "center":
1706
+ Y = W, N = W;
1707
+ break;
1708
+ default:
1709
+ N = W;
1710
+ }
1711
+ F = B;
1712
+ }
1713
+ const we = O.actualBoundingBoxAscent + O.actualBoundingBoxDescent;
1714
+ we > f.height && (f.height = we), O.actualBoundingBoxAscent > f.ascent && (f.ascent = O.actualBoundingBoxAscent), f.width += F, f.left += O.actualBoundingBoxLeft / Y, f.right += O.actualBoundingBoxRight / N, f.textChunks.push({ style: u, fill: S, text: T.text, width: F, height: we, left: O.actualBoundingBoxLeft, right: O.actualBoundingBoxRight, ascent: O.actualBoundingBoxAscent, offsetX: 0, offsetY: 0, textDecoration: z, verticalAlign: P }), I = !1;
1715
+ }
1716
+ return !0;
1717
+ }), this.style.lineHeight instanceof tt ? (f.height *= this.style.lineHeight.value, f.ascent *= this.style.lineHeight.value) : (f.height *= this.style.lineHeight || 1.2, f.ascent *= this.style.lineHeight || 1.2), o < f.left && (o = f.left), p < f.right && (p = f.right), this._textInfo.push(f), l += f.height, v = G || [];
1718
+ }
1719
+ }), b || (t.restore(), i.restore()), y(this._textInfo, (_, w) => {
1720
+ let v = 0;
1721
+ y(_.textChunks, (f) => {
1722
+ if (f.offsetX = v + f.left - _.left, f.offsetY += _.height - _.height * (this.style.baselineRatio || 0.19), v += f.width, f.verticalAlign)
1723
+ switch (f.verticalAlign) {
1724
+ case "super":
1725
+ f.offsetY -= _.height / 2 - f.height / 2;
1726
+ break;
1727
+ case "sub":
1728
+ f.offsetY += f.height / 2;
1729
+ }
1730
+ });
1731
+ });
1732
+ const m = { left: r ? -p : -o, top: 0, right: r ? o : p, bottom: l };
1733
+ if (a !== "none") {
1734
+ const _ = this._fitRatio(m);
1735
+ if (_ < 1)
1736
+ if (a == "fit")
1737
+ H(this.style.minScale) && _ < this.style.minScale ? (this.textVisible = !1, m.left = 0, m.top = 0, m.right = 0, m.bottom = 0) : (this._originalScale && this._originalScale != 1 || (this._originalScale = this.scale), this.scale = _, this.textVisible = !0);
1738
+ else if (a == "hide")
1739
+ this.textVisible = !1, m.left = 0, m.top = 0, m.right = 0, m.bottom = 0;
1740
+ else {
1741
+ switch (this.style.textAlign) {
1742
+ case "right":
1743
+ case "end":
1744
+ m.left = -s, m.right = 0;
1745
+ break;
1746
+ case "center":
1747
+ m.left = -s / 2, m.right = s / 2;
1748
+ break;
1749
+ default:
1750
+ m.left = 0, m.right = s;
1751
+ }
1752
+ this.scale = this._originalScale || 1, this._originalScale = void 0, this.textVisible = !0;
1753
+ }
1754
+ else
1755
+ this.scale = this._originalScale || 1, this._originalScale = void 0, this.textVisible = !0;
1756
+ }
1757
+ return t.restore(), i.restore(), m;
1758
+ }
1759
+ _fitRatio(e) {
1760
+ const t = this.style.maxWidth, i = this.style.maxHeight;
1761
+ if (!H(t) && !H(i))
1762
+ return 1;
1763
+ const r = e.right - e.left, a = e.bottom - e.top;
1764
+ return Math.min(t / r || 1, i / a || 1);
1765
+ }
1766
+ _truncateText(e, t, i, r = !1, a = !0) {
1767
+ let s;
1768
+ do {
1769
+ if (r)
1770
+ t = t.slice(0, -1);
1771
+ else {
1772
+ let h = t.replace(/[^,;:!?\\\/\s​]+[,;:!?\\\/\s​]*$/g, "");
1773
+ if (h != "" && h !== t || !a) {
1774
+ if (h == "")
1775
+ return t;
1776
+ t = h;
1777
+ } else
1778
+ r = !0;
1779
+ }
1780
+ const n = this._measureText(t, e);
1781
+ s = n.actualBoundingBoxLeft + n.actualBoundingBoxRight;
1782
+ } while (s > i && t != "");
1783
+ return t;
1784
+ }
1785
+ _measureText(e, t) {
1786
+ let i = t.measureText(e), r = {};
1787
+ if (i.actualBoundingBoxAscent == null) {
1788
+ const s = document.createElement("div");
1789
+ s.innerText = e, s.style.visibility = "hidden", s.style.position = "absolute", s.style.top = "-1000000px;", s.style.fontFamily = this.style.fontFamily || "", s.style.fontSize = this.style.fontSize + "", document.body.appendChild(s);
1790
+ const n = s.getBoundingClientRect();
1791
+ document.body.removeChild(s);
1792
+ const h = n.height, c = i.width;
1793
+ r = { actualBoundingBoxAscent: h, actualBoundingBoxDescent: 0, actualBoundingBoxLeft: 0, actualBoundingBoxRight: c, fontBoundingBoxAscent: h, fontBoundingBoxDescent: 0, width: c };
1794
+ } else
1795
+ r = { actualBoundingBoxAscent: i.actualBoundingBoxAscent, actualBoundingBoxDescent: i.actualBoundingBoxDescent, actualBoundingBoxLeft: i.actualBoundingBoxLeft, actualBoundingBoxRight: i.actualBoundingBoxRight, fontBoundingBoxAscent: i.actualBoundingBoxAscent, fontBoundingBoxDescent: i.actualBoundingBoxDescent, width: i.width };
1796
+ const a = i.width;
1797
+ switch (this.style.textAlign) {
1798
+ case "right":
1799
+ case "end":
1800
+ r.actualBoundingBoxLeft = a, r.actualBoundingBoxRight = 0;
1801
+ break;
1802
+ case "center":
1803
+ r.actualBoundingBoxLeft = a / 2, r.actualBoundingBoxRight = a / 2;
1804
+ break;
1805
+ default:
1806
+ r.actualBoundingBoxLeft = 0, r.actualBoundingBoxRight = a;
1807
+ }
1808
+ return r;
1809
+ }
1810
+ }
1811
+ class wi {
1812
+ constructor() {
1813
+ Object.defineProperty(this, "fill", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "fillOpacity", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "textAlign", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "fontFamily", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "fontSize", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "fontWeight", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "fontStyle", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "fontVariant", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "textDecoration", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "shadowColor", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "shadowBlur", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "shadowOffsetX", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "shadowOffsetY", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "shadowOpacity", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "lineHeight", { enumerable: !0, configurable: !0, writable: !0, value: Ze(120) }), Object.defineProperty(this, "baselineRatio", { enumerable: !0, configurable: !0, writable: !0, value: 0.19 }), Object.defineProperty(this, "direction", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "textBaseline", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "oversizedBehavior", { enumerable: !0, configurable: !0, writable: !0, value: "none" }), Object.defineProperty(this, "breakWords", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "ellipsis", { enumerable: !0, configurable: !0, writable: !0, value: "…" }), Object.defineProperty(this, "maxWidth", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "maxHeight", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "minScale", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "ignoreFormatting", { enumerable: !0, configurable: !0, writable: !0, value: !1 });
1814
+ }
1815
+ }
1816
+ class xi extends st {
1817
+ constructor() {
1818
+ super(...arguments), Object.defineProperty(this, "textType", { enumerable: !0, configurable: !0, writable: !0, value: "circular" }), Object.defineProperty(this, "radius", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "startAngle", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "inside", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "orientation", { enumerable: !0, configurable: !0, writable: !0, value: "auto" }), Object.defineProperty(this, "kerning", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), Object.defineProperty(this, "_textReversed", { enumerable: !0, configurable: !0, writable: !0, value: !1 });
1819
+ }
1820
+ _render(e) {
1821
+ this.textType === "circular" ? this._renderCircular(e) : super._render(e);
1822
+ }
1823
+ _renderCircular(e) {
1824
+ if (this.textVisible) {
1825
+ this._prerender(e);
1826
+ const t = this._isInteractive(e), i = e.layer.context, r = e.layer.dirty, a = this._renderer._ghostLayer.context;
1827
+ i.save(), t && a.save(), this._textInfo || this._measure(e);
1828
+ let s = this.radius || 0, n = this.startAngle || 0, h = 0, c = this.orientation, g = c == "auto" ? "auto" : c == "inward";
1829
+ const u = this.inside, b = this.style.textAlign || "left", o = this.kerning || 0;
1830
+ let p = b == "left" ? 1 : -1;
1831
+ const l = !this._textReversed;
1832
+ if (g == "auto") {
1833
+ let m = 0, _ = 0;
1834
+ y(this._textInfo, (w, v) => {
1835
+ const f = n + w.width / (s - w.height) / 2 * -p;
1836
+ f > m && (m = f);
1837
+ }), _ = b == "left" ? (m + h / 2) * oe : b == "right" ? (m - h / 2) * oe : n * oe, _ = At(_), g = _ >= 270 || _ <= 90;
1838
+ }
1839
+ g == 1 && l && (this._textInfo.reverse(), this._textReversed = !0), y(this._textInfo, (m, _) => {
1840
+ const w = m.height;
1841
+ u || (s += w), (p == -1 && g || p == 1 && !g) && l && m.textChunks.reverse();
1842
+ let v = n;
1843
+ h = 0, b == "center" && (v += m.width / (s - w) / 2 * -p, h = v - n), v += Math.PI * (g ? 0 : 1), i.save(), t && a.save(), i.rotate(v), t && a.rotate(v);
1844
+ let f = 0;
1845
+ y(m.textChunks, (x, A) => {
1846
+ const k = x.text, S = x.width;
1847
+ f = S / 2 / (s - w) * p, i.rotate(f), t && a.rotate(f), x.style && (i.save(), a.save(), i.font = x.style, t && (a.font = x.style)), x.fill && (i.save(), i.fillStyle = x.fill.toCSS()), i.textBaseline = "middle", i.textAlign = "center", t && (a.textBaseline = "middle", a.textAlign = "center"), r && i.fillText(k, 0, (g ? 1 : -1) * (0 - s + w / 2)), t && a.fillText(k, 0, (g ? 1 : -1) * (0 - s + w / 2)), x.fill && i.restore(), x.style && (i.restore(), a.restore()), f = (S / 2 + o) / (s - w) * p, i.rotate(f), t && a.rotate(f);
1848
+ }), i.restore(), t && a.restore(), u && (s -= w);
1849
+ }), i.restore(), t && a.restore();
1850
+ }
1851
+ }
1852
+ _measure(e) {
1853
+ return this.textType === "circular" ? this._measureCircular(e) : super._measure(e);
1854
+ }
1855
+ _measureCircular(e) {
1856
+ const t = e.layer.context, i = this._renderer._ghostLayer.context, r = this.style.direction == "rtl", a = this.style.oversizedBehavior, s = this.style.maxWidth, n = H(s) && a == "truncate", h = this.style.ellipsis || "";
1857
+ let c;
1858
+ this.textVisible = !0, this._textInfo = [], this._textReversed = !1, t.save(), i.save(), this._prerender(e, !0);
1859
+ const g = this.text.toString().replace(/\r/g, "").split(/\n/);
1860
+ let u = !0, b = 0, o = 0;
1861
+ return y(g, (p, l) => {
1862
+ let m, _, w, v = U.chunk(p, !1, this.style.ignoreFormatting), f = { offsetY: o, ascent: 0, width: 0, height: 0, left: 0, right: 0, textChunks: [] };
1863
+ y(v, (x, A) => {
1864
+ if (x.type == "format") {
1865
+ if (x.text == "[/]")
1866
+ u || (t.restore(), i.restore(), u = !0), _ = void 0, m = void 0, w = void 0;
1867
+ else {
1868
+ let k = U.getTextStyle(x.text);
1869
+ const S = this._getFontStyle(k);
1870
+ t.save(), i.save(), t.font = S, m = S, k.fill && (_ = k.fill), k.width && (w = R(k.width)), u = !1;
1871
+ }
1872
+ n && (c = this._measureText(h, t));
1873
+ } else if (x.type == "value") {
1874
+ const k = x.text.match(/./gu) || [];
1875
+ r && k.reverse();
1876
+ for (let S = 0; S < k.length; S++) {
1877
+ const B = k[S], P = this._measureText(B, t);
1878
+ let z = P.width;
1879
+ m && w && w > z && (z = w);
1880
+ const D = P.actualBoundingBoxAscent + P.actualBoundingBoxDescent;
1881
+ if (D > f.height && (f.height = D), P.actualBoundingBoxAscent > f.ascent && (f.ascent = P.actualBoundingBoxAscent), b += z, n) {
1882
+ c || (c = this._measureText(h, t));
1883
+ const I = c.actualBoundingBoxLeft + c.actualBoundingBoxRight;
1884
+ if (b + I > s) {
1885
+ f.textChunks.length == 1 ? this.textVisible = !1 : (f.width += I, f.left += c.actualBoundingBoxLeft, f.right += c.actualBoundingBoxRight, f.textChunks.push({ style: m, fill: _, text: h, width: I, height: D + c.actualBoundingBoxDescent, left: c.actualBoundingBoxLeft, right: c.actualBoundingBoxRight, ascent: c.actualBoundingBoxAscent, offsetX: 0, offsetY: D, textDecoration: void 0 }));
1886
+ break;
1887
+ }
1888
+ }
1889
+ if (f.width += z, f.left += P.actualBoundingBoxLeft, f.right += P.actualBoundingBoxRight, f.textChunks.push({ style: m, fill: _, text: B, width: z, height: D + P.actualBoundingBoxDescent, left: P.actualBoundingBoxLeft, right: P.actualBoundingBoxRight, ascent: P.actualBoundingBoxAscent, offsetX: 0, offsetY: D, textDecoration: void 0 }), r)
1890
+ break;
1891
+ }
1892
+ }
1893
+ }), this.style.lineHeight instanceof tt ? f.height *= this.style.lineHeight.value : f.height *= this.style.lineHeight || 1.2, this._textInfo.push(f), o += f.height;
1894
+ }), u || (t.restore(), i.restore()), a == "hide" && b > s && (this.textVisible = !1), y(this._textInfo, (p) => {
1895
+ y(p.textChunks, (l) => {
1896
+ l.offsetY += Math.round((p.height - l.height + (p.ascent - l.ascent)) / 2);
1897
+ });
1898
+ }), t.restore(), i.restore(), { left: 0, top: 0, right: 0, bottom: 0 };
1899
+ }
1900
+ }
1901
+ class Pi extends ve {
1902
+ constructor(e, t) {
1903
+ super(e), Object.defineProperty(this, "width", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "height", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "image", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "tainted", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "shadowColor", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "shadowBlur", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "shadowOffsetX", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "shadowOffsetY", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "shadowOpacity", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_imageMask", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), this.image = t;
1904
+ }
1905
+ _dispose() {
1906
+ super._dispose(), this._imageMask && ne(this._imageMask);
1907
+ }
1908
+ getLocalBounds() {
1909
+ if (!this._localBounds) {
1910
+ let e = 0, t = 0;
1911
+ this.width && (e = this.width), this.height && (t = this.height), this._localBounds = { left: 0, top: 0, right: e, bottom: t }, this._addBounds(this._localBounds);
1912
+ }
1913
+ return this._localBounds;
1914
+ }
1915
+ _render(e) {
1916
+ if (super._render(e), this.image) {
1917
+ if (this.tainted === void 0 && (this.tainted = Xe(this.image), e.layer.tainted = !0), this.tainted && this._renderer._omitTainted)
1918
+ return;
1919
+ if (e.layer.dirty) {
1920
+ this.shadowColor && (e.layer.context.shadowColor = this.shadowColor.toCSS(this.shadowOpacity || 1)), this.shadowBlur && (e.layer.context.shadowBlur = this.shadowBlur), this.shadowOffsetX && (e.layer.context.shadowOffsetX = this.shadowOffsetX), this.shadowOffsetY && (e.layer.context.shadowOffsetY = this.shadowOffsetY);
1921
+ const t = this.width || this.image.naturalWidth, i = this.height || this.image.naturalHeight;
1922
+ e.layer.context.drawImage(this.image, 0, 0, t, i);
1923
+ }
1924
+ if (this.interactive && this._isInteractive(e)) {
1925
+ const t = this._getMask(this.image);
1926
+ this._renderer._ghostLayer.context.drawImage(t, 0, 0);
1927
+ }
1928
+ }
1929
+ }
1930
+ clear() {
1931
+ super.clear(), this.image = void 0, this._imageMask = void 0;
1932
+ }
1933
+ _getMask(e) {
1934
+ if (this._imageMask === void 0) {
1935
+ const t = this.width || e.naturalWidth, i = this.height || e.naturalHeight, r = document.createElement("canvas");
1936
+ r.width = t, r.height = i;
1937
+ const a = r.getContext("2d");
1938
+ a.imageSmoothingEnabled = !1, a.fillStyle = this._getColorId(), a.fillRect(0, 0, t, i), Xe(e) || (a.globalCompositeOperation = "destination-in", a.drawImage(e, 0, 0, t, i)), this._imageMask = r;
1939
+ }
1940
+ return this._imageMask;
1941
+ }
1942
+ }
1943
+ class Oi {
1944
+ constructor(e, t, i, r) {
1945
+ Object.defineProperty(this, "event", { enumerable: !0, configurable: !0, writable: !0, value: e }), Object.defineProperty(this, "originalPoint", { enumerable: !0, configurable: !0, writable: !0, value: t }), Object.defineProperty(this, "point", { enumerable: !0, configurable: !0, writable: !0, value: i }), Object.defineProperty(this, "bbox", { enumerable: !0, configurable: !0, writable: !0, value: r }), Object.defineProperty(this, "id", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "simulated", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "native", { enumerable: !0, configurable: !0, writable: !0, value: !0 }), me("touchevents") && e instanceof Touch ? this.id = e.identifier : this.id = null;
1946
+ }
1947
+ }
1948
+ class ki extends Et {
1949
+ constructor(e) {
1950
+ if (super(), Object.defineProperty(this, "view", { enumerable: !0, configurable: !0, writable: !0, value: document.createElement("div") }), Object.defineProperty(this, "_layerDom", { enumerable: !0, configurable: !0, writable: !0, value: document.createElement("div") }), Object.defineProperty(this, "layers", { enumerable: !0, configurable: !0, writable: !0, value: [] }), Object.defineProperty(this, "_dirtyLayers", { enumerable: !0, configurable: !0, writable: !0, value: [] }), Object.defineProperty(this, "defaultLayer", { enumerable: !0, configurable: !0, writable: !0, value: this.getLayer(0) }), Object.defineProperty(this, "_ghostLayer", { enumerable: !0, configurable: !0, writable: !0, value: new Mi() }), Object.defineProperty(this, "_patternCanvas", { enumerable: !0, configurable: !0, writable: !0, value: document.createElement("canvas") }), Object.defineProperty(this, "_patternContext", { enumerable: !0, configurable: !0, writable: !0, value: this._patternCanvas.getContext("2d") }), Object.defineProperty(this, "_realWidth", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), Object.defineProperty(this, "_realHeight", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), Object.defineProperty(this, "_calculatedWidth", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), Object.defineProperty(this, "_calculatedHeight", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), Object.defineProperty(this, "resolution", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "interactionsEnabled", { enumerable: !0, configurable: !0, writable: !0, value: !0 }), Object.defineProperty(this, "_listeners", { enumerable: !0, configurable: !0, writable: !0, value: {} }), Object.defineProperty(this, "_events", { enumerable: !0, configurable: !0, writable: !0, value: {} }), Object.defineProperty(this, "_colorId", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), Object.defineProperty(this, "_colorMap", { enumerable: !0, configurable: !0, writable: !0, value: {} }), Object.defineProperty(this, "_forceInteractive", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), Object.defineProperty(this, "_omitTainted", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "_hovering", { enumerable: !0, configurable: !0, writable: !0, value: /* @__PURE__ */ new Set() }), Object.defineProperty(this, "_dragging", { enumerable: !0, configurable: !0, writable: !0, value: [] }), Object.defineProperty(this, "_mousedown", { enumerable: !0, configurable: !0, writable: !0, value: [] }), Object.defineProperty(this, "_lastPointerMoveEvent", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "tapToActivate", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "tapToActivateTimeout", { enumerable: !0, configurable: !0, writable: !0, value: 3e3 }), Object.defineProperty(this, "_touchActive", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "_touchActiveTimeout", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), this.resolution = e ?? window.devicePixelRatio, this.view.style.position = "absolute", this.view.setAttribute("aria-hidden", "true"), this.view.appendChild(this._layerDom), this._disposers.push(new $(() => {
1951
+ he(this._events, (t, i) => {
1952
+ i.disposer.dispose();
1953
+ }), y(this.layers, (t) => {
1954
+ ne(t.view), t.exportableView && ne(t.exportableView);
1955
+ }), ne(this._ghostLayer.view), ne(this._patternCanvas);
1956
+ })), this._disposers.push(Ke(() => {
1957
+ e == null && (this.resolution = window.devicePixelRatio);
1958
+ })), me("touchevents")) {
1959
+ const t = (i) => {
1960
+ this._dragging.length !== 0 && et(this._dragging, (r) => !r.value.shouldCancelTouch() || (i.preventDefault(), !1)), this._touchActiveTimeout && this._delayTouchDeactivate();
1961
+ };
1962
+ this._disposers.push(C(window, "touchstart", t, { passive: !1 })), this._disposers.push(C(this.view, "touchstart", t, { passive: !1 })), this._disposers.push(C(this.view, "touchmove", () => {
1963
+ this._touchActiveTimeout && this._delayTouchDeactivate();
1964
+ }, { passive: !0 })), this._disposers.push(C(window, "click", (i) => {
1965
+ this._touchActive = !1;
1966
+ }, { passive: !0 })), this._disposers.push(C(this.view, "click", (i) => {
1967
+ window.setTimeout(() => {
1968
+ this._touchActive = !0, this._delayTouchDeactivate();
1969
+ }, 100);
1970
+ }, { passive: !0 }));
1971
+ }
1972
+ me("wheelevents") && this._disposers.push(C(this.view, "wheel", (t) => {
1973
+ let i = !1;
1974
+ this._hovering.forEach((r) => {
1975
+ if (r.wheelable)
1976
+ return i = !0, !1;
1977
+ }), i && t.preventDefault();
1978
+ }, { passive: !1 }));
1979
+ }
1980
+ resetImageArray() {
1981
+ this._ghostLayer.imageArray = void 0;
1982
+ }
1983
+ _delayTouchDeactivate() {
1984
+ this._touchActiveTimeout && clearTimeout(this._touchActiveTimeout), this.tapToActivateTimeout > 0 && (this._touchActiveTimeout = window.setTimeout(() => {
1985
+ this._touchActive = !1;
1986
+ }, this.tapToActivateTimeout));
1987
+ }
1988
+ get debugGhostView() {
1989
+ return !!this._ghostLayer.view.parentNode;
1990
+ }
1991
+ set debugGhostView(e) {
1992
+ e ? this._ghostLayer.view.parentNode || this.view.appendChild(this._ghostLayer.view) : this._ghostLayer.view.parentNode && this._ghostLayer.view.parentNode.removeChild(this._ghostLayer.view);
1993
+ }
1994
+ createLinearGradient(e, t, i, r) {
1995
+ return this.defaultLayer.context.createLinearGradient(e, t, i, r);
1996
+ }
1997
+ createRadialGradient(e, t, i, r, a, s) {
1998
+ return this.defaultLayer.context.createRadialGradient(e, t, i, r, a, s);
1999
+ }
2000
+ createPattern(e, t, i, r, a) {
2001
+ return this._patternCanvas.width = r, this._patternCanvas.height = a, this._patternContext.clearRect(0, 0, r, a), t.renderDetached(this._patternContext), e.renderDetached(this._patternContext), this._patternContext.createPattern(this._patternCanvas, i);
2002
+ }
2003
+ makeContainer() {
2004
+ return new ii(this);
2005
+ }
2006
+ makeGraphics() {
2007
+ return new vi(this);
2008
+ }
2009
+ makeText(e, t) {
2010
+ return new st(this, e, t);
2011
+ }
2012
+ makeTextStyle() {
2013
+ return new wi();
2014
+ }
2015
+ makeRadialText(e, t) {
2016
+ return new xi(this, e, t);
2017
+ }
2018
+ makePicture(e) {
2019
+ return new Pi(this, e);
2020
+ }
2021
+ resizeLayer(e) {
2022
+ e.resize(this._calculatedWidth, this._calculatedHeight, this._calculatedWidth, this._calculatedHeight, this.resolution);
2023
+ }
2024
+ resizeGhost() {
2025
+ this._ghostLayer.resize(this._calculatedWidth, this._calculatedHeight, this._calculatedWidth, this._calculatedHeight, this.resolution);
2026
+ }
2027
+ resize(e, t, i, r) {
2028
+ this._realWidth = e, this._realHeight = t, this._calculatedWidth = i, this._calculatedHeight = r, y(this.layers, (a) => {
2029
+ a && (a.dirty = !0, this.resizeLayer(a));
2030
+ }), this.resizeGhost(), this.view.style.width = i + "px", this.view.style.height = r + "px";
2031
+ }
2032
+ createDetachedLayer(e = !1) {
2033
+ const t = document.createElement("canvas"), i = t.getContext("2d", { willReadFrequently: e }), r = new Si(t, i);
2034
+ return t.style.position = "absolute", t.style.top = "0px", t.style.left = "0px", r;
2035
+ }
2036
+ getLayerByOrder(e) {
2037
+ const t = this.layers, i = t.length;
2038
+ for (let r = 0; r < i; r++) {
2039
+ const a = t[r];
2040
+ if (a.order == e)
2041
+ return a;
2042
+ }
2043
+ }
2044
+ getLayer(e, t = !0) {
2045
+ let i = this.getLayerByOrder(e);
2046
+ if (i)
2047
+ return i;
2048
+ const r = this.createDetachedLayer(e == 99);
2049
+ r.order = e, r.visible = t, r.view.className = "am5-layer-" + e, r.visible && this.resizeLayer(r);
2050
+ const a = this.layers;
2051
+ a.push(r), a.sort((h, c) => h.order > c.order ? 1 : h.order < c.order ? -1 : 0);
2052
+ const s = a.length;
2053
+ let n;
2054
+ for (let h = Tt(a, r) + 1; h < s; h++)
2055
+ if (a[h].visible) {
2056
+ n = a[h];
2057
+ break;
2058
+ }
2059
+ return r.visible && (n === void 0 ? this._layerDom.appendChild(r.view) : this._layerDom.insertBefore(r.view, n.view)), r;
2060
+ }
2061
+ render(e) {
2062
+ if (this._dirtyLayers.length = 0, y(this.layers, (t) => {
2063
+ t && t.dirty && t.visible && (this._dirtyLayers.push(t), t.clear());
2064
+ }), this._ghostLayer.clear(), e.render({ inactive: null, layer: this.defaultLayer }), this._ghostLayer.context.restore(), y(this.layers, (t) => {
2065
+ if (t) {
2066
+ const i = t.context;
2067
+ i.beginPath(), i.moveTo(0, 0), i.stroke();
2068
+ }
2069
+ }), y(this._dirtyLayers, (t) => {
2070
+ t.context.restore(), t.dirty = !1;
2071
+ }), this._hovering.size && this._lastPointerMoveEvent) {
2072
+ const { events: t, target: i, native: r } = this._lastPointerMoveEvent;
2073
+ y(t, (a) => {
2074
+ this._dispatchGlobalMousemove(a, i, r);
2075
+ });
2076
+ }
2077
+ }
2078
+ paintId(e) {
2079
+ const t = Qt(++this._colorId), i = X.fromHex(t).toCSS();
2080
+ return this._colorMap[i] = e, i;
2081
+ }
2082
+ _removeObject(e) {
2083
+ e._colorId !== void 0 && delete this._colorMap[e._colorId];
2084
+ }
2085
+ _adjustBoundingBox(e) {
2086
+ const t = this._ghostLayer.margin;
2087
+ return new DOMRect(-t.left, -t.top, e.width + t.left + t.right, e.height + t.top + t.bottom);
2088
+ }
2089
+ getEvent(e, t = !0) {
2090
+ const i = this.view.getBoundingClientRect(), r = e.clientX || 0, a = e.clientY || 0, s = this._calculatedWidth / this._realWidth, n = this._calculatedHeight / this._realHeight, h = { x: r - i.left, y: a - i.top }, c = { x: (r - (t ? i.left : 0)) * s, y: (a - (t ? i.top : 0)) * n };
2091
+ return new Oi(e, h, c, this._adjustBoundingBox(i));
2092
+ }
2093
+ _getHitTarget(e, t, i) {
2094
+ if (t.width === 0 || t.height === 0 || e.x < t.left || e.x > t.right || e.y < t.top || e.y > t.bottom || !i || !this._layerDom.contains(i))
2095
+ return;
2096
+ const r = this._ghostLayer.getImageData(e, t);
2097
+ if (r.data[0] === 0 && r.data[1] === 0 && r.data[2] === 0)
2098
+ return !1;
2099
+ const a = X.fromRGB(r.data[0], r.data[1], r.data[2]).toCSS();
2100
+ return this._colorMap[a];
2101
+ }
2102
+ getObjectAtPoint(e) {
2103
+ const t = this._ghostLayer.getImageArray(e);
2104
+ if (t[0] === 0 && t[1] === 0 && t[2] === 0)
2105
+ return;
2106
+ const i = X.fromRGB(t[0], t[1], t[2]).toCSS();
2107
+ return this._colorMap[i];
2108
+ }
2109
+ _withEvents(e, t) {
2110
+ const i = this._events[e];
2111
+ if (i !== void 0) {
2112
+ i.dispatching = !0;
2113
+ try {
2114
+ t(i);
2115
+ } finally {
2116
+ i.dispatching = !1, i.cleanup && (i.cleanup = !1, _e(i.callbacks, (r) => !r.disposed), i.callbacks.length === 0 && (i.disposer.dispose(), delete this._events[e]));
2117
+ }
2118
+ }
2119
+ }
2120
+ _dispatchEventAll(e, t) {
2121
+ this.interactionsEnabled && this._withEvents(e, (i) => {
2122
+ y(i.callbacks, (r) => {
2123
+ r.disposed || r.callback.call(r.context, t);
2124
+ });
2125
+ });
2126
+ }
2127
+ _dispatchEvent(e, t, i) {
2128
+ if (!this.interactionsEnabled)
2129
+ return !1;
2130
+ let r = !1;
2131
+ return this._withEvents(e, (a) => {
2132
+ y(a.callbacks, (s) => {
2133
+ s.disposed || s.object !== t || (s.callback.call(s.context, i), r = !0);
2134
+ });
2135
+ }), r;
2136
+ }
2137
+ _dispatchMousedown(e, t) {
2138
+ const i = e.button;
2139
+ if (i != 0 && i != 2 && i != 1 && i !== void 0)
2140
+ return;
2141
+ const r = this.getEvent(e), a = this._getHitTarget(r.originalPoint, r.bbox, t);
2142
+ if (a) {
2143
+ const s = r.id;
2144
+ let n = !1;
2145
+ fe(a, (h) => {
2146
+ const c = { id: s, value: h };
2147
+ return this._mousedown.push(c), !n && this._dispatchEvent("pointerdown", h, r) && (n = !0, this._dragging.some((g) => g.value === h && g.id === s) || this._dragging.push(c)), !0;
2148
+ });
2149
+ }
2150
+ }
2151
+ _dispatchGlobalMousemove(e, t, i) {
2152
+ const r = this.getEvent(e), a = this._getHitTarget(r.originalPoint, r.bbox, t);
2153
+ r.native = i, a ? (this._hovering.forEach((s) => {
2154
+ s.contains(a) || (this._hovering.delete(s), s.cursorOverStyle && be(document.body, "cursor", s._replacedCursorStyle), this._dispatchEvent("pointerout", s, r));
2155
+ }), r.native && fe(a, (s) => (this._hovering.has(s) || (this._hovering.add(s), s.cursorOverStyle && (s._replacedCursorStyle = Lt(document.body, "cursor"), be(document.body, "cursor", s.cursorOverStyle)), this._dispatchEvent("pointerover", s, r)), !0))) : (this._hovering.forEach((s) => {
2156
+ s.cursorOverStyle && be(document.body, "cursor", s._replacedCursorStyle), this._dispatchEvent("pointerout", s, r);
2157
+ }), this._hovering.clear()), this._dispatchEventAll("globalpointermove", r);
2158
+ }
2159
+ removeHovering(e) {
2160
+ this._hovering.delete(e), e.cursorOverStyle && be(document.body, "cursor", e._replacedCursorStyle);
2161
+ }
2162
+ _dispatchGlobalMouseup(e, t) {
2163
+ const i = this.getEvent(e);
2164
+ i.native = t, this._dispatchEventAll("globalpointerup", i);
2165
+ }
2166
+ _dispatchDragMove(e) {
2167
+ if (this._dragging.length !== 0) {
2168
+ const t = this.getEvent(e), i = t.id;
2169
+ this._dragging.forEach((r) => {
2170
+ r.id === i && this._dispatchEvent("pointermove", r.value, t);
2171
+ });
2172
+ }
2173
+ }
2174
+ _dispatchDragEnd(e, t) {
2175
+ const i = e.button;
2176
+ let r;
2177
+ if (i == 0 || i === void 0)
2178
+ r = "click";
2179
+ else if (i == 2)
2180
+ r = "rightclick";
2181
+ else {
2182
+ if (i != 1)
2183
+ return;
2184
+ r = "middleclick";
2185
+ }
2186
+ const a = this.getEvent(e), s = a.id;
2187
+ if (this._mousedown.length !== 0) {
2188
+ const n = this._getHitTarget(a.originalPoint, a.bbox, t);
2189
+ n && this._mousedown.forEach((h) => {
2190
+ h.id === s && h.value.contains(n) && this._dispatchEvent(r, h.value, a);
2191
+ }), this._mousedown.length = 0;
2192
+ }
2193
+ this._dragging.length !== 0 && (this._dragging.forEach((n) => {
2194
+ n.id === s && this._dispatchEvent("pointerup", n.value, a);
2195
+ }), this._dragging.length = 0);
2196
+ }
2197
+ _dispatchDoubleClick(e, t) {
2198
+ const i = this.getEvent(e), r = this._getHitTarget(i.originalPoint, i.bbox, t);
2199
+ r && fe(r, (a) => !this._dispatchEvent("dblclick", a, i));
2200
+ }
2201
+ _dispatchWheel(e, t) {
2202
+ const i = this.getEvent(e), r = this._getHitTarget(i.originalPoint, i.bbox, t);
2203
+ r && fe(r, (a) => !this._dispatchEvent("wheel", a, i));
2204
+ }
2205
+ _makeSharedEvent(e, t) {
2206
+ if (this._listeners[e] === void 0) {
2207
+ const i = t();
2208
+ this._listeners[e] = new Ct(() => {
2209
+ delete this._listeners[e], i.dispose();
2210
+ });
2211
+ }
2212
+ return this._listeners[e].increment();
2213
+ }
2214
+ _onPointerEvent(e, t) {
2215
+ let i = !1, r = null;
2216
+ function a() {
2217
+ r = null, i = !1;
2218
+ }
2219
+ return new He([new $(() => {
2220
+ r !== null && clearTimeout(r), a();
2221
+ }), C(this.view, Ee(e), (s) => {
2222
+ i = !0, r !== null && clearTimeout(r), r = window.setTimeout(a, 0);
2223
+ }), ei(window, e, (s, n) => {
2224
+ r !== null && (clearTimeout(r), r = null), t(s, n, i), i = !1;
2225
+ })]);
2226
+ }
2227
+ _initEvent(e) {
2228
+ switch (e) {
2229
+ case "globalpointermove":
2230
+ case "pointerover":
2231
+ case "pointerout":
2232
+ return this._makeSharedEvent("pointermove", () => {
2233
+ const t = (i, r, a) => {
2234
+ this._lastPointerMoveEvent = { events: i, target: r, native: a }, y(i, (s) => {
2235
+ this._dispatchGlobalMousemove(s, r, a);
2236
+ });
2237
+ };
2238
+ return new He([this._onPointerEvent("pointerdown", t), this._onPointerEvent("pointermove", t)]);
2239
+ });
2240
+ case "globalpointerup":
2241
+ return this._makeSharedEvent("pointerup", () => {
2242
+ const t = this._onPointerEvent("pointerup", (r, a, s) => {
2243
+ y(r, (n) => {
2244
+ this._dispatchGlobalMouseup(n, s);
2245
+ }), this._lastPointerMoveEvent = { events: r, target: a, native: s };
2246
+ }), i = this._onPointerEvent("pointercancel", (r, a, s) => {
2247
+ y(r, (n) => {
2248
+ this._dispatchGlobalMouseup(n, s);
2249
+ }), this._lastPointerMoveEvent = { events: r, target: a, native: s };
2250
+ });
2251
+ return new $(() => {
2252
+ t.dispose(), i.dispose();
2253
+ });
2254
+ });
2255
+ case "click":
2256
+ case "rightclick":
2257
+ case "middleclick":
2258
+ case "pointerdown":
2259
+ case "pointermove":
2260
+ case "pointerup":
2261
+ return this._makeSharedEvent("pointerdown", () => {
2262
+ const t = this._onPointerEvent("pointerdown", (s, n) => {
2263
+ y(s, (h) => {
2264
+ this._dispatchMousedown(h, n);
2265
+ });
2266
+ }), i = this._onPointerEvent("pointermove", (s) => {
2267
+ y(s, (n) => {
2268
+ this._dispatchDragMove(n);
2269
+ });
2270
+ }), r = this._onPointerEvent("pointerup", (s, n) => {
2271
+ y(s, (h) => {
2272
+ this._dispatchDragEnd(h, n);
2273
+ });
2274
+ }), a = this._onPointerEvent("pointercancel", (s, n) => {
2275
+ y(s, (h) => {
2276
+ this._dispatchDragEnd(h, n);
2277
+ });
2278
+ });
2279
+ return new $(() => {
2280
+ t.dispose(), i.dispose(), r.dispose(), a.dispose();
2281
+ });
2282
+ });
2283
+ case "dblclick":
2284
+ return this._makeSharedEvent("dblclick", () => this._onPointerEvent("dblclick", (t, i) => {
2285
+ y(t, (r) => {
2286
+ this._dispatchDoubleClick(r, i);
2287
+ });
2288
+ }));
2289
+ case "wheel":
2290
+ return this._makeSharedEvent("wheel", () => C(this.view, Ee("wheel"), (t) => {
2291
+ this._dispatchWheel(t, Qe(t));
2292
+ }, { passive: !1 }));
2293
+ }
2294
+ }
2295
+ _addEvent(e, t, i, r) {
2296
+ let a = this._events[t];
2297
+ a === void 0 && (a = this._events[t] = { disposer: this._initEvent(t), callbacks: [], dispatching: !1, cleanup: !1 });
2298
+ const s = { object: e, context: r, callback: i, disposed: !1 };
2299
+ return a.callbacks.push(s), new $(() => {
2300
+ s.disposed = !0, a.dispatching ? a.cleanup = !0 : (Te(a.callbacks, s), a.callbacks.length === 0 && (a.disposer.dispose(), delete this._events[t]));
2301
+ });
2302
+ }
2303
+ getCanvas(e, t) {
2304
+ this.render(e), t || (t = {});
2305
+ let i = this.resolution, r = Math.floor(this._calculatedWidth * this.resolution), a = Math.floor(this._calculatedHeight * this.resolution);
2306
+ if (t.minWidth && t.minWidth > r) {
2307
+ let o = t.minWidth / r;
2308
+ o > i && (i = o * this.resolution);
2309
+ }
2310
+ if (t.minHeight && t.minHeight > a) {
2311
+ let o = t.minHeight / a;
2312
+ o > i && (i = o * this.resolution);
2313
+ }
2314
+ if (t.maxWidth && t.maxWidth < r) {
2315
+ let o = t.maxWidth / r;
2316
+ o < i && (i = o * this.resolution);
2317
+ }
2318
+ if (t.maxHeight && t.maxHeight > a) {
2319
+ let o = t.maxHeight / a;
2320
+ o < i && (i = o * this.resolution);
2321
+ }
2322
+ t.maintainPixelRatio && (i /= this.resolution);
2323
+ const s = [];
2324
+ let n = !1;
2325
+ const h = document.createElement("canvas");
2326
+ i != this.resolution && (n = !0, r = r * i / this.resolution, a = a * i / this.resolution), h.width = r, h.height = a, h.style.position = "fixed", h.style.top = "-10000px", this.view.appendChild(h), s.push(h);
2327
+ const c = h.getContext("2d");
2328
+ let g = 0, u = 0, b = !1;
2329
+ return y(this.layers, (o) => {
2330
+ if (o && o.visible && (o.tainted || n)) {
2331
+ b = !0, o.exportableView = o.view, o.exportableContext = o.context, o.view = document.createElement("canvas"), o.view.style.position = "fixed", o.view.style.top = "-10000px", this.view.appendChild(o.view), s.push(o.view);
2332
+ let p = 0, l = 0;
2333
+ o.margin && (p += o.margin.left || 0 + o.margin.right || 0, l += o.margin.top || 0 + o.margin.bottom || 0), o.view.width = r + p, o.view.height = a + l, o.context = o.view.getContext("2d"), o.dirty = !0, o.scale = i;
2334
+ }
2335
+ }), b && (this._omitTainted = !0, this.render(e), this._omitTainted = !1), y(this.layers, (o) => {
2336
+ if (o && o.visible) {
2337
+ let p = 0, l = 0;
2338
+ o.margin && (p = -(o.margin.left || 0) * this.resolution, l = -(o.margin.top || 0) * this.resolution), c.drawImage(o.view, p, l), o.exportableView && (o.view = o.exportableView, o.exportableView = void 0), o.exportableContext && (o.context = o.exportableContext, o.exportableContext = void 0), g < o.view.clientWidth && (g = o.view.clientWidth), u < o.view.clientHeight && (u = o.view.clientHeight), o.scale = void 0;
2339
+ }
2340
+ }), h.style.width = g + "px", h.style.height = u + "px", y(s, (o) => {
2341
+ o.style.position = "", o.style.top = "", this.view.removeChild(o);
2342
+ }), h;
2343
+ }
2344
+ }
2345
+ class Mi {
2346
+ constructor() {
2347
+ Object.defineProperty(this, "view", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "context", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "margin", { enumerable: !0, configurable: !0, writable: !0, value: { left: 0, right: 0, top: 0, bottom: 0 } }), Object.defineProperty(this, "_resolution", { enumerable: !0, configurable: !0, writable: !0, value: 1 }), Object.defineProperty(this, "_width", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), Object.defineProperty(this, "_height", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), Object.defineProperty(this, "imageArray", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), this.view = document.createElement("canvas"), this.context = this.view.getContext("2d", { alpha: !1, willReadFrequently: !0 }), this.context.imageSmoothingEnabled = !1, this.view.style.position = "absolute", this.view.style.top = "0px", this.view.style.left = "0px";
2348
+ }
2349
+ resize(e, t, i, r, a) {
2350
+ this._resolution = a, e += this.margin.left + this.margin.right, t += this.margin.top + this.margin.bottom, i += this.margin.left + this.margin.right, r += this.margin.top + this.margin.bottom, this.view.style.left = -this.margin.left + "px", this.view.style.top = -this.margin.top + "px", this._width = Math.floor(e * a), this._height = Math.floor(t * a), this.view.width = this._width, this.view.style.width = i + "px", this.view.height = this._height, this.view.style.height = r + "px";
2351
+ }
2352
+ getImageData(e, t) {
2353
+ return this.context.getImageData(Math.round((e.x - t.left) / t.width * this._width), Math.round((e.y - t.top) / t.height * this._height), 1, 1);
2354
+ }
2355
+ getImageArray(e) {
2356
+ this.imageArray || (this.imageArray = this.context.getImageData(0, 0, this._width, this._height).data);
2357
+ const t = this.imageArray, i = Math.round(e.x * this._resolution), r = 4 * (Math.round(e.y * this._resolution) * this._width + i);
2358
+ return [t[r], t[r + 1], t[r + 2], t[r + 3]];
2359
+ }
2360
+ setMargin(e) {
2361
+ this.margin.left = 0, this.margin.right = 0, this.margin.top = 0, this.margin.bottom = 0, y(e, (t) => {
2362
+ t.margin && (this.margin.left = Math.max(this.margin.left, t.margin.left), this.margin.right = Math.max(this.margin.right, t.margin.right), this.margin.top = Math.max(this.margin.top, t.margin.top), this.margin.bottom = Math.max(this.margin.bottom, t.margin.bottom));
2363
+ });
2364
+ }
2365
+ clear() {
2366
+ this.context.save(), this.context.fillStyle = "#000", this.context.fillRect(0, 0, this._width, this._height);
2367
+ }
2368
+ }
2369
+ class Si {
2370
+ constructor(e, t) {
2371
+ Object.defineProperty(this, "view", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "context", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "tainted", { enumerable: !0, configurable: !0, writable: !0, value: !0 }), Object.defineProperty(this, "margin", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "order", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), Object.defineProperty(this, "visible", { enumerable: !0, configurable: !0, writable: !0, value: !0 }), Object.defineProperty(this, "width", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "height", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "scale", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "dirty", { enumerable: !0, configurable: !0, writable: !0, value: !0 }), Object.defineProperty(this, "exportableView", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "exportableContext", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_width", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), Object.defineProperty(this, "_height", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), this.view = e, this.context = t;
2372
+ }
2373
+ resize(e, t, i, r, a) {
2374
+ this.width != null && (e = this.width, i = this.width), this.height != null && (t = this.height, r = this.height), this.margin ? (e += this.margin.left + this.margin.right, t += this.margin.top + this.margin.bottom, i += this.margin.left + this.margin.right, r += this.margin.top + this.margin.bottom, this.view.style.left = -this.margin.left + "px", this.view.style.top = -this.margin.top + "px") : (this.view.style.left = "0px", this.view.style.top = "0px"), this._width = Math.floor(e * a), this._height = Math.floor(t * a), this.view.width = this._width, this.view.style.width = i + "px", this.view.height = this._height, this.view.style.height = r + "px";
2375
+ }
2376
+ clear() {
2377
+ this.context.save(), this.context.clearRect(0, 0, this._width, this._height);
2378
+ }
2379
+ }
2380
+ function Ne(d, e) {
2381
+ d == null ? requestAnimationFrame(e) : setTimeout(() => {
2382
+ requestAnimationFrame(e);
2383
+ }, 1e3 / d);
2384
+ }
2385
+ class Be {
2386
+ constructor(e, t = {}, i) {
2387
+ if (Object.defineProperty(this, "dom", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_inner", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_settings", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_isDirty", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "_isDirtyParents", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "_dirty", { enumerable: !0, configurable: !0, writable: !0, value: {} }), Object.defineProperty(this, "_dirtyParents", { enumerable: !0, configurable: !0, writable: !0, value: {} }), Object.defineProperty(this, "_dirtyBounds", { enumerable: !0, configurable: !0, writable: !0, value: {} }), Object.defineProperty(this, "_dirtyPositions", { enumerable: !0, configurable: !0, writable: !0, value: {} }), Object.defineProperty(this, "_ticker", { enumerable: !0, configurable: !0, writable: !0, value: null }), Object.defineProperty(this, "_tickers", { enumerable: !0, configurable: !0, writable: !0, value: [] }), Object.defineProperty(this, "_updateTick", { enumerable: !0, configurable: !0, writable: !0, value: !0 }), Object.defineProperty(this, "events", { enumerable: !0, configurable: !0, writable: !0, value: new ht() }), Object.defineProperty(this, "animationTime", { enumerable: !0, configurable: !0, writable: !0, value: null }), Object.defineProperty(this, "_animations", { enumerable: !0, configurable: !0, writable: !0, value: [] }), Object.defineProperty(this, "_renderer", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_rootContainer", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "container", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "tooltipContainer", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_tooltipContainerSettings", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_tooltip", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "language", { enumerable: !0, configurable: !0, writable: !0, value: Xt.new(this, {}) }), Object.defineProperty(this, "locale", { enumerable: !0, configurable: !0, writable: !0, value: rt }), Object.defineProperty(this, "utc", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "timezone", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "fps", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "numberFormatter", { enumerable: !0, configurable: !0, writable: !0, value: Wt.new(this, {}) }), Object.defineProperty(this, "dateFormatter", { enumerable: !0, configurable: !0, writable: !0, value: Vt.new(this, {}) }), Object.defineProperty(this, "durationFormatter", { enumerable: !0, configurable: !0, writable: !0, value: $t.new(this, {}) }), Object.defineProperty(this, "tabindex", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), Object.defineProperty(this, "_tabindexes", { enumerable: !0, configurable: !0, writable: !0, value: [] }), Object.defineProperty(this, "_a11yD", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "_focusElementDirty", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "_focusElementContainer", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_focusedSprite", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_isShift", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_keyboardDragPoint", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_tooltipElementContainer", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_readerAlertElement", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_logo", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_tooltipDiv", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "nonce", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "interfaceColors", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "verticalLayout", { enumerable: !0, configurable: !0, writable: !0, value: ut.new(this, {}) }), Object.defineProperty(this, "horizontalLayout", { enumerable: !0, configurable: !0, writable: !0, value: ct.new(this, {}) }), Object.defineProperty(this, "gridLayout", { enumerable: !0, configurable: !0, writable: !0, value: dt.new(this, {}) }), Object.defineProperty(this, "_paused", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "autoResize", { enumerable: !0, configurable: !0, writable: !0, value: !0 }), Object.defineProperty(this, "_fontHash", { enumerable: !0, configurable: !0, writable: !0, value: "" }), Object.defineProperty(this, "_isDisposed", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "_disposers", { enumerable: !0, configurable: !0, writable: !0, value: [] }), Object.defineProperty(this, "_resizeSensorDisposer", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_tooltips", { enumerable: !0, configurable: !0, writable: !0, value: [] }), Object.defineProperty(this, "_htmlElementContainer", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_htmlEnabledContainers", { enumerable: !0, configurable: !0, writable: !0, value: [] }), !i)
2388
+ throw new Error("You cannot use `new Class()`, instead use `Class.new()`");
2389
+ let r, a;
2390
+ if (this._settings = t, t.accessible == 0 && (this._a11yD = !0), t.useSafeResolution == null && (t.useSafeResolution = !0), t.useSafeResolution && (r = bt()), this._renderer = new ki(r), a = e instanceof HTMLElement ? e : document.getElementById(e), y(te.rootElements, (h) => {
2391
+ if (h.dom === a)
2392
+ throw new Error("You cannot have multiple Roots on the same DOM node");
2393
+ }), this.interfaceColors = ge.new(this, {}), a === null)
2394
+ throw new Error("Could not find HTML element with id `" + e + "`");
2395
+ this.dom = a;
2396
+ let s = document.createElement("div");
2397
+ s.style.position = "relative", s.style.width = "100%", s.style.height = "100%", a.appendChild(s);
2398
+ const n = t.tooltipContainerBounds;
2399
+ n && (this._tooltipContainerSettings = n), this._inner = s, this._updateComputedStyles(), te.rootElements.push(this);
2400
+ }
2401
+ static new(e, t) {
2402
+ const i = new Be(e, t, !0);
2403
+ return i._init(), i;
2404
+ }
2405
+ moveDOM(e) {
2406
+ let t;
2407
+ if (t = e instanceof HTMLElement ? e : document.getElementById(e), t) {
2408
+ for (; this.dom.childNodes.length > 0; )
2409
+ t.appendChild(this.dom.childNodes[0]);
2410
+ this.dom = t, this._initResizeSensor(), this.resize();
2411
+ }
2412
+ }
2413
+ _handleLogo() {
2414
+ if (this._logo) {
2415
+ const e = this.dom.offsetWidth, t = this.dom.offsetHeight;
2416
+ e <= 150 || t <= 60 ? this._logo.hide() : this._logo.show();
2417
+ }
2418
+ }
2419
+ _showBranding() {
2420
+ if (!this._logo) {
2421
+ const e = this.tooltipContainer.children.push(q.new(this, { interactive: !0, interactiveChildren: !1, position: "absolute", setStateOnChildren: !0, paddingTop: 9, paddingRight: 9, paddingBottom: 9, paddingLeft: 9, scale: 0.6, y: Ze(100), centerY: Z, tooltipText: "Created using amCharts 5", tooltipX: Z, cursorOverStyle: "pointer", background: ft.new(this, { fill: ie(4671320), fillOpacity: 0, tooltipY: 5 }) })), t = We.new(this, { pointerOrientation: "horizontal", paddingTop: 4, paddingRight: 7, paddingBottom: 4, paddingLeft: 7 });
2422
+ t.label.setAll({ fontSize: 12 }), t.get("background").setAll({ fill: this.interfaceColors.get("background"), stroke: this.interfaceColors.get("grid"), strokeOpacity: 0.3 }), e.set("tooltip", t), e.events.on("click", () => {
2423
+ window.open("https://www.amcharts.com/", "_blank");
2424
+ }), e.states.create("hover", {}), e.children.push(Le.new(this, { stroke: ie(13421772), strokeWidth: 3, svgPath: "M5 25 L13 25h13.6c3.4 0 6 0 10.3-4.3s5.2-12 8.6-12c3.4 0 4.3 8.6 7.7 8.6M83.4 25H79.8c-3.4 0-6 0-10.3-4.3s-5.2-12-8.6-12-4.3 8.6-7.7 8.6" })).states.create("hover", { stroke: ie(3976191) }), e.children.push(Le.new(this, { stroke: ie(8947848), strokeWidth: 3, svgPath: "M83.4 25h-31C37 25 39.5 4.4 28.4 4.4S18.9 24.2 4.3 25H0" })).states.create("hover", { stroke: ie(4671320) }), this._logo = e, this._handleLogo();
2425
+ }
2426
+ }
2427
+ _getRealSize() {
2428
+ return this.dom.getBoundingClientRect();
2429
+ }
2430
+ _getCalculatedSize(e) {
2431
+ return this._settings.calculateSize ? this._settings.calculateSize(e) : { width: e.width, height: e.height };
2432
+ }
2433
+ _init() {
2434
+ const e = this._settings;
2435
+ e.accessible !== !1 && (e.focusable && (this._inner.setAttribute("focusable", "true"), this._inner.setAttribute("tabindex", this.tabindex + "")), e.ariaLabel && this._inner.setAttribute("aria-label", e.ariaLabel), e.role && this._inner.setAttribute("role", e.role));
2436
+ const t = this._renderer, i = this._getRealSize(), r = this._getCalculatedSize(i), a = Math.floor(r.width), s = Math.floor(r.height), n = Math.floor(i.width), h = Math.floor(i.height), c = q.new(this, { visible: !0, width: a, height: s });
2437
+ this._rootContainer = c, this._rootContainer._defaultThemes.push(Yt.new(this));
2438
+ const g = c.children.push(q.new(this, { visible: !0, width: Z, height: Z }));
2439
+ this.container = g, t.resize(n, h, a, s), this._inner.appendChild(t.view), this._initResizeSensor();
2440
+ const u = document.createElement("div");
2441
+ if (this._htmlElementContainer = u, u.className = "am5-html-container", u.style.position = "absolute", u.style.pointerEvents = "none", this._tooltipContainerSettings || (u.style.overflow = "hidden"), this._inner.appendChild(u), this._a11yD !== !0) {
2442
+ const b = document.createElement("div");
2443
+ b.className = "am5-reader-container", b.setAttribute("role", "alert"), b.style.position = "absolute", b.style.width = "1px", b.style.height = "1px", b.style.overflow = "hidden", b.style.clip = "rect(1px, 1px, 1px, 1px)", this._readerAlertElement = b, this._inner.appendChild(this._readerAlertElement);
2444
+ const o = document.createElement("div");
2445
+ o.className = "am5-focus-container", o.style.position = "absolute", o.style.pointerEvents = "none", o.style.top = "0px", o.style.left = "0px", o.style.overflow = "hidden", o.style.width = a + "px", o.style.height = s + "px", o.setAttribute("role", "graphics-document"), K(o, !1), this._focusElementContainer = o, this._inner.appendChild(this._focusElementContainer);
2446
+ const p = document.createElement("div");
2447
+ this._tooltipElementContainer = p, p.className = "am5-tooltip-container", this._inner.appendChild(p), me("keyboardevents") && (this._disposers.push(C(window, "keydown", (l) => {
2448
+ l.keyCode == 16 ? this._isShift = !0 : l.keyCode == 9 && (this._isShift = l.shiftKey);
2449
+ })), this._disposers.push(C(window, "keyup", (l) => {
2450
+ l.keyCode == 16 && (this._isShift = !1);
2451
+ })), this._disposers.push(C(o, "click", () => {
2452
+ const l = this._focusedSprite;
2453
+ if (l) {
2454
+ const m = t.getEvent(new MouseEvent("click"));
2455
+ l.events.dispatch("click", { type: "click", originalEvent: m.event, point: m.point, simulated: !0, target: l });
2456
+ }
2457
+ })), this._disposers.push(C(o, "keydown", (l) => {
2458
+ const m = this._focusedSprite;
2459
+ if (m) {
2460
+ l.keyCode == 27 && (gt(), this._focusedSprite = void 0);
2461
+ let _ = 0, w = 0;
2462
+ switch (l.keyCode) {
2463
+ case 13:
2464
+ l.preventDefault();
2465
+ const v = t.getEvent(new MouseEvent("click"));
2466
+ return void m.events.dispatch("click", { type: "click", originalEvent: v.event, point: v.point, simulated: !0, target: m });
2467
+ case 37:
2468
+ _ = -6;
2469
+ break;
2470
+ case 39:
2471
+ _ = 6;
2472
+ break;
2473
+ case 38:
2474
+ w = -6;
2475
+ break;
2476
+ case 40:
2477
+ w = 6;
2478
+ break;
2479
+ default:
2480
+ return;
2481
+ }
2482
+ if (_ != 0 || w != 0) {
2483
+ if (l.preventDefault(), !m.isDragging()) {
2484
+ this._keyboardDragPoint = { x: 0, y: 0 };
2485
+ const x = t.getEvent(new MouseEvent("mousedown", { clientX: 0, clientY: 0 }));
2486
+ m.events.isEnabled("pointerdown") && m.events.dispatch("pointerdown", { type: "pointerdown", originalEvent: x.event, point: x.point, simulated: !0, target: m });
2487
+ }
2488
+ const v = this._keyboardDragPoint;
2489
+ v.x += _, v.y += w;
2490
+ const f = t.getEvent(new MouseEvent("mousemove", { clientX: v.x, clientY: v.y }), !1);
2491
+ m.events.isEnabled("globalpointermove") && m.events.dispatch("globalpointermove", { type: "globalpointermove", originalEvent: f.event, point: f.point, simulated: !0, target: m });
2492
+ }
2493
+ }
2494
+ })), this._disposers.push(C(o, "keyup", (l) => {
2495
+ if (this._focusedSprite) {
2496
+ const m = this._focusedSprite, _ = l.keyCode;
2497
+ switch (_) {
2498
+ case 37:
2499
+ case 39:
2500
+ case 38:
2501
+ case 40:
2502
+ if (m.isDragging()) {
2503
+ const w = this._keyboardDragPoint, v = t.getEvent(new MouseEvent("mouseup", { clientX: w.x, clientY: w.y }));
2504
+ return m.events.isEnabled("globalpointerup") && m.events.dispatch("globalpointerup", { type: "globalpointerup", originalEvent: v.event, point: v.point, simulated: !0, target: m }), void (this._keyboardDragPoint = void 0);
2505
+ }
2506
+ if (m.get("focusableGroup")) {
2507
+ const w = m.get("focusableGroup"), v = this._tabindexes.filter((A) => A.get("focusableGroup") == w && A.getPrivate("focusable") !== !1);
2508
+ let f = v.indexOf(m);
2509
+ const x = v.length - 1;
2510
+ f += _ == 39 || _ == 40 ? 1 : -1, f < 0 ? f = x : f > x && (f = 0), mt(v[f].getPrivate("focusElement").dom);
2511
+ }
2512
+ }
2513
+ }
2514
+ })));
2515
+ }
2516
+ this._startTicker(), this.setThemes([]), this._addTooltip(), this._hasLicense() || this._showBranding();
2517
+ }
2518
+ _initResizeSensor() {
2519
+ this._resizeSensorDisposer && this._resizeSensorDisposer.dispose(), this._resizeSensorDisposer = new Rt(this.dom, () => {
2520
+ this.autoResize && this.resize();
2521
+ }), this._disposers.push(this._resizeSensorDisposer);
2522
+ }
2523
+ resize() {
2524
+ const e = this._getRealSize(), t = this._getCalculatedSize(e), i = Math.floor(t.width), r = Math.floor(t.height);
2525
+ if (i > 0 && r > 0) {
2526
+ const a = Math.floor(e.width), s = Math.floor(e.height), n = this._htmlElementContainer;
2527
+ if (n.style.width = i + "px", n.style.height = r + "px", this._a11yD !== !0) {
2528
+ const c = this._focusElementContainer;
2529
+ c.style.width = i + "px", c.style.height = r + "px";
2530
+ }
2531
+ this._renderer.resize(a, s, i, r);
2532
+ const h = this._rootContainer;
2533
+ h.setPrivate("width", i), h.setPrivate("height", r), this._render(), this._handleLogo();
2534
+ }
2535
+ }
2536
+ _render() {
2537
+ this._renderer.render(this._rootContainer._display), this._focusElementDirty && (this._updateCurrentFocus(), this._focusElementDirty = !1);
2538
+ }
2539
+ _runTickers(e) {
2540
+ y(this._tickers, (t) => {
2541
+ t(e);
2542
+ });
2543
+ }
2544
+ _runAnimations(e) {
2545
+ let t = 0;
2546
+ return _e(this._animations, (i) => {
2547
+ const r = i._runAnimation(e);
2548
+ return r !== Re.Stopped && (r !== Re.Playing || (++t, !0));
2549
+ }), t === 0;
2550
+ }
2551
+ _runDirties() {
2552
+ let e = {};
2553
+ for (; this._isDirtyParents; )
2554
+ this._isDirtyParents = !1, re(this._dirtyParents).forEach((s) => {
2555
+ const n = this._dirtyParents[s];
2556
+ delete this._dirtyParents[s], n.isDisposed() || (e[n.uid] = n, n._prepareChildren());
2557
+ });
2558
+ re(e).forEach((s) => {
2559
+ e[s]._updateChildren();
2560
+ });
2561
+ const t = [];
2562
+ re(this._dirty).forEach((s) => {
2563
+ const n = this._dirty[s];
2564
+ n.isDisposed() ? delete this._dirty[n.uid] : (t.push(n), n._beforeChanged());
2565
+ }), t.forEach((s) => {
2566
+ s._changed(), delete this._dirty[s.uid], s._clearDirty();
2567
+ }), this._isDirty = !1;
2568
+ const i = {}, r = [];
2569
+ re(this._dirtyBounds).forEach((s) => {
2570
+ const n = this._dirtyBounds[s];
2571
+ delete this._dirtyBounds[s], n.isDisposed() || (i[n.uid] = n.depth(), r.push(n));
2572
+ }), this._positionHTMLElements(), r.sort((s, n) => pt(i[n.uid], i[s.uid])), r.forEach((s) => {
2573
+ s._updateBounds();
2574
+ });
2575
+ const a = this._dirtyPositions;
2576
+ re(a).forEach((s) => {
2577
+ const n = a[s];
2578
+ delete a[s], n.isDisposed() || n._updatePosition();
2579
+ }), t.forEach((s) => {
2580
+ s._afterChanged();
2581
+ });
2582
+ }
2583
+ _renderFrame(e) {
2584
+ if (this._updateTick) {
2585
+ this.events.isEnabled("framestarted") && this.events.dispatch("framestarted", { type: "framestarted", target: this, timestamp: e }), this._checkComputedStyles(), this._runTickers(e);
2586
+ const t = this._runAnimations(e);
2587
+ return this._runDirties(), this._render(), this._renderer.resetImageArray(), this._positionHTMLElements(), this.events.isEnabled("frameended") && this.events.dispatch("frameended", { type: "frameended", target: this, timestamp: e }), this._tickers.length === 0 && t && !this._isDirty;
2588
+ }
2589
+ return !0;
2590
+ }
2591
+ _runTicker(e, t) {
2592
+ this.isDisposed() || (this.animationTime = e, this._renderFrame(e) ? (this._ticker = null, this.animationTime = null) : this._paused || (t ? this._ticker : Ne(this.fps, this._ticker)));
2593
+ }
2594
+ _runTickerNow(e = 1e4) {
2595
+ if (!this.isDisposed()) {
2596
+ const t = performance.now() + e;
2597
+ for (; ; ) {
2598
+ const i = performance.now();
2599
+ if (i >= t) {
2600
+ this.animationTime = null;
2601
+ break;
2602
+ }
2603
+ if (this.animationTime = i, this._renderFrame(i)) {
2604
+ this.animationTime = null;
2605
+ break;
2606
+ }
2607
+ }
2608
+ }
2609
+ }
2610
+ _startTicker() {
2611
+ this._ticker === null && (this.animationTime = null, this._ticker = (e) => {
2612
+ this._runTicker(e);
2613
+ }, Ne(this.fps, this._ticker));
2614
+ }
2615
+ get updateTick() {
2616
+ return this._updateTick;
2617
+ }
2618
+ set updateTick(e) {
2619
+ this._updateTick = e, e && this._startTicker();
2620
+ }
2621
+ _addDirtyEntity(e) {
2622
+ this._dirty[e.uid] === void 0 && (this._isDirty = !0, this._dirty[e.uid] = e, this._startTicker());
2623
+ }
2624
+ _addDirtyParent(e) {
2625
+ this._dirtyParents[e.uid] === void 0 && (this._isDirty = !0, this._isDirtyParents = !0, this._dirtyParents[e.uid] = e, this._startTicker());
2626
+ }
2627
+ _addDirtyBounds(e) {
2628
+ this._dirtyBounds[e.uid] === void 0 && (this._isDirty = !0, this._dirtyBounds[e.uid] = e, this._startTicker());
2629
+ }
2630
+ _addDirtyPosition(e) {
2631
+ this._dirtyPositions[e.uid] === void 0 && (this._isDirty = !0, this._dirtyPositions[e.uid] = e, this._startTicker());
2632
+ }
2633
+ _addAnimation(e) {
2634
+ this._animations.indexOf(e) === -1 && this._animations.push(e), this._startTicker();
2635
+ }
2636
+ _markDirty() {
2637
+ this._isDirty = !0;
2638
+ }
2639
+ _markDirtyRedraw() {
2640
+ this.events.once("frameended", () => {
2641
+ this._isDirty = !0, this._startTicker();
2642
+ });
2643
+ }
2644
+ eachFrame(e) {
2645
+ return this._tickers.push(e), this._startTicker(), new $(() => {
2646
+ Te(this._tickers, e);
2647
+ });
2648
+ }
2649
+ markDirtyGlobal(e) {
2650
+ e || (e = this.container), e.walkChildren((t) => {
2651
+ t instanceof q && this.markDirtyGlobal(t), t.markDirty(), t.markDirtyBounds();
2652
+ });
2653
+ }
2654
+ width() {
2655
+ return Math.floor(this._getCalculatedSize(this._getRealSize()).width);
2656
+ }
2657
+ height() {
2658
+ return Math.floor(this._getCalculatedSize(this._getRealSize()).height);
2659
+ }
2660
+ dispose() {
2661
+ this._isDisposed || (this._isDisposed = !0, this._rootContainer.dispose(), this._renderer.dispose(), this.horizontalLayout.dispose(), this.verticalLayout.dispose(), this.interfaceColors.dispose(), y(this._disposers, (e) => {
2662
+ e.dispose();
2663
+ }), this._inner && _t(this._inner), se(te.rootElements, this));
2664
+ }
2665
+ isDisposed() {
2666
+ return this._isDisposed;
2667
+ }
2668
+ readerAlert(e) {
2669
+ this._a11yD !== !0 && (this._readerAlertElement.innerHTML = ze(e));
2670
+ }
2671
+ setThemes(e) {
2672
+ this._rootContainer.set("themes", e);
2673
+ const t = this.tooltipContainer;
2674
+ t && t._applyThemes();
2675
+ const i = this.interfaceColors;
2676
+ i && i._applyThemes();
2677
+ }
2678
+ _addTooltip() {
2679
+ if (!this.tooltipContainer) {
2680
+ const e = this._tooltipContainerSettings, t = this._rootContainer.children.push(q.new(this, { position: "absolute", isMeasured: !1, width: Z, height: Z, layer: e ? 35 : 30, layerMargin: e || void 0 }));
2681
+ this.tooltipContainer = t;
2682
+ const i = We.new(this, {});
2683
+ this.container.set("tooltip", i), i.hide(0), this._tooltip = i;
2684
+ }
2685
+ }
2686
+ _registerTabindexOrder(e) {
2687
+ this._a11yD != 1 && (e.get("focusable") ? je(this._tabindexes, e) : se(this._tabindexes, e), this._invalidateTabindexes());
2688
+ }
2689
+ _unregisterTabindexOrder(e) {
2690
+ this._a11yD != 1 && (se(this._tabindexes, e), this._invalidateTabindexes());
2691
+ }
2692
+ _invalidateTabindexes() {
2693
+ if (this._a11yD == 1)
2694
+ return;
2695
+ this._tabindexes.sort((t, i) => {
2696
+ const r = t.get("tabindexOrder", 0), a = i.get("tabindexOrder", 0);
2697
+ return r == a ? 0 : r > a ? 1 : -1;
2698
+ });
2699
+ const e = [];
2700
+ y(this._tabindexes, (t, i) => {
2701
+ t.getPrivate("focusElement") ? this._moveFocusElement(i, t) : this._makeFocusElement(i, t);
2702
+ const r = t.get("focusableGroup");
2703
+ r && t.getPrivate("focusable") !== !1 && (e.indexOf(r) !== -1 ? t.getPrivate("focusElement").dom.setAttribute("tabindex", "-1") : e.push(r));
2704
+ });
2705
+ }
2706
+ _updateCurrentFocus() {
2707
+ this._a11yD != 1 && this._focusedSprite && (this._decorateFocusElement(this._focusedSprite), this._positionFocusElement(this._focusedSprite));
2708
+ }
2709
+ _decorateFocusElement(e, t) {
2710
+ if (this._a11yD == 1 || (t || (t = e.getPrivate("focusElement").dom), !t))
2711
+ return;
2712
+ const i = e.get("role");
2713
+ i ? t.setAttribute("role", i) : t.removeAttribute("role");
2714
+ const r = e.get("ariaLabel");
2715
+ if (r) {
2716
+ const o = yt(e, r);
2717
+ t.setAttribute("aria-label", o);
2718
+ } else
2719
+ t.removeAttribute("aria-label");
2720
+ const a = e.get("ariaLive");
2721
+ a ? t.setAttribute("aria-live", a) : t.removeAttribute("aria-live");
2722
+ const s = e.get("ariaChecked");
2723
+ s != null && i && ["checkbox", "option", "radio", "menuitemcheckbox", "menuitemradio", "treeitem"].indexOf(i) !== -1 ? t.setAttribute("aria-checked", s ? "true" : "false") : t.removeAttribute("aria-checked"), e.get("ariaHidden") ? t.setAttribute("aria-hidden", "true") : t.removeAttribute("aria-hidden");
2724
+ const n = e.get("ariaOrientation");
2725
+ n ? t.setAttribute("aria-orientation", n) : t.removeAttribute("aria-orientation");
2726
+ const h = e.get("ariaValueNow");
2727
+ h ? t.setAttribute("aria-valuenow", h) : t.removeAttribute("aria-valuenow");
2728
+ const c = e.get("ariaValueMin");
2729
+ c ? t.setAttribute("aria-valuemin", c) : t.removeAttribute("aria-valuemin");
2730
+ const g = e.get("ariaValueMax");
2731
+ g ? t.setAttribute("aria-valuemax", g) : t.removeAttribute("aria-valuemax");
2732
+ const u = e.get("ariaValueText");
2733
+ u ? t.setAttribute("aria-valuetext", u) : t.removeAttribute("aria-valuetext");
2734
+ const b = e.get("ariaControls");
2735
+ b ? t.setAttribute("aria-controls", b) : t.removeAttribute("aria-controls"), e.get("visible") && e.get("opacity") !== 0 && e.get("role") != "tooltip" && !e.isHidden() && e.getPrivate("focusable") !== !1 ? (t.getAttribute("tabindex") != "-1" && t.setAttribute("tabindex", "" + this.tabindex), t.removeAttribute("aria-hidden")) : (t.removeAttribute("tabindex"), t.setAttribute("aria-hidden", "true"));
2736
+ }
2737
+ _makeFocusElement(e, t) {
2738
+ if (t.getPrivate("focusElement") || this._a11yD == 1)
2739
+ return;
2740
+ const i = document.createElement("div");
2741
+ t.get("role") != "tooltip" && (i.tabIndex = this.tabindex), i.style.position = "absolute", K(i, !1);
2742
+ const r = [];
2743
+ t.setPrivate("focusElement", { dom: i, disposers: r }), this._decorateFocusElement(t), r.push(C(i, "focus", (a) => {
2744
+ this._handleFocus(a, e);
2745
+ })), r.push(C(i, "blur", (a) => {
2746
+ this._handleBlur(a, e);
2747
+ })), this._moveFocusElement(e, t);
2748
+ }
2749
+ _removeFocusElement(e) {
2750
+ if (this._a11yD == 1)
2751
+ return;
2752
+ se(this._tabindexes, e);
2753
+ const t = e.getPrivate("focusElement");
2754
+ t && (this._focusElementContainer.removeChild(t.dom), y(t.disposers, (i) => {
2755
+ i.dispose();
2756
+ }));
2757
+ }
2758
+ _hideFocusElement(e) {
2759
+ this._a11yD != 1 && (e.getPrivate("focusElement").dom.style.display = "none");
2760
+ }
2761
+ _moveFocusElement(e, t) {
2762
+ if (this._a11yD == 1)
2763
+ return;
2764
+ const i = this._focusElementContainer, r = t.getPrivate("focusElement").dom;
2765
+ if (r === this._focusElementContainer.children[e])
2766
+ return;
2767
+ const a = this._focusElementContainer.children[e + 1];
2768
+ a ? i.insertBefore(r, a) : i.append(r);
2769
+ }
2770
+ _positionFocusElement(e) {
2771
+ if (this._a11yD == 1 || e == null)
2772
+ return;
2773
+ const t = e.globalBounds();
2774
+ let i = t.right == t.left ? e.width() : t.right - t.left, r = t.top == t.bottom ? e.height() : t.bottom - t.top;
2775
+ const a = this._settings.focusPadding !== void 0 ? this._settings.focusPadding : 2;
2776
+ let s = t.left - a, n = t.top - a;
2777
+ i < 0 && (s += i, i = Math.abs(i)), r < 0 && (n += r, r = Math.abs(r));
2778
+ const h = e.getPrivate("focusElement").dom;
2779
+ h.style.top = n + "px", h.style.left = s + "px", h.style.width = i + 2 * a + "px", h.style.height = r + 2 * a + "px";
2780
+ }
2781
+ _handleFocus(e, t) {
2782
+ if (this._a11yD == 1)
2783
+ return;
2784
+ const i = this._tabindexes[t];
2785
+ i.isVisibleDeep() ? (this._positionFocusElement(i), this._focusedSprite = i, i.events.isEnabled("focus") && i.events.dispatch("focus", { type: "focus", originalEvent: e, target: i })) : this._focusNext(e.target, this._isShift ? -1 : 1);
2786
+ }
2787
+ _focusNext(e, t) {
2788
+ if (this._a11yD == 1)
2789
+ return;
2790
+ const i = Array.from(document.querySelectorAll(["a[href]", "area[href]", "button:not([disabled])", "details", "input:not([disabled])", "iframe:not([disabled])", "select:not([disabled])", "textarea:not([disabled])", '[contentEditable=""]', '[contentEditable="true"]', '[contentEditable="TRUE"]', '[tabindex]:not([tabindex^="-"])'].join(",")));
2791
+ let r = i.indexOf(e) + t;
2792
+ r < 0 ? r = i.length - 1 : r >= i.length && (r = 0), i[r].focus();
2793
+ }
2794
+ _handleBlur(e, t) {
2795
+ if (this._a11yD == 1)
2796
+ return;
2797
+ const i = this._focusedSprite;
2798
+ i && !i.isDisposed() && i.events.isEnabled("blur") && i.events.dispatch("blur", { type: "blur", originalEvent: e, target: i }), this._focusedSprite = void 0;
2799
+ }
2800
+ updateTooltip(e) {
2801
+ if (this._a11yD == 1)
2802
+ return;
2803
+ const t = ze(e._getText());
2804
+ let i = e.getPrivate("tooltipElement");
2805
+ e.get("role") == "tooltip" && t != "" ? (i || (i = this._makeTooltipElement(e)), i.innerHTML != t && (i.innerHTML = t)) : i && (i.remove(), e.removePrivate("tooltipElement"));
2806
+ }
2807
+ _makeTooltipElement(e) {
2808
+ const t = this._tooltipElementContainer, i = document.createElement("div");
2809
+ return i.style.position = "absolute", i.style.width = "1px", i.style.height = "1px", i.style.overflow = "hidden", i.style.clip = "rect(1px, 1px, 1px, 1px)", K(i, !1), this._decorateFocusElement(e, i), t.append(i), e.setPrivate("tooltipElement", i), i;
2810
+ }
2811
+ _removeTooltipElement(e) {
2812
+ if (this._a11yD == 1)
2813
+ return;
2814
+ const t = e.getPrivate("tooltipElement");
2815
+ if (t) {
2816
+ const i = t.parentElement;
2817
+ i && i.removeChild(t);
2818
+ }
2819
+ }
2820
+ _invalidateAccessibility(e) {
2821
+ if (this._a11yD == 1)
2822
+ return;
2823
+ this._focusElementDirty = !0;
2824
+ const t = e.getPrivate("focusElement");
2825
+ e.get("focusable") ? t && (this._decorateFocusElement(e), this._positionFocusElement(e)) : t && this._removeFocusElement(e);
2826
+ }
2827
+ focused(e) {
2828
+ return this._focusedSprite === e;
2829
+ }
2830
+ documentPointToRoot(e) {
2831
+ const t = this._getRealSize(), i = this._getCalculatedSize(t), r = i.width / t.width, a = i.height / t.height;
2832
+ return { x: (e.x - t.left) * r, y: (e.y - t.top) * a };
2833
+ }
2834
+ rootPointToDocument(e) {
2835
+ const t = this._getRealSize(), i = this._getCalculatedSize(t), r = i.width / t.width, a = i.height / t.height;
2836
+ return { x: e.x / r + t.left, y: e.y / a + t.top };
2837
+ }
2838
+ addDisposer(e) {
2839
+ return this._disposers.push(e), e;
2840
+ }
2841
+ _updateComputedStyles() {
2842
+ const e = window.getComputedStyle(this.dom);
2843
+ let t = "";
2844
+ he(e, (r, a) => {
2845
+ pe(r) && r.match(/^font/) && (t += a);
2846
+ });
2847
+ const i = t != this._fontHash;
2848
+ return i && (this._fontHash = t), i;
2849
+ }
2850
+ _checkComputedStyles() {
2851
+ this._updateComputedStyles() && this._invalidateLabelBounds(this.container);
2852
+ }
2853
+ _invalidateLabelBounds(e) {
2854
+ e instanceof q ? e.children.each((t) => {
2855
+ this._invalidateLabelBounds(t);
2856
+ }) : e instanceof vt && e.markDirtyBounds();
2857
+ }
2858
+ _hasLicense() {
2859
+ for (let e = 0; e < te.licenses.length; e++)
2860
+ if (te.licenses[e].match(/^AM5C.{5,}/i))
2861
+ return !0;
2862
+ return !1;
2863
+ }
2864
+ _licenseApplied() {
2865
+ this._logo && this._logo.set("forceHidden", !0);
2866
+ }
2867
+ get debugGhostView() {
2868
+ return this._renderer.debugGhostView;
2869
+ }
2870
+ set debugGhostView(e) {
2871
+ this._renderer.debugGhostView = e;
2872
+ }
2873
+ set tapToActivate(e) {
2874
+ this._renderer.tapToActivate = e;
2875
+ }
2876
+ get tapToActivate() {
2877
+ return this._renderer.tapToActivate;
2878
+ }
2879
+ set tapToActivateTimeout(e) {
2880
+ this._renderer.tapToActivateTimeout = e;
2881
+ }
2882
+ get tapToActivateTimeout() {
2883
+ return this._renderer.tapToActivateTimeout;
2884
+ }
2885
+ _makeHTMLElement(e) {
2886
+ const t = this._htmlElementContainer, i = document.createElement("div");
2887
+ return e.setPrivate("htmlElement", i), i.style.position = "absolute", i.style.overflow = "auto", i.style.boxSizing = "border-box", K(i, e.get("interactive", !1)), e.events.isEnabled("click") && (K(i, !0), this._disposers.push(C(i, "click", (r) => {
2888
+ const a = this._renderer.getEvent(r);
2889
+ e.events.dispatch("click", { type: "click", originalEvent: a.event, point: a.point, simulated: !1, target: e });
2890
+ }))), this._positionHTMLElement(e), t.append(i), je(this._htmlEnabledContainers, e), i;
2891
+ }
2892
+ _positionHTMLElements() {
2893
+ y(this._htmlEnabledContainers, (e) => {
2894
+ this._positionHTMLElement(e);
2895
+ });
2896
+ }
2897
+ _positionHTMLElement(e) {
2898
+ const t = e.getPrivate("htmlElement");
2899
+ if (t) {
2900
+ y(["paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "minWidth", "minHeight", "maxWidth", "maxHeight"], (g) => {
2901
+ const u = e.get(g);
2902
+ t.style[g] = u ? u + "px" : "";
2903
+ });
2904
+ const i = e.compositeOpacity();
2905
+ setTimeout(() => {
2906
+ t.style.opacity = i + "";
2907
+ }, 10);
2908
+ const r = e.isVisibleDeep();
2909
+ r && (t.style.display = "block");
2910
+ const a = e.globalBounds();
2911
+ t.style.top = a.top + "px", t.style.left = a.left + "px";
2912
+ const s = e.get("width"), n = e.get("height");
2913
+ let h = 0, c = 0;
2914
+ if (s && (h = e.width()), n && (c = e.height()), s && n)
2915
+ e.removePrivate("minWidth"), e.removePrivate("minHeight");
2916
+ else {
2917
+ t.style.position = "fixed", t.style.width = "", t.style.height = "";
2918
+ const g = t.getBoundingClientRect();
2919
+ t.style.position = "absolute", h = g.width, c = g.height, e._adjustedLocalBounds = { left: 0, right: 0, top: 0, bottom: 0 }, e.setPrivate("minWidth", h), e.setPrivate("minHeight", c);
2920
+ }
2921
+ h > 0 && (t.style.minWidth = h + "px"), c > 0 && (t.style.minHeight = c + "px"), r && i != 0 || (t.style.display = "none");
2922
+ }
2923
+ }
2924
+ _setHTMLContent(e, t) {
2925
+ let i = e.getPrivate("htmlElement");
2926
+ i || (i = this._makeHTMLElement(e)), i.innerHTML != t && (i.innerHTML = t);
2927
+ }
2928
+ _removeHTMLContent(e) {
2929
+ let t = e.getPrivate("htmlElement");
2930
+ t && (this._htmlElementContainer.removeChild(t), e.removePrivate("htmlElement")), se(this._htmlEnabledContainers, e);
2931
+ }
2932
+ }
2933
+ lt("AM5C241025748");
2934
+ const qe = "en-us", De = /* @__PURE__ */ new Map([["ar", () => import("./ar-a17f8064.js")], ["bg-bg", () => import("./bg_BG-9950a70b.js")], ["bs-ba", () => import("./bs_BA-60482871.js")], ["ca-es", () => import("./ca_ES-a121088e.js")], ["cs-cz", () => import("./cs_CZ-1b968650.js")], ["da-dk", () => import("./da_DK-e0fe1642.js")], ["de-de", () => import("./de_DE-8609ef65.js")], ["de-ch", () => import("./de_CH-b0dbd4c8.js")], ["el-gr", () => import("./el_GR-5cfd1e7e.js")], ["en-us", () => import("./en_US-47f2633b.js")], ["en-ca", () => import("./en_CA-47f2633b.js")], ["es-es", () => import("./es_ES-489878a2.js")], ["et-ee", () => import("./et_EE-6472669a.js")], ["fi-fi", () => import("./fi_FI-d7a3a525.js")], ["fr-fr", () => import("./fr_FR-a88f2596.js")], ["he-il", () => import("./he_IL-e34cf273.js")], ["hr-hr", () => import("./hr_HR-6a124f87.js")], ["hu-hu", () => import("./hu_HU-58f3feb6.js")], ["id-id", () => import("./id_ID-18d97715.js")], ["it-it", () => import("./it_IT-49e70bbf.js")], ["ja-jp", () => import("./ja_JP-eaef2cc3.js")], ["ko-kr", () => import("./ko_KR-5c972fd8.js")], ["lt-lt", () => import("./lt_LT-26f13fd1.js")], ["lv-lv", () => import("./lv_LV-4feafa92.js")], ["nb-no", () => import("./nb_NO-21543153.js")], ["nl-nl", () => import("./nl_NL-7876d97f.js")], ["pl-pl", () => import("./pl_PL-276c6dae.js")], ["pt-br", () => import("./pt_BR-4fae3055.js")], ["pt-pt", () => import("./pt_PT-14d9efb1.js")], ["ro-ro", () => import("./ro_RO-8e733cf5.js")], ["ru-ru", () => import("./ru_RU-f7bafc90.js")], ["sk-sk", () => import("./sk_SK-c279eea3.js")], ["sl-sl", () => import("./sl_SL-e40950dd.js")], ["sr-rs", () => import("./sr_RS-b1835dfa.js")], ["sv-se", () => import("./sv_SE-15ca9e36.js")], ["th-th", () => import("./th_TH-bf624a56.js")], ["tr-tr", () => import("./tr_TR-ca5c315f.js")], ["uk-ua", () => import("./uk_UA-4b3cb86d.js")], ["vi-vn", () => import("./vi_VN-ad09e708.js")], ["zh-cn", () => import("./zh_Hans-61faef57.js")], ["zh-hk", () => import("./zh_Hant-87a9767b.js")], ["zh-tw", () => import("./zh_Hant-87a9767b.js")]]);
2935
+ function ji(d) {
2936
+ const e = d.split("-")[0].toLowerCase();
2937
+ let t = null;
2938
+ for (const i of De.keys())
2939
+ if (i.startsWith(e)) {
2940
+ t = i;
2941
+ break;
2942
+ }
2943
+ return t;
2944
+ }
2945
+ function Ei(d) {
2946
+ return d ? De.has(d.toLowerCase()) ? d.toLowerCase() : ji(d) || qe : qe;
2947
+ }
2948
+ async function Li(d, e = ot()) {
2949
+ const t = Be.new(d);
2950
+ return t.locale = (await De.get(Ei(e))()).default, t;
2951
+ }
2952
+ export {
2953
+ Li as createRoot
2954
+ };