ttnn-visualizer 0.25.0__py3-none-any.whl → 0.25.1__py3-none-any.whl
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.
- ttnn_visualizer/static/assets/{allPaths-DCydHV9G.js → allPaths-BsZhgQ3T.js} +1 -1
- ttnn_visualizer/static/assets/{allPathsLoader-XdAstF0k.js → allPathsLoader-DgFQ6cmn.js} +2 -2
- ttnn_visualizer/static/assets/{index-D0kD885Y.js → index-Fd4wdmZt.js} +3 -3
- ttnn_visualizer/static/assets/{splitPathsBySizeLoader-B81xALt1.js → splitPathsBySizeLoader-BFDp4kIf.js} +1 -1
- ttnn_visualizer/static/index.html +1 -1
- {ttnn_visualizer-0.25.0.dist-info → ttnn_visualizer-0.25.1.dist-info}/METADATA +1 -1
- {ttnn_visualizer-0.25.0.dist-info → ttnn_visualizer-0.25.1.dist-info}/RECORD +12 -12
- {ttnn_visualizer-0.25.0.dist-info → ttnn_visualizer-0.25.1.dist-info}/LICENSE +0 -0
- {ttnn_visualizer-0.25.0.dist-info → ttnn_visualizer-0.25.1.dist-info}/LICENSE_understanding.txt +0 -0
- {ttnn_visualizer-0.25.0.dist-info → ttnn_visualizer-0.25.1.dist-info}/WHEEL +0 -0
- {ttnn_visualizer-0.25.0.dist-info → ttnn_visualizer-0.25.1.dist-info}/entry_points.txt +0 -0
- {ttnn_visualizer-0.25.0.dist-info → ttnn_visualizer-0.25.1.dist-info}/top_level.txt +0 -0
@@ -69,7 +69,7 @@ Error generating stack: `+l.message+`
|
|
69
69
|
Copyright (c) 2018 Jed Watson.
|
70
70
|
Licensed under the MIT License (MIT), see
|
71
71
|
http://jedwatson.github.io/classnames
|
72
|
-
*/(function(t){(function(){var r={}.hasOwnProperty;function e(){for(var l="",o=0;o<arguments.length;o++){var f=arguments[o];f&&(l=a(l,n(f)))}return l}function n(l){if(typeof l=="string"||typeof l=="number")return l;if(typeof l!="object")return"";if(Array.isArray(l))return e.apply(null,l);if(l.toString!==Object.prototype.toString&&!l.toString.toString().includes("[native code]"))return l.toString();var o="";for(var f in l)r.call(l,f)&&l[f]&&(o=a(o,f));return o}function a(l,o){return o?l?l+" "+o:l+o:l}t.exports?(e.default=e,t.exports=e):window.classNames=e})()})(Hhe);var i4e=Hhe.exports;const Di=ny(i4e);function jhe(t,r){r===void 0&&(r=[]),St.useEffect(function(){Zy("production")||t()},r)}var a4e={defaultTabIndex:void 0,disabledTabIndex:-1};function Vhe(t,r,e,n){n===void 0&&(n=a4e);var a=n.defaultTabIndex,l=n.disabledTabIndex,o=r.active,f=r.onClick,i=r.onFocus,s=r.onKeyDown,d=r.onKeyUp,u=r.onBlur,h=r.tabIndex,y=h===void 0?a:h,b=St.useState(),C=b[0],m=b[1],c=St.useState(!1),v=c[0],g=c[1],p=St.useRef(null),I=St.useCallback(function(E){v&&g(!1),u==null||u(E)},[v,u]),A=St.useCallback(function(E){OT(E)&&(E.preventDefault(),E.key!==C&&g(!0)),m(E.key),s==null||s(E)},[C,s]),_=St.useCallback(function(E){var x;OT(E)&&(g(!1),(x=p.current)===null||x===void 0||x.click()),m(void 0),d==null||d(E)},[d,p]),w=t&&(o||v);return[w,{onBlur:I,onClick:t?f:void 0,onFocus:t?i:void 0,onKeyDown:A,onKeyUp:_,ref:q1(p,e),tabIndex:t?y:l}]}function o4e(t){return t.toLowerCase()}var s4e=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],l4e=/[^A-Z0-9]+/gi;function Ghe(t,r){r===void 0&&(r={});for(var e=r.splitRegexp,n=e===void 0?s4e:e,a=r.stripRegexp,l=a===void 0?l4e:a,o=r.transform,f=o===void 0?o4e:o,i=r.delimiter,s=i===void 0?" ":i,d=NK(NK(t,n,"$1\0$2"),l,"\0"),u=0,h=d.length;d.charAt(u)==="\0";)u++;for(;d.charAt(h-1)==="\0";)h--;return d.slice(u,h).split("\0").map(f).join(s)}function NK(t,r,e){return r instanceof RegExp?t.replace(r,e):r.reduce(function(n,a){return n.replace(a,e)},t)}function u4e(t,r){var e=t.charAt(0),n=t.substr(1).toLowerCase();return r>0&&e>="0"&&e<="9"?"_"+e+n:""+e.toUpperCase()+n}function c4e(t,r){return r===void 0&&(r={}),Ghe(t,qn({delimiter:"",transform:u4e},r))}function f4e(t,r){return r===void 0&&(r={}),Ghe(t,qn({delimiter:"."},r))}function h4e(t,r){return r===void 0&&(r={}),f4e(t,qn({delimiter:"_"},r))}var Na;(function(t){t[t.STANDARD=16]="STANDARD",t[t.LARGE=20]="LARGE"})(Na||(Na={}));const d4e="modulepreload",v4e=function(t){return"/"+t},FK={},zK=function(r,e,n){let a=Promise.resolve();if(e&&e.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),f=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));a=Promise.allSettled(e.map(i=>{if(i=v4e(i),i in FK)return;FK[i]=!0;const s=i.endsWith(".css"),d=s?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${i}"]${d}`))return;const u=document.createElement("link");if(u.rel=s?"stylesheet":d4e,s||(u.as="script"),u.crossOrigin="",u.href=i,f&&u.setAttribute("nonce",f),document.head.appendChild(u),s)return new Promise((h,y)=>{u.addEventListener("load",h),u.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${i}`)))})}))}function l(o){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=o,window.dispatchEvent(f),!f.defaultPrevented)throw o}return a.then(o=>{for(const f of o||[])f.status==="rejected"&&l(f.reason);return r().catch(l)})};var Qt,Kt;(function(t){t.AddClip="add-clip",t.AddColumnLeft="add-column-left",t.AddColumnRight="add-column-right",t.AddLocation="add-location",t.AddRowBottom="add-row-bottom",t.AddRowTop="add-row-top",t.AddToArtifact="add-to-artifact",t.AddToFolder="add-to-folder",t.Add="add",t.AimpointsTarget="aimpoints-target",t.Airplane="airplane",t.AlignCenter="align-center",t.AlignJustify="align-justify",t.AlignLeft="align-left",t.AlignRight="align-right",t.AlignmentBottom="alignment-bottom",t.AlignmentHorizontalCenter="alignment-horizontal-center",t.AlignmentLeft="alignment-left",t.AlignmentRight="alignment-right",t.AlignmentTop="alignment-top",t.AlignmentVerticalCenter="alignment-vertical-center",t.Ammunition="ammunition",t.Anchor="anchor",t.Annotation="annotation",t.Announcement="announcement",t.Antenna="antenna",t.AppHeader="app-header",t.Application="application",t.Applications="applications",t.Archive="archive",t.AreaOfInterest="area-of-interest",t.ArrayBoolean="array-boolean",t.ArrayDate="array-date",t.ArrayFloatingPoint="array-floating-point",t.ArrayNumeric="array-numeric",t.ArrayObject="array-object",t.ArrayString="array-string",t.ArrayTimestamp="array-timestamp",t.Array="array",t.ArrowBottomLeft="arrow-bottom-left",t.ArrowBottomRight="arrow-bottom-right",t.ArrowDown="arrow-down",t.ArrowLeft="arrow-left",t.ArrowRight="arrow-right",t.ArrowTopLeft="arrow-top-left",t.ArrowTopRight="arrow-top-right",t.ArrowUp="arrow-up",t.ArrowsArc="arrows-arc",t.ArrowsHorizontal="arrows-horizontal",t.ArrowsVertical="arrows-vertical",t.Asterisk="asterisk",t.At="at",t.AutomaticUpdates="automatic-updates",t.Axle="axle",t.Backlink="backlink",t.BackwardTen="backward-ten",t.Badge="badge",t.BanCircle="ban-circle",t.BankAccount="bank-account",t.Barcode="barcode",t.BinaryNumber="binary-number",t.Blank="blank",t.BlockPromote="block-promote",t.BlockedPerson="blocked-person",t.Bold="bold",t.Book="book",t.Bookmark="bookmark",t.Box="box",t.Briefcase="briefcase",t.BringData="bring-data",t.BringForward="bring-forward",t.BritishPound="british-pound",t.Bug="bug",t.Buggy="buggy",t.Build="build",t.Bullseye="bullseye",t.Calculator="calculator",t.Calendar="calendar",t.Camera="camera",t.CaretDown="caret-down",t.CaretLeft="caret-left",t.CaretRight="caret-right",t.CaretUp="caret-up",t.CargoShip="cargo-ship",t.CellTower="cell-tower",t.Changes="changes",t.Chart="chart",t.Chat="chat",t.ChevronBackward="chevron-backward",t.ChevronDown="chevron-down",t.ChevronForward="chevron-forward",t.ChevronLeft="chevron-left",t.ChevronRight="chevron-right",t.ChevronUp="chevron-up",t.CircleArrowDown="circle-arrow-down",t.CircleArrowLeft="circle-arrow-left",t.CircleArrowRight="circle-arrow-right",t.CircleArrowUp="circle-arrow-up",t.Circle="circle",t.Citation="citation",t.Clean="clean",t.Clip="clip",t.ClipboardFile="clipboard-file",t.Clipboard="clipboard",t.CloudDownload="cloud-download",t.CloudServer="cloud-server",t.CloudTick="cloud-tick",t.CloudUpload="cloud-upload",t.Cloud="cloud",t.CodeBlock="code-block",t.Code="code",t.Cog="cog",t.CollapseAll="collapse-all",t.ColorFill="color-fill",t.ColumnLayout="column-layout",t.Comment="comment",t.Comparison="comparison",t.Compass="compass",t.Compressed="compressed",t.Confirm="confirm",t.Console="console",t.Construction="construction",t.Contrast="contrast",t.Control="control",t.CreditCard="credit-card",t.Crop="crop",t.CrossCircle="cross-circle",t.Cross="cross",t.Crown="crown",t.CssStyle="css-style",t.CubeAdd="cube-add",t.CubeEdit="cube-edit",t.CubeRemove="cube-remove",t.Cube="cube",t.Cubes="cubes",t.CurlyBraces="curly-braces",t.CurvedRangeChart="curved-range-chart",t.Cut="cut",t.Cycle="cycle",t.Dashboard="dashboard",t.DataCloud="data-cloud",t.DataConnection="data-connection",t.DataLineage="data-lineage",t.DataSearch="data-search",t.DataSync="data-sync",t.Database="database",t.Delete="delete",t.Delta="delta",t.DeriveColumn="derive-column",t.Desktop="desktop",t.Detection="detection",t.Diagnosis="diagnosis",t.DiagramTree="diagram-tree",t.DirectionLeft="direction-left",t.DirectionRight="direction-right",t.Disable="disable",t.Divide="divide",t.DocumentOpen="document-open",t.DocumentShare="document-share",t.Document="document",t.Dollar="dollar",t.Dot="dot",t.DoubleCaretHorizontal="double-caret-horizontal",t.DoubleCaretVertical="double-caret-vertical",t.DoubleChevronDown="double-chevron-down",t.DoubleChevronLeft="double-chevron-left",t.DoubleChevronRight="double-chevron-right",t.DoubleChevronUp="double-chevron-up",t.DoughnutChart="doughnut-chart",t.Download="download",t.DragHandleHorizontal="drag-handle-horizontal",t.DragHandleVertical="drag-handle-vertical",t.Draw="draw",t.DrawerLeftFilled="drawer-left-filled",t.DrawerLeft="drawer-left",t.DrawerRightFilled="drawer-right-filled",t.DrawerRight="drawer-right",t.DriveTime="drive-time",t.Duplicate="duplicate",t.Edit="edit",t.Eject="eject",t.Emoji="emoji",t.Endnote="endnote",t.Endorsed="endorsed",t.Envelope="envelope",t.Equals="equals",t.Eraser="eraser",t.Error="error",t.Euro="euro",t.Excavator="excavator",t.Exchange="exchange",t.ExcludeRow="exclude-row",t.ExpandAll="expand-all",t.Explain="explain",t.Export="export",t.EyeOff="eye-off",t.EyeOn="eye-on",t.EyeOpen="eye-open",t.FastBackward="fast-backward",t.FastForward="fast-forward",t.FeedSubscribed="feed-subscribed",t.Feed="feed",t.FighterJet="fighter-jet",t.Film="film",t.FilterKeep="filter-keep",t.FilterList="filter-list",t.FilterOpen="filter-open",t.FilterRemove="filter-remove",t.FilterSortAsc="filter-sort-asc",t.FilterSortDesc="filter-sort-desc",t.Filter="filter",t.Flag="flag",t.Flame="flame",t.Flash="flash",t.FloatingPoint="floating-point",t.FloppyDisk="floppy-disk",t.FlowBranch="flow-branch",t.FlowEnd="flow-end",t.FlowLinear="flow-linear",t.FlowReviewBranch="flow-review-branch",t.FlowReview="flow-review",t.Flows="flows",t.FolderClose="folder-close",t.FolderNew="folder-new",t.FolderOpen="folder-open",t.FolderSharedOpen="folder-shared-open",t.FolderShared="folder-shared",t.Follower="follower",t.Following="following",t.Font="font",t.Fork="fork",t.Form="form",t.ForwardTen="forward-ten",t.Fuel="fuel",t.FullCircle="full-circle",t.FullStackedChart="full-stacked-chart",t.Fullscreen="fullscreen",t.Function="function",t.GanttChart="gantt-chart",t.Generate="generate",t.Geofence="geofence",t.Geolocation="geolocation",t.Geosearch="geosearch",t.Geotime="geotime",t.GitBranch="git-branch",t.GitCommit="git-commit",t.GitMerge="git-merge",t.GitNewBranch="git-new-branch",t.GitPull="git-pull",t.GitPush="git-push",t.GitRepo="git-repo",t.Glass="glass",t.GlobeNetworkAdd="globe-network-add",t.GlobeNetwork="globe-network",t.Globe="globe",t.GraphRemove="graph-remove",t.Graph="graph",t.GreaterThanOrEqualTo="greater-than-or-equal-to",t.GreaterThan="greater-than",t.GridView="grid-view",t.Grid="grid",t.GroupItem="group-item",t.GroupObjects="group-objects",t.GroupedBarChart="grouped-bar-chart",t.HandDown="hand-down",t.HandLeft="hand-left",t.HandRight="hand-right",t.HandUp="hand-up",t.Hand="hand",t.Hat="hat",t.HeaderOne="header-one",t.HeaderThree="header-three",t.HeaderTwo="header-two",t.Header="header",t.Headset="headset",t.HeartBroken="heart-broken",t.Heart="heart",t.HeatGrid="heat-grid",t.Heatmap="heatmap",t.Helicopter="helicopter",t.Help="help",t.HelperManagement="helper-management",t.Hexagon="hexagon",t.HighPriority="high-priority",t.HighVoltagePole="high-voltage-pole",t.Highlight="highlight",t.History="history",t.Home="home",t.HorizontalBarChartAsc="horizontal-bar-chart-asc",t.HorizontalBarChartDesc="horizontal-bar-chart-desc",t.HorizontalBarChart="horizontal-bar-chart",t.HorizontalDistribution="horizontal-distribution",t.HorizontalInbetween="horizontal-inbetween",t.Hurricane="hurricane",t.IdNumber="id-number",t.ImageRotateLeft="image-rotate-left",t.ImageRotateRight="image-rotate-right",t.Import="import",t.InboxFiltered="inbox-filtered",t.InboxGeo="inbox-geo",t.InboxSearch="inbox-search",t.InboxUpdate="inbox-update",t.Inbox="inbox",t.InfoSign="info-sign",t.Inheritance="inheritance",t.InheritedGroup="inherited-group",t.InnerJoin="inner-join",t.Input="input",t.Insert="insert",t.Intelligence="intelligence",t.Intersection="intersection",t.IpAddress="ip-address",t.IssueClosed="issue-closed",t.IssueNew="issue-new",t.Issue="issue",t.Italic="italic",t.JoinTable="join-table",t.KeyBackspace="key-backspace",t.KeyCommand="key-command",t.KeyControl="key-control",t.KeyDelete="key-delete",t.KeyEnter="key-enter",t.KeyEscape="key-escape",t.KeyOption="key-option",t.KeyShift="key-shift",t.KeyTab="key-tab",t.Key="key",t.KnownVehicle="known-vehicle",t.LabTest="lab-test",t.Label="label",t.LayerOutline="layer-outline",t.Layer="layer",t.Layers="layers",t.LayoutAuto="layout-auto",t.LayoutBalloon="layout-balloon",t.LayoutBottomRowThreeTiles="layout-bottom-row-three-tiles",t.LayoutBottomRowTwoTiles="layout-bottom-row-two-tiles",t.LayoutCircle="layout-circle",t.LayoutGrid="layout-grid",t.LayoutGroupBy="layout-group-by",t.LayoutHierarchy="layout-hierarchy",t.LayoutLeftColumnThreeTiles="layout-left-column-three-tiles",t.LayoutLeftColumnTwoTiles="layout-left-column-two-tiles",t.LayoutLinear="layout-linear",t.LayoutRightColumnThreeTiles="layout-right-column-three-tiles",t.LayoutRightColumnTwoTiles="layout-right-column-two-tiles",t.LayoutSkewGrid="layout-skew-grid",t.LayoutSortedClusters="layout-sorted-clusters",t.LayoutThreeColumns="layout-three-columns",t.LayoutThreeRows="layout-three-rows",t.LayoutTopRowThreeTiles="layout-top-row-three-tiles",t.LayoutTopRowTwoTiles="layout-top-row-two-tiles",t.LayoutTwoColumns="layout-two-columns",t.LayoutTwoRows="layout-two-rows",t.Layout="layout",t.Learning="learning",t.LeftJoin="left-join",t.LengthenText="lengthen-text",t.LessThanOrEqualTo="less-than-or-equal-to",t.LessThan="less-than",t.Lifesaver="lifesaver",t.Lightbulb="lightbulb",t.Lightning="lightning",t.Link="link",t.LinkedSquares="linked-squares",t.ListColumns="list-columns",t.ListDetailView="list-detail-view",t.List="list",t.Locate="locate",t.Lock="lock",t.Locomotive="locomotive",t.LogIn="log-in",t.LogOut="log-out",t.LowVoltagePole="low-voltage-pole",t.Manual="manual",t.ManuallyEnteredData="manually-entered-data",t.ManyToMany="many-to-many",t.ManyToOne="many-to-one",t.MapCreate="map-create",t.MapMarker="map-marker",t.Map="map",t.Maximize="maximize",t.Media="media",t.MenuClosed="menu-closed",t.MenuOpen="menu-open",t.Menu="menu",t.MergeColumns="merge-columns",t.MergeLinks="merge-links",t.Microphone="microphone",t.Minimize="minimize",t.Minus="minus",t.MobilePhone="mobile-phone",t.MobileVideo="mobile-video",t.ModalFilled="modal-filled",t.Modal="modal",t.Model="model",t.Moon="moon",t.More="more",t.Mountain="mountain",t.Move="move",t.Mugshot="mugshot",t.MultiSelect="multi-select",t.Music="music",t.Nest="nest",t.NewDrawing="new-drawing",t.NewGridItem="new-grid-item",t.NewLayer="new-layer",t.NewLayers="new-layers",t.NewLink="new-link",t.NewObject="new-object",t.NewPerson="new-person",t.NewPrescription="new-prescription",t.NewShield="new-shield",t.NewTextBox="new-text-box",t.Ninja="ninja",t.NotEqualTo="not-equal-to",t.NotificationsAdd="notifications-add",t.NotificationsSnooze="notifications-snooze",t.NotificationsUpdated="notifications-updated",t.Notifications="notifications",t.NumberedList="numbered-list",t.Numerical="numerical",t.ObjectView="object-view",t.Office="office",t.Offline="offline",t.OilField="oil-field",t.OneColumn="one-column",t.OneToMany="one-to-many",t.OneToOne="one-to-one",t.OpenApplication="open-application",t.Outdated="outdated",t.Output="output",t.Package="package",t.PageLayout="page-layout",t.PanelStats="panel-stats",t.PanelTable="panel-table",t.Panel="panel",t.Paperclip="paperclip",t.Paragraph="paragraph",t.PasteVariable="paste-variable",t.PathSearch="path-search",t.Path="path",t.Pause="pause",t.People="people",t.Percentage="percentage",t.Person="person",t.PhoneCall="phone-call",t.PhoneForward="phone-forward",t.PhoneSearch="phone-search",t.Phone="phone",t.PieChart="pie-chart",t.Pill="pill",t.Pin="pin",t.Pistol="pistol",t.PivotTable="pivot-table",t.Pivot="pivot",t.Play="play",t.Playbook="playbook",t.Plus="plus",t.PolygonFilter="polygon-filter",t.Power="power",t.PredictiveAnalysis="predictive-analysis",t.Prescription="prescription",t.Presentation="presentation",t.Print="print",t.Projects="projects",t.Properties="properties",t.Property="property",t.PublishFunction="publish-function",t.Pulse="pulse",t.Rain="rain",t.Random="random",t.RangeRing="range-ring",t.Record="record",t.RectHeight="rect-height",t.RectWidth="rect-width",t.Rectangle="rectangle",t.Redo="redo",t.Refresh="refresh",t.Regex="regex",t.RegressionChart="regression-chart",t.RemoveColumnLeft="remove-column-left",t.RemoveColumnRight="remove-column-right",t.RemoveColumn="remove-column",t.RemoveRowBottom="remove-row-bottom",t.RemoveRowTop="remove-row-top",t.Remove="remove",t.Repeat="repeat",t.Reset="reset",t.Resolve="resolve",t.Rig="rig",t.RightJoin="right-join",t.Ring="ring",t.RocketSlant="rocket-slant",t.Rocket="rocket",t.RotateCcw="rotate-ccw",t.RotateCw="rotate-cw",t.RotateDocument="rotate-document",t.RotatePage="rotate-page",t.Route="route",t.RunHistory="run-history",t.Satellite="satellite",t.Saved="saved",t.ScatterPlot="scatter-plot",t.SearchAround="search-around",t.SearchTemplate="search-template",t.SearchText="search-text",t.Search="search",t.SegmentedControl="segmented-control",t.Select="select",t.SelectionBoxAdd="selection-box-add",t.SelectionBoxEdit="selection-box-edit",t.SelectionBox="selection-box",t.Selection="selection",t.SendBackward="send-backward",t.SendMessage="send-message",t.SendToGraph="send-to-graph",t.SendToMap="send-to-map",t.SendTo="send-to",t.Sensor="sensor",t.SeriesAdd="series-add",t.SeriesConfiguration="series-configuration",t.SeriesDerived="series-derived",t.SeriesFiltered="series-filtered",t.SeriesSearch="series-search",t.ServerInstall="server-install",t.Server="server",t.Settings="settings",t.Shapes="shapes",t.Share="share",t.SharedFilter="shared-filter",t.Shield="shield",t.Ship="ship",t.Shop="shop",t.ShoppingCart="shopping-cart",t.ShortenText="shorten-text",t.SignalSearch="signal-search",t.SimCard="sim-card",t.Slash="slash",t.SmallCross="small-cross",t.SmallInfoSign="small-info-sign",t.SmallMinus="small-minus",t.SmallPlus="small-plus",t.SmallSquare="small-square",t.SmallTick="small-tick",t.Snowflake="snowflake",t.SoccerBall="soccer-ball",t.SocialMedia="social-media",t.SortAlphabeticalDesc="sort-alphabetical-desc",t.SortAlphabetical="sort-alphabetical",t.SortAsc="sort-asc",t.SortDesc="sort-desc",t.SortNumericalDesc="sort-numerical-desc",t.SortNumerical="sort-numerical",t.Sort="sort",t.SpellCheck="spell-check",t.SplitColumns="split-columns",t.SportsStadium="sports-stadium",t.Square="square",t.StackedChart="stacked-chart",t.StadiumGeometry="stadium-geometry",t.StarEmpty="star-empty",t.Star="star",t.StepBackward="step-backward",t.StepChart="step-chart",t.StepForward="step-forward",t.Stop="stop",t.Stopwatch="stopwatch",t.Strikethrough="strikethrough",t.Style="style",t.Subscript="subscript",t.SubtractRightJoin="subtract-right-join",t.Superscript="superscript",t.SwapHorizontal="swap-horizontal",t.SwapVertical="swap-vertical",t.Switch="switch",t.SymbolCircle="symbol-circle",t.SymbolCross="symbol-cross",t.SymbolDiamond="symbol-diamond",t.SymbolRectangle="symbol-rectangle",t.SymbolSquare="symbol-square",t.SymbolTriangleDown="symbol-triangle-down",t.SymbolTriangleUp="symbol-triangle-up",t.Syringe="syringe",t.TableSync="table-sync",t.TagAdd="tag-add",t.TagPromote="tag-promote",t.TagRefresh="tag-refresh",t.TagUndo="tag-undo",t.Tag="tag",t.Tags="tags",t.TakeAction="take-action",t.Tank="tank",t.Target="target",t.Taxi="taxi",t.Team="team",t.Temperature="temperature",t.TextHighlight="text-highlight",t.ThAdd="th-add",t.ThDerived="th-derived",t.ThDisconnect="th-disconnect",t.ThFiltered="th-filtered",t.ThListAdd="th-list-add",t.ThList="th-list",t.ThVirtualAdd="th-virtual-add",t.ThVirtual="th-virtual",t.Th="th",t.ThirdParty="third-party",t.ThumbsDown="thumbs-down",t.ThumbsUp="thumbs-up",t.TickCircle="tick-circle",t.Tick="tick",t.Time="time",t.TimelineAreaChart="timeline-area-chart",t.TimelineBarChart="timeline-bar-chart",t.TimelineEvents="timeline-events",t.TimelineLineChart="timeline-line-chart",t.Tint="tint",t.Torch="torch",t.Tractor="tractor",t.Train="train",t.Translate="translate",t.Trash="trash",t.Tree="tree",t.TrendingDown="trending-down",t.TrendingUp="trending-up",t.Trophy="trophy",t.Truck="truck",t.TwoColumns="two-columns",t.Unarchive="unarchive",t.Underline="underline",t.Undo="undo",t.UngroupObjects="ungroup-objects",t.UnknownVehicle="unknown-vehicle",t.Unlink="unlink",t.Unlock="unlock",t.Unpin="unpin",t.Unresolve="unresolve",t.Updated="updated",t.Upload="upload",t.User="user",t.Variable="variable",t.Vector="vector",t.VerticalBarChartAsc="vertical-bar-chart-asc",t.VerticalBarChartDesc="vertical-bar-chart-desc",t.VerticalDistribution="vertical-distribution",t.VerticalInbetween="vertical-inbetween",t.Video="video",t.Virus="virus",t.VolumeDown="volume-down",t.VolumeOff="volume-off",t.VolumeUp="volume-up",t.Walk="walk",t.WarningSign="warning-sign",t.WaterfallChart="waterfall-chart",t.Waves="waves",t.WidgetButton="widget-button",t.WidgetFooter="widget-footer",t.WidgetHeader="widget-header",t.Widget="widget",t.Wind="wind",t.WrenchRedo="wrench-redo",t.WrenchSnooze="wrench-snooze",t.WrenchTime="wrench-time",t.Wrench="wrench",t.ZoomIn="zoom-in",t.ZoomOut="zoom-out",t.ZoomToFit="zoom-to-fit"})(Kt||(Kt={}));Qt={},Qt[Kt.AddClip]="61697",Qt[Kt.AddColumnLeft]="61698",Qt[Kt.AddColumnRight]="61699",Qt[Kt.AddLocation]="61700",Qt[Kt.AddRowBottom]="61701",Qt[Kt.AddRowTop]="61702",Qt[Kt.AddToArtifact]="61703",Qt[Kt.AddToFolder]="61704",Qt[Kt.Add]="61705",Qt[Kt.AimpointsTarget]="62261",Qt[Kt.Airplane]="61706",Qt[Kt.AlignCenter]="61707",Qt[Kt.AlignJustify]="61708",Qt[Kt.AlignLeft]="61709",Qt[Kt.AlignRight]="61710",Qt[Kt.AlignmentBottom]="61711",Qt[Kt.AlignmentHorizontalCenter]="61712",Qt[Kt.AlignmentLeft]="61713",Qt[Kt.AlignmentRight]="61714",Qt[Kt.AlignmentTop]="61715",Qt[Kt.AlignmentVerticalCenter]="61716",Qt[Kt.Ammunition]="62274",Qt[Kt.Anchor]="62256",Qt[Kt.Annotation]="61717",Qt[Kt.Announcement]="62358",Qt[Kt.Antenna]="61718",Qt[Kt.AppHeader]="61719",Qt[Kt.Application]="61720",Qt[Kt.Applications]="61721",Qt[Kt.Archive]="61722",Qt[Kt.AreaOfInterest]="61723",Qt[Kt.ArrayBoolean]="61724",Qt[Kt.ArrayDate]="61725",Qt[Kt.ArrayFloatingPoint]="62253",Qt[Kt.ArrayNumeric]="61726",Qt[Kt.ArrayObject]="62356",Qt[Kt.ArrayString]="61727",Qt[Kt.ArrayTimestamp]="61728",Qt[Kt.Array]="61729",Qt[Kt.ArrowBottomLeft]="61730",Qt[Kt.ArrowBottomRight]="61731",Qt[Kt.ArrowDown]="61732",Qt[Kt.ArrowLeft]="61733",Qt[Kt.ArrowRight]="61734",Qt[Kt.ArrowTopLeft]="61735",Qt[Kt.ArrowTopRight]="61736",Qt[Kt.ArrowUp]="61737",Qt[Kt.ArrowsArc]="62343",Qt[Kt.ArrowsHorizontal]="61738",Qt[Kt.ArrowsVertical]="61739",Qt[Kt.Asterisk]="61740",Qt[Kt.At]="62257",Qt[Kt.AutomaticUpdates]="61741",Qt[Kt.Axle]="62264",Qt[Kt.Backlink]="61742",Qt[Kt.BackwardTen]="62300",Qt[Kt.Badge]="61743",Qt[Kt.BanCircle]="61744",Qt[Kt.BankAccount]="61745",Qt[Kt.Barcode]="61746",Qt[Kt.BinaryNumber]="62295",Qt[Kt.Blank]="61747",Qt[Kt.BlockPromote]="62322",Qt[Kt.BlockedPerson]="61748",Qt[Kt.Bold]="61749",Qt[Kt.Book]="61750",Qt[Kt.Bookmark]="61751",Qt[Kt.Box]="61752",Qt[Kt.Briefcase]="61753",Qt[Kt.BringData]="61754",Qt[Kt.BringForward]="62292",Qt[Kt.BritishPound]="62342",Qt[Kt.Bug]="62254",Qt[Kt.Buggy]="61755",Qt[Kt.Build]="61756",Qt[Kt.Bullseye]="62297",Qt[Kt.Calculator]="61757",Qt[Kt.Calendar]="61758",Qt[Kt.Camera]="61759",Qt[Kt.CaretDown]="61760",Qt[Kt.CaretLeft]="61761",Qt[Kt.CaretRight]="61762",Qt[Kt.CaretUp]="61763",Qt[Kt.CargoShip]="61764",Qt[Kt.CellTower]="61765",Qt[Kt.Changes]="61766",Qt[Kt.Chart]="61767",Qt[Kt.Chat]="61768",Qt[Kt.ChevronBackward]="61769",Qt[Kt.ChevronDown]="61770",Qt[Kt.ChevronForward]="61771",Qt[Kt.ChevronLeft]="61772",Qt[Kt.ChevronRight]="61773",Qt[Kt.ChevronUp]="61774",Qt[Kt.CircleArrowDown]="61775",Qt[Kt.CircleArrowLeft]="61776",Qt[Kt.CircleArrowRight]="61777",Qt[Kt.CircleArrowUp]="61778",Qt[Kt.Circle]="61779",Qt[Kt.Citation]="61780",Qt[Kt.Clean]="61781",Qt[Kt.Clip]="61782",Qt[Kt.ClipboardFile]="62299",Qt[Kt.Clipboard]="61783",Qt[Kt.CloudDownload]="61784",Qt[Kt.CloudServer]="62298",Qt[Kt.CloudTick]="62286",Qt[Kt.CloudUpload]="61785",Qt[Kt.Cloud]="61786",Qt[Kt.CodeBlock]="61787",Qt[Kt.Code]="61788",Qt[Kt.Cog]="61789",Qt[Kt.CollapseAll]="61790",Qt[Kt.ColorFill]="62248",Qt[Kt.ColumnLayout]="61791",Qt[Kt.Comment]="61792",Qt[Kt.Comparison]="61793",Qt[Kt.Compass]="61794",Qt[Kt.Compressed]="61795",Qt[Kt.Confirm]="61796",Qt[Kt.Console]="61797",Qt[Kt.Construction]="62357",Qt[Kt.Contrast]="61798",Qt[Kt.Control]="61799",Qt[Kt.CreditCard]="61800",Qt[Kt.Crop]="62291",Qt[Kt.CrossCircle]="62262",Qt[Kt.Cross]="61801",Qt[Kt.Crown]="61802",Qt[Kt.CssStyle]="62315",Qt[Kt.CubeAdd]="61803",Qt[Kt.CubeEdit]="62339",Qt[Kt.CubeRemove]="61804",Qt[Kt.Cube]="61805",Qt[Kt.Cubes]="62323",Qt[Kt.CurlyBraces]="62296",Qt[Kt.CurvedRangeChart]="61806",Qt[Kt.Cut]="61807",Qt[Kt.Cycle]="61808",Qt[Kt.Dashboard]="61809",Qt[Kt.DataCloud]="62353",Qt[Kt.DataConnection]="61810",Qt[Kt.DataLineage]="61811",Qt[Kt.DataSearch]="62319",Qt[Kt.DataSync]="62316",Qt[Kt.Database]="61812",Qt[Kt.Delete]="61813",Qt[Kt.Delta]="61814",Qt[Kt.DeriveColumn]="61815",Qt[Kt.Desktop]="61816",Qt[Kt.Detection]="62273",Qt[Kt.Diagnosis]="61817",Qt[Kt.DiagramTree]="61818",Qt[Kt.DirectionLeft]="61819",Qt[Kt.DirectionRight]="61820",Qt[Kt.Disable]="61821",Qt[Kt.Divide]="62247",Qt[Kt.DocumentOpen]="61822",Qt[Kt.DocumentShare]="61823",Qt[Kt.Document]="61824",Qt[Kt.Dollar]="61825",Qt[Kt.Dot]="61826",Qt[Kt.DoubleCaretHorizontal]="61827",Qt[Kt.DoubleCaretVertical]="61828",Qt[Kt.DoubleChevronDown]="61829",Qt[Kt.DoubleChevronLeft]="61830",Qt[Kt.DoubleChevronRight]="61831",Qt[Kt.DoubleChevronUp]="61832",Qt[Kt.DoughnutChart]="61833",Qt[Kt.Download]="61834",Qt[Kt.DragHandleHorizontal]="61835",Qt[Kt.DragHandleVertical]="61836",Qt[Kt.Draw]="61837",Qt[Kt.DrawerLeftFilled]="61838",Qt[Kt.DrawerLeft]="61839",Qt[Kt.DrawerRightFilled]="61840",Qt[Kt.DrawerRight]="61841",Qt[Kt.DriveTime]="61842",Qt[Kt.Duplicate]="61843",Qt[Kt.Edit]="61844",Qt[Kt.Eject]="61845",Qt[Kt.Emoji]="61846",Qt[Kt.Endnote]="62294",Qt[Kt.Endorsed]="61847",Qt[Kt.Envelope]="61848",Qt[Kt.Equals]="61849",Qt[Kt.Eraser]="61850",Qt[Kt.Error]="61851",Qt[Kt.Euro]="61852",Qt[Kt.Excavator]="62317",Qt[Kt.Exchange]="61853",Qt[Kt.ExcludeRow]="61854",Qt[Kt.ExpandAll]="61855",Qt[Kt.Explain]="62285",Qt[Kt.Export]="61856",Qt[Kt.EyeOff]="61857",Qt[Kt.EyeOn]="61858",Qt[Kt.EyeOpen]="61859",Qt[Kt.FastBackward]="61860",Qt[Kt.FastForward]="61861",Qt[Kt.FeedSubscribed]="61862",Qt[Kt.Feed]="61863",Qt[Kt.FighterJet]="62340",Qt[Kt.Film]="61864",Qt[Kt.FilterKeep]="61865",Qt[Kt.FilterList]="61866",Qt[Kt.FilterOpen]="61867",Qt[Kt.FilterRemove]="61868",Qt[Kt.FilterSortAsc]="62350",Qt[Kt.FilterSortDesc]="62351",Qt[Kt.Filter]="61869",Qt[Kt.Flag]="61870",Qt[Kt.Flame]="61871",Qt[Kt.Flash]="61872",Qt[Kt.FloatingPoint]="62252",Qt[Kt.FloppyDisk]="61873",Qt[Kt.FlowBranch]="61874",Qt[Kt.FlowEnd]="61875",Qt[Kt.FlowLinear]="61876",Qt[Kt.FlowReviewBranch]="61877",Qt[Kt.FlowReview]="61878",Qt[Kt.Flows]="61879",Qt[Kt.FolderClose]="61880",Qt[Kt.FolderNew]="61881",Qt[Kt.FolderOpen]="61882",Qt[Kt.FolderSharedOpen]="61883",Qt[Kt.FolderShared]="61884",Qt[Kt.Follower]="61885",Qt[Kt.Following]="61886",Qt[Kt.Font]="61887",Qt[Kt.Fork]="61888",Qt[Kt.Form]="61889",Qt[Kt.ForwardTen]="62301",Qt[Kt.Fuel]="62243",Qt[Kt.FullCircle]="61890",Qt[Kt.FullStackedChart]="61891",Qt[Kt.Fullscreen]="61892",Qt[Kt.Function]="61893",Qt[Kt.GanttChart]="61894",Qt[Kt.Generate]="62284",Qt[Kt.Geofence]="61895",Qt[Kt.Geolocation]="61896",Qt[Kt.Geosearch]="61897",Qt[Kt.Geotime]="62276",Qt[Kt.GitBranch]="61898",Qt[Kt.GitCommit]="61899",Qt[Kt.GitMerge]="61900",Qt[Kt.GitNewBranch]="61901",Qt[Kt.GitPull]="61902",Qt[Kt.GitPush]="61903",Qt[Kt.GitRepo]="61904",Qt[Kt.Glass]="61905",Qt[Kt.GlobeNetworkAdd]="62338",Qt[Kt.GlobeNetwork]="61906",Qt[Kt.Globe]="61907",Qt[Kt.GraphRemove]="61908",Qt[Kt.Graph]="61909",Qt[Kt.GreaterThanOrEqualTo]="61910",Qt[Kt.GreaterThan]="61911",Qt[Kt.GridView]="61912",Qt[Kt.Grid]="61913",Qt[Kt.GroupItem]="62282",Qt[Kt.GroupObjects]="61914",Qt[Kt.GroupedBarChart]="61915",Qt[Kt.HandDown]="61916",Qt[Kt.HandLeft]="61917",Qt[Kt.HandRight]="61918",Qt[Kt.HandUp]="61919",Qt[Kt.Hand]="61920",Qt[Kt.Hat]="61921",Qt[Kt.HeaderOne]="61922",Qt[Kt.HeaderThree]="61923",Qt[Kt.HeaderTwo]="61924",Qt[Kt.Header]="61925",Qt[Kt.Headset]="61926",Qt[Kt.HeartBroken]="61927",Qt[Kt.Heart]="61928",Qt[Kt.HeatGrid]="61929",Qt[Kt.Heatmap]="61930",Qt[Kt.Helicopter]="61931",Qt[Kt.Help]="61932",Qt[Kt.HelperManagement]="61933",Qt[Kt.Hexagon]="62324",Qt[Kt.HighPriority]="61934",Qt[Kt.HighVoltagePole]="62259",Qt[Kt.Highlight]="61935",Qt[Kt.History]="61936",Qt[Kt.Home]="61937",Qt[Kt.HorizontalBarChartAsc]="61938",Qt[Kt.HorizontalBarChartDesc]="61939",Qt[Kt.HorizontalBarChart]="61940",Qt[Kt.HorizontalDistribution]="61941",Qt[Kt.HorizontalInbetween]="62249",Qt[Kt.Hurricane]="61942",Qt[Kt.IdNumber]="61943",Qt[Kt.ImageRotateLeft]="61944",Qt[Kt.ImageRotateRight]="61945",Qt[Kt.Import]="61946",Qt[Kt.InboxFiltered]="61947",Qt[Kt.InboxGeo]="61948",Qt[Kt.InboxSearch]="61949",Qt[Kt.InboxUpdate]="61950",Qt[Kt.Inbox]="61951",Qt[Kt.InfoSign]="61952",Qt[Kt.Inheritance]="61953",Qt[Kt.InheritedGroup]="61954",Qt[Kt.InnerJoin]="61955",Qt[Kt.Input]="62283",Qt[Kt.Insert]="61956",Qt[Kt.Intelligence]="62263",Qt[Kt.Intersection]="61957",Qt[Kt.IpAddress]="61958",Qt[Kt.IssueClosed]="61959",Qt[Kt.IssueNew]="61960",Qt[Kt.Issue]="61961",Qt[Kt.Italic]="61962",Qt[Kt.JoinTable]="61963",Qt[Kt.KeyBackspace]="61964",Qt[Kt.KeyCommand]="61965",Qt[Kt.KeyControl]="61966",Qt[Kt.KeyDelete]="61967",Qt[Kt.KeyEnter]="61968",Qt[Kt.KeyEscape]="61969",Qt[Kt.KeyOption]="61970",Qt[Kt.KeyShift]="61971",Qt[Kt.KeyTab]="61972",Qt[Kt.Key]="61973",Qt[Kt.KnownVehicle]="61974",Qt[Kt.LabTest]="61975",Qt[Kt.Label]="61976",Qt[Kt.LayerOutline]="61977",Qt[Kt.Layer]="61978",Qt[Kt.Layers]="61979",Qt[Kt.LayoutAuto]="61980",Qt[Kt.LayoutBalloon]="61981",Qt[Kt.LayoutBottomRowThreeTiles]="62308",Qt[Kt.LayoutBottomRowTwoTiles]="62307",Qt[Kt.LayoutCircle]="61982",Qt[Kt.LayoutGrid]="61983",Qt[Kt.LayoutGroupBy]="61984",Qt[Kt.LayoutHierarchy]="61985",Qt[Kt.LayoutLeftColumnThreeTiles]="62310",Qt[Kt.LayoutLeftColumnTwoTiles]="62309",Qt[Kt.LayoutLinear]="61986",Qt[Kt.LayoutRightColumnThreeTiles]="62312",Qt[Kt.LayoutRightColumnTwoTiles]="62311",Qt[Kt.LayoutSkewGrid]="61987",Qt[Kt.LayoutSortedClusters]="61988",Qt[Kt.LayoutThreeColumns]="62305",Qt[Kt.LayoutThreeRows]="62306",Qt[Kt.LayoutTopRowThreeTiles]="62314",Qt[Kt.LayoutTopRowTwoTiles]="62313",Qt[Kt.LayoutTwoColumns]="62303",Qt[Kt.LayoutTwoRows]="62304",Qt[Kt.Layout]="61989",Qt[Kt.Learning]="61990",Qt[Kt.LeftJoin]="61991",Qt[Kt.LengthenText]="62270",Qt[Kt.LessThanOrEqualTo]="61992",Qt[Kt.LessThan]="61993",Qt[Kt.Lifesaver]="61994",Qt[Kt.Lightbulb]="61995",Qt[Kt.Lightning]="61996",Qt[Kt.Link]="61997",Qt[Kt.LinkedSquares]="62341",Qt[Kt.ListColumns]="61998",Qt[Kt.ListDetailView]="61999",Qt[Kt.List]="62000",Qt[Kt.Locate]="62001",Qt[Kt.Lock]="62002",Qt[Kt.Locomotive]="62267",Qt[Kt.LogIn]="62003",Qt[Kt.LogOut]="62004",Qt[Kt.LowVoltagePole]="62258",Qt[Kt.Manual]="62005",Qt[Kt.ManuallyEnteredData]="62006",Qt[Kt.ManyToMany]="62007",Qt[Kt.ManyToOne]="62008",Qt[Kt.MapCreate]="62009",Qt[Kt.MapMarker]="62010",Qt[Kt.Map]="62011",Qt[Kt.Maximize]="62012",Qt[Kt.Media]="62013",Qt[Kt.MenuClosed]="62014",Qt[Kt.MenuOpen]="62015",Qt[Kt.Menu]="62016",Qt[Kt.MergeColumns]="62017",Qt[Kt.MergeLinks]="62018",Qt[Kt.Microphone]="62275",Qt[Kt.Minimize]="62019",Qt[Kt.Minus]="62020",Qt[Kt.MobilePhone]="62021",Qt[Kt.MobileVideo]="62022",Qt[Kt.ModalFilled]="62023",Qt[Kt.Modal]="62024",Qt[Kt.Model]="62269",Qt[Kt.Moon]="62025",Qt[Kt.More]="62026",Qt[Kt.Mountain]="62027",Qt[Kt.Move]="62028",Qt[Kt.Mugshot]="62029",Qt[Kt.MultiSelect]="62030",Qt[Kt.Music]="62031",Qt[Kt.Nest]="62032",Qt[Kt.NewDrawing]="62033",Qt[Kt.NewGridItem]="62034",Qt[Kt.NewLayer]="62035",Qt[Kt.NewLayers]="62036",Qt[Kt.NewLink]="62037",Qt[Kt.NewObject]="62038",Qt[Kt.NewPerson]="62039",Qt[Kt.NewPrescription]="62040",Qt[Kt.NewShield]="62281",Qt[Kt.NewTextBox]="62041",Qt[Kt.Ninja]="62042",Qt[Kt.NotEqualTo]="62043",Qt[Kt.NotificationsAdd]="62360",Qt[Kt.NotificationsSnooze]="62044",Qt[Kt.NotificationsUpdated]="62045",Qt[Kt.Notifications]="62046",Qt[Kt.NumberedList]="62047",Qt[Kt.Numerical]="62048",Qt[Kt.ObjectView]="62352",Qt[Kt.Office]="62049",Qt[Kt.Offline]="62050",Qt[Kt.OilField]="62051",Qt[Kt.OneColumn]="62052",Qt[Kt.OneToMany]="62053",Qt[Kt.OneToOne]="62054",Qt[Kt.OpenApplication]="62251",Qt[Kt.Outdated]="62055",Qt[Kt.Output]="62320",Qt[Kt.Package]="62325",Qt[Kt.PageLayout]="62056",Qt[Kt.PanelStats]="62057",Qt[Kt.PanelTable]="62058",Qt[Kt.Panel]="62337",Qt[Kt.Paperclip]="62059",Qt[Kt.Paragraph]="62060",Qt[Kt.PasteVariable]="62278",Qt[Kt.PathSearch]="62061",Qt[Kt.Path]="62062",Qt[Kt.Pause]="62063",Qt[Kt.People]="62064",Qt[Kt.Percentage]="62065",Qt[Kt.Person]="62066",Qt[Kt.PhoneCall]="62279",Qt[Kt.PhoneForward]="62280",Qt[Kt.PhoneSearch]="62359",Qt[Kt.Phone]="62067",Qt[Kt.PieChart]="62068",Qt[Kt.Pill]="62326",Qt[Kt.Pin]="62069",Qt[Kt.Pistol]="62364",Qt[Kt.PivotTable]="62070",Qt[Kt.Pivot]="62071",Qt[Kt.Play]="62072",Qt[Kt.Playbook]="62244",Qt[Kt.Plus]="62073",Qt[Kt.PolygonFilter]="62074",Qt[Kt.Power]="62075",Qt[Kt.PredictiveAnalysis]="62076",Qt[Kt.Prescription]="62077",Qt[Kt.Presentation]="62078",Qt[Kt.Print]="62079",Qt[Kt.Projects]="62080",Qt[Kt.Properties]="62081",Qt[Kt.Property]="62082",Qt[Kt.PublishFunction]="62083",Qt[Kt.Pulse]="62084",Qt[Kt.Rain]="62085",Qt[Kt.Random]="62086",Qt[Kt.RangeRing]="62321",Qt[Kt.Record]="62087",Qt[Kt.RectHeight]="62245",Qt[Kt.RectWidth]="62246",Qt[Kt.Rectangle]="62241",Qt[Kt.Redo]="62088",Qt[Kt.Refresh]="62089",Qt[Kt.Regex]="62255",Qt[Kt.RegressionChart]="62090",Qt[Kt.RemoveColumnLeft]="62091",Qt[Kt.RemoveColumnRight]="62092",Qt[Kt.RemoveColumn]="62093",Qt[Kt.RemoveRowBottom]="62094",Qt[Kt.RemoveRowTop]="62095",Qt[Kt.Remove]="62096",Qt[Kt.Repeat]="62097",Qt[Kt.Reset]="62098",Qt[Kt.Resolve]="62099",Qt[Kt.Rig]="62100",Qt[Kt.RightJoin]="62101",Qt[Kt.Ring]="62102",Qt[Kt.RocketSlant]="62103",Qt[Kt.Rocket]="62104",Qt[Kt.RotateCcw]="62345",Qt[Kt.RotateCw]="62344",Qt[Kt.RotateDocument]="62105",Qt[Kt.RotatePage]="62106",Qt[Kt.Route]="62107",Qt[Kt.RunHistory]="62355",Qt[Kt.Satellite]="62108",Qt[Kt.Saved]="62109",Qt[Kt.ScatterPlot]="62110",Qt[Kt.SearchAround]="62111",Qt[Kt.SearchTemplate]="62112",Qt[Kt.SearchText]="62113",Qt[Kt.Search]="62114",Qt[Kt.SegmentedControl]="62115",Qt[Kt.Select]="62116",Qt[Kt.SelectionBoxAdd]="62362",Qt[Kt.SelectionBoxEdit]="62363",Qt[Kt.SelectionBox]="62361",Qt[Kt.Selection]="62117",Qt[Kt.SendBackward]="62293",Qt[Kt.SendMessage]="62118",Qt[Kt.SendToGraph]="62119",Qt[Kt.SendToMap]="62120",Qt[Kt.SendTo]="62121",Qt[Kt.Sensor]="62268",Qt[Kt.SeriesAdd]="62122",Qt[Kt.SeriesConfiguration]="62123",Qt[Kt.SeriesDerived]="62124",Qt[Kt.SeriesFiltered]="62125",Qt[Kt.SeriesSearch]="62126",Qt[Kt.ServerInstall]="62327",Qt[Kt.Server]="62328",Qt[Kt.Settings]="62127",Qt[Kt.Shapes]="62128",Qt[Kt.Share]="62129",Qt[Kt.SharedFilter]="62130",Qt[Kt.Shield]="62131",Qt[Kt.Ship]="62132",Qt[Kt.Shop]="62133",Qt[Kt.ShoppingCart]="62134",Qt[Kt.ShortenText]="62271",Qt[Kt.SignalSearch]="62135",Qt[Kt.SimCard]="62136",Qt[Kt.Slash]="62137",Qt[Kt.SmallCross]="62138",Qt[Kt.SmallInfoSign]="62260",Qt[Kt.SmallMinus]="62139",Qt[Kt.SmallPlus]="62140",Qt[Kt.SmallSquare]="62141",Qt[Kt.SmallTick]="62142",Qt[Kt.Snowflake]="62143",Qt[Kt.SoccerBall]="62288",Qt[Kt.SocialMedia]="62144",Qt[Kt.SortAlphabeticalDesc]="62145",Qt[Kt.SortAlphabetical]="62146",Qt[Kt.SortAsc]="62147",Qt[Kt.SortDesc]="62148",Qt[Kt.SortNumericalDesc]="62149",Qt[Kt.SortNumerical]="62150",Qt[Kt.Sort]="62151",Qt[Kt.SpellCheck]="62272",Qt[Kt.SplitColumns]="62152",Qt[Kt.SportsStadium]="62289",Qt[Kt.Square]="62153",Qt[Kt.StackedChart]="62154",Qt[Kt.StadiumGeometry]="62155",Qt[Kt.StarEmpty]="62156",Qt[Kt.Star]="62157",Qt[Kt.StepBackward]="62158",Qt[Kt.StepChart]="62159",Qt[Kt.StepForward]="62160",Qt[Kt.Stop]="62161",Qt[Kt.Stopwatch]="62162",Qt[Kt.Strikethrough]="62163",Qt[Kt.Style]="62164",Qt[Kt.Subscript]="62265",Qt[Kt.SubtractRightJoin]="62354",Qt[Kt.Superscript]="62266",Qt[Kt.SwapHorizontal]="62165",Qt[Kt.SwapVertical]="62166",Qt[Kt.Switch]="62167",Qt[Kt.SymbolCircle]="62168",Qt[Kt.SymbolCross]="62169",Qt[Kt.SymbolDiamond]="62170",Qt[Kt.SymbolRectangle]="62242",Qt[Kt.SymbolSquare]="62171",Qt[Kt.SymbolTriangleDown]="62172",Qt[Kt.SymbolTriangleUp]="62173",Qt[Kt.Syringe]="62174",Qt[Kt.TableSync]="62318",Qt[Kt.TagAdd]="62329",Qt[Kt.TagPromote]="62330",Qt[Kt.TagRefresh]="62331",Qt[Kt.TagUndo]="62332",Qt[Kt.Tag]="62175",Qt[Kt.Tags]="62333",Qt[Kt.TakeAction]="62176",Qt[Kt.Tank]="62177",Qt[Kt.Target]="62178",Qt[Kt.Taxi]="62179",Qt[Kt.Team]="62290",Qt[Kt.Temperature]="62180",Qt[Kt.TextHighlight]="62181",Qt[Kt.ThAdd]="62346",Qt[Kt.ThDerived]="62182",Qt[Kt.ThDisconnect]="62183",Qt[Kt.ThFiltered]="62184",Qt[Kt.ThListAdd]="62347",Qt[Kt.ThList]="62185",Qt[Kt.ThVirtualAdd]="62349",Qt[Kt.ThVirtual]="62348",Qt[Kt.Th]="62186",Qt[Kt.ThirdParty]="62187",Qt[Kt.ThumbsDown]="62188",Qt[Kt.ThumbsUp]="62189",Qt[Kt.TickCircle]="62190",Qt[Kt.Tick]="62191",Qt[Kt.Time]="62192",Qt[Kt.TimelineAreaChart]="62193",Qt[Kt.TimelineBarChart]="62194",Qt[Kt.TimelineEvents]="62195",Qt[Kt.TimelineLineChart]="62196",Qt[Kt.Tint]="62197",Qt[Kt.Torch]="62198",Qt[Kt.Tractor]="62199",Qt[Kt.Train]="62200",Qt[Kt.Translate]="62201",Qt[Kt.Trash]="62202",Qt[Kt.Tree]="62203",Qt[Kt.TrendingDown]="62204",Qt[Kt.TrendingUp]="62205",Qt[Kt.Trophy]="62287",Qt[Kt.Truck]="62206",Qt[Kt.TwoColumns]="62207",Qt[Kt.Unarchive]="62208",Qt[Kt.Underline]="62209",Qt[Kt.Undo]="62210",Qt[Kt.UngroupObjects]="62211",Qt[Kt.UnknownVehicle]="62212",Qt[Kt.Unlink]="62277",Qt[Kt.Unlock]="62213",Qt[Kt.Unpin]="62214",Qt[Kt.Unresolve]="62215",Qt[Kt.Updated]="62216",Qt[Kt.Upload]="62217",Qt[Kt.User]="62218",Qt[Kt.Variable]="62219",Qt[Kt.Vector]="62302",Qt[Kt.VerticalBarChartAsc]="62220",Qt[Kt.VerticalBarChartDesc]="62221",Qt[Kt.VerticalDistribution]="62222",Qt[Kt.VerticalInbetween]="62250",Qt[Kt.Video]="62223",Qt[Kt.Virus]="62224",Qt[Kt.VolumeDown]="62225",Qt[Kt.VolumeOff]="62226",Qt[Kt.VolumeUp]="62227",Qt[Kt.Walk]="62228",Qt[Kt.WarningSign]="62229",Qt[Kt.WaterfallChart]="62230",Qt[Kt.Waves]="62231",Qt[Kt.WidgetButton]="62232",Qt[Kt.WidgetFooter]="62233",Qt[Kt.WidgetHeader]="62234",Qt[Kt.Widget]="62235",Qt[Kt.Wind]="62236",Qt[Kt.WrenchRedo]="62334",Qt[Kt.WrenchSnooze]="62335",Qt[Kt.WrenchTime]="62336",Qt[Kt.Wrench]="62237",Qt[Kt.ZoomIn]="62238",Qt[Kt.ZoomOut]="62239",Qt[Kt.ZoomToFit]="62240";var Whe={},Zhe={};for(var zN=0,BK=Object.values(Kt);zN<BK.length;zN++){var NR=BK[zN];Whe[c4e(NR)]=NR,Zhe[h4e(NR).toUpperCase()]=NR}var Ui=qn(qn({},Whe),Zhe),g4e=new Set(Object.values(Ui));function p4e(t){return typeof NODE_ENV<"u"&&NODE_ENV===t}function m4e(t,r){return L2(this,void 0,void 0,function(){var e,n,a;return O2(this,function(l){switch(l.label){case 0:return e=p4e("development")&&typeof performance<"u",e&&(n=performance.now(),console.info("Started '".concat(t,"'..."))),[4,r()];case 1:return l.sent(),e&&(a=Math.round(performance.now()-n),console.info("Finished '".concat(t,"' in ").concat(a,"ms"))),[2]}})})}function y4e(t){return L2(this,void 0,void 0,function(){var r,e;return O2(this,function(n){switch(n.label){case 0:return r=t.loader,e=r===void 0?d2.defaultLoader:r,typeof e!="function"?[3,1]:[2,e];case 1:return e!=="all"?[3,3]:[4,zK(()=>import("./allPathsLoader-XdAstF0k.js"),[])];case 2:return[2,n.sent().allPathsLoader];case 3:return[4,zK(()=>import("./splitPathsBySizeLoader-B81xALt1.js"),[])];case 4:return[2,n.sent().splitPathsBySizeLoader]}})})}var RS=function(){function t(){this.defaultLoader="split-by-size",this.loadedIconPaths16=new Map,this.loadedIconPaths20=new Map}return t.setLoaderOptions=function(r){r.loader!==void 0&&(d2.defaultLoader=r.loader)},t.load=function(r,e,n){return L2(this,void 0,void 0,function(){var a=this;return O2(this,function(l){switch(l.label){case 0:return Array.isArray(r)||(r=[r]),[4,Promise.all(r.map(function(o){return a.loadImpl(o,e,n)}))];case 1:return l.sent(),[2]}})})},t.loadAll=function(r){return L2(this,void 0,void 0,function(){var e,n=this;return O2(this,function(a){return e=Object.values(Ui),m4e("[Blueprint] loading all icons",function(){return L2(n,void 0,void 0,function(){return O2(this,function(l){switch(l.label){case 0:return[4,Promise.all([this.load(e,Na.STANDARD,r),this.load(e,Na.LARGE,r)])];case 1:return l.sent(),[2]}})})}),[2]})})},t.getPaths=function(r,e){if(this.isValidIconName(r)){var n=e<Na.LARGE?d2.loadedIconPaths16:d2.loadedIconPaths20;return n.get(r)}},t.loadImpl=function(r,e,n){return n===void 0&&(n={}),L2(this,void 0,void 0,function(){var a,l,o,f,i;return O2(this,function(s){switch(s.label){case 0:return this.isValidIconName(r)?(a=e<Na.LARGE?d2.loadedIconPaths16:d2.loadedIconPaths20,a.has(r)?[2]:[4,y4e(n)]):(console.error("[Blueprint] Unknown icon '".concat(r,"'")),[2]);case 1:l=s.sent(),s.label=2;case 2:return s.trys.push([2,4,,5]),o=e<Na.LARGE?Na.STANDARD:Na.LARGE,[4,l(r,o)];case 3:return f=s.sent(),a.set(r,f),[3,5];case 4:return i=s.sent(),console.error("[Blueprint] Unable to load ".concat(e,"px icon '").concat(r,"'"),i),[3,5];case 5:return[2]}})})},t.isValidIconName=function(r){return g4e.has(r)},t}(),d2=new RS,A4e="bp5",$K="".concat(A4e,"-icon"),UK=new Map;function C4e(t){var r,e=(r=UK.get(t))!==null&&r!==void 0?r:0;return UK.set(t,e+1),"".concat(t,"-").concat(e)}var Sh=St.forwardRef(function(t,r){var e=t.children,n=t.className,a=t.color,l=t.htmlTitle,o=t.iconName,f=t.size,i=f===void 0?Na.STANDARD:f,s=t.svgProps,d=t.tagName,u=d===void 0?"span":d,h=t.title,y=Ps(t,["children","className","color","htmlTitle","iconName","size","svgProps","tagName","title"]),b=i>=Na.LARGE,C=b?Na.LARGE:Na.STANDARD,m="0 0 ".concat(C," ").concat(C),c=C4e("iconTitle"),v=qn({fill:a,height:i,role:"img",viewBox:m,width:i},s);return u===null?St.createElement("svg",qn({"aria-labelledby":h?c:void 0,"data-icon":o,ref:r},v,y,{className:Di(n,s==null?void 0:s.className)}),h&&St.createElement("title",{id:c},h),e):St.createElement(u,qn(qn({"aria-hidden":h?void 0:!0},y),{className:Di($K,"".concat($K,"-").concat(o),n),ref:r,title:l}),St.createElement("svg",qn({"data-icon":o},v,{className:s==null?void 0:s.className}),h&&St.createElement("title",null,h),e))});Sh.displayName="Blueprint5.SVGIconContainer";var QV=St.forwardRef(function(t,r){var e=t.size>=Na.LARGE,n=e?Na.LARGE:Na.STANDARD,a="".concat(-1*n/.05/2),l={transformOrigin:"center"};return St.createElement(Sh,qn({iconName:"arrow-down",ref:r},t),St.createElement("path",{d:e?"M320 180C314 180 310 178 306 174L220 88V360C220 370 212 380 200 380S180 370 180 360V88L94 174C90 178 86 180 80 180C70 180 60 172 60 160C60 154 62 150 66 146L186 26C190 22 194 20 200 20S210 22 214 26L334 146C338 150 340 154 340 160C340 172 330 180 320 180L320 180z":"M260 160C254 160 250 158 246 154L180 88V280C180 290 172 300 160 300S140 290 140 280V88L74 154C70 158 66 160 60 160C50 160 40 150 40 140C40 134 42 130 46 126L146 26C150 22 154 20 160 20S170 22 174 26L274 126C278 130 280 134 280 140C280 152 272 160 260 160L260 160z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")"),style:l}))});QV.defaultProps={size:Na.STANDARD};QV.displayName="Blueprint5.Icon.ArrowDown";var JV=St.forwardRef(function(t,r){var e=t.size>=Na.LARGE,n=e?Na.LARGE:Na.STANDARD,a="".concat(-1*n/.05/2),l={transformOrigin:"center"};return St.createElement(Sh,qn({iconName:"arrow-left",ref:r},t),St.createElement("path",{d:e?"M360 220H88.2L174 305.8C177.8 309.4 180 314.4 180 320C180 331 171 340 160 340C154.4 340 149.4 337.8 145.8 334.2L25.8 214.2C22.2 210.6 20 205.6 20 200C20 194.4 22.2 189.4 25.8 185.8L145.8 65.8C149.4 62.2 154.4 60 160 60C171 60 180 69 180 80C180 85.6 177.8 90.6 174.2 94.2000000000001L88.2 180H360C371 180 380 189 380 200C380 211 371 220 360 220z":"M279.8 180.2H88.2L154 246C157.6 249.6 159.8 254.6 159.8 260.2C159.8 271.2 150.8 280.2 139.8 280.2C134.2 280.2 129.2 278 125.6 274.4L25.6 174.4C22 170.6 19.8 165.6 19.8 160.2S22 149.6 25.6 146L125.6 46C129.2 42.4 134.2 40.2 139.8 40.2C150.8 40.2 159.8 49.2 159.8 60.2000000000001C159.8 65.8 157.6 70.8 154 74.4L88.2 140.2H280C291 140.2 300 149.2 300 160.2S290.8 180.2 279.8 180.2z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")"),style:l}))});JV.defaultProps={size:Na.STANDARD};JV.displayName="Blueprint5.Icon.ArrowLeft";var qV=St.forwardRef(function(t,r){var e=t.size>=Na.LARGE,n=e?Na.LARGE:Na.STANDARD,a="".concat(-1*n/.05/2),l={transformOrigin:"center"};return St.createElement(Sh,qn({iconName:"arrow-right",ref:r},t),St.createElement("path",{d:e?"M374.2000000000001 214.2L254.2 334.2000000000001C250.6 337.8 245.6 340 240 340C229 340 220 331 220 320C220 314.4 222.2 309.4 225.8 305.8L311.8 220H40C29 220 20 211 20 200C20 189 29 180 40 180H311.8L226 94.2000000000001C222.2 90.6 220 85.6 220 80C220 69 229 60 240 60C245.6 60 250.6 62.2 254.2 65.8L374.2000000000001 185.8C377.8 189.4 380 194.4 380 200C380 205.6 377.8 210.6 374.2000000000001 214.2z":"M294 174.2L194 274.2C190.4 278 185.4 280.2 179.8 280.2C168.8 280.2 159.8 271.2 159.8 260.2C159.8 254.6 162 249.6 165.6 246L231.4 180.2H39.8C28.8 180.2 19.8 171.2 19.8 160.2S28.8 140.2 39.8 140.2H231.6L165.8 74.4C162.2 70.8 160 65.8 160 60.1999999999999C160 49.1999999999999 169 40.1999999999999 180 40.1999999999999C185.6 40.1999999999999 190.6 42.4 194.2 45.9999999999999L294.2000000000001 146C297.8 149.5999999999999 300 154.5999999999999 300 160.1999999999999S297.6 170.6 294 174.2z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")"),style:l}))});qV.defaultProps={size:Na.STANDARD};qV.displayName="Blueprint5.Icon.ArrowRight";var eG=St.forwardRef(function(t,r){var e=t.size>=Na.LARGE,n=e?Na.LARGE:Na.STANDARD,a="".concat(-1*n/.05/2),l={transformOrigin:"center"};return St.createElement(Sh,qn({iconName:"arrow-up",ref:r},t),St.createElement("path",{d:e?"M334 254L214 374C210 378 206 380 200 380S190 378 186 374L66 254C62 250 60 246 60 240C60 228 70 220 80 220C86 220 90 222 94 226L180 312V40C180 30 188 20 200 20S220 30 220 40V312L306 226C310 222 314 220 320 220C330 220 340 228 340 240C340 246 338 250 334 254L334 254z":"M274 194L174 294C170 298 166 300 160 300S150 298 146 294L46 194C42 190 40 186 40 180C40 168 50 160 60 160C66 160 70 162 74 166L140 232V40C140 28 148 20 160 20S180 28 180 40V232L246 166C250 162 254 160 260 160C272 160 280 168 280 180C280 186 278 190 274 194L274 194z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")"),style:l}))});eG.defaultProps={size:Na.STANDARD};eG.displayName="Blueprint5.Icon.ArrowUp";var tG=St.forwardRef(function(t,r){var e=t.size>=Na.LARGE,n=e?Na.LARGE:Na.STANDARD,a="".concat(-1*n/.05/2),l={transformOrigin:"center"};return St.createElement(Sh,qn({iconName:"caret-right",ref:r},t),St.createElement("path",{d:e?"M280 200C280 206.2 277 211.4 272.6 215.2L272.8 215.4L152.8 315.4L152.6 315.2C149.2 318 144.8 320 140 320C129 320 120 311 120 300V100C120 89 129 80 140 80C144.8 80 149.2 82 152.6 84.8L152.8 84.6L272.8 184.6L272.6 184.8C277 188.6 280 193.8 280 200z":"M220 160C220 163 218.6 165.6 216.6 167.4L216.6 167.4L136.6 237.4L136.6 237.4C134.8 239 132.6 240 130 240C124.4 240 120 235.6 120 230V90C120 84.4 124.4 80 130 80C132.6 80 134.8 81 136.6 82.6C136.6 82.6 136.6 82.6 136.6 82.6L216.6 152.6L216.6 152.6C218.6 154.4 220 157 220 160z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")"),style:l}))});tG.defaultProps={size:Na.STANDARD};tG.displayName="Blueprint5.Icon.CaretRight";var Uk=St.forwardRef(function(t,r){var e=t.size>=Na.LARGE,n=e?Na.LARGE:Na.STANDARD,a="".concat(-1*n/.05/2),l={transformOrigin:"center"};return St.createElement(Sh,qn({iconName:"cross",ref:r},t),St.createElement("path",{d:e?"M228.2 200L314 285.8C317.8 289.4 320 294.4 320 300C320 311 311 320 300 320C294.4000000000001 320 289.4000000000001 317.8 285.8 314.2L200 228.2L114.2 314.2C110.6 317.8 105.6 320 100 320C89 320 80 311 80 300C80 294.4 82.2 289.4 85.8 285.8L171.8 200L86 114.2000000000001C82.2 110.6 80 105.6 80 100C80 89 89 80 100 80C105.6 80 110.6 82.2 114.2 85.8L200 171.8L285.8 86C289.4000000000001 82.2 294.4000000000001 80 300 80C311 80 320 89 320 100C320 105.6 317.8 110.6 314.2000000000001 114.2000000000001L228.2 200z":"M188.2 160L254 225.8C257.8 229.4 260 234.4 260 240C260 251 251 260 240 260C234.4 260 229.4 257.8 225.8 254.2L160 188.2L94.2 254.2C90.6 257.8 85.6 260 80 260C69 260 60 251 60 240C60 234.4 62.2 229.4 65.8 225.8L131.8 160L66 94.2C62.2 90.6 60 85.6 60 80C60 69 69 60 80 60C85.6 60 90.6 62.2 94.2 65.8L160 131.8L225.8 66C229.4 62.2 234.4 60 240 60C251 60 260 69 260 80C260 85.6 257.8 90.6 254.2 94.2L188.2 160z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")"),style:l}))});Uk.defaultProps={size:Na.STANDARD};Uk.displayName="Blueprint5.Icon.Cross";var rG=St.forwardRef(function(t,r){var e=t.size>=Na.LARGE,n=e?Na.LARGE:Na.STANDARD,a="".concat(-1*n/.05/2),l={transformOrigin:"center"};return St.createElement(Sh,qn({iconName:"drag-handle-vertical",ref:r},t),St.createElement("path",{d:e?"M150 280C133.4 280 120 266.6 120 250S133.4 220 150 220S180 233.4 180 250S166.6 280 150 280zM150 180C133.4 180 120 166.6 120 150S133.4 120 150 120S180 133.4 180 150S166.6 180 150 180zM150 80C133.4 80 120 66.6 120 50S133.4 20 150 20S180 33.4 180 50S166.6 80 150 80zM250 320C266.6 320 280 333.4 280 350S266.6 380 250 380S220 366.6 220 350S233.4 320 250 320zM150 380C133.4 380 120 366.6 120 350S133.4 320 150 320S180 333.4 180 350S166.6 380 150 380zM250 180C233.4 180 220 166.6 220 150S233.4 120 250 120S280 133.4 280 150S266.6 180 250 180zM250 80C233.4 80 220 66.6 220 50S233.4 20 250 20S280 33.4 280 50S266.6 80 250 80zM250 280C233.4 280 220 266.6 220 250S233.4 220 250 220S280 233.4 280 250S266.6 280 250 280z":"M120 140C109 140 100 131 100 120C100 109 109 100 120 100S140 109 140 120C140 131 131 140 120 140zM200 260C211 260 220 269 220 280C220 291 211 300 200 300S180 291 180 280C180 269 189 260 200 260zM120 60C109 60 100 51 100 40C100 29 109 20 120 20S140 29 140 40C140 51 131 60 120 60zM120 220C109 220 100 211 100 200C100 189 109 180 120 180S140 189 140 200C140 211 131 220 120 220zM120 300C109 300 100 291 100 280C100 269 109 260 120 260S140 269 140 280C140 291 131 300 120 300zM200 140C189 140 180 131 180 120C180 109 189 100 200 100S220 109 220 120C220 131 211 140 200 140zM200 220C189 220 180 211 180 200C180 189 189 180 200 180S220 189 220 200C220 211 211 220 200 220zM200 60C189 60 180 51 180 40C180 29 189 20 200 20S220 29 220 40C220 51 211 60 200 60z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")"),style:l}))});rG.defaultProps={size:Na.STANDARD};rG.displayName="Blueprint5.Icon.DragHandleVertical";var oO=St.forwardRef(function(t,r){var e=t.size>=Na.LARGE,n=e?Na.LARGE:Na.STANDARD,a="".concat(-1*n/.05/2),l={transformOrigin:"center"};return St.createElement(Sh,qn({iconName:"key-command",ref:r},t),St.createElement("path",{d:e?"M310 160H280V240H310C348.6 240 380 271.4 380 310S348.6 380 310 380S240 348.6 240 310V280H160V310C160 348.6 128.6 380 90 380S20 348.6 20 310S51.4 240 90 240H120V160H90C51.4 160 20 128.6 20 90S51.4 20 90 20S160 51.4 160 90V120H240V90C240 51.4 271.4 20 310 20S380 51.4 380 90S348.6 160 310 160zM310 340C326.6 340 340 326.6 340 310S326.6 280 310 280S280 293.4 280 310S293.4 340 310 340zM90 60C73.4 60 60 73.4 60 90S73.4 120 90 120S120 106.6 120 90S106.6 60 90 60zM90 280C73.4 280 60 293.4 60 310S73.4 340 90 340S120 326.6 120 310S106.6 280 90 280zM240 160H160V240H240V160zM310 60C293.4 60 280 73.4 280 90S293.4 120 310 120S340 106.6 340 90S326.6 60 310 60z":"M240 140H220V180H240C273.2 180 300 206.8 300 240S273.2 300 240 300S180 273.2 180 240V220H140V240C140 273.2 113.2 300 80 300S20 273.2 20 240S46.8 180 80 180H100V140H80C46.8 140 20 113.2 20 80S46.8 20 80 20S140 46.8 140 80V100H180V80C180 46.8 206.8 20 240 20S300 46.8 300 80S273.2 140 240 140zM240 260C251 260 260 251 260 240C260 229 251 220 240 220S220 229 220 240C220 251 229 260 240 260zM80 60C69 60 60 69 60 80C60 91 69 100 80 100S100 91 100 80C100 69 91 60 80 60zM80 220C69 220 60 229 60 240C60 251 69 260 80 260S100 251 100 240C100 229 91 220 80 220zM180 140H140V180H180V140zM240 60C229 60 220 69 220 80C220 91 229 100 240 100S260 91 260 80C260 69 251 60 240 60z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")"),style:l}))});oO.defaultProps={size:Na.STANDARD};oO.displayName="Blueprint5.Icon.KeyCommand";var nG=St.forwardRef(function(t,r){var e=t.size>=Na.LARGE,n=e?Na.LARGE:Na.STANDARD,a="".concat(-1*n/.05/2),l={transformOrigin:"center"};return St.createElement(Sh,qn({iconName:"key-control",ref:r},t),St.createElement("path",{d:e?"M334.2000000000001 254.2L214.2 374.2C210.6 377.8 205.6 380 200 380S189.4 377.8 185.8 374.2L65.8 254.2C62.2 250.6 60 245.6 60 240C60 229 69 220 80 220C85.6 220 90.6 222.2 94.2 225.8L200 331.8L305.8 226C309.4000000000001 222.2 314.4000000000001 220 320 220C331 220 340 229 340 240C340 245.6 337.8 250.6 334.2000000000001 254.2z":"M254.2 214.2L174.2 294.2C170.6 297.8 165.6 300 160 300S149.4 297.8 145.8 294.2L65.8 214.2C62.2 210.6 60 205.6 60 200C60 189 69 180 80 180C85.6 180 90.6 182.2 94.2 185.8L160 251.8L225.8 186C229.4 182.2 234.4 180 240 180C251 180 260 189 260 200C260 205.6 257.8 210.6 254.2 214.2z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")"),style:l}))});nG.defaultProps={size:Na.STANDARD};nG.displayName="Blueprint5.Icon.KeyControl";var iG=St.forwardRef(function(t,r){var e=t.size>=Na.LARGE,n=e?Na.LARGE:Na.STANDARD,a="".concat(-1*n/.05/2),l={transformOrigin:"center"};return St.createElement(Sh,qn({iconName:"key-delete",ref:r},t),St.createElement("path",{d:e?"M394.2000000000001 214.2L274.2000000000001 334.2000000000001C270.6 337.8 265.6 340 260 340H20C9 340 0 331 0 320V80C0 69 9 60 20 60H260C265.6 60 270.6 62.2 274.2000000000001 65.8L394.2000000000001 185.8C397.8 189.4 400 194.4 400 200C400 205.6 397.8 210.6 394.2000000000001 214.2zM214.2 154.2C217.8 150.6 220 145.6 220 140C220 129 211 120 200 120C194.4 120 189.4 122.2 185.8 125.8L140 171.8L94.2 126C90.6 122.2 85.6 120 80 120C69 120 60 129 60 140C60 145.6 62.2 150.6 65.8 154.2L111.8 200L65.8 245.8C62.2 249.4 60 254.4 60 260C60 271 69 280 80 280C85.6 280 90.6 277.8 94.2 274.2L140 228.2L185.8 274C189.4 277.8 194.4 280 200 280C211 280 220 271 220 260C220 254.4 217.8 249.4 214.2 245.8L168.2 200L214.2 154.2z":"M314.2000000000001 174.2L214.2 274.2C210.6 277.8 205.6 280 200 280H20C9 280 0 271 0 260V60C0 49 9 40 20 40H200C205.6 40 210.6 42.2 214.2 45.8L314.2000000000001 145.8C317.8 149.4 320 154.4 320 160C320 165.6 317.8 170.6 314.2000000000001 174.2zM174.2 134.2C177.8 130.6 180 125.6 180 120C180 109 171 100 160 100C154.4 100 149.4 102.2 145.8 105.8L120 131.8L94.2 106C90.6 102.2 85.6 100 80 100C69 100 60 109 60 120C60 125.6 62.2 130.6 65.8 134.2L91.8 160L65.8 185.8C62.2 189.4 60 194.4 60 200C60 211 69 220 80 220C85.6 220 90.6 217.8 94.2 214.2L120 188.2L145.8 214C149.4 217.8 154.4 220 160 220C171 220 180 211 180 200C180 194.4 177.8 189.4 174.2 185.8L148.2 160L174.2 134.2z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")"),style:l}))});iG.defaultProps={size:Na.STANDARD};iG.displayName="Blueprint5.Icon.KeyDelete";var aG=St.forwardRef(function(t,r){var e=t.size>=Na.LARGE,n=e?Na.LARGE:Na.STANDARD,a="".concat(-1*n/.05/2),l={transformOrigin:"center"};return St.createElement(Sh,qn({iconName:"key-enter",ref:r},t),St.createElement("path",{d:e?"M360 360C349 360 340 351 340 340V240C340 195.8 304.2000000000001 160 260 160H88.2L134 205.8C137.8 209.4 140 214.4 140 220C140 231 131 240 120 240C114.4 240 109.4 237.8 105.8 234.2L25.8 154.2C22.2 150.6 20 145.6 20 140C20 134.4 22.2 129.4 25.8 125.8L105.8 45.8C109.4 42.2 114.4 40 120 40C131 40 140 49 140 60C140 65.6 137.8 70.6 134.2 74.2000000000001L88.2 120H260C326.2 120 380 173.8 380 240V340C380 351 371 360 360 360z":"M280 280C269 280 260 271 260 260V200C260 166.8 233.2 140 200 140H88.2L114 165.8C117.8 169.4 120 174.4 120 180C120 191 111 200 100 200C94.4 200 89.4 197.8 85.8 194.2L25.8 134.2C22.2 130.6 20 125.6 20 120C20 114.4 22.2 109.4 25.8 105.8L85.8 45.8C89.4 42.2 94.4 40 100 40C111 40 120 49 120 60C120 65.6 117.8 70.6 114.2 74.2L88.2 100H200C255.2 100 300 144.8 300 200V260C300 271 291 280 280 280z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")"),style:l}))});aG.defaultProps={size:Na.STANDARD};aG.displayName="Blueprint5.Icon.KeyEnter";var oG=St.forwardRef(function(t,r){var e=t.size>=Na.LARGE,n=e?Na.LARGE:Na.STANDARD,a="".concat(-1*n/.05/2),l={transformOrigin:"center"};return St.createElement(Sh,qn({iconName:"key-option",ref:r},t),St.createElement("path",{d:e?"M260 320H380C391 320 400 329 400 340C400 351 391 360 380 360H260C249 360 240 351 240 340C240 329 249 320 260 320zM380 80H291.6L137.4 350L137 349.8C133.6 355.8 127.4 360 120 360H20C9 360 0 351 0 340C0 329 9 320 20 320H108.4L262.6 50L262.8 50.2C266.4 44.2 272.6 40 280 40H380C391 40 400 49 400 60C400 71 391 80 380 80z":"M220 240H300C311 240 320 249 320 260C320 271 311 280 300 280H220C209 280 200 271 200 260C200 249 209 240 220 240zM300 80H231.4L117.2 270.2L116.8 270.2C113.4 276 107.2 280 100 280H20C9 280 0 271 0 260C0 249 9 240 20 240H88.6L202.8 49.8L203 50C206.6 44 212.8 40 220 40H300C311 40 320 49 320 60C320 71 311 80 300 80z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")"),style:l}))});oG.defaultProps={size:Na.STANDARD};oG.displayName="Blueprint5.Icon.KeyOption";var sG=St.forwardRef(function(t,r){var e=t.size>=Na.LARGE,n=e?Na.LARGE:Na.STANDARD,a="".concat(-1*n/.05/2),l={transformOrigin:"center"};return St.createElement(Sh,qn({iconName:"key-shift",ref:r},t),St.createElement("path",{d:e?"M354.8 193L354.8 193L215 353.2L214.8 353C211.2 357.2 206 360 200 360S188.8 357.2 185.2 353L185 353.2L45 193.2L45.2 193C42 189.6 40 185 40 180C40 169 49 160 60 160H120V60C120 49 129 40 140 40H260C271 40 280 49 280 60V160H340C351 160 360 169 360 180C360 185 358 189.6 354.8 193z":"M274.2000000000001 174.2L174.2 274.2C170.6 277.8 165.6 280 160 280S149.4 277.8 145.8 274.2L45.8 174.2C42.2 170.6 40 165.6 40 160C40 149 49 140 60 140H100V60C100 49 109 40 120 40H200C211 40 220 49 220 60V140H260C271 140 280 149 280 160C280 165.6 277.8 170.6 274.2000000000001 174.2z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")"),style:l}))});sG.defaultProps={size:Na.STANDARD};sG.displayName="Blueprint5.Icon.KeyShift";var sO=St.forwardRef(function(t,r){var e=t.size>=Na.LARGE,n=e?Na.LARGE:Na.STANDARD,a="".concat(-1*n/.05/2),l={transformOrigin:"center"};return St.createElement(Sh,qn({iconName:"more",ref:r},t),St.createElement("path",{d:e?"M20 190A50 50 0 0 1 120 190A50 50 0 0 1 20 190M300 190A50 50 0 0 1 400 190A50 50 0 0 1 300 190M160 190A50 50 0 0 1 260 190A50 50 0 0 1 160 190":"M0 159.4A40 40 0 0 1 80 159.4A40 40 0 0 1 0 159.4M240 159.4A40 40 0 0 1 320 159.4A40 40 0 0 1 240 159.4M120 159.4A40 40 0 0 1 200 159.4A40 40 0 0 1 120 159.4",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")"),style:l}))});sO.defaultProps={size:Na.STANDARD};sO.displayName="Blueprint5.Icon.More";var lG=St.forwardRef(function(t,r){var e=t.size>=Na.LARGE,n=e?Na.LARGE:Na.STANDARD,a="".concat(-1*n/.05/2),l={transformOrigin:"center"};return St.createElement(Sh,qn({iconName:"search",ref:r},t),St.createElement("path",{d:e?"M391.2 51.2L292.4 150C309.8 175.8 320 206.6 320 240C320 328.4 248.4 400 160 400S0 328.4 0 240S71.6 80 160 80C193.4 80 224.2 90.2 250 107.6L348.8 8.8C354.2000000000001 3.4 361.8 0 370 0C386.6 0 400 13.4 400 30C400 38.2 396.6 45.8 391.2 51.2zM160 120C93.8 120 40 173.8 40 240S93.8 360 160 360S280 306.2000000000001 280 240S226.2 120 160 120z":"M311 51.4L257.6 105C271.6 126.8 279.8 152.6 279.8 180.2C279.8 257.6 217.2 320.2 139.8 320.2S-0.2 257.6 -0.2 180.2S62.4 40.2 139.8 40.2C167.6 40.2 193.4 48.6 215 62.4L268.6 9C274 3.6 281.6 0.2 289.8 0.2C306.4 0.2 319.8 13.6 319.8 30.2C319.8 38.4 316.4 46 311 51.4zM139.8 80.2C84.6 80.2 39.8 125 39.8 180.2S84.6 280.2 139.8 280.2S239.8 235.4 239.8 180.2S195 80.2 139.8 80.2z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")"),style:l}))});lG.defaultProps={size:Na.STANDARD};lG.displayName="Blueprint5.Icon.Search";var Hk=St.forwardRef(function(t,r){var e=t.size>=Na.LARGE,n=e?Na.LARGE:Na.STANDARD,a="".concat(-1*n/.05/2),l={transformOrigin:"center"};return St.createElement(Sh,qn({iconName:"small-cross",ref:r},t),St.createElement("path",{d:e?"M228.2 200L294 265.8C297.8 269.4 300 274.4 300 280C300 291 291 300 280 300C274.4000000000001 300 269.4000000000001 297.8 265.8 294.2L200 228.2L134.2 294.2C130.6 297.8 125.6 300 120 300C109 300 100 291 100 280C100 274.4 102.2 269.4 105.8 265.8L171.8 200L106 134.2000000000001C102.2 130.6 100 125.6 100 120C100 109 109 100 120 100C125.6 100 130.6 102.2 134.2 105.8L200 171.8L265.8 106C269.4000000000001 102.2 274.4000000000001 100 280 100C291 100 300 109 300 120C300 125.6 297.8 130.6 294.2000000000001 134.2000000000001L228.2 200z":"M188.2 160L234 205.8C237.8 209.4 240 214.4 240 220C240 231 231 240 220 240C214.4 240 209.4 237.8 205.8 234.2L160 188.2L114.2 234.2C110.6 237.8 105.6 240 100 240C89 240 80 231 80 220C80 214.4 82.2 209.4 85.8 205.8L131.8 160L86 114.2C82.2 110.6 80 105.6 80 100C80 89 89 80 100 80C105.6 80 110.6 82.2 114.2 85.8L160 131.8L205.8 86C209.4 82.2 214.4 80 220 80C231 80 240 89 240 100C240 105.6 237.8 110.6 234.2 114.2L188.2 160z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")"),style:l}))});Hk.defaultProps={size:Na.STANDARD};Hk.displayName="Blueprint5.Icon.SmallCross";var uG=St.forwardRef(function(t,r){var e=t.size>=Na.LARGE,n=e?Na.LARGE:Na.STANDARD,a="".concat(-1*n/.05/2),l={transformOrigin:"center"};return St.createElement(Sh,qn({iconName:"small-tick",ref:r},t),St.createElement("path",{d:e?"M300 300C294.4000000000001 300 289.4000000000001 297.8 285.8 294.2L160 168.2L114.2 214.2C110.6 217.8 105.6 220 100 220C89 220 80 211 80 200C80 194.4 82.2 189.4 85.8 185.8L145.8 125.8C149.4 122.2 154.4 120 160 120S170.6 122.2 174.2 125.8L314.2000000000001 265.8C317.8 269.4 320 274.4 320 280C320 291 311 300 300 300z":"M240 220C234.4 220 229.4 217.8 225.8 214.2L140 128.2L94.2 174.2C90.6 177.8 85.6 180 80 180C69 180 60 171 60 160C60 154.4 62.2 149.4 65.8 145.8L125.8 85.8C129.4 82.2 134.4 80 140 80S150.6 82.2 154.2 85.8L254.2 185.8C257.8 189.4 260 194.4 260 200C260 211 251 220 240 220z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")"),style:l}))});uG.defaultProps={size:Na.STANDARD};uG.displayName="Blueprint5.Icon.SmallTick";var fl=St.forwardRef(function(t,r){var e,n,a=t.autoLoad,l=a===void 0?!0:a,o=t.className,f=t.color,i=t.icon,s=t.intent,d=t.tagName,u=d===void 0?"span":d,h=t.svgProps,y=t.title,b=t.htmlTitle,C=Ps(t,["autoLoad","className","color","icon","intent","tagName","svgProps","title","htmlTitle"]),m=(n=(e=t.iconSize)!==null&&e!==void 0?e:t.size)!==null&&n!==void 0?n:Na.STANDARD,c=St.useState(function(){return typeof i=="string"?RS.getPaths(i,m):void 0}),v=c[0],g=c[1];if(St.useEffect(function(){var A=!1;if(typeof i=="string"){var _=RS.getPaths(i,m);_!==void 0?g(_):l?RS.load(i,m).then(function(){A||g(RS.getPaths(i,m))}).catch(function(w){console.error("[Blueprint] Icon '".concat(i,"' (").concat(m,"px) could not be loaded."),w)}):console.error("[Blueprint] Icon '".concat(i,"' (").concat(m,"px) is not loaded yet and autoLoad={false}, did you call Icons.load('").concat(i,"', ").concat(m,")?"))}return function(){A=!0}},[l,i,m]),i==null||typeof i=="boolean")return null;if(typeof i!="string")return i;if(v==null){var p=m===Na.STANDARD?nMe:m===Na.LARGE?iMe:void 0;return St.createElement(u||"span",qn(qn({"aria-hidden":y?void 0:!0},WC(C)),{className:Di(YV,p,aMe(i),Vd(s),o),"data-icon":i,ref:r,title:b}))}else{var I=v.map(function(A,_){return St.createElement("path",{d:A,key:_,fillRule:"evenodd"})});return St.createElement(Sh,qn({children:I,className:Di(Vd(s),o),color:f,htmlTitle:b,iconName:i,ref:r,size:m,svgProps:h,tagName:u,title:y},WC(C)))}});fl.displayName="".concat(Wo,".Icon");var Wb;(function(t){t[t.SMALL=20]="SMALL",t[t.STANDARD=50]="STANDARD",t[t.LARGE=100]="LARGE"})(Wb||(Wb={}));var YA=45,HK="M 50,50 m 0,-".concat(YA," a ").concat(YA,",").concat(YA," 0 1 1 0,").concat(YA*2," a ").concat(YA,",").concat(YA," 0 1 1 0,-").concat(YA*2),iS=280,I4e=10,b4e=4,x4e=16,cG=function(t){var r,e=t.className,n=e===void 0?"":e,a=t.intent,l=t.value,o=t.tagName,f=o===void 0?"div":o,i=t.size,s=Ps(t,["className","intent","value","tagName","size"]);jhe(function(){var b=i!=null,C=n.indexOf(aO)>=0||n.indexOf(RT)>=0;b&&C&&console.warn(HMe)},[n,i]);var d=w4e(i,n),u=Math.min(x4e,b4e*Wb.LARGE/d),h=iS-iS*(l==null?.25:C3(l,0,1)),y=Di(Fk,Vd(a),(r={},r[Z5e]=l!=null,r),n);return St.createElement(f,qn({"aria-label":"loading","aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":l===void 0?void 0:l*100,className:y,role:"progressbar"},s),St.createElement(f,{className:G5e},St.createElement("svg",{width:d,height:d,strokeWidth:u.toFixed(2),viewBox:T4e(u)},St.createElement("path",{className:Y5e,d:HK}),St.createElement("path",{className:W5e,d:HK,pathLength:iS,strokeDasharray:"".concat(iS," ").concat(iS),strokeDashoffset:h}))))};cG.displayName="".concat(Wo,".Spinner");var w4e=function(t,r){return t==null?r.indexOf(aO)>=0?Wb.SMALL:r.indexOf(RT)>=0?Wb.LARGE:Wb.STANDARD:Math.max(I4e,t)},T4e=function(t){var r=YA+t/2,e=(50-r).toFixed(2),n=(r*2).toFixed(2);return"".concat(e," ").concat(e," ").concat(n," ").concat(n)},_4e=zhe()?St.useLayoutEffect:St.useEffect,jk=St.forwardRef(function(t,r){var e,n=t.children,a=t.tagName,l=a===void 0?"div":a,o=t.title,f=t.className,i=t.ellipsize,s=i===void 0?!1:i,d=Ps(t,["children","tagName","title","className","ellipsize"]),u=St.useRef(),h=St.useMemo(function(){return q1(u,r)},[r]),y=St.useState(""),b=y[0],C=y[1],m=St.useState(),c=m[0],v=m[1];return _4e(function(){var g;((g=u.current)===null||g===void 0?void 0:g.textContent)!=null&&(v(s&&u.current.scrollWidth>u.current.clientWidth),C(u.current.textContent))},[u,n,s]),St.createElement(l,qn(qn({},d),{className:Di((e={},e[PEe]=s,e),f),ref:h,title:o??(c?b:void 0)}),n)});jk.displayName="".concat(Wo,".Text");var qa=St.forwardRef(function(t,r){var e=Yhe(t,r);return St.createElement("button",qn({type:"button"},WC(t),e),Xhe(t))});qa.displayName="".concat(Wo,".Button");var bx=St.forwardRef(function(t,r){var e=t.href,n=Yhe(t,r,{defaultTabIndex:0,disabledTabIndex:-1});return St.createElement("a",qn({role:"button"},WC(t),n,{"aria-disabled":n.disabled,href:n.disabled?void 0:e}),Xhe(t))});bx.displayName="".concat(Wo,".AnchorButton");function Yhe(t,r,e){var n,a=t.alignText,l=t.fill,o=t.large,f=t.loading,i=f===void 0?!1:f,s=t.minimal,d=t.outlined,u=t.size,h=u===void 0?"medium":u,y=t.small,b=t.variant,C=b===void 0?"solid":b,m=t.disabled||i,c=Vhe(!m,t,r,e),v=c[0],g=c[1],p=Di(H5,(n={},n[Ax]=v,n[sI]=m,n[nm]=l,n[VV]=i,n),zk(a),Vd(t.intent),lI(h,{large:o,small:y}),Fhe(C,{minimal:s,outlined:d}),t.className);return qn(qn({},g),{className:p,disabled:m})}function Xhe(t){var r=t.children,e=t.ellipsizeText,n=t.endIcon,a=t.icon,l=t.loading,o=t.rightIcon,f=t.text,i=t.textClassName,s=!YE(f)||!YE(r);return St.createElement(St.Fragment,null,l&&St.createElement(cG,{className:NEe,size:Wb.SMALL}),St.createElement(fl,{icon:a}),s&&St.createElement(jk,{className:Di(FEe,i),ellipsize:e,tagName:"span"},f,r),St.createElement(fl,{icon:n??o}))}function t0(t,r){return St.forwardRef(function(e,n){var a=e.className,l=e.children,o=Ps(e,["className","children"]);return St.createElement(t,qn(qn({},o),{className:Di(r,a),ref:n}),l)})}t0("h1",m3);t0("h2",m3);t0("h3",m3);var S4e=t0("h4",m3);t0("h5",m3);var E4e=t0("h6",m3);t0("blockquote",LEe);t0("code",OEe);t0("pre",kEe);var M4e=t0("label",The);t0("ol",mhe);t0("ul",mhe);function fG(t,r){if(t==null)return{};var e={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(r.indexOf(n)!==-1)continue;e[n]=t[n]}return e}var Khe={exports:{}},R4e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",P4e=R4e,L4e=P4e;function Qhe(){}function Jhe(){}Jhe.resetWarningCache=Qhe;var O4e=function(){function t(n,a,l,o,f,i){if(i!==L4e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}t.isRequired=t;function r(){return t}var e={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:r,element:t,elementType:t,instanceOf:r,node:t,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:Jhe,resetWarningCache:Qhe};return e.PropTypes=e,e};Khe.exports=O4e();var k4e=Khe.exports;function D4e(t,r){return t.classList?!!r&&t.classList.contains(r):(" "+(t.className.baseVal||t.className)+" ").indexOf(" "+r+" ")!==-1}function N4e(t,r){t.classList?t.classList.add(r):D4e(t,r)||(typeof t.className=="string"?t.className=t.className+" "+r:t.setAttribute("class",(t.className&&t.className.baseVal||"")+" "+r))}function jK(t,r){return t.replace(new RegExp("(^|\\s)"+r+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function F4e(t,r){t.classList?t.classList.remove(r):typeof t.className=="string"?t.className=jK(t.className,r):t.setAttribute("class",jK(t.className&&t.className.baseVal||"",r))}const VK={disabled:!1},lO=so.createContext(null);var qhe=function(r){return r.scrollTop},PS="unmounted",Ab="exited",Cb="entering",v2="entered",nU="exiting",dA=function(t){oI(r,t);function r(n,a){var l;l=t.call(this,n,a)||this;var o=a,f=o&&!o.isMounting?n.enter:n.appear,i;return l.appearStatus=null,n.in?f?(i=Ab,l.appearStatus=Cb):i=v2:n.unmountOnExit||n.mountOnEnter?i=PS:i=Ab,l.state={status:i},l.nextCallback=null,l}r.getDerivedStateFromProps=function(a,l){var o=a.in;return o&&l.status===PS?{status:Ab}:null};var e=r.prototype;return e.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},e.componentDidUpdate=function(a){var l=null;if(a!==this.props){var o=this.state.status;this.props.in?o!==Cb&&o!==v2&&(l=Cb):(o===Cb||o===v2)&&(l=nU)}this.updateStatus(!1,l)},e.componentWillUnmount=function(){this.cancelNextCallback()},e.getTimeouts=function(){var a=this.props.timeout,l,o,f;return l=o=f=a,a!=null&&typeof a!="number"&&(l=a.exit,o=a.enter,f=a.appear!==void 0?a.appear:o),{exit:l,enter:o,appear:f}},e.updateStatus=function(a,l){if(a===void 0&&(a=!1),l!==null)if(this.cancelNextCallback(),l===Cb){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:P2.findDOMNode(this);o&&qhe(o)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ab&&this.setState({status:PS})},e.performEnter=function(a){var l=this,o=this.props.enter,f=this.context?this.context.isMounting:a,i=this.props.nodeRef?[f]:[P2.findDOMNode(this),f],s=i[0],d=i[1],u=this.getTimeouts(),h=f?u.appear:u.enter;if(!a&&!o||VK.disabled){this.safeSetState({status:v2},function(){l.props.onEntered(s)});return}this.props.onEnter(s,d),this.safeSetState({status:Cb},function(){l.props.onEntering(s,d),l.onTransitionEnd(h,function(){l.safeSetState({status:v2},function(){l.props.onEntered(s,d)})})})},e.performExit=function(){var a=this,l=this.props.exit,o=this.getTimeouts(),f=this.props.nodeRef?void 0:P2.findDOMNode(this);if(!l||VK.disabled){this.safeSetState({status:Ab},function(){a.props.onExited(f)});return}this.props.onExit(f),this.safeSetState({status:nU},function(){a.props.onExiting(f),a.onTransitionEnd(o.exit,function(){a.safeSetState({status:Ab},function(){a.props.onExited(f)})})})},e.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},e.safeSetState=function(a,l){l=this.setNextCallback(l),this.setState(a,l)},e.setNextCallback=function(a){var l=this,o=!0;return this.nextCallback=function(f){o&&(o=!1,l.nextCallback=null,a(f))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},e.onTransitionEnd=function(a,l){this.setNextCallback(l);var o=this.props.nodeRef?this.props.nodeRef.current:P2.findDOMNode(this),f=a==null&&!this.props.addEndListener;if(!o||f){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],s=i[0],d=i[1];this.props.addEndListener(s,d)}a!=null&&setTimeout(this.nextCallback,a)},e.render=function(){var a=this.state.status;if(a===PS)return null;var l=this.props,o=l.children;l.in,l.mountOnEnter,l.unmountOnExit,l.appear,l.enter,l.exit,l.timeout,l.addEndListener,l.onEnter,l.onEntering,l.onEntered,l.onExit,l.onExiting,l.onExited,l.nodeRef;var f=fG(l,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return so.createElement(lO.Provider,{value:null},typeof o=="function"?o(a,f):so.cloneElement(so.Children.only(o),f))},r}(so.Component);dA.contextType=lO;dA.propTypes={};function jw(){}dA.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:jw,onEntering:jw,onEntered:jw,onExit:jw,onExiting:jw,onExited:jw};dA.UNMOUNTED=PS;dA.EXITED=Ab;dA.ENTERING=Cb;dA.ENTERED=v2;dA.EXITING=nU;var z4e=function(r,e){return r&&e&&e.split(" ").forEach(function(n){return N4e(r,n)})},BN=function(r,e){return r&&e&&e.split(" ").forEach(function(n){return F4e(r,n)})},eE=function(t){oI(r,t);function r(){for(var n,a=arguments.length,l=new Array(a),o=0;o<a;o++)l[o]=arguments[o];return n=t.call.apply(t,[this].concat(l))||this,n.appliedClasses={appear:{},enter:{},exit:{}},n.onEnter=function(f,i){var s=n.resolveArguments(f,i),d=s[0],u=s[1];n.removeClasses(d,"exit"),n.addClass(d,u?"appear":"enter","base"),n.props.onEnter&&n.props.onEnter(f,i)},n.onEntering=function(f,i){var s=n.resolveArguments(f,i),d=s[0],u=s[1],h=u?"appear":"enter";n.addClass(d,h,"active"),n.props.onEntering&&n.props.onEntering(f,i)},n.onEntered=function(f,i){var s=n.resolveArguments(f,i),d=s[0],u=s[1],h=u?"appear":"enter";n.removeClasses(d,h),n.addClass(d,h,"done"),n.props.onEntered&&n.props.onEntered(f,i)},n.onExit=function(f){var i=n.resolveArguments(f),s=i[0];n.removeClasses(s,"appear"),n.removeClasses(s,"enter"),n.addClass(s,"exit","base"),n.props.onExit&&n.props.onExit(f)},n.onExiting=function(f){var i=n.resolveArguments(f),s=i[0];n.addClass(s,"exit","active"),n.props.onExiting&&n.props.onExiting(f)},n.onExited=function(f){var i=n.resolveArguments(f),s=i[0];n.removeClasses(s,"exit"),n.addClass(s,"exit","done"),n.props.onExited&&n.props.onExited(f)},n.resolveArguments=function(f,i){return n.props.nodeRef?[n.props.nodeRef.current,f]:[f,i]},n.getClassNames=function(f){var i=n.props.classNames,s=typeof i=="string",d=s&&i?i+"-":"",u=s?""+d+f:i[f],h=s?u+"-active":i[f+"Active"],y=s?u+"-done":i[f+"Done"];return{baseClassName:u,activeClassName:h,doneClassName:y}},n}var e=r.prototype;return e.addClass=function(a,l,o){var f=this.getClassNames(l)[o+"ClassName"],i=this.getClassNames("enter"),s=i.doneClassName;l==="appear"&&o==="done"&&s&&(f+=" "+s),o==="active"&&a&&qhe(a),f&&(this.appliedClasses[l][o]=f,z4e(a,f))},e.removeClasses=function(a,l){var o=this.appliedClasses[l],f=o.base,i=o.active,s=o.done;this.appliedClasses[l]={},f&&BN(a,f),i&&BN(a,i),s&&BN(a,s)},e.render=function(){var a=this.props;a.classNames;var l=fG(a,["classNames"]);return so.createElement(dA,Dl({},l,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},r}(so.Component);eE.defaultProps={classNames:""};eE.propTypes={};function B4e(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function hG(t,r){var e=function(l){return r&&St.isValidElement(l)?r(l):l},n=Object.create(null);return t&&St.Children.map(t,function(a){return a}).forEach(function(a){n[a.key]=e(a)}),n}function $4e(t,r){t=t||{},r=r||{};function e(d){return d in r?r[d]:t[d]}var n=Object.create(null),a=[];for(var l in t)l in r?a.length&&(n[l]=a,a=[]):a.push(l);var o,f={};for(var i in r){if(n[i])for(o=0;o<n[i].length;o++){var s=n[i][o];f[n[i][o]]=e(s)}f[i]=e(i)}for(o=0;o<a.length;o++)f[a[o]]=e(a[o]);return f}function kb(t,r,e){return e[r]!=null?e[r]:t.props[r]}function U4e(t,r){return hG(t.children,function(e){return St.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:kb(e,"appear",t),enter:kb(e,"enter",t),exit:kb(e,"exit",t)})})}function H4e(t,r,e){var n=hG(t.children),a=$4e(r,n);return Object.keys(a).forEach(function(l){var o=a[l];if(St.isValidElement(o)){var f=l in r,i=l in n,s=r[l],d=St.isValidElement(s)&&!s.props.in;i&&(!f||d)?a[l]=St.cloneElement(o,{onExited:e.bind(null,o),in:!0,exit:kb(o,"exit",t),enter:kb(o,"enter",t)}):!i&&f&&!d?a[l]=St.cloneElement(o,{in:!1}):i&&f&&St.isValidElement(s)&&(a[l]=St.cloneElement(o,{onExited:e.bind(null,o),in:s.props.in,exit:kb(o,"exit",t),enter:kb(o,"enter",t)}))}}),a}var j4e=Object.values||function(t){return Object.keys(t).map(function(r){return t[r]})},V4e={component:"div",childFactory:function(r){return r}},dG=function(t){oI(r,t);function r(n,a){var l;l=t.call(this,n,a)||this;var o=l.handleExited.bind(B4e(l));return l.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},l}var e=r.prototype;return e.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},e.componentWillUnmount=function(){this.mounted=!1},r.getDerivedStateFromProps=function(a,l){var o=l.children,f=l.handleExited,i=l.firstRender;return{children:i?U4e(a,f):H4e(a,o,f),firstRender:!1}},e.handleExited=function(a,l){var o=hG(this.props.children);a.key in o||(a.props.onExited&&a.props.onExited(l),this.mounted&&this.setState(function(f){var i=Dl({},f.children);return delete i[a.key],{children:i}}))},e.render=function(){var a=this.props,l=a.component,o=a.childFactory,f=fG(a,["component","childFactory"]),i=this.state.contextValue,s=j4e(this.state.children).map(o);return delete f.appear,delete f.enter,delete f.exit,l===null?so.createElement(lO.Provider,{value:i},s):so.createElement(lO.Provider,{value:i},so.createElement(l,f,s))},r}(so.Component);dG.propTypes={};dG.defaultProps=V4e;var G4e=function(){var t=1,r=new WeakMap,e=function(n,a){return typeof n=="number"||typeof n=="string"?a?"idx-".concat(a):"val-".concat(n):r.has(n)?"uid"+r.get(n):(r.set(n,t++),e(n))};return e},ede=function(t){return t===void 0&&(t=""),{value:1,prefix:t,uid:G4e()}},W4e=ede(),Z4e=St.createContext(ede()),Y4e=function(t){return t.value++},X4e=function(t){return t?t.prefix:""},K4e=function(t){var r=t||W4e,e=X4e(r),n=Y4e(r),a=e+n,l=function(o){return a+r.uid(o)};return{uid:a,gen:l}},Q4e=function(){var t=St.useContext(Z4e),r=St.useState(function(){return K4e(t)})[0];return r},J4e=function(){var t=Q4e().uid;return t},tde=St.createContext({hasProvider:!1,stack:{current:[]}}),q4e=function(t){var r=t.children,e=St.useRef([]),n=St.useMemo(function(){return{hasProvider:!0,stack:e}},[e]);return St.createElement(tde.Provider,{value:n},r)},rde={exports:{}},nde={};/**
|
72
|
+
*/(function(t){(function(){var r={}.hasOwnProperty;function e(){for(var l="",o=0;o<arguments.length;o++){var f=arguments[o];f&&(l=a(l,n(f)))}return l}function n(l){if(typeof l=="string"||typeof l=="number")return l;if(typeof l!="object")return"";if(Array.isArray(l))return e.apply(null,l);if(l.toString!==Object.prototype.toString&&!l.toString.toString().includes("[native code]"))return l.toString();var o="";for(var f in l)r.call(l,f)&&l[f]&&(o=a(o,f));return o}function a(l,o){return o?l?l+" "+o:l+o:l}t.exports?(e.default=e,t.exports=e):window.classNames=e})()})(Hhe);var i4e=Hhe.exports;const Di=ny(i4e);function jhe(t,r){r===void 0&&(r=[]),St.useEffect(function(){Zy("production")||t()},r)}var a4e={defaultTabIndex:void 0,disabledTabIndex:-1};function Vhe(t,r,e,n){n===void 0&&(n=a4e);var a=n.defaultTabIndex,l=n.disabledTabIndex,o=r.active,f=r.onClick,i=r.onFocus,s=r.onKeyDown,d=r.onKeyUp,u=r.onBlur,h=r.tabIndex,y=h===void 0?a:h,b=St.useState(),C=b[0],m=b[1],c=St.useState(!1),v=c[0],g=c[1],p=St.useRef(null),I=St.useCallback(function(E){v&&g(!1),u==null||u(E)},[v,u]),A=St.useCallback(function(E){OT(E)&&(E.preventDefault(),E.key!==C&&g(!0)),m(E.key),s==null||s(E)},[C,s]),_=St.useCallback(function(E){var x;OT(E)&&(g(!1),(x=p.current)===null||x===void 0||x.click()),m(void 0),d==null||d(E)},[d,p]),w=t&&(o||v);return[w,{onBlur:I,onClick:t?f:void 0,onFocus:t?i:void 0,onKeyDown:A,onKeyUp:_,ref:q1(p,e),tabIndex:t?y:l}]}function o4e(t){return t.toLowerCase()}var s4e=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],l4e=/[^A-Z0-9]+/gi;function Ghe(t,r){r===void 0&&(r={});for(var e=r.splitRegexp,n=e===void 0?s4e:e,a=r.stripRegexp,l=a===void 0?l4e:a,o=r.transform,f=o===void 0?o4e:o,i=r.delimiter,s=i===void 0?" ":i,d=NK(NK(t,n,"$1\0$2"),l,"\0"),u=0,h=d.length;d.charAt(u)==="\0";)u++;for(;d.charAt(h-1)==="\0";)h--;return d.slice(u,h).split("\0").map(f).join(s)}function NK(t,r,e){return r instanceof RegExp?t.replace(r,e):r.reduce(function(n,a){return n.replace(a,e)},t)}function u4e(t,r){var e=t.charAt(0),n=t.substr(1).toLowerCase();return r>0&&e>="0"&&e<="9"?"_"+e+n:""+e.toUpperCase()+n}function c4e(t,r){return r===void 0&&(r={}),Ghe(t,qn({delimiter:"",transform:u4e},r))}function f4e(t,r){return r===void 0&&(r={}),Ghe(t,qn({delimiter:"."},r))}function h4e(t,r){return r===void 0&&(r={}),f4e(t,qn({delimiter:"_"},r))}var Na;(function(t){t[t.STANDARD=16]="STANDARD",t[t.LARGE=20]="LARGE"})(Na||(Na={}));const d4e="modulepreload",v4e=function(t){return"/"+t},FK={},zK=function(r,e,n){let a=Promise.resolve();if(e&&e.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),f=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));a=Promise.allSettled(e.map(i=>{if(i=v4e(i),i in FK)return;FK[i]=!0;const s=i.endsWith(".css"),d=s?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${i}"]${d}`))return;const u=document.createElement("link");if(u.rel=s?"stylesheet":d4e,s||(u.as="script"),u.crossOrigin="",u.href=i,f&&u.setAttribute("nonce",f),document.head.appendChild(u),s)return new Promise((h,y)=>{u.addEventListener("load",h),u.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${i}`)))})}))}function l(o){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=o,window.dispatchEvent(f),!f.defaultPrevented)throw o}return a.then(o=>{for(const f of o||[])f.status==="rejected"&&l(f.reason);return r().catch(l)})};var Qt,Kt;(function(t){t.AddClip="add-clip",t.AddColumnLeft="add-column-left",t.AddColumnRight="add-column-right",t.AddLocation="add-location",t.AddRowBottom="add-row-bottom",t.AddRowTop="add-row-top",t.AddToArtifact="add-to-artifact",t.AddToFolder="add-to-folder",t.Add="add",t.AimpointsTarget="aimpoints-target",t.Airplane="airplane",t.AlignCenter="align-center",t.AlignJustify="align-justify",t.AlignLeft="align-left",t.AlignRight="align-right",t.AlignmentBottom="alignment-bottom",t.AlignmentHorizontalCenter="alignment-horizontal-center",t.AlignmentLeft="alignment-left",t.AlignmentRight="alignment-right",t.AlignmentTop="alignment-top",t.AlignmentVerticalCenter="alignment-vertical-center",t.Ammunition="ammunition",t.Anchor="anchor",t.Annotation="annotation",t.Announcement="announcement",t.Antenna="antenna",t.AppHeader="app-header",t.Application="application",t.Applications="applications",t.Archive="archive",t.AreaOfInterest="area-of-interest",t.ArrayBoolean="array-boolean",t.ArrayDate="array-date",t.ArrayFloatingPoint="array-floating-point",t.ArrayNumeric="array-numeric",t.ArrayObject="array-object",t.ArrayString="array-string",t.ArrayTimestamp="array-timestamp",t.Array="array",t.ArrowBottomLeft="arrow-bottom-left",t.ArrowBottomRight="arrow-bottom-right",t.ArrowDown="arrow-down",t.ArrowLeft="arrow-left",t.ArrowRight="arrow-right",t.ArrowTopLeft="arrow-top-left",t.ArrowTopRight="arrow-top-right",t.ArrowUp="arrow-up",t.ArrowsArc="arrows-arc",t.ArrowsHorizontal="arrows-horizontal",t.ArrowsVertical="arrows-vertical",t.Asterisk="asterisk",t.At="at",t.AutomaticUpdates="automatic-updates",t.Axle="axle",t.Backlink="backlink",t.BackwardTen="backward-ten",t.Badge="badge",t.BanCircle="ban-circle",t.BankAccount="bank-account",t.Barcode="barcode",t.BinaryNumber="binary-number",t.Blank="blank",t.BlockPromote="block-promote",t.BlockedPerson="blocked-person",t.Bold="bold",t.Book="book",t.Bookmark="bookmark",t.Box="box",t.Briefcase="briefcase",t.BringData="bring-data",t.BringForward="bring-forward",t.BritishPound="british-pound",t.Bug="bug",t.Buggy="buggy",t.Build="build",t.Bullseye="bullseye",t.Calculator="calculator",t.Calendar="calendar",t.Camera="camera",t.CaretDown="caret-down",t.CaretLeft="caret-left",t.CaretRight="caret-right",t.CaretUp="caret-up",t.CargoShip="cargo-ship",t.CellTower="cell-tower",t.Changes="changes",t.Chart="chart",t.Chat="chat",t.ChevronBackward="chevron-backward",t.ChevronDown="chevron-down",t.ChevronForward="chevron-forward",t.ChevronLeft="chevron-left",t.ChevronRight="chevron-right",t.ChevronUp="chevron-up",t.CircleArrowDown="circle-arrow-down",t.CircleArrowLeft="circle-arrow-left",t.CircleArrowRight="circle-arrow-right",t.CircleArrowUp="circle-arrow-up",t.Circle="circle",t.Citation="citation",t.Clean="clean",t.Clip="clip",t.ClipboardFile="clipboard-file",t.Clipboard="clipboard",t.CloudDownload="cloud-download",t.CloudServer="cloud-server",t.CloudTick="cloud-tick",t.CloudUpload="cloud-upload",t.Cloud="cloud",t.CodeBlock="code-block",t.Code="code",t.Cog="cog",t.CollapseAll="collapse-all",t.ColorFill="color-fill",t.ColumnLayout="column-layout",t.Comment="comment",t.Comparison="comparison",t.Compass="compass",t.Compressed="compressed",t.Confirm="confirm",t.Console="console",t.Construction="construction",t.Contrast="contrast",t.Control="control",t.CreditCard="credit-card",t.Crop="crop",t.CrossCircle="cross-circle",t.Cross="cross",t.Crown="crown",t.CssStyle="css-style",t.CubeAdd="cube-add",t.CubeEdit="cube-edit",t.CubeRemove="cube-remove",t.Cube="cube",t.Cubes="cubes",t.CurlyBraces="curly-braces",t.CurvedRangeChart="curved-range-chart",t.Cut="cut",t.Cycle="cycle",t.Dashboard="dashboard",t.DataCloud="data-cloud",t.DataConnection="data-connection",t.DataLineage="data-lineage",t.DataSearch="data-search",t.DataSync="data-sync",t.Database="database",t.Delete="delete",t.Delta="delta",t.DeriveColumn="derive-column",t.Desktop="desktop",t.Detection="detection",t.Diagnosis="diagnosis",t.DiagramTree="diagram-tree",t.DirectionLeft="direction-left",t.DirectionRight="direction-right",t.Disable="disable",t.Divide="divide",t.DocumentOpen="document-open",t.DocumentShare="document-share",t.Document="document",t.Dollar="dollar",t.Dot="dot",t.DoubleCaretHorizontal="double-caret-horizontal",t.DoubleCaretVertical="double-caret-vertical",t.DoubleChevronDown="double-chevron-down",t.DoubleChevronLeft="double-chevron-left",t.DoubleChevronRight="double-chevron-right",t.DoubleChevronUp="double-chevron-up",t.DoughnutChart="doughnut-chart",t.Download="download",t.DragHandleHorizontal="drag-handle-horizontal",t.DragHandleVertical="drag-handle-vertical",t.Draw="draw",t.DrawerLeftFilled="drawer-left-filled",t.DrawerLeft="drawer-left",t.DrawerRightFilled="drawer-right-filled",t.DrawerRight="drawer-right",t.DriveTime="drive-time",t.Duplicate="duplicate",t.Edit="edit",t.Eject="eject",t.Emoji="emoji",t.Endnote="endnote",t.Endorsed="endorsed",t.Envelope="envelope",t.Equals="equals",t.Eraser="eraser",t.Error="error",t.Euro="euro",t.Excavator="excavator",t.Exchange="exchange",t.ExcludeRow="exclude-row",t.ExpandAll="expand-all",t.Explain="explain",t.Export="export",t.EyeOff="eye-off",t.EyeOn="eye-on",t.EyeOpen="eye-open",t.FastBackward="fast-backward",t.FastForward="fast-forward",t.FeedSubscribed="feed-subscribed",t.Feed="feed",t.FighterJet="fighter-jet",t.Film="film",t.FilterKeep="filter-keep",t.FilterList="filter-list",t.FilterOpen="filter-open",t.FilterRemove="filter-remove",t.FilterSortAsc="filter-sort-asc",t.FilterSortDesc="filter-sort-desc",t.Filter="filter",t.Flag="flag",t.Flame="flame",t.Flash="flash",t.FloatingPoint="floating-point",t.FloppyDisk="floppy-disk",t.FlowBranch="flow-branch",t.FlowEnd="flow-end",t.FlowLinear="flow-linear",t.FlowReviewBranch="flow-review-branch",t.FlowReview="flow-review",t.Flows="flows",t.FolderClose="folder-close",t.FolderNew="folder-new",t.FolderOpen="folder-open",t.FolderSharedOpen="folder-shared-open",t.FolderShared="folder-shared",t.Follower="follower",t.Following="following",t.Font="font",t.Fork="fork",t.Form="form",t.ForwardTen="forward-ten",t.Fuel="fuel",t.FullCircle="full-circle",t.FullStackedChart="full-stacked-chart",t.Fullscreen="fullscreen",t.Function="function",t.GanttChart="gantt-chart",t.Generate="generate",t.Geofence="geofence",t.Geolocation="geolocation",t.Geosearch="geosearch",t.Geotime="geotime",t.GitBranch="git-branch",t.GitCommit="git-commit",t.GitMerge="git-merge",t.GitNewBranch="git-new-branch",t.GitPull="git-pull",t.GitPush="git-push",t.GitRepo="git-repo",t.Glass="glass",t.GlobeNetworkAdd="globe-network-add",t.GlobeNetwork="globe-network",t.Globe="globe",t.GraphRemove="graph-remove",t.Graph="graph",t.GreaterThanOrEqualTo="greater-than-or-equal-to",t.GreaterThan="greater-than",t.GridView="grid-view",t.Grid="grid",t.GroupItem="group-item",t.GroupObjects="group-objects",t.GroupedBarChart="grouped-bar-chart",t.HandDown="hand-down",t.HandLeft="hand-left",t.HandRight="hand-right",t.HandUp="hand-up",t.Hand="hand",t.Hat="hat",t.HeaderOne="header-one",t.HeaderThree="header-three",t.HeaderTwo="header-two",t.Header="header",t.Headset="headset",t.HeartBroken="heart-broken",t.Heart="heart",t.HeatGrid="heat-grid",t.Heatmap="heatmap",t.Helicopter="helicopter",t.Help="help",t.HelperManagement="helper-management",t.Hexagon="hexagon",t.HighPriority="high-priority",t.HighVoltagePole="high-voltage-pole",t.Highlight="highlight",t.History="history",t.Home="home",t.HorizontalBarChartAsc="horizontal-bar-chart-asc",t.HorizontalBarChartDesc="horizontal-bar-chart-desc",t.HorizontalBarChart="horizontal-bar-chart",t.HorizontalDistribution="horizontal-distribution",t.HorizontalInbetween="horizontal-inbetween",t.Hurricane="hurricane",t.IdNumber="id-number",t.ImageRotateLeft="image-rotate-left",t.ImageRotateRight="image-rotate-right",t.Import="import",t.InboxFiltered="inbox-filtered",t.InboxGeo="inbox-geo",t.InboxSearch="inbox-search",t.InboxUpdate="inbox-update",t.Inbox="inbox",t.InfoSign="info-sign",t.Inheritance="inheritance",t.InheritedGroup="inherited-group",t.InnerJoin="inner-join",t.Input="input",t.Insert="insert",t.Intelligence="intelligence",t.Intersection="intersection",t.IpAddress="ip-address",t.IssueClosed="issue-closed",t.IssueNew="issue-new",t.Issue="issue",t.Italic="italic",t.JoinTable="join-table",t.KeyBackspace="key-backspace",t.KeyCommand="key-command",t.KeyControl="key-control",t.KeyDelete="key-delete",t.KeyEnter="key-enter",t.KeyEscape="key-escape",t.KeyOption="key-option",t.KeyShift="key-shift",t.KeyTab="key-tab",t.Key="key",t.KnownVehicle="known-vehicle",t.LabTest="lab-test",t.Label="label",t.LayerOutline="layer-outline",t.Layer="layer",t.Layers="layers",t.LayoutAuto="layout-auto",t.LayoutBalloon="layout-balloon",t.LayoutBottomRowThreeTiles="layout-bottom-row-three-tiles",t.LayoutBottomRowTwoTiles="layout-bottom-row-two-tiles",t.LayoutCircle="layout-circle",t.LayoutGrid="layout-grid",t.LayoutGroupBy="layout-group-by",t.LayoutHierarchy="layout-hierarchy",t.LayoutLeftColumnThreeTiles="layout-left-column-three-tiles",t.LayoutLeftColumnTwoTiles="layout-left-column-two-tiles",t.LayoutLinear="layout-linear",t.LayoutRightColumnThreeTiles="layout-right-column-three-tiles",t.LayoutRightColumnTwoTiles="layout-right-column-two-tiles",t.LayoutSkewGrid="layout-skew-grid",t.LayoutSortedClusters="layout-sorted-clusters",t.LayoutThreeColumns="layout-three-columns",t.LayoutThreeRows="layout-three-rows",t.LayoutTopRowThreeTiles="layout-top-row-three-tiles",t.LayoutTopRowTwoTiles="layout-top-row-two-tiles",t.LayoutTwoColumns="layout-two-columns",t.LayoutTwoRows="layout-two-rows",t.Layout="layout",t.Learning="learning",t.LeftJoin="left-join",t.LengthenText="lengthen-text",t.LessThanOrEqualTo="less-than-or-equal-to",t.LessThan="less-than",t.Lifesaver="lifesaver",t.Lightbulb="lightbulb",t.Lightning="lightning",t.Link="link",t.LinkedSquares="linked-squares",t.ListColumns="list-columns",t.ListDetailView="list-detail-view",t.List="list",t.Locate="locate",t.Lock="lock",t.Locomotive="locomotive",t.LogIn="log-in",t.LogOut="log-out",t.LowVoltagePole="low-voltage-pole",t.Manual="manual",t.ManuallyEnteredData="manually-entered-data",t.ManyToMany="many-to-many",t.ManyToOne="many-to-one",t.MapCreate="map-create",t.MapMarker="map-marker",t.Map="map",t.Maximize="maximize",t.Media="media",t.MenuClosed="menu-closed",t.MenuOpen="menu-open",t.Menu="menu",t.MergeColumns="merge-columns",t.MergeLinks="merge-links",t.Microphone="microphone",t.Minimize="minimize",t.Minus="minus",t.MobilePhone="mobile-phone",t.MobileVideo="mobile-video",t.ModalFilled="modal-filled",t.Modal="modal",t.Model="model",t.Moon="moon",t.More="more",t.Mountain="mountain",t.Move="move",t.Mugshot="mugshot",t.MultiSelect="multi-select",t.Music="music",t.Nest="nest",t.NewDrawing="new-drawing",t.NewGridItem="new-grid-item",t.NewLayer="new-layer",t.NewLayers="new-layers",t.NewLink="new-link",t.NewObject="new-object",t.NewPerson="new-person",t.NewPrescription="new-prescription",t.NewShield="new-shield",t.NewTextBox="new-text-box",t.Ninja="ninja",t.NotEqualTo="not-equal-to",t.NotificationsAdd="notifications-add",t.NotificationsSnooze="notifications-snooze",t.NotificationsUpdated="notifications-updated",t.Notifications="notifications",t.NumberedList="numbered-list",t.Numerical="numerical",t.ObjectView="object-view",t.Office="office",t.Offline="offline",t.OilField="oil-field",t.OneColumn="one-column",t.OneToMany="one-to-many",t.OneToOne="one-to-one",t.OpenApplication="open-application",t.Outdated="outdated",t.Output="output",t.Package="package",t.PageLayout="page-layout",t.PanelStats="panel-stats",t.PanelTable="panel-table",t.Panel="panel",t.Paperclip="paperclip",t.Paragraph="paragraph",t.PasteVariable="paste-variable",t.PathSearch="path-search",t.Path="path",t.Pause="pause",t.People="people",t.Percentage="percentage",t.Person="person",t.PhoneCall="phone-call",t.PhoneForward="phone-forward",t.PhoneSearch="phone-search",t.Phone="phone",t.PieChart="pie-chart",t.Pill="pill",t.Pin="pin",t.Pistol="pistol",t.PivotTable="pivot-table",t.Pivot="pivot",t.Play="play",t.Playbook="playbook",t.Plus="plus",t.PolygonFilter="polygon-filter",t.Power="power",t.PredictiveAnalysis="predictive-analysis",t.Prescription="prescription",t.Presentation="presentation",t.Print="print",t.Projects="projects",t.Properties="properties",t.Property="property",t.PublishFunction="publish-function",t.Pulse="pulse",t.Rain="rain",t.Random="random",t.RangeRing="range-ring",t.Record="record",t.RectHeight="rect-height",t.RectWidth="rect-width",t.Rectangle="rectangle",t.Redo="redo",t.Refresh="refresh",t.Regex="regex",t.RegressionChart="regression-chart",t.RemoveColumnLeft="remove-column-left",t.RemoveColumnRight="remove-column-right",t.RemoveColumn="remove-column",t.RemoveRowBottom="remove-row-bottom",t.RemoveRowTop="remove-row-top",t.Remove="remove",t.Repeat="repeat",t.Reset="reset",t.Resolve="resolve",t.Rig="rig",t.RightJoin="right-join",t.Ring="ring",t.RocketSlant="rocket-slant",t.Rocket="rocket",t.RotateCcw="rotate-ccw",t.RotateCw="rotate-cw",t.RotateDocument="rotate-document",t.RotatePage="rotate-page",t.Route="route",t.RunHistory="run-history",t.Satellite="satellite",t.Saved="saved",t.ScatterPlot="scatter-plot",t.SearchAround="search-around",t.SearchTemplate="search-template",t.SearchText="search-text",t.Search="search",t.SegmentedControl="segmented-control",t.Select="select",t.SelectionBoxAdd="selection-box-add",t.SelectionBoxEdit="selection-box-edit",t.SelectionBox="selection-box",t.Selection="selection",t.SendBackward="send-backward",t.SendMessage="send-message",t.SendToGraph="send-to-graph",t.SendToMap="send-to-map",t.SendTo="send-to",t.Sensor="sensor",t.SeriesAdd="series-add",t.SeriesConfiguration="series-configuration",t.SeriesDerived="series-derived",t.SeriesFiltered="series-filtered",t.SeriesSearch="series-search",t.ServerInstall="server-install",t.Server="server",t.Settings="settings",t.Shapes="shapes",t.Share="share",t.SharedFilter="shared-filter",t.Shield="shield",t.Ship="ship",t.Shop="shop",t.ShoppingCart="shopping-cart",t.ShortenText="shorten-text",t.SignalSearch="signal-search",t.SimCard="sim-card",t.Slash="slash",t.SmallCross="small-cross",t.SmallInfoSign="small-info-sign",t.SmallMinus="small-minus",t.SmallPlus="small-plus",t.SmallSquare="small-square",t.SmallTick="small-tick",t.Snowflake="snowflake",t.SoccerBall="soccer-ball",t.SocialMedia="social-media",t.SortAlphabeticalDesc="sort-alphabetical-desc",t.SortAlphabetical="sort-alphabetical",t.SortAsc="sort-asc",t.SortDesc="sort-desc",t.SortNumericalDesc="sort-numerical-desc",t.SortNumerical="sort-numerical",t.Sort="sort",t.SpellCheck="spell-check",t.SplitColumns="split-columns",t.SportsStadium="sports-stadium",t.Square="square",t.StackedChart="stacked-chart",t.StadiumGeometry="stadium-geometry",t.StarEmpty="star-empty",t.Star="star",t.StepBackward="step-backward",t.StepChart="step-chart",t.StepForward="step-forward",t.Stop="stop",t.Stopwatch="stopwatch",t.Strikethrough="strikethrough",t.Style="style",t.Subscript="subscript",t.SubtractRightJoin="subtract-right-join",t.Superscript="superscript",t.SwapHorizontal="swap-horizontal",t.SwapVertical="swap-vertical",t.Switch="switch",t.SymbolCircle="symbol-circle",t.SymbolCross="symbol-cross",t.SymbolDiamond="symbol-diamond",t.SymbolRectangle="symbol-rectangle",t.SymbolSquare="symbol-square",t.SymbolTriangleDown="symbol-triangle-down",t.SymbolTriangleUp="symbol-triangle-up",t.Syringe="syringe",t.TableSync="table-sync",t.TagAdd="tag-add",t.TagPromote="tag-promote",t.TagRefresh="tag-refresh",t.TagUndo="tag-undo",t.Tag="tag",t.Tags="tags",t.TakeAction="take-action",t.Tank="tank",t.Target="target",t.Taxi="taxi",t.Team="team",t.Temperature="temperature",t.TextHighlight="text-highlight",t.ThAdd="th-add",t.ThDerived="th-derived",t.ThDisconnect="th-disconnect",t.ThFiltered="th-filtered",t.ThListAdd="th-list-add",t.ThList="th-list",t.ThVirtualAdd="th-virtual-add",t.ThVirtual="th-virtual",t.Th="th",t.ThirdParty="third-party",t.ThumbsDown="thumbs-down",t.ThumbsUp="thumbs-up",t.TickCircle="tick-circle",t.Tick="tick",t.Time="time",t.TimelineAreaChart="timeline-area-chart",t.TimelineBarChart="timeline-bar-chart",t.TimelineEvents="timeline-events",t.TimelineLineChart="timeline-line-chart",t.Tint="tint",t.Torch="torch",t.Tractor="tractor",t.Train="train",t.Translate="translate",t.Trash="trash",t.Tree="tree",t.TrendingDown="trending-down",t.TrendingUp="trending-up",t.Trophy="trophy",t.Truck="truck",t.TwoColumns="two-columns",t.Unarchive="unarchive",t.Underline="underline",t.Undo="undo",t.UngroupObjects="ungroup-objects",t.UnknownVehicle="unknown-vehicle",t.Unlink="unlink",t.Unlock="unlock",t.Unpin="unpin",t.Unresolve="unresolve",t.Updated="updated",t.Upload="upload",t.User="user",t.Variable="variable",t.Vector="vector",t.VerticalBarChartAsc="vertical-bar-chart-asc",t.VerticalBarChartDesc="vertical-bar-chart-desc",t.VerticalDistribution="vertical-distribution",t.VerticalInbetween="vertical-inbetween",t.Video="video",t.Virus="virus",t.VolumeDown="volume-down",t.VolumeOff="volume-off",t.VolumeUp="volume-up",t.Walk="walk",t.WarningSign="warning-sign",t.WaterfallChart="waterfall-chart",t.Waves="waves",t.WidgetButton="widget-button",t.WidgetFooter="widget-footer",t.WidgetHeader="widget-header",t.Widget="widget",t.Wind="wind",t.WrenchRedo="wrench-redo",t.WrenchSnooze="wrench-snooze",t.WrenchTime="wrench-time",t.Wrench="wrench",t.ZoomIn="zoom-in",t.ZoomOut="zoom-out",t.ZoomToFit="zoom-to-fit"})(Kt||(Kt={}));Qt={},Qt[Kt.AddClip]="61697",Qt[Kt.AddColumnLeft]="61698",Qt[Kt.AddColumnRight]="61699",Qt[Kt.AddLocation]="61700",Qt[Kt.AddRowBottom]="61701",Qt[Kt.AddRowTop]="61702",Qt[Kt.AddToArtifact]="61703",Qt[Kt.AddToFolder]="61704",Qt[Kt.Add]="61705",Qt[Kt.AimpointsTarget]="62261",Qt[Kt.Airplane]="61706",Qt[Kt.AlignCenter]="61707",Qt[Kt.AlignJustify]="61708",Qt[Kt.AlignLeft]="61709",Qt[Kt.AlignRight]="61710",Qt[Kt.AlignmentBottom]="61711",Qt[Kt.AlignmentHorizontalCenter]="61712",Qt[Kt.AlignmentLeft]="61713",Qt[Kt.AlignmentRight]="61714",Qt[Kt.AlignmentTop]="61715",Qt[Kt.AlignmentVerticalCenter]="61716",Qt[Kt.Ammunition]="62274",Qt[Kt.Anchor]="62256",Qt[Kt.Annotation]="61717",Qt[Kt.Announcement]="62358",Qt[Kt.Antenna]="61718",Qt[Kt.AppHeader]="61719",Qt[Kt.Application]="61720",Qt[Kt.Applications]="61721",Qt[Kt.Archive]="61722",Qt[Kt.AreaOfInterest]="61723",Qt[Kt.ArrayBoolean]="61724",Qt[Kt.ArrayDate]="61725",Qt[Kt.ArrayFloatingPoint]="62253",Qt[Kt.ArrayNumeric]="61726",Qt[Kt.ArrayObject]="62356",Qt[Kt.ArrayString]="61727",Qt[Kt.ArrayTimestamp]="61728",Qt[Kt.Array]="61729",Qt[Kt.ArrowBottomLeft]="61730",Qt[Kt.ArrowBottomRight]="61731",Qt[Kt.ArrowDown]="61732",Qt[Kt.ArrowLeft]="61733",Qt[Kt.ArrowRight]="61734",Qt[Kt.ArrowTopLeft]="61735",Qt[Kt.ArrowTopRight]="61736",Qt[Kt.ArrowUp]="61737",Qt[Kt.ArrowsArc]="62343",Qt[Kt.ArrowsHorizontal]="61738",Qt[Kt.ArrowsVertical]="61739",Qt[Kt.Asterisk]="61740",Qt[Kt.At]="62257",Qt[Kt.AutomaticUpdates]="61741",Qt[Kt.Axle]="62264",Qt[Kt.Backlink]="61742",Qt[Kt.BackwardTen]="62300",Qt[Kt.Badge]="61743",Qt[Kt.BanCircle]="61744",Qt[Kt.BankAccount]="61745",Qt[Kt.Barcode]="61746",Qt[Kt.BinaryNumber]="62295",Qt[Kt.Blank]="61747",Qt[Kt.BlockPromote]="62322",Qt[Kt.BlockedPerson]="61748",Qt[Kt.Bold]="61749",Qt[Kt.Book]="61750",Qt[Kt.Bookmark]="61751",Qt[Kt.Box]="61752",Qt[Kt.Briefcase]="61753",Qt[Kt.BringData]="61754",Qt[Kt.BringForward]="62292",Qt[Kt.BritishPound]="62342",Qt[Kt.Bug]="62254",Qt[Kt.Buggy]="61755",Qt[Kt.Build]="61756",Qt[Kt.Bullseye]="62297",Qt[Kt.Calculator]="61757",Qt[Kt.Calendar]="61758",Qt[Kt.Camera]="61759",Qt[Kt.CaretDown]="61760",Qt[Kt.CaretLeft]="61761",Qt[Kt.CaretRight]="61762",Qt[Kt.CaretUp]="61763",Qt[Kt.CargoShip]="61764",Qt[Kt.CellTower]="61765",Qt[Kt.Changes]="61766",Qt[Kt.Chart]="61767",Qt[Kt.Chat]="61768",Qt[Kt.ChevronBackward]="61769",Qt[Kt.ChevronDown]="61770",Qt[Kt.ChevronForward]="61771",Qt[Kt.ChevronLeft]="61772",Qt[Kt.ChevronRight]="61773",Qt[Kt.ChevronUp]="61774",Qt[Kt.CircleArrowDown]="61775",Qt[Kt.CircleArrowLeft]="61776",Qt[Kt.CircleArrowRight]="61777",Qt[Kt.CircleArrowUp]="61778",Qt[Kt.Circle]="61779",Qt[Kt.Citation]="61780",Qt[Kt.Clean]="61781",Qt[Kt.Clip]="61782",Qt[Kt.ClipboardFile]="62299",Qt[Kt.Clipboard]="61783",Qt[Kt.CloudDownload]="61784",Qt[Kt.CloudServer]="62298",Qt[Kt.CloudTick]="62286",Qt[Kt.CloudUpload]="61785",Qt[Kt.Cloud]="61786",Qt[Kt.CodeBlock]="61787",Qt[Kt.Code]="61788",Qt[Kt.Cog]="61789",Qt[Kt.CollapseAll]="61790",Qt[Kt.ColorFill]="62248",Qt[Kt.ColumnLayout]="61791",Qt[Kt.Comment]="61792",Qt[Kt.Comparison]="61793",Qt[Kt.Compass]="61794",Qt[Kt.Compressed]="61795",Qt[Kt.Confirm]="61796",Qt[Kt.Console]="61797",Qt[Kt.Construction]="62357",Qt[Kt.Contrast]="61798",Qt[Kt.Control]="61799",Qt[Kt.CreditCard]="61800",Qt[Kt.Crop]="62291",Qt[Kt.CrossCircle]="62262",Qt[Kt.Cross]="61801",Qt[Kt.Crown]="61802",Qt[Kt.CssStyle]="62315",Qt[Kt.CubeAdd]="61803",Qt[Kt.CubeEdit]="62339",Qt[Kt.CubeRemove]="61804",Qt[Kt.Cube]="61805",Qt[Kt.Cubes]="62323",Qt[Kt.CurlyBraces]="62296",Qt[Kt.CurvedRangeChart]="61806",Qt[Kt.Cut]="61807",Qt[Kt.Cycle]="61808",Qt[Kt.Dashboard]="61809",Qt[Kt.DataCloud]="62353",Qt[Kt.DataConnection]="61810",Qt[Kt.DataLineage]="61811",Qt[Kt.DataSearch]="62319",Qt[Kt.DataSync]="62316",Qt[Kt.Database]="61812",Qt[Kt.Delete]="61813",Qt[Kt.Delta]="61814",Qt[Kt.DeriveColumn]="61815",Qt[Kt.Desktop]="61816",Qt[Kt.Detection]="62273",Qt[Kt.Diagnosis]="61817",Qt[Kt.DiagramTree]="61818",Qt[Kt.DirectionLeft]="61819",Qt[Kt.DirectionRight]="61820",Qt[Kt.Disable]="61821",Qt[Kt.Divide]="62247",Qt[Kt.DocumentOpen]="61822",Qt[Kt.DocumentShare]="61823",Qt[Kt.Document]="61824",Qt[Kt.Dollar]="61825",Qt[Kt.Dot]="61826",Qt[Kt.DoubleCaretHorizontal]="61827",Qt[Kt.DoubleCaretVertical]="61828",Qt[Kt.DoubleChevronDown]="61829",Qt[Kt.DoubleChevronLeft]="61830",Qt[Kt.DoubleChevronRight]="61831",Qt[Kt.DoubleChevronUp]="61832",Qt[Kt.DoughnutChart]="61833",Qt[Kt.Download]="61834",Qt[Kt.DragHandleHorizontal]="61835",Qt[Kt.DragHandleVertical]="61836",Qt[Kt.Draw]="61837",Qt[Kt.DrawerLeftFilled]="61838",Qt[Kt.DrawerLeft]="61839",Qt[Kt.DrawerRightFilled]="61840",Qt[Kt.DrawerRight]="61841",Qt[Kt.DriveTime]="61842",Qt[Kt.Duplicate]="61843",Qt[Kt.Edit]="61844",Qt[Kt.Eject]="61845",Qt[Kt.Emoji]="61846",Qt[Kt.Endnote]="62294",Qt[Kt.Endorsed]="61847",Qt[Kt.Envelope]="61848",Qt[Kt.Equals]="61849",Qt[Kt.Eraser]="61850",Qt[Kt.Error]="61851",Qt[Kt.Euro]="61852",Qt[Kt.Excavator]="62317",Qt[Kt.Exchange]="61853",Qt[Kt.ExcludeRow]="61854",Qt[Kt.ExpandAll]="61855",Qt[Kt.Explain]="62285",Qt[Kt.Export]="61856",Qt[Kt.EyeOff]="61857",Qt[Kt.EyeOn]="61858",Qt[Kt.EyeOpen]="61859",Qt[Kt.FastBackward]="61860",Qt[Kt.FastForward]="61861",Qt[Kt.FeedSubscribed]="61862",Qt[Kt.Feed]="61863",Qt[Kt.FighterJet]="62340",Qt[Kt.Film]="61864",Qt[Kt.FilterKeep]="61865",Qt[Kt.FilterList]="61866",Qt[Kt.FilterOpen]="61867",Qt[Kt.FilterRemove]="61868",Qt[Kt.FilterSortAsc]="62350",Qt[Kt.FilterSortDesc]="62351",Qt[Kt.Filter]="61869",Qt[Kt.Flag]="61870",Qt[Kt.Flame]="61871",Qt[Kt.Flash]="61872",Qt[Kt.FloatingPoint]="62252",Qt[Kt.FloppyDisk]="61873",Qt[Kt.FlowBranch]="61874",Qt[Kt.FlowEnd]="61875",Qt[Kt.FlowLinear]="61876",Qt[Kt.FlowReviewBranch]="61877",Qt[Kt.FlowReview]="61878",Qt[Kt.Flows]="61879",Qt[Kt.FolderClose]="61880",Qt[Kt.FolderNew]="61881",Qt[Kt.FolderOpen]="61882",Qt[Kt.FolderSharedOpen]="61883",Qt[Kt.FolderShared]="61884",Qt[Kt.Follower]="61885",Qt[Kt.Following]="61886",Qt[Kt.Font]="61887",Qt[Kt.Fork]="61888",Qt[Kt.Form]="61889",Qt[Kt.ForwardTen]="62301",Qt[Kt.Fuel]="62243",Qt[Kt.FullCircle]="61890",Qt[Kt.FullStackedChart]="61891",Qt[Kt.Fullscreen]="61892",Qt[Kt.Function]="61893",Qt[Kt.GanttChart]="61894",Qt[Kt.Generate]="62284",Qt[Kt.Geofence]="61895",Qt[Kt.Geolocation]="61896",Qt[Kt.Geosearch]="61897",Qt[Kt.Geotime]="62276",Qt[Kt.GitBranch]="61898",Qt[Kt.GitCommit]="61899",Qt[Kt.GitMerge]="61900",Qt[Kt.GitNewBranch]="61901",Qt[Kt.GitPull]="61902",Qt[Kt.GitPush]="61903",Qt[Kt.GitRepo]="61904",Qt[Kt.Glass]="61905",Qt[Kt.GlobeNetworkAdd]="62338",Qt[Kt.GlobeNetwork]="61906",Qt[Kt.Globe]="61907",Qt[Kt.GraphRemove]="61908",Qt[Kt.Graph]="61909",Qt[Kt.GreaterThanOrEqualTo]="61910",Qt[Kt.GreaterThan]="61911",Qt[Kt.GridView]="61912",Qt[Kt.Grid]="61913",Qt[Kt.GroupItem]="62282",Qt[Kt.GroupObjects]="61914",Qt[Kt.GroupedBarChart]="61915",Qt[Kt.HandDown]="61916",Qt[Kt.HandLeft]="61917",Qt[Kt.HandRight]="61918",Qt[Kt.HandUp]="61919",Qt[Kt.Hand]="61920",Qt[Kt.Hat]="61921",Qt[Kt.HeaderOne]="61922",Qt[Kt.HeaderThree]="61923",Qt[Kt.HeaderTwo]="61924",Qt[Kt.Header]="61925",Qt[Kt.Headset]="61926",Qt[Kt.HeartBroken]="61927",Qt[Kt.Heart]="61928",Qt[Kt.HeatGrid]="61929",Qt[Kt.Heatmap]="61930",Qt[Kt.Helicopter]="61931",Qt[Kt.Help]="61932",Qt[Kt.HelperManagement]="61933",Qt[Kt.Hexagon]="62324",Qt[Kt.HighPriority]="61934",Qt[Kt.HighVoltagePole]="62259",Qt[Kt.Highlight]="61935",Qt[Kt.History]="61936",Qt[Kt.Home]="61937",Qt[Kt.HorizontalBarChartAsc]="61938",Qt[Kt.HorizontalBarChartDesc]="61939",Qt[Kt.HorizontalBarChart]="61940",Qt[Kt.HorizontalDistribution]="61941",Qt[Kt.HorizontalInbetween]="62249",Qt[Kt.Hurricane]="61942",Qt[Kt.IdNumber]="61943",Qt[Kt.ImageRotateLeft]="61944",Qt[Kt.ImageRotateRight]="61945",Qt[Kt.Import]="61946",Qt[Kt.InboxFiltered]="61947",Qt[Kt.InboxGeo]="61948",Qt[Kt.InboxSearch]="61949",Qt[Kt.InboxUpdate]="61950",Qt[Kt.Inbox]="61951",Qt[Kt.InfoSign]="61952",Qt[Kt.Inheritance]="61953",Qt[Kt.InheritedGroup]="61954",Qt[Kt.InnerJoin]="61955",Qt[Kt.Input]="62283",Qt[Kt.Insert]="61956",Qt[Kt.Intelligence]="62263",Qt[Kt.Intersection]="61957",Qt[Kt.IpAddress]="61958",Qt[Kt.IssueClosed]="61959",Qt[Kt.IssueNew]="61960",Qt[Kt.Issue]="61961",Qt[Kt.Italic]="61962",Qt[Kt.JoinTable]="61963",Qt[Kt.KeyBackspace]="61964",Qt[Kt.KeyCommand]="61965",Qt[Kt.KeyControl]="61966",Qt[Kt.KeyDelete]="61967",Qt[Kt.KeyEnter]="61968",Qt[Kt.KeyEscape]="61969",Qt[Kt.KeyOption]="61970",Qt[Kt.KeyShift]="61971",Qt[Kt.KeyTab]="61972",Qt[Kt.Key]="61973",Qt[Kt.KnownVehicle]="61974",Qt[Kt.LabTest]="61975",Qt[Kt.Label]="61976",Qt[Kt.LayerOutline]="61977",Qt[Kt.Layer]="61978",Qt[Kt.Layers]="61979",Qt[Kt.LayoutAuto]="61980",Qt[Kt.LayoutBalloon]="61981",Qt[Kt.LayoutBottomRowThreeTiles]="62308",Qt[Kt.LayoutBottomRowTwoTiles]="62307",Qt[Kt.LayoutCircle]="61982",Qt[Kt.LayoutGrid]="61983",Qt[Kt.LayoutGroupBy]="61984",Qt[Kt.LayoutHierarchy]="61985",Qt[Kt.LayoutLeftColumnThreeTiles]="62310",Qt[Kt.LayoutLeftColumnTwoTiles]="62309",Qt[Kt.LayoutLinear]="61986",Qt[Kt.LayoutRightColumnThreeTiles]="62312",Qt[Kt.LayoutRightColumnTwoTiles]="62311",Qt[Kt.LayoutSkewGrid]="61987",Qt[Kt.LayoutSortedClusters]="61988",Qt[Kt.LayoutThreeColumns]="62305",Qt[Kt.LayoutThreeRows]="62306",Qt[Kt.LayoutTopRowThreeTiles]="62314",Qt[Kt.LayoutTopRowTwoTiles]="62313",Qt[Kt.LayoutTwoColumns]="62303",Qt[Kt.LayoutTwoRows]="62304",Qt[Kt.Layout]="61989",Qt[Kt.Learning]="61990",Qt[Kt.LeftJoin]="61991",Qt[Kt.LengthenText]="62270",Qt[Kt.LessThanOrEqualTo]="61992",Qt[Kt.LessThan]="61993",Qt[Kt.Lifesaver]="61994",Qt[Kt.Lightbulb]="61995",Qt[Kt.Lightning]="61996",Qt[Kt.Link]="61997",Qt[Kt.LinkedSquares]="62341",Qt[Kt.ListColumns]="61998",Qt[Kt.ListDetailView]="61999",Qt[Kt.List]="62000",Qt[Kt.Locate]="62001",Qt[Kt.Lock]="62002",Qt[Kt.Locomotive]="62267",Qt[Kt.LogIn]="62003",Qt[Kt.LogOut]="62004",Qt[Kt.LowVoltagePole]="62258",Qt[Kt.Manual]="62005",Qt[Kt.ManuallyEnteredData]="62006",Qt[Kt.ManyToMany]="62007",Qt[Kt.ManyToOne]="62008",Qt[Kt.MapCreate]="62009",Qt[Kt.MapMarker]="62010",Qt[Kt.Map]="62011",Qt[Kt.Maximize]="62012",Qt[Kt.Media]="62013",Qt[Kt.MenuClosed]="62014",Qt[Kt.MenuOpen]="62015",Qt[Kt.Menu]="62016",Qt[Kt.MergeColumns]="62017",Qt[Kt.MergeLinks]="62018",Qt[Kt.Microphone]="62275",Qt[Kt.Minimize]="62019",Qt[Kt.Minus]="62020",Qt[Kt.MobilePhone]="62021",Qt[Kt.MobileVideo]="62022",Qt[Kt.ModalFilled]="62023",Qt[Kt.Modal]="62024",Qt[Kt.Model]="62269",Qt[Kt.Moon]="62025",Qt[Kt.More]="62026",Qt[Kt.Mountain]="62027",Qt[Kt.Move]="62028",Qt[Kt.Mugshot]="62029",Qt[Kt.MultiSelect]="62030",Qt[Kt.Music]="62031",Qt[Kt.Nest]="62032",Qt[Kt.NewDrawing]="62033",Qt[Kt.NewGridItem]="62034",Qt[Kt.NewLayer]="62035",Qt[Kt.NewLayers]="62036",Qt[Kt.NewLink]="62037",Qt[Kt.NewObject]="62038",Qt[Kt.NewPerson]="62039",Qt[Kt.NewPrescription]="62040",Qt[Kt.NewShield]="62281",Qt[Kt.NewTextBox]="62041",Qt[Kt.Ninja]="62042",Qt[Kt.NotEqualTo]="62043",Qt[Kt.NotificationsAdd]="62360",Qt[Kt.NotificationsSnooze]="62044",Qt[Kt.NotificationsUpdated]="62045",Qt[Kt.Notifications]="62046",Qt[Kt.NumberedList]="62047",Qt[Kt.Numerical]="62048",Qt[Kt.ObjectView]="62352",Qt[Kt.Office]="62049",Qt[Kt.Offline]="62050",Qt[Kt.OilField]="62051",Qt[Kt.OneColumn]="62052",Qt[Kt.OneToMany]="62053",Qt[Kt.OneToOne]="62054",Qt[Kt.OpenApplication]="62251",Qt[Kt.Outdated]="62055",Qt[Kt.Output]="62320",Qt[Kt.Package]="62325",Qt[Kt.PageLayout]="62056",Qt[Kt.PanelStats]="62057",Qt[Kt.PanelTable]="62058",Qt[Kt.Panel]="62337",Qt[Kt.Paperclip]="62059",Qt[Kt.Paragraph]="62060",Qt[Kt.PasteVariable]="62278",Qt[Kt.PathSearch]="62061",Qt[Kt.Path]="62062",Qt[Kt.Pause]="62063",Qt[Kt.People]="62064",Qt[Kt.Percentage]="62065",Qt[Kt.Person]="62066",Qt[Kt.PhoneCall]="62279",Qt[Kt.PhoneForward]="62280",Qt[Kt.PhoneSearch]="62359",Qt[Kt.Phone]="62067",Qt[Kt.PieChart]="62068",Qt[Kt.Pill]="62326",Qt[Kt.Pin]="62069",Qt[Kt.Pistol]="62364",Qt[Kt.PivotTable]="62070",Qt[Kt.Pivot]="62071",Qt[Kt.Play]="62072",Qt[Kt.Playbook]="62244",Qt[Kt.Plus]="62073",Qt[Kt.PolygonFilter]="62074",Qt[Kt.Power]="62075",Qt[Kt.PredictiveAnalysis]="62076",Qt[Kt.Prescription]="62077",Qt[Kt.Presentation]="62078",Qt[Kt.Print]="62079",Qt[Kt.Projects]="62080",Qt[Kt.Properties]="62081",Qt[Kt.Property]="62082",Qt[Kt.PublishFunction]="62083",Qt[Kt.Pulse]="62084",Qt[Kt.Rain]="62085",Qt[Kt.Random]="62086",Qt[Kt.RangeRing]="62321",Qt[Kt.Record]="62087",Qt[Kt.RectHeight]="62245",Qt[Kt.RectWidth]="62246",Qt[Kt.Rectangle]="62241",Qt[Kt.Redo]="62088",Qt[Kt.Refresh]="62089",Qt[Kt.Regex]="62255",Qt[Kt.RegressionChart]="62090",Qt[Kt.RemoveColumnLeft]="62091",Qt[Kt.RemoveColumnRight]="62092",Qt[Kt.RemoveColumn]="62093",Qt[Kt.RemoveRowBottom]="62094",Qt[Kt.RemoveRowTop]="62095",Qt[Kt.Remove]="62096",Qt[Kt.Repeat]="62097",Qt[Kt.Reset]="62098",Qt[Kt.Resolve]="62099",Qt[Kt.Rig]="62100",Qt[Kt.RightJoin]="62101",Qt[Kt.Ring]="62102",Qt[Kt.RocketSlant]="62103",Qt[Kt.Rocket]="62104",Qt[Kt.RotateCcw]="62345",Qt[Kt.RotateCw]="62344",Qt[Kt.RotateDocument]="62105",Qt[Kt.RotatePage]="62106",Qt[Kt.Route]="62107",Qt[Kt.RunHistory]="62355",Qt[Kt.Satellite]="62108",Qt[Kt.Saved]="62109",Qt[Kt.ScatterPlot]="62110",Qt[Kt.SearchAround]="62111",Qt[Kt.SearchTemplate]="62112",Qt[Kt.SearchText]="62113",Qt[Kt.Search]="62114",Qt[Kt.SegmentedControl]="62115",Qt[Kt.Select]="62116",Qt[Kt.SelectionBoxAdd]="62362",Qt[Kt.SelectionBoxEdit]="62363",Qt[Kt.SelectionBox]="62361",Qt[Kt.Selection]="62117",Qt[Kt.SendBackward]="62293",Qt[Kt.SendMessage]="62118",Qt[Kt.SendToGraph]="62119",Qt[Kt.SendToMap]="62120",Qt[Kt.SendTo]="62121",Qt[Kt.Sensor]="62268",Qt[Kt.SeriesAdd]="62122",Qt[Kt.SeriesConfiguration]="62123",Qt[Kt.SeriesDerived]="62124",Qt[Kt.SeriesFiltered]="62125",Qt[Kt.SeriesSearch]="62126",Qt[Kt.ServerInstall]="62327",Qt[Kt.Server]="62328",Qt[Kt.Settings]="62127",Qt[Kt.Shapes]="62128",Qt[Kt.Share]="62129",Qt[Kt.SharedFilter]="62130",Qt[Kt.Shield]="62131",Qt[Kt.Ship]="62132",Qt[Kt.Shop]="62133",Qt[Kt.ShoppingCart]="62134",Qt[Kt.ShortenText]="62271",Qt[Kt.SignalSearch]="62135",Qt[Kt.SimCard]="62136",Qt[Kt.Slash]="62137",Qt[Kt.SmallCross]="62138",Qt[Kt.SmallInfoSign]="62260",Qt[Kt.SmallMinus]="62139",Qt[Kt.SmallPlus]="62140",Qt[Kt.SmallSquare]="62141",Qt[Kt.SmallTick]="62142",Qt[Kt.Snowflake]="62143",Qt[Kt.SoccerBall]="62288",Qt[Kt.SocialMedia]="62144",Qt[Kt.SortAlphabeticalDesc]="62145",Qt[Kt.SortAlphabetical]="62146",Qt[Kt.SortAsc]="62147",Qt[Kt.SortDesc]="62148",Qt[Kt.SortNumericalDesc]="62149",Qt[Kt.SortNumerical]="62150",Qt[Kt.Sort]="62151",Qt[Kt.SpellCheck]="62272",Qt[Kt.SplitColumns]="62152",Qt[Kt.SportsStadium]="62289",Qt[Kt.Square]="62153",Qt[Kt.StackedChart]="62154",Qt[Kt.StadiumGeometry]="62155",Qt[Kt.StarEmpty]="62156",Qt[Kt.Star]="62157",Qt[Kt.StepBackward]="62158",Qt[Kt.StepChart]="62159",Qt[Kt.StepForward]="62160",Qt[Kt.Stop]="62161",Qt[Kt.Stopwatch]="62162",Qt[Kt.Strikethrough]="62163",Qt[Kt.Style]="62164",Qt[Kt.Subscript]="62265",Qt[Kt.SubtractRightJoin]="62354",Qt[Kt.Superscript]="62266",Qt[Kt.SwapHorizontal]="62165",Qt[Kt.SwapVertical]="62166",Qt[Kt.Switch]="62167",Qt[Kt.SymbolCircle]="62168",Qt[Kt.SymbolCross]="62169",Qt[Kt.SymbolDiamond]="62170",Qt[Kt.SymbolRectangle]="62242",Qt[Kt.SymbolSquare]="62171",Qt[Kt.SymbolTriangleDown]="62172",Qt[Kt.SymbolTriangleUp]="62173",Qt[Kt.Syringe]="62174",Qt[Kt.TableSync]="62318",Qt[Kt.TagAdd]="62329",Qt[Kt.TagPromote]="62330",Qt[Kt.TagRefresh]="62331",Qt[Kt.TagUndo]="62332",Qt[Kt.Tag]="62175",Qt[Kt.Tags]="62333",Qt[Kt.TakeAction]="62176",Qt[Kt.Tank]="62177",Qt[Kt.Target]="62178",Qt[Kt.Taxi]="62179",Qt[Kt.Team]="62290",Qt[Kt.Temperature]="62180",Qt[Kt.TextHighlight]="62181",Qt[Kt.ThAdd]="62346",Qt[Kt.ThDerived]="62182",Qt[Kt.ThDisconnect]="62183",Qt[Kt.ThFiltered]="62184",Qt[Kt.ThListAdd]="62347",Qt[Kt.ThList]="62185",Qt[Kt.ThVirtualAdd]="62349",Qt[Kt.ThVirtual]="62348",Qt[Kt.Th]="62186",Qt[Kt.ThirdParty]="62187",Qt[Kt.ThumbsDown]="62188",Qt[Kt.ThumbsUp]="62189",Qt[Kt.TickCircle]="62190",Qt[Kt.Tick]="62191",Qt[Kt.Time]="62192",Qt[Kt.TimelineAreaChart]="62193",Qt[Kt.TimelineBarChart]="62194",Qt[Kt.TimelineEvents]="62195",Qt[Kt.TimelineLineChart]="62196",Qt[Kt.Tint]="62197",Qt[Kt.Torch]="62198",Qt[Kt.Tractor]="62199",Qt[Kt.Train]="62200",Qt[Kt.Translate]="62201",Qt[Kt.Trash]="62202",Qt[Kt.Tree]="62203",Qt[Kt.TrendingDown]="62204",Qt[Kt.TrendingUp]="62205",Qt[Kt.Trophy]="62287",Qt[Kt.Truck]="62206",Qt[Kt.TwoColumns]="62207",Qt[Kt.Unarchive]="62208",Qt[Kt.Underline]="62209",Qt[Kt.Undo]="62210",Qt[Kt.UngroupObjects]="62211",Qt[Kt.UnknownVehicle]="62212",Qt[Kt.Unlink]="62277",Qt[Kt.Unlock]="62213",Qt[Kt.Unpin]="62214",Qt[Kt.Unresolve]="62215",Qt[Kt.Updated]="62216",Qt[Kt.Upload]="62217",Qt[Kt.User]="62218",Qt[Kt.Variable]="62219",Qt[Kt.Vector]="62302",Qt[Kt.VerticalBarChartAsc]="62220",Qt[Kt.VerticalBarChartDesc]="62221",Qt[Kt.VerticalDistribution]="62222",Qt[Kt.VerticalInbetween]="62250",Qt[Kt.Video]="62223",Qt[Kt.Virus]="62224",Qt[Kt.VolumeDown]="62225",Qt[Kt.VolumeOff]="62226",Qt[Kt.VolumeUp]="62227",Qt[Kt.Walk]="62228",Qt[Kt.WarningSign]="62229",Qt[Kt.WaterfallChart]="62230",Qt[Kt.Waves]="62231",Qt[Kt.WidgetButton]="62232",Qt[Kt.WidgetFooter]="62233",Qt[Kt.WidgetHeader]="62234",Qt[Kt.Widget]="62235",Qt[Kt.Wind]="62236",Qt[Kt.WrenchRedo]="62334",Qt[Kt.WrenchSnooze]="62335",Qt[Kt.WrenchTime]="62336",Qt[Kt.Wrench]="62237",Qt[Kt.ZoomIn]="62238",Qt[Kt.ZoomOut]="62239",Qt[Kt.ZoomToFit]="62240";var Whe={},Zhe={};for(var zN=0,BK=Object.values(Kt);zN<BK.length;zN++){var NR=BK[zN];Whe[c4e(NR)]=NR,Zhe[h4e(NR).toUpperCase()]=NR}var Ui=qn(qn({},Whe),Zhe),g4e=new Set(Object.values(Ui));function p4e(t){return typeof NODE_ENV<"u"&&NODE_ENV===t}function m4e(t,r){return L2(this,void 0,void 0,function(){var e,n,a;return O2(this,function(l){switch(l.label){case 0:return e=p4e("development")&&typeof performance<"u",e&&(n=performance.now(),console.info("Started '".concat(t,"'..."))),[4,r()];case 1:return l.sent(),e&&(a=Math.round(performance.now()-n),console.info("Finished '".concat(t,"' in ").concat(a,"ms"))),[2]}})})}function y4e(t){return L2(this,void 0,void 0,function(){var r,e;return O2(this,function(n){switch(n.label){case 0:return r=t.loader,e=r===void 0?d2.defaultLoader:r,typeof e!="function"?[3,1]:[2,e];case 1:return e!=="all"?[3,3]:[4,zK(()=>import("./allPathsLoader-DgFQ6cmn.js"),[])];case 2:return[2,n.sent().allPathsLoader];case 3:return[4,zK(()=>import("./splitPathsBySizeLoader-BFDp4kIf.js"),[])];case 4:return[2,n.sent().splitPathsBySizeLoader]}})})}var RS=function(){function t(){this.defaultLoader="split-by-size",this.loadedIconPaths16=new Map,this.loadedIconPaths20=new Map}return t.setLoaderOptions=function(r){r.loader!==void 0&&(d2.defaultLoader=r.loader)},t.load=function(r,e,n){return L2(this,void 0,void 0,function(){var a=this;return O2(this,function(l){switch(l.label){case 0:return Array.isArray(r)||(r=[r]),[4,Promise.all(r.map(function(o){return a.loadImpl(o,e,n)}))];case 1:return l.sent(),[2]}})})},t.loadAll=function(r){return L2(this,void 0,void 0,function(){var e,n=this;return O2(this,function(a){return e=Object.values(Ui),m4e("[Blueprint] loading all icons",function(){return L2(n,void 0,void 0,function(){return O2(this,function(l){switch(l.label){case 0:return[4,Promise.all([this.load(e,Na.STANDARD,r),this.load(e,Na.LARGE,r)])];case 1:return l.sent(),[2]}})})}),[2]})})},t.getPaths=function(r,e){if(this.isValidIconName(r)){var n=e<Na.LARGE?d2.loadedIconPaths16:d2.loadedIconPaths20;return n.get(r)}},t.loadImpl=function(r,e,n){return n===void 0&&(n={}),L2(this,void 0,void 0,function(){var a,l,o,f,i;return O2(this,function(s){switch(s.label){case 0:return this.isValidIconName(r)?(a=e<Na.LARGE?d2.loadedIconPaths16:d2.loadedIconPaths20,a.has(r)?[2]:[4,y4e(n)]):(console.error("[Blueprint] Unknown icon '".concat(r,"'")),[2]);case 1:l=s.sent(),s.label=2;case 2:return s.trys.push([2,4,,5]),o=e<Na.LARGE?Na.STANDARD:Na.LARGE,[4,l(r,o)];case 3:return f=s.sent(),a.set(r,f),[3,5];case 4:return i=s.sent(),console.error("[Blueprint] Unable to load ".concat(e,"px icon '").concat(r,"'"),i),[3,5];case 5:return[2]}})})},t.isValidIconName=function(r){return g4e.has(r)},t}(),d2=new RS,A4e="bp5",$K="".concat(A4e,"-icon"),UK=new Map;function C4e(t){var r,e=(r=UK.get(t))!==null&&r!==void 0?r:0;return UK.set(t,e+1),"".concat(t,"-").concat(e)}var Sh=St.forwardRef(function(t,r){var e=t.children,n=t.className,a=t.color,l=t.htmlTitle,o=t.iconName,f=t.size,i=f===void 0?Na.STANDARD:f,s=t.svgProps,d=t.tagName,u=d===void 0?"span":d,h=t.title,y=Ps(t,["children","className","color","htmlTitle","iconName","size","svgProps","tagName","title"]),b=i>=Na.LARGE,C=b?Na.LARGE:Na.STANDARD,m="0 0 ".concat(C," ").concat(C),c=C4e("iconTitle"),v=qn({fill:a,height:i,role:"img",viewBox:m,width:i},s);return u===null?St.createElement("svg",qn({"aria-labelledby":h?c:void 0,"data-icon":o,ref:r},v,y,{className:Di(n,s==null?void 0:s.className)}),h&&St.createElement("title",{id:c},h),e):St.createElement(u,qn(qn({"aria-hidden":h?void 0:!0},y),{className:Di($K,"".concat($K,"-").concat(o),n),ref:r,title:l}),St.createElement("svg",qn({"data-icon":o},v,{className:s==null?void 0:s.className}),h&&St.createElement("title",null,h),e))});Sh.displayName="Blueprint5.SVGIconContainer";var QV=St.forwardRef(function(t,r){var e=t.size>=Na.LARGE,n=e?Na.LARGE:Na.STANDARD,a="".concat(-1*n/.05/2),l={transformOrigin:"center"};return St.createElement(Sh,qn({iconName:"arrow-down",ref:r},t),St.createElement("path",{d:e?"M320 180C314 180 310 178 306 174L220 88V360C220 370 212 380 200 380S180 370 180 360V88L94 174C90 178 86 180 80 180C70 180 60 172 60 160C60 154 62 150 66 146L186 26C190 22 194 20 200 20S210 22 214 26L334 146C338 150 340 154 340 160C340 172 330 180 320 180L320 180z":"M260 160C254 160 250 158 246 154L180 88V280C180 290 172 300 160 300S140 290 140 280V88L74 154C70 158 66 160 60 160C50 160 40 150 40 140C40 134 42 130 46 126L146 26C150 22 154 20 160 20S170 22 174 26L274 126C278 130 280 134 280 140C280 152 272 160 260 160L260 160z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")"),style:l}))});QV.defaultProps={size:Na.STANDARD};QV.displayName="Blueprint5.Icon.ArrowDown";var JV=St.forwardRef(function(t,r){var e=t.size>=Na.LARGE,n=e?Na.LARGE:Na.STANDARD,a="".concat(-1*n/.05/2),l={transformOrigin:"center"};return St.createElement(Sh,qn({iconName:"arrow-left",ref:r},t),St.createElement("path",{d:e?"M360 220H88.2L174 305.8C177.8 309.4 180 314.4 180 320C180 331 171 340 160 340C154.4 340 149.4 337.8 145.8 334.2L25.8 214.2C22.2 210.6 20 205.6 20 200C20 194.4 22.2 189.4 25.8 185.8L145.8 65.8C149.4 62.2 154.4 60 160 60C171 60 180 69 180 80C180 85.6 177.8 90.6 174.2 94.2000000000001L88.2 180H360C371 180 380 189 380 200C380 211 371 220 360 220z":"M279.8 180.2H88.2L154 246C157.6 249.6 159.8 254.6 159.8 260.2C159.8 271.2 150.8 280.2 139.8 280.2C134.2 280.2 129.2 278 125.6 274.4L25.6 174.4C22 170.6 19.8 165.6 19.8 160.2S22 149.6 25.6 146L125.6 46C129.2 42.4 134.2 40.2 139.8 40.2C150.8 40.2 159.8 49.2 159.8 60.2000000000001C159.8 65.8 157.6 70.8 154 74.4L88.2 140.2H280C291 140.2 300 149.2 300 160.2S290.8 180.2 279.8 180.2z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")"),style:l}))});JV.defaultProps={size:Na.STANDARD};JV.displayName="Blueprint5.Icon.ArrowLeft";var qV=St.forwardRef(function(t,r){var e=t.size>=Na.LARGE,n=e?Na.LARGE:Na.STANDARD,a="".concat(-1*n/.05/2),l={transformOrigin:"center"};return St.createElement(Sh,qn({iconName:"arrow-right",ref:r},t),St.createElement("path",{d:e?"M374.2000000000001 214.2L254.2 334.2000000000001C250.6 337.8 245.6 340 240 340C229 340 220 331 220 320C220 314.4 222.2 309.4 225.8 305.8L311.8 220H40C29 220 20 211 20 200C20 189 29 180 40 180H311.8L226 94.2000000000001C222.2 90.6 220 85.6 220 80C220 69 229 60 240 60C245.6 60 250.6 62.2 254.2 65.8L374.2000000000001 185.8C377.8 189.4 380 194.4 380 200C380 205.6 377.8 210.6 374.2000000000001 214.2z":"M294 174.2L194 274.2C190.4 278 185.4 280.2 179.8 280.2C168.8 280.2 159.8 271.2 159.8 260.2C159.8 254.6 162 249.6 165.6 246L231.4 180.2H39.8C28.8 180.2 19.8 171.2 19.8 160.2S28.8 140.2 39.8 140.2H231.6L165.8 74.4C162.2 70.8 160 65.8 160 60.1999999999999C160 49.1999999999999 169 40.1999999999999 180 40.1999999999999C185.6 40.1999999999999 190.6 42.4 194.2 45.9999999999999L294.2000000000001 146C297.8 149.5999999999999 300 154.5999999999999 300 160.1999999999999S297.6 170.6 294 174.2z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")"),style:l}))});qV.defaultProps={size:Na.STANDARD};qV.displayName="Blueprint5.Icon.ArrowRight";var eG=St.forwardRef(function(t,r){var e=t.size>=Na.LARGE,n=e?Na.LARGE:Na.STANDARD,a="".concat(-1*n/.05/2),l={transformOrigin:"center"};return St.createElement(Sh,qn({iconName:"arrow-up",ref:r},t),St.createElement("path",{d:e?"M334 254L214 374C210 378 206 380 200 380S190 378 186 374L66 254C62 250 60 246 60 240C60 228 70 220 80 220C86 220 90 222 94 226L180 312V40C180 30 188 20 200 20S220 30 220 40V312L306 226C310 222 314 220 320 220C330 220 340 228 340 240C340 246 338 250 334 254L334 254z":"M274 194L174 294C170 298 166 300 160 300S150 298 146 294L46 194C42 190 40 186 40 180C40 168 50 160 60 160C66 160 70 162 74 166L140 232V40C140 28 148 20 160 20S180 28 180 40V232L246 166C250 162 254 160 260 160C272 160 280 168 280 180C280 186 278 190 274 194L274 194z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")"),style:l}))});eG.defaultProps={size:Na.STANDARD};eG.displayName="Blueprint5.Icon.ArrowUp";var tG=St.forwardRef(function(t,r){var e=t.size>=Na.LARGE,n=e?Na.LARGE:Na.STANDARD,a="".concat(-1*n/.05/2),l={transformOrigin:"center"};return St.createElement(Sh,qn({iconName:"caret-right",ref:r},t),St.createElement("path",{d:e?"M280 200C280 206.2 277 211.4 272.6 215.2L272.8 215.4L152.8 315.4L152.6 315.2C149.2 318 144.8 320 140 320C129 320 120 311 120 300V100C120 89 129 80 140 80C144.8 80 149.2 82 152.6 84.8L152.8 84.6L272.8 184.6L272.6 184.8C277 188.6 280 193.8 280 200z":"M220 160C220 163 218.6 165.6 216.6 167.4L216.6 167.4L136.6 237.4L136.6 237.4C134.8 239 132.6 240 130 240C124.4 240 120 235.6 120 230V90C120 84.4 124.4 80 130 80C132.6 80 134.8 81 136.6 82.6C136.6 82.6 136.6 82.6 136.6 82.6L216.6 152.6L216.6 152.6C218.6 154.4 220 157 220 160z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")"),style:l}))});tG.defaultProps={size:Na.STANDARD};tG.displayName="Blueprint5.Icon.CaretRight";var Uk=St.forwardRef(function(t,r){var e=t.size>=Na.LARGE,n=e?Na.LARGE:Na.STANDARD,a="".concat(-1*n/.05/2),l={transformOrigin:"center"};return St.createElement(Sh,qn({iconName:"cross",ref:r},t),St.createElement("path",{d:e?"M228.2 200L314 285.8C317.8 289.4 320 294.4 320 300C320 311 311 320 300 320C294.4000000000001 320 289.4000000000001 317.8 285.8 314.2L200 228.2L114.2 314.2C110.6 317.8 105.6 320 100 320C89 320 80 311 80 300C80 294.4 82.2 289.4 85.8 285.8L171.8 200L86 114.2000000000001C82.2 110.6 80 105.6 80 100C80 89 89 80 100 80C105.6 80 110.6 82.2 114.2 85.8L200 171.8L285.8 86C289.4000000000001 82.2 294.4000000000001 80 300 80C311 80 320 89 320 100C320 105.6 317.8 110.6 314.2000000000001 114.2000000000001L228.2 200z":"M188.2 160L254 225.8C257.8 229.4 260 234.4 260 240C260 251 251 260 240 260C234.4 260 229.4 257.8 225.8 254.2L160 188.2L94.2 254.2C90.6 257.8 85.6 260 80 260C69 260 60 251 60 240C60 234.4 62.2 229.4 65.8 225.8L131.8 160L66 94.2C62.2 90.6 60 85.6 60 80C60 69 69 60 80 60C85.6 60 90.6 62.2 94.2 65.8L160 131.8L225.8 66C229.4 62.2 234.4 60 240 60C251 60 260 69 260 80C260 85.6 257.8 90.6 254.2 94.2L188.2 160z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")"),style:l}))});Uk.defaultProps={size:Na.STANDARD};Uk.displayName="Blueprint5.Icon.Cross";var rG=St.forwardRef(function(t,r){var e=t.size>=Na.LARGE,n=e?Na.LARGE:Na.STANDARD,a="".concat(-1*n/.05/2),l={transformOrigin:"center"};return St.createElement(Sh,qn({iconName:"drag-handle-vertical",ref:r},t),St.createElement("path",{d:e?"M150 280C133.4 280 120 266.6 120 250S133.4 220 150 220S180 233.4 180 250S166.6 280 150 280zM150 180C133.4 180 120 166.6 120 150S133.4 120 150 120S180 133.4 180 150S166.6 180 150 180zM150 80C133.4 80 120 66.6 120 50S133.4 20 150 20S180 33.4 180 50S166.6 80 150 80zM250 320C266.6 320 280 333.4 280 350S266.6 380 250 380S220 366.6 220 350S233.4 320 250 320zM150 380C133.4 380 120 366.6 120 350S133.4 320 150 320S180 333.4 180 350S166.6 380 150 380zM250 180C233.4 180 220 166.6 220 150S233.4 120 250 120S280 133.4 280 150S266.6 180 250 180zM250 80C233.4 80 220 66.6 220 50S233.4 20 250 20S280 33.4 280 50S266.6 80 250 80zM250 280C233.4 280 220 266.6 220 250S233.4 220 250 220S280 233.4 280 250S266.6 280 250 280z":"M120 140C109 140 100 131 100 120C100 109 109 100 120 100S140 109 140 120C140 131 131 140 120 140zM200 260C211 260 220 269 220 280C220 291 211 300 200 300S180 291 180 280C180 269 189 260 200 260zM120 60C109 60 100 51 100 40C100 29 109 20 120 20S140 29 140 40C140 51 131 60 120 60zM120 220C109 220 100 211 100 200C100 189 109 180 120 180S140 189 140 200C140 211 131 220 120 220zM120 300C109 300 100 291 100 280C100 269 109 260 120 260S140 269 140 280C140 291 131 300 120 300zM200 140C189 140 180 131 180 120C180 109 189 100 200 100S220 109 220 120C220 131 211 140 200 140zM200 220C189 220 180 211 180 200C180 189 189 180 200 180S220 189 220 200C220 211 211 220 200 220zM200 60C189 60 180 51 180 40C180 29 189 20 200 20S220 29 220 40C220 51 211 60 200 60z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")"),style:l}))});rG.defaultProps={size:Na.STANDARD};rG.displayName="Blueprint5.Icon.DragHandleVertical";var oO=St.forwardRef(function(t,r){var e=t.size>=Na.LARGE,n=e?Na.LARGE:Na.STANDARD,a="".concat(-1*n/.05/2),l={transformOrigin:"center"};return St.createElement(Sh,qn({iconName:"key-command",ref:r},t),St.createElement("path",{d:e?"M310 160H280V240H310C348.6 240 380 271.4 380 310S348.6 380 310 380S240 348.6 240 310V280H160V310C160 348.6 128.6 380 90 380S20 348.6 20 310S51.4 240 90 240H120V160H90C51.4 160 20 128.6 20 90S51.4 20 90 20S160 51.4 160 90V120H240V90C240 51.4 271.4 20 310 20S380 51.4 380 90S348.6 160 310 160zM310 340C326.6 340 340 326.6 340 310S326.6 280 310 280S280 293.4 280 310S293.4 340 310 340zM90 60C73.4 60 60 73.4 60 90S73.4 120 90 120S120 106.6 120 90S106.6 60 90 60zM90 280C73.4 280 60 293.4 60 310S73.4 340 90 340S120 326.6 120 310S106.6 280 90 280zM240 160H160V240H240V160zM310 60C293.4 60 280 73.4 280 90S293.4 120 310 120S340 106.6 340 90S326.6 60 310 60z":"M240 140H220V180H240C273.2 180 300 206.8 300 240S273.2 300 240 300S180 273.2 180 240V220H140V240C140 273.2 113.2 300 80 300S20 273.2 20 240S46.8 180 80 180H100V140H80C46.8 140 20 113.2 20 80S46.8 20 80 20S140 46.8 140 80V100H180V80C180 46.8 206.8 20 240 20S300 46.8 300 80S273.2 140 240 140zM240 260C251 260 260 251 260 240C260 229 251 220 240 220S220 229 220 240C220 251 229 260 240 260zM80 60C69 60 60 69 60 80C60 91 69 100 80 100S100 91 100 80C100 69 91 60 80 60zM80 220C69 220 60 229 60 240C60 251 69 260 80 260S100 251 100 240C100 229 91 220 80 220zM180 140H140V180H180V140zM240 60C229 60 220 69 220 80C220 91 229 100 240 100S260 91 260 80C260 69 251 60 240 60z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")"),style:l}))});oO.defaultProps={size:Na.STANDARD};oO.displayName="Blueprint5.Icon.KeyCommand";var nG=St.forwardRef(function(t,r){var e=t.size>=Na.LARGE,n=e?Na.LARGE:Na.STANDARD,a="".concat(-1*n/.05/2),l={transformOrigin:"center"};return St.createElement(Sh,qn({iconName:"key-control",ref:r},t),St.createElement("path",{d:e?"M334.2000000000001 254.2L214.2 374.2C210.6 377.8 205.6 380 200 380S189.4 377.8 185.8 374.2L65.8 254.2C62.2 250.6 60 245.6 60 240C60 229 69 220 80 220C85.6 220 90.6 222.2 94.2 225.8L200 331.8L305.8 226C309.4000000000001 222.2 314.4000000000001 220 320 220C331 220 340 229 340 240C340 245.6 337.8 250.6 334.2000000000001 254.2z":"M254.2 214.2L174.2 294.2C170.6 297.8 165.6 300 160 300S149.4 297.8 145.8 294.2L65.8 214.2C62.2 210.6 60 205.6 60 200C60 189 69 180 80 180C85.6 180 90.6 182.2 94.2 185.8L160 251.8L225.8 186C229.4 182.2 234.4 180 240 180C251 180 260 189 260 200C260 205.6 257.8 210.6 254.2 214.2z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")"),style:l}))});nG.defaultProps={size:Na.STANDARD};nG.displayName="Blueprint5.Icon.KeyControl";var iG=St.forwardRef(function(t,r){var e=t.size>=Na.LARGE,n=e?Na.LARGE:Na.STANDARD,a="".concat(-1*n/.05/2),l={transformOrigin:"center"};return St.createElement(Sh,qn({iconName:"key-delete",ref:r},t),St.createElement("path",{d:e?"M394.2000000000001 214.2L274.2000000000001 334.2000000000001C270.6 337.8 265.6 340 260 340H20C9 340 0 331 0 320V80C0 69 9 60 20 60H260C265.6 60 270.6 62.2 274.2000000000001 65.8L394.2000000000001 185.8C397.8 189.4 400 194.4 400 200C400 205.6 397.8 210.6 394.2000000000001 214.2zM214.2 154.2C217.8 150.6 220 145.6 220 140C220 129 211 120 200 120C194.4 120 189.4 122.2 185.8 125.8L140 171.8L94.2 126C90.6 122.2 85.6 120 80 120C69 120 60 129 60 140C60 145.6 62.2 150.6 65.8 154.2L111.8 200L65.8 245.8C62.2 249.4 60 254.4 60 260C60 271 69 280 80 280C85.6 280 90.6 277.8 94.2 274.2L140 228.2L185.8 274C189.4 277.8 194.4 280 200 280C211 280 220 271 220 260C220 254.4 217.8 249.4 214.2 245.8L168.2 200L214.2 154.2z":"M314.2000000000001 174.2L214.2 274.2C210.6 277.8 205.6 280 200 280H20C9 280 0 271 0 260V60C0 49 9 40 20 40H200C205.6 40 210.6 42.2 214.2 45.8L314.2000000000001 145.8C317.8 149.4 320 154.4 320 160C320 165.6 317.8 170.6 314.2000000000001 174.2zM174.2 134.2C177.8 130.6 180 125.6 180 120C180 109 171 100 160 100C154.4 100 149.4 102.2 145.8 105.8L120 131.8L94.2 106C90.6 102.2 85.6 100 80 100C69 100 60 109 60 120C60 125.6 62.2 130.6 65.8 134.2L91.8 160L65.8 185.8C62.2 189.4 60 194.4 60 200C60 211 69 220 80 220C85.6 220 90.6 217.8 94.2 214.2L120 188.2L145.8 214C149.4 217.8 154.4 220 160 220C171 220 180 211 180 200C180 194.4 177.8 189.4 174.2 185.8L148.2 160L174.2 134.2z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")"),style:l}))});iG.defaultProps={size:Na.STANDARD};iG.displayName="Blueprint5.Icon.KeyDelete";var aG=St.forwardRef(function(t,r){var e=t.size>=Na.LARGE,n=e?Na.LARGE:Na.STANDARD,a="".concat(-1*n/.05/2),l={transformOrigin:"center"};return St.createElement(Sh,qn({iconName:"key-enter",ref:r},t),St.createElement("path",{d:e?"M360 360C349 360 340 351 340 340V240C340 195.8 304.2000000000001 160 260 160H88.2L134 205.8C137.8 209.4 140 214.4 140 220C140 231 131 240 120 240C114.4 240 109.4 237.8 105.8 234.2L25.8 154.2C22.2 150.6 20 145.6 20 140C20 134.4 22.2 129.4 25.8 125.8L105.8 45.8C109.4 42.2 114.4 40 120 40C131 40 140 49 140 60C140 65.6 137.8 70.6 134.2 74.2000000000001L88.2 120H260C326.2 120 380 173.8 380 240V340C380 351 371 360 360 360z":"M280 280C269 280 260 271 260 260V200C260 166.8 233.2 140 200 140H88.2L114 165.8C117.8 169.4 120 174.4 120 180C120 191 111 200 100 200C94.4 200 89.4 197.8 85.8 194.2L25.8 134.2C22.2 130.6 20 125.6 20 120C20 114.4 22.2 109.4 25.8 105.8L85.8 45.8C89.4 42.2 94.4 40 100 40C111 40 120 49 120 60C120 65.6 117.8 70.6 114.2 74.2L88.2 100H200C255.2 100 300 144.8 300 200V260C300 271 291 280 280 280z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")"),style:l}))});aG.defaultProps={size:Na.STANDARD};aG.displayName="Blueprint5.Icon.KeyEnter";var oG=St.forwardRef(function(t,r){var e=t.size>=Na.LARGE,n=e?Na.LARGE:Na.STANDARD,a="".concat(-1*n/.05/2),l={transformOrigin:"center"};return St.createElement(Sh,qn({iconName:"key-option",ref:r},t),St.createElement("path",{d:e?"M260 320H380C391 320 400 329 400 340C400 351 391 360 380 360H260C249 360 240 351 240 340C240 329 249 320 260 320zM380 80H291.6L137.4 350L137 349.8C133.6 355.8 127.4 360 120 360H20C9 360 0 351 0 340C0 329 9 320 20 320H108.4L262.6 50L262.8 50.2C266.4 44.2 272.6 40 280 40H380C391 40 400 49 400 60C400 71 391 80 380 80z":"M220 240H300C311 240 320 249 320 260C320 271 311 280 300 280H220C209 280 200 271 200 260C200 249 209 240 220 240zM300 80H231.4L117.2 270.2L116.8 270.2C113.4 276 107.2 280 100 280H20C9 280 0 271 0 260C0 249 9 240 20 240H88.6L202.8 49.8L203 50C206.6 44 212.8 40 220 40H300C311 40 320 49 320 60C320 71 311 80 300 80z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")"),style:l}))});oG.defaultProps={size:Na.STANDARD};oG.displayName="Blueprint5.Icon.KeyOption";var sG=St.forwardRef(function(t,r){var e=t.size>=Na.LARGE,n=e?Na.LARGE:Na.STANDARD,a="".concat(-1*n/.05/2),l={transformOrigin:"center"};return St.createElement(Sh,qn({iconName:"key-shift",ref:r},t),St.createElement("path",{d:e?"M354.8 193L354.8 193L215 353.2L214.8 353C211.2 357.2 206 360 200 360S188.8 357.2 185.2 353L185 353.2L45 193.2L45.2 193C42 189.6 40 185 40 180C40 169 49 160 60 160H120V60C120 49 129 40 140 40H260C271 40 280 49 280 60V160H340C351 160 360 169 360 180C360 185 358 189.6 354.8 193z":"M274.2000000000001 174.2L174.2 274.2C170.6 277.8 165.6 280 160 280S149.4 277.8 145.8 274.2L45.8 174.2C42.2 170.6 40 165.6 40 160C40 149 49 140 60 140H100V60C100 49 109 40 120 40H200C211 40 220 49 220 60V140H260C271 140 280 149 280 160C280 165.6 277.8 170.6 274.2000000000001 174.2z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")"),style:l}))});sG.defaultProps={size:Na.STANDARD};sG.displayName="Blueprint5.Icon.KeyShift";var sO=St.forwardRef(function(t,r){var e=t.size>=Na.LARGE,n=e?Na.LARGE:Na.STANDARD,a="".concat(-1*n/.05/2),l={transformOrigin:"center"};return St.createElement(Sh,qn({iconName:"more",ref:r},t),St.createElement("path",{d:e?"M20 190A50 50 0 0 1 120 190A50 50 0 0 1 20 190M300 190A50 50 0 0 1 400 190A50 50 0 0 1 300 190M160 190A50 50 0 0 1 260 190A50 50 0 0 1 160 190":"M0 159.4A40 40 0 0 1 80 159.4A40 40 0 0 1 0 159.4M240 159.4A40 40 0 0 1 320 159.4A40 40 0 0 1 240 159.4M120 159.4A40 40 0 0 1 200 159.4A40 40 0 0 1 120 159.4",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")"),style:l}))});sO.defaultProps={size:Na.STANDARD};sO.displayName="Blueprint5.Icon.More";var lG=St.forwardRef(function(t,r){var e=t.size>=Na.LARGE,n=e?Na.LARGE:Na.STANDARD,a="".concat(-1*n/.05/2),l={transformOrigin:"center"};return St.createElement(Sh,qn({iconName:"search",ref:r},t),St.createElement("path",{d:e?"M391.2 51.2L292.4 150C309.8 175.8 320 206.6 320 240C320 328.4 248.4 400 160 400S0 328.4 0 240S71.6 80 160 80C193.4 80 224.2 90.2 250 107.6L348.8 8.8C354.2000000000001 3.4 361.8 0 370 0C386.6 0 400 13.4 400 30C400 38.2 396.6 45.8 391.2 51.2zM160 120C93.8 120 40 173.8 40 240S93.8 360 160 360S280 306.2000000000001 280 240S226.2 120 160 120z":"M311 51.4L257.6 105C271.6 126.8 279.8 152.6 279.8 180.2C279.8 257.6 217.2 320.2 139.8 320.2S-0.2 257.6 -0.2 180.2S62.4 40.2 139.8 40.2C167.6 40.2 193.4 48.6 215 62.4L268.6 9C274 3.6 281.6 0.2 289.8 0.2C306.4 0.2 319.8 13.6 319.8 30.2C319.8 38.4 316.4 46 311 51.4zM139.8 80.2C84.6 80.2 39.8 125 39.8 180.2S84.6 280.2 139.8 280.2S239.8 235.4 239.8 180.2S195 80.2 139.8 80.2z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")"),style:l}))});lG.defaultProps={size:Na.STANDARD};lG.displayName="Blueprint5.Icon.Search";var Hk=St.forwardRef(function(t,r){var e=t.size>=Na.LARGE,n=e?Na.LARGE:Na.STANDARD,a="".concat(-1*n/.05/2),l={transformOrigin:"center"};return St.createElement(Sh,qn({iconName:"small-cross",ref:r},t),St.createElement("path",{d:e?"M228.2 200L294 265.8C297.8 269.4 300 274.4 300 280C300 291 291 300 280 300C274.4000000000001 300 269.4000000000001 297.8 265.8 294.2L200 228.2L134.2 294.2C130.6 297.8 125.6 300 120 300C109 300 100 291 100 280C100 274.4 102.2 269.4 105.8 265.8L171.8 200L106 134.2000000000001C102.2 130.6 100 125.6 100 120C100 109 109 100 120 100C125.6 100 130.6 102.2 134.2 105.8L200 171.8L265.8 106C269.4000000000001 102.2 274.4000000000001 100 280 100C291 100 300 109 300 120C300 125.6 297.8 130.6 294.2000000000001 134.2000000000001L228.2 200z":"M188.2 160L234 205.8C237.8 209.4 240 214.4 240 220C240 231 231 240 220 240C214.4 240 209.4 237.8 205.8 234.2L160 188.2L114.2 234.2C110.6 237.8 105.6 240 100 240C89 240 80 231 80 220C80 214.4 82.2 209.4 85.8 205.8L131.8 160L86 114.2C82.2 110.6 80 105.6 80 100C80 89 89 80 100 80C105.6 80 110.6 82.2 114.2 85.8L160 131.8L205.8 86C209.4 82.2 214.4 80 220 80C231 80 240 89 240 100C240 105.6 237.8 110.6 234.2 114.2L188.2 160z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")"),style:l}))});Hk.defaultProps={size:Na.STANDARD};Hk.displayName="Blueprint5.Icon.SmallCross";var uG=St.forwardRef(function(t,r){var e=t.size>=Na.LARGE,n=e?Na.LARGE:Na.STANDARD,a="".concat(-1*n/.05/2),l={transformOrigin:"center"};return St.createElement(Sh,qn({iconName:"small-tick",ref:r},t),St.createElement("path",{d:e?"M300 300C294.4000000000001 300 289.4000000000001 297.8 285.8 294.2L160 168.2L114.2 214.2C110.6 217.8 105.6 220 100 220C89 220 80 211 80 200C80 194.4 82.2 189.4 85.8 185.8L145.8 125.8C149.4 122.2 154.4 120 160 120S170.6 122.2 174.2 125.8L314.2000000000001 265.8C317.8 269.4 320 274.4 320 280C320 291 311 300 300 300z":"M240 220C234.4 220 229.4 217.8 225.8 214.2L140 128.2L94.2 174.2C90.6 177.8 85.6 180 80 180C69 180 60 171 60 160C60 154.4 62.2 149.4 65.8 145.8L125.8 85.8C129.4 82.2 134.4 80 140 80S150.6 82.2 154.2 85.8L254.2 185.8C257.8 189.4 260 194.4 260 200C260 211 251 220 240 220z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")"),style:l}))});uG.defaultProps={size:Na.STANDARD};uG.displayName="Blueprint5.Icon.SmallTick";var fl=St.forwardRef(function(t,r){var e,n,a=t.autoLoad,l=a===void 0?!0:a,o=t.className,f=t.color,i=t.icon,s=t.intent,d=t.tagName,u=d===void 0?"span":d,h=t.svgProps,y=t.title,b=t.htmlTitle,C=Ps(t,["autoLoad","className","color","icon","intent","tagName","svgProps","title","htmlTitle"]),m=(n=(e=t.iconSize)!==null&&e!==void 0?e:t.size)!==null&&n!==void 0?n:Na.STANDARD,c=St.useState(function(){return typeof i=="string"?RS.getPaths(i,m):void 0}),v=c[0],g=c[1];if(St.useEffect(function(){var A=!1;if(typeof i=="string"){var _=RS.getPaths(i,m);_!==void 0?g(_):l?RS.load(i,m).then(function(){A||g(RS.getPaths(i,m))}).catch(function(w){console.error("[Blueprint] Icon '".concat(i,"' (").concat(m,"px) could not be loaded."),w)}):console.error("[Blueprint] Icon '".concat(i,"' (").concat(m,"px) is not loaded yet and autoLoad={false}, did you call Icons.load('").concat(i,"', ").concat(m,")?"))}return function(){A=!0}},[l,i,m]),i==null||typeof i=="boolean")return null;if(typeof i!="string")return i;if(v==null){var p=m===Na.STANDARD?nMe:m===Na.LARGE?iMe:void 0;return St.createElement(u||"span",qn(qn({"aria-hidden":y?void 0:!0},WC(C)),{className:Di(YV,p,aMe(i),Vd(s),o),"data-icon":i,ref:r,title:b}))}else{var I=v.map(function(A,_){return St.createElement("path",{d:A,key:_,fillRule:"evenodd"})});return St.createElement(Sh,qn({children:I,className:Di(Vd(s),o),color:f,htmlTitle:b,iconName:i,ref:r,size:m,svgProps:h,tagName:u,title:y},WC(C)))}});fl.displayName="".concat(Wo,".Icon");var Wb;(function(t){t[t.SMALL=20]="SMALL",t[t.STANDARD=50]="STANDARD",t[t.LARGE=100]="LARGE"})(Wb||(Wb={}));var YA=45,HK="M 50,50 m 0,-".concat(YA," a ").concat(YA,",").concat(YA," 0 1 1 0,").concat(YA*2," a ").concat(YA,",").concat(YA," 0 1 1 0,-").concat(YA*2),iS=280,I4e=10,b4e=4,x4e=16,cG=function(t){var r,e=t.className,n=e===void 0?"":e,a=t.intent,l=t.value,o=t.tagName,f=o===void 0?"div":o,i=t.size,s=Ps(t,["className","intent","value","tagName","size"]);jhe(function(){var b=i!=null,C=n.indexOf(aO)>=0||n.indexOf(RT)>=0;b&&C&&console.warn(HMe)},[n,i]);var d=w4e(i,n),u=Math.min(x4e,b4e*Wb.LARGE/d),h=iS-iS*(l==null?.25:C3(l,0,1)),y=Di(Fk,Vd(a),(r={},r[Z5e]=l!=null,r),n);return St.createElement(f,qn({"aria-label":"loading","aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":l===void 0?void 0:l*100,className:y,role:"progressbar"},s),St.createElement(f,{className:G5e},St.createElement("svg",{width:d,height:d,strokeWidth:u.toFixed(2),viewBox:T4e(u)},St.createElement("path",{className:Y5e,d:HK}),St.createElement("path",{className:W5e,d:HK,pathLength:iS,strokeDasharray:"".concat(iS," ").concat(iS),strokeDashoffset:h}))))};cG.displayName="".concat(Wo,".Spinner");var w4e=function(t,r){return t==null?r.indexOf(aO)>=0?Wb.SMALL:r.indexOf(RT)>=0?Wb.LARGE:Wb.STANDARD:Math.max(I4e,t)},T4e=function(t){var r=YA+t/2,e=(50-r).toFixed(2),n=(r*2).toFixed(2);return"".concat(e," ").concat(e," ").concat(n," ").concat(n)},_4e=zhe()?St.useLayoutEffect:St.useEffect,jk=St.forwardRef(function(t,r){var e,n=t.children,a=t.tagName,l=a===void 0?"div":a,o=t.title,f=t.className,i=t.ellipsize,s=i===void 0?!1:i,d=Ps(t,["children","tagName","title","className","ellipsize"]),u=St.useRef(),h=St.useMemo(function(){return q1(u,r)},[r]),y=St.useState(""),b=y[0],C=y[1],m=St.useState(),c=m[0],v=m[1];return _4e(function(){var g;((g=u.current)===null||g===void 0?void 0:g.textContent)!=null&&(v(s&&u.current.scrollWidth>u.current.clientWidth),C(u.current.textContent))},[u,n,s]),St.createElement(l,qn(qn({},d),{className:Di((e={},e[PEe]=s,e),f),ref:h,title:o??(c?b:void 0)}),n)});jk.displayName="".concat(Wo,".Text");var qa=St.forwardRef(function(t,r){var e=Yhe(t,r);return St.createElement("button",qn({type:"button"},WC(t),e),Xhe(t))});qa.displayName="".concat(Wo,".Button");var bx=St.forwardRef(function(t,r){var e=t.href,n=Yhe(t,r,{defaultTabIndex:0,disabledTabIndex:-1});return St.createElement("a",qn({role:"button"},WC(t),n,{"aria-disabled":n.disabled,href:n.disabled?void 0:e}),Xhe(t))});bx.displayName="".concat(Wo,".AnchorButton");function Yhe(t,r,e){var n,a=t.alignText,l=t.fill,o=t.large,f=t.loading,i=f===void 0?!1:f,s=t.minimal,d=t.outlined,u=t.size,h=u===void 0?"medium":u,y=t.small,b=t.variant,C=b===void 0?"solid":b,m=t.disabled||i,c=Vhe(!m,t,r,e),v=c[0],g=c[1],p=Di(H5,(n={},n[Ax]=v,n[sI]=m,n[nm]=l,n[VV]=i,n),zk(a),Vd(t.intent),lI(h,{large:o,small:y}),Fhe(C,{minimal:s,outlined:d}),t.className);return qn(qn({},g),{className:p,disabled:m})}function Xhe(t){var r=t.children,e=t.ellipsizeText,n=t.endIcon,a=t.icon,l=t.loading,o=t.rightIcon,f=t.text,i=t.textClassName,s=!YE(f)||!YE(r);return St.createElement(St.Fragment,null,l&&St.createElement(cG,{className:NEe,size:Wb.SMALL}),St.createElement(fl,{icon:a}),s&&St.createElement(jk,{className:Di(FEe,i),ellipsize:e,tagName:"span"},f,r),St.createElement(fl,{icon:n??o}))}function t0(t,r){return St.forwardRef(function(e,n){var a=e.className,l=e.children,o=Ps(e,["className","children"]);return St.createElement(t,qn(qn({},o),{className:Di(r,a),ref:n}),l)})}t0("h1",m3);t0("h2",m3);t0("h3",m3);var S4e=t0("h4",m3);t0("h5",m3);var E4e=t0("h6",m3);t0("blockquote",LEe);t0("code",OEe);t0("pre",kEe);var M4e=t0("label",The);t0("ol",mhe);t0("ul",mhe);function fG(t,r){if(t==null)return{};var e={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(r.indexOf(n)!==-1)continue;e[n]=t[n]}return e}var Khe={exports:{}},R4e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",P4e=R4e,L4e=P4e;function Qhe(){}function Jhe(){}Jhe.resetWarningCache=Qhe;var O4e=function(){function t(n,a,l,o,f,i){if(i!==L4e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}t.isRequired=t;function r(){return t}var e={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:r,element:t,elementType:t,instanceOf:r,node:t,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:Jhe,resetWarningCache:Qhe};return e.PropTypes=e,e};Khe.exports=O4e();var k4e=Khe.exports;function D4e(t,r){return t.classList?!!r&&t.classList.contains(r):(" "+(t.className.baseVal||t.className)+" ").indexOf(" "+r+" ")!==-1}function N4e(t,r){t.classList?t.classList.add(r):D4e(t,r)||(typeof t.className=="string"?t.className=t.className+" "+r:t.setAttribute("class",(t.className&&t.className.baseVal||"")+" "+r))}function jK(t,r){return t.replace(new RegExp("(^|\\s)"+r+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function F4e(t,r){t.classList?t.classList.remove(r):typeof t.className=="string"?t.className=jK(t.className,r):t.setAttribute("class",jK(t.className&&t.className.baseVal||"",r))}const VK={disabled:!1},lO=so.createContext(null);var qhe=function(r){return r.scrollTop},PS="unmounted",Ab="exited",Cb="entering",v2="entered",nU="exiting",dA=function(t){oI(r,t);function r(n,a){var l;l=t.call(this,n,a)||this;var o=a,f=o&&!o.isMounting?n.enter:n.appear,i;return l.appearStatus=null,n.in?f?(i=Ab,l.appearStatus=Cb):i=v2:n.unmountOnExit||n.mountOnEnter?i=PS:i=Ab,l.state={status:i},l.nextCallback=null,l}r.getDerivedStateFromProps=function(a,l){var o=a.in;return o&&l.status===PS?{status:Ab}:null};var e=r.prototype;return e.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},e.componentDidUpdate=function(a){var l=null;if(a!==this.props){var o=this.state.status;this.props.in?o!==Cb&&o!==v2&&(l=Cb):(o===Cb||o===v2)&&(l=nU)}this.updateStatus(!1,l)},e.componentWillUnmount=function(){this.cancelNextCallback()},e.getTimeouts=function(){var a=this.props.timeout,l,o,f;return l=o=f=a,a!=null&&typeof a!="number"&&(l=a.exit,o=a.enter,f=a.appear!==void 0?a.appear:o),{exit:l,enter:o,appear:f}},e.updateStatus=function(a,l){if(a===void 0&&(a=!1),l!==null)if(this.cancelNextCallback(),l===Cb){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:P2.findDOMNode(this);o&&qhe(o)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ab&&this.setState({status:PS})},e.performEnter=function(a){var l=this,o=this.props.enter,f=this.context?this.context.isMounting:a,i=this.props.nodeRef?[f]:[P2.findDOMNode(this),f],s=i[0],d=i[1],u=this.getTimeouts(),h=f?u.appear:u.enter;if(!a&&!o||VK.disabled){this.safeSetState({status:v2},function(){l.props.onEntered(s)});return}this.props.onEnter(s,d),this.safeSetState({status:Cb},function(){l.props.onEntering(s,d),l.onTransitionEnd(h,function(){l.safeSetState({status:v2},function(){l.props.onEntered(s,d)})})})},e.performExit=function(){var a=this,l=this.props.exit,o=this.getTimeouts(),f=this.props.nodeRef?void 0:P2.findDOMNode(this);if(!l||VK.disabled){this.safeSetState({status:Ab},function(){a.props.onExited(f)});return}this.props.onExit(f),this.safeSetState({status:nU},function(){a.props.onExiting(f),a.onTransitionEnd(o.exit,function(){a.safeSetState({status:Ab},function(){a.props.onExited(f)})})})},e.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},e.safeSetState=function(a,l){l=this.setNextCallback(l),this.setState(a,l)},e.setNextCallback=function(a){var l=this,o=!0;return this.nextCallback=function(f){o&&(o=!1,l.nextCallback=null,a(f))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},e.onTransitionEnd=function(a,l){this.setNextCallback(l);var o=this.props.nodeRef?this.props.nodeRef.current:P2.findDOMNode(this),f=a==null&&!this.props.addEndListener;if(!o||f){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],s=i[0],d=i[1];this.props.addEndListener(s,d)}a!=null&&setTimeout(this.nextCallback,a)},e.render=function(){var a=this.state.status;if(a===PS)return null;var l=this.props,o=l.children;l.in,l.mountOnEnter,l.unmountOnExit,l.appear,l.enter,l.exit,l.timeout,l.addEndListener,l.onEnter,l.onEntering,l.onEntered,l.onExit,l.onExiting,l.onExited,l.nodeRef;var f=fG(l,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return so.createElement(lO.Provider,{value:null},typeof o=="function"?o(a,f):so.cloneElement(so.Children.only(o),f))},r}(so.Component);dA.contextType=lO;dA.propTypes={};function jw(){}dA.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:jw,onEntering:jw,onEntered:jw,onExit:jw,onExiting:jw,onExited:jw};dA.UNMOUNTED=PS;dA.EXITED=Ab;dA.ENTERING=Cb;dA.ENTERED=v2;dA.EXITING=nU;var z4e=function(r,e){return r&&e&&e.split(" ").forEach(function(n){return N4e(r,n)})},BN=function(r,e){return r&&e&&e.split(" ").forEach(function(n){return F4e(r,n)})},eE=function(t){oI(r,t);function r(){for(var n,a=arguments.length,l=new Array(a),o=0;o<a;o++)l[o]=arguments[o];return n=t.call.apply(t,[this].concat(l))||this,n.appliedClasses={appear:{},enter:{},exit:{}},n.onEnter=function(f,i){var s=n.resolveArguments(f,i),d=s[0],u=s[1];n.removeClasses(d,"exit"),n.addClass(d,u?"appear":"enter","base"),n.props.onEnter&&n.props.onEnter(f,i)},n.onEntering=function(f,i){var s=n.resolveArguments(f,i),d=s[0],u=s[1],h=u?"appear":"enter";n.addClass(d,h,"active"),n.props.onEntering&&n.props.onEntering(f,i)},n.onEntered=function(f,i){var s=n.resolveArguments(f,i),d=s[0],u=s[1],h=u?"appear":"enter";n.removeClasses(d,h),n.addClass(d,h,"done"),n.props.onEntered&&n.props.onEntered(f,i)},n.onExit=function(f){var i=n.resolveArguments(f),s=i[0];n.removeClasses(s,"appear"),n.removeClasses(s,"enter"),n.addClass(s,"exit","base"),n.props.onExit&&n.props.onExit(f)},n.onExiting=function(f){var i=n.resolveArguments(f),s=i[0];n.addClass(s,"exit","active"),n.props.onExiting&&n.props.onExiting(f)},n.onExited=function(f){var i=n.resolveArguments(f),s=i[0];n.removeClasses(s,"exit"),n.addClass(s,"exit","done"),n.props.onExited&&n.props.onExited(f)},n.resolveArguments=function(f,i){return n.props.nodeRef?[n.props.nodeRef.current,f]:[f,i]},n.getClassNames=function(f){var i=n.props.classNames,s=typeof i=="string",d=s&&i?i+"-":"",u=s?""+d+f:i[f],h=s?u+"-active":i[f+"Active"],y=s?u+"-done":i[f+"Done"];return{baseClassName:u,activeClassName:h,doneClassName:y}},n}var e=r.prototype;return e.addClass=function(a,l,o){var f=this.getClassNames(l)[o+"ClassName"],i=this.getClassNames("enter"),s=i.doneClassName;l==="appear"&&o==="done"&&s&&(f+=" "+s),o==="active"&&a&&qhe(a),f&&(this.appliedClasses[l][o]=f,z4e(a,f))},e.removeClasses=function(a,l){var o=this.appliedClasses[l],f=o.base,i=o.active,s=o.done;this.appliedClasses[l]={},f&&BN(a,f),i&&BN(a,i),s&&BN(a,s)},e.render=function(){var a=this.props;a.classNames;var l=fG(a,["classNames"]);return so.createElement(dA,Dl({},l,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},r}(so.Component);eE.defaultProps={classNames:""};eE.propTypes={};function B4e(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function hG(t,r){var e=function(l){return r&&St.isValidElement(l)?r(l):l},n=Object.create(null);return t&&St.Children.map(t,function(a){return a}).forEach(function(a){n[a.key]=e(a)}),n}function $4e(t,r){t=t||{},r=r||{};function e(d){return d in r?r[d]:t[d]}var n=Object.create(null),a=[];for(var l in t)l in r?a.length&&(n[l]=a,a=[]):a.push(l);var o,f={};for(var i in r){if(n[i])for(o=0;o<n[i].length;o++){var s=n[i][o];f[n[i][o]]=e(s)}f[i]=e(i)}for(o=0;o<a.length;o++)f[a[o]]=e(a[o]);return f}function kb(t,r,e){return e[r]!=null?e[r]:t.props[r]}function U4e(t,r){return hG(t.children,function(e){return St.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:kb(e,"appear",t),enter:kb(e,"enter",t),exit:kb(e,"exit",t)})})}function H4e(t,r,e){var n=hG(t.children),a=$4e(r,n);return Object.keys(a).forEach(function(l){var o=a[l];if(St.isValidElement(o)){var f=l in r,i=l in n,s=r[l],d=St.isValidElement(s)&&!s.props.in;i&&(!f||d)?a[l]=St.cloneElement(o,{onExited:e.bind(null,o),in:!0,exit:kb(o,"exit",t),enter:kb(o,"enter",t)}):!i&&f&&!d?a[l]=St.cloneElement(o,{in:!1}):i&&f&&St.isValidElement(s)&&(a[l]=St.cloneElement(o,{onExited:e.bind(null,o),in:s.props.in,exit:kb(o,"exit",t),enter:kb(o,"enter",t)}))}}),a}var j4e=Object.values||function(t){return Object.keys(t).map(function(r){return t[r]})},V4e={component:"div",childFactory:function(r){return r}},dG=function(t){oI(r,t);function r(n,a){var l;l=t.call(this,n,a)||this;var o=l.handleExited.bind(B4e(l));return l.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},l}var e=r.prototype;return e.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},e.componentWillUnmount=function(){this.mounted=!1},r.getDerivedStateFromProps=function(a,l){var o=l.children,f=l.handleExited,i=l.firstRender;return{children:i?U4e(a,f):H4e(a,o,f),firstRender:!1}},e.handleExited=function(a,l){var o=hG(this.props.children);a.key in o||(a.props.onExited&&a.props.onExited(l),this.mounted&&this.setState(function(f){var i=Dl({},f.children);return delete i[a.key],{children:i}}))},e.render=function(){var a=this.props,l=a.component,o=a.childFactory,f=fG(a,["component","childFactory"]),i=this.state.contextValue,s=j4e(this.state.children).map(o);return delete f.appear,delete f.enter,delete f.exit,l===null?so.createElement(lO.Provider,{value:i},s):so.createElement(lO.Provider,{value:i},so.createElement(l,f,s))},r}(so.Component);dG.propTypes={};dG.defaultProps=V4e;var G4e=function(){var t=1,r=new WeakMap,e=function(n,a){return typeof n=="number"||typeof n=="string"?a?"idx-".concat(a):"val-".concat(n):r.has(n)?"uid"+r.get(n):(r.set(n,t++),e(n))};return e},ede=function(t){return t===void 0&&(t=""),{value:1,prefix:t,uid:G4e()}},W4e=ede(),Z4e=St.createContext(ede()),Y4e=function(t){return t.value++},X4e=function(t){return t?t.prefix:""},K4e=function(t){var r=t||W4e,e=X4e(r),n=Y4e(r),a=e+n,l=function(o){return a+r.uid(o)};return{uid:a,gen:l}},Q4e=function(){var t=St.useContext(Z4e),r=St.useState(function(){return K4e(t)})[0];return r},J4e=function(){var t=Q4e().uid;return t},tde=St.createContext({hasProvider:!1,stack:{current:[]}}),q4e=function(t){var r=t.children,e=St.useRef([]),n=St.useMemo(function(){return{hasProvider:!0,stack:e}},[e]);return St.createElement(tde.Provider,{value:n},r)},rde={exports:{}},nde={};/**
|
73
73
|
* @license React
|
74
74
|
* use-sync-external-store-shim.production.js
|
75
75
|
*
|
@@ -99,7 +99,7 @@ License: MIT
|
|
99
99
|
`,k='"',F=k+k,D=!1,P=null,z=!1,M=((()=>{if(typeof E=="object"){if(typeof E.delimiter!="string"||s.BAD_DELIMITERS.filter(function(O){return E.delimiter.indexOf(O)!==-1}).length||(T=E.delimiter),typeof E.quotes!="boolean"&&typeof E.quotes!="function"&&!Array.isArray(E.quotes)||(x=E.quotes),typeof E.skipEmptyLines!="boolean"&&typeof E.skipEmptyLines!="string"||(D=E.skipEmptyLines),typeof E.newline=="string"&&(L=E.newline),typeof E.quoteChar=="string"&&(k=E.quoteChar),typeof E.header=="boolean"&&(S=E.header),Array.isArray(E.columns)){if(E.columns.length===0)throw new Error("Option columns is empty");P=E.columns}E.escapeChar!==void 0&&(F=E.escapeChar+k),E.escapeFormulae instanceof RegExp?z=E.escapeFormulae:typeof E.escapeFormulae=="boolean"&&E.escapeFormulae&&(z=/^[=+\-@\t\r].*$/)}})(),new RegExp(m(k),"g"));if(typeof w=="string"&&(w=JSON.parse(w)),Array.isArray(w)){if(!w.length||Array.isArray(w[0]))return R(null,w,D);if(typeof w[0]=="object")return R(P||Object.keys(w[0]),w,D)}else if(typeof w=="object")return typeof w.data=="string"&&(w.data=JSON.parse(w.data)),Array.isArray(w.data)&&(w.fields||(w.fields=w.meta&&w.meta.fields||P),w.fields||(w.fields=Array.isArray(w.data[0])?w.fields:typeof w.data[0]=="object"?Object.keys(w.data[0]):[]),Array.isArray(w.data[0])||typeof w.data[0]=="object"||(w.data=[w.data])),R(w.fields||[],w.data||[],D);throw new Error("Unable to serialize unrecognized input");function R(O,H,W){var G="",X=(typeof O=="string"&&(O=JSON.parse(O)),typeof H=="string"&&(H=JSON.parse(H)),Array.isArray(O)&&0<O.length),Y=!Array.isArray(H[0]);if(X&&S){for(var Q=0;Q<O.length;Q++)0<Q&&(G+=T),G+=N(O[Q],Q);0<H.length&&(G+=L)}for(var V=0;V<H.length;V++){var K=(X?O:H[V]).length,re=!1,oe=X?Object.keys(H[V]).length===0:H[V].length===0;if(W&&!X&&(re=W==="greedy"?H[V].join("").trim()==="":H[V].length===1&&H[V][0].length===0),W==="greedy"&&X){for(var ue=[],me=0;me<K;me++){var pe=Y?O[me]:me;ue.push(H[V][pe])}re=ue.join("").trim()===""}if(!re){for(var se=0;se<K;se++){0<se&&!oe&&(G+=T);var ne=X&&Y?O[se]:se;G+=N(H[V][ne],se)}V<H.length-1&&(!W||0<K&&!oe)&&(G+=L)}}return G}function N(O,H){var W,G;return O==null?"":O.constructor===Date?JSON.stringify(O).slice(1,25):(G=!1,z&&typeof O=="string"&&z.test(O)&&(O="'"+O,G=!0),W=O.toString().replace(M,F),(G=G||x===!0||typeof x=="function"&&x(O,H)||Array.isArray(x)&&x[H]||((X,Y)=>{for(var Q=0;Q<Y.length;Q++)if(-1<X.indexOf(Y[Q]))return!0;return!1})(W,s.BAD_DELIMITERS)||-1<W.indexOf(T)||W.charAt(0)===" "||W.charAt(W.length-1)===" ")?k+W+k:W)}},s.RECORD_SEP="",s.UNIT_SEP="",s.BYTE_ORDER_MARK="\uFEFF",s.BAD_DELIMITERS=["\r",`
|
100
100
|
`,'"',s.BYTE_ORDER_MARK],s.WORKERS_SUPPORTED=!l&&!!n.Worker,s.NODE_STREAM_INPUT=1,s.LocalChunkSize=10485760,s.RemoteChunkSize=5242880,s.DefaultDelimiter=",",s.Parser=c,s.ParserHandle=C,s.NetworkStreamer=u,s.FileStreamer=h,s.StringStreamer=y,s.ReadableStreamStreamer=b,n.jQuery&&((a=n.jQuery).fn.parse=function(w){var E=w.config||{},x=[];return this.each(function(L){if(!(a(this).prop("tagName").toUpperCase()==="INPUT"&&a(this).attr("type").toLowerCase()==="file"&&n.FileReader)||!this.files||this.files.length===0)return!0;for(var k=0;k<this.files.length;k++)x.push({file:this.files[k],inputElem:this,instanceConfig:a.extend({},E)})}),S(),this;function S(){if(x.length===0)_(w.complete)&&w.complete();else{var L,k,F,D,P=x[0];if(_(w.before)){var z=w.before(P.file,P.inputElem);if(typeof z=="object"){if(z.action==="abort")return L="AbortError",k=P.file,F=P.inputElem,D=z.reason,void(_(w.error)&&w.error({name:L},k,F,D));if(z.action==="skip")return void T();typeof z.config=="object"&&(P.instanceConfig=a.extend(P.instanceConfig,z.config))}else if(z==="skip")return void T()}var M=P.instanceConfig.complete;P.instanceConfig.complete=function(R){_(M)&&M(R,P.file,P.inputElem),T()},s.parse(P.file,P.instanceConfig)}}function T(){x.splice(0,1),S()}}),o&&(n.onmessage=function(w){w=w.data,s.WORKER_ID===void 0&&w&&(s.WORKER_ID=w.workerId),typeof w.input=="string"?n.postMessage({workerId:s.WORKER_ID,results:s.parse(w.input,w.config),finished:!0}):(n.File&&w.input instanceof File||w.input instanceof Object)&&(w=s.parse(w.input,w.config))&&n.postMessage({workerId:s.WORKER_ID,results:w,finished:!0})}),(u.prototype=Object.create(d.prototype)).constructor=u,(h.prototype=Object.create(d.prototype)).constructor=h,(y.prototype=Object.create(y.prototype)).constructor=y,(b.prototype=Object.create(d.prototype)).constructor=b,s})})(Lve);var dke=Lve.exports;const Ove=ny(dke),Qf=bc.create({baseURL:"/"}),BG=()=>{let t=sessionStorage.getItem("tab_id");return t||(t=Math.random().toString(36).substring(2,15),sessionStorage.setItem("tab_id",t)),t};Qf.interceptors.request.use(t=>{const r=BG();return r&&(t.params={...t.params,tabId:r}),t},t=>Promise.reject(t));var id=(t=>(t[t.DRAM=0]="DRAM",t[t.L1=1]="L1",t[t.SYSTEM_MEMORY=2]="SYSTEM_MEMORY",t[t.L1_SMALL=3]="L1_SMALL",t[t.TRACE=4]="TRACE",t))(id||{});const dC={0:"DRAM",1:"L1",2:"System Memory",3:"L1 Small",4:"Trace"};var $6=(t=>(t.INTERLEAVED="TensorMemoryLayout::INTERLEAVED",t.HEIGHT_SHARDED="TensorMemoryLayout::HEIGHT_SHARDED",t.BLOCK_SHARDED="TensorMemoryLayout::BLOCK_SHARDED",t.WIDTH_SHARDED="TensorMemoryLayout::WIDTH_SHARDED",t))($6||{});const kve=/MemoryConfig\((.*)\)$/,vke=/memory_layout=([A-Za-z_:]+)/,gke=/shard_spec=ShardSpec\((?:grid=\{(\[.*?\])\},?)?(?:shape=\{(\d+), (\d+)\},?)?(?:orientation=ShardOrientation::([A-Za-z_]+),?)?(?:halo=(\d+),?)?(?:mode=ShardMode::([A-Z_]+),?)?(?:physical_shard_shape=std::([A-Za-z_]+),?)?/,pke=t=>{const r=t.match(kve);if(r){const e=r[1],n=e.match(vke),a=e.match(gke),l=n?n[1]:"",o=a?{grid:a[1],shape:[parseInt(a[2],10),parseInt(a[3],10)],orientation:a[4],halo:parseInt(a[5],10),mode:a[6],physical_shard_shape:a[7]}:"std::nullopt";return{memory_layout:l,shard_spec:o}}return null},Dve={shard_spec:"ShardSpec",memory_layout:"MemoryLayout",grid:"CoreRangeSet",shape:"Shape",orientation:"ShardOrientation",halo:"Halo",mode:"Mode",physical_shard_shape:"PhysicalShardShape"};function BQ(t){return Dve[t]}const rA=t=>`0x${(t>>>0).toString(16).toUpperCase()}`,zd=(t,r)=>new Intl.NumberFormat("en-US",{maximumFractionDigits:r}).format(t),mke=(t,r=1e3)=>t<r?"":`( ${(t/1e6).toFixed(3)}s )`,$G=(t,r)=>t===null?"NULL":t.toString().padStart(r.toString().length,"0"),e5=(t,r)=>{if(t===r)return!0;if(typeof t!=typeof r||t===null||r===null)return!1;if(typeof t!="object")return Object.is(t,r);if(Array.isArray(t)&&Array.isArray(r))return t.length!==r.length?!1:t.every((o,f)=>e5(o,r[f]));if(Array.isArray(t)||Array.isArray(r))return!1;const e=t,n=r,a=Object.keys(e),l=Object.keys(n);return a.length!==l.length?!1:a.every(o=>o in n?e5(e[o],n[o]):!1)},q0=t=>{const r=t.match(/Shape\((\[.*\])\)/);return r?r[1]:t},ZC=t=>t.replace(/^DataType\./,""),Nve=t=>{const r=/\(x=(\d+),y=(\d+)\)/g,e=[...t.matchAll(r)];if(e.length!==2)return 0;const[n,a]=e[0].slice(1).map(Number),[l,o]=e[1].slice(1).map(Number);return(l-n+1)*(o-a+1)},yke=t=>{const r=t.reduce((a,l)=>{const o=Number(l["DEVICE ID"]);return String(l["OP TYPE"]||"")==="tt_dnn_device"&&(a[o]=a[o]||[],a[o].push(l)),a},{}),e=Object.keys(r).map(Number).sort(),n=r[e[0]].length;return Array.from({length:n},(a,l)=>e.map(f=>r[f][l]).reduce((f,i)=>(i["DEVICE FW DURATION [ns]"]||0)>(f["DEVICE FW DURATION [ns]"]||0)?i:f))},Ake=t=>{const r=new Set;for(const e of t)e["DEVICE ID"]!==void 0&&r.add(Number(e["DEVICE ID"]));return[...r]},Cke=t=>!t.includes("(torch)")&&!t.includes("::")&&!t.includes("ttnn.")&&t!=="",Ike={"SPDX-FileCopyrightText":"© 2025 Tenstorrent AI ULC","SPDX-License-Identifier":"Apache-2.0"},bke={x_size:10,y_size:12},xke=["0-10"],wke=["0-3"],Tke=[["0-0","0-1","0-11"],["0-5","0-6","0-7"],["5-0","5-1","5-11"],["5-2","5-9","5-10"],["5-3","5-4","5-8"],["5-5","5-6","5-7"]],_ke=["9-0","1-0","8-0","2-0","7-0","3-0","6-0","4-0","9-6","1-6","8-6","2-6","7-6","3-6","6-6","4-6"],Ske=["1-1","2-1","3-1","4-1","6-1","7-1","8-1","9-1","1-2","2-2","3-2","4-2","6-2","7-2","8-2","9-2","1-3","2-3","3-3","4-3","6-3","7-3","8-3","9-3","1-4","2-4","3-4","4-4","6-4","7-4","8-4","9-4","1-5","2-5","3-5","4-5","6-5","7-5","8-5","9-5","1-7","2-7","3-7","4-7","6-7","7-7","8-7","9-7","1-8","2-8","3-8","4-8","6-8","7-8","8-8","9-8","1-9","2-9","3-9","4-9","6-9","7-9","8-9","9-9","1-10","2-10","3-10","4-10","6-10","7-10","8-10","9-10","1-11","2-11","3-11","4-11","6-11","7-11","8-11","9-11"],Eke=[],Mke=["0-2","0-4","0-8","0-9"],Rke=1499136,Pke=2147483648,Lke=262144,Oke="WORMHOLE",kke={unpacker:{version:2,inline_srca_trans_without_srca_trans_instr:!0},math:{dst_size_alignment:131072},packer:{version:2},overlay:{version:2}},Dke={license:Ike,grid:bke,arc:xke,pcie:wke,dram:Tke,eth:_ke,functional_workers:Ske,harvested_workers:Eke,router_only:Mke,worker_l1_size:Rke,dram_bank_size:Pke,eth_l1_size:Lke,arch_name:Oke,features:kke},Nke={"SPDX-FileCopyrightText":"© 2025 Tenstorrent AI ULC","SPDX-License-Identifier":"Apache-2.0"},Fke={x_size:16,y_size:12},zke="DRAM banks are NOT grouped by modules",Bke=[["0-0","0-1","0-2","0-3","0-4","0-5","0-6","0-7","0-8","0-9","0-10","0-11","9-0","9-1","9-2","9-3","9-4","9-5","9-6","9-7","9-8","9-9","9-10","9-11"]],$ke=["1-1","2-1","3-1","4-1","5-1","6-1","7-1","9-1","10-1","11-1","12-1","13-1","14-1","15-1"],Uke=["1-2","2-2","3-2","4-2","5-2","6-2","7-2","10-2","11-2","12-2","13-2","14-2","15-2","16-2","1-3","2-3","3-3","4-3","5-3","6-3","7-3","10-3","11-3","12-3","13-3","14-3","15-3","16-3","1-4","2-4","3-4","4-4","5-4","6-4","7-4","10-4","11-4","12-4","13-4","14-4","15-4","16-4","1-5","2-5","3-5","4-5","5-5","6-5","7-5","10-5","11-5","12-5","13-5","14-5","15-5","16-5","1-6","2-6","3-6","4-6","5-6","6-6","7-6","10-6","11-6","12-6","13-6","14-6","15-6","16-6","1-7","2-7","3-7","4-7","5-7","6-7","7-7","10-7","11-7","12-7","13-7","14-7","15-7","16-7","1-8","2-8","3-8","4-8","5-8","6-8","7-8","10-8","11-8","12-8","13-8","14-8","15-8","16-8","1-9","2-9","3-9","4-9","5-9","6-9","7-9","10-9","11-9","12-9","13-9","14-9","15-9","16-9","1-10","2-10","3-10","4-10","5-10","6-10","7-10","10-10","11-10","12-10","13-10","14-10","15-10","16-10","1-11","2-11","3-11","4-11","5-11","6-11","7-11","10-11","11-11","12-11","13-11","14-11","15-11","16-11"],Hke=["8-0"],jke=["2-0","11-0"],Vke=[],Gke=["1-0","2-0","3-0","4-0","5-0","6-0","7-0","10-0","11-0","12-0","13-0","14-0","15-0","16-0"],Wke=1499136,Zke=2147483648,Yke=262144,Xke="BLACKHOLE",Kke={unpacker:{version:2,inline_srca_trans_without_srca_trans_instr:!0},math:{dst_size_alignment:131072},packer:{version:2},overlay:{version:2}},Qke={license:Nke,grid:Fke,_dram_comment:zke,dram:Bke,eth:$ke,functional_workers:Uke,arc:Hke,pcie:jke,harvested_workers:Vke,router_only:Gke,worker_l1_size:Wke,dram_bank_size:Zke,eth_l1_size:Yke,arch_name:Xke,features:Kke};var yO=(t=>(t.GRAYSKULL="grayskull",t.WORMHOLE="wormhole_b0",t.BLACKHOLE="blackhole",t))(yO||{});const xU=t=>{const r=/File\s+"(?:.+\/)?([^/]+)",\s+line\s+(\d+)/,e=t.match(r);return e?`${e[1]}:${e[2]}`:""},Jke=async()=>{const t=await Qf.get("/api/session").catch();return t==null?void 0:t.data},qke=async(t,r,e,n)=>(await Qf.get("/api/buffer-pages",{params:{operation_id:t,address:r,buffer_type:e}})).data,eDe=async t=>{if(t===null)return TQ;try{const{data:r}=await Qf.get(`/api/operations/${t}`,{maxRedirects:1});return{...r,operationFileIdentifier:xU(r.stack_trace)}}catch(r){if(bc.isAxiosError(r)&&(r.response&&r.response.status>=400&&r.response.status<500||r.response&&r.response.status>=500))throw r}return TQ},Fve=async t=>{const r=new Map,{data:e}=await Qf.get("/api/operations",{params:{device_id:t}});return e.map(n=>{n.operationFileIdentifier=xU(n.stack_trace);const a=n.outputs.map(f=>{const i={...f,producerOperation:n,operationIdentifier:`${n.id} ${n.name} ${n.operationFileIdentifier}`};return r.set(f.id,i),{...i,io:"output"}}),l=n.inputs.map(f=>{const i=r.get(f.id);return i?{...i,io:"input"}:{...f,io:"input"}}),o=n.arguments.map(f=>f.name==="memory_config"||kve.test(f.value)?{...f,parsedValue:f.value?pke(f.value):null}:f);return{...n,operationFileIdentifier:xU(n.stack_trace),outputs:a,inputs:l,arguments:o}})},tDe=async t=>{const r={buffer_type:t},{data:e}=await Qf.get("/api/operation-buffers",{params:r});return e},rDe=async()=>{const{data:t}=await Qf.get("/api/devices");return t},nDe=async()=>{const{data:t}=await Qf.get("/api/profiler/perf-results/raw");return new Promise((r,e)=>{Ove.parse(t,{complete:n=>r(n),error:n=>e(n),header:!0})})},iDe=async()=>{const{data:t}=await Qf.get("/api/profiler/perf-results/report");return t},aDe=async()=>{const{data:t}=await Qf.get("/api/profiler/device-log/raw");function r(e){const n=e.match(/ARCH:\s*([\w\d_]+)/),a=e.match(/CHIP_FREQ\[MHz\]:\s*(\d+)/),l=n?n[1]:null,o=a?parseInt(a[1],10):null;return{architecture:l,frequency:o}}return new Promise((e,n)=>{const a=t.split(`
|
101
101
|
`),l=a.slice(1),o=r(a[0]),i=[l.shift().split(/,\s{1,2}/).join(","),...l].join(`
|
102
|
-
`);Ove.parse(i,{header:!0,complete:s=>e({deviceMeta:o,deviceLog:s}),error:s=>n(s)})})},dg=()=>Jy({queryFn:()=>Fve(),queryKey:["get-operations"],retry:!1}),oDe=()=>{const t=dg();return St.useMemo(()=>{var r,e;return t.data?[(r=t.data)==null?void 0:r[0].id,(e=t.data)==null?void 0:e[t.data.length-1].id]:null},[t.isLoading])},rD=t=>{const{data:r}=dg(),e=St.useMemo(()=>(r==null?void 0:r.find(f=>f.id===t))||null,[r,t]),n=null,a=St.useCallback(()=>eDe(t),[t]),l=Jy(["get-operation-detail",t,n],a,{retry:2,retryDelay:f=>Math.min(f*100,500)}),o=St.useMemo(()=>{if(!l.data)return[];const f=new Map;return l.data.buffers.forEach(i=>{const{address:s,max_size_per_bank:d}=i;if(s){const u=f.get(s);(!u||d>u.max_size_per_bank)&&f.set(s,i)}}),Array.from(f.values())},[l.data]);return l.data&&(l.data.buffersSummary=o),{operation:e,operationDetails:l}},sDe=t=>{const{data:r}=dg(),e=r==null?void 0:r.find((n,a,l)=>{var o;return((o=l[a+1])==null?void 0:o.id)===t});return rD(e?e.id:null)},lDe=t=>{const{data:r}=dg(),e=r==null?void 0:r.find((n,a,l)=>{var o;return((o=l[a+1])==null?void 0:o.id)===t});return e?{id:e.id,name:e.name}:void 0},uDe=t=>{const{data:r}=dg(),e=r==null?void 0:r.find((n,a,l)=>{var o;return((o=l[a-1])==null?void 0:o.id)===t});return e?{id:e.id,name:e.name}:void 0},cDe=()=>{const{data:t}=dg(),{data:r}=UG(),e=(n,a)=>{if(a===1)return n;const l=[],o=new Map;for(const{name:i,id:s}of n){const d=`${i}-${s}`;o.set(d,(o.get(d)||0)+1)}const f=new Set;for(const i of n){const s=`${i.name}-${i.id}`;!f.has(s)&&o.get(s)===a&&(l.push(i),f.add(s))}return l};return St.useMemo(()=>{if(!t||!r)return[];const n=t.flatMap(a=>a.device_operations.filter(l=>l.node_type===is.function_start&&l.params.name&&Cke(l.params.name)).map(l=>({name:l.params.name,id:a.id,operationName:a.name})));return e(n,r.length)},[t,r])},fDe=()=>{const t=$ve();return St.useMemo(()=>{var n;if(!((n=t==null?void 0:t.data)!=null&&n.data)||(t==null?void 0:t.data.data.length)===0)return[];let r=t.data.data.slice().filter(a=>{var l;return!((l=a["OP CODE"])!=null&&l.includes("(torch)"))&&a["OP CODE"]!==""});return r.forEach((a,l)=>{a.ORIGINAL_ID=l+2}),r.length>0&&"HOST START TS"in r[0]&&(r=r.sort((a,l)=>Number(a["HOST START TS"]||0)-Number(l["HOST START TS"]||0))),Ake(r).length>1&&(r=yke(r)),r},[t.isLoading])},hDe=()=>{const t=HG();return St.useMemo(()=>t.data?t.data:[],[t.isLoading])},nD=()=>{const t=cDe(),r=hDe();return St.useMemo(()=>t.every((n,a)=>{const l=r[a];return l&&l.raw_op_code===n.name?(n.perfData=l,!0):!1})?t:[],[r,t])},zve=()=>{const t=nD();return St.useMemo(()=>t.map(({id:r,perfData:e})=>({opId:r,perfId:e==null?void 0:e.id})),[t])},dDe=()=>{const{data:t}=HG();return St.useMemo(()=>t!=null&&t.length?[parseInt(t[0].id,10),parseInt(t[t.length-1].id,10)]:null,[t])},vDe=(t,r,e,n)=>Jy(["get-buffer-pages",t,r,e,n],()=>qke(t,r,e)),gDe=async t=>{try{const{data:r}=await Qf.get("/api/tensors",{maxRedirects:1,params:{}}),e=await Fve();for(const n of r)if(n.producers.length>0){const a=n.producers[0],l=e.find(f=>f.id===a),o=l==null?void 0:l.outputs.find(f=>f.id===n.id);o&&(n.operationIdentifier=o.operationIdentifier)}return r}catch(r){if(bc.isAxiosError(r)&&(r.response&&r.response.status>=400&&r.response.status<500||r.response&&r.response.status>=500))throw r}return[RLe]},Bve=t=>Jy({queryFn:()=>gDe(),queryKey:["get-tensors",t],retry:!1}),UG=()=>Jy("get-devices",rDe),wU=(t,r)=>{const e=tf(x3),n=Jy({queryFn:()=>tDe(t),queryKey:["fetch-all-buffers",t]});return St.useMemo(()=>(n.data&&e&&r&&(n.data=n.data.filter(a=>a.id>=e[0]&&a.id<=e[1])),n),[e,n.isLoading,r])},pDe=()=>Jy({queryFn:()=>aDe(),queryKey:"get-device-log-raw"}),$ve=()=>Jy({queryFn:()=>nDe(),queryKey:"get-performance-data-raw"}),HG=()=>{const t=Jy({queryFn:()=>iDe(),queryKey:"get-performance-data-report"});return St.useMemo(()=>{if(t.data){const r=t.data.slice().filter(e=>{var n;return!((n=e.op_code)!=null&&n.includes("(torch)"))&&e.op_code!==""});t.data=r}return t},[t.isLoading])},mDe=(t,r)=>Jy({queryFn:()=>Jke(),queryKey:["get-session",t,r],initialData:null}),yDe=t=>{switch(t){case yO.WORMHOLE:return Dke;case yO.BLACKHOLE:return Qke;default:throw new Error(`Unknown architecture: ${t}`)}},ADe=t=>{const{data:r}=Bve(),e=wU(id.L1,!1);return t.map(n=>{var l;const a=r==null?void 0:r.find(o=>o.id===n);if(a){const o=a==null?void 0:a.producers[0],f=(l=e.data)==null?void 0:l.find(s=>s.id===o),i=f==null?void 0:f.buffers.find(s=>s.address===a.address);return{id:a.id,size:(i==null?void 0:i.size)||null}}return null}).filter(n=>n!==null)},CDe=t=>{const r=yDe(t),e=St.useMemo(()=>r.functional_workers.map(o=>o.split("-").reverse().map(f=>parseInt(f,10))),[r]),n=St.useMemo(()=>r.dram.flat().map(o=>o.split("-").reverse().map(f=>parseInt(f,10))),[r]),a=St.useMemo(()=>r.eth.flat().map(o=>o.split("-").reverse().map(f=>parseInt(f,10))),[r]),l=St.useMemo(()=>r.pcie.map(o=>o.split("-").reverse().map(f=>parseInt(f,10))),[r]);return{cores:e,dram:n,eth:a,pcie:l}};var jG=(t=>(t.SMALL="small",t))(jG||{});function np({size:t}){return tt.jsxs("div",{className:Di("loading-spinner",{small:t===jG.SMALL}),children:[tt.jsx("div",{}),tt.jsx("div",{}),tt.jsx("div",{}),tt.jsx("div",{})]})}const $Q=25;function IDe(){const{data:t}=dg(),r=fDe(),e=aI(),n=nD(),a=(n==null?void 0:n.length)>0,l=zve(),o=oDe(),f=dDe(),i=U0(ave),[s,d]=Yu(x3),u=U0(ove),[h,y]=Yu(sve),[b,C]=St.useState(!1),[m,c]=St.useState(!1),v=o==null?void 0:o[0],g=o==null?void 0:o[1],p=f==null?void 0:f[0],I=f==null?void 0:f[1],A=e.pathname.includes(`${Ss.OPERATIONS}/`),_=e.pathname===Ss.PERFORMANCE,w=A||_,E=()=>{d(o),y(f)};return St.useEffect(()=>{o&&(i(o),d(o))},[o,i,d]),St.useEffect(()=>{f&&(u(f),y(f))},[f,u,y]),St.useEffect(()=>{var x,S;if(a&&s&&f&&h&&b){const T=((x=l.find(D=>s[0]===D.opId))==null?void 0:x.perfId)??l.reduce((D,P)=>Math.abs((P.opId??0)-s[0])<Math.abs((D.opId??0)-s[0])?P:D).perfId,L=((S=l.find(D=>s[1]===D.opId))==null?void 0:S.perfId)??l.reduce((D,P)=>Math.abs((P.opId??0)-s[1])<Math.abs((D.opId??0)-s[1])?P:D).perfId,k=Number(T)||(s[0]<l[0].opId?p:h[0]),F=Number(L)||(s[1]>l[l.length-1].opId?I:h[1]);y([k,F]),C(!1)}},[a,s]),St.useEffect(()=>{var x,S,T,L;if(a&&s&&f&&h&&m){const k=((x=l.find(z=>h[0]===Number(z.perfId)))==null?void 0:x.opId)??l.reduce((z,M)=>Math.abs((Number(M.perfId)??0)-h[0])<Math.abs((Number(z.perfId)??0)-h[0])?M:z).opId,F=((S=l.find(z=>h[1]===Number(z.perfId)))==null?void 0:S.opId)??l.reduce((z,M)=>Math.abs((Number(M.perfId)??0)-h[1])<Math.abs((Number(z.perfId)??0)-h[1])?M:z).opId,D=k||(h[0]<Number(((T=l==null?void 0:l[0])==null?void 0:T.perfId)??0)?v:s[0]),P=F||(h[1]>Number(((L=l==null?void 0:l[l.length-1])==null?void 0:L.perfId)??0)?g:s[1]);d([D,P]),c(!1)}},[a,h]),s||h?tt.jsxs("div",{className:"range-slider",children:[h&&tt.jsxs("div",{className:"slider",children:[tt.jsx("div",{className:"inputs",children:tt.jsxs("div",{className:"group",children:[tt.jsx(xh,{value:h[0].toString(),onValueChange:x=>{y([parseInt(x,10)||p,h[1]]),c(!0)},fill:!1,disabled:!_,size:"small"}),tt.jsx(xh,{value:h[1].toString(),onValueChange:x=>{y([h[0],parseInt(x,10)||I]),c(!0)},fill:!1,disabled:!_,size:"small"})]})}),p&&I&&h&&tt.jsxs("div",{className:"slider-container",children:[tt.jsx(hQ,{value:h,onChange:x=>{y(x),c(!0)},min:p,max:I,labelStepSize:UQ(I),disabled:!_,labelRenderer:(x,S)=>xDe(x,r,S==null?void 0:S.isHandleTooltip)}),tt.jsx("p",{children:"Performance"})]}),tt.jsx("div",{className:"inputs",children:f&&tt.jsx(Es,{content:"Reset range",children:tt.jsx(qa,{icon:Ui.RESET,onClick:()=>a?E():y(f),disabled:!_,size:"small"})})})]}),tt.jsxs("div",{className:"slider",children:[s&&tt.jsx("div",{className:"inputs",children:tt.jsxs("div",{className:"group",children:[tt.jsx(xh,{value:s[0].toString(),onValueChange:x=>{d([parseInt(x,10)||v,s[1]]),C(!0)},fill:!1,disabled:w,size:"small"}),tt.jsx(xh,{value:s[1].toString(),onValueChange:x=>{d([s[0],parseInt(x,10)||g]),C(!0)},fill:!1,disabled:w,size:"small"})]})}),v&&g&&s&&tt.jsxs("div",{className:"slider-container",children:[tt.jsx(hQ,{value:s,onChange:x=>{d(x),C(!0)},min:v,max:g,labelStepSize:UQ(g),disabled:w,labelRenderer:(x,S)=>bDe(x,t,S==null?void 0:S.isHandleTooltip)}),tt.jsx("p",{children:"Operations"})]}),o&&tt.jsx(Es,{content:"Reset range",children:tt.jsx(qa,{icon:Ui.RESET,onClick:()=>a?E():d(o),disabled:w,size:"small"})})]})]}):tt.jsx(np,{})}const UQ=t=>$Q>t?1:Math.ceil(t/$Q),bDe=(t,r,e)=>{const n=r==null?void 0:r.find(a=>a.id===t);return n&&e?`${n.id} ${n.name}`:t.toString()},xDe=(t,r,e)=>{const n=r==null?void 0:r.find(a=>a.ORIGINAL_ID===t);return n&&e?`${n.ORIGINAL_ID} ${n["OP CODE"]}`:t.toString()},WR=20;function wDe(){const[t,r]=St.useState(!1),e=tf(x3),n=tf(ave),a=tf(ove),l=tf(W5),o=tf(Z5),f=aI(),s=nD().length>0,d=f.pathname.includes(`${Ss.OPERATIONS}/`),u=f.pathname===Ss.PERFORMANCE,h=f.pathname.includes(`${Ss.NPE}`);St.useEffect(()=>{(d||h)&&r(!1)},[h,d]);const y=()=>u?a&&`Selected Performance: ${a[0]} - ${a[1]}`:e&&`Selected: ${e[0]} - ${e[1]}`;return tt.jsxs("footer",{className:Di("app-footer",{"is-open":t}),children:[tt.jsxs("div",{className:"current-data",children:[tt.jsxs("div",{className:"active-reports",children:[l&&(l.length>WR?tt.jsx(Es,{content:l,className:Di("title",{"is-lengthy":l.length>WR}),children:tt.jsxs("span",{children:[tt.jsx("strong",{children:"Report:"})," ",l]})}):tt.jsxs("span",{children:[tt.jsx("strong",{children:"Report:"})," ",l]})),o&&(o.length>WR?tt.jsx(Es,{content:o,className:Di("title",{"is-lengthy":o.length>WR}),children:tt.jsxs("span",{children:[tt.jsx("strong",{children:"Performance:"})," ",o]})}):tt.jsxs("span",{children:[tt.jsx("strong",{children:"Performance:"})," ",o]})),l&&o&&tt.jsx("span",{children:s?tt.jsxs("strong",{children:[tt.jsx(fl,{icon:Ui.TickCircle,className:"intent-ok"})," ","Profiler and perf reports synchronised"]}):tt.jsxs("strong",{children:[tt.jsx(fl,{icon:Ui.ISSUE,className:"intent-not-ok"})," ","Profiler and perf reports can't be synchronized"]})})]}),(n||a)&&tt.jsxs("div",{className:"slider-controls",children:[!t&&!TDe(e,n)&&tt.jsx("span",{className:"current-range",children:y()}),tt.jsx(qa,{icon:t?Ui.CARET_DOWN:Ui.CARET_UP,onClick:()=>r(!t),disabled:d,size:"small",children:"Range"})]})]}),tt.jsx(xG,{className:"slider-container",isOpen:t,keepChildrenMounted:!0,children:tt.jsx(IDe,{})})]})}const TDe=(t,r)=>!!(t&&r&&t[0]===r[0]&&t[1]===r[1]),_De=G5({enter:"Toastify--animate Toastify__bounce-enter",exit:" no-toast-animation Toastify__bounce-exit",appendPosition:!0,collapseDuration:0,collapse:!0});function SDe(){const t="0.25.0",[r,e]=Yu(W5),[n,a]=Yu(Z5),{data:l}=mDe(r,n);return St.useEffect(()=>{var o,f;l!=null&&l.active_report&&(e(((o=l.active_report)==null?void 0:o.report_name)??null),a(((f=l.active_report)==null?void 0:f.profile_name)??null))},[l,e,a]),tt.jsxs("div",{className:MT,children:[tt.jsx(vA,{defaultTitle:"TT-NN Visualizer",titleTemplate:"%s | TT-NN Visualizer",children:tt.jsx("meta",{charSet:"utf-8"})}),tt.jsx("header",{className:"app-header",children:tt.jsxs("nav",{className:"nav-container",children:[tt.jsxs("a",{href:Ss.HOME,className:"title",children:[tt.jsx("h1",{children:"TT-NN Visualizer"}),tt.jsxs("sup",{className:"version",children:["v",t]})]}),tt.jsx(FLe,{})]})}),tt.jsxs("main",{children:[tt.jsx(_Se,{}),tt.jsx(TLe,{position:"top-right",autoClose:!1,newestOnTop:!1,closeOnClick:!0,closeButton:!1,theme:"light",transition:_De})]}),tt.jsx(wDe,{})]})}const EDe=()=>{function t(o){const i=Array.from(o).map(u=>u.webkitRelativePath);if(i.length===0)return null;const d=i.reduce((u,h)=>u.split("/").filter((b,C)=>b===h.split("/")[C]).join("/")).split("/");return d.length>=1?d[d.length-1]:null}function r(o,f=["tensors"]){const s=Array.from(o).filter(u=>!f.some(h=>{var y;return(y=u.webkitRelativePath)==null?void 0:y.includes(`/${h}/`)})),d=new DataTransfer;return s.forEach(u=>d.items.add(u)),d.files}return{getUploadedFolderName:t,checkRequiredReportFiles:o=>{const f=["db.sqlite","config.json"],i=new Set;return Array.from(o).forEach(s=>{const d=s.webkitRelativePath.split("/");d.length===2&&i.add(d[1])}),f.every(s=>i.has(s))},checkRequiredProfilerFiles:o=>{const f=["profile_log_device.csv","tracy_profile_log_host.tracy"],i="ops_perf_results",s=new Set;Array.from(o).forEach(h=>{const y=h.webkitRelativePath.split("/");y.length===2&&s.add(y[1])});const d=f.every(h=>s.has(h)),u=Array.from(s).some(h=>h.startsWith(i));return d&&u},uploadLocalFolder:async o=>{const f=vU(),i=new FormData;return Array.from(o).forEach(s=>{i.append("files",s)}),Qf.post("api/local/upload/report",i,{headers:{"Content-Type":"multipart/form-data"},onUploadProgress:s=>{if(s&&s.total!==null&&s.total!==void 0){const d=Math.round(s.loaded*100/s.total);f.set(N2,{percentOfCurrent:d,currentFileName:"",finishedFiles:0,numberOfFiles:o.length,status:H0.UPLOADING})}}}).catch(s=>s).finally(()=>{f.set(N2,{percentOfCurrent:0,currentFileName:"",finishedFiles:0,numberOfFiles:o.length,status:H0.INACTIVE})})},uploadLocalPerformanceFolder:async o=>{const f=new FormData,i=vU();return Array.from(o).forEach(s=>{f.append("files",s)}),Qf.post("api/local/upload/profile",f,{headers:{"Content-Type":"multipart/form-data"},onUploadProgress:s=>{if(s&&s.total!==null&&s.total!==void 0){const d=Math.round(s.loaded*100/s.total);i.set(N2,{percentOfCurrent:d,currentFileName:"",finishedFiles:0,numberOfFiles:o.length,status:H0.UPLOADING})}}}).catch(s=>s).finally(()=>{i.set(N2,{percentOfCurrent:0,currentFileName:"",finishedFiles:0,numberOfFiles:o.length,status:H0.INACTIVE})})},filterReportFiles:r}};var Rs=(t=>(t[t.IDLE=0]="IDLE",t[t.PROGRESS=1]="PROGRESS",t[t.FAILED=2]="FAILED",t[t.OK=3]="OK",t))(Rs||{});function Uve({isOpen:t,onClose:r,children:e,hideCloseButton:n=!1,canEscapeKeyClose:a=!0,canOutsideClickClose:l=!0}){return tt.jsx(eA,{isOpen:t,onClose:r,className:She,canEscapeKeyClose:a,canOutsideClickClose:l,children:tt.jsxs("div",{className:Di("overlay-contents",MT,yhe,EEe),children:[e,!n&&tt.jsx("div",{className:Che,children:tt.jsx(qa,{intent:Po.DANGER,onClick:r,children:"Close"})})]})})}function U6({progress:t,estimated:r}){return tt.jsxs("div",{className:"progress-bar",children:[tt.jsx(Rde,{value:t}),t&&r?tt.jsxs("span",{className:"status",children:[t>0?`${Math.round(t*100)}%`:"100%"," - ",r>0?`${Math.round(r)}s left`:"0s left"]}):null]})}const MDe=()=>{const t=f=>f.toFixed(2).padStart(5,"0"),[r]=Yu(N2),{currentFileName:e,finishedFiles:n,numberOfFiles:a,percentOfCurrent:l,status:o}=r;return tt.jsxs(Uve,{isOpen:[H0.STARTED,H0.COMPRESSING,H0.DOWNLOADING,H0.UPLOADING].includes(o),hideCloseButton:!0,canEscapeKeyClose:!1,canOutsideClickClose:!1,children:[tt.jsxs("div",{className:"overlay",children:[tt.jsx("h2",{children:"File Transfer Progress"}),e&&tt.jsxs("p",{children:["Current File: ",e]}),a&&tt.jsxs("p",{children:["Files Transferred: ",n,"/",a]}),tt.jsxs("p",{children:["Current File Progress: ",t(l),"%"]}),o&&tt.jsxs("p",{children:["Status: ",o.valueOf()]})]}),tt.jsx(U6,{progress:l/100})]})},RDe=({message:t,fileName:r})=>tt.jsxs("div",{children:[t,tt.jsx("br",{}),tt.jsx("strong",{children:r})]});function AO(t,r){du(tt.jsx(RDe,{message:t,fileName:r}),{position:"bottom-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"light"})}const HQ={[Rs.IDLE]:Ui.DOT,[Rs.PROGRESS]:Ui.DOT,[Rs.FAILED]:Ui.CROSS,[Rs.OK]:Ui.TICK},jQ={[Rs.IDLE]:Po.NONE,[Rs.PROGRESS]:Po.WARNING,[Rs.FAILED]:Po.DANGER,[Rs.OK]:Po.SUCCESS},VQ={status:Rs.OK,message:"Files uploaded successfully"},PDe={status:Rs.FAILED,message:"Selected directory does not contain a valid report"},LDe={status:Rs.FAILED,message:"Selected directory is not a valid profiler run"},GQ={status:Rs.FAILED,message:"Selected directory does not contain a valid report."},WQ={status:Rs.FAILED,message:"Unable to upload selected directory."},ODe=()=>{const t=jV(),r=U0(OG),e=U0(kG),n=U0(W5),a=U0(Z5),{uploadLocalFolder:l,uploadLocalPerformanceFolder:o,checkRequiredReportFiles:f,checkRequiredProfilerFiles:i,filterReportFiles:s}=EDe(),[d,u]=St.useState(),[h,y]=St.useState(!1),[b,C]=St.useState(!1),[m,c]=St.useState("Choose directory..."),[v,g]=St.useState(),[p,I]=St.useState("Choose directory..."),A=navigator.userAgent.toLowerCase(),_=A.includes("safari")&&!A.includes("chrome")&&!A.includes("android"),w=async x=>{var F;if(!x.target.files)return;const{files:S}=x.target,T=s(S);if(!f(T)){u(PDe);return}let L=VQ;y(!0),c(`${T.length} files selected.`);const k=await l(T);if(k.status!==200)L=WQ;else if(((F=k==null?void 0:k.data)==null?void 0:F.status)!==Rs.OK)L=GQ;else{const D=ZQ(T);c(`${T.length} files uploaded`),r("local"),e(gO),n(D),AO("Active report",D)}t.clear(),y(!1),u(L)},E=async x=>{var F;if(!x.target.files)return;const{files:S}=x.target,T=s(S);if(!i(T)){g(LDe);return}let L=VQ;C(!0),I(`${T.length} files selected`);const k=await o(T);if(k.status!==200)L=WQ;else if(((F=k==null?void 0:k.data)==null?void 0:F.status)!==Rs.OK)L=GQ;else{const D=ZQ(T);I(`${T.length} files uploaded`),r("local"),a(D),AO("Active performance trace",D)}t.clear(),C(!1),g(L)};return St.useEffect(()=>{h&&u({status:Rs.PROGRESS,message:"Files uploading..."}),b&&g({status:Rs.PROGRESS,message:"Files uploading..."})},[h,b]),tt.jsxs(tt.Fragment,{children:[_&&tt.jsxs(tt.Fragment,{children:[tt.jsxs("h3",{children:[tt.jsx(fl,{icon:Ui.WARNING_SIGN,size:20,intent:Po.WARNING})," ","This functionality is not supported in safari browser"]}),tt.jsx("p",{children:"Please use Chrome or Firefox to upload a local report "})]}),tt.jsxs("div",{children:[tt.jsx(qh,{label:tt.jsx("h3",{children:"Report folder"}),subLabel:"Select a local directory containing a report",children:tt.jsxs("div",{className:"buttons-container",children:[tt.jsxs("label",{className:"bp5-file-input",htmlFor:"local-upload",children:[tt.jsx("input",{id:"local-upload",type:"file",multiple:!0,directory:"",webkitdirectory:"",disabled:_,onChange:w}),tt.jsx("span",{className:"bp5-file-upload-input",children:m})]}),tt.jsx(MDe,{}),d&&!h&&tt.jsxs("div",{className:`verify-connection-item status-${Rs[d.status]}`,children:[tt.jsx(fl,{className:"connection-status-icon",icon:HQ[d.status],size:20,intent:jQ[d.status]}),tt.jsx("span",{className:"connection-status-text",children:d.message})]})]})}),tt.jsx(qh,{label:tt.jsx("h3",{children:"Performance data folder"}),subLabel:"Select a local directory containing performance data (optional)",children:tt.jsxs("div",{className:"buttons-container",children:[tt.jsxs("label",{className:"bp5-file-input",htmlFor:"local-performance-upload",children:[tt.jsx("input",{id:"local-performance-upload",type:"file",multiple:!0,directory:"",webkitdirectory:"",disabled:_,onChange:E}),tt.jsx("span",{className:"bp5-file-upload-input",children:p})]}),v&&!b&&tt.jsxs("div",{className:`verify-connection-item status-${Rs[v.status]}`,children:[tt.jsx(fl,{className:"connection-status-icon",icon:HQ[v.status],size:20,intent:jQ[v.status]}),tt.jsx("span",{className:"connection-status-text",children:v.message})]})]})})]})]})},ZQ=t=>t[0].webkitRelativePath.split("/")[0],LS=t=>{const{lastSynced:r,lastModified:e}=t;return r?e>r:!0},kDe=()=>({getAppConfig:t=>localStorage.getItem(t),setAppConfig:(t,r)=>{localStorage.setItem(t,r)},deleteAppConfig:t=>{localStorage.removeItem(t)}}),Q5=()=>{const{getAppConfig:t,setAppConfig:r,deleteAppConfig:e}=kDe();return{testConnection:async u=>{if(!u.host||!u.port)return[{status:Rs.FAILED,message:"No connection provided"}];const{data:h}=await Qf.post("api/remote/test",u);return h},syncRemoteFolder:async(u,h,y)=>{if(!u||!u.host||!u.port||!u.reportPath)throw new Error("No connection provided");if(!h&&!y)throw new Error("No remote folder provided");return Qf.post("api/remote/sync",{connection:u,folder:h,profile:y})},listReportFolders:async u=>{if(!u||!u.host||!u.port)throw new Error("No connection provided");return(await Qf.post("api/remote/folder",u)).data},listPerformanceFolders:async u=>{if(!u||!u.host||!u.port)throw new Error("No connection provided");return(await Qf.post("api/remote/profiles",{connection:u})).data},mountRemoteFolder:async(u,h,y)=>Qf.post("api/remote/use",{connection:u,folder:h,profile:y}),fetchSqlitePath:async u=>{const{data:h}=await Qf.post("api/remote/sqlite/detect-path",u);return h},persistentState:{get savedConnectionList(){return JSON.parse(t("remoteConnections")??"[]")},set savedConnectionList(u){r("remoteConnections",JSON.stringify(u))},get selectedConnection(){return JSON.parse(t("selectedConnection")??"null")??this.savedConnectionList[0]},set selectedConnection(u){r("selectedConnection",JSON.stringify(u??null))},getSavedReportFolders:u=>JSON.parse(t(`${u==null?void 0:u.name} - reportFolders`)??"[]"),setSavedReportFolders:(u,h)=>{r(`${u==null?void 0:u.name} - reportFolders`,JSON.stringify(h))},deleteSavedReportFolders:u=>{e(`${u==null?void 0:u.name} - reportFolders`)},getSavedPerformanceFolders:u=>JSON.parse(t(`${u==null?void 0:u.name} - performanceFolders`)??"[]"),setSavedPerformanceFolders:(u,h)=>{r(`${u==null?void 0:u.name} - performanceFolders`,JSON.stringify(h))},deleteSavedPerformanceFolders:u=>{e(`${u==null?void 0:u.name} - performanceFolders`)},updateSavedRemoteFoldersConnection(u,h){const y=this.getSavedReportFolders(u),b=this.getSavedPerformanceFolders(u);this.deleteSavedReportFolders(u),this.deleteSavedPerformanceFolders(u),this.setSavedReportFolders(h,y),this.setSavedPerformanceFolders(h,b)}},readRemoteFile:async u=>{try{return(await Qf.post("api/remote/read",u)).data}catch(h){return bc.isAxiosError(h)?h.message:h}}}},DDe={[Rs.IDLE]:Ui.DOT,[Rs.PROGRESS]:Ui.DOT,[Rs.FAILED]:Ui.CROSS,[Rs.OK]:Ui.TICK},NDe={[Rs.IDLE]:Po.NONE,[Rs.PROGRESS]:Po.WARNING,[Rs.FAILED]:Po.DANGER,[Rs.OK]:Po.SUCCESS};function OS({status:t,message:r}){return tt.jsxs("div",{className:`verify-connection-item status-${Rs[t].toLowerCase()}`,children:[tt.jsx(fl,{className:"connection-status-icon",icon:DDe[t],size:20,intent:NDe[t]}),tt.jsx("span",{className:"connection-status-text",children:r})]})}const Hve=({open:t,onClose:r,onAddConnection:e,title:n="Add new remote connection",buttonLabel:a="Add connection",remoteConnection:l})=>{var A;const o=l??{name:"",host:"",port:22,reportPath:"",username:""},f=[{status:Rs.IDLE,message:"Test connection"},{status:Rs.IDLE,message:"Test report folder path"}],[i,s]=St.useState(o),[d,u]=St.useState(f),{testConnection:h,fetchSqlitePath:y}=Q5(),[b,C]=St.useState(!1),[m,c]=St.useState(!1),v=d.every(_=>_.status===Rs.OK),g=async()=>{c(!0);const _=await y(i);_.status===Rs.OK&&s({...i,sqliteBinaryPath:_.message}),_.status===Rs.FAILED&&s({...i,sqliteBinaryPath:"Path Not Found"}),c(!1)},p=async()=>{C(!0);const _={status:Rs.PROGRESS,message:"Testing connection"},w={status:Rs.PROGRESS,message:"Testing report folder path"},E={status:Rs.PROGRESS,message:"Testing performance folder path"};u([_,w,E]);try{const x=await h(i);u(x)}catch{u([{status:Rs.FAILED,message:"Connection failed"},{status:Rs.FAILED,message:"Report folder path failed"}])}finally{C(!1)}},I=()=>{s(o),u(f),r()};return tt.jsxs(ode,{className:"remote-connection-dialog",title:n,icon:"info-sign",canOutsideClickClose:!1,isOpen:t,onClose:I,children:[tt.jsxs(TG,{children:[tt.jsx(qh,{label:"Name",subLabel:"Connection name",children:tt.jsx(xh,{className:"bp5-light",value:i.name,onChange:_=>s({...i,name:_.target.value})},"name")}),tt.jsx(qh,{label:"SSH Host",subLabel:"SSH host name. E.g.: localhost",children:tt.jsx(xh,{value:i.host,onChange:_=>s({...i,host:_.target.value})},"host")}),tt.jsx(qh,{label:"Username",subLabel:"Username to connect with",children:tt.jsx(xh,{value:i.username??"",onChange:_=>{s({...i,username:_.target.value})}},"username")}),tt.jsx(qh,{label:"SSH Port",subLabel:"Port to use for the SSH connection. E.g.: port 22",children:tt.jsx(xh,{value:((A=i.port)==null?void 0:A.toString())??"",onChange:_=>{const w=Number.parseInt(_.target.value,10);_.target.value===""?s({...i,port:void 0}):w>0&&w<99999&&s({...i,port:w})}},"port")}),tt.jsx(qh,{label:"Report folder path",subLabel:'Path to the remote folder with the report e.g. "$HOME/work/ll-sw"',children:tt.jsx(xh,{value:i.reportPath,onChange:_=>s({...i,reportPath:_.target.value})},"path")}),tt.jsx(qh,{label:"Performance folder path (optional)",subLabel:'Path to the remote folder with the performance data e.g. "$HOME/perf/env-123"',children:tt.jsx(xh,{value:i.performancePath,onChange:_=>s({...i,performancePath:_.target.value})},"path")}),i.useRemoteQuerying&&tt.jsxs("fieldset",{className:"remote-querying-fieldset",children:[tt.jsx("legend",{children:"Remote Querying Configuration"}),tt.jsx(qh,{label:"Remote SQLite Binary Location",subLabel:"SQLite Binary Location",children:tt.jsx(xh,{value:i.sqliteBinaryPath,onChange:_=>s({...i,sqliteBinaryPath:_.target.value})},"sqliteBinaryPath")}),tt.jsx(J0,{className:"remote-sql-test-buttons",children:tt.jsx(qa,{text:"Detect Path",disabled:m,loading:m,onClick:g})})]}),tt.jsxs("fieldset",{children:[tt.jsx("legend",{children:"Test Connection"}),d.map((_,w)=>tt.jsx(OS,{status:_.status,message:_.message},`${_.message}-${w}`)),tt.jsx("br",{}),tt.jsx(qa,{text:"Test Connection",disabled:b||m,loading:b,onClick:p})]})]}),tt.jsx(wde,{minimal:!0,actions:tt.jsx(qa,{text:a,disabled:!v,onClick:()=>{v&&(e(i),I())}})})]})},FDe=({disabled:t,onAddConnection:r})=>{const[e,n]=St.useState(!1);return tt.jsxs("div",{className:"buttons-container",children:[tt.jsx(qa,{icon:Ui.PLUS,text:"Add new connection",disabled:t,onClick:()=>n(!0)}),tt.jsx(Hve,{open:e,onAddConnection:a=>{r(a),n(!1)},onClose:()=>n(!1)})]})};var jve=Dhe(),J5="".concat(jve,"-multi-select"),zDe="".concat(J5,"-popover"),BDe="".concat(J5,"-popover-default-width"),$De="".concat(J5,"-popover-tag-input-margin"),YQ="".concat(J5,"-tag-input-input"),UDe="".concat(jve,"-select-popover");function HDe(t,r,e){if(t.query.length===0&&e!==void 0)return e;var n=t.filteredItems.map(t.renderItem).filter(function(a){return a!=null});return n.length>0?n:r}function ZR(t,r,e){return t===void 0||r==null||e==null?r===e:nd(t)?t(r,e):r[t]===e[t]}function XQ(){return{__blueprintCreateNewItemBrand:"blueprint-create-new-item"}}function g2(t){if(t==null)return!1;var r=Object.keys(t);return r.length!==1||r[0]!=="__blueprintCreateNewItemBrand"?!1:t.__blueprintCreateNewItemBrand==="blueprint-create-new-item"}function YR(t){return t==null||g2(t)?null:t}var Vve=function(t){xs(r,t);function r(e){var n,a,l=t.call(this,e)||this;l.itemRefs=new Map,l.refHandlers={itemsParent:function(d){return l.itemsParentRef=d}},l.shouldCheckActiveItemInViewport=!1,l.expectedNextActiveItem=null,l.isEnterKeyPressed=!1,l.renderItemList=function(d){var u=l.props,h=u.initialContent,y=u.noResults,b=d.renderCreateItem(),C=b!=null?null:y,m=HDe(d,C,h);if(m==null&&b==null)return null;var c=l.isCreateItemFirst();return St.createElement(vG,qn({role:"listbox"},d.menuProps,{ulRef:d.itemsParentRef}),c&&b,m,!c&&b)},l.renderItem=function(d,u){if(l.props.disabled!==!0){var h=l.state,y=h.activeItem,b=h.query,C=h.filteredItems,m={active:ZR(l.props.itemsEqual,YR(y),d),disabled:TU(d,u,l.props.itemDisabled),matchesPredicate:C.indexOf(d)>=0};return l.props.itemRenderer(d,{handleClick:function(c){return l.handleItemSelect(d,c)},handleFocus:function(){return l.setActiveItem(d)},index:u,modifiers:m,query:b,ref:function(c){c?l.itemRefs.set(u,c):l.itemRefs.delete(u)}})}return null},l.renderCreateItemMenuItem=function(){if(l.isCreateItemRendered(l.state.createNewItem)){var d=l.state,u=d.activeItem,h=d.query,y=h.trim(),b=function(m){l.handleItemCreate(y,m)},C=g2(u);return l.props.createNewItemRenderer(y,C,b)}return null},l.handleItemCreate=function(d,u){var h,y,b,C,m=(y=(h=l.props).createNewItemFromQuery)===null||y===void 0?void 0:y.call(h,d);if(m!=null){for(var c=Array.isArray(m)?m:[m],v=0,g=c;v<g.length;v++){var p=g[v];(C=(b=l.props).onItemSelect)===null||C===void 0||C.call(b,p,u)}l.maybeResetQuery()}},l.handleItemSelect=function(d,u){var h,y;l.setActiveItem(d),(y=(h=l.props).onItemSelect)===null||y===void 0||y.call(h,d,u),l.maybeResetQuery()},l.handlePaste=function(d){for(var u=l.props,h=u.createNewItemFromQuery,y=u.onItemsPaste,b,C=[],m=[],c=0,v=d;c<v.length;c++){var g=v[c],p=jDe(g,l.props);if(p!==void 0)b=p,m.push(p);else if(l.canCreateItems()){var I=h==null?void 0:h(g);if(I!==void 0){var A=Array.isArray(I)?I:[I];m.push.apply(m,A)}}else C.push(g)}l.setQuery(C.join(", "),!1),b!==void 0&&l.setActiveItem(b),y==null||y(m)},l.handleKeyDown=function(d){var u,h;if(!d.nativeEvent.isComposing){var y=d.key,b=$k(d,["ArrowUp"],["ArrowDown"]);if(b!==void 0){d.preventDefault();var C=l.getNextActiveItem(b);C!=null&&l.setActiveItem(C)}else y==="Enter"&&(l.isEnterKeyPressed=!0)}(h=(u=l.props).onKeyDown)===null||h===void 0||h.call(u,d)},l.handleKeyUp=function(d){var u=l.props.onKeyUp,h=l.state.activeItem;d.key==="Enter"&&l.isEnterKeyPressed&&(d.preventDefault(),h==null||g2(h)?l.handleItemCreate(l.state.query,d):l.handleItemSelect(h,d),l.isEnterKeyPressed=!1),u==null||u(d)},l.handleInputQueryChange=function(d){var u,h,y=d==null?"":d.target.value;l.setQuery(y),(h=(u=l.props).onQueryChange)===null||h===void 0||h.call(u,y,d)};var o=e.query,f=o===void 0?"":o,i=(n=e.createNewItemFromQuery)===null||n===void 0?void 0:n.call(e,f),s=QQ(f,e);return l.state={activeItem:e.activeItem!==void 0?e.activeItem:(a=e.initialActiveItem)!==null&&a!==void 0?a:rF(s,e.itemDisabled),createNewItem:i,filteredItems:s,query:f},l}return r.ofType=function(){return r},r.prototype.render=function(){var e=this.props,n=e.className,a=e.items,l=e.renderer,o=e.itemListRenderer,f=o===void 0?this.renderItemList:o,i=e.menuProps,s=this.state;s.createNewItem;var d=Ps(s,["createNewItem"]);return l(qn(qn({},d),{className:n,handleItemSelect:this.handleItemSelect,handleKeyDown:this.handleKeyDown,handleKeyUp:this.handleKeyUp,handlePaste:this.handlePaste,handleQueryChange:this.handleInputQueryChange,itemList:f(qn(qn({},d),{items:a,itemsParentRef:this.refHandlers.itemsParent,menuProps:i,renderCreateItem:this.renderCreateItemMenuItem,renderItem:this.renderItem}))}))},r.prototype.componentDidUpdate=function(e){var n=this;this.props.activeItem!==void 0&&this.props.activeItem!==this.state.activeItem&&(this.shouldCheckActiveItemInViewport=!0,this.setState({activeItem:this.props.activeItem})),this.props.query!=null&&this.props.query!==e.query?this.setQuery(this.props.query,this.props.resetOnQuery,this.props):bv(this.props,e,{include:["items","itemListPredicate","itemPredicate"]})||this.setQuery(this.state.query),this.shouldCheckActiveItemInViewport&&(this.requestAnimationFrame(function(){return n.scrollActiveItemIntoView()}),this.shouldCheckActiveItemInViewport=!1)},r.prototype.scrollActiveItemIntoView=function(){var e=this.props.scrollToActiveItem!==!1,n=!ZR(this.props.itemsEqual,YR(this.expectedNextActiveItem),YR(this.props.activeItem));if(this.expectedNextActiveItem=null,!(!e&&n)){var a=this.getActiveElement();if(this.itemsParentRef!=null&&a!=null){var l=a.offsetTop,o=a.offsetHeight,f=this.itemsParentRef,i=f.offsetTop,s=f.scrollTop,d=f.clientHeight,u=this.getItemsParentPadding(),h=u.paddingTop,y=u.paddingBottom,b=l+o+y-i,C=l-h-i;b>=s+d?this.itemsParentRef.scrollTop=b+o-d:C<=s&&(this.itemsParentRef.scrollTop=C-o)}}},r.prototype.setQuery=function(e,n,a){var l;n===void 0&&(n=this.props.resetOnQuery),a===void 0&&(a=this.props);var o=a.createNewItemFromQuery;this.shouldCheckActiveItemInViewport=!0;var f=e!==this.state.query;f&&((l=a.onQueryChange)===null||l===void 0||l.call(a,e));var i=e.trim(),s=QQ(i,a),d=o!=null&&i!==""?o(i):void 0;this.setState({createNewItem:d,filteredItems:s,query:e});var u=this.getActiveIndex(s),h=n||u<0||TU(YR(this.state.activeItem),u,a.itemDisabled);h&&(this.isCreateItemRendered(d)&&this.isCreateItemFirst()?this.setActiveItem(XQ()):this.setActiveItem(rF(s,a.itemDisabled)))},r.prototype.setActiveItem=function(e){var n,a,l,o;this.expectedNextActiveItem=e,this.props.activeItem===void 0&&(this.shouldCheckActiveItemInViewport=!0,this.setState({activeItem:e})),g2(e)?(a=(n=this.props).onActiveItemChange)===null||a===void 0||a.call(n,null,!0):(o=(l=this.props).onActiveItemChange)===null||o===void 0||o.call(l,e,!1)},r.prototype.getActiveElement=function(){var e,n=this.state.activeItem;if(this.itemsParentRef!=null)if(g2(n)){var a=this.isCreateItemFirst()?0:this.state.filteredItems.length;return this.itemsParentRef.children.item(a)}else{var l=this.getActiveIndex();return(e=this.itemRefs.get(l))!==null&&e!==void 0?e:this.itemsParentRef.children.item(l)}},r.prototype.getActiveIndex=function(e){e===void 0&&(e=this.state.filteredItems);var n=this.state.activeItem;if(n==null||g2(n))return-1;for(var a=0;a<e.length;++a)if(ZR(this.props.itemsEqual,e[a],n))return a;return-1},r.prototype.getItemsParentPadding=function(){var e=getComputedStyle(this.itemsParentRef),n=e.paddingTop,a=e.paddingBottom;return{paddingBottom:KQ(a),paddingTop:KQ(n)}},r.prototype.getNextActiveItem=function(e,n){if(n===void 0&&(n=this.getActiveIndex()),this.isCreateItemRendered(this.state.createNewItem)){var a=n===0&&e===-1||n===this.state.filteredItems.length-1&&e===1;if(a)return XQ()}return rF(this.state.filteredItems,this.props.itemDisabled,e,n)},r.prototype.isCreateItemRendered=function(e){return this.canCreateItems()&&this.state.query!==""&&!this.wouldCreatedItemMatchSomeExistingItem(e)},r.prototype.isCreateItemFirst=function(){return this.props.createNewItemPosition==="first"},r.prototype.canCreateItems=function(){return this.props.createNewItemFromQuery!=null&&this.props.createNewItemRenderer!=null},r.prototype.wouldCreatedItemMatchSomeExistingItem=function(e){var n=this;return this.state.filteredItems.some(function(a){var l=Array.isArray(e)?e:[e];return l.some(function(o){return ZR(n.props.itemsEqual,a,o)})})},r.prototype.maybeResetQuery=function(){this.props.resetOnSelect&&this.setQuery("",!0)},r.displayName="".concat(Wo,".QueryList"),r.defaultProps={disabled:!1,resetOnQuery:!0},r}(I3);function KQ(t){return t==null?0:parseInt(t.slice(0,-2),10)}function jDe(t,r){var e=r.items,n=r.itemPredicate;if(nd(n))for(var a=0;a<e.length;a++){var l=e[a];if(n(t,l,a,!0))return l}}function QQ(t,r){var e=r.items,n=r.itemPredicate,a=r.itemListPredicate;return nd(a)?a(t,e):nd(n)?e.filter(function(l,o){return n(t,l,o)}):e}function VDe(t,r,e){return t<r?e:t>e?r:t}function TU(t,r,e){return e==null||t==null?!1:nd(e)?e(t,r):!!t[e]}function rF(t,r,e,n){if(e===void 0&&(e=1),n===void 0&&(n=t.length-1),t.length===0)return null;var a=n,l=t.length-1;do if(a=VDe(a+e,0,l),!TU(t[a],a,r))return t[a];while(a!==n&&n!==-1);return null}var GDe=function(t){xs(r,t);function r(){var e,n=t.apply(this,arguments)||this;return n.listboxId=XV("listbox"),n.state={isOpen:n.props.popoverProps&&n.props.popoverProps.isOpen||!1},n.input=null,n.queryList=null,n.refHandlers={input:Ix(n,"input",(e=n.props.tagInputProps)===null||e===void 0?void 0:e.inputRef),popover:St.createRef(),queryList:function(a){return n.queryList=a}},n.renderQueryList=function(a){var l,o=n.props,f=o.disabled,i=o.popoverContentProps,s=i===void 0?{}:i,d=o.popoverProps,u=d===void 0?{}:d,h=a.handleKeyDown,y=a.handleKeyUp;return St.createElement(Gx,qn({autoFocus:!1,canEscapeKeyClose:!0,disabled:f,enforceFocus:!1,isOpen:n.state.isOpen,placement:u.position||u.placement?void 0:"bottom-start"},u,{className:Di(a.className,u.className),content:St.createElement("div",qn({className:n.props.customTarget!=null&&!(!((l=n.props.popoverProps)===null||l===void 0)&&l.matchTargetWidth)?BDe:void 0},s,{onKeyDown:h,onKeyUp:y}),n.props.customTarget!=null&&n.getTagInput(a,Di(nm,$De)),a.itemList),interactionKind:"click",onInteraction:n.handlePopoverInteraction,onOpened:n.handlePopoverOpened,popoverClassName:Di(zDe,u.popoverClassName),popupKind:dO.LISTBOX,ref:q1(n.refHandlers.popover,n.props.popoverRef),renderTarget:n.getPopoverTargetRenderer(a,n.state.isOpen)}))},n.getPopoverTargetRenderer=function(a,l){return function(o){var f;o.isOpen;var i=o.ref,s=Ps(o,["isOpen","ref"]),d=n.props,u=d.disabled,h=d.fill,y=d.selectedItems,b=d.popoverProps,C=b===void 0?{}:b,m=d.popoverTargetProps,c=m===void 0?{}:m,v=a.handleKeyDown,g=a.handleKeyUp,p=C.targetTagName,I=p===void 0?"div":p;return St.createElement(I,qn(qn(qn({"aria-autocomplete":"list","aria-controls":n.listboxId},c),s),{"aria-disabled":u,"aria-expanded":l,className:Di(s.className,c.className,(f={},f[nm]=h,f)),onKeyDown:n.getTagInputKeyDownHandler(v),onKeyUp:n.getTagInputKeyUpHandler(g),ref:i,role:"combobox"}),n.props.customTarget!=null?n.props.customTarget(y,l):n.getTagInput(a))}},n.getTagInput=function(a,l){var o,f=n.props,i=f.disabled,s=f.fill,d=f.onClear,u=f.placeholder,h=f.selectedItems,y=f.tagInputProps,b=y===void 0?{}:y,C=d!==void 0&&h.length>0?St.createElement(qa,{"aria-label":"Clear selected items",disabled:i,icon:St.createElement(Uk,null),onClick:n.handleClearButtonClick,title:"Clear selected items",variant:"minimal"}):void 0,m=qn(qn({},b.inputProps),{className:Di((o=b.inputProps)===null||o===void 0?void 0:o.className,YQ)});return St.createElement(E6e,qn({placeholder:u,rightElement:C},b,{className:Di(l,J5,b.className),disabled:i,fill:s,inputRef:n.refHandlers.input,inputProps:m,inputValue:a.query,onAdd:n.getTagInputAddHandler(a),onInputChange:a.handleQueryChange,onRemove:n.handleTagRemove,values:h.map(n.props.tagRenderer)}))},n.handleItemSelect=function(a,l){var o,f,i;n.input!=null&&n.input.focus(),(f=(o=n.props).onItemSelect)===null||f===void 0||f.call(o,a,l),(i=n.refHandlers.popover.current)===null||i===void 0||i.reposition()},n.handleQueryChange=function(a,l){var o,f;n.setState({isOpen:a.length>0||n.props.customTarget==null&&!n.props.openOnKeyDown}),(f=(o=n.props).onQueryChange)===null||f===void 0||f.call(o,a,l)},n.handlePopoverInteraction=function(a,l){var o,f;if(n.props.customTarget!=null){n.setState({isOpen:a}),(f=(o=n.props.popoverProps)===null||o===void 0?void 0:o.onInteraction)===null||f===void 0||f.call(o,a,l);return}n.requestAnimationFrame(function(){var i,s,d=n.input===LT(n.input);n.input!=null&&!d?n.setState({isOpen:!1}):n.props.openOnKeyDown||n.setState({isOpen:!0}),(s=(i=n.props.popoverProps)===null||i===void 0?void 0:i.onInteraction)===null||s===void 0||s.call(i,a,l)})},n.handlePopoverOpened=function(a){var l,o,f,i;n.queryList!=null&&n.queryList.scrollActiveItemIntoView();var s=n.props.customTarget!=null;if(s&&n.input!=null){var d=((o=(l=n.props.tagInputProps)===null||l===void 0?void 0:l.inputProps)===null||o===void 0?void 0:o.autoFocus)!==!1;d&&n.input.focus()}(i=(f=n.props.popoverProps)===null||f===void 0?void 0:f.onOpened)===null||i===void 0||i.call(f,a)},n.handleTagRemove=function(a,l){var o,f,i=n.props,s=i.selectedItems,d=i.onRemove,u=i.tagInputProps;d==null||d(s[l],l),(o=u==null?void 0:u.onRemove)===null||o===void 0||o.call(u,a,l),(f=n.refHandlers.popover.current)===null||f===void 0||f.reposition()},n.getTagInputAddHandler=function(a){return function(l,o){o==="paste"&&a.handlePaste(l)}},n.getTagInputKeyDownHandler=function(a){return function(l){var o,f,i;l.key==="Escape"||l.key==="Tab"?(l.key==="Escape"&&((o=n.input)===null||o===void 0||o.blur()),n.setState({isOpen:!1})):l.key==="Backspace"||l.key==="ArrowLeft"||l.key==="ArrowRight"||(n.props.customTarget!=null?l.key===" "?(l.preventDefault(),n.setState({isOpen:!0})):l.key==="Enter"&&n.setState({isOpen:!0}):n.setState({isOpen:!0}));var s=l.target.closest(".".concat(khe))!=null;n.state.isOpen&&!s&&(a==null||a(l)),(i=(f=n.props.popoverTargetProps)===null||f===void 0?void 0:f.onKeyDown)===null||i===void 0||i.call(f,l)}},n.getTagInputKeyUpHandler=function(a){return function(l){var o,f,i=l.target.classList.contains(YQ);n.state.isOpen&&i&&(a==null||a(l)),(f=(o=n.props.popoverTargetProps)===null||o===void 0?void 0:o.onKeyDown)===null||f===void 0||f.call(o,l)}},n.handleClearButtonClick=function(){var a,l,o;(l=(a=n.props).onClear)===null||l===void 0||l.call(a),(o=n.refHandlers.popover.current)===null||o===void 0||o.reposition()},n}return r.ofType=function(){return r},r.prototype.componentDidUpdate=function(e){var n,a,l,o,f;((n=e.tagInputProps)===null||n===void 0?void 0:n.inputRef)!==((a=this.props.tagInputProps)===null||a===void 0?void 0:a.inputRef)&&(Kp((l=e.tagInputProps)===null||l===void 0?void 0:l.inputRef,null),this.refHandlers.input=Ix(this,"input",(o=this.props.tagInputProps)===null||o===void 0?void 0:o.inputRef),Kp((f=this.props.tagInputProps)===null||f===void 0?void 0:f.inputRef,this.input)),(e.onClear===void 0&&this.props.onClear!==void 0||e.onClear!==void 0&&this.props.onClear===void 0)&&this.forceUpdate()},r.prototype.render=function(){var e=this.props,n=e.menuProps;e.openOnKeyDown,e.popoverProps,e.tagInputProps,e.customTarget;var a=Ps(e,["menuProps","openOnKeyDown","popoverProps","tagInputProps","customTarget"]);return St.createElement(Vve,qn({},a,{menuProps:qn(qn({"aria-label":"selectable options"},n),{"aria-multiselectable":!0,id:this.listboxId}),onItemSelect:this.handleItemSelect,onQueryChange:this.handleQueryChange,ref:this.refHandlers.queryList,renderer:this.renderQueryList}))},r.displayName="".concat(Wo,".MultiSelect"),r.defaultProps={disabled:!1,fill:!1,placeholder:"Search..."},r}(xc),Gve=function(t){xs(r,t);function r(){var e,n=t.apply(this,arguments)||this;return n.state={isOpen:!1},n.inputElement=null,n.queryList=null,n.handleInputRef=Ix(n,"inputElement",(e=n.props.inputProps)===null||e===void 0?void 0:e.inputRef),n.handleQueryListRef=function(a){return n.queryList=a},n.listboxId=XV("listbox"),n.renderQueryList=function(a){var l=n.props,o=l.filterable,f=o===void 0?!0:o,i=l.disabled,s=i===void 0?!1:i,d=l.inputProps,u=d===void 0?{}:d,h=l.placeholder,y=h===void 0?"Filter...":h,b=l.popoverContentProps,C=b===void 0?{}:b,m=l.popoverProps,c=m===void 0?{}:m,v=l.popoverRef,g=St.createElement(xh,qn({"aria-autocomplete":"list",leftIcon:St.createElement(lG,null),placeholder:y,rightElement:n.maybeRenderClearButton(a.query)},u,{inputRef:n.handleInputRef,onChange:a.handleQueryChange,value:a.query})),p=a.handleKeyDown,I=a.handleKeyUp;return St.createElement(Gx,qn({autoFocus:!1,enforceFocus:!1,isOpen:n.state.isOpen,disabled:s,placement:c.position||c.placement?void 0:"bottom-start"},c,{className:Di(a.className,c.className),content:St.createElement("div",qn({},C,{onKeyDown:p,onKeyUp:I}),f?g:void 0,a.itemList),onClosing:n.handlePopoverClosing,onInteraction:n.handlePopoverInteraction,onOpened:n.handlePopoverOpened,onOpening:n.handlePopoverOpening,popoverClassName:Di(UDe,c.popoverClassName),popupKind:dO.LISTBOX,ref:v,renderTarget:n.getPopoverTargetRenderer(a,n.state.isOpen)}))},n.getPopoverTargetRenderer=function(a,l){return function(o){var f;o.isOpen;var i=o.ref,s=Ps(o,["isOpen","ref"]),d=n.props,u=d.disabled,h=d.popoverProps,y=h===void 0?{}:h,b=d.popoverTargetProps,C=a.handleKeyDown,m=a.handleKeyUp,c=y.targetTagName,v=c===void 0?"div":c;return St.createElement(v,qn(qn(qn({"aria-controls":n.listboxId},b),s),{"aria-disabled":u,"aria-expanded":l,className:Di(s.className,b==null?void 0:b.className,(f={},f[nm]=n.props.fill,f)),onKeyDown:n.withPopoverTargetPropsHandler("keydown",l?C:n.handleTargetKeyDown),onKeyUp:n.withPopoverTargetPropsHandler("keyup",l?m:void 0),ref:i,role:"combobox"}),n.props.children)}},n.withPopoverTargetPropsHandler=function(a,l){switch(a){case"keydown":return function(o){var f,i;l==null||l(o),(i=(f=n.props.popoverTargetProps)===null||f===void 0?void 0:f.onKeyDown)===null||i===void 0||i.call(f,o)};case"keyup":return function(o){var f,i;l==null||l(o),(i=(f=n.props.popoverTargetProps)===null||f===void 0?void 0:f.onKeyUp)===null||i===void 0||i.call(f,o)}}},n.handleTargetKeyDown=function(a){a.key==="ArrowUp"||a.key==="ArrowDown"?(a.preventDefault(),n.setState({isOpen:!0})):OT(a)&&n.setState({isOpen:!0})},n.handleItemSelect=function(a,l){var o,f,i=l==null?void 0:l.target,s=i==null?void 0:i.closest(".".concat(A3)),d=s==null?void 0:s.matches(".".concat(ZE)),u=d??!0;n.setState({isOpen:!u}),(f=(o=n.props).onItemSelect)===null||f===void 0||f.call(o,a,l)},n.handlePopoverInteraction=function(a,l){var o,f;n.setState({isOpen:a}),(f=(o=n.props.popoverProps)===null||o===void 0?void 0:o.onInteraction)===null||f===void 0||f.call(o,a,l)},n.handlePopoverOpening=function(a){var l,o,f;n.previousFocusedElement=(l=LT(n.inputElement))!==null&&l!==void 0?l:void 0,n.props.resetOnClose&&n.resetQuery(),(f=(o=n.props.popoverProps)===null||o===void 0?void 0:o.onOpening)===null||f===void 0||f.call(o,a)},n.handlePopoverOpened=function(a){var l,o;n.queryList!=null&&n.queryList.scrollActiveItemIntoView(),n.requestAnimationFrame(function(){var f,i=n.props.inputProps,s=i===void 0?{}:i;s.autoFocus!==!1&&((f=n.inputElement)===null||f===void 0||f.focus())}),(o=(l=n.props.popoverProps)===null||l===void 0?void 0:l.onOpened)===null||o===void 0||o.call(l,a)},n.handlePopoverClosing=function(a){var l,o;n.requestAnimationFrame(function(){n.previousFocusedElement!==void 0&&(n.previousFocusedElement.focus(),n.previousFocusedElement=void 0)}),(o=(l=n.props.popoverProps)===null||l===void 0?void 0:l.onClosing)===null||o===void 0||o.call(l,a)},n.resetQuery=function(){return n.queryList&&n.queryList.setQuery("",!0)},n}return r.ofType=function(){return r},r.prototype.render=function(){var e=this.props;e.filterable,e.inputProps;var n=e.menuProps;e.popoverProps;var a=Ps(e,["filterable","inputProps","menuProps","popoverProps"]);return St.createElement(Vve,qn({},a,{menuProps:qn(qn({"aria-label":"selectable options"},n),{id:this.listboxId}),onItemSelect:this.handleItemSelect,ref:this.handleQueryListRef,renderer:this.renderQueryList}))},r.prototype.componentDidUpdate=function(e,n){var a,l,o,f,i;((a=e.inputProps)===null||a===void 0?void 0:a.inputRef)!==((l=this.props.inputProps)===null||l===void 0?void 0:l.inputRef)&&(Kp((o=e.inputProps)===null||o===void 0?void 0:o.inputRef,null),this.handleInputRef=Ix(this,"inputElement",(f=this.props.inputProps)===null||f===void 0?void 0:f.inputRef),Kp((i=this.props.inputProps)===null||i===void 0?void 0:i.inputRef,this.inputElement)),this.state.isOpen&&!n.isOpen&&this.queryList!=null&&this.queryList.scrollActiveItemIntoView()},r.prototype.maybeRenderClearButton=function(e){return e.length>0?St.createElement(qa,{"aria-label":"Clear filter query",icon:St.createElement(Uk,null),onClick:this.resetQuery,title:"Clear filter query",variant:"minimal"}):void 0},r.displayName="".concat(Wo,".Select"),r}(xc);const WDe=({connectionList:t,connection:r,disabled:e,loading:n,offline:a,onSelectConnection:l,onEditConnection:o,onRemoveConnection:f,onSyncRemoteFolderList:i})=>{const[s,d]=St.useState(!1),u=r??t[0];return tt.jsxs("div",{className:"buttons-container",children:[tt.jsx(Gve,{className:"remote-connection-select",items:t,itemRenderer:(h,y)=>YDe(h,y,u),disabled:e,filterable:!0,itemPredicate:ZDe,noResults:tt.jsx(b3,{disabled:!0,text:"No results",roleStructure:"listoption"}),onItemSelect:l,children:tt.jsx(qa,{icon:a?Ui.BAN_CIRCLE:Ui.CLOUD,endIcon:Ui.CARET_DOWN,disabled:e,text:CO(u)})}),tt.jsx(Es,{content:"Edit selected connection",children:tt.jsx(bx,{icon:Ui.EDIT,disabled:e||!u,onClick:()=>d(!0)})}),tt.jsx(Es,{content:"Remove selected connection",children:tt.jsx(bx,{icon:Ui.TRASH,disabled:e||!u,onClick:()=>f(u)})}),tt.jsx(Hve,{open:s,onAddConnection:h=>{d(!1),o(h,r)},onClose:()=>{d(!1)},title:"Edit remote connection",buttonLabel:"Save connection",remoteConnection:u},`${u==null?void 0:u.name}${u==null?void 0:u.host}${u==null?void 0:u.port}${u==null?void 0:u.reportPath}`),tt.jsx(qa,{icon:Ui.LOCATE,disabled:e||!u,loading:n,text:"Fetch remote folders list",onClick:()=>i(u)})]})},CO=t=>{var r;return t?`${t.name} - ssh://${t.host}:${t.port}/${(r=t==null?void 0:t.reportPath)==null?void 0:r.replace(/^\//gi,"")}`:"(No connection)"},ZDe=(t,r)=>CO(r).toLowerCase().includes(t.toLowerCase()),YDe=(t,{handleClick:r,modifiers:e},n)=>e.matchesPredicate?tt.jsx(b3,{active:e5(t,n),disabled:e.disabled,onClick:r,text:CO(t)},CO(t)):null,XDe=new Intl.DateTimeFormat("en-US",{dateStyle:"long",timeStyle:"short"}),JQ=50,IO=(t,r,e)=>{if(!t||!e)return"n/a";const a={report:e.reportPath,performance:e.performancePath}[r];return t.remotePath.toLowerCase().replace(a.toLowerCase(),"")},KDe=t=>t.testName.length>JQ?`${t.testName.slice(0,JQ)}...`:t.testName,QDe=(t,r)=>(e,n)=>IO(n,t,r).toLowerCase().includes(e.toLowerCase()),JDe=(t,r,e,n)=>(a,{handleClick:l,modifiers:o})=>{var b;const{persistentState:f}=Q5(),i=(b=f.selectedConnection)==null?void 0:b.useRemoteQuerying;if(!o.matchesPredicate)return null;const{lastSynced:s,lastModified:d}=a,u=s?XDe.format(new Date(s)):"Never";let h=tt.jsx(Es,{content:`Fetching folder status, last sync: ${u}`,children:tt.jsx(cG,{size:16})});t||(LS(a)?h=tt.jsx(Es,{content:`Folder is stale, last sync: ${u}`,children:tt.jsx(fl,{icon:Ui.HISTORY,color:"goldenrod"})}):h=tt.jsx(Es,{content:`Folder is up to date, last sync: ${u}`,children:tt.jsx(fl,{icon:Ui.UPDATED,color:"green"})}));const y=()=>tt.jsxs(tt.Fragment,{children:[tt.jsx("span",{className:"test-name",children:KDe(a)}),!i&&h]});return tt.jsx(b3,{className:"remote-folder-item",active:e5(e,a),disabled:o.disabled,onClick:l,text:IO(a,r,n),textClassName:"folder-path",icon:Ui.FOLDER_CLOSE,labelElement:y(),labelClassName:"remote-folder-status-icon"},`${IO(a,r,n)}${s??d}`)},qQ=({remoteFolder:t,remoteFolderList:r=[],loading:e=!1,updatingFolderList:n=!1,onSelectFolder:a,children:l,fallbackLabel:o="(No selection)",icon:f=Ui.FOLDER_OPEN,type:i})=>{const{persistentState:s}=Q5(),d=s.selectedConnection;return tt.jsxs("div",{className:"buttons-container",children:[tt.jsx(Gve,{className:"remote-folder-select",items:r??[],itemRenderer:JDe(n,i,t,d),filterable:!0,itemPredicate:QDe(i,d),noResults:tt.jsx(b3,{disabled:!0,text:"No results",roleStructure:"listoption"}),disabled:e||(r==null?void 0:r.length)===0,onItemSelect:a,children:tt.jsx(qa,{icon:f,endIcon:(r==null?void 0:r.length)>0?Ui.CARET_DOWN:void 0,disabled:e||(r==null?void 0:r.length)===0,text:t?IO(t,i,d):o})}),l]})},qDe=()=>{var P,z;const t=Q5(),r=jV(),e=U0(OG),n=U0(kG),[a,l]=Yu(W5),[o,f]=Yu(Z5),[i,s]=St.useState(!1),[d,u]=St.useState(!1),[h,y]=St.useState(t.persistentState.getSavedReportFolders(t.persistentState.selectedConnection)),[b,C]=St.useState(!1),[m,c]=St.useState(a?h.find(M=>M.testName.includes(a)):h[0]),[v,g]=St.useState(t.persistentState.getSavedPerformanceFolders(t.persistentState.selectedConnection)),[p,I]=St.useState(!1),[A,_]=St.useState(o?v.find(M=>M.testName.includes(o)):v[0]),w=M=>{t.persistentState.selectedConnection=M,y(t.persistentState.getSavedReportFolders(M)),g(t.persistentState.getSavedPerformanceFolders(M)),c(t.persistentState.getSavedReportFolders(M)[0]),_(t.persistentState.getSavedPerformanceFolders(M)[0])},E=(M,R)=>{if(!M)return[];const N=t.persistentState.getSavedReportFolders(M),O=(R??[]).map(H=>({...N==null?void 0:N.find(G=>G.remotePath===H.remotePath),...H}));return t.persistentState.setSavedReportFolders(M,O),y(O),O},x=(M,R)=>{if(!M)return[];const N=t.persistentState.getSavedPerformanceFolders(M),O=(R??[]).map(H=>({...N==null?void 0:N.find(G=>G.remotePath===H.remotePath),...H}));return t.persistentState.setSavedPerformanceFolders(M,O),g(O),O},S=M=>t.persistentState.savedConnectionList.findIndex(R=>{const N=R.name===(M==null?void 0:M.name),O=R.host===(M==null?void 0:M.host),H=R.port===(M==null?void 0:M.port);return N&&O&&H}),T=(P=t.persistentState.selectedConnection)==null?void 0:P.useRemoteQuerying,L=b||p,k=d||L,F=M=>{r.clear(),e("remote"),n(gO),l(M),AO("Active report data",M)},D=M=>{r.clear(),e("remote"),n(gO),f(M),AO("Active performance data",M)};return tt.jsxs(tt.Fragment,{children:[tt.jsx(qh,{label:tt.jsx("h3",{children:"Add remote sync server"}),subLabel:"Add new server connection details",children:tt.jsx(FDe,{disabled:k,onAddConnection:M=>{t.persistentState.savedConnectionList=[...t.persistentState.savedConnectionList,M],w(M)}})}),tt.jsx(qh,{label:tt.jsx("h3",{children:"Use remote sync server"}),subLabel:"Select remote server that will be used for syncing folders",children:tt.jsx(WDe,{connection:t.persistentState.selectedConnection,connectionList:t.persistentState.savedConnectionList,disabled:k,loading:d,offline:i,onEditConnection:(M,R)=>{const N=[...t.persistentState.savedConnectionList];N[S(R)]=M,t.persistentState.savedConnectionList=N,t.persistentState.updateSavedRemoteFoldersConnection(R,M),w(M)},onRemoveConnection:M=>{const R=[...t.persistentState.savedConnectionList];R.splice(S(M),1),t.persistentState.savedConnectionList=R,t.persistentState.deleteSavedReportFolders(M),t.persistentState.deleteSavedPerformanceFolders(M),w(R[0]),c(void 0),_(void 0)},onSelectConnection:async M=>{try{u(!0),w(M);const R=await t.listReportFolders(M),N=M.performancePath?await t.listPerformanceFolders(M):[],O=E(M,R),H=x(M,N);s(!1),c(O[0]),_(H[0])}catch{s(!0)}finally{u(!1)}},onSyncRemoteFolderList:async()=>{try{if(u(!0),t.persistentState.selectedConnection){const M=await t.listReportFolders(t.persistentState.selectedConnection),R=t.persistentState.selectedConnection.performancePath?await t.listPerformanceFolders(t.persistentState.selectedConnection):[],N=E(t.persistentState.selectedConnection,M),O=x(t.persistentState.selectedConnection,R);c(N[0]),_(O[0])}}catch{alert("Unable to connect to remote server.")}finally{u(!1)}}})}),tt.jsx(qh,{label:tt.jsx("h3",{children:"Report folder"}),subLabel:"Select the report folder you wish to view",children:tt.jsx(qQ,{remoteFolder:m,remoteFolderList:h,loading:L||d,updatingFolderList:d,onSelectFolder:async M=>{if(c(M),t.persistentState.selectedConnection&&(T||!T&&!LS(M))&&(await t.mountRemoteFolder(t.persistentState.selectedConnection,M,A)).status===200){const N=M.testName;F(N)}},type:"report",children:!T&&tt.jsx(Es,{content:"Sync remote folder",children:tt.jsx(bx,{icon:Ui.REFRESH,loading:b,disabled:k||!m||(h==null?void 0:h.length)===0,onClick:async()=>{try{if(C(!0),t.persistentState.selectedConnection){const{data:M}=await t.syncRemoteFolder(t.persistentState.selectedConnection,m),R=t.persistentState.getSavedReportFolders(t.persistentState.selectedConnection),N=R.findIndex(O=>O.remotePath===(m==null?void 0:m.remotePath));R[N]=M,E(t.persistentState.selectedConnection,R),c(R[N])}}catch{alert("Unable to sync remote folder")}finally{if(C(!1),e("remote"),t.persistentState.selectedConnection&&m&&(!T||T&&LS(m))&&(await t.mountRemoteFolder(t.persistentState.selectedConnection,m,A)).status===200){const R=m.testName,N=A==null?void 0:A.testName;F(R),N&&D(N)}}}})})})}),((z=t.persistentState.selectedConnection)==null?void 0:z.performancePath)&&tt.jsx(qh,{label:tt.jsx("h3",{children:"Performance data folder"}),subLabel:"Select the performance folder you wish to view",children:tt.jsx(qQ,{remoteFolder:A,remoteFolderList:v,loading:L||d,updatingFolderList:d,onSelectFolder:async M=>{if(_(M),t.persistentState.selectedConnection&&(T||!T&&!LS(M))&&(await t.mountRemoteFolder(t.persistentState.selectedConnection,m,M)).status===200){const N=M.testName;D(N)}},type:"performance",children:!T&&tt.jsx(Es,{content:"Sync remote folder",children:tt.jsx(bx,{icon:Ui.REFRESH,loading:p,disabled:k||!A||(v==null?void 0:v.length)===0,onClick:async()=>{try{if(I(!0),t.persistentState.selectedConnection){const{data:M}=await t.syncRemoteFolder(t.persistentState.selectedConnection,void 0,A),R=t.persistentState.getSavedPerformanceFolders(t.persistentState.selectedConnection),N=R.findIndex(O=>O.remotePath===(A==null?void 0:A.remotePath));if(R[N]=M,x(t.persistentState.selectedConnection,R),_(R[N]),t.persistentState.selectedConnection&&A&&(T||!T&&LS(A))&&(await t.mountRemoteFolder(t.persistentState.selectedConnection,m,A)).status===200){const H=A.testName;D(H)}}}catch{alert("Unable to sync remote folder")}finally{I(!1)}}})})})})]})},eJ=["rgb(63,181,143)","rgb(74,217,225)","rgb(247,66,78)","rgb(52,163,188)","rgb(113,168,31)","rgb(95,188,255)","rgb(96,157,255)","rgb(152,218,29)","rgb(187,141,255)","rgb(136,217,141)","rgb(226,177,30)","rgb(255,137,229)","rgb(190,39,130)","rgb(252,194,251)","rgb(209,109,255)","rgb(158,183,229)","rgb(201,151,13)","rgb(250,163,140)","rgb(255,92,111)","rgb(247,147,30)","rgb(227,215,105)","rgb(90,51,137)","rgb(23,244,111)"];function*Wve(){let t=0;for(;;)yield eJ[t],t=(t+1)%eJ.length}const e8e=Wve(),nF=new Map,Zx=t=>t===null?"rgb(255,255,255)":(nF.has(t)||nF.set(t,e8e.next().value),nF.get(t)),t8e=Wve(),iF=new Map,rp=t=>{if(t!==void 0)return iF.has(t)||iF.set(t,t8e.next().value),iF.get(t)},r8e=({tensorId:t,address:r,colour:e})=>tt.jsxs("div",{className:"toast-tensor-message",children:[tt.jsx("div",{className:"memory-color-block",style:e?{backgroundColor:e}:{}}),tt.jsxs("strong",{children:[t?`Tensor ${t}`:"Buffer",tt.jsx("span",{className:"light",children:" at "}),r?rA(r):"NULL",tt.jsx("span",{className:"light",children:" selected"})]})]}),iD=()=>{const[t,r]=Yu(NLe),e=U0(Y5),n=U0(Wx),a=()=>{e(null),n(null),r(null),du.dismiss()};return{activeToast:t,resetToasts:a,setActiveToast:r,createToast:(o,f)=>{t&&du.dismiss(t);let i=rp(f);o&&!i&&(i=Zx(o));const s=du(tt.jsx(r8e,{tensorId:f,address:o,colour:i}),{position:"bottom-right",hideProgressBar:!0,closeOnClick:!0,onClick:a,theme:"light"});r(s)}}};function _3(){const{resetToasts:t}=iD();St.useEffect(()=>{t()},[])}function n8e(){return _3(),tt.jsx("div",{className:"splash-screen home",children:tt.jsxs("div",{className:"folder-picker-options",children:[tt.jsxs("fieldset",{children:[tt.jsx("legend",{children:"Local folder"}),tt.jsx(fl,{icon:Ui.FOLDER_OPEN,size:150}),tt.jsx("div",{className:"folder-picker-wrapper",children:tt.jsx(ODe,{})})]}),tt.jsxs("fieldset",{children:[tt.jsx("legend",{children:"Remote Sync"}),tt.jsx(fl,{icon:Ui.CLOUD,size:150}),tt.jsx("div",{className:"folder-picker-wrapper",children:tt.jsx(qDe,{})})]})]})})}function Gw(t,r,e){let n=e.initialDeps??[],a;return()=>{var l,o,f,i;let s;e.key&&((l=e.debug)!=null&&l.call(e))&&(s=Date.now());const d=t();if(!(d.length!==n.length||d.some((y,b)=>n[b]!==y)))return a;n=d;let h;if(e.key&&((o=e.debug)!=null&&o.call(e))&&(h=Date.now()),a=r(...d),e.key&&((f=e.debug)!=null&&f.call(e))){const y=Math.round((Date.now()-s)*100)/100,b=Math.round((Date.now()-h)*100)/100,C=b/16,m=(c,v)=>{for(c=String(c);c.length<v;)c=" "+c;return c};console.info(`%c⏱ ${m(b,5)} /${m(y,5)} ms`,`
|
102
|
+
`);Ove.parse(i,{header:!0,complete:s=>e({deviceMeta:o,deviceLog:s}),error:s=>n(s)})})},dg=()=>Jy({queryFn:()=>Fve(),queryKey:["get-operations"],retry:!1}),oDe=()=>{const t=dg();return St.useMemo(()=>{var r,e;return t.data?[(r=t.data)==null?void 0:r[0].id,(e=t.data)==null?void 0:e[t.data.length-1].id]:null},[t.isLoading])},rD=t=>{const{data:r}=dg(),e=St.useMemo(()=>(r==null?void 0:r.find(f=>f.id===t))||null,[r,t]),n=null,a=St.useCallback(()=>eDe(t),[t]),l=Jy(["get-operation-detail",t,n],a,{retry:2,retryDelay:f=>Math.min(f*100,500)}),o=St.useMemo(()=>{if(!l.data)return[];const f=new Map;return l.data.buffers.forEach(i=>{const{address:s,max_size_per_bank:d}=i;if(s){const u=f.get(s);(!u||d>u.max_size_per_bank)&&f.set(s,i)}}),Array.from(f.values())},[l.data]);return l.data&&(l.data.buffersSummary=o),{operation:e,operationDetails:l}},sDe=t=>{const{data:r}=dg(),e=r==null?void 0:r.find((n,a,l)=>{var o;return((o=l[a+1])==null?void 0:o.id)===t});return rD(e?e.id:null)},lDe=t=>{const{data:r}=dg(),e=r==null?void 0:r.find((n,a,l)=>{var o;return((o=l[a+1])==null?void 0:o.id)===t});return e?{id:e.id,name:e.name}:void 0},uDe=t=>{const{data:r}=dg(),e=r==null?void 0:r.find((n,a,l)=>{var o;return((o=l[a-1])==null?void 0:o.id)===t});return e?{id:e.id,name:e.name}:void 0},cDe=()=>{const{data:t}=dg(),{data:r}=UG(),e=(n,a)=>{if(a===1)return n;const l=[],o=new Map;for(const{name:i,id:s}of n){const d=`${i}-${s}`;o.set(d,(o.get(d)||0)+1)}const f=new Set;for(const i of n){const s=`${i.name}-${i.id}`;!f.has(s)&&o.get(s)===a&&(l.push(i),f.add(s))}return l};return St.useMemo(()=>{if(!t||!r)return[];const n=t.flatMap(a=>a.device_operations.filter(l=>l.node_type===is.function_start&&l.params.name&&Cke(l.params.name)).map(l=>({name:l.params.name,id:a.id,operationName:a.name})));return e(n,r.length)},[t,r])},fDe=()=>{const t=$ve();return St.useMemo(()=>{var n;if(!((n=t==null?void 0:t.data)!=null&&n.data)||(t==null?void 0:t.data.data.length)===0)return[];let r=t.data.data.slice().filter(a=>{var l;return!((l=a["OP CODE"])!=null&&l.includes("(torch)"))&&a["OP CODE"]!==""});return r.forEach((a,l)=>{a.ORIGINAL_ID=l+2}),r.length>0&&"HOST START TS"in r[0]&&(r=r.sort((a,l)=>Number(a["HOST START TS"]||0)-Number(l["HOST START TS"]||0))),Ake(r).length>1&&(r=yke(r)),r},[t.isLoading])},hDe=()=>{const t=HG();return St.useMemo(()=>t.data?t.data:[],[t.isLoading])},nD=()=>{const t=cDe(),r=hDe();return St.useMemo(()=>t.every((n,a)=>{const l=r[a];return l&&l.raw_op_code===n.name?(n.perfData=l,!0):!1})?t:[],[r,t])},zve=()=>{const t=nD();return St.useMemo(()=>t.map(({id:r,perfData:e})=>({opId:r,perfId:e==null?void 0:e.id})),[t])},dDe=()=>{const{data:t}=HG();return St.useMemo(()=>t!=null&&t.length?[parseInt(t[0].id,10),parseInt(t[t.length-1].id,10)]:null,[t])},vDe=(t,r,e,n)=>Jy(["get-buffer-pages",t,r,e,n],()=>qke(t,r,e)),gDe=async t=>{try{const{data:r}=await Qf.get("/api/tensors",{maxRedirects:1,params:{}}),e=await Fve();for(const n of r)if(n.producers.length>0){const a=n.producers[0],l=e.find(f=>f.id===a),o=l==null?void 0:l.outputs.find(f=>f.id===n.id);o&&(n.operationIdentifier=o.operationIdentifier)}return r}catch(r){if(bc.isAxiosError(r)&&(r.response&&r.response.status>=400&&r.response.status<500||r.response&&r.response.status>=500))throw r}return[RLe]},Bve=t=>Jy({queryFn:()=>gDe(),queryKey:["get-tensors",t],retry:!1}),UG=()=>Jy("get-devices",rDe),wU=(t,r)=>{const e=tf(x3),n=Jy({queryFn:()=>tDe(t),queryKey:["fetch-all-buffers",t]});return St.useMemo(()=>(n.data&&e&&r&&(n.data=n.data.filter(a=>a.id>=e[0]&&a.id<=e[1])),n),[e,n.isLoading,r])},pDe=()=>Jy({queryFn:()=>aDe(),queryKey:"get-device-log-raw"}),$ve=()=>Jy({queryFn:()=>nDe(),queryKey:"get-performance-data-raw"}),HG=()=>{const t=Jy({queryFn:()=>iDe(),queryKey:"get-performance-data-report"});return St.useMemo(()=>{if(t.data){const r=t.data.slice().filter(e=>{var n;return!((n=e.op_code)!=null&&n.includes("(torch)"))&&e.op_code!==""});t.data=r}return t},[t.isLoading])},mDe=(t,r)=>Jy({queryFn:()=>Jke(),queryKey:["get-session",t,r],initialData:null}),yDe=t=>{switch(t){case yO.WORMHOLE:return Dke;case yO.BLACKHOLE:return Qke;default:throw new Error(`Unknown architecture: ${t}`)}},ADe=t=>{const{data:r}=Bve(),e=wU(id.L1,!1);return t.map(n=>{var l;const a=r==null?void 0:r.find(o=>o.id===n);if(a){const o=a==null?void 0:a.producers[0],f=(l=e.data)==null?void 0:l.find(s=>s.id===o),i=f==null?void 0:f.buffers.find(s=>s.address===a.address);return{id:a.id,size:(i==null?void 0:i.size)||null}}return null}).filter(n=>n!==null)},CDe=t=>{const r=yDe(t),e=St.useMemo(()=>r.functional_workers.map(o=>o.split("-").reverse().map(f=>parseInt(f,10))),[r]),n=St.useMemo(()=>r.dram.flat().map(o=>o.split("-").reverse().map(f=>parseInt(f,10))),[r]),a=St.useMemo(()=>r.eth.flat().map(o=>o.split("-").reverse().map(f=>parseInt(f,10))),[r]),l=St.useMemo(()=>r.pcie.map(o=>o.split("-").reverse().map(f=>parseInt(f,10))),[r]);return{cores:e,dram:n,eth:a,pcie:l}};var jG=(t=>(t.SMALL="small",t))(jG||{});function np({size:t}){return tt.jsxs("div",{className:Di("loading-spinner",{small:t===jG.SMALL}),children:[tt.jsx("div",{}),tt.jsx("div",{}),tt.jsx("div",{}),tt.jsx("div",{})]})}const $Q=25;function IDe(){const{data:t}=dg(),r=fDe(),e=aI(),n=nD(),a=(n==null?void 0:n.length)>0,l=zve(),o=oDe(),f=dDe(),i=U0(ave),[s,d]=Yu(x3),u=U0(ove),[h,y]=Yu(sve),[b,C]=St.useState(!1),[m,c]=St.useState(!1),v=o==null?void 0:o[0],g=o==null?void 0:o[1],p=f==null?void 0:f[0],I=f==null?void 0:f[1],A=e.pathname.includes(`${Ss.OPERATIONS}/`),_=e.pathname===Ss.PERFORMANCE,w=A||_,E=()=>{d(o),y(f)};return St.useEffect(()=>{o&&(i(o),d(o))},[o,i,d]),St.useEffect(()=>{f&&(u(f),y(f))},[f,u,y]),St.useEffect(()=>{var x,S;if(a&&s&&f&&h&&b){const T=((x=l.find(D=>s[0]===D.opId))==null?void 0:x.perfId)??l.reduce((D,P)=>Math.abs((P.opId??0)-s[0])<Math.abs((D.opId??0)-s[0])?P:D).perfId,L=((S=l.find(D=>s[1]===D.opId))==null?void 0:S.perfId)??l.reduce((D,P)=>Math.abs((P.opId??0)-s[1])<Math.abs((D.opId??0)-s[1])?P:D).perfId,k=Number(T)||(s[0]<l[0].opId?p:h[0]),F=Number(L)||(s[1]>l[l.length-1].opId?I:h[1]);y([k,F]),C(!1)}},[a,s]),St.useEffect(()=>{var x,S,T,L;if(a&&s&&f&&h&&m){const k=((x=l.find(z=>h[0]===Number(z.perfId)))==null?void 0:x.opId)??l.reduce((z,M)=>Math.abs((Number(M.perfId)??0)-h[0])<Math.abs((Number(z.perfId)??0)-h[0])?M:z).opId,F=((S=l.find(z=>h[1]===Number(z.perfId)))==null?void 0:S.opId)??l.reduce((z,M)=>Math.abs((Number(M.perfId)??0)-h[1])<Math.abs((Number(z.perfId)??0)-h[1])?M:z).opId,D=k||(h[0]<Number(((T=l==null?void 0:l[0])==null?void 0:T.perfId)??0)?v:s[0]),P=F||(h[1]>Number(((L=l==null?void 0:l[l.length-1])==null?void 0:L.perfId)??0)?g:s[1]);d([D,P]),c(!1)}},[a,h]),s||h?tt.jsxs("div",{className:"range-slider",children:[h&&tt.jsxs("div",{className:"slider",children:[tt.jsx("div",{className:"inputs",children:tt.jsxs("div",{className:"group",children:[tt.jsx(xh,{value:h[0].toString(),onValueChange:x=>{y([parseInt(x,10)||p,h[1]]),c(!0)},fill:!1,disabled:!_,size:"small"}),tt.jsx(xh,{value:h[1].toString(),onValueChange:x=>{y([h[0],parseInt(x,10)||I]),c(!0)},fill:!1,disabled:!_,size:"small"})]})}),p&&I&&h&&tt.jsxs("div",{className:"slider-container",children:[tt.jsx(hQ,{value:h,onChange:x=>{y(x),c(!0)},min:p,max:I,labelStepSize:UQ(I),disabled:!_,labelRenderer:(x,S)=>xDe(x,r,S==null?void 0:S.isHandleTooltip)}),tt.jsx("p",{children:"Performance"})]}),tt.jsx("div",{className:"inputs",children:f&&tt.jsx(Es,{content:"Reset range",children:tt.jsx(qa,{icon:Ui.RESET,onClick:()=>a?E():y(f),disabled:!_,size:"small"})})})]}),tt.jsxs("div",{className:"slider",children:[s&&tt.jsx("div",{className:"inputs",children:tt.jsxs("div",{className:"group",children:[tt.jsx(xh,{value:s[0].toString(),onValueChange:x=>{d([parseInt(x,10)||v,s[1]]),C(!0)},fill:!1,disabled:w,size:"small"}),tt.jsx(xh,{value:s[1].toString(),onValueChange:x=>{d([s[0],parseInt(x,10)||g]),C(!0)},fill:!1,disabled:w,size:"small"})]})}),v&&g&&s&&tt.jsxs("div",{className:"slider-container",children:[tt.jsx(hQ,{value:s,onChange:x=>{d(x),C(!0)},min:v,max:g,labelStepSize:UQ(g),disabled:w,labelRenderer:(x,S)=>bDe(x,t,S==null?void 0:S.isHandleTooltip)}),tt.jsx("p",{children:"Operations"})]}),o&&tt.jsx(Es,{content:"Reset range",children:tt.jsx(qa,{icon:Ui.RESET,onClick:()=>a?E():d(o),disabled:w,size:"small"})})]})]}):tt.jsx(np,{})}const UQ=t=>$Q>t?1:Math.ceil(t/$Q),bDe=(t,r,e)=>{const n=r==null?void 0:r.find(a=>a.id===t);return n&&e?`${n.id} ${n.name}`:t.toString()},xDe=(t,r,e)=>{const n=r==null?void 0:r.find(a=>a.ORIGINAL_ID===t);return n&&e?`${n.ORIGINAL_ID} ${n["OP CODE"]}`:t.toString()},WR=20;function wDe(){const[t,r]=St.useState(!1),e=tf(x3),n=tf(ave),a=tf(ove),l=tf(W5),o=tf(Z5),f=aI(),s=nD().length>0,d=f.pathname.includes(`${Ss.OPERATIONS}/`),u=f.pathname===Ss.PERFORMANCE,h=f.pathname.includes(`${Ss.NPE}`);St.useEffect(()=>{(d||h)&&r(!1)},[h,d]);const y=()=>u?a&&`Selected Performance: ${a[0]} - ${a[1]}`:e&&`Selected: ${e[0]} - ${e[1]}`;return tt.jsxs("footer",{className:Di("app-footer",{"is-open":t}),children:[tt.jsxs("div",{className:"current-data",children:[tt.jsxs("div",{className:"active-reports",children:[l&&(l.length>WR?tt.jsx(Es,{content:l,className:Di("title",{"is-lengthy":l.length>WR}),children:tt.jsxs("span",{children:[tt.jsx("strong",{children:"Report:"})," ",l]})}):tt.jsxs("span",{children:[tt.jsx("strong",{children:"Report:"})," ",l]})),o&&(o.length>WR?tt.jsx(Es,{content:o,className:Di("title",{"is-lengthy":o.length>WR}),children:tt.jsxs("span",{children:[tt.jsx("strong",{children:"Performance:"})," ",o]})}):tt.jsxs("span",{children:[tt.jsx("strong",{children:"Performance:"})," ",o]})),l&&o&&tt.jsx("span",{children:s?tt.jsxs("strong",{children:[tt.jsx(fl,{icon:Ui.TickCircle,className:"intent-ok"})," ","Profiler and perf reports synchronised"]}):tt.jsxs("strong",{children:[tt.jsx(fl,{icon:Ui.ISSUE,className:"intent-not-ok"})," ","Profiler and perf reports can't be synchronized"]})})]}),(n||a)&&tt.jsxs("div",{className:"slider-controls",children:[!t&&!TDe(e,n)&&tt.jsx("span",{className:"current-range",children:y()}),tt.jsx(qa,{icon:t?Ui.CARET_DOWN:Ui.CARET_UP,onClick:()=>r(!t),disabled:d,size:"small",children:"Range"})]})]}),tt.jsx(xG,{className:"slider-container",isOpen:t,keepChildrenMounted:!0,children:tt.jsx(IDe,{})})]})}const TDe=(t,r)=>!!(t&&r&&t[0]===r[0]&&t[1]===r[1]),_De=G5({enter:"Toastify--animate Toastify__bounce-enter",exit:" no-toast-animation Toastify__bounce-exit",appendPosition:!0,collapseDuration:0,collapse:!0});function SDe(){const t="0.25.1",[r,e]=Yu(W5),[n,a]=Yu(Z5),{data:l}=mDe(r,n);return St.useEffect(()=>{var o,f;l!=null&&l.active_report&&(e(((o=l.active_report)==null?void 0:o.report_name)??null),a(((f=l.active_report)==null?void 0:f.profile_name)??null))},[l,e,a]),tt.jsxs("div",{className:MT,children:[tt.jsx(vA,{defaultTitle:"TT-NN Visualizer",titleTemplate:"%s | TT-NN Visualizer",children:tt.jsx("meta",{charSet:"utf-8"})}),tt.jsx("header",{className:"app-header",children:tt.jsxs("nav",{className:"nav-container",children:[tt.jsxs("a",{href:Ss.HOME,className:"title",children:[tt.jsx("h1",{children:"TT-NN Visualizer"}),tt.jsxs("sup",{className:"version",children:["v",t]})]}),tt.jsx(FLe,{})]})}),tt.jsxs("main",{children:[tt.jsx(_Se,{}),tt.jsx(TLe,{position:"top-right",autoClose:!1,newestOnTop:!1,closeOnClick:!0,closeButton:!1,theme:"light",transition:_De})]}),tt.jsx(wDe,{})]})}const EDe=()=>{function t(o){const i=Array.from(o).map(u=>u.webkitRelativePath);if(i.length===0)return null;const d=i.reduce((u,h)=>u.split("/").filter((b,C)=>b===h.split("/")[C]).join("/")).split("/");return d.length>=1?d[d.length-1]:null}function r(o,f=["tensors"]){const s=Array.from(o).filter(u=>!f.some(h=>{var y;return(y=u.webkitRelativePath)==null?void 0:y.includes(`/${h}/`)})),d=new DataTransfer;return s.forEach(u=>d.items.add(u)),d.files}return{getUploadedFolderName:t,checkRequiredReportFiles:o=>{const f=["db.sqlite","config.json"],i=new Set;return Array.from(o).forEach(s=>{const d=s.webkitRelativePath.split("/");d.length===2&&i.add(d[1])}),f.every(s=>i.has(s))},checkRequiredProfilerFiles:o=>{const f=["profile_log_device.csv","tracy_profile_log_host.tracy"],i="ops_perf_results",s=new Set;Array.from(o).forEach(h=>{const y=h.webkitRelativePath.split("/");y.length===2&&s.add(y[1])});const d=f.every(h=>s.has(h)),u=Array.from(s).some(h=>h.startsWith(i));return d&&u},uploadLocalFolder:async o=>{const f=vU(),i=new FormData;return Array.from(o).forEach(s=>{i.append("files",s)}),Qf.post("api/local/upload/report",i,{headers:{"Content-Type":"multipart/form-data"},onUploadProgress:s=>{if(s&&s.total!==null&&s.total!==void 0){const d=Math.round(s.loaded*100/s.total);f.set(N2,{percentOfCurrent:d,currentFileName:"",finishedFiles:0,numberOfFiles:o.length,status:H0.UPLOADING})}}}).catch(s=>s).finally(()=>{f.set(N2,{percentOfCurrent:0,currentFileName:"",finishedFiles:0,numberOfFiles:o.length,status:H0.INACTIVE})})},uploadLocalPerformanceFolder:async o=>{const f=new FormData,i=vU();return Array.from(o).forEach(s=>{f.append("files",s)}),Qf.post("api/local/upload/profile",f,{headers:{"Content-Type":"multipart/form-data"},onUploadProgress:s=>{if(s&&s.total!==null&&s.total!==void 0){const d=Math.round(s.loaded*100/s.total);i.set(N2,{percentOfCurrent:d,currentFileName:"",finishedFiles:0,numberOfFiles:o.length,status:H0.UPLOADING})}}}).catch(s=>s).finally(()=>{i.set(N2,{percentOfCurrent:0,currentFileName:"",finishedFiles:0,numberOfFiles:o.length,status:H0.INACTIVE})})},filterReportFiles:r}};var Rs=(t=>(t[t.IDLE=0]="IDLE",t[t.PROGRESS=1]="PROGRESS",t[t.FAILED=2]="FAILED",t[t.OK=3]="OK",t))(Rs||{});function Uve({isOpen:t,onClose:r,children:e,hideCloseButton:n=!1,canEscapeKeyClose:a=!0,canOutsideClickClose:l=!0}){return tt.jsx(eA,{isOpen:t,onClose:r,className:She,canEscapeKeyClose:a,canOutsideClickClose:l,children:tt.jsxs("div",{className:Di("overlay-contents",MT,yhe,EEe),children:[e,!n&&tt.jsx("div",{className:Che,children:tt.jsx(qa,{intent:Po.DANGER,onClick:r,children:"Close"})})]})})}function U6({progress:t,estimated:r}){return tt.jsxs("div",{className:"progress-bar",children:[tt.jsx(Rde,{value:t}),t&&r?tt.jsxs("span",{className:"status",children:[t>0?`${Math.round(t*100)}%`:"100%"," - ",r>0?`${Math.round(r)}s left`:"0s left"]}):null]})}const MDe=()=>{const t=f=>f.toFixed(2).padStart(5,"0"),[r]=Yu(N2),{currentFileName:e,finishedFiles:n,numberOfFiles:a,percentOfCurrent:l,status:o}=r;return tt.jsxs(Uve,{isOpen:[H0.STARTED,H0.COMPRESSING,H0.DOWNLOADING,H0.UPLOADING].includes(o),hideCloseButton:!0,canEscapeKeyClose:!1,canOutsideClickClose:!1,children:[tt.jsxs("div",{className:"overlay",children:[tt.jsx("h2",{children:"File Transfer Progress"}),e&&tt.jsxs("p",{children:["Current File: ",e]}),a&&tt.jsxs("p",{children:["Files Transferred: ",n,"/",a]}),tt.jsxs("p",{children:["Current File Progress: ",t(l),"%"]}),o&&tt.jsxs("p",{children:["Status: ",o.valueOf()]})]}),tt.jsx(U6,{progress:l/100})]})},RDe=({message:t,fileName:r})=>tt.jsxs("div",{children:[t,tt.jsx("br",{}),tt.jsx("strong",{children:r})]});function AO(t,r){du(tt.jsx(RDe,{message:t,fileName:r}),{position:"bottom-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"light"})}const HQ={[Rs.IDLE]:Ui.DOT,[Rs.PROGRESS]:Ui.DOT,[Rs.FAILED]:Ui.CROSS,[Rs.OK]:Ui.TICK},jQ={[Rs.IDLE]:Po.NONE,[Rs.PROGRESS]:Po.WARNING,[Rs.FAILED]:Po.DANGER,[Rs.OK]:Po.SUCCESS},VQ={status:Rs.OK,message:"Files uploaded successfully"},PDe={status:Rs.FAILED,message:"Selected directory does not contain a valid report"},LDe={status:Rs.FAILED,message:"Selected directory is not a valid profiler run"},GQ={status:Rs.FAILED,message:"Selected directory does not contain a valid report."},WQ={status:Rs.FAILED,message:"Unable to upload selected directory."},ODe=()=>{const t=jV(),r=U0(OG),e=U0(kG),n=U0(W5),a=U0(Z5),{uploadLocalFolder:l,uploadLocalPerformanceFolder:o,checkRequiredReportFiles:f,checkRequiredProfilerFiles:i,filterReportFiles:s}=EDe(),[d,u]=St.useState(),[h,y]=St.useState(!1),[b,C]=St.useState(!1),[m,c]=St.useState("Choose directory..."),[v,g]=St.useState(),[p,I]=St.useState("Choose directory..."),A=navigator.userAgent.toLowerCase(),_=A.includes("safari")&&!A.includes("chrome")&&!A.includes("android"),w=async x=>{var F;if(!x.target.files)return;const{files:S}=x.target,T=s(S);if(!f(T)){u(PDe);return}let L=VQ;y(!0),c(`${T.length} files selected.`);const k=await l(T);if(k.status!==200)L=WQ;else if(((F=k==null?void 0:k.data)==null?void 0:F.status)!==Rs.OK)L=GQ;else{const D=ZQ(T);c(`${T.length} files uploaded`),r("local"),e(gO),n(D),AO("Active report",D)}t.clear(),y(!1),u(L)},E=async x=>{var F;if(!x.target.files)return;const{files:S}=x.target,T=s(S);if(!i(T)){g(LDe);return}let L=VQ;C(!0),I(`${T.length} files selected`);const k=await o(T);if(k.status!==200)L=WQ;else if(((F=k==null?void 0:k.data)==null?void 0:F.status)!==Rs.OK)L=GQ;else{const D=ZQ(T);I(`${T.length} files uploaded`),r("local"),a(D),AO("Active performance trace",D)}t.clear(),C(!1),g(L)};return St.useEffect(()=>{h&&u({status:Rs.PROGRESS,message:"Files uploading..."}),b&&g({status:Rs.PROGRESS,message:"Files uploading..."})},[h,b]),tt.jsxs(tt.Fragment,{children:[_&&tt.jsxs(tt.Fragment,{children:[tt.jsxs("h3",{children:[tt.jsx(fl,{icon:Ui.WARNING_SIGN,size:20,intent:Po.WARNING})," ","This functionality is not supported in safari browser"]}),tt.jsx("p",{children:"Please use Chrome or Firefox to upload a local report "})]}),tt.jsxs("div",{children:[tt.jsx(qh,{label:tt.jsx("h3",{children:"Report folder"}),subLabel:"Select a local directory containing a report",children:tt.jsxs("div",{className:"buttons-container",children:[tt.jsxs("label",{className:"bp5-file-input",htmlFor:"local-upload",children:[tt.jsx("input",{id:"local-upload",type:"file",multiple:!0,directory:"",webkitdirectory:"",disabled:_,onChange:w}),tt.jsx("span",{className:"bp5-file-upload-input",children:m})]}),tt.jsx(MDe,{}),d&&!h&&tt.jsxs("div",{className:`verify-connection-item status-${Rs[d.status]}`,children:[tt.jsx(fl,{className:"connection-status-icon",icon:HQ[d.status],size:20,intent:jQ[d.status]}),tt.jsx("span",{className:"connection-status-text",children:d.message})]})]})}),tt.jsx(qh,{label:tt.jsx("h3",{children:"Performance data folder"}),subLabel:"Select a local directory containing performance data (optional)",children:tt.jsxs("div",{className:"buttons-container",children:[tt.jsxs("label",{className:"bp5-file-input",htmlFor:"local-performance-upload",children:[tt.jsx("input",{id:"local-performance-upload",type:"file",multiple:!0,directory:"",webkitdirectory:"",disabled:_,onChange:E}),tt.jsx("span",{className:"bp5-file-upload-input",children:p})]}),v&&!b&&tt.jsxs("div",{className:`verify-connection-item status-${Rs[v.status]}`,children:[tt.jsx(fl,{className:"connection-status-icon",icon:HQ[v.status],size:20,intent:jQ[v.status]}),tt.jsx("span",{className:"connection-status-text",children:v.message})]})]})})]})]})},ZQ=t=>t[0].webkitRelativePath.split("/")[0],LS=t=>{const{lastSynced:r,lastModified:e}=t;return r?e>r:!0},kDe=()=>({getAppConfig:t=>localStorage.getItem(t),setAppConfig:(t,r)=>{localStorage.setItem(t,r)},deleteAppConfig:t=>{localStorage.removeItem(t)}}),Q5=()=>{const{getAppConfig:t,setAppConfig:r,deleteAppConfig:e}=kDe();return{testConnection:async u=>{if(!u.host||!u.port)return[{status:Rs.FAILED,message:"No connection provided"}];const{data:h}=await Qf.post("api/remote/test",u);return h},syncRemoteFolder:async(u,h,y)=>{if(!u||!u.host||!u.port||!u.reportPath)throw new Error("No connection provided");if(!h&&!y)throw new Error("No remote folder provided");return Qf.post("api/remote/sync",{connection:u,folder:h,profile:y})},listReportFolders:async u=>{if(!u||!u.host||!u.port)throw new Error("No connection provided");return(await Qf.post("api/remote/folder",u)).data},listPerformanceFolders:async u=>{if(!u||!u.host||!u.port)throw new Error("No connection provided");return(await Qf.post("api/remote/profiles",{connection:u})).data},mountRemoteFolder:async(u,h,y)=>Qf.post("api/remote/use",{connection:u,folder:h,profile:y}),fetchSqlitePath:async u=>{const{data:h}=await Qf.post("api/remote/sqlite/detect-path",u);return h},persistentState:{get savedConnectionList(){return JSON.parse(t("remoteConnections")??"[]")},set savedConnectionList(u){r("remoteConnections",JSON.stringify(u))},get selectedConnection(){return JSON.parse(t("selectedConnection")??"null")??this.savedConnectionList[0]},set selectedConnection(u){r("selectedConnection",JSON.stringify(u??null))},getSavedReportFolders:u=>JSON.parse(t(`${u==null?void 0:u.name} - reportFolders`)??"[]"),setSavedReportFolders:(u,h)=>{r(`${u==null?void 0:u.name} - reportFolders`,JSON.stringify(h))},deleteSavedReportFolders:u=>{e(`${u==null?void 0:u.name} - reportFolders`)},getSavedPerformanceFolders:u=>JSON.parse(t(`${u==null?void 0:u.name} - performanceFolders`)??"[]"),setSavedPerformanceFolders:(u,h)=>{r(`${u==null?void 0:u.name} - performanceFolders`,JSON.stringify(h))},deleteSavedPerformanceFolders:u=>{e(`${u==null?void 0:u.name} - performanceFolders`)},updateSavedRemoteFoldersConnection(u,h){const y=this.getSavedReportFolders(u),b=this.getSavedPerformanceFolders(u);this.deleteSavedReportFolders(u),this.deleteSavedPerformanceFolders(u),this.setSavedReportFolders(h,y),this.setSavedPerformanceFolders(h,b)}},readRemoteFile:async u=>{try{return(await Qf.post("api/remote/read",u)).data}catch(h){return bc.isAxiosError(h)?h.message:h}}}},DDe={[Rs.IDLE]:Ui.DOT,[Rs.PROGRESS]:Ui.DOT,[Rs.FAILED]:Ui.CROSS,[Rs.OK]:Ui.TICK},NDe={[Rs.IDLE]:Po.NONE,[Rs.PROGRESS]:Po.WARNING,[Rs.FAILED]:Po.DANGER,[Rs.OK]:Po.SUCCESS};function OS({status:t,message:r}){return tt.jsxs("div",{className:`verify-connection-item status-${Rs[t].toLowerCase()}`,children:[tt.jsx(fl,{className:"connection-status-icon",icon:DDe[t],size:20,intent:NDe[t]}),tt.jsx("span",{className:"connection-status-text",children:r})]})}const Hve=({open:t,onClose:r,onAddConnection:e,title:n="Add new remote connection",buttonLabel:a="Add connection",remoteConnection:l})=>{var A;const o=l??{name:"",host:"",port:22,reportPath:"",username:""},f=[{status:Rs.IDLE,message:"Test connection"},{status:Rs.IDLE,message:"Test report folder path"}],[i,s]=St.useState(o),[d,u]=St.useState(f),{testConnection:h,fetchSqlitePath:y}=Q5(),[b,C]=St.useState(!1),[m,c]=St.useState(!1),v=d.every(_=>_.status===Rs.OK),g=async()=>{c(!0);const _=await y(i);_.status===Rs.OK&&s({...i,sqliteBinaryPath:_.message}),_.status===Rs.FAILED&&s({...i,sqliteBinaryPath:"Path Not Found"}),c(!1)},p=async()=>{C(!0);const _={status:Rs.PROGRESS,message:"Testing connection"},w={status:Rs.PROGRESS,message:"Testing report folder path"},E={status:Rs.PROGRESS,message:"Testing performance folder path"};u([_,w,E]);try{const x=await h(i);u(x)}catch{u([{status:Rs.FAILED,message:"Connection failed"},{status:Rs.FAILED,message:"Report folder path failed"}])}finally{C(!1)}},I=()=>{s(o),u(f),r()};return tt.jsxs(ode,{className:"remote-connection-dialog",title:n,icon:"info-sign",canOutsideClickClose:!1,isOpen:t,onClose:I,children:[tt.jsxs(TG,{children:[tt.jsx(qh,{label:"Name",subLabel:"Connection name",children:tt.jsx(xh,{className:"bp5-light",value:i.name,onChange:_=>s({...i,name:_.target.value})},"name")}),tt.jsx(qh,{label:"SSH Host",subLabel:"SSH host name. E.g.: localhost",children:tt.jsx(xh,{value:i.host,onChange:_=>s({...i,host:_.target.value})},"host")}),tt.jsx(qh,{label:"Username",subLabel:"Username to connect with",children:tt.jsx(xh,{value:i.username??"",onChange:_=>{s({...i,username:_.target.value})}},"username")}),tt.jsx(qh,{label:"SSH Port",subLabel:"Port to use for the SSH connection. E.g.: port 22",children:tt.jsx(xh,{value:((A=i.port)==null?void 0:A.toString())??"",onChange:_=>{const w=Number.parseInt(_.target.value,10);_.target.value===""?s({...i,port:void 0}):w>0&&w<99999&&s({...i,port:w})}},"port")}),tt.jsx(qh,{label:"Report folder path",subLabel:'Path to the remote folder with the report e.g. "$HOME/work/ll-sw"',children:tt.jsx(xh,{value:i.reportPath,onChange:_=>s({...i,reportPath:_.target.value})},"path")}),tt.jsx(qh,{label:"Performance folder path (optional)",subLabel:'Path to the remote folder with the performance data e.g. "$HOME/perf/env-123"',children:tt.jsx(xh,{value:i.performancePath,onChange:_=>s({...i,performancePath:_.target.value})},"path")}),i.useRemoteQuerying&&tt.jsxs("fieldset",{className:"remote-querying-fieldset",children:[tt.jsx("legend",{children:"Remote Querying Configuration"}),tt.jsx(qh,{label:"Remote SQLite Binary Location",subLabel:"SQLite Binary Location",children:tt.jsx(xh,{value:i.sqliteBinaryPath,onChange:_=>s({...i,sqliteBinaryPath:_.target.value})},"sqliteBinaryPath")}),tt.jsx(J0,{className:"remote-sql-test-buttons",children:tt.jsx(qa,{text:"Detect Path",disabled:m,loading:m,onClick:g})})]}),tt.jsxs("fieldset",{children:[tt.jsx("legend",{children:"Test Connection"}),d.map((_,w)=>tt.jsx(OS,{status:_.status,message:_.message},`${_.message}-${w}`)),tt.jsx("br",{}),tt.jsx(qa,{text:"Test Connection",disabled:b||m,loading:b,onClick:p})]})]}),tt.jsx(wde,{minimal:!0,actions:tt.jsx(qa,{text:a,disabled:!v,onClick:()=>{v&&(e(i),I())}})})]})},FDe=({disabled:t,onAddConnection:r})=>{const[e,n]=St.useState(!1);return tt.jsxs("div",{className:"buttons-container",children:[tt.jsx(qa,{icon:Ui.PLUS,text:"Add new connection",disabled:t,onClick:()=>n(!0)}),tt.jsx(Hve,{open:e,onAddConnection:a=>{r(a),n(!1)},onClose:()=>n(!1)})]})};var jve=Dhe(),J5="".concat(jve,"-multi-select"),zDe="".concat(J5,"-popover"),BDe="".concat(J5,"-popover-default-width"),$De="".concat(J5,"-popover-tag-input-margin"),YQ="".concat(J5,"-tag-input-input"),UDe="".concat(jve,"-select-popover");function HDe(t,r,e){if(t.query.length===0&&e!==void 0)return e;var n=t.filteredItems.map(t.renderItem).filter(function(a){return a!=null});return n.length>0?n:r}function ZR(t,r,e){return t===void 0||r==null||e==null?r===e:nd(t)?t(r,e):r[t]===e[t]}function XQ(){return{__blueprintCreateNewItemBrand:"blueprint-create-new-item"}}function g2(t){if(t==null)return!1;var r=Object.keys(t);return r.length!==1||r[0]!=="__blueprintCreateNewItemBrand"?!1:t.__blueprintCreateNewItemBrand==="blueprint-create-new-item"}function YR(t){return t==null||g2(t)?null:t}var Vve=function(t){xs(r,t);function r(e){var n,a,l=t.call(this,e)||this;l.itemRefs=new Map,l.refHandlers={itemsParent:function(d){return l.itemsParentRef=d}},l.shouldCheckActiveItemInViewport=!1,l.expectedNextActiveItem=null,l.isEnterKeyPressed=!1,l.renderItemList=function(d){var u=l.props,h=u.initialContent,y=u.noResults,b=d.renderCreateItem(),C=b!=null?null:y,m=HDe(d,C,h);if(m==null&&b==null)return null;var c=l.isCreateItemFirst();return St.createElement(vG,qn({role:"listbox"},d.menuProps,{ulRef:d.itemsParentRef}),c&&b,m,!c&&b)},l.renderItem=function(d,u){if(l.props.disabled!==!0){var h=l.state,y=h.activeItem,b=h.query,C=h.filteredItems,m={active:ZR(l.props.itemsEqual,YR(y),d),disabled:TU(d,u,l.props.itemDisabled),matchesPredicate:C.indexOf(d)>=0};return l.props.itemRenderer(d,{handleClick:function(c){return l.handleItemSelect(d,c)},handleFocus:function(){return l.setActiveItem(d)},index:u,modifiers:m,query:b,ref:function(c){c?l.itemRefs.set(u,c):l.itemRefs.delete(u)}})}return null},l.renderCreateItemMenuItem=function(){if(l.isCreateItemRendered(l.state.createNewItem)){var d=l.state,u=d.activeItem,h=d.query,y=h.trim(),b=function(m){l.handleItemCreate(y,m)},C=g2(u);return l.props.createNewItemRenderer(y,C,b)}return null},l.handleItemCreate=function(d,u){var h,y,b,C,m=(y=(h=l.props).createNewItemFromQuery)===null||y===void 0?void 0:y.call(h,d);if(m!=null){for(var c=Array.isArray(m)?m:[m],v=0,g=c;v<g.length;v++){var p=g[v];(C=(b=l.props).onItemSelect)===null||C===void 0||C.call(b,p,u)}l.maybeResetQuery()}},l.handleItemSelect=function(d,u){var h,y;l.setActiveItem(d),(y=(h=l.props).onItemSelect)===null||y===void 0||y.call(h,d,u),l.maybeResetQuery()},l.handlePaste=function(d){for(var u=l.props,h=u.createNewItemFromQuery,y=u.onItemsPaste,b,C=[],m=[],c=0,v=d;c<v.length;c++){var g=v[c],p=jDe(g,l.props);if(p!==void 0)b=p,m.push(p);else if(l.canCreateItems()){var I=h==null?void 0:h(g);if(I!==void 0){var A=Array.isArray(I)?I:[I];m.push.apply(m,A)}}else C.push(g)}l.setQuery(C.join(", "),!1),b!==void 0&&l.setActiveItem(b),y==null||y(m)},l.handleKeyDown=function(d){var u,h;if(!d.nativeEvent.isComposing){var y=d.key,b=$k(d,["ArrowUp"],["ArrowDown"]);if(b!==void 0){d.preventDefault();var C=l.getNextActiveItem(b);C!=null&&l.setActiveItem(C)}else y==="Enter"&&(l.isEnterKeyPressed=!0)}(h=(u=l.props).onKeyDown)===null||h===void 0||h.call(u,d)},l.handleKeyUp=function(d){var u=l.props.onKeyUp,h=l.state.activeItem;d.key==="Enter"&&l.isEnterKeyPressed&&(d.preventDefault(),h==null||g2(h)?l.handleItemCreate(l.state.query,d):l.handleItemSelect(h,d),l.isEnterKeyPressed=!1),u==null||u(d)},l.handleInputQueryChange=function(d){var u,h,y=d==null?"":d.target.value;l.setQuery(y),(h=(u=l.props).onQueryChange)===null||h===void 0||h.call(u,y,d)};var o=e.query,f=o===void 0?"":o,i=(n=e.createNewItemFromQuery)===null||n===void 0?void 0:n.call(e,f),s=QQ(f,e);return l.state={activeItem:e.activeItem!==void 0?e.activeItem:(a=e.initialActiveItem)!==null&&a!==void 0?a:rF(s,e.itemDisabled),createNewItem:i,filteredItems:s,query:f},l}return r.ofType=function(){return r},r.prototype.render=function(){var e=this.props,n=e.className,a=e.items,l=e.renderer,o=e.itemListRenderer,f=o===void 0?this.renderItemList:o,i=e.menuProps,s=this.state;s.createNewItem;var d=Ps(s,["createNewItem"]);return l(qn(qn({},d),{className:n,handleItemSelect:this.handleItemSelect,handleKeyDown:this.handleKeyDown,handleKeyUp:this.handleKeyUp,handlePaste:this.handlePaste,handleQueryChange:this.handleInputQueryChange,itemList:f(qn(qn({},d),{items:a,itemsParentRef:this.refHandlers.itemsParent,menuProps:i,renderCreateItem:this.renderCreateItemMenuItem,renderItem:this.renderItem}))}))},r.prototype.componentDidUpdate=function(e){var n=this;this.props.activeItem!==void 0&&this.props.activeItem!==this.state.activeItem&&(this.shouldCheckActiveItemInViewport=!0,this.setState({activeItem:this.props.activeItem})),this.props.query!=null&&this.props.query!==e.query?this.setQuery(this.props.query,this.props.resetOnQuery,this.props):bv(this.props,e,{include:["items","itemListPredicate","itemPredicate"]})||this.setQuery(this.state.query),this.shouldCheckActiveItemInViewport&&(this.requestAnimationFrame(function(){return n.scrollActiveItemIntoView()}),this.shouldCheckActiveItemInViewport=!1)},r.prototype.scrollActiveItemIntoView=function(){var e=this.props.scrollToActiveItem!==!1,n=!ZR(this.props.itemsEqual,YR(this.expectedNextActiveItem),YR(this.props.activeItem));if(this.expectedNextActiveItem=null,!(!e&&n)){var a=this.getActiveElement();if(this.itemsParentRef!=null&&a!=null){var l=a.offsetTop,o=a.offsetHeight,f=this.itemsParentRef,i=f.offsetTop,s=f.scrollTop,d=f.clientHeight,u=this.getItemsParentPadding(),h=u.paddingTop,y=u.paddingBottom,b=l+o+y-i,C=l-h-i;b>=s+d?this.itemsParentRef.scrollTop=b+o-d:C<=s&&(this.itemsParentRef.scrollTop=C-o)}}},r.prototype.setQuery=function(e,n,a){var l;n===void 0&&(n=this.props.resetOnQuery),a===void 0&&(a=this.props);var o=a.createNewItemFromQuery;this.shouldCheckActiveItemInViewport=!0;var f=e!==this.state.query;f&&((l=a.onQueryChange)===null||l===void 0||l.call(a,e));var i=e.trim(),s=QQ(i,a),d=o!=null&&i!==""?o(i):void 0;this.setState({createNewItem:d,filteredItems:s,query:e});var u=this.getActiveIndex(s),h=n||u<0||TU(YR(this.state.activeItem),u,a.itemDisabled);h&&(this.isCreateItemRendered(d)&&this.isCreateItemFirst()?this.setActiveItem(XQ()):this.setActiveItem(rF(s,a.itemDisabled)))},r.prototype.setActiveItem=function(e){var n,a,l,o;this.expectedNextActiveItem=e,this.props.activeItem===void 0&&(this.shouldCheckActiveItemInViewport=!0,this.setState({activeItem:e})),g2(e)?(a=(n=this.props).onActiveItemChange)===null||a===void 0||a.call(n,null,!0):(o=(l=this.props).onActiveItemChange)===null||o===void 0||o.call(l,e,!1)},r.prototype.getActiveElement=function(){var e,n=this.state.activeItem;if(this.itemsParentRef!=null)if(g2(n)){var a=this.isCreateItemFirst()?0:this.state.filteredItems.length;return this.itemsParentRef.children.item(a)}else{var l=this.getActiveIndex();return(e=this.itemRefs.get(l))!==null&&e!==void 0?e:this.itemsParentRef.children.item(l)}},r.prototype.getActiveIndex=function(e){e===void 0&&(e=this.state.filteredItems);var n=this.state.activeItem;if(n==null||g2(n))return-1;for(var a=0;a<e.length;++a)if(ZR(this.props.itemsEqual,e[a],n))return a;return-1},r.prototype.getItemsParentPadding=function(){var e=getComputedStyle(this.itemsParentRef),n=e.paddingTop,a=e.paddingBottom;return{paddingBottom:KQ(a),paddingTop:KQ(n)}},r.prototype.getNextActiveItem=function(e,n){if(n===void 0&&(n=this.getActiveIndex()),this.isCreateItemRendered(this.state.createNewItem)){var a=n===0&&e===-1||n===this.state.filteredItems.length-1&&e===1;if(a)return XQ()}return rF(this.state.filteredItems,this.props.itemDisabled,e,n)},r.prototype.isCreateItemRendered=function(e){return this.canCreateItems()&&this.state.query!==""&&!this.wouldCreatedItemMatchSomeExistingItem(e)},r.prototype.isCreateItemFirst=function(){return this.props.createNewItemPosition==="first"},r.prototype.canCreateItems=function(){return this.props.createNewItemFromQuery!=null&&this.props.createNewItemRenderer!=null},r.prototype.wouldCreatedItemMatchSomeExistingItem=function(e){var n=this;return this.state.filteredItems.some(function(a){var l=Array.isArray(e)?e:[e];return l.some(function(o){return ZR(n.props.itemsEqual,a,o)})})},r.prototype.maybeResetQuery=function(){this.props.resetOnSelect&&this.setQuery("",!0)},r.displayName="".concat(Wo,".QueryList"),r.defaultProps={disabled:!1,resetOnQuery:!0},r}(I3);function KQ(t){return t==null?0:parseInt(t.slice(0,-2),10)}function jDe(t,r){var e=r.items,n=r.itemPredicate;if(nd(n))for(var a=0;a<e.length;a++){var l=e[a];if(n(t,l,a,!0))return l}}function QQ(t,r){var e=r.items,n=r.itemPredicate,a=r.itemListPredicate;return nd(a)?a(t,e):nd(n)?e.filter(function(l,o){return n(t,l,o)}):e}function VDe(t,r,e){return t<r?e:t>e?r:t}function TU(t,r,e){return e==null||t==null?!1:nd(e)?e(t,r):!!t[e]}function rF(t,r,e,n){if(e===void 0&&(e=1),n===void 0&&(n=t.length-1),t.length===0)return null;var a=n,l=t.length-1;do if(a=VDe(a+e,0,l),!TU(t[a],a,r))return t[a];while(a!==n&&n!==-1);return null}var GDe=function(t){xs(r,t);function r(){var e,n=t.apply(this,arguments)||this;return n.listboxId=XV("listbox"),n.state={isOpen:n.props.popoverProps&&n.props.popoverProps.isOpen||!1},n.input=null,n.queryList=null,n.refHandlers={input:Ix(n,"input",(e=n.props.tagInputProps)===null||e===void 0?void 0:e.inputRef),popover:St.createRef(),queryList:function(a){return n.queryList=a}},n.renderQueryList=function(a){var l,o=n.props,f=o.disabled,i=o.popoverContentProps,s=i===void 0?{}:i,d=o.popoverProps,u=d===void 0?{}:d,h=a.handleKeyDown,y=a.handleKeyUp;return St.createElement(Gx,qn({autoFocus:!1,canEscapeKeyClose:!0,disabled:f,enforceFocus:!1,isOpen:n.state.isOpen,placement:u.position||u.placement?void 0:"bottom-start"},u,{className:Di(a.className,u.className),content:St.createElement("div",qn({className:n.props.customTarget!=null&&!(!((l=n.props.popoverProps)===null||l===void 0)&&l.matchTargetWidth)?BDe:void 0},s,{onKeyDown:h,onKeyUp:y}),n.props.customTarget!=null&&n.getTagInput(a,Di(nm,$De)),a.itemList),interactionKind:"click",onInteraction:n.handlePopoverInteraction,onOpened:n.handlePopoverOpened,popoverClassName:Di(zDe,u.popoverClassName),popupKind:dO.LISTBOX,ref:q1(n.refHandlers.popover,n.props.popoverRef),renderTarget:n.getPopoverTargetRenderer(a,n.state.isOpen)}))},n.getPopoverTargetRenderer=function(a,l){return function(o){var f;o.isOpen;var i=o.ref,s=Ps(o,["isOpen","ref"]),d=n.props,u=d.disabled,h=d.fill,y=d.selectedItems,b=d.popoverProps,C=b===void 0?{}:b,m=d.popoverTargetProps,c=m===void 0?{}:m,v=a.handleKeyDown,g=a.handleKeyUp,p=C.targetTagName,I=p===void 0?"div":p;return St.createElement(I,qn(qn(qn({"aria-autocomplete":"list","aria-controls":n.listboxId},c),s),{"aria-disabled":u,"aria-expanded":l,className:Di(s.className,c.className,(f={},f[nm]=h,f)),onKeyDown:n.getTagInputKeyDownHandler(v),onKeyUp:n.getTagInputKeyUpHandler(g),ref:i,role:"combobox"}),n.props.customTarget!=null?n.props.customTarget(y,l):n.getTagInput(a))}},n.getTagInput=function(a,l){var o,f=n.props,i=f.disabled,s=f.fill,d=f.onClear,u=f.placeholder,h=f.selectedItems,y=f.tagInputProps,b=y===void 0?{}:y,C=d!==void 0&&h.length>0?St.createElement(qa,{"aria-label":"Clear selected items",disabled:i,icon:St.createElement(Uk,null),onClick:n.handleClearButtonClick,title:"Clear selected items",variant:"minimal"}):void 0,m=qn(qn({},b.inputProps),{className:Di((o=b.inputProps)===null||o===void 0?void 0:o.className,YQ)});return St.createElement(E6e,qn({placeholder:u,rightElement:C},b,{className:Di(l,J5,b.className),disabled:i,fill:s,inputRef:n.refHandlers.input,inputProps:m,inputValue:a.query,onAdd:n.getTagInputAddHandler(a),onInputChange:a.handleQueryChange,onRemove:n.handleTagRemove,values:h.map(n.props.tagRenderer)}))},n.handleItemSelect=function(a,l){var o,f,i;n.input!=null&&n.input.focus(),(f=(o=n.props).onItemSelect)===null||f===void 0||f.call(o,a,l),(i=n.refHandlers.popover.current)===null||i===void 0||i.reposition()},n.handleQueryChange=function(a,l){var o,f;n.setState({isOpen:a.length>0||n.props.customTarget==null&&!n.props.openOnKeyDown}),(f=(o=n.props).onQueryChange)===null||f===void 0||f.call(o,a,l)},n.handlePopoverInteraction=function(a,l){var o,f;if(n.props.customTarget!=null){n.setState({isOpen:a}),(f=(o=n.props.popoverProps)===null||o===void 0?void 0:o.onInteraction)===null||f===void 0||f.call(o,a,l);return}n.requestAnimationFrame(function(){var i,s,d=n.input===LT(n.input);n.input!=null&&!d?n.setState({isOpen:!1}):n.props.openOnKeyDown||n.setState({isOpen:!0}),(s=(i=n.props.popoverProps)===null||i===void 0?void 0:i.onInteraction)===null||s===void 0||s.call(i,a,l)})},n.handlePopoverOpened=function(a){var l,o,f,i;n.queryList!=null&&n.queryList.scrollActiveItemIntoView();var s=n.props.customTarget!=null;if(s&&n.input!=null){var d=((o=(l=n.props.tagInputProps)===null||l===void 0?void 0:l.inputProps)===null||o===void 0?void 0:o.autoFocus)!==!1;d&&n.input.focus()}(i=(f=n.props.popoverProps)===null||f===void 0?void 0:f.onOpened)===null||i===void 0||i.call(f,a)},n.handleTagRemove=function(a,l){var o,f,i=n.props,s=i.selectedItems,d=i.onRemove,u=i.tagInputProps;d==null||d(s[l],l),(o=u==null?void 0:u.onRemove)===null||o===void 0||o.call(u,a,l),(f=n.refHandlers.popover.current)===null||f===void 0||f.reposition()},n.getTagInputAddHandler=function(a){return function(l,o){o==="paste"&&a.handlePaste(l)}},n.getTagInputKeyDownHandler=function(a){return function(l){var o,f,i;l.key==="Escape"||l.key==="Tab"?(l.key==="Escape"&&((o=n.input)===null||o===void 0||o.blur()),n.setState({isOpen:!1})):l.key==="Backspace"||l.key==="ArrowLeft"||l.key==="ArrowRight"||(n.props.customTarget!=null?l.key===" "?(l.preventDefault(),n.setState({isOpen:!0})):l.key==="Enter"&&n.setState({isOpen:!0}):n.setState({isOpen:!0}));var s=l.target.closest(".".concat(khe))!=null;n.state.isOpen&&!s&&(a==null||a(l)),(i=(f=n.props.popoverTargetProps)===null||f===void 0?void 0:f.onKeyDown)===null||i===void 0||i.call(f,l)}},n.getTagInputKeyUpHandler=function(a){return function(l){var o,f,i=l.target.classList.contains(YQ);n.state.isOpen&&i&&(a==null||a(l)),(f=(o=n.props.popoverTargetProps)===null||o===void 0?void 0:o.onKeyDown)===null||f===void 0||f.call(o,l)}},n.handleClearButtonClick=function(){var a,l,o;(l=(a=n.props).onClear)===null||l===void 0||l.call(a),(o=n.refHandlers.popover.current)===null||o===void 0||o.reposition()},n}return r.ofType=function(){return r},r.prototype.componentDidUpdate=function(e){var n,a,l,o,f;((n=e.tagInputProps)===null||n===void 0?void 0:n.inputRef)!==((a=this.props.tagInputProps)===null||a===void 0?void 0:a.inputRef)&&(Kp((l=e.tagInputProps)===null||l===void 0?void 0:l.inputRef,null),this.refHandlers.input=Ix(this,"input",(o=this.props.tagInputProps)===null||o===void 0?void 0:o.inputRef),Kp((f=this.props.tagInputProps)===null||f===void 0?void 0:f.inputRef,this.input)),(e.onClear===void 0&&this.props.onClear!==void 0||e.onClear!==void 0&&this.props.onClear===void 0)&&this.forceUpdate()},r.prototype.render=function(){var e=this.props,n=e.menuProps;e.openOnKeyDown,e.popoverProps,e.tagInputProps,e.customTarget;var a=Ps(e,["menuProps","openOnKeyDown","popoverProps","tagInputProps","customTarget"]);return St.createElement(Vve,qn({},a,{menuProps:qn(qn({"aria-label":"selectable options"},n),{"aria-multiselectable":!0,id:this.listboxId}),onItemSelect:this.handleItemSelect,onQueryChange:this.handleQueryChange,ref:this.refHandlers.queryList,renderer:this.renderQueryList}))},r.displayName="".concat(Wo,".MultiSelect"),r.defaultProps={disabled:!1,fill:!1,placeholder:"Search..."},r}(xc),Gve=function(t){xs(r,t);function r(){var e,n=t.apply(this,arguments)||this;return n.state={isOpen:!1},n.inputElement=null,n.queryList=null,n.handleInputRef=Ix(n,"inputElement",(e=n.props.inputProps)===null||e===void 0?void 0:e.inputRef),n.handleQueryListRef=function(a){return n.queryList=a},n.listboxId=XV("listbox"),n.renderQueryList=function(a){var l=n.props,o=l.filterable,f=o===void 0?!0:o,i=l.disabled,s=i===void 0?!1:i,d=l.inputProps,u=d===void 0?{}:d,h=l.placeholder,y=h===void 0?"Filter...":h,b=l.popoverContentProps,C=b===void 0?{}:b,m=l.popoverProps,c=m===void 0?{}:m,v=l.popoverRef,g=St.createElement(xh,qn({"aria-autocomplete":"list",leftIcon:St.createElement(lG,null),placeholder:y,rightElement:n.maybeRenderClearButton(a.query)},u,{inputRef:n.handleInputRef,onChange:a.handleQueryChange,value:a.query})),p=a.handleKeyDown,I=a.handleKeyUp;return St.createElement(Gx,qn({autoFocus:!1,enforceFocus:!1,isOpen:n.state.isOpen,disabled:s,placement:c.position||c.placement?void 0:"bottom-start"},c,{className:Di(a.className,c.className),content:St.createElement("div",qn({},C,{onKeyDown:p,onKeyUp:I}),f?g:void 0,a.itemList),onClosing:n.handlePopoverClosing,onInteraction:n.handlePopoverInteraction,onOpened:n.handlePopoverOpened,onOpening:n.handlePopoverOpening,popoverClassName:Di(UDe,c.popoverClassName),popupKind:dO.LISTBOX,ref:v,renderTarget:n.getPopoverTargetRenderer(a,n.state.isOpen)}))},n.getPopoverTargetRenderer=function(a,l){return function(o){var f;o.isOpen;var i=o.ref,s=Ps(o,["isOpen","ref"]),d=n.props,u=d.disabled,h=d.popoverProps,y=h===void 0?{}:h,b=d.popoverTargetProps,C=a.handleKeyDown,m=a.handleKeyUp,c=y.targetTagName,v=c===void 0?"div":c;return St.createElement(v,qn(qn(qn({"aria-controls":n.listboxId},b),s),{"aria-disabled":u,"aria-expanded":l,className:Di(s.className,b==null?void 0:b.className,(f={},f[nm]=n.props.fill,f)),onKeyDown:n.withPopoverTargetPropsHandler("keydown",l?C:n.handleTargetKeyDown),onKeyUp:n.withPopoverTargetPropsHandler("keyup",l?m:void 0),ref:i,role:"combobox"}),n.props.children)}},n.withPopoverTargetPropsHandler=function(a,l){switch(a){case"keydown":return function(o){var f,i;l==null||l(o),(i=(f=n.props.popoverTargetProps)===null||f===void 0?void 0:f.onKeyDown)===null||i===void 0||i.call(f,o)};case"keyup":return function(o){var f,i;l==null||l(o),(i=(f=n.props.popoverTargetProps)===null||f===void 0?void 0:f.onKeyUp)===null||i===void 0||i.call(f,o)}}},n.handleTargetKeyDown=function(a){a.key==="ArrowUp"||a.key==="ArrowDown"?(a.preventDefault(),n.setState({isOpen:!0})):OT(a)&&n.setState({isOpen:!0})},n.handleItemSelect=function(a,l){var o,f,i=l==null?void 0:l.target,s=i==null?void 0:i.closest(".".concat(A3)),d=s==null?void 0:s.matches(".".concat(ZE)),u=d??!0;n.setState({isOpen:!u}),(f=(o=n.props).onItemSelect)===null||f===void 0||f.call(o,a,l)},n.handlePopoverInteraction=function(a,l){var o,f;n.setState({isOpen:a}),(f=(o=n.props.popoverProps)===null||o===void 0?void 0:o.onInteraction)===null||f===void 0||f.call(o,a,l)},n.handlePopoverOpening=function(a){var l,o,f;n.previousFocusedElement=(l=LT(n.inputElement))!==null&&l!==void 0?l:void 0,n.props.resetOnClose&&n.resetQuery(),(f=(o=n.props.popoverProps)===null||o===void 0?void 0:o.onOpening)===null||f===void 0||f.call(o,a)},n.handlePopoverOpened=function(a){var l,o;n.queryList!=null&&n.queryList.scrollActiveItemIntoView(),n.requestAnimationFrame(function(){var f,i=n.props.inputProps,s=i===void 0?{}:i;s.autoFocus!==!1&&((f=n.inputElement)===null||f===void 0||f.focus())}),(o=(l=n.props.popoverProps)===null||l===void 0?void 0:l.onOpened)===null||o===void 0||o.call(l,a)},n.handlePopoverClosing=function(a){var l,o;n.requestAnimationFrame(function(){n.previousFocusedElement!==void 0&&(n.previousFocusedElement.focus(),n.previousFocusedElement=void 0)}),(o=(l=n.props.popoverProps)===null||l===void 0?void 0:l.onClosing)===null||o===void 0||o.call(l,a)},n.resetQuery=function(){return n.queryList&&n.queryList.setQuery("",!0)},n}return r.ofType=function(){return r},r.prototype.render=function(){var e=this.props;e.filterable,e.inputProps;var n=e.menuProps;e.popoverProps;var a=Ps(e,["filterable","inputProps","menuProps","popoverProps"]);return St.createElement(Vve,qn({},a,{menuProps:qn(qn({"aria-label":"selectable options"},n),{id:this.listboxId}),onItemSelect:this.handleItemSelect,ref:this.handleQueryListRef,renderer:this.renderQueryList}))},r.prototype.componentDidUpdate=function(e,n){var a,l,o,f,i;((a=e.inputProps)===null||a===void 0?void 0:a.inputRef)!==((l=this.props.inputProps)===null||l===void 0?void 0:l.inputRef)&&(Kp((o=e.inputProps)===null||o===void 0?void 0:o.inputRef,null),this.handleInputRef=Ix(this,"inputElement",(f=this.props.inputProps)===null||f===void 0?void 0:f.inputRef),Kp((i=this.props.inputProps)===null||i===void 0?void 0:i.inputRef,this.inputElement)),this.state.isOpen&&!n.isOpen&&this.queryList!=null&&this.queryList.scrollActiveItemIntoView()},r.prototype.maybeRenderClearButton=function(e){return e.length>0?St.createElement(qa,{"aria-label":"Clear filter query",icon:St.createElement(Uk,null),onClick:this.resetQuery,title:"Clear filter query",variant:"minimal"}):void 0},r.displayName="".concat(Wo,".Select"),r}(xc);const WDe=({connectionList:t,connection:r,disabled:e,loading:n,offline:a,onSelectConnection:l,onEditConnection:o,onRemoveConnection:f,onSyncRemoteFolderList:i})=>{const[s,d]=St.useState(!1),u=r??t[0];return tt.jsxs("div",{className:"buttons-container",children:[tt.jsx(Gve,{className:"remote-connection-select",items:t,itemRenderer:(h,y)=>YDe(h,y,u),disabled:e,filterable:!0,itemPredicate:ZDe,noResults:tt.jsx(b3,{disabled:!0,text:"No results",roleStructure:"listoption"}),onItemSelect:l,children:tt.jsx(qa,{icon:a?Ui.BAN_CIRCLE:Ui.CLOUD,endIcon:Ui.CARET_DOWN,disabled:e,text:CO(u)})}),tt.jsx(Es,{content:"Edit selected connection",children:tt.jsx(bx,{icon:Ui.EDIT,disabled:e||!u,onClick:()=>d(!0)})}),tt.jsx(Es,{content:"Remove selected connection",children:tt.jsx(bx,{icon:Ui.TRASH,disabled:e||!u,onClick:()=>f(u)})}),tt.jsx(Hve,{open:s,onAddConnection:h=>{d(!1),o(h,r)},onClose:()=>{d(!1)},title:"Edit remote connection",buttonLabel:"Save connection",remoteConnection:u},`${u==null?void 0:u.name}${u==null?void 0:u.host}${u==null?void 0:u.port}${u==null?void 0:u.reportPath}`),tt.jsx(qa,{icon:Ui.LOCATE,disabled:e||!u,loading:n,text:"Fetch remote folders list",onClick:()=>i(u)})]})},CO=t=>{var r;return t?`${t.name} - ssh://${t.host}:${t.port}/${(r=t==null?void 0:t.reportPath)==null?void 0:r.replace(/^\//gi,"")}`:"(No connection)"},ZDe=(t,r)=>CO(r).toLowerCase().includes(t.toLowerCase()),YDe=(t,{handleClick:r,modifiers:e},n)=>e.matchesPredicate?tt.jsx(b3,{active:e5(t,n),disabled:e.disabled,onClick:r,text:CO(t)},CO(t)):null,XDe=new Intl.DateTimeFormat("en-US",{dateStyle:"long",timeStyle:"short"}),JQ=50,IO=(t,r,e)=>{if(!t||!e)return"n/a";const a={report:e.reportPath,performance:e.performancePath}[r];return t.remotePath.toLowerCase().replace(a.toLowerCase(),"")},KDe=t=>t.testName.length>JQ?`${t.testName.slice(0,JQ)}...`:t.testName,QDe=(t,r)=>(e,n)=>IO(n,t,r).toLowerCase().includes(e.toLowerCase()),JDe=(t,r,e,n)=>(a,{handleClick:l,modifiers:o})=>{var b;const{persistentState:f}=Q5(),i=(b=f.selectedConnection)==null?void 0:b.useRemoteQuerying;if(!o.matchesPredicate)return null;const{lastSynced:s,lastModified:d}=a,u=s?XDe.format(new Date(s)):"Never";let h=tt.jsx(Es,{content:`Fetching folder status, last sync: ${u}`,children:tt.jsx(cG,{size:16})});t||(LS(a)?h=tt.jsx(Es,{content:`Folder is stale, last sync: ${u}`,children:tt.jsx(fl,{icon:Ui.HISTORY,color:"goldenrod"})}):h=tt.jsx(Es,{content:`Folder is up to date, last sync: ${u}`,children:tt.jsx(fl,{icon:Ui.UPDATED,color:"green"})}));const y=()=>tt.jsxs(tt.Fragment,{children:[tt.jsx("span",{className:"test-name",children:KDe(a)}),!i&&h]});return tt.jsx(b3,{className:"remote-folder-item",active:e5(e,a),disabled:o.disabled,onClick:l,text:IO(a,r,n),textClassName:"folder-path",icon:Ui.FOLDER_CLOSE,labelElement:y(),labelClassName:"remote-folder-status-icon"},`${IO(a,r,n)}${s??d}`)},qQ=({remoteFolder:t,remoteFolderList:r=[],loading:e=!1,updatingFolderList:n=!1,onSelectFolder:a,children:l,fallbackLabel:o="(No selection)",icon:f=Ui.FOLDER_OPEN,type:i})=>{const{persistentState:s}=Q5(),d=s.selectedConnection;return tt.jsxs("div",{className:"buttons-container",children:[tt.jsx(Gve,{className:"remote-folder-select",items:r??[],itemRenderer:JDe(n,i,t,d),filterable:!0,itemPredicate:QDe(i,d),noResults:tt.jsx(b3,{disabled:!0,text:"No results",roleStructure:"listoption"}),disabled:e||(r==null?void 0:r.length)===0,onItemSelect:a,children:tt.jsx(qa,{icon:f,endIcon:(r==null?void 0:r.length)>0?Ui.CARET_DOWN:void 0,disabled:e||(r==null?void 0:r.length)===0,text:t?IO(t,i,d):o})}),l]})},qDe=()=>{var P,z;const t=Q5(),r=jV(),e=U0(OG),n=U0(kG),[a,l]=Yu(W5),[o,f]=Yu(Z5),[i,s]=St.useState(!1),[d,u]=St.useState(!1),[h,y]=St.useState(t.persistentState.getSavedReportFolders(t.persistentState.selectedConnection)),[b,C]=St.useState(!1),[m,c]=St.useState(a?h.find(M=>M.testName.includes(a)):h[0]),[v,g]=St.useState(t.persistentState.getSavedPerformanceFolders(t.persistentState.selectedConnection)),[p,I]=St.useState(!1),[A,_]=St.useState(o?v.find(M=>M.testName.includes(o)):v[0]),w=M=>{t.persistentState.selectedConnection=M,y(t.persistentState.getSavedReportFolders(M)),g(t.persistentState.getSavedPerformanceFolders(M)),c(t.persistentState.getSavedReportFolders(M)[0]),_(t.persistentState.getSavedPerformanceFolders(M)[0])},E=(M,R)=>{if(!M)return[];const N=t.persistentState.getSavedReportFolders(M),O=(R??[]).map(H=>({...N==null?void 0:N.find(G=>G.remotePath===H.remotePath),...H}));return t.persistentState.setSavedReportFolders(M,O),y(O),O},x=(M,R)=>{if(!M)return[];const N=t.persistentState.getSavedPerformanceFolders(M),O=(R??[]).map(H=>({...N==null?void 0:N.find(G=>G.remotePath===H.remotePath),...H}));return t.persistentState.setSavedPerformanceFolders(M,O),g(O),O},S=M=>t.persistentState.savedConnectionList.findIndex(R=>{const N=R.name===(M==null?void 0:M.name),O=R.host===(M==null?void 0:M.host),H=R.port===(M==null?void 0:M.port);return N&&O&&H}),T=(P=t.persistentState.selectedConnection)==null?void 0:P.useRemoteQuerying,L=b||p,k=d||L,F=M=>{r.clear(),e("remote"),n(gO),l(M),AO("Active report data",M)},D=M=>{r.clear(),e("remote"),n(gO),f(M),AO("Active performance data",M)};return tt.jsxs(tt.Fragment,{children:[tt.jsx(qh,{label:tt.jsx("h3",{children:"Add remote sync server"}),subLabel:"Add new server connection details",children:tt.jsx(FDe,{disabled:k,onAddConnection:M=>{t.persistentState.savedConnectionList=[...t.persistentState.savedConnectionList,M],w(M)}})}),tt.jsx(qh,{label:tt.jsx("h3",{children:"Use remote sync server"}),subLabel:"Select remote server that will be used for syncing folders",children:tt.jsx(WDe,{connection:t.persistentState.selectedConnection,connectionList:t.persistentState.savedConnectionList,disabled:k,loading:d,offline:i,onEditConnection:(M,R)=>{const N=[...t.persistentState.savedConnectionList];N[S(R)]=M,t.persistentState.savedConnectionList=N,t.persistentState.updateSavedRemoteFoldersConnection(R,M),w(M)},onRemoveConnection:M=>{const R=[...t.persistentState.savedConnectionList];R.splice(S(M),1),t.persistentState.savedConnectionList=R,t.persistentState.deleteSavedReportFolders(M),t.persistentState.deleteSavedPerformanceFolders(M),w(R[0]),c(void 0),_(void 0)},onSelectConnection:async M=>{try{u(!0),w(M);const R=await t.listReportFolders(M),N=M.performancePath?await t.listPerformanceFolders(M):[],O=E(M,R),H=x(M,N);s(!1),c(O[0]),_(H[0])}catch{s(!0)}finally{u(!1)}},onSyncRemoteFolderList:async()=>{try{if(u(!0),t.persistentState.selectedConnection){const M=await t.listReportFolders(t.persistentState.selectedConnection),R=t.persistentState.selectedConnection.performancePath?await t.listPerformanceFolders(t.persistentState.selectedConnection):[],N=E(t.persistentState.selectedConnection,M),O=x(t.persistentState.selectedConnection,R);c(N[0]),_(O[0])}}catch{alert("Unable to connect to remote server.")}finally{u(!1)}}})}),tt.jsx(qh,{label:tt.jsx("h3",{children:"Report folder"}),subLabel:"Select the report folder you wish to view",children:tt.jsx(qQ,{remoteFolder:m,remoteFolderList:h,loading:L||d,updatingFolderList:d,onSelectFolder:async M=>{if(c(M),t.persistentState.selectedConnection&&(T||!T&&!LS(M))&&(await t.mountRemoteFolder(t.persistentState.selectedConnection,M,A)).status===200){const N=M.testName;F(N)}},type:"report",children:!T&&tt.jsx(Es,{content:"Sync remote folder",children:tt.jsx(bx,{icon:Ui.REFRESH,loading:b,disabled:k||!m||(h==null?void 0:h.length)===0,onClick:async()=>{try{if(C(!0),t.persistentState.selectedConnection){const{data:M}=await t.syncRemoteFolder(t.persistentState.selectedConnection,m),R=t.persistentState.getSavedReportFolders(t.persistentState.selectedConnection),N=R.findIndex(O=>O.remotePath===(m==null?void 0:m.remotePath));R[N]=M,E(t.persistentState.selectedConnection,R),c(R[N])}}catch{alert("Unable to sync remote folder")}finally{if(C(!1),e("remote"),t.persistentState.selectedConnection&&m&&(!T||T&&LS(m))&&(await t.mountRemoteFolder(t.persistentState.selectedConnection,m,A)).status===200){const R=m.testName,N=A==null?void 0:A.testName;F(R),N&&D(N)}}}})})})}),((z=t.persistentState.selectedConnection)==null?void 0:z.performancePath)&&tt.jsx(qh,{label:tt.jsx("h3",{children:"Performance data folder"}),subLabel:"Select the performance folder you wish to view",children:tt.jsx(qQ,{remoteFolder:A,remoteFolderList:v,loading:L||d,updatingFolderList:d,onSelectFolder:async M=>{if(_(M),t.persistentState.selectedConnection&&(T||!T&&!LS(M))&&(await t.mountRemoteFolder(t.persistentState.selectedConnection,m,M)).status===200){const N=M.testName;D(N)}},type:"performance",children:!T&&tt.jsx(Es,{content:"Sync remote folder",children:tt.jsx(bx,{icon:Ui.REFRESH,loading:p,disabled:k||!A||(v==null?void 0:v.length)===0,onClick:async()=>{try{if(I(!0),t.persistentState.selectedConnection){const{data:M}=await t.syncRemoteFolder(t.persistentState.selectedConnection,void 0,A),R=t.persistentState.getSavedPerformanceFolders(t.persistentState.selectedConnection),N=R.findIndex(O=>O.remotePath===(A==null?void 0:A.remotePath));if(R[N]=M,x(t.persistentState.selectedConnection,R),_(R[N]),t.persistentState.selectedConnection&&A&&(T||!T&&LS(A))&&(await t.mountRemoteFolder(t.persistentState.selectedConnection,m,A)).status===200){const H=A.testName;D(H)}}}catch{alert("Unable to sync remote folder")}finally{I(!1)}}})})})})]})},eJ=["rgb(63,181,143)","rgb(74,217,225)","rgb(247,66,78)","rgb(52,163,188)","rgb(113,168,31)","rgb(95,188,255)","rgb(96,157,255)","rgb(152,218,29)","rgb(187,141,255)","rgb(136,217,141)","rgb(226,177,30)","rgb(255,137,229)","rgb(190,39,130)","rgb(252,194,251)","rgb(209,109,255)","rgb(158,183,229)","rgb(201,151,13)","rgb(250,163,140)","rgb(255,92,111)","rgb(247,147,30)","rgb(227,215,105)","rgb(90,51,137)","rgb(23,244,111)"];function*Wve(){let t=0;for(;;)yield eJ[t],t=(t+1)%eJ.length}const e8e=Wve(),nF=new Map,Zx=t=>t===null?"rgb(255,255,255)":(nF.has(t)||nF.set(t,e8e.next().value),nF.get(t)),t8e=Wve(),iF=new Map,rp=t=>{if(t!==void 0)return iF.has(t)||iF.set(t,t8e.next().value),iF.get(t)},r8e=({tensorId:t,address:r,colour:e})=>tt.jsxs("div",{className:"toast-tensor-message",children:[tt.jsx("div",{className:"memory-color-block",style:e?{backgroundColor:e}:{}}),tt.jsxs("strong",{children:[t?`Tensor ${t}`:"Buffer",tt.jsx("span",{className:"light",children:" at "}),r?rA(r):"NULL",tt.jsx("span",{className:"light",children:" selected"})]})]}),iD=()=>{const[t,r]=Yu(NLe),e=U0(Y5),n=U0(Wx),a=()=>{e(null),n(null),r(null),du.dismiss()};return{activeToast:t,resetToasts:a,setActiveToast:r,createToast:(o,f)=>{t&&du.dismiss(t);let i=rp(f);o&&!i&&(i=Zx(o));const s=du(tt.jsx(r8e,{tensorId:f,address:o,colour:i}),{position:"bottom-right",hideProgressBar:!0,closeOnClick:!0,onClick:a,theme:"light"});r(s)}}};function _3(){const{resetToasts:t}=iD();St.useEffect(()=>{t()},[])}function n8e(){return _3(),tt.jsx("div",{className:"splash-screen home",children:tt.jsxs("div",{className:"folder-picker-options",children:[tt.jsxs("fieldset",{children:[tt.jsx("legend",{children:"Local folder"}),tt.jsx(fl,{icon:Ui.FOLDER_OPEN,size:150}),tt.jsx("div",{className:"folder-picker-wrapper",children:tt.jsx(ODe,{})})]}),tt.jsxs("fieldset",{children:[tt.jsx("legend",{children:"Remote Sync"}),tt.jsx(fl,{icon:Ui.CLOUD,size:150}),tt.jsx("div",{className:"folder-picker-wrapper",children:tt.jsx(qDe,{})})]})]})})}function Gw(t,r,e){let n=e.initialDeps??[],a;return()=>{var l,o,f,i;let s;e.key&&((l=e.debug)!=null&&l.call(e))&&(s=Date.now());const d=t();if(!(d.length!==n.length||d.some((y,b)=>n[b]!==y)))return a;n=d;let h;if(e.key&&((o=e.debug)!=null&&o.call(e))&&(h=Date.now()),a=r(...d),e.key&&((f=e.debug)!=null&&f.call(e))){const y=Math.round((Date.now()-s)*100)/100,b=Math.round((Date.now()-h)*100)/100,C=b/16,m=(c,v)=>{for(c=String(c);c.length<v;)c=" "+c;return c};console.info(`%c⏱ ${m(b,5)} /${m(y,5)} ms`,`
|
103
103
|
font-size: .6rem;
|
104
104
|
font-weight: bold;
|
105
105
|
color: hsl(${Math.max(0,Math.min(120-120*C,120))}deg 100% 31%);`,e==null?void 0:e.key)}return(i=e==null?void 0:e.onChange)==null||i.call(e,a),a}}function aF(t,r){if(t===void 0)throw new Error("Unexpected undefined");return t}const i8e=(t,r)=>Math.abs(t-r)<1,a8e=(t,r,e)=>{let n;return function(...a){t.clearTimeout(n),n=t.setTimeout(()=>r.apply(this,a),e)}},o8e=t=>t,s8e=t=>{const r=Math.max(t.startIndex-t.overscan,0),e=Math.min(t.endIndex+t.overscan,t.count-1),n=[];for(let a=r;a<=e;a++)n.push(a);return n},l8e=(t,r)=>{const e=t.scrollElement;if(!e)return;const n=t.targetWindow;if(!n)return;const a=o=>{const{width:f,height:i}=o;r({width:Math.round(f),height:Math.round(i)})};if(a(e.getBoundingClientRect()),!n.ResizeObserver)return()=>{};const l=new n.ResizeObserver(o=>{const f=()=>{const i=o[0];if(i!=null&&i.borderBoxSize){const s=i.borderBoxSize[0];if(s){a({width:s.inlineSize,height:s.blockSize});return}}a(e.getBoundingClientRect())};t.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(f):f()});return l.observe(e,{box:"border-box"}),()=>{l.unobserve(e)}},tJ={passive:!0},rJ=typeof window>"u"?!0:"onscrollend"in window,u8e=(t,r)=>{const e=t.scrollElement;if(!e)return;const n=t.targetWindow;if(!n)return;let a=0;const l=t.options.useScrollendEvent&&rJ?()=>{}:a8e(n,()=>{r(a,!1)},t.options.isScrollingResetDelay),o=d=>()=>{const{horizontal:u,isRtl:h}=t.options;a=u?e.scrollLeft*(h&&-1||1):e.scrollTop,l(),r(a,d)},f=o(!0),i=o(!1);i(),e.addEventListener("scroll",f,tJ);const s=t.options.useScrollendEvent&&rJ;return s&&e.addEventListener("scrollend",i,tJ),()=>{e.removeEventListener("scroll",f),s&&e.removeEventListener("scrollend",i)}},c8e=(t,r,e)=>{if(r!=null&&r.borderBoxSize){const n=r.borderBoxSize[0];if(n)return Math.round(n[e.options.horizontal?"inlineSize":"blockSize"])}return Math.round(t.getBoundingClientRect()[e.options.horizontal?"width":"height"])},f8e=(t,{adjustments:r=0,behavior:e},n)=>{var a,l;const o=t+r;(l=(a=n.scrollElement)==null?void 0:a.scrollTo)==null||l.call(a,{[n.options.horizontal?"left":"top"]:o,behavior:e})};class h8e{constructor(r){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let e=null;const n=()=>e||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:e=new this.targetWindow.ResizeObserver(a=>{a.forEach(l=>{const o=()=>{this._measureElement(l.target,l)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(o):o()})}));return{disconnect:()=>{var a;(a=n())==null||a.disconnect(),e=null},observe:a=>{var l;return(l=n())==null?void 0:l.observe(a,{box:"border-box"})},unobserve:a=>{var l;return(l=n())==null?void 0:l.unobserve(a)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([n,a])=>{typeof a>"u"&&delete e[n]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:o8e,rangeExtractor:s8e,onChange:()=>{},measureElement:c8e,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,useAnimationFrameWithResizeObserver:!1,...e}},this.notify=e=>{var n,a;(a=(n=this.options).onChange)==null||a.call(n,this,e)},this.maybeNotify=Gw(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e;const n=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==n){if(this.cleanup(),!n){this.maybeNotify();return}this.scrollElement=n,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((e=this.scrollElement)==null?void 0:e.window)??null,this.elementsCache.forEach(a=>{this.observer.observe(a)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,a=>{this.scrollRect=a,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(a,l)=>{this.scrollAdjustments=0,this.scrollDirection=l?this.getScrollOffset()<a?"forward":"backward":null,this.scrollOffset=a,this.isScrolling=l,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(e,n)=>{const a=new Map,l=new Map;for(let o=n-1;o>=0;o--){const f=e[o];if(a.has(f.lane))continue;const i=l.get(f.lane);if(i==null||f.end>i.end?l.set(f.lane,f):f.end<i.end&&a.set(f.lane,!0),a.size===this.options.lanes)break}return l.size===this.options.lanes?Array.from(l.values()).sort((o,f)=>o.end===f.end?o.index-f.index:o.end-f.end)[0]:void 0},this.getMeasurementOptions=Gw(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,n,a,l,o)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:n,scrollMargin:a,getItemKey:l,enabled:o}),{key:!1}),this.getMeasurements=Gw(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:n,scrollMargin:a,getItemKey:l,enabled:o},f)=>{if(!o)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(d=>{this.itemSizeCache.set(d.key,d.size)}));const i=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const s=this.measurementsCache.slice(0,i);for(let d=i;d<e;d++){const u=l(d),h=this.options.lanes===1?s[d-1]:this.getFurthestMeasurement(s,d),y=h?h.end+this.options.gap:n+a,b=f.get(u),C=typeof b=="number"?b:this.options.estimateSize(d),m=y+C,c=h?h.lane:d%this.options.lanes;s[d]={index:d,start:y,size:C,end:m,key:u,lane:c}}return this.measurementsCache=s,s},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Gw(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,n,a,l)=>this.range=e.length>0&&n>0?d8e({measurements:e,outerSize:n,scrollOffset:a,lanes:l}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=Gw(()=>{let e=null,n=null;const a=this.calculateRange();return a&&(e=a.startIndex,n=a.endIndex),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,n]},(e,n,a,l,o)=>l===null||o===null?[]:e({startIndex:l,endIndex:o,overscan:n,count:a}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{const n=this.options.indexAttribute,a=e.getAttribute(n);return a?parseInt(a,10):(console.warn(`Missing attribute name '${n}={index}' on measured element.`),-1)},this._measureElement=(e,n)=>{const a=this.indexFromElement(e),l=this.measurementsCache[a];if(!l)return;const o=l.key,f=this.elementsCache.get(o);f!==e&&(f&&this.observer.unobserve(f),this.observer.observe(e),this.elementsCache.set(o,e)),e.isConnected&&this.resizeItem(a,this.options.measureElement(e,n,this))},this.resizeItem=(e,n)=>{const a=this.measurementsCache[e];if(!a)return;const l=this.itemSizeCache.get(a.key)??a.size,o=n-l;o!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(a,o,this):a.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=o,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(a.index),this.itemSizeCache=new Map(this.itemSizeCache.set(a.key,n)),this.notify(!1))},this.measureElement=e=>{if(!e){this.elementsCache.forEach((n,a)=>{n.isConnected||(this.observer.unobserve(n),this.elementsCache.delete(a))});return}this._measureElement(e,void 0)},this.getVirtualItems=Gw(()=>[this.getVirtualIndexes(),this.getMeasurements()],(e,n)=>{const a=[];for(let l=0,o=e.length;l<o;l++){const f=e[l],i=n[f];a.push(i)}return a},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{const n=this.getMeasurements();if(n.length!==0)return aF(n[Zve(0,n.length-1,a=>aF(n[a]).start,e)])},this.getOffsetForAlignment=(e,n,a=0)=>{const l=this.getSize(),o=this.getScrollOffset();n==="auto"&&(n=e>=o+l?"end":"start"),n==="center"?e+=(a-l)/2:n==="end"&&(e-=l);const f=this.options.horizontal?"scrollWidth":"scrollHeight",s=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[f]:this.scrollElement[f]:0)-l;return Math.max(Math.min(s,e),0)},this.getOffsetForIndex=(e,n="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));const a=this.measurementsCache[e];if(!a)return;const l=this.getSize(),o=this.getScrollOffset();if(n==="auto")if(a.end>=o+l-this.options.scrollPaddingEnd)n="end";else if(a.start<=o+this.options.scrollPaddingStart)n="start";else return[o,n];const f=n==="end"?a.end+this.options.scrollPaddingEnd:a.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(f,n,a.size),n]},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(e,{align:n="start",behavior:a}={})=>{this.cancelScrollToIndex(),a==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,n),{adjustments:void 0,behavior:a})},this.scrollToIndex=(e,{align:n="auto",behavior:a}={})=>{e=Math.max(0,Math.min(e,this.options.count-1)),this.cancelScrollToIndex(),a==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const l=this.getOffsetForIndex(e,n);if(!l)return;const[o,f]=l;this._scrollToOffset(o,{adjustments:void 0,behavior:a}),a!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(e))){const[s]=aF(this.getOffsetForIndex(e,f));i8e(s,this.getScrollOffset())||this.scrollToIndex(e,{align:f,behavior:a})}else this.scrollToIndex(e,{align:f,behavior:a})}))},this.scrollBy=(e,{behavior:n}={})=>{this.cancelScrollToIndex(),n==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adjustments:void 0,behavior:n})},this.getTotalSize=()=>{var e;const n=this.getMeasurements();let a;return n.length===0?a=this.options.paddingStart:a=this.options.lanes===1?((e=n[n.length-1])==null?void 0:e.end)??0:Math.max(...n.slice(-this.options.lanes).map(l=>l.end)),Math.max(a-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:n,behavior:a})=>{this.options.scrollToFn(e,{behavior:a,adjustments:n},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(r)}}const Zve=(t,r,e,n)=>{for(;t<=r;){const a=(t+r)/2|0,l=e(a);if(l<n)t=a+1;else if(l>n)r=a-1;else return a}return t>0?t-1:0};function d8e({measurements:t,outerSize:r,scrollOffset:e,lanes:n}){const a=t.length-1;let o=Zve(0,a,i=>t[i].start,e),f=o;for(;f<a&&t[f].end<e+r;)f++;return n>1&&(o=Math.max(0,o-o%n),f=Math.min(a,f+(n-1-f%n))),{startIndex:o,endIndex:f}}const nJ=typeof document<"u"?St.useLayoutEffect:St.useEffect;function v8e(t){const r=St.useReducer(()=>({}),{})[1],e={...t,onChange:(a,l)=>{var o;l?v3.flushSync(r):r(),(o=t.onChange)==null||o.call(t,a,l)}},[n]=St.useState(()=>new h8e(e));return n.setOptions(e),nJ(()=>n._didMount(),[]),nJ(()=>n._willUpdate()),n}function aD(t){return v8e({observeElementRect:l8e,observeElementOffset:u8e,scrollToFn:f8e,...t})}function VG({searchQuery:t,onQueryChanged:r,controls:e,disabled:n=!1,placeholder:a="",className:l}){return tt.jsxs("div",{className:Di(l,"search-field"),children:[tt.jsx(xh,{disabled:n,rightElement:t?tt.jsx(qa,{disabled:n,variant:"minimal",onClick:()=>{r("")},icon:Ui.CROSS}):tt.jsx(fl,{icon:Ui.SEARCH}),placeholder:a,value:t,onChange:o=>r(o.target.value)}),e]})}const GG=({label:t,additionalElements:r=void 0,isOpen:e=!0,collapseClassName:n="",contentStyles:a={},contentClassName:l="",keepChildrenMounted:o=!0,onExpandToggle:f,children:i})=>{const[s,d]=so.useState(e);St.useEffect(()=>{d(e)},[e]);const u=s?Ui.CARET_UP:Ui.CARET_DOWN;return tt.jsxs("div",{className:Di("collapsible-component",n),children:[tt.jsxs("div",{className:"collapsible-controls",children:[i&&tt.jsx(qa,{size:"small",variant:"minimal",onClick:()=>{f&&f(),d(!s)},endIcon:u,children:t}),!i&&tt.jsx("div",{className:"collapsible-label-wrap",children:tt.jsx("div",{className:"collapsible-label",children:t})}),r&&r]}),i&&tt.jsx(xG,{isOpen:s,keepChildrenMounted:o,children:tt.jsx("div",{className:Di(l),style:a,children:i})})]})},g8e="empty-collapsible",WG=({header:t,value:r})=>tt.jsx("tr",{children:t==="shard_spec"&&typeof r=="object"?tt.jsxs(tt.Fragment,{children:[tt.jsx("th",{children:Dve[t]}),tt.jsx("td",{children:tt.jsx("table",{className:"ttnn-table alt-two-tone-rows",children:tt.jsx("tbody",{children:Object.entries(r).map(([e,n])=>n!==void 0?tt.jsxs("tr",{children:[tt.jsx("th",{children:BQ(e)}),tt.jsx("td",{children:typeof n!="string"?JSON.stringify(n):n})]},e):null)})})})]}):tt.jsxs(tt.Fragment,{children:[tt.jsx("th",{children:BQ(t)}),tt.jsx("td",{children:r})]})});function p8e({argument:t,onCollapse:r}){var o;const[e,n]=St.useState(!1),a=t.value.split(`
|
@@ -5141,7 +5141,7 @@ div.network-navigation_wrapper {
|
|
5141
5141
|
}
|
5142
5142
|
*/
|
5143
5143
|
`;Qx(yft);function Aft(t,r){var e=typeof yA<"u"&&gI(t)||t["@@iterator"];if(!e){if(Js(t)||(e=Cft(t))||r){e&&(t=e);var n=0,a=function(){};return{s:a,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(s){throw s},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
5144
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var l=!0,o=!1,f;return{s:function(){e=e.call(t)},n:function(){var s=e.next();return l=s.done,s},e:function(s){o=!0,f=s},f:function(){try{!l&&e.return!=null&&e.return()}finally{if(o)throw f}}}}function Cft(t,r){var e;if(t){if(typeof t=="string")return gre(t,r);var n=wh(e=Object.prototype.toString.call(t)).call(e,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return vI(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gre(t,r)}}function gre(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}var Ift=function(){function t(r,e,n,a){var l=this,o,f;Va(this,t),this.body=r,this.canvas=e,this.selectionHandler=n,this.interactionHandler=a,this.editMode=!1,this.manipulationDiv=void 0,this.editModeDiv=void 0,this.closeDiv=void 0,this._domEventListenerCleanupQueue=[],this.temporaryUIFunctions={},this.temporaryEventFunctions=[],this.touchTime=0,this.temporaryIds={nodes:[],edges:[]},this.guiEnabled=!1,this.inMode=!1,this.selectedControlNode=void 0,this.options={},this.defaultOptions={enabled:!1,initiallyActive:!1,addNode:!0,addEdge:!0,editNode:void 0,editEdge:!0,deleteNode:!0,deleteEdge:!0,controlNodeStyle:{shape:"dot",size:6,color:{background:"#ff0000",border:"#3c3c3c",highlight:{background:"#07f968",border:"#3c3c3c"}},borderWidth:2,borderWidthSelected:2}},Lf(this.options,this.defaultOptions),this.body.emitter.on("destroy",function(){l._clean()}),this.body.emitter.on("_dataChanged",Oa(o=this._restore).call(o,this)),this.body.emitter.on("_resetData",Oa(f=this._restore).call(f,this))}return Ga(t,[{key:"_restore",value:function(){this.inMode!==!1&&(this.options.initiallyActive===!0?this.enableEditMode():this.disableEditMode())}},{key:"setOptions",value:function(e,n,a){n!==void 0&&(n.locale!==void 0?this.options.locale=n.locale:this.options.locale=a.locale,n.locales!==void 0?this.options.locales=n.locales:this.options.locales=a.locales),e!==void 0&&(typeof e=="boolean"?this.options.enabled=e:(this.options.enabled=!0,ju(this.options,e)),this.options.initiallyActive===!0&&(this.editMode=!0),this._setup())}},{key:"toggleEditMode",value:function(){this.editMode===!0?this.disableEditMode():this.enableEditMode()}},{key:"enableEditMode",value:function(){this.editMode=!0,this._clean(),this.guiEnabled===!0&&(this.manipulationDiv.style.display="block",this.closeDiv.style.display="block",this.editModeDiv.style.display="none",this.showManipulatorToolbar())}},{key:"disableEditMode",value:function(){this.editMode=!1,this._clean(),this.guiEnabled===!0&&(this.manipulationDiv.style.display="none",this.closeDiv.style.display="none",this.editModeDiv.style.display="block",this._createEditButton())}},{key:"showManipulatorToolbar",value:function(){if(this._clean(),this.manipulationDOM={},this.guiEnabled===!0){var e,n;this.editMode=!0,this.manipulationDiv.style.display="block",this.closeDiv.style.display="block";var a=this.selectionHandler.getSelectedNodeCount(),l=this.selectionHandler.getSelectedEdgeCount(),o=a+l,f=this.options.locales[this.options.locale],i=!1;this.options.addNode!==!1&&(this._createAddNodeButton(f),i=!0),this.options.addEdge!==!1&&(i===!0?this._createSeperator(1):i=!0,this._createAddEdgeButton(f)),a===1&&typeof this.options.editNode=="function"?(i===!0?this._createSeperator(2):i=!0,this._createEditNodeButton(f)):l===1&&a===0&&this.options.editEdge!==!1&&(i===!0?this._createSeperator(3):i=!0,this._createEditEdgeButton(f)),o!==0&&(a>0&&this.options.deleteNode!==!1?(i===!0&&this._createSeperator(4),this._createDeleteButton(f)):a===0&&this.options.deleteEdge!==!1&&(i===!0&&this._createSeperator(4),this._createDeleteButton(f))),this._bindElementEvents(this.closeDiv,Oa(e=this.toggleEditMode).call(e,this)),this._temporaryBindEvent("select",Oa(n=this.showManipulatorToolbar).call(n,this))}this.body.emitter.emit("_redraw")}},{key:"addNodeMode",value:function(){var e;if(this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="addNode",this.guiEnabled===!0){var n,a=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(a),this._createSeperator(),this._createDescription(a.addDescription||this.options.locales.en.addDescription),this._bindElementEvents(this.closeDiv,Oa(n=this.toggleEditMode).call(n,this))}this._temporaryBindEvent("click",Oa(e=this._performAddNode).call(e,this))}},{key:"editNode",value:function(){var e=this;this.editMode!==!0&&this.enableEditMode(),this._clean();var n=this.selectionHandler.getSelectedNodes()[0];if(n!==void 0)if(this.inMode="editNode",typeof this.options.editNode=="function")if(n.isCluster!==!0){var a=ju({},n.options,!1);if(a.x=n.x,a.y=n.y,this.options.editNode.length===2)this.options.editNode(a,function(l){l!=null&&e.inMode==="editNode"&&e.body.data.nodes.getDataSet().update(l),e.showManipulatorToolbar()});else throw new Error("The function for edit does not support two arguments (data, callback)")}else alert(this.options.locales[this.options.locale].editClusterError||this.options.locales.en.editClusterError);else throw new Error("No function has been configured to handle the editing of nodes.");else this.showManipulatorToolbar()}},{key:"addEdgeMode",value:function(){var e,n,a,l,o;if(this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="addEdge",this.guiEnabled===!0){var f,i=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(i),this._createSeperator(),this._createDescription(i.edgeDescription||this.options.locales.en.edgeDescription),this._bindElementEvents(this.closeDiv,Oa(f=this.toggleEditMode).call(f,this))}this._temporaryBindUI("onTouch",Oa(e=this._handleConnect).call(e,this)),this._temporaryBindUI("onDragEnd",Oa(n=this._finishConnect).call(n,this)),this._temporaryBindUI("onDrag",Oa(a=this._dragControlNode).call(a,this)),this._temporaryBindUI("onRelease",Oa(l=this._finishConnect).call(l,this)),this._temporaryBindUI("onDragStart",Oa(o=this._dragStartEdge).call(o,this)),this._temporaryBindUI("onHold",function(){})}},{key:"editEdgeMode",value:function(){if(this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="editEdge",al(this.options.editEdge)==="object"&&typeof this.options.editEdge.editWithoutDrag=="function"&&(this.edgeBeingEditedId=this.selectionHandler.getSelectedEdgeIds()[0],this.edgeBeingEditedId!==void 0)){var e=this.body.edges[this.edgeBeingEditedId];this._performEditEdge(e.from.id,e.to.id);return}if(this.guiEnabled===!0){var n,a=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(a),this._createSeperator(),this._createDescription(a.editEdgeDescription||this.options.locales.en.editEdgeDescription),this._bindElementEvents(this.closeDiv,Oa(n=this.toggleEditMode).call(n,this))}if(this.edgeBeingEditedId=this.selectionHandler.getSelectedEdgeIds()[0],this.edgeBeingEditedId!==void 0){var l,o,f,i,s=this.body.edges[this.edgeBeingEditedId],d=this._getNewTargetNode(s.from.x,s.from.y),u=this._getNewTargetNode(s.to.x,s.to.y);this.temporaryIds.nodes.push(d.id),this.temporaryIds.nodes.push(u.id),this.body.nodes[d.id]=d,this.body.nodeIndices.push(d.id),this.body.nodes[u.id]=u,this.body.nodeIndices.push(u.id),this._temporaryBindUI("onTouch",Oa(l=this._controlNodeTouch).call(l,this)),this._temporaryBindUI("onTap",function(){}),this._temporaryBindUI("onHold",function(){}),this._temporaryBindUI("onDragStart",Oa(o=this._controlNodeDragStart).call(o,this)),this._temporaryBindUI("onDrag",Oa(f=this._controlNodeDrag).call(f,this)),this._temporaryBindUI("onDragEnd",Oa(i=this._controlNodeDragEnd).call(i,this)),this._temporaryBindUI("onMouseMove",function(){}),this._temporaryBindEvent("beforeDrawing",function(h){var y=s.edgeType.findBorderPositions(h);d.selected===!1&&(d.x=y.from.x,d.y=y.from.y),u.selected===!1&&(u.x=y.to.x,u.y=y.to.y)}),this.body.emitter.emit("_redraw")}else this.showManipulatorToolbar()}},{key:"deleteSelected",value:function(){var e=this;this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="delete";var n=this.selectionHandler.getSelectedNodeIds(),a=this.selectionHandler.getSelectedEdgeIds(),l=void 0;if(n.length>0){for(var o=0;o<n.length;o++)if(this.body.nodes[n[o]].isCluster===!0){alert(this.options.locales[this.options.locale].deleteClusterError||this.options.locales.en.deleteClusterError);return}typeof this.options.deleteNode=="function"&&(l=this.options.deleteNode)}else a.length>0&&typeof this.options.deleteEdge=="function"&&(l=this.options.deleteEdge);if(typeof l=="function"){var f={nodes:n,edges:a};if(l.length===2)l(f,function(i){i!=null&&e.inMode==="delete"?(e.body.data.edges.getDataSet().remove(i.edges),e.body.data.nodes.getDataSet().remove(i.nodes),e.body.emitter.emit("startSimulation"),e.showManipulatorToolbar()):(e.body.emitter.emit("startSimulation"),e.showManipulatorToolbar())});else throw new Error("The function for delete does not support two arguments (data, callback)")}else this.body.data.edges.getDataSet().remove(a),this.body.data.nodes.getDataSet().remove(n),this.body.emitter.emit("startSimulation"),this.showManipulatorToolbar()}},{key:"_setup",value:function(){this.options.enabled===!0?(this.guiEnabled=!0,this._createWrappers(),this.editMode===!1?this._createEditButton():this.showManipulatorToolbar()):(this._removeManipulationDOM(),this.guiEnabled=!1)}},{key:"_createWrappers",value:function(){if(this.manipulationDiv===void 0&&(this.manipulationDiv=document.createElement("div"),this.manipulationDiv.className="vis-manipulation",this.editMode===!0?this.manipulationDiv.style.display="block":this.manipulationDiv.style.display="none",this.canvas.frame.appendChild(this.manipulationDiv)),this.editModeDiv===void 0&&(this.editModeDiv=document.createElement("div"),this.editModeDiv.className="vis-edit-mode",this.editMode===!0?this.editModeDiv.style.display="none":this.editModeDiv.style.display="block",this.canvas.frame.appendChild(this.editModeDiv)),this.closeDiv===void 0){var e,n;this.closeDiv=document.createElement("button"),this.closeDiv.className="vis-close",this.closeDiv.setAttribute("aria-label",(e=(n=this.options.locales[this.options.locale])===null||n===void 0?void 0:n.close)!==null&&e!==void 0?e:this.options.locales.en.close),this.closeDiv.style.display=this.manipulationDiv.style.display,this.canvas.frame.appendChild(this.closeDiv)}}},{key:"_getNewTargetNode",value:function(e,n){var a=ju({},this.options.controlNodeStyle);a.id="targetNode"+vT(),a.hidden=!1,a.physics=!1,a.x=e,a.y=n;var l=this.body.functions.createNode(a);return l.shape.boundingBox={left:e,right:e,top:n,bottom:n},l}},{key:"_createEditButton",value:function(){var e;this._clean(),this.manipulationDOM={},rC(this.editModeDiv);var n=this.options.locales[this.options.locale],a=this._createButton("editMode","vis-edit vis-edit-mode",n.edit||this.options.locales.en.edit);this.editModeDiv.appendChild(a),this._bindElementEvents(a,Oa(e=this.toggleEditMode).call(e,this))}},{key:"_clean",value:function(){this.inMode=!1,this.guiEnabled===!0&&(rC(this.editModeDiv),rC(this.manipulationDiv),this._cleanupDOMEventListeners()),this._cleanupTemporaryNodesAndEdges(),this._unbindTemporaryUIs(),this._unbindTemporaryEvents(),this.body.emitter.emit("restorePhysics")}},{key:"_cleanupDOMEventListeners",value:function(){var e,n=Aft(Hy(e=this._domEventListenerCleanupQueue).call(e,0)),a;try{for(n.s();!(a=n.n()).done;){var l=a.value;l()}}catch(o){n.e(o)}finally{n.f()}}},{key:"_removeManipulationDOM",value:function(){this._clean(),rC(this.manipulationDiv),rC(this.editModeDiv),rC(this.closeDiv),this.manipulationDiv&&this.canvas.frame.removeChild(this.manipulationDiv),this.editModeDiv&&this.canvas.frame.removeChild(this.editModeDiv),this.closeDiv&&this.canvas.frame.removeChild(this.closeDiv),this.manipulationDiv=void 0,this.editModeDiv=void 0,this.closeDiv=void 0}},{key:"_createSeperator",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;this.manipulationDOM["seperatorLineDiv"+e]=document.createElement("div"),this.manipulationDOM["seperatorLineDiv"+e].className="vis-separator-line",this.manipulationDiv.appendChild(this.manipulationDOM["seperatorLineDiv"+e])}},{key:"_createAddNodeButton",value:function(e){var n,a=this._createButton("addNode","vis-add",e.addNode||this.options.locales.en.addNode);this.manipulationDiv.appendChild(a),this._bindElementEvents(a,Oa(n=this.addNodeMode).call(n,this))}},{key:"_createAddEdgeButton",value:function(e){var n,a=this._createButton("addEdge","vis-connect",e.addEdge||this.options.locales.en.addEdge);this.manipulationDiv.appendChild(a),this._bindElementEvents(a,Oa(n=this.addEdgeMode).call(n,this))}},{key:"_createEditNodeButton",value:function(e){var n,a=this._createButton("editNode","vis-edit",e.editNode||this.options.locales.en.editNode);this.manipulationDiv.appendChild(a),this._bindElementEvents(a,Oa(n=this.editNode).call(n,this))}},{key:"_createEditEdgeButton",value:function(e){var n,a=this._createButton("editEdge","vis-edit",e.editEdge||this.options.locales.en.editEdge);this.manipulationDiv.appendChild(a),this._bindElementEvents(a,Oa(n=this.editEdgeMode).call(n,this))}},{key:"_createDeleteButton",value:function(e){var n,a;this.options.rtl?a="vis-delete-rtl":a="vis-delete";var l=this._createButton("delete",a,e.del||this.options.locales.en.del);this.manipulationDiv.appendChild(l),this._bindElementEvents(l,Oa(n=this.deleteSelected).call(n,this))}},{key:"_createBackButton",value:function(e){var n,a=this._createButton("back","vis-back",e.back||this.options.locales.en.back);this.manipulationDiv.appendChild(a),this._bindElementEvents(a,Oa(n=this.showManipulatorToolbar).call(n,this))}},{key:"_createButton",value:function(e,n,a){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"vis-label";return this.manipulationDOM[e+"Div"]=document.createElement("button"),this.manipulationDOM[e+"Div"].className="vis-button "+n,this.manipulationDOM[e+"Label"]=document.createElement("div"),this.manipulationDOM[e+"Label"].className=l,this.manipulationDOM[e+"Label"].innerText=a,this.manipulationDOM[e+"Div"].appendChild(this.manipulationDOM[e+"Label"]),this.manipulationDOM[e+"Div"]}},{key:"_createDescription",value:function(e){this.manipulationDOM.descriptionLabel=document.createElement("div"),this.manipulationDOM.descriptionLabel.className="vis-none",this.manipulationDOM.descriptionLabel.innerText=e,this.manipulationDiv.appendChild(this.manipulationDOM.descriptionLabel)}},{key:"_temporaryBindEvent",value:function(e,n){this.temporaryEventFunctions.push({event:e,boundFunction:n}),this.body.emitter.on(e,n)}},{key:"_temporaryBindUI",value:function(e,n){if(this.body.eventListeners[e]!==void 0)this.temporaryUIFunctions[e]=this.body.eventListeners[e],this.body.eventListeners[e]=n;else throw new Error("This UI function does not exist. Typo? You tried: "+e+" possible are: "+N3(ic(this.body.eventListeners)))}},{key:"_unbindTemporaryUIs",value:function(){for(var e in this.temporaryUIFunctions)Object.prototype.hasOwnProperty.call(this.temporaryUIFunctions,e)&&(this.body.eventListeners[e]=this.temporaryUIFunctions[e],delete this.temporaryUIFunctions[e]);this.temporaryUIFunctions={}}},{key:"_unbindTemporaryEvents",value:function(){for(var e=0;e<this.temporaryEventFunctions.length;e++){var n=this.temporaryEventFunctions[e].event,a=this.temporaryEventFunctions[e].boundFunction;this.body.emitter.off(n,a)}this.temporaryEventFunctions=[]}},{key:"_bindElementEvents",value:function(e,n){var a=new fT(e,{});UO(a,n),this._domEventListenerCleanupQueue.push(function(){a.destroy()});var l=function(f){var i=f.keyCode,s=f.key;(s==="Enter"||s===" "||i===13||i===32)&&n()};e.addEventListener("keyup",l,!1),this._domEventListenerCleanupQueue.push(function(){e.removeEventListener("keyup",l,!1)})}},{key:"_cleanupTemporaryNodesAndEdges",value:function(){for(var e=0;e<this.temporaryIds.edges.length;e++){var n;this.body.edges[this.temporaryIds.edges[e]].disconnect(),delete this.body.edges[this.temporaryIds.edges[e]];var a=Wl(n=this.body.edgeIndices).call(n,this.temporaryIds.edges[e]);if(a!==-1){var l;Hy(l=this.body.edgeIndices).call(l,a,1)}}for(var o=0;o<this.temporaryIds.nodes.length;o++){var f;delete this.body.nodes[this.temporaryIds.nodes[o]];var i=Wl(f=this.body.nodeIndices).call(f,this.temporaryIds.nodes[o]);if(i!==-1){var s;Hy(s=this.body.nodeIndices).call(s,i,1)}}this.temporaryIds={nodes:[],edges:[]}}},{key:"_controlNodeTouch",value:function(e){this.selectionHandler.unselectAll(),this.lastTouch=this.body.functions.getPointer(e.center),this.lastTouch.translation=Lf({},this.body.view.translation)}},{key:"_controlNodeDragStart",value:function(){var e=this.lastTouch,n=this.selectionHandler._pointerToPositionObject(e),a=this.body.nodes[this.temporaryIds.nodes[0]],l=this.body.nodes[this.temporaryIds.nodes[1]],o=this.body.edges[this.edgeBeingEditedId];this.selectedControlNode=void 0;var f=a.isOverlappingWith(n),i=l.isOverlappingWith(n);f===!0?(this.selectedControlNode=a,o.edgeType.from=a):i===!0&&(this.selectedControlNode=l,o.edgeType.to=l),this.selectedControlNode!==void 0&&this.selectionHandler.selectObject(this.selectedControlNode),this.body.emitter.emit("_redraw")}},{key:"_controlNodeDrag",value:function(e){this.body.emitter.emit("disablePhysics");var n=this.body.functions.getPointer(e.center),a=this.canvas.DOMtoCanvas(n);this.selectedControlNode!==void 0?(this.selectedControlNode.x=a.x,this.selectedControlNode.y=a.y):this.interactionHandler.onDrag(e),this.body.emitter.emit("_redraw")}},{key:"_controlNodeDragEnd",value:function(e){var n=this.body.functions.getPointer(e.center),a=this.selectionHandler._pointerToPositionObject(n),l=this.body.edges[this.edgeBeingEditedId];if(this.selectedControlNode!==void 0){this.selectionHandler.unselectAll();for(var o=this.selectionHandler._getAllNodesOverlappingWith(a),f=void 0,i=o.length-1;i>=0;i--)if(o[i]!==this.selectedControlNode.id){f=this.body.nodes[o[i]];break}if(f!==void 0&&this.selectedControlNode!==void 0)if(f.isCluster===!0)alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError);else{var s=this.body.nodes[this.temporaryIds.nodes[0]];this.selectedControlNode.id===s.id?this._performEditEdge(f.id,l.to.id):this._performEditEdge(l.from.id,f.id)}else l.updateEdgeType(),this.body.emitter.emit("restorePhysics");this.body.emitter.emit("_redraw")}}},{key:"_handleConnect",value:function(e){if(new Date().valueOf()-this.touchTime>100){this.lastTouch=this.body.functions.getPointer(e.center),this.lastTouch.translation=Lf({},this.body.view.translation),this.interactionHandler.drag.pointer=this.lastTouch,this.interactionHandler.drag.translation=this.lastTouch.translation;var n=this.lastTouch,a=this.selectionHandler.getNodeAt(n);if(a!==void 0)if(a.isCluster===!0)alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError);else{var l=this._getNewTargetNode(a.x,a.y);this.body.nodes[l.id]=l,this.body.nodeIndices.push(l.id);var o=this.body.functions.createEdge({id:"connectionEdge"+vT(),from:a.id,to:l.id,physics:!1,smooth:{enabled:!0,type:"continuous",roundness:.5}});this.body.edges[o.id]=o,this.body.edgeIndices.push(o.id),this.temporaryIds.nodes.push(l.id),this.temporaryIds.edges.push(o.id)}this.touchTime=new Date().valueOf()}}},{key:"_dragControlNode",value:function(e){var n=this.body.functions.getPointer(e.center),a=this.selectionHandler._pointerToPositionObject(n),l=void 0;this.temporaryIds.edges[0]!==void 0&&(l=this.body.edges[this.temporaryIds.edges[0]].fromId);for(var o=this.selectionHandler._getAllNodesOverlappingWith(a),f=void 0,i=o.length-1;i>=0;i--){var s;if(Wl(s=this.temporaryIds.nodes).call(s,o[i])===-1){f=this.body.nodes[o[i]];break}}if(e.controlEdge={from:l,to:f?f.id:void 0},this.selectionHandler.generateClickEvent("controlNodeDragging",e,n),this.temporaryIds.nodes[0]!==void 0){var d=this.body.nodes[this.temporaryIds.nodes[0]];d.x=this.canvas._XconvertDOMtoCanvas(n.x),d.y=this.canvas._YconvertDOMtoCanvas(n.y),this.body.emitter.emit("_redraw")}else this.interactionHandler.onDrag(e)}},{key:"_finishConnect",value:function(e){var n=this.body.functions.getPointer(e.center),a=this.selectionHandler._pointerToPositionObject(n),l=void 0;this.temporaryIds.edges[0]!==void 0&&(l=this.body.edges[this.temporaryIds.edges[0]].fromId);for(var o=this.selectionHandler._getAllNodesOverlappingWith(a),f=void 0,i=o.length-1;i>=0;i--){var s;if(Wl(s=this.temporaryIds.nodes).call(s,o[i])===-1){f=this.body.nodes[o[i]];break}}this._cleanupTemporaryNodesAndEdges(),f!==void 0&&(f.isCluster===!0?alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError):this.body.nodes[l]!==void 0&&this.body.nodes[f.id]!==void 0&&this._performAddEdge(l,f.id)),e.controlEdge={from:l,to:f?f.id:void 0},this.selectionHandler.generateClickEvent("controlNodeDragEnd",e,n),this.body.emitter.emit("_redraw")}},{key:"_dragStartEdge",value:function(e){var n=this.lastTouch;this.selectionHandler.generateClickEvent("dragStart",e,n,void 0,!0)}},{key:"_performAddNode",value:function(e){var n=this,a={id:vT(),x:e.pointer.canvas.x,y:e.pointer.canvas.y,label:"new"};if(typeof this.options.addNode=="function")if(this.options.addNode.length===2)this.options.addNode(a,function(l){l!=null&&n.inMode==="addNode"&&n.body.data.nodes.getDataSet().add(l),n.showManipulatorToolbar()});else throw this.showManipulatorToolbar(),new Error("The function for add does not support two arguments (data,callback)");else this.body.data.nodes.getDataSet().add(a),this.showManipulatorToolbar()}},{key:"_performAddEdge",value:function(e,n){var a=this,l={from:e,to:n};if(typeof this.options.addEdge=="function")if(this.options.addEdge.length===2)this.options.addEdge(l,function(o){o!=null&&a.inMode==="addEdge"&&(a.body.data.edges.getDataSet().add(o),a.selectionHandler.unselectAll(),a.showManipulatorToolbar())});else throw new Error("The function for connect does not support two arguments (data,callback)");else this.body.data.edges.getDataSet().add(l),this.selectionHandler.unselectAll(),this.showManipulatorToolbar()}},{key:"_performEditEdge",value:function(e,n){var a=this,l={id:this.edgeBeingEditedId,from:e,to:n,label:this.body.data.edges.get(this.edgeBeingEditedId).label},o=this.options.editEdge;if(al(o)==="object"&&(o=o.editWithoutDrag),typeof o=="function")if(o.length===2)o(l,function(f){f==null||a.inMode!=="editEdge"?(a.body.edges[l.id].updateEdgeType(),a.body.emitter.emit("_redraw"),a.showManipulatorToolbar()):(a.body.data.edges.getDataSet().update(f),a.selectionHandler.unselectAll(),a.showManipulatorToolbar())});else throw new Error("The function for edit does not support two arguments (data, callback)");else this.body.data.edges.getDataSet().update(l),this.selectionHandler.unselectAll(),this.showManipulatorToolbar()}}]),t}(),Za="string",Pa="boolean",ji="number",FS="array",Uo="object",Fye="dom",bft="any",T7=["arrow","bar","box","circle","crow","curve","diamond","image","inv_curve","inv_triangle","triangle","vee"],_7={borderWidth:{number:ji},borderWidthSelected:{number:ji,undefined:"undefined"},brokenImage:{string:Za,undefined:"undefined"},chosen:{label:{boolean:Pa,function:"function"},node:{boolean:Pa,function:"function"},__type__:{object:Uo,boolean:Pa}},color:{border:{string:Za},background:{string:Za},highlight:{border:{string:Za},background:{string:Za},__type__:{object:Uo,string:Za}},hover:{border:{string:Za},background:{string:Za},__type__:{object:Uo,string:Za}},__type__:{object:Uo,string:Za}},opacity:{number:ji,undefined:"undefined"},fixed:{x:{boolean:Pa},y:{boolean:Pa},__type__:{object:Uo,boolean:Pa}},font:{align:{string:Za},color:{string:Za},size:{number:ji},face:{string:Za},background:{string:Za},strokeWidth:{number:ji},strokeColor:{string:Za},vadjust:{number:ji},multi:{boolean:Pa,string:Za},bold:{color:{string:Za},size:{number:ji},face:{string:Za},mod:{string:Za},vadjust:{number:ji},__type__:{object:Uo,string:Za}},boldital:{color:{string:Za},size:{number:ji},face:{string:Za},mod:{string:Za},vadjust:{number:ji},__type__:{object:Uo,string:Za}},ital:{color:{string:Za},size:{number:ji},face:{string:Za},mod:{string:Za},vadjust:{number:ji},__type__:{object:Uo,string:Za}},mono:{color:{string:Za},size:{number:ji},face:{string:Za},mod:{string:Za},vadjust:{number:ji},__type__:{object:Uo,string:Za}},__type__:{object:Uo,string:Za}},group:{string:Za,number:ji,undefined:"undefined"},heightConstraint:{minimum:{number:ji},valign:{string:Za},__type__:{object:Uo,boolean:Pa,number:ji}},hidden:{boolean:Pa},icon:{face:{string:Za},code:{string:Za},size:{number:ji},color:{string:Za},weight:{string:Za,number:ji},__type__:{object:Uo}},id:{string:Za,number:ji},image:{selected:{string:Za,undefined:"undefined"},unselected:{string:Za,undefined:"undefined"},__type__:{object:Uo,string:Za}},imagePadding:{top:{number:ji},right:{number:ji},bottom:{number:ji},left:{number:ji},__type__:{object:Uo,number:ji}},label:{string:Za,undefined:"undefined"},labelHighlightBold:{boolean:Pa},level:{number:ji,undefined:"undefined"},margin:{top:{number:ji},right:{number:ji},bottom:{number:ji},left:{number:ji},__type__:{object:Uo,number:ji}},mass:{number:ji},physics:{boolean:Pa},scaling:{min:{number:ji},max:{number:ji},label:{enabled:{boolean:Pa},min:{number:ji},max:{number:ji},maxVisible:{number:ji},drawThreshold:{number:ji},__type__:{object:Uo,boolean:Pa}},customScalingFunction:{function:"function"},__type__:{object:Uo}},shadow:{enabled:{boolean:Pa},color:{string:Za},size:{number:ji},x:{number:ji},y:{number:ji},__type__:{object:Uo,boolean:Pa}},shape:{string:["custom","ellipse","circle","database","box","text","image","circularImage","diamond","dot","star","triangle","triangleDown","square","icon","hexagon"]},ctxRenderer:{function:"function"},shapeProperties:{borderDashes:{boolean:Pa,array:FS},borderRadius:{number:ji},interpolation:{boolean:Pa},useImageSize:{boolean:Pa},useBorderWithImage:{boolean:Pa},coordinateOrigin:{string:["center","top-left"]},__type__:{object:Uo}},size:{number:ji},title:{string:Za,dom:Fye,undefined:"undefined"},value:{number:ji,undefined:"undefined"},widthConstraint:{minimum:{number:ji},maximum:{number:ji},__type__:{object:Uo,boolean:Pa,number:ji}},x:{number:ji},y:{number:ji},__type__:{object:Uo}},xft={configure:{enabled:{boolean:Pa},filter:{boolean:Pa,string:Za,array:FS,function:"function"},container:{dom:Fye},showButton:{boolean:Pa},__type__:{object:Uo,boolean:Pa,string:Za,array:FS,function:"function"}},edges:{arrows:{to:{enabled:{boolean:Pa},scaleFactor:{number:ji},type:{string:T7},imageHeight:{number:ji},imageWidth:{number:ji},src:{string:Za},__type__:{object:Uo,boolean:Pa}},middle:{enabled:{boolean:Pa},scaleFactor:{number:ji},type:{string:T7},imageWidth:{number:ji},imageHeight:{number:ji},src:{string:Za},__type__:{object:Uo,boolean:Pa}},from:{enabled:{boolean:Pa},scaleFactor:{number:ji},type:{string:T7},imageWidth:{number:ji},imageHeight:{number:ji},src:{string:Za},__type__:{object:Uo,boolean:Pa}},__type__:{string:["from","to","middle"],object:Uo}},endPointOffset:{from:{number:ji},to:{number:ji},__type__:{object:Uo,number:ji}},arrowStrikethrough:{boolean:Pa},background:{enabled:{boolean:Pa},color:{string:Za},size:{number:ji},dashes:{boolean:Pa,array:FS},__type__:{object:Uo,boolean:Pa}},chosen:{label:{boolean:Pa,function:"function"},edge:{boolean:Pa,function:"function"},__type__:{object:Uo,boolean:Pa}},color:{color:{string:Za},highlight:{string:Za},hover:{string:Za},inherit:{string:["from","to","both"],boolean:Pa},opacity:{number:ji},__type__:{object:Uo,string:Za}},dashes:{boolean:Pa,array:FS},font:{color:{string:Za},size:{number:ji},face:{string:Za},background:{string:Za},strokeWidth:{number:ji},strokeColor:{string:Za},align:{string:["horizontal","top","middle","bottom"]},vadjust:{number:ji},multi:{boolean:Pa,string:Za},bold:{color:{string:Za},size:{number:ji},face:{string:Za},mod:{string:Za},vadjust:{number:ji},__type__:{object:Uo,string:Za}},boldital:{color:{string:Za},size:{number:ji},face:{string:Za},mod:{string:Za},vadjust:{number:ji},__type__:{object:Uo,string:Za}},ital:{color:{string:Za},size:{number:ji},face:{string:Za},mod:{string:Za},vadjust:{number:ji},__type__:{object:Uo,string:Za}},mono:{color:{string:Za},size:{number:ji},face:{string:Za},mod:{string:Za},vadjust:{number:ji},__type__:{object:Uo,string:Za}},__type__:{object:Uo,string:Za}},hidden:{boolean:Pa},hoverWidth:{function:"function",number:ji},label:{string:Za,undefined:"undefined"},labelHighlightBold:{boolean:Pa},length:{number:ji,undefined:"undefined"},physics:{boolean:Pa},scaling:{min:{number:ji},max:{number:ji},label:{enabled:{boolean:Pa},min:{number:ji},max:{number:ji},maxVisible:{number:ji},drawThreshold:{number:ji},__type__:{object:Uo,boolean:Pa}},customScalingFunction:{function:"function"},__type__:{object:Uo}},selectionWidth:{function:"function",number:ji},selfReferenceSize:{number:ji},selfReference:{size:{number:ji},angle:{number:ji},renderBehindTheNode:{boolean:Pa},__type__:{object:Uo}},shadow:{enabled:{boolean:Pa},color:{string:Za},size:{number:ji},x:{number:ji},y:{number:ji},__type__:{object:Uo,boolean:Pa}},smooth:{enabled:{boolean:Pa},type:{string:["dynamic","continuous","discrete","diagonalCross","straightCross","horizontal","vertical","curvedCW","curvedCCW","cubicBezier"]},roundness:{number:ji},forceDirection:{string:["horizontal","vertical","none"],boolean:Pa},__type__:{object:Uo,boolean:Pa}},title:{string:Za,undefined:"undefined"},width:{number:ji},widthConstraint:{maximum:{number:ji},__type__:{object:Uo,boolean:Pa,number:ji}},value:{number:ji,undefined:"undefined"},__type__:{object:Uo}},groups:{useDefaultGroups:{boolean:Pa},__any__:_7,__type__:{object:Uo}},interaction:{dragNodes:{boolean:Pa},dragView:{boolean:Pa},hideEdgesOnDrag:{boolean:Pa},hideEdgesOnZoom:{boolean:Pa},hideNodesOnDrag:{boolean:Pa},hover:{boolean:Pa},keyboard:{enabled:{boolean:Pa},speed:{x:{number:ji},y:{number:ji},zoom:{number:ji},__type__:{object:Uo}},bindToWindow:{boolean:Pa},autoFocus:{boolean:Pa},__type__:{object:Uo,boolean:Pa}},multiselect:{boolean:Pa},navigationButtons:{boolean:Pa},selectable:{boolean:Pa},selectConnectedEdges:{boolean:Pa},hoverConnectedEdges:{boolean:Pa},tooltipDelay:{number:ji},zoomView:{boolean:Pa},zoomSpeed:{number:ji},__type__:{object:Uo}},layout:{randomSeed:{undefined:"undefined",number:ji,string:Za},improvedLayout:{boolean:Pa},clusterThreshold:{number:ji},hierarchical:{enabled:{boolean:Pa},levelSeparation:{number:ji},nodeSpacing:{number:ji},treeSpacing:{number:ji},blockShifting:{boolean:Pa},edgeMinimization:{boolean:Pa},parentCentralization:{boolean:Pa},direction:{string:["UD","DU","LR","RL"]},sortMethod:{string:["hubsize","directed"]},shakeTowards:{string:["leaves","roots"]},__type__:{object:Uo,boolean:Pa}},__type__:{object:Uo}},manipulation:{enabled:{boolean:Pa},initiallyActive:{boolean:Pa},addNode:{boolean:Pa,function:"function"},addEdge:{boolean:Pa,function:"function"},editNode:{function:"function"},editEdge:{editWithoutDrag:{function:"function"},__type__:{object:Uo,boolean:Pa,function:"function"}},deleteNode:{boolean:Pa,function:"function"},deleteEdge:{boolean:Pa,function:"function"},controlNodeStyle:_7,__type__:{object:Uo,boolean:Pa}},nodes:_7,physics:{enabled:{boolean:Pa},barnesHut:{theta:{number:ji},gravitationalConstant:{number:ji},centralGravity:{number:ji},springLength:{number:ji},springConstant:{number:ji},damping:{number:ji},avoidOverlap:{number:ji},__type__:{object:Uo}},forceAtlas2Based:{theta:{number:ji},gravitationalConstant:{number:ji},centralGravity:{number:ji},springLength:{number:ji},springConstant:{number:ji},damping:{number:ji},avoidOverlap:{number:ji},__type__:{object:Uo}},repulsion:{centralGravity:{number:ji},springLength:{number:ji},springConstant:{number:ji},nodeDistance:{number:ji},damping:{number:ji},__type__:{object:Uo}},hierarchicalRepulsion:{centralGravity:{number:ji},springLength:{number:ji},springConstant:{number:ji},nodeDistance:{number:ji},damping:{number:ji},avoidOverlap:{number:ji},__type__:{object:Uo}},maxVelocity:{number:ji},minVelocity:{number:ji},solver:{string:["barnesHut","repulsion","hierarchicalRepulsion","forceAtlas2Based"]},stabilization:{enabled:{boolean:Pa},iterations:{number:ji},updateInterval:{number:ji},onlyDynamicEdges:{boolean:Pa},fit:{boolean:Pa},__type__:{object:Uo,boolean:Pa}},timestep:{number:ji},adaptiveTimestep:{boolean:Pa},wind:{x:{number:ji},y:{number:ji},__type__:{object:Uo}},__type__:{object:Uo,boolean:Pa}},autoResize:{boolean:Pa},clickToUse:{boolean:Pa},locale:{string:Za},locales:{__any__:{any:bft},__type__:{object:Uo}},height:{string:Za},width:{string:Za},__type__:{object:Uo}},zye={nodes:{borderWidth:[1,0,10,1],borderWidthSelected:[2,0,10,1],color:{border:["color","#2B7CE9"],background:["color","#97C2FC"],highlight:{border:["color","#2B7CE9"],background:["color","#D2E5FF"]},hover:{border:["color","#2B7CE9"],background:["color","#D2E5FF"]}},opacity:[0,0,1,.1],fixed:{x:!1,y:!1},font:{color:["color","#343434"],size:[14,0,100,1],face:["arial","verdana","tahoma"],background:["color","none"],strokeWidth:[0,0,50,1],strokeColor:["color","#ffffff"]},hidden:!1,labelHighlightBold:!0,physics:!0,scaling:{min:[10,0,200,1],max:[30,0,200,1],label:{enabled:!1,min:[14,0,200,1],max:[30,0,200,1],maxVisible:[30,0,200,1],drawThreshold:[5,0,20,1]}},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:[10,0,20,1],x:[5,-30,30,1],y:[5,-30,30,1]},shape:["ellipse","box","circle","database","diamond","dot","square","star","text","triangle","triangleDown","hexagon"],shapeProperties:{borderDashes:!1,borderRadius:[6,0,20,1],interpolation:!0,useImageSize:!1},size:[25,0,200,1]},edges:{arrows:{to:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"},middle:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"},from:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"}},endPointOffset:{from:[0,-10,10,1],to:[0,-10,10,1]},arrowStrikethrough:!0,color:{color:["color","#848484"],highlight:["color","#848484"],hover:["color","#848484"],inherit:["from","to","both",!0,!1],opacity:[1,0,1,.05]},dashes:!1,font:{color:["color","#343434"],size:[14,0,100,1],face:["arial","verdana","tahoma"],background:["color","none"],strokeWidth:[2,0,50,1],strokeColor:["color","#ffffff"],align:["horizontal","top","middle","bottom"]},hidden:!1,hoverWidth:[1.5,0,5,.1],labelHighlightBold:!0,physics:!0,scaling:{min:[1,0,100,1],max:[15,0,100,1],label:{enabled:!0,min:[14,0,200,1],max:[30,0,200,1],maxVisible:[30,0,200,1],drawThreshold:[5,0,20,1]}},selectionWidth:[1.5,0,5,.1],selfReferenceSize:[20,0,200,1],selfReference:{size:[20,0,200,1],angle:[Math.PI/2,-6*Math.PI,6*Math.PI,Math.PI/8],renderBehindTheNode:!0},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:[10,0,20,1],x:[5,-30,30,1],y:[5,-30,30,1]},smooth:{enabled:!0,type:["dynamic","continuous","discrete","diagonalCross","straightCross","horizontal","vertical","curvedCW","curvedCCW","cubicBezier"],forceDirection:["horizontal","vertical","none"],roundness:[.5,0,1,.05]},width:[1,0,30,1]},layout:{hierarchical:{enabled:!1,levelSeparation:[150,20,500,5],nodeSpacing:[100,20,500,5],treeSpacing:[200,20,500,5],blockShifting:!0,edgeMinimization:!0,parentCentralization:!0,direction:["UD","DU","LR","RL"],sortMethod:["hubsize","directed"],shakeTowards:["leaves","roots"]}},interaction:{dragNodes:!0,dragView:!0,hideEdgesOnDrag:!1,hideEdgesOnZoom:!1,hideNodesOnDrag:!1,hover:!1,keyboard:{enabled:!1,speed:{x:[10,0,40,1],y:[10,0,40,1],zoom:[.02,0,.1,.005]},bindToWindow:!0,autoFocus:!0},multiselect:!1,navigationButtons:!1,selectable:!0,selectConnectedEdges:!0,hoverConnectedEdges:!0,tooltipDelay:[300,0,1e3,25],zoomView:!0,zoomSpeed:[1,.1,2,.1]},manipulation:{enabled:!1,initiallyActive:!1},physics:{enabled:!0,barnesHut:{theta:[.5,.1,1,.05],gravitationalConstant:[-2e3,-3e4,0,50],centralGravity:[.3,0,10,.05],springLength:[95,0,500,5],springConstant:[.04,0,1.2,.005],damping:[.09,0,1,.01],avoidOverlap:[0,0,1,.01]},forceAtlas2Based:{theta:[.5,.1,1,.05],gravitationalConstant:[-50,-500,0,1],centralGravity:[.01,0,1,.005],springLength:[95,0,500,5],springConstant:[.08,0,1.2,.005],damping:[.4,0,1,.01],avoidOverlap:[0,0,1,.01]},repulsion:{centralGravity:[.2,0,10,.05],springLength:[200,0,500,5],springConstant:[.05,0,1.2,.005],nodeDistance:[100,0,500,5],damping:[.09,0,1,.01]},hierarchicalRepulsion:{centralGravity:[.2,0,10,.05],springLength:[100,0,500,5],springConstant:[.01,0,1.2,.005],nodeDistance:[120,0,500,5],damping:[.09,0,1,.01],avoidOverlap:[0,0,1,.01]},maxVelocity:[50,0,150,1],minVelocity:[.1,.01,.5,.01],solver:["barnesHut","forceAtlas2Based","repulsion","hierarchicalRepulsion"],timestep:[.5,.01,1,.01],wind:{x:[0,-10,10,.1],y:[0,-10,10,.1]}}},wft=function(r,e,n){var a;return!!(MC(r).call(r,"physics")&&MC(a=zye.physics.solver).call(a,e)&&n.physics.solver!==e&&e!=="wind")},Tft=function(){function t(){Va(this,t)}return Ga(t,[{key:"getDistances",value:function(e,n,a){for(var l={},o=e.edges,f=0;f<n.length;f++){var i=n[f],s={};l[i]=s;for(var d=0;d<n.length;d++)s[n[d]]=f==d?0:1e9}for(var u=0;u<a.length;u++){var h=o[a[u]];h.connected===!0&&l[h.fromId]!==void 0&&l[h.toId]!==void 0&&(l[h.fromId][h.toId]=1,l[h.toId][h.fromId]=1)}for(var y=n.length,b=0;b<y;b++)for(var C=n[b],m=l[C],c=0;c<y-1;c++)for(var v=n[c],g=l[v],p=c+1;p<y;p++){var I=n[p],A=l[I],_=Math.min(g[I],g[C]+m[I]);g[I]=_,A[v]=_}return l}}]),t}(),_ft=function(){function t(r,e,n){Va(this,t),this.body=r,this.springLength=e,this.springConstant=n,this.distanceSolver=new Tft}return Ga(t,[{key:"setOptions",value:function(e){e&&(e.springLength&&(this.springLength=e.springLength),e.springConstant&&(this.springConstant=e.springConstant))}},{key:"solve",value:function(e,n){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,l=this.distanceSolver.getDistances(this.body,e,n);this._createL_matrix(l),this._createK_matrix(l),this._createE_matrix();for(var o=.01,f=1,i=0,s=Math.max(1e3,Math.min(10*this.body.nodeIndices.length,6e3)),d=5,u=1e9,h=0,y=0,b=0,C=0,m=0;u>o&&i<s;){i+=1;var c=this._getHighestEnergyNode(a),v=ml(c,4);for(h=v[0],u=v[1],y=v[2],b=v[3],C=u,m=0;C>f&&m<d;){m+=1,this._moveNode(h,y,b);var g=this._getEnergy(h),p=ml(g,3);C=p[0],y=p[1],b=p[2]}}}},{key:"_getHighestEnergyNode",value:function(e){for(var n=this.body.nodeIndices,a=this.body.nodes,l=0,o=n[0],f=0,i=0,s=0;s<n.length;s++){var d=n[s];if(a[d].predefinedPosition!==!0||a[d].isCluster===!0&&e===!0||a[d].options.fixed.x!==!0||a[d].options.fixed.y!==!0){var u=this._getEnergy(d),h=ml(u,3),y=h[0],b=h[1],C=h[2];l<y&&(l=y,o=d,f=b,i=C)}}return[o,l,f,i]}},{key:"_getEnergy",value:function(e){var n=ml(this.E_sums[e],2),a=n[0],l=n[1],o=Math.sqrt(Math.pow(a,2)+Math.pow(l,2));return[o,a,l]}},{key:"_moveNode",value:function(e,n,a){for(var l=this.body.nodeIndices,o=this.body.nodes,f=0,i=0,s=0,d=o[e].x,u=o[e].y,h=this.K_matrix[e],y=this.L_matrix[e],b=0;b<l.length;b++){var C=l[b];if(C!==e){var m=o[C].x,c=o[C].y,v=h[C],g=y[C],p=1/Math.pow(Math.pow(d-m,2)+Math.pow(u-c,2),1.5);f+=v*(1-g*Math.pow(u-c,2)*p),i+=v*(g*(d-m)*(u-c)*p),s+=v*(1-g*Math.pow(d-m,2)*p)}}var I=f,A=i,_=n,w=s,E=a,x=(_/I+E/A)/(A/I-w/A),S=-(A*x+_)/I;o[e].x+=S,o[e].y+=x,this._updateE_matrix(e)}},{key:"_createL_matrix",value:function(e){var n=this.body.nodeIndices,a=this.springLength;this.L_matrix=[];for(var l=0;l<n.length;l++){this.L_matrix[n[l]]={};for(var o=0;o<n.length;o++)this.L_matrix[n[l]][n[o]]=a*e[n[l]][n[o]]}}},{key:"_createK_matrix",value:function(e){var n=this.body.nodeIndices,a=this.springConstant;this.K_matrix=[];for(var l=0;l<n.length;l++){this.K_matrix[n[l]]={};for(var o=0;o<n.length;o++)this.K_matrix[n[l]][n[o]]=a*Math.pow(e[n[l]][n[o]],-2)}}},{key:"_createE_matrix",value:function(){var e=this.body.nodeIndices,n=this.body.nodes;this.E_matrix={},this.E_sums={};for(var a=0;a<e.length;a++)this.E_matrix[e[a]]=[];for(var l=0;l<e.length;l++){for(var o=e[l],f=n[o].x,i=n[o].y,s=0,d=0,u=l;u<e.length;u++){var h=e[u];if(h!==o){var y=n[h].x,b=n[h].y,C=1/Math.sqrt(Math.pow(f-y,2)+Math.pow(i-b,2));this.E_matrix[o][u]=[this.K_matrix[o][h]*(f-y-this.L_matrix[o][h]*(f-y)*C),this.K_matrix[o][h]*(i-b-this.L_matrix[o][h]*(i-b)*C)],this.E_matrix[h][l]=this.E_matrix[o][u],s+=this.E_matrix[o][u][0],d+=this.E_matrix[o][u][1]}}this.E_sums[o]=[s,d]}}},{key:"_updateE_matrix",value:function(e){for(var n=this.body.nodeIndices,a=this.body.nodes,l=this.E_matrix[e],o=this.K_matrix[e],f=this.L_matrix[e],i=a[e].x,s=a[e].y,d=0,u=0,h=0;h<n.length;h++){var y=n[h];if(y!==e){var b=l[h],C=b[0],m=b[1],c=a[y].x,v=a[y].y,g=1/Math.sqrt(Math.pow(i-c,2)+Math.pow(s-v,2)),p=o[y]*(i-c-f[y]*(i-c)*g),I=o[y]*(s-v-f[y]*(s-v)*g);l[h]=[p,I],d+=p,u+=I;var A=this.E_sums[y];A[0]+=p-C,A[1]+=I-m}}this.E_sums[e]=[d,u]}}]),t}();function No(t,r,e){var n,a,l,o,f=this;if(!(this instanceof No))throw new SyntaxError("Constructor must be called with the new operator");this.options={},this.defaultOptions={locale:"en",locales:hJe,clickToUse:!1},Lf(this.options,this.defaultOptions),this.body={container:t,nodes:{},nodeIndices:[],edges:{},edgeIndices:[],emitter:{on:Oa(n=this.on).call(n,this),off:Oa(a=this.off).call(a,this),emit:Oa(l=this.emit).call(l,this),once:Oa(o=this.once).call(o,this)},eventListeners:{onTap:function(){},onTouch:function(){},onDoubleTap:function(){},onHold:function(){},onDragStart:function(){},onDrag:function(){},onDragEnd:function(){},onMouseWheel:function(){},onPinch:function(){},onMouseMove:function(){},onRelease:function(){},onContext:function(){}},data:{nodes:null,edges:null},functions:{createNode:function(){},createEdge:function(){},getPointer:function(){}},modules:{},view:{scale:1,translation:{x:0,y:0}},selectionBox:{show:!1,position:{start:{x:0,y:0},end:{x:0,y:0}}}},this.bindEventListeners(),this.images=new gJe(function(){return f.body.emitter.emit("_requestRedraw")}),this.groups=new Pqe,this.canvas=new fct(this.body),this.selectionHandler=new Xct(this.body,this.canvas),this.interactionHandler=new yct(this.body,this.canvas,this.selectionHandler),this.view=new dct(this.body,this.canvas),this.renderer=new oct(this.body,this.canvas),this.physics=new ect(this.body),this.layoutEngine=new mft(this.body),this.clustering=new ict(this.body),this.manipulation=new Ift(this.body,this.canvas,this.selectionHandler,this.interactionHandler),this.nodesHandler=new Flt(this.body,this.images,this.groups,this.layoutEngine),this.edgesHandler=new Vut(this.body,this.images,this.groups),this.body.modules.kamadaKawai=new _ft(this.body,150,.05),this.body.modules.clustering=this.clustering,this.canvas._create(),this.setOptions(e),this.setData(r)}jge(No.prototype);No.prototype.setOptions=function(t){var r=this;if(t===null&&(t=void 0),t!==void 0){var e=jQe.validate(t,xft);e===!0&&console.error("%cErrors have been found in the supplied options object.",s0e);var n=["locale","locales","clickToUse"];if(z3(n,this.options,t),t.locale!==void 0&&(t.locale=dJe(t.locales||this.options.locales,t.locale)),t=this.layoutEngine.setOptions(t.layout,t),this.canvas.setOptions(t),this.groups.setOptions(t.groups),this.nodesHandler.setOptions(t.nodes),this.edgesHandler.setOptions(t.edges),this.physics.setOptions(t.physics),this.manipulation.setOptions(t.manipulation,t,this.options),this.interactionHandler.setOptions(t.interaction),this.renderer.setOptions(t.interaction),this.selectionHandler.setOptions(t.interaction),t.groups!==void 0&&this.body.emitter.emit("refreshNodes"),"configure"in t&&(this.configurator||(this.configurator=new UQe(this,this.body.container,zye,this.canvas.pixelRatio,wft)),this.configurator.setOptions(t.configure)),this.configurator&&this.configurator.options.enabled===!0){var a={nodes:{},edges:{},layout:{},interaction:{},manipulation:{},physics:{},global:{}};ju(a.nodes,this.nodesHandler.options),ju(a.edges,this.edgesHandler.options),ju(a.layout,this.layoutEngine.options),ju(a.interaction,this.selectionHandler.options),ju(a.interaction,this.renderer.options),ju(a.interaction,this.interactionHandler.options),ju(a.manipulation,this.manipulation.options),ju(a.physics,this.physics.options),ju(a.global,this.canvas.options),ju(a.global,this.options),this.configurator.setModuleOptions(a)}t.clickToUse!==void 0?t.clickToUse===!0?this.activator===void 0&&(this.activator=new $Qe(this.canvas.frame),this.activator.on("change",function(){r.body.emitter.emit("activate")})):(this.activator!==void 0&&(this.activator.destroy(),delete this.activator),this.body.emitter.emit("activate")):this.body.emitter.emit("activate"),this.canvas.setSize(),this.body.emitter.emit("startSimulation")}};No.prototype._updateVisibleIndices=function(){var t=this.body.nodes,r=this.body.edges;this.body.nodeIndices=[],this.body.edgeIndices=[];for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&!this.clustering._isClusteredNode(e)&&t[e].options.hidden===!1&&this.body.nodeIndices.push(t[e].id);for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n)){var a=r[n],l=t[a.fromId],o=t[a.toId],f=l!==void 0&&o!==void 0,i=!this.clustering._isClusteredEdge(n)&&a.options.hidden===!1&&f&&l.options.hidden===!1&&o.options.hidden===!1;i&&this.body.edgeIndices.push(a.id)}};No.prototype.bindEventListeners=function(){var t=this;this.body.emitter.on("_dataChanged",function(){t.edgesHandler._updateState(),t.body.emitter.emit("_dataUpdated")}),this.body.emitter.on("_dataUpdated",function(){t.clustering._updateState(),t._updateVisibleIndices(),t._updateValueRange(t.body.nodes),t._updateValueRange(t.body.edges),t.body.emitter.emit("startSimulation"),t.body.emitter.emit("_requestRedraw")})};No.prototype.setData=function(t){if(this.body.emitter.emit("resetPhysics"),this.body.emitter.emit("_resetData"),this.selectionHandler.unselectAll(),t&&t.dot&&(t.nodes||t.edges))throw new SyntaxError('Data must contain either parameter "dot" or parameter pair "nodes" and "edges", but not both.');if(this.setOptions(t&&t.options),t&&t.dot){console.warn("The dot property has been deprecated. Please use the static convertDot method to convert DOT into vis.network format and use the normal data format with nodes and edges. This converter is used like this: var data = vis.network.convertDot(dotString);");var r=qQe(t.dot);this.setData(r);return}else if(t&&t.gephi){console.warn("The gephi property has been deprecated. Please use the static convertGephi method to convert gephi into vis.network format and use the normal data format with nodes and edges. This converter is used like this: var data = vis.network.convertGephi(gephiJson);");var e=eJe(t.gephi);this.setData(e);return}else this.nodesHandler.setData(t&&t.nodes,!0),this.edgesHandler.setData(t&&t.edges,!0);this.body.emitter.emit("_dataChanged"),this.body.emitter.emit("_dataLoaded"),this.body.emitter.emit("initPhysics")};No.prototype.destroy=function(){this.body.emitter.emit("destroy"),this.body.emitter.off(),this.off(),delete this.groups,delete this.canvas,delete this.selectionHandler,delete this.interactionHandler,delete this.view,delete this.renderer,delete this.physics,delete this.layoutEngine,delete this.clustering,delete this.manipulation,delete this.nodesHandler,delete this.edgesHandler,delete this.configurator,delete this.images;for(var t in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,t)&&delete this.body.nodes[t];for(var r in this.body.edges)Object.prototype.hasOwnProperty.call(this.body.edges,r)&&delete this.body.edges[r];rC(this.body.container)};No.prototype._updateValueRange=function(t){var r,e=void 0,n=void 0,a=0;for(r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var l=t[r].getValue();l!==void 0&&(e=e===void 0?l:Math.min(l,e),n=n===void 0?l:Math.max(l,n),a+=l)}if(e!==void 0&&n!==void 0)for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&t[r].setValueRange(e,n,a)};No.prototype.isActive=function(){return!this.activator||this.activator.active};No.prototype.setSize=function(){return this.canvas.setSize.apply(this.canvas,arguments)};No.prototype.canvasToDOM=function(){return this.canvas.canvasToDOM.apply(this.canvas,arguments)};No.prototype.DOMtoCanvas=function(){return this.canvas.DOMtoCanvas.apply(this.canvas,arguments)};No.prototype.findNode=function(){return this.clustering.findNode.apply(this.clustering,arguments)};No.prototype.isCluster=function(){return this.clustering.isCluster.apply(this.clustering,arguments)};No.prototype.openCluster=function(){return this.clustering.openCluster.apply(this.clustering,arguments)};No.prototype.cluster=function(){return this.clustering.cluster.apply(this.clustering,arguments)};No.prototype.getNodesInCluster=function(){return this.clustering.getNodesInCluster.apply(this.clustering,arguments)};No.prototype.clusterByConnection=function(){return this.clustering.clusterByConnection.apply(this.clustering,arguments)};No.prototype.clusterByHubsize=function(){return this.clustering.clusterByHubsize.apply(this.clustering,arguments)};No.prototype.updateClusteredNode=function(){return this.clustering.updateClusteredNode.apply(this.clustering,arguments)};No.prototype.getClusteredEdges=function(){return this.clustering.getClusteredEdges.apply(this.clustering,arguments)};No.prototype.getBaseEdge=function(){return this.clustering.getBaseEdge.apply(this.clustering,arguments)};No.prototype.getBaseEdges=function(){return this.clustering.getBaseEdges.apply(this.clustering,arguments)};No.prototype.updateEdge=function(){return this.clustering.updateEdge.apply(this.clustering,arguments)};No.prototype.clusterOutliers=function(){return this.clustering.clusterOutliers.apply(this.clustering,arguments)};No.prototype.getSeed=function(){return this.layoutEngine.getSeed.apply(this.layoutEngine,arguments)};No.prototype.enableEditMode=function(){return this.manipulation.enableEditMode.apply(this.manipulation,arguments)};No.prototype.disableEditMode=function(){return this.manipulation.disableEditMode.apply(this.manipulation,arguments)};No.prototype.addNodeMode=function(){return this.manipulation.addNodeMode.apply(this.manipulation,arguments)};No.prototype.editNode=function(){return this.manipulation.editNode.apply(this.manipulation,arguments)};No.prototype.editNodeMode=function(){return console.warn("Deprecated: Please use editNode instead of editNodeMode."),this.manipulation.editNode.apply(this.manipulation,arguments)};No.prototype.addEdgeMode=function(){return this.manipulation.addEdgeMode.apply(this.manipulation,arguments)};No.prototype.editEdgeMode=function(){return this.manipulation.editEdgeMode.apply(this.manipulation,arguments)};No.prototype.deleteSelected=function(){return this.manipulation.deleteSelected.apply(this.manipulation,arguments)};No.prototype.getPositions=function(){return this.nodesHandler.getPositions.apply(this.nodesHandler,arguments)};No.prototype.getPosition=function(){return this.nodesHandler.getPosition.apply(this.nodesHandler,arguments)};No.prototype.storePositions=function(){return this.nodesHandler.storePositions.apply(this.nodesHandler,arguments)};No.prototype.moveNode=function(){return this.nodesHandler.moveNode.apply(this.nodesHandler,arguments)};No.prototype.getBoundingBox=function(){return this.nodesHandler.getBoundingBox.apply(this.nodesHandler,arguments)};No.prototype.getConnectedNodes=function(t){return this.body.nodes[t]!==void 0?this.nodesHandler.getConnectedNodes.apply(this.nodesHandler,arguments):this.edgesHandler.getConnectedNodes.apply(this.edgesHandler,arguments)};No.prototype.getConnectedEdges=function(){return this.nodesHandler.getConnectedEdges.apply(this.nodesHandler,arguments)};No.prototype.startSimulation=function(){return this.physics.startSimulation.apply(this.physics,arguments)};No.prototype.stopSimulation=function(){return this.physics.stopSimulation.apply(this.physics,arguments)};No.prototype.stabilize=function(){return this.physics.stabilize.apply(this.physics,arguments)};No.prototype.getSelection=function(){return this.selectionHandler.getSelection.apply(this.selectionHandler,arguments)};No.prototype.setSelection=function(){return this.selectionHandler.setSelection.apply(this.selectionHandler,arguments)};No.prototype.getSelectedNodes=function(){return this.selectionHandler.getSelectedNodeIds.apply(this.selectionHandler,arguments)};No.prototype.getSelectedEdges=function(){return this.selectionHandler.getSelectedEdgeIds.apply(this.selectionHandler,arguments)};No.prototype.getNodeAt=function(){var t=this.selectionHandler.getNodeAt.apply(this.selectionHandler,arguments);return t!==void 0&&t.id!==void 0?t.id:t};No.prototype.getEdgeAt=function(){var t=this.selectionHandler.getEdgeAt.apply(this.selectionHandler,arguments);return t!==void 0&&t.id!==void 0?t.id:t};No.prototype.selectNodes=function(){return this.selectionHandler.selectNodes.apply(this.selectionHandler,arguments)};No.prototype.selectEdges=function(){return this.selectionHandler.selectEdges.apply(this.selectionHandler,arguments)};No.prototype.unselectAll=function(){this.selectionHandler.unselectAll.apply(this.selectionHandler,arguments),this.selectionHandler.commitWithoutEmitting.apply(this.selectionHandler),this.redraw()};No.prototype.redraw=function(){return this.renderer.redraw.apply(this.renderer,arguments)};No.prototype.getScale=function(){return this.view.getScale.apply(this.view,arguments)};No.prototype.getViewPosition=function(){return this.view.getViewPosition.apply(this.view,arguments)};No.prototype.fit=function(){return this.view.fit.apply(this.view,arguments)};No.prototype.moveTo=function(){return this.view.moveTo.apply(this.view,arguments)};No.prototype.focus=function(){return this.view.focus.apply(this.view,arguments)};No.prototype.releaseNode=function(){return this.view.releaseNode.apply(this.view,arguments)};No.prototype.getOptionsFromConfigurator=function(){var t={};return this.configurator&&(t=this.configurator.getOptions.apply(this.configurator)),t};const Sft=({data:t,open:r,onClose:e})=>{const n=St.useRef(null),a=St.useRef(null),[l,o]=St.useState(null),f=St.useCallback((h,y=!1)=>{if(h!==null&&n.current){y&&n.current.focus(h,{animation:{duration:500,easingFunction:"easeInOutCubic"}}),n.current.selectNodes([h],!0);const b=t.find(C=>C.id===h);b&&a.current&&(o(d(b)),a.current.classList.add("visible"))}},[t]),i=h=>{const y=h.node_type==="function_start"?"Start ":"",b=h.node_type==="function_end"?"end":"";return h.params.name?`${y+h.params.name}() ${b}`:h.node_type},s=h=>h&&tt.jsx("div",{className:"memory-color-block",style:{backgroundColor:rp(h)}}),d=h=>{const y=s(h.params.tensor_id),b=Object.entries(h.params).map(([C,m])=>tt.jsxs("div",{children:[tt.jsxs("strong",{children:[C,":"]})," ",m,tt.jsx("br",{})]},C));return tt.jsxs(tt.Fragment,{children:["ID: ",h.id,y,tt.jsx("strong",{children:i(h)}),tt.jsx("br",{}),b.map(C=>C)]})},u=St.useCallback(h=>{if(!h)return;const y=new d5(t.map(c=>(c.node_type,is.function_start,c.node_type,is.function_end,{id:c.id,label:`${c.id} ${i(c)}`,shape:"box"}))),b=t.flatMap(c=>c.connections.map(v=>({from:c.id,to:v}))),C={nodes:y,edges:b},m={nodes:{font:{color:"#202020"},color:{background:"#ccd2f9",border:"none",hover:{background:"#9ca8f2",border:"none"},highlight:{background:"#74c5df",border:"#f6bc42"}},size:20,labelHighlightBold:!1},edges:{font:{color:"#f5e2ba",size:20,strokeColor:"#000"},color:"#f5e2ba",arrows:{to:{enabled:!0,scaleFactor:1}}},autoResize:!0,layout:{hierarchical:{enabled:!0,levelSeparation:200,nodeSpacing:300,treeSpacing:1,blockShifting:!0,edgeMinimization:!0,direction:"UD",sortMethod:"hubsize",shakeTowards:"roots"}},interaction:{dragNodes:!0,dragView:!0,zoomView:!0,zoomSpeed:.4},physics:{enabled:!1,solver:"forceAtlas2Based",forceAtlas2Based:{gravitationalConstant:-30,centralGravity:.01,springLength:100,springConstant:.08},stabilization:{enabled:!0,iterations:1e3}}};n.current=new No(h,C,m),n.current.on("blurNode",()=>{a.current&&a.current.classList.remove("visible")}),n.current.on("dragStart",()=>{a.current&&a.current.classList.remove("visible")}),n.current.on("click",c=>{if(a.current&&a.current.classList.remove("visible"),c.nodes.length>0){const v=c.nodes[0];f(v)}else if(c.edges.length>0){const v=c.edges[0],g=b.find(p=>p.id===v);f((g==null?void 0:g.to)||null,!0)}})},[t,f]);return St.useEffect(()=>()=>{n.current&&n.current.destroy()},[]),tt.jsx(eA,{isOpen:r,enforceFocus:!0,hasBackdrop:!0,usePortal:!0,canEscapeKeyClose:!0,transitionDuration:0,onClose:e,canOutsideClickClose:!0,portalClassName:"tensor-visualisation-overlay",children:tt.jsxs(cO,{className:"tensor-visualisation",children:[tt.jsx("div",{className:"header",children:tt.jsx("h3",{className:"title",children:tt.jsx(qa,{icon:Ui.CROSS,variant:"minimal",size:"small",onClick:e})})}),tt.jsxs("div",{className:"graph-component",children:[tt.jsx("div",{className:"graph",ref:u}),tt.jsx("div",{className:"graph-tooltip",ref:a,children:l})]}),tt.jsx("div",{children:tt.jsx("aside",{children:"Scroll to zoom. Drag to pan. Click an edge to go to connecting node. Click node to see details. Drag nodes horizontally."})})]})})},Px=({chunk:t,memSize:r,selectedTensorAddress:e,operationDetails:n,onLegendClick:a,colorVariance:l,bufferType:o,layout:f,isMultiDeviceBuffer:i=!1,className:s,numCores:d})=>{const u=t.empty?"div":"button",h=tt.jsxs(tt.Fragment,{children:[tt.jsx("span",{children:"Empty space "}),t.largestEmpty&&tt.jsx(Es,{content:"Largest empty memory space",children:tt.jsx(fl,{size:14,icon:Ui.SMALL_INFO_SIGN})})]}),y=n.getTensorForAddress(t.address),b=d&&d>1?` x ${d}`:"";return tt.jsxs(u,{className:Di("legend-item",{button:!t.empty,active:e===t.address,dimmed:e!==null&&e!==t.address,"extra-info":o||f},s),...t.empty?{}:{type:"button",onClick:()=>a(t.address,t.tensorId)},children:[tt.jsx("div",{className:Di("memory-color-block",{empty:t.empty}),style:{...t.empty?{}:{backgroundColor:t.tensorId||y?rp(t.tensorId)||rp(y==null?void 0:y.id):Zx(t.address+(l||0))}}}),tt.jsx("div",{className:"format-numbers monospace",children:$G(t.address,r)}),tt.jsxs("div",{className:"format-numbers monospace keep-left",children:["(",rA(t.address),")"]}),tt.jsxs("div",{className:"format-numbers monospace nowrap",children:[zd(t.size),b]}),tt.jsxs("div",{children:[!i&&!t.empty&&y&&tt.jsxs(tt.Fragment,{children:[y.operationIdentifier," : Tensor ",y.id]}),!i&&t.empty&&h]}),(o||f)&&tt.jsxs("div",{className:"extra-info-slot",children:[o&&tt.jsxs("span",{className:"monospace",children:[wx[o]," "]}),f&&tt.jsx("span",{className:"monospace",children:nve[f]})]}),tt.jsx("div",{className:"shape-info-slot",children:y&&tt.jsxs(tt.Fragment,{children:[q0(y.shape)," ",ZC(y.dtype)," "," ",i&&`Device ${(t==null?void 0:t.device_id)??y.device_id}`]})})]},t.address)},Bye=({group:t,memSize:r,selectedTensorAddress:e,operationDetails:n,onLegendClick:a})=>{const[l,o]=St.useState(!1);return tt.jsxs(tt.Fragment,{children:[tt.jsxs("div",{className:"group-header",children:[tt.jsx(Px,{className:"details",chunk:t[0],memSize:r,selectedTensorAddress:e,operationDetails:n,onLegendClick:a,isGroupHeader:!0}),tt.jsxs("strong",{children:["x",t.length]}),tt.jsx(qa,{className:"collapse-toggle",onClick:f=>{f.stopPropagation(),o(!l)},endIcon:l?Ui.CARET_UP:Ui.CARET_DOWN,size:"small",variant:"minimal"})]}),tt.jsx(xG,{isOpen:l,keepChildrenMounted:!0,children:tt.jsx("div",{className:"grouped-legend-elements",children:t.map((f,i)=>tt.jsx(Px,{chunk:f,memSize:r,selectedTensorAddress:e,operationDetails:n,onLegendClick:a,isMultiDeviceBuffer:!0},`${f.address}-${i}`))})})]})},e2=.9998,Eft=8;function Mft({operationDetails:t,previousOperationDetails:r,zoomedInViewMainMemory:e,onDramBufferClick:n,onDramDeltaClick:a,onLegendClick:l}){var A,_;const o=tf(Wx),{chartData:f,memory:i}=t.memoryData(id.DRAM),{chartData:s,memory:d}=r.memoryData(id.DRAM),u=e5(i,d),h=[...i].sort((w,E)=>w.address-E.address),y=h.filter(w=>!w.empty&&!d.find(E=>E.address===w.address)),b=d.filter(w=>!h.find(E=>E.address===w.address)),C=t.getMemoryDelta(y,b),{getGroupedMemoryReport:m}=t;let c=Math.min(((A=i[0])==null?void 0:A.address)||pv,((_=d[0])==null?void 0:_.address)||pv)*e2,v=Math.max(i.length>0?i[i.length-1].address+i[i.length-1].size:0,d.length>0?d[d.length-1].address+d[d.length-1].size:0)*(1/e2);v<c&&(c=0,v=pv);const g=m(id.DRAM),p=St.useMemo(()=>mre(s),[s]),I=St.useMemo(()=>mre(f),[f]);return tt.jsxs(tt.Fragment,{children:[tt.jsxs("h3",{className:"plot-title",children:["Previous Summarized DRAM Report ",u?" (No changes)":""]}),tt.jsx("div",{className:"zoomed-dram-plots",children:e&&s.length>0?p.map((w,E)=>{const x=w[0],S=w.at(-1);if(!x.memoryData||!(S!=null&&S.memoryData))return null;const T=x.memoryData.address||pv*e2,L=S.memoryData.address+S.memoryData.size*(1/e2);return v<c&&(c=0,v=pv),tt.jsx(Yp,{className:Di("dram-memory-renderer",{"empty-plot":f.length===0}),style:{flexBasis:yre(p)[E]},plotZoomRange:[T,L],chartDataList:[w],isZoomedIn:!0,memorySize:pv,onBufferClick:n,configuration:{...fS,...pre(T,L)}},E)}):tt.jsx(Yp,{className:Di("dram-memory-renderer",{"empty-plot":s.length===0,"identical-plot":u}),plotZoomRange:[c,v],chartDataList:[s],isZoomedIn:e,memorySize:pv,configuration:fS})}),tt.jsx("h3",{className:"plot-title",children:"Current Summarized DRAM Report"}),tt.jsx("div",{className:"zoomed-dram-plots",children:e&&f.length>0?I.map((w,E)=>{const x=w[0],S=w.at(-1);if(!x.memoryData||!(S!=null&&S.memoryData))return null;const T=x.memoryData.address||pv*e2,L=S.memoryData.address+S.memoryData.size*(1/e2);return v<c&&(c=0,v=pv),tt.jsx(Yp,{className:Di("dram-memory-renderer",{"empty-plot":f.length===0}),style:{flexBasis:yre(p)[E]},plotZoomRange:[T,L],chartDataList:[w],isZoomedIn:!0,memorySize:pv,onBufferClick:n,configuration:{...fS,...pre(T,L)}},E)}):tt.jsx(Yp,{className:Di("dram-memory-renderer",{"empty-plot":f.length===0}),plotZoomRange:[c,v],chartDataList:[f],isZoomedIn:e,memorySize:pv,onBufferClick:n,configuration:fS})}),tt.jsx("h3",{className:"plot-title",children:"DRAM Delta (difference between current and previous operation)"}),tt.jsx(Yp,{className:Di("dram-memory-renderer",{"empty-plot":C.chartData.length===0}),plotZoomRange:[c,v],chartDataList:[C.chartData],isZoomedIn:e,memorySize:pv,onBufferClick:a,configuration:fS}),tt.jsx("div",{className:Di("legend",{"lengthy-legend":h.length>lge}),children:h==null?void 0:h.map((w,E)=>{const x=g.get(w.address);return Array.isArray(x)&&(x==null?void 0:x.length)>1?tt.jsx(Bye,{group:x,memSize:pv,selectedTensorAddress:o,operationDetails:t,onLegendClick:l},`${w.address}`):tt.jsx(Px,{chunk:w,memSize:pv,selectedTensorAddress:o,operationDetails:t,onLegendClick:l},`${w.address}-${E}`)})})]})}const pre=(t,r)=>({title:"",xAxis:{tickmode:"array",tickvals:[t,r]}}),mre=t=>{var l,o,f,i,s;const r=[],e=(l=t.at(-1))==null?void 0:l.memoryData,n=e?(e.address+e.size)/Eft:0;let a=[];for(let d=0;d<t.length;d++){const u=(f=(o=t==null?void 0:t[d])==null?void 0:o.x)==null?void 0:f[0],h=(s=(i=t==null?void 0:t[d-1])==null?void 0:i.x)==null?void 0:s[0];u-h>n&&(r.push(a),a=[]),a.push(t[d])}return a.length>0&&r.push(a),r},yre=t=>{const r=t.reduce((e,n)=>e+n.reduce((a,l)=>l.memoryData?a+l.memoryData.size:0,0),0);return t.map(e=>{const a=e.reduce((l,o)=>o.memoryData?l+o.memoryData.size:0,0)/r*100;return a<20?"200px":`${a}%`})},S7=.01;function Rft({operationDetails:t,previousOperationDetails:r,zoomedInViewMainMemory:e,plotZoomRangeStart:n,plotZoomRangeEnd:a,showCircularBuffer:l,showL1Small:o,onBufferClick:f,onLegendClick:i}){const s=tf(Wx),{chartData:d,memory:u,fragmentation:h,cbChartData:y,cbChartDataByOperation:b,bufferMemory:C,bufferChartDataByOperation:m}=t.memoryData(),{chartData:c}=r.memoryData(),{chartData:v,memory:g,condensedChart:p}=t.memoryData(id.L1_SMALL),I=t.deviceOperations.map(H=>H.cbList.map(W=>W.address)).flat().sort((H,W)=>H-W)[0],A=t.deviceOperations.map(H=>H.cbList.map(W=>W.address+W.size)).flat().sort((H,W)=>H-W).reverse()[0],_=v.map(H=>{var W;return(W=H==null?void 0:H.memoryData)==null?void 0:W.address}).flat().sort()[0],w=v.map(H=>H!=null&&H.memoryData?H.memoryData.address+H.memoryData.size:0).flat().sort().reverse()[0],E=(A-I)*S7,x=(a-n)*S7,S=(w-_)*S7,[T,L]=St.useState(!1),{memorySizeL1:k,getGroupedMemoryReport:F}=t,D=[...u,...h].sort((H,W)=>H.address-W.address),P=F(id.L1),z=[...D,...t.deviceOperations.map(H=>H.cbList.map(W=>({...W,bufferType:"CB",colorVariance:H.id}))).flat()].sort((H,W)=>H.address-W.address),M=Math.min(...C.map(H=>H.address)),R=Math.max(...C.map(H=>H.address+H.size)),N=Math.min(n,M),O=Math.max(a,R);return tt.jsxs(tt.Fragment,{children:[tt.jsx(Yp,{title:"Previous Summarized L1 Report",className:Di("l1-memory-renderer",{"empty-plot":c.length===0}),plotZoomRange:[N-x,O+x],chartDataList:[c],isZoomedIn:e,memorySize:k,configuration:EU}),tt.jsx(Yp,{title:"Current Summarized L1 Report",className:Di("l1-memory-renderer",{"empty-plot":d.length===0&&b.size===0}),isZoomedIn:e,plotZoomRange:[N-x,O+x],chartDataList:[y,d,g.length>0?p:[]],memorySize:k,onBufferClick:f,configuration:EU}),tt.jsx("h3",{children:"L1 Operation Buffers"}),tt.jsx("br",{}),[...m.entries()].map(([{name:H},W],G)=>tt.jsxs(tt.Fragment,{children:[tt.jsxs("h5",{className:"buffers-plot-title",children:[tt.jsx(fl,{className:"operation-icon",size:13,intent:Po.SUCCESS,icon:Ui.CUBE_ADD})," ",tt.jsx("span",{children:H})]}),tt.jsx(Yp,{title:"",className:"l1-memory-renderer interm-buffers",chartDataList:[W],plotZoomRange:[N-x,O+x],isZoomedIn:e,memorySize:k,configuration:w9e,onBufferClick:f})]},`${H}-${G}`)),o&&tt.jsx(Yp,{title:"Summarized L1 Small Report",className:Di("l1-memory-renderer",{"empty-plot":v.length===0}),isZoomedIn:!0,plotZoomRange:[_-S,w+S],chartDataList:[v],memorySize:k,configuration:b9e,onBufferClick:()=>{}}),l&&b.size>0&&tt.jsxs(tt.Fragment,{children:[tt.jsx("h3",{children:"Device Operations"}),tt.jsx(Cv,{label:"Circular Buffers zoom",checked:T,onChange:()=>{L(!T)}}),[...b.entries()].map(([{name:H},W],G)=>tt.jsxs(tt.Fragment,{children:[tt.jsxs("h3",{className:"circular-buffers-plot-title",children:[tt.jsx(fl,{className:"operation-icon",size:13,intent:Po.SUCCESS,icon:Ui.CUBE_ADD})," ",tt.jsx("span",{children:H})]}),tt.jsx(Yp,{title:"",className:Di("l1-memory-renderer circular-buffers",{"empty-plot":W.length===0}),chartDataList:[W],plotZoomRange:[I-E,A+E],isZoomedIn:T,memorySize:k,configuration:x9e,onBufferClick:f})]},`${H}-${G}`))]}),tt.jsxs("div",{className:Di("legend",{"lengthy-legend":D.length>lge}),children:[l&&z.map((H,W)=>tt.jsx(Px,{chunk:H,memSize:k,selectedTensorAddress:s,operationDetails:t,onLegendClick:i,colorVariance:H.colorVariance},`${H.address}-${W}`)),!l&&(D==null?void 0:D.map((H,W)=>{const G=P.get(H.address);return Array.isArray(G)&&(G==null?void 0:G.length)>1?tt.jsx(Bye,{group:G,memSize:k,selectedTensorAddress:s,operationDetails:t,onLegendClick:i},`${H.address}`):tt.jsx(Px,{chunk:H,memSize:k,selectedTensorAddress:s,operationDetails:t,onLegendClick:i},`${H.address}-${W}`)}))]})]})}function $ye(t,r){const e=t.consumers[t.consumers.length-1],n=r.filter(a=>a.id>e&&a.outputs.some(l=>l.address===t.address));return n==null?void 0:n[0]}function Pft(t){const e=(t-.8)/.19999999999999996,n=Math.round(e*255);return`rgb(${255-n}, ${n}, 0)`}function j2({value:t,label:r}){return tt.jsxs("div",{className:"golden-tensor-comparison",children:[tt.jsxs("span",{children:[tt.jsx("strong",{children:r})," ",t.toFixed(4)]}),tt.jsx("div",{className:"memory-color-block",style:{backgroundColor:Pft(t)}})]})}const Are=({tensor:t,memorySize:r,onTensorClick:e,operationId:n,zoomRange:a})=>{var h,y,b,C,m;const{address:l}=t,{data:o}=dg(),f=o?(h=$ye(t,o))==null?void 0:h.id:null,i=tf(Y5),[s,d]=St.useState(!1),u=(y=t.memory_config)==null?void 0:y.shard_spec;return tt.jsxs("div",{className:Di("tensor-item",{active:t.id===i,dimmed:i!==null&&t.id!==i}),children:[tt.jsxs("div",{className:"tensor-header",children:[tt.jsxs("button",{type:"button",className:"tensor-name",onClick:()=>e(t.address??void 0,t.id),children:[tt.jsx("div",{className:Di("memory-color-block",{"empty-tensor":t.address===null}),style:{backgroundColor:rp(t.id)}}),tt.jsxs("h4",{children:["Tensor ID: ",t.id]}),tt.jsx("h5",{children:t.operationIdentifier})]}),(t.consumers.length>Oy||t.producers.length>Oy)&&tt.jsx(Es,{content:"Unusually high number of consumers",position:il.TOP,className:"warning-icon",children:tt.jsx(fl,{icon:Ui.ISSUE,intent:Po.DANGER})}),og(f)&&og(l)&&o?tt.jsx(Es,{content:`Next allocation of ${rA(l)} in ${f} ${(b=o.find(c=>c.id===f))==null?void 0:b.name}(+${f-n} operations)`,placement:il.TOP,children:tt.jsx(fl,{icon:Ui.INFO_SIGN})}):null,s&&l!==null&&t.buffer_type!==null&&tt.jsx(RU,{title:`${dC[t.buffer_type]} ${q0(t.shape)} ${ZC(t.dtype)} ${t.operationIdentifier} Tensor ${t.id}`,operationId:n,address:l,bufferType:t.buffer_type,isOpen:s,onClose:()=>d(!1),zoomRange:a,tensorId:t.id})]}),tt.jsxs("div",{className:"tensor-meta",children:[tt.jsxs("p",{children:["Address: ",tt.jsxs("strong",{children:[" ",$G(t.address,r)]})]}),t.buffer_type!==null&&tt.jsxs("p",{children:["Buffer type: ",tt.jsx(t5,{memory:dC[t.buffer_type]})]}),tt.jsxs("p",{children:["Shape:",tt.jsxs("strong",{children:[" ",q0(t.shape)]})]}),tt.jsxs("p",{children:["Dtype:",tt.jsxs("strong",{children:[" ",ZC(t.dtype)]})]}),tt.jsxs("p",{children:["Layout:",tt.jsxs("strong",{children:[" ",t.layout]})]}),tt.jsx("p",{children:((C=t.memory_config)==null?void 0:C.memory_layout)&&tt.jsxs(tt.Fragment,{children:["Memory layout:",tt.jsxs("strong",{children:[" ",t.memory_config.memory_layout]})]})}),u?tt.jsxs(tt.Fragment,{children:[tt.jsxs("p",{children:["Sharding: ",tt.jsx("strong",{children:typeof u=="string"?u:null})]}),typeof u=="object"?tt.jsx("ul",{className:"shard-spec",children:Object.entries(u).map(([c,v])=>tt.jsxs("li",{children:[c,"=",tt.jsx("em",{children:typeof v!="string"?JSON.stringify(v):v})]},v))}):null]}):null,(m=t.comparison)!=null&&m.global?tt.jsxs(tt.Fragment,{children:[tt.jsx(j2,{label:"Actual PCC:",value:t.comparison.global.actual_pcc}),tt.jsx(j2,{label:"Desired PCC:",value:t.comparison.global.desired_pcc})]}):null,t.buffer_type===id.L1&&tt.jsx(qa,{className:"right-icon-small",text:"Tensor allocation per core",icon:Ui.FLOW_LINEAR,intent:Po.PRIMARY,onClick:()=>d(!0),endIcon:Ui.OPEN_APPLICATION})]})]})};function Lft({operationDetails:t,plotZoomRangeStart:r,plotZoomRangeEnd:e,onTensorClick:n}){const{id:a,inputs:l,outputs:o,memorySizeL1:f}=t;return tt.jsxs("div",{className:"tensor-list",children:[tt.jsxs("div",{className:"column",children:[tt.jsx("h3",{className:"title",children:"Inputs"}),l.map((i,s)=>tt.jsx(Are,{tensor:i,onTensorClick:n,memorySize:f,operationId:a,zoomRange:[r,e]},`${i.id}-${s}`))]}),tt.jsxs("div",{className:"column",children:[tt.jsx("h3",{className:"title",children:"Outputs"}),o.map((i,s)=>tt.jsx(Are,{tensor:i,onTensorClick:n,memorySize:f,operationId:a,zoomRange:[r,e]},`${i.id}-${s}`))]})]})}function Oft(t,r){let e=0;const n=[],a=[];let l=0,o=0,f=1;for(;f<t.length;){const i=t[f];if(f+=1,i.node_type===is.function_start){if(a.length===0)for(;f<t.length;){const d=t[f];if(d.node_type===is.buffer&&d.params.type===wx.L1)d.connections.forEach(u=>{var y;const h=t[u];if(h.node_type===is.tensor){const b=(y=r.find(C=>C.id===parseInt(String(h.params.tensor_id),10)))==null?void 0:y.size;b&&(o+=b)}}),f+=1;else if(t[f].node_type===is.tensor)f+=1;else break}const{name:s}=i.params;a.push({name:s,id:i.id,deviceId:i.params.device_id})}if(i.params.device_id!==void 0&&a.length>1&&(a[a.length-1].deviceId=i.params.device_id),i.node_type===is.circular_buffer_allocate&&(l+=parseInt(i.params.size,10)),i.node_type===is.circular_buffer_deallocate_all&&(l=0),i.node_type===is.buffer_allocate&&i.params.type===wx.L1){const s=parseInt(i.params.num_cores,10)||1,d=parseInt(i.params.size,10);o+=d/s}if(i.node_type===is.function_end&&a.pop(),i.node_type===is.buffer_deallocate){const s=i.connections?i.connections[0]:-1;if(s>=0&&t[s].params.type==="L1"){const d=parseInt(i.params.num_cores,10)||1,u=parseInt(i.params.size,10)/d;o-=u}}if(a.length>0){const s={name:a[a.length-1].name,deviceId:a[a.length-1].deviceId,id:i.id,type:i.node_type,total_cb:l,total_buffer:o,total_memory:l+o};n.push(s)}e=Math.max(e,l+o)}return{peakMemoryLoad:e,memoryAllocationList:n}}const kft=({deviceOperations:t,details:r,onLegendClick:e})=>{const n=tf(Wx),a=r.inputs.map(u=>u==null?void 0:u.id),l=ADe(a),{memoryAllocationList:o,peakMemoryLoad:f}=Oft(t,l),i=St.useCallback(u=>{var b,C;const h=(m,c,v)=>{if(m===void 0)return null;const{allocation:g}=m;let p=null;const I=(g==null?void 0:g.params.address)===void 0?void 0:parseInt(g.params.address,10);if(I!==void 0||c!==void 0){const A=I!==void 0?r.tensorListByAddress.get(I):Object.values(r.tensorListByAddress).find(_=>_.id===c);p=tt.jsx("div",{className:Di("memory-color-block",{"empty-tensor":I===null}),style:{backgroundColor:(A==null?void 0:A.id)!==void 0||c!==void 0?rp(A==null?void 0:A.id)||rp(c):Zx(I||null)}})}return tt.jsxs("div",{className:"buffer-details",children:[tt.jsxs("span",{className:"address",children:[p," ",I!==void 0&&`${$G(I,0)}`]}),tt.jsxs("span",{children:[" ",zd(parseInt(m.params.size,10))]}),tt.jsx("span",{children:tt.jsx(t5,{memory:m.params.type})}),v&&v]},m.id)},y=m=>{var v,g;const c=((v=m.buffer)==null?void 0:v.filter(p=>p).map(p=>p.params.device_id))||[];if((c==null?void 0:c.length)>1&&m.buffer!==void 0&&m.buffer.length>0){const p=m.buffer.find(I=>I);return tt.jsx(tt.Fragment,{children:h(p,m.params.tensor_id,tt.jsxs("strong",{children:["x",c.length]}))})}return(g=m.buffer)==null?void 0:g.map((p,I)=>tt.jsx(St.Fragment,{children:h(p,u.params.tensor_id)},`buffer-details-${u.params.tensor_id} ${I}`))};if(u.node_type===is.tensor){const m=y(u),c=(C=(b=u.buffer)==null?void 0:b[0])==null?void 0:C.params.layout,v=r.tensorList.find(I=>I.id===parseInt(u.params.tensor_id.toString(),10)),g=v&&tt.jsx("div",{className:Di("memory-color-block",{"empty-tensor":v.address===null}),style:{backgroundColor:rp(parseInt(u.params.tensor_id.toString(),10))}})||null,p=(v==null?void 0:v.operationIdentifier)||"";return m?tt.jsx(Es,{content:tt.jsxs("div",{className:"arg-tensor-tooltip",children:[m,c&&tt.jsx("span",{children:c}),p&&tt.jsx("span",{children:p})]}),position:"top",children:tt.jsxs("span",{className:"standard-flex-layout",children:[g," Tensor ",u.params.tensor_id," ",q0(u.params.shape)]})}):tt.jsxs("span",{className:"standard-flex-layout",children:[g," Tensor ",u.params.tensor_id," ",q0(u.params.shape)]})}return u.node_type===is.circular_buffer_deallocate_all?"":u.node_type},[r]),s=St.useCallback(u=>{const h=u.find(C=>C.node_type===is.capture_start),y=u.map(C=>({...C,inputs:[],outputs:[]})),b=C=>C.connections.map(m=>y.find(c=>c.id===m)).filter(m=>m);return y.forEach(C=>{if(C.node_type===is.function_start)C.outputs=b(C).flatMap(m=>(m==null?void 0:m.node_type)===is.function_end?b(m).filter(c=>(c==null?void 0:c.node_type)!==is.capture_end&&(c==null?void 0:c.node_type)!==is.function_start):[]),b(C).forEach(m=>{m.node_type===is.function_end&&(m.operation=C)});else if(C.node_type===is.buffer)b(C).forEach(c=>{if(c.node_type===is.tensor){c.params.device_id=C.params.device_id,c.buffer||(c.buffer=[]);const v=C.params.device_id||0;c.buffer[v]=C}});else if(C.node_type===is.buffer_allocate)b(C).forEach(c=>{if(c.node_type===is.buffer){const v=C.params.device_id||0,g=c.params.device_id||0;v===g&&(c.allocation=C)}});else if(C.node_type===is.circular_buffer_allocate){const m=Nve(C.params.core_range_set);C.params.num_cores=m.toString()}else C.node_type!==is.function_end&&C.node_type!==is.capture_start&&b(C).forEach(c=>{c.node_type===is.function_start&&c.inputs.push(C)})}),y.filter(C=>C.node_type===is.function_start).filter(C=>!(h!=null&&h.connections.includes(C.id))).forEach(C=>{C.outputs.forEach(m=>{m.node_type===is.tensor&&m.params.device_id!==void 0&&(C.params.device_id=m.params.device_id)})}),y},[]),d=St.useCallback(u=>{const h=[],y=s(u),b=[],C=[];let m=!1;return y.forEach((c,v)=>{var A,_,w,E;const g=c.node_type,p=o.find(x=>x.id===c.id),I=p?tt.jsxs("span",{className:Di("memory-info monospace",{peak:p.total_memory===f}),children:[tt.jsx("span",{className:"format-numbers",children:zd(p.total_cb)}),tt.jsx("span",{className:"format-numbers",children:zd(p.total_buffer)}),tt.jsx("span",{className:"format-numbers",children:zd(p.total_memory)})]}):void 0;if(g===is.function_start)h.push(c),b.push([]);else if(g===is.function_end){const x=b.pop(),S=c.params.name,T=tt.jsxs("h4",{children:[tt.jsx(fl,{className:"operation-icon",size:13,intent:Po.SUCCESS,icon:Ui.CUBE_ADD}),S," ",tt.jsx(Dft,{deviceId:(A=c.operation)==null?void 0:A.params.device_id})," (",(_=c.operation)==null?void 0:_.inputs.map(F=>tt.jsx("span",{className:"params",children:i(F)},`${F.id} ${c.id}`)),") "," => ",(w=c.operation)==null?void 0:w.outputs.map(F=>tt.jsx("span",{className:"params",children:i(F)},`${F.id} ${c.id}`))]}),L=x&&x.length>0,k=tt.jsxs(GG,{label:T,isOpen:!0,collapseClassName:Di("device-operation function-container",{[g8e]:!L}),children:[tt.jsx("div",{className:"function-content",children:x}),tt.jsx("div",{className:"end-function"})]},`end-${v}`);b.length>0?b[b.length-1].push(k):C.push(k)}else{let x=null;if(g===is.buffer_allocate){const S=c.params,T=parseInt(S.num_cores,10)||1,L=parseInt(S.size,10)/T;x=tt.jsx(E7,{_node:c,memoryInfo:S.type===wx.L1&&I||void 0,title:"Buffer allocate",children:tt.jsx(tt.Fragment,{children:tt.jsx(Px,{chunk:{address:parseInt(S.address,10),size:L},numCores:T,memSize:r.l1_sizes[0],selectedTensorAddress:n,operationDetails:r,onLegendClick:e,bufferType:S.type,layout:S.layout},S.address)})},v)}else if(g===is.buffer_deallocate){const S=c.params,T=parseInt(S.size,10),L=parseInt(S.num_cores,10)||1,k=T/L;x=tt.jsx(E7,{_node:c,memoryInfo:S.type===wx.L1&&I||void 0,title:`Buffer deallocate ${zd(k)} ${S.type} x ${L}`},v)}else if(g===is.circular_buffer_deallocate_all)x=tt.jsx(E7,{_node:c,memoryInfo:I,title:"Circular buffer deallocate all"},v);else if(g===is.circular_buffer_allocate){const S=c.params,T=parseInt(S.num_cores,10)||1;x=tt.jsxs(St.Fragment,{children:[!m&&tt.jsxs(tt.Fragment,{children:[tt.jsx("hr",{}),tt.jsx("h4",{children:"CBs"})]}),tt.jsx(Px,{numCores:T,chunk:{address:parseInt(S.address,10),size:parseInt(S.size,10)},memSize:r.l1_sizes[0],selectedTensorAddress:n,operationDetails:r,onLegendClick:e,colorVariance:(E=h.at(-1))==null?void 0:E.id}),I,tt.jsx("br",{})]},`${S.address}-${v}`),m=!0}g!==is.circular_buffer_allocate&&(m=!1),x&&(b.length>0?b[b.length-1].push(x):C.push(x))}}),C},[r,i,o,e,f,s,n]);return tt.jsxs("div",{className:"device-operations-full-render-wrap",children:[tt.jsxs("h3",{className:"peak-load monospace",children:["Peak L1 memory load per bank: ",tt.jsx("span",{className:"format-numbers",children:zd(f)})]}),tt.jsxs("div",{className:"device-operations-full-render",children:[tt.jsxs("span",{className:"memory-info monospace ",children:[tt.jsx("span",{className:"format-numbers",children:"CBs"}),tt.jsx("span",{className:"format-numbers",children:"Buffers"}),tt.jsx("span",{className:"format-numbers",children:"Total"})]}),d(t)]}),t.length>20&&tt.jsxs("h3",{className:"peak-load monospace",children:["Peak L1 memory load per bank: ",tt.jsx("span",{className:"format-numbers",children:zd(f)})]})]})},E7=({title:t,memoryInfo:r,_node:e,children:n})=>tt.jsxs("div",{className:"device-operation",children:[tt.jsx("hr",{}),tt.jsxs("h4",{children:[t,r]}),n]}),Dft=({deviceId:t})=>t!==void 0&&tt.jsx("span",{className:"device-id",children:t}),Nft=({operationId:t})=>{var se,ne;const{data:r}=dg(),[e,n]=St.useState(!1),[a,l]=Yu(DG),[o,f]=St.useState(!1),[i,s]=St.useState(!1),[d,u]=Yu(Xk),{operationDetails:{data:h,isLoading:y,status:b}}=rD(t),{data:C,isLoading:m}=sDe(t).operationDetails,[c,v]=Yu(Wx),[g,p]=Yu(Y5),[I,A]=St.useState(!1),[_,w]=St.useState(!1),[E,x]=St.useState(!1),[S,T]=St.useState(!0),[L,k]=St.useState(!1),{createToast:F,resetToasts:D}=iD(),P=()=>{D()},z=r==null?void 0:r.find(J=>J.id===t);if(y||m||!h||!C||!r)return tt.jsxs(tt.Fragment,{children:[tt.jsx(vJ,{operationId:t,isLoading:y}),b==="error"&&tt.jsxs("h3",{className:"not-found-message",children:["Operation ",t," not found"]})]});const M=new pJ(h,r,{renderPattern:a}),R=new pJ(C,r),N=M.memoryData(id.L1_SMALL),{memory:O,cbChartDataByOperation:H}=M.memoryData(),{memory:W}=R.memoryData(),{memorySizeL1:G}=M;let X=Math.min(((se=O[0])==null?void 0:se.address)||G,((ne=W[0])==null?void 0:ne.address)||G),Y=Math.max(O.length>0?O[O.length-1].address+O[O.length-1].size:0,W.length>0?W[W.length-1].address+W[W.length-1].size:0);Y<X&&(X=0,Y=G);const Q=(J,ce)=>{v(J??null),p(ce??null),F(J,ce)},V=J=>{const{address:ce,tensor:he}=J.points[0].data.memoryData;Q(ce,he==null?void 0:he.id)},K=J=>{const{address:ce,tensor:he}=J.points[0].data.memoryData;Q(ce,he==null?void 0:he.id)},re=J=>{const{address:ce,tensor:he}=J.points[0].data.memoryData;Q(ce,he==null?void 0:he.id)},oe=(J,ce)=>{Q(J,ce)},ue=(J,ce)=>{Q(J,ce)},me=M.inputs.concat(M.outputs),pe=me.map(J=>J.address).join(",");return tt.jsxs(tt.Fragment,{children:[tt.jsx(vJ,{operationId:t,isLoading:y}),tt.jsxs("div",{className:"operation-details-component",children:[(c||og(g))&&tt.jsx("div",{className:"outside-click",onClick:P}),!y&&og(h==null?void 0:h.id)?tt.jsxs(tt.Fragment,{children:[M.stack_trace&&tt.jsx(C9e,{stackTrace:M.stack_trace}),tt.jsx("div",{className:"chart-controls",children:tt.jsxs(J0,{children:[tt.jsx(qa,{intent:S?Po.SUCCESS:Po.NONE,onClick:()=>T(!S),icon:S?Ui.EYE_OPEN:Ui.EYE_OFF,children:"L1 Memory"}),tt.jsx(qa,{intent:L?Po.SUCCESS:Po.NONE,onClick:()=>k(!L),icon:L?Ui.EYE_OPEN:Ui.EYE_OFF,children:"DRAM"})]})}),tt.jsxs("div",{className:"controls",children:[tt.jsx(Cv,{label:"Buffer zoom",checked:e,onChange:()=>{n(!e)}}),tt.jsx(Cv,{label:o?"Hide Circular Buffers Details":"Show Circular Buffers Details",checked:o,disabled:H.size===0,onChange:()=>{f(!o)}}),tt.jsx(YC,{label:"Tensor memory layout overlay",checked:a,onChange:()=>{l(!a)}}),tt.jsx(Cv,{label:o?"Hide L1 Small":"Show L1 Small",checked:i,disabled:N.condensed.size===0,onChange:()=>{s(!i)}}),tt.jsx(YC,{label:"Hex axis labels",checked:d,onChange:()=>{u(!d)}})]}),!S&&!L&&tt.jsx("p",{className:"no-buffer-type-selected",children:"No buffer types selected."}),g?tt.jsx(_9e,{selectedTensor:me.find(J=>J.id===g)||M.getTensorForAddress(c??0),details:M,operationId:t}):null,S&&z&&tt.jsxs(tt.Fragment,{children:[tt.jsx("h3",{children:"L1 Memory"}),tt.jsxs(J0,{className:"core-view-buttons",children:[tt.jsx(qa,{className:"right-icon-small",text:"All allocations per core",icon:Ui.LAYOUT_GRID,onClick:()=>{A(!0)},disabled:I,intent:Po.PRIMARY,endIcon:Ui.OPEN_APPLICATION}),tt.jsx(qa,{className:"right-icon-small",text:"Input/Output allocations per core",icon:Ui.FLOW_REVIEW,onClick:()=>{w(!0)},disabled:_,intent:Po.PRIMARY,endIcon:Ui.OPEN_APPLICATION})]}),tt.jsxs(tt.Fragment,{children:[_&&tt.jsx(RU,{title:`${t} ${z.name} (${z.operationFileIdentifier}) inputs/outputs`,operationId:t,address:pe,bufferType:id.L1,zoomRange:[X,Y],isOpen:_,onClose:()=>w(!1),tensorByAddress:M.tensorListByAddress}),I&&tt.jsx(RU,{title:`${t} ${z.name} (${z.operationFileIdentifier}) detailed memory report`,operationId:t,bufferType:id.L1,zoomRange:[X,Y],isOpen:I,onClose:()=>A(!1),tensorByAddress:M.tensorListByAddress}),tt.jsx(Rft,{operationDetails:M,previousOperationDetails:R,zoomedInViewMainMemory:e,plotZoomRangeStart:X,plotZoomRangeEnd:Y,showCircularBuffer:o,showL1Small:i,onBufferClick:re,onLegendClick:ue})]})]}),L&&tt.jsxs(tt.Fragment,{children:[tt.jsx("h3",{children:"DRAM"}),tt.jsx(Mft,{operationDetails:M,previousOperationDetails:R,zoomedInViewMainMemory:e,onDramBufferClick:K,onDramDeltaClick:V,onLegendClick:ue})]}),tt.jsx("hr",{}),tt.jsx(Lft,{operationDetails:M,plotZoomRangeStart:X,plotZoomRangeEnd:Y,onTensorClick:oe}),M.device_operations&&tt.jsxs(tt.Fragment,{children:[tt.jsx("h3",{children:"Device operations"}),tt.jsx(qa,{icon:Ui.Graph,intent:Po.PRIMARY,onClick:()=>x(!0),children:"Device operations graph view"}),tt.jsx(kft,{deviceOperations:M.device_operations,details:M,onLegendClick:ue})]}),(z==null?void 0:z.arguments)&&tt.jsx("div",{className:"arguments-wrapper",children:tt.jsx(Yve,{operation:z})})]}):tt.jsxs("p",{className:"not-found-message",children:["Operation ",t," not found"]}),E&&M.device_operations&&tt.jsx(Sft,{data:M.device_operations,open:E,onClose:()=>x(!1)})]})]})};function Fft(){const{operationId:t}=Qfe(),r=t?parseInt(t,10):0,{operation:e}=rD(r);return t&&tt.jsxs(tt.Fragment,{children:[tt.jsx(vA,{title:e!=null&&e.name?`${t} ${e==null?void 0:e.name}`:`Not found Operation ${t}`}),tt.jsx(Nft,{operationId:r})]})}const zft={label:"Form label",subLabel:"Sub label here"};function Bft(){return _3(),tt.jsxs(tt.Fragment,{children:[tt.jsx(vA,{title:"Styleguide"}),tt.jsx("h2",{children:"Typography"}),tt.jsxs("div",{className:"container",children:[tt.jsx("h3",{children:"Paragraph"}),tt.jsxs("p",{children:["Lorem ipsum dolor sit amet ",tt.jsx("em",{children:"consectetur adipisicing"})," elit. Error laborum atque suscipit. Officiis fugit necessitatibus libero ",tt.jsx("strong",{children:"perspiciatis sequi "}),"accusantium earum"," ",tt.jsx("a",{href:"#123",children:"repudiandae deserunt"})," nemo, ",tt.jsx("u",{children:"voluptatem tempora"})," laborum eaque minima molestiae eveniet."]}),tt.jsx("h3",{children:"Monospace"}),tt.jsx("p",{className:"monospace",children:"Lorem ipsum dolor sit, amet consectetur adipisicing elit. Magni nemo velit molestias quae temporibus sint in at consectetur voluptatem obcaecati, saepe, ratione, reprehenderit perferendis quas explicabo error repellendus deserunt? Optio!"}),tt.jsx("h3",{children:"Horizontal ruler"}),tt.jsx("hr",{})]}),tt.jsx("h2",{children:"Colours"}),tt.jsxs("div",{className:"container flex wrap",children:[tt.jsxs("div",{className:"container colour-container flex no-gap flex-column",children:[tt.jsx("p",{children:"Grey"}),tt.jsx("div",{className:"colour w-1"}),tt.jsx("div",{className:"colour g-6"}),tt.jsx("div",{className:"colour g-5"}),tt.jsx("div",{className:"colour g-4"}),tt.jsx("div",{className:"colour g-3"}),tt.jsx("div",{className:"colour g-2"}),tt.jsx("div",{className:"colour g-1"}),tt.jsx("div",{className:"colour b-1"})]}),tt.jsxs("div",{className:"container colour-container flex no-gap flex-column",children:[tt.jsx("p",{children:"Purple"}),tt.jsx("div",{className:"colour purple-base"}),tt.jsx("div",{className:"colour purple-tint-1"}),tt.jsx("div",{className:"colour purple-tint-2"}),tt.jsx("div",{className:"colour purple-accent"}),tt.jsx("div",{className:"colour purple-shade"})]}),tt.jsxs("div",{className:"container colour-container flex no-gap flex-column",children:[tt.jsx("p",{children:"Red"}),tt.jsx("div",{className:"colour red-base"}),tt.jsx("div",{className:"colour red-tint-1"}),tt.jsx("div",{className:"colour red-tint-2"}),tt.jsx("div",{className:"colour red-accent"}),tt.jsx("div",{className:"colour red-shade"})]}),tt.jsxs("div",{className:"container colour-container flex no-gap flex-column",children:[tt.jsx("p",{children:"Blue"}),tt.jsx("div",{className:"colour blue-base"}),tt.jsx("div",{className:"colour blue-tint-1"}),tt.jsx("div",{className:"colour blue-tint-2"}),tt.jsx("div",{className:"colour blue-accent"}),tt.jsx("div",{className:"colour blue-shade"})]}),tt.jsxs("div",{className:"container colour-container flex no-gap flex-column",children:[tt.jsx("p",{children:"Yellow"}),tt.jsx("div",{className:"colour yellow-base"}),tt.jsx("div",{className:"colour yellow-tint-1"}),tt.jsx("div",{className:"colour yellow-tint-2"}),tt.jsx("div",{className:"colour yellow-accent"}),tt.jsx("div",{className:"colour yellow-shade"})]}),tt.jsxs("div",{className:"container colour-container flex no-gap flex-column",children:[tt.jsx("p",{children:"Teal"}),tt.jsx("div",{className:"colour teal-base"}),tt.jsx("div",{className:"colour teal-tint-1"}),tt.jsx("div",{className:"colour teal-tint-2"}),tt.jsx("div",{className:"colour teal-accent"}),tt.jsx("div",{className:"colour teal-shade"})]}),tt.jsxs("div",{className:"container colour-container flex no-gap flex-column",children:[tt.jsx("p",{children:"Green"}),tt.jsx("div",{className:"colour green-base"}),tt.jsx("div",{className:"colour green-tint-1"}),tt.jsx("div",{className:"colour green-tint-2"}),tt.jsx("div",{className:"colour green-accent"}),tt.jsx("div",{className:"colour green-shade"})]}),tt.jsxs("div",{className:"container colour-container flex no-gap flex-column",children:[tt.jsx("p",{children:"Sand"}),tt.jsx("div",{className:"colour sand-base"}),tt.jsx("div",{className:"colour sand-tint-1"}),tt.jsx("div",{className:"colour sand-tint-2"}),tt.jsx("div",{className:"colour sand-accent"}),tt.jsx("div",{className:"colour sand-shade"})]}),tt.jsxs("div",{className:"container colour-container flex no-gap flex-column",children:[tt.jsx("p",{children:"Slate"}),tt.jsx("div",{className:"colour slate-base"}),tt.jsx("div",{className:"colour slate-tint-1"}),tt.jsx("div",{className:"colour slate-tint-2"}),tt.jsx("div",{className:"colour slate-accent"}),tt.jsx("div",{className:"colour slate-shade"})]})]}),tt.jsx("h2",{children:"Buttons"}),tt.jsxs("div",{className:"container flex",children:[tt.jsxs("div",{className:"flex flex-column",children:[tt.jsx("p",{children:"Default"}),tt.jsx(qa,{icon:Ui.ADD,children:"Your text here"}),tt.jsx(qa,{icon:Ui.ADD,variant:"outlined",children:"Your text here"}),tt.jsx(qa,{icon:Ui.ADD,variant:"minimal",children:"Your text here"})]}),tt.jsxs("div",{className:"flex flex-column",children:[tt.jsx("p",{children:"Primary"}),tt.jsx(qa,{icon:Ui.ADD,intent:Po.PRIMARY,children:"Your text here"}),tt.jsx(qa,{icon:Ui.ADD,intent:Po.PRIMARY,variant:"outlined",children:"Your text here"}),tt.jsx(qa,{icon:Ui.ADD,intent:Po.PRIMARY,variant:"minimal",children:"Your text here"})]}),tt.jsxs("div",{className:"flex flex-column",children:[tt.jsx("p",{children:"Success"}),tt.jsx(qa,{icon:Ui.ADD,intent:Po.SUCCESS,children:"Your text here"}),tt.jsx(qa,{icon:Ui.ADD,intent:Po.SUCCESS,variant:"outlined",children:"Your text here"}),tt.jsx(qa,{icon:Ui.ADD,intent:Po.SUCCESS,variant:"minimal",children:"Your text here"})]}),tt.jsxs("div",{className:"flex flex-column",children:[tt.jsx("p",{children:"Warning"}),tt.jsx(qa,{icon:Ui.ADD,intent:Po.WARNING,children:"Your text here"}),tt.jsx(qa,{icon:Ui.ADD,intent:Po.WARNING,variant:"outlined",children:"Your text here"}),tt.jsx(qa,{icon:Ui.ADD,intent:Po.WARNING,variant:"minimal",children:"Your text here"})]}),tt.jsxs("div",{className:"flex flex-column",children:[tt.jsx("p",{children:"Danger"}),tt.jsx(qa,{icon:Ui.ADD,intent:Po.DANGER,children:"Your text here"}),tt.jsx(qa,{icon:Ui.ADD,intent:Po.DANGER,variant:"outlined",children:"Your text here"}),tt.jsx(qa,{icon:Ui.ADD,intent:Po.DANGER,variant:"minimal",children:"Your text here"})]})]}),tt.jsxs("div",{className:"container",children:[tt.jsx("h3",{children:"Icons"}),tt.jsxs(J0,{children:[tt.jsx(qa,{icon:Ui.ArrowLeft,variant:"outlined"}),tt.jsx(qa,{icon:Ui.LIST,variant:"outlined"}),tt.jsx(qa,{endIcon:Ui.ArrowRight,variant:"outlined"})]}),tt.jsxs(J0,{variant:"minimal",children:[tt.jsx(Es,{content:"Expand all",placement:il.TOP,children:tt.jsx(qa,{endIcon:Ui.ExpandAll})}),tt.jsx(Es,{content:"Sort by id ascending",placement:il.TOP,children:tt.jsx(qa,{icon:Ui.SortAlphabetical})}),tt.jsx(Es,{content:"Sort by duration ascending",placement:il.TOP,children:tt.jsx(qa,{icon:Ui.SortNumerical})}),tt.jsx(Es,{content:"Scroll to top",placement:il.TOP,children:tt.jsx(qa,{icon:Ui.DOUBLE_CHEVRON_UP})}),tt.jsx(Es,{content:"Scroll to bottom",placement:il.TOP,children:tt.jsx(qa,{icon:Ui.DOUBLE_CHEVRON_DOWN})})]})]}),tt.jsx("h2",{children:"Form elements"}),tt.jsx(qh,{...zft,className:"short-width",children:tt.jsx(xh,{className:"bp5-light",onChange:()=>{},leftIcon:Ui.FOLDER_NEW})}),tt.jsxs("div",{className:"container flex",children:[tt.jsx(xh,{className:"bp5-light",onChange:()=>{},intent:Po.PRIMARY,leftIcon:Ui.FOLDER_NEW}),tt.jsx(xh,{className:"bp5-light",onChange:()=>{},intent:Po.WARNING,leftIcon:Ui.FOLDER_NEW}),tt.jsx(xh,{className:"bp5-light",onChange:()=>{},intent:Po.SUCCESS,leftIcon:Ui.FOLDER_NEW}),tt.jsx(xh,{className:"bp5-light",onChange:()=>{},intent:Po.DANGER,leftIcon:Ui.FOLDER_NEW})]}),tt.jsx("div",{className:"short-width",children:tt.jsx(qh,{children:tt.jsx(VG,{placeholder:"Filter operations",searchQuery:"",onQueryChanged:()=>{}})})}),tt.jsx(qh,{children:tt.jsxs("label",{className:"bp5-file-input",htmlFor:"local-upload",children:[tt.jsx("input",{id:"local-upload",type:"file",multiple:!0}),tt.jsx("span",{className:"bp5-file-upload-input",children:"Select files..."})]})}),tt.jsxs(qh,{children:[tt.jsx(Cv,{label:"Toggle switch"}),tt.jsx(Cv,{label:"Toggle switch",onChange:()=>{},checked:!0}),tt.jsx(YC,{label:"Global switch",onChange:()=>{},checked:!1}),tt.jsx(YC,{label:"Global switch",onChange:()=>{},checked:!0})]}),tt.jsx("h2",{children:"Components"}),tt.jsx("h3",{children:"Tags"}),tt.jsxs("div",{className:"container flex",children:[tt.jsx(M1,{intent:Po.NONE,size:"large",children:"None"}),tt.jsx(M1,{intent:Po.PRIMARY,size:"large",children:"Primary"}),tt.jsx(M1,{intent:Po.WARNING,size:"large",children:"Warning"}),tt.jsx(M1,{intent:Po.SUCCESS,size:"large",children:"Success"}),tt.jsx(M1,{intent:Po.DANGER,size:"large",children:"Danger"}),tt.jsx(t5,{memory:"L1"}),tt.jsx(t5,{memory:"DRAM"})]}),tt.jsx("h3",{children:"Progress bar"}),tt.jsx("div",{className:"container short-width",children:tt.jsx(U6,{progress:.05,estimated:36})}),tt.jsx("div",{className:"container short-width",children:tt.jsx(U6,{progress:.5,estimated:17})}),tt.jsx("div",{className:"container short-width",children:tt.jsx(U6,{progress:.95,estimated:1})}),tt.jsxs("div",{className:"container flex flex-column",children:[tt.jsx("h3",{children:"Connection message"}),tt.jsx(OS,{status:Rs.IDLE,message:"Operation is idle"}),tt.jsx(OS,{status:Rs.PROGRESS,message:"Operation in progress"}),tt.jsx(OS,{status:Rs.OK,message:"Operation is successful"}),tt.jsx(OS,{status:Rs.FAILED,message:"Operation failed :("})]}),tt.jsxs("div",{className:"container",children:[tt.jsx("h3",{children:"Loading spinner"}),tt.jsx(np,{})]})]})}function $ft(t,r){const e=r.filter(n=>n.name.includes("deallocate")&&n.inputs.find(a=>a.id===t.id));return e==null?void 0:e[0]}function Uft({tensor:t,operations:r,className:e}){var d,u,h;const{address:n,dtype:a,layout:l,shape:o}=t,f=t.consumers[t.consumers.length-1],i=(d=$ft(t,r))==null?void 0:d.id,s=(u=$ye(t,r))==null?void 0:u.id;return tt.jsxs(tt.Fragment,{children:[tt.jsx("table",{className:"ttnn-table analysis-table",children:tt.jsxs("tbody",{children:[tt.jsxs("tr",{children:[tt.jsx("th",{children:"Tensor Id"}),tt.jsx("td",{children:t.id})]}),tt.jsxs("tr",{children:[tt.jsx("th",{children:"Last used"}),tt.jsx("td",{children:og(f)?Hft(f,r,t):"No consumers for this tensor"})]}),og(s)&&og(i)&&og(n)?tt.jsxs("tr",{children:[tt.jsx("th",{children:"Next allocation"}),tt.jsx("td",{children:tt.jsxs("span",{children:[rA(n)," next allocated in"," ",tt.jsxs(yx,{to:`${Ss.OPERATIONS}/${s}`,children:[s," ",(h=r.find(y=>y.id===s))==null?void 0:h.name]})," ","(+",s-i," operations)"]})})]}):null]})}),tt.jsx("table",{className:Di("ttnn-table two-tone-rows buffer-table",e),children:tt.jsxs("tbody",{children:[tt.jsxs("tr",{children:[tt.jsx("th",{children:"Device Id"}),tt.jsx("td",{children:t.device_id??"n/a"})]}),tt.jsxs("tr",{children:[tt.jsx("th",{children:"Shape"}),tt.jsx("td",{children:q0(o)})]}),tt.jsxs("tr",{children:[tt.jsx("th",{children:"DataType"}),tt.jsx("td",{children:ZC(a)})]}),tt.jsxs("tr",{children:[tt.jsx("th",{children:"Layout"}),tt.jsx("td",{children:l})]}),t!=null&&t.memory_config?Object.entries(t.memory_config).map(([y,b])=>tt.jsx(WG,{header:y,value:b},y)):null,t.comparison?tt.jsxs(tt.Fragment,{children:[tt.jsxs("tr",{children:[tt.jsx("th",{children:"Matches Locally"}),tt.jsxs("td",{children:[tt.jsx(j2,{value:t.comparison.local.actual_pcc,label:"Actual PCC:"}),tt.jsx(j2,{value:t.comparison.local.desired_pcc,label:"Desired PCC:"})]})]}),tt.jsxs("tr",{children:[tt.jsx("th",{children:"Matches Globally"}),tt.jsxs("td",{children:[tt.jsx(j2,{value:t.comparison.global.actual_pcc,label:"Actual PCC:"}),tt.jsx(j2,{value:t.comparison.global.desired_pcc,label:"Desired PCC:"})]})]})]}):null]})})]})}function Hft(t,r,e){let n=r.find(a=>a.id===t);return n!=null&&n.name.includes("deallocate")&&e.consumers.length>1&&(n=r.find(a=>a.id===e.consumers[e.consumers.length-2])),n?tt.jsxs(yx,{to:`${Ss.OPERATIONS}/${n.id}`,children:[n==null?void 0:n.id," ",n.name," (",n.operationFileIdentifier,")"]}):null}const Cre=10,Ire=39,bre=100,jft=()=>{var z;const t=aI(),r=p3(),e=St.useRef(null),[n,a]=St.useState(!1),[l,o]=St.useState(""),[f,i]=St.useState([]),[s,d]=St.useState(!1),[u,h]=St.useState(!1),[y,b]=St.useState([]),[C,m]=St.useState(!1),[c,v]=Yu(DLe),g=tf(x3),{data:p,isLoading:I}=dg(),{data:A,error:_,isLoading:w}=Bve(),E=St.useMemo(()=>A&&g?A.filter(M=>M.producers.some(R=>R>=g[0])&&M.producers.some(R=>R<=g[1])||M.consumers.some(R=>R>=g[0])&&M.consumers.some(R=>R<=g[1])):A,[A,g]),x=aD({count:(f==null?void 0:f.length)||Cre,getScrollElement:()=>e.current,estimateSize:()=>Ire}),S=x.getVirtualItems(),T=f&&f.length>=0?f.length:Cre,L=x.getTotalSize()-bre,k=M=>{const R=M.currentTarget;d(!(R.scrollTop<Ire/2)),h(R.scrollTop+R.offsetHeight>=R.scrollHeight)},F=M=>{v(R=>{const N=[...R];return N.includes(M)?N.filter(O=>O!==M):(N.push(M),N)})},D=()=>{a(M=>!M),v(!n&&f?f.map(M=>M.id):[])},P=M=>{b(R=>R.includes(M)?R.filter(N=>N!==M):[...R,M])};return St.useMemo(()=>{if(E&&p){let M=[...E];l&&(M=E==null?void 0:E.filter(R=>xre(R).toLowerCase().includes(l.toLowerCase()))),(y==null?void 0:y.length)>0&&(M=M.filter(R=>(R==null?void 0:R.buffer_type)!==null&&y.includes(R.buffer_type))),C&&(M=M.filter(R=>R.consumers.length>Oy)),i(M)}},[p,E,l,y,C]),St.useEffect(()=>{var R;const M=(R=t.state)==null?void 0:R.previousOperationId;if(M&&x){const N=(A==null?void 0:A.findIndex(O=>O.id===parseInt(M,10)))||0;x.scrollToIndex(N-1,{align:"start"}),r(Ss.OPERATIONS,{replace:!0})}},[x,A,t,r]),St.useEffect(()=>{L<=0&&e.current&&(e.current.scrollTop=0,d(!1))},[L]),tt.jsxs("fieldset",{className:"list-wrap",children:[tt.jsx("legend",{children:"Tensors"}),tt.jsxs("div",{className:"list-controls",children:[tt.jsx(VG,{placeholder:"Filter tensors",searchQuery:l,onQueryChanged:M=>o(M)}),tt.jsxs(J0,{variant:"minimal",children:[tt.jsx(Es,{content:"Toggle high consumer tensors",placement:il.TOP,children:tt.jsx(qa,{onClick:()=>m(!C),endIcon:Ui.ISSUE,disabled:!(E!=null&&E.some(M=>M.consumers.length>Oy)),intent:Po.DANGER,variant:C?"outlined":void 0,children:f==null?void 0:f.filter(M=>M.consumers.length>Oy).length})}),tt.jsx(Es,{content:n?"Collapse all":"Expand all",placement:il.TOP,children:tt.jsx(qa,{onClick:()=>D(),endIcon:n?Ui.CollapseAll:Ui.ExpandAll})}),tt.jsx(Es,{content:"Scroll to top",placement:il.TOP,children:tt.jsx(qa,{onClick:()=>{x.scrollToIndex(0)},icon:Ui.DOUBLE_CHEVRON_UP})}),tt.jsx(Es,{content:"Scroll to bottom",placement:il.TOP,children:tt.jsx(qa,{onClick:()=>{x.scrollToIndex(T-1)},icon:Ui.DOUBLE_CHEVRON_DOWN})}),tt.jsx(GDe,{items:E?Vft(E):[],placeholder:"Buffer type filter...",onItemSelect:M=>P(M),selectedItems:y,itemRenderer:(M,R)=>Gft(M,P,y),tagRenderer:M=>dC[M],onRemove:M=>P(M),itemPredicate:(M,R)=>!M||dC[R].toLowerCase().includes(M.toLowerCase()),noResults:tt.jsx(b3,{disabled:!0,text:"No results.",roleStructure:"listoption"}),resetOnSelect:!0})]}),!w&&!I?tt.jsx("p",{className:"result-count",children:E&&l?`Showing ${T} of ${E.length} tensors`:`Showing ${T} tensors`}):null]}),tt.jsx("div",{ref:e,className:Di("scrollable-element",{"scroll-shade-top":s&&L>=0,"scroll-shade-bottom":!u&&T>S.length,"scroll-lock":L<=0}),onScroll:M=>k(M),children:tt.jsx("div",{style:{height:x.getTotalSize()-bre},children:tt.jsx("ul",{className:"list-container",style:{transform:`translateY(${((z=S[0])==null?void 0:z.start)??0}px)`},children:p&&(f!=null&&f.length)?S.map(M=>{const R=f[M.index];return tt.jsx("li",{className:"list-item-container","data-index":M.index,ref:x.measureElement,children:tt.jsx(GG,{onExpandToggle:()=>F(R.id),keepChildrenMounted:!1,isOpen:c.includes(R.id),label:tt.jsx(Xve,{filterName:xre(R),filterQuery:l,icon:Ui.FLOW_LINEAR,iconColour:"tensor",tags:og(R.buffer_type)&&dC[R.buffer_type]?[{htmlTitle:dC[R.buffer_type]}]:void 0,children:R.consumers.length>Oy?tt.jsx(Es,{content:"Unusually high number of consumers",position:il.TOP,className:"high-number-consumers",children:tt.jsx(fl,{icon:Ui.ISSUE,intent:Po.DANGER})}):null}),children:tt.jsx("div",{className:"arguments-wrapper",children:tt.jsx(Uft,{tensor:R,operations:p})})})},M.index)}):tt.jsxs(tt.Fragment,{children:[w||I?tt.jsx(np,{}):tt.jsx("p",{children:"No results"}),_&&tt.jsxs("div",{children:["An error occurred: ",_.message]})]})})})})]})},xre=t=>`${q0(t.shape)} ${ZC(t.dtype)} ${t.operationIdentifier?t.operationIdentifier:""}`;function Vft(t){return[...new Set((t==null?void 0:t.map(r=>r.buffer_type!==null?r.buffer_type:"").filter(r=>og(r)))??[])]}const Gft=(t,r,e)=>tt.jsx("li",{children:tt.jsx(BT,{className:"buffer-type-checkbox",label:dC[t],checked:e.includes(t),onClick:()=>r(t)})},t);function Wft(){return _3(),tt.jsxs(tt.Fragment,{children:[tt.jsx(vA,{title:"Tensors"}),tt.jsx(jft,{})]})}const Uye=100,eL=1200,bP=20,wre=eL/Uye*100,Hye=({buffers:t,memoryStart:r,memoryEnd:e,memoryPadding:n,tensorList:a})=>{const l=e-r,o=n/l*Uye,f=St.useRef(null),[i,s]=St.useState(null),[d,u]=Yu(Y5),[h,y]=Yu(Wx),{createToast:b,resetToasts:C}=iD(),m=St.useMemo(()=>t.map(_=>{const w=_.size/l*wre,E=(_.address-r)/l*wre,x=a.get(_.address),S=(x?rp(x.id):Zx(_.address))||"black",T=yge(S);return{position:E,size:w,tensor:x,color:S,dimmedColor:T,buffer:_}}),[t,l,r,a]);St.useEffect(()=>{const _=f.current;if(_){const w=_.getContext("2d");w&&(w.clearRect(0,0,eL,bP),m.forEach(({color:E,position:x,size:S,buffer:T,dimmedColor:L,tensor:k})=>{let F=E;d&&d===(k==null?void 0:k.id)?F=E:(h&&h!==T.address||h===T.address&&d&&d!==(k==null?void 0:k.id))&&(F=L),w.fillStyle=F,w.fillRect(x,1,S,bP)}))}},[m,h,d]);const c=_=>{const w=f.current;if(w){const E=w.getBoundingClientRect(),x=eL/E.width,S=(_.clientX-E.left)*x;return{interactiveBuffer:m.find(T=>S>=T.position&&S<=T.position+T.size),scaleX:x,canvas:w}}return{}},v=_=>{const{interactiveBuffer:w}=c(_);w?p(w.buffer,w.tensor):g()},g=()=>{C()},p=(_,w)=>{if(!_){g();return}u((w==null?void 0:w.id)===d?null:(w==null?void 0:w.id)??null),y((w==null?void 0:w.address)===d?null:(w==null?void 0:w.address)??_.address),b((w==null?void 0:w.address)??_.address,w==null?void 0:w.id)},I=_=>{var S,T,L,k,F,D,P;const{interactiveBuffer:w,scaleX:E,canvas:x}=c(_);if(w){x.style.cursor="pointer";const z=w.position/E,{color:M}=w;s({x:z,y:0,text:tt.jsx("div",{children:tt.jsxs("strong",{children:[tt.jsx("span",{style:{fontSize:"20px",color:M,marginRight:"2px"},children:"■"}),w.buffer.address," (",rA(w.buffer.address),")",tt.jsx("br",{}),"Size: ",zd(w.buffer.size),tt.jsx("br",{}),(S=w.tensor)!=null&&S.shape?q0(w.tensor.shape):""," ",(T=w.tensor)!=null&&T.dtype?ZC(w.tensor.dtype):""," ",(L=w.tensor)!=null&&L.id?`Tensor ${w.tensor.id}`:"",(F=(k=w.tensor)==null?void 0:k.memory_config)!=null&&F.memory_layout?tt.jsxs(tt.Fragment,{children:[tt.jsx("br",{}),(P=(D=w.tensor)==null?void 0:D.memory_config)==null?void 0:P.memory_layout]}):null]})})})}else f.current&&(f.current.style.cursor="default"),s(null)},A=()=>{s(null)};return tt.jsxs(tt.Fragment,{children:[i&&tt.jsx(Es,{content:i.text,position:il.TOP,hoverOpenDelay:0,hoverCloseDelay:0,isOpen:!0,usePortal:!0,variant:"minimal",modifiers:{offset:{enabled:!0,options:{offset:[i.x,bP]}}},children:tt.jsx("div",{style:{position:"absolute",top:0,left:`${i.x}px`,width:"0",height:"0",backgroundColor:"red",zIndex:100}})}),tt.jsx("div",{className:"buffer-summary-row",style:{margin:r>0?`0 ${o}%`:"0"},children:tt.jsx("canvas",{className:"canvas",ref:f,width:eL,height:bP,onMouseMove:I,onMouseLeave:A,onClick:v})})]})},Tre=30,_re=20,Zft=20,Yft=.01;function Xft({buffersByOperation:t,tensorListByOperation:r}){var S;const[e,n]=St.useState(!1),[a,l]=St.useState(!1),[o,f]=Yu(Xk),i=tf(kG)||0,[s,d]=Yu(DG),[u,h]=Yu(ive),{data:y,isLoading:b}=UG(),C=St.useRef(null),{data:m}=dg(),c=St.useMemo(()=>t&&t.length>=0?t.length:Tre,[t]),v=()=>!b&&y?y[i].worker_l1_size:0,g=St.useMemo(v,[i,y,b]),p=St.useMemo(()=>{let T,L;return t==null||t.forEach(k=>k.buffers.forEach(F=>{T=og(T)?Math.min(T,F.address):F.address,L=og(L)?Math.max(L,F.address+F.size):F.address+F.size})),T&&L?[T,L]:[0,g]},[t,g]),I=p[0]||0,A=p[1]||g,_=(A-I)*Yft,w=aD({count:(t==null?void 0:t.length)||Tre,getScrollElement:()=>C.current,estimateSize:()=>_re,overscan:20}),E=w.getVirtualItems(),x=T=>{const L=T.currentTarget;n(!(L.scrollTop<_re/2)),l(L.scrollTop+L.offsetHeight>=L.scrollHeight)};return t&&!b&&r?tt.jsxs("div",{className:"buffer-summary-chart",children:[tt.jsxs("div",{className:"controls",children:[tt.jsx(Cv,{label:"Buffer zoom",checked:u,onChange:()=>{h(!u)}}),tt.jsx(YC,{label:"Hex axis labels",checked:o,onChange:()=>{f(!o)}}),tt.jsx(YC,{label:"Tensor memory layout overlay",checked:s,onChange:()=>{d(!s)}})]}),tt.jsx("p",{className:"x-axis-label",children:"Memory Address"}),tt.jsx("div",{className:"chart-position",children:tt.jsx(Yp,{className:"buffer-summary-plot",chartDataList:[[{x:[0],y:[1],type:"bar",width:[0],marker:{color:"transparent"}}]],isZoomedIn:u,memorySize:u?A:g,plotZoomRange:u?[I-_,A+_]:[0,g],configuration:uge})}),tt.jsx("div",{className:Di("scrollable-element",{"scroll-shade-top":e,"scroll-shade-bottom":!a&&c>E.length}),onScroll:T=>x(T),ref:C,children:tt.jsx("div",{style:{height:w.getTotalSize()-Zft},children:tt.jsx("div",{className:"list-container",style:{transform:`translateY(${((S=E[0])==null?void 0:S.start)??0}px)`},children:E.map(T=>{var k;const L=t[T.index];return tt.jsxs("div",{className:"buffer-summary-plot-container","data-index":T.index,ref:w.measureElement,children:[tt.jsx(Hye,{buffers:L.buffers,memoryStart:u?I:0,memoryEnd:u?A:g,memoryPadding:_,tensorList:r.get(L.id)}),tt.jsx(Es,{content:`${L.id} ${L.name} (${(k=m==null?void 0:m.find(F=>F.id===L.id))==null?void 0:k.operationFileIdentifier})`,className:"y-axis-tick",children:tt.jsxs(yx,{to:`${Ss.OPERATIONS}/${L.id}`,children:[L.id," ",L.name]})})]},T.key)})})})})]}):tt.jsx(np,{})}var za=Dhe(),Kft="".concat(za,"-table-body-cells"),Qft="".concat(za,"-table-body-scrolling-indicator-overlay"),Jft="".concat(za,"-table-body-is-scrolling-top"),qft="".concat(za,"-table-body-is-scrolling-bottom"),eht="".concat(za,"-table-body-is-scrolling-right"),tht="".concat(za,"-table-body-is-scrolling-left"),rht="".concat(za,"-table-body-virtual-client"),nht="".concat(za,"-table-bottom-container"),jye="".concat(za,"-table-cell"),iht="".concat(za,"-table-cell-client"),aht="".concat(za,"-table-cell-ghost"),oht="".concat(za,"-table-cell-interactive"),sht="".concat(za,"-table-cell-ledger-even"),lht="".concat(za,"-table-cell-ledger-odd"),uht="".concat(za,"-table-column-header-tr"),cht="".concat(za,"-table-column-headers"),fht="".concat(za,"-table-column-header-cell"),M7="".concat(za,"-table-column-name"),Sre="".concat(za,"-table-column-name-text"),hht="".concat(za,"-table-container"),Ere="".concat(za,"-table-dragging"),dht="".concat(za,"-table-focus-region"),vht="".concat(za,"-table-has-interaction-bar"),ght="".concat(za,"-table-has-reorder-handle"),Vye="".concat(za,"-table-header"),pht="".concat(za,"-table-header-active"),Mre="".concat(za,"-table-header-content"),mht="".concat(za,"-table-header-reorderable"),yht="".concat(za,"-table-header-selected"),Aht="".concat(za,"-table-horizontal-cell-divider"),Rre="".concat(za,"-table-horizontal-guide"),Pre="".concat(za,"-table-interaction-bar"),Lre="".concat(za,"-table-last-in-column"),Ore="".concat(za,"-table-last-in-row"),Cht="".concat(za,"-table-menu"),Iht="".concat(za,"-table-no-horizontal-scroll"),bht="".concat(za,"-table-no-rows"),xht="".concat(za,"-table-no-vertical-scroll"),wht="".concat(za,"-table-no-wrap-text"),Tht="".concat(za,"-table-null"),AH="".concat(za,"-table-overlay"),ZW="".concat(za,"-table-overlay-layer"),_ht="".concat(za,"-table-reordering-cursor-overlay"),Sht="".concat(za,"-table-popover-whitespace-normal"),Eht="".concat(za,"-table-popover-whitespace-pre"),Mht="".concat(za,"-table-quadrant"),Rht="".concat(za,"-table-quadrant-body-container"),Gye="".concat(za,"-table-quadrant-left"),Wye="".concat(za,"-table-quadrant-main"),Pht="".concat(za,"-table-quadrant-scroll-container"),Lht="".concat(za,"-table-quadrant-stack"),Oht="".concat(za,"-table-quadrant-top"),kht="".concat(za,"-table-quadrant-top-left"),Dht="".concat(za,"-table-region"),Nht="".concat(za,"-table-reorder-handle"),kre="".concat(za,"-table-reorder-handle-target"),Fht="".concat(za,"-table-reordering"),zht="".concat(za,"-table-resize-guides"),Bht="".concat(za,"-table-resize-handle"),$ht="".concat(za,"-table-resize-handle-target"),Uht="".concat(za,"-table-resize-horizontal"),Hht="".concat(za,"-table-resize-sensor"),jht="".concat(za,"-table-resize-sensor-expand"),Vht="".concat(za,"-table-resize-sensor-shrink"),Ght="".concat(za,"-table-resize-vertical"),Wht="".concat(za,"-table-row-headers"),Zht="".concat(za,"-table-row-headers-cells-container"),Yht="".concat(za,"-table-row-name"),Xht="".concat(za,"-table-row-name-text"),xP="".concat(za,"-table-selection-enabled"),Kht="".concat(za,"-table-selection-region"),Qht="".concat(za,"-table-th-menu"),Zye="".concat(za,"-table-th-menu-container"),Jht="".concat(za,"-table-th-menu-container-background"),qht="".concat(za,"-table-th-menu-open"),Yye="".concat(za,"-table-th-menu-select-cells"),edt="".concat(za,"-table-thead"),tdt="".concat(za,"-table-top-container"),rdt="".concat(za,"-table-truncated-cell"),ndt="".concat(za,"-table-truncated-format"),Xye="".concat(za,"-table-truncated-format-text"),idt="".concat(za,"-table-truncated-popover"),Dre="".concat(za,"-table-truncated-popover-target"),YW="".concat(za,"-table-truncated-text"),Kye="".concat(za,"-table-truncated-value"),Nre="".concat(za,"-table-vertical-guide");function ND(t,r){return typeof r=="number"?"".concat(t).concat(r):r.indexOf(t)===0?r:"".concat(t).concat(r)}function Fre(t){return ND("".concat(za,"-table-col-"),t)}function zre(t){return ND("".concat(za,"-table-row-"),t)}function XW(t){return ND("".concat(za,"-table-cell-col-"),t)}function Qye(t){return ND("".concat(za,"-table-cell-row-"),t)}var KW=function(t){xs(r,t);function r(e){var n=t.call(this,e)||this;return n.style=n.calculateStyle(e.variableLength),n}return r.prototype.componentDidUpdate=function(e){(!e.loading&&this.props.loading||e.variableLength!==this.props.variableLength)&&(this.style=this.calculateStyle(this.props.variableLength))},r.prototype.render=function(){return this.props.loading?St.createElement("div",{className:B5e,style:this.style}):St.Children.only(this.props.children)},r.prototype.calculateStyle=function(e){e===void 0&&(e=!1);var n=e?75-Math.floor(Math.random()*11)*5:100;return{width:"".concat(n,"%")}},r}(St.PureComponent),QW="bp-table-text-no-measure",adt=Na.STANDARD,odt=["font-style","font-variant","font-weight","font-size","font-family"],Gs={times:function(t,r){if(t<0)throw new Error("[Blueprint] times() cannot be called with negative numbers.");for(var e=Array(t),n=0;n<t;n++)e[n]=r(n);return e},accumulate:function(t){for(var r=[],e=0,n=0,a=t;n<a.length;n++){var l=a[n];e+=l,r.push(e)}return r},toBase26Alpha:function(t){for(var r="";;){var e=t%26;if(r=String.fromCharCode(65+e)+r,t=t-e,t<=0)return r;t=t/26-1}},toBase26CellName:function(t,r){return"".concat(Gs.toBase26Alpha(r)).concat(t+1)},binarySearch:function(t,r,e){for(var n=0;n<r;){var a=Math.floor((n+r)/2),l=e(a);l<t?n=a+1:r=a}return r},assignSparseValues:function(t,r){if(r==null||t.length!==r.length)return t;t=t.slice();for(var e=0;e<t.length;e++){var n=r[e];n!=null&&(t[e]=n)}return t},measureElementTextContent:function(t){var r=document.createElement("canvas").getContext("2d"),e=getComputedStyle(t,null);return r.font=odt.map(function(n){return e.getPropertyValue(n)}).join(" "),sdt(r,t)},clamp:function(t,r,e){return r!=null&&t<r&&(t=r),e!=null&&t>e&&(t=e),t},guideIndexToReorderedIndex:function(t,r,e){return r<t?r:t<=r&&r<t+e?t:Math.max(0,r-e)},reorderedIndexToGuideIndex:function(t,r,e){return r<=t?r:r+e},reorderArray:function(t,r,e,n){if(n===void 0&&(n=1),n===0||n===t.length||r===e)return t.slice();if(!(n<0||n>t.length||r+n>t.length)){for(var a=t.slice(0,r),l=t.slice(r,r+n),o=t.slice(r+n),f=[],i=0,s=0,d=0,u=0;i<e;)s<a.length?(f.push(a[s]),s+=1):(f.push(o[u]),u+=1),i+=1;for(;d<n;)f.push(l[d]),d+=1,i+=1;for(;i<t.length;)s<a.length?(f.push(a[s]),s+=1):(f.push(o[u]),u+=1),i+=1;return f}},isLeftClick:function(t){return t.button===0},getApproxCellHeight:function(t,r,e,n,a,l){var o=t==null?0:t.length,f=r,i=f-a,s=i/e,d=Math.ceil(o/s)+l,u=d*n;return u},compareSparseArrays:function(t,r){return t!==void 0&&r!==void 0&&t.length===r.length&&t.every(function(e,n){return e===r[n]})}};function sdt(t,r){var e,n=r.querySelectorAll(".".concat(QW)),a=0;n&&n.length&&n.forEach(function(f){var i,s=t.measureText((i=f.textContent)!==null&&i!==void 0?i:"");a+=s.width-adt});var l=t.measureText((e=r.textContent)!==null&&e!==void 0?e:""),o=qn(qn({},l),{width:l.width-a});return o}var Il;(function(t){t.CELL="cell",t.ROW="row"})(Il||(Il={}));var to;(function(t){t.CELLS="cells",t.FULL_ROWS="full-rows",t.FULL_COLUMNS="full-columns",t.FULL_TABLE="full-table"})(to||(to={}));var ldt={ALL:[to.FULL_TABLE,to.FULL_COLUMNS,to.FULL_ROWS,to.CELLS],COLUMNS_AND_CELLS:[to.FULL_COLUMNS,to.CELLS],COLUMNS_ONLY:[to.FULL_COLUMNS],ROWS_AND_CELLS:[to.FULL_ROWS,to.CELLS],ROWS_ONLY:[to.FULL_ROWS]},HO;(function(t){t.CELLS="cells",t.HEADER="column-header"})(HO||(HO={}));var Bre;(function(t){t.CELLS="cells",t.HEADER="row-header"})(Bre||(Bre={}));var _1;(function(t){t.CELLS="cells",t.COLUMN_HEADERS="column-header",t.ROW_HEADERS="row-header"})(_1||(_1={}));var So=function(){function t(){}return t.getRegionCardinality=function(r){return r.cols!=null&&r.rows!=null?to.CELLS:r.cols!=null?to.FULL_COLUMNS:r.rows!=null?to.FULL_ROWS:to.FULL_TABLE},t.getFocusCellCoordinatesFromRegion=function(r){var e=t.getRegionCardinality(r);switch(e){case to.FULL_TABLE:return{col:0,row:0};case to.FULL_COLUMNS:return{col:r.cols[0],row:0};case to.FULL_ROWS:return{col:0,row:r.rows[0]};case to.CELLS:return{col:r.cols[0],row:r.rows[0]}}},t.copy=function(r){var e=t.getRegionCardinality(r);return e===to.CELLS?t.cell(r.rows[0],r.cols[0],r.rows[1],r.cols[1]):e===to.FULL_COLUMNS?t.column(r.cols[0],r.cols[1]):e===to.FULL_ROWS?t.row(r.rows[0],r.rows[1]):t.table()},t.cell=function(r,e,n,a){return{cols:this.normalizeInterval(e,a),rows:this.normalizeInterval(r,n)}},t.row=function(r,e){return{rows:this.normalizeInterval(r,e)}},t.column=function(r,e){return{cols:this.normalizeInterval(r,e)}},t.table=function(){return{}},t.add=function(r,e){var n=r.slice();return n.push(e),n},t.update=function(r,e,n){var a=r.slice();return n!=null?a.splice(n,1,e):(a.pop(),a.push(e)),a},t.clampRegion=function(r,e,n){var a=t.copy(r);return r.rows!=null&&(a.rows[0]=Gs.clamp(r.rows[0],0,e),a.rows[1]=Gs.clamp(r.rows[1],0,e)),r.cols!=null&&(a.cols[0]=Gs.clamp(r.cols[0],0,n),a.cols[1]=Gs.clamp(r.cols[1],0,n)),a},t.lastRegionIsEqual=function(r,e){if(r==null||r.length===0)return!1;var n=r[r.length-1];return t.regionsEqual(n,e)},t.findMatchingRegion=function(r,e){if(r==null)return-1;for(var n=0;n<r.length;n++)if(t.regionsEqual(r[n],e))return n;return-1},t.findContainingRegion=function(r,e){if(r==null)return-1;for(var n=0;n<r.length;n++)if(t.regionContains(r[n],e))return n;return-1},t.hasFullColumn=function(r,e){if(r==null)return!1;for(var n=0,a=r;n<a.length;n++){var l=a[n],o=t.getRegionCardinality(l);if(o===to.FULL_TABLE||o===to.FULL_COLUMNS&&t.intervalContainsIndex(l.cols,e))return!0}return!1},t.hasFullRow=function(r,e){if(r==null)return!1;for(var n=0,a=r;n<a.length;n++){var l=a[n],o=t.getRegionCardinality(l);if(o===to.FULL_TABLE||o===to.FULL_ROWS&&t.intervalContainsIndex(l.rows,e))return!0}return!1},t.hasFullTable=function(r){if(r==null)return!1;for(var e=0,n=r;e<n.length;e++){var a=n[e],l=t.getRegionCardinality(a);if(l===to.FULL_TABLE)return!0}return!1},t.containsRegion=function(r,e){return t.overlapsRegion(r,e,!1)},t.overlapsRegion=function(r,e,n){n===void 0&&(n=!1);var a=n?t.intervalOverlaps:t.intervalContains;if(r==null||e==null)return!1;for(var l=0,o=r;l<o.length;l++){var f=o[l],i=t.getRegionCardinality(f);switch(i){case to.FULL_TABLE:return!0;case to.FULL_COLUMNS:if(a(f.cols,e.cols))return!0;continue;case to.FULL_ROWS:if(a(f.rows,e.rows))return!0;continue;case to.CELLS:if(a(f.cols,e.cols)&&a(f.rows,e.rows))return!0;continue}}return!1},t.eachUniqueFullColumn=function(r,e){if(!(r==null||r.length===0||e==null)){var n={};r.forEach(function(a){if(t.getRegionCardinality(a)===to.FULL_COLUMNS)for(var l=a.cols,o=l[0],f=l[1],i=o;i<=f;i++)n[i]||(n[i]=!0,e(i))})}},t.eachUniqueFullRow=function(r,e){if(!(r==null||r.length===0||e==null)){var n={};r.forEach(function(a){if(t.getRegionCardinality(a)===to.FULL_ROWS)for(var l=a.rows,o=l[0],f=l[1],i=o;i<=f;i++)n[i]||(n[i]=!0,e(i))})}},t.enumerateUniqueCells=function(r,e,n){if(r==null||r.length===0)return[];for(var a={},l=[],o=0,f=r;o<f.length;o++){var i=f[o];t.eachCellInRegion(i,e,n,function(s,d){var u="".concat(s,"-").concat(d);a[u]!==!0&&(a[u]=!0,l.push([s,d]))})}return l.sort(t.rowFirstComparator),l},t.getCellRegionFromRegion=function(r,e,n){var a=t.getRegionCardinality(r);switch(a){case to.FULL_TABLE:return t.cell(0,0,e-1,n-1);case to.FULL_COLUMNS:return t.cell(0,r.cols[0],e-1,r.cols[1]);case to.FULL_ROWS:return t.cell(r.rows[0],0,r.rows[1],n-1);case to.CELLS:return t.cell(r.rows[0],r.cols[0],r.rows[1],r.cols[1])}},t.getRegionFromFocusedRegion=function(r){switch(r.type){case Il.CELL:return t.cell(r.row,r.col);case Il.ROW:return t.row(r.row)}},t.sparseMapCells=function(r,e){var n=t.getBoundingRegion(r);if(n!==void 0){var a=n.rows[1]+1-n.rows[0],l=n.cols[1]+1-n.cols[0],o=Gs.times(a,function(){return new Array(l)});return r.forEach(function(f){var i=f[0],s=f[1];o[i-n.rows[0]][s-n.cols[0]]=e(i,s)}),o}},t.getBoundingRegion=function(r){for(var e,n,a,l,o=0,f=r;o<f.length;o++){var i=f[o],s=i[0],d=i[1];e=e===void 0||s<e?s:e,n=n===void 0||s>n?s:n,a=a===void 0||d<a?d:a,l=l===void 0||d>l?d:l}if(!(e===void 0||n===void 0||a===void 0||l===void 0))return{cols:[a,l],rows:[e,n]}},t.isValid=function(r){return!(r==null||r.rows!=null&&(r.rows[0]<0||r.rows[1]<0)||r.cols!=null&&(r.cols[0]<0||r.cols[1]<0))},t.isRegionValidForTable=function(r,e,n){return e===0||n===0||r.rows!=null&&!$re(r.rows,0,e-1)?!1:!(r.cols!=null&&!$re(r.cols,0,n-1))},t.joinStyledRegionGroups=function(r,e,n){var a=n==null?void 0:"type"in n?n:qn(qn({},n),{type:Il.CELL}),l=[];return e!=null&&(l=l.concat(e)),r!=null&&r.length>0&&l.push({className:Kht,regions:r}),a!==void 0&&l.push({className:dht,regions:[t.getRegionFromFocusedRegion(a)]}),l},t.regionsEqual=function(r,e){return t.intervalsEqual(r.rows,e.rows)&&t.intervalsEqual(r.cols,e.cols)},t.expandRegion=function(r,e){var n=t.getRegionCardinality(r),a=t.getRegionCardinality(e);if(a!==n)return e;switch(a){case to.FULL_ROWS:{var l=Math.min(r.rows[0],e.rows[0]),o=Math.max(r.rows[1],e.rows[1]);return t.row(l,o)}case to.FULL_COLUMNS:{var f=Math.min(r.cols[0],e.cols[0]),i=Math.max(r.cols[1],e.cols[1]);return t.column(f,i)}case to.CELLS:{var l=Math.min(r.rows[0],e.rows[0]),f=Math.min(r.cols[0],e.cols[0]),o=Math.max(r.rows[1],e.rows[1]),i=Math.max(r.cols[1],e.cols[1]);return t.cell(l,f,o,i)}default:return t.table()}},t.eachCellInRegion=function(r,e,n,a){var l=t.getRegionCardinality(r);switch(l){case to.FULL_TABLE:for(var o=0;o<e;o++)for(var f=0;f<n;f++)a(o,f);break;case to.FULL_COLUMNS:for(var o=0;o<e;o++)for(var f=r.cols[0];f<=r.cols[1];f++)a(o,f);break;case to.FULL_ROWS:for(var o=r.rows[0];o<=r.rows[1];o++)for(var f=0;f<n;f++)a(o,f);break;case to.CELLS:for(var o=r.rows[0];o<=r.rows[1];o++)for(var f=r.cols[0];f<=r.cols[1];f++)a(o,f);break}},t.regionContains=function(r,e){return t.overlapsRegion([r],e,!1)},t.intervalsEqual=function(r,e){return r==null?e==null:e==null?!1:r[0]===e[0]&&r[1]===e[1]},t.intervalContainsIndex=function(r,e){return r==null?!1:r[0]<=e&&r[1]>=e},t.intervalContains=function(r,e){return r==null||e==null?!1:r[0]<=e[0]&&e[1]<=r[1]},t.intervalOverlaps=function(r,e){return!(r==null||e==null||r[1]<e[0]||r[0]>e[1])},t.rowFirstComparator=function(r,e){var n=r[0]-e[0];return n===0?r[1]-e[1]:n},t.numericalComparator=function(r,e){return r-e},t.normalizeInterval=function(r,e){e==null&&(e=r);var n=[r,e];return n.sort(t.numericalComparator),n},t}();function $re(t,r,e){return Ure(t[0],r,e)&&Ure(t[1],r,e)}function Ure(t,r,e){return t>=r&&t<=e}var R1=function(){function t(r,e,n,a){this.left=r,this.top=e,this.width=n,this.height=a}return t.union=function(r,e){var n=t.wrap(r),a=t.wrap(e),l=Math.min(n.top,a.top),o=Math.min(n.left,a.left),f=Math.max(n.top+n.height,a.top+a.height),i=Math.max(n.left+n.width,a.left+a.width),s=f-l,d=i-o;return new t(o,l,d,s)},t.subtractOrigin=function(r,e){var n=t.wrap(r),a=t.wrap(e);return new t(n.left-a.left,n.top-a.top,n.width,n.height)},t.style=function(r){return{height:"".concat(r.height,"px"),left:"".concat(r.left,"px"),position:"absolute",top:"".concat(r.top,"px"),width:"".concat(r.width,"px")}},t.wrap=function(r){return r instanceof t?r:new t(r.left,r.top,r.width,r.height)},t.prototype.subtractOrigin=function(r){return t.subtractOrigin(this,r)},t.prototype.union=function(r){return t.union(this,r)},t.prototype.style=function(){return t.style(this)},t.prototype.sizeStyle=function(){return{height:"".concat(this.height,"px"),width:"".concat(this.width,"px")}},t.prototype.containsX=function(r){return r>=this.left&&r<=this.left+this.width},t.prototype.containsY=function(r){return r>=this.top&&r<=this.top+this.height},t.prototype.equals=function(r){return r!=null&&this.left===r.left&&this.top===r.top&&this.width===r.width&&this.height===r.height},t.ORIGIN=new t(0,0,0,0),t}(),Ug=function(){function t(r,e,n,a,l){n===void 0&&(n=t.DEFAULT_BLEED),a===void 0&&(a=t.DEFAULT_GHOST_HEIGHT),l===void 0&&(l=t.DEFAULT_GHOST_WIDTH);var o=this;this.getCumulativeWidthBefore=function(f){return f===0?0:o.getCumulativeWidthAt(f-1)},this.getCumulativeWidthAt=function(f){return o.numCols===0?o.ghostWidth*f:f>=o.numCols?o.cumulativeColumnWidths[o.numCols-1]+o.ghostWidth*(f-o.numCols+1):o.cumulativeColumnWidths[f]},this.getCumulativeHeightBefore=function(f){return f===0?0:o.getCumulativeHeightAt(f-1)},this.getCumulativeHeightAt=function(f){return o.numRows===0?o.ghostHeight*f:f>=o.numRows?o.cumulativeRowHeights[o.numRows-1]+o.ghostHeight*(f-o.numRows+1):o.cumulativeRowHeights[f]},this.columnWidths=e,this.rowHeights=r,this.cumulativeColumnWidths=Gs.accumulate(e),this.cumulativeRowHeights=Gs.accumulate(r),this.numCols=e.length,this.numRows=r.length,this.bleed=n,this.ghostHeight=a,this.ghostWidth=l}return t.prototype.getCellRect=function(r,e){var n=this.rowHeights[r],a=this.cumulativeRowHeights[r]-n,l=this.columnWidths[e],o=this.cumulativeColumnWidths[e]-l;return new R1(o,a,l,n)},t.prototype.getGhostCellRect=function(r,e){var n=0,a=0,l=0,o=0;return r>=this.rowHeights.length?(o=this.ghostHeight,a=this.getHeight()+this.ghostHeight*(r-this.numRows)):(o=this.rowHeights[r],a=this.cumulativeRowHeights[r]-o),e>=this.columnWidths.length?(l=this.ghostWidth,n=this.getWidth()+this.ghostWidth*(e-this.numCols)):(l=this.columnWidths[e],n=this.cumulativeColumnWidths[e]-l),new R1(n,a,l,o)},t.prototype.getRowRect=function(r){var e=this.rowHeights[r],n=this.cumulativeRowHeights[r]-e;return new R1(0,n,this.getWidth(),e)},t.prototype.getColumnRect=function(r){var e=this.columnWidths[r],n=this.cumulativeColumnWidths[r]-e;return new R1(n,0,e,this.getHeight())},t.prototype.getWidth=function(){return this.numCols===0?0:this.cumulativeColumnWidths[this.numCols-1]},t.prototype.getHeight=function(){return this.numRows===0?0:this.cumulativeRowHeights[this.numRows-1]},t.prototype.getRect=function(){return new R1(0,0,this.getWidth(),this.getHeight())},t.prototype.mapCellsInRect=function(r,e){var n=[];if(r==null)return n;for(var a=this.getRowIndicesInRect({rect:r}),l=a.rowIndexStart,o=a.rowIndexEnd,f=this.getColumnIndicesInRect(r),i=f.columnIndexStart,s=f.columnIndexEnd,d=l;d<=o;d++)for(var u=i;u<=s;u++)n.push(e(d,u));return n},t.prototype.mapRowsInRect=function(r,e){var n=[];if(r==null)return n;for(var a=this.getRowIndicesInRect({rect:r}),l=a.rowIndexStart,o=a.rowIndexEnd,f=l;f<=o;f++)n.push(e(f));return n},t.prototype.mapColumnsInRect=function(r,e){var n=[];if(r==null)return n;for(var a=this.getColumnIndicesInRect(r),l=a.columnIndexStart,o=a.columnIndexEnd,f=l;f<=o;f++)n.push(e(f));return n},t.prototype.getRowIndicesInRect=function(r){var e=r.rect,n=r.includeGhostCells,a=n===void 0?!1:n,l=r.columnHeaderHeight,o=l===void 0?0:l,f=r.limit,i=f===void 0?t.DEFAULT_MAX_ROWS:f;if(e==null)return{rowIndexEnd:0,rowIndexStart:0};var s=a?Math.max(this.numRows,t.DEFAULT_MAX_ROWS):this.numRows,d=e.top,u=d===void 0?0:d,h=e.height,y=this.getIndicesInInterval(u,u+(h-o),s,!a,this.getCumulativeHeightAt),b=y.start,C=y.end,m=i>0&&C-b>i?b+i:C;return{rowIndexEnd:m,rowIndexStart:b}},t.prototype.getColumnIndicesInRect=function(r,e,n){if(e===void 0&&(e=!1),n===void 0&&(n=t.DEFAULT_MAX_COLUMNS),r==null)return{columnIndexEnd:0,columnIndexStart:0};var a=e?Math.max(this.numCols,t.DEFAULT_MAX_COLUMNS):this.numCols,l=r.left,o=l===void 0?0:l,f=r.width,i=this.getIndicesInInterval(o,o+f,a,!e,this.getCumulativeWidthAt),s=i.start,d=i.end,u=n>0&&d-s>n?s+n:d;return{columnIndexEnd:u,columnIndexStart:s}},t.prototype.isGhostIndex=function(r,e){return r>=this.numRows||e>=this.numCols},t.prototype.isGhostColumn=function(r){return r>=this.numCols},t.prototype.getExtremaClasses=function(r,e,n,a){return r===n&&e===a?[Lre,Ore]:r===n?[Lre]:e===a?[Ore]:[]},t.prototype.getRegionStyle=function(r){var e=So.getRegionCardinality(r);switch(e){case to.CELLS:{var n=r.rows,a=n[0],l=n[1],o=r.cols,f=o[0],i=o[1];if(this.isGhostIndex(a,f)||this.isGhostIndex(l,i))return{display:"none"};var s=this.getCellRect(a,f),d=this.getCellRect(l,i),u=f===0?0:1,h=a===0?0:1,y=s.union(d);return y.height+=h,y.left-=u,y.width+=u,y.top-=h,qn(qn({},y.style()),{display:"block"})}case to.FULL_COLUMNS:{var b=r.cols,f=b[0],i=b[1];if(this.isGhostIndex(0,f)||this.isGhostIndex(0,i))return{display:"none"};var s=this.getCellRect(0,f),d=this.getCellRect(0,i),y=s.union(d),u=f===0?0:1;return{bottom:0,display:"block",left:y.left-u,top:0,width:y.width+u}}case to.FULL_ROWS:{var C=r.rows,a=C[0],l=C[1];if(this.isGhostIndex(a,0)||this.isGhostIndex(l,0))return{display:"none"};var s=this.getCellRect(a,0),d=this.getCellRect(l,0),y=s.union(d),h=a===0?0:1;return{display:"block",height:y.height+h,left:0,right:0,top:y.top-h}}case to.FULL_TABLE:return{bottom:0,display:"block",left:0,right:0,top:0};default:return{display:"none"}}},t.prototype.getIndicesInInterval=function(r,e,n,a,l){var o=Gs.binarySearch(r,n-1,l),f=Gs.binarySearch(e,n-1,l);return o>=0&&r===l(o)&&(o+=1),o=Math.max(0,o-this.bleed),a?f=Math.min(n-1,f+this.bleed):f=Math.min(n-1,f),{end:f,start:o}},t.DEFAULT_BLEED=3,t.DEFAULT_MAX_COLUMNS=50,t.DEFAULT_MAX_ROWS=200,t.DEFAULT_GHOST_HEIGHT=20,t.DEFAULT_GHOST_WIDTH=150,t.MIN_COLUMN_HEADER_HEIGHT=30,t.MIN_ROW_HEADER_WIDTH=30,t}(),JW=function(){function t(r,e,n){var a=this;this.tableElement=r,this.scrollContainerElement=e,this.cellContainerElement=n,this.convertCellIndexToClientX=function(l){return a.grid.getCumulativeWidthAt(l)},this.convertCellMidpointToClientX=function(l){var o=a.grid.getCumulativeWidthBefore(l),f=a.grid.getCumulativeWidthAt(l);return(o+f)/2},this.convertCellIndexToClientY=function(l){return a.grid.getCumulativeHeightAt(l)},this.convertCellMidpointToClientY=function(l){var o=a.grid.getCumulativeHeightBefore(l),f=a.grid.getCumulativeHeightAt(l);return(o+f)/2},this.toGridX=function(l){var o=a.cellContainerElement.getBoundingClientRect().left,f=a.scrollContainerElement.scrollLeft,i=l-(o+f),s=a.numFrozenColumns!=null&&a.numFrozenColumns>0&&i<=a.grid.getCumulativeWidthBefore(a.numFrozenColumns);return s?i:i+f},this.toGridY=function(l){var o=a.cellContainerElement.getBoundingClientRect().top,f=a.scrollContainerElement.scrollTop,i=l-(o+f),s=a.numFrozenRows!=null&&a.numFrozenRows>0&&i<=a.grid.getCumulativeHeightBefore(a.numFrozenRows);return s?i:i+f},this.numFrozenRows=0,this.numFrozenColumns=0}return t.prototype.setGrid=function(r){return this.grid=r,this},t.prototype.setNumFrozenRows=function(r){return this.numFrozenRows=r,this},t.prototype.setNumFrozenColumns=function(r){return this.numFrozenColumns=r,this},t.prototype.getViewportRect=function(){return new R1(this.scrollContainerElement.scrollLeft||0,this.scrollContainerElement.scrollTop||0,this.scrollContainerElement.clientWidth,this.scrollContainerElement.clientHeight)},t.prototype.getWidestVisibleCellInColumn=function(r){for(var e=this.getColumnCellSelector(r),n=this.tableElement.querySelectorAll(e),a=0,l=0;l<n.length;l++){var o=Gs.measureElementTextContent(n.item(l)).width,f=Math.ceil(o)+t.CELL_HORIZONTAL_PADDING*2;f>a&&(a=f)}return a},t.prototype.getTallestVisibleCellInColumn=function(r){for(var e=this.getColumnCellSelector(r),n=this.tableElement.querySelectorAll("".concat(e,".").concat(jye)),a=0,l=0;l<n.length;l++){var o=n.item(l),f=o.querySelector(".".concat(Kye)),i=o.querySelector(".".concat(Xye)),s=o.querySelector(".".concat(YW)),d=0;f!=null?d=f.scrollHeight:i!=null?d=i.scrollHeight:s!=null?d=s.scrollHeight:d=o.scrollHeight,d>a&&(a=d)}return a},t.prototype.hasVerticalOverflowOrExactFit=function(r,e){return r===void 0&&(r=Ug.MIN_COLUMN_HEADER_HEIGHT),e===void 0&&(e=this.getViewportRect()),this.grid===void 0?!1:this.grid.getHeight()>=e.height-r},t.prototype.hasHorizontalOverflowOrExactFit=function(r,e){return r===void 0&&(r=Ug.MIN_ROW_HEADER_WIDTH),e===void 0&&(e=this.getViewportRect()),this.grid===void 0?!1:this.grid.getWidth()>=e.width-r},t.prototype.convertPointToColumn=function(r,e){var n=this.getTableRect();if(this.grid===void 0||!n.containsX(r))return-1;var a=this.toGridX(r),l=e?this.grid.numCols:this.grid.numCols-1,o=e?this.convertCellMidpointToClientX:this.convertCellIndexToClientX;return Gs.binarySearch(a,l,o)},t.prototype.convertPointToRow=function(r,e){var n=this.getTableRect();if(this.grid===void 0||!n.containsY(r))return-1;var a=this.toGridY(r),l=e?this.grid.numRows:this.grid.numRows-1,o=e?this.convertCellMidpointToClientY:this.convertCellIndexToClientY;return Gs.binarySearch(a,l,o)},t.prototype.convertPointToCell=function(r,e){var n=this.toGridX(r),a=this.toGridY(e),l=Gs.binarySearch(n,this.grid.numCols-1,this.convertCellIndexToClientX),o=Gs.binarySearch(a,this.grid.numRows-1,this.convertCellIndexToClientY);return{col:l,row:o}},t.prototype.getColumnCellSelector=function(r){var e=r<this.numFrozenColumns,n=e?Gye:Wye,a=XW(r);return".".concat(n," .").concat(a)},t.prototype.getTableRect=function(){return R1.wrap(this.tableElement.getBoundingClientRect())},t.CELL_HORIZONTAL_PADDING=10,t}(),udt=25,E1;(function(t){t.ALWAYS="always",t.NEVER="never",t.WHEN_TRUNCATED="when-truncated",t.WHEN_TRUNCATED_APPROX="when-truncated-approx"})(E1||(E1={}));var Jye=function(t){xs(r,t);function r(){var e=t!==null&&t.apply(this,arguments)||this;return e.state={isPopoverOpen:!1,isTruncated:!1},e.handleContentDivRef=function(n){return e.contentDiv=n},e.handlePopoverOpen=function(){e.setState({isPopoverOpen:!0})},e.handlePopoverClose=function(){e.setState({isPopoverOpen:!1})},e}return r.prototype.componentDidMount=function(){this.setTruncationState()},r.prototype.componentDidUpdate=function(){this.setTruncationState()},r.prototype.render=function(){var e=this.props,n=e.children,a=e.detectTruncation,l=e.truncateLength,o=e.truncationSuffix,f=""+n,i=f;if(!a&&l>0&&i.length>l&&(i=i.substring(0,l)+o),this.shouldShowPopover(f)){var s=Di(this.props.className,ndt);return St.createElement("div",{className:s},St.createElement("div",{className:Kye,ref:this.handleContentDivRef},i),this.renderPopover())}else{var s=Di(this.props.className,Xye);return St.createElement("div",{className:s,ref:this.handleContentDivRef},i)}},r.prototype.renderPopover=function(){var e=this.props,n=e.children,a=e.preformatted;if(this.state.isPopoverOpen){var l=Di(idt,a?Eht:Sht),o=St.createElement("div",{className:l},n);return St.createElement(Gx,{className:Dre,content:o,isOpen:!0,onClose:this.handlePopoverClose,placement:"bottom",rootBoundary:"document"},St.createElement(sO,null))}else return St.createElement("span",{className:Dre,onClick:this.handlePopoverOpen},St.createElement(sO,null))},r.prototype.shouldShowPopover=function(e){var n=this.props,a=n.detectTruncation,l=n.measureByApproxOptions,o=n.showPopover,f=n.truncateLength;switch(o){case E1.ALWAYS:return!0;case E1.NEVER:return!1;case E1.WHEN_TRUNCATED:return a?this.state.isTruncated:f>0&&e.length>f;case E1.WHEN_TRUNCATED_APPROX:if(!a)return f>0&&e.length>f;if(this.props.parentCellHeight==null||this.props.parentCellWidth==null)return!1;var i=l,s=i.approximateCharWidth,d=i.approximateLineHeight,u=i.cellHorizontalPadding,h=i.numBufferLines,y=this.props.parentCellWidth,b=Gs.getApproxCellHeight(e,y,s,d,u,h),C=b>this.props.parentCellHeight;return C;default:return!1}},r.prototype.setTruncationState=function(){if(!(!this.props.detectTruncation||this.props.showPopover!==E1.WHEN_TRUNCATED)){if(this.contentDiv==null){this.setState({isTruncated:!1});return}var e=this.state.isTruncated,n=this.contentDiv,a=n.clientHeight,l=n.clientWidth,o=n.scrollHeight,f=n.scrollWidth,i=e?f-udt:f,s=e&&i===l||i>l||o>a;this.setState({isTruncated:s})}},r.displayName="".concat(Wo,".TruncatedFormat"),r.defaultProps={detectTruncation:!1,measureByApproxOptions:{approximateCharWidth:8,approximateLineHeight:18,cellHorizontalPadding:2*JW.CELL_HORIZONTAL_PADDING,numBufferLines:0},preformatted:!1,showPopover:E1.WHEN_TRUNCATED,truncateLength:2e3,truncationSuffix:"..."},r}(St.PureComponent),cdt=function(t){xs(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.render=function(){var e,n=this.props,a=n.children,l=n.omitQuotesOnStrings,o=n.stringify,f=this.props.showPopover,i=a==null;i&&(f=E1.NEVER);var s=Di(this.props.className,(e={},e[Tht]=i,e)),d="";return l&&typeof a=="string"?d=a:d=o(a),St.createElement(Jye,qn({},this.props,{className:s,showPopover:f}),d)},r.displayName="".concat(Wo,".JSONFormat"),r.defaultProps={omitQuotesOnStrings:!0,stringify:function(e){return JSON.stringify(e,null,2)}},r}(St.Component),CH=function(){return St.createElement(qye,null)},qye=function(t){xs(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.shouldComponentUpdate=function(e){return!bv(this.props,e,{exclude:["style"]})||!X0(this.props.style,e.style)},r.prototype.render=function(){var e,n,a=this.props,l=a.cellRef,o=a.tabIndex,f=a.onKeyDown,i=a.onKeyUp,s=a.onKeyPress,d=a.style,u=a.intent,h=a.interactive,y=a.loading,b=a.tooltip,C=a.truncated,m=a.className,c=a.wrapText,v=Di(jye,Vd(u),(e={},e[oht]=h,e[VV]=y,e[rdt]=C,e),m),g=Di((n={},n[YW]=C,n[wht]=!c,n)),p=St.Children.map(this.props.children,function(A){var _=GC(A,Jye)||GC(A,cdt);return d!=null&&St.isValidElement(A)&&_?St.cloneElement(A,{parentCellHeight:d.height===void 0?void 0:parseInt(d.height.toString(),10),parentCellWidth:d.width===void 0?void 0:parseInt(d.width.toString(),10)}):A}),I=St.createElement("div",{className:g},p);return St.createElement("div",{className:v,title:b,ref:l,onKeyDown:f,onKeyPress:s,onKeyUp:i,style:d,tabIndex:o},St.createElement(KW,{loading:y??!1,variableLength:!0},I))},r.displayName="".concat(Wo,".Cell"),r.defaultProps={truncated:!0,wrapText:!1},r}(St.Component),jO=function(){function t(){var r=this;this.isActivated=!1,this.isDragging=!1,this.handleMouseDown=function(e){if(r.initCoordinateData(e),r.handler!=null&&r.handler.onActivate!=null){var n=r.handler.onActivate(e);if(n===!1)return}r.isActivated=!0,r.maybeAlterEventChain(e),r.detachDocumentEventListeners(),r.attachDocumentEventListeners()},this.handleMouseMove=function(e){var n,a;if(r.maybeAlterEventChain(e),r.isActivated&&(r.isDragging=!0),r.isDragging){var l=r.updateCoordinateData(e);l!==void 0&&((a=(n=r.handler)===null||n===void 0?void 0:n.onDragMove)===null||a===void 0||a.call(n,e,l))}},this.handleMouseUp=function(e){var n,a,l,o;if(r.maybeAlterEventChain(e),r.handler!=null)if(r.isDragging){var f=r.updateCoordinateData(e);f!==void 0&&((a=(n=r.handler)===null||n===void 0?void 0:n.onDragMove)===null||a===void 0||a.call(n,e,f),(o=(l=r.handler)===null||l===void 0?void 0:l.onDragEnd)===null||o===void 0||o.call(l,e,f))}else r.isActivated&&(r.handler.onDoubleClick!=null?r.doubleClickTimeoutToken==null?r.doubleClickTimeoutToken=window.setTimeout(function(){var i,s;delete r.doubleClickTimeoutToken,(s=(i=r.handler)===null||i===void 0?void 0:i.onClick)===null||s===void 0||s.call(i,e)},t.DOUBLE_CLICK_TIMEOUT_MSEC):(window.clearTimeout(r.doubleClickTimeoutToken),delete r.doubleClickTimeoutToken,r.handler.onDoubleClick(e)):r.handler.onClick!=null&&r.handler.onClick(e));r.isActivated=!1,r.isDragging=!1,r.detachDocumentEventListeners()}}return t.isAdditive=function(r){return r.ctrlKey||r.metaKey},t.prototype.attach=function(r,e){return this.detach(),this.handler=e,this.element=r,this.isValidDragHandler(e)&&this.element.addEventListener("mousedown",this.handleMouseDown),this},t.prototype.detach=function(){this.element!=null&&(this.element.removeEventListener("mousedown",this.handleMouseDown),this.detachDocumentEventListeners())},t.prototype.isValidDragHandler=function(r){return r!=null&&(r.onActivate!=null||r.onDragMove!=null||r.onDragEnd!=null||r.onClick!=null||r.onDoubleClick!=null)},t.prototype.attachDocumentEventListeners=function(){document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp)},t.prototype.detachDocumentEventListeners=function(){document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp)},t.prototype.initCoordinateData=function(r){this.activationCoordinates=[r.clientX,r.clientY],this.lastCoordinates=this.activationCoordinates},t.prototype.updateCoordinateData=function(r){var e;if(this.activationCoordinates!==void 0){var n=[r.clientX,r.clientY],a=(e=this.lastCoordinates)!==null&&e!==void 0?e:[0,0],l=[n[0]-a[0],n[1]-a[1]],o=[n[0]-this.activationCoordinates[0],n[1]-this.activationCoordinates[1]],f={activation:this.activationCoordinates,current:n,delta:l,last:a,offset:o};return this.lastCoordinates=[r.clientX,r.clientY],f}},t.prototype.maybeAlterEventChain=function(r){var e,n;!((e=this.handler)===null||e===void 0)&&e.preventDefault&&r.preventDefault(),!((n=this.handler)===null||n===void 0)&&n.stopPropagation&&r.stopPropagation()},t.DOUBLE_CLICK_TIMEOUT_MSEC=500,t}(),fdt=["stopPropagation","preventDefault"],qW=function(t){xs(r,t);function r(){var e,n=t.apply(this,arguments)||this;return n.events=new jO,n.targetRef=(e=n.props.targetRef)!==null&&e!==void 0?e:St.createRef(),n}return r.prototype.render=function(){var e=St.Children.only(this.props.children);return this.props.targetRef!==void 0?e:St.cloneElement(e,{ref:this.targetRef})},r.prototype.componentDidUpdate=function(e){var n=!bv(e,this.props,{include:fdt});n&&R7(this.targetRef.current)&&this.events.attach(this.targetRef.current,this.props)},r.prototype.componentDidMount=function(){R7(this.targetRef.current)&&this.events.attach(this.targetRef.current,this.props)},r.prototype.componentWillUnmount=function(){var e;R7(this.targetRef.current)&&((e=this.events)===null||e===void 0||e.detach())},r.defaultProps={preventDefault:!0,stopPropagation:!1},r}(St.PureComponent);function R7(t){return t!=null&&t instanceof HTMLElement}var e1e=function(t){xs(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.displayName="".concat(Wo,".Column"),r.defaultProps={cellRenderer:CH},r}(St.PureComponent),hdt={copyCells:function(t){var r=t.map(function(e){return e.join(" ")}).join(`
|
5144
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var l=!0,o=!1,f;return{s:function(){e=e.call(t)},n:function(){var s=e.next();return l=s.done,s},e:function(s){o=!0,f=s},f:function(){try{!l&&e.return!=null&&e.return()}finally{if(o)throw f}}}}function Cft(t,r){var e;if(t){if(typeof t=="string")return gre(t,r);var n=wh(e=Object.prototype.toString.call(t)).call(e,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return vI(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gre(t,r)}}function gre(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}var Ift=function(){function t(r,e,n,a){var l=this,o,f;Va(this,t),this.body=r,this.canvas=e,this.selectionHandler=n,this.interactionHandler=a,this.editMode=!1,this.manipulationDiv=void 0,this.editModeDiv=void 0,this.closeDiv=void 0,this._domEventListenerCleanupQueue=[],this.temporaryUIFunctions={},this.temporaryEventFunctions=[],this.touchTime=0,this.temporaryIds={nodes:[],edges:[]},this.guiEnabled=!1,this.inMode=!1,this.selectedControlNode=void 0,this.options={},this.defaultOptions={enabled:!1,initiallyActive:!1,addNode:!0,addEdge:!0,editNode:void 0,editEdge:!0,deleteNode:!0,deleteEdge:!0,controlNodeStyle:{shape:"dot",size:6,color:{background:"#ff0000",border:"#3c3c3c",highlight:{background:"#07f968",border:"#3c3c3c"}},borderWidth:2,borderWidthSelected:2}},Lf(this.options,this.defaultOptions),this.body.emitter.on("destroy",function(){l._clean()}),this.body.emitter.on("_dataChanged",Oa(o=this._restore).call(o,this)),this.body.emitter.on("_resetData",Oa(f=this._restore).call(f,this))}return Ga(t,[{key:"_restore",value:function(){this.inMode!==!1&&(this.options.initiallyActive===!0?this.enableEditMode():this.disableEditMode())}},{key:"setOptions",value:function(e,n,a){n!==void 0&&(n.locale!==void 0?this.options.locale=n.locale:this.options.locale=a.locale,n.locales!==void 0?this.options.locales=n.locales:this.options.locales=a.locales),e!==void 0&&(typeof e=="boolean"?this.options.enabled=e:(this.options.enabled=!0,ju(this.options,e)),this.options.initiallyActive===!0&&(this.editMode=!0),this._setup())}},{key:"toggleEditMode",value:function(){this.editMode===!0?this.disableEditMode():this.enableEditMode()}},{key:"enableEditMode",value:function(){this.editMode=!0,this._clean(),this.guiEnabled===!0&&(this.manipulationDiv.style.display="block",this.closeDiv.style.display="block",this.editModeDiv.style.display="none",this.showManipulatorToolbar())}},{key:"disableEditMode",value:function(){this.editMode=!1,this._clean(),this.guiEnabled===!0&&(this.manipulationDiv.style.display="none",this.closeDiv.style.display="none",this.editModeDiv.style.display="block",this._createEditButton())}},{key:"showManipulatorToolbar",value:function(){if(this._clean(),this.manipulationDOM={},this.guiEnabled===!0){var e,n;this.editMode=!0,this.manipulationDiv.style.display="block",this.closeDiv.style.display="block";var a=this.selectionHandler.getSelectedNodeCount(),l=this.selectionHandler.getSelectedEdgeCount(),o=a+l,f=this.options.locales[this.options.locale],i=!1;this.options.addNode!==!1&&(this._createAddNodeButton(f),i=!0),this.options.addEdge!==!1&&(i===!0?this._createSeperator(1):i=!0,this._createAddEdgeButton(f)),a===1&&typeof this.options.editNode=="function"?(i===!0?this._createSeperator(2):i=!0,this._createEditNodeButton(f)):l===1&&a===0&&this.options.editEdge!==!1&&(i===!0?this._createSeperator(3):i=!0,this._createEditEdgeButton(f)),o!==0&&(a>0&&this.options.deleteNode!==!1?(i===!0&&this._createSeperator(4),this._createDeleteButton(f)):a===0&&this.options.deleteEdge!==!1&&(i===!0&&this._createSeperator(4),this._createDeleteButton(f))),this._bindElementEvents(this.closeDiv,Oa(e=this.toggleEditMode).call(e,this)),this._temporaryBindEvent("select",Oa(n=this.showManipulatorToolbar).call(n,this))}this.body.emitter.emit("_redraw")}},{key:"addNodeMode",value:function(){var e;if(this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="addNode",this.guiEnabled===!0){var n,a=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(a),this._createSeperator(),this._createDescription(a.addDescription||this.options.locales.en.addDescription),this._bindElementEvents(this.closeDiv,Oa(n=this.toggleEditMode).call(n,this))}this._temporaryBindEvent("click",Oa(e=this._performAddNode).call(e,this))}},{key:"editNode",value:function(){var e=this;this.editMode!==!0&&this.enableEditMode(),this._clean();var n=this.selectionHandler.getSelectedNodes()[0];if(n!==void 0)if(this.inMode="editNode",typeof this.options.editNode=="function")if(n.isCluster!==!0){var a=ju({},n.options,!1);if(a.x=n.x,a.y=n.y,this.options.editNode.length===2)this.options.editNode(a,function(l){l!=null&&e.inMode==="editNode"&&e.body.data.nodes.getDataSet().update(l),e.showManipulatorToolbar()});else throw new Error("The function for edit does not support two arguments (data, callback)")}else alert(this.options.locales[this.options.locale].editClusterError||this.options.locales.en.editClusterError);else throw new Error("No function has been configured to handle the editing of nodes.");else this.showManipulatorToolbar()}},{key:"addEdgeMode",value:function(){var e,n,a,l,o;if(this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="addEdge",this.guiEnabled===!0){var f,i=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(i),this._createSeperator(),this._createDescription(i.edgeDescription||this.options.locales.en.edgeDescription),this._bindElementEvents(this.closeDiv,Oa(f=this.toggleEditMode).call(f,this))}this._temporaryBindUI("onTouch",Oa(e=this._handleConnect).call(e,this)),this._temporaryBindUI("onDragEnd",Oa(n=this._finishConnect).call(n,this)),this._temporaryBindUI("onDrag",Oa(a=this._dragControlNode).call(a,this)),this._temporaryBindUI("onRelease",Oa(l=this._finishConnect).call(l,this)),this._temporaryBindUI("onDragStart",Oa(o=this._dragStartEdge).call(o,this)),this._temporaryBindUI("onHold",function(){})}},{key:"editEdgeMode",value:function(){if(this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="editEdge",al(this.options.editEdge)==="object"&&typeof this.options.editEdge.editWithoutDrag=="function"&&(this.edgeBeingEditedId=this.selectionHandler.getSelectedEdgeIds()[0],this.edgeBeingEditedId!==void 0)){var e=this.body.edges[this.edgeBeingEditedId];this._performEditEdge(e.from.id,e.to.id);return}if(this.guiEnabled===!0){var n,a=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(a),this._createSeperator(),this._createDescription(a.editEdgeDescription||this.options.locales.en.editEdgeDescription),this._bindElementEvents(this.closeDiv,Oa(n=this.toggleEditMode).call(n,this))}if(this.edgeBeingEditedId=this.selectionHandler.getSelectedEdgeIds()[0],this.edgeBeingEditedId!==void 0){var l,o,f,i,s=this.body.edges[this.edgeBeingEditedId],d=this._getNewTargetNode(s.from.x,s.from.y),u=this._getNewTargetNode(s.to.x,s.to.y);this.temporaryIds.nodes.push(d.id),this.temporaryIds.nodes.push(u.id),this.body.nodes[d.id]=d,this.body.nodeIndices.push(d.id),this.body.nodes[u.id]=u,this.body.nodeIndices.push(u.id),this._temporaryBindUI("onTouch",Oa(l=this._controlNodeTouch).call(l,this)),this._temporaryBindUI("onTap",function(){}),this._temporaryBindUI("onHold",function(){}),this._temporaryBindUI("onDragStart",Oa(o=this._controlNodeDragStart).call(o,this)),this._temporaryBindUI("onDrag",Oa(f=this._controlNodeDrag).call(f,this)),this._temporaryBindUI("onDragEnd",Oa(i=this._controlNodeDragEnd).call(i,this)),this._temporaryBindUI("onMouseMove",function(){}),this._temporaryBindEvent("beforeDrawing",function(h){var y=s.edgeType.findBorderPositions(h);d.selected===!1&&(d.x=y.from.x,d.y=y.from.y),u.selected===!1&&(u.x=y.to.x,u.y=y.to.y)}),this.body.emitter.emit("_redraw")}else this.showManipulatorToolbar()}},{key:"deleteSelected",value:function(){var e=this;this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="delete";var n=this.selectionHandler.getSelectedNodeIds(),a=this.selectionHandler.getSelectedEdgeIds(),l=void 0;if(n.length>0){for(var o=0;o<n.length;o++)if(this.body.nodes[n[o]].isCluster===!0){alert(this.options.locales[this.options.locale].deleteClusterError||this.options.locales.en.deleteClusterError);return}typeof this.options.deleteNode=="function"&&(l=this.options.deleteNode)}else a.length>0&&typeof this.options.deleteEdge=="function"&&(l=this.options.deleteEdge);if(typeof l=="function"){var f={nodes:n,edges:a};if(l.length===2)l(f,function(i){i!=null&&e.inMode==="delete"?(e.body.data.edges.getDataSet().remove(i.edges),e.body.data.nodes.getDataSet().remove(i.nodes),e.body.emitter.emit("startSimulation"),e.showManipulatorToolbar()):(e.body.emitter.emit("startSimulation"),e.showManipulatorToolbar())});else throw new Error("The function for delete does not support two arguments (data, callback)")}else this.body.data.edges.getDataSet().remove(a),this.body.data.nodes.getDataSet().remove(n),this.body.emitter.emit("startSimulation"),this.showManipulatorToolbar()}},{key:"_setup",value:function(){this.options.enabled===!0?(this.guiEnabled=!0,this._createWrappers(),this.editMode===!1?this._createEditButton():this.showManipulatorToolbar()):(this._removeManipulationDOM(),this.guiEnabled=!1)}},{key:"_createWrappers",value:function(){if(this.manipulationDiv===void 0&&(this.manipulationDiv=document.createElement("div"),this.manipulationDiv.className="vis-manipulation",this.editMode===!0?this.manipulationDiv.style.display="block":this.manipulationDiv.style.display="none",this.canvas.frame.appendChild(this.manipulationDiv)),this.editModeDiv===void 0&&(this.editModeDiv=document.createElement("div"),this.editModeDiv.className="vis-edit-mode",this.editMode===!0?this.editModeDiv.style.display="none":this.editModeDiv.style.display="block",this.canvas.frame.appendChild(this.editModeDiv)),this.closeDiv===void 0){var e,n;this.closeDiv=document.createElement("button"),this.closeDiv.className="vis-close",this.closeDiv.setAttribute("aria-label",(e=(n=this.options.locales[this.options.locale])===null||n===void 0?void 0:n.close)!==null&&e!==void 0?e:this.options.locales.en.close),this.closeDiv.style.display=this.manipulationDiv.style.display,this.canvas.frame.appendChild(this.closeDiv)}}},{key:"_getNewTargetNode",value:function(e,n){var a=ju({},this.options.controlNodeStyle);a.id="targetNode"+vT(),a.hidden=!1,a.physics=!1,a.x=e,a.y=n;var l=this.body.functions.createNode(a);return l.shape.boundingBox={left:e,right:e,top:n,bottom:n},l}},{key:"_createEditButton",value:function(){var e;this._clean(),this.manipulationDOM={},rC(this.editModeDiv);var n=this.options.locales[this.options.locale],a=this._createButton("editMode","vis-edit vis-edit-mode",n.edit||this.options.locales.en.edit);this.editModeDiv.appendChild(a),this._bindElementEvents(a,Oa(e=this.toggleEditMode).call(e,this))}},{key:"_clean",value:function(){this.inMode=!1,this.guiEnabled===!0&&(rC(this.editModeDiv),rC(this.manipulationDiv),this._cleanupDOMEventListeners()),this._cleanupTemporaryNodesAndEdges(),this._unbindTemporaryUIs(),this._unbindTemporaryEvents(),this.body.emitter.emit("restorePhysics")}},{key:"_cleanupDOMEventListeners",value:function(){var e,n=Aft(Hy(e=this._domEventListenerCleanupQueue).call(e,0)),a;try{for(n.s();!(a=n.n()).done;){var l=a.value;l()}}catch(o){n.e(o)}finally{n.f()}}},{key:"_removeManipulationDOM",value:function(){this._clean(),rC(this.manipulationDiv),rC(this.editModeDiv),rC(this.closeDiv),this.manipulationDiv&&this.canvas.frame.removeChild(this.manipulationDiv),this.editModeDiv&&this.canvas.frame.removeChild(this.editModeDiv),this.closeDiv&&this.canvas.frame.removeChild(this.closeDiv),this.manipulationDiv=void 0,this.editModeDiv=void 0,this.closeDiv=void 0}},{key:"_createSeperator",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;this.manipulationDOM["seperatorLineDiv"+e]=document.createElement("div"),this.manipulationDOM["seperatorLineDiv"+e].className="vis-separator-line",this.manipulationDiv.appendChild(this.manipulationDOM["seperatorLineDiv"+e])}},{key:"_createAddNodeButton",value:function(e){var n,a=this._createButton("addNode","vis-add",e.addNode||this.options.locales.en.addNode);this.manipulationDiv.appendChild(a),this._bindElementEvents(a,Oa(n=this.addNodeMode).call(n,this))}},{key:"_createAddEdgeButton",value:function(e){var n,a=this._createButton("addEdge","vis-connect",e.addEdge||this.options.locales.en.addEdge);this.manipulationDiv.appendChild(a),this._bindElementEvents(a,Oa(n=this.addEdgeMode).call(n,this))}},{key:"_createEditNodeButton",value:function(e){var n,a=this._createButton("editNode","vis-edit",e.editNode||this.options.locales.en.editNode);this.manipulationDiv.appendChild(a),this._bindElementEvents(a,Oa(n=this.editNode).call(n,this))}},{key:"_createEditEdgeButton",value:function(e){var n,a=this._createButton("editEdge","vis-edit",e.editEdge||this.options.locales.en.editEdge);this.manipulationDiv.appendChild(a),this._bindElementEvents(a,Oa(n=this.editEdgeMode).call(n,this))}},{key:"_createDeleteButton",value:function(e){var n,a;this.options.rtl?a="vis-delete-rtl":a="vis-delete";var l=this._createButton("delete",a,e.del||this.options.locales.en.del);this.manipulationDiv.appendChild(l),this._bindElementEvents(l,Oa(n=this.deleteSelected).call(n,this))}},{key:"_createBackButton",value:function(e){var n,a=this._createButton("back","vis-back",e.back||this.options.locales.en.back);this.manipulationDiv.appendChild(a),this._bindElementEvents(a,Oa(n=this.showManipulatorToolbar).call(n,this))}},{key:"_createButton",value:function(e,n,a){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"vis-label";return this.manipulationDOM[e+"Div"]=document.createElement("button"),this.manipulationDOM[e+"Div"].className="vis-button "+n,this.manipulationDOM[e+"Label"]=document.createElement("div"),this.manipulationDOM[e+"Label"].className=l,this.manipulationDOM[e+"Label"].innerText=a,this.manipulationDOM[e+"Div"].appendChild(this.manipulationDOM[e+"Label"]),this.manipulationDOM[e+"Div"]}},{key:"_createDescription",value:function(e){this.manipulationDOM.descriptionLabel=document.createElement("div"),this.manipulationDOM.descriptionLabel.className="vis-none",this.manipulationDOM.descriptionLabel.innerText=e,this.manipulationDiv.appendChild(this.manipulationDOM.descriptionLabel)}},{key:"_temporaryBindEvent",value:function(e,n){this.temporaryEventFunctions.push({event:e,boundFunction:n}),this.body.emitter.on(e,n)}},{key:"_temporaryBindUI",value:function(e,n){if(this.body.eventListeners[e]!==void 0)this.temporaryUIFunctions[e]=this.body.eventListeners[e],this.body.eventListeners[e]=n;else throw new Error("This UI function does not exist. Typo? You tried: "+e+" possible are: "+N3(ic(this.body.eventListeners)))}},{key:"_unbindTemporaryUIs",value:function(){for(var e in this.temporaryUIFunctions)Object.prototype.hasOwnProperty.call(this.temporaryUIFunctions,e)&&(this.body.eventListeners[e]=this.temporaryUIFunctions[e],delete this.temporaryUIFunctions[e]);this.temporaryUIFunctions={}}},{key:"_unbindTemporaryEvents",value:function(){for(var e=0;e<this.temporaryEventFunctions.length;e++){var n=this.temporaryEventFunctions[e].event,a=this.temporaryEventFunctions[e].boundFunction;this.body.emitter.off(n,a)}this.temporaryEventFunctions=[]}},{key:"_bindElementEvents",value:function(e,n){var a=new fT(e,{});UO(a,n),this._domEventListenerCleanupQueue.push(function(){a.destroy()});var l=function(f){var i=f.keyCode,s=f.key;(s==="Enter"||s===" "||i===13||i===32)&&n()};e.addEventListener("keyup",l,!1),this._domEventListenerCleanupQueue.push(function(){e.removeEventListener("keyup",l,!1)})}},{key:"_cleanupTemporaryNodesAndEdges",value:function(){for(var e=0;e<this.temporaryIds.edges.length;e++){var n;this.body.edges[this.temporaryIds.edges[e]].disconnect(),delete this.body.edges[this.temporaryIds.edges[e]];var a=Wl(n=this.body.edgeIndices).call(n,this.temporaryIds.edges[e]);if(a!==-1){var l;Hy(l=this.body.edgeIndices).call(l,a,1)}}for(var o=0;o<this.temporaryIds.nodes.length;o++){var f;delete this.body.nodes[this.temporaryIds.nodes[o]];var i=Wl(f=this.body.nodeIndices).call(f,this.temporaryIds.nodes[o]);if(i!==-1){var s;Hy(s=this.body.nodeIndices).call(s,i,1)}}this.temporaryIds={nodes:[],edges:[]}}},{key:"_controlNodeTouch",value:function(e){this.selectionHandler.unselectAll(),this.lastTouch=this.body.functions.getPointer(e.center),this.lastTouch.translation=Lf({},this.body.view.translation)}},{key:"_controlNodeDragStart",value:function(){var e=this.lastTouch,n=this.selectionHandler._pointerToPositionObject(e),a=this.body.nodes[this.temporaryIds.nodes[0]],l=this.body.nodes[this.temporaryIds.nodes[1]],o=this.body.edges[this.edgeBeingEditedId];this.selectedControlNode=void 0;var f=a.isOverlappingWith(n),i=l.isOverlappingWith(n);f===!0?(this.selectedControlNode=a,o.edgeType.from=a):i===!0&&(this.selectedControlNode=l,o.edgeType.to=l),this.selectedControlNode!==void 0&&this.selectionHandler.selectObject(this.selectedControlNode),this.body.emitter.emit("_redraw")}},{key:"_controlNodeDrag",value:function(e){this.body.emitter.emit("disablePhysics");var n=this.body.functions.getPointer(e.center),a=this.canvas.DOMtoCanvas(n);this.selectedControlNode!==void 0?(this.selectedControlNode.x=a.x,this.selectedControlNode.y=a.y):this.interactionHandler.onDrag(e),this.body.emitter.emit("_redraw")}},{key:"_controlNodeDragEnd",value:function(e){var n=this.body.functions.getPointer(e.center),a=this.selectionHandler._pointerToPositionObject(n),l=this.body.edges[this.edgeBeingEditedId];if(this.selectedControlNode!==void 0){this.selectionHandler.unselectAll();for(var o=this.selectionHandler._getAllNodesOverlappingWith(a),f=void 0,i=o.length-1;i>=0;i--)if(o[i]!==this.selectedControlNode.id){f=this.body.nodes[o[i]];break}if(f!==void 0&&this.selectedControlNode!==void 0)if(f.isCluster===!0)alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError);else{var s=this.body.nodes[this.temporaryIds.nodes[0]];this.selectedControlNode.id===s.id?this._performEditEdge(f.id,l.to.id):this._performEditEdge(l.from.id,f.id)}else l.updateEdgeType(),this.body.emitter.emit("restorePhysics");this.body.emitter.emit("_redraw")}}},{key:"_handleConnect",value:function(e){if(new Date().valueOf()-this.touchTime>100){this.lastTouch=this.body.functions.getPointer(e.center),this.lastTouch.translation=Lf({},this.body.view.translation),this.interactionHandler.drag.pointer=this.lastTouch,this.interactionHandler.drag.translation=this.lastTouch.translation;var n=this.lastTouch,a=this.selectionHandler.getNodeAt(n);if(a!==void 0)if(a.isCluster===!0)alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError);else{var l=this._getNewTargetNode(a.x,a.y);this.body.nodes[l.id]=l,this.body.nodeIndices.push(l.id);var o=this.body.functions.createEdge({id:"connectionEdge"+vT(),from:a.id,to:l.id,physics:!1,smooth:{enabled:!0,type:"continuous",roundness:.5}});this.body.edges[o.id]=o,this.body.edgeIndices.push(o.id),this.temporaryIds.nodes.push(l.id),this.temporaryIds.edges.push(o.id)}this.touchTime=new Date().valueOf()}}},{key:"_dragControlNode",value:function(e){var n=this.body.functions.getPointer(e.center),a=this.selectionHandler._pointerToPositionObject(n),l=void 0;this.temporaryIds.edges[0]!==void 0&&(l=this.body.edges[this.temporaryIds.edges[0]].fromId);for(var o=this.selectionHandler._getAllNodesOverlappingWith(a),f=void 0,i=o.length-1;i>=0;i--){var s;if(Wl(s=this.temporaryIds.nodes).call(s,o[i])===-1){f=this.body.nodes[o[i]];break}}if(e.controlEdge={from:l,to:f?f.id:void 0},this.selectionHandler.generateClickEvent("controlNodeDragging",e,n),this.temporaryIds.nodes[0]!==void 0){var d=this.body.nodes[this.temporaryIds.nodes[0]];d.x=this.canvas._XconvertDOMtoCanvas(n.x),d.y=this.canvas._YconvertDOMtoCanvas(n.y),this.body.emitter.emit("_redraw")}else this.interactionHandler.onDrag(e)}},{key:"_finishConnect",value:function(e){var n=this.body.functions.getPointer(e.center),a=this.selectionHandler._pointerToPositionObject(n),l=void 0;this.temporaryIds.edges[0]!==void 0&&(l=this.body.edges[this.temporaryIds.edges[0]].fromId);for(var o=this.selectionHandler._getAllNodesOverlappingWith(a),f=void 0,i=o.length-1;i>=0;i--){var s;if(Wl(s=this.temporaryIds.nodes).call(s,o[i])===-1){f=this.body.nodes[o[i]];break}}this._cleanupTemporaryNodesAndEdges(),f!==void 0&&(f.isCluster===!0?alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError):this.body.nodes[l]!==void 0&&this.body.nodes[f.id]!==void 0&&this._performAddEdge(l,f.id)),e.controlEdge={from:l,to:f?f.id:void 0},this.selectionHandler.generateClickEvent("controlNodeDragEnd",e,n),this.body.emitter.emit("_redraw")}},{key:"_dragStartEdge",value:function(e){var n=this.lastTouch;this.selectionHandler.generateClickEvent("dragStart",e,n,void 0,!0)}},{key:"_performAddNode",value:function(e){var n=this,a={id:vT(),x:e.pointer.canvas.x,y:e.pointer.canvas.y,label:"new"};if(typeof this.options.addNode=="function")if(this.options.addNode.length===2)this.options.addNode(a,function(l){l!=null&&n.inMode==="addNode"&&n.body.data.nodes.getDataSet().add(l),n.showManipulatorToolbar()});else throw this.showManipulatorToolbar(),new Error("The function for add does not support two arguments (data,callback)");else this.body.data.nodes.getDataSet().add(a),this.showManipulatorToolbar()}},{key:"_performAddEdge",value:function(e,n){var a=this,l={from:e,to:n};if(typeof this.options.addEdge=="function")if(this.options.addEdge.length===2)this.options.addEdge(l,function(o){o!=null&&a.inMode==="addEdge"&&(a.body.data.edges.getDataSet().add(o),a.selectionHandler.unselectAll(),a.showManipulatorToolbar())});else throw new Error("The function for connect does not support two arguments (data,callback)");else this.body.data.edges.getDataSet().add(l),this.selectionHandler.unselectAll(),this.showManipulatorToolbar()}},{key:"_performEditEdge",value:function(e,n){var a=this,l={id:this.edgeBeingEditedId,from:e,to:n,label:this.body.data.edges.get(this.edgeBeingEditedId).label},o=this.options.editEdge;if(al(o)==="object"&&(o=o.editWithoutDrag),typeof o=="function")if(o.length===2)o(l,function(f){f==null||a.inMode!=="editEdge"?(a.body.edges[l.id].updateEdgeType(),a.body.emitter.emit("_redraw"),a.showManipulatorToolbar()):(a.body.data.edges.getDataSet().update(f),a.selectionHandler.unselectAll(),a.showManipulatorToolbar())});else throw new Error("The function for edit does not support two arguments (data, callback)");else this.body.data.edges.getDataSet().update(l),this.selectionHandler.unselectAll(),this.showManipulatorToolbar()}}]),t}(),Za="string",Pa="boolean",ji="number",FS="array",Uo="object",Fye="dom",bft="any",T7=["arrow","bar","box","circle","crow","curve","diamond","image","inv_curve","inv_triangle","triangle","vee"],_7={borderWidth:{number:ji},borderWidthSelected:{number:ji,undefined:"undefined"},brokenImage:{string:Za,undefined:"undefined"},chosen:{label:{boolean:Pa,function:"function"},node:{boolean:Pa,function:"function"},__type__:{object:Uo,boolean:Pa}},color:{border:{string:Za},background:{string:Za},highlight:{border:{string:Za},background:{string:Za},__type__:{object:Uo,string:Za}},hover:{border:{string:Za},background:{string:Za},__type__:{object:Uo,string:Za}},__type__:{object:Uo,string:Za}},opacity:{number:ji,undefined:"undefined"},fixed:{x:{boolean:Pa},y:{boolean:Pa},__type__:{object:Uo,boolean:Pa}},font:{align:{string:Za},color:{string:Za},size:{number:ji},face:{string:Za},background:{string:Za},strokeWidth:{number:ji},strokeColor:{string:Za},vadjust:{number:ji},multi:{boolean:Pa,string:Za},bold:{color:{string:Za},size:{number:ji},face:{string:Za},mod:{string:Za},vadjust:{number:ji},__type__:{object:Uo,string:Za}},boldital:{color:{string:Za},size:{number:ji},face:{string:Za},mod:{string:Za},vadjust:{number:ji},__type__:{object:Uo,string:Za}},ital:{color:{string:Za},size:{number:ji},face:{string:Za},mod:{string:Za},vadjust:{number:ji},__type__:{object:Uo,string:Za}},mono:{color:{string:Za},size:{number:ji},face:{string:Za},mod:{string:Za},vadjust:{number:ji},__type__:{object:Uo,string:Za}},__type__:{object:Uo,string:Za}},group:{string:Za,number:ji,undefined:"undefined"},heightConstraint:{minimum:{number:ji},valign:{string:Za},__type__:{object:Uo,boolean:Pa,number:ji}},hidden:{boolean:Pa},icon:{face:{string:Za},code:{string:Za},size:{number:ji},color:{string:Za},weight:{string:Za,number:ji},__type__:{object:Uo}},id:{string:Za,number:ji},image:{selected:{string:Za,undefined:"undefined"},unselected:{string:Za,undefined:"undefined"},__type__:{object:Uo,string:Za}},imagePadding:{top:{number:ji},right:{number:ji},bottom:{number:ji},left:{number:ji},__type__:{object:Uo,number:ji}},label:{string:Za,undefined:"undefined"},labelHighlightBold:{boolean:Pa},level:{number:ji,undefined:"undefined"},margin:{top:{number:ji},right:{number:ji},bottom:{number:ji},left:{number:ji},__type__:{object:Uo,number:ji}},mass:{number:ji},physics:{boolean:Pa},scaling:{min:{number:ji},max:{number:ji},label:{enabled:{boolean:Pa},min:{number:ji},max:{number:ji},maxVisible:{number:ji},drawThreshold:{number:ji},__type__:{object:Uo,boolean:Pa}},customScalingFunction:{function:"function"},__type__:{object:Uo}},shadow:{enabled:{boolean:Pa},color:{string:Za},size:{number:ji},x:{number:ji},y:{number:ji},__type__:{object:Uo,boolean:Pa}},shape:{string:["custom","ellipse","circle","database","box","text","image","circularImage","diamond","dot","star","triangle","triangleDown","square","icon","hexagon"]},ctxRenderer:{function:"function"},shapeProperties:{borderDashes:{boolean:Pa,array:FS},borderRadius:{number:ji},interpolation:{boolean:Pa},useImageSize:{boolean:Pa},useBorderWithImage:{boolean:Pa},coordinateOrigin:{string:["center","top-left"]},__type__:{object:Uo}},size:{number:ji},title:{string:Za,dom:Fye,undefined:"undefined"},value:{number:ji,undefined:"undefined"},widthConstraint:{minimum:{number:ji},maximum:{number:ji},__type__:{object:Uo,boolean:Pa,number:ji}},x:{number:ji},y:{number:ji},__type__:{object:Uo}},xft={configure:{enabled:{boolean:Pa},filter:{boolean:Pa,string:Za,array:FS,function:"function"},container:{dom:Fye},showButton:{boolean:Pa},__type__:{object:Uo,boolean:Pa,string:Za,array:FS,function:"function"}},edges:{arrows:{to:{enabled:{boolean:Pa},scaleFactor:{number:ji},type:{string:T7},imageHeight:{number:ji},imageWidth:{number:ji},src:{string:Za},__type__:{object:Uo,boolean:Pa}},middle:{enabled:{boolean:Pa},scaleFactor:{number:ji},type:{string:T7},imageWidth:{number:ji},imageHeight:{number:ji},src:{string:Za},__type__:{object:Uo,boolean:Pa}},from:{enabled:{boolean:Pa},scaleFactor:{number:ji},type:{string:T7},imageWidth:{number:ji},imageHeight:{number:ji},src:{string:Za},__type__:{object:Uo,boolean:Pa}},__type__:{string:["from","to","middle"],object:Uo}},endPointOffset:{from:{number:ji},to:{number:ji},__type__:{object:Uo,number:ji}},arrowStrikethrough:{boolean:Pa},background:{enabled:{boolean:Pa},color:{string:Za},size:{number:ji},dashes:{boolean:Pa,array:FS},__type__:{object:Uo,boolean:Pa}},chosen:{label:{boolean:Pa,function:"function"},edge:{boolean:Pa,function:"function"},__type__:{object:Uo,boolean:Pa}},color:{color:{string:Za},highlight:{string:Za},hover:{string:Za},inherit:{string:["from","to","both"],boolean:Pa},opacity:{number:ji},__type__:{object:Uo,string:Za}},dashes:{boolean:Pa,array:FS},font:{color:{string:Za},size:{number:ji},face:{string:Za},background:{string:Za},strokeWidth:{number:ji},strokeColor:{string:Za},align:{string:["horizontal","top","middle","bottom"]},vadjust:{number:ji},multi:{boolean:Pa,string:Za},bold:{color:{string:Za},size:{number:ji},face:{string:Za},mod:{string:Za},vadjust:{number:ji},__type__:{object:Uo,string:Za}},boldital:{color:{string:Za},size:{number:ji},face:{string:Za},mod:{string:Za},vadjust:{number:ji},__type__:{object:Uo,string:Za}},ital:{color:{string:Za},size:{number:ji},face:{string:Za},mod:{string:Za},vadjust:{number:ji},__type__:{object:Uo,string:Za}},mono:{color:{string:Za},size:{number:ji},face:{string:Za},mod:{string:Za},vadjust:{number:ji},__type__:{object:Uo,string:Za}},__type__:{object:Uo,string:Za}},hidden:{boolean:Pa},hoverWidth:{function:"function",number:ji},label:{string:Za,undefined:"undefined"},labelHighlightBold:{boolean:Pa},length:{number:ji,undefined:"undefined"},physics:{boolean:Pa},scaling:{min:{number:ji},max:{number:ji},label:{enabled:{boolean:Pa},min:{number:ji},max:{number:ji},maxVisible:{number:ji},drawThreshold:{number:ji},__type__:{object:Uo,boolean:Pa}},customScalingFunction:{function:"function"},__type__:{object:Uo}},selectionWidth:{function:"function",number:ji},selfReferenceSize:{number:ji},selfReference:{size:{number:ji},angle:{number:ji},renderBehindTheNode:{boolean:Pa},__type__:{object:Uo}},shadow:{enabled:{boolean:Pa},color:{string:Za},size:{number:ji},x:{number:ji},y:{number:ji},__type__:{object:Uo,boolean:Pa}},smooth:{enabled:{boolean:Pa},type:{string:["dynamic","continuous","discrete","diagonalCross","straightCross","horizontal","vertical","curvedCW","curvedCCW","cubicBezier"]},roundness:{number:ji},forceDirection:{string:["horizontal","vertical","none"],boolean:Pa},__type__:{object:Uo,boolean:Pa}},title:{string:Za,undefined:"undefined"},width:{number:ji},widthConstraint:{maximum:{number:ji},__type__:{object:Uo,boolean:Pa,number:ji}},value:{number:ji,undefined:"undefined"},__type__:{object:Uo}},groups:{useDefaultGroups:{boolean:Pa},__any__:_7,__type__:{object:Uo}},interaction:{dragNodes:{boolean:Pa},dragView:{boolean:Pa},hideEdgesOnDrag:{boolean:Pa},hideEdgesOnZoom:{boolean:Pa},hideNodesOnDrag:{boolean:Pa},hover:{boolean:Pa},keyboard:{enabled:{boolean:Pa},speed:{x:{number:ji},y:{number:ji},zoom:{number:ji},__type__:{object:Uo}},bindToWindow:{boolean:Pa},autoFocus:{boolean:Pa},__type__:{object:Uo,boolean:Pa}},multiselect:{boolean:Pa},navigationButtons:{boolean:Pa},selectable:{boolean:Pa},selectConnectedEdges:{boolean:Pa},hoverConnectedEdges:{boolean:Pa},tooltipDelay:{number:ji},zoomView:{boolean:Pa},zoomSpeed:{number:ji},__type__:{object:Uo}},layout:{randomSeed:{undefined:"undefined",number:ji,string:Za},improvedLayout:{boolean:Pa},clusterThreshold:{number:ji},hierarchical:{enabled:{boolean:Pa},levelSeparation:{number:ji},nodeSpacing:{number:ji},treeSpacing:{number:ji},blockShifting:{boolean:Pa},edgeMinimization:{boolean:Pa},parentCentralization:{boolean:Pa},direction:{string:["UD","DU","LR","RL"]},sortMethod:{string:["hubsize","directed"]},shakeTowards:{string:["leaves","roots"]},__type__:{object:Uo,boolean:Pa}},__type__:{object:Uo}},manipulation:{enabled:{boolean:Pa},initiallyActive:{boolean:Pa},addNode:{boolean:Pa,function:"function"},addEdge:{boolean:Pa,function:"function"},editNode:{function:"function"},editEdge:{editWithoutDrag:{function:"function"},__type__:{object:Uo,boolean:Pa,function:"function"}},deleteNode:{boolean:Pa,function:"function"},deleteEdge:{boolean:Pa,function:"function"},controlNodeStyle:_7,__type__:{object:Uo,boolean:Pa}},nodes:_7,physics:{enabled:{boolean:Pa},barnesHut:{theta:{number:ji},gravitationalConstant:{number:ji},centralGravity:{number:ji},springLength:{number:ji},springConstant:{number:ji},damping:{number:ji},avoidOverlap:{number:ji},__type__:{object:Uo}},forceAtlas2Based:{theta:{number:ji},gravitationalConstant:{number:ji},centralGravity:{number:ji},springLength:{number:ji},springConstant:{number:ji},damping:{number:ji},avoidOverlap:{number:ji},__type__:{object:Uo}},repulsion:{centralGravity:{number:ji},springLength:{number:ji},springConstant:{number:ji},nodeDistance:{number:ji},damping:{number:ji},__type__:{object:Uo}},hierarchicalRepulsion:{centralGravity:{number:ji},springLength:{number:ji},springConstant:{number:ji},nodeDistance:{number:ji},damping:{number:ji},avoidOverlap:{number:ji},__type__:{object:Uo}},maxVelocity:{number:ji},minVelocity:{number:ji},solver:{string:["barnesHut","repulsion","hierarchicalRepulsion","forceAtlas2Based"]},stabilization:{enabled:{boolean:Pa},iterations:{number:ji},updateInterval:{number:ji},onlyDynamicEdges:{boolean:Pa},fit:{boolean:Pa},__type__:{object:Uo,boolean:Pa}},timestep:{number:ji},adaptiveTimestep:{boolean:Pa},wind:{x:{number:ji},y:{number:ji},__type__:{object:Uo}},__type__:{object:Uo,boolean:Pa}},autoResize:{boolean:Pa},clickToUse:{boolean:Pa},locale:{string:Za},locales:{__any__:{any:bft},__type__:{object:Uo}},height:{string:Za},width:{string:Za},__type__:{object:Uo}},zye={nodes:{borderWidth:[1,0,10,1],borderWidthSelected:[2,0,10,1],color:{border:["color","#2B7CE9"],background:["color","#97C2FC"],highlight:{border:["color","#2B7CE9"],background:["color","#D2E5FF"]},hover:{border:["color","#2B7CE9"],background:["color","#D2E5FF"]}},opacity:[0,0,1,.1],fixed:{x:!1,y:!1},font:{color:["color","#343434"],size:[14,0,100,1],face:["arial","verdana","tahoma"],background:["color","none"],strokeWidth:[0,0,50,1],strokeColor:["color","#ffffff"]},hidden:!1,labelHighlightBold:!0,physics:!0,scaling:{min:[10,0,200,1],max:[30,0,200,1],label:{enabled:!1,min:[14,0,200,1],max:[30,0,200,1],maxVisible:[30,0,200,1],drawThreshold:[5,0,20,1]}},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:[10,0,20,1],x:[5,-30,30,1],y:[5,-30,30,1]},shape:["ellipse","box","circle","database","diamond","dot","square","star","text","triangle","triangleDown","hexagon"],shapeProperties:{borderDashes:!1,borderRadius:[6,0,20,1],interpolation:!0,useImageSize:!1},size:[25,0,200,1]},edges:{arrows:{to:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"},middle:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"},from:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"}},endPointOffset:{from:[0,-10,10,1],to:[0,-10,10,1]},arrowStrikethrough:!0,color:{color:["color","#848484"],highlight:["color","#848484"],hover:["color","#848484"],inherit:["from","to","both",!0,!1],opacity:[1,0,1,.05]},dashes:!1,font:{color:["color","#343434"],size:[14,0,100,1],face:["arial","verdana","tahoma"],background:["color","none"],strokeWidth:[2,0,50,1],strokeColor:["color","#ffffff"],align:["horizontal","top","middle","bottom"]},hidden:!1,hoverWidth:[1.5,0,5,.1],labelHighlightBold:!0,physics:!0,scaling:{min:[1,0,100,1],max:[15,0,100,1],label:{enabled:!0,min:[14,0,200,1],max:[30,0,200,1],maxVisible:[30,0,200,1],drawThreshold:[5,0,20,1]}},selectionWidth:[1.5,0,5,.1],selfReferenceSize:[20,0,200,1],selfReference:{size:[20,0,200,1],angle:[Math.PI/2,-6*Math.PI,6*Math.PI,Math.PI/8],renderBehindTheNode:!0},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:[10,0,20,1],x:[5,-30,30,1],y:[5,-30,30,1]},smooth:{enabled:!0,type:["dynamic","continuous","discrete","diagonalCross","straightCross","horizontal","vertical","curvedCW","curvedCCW","cubicBezier"],forceDirection:["horizontal","vertical","none"],roundness:[.5,0,1,.05]},width:[1,0,30,1]},layout:{hierarchical:{enabled:!1,levelSeparation:[150,20,500,5],nodeSpacing:[100,20,500,5],treeSpacing:[200,20,500,5],blockShifting:!0,edgeMinimization:!0,parentCentralization:!0,direction:["UD","DU","LR","RL"],sortMethod:["hubsize","directed"],shakeTowards:["leaves","roots"]}},interaction:{dragNodes:!0,dragView:!0,hideEdgesOnDrag:!1,hideEdgesOnZoom:!1,hideNodesOnDrag:!1,hover:!1,keyboard:{enabled:!1,speed:{x:[10,0,40,1],y:[10,0,40,1],zoom:[.02,0,.1,.005]},bindToWindow:!0,autoFocus:!0},multiselect:!1,navigationButtons:!1,selectable:!0,selectConnectedEdges:!0,hoverConnectedEdges:!0,tooltipDelay:[300,0,1e3,25],zoomView:!0,zoomSpeed:[1,.1,2,.1]},manipulation:{enabled:!1,initiallyActive:!1},physics:{enabled:!0,barnesHut:{theta:[.5,.1,1,.05],gravitationalConstant:[-2e3,-3e4,0,50],centralGravity:[.3,0,10,.05],springLength:[95,0,500,5],springConstant:[.04,0,1.2,.005],damping:[.09,0,1,.01],avoidOverlap:[0,0,1,.01]},forceAtlas2Based:{theta:[.5,.1,1,.05],gravitationalConstant:[-50,-500,0,1],centralGravity:[.01,0,1,.005],springLength:[95,0,500,5],springConstant:[.08,0,1.2,.005],damping:[.4,0,1,.01],avoidOverlap:[0,0,1,.01]},repulsion:{centralGravity:[.2,0,10,.05],springLength:[200,0,500,5],springConstant:[.05,0,1.2,.005],nodeDistance:[100,0,500,5],damping:[.09,0,1,.01]},hierarchicalRepulsion:{centralGravity:[.2,0,10,.05],springLength:[100,0,500,5],springConstant:[.01,0,1.2,.005],nodeDistance:[120,0,500,5],damping:[.09,0,1,.01],avoidOverlap:[0,0,1,.01]},maxVelocity:[50,0,150,1],minVelocity:[.1,.01,.5,.01],solver:["barnesHut","forceAtlas2Based","repulsion","hierarchicalRepulsion"],timestep:[.5,.01,1,.01],wind:{x:[0,-10,10,.1],y:[0,-10,10,.1]}}},wft=function(r,e,n){var a;return!!(MC(r).call(r,"physics")&&MC(a=zye.physics.solver).call(a,e)&&n.physics.solver!==e&&e!=="wind")},Tft=function(){function t(){Va(this,t)}return Ga(t,[{key:"getDistances",value:function(e,n,a){for(var l={},o=e.edges,f=0;f<n.length;f++){var i=n[f],s={};l[i]=s;for(var d=0;d<n.length;d++)s[n[d]]=f==d?0:1e9}for(var u=0;u<a.length;u++){var h=o[a[u]];h.connected===!0&&l[h.fromId]!==void 0&&l[h.toId]!==void 0&&(l[h.fromId][h.toId]=1,l[h.toId][h.fromId]=1)}for(var y=n.length,b=0;b<y;b++)for(var C=n[b],m=l[C],c=0;c<y-1;c++)for(var v=n[c],g=l[v],p=c+1;p<y;p++){var I=n[p],A=l[I],_=Math.min(g[I],g[C]+m[I]);g[I]=_,A[v]=_}return l}}]),t}(),_ft=function(){function t(r,e,n){Va(this,t),this.body=r,this.springLength=e,this.springConstant=n,this.distanceSolver=new Tft}return Ga(t,[{key:"setOptions",value:function(e){e&&(e.springLength&&(this.springLength=e.springLength),e.springConstant&&(this.springConstant=e.springConstant))}},{key:"solve",value:function(e,n){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,l=this.distanceSolver.getDistances(this.body,e,n);this._createL_matrix(l),this._createK_matrix(l),this._createE_matrix();for(var o=.01,f=1,i=0,s=Math.max(1e3,Math.min(10*this.body.nodeIndices.length,6e3)),d=5,u=1e9,h=0,y=0,b=0,C=0,m=0;u>o&&i<s;){i+=1;var c=this._getHighestEnergyNode(a),v=ml(c,4);for(h=v[0],u=v[1],y=v[2],b=v[3],C=u,m=0;C>f&&m<d;){m+=1,this._moveNode(h,y,b);var g=this._getEnergy(h),p=ml(g,3);C=p[0],y=p[1],b=p[2]}}}},{key:"_getHighestEnergyNode",value:function(e){for(var n=this.body.nodeIndices,a=this.body.nodes,l=0,o=n[0],f=0,i=0,s=0;s<n.length;s++){var d=n[s];if(a[d].predefinedPosition!==!0||a[d].isCluster===!0&&e===!0||a[d].options.fixed.x!==!0||a[d].options.fixed.y!==!0){var u=this._getEnergy(d),h=ml(u,3),y=h[0],b=h[1],C=h[2];l<y&&(l=y,o=d,f=b,i=C)}}return[o,l,f,i]}},{key:"_getEnergy",value:function(e){var n=ml(this.E_sums[e],2),a=n[0],l=n[1],o=Math.sqrt(Math.pow(a,2)+Math.pow(l,2));return[o,a,l]}},{key:"_moveNode",value:function(e,n,a){for(var l=this.body.nodeIndices,o=this.body.nodes,f=0,i=0,s=0,d=o[e].x,u=o[e].y,h=this.K_matrix[e],y=this.L_matrix[e],b=0;b<l.length;b++){var C=l[b];if(C!==e){var m=o[C].x,c=o[C].y,v=h[C],g=y[C],p=1/Math.pow(Math.pow(d-m,2)+Math.pow(u-c,2),1.5);f+=v*(1-g*Math.pow(u-c,2)*p),i+=v*(g*(d-m)*(u-c)*p),s+=v*(1-g*Math.pow(d-m,2)*p)}}var I=f,A=i,_=n,w=s,E=a,x=(_/I+E/A)/(A/I-w/A),S=-(A*x+_)/I;o[e].x+=S,o[e].y+=x,this._updateE_matrix(e)}},{key:"_createL_matrix",value:function(e){var n=this.body.nodeIndices,a=this.springLength;this.L_matrix=[];for(var l=0;l<n.length;l++){this.L_matrix[n[l]]={};for(var o=0;o<n.length;o++)this.L_matrix[n[l]][n[o]]=a*e[n[l]][n[o]]}}},{key:"_createK_matrix",value:function(e){var n=this.body.nodeIndices,a=this.springConstant;this.K_matrix=[];for(var l=0;l<n.length;l++){this.K_matrix[n[l]]={};for(var o=0;o<n.length;o++)this.K_matrix[n[l]][n[o]]=a*Math.pow(e[n[l]][n[o]],-2)}}},{key:"_createE_matrix",value:function(){var e=this.body.nodeIndices,n=this.body.nodes;this.E_matrix={},this.E_sums={};for(var a=0;a<e.length;a++)this.E_matrix[e[a]]=[];for(var l=0;l<e.length;l++){for(var o=e[l],f=n[o].x,i=n[o].y,s=0,d=0,u=l;u<e.length;u++){var h=e[u];if(h!==o){var y=n[h].x,b=n[h].y,C=1/Math.sqrt(Math.pow(f-y,2)+Math.pow(i-b,2));this.E_matrix[o][u]=[this.K_matrix[o][h]*(f-y-this.L_matrix[o][h]*(f-y)*C),this.K_matrix[o][h]*(i-b-this.L_matrix[o][h]*(i-b)*C)],this.E_matrix[h][l]=this.E_matrix[o][u],s+=this.E_matrix[o][u][0],d+=this.E_matrix[o][u][1]}}this.E_sums[o]=[s,d]}}},{key:"_updateE_matrix",value:function(e){for(var n=this.body.nodeIndices,a=this.body.nodes,l=this.E_matrix[e],o=this.K_matrix[e],f=this.L_matrix[e],i=a[e].x,s=a[e].y,d=0,u=0,h=0;h<n.length;h++){var y=n[h];if(y!==e){var b=l[h],C=b[0],m=b[1],c=a[y].x,v=a[y].y,g=1/Math.sqrt(Math.pow(i-c,2)+Math.pow(s-v,2)),p=o[y]*(i-c-f[y]*(i-c)*g),I=o[y]*(s-v-f[y]*(s-v)*g);l[h]=[p,I],d+=p,u+=I;var A=this.E_sums[y];A[0]+=p-C,A[1]+=I-m}}this.E_sums[e]=[d,u]}}]),t}();function No(t,r,e){var n,a,l,o,f=this;if(!(this instanceof No))throw new SyntaxError("Constructor must be called with the new operator");this.options={},this.defaultOptions={locale:"en",locales:hJe,clickToUse:!1},Lf(this.options,this.defaultOptions),this.body={container:t,nodes:{},nodeIndices:[],edges:{},edgeIndices:[],emitter:{on:Oa(n=this.on).call(n,this),off:Oa(a=this.off).call(a,this),emit:Oa(l=this.emit).call(l,this),once:Oa(o=this.once).call(o,this)},eventListeners:{onTap:function(){},onTouch:function(){},onDoubleTap:function(){},onHold:function(){},onDragStart:function(){},onDrag:function(){},onDragEnd:function(){},onMouseWheel:function(){},onPinch:function(){},onMouseMove:function(){},onRelease:function(){},onContext:function(){}},data:{nodes:null,edges:null},functions:{createNode:function(){},createEdge:function(){},getPointer:function(){}},modules:{},view:{scale:1,translation:{x:0,y:0}},selectionBox:{show:!1,position:{start:{x:0,y:0},end:{x:0,y:0}}}},this.bindEventListeners(),this.images=new gJe(function(){return f.body.emitter.emit("_requestRedraw")}),this.groups=new Pqe,this.canvas=new fct(this.body),this.selectionHandler=new Xct(this.body,this.canvas),this.interactionHandler=new yct(this.body,this.canvas,this.selectionHandler),this.view=new dct(this.body,this.canvas),this.renderer=new oct(this.body,this.canvas),this.physics=new ect(this.body),this.layoutEngine=new mft(this.body),this.clustering=new ict(this.body),this.manipulation=new Ift(this.body,this.canvas,this.selectionHandler,this.interactionHandler),this.nodesHandler=new Flt(this.body,this.images,this.groups,this.layoutEngine),this.edgesHandler=new Vut(this.body,this.images,this.groups),this.body.modules.kamadaKawai=new _ft(this.body,150,.05),this.body.modules.clustering=this.clustering,this.canvas._create(),this.setOptions(e),this.setData(r)}jge(No.prototype);No.prototype.setOptions=function(t){var r=this;if(t===null&&(t=void 0),t!==void 0){var e=jQe.validate(t,xft);e===!0&&console.error("%cErrors have been found in the supplied options object.",s0e);var n=["locale","locales","clickToUse"];if(z3(n,this.options,t),t.locale!==void 0&&(t.locale=dJe(t.locales||this.options.locales,t.locale)),t=this.layoutEngine.setOptions(t.layout,t),this.canvas.setOptions(t),this.groups.setOptions(t.groups),this.nodesHandler.setOptions(t.nodes),this.edgesHandler.setOptions(t.edges),this.physics.setOptions(t.physics),this.manipulation.setOptions(t.manipulation,t,this.options),this.interactionHandler.setOptions(t.interaction),this.renderer.setOptions(t.interaction),this.selectionHandler.setOptions(t.interaction),t.groups!==void 0&&this.body.emitter.emit("refreshNodes"),"configure"in t&&(this.configurator||(this.configurator=new UQe(this,this.body.container,zye,this.canvas.pixelRatio,wft)),this.configurator.setOptions(t.configure)),this.configurator&&this.configurator.options.enabled===!0){var a={nodes:{},edges:{},layout:{},interaction:{},manipulation:{},physics:{},global:{}};ju(a.nodes,this.nodesHandler.options),ju(a.edges,this.edgesHandler.options),ju(a.layout,this.layoutEngine.options),ju(a.interaction,this.selectionHandler.options),ju(a.interaction,this.renderer.options),ju(a.interaction,this.interactionHandler.options),ju(a.manipulation,this.manipulation.options),ju(a.physics,this.physics.options),ju(a.global,this.canvas.options),ju(a.global,this.options),this.configurator.setModuleOptions(a)}t.clickToUse!==void 0?t.clickToUse===!0?this.activator===void 0&&(this.activator=new $Qe(this.canvas.frame),this.activator.on("change",function(){r.body.emitter.emit("activate")})):(this.activator!==void 0&&(this.activator.destroy(),delete this.activator),this.body.emitter.emit("activate")):this.body.emitter.emit("activate"),this.canvas.setSize(),this.body.emitter.emit("startSimulation")}};No.prototype._updateVisibleIndices=function(){var t=this.body.nodes,r=this.body.edges;this.body.nodeIndices=[],this.body.edgeIndices=[];for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&!this.clustering._isClusteredNode(e)&&t[e].options.hidden===!1&&this.body.nodeIndices.push(t[e].id);for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n)){var a=r[n],l=t[a.fromId],o=t[a.toId],f=l!==void 0&&o!==void 0,i=!this.clustering._isClusteredEdge(n)&&a.options.hidden===!1&&f&&l.options.hidden===!1&&o.options.hidden===!1;i&&this.body.edgeIndices.push(a.id)}};No.prototype.bindEventListeners=function(){var t=this;this.body.emitter.on("_dataChanged",function(){t.edgesHandler._updateState(),t.body.emitter.emit("_dataUpdated")}),this.body.emitter.on("_dataUpdated",function(){t.clustering._updateState(),t._updateVisibleIndices(),t._updateValueRange(t.body.nodes),t._updateValueRange(t.body.edges),t.body.emitter.emit("startSimulation"),t.body.emitter.emit("_requestRedraw")})};No.prototype.setData=function(t){if(this.body.emitter.emit("resetPhysics"),this.body.emitter.emit("_resetData"),this.selectionHandler.unselectAll(),t&&t.dot&&(t.nodes||t.edges))throw new SyntaxError('Data must contain either parameter "dot" or parameter pair "nodes" and "edges", but not both.');if(this.setOptions(t&&t.options),t&&t.dot){console.warn("The dot property has been deprecated. Please use the static convertDot method to convert DOT into vis.network format and use the normal data format with nodes and edges. This converter is used like this: var data = vis.network.convertDot(dotString);");var r=qQe(t.dot);this.setData(r);return}else if(t&&t.gephi){console.warn("The gephi property has been deprecated. Please use the static convertGephi method to convert gephi into vis.network format and use the normal data format with nodes and edges. This converter is used like this: var data = vis.network.convertGephi(gephiJson);");var e=eJe(t.gephi);this.setData(e);return}else this.nodesHandler.setData(t&&t.nodes,!0),this.edgesHandler.setData(t&&t.edges,!0);this.body.emitter.emit("_dataChanged"),this.body.emitter.emit("_dataLoaded"),this.body.emitter.emit("initPhysics")};No.prototype.destroy=function(){this.body.emitter.emit("destroy"),this.body.emitter.off(),this.off(),delete this.groups,delete this.canvas,delete this.selectionHandler,delete this.interactionHandler,delete this.view,delete this.renderer,delete this.physics,delete this.layoutEngine,delete this.clustering,delete this.manipulation,delete this.nodesHandler,delete this.edgesHandler,delete this.configurator,delete this.images;for(var t in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,t)&&delete this.body.nodes[t];for(var r in this.body.edges)Object.prototype.hasOwnProperty.call(this.body.edges,r)&&delete this.body.edges[r];rC(this.body.container)};No.prototype._updateValueRange=function(t){var r,e=void 0,n=void 0,a=0;for(r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var l=t[r].getValue();l!==void 0&&(e=e===void 0?l:Math.min(l,e),n=n===void 0?l:Math.max(l,n),a+=l)}if(e!==void 0&&n!==void 0)for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&t[r].setValueRange(e,n,a)};No.prototype.isActive=function(){return!this.activator||this.activator.active};No.prototype.setSize=function(){return this.canvas.setSize.apply(this.canvas,arguments)};No.prototype.canvasToDOM=function(){return this.canvas.canvasToDOM.apply(this.canvas,arguments)};No.prototype.DOMtoCanvas=function(){return this.canvas.DOMtoCanvas.apply(this.canvas,arguments)};No.prototype.findNode=function(){return this.clustering.findNode.apply(this.clustering,arguments)};No.prototype.isCluster=function(){return this.clustering.isCluster.apply(this.clustering,arguments)};No.prototype.openCluster=function(){return this.clustering.openCluster.apply(this.clustering,arguments)};No.prototype.cluster=function(){return this.clustering.cluster.apply(this.clustering,arguments)};No.prototype.getNodesInCluster=function(){return this.clustering.getNodesInCluster.apply(this.clustering,arguments)};No.prototype.clusterByConnection=function(){return this.clustering.clusterByConnection.apply(this.clustering,arguments)};No.prototype.clusterByHubsize=function(){return this.clustering.clusterByHubsize.apply(this.clustering,arguments)};No.prototype.updateClusteredNode=function(){return this.clustering.updateClusteredNode.apply(this.clustering,arguments)};No.prototype.getClusteredEdges=function(){return this.clustering.getClusteredEdges.apply(this.clustering,arguments)};No.prototype.getBaseEdge=function(){return this.clustering.getBaseEdge.apply(this.clustering,arguments)};No.prototype.getBaseEdges=function(){return this.clustering.getBaseEdges.apply(this.clustering,arguments)};No.prototype.updateEdge=function(){return this.clustering.updateEdge.apply(this.clustering,arguments)};No.prototype.clusterOutliers=function(){return this.clustering.clusterOutliers.apply(this.clustering,arguments)};No.prototype.getSeed=function(){return this.layoutEngine.getSeed.apply(this.layoutEngine,arguments)};No.prototype.enableEditMode=function(){return this.manipulation.enableEditMode.apply(this.manipulation,arguments)};No.prototype.disableEditMode=function(){return this.manipulation.disableEditMode.apply(this.manipulation,arguments)};No.prototype.addNodeMode=function(){return this.manipulation.addNodeMode.apply(this.manipulation,arguments)};No.prototype.editNode=function(){return this.manipulation.editNode.apply(this.manipulation,arguments)};No.prototype.editNodeMode=function(){return console.warn("Deprecated: Please use editNode instead of editNodeMode."),this.manipulation.editNode.apply(this.manipulation,arguments)};No.prototype.addEdgeMode=function(){return this.manipulation.addEdgeMode.apply(this.manipulation,arguments)};No.prototype.editEdgeMode=function(){return this.manipulation.editEdgeMode.apply(this.manipulation,arguments)};No.prototype.deleteSelected=function(){return this.manipulation.deleteSelected.apply(this.manipulation,arguments)};No.prototype.getPositions=function(){return this.nodesHandler.getPositions.apply(this.nodesHandler,arguments)};No.prototype.getPosition=function(){return this.nodesHandler.getPosition.apply(this.nodesHandler,arguments)};No.prototype.storePositions=function(){return this.nodesHandler.storePositions.apply(this.nodesHandler,arguments)};No.prototype.moveNode=function(){return this.nodesHandler.moveNode.apply(this.nodesHandler,arguments)};No.prototype.getBoundingBox=function(){return this.nodesHandler.getBoundingBox.apply(this.nodesHandler,arguments)};No.prototype.getConnectedNodes=function(t){return this.body.nodes[t]!==void 0?this.nodesHandler.getConnectedNodes.apply(this.nodesHandler,arguments):this.edgesHandler.getConnectedNodes.apply(this.edgesHandler,arguments)};No.prototype.getConnectedEdges=function(){return this.nodesHandler.getConnectedEdges.apply(this.nodesHandler,arguments)};No.prototype.startSimulation=function(){return this.physics.startSimulation.apply(this.physics,arguments)};No.prototype.stopSimulation=function(){return this.physics.stopSimulation.apply(this.physics,arguments)};No.prototype.stabilize=function(){return this.physics.stabilize.apply(this.physics,arguments)};No.prototype.getSelection=function(){return this.selectionHandler.getSelection.apply(this.selectionHandler,arguments)};No.prototype.setSelection=function(){return this.selectionHandler.setSelection.apply(this.selectionHandler,arguments)};No.prototype.getSelectedNodes=function(){return this.selectionHandler.getSelectedNodeIds.apply(this.selectionHandler,arguments)};No.prototype.getSelectedEdges=function(){return this.selectionHandler.getSelectedEdgeIds.apply(this.selectionHandler,arguments)};No.prototype.getNodeAt=function(){var t=this.selectionHandler.getNodeAt.apply(this.selectionHandler,arguments);return t!==void 0&&t.id!==void 0?t.id:t};No.prototype.getEdgeAt=function(){var t=this.selectionHandler.getEdgeAt.apply(this.selectionHandler,arguments);return t!==void 0&&t.id!==void 0?t.id:t};No.prototype.selectNodes=function(){return this.selectionHandler.selectNodes.apply(this.selectionHandler,arguments)};No.prototype.selectEdges=function(){return this.selectionHandler.selectEdges.apply(this.selectionHandler,arguments)};No.prototype.unselectAll=function(){this.selectionHandler.unselectAll.apply(this.selectionHandler,arguments),this.selectionHandler.commitWithoutEmitting.apply(this.selectionHandler),this.redraw()};No.prototype.redraw=function(){return this.renderer.redraw.apply(this.renderer,arguments)};No.prototype.getScale=function(){return this.view.getScale.apply(this.view,arguments)};No.prototype.getViewPosition=function(){return this.view.getViewPosition.apply(this.view,arguments)};No.prototype.fit=function(){return this.view.fit.apply(this.view,arguments)};No.prototype.moveTo=function(){return this.view.moveTo.apply(this.view,arguments)};No.prototype.focus=function(){return this.view.focus.apply(this.view,arguments)};No.prototype.releaseNode=function(){return this.view.releaseNode.apply(this.view,arguments)};No.prototype.getOptionsFromConfigurator=function(){var t={};return this.configurator&&(t=this.configurator.getOptions.apply(this.configurator)),t};const Sft=({data:t,open:r,onClose:e})=>{const n=St.useRef(null),a=St.useRef(null),[l,o]=St.useState(null),f=St.useCallback((h,y=!1)=>{if(h!==null&&n.current){y&&n.current.focus(h,{animation:{duration:500,easingFunction:"easeInOutCubic"}}),n.current.selectNodes([h],!0);const b=t.find(C=>C.id===h);b&&a.current&&(o(d(b)),a.current.classList.add("visible"))}},[t]),i=h=>{const y=h.node_type==="function_start"?"Start ":"",b=h.node_type==="function_end"?"end":"";return h.params.name?`${y+h.params.name}() ${b}`:h.node_type},s=h=>h&&tt.jsx("div",{className:"memory-color-block",style:{backgroundColor:rp(h)}}),d=h=>{const y=s(h.params.tensor_id),b=Object.entries(h.params).map(([C,m])=>tt.jsxs("div",{children:[tt.jsxs("strong",{children:[C,":"]})," ",m,tt.jsx("br",{})]},C));return tt.jsxs(tt.Fragment,{children:["ID: ",h.id,y,tt.jsx("strong",{children:i(h)}),tt.jsx("br",{}),b.map(C=>C)]})},u=St.useCallback(h=>{if(!h)return;const y=new d5(t.map(c=>(c.node_type,is.function_start,c.node_type,is.function_end,{id:c.id,label:`${c.id} ${i(c)}`,shape:"box"}))),b=t.flatMap(c=>c.connections.map(v=>({from:c.id,to:v}))),C={nodes:y,edges:b},m={nodes:{font:{color:"#202020"},color:{background:"#ccd2f9",border:"none",hover:{background:"#9ca8f2",border:"none"},highlight:{background:"#74c5df",border:"#f6bc42"}},size:20,labelHighlightBold:!1},edges:{font:{color:"#f5e2ba",size:20,strokeColor:"#000"},color:"#f5e2ba",arrows:{to:{enabled:!0,scaleFactor:1}}},autoResize:!0,layout:{hierarchical:{enabled:!0,levelSeparation:200,nodeSpacing:300,treeSpacing:1,blockShifting:!0,edgeMinimization:!0,direction:"UD",sortMethod:"hubsize",shakeTowards:"roots"}},interaction:{dragNodes:!0,dragView:!0,zoomView:!0,zoomSpeed:.4},physics:{enabled:!1,solver:"forceAtlas2Based",forceAtlas2Based:{gravitationalConstant:-30,centralGravity:.01,springLength:100,springConstant:.08},stabilization:{enabled:!0,iterations:1e3}}};n.current=new No(h,C,m),n.current.on("blurNode",()=>{a.current&&a.current.classList.remove("visible")}),n.current.on("dragStart",()=>{a.current&&a.current.classList.remove("visible")}),n.current.on("click",c=>{if(a.current&&a.current.classList.remove("visible"),c.nodes.length>0){const v=c.nodes[0];f(v)}else if(c.edges.length>0){const v=c.edges[0],g=b.find(p=>p.id===v);f((g==null?void 0:g.to)||null,!0)}})},[t,f]);return St.useEffect(()=>()=>{n.current&&n.current.destroy()},[]),tt.jsx(eA,{isOpen:r,enforceFocus:!0,hasBackdrop:!0,usePortal:!0,canEscapeKeyClose:!0,transitionDuration:0,onClose:e,canOutsideClickClose:!0,portalClassName:"tensor-visualisation-overlay",children:tt.jsxs(cO,{className:"tensor-visualisation",children:[tt.jsx("div",{className:"header",children:tt.jsx("h3",{className:"title",children:tt.jsx(qa,{icon:Ui.CROSS,variant:"minimal",size:"small",onClick:e})})}),tt.jsxs("div",{className:"graph-component",children:[tt.jsx("div",{className:"graph",ref:u}),tt.jsx("div",{className:"graph-tooltip",ref:a,children:l})]}),tt.jsx("div",{children:tt.jsx("aside",{children:"Scroll to zoom. Drag to pan. Click an edge to go to connecting node. Click node to see details. Drag nodes horizontally."})})]})})},Px=({chunk:t,memSize:r,selectedTensorAddress:e,operationDetails:n,onLegendClick:a,colorVariance:l,bufferType:o,layout:f,isMultiDeviceBuffer:i=!1,className:s,numCores:d})=>{const u=t.empty?"div":"button",h=tt.jsxs(tt.Fragment,{children:[tt.jsx("span",{children:"Empty space "}),t.largestEmpty&&tt.jsx(Es,{content:"Largest empty memory space",children:tt.jsx(fl,{size:14,icon:Ui.SMALL_INFO_SIGN})})]}),y=n.getTensorForAddress(t.address),b=d&&d>1?` x ${d}`:"";return tt.jsxs(u,{className:Di("legend-item",{button:!t.empty,active:e===t.address,dimmed:e!==null&&e!==t.address,"extra-info":o||f},s),...t.empty?{}:{type:"button",onClick:()=>a(t.address,t.tensorId)},children:[tt.jsx("div",{className:Di("memory-color-block",{empty:t.empty}),style:{...t.empty?{}:{backgroundColor:t.tensorId||y?rp(t.tensorId)||rp(y==null?void 0:y.id):Zx(t.address+(l||0))}}}),tt.jsx("div",{className:"format-numbers monospace",children:$G(t.address,r)}),tt.jsxs("div",{className:"format-numbers monospace keep-left",children:["(",rA(t.address),")"]}),tt.jsxs("div",{className:"format-numbers monospace nowrap",children:[zd(t.size),b]}),tt.jsxs("div",{children:[!i&&!t.empty&&y&&tt.jsxs(tt.Fragment,{children:[y.operationIdentifier," : Tensor ",y.id]}),!i&&t.empty&&h]}),(o||f)&&tt.jsxs("div",{className:"extra-info-slot",children:[o&&tt.jsxs("span",{className:"monospace",children:[wx[o]," "]}),f&&tt.jsx("span",{className:"monospace",children:nve[f]})]}),tt.jsx("div",{className:"shape-info-slot",children:y&&tt.jsxs(tt.Fragment,{children:[q0(y.shape)," ",ZC(y.dtype)," "," ",i&&`Device ${(t==null?void 0:t.device_id)??y.device_id}`]})})]},t.address)},Bye=({group:t,memSize:r,selectedTensorAddress:e,operationDetails:n,onLegendClick:a})=>{const[l,o]=St.useState(!1);return tt.jsxs(tt.Fragment,{children:[tt.jsxs("div",{className:"group-header",children:[tt.jsx(Px,{className:"details",chunk:t[0],memSize:r,selectedTensorAddress:e,operationDetails:n,onLegendClick:a,isGroupHeader:!0}),tt.jsxs("strong",{children:["x",t.length]}),tt.jsx(qa,{className:"collapse-toggle",onClick:f=>{f.stopPropagation(),o(!l)},endIcon:l?Ui.CARET_UP:Ui.CARET_DOWN,size:"small",variant:"minimal"})]}),tt.jsx(xG,{isOpen:l,keepChildrenMounted:!0,children:tt.jsx("div",{className:"grouped-legend-elements",children:t.map((f,i)=>tt.jsx(Px,{chunk:f,memSize:r,selectedTensorAddress:e,operationDetails:n,onLegendClick:a,isMultiDeviceBuffer:!0},`${f.address}-${i}`))})})]})},e2=.9998,Eft=8;function Mft({operationDetails:t,previousOperationDetails:r,zoomedInViewMainMemory:e,onDramBufferClick:n,onDramDeltaClick:a,onLegendClick:l}){var A,_;const o=tf(Wx),{chartData:f,memory:i}=t.memoryData(id.DRAM),{chartData:s,memory:d}=r.memoryData(id.DRAM),u=e5(i,d),h=[...i].sort((w,E)=>w.address-E.address),y=h.filter(w=>!w.empty&&!d.find(E=>E.address===w.address)),b=d.filter(w=>!h.find(E=>E.address===w.address)),C=t.getMemoryDelta(y,b),{getGroupedMemoryReport:m}=t;let c=Math.min(((A=i[0])==null?void 0:A.address)||pv,((_=d[0])==null?void 0:_.address)||pv)*e2,v=Math.max(i.length>0?i[i.length-1].address+i[i.length-1].size:0,d.length>0?d[d.length-1].address+d[d.length-1].size:0)*(1/e2);v<c&&(c=0,v=pv);const g=m(id.DRAM),p=St.useMemo(()=>mre(s),[s]),I=St.useMemo(()=>mre(f),[f]);return tt.jsxs(tt.Fragment,{children:[tt.jsxs("h3",{className:"plot-title",children:["Previous Summarized DRAM Report ",u?" (No changes)":""]}),tt.jsx("div",{className:"zoomed-dram-plots",children:e&&s.length>0?p.map((w,E)=>{const x=w[0],S=w.at(-1);if(!x.memoryData||!(S!=null&&S.memoryData))return null;const T=x.memoryData.address||pv*e2,L=S.memoryData.address+S.memoryData.size*(1/e2);return v<c&&(c=0,v=pv),tt.jsx(Yp,{className:Di("dram-memory-renderer",{"empty-plot":f.length===0}),style:{flexBasis:yre(p)[E]},plotZoomRange:[T,L],chartDataList:[w],isZoomedIn:!0,memorySize:pv,onBufferClick:n,configuration:{...fS,...pre(T,L)}},E)}):tt.jsx(Yp,{className:Di("dram-memory-renderer",{"empty-plot":s.length===0,"identical-plot":u}),plotZoomRange:[c,v],chartDataList:[s],isZoomedIn:e,memorySize:pv,configuration:fS})}),tt.jsx("h3",{className:"plot-title",children:"Current Summarized DRAM Report"}),tt.jsx("div",{className:"zoomed-dram-plots",children:e&&f.length>0?I.map((w,E)=>{const x=w[0],S=w.at(-1);if(!x.memoryData||!(S!=null&&S.memoryData))return null;const T=x.memoryData.address||pv*e2,L=S.memoryData.address+S.memoryData.size*(1/e2);return v<c&&(c=0,v=pv),tt.jsx(Yp,{className:Di("dram-memory-renderer",{"empty-plot":f.length===0}),style:{flexBasis:yre(p)[E]},plotZoomRange:[T,L],chartDataList:[w],isZoomedIn:!0,memorySize:pv,onBufferClick:n,configuration:{...fS,...pre(T,L)}},E)}):tt.jsx(Yp,{className:Di("dram-memory-renderer",{"empty-plot":f.length===0}),plotZoomRange:[c,v],chartDataList:[f],isZoomedIn:e,memorySize:pv,onBufferClick:n,configuration:fS})}),tt.jsx("h3",{className:"plot-title",children:"DRAM Delta (difference between current and previous operation)"}),tt.jsx(Yp,{className:Di("dram-memory-renderer",{"empty-plot":C.chartData.length===0}),plotZoomRange:[c,v],chartDataList:[C.chartData],isZoomedIn:e,memorySize:pv,onBufferClick:a,configuration:fS}),tt.jsx("div",{className:Di("legend",{"lengthy-legend":h.length>lge}),children:h==null?void 0:h.map((w,E)=>{const x=g.get(w.address);return Array.isArray(x)&&(x==null?void 0:x.length)>1?tt.jsx(Bye,{group:x,memSize:pv,selectedTensorAddress:o,operationDetails:t,onLegendClick:l},`${w.address}`):tt.jsx(Px,{chunk:w,memSize:pv,selectedTensorAddress:o,operationDetails:t,onLegendClick:l},`${w.address}-${E}`)})})]})}const pre=(t,r)=>({title:"",xAxis:{tickmode:"array",tickvals:[t,r]}}),mre=t=>{var l,o,f,i,s;const r=[],e=(l=t.at(-1))==null?void 0:l.memoryData,n=e?(e.address+e.size)/Eft:0;let a=[];for(let d=0;d<t.length;d++){const u=(f=(o=t==null?void 0:t[d])==null?void 0:o.x)==null?void 0:f[0],h=(s=(i=t==null?void 0:t[d-1])==null?void 0:i.x)==null?void 0:s[0];u-h>n&&(r.push(a),a=[]),a.push(t[d])}return a.length>0&&r.push(a),r},yre=t=>{const r=t.reduce((e,n)=>e+n.reduce((a,l)=>l.memoryData?a+l.memoryData.size:0,0),0);return t.map(e=>{const a=e.reduce((l,o)=>o.memoryData?l+o.memoryData.size:0,0)/r*100;return a<20?"200px":`${a}%`})},S7=.01;function Rft({operationDetails:t,previousOperationDetails:r,zoomedInViewMainMemory:e,plotZoomRangeStart:n,plotZoomRangeEnd:a,showCircularBuffer:l,showL1Small:o,onBufferClick:f,onLegendClick:i}){const s=tf(Wx),{chartData:d,memory:u,fragmentation:h,cbChartData:y,cbChartDataByOperation:b,bufferMemory:C,bufferChartDataByOperation:m}=t.memoryData(),{chartData:c}=r.memoryData(),{chartData:v,memory:g,condensedChart:p}=t.memoryData(id.L1_SMALL),I=t.deviceOperations.map(H=>H.cbList.map(W=>W.address)).flat().sort((H,W)=>H-W)[0],A=t.deviceOperations.map(H=>H.cbList.map(W=>W.address+W.size)).flat().sort((H,W)=>H-W).reverse()[0],_=v.map(H=>{var W;return(W=H==null?void 0:H.memoryData)==null?void 0:W.address}).flat().sort()[0],w=v.map(H=>H!=null&&H.memoryData?H.memoryData.address+H.memoryData.size:0).flat().sort().reverse()[0],E=(A-I)*S7,x=(a-n)*S7,S=(w-_)*S7,[T,L]=St.useState(!1),{memorySizeL1:k,getGroupedMemoryReport:F}=t,D=[...u,...h].sort((H,W)=>H.address-W.address),P=F(id.L1),z=[...D,...t.deviceOperations.map(H=>H.cbList.map(W=>({...W,bufferType:"CB",colorVariance:H.id}))).flat()].sort((H,W)=>H.address-W.address),M=Math.min(...C.map(H=>H.address)),R=Math.max(...C.map(H=>H.address+H.size)),N=Math.min(n,M),O=Math.max(a,R);return tt.jsxs(tt.Fragment,{children:[tt.jsx(Yp,{title:"Previous Summarized L1 Report",className:Di("l1-memory-renderer",{"empty-plot":c.length===0}),plotZoomRange:[N-x,O+x],chartDataList:[c],isZoomedIn:e,memorySize:k,configuration:EU}),tt.jsx(Yp,{title:"Current Summarized L1 Report",className:Di("l1-memory-renderer",{"empty-plot":d.length===0&&b.size===0}),isZoomedIn:e,plotZoomRange:[N-x,O+x],chartDataList:[y,d,g.length>0?p:[]],memorySize:k,onBufferClick:f,configuration:EU}),tt.jsx("h3",{children:"L1 Operation Buffers"}),tt.jsx("br",{}),[...m.entries()].map(([{name:H},W],G)=>tt.jsxs(tt.Fragment,{children:[tt.jsxs("h5",{className:"buffers-plot-title",children:[tt.jsx(fl,{className:"operation-icon",size:13,intent:Po.SUCCESS,icon:Ui.CUBE_ADD})," ",tt.jsx("span",{children:H})]}),tt.jsx(Yp,{title:"",className:"l1-memory-renderer interm-buffers",chartDataList:[W],plotZoomRange:[N-x,O+x],isZoomedIn:e,memorySize:k,configuration:w9e,onBufferClick:f})]},`${H}-${G}`)),o&&tt.jsx(Yp,{title:"Summarized L1 Small Report",className:Di("l1-memory-renderer",{"empty-plot":v.length===0}),isZoomedIn:!0,plotZoomRange:[_-S,w+S],chartDataList:[v],memorySize:k,configuration:b9e,onBufferClick:()=>{}}),l&&b.size>0&&tt.jsxs(tt.Fragment,{children:[tt.jsx("h3",{children:"Device Operations"}),tt.jsx(Cv,{label:"Circular Buffers zoom",checked:T,onChange:()=>{L(!T)}}),[...b.entries()].map(([{name:H},W],G)=>tt.jsxs(tt.Fragment,{children:[tt.jsxs("h3",{className:"circular-buffers-plot-title",children:[tt.jsx(fl,{className:"operation-icon",size:13,intent:Po.SUCCESS,icon:Ui.CUBE_ADD})," ",tt.jsx("span",{children:H})]}),tt.jsx(Yp,{title:"",className:Di("l1-memory-renderer circular-buffers",{"empty-plot":W.length===0}),chartDataList:[W],plotZoomRange:[I-E,A+E],isZoomedIn:T,memorySize:k,configuration:x9e,onBufferClick:f})]},`${H}-${G}`))]}),tt.jsxs("div",{className:Di("legend",{"lengthy-legend":D.length>lge}),children:[l&&z.map((H,W)=>tt.jsx(Px,{chunk:H,memSize:k,selectedTensorAddress:s,operationDetails:t,onLegendClick:i,colorVariance:H.colorVariance},`${H.address}-${W}`)),!l&&(D==null?void 0:D.map((H,W)=>{const G=P.get(H.address);return Array.isArray(G)&&(G==null?void 0:G.length)>1?tt.jsx(Bye,{group:G,memSize:k,selectedTensorAddress:s,operationDetails:t,onLegendClick:i},`${H.address}`):tt.jsx(Px,{chunk:H,memSize:k,selectedTensorAddress:s,operationDetails:t,onLegendClick:i},`${H.address}-${W}`)}))]})]})}function $ye(t,r){const e=t.consumers[t.consumers.length-1],n=r.filter(a=>a.id>e&&a.outputs.some(l=>l.address===t.address));return n==null?void 0:n[0]}function Pft(t){const e=(t-.8)/.19999999999999996,n=Math.round(e*255);return`rgb(${255-n}, ${n}, 0)`}function j2({value:t,label:r}){return tt.jsxs("div",{className:"golden-tensor-comparison",children:[tt.jsxs("span",{children:[tt.jsx("strong",{children:r})," ",t.toFixed(4)]}),tt.jsx("div",{className:"memory-color-block",style:{backgroundColor:Pft(t)}})]})}const Are=({tensor:t,memorySize:r,onTensorClick:e,operationId:n,zoomRange:a})=>{var h,y,b,C,m;const{address:l}=t,{data:o}=dg(),f=o?(h=$ye(t,o))==null?void 0:h.id:null,i=tf(Y5),[s,d]=St.useState(!1),u=(y=t.memory_config)==null?void 0:y.shard_spec;return tt.jsxs("div",{className:Di("tensor-item",{active:t.id===i,dimmed:i!==null&&t.id!==i}),children:[tt.jsxs("div",{className:"tensor-header",children:[tt.jsxs("button",{type:"button",className:"tensor-name",onClick:()=>e(t.address??void 0,t.id),children:[tt.jsx("div",{className:Di("memory-color-block",{"empty-tensor":t.address===null}),style:{backgroundColor:rp(t.id)}}),tt.jsxs("h4",{children:["Tensor ID: ",t.id]}),tt.jsx("h5",{children:t.operationIdentifier})]}),(t.consumers.length>Oy||t.producers.length>Oy)&&tt.jsx(Es,{content:"Unusually high number of consumers",position:il.TOP,className:"warning-icon",children:tt.jsx(fl,{icon:Ui.ISSUE,intent:Po.DANGER})}),og(f)&&og(l)&&o?tt.jsx(Es,{content:`Next allocation of ${rA(l)} in ${f} ${(b=o.find(c=>c.id===f))==null?void 0:b.name}(+${f-n} operations)`,placement:il.TOP,children:tt.jsx(fl,{icon:Ui.INFO_SIGN})}):null,s&&l!==null&&t.buffer_type!==null&&tt.jsx(RU,{title:`${dC[t.buffer_type]} ${q0(t.shape)} ${ZC(t.dtype)} ${t.operationIdentifier} Tensor ${t.id}`,operationId:n,address:l,bufferType:t.buffer_type,isOpen:s,onClose:()=>d(!1),zoomRange:a,tensorId:t.id})]}),tt.jsxs("div",{className:"tensor-meta",children:[tt.jsxs("p",{children:["Address: ",tt.jsxs("strong",{children:[" ",$G(t.address,r)]})]}),t.buffer_type!==null&&tt.jsxs("p",{children:["Buffer type: ",tt.jsx(t5,{memory:dC[t.buffer_type]})]}),tt.jsxs("p",{children:["Shape:",tt.jsxs("strong",{children:[" ",q0(t.shape)]})]}),tt.jsxs("p",{children:["Dtype:",tt.jsxs("strong",{children:[" ",ZC(t.dtype)]})]}),tt.jsxs("p",{children:["Layout:",tt.jsxs("strong",{children:[" ",t.layout]})]}),tt.jsx("p",{children:((C=t.memory_config)==null?void 0:C.memory_layout)&&tt.jsxs(tt.Fragment,{children:["Memory layout:",tt.jsxs("strong",{children:[" ",t.memory_config.memory_layout]})]})}),u?tt.jsxs(tt.Fragment,{children:[tt.jsxs("p",{children:["Sharding: ",tt.jsx("strong",{children:typeof u=="string"?u:null})]}),typeof u=="object"?tt.jsx("ul",{className:"shard-spec",children:Object.entries(u).map(([c,v])=>tt.jsxs("li",{children:[c,"=",tt.jsx("em",{children:typeof v!="string"?JSON.stringify(v):v})]},v))}):null]}):null,(m=t.comparison)!=null&&m.global?tt.jsxs(tt.Fragment,{children:[tt.jsx(j2,{label:"Actual PCC:",value:t.comparison.global.actual_pcc}),tt.jsx(j2,{label:"Desired PCC:",value:t.comparison.global.desired_pcc})]}):null,t.buffer_type===id.L1&&tt.jsx(qa,{className:"right-icon-small",text:"Tensor allocation per core",icon:Ui.FLOW_LINEAR,intent:Po.PRIMARY,onClick:()=>d(!0),endIcon:Ui.OPEN_APPLICATION})]})]})};function Lft({operationDetails:t,plotZoomRangeStart:r,plotZoomRangeEnd:e,onTensorClick:n}){const{id:a,inputs:l,outputs:o,memorySizeL1:f}=t;return tt.jsxs("div",{className:"tensor-list",children:[tt.jsxs("div",{className:"column",children:[tt.jsx("h3",{className:"title",children:"Inputs"}),l.map((i,s)=>tt.jsx(Are,{tensor:i,onTensorClick:n,memorySize:f,operationId:a,zoomRange:[r,e]},`${i.id}-${s}`))]}),tt.jsxs("div",{className:"column",children:[tt.jsx("h3",{className:"title",children:"Outputs"}),o.map((i,s)=>tt.jsx(Are,{tensor:i,onTensorClick:n,memorySize:f,operationId:a,zoomRange:[r,e]},`${i.id}-${s}`))]})]})}function Oft(t,r){let e=0;const n=[],a=[];let l=0,o=0,f=1;for(;f<t.length;){const i=t[f];if(f+=1,i.node_type===is.function_start){if(a.length===0)for(;f<t.length;){const d=t[f];if(d.node_type===is.buffer&&d.params.type===wx.L1)new Set(d.connections).forEach(u=>{var y;const h=t[u];if(h.node_type===is.tensor){const b=(y=r.find(C=>C.id===parseInt(String(h.params.tensor_id),10)))==null?void 0:y.size;b&&(o+=b)}}),f+=1;else if(t[f].node_type===is.tensor)f+=1;else break}const{name:s}=i.params;a.push({name:s,id:i.id,deviceId:i.params.device_id})}if(i.params.device_id!==void 0&&a.length>1&&(a[a.length-1].deviceId=i.params.device_id),i.node_type===is.circular_buffer_allocate&&(l+=parseInt(i.params.size,10)),i.node_type===is.circular_buffer_deallocate_all&&(l=0),i.node_type===is.buffer_allocate&&i.params.type===wx.L1){const s=parseInt(i.params.num_cores,10)||1,d=parseInt(i.params.size,10);o+=d/s}if(i.node_type===is.function_end&&a.pop(),i.node_type===is.buffer_deallocate){const s=i.connections?i.connections[0]:-1;if(s>=0&&t[s].params.type==="L1"){const d=parseInt(i.params.num_cores,10)||1,u=parseInt(i.params.size,10)/d;o-=u}}if(a.length>0){const s={name:a[a.length-1].name,deviceId:a[a.length-1].deviceId,id:i.id,type:i.node_type,total_cb:l,total_buffer:o,total_memory:l+o};n.push(s)}e=Math.max(e,l+o)}return{peakMemoryLoad:e,memoryAllocationList:n}}const kft=({deviceOperations:t,details:r,onLegendClick:e})=>{const n=tf(Wx),a=r.inputs.map(u=>u==null?void 0:u.id),l=ADe(a),{memoryAllocationList:o,peakMemoryLoad:f}=Oft(t,l),i=St.useCallback(u=>{var b,C;const h=(m,c,v)=>{if(m===void 0)return null;const{allocation:g}=m;let p=null;const I=(g==null?void 0:g.params.address)===void 0?void 0:parseInt(g.params.address,10);if(I!==void 0||c!==void 0){const A=I!==void 0?r.tensorListByAddress.get(I):Object.values(r.tensorListByAddress).find(_=>_.id===c);p=tt.jsx("div",{className:Di("memory-color-block",{"empty-tensor":I===null}),style:{backgroundColor:(A==null?void 0:A.id)!==void 0||c!==void 0?rp(A==null?void 0:A.id)||rp(c):Zx(I||null)}})}return tt.jsxs("div",{className:"buffer-details",children:[tt.jsxs("span",{className:"address",children:[p," ",I!==void 0&&`${$G(I,0)}`]}),tt.jsxs("span",{children:[" ",zd(parseInt(m.params.size,10))]}),tt.jsx("span",{children:tt.jsx(t5,{memory:m.params.type})}),v&&v]},m.id)},y=m=>{var v,g;const c=((v=m.buffer)==null?void 0:v.filter(p=>p).map(p=>p.params.device_id))||[];if((c==null?void 0:c.length)>1&&m.buffer!==void 0&&m.buffer.length>0){const p=m.buffer.find(I=>I);return tt.jsx(tt.Fragment,{children:h(p,m.params.tensor_id,tt.jsxs("strong",{children:["x",c.length]}))})}return(g=m.buffer)==null?void 0:g.map((p,I)=>tt.jsx(St.Fragment,{children:h(p,u.params.tensor_id)},`buffer-details-${u.params.tensor_id} ${I}`))};if(u.node_type===is.tensor){const m=y(u),c=(C=(b=u.buffer)==null?void 0:b[0])==null?void 0:C.params.layout,v=r.tensorList.find(I=>I.id===parseInt(u.params.tensor_id.toString(),10)),g=v&&tt.jsx("div",{className:Di("memory-color-block",{"empty-tensor":v.address===null}),style:{backgroundColor:rp(parseInt(u.params.tensor_id.toString(),10))}})||null,p=(v==null?void 0:v.operationIdentifier)||"";return m?tt.jsx(Es,{content:tt.jsxs("div",{className:"arg-tensor-tooltip",children:[m,c&&tt.jsx("span",{children:c}),p&&tt.jsx("span",{children:p})]}),position:"top",children:tt.jsxs("span",{className:"standard-flex-layout",children:[g," Tensor ",u.params.tensor_id," ",q0(u.params.shape)]})}):tt.jsxs("span",{className:"standard-flex-layout",children:[g," Tensor ",u.params.tensor_id," ",q0(u.params.shape)]})}return u.node_type===is.circular_buffer_deallocate_all?"":u.node_type},[r]),s=St.useCallback(u=>{const h=u.find(C=>C.node_type===is.capture_start),y=u.map(C=>({...C,inputs:[],outputs:[]})),b=C=>C.connections.map(m=>y.find(c=>c.id===m)).filter(m=>m);return y.forEach(C=>{if(C.node_type===is.function_start)C.outputs=b(C).flatMap(m=>(m==null?void 0:m.node_type)===is.function_end?b(m).filter(c=>(c==null?void 0:c.node_type)!==is.capture_end&&(c==null?void 0:c.node_type)!==is.function_start):[]),b(C).forEach(m=>{m.node_type===is.function_end&&(m.operation=C)});else if(C.node_type===is.buffer)b(C).forEach(c=>{if(c.node_type===is.tensor){c.params.device_id=C.params.device_id,c.buffer||(c.buffer=[]);const v=C.params.device_id||0;c.buffer[v]=C}});else if(C.node_type===is.buffer_allocate)b(C).forEach(c=>{if(c.node_type===is.buffer){const v=C.params.device_id||0,g=c.params.device_id||0;v===g&&(c.allocation=C)}});else if(C.node_type===is.circular_buffer_allocate){const m=Nve(C.params.core_range_set);C.params.num_cores=m.toString()}else C.node_type!==is.function_end&&C.node_type!==is.capture_start&&b(C).forEach(c=>{c.node_type===is.function_start&&c.inputs.push(C)})}),y.filter(C=>C.node_type===is.function_start).filter(C=>!(h!=null&&h.connections.includes(C.id))).forEach(C=>{C.outputs.forEach(m=>{m.node_type===is.tensor&&m.params.device_id!==void 0&&(C.params.device_id=m.params.device_id)})}),y},[]),d=St.useCallback(u=>{const h=[],y=s(u),b=[],C=[];let m=!1;return y.forEach((c,v)=>{var A,_,w,E;const g=c.node_type,p=o.find(x=>x.id===c.id),I=p?tt.jsxs("span",{className:Di("memory-info monospace",{peak:p.total_memory===f}),children:[tt.jsx("span",{className:"format-numbers",children:zd(p.total_cb)}),tt.jsx("span",{className:"format-numbers",children:zd(p.total_buffer)}),tt.jsx("span",{className:"format-numbers",children:zd(p.total_memory)})]}):void 0;if(g===is.function_start)h.push(c),b.push([]);else if(g===is.function_end){const x=b.pop(),S=c.params.name,T=tt.jsxs("h4",{children:[tt.jsx(fl,{className:"operation-icon",size:13,intent:Po.SUCCESS,icon:Ui.CUBE_ADD}),S," ",tt.jsx(Dft,{deviceId:(A=c.operation)==null?void 0:A.params.device_id})," (",(_=c.operation)==null?void 0:_.inputs.map(F=>tt.jsx("span",{className:"params",children:i(F)},`${F.id} ${c.id}`)),") "," => ",(w=c.operation)==null?void 0:w.outputs.map(F=>tt.jsx("span",{className:"params",children:i(F)},`${F.id} ${c.id}`))]}),L=x&&x.length>0,k=tt.jsxs(GG,{label:T,isOpen:!0,collapseClassName:Di("device-operation function-container",{[g8e]:!L}),children:[tt.jsx("div",{className:"function-content",children:x}),tt.jsx("div",{className:"end-function"})]},`end-${v}`);b.length>0?b[b.length-1].push(k):C.push(k)}else{let x=null;if(g===is.buffer_allocate){const S=c.params,T=parseInt(S.num_cores,10)||1,L=parseInt(S.size,10)/T;x=tt.jsx(E7,{_node:c,memoryInfo:S.type===wx.L1&&I||void 0,title:"Buffer allocate",children:tt.jsx(tt.Fragment,{children:tt.jsx(Px,{chunk:{address:parseInt(S.address,10),size:L},numCores:T,memSize:r.l1_sizes[0],selectedTensorAddress:n,operationDetails:r,onLegendClick:e,bufferType:S.type,layout:S.layout},S.address)})},v)}else if(g===is.buffer_deallocate){const S=c.params,T=parseInt(S.size,10),L=parseInt(S.num_cores,10)||1,k=T/L;x=tt.jsx(E7,{_node:c,memoryInfo:S.type===wx.L1&&I||void 0,title:`Buffer deallocate ${zd(k)} ${S.type} x ${L}`},v)}else if(g===is.circular_buffer_deallocate_all)x=tt.jsx(E7,{_node:c,memoryInfo:I,title:"Circular buffer deallocate all"},v);else if(g===is.circular_buffer_allocate){const S=c.params,T=parseInt(S.num_cores,10)||1;x=tt.jsxs(St.Fragment,{children:[!m&&tt.jsxs(tt.Fragment,{children:[tt.jsx("hr",{}),tt.jsx("h4",{children:"CBs"})]}),tt.jsx(Px,{numCores:T,chunk:{address:parseInt(S.address,10),size:parseInt(S.size,10)},memSize:r.l1_sizes[0],selectedTensorAddress:n,operationDetails:r,onLegendClick:e,colorVariance:(E=h.at(-1))==null?void 0:E.id}),I,tt.jsx("br",{})]},`${S.address}-${v}`),m=!0}g!==is.circular_buffer_allocate&&(m=!1),x&&(b.length>0?b[b.length-1].push(x):C.push(x))}}),C},[r,i,o,e,f,s,n]);return tt.jsxs("div",{className:"device-operations-full-render-wrap",children:[tt.jsxs("h3",{className:"peak-load monospace",children:["Peak L1 memory load per bank: ",tt.jsx("span",{className:"format-numbers",children:zd(f)})]}),tt.jsxs("div",{className:"device-operations-full-render",children:[tt.jsxs("span",{className:"memory-info monospace ",children:[tt.jsx("span",{className:"format-numbers",children:"CBs"}),tt.jsx("span",{className:"format-numbers",children:"Buffers"}),tt.jsx("span",{className:"format-numbers",children:"Total"})]}),d(t)]}),t.length>20&&tt.jsxs("h3",{className:"peak-load monospace",children:["Peak L1 memory load per bank: ",tt.jsx("span",{className:"format-numbers",children:zd(f)})]})]})},E7=({title:t,memoryInfo:r,_node:e,children:n})=>tt.jsxs("div",{className:"device-operation",children:[tt.jsx("hr",{}),tt.jsxs("h4",{children:[t,r]}),n]}),Dft=({deviceId:t})=>t!==void 0&&tt.jsx("span",{className:"device-id",children:t}),Nft=({operationId:t})=>{var se,ne;const{data:r}=dg(),[e,n]=St.useState(!1),[a,l]=Yu(DG),[o,f]=St.useState(!1),[i,s]=St.useState(!1),[d,u]=Yu(Xk),{operationDetails:{data:h,isLoading:y,status:b}}=rD(t),{data:C,isLoading:m}=sDe(t).operationDetails,[c,v]=Yu(Wx),[g,p]=Yu(Y5),[I,A]=St.useState(!1),[_,w]=St.useState(!1),[E,x]=St.useState(!1),[S,T]=St.useState(!0),[L,k]=St.useState(!1),{createToast:F,resetToasts:D}=iD(),P=()=>{D()},z=r==null?void 0:r.find(J=>J.id===t);if(y||m||!h||!C||!r)return tt.jsxs(tt.Fragment,{children:[tt.jsx(vJ,{operationId:t,isLoading:y}),b==="error"&&tt.jsxs("h3",{className:"not-found-message",children:["Operation ",t," not found"]})]});const M=new pJ(h,r,{renderPattern:a}),R=new pJ(C,r),N=M.memoryData(id.L1_SMALL),{memory:O,cbChartDataByOperation:H}=M.memoryData(),{memory:W}=R.memoryData(),{memorySizeL1:G}=M;let X=Math.min(((se=O[0])==null?void 0:se.address)||G,((ne=W[0])==null?void 0:ne.address)||G),Y=Math.max(O.length>0?O[O.length-1].address+O[O.length-1].size:0,W.length>0?W[W.length-1].address+W[W.length-1].size:0);Y<X&&(X=0,Y=G);const Q=(J,ce)=>{v(J??null),p(ce??null),F(J,ce)},V=J=>{const{address:ce,tensor:he}=J.points[0].data.memoryData;Q(ce,he==null?void 0:he.id)},K=J=>{const{address:ce,tensor:he}=J.points[0].data.memoryData;Q(ce,he==null?void 0:he.id)},re=J=>{const{address:ce,tensor:he}=J.points[0].data.memoryData;Q(ce,he==null?void 0:he.id)},oe=(J,ce)=>{Q(J,ce)},ue=(J,ce)=>{Q(J,ce)},me=M.inputs.concat(M.outputs),pe=me.map(J=>J.address).join(",");return tt.jsxs(tt.Fragment,{children:[tt.jsx(vJ,{operationId:t,isLoading:y}),tt.jsxs("div",{className:"operation-details-component",children:[(c||og(g))&&tt.jsx("div",{className:"outside-click",onClick:P}),!y&&og(h==null?void 0:h.id)?tt.jsxs(tt.Fragment,{children:[M.stack_trace&&tt.jsx(C9e,{stackTrace:M.stack_trace}),tt.jsx("div",{className:"chart-controls",children:tt.jsxs(J0,{children:[tt.jsx(qa,{intent:S?Po.SUCCESS:Po.NONE,onClick:()=>T(!S),icon:S?Ui.EYE_OPEN:Ui.EYE_OFF,children:"L1 Memory"}),tt.jsx(qa,{intent:L?Po.SUCCESS:Po.NONE,onClick:()=>k(!L),icon:L?Ui.EYE_OPEN:Ui.EYE_OFF,children:"DRAM"})]})}),tt.jsxs("div",{className:"controls",children:[tt.jsx(Cv,{label:"Buffer zoom",checked:e,onChange:()=>{n(!e)}}),tt.jsx(Cv,{label:o?"Hide Circular Buffers Details":"Show Circular Buffers Details",checked:o,disabled:H.size===0,onChange:()=>{f(!o)}}),tt.jsx(YC,{label:"Tensor memory layout overlay",checked:a,onChange:()=>{l(!a)}}),tt.jsx(Cv,{label:o?"Hide L1 Small":"Show L1 Small",checked:i,disabled:N.condensed.size===0,onChange:()=>{s(!i)}}),tt.jsx(YC,{label:"Hex axis labels",checked:d,onChange:()=>{u(!d)}})]}),!S&&!L&&tt.jsx("p",{className:"no-buffer-type-selected",children:"No buffer types selected."}),g?tt.jsx(_9e,{selectedTensor:me.find(J=>J.id===g)||M.getTensorForAddress(c??0),details:M,operationId:t}):null,S&&z&&tt.jsxs(tt.Fragment,{children:[tt.jsx("h3",{children:"L1 Memory"}),tt.jsxs(J0,{className:"core-view-buttons",children:[tt.jsx(qa,{className:"right-icon-small",text:"All allocations per core",icon:Ui.LAYOUT_GRID,onClick:()=>{A(!0)},disabled:I,intent:Po.PRIMARY,endIcon:Ui.OPEN_APPLICATION}),tt.jsx(qa,{className:"right-icon-small",text:"Input/Output allocations per core",icon:Ui.FLOW_REVIEW,onClick:()=>{w(!0)},disabled:_,intent:Po.PRIMARY,endIcon:Ui.OPEN_APPLICATION})]}),tt.jsxs(tt.Fragment,{children:[_&&tt.jsx(RU,{title:`${t} ${z.name} (${z.operationFileIdentifier}) inputs/outputs`,operationId:t,address:pe,bufferType:id.L1,zoomRange:[X,Y],isOpen:_,onClose:()=>w(!1),tensorByAddress:M.tensorListByAddress}),I&&tt.jsx(RU,{title:`${t} ${z.name} (${z.operationFileIdentifier}) detailed memory report`,operationId:t,bufferType:id.L1,zoomRange:[X,Y],isOpen:I,onClose:()=>A(!1),tensorByAddress:M.tensorListByAddress}),tt.jsx(Rft,{operationDetails:M,previousOperationDetails:R,zoomedInViewMainMemory:e,plotZoomRangeStart:X,plotZoomRangeEnd:Y,showCircularBuffer:o,showL1Small:i,onBufferClick:re,onLegendClick:ue})]})]}),L&&tt.jsxs(tt.Fragment,{children:[tt.jsx("h3",{children:"DRAM"}),tt.jsx(Mft,{operationDetails:M,previousOperationDetails:R,zoomedInViewMainMemory:e,onDramBufferClick:K,onDramDeltaClick:V,onLegendClick:ue})]}),tt.jsx("hr",{}),tt.jsx(Lft,{operationDetails:M,plotZoomRangeStart:X,plotZoomRangeEnd:Y,onTensorClick:oe}),M.device_operations&&tt.jsxs(tt.Fragment,{children:[tt.jsx("h3",{children:"Device operations"}),tt.jsx(qa,{icon:Ui.Graph,intent:Po.PRIMARY,onClick:()=>x(!0),children:"Device operations graph view"}),tt.jsx(kft,{deviceOperations:M.device_operations,details:M,onLegendClick:ue})]}),(z==null?void 0:z.arguments)&&tt.jsx("div",{className:"arguments-wrapper",children:tt.jsx(Yve,{operation:z})})]}):tt.jsxs("p",{className:"not-found-message",children:["Operation ",t," not found"]}),E&&M.device_operations&&tt.jsx(Sft,{data:M.device_operations,open:E,onClose:()=>x(!1)})]})]})};function Fft(){const{operationId:t}=Qfe(),r=t?parseInt(t,10):0,{operation:e}=rD(r);return t&&tt.jsxs(tt.Fragment,{children:[tt.jsx(vA,{title:e!=null&&e.name?`${t} ${e==null?void 0:e.name}`:`Not found Operation ${t}`}),tt.jsx(Nft,{operationId:r})]})}const zft={label:"Form label",subLabel:"Sub label here"};function Bft(){return _3(),tt.jsxs(tt.Fragment,{children:[tt.jsx(vA,{title:"Styleguide"}),tt.jsx("h2",{children:"Typography"}),tt.jsxs("div",{className:"container",children:[tt.jsx("h3",{children:"Paragraph"}),tt.jsxs("p",{children:["Lorem ipsum dolor sit amet ",tt.jsx("em",{children:"consectetur adipisicing"})," elit. Error laborum atque suscipit. Officiis fugit necessitatibus libero ",tt.jsx("strong",{children:"perspiciatis sequi "}),"accusantium earum"," ",tt.jsx("a",{href:"#123",children:"repudiandae deserunt"})," nemo, ",tt.jsx("u",{children:"voluptatem tempora"})," laborum eaque minima molestiae eveniet."]}),tt.jsx("h3",{children:"Monospace"}),tt.jsx("p",{className:"monospace",children:"Lorem ipsum dolor sit, amet consectetur adipisicing elit. Magni nemo velit molestias quae temporibus sint in at consectetur voluptatem obcaecati, saepe, ratione, reprehenderit perferendis quas explicabo error repellendus deserunt? Optio!"}),tt.jsx("h3",{children:"Horizontal ruler"}),tt.jsx("hr",{})]}),tt.jsx("h2",{children:"Colours"}),tt.jsxs("div",{className:"container flex wrap",children:[tt.jsxs("div",{className:"container colour-container flex no-gap flex-column",children:[tt.jsx("p",{children:"Grey"}),tt.jsx("div",{className:"colour w-1"}),tt.jsx("div",{className:"colour g-6"}),tt.jsx("div",{className:"colour g-5"}),tt.jsx("div",{className:"colour g-4"}),tt.jsx("div",{className:"colour g-3"}),tt.jsx("div",{className:"colour g-2"}),tt.jsx("div",{className:"colour g-1"}),tt.jsx("div",{className:"colour b-1"})]}),tt.jsxs("div",{className:"container colour-container flex no-gap flex-column",children:[tt.jsx("p",{children:"Purple"}),tt.jsx("div",{className:"colour purple-base"}),tt.jsx("div",{className:"colour purple-tint-1"}),tt.jsx("div",{className:"colour purple-tint-2"}),tt.jsx("div",{className:"colour purple-accent"}),tt.jsx("div",{className:"colour purple-shade"})]}),tt.jsxs("div",{className:"container colour-container flex no-gap flex-column",children:[tt.jsx("p",{children:"Red"}),tt.jsx("div",{className:"colour red-base"}),tt.jsx("div",{className:"colour red-tint-1"}),tt.jsx("div",{className:"colour red-tint-2"}),tt.jsx("div",{className:"colour red-accent"}),tt.jsx("div",{className:"colour red-shade"})]}),tt.jsxs("div",{className:"container colour-container flex no-gap flex-column",children:[tt.jsx("p",{children:"Blue"}),tt.jsx("div",{className:"colour blue-base"}),tt.jsx("div",{className:"colour blue-tint-1"}),tt.jsx("div",{className:"colour blue-tint-2"}),tt.jsx("div",{className:"colour blue-accent"}),tt.jsx("div",{className:"colour blue-shade"})]}),tt.jsxs("div",{className:"container colour-container flex no-gap flex-column",children:[tt.jsx("p",{children:"Yellow"}),tt.jsx("div",{className:"colour yellow-base"}),tt.jsx("div",{className:"colour yellow-tint-1"}),tt.jsx("div",{className:"colour yellow-tint-2"}),tt.jsx("div",{className:"colour yellow-accent"}),tt.jsx("div",{className:"colour yellow-shade"})]}),tt.jsxs("div",{className:"container colour-container flex no-gap flex-column",children:[tt.jsx("p",{children:"Teal"}),tt.jsx("div",{className:"colour teal-base"}),tt.jsx("div",{className:"colour teal-tint-1"}),tt.jsx("div",{className:"colour teal-tint-2"}),tt.jsx("div",{className:"colour teal-accent"}),tt.jsx("div",{className:"colour teal-shade"})]}),tt.jsxs("div",{className:"container colour-container flex no-gap flex-column",children:[tt.jsx("p",{children:"Green"}),tt.jsx("div",{className:"colour green-base"}),tt.jsx("div",{className:"colour green-tint-1"}),tt.jsx("div",{className:"colour green-tint-2"}),tt.jsx("div",{className:"colour green-accent"}),tt.jsx("div",{className:"colour green-shade"})]}),tt.jsxs("div",{className:"container colour-container flex no-gap flex-column",children:[tt.jsx("p",{children:"Sand"}),tt.jsx("div",{className:"colour sand-base"}),tt.jsx("div",{className:"colour sand-tint-1"}),tt.jsx("div",{className:"colour sand-tint-2"}),tt.jsx("div",{className:"colour sand-accent"}),tt.jsx("div",{className:"colour sand-shade"})]}),tt.jsxs("div",{className:"container colour-container flex no-gap flex-column",children:[tt.jsx("p",{children:"Slate"}),tt.jsx("div",{className:"colour slate-base"}),tt.jsx("div",{className:"colour slate-tint-1"}),tt.jsx("div",{className:"colour slate-tint-2"}),tt.jsx("div",{className:"colour slate-accent"}),tt.jsx("div",{className:"colour slate-shade"})]})]}),tt.jsx("h2",{children:"Buttons"}),tt.jsxs("div",{className:"container flex",children:[tt.jsxs("div",{className:"flex flex-column",children:[tt.jsx("p",{children:"Default"}),tt.jsx(qa,{icon:Ui.ADD,children:"Your text here"}),tt.jsx(qa,{icon:Ui.ADD,variant:"outlined",children:"Your text here"}),tt.jsx(qa,{icon:Ui.ADD,variant:"minimal",children:"Your text here"})]}),tt.jsxs("div",{className:"flex flex-column",children:[tt.jsx("p",{children:"Primary"}),tt.jsx(qa,{icon:Ui.ADD,intent:Po.PRIMARY,children:"Your text here"}),tt.jsx(qa,{icon:Ui.ADD,intent:Po.PRIMARY,variant:"outlined",children:"Your text here"}),tt.jsx(qa,{icon:Ui.ADD,intent:Po.PRIMARY,variant:"minimal",children:"Your text here"})]}),tt.jsxs("div",{className:"flex flex-column",children:[tt.jsx("p",{children:"Success"}),tt.jsx(qa,{icon:Ui.ADD,intent:Po.SUCCESS,children:"Your text here"}),tt.jsx(qa,{icon:Ui.ADD,intent:Po.SUCCESS,variant:"outlined",children:"Your text here"}),tt.jsx(qa,{icon:Ui.ADD,intent:Po.SUCCESS,variant:"minimal",children:"Your text here"})]}),tt.jsxs("div",{className:"flex flex-column",children:[tt.jsx("p",{children:"Warning"}),tt.jsx(qa,{icon:Ui.ADD,intent:Po.WARNING,children:"Your text here"}),tt.jsx(qa,{icon:Ui.ADD,intent:Po.WARNING,variant:"outlined",children:"Your text here"}),tt.jsx(qa,{icon:Ui.ADD,intent:Po.WARNING,variant:"minimal",children:"Your text here"})]}),tt.jsxs("div",{className:"flex flex-column",children:[tt.jsx("p",{children:"Danger"}),tt.jsx(qa,{icon:Ui.ADD,intent:Po.DANGER,children:"Your text here"}),tt.jsx(qa,{icon:Ui.ADD,intent:Po.DANGER,variant:"outlined",children:"Your text here"}),tt.jsx(qa,{icon:Ui.ADD,intent:Po.DANGER,variant:"minimal",children:"Your text here"})]})]}),tt.jsxs("div",{className:"container",children:[tt.jsx("h3",{children:"Icons"}),tt.jsxs(J0,{children:[tt.jsx(qa,{icon:Ui.ArrowLeft,variant:"outlined"}),tt.jsx(qa,{icon:Ui.LIST,variant:"outlined"}),tt.jsx(qa,{endIcon:Ui.ArrowRight,variant:"outlined"})]}),tt.jsxs(J0,{variant:"minimal",children:[tt.jsx(Es,{content:"Expand all",placement:il.TOP,children:tt.jsx(qa,{endIcon:Ui.ExpandAll})}),tt.jsx(Es,{content:"Sort by id ascending",placement:il.TOP,children:tt.jsx(qa,{icon:Ui.SortAlphabetical})}),tt.jsx(Es,{content:"Sort by duration ascending",placement:il.TOP,children:tt.jsx(qa,{icon:Ui.SortNumerical})}),tt.jsx(Es,{content:"Scroll to top",placement:il.TOP,children:tt.jsx(qa,{icon:Ui.DOUBLE_CHEVRON_UP})}),tt.jsx(Es,{content:"Scroll to bottom",placement:il.TOP,children:tt.jsx(qa,{icon:Ui.DOUBLE_CHEVRON_DOWN})})]})]}),tt.jsx("h2",{children:"Form elements"}),tt.jsx(qh,{...zft,className:"short-width",children:tt.jsx(xh,{className:"bp5-light",onChange:()=>{},leftIcon:Ui.FOLDER_NEW})}),tt.jsxs("div",{className:"container flex",children:[tt.jsx(xh,{className:"bp5-light",onChange:()=>{},intent:Po.PRIMARY,leftIcon:Ui.FOLDER_NEW}),tt.jsx(xh,{className:"bp5-light",onChange:()=>{},intent:Po.WARNING,leftIcon:Ui.FOLDER_NEW}),tt.jsx(xh,{className:"bp5-light",onChange:()=>{},intent:Po.SUCCESS,leftIcon:Ui.FOLDER_NEW}),tt.jsx(xh,{className:"bp5-light",onChange:()=>{},intent:Po.DANGER,leftIcon:Ui.FOLDER_NEW})]}),tt.jsx("div",{className:"short-width",children:tt.jsx(qh,{children:tt.jsx(VG,{placeholder:"Filter operations",searchQuery:"",onQueryChanged:()=>{}})})}),tt.jsx(qh,{children:tt.jsxs("label",{className:"bp5-file-input",htmlFor:"local-upload",children:[tt.jsx("input",{id:"local-upload",type:"file",multiple:!0}),tt.jsx("span",{className:"bp5-file-upload-input",children:"Select files..."})]})}),tt.jsxs(qh,{children:[tt.jsx(Cv,{label:"Toggle switch"}),tt.jsx(Cv,{label:"Toggle switch",onChange:()=>{},checked:!0}),tt.jsx(YC,{label:"Global switch",onChange:()=>{},checked:!1}),tt.jsx(YC,{label:"Global switch",onChange:()=>{},checked:!0})]}),tt.jsx("h2",{children:"Components"}),tt.jsx("h3",{children:"Tags"}),tt.jsxs("div",{className:"container flex",children:[tt.jsx(M1,{intent:Po.NONE,size:"large",children:"None"}),tt.jsx(M1,{intent:Po.PRIMARY,size:"large",children:"Primary"}),tt.jsx(M1,{intent:Po.WARNING,size:"large",children:"Warning"}),tt.jsx(M1,{intent:Po.SUCCESS,size:"large",children:"Success"}),tt.jsx(M1,{intent:Po.DANGER,size:"large",children:"Danger"}),tt.jsx(t5,{memory:"L1"}),tt.jsx(t5,{memory:"DRAM"})]}),tt.jsx("h3",{children:"Progress bar"}),tt.jsx("div",{className:"container short-width",children:tt.jsx(U6,{progress:.05,estimated:36})}),tt.jsx("div",{className:"container short-width",children:tt.jsx(U6,{progress:.5,estimated:17})}),tt.jsx("div",{className:"container short-width",children:tt.jsx(U6,{progress:.95,estimated:1})}),tt.jsxs("div",{className:"container flex flex-column",children:[tt.jsx("h3",{children:"Connection message"}),tt.jsx(OS,{status:Rs.IDLE,message:"Operation is idle"}),tt.jsx(OS,{status:Rs.PROGRESS,message:"Operation in progress"}),tt.jsx(OS,{status:Rs.OK,message:"Operation is successful"}),tt.jsx(OS,{status:Rs.FAILED,message:"Operation failed :("})]}),tt.jsxs("div",{className:"container",children:[tt.jsx("h3",{children:"Loading spinner"}),tt.jsx(np,{})]})]})}function $ft(t,r){const e=r.filter(n=>n.name.includes("deallocate")&&n.inputs.find(a=>a.id===t.id));return e==null?void 0:e[0]}function Uft({tensor:t,operations:r,className:e}){var d,u,h;const{address:n,dtype:a,layout:l,shape:o}=t,f=t.consumers[t.consumers.length-1],i=(d=$ft(t,r))==null?void 0:d.id,s=(u=$ye(t,r))==null?void 0:u.id;return tt.jsxs(tt.Fragment,{children:[tt.jsx("table",{className:"ttnn-table analysis-table",children:tt.jsxs("tbody",{children:[tt.jsxs("tr",{children:[tt.jsx("th",{children:"Tensor Id"}),tt.jsx("td",{children:t.id})]}),tt.jsxs("tr",{children:[tt.jsx("th",{children:"Last used"}),tt.jsx("td",{children:og(f)?Hft(f,r,t):"No consumers for this tensor"})]}),og(s)&&og(i)&&og(n)?tt.jsxs("tr",{children:[tt.jsx("th",{children:"Next allocation"}),tt.jsx("td",{children:tt.jsxs("span",{children:[rA(n)," next allocated in"," ",tt.jsxs(yx,{to:`${Ss.OPERATIONS}/${s}`,children:[s," ",(h=r.find(y=>y.id===s))==null?void 0:h.name]})," ","(+",s-i," operations)"]})})]}):null]})}),tt.jsx("table",{className:Di("ttnn-table two-tone-rows buffer-table",e),children:tt.jsxs("tbody",{children:[tt.jsxs("tr",{children:[tt.jsx("th",{children:"Device Id"}),tt.jsx("td",{children:t.device_id??"n/a"})]}),tt.jsxs("tr",{children:[tt.jsx("th",{children:"Shape"}),tt.jsx("td",{children:q0(o)})]}),tt.jsxs("tr",{children:[tt.jsx("th",{children:"DataType"}),tt.jsx("td",{children:ZC(a)})]}),tt.jsxs("tr",{children:[tt.jsx("th",{children:"Layout"}),tt.jsx("td",{children:l})]}),t!=null&&t.memory_config?Object.entries(t.memory_config).map(([y,b])=>tt.jsx(WG,{header:y,value:b},y)):null,t.comparison?tt.jsxs(tt.Fragment,{children:[tt.jsxs("tr",{children:[tt.jsx("th",{children:"Matches Locally"}),tt.jsxs("td",{children:[tt.jsx(j2,{value:t.comparison.local.actual_pcc,label:"Actual PCC:"}),tt.jsx(j2,{value:t.comparison.local.desired_pcc,label:"Desired PCC:"})]})]}),tt.jsxs("tr",{children:[tt.jsx("th",{children:"Matches Globally"}),tt.jsxs("td",{children:[tt.jsx(j2,{value:t.comparison.global.actual_pcc,label:"Actual PCC:"}),tt.jsx(j2,{value:t.comparison.global.desired_pcc,label:"Desired PCC:"})]})]})]}):null]})})]})}function Hft(t,r,e){let n=r.find(a=>a.id===t);return n!=null&&n.name.includes("deallocate")&&e.consumers.length>1&&(n=r.find(a=>a.id===e.consumers[e.consumers.length-2])),n?tt.jsxs(yx,{to:`${Ss.OPERATIONS}/${n.id}`,children:[n==null?void 0:n.id," ",n.name," (",n.operationFileIdentifier,")"]}):null}const Cre=10,Ire=39,bre=100,jft=()=>{var z;const t=aI(),r=p3(),e=St.useRef(null),[n,a]=St.useState(!1),[l,o]=St.useState(""),[f,i]=St.useState([]),[s,d]=St.useState(!1),[u,h]=St.useState(!1),[y,b]=St.useState([]),[C,m]=St.useState(!1),[c,v]=Yu(DLe),g=tf(x3),{data:p,isLoading:I}=dg(),{data:A,error:_,isLoading:w}=Bve(),E=St.useMemo(()=>A&&g?A.filter(M=>M.producers.some(R=>R>=g[0])&&M.producers.some(R=>R<=g[1])||M.consumers.some(R=>R>=g[0])&&M.consumers.some(R=>R<=g[1])):A,[A,g]),x=aD({count:(f==null?void 0:f.length)||Cre,getScrollElement:()=>e.current,estimateSize:()=>Ire}),S=x.getVirtualItems(),T=f&&f.length>=0?f.length:Cre,L=x.getTotalSize()-bre,k=M=>{const R=M.currentTarget;d(!(R.scrollTop<Ire/2)),h(R.scrollTop+R.offsetHeight>=R.scrollHeight)},F=M=>{v(R=>{const N=[...R];return N.includes(M)?N.filter(O=>O!==M):(N.push(M),N)})},D=()=>{a(M=>!M),v(!n&&f?f.map(M=>M.id):[])},P=M=>{b(R=>R.includes(M)?R.filter(N=>N!==M):[...R,M])};return St.useMemo(()=>{if(E&&p){let M=[...E];l&&(M=E==null?void 0:E.filter(R=>xre(R).toLowerCase().includes(l.toLowerCase()))),(y==null?void 0:y.length)>0&&(M=M.filter(R=>(R==null?void 0:R.buffer_type)!==null&&y.includes(R.buffer_type))),C&&(M=M.filter(R=>R.consumers.length>Oy)),i(M)}},[p,E,l,y,C]),St.useEffect(()=>{var R;const M=(R=t.state)==null?void 0:R.previousOperationId;if(M&&x){const N=(A==null?void 0:A.findIndex(O=>O.id===parseInt(M,10)))||0;x.scrollToIndex(N-1,{align:"start"}),r(Ss.OPERATIONS,{replace:!0})}},[x,A,t,r]),St.useEffect(()=>{L<=0&&e.current&&(e.current.scrollTop=0,d(!1))},[L]),tt.jsxs("fieldset",{className:"list-wrap",children:[tt.jsx("legend",{children:"Tensors"}),tt.jsxs("div",{className:"list-controls",children:[tt.jsx(VG,{placeholder:"Filter tensors",searchQuery:l,onQueryChanged:M=>o(M)}),tt.jsxs(J0,{variant:"minimal",children:[tt.jsx(Es,{content:"Toggle high consumer tensors",placement:il.TOP,children:tt.jsx(qa,{onClick:()=>m(!C),endIcon:Ui.ISSUE,disabled:!(E!=null&&E.some(M=>M.consumers.length>Oy)),intent:Po.DANGER,variant:C?"outlined":void 0,children:f==null?void 0:f.filter(M=>M.consumers.length>Oy).length})}),tt.jsx(Es,{content:n?"Collapse all":"Expand all",placement:il.TOP,children:tt.jsx(qa,{onClick:()=>D(),endIcon:n?Ui.CollapseAll:Ui.ExpandAll})}),tt.jsx(Es,{content:"Scroll to top",placement:il.TOP,children:tt.jsx(qa,{onClick:()=>{x.scrollToIndex(0)},icon:Ui.DOUBLE_CHEVRON_UP})}),tt.jsx(Es,{content:"Scroll to bottom",placement:il.TOP,children:tt.jsx(qa,{onClick:()=>{x.scrollToIndex(T-1)},icon:Ui.DOUBLE_CHEVRON_DOWN})}),tt.jsx(GDe,{items:E?Vft(E):[],placeholder:"Buffer type filter...",onItemSelect:M=>P(M),selectedItems:y,itemRenderer:(M,R)=>Gft(M,P,y),tagRenderer:M=>dC[M],onRemove:M=>P(M),itemPredicate:(M,R)=>!M||dC[R].toLowerCase().includes(M.toLowerCase()),noResults:tt.jsx(b3,{disabled:!0,text:"No results.",roleStructure:"listoption"}),resetOnSelect:!0})]}),!w&&!I?tt.jsx("p",{className:"result-count",children:E&&l?`Showing ${T} of ${E.length} tensors`:`Showing ${T} tensors`}):null]}),tt.jsx("div",{ref:e,className:Di("scrollable-element",{"scroll-shade-top":s&&L>=0,"scroll-shade-bottom":!u&&T>S.length,"scroll-lock":L<=0}),onScroll:M=>k(M),children:tt.jsx("div",{style:{height:x.getTotalSize()-bre},children:tt.jsx("ul",{className:"list-container",style:{transform:`translateY(${((z=S[0])==null?void 0:z.start)??0}px)`},children:p&&(f!=null&&f.length)?S.map(M=>{const R=f[M.index];return tt.jsx("li",{className:"list-item-container","data-index":M.index,ref:x.measureElement,children:tt.jsx(GG,{onExpandToggle:()=>F(R.id),keepChildrenMounted:!1,isOpen:c.includes(R.id),label:tt.jsx(Xve,{filterName:xre(R),filterQuery:l,icon:Ui.FLOW_LINEAR,iconColour:"tensor",tags:og(R.buffer_type)&&dC[R.buffer_type]?[{htmlTitle:dC[R.buffer_type]}]:void 0,children:R.consumers.length>Oy?tt.jsx(Es,{content:"Unusually high number of consumers",position:il.TOP,className:"high-number-consumers",children:tt.jsx(fl,{icon:Ui.ISSUE,intent:Po.DANGER})}):null}),children:tt.jsx("div",{className:"arguments-wrapper",children:tt.jsx(Uft,{tensor:R,operations:p})})})},M.index)}):tt.jsxs(tt.Fragment,{children:[w||I?tt.jsx(np,{}):tt.jsx("p",{children:"No results"}),_&&tt.jsxs("div",{children:["An error occurred: ",_.message]})]})})})})]})},xre=t=>`${q0(t.shape)} ${ZC(t.dtype)} ${t.operationIdentifier?t.operationIdentifier:""}`;function Vft(t){return[...new Set((t==null?void 0:t.map(r=>r.buffer_type!==null?r.buffer_type:"").filter(r=>og(r)))??[])]}const Gft=(t,r,e)=>tt.jsx("li",{children:tt.jsx(BT,{className:"buffer-type-checkbox",label:dC[t],checked:e.includes(t),onClick:()=>r(t)})},t);function Wft(){return _3(),tt.jsxs(tt.Fragment,{children:[tt.jsx(vA,{title:"Tensors"}),tt.jsx(jft,{})]})}const Uye=100,eL=1200,bP=20,wre=eL/Uye*100,Hye=({buffers:t,memoryStart:r,memoryEnd:e,memoryPadding:n,tensorList:a})=>{const l=e-r,o=n/l*Uye,f=St.useRef(null),[i,s]=St.useState(null),[d,u]=Yu(Y5),[h,y]=Yu(Wx),{createToast:b,resetToasts:C}=iD(),m=St.useMemo(()=>t.map(_=>{const w=_.size/l*wre,E=(_.address-r)/l*wre,x=a.get(_.address),S=(x?rp(x.id):Zx(_.address))||"black",T=yge(S);return{position:E,size:w,tensor:x,color:S,dimmedColor:T,buffer:_}}),[t,l,r,a]);St.useEffect(()=>{const _=f.current;if(_){const w=_.getContext("2d");w&&(w.clearRect(0,0,eL,bP),m.forEach(({color:E,position:x,size:S,buffer:T,dimmedColor:L,tensor:k})=>{let F=E;d&&d===(k==null?void 0:k.id)?F=E:(h&&h!==T.address||h===T.address&&d&&d!==(k==null?void 0:k.id))&&(F=L),w.fillStyle=F,w.fillRect(x,1,S,bP)}))}},[m,h,d]);const c=_=>{const w=f.current;if(w){const E=w.getBoundingClientRect(),x=eL/E.width,S=(_.clientX-E.left)*x;return{interactiveBuffer:m.find(T=>S>=T.position&&S<=T.position+T.size),scaleX:x,canvas:w}}return{}},v=_=>{const{interactiveBuffer:w}=c(_);w?p(w.buffer,w.tensor):g()},g=()=>{C()},p=(_,w)=>{if(!_){g();return}u((w==null?void 0:w.id)===d?null:(w==null?void 0:w.id)??null),y((w==null?void 0:w.address)===d?null:(w==null?void 0:w.address)??_.address),b((w==null?void 0:w.address)??_.address,w==null?void 0:w.id)},I=_=>{var S,T,L,k,F,D,P;const{interactiveBuffer:w,scaleX:E,canvas:x}=c(_);if(w){x.style.cursor="pointer";const z=w.position/E,{color:M}=w;s({x:z,y:0,text:tt.jsx("div",{children:tt.jsxs("strong",{children:[tt.jsx("span",{style:{fontSize:"20px",color:M,marginRight:"2px"},children:"■"}),w.buffer.address," (",rA(w.buffer.address),")",tt.jsx("br",{}),"Size: ",zd(w.buffer.size),tt.jsx("br",{}),(S=w.tensor)!=null&&S.shape?q0(w.tensor.shape):""," ",(T=w.tensor)!=null&&T.dtype?ZC(w.tensor.dtype):""," ",(L=w.tensor)!=null&&L.id?`Tensor ${w.tensor.id}`:"",(F=(k=w.tensor)==null?void 0:k.memory_config)!=null&&F.memory_layout?tt.jsxs(tt.Fragment,{children:[tt.jsx("br",{}),(P=(D=w.tensor)==null?void 0:D.memory_config)==null?void 0:P.memory_layout]}):null]})})})}else f.current&&(f.current.style.cursor="default"),s(null)},A=()=>{s(null)};return tt.jsxs(tt.Fragment,{children:[i&&tt.jsx(Es,{content:i.text,position:il.TOP,hoverOpenDelay:0,hoverCloseDelay:0,isOpen:!0,usePortal:!0,variant:"minimal",modifiers:{offset:{enabled:!0,options:{offset:[i.x,bP]}}},children:tt.jsx("div",{style:{position:"absolute",top:0,left:`${i.x}px`,width:"0",height:"0",backgroundColor:"red",zIndex:100}})}),tt.jsx("div",{className:"buffer-summary-row",style:{margin:r>0?`0 ${o}%`:"0"},children:tt.jsx("canvas",{className:"canvas",ref:f,width:eL,height:bP,onMouseMove:I,onMouseLeave:A,onClick:v})})]})},Tre=30,_re=20,Zft=20,Yft=.01;function Xft({buffersByOperation:t,tensorListByOperation:r}){var S;const[e,n]=St.useState(!1),[a,l]=St.useState(!1),[o,f]=Yu(Xk),i=tf(kG)||0,[s,d]=Yu(DG),[u,h]=Yu(ive),{data:y,isLoading:b}=UG(),C=St.useRef(null),{data:m}=dg(),c=St.useMemo(()=>t&&t.length>=0?t.length:Tre,[t]),v=()=>!b&&y?y[i].worker_l1_size:0,g=St.useMemo(v,[i,y,b]),p=St.useMemo(()=>{let T,L;return t==null||t.forEach(k=>k.buffers.forEach(F=>{T=og(T)?Math.min(T,F.address):F.address,L=og(L)?Math.max(L,F.address+F.size):F.address+F.size})),T&&L?[T,L]:[0,g]},[t,g]),I=p[0]||0,A=p[1]||g,_=(A-I)*Yft,w=aD({count:(t==null?void 0:t.length)||Tre,getScrollElement:()=>C.current,estimateSize:()=>_re,overscan:20}),E=w.getVirtualItems(),x=T=>{const L=T.currentTarget;n(!(L.scrollTop<_re/2)),l(L.scrollTop+L.offsetHeight>=L.scrollHeight)};return t&&!b&&r?tt.jsxs("div",{className:"buffer-summary-chart",children:[tt.jsxs("div",{className:"controls",children:[tt.jsx(Cv,{label:"Buffer zoom",checked:u,onChange:()=>{h(!u)}}),tt.jsx(YC,{label:"Hex axis labels",checked:o,onChange:()=>{f(!o)}}),tt.jsx(YC,{label:"Tensor memory layout overlay",checked:s,onChange:()=>{d(!s)}})]}),tt.jsx("p",{className:"x-axis-label",children:"Memory Address"}),tt.jsx("div",{className:"chart-position",children:tt.jsx(Yp,{className:"buffer-summary-plot",chartDataList:[[{x:[0],y:[1],type:"bar",width:[0],marker:{color:"transparent"}}]],isZoomedIn:u,memorySize:u?A:g,plotZoomRange:u?[I-_,A+_]:[0,g],configuration:uge})}),tt.jsx("div",{className:Di("scrollable-element",{"scroll-shade-top":e,"scroll-shade-bottom":!a&&c>E.length}),onScroll:T=>x(T),ref:C,children:tt.jsx("div",{style:{height:w.getTotalSize()-Zft},children:tt.jsx("div",{className:"list-container",style:{transform:`translateY(${((S=E[0])==null?void 0:S.start)??0}px)`},children:E.map(T=>{var k;const L=t[T.index];return tt.jsxs("div",{className:"buffer-summary-plot-container","data-index":T.index,ref:w.measureElement,children:[tt.jsx(Hye,{buffers:L.buffers,memoryStart:u?I:0,memoryEnd:u?A:g,memoryPadding:_,tensorList:r.get(L.id)}),tt.jsx(Es,{content:`${L.id} ${L.name} (${(k=m==null?void 0:m.find(F=>F.id===L.id))==null?void 0:k.operationFileIdentifier})`,className:"y-axis-tick",children:tt.jsxs(yx,{to:`${Ss.OPERATIONS}/${L.id}`,children:[L.id," ",L.name]})})]},T.key)})})})})]}):tt.jsx(np,{})}var za=Dhe(),Kft="".concat(za,"-table-body-cells"),Qft="".concat(za,"-table-body-scrolling-indicator-overlay"),Jft="".concat(za,"-table-body-is-scrolling-top"),qft="".concat(za,"-table-body-is-scrolling-bottom"),eht="".concat(za,"-table-body-is-scrolling-right"),tht="".concat(za,"-table-body-is-scrolling-left"),rht="".concat(za,"-table-body-virtual-client"),nht="".concat(za,"-table-bottom-container"),jye="".concat(za,"-table-cell"),iht="".concat(za,"-table-cell-client"),aht="".concat(za,"-table-cell-ghost"),oht="".concat(za,"-table-cell-interactive"),sht="".concat(za,"-table-cell-ledger-even"),lht="".concat(za,"-table-cell-ledger-odd"),uht="".concat(za,"-table-column-header-tr"),cht="".concat(za,"-table-column-headers"),fht="".concat(za,"-table-column-header-cell"),M7="".concat(za,"-table-column-name"),Sre="".concat(za,"-table-column-name-text"),hht="".concat(za,"-table-container"),Ere="".concat(za,"-table-dragging"),dht="".concat(za,"-table-focus-region"),vht="".concat(za,"-table-has-interaction-bar"),ght="".concat(za,"-table-has-reorder-handle"),Vye="".concat(za,"-table-header"),pht="".concat(za,"-table-header-active"),Mre="".concat(za,"-table-header-content"),mht="".concat(za,"-table-header-reorderable"),yht="".concat(za,"-table-header-selected"),Aht="".concat(za,"-table-horizontal-cell-divider"),Rre="".concat(za,"-table-horizontal-guide"),Pre="".concat(za,"-table-interaction-bar"),Lre="".concat(za,"-table-last-in-column"),Ore="".concat(za,"-table-last-in-row"),Cht="".concat(za,"-table-menu"),Iht="".concat(za,"-table-no-horizontal-scroll"),bht="".concat(za,"-table-no-rows"),xht="".concat(za,"-table-no-vertical-scroll"),wht="".concat(za,"-table-no-wrap-text"),Tht="".concat(za,"-table-null"),AH="".concat(za,"-table-overlay"),ZW="".concat(za,"-table-overlay-layer"),_ht="".concat(za,"-table-reordering-cursor-overlay"),Sht="".concat(za,"-table-popover-whitespace-normal"),Eht="".concat(za,"-table-popover-whitespace-pre"),Mht="".concat(za,"-table-quadrant"),Rht="".concat(za,"-table-quadrant-body-container"),Gye="".concat(za,"-table-quadrant-left"),Wye="".concat(za,"-table-quadrant-main"),Pht="".concat(za,"-table-quadrant-scroll-container"),Lht="".concat(za,"-table-quadrant-stack"),Oht="".concat(za,"-table-quadrant-top"),kht="".concat(za,"-table-quadrant-top-left"),Dht="".concat(za,"-table-region"),Nht="".concat(za,"-table-reorder-handle"),kre="".concat(za,"-table-reorder-handle-target"),Fht="".concat(za,"-table-reordering"),zht="".concat(za,"-table-resize-guides"),Bht="".concat(za,"-table-resize-handle"),$ht="".concat(za,"-table-resize-handle-target"),Uht="".concat(za,"-table-resize-horizontal"),Hht="".concat(za,"-table-resize-sensor"),jht="".concat(za,"-table-resize-sensor-expand"),Vht="".concat(za,"-table-resize-sensor-shrink"),Ght="".concat(za,"-table-resize-vertical"),Wht="".concat(za,"-table-row-headers"),Zht="".concat(za,"-table-row-headers-cells-container"),Yht="".concat(za,"-table-row-name"),Xht="".concat(za,"-table-row-name-text"),xP="".concat(za,"-table-selection-enabled"),Kht="".concat(za,"-table-selection-region"),Qht="".concat(za,"-table-th-menu"),Zye="".concat(za,"-table-th-menu-container"),Jht="".concat(za,"-table-th-menu-container-background"),qht="".concat(za,"-table-th-menu-open"),Yye="".concat(za,"-table-th-menu-select-cells"),edt="".concat(za,"-table-thead"),tdt="".concat(za,"-table-top-container"),rdt="".concat(za,"-table-truncated-cell"),ndt="".concat(za,"-table-truncated-format"),Xye="".concat(za,"-table-truncated-format-text"),idt="".concat(za,"-table-truncated-popover"),Dre="".concat(za,"-table-truncated-popover-target"),YW="".concat(za,"-table-truncated-text"),Kye="".concat(za,"-table-truncated-value"),Nre="".concat(za,"-table-vertical-guide");function ND(t,r){return typeof r=="number"?"".concat(t).concat(r):r.indexOf(t)===0?r:"".concat(t).concat(r)}function Fre(t){return ND("".concat(za,"-table-col-"),t)}function zre(t){return ND("".concat(za,"-table-row-"),t)}function XW(t){return ND("".concat(za,"-table-cell-col-"),t)}function Qye(t){return ND("".concat(za,"-table-cell-row-"),t)}var KW=function(t){xs(r,t);function r(e){var n=t.call(this,e)||this;return n.style=n.calculateStyle(e.variableLength),n}return r.prototype.componentDidUpdate=function(e){(!e.loading&&this.props.loading||e.variableLength!==this.props.variableLength)&&(this.style=this.calculateStyle(this.props.variableLength))},r.prototype.render=function(){return this.props.loading?St.createElement("div",{className:B5e,style:this.style}):St.Children.only(this.props.children)},r.prototype.calculateStyle=function(e){e===void 0&&(e=!1);var n=e?75-Math.floor(Math.random()*11)*5:100;return{width:"".concat(n,"%")}},r}(St.PureComponent),QW="bp-table-text-no-measure",adt=Na.STANDARD,odt=["font-style","font-variant","font-weight","font-size","font-family"],Gs={times:function(t,r){if(t<0)throw new Error("[Blueprint] times() cannot be called with negative numbers.");for(var e=Array(t),n=0;n<t;n++)e[n]=r(n);return e},accumulate:function(t){for(var r=[],e=0,n=0,a=t;n<a.length;n++){var l=a[n];e+=l,r.push(e)}return r},toBase26Alpha:function(t){for(var r="";;){var e=t%26;if(r=String.fromCharCode(65+e)+r,t=t-e,t<=0)return r;t=t/26-1}},toBase26CellName:function(t,r){return"".concat(Gs.toBase26Alpha(r)).concat(t+1)},binarySearch:function(t,r,e){for(var n=0;n<r;){var a=Math.floor((n+r)/2),l=e(a);l<t?n=a+1:r=a}return r},assignSparseValues:function(t,r){if(r==null||t.length!==r.length)return t;t=t.slice();for(var e=0;e<t.length;e++){var n=r[e];n!=null&&(t[e]=n)}return t},measureElementTextContent:function(t){var r=document.createElement("canvas").getContext("2d"),e=getComputedStyle(t,null);return r.font=odt.map(function(n){return e.getPropertyValue(n)}).join(" "),sdt(r,t)},clamp:function(t,r,e){return r!=null&&t<r&&(t=r),e!=null&&t>e&&(t=e),t},guideIndexToReorderedIndex:function(t,r,e){return r<t?r:t<=r&&r<t+e?t:Math.max(0,r-e)},reorderedIndexToGuideIndex:function(t,r,e){return r<=t?r:r+e},reorderArray:function(t,r,e,n){if(n===void 0&&(n=1),n===0||n===t.length||r===e)return t.slice();if(!(n<0||n>t.length||r+n>t.length)){for(var a=t.slice(0,r),l=t.slice(r,r+n),o=t.slice(r+n),f=[],i=0,s=0,d=0,u=0;i<e;)s<a.length?(f.push(a[s]),s+=1):(f.push(o[u]),u+=1),i+=1;for(;d<n;)f.push(l[d]),d+=1,i+=1;for(;i<t.length;)s<a.length?(f.push(a[s]),s+=1):(f.push(o[u]),u+=1),i+=1;return f}},isLeftClick:function(t){return t.button===0},getApproxCellHeight:function(t,r,e,n,a,l){var o=t==null?0:t.length,f=r,i=f-a,s=i/e,d=Math.ceil(o/s)+l,u=d*n;return u},compareSparseArrays:function(t,r){return t!==void 0&&r!==void 0&&t.length===r.length&&t.every(function(e,n){return e===r[n]})}};function sdt(t,r){var e,n=r.querySelectorAll(".".concat(QW)),a=0;n&&n.length&&n.forEach(function(f){var i,s=t.measureText((i=f.textContent)!==null&&i!==void 0?i:"");a+=s.width-adt});var l=t.measureText((e=r.textContent)!==null&&e!==void 0?e:""),o=qn(qn({},l),{width:l.width-a});return o}var Il;(function(t){t.CELL="cell",t.ROW="row"})(Il||(Il={}));var to;(function(t){t.CELLS="cells",t.FULL_ROWS="full-rows",t.FULL_COLUMNS="full-columns",t.FULL_TABLE="full-table"})(to||(to={}));var ldt={ALL:[to.FULL_TABLE,to.FULL_COLUMNS,to.FULL_ROWS,to.CELLS],COLUMNS_AND_CELLS:[to.FULL_COLUMNS,to.CELLS],COLUMNS_ONLY:[to.FULL_COLUMNS],ROWS_AND_CELLS:[to.FULL_ROWS,to.CELLS],ROWS_ONLY:[to.FULL_ROWS]},HO;(function(t){t.CELLS="cells",t.HEADER="column-header"})(HO||(HO={}));var Bre;(function(t){t.CELLS="cells",t.HEADER="row-header"})(Bre||(Bre={}));var _1;(function(t){t.CELLS="cells",t.COLUMN_HEADERS="column-header",t.ROW_HEADERS="row-header"})(_1||(_1={}));var So=function(){function t(){}return t.getRegionCardinality=function(r){return r.cols!=null&&r.rows!=null?to.CELLS:r.cols!=null?to.FULL_COLUMNS:r.rows!=null?to.FULL_ROWS:to.FULL_TABLE},t.getFocusCellCoordinatesFromRegion=function(r){var e=t.getRegionCardinality(r);switch(e){case to.FULL_TABLE:return{col:0,row:0};case to.FULL_COLUMNS:return{col:r.cols[0],row:0};case to.FULL_ROWS:return{col:0,row:r.rows[0]};case to.CELLS:return{col:r.cols[0],row:r.rows[0]}}},t.copy=function(r){var e=t.getRegionCardinality(r);return e===to.CELLS?t.cell(r.rows[0],r.cols[0],r.rows[1],r.cols[1]):e===to.FULL_COLUMNS?t.column(r.cols[0],r.cols[1]):e===to.FULL_ROWS?t.row(r.rows[0],r.rows[1]):t.table()},t.cell=function(r,e,n,a){return{cols:this.normalizeInterval(e,a),rows:this.normalizeInterval(r,n)}},t.row=function(r,e){return{rows:this.normalizeInterval(r,e)}},t.column=function(r,e){return{cols:this.normalizeInterval(r,e)}},t.table=function(){return{}},t.add=function(r,e){var n=r.slice();return n.push(e),n},t.update=function(r,e,n){var a=r.slice();return n!=null?a.splice(n,1,e):(a.pop(),a.push(e)),a},t.clampRegion=function(r,e,n){var a=t.copy(r);return r.rows!=null&&(a.rows[0]=Gs.clamp(r.rows[0],0,e),a.rows[1]=Gs.clamp(r.rows[1],0,e)),r.cols!=null&&(a.cols[0]=Gs.clamp(r.cols[0],0,n),a.cols[1]=Gs.clamp(r.cols[1],0,n)),a},t.lastRegionIsEqual=function(r,e){if(r==null||r.length===0)return!1;var n=r[r.length-1];return t.regionsEqual(n,e)},t.findMatchingRegion=function(r,e){if(r==null)return-1;for(var n=0;n<r.length;n++)if(t.regionsEqual(r[n],e))return n;return-1},t.findContainingRegion=function(r,e){if(r==null)return-1;for(var n=0;n<r.length;n++)if(t.regionContains(r[n],e))return n;return-1},t.hasFullColumn=function(r,e){if(r==null)return!1;for(var n=0,a=r;n<a.length;n++){var l=a[n],o=t.getRegionCardinality(l);if(o===to.FULL_TABLE||o===to.FULL_COLUMNS&&t.intervalContainsIndex(l.cols,e))return!0}return!1},t.hasFullRow=function(r,e){if(r==null)return!1;for(var n=0,a=r;n<a.length;n++){var l=a[n],o=t.getRegionCardinality(l);if(o===to.FULL_TABLE||o===to.FULL_ROWS&&t.intervalContainsIndex(l.rows,e))return!0}return!1},t.hasFullTable=function(r){if(r==null)return!1;for(var e=0,n=r;e<n.length;e++){var a=n[e],l=t.getRegionCardinality(a);if(l===to.FULL_TABLE)return!0}return!1},t.containsRegion=function(r,e){return t.overlapsRegion(r,e,!1)},t.overlapsRegion=function(r,e,n){n===void 0&&(n=!1);var a=n?t.intervalOverlaps:t.intervalContains;if(r==null||e==null)return!1;for(var l=0,o=r;l<o.length;l++){var f=o[l],i=t.getRegionCardinality(f);switch(i){case to.FULL_TABLE:return!0;case to.FULL_COLUMNS:if(a(f.cols,e.cols))return!0;continue;case to.FULL_ROWS:if(a(f.rows,e.rows))return!0;continue;case to.CELLS:if(a(f.cols,e.cols)&&a(f.rows,e.rows))return!0;continue}}return!1},t.eachUniqueFullColumn=function(r,e){if(!(r==null||r.length===0||e==null)){var n={};r.forEach(function(a){if(t.getRegionCardinality(a)===to.FULL_COLUMNS)for(var l=a.cols,o=l[0],f=l[1],i=o;i<=f;i++)n[i]||(n[i]=!0,e(i))})}},t.eachUniqueFullRow=function(r,e){if(!(r==null||r.length===0||e==null)){var n={};r.forEach(function(a){if(t.getRegionCardinality(a)===to.FULL_ROWS)for(var l=a.rows,o=l[0],f=l[1],i=o;i<=f;i++)n[i]||(n[i]=!0,e(i))})}},t.enumerateUniqueCells=function(r,e,n){if(r==null||r.length===0)return[];for(var a={},l=[],o=0,f=r;o<f.length;o++){var i=f[o];t.eachCellInRegion(i,e,n,function(s,d){var u="".concat(s,"-").concat(d);a[u]!==!0&&(a[u]=!0,l.push([s,d]))})}return l.sort(t.rowFirstComparator),l},t.getCellRegionFromRegion=function(r,e,n){var a=t.getRegionCardinality(r);switch(a){case to.FULL_TABLE:return t.cell(0,0,e-1,n-1);case to.FULL_COLUMNS:return t.cell(0,r.cols[0],e-1,r.cols[1]);case to.FULL_ROWS:return t.cell(r.rows[0],0,r.rows[1],n-1);case to.CELLS:return t.cell(r.rows[0],r.cols[0],r.rows[1],r.cols[1])}},t.getRegionFromFocusedRegion=function(r){switch(r.type){case Il.CELL:return t.cell(r.row,r.col);case Il.ROW:return t.row(r.row)}},t.sparseMapCells=function(r,e){var n=t.getBoundingRegion(r);if(n!==void 0){var a=n.rows[1]+1-n.rows[0],l=n.cols[1]+1-n.cols[0],o=Gs.times(a,function(){return new Array(l)});return r.forEach(function(f){var i=f[0],s=f[1];o[i-n.rows[0]][s-n.cols[0]]=e(i,s)}),o}},t.getBoundingRegion=function(r){for(var e,n,a,l,o=0,f=r;o<f.length;o++){var i=f[o],s=i[0],d=i[1];e=e===void 0||s<e?s:e,n=n===void 0||s>n?s:n,a=a===void 0||d<a?d:a,l=l===void 0||d>l?d:l}if(!(e===void 0||n===void 0||a===void 0||l===void 0))return{cols:[a,l],rows:[e,n]}},t.isValid=function(r){return!(r==null||r.rows!=null&&(r.rows[0]<0||r.rows[1]<0)||r.cols!=null&&(r.cols[0]<0||r.cols[1]<0))},t.isRegionValidForTable=function(r,e,n){return e===0||n===0||r.rows!=null&&!$re(r.rows,0,e-1)?!1:!(r.cols!=null&&!$re(r.cols,0,n-1))},t.joinStyledRegionGroups=function(r,e,n){var a=n==null?void 0:"type"in n?n:qn(qn({},n),{type:Il.CELL}),l=[];return e!=null&&(l=l.concat(e)),r!=null&&r.length>0&&l.push({className:Kht,regions:r}),a!==void 0&&l.push({className:dht,regions:[t.getRegionFromFocusedRegion(a)]}),l},t.regionsEqual=function(r,e){return t.intervalsEqual(r.rows,e.rows)&&t.intervalsEqual(r.cols,e.cols)},t.expandRegion=function(r,e){var n=t.getRegionCardinality(r),a=t.getRegionCardinality(e);if(a!==n)return e;switch(a){case to.FULL_ROWS:{var l=Math.min(r.rows[0],e.rows[0]),o=Math.max(r.rows[1],e.rows[1]);return t.row(l,o)}case to.FULL_COLUMNS:{var f=Math.min(r.cols[0],e.cols[0]),i=Math.max(r.cols[1],e.cols[1]);return t.column(f,i)}case to.CELLS:{var l=Math.min(r.rows[0],e.rows[0]),f=Math.min(r.cols[0],e.cols[0]),o=Math.max(r.rows[1],e.rows[1]),i=Math.max(r.cols[1],e.cols[1]);return t.cell(l,f,o,i)}default:return t.table()}},t.eachCellInRegion=function(r,e,n,a){var l=t.getRegionCardinality(r);switch(l){case to.FULL_TABLE:for(var o=0;o<e;o++)for(var f=0;f<n;f++)a(o,f);break;case to.FULL_COLUMNS:for(var o=0;o<e;o++)for(var f=r.cols[0];f<=r.cols[1];f++)a(o,f);break;case to.FULL_ROWS:for(var o=r.rows[0];o<=r.rows[1];o++)for(var f=0;f<n;f++)a(o,f);break;case to.CELLS:for(var o=r.rows[0];o<=r.rows[1];o++)for(var f=r.cols[0];f<=r.cols[1];f++)a(o,f);break}},t.regionContains=function(r,e){return t.overlapsRegion([r],e,!1)},t.intervalsEqual=function(r,e){return r==null?e==null:e==null?!1:r[0]===e[0]&&r[1]===e[1]},t.intervalContainsIndex=function(r,e){return r==null?!1:r[0]<=e&&r[1]>=e},t.intervalContains=function(r,e){return r==null||e==null?!1:r[0]<=e[0]&&e[1]<=r[1]},t.intervalOverlaps=function(r,e){return!(r==null||e==null||r[1]<e[0]||r[0]>e[1])},t.rowFirstComparator=function(r,e){var n=r[0]-e[0];return n===0?r[1]-e[1]:n},t.numericalComparator=function(r,e){return r-e},t.normalizeInterval=function(r,e){e==null&&(e=r);var n=[r,e];return n.sort(t.numericalComparator),n},t}();function $re(t,r,e){return Ure(t[0],r,e)&&Ure(t[1],r,e)}function Ure(t,r,e){return t>=r&&t<=e}var R1=function(){function t(r,e,n,a){this.left=r,this.top=e,this.width=n,this.height=a}return t.union=function(r,e){var n=t.wrap(r),a=t.wrap(e),l=Math.min(n.top,a.top),o=Math.min(n.left,a.left),f=Math.max(n.top+n.height,a.top+a.height),i=Math.max(n.left+n.width,a.left+a.width),s=f-l,d=i-o;return new t(o,l,d,s)},t.subtractOrigin=function(r,e){var n=t.wrap(r),a=t.wrap(e);return new t(n.left-a.left,n.top-a.top,n.width,n.height)},t.style=function(r){return{height:"".concat(r.height,"px"),left:"".concat(r.left,"px"),position:"absolute",top:"".concat(r.top,"px"),width:"".concat(r.width,"px")}},t.wrap=function(r){return r instanceof t?r:new t(r.left,r.top,r.width,r.height)},t.prototype.subtractOrigin=function(r){return t.subtractOrigin(this,r)},t.prototype.union=function(r){return t.union(this,r)},t.prototype.style=function(){return t.style(this)},t.prototype.sizeStyle=function(){return{height:"".concat(this.height,"px"),width:"".concat(this.width,"px")}},t.prototype.containsX=function(r){return r>=this.left&&r<=this.left+this.width},t.prototype.containsY=function(r){return r>=this.top&&r<=this.top+this.height},t.prototype.equals=function(r){return r!=null&&this.left===r.left&&this.top===r.top&&this.width===r.width&&this.height===r.height},t.ORIGIN=new t(0,0,0,0),t}(),Ug=function(){function t(r,e,n,a,l){n===void 0&&(n=t.DEFAULT_BLEED),a===void 0&&(a=t.DEFAULT_GHOST_HEIGHT),l===void 0&&(l=t.DEFAULT_GHOST_WIDTH);var o=this;this.getCumulativeWidthBefore=function(f){return f===0?0:o.getCumulativeWidthAt(f-1)},this.getCumulativeWidthAt=function(f){return o.numCols===0?o.ghostWidth*f:f>=o.numCols?o.cumulativeColumnWidths[o.numCols-1]+o.ghostWidth*(f-o.numCols+1):o.cumulativeColumnWidths[f]},this.getCumulativeHeightBefore=function(f){return f===0?0:o.getCumulativeHeightAt(f-1)},this.getCumulativeHeightAt=function(f){return o.numRows===0?o.ghostHeight*f:f>=o.numRows?o.cumulativeRowHeights[o.numRows-1]+o.ghostHeight*(f-o.numRows+1):o.cumulativeRowHeights[f]},this.columnWidths=e,this.rowHeights=r,this.cumulativeColumnWidths=Gs.accumulate(e),this.cumulativeRowHeights=Gs.accumulate(r),this.numCols=e.length,this.numRows=r.length,this.bleed=n,this.ghostHeight=a,this.ghostWidth=l}return t.prototype.getCellRect=function(r,e){var n=this.rowHeights[r],a=this.cumulativeRowHeights[r]-n,l=this.columnWidths[e],o=this.cumulativeColumnWidths[e]-l;return new R1(o,a,l,n)},t.prototype.getGhostCellRect=function(r,e){var n=0,a=0,l=0,o=0;return r>=this.rowHeights.length?(o=this.ghostHeight,a=this.getHeight()+this.ghostHeight*(r-this.numRows)):(o=this.rowHeights[r],a=this.cumulativeRowHeights[r]-o),e>=this.columnWidths.length?(l=this.ghostWidth,n=this.getWidth()+this.ghostWidth*(e-this.numCols)):(l=this.columnWidths[e],n=this.cumulativeColumnWidths[e]-l),new R1(n,a,l,o)},t.prototype.getRowRect=function(r){var e=this.rowHeights[r],n=this.cumulativeRowHeights[r]-e;return new R1(0,n,this.getWidth(),e)},t.prototype.getColumnRect=function(r){var e=this.columnWidths[r],n=this.cumulativeColumnWidths[r]-e;return new R1(n,0,e,this.getHeight())},t.prototype.getWidth=function(){return this.numCols===0?0:this.cumulativeColumnWidths[this.numCols-1]},t.prototype.getHeight=function(){return this.numRows===0?0:this.cumulativeRowHeights[this.numRows-1]},t.prototype.getRect=function(){return new R1(0,0,this.getWidth(),this.getHeight())},t.prototype.mapCellsInRect=function(r,e){var n=[];if(r==null)return n;for(var a=this.getRowIndicesInRect({rect:r}),l=a.rowIndexStart,o=a.rowIndexEnd,f=this.getColumnIndicesInRect(r),i=f.columnIndexStart,s=f.columnIndexEnd,d=l;d<=o;d++)for(var u=i;u<=s;u++)n.push(e(d,u));return n},t.prototype.mapRowsInRect=function(r,e){var n=[];if(r==null)return n;for(var a=this.getRowIndicesInRect({rect:r}),l=a.rowIndexStart,o=a.rowIndexEnd,f=l;f<=o;f++)n.push(e(f));return n},t.prototype.mapColumnsInRect=function(r,e){var n=[];if(r==null)return n;for(var a=this.getColumnIndicesInRect(r),l=a.columnIndexStart,o=a.columnIndexEnd,f=l;f<=o;f++)n.push(e(f));return n},t.prototype.getRowIndicesInRect=function(r){var e=r.rect,n=r.includeGhostCells,a=n===void 0?!1:n,l=r.columnHeaderHeight,o=l===void 0?0:l,f=r.limit,i=f===void 0?t.DEFAULT_MAX_ROWS:f;if(e==null)return{rowIndexEnd:0,rowIndexStart:0};var s=a?Math.max(this.numRows,t.DEFAULT_MAX_ROWS):this.numRows,d=e.top,u=d===void 0?0:d,h=e.height,y=this.getIndicesInInterval(u,u+(h-o),s,!a,this.getCumulativeHeightAt),b=y.start,C=y.end,m=i>0&&C-b>i?b+i:C;return{rowIndexEnd:m,rowIndexStart:b}},t.prototype.getColumnIndicesInRect=function(r,e,n){if(e===void 0&&(e=!1),n===void 0&&(n=t.DEFAULT_MAX_COLUMNS),r==null)return{columnIndexEnd:0,columnIndexStart:0};var a=e?Math.max(this.numCols,t.DEFAULT_MAX_COLUMNS):this.numCols,l=r.left,o=l===void 0?0:l,f=r.width,i=this.getIndicesInInterval(o,o+f,a,!e,this.getCumulativeWidthAt),s=i.start,d=i.end,u=n>0&&d-s>n?s+n:d;return{columnIndexEnd:u,columnIndexStart:s}},t.prototype.isGhostIndex=function(r,e){return r>=this.numRows||e>=this.numCols},t.prototype.isGhostColumn=function(r){return r>=this.numCols},t.prototype.getExtremaClasses=function(r,e,n,a){return r===n&&e===a?[Lre,Ore]:r===n?[Lre]:e===a?[Ore]:[]},t.prototype.getRegionStyle=function(r){var e=So.getRegionCardinality(r);switch(e){case to.CELLS:{var n=r.rows,a=n[0],l=n[1],o=r.cols,f=o[0],i=o[1];if(this.isGhostIndex(a,f)||this.isGhostIndex(l,i))return{display:"none"};var s=this.getCellRect(a,f),d=this.getCellRect(l,i),u=f===0?0:1,h=a===0?0:1,y=s.union(d);return y.height+=h,y.left-=u,y.width+=u,y.top-=h,qn(qn({},y.style()),{display:"block"})}case to.FULL_COLUMNS:{var b=r.cols,f=b[0],i=b[1];if(this.isGhostIndex(0,f)||this.isGhostIndex(0,i))return{display:"none"};var s=this.getCellRect(0,f),d=this.getCellRect(0,i),y=s.union(d),u=f===0?0:1;return{bottom:0,display:"block",left:y.left-u,top:0,width:y.width+u}}case to.FULL_ROWS:{var C=r.rows,a=C[0],l=C[1];if(this.isGhostIndex(a,0)||this.isGhostIndex(l,0))return{display:"none"};var s=this.getCellRect(a,0),d=this.getCellRect(l,0),y=s.union(d),h=a===0?0:1;return{display:"block",height:y.height+h,left:0,right:0,top:y.top-h}}case to.FULL_TABLE:return{bottom:0,display:"block",left:0,right:0,top:0};default:return{display:"none"}}},t.prototype.getIndicesInInterval=function(r,e,n,a,l){var o=Gs.binarySearch(r,n-1,l),f=Gs.binarySearch(e,n-1,l);return o>=0&&r===l(o)&&(o+=1),o=Math.max(0,o-this.bleed),a?f=Math.min(n-1,f+this.bleed):f=Math.min(n-1,f),{end:f,start:o}},t.DEFAULT_BLEED=3,t.DEFAULT_MAX_COLUMNS=50,t.DEFAULT_MAX_ROWS=200,t.DEFAULT_GHOST_HEIGHT=20,t.DEFAULT_GHOST_WIDTH=150,t.MIN_COLUMN_HEADER_HEIGHT=30,t.MIN_ROW_HEADER_WIDTH=30,t}(),JW=function(){function t(r,e,n){var a=this;this.tableElement=r,this.scrollContainerElement=e,this.cellContainerElement=n,this.convertCellIndexToClientX=function(l){return a.grid.getCumulativeWidthAt(l)},this.convertCellMidpointToClientX=function(l){var o=a.grid.getCumulativeWidthBefore(l),f=a.grid.getCumulativeWidthAt(l);return(o+f)/2},this.convertCellIndexToClientY=function(l){return a.grid.getCumulativeHeightAt(l)},this.convertCellMidpointToClientY=function(l){var o=a.grid.getCumulativeHeightBefore(l),f=a.grid.getCumulativeHeightAt(l);return(o+f)/2},this.toGridX=function(l){var o=a.cellContainerElement.getBoundingClientRect().left,f=a.scrollContainerElement.scrollLeft,i=l-(o+f),s=a.numFrozenColumns!=null&&a.numFrozenColumns>0&&i<=a.grid.getCumulativeWidthBefore(a.numFrozenColumns);return s?i:i+f},this.toGridY=function(l){var o=a.cellContainerElement.getBoundingClientRect().top,f=a.scrollContainerElement.scrollTop,i=l-(o+f),s=a.numFrozenRows!=null&&a.numFrozenRows>0&&i<=a.grid.getCumulativeHeightBefore(a.numFrozenRows);return s?i:i+f},this.numFrozenRows=0,this.numFrozenColumns=0}return t.prototype.setGrid=function(r){return this.grid=r,this},t.prototype.setNumFrozenRows=function(r){return this.numFrozenRows=r,this},t.prototype.setNumFrozenColumns=function(r){return this.numFrozenColumns=r,this},t.prototype.getViewportRect=function(){return new R1(this.scrollContainerElement.scrollLeft||0,this.scrollContainerElement.scrollTop||0,this.scrollContainerElement.clientWidth,this.scrollContainerElement.clientHeight)},t.prototype.getWidestVisibleCellInColumn=function(r){for(var e=this.getColumnCellSelector(r),n=this.tableElement.querySelectorAll(e),a=0,l=0;l<n.length;l++){var o=Gs.measureElementTextContent(n.item(l)).width,f=Math.ceil(o)+t.CELL_HORIZONTAL_PADDING*2;f>a&&(a=f)}return a},t.prototype.getTallestVisibleCellInColumn=function(r){for(var e=this.getColumnCellSelector(r),n=this.tableElement.querySelectorAll("".concat(e,".").concat(jye)),a=0,l=0;l<n.length;l++){var o=n.item(l),f=o.querySelector(".".concat(Kye)),i=o.querySelector(".".concat(Xye)),s=o.querySelector(".".concat(YW)),d=0;f!=null?d=f.scrollHeight:i!=null?d=i.scrollHeight:s!=null?d=s.scrollHeight:d=o.scrollHeight,d>a&&(a=d)}return a},t.prototype.hasVerticalOverflowOrExactFit=function(r,e){return r===void 0&&(r=Ug.MIN_COLUMN_HEADER_HEIGHT),e===void 0&&(e=this.getViewportRect()),this.grid===void 0?!1:this.grid.getHeight()>=e.height-r},t.prototype.hasHorizontalOverflowOrExactFit=function(r,e){return r===void 0&&(r=Ug.MIN_ROW_HEADER_WIDTH),e===void 0&&(e=this.getViewportRect()),this.grid===void 0?!1:this.grid.getWidth()>=e.width-r},t.prototype.convertPointToColumn=function(r,e){var n=this.getTableRect();if(this.grid===void 0||!n.containsX(r))return-1;var a=this.toGridX(r),l=e?this.grid.numCols:this.grid.numCols-1,o=e?this.convertCellMidpointToClientX:this.convertCellIndexToClientX;return Gs.binarySearch(a,l,o)},t.prototype.convertPointToRow=function(r,e){var n=this.getTableRect();if(this.grid===void 0||!n.containsY(r))return-1;var a=this.toGridY(r),l=e?this.grid.numRows:this.grid.numRows-1,o=e?this.convertCellMidpointToClientY:this.convertCellIndexToClientY;return Gs.binarySearch(a,l,o)},t.prototype.convertPointToCell=function(r,e){var n=this.toGridX(r),a=this.toGridY(e),l=Gs.binarySearch(n,this.grid.numCols-1,this.convertCellIndexToClientX),o=Gs.binarySearch(a,this.grid.numRows-1,this.convertCellIndexToClientY);return{col:l,row:o}},t.prototype.getColumnCellSelector=function(r){var e=r<this.numFrozenColumns,n=e?Gye:Wye,a=XW(r);return".".concat(n," .").concat(a)},t.prototype.getTableRect=function(){return R1.wrap(this.tableElement.getBoundingClientRect())},t.CELL_HORIZONTAL_PADDING=10,t}(),udt=25,E1;(function(t){t.ALWAYS="always",t.NEVER="never",t.WHEN_TRUNCATED="when-truncated",t.WHEN_TRUNCATED_APPROX="when-truncated-approx"})(E1||(E1={}));var Jye=function(t){xs(r,t);function r(){var e=t!==null&&t.apply(this,arguments)||this;return e.state={isPopoverOpen:!1,isTruncated:!1},e.handleContentDivRef=function(n){return e.contentDiv=n},e.handlePopoverOpen=function(){e.setState({isPopoverOpen:!0})},e.handlePopoverClose=function(){e.setState({isPopoverOpen:!1})},e}return r.prototype.componentDidMount=function(){this.setTruncationState()},r.prototype.componentDidUpdate=function(){this.setTruncationState()},r.prototype.render=function(){var e=this.props,n=e.children,a=e.detectTruncation,l=e.truncateLength,o=e.truncationSuffix,f=""+n,i=f;if(!a&&l>0&&i.length>l&&(i=i.substring(0,l)+o),this.shouldShowPopover(f)){var s=Di(this.props.className,ndt);return St.createElement("div",{className:s},St.createElement("div",{className:Kye,ref:this.handleContentDivRef},i),this.renderPopover())}else{var s=Di(this.props.className,Xye);return St.createElement("div",{className:s,ref:this.handleContentDivRef},i)}},r.prototype.renderPopover=function(){var e=this.props,n=e.children,a=e.preformatted;if(this.state.isPopoverOpen){var l=Di(idt,a?Eht:Sht),o=St.createElement("div",{className:l},n);return St.createElement(Gx,{className:Dre,content:o,isOpen:!0,onClose:this.handlePopoverClose,placement:"bottom",rootBoundary:"document"},St.createElement(sO,null))}else return St.createElement("span",{className:Dre,onClick:this.handlePopoverOpen},St.createElement(sO,null))},r.prototype.shouldShowPopover=function(e){var n=this.props,a=n.detectTruncation,l=n.measureByApproxOptions,o=n.showPopover,f=n.truncateLength;switch(o){case E1.ALWAYS:return!0;case E1.NEVER:return!1;case E1.WHEN_TRUNCATED:return a?this.state.isTruncated:f>0&&e.length>f;case E1.WHEN_TRUNCATED_APPROX:if(!a)return f>0&&e.length>f;if(this.props.parentCellHeight==null||this.props.parentCellWidth==null)return!1;var i=l,s=i.approximateCharWidth,d=i.approximateLineHeight,u=i.cellHorizontalPadding,h=i.numBufferLines,y=this.props.parentCellWidth,b=Gs.getApproxCellHeight(e,y,s,d,u,h),C=b>this.props.parentCellHeight;return C;default:return!1}},r.prototype.setTruncationState=function(){if(!(!this.props.detectTruncation||this.props.showPopover!==E1.WHEN_TRUNCATED)){if(this.contentDiv==null){this.setState({isTruncated:!1});return}var e=this.state.isTruncated,n=this.contentDiv,a=n.clientHeight,l=n.clientWidth,o=n.scrollHeight,f=n.scrollWidth,i=e?f-udt:f,s=e&&i===l||i>l||o>a;this.setState({isTruncated:s})}},r.displayName="".concat(Wo,".TruncatedFormat"),r.defaultProps={detectTruncation:!1,measureByApproxOptions:{approximateCharWidth:8,approximateLineHeight:18,cellHorizontalPadding:2*JW.CELL_HORIZONTAL_PADDING,numBufferLines:0},preformatted:!1,showPopover:E1.WHEN_TRUNCATED,truncateLength:2e3,truncationSuffix:"..."},r}(St.PureComponent),cdt=function(t){xs(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.render=function(){var e,n=this.props,a=n.children,l=n.omitQuotesOnStrings,o=n.stringify,f=this.props.showPopover,i=a==null;i&&(f=E1.NEVER);var s=Di(this.props.className,(e={},e[Tht]=i,e)),d="";return l&&typeof a=="string"?d=a:d=o(a),St.createElement(Jye,qn({},this.props,{className:s,showPopover:f}),d)},r.displayName="".concat(Wo,".JSONFormat"),r.defaultProps={omitQuotesOnStrings:!0,stringify:function(e){return JSON.stringify(e,null,2)}},r}(St.Component),CH=function(){return St.createElement(qye,null)},qye=function(t){xs(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.shouldComponentUpdate=function(e){return!bv(this.props,e,{exclude:["style"]})||!X0(this.props.style,e.style)},r.prototype.render=function(){var e,n,a=this.props,l=a.cellRef,o=a.tabIndex,f=a.onKeyDown,i=a.onKeyUp,s=a.onKeyPress,d=a.style,u=a.intent,h=a.interactive,y=a.loading,b=a.tooltip,C=a.truncated,m=a.className,c=a.wrapText,v=Di(jye,Vd(u),(e={},e[oht]=h,e[VV]=y,e[rdt]=C,e),m),g=Di((n={},n[YW]=C,n[wht]=!c,n)),p=St.Children.map(this.props.children,function(A){var _=GC(A,Jye)||GC(A,cdt);return d!=null&&St.isValidElement(A)&&_?St.cloneElement(A,{parentCellHeight:d.height===void 0?void 0:parseInt(d.height.toString(),10),parentCellWidth:d.width===void 0?void 0:parseInt(d.width.toString(),10)}):A}),I=St.createElement("div",{className:g},p);return St.createElement("div",{className:v,title:b,ref:l,onKeyDown:f,onKeyPress:s,onKeyUp:i,style:d,tabIndex:o},St.createElement(KW,{loading:y??!1,variableLength:!0},I))},r.displayName="".concat(Wo,".Cell"),r.defaultProps={truncated:!0,wrapText:!1},r}(St.Component),jO=function(){function t(){var r=this;this.isActivated=!1,this.isDragging=!1,this.handleMouseDown=function(e){if(r.initCoordinateData(e),r.handler!=null&&r.handler.onActivate!=null){var n=r.handler.onActivate(e);if(n===!1)return}r.isActivated=!0,r.maybeAlterEventChain(e),r.detachDocumentEventListeners(),r.attachDocumentEventListeners()},this.handleMouseMove=function(e){var n,a;if(r.maybeAlterEventChain(e),r.isActivated&&(r.isDragging=!0),r.isDragging){var l=r.updateCoordinateData(e);l!==void 0&&((a=(n=r.handler)===null||n===void 0?void 0:n.onDragMove)===null||a===void 0||a.call(n,e,l))}},this.handleMouseUp=function(e){var n,a,l,o;if(r.maybeAlterEventChain(e),r.handler!=null)if(r.isDragging){var f=r.updateCoordinateData(e);f!==void 0&&((a=(n=r.handler)===null||n===void 0?void 0:n.onDragMove)===null||a===void 0||a.call(n,e,f),(o=(l=r.handler)===null||l===void 0?void 0:l.onDragEnd)===null||o===void 0||o.call(l,e,f))}else r.isActivated&&(r.handler.onDoubleClick!=null?r.doubleClickTimeoutToken==null?r.doubleClickTimeoutToken=window.setTimeout(function(){var i,s;delete r.doubleClickTimeoutToken,(s=(i=r.handler)===null||i===void 0?void 0:i.onClick)===null||s===void 0||s.call(i,e)},t.DOUBLE_CLICK_TIMEOUT_MSEC):(window.clearTimeout(r.doubleClickTimeoutToken),delete r.doubleClickTimeoutToken,r.handler.onDoubleClick(e)):r.handler.onClick!=null&&r.handler.onClick(e));r.isActivated=!1,r.isDragging=!1,r.detachDocumentEventListeners()}}return t.isAdditive=function(r){return r.ctrlKey||r.metaKey},t.prototype.attach=function(r,e){return this.detach(),this.handler=e,this.element=r,this.isValidDragHandler(e)&&this.element.addEventListener("mousedown",this.handleMouseDown),this},t.prototype.detach=function(){this.element!=null&&(this.element.removeEventListener("mousedown",this.handleMouseDown),this.detachDocumentEventListeners())},t.prototype.isValidDragHandler=function(r){return r!=null&&(r.onActivate!=null||r.onDragMove!=null||r.onDragEnd!=null||r.onClick!=null||r.onDoubleClick!=null)},t.prototype.attachDocumentEventListeners=function(){document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp)},t.prototype.detachDocumentEventListeners=function(){document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp)},t.prototype.initCoordinateData=function(r){this.activationCoordinates=[r.clientX,r.clientY],this.lastCoordinates=this.activationCoordinates},t.prototype.updateCoordinateData=function(r){var e;if(this.activationCoordinates!==void 0){var n=[r.clientX,r.clientY],a=(e=this.lastCoordinates)!==null&&e!==void 0?e:[0,0],l=[n[0]-a[0],n[1]-a[1]],o=[n[0]-this.activationCoordinates[0],n[1]-this.activationCoordinates[1]],f={activation:this.activationCoordinates,current:n,delta:l,last:a,offset:o};return this.lastCoordinates=[r.clientX,r.clientY],f}},t.prototype.maybeAlterEventChain=function(r){var e,n;!((e=this.handler)===null||e===void 0)&&e.preventDefault&&r.preventDefault(),!((n=this.handler)===null||n===void 0)&&n.stopPropagation&&r.stopPropagation()},t.DOUBLE_CLICK_TIMEOUT_MSEC=500,t}(),fdt=["stopPropagation","preventDefault"],qW=function(t){xs(r,t);function r(){var e,n=t.apply(this,arguments)||this;return n.events=new jO,n.targetRef=(e=n.props.targetRef)!==null&&e!==void 0?e:St.createRef(),n}return r.prototype.render=function(){var e=St.Children.only(this.props.children);return this.props.targetRef!==void 0?e:St.cloneElement(e,{ref:this.targetRef})},r.prototype.componentDidUpdate=function(e){var n=!bv(e,this.props,{include:fdt});n&&R7(this.targetRef.current)&&this.events.attach(this.targetRef.current,this.props)},r.prototype.componentDidMount=function(){R7(this.targetRef.current)&&this.events.attach(this.targetRef.current,this.props)},r.prototype.componentWillUnmount=function(){var e;R7(this.targetRef.current)&&((e=this.events)===null||e===void 0||e.detach())},r.defaultProps={preventDefault:!0,stopPropagation:!1},r}(St.PureComponent);function R7(t){return t!=null&&t instanceof HTMLElement}var e1e=function(t){xs(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.displayName="".concat(Wo,".Column"),r.defaultProps={cellRenderer:CH},r}(St.PureComponent),hdt={copyCells:function(t){var r=t.map(function(e){return e.join(" ")}).join(`
|
5145
5145
|
`);return navigator.clipboard.writeText(r)},copyString:function(t){return navigator.clipboard.writeText(t)}},jm;(function(t){t.BATCH="batch",t.BATCH_ON_UPDATE="batch-on-update",t.NONE="none"})(jm||(jm={}));var cp="[Blueprint Table]",ddt=cp+" TableQuadrant onScroll need not be defined for any quadrant aside from the MAIN quadrant.",vdt=cp+" Table cannot expand a FULL_COLUMNS selection using a multi-column region.",gdt=cp+" Table cannot expand a FULL_COLUMNS selection using a multi-row region.",pdt=cp+' Children of Table must be Columns"',mdt=cp+" Table numFrozenColumns must be in less than or equal to the number of columns. Clamping the value for you.",ydt=cp+" Table requires numFrozenColumns to be greater than or equal to 0.",Adt=cp+" Table numFrozenRows must be less than or equal to numRows. Clamping the value for you.",Cdt=cp+" Table requires numFrozenRows to be greater than or equal to 0.",Idt=cp+" Table requires rowHeights.length to equal numRows when both props are provided.",bdt=cp+" Table requires numRows to be greater than or equal to 0.",xdt=cp+" Table requires columnWidths.length to equal the number of <Column>s if provided.",wdt="".concat(cp," Table resize method called while component is unmounted, this is a no-op."),Tdt="".concat(cp," cellRendererDependencies should either always be defined or undefined; this feature cannot be enabled during the component lifecycle"),_dt=cp+" Copy failed.",Sdt=function(){function t(r,e,n,a){this.target=r,this.selectedRegions=e,this.numRows=n,this.numCols=a,this.regions=So.overlapsRegion(e,r)?e:[r]}return t.prototype.getTarget=function(){return this.target},t.prototype.getSelectedRegions=function(){return this.selectedRegions},t.prototype.getRegions=function(){return this.regions},t.prototype.getUniqueCells=function(){return So.enumerateUniqueCells(this.regions,this.numRows,this.numCols)},t}(),Lx;(function(t){t[t.HORIZONTAL=1]="HORIZONTAL",t[t.VERTICAL=0]="VERTICAL"})(Lx||(Lx={}));var Edt=function(t){xs(r,t);function r(){var e=t!==null&&t.apply(this,arguments)||this;return e.state={isDragging:!1},e.handleActivate=function(n){return e.setState({isDragging:!0}),e.props.onLayoutLock(!0),n.stopPropagation(),n.stopImmediatePropagation(),!0},e.handleDragMove=function(n,a){var l=e.props.orientation;e.props.onResizeMove!=null&&e.props.onResizeMove(a.offset[l],a.delta[l])},e.handleDragEnd=function(n,a){var l=e.props.orientation;e.setState({isDragging:!1}),e.props.onLayoutLock(!1),e.props.onResizeMove!=null&&e.props.onResizeMove(a.offset[l],a.delta[l]),e.props.onResizeEnd!=null&&e.props.onResizeEnd(a.offset[l])},e.handleClick=function(n){e.setState({isDragging:!1}),e.props.onLayoutLock(!1)},e.handleDoubleClick=function(n){e.setState({isDragging:!1}),e.props.onLayoutLock(!1),e.props.onDoubleClick!=null&&e.props.onDoubleClick()},e}return r.prototype.render=function(){var e,n,a=this.props,l=a.onResizeMove,o=a.onResizeEnd,f=a.onDoubleClick,i=a.orientation;if(!(l==null&&o==null&&f==null)){var s=Di($ht,(e={},e[Ere]=this.state.isDragging,e[Uht]=i===Lx.HORIZONTAL,e[Ght]=i===Lx.VERTICAL,e),this.props.className),d=Di(Bht,(n={},n[Ere]=this.state.isDragging,n));return St.createElement(qW,{onActivate:this.handleActivate,onClick:this.handleClick,onDoubleClick:this.handleDoubleClick,onDragEnd:this.handleDragEnd,onDragMove:this.handleDragMove},St.createElement("div",{className:s},St.createElement("div",{className:d})))}},r}(St.PureComponent);function Nm(t){var r=t.enableFocusedCell,e=t.focusMode;return e??Mdt(r)}function Mdt(t){return t===void 0&&(t=!1),t?Il.CELL:void 0}function tL(t){var r=t.focusedRegion,e=t.focusedCell;return r??t1e(e)}function t1e(t){return t!=null?qn({type:Il.CELL},t):void 0}function r1e(t,r){if(t.length!==0)return r!=null?r.focusSelectionIndex:t.length-1}function IH(t,r,e,n){return n1e(t,Rdt(r,e,n))}function Rdt(t,r,e){var n;return(n=t??r)!==null&&n!==void 0?n:Pdt(e)}function Pdt(t){if(t.length===0)return{col:0,focusSelectionIndex:0,row:0,type:Il.CELL};var r=t.length-1;return qn(qn({},So.getFocusCellCoordinatesFromRegion(t[r])),{focusSelectionIndex:r,type:Il.CELL})}function n1e(t,r){if(t!=null){if(r.type===t)return r;if(r.type===Il.CELL&&t===Il.ROW)return{focusSelectionIndex:r.focusSelectionIndex,row:r.row,type:t};if(r.type===Il.ROW&&t===Il.CELL)return{col:0,focusSelectionIndex:r.focusSelectionIndex,row:r.row,type:t}}}function i1e(t,r){return t.rows!=null&&r.row===t.rows[0]}function a1e(t,r){return t.rows!=null&&r.row===t.rows[1]}function o1e(t,r){return t.cols!=null&&KT(r)===t.cols[0]}function s1e(t,r){return t.cols!=null&&KT(r)===t.cols[1]}function KT(t){switch(t.type){case Il.CELL:return t.col;case Il.ROW:return}}function TM(t,r,e){switch(e===void 0&&(e=0),t){case Il.CELL:return qn(qn({type:Il.CELL},r),{focusSelectionIndex:e});case Il.ROW:return{focusSelectionIndex:e,row:r.row,type:Il.ROW};case void 0:return}}function Ldt(t,r){switch(So.getRegionCardinality(r)){case to.FULL_COLUMNS:{var e=wP(t,r,"col","cols"),n=e[0],a=e[1];return So.column(n,a)}case to.FULL_ROWS:{var l=wP(t,r,"row","rows"),n=l[0],a=l[1];return So.row(n,a)}case to.CELLS:var o=wP(t,r,"row","rows"),f=o[0],i=o[1],s=wP(t,r,"col","cols"),d=s[0],u=s[1];return So.cell(f,d,i,u);default:return So.table()}}function wP(t,r,e,n){var a,l=e==="row"?t.row:(a=KT(t))!==null&&a!==void 0?a:0,o=r[n],f=o[0],i=o[1];if(f!==i){if(n==="rows")throw new Error(gdt);if(n==="cols")throw new Error(vdt)}return l<=f?[l,f]:[f,l]}function l1e(t,r){return t.type===Il.CELL&&r.type===Il.CELL?t.row===r.row&&t.col===r.col:t.type===Il.ROW&&r.type===Il.ROW?t.row===r.row:!1}const Odt=Object.freeze(Object.defineProperty({__proto__:null,areFocusedRegionsEqual:l1e,expandFocusedRegion:Ldt,getFocusModeFromProps:Nm,getFocusedCellFromCoordinates:t1e,getFocusedColumn:KT,getFocusedOrLastSelectedIndex:r1e,getFocusedRegionFromProps:tL,getInitialFocusedRegion:IH,isFocusAtRegionBottom:a1e,isFocusAtRegionLeft:o1e,isFocusAtRegionRight:s1e,isFocusAtRegionTop:i1e,toFocusedRegion:TM,validateFocusedRegion:n1e},Symbol.toStringTag,{value:"Module"}));function kdt(t){var r=t??(typeof navigator<"u"?navigator.platform:void 0);return r===void 0?!1:/Mac|iPod|iPhone|iPad/.test(r)}var u1e=function(t){xs(r,t);function r(){var e=t!==null&&t.apply(this,arguments)||this;return e.didExpandSelectionOnActivate=!1,e.lastEmittedSelectedRegions=null,e.handleActivate=function(n){var a=e.props,l=a.locateClick,o=a.selectedRegions,f=a.selectedRegionTransform;if(e.shouldIgnoreMouseDown(n))return!1;var i=l(n);if(!So.isValid(i))return!1;f!=null&&(i=f(i,n));var s=So.findMatchingRegion(o,i),d=s!==-1;return d&&jO.isAdditive(n)?(e.handleClearSelectionAtIndex(s),!1):(d?e.handleClearAllSelectionsNotAtIndex(s):e.shouldExpandSelection(n)?e.handleExpandSelection(i):e.shouldAddDisjointSelection(n)?e.handleAddDisjointSelection(i):e.handleReplaceSelection(i),!0)},e.handleDragMove=function(n,a){var l=e.props,o=l.enableMultipleSelection,f=l.locateClick,i=l.locateDrag,s=l.selectedRegions,d=l.selectedRegionTransform,u=o?i(n,a,e.didExpandSelectionOnActivate):f(n);if(!(u===void 0||!So.isValid(u))){d!=null&&(u=d(u,n,a));var h=e.didExpandSelectionOnActivate?e.expandSelectedRegions(s,u,e.getFocusedRegion()):So.update(s,u);if(e.maybeInvokeSelectionCallback(h),!o){var y=h.length-1,b=h[y];e.invokeOnFocusCallbackForRegion(b,y)}}},e.handleDragEnd=function(){e.finishInteraction()},e.handleClick=function(){e.finishInteraction()},e.shouldExpandSelection=function(n){var a=e.props.enableMultipleSelection;return a&&n.shiftKey},e.shouldAddDisjointSelection=function(n){var a=e.props.enableMultipleSelection;return a&&jO.isAdditive(n)},e.handleClearSelectionAtIndex=function(n){var a=e.props.selectedRegions,l=a.slice();if(l.splice(n,1),e.maybeInvokeSelectionCallback(l),l.length>0){var o=l.length-1;e.invokeOnFocusCallbackForRegion(l[o],o)}},e.handleClearAllSelectionsNotAtIndex=function(n){var a=e.props.selectedRegions,l=a[n];e.maybeInvokeSelectionCallback([l]),e.invokeOnFocusCallbackForRegion(l,0)},e.handleExpandSelection=function(n){var a=e.props.selectedRegions;e.didExpandSelectionOnActivate=!0;var l=e.expandSelectedRegions(a,n,e.getFocusedRegion());e.maybeInvokeSelectionCallback(l),(a==null||a.length===0)&&e.invokeOnFocusCallbackForRegion(n)},e.handleAddDisjointSelection=function(n){var a=e.props.selectedRegions,l=So.add(a,n);e.maybeInvokeSelectionCallback(l),e.invokeOnFocusCallbackForRegion(n,l.length-1)},e.handleReplaceSelection=function(n){var a=[n];e.maybeInvokeSelectionCallback(a),e.invokeOnFocusCallbackForRegion(n)},e.invokeOnFocusCallbackForRegion=function(n,a){a===void 0&&(a=0);var l=e.props,o=l.focusMode,f=l.onFocusedCell,i=l.onFocusedRegion,s=So.getFocusCellCoordinatesFromRegion(n),d=e.focusedCellUtils.toFocusedRegion(o,s,a);d!=null&&(i==null||i(d)),f==null||f(e.focusedCellUtils.toFocusedRegion(Il.CELL,s,a))},e.finishInteraction=function(){var n,a;(a=(n=e.props).onSelectionEnd)===null||a===void 0||a.call(n,e.props.selectedRegions),e.didExpandSelectionOnActivate=!1,e.lastEmittedSelectedRegions=null},e}return Object.defineProperty(r.prototype,"focusedCellUtils",{get:function(){return qn(qn({},Odt),this.props.focusedCellUtils)},enumerable:!1,configurable:!0}),r.prototype.render=function(){var e=this.getDraggableHandlers();return St.createElement(qW,qn({},e,{preventDefault:!1,targetRef:this.props.targetRef}),this.props.children)},r.prototype.getDraggableHandlers=function(){return this.props.onSelection==null?{}:{onActivate:this.handleActivate,onClick:this.handleClick,onDragEnd:this.handleDragEnd,onDragMove:this.handleDragMove}},r.prototype.shouldIgnoreMouseDown=function(e){var n=this.props,a=n.disabled,l=n.ignoredSelectors,o=l===void 0?[]:l,f=e.target,i=Gs.isLeftClick(e),s=i&&e.ctrlKey&&kdt(),d=typeof a=="function"?a(e):a;return!i||s||d||o.some(function(u){return f.closest(u)!=null})},r.prototype.maybeInvokeSelectionCallback=function(e){var n=this.props.onSelection;(this.lastEmittedSelectedRegions==null||!X0(this.lastEmittedSelectedRegions,e))&&(n(e),this.lastEmittedSelectedRegions=e)},r.prototype.expandSelectedRegions=function(e,n,a){if(e.length===0)return[n];if(a!=null){var l=this.focusedCellUtils.expandFocusedRegion(a,n);return So.update(e,l)}else{var l=So.expandRegion(e[e.length-1],n);return So.update(e,l)}},r.prototype.getFocusedRegion=function(){var e=this.props,n=e.focusedCell,a=e.focusedRegion;if(a!=null)return a;if(n!=null)return qn(qn({},n),{type:Il.CELL})},r.defaultProps={disabled:!1,enableMultipleSelection:!1,selectedRegions:[]},r.displayName="".concat(Wo,".DragSelectable"),r}(St.PureComponent),c1e=function(t){xs(r,t);function r(){var e=t!==null&&t.apply(this,arguments)||this;return e.state={isActive:!1},e}return r.prototype.shouldComponentUpdate=function(e){return!bv(this.props,e,{exclude:["style"]})||!X0(this.props,e,["style"])},r.prototype.render=function(){var e,n,a,l=Di(Vye,(e={},e[pht]=this.props.isActive||this.state.isActive,e[yht]=this.props.isSelected,e[VV]=this.props.loading,e),this.props.className),o=this.props.menuRenderer!==void 0;return St.createElement(wG,{className:l,content:(a=(n=this.props).menuRenderer)===null||a===void 0?void 0:a.call(n,this.props.index),disabled:!o,style:this.props.style,ref:this.props.targetRef},this.props.children)},r}(St.Component);function Ddt(){return St.createElement("div",{className:Aht})}var VO=function(t){xs(r,t);function r(){var e=t!==null&&t.apply(this,arguments)||this;return e.state={isActive:!1},e.handlePopoverOpened=function(){return e.setState({isActive:!0})},e.handlePopoverClosing=function(){return e.setState({isActive:!1})},e}return r.isHeaderMouseTarget=function(e){return e.classList.contains(Vye)||e.classList.contains(M7)||e.classList.contains(Pre)||e.classList.contains(Mre)},r.prototype.render=function(){var e,n=this.props,a=n.enableColumnInteractionBar,l=n.enableColumnReordering,o=n.isColumnSelected;n.menuIcon,n.name,n.nameRenderer;var f=Ps(n,["enableColumnInteractionBar","enableColumnReordering","isColumnSelected","menuIcon","name","nameRenderer"]),i=Di(f.className,fht,(e={},e[vht]=a,e[ght]=this.props.reorderHandle!=null,e));return St.createElement(c1e,qn({isReorderable:l,isSelected:o},f,{className:i}),this.renderName(),this.maybeRenderContent(),this.props.loading?void 0:this.props.resizeHandle)},r.prototype.renderName=function(){var e,n=this.props,a=n.enableColumnInteractionBar,l=n.index,o=n.loading,f=n.name,i=n.nameRenderer,s=n.reorderHandle,d=this.maybeRenderDropdownMenu(),u=St.createElement("div",{className:YW},f),h=St.createElement(KW,{loading:o??!1,variableLength:!0},(e=i==null?void 0:i(f,l))!==null&&e!==void 0?e:u);return a?St.createElement("div",{className:M7,title:f},St.createElement("div",{className:Pre},s,d),St.createElement(Ddt,null),St.createElement("div",{className:Sre},h)):St.createElement("div",{className:M7,title:f},s,d,St.createElement("div",{className:Sre},h))},r.prototype.maybeRenderContent=function(){if(this.props.children!==null)return St.createElement("div",{className:Mre},this.props.children)},r.prototype.maybeRenderDropdownMenu=function(){var e,n=this.props,a=n.index,l=n.menuIcon,o=n.menuPopoverProps,f=n.menuRenderer,i=n.selectCellsOnMenuClick;if(nd(f)){var s=Di(Zye,QW,(e={},e[qht]=this.state.isActive,e[Yye]=i,e));return St.createElement("div",{className:s},St.createElement("div",{className:Jht}),St.createElement(Gx,qn({className:Di(Qht,o==null?void 0:o.className),content:f(a),onClosing:this.handlePopoverClosing,onOpened:this.handlePopoverOpened,placement:"bottom",rootBoundary:"document"},o),St.createElement(fl,{icon:l})))}},r.displayName="".concat(Wo,".ColumnHeaderCell"),r.defaultProps={enableColumnInteractionBar:!1,isActive:!1,menuIcon:"chevron-down",selectCellsOnMenuClick:!0},r}(xc),f1e=function(t){xs(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.render=function(){var e,n,a=this.props;a.enableRowReordering,a.isRowSelected;var l=a.name,o=a.nameRenderer,f=Ps(a,["enableRowReordering","isRowSelected","name","nameRenderer"]),i=St.createElement("div",{className:Xht},l),s=St.createElement(KW,{loading:(e=f.loading)!==null&&e!==void 0?e:!1},(n=o==null?void 0:o(l,f.index))!==null&&n!==void 0?n:i);return St.createElement(c1e,qn({isReorderable:this.props.enableRowReordering,isSelected:this.props.isRowSelected},f),St.createElement("div",{className:Yht},s),this.props.children,f.loading?void 0:f.resizeHandle)},r}(xc),Ndt=function(t){return Object.prototype.hasOwnProperty.call(t,"props")},Fdt=function(t,r){return t+v5(r)},v5=function(t){return t===null||typeof t=="boolean"||typeof t>"u"?"":typeof t=="number"?t.toString():typeof t=="string"?t:Array.isArray(t)?t.reduce(Fdt,""):Ndt(t)&&Object.prototype.hasOwnProperty.call(t.props,"children")?v5(t.props.children):""};v5.default=v5;var zdt=v5;const Bdt=ny(zdt);function $dt(t,r,e,n,a,l,o){l===void 0&&(l=0),o===void 0&&(o=0);var f=So.getRegionCardinality(t),i=e,s=r,d=n(o),u=a(l);switch(f){case to.CELLS:{var h=a(t.rows[0]),y=n(t.cols[0]);i=TP(h,u),s=TP(y,d);break}case to.FULL_ROWS:{var h=a(t.rows[0]);i=TP(h,u);break}case to.FULL_COLUMNS:{var y=n(t.cols[0]);s=TP(y,d);break}default:{i=0,s=0;break}}return{scrollLeft:s,scrollTop:i}}function P7(t,r){return t==null?0:r==="horizontal"?t.offsetHeight-t.clientHeight:t.offsetWidth-t.clientWidth}function TP(t,r){return Math.max(t-r,0)}var Udt=function(t){xs(r,t);function r(){var e=t!==null&&t.apply(this,arguments)||this;return e.selectedRegionLength=0,e.handleActivate=function(n){if(e.shouldIgnoreMouseDown(n))return!1;var a=e.props.locateClick(n);if(!So.isValid(a))return!1;var l=So.getRegionCardinality(a),o=l===to.FULL_COLUMNS,f=l===to.FULL_ROWS;if(!o&&!f)return!1;var i=e.props.selectedRegions,s=i===void 0?[]:i,d=So.findContainingRegion(s,a);if(d>=0){var u=s[d];if(So.getRegionCardinality(u)!==l)return!1;var h=f?u.rows:u.cols;e.selectedRegionStartIndex=h[0],e.selectedRegionLength=h[1]-h[0]+1}else{e.maybeSelectRegion(a);var y=f?a.rows:a.cols;e.selectedRegionStartIndex=y[0],e.selectedRegionLength=y[1]-y[0]+1}return!0},e.handleDragMove=function(n,a){var l=e.selectedRegionStartIndex,o=e.props.locateDrag(n,a);if(!(l===void 0||o===void 0)){var f=e.selectedRegionLength,i=Gs.guideIndexToReorderedIndex(l,o,f);e.props.onReordering(l,i,f)}},e.handleDragEnd=function(n,a){var l=e.selectedRegionStartIndex,o=e.props.locateDrag(n,a);if(!(l===void 0||o===void 0)){var f=e.selectedRegionLength,i=Gs.guideIndexToReorderedIndex(l,o,f);e.props.onReordered(l,i,f);var s=e.props.toRegion(i,i+f-1);e.maybeSelectRegion(s),e.selectedRegionStartIndex=void 0,e.selectedRegionLength=0}},e}return r.prototype.render=function(){var e=this.getDraggableHandlers();return St.createElement(qW,qn({},e,{preventDefault:!1,targetRef:this.props.targetRef}),this.props.children)},r.prototype.getDraggableHandlers=function(){return this.props.onReordered==null?{}:{onActivate:this.handleActivate,onDragEnd:this.handleDragEnd,onDragMove:this.handleDragMove}},r.prototype.shouldIgnoreMouseDown=function(e){var n=this.props.disabled,a=nd(n)?n==null?void 0:n(e):n;return!Gs.isLeftClick(e)||a},r.prototype.maybeSelectRegion=function(e){var n=[e];if(!X0(n,this.props.selectedRegions)){this.props.onSelection(n);var a=So.getFocusCellCoordinatesFromRegion(e),l=TM(this.props.focusMode,a);l!=null&&this.props.onFocusedRegion(l)}},r.defaultProps={selectedRegions:[]},r}(St.PureComponent),Hdt=function(t){xs(r,t);function r(){var e=t!==null&&t.apply(this,arguments)||this;return e.state=r.getDerivedStateFromProps(e.props,null),e.onResizeMove=function(n,a){var l,o;e.offsetSize(a),(o=(l=e.props).onSizeChanged)===null||o===void 0||o.call(l,e.state.size)},e.onResizeEnd=function(n){var a,l;e.setState({unclampedSize:e.state.size}),(l=(a=e.props).onResizeEnd)===null||l===void 0||l.call(a,e.state.size)},e}return r.getDerivedStateFromProps=function(e,n){var a=e.size;return n==null?{size:a,unclampedSize:a}:null},r.prototype.componentDidUpdate=function(e){e.size!==this.props.size&&this.setState(r.getDerivedStateFromProps(this.props,null))},r.prototype.render=function(){var e=St.Children.only(this.props.children),n=qn(qn({},e.props.style),this.getStyle());if(this.props.isResizable===!1)return St.cloneElement(e,{style:n});var a=this.renderResizeHandle();return St.cloneElement(e,{resizeHandle:a,style:n})},r.prototype.renderResizeHandle=function(){var e=this.props,n=e.onLayoutLock,a=e.onDoubleClick,l=e.orientation;return St.createElement(Edt,{key:"resize-handle",onDoubleClick:a,onLayoutLock:n,onResizeEnd:this.onResizeEnd,onResizeMove:this.onResizeMove,orientation:l})},r.prototype.getStyle=function(){return this.props.orientation===Lx.VERTICAL?{flexBasis:"".concat(this.state.size,"px"),minWidth:"0px",width:"".concat(this.state.size,"px")}:{flexBasis:"".concat(this.state.size,"px"),height:"".concat(this.state.size,"px"),minHeight:"0px"}},r.prototype.offsetSize=function(e){var n=this.state.unclampedSize+e;this.setState({size:Gs.clamp(n,this.props.minSize,this.props.maxSize),unclampedSize:n})},r.defaultProps={isResizable:!0,minSize:0},r}(xc),Hre=["focusedRegion","selectedRegions"],h1e=function(t){xs(r,t);function r(e){var n=t.call(this,e)||this;return n.activationIndex=null,n.cellRefs=new Map,n.reorderHandleRefs=new Map,n.convertEventToIndex=function(a){var l=n.props.getMouseCoordinate(a);return n.props.convertPointToIndex(l)},n.locateClick=function(a){var l=a.target.closest(".".concat(Zye));return l&&!l.classList.contains(Yye)?n.props.toRegion(-1):(n.activationIndex=n.convertEventToIndex(a),n.props.toRegion(n.activationIndex))},n.locateDragForSelection=function(a,l,o){o===void 0&&(o=!1);var f=n.props.getDragCoordinate(l.current),i=n.props.convertPointToIndex(f);return o?n.props.toRegion(i):n.activationIndex!==null?n.props.toRegion(n.activationIndex,i):{}},n.locateDragForReordering=function(a,l){var o=n.props.getDragCoordinate(l.current),f=n.props.convertPointToIndex(o,!0);return f<0?void 0:f},n.renderCells=function(){for(var a=n.props,l=a.indexStart,o=a.indexEnd,f=[],i=l;i<=o;i++){var s=n.renderNewCell(i);s!=null&&f.push(s)}return f},n.renderNewCell=function(a){var l=n.props.getCellExtremaClasses(a,n.props.indexEnd),o=n.props.isGhostIndex(a)?n.props.ghostCellRenderer:n.renderCell;return o(a,l)},n.renderCell=function(a,l){var o,f,i=n.props,s=i.getIndexClass,d=i.selectedRegions,u=n.props.headerCellRenderer(a);if(u==null)return null;var h=u.props.loading!=null?u.props.loading:n.props.loading,y=n.props.isCellSelected(a),b=n.isEntireCellTargetReorderable(a),C=Di(l,(o={},o[mht]=b,o),n.props.getCellIndexClass(a),u.props.className),m=jre(n.cellRefs,a),c=(f={className:C,index:a},f[n.props.headerCellIsSelectedPropName]=y,f[n.props.headerCellIsReorderablePropName]=b,f.loading=h,f.reorderHandle=n.maybeRenderReorderHandle(a),f.targetRef=m,f),v=function(A){return n.props.handleSizeChanged(a,A)},g=function(A){return n.props.handleResizeEnd(a,A)},p=function(){var A,_;return(_=(A=n.props).handleResizeDoubleClick)===null||_===void 0?void 0:_.call(A,a)},I=St.createElement(u1e,{enableMultipleSelection:n.props.enableMultipleSelection,disabled:n.isDragSelectableDisabled,focusedRegion:n.props.focusedRegion,focusMode:n.props.focusMode,ignoredSelectors:[".".concat(kre)],key:s(a),locateClick:n.locateClick,locateDrag:n.locateDragForSelection,onFocusedRegion:n.props.onFocusedRegion,onSelection:n.handleDragSelectableSelection,onSelectionEnd:n.handleDragSelectableSelectionEnd,selectedRegions:d,selectedRegionTransform:n.props.selectedRegionTransform,targetRef:m},St.createElement(Hdt,{isResizable:n.props.isResizable,maxSize:n.props.maxSize,minSize:n.props.minSize,onDoubleClick:p,onLayoutLock:n.props.onLayoutLock,onResizeEnd:g,onSizeChanged:v,orientation:n.props.resizeOrientation,size:n.props.getCellSize(a)},St.cloneElement(u,c)));return n.isReorderHandleEnabled()?I:n.wrapInDragReorderable(a,I,n.isDragReorderableDisabled,m)},n.handleDragSelectableSelection=function(a){n.props.onSelection(a),n.setState({hasValidSelection:!1})},n.handleDragSelectableSelectionEnd=function(){n.activationIndex=null,n.setState({hasValidSelection:!0})},n.isDragSelectableDisabled=function(a){if(jO.isAdditive(a))return!1;var l=n.convertEventToIndex(a);return n.isEntireCellTargetReorderable(l)},n.isDragReorderableDisabled=function(a){var l=!n.isDragSelectableDisabled(a);if(l)return!0;var o=n.convertEventToIndex(a);return!n.isEntireCellTargetReorderable(o)},n.isEntireCellTargetReorderable=function(a){var l=n.props,o=l.isReorderable,f=o===void 0?!1:o,i=l.selectedRegions;return f&&n.props.isCellSelected(a)&&n.state.hasValidSelection&&So.getRegionCardinality(i[0])===n.props.fullRegionCardinality&&i.length===1&&!n.isReorderHandleEnabled()},n.state={hasValidSelection:n.isSelectedRegionsControlledAndNonEmpty(e)},n}return r.prototype.componentDidUpdate=function(e,n){var a=this.isSelectedRegionsControlledAndNonEmpty(this.props);n.hasValidSelection!==a&&this.setState({hasValidSelection:a})},r.prototype.shouldComponentUpdate=function(e,n){return!bv(this.state,n)||!bv(this.props,e,{exclude:Hre})||!X0(this.props,e,Hre)},r.prototype.render=function(){return this.props.wrapCells(this.renderCells())},r.prototype.isSelectedRegionsControlledAndNonEmpty=function(e){return e===void 0&&(e=this.props),e.selectedRegions!=null&&e.selectedRegions.length>0},r.prototype.isReorderHandleEnabled=function(){return this.isColumnHeader()&&this.props.isReorderable},r.prototype.maybeRenderReorderHandle=function(e){var n=jre(this.reorderHandleRefs,e);return this.isReorderHandleEnabled()?this.wrapInDragReorderable(e,St.createElement("div",{className:kre,ref:n},St.createElement("div",{className:Di(Nht,QW)},St.createElement(rG,{title:"Press down to drag"}))),!1,n):void 0},r.prototype.isColumnHeader=function(){return this.props.fullRegionCardinality===to.FULL_COLUMNS},r.prototype.wrapInDragReorderable=function(e,n,a,l){return St.createElement(Udt,{disabled:a,focusMode:this.props.focusMode,key:this.props.getIndexClass(e),locateClick:this.locateClick,locateDrag:this.locateDragForReordering,onReordered:this.props.onReordered,onReordering:this.props.onReordering,onSelection:this.props.onSelection,onFocusedRegion:this.props.onFocusedRegion,selectedRegions:this.props.selectedRegions,targetRef:l,toRegion:this.props.toRegion},n)},r}(St.Component);function jre(t,r){if(t.has(r))return t.get(r);var e=St.createRef();return t.set(r,e),e}var jdt=function(t){xs(r,t);function r(){var e=t!==null&&t.apply(this,arguments)||this;return e.wrapCells=function(n){var a=e.props,l=a.columnIndexStart,o=a.grid,f=o.getRect().width,i=e.props.grid.getCumulativeWidthBefore(l),s={transform:"translateX(".concat(i||0,"px)"),width:f-i},d=Di(edt,uht);return St.createElement("div",{style:{width:f}},St.createElement("div",{style:s,className:d,ref:e.props.measurableElementRef},n))},e.convertPointToColumn=function(n,a){return e.props.locator.convertPointToColumn(n,a)},e.getCellExtremaClasses=function(n,a){return e.props.grid.getExtremaClasses(0,n,1,a)},e.getColumnWidth=function(n){return e.props.grid.getColumnRect(n).width},e.getDragCoordinate=function(n){return n[0]},e.getMouseCoordinate=function(n){return n.clientX},e.handleResizeEnd=function(n,a){e.props.onResizeGuide(null),e.props.onColumnWidthChanged(n,a)},e.handleResizeDoubleClick=function(n){var a=e.props,l=a.minColumnWidth,o=a.maxColumnWidth,f=e.props.locator.getWidestVisibleCellInColumn(n),i=Gs.clamp(f,l,o);e.props.onResizeGuide(null),e.props.onColumnWidthChanged(n,i)},e.handleSizeChanged=function(n,a){var l=e.props.grid.getColumnRect(n);e.props.onResizeGuide([l.left+a])},e.isCellSelected=function(n){return So.hasFullColumn(e.props.selectedRegions,n)},e.isGhostIndex=function(n){return e.props.grid.isGhostIndex(-1,n)},e.renderGhostCell=function(n,a){var l=e.props,o=l.grid,f=l.loading,i=o.getGhostCellRect(0,n),s={flexBasis:"".concat(i.width,"px"),width:"".concat(i.width,"px")};return St.createElement(VO,{className:Di(a),index:n,key:Fre(n),loading:f,style:s})},e.toRegion=function(n,a){return So.column(n,a)},e}return r.prototype.componentDidMount=function(){var e,n;(n=(e=this.props).onMount)===null||n===void 0||n.call(e,"column")},r.prototype.render=function(){var e=this.props,n=e.cellRenderer;e.onColumnWidthChanged;var a=e.minColumnWidth,l=e.maxColumnWidth;e.defaultColumnWidth;var o=e.columnIndexStart,f=e.columnIndexEnd,i=Ps(e,["cellRenderer","onColumnWidthChanged","minColumnWidth","maxColumnWidth","defaultColumnWidth","columnIndexStart","columnIndexEnd"]);return St.createElement(h1e,qn({convertPointToIndex:this.convertPointToColumn,fullRegionCardinality:to.FULL_COLUMNS,getCellExtremaClasses:this.getCellExtremaClasses,getCellIndexClass:XW,getCellSize:this.getColumnWidth,getDragCoordinate:this.getDragCoordinate,getIndexClass:Fre,getMouseCoordinate:this.getMouseCoordinate,ghostCellRenderer:this.renderGhostCell,handleResizeDoubleClick:this.handleResizeDoubleClick,handleResizeEnd:this.handleResizeEnd,handleSizeChanged:this.handleSizeChanged,headerCellIsReorderablePropName:"enableColumnReordering",headerCellIsSelectedPropName:"isColumnSelected",headerCellRenderer:n,indexEnd:f,indexStart:o,isCellSelected:this.isCellSelected,isGhostIndex:this.isGhostIndex,maxSize:l,minSize:a,resizeOrientation:Lx.VERTICAL,selectedRegions:[],toRegion:this.toRegion,wrapCells:this.wrapCells},i))},r.defaultProps={isReorderable:!1,isResizable:!0,loading:!1},r}(St.Component),Vdt=function(t){xs(r,t);function r(){var e=t!==null&&t.apply(this,arguments)||this;return e.wrapCells=function(n){var a=e.props,l=a.rowIndexStart,o=a.grid,f=o.getRect().height,i=e.props.grid.getCumulativeHeightBefore(l),s={height:f-i,transform:"translateY(".concat(i||0,"px)")};return St.createElement("div",{style:{height:f}},St.createElement("div",{className:Zht,style:s},n))},e.convertPointToRow=function(n,a){var l;return(l=e.props.locator)===null||l===void 0?void 0:l.convertPointToRow(n,a)},e.getCellExtremaClasses=function(n,a){return e.props.grid.getExtremaClasses(n,0,a,1)},e.getRowHeight=function(n){return e.props.grid.getRowRect(n).height},e.getDragCoordinate=function(n){return n[1]},e.getMouseCoordinate=function(n){return n.clientY},e.handleResizeEnd=function(n,a){e.props.onResizeGuide(null),e.props.onRowHeightChanged(n,a)},e.handleSizeChanged=function(n,a){var l=e.props.grid.getRowRect(n);e.props.onResizeGuide([l.top+a])},e.isCellSelected=function(n){return So.hasFullRow(e.props.selectedRegions,n)},e.isGhostIndex=function(n){return e.props.grid.isGhostIndex(n,-1)},e.renderGhostCell=function(n,a){var l=e.props.grid.getGhostCellRect(n,0);return St.createElement(f1e,{className:Di(a),index:n,key:zre(n),loading:e.props.loading,style:{height:"".concat(l.height,"px")}})},e.toRegion=function(n,a){return So.row(n,a)},e}return r.prototype.componentDidMount=function(){var e,n;(n=(e=this.props).onMount)===null||n===void 0||n.call(e,"row")},r.prototype.render=function(){var e=this.props;e.onRowHeightChanged;var n=e.rowHeaderCellRenderer,a=e.minRowHeight,l=e.maxRowHeight;e.defaultRowHeight;var o=e.rowIndexStart,f=e.rowIndexEnd,i=Ps(e,["onRowHeightChanged","rowHeaderCellRenderer","minRowHeight","maxRowHeight","defaultRowHeight","rowIndexStart","rowIndexEnd"]);return St.createElement(h1e,qn({convertPointToIndex:this.convertPointToRow,fullRegionCardinality:to.FULL_ROWS,getCellExtremaClasses:this.getCellExtremaClasses,getCellIndexClass:Qye,getCellSize:this.getRowHeight,getDragCoordinate:this.getDragCoordinate,getIndexClass:zre,getMouseCoordinate:this.getMouseCoordinate,ghostCellRenderer:this.renderGhostCell,handleResizeEnd:this.handleResizeEnd,handleSizeChanged:this.handleSizeChanged,headerCellIsReorderablePropName:"enableRowReordering",headerCellIsSelectedPropName:"isRowSelected",headerCellRenderer:n,indexEnd:f,indexStart:o,isCellSelected:this.isCellSelected,isGhostIndex:this.isGhostIndex,maxSize:l,minSize:a,resizeOrientation:Lx.HORIZONTAL,selectedRegions:[],toRegion:this.toRegion,wrapCells:this.wrapCells},i))},r.defaultProps={rowHeaderCellRenderer:d1e},r}(St.Component);function d1e(t){return St.createElement(f1e,{index:t,name:"".concat(t+1)})}var Gdt=function(){function t(){}return t.attach=function(r,e){var n=t.debounce(e),a=document.createElement("div");a.className=Hht,a.style.cssText=t.RESIZE_SENSOR_STYLE,a.innerHTML=t.RESIZE_SENSOR_HTML,r.appendChild(a),getComputedStyle(r,null).getPropertyValue("position")==="static"&&(r.style.position="relative");var l=a.childNodes[0],o=l.childNodes[0],f=a.childNodes[1],i=function(){o.style.width="100000px",o.style.height="100000px",l.scrollLeft=1e5,l.scrollTop=1e5,f.scrollLeft=1e5,f.scrollTop=1e5};i();var s,d,u=function(){if(r!=null){var h=r.offsetWidth,y=r.offsetHeight;(h!==s||y!==d)&&(s=h,d=y,n.trigger()),i()}};return l.addEventListener("scroll",u),f.addEventListener("scroll",u),function(){r.removeChild(a),n.cancelled=!0}},t.debounce=function(r){var e={cancelled:!1,trigger:function(){e.triggered||e.cancelled||(e.triggered=!0,requestAnimationFrame(function(){e.triggered=!1,e.cancelled||r()}))},triggered:!1};return e},t.RESIZE_SENSOR_STYLE="position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden;",t.RESIZE_SENSOR_HTML='<div class="'.concat(jht,`"
|
5146
5146
|
style="`).concat(t.RESIZE_SENSOR_STYLE,`"><div style="position: absolute; left: 0; top: 0; transition: 0s;"
|
5147
5147
|
></div></div><div class="`).concat(Vht,'" style="').concat(t.RESIZE_SENSOR_STYLE,`"
|