@deephaven/embed-chart 0.47.0 → 0.47.1-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/assets/{App-c6dba825.js → App-b726b424.js} +2 -2
- package/build/assets/{App-c6dba825.js.map → App-b726b424.js.map} +1 -1
- package/build/assets/{index-32a98225.js → index-56720879.js} +2 -2
- package/build/assets/{index-32a98225.js.map → index-56720879.js.map} +1 -1
- package/build/assets/index-a9b64aac.js +9 -0
- package/build/assets/index-a9b64aac.js.map +1 -0
- package/build/assets/{plotly-be286d51.js → plotly-416911dc.js} +2 -2
- package/build/assets/{plotly-be286d51.js.map → plotly-416911dc.js.map} +1 -1
- package/build/assets/useConnection-a2eee2d2.js +2 -0
- package/build/assets/useConnection-a2eee2d2.js.map +1 -0
- package/build/assets/{vendor-7c2b7fca.js → vendor-b4933991.js} +40 -40
- package/build/assets/vendor-b4933991.js.map +1 -0
- package/build/assets/vendor-e75c4614.css +1 -0
- package/build/index.html +3 -3
- package/package.json +13 -13
- package/build/assets/index-b2a9d843.js +0 -9
- package/build/assets/index-b2a9d843.js.map +0 -1
- package/build/assets/useConnection-55561cb7.js +0 -2
- package/build/assets/useConnection-55561cb7.js.map +0 -1
- package/build/assets/vendor-458ea229.css +0 -1
- package/build/assets/vendor-7c2b7fca.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as m,R as I,C as i,D as w,E as y,F as N,G as R}from"./vendor-7c2b7fca.js";import"./helpers-042e6b4d.js";(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const a of s.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(o){if(o.ep)return;o.ep=!0;const s=r(o);fetch(o.href,s)}})();const B="modulepreload",G=function(t,e){return new URL(t,e).href},P={},z=function(e,r,n){if(!r||r.length===0)return e();const o=document.getElementsByTagName("link");return Promise.all(r.map(s=>{if(s=G(s,n),s in P)return;P[s]=!0;const a=s.endsWith(".css"),d=a?'[rel="stylesheet"]':"";if(!!n)for(let l=o.length-1;l>=0;l--){const v=o[l];if(v.href===s&&(!a||v.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${d}`))return;const c=document.createElement("link");if(c.rel=a?"stylesheet":B,a||(c.as="script",c.crossOrigin=""),c.href=s,document.head.appendChild(c),a)return new Promise((l,v)=>{c.addEventListener("load",l),c.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${s}`)))})})).then(()=>e())};const F="#1a171a",K="#f0f0ee",W="#fcd65b",q="#9edc6f",J="#76d9e4",Q="#aa9af4",X="#f37e3f",Y="#f95d84",Z="#4878ea",ee="#5b5a5c",te="#9edc6f",re="#fcd65b",ne="#f37e3f",se="#f95d84",oe="#fcfcfa",ie="#929192",ae="#373438",le="#1a171a",ce="#f0f0ee",de="0.15s",ue={"gray-100":"#fcfcfa","gray-200":"#f0f0ee","gray-300":"#c0bfbf","gray-400":"#929192","gray-500":"#5b5a5c","gray-600":"#555356","gray-700":"#403e41","gray-800":"#373438","gray-850":"#322f33","gray-900":"#211f22",black:F,white:K,yellow:W,green:q,blue:J,purple:Q,orange:X,red:Y,primary:Z,"primary-hover":"#235de6","primary-dark":"#343e5d",secondary:ee,success:te,info:re,warning:ne,danger:se,light:oe,mid:ie,dark:ae,"text-muted":"#929192","content-bg":"#2d2a2e",background:le,foreground:ce,transition:de};function M(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function H(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?M(Object(r),!0).forEach(function(n){fe(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):M(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function fe(t,e,r){return e=me(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function me(t){var e=he(t,"string");return typeof e=="symbol"?e:String(e)}function he(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var ve={transitionMs:150,transitionMidMs:200,transitionLongMs:300,transitionSlowMs:1e3};const j=Object.freeze(H(H({},ve),ue));var pe=-1,k=0,T=1,E=2,C=3,D=4;const $e=Object.freeze({SILENT:pe,ERROR:k,WARN:T,INFO:E,DEBUG:C,DEBUG2:D});function p(t,e,r){return e=ge(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ge(t){var e=ye(t,"string");return typeof e=="symbol"?e:String(e)}function ye(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var h=()=>{};class be{constructor(e,r){p(this,"name",void 0),p(this,"prefix",void 0),p(this,"level",void 0),p(this,"error",void 0),p(this,"warn",void 0),p(this,"log",void 0),p(this,"info",void 0),p(this,"debug",void 0),p(this,"debug2",void 0),this.name=e,this.prefix=e!=null?"[".concat(e,"]"):"",this.error=h,this.warn=h,this.log=h,this.info=h,this.debug=h,this.debug2=h,this.level=r,this.setLogLevel(r)}setLogLevel(e){if(!Number.isFinite(e)){console.warn("Expected a number for log level. Received: ".concat(e,". Ignoring"));return}this.level=e,this.error=e>=k?console.error.bind(console,this.prefix):h,this.warn=e>=T?console.warn.bind(console,this.prefix):h,this.log=e>=E?console.log.bind(console,this.prefix):h,this.info=this.log,this.debug=e>=C?console.debug.bind(console,this.prefix):h,this.debug2=e>=D?console.debug.bind(console,this.prefix):h}}const S=be;function xe(t,e,r){return e=Le(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Le(t){var e=we(t,"string");return typeof e=="symbol"?e:String(e)}function we(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class Ne extends S{constructor(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:E;super(null,e),xe(this,"modules",void 0),this.modules={}}module(e){return this.modules[e]==null&&(this.modules[e]=new S(e,this.level)),this.modules[e]}setLogLevel(e){if(super.setLogLevel(e),this.modules!=null)for(var r=Object.keys(this.modules),n=0;n<r.length;n+=1)this.modules[r[n]].setLogLevel(e)}}const je=Ne;var ze=new je;const Ee=ze;function Ae(t){var{className:e="theme-bg-light",children:r,role:n="role",keyboard:o=!0,isOpen:s=!1,centered:a=!1,size:d,onOpened:u,onClosed:c,toggle:l,"data-testid":v}=t,f=m.useRef(),b=m.useRef(null),[$,A]=m.useState(!1),x=m.useCallback(g=>{switch(g.key){case"Escape":l==null||l();break}},[l]);m.useEffect(function(){if(s&&o)return window.addEventListener("keydown",x),()=>window.removeEventListener("keydown",x)},[x,s,o]),m.useEffect(function(){s&&u&&u()},[u,s]),m.useEffect(function(){!s&&c&&c()},[c,s]),s&&!f.current&&(f.current=document.createElement("div"),f.current.setAttribute("style","padding-right: 15px; display: block"),f.current.setAttribute("role","presentation"),document.body.appendChild(f.current));var O=()=>{f.current&&(document.body.removeChild(f.current),f.current=void 0)};return f.current?I.createPortal(i.jsxs(i.Fragment,{children:[i.jsx(w,{appear:!0,mountOnEnter:!0,unmountOnExit:!0,in:s,classNames:{appearActive:"show",appearDone:"show"},timeout:j.transitionMs,onExited:O,children:i.jsx("div",{className:y("modal-backdrop fade"),style:{zIndex:1050}})}),i.jsx(w,{appear:!0,mountOnEnter:!0,unmountOnExit:!0,in:s,classNames:{appearDone:"show"},timeout:j.transitionMs,onExited:O,children:i.jsx("div",{ref:b,className:"modal fade",onMouseDown:g=>{g.target===b.current?A(!0):A(!1)},onMouseUp:g=>{$&&g.target===b.current&&l!==void 0&&l()},role:"dialog",style:{display:"block"},children:i.jsx("div",{className:y("modal-dialog ".concat(e),{"modal-lg":d==="lg","modal-sm":d==="sm","modal-xl":d==="xl","modal-dialog-centered":a}),style:{zIndex:1040},children:i.jsx("div",{className:"modal-content",role:"presentation","data-testid":v,children:r})})})})]}),f.current):null}function Oe(t){var{className:e="modal-body",style:r,children:n,"data-testid":o}=t;return i.jsx("div",{className:e,"data-testid":o,style:r,children:n})}function Pe(t){var{className:e,children:r,closeButton:n=!0,style:o,toggle:s,"data-testid":a}=t;return i.jsxs("div",{className:"modal-header ".concat(e),style:o,children:[i.jsx("h5",{className:"modal-title",children:r}),n&&i.jsx("button",{type:"button",className:"close","data-dismiss":"modal","aria-label":"Close",onClick:s,children:i.jsx("span",{"aria-hidden":"true",children:"×"})})]})}const Be={prefix:"vs",iconName:"add",icon:[512,512,[],"f000","M448 224v32H256v192H224V256H32V224h192V32h32v192h192z"]},Ge={prefix:"vs",iconName:"check",icon:[512,512,[],"f000","m461.792 106.336 -271.04 320 -25.28 -1.152 -107.2 -152.64 26.176 -18.368 95.296 135.68 257.632 -304.192 24.448 20.672z"]},Fe={prefix:"vs",iconName:"chevron-left",icon:[512,512,[],"f000","m189.696 255.232 139.424 139.424 -19.776 19.84L160 265.088v-19.776L309.344 96l19.776 19.808 -139.424 139.424z"]},Ke={prefix:"vs",iconName:"chevron-right",icon:[512,512,[],"f000","M322.304 256.768 182.88 117.344l19.776 -19.84L352 246.912v19.776L202.656 416l-19.776 -19.808 139.424 -139.424z"]},Me={prefix:"vs",iconName:"circle-large",icon:[512,512,[],"f000","M306.816 70.88A185.856 185.856 0 0 0 256 64c-17.728 0 -34.624 2.336 -50.816 6.88l-0.192 0.064c-16.448 4.512 -31.68 10.944 -45.824 19.232A196.992 196.992 0 0 0 90.24 159.36l-0.064 0.128A190.944 190.944 0 0 0 70.72 205.12 191.552 191.552 0 0 0 64 256c0 17.76 2.24 34.72 6.72 50.912a193.6 193.6 0 0 0 49.536 84.832c11.84 11.68 24.768 21.664 38.912 30.08a195.2 195.2 0 0 0 45.92 19.488A192.64 192.64 0 0 0 256 448c17.76 0 34.72 -2.24 50.912 -6.72 16.48 -4.64 31.68 -11.136 45.632 -19.424l0.128 -0.064a197.12 197.12 0 0 0 69.152 -68.96 187.2 187.2 0 0 0 19.2 -45.824l0.096 -0.192A185.824 185.824 0 0 0 448 256c0 -17.728 -2.304 -34.624 -6.88 -50.816l-0.064 -0.192a184.704 184.704 0 0 0 -19.2 -45.536l-0.064 -0.128a188.8 188.8 0 0 0 -30.144 -38.72l-0.256 -0.256a188.864 188.864 0 0 0 -38.72 -30.144l-0.128 -0.064a184.704 184.704 0 0 0 -45.536 -19.2l-0.192 -0.064zm142.56 298.24a229.024 229.024 0 0 1 -80.512 80.256 222.912 222.912 0 0 1 -53.376 22.72A223.488 223.488 0 0 1 256 480a223.488 223.488 0 0 1 -59.52 -7.872 227.136 227.136 0 0 1 -53.568 -22.752 233.6 233.6 0 0 1 -45.28 -35.008 233.44 233.44 0 0 1 -35.008 -45.28 227.136 227.136 0 0 1 -22.72 -53.6A223.52 223.52 0 0 1 32 256c0 -20.576 2.624 -40.384 7.872 -59.52a222.976 222.976 0 0 1 22.752 -53.344 228.992 228.992 0 0 1 80.288 -80.512 220.64 220.64 0 0 1 53.6 -22.528A217.856 217.856 0 0 1 256 32a217.6 217.6 0 0 1 59.52 8.096 220.768 220.768 0 0 1 98.656 57.76 220.896 220.896 0 0 1 57.728 98.656C477.312 215.616 480 235.424 480 256s-2.688 40.384 -8.096 59.52a220.8 220.8 0 0 1 -22.528 53.568z"]},We={prefix:"vs",iconName:"close",icon:[512,512,[],"f000","m256 278.624 116.672 116.704 22.656 -22.624L278.624 256l116.704 -116.672 -22.624 -22.656L256 233.376 139.328 116.672l-22.624 22.656L233.376 256l-116.672 116.672 22.624 22.656L256 278.624z"]},qe={prefix:"vs",iconName:"copy",icon:[512,512,[],"f000","m128 128 32 -32h173.248L448 210.752V448l-32 32H160l-32 -32V128zm288 96 -96 -96H160v320h256V224zM96 32 64 64v320l32 32V64h205.248l-32 -32H96z"]},Je={prefix:"vs",iconName:"gripper",icon:[512,512,[],"f000","M160 96h64v64H160zm0 128h64v64H160zm0 128h64v64H160zm128 -256h64v64H288zm0 128h64v64H288zm0 128h64v64H288z"]},Qe={prefix:"vs",iconName:"link",icon:[512,512,[],"f000","M140.8 96h98.72a108.8 108.8 0 0 1 108.8 108.8v6.56A108.8 108.8 0 0 1 239.52 320H224V288h15.52A76.8 76.8 0 0 0 316.16 211.52V204.8A76.8 76.8 0 0 0 239.68 128H140.8A76.8 76.8 0 0 0 64 204.8v6.56A76.608 76.608 0 0 0 128 286.72v32a108.8 108.8 0 0 1 -96 -107.2V204.8A108.96 108.96 0 0 1 140.8 96zM384 225.28v-32a108.8 108.8 0 0 1 96 107.52v6.56A108.96 108.96 0 0 1 371.36 416h-98.88A108.8 108.8 0 0 1 163.84 307.52V300.8A108.8 108.8 0 0 1 272.48 192H288v32h-15.52A76.8 76.8 0 0 0 195.84 300.8v6.56A76.8 76.8 0 0 0 272.48 384h98.88A76.8 76.8 0 0 0 448 307.52V300.8a76.608 76.608 0 0 0 -64 -75.52z"]},He={prefix:"vs",iconName:"loading",icon:[512,512,[],"f000","M445.344 224A192.064 192.064 0 0 0 66.656 224H34.272a224.064 224.064 0 0 1 443.456 0h-32.384z"]},Xe={prefix:"vs",iconName:"pass-filled",icon:[512,512,[],"f000","M256 480A224 224 0 1 0 256 32a224 224 0 0 0 0 448zm-32.64 -132.16h-22.72L128 275.2l22.72 -22.72 61.44 61.44 134.4 -134.72 22.72 22.72 -145.92 145.92z"]},Ye={prefix:"vs",iconName:"search",icon:[512,512,[],"f000","M325.333 0a176 176 0 0 0 -131.84 292.693L21.333 488.107l23.893 21.333 171.733 -194.56A176.021 176.021 0 1 0 325.333 0.213V0zm0 320a144 144 0 1 1 0 -288 144 144 0 0 1 0 288z"]},Ze={prefix:"vs",iconName:"trash",icon:[512,512,[],"f000","M320 96h96v32h-32v288l-32 32H128l-32 -32V128H64V96h96V64a32 32 0 0 1 32 -32h96a32 32 0 0 1 32 32v32zM288 64H192v32h96V64zM128 416h224V128H128v288zm64 -256H160v224h32V160zm32 0h32v224H224V160zm64 0h32v224H288V160z"]},et={prefix:"vs",iconName:"triangle-down",icon:[512,512,[],"f000","M64 177.92 77.216 160h358.208l12.576 17.28L267.936 352h-26.464L64 177.92z"]},Se={prefix:"vs",iconName:"warning",icon:[512,512,[],"f000","M241.92 32h28.16l209.28 392.32 -14.08 23.68H46.08L32 424.32 241.92 32zM256 72.96 72.96 416H438.4L256 72.96zM276 384v-32h-40v32h40zm-40 -64V192h40v128h-40z"]},tt={prefix:"dh",iconName:"exclamation",icon:[512,512,[],"f000","M275.2 384v-32H236.8v32h38.4zm-38.4 -64V128h38.4v192H236.8z"]},rt={prefix:"dh",iconName:"graph-line-down",icon:[512,512,[],"f000","M64 416V0H32v432l16 16H480v-32zm67.2 -291.2 -22.4 22.4 108.8 112 70.4 -64 108.8 124.8H320v32h112l16 -16V224h-32v70.4L288 150.4l-70.4 64z"]},nt={prefix:"dh",iconName:"sort",icon:[512,512,[],"f000","m128 224 -12.8 -25.6 128 -118.4h25.6l128 118.4 -12.8 25.6H128zm0 64 -12.8 25.6 128 118.4h25.6l128 -118.4L384 288H128z"]},st={prefix:"dh",iconName:"warning-filled",icon:[512,512,[],"f000","M268.8 32h-25.6L32 425.6l12.8 22.4h419.2l12.8 -22.4L268.8 32zm6.4 352H236.8v-32h38.4v32zm0 -64H236.8V192h38.4v128z"]};function _e(t){var{className:e="","data-testid":r}=t;return i.jsxs("div",{className:y("loading-spinner fa-layers",e),"data-testid":r,children:[i.jsx(N,{icon:Me,className:"text-white-50"}),i.jsx(N,{icon:He,className:"text-primary",spin:!0})]})}function U(t){var{isLoaded:e=!1,isLoading:r=!0,errorMessage:n=null,"data-testid":o}=t,s=o!=null?"".concat(o,"-message"):void 0,a=o!=null?"".concat(o,"-spinner"):void 0;return i.jsx(w,{in:!!n||!e||r,timeout:j.transitionMs,classNames:e?"fade":"",mountOnEnter:!0,unmountOnExit:!0,children:i.jsx("div",{className:"fill-parent-absolute","data-testid":o,children:i.jsx("div",{className:y("iris-panel-message-overlay","fill-parent-absolute",{"iris-panel-scrim-background":e}),children:i.jsxs("div",{className:"message-content",children:[i.jsxs("div",{className:"message-icon",children:[r&&i.jsx(_e,{"data-testid":a}),!r&&n!=null&&i.jsx(N,{icon:Se})]}),n!=null&&i.jsx("div",{className:"message-text","data-testid":s,children:n})]})})})})}function _(t,e,r,n,o,s,a){try{var d=t[s](a),u=d.value}catch(c){r(c);return}d.done?e(u):Promise.resolve(u).then(n,o)}function Ve(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var s=t.apply(e,r);function a(u){_(s,n,o,a,d,"next",u)}function d(u){_(s,n,o,a,d,"throw",u)}a(void 0)})}}var L=Ee.module("@deephaven/jsapi-bootstrap.ApiBootstrap"),Ie=m.createContext(null);function Re(t){var{apiUrl:e,children:r,failureElement:n,setGlobally:o=!1}=t,[s,a]=m.useState(!0),[d,u]=m.useState();return m.useEffect(()=>{function c(){return l.apply(this,arguments)}function l(){return l=Ve(function*(){try{var v=(yield z(()=>import("".concat(e)),[],import.meta.url)).default;L.info("API bootstrapped from",e),u(v),o&&(L.debug("API set globally"),globalThis.dh=v)}catch(f){L.error("Unable to bootstrap API",f)}a(!1)}),l.apply(this,arguments)}c()},[e,o]),s?i.jsx(U,{}):d==null?n??i.jsxs(Ae,{isOpen:!0,className:"modal-dialog-centered theme-bg-light",children:[i.jsx(Pe,{closeButton:!1,children:"Error: Unable to load API"}),i.jsx(Oe,{children:i.jsxs("p",{className:"text-break",children:["Ensure the server is running and you are able to reach ",e,", then refresh the page."]})})]}):i.jsx(Ie.Provider,{value:d,children:r})}const ke=R.lazy(()=>z(()=>import("./App-c6dba825.js"),["./App-c6dba825.js","./vendor-7c2b7fca.js","./helpers-042e6b4d.js","./vendor-458ea229.css","./useConnection-55561cb7.js","./plotly-be286d51.js","./App-a2eeb683.css"],import.meta.url)),Te=R.lazy(async()=>({default:(await z(()=>import("./index-b2a9d843.js"),["./index-b2a9d843.js","./vendor-7c2b7fca.js","./helpers-042e6b4d.js","./vendor-458ea229.css","./useConnection-55561cb7.js","./index-7925f7e7.css"],import.meta.url)).AppBootstrap})),V=new URL("../../jsapi/dh-core.js",document.baseURI),Ce=new URL("/js-plugins",document.baseURI);I.render(i.jsx(Re,{apiUrl:V.href,setGlobally:!0,children:i.jsx(m.Suspense,{fallback:i.jsx(U,{}),children:i.jsx(Te,{serverUrl:V.origin,pluginsUrl:Ce.href,children:i.jsx(ke,{})})})}),document.getElementById("root"));export{Re as A,Ee as L,Ae as M,j as T,rt as a,U as b,S as c,st as d,$e as e,Oe as f,Pe as g,Ye as h,et as i,Xe as j,qe as k,nt as l,Ge as m,Je as n,Be as o,Ze as p,Ke as q,Fe as r,We as s,Qe as t,tt as u,He as v,_e as w,Ie as x};
|
|
2
|
-
//# sourceMappingURL=index-
|
|
1
|
+
import{r as m,R as I,C as i,D as w,E as y,F as N,G as R}from"./vendor-b4933991.js";import"./helpers-042e6b4d.js";(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const a of s.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(o){if(o.ep)return;o.ep=!0;const s=r(o);fetch(o.href,s)}})();const B="modulepreload",G=function(t,e){return new URL(t,e).href},P={},z=function(e,r,n){if(!r||r.length===0)return e();const o=document.getElementsByTagName("link");return Promise.all(r.map(s=>{if(s=G(s,n),s in P)return;P[s]=!0;const a=s.endsWith(".css"),d=a?'[rel="stylesheet"]':"";if(!!n)for(let l=o.length-1;l>=0;l--){const v=o[l];if(v.href===s&&(!a||v.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${d}`))return;const c=document.createElement("link");if(c.rel=a?"stylesheet":B,a||(c.as="script",c.crossOrigin=""),c.href=s,document.head.appendChild(c),a)return new Promise((l,v)=>{c.addEventListener("load",l),c.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${s}`)))})})).then(()=>e())};const F="#1a171a",K="#f0f0ee",W="#fcd65b",q="#9edc6f",J="#76d9e4",Q="#aa9af4",X="#f37e3f",Y="#f95d84",Z="#4878ea",ee="#5b5a5c",te="#9edc6f",re="#fcd65b",ne="#f37e3f",se="#f95d84",oe="#fcfcfa",ie="#929192",ae="#373438",le="#1a171a",ce="#f0f0ee",de="0.15s",ue={"gray-100":"#fcfcfa","gray-200":"#f0f0ee","gray-300":"#c0bfbf","gray-400":"#929192","gray-500":"#5b5a5c","gray-600":"#555356","gray-700":"#403e41","gray-800":"#373438","gray-850":"#322f33","gray-900":"#211f22",black:F,white:K,yellow:W,green:q,blue:J,purple:Q,orange:X,red:Y,primary:Z,"primary-hover":"#235de6","primary-dark":"#343e5d",secondary:ee,success:te,info:re,warning:ne,danger:se,light:oe,mid:ie,dark:ae,"text-muted":"#929192","content-bg":"#2d2a2e",background:le,foreground:ce,transition:de};function M(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function H(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?M(Object(r),!0).forEach(function(n){fe(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):M(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function fe(t,e,r){return e=me(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function me(t){var e=he(t,"string");return typeof e=="symbol"?e:String(e)}function he(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var ve={transitionMs:150,transitionMidMs:200,transitionLongMs:300,transitionSlowMs:1e3};const j=Object.freeze(H(H({},ve),ue));var pe=-1,k=0,T=1,E=2,C=3,D=4;const $e=Object.freeze({SILENT:pe,ERROR:k,WARN:T,INFO:E,DEBUG:C,DEBUG2:D});function p(t,e,r){return e=ge(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ge(t){var e=ye(t,"string");return typeof e=="symbol"?e:String(e)}function ye(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var h=()=>{};class be{constructor(e,r){p(this,"name",void 0),p(this,"prefix",void 0),p(this,"level",void 0),p(this,"error",void 0),p(this,"warn",void 0),p(this,"log",void 0),p(this,"info",void 0),p(this,"debug",void 0),p(this,"debug2",void 0),this.name=e,this.prefix=e!=null?"[".concat(e,"]"):"",this.error=h,this.warn=h,this.log=h,this.info=h,this.debug=h,this.debug2=h,this.level=r,this.setLogLevel(r)}setLogLevel(e){if(!Number.isFinite(e)){console.warn("Expected a number for log level. Received: ".concat(e,". Ignoring"));return}this.level=e,this.error=e>=k?console.error.bind(console,this.prefix):h,this.warn=e>=T?console.warn.bind(console,this.prefix):h,this.log=e>=E?console.log.bind(console,this.prefix):h,this.info=this.log,this.debug=e>=C?console.debug.bind(console,this.prefix):h,this.debug2=e>=D?console.debug.bind(console,this.prefix):h}}const S=be;function xe(t,e,r){return e=Le(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Le(t){var e=we(t,"string");return typeof e=="symbol"?e:String(e)}function we(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class Ne extends S{constructor(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:E;super(null,e),xe(this,"modules",void 0),this.modules={}}module(e){return this.modules[e]==null&&(this.modules[e]=new S(e,this.level)),this.modules[e]}setLogLevel(e){if(super.setLogLevel(e),this.modules!=null)for(var r=Object.keys(this.modules),n=0;n<r.length;n+=1)this.modules[r[n]].setLogLevel(e)}}const je=Ne;var ze=new je;const Ee=ze;function Ae(t){var{className:e="theme-bg-light",children:r,role:n="role",keyboard:o=!0,isOpen:s=!1,centered:a=!1,size:d,onOpened:u,onClosed:c,toggle:l,"data-testid":v}=t,f=m.useRef(),b=m.useRef(null),[$,A]=m.useState(!1),x=m.useCallback(g=>{switch(g.key){case"Escape":l==null||l();break}},[l]);m.useEffect(function(){if(s&&o)return window.addEventListener("keydown",x),()=>window.removeEventListener("keydown",x)},[x,s,o]),m.useEffect(function(){s&&u&&u()},[u,s]),m.useEffect(function(){!s&&c&&c()},[c,s]),s&&!f.current&&(f.current=document.createElement("div"),f.current.setAttribute("style","padding-right: 15px; display: block"),f.current.setAttribute("role","presentation"),document.body.appendChild(f.current));var O=()=>{f.current&&(document.body.removeChild(f.current),f.current=void 0)};return f.current?I.createPortal(i.jsxs(i.Fragment,{children:[i.jsx(w,{appear:!0,mountOnEnter:!0,unmountOnExit:!0,in:s,classNames:{appearActive:"show",appearDone:"show"},timeout:j.transitionMs,onExited:O,children:i.jsx("div",{className:y("modal-backdrop fade"),style:{zIndex:1050}})}),i.jsx(w,{appear:!0,mountOnEnter:!0,unmountOnExit:!0,in:s,classNames:{appearDone:"show"},timeout:j.transitionMs,onExited:O,children:i.jsx("div",{ref:b,className:"modal fade",onMouseDown:g=>{g.target===b.current?A(!0):A(!1)},onMouseUp:g=>{$&&g.target===b.current&&l!==void 0&&l()},role:"dialog",style:{display:"block"},children:i.jsx("div",{className:y("modal-dialog ".concat(e),{"modal-lg":d==="lg","modal-sm":d==="sm","modal-xl":d==="xl","modal-dialog-centered":a}),style:{zIndex:1040},children:i.jsx("div",{className:"modal-content",role:"presentation","data-testid":v,children:r})})})})]}),f.current):null}function Oe(t){var{className:e="modal-body",style:r,children:n,"data-testid":o}=t;return i.jsx("div",{className:e,"data-testid":o,style:r,children:n})}function Pe(t){var{className:e,children:r,closeButton:n=!0,style:o,toggle:s,"data-testid":a}=t;return i.jsxs("div",{className:"modal-header ".concat(e),style:o,children:[i.jsx("h5",{className:"modal-title",children:r}),n&&i.jsx("button",{type:"button",className:"close","data-dismiss":"modal","aria-label":"Close",onClick:s,children:i.jsx("span",{"aria-hidden":"true",children:"×"})})]})}const Be={prefix:"vs",iconName:"add",icon:[512,512,[],"f000","M448 224v32H256v192H224V256H32V224h192V32h32v192h192z"]},Ge={prefix:"vs",iconName:"check",icon:[512,512,[],"f000","m461.792 106.336 -271.04 320 -25.28 -1.152 -107.2 -152.64 26.176 -18.368 95.296 135.68 257.632 -304.192 24.448 20.672z"]},Fe={prefix:"vs",iconName:"chevron-left",icon:[512,512,[],"f000","m189.696 255.232 139.424 139.424 -19.776 19.84L160 265.088v-19.776L309.344 96l19.776 19.808 -139.424 139.424z"]},Ke={prefix:"vs",iconName:"chevron-right",icon:[512,512,[],"f000","M322.304 256.768 182.88 117.344l19.776 -19.84L352 246.912v19.776L202.656 416l-19.776 -19.808 139.424 -139.424z"]},Me={prefix:"vs",iconName:"circle-large",icon:[512,512,[],"f000","M306.816 70.88A185.856 185.856 0 0 0 256 64c-17.728 0 -34.624 2.336 -50.816 6.88l-0.192 0.064c-16.448 4.512 -31.68 10.944 -45.824 19.232A196.992 196.992 0 0 0 90.24 159.36l-0.064 0.128A190.944 190.944 0 0 0 70.72 205.12 191.552 191.552 0 0 0 64 256c0 17.76 2.24 34.72 6.72 50.912a193.6 193.6 0 0 0 49.536 84.832c11.84 11.68 24.768 21.664 38.912 30.08a195.2 195.2 0 0 0 45.92 19.488A192.64 192.64 0 0 0 256 448c17.76 0 34.72 -2.24 50.912 -6.72 16.48 -4.64 31.68 -11.136 45.632 -19.424l0.128 -0.064a197.12 197.12 0 0 0 69.152 -68.96 187.2 187.2 0 0 0 19.2 -45.824l0.096 -0.192A185.824 185.824 0 0 0 448 256c0 -17.728 -2.304 -34.624 -6.88 -50.816l-0.064 -0.192a184.704 184.704 0 0 0 -19.2 -45.536l-0.064 -0.128a188.8 188.8 0 0 0 -30.144 -38.72l-0.256 -0.256a188.864 188.864 0 0 0 -38.72 -30.144l-0.128 -0.064a184.704 184.704 0 0 0 -45.536 -19.2l-0.192 -0.064zm142.56 298.24a229.024 229.024 0 0 1 -80.512 80.256 222.912 222.912 0 0 1 -53.376 22.72A223.488 223.488 0 0 1 256 480a223.488 223.488 0 0 1 -59.52 -7.872 227.136 227.136 0 0 1 -53.568 -22.752 233.6 233.6 0 0 1 -45.28 -35.008 233.44 233.44 0 0 1 -35.008 -45.28 227.136 227.136 0 0 1 -22.72 -53.6A223.52 223.52 0 0 1 32 256c0 -20.576 2.624 -40.384 7.872 -59.52a222.976 222.976 0 0 1 22.752 -53.344 228.992 228.992 0 0 1 80.288 -80.512 220.64 220.64 0 0 1 53.6 -22.528A217.856 217.856 0 0 1 256 32a217.6 217.6 0 0 1 59.52 8.096 220.768 220.768 0 0 1 98.656 57.76 220.896 220.896 0 0 1 57.728 98.656C477.312 215.616 480 235.424 480 256s-2.688 40.384 -8.096 59.52a220.8 220.8 0 0 1 -22.528 53.568z"]},We={prefix:"vs",iconName:"close",icon:[512,512,[],"f000","m256 278.624 116.672 116.704 22.656 -22.624L278.624 256l116.704 -116.672 -22.624 -22.656L256 233.376 139.328 116.672l-22.624 22.656L233.376 256l-116.672 116.672 22.624 22.656L256 278.624z"]},qe={prefix:"vs",iconName:"copy",icon:[512,512,[],"f000","m128 128 32 -32h173.248L448 210.752V448l-32 32H160l-32 -32V128zm288 96 -96 -96H160v320h256V224zM96 32 64 64v320l32 32V64h205.248l-32 -32H96z"]},Je={prefix:"vs",iconName:"gripper",icon:[512,512,[],"f000","M160 96h64v64H160zm0 128h64v64H160zm0 128h64v64H160zm128 -256h64v64H288zm0 128h64v64H288zm0 128h64v64H288z"]},Qe={prefix:"vs",iconName:"link",icon:[512,512,[],"f000","M140.8 96h98.72a108.8 108.8 0 0 1 108.8 108.8v6.56A108.8 108.8 0 0 1 239.52 320H224V288h15.52A76.8 76.8 0 0 0 316.16 211.52V204.8A76.8 76.8 0 0 0 239.68 128H140.8A76.8 76.8 0 0 0 64 204.8v6.56A76.608 76.608 0 0 0 128 286.72v32a108.8 108.8 0 0 1 -96 -107.2V204.8A108.96 108.96 0 0 1 140.8 96zM384 225.28v-32a108.8 108.8 0 0 1 96 107.52v6.56A108.96 108.96 0 0 1 371.36 416h-98.88A108.8 108.8 0 0 1 163.84 307.52V300.8A108.8 108.8 0 0 1 272.48 192H288v32h-15.52A76.8 76.8 0 0 0 195.84 300.8v6.56A76.8 76.8 0 0 0 272.48 384h98.88A76.8 76.8 0 0 0 448 307.52V300.8a76.608 76.608 0 0 0 -64 -75.52z"]},He={prefix:"vs",iconName:"loading",icon:[512,512,[],"f000","M445.344 224A192.064 192.064 0 0 0 66.656 224H34.272a224.064 224.064 0 0 1 443.456 0h-32.384z"]},Xe={prefix:"vs",iconName:"pass-filled",icon:[512,512,[],"f000","M256 480A224 224 0 1 0 256 32a224 224 0 0 0 0 448zm-32.64 -132.16h-22.72L128 275.2l22.72 -22.72 61.44 61.44 134.4 -134.72 22.72 22.72 -145.92 145.92z"]},Ye={prefix:"vs",iconName:"search",icon:[512,512,[],"f000","M325.333 0a176 176 0 0 0 -131.84 292.693L21.333 488.107l23.893 21.333 171.733 -194.56A176.021 176.021 0 1 0 325.333 0.213V0zm0 320a144 144 0 1 1 0 -288 144 144 0 0 1 0 288z"]},Ze={prefix:"vs",iconName:"trash",icon:[512,512,[],"f000","M320 96h96v32h-32v288l-32 32H128l-32 -32V128H64V96h96V64a32 32 0 0 1 32 -32h96a32 32 0 0 1 32 32v32zM288 64H192v32h96V64zM128 416h224V128H128v288zm64 -256H160v224h32V160zm32 0h32v224H224V160zm64 0h32v224H288V160z"]},et={prefix:"vs",iconName:"triangle-down",icon:[512,512,[],"f000","M64 177.92 77.216 160h358.208l12.576 17.28L267.936 352h-26.464L64 177.92z"]},Se={prefix:"vs",iconName:"warning",icon:[512,512,[],"f000","M241.92 32h28.16l209.28 392.32 -14.08 23.68H46.08L32 424.32 241.92 32zM256 72.96 72.96 416H438.4L256 72.96zM276 384v-32h-40v32h40zm-40 -64V192h40v128h-40z"]},tt={prefix:"dh",iconName:"exclamation",icon:[512,512,[],"f000","M275.2 384v-32H236.8v32h38.4zm-38.4 -64V128h38.4v192H236.8z"]},rt={prefix:"dh",iconName:"graph-line-down",icon:[512,512,[],"f000","M64 416V0H32v432l16 16H480v-32zm67.2 -291.2 -22.4 22.4 108.8 112 70.4 -64 108.8 124.8H320v32h112l16 -16V224h-32v70.4L288 150.4l-70.4 64z"]},nt={prefix:"dh",iconName:"sort",icon:[512,512,[],"f000","m128 224 -12.8 -25.6 128 -118.4h25.6l128 118.4 -12.8 25.6H128zm0 64 -12.8 25.6 128 118.4h25.6l128 -118.4L384 288H128z"]},st={prefix:"dh",iconName:"warning-filled",icon:[512,512,[],"f000","M268.8 32h-25.6L32 425.6l12.8 22.4h419.2l12.8 -22.4L268.8 32zm6.4 352H236.8v-32h38.4v32zm0 -64H236.8V192h38.4v128z"]};function _e(t){var{className:e="","data-testid":r}=t;return i.jsxs("div",{className:y("loading-spinner fa-layers",e),"data-testid":r,children:[i.jsx(N,{icon:Me,className:"text-white-50"}),i.jsx(N,{icon:He,className:"text-primary",spin:!0})]})}function U(t){var{isLoaded:e=!1,isLoading:r=!0,errorMessage:n=null,"data-testid":o}=t,s=o!=null?"".concat(o,"-message"):void 0,a=o!=null?"".concat(o,"-spinner"):void 0;return i.jsx(w,{in:!!n||!e||r,timeout:j.transitionMs,classNames:e?"fade":"",mountOnEnter:!0,unmountOnExit:!0,children:i.jsx("div",{className:"fill-parent-absolute","data-testid":o,children:i.jsx("div",{className:y("iris-panel-message-overlay","fill-parent-absolute",{"iris-panel-scrim-background":e}),children:i.jsxs("div",{className:"message-content",children:[i.jsxs("div",{className:"message-icon",children:[r&&i.jsx(_e,{"data-testid":a}),!r&&n!=null&&i.jsx(N,{icon:Se})]}),n!=null&&i.jsx("div",{className:"message-text","data-testid":s,children:n})]})})})})}function _(t,e,r,n,o,s,a){try{var d=t[s](a),u=d.value}catch(c){r(c);return}d.done?e(u):Promise.resolve(u).then(n,o)}function Ve(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var s=t.apply(e,r);function a(u){_(s,n,o,a,d,"next",u)}function d(u){_(s,n,o,a,d,"throw",u)}a(void 0)})}}var L=Ee.module("@deephaven/jsapi-bootstrap.ApiBootstrap"),Ie=m.createContext(null);function Re(t){var{apiUrl:e,children:r,failureElement:n,setGlobally:o=!1}=t,[s,a]=m.useState(!0),[d,u]=m.useState();return m.useEffect(()=>{function c(){return l.apply(this,arguments)}function l(){return l=Ve(function*(){try{var v=(yield z(()=>import("".concat(e)),[],import.meta.url)).default;L.info("API bootstrapped from",e),u(v),o&&(L.debug("API set globally"),globalThis.dh=v)}catch(f){L.error("Unable to bootstrap API",f)}a(!1)}),l.apply(this,arguments)}c()},[e,o]),s?i.jsx(U,{}):d==null?n??i.jsxs(Ae,{isOpen:!0,className:"modal-dialog-centered theme-bg-light",children:[i.jsx(Pe,{closeButton:!1,children:"Error: Unable to load API"}),i.jsx(Oe,{children:i.jsxs("p",{className:"text-break",children:["Ensure the server is running and you are able to reach ",e,", then refresh the page."]})})]}):i.jsx(Ie.Provider,{value:d,children:r})}const ke=R.lazy(()=>z(()=>import("./App-b726b424.js"),["./App-b726b424.js","./vendor-b4933991.js","./helpers-042e6b4d.js","./vendor-e75c4614.css","./useConnection-a2eee2d2.js","./plotly-416911dc.js","./App-a2eeb683.css"],import.meta.url)),Te=R.lazy(async()=>({default:(await z(()=>import("./index-a9b64aac.js"),["./index-a9b64aac.js","./vendor-b4933991.js","./helpers-042e6b4d.js","./vendor-e75c4614.css","./useConnection-a2eee2d2.js","./index-7925f7e7.css"],import.meta.url)).AppBootstrap})),V=new URL("../../jsapi/dh-core.js",document.baseURI),Ce=new URL("/js-plugins",document.baseURI);I.render(i.jsx(Re,{apiUrl:V.href,setGlobally:!0,children:i.jsx(m.Suspense,{fallback:i.jsx(U,{}),children:i.jsx(Te,{serverUrl:V.origin,pluginsUrl:Ce.href,children:i.jsx(ke,{})})})}),document.getElementById("root"));export{Re as A,Ee as L,Ae as M,j as T,rt as a,U as b,S as c,st as d,$e as e,Oe as f,Pe as g,Ye as h,et as i,Xe as j,qe as k,nt as l,Ge as m,Je as n,Be as o,Ze as p,Ke as q,Fe as r,We as s,Qe as t,tt as u,He as v,_e as w,Ie as x};
|
|
2
|
+
//# sourceMappingURL=index-56720879.js.map
|