@spteck/react-controls-v2 2.3.7 → 2.3.8
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.
- package/dist/LocalizationProvider-B6NxHbu2.cjs +2 -0
- package/dist/LocalizationProvider-te5iu_6z.js +363 -0
- package/dist/_arrayEach-BuSFKyFt.js +54 -0
- package/dist/_arrayEach-ChR-TejB.cjs +2 -0
- package/dist/_getTag-BRuLtYrv.js +28 -0
- package/dist/_getTag-D6VVyrEu.cjs +2 -0
- package/dist/abstractions/IApplicationContext.d.ts +0 -1
- package/dist/abstractions/IAuthenticationProvider.d.ts +0 -1
- package/dist/abstractions/ILocalizationProvider.d.ts +0 -1
- package/dist/abstractions/providers/ConsoleLoggingProvider.d.ts +0 -1
- package/dist/abstractions/providers/DefaultGraphClient.d.ts +0 -1
- package/dist/abstractions/providers/DefaultLocalizationProvider.d.ts +0 -1
- package/dist/abstractions/providers/LocalStorageProvider.d.ts +0 -1
- package/dist/abstractions/providers/LocalizationProvider.d.ts +0 -1
- package/dist/ar-Blifx2MN.js +210 -0
- package/dist/ar-ip3bGOX3.cjs +2 -0
- package/dist/arc-4yb49ncY.js +82 -0
- package/dist/arc-djsA8IT0.cjs +2 -0
- package/dist/architecture-PBZL5I3N-CvTfVLFi.js +3 -0
- package/dist/architecture-PBZL5I3N-wZIE3ggH.cjs +1 -0
- package/dist/architectureDiagram-2XIMDMQ5-DFEvJNx1.cjs +37 -0
- package/dist/architectureDiagram-2XIMDMQ5-g-HotzpG.js +4047 -0
- package/dist/array-BNB_vRFv.cjs +2 -0
- package/dist/array-DP0duYiO.js +8 -0
- package/dist/az-CMhDjtnj.js +210 -0
- package/dist/az-CyVLdUDz.cjs +2 -0
- package/dist/bg-Bexoz3hL.cjs +2 -0
- package/dist/bg-C96WirSv.js +210 -0
- package/dist/blockDiagram-WCTKOSBZ-DWgb5Ghz.js +3165 -0
- package/dist/blockDiagram-WCTKOSBZ-Dl04FBAy.cjs +133 -0
- package/dist/bs-MMcvhwLv.cjs +2 -0
- package/dist/bs-_St1wBE_.js +210 -0
- package/dist/c4Diagram-IC4MRINW-ClZvialQ.js +2966 -0
- package/dist/c4Diagram-IC4MRINW-ZFE2cGZP.cjs +11 -0
- package/dist/ca-BspMSeHN.cjs +2 -0
- package/dist/ca-QlLcV4wf.js +210 -0
- package/dist/channel-2Bqnb1FY.js +7 -0
- package/dist/channel-5_aP1EVB.cjs +2 -0
- package/dist/chunk-4BX2VUAB-B5Va_oZz.js +10 -0
- package/dist/chunk-4BX2VUAB-BWDW-gYk.cjs +2 -0
- package/dist/chunk-55IACEB6-4ind_ByS.cjs +2 -0
- package/dist/chunk-55IACEB6-Pcyz_aR_.js +10 -0
- package/dist/chunk-7E7YKBS2-Sw9_w4gt.cjs +2 -0
- package/dist/chunk-7E7YKBS2-VHdgsed6.js +25 -0
- package/dist/chunk-7R4GIKGN-BKoqTTU_.cjs +81 -0
- package/dist/chunk-7R4GIKGN-CaQJ0QBF.js +2598 -0
- package/dist/chunk-C72U2L5F-CCvi6jiy.cjs +2 -0
- package/dist/chunk-C72U2L5F-MjJQTOMh.js +25 -0
- package/dist/chunk-D-IZpNpi.cjs +1 -0
- package/dist/chunk-EGIJ26TM-Bffl84Wq.cjs +2 -0
- package/dist/chunk-EGIJ26TM-DLMAfvpZ.js +25 -0
- package/dist/{chunk-FMBD7UC4-DD0xIF4q.js → chunk-FMBD7UC4-BvqqU04Z.cjs} +3 -7
- package/dist/chunk-FMBD7UC4-xjRtkFXe.js +7 -0
- package/dist/chunk-GEFDOKGD-BNgT40Ex.js +1302 -0
- package/dist/chunk-GEFDOKGD-BOwd6Jqp.cjs +3 -0
- package/dist/chunk-GLR3WWYH-DdNAJNRC.cjs +2 -0
- package/dist/chunk-GLR3WWYH-kyo6BUtq.js +43 -0
- package/dist/chunk-HHEYEP7N-DO1AYIZw.js +11 -0
- package/dist/chunk-HHEYEP7N-pdmgQZzP.cjs +2 -0
- package/dist/chunk-JSJVCQXG-Ci0seBb4.cjs +2 -0
- package/dist/chunk-JSJVCQXG-DowfYWcD.js +62 -0
- package/dist/chunk-KX2RTZJC-BJeOHReu.cjs +2 -0
- package/dist/chunk-KX2RTZJC-D-bUTSNy.js +27 -0
- package/dist/chunk-KYZI473N-DEPuSXaW.js +3436 -0
- package/dist/chunk-KYZI473N-DzBMFOER.cjs +54 -0
- package/dist/chunk-L3YUKLVL-BDGCTzmy.js +25 -0
- package/dist/chunk-L3YUKLVL-BZ17sqh5.cjs +2 -0
- package/dist/chunk-MX3YWQON-CAsnAj2e.js +82 -0
- package/dist/chunk-MX3YWQON-DulrBJdn.cjs +2 -0
- package/dist/chunk-NBPlniwU.js +23 -0
- package/dist/chunk-NQ4KR5QH-BJBAT2kM.cjs +221 -0
- package/dist/chunk-NQ4KR5QH-DFem-ORD.js +2004 -0
- package/dist/chunk-O4XLMI2P-BQF7MAo7.cjs +8 -0
- package/dist/chunk-O4XLMI2P-DA4TPzPG.js +513 -0
- package/dist/chunk-OZEHJAEY-CAiiXJUP.cjs +2 -0
- package/dist/chunk-OZEHJAEY-D7SX2SbR.js +66 -0
- package/dist/chunk-PQ6SQG4A-BZnW4-Sd.cjs +2 -0
- package/dist/chunk-PQ6SQG4A-ObFGkauo.js +69 -0
- package/dist/chunk-PU5JKC2W-BM5NPS-q.js +1887 -0
- package/dist/chunk-PU5JKC2W-eRU8wnTH.cjs +71 -0
- package/dist/chunk-QZHKN3VN-Dhli_tM0.cjs +2 -0
- package/dist/chunk-QZHKN3VN-x258g6EH.js +17 -0
- package/dist/chunk-R5LLSJPH-CNTEucEd.cjs +2 -0
- package/dist/chunk-R5LLSJPH-Gt27ml2m.js +37 -0
- package/dist/chunk-WL4C6EOR-CQXw6d0l.cjs +190 -0
- package/dist/chunk-WL4C6EOR-DuM6QmqM.js +3196 -0
- package/dist/chunk-XIRO2GV7-CswC9CO8.cjs +2 -0
- package/dist/chunk-XIRO2GV7-DXlO8X82.js +32 -0
- package/dist/chunk-XPW4576I-Bpsr4SZJ.js +1148 -0
- package/dist/chunk-XPW4576I-C68T-WIW.cjs +33 -0
- package/dist/chunk-XZSTWKYB-DJv9rEVU.cjs +95 -0
- package/dist/chunk-XZSTWKYB-jD9M1izK.js +16132 -0
- package/dist/chunk-YBOYWFTD-B6CeuteH.js +34 -0
- package/dist/chunk-YBOYWFTD-CiLW6HW_.cjs +2 -0
- package/dist/classDiagram-VBA2DB6C-Us0kuDfz.cjs +2 -0
- package/dist/classDiagram-VBA2DB6C-VOsE3gN0.js +31 -0
- package/dist/classDiagram-v2-RAHNMMFH-BWsm3ea6.cjs +2 -0
- package/dist/classDiagram-v2-RAHNMMFH-DPqMNfOz.js +31 -0
- package/dist/components/AISearchControl/useAISearchControlStyles.d.ts +0 -1
- package/dist/components/AspectRatio/AspectRatio.d.ts +0 -1
- package/dist/components/AspectRatio/IAspectRationProps.d.ts +0 -1
- package/dist/components/Card/ICardProps.d.ts +0 -1
- package/dist/components/Carousel/ICarouselProps.d.ts +0 -1
- package/dist/components/Carousel/useCarouselButton.d.ts +0 -1
- package/dist/components/Carousel/useCarouselStyles.d.ts +0 -1
- package/dist/components/Center/ICenterProps.d.ts +0 -1
- package/dist/components/ContentRenderer/IContentRendererProps.d.ts +0 -1
- package/dist/components/DataGridV2/DataGridV2.d.ts +2 -1
- package/dist/components/DataGridV2/IDataGridV2ExtraProps.d.ts +0 -1
- package/dist/components/Grid/IGridProps.d.ts +0 -1
- package/dist/components/ItemPicker/IItemPickerProps.d.ts +0 -1
- package/dist/components/KPIControl/IKpiCardProps.d.ts +0 -1
- package/dist/components/ListItemActivityMessage/IActivity.d.ts +0 -1
- package/dist/components/ListItemActivityMessage/IActivityMessageProps.d.ts +0 -1
- package/dist/components/ListItemActivityMessage/IActor.d.ts +0 -1
- package/dist/components/ListItemActivityMessage/useSharePointActivities.d.ts +0 -1
- package/dist/components/ListToolbar/FlatItem.d.ts +0 -1
- package/dist/components/ListToolbar/IListToolbarProps.d.ts +0 -1
- package/dist/components/ListToolbar/IToolbarItem.d.ts +0 -1
- package/dist/components/ListToolbar/IToolbarItemRendererProps.d.ts +0 -1
- package/dist/components/ListToolbar/helpers.d.ts +0 -1
- package/dist/components/MermaidDiagram/useMermaidDiagramStyles.d.ts +0 -1
- package/dist/components/Navigation/Navigation.d.ts +0 -1
- package/dist/components/Popup/Popup.d.ts +0 -1
- package/dist/components/Provider/UniversalProvider.d.ts +0 -1
- package/dist/components/Space/ISpaceProps.d.ts +0 -1
- package/dist/components/SplitPane/ISplitPaneProps.d.ts +0 -1
- package/dist/components/SplitPane/useSplitPaneStyles.d.ts +0 -1
- package/dist/components/Stack/IStackProps.d.ts +0 -1
- package/dist/components/StackedUsers/IStackedUsersProps.d.ts +0 -1
- package/dist/components/StackedUsers/StackedUsers.d.ts +0 -1
- package/dist/components/adaptiveCardHost/AdaptiveCardHost.HostConfig.d.ts +0 -1
- package/dist/components/adaptiveCardHost/AdaptiveCardHost.Utilities.d.ts +0 -1
- package/dist/components/adaptiveCardHost/AdaptiveCardHost.d.ts +0 -1
- package/dist/components/adaptiveCardHost/IAdaptiveCardHostProps.d.ts +0 -1
- package/dist/components/adaptiveCardHost/fluentUI/Elements.d.ts +0 -1
- package/dist/components/adaptiveCardHost/fluentUI/FluentUIChoiceSetInput.d.ts +0 -1
- package/dist/components/adaptiveCardHost/fluentUI/FluentUIDateInput.d.ts +0 -1
- package/dist/components/adaptiveCardHost/fluentUI/FluentUINumberInput.d.ts +0 -1
- package/dist/components/adaptiveCardHost/fluentUI/FluentUITextInput.d.ts +0 -1
- package/dist/components/adaptiveCardHost/fluentUI/FluentUIToggleInput.d.ts +0 -1
- package/dist/components/adaptiveCardHost/fluentUI/HostCapability.d.ts +0 -1
- package/dist/components/adaptiveCardHost/fluentUI/HostConfig.d.ts +0 -1
- package/dist/components/adaptiveCardHost/fluentUI/Styles.d.ts +0 -1
- package/dist/components/adaptiveCardHost/models/IAdaptiveCardHostConfigResult.d.ts +0 -1
- package/dist/components/adaptiveCardHost/models/IAdaptiveCardHostEvaluationContext.d.ts +0 -1
- package/dist/components/aiAssistant/ChatAction.d.ts +0 -1
- package/dist/components/aiAssistant/ChatInputProps.d.ts +0 -1
- package/dist/components/aiAssistant/ChatInputWithMensions.d.ts +0 -1
- package/dist/components/aiAssistant/ChatInputWithMensionsProps.d.ts +0 -1
- package/dist/components/aiAssistant/ChatInputWithMensionsV1.d.ts +0 -1
- package/dist/components/aiAssistant/ChatInputWithMensionsV2.d.ts +0 -1
- package/dist/components/aiAssistant/ChatState.d.ts +0 -1
- package/dist/components/aiAssistant/IAIAssistantProps.d.ts +0 -1
- package/dist/components/aiAssistant/chatReducer.d.ts +0 -1
- package/dist/components/aiAssistant/useChatInputStyles.d.ts +0 -1
- package/dist/components/aiAssistant/useChatInputWithMensionsStyles.d.ts +0 -1
- package/dist/components/aiAssistant/useStyles.d.ts +0 -1
- package/dist/components/appDashboard/AppDashboard.d.ts +0 -1
- package/dist/components/appDashboard/IAppDashboardProps.d.ts +0 -1
- package/dist/components/baseComponentProps/IBaseProps.d.ts +0 -1
- package/dist/components/breadcrumb/Breadcrumb.d.ts +0 -1
- package/dist/components/breadcrumb/IBreadcrumProps.d.ts +0 -1
- package/dist/components/breadcrumb/OverflowMenu.d.ts +0 -1
- package/dist/components/breadcrumb/useBreadcrumStyles.d.ts +0 -1
- package/dist/components/calendarControl/hooks/useCalendar.d.ts +0 -1
- package/dist/components/calendarControl/hooks/useUtils.d.ts +0 -1
- package/dist/components/calendarControl/models/ICalendarControlProps.d.ts +0 -1
- package/dist/components/calendarControl/models/IEvents.d.ts +0 -1
- package/dist/components/customControlBar/ICustomControlBarProps.d.ts +0 -1
- package/dist/components/dataGrid/DataGrid.d.ts +0 -1
- package/dist/components/dataGrid/IDataGridProps.d.ts +0 -1
- package/dist/components/dataGrid/ISortState.d.ts +0 -1
- package/dist/components/dataGrid/stack/IStackProps.d.ts +0 -1
- package/dist/components/dataGrid/stack/Stack.d.ts +0 -1
- package/dist/components/dataGrid/useDataGridStyles.d.ts +0 -1
- package/dist/components/dropDownField/IDropDownFieldProps.d.ts +0 -1
- package/dist/components/fluentUIProvider/FluentUIProvider.d.ts +0 -1
- package/dist/components/iconButton/IconButton.d.ts +0 -1
- package/dist/components/iconButton/IconButtonProps.d.ts +0 -1
- package/dist/components/mensions/IMensionsProps.d.ts +0 -1
- package/dist/components/mensions/Mensions.d.ts +0 -1
- package/dist/components/mensions/MensionsExample.d.ts +0 -1
- package/dist/components/renderAdaptiveCard/RenderAdaptiveCard.d.ts +0 -1
- package/dist/components/searchControl/useSearchControlStyles.d.ts +0 -1
- package/dist/components/selectView/SelectView.d.ts +0 -1
- package/dist/components/showError/ShowError.d.ts +0 -1
- package/dist/components/stackv2/IStackV2Props.d.ts +0 -1
- package/dist/components/stackv2/StackV2.d.ts +0 -1
- package/dist/components/userCard/IUserCardProps.d.ts +0 -1
- package/dist/components/userCard/IUserInfo.d.ts +0 -1
- package/dist/components/userCard/UserCard.d.ts +0 -1
- package/dist/components/userCard/constants.d.ts +0 -1
- package/dist/components/userCard/useUserProfile.d.ts +0 -1
- package/dist/components/videoPlayer/VideoPlayer.d.ts +0 -1
- package/dist/components/videoPlayer/useVideoStyles.d.ts +0 -1
- package/dist/components/worldMap/IWorldMapProps.d.ts +0 -1
- package/dist/components/worldMap/MaplibreWorldMapProps.d.ts +0 -1
- package/dist/components/worldMap/WorldMap.d.ts +0 -1
- package/dist/components/worldMap/WorldMapControl.d.ts +0 -1
- package/dist/components/worldMap/useCleanMapStyle.d.ts +0 -1
- package/dist/components/worldMap/useGeocodedCountries.d.ts +0 -1
- package/dist/cose-bilkent-S5V4N54A-CKhwzobJ.js +2252 -0
- package/dist/cose-bilkent-S5V4N54A-DmyaRQ6l.cjs +2 -0
- package/dist/cs-FZSeHYld.cjs +2 -0
- package/dist/cs-MrS2bH7F.js +210 -0
- package/dist/cy-BX97Tgwk.js +210 -0
- package/dist/cy-CzQmM2lQ.cjs +2 -0
- package/dist/cytoscape.esm-CcJAI0wG.cjs +322 -0
- package/dist/cytoscape.esm-D9EjU25_.js +18102 -0
- package/dist/da-BnewPPrh.js +210 -0
- package/dist/da-CexFt-Oj.cjs +2 -0
- package/dist/dagre-CpEPaL3r.cjs +2 -0
- package/dist/dagre-Dd8wCGc6.js +1305 -0
- package/dist/dagre-KLK3FWXG-BpxkjvB3.js +294 -0
- package/dist/dagre-KLK3FWXG-DIznPQl_.cjs +5 -0
- package/dist/de-B68HwuYu.cjs +2 -0
- package/dist/de-BSZuzGTL.js +210 -0
- package/dist/defaultLocale-CYOzCjwh.js +203 -0
- package/dist/defaultLocale-DSgylVA1.cjs +2 -0
- package/dist/diagram-E7M64L7V-dXqTi77U.cjs +25 -0
- package/dist/diagram-E7M64L7V-oX07GVAD.js +529 -0
- package/dist/diagram-IFDJBPK2-CriVAAmI.cjs +44 -0
- package/dist/diagram-IFDJBPK2-lCNF06_S.js +215 -0
- package/dist/diagram-P4PSJMXO-TfwVJh4S.js +135 -0
- package/dist/diagram-P4PSJMXO-k7F0lH6Q.cjs +25 -0
- package/dist/dist-CV9Ez7cn.js +52 -0
- package/dist/dist-DVthN7lF.cjs +2 -0
- package/dist/el-DQc4jSMd.cjs +2 -0
- package/dist/el-DrOk3N7-.js +210 -0
- package/dist/erDiagram-INFDFZHY-CDt3mOSU.cjs +71 -0
- package/dist/erDiagram-INFDFZHY-Ds_R2Ds4.js +1668 -0
- package/dist/es-CGqzubZ2.js +210 -0
- package/dist/es-DI8Y4Bv1.cjs +2 -0
- package/dist/et-DGqkocuq.js +210 -0
- package/dist/et-DfaryKvp.cjs +2 -0
- package/dist/eu-BVOSXciF.cjs +2 -0
- package/dist/eu-DEo7fdTW.js +210 -0
- package/dist/fi-C5L-OzaI.cjs +2 -0
- package/dist/fi-DxErwnd5.js +210 -0
- package/dist/flowDiagram-PKNHOUZH-7XJG07fo.cjs +163 -0
- package/dist/flowDiagram-PKNHOUZH-CkeYebJ5.js +4163 -0
- package/dist/fr-yFvjqx8B.cjs +2 -0
- package/dist/fr-zrtSZX0o.js +210 -0
- package/dist/ga-6mVQhlWi.cjs +2 -0
- package/dist/ga-CbHxGc9_.js +210 -0
- package/dist/ganttDiagram-A5KZAMGK-Bbck1pyM.cjs +293 -0
- package/dist/ganttDiagram-A5KZAMGK-CFT3Xn_r.js +3074 -0
- package/dist/gitGraph-HDMCJU4V-BKE04oIl.js +3 -0
- package/dist/gitGraph-HDMCJU4V-C9GYfOYb.cjs +1 -0
- package/dist/gitGraphDiagram-K3NZZRJ6-CXz9SHBX.js +627 -0
- package/dist/gitGraphDiagram-K3NZZRJ6-Dt4D-ig1.cjs +66 -0
- package/dist/gl--w0P3RY4.js +210 -0
- package/dist/gl-BJzJe1sq.cjs +2 -0
- package/dist/graphlib-CPo7oIsu.js +223 -0
- package/dist/graphlib-CmUS4Qin.cjs +2 -0
- package/dist/he-B3Bw3qr0.cjs +2 -0
- package/dist/he-DY19lzWp.js +210 -0
- package/dist/hi-CFSsoO_8.js +210 -0
- package/dist/hi-kofL-mD8.cjs +2 -0
- package/dist/hooks/useBrandCenterFonts.d.ts +0 -1
- package/dist/hooks/useGraphAPI.d.ts +0 -1
- package/dist/hooks/useLocalizationStrings.d.ts +0 -1
- package/dist/hooks/useLogging.d.ts +0 -1
- package/dist/hr-CDxqA9Jm.cjs +2 -0
- package/dist/hr-DIRJ1Z8e.js +210 -0
- package/dist/hu-Defen_75.cjs +2 -0
- package/dist/hu-DqYPRWZh.js +210 -0
- package/dist/id-DcwMRgmX.cjs +2 -0
- package/dist/id-Dgj7SUCi.js +210 -0
- package/dist/identity-6JlhFhuM.cjs +2 -0
- package/dist/identity-C1jKsMoW.js +395 -0
- package/dist/index.cjs +453 -2
- package/dist/index.js +22827 -168
- package/dist/info-3K5VOQVL-DfN_3mKd.js +3 -0
- package/dist/info-3K5VOQVL-d6J9FY0_.cjs +1 -0
- package/dist/infoDiagram-LFFYTUFH-Bp9btqnA.cjs +3 -0
- package/dist/infoDiagram-LFFYTUFH-DnvgRFnx.js +21 -0
- package/dist/init-BAFZAp9S.cjs +2 -0
- package/dist/init-m0TwgR4W.js +17 -0
- package/dist/isEmpty-BTp1uKIj.cjs +2 -0
- package/dist/isEmpty-uXVYZZYe.js +17 -0
- package/dist/ishikawaDiagram-PHBUUO56-DLaOkz38.js +719 -0
- package/dist/ishikawaDiagram-PHBUUO56-DmqObwMZ.cjs +71 -0
- package/dist/it-D5nM6KCi.cjs +2 -0
- package/dist/it-QdChHqVN.js +210 -0
- package/dist/ja-BNS0BbY-.js +210 -0
- package/dist/ja-BtuHirv7.cjs +2 -0
- package/dist/journeyDiagram-4ABVD52K-Cv0DbLMi.cjs +140 -0
- package/dist/journeyDiagram-4ABVD52K-DYmmcNK4.js +885 -0
- package/dist/kanban-definition-K7BYSVSG-BdQLAMeB.cjs +90 -0
- package/dist/kanban-definition-K7BYSVSG-CLEYqSz5.js +973 -0
- package/dist/katex-B-Nju2J8.js +22002 -0
- package/dist/katex-WY67Rp7A.cjs +266 -0
- package/dist/kk-BSl8IqgQ.cjs +2 -0
- package/dist/kk-Dhkax68h.js +210 -0
- package/dist/ko-eplb1GD0.cjs +2 -0
- package/dist/ko-heRMHZWp.js +210 -0
- package/dist/line-CbEBKCYr.js +36 -0
- package/dist/line-DqSdvtRR.cjs +2 -0
- package/dist/linear-DvLDpS6A.cjs +2 -0
- package/dist/linear-Eb79THx6.js +291 -0
- package/dist/localization/ILibraryStrings.d.ts +0 -1
- package/dist/localization/defaults/ar.d.ts +0 -1
- package/dist/localization/defaults/az.d.ts +0 -1
- package/dist/localization/defaults/bg.d.ts +0 -1
- package/dist/localization/defaults/bs.d.ts +0 -1
- package/dist/localization/defaults/ca.d.ts +0 -1
- package/dist/localization/defaults/cs.d.ts +0 -1
- package/dist/localization/defaults/cy.d.ts +0 -1
- package/dist/localization/defaults/da.d.ts +0 -1
- package/dist/localization/defaults/de.d.ts +0 -1
- package/dist/localization/defaults/el.d.ts +0 -1
- package/dist/localization/defaults/en.d.ts +0 -1
- package/dist/localization/defaults/es.d.ts +0 -1
- package/dist/localization/defaults/et.d.ts +0 -1
- package/dist/localization/defaults/eu.d.ts +0 -1
- package/dist/localization/defaults/fi.d.ts +0 -1
- package/dist/localization/defaults/fr.d.ts +0 -1
- package/dist/localization/defaults/ga.d.ts +0 -1
- package/dist/localization/defaults/gl.d.ts +0 -1
- package/dist/localization/defaults/he.d.ts +0 -1
- package/dist/localization/defaults/hi.d.ts +0 -1
- package/dist/localization/defaults/hr.d.ts +0 -1
- package/dist/localization/defaults/hu.d.ts +0 -1
- package/dist/localization/defaults/id.d.ts +0 -1
- package/dist/localization/defaults/it.d.ts +0 -1
- package/dist/localization/defaults/ja.d.ts +0 -1
- package/dist/localization/defaults/kk.d.ts +0 -1
- package/dist/localization/defaults/ko.d.ts +0 -1
- package/dist/localization/defaults/lt.d.ts +0 -1
- package/dist/localization/defaults/lv.d.ts +0 -1
- package/dist/localization/defaults/mk.d.ts +0 -1
- package/dist/localization/defaults/ms.d.ts +0 -1
- package/dist/localization/defaults/nb.d.ts +0 -1
- package/dist/localization/defaults/nl.d.ts +0 -1
- package/dist/localization/defaults/pl.d.ts +0 -1
- package/dist/localization/defaults/pt.d.ts +0 -1
- package/dist/localization/defaults/ro.d.ts +0 -1
- package/dist/localization/defaults/ru.d.ts +0 -1
- package/dist/localization/defaults/sk.d.ts +0 -1
- package/dist/localization/defaults/sl.d.ts +0 -1
- package/dist/localization/defaults/sr.d.ts +0 -1
- package/dist/localization/defaults/sv.d.ts +0 -1
- package/dist/localization/defaults/th.d.ts +0 -1
- package/dist/localization/defaults/tr.d.ts +0 -1
- package/dist/localization/defaults/uk.d.ts +0 -1
- package/dist/localization/defaults/vi.d.ts +0 -1
- package/dist/localization/defaults/zh.d.ts +0 -1
- package/dist/lt-Decqbo8S.js +210 -0
- package/dist/lt-DsYAWFbF.cjs +2 -0
- package/dist/lv-DHmTjCb8.cjs +2 -0
- package/dist/lv-wZASv0Lw.js +210 -0
- package/dist/maplibre-gl-qSrG75fp.js +33003 -0
- package/dist/maplibre-gl-tm_pVdmb.cjs +757 -0
- package/dist/math-DR9t6ixc.cjs +2 -0
- package/dist/math-DyURnvXC.js +12 -0
- package/dist/mermaid-parser.core-BdTB9qx-.js +61 -0
- package/dist/mermaid-parser.core-BlzF5RRD.cjs +4 -0
- package/dist/mindmap-definition-YRQLILUH-CzcVgr-U.js +966 -0
- package/dist/mindmap-definition-YRQLILUH-zWN_YXC3.cjs +69 -0
- package/dist/mk-BTsLGTJT.js +210 -0
- package/dist/mk-CCV_308U.cjs +2 -0
- package/dist/ms-C0cVNwky.js +210 -0
- package/dist/ms-CH83xVYN.cjs +2 -0
- package/dist/nb-DGX4q4tS.js +210 -0
- package/dist/nb-DZ-DlwcL.cjs +2 -0
- package/dist/nl-CnXZa8tZ.js +210 -0
- package/dist/nl-Xdf-A19i.cjs +2 -0
- package/dist/ordinal-BAWGEQkf.js +67 -0
- package/dist/ordinal-CL2X4e2C.cjs +2 -0
- package/dist/packet-RMMSAZCW-Bek1stRX.cjs +1 -0
- package/dist/packet-RMMSAZCW-DUN6t9lN.js +3 -0
- package/dist/path-Bt6guLtL.cjs +2 -0
- package/dist/path-DSzKK8fH.js +87 -0
- package/dist/pie-UPGHQEXC-DjqNO54R.js +3 -0
- package/dist/pie-UPGHQEXC-pJq6_YgE.cjs +1 -0
- package/dist/pieDiagram-SKSYHLDU-Ba-c0fRA.cjs +31 -0
- package/dist/pieDiagram-SKSYHLDU-ya07MTY-.js +167 -0
- package/dist/pl-BStql1S-.cjs +2 -0
- package/dist/pl-DbIdTNpg.js +210 -0
- package/dist/providers.cjs +2 -2
- package/dist/providers.d.ts +1 -0
- package/dist/providers.js +188 -252
- package/dist/pt-CcKYweQk.js +210 -0
- package/dist/pt-Dk4jELuZ.cjs +2 -0
- package/dist/quadrantDiagram-337W2JSQ-CQQEVC49.cjs +8 -0
- package/dist/quadrantDiagram-337W2JSQ-Dp_QyIEO.js +1976 -0
- package/dist/radar-KQ55EAFF-Bid2hXXI.cjs +1 -0
- package/dist/radar-KQ55EAFF-C6zhEkCz.js +3 -0
- package/dist/requirementDiagram-Z7DCOOCP-CRl2914V.js +2203 -0
- package/dist/requirementDiagram-Z7DCOOCP-CeMYhXEm.cjs +74 -0
- package/dist/ro-BvhMyTKh.cjs +2 -0
- package/dist/ro-C-8tiqgA.js +210 -0
- package/dist/rough.esm-BjJ_weyP.cjs +2 -0
- package/dist/rough.esm-DBHP55VQ.js +1354 -0
- package/dist/ru-BQosng8l.cjs +2 -0
- package/dist/ru-Dhnz96q2.js +210 -0
- package/dist/sankeyDiagram-WA2Y5GQK-BFrF47Iv.js +922 -0
- package/dist/sankeyDiagram-WA2Y5GQK-DDfjtQ4G.cjs +11 -0
- package/dist/sequenceDiagram-2WXFIKYE-B-zWyr9f.cjs +146 -0
- package/dist/sequenceDiagram-2WXFIKYE-BAd8OVlz.js +4111 -0
- package/dist/sk-BU-Z5EsC.js +210 -0
- package/dist/sk-BhA7UeAk.cjs +2 -0
- package/dist/sl-6Mczv4jG.cjs +2 -0
- package/dist/sl-CcfjJFxo.js +210 -0
- package/dist/sr-CxObZdu0.cjs +2 -0
- package/dist/sr-S53unrLA.js +210 -0
- package/dist/src-DFxq-N5I.cjs +2 -0
- package/dist/src-Dm6r9c7l.js +2148 -0
- package/dist/stateDiagram-RAJIS63D-C-tfqeC-.js +219 -0
- package/dist/stateDiagram-RAJIS63D-C1Aj8vJQ.cjs +2 -0
- package/dist/stateDiagram-v2-FVOUBMTO-C-w53gXL.js +29 -0
- package/dist/stateDiagram-v2-FVOUBMTO-VoIE_KVn.cjs +2 -0
- package/dist/sv-BfiunVuX.cjs +2 -0
- package/dist/sv-BiJrVfZr.js +210 -0
- package/dist/th-BqLGltZi.cjs +2 -0
- package/dist/th-vQ7LQ7nD.js +210 -0
- package/dist/timeline-definition-YZTLITO2-CE1y2S_r.js +832 -0
- package/dist/timeline-definition-YZTLITO2-D8aFfnYE.cjs +62 -0
- package/dist/tr-Brwl4o_Z.cjs +2 -0
- package/dist/tr-C5RrNGLz.js +210 -0
- package/dist/treemap-KZPCXAKY-D2v0uStP.cjs +1 -0
- package/dist/treemap-KZPCXAKY-DLE_f1Bk.js +3 -0
- package/dist/types/THorizontalSpacing.d.ts +0 -1
- package/dist/types/THorizontalSpacingBreakPoints.d.ts +0 -1
- package/dist/types/TPaddingBreakPoints.d.ts +0 -1
- package/dist/types/TPading.d.ts +0 -1
- package/dist/types/TVerticalSpacing.d.ts +0 -1
- package/dist/types/TVerticalSpacingBreakPoints.d.ts +0 -1
- package/dist/uk-CV49TRvS.cjs +2 -0
- package/dist/uk-WGCFH0fY.js +210 -0
- package/dist/vennDiagram-LZ73GAT5-BSpVMORX.js +1860 -0
- package/dist/vennDiagram-LZ73GAT5-DvnB0e7u.cjs +35 -0
- package/dist/vi-JzM7bjn_.cjs +2 -0
- package/dist/vi-Waa7HkXq.js +210 -0
- package/dist/xychartDiagram-JWTSCODW-0qbVGrDs.cjs +8 -0
- package/dist/xychartDiagram-JWTSCODW-DpIry-th.js +2043 -0
- package/dist/zh-BmUS7Wn_.js +210 -0
- package/dist/zh-DEm0SGzZ.cjs +2 -0
- package/package.json +7 -7
- package/dist/LocalizationProvider-BLjmybBa.cjs +0 -2
- package/dist/LocalizationProvider-BSlUf0tp.js +0 -497
- package/dist/_arrayEach-Cje_jmPk.cjs +0 -2
- package/dist/_arrayEach-FofefpDi.js +0 -61
- package/dist/ar-C1pLt8fa.js +0 -219
- package/dist/ar-Jzw7PLrc.cjs +0 -2
- package/dist/arc-5Gjtja_I.js +0 -132
- package/dist/arc-DJHyDr2O.cjs +0 -2
- package/dist/architecture-7HQA4BMR-B3tJE43W.js +0 -6
- package/dist/architecture-7HQA4BMR-gT33-zCB.cjs +0 -2
- package/dist/architectureDiagram-VXUJARFQ-2JSYYGtM.js +0 -8680
- package/dist/architectureDiagram-VXUJARFQ-DXZHHpiT.cjs +0 -2
- package/dist/az-C0Ow5Hxa.cjs +0 -2
- package/dist/az-C3-F9ybX.js +0 -219
- package/dist/bg-YB0TmpRF.cjs +0 -2
- package/dist/bg-w2e_udiK.js +0 -219
- package/dist/blockDiagram-VD42YOAC-B6nGrskI.js +0 -3756
- package/dist/blockDiagram-VD42YOAC-quPSWMXj.cjs +0 -2
- package/dist/bs-BoW04lRb.cjs +0 -2
- package/dist/bs-CEe_gjEx.js +0 -219
- package/dist/c4Diagram-YG6GDRKO-CvSU_nSb.js +0 -2483
- package/dist/c4Diagram-YG6GDRKO-yrm6z9xI.cjs +0 -2
- package/dist/ca-Bsy2Y5pS.cjs +0 -2
- package/dist/ca-CKpd72XI.js +0 -219
- package/dist/channel-BGx_PGej.cjs +0 -2
- package/dist/channel-Dx_x_I-e.js +0 -8
- package/dist/chunk-4BX2VUAB-DE7Tf1KJ.js +0 -18
- package/dist/chunk-4BX2VUAB-hg2h7y7T.cjs +0 -2
- package/dist/chunk-55IACEB6-5VDRE5b9.js +0 -14
- package/dist/chunk-55IACEB6-DQzh2BFT.cjs +0 -2
- package/dist/chunk-B4BG7PRW-BONACuKe.cjs +0 -2
- package/dist/chunk-B4BG7PRW-ClXZOBBj.js +0 -1828
- package/dist/chunk-DI55MBZ5-CnX_pntz.cjs +0 -2
- package/dist/chunk-DI55MBZ5-Cw4AXuM5.js +0 -1928
- package/dist/chunk-FMBD7UC4-vGLXIanH.cjs +0 -2
- package/dist/chunk-QN33PNHL-Bi6cNSdZ.cjs +0 -2
- package/dist/chunk-QN33PNHL-NyikcZce.js +0 -26
- package/dist/chunk-QZHKN3VN-Cj-nkoY3.cjs +0 -2
- package/dist/chunk-QZHKN3VN-DRpbGzBX.js +0 -18
- package/dist/chunk-TZMSLE5B-Dbk2wKaP.cjs +0 -2
- package/dist/chunk-TZMSLE5B-DiEITu_i.js +0 -109
- package/dist/classDiagram-2ON5EDUG-CZ8qM-r0.js +0 -20
- package/dist/classDiagram-2ON5EDUG-GEqVHOl4.cjs +0 -2
- package/dist/classDiagram-v2-WZHVMYZB-CZ8qM-r0.js +0 -20
- package/dist/classDiagram-v2-WZHVMYZB-GEqVHOl4.cjs +0 -2
- package/dist/cose-bilkent-S5V4N54A-Bk5UrOC6.cjs +0 -2
- package/dist/cose-bilkent-S5V4N54A-D9POuI1b.js +0 -4934
- package/dist/cs-D-801PIR.cjs +0 -2
- package/dist/cs-DQvRPciB.js +0 -219
- package/dist/cy-BxyJCM05.js +0 -219
- package/dist/cy-aUPUcn-S.cjs +0 -2
- package/dist/cytoscape.esm-BS1owLay.js +0 -30250
- package/dist/cytoscape.esm-BxB3woZB.cjs +0 -10
- package/dist/da-B05ad5Iq.js +0 -219
- package/dist/da-CTiLOqut.cjs +0 -2
- package/dist/dagre-6UL2VRFP-BGgMwKrx.cjs +0 -2
- package/dist/dagre-6UL2VRFP-D1VXYHDk.js +0 -696
- package/dist/de-DJ5iwpd7.js +0 -219
- package/dist/de-Dm204UMA.cjs +0 -2
- package/dist/defaultLocale-7NeEK7SF.cjs +0 -2
- package/dist/defaultLocale-DVr69WTU.js +0 -207
- package/dist/diagram-PSM6KHXK-BnJ6u90U.cjs +0 -2
- package/dist/diagram-PSM6KHXK-MkySzwCw.js +0 -848
- package/dist/diagram-QEK2KX5R-7oJbO__T.js +0 -305
- package/dist/diagram-QEK2KX5R-CQjADuvs.cjs +0 -2
- package/dist/diagram-S2PKOQOG-AFF7RL6D.cjs +0 -2
- package/dist/diagram-S2PKOQOG-t6d3dY_R.js +0 -212
- package/dist/el-CBS9mHS3.js +0 -219
- package/dist/el-DbtZj-ph.cjs +0 -2
- package/dist/erDiagram-Q2GNP2WA-BY5cfs21.js +0 -1160
- package/dist/erDiagram-Q2GNP2WA-CsdjPSsg.cjs +0 -2
- package/dist/es-Bo08apQr.js +0 -219
- package/dist/es-Cc-4Vqf7.cjs +0 -2
- package/dist/et-D5pQ66eY.cjs +0 -2
- package/dist/et-pRL0Tmle.js +0 -219
- package/dist/eu-Br68gaf7.js +0 -219
- package/dist/eu-RZ-27koK.cjs +0 -2
- package/dist/fi-BCXB-k_X.js +0 -219
- package/dist/fi-Dqa9mgnW.cjs +0 -2
- package/dist/flowDiagram-NV44I4VS-BcaW6-_t.cjs +0 -2
- package/dist/flowDiagram-NV44I4VS-DoSHOTLX.js +0 -2339
- package/dist/fr-B7fhkle4.cjs +0 -2
- package/dist/fr-gKE1SSIF.js +0 -219
- package/dist/ga-4Hf7vKvr.cjs +0 -2
- package/dist/ga-C1SpITZy.js +0 -219
- package/dist/ganttDiagram-JELNMOA3-C8aHKsjy.js +0 -3652
- package/dist/ganttDiagram-JELNMOA3-YuzFUWYN.cjs +0 -2
- package/dist/gitGraph-G5XIXVHT-DN5M1zzB.cjs +0 -2
- package/dist/gitGraph-G5XIXVHT-kJP_icZ5.js +0 -6
- package/dist/gitGraphDiagram-V2S2FVAM-Bl2LJ6uK.js +0 -1215
- package/dist/gitGraphDiagram-V2S2FVAM-DI5S_ure.cjs +0 -2
- package/dist/gl-COSpsMSK.cjs +0 -2
- package/dist/gl-CSzCeu2L.js +0 -219
- package/dist/graph-C7xixGrW.cjs +0 -2
- package/dist/graph-DH3cnEko.js +0 -421
- package/dist/he-BrkfqoIm.js +0 -219
- package/dist/he-C7Wi6-EL.cjs +0 -2
- package/dist/hi-C1RGDPzn.js +0 -219
- package/dist/hi-ojklJj-a.cjs +0 -2
- package/dist/hr-CsO_h2VT.js +0 -219
- package/dist/hr-DkEwOCGU.cjs +0 -2
- package/dist/hu-CVtbM-V2.js +0 -219
- package/dist/hu-D8uAAzvN.cjs +0 -2
- package/dist/id-18yPGK2f.cjs +0 -2
- package/dist/id-CARSN0W8.js +0 -219
- package/dist/index-BMfuEpa-.cjs +0 -428
- package/dist/index-BiWHWaTZ.js +0 -55588
- package/dist/info-VBDWY6EO-0yZ4VJNq.cjs +0 -2
- package/dist/info-VBDWY6EO-CcLNynBA.js +0 -6
- package/dist/infoDiagram-HS3SLOUP-Bp0yOoLT.js +0 -32
- package/dist/infoDiagram-HS3SLOUP-C0Zno052.cjs +0 -2
- package/dist/init-DZ96s0AS.cjs +0 -2
- package/dist/init-ZxktEp_H.js +0 -17
- package/dist/it-BVq911RW.cjs +0 -2
- package/dist/it-ClWGK7XT.js +0 -219
- package/dist/ja-BgcKuKZ4.cjs +0 -2
- package/dist/ja-DGL12HwE.js +0 -219
- package/dist/journeyDiagram-XKPGCS4Q-0OiMrl1O.cjs +0 -2
- package/dist/journeyDiagram-XKPGCS4Q-Ci2gigtu.js +0 -1255
- package/dist/kanban-definition-3W4ZIXB7-DTLYV2yk.js +0 -1049
- package/dist/kanban-definition-3W4ZIXB7-DbJAXyvr.cjs +0 -2
- package/dist/katex-DPu4QpBP.cjs +0 -2
- package/dist/katex-Dd1-wdX2.js +0 -14523
- package/dist/kk-CkKXbKso.js +0 -219
- package/dist/kk-Dn3FBkOR.cjs +0 -2
- package/dist/ko-CKAbV25b.cjs +0 -2
- package/dist/ko-QYvDV2aw.js +0 -219
- package/dist/layout-D6yO7DzL.cjs +0 -2
- package/dist/layout-bxkZz7Cm.js +0 -1919
- package/dist/linear-CmvLp6xX.js +0 -341
- package/dist/linear-d_werDwb.cjs +0 -2
- package/dist/lt-BKnFyiLV.js +0 -219
- package/dist/lt-BnGNEsIS.cjs +0 -2
- package/dist/lv-Clqo0Ogm.js +0 -219
- package/dist/lv-D3rJQRhc.cjs +0 -2
- package/dist/maplibre-gl-B3PlRf6V.js +0 -23511
- package/dist/maplibre-gl-Cc1i9T04.cjs +0 -6
- package/dist/mermaid-parser.core-CNPkkUbW.cjs +0 -2
- package/dist/mermaid-parser.core-CnjbJ8mb.js +0 -23791
- package/dist/mindmap-definition-VGOIOE7T-D4S37eSG.cjs +0 -2
- package/dist/mindmap-definition-VGOIOE7T-z7i6md6S.js +0 -1129
- package/dist/mk-EhcD0RzW.js +0 -219
- package/dist/mk-hVxJgrE0.cjs +0 -2
- package/dist/ms-CJACwjo7.js +0 -219
- package/dist/ms-D0txYckK.cjs +0 -2
- package/dist/nb-BfKRl99z.cjs +0 -2
- package/dist/nb-NCgnP0Pu.js +0 -219
- package/dist/nl-EgsNCunP.js +0 -219
- package/dist/nl-ZXiLkBj_.cjs +0 -2
- package/dist/ordinal-BZdahNih.cjs +0 -2
- package/dist/ordinal-DSZU4PqD.js +0 -77
- package/dist/packet-DYOGHKS2-8TxNXRiu.js +0 -6
- package/dist/packet-DYOGHKS2-T2_NOyn2.cjs +0 -2
- package/dist/pie-VRWISCQL-CVgwt5hn.cjs +0 -2
- package/dist/pie-VRWISCQL-Cw5ps4Uc.js +0 -6
- package/dist/pieDiagram-ADFJNKIX-9tCdDAIz.cjs +0 -2
- package/dist/pieDiagram-ADFJNKIX-BLMaZqln.js +0 -238
- package/dist/pl-H28GVtiG.js +0 -219
- package/dist/pl-tVjdYTB9.cjs +0 -2
- package/dist/pt-1k62N9F3.cjs +0 -2
- package/dist/pt-BSPZhWKl.js +0 -211
- package/dist/quadrantDiagram-AYHSOK5B-B_5PU35F.cjs +0 -2
- package/dist/quadrantDiagram-AYHSOK5B-Njb3KunW.js +0 -1338
- package/dist/radar-ZZBFDIW7-B5WKe_gp.js +0 -6
- package/dist/radar-ZZBFDIW7-DGwkdfQQ.cjs +0 -2
- package/dist/requirementDiagram-UZGBJVZJ-BOgHmi8B.cjs +0 -2
- package/dist/requirementDiagram-UZGBJVZJ-wkSzPa52.js +0 -1164
- package/dist/ro-9Qt1qDDA.cjs +0 -2
- package/dist/ro-BpaZLre_.js +0 -219
- package/dist/ru-4WxRouIU.cjs +0 -2
- package/dist/ru-CUZzD-Tx.js +0 -219
- package/dist/sankeyDiagram-TZEHDZUN-p1th2H-P.js +0 -1194
- package/dist/sankeyDiagram-TZEHDZUN-wNi-DuI_.cjs +0 -2
- package/dist/sequenceDiagram-WL72ISMW-CZsA3nl_.js +0 -3882
- package/dist/sequenceDiagram-WL72ISMW-DHsfFVVL.cjs +0 -2
- package/dist/sk-CoQ6XiCY.js +0 -219
- package/dist/sk-uWukDQab.cjs +0 -2
- package/dist/sl-B6DVbKg6.cjs +0 -2
- package/dist/sl-CHW-ZGol.js +0 -219
- package/dist/sr-BOD8Tc-D.cjs +0 -2
- package/dist/sr-EQGjIBJE.js +0 -219
- package/dist/stateDiagram-FKZM4ZOC-CZDqf83I.js +0 -449
- package/dist/stateDiagram-FKZM4ZOC-uCSdqeo_.cjs +0 -2
- package/dist/stateDiagram-v2-4FDKWEC3-Ard7BOGd.js +0 -20
- package/dist/stateDiagram-v2-4FDKWEC3-LQ3nCDHa.cjs +0 -2
- package/dist/sv-B6nLuQr7.cjs +0 -2
- package/dist/sv-DTxWN6ED.js +0 -219
- package/dist/th-BVPzHvBf.js +0 -219
- package/dist/th-DmULV6uT.cjs +0 -2
- package/dist/timeline-definition-IT6M3QCI-5Kl_f6ac.cjs +0 -2
- package/dist/timeline-definition-IT6M3QCI-DOIExRzF.js +0 -1227
- package/dist/tr-BE5geTUC.cjs +0 -2
- package/dist/tr-BHR1QA-D.js +0 -219
- package/dist/treemap-GDKQZRPO-BsGYh-La.cjs +0 -2
- package/dist/treemap-GDKQZRPO-DQPba0Eh.js +0 -6
- package/dist/uk-Bc5TwelE.js +0 -219
- package/dist/uk-DS5ukB_-.cjs +0 -2
- package/dist/vi-D9FF4kkG.cjs +0 -2
- package/dist/vi-DC0eQZb7.js +0 -219
- package/dist/xychartDiagram-PRI3JC2R-DkaIeov2.cjs +0 -2
- package/dist/xychartDiagram-PRI3JC2R-DyqZd9yp.js +0 -1887
- package/dist/zh-CGcOiJ3s.cjs +0 -2
- package/dist/zh-GsCLn8OE.js +0 -219
|
@@ -0,0 +1,1860 @@
|
|
|
1
|
+
import { h as e, p as t } from "./src-Dm6r9c7l.js";
|
|
2
|
+
import { $ as n, B as r, C as i, Q as a, V as o, W as s, _ as c, a as l, c as u, d, et as f, tt as p, v as m, y as h } from "./chunk-7R4GIKGN-CaQJ0QBF.js";
|
|
3
|
+
import { r as g } from "./chunk-GEFDOKGD-BNgT40Ex.js";
|
|
4
|
+
import { t as _ } from "./chunk-HHEYEP7N-DO1AYIZw.js";
|
|
5
|
+
import { t as v } from "./rough.esm-DBHP55VQ.js";
|
|
6
|
+
//#region node_modules/khroma/dist/methods/transparentize.js
|
|
7
|
+
var y = (e, t) => f(e, "a", -t), b = 1e-10;
|
|
8
|
+
function x(e, t) {
|
|
9
|
+
let n = C(e), r = n.filter((t) => S(t, e)), i = 0, a = 0, o = [];
|
|
10
|
+
if (r.length > 1) {
|
|
11
|
+
let t = O(r);
|
|
12
|
+
for (let e = 0; e < r.length; ++e) {
|
|
13
|
+
let n = r[e];
|
|
14
|
+
n.angle = Math.atan2(n.x - t.x, n.y - t.y);
|
|
15
|
+
}
|
|
16
|
+
r.sort((e, t) => t.angle - e.angle);
|
|
17
|
+
let n = r[r.length - 1];
|
|
18
|
+
for (let t = 0; t < r.length; ++t) {
|
|
19
|
+
let s = r[t];
|
|
20
|
+
a += (n.x + s.x) * (s.y - n.y);
|
|
21
|
+
let c = {
|
|
22
|
+
x: (s.x + n.x) / 2,
|
|
23
|
+
y: (s.y + n.y) / 2
|
|
24
|
+
}, l = null;
|
|
25
|
+
for (let t = 0; t < s.parentIndex.length; ++t) if (n.parentIndex.includes(s.parentIndex[t])) {
|
|
26
|
+
let r = e[s.parentIndex[t]], i = Math.atan2(s.x - r.x, s.y - r.y), a = Math.atan2(n.x - r.x, n.y - r.y), o = a - i;
|
|
27
|
+
o < 0 && (o += 2 * Math.PI);
|
|
28
|
+
let u = a - o / 2, d = T(c, {
|
|
29
|
+
x: r.x + r.radius * Math.sin(u),
|
|
30
|
+
y: r.y + r.radius * Math.cos(u)
|
|
31
|
+
});
|
|
32
|
+
d > r.radius * 2 && (d = r.radius * 2), (l == null || l.width > d) && (l = {
|
|
33
|
+
circle: r,
|
|
34
|
+
width: d,
|
|
35
|
+
p1: s,
|
|
36
|
+
p2: n,
|
|
37
|
+
large: d > r.radius,
|
|
38
|
+
sweep: !0
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
l != null && (o.push(l), i += w(l.circle.radius, l.width), n = s);
|
|
42
|
+
}
|
|
43
|
+
} else {
|
|
44
|
+
let t = e[0];
|
|
45
|
+
for (let n = 1; n < e.length; ++n) e[n].radius < t.radius && (t = e[n]);
|
|
46
|
+
let n = !1;
|
|
47
|
+
for (let r = 0; r < e.length; ++r) if (T(e[r], t) > Math.abs(t.radius - e[r].radius)) {
|
|
48
|
+
n = !0;
|
|
49
|
+
break;
|
|
50
|
+
}
|
|
51
|
+
n ? i = a = 0 : (i = t.radius * t.radius * Math.PI, o.push({
|
|
52
|
+
circle: t,
|
|
53
|
+
p1: {
|
|
54
|
+
x: t.x,
|
|
55
|
+
y: t.y + t.radius
|
|
56
|
+
},
|
|
57
|
+
p2: {
|
|
58
|
+
x: t.x - b,
|
|
59
|
+
y: t.y + t.radius
|
|
60
|
+
},
|
|
61
|
+
width: t.radius * 2,
|
|
62
|
+
large: !0,
|
|
63
|
+
sweep: !0
|
|
64
|
+
}));
|
|
65
|
+
}
|
|
66
|
+
return a /= 2, t && (t.area = i + a, t.arcArea = i, t.polygonArea = a, t.arcs = o, t.innerPoints = r, t.intersectionPoints = n), i + a;
|
|
67
|
+
}
|
|
68
|
+
function S(e, t) {
|
|
69
|
+
return t.every((t) => T(e, t) < t.radius + b);
|
|
70
|
+
}
|
|
71
|
+
function C(e) {
|
|
72
|
+
let t = [];
|
|
73
|
+
for (let n = 0; n < e.length; ++n) for (let r = n + 1; r < e.length; ++r) {
|
|
74
|
+
let i = D(e[n], e[r]);
|
|
75
|
+
for (let e of i) e.parentIndex = [n, r], t.push(e);
|
|
76
|
+
}
|
|
77
|
+
return t;
|
|
78
|
+
}
|
|
79
|
+
function w(e, t) {
|
|
80
|
+
return e * e * Math.acos(1 - t / e) - (e - t) * Math.sqrt(t * (2 * e - t));
|
|
81
|
+
}
|
|
82
|
+
function T(e, t) {
|
|
83
|
+
return Math.sqrt((e.x - t.x) * (e.x - t.x) + (e.y - t.y) * (e.y - t.y));
|
|
84
|
+
}
|
|
85
|
+
function E(e, t, n) {
|
|
86
|
+
if (n >= e + t) return 0;
|
|
87
|
+
if (n <= Math.abs(e - t)) return Math.PI * Math.min(e, t) * Math.min(e, t);
|
|
88
|
+
let r = e - (n * n - t * t + e * e) / (2 * n), i = t - (n * n - e * e + t * t) / (2 * n);
|
|
89
|
+
return w(e, r) + w(t, i);
|
|
90
|
+
}
|
|
91
|
+
function D(e, t) {
|
|
92
|
+
let n = T(e, t), r = e.radius, i = t.radius;
|
|
93
|
+
if (n >= r + i || n <= Math.abs(r - i)) return [];
|
|
94
|
+
let a = (r * r - i * i + n * n) / (2 * n), o = Math.sqrt(r * r - a * a), s = e.x + a * (t.x - e.x) / n, c = e.y + a * (t.y - e.y) / n, l = -(t.y - e.y) * (o / n), u = -(t.x - e.x) * (o / n);
|
|
95
|
+
return [{
|
|
96
|
+
x: s + l,
|
|
97
|
+
y: c - u
|
|
98
|
+
}, {
|
|
99
|
+
x: s - l,
|
|
100
|
+
y: c + u
|
|
101
|
+
}];
|
|
102
|
+
}
|
|
103
|
+
function O(e) {
|
|
104
|
+
let t = {
|
|
105
|
+
x: 0,
|
|
106
|
+
y: 0
|
|
107
|
+
};
|
|
108
|
+
for (let n of e) t.x += n.x, t.y += n.y;
|
|
109
|
+
return t.x /= e.length, t.y /= e.length, t;
|
|
110
|
+
}
|
|
111
|
+
function k(e, t, n, r) {
|
|
112
|
+
r ||= {};
|
|
113
|
+
let i = r.maxIterations || 100, a = r.tolerance || 1e-10, o = e(t), s = e(n), c = n - t;
|
|
114
|
+
if (o * s > 0) throw "Initial bisect points must have opposite signs";
|
|
115
|
+
if (o === 0) return t;
|
|
116
|
+
if (s === 0) return n;
|
|
117
|
+
for (let n = 0; n < i; ++n) {
|
|
118
|
+
c /= 2;
|
|
119
|
+
let n = t + c, r = e(n);
|
|
120
|
+
if (r * o >= 0 && (t = n), Math.abs(c) < a || r === 0) return n;
|
|
121
|
+
}
|
|
122
|
+
return t + c;
|
|
123
|
+
}
|
|
124
|
+
function A(e) {
|
|
125
|
+
let t = Array(e);
|
|
126
|
+
for (let n = 0; n < e; ++n) t[n] = 0;
|
|
127
|
+
return t;
|
|
128
|
+
}
|
|
129
|
+
function j(e, t) {
|
|
130
|
+
return A(e).map(() => A(t));
|
|
131
|
+
}
|
|
132
|
+
function M(e, t) {
|
|
133
|
+
let n = 0;
|
|
134
|
+
for (let r = 0; r < e.length; ++r) n += e[r] * t[r];
|
|
135
|
+
return n;
|
|
136
|
+
}
|
|
137
|
+
function N(e) {
|
|
138
|
+
return Math.sqrt(M(e, e));
|
|
139
|
+
}
|
|
140
|
+
function P(e, t, n) {
|
|
141
|
+
for (let r = 0; r < t.length; ++r) e[r] = t[r] * n;
|
|
142
|
+
}
|
|
143
|
+
function F(e, t, n, r, i) {
|
|
144
|
+
for (let a = 0; a < e.length; ++a) e[a] = t * n[a] + r * i[a];
|
|
145
|
+
}
|
|
146
|
+
function I(e, t, n) {
|
|
147
|
+
n ||= {};
|
|
148
|
+
let r = n.maxIterations || t.length * 200, i = n.nonZeroDelta || 1.05, a = n.zeroDelta || .001, o = n.minErrorDelta || 1e-6, s = n.minErrorDelta || 1e-5, c = n.rho === void 0 ? 1 : n.rho, l = n.chi === void 0 ? 2 : n.chi, u = n.psi === void 0 ? -.5 : n.psi, d = n.sigma === void 0 ? .5 : n.sigma, f, p = t.length, m = Array(p + 1);
|
|
149
|
+
m[0] = t, m[0].fx = e(t), m[0].id = 0;
|
|
150
|
+
for (let n = 0; n < p; ++n) {
|
|
151
|
+
let r = t.slice();
|
|
152
|
+
r[n] = r[n] ? r[n] * i : a, m[n + 1] = r, m[n + 1].fx = e(r), m[n + 1].id = n + 1;
|
|
153
|
+
}
|
|
154
|
+
function h(e) {
|
|
155
|
+
for (let t = 0; t < e.length; t++) m[p][t] = e[t];
|
|
156
|
+
m[p].fx = e.fx;
|
|
157
|
+
}
|
|
158
|
+
let g = (e, t) => e.fx - t.fx, _ = t.slice(), v = t.slice(), y = t.slice(), b = t.slice();
|
|
159
|
+
for (let t = 0; t < r; ++t) {
|
|
160
|
+
if (m.sort(g), n.history) {
|
|
161
|
+
let e = m.map((e) => {
|
|
162
|
+
let t = e.slice();
|
|
163
|
+
return t.fx = e.fx, t.id = e.id, t;
|
|
164
|
+
});
|
|
165
|
+
e.sort((e, t) => e.id - t.id), n.history.push({
|
|
166
|
+
x: m[0].slice(),
|
|
167
|
+
fx: m[0].fx,
|
|
168
|
+
simplex: e
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
f = 0;
|
|
172
|
+
for (let e = 0; e < p; ++e) f = Math.max(f, Math.abs(m[0][e] - m[1][e]));
|
|
173
|
+
if (Math.abs(m[0].fx - m[p].fx) < o && f < s) break;
|
|
174
|
+
for (let e = 0; e < p; ++e) {
|
|
175
|
+
_[e] = 0;
|
|
176
|
+
for (let t = 0; t < p; ++t) _[e] += m[t][e];
|
|
177
|
+
_[e] /= p;
|
|
178
|
+
}
|
|
179
|
+
let t = m[p];
|
|
180
|
+
if (F(v, 1 + c, _, -c, t), v.fx = e(v), v.fx < m[0].fx) F(b, 1 + l, _, -l, t), b.fx = e(b), b.fx < v.fx ? h(b) : h(v);
|
|
181
|
+
else if (v.fx >= m[p - 1].fx) {
|
|
182
|
+
let n = !1;
|
|
183
|
+
if (v.fx > t.fx ? (F(y, 1 + u, _, -u, t), y.fx = e(y), y.fx < t.fx ? h(y) : n = !0) : (F(y, 1 - u * c, _, u * c, t), y.fx = e(y), y.fx < v.fx ? h(y) : n = !0), n) {
|
|
184
|
+
if (d >= 1) break;
|
|
185
|
+
for (let t = 1; t < m.length; ++t) F(m[t], 1 - d, m[0], d, m[t]), m[t].fx = e(m[t]);
|
|
186
|
+
}
|
|
187
|
+
} else h(v);
|
|
188
|
+
}
|
|
189
|
+
return m.sort(g), {
|
|
190
|
+
fx: m[0].fx,
|
|
191
|
+
x: m[0]
|
|
192
|
+
};
|
|
193
|
+
}
|
|
194
|
+
function L(e, t, n, r, i, a, o) {
|
|
195
|
+
let s = n.fx, c = M(n.fxprime, t), l = s, u = s, d = c, f = 0;
|
|
196
|
+
i ||= 1, a ||= 1e-6, o ||= .1;
|
|
197
|
+
function p(u, f, p) {
|
|
198
|
+
for (let m = 0; m < 16; ++m) if (i = (u + f) / 2, F(r.x, 1, n.x, i, t), l = r.fx = e(r.x, r.fxprime), d = M(r.fxprime, t), l > s + a * i * c || l >= p) f = i;
|
|
199
|
+
else {
|
|
200
|
+
if (Math.abs(d) <= -o * c) return i;
|
|
201
|
+
d * (f - u) >= 0 && (f = u), u = i, p = l;
|
|
202
|
+
}
|
|
203
|
+
return 0;
|
|
204
|
+
}
|
|
205
|
+
for (let m = 0; m < 10; ++m) {
|
|
206
|
+
if (F(r.x, 1, n.x, i, t), l = r.fx = e(r.x, r.fxprime), d = M(r.fxprime, t), l > s + a * i * c || m && l >= u) return p(f, i, u);
|
|
207
|
+
if (Math.abs(d) <= -o * c) return i;
|
|
208
|
+
if (d >= 0) return p(i, f, l);
|
|
209
|
+
u = l, f = i, i *= 2;
|
|
210
|
+
}
|
|
211
|
+
return i;
|
|
212
|
+
}
|
|
213
|
+
function ee(e, t, n) {
|
|
214
|
+
let r = {
|
|
215
|
+
x: t.slice(),
|
|
216
|
+
fx: 0,
|
|
217
|
+
fxprime: t.slice()
|
|
218
|
+
}, i = {
|
|
219
|
+
x: t.slice(),
|
|
220
|
+
fx: 0,
|
|
221
|
+
fxprime: t.slice()
|
|
222
|
+
}, a = t.slice(), o, s, c = 1, l;
|
|
223
|
+
n ||= {}, l = n.maxIterations || t.length * 20, r.fx = e(r.x, r.fxprime), o = r.fxprime.slice(), P(o, r.fxprime, -1);
|
|
224
|
+
for (let t = 0; t < l; ++t) {
|
|
225
|
+
if (c = L(e, o, r, i, c), n.history && n.history.push({
|
|
226
|
+
x: r.x.slice(),
|
|
227
|
+
fx: r.fx,
|
|
228
|
+
fxprime: r.fxprime.slice(),
|
|
229
|
+
alpha: c
|
|
230
|
+
}), !c) P(o, r.fxprime, -1);
|
|
231
|
+
else {
|
|
232
|
+
F(a, 1, i.fxprime, -1, r.fxprime);
|
|
233
|
+
let e = M(r.fxprime, r.fxprime), t = Math.max(0, M(a, i.fxprime) / e);
|
|
234
|
+
F(o, t, o, -1, i.fxprime), s = r, r = i, i = s;
|
|
235
|
+
}
|
|
236
|
+
if (N(r.fxprime) <= 1e-5) break;
|
|
237
|
+
}
|
|
238
|
+
return n.history && n.history.push({
|
|
239
|
+
x: r.x.slice(),
|
|
240
|
+
fx: r.fx,
|
|
241
|
+
fxprime: r.fxprime.slice(),
|
|
242
|
+
alpha: c
|
|
243
|
+
}), r;
|
|
244
|
+
}
|
|
245
|
+
function te(e, t = {}) {
|
|
246
|
+
t.maxIterations = t.maxIterations || 500;
|
|
247
|
+
let n = t.initialLayout || oe, r = t.lossFunction || z, i = re(e, t), a = n(i, t), o = Object.keys(a), s = [];
|
|
248
|
+
for (let e of o) s.push(a[e].x), s.push(a[e].y);
|
|
249
|
+
let c = I((e) => {
|
|
250
|
+
let t = {};
|
|
251
|
+
for (let n = 0; n < o.length; ++n) {
|
|
252
|
+
let r = o[n];
|
|
253
|
+
t[r] = {
|
|
254
|
+
x: e[2 * n],
|
|
255
|
+
y: e[2 * n + 1],
|
|
256
|
+
radius: a[r].radius
|
|
257
|
+
};
|
|
258
|
+
}
|
|
259
|
+
return r(t, i);
|
|
260
|
+
}, s, t).x;
|
|
261
|
+
for (let e = 0; e < o.length; ++e) {
|
|
262
|
+
let t = o[e];
|
|
263
|
+
a[t].x = c[2 * e], a[t].y = c[2 * e + 1];
|
|
264
|
+
}
|
|
265
|
+
return a;
|
|
266
|
+
}
|
|
267
|
+
var ne = 1e-10;
|
|
268
|
+
function R(e, t, n) {
|
|
269
|
+
return Math.min(e, t) * Math.min(e, t) * Math.PI <= n + ne ? Math.abs(e - t) : k((r) => E(e, t, r) - n, 0, e + t);
|
|
270
|
+
}
|
|
271
|
+
function re(e, t = {}) {
|
|
272
|
+
let n = t.distinct, r = e.map((e) => Object.assign({}, e));
|
|
273
|
+
function i(e) {
|
|
274
|
+
return e.join(";");
|
|
275
|
+
}
|
|
276
|
+
if (n) {
|
|
277
|
+
let e = /* @__PURE__ */ new Map();
|
|
278
|
+
for (let t of r) for (let n = 0; n < t.sets.length; n++) {
|
|
279
|
+
let r = String(t.sets[n]);
|
|
280
|
+
e.set(r, t.size + (e.get(r) || 0));
|
|
281
|
+
for (let i = n + 1; i < t.sets.length; i++) {
|
|
282
|
+
let n = String(t.sets[i]), a = `${r};${n}`, o = `${n};${r}`;
|
|
283
|
+
e.set(a, t.size + (e.get(a) || 0)), e.set(o, t.size + (e.get(o) || 0));
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
for (let t of r) t.sets.length < 3 && (t.size = e.get(i(t.sets)));
|
|
287
|
+
}
|
|
288
|
+
let a = [], o = /* @__PURE__ */ new Set();
|
|
289
|
+
for (let e of r) if (e.sets.length === 1) a.push(e.sets[0]);
|
|
290
|
+
else if (e.sets.length === 2) {
|
|
291
|
+
let t = e.sets[0], n = e.sets[1];
|
|
292
|
+
o.add(i(e.sets)), o.add(i([n, t]));
|
|
293
|
+
}
|
|
294
|
+
a.sort((e, t) => e === t ? 0 : e < t ? -1 : 1);
|
|
295
|
+
for (let e = 0; e < a.length; ++e) {
|
|
296
|
+
let t = a[e];
|
|
297
|
+
for (let n = e + 1; n < a.length; ++n) {
|
|
298
|
+
let e = a[n];
|
|
299
|
+
o.has(i([t, e])) || r.push({
|
|
300
|
+
sets: [t, e],
|
|
301
|
+
size: 0
|
|
302
|
+
});
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
return r;
|
|
306
|
+
}
|
|
307
|
+
function ie(e, t, n) {
|
|
308
|
+
let r = j(t.length, t.length), i = j(t.length, t.length);
|
|
309
|
+
return e.filter((e) => e.sets.length === 2).forEach((e) => {
|
|
310
|
+
let a = n[e.sets[0]], o = n[e.sets[1]], s = R(Math.sqrt(t[a].size / Math.PI), Math.sqrt(t[o].size / Math.PI), e.size);
|
|
311
|
+
r[a][o] = r[o][a] = s;
|
|
312
|
+
let c = 0;
|
|
313
|
+
e.size + 1e-10 >= Math.min(t[a].size, t[o].size) ? c = 1 : e.size <= 1e-10 && (c = -1), i[a][o] = i[o][a] = c;
|
|
314
|
+
}), {
|
|
315
|
+
distances: r,
|
|
316
|
+
constraints: i
|
|
317
|
+
};
|
|
318
|
+
}
|
|
319
|
+
function ae(e, t, n, r) {
|
|
320
|
+
for (let e = 0; e < t.length; ++e) t[e] = 0;
|
|
321
|
+
let i = 0;
|
|
322
|
+
for (let a = 0; a < n.length; ++a) {
|
|
323
|
+
let o = e[2 * a], s = e[2 * a + 1];
|
|
324
|
+
for (let c = a + 1; c < n.length; ++c) {
|
|
325
|
+
let l = e[2 * c], u = e[2 * c + 1], d = n[a][c], f = r[a][c], p = (l - o) * (l - o) + (u - s) * (u - s), m = Math.sqrt(p), h = p - d * d;
|
|
326
|
+
f > 0 && m <= d || f < 0 && m >= d || (i += 2 * h * h, t[2 * a] += 4 * h * (o - l), t[2 * a + 1] += 4 * h * (s - u), t[2 * c] += 4 * h * (l - o), t[2 * c + 1] += 4 * h * (u - s));
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
return i;
|
|
330
|
+
}
|
|
331
|
+
function oe(e, t = {}) {
|
|
332
|
+
let n = ce(e, t), r = t.lossFunction || z;
|
|
333
|
+
if (e.length >= 8) {
|
|
334
|
+
let i = se(e, t), a = r(i, e), o = r(n, e);
|
|
335
|
+
a + 1e-8 < o && (n = i);
|
|
336
|
+
}
|
|
337
|
+
return n;
|
|
338
|
+
}
|
|
339
|
+
function se(e, t = {}) {
|
|
340
|
+
let n = t.restarts || 10, r = [], i = {};
|
|
341
|
+
for (let t of e) t.sets.length === 1 && (i[t.sets[0]] = r.length, r.push(t));
|
|
342
|
+
let { distances: a, constraints: o } = ie(e, r, i), s = N(a.map(N)) / a.length;
|
|
343
|
+
a = a.map((e) => e.map((e) => e / s));
|
|
344
|
+
let c = (e, t) => ae(e, t, a, o), l = null;
|
|
345
|
+
for (let e = 0; e < n; ++e) {
|
|
346
|
+
let e = ee(c, A(a.length * 2).map(Math.random), t);
|
|
347
|
+
(!l || e.fx < l.fx) && (l = e);
|
|
348
|
+
}
|
|
349
|
+
let u = l.x, d = {};
|
|
350
|
+
for (let e = 0; e < r.length; ++e) {
|
|
351
|
+
let t = r[e];
|
|
352
|
+
d[t.sets[0]] = {
|
|
353
|
+
x: u[2 * e] * s,
|
|
354
|
+
y: u[2 * e + 1] * s,
|
|
355
|
+
radius: Math.sqrt(t.size / Math.PI)
|
|
356
|
+
};
|
|
357
|
+
}
|
|
358
|
+
if (t.history) for (let e of t.history) P(e.x, s);
|
|
359
|
+
return d;
|
|
360
|
+
}
|
|
361
|
+
function ce(e, t) {
|
|
362
|
+
let n = t && t.lossFunction ? t.lossFunction : z, r = {}, i = {};
|
|
363
|
+
for (let t of e) if (t.sets.length === 1) {
|
|
364
|
+
let e = t.sets[0];
|
|
365
|
+
r[e] = {
|
|
366
|
+
x: 1e10,
|
|
367
|
+
y: 1e10,
|
|
368
|
+
rowid: r.length,
|
|
369
|
+
size: t.size,
|
|
370
|
+
radius: Math.sqrt(t.size / Math.PI)
|
|
371
|
+
}, i[e] = [];
|
|
372
|
+
}
|
|
373
|
+
e = e.filter((e) => e.sets.length === 2);
|
|
374
|
+
for (let t of e) {
|
|
375
|
+
let e = t.weight == null ? 1 : t.weight, n = t.sets[0], a = t.sets[1];
|
|
376
|
+
t.size + ne >= Math.min(r[n].size, r[a].size) && (e = 0), i[n].push({
|
|
377
|
+
set: a,
|
|
378
|
+
size: t.size,
|
|
379
|
+
weight: e
|
|
380
|
+
}), i[a].push({
|
|
381
|
+
set: n,
|
|
382
|
+
size: t.size,
|
|
383
|
+
weight: e
|
|
384
|
+
});
|
|
385
|
+
}
|
|
386
|
+
let a = [];
|
|
387
|
+
Object.keys(i).forEach((e) => {
|
|
388
|
+
let t = 0;
|
|
389
|
+
for (let n = 0; n < i[e].length; ++n) t += i[e][n].size * i[e][n].weight;
|
|
390
|
+
a.push({
|
|
391
|
+
set: e,
|
|
392
|
+
size: t
|
|
393
|
+
});
|
|
394
|
+
});
|
|
395
|
+
function o(e, t) {
|
|
396
|
+
return t.size - e.size;
|
|
397
|
+
}
|
|
398
|
+
a.sort(o);
|
|
399
|
+
let s = {};
|
|
400
|
+
function c(e) {
|
|
401
|
+
return e.set in s;
|
|
402
|
+
}
|
|
403
|
+
function l(e, t) {
|
|
404
|
+
r[t].x = e.x, r[t].y = e.y, s[t] = !0;
|
|
405
|
+
}
|
|
406
|
+
l({
|
|
407
|
+
x: 0,
|
|
408
|
+
y: 0
|
|
409
|
+
}, a[0].set);
|
|
410
|
+
for (let t = 1; t < a.length; ++t) {
|
|
411
|
+
let s = a[t].set, d = i[s].filter(c), f = r[s];
|
|
412
|
+
if (d.sort(o), d.length === 0) throw "ERROR: missing pairwise overlap information";
|
|
413
|
+
let p = [];
|
|
414
|
+
for (var u = 0; u < d.length; ++u) {
|
|
415
|
+
let e = r[d[u].set], t = R(f.radius, e.radius, d[u].size);
|
|
416
|
+
p.push({
|
|
417
|
+
x: e.x + t,
|
|
418
|
+
y: e.y
|
|
419
|
+
}), p.push({
|
|
420
|
+
x: e.x - t,
|
|
421
|
+
y: e.y
|
|
422
|
+
}), p.push({
|
|
423
|
+
y: e.y + t,
|
|
424
|
+
x: e.x
|
|
425
|
+
}), p.push({
|
|
426
|
+
y: e.y - t,
|
|
427
|
+
x: e.x
|
|
428
|
+
});
|
|
429
|
+
for (let n = u + 1; n < d.length; ++n) {
|
|
430
|
+
let i = r[d[n].set], a = R(f.radius, i.radius, d[n].size), o = D({
|
|
431
|
+
x: e.x,
|
|
432
|
+
y: e.y,
|
|
433
|
+
radius: t
|
|
434
|
+
}, {
|
|
435
|
+
x: i.x,
|
|
436
|
+
y: i.y,
|
|
437
|
+
radius: a
|
|
438
|
+
});
|
|
439
|
+
p.push(...o);
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
let m = 1e50, h = p[0];
|
|
443
|
+
for (let t of p) {
|
|
444
|
+
r[s].x = t.x, r[s].y = t.y;
|
|
445
|
+
let i = n(r, e);
|
|
446
|
+
i < m && (m = i, h = t);
|
|
447
|
+
}
|
|
448
|
+
l(h, s);
|
|
449
|
+
}
|
|
450
|
+
return r;
|
|
451
|
+
}
|
|
452
|
+
function z(e, t) {
|
|
453
|
+
let n = 0;
|
|
454
|
+
for (let r of t) {
|
|
455
|
+
if (r.sets.length === 1) continue;
|
|
456
|
+
let t;
|
|
457
|
+
if (r.sets.length === 2) {
|
|
458
|
+
let n = e[r.sets[0]], i = e[r.sets[1]];
|
|
459
|
+
t = E(n.radius, i.radius, T(n, i));
|
|
460
|
+
} else t = x(r.sets.map((t) => e[t]));
|
|
461
|
+
let i = r.weight == null ? 1 : r.weight;
|
|
462
|
+
n += i * (t - r.size) * (t - r.size);
|
|
463
|
+
}
|
|
464
|
+
return n;
|
|
465
|
+
}
|
|
466
|
+
function le(e, t) {
|
|
467
|
+
let n = 0;
|
|
468
|
+
for (let r of t) {
|
|
469
|
+
if (r.sets.length === 1) continue;
|
|
470
|
+
let t;
|
|
471
|
+
if (r.sets.length === 2) {
|
|
472
|
+
let n = e[r.sets[0]], i = e[r.sets[1]];
|
|
473
|
+
t = E(n.radius, i.radius, T(n, i));
|
|
474
|
+
} else t = x(r.sets.map((t) => e[t]));
|
|
475
|
+
let i = r.weight == null ? 1 : r.weight, a = Math.log((t + 1) / (r.size + 1));
|
|
476
|
+
n += i * a * a;
|
|
477
|
+
}
|
|
478
|
+
return n;
|
|
479
|
+
}
|
|
480
|
+
function ue(e, t, n) {
|
|
481
|
+
if (n == null ? e.sort((e, t) => t.radius - e.radius) : e.sort(n), e.length > 0) {
|
|
482
|
+
let t = e[0].x, n = e[0].y;
|
|
483
|
+
for (let r of e) r.x -= t, r.y -= n;
|
|
484
|
+
}
|
|
485
|
+
if (e.length === 2 && T(e[0], e[1]) < Math.abs(e[1].radius - e[0].radius) && (e[1].x = e[0].x + e[0].radius - e[1].radius - 1e-10, e[1].y = e[0].y), e.length > 1) {
|
|
486
|
+
let n = Math.atan2(e[1].x, e[1].y) - t, r = Math.cos(n), i = Math.sin(n);
|
|
487
|
+
for (let t of e) {
|
|
488
|
+
let e = t.x, n = t.y;
|
|
489
|
+
t.x = r * e - i * n, t.y = i * e + r * n;
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
if (e.length > 2) {
|
|
493
|
+
let n = Math.atan2(e[2].x, e[2].y) - t;
|
|
494
|
+
for (; n < 0;) n += 2 * Math.PI;
|
|
495
|
+
for (; n > 2 * Math.PI;) n -= 2 * Math.PI;
|
|
496
|
+
if (n > Math.PI) {
|
|
497
|
+
let t = e[1].y / (1e-10 + e[1].x);
|
|
498
|
+
for (let n of e) {
|
|
499
|
+
var r = (n.x + t * n.y) / (1 + t * t);
|
|
500
|
+
n.x = 2 * r - n.x, n.y = 2 * r * t - n.y;
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
function de(e) {
|
|
506
|
+
e.forEach((e) => {
|
|
507
|
+
e.parent = e;
|
|
508
|
+
});
|
|
509
|
+
function t(e) {
|
|
510
|
+
return e.parent !== e && (e.parent = t(e.parent)), e.parent;
|
|
511
|
+
}
|
|
512
|
+
function n(e, n) {
|
|
513
|
+
let r = t(e);
|
|
514
|
+
r.parent = t(n);
|
|
515
|
+
}
|
|
516
|
+
for (let t = 0; t < e.length; ++t) for (let r = t + 1; r < e.length; ++r) {
|
|
517
|
+
let i = e[t].radius + e[r].radius;
|
|
518
|
+
T(e[t], e[r]) + 1e-10 < i && n(e[r], e[t]);
|
|
519
|
+
}
|
|
520
|
+
let r = /* @__PURE__ */ new Map();
|
|
521
|
+
for (let n = 0; n < e.length; ++n) {
|
|
522
|
+
let i = t(e[n]).parent.setid;
|
|
523
|
+
r.has(i) || r.set(i, []), r.get(i).push(e[n]);
|
|
524
|
+
}
|
|
525
|
+
return e.forEach((e) => {
|
|
526
|
+
delete e.parent;
|
|
527
|
+
}), Array.from(r.values());
|
|
528
|
+
}
|
|
529
|
+
function B(e) {
|
|
530
|
+
let t = (t) => ({
|
|
531
|
+
max: e.reduce((e, n) => Math.max(e, n[t] + n.radius), -Infinity),
|
|
532
|
+
min: e.reduce((e, n) => Math.min(e, n[t] - n.radius), Infinity)
|
|
533
|
+
});
|
|
534
|
+
return {
|
|
535
|
+
xRange: t("x"),
|
|
536
|
+
yRange: t("y")
|
|
537
|
+
};
|
|
538
|
+
}
|
|
539
|
+
function fe(e, t, n) {
|
|
540
|
+
t ??= Math.PI / 2;
|
|
541
|
+
let r = he(e).map((e) => Object.assign({}, e)), i = de(r);
|
|
542
|
+
for (let e of i) {
|
|
543
|
+
ue(e, t, n);
|
|
544
|
+
let r = B(e);
|
|
545
|
+
e.size = (r.xRange.max - r.xRange.min) * (r.yRange.max - r.yRange.min), e.bounds = r;
|
|
546
|
+
}
|
|
547
|
+
i.sort((e, t) => t.size - e.size), r = i[0];
|
|
548
|
+
let a = r.bounds, o = (a.xRange.max - a.xRange.min) / 50;
|
|
549
|
+
function s(e, t, n) {
|
|
550
|
+
if (!e) return;
|
|
551
|
+
let i = e.bounds, s, c;
|
|
552
|
+
if (t) s = a.xRange.max - i.xRange.min + o;
|
|
553
|
+
else {
|
|
554
|
+
s = a.xRange.max - i.xRange.max;
|
|
555
|
+
let e = (i.xRange.max - i.xRange.min) / 2 - (a.xRange.max - a.xRange.min) / 2;
|
|
556
|
+
e < 0 && (s += e);
|
|
557
|
+
}
|
|
558
|
+
if (n) c = a.yRange.max - i.yRange.min + o;
|
|
559
|
+
else {
|
|
560
|
+
c = a.yRange.max - i.yRange.max;
|
|
561
|
+
let e = (i.yRange.max - i.yRange.min) / 2 - (a.yRange.max - a.yRange.min) / 2;
|
|
562
|
+
e < 0 && (c += e);
|
|
563
|
+
}
|
|
564
|
+
for (let t of e) t.x += s, t.y += c, r.push(t);
|
|
565
|
+
}
|
|
566
|
+
let c = 1;
|
|
567
|
+
for (; c < i.length;) s(i[c], !0, !1), s(i[c + 1], !1, !0), s(i[c + 2], !0, !0), c += 3, a = B(r);
|
|
568
|
+
return me(r);
|
|
569
|
+
}
|
|
570
|
+
function pe(e, t, n, r, i) {
|
|
571
|
+
let a = he(e);
|
|
572
|
+
t -= 2 * r, n -= 2 * r;
|
|
573
|
+
let { xRange: o, yRange: s } = B(a);
|
|
574
|
+
if (o.max === o.min || s.max === s.min) return console.log("not scaling solution: zero size detected"), e;
|
|
575
|
+
let c, l;
|
|
576
|
+
if (i) {
|
|
577
|
+
let e = Math.sqrt(i / Math.PI) * 2;
|
|
578
|
+
c = t / e, l = n / e;
|
|
579
|
+
} else c = t / (o.max - o.min), l = n / (s.max - s.min);
|
|
580
|
+
let u = Math.min(l, c), d = (t - (o.max - o.min) * u) / 2, f = (n - (s.max - s.min) * u) / 2;
|
|
581
|
+
return me(a.map((e) => ({
|
|
582
|
+
radius: u * e.radius,
|
|
583
|
+
x: r + d + (e.x - o.min) * u,
|
|
584
|
+
y: r + f + (e.y - s.min) * u,
|
|
585
|
+
setid: e.setid
|
|
586
|
+
})));
|
|
587
|
+
}
|
|
588
|
+
function me(e) {
|
|
589
|
+
let t = {};
|
|
590
|
+
for (let n of e) t[n.setid] = n;
|
|
591
|
+
return t;
|
|
592
|
+
}
|
|
593
|
+
function he(e) {
|
|
594
|
+
return Object.keys(e).map((t) => Object.assign(e[t], { setid: t }));
|
|
595
|
+
}
|
|
596
|
+
function ge(e = {}) {
|
|
597
|
+
let t = !1, n = 600, r = 350, i = 15, a = 1e3, o = Math.PI / 2, s = !0, c = null, l = !0, u = !0, d = null, f = null, p = !1, m = null, h = e && e.symmetricalTextCentre ? e.symmetricalTextCentre : !1, g = {}, _ = e && e.colourScheme ? e.colourScheme : e && e.colorScheme ? e.colorScheme : [
|
|
598
|
+
"#1f77b4",
|
|
599
|
+
"#ff7f0e",
|
|
600
|
+
"#2ca02c",
|
|
601
|
+
"#d62728",
|
|
602
|
+
"#9467bd",
|
|
603
|
+
"#8c564b",
|
|
604
|
+
"#e377c2",
|
|
605
|
+
"#7f7f7f",
|
|
606
|
+
"#bcbd22",
|
|
607
|
+
"#17becf"
|
|
608
|
+
], v = 0, y = function(e) {
|
|
609
|
+
if (e in g) return g[e];
|
|
610
|
+
var t = g[e] = _[v];
|
|
611
|
+
return v += 1, v >= _.length && (v = 0), t;
|
|
612
|
+
}, b = te, x = z;
|
|
613
|
+
function S(g) {
|
|
614
|
+
let _ = g.datum(), v = /* @__PURE__ */ new Set();
|
|
615
|
+
_.forEach((e) => {
|
|
616
|
+
e.size == 0 && e.sets.length == 1 && v.add(e.sets[0]);
|
|
617
|
+
}), _ = _.filter((e) => !e.sets.some((e) => v.has(e)));
|
|
618
|
+
let S = {}, C = {};
|
|
619
|
+
if (_.length > 0) {
|
|
620
|
+
let e = b(_, {
|
|
621
|
+
lossFunction: x,
|
|
622
|
+
distinct: p
|
|
623
|
+
});
|
|
624
|
+
s && (e = fe(e, o, f)), S = pe(e, n, r, i, c), C = ye(S, _, h);
|
|
625
|
+
}
|
|
626
|
+
let w = {};
|
|
627
|
+
_.forEach((e) => {
|
|
628
|
+
e.label && (w[e.sets] = e.label);
|
|
629
|
+
});
|
|
630
|
+
function T(e) {
|
|
631
|
+
if (e.sets in w) return w[e.sets];
|
|
632
|
+
if (e.sets.length == 1) return "" + e.sets[0];
|
|
633
|
+
}
|
|
634
|
+
g.selectAll("svg").data([S]).enter().append("svg");
|
|
635
|
+
let E = g.select("svg");
|
|
636
|
+
t ? E.attr("viewBox", `0 0 ${n} ${r}`) : E.attr("width", n).attr("height", r);
|
|
637
|
+
let D = {}, O = !1;
|
|
638
|
+
E.selectAll(".venn-area path").each(function(e) {
|
|
639
|
+
let t = this.getAttribute("d");
|
|
640
|
+
e.sets.length == 1 && t && !p && (O = !0, D[e.sets[0]] = xe(t));
|
|
641
|
+
});
|
|
642
|
+
function k(e) {
|
|
643
|
+
return (t) => we(e.sets.map((e) => {
|
|
644
|
+
let i = D[e], a = S[e];
|
|
645
|
+
return i ||= {
|
|
646
|
+
x: n / 2,
|
|
647
|
+
y: r / 2,
|
|
648
|
+
radius: 1
|
|
649
|
+
}, a ||= {
|
|
650
|
+
x: n / 2,
|
|
651
|
+
y: r / 2,
|
|
652
|
+
radius: 1
|
|
653
|
+
}, {
|
|
654
|
+
x: i.x * (1 - t) + a.x * t,
|
|
655
|
+
y: i.y * (1 - t) + a.y * t,
|
|
656
|
+
radius: i.radius * (1 - t) + a.radius * t
|
|
657
|
+
};
|
|
658
|
+
}), m);
|
|
659
|
+
}
|
|
660
|
+
let A = E.selectAll(".venn-area").data(_, (e) => e.sets), j = A.enter().append("g").attr("class", (e) => `venn-area venn-${e.sets.length == 1 ? "circle" : "intersection"}${e.colour || e.color ? " venn-coloured" : ""}`).attr("data-venn-sets", (e) => e.sets.join("_")), M = j.append("path"), N = j.append("text").attr("class", "label").text((e) => T(e)).attr("text-anchor", "middle").attr("dy", ".35em").attr("x", n / 2).attr("y", r / 2);
|
|
661
|
+
u && (M.style("fill-opacity", "0").filter((e) => e.sets.length == 1).style("fill", (e) => e.colour ? e.colour : e.color ? e.color : y(e.sets)).style("fill-opacity", ".25"), N.style("fill", (t) => t.colour || t.color ? "#FFF" : e.textFill ? e.textFill : t.sets.length == 1 ? y(t.sets) : "#444"));
|
|
662
|
+
function P(e) {
|
|
663
|
+
return typeof e.transition == "function" ? e.transition("venn").duration(a) : e;
|
|
664
|
+
}
|
|
665
|
+
let F = g;
|
|
666
|
+
O && typeof F.transition == "function" ? (F = P(g), F.selectAll("path").attrTween("d", k)) : F.selectAll("path").attr("d", (e) => we(e.sets.map((e) => S[e])), m);
|
|
667
|
+
let I = F.selectAll("text").filter((e) => e.sets in C).text((e) => T(e)).attr("x", (e) => Math.floor(C[e.sets].x)).attr("y", (e) => Math.floor(C[e.sets].y));
|
|
668
|
+
l && (O ? "on" in I ? I.on("end", V(S, T)) : I.each("end", V(S, T)) : I.each(V(S, T)));
|
|
669
|
+
let L = P(A.exit()).remove();
|
|
670
|
+
typeof A.transition == "function" && L.selectAll("path").attrTween("d", k);
|
|
671
|
+
let ee = L.selectAll("text").attr("x", n / 2).attr("y", r / 2);
|
|
672
|
+
return d !== null && (N.style("font-size", "0px"), I.style("font-size", d), ee.style("font-size", "0px")), {
|
|
673
|
+
circles: S,
|
|
674
|
+
textCentres: C,
|
|
675
|
+
nodes: A,
|
|
676
|
+
enter: j,
|
|
677
|
+
update: F,
|
|
678
|
+
exit: L
|
|
679
|
+
};
|
|
680
|
+
}
|
|
681
|
+
return S.wrap = function(e) {
|
|
682
|
+
return arguments.length ? (l = e, S) : l;
|
|
683
|
+
}, S.useViewBox = function() {
|
|
684
|
+
return t = !0, S;
|
|
685
|
+
}, S.width = function(e) {
|
|
686
|
+
return arguments.length ? (n = e, S) : n;
|
|
687
|
+
}, S.height = function(e) {
|
|
688
|
+
return arguments.length ? (r = e, S) : r;
|
|
689
|
+
}, S.padding = function(e) {
|
|
690
|
+
return arguments.length ? (i = e, S) : i;
|
|
691
|
+
}, S.distinct = function(e) {
|
|
692
|
+
return arguments.length ? (p = e, S) : p;
|
|
693
|
+
}, S.colours = function(e) {
|
|
694
|
+
return arguments.length ? (y = e, S) : y;
|
|
695
|
+
}, S.colors = function(e) {
|
|
696
|
+
return arguments.length ? (y = e, S) : y;
|
|
697
|
+
}, S.fontSize = function(e) {
|
|
698
|
+
return arguments.length ? (d = e, S) : d;
|
|
699
|
+
}, S.round = function(e) {
|
|
700
|
+
return arguments.length ? (m = e, S) : m;
|
|
701
|
+
}, S.duration = function(e) {
|
|
702
|
+
return arguments.length ? (a = e, S) : a;
|
|
703
|
+
}, S.layoutFunction = function(e) {
|
|
704
|
+
return arguments.length ? (b = e, S) : b;
|
|
705
|
+
}, S.normalize = function(e) {
|
|
706
|
+
return arguments.length ? (s = e, S) : s;
|
|
707
|
+
}, S.scaleToFit = function(e) {
|
|
708
|
+
return arguments.length ? (c = e, S) : c;
|
|
709
|
+
}, S.styled = function(e) {
|
|
710
|
+
return arguments.length ? (u = e, S) : u;
|
|
711
|
+
}, S.orientation = function(e) {
|
|
712
|
+
return arguments.length ? (o = e, S) : o;
|
|
713
|
+
}, S.orientationOrder = function(e) {
|
|
714
|
+
return arguments.length ? (f = e, S) : f;
|
|
715
|
+
}, S.lossFunction = function(e) {
|
|
716
|
+
return arguments.length ? (x = e === "default" ? z : e === "logRatio" ? le : e, S) : x;
|
|
717
|
+
}, S;
|
|
718
|
+
}
|
|
719
|
+
function V(e, t) {
|
|
720
|
+
return function(n) {
|
|
721
|
+
let r = this, i = e[n.sets[0]].radius || 50, a = t(n) || "", o = a.split(/\s+/).reverse(), s = (a.length + o.length) / 3, c = o.pop(), l = [c], u = 0, d = 1.1;
|
|
722
|
+
r.textContent = null;
|
|
723
|
+
let f = [];
|
|
724
|
+
function p(e) {
|
|
725
|
+
let t = r.ownerDocument.createElementNS(r.namespaceURI, "tspan");
|
|
726
|
+
return t.textContent = e, f.push(t), r.append(t), t;
|
|
727
|
+
}
|
|
728
|
+
let m = p(c);
|
|
729
|
+
for (; c = o.pop(), c;) {
|
|
730
|
+
l.push(c);
|
|
731
|
+
let e = l.join(" ");
|
|
732
|
+
m.textContent = e, e.length > s && m.getComputedTextLength() > i && (l.pop(), m.textContent = l.join(" "), l = [c], m = p(c), u++);
|
|
733
|
+
}
|
|
734
|
+
let h = .35 - u * d / 2, g = r.getAttribute("x"), _ = r.getAttribute("y");
|
|
735
|
+
f.forEach((e, t) => {
|
|
736
|
+
e.setAttribute("x", g), e.setAttribute("y", _), e.setAttribute("dy", `${h + t * d}em`);
|
|
737
|
+
});
|
|
738
|
+
};
|
|
739
|
+
}
|
|
740
|
+
function H(e, t, n) {
|
|
741
|
+
let r = t[0].radius - T(t[0], e);
|
|
742
|
+
for (let n = 1; n < t.length; ++n) {
|
|
743
|
+
let i = t[n].radius - T(t[n], e);
|
|
744
|
+
i <= r && (r = i);
|
|
745
|
+
}
|
|
746
|
+
for (let t = 0; t < n.length; ++t) {
|
|
747
|
+
let i = T(n[t], e) - n[t].radius;
|
|
748
|
+
i <= r && (r = i);
|
|
749
|
+
}
|
|
750
|
+
return r;
|
|
751
|
+
}
|
|
752
|
+
function _e(e, t, n) {
|
|
753
|
+
let r = [];
|
|
754
|
+
for (let t of e) r.push({
|
|
755
|
+
x: t.x,
|
|
756
|
+
y: t.y
|
|
757
|
+
}), r.push({
|
|
758
|
+
x: t.x + t.radius / 2,
|
|
759
|
+
y: t.y
|
|
760
|
+
}), r.push({
|
|
761
|
+
x: t.x - t.radius / 2,
|
|
762
|
+
y: t.y
|
|
763
|
+
}), r.push({
|
|
764
|
+
x: t.x,
|
|
765
|
+
y: t.y + t.radius / 2
|
|
766
|
+
}), r.push({
|
|
767
|
+
x: t.x,
|
|
768
|
+
y: t.y - t.radius / 2
|
|
769
|
+
});
|
|
770
|
+
let i = r[0], a = H(r[0], e, t);
|
|
771
|
+
for (let n = 1; n < r.length; ++n) {
|
|
772
|
+
let o = H(r[n], e, t);
|
|
773
|
+
o >= a && (i = r[n], a = o);
|
|
774
|
+
}
|
|
775
|
+
let o = I((n) => -1 * H({
|
|
776
|
+
x: n[0],
|
|
777
|
+
y: n[1]
|
|
778
|
+
}, e, t), [i.x, i.y], {
|
|
779
|
+
maxIterations: 500,
|
|
780
|
+
minErrorDelta: 1e-10
|
|
781
|
+
}).x, s = {
|
|
782
|
+
x: n ? 0 : o[0],
|
|
783
|
+
y: o[1]
|
|
784
|
+
}, c = !0;
|
|
785
|
+
for (let t of e) if (T(s, t) > t.radius) {
|
|
786
|
+
c = !1;
|
|
787
|
+
break;
|
|
788
|
+
}
|
|
789
|
+
for (let e of t) if (T(s, e) < e.radius) {
|
|
790
|
+
c = !1;
|
|
791
|
+
break;
|
|
792
|
+
}
|
|
793
|
+
if (c) return s;
|
|
794
|
+
if (e.length == 1) return {
|
|
795
|
+
x: e[0].x,
|
|
796
|
+
y: e[0].y
|
|
797
|
+
};
|
|
798
|
+
let l = {};
|
|
799
|
+
return x(e, l), l.arcs.length === 0 ? {
|
|
800
|
+
x: 0,
|
|
801
|
+
y: -1e3,
|
|
802
|
+
disjoint: !0
|
|
803
|
+
} : l.arcs.length == 1 ? {
|
|
804
|
+
x: l.arcs[0].circle.x,
|
|
805
|
+
y: l.arcs[0].circle.y
|
|
806
|
+
} : t.length ? _e(e, []) : O(l.arcs.map((e) => e.p1));
|
|
807
|
+
}
|
|
808
|
+
function ve(e) {
|
|
809
|
+
let t = {}, n = Object.keys(e);
|
|
810
|
+
for (let e of n) t[e] = [];
|
|
811
|
+
for (let r = 0; r < n.length; r++) {
|
|
812
|
+
let i = n[r], a = e[i];
|
|
813
|
+
for (let o = r + 1; o < n.length; ++o) {
|
|
814
|
+
let r = n[o], s = e[r], c = T(a, s);
|
|
815
|
+
c + s.radius <= a.radius + 1e-10 ? t[r].push(i) : c + a.radius <= s.radius + 1e-10 && t[i].push(r);
|
|
816
|
+
}
|
|
817
|
+
}
|
|
818
|
+
return t;
|
|
819
|
+
}
|
|
820
|
+
function ye(e, t, n) {
|
|
821
|
+
let r = {}, i = ve(e);
|
|
822
|
+
for (let a = 0; a < t.length; ++a) {
|
|
823
|
+
let o = t[a].sets, s = {}, c = {};
|
|
824
|
+
for (let e = 0; e < o.length; ++e) {
|
|
825
|
+
s[o[e]] = !0;
|
|
826
|
+
let t = i[o[e]];
|
|
827
|
+
for (let e = 0; e < t.length; ++e) c[t[e]] = !0;
|
|
828
|
+
}
|
|
829
|
+
let l = [], u = [];
|
|
830
|
+
for (let t in e) t in s ? l.push(e[t]) : t in c || u.push(e[t]);
|
|
831
|
+
let d = _e(l, u, n);
|
|
832
|
+
r[o] = d, d.disjoint && t[a].size > 0 && console.log("WARNING: area " + o + " not represented on screen");
|
|
833
|
+
}
|
|
834
|
+
return r;
|
|
835
|
+
}
|
|
836
|
+
function be(e, t, n) {
|
|
837
|
+
let r = [];
|
|
838
|
+
return r.push("\nM", e, t), r.push("\nm", -n, 0), r.push("\na", n, n, 0, 1, 0, n * 2, 0), r.push("\na", n, n, 0, 1, 0, -n * 2, 0), r.join(" ");
|
|
839
|
+
}
|
|
840
|
+
function xe(e) {
|
|
841
|
+
let t = e.split(" ");
|
|
842
|
+
return {
|
|
843
|
+
x: Number.parseFloat(t[1]),
|
|
844
|
+
y: Number.parseFloat(t[2]),
|
|
845
|
+
radius: -Number.parseFloat(t[4])
|
|
846
|
+
};
|
|
847
|
+
}
|
|
848
|
+
function Se(e) {
|
|
849
|
+
if (e.length === 0) return [];
|
|
850
|
+
let t = {};
|
|
851
|
+
return x(e, t), t.arcs;
|
|
852
|
+
}
|
|
853
|
+
function Ce(e, t) {
|
|
854
|
+
if (e.length === 0) return "M 0 0";
|
|
855
|
+
let n = 10 ** (t || 0), r = t == null ? (e) => e : (e) => Math.round(e * n) / n;
|
|
856
|
+
if (e.length == 1) {
|
|
857
|
+
let t = e[0].circle;
|
|
858
|
+
return be(r(t.x), r(t.y), r(t.radius));
|
|
859
|
+
}
|
|
860
|
+
let i = [
|
|
861
|
+
"\nM",
|
|
862
|
+
r(e[0].p2.x),
|
|
863
|
+
r(e[0].p2.y)
|
|
864
|
+
];
|
|
865
|
+
for (let t of e) {
|
|
866
|
+
let e = r(t.circle.radius);
|
|
867
|
+
i.push("\nA", e, e, 0, t.large ? 1 : 0, t.sweep ? 1 : 0, r(t.p1.x), r(t.p1.y));
|
|
868
|
+
}
|
|
869
|
+
return i.join(" ");
|
|
870
|
+
}
|
|
871
|
+
function we(e, t) {
|
|
872
|
+
return Ce(Se(e), t);
|
|
873
|
+
}
|
|
874
|
+
function Te(e, t = {}) {
|
|
875
|
+
let { lossFunction: n, layoutFunction: r = te, normalize: i = !0, orientation: a = Math.PI / 2, orientationOrder: o, width: s = 600, height: c = 350, padding: l = 15, scaleToFit: u = !1, symmetricalTextCentre: d = !1, distinct: f, round: p = 2 } = t, m = r(e, {
|
|
876
|
+
lossFunction: n === "default" || !n ? z : n === "logRatio" ? le : n,
|
|
877
|
+
distinct: f
|
|
878
|
+
});
|
|
879
|
+
i && (m = fe(m, a, o));
|
|
880
|
+
let h = pe(m, s, c, l, u), g = ye(h, e, d), _ = new Map(Object.keys(h).map((e) => [e, {
|
|
881
|
+
set: e,
|
|
882
|
+
x: h[e].x,
|
|
883
|
+
y: h[e].y,
|
|
884
|
+
radius: h[e].radius
|
|
885
|
+
}])), v = e.map((e) => {
|
|
886
|
+
let t = e.sets.map((e) => _.get(e)), n = Se(t);
|
|
887
|
+
return {
|
|
888
|
+
circles: t,
|
|
889
|
+
arcs: n,
|
|
890
|
+
path: Ce(n, p),
|
|
891
|
+
area: e,
|
|
892
|
+
has: new Set(e.sets)
|
|
893
|
+
};
|
|
894
|
+
});
|
|
895
|
+
function y(e) {
|
|
896
|
+
let t = "";
|
|
897
|
+
for (let n of v) n.has.size > e.length && e.every((e) => n.has.has(e)) && (t += " " + n.path);
|
|
898
|
+
return t;
|
|
899
|
+
}
|
|
900
|
+
return v.map(({ circles: e, arcs: t, path: n, area: r }) => ({
|
|
901
|
+
data: r,
|
|
902
|
+
text: g[r.sets],
|
|
903
|
+
circles: e,
|
|
904
|
+
arcs: t,
|
|
905
|
+
path: n,
|
|
906
|
+
distinctPath: n + y(r.sets)
|
|
907
|
+
}));
|
|
908
|
+
}
|
|
909
|
+
//#endregion
|
|
910
|
+
//#region node_modules/mermaid/dist/chunks/mermaid.core/vennDiagram-LZ73GAT5.mjs
|
|
911
|
+
var U = (function() {
|
|
912
|
+
var t = /* @__PURE__ */ e(function(e, t, n, r) {
|
|
913
|
+
for (n ||= {}, r = e.length; r--; n[e[r]] = t);
|
|
914
|
+
return n;
|
|
915
|
+
}, "o"), n = [5, 8], r = [
|
|
916
|
+
7,
|
|
917
|
+
8,
|
|
918
|
+
11,
|
|
919
|
+
12,
|
|
920
|
+
17,
|
|
921
|
+
19,
|
|
922
|
+
22,
|
|
923
|
+
24
|
|
924
|
+
], i = [1, 17], a = [1, 18], o = [
|
|
925
|
+
7,
|
|
926
|
+
8,
|
|
927
|
+
11,
|
|
928
|
+
12,
|
|
929
|
+
14,
|
|
930
|
+
15,
|
|
931
|
+
16,
|
|
932
|
+
17,
|
|
933
|
+
19,
|
|
934
|
+
20,
|
|
935
|
+
21,
|
|
936
|
+
22,
|
|
937
|
+
24,
|
|
938
|
+
27
|
|
939
|
+
], s = [1, 31], c = [1, 39], l = [
|
|
940
|
+
7,
|
|
941
|
+
8,
|
|
942
|
+
11,
|
|
943
|
+
12,
|
|
944
|
+
17,
|
|
945
|
+
19,
|
|
946
|
+
22,
|
|
947
|
+
24,
|
|
948
|
+
27
|
|
949
|
+
], u = [1, 57], d = [1, 56], f = [1, 58], p = [1, 59], m = [1, 60], h = [
|
|
950
|
+
7,
|
|
951
|
+
8,
|
|
952
|
+
11,
|
|
953
|
+
12,
|
|
954
|
+
16,
|
|
955
|
+
17,
|
|
956
|
+
19,
|
|
957
|
+
20,
|
|
958
|
+
22,
|
|
959
|
+
24,
|
|
960
|
+
27,
|
|
961
|
+
31,
|
|
962
|
+
32,
|
|
963
|
+
33
|
|
964
|
+
], g = {
|
|
965
|
+
trace: /* @__PURE__ */ e(function() {}, "trace"),
|
|
966
|
+
yy: {},
|
|
967
|
+
symbols_: {
|
|
968
|
+
error: 2,
|
|
969
|
+
start: 3,
|
|
970
|
+
optNewlines: 4,
|
|
971
|
+
VENN: 5,
|
|
972
|
+
document: 6,
|
|
973
|
+
EOF: 7,
|
|
974
|
+
NEWLINE: 8,
|
|
975
|
+
line: 9,
|
|
976
|
+
statement: 10,
|
|
977
|
+
TITLE: 11,
|
|
978
|
+
SET: 12,
|
|
979
|
+
identifier: 13,
|
|
980
|
+
BRACKET_LABEL: 14,
|
|
981
|
+
COLON: 15,
|
|
982
|
+
NUMERIC: 16,
|
|
983
|
+
UNION: 17,
|
|
984
|
+
identifierList: 18,
|
|
985
|
+
TEXT: 19,
|
|
986
|
+
IDENTIFIER: 20,
|
|
987
|
+
STRING: 21,
|
|
988
|
+
INDENT_TEXT: 22,
|
|
989
|
+
indentedTextTail: 23,
|
|
990
|
+
STYLE: 24,
|
|
991
|
+
stylesOpt: 25,
|
|
992
|
+
styleField: 26,
|
|
993
|
+
COMMA: 27,
|
|
994
|
+
styleValue: 28,
|
|
995
|
+
valueTokens: 29,
|
|
996
|
+
valueToken: 30,
|
|
997
|
+
HEXCOLOR: 31,
|
|
998
|
+
RGBCOLOR: 32,
|
|
999
|
+
RGBACOLOR: 33,
|
|
1000
|
+
$accept: 0,
|
|
1001
|
+
$end: 1
|
|
1002
|
+
},
|
|
1003
|
+
terminals_: {
|
|
1004
|
+
2: "error",
|
|
1005
|
+
5: "VENN",
|
|
1006
|
+
7: "EOF",
|
|
1007
|
+
8: "NEWLINE",
|
|
1008
|
+
11: "TITLE",
|
|
1009
|
+
12: "SET",
|
|
1010
|
+
14: "BRACKET_LABEL",
|
|
1011
|
+
15: "COLON",
|
|
1012
|
+
16: "NUMERIC",
|
|
1013
|
+
17: "UNION",
|
|
1014
|
+
19: "TEXT",
|
|
1015
|
+
20: "IDENTIFIER",
|
|
1016
|
+
21: "STRING",
|
|
1017
|
+
22: "INDENT_TEXT",
|
|
1018
|
+
24: "STYLE",
|
|
1019
|
+
27: "COMMA",
|
|
1020
|
+
31: "HEXCOLOR",
|
|
1021
|
+
32: "RGBCOLOR",
|
|
1022
|
+
33: "RGBACOLOR"
|
|
1023
|
+
},
|
|
1024
|
+
productions_: [
|
|
1025
|
+
0,
|
|
1026
|
+
[3, 4],
|
|
1027
|
+
[4, 0],
|
|
1028
|
+
[4, 2],
|
|
1029
|
+
[6, 0],
|
|
1030
|
+
[6, 2],
|
|
1031
|
+
[9, 1],
|
|
1032
|
+
[9, 1],
|
|
1033
|
+
[10, 1],
|
|
1034
|
+
[10, 2],
|
|
1035
|
+
[10, 3],
|
|
1036
|
+
[10, 4],
|
|
1037
|
+
[10, 5],
|
|
1038
|
+
[10, 2],
|
|
1039
|
+
[10, 3],
|
|
1040
|
+
[10, 4],
|
|
1041
|
+
[10, 5],
|
|
1042
|
+
[10, 3],
|
|
1043
|
+
[10, 3],
|
|
1044
|
+
[10, 3],
|
|
1045
|
+
[10, 4],
|
|
1046
|
+
[10, 4],
|
|
1047
|
+
[10, 2],
|
|
1048
|
+
[10, 3],
|
|
1049
|
+
[23, 1],
|
|
1050
|
+
[23, 1],
|
|
1051
|
+
[23, 1],
|
|
1052
|
+
[23, 2],
|
|
1053
|
+
[23, 2],
|
|
1054
|
+
[25, 1],
|
|
1055
|
+
[25, 3],
|
|
1056
|
+
[26, 3],
|
|
1057
|
+
[28, 1],
|
|
1058
|
+
[28, 1],
|
|
1059
|
+
[29, 1],
|
|
1060
|
+
[29, 2],
|
|
1061
|
+
[30, 1],
|
|
1062
|
+
[30, 1],
|
|
1063
|
+
[30, 1],
|
|
1064
|
+
[30, 1],
|
|
1065
|
+
[30, 1],
|
|
1066
|
+
[18, 1],
|
|
1067
|
+
[18, 3],
|
|
1068
|
+
[13, 1],
|
|
1069
|
+
[13, 1]
|
|
1070
|
+
],
|
|
1071
|
+
performAction: /* @__PURE__ */ e(function(e, t, n, r, i, a, o) {
|
|
1072
|
+
var s = a.length - 1;
|
|
1073
|
+
switch (i) {
|
|
1074
|
+
case 1: return a[s - 1];
|
|
1075
|
+
case 2:
|
|
1076
|
+
case 3:
|
|
1077
|
+
case 4:
|
|
1078
|
+
this.$ = [];
|
|
1079
|
+
break;
|
|
1080
|
+
case 5:
|
|
1081
|
+
a[s - 1].push(a[s]), this.$ = a[s - 1];
|
|
1082
|
+
break;
|
|
1083
|
+
case 6:
|
|
1084
|
+
this.$ = [];
|
|
1085
|
+
break;
|
|
1086
|
+
case 7:
|
|
1087
|
+
case 22:
|
|
1088
|
+
case 32:
|
|
1089
|
+
case 36:
|
|
1090
|
+
case 37:
|
|
1091
|
+
case 38:
|
|
1092
|
+
case 39:
|
|
1093
|
+
case 40:
|
|
1094
|
+
this.$ = a[s];
|
|
1095
|
+
break;
|
|
1096
|
+
case 8:
|
|
1097
|
+
r.setDiagramTitle(a[s].substr(6)), this.$ = a[s].substr(6);
|
|
1098
|
+
break;
|
|
1099
|
+
case 9:
|
|
1100
|
+
r.addSubsetData([a[s]], void 0, void 0), r.setIndentMode && r.setIndentMode(!0);
|
|
1101
|
+
break;
|
|
1102
|
+
case 10:
|
|
1103
|
+
r.addSubsetData([a[s - 1]], a[s], void 0), r.setIndentMode && r.setIndentMode(!0);
|
|
1104
|
+
break;
|
|
1105
|
+
case 11:
|
|
1106
|
+
r.addSubsetData([a[s - 2]], void 0, parseFloat(a[s])), r.setIndentMode && r.setIndentMode(!0);
|
|
1107
|
+
break;
|
|
1108
|
+
case 12:
|
|
1109
|
+
r.addSubsetData([a[s - 3]], a[s - 2], parseFloat(a[s])), r.setIndentMode && r.setIndentMode(!0);
|
|
1110
|
+
break;
|
|
1111
|
+
case 13:
|
|
1112
|
+
if (a[s].length < 2) throw Error("union requires multiple identifiers");
|
|
1113
|
+
r.validateUnionIdentifiers && r.validateUnionIdentifiers(a[s]), r.addSubsetData(a[s], void 0, void 0), r.setIndentMode && r.setIndentMode(!0);
|
|
1114
|
+
break;
|
|
1115
|
+
case 14:
|
|
1116
|
+
if (a[s - 1].length < 2) throw Error("union requires multiple identifiers");
|
|
1117
|
+
r.validateUnionIdentifiers && r.validateUnionIdentifiers(a[s - 1]), r.addSubsetData(a[s - 1], a[s], void 0), r.setIndentMode && r.setIndentMode(!0);
|
|
1118
|
+
break;
|
|
1119
|
+
case 15:
|
|
1120
|
+
if (a[s - 2].length < 2) throw Error("union requires multiple identifiers");
|
|
1121
|
+
r.validateUnionIdentifiers && r.validateUnionIdentifiers(a[s - 2]), r.addSubsetData(a[s - 2], void 0, parseFloat(a[s])), r.setIndentMode && r.setIndentMode(!0);
|
|
1122
|
+
break;
|
|
1123
|
+
case 16:
|
|
1124
|
+
if (a[s - 3].length < 2) throw Error("union requires multiple identifiers");
|
|
1125
|
+
r.validateUnionIdentifiers && r.validateUnionIdentifiers(a[s - 3]), r.addSubsetData(a[s - 3], a[s - 2], parseFloat(a[s])), r.setIndentMode && r.setIndentMode(!0);
|
|
1126
|
+
break;
|
|
1127
|
+
case 17:
|
|
1128
|
+
case 18:
|
|
1129
|
+
case 19:
|
|
1130
|
+
r.addTextData(a[s - 1], a[s], void 0);
|
|
1131
|
+
break;
|
|
1132
|
+
case 20:
|
|
1133
|
+
case 21:
|
|
1134
|
+
r.addTextData(a[s - 2], a[s - 1], a[s]);
|
|
1135
|
+
break;
|
|
1136
|
+
case 23:
|
|
1137
|
+
r.addStyleData(a[s - 1], a[s]);
|
|
1138
|
+
break;
|
|
1139
|
+
case 24:
|
|
1140
|
+
case 25:
|
|
1141
|
+
case 26:
|
|
1142
|
+
var c = r.getCurrentSets();
|
|
1143
|
+
if (!c) throw Error("text requires set");
|
|
1144
|
+
r.addTextData(c, a[s], void 0);
|
|
1145
|
+
break;
|
|
1146
|
+
case 27:
|
|
1147
|
+
case 28:
|
|
1148
|
+
var c = r.getCurrentSets();
|
|
1149
|
+
if (!c) throw Error("text requires set");
|
|
1150
|
+
r.addTextData(c, a[s - 1], a[s]);
|
|
1151
|
+
break;
|
|
1152
|
+
case 29:
|
|
1153
|
+
case 41:
|
|
1154
|
+
this.$ = [a[s]];
|
|
1155
|
+
break;
|
|
1156
|
+
case 30:
|
|
1157
|
+
case 42:
|
|
1158
|
+
this.$ = [...a[s - 2], a[s]];
|
|
1159
|
+
break;
|
|
1160
|
+
case 31:
|
|
1161
|
+
this.$ = [a[s - 2], a[s]];
|
|
1162
|
+
break;
|
|
1163
|
+
case 33:
|
|
1164
|
+
this.$ = a[s].join(" ");
|
|
1165
|
+
break;
|
|
1166
|
+
case 34:
|
|
1167
|
+
this.$ = [a[s]];
|
|
1168
|
+
break;
|
|
1169
|
+
case 35:
|
|
1170
|
+
a[s - 1].push(a[s]), this.$ = a[s - 1];
|
|
1171
|
+
break;
|
|
1172
|
+
case 43:
|
|
1173
|
+
case 44:
|
|
1174
|
+
this.$ = a[s];
|
|
1175
|
+
break;
|
|
1176
|
+
}
|
|
1177
|
+
}, "anonymous"),
|
|
1178
|
+
table: [
|
|
1179
|
+
t(n, [2, 2], {
|
|
1180
|
+
3: 1,
|
|
1181
|
+
4: 2
|
|
1182
|
+
}),
|
|
1183
|
+
{ 1: [3] },
|
|
1184
|
+
{
|
|
1185
|
+
5: [1, 3],
|
|
1186
|
+
8: [1, 4]
|
|
1187
|
+
},
|
|
1188
|
+
t(r, [2, 4], { 6: 5 }),
|
|
1189
|
+
t(n, [2, 3]),
|
|
1190
|
+
{
|
|
1191
|
+
7: [1, 6],
|
|
1192
|
+
8: [1, 8],
|
|
1193
|
+
9: 7,
|
|
1194
|
+
10: 9,
|
|
1195
|
+
11: [1, 10],
|
|
1196
|
+
12: [1, 11],
|
|
1197
|
+
17: [1, 12],
|
|
1198
|
+
19: [1, 13],
|
|
1199
|
+
22: [1, 14],
|
|
1200
|
+
24: [1, 15]
|
|
1201
|
+
},
|
|
1202
|
+
{ 1: [2, 1] },
|
|
1203
|
+
t(r, [2, 5]),
|
|
1204
|
+
t(r, [2, 6]),
|
|
1205
|
+
t(r, [2, 7]),
|
|
1206
|
+
t(r, [2, 8]),
|
|
1207
|
+
{
|
|
1208
|
+
13: 16,
|
|
1209
|
+
20: i,
|
|
1210
|
+
21: a
|
|
1211
|
+
},
|
|
1212
|
+
{
|
|
1213
|
+
13: 20,
|
|
1214
|
+
18: 19,
|
|
1215
|
+
20: i,
|
|
1216
|
+
21: a
|
|
1217
|
+
},
|
|
1218
|
+
{
|
|
1219
|
+
13: 20,
|
|
1220
|
+
18: 21,
|
|
1221
|
+
20: i,
|
|
1222
|
+
21: a
|
|
1223
|
+
},
|
|
1224
|
+
{
|
|
1225
|
+
16: [1, 25],
|
|
1226
|
+
20: [1, 23],
|
|
1227
|
+
21: [1, 24],
|
|
1228
|
+
23: 22
|
|
1229
|
+
},
|
|
1230
|
+
{
|
|
1231
|
+
13: 20,
|
|
1232
|
+
18: 26,
|
|
1233
|
+
20: i,
|
|
1234
|
+
21: a
|
|
1235
|
+
},
|
|
1236
|
+
t(r, [2, 9], {
|
|
1237
|
+
14: [1, 27],
|
|
1238
|
+
15: [1, 28]
|
|
1239
|
+
}),
|
|
1240
|
+
t(o, [2, 43]),
|
|
1241
|
+
t(o, [2, 44]),
|
|
1242
|
+
t(r, [2, 13], {
|
|
1243
|
+
14: [1, 29],
|
|
1244
|
+
15: [1, 30],
|
|
1245
|
+
27: s
|
|
1246
|
+
}),
|
|
1247
|
+
t(o, [2, 41]),
|
|
1248
|
+
{
|
|
1249
|
+
16: [1, 34],
|
|
1250
|
+
20: [1, 32],
|
|
1251
|
+
21: [1, 33],
|
|
1252
|
+
27: s
|
|
1253
|
+
},
|
|
1254
|
+
t(r, [2, 22]),
|
|
1255
|
+
t(r, [2, 24], { 14: [1, 35] }),
|
|
1256
|
+
t(r, [2, 25], { 14: [1, 36] }),
|
|
1257
|
+
t(r, [2, 26]),
|
|
1258
|
+
{
|
|
1259
|
+
20: c,
|
|
1260
|
+
25: 37,
|
|
1261
|
+
26: 38,
|
|
1262
|
+
27: s
|
|
1263
|
+
},
|
|
1264
|
+
t(r, [2, 10], { 15: [1, 40] }),
|
|
1265
|
+
{ 16: [1, 41] },
|
|
1266
|
+
t(r, [2, 14], { 15: [1, 42] }),
|
|
1267
|
+
{ 16: [1, 43] },
|
|
1268
|
+
{
|
|
1269
|
+
13: 44,
|
|
1270
|
+
20: i,
|
|
1271
|
+
21: a
|
|
1272
|
+
},
|
|
1273
|
+
t(r, [2, 17], { 14: [1, 45] }),
|
|
1274
|
+
t(r, [2, 18], { 14: [1, 46] }),
|
|
1275
|
+
t(r, [2, 19]),
|
|
1276
|
+
t(r, [2, 27]),
|
|
1277
|
+
t(r, [2, 28]),
|
|
1278
|
+
t(r, [2, 23], { 27: [1, 47] }),
|
|
1279
|
+
t(l, [2, 29]),
|
|
1280
|
+
{ 15: [1, 48] },
|
|
1281
|
+
{ 16: [1, 49] },
|
|
1282
|
+
t(r, [2, 11]),
|
|
1283
|
+
{ 16: [1, 50] },
|
|
1284
|
+
t(r, [2, 15]),
|
|
1285
|
+
t(o, [2, 42]),
|
|
1286
|
+
t(r, [2, 20]),
|
|
1287
|
+
t(r, [2, 21]),
|
|
1288
|
+
{
|
|
1289
|
+
20: c,
|
|
1290
|
+
26: 51
|
|
1291
|
+
},
|
|
1292
|
+
{
|
|
1293
|
+
16: u,
|
|
1294
|
+
20: d,
|
|
1295
|
+
21: [1, 53],
|
|
1296
|
+
28: 52,
|
|
1297
|
+
29: 54,
|
|
1298
|
+
30: 55,
|
|
1299
|
+
31: f,
|
|
1300
|
+
32: p,
|
|
1301
|
+
33: m
|
|
1302
|
+
},
|
|
1303
|
+
t(r, [2, 12]),
|
|
1304
|
+
t(r, [2, 16]),
|
|
1305
|
+
t(l, [2, 30]),
|
|
1306
|
+
t(l, [2, 31]),
|
|
1307
|
+
t(l, [2, 32]),
|
|
1308
|
+
t(l, [2, 33], {
|
|
1309
|
+
30: 61,
|
|
1310
|
+
16: u,
|
|
1311
|
+
20: d,
|
|
1312
|
+
31: f,
|
|
1313
|
+
32: p,
|
|
1314
|
+
33: m
|
|
1315
|
+
}),
|
|
1316
|
+
t(h, [2, 34]),
|
|
1317
|
+
t(h, [2, 36]),
|
|
1318
|
+
t(h, [2, 37]),
|
|
1319
|
+
t(h, [2, 38]),
|
|
1320
|
+
t(h, [2, 39]),
|
|
1321
|
+
t(h, [2, 40]),
|
|
1322
|
+
t(h, [2, 35])
|
|
1323
|
+
],
|
|
1324
|
+
defaultActions: { 6: [2, 1] },
|
|
1325
|
+
parseError: /* @__PURE__ */ e(function(e, t) {
|
|
1326
|
+
if (t.recoverable) this.trace(e);
|
|
1327
|
+
else {
|
|
1328
|
+
var n = Error(e);
|
|
1329
|
+
throw n.hash = t, n;
|
|
1330
|
+
}
|
|
1331
|
+
}, "parseError"),
|
|
1332
|
+
parse: /* @__PURE__ */ e(function(t) {
|
|
1333
|
+
var n = this, r = [0], i = [], a = [null], o = [], s = this.table, c = "", l = 0, u = 0, d = 0, f = 2, p = 1, m = o.slice.call(arguments, 1), h = Object.create(this.lexer), g = { yy: {} };
|
|
1334
|
+
for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
|
|
1335
|
+
h.setInput(t, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
|
|
1336
|
+
var v = h.yylloc;
|
|
1337
|
+
o.push(v);
|
|
1338
|
+
var y = h.options && h.options.ranges;
|
|
1339
|
+
typeof g.yy.parseError == "function" ? this.parseError = g.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
1340
|
+
function b(e) {
|
|
1341
|
+
r.length -= 2 * e, a.length -= e, o.length -= e;
|
|
1342
|
+
}
|
|
1343
|
+
e(b, "popStack");
|
|
1344
|
+
function x() {
|
|
1345
|
+
var e = i.pop() || h.lex() || p;
|
|
1346
|
+
return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = n.symbols_[e] || e), e;
|
|
1347
|
+
}
|
|
1348
|
+
e(x, "lex");
|
|
1349
|
+
for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
|
|
1350
|
+
if (w = r[r.length - 1], this.defaultActions[w] ? T = this.defaultActions[w] : (S ??= x(), T = s[w] && s[w][S]), T === void 0 || !T.length || !T[0]) {
|
|
1351
|
+
var M = "";
|
|
1352
|
+
for (O in j = [], s[w]) this.terminals_[O] && O > f && j.push("'" + this.terminals_[O] + "'");
|
|
1353
|
+
M = h.showPosition ? "Parse error on line " + (l + 1) + ":\n" + h.showPosition() + "\nExpecting " + j.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : "Parse error on line " + (l + 1) + ": Unexpected " + (S == p ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(M, {
|
|
1354
|
+
text: h.match,
|
|
1355
|
+
token: this.terminals_[S] || S,
|
|
1356
|
+
line: h.yylineno,
|
|
1357
|
+
loc: v,
|
|
1358
|
+
expected: j
|
|
1359
|
+
});
|
|
1360
|
+
}
|
|
1361
|
+
if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
|
|
1362
|
+
switch (T[0]) {
|
|
1363
|
+
case 1:
|
|
1364
|
+
r.push(S), a.push(h.yytext), o.push(h.yylloc), r.push(T[1]), S = null, C ? (S = C, C = null) : (u = h.yyleng, c = h.yytext, l = h.yylineno, v = h.yylloc, d > 0 && d--);
|
|
1365
|
+
break;
|
|
1366
|
+
case 2:
|
|
1367
|
+
if (k = this.productions_[T[1]][1], D.$ = a[a.length - k], D._$ = {
|
|
1368
|
+
first_line: o[o.length - (k || 1)].first_line,
|
|
1369
|
+
last_line: o[o.length - 1].last_line,
|
|
1370
|
+
first_column: o[o.length - (k || 1)].first_column,
|
|
1371
|
+
last_column: o[o.length - 1].last_column
|
|
1372
|
+
}, y && (D._$.range = [o[o.length - (k || 1)].range[0], o[o.length - 1].range[1]]), E = this.performAction.apply(D, [
|
|
1373
|
+
c,
|
|
1374
|
+
u,
|
|
1375
|
+
l,
|
|
1376
|
+
g.yy,
|
|
1377
|
+
T[1],
|
|
1378
|
+
a,
|
|
1379
|
+
o
|
|
1380
|
+
].concat(m)), E !== void 0) return E;
|
|
1381
|
+
k && (r = r.slice(0, -1 * k * 2), a = a.slice(0, -1 * k), o = o.slice(0, -1 * k)), r.push(this.productions_[T[1]][0]), a.push(D.$), o.push(D._$), A = s[r[r.length - 2]][r[r.length - 1]], r.push(A);
|
|
1382
|
+
break;
|
|
1383
|
+
case 3: return !0;
|
|
1384
|
+
}
|
|
1385
|
+
}
|
|
1386
|
+
return !0;
|
|
1387
|
+
}, "parse")
|
|
1388
|
+
};
|
|
1389
|
+
g.lexer = /* @__PURE__ */ (function() {
|
|
1390
|
+
return {
|
|
1391
|
+
EOF: 1,
|
|
1392
|
+
parseError: /* @__PURE__ */ e(function(e, t) {
|
|
1393
|
+
if (this.yy.parser) this.yy.parser.parseError(e, t);
|
|
1394
|
+
else throw Error(e);
|
|
1395
|
+
}, "parseError"),
|
|
1396
|
+
setInput: /* @__PURE__ */ e(function(e, t) {
|
|
1397
|
+
return this.yy = t || this.yy || {}, this._input = e, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
1398
|
+
first_line: 1,
|
|
1399
|
+
first_column: 0,
|
|
1400
|
+
last_line: 1,
|
|
1401
|
+
last_column: 0
|
|
1402
|
+
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
1403
|
+
}, "setInput"),
|
|
1404
|
+
input: /* @__PURE__ */ e(function() {
|
|
1405
|
+
var e = this._input[0];
|
|
1406
|
+
return this.yytext += e, this.yyleng++, this.offset++, this.match += e, this.matched += e, e.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), e;
|
|
1407
|
+
}, "input"),
|
|
1408
|
+
unput: /* @__PURE__ */ e(function(e) {
|
|
1409
|
+
var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
|
|
1410
|
+
this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
|
|
1411
|
+
var r = this.match.split(/(?:\r\n?|\n)/g);
|
|
1412
|
+
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), n.length - 1 && (this.yylineno -= n.length - 1);
|
|
1413
|
+
var i = this.yylloc.range;
|
|
1414
|
+
return this.yylloc = {
|
|
1415
|
+
first_line: this.yylloc.first_line,
|
|
1416
|
+
last_line: this.yylineno + 1,
|
|
1417
|
+
first_column: this.yylloc.first_column,
|
|
1418
|
+
last_column: n ? (n.length === r.length ? this.yylloc.first_column : 0) + r[r.length - n.length].length - n[0].length : this.yylloc.first_column - t
|
|
1419
|
+
}, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
|
|
1420
|
+
}, "unput"),
|
|
1421
|
+
more: /* @__PURE__ */ e(function() {
|
|
1422
|
+
return this._more = !0, this;
|
|
1423
|
+
}, "more"),
|
|
1424
|
+
reject: /* @__PURE__ */ e(function() {
|
|
1425
|
+
if (this.options.backtrack_lexer) this._backtrack = !0;
|
|
1426
|
+
else return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n" + this.showPosition(), {
|
|
1427
|
+
text: "",
|
|
1428
|
+
token: null,
|
|
1429
|
+
line: this.yylineno
|
|
1430
|
+
});
|
|
1431
|
+
return this;
|
|
1432
|
+
}, "reject"),
|
|
1433
|
+
less: /* @__PURE__ */ e(function(e) {
|
|
1434
|
+
this.unput(this.match.slice(e));
|
|
1435
|
+
}, "less"),
|
|
1436
|
+
pastInput: /* @__PURE__ */ e(function() {
|
|
1437
|
+
var e = this.matched.substr(0, this.matched.length - this.match.length);
|
|
1438
|
+
return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
|
|
1439
|
+
}, "pastInput"),
|
|
1440
|
+
upcomingInput: /* @__PURE__ */ e(function() {
|
|
1441
|
+
var e = this.match;
|
|
1442
|
+
return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
1443
|
+
}, "upcomingInput"),
|
|
1444
|
+
showPosition: /* @__PURE__ */ e(function() {
|
|
1445
|
+
var e = this.pastInput(), t = Array(e.length + 1).join("-");
|
|
1446
|
+
return e + this.upcomingInput() + "\n" + t + "^";
|
|
1447
|
+
}, "showPosition"),
|
|
1448
|
+
test_match: /* @__PURE__ */ e(function(e, t) {
|
|
1449
|
+
var n, r, i;
|
|
1450
|
+
if (this.options.backtrack_lexer && (i = {
|
|
1451
|
+
yylineno: this.yylineno,
|
|
1452
|
+
yylloc: {
|
|
1453
|
+
first_line: this.yylloc.first_line,
|
|
1454
|
+
last_line: this.last_line,
|
|
1455
|
+
first_column: this.yylloc.first_column,
|
|
1456
|
+
last_column: this.yylloc.last_column
|
|
1457
|
+
},
|
|
1458
|
+
yytext: this.yytext,
|
|
1459
|
+
match: this.match,
|
|
1460
|
+
matches: this.matches,
|
|
1461
|
+
matched: this.matched,
|
|
1462
|
+
yyleng: this.yyleng,
|
|
1463
|
+
offset: this.offset,
|
|
1464
|
+
_more: this._more,
|
|
1465
|
+
_input: this._input,
|
|
1466
|
+
yy: this.yy,
|
|
1467
|
+
conditionStack: this.conditionStack.slice(0),
|
|
1468
|
+
done: this.done
|
|
1469
|
+
}, this.options.ranges && (i.yylloc.range = this.yylloc.range.slice(0))), r = e[0].match(/(?:\r\n?|\n).*/g), r && (this.yylineno += r.length), this.yylloc = {
|
|
1470
|
+
first_line: this.yylloc.last_line,
|
|
1471
|
+
last_line: this.yylineno + 1,
|
|
1472
|
+
first_column: this.yylloc.last_column,
|
|
1473
|
+
last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
|
|
1474
|
+
}, this.yytext += e[0], this.match += e[0], this.matches = e, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(e[0].length), this.matched += e[0], n = this.performAction.call(this, this.yy, this, t, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), n) return n;
|
|
1475
|
+
if (this._backtrack) {
|
|
1476
|
+
for (var a in i) this[a] = i[a];
|
|
1477
|
+
return !1;
|
|
1478
|
+
}
|
|
1479
|
+
return !1;
|
|
1480
|
+
}, "test_match"),
|
|
1481
|
+
next: /* @__PURE__ */ e(function() {
|
|
1482
|
+
if (this.done) return this.EOF;
|
|
1483
|
+
this._input || (this.done = !0);
|
|
1484
|
+
var e, t, n, r;
|
|
1485
|
+
this._more || (this.yytext = "", this.match = "");
|
|
1486
|
+
for (var i = this._currentRules(), a = 0; a < i.length; a++) if (n = this._input.match(this.rules[i[a]]), n && (!t || n[0].length > t[0].length)) {
|
|
1487
|
+
if (t = n, r = a, this.options.backtrack_lexer) {
|
|
1488
|
+
if (e = this.test_match(n, i[a]), e !== !1) return e;
|
|
1489
|
+
if (this._backtrack) {
|
|
1490
|
+
t = !1;
|
|
1491
|
+
continue;
|
|
1492
|
+
} else return !1;
|
|
1493
|
+
} else if (!this.options.flex) break;
|
|
1494
|
+
}
|
|
1495
|
+
return t ? (e = this.test_match(t, i[r]), e === !1 ? !1 : e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
|
|
1496
|
+
text: "",
|
|
1497
|
+
token: null,
|
|
1498
|
+
line: this.yylineno
|
|
1499
|
+
});
|
|
1500
|
+
}, "next"),
|
|
1501
|
+
lex: /* @__PURE__ */ e(function() {
|
|
1502
|
+
return this.next() || this.lex();
|
|
1503
|
+
}, "lex"),
|
|
1504
|
+
begin: /* @__PURE__ */ e(function(e) {
|
|
1505
|
+
this.conditionStack.push(e);
|
|
1506
|
+
}, "begin"),
|
|
1507
|
+
popState: /* @__PURE__ */ e(function() {
|
|
1508
|
+
return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
1509
|
+
}, "popState"),
|
|
1510
|
+
_currentRules: /* @__PURE__ */ e(function() {
|
|
1511
|
+
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
1512
|
+
}, "_currentRules"),
|
|
1513
|
+
topState: /* @__PURE__ */ e(function(e) {
|
|
1514
|
+
return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
|
|
1515
|
+
}, "topState"),
|
|
1516
|
+
pushState: /* @__PURE__ */ e(function(e) {
|
|
1517
|
+
this.begin(e);
|
|
1518
|
+
}, "pushState"),
|
|
1519
|
+
stateStackSize: /* @__PURE__ */ e(function() {
|
|
1520
|
+
return this.conditionStack.length;
|
|
1521
|
+
}, "stateStackSize"),
|
|
1522
|
+
options: { "case-insensitive": !0 },
|
|
1523
|
+
performAction: /* @__PURE__ */ e(function(e, t, n, r) {
|
|
1524
|
+
switch (n) {
|
|
1525
|
+
case 0: break;
|
|
1526
|
+
case 1: break;
|
|
1527
|
+
case 2: break;
|
|
1528
|
+
case 3:
|
|
1529
|
+
if (e.getIndentMode && e.getIndentMode()) return e.consumeIndentText = !0, this.begin("INITIAL"), 22;
|
|
1530
|
+
break;
|
|
1531
|
+
case 4: break;
|
|
1532
|
+
case 5:
|
|
1533
|
+
e.setIndentMode && e.setIndentMode(!1), this.begin("INITIAL"), this.unput(t.yytext);
|
|
1534
|
+
break;
|
|
1535
|
+
case 6: return this.begin("bol"), 8;
|
|
1536
|
+
case 7: break;
|
|
1537
|
+
case 8: break;
|
|
1538
|
+
case 9: return 7;
|
|
1539
|
+
case 10: return 11;
|
|
1540
|
+
case 11: return 5;
|
|
1541
|
+
case 12: return 12;
|
|
1542
|
+
case 13: return 17;
|
|
1543
|
+
case 14:
|
|
1544
|
+
if (e.consumeIndentText) e.consumeIndentText = !1;
|
|
1545
|
+
else return 19;
|
|
1546
|
+
break;
|
|
1547
|
+
case 15: return 24;
|
|
1548
|
+
case 16: return t.yytext = t.yytext.slice(2, -2), 14;
|
|
1549
|
+
case 17: return t.yytext = t.yytext.slice(1, -1).trim(), 14;
|
|
1550
|
+
case 18: return 16;
|
|
1551
|
+
case 19: return 31;
|
|
1552
|
+
case 20: return 33;
|
|
1553
|
+
case 21: return 32;
|
|
1554
|
+
case 22: return 20;
|
|
1555
|
+
case 23: return 21;
|
|
1556
|
+
case 24: return 27;
|
|
1557
|
+
case 25: return 15;
|
|
1558
|
+
}
|
|
1559
|
+
}, "anonymous"),
|
|
1560
|
+
rules: [
|
|
1561
|
+
/^(?:%%(?!\{)[^\n]*)/i,
|
|
1562
|
+
/^(?:[^\}]%%[^\n]*)/i,
|
|
1563
|
+
/^(?:[ \t]+(?=[\n\r]))/i,
|
|
1564
|
+
/^(?:[ \t]+(?=text\b))/i,
|
|
1565
|
+
/^(?:[ \t]+)/i,
|
|
1566
|
+
/^(?:[^ \t\n\r])/i,
|
|
1567
|
+
/^(?:[\n\r]+)/i,
|
|
1568
|
+
/^(?:%%[^\n]*)/i,
|
|
1569
|
+
/^(?:[ \t]+)/i,
|
|
1570
|
+
/^(?:$)/i,
|
|
1571
|
+
/^(?:title\s[^#\n;]+)/i,
|
|
1572
|
+
/^(?:venn-beta\b)/i,
|
|
1573
|
+
/^(?:set\b)/i,
|
|
1574
|
+
/^(?:union\b)/i,
|
|
1575
|
+
/^(?:text\b)/i,
|
|
1576
|
+
/^(?:style\b)/i,
|
|
1577
|
+
/^(?:\["[^\"]*"\])/i,
|
|
1578
|
+
/^(?:\[[^\]\"]+\])/i,
|
|
1579
|
+
/^(?:[+-]?(\d+(\.\d+)?|\.\d+))/i,
|
|
1580
|
+
/^(?:#[0-9a-fA-F]{3,8})/i,
|
|
1581
|
+
/^(?:rgba\(\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*\))/i,
|
|
1582
|
+
/^(?:rgb\(\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*\))/i,
|
|
1583
|
+
/^(?:[A-Za-z_][A-Za-z0-9\-_]*)/i,
|
|
1584
|
+
/^(?:"[^\"]*")/i,
|
|
1585
|
+
/^(?:,)/i,
|
|
1586
|
+
/^(?::)/i
|
|
1587
|
+
],
|
|
1588
|
+
conditions: {
|
|
1589
|
+
bol: {
|
|
1590
|
+
rules: [
|
|
1591
|
+
0,
|
|
1592
|
+
1,
|
|
1593
|
+
2,
|
|
1594
|
+
3,
|
|
1595
|
+
4,
|
|
1596
|
+
5,
|
|
1597
|
+
6,
|
|
1598
|
+
7,
|
|
1599
|
+
8,
|
|
1600
|
+
9,
|
|
1601
|
+
10,
|
|
1602
|
+
11,
|
|
1603
|
+
12,
|
|
1604
|
+
13,
|
|
1605
|
+
14,
|
|
1606
|
+
15,
|
|
1607
|
+
16,
|
|
1608
|
+
17,
|
|
1609
|
+
18,
|
|
1610
|
+
19,
|
|
1611
|
+
20,
|
|
1612
|
+
21,
|
|
1613
|
+
22,
|
|
1614
|
+
23,
|
|
1615
|
+
24,
|
|
1616
|
+
25
|
|
1617
|
+
],
|
|
1618
|
+
inclusive: !0
|
|
1619
|
+
},
|
|
1620
|
+
INITIAL: {
|
|
1621
|
+
rules: [
|
|
1622
|
+
0,
|
|
1623
|
+
1,
|
|
1624
|
+
6,
|
|
1625
|
+
7,
|
|
1626
|
+
8,
|
|
1627
|
+
9,
|
|
1628
|
+
10,
|
|
1629
|
+
11,
|
|
1630
|
+
12,
|
|
1631
|
+
13,
|
|
1632
|
+
14,
|
|
1633
|
+
15,
|
|
1634
|
+
16,
|
|
1635
|
+
17,
|
|
1636
|
+
18,
|
|
1637
|
+
19,
|
|
1638
|
+
20,
|
|
1639
|
+
21,
|
|
1640
|
+
22,
|
|
1641
|
+
23,
|
|
1642
|
+
24,
|
|
1643
|
+
25
|
|
1644
|
+
],
|
|
1645
|
+
inclusive: !0
|
|
1646
|
+
}
|
|
1647
|
+
}
|
|
1648
|
+
};
|
|
1649
|
+
})();
|
|
1650
|
+
function _() {
|
|
1651
|
+
this.yy = {};
|
|
1652
|
+
}
|
|
1653
|
+
return e(_, "Parser"), _.prototype = g, g.Parser = _, new _();
|
|
1654
|
+
})();
|
|
1655
|
+
U.parser = U;
|
|
1656
|
+
var Ee = U, W = [], G = [], K = [], q = /* @__PURE__ */ new Set(), J, Y = !1, De = /* @__PURE__ */ e((e, t, n) => {
|
|
1657
|
+
let r = Z(e).sort(), i = n ?? 10 / e.length ** 2;
|
|
1658
|
+
J = r, r.length === 1 && q.add(r[0]), W.push({
|
|
1659
|
+
sets: r,
|
|
1660
|
+
size: i,
|
|
1661
|
+
label: t ? X(t) : void 0
|
|
1662
|
+
});
|
|
1663
|
+
}, "addSubsetData"), Oe = /* @__PURE__ */ e(() => W, "getSubsetData"), X = /* @__PURE__ */ e((e) => {
|
|
1664
|
+
let t = e.trim();
|
|
1665
|
+
return t.length >= 2 && t.startsWith("\"") && t.endsWith("\"") ? t.slice(1, -1) : t;
|
|
1666
|
+
}, "normalizeText"), ke = /* @__PURE__ */ e((e) => e && X(e), "normalizeStyleValue"), Ae = /* @__PURE__ */ e((e, t, n) => {
|
|
1667
|
+
let r = X(t);
|
|
1668
|
+
G.push({
|
|
1669
|
+
sets: Z(e).sort(),
|
|
1670
|
+
id: r,
|
|
1671
|
+
label: n ? X(n) : void 0
|
|
1672
|
+
});
|
|
1673
|
+
}, "addTextData"), je = /* @__PURE__ */ e((e, t) => {
|
|
1674
|
+
let n = Z(e).sort(), r = {};
|
|
1675
|
+
for (let [e, n] of t) r[e] = ke(n) ?? n;
|
|
1676
|
+
K.push({
|
|
1677
|
+
targets: n,
|
|
1678
|
+
styles: r
|
|
1679
|
+
});
|
|
1680
|
+
}, "addStyleData"), Me = /* @__PURE__ */ e(() => K, "getStyleData"), Z = /* @__PURE__ */ e((e) => e.map((e) => X(e)), "normalizeIdentifierList"), Ne = /* @__PURE__ */ e((e) => {
|
|
1681
|
+
let t = Z(e).filter((e) => !q.has(e));
|
|
1682
|
+
if (t.length > 0) throw Error(`unknown set identifier: ${t.join(", ")}`);
|
|
1683
|
+
}, "validateUnionIdentifiers"), Pe = /* @__PURE__ */ e(() => G, "getTextData"), Fe = /* @__PURE__ */ e(() => J, "getCurrentSets"), Ie = /* @__PURE__ */ e(() => Y, "getIndentMode"), Le = /* @__PURE__ */ e((e) => {
|
|
1684
|
+
Y = e;
|
|
1685
|
+
}, "setIndentMode"), Re = d.venn;
|
|
1686
|
+
function ze() {
|
|
1687
|
+
return g(Re, h().venn);
|
|
1688
|
+
}
|
|
1689
|
+
e(ze, "getConfig");
|
|
1690
|
+
var Be = {
|
|
1691
|
+
getConfig: ze,
|
|
1692
|
+
clear: /* @__PURE__ */ e(() => {
|
|
1693
|
+
l(), W.length = 0, G.length = 0, K.length = 0, q.clear(), J = void 0, Y = !1;
|
|
1694
|
+
}, "customClear"),
|
|
1695
|
+
setAccTitle: o,
|
|
1696
|
+
getAccTitle: m,
|
|
1697
|
+
setDiagramTitle: s,
|
|
1698
|
+
getDiagramTitle: i,
|
|
1699
|
+
getAccDescription: c,
|
|
1700
|
+
setAccDescription: r,
|
|
1701
|
+
addSubsetData: De,
|
|
1702
|
+
getSubsetData: Oe,
|
|
1703
|
+
addTextData: Ae,
|
|
1704
|
+
addStyleData: je,
|
|
1705
|
+
validateUnionIdentifiers: Ne,
|
|
1706
|
+
getTextData: Pe,
|
|
1707
|
+
getStyleData: Me,
|
|
1708
|
+
getCurrentSets: Fe,
|
|
1709
|
+
getIndentMode: Ie,
|
|
1710
|
+
setIndentMode: Le
|
|
1711
|
+
}, Ve = /* @__PURE__ */ e((e) => `
|
|
1712
|
+
.venn-title {
|
|
1713
|
+
font-size: 32px;
|
|
1714
|
+
fill: ${e.vennTitleTextColor};
|
|
1715
|
+
font-family: ${e.fontFamily};
|
|
1716
|
+
}
|
|
1717
|
+
|
|
1718
|
+
.venn-circle text {
|
|
1719
|
+
font-size: 48px;
|
|
1720
|
+
font-family: ${e.fontFamily};
|
|
1721
|
+
}
|
|
1722
|
+
|
|
1723
|
+
.venn-intersection text {
|
|
1724
|
+
font-size: 48px;
|
|
1725
|
+
fill: ${e.vennSetTextColor};
|
|
1726
|
+
font-family: ${e.fontFamily};
|
|
1727
|
+
}
|
|
1728
|
+
|
|
1729
|
+
.venn-text-node {
|
|
1730
|
+
font-family: ${e.fontFamily};
|
|
1731
|
+
color: ${e.vennSetTextColor};
|
|
1732
|
+
}
|
|
1733
|
+
`, "getStyles");
|
|
1734
|
+
function He(e) {
|
|
1735
|
+
let t = /* @__PURE__ */ new Map();
|
|
1736
|
+
for (let n of e) {
|
|
1737
|
+
let e = n.targets.join("|"), r = t.get(e);
|
|
1738
|
+
r ? Object.assign(r, n.styles) : t.set(e, { ...n.styles });
|
|
1739
|
+
}
|
|
1740
|
+
return t;
|
|
1741
|
+
}
|
|
1742
|
+
e(He, "buildStyleByKey");
|
|
1743
|
+
var Ue = /* @__PURE__ */ e((e, r, i, o) => {
|
|
1744
|
+
let s = o.db, c = s.getConfig?.(), { themeVariables: l, look: d, handDrawnSeed: f } = h(), m = d === "handDrawn", g = [
|
|
1745
|
+
l.venn1,
|
|
1746
|
+
l.venn2,
|
|
1747
|
+
l.venn3,
|
|
1748
|
+
l.venn4,
|
|
1749
|
+
l.venn5,
|
|
1750
|
+
l.venn6,
|
|
1751
|
+
l.venn7,
|
|
1752
|
+
l.venn8
|
|
1753
|
+
].filter(Boolean), b = s.getDiagramTitle?.(), x = s.getSubsetData(), S = s.getTextData(), C = He(s.getStyleData()), w = c?.width ?? 800, T = c?.height ?? 450, E = w / 1600, D = b ? 48 * E : 0, O = l.primaryTextColor ?? l.textColor, k = _(r);
|
|
1754
|
+
k.attr("viewBox", `0 0 ${w} ${T}`), b && k.append("text").text(b).attr("class", "venn-title").attr("font-size", `${32 * E}px`).attr("text-anchor", "middle").attr("dominant-baseline", "middle").attr("x", "50%").attr("y", 32 * E).style("fill", l.vennTitleTextColor || l.titleColor);
|
|
1755
|
+
let A = t(document.createElement("div")), j = ge().width(w).height(T - D);
|
|
1756
|
+
A.datum(x).call(j);
|
|
1757
|
+
let M = m ? v.svg(A.select("svg").node()) : void 0, N = Te(x, {
|
|
1758
|
+
width: w,
|
|
1759
|
+
height: T - D,
|
|
1760
|
+
padding: c?.padding ?? 15
|
|
1761
|
+
}), P = /* @__PURE__ */ new Map();
|
|
1762
|
+
for (let e of N) {
|
|
1763
|
+
let t = Q([...e.data.sets].sort());
|
|
1764
|
+
P.set(t, e);
|
|
1765
|
+
}
|
|
1766
|
+
S.length > 0 && $(c, P, A, S, E, C);
|
|
1767
|
+
let F = p(l.background || "#f4f4f4");
|
|
1768
|
+
A.selectAll(".venn-circle").each(function(e, r) {
|
|
1769
|
+
let i = t(this), o = Q([...e.sets].sort()), s = C.get(o), c = s?.fill || g[r % g.length] || l.primaryColor;
|
|
1770
|
+
i.classed(`venn-set-${r % 8}`, !0);
|
|
1771
|
+
let u = s?.["fill-opacity"] ?? .1, d = s?.stroke || c, p = s?.["stroke-width"] || `${5 * E}`;
|
|
1772
|
+
if (m && M) {
|
|
1773
|
+
let e = P.get(o);
|
|
1774
|
+
if (e && e.circles.length > 0) {
|
|
1775
|
+
let t = e.circles[0], n = M.circle(t.x, t.y, t.radius * 2, {
|
|
1776
|
+
roughness: .7,
|
|
1777
|
+
seed: f,
|
|
1778
|
+
fill: y(c, .7),
|
|
1779
|
+
fillStyle: "hachure",
|
|
1780
|
+
fillWeight: 2,
|
|
1781
|
+
hachureGap: 8,
|
|
1782
|
+
hachureAngle: -41 + r * 60,
|
|
1783
|
+
stroke: d,
|
|
1784
|
+
strokeWidth: parseFloat(String(p))
|
|
1785
|
+
});
|
|
1786
|
+
i.select("path").remove(), i.node()?.insertBefore(n, i.select("text").node());
|
|
1787
|
+
}
|
|
1788
|
+
} else i.select("path").style("fill", c).style("fill-opacity", u).style("stroke", d).style("stroke-width", p).style("stroke-opacity", .95);
|
|
1789
|
+
let h = s?.color || (F ? n(c, 30) : a(c, 30));
|
|
1790
|
+
i.select("text").style("font-size", `${48 * E}px`).style("fill", h);
|
|
1791
|
+
}), m && M ? A.selectAll(".venn-intersection").each(function(e) {
|
|
1792
|
+
let n = t(this), r = Q([...e.sets].sort()), i = C.get(r), a = i?.fill;
|
|
1793
|
+
if (a) {
|
|
1794
|
+
let e = n.select("path"), t = e.attr("d");
|
|
1795
|
+
if (t) {
|
|
1796
|
+
let n = M.path(t, {
|
|
1797
|
+
roughness: .7,
|
|
1798
|
+
seed: f,
|
|
1799
|
+
fill: y(a, .3),
|
|
1800
|
+
fillStyle: "cross-hatch",
|
|
1801
|
+
fillWeight: 2,
|
|
1802
|
+
hachureGap: 6,
|
|
1803
|
+
hachureAngle: 60,
|
|
1804
|
+
stroke: "none"
|
|
1805
|
+
}), r = e.node();
|
|
1806
|
+
r?.parentNode?.insertBefore(n, r), e.remove();
|
|
1807
|
+
}
|
|
1808
|
+
} else n.select("path").style("fill-opacity", 0);
|
|
1809
|
+
n.select("text").style("font-size", `${48 * E}px`).style("fill", i?.color ?? l.vennSetTextColor ?? O);
|
|
1810
|
+
}) : (A.selectAll(".venn-intersection text").style("font-size", `${48 * E}px`).style("fill", (e) => {
|
|
1811
|
+
let t = Q([...e.sets].sort());
|
|
1812
|
+
return C.get(t)?.color ?? l.vennSetTextColor ?? O;
|
|
1813
|
+
}), A.selectAll(".venn-intersection path").style("fill-opacity", (e) => {
|
|
1814
|
+
let t = Q([...e.sets].sort());
|
|
1815
|
+
return C.get(t)?.fill ? 1 : 0;
|
|
1816
|
+
}).style("fill", (e) => {
|
|
1817
|
+
let t = Q([...e.sets].sort());
|
|
1818
|
+
return C.get(t)?.fill ?? "transparent";
|
|
1819
|
+
}));
|
|
1820
|
+
let I = k.append("g").attr("transform", `translate(0, ${D})`), L = A.select("svg").node();
|
|
1821
|
+
if (L && "childNodes" in L) for (let e of [...L.childNodes]) I.node()?.appendChild(e);
|
|
1822
|
+
u(k, T, w, c?.useMaxWidth ?? !0);
|
|
1823
|
+
}, "draw");
|
|
1824
|
+
function Q(e) {
|
|
1825
|
+
return e.join("|");
|
|
1826
|
+
}
|
|
1827
|
+
e(Q, "stableSetsKey");
|
|
1828
|
+
function $(e, t, n, r, i, a) {
|
|
1829
|
+
let o = e?.useDebugLayout ?? !1, s = n.select("svg").append("g").attr("class", "venn-text-nodes"), c = /* @__PURE__ */ new Map();
|
|
1830
|
+
for (let e of r) {
|
|
1831
|
+
let t = Q(e.sets), n = c.get(t);
|
|
1832
|
+
n ? n.push(e) : c.set(t, [e]);
|
|
1833
|
+
}
|
|
1834
|
+
for (let [e, n] of c.entries()) {
|
|
1835
|
+
let r = t.get(e);
|
|
1836
|
+
if (!r?.text) continue;
|
|
1837
|
+
let c = r.text.x, l = r.text.y, u = Math.min(...r.circles.map((e) => e.radius)), d = Math.min(...r.circles.map((e) => e.radius - Math.hypot(c - e.x, l - e.y))), f = Number.isFinite(d) ? Math.max(0, d) : 0;
|
|
1838
|
+
f === 0 && Number.isFinite(u) && (f = u * .6);
|
|
1839
|
+
let p = s.append("g").attr("class", "venn-text-area").attr("font-size", `${40 * i}px`);
|
|
1840
|
+
o && p.append("circle").attr("class", "venn-text-debug-circle").attr("cx", c).attr("cy", l).attr("r", f).attr("fill", "none").attr("stroke", "purple").attr("stroke-width", 1.5 * i).attr("stroke-dasharray", `${6 * i} ${4 * i}`);
|
|
1841
|
+
let m = Math.max(80 * i, f * 2 * .95), h = Math.max(60 * i, f * 2 * .95), g = (r.data.label && r.data.label.length > 0 ? Math.min(32 * i, f * .25) : 0) + (n.length <= 2 ? 30 * i : 0), _ = c - m / 2, v = l - h / 2 + g, y = Math.max(1, Math.ceil(Math.sqrt(n.length))), b = Math.max(1, Math.ceil(n.length / y)), x = m / y, S = h / b;
|
|
1842
|
+
for (let [e, t] of n.entries()) {
|
|
1843
|
+
let n = e % y, r = Math.floor(e / y), s = _ + x * (n + .5), c = v + S * (r + .5);
|
|
1844
|
+
o && p.append("rect").attr("class", "venn-text-debug-cell").attr("x", _ + x * n).attr("y", v + S * r).attr("width", x).attr("height", S).attr("fill", "none").attr("stroke", "teal").attr("stroke-width", 1 * i).attr("stroke-dasharray", `${4 * i} ${3 * i}`);
|
|
1845
|
+
let l = x * .9, u = S * .9, d = p.append("foreignObject").attr("class", "venn-text-node-fo").attr("width", l).attr("height", u).attr("x", s - l / 2).attr("y", c - u / 2).attr("overflow", "visible"), f = a.get(t.id)?.color, m = d.append("xhtml:span").attr("class", "venn-text-node").style("display", "flex").style("width", "100%").style("height", "100%").style("white-space", "normal").style("align-items", "center").style("justify-content", "center").style("text-align", "center").style("overflow-wrap", "normal").style("word-break", "normal").text(t.label ?? t.id);
|
|
1846
|
+
f && m.style("color", f);
|
|
1847
|
+
}
|
|
1848
|
+
}
|
|
1849
|
+
}
|
|
1850
|
+
e($, "renderTextNodes");
|
|
1851
|
+
var We = {
|
|
1852
|
+
parser: Ee,
|
|
1853
|
+
db: Be,
|
|
1854
|
+
renderer: { draw: Ue },
|
|
1855
|
+
styles: Ve
|
|
1856
|
+
};
|
|
1857
|
+
//#endregion
|
|
1858
|
+
export { We as diagram };
|
|
1859
|
+
|
|
1860
|
+
//# sourceMappingURL=vennDiagram-LZ73GAT5-BSpVMORX.js.map
|