From f47d2190c769f74827e088a1aa887ff723fe7951 Mon Sep 17 00:00:00 2001 From: pomelo-nwu Date: Fri, 3 Jan 2025 09:11:17 +0000 Subject: [PATCH] deploy: 5c19fe3d4607103ed3efdfca8a88092a4312d3a5 --- 404.html | 2 +- 5936.89016bf5.async.js | 1 - 5936.ca1ab13d.async.js | 1 + changelog/index.html | 2 +- components-en/index.html | 2 +- components/editable-text/index.html | 2 +- components/empty-canvas/index.html | 2 +- components/full-screen/index.html | 2 +- components/icons-en/index.html | 2 +- components/icons/index.html | 2 +- components/illustration/index.html | 2 +- components/import-files/index.html | 2 +- components/importor/index.html | 2 +- components/index.html | 2 +- components/layout/index.html | 2 +- components/logo/index.html | 2 +- components/properties-list-en/index.html | 2 +- components/properties-list/index.html | 2 +- components/provider/index.html | 2 +- components/query-statements/index.html | 2 +- components/resizable-panel/index.html | 2 +- components/segmented-tabs/index.html | 2 +- components/side-tabs/index.html | 2 +- components/table-card/index.html | 2 +- components/toolbar/index.html | 2 +- components/typing-text/index.html | 2 +- components/utils/index.html | 2 +- graphs/data/index.html | 2 +- graphs/index.html | 2 +- graphs/layout/index.html | 2 +- graphs/online/index.html | 2 +- graphs/performance-1/index.html | 2 +- graphs/performance-2/index.html | 2 +- graphs/performance-3/index.html | 2 +- graphs/provider/index.html | 2 +- graphs/quick/index.html | 2 +- graphs/style/index.html | 2 +- index.html | 2 +- modelings/index.html | 2 +- queries/index.html | 2 +- src-en/index.html | 2 +- src/editable-text/index.html | 2 +- src/empty-canvas/index.html | 2 +- src/full-screen/index.html | 2 +- src/icons-en/index.html | 2 +- src/icons/index.html | 2 +- src/illustration/index.html | 2 +- src/import-files/index.html | 2 +- src/importor/index.html | 2 +- src/index.html | 2 +- src/layout/index.html | 2 +- src/logo/index.html | 2 +- src/properties-list-en/index.html | 2 +- src/properties-list/index.html | 2 +- src/provider/index.html | 2 +- src/resizable-panel/index.html | 2 +- src/segmented-tabs/index.html | 2 +- src/side-tabs/index.html | 2 +- src/table-card/index.html | 2 +- src/toolbar/index.html | 2 +- src/typing-text/index.html | 2 +- src/utils/index.html | 2 +- umi.5e1a63f0.js => umi.d7f54a20.js | 2 +- ~demos/:id/index.html | 2 +- ~demos/editabletext-demo-0/index.html | 2 +- ~demos/emptycanvas-demo-0/index.html | 2 +- ~demos/fullscreen-demo-0/index.html | 2 +- ~demos/icons-demo-en-us-0/index.html | 2 +- ~demos/icons-demo-zh-cn-0/index.html | 2 +- ~demos/illustration-demo-0/index.html | 2 +- ~demos/importfiles-demo-0/index.html | 2 +- ~demos/layout-demo-0/index.html | 2 +- ~demos/logo-demo-0/index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- ~demos/packages-studio-graph-docs-data-demo-zh-cn-0/index.html | 2 +- ~demos/packages-studio-graph-docs-demo-zh-cn-0/index.html | 2 +- .../packages-studio-graph-docs-layout-demo-zh-cn-0/index.html | 2 +- .../packages-studio-graph-docs-layout-demo-zh-cn-1/index.html | 2 +- .../packages-studio-graph-docs-layout-demo-zh-cn-2/index.html | 2 +- .../packages-studio-graph-docs-layout-demo-zh-cn-3/index.html | 2 +- .../packages-studio-graph-docs-layout-demo-zh-cn-4/index.html | 2 +- .../packages-studio-graph-docs-online-demo-zh-cn-0/index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- ~demos/packages-studio-graph-docs-quick-demo-zh-cn-0/index.html | 2 +- ~demos/packages-studio-graph-docs-quick-demo-zh-cn-1/index.html | 2 +- ~demos/packages-studio-graph-docs-quick-demo-zh-cn-2/index.html | 2 +- ~demos/packages-studio-graph-docs-quick-demo-zh-cn-3/index.html | 2 +- ~demos/packages-studio-graph-docs-style-demo-zh-cn-0/index.html | 2 +- ~demos/packages-studio-graph-docs-style-demo-zh-cn-1/index.html | 2 +- ~demos/packages-studio-graph-docs-style-demo-zh-cn-2/index.html | 2 +- ~demos/packages-studio-graph-docs-style-demo-zh-cn-3/index.html | 2 +- ~demos/packages-studio-graph-docs-style-demo-zh-cn-4/index.html | 2 +- ~demos/packages-studio-importor-src-app-demo-0/index.html | 2 +- ~demos/packages-studio-query-src-app-demo-0/index.html | 2 +- ~demos/packages-studio-query-src-statement-demo-0/index.html | 2 +- ~demos/propertieslist-demo-zh-cn-0/index.html | 2 +- ~demos/propertieslist-demo-zh-cn-1/index.html | 2 +- ~demos/propertieslist-demo-zh-cn-2/index.html | 2 +- ~demos/propertieslist-demo-zh-cn-3/index.html | 2 +- ~demos/provider-demo-0/index.html | 2 +- ~demos/resizablepanel-demo-0/index.html | 2 +- ~demos/segmentedtabs-demo-0/index.html | 2 +- ~demos/sidetabs-demo-0/index.html | 2 +- ~demos/tablecard-demo-0/index.html | 2 +- ~demos/toolbar-demo-0/index.html | 2 +- ~demos/typingtext-demo-0/index.html | 2 +- 109 files changed, 108 insertions(+), 108 deletions(-) delete mode 100644 5936.89016bf5.async.js create mode 100644 5936.ca1ab13d.async.js rename umi.5e1a63f0.js => umi.d7f54a20.js (99%) diff --git a/404.html b/404.html index 2c09bf11..92b40705 100644 --- a/404.html +++ b/404.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/5936.89016bf5.async.js b/5936.89016bf5.async.js deleted file mode 100644 index 53eed5c0..00000000 --- a/5936.89016bf5.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[5936],{84594:function(e,t,r){r.r(t),r.d(t,{BasicContainer:function(){return Ue},BasicInteraction:function(){return po},Brush:function(){return Cn},Canvas:function(){return or},ClearCanvas:function(){return ho},ClearStatus:function(){return Zr},CommonNeighbor:function(){return wn},ContextMenu:function(){return h},CurvatureLinks:function(){return So},DagreMode:function(){return jo},DeleteLeafNodes:function(){return Rn},DeleteNode:function(){return xn},Export:function(){return Bn},FixedMode:function(){return ko},GraphProvider:function(){return Qe},HoverMenu:function(){return $o},LayoutSetting:function(){return Jr},LayoutSwitch:function(){return No},LoadCSV:function(){return qe},Loading:function(){return Nn},NeighborQuery:function(){return hn},Prepare:function(){return Ir},PropertiesPanel:function(){return Ce},PropertiesTable:function(){return vi},PropertyInfo:function(){return De},RunCluster:function(){return Vr},SchemaView:function(){return si},SliderFilter:function(){return zr},StyleSetting:function(){return Dr},SwitchEngine:function(){return Ge},Toolbar:function(){return i},ZoomFit:function(){return Nr},ZoomStatus:function(){return Uo},getDataMap:function(){return dt},getStyleConfig:function(){return mt},locales:function(){return n},processLinks:function(){return bt},registerIcons:function(){return pe},useApis:function(){return gi},useContext:function(){return Ke}});var n={"en-US":{"Select nodes by box selection":"Select nodes by box selection","Switch graph view dimensions":"Switch graph view dimensions","Zoom to fitview":"Zoom to fitview",Fullscreen:"Fullscreen","Toggle Right Side":"Toggle Right Side","Caption Status":"Caption Status","Clustering layout":"Clustering layout","Export graph json":"Export graph json","Edge Properties":"Edge Properties","Vertex Properties":"Vertex Properties","File type":"File type","Vertex Labels":"Vertex Labels","Edge Labels":"Edge Labels"},"zh-CN":{"Select nodes by box selection":"通过框选选择节点","Switch graph view dimensions":"切换图表视图维度","Zoom to fitview":"缩放适当视图",Fullscreen:"全屏","Toggle Right Side":"切换右侧","Caption Status":"是否展示标签","Clustering layout":"聚类布局","Export graph json":"导出 JSON 数据","Edge Properties":"边属性信息","Vertex Properties":"点属性信息","File type":"文件类型","Vertex Labels":"点类型","Edge Labels":"边类型"}},o=r(58002),i=o.Toolbar,a=r(50959),c=r(53531),u=r(57526);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),L(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),h}},t}function K(e,t,r,n,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void r(e)}c.done?t(u):Promise.resolve(u).then(n,o)}function Q(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){K(i,n,o,a,c,"next",e)}function c(e){K(i,n,o,a,c,"throw",e)}a(void 0)}))}}function ee(e){return te.apply(this,arguments)}function te(){return te=Q(W().mark((function e(t){var r,n,o,i,a=arguments;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=a.length>1&&void 0!==a[1]?a[1]:"online",n=a.length>2?a[2]:void 0,"online"!==r){e.next=8;break}return o=n||"https://at.alicdn.com/t/a/".concat(t,".json"),e.next=6,fetch(o).then((function(e){return e.json()}));case 6:return i=e.sent,e.abrupt("return",i);case 8:return e.abrupt("return",{id:"",name:"",font_family:"",css_prefix_text:"",description:"",glyphs:[]});case 9:case"end":return e.stop()}}),e)}))),te.apply(this,arguments)}function re(e){return ne.apply(this,arguments)}function ne(){return ne=Q(W().mark((function e(t){var r,n,o=arguments;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("online"!==(o.length>1&&void 0!==o[1]?o[1]:"online")){e.next=8;break}return r=[{fontUrl:"//at.alicdn.com/t/a/".concat(t,".woff2"),format:"woff2"},{fontUrl:"//at.alicdn.com/t/a/".concat(t,".woff"),format:"woff"},{fontUrl:"//at.alicdn.com/t/a/".concat(t,".ttf"),format:"truetype"}],n=function(){var e=Q(W().mark((function e(t,r){var n;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=new FontFace(t,"url(".concat(r,")")),e.next=3,n.load();case 3:document.fonts.add(n);case 4:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}(),e.next=6,Promise.all(r.map((function(e){var t=e.fontUrl;return n("iconfont",t)})));case 6:e.next=8;break;case 8:case"end":return e.stop()}}),e)}))),ne.apply(this,arguments)}function oe(e){return oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oe(e)}function ie(){ie=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var i=t&&t.prototype instanceof m?t:m,a=Object.create(i.prototype),c=new k(n||[]);return o(a,"_invoke",{value:j(e,r,c)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=s;var p="suspendedStart",d="executing",y="completed",h={};function m(){}function v(){}function g(){}var b={};l(b,a,(function(){return this}));var w=Object.getPrototypeOf,O=w&&w(w(T([])));O&&O!==r&&n.call(O,a)&&(b=O);var S=g.prototype=m.prototype=Object.create(b);function x(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function r(o,i,a,c){var u=f(e[o],e,i);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==oe(s)&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(s).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function j(t,r,n){var o=p;return function(i,a){if(o===d)throw new Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=P(c,n);if(u){if(u===h)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var l=f(t,r,n);if("normal"===l.type){if(o=n.done?y:"suspendedYield",l.arg===h)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=y,n.method="throw",n.arg=l.arg)}}}function P(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,P(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,h;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,h):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function T(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),L(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),h}},t}function ae(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ce(e){for(var t=1;t0&&void 0!==o[0]?o[0]:se,e.next=3,ee(t);case 3:return r=e.sent,n=r.glyphs,e.next=7,re(se);case 7:return fe=n.reduce((function(e,t){return ce(ce({},e),{},ue({},t.name,String.fromCodePoint(t.unicode_decimal)))}),{}),e.abrupt("return",fe);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){le(i,n,o,a,c,"next",e)}function c(e){le(i,n,o,a,c,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}();function de(e){return de="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},de(e)}function ye(e){return function(e){if(Array.isArray(e))return he(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return he(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return he(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function he(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var De=function(e){var t=e.style,r=e.noTitle,n=Ke(),i=n.store,c=n.updateStore,l=i.nodeStyle,s=i.selectNodes,f=i.selectEdges;if(0===f.length&&0===s.length)return null;var p=s[0],d=f[0],y=p?"node":"edge",h=p||d,v=h,g=v.id,b=v.label,w=v.properties,O=void 0===w?{}:w,S=h.source&&h.source.id,x=h.target&&h.target.id,E=l[g]||l[String(b)],j="node"===y?"Vertex Properties":"Edge Properties";return a.createElement(u.Z,{style:t,vertical:!0,gap:12},!r&&a.createElement(m.Z.Title,{level:5,style:{margin:"0px"}},j),a.createElement(u.Z,{justify:"space-between"},a.createElement(m.Z.Text,{type:"secondary",italic:!0},"id"),a.createElement(m.Z.Text,{italic:!0},g)),a.createElement(u.Z,{justify:"space-between"},a.createElement(m.Z.Text,{type:"secondary",italic:!0},"label"),a.createElement(xe,Pe({},E,{label:b,type:y,properties:O,onChange:function(e){e.properties;var t=Te(e,je);c((function(e){var r=Le(Le({},e.nodeStyle),{},ke({},g,t));e.nodeStyle=r,o.Utils.storage.set("GRAPH_".concat(i.graphId,"_STYLE"),{nodeStyle:r,edgeStyle:Le({},e.edgeStyle)})}))}}))),S&&a.createElement(u.Z,{justify:"space-between"},a.createElement(m.Z.Text,{type:"secondary",italic:!0},"source"),a.createElement(m.Z.Text,{italic:!0},S.id)),x&&a.createElement(u.Z,{justify:"space-between"},a.createElement(m.Z.Text,{type:"secondary",italic:!0},"target"),a.createElement(m.Z.Text,{italic:!0},x)),a.createElement(_.Z,{style:{margin:"0px"}}),a.createElement(u.Z,{vertical:!0,gap:12},Object.keys(O).map((function(e){return a.createElement(u.Z,{key:e,vertical:!0,gap:6},a.createElement(m.Z.Text,{type:"secondary"},e),a.createElement(m.Z.Text,null,O[e]||"-"))}))))},Ae="240px",Ce=function(e){var t=Ke().store,r=t.selectNodes,n=t.selectEdges,o=c.Z.useToken().token,i={display:"flex",position:"absolute",top:"12px",bottom:"12px",right:"12px",width:Ae,boxShadow:o.boxShadow,zIndex:1999,background:o.colorBgContainer,borderRadius:o.borderRadius,overflowY:"scroll",padding:o.padding},u={display:"flex",position:"absolute",bottom:"12px",left:"12px",right:"12px",boxSizing:"border-box",maxHeight:Ae,boxShadow:o.boxShadow,zIndex:1999,background:o.colorBgContainer,borderRadius:o.borderRadius,overflowY:"scroll",padding:o.padding};return 0===n.length&&0===r.length?null:1===r.length||1===n.length?a.createElement(De,{style:i}):r.length>1?a.createElement(P,{data:r,style:u}):n.length>1?a.createElement(P,{data:n,style:u}):null},Ie=r(17905),Ne=r(38943),Ze=o.Icons.Graph3D,Fe=o.Icons.Graph2D,Ge=function(e){var t=Ke(),r=t.updateStore,n=t.store.render,o=c.Z.useToken().token,i=e.title,u=void 0===i?"Switch graph view dimensions":i,l=(e.placement,"2D"===n?a.createElement(Ze,{style:{color:o.colorTextBase}}):a.createElement(Fe,{style:{color:o.colorTextBase}}));return a.createElement(Ie.Z,{title:a.createElement(A.Z,{id:"".concat(u)}),placement:"left"},a.createElement(Ne.ZP,{onClick:function(){r((function(e){e.render="2D"===n?"3D":"2D"}))},icon:l,type:"text"}))};function Me(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ze(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ze(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ze(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function ct(e,t){var r=t[e.id]||t[String(e.label)]||e.__style||{},n=r.options,o=void 0===n?{}:n,i=at(r,tt);return ot(ot(ot({},H),i),{},{options:ot(ot({},V),o)})}function ut(e,t){var r=t[e.id]||t[String(e.label)]||e.__style||{},n=r.options,o=void 0===n?{}:n,i=at(r,rt);return ot(ot(ot({},X),i),{},{options:ot(ot({},$),o)})}function lt(e){return lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lt(e)}function st(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ft(e){for(var t=1;tMath.PI/2&&(_=-(Math.PI-_)),_<-Math.PI/2&&(_=-(-Math.PI-_)),t.save(),t.font="1px Sans-Serif",t.font="".concat(v,"px Sans-Serif");var L=[S+.8*v,v+.4*v];t.translate(j.x,j.y),t.rotate(_),t.fillStyle=g,t.fillRect.apply(t,[-L[0]/2,-L[1]/2].concat(L)),t.textAlign="center",t.textBaseline="middle",t.fillStyle=h,c&&(t.fillStyle=b),u&&(t.fillStyle=q),t.fillText(O,0,0),t.restore()}}}}}(e,t,r)(o,n)})).linkCanvasObjectMode((function(){return"after"})).linkDirectionalArrowLength((function(e){var t=ut(e,o),r=t.options,n=void 0===r?{}:r,i=t.size;return void 0===n.arrowLength?3*i:n.arrowLength})).linkDirectionalArrowRelPos((function(e){return ut(e,o).options.arrowPosition||1})).linkColor((function(e){var t=ut(e,o),r=t.color,i=t.options,a=yt(e,n),c=a.selected,u=a.disabled;return c?i.selectColor||U:u?q:r})).linkWidth((function(e){var t=ut(e,o).size,r=n[e.id];return r&&r.selected?t+1:t})).linkDirectionalParticles(1).linkDirectionalParticleWidth((function(e){var t=n[e.id];return t&&t.selected?ut(e,o).size+1:0})),"3D"===r&&t.linkColor((function(e){var t=ut(e,o).color,r=n[e.id];return r&&r.selected?U:t})).linkLabel((function(e){return ut(e,o).caption.map((function(t){var r=e&&e.properties&&e.properties[t];if(t&&r)return"".concat(t,": ").concat(r)})).join("")})).linkWidth((function(e){var t=ut(e,o).size,r=n[e.id];return r&&r.selected?t+1:t})).linkDirectionalParticles(1).linkDirectionalParticleWidth((function(e){var t=n[e.id];return t&&t.selected?ut(e,o).size+1:0})))}),[o,n,r,t])};function xt(e){return function(e){if(Array.isArray(e))return Et(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Et(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Et(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Et(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);rb[0]&&r=u[1]){var d=16/t;r.font="".concat(d,"px Sans-Serif"),r.fillStyle="#fff",r.textAlign="center",r.textBaseline="middle",function(e,t){for(var r=t.text,n=void 0===r?"":r,o=t.x,i=t.y,a=t.maxWidth,c=t.lineHeight,u=String(n).split(" "),l="",s=[],f=0;fa&&f>0?(s.push(l.trim()),l=u[f]+" "):l=p}s.push(l.trim());var d=i-s.length*c/2;s.forEach((function(t,r){e.fillText(t,o,d+r*c)}))}(r,{text:i.join(" "),x:n.x,y:n.y+d/2,maxWidth:2*o*.8,lineHeight:1.2*d})}if(t>=u[0]&&te.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&h.push(Ft(Ft({},t),{},{x:o,y:i,r:r}))}));var m=(y.children||[]).map((function(e){var t=e.x,r=e.y,n=ct({id:e.data.name,label:e.data.name},a).color;return{id:e.data.name,label:e.data.name,type:"circle",x:t,y:r,color:n,r:e.r,children:e.data.children.map((function(e){return e.id}))}}));return{nodes:h,edges:e.edges,combos:m}},Ut=r(56617);function Yt(e){return Yt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yt(e)}function Bt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function qt(e){for(var t=1;tu){var l=(c-u)/c*n;r.x-=i*l,r.y-=a*l}}}))}return n.initialize=function(e){return r=e},n}(h,l)),n.d3Force("radial",function(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.05;function o(o){r.forEach((function(r){var i=e.get(wt(r,t)||"undefined");if(i){var a=i.x-r.x,c=i.y-r.y;r.vx+=a*o*n,r.vy+=c*o*n}}))}return o.initialize=function(e){return r=e},o}(h,l)),n.d3Force("collide",Ut.Z().radius((function(e){var t=ct(e,r).size;return Math.round(4*Math.sqrt(Math.max(0,t))+2)}))),i((function(e){e.combos=y})),n.cooldownTicks(1/0),n.graphData({nodes:d.nodes,links:d.edges}),n.d3ReheatSimulation(),n.zoomToFit()}}else console.warn("3D not support combo")};var Xt=r(44200),$t=r(80621),Jt=r(5271),Wt=r(68490);function Kt(e){return Kt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kt(e)}function Qt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function er(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:"log",t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;switch(e){case"linear":return(0,ir.Z)().domain(t).range(r);case"log":return 0===t[0]&&(t[0]=t[0]+1e-5),0===r[0]&&(r[0]=r[0]+1e-5),(0,ar.Z)(t,r);case"pow":return(0,cr.ZP)().exponent(n).domain(t).range(r);default:throw new Error("Unknown scale type: ".concat(e))}}(l,[i,a],c),s={};console.log(i,a,p,c),t.forEach((function(t){var r=t.properties,n=t.id,o=t.label;if(r){var a=Number(r[e]),c=u(a);s[n]={label:o,color:isNaN(c)?i:c}}})),r((function(e){Object.keys(s).forEach((function(t){var r=s[t],n=r.color,o=r.label;e.nodeStyle[t]=sr(sr(sr({},e.nodeStyle[o]),e.nodeStyle[t]),{},{size:n})}))}))}}))},br=function(e){return a.createElement(o.CollapseCard,{title:"Advanced Setting",tooltip:"The size of nodes or width of edges is linearly scaled based on the range of values in the selected property field.",defaultCollapse:!0},a.createElement(gr,null))},wr=["properties","style"],Or=["properties","style"];function Sr(e){return Sr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sr(e)}function xr(){return xr=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function jr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Pr(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=i&&t[a]<=u;return s&&(l.add(vt(r)),l.add(gt(n))),s}})),i=r.nodes.filter((function(e){return l.has(e.id)}))),{nodes:i,edges:o});t.data=s}))}}),a.createElement(Ne.ZP,{block:!0,onClick:function(){t((function(e){e.data=e.source}))}},"reset"))};function Rr(e){return Rr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rr(e)}function Ur(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Yr(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&void 0!==arguments[1]?arguments[1]:function(e){return{selected:!0}},a=r.reduce((function(e,t){return en(en({},e),{},tn({},t.id,i(t)))}),{}),c=o.reduce((function(e,t){return en(en({},e),{},tn({},t.id,i(t)))}),{});return{nodeStatus:a,edgeStatus:c}},nn=function(e,t,r){var n=e.graphData(),i=n.nodes,a=n.links.map((function(e){return en(en({},e),{},{source:e.source.id,target:e.target.id})})),c=i.filter((function(e){return-1!==r.indexOf(e.id)})),u=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,n=2*Math.PI/e.length;return e.map((function(e,o){var i=o*n;return en(en({},e),{},{x:t.x+r*Math.cos(i),y:t.y+r*Math.sin(i),z:0})}))}(t.nodes,c);return o.Utils.handleExpand({nodes:i,edges:a},{nodes:u,edges:t.edges})},on=r(42176);function an(e){return an="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},an(e)}function cn(){cn=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var i=t&&t.prototype instanceof m?t:m,a=Object.create(i.prototype),c=new k(n||[]);return o(a,"_invoke",{value:j(e,r,c)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=s;var p="suspendedStart",d="executing",y="completed",h={};function m(){}function v(){}function g(){}var b={};l(b,a,(function(){return this}));var w=Object.getPrototypeOf,O=w&&w(w(T([])));O&&O!==r&&n.call(O,a)&&(b=O);var S=g.prototype=m.prototype=Object.create(b);function x(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function r(o,i,a,c){var u=f(e[o],e,i);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==an(s)&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(s).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function j(t,r,n){var o=p;return function(i,a){if(o===d)throw new Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=P(c,n);if(u){if(u===h)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var l=f(t,r,n);if("normal"===l.type){if(o=n.done?y:"suspendedYield",l.arg===h)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=y,n.method="throw",n.arg=l.arg)}}}function P(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,P(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,h;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,h):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function T(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),L(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),h}},t}function un(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ln(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&l?(a=rn(i,(function(e){return{selected:!0}})),f=a.nodeStatus,p=a.edgeStatus,d=nn(l,i,o),n((function(e){e.data=d,e.source=d,e.nodeStatus=f,e.edgeStatus=p,e.isLoading=!1,e.selectNodes=i.nodes}))):n((function(e){e.isLoading=!1}));case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),g=h.all,b=[{icon:a.createElement(on.Z,null),key:"NeighborQuery",label:"NeighborQuery",children:h[c[0].label]||g}];return a.createElement("div",{ref:f,className:"studio-graph-neighbor-query"},a.createElement(Wr.Z,{getPopupContainer:function(e){return f.current?f.current:e},onClick:v,style:{margin:"0px",padding:"0px",width:"103%"},mode:"vertical",items:b}))},mn=r(9541);function vn(e){return vn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vn(e)}function gn(){gn=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var i=t&&t.prototype instanceof m?t:m,a=Object.create(i.prototype),c=new k(n||[]);return o(a,"_invoke",{value:j(e,r,c)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=s;var p="suspendedStart",d="executing",y="completed",h={};function m(){}function v(){}function g(){}var b={};l(b,a,(function(){return this}));var w=Object.getPrototypeOf,O=w&&w(w(T([])));O&&O!==r&&n.call(O,a)&&(b=O);var S=g.prototype=m.prototype=Object.create(b);function x(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function r(o,i,a,c){var u=f(e[o],e,i);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==vn(s)&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(s).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function j(t,r,n){var o=p;return function(i,a){if(o===d)throw new Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=P(c,n);if(u){if(u===h)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var l=f(t,r,n);if("normal"===l.type){if(o=n.done?y:"suspendedYield",l.arg===h)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=y,n.method="throw",n.arg=l.arg)}}}function P(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,P(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,h;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,h):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function T(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),L(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),h}},t}function bn(e,t,r,n,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void r(e)}c.done?t(u):Promise.resolve(u).then(n,o)}var wn=function(){var e=Ke(),t=e.store,r=e.updateStore,n=t.selectNodes,o=t.emitter,i=t.graph,c=t.getService,u=function(){var e,t=(e=gn().mark((function e(){var t,a,u,l,s,f;return gn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r((function(e){e.isLoading=!0})),null==o||o.emit("canvas:click"),t=n.map((function(e){return e.id})),e.next=5,c("queryCommonNeighbor")(t);case 5:(a=e.sent).nodes.length>0?(u=rn(a,(function(e){return{selected:!0}})),l=u.nodeStatus,s=u.edgeStatus,f=nn(i,a,t),r((function(e){e.data=f,e.isLoading=!1,e.nodeStatus=l,e.edgeStatus=s}))):r((function(e){e.isLoading=!1}));case 7:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){bn(i,n,o,a,c,"next",e)}function c(e){bn(i,n,o,a,c,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}();return a.createElement(Ne.ZP,{onClick:u,icon:a.createElement(mn.Z,null),type:"text",style:{width:"100%",justifyContent:"left"}},"CommonNeighbor")},On=r(86132);function Sn(e){return Sn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sn(e)}var xn=function(e){var t=Ke(),r=t.store,n=t.updateStore,o=r.nodeStatus,i=r.emitter;return a.createElement(Ne.ZP,{onClick:function(){null==i||i.emit("canvas:click");var e=Object.keys(o).filter((function(e,t){return o[e].selected}));n((function(t){var r={nodes:t.data.nodes.filter((function(t){return!e.includes(t.id)})),edges:t.data.edges.filter((function(t){return!e.includes("object"===Sn(t.source)?t.source.id:t.source)&&!e.includes("object"===Sn(t.target)?t.target.id:t.target)}))};t.data=r,t.dataMap=dt(r)}))},icon:a.createElement(On.Z,null),type:"text",style:{width:"100%",justifyContent:"left"}},"Delete Vertex")},En=r(10422),jn=r(2941),Pn=r(41468);function _n(e){return _n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_n(e)}function Ln(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function kn(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=f.x&&e.x<=d.x&&e.y>=f.y&&e.y<=d.y})))}}));e.append("g").attr("class","brush").call(o)}return function(){e.select(".brush").remove()}}),[h,t,p]);var v=h?{position:"absolute",top:0,left:0,width:"100%",height:"100%",display:"block",background:"rgba(0, 0, 0, 0.05)"}:{display:"none"},g=document.getElementById("GRAPH_".concat(f));return g?a.createElement(a.Fragment,null,a.createElement(Ie.Z,{placement:c,title:a.createElement(A.Z,{id:"".concat(n)})},a.createElement(Ne.ZP,{icon:a.createElement(o.Icons.Lasso,null),type:"text",onClick:function(){m((function(e){return!e}))}})),En.createPortal(a.createElement("svg",{ref:d,style:v}),g)):null},In=r(71433),Nn=function(e){return Ke().store.isLoading?a.createElement("div",{style:{position:"absolute",top:"0px",left:"0px",bottom:"0px",right:"0px",display:"flex",justifyContent:"center",alignItems:"center",background:"rgba(0,0,0,0.1)"}},a.createElement(In.Z,null)):null},Zn=r(56977);function Fn(e){return Fn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fn(e)}function Gn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Mn(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=o&&r<=o+a&&n>=i&&n<=i+c}(o,t)}));if(a)return a}}var l,s,f;return!1}function p(e,t){i&&i.graphData().nodes.forEach((function(r){"object"===co(l)&&-1!==l.children.indexOf(r.id)&&(r.x=r.x+e,r.y=r.y+t)}))}var d=o.Utils.fakeSnapshot(c);function y(e,t){var r=d.map((function(r){return"object"===co(l)&&r.id===l.id?lo(lo({},r),{},{x:r.x+e,y:r.y+t}):r}));d=r,Tt(i,r)}function h(r){if(a=Date.now(),i.autoPauseRedraw&&i.autoPauseRedraw(!1),u&&(l=f(r))){i.enablePanInteraction(!1),u.classList.add("grabbable");var n=(null==i?void 0:i.screen2GraphCoords(r.clientX,r.clientY,0))||{x:0,y:0},o=n.x,c=n.y;e=o,t=c,s=!0}}function m(r){if(s&&u){var n=(null==i?void 0:i.screen2GraphCoords(r.clientX,r.clientY,0))||{x:0,y:0},o=n.x,a=n.y,c=o-e,l=a-t;e=o,t=a,p(c,l),y(c,l)}}function v(o){if(i.autoPauseRedraw&&i.autoPauseRedraw(!0),s&&u)if(s=!1,u.classList.remove("grabbable"),Date.now()-a<200)!function(e){var t=f(e);t&&(null==n||n.emit("combo:click",lo(lo({},e),{},{item:t})))}(o);else{var c=(null==i?void 0:i.screen2GraphCoords(o.clientX,o.clientY,0))||{x:0,y:0},l=c.x,h=c.y,m=l-e,v=h-t;p(m,v),y(m,v),r((function(e){e.combos=d}))}i.enablePanInteraction(!0)}function g(){}return u&&(u.addEventListener("pointerdown",h),u.addEventListener("pointermove",m),u.addEventListener("pointerup",v),u.addEventListener("pointerout",g)),function(){u&&(u.removeEventListener("pointerdown",h),u.removeEventListener("pointermove",m),u.removeEventListener("pointerup",v),u.removeEventListener("pointerout",g))}}),[c,i,n])},po=function(e){return Kn(),ao(),to(),fo(),function(){var e=Ke().store,t=e.graph,r=e.focusNodes,n=e.width,o=(0,a.useRef)(0);(0,a.useEffect)((function(){return o.current=setTimeout((function(){if(r.length,t){var e=t.getGraphBbox((function(e){return r.includes(e.id)}));if(e){var n={x:(e.x[0]+e.x[1])/2,y:(e.y[0]+e.y[1])/2};t&&t.centerAt&&t.centerAt(n.x,n.y,400)}}}),200),function(){clearTimeout(o.current)}}),[t,r,n])}(),null},yo=r(25046),ho=function(e){var t=Ke(),r=t.updateStore,n=t.store.graph;return a.createElement(Ie.Z,{title:"Clear Canvas",placement:"left"},a.createElement(Ne.ZP,{onClick:function(){r((function(e){e.data={nodes:[],edges:[]},e.source={nodes:[],edges:[]},e.combos=[],e.layout={type:"force",options:{}},e.selectNodes=[],e.selectEdges=[],e.focusNodes=[],e.nodeStatus={},e.edgeStatus={}})),n&&(n.zoomToFit(),n.zoom(6))},icon:a.createElement(yo.Z,null),type:"text"}))},mo=r(73873),vo=["__controlPoints","__style_curvature","__nodePairId","__indexColor"];function go(e){return go="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},go(e)}function bo(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function wo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Oo(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Oo(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Oo(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1})).forEach((function(e){var t=r[e],o=t.length-1,i=t[o];i.__style_curvature=n;for(var a=2*n/o,c=0;ce.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),L(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),h}},t}function oi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ii(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r=n+r.width-1?o.Ly.Right:c<=i+1?o.Ly.Top:c>=r.y+r.height-1?o.Ly.Bottom:o.Ly.Top}var D=function(e){var t=e.sourceX,r=e.sourceY,n=e.targetX,o=e.targetY,i=e.offset,a=n-t,c=o-r,u=Math.sqrt(a*a+c*c);return{x:t+a/2+-(c/u)*i,y:r+c/2+a/u*i}};function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}function C(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function I(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r90?o-=180:o<-90&&(o+=180),o}({x:E,y:j},{x:P,y:_});return n.createElement(n.Fragment,null,n.createElement("path",{id:t,className:"react-flow__edge-path",d:C,markerEnd:S?"url(#arrow-selected)":"url(#arrow)",style:q(q({},a),{},{stroke:O?S?w.primaryColor:"#000":S?w.primaryColor:"#d7d7d7",strokeWidth:S?"2px":"1px"})}),n.createElement(F,{id:t,label:s,filelocation:f,disabled:d,style:{transform:"translate(-50%, -50%) translate(".concat(L.x,"px,").concat(L.y,"px) rotate(").concat(I,"deg)")}}))},J={"table-edge":function(e){e.source,e.target;var t=e.sourceX,r=e.sourceY,i=e.targetX,a=e.targetY,c=e.sourcePosition,u=e.targetPosition,l=e.markerEnd,s=(e.data,e.style||{}),f=(s._isLoop,s._isPoly,s._isRevert,s._offset),p=function(e,t){var r=e.sourceX,n=e.sourceY,o=e.targetX,i=e.targetY,a=(r+o)/2,c=(n+i)/2;return"M ".concat(r," ").concat(n," Q ").concat(a," ").concat(c+t," ").concat(o," ").concat(i)}({sourceX:t,sourceY:r,sourcePosition:c,targetX:i,targetY:a,targetPosition:u},void 0===f?0:f);return n.createElement(n.Fragment,null,n.createElement(o.u5,{path:p,markerEnd:l}))},"graph-edge":$},W=function(e){var t=e.fromX,r=e.fromY,o=e.toX,i=e.toY;return n.createElement("g",{style:{zIndex:-1,position:"absolute"}},n.createElement("path",{fill:"none",stroke:"#000",strokeWidth:1,className:"animated",d:"M".concat(t,",").concat(r," L ").concat(o,",").concat(i),markerEnd:"url(#arrow-dragging)"}),n.createElement("circle",{cx:o,cy:i,fill:"#fff",r:50,className:"animated",stroke:"#000",strokeWidth:1,strokeDasharray:"10, 5"}))},K=function(e){var t=s.Z.useToken().token,r=e.selectedColor,o=void 0===r?t.colorPrimary:r,i=e.color,a=void 0===i?t.colorText:i;return n.createElement("svg",{id:"arrow-marker-svg",width:"200",height:"200",xmlns:"http://www.w3.org/2000/svg",style:{position:"absolute",top:0,left:0,zIndex:-1}},n.createElement("defs",null,n.createElement("marker",{id:"arrow",markerWidth:"10",markerHeight:"10",refX:"8",refY:"3",orient:"auto",markerUnits:"strokeWidth"},n.createElement("path",{d:"M0,0 L0,6 L9,3 z",fill:a})),n.createElement("marker",{id:"arrow-selected",markerWidth:"10",markerHeight:"10",refX:"8",refY:"3",orient:"auto",markerUnits:"strokeWidth"},n.createElement("path",{d:"M0,0 L0,6 L9,3 z",fill:o})),n.createElement("marker",{id:"arrow-dragging",markerWidth:"10",markerHeight:"10",refX:"60",refY:"3",orient:"auto",markerUnits:"strokeWidth"},n.createElement("path",{d:"M0,0 L0,6 L9,3 z",fill:a,className:"animated",strokeDasharray:"10, 5"}))))},Q=r(28541),ee=r(62950),te=r(42655),re=r(44575),ne=r(64681),oe=r(4507),ie=r(2881);var ae=o.RX,ce=1,ue=1,le=function(){return"Vertex_".concat(ce++)},se=function(){return"Edge_".concat(ue++)},fe=function(e){return JSON.parse(JSON.stringify(e))};function pe(e){return pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pe(e)}function de(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ye(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ye(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ye(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&void 0!==arguments[1]?arguments[1]:{poly:30,loop:10,loopLabelPosition:1},r=t.poly,n=void 0===r?30:r,o=t.loop,i=void 0===o?10:o,a=(t.loopLabelPosition,{});e.forEach((function(e,t){var r=me({},e),n=r.source,o=r.target,i="".concat(n,"-").concat(o),c="".concat(o,"-").concat(n);a[i]?a[i].push(r):a[c]?a[c].push(r):a[i]=[r]}));var c=Object.values(a),u=[];return c.forEach((function(e){if(e.length>1){var t=ge(e.length);e.forEach((function(r,o){var c,l=r.source,s=r.target,f=r.data,p="".concat(s,"-").concat(l),d=l===s,y=!!a[p],h=o;if(t){var m=Math.ceil((h+1)/2);c=n*m}else{var v=be(h)?h+1:h,g=Math.ceil(v/2);c=n*g}var b=ge(h)?c:-c,w="poly";y&&(b=-b),d&&(w="loop",b=h*i),u.push(me(me({},r),{},{data:me(me({},f),{},{_extra:{count:e.length,index:h,type:w,isPoly:!0,isLoop:d,offset:b,isRevert:y}})}))}))}else{var r=de(e,1)[0],o=r.source,c=r.target,l=r.data;u.push(me(me({},r),{},{data:me(me({},l),{},{_extra:{count:1,index:0,isLoop:o===c}})}))}})),u},Oe=r(6724),Se=r.n(Oe);function xe(e){return xe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xe(e)}var Ee=["position","key","id","_fromEdge","data"],je=["source","target","id","data"],Pe=["position","key","id","_fromEdge"];function _e(e){return function(e){if(Array.isArray(e))return Le(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Le(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Le(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Le(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var Ce=new(Se().graphlib.Graph);Ce.setDefaultEdgeLabel((function(){return{}}));var Ie=!1,Ne={};function Ze(e,t){var r=e.nodes,n=e.edges;return Ce.setGraph({rankdir:t}),r.forEach((function(e){var t=e._fromEdge;Ce.setNode(e.id,{width:270,height:t?100:200})})),n.forEach((function(e){Ce.setEdge(e.source,e.target)})),Se().layout(Ce),Ce}function Fe(e,t){return e.map((function(e){var r=e.position,n=e.key,i=e.id,a=e._fromEdge,c=e.data,u=void 0===c?{}:c,l=Ae(e,Ee);r&&(Ne[i]=r);var s=Ne[i]||Ce.node(e.id)||{x:500*Math.random(),y:500*Math.random()};return{id:i||n,data:Te(Te({},u),l),type:"table"===t?"table-node":"graph-node",_fromEdge:a,targetPosition:o.Ly.Left,sourcePosition:o.Ly.Right,position:r||{x:s.x,y:s.y}}}))}function Ge(e,t){return we(e).map((function(e,r){var n=e.id,o=e.source,i=e.target,a=e.data;return{id:n||"".concat(o,"-").concat(i,"-").concat(r),source:o,target:i,type:"table"===t?"smoothstep":"graph-edge",data:a}}))}function Me(e,t,r){var n=r.displayMode;if("table"===n){var o=ze({nodes:e,edges:t});return Ze(o,"LR"),{nodes:Re(o.nodes,n),edges:Ge(o.edges,n)}}return"graph"===n?(Ie||(Ze({nodes:e,edges:t},"LR"),Ie=!0),{nodes:Fe(e,n),edges:Ge(t,n)}):{nodes:[],edges:[]}}function ze(e){var t=e.nodes,r=e.edges,n=[],o=r.map((function(e){var t=e.source,r=e.target,o=e.id,i=e.data,a=Ae(e,je);return n.push({id:(0,ee.Z)(),source:t,target:o,type:"smoothstep",data:Te(Te({},a),{},{label:""})}),n.push({id:(0,ee.Z)(),source:o,target:r,type:"smoothstep",data:{label:""}}),Te(Te({},e),{},{_fromEdge:!0,id:e.id,data:i,position:{x:0,y:0}})}));return{nodes:[].concat(_e(t.map((function(e){return Te(Te({},e),{},{position:{x:0,y:0}})}))),_e(o.map((function(e){return Te({},e)})))),edges:n}}function Re(e,t){return e.map((function(e){var r=e.position,n=e.key,i=e.id,a=e._fromEdge,c=Ae(e,Pe),u=Ce.node(e.id)||{x:500*Math.random(),y:500*Math.random()};return Ne[i]=r,Te(Te({},e),{},{id:i||n,type:"table"===t?"table-node":"graph-node",_fromEdge:a,targetPosition:o.Ly.Left,sourcePosition:o.Ly.Right,position:r||{x:u.x,y:u.y},data:Te(Te({_fromEdge:a},c),{},{label:i})})}))}function Ue(e){return function(e){if(Array.isArray(e))return Ye(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Ye(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ye(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ye(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&!f){var e=function(e,t){for(var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.iterations,o=void 0===n?1e3:n,i=r.center,a=void 0===i?{x:window.innerWidth/2,y:window.innerHeight/2}:i,c=250,u=c*(0===t.length?.5:8)*-1,l=(0,te.Z)(e).force("link",(0,re.Z)(t).id((function(e){return e.id})).distance(c)).force("charge",(0,ne.Z)().strength(u)).force("center",(0,oe.Z)(a.x,a.y)).force("radial",(0,ie.Z)(0,a.x,a.y).strength(.01)).stop(),s=0;se.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),L(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),h}},t}function pt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function dt(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),L(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),h}},t}function St(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function xt(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r1)return"A edge can only have one property.";if(!o.every((function(e){return e.type})))return"Please select a primate type."}return null}return null}var zt=function(e){var t=e.appMode,r=Mt({appMode:void 0===t?"DATA_IMPORTING":t,type:e.type,properties:e.properties,filelocation:e.filelocation}),o=Ft().token;return r?n.createElement(rt.Z,{title:n.createElement(He.Z,{id:"".concat(r)})},n.createElement(ot.ZP,{type:"text",size:"small",icon:n.createElement(Zt.Z,{style:{color:o.colorErrorActive}})})):null},Rt=r(67492);function Ut(e){return Ut="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ut(e)}function Yt(){Yt=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var i=t&&t.prototype instanceof m?t:m,a=Object.create(i.prototype),c=new k(n||[]);return o(a,"_invoke",{value:j(e,r,c)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=s;var p="suspendedStart",d="executing",y="completed",h={};function m(){}function v(){}function g(){}var b={};l(b,a,(function(){return this}));var w=Object.getPrototypeOf,O=w&&w(w(T([])));O&&O!==r&&n.call(O,a)&&(b=O);var S=g.prototype=m.prototype=Object.create(b);function x(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function r(o,i,a,c){var u=f(e[o],e,i);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==Ut(s)&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(s).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function j(t,r,n){var o=p;return function(i,a){if(o===d)throw new Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=P(c,n);if(u){if(u===h)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var l=f(t,r,n);if("normal"===l.type){if(o=n.done?y:"suspendedYield",l.arg===h)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=y,n.method="throw",n.arg=l.arg)}}}function P(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,P(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,h;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,h):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function T(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),L(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),h}},t}function Bt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function qt(e){for(var t=1;t=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),L(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),h}},t}function Wt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Kt(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),L(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),h}},t}function ur(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function lr(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),L(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),h}},t}function kr(e,t,r,n,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void r(e)}c.done?t(u):Promise.resolve(u).then(n,o)}var Tr=function(e){var t=function(){var e,t=(e=Lr().mark((function e(){var t,r;return Lr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t=document.querySelector(".react-flow__viewport"))){e.next=6;break}return e.next=4,(0,Pr.KT)(t,{});case 4:r=e.sent,c.Utils.downloadImage(r,"model.svg");case 6:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){kr(i,n,o,a,c,"next",e)}function c(e){kr(i,n,o,a,c,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}();return n.createElement(rt.Z,{title:n.createElement(He.Z,{id:"Save graph model to svg image"}),placement:"right"},n.createElement(ot.ZP,{type:"text",icon:n.createElement(jr.Z,null),onClick:t}))},Dr=r(52018),Ar=r(31097),Cr=function(e){var t="label";var r=function(e){var t=[],r=[];return e.forEach((function(e){var n=e.meta,o=e.contents,i=n.graphFields,a=n.name,c=n.header,u=n.delimiter,l=i.idField,s=i.sourceField,f=void 0===s?"source":s,p=i.targetField,d=void 0===p?"target":p,y=i.type,h=a.split(".csv")[0],m=function(e,t,r){var n=function(e){return e.replace(/\r\n/g,"\n").replace(/\r/g,"\n")}(e).split("\n");return n.slice(1).map((function(e){for(var n=e.split(r),o={},i=0;i=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),L(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),h}},t}function zr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Rr(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&void 0!==arguments[1]?arguments[1]:function(e){return{}},r=e||{vertex_types:[],edge_types:[]},n=r.vertex_types,o=r.edge_types,i={},a=n.map((function(e){var r=e.primary_keys,n=void 0===r?[]:r,o=e.properties,a=void 0===o?[]:o,c=e.type_name,u=(0,ee.Z)();i[c]=u;var l=t(e);return{id:u,data:nn(nn({label:c,primary:n[0]},l),{},{properties:a.map((function(e,t){var r=e.property_name,o=e.property_type;return{key:(0,ee.Z)(),index:t,token:"",name:r,type:"primitive_type"in o?o.primitive_type:"DT_STRING",primaryKey:n[0]===r}}))}),position:{x:0,y:0}}})),c=[];return o&&o.forEach((function(e){var r=e.type_name,n=e.properties,o=void 0===n?[]:n,a=e.vertex_type_pair_relations,u=t(e);a.forEach((function(e){var t=e.destination_vertex,n=e.source_vertex,a=(e.relation,i[n]),l=i[t];c.push({source:a,target:l,id:(0,ee.Z)(),data:nn(nn({label:r},u),{},{properties:o.map((function(e){return{key:(0,ee.Z)(),name:e.property_name,type:"primitive_type"in e.property_type?e.property_type.primitive_type:"DT_STRING",primaryKey:!1,disable:!1,token:""}}))})})}))})),{nodes:a,edges:c}}var cn=function(e){return"DT_STRING"===e?{string:{long_text:""}}:{primitive_type:e}};function un(e){var t={},r=e.nodes.map((function(e,r){var n=e.id,o=e.data,i=o.label,a=o.properties,c=void 0===a?[]:a,u=o.primary;t[n]=i;var l=u;return{type_id:r,type_name:i,properties:c.map((function(e,t){return e.primaryKey&&(l=e.name),{property_id:t,property_name:e.name,property_type:cn(e.type)}}))||[],primary_keys:[l]}})),n=new Map;return e.edges.forEach((function(e,r){var o=e.source,i=e.target,a=e.data,c=a.properties,u=void 0===c?[]:c,l=a.label,s=t[o],f={destination_vertex:t[i],relation:"MANY_TO_MANY",source_vertex:s},p=n.get(l);if(p){var d=(p.properties||{}).vertex_type_pair_relations;(void 0===d?[]:d).push(f),n.set(l,p)}else n.set(l,{type_id:r,type_name:l,properties:(u||[]).map((function(e,t){return{property_id:t,property_name:e.name,property_type:cn(e.type)}}))||[],vertex_type_pair_relations:[f]})})),{vertex_types:r,edge_types:en(n.values())}}function ln(e){return ln="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ln(e)}function sn(e){return function(e){if(Array.isArray(e))return fn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return fn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return fn(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),L(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),h}},t}function jn(e,t,r,n,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void r(e)}c.done?t(u):Promise.resolve(u).then(n,o)}var Pn=nt.Z.Dragger,_n=function(e){return"schema"in e?e.schema:"vertex_types"in e&&"edge_types"in e?e:"vertex_mappings"in e&&"edge_mappings"in e?{vertex_mappings:e.vertex_mappings,edge_mappings:e.edge_mappings}:{}},Ln=function(e){var t=e.style,r=void 0===t?{}:t,o=e.icon,i=void 0===o?n.createElement(c.Icons.File,{text:"YAML"}):o,a=e.disabled,u=(0,p.qp)(),l=u.updateStore,s=u.store,f=s.appMode,d=s.nodes,y=s.edges,h=function(){var e,t=(e=En().mark((function e(t){var r,n,o,i,a;return En().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.file,n=r.type,e.prev=2,e.next=5,c.Utils.parseFile(r);case 5:o=e.sent,"application/x-yaml"===n&&(i=_n(gn.ZP.load(o))),"application/json"===n&&(i=_n(JSON.parse(o))),"DATA_MODELING"===f&&(a=an(i,(function(){return{disabled:!1,saved:!1}}))),"DATA_IMPORTING"===f&&(a=mn({},i,{nodes:d,edges:y})),l((function(e){e.hasLayouted=!1,e.nodes=Fe(a.nodes,"graph"),e.edges=Ge(a.edges,"graph")})),e.next=17;break;case 13:e.prev=13,e.t0=e.catch(2),console.error("解析文件失败:",e.t0),bn.ZP.error("解析文件失败");case 17:case"end":return e.stop()}}),e,null,[[2,13]])})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){jn(i,n,o,a,c,"next",e)}function c(e){jn(i,n,o,a,c,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}();return n.createElement("div",{style:{height:"100%",width:"100%"}},n.createElement(Pn,{disabled:"DATA_MODELING"===f&&a,accept:".yaml,.json",customRequest:h,showUploadList:!1,multiple:!0,style:Sn({height:"100px",width:"100%"},r)},n.createElement(Ke.Z,{justify:"center",align:"center",vertical:!0,gap:24},i,n.createElement(Qe.Z.Text,{type:"secondary"},n.createElement(He.Z,{id:"For the definition and description of the schema model, please refer to the "}),n.createElement("a",{href:"https://graphscope.io/docs/flex/interactive/data_model",target:"_blank"},n.createElement(He.Z,{id:"document"}))))))},kn=s.Z.useToken,Tn={DATA_MODELING:{importText:"Import YAML or JSON file to generate graph model",exportText:"Save graph model to local YAML or JSON file"},DATA_IMPORTING:{importText:"Import YAML or JSON file to generate graph loading config",exportText:"Save graph loading config to local YAML or JSON file"},PURE:{importText:"Import YAML or JSON file to generate graph loading config",exportText:"Save graph loading config to local YAML or JSON file"}},Dn=function(){var e=kn().token,t=(0,p.qp)().store,r=t.nodes,o=t.edges,i=t.appMode,a=Tn[i],u=a.importText,l=a.exportText,s=function(e){var t;if("DATA_MODELING"===i){var n=un(c.Utils.fakeSnapshot({nodes:r,edges:o}));return"yaml"===e&&(t=gn.ZP.dump(n)),"json"===e&&(t=JSON.stringify(n)),void c.Utils.download("create-model.".concat(e),t)}if("DATA_IMPORTING"===i){var a=vn(c.Utils.fakeSnapshot({nodes:r,edges:o}));return"yaml"===e&&(t=gn.ZP.dump(a)),"json"===e&&(t=JSON.stringify(a)),void c.Utils.download("loading-config.".concat(e),t)}};return n.createElement(Ke.Z,{justify:"center",vertical:!0,style:{padding:"20px",width:"350px"},gap:10},n.createElement(Qe.Z.Text,{type:"secondary"},u),n.createElement(Ln,{disabled:0!==r.length,style:{height:"160px"},icon:n.createElement(Je.Z,{split:"or"},n.createElement(c.Icons.File,{text:"YAML",style:{fontSize:"30px",color:e.colorTextSecondary}}),n.createElement(c.Icons.File,{text:"JSON",style:{fontSize:"30px",color:e.colorTextSecondary}}))}),n.createElement(vr.Z,{style:{margin:"12px 0px"}}),n.createElement(Qe.Z.Text,{type:"secondary"},l),n.createElement(Ke.Z,{gap:10},n.createElement(ot.ZP,{style:{width:"50%"},onClick:function(){return s("yaml")}},"EXPORT YAML"),n.createElement(ot.ZP,{style:{width:"50%"},onClick:function(){return s("json")}},"EXPORT JSON")))},An=function(e){return n.createElement(Kr.Z,{placement:"leftBottom",content:n.createElement(Dn,null)},n.createElement(ot.ZP,{type:"text",icon:n.createElement(c.Icons.FileYaml,null)}))},Cn=function(e){var t=(0,p.qp)().store.appMode;return"DATA_MODELING"===t?n.createElement(n.Fragment,null,n.createElement(c.Toolbar,{style:{top:"12px",right:"24px",left:"unset"},direction:"vertical"},n.createElement(gr,null),n.createElement(vr.Z,{style:{margin:"0px"}}),n.createElement(Wr,null),n.createElement(vr.Z,{style:{margin:"0px"}}),n.createElement(An,null),n.createElement(vr.Z,{style:{margin:"0px"}}),n.createElement(Er,null),n.createElement(br,null),n.createElement(Tr,null))):"DATA_IMPORTING"===t?n.createElement(n.Fragment,null,n.createElement(c.Toolbar,{style:{top:"12px",right:"24px",left:"unset"},direction:"vertical"},n.createElement(gr,null),n.createElement(vr.Z,{style:{margin:"0px"}}),n.createElement(An,null))):null},In={appMode:"DATA_MODELING",disabled:!1,nodes:[],edges:[],source:{nodes:[],edges:[]},nodePositionChange:[],isReady:!1,displayMode:"graph",graphPosition:{},tablePosition:{},currentType:"nodes",currentId:"",theme:{primaryColor:"#1978FF"},collapsed:{left:!0,right:!0},hasLayouted:!1,elementOptions:{isEditable:!0,isConnectable:!0},csvFiles:[],isSaveFiles:!0},Nn={"en-US":{"Start sketching a model, a vertex label is a named grouping or categorization of nodes within the graph dataset":"Start sketching a model, a vertex label is a named grouping or categorization of nodes within the graph dataset","Please manually input the odps file location":"Please manually input the odps file location",Upload:"Upload","Load data":"Load data","Start importing":"Start importing",Close:"Close","Goto Modeling":"Goto Modeling","Save Modeling":"Save Modeling","Goto Graphs":"Goto Graphs","Goto Importing":"Goto Importing","Go back to modify the graph model.":"Go back to modify the graph model.","View Schema":"View Schema","Successfully saved the graph model":"Successfully saved the graph model","Failed to save the graph model":"Failed to save the graph model","Please create the graph model first":"Please create the graph model first","Sorry, the system detected that there is no available graph model. Please create a graph model before importing data":"Sorry, the system detected that there is no available graph model. Please create a graph model before importing data","Bulk Import":"Bulk Import","Bulk Import Data":"Bulk Import Data","The system has detected that you have previously uploaded CSV files. You can quickly bulk import data into graphscope":"The system has detected that you have previously uploaded CSV files. You can quickly bulk import data into graphscope","Click or drag file to this area to upload":"Click or drag file to this area to upload","Clear all files":"Clear all files","Generate graph model":"Generate graph model","If you already have CSV data, feel free to upload it here, and the system will automatically infer possible graph models for you.":"If you already have CSV data, feel free to upload it here, and the system will automatically infer possible graph models for you.","If you already have SQLDDL file, feel free to upload it here, and the system will automatically infer possible graph models for you.":"If you already have SQLDDL file, feel free to upload it here, and the system will automatically infer possible graph models for you.","A vertex must have a primary key.":"A vertex must have a primary key.","A vertex must have at least one property.":"A vertex must have at least one property.","A edge can only have one property.":"A edge can only have one property.","The current mode is preview only, and does not support clearing the model":"The current mode is preview only, and does not support clearing the model","Clear graph model":"Clear graph model","The current mode is preview only, and does not support creating new vertex":"The current mode is preview only, and does not support creating new vertex","Create new vertex":"Create new vertex","The current mode is preview only, and does not support opening multi-source modeling":"The current mode is preview only, and does not support opening multi-source modeling","Expand or collapse multi-source modeling":"Expand or collapse multi-source modeling",Configuration:"Configuration","You have successfully bound the data source. Please complete the configuration to start importing data.":"You have successfully bound the data source. Please complete the configuration to start importing data.","The data loading task has been successfully created. You can view detailed logs in the job center.":"The data loading task has been successfully created. You can view detailed logs in the job center.","Goto Jobs":"Goto Jobs","Please select a primate type.":"Please select a primate type.","Click or drag file to this area to parse it":"Click or drag file to this area to parse it","If you already have CSV data, feel free to parse it here, and the system will automatically infer possible graph models for you.":"If you already have CSV data, feel free to parse it here, and the system will automatically infer possible graph models for you.","Data source binding":"Data source binding","Shortcut: parse files into a graph model":"Shortcut: parse files into a graph model","Save graph model to svg image":"Save graph model to svg image","Save graph model to JSON config":"Save graph model to JSON config","Parse files into a graph model":"Parse files into a graph model","For the definition and description of the schema model, please refer to the ":"For the definition and description of the schema model, please refer to the ",document:"document",Vertex:"Vertex",Edges:"Edges","File type":"File type","ID field":"ID field","Label field":"Label field","Target field":"Target field","Source field":"Source field","Delete label":"Delete label",Label:"Label","Data Fields":"Data Fields","Add Property":"Add Property",Properties:"Properties","Uploading...":"Uploading...",Delimiter:"Delimiter",Type:"Type","Header Row":"Header Row","Import Option":"Import Option",Quoting:"Quoting","Quote char":"Quote char",Source:"Source",Target:"Target"},"zh-CN":{"Start sketching a model, a vertex label is a named grouping or categorization of nodes within the graph dataset":"开始绘制模型吧,顶点标签是图数据集中节点的命名分组或分类","Please manually input the odps file location":"请手动填写 odps 文件位置",Upload:"上传","Load data":"加载数据","Start importing":"开始导入",Close:"关闭","Goto Modeling":"跳转到建模","Save Modeling":"保存建模","Goto Graphs":"跳转到图实例列表","Goto Importing":"跳转到数据导入","Go back to modify the graph model.":"返回修改图实例。","View Schema":"查看 Schema","Successfully saved the graph model":"已成功保存图模型","Failed to save the graph model":"无法保存图模型","Please create the graph model first":"请先创建图模型","Sorry, the system detected that there is no available graph model. Please create a graph model before importing data":"对不起,系统检测到没有可用的图模型。导入数据前请先创建图模型.","Bulk Import":"批量导入","Bulk Import Data":"批量导入数据","The system has detected that you have previously uploaded CSV files. You can quickly bulk import data into graphscope":"系统检测到您之前上传过 CSV 文件。您可以快速将数据批量导入 graphscope","Click or drag file to this area to upload":"单击或拖动文件到此区域进行上传","Clear all files":"清除所有文件","Generate graph model":"生成图模型","If you already have CSV data, feel free to upload it here, and the system will automatically infer possible graph models for you.":"如果您已经有 CSV 数据,请随时将其上传到此处,系统将自动为您推断可能的图模型。","If you already have SQLDDL file, feel free to upload it here, and the system will automatically infer possible graph models for you.":"如果您已经有 SQLDDL 文件,请随时在此处上传,系统将自动为您推断可能的图模型。","A vertex must have a primary key.":"节点必须具有一个主键。","A vertex must have at least one property.":"节点必须至少具有一个属性。","A edge can only have one property.":"一条边只能有一个属性。","The current mode is preview only, and does not support clearing the model":"当前模式仅为预览模式,不支持清除模型","Clear graph model":"清除模型","The current mode is preview only, and does not support creating new vertex":"当前模式仅为预览模式,不支持创建新顶点","Create new vertex":"创建节点","The current mode is preview only, and does not support opening multi-source modeling":"当前模式仅为预览模式,不支持打开多源建模","Expand or collapse multi-source modeling":"展开或折叠多源建模",Configuration:"配置","You have successfully bound the data source. Please complete the configuration to start importing data.":"您已成功绑定数据源。请完成配置以开始导入数据。","The data loading task has been successfully created. You can view detailed logs in the job center.":"数据加载任务已成功创建。您可以在作业中心查看详细日志。","Goto Jobs":"跳转到日志","Please select a primate type.":"请补充完数据类型","Click or drag file to this area to parse it":"单击或拖动文件到此区域进行解析","If you already have CSV data, feel free to parse it here, and the system will automatically infer possible graph models for you.":"如果您已经有 CSV 数据,请随时将其放置到此处,系统将自动为您推断可能的图模型。","Data source binding":"数据绑定","Shortcut: parse files into a graph model":"快捷方式:将文件解析为图模型","Save graph model to svg image":"将图模型保存到 svg 图像","Save graph model to JSON config":"将图模型保存到 JSON 配置","Parse files into a graph model":"将文件解析为图模型","For the definition and description of the schema model, please refer to the ":"关于模式模型的定义和描述,请参阅 ",document:"文档",Vertex:"节点",Edges:"边","File type":"文件类型","ID field":"ID 字段","Label field":"标题","Target field":"终止点字段","Source field":"起始点字段","Delete label":"删除标题",Label:"标题",Source:"起始点",Target:"目标点","Data Fields":"数据","Add Property":"添加属性",Properties:"属性","Uploading...":"上传中...",Delimiter:"定界符",Type:"类型","Header Row":"标题行","Import Option":"导入选项",Quoting:"引用","Quote char":"分隔符"}};function Zn(e){return Zn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zn(e)}function Fn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Gn(e){for(var t=1;t=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),L(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),h}},t}function Rn(e,t,r,n,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void r(e)}c.done?t(u):Promise.resolve(u).then(n,o)}var Un=function(e){var t=e.appMode,r=e.GS_ENGINE_TYPE,i=e.queryGraphSchema,a=e.queryBoundSchema,u=(e.id,e.theme,e.defaultCollapsed),l=void 0===u?{rightSide:!1,leftSide:!0}:u,s=e.leftSideStyle,f=void 0===s?{width:"350px",padding:"0px 12px"}:s,d=e.rightSideStyle,y=void 0===d?{width:"450px",padding:"0px 12px"}:d,h=e.children,m=e.queryPrimitiveTypes,v=e.handleUploadFile,g=e.isSaveFiles,b=e.batchUploadFiles,w=e.onCreateLabel,O=e.onDeleteLabel,S=e.style,x=(e.leftSide,e.rightSide),E=(0,p.qp)(),j=E.store,P=E.updateStore,_=j.isReady,L=j.displayMode;(0,c.useDynamicStyle)("\n/* this gets exported as style.css and can be used for the default theming */\n/* these are the necessary styles for React Flow, they get used by base.css and style.css */\n.react-flow {\n direction: ltr;\n}\n.react-flow__container {\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n}\n.react-flow__pane {\n z-index: 1;\n cursor: -webkit-grab;\n cursor: grab;\n}\n.react-flow__pane.selection {\n cursor: pointer;\n }\n.react-flow__pane.dragging {\n cursor: -webkit-grabbing;\n cursor: grabbing;\n }\n.react-flow__viewport {\n transform-origin: 0 0;\n z-index: 2;\n pointer-events: none;\n}\n.react-flow__renderer {\n z-index: 4;\n}\n.react-flow__selection {\n z-index: 6;\n}\n.react-flow__nodesselection-rect:focus,\n.react-flow__nodesselection-rect:focus-visible {\n outline: none;\n}\n.react-flow .react-flow__edges {\n pointer-events: none;\n overflow: visible;\n}\n.react-flow__edge-path,\n.react-flow__connection-path {\n stroke: #b1b1b7;\n stroke-width: 1;\n fill: none;\n}\n.react-flow__edge {\n pointer-events: visibleStroke;\n cursor: pointer;\n}\n.react-flow__edge.animated path {\n stroke-dasharray: 5;\n -webkit-animation: dashdraw 0.5s linear infinite;\n animation: dashdraw 0.5s linear infinite;\n }\n.react-flow__edge.animated path.react-flow__edge-interaction {\n stroke-dasharray: none;\n -webkit-animation: none;\n animation: none;\n }\n.react-flow__edge.inactive {\n pointer-events: none;\n }\n.react-flow__edge.selected,\n .react-flow__edge:focus,\n .react-flow__edge:focus-visible {\n outline: none;\n }\n.react-flow__edge.selected .react-flow__edge-path,\n .react-flow__edge:focus .react-flow__edge-path,\n .react-flow__edge:focus-visible .react-flow__edge-path {\n stroke: #555;\n }\n.react-flow__edge-textwrapper {\n pointer-events: all;\n }\n.react-flow__edge-textbg {\n fill: white;\n }\n.react-flow__edge .react-flow__edge-text {\n pointer-events: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n }\n.react-flow__connection {\n pointer-events: none;\n}\n.react-flow__connection .animated {\n stroke-dasharray: 5;\n -webkit-animation: dashdraw 0.5s linear infinite;\n animation: dashdraw 0.5s linear infinite;\n }\n.react-flow__connectionline {\n z-index: 1001;\n}\n.react-flow__nodes {\n pointer-events: none;\n transform-origin: 0 0;\n}\n.react-flow__node {\n position: absolute;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n pointer-events: all;\n transform-origin: 0 0;\n box-sizing: border-box;\n cursor: -webkit-grab;\n cursor: grab;\n}\n.react-flow__node.dragging {\n cursor: -webkit-grabbing;\n cursor: grabbing;\n }\n.react-flow__nodesselection {\n z-index: 3;\n transform-origin: left top;\n pointer-events: none;\n}\n.react-flow__nodesselection-rect {\n position: absolute;\n pointer-events: all;\n cursor: -webkit-grab;\n cursor: grab;\n }\n.react-flow__handle {\n position: absolute;\n pointer-events: none;\n min-width: 5px;\n min-height: 5px;\n width: 6px;\n height: 6px;\n background: #1a192b;\n border: 1px solid white;\n border-radius: 100%;\n}\n.react-flow__handle.connectionindicator {\n pointer-events: all;\n cursor: crosshair;\n }\n.react-flow__handle-bottom {\n top: auto;\n left: 50%;\n bottom: -4px;\n transform: translate(-50%, 0);\n }\n.react-flow__handle-top {\n left: 50%;\n top: -4px;\n transform: translate(-50%, 0);\n }\n.react-flow__handle-left {\n top: 50%;\n left: -4px;\n transform: translate(0, -50%);\n }\n.react-flow__handle-right {\n right: -4px;\n top: 50%;\n transform: translate(0, -50%);\n }\n.react-flow__edgeupdater {\n cursor: move;\n pointer-events: all;\n}\n.react-flow__panel {\n position: absolute;\n z-index: 5;\n margin: 15px;\n}\n.react-flow__panel.top {\n top: 0;\n }\n.react-flow__panel.bottom {\n bottom: 0;\n }\n.react-flow__panel.left {\n left: 0;\n }\n.react-flow__panel.right {\n right: 0;\n }\n.react-flow__panel.center {\n left: 50%;\n transform: translateX(-50%);\n }\n.react-flow__attribution {\n font-size: 10px;\n background: rgba(255, 255, 255, 0.5);\n padding: 2px 3px;\n margin: 0;\n}\n.react-flow__attribution a {\n text-decoration: none;\n color: #999;\n }\n@-webkit-keyframes dashdraw {\n from {\n stroke-dashoffset: 10;\n }\n}\n@keyframes dashdraw {\n from {\n stroke-dashoffset: 10;\n }\n}\n.react-flow__edgelabel-renderer {\n position: absolute;\n width: 100%;\n height: 100%;\n pointer-events: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n.react-flow__edge.updating .react-flow__edge-path {\n stroke: #777;\n }\n.react-flow__edge-text {\n font-size: 10px;\n }\n.react-flow__node.selectable:focus,\n .react-flow__node.selectable:focus-visible {\n outline: none;\n }\n.react-flow__node-default,\n.react-flow__node-input,\n.react-flow__node-output,\n.react-flow__node-group {\n padding: 10px;\n border-radius: 3px;\n width: 150px;\n font-size: 12px;\n color: #222;\n text-align: center;\n border-width: 1px;\n border-style: solid;\n border-color: #1a192b;\n background-color: white;\n}\n.react-flow__node-default.selectable:hover, .react-flow__node-input.selectable:hover, .react-flow__node-output.selectable:hover, .react-flow__node-group.selectable:hover {\n box-shadow: 0 1px 4px 1px rgba(0, 0, 0, 0.08);\n }\n.react-flow__node-default.selectable.selected,\n .react-flow__node-default.selectable:focus,\n .react-flow__node-default.selectable:focus-visible,\n .react-flow__node-input.selectable.selected,\n .react-flow__node-input.selectable:focus,\n .react-flow__node-input.selectable:focus-visible,\n .react-flow__node-output.selectable.selected,\n .react-flow__node-output.selectable:focus,\n .react-flow__node-output.selectable:focus-visible,\n .react-flow__node-group.selectable.selected,\n .react-flow__node-group.selectable:focus,\n .react-flow__node-group.selectable:focus-visible {\n box-shadow: 0 0 0 0.5px #1a192b;\n }\n.react-flow__node-group {\n background-color: rgba(240, 240, 240, 0.25);\n}\n.react-flow__nodesselection-rect,\n.react-flow__selection {\n background: rgba(0, 89, 220, 0.08);\n border: 1px dotted rgba(0, 89, 220, 0.8);\n}\n.react-flow__nodesselection-rect:focus,\n .react-flow__nodesselection-rect:focus-visible,\n .react-flow__selection:focus,\n .react-flow__selection:focus-visible {\n outline: none;\n }\n.react-flow__controls {\n box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.08);\n}\n.react-flow__controls-button {\n border: none;\n background: #fefefe;\n border-bottom: 1px solid #eee;\n box-sizing: content-box;\n display: flex;\n justify-content: center;\n align-items: center;\n width: 16px;\n height: 16px;\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n padding: 5px;\n }\n.react-flow__controls-button:hover {\n background: #f4f4f4;\n }\n.react-flow__controls-button svg {\n width: 100%;\n max-width: 12px;\n max-height: 12px;\n }\n.react-flow__controls-button:disabled {\n pointer-events: none;\n }\n.react-flow__controls-button:disabled svg {\n fill-opacity: 0.4;\n }\n.react-flow__minimap {\n background-color: #fff;\n}\n.react-flow__minimap svg {\n display: block;\n}\n.react-flow__resize-control {\n position: absolute;\n}\n.react-flow__resize-control.left,\n.react-flow__resize-control.right {\n cursor: ew-resize;\n}\n.react-flow__resize-control.top,\n.react-flow__resize-control.bottom {\n cursor: ns-resize;\n}\n.react-flow__resize-control.top.left,\n.react-flow__resize-control.bottom.right {\n cursor: nwse-resize;\n}\n.react-flow__resize-control.bottom.left,\n.react-flow__resize-control.top.right {\n cursor: nesw-resize;\n}\n/* handle styles */\n.react-flow__resize-control.handle {\n width: 4px;\n height: 4px;\n border: 1px solid #fff;\n border-radius: 1px;\n background-color: #3367d9;\n transform: translate(-50%, -50%);\n}\n.react-flow__resize-control.handle.left {\n left: 0;\n top: 50%;\n}\n.react-flow__resize-control.handle.right {\n left: 100%;\n top: 50%;\n}\n.react-flow__resize-control.handle.top {\n left: 50%;\n top: 0;\n}\n.react-flow__resize-control.handle.bottom {\n left: 50%;\n top: 100%;\n}\n.react-flow__resize-control.handle.top.left {\n left: 0;\n}\n.react-flow__resize-control.handle.bottom.left {\n left: 0;\n}\n.react-flow__resize-control.handle.top.right {\n left: 100%;\n}\n.react-flow__resize-control.handle.bottom.right {\n left: 100%;\n}\n/* line styles */\n.react-flow__resize-control.line {\n border-color: #3367d9;\n border-width: 0;\n border-style: solid;\n}\n.react-flow__resize-control.line.left,\n.react-flow__resize-control.line.right {\n width: 1px;\n transform: translate(-50%, 0);\n top: 0;\n height: 100%;\n}\n.react-flow__resize-control.line.left {\n left: 0;\n border-left-width: 1px;\n}\n.react-flow__resize-control.line.right {\n left: 100%;\n border-right-width: 1px;\n}\n.react-flow__resize-control.line.top,\n.react-flow__resize-control.line.bottom {\n height: 1px;\n transform: translate(0, -50%);\n left: 0;\n width: 100%;\n}\n.react-flow__resize-control.line.top {\n top: 0;\n border-top-width: 1px;\n}\n.react-flow__resize-control.line.bottom {\n border-bottom-width: 1px;\n top: 100%;\n}\n","graphscope-importor"),(0,n.useEffect)((function(){var e;(e=zn().mark((function e(){var n,o,c,u,l,s;return zn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n={nodes:[],edges:[]},"DATA_MODELING"!==t||!i){e.next=5;break}return e.next=4,i();case 4:n=e.sent;case 5:if("DATA_IMPORTING"!==t||!a){e.next=9;break}return e.next=8,a();case 8:n=e.sent;case 9:o={nodes:Fe(n.nodes,L),edges:Ge(n.edges,L)},l=(c=o||{nodes:[],edges:[]}).edges,s=0===(u=c.nodes).length,P((function(e){e.isReady=!0,e.nodes=u,e.edges=l,e.appMode=t,e.elementOptions={isEditable:!s,isConnectable:"groot"===r&&"DATA_MODELING"===t||s},e.currentId=s?"":u[0].id,e.currentType="nodes",e.isSaveFiles=g}));case 13:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Rn(i,n,o,a,c,"next",e)}function c(e){Rn(i,n,o,a,c,"throw",e)}a(void 0)}))})()}),[]);var k="PURE"===t;return n.createElement(c.StudioProvier,{locales:Nn},n.createElement(c.Section,{rightSide:x||n.createElement(mr,{appMode:t,queryPrimitiveTypes:m,handleUploadFile:v,batchUploadFiles:b,onCreateLabel:w,onDeleteLabel:O}),leftSideStyle:f,rightSideStyle:y,defaultCollapsed:l,style:Gn({height:"calc(100vh - 50px)"},S),splitBorder:!0},_?n.createElement(o.tV,null,!k&&n.createElement(Cn,null),n.createElement($e,null),h):n.createElement(c.GlobalSpin,null)))},Yn=function(e){return n.createElement(p.ZP,{id:e.id,store:In},n.createElement(Un,e))},Bn=r(10422);function qn(e){return qn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qn(e)}function Hn(){Hn=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var i=t&&t.prototype instanceof m?t:m,a=Object.create(i.prototype),c=new k(n||[]);return o(a,"_invoke",{value:j(e,r,c)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=s;var p="suspendedStart",d="executing",y="completed",h={};function m(){}function v(){}function g(){}var b={};l(b,a,(function(){return this}));var w=Object.getPrototypeOf,O=w&&w(w(T([])));O&&O!==r&&n.call(O,a)&&(b=O);var S=g.prototype=m.prototype=Object.create(b);function x(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function r(o,i,a,c){var u=f(e[o],e,i);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==qn(s)&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(s).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function j(t,r,n){var o=p;return function(i,a){if(o===d)throw new Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=P(c,n);if(u){if(u===h)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var l=f(t,r,n);if("normal"===l.type){if(o=n.done?y:"suspendedYield",l.arg===h)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=y,n.method="throw",n.arg=l.arg)}}}function P(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,P(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,h;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,h):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function T(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),L(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),h}},t}function Vn(e,t,r,n,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void r(e)}c.done?t(u):Promise.resolve(u).then(n,o)}var Xn={render_modeling:function(e){var t=(e||{}).id,r=void 0===t?"root":t,o=function(){var e,t=(e=Hn().mark((function e(){return Hn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{nodes:[],edges:[]});case 1:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Vn(i,n,o,a,c,"next",e)}function c(e){Vn(i,n,o,a,c,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}(),i=e.queryPrimitiveTypes,a=void 0===i?function(){return["DT_DOUBLE","DT_STRING","DT_SIGNED_INT32","DT_SIGNED_INT64"].map((function(e){return{label:e,value:e}}))}:i,c=e.queryGraphSchema,u=void 0===c?o:c,l=e.appMode,s=void 0===l?"DATA_MODELING":l;Bn.render(n.createElement(Yn,{queryPrimitiveTypes:a,queryGraphSchema:u,appMode:s}),document.getElementById(r))}},$n=Xn,Jn=Yn},33741:function(e,t,r){r.d(t,{qp:function(){return y}});var n=r(53874),o=r(50959),i=r(55227);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),L(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),h}},t}function K(e,t,r,n,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void r(e)}c.done?t(u):Promise.resolve(u).then(n,o)}function Q(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){K(i,n,o,a,c,"next",e)}function c(e){K(i,n,o,a,c,"throw",e)}a(void 0)}))}}function ee(e){return te.apply(this,arguments)}function te(){return te=Q(W().mark((function e(t){var r,n,o,i,a=arguments;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=a.length>1&&void 0!==a[1]?a[1]:"online",n=a.length>2?a[2]:void 0,"online"!==r){e.next=8;break}return o=n||"https://at.alicdn.com/t/a/".concat(t,".json"),e.next=6,fetch(o).then((function(e){return e.json()}));case 6:return i=e.sent,e.abrupt("return",i);case 8:return e.abrupt("return",{id:"",name:"",font_family:"",css_prefix_text:"",description:"",glyphs:[]});case 9:case"end":return e.stop()}}),e)}))),te.apply(this,arguments)}function re(e){return ne.apply(this,arguments)}function ne(){return ne=Q(W().mark((function e(t){var r,n,o=arguments;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("online"!==(o.length>1&&void 0!==o[1]?o[1]:"online")){e.next=8;break}return r=[{fontUrl:"//at.alicdn.com/t/a/".concat(t,".woff2"),format:"woff2"},{fontUrl:"//at.alicdn.com/t/a/".concat(t,".woff"),format:"woff"},{fontUrl:"//at.alicdn.com/t/a/".concat(t,".ttf"),format:"truetype"}],n=function(){var e=Q(W().mark((function e(t,r){var n;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=new FontFace(t,"url(".concat(r,")")),e.next=3,n.load();case 3:document.fonts.add(n);case 4:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}(),e.next=6,Promise.all(r.map((function(e){var t=e.fontUrl;return n("iconfont",t)})));case 6:e.next=8;break;case 8:case"end":return e.stop()}}),e)}))),ne.apply(this,arguments)}function oe(e){return oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oe(e)}function ie(){ie=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var i=t&&t.prototype instanceof m?t:m,a=Object.create(i.prototype),c=new k(n||[]);return o(a,"_invoke",{value:j(e,r,c)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=s;var p="suspendedStart",d="executing",y="completed",h={};function m(){}function v(){}function g(){}var b={};l(b,a,(function(){return this}));var w=Object.getPrototypeOf,O=w&&w(w(T([])));O&&O!==r&&n.call(O,a)&&(b=O);var S=g.prototype=m.prototype=Object.create(b);function x(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function r(o,i,a,c){var u=f(e[o],e,i);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==oe(s)&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(s).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function j(t,r,n){var o=p;return function(i,a){if(o===d)throw new Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=P(c,n);if(u){if(u===h)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var l=f(t,r,n);if("normal"===l.type){if(o=n.done?y:"suspendedYield",l.arg===h)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=y,n.method="throw",n.arg=l.arg)}}}function P(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,P(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,h;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,h):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function T(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),L(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),h}},t}function ae(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ce(e){for(var t=1;t0&&void 0!==o[0]?o[0]:se,e.next=3,ee(t);case 3:return r=e.sent,n=r.glyphs,e.next=7,re(se);case 7:return fe=n.reduce((function(e,t){return ce(ce({},e),{},ue({},t.name,String.fromCodePoint(t.unicode_decimal)))}),{}),e.abrupt("return",fe);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){le(i,n,o,a,c,"next",e)}function c(e){le(i,n,o,a,c,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}();function de(e){return de="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},de(e)}function ye(e){return function(e){if(Array.isArray(e))return he(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return he(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return he(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function he(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var De=function(e){var t=e.style,r=e.noTitle,n=Ke(),i=n.store,c=n.updateStore,l=i.nodeStyle,s=i.selectNodes,f=i.selectEdges;if(0===f.length&&0===s.length)return null;var p=s[0],d=f[0],y=p?"node":"edge",h=p||d,v=h,g=v.id,b=v.label,w=v.properties,O=void 0===w?{}:w,S=h.source&&h.source.id,x=h.target&&h.target.id,E=l[g]||l[String(b)],j="node"===y?"Vertex Properties":"Edge Properties";return a.createElement(u.Z,{style:t,vertical:!0,gap:12},!r&&a.createElement(m.Z.Title,{level:5,style:{margin:"0px"}},j),a.createElement(u.Z,{justify:"space-between"},a.createElement(m.Z.Text,{type:"secondary",italic:!0},"id"),a.createElement(m.Z.Text,{italic:!0},g)),a.createElement(u.Z,{justify:"space-between"},a.createElement(m.Z.Text,{type:"secondary",italic:!0},"label"),a.createElement(xe,Pe({},E,{label:b,type:y,properties:O,onChange:function(e){e.properties;var t=Te(e,je);c((function(e){var r=Le(Le({},e.nodeStyle),{},ke({},g,t));e.nodeStyle=r,o.Utils.storage.set("GRAPH_".concat(i.graphId,"_STYLE"),{nodeStyle:r,edgeStyle:Le({},e.edgeStyle)})}))}}))),S&&a.createElement(u.Z,{justify:"space-between"},a.createElement(m.Z.Text,{type:"secondary",italic:!0},"source"),a.createElement(m.Z.Text,{italic:!0},S.id)),x&&a.createElement(u.Z,{justify:"space-between"},a.createElement(m.Z.Text,{type:"secondary",italic:!0},"target"),a.createElement(m.Z.Text,{italic:!0},x)),a.createElement(_.Z,{style:{margin:"0px"}}),a.createElement(u.Z,{vertical:!0,gap:12},Object.keys(O).map((function(e){return a.createElement(u.Z,{key:e,vertical:!0,gap:6},a.createElement(m.Z.Text,{type:"secondary"},e),a.createElement(m.Z.Text,null,O[e]||"-"))}))))},Ae="240px",Ce=function(e){var t=Ke().store,r=t.selectNodes,n=t.selectEdges,o=c.Z.useToken().token,i={display:"flex",position:"absolute",top:"12px",bottom:"12px",right:"12px",width:Ae,boxShadow:o.boxShadow,zIndex:1999,background:o.colorBgContainer,borderRadius:o.borderRadius,overflowY:"scroll",padding:o.padding},u={display:"flex",position:"absolute",bottom:"12px",left:"12px",right:"12px",boxSizing:"border-box",maxHeight:Ae,boxShadow:o.boxShadow,zIndex:1999,background:o.colorBgContainer,borderRadius:o.borderRadius,overflowY:"scroll",padding:o.padding};return 0===n.length&&0===r.length?null:1===r.length||1===n.length?a.createElement(De,{style:i}):r.length>1?a.createElement(P,{data:r,style:u}):n.length>1?a.createElement(P,{data:n,style:u}):null},Ie=r(17905),Ne=r(38943),Ze=o.Icons.Graph3D,Fe=o.Icons.Graph2D,Ge=function(e){var t=Ke(),r=t.updateStore,n=t.store.render,o=c.Z.useToken().token,i=e.title,u=void 0===i?"Switch graph view dimensions":i,l=(e.placement,"2D"===n?a.createElement(Ze,{style:{color:o.colorTextBase}}):a.createElement(Fe,{style:{color:o.colorTextBase}}));return a.createElement(Ie.Z,{title:a.createElement(A.Z,{id:"".concat(u)}),placement:"left"},a.createElement(Ne.ZP,{onClick:function(){r((function(e){e.render="2D"===n?"3D":"2D"}))},icon:l,type:"text"}))};function Me(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ze(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ze(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ze(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function ct(e,t){var r=t[e.id]||t[String(e.label)]||e.__style||{},n=r.options,o=void 0===n?{}:n,i=at(r,tt);return ot(ot(ot({},H),i),{},{options:ot(ot({},V),o)})}function ut(e,t){var r=t[e.id]||t[String(e.label)]||e.__style||{},n=r.options,o=void 0===n?{}:n,i=at(r,rt);return ot(ot(ot({},X),i),{},{options:ot(ot({},$),o)})}function lt(e){return lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lt(e)}function st(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ft(e){for(var t=1;tMath.PI/2&&(_=-(Math.PI-_)),_<-Math.PI/2&&(_=-(-Math.PI-_)),t.save(),t.font="1px Sans-Serif",t.font="".concat(v,"px Sans-Serif");var L=[S+.8*v,v+.4*v];t.translate(j.x,j.y),t.rotate(_),t.fillStyle=g,t.fillRect.apply(t,[-L[0]/2,-L[1]/2].concat(L)),t.textAlign="center",t.textBaseline="middle",t.fillStyle=h,c&&(t.fillStyle=b),u&&(t.fillStyle=q),t.fillText(O,0,0),t.restore()}}}}}(e,t,r)(o,n)})).linkCanvasObjectMode((function(){return"after"})).linkDirectionalArrowLength((function(e){var t=ut(e,o),r=t.options,n=void 0===r?{}:r,i=t.size;return void 0===n.arrowLength?3*i:n.arrowLength})).linkDirectionalArrowRelPos((function(e){return ut(e,o).options.arrowPosition||1})).linkColor((function(e){var t=ut(e,o),r=t.color,i=t.options,a=yt(e,n),c=a.selected,u=a.disabled;return c?i.selectColor||U:u?q:r})).linkWidth((function(e){var t=ut(e,o).size,r=n[e.id];return r&&r.selected?t+1:t})).linkDirectionalParticles(1).linkDirectionalParticleWidth((function(e){var t=n[e.id];return t&&t.selected?ut(e,o).size+1:0})),"3D"===r&&t.linkColor((function(e){var t=ut(e,o).color,r=n[e.id];return r&&r.selected?U:t})).linkLabel((function(e){return ut(e,o).caption.map((function(t){var r=e&&e.properties&&e.properties[t];if(t&&r)return"".concat(t,": ").concat(r)})).join("")})).linkWidth((function(e){var t=ut(e,o).size,r=n[e.id];return r&&r.selected?t+1:t})).linkDirectionalParticles(1).linkDirectionalParticleWidth((function(e){var t=n[e.id];return t&&t.selected?ut(e,o).size+1:0})))}),[o,n,r,t])};function xt(e){return function(e){if(Array.isArray(e))return Et(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Et(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Et(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Et(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);rb[0]&&r=u[1]){var d=16/t;r.font="".concat(d,"px Sans-Serif"),r.fillStyle="#fff",r.textAlign="center",r.textBaseline="middle",function(e,t){for(var r=t.text,n=void 0===r?"":r,o=t.x,i=t.y,a=t.maxWidth,c=t.lineHeight,u=String(n).split(" "),l="",s=[],f=0;fa&&f>0?(s.push(l.trim()),l=u[f]+" "):l=p}s.push(l.trim());var d=i-s.length*c/2;s.forEach((function(t,r){e.fillText(t,o,d+r*c)}))}(r,{text:i.join(" "),x:n.x,y:n.y+d/2,maxWidth:2*o*.8,lineHeight:1.2*d})}if(t>=u[0]&&te.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&h.push(Ft(Ft({},t),{},{x:o,y:i,r:r}))}));var m=(y.children||[]).map((function(e){var t=e.x,r=e.y,n=ct({id:e.data.name,label:e.data.name},a).color;return{id:e.data.name,label:e.data.name,type:"circle",x:t,y:r,color:n,r:e.r,children:e.data.children.map((function(e){return e.id}))}}));return{nodes:h,edges:e.edges,combos:m}},Ut=r(56617);function Yt(e){return Yt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yt(e)}function Bt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function qt(e){for(var t=1;tu){var l=(c-u)/c*n;r.x-=i*l,r.y-=a*l}}}))}return n.initialize=function(e){return r=e},n}(h,l)),n.d3Force("radial",function(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.05;function o(o){r.forEach((function(r){var i=e.get(wt(r,t)||"undefined");if(i){var a=i.x-r.x,c=i.y-r.y;r.vx+=a*o*n,r.vy+=c*o*n}}))}return o.initialize=function(e){return r=e},o}(h,l)),n.d3Force("collide",Ut.Z().radius((function(e){var t=ct(e,r).size;return Math.round(4*Math.sqrt(Math.max(0,t))+2)}))),i((function(e){e.combos=y})),n.cooldownTicks(1/0),n.graphData({nodes:d.nodes,links:d.edges}),n.d3ReheatSimulation(),n.zoomToFit()}}else console.warn("3D not support combo")};var Xt=r(44200),$t=r(80621),Jt=r(5271),Wt=r(68490);function Kt(e){return Kt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kt(e)}function Qt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function er(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:"log",t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;switch(e){case"linear":return(0,ir.Z)().domain(t).range(r);case"log":return 0===t[0]&&(t[0]=t[0]+1e-5),0===r[0]&&(r[0]=r[0]+1e-5),(0,ar.Z)(t,r);case"pow":return(0,cr.ZP)().exponent(n).domain(t).range(r);default:throw new Error("Unknown scale type: ".concat(e))}}(l,[i,a],c),s={};console.log(i,a,p,c),t.forEach((function(t){var r=t.properties,n=t.id,o=t.label;if(r){var a=Number(r[e]),c=u(a);s[n]={label:o,color:isNaN(c)?i:c}}})),r((function(e){Object.keys(s).forEach((function(t){var r=s[t],n=r.color,o=r.label;e.nodeStyle[t]=sr(sr(sr({},e.nodeStyle[o]),e.nodeStyle[t]),{},{size:n})}))}))}}))},br=function(e){return a.createElement(o.CollapseCard,{title:"Advanced Setting",tooltip:"The size of nodes or width of edges is linearly scaled based on the range of values in the selected property field.",defaultCollapse:!0},a.createElement(gr,null))},wr=["properties","style"],Or=["properties","style"];function Sr(e){return Sr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sr(e)}function xr(){return xr=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function jr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Pr(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=i&&t[a]<=u;return s&&(l.add(vt(r)),l.add(gt(n))),s}})),i=r.nodes.filter((function(e){return l.has(e.id)}))),{nodes:i,edges:o});t.data=s}))}}),a.createElement(Ne.ZP,{block:!0,onClick:function(){t((function(e){e.data=e.source}))}},"reset"))};function Rr(e){return Rr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rr(e)}function Ur(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Yr(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&void 0!==arguments[1]?arguments[1]:function(e){return{selected:!0}},a=r.reduce((function(e,t){return en(en({},e),{},tn({},t.id,i(t)))}),{}),c=o.reduce((function(e,t){return en(en({},e),{},tn({},t.id,i(t)))}),{});return{nodeStatus:a,edgeStatus:c}},nn=function(e,t,r){var n=e.graphData(),i=n.nodes,a=n.links.map((function(e){return en(en({},e),{},{source:e.source.id,target:e.target.id})})),c=i.filter((function(e){return-1!==r.indexOf(e.id)})),u=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,n=2*Math.PI/e.length;return e.map((function(e,o){var i=o*n;return en(en({},e),{},{x:t.x+r*Math.cos(i),y:t.y+r*Math.sin(i),z:0})}))}(t.nodes,c);return o.Utils.handleExpand({nodes:i,edges:a},{nodes:u,edges:t.edges})},on=r(42176);function an(e){return an="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},an(e)}function cn(){cn=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var i=t&&t.prototype instanceof m?t:m,a=Object.create(i.prototype),c=new k(n||[]);return o(a,"_invoke",{value:j(e,r,c)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=s;var p="suspendedStart",d="executing",y="completed",h={};function m(){}function v(){}function g(){}var b={};l(b,a,(function(){return this}));var w=Object.getPrototypeOf,O=w&&w(w(T([])));O&&O!==r&&n.call(O,a)&&(b=O);var S=g.prototype=m.prototype=Object.create(b);function x(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function r(o,i,a,c){var u=f(e[o],e,i);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==an(s)&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(s).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function j(t,r,n){var o=p;return function(i,a){if(o===d)throw new Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=P(c,n);if(u){if(u===h)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var l=f(t,r,n);if("normal"===l.type){if(o=n.done?y:"suspendedYield",l.arg===h)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=y,n.method="throw",n.arg=l.arg)}}}function P(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,P(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,h;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,h):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function T(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),L(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),h}},t}function un(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ln(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&l?(a=rn(i,(function(e){return{selected:!0}})),f=a.nodeStatus,p=a.edgeStatus,d=nn(l,i,o),n((function(e){e.data=d,e.source=d,e.nodeStatus=f,e.edgeStatus=p,e.isLoading=!1,e.selectNodes=i.nodes}))):n((function(e){e.isLoading=!1}));case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),g=h.all,b=[{icon:a.createElement(on.Z,null),key:"NeighborQuery",label:"NeighborQuery",children:h[c[0].label]||g}];return a.createElement("div",{ref:f,className:"studio-graph-neighbor-query"},a.createElement(Wr.Z,{getPopupContainer:function(e){return f.current?f.current:e},onClick:v,style:{margin:"0px",padding:"0px",width:"103%"},mode:"vertical",items:b}))},mn=r(9541);function vn(e){return vn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vn(e)}function gn(){gn=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var i=t&&t.prototype instanceof m?t:m,a=Object.create(i.prototype),c=new k(n||[]);return o(a,"_invoke",{value:j(e,r,c)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=s;var p="suspendedStart",d="executing",y="completed",h={};function m(){}function v(){}function g(){}var b={};l(b,a,(function(){return this}));var w=Object.getPrototypeOf,O=w&&w(w(T([])));O&&O!==r&&n.call(O,a)&&(b=O);var S=g.prototype=m.prototype=Object.create(b);function x(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function r(o,i,a,c){var u=f(e[o],e,i);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==vn(s)&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(s).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function j(t,r,n){var o=p;return function(i,a){if(o===d)throw new Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=P(c,n);if(u){if(u===h)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var l=f(t,r,n);if("normal"===l.type){if(o=n.done?y:"suspendedYield",l.arg===h)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=y,n.method="throw",n.arg=l.arg)}}}function P(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,P(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,h;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,h):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function T(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),L(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),h}},t}function bn(e,t,r,n,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void r(e)}c.done?t(u):Promise.resolve(u).then(n,o)}var wn=function(){var e=Ke(),t=e.store,r=e.updateStore,n=t.selectNodes,o=t.emitter,i=t.graph,c=t.getService,u=function(){var e,t=(e=gn().mark((function e(){var t,a,u,l,s,f;return gn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r((function(e){e.isLoading=!0})),null==o||o.emit("canvas:click"),t=n.map((function(e){return e.id})),e.next=5,c("queryCommonNeighbor")(t);case 5:(a=e.sent).nodes.length>0?(u=rn(a,(function(e){return{selected:!0}})),l=u.nodeStatus,s=u.edgeStatus,f=nn(i,a,t),r((function(e){e.data=f,e.isLoading=!1,e.nodeStatus=l,e.edgeStatus=s}))):r((function(e){e.isLoading=!1}));case 7:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){bn(i,n,o,a,c,"next",e)}function c(e){bn(i,n,o,a,c,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}();return a.createElement(Ne.ZP,{onClick:u,icon:a.createElement(mn.Z,null),type:"text",style:{width:"100%",justifyContent:"left"}},"CommonNeighbor")},On=r(86132);function Sn(e){return Sn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sn(e)}var xn=function(e){var t=Ke(),r=t.store,n=t.updateStore,o=r.nodeStatus,i=r.emitter;return a.createElement(Ne.ZP,{onClick:function(){null==i||i.emit("canvas:click");var e=Object.keys(o).filter((function(e,t){return o[e].selected}));n((function(t){var r={nodes:t.data.nodes.filter((function(t){return!e.includes(t.id)})),edges:t.data.edges.filter((function(t){return!e.includes("object"===Sn(t.source)?t.source.id:t.source)&&!e.includes("object"===Sn(t.target)?t.target.id:t.target)}))};t.data=r,t.dataMap=dt(r)}))},icon:a.createElement(On.Z,null),type:"text",style:{width:"100%",justifyContent:"left"}},"Delete Vertex")},En=r(10422),jn=r(2941),Pn=r(41468);function _n(e){return _n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_n(e)}function Ln(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function kn(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=f.x&&e.x<=d.x&&e.y>=f.y&&e.y<=d.y})))}}));e.append("g").attr("class","brush").call(o)}return function(){e.select(".brush").remove()}}),[h,t,p]);var v=h?{position:"absolute",top:0,left:0,width:"100%",height:"100%",display:"block",background:"rgba(0, 0, 0, 0.05)"}:{display:"none"},g=document.getElementById("GRAPH_".concat(f));return g?a.createElement(a.Fragment,null,a.createElement(Ie.Z,{placement:c,title:a.createElement(A.Z,{id:"".concat(n)})},a.createElement(Ne.ZP,{icon:a.createElement(o.Icons.Lasso,null),type:"text",onClick:function(){m((function(e){return!e}))}})),En.createPortal(a.createElement("svg",{ref:d,style:v}),g)):null},In=r(71433),Nn=function(e){return Ke().store.isLoading?a.createElement("div",{style:{position:"absolute",top:"0px",left:"0px",bottom:"0px",right:"0px",display:"flex",justifyContent:"center",alignItems:"center",background:"rgba(0,0,0,0.1)"}},a.createElement(In.Z,null)):null},Zn=r(56977);function Fn(e){return Fn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fn(e)}function Gn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Mn(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=o&&r<=o+a&&n>=i&&n<=i+c}(o,t)}));if(a)return a}}var l,s,f;return!1}function p(e,t){i&&i.graphData().nodes.forEach((function(r){"object"===co(l)&&-1!==l.children.indexOf(r.id)&&(r.x=r.x+e,r.y=r.y+t)}))}var d=o.Utils.fakeSnapshot(c);function y(e,t){var r=d.map((function(r){return"object"===co(l)&&r.id===l.id?lo(lo({},r),{},{x:r.x+e,y:r.y+t}):r}));d=r,Tt(i,r)}function h(r){if(a=Date.now(),i.autoPauseRedraw&&i.autoPauseRedraw(!1),u&&(l=f(r))){i.enablePanInteraction(!1),u.classList.add("grabbable");var n=(null==i?void 0:i.screen2GraphCoords(r.clientX,r.clientY,0))||{x:0,y:0},o=n.x,c=n.y;e=o,t=c,s=!0}}function m(r){if(s&&u){var n=(null==i?void 0:i.screen2GraphCoords(r.clientX,r.clientY,0))||{x:0,y:0},o=n.x,a=n.y,c=o-e,l=a-t;e=o,t=a,p(c,l),y(c,l)}}function v(o){if(i.autoPauseRedraw&&i.autoPauseRedraw(!0),s&&u)if(s=!1,u.classList.remove("grabbable"),Date.now()-a<200)!function(e){var t=f(e);t&&(null==n||n.emit("combo:click",lo(lo({},e),{},{item:t})))}(o);else{var c=(null==i?void 0:i.screen2GraphCoords(o.clientX,o.clientY,0))||{x:0,y:0},l=c.x,h=c.y,m=l-e,v=h-t;p(m,v),y(m,v),r((function(e){e.combos=d}))}i.enablePanInteraction(!0)}function g(){}return u&&(u.addEventListener("pointerdown",h),u.addEventListener("pointermove",m),u.addEventListener("pointerup",v),u.addEventListener("pointerout",g)),function(){u&&(u.removeEventListener("pointerdown",h),u.removeEventListener("pointermove",m),u.removeEventListener("pointerup",v),u.removeEventListener("pointerout",g))}}),[c,i,n])},po=function(e){return Kn(),ao(),to(),fo(),function(){var e=Ke().store,t=e.graph,r=e.focusNodes,n=e.width,o=(0,a.useRef)(0);(0,a.useEffect)((function(){return o.current=setTimeout((function(){if(r.length,t){var e=t.getGraphBbox((function(e){return r.includes(e.id)}));if(e){var n={x:(e.x[0]+e.x[1])/2,y:(e.y[0]+e.y[1])/2};t&&t.centerAt&&t.centerAt(n.x,n.y,400)}}}),200),function(){clearTimeout(o.current)}}),[t,r,n])}(),null},yo=r(25046),ho=function(e){var t=Ke(),r=t.updateStore,n=t.store.graph;return a.createElement(Ie.Z,{title:"Clear Canvas",placement:"left"},a.createElement(Ne.ZP,{onClick:function(){r((function(e){e.data={nodes:[],edges:[]},e.source={nodes:[],edges:[]},e.combos=[],e.layout={type:"force",options:{}},e.selectNodes=[],e.selectEdges=[],e.focusNodes=[],e.nodeStatus={},e.edgeStatus={}})),n&&(n.zoomToFit(),n.zoom(6))},icon:a.createElement(yo.Z,null),type:"text"}))},mo=r(73873),vo=["__controlPoints","__style_curvature","__nodePairId","__indexColor"];function go(e){return go="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},go(e)}function bo(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function wo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Oo(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Oo(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Oo(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1})).forEach((function(e){var t=r[e],o=t.length-1,i=t[o];i.__style_curvature=n;for(var a=2*n/o,c=0;ce.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),L(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),h}},t}function oi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ii(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r=n+r.width-1?o.Ly.Right:c<=i+1?o.Ly.Top:c>=r.y+r.height-1?o.Ly.Bottom:o.Ly.Top}var D=function(e){var t=e.sourceX,r=e.sourceY,n=e.targetX,o=e.targetY,i=e.offset,a=n-t,c=o-r,u=Math.sqrt(a*a+c*c);return{x:t+a/2+-(c/u)*i,y:r+c/2+a/u*i}};function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}function C(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function I(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r90?o-=180:o<-90&&(o+=180),o}({x:E,y:j},{x:P,y:_});return n.createElement(n.Fragment,null,n.createElement("path",{id:t,className:"react-flow__edge-path",d:C,markerEnd:S?"url(#arrow-selected)":"url(#arrow)",style:q(q({},a),{},{stroke:O?S?w.primaryColor:"#000":S?w.primaryColor:"#d7d7d7",strokeWidth:S?"2px":"1px"})}),n.createElement(F,{id:t,label:s,filelocation:f,disabled:d,style:{transform:"translate(-50%, -50%) translate(".concat(L.x,"px,").concat(L.y,"px) rotate(").concat(I,"deg)")}}))},J={"table-edge":function(e){e.source,e.target;var t=e.sourceX,r=e.sourceY,i=e.targetX,a=e.targetY,c=e.sourcePosition,u=e.targetPosition,l=e.markerEnd,s=(e.data,e.style||{}),f=(s._isLoop,s._isPoly,s._isRevert,s._offset),p=function(e,t){var r=e.sourceX,n=e.sourceY,o=e.targetX,i=e.targetY,a=(r+o)/2,c=(n+i)/2;return"M ".concat(r," ").concat(n," Q ").concat(a," ").concat(c+t," ").concat(o," ").concat(i)}({sourceX:t,sourceY:r,sourcePosition:c,targetX:i,targetY:a,targetPosition:u},void 0===f?0:f);return n.createElement(n.Fragment,null,n.createElement(o.u5,{path:p,markerEnd:l}))},"graph-edge":$},W=function(e){var t=e.fromX,r=e.fromY,o=e.toX,i=e.toY;return n.createElement("g",{style:{zIndex:-1,position:"absolute"}},n.createElement("path",{fill:"none",stroke:"#000",strokeWidth:1,className:"animated",d:"M".concat(t,",").concat(r," L ").concat(o,",").concat(i),markerEnd:"url(#arrow-dragging)"}),n.createElement("circle",{cx:o,cy:i,fill:"#fff",r:50,className:"animated",stroke:"#000",strokeWidth:1,strokeDasharray:"10, 5"}))},K=function(e){var t=s.Z.useToken().token,r=e.selectedColor,o=void 0===r?t.colorPrimary:r,i=e.color,a=void 0===i?t.colorText:i;return n.createElement("svg",{id:"arrow-marker-svg",width:"200",height:"200",xmlns:"http://www.w3.org/2000/svg",style:{position:"absolute",top:0,left:0,zIndex:-1}},n.createElement("defs",null,n.createElement("marker",{id:"arrow",markerWidth:"10",markerHeight:"10",refX:"8",refY:"3",orient:"auto",markerUnits:"strokeWidth"},n.createElement("path",{d:"M0,0 L0,6 L9,3 z",fill:a})),n.createElement("marker",{id:"arrow-selected",markerWidth:"10",markerHeight:"10",refX:"8",refY:"3",orient:"auto",markerUnits:"strokeWidth"},n.createElement("path",{d:"M0,0 L0,6 L9,3 z",fill:o})),n.createElement("marker",{id:"arrow-dragging",markerWidth:"10",markerHeight:"10",refX:"60",refY:"3",orient:"auto",markerUnits:"strokeWidth"},n.createElement("path",{d:"M0,0 L0,6 L9,3 z",fill:a,className:"animated",strokeDasharray:"10, 5"}))))},Q=r(28541),ee=r(62950),te=r(42655),re=r(44575),ne=r(64681),oe=r(4507),ie=r(2881);var ae=o.RX,ce=1,ue=1,le=function(){return"Vertex_".concat(ce++)},se=function(){return"Edge_".concat(ue++)},fe=function(e){return JSON.parse(JSON.stringify(e))};function pe(e){return pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pe(e)}function de(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ye(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ye(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ye(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&void 0!==arguments[1]?arguments[1]:{poly:30,loop:10,loopLabelPosition:1},r=t.poly,n=void 0===r?30:r,o=t.loop,i=void 0===o?10:o,a=(t.loopLabelPosition,{});e.forEach((function(e,t){var r=me({},e),n=r.source,o=r.target,i="".concat(n,"-").concat(o),c="".concat(o,"-").concat(n);a[i]?a[i].push(r):a[c]?a[c].push(r):a[i]=[r]}));var c=Object.values(a),u=[];return c.forEach((function(e){if(e.length>1){var t=ge(e.length);e.forEach((function(r,o){var c,l=r.source,s=r.target,f=r.data,p="".concat(s,"-").concat(l),d=l===s,y=!!a[p],h=o;if(t){var m=Math.ceil((h+1)/2);c=n*m}else{var v=be(h)?h+1:h,g=Math.ceil(v/2);c=n*g}var b=ge(h)?c:-c,w="poly";y&&(b=-b),d&&(w="loop",b=h*i),u.push(me(me({},r),{},{data:me(me({},f),{},{_extra:{count:e.length,index:h,type:w,isPoly:!0,isLoop:d,offset:b,isRevert:y}})}))}))}else{var r=de(e,1)[0],o=r.source,c=r.target,l=r.data;u.push(me(me({},r),{},{data:me(me({},l),{},{_extra:{count:1,index:0,isLoop:o===c}})}))}})),u},Oe=r(6724),Se=r.n(Oe);function xe(e){return xe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xe(e)}var Ee=["position","key","id","_fromEdge","data"],je=["source","target","id","data"],Pe=["position","key","id","_fromEdge"];function _e(e){return function(e){if(Array.isArray(e))return Le(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Le(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Le(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Le(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var Ce=new(Se().graphlib.Graph);Ce.setDefaultEdgeLabel((function(){return{}}));var Ie=!1,Ne={};function Ze(e,t){var r=e.nodes,n=e.edges;return Ce.setGraph({rankdir:t}),r.forEach((function(e){var t=e._fromEdge;Ce.setNode(e.id,{width:270,height:t?100:200})})),n.forEach((function(e){Ce.setEdge(e.source,e.target)})),Se().layout(Ce),Ce}function Fe(e,t){return e.map((function(e){var r=e.position,n=e.key,i=e.id,a=e._fromEdge,c=e.data,u=void 0===c?{}:c,l=Ae(e,Ee);r&&(Ne[i]=r);var s=Ne[i]||Ce.node(e.id)||{x:500*Math.random(),y:500*Math.random()};return{id:i||n,data:Te(Te({},u),l),type:"table"===t?"table-node":"graph-node",_fromEdge:a,targetPosition:o.Ly.Left,sourcePosition:o.Ly.Right,position:r||{x:s.x,y:s.y}}}))}function Ge(e,t){return we(e).map((function(e,r){var n=e.id,o=e.source,i=e.target,a=e.data;return{id:n||"".concat(o,"-").concat(i,"-").concat(r),source:o,target:i,type:"table"===t?"smoothstep":"graph-edge",data:a}}))}function Me(e,t,r){var n=r.displayMode;if("table"===n){var o=ze({nodes:e,edges:t});return Ze(o,"LR"),{nodes:Re(o.nodes,n),edges:Ge(o.edges,n)}}return"graph"===n?(Ie||(Ze({nodes:e,edges:t},"LR"),Ie=!0),{nodes:Fe(e,n),edges:Ge(t,n)}):{nodes:[],edges:[]}}function ze(e){var t=e.nodes,r=e.edges,n=[],o=r.map((function(e){var t=e.source,r=e.target,o=e.id,i=e.data,a=Ae(e,je);return n.push({id:(0,ee.Z)(),source:t,target:o,type:"smoothstep",data:Te(Te({},a),{},{label:""})}),n.push({id:(0,ee.Z)(),source:o,target:r,type:"smoothstep",data:{label:""}}),Te(Te({},e),{},{_fromEdge:!0,id:e.id,data:i,position:{x:0,y:0}})}));return{nodes:[].concat(_e(t.map((function(e){return Te(Te({},e),{},{position:{x:0,y:0}})}))),_e(o.map((function(e){return Te({},e)})))),edges:n}}function Re(e,t){return e.map((function(e){var r=e.position,n=e.key,i=e.id,a=e._fromEdge,c=Ae(e,Pe),u=Ce.node(e.id)||{x:500*Math.random(),y:500*Math.random()};return Ne[i]=r,Te(Te({},e),{},{id:i||n,type:"table"===t?"table-node":"graph-node",_fromEdge:a,targetPosition:o.Ly.Left,sourcePosition:o.Ly.Right,position:r||{x:u.x,y:u.y},data:Te(Te({_fromEdge:a},c),{},{label:i})})}))}function Ue(e){return function(e){if(Array.isArray(e))return Ye(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Ye(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ye(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ye(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&!f){var e=function(e,t){for(var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.iterations,o=void 0===n?1e3:n,i=r.center,a=void 0===i?{x:window.innerWidth/2,y:window.innerHeight/2}:i,c=250,u=c*(0===t.length?.5:8)*-1,l=(0,te.Z)(e).force("link",(0,re.Z)(t).id((function(e){return e.id})).distance(c)).force("charge",(0,ne.Z)().strength(u)).force("center",(0,oe.Z)(a.x,a.y)).force("radial",(0,ie.Z)(0,a.x,a.y).strength(.01)).stop(),s=0;se.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),L(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),h}},t}function pt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function dt(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),L(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),h}},t}function St(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function xt(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r1)return"A edge can only have one property.";if(!o.every((function(e){return e.type})))return"Please select a primate type."}return null}return null}var zt=function(e){var t=e.appMode,r=Mt({appMode:void 0===t?"DATA_IMPORTING":t,type:e.type,properties:e.properties,filelocation:e.filelocation}),o=Ft().token;return r?n.createElement(rt.Z,{title:n.createElement(He.Z,{id:"".concat(r)})},n.createElement(ot.ZP,{type:"text",size:"small",icon:n.createElement(Zt.Z,{style:{color:o.colorErrorActive}})})):null},Rt=r(67492);function Ut(e){return Ut="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ut(e)}function Yt(){Yt=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var i=t&&t.prototype instanceof m?t:m,a=Object.create(i.prototype),c=new k(n||[]);return o(a,"_invoke",{value:j(e,r,c)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=s;var p="suspendedStart",d="executing",y="completed",h={};function m(){}function v(){}function g(){}var b={};l(b,a,(function(){return this}));var w=Object.getPrototypeOf,O=w&&w(w(T([])));O&&O!==r&&n.call(O,a)&&(b=O);var S=g.prototype=m.prototype=Object.create(b);function x(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function r(o,i,a,c){var u=f(e[o],e,i);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==Ut(s)&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(s).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function j(t,r,n){var o=p;return function(i,a){if(o===d)throw new Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=P(c,n);if(u){if(u===h)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var l=f(t,r,n);if("normal"===l.type){if(o=n.done?y:"suspendedYield",l.arg===h)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=y,n.method="throw",n.arg=l.arg)}}}function P(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,P(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,h;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,h):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function T(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),L(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),h}},t}function Bt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function qt(e){for(var t=1;t=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),L(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),h}},t}function Wt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Kt(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),L(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),h}},t}function ur(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function lr(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),L(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),h}},t}function kr(e,t,r,n,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void r(e)}c.done?t(u):Promise.resolve(u).then(n,o)}var Tr=function(e){var t=function(){var e,t=(e=Lr().mark((function e(){var t,r;return Lr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t=document.querySelector(".react-flow__viewport"))){e.next=6;break}return e.next=4,(0,Pr.KT)(t,{});case 4:r=e.sent,c.Utils.downloadImage(r,"model.svg");case 6:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){kr(i,n,o,a,c,"next",e)}function c(e){kr(i,n,o,a,c,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}();return n.createElement(rt.Z,{title:n.createElement(He.Z,{id:"Save graph model to svg image"}),placement:"right"},n.createElement(ot.ZP,{type:"text",icon:n.createElement(jr.Z,null),onClick:t}))},Dr=r(52018),Ar=r(31097),Cr=function(e){var t="label";var r=function(e){var t=[],r=[];return e.forEach((function(e){var n=e.meta,o=e.contents,i=n.graphFields,a=n.name,c=n.header,u=n.delimiter,l=i.idField,s=i.sourceField,f=void 0===s?"source":s,p=i.targetField,d=void 0===p?"target":p,y=i.type,h=a.split(".csv")[0],m=function(e,t,r){var n=function(e){return e.replace(/\r\n/g,"\n").replace(/\r/g,"\n")}(e).split("\n");return n.slice(1).map((function(e){for(var n=e.split(r),o={},i=0;i=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),L(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),h}},t}function zr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Rr(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&void 0!==arguments[1]?arguments[1]:function(e){return{}},r=e||{vertex_types:[],edge_types:[]},n=r.vertex_types,o=r.edge_types,i={},a=n.map((function(e){var r=e.primary_keys,n=void 0===r?[]:r,o=e.properties,a=void 0===o?[]:o,c=e.type_name,u=(0,ee.Z)();i[c]=u;var l=t(e);return{id:u,data:nn(nn({label:c,primary:n[0]},l),{},{properties:a.map((function(e,t){var r=e.property_name,o=e.property_type;return{key:(0,ee.Z)(),index:t,token:"",name:r,type:"primitive_type"in o?o.primitive_type:"DT_STRING",primaryKey:n[0]===r}}))}),position:{x:0,y:0}}})),c=[];return o&&o.forEach((function(e){var r=e.type_name,n=e.properties,o=void 0===n?[]:n,a=e.vertex_type_pair_relations,u=t(e);a.forEach((function(e){var t=e.destination_vertex,n=e.source_vertex,a=(e.relation,i[n]),l=i[t];c.push({source:a,target:l,id:(0,ee.Z)(),data:nn(nn({label:r},u),{},{properties:o.map((function(e){return{key:(0,ee.Z)(),name:e.property_name,type:"primitive_type"in e.property_type?e.property_type.primitive_type:"DT_STRING",primaryKey:!1,disable:!1,token:""}}))})})}))})),{nodes:a,edges:c}}var cn=function(e){return"DT_STRING"===e?{string:{long_text:""}}:{primitive_type:e}};function un(e){var t={},r=e.nodes.map((function(e,r){var n=e.id,o=e.data,i=o.label,a=o.properties,c=void 0===a?[]:a,u=o.primary;t[n]=i;var l=u;return{type_id:r,type_name:i,properties:c.map((function(e,t){return e.primaryKey&&(l=e.name),{property_id:t,property_name:e.name,property_type:cn(e.type)}}))||[],primary_keys:[l]}})),n=new Map;return e.edges.forEach((function(e,r){var o=e.source,i=e.target,a=e.data,c=a.properties,u=void 0===c?[]:c,l=a.label,s=t[o],f={destination_vertex:t[i],relation:"MANY_TO_MANY",source_vertex:s},p=n.get(l);if(p){var d=(p.properties||{}).vertex_type_pair_relations;(void 0===d?[]:d).push(f),n.set(l,p)}else n.set(l,{type_id:r,type_name:l,properties:(u||[]).map((function(e,t){return{property_id:t,property_name:e.name,property_type:cn(e.type)}}))||[],vertex_type_pair_relations:[f]})})),{vertex_types:r,edge_types:en(n.values())}}function ln(e){return ln="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ln(e)}function sn(e){return function(e){if(Array.isArray(e))return fn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return fn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return fn(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),L(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),h}},t}function jn(e,t,r,n,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void r(e)}c.done?t(u):Promise.resolve(u).then(n,o)}var Pn=nt.Z.Dragger,_n=function(e){return"schema"in e?e.schema:"vertex_types"in e&&"edge_types"in e?e:"vertex_mappings"in e&&"edge_mappings"in e?{vertex_mappings:e.vertex_mappings,edge_mappings:e.edge_mappings}:{}},Ln=function(e){var t=e.style,r=void 0===t?{}:t,o=e.icon,i=void 0===o?n.createElement(c.Icons.File,{text:"YAML"}):o,a=e.disabled,u=(0,p.qp)(),l=u.updateStore,s=u.store,f=s.appMode,d=s.nodes,y=s.edges,h=function(){var e,t=(e=En().mark((function e(t){var r,n,o,i,a;return En().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.file,n=r.type,e.prev=2,e.next=5,c.Utils.parseFile(r);case 5:o=e.sent,"application/x-yaml"===n&&(i=_n(gn.ZP.load(o))),"application/json"===n&&(i=_n(JSON.parse(o))),"DATA_MODELING"===f&&(a=an(i,(function(){return{disabled:!1,saved:!1}}))),"DATA_IMPORTING"===f&&(a=mn({},i,{nodes:d,edges:y})),l((function(e){e.hasLayouted=!1,e.nodes=Fe(a.nodes,"graph"),e.edges=Ge(a.edges,"graph")})),e.next=17;break;case 13:e.prev=13,e.t0=e.catch(2),console.error("解析文件失败:",e.t0),bn.ZP.error("解析文件失败");case 17:case"end":return e.stop()}}),e,null,[[2,13]])})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){jn(i,n,o,a,c,"next",e)}function c(e){jn(i,n,o,a,c,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}();return n.createElement("div",{style:{height:"100%",width:"100%"}},n.createElement(Pn,{disabled:"DATA_MODELING"===f&&a,accept:".yaml,.json",customRequest:h,showUploadList:!1,multiple:!0,style:Sn({height:"100px",width:"100%"},r)},n.createElement(Ke.Z,{justify:"center",align:"center",vertical:!0,gap:24},i,n.createElement(Qe.Z.Text,{type:"secondary"},n.createElement(He.Z,{id:"For the definition and description of the schema model, please refer to the "}),n.createElement("a",{href:"https://graphscope.io/docs/flex/interactive/data_model",target:"_blank"},n.createElement(He.Z,{id:"document"}))))))},kn=s.Z.useToken,Tn={DATA_MODELING:{importText:"Import YAML or JSON file to generate graph model",exportText:"Save graph model to local YAML or JSON file"},DATA_IMPORTING:{importText:"Import YAML or JSON file to generate graph loading config",exportText:"Save graph loading config to local YAML or JSON file"},PURE:{importText:"Import YAML or JSON file to generate graph loading config",exportText:"Save graph loading config to local YAML or JSON file"}},Dn=function(){var e=kn().token,t=(0,p.qp)().store,r=t.nodes,o=t.edges,i=t.appMode,a=Tn[i],u=a.importText,l=a.exportText,s=function(e){var t;if("DATA_MODELING"===i){var n=un(c.Utils.fakeSnapshot({nodes:r,edges:o}));return"yaml"===e&&(t=gn.ZP.dump(n)),"json"===e&&(t=JSON.stringify(n)),void c.Utils.download("create-model.".concat(e),t)}if("DATA_IMPORTING"===i){var a=vn(c.Utils.fakeSnapshot({nodes:r,edges:o}));return"yaml"===e&&(t=gn.ZP.dump(a)),"json"===e&&(t=JSON.stringify(a)),void c.Utils.download("loading-config.".concat(e),t)}};return n.createElement(Ke.Z,{justify:"center",vertical:!0,style:{padding:"20px",width:"350px"},gap:10},n.createElement(Qe.Z.Text,{type:"secondary"},u),n.createElement(Ln,{disabled:0!==r.length,style:{height:"160px"},icon:n.createElement(Je.Z,{split:"or"},n.createElement(c.Icons.File,{text:"YAML",style:{fontSize:"30px",color:e.colorTextSecondary}}),n.createElement(c.Icons.File,{text:"JSON",style:{fontSize:"30px",color:e.colorTextSecondary}}))}),n.createElement(vr.Z,{style:{margin:"12px 0px"}}),n.createElement(Qe.Z.Text,{type:"secondary"},l),n.createElement(Ke.Z,{gap:10},n.createElement(ot.ZP,{style:{width:"50%"},onClick:function(){return s("yaml")}},"EXPORT YAML"),n.createElement(ot.ZP,{style:{width:"50%"},onClick:function(){return s("json")}},"EXPORT JSON")))},An=function(e){return n.createElement(Kr.Z,{placement:"leftBottom",content:n.createElement(Dn,null)},n.createElement(ot.ZP,{type:"text",icon:n.createElement(c.Icons.FileYaml,null)}))},Cn=function(e){var t=(0,p.qp)().store.appMode;return"DATA_MODELING"===t?n.createElement(n.Fragment,null,n.createElement(c.Toolbar,{style:{top:"12px",right:"24px",left:"unset"},direction:"vertical"},n.createElement(gr,null),n.createElement(vr.Z,{style:{margin:"0px"}}),n.createElement(Wr,null),n.createElement(vr.Z,{style:{margin:"0px"}}),n.createElement(An,null),n.createElement(vr.Z,{style:{margin:"0px"}}),n.createElement(Er,null),n.createElement(br,null),n.createElement(Tr,null))):"DATA_IMPORTING"===t?n.createElement(n.Fragment,null,n.createElement(c.Toolbar,{style:{top:"12px",right:"24px",left:"unset"},direction:"vertical"},n.createElement(gr,null),n.createElement(vr.Z,{style:{margin:"0px"}}),n.createElement(An,null))):null},In={appMode:"DATA_MODELING",disabled:!1,nodes:[],edges:[],source:{nodes:[],edges:[]},nodePositionChange:[],isReady:!1,displayMode:"graph",graphPosition:{},tablePosition:{},currentType:"nodes",currentId:"",theme:{primaryColor:"#1978FF"},collapsed:{left:!0,right:!0},hasLayouted:!1,elementOptions:{isEditable:!0,isConnectable:!0},csvFiles:[],isSaveFiles:!0},Nn={"en-US":{"Start sketching a model, a vertex label is a named grouping or categorization of nodes within the graph dataset":"Start sketching a model, a vertex label is a named grouping or categorization of nodes within the graph dataset","Please manually input the odps file location":"Please manually input the odps file location",Upload:"Upload","Load data":"Load data","Start importing":"Start importing",Close:"Close","Goto Modeling":"Goto Modeling","Save Modeling":"Save Modeling","Goto Graphs":"Goto Graphs","Goto Importing":"Goto Importing","Go back to modify the graph model.":"Go back to modify the graph model.","View Schema":"View Schema","Successfully saved the graph model":"Successfully saved the graph model","Failed to save the graph model":"Failed to save the graph model","Please create the graph model first":"Please create the graph model first","Sorry, the system detected that there is no available graph model. Please create a graph model before importing data":"Sorry, the system detected that there is no available graph model. Please create a graph model before importing data","Bulk Import":"Bulk Import","Bulk Import Data":"Bulk Import Data","The system has detected that you have previously uploaded CSV files. You can quickly bulk import data into graphscope":"The system has detected that you have previously uploaded CSV files. You can quickly bulk import data into graphscope","Click or drag file to this area to upload":"Click or drag file to this area to upload","Clear all files":"Clear all files","Generate graph model":"Generate graph model","If you already have CSV data, feel free to upload it here, and the system will automatically infer possible graph models for you.":"If you already have CSV data, feel free to upload it here, and the system will automatically infer possible graph models for you.","If you already have SQLDDL file, feel free to upload it here, and the system will automatically infer possible graph models for you.":"If you already have SQLDDL file, feel free to upload it here, and the system will automatically infer possible graph models for you.","A vertex must have a primary key.":"A vertex must have a primary key.","A vertex must have at least one property.":"A vertex must have at least one property.","A edge can only have one property.":"A edge can only have one property.","The current mode is preview only, and does not support clearing the model":"The current mode is preview only, and does not support clearing the model","Clear graph model":"Clear graph model","The current mode is preview only, and does not support creating new vertex":"The current mode is preview only, and does not support creating new vertex","Create new vertex":"Create new vertex","The current mode is preview only, and does not support opening multi-source modeling":"The current mode is preview only, and does not support opening multi-source modeling","Expand or collapse multi-source modeling":"Expand or collapse multi-source modeling",Configuration:"Configuration","You have successfully bound the data source. Please complete the configuration to start importing data.":"You have successfully bound the data source. Please complete the configuration to start importing data.","The data loading task has been successfully created. You can view detailed logs in the job center.":"The data loading task has been successfully created. You can view detailed logs in the job center.","Goto Jobs":"Goto Jobs","Please select a primate type.":"Please select a primate type.","Click or drag file to this area to parse it":"Click or drag file to this area to parse it","If you already have CSV data, feel free to parse it here, and the system will automatically infer possible graph models for you.":"If you already have CSV data, feel free to parse it here, and the system will automatically infer possible graph models for you.","Data source binding":"Data source binding","Shortcut: parse files into a graph model":"Shortcut: parse files into a graph model","Save graph model to svg image":"Save graph model to svg image","Save graph model to JSON config":"Save graph model to JSON config","Parse files into a graph model":"Parse files into a graph model","For the definition and description of the schema model, please refer to the ":"For the definition and description of the schema model, please refer to the ",document:"document",Vertex:"Vertex",Edges:"Edges","File type":"File type","ID field":"ID field","Label field":"Label field","Target field":"Target field","Source field":"Source field","Delete label":"Delete label",Label:"Label","Data Fields":"Data Fields","Add Property":"Add Property",Properties:"Properties","Uploading...":"Uploading...",Delimiter:"Delimiter",Type:"Type","Header Row":"Header Row","Import Option":"Import Option",Quoting:"Quoting","Quote char":"Quote char",Source:"Source",Target:"Target"},"zh-CN":{"Start sketching a model, a vertex label is a named grouping or categorization of nodes within the graph dataset":"开始绘制模型吧,顶点标签是图数据集中节点的命名分组或分类","Please manually input the odps file location":"请手动填写 odps 文件位置",Upload:"上传","Load data":"加载数据","Start importing":"开始导入",Close:"关闭","Goto Modeling":"跳转到建模","Save Modeling":"保存建模","Goto Graphs":"跳转到图实例列表","Goto Importing":"跳转到数据导入","Go back to modify the graph model.":"返回修改图实例。","View Schema":"查看 Schema","Successfully saved the graph model":"已成功保存图模型","Failed to save the graph model":"无法保存图模型","Please create the graph model first":"请先创建图模型","Sorry, the system detected that there is no available graph model. Please create a graph model before importing data":"对不起,系统检测到没有可用的图模型。导入数据前请先创建图模型.","Bulk Import":"批量导入","Bulk Import Data":"批量导入数据","The system has detected that you have previously uploaded CSV files. You can quickly bulk import data into graphscope":"系统检测到您之前上传过 CSV 文件。您可以快速将数据批量导入 graphscope","Click or drag file to this area to upload":"单击或拖动文件到此区域进行上传","Clear all files":"清除所有文件","Generate graph model":"生成图模型","If you already have CSV data, feel free to upload it here, and the system will automatically infer possible graph models for you.":"如果您已经有 CSV 数据,请随时将其上传到此处,系统将自动为您推断可能的图模型。","If you already have SQLDDL file, feel free to upload it here, and the system will automatically infer possible graph models for you.":"如果您已经有 SQLDDL 文件,请随时在此处上传,系统将自动为您推断可能的图模型。","A vertex must have a primary key.":"节点必须具有一个主键。","A vertex must have at least one property.":"节点必须至少具有一个属性。","A edge can only have one property.":"一条边只能有一个属性。","The current mode is preview only, and does not support clearing the model":"当前模式仅为预览模式,不支持清除模型","Clear graph model":"清除模型","The current mode is preview only, and does not support creating new vertex":"当前模式仅为预览模式,不支持创建新顶点","Create new vertex":"创建节点","The current mode is preview only, and does not support opening multi-source modeling":"当前模式仅为预览模式,不支持打开多源建模","Expand or collapse multi-source modeling":"展开或折叠多源建模",Configuration:"配置","You have successfully bound the data source. Please complete the configuration to start importing data.":"您已成功绑定数据源。请完成配置以开始导入数据。","The data loading task has been successfully created. You can view detailed logs in the job center.":"数据加载任务已成功创建。您可以在作业中心查看详细日志。","Goto Jobs":"跳转到日志","Please select a primate type.":"请补充完数据类型","Click or drag file to this area to parse it":"单击或拖动文件到此区域进行解析","If you already have CSV data, feel free to parse it here, and the system will automatically infer possible graph models for you.":"如果您已经有 CSV 数据,请随时将其放置到此处,系统将自动为您推断可能的图模型。","Data source binding":"数据绑定","Shortcut: parse files into a graph model":"快捷方式:将文件解析为图模型","Save graph model to svg image":"将图模型保存到 svg 图像","Save graph model to JSON config":"将图模型保存到 JSON 配置","Parse files into a graph model":"将文件解析为图模型","For the definition and description of the schema model, please refer to the ":"关于模式模型的定义和描述,请参阅 ",document:"文档",Vertex:"节点",Edges:"边","File type":"文件类型","ID field":"ID 字段","Label field":"标题","Target field":"终止点字段","Source field":"起始点字段","Delete label":"删除标题",Label:"标题",Source:"起始点",Target:"目标点","Data Fields":"数据","Add Property":"添加属性",Properties:"属性","Uploading...":"上传中...",Delimiter:"定界符",Type:"类型","Header Row":"标题行","Import Option":"导入选项",Quoting:"引用","Quote char":"分隔符"}};function Zn(e){return Zn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zn(e)}function Fn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Gn(e){for(var t=1;t=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),L(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),h}},t}function Rn(e,t,r,n,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void r(e)}c.done?t(u):Promise.resolve(u).then(n,o)}var Un=function(e){var t=e.appMode,r=e.GS_ENGINE_TYPE,i=e.queryGraphSchema,a=e.queryBoundSchema,u=(e.id,e.theme,e.defaultCollapsed),l=void 0===u?{rightSide:!1,leftSide:!0}:u,s=e.leftSideStyle,f=void 0===s?{width:"350px",padding:"0px 12px"}:s,d=e.rightSideStyle,y=void 0===d?{width:"450px",padding:"0px 12px"}:d,h=e.children,m=e.queryPrimitiveTypes,v=e.handleUploadFile,g=e.isSaveFiles,b=e.batchUploadFiles,w=e.onCreateLabel,O=e.onDeleteLabel,S=e.style,x=(e.leftSide,e.rightSide),E=(0,p.qp)(),j=E.store,P=E.updateStore,_=j.isReady,L=j.displayMode;(0,c.useDynamicStyle)("\n/* this gets exported as style.css and can be used for the default theming */\n/* these are the necessary styles for React Flow, they get used by base.css and style.css */\n.react-flow {\n direction: ltr;\n}\n.react-flow__container {\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n}\n.react-flow__pane {\n z-index: 1;\n cursor: -webkit-grab;\n cursor: grab;\n}\n.react-flow__pane.selection {\n cursor: pointer;\n }\n.react-flow__pane.dragging {\n cursor: -webkit-grabbing;\n cursor: grabbing;\n }\n.react-flow__viewport {\n transform-origin: 0 0;\n z-index: 2;\n pointer-events: none;\n}\n.react-flow__renderer {\n z-index: 4;\n}\n.react-flow__selection {\n z-index: 6;\n}\n.react-flow__nodesselection-rect:focus,\n.react-flow__nodesselection-rect:focus-visible {\n outline: none;\n}\n.react-flow .react-flow__edges {\n pointer-events: none;\n overflow: visible;\n}\n.react-flow__edge-path,\n.react-flow__connection-path {\n stroke: #b1b1b7;\n stroke-width: 1;\n fill: none;\n}\n.react-flow__edge {\n pointer-events: visibleStroke;\n cursor: pointer;\n}\n.react-flow__edge.animated path {\n stroke-dasharray: 5;\n -webkit-animation: dashdraw 0.5s linear infinite;\n animation: dashdraw 0.5s linear infinite;\n }\n.react-flow__edge.animated path.react-flow__edge-interaction {\n stroke-dasharray: none;\n -webkit-animation: none;\n animation: none;\n }\n.react-flow__edge.inactive {\n pointer-events: none;\n }\n.react-flow__edge.selected,\n .react-flow__edge:focus,\n .react-flow__edge:focus-visible {\n outline: none;\n }\n.react-flow__edge.selected .react-flow__edge-path,\n .react-flow__edge:focus .react-flow__edge-path,\n .react-flow__edge:focus-visible .react-flow__edge-path {\n stroke: #555;\n }\n.react-flow__edge-textwrapper {\n pointer-events: all;\n }\n.react-flow__edge-textbg {\n fill: white;\n }\n.react-flow__edge .react-flow__edge-text {\n pointer-events: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n }\n.react-flow__connection {\n pointer-events: none;\n}\n.react-flow__connection .animated {\n stroke-dasharray: 5;\n -webkit-animation: dashdraw 0.5s linear infinite;\n animation: dashdraw 0.5s linear infinite;\n }\n.react-flow__connectionline {\n z-index: 1001;\n}\n.react-flow__nodes {\n pointer-events: none;\n transform-origin: 0 0;\n}\n.react-flow__node {\n position: absolute;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n pointer-events: all;\n transform-origin: 0 0;\n box-sizing: border-box;\n cursor: -webkit-grab;\n cursor: grab;\n}\n.react-flow__node.dragging {\n cursor: -webkit-grabbing;\n cursor: grabbing;\n }\n.react-flow__nodesselection {\n z-index: 3;\n transform-origin: left top;\n pointer-events: none;\n}\n.react-flow__nodesselection-rect {\n position: absolute;\n pointer-events: all;\n cursor: -webkit-grab;\n cursor: grab;\n }\n.react-flow__handle {\n position: absolute;\n pointer-events: none;\n min-width: 5px;\n min-height: 5px;\n width: 6px;\n height: 6px;\n background: #1a192b;\n border: 1px solid white;\n border-radius: 100%;\n}\n.react-flow__handle.connectionindicator {\n pointer-events: all;\n cursor: crosshair;\n }\n.react-flow__handle-bottom {\n top: auto;\n left: 50%;\n bottom: -4px;\n transform: translate(-50%, 0);\n }\n.react-flow__handle-top {\n left: 50%;\n top: -4px;\n transform: translate(-50%, 0);\n }\n.react-flow__handle-left {\n top: 50%;\n left: -4px;\n transform: translate(0, -50%);\n }\n.react-flow__handle-right {\n right: -4px;\n top: 50%;\n transform: translate(0, -50%);\n }\n.react-flow__edgeupdater {\n cursor: move;\n pointer-events: all;\n}\n.react-flow__panel {\n position: absolute;\n z-index: 5;\n margin: 15px;\n}\n.react-flow__panel.top {\n top: 0;\n }\n.react-flow__panel.bottom {\n bottom: 0;\n }\n.react-flow__panel.left {\n left: 0;\n }\n.react-flow__panel.right {\n right: 0;\n }\n.react-flow__panel.center {\n left: 50%;\n transform: translateX(-50%);\n }\n.react-flow__attribution {\n font-size: 10px;\n background: rgba(255, 255, 255, 0.5);\n padding: 2px 3px;\n margin: 0;\n}\n.react-flow__attribution a {\n text-decoration: none;\n color: #999;\n }\n@-webkit-keyframes dashdraw {\n from {\n stroke-dashoffset: 10;\n }\n}\n@keyframes dashdraw {\n from {\n stroke-dashoffset: 10;\n }\n}\n.react-flow__edgelabel-renderer {\n position: absolute;\n width: 100%;\n height: 100%;\n pointer-events: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n.react-flow__edge.updating .react-flow__edge-path {\n stroke: #777;\n }\n.react-flow__edge-text {\n font-size: 10px;\n }\n.react-flow__node.selectable:focus,\n .react-flow__node.selectable:focus-visible {\n outline: none;\n }\n.react-flow__node-default,\n.react-flow__node-input,\n.react-flow__node-output,\n.react-flow__node-group {\n padding: 10px;\n border-radius: 3px;\n width: 150px;\n font-size: 12px;\n color: #222;\n text-align: center;\n border-width: 1px;\n border-style: solid;\n border-color: #1a192b;\n background-color: white;\n}\n.react-flow__node-default.selectable:hover, .react-flow__node-input.selectable:hover, .react-flow__node-output.selectable:hover, .react-flow__node-group.selectable:hover {\n box-shadow: 0 1px 4px 1px rgba(0, 0, 0, 0.08);\n }\n.react-flow__node-default.selectable.selected,\n .react-flow__node-default.selectable:focus,\n .react-flow__node-default.selectable:focus-visible,\n .react-flow__node-input.selectable.selected,\n .react-flow__node-input.selectable:focus,\n .react-flow__node-input.selectable:focus-visible,\n .react-flow__node-output.selectable.selected,\n .react-flow__node-output.selectable:focus,\n .react-flow__node-output.selectable:focus-visible,\n .react-flow__node-group.selectable.selected,\n .react-flow__node-group.selectable:focus,\n .react-flow__node-group.selectable:focus-visible {\n box-shadow: 0 0 0 0.5px #1a192b;\n }\n.react-flow__node-group {\n background-color: rgba(240, 240, 240, 0.25);\n}\n.react-flow__nodesselection-rect,\n.react-flow__selection {\n background: rgba(0, 89, 220, 0.08);\n border: 1px dotted rgba(0, 89, 220, 0.8);\n}\n.react-flow__nodesselection-rect:focus,\n .react-flow__nodesselection-rect:focus-visible,\n .react-flow__selection:focus,\n .react-flow__selection:focus-visible {\n outline: none;\n }\n.react-flow__controls {\n box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.08);\n}\n.react-flow__controls-button {\n border: none;\n background: #fefefe;\n border-bottom: 1px solid #eee;\n box-sizing: content-box;\n display: flex;\n justify-content: center;\n align-items: center;\n width: 16px;\n height: 16px;\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n padding: 5px;\n }\n.react-flow__controls-button:hover {\n background: #f4f4f4;\n }\n.react-flow__controls-button svg {\n width: 100%;\n max-width: 12px;\n max-height: 12px;\n }\n.react-flow__controls-button:disabled {\n pointer-events: none;\n }\n.react-flow__controls-button:disabled svg {\n fill-opacity: 0.4;\n }\n.react-flow__minimap {\n background-color: #fff;\n}\n.react-flow__minimap svg {\n display: block;\n}\n.react-flow__resize-control {\n position: absolute;\n}\n.react-flow__resize-control.left,\n.react-flow__resize-control.right {\n cursor: ew-resize;\n}\n.react-flow__resize-control.top,\n.react-flow__resize-control.bottom {\n cursor: ns-resize;\n}\n.react-flow__resize-control.top.left,\n.react-flow__resize-control.bottom.right {\n cursor: nwse-resize;\n}\n.react-flow__resize-control.bottom.left,\n.react-flow__resize-control.top.right {\n cursor: nesw-resize;\n}\n/* handle styles */\n.react-flow__resize-control.handle {\n width: 4px;\n height: 4px;\n border: 1px solid #fff;\n border-radius: 1px;\n background-color: #3367d9;\n transform: translate(-50%, -50%);\n}\n.react-flow__resize-control.handle.left {\n left: 0;\n top: 50%;\n}\n.react-flow__resize-control.handle.right {\n left: 100%;\n top: 50%;\n}\n.react-flow__resize-control.handle.top {\n left: 50%;\n top: 0;\n}\n.react-flow__resize-control.handle.bottom {\n left: 50%;\n top: 100%;\n}\n.react-flow__resize-control.handle.top.left {\n left: 0;\n}\n.react-flow__resize-control.handle.bottom.left {\n left: 0;\n}\n.react-flow__resize-control.handle.top.right {\n left: 100%;\n}\n.react-flow__resize-control.handle.bottom.right {\n left: 100%;\n}\n/* line styles */\n.react-flow__resize-control.line {\n border-color: #3367d9;\n border-width: 0;\n border-style: solid;\n}\n.react-flow__resize-control.line.left,\n.react-flow__resize-control.line.right {\n width: 1px;\n transform: translate(-50%, 0);\n top: 0;\n height: 100%;\n}\n.react-flow__resize-control.line.left {\n left: 0;\n border-left-width: 1px;\n}\n.react-flow__resize-control.line.right {\n left: 100%;\n border-right-width: 1px;\n}\n.react-flow__resize-control.line.top,\n.react-flow__resize-control.line.bottom {\n height: 1px;\n transform: translate(0, -50%);\n left: 0;\n width: 100%;\n}\n.react-flow__resize-control.line.top {\n top: 0;\n border-top-width: 1px;\n}\n.react-flow__resize-control.line.bottom {\n border-bottom-width: 1px;\n top: 100%;\n}\n","graphscope-importor"),(0,n.useEffect)((function(){var e;(e=zn().mark((function e(){var n,o,c,u,l,s;return zn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n={nodes:[],edges:[]},"DATA_MODELING"!==t||!i){e.next=5;break}return e.next=4,i();case 4:n=e.sent;case 5:if("DATA_IMPORTING"!==t||!a){e.next=9;break}return e.next=8,a();case 8:n=e.sent;case 9:o={nodes:Fe(n.nodes,L),edges:Ge(n.edges,L)},l=(c=o||{nodes:[],edges:[]}).edges,s=0===(u=c.nodes).length,P((function(e){e.isReady=!0,e.nodes=u,e.edges=l,e.appMode=t,e.elementOptions={isEditable:!s,isConnectable:"groot"===r&&"DATA_MODELING"===t||s},e.currentId=s?"":u[0].id,e.currentType="nodes",e.isSaveFiles=g}));case 13:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Rn(i,n,o,a,c,"next",e)}function c(e){Rn(i,n,o,a,c,"throw",e)}a(void 0)}))})()}),[]);var k="PURE"===t;return n.createElement(c.StudioProvier,{locales:Nn},n.createElement(c.Section,{rightSide:x||n.createElement(mr,{appMode:t,queryPrimitiveTypes:m,handleUploadFile:v,batchUploadFiles:b,onCreateLabel:w,onDeleteLabel:O}),leftSideStyle:f,rightSideStyle:y,defaultCollapsed:l,style:Gn({height:"calc(100vh - 50px)"},S),splitBorder:!0},_?n.createElement(o.tV,null,!k&&n.createElement(Cn,null),n.createElement($e,null),h):n.createElement(c.GlobalSpin,null)))},Yn=function(e){return n.createElement(p.ZP,{id:e.id,store:In},n.createElement(Un,e))},Bn=r(10422);function qn(e){return qn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qn(e)}function Hn(){Hn=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var i=t&&t.prototype instanceof m?t:m,a=Object.create(i.prototype),c=new k(n||[]);return o(a,"_invoke",{value:j(e,r,c)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=s;var p="suspendedStart",d="executing",y="completed",h={};function m(){}function v(){}function g(){}var b={};l(b,a,(function(){return this}));var w=Object.getPrototypeOf,O=w&&w(w(T([])));O&&O!==r&&n.call(O,a)&&(b=O);var S=g.prototype=m.prototype=Object.create(b);function x(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function r(o,i,a,c){var u=f(e[o],e,i);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==qn(s)&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(s).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function j(t,r,n){var o=p;return function(i,a){if(o===d)throw new Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=P(c,n);if(u){if(u===h)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var l=f(t,r,n);if("normal"===l.type){if(o=n.done?y:"suspendedYield",l.arg===h)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=y,n.method="throw",n.arg=l.arg)}}}function P(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,P(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,h;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,h):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function T(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),L(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),h}},t}function Vn(e,t,r,n,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void r(e)}c.done?t(u):Promise.resolve(u).then(n,o)}var Xn={render_modeling:function(e){var t=(e||{}).id,r=void 0===t?"root":t,o=function(){var e,t=(e=Hn().mark((function e(){return Hn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{nodes:[],edges:[]});case 1:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Vn(i,n,o,a,c,"next",e)}function c(e){Vn(i,n,o,a,c,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}(),i=e.queryPrimitiveTypes,a=void 0===i?function(){return["DT_DOUBLE","DT_STRING","DT_SIGNED_INT32","DT_SIGNED_INT64"].map((function(e){return{label:e,value:e}}))}:i,c=e.queryGraphSchema,u=void 0===c?o:c,l=e.appMode,s=void 0===l?"DATA_MODELING":l;Bn.render(n.createElement(Yn,{queryPrimitiveTypes:a,queryGraphSchema:u,appMode:s}),document.getElementById(r))}},$n=Xn,Jn=Yn},33741:function(e,t,r){r.d(t,{qp:function(){return y}});var n=r(53874),o=r(50959),i=r(55227);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t
- + \ No newline at end of file diff --git a/components-en/index.html b/components-en/index.html index 2c09bf11..92b40705 100644 --- a/components-en/index.html +++ b/components-en/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/components/editable-text/index.html b/components/editable-text/index.html index 2c09bf11..92b40705 100644 --- a/components/editable-text/index.html +++ b/components/editable-text/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/components/empty-canvas/index.html b/components/empty-canvas/index.html index 2c09bf11..92b40705 100644 --- a/components/empty-canvas/index.html +++ b/components/empty-canvas/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/components/full-screen/index.html b/components/full-screen/index.html index 2c09bf11..92b40705 100644 --- a/components/full-screen/index.html +++ b/components/full-screen/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/components/icons-en/index.html b/components/icons-en/index.html index 2c09bf11..92b40705 100644 --- a/components/icons-en/index.html +++ b/components/icons-en/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/components/icons/index.html b/components/icons/index.html index 2c09bf11..92b40705 100644 --- a/components/icons/index.html +++ b/components/icons/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/components/illustration/index.html b/components/illustration/index.html index 2c09bf11..92b40705 100644 --- a/components/illustration/index.html +++ b/components/illustration/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/components/import-files/index.html b/components/import-files/index.html index 2c09bf11..92b40705 100644 --- a/components/import-files/index.html +++ b/components/import-files/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/components/importor/index.html b/components/importor/index.html index 2c09bf11..92b40705 100644 --- a/components/importor/index.html +++ b/components/importor/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/components/index.html b/components/index.html index 2c09bf11..92b40705 100644 --- a/components/index.html +++ b/components/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/components/layout/index.html b/components/layout/index.html index 2c09bf11..92b40705 100644 --- a/components/layout/index.html +++ b/components/layout/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/components/logo/index.html b/components/logo/index.html index 2c09bf11..92b40705 100644 --- a/components/logo/index.html +++ b/components/logo/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/components/properties-list-en/index.html b/components/properties-list-en/index.html index 2c09bf11..92b40705 100644 --- a/components/properties-list-en/index.html +++ b/components/properties-list-en/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/components/properties-list/index.html b/components/properties-list/index.html index 2c09bf11..92b40705 100644 --- a/components/properties-list/index.html +++ b/components/properties-list/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/components/provider/index.html b/components/provider/index.html index 2c09bf11..92b40705 100644 --- a/components/provider/index.html +++ b/components/provider/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/components/query-statements/index.html b/components/query-statements/index.html index 2c09bf11..92b40705 100644 --- a/components/query-statements/index.html +++ b/components/query-statements/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/components/resizable-panel/index.html b/components/resizable-panel/index.html index 2c09bf11..92b40705 100644 --- a/components/resizable-panel/index.html +++ b/components/resizable-panel/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/components/segmented-tabs/index.html b/components/segmented-tabs/index.html index 2c09bf11..92b40705 100644 --- a/components/segmented-tabs/index.html +++ b/components/segmented-tabs/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/components/side-tabs/index.html b/components/side-tabs/index.html index 2c09bf11..92b40705 100644 --- a/components/side-tabs/index.html +++ b/components/side-tabs/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/components/table-card/index.html b/components/table-card/index.html index 2c09bf11..92b40705 100644 --- a/components/table-card/index.html +++ b/components/table-card/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/components/toolbar/index.html b/components/toolbar/index.html index 2c09bf11..92b40705 100644 --- a/components/toolbar/index.html +++ b/components/toolbar/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/components/typing-text/index.html b/components/typing-text/index.html index 2c09bf11..92b40705 100644 --- a/components/typing-text/index.html +++ b/components/typing-text/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/components/utils/index.html b/components/utils/index.html index 2c09bf11..92b40705 100644 --- a/components/utils/index.html +++ b/components/utils/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/graphs/data/index.html b/graphs/data/index.html index 2c09bf11..92b40705 100644 --- a/graphs/data/index.html +++ b/graphs/data/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/graphs/index.html b/graphs/index.html index 2c09bf11..92b40705 100644 --- a/graphs/index.html +++ b/graphs/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/graphs/layout/index.html b/graphs/layout/index.html index 2c09bf11..92b40705 100644 --- a/graphs/layout/index.html +++ b/graphs/layout/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/graphs/online/index.html b/graphs/online/index.html index 2c09bf11..92b40705 100644 --- a/graphs/online/index.html +++ b/graphs/online/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/graphs/performance-1/index.html b/graphs/performance-1/index.html index 2c09bf11..92b40705 100644 --- a/graphs/performance-1/index.html +++ b/graphs/performance-1/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/graphs/performance-2/index.html b/graphs/performance-2/index.html index 2c09bf11..92b40705 100644 --- a/graphs/performance-2/index.html +++ b/graphs/performance-2/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/graphs/performance-3/index.html b/graphs/performance-3/index.html index 2c09bf11..92b40705 100644 --- a/graphs/performance-3/index.html +++ b/graphs/performance-3/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/graphs/provider/index.html b/graphs/provider/index.html index 2c09bf11..92b40705 100644 --- a/graphs/provider/index.html +++ b/graphs/provider/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/graphs/quick/index.html b/graphs/quick/index.html index 2c09bf11..92b40705 100644 --- a/graphs/quick/index.html +++ b/graphs/quick/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/graphs/style/index.html b/graphs/style/index.html index 2c09bf11..92b40705 100644 --- a/graphs/style/index.html +++ b/graphs/style/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/index.html b/index.html index 2c09bf11..92b40705 100644 --- a/index.html +++ b/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/modelings/index.html b/modelings/index.html index 2c09bf11..92b40705 100644 --- a/modelings/index.html +++ b/modelings/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/queries/index.html b/queries/index.html index 2c09bf11..92b40705 100644 --- a/queries/index.html +++ b/queries/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/src-en/index.html b/src-en/index.html index 2c09bf11..92b40705 100644 --- a/src-en/index.html +++ b/src-en/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/src/editable-text/index.html b/src/editable-text/index.html index 2c09bf11..92b40705 100644 --- a/src/editable-text/index.html +++ b/src/editable-text/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/src/empty-canvas/index.html b/src/empty-canvas/index.html index 2c09bf11..92b40705 100644 --- a/src/empty-canvas/index.html +++ b/src/empty-canvas/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/src/full-screen/index.html b/src/full-screen/index.html index 2c09bf11..92b40705 100644 --- a/src/full-screen/index.html +++ b/src/full-screen/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/src/icons-en/index.html b/src/icons-en/index.html index 2c09bf11..92b40705 100644 --- a/src/icons-en/index.html +++ b/src/icons-en/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/src/icons/index.html b/src/icons/index.html index 2c09bf11..92b40705 100644 --- a/src/icons/index.html +++ b/src/icons/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/src/illustration/index.html b/src/illustration/index.html index 2c09bf11..92b40705 100644 --- a/src/illustration/index.html +++ b/src/illustration/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/src/import-files/index.html b/src/import-files/index.html index 2c09bf11..92b40705 100644 --- a/src/import-files/index.html +++ b/src/import-files/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/src/importor/index.html b/src/importor/index.html index 2c09bf11..92b40705 100644 --- a/src/importor/index.html +++ b/src/importor/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/src/index.html b/src/index.html index 2c09bf11..92b40705 100644 --- a/src/index.html +++ b/src/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/src/layout/index.html b/src/layout/index.html index 2c09bf11..92b40705 100644 --- a/src/layout/index.html +++ b/src/layout/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/src/logo/index.html b/src/logo/index.html index 2c09bf11..92b40705 100644 --- a/src/logo/index.html +++ b/src/logo/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/src/properties-list-en/index.html b/src/properties-list-en/index.html index 2c09bf11..92b40705 100644 --- a/src/properties-list-en/index.html +++ b/src/properties-list-en/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/src/properties-list/index.html b/src/properties-list/index.html index 2c09bf11..92b40705 100644 --- a/src/properties-list/index.html +++ b/src/properties-list/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/src/provider/index.html b/src/provider/index.html index 2c09bf11..92b40705 100644 --- a/src/provider/index.html +++ b/src/provider/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/src/resizable-panel/index.html b/src/resizable-panel/index.html index 2c09bf11..92b40705 100644 --- a/src/resizable-panel/index.html +++ b/src/resizable-panel/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/src/segmented-tabs/index.html b/src/segmented-tabs/index.html index 2c09bf11..92b40705 100644 --- a/src/segmented-tabs/index.html +++ b/src/segmented-tabs/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/src/side-tabs/index.html b/src/side-tabs/index.html index 2c09bf11..92b40705 100644 --- a/src/side-tabs/index.html +++ b/src/side-tabs/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/src/table-card/index.html b/src/table-card/index.html index 2c09bf11..92b40705 100644 --- a/src/table-card/index.html +++ b/src/table-card/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/src/toolbar/index.html b/src/toolbar/index.html index 2c09bf11..92b40705 100644 --- a/src/toolbar/index.html +++ b/src/toolbar/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/src/typing-text/index.html b/src/typing-text/index.html index 2c09bf11..92b40705 100644 --- a/src/typing-text/index.html +++ b/src/typing-text/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/src/utils/index.html b/src/utils/index.html index 2c09bf11..92b40705 100644 --- a/src/utils/index.html +++ b/src/utils/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/umi.5e1a63f0.js b/umi.d7f54a20.js similarity index 99% rename from umi.5e1a63f0.js rename to umi.d7f54a20.js index 169a867c..3f8bdb51 100644 --- a/umi.5e1a63f0.js +++ b/umi.d7f54a20.js @@ -1 +1 @@ -(function(){var __webpack_modules__={75875:function(e,t,n){"use strict";n.r(t),n.d(t,{blue:function(){return x},blueDark:function(){return j},cyan:function(){return _},cyanDark:function(){return N},geekblue:function(){return k},geekblueDark:function(){return D},generate:function(){return d},gold:function(){return g},goldDark:function(){return I},gray:function(){return O},green:function(){return w},greenDark:function(){return L},grey:function(){return C},greyDark:function(){return z},lime:function(){return b},limeDark:function(){return M},magenta:function(){return E},magentaDark:function(){return F},orange:function(){return m},orangeDark:function(){return Z},presetDarkPalettes:function(){return B},presetPalettes:function(){return T},presetPrimaryColors:function(){return p},purple:function(){return S},purpleDark:function(){return $},red:function(){return h},redDark:function(){return P},volcano:function(){return v},volcanoDark:function(){return A},yellow:function(){return y},yellowDark:function(){return R}});var r=n(96299),o=n(28556),i=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function a(e){var t=e.r,n=e.g,o=e.b,i=(0,r.py)(t,n,o);return{h:360*i.h,s:i.s,v:i.v}}function c(e){var t=e.r,n=e.g,o=e.b;return"#".concat((0,r.vq)(t,n,o,!1))}function s(e,t,n){var r=n/100;return{r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b}}function l(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function u(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function f(e,t,n){var r;return(r=n?e.v+.05*t:e.v-.15*t)>1&&(r=1),Number(r.toFixed(2))}function d(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=(0,o.uA)(e),d=5;d>0;d-=1){var p=a(r),h=c((0,o.uA)({h:l(p,d,!0),s:u(p,d,!0),v:f(p,d,!0)}));n.push(h)}n.push(c(r));for(var v=1;v<=4;v+=1){var m=a(r),g=c((0,o.uA)({h:l(m,v),s:u(m,v),v:f(m,v)}));n.push(g)}return"dark"===t.theme?i.map((function(e){var r=e.index,i=e.opacity;return c(s((0,o.uA)(t.backgroundColor||"#141414"),(0,o.uA)(n[r]),100*i))})):n}var p={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},h=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];h.primary=h[5];var v=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];v.primary=v[5];var m=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];m.primary=m[5];var g=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];g.primary=g[5];var y=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];y.primary=y[5];var b=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];b.primary=b[5];var w=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];w.primary=w[5];var _=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];_.primary=_[5];var x=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];x.primary=x[5];var k=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];k.primary=k[5];var S=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];S.primary=S[5];var E=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];E.primary=E[5];var C=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];C.primary=C[5];var O=C,T={red:h,volcano:v,orange:m,gold:g,yellow:y,lime:b,green:w,cyan:_,blue:x,geekblue:k,purple:S,magenta:E,grey:C},P=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];P.primary=P[5];var A=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];A.primary=A[5];var Z=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];Z.primary=Z[5];var I=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];I.primary=I[5];var R=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];R.primary=R[5];var M=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];M.primary=M[5];var L=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];L.primary=L[5];var N=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];N.primary=N[5];var j=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];j.primary=j[5];var D=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];D.primary=D[5];var $=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];$.primary=$[5];var F=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];F.primary=F[5];var z=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];z.primary=z[5];var B={red:P,volcano:A,orange:Z,gold:I,yellow:R,lime:M,green:L,cyan:N,blue:j,geekblue:D,purple:$,magenta:F,grey:z}},26757:function(e,t,n){"use strict";n.r(t),n.d(t,{genCalc:function(){return w},genStyleUtils:function(){return M},mergeToken:function(){return E},statistic:function(){return C},statisticToken:function(){return T}});var r=n(24744),o=n(99459),i=n(57904),a=n(98037),c=n(50959),s=n(59637),l=n(73779),u=n(71374),f=n(46468),d=n(45675),p=n(10053),h=(0,u.Z)((function e(){(0,l.Z)(this,e)})),v="CALC_UNIT",m=new RegExp(v,"g");function g(e){return"number"==typeof e?"".concat(e).concat(v):e}var y=function(e){(0,d.Z)(n,e);var t=(0,p.Z)(n);function n(e,o){var a;(0,l.Z)(this,n),a=t.call(this),(0,i.Z)((0,f.Z)(a),"result",""),(0,i.Z)((0,f.Z)(a),"unitlessCssVar",void 0),(0,i.Z)((0,f.Z)(a),"lowPriority",void 0);var c=(0,r.Z)(e);return a.unitlessCssVar=o,e instanceof n?a.result="(".concat(e.result,")"):"number"===c?a.result=g(e):"string"===c&&(a.result=e),a}return(0,u.Z)(n,[{key:"add",value:function(e){return e instanceof n?this.result="".concat(this.result," + ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," + ").concat(g(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof n?this.result="".concat(this.result," - ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," - ").concat(g(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," * ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," / ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){var t=this,n=(e||{}).unit,r=!0;return"boolean"==typeof n?r=n:Array.from(this.unitlessCssVar).some((function(e){return t.result.includes(e)}))&&(r=!1),this.result=this.result.replace(m,r?"px":""),void 0!==this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),n}(h),b=function(e){(0,d.Z)(n,e);var t=(0,p.Z)(n);function n(e){var r;return(0,l.Z)(this,n),r=t.call(this),(0,i.Z)((0,f.Z)(r),"result",0),e instanceof n?r.result=e.result:"number"==typeof e&&(r.result=e),r}return(0,u.Z)(n,[{key:"add",value:function(e){return e instanceof n?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof n?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof n?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof n?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),n}(h),w=function(e,t){var n="css"===e?y:b;return function(e){return new n(e,t)}},_=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};n(62412);var x=function(e,t,n,r){var i=(0,a.Z)({},t[e]);null!=r&&r.deprecatedTokens&&r.deprecatedTokens.forEach((function(e){var t,n=(0,o.Z)(e,2),r=n[0],a=n[1];(null!=i&&i[r]||null!=i&&i[a])&&(null!==(t=i[a])&&void 0!==t||(i[a]=null==i?void 0:i[r]))}));var c=(0,a.Z)((0,a.Z)({},n),i);return Object.keys(c).forEach((function(e){c[e]===t[e]&&delete c[e]})),c},k="undefined"!=typeof CSSINJS_STATISTIC,S=!0;function E(){for(var e=arguments.length,t=new Array(e),n=0;n1e4){var t=Date.now();this.lastAccessBeat.forEach((function(n,r){t-n>6e5&&(e.map.delete(r),e.lastAccessBeat.delete(r))})),this.accessBeat=0}}}]),e}());var I=function(e,t){return c.useMemo((function(){var n=Z.get(t);if(n)return n;var r=e();return Z.set(t,r),r}),t)},R=function(){return{}};var M=function(e){var t=e.useCSP,n=void 0===t?R:t,l=e.useToken,u=e.usePrefix,f=e.getResetStyles,d=e.getCommonStyle,p=e.getCompUnitless;function h(t,i,c){var p=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},h=Array.isArray(t)?t:[t,t],v=(0,o.Z)(h,1),m=v[0],g=h.join("-"),y=e.layer||{name:"antd"};return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,o=l(),h=o.theme,v=o.realToken,b=o.hashId,k=o.token,S=o.cssVar,C=u(),O=C.rootPrefixCls,Z=C.iconPrefixCls,R=n(),M=S?"css":"js",L=I((function(){var e=new Set;return S&&Object.keys(p.unitless||{}).forEach((function(t){e.add((0,s.token2CSSVar)(t,S.prefix)),e.add((0,s.token2CSSVar)(t,_(m,S.prefix)))})),w(M,e)}),[M,m,null==S?void 0:S.prefix]),N=A(M),j=N.max,D=N.min,$={theme:h,token:k,hashId:b,nonce:function(){return R.nonce},clientOnly:p.clientOnly,layer:y,order:p.order||-999};(0,s.useStyleRegister)((0,a.Z)((0,a.Z)({},$),{},{clientOnly:!1,path:["Shared",O]}),(function(){return"function"==typeof f?f(k):[]}));var F=(0,s.useStyleRegister)((0,a.Z)((0,a.Z)({},$),{},{path:[g,e,Z]}),(function(){if(!1===p.injectStyle)return[];var n=T(k),o=n.token,a=n.flush,l=P(m,v,c),u=".".concat(e),f=x(m,v,l,{deprecatedTokens:p.deprecatedTokens});S&&l&&"object"===(0,r.Z)(l)&&Object.keys(l).forEach((function(e){l[e]="var(".concat((0,s.token2CSSVar)(e,_(m,S.prefix)),")")}));var h=E(o,{componentCls:u,prefixCls:e,iconCls:".".concat(Z),antCls:".".concat(O),calc:L,max:j,min:D},S?l:f),g=i(h,{hashId:b,prefixCls:e,rootPrefixCls:O,iconPrefixCls:Z});a(m,f);var y="function"==typeof d?d(h,e,t,p.resetFont):null;return[!1===p.resetStyle?null:y,g]}));return[F,b]}}return{genStyleHooks:function(e,t,n,r){var u=Array.isArray(e)?e[0]:e;function f(e){return"".concat(String(u)).concat(e.slice(0,1).toUpperCase()).concat(e.slice(1))}var d=(null==r?void 0:r.unitless)||{},v="function"==typeof p?p(e):{},m=(0,a.Z)((0,a.Z)({},v),{},(0,i.Z)({},f("zIndexPopup"),!0));Object.keys(d).forEach((function(e){m[f(e)]=d[e]}));var g=(0,a.Z)((0,a.Z)({},r),{},{unitless:m,prefixToken:f}),y=h(e,t,n,g),b=function(e,t,n){var r=n.unitless,o=n.injectStyle,i=void 0===o||o,a=n.prefixToken,u=n.ignore,f=function(o){var i=o.rootCls,c=o.cssVar,f=void 0===c?{}:c,d=l().realToken;return(0,s.useCSSVarRegister)({path:[e],prefix:f.prefix,key:f.key,unitless:r,ignore:u,token:d,scope:i},(function(){var r=P(e,d,t),o=x(e,d,r,{deprecatedTokens:null==n?void 0:n.deprecatedTokens});return Object.keys(r).forEach((function(e){o[a(e)]=o[e],delete o[e]})),o})),null},d=function(t){var n=l().cssVar;return[function(r){return i&&n?c.createElement(c.Fragment,null,c.createElement(f,{rootCls:t,cssVar:n,component:e}),r):r},null==n?void 0:n.key]};return d}(u,n,g);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=y(e,t),r=(0,o.Z)(n,2),i=r[1],a=b(t),c=(0,o.Z)(a,2),s=c[0],l=c[1];return[s,i,l]}},genSubStyleComponent:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=h(e,t,n,(0,a.Z)({resetStyle:!1,order:-998},r)),i=function(e){var t=e.prefixCls,n=e.rootCls;return o(t,void 0===n?t:n),null};return i},genComponentStyleHook:h}}},59637:function(e,t,n){"use strict";n.r(t),n.d(t,{Keyframes:function(){return Ye},NaNLinter:function(){return Pe},StyleProvider:function(){return S},Theme:function(){return z},_experimental:function(){return it},createCache:function(){return x},createTheme:function(){return H},extractStyle:function(){return Ve},genCalc:function(){return j},getComputedToken:function(){return ge},legacyLogicalPropertiesTransformer:function(){return tt},legacyNotSelectorLinter:function(){return Oe},logicalPropertiesLinter:function(){return Te},parentSelectorLinter:function(){return Ae},px2remTransformer:function(){return ot},token2CSSVar:function(){return oe},unit:function(){return ne},useCSSVarRegister:function(){return We},useCacheToken:function(){return be},useStyleRegister:function(){return He}});var r=n(99459),o=n(57904),i=n(35047),a=n(98037);var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},s=n(68042),l=n(50959),u=n.t(l,2),f=n(58006),d=n(1388),p=n(23943),h=n(73779),v=n(71374);function m(e){return e.join("%")}var g=function(){function e(t){(0,h.Z)(this,e),(0,o.Z)(this,"instanceId",void 0),(0,o.Z)(this,"cache",new Map),this.instanceId=t}return(0,v.Z)(e,[{key:"get",value:function(e){return this.opGet(m(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(m(e),t)}},{key:"opUpdate",value:function(e,t){var n=t(this.cache.get(e));null===n?this.cache.delete(e):this.cache.set(e,n)}}]),e}(),y=["children"],b="data-token-hash",w="data-css-hash",_="__cssinjs_instance__";function x(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(w,"]"))||[],n=document.head.firstChild;Array.from(t).forEach((function(t){t[_]=t[_]||e,t[_]===e&&document.head.insertBefore(t,n)}));var r={};Array.from(document.querySelectorAll("style[".concat(w,"]"))).forEach((function(t){var n,o=t.getAttribute(w);r[o]?t[_]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[o]=!0}))}return new g(e)}var k=l.createContext({hashPriority:"low",cache:x(),defaultCache:!0}),S=function(e){var t=e.children,n=(0,f.Z)(e,y),r=l.useContext(k),o=(0,d.Z)((function(){var e=(0,a.Z)({},r);Object.keys(n).forEach((function(t){var r=n[t];void 0!==n[t]&&(e[t]=r)}));var t=n.cache;return e.cache=e.cache||x(),e.defaultCache=!t&&r.defaultCache,e}),[r,n],(function(e,t){return!(0,p.Z)(e[0],t[0],!0)||!(0,p.Z)(e[1],t[1],!0)}));return l.createElement(k.Provider,{value:o},t)},E=k,C=n(24744),O=n(68264),T=n(46468),P=n(45675),A=n(10053),Z=(0,v.Z)((function e(){(0,h.Z)(this,e)})),I="CALC_UNIT",R=new RegExp(I,"g");function M(e){return"number"==typeof e?"".concat(e).concat(I):e}var L=function(e){(0,P.Z)(n,e);var t=(0,A.Z)(n);function n(e,r){var i;(0,h.Z)(this,n),i=t.call(this),(0,o.Z)((0,T.Z)(i),"result",""),(0,o.Z)((0,T.Z)(i),"unitlessCssVar",void 0),(0,o.Z)((0,T.Z)(i),"lowPriority",void 0);var a=(0,C.Z)(e);return i.unitlessCssVar=r,e instanceof n?i.result="(".concat(e.result,")"):"number"===a?i.result=M(e):"string"===a&&(i.result=e),i}return(0,v.Z)(n,[{key:"add",value:function(e){return e instanceof n?this.result="".concat(this.result," + ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," + ").concat(M(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof n?this.result="".concat(this.result," - ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," - ").concat(M(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," * ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," / ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){var t=this,n=(e||{}).unit,r=!0;return"boolean"==typeof n?r=n:Array.from(this.unitlessCssVar).some((function(e){return t.result.includes(e)}))&&(r=!1),this.result=this.result.replace(R,r?"px":""),void 0!==this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),n}(Z),N=function(e){(0,P.Z)(n,e);var t=(0,A.Z)(n);function n(e){var r;return(0,h.Z)(this,n),r=t.call(this),(0,o.Z)((0,T.Z)(r),"result",0),e instanceof n?r.result=e.result:"number"==typeof e&&(r.result=e),r}return(0,v.Z)(n,[{key:"add",value:function(e){return e instanceof n?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof n?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof n?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof n?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),n}(Z),j=function(e,t){var n="css"===e?L:N;return function(e){return new n(e,t)}};var D=function(){function e(){(0,h.Z)(this,e),(0,o.Z)(this,"cache",void 0),(0,o.Z)(this,"keys",void 0),(0,o.Z)(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return(0,v.Z)(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach((function(e){var t;o?o=null===(t=o)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):o=void 0})),null!==(t=o)&&void 0!==t&&t.value&&r&&(o.value[1]=this.cacheCallTimes++),null===(n=o)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var o=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce((function(e,t){var n=(0,r.Z)(e,2)[1];return o.internalGet(t)[1]0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),F+=1}return(0,v.Z)(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,n){return n(e,t)}),void 0)}}]),e}(),B=new D;function H(e){var t=Array.isArray(e)?e:[e];return B.has(t)||B.set(t,new z(t)),B.get(t)}var q=new WeakMap,U={};function W(e,t){for(var n=q,r=0;r3&&void 0!==arguments[3]?arguments[3]:{},c=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(c)return e;var s=(0,a.Z)((0,a.Z)({},i),{},(r={},(0,o.Z)(r,b,t),(0,o.Z)(r,w,n),r)),l=Object.keys(s).map((function(e){var t=s[e];return t?"".concat(e,'="').concat(t,'"'):null})).filter((function(e){return e})).join(" ");return"")}var oe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},ie=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(null!=n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map((function(e){var t=(0,r.Z)(e,2),n=t[0],o=t[1];return"".concat(n,":").concat(o,";")})).join(""),"}"):""},ae=function(e,t,n){var o={},i={};return Object.entries(e).forEach((function(e){var t,a,c=(0,r.Z)(e,2),s=c[0],l=c[1];if(null!=n&&null!==(t=n.preserve)&&void 0!==t&&t[s])i[s]=l;else if(!("string"!=typeof l&&"number"!=typeof l||null!=n&&null!==(a=n.ignore)&&void 0!==a&&a[s])){var u,f=oe(s,null==n?void 0:n.prefix);o[f]="number"!=typeof l||null!=n&&null!==(u=n.unitless)&&void 0!==u&&u[s]?String(l):"".concat(l,"px"),i[s]="var(".concat(f,")")}})),[i,ie(o,t,{scope:null==n?void 0:n.scope})]},ce=n(84025),se=(0,a.Z)({},u).useInsertionEffect,le=se?function(e,t,n){return se((function(){return e(),t()}),n)}:function(e,t,n){l.useMemo(e,n),(0,ce.Z)((function(){return t(!0)}),n)},ue=void 0!==(0,a.Z)({},u).useInsertionEffect?function(e){var t=[],n=!1;return l.useEffect((function(){return n=!1,function(){n=!0,t.length&&t.forEach((function(e){return e()}))}}),e),function(e){n||t.push(e)}}:function(){return function(e){e()}};var fe=function(){return!1};function de(e,t,n,o,a){var c=l.useContext(E).cache,s=m([e].concat((0,i.Z)(t))),u=ue([s]),f=(fe(),function(e){c.opUpdate(s,(function(t){var o=t||[void 0,void 0],i=(0,r.Z)(o,2),a=i[0];var c=[void 0===a?0:a,i[1]||n()];return e?e(c):c}))});l.useMemo((function(){f()}),[s]);var d=c.opGet(s)[1];return le((function(){null==a||a(d)}),(function(e){return f((function(t){var n=(0,r.Z)(t,2),o=n[0],i=n[1];return e&&0===o&&(null==a||a(d)),[o+1,i]})),function(){c.opUpdate(s,(function(t){var n=t||[],i=(0,r.Z)(n,2),a=i[0],l=void 0===a?0:a,f=i[1];return 0===l-1?(u((function(){!e&&c.opGet(s)||null==o||o(f,!1)})),null):[l-1,f]}))}}),[s]),d}var pe={},he=new Map;function ve(e){he.set(e,(he.get(e)||0)+1)}function me(e,t){he.set(e,(he.get(e)||0)-1);var n=Array.from(he.keys()),r=n.filter((function(e){return(he.get(e)||0)<=0}));n.length-r.length>0&&r.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(b,'="').concat(e,'"]')).forEach((function(e){var n;e[_]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),he.delete(e)}))}var ge=function(e,t,n,r){var o=n.getDerivativeToken(e),i=(0,a.Z)((0,a.Z)({},o),t);return r&&(i=r(i)),i},ye="token";function be(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=(0,l.useContext)(E),u=o.cache.instanceId,f=o.container,d=n.salt,p=void 0===d?"":d,h=n.override,v=void 0===h?pe:h,m=n.formatToken,g=n.getComputedToken,y=n.cssVar,x=W((function(){return Object.assign.apply(Object,[{}].concat((0,i.Z)(t)))}),t),k=K(x),S=K(v),C=y?K(y):"",O=de(ye,[p,e.id,k,S,C],(function(){var t,n=g?g(x,v,e):ge(x,v,e,m),o=(0,a.Z)({},n),i="";if(y){var s=ae(n,y.key,{prefix:y.prefix,ignore:y.ignore,unitless:y.unitless,preserve:y.preserve}),l=(0,r.Z)(s,2);n=l[0],i=l[1]}var u=V(n,p);n._tokenKey=u,o._tokenKey=V(o,p);var f=null!==(t=null==y?void 0:y.key)&&void 0!==t?t:u;n._themeKey=f,ve(f);var d="".concat("css","-").concat(c(u));return n._hashId=d,[n,d,o,i,(null==y?void 0:y.key)||""]}),(function(e){me(e[0]._themeKey,u)}),(function(e){var t=(0,r.Z)(e,4),n=t[0],o=t[3];if(y&&o){var i=(0,s.hq)(o,c("css-variables-".concat(n._themeKey)),{mark:w,prepend:"queue",attachTo:f,priority:-999});i[_]=u,i.setAttribute(b,n._themeKey)}}));return O}var we=n(2053),_e=n(67126),xe=n(24614),ke=n(73333);function Se(e,t){var n=t.path,r=t.parentSelectors;(0,$.ZP)(!1,"[Ant Design CSS-in-JS] ".concat(n?"Error in ".concat(n,": "):"").concat(e).concat(r.length?" Selector: ".concat(r.join(" | ")):""))}function Ee(e){var t;return((null===(t=e.match(/:not\(([^)]*)\)/))||void 0===t?void 0:t[1])||"").split(/(\[[^[]*])|(?=[.#])/).filter((function(e){return e})).length>1}var Ce,Oe=function(e,t,n){var r=function(e){return e.parentSelectors.reduce((function(e,t){return e?t.includes("&")?t.replace(/&/g,e):"".concat(e," ").concat(t):t}),"")}(n),o=r.match(/:not\([^)]*\)/g)||[];o.length>0&&o.some(Ee)&&Se("Concat ':not' selector not support in legacy browsers.",n)},Te=function(e,t,n){switch(e){case"marginLeft":case"marginRight":case"paddingLeft":case"paddingRight":case"left":case"right":case"borderLeft":case"borderLeftWidth":case"borderLeftStyle":case"borderLeftColor":case"borderRight":case"borderRightWidth":case"borderRightStyle":case"borderRightColor":case"borderTopLeftRadius":case"borderTopRightRadius":case"borderBottomLeftRadius":case"borderBottomRightRadius":return void Se("You seem to be using non-logical property '".concat(e,"' which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),n);case"margin":case"padding":case"borderWidth":case"borderStyle":if("string"==typeof t){var r=t.split(" ").map((function(e){return e.trim()}));4===r.length&&r[1]!==r[3]&&Se("You seem to be using '".concat(e,"' property with different left ").concat(e," and right ").concat(e,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),n)}return;case"clear":case"textAlign":return void("left"!==t&&"right"!==t||Se("You seem to be using non-logical value '".concat(t,"' of ").concat(e,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),n));case"borderRadius":if("string"==typeof t)t.split("/").map((function(e){return e.trim()})).reduce((function(e,t){if(e)return e;var n=t.split(" ").map((function(e){return e.trim()}));return n.length>=2&&n[0]!==n[1]||(3===n.length&&n[1]!==n[2]||(4===n.length&&n[2]!==n[3]||e))}),!1)&&Se("You seem to be using non-logical value '".concat(t,"' of ").concat(e,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),n);return}},Pe=function(e,t,n){("string"==typeof t&&/NaN/g.test(t)||Number.isNaN(t))&&Se("Unexpected 'NaN' in property '".concat(e,": ").concat(t,"'."),n)},Ae=function(e,t,n){n.parentSelectors.some((function(e){return e.split(",").some((function(e){return e.split("&").length>2}))}))&&Se("Should not use more than one `&` in a selector.",n)},Ze="data-ant-cssinjs-cache-path",Ie="_FILE_STYLE__";var Re=!0;function Me(e){return function(){if(!Ce&&(Ce={},(0,O.Z)())){var e=document.createElement("div");e.className=Ze,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";(t=t.replace(/^"/,"").replace(/"$/,"")).split(";").forEach((function(e){var t=e.split(":"),n=(0,r.Z)(t,2),o=n[0],i=n[1];Ce[o]=i}));var n,o=document.querySelector("style[".concat(Ze,"]"));o&&(Re=!1,null===(n=o.parentNode)||void 0===n||n.removeChild(o)),document.body.removeChild(e)}}(),!!Ce[e]}var Le="_multi_value_";function Ne(e){return(0,xe.q)((0,ke.MY)(e),xe.P).replace(/\{%%%\:[^;];}/g,";")}function je(e){return"object"===(0,C.Z)(e)&&e&&("_skip_check_"in e||Le in e)}function De(e,t,n){if(!t)return e;var r=".".concat(t),o="low"===n?":where(".concat(r,")"):r;return e.split(",").map((function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",a=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(a).concat(o).concat(r.slice(a.length))].concat((0,i.Z)(n.slice(1))).join(" ")})).join(",")}var $e=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},c=o.root,s=o.injectHash,l=o.parentSelectors,u=n.hashId,f=n.layer,d=(n.path,n.hashPriority),p=n.transformers,h=void 0===p?[]:p,v=(n.linters,""),m={};function g(t){var o=t.getName(u);if(!m[o]){var i=e(t.style,n,{root:!1,parentSelectors:l}),a=(0,r.Z)(i,1)[0];m[o]="@keyframes ".concat(t.getName(u)).concat(a)}}function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.forEach((function(e){Array.isArray(e)?y(e,t):e&&t.push(e)})),t}var b=y(Array.isArray(t)?t:[t]);return b.forEach((function(t){var o="string"!=typeof t||c?t:{};if("string"==typeof o)v+="".concat(o,"\n");else if(o._keyframe)g(o);else{var f=h.reduce((function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e}),o);Object.keys(f).forEach((function(t){var o=f[t];if("object"!==(0,C.Z)(o)||!o||"animationName"===t&&o._keyframe||je(o)){var p;function E(e,t){var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),r=t;_e.Z[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(g(t),r=t.getName(u)),v+="".concat(n,":").concat(r,";")}var h=null!==(p=null==o?void 0:o.value)&&void 0!==p?p:o;"object"===(0,C.Z)(o)&&null!=o&&o[Le]&&Array.isArray(h)?h.forEach((function(e){E(t,e)})):E(t,h)}else{var y=!1,b=t.trim(),w=!1;(c||s)&&u?b.startsWith("@")?y=!0:b=De("&"===b?"":t,u,d):!c||u||"&"!==b&&""!==b||(b="",w=!0);var _=e(o,n,{root:w,injectHash:y,parentSelectors:[].concat((0,i.Z)(l),[b])}),x=(0,r.Z)(_,2),k=x[0],S=x[1];m=(0,a.Z)((0,a.Z)({},m),S),v+="".concat(b).concat(k)}}))}})),c?f&&(v="@layer ".concat(f.name," {").concat(v,"}"),f.dependencies&&(m["@layer ".concat(f.name)]=f.dependencies.map((function(e){return"@layer ".concat(e,", ").concat(f.name,";")})).join("\n"))):v="{".concat(v,"}"),[v,m]};function Fe(e,t){return c("".concat(e.join("%")).concat(t))}function ze(){return null}var Be="style";function He(e,t){var n=e.token,c=e.path,u=e.hashId,f=e.layer,d=e.nonce,p=e.clientOnly,h=e.order,v=void 0===h?0:h,m=l.useContext(E),g=m.autoClear,y=(m.mock,m.defaultCache),x=m.hashPriority,k=m.container,S=m.ssrInline,C=m.transformers,T=m.linters,P=m.cache,A=m.layer,Z=n._tokenKey,I=[Z];A&&I.push("layer"),I.push.apply(I,(0,i.Z)(c));var R=te;var M=de(Be,I,(function(){var e=I.join("|");if(Me(e)){var n=function(e){var t=Ce[e],n=null;if(t&&(0,O.Z)())if(Re)n=Ie;else{var r=document.querySelector("style[".concat(w,'="').concat(Ce[e],'"]'));r?n=r.innerHTML:delete Ce[e]}return[n,t]}(e),o=(0,r.Z)(n,2),i=o[0],a=o[1];if(i)return[i,Z,a,{},p,v]}var s=t(),l=$e(s,{hashId:u,hashPriority:x,layer:A?f:void 0,path:c.join("-"),transformers:C,linters:T}),d=(0,r.Z)(l,2),h=d[0],m=d[1],g=Ne(h),y=Fe(I,g);return[g,Z,y,m,p,v]}),(function(e,t){var n=(0,r.Z)(e,3)[2];(t||g)&&te&&(0,s.jL)(n,{mark:w})}),(function(e){var t=(0,r.Z)(e,4),n=t[0],o=(t[1],t[2]),i=t[3];if(R&&n!==Ie){var c={mark:w,prepend:!A&&"queue",attachTo:k,priority:v},l="function"==typeof d?d():d;l&&(c.csp={nonce:l});var u=[],f=[];Object.keys(i).forEach((function(e){e.startsWith("@layer")?u.push(e):f.push(e)})),u.forEach((function(e){(0,s.hq)(Ne(i[e]),"_layer-".concat(e),(0,a.Z)((0,a.Z)({},c),{},{prepend:!0}))}));var p=(0,s.hq)(n,o,c);p[_]=P.instanceId,p.setAttribute(b,Z),f.forEach((function(e){(0,s.hq)(Ne(i[e]),"_effect-".concat(e),c)}))}})),L=(0,r.Z)(M,3),N=L[0],j=L[1],D=L[2];return function(e){var t,n;S&&!R&&y?t=l.createElement("style",(0,we.Z)({},(n={},(0,o.Z)(n,b,j),(0,o.Z)(n,w,D),n),{dangerouslySetInnerHTML:{__html:N}})):t=l.createElement(ze,null);return l.createElement(l.Fragment,null,t,e)}}var qe,Ue="cssVar",We=function(e,t){var n=e.key,o=e.prefix,a=e.unitless,c=e.ignore,u=e.token,f=e.scope,d=void 0===f?"":f,p=(0,l.useContext)(E),h=p.cache.instanceId,v=p.container,m=u._tokenKey,g=[].concat((0,i.Z)(e.path),[n,d,m]);return de(Ue,g,(function(){var e=t(),i=ae(e,n,{prefix:o,unitless:a,ignore:c,scope:d}),s=(0,r.Z)(i,2),l=s[0],u=s[1];return[l,u,Fe(g,u),n]}),(function(e){var t=(0,r.Z)(e,3)[2];te&&(0,s.jL)(t,{mark:w})}),(function(e){var t=(0,r.Z)(e,3),o=t[1],i=t[2];if(o){var a=(0,s.hq)(o,i,{mark:w,prepend:"queue",attachTo:v,priority:-999});a[_]=h,a.setAttribute(b,n)}}))},Ge=(qe={},(0,o.Z)(qe,Be,(function(e,t,n){var o=(0,r.Z)(e,6),i=o[0],a=o[1],c=o[2],s=o[3],l=o[4],u=o[5],f=(n||{}).plain;if(l)return null;var d=i,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return d=re(i,a,c,p,f),s&&Object.keys(s).forEach((function(e){if(!t[e]){t[e]=!0;var n=re(Ne(s[e]),a,"_effect-".concat(e),p,f);e.startsWith("@layer")?d=n+d:d+=n}})),[u,c,d]})),(0,o.Z)(qe,ye,(function(e,t,n){var o=(0,r.Z)(e,5),i=o[2],a=o[3],c=o[4],s=(n||{}).plain;if(!a)return null;var l=i._tokenKey;return[-999,l,re(a,c,l,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s)]})),(0,o.Z)(qe,Ue,(function(e,t,n){var o=(0,r.Z)(e,4),i=o[1],a=o[2],c=o[3],s=(n||{}).plain;if(!i)return null;return[-999,a,re(i,c,a,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s)]})),qe);function Ke(e){return null!==e}function Ve(e,t){var n="boolean"==typeof t?{plain:t}:t||{},i=n.plain,a=void 0!==i&&i,c=n.types,s=void 0===c?["style","token","cssVar"]:c,l=new RegExp("^(".concat(("string"==typeof s?[s]:s).join("|"),")%")),u=Array.from(e.cache.keys()).filter((function(e){return l.test(e)})),f={},d={},p="";return u.map((function(t){var n=t.replace(l,"").replace(/%/g,"|"),o=t.split("%"),i=(0,r.Z)(o,1)[0],c=(0,Ge[i])(e.cache.get(t)[1],f,{plain:a});if(!c)return null;var s=(0,r.Z)(c,3),u=s[0],p=s[1],h=s[2];return t.startsWith("style")&&(d[n]=p),[u,h]})).filter(Ke).sort((function(e,t){return(0,r.Z)(e,1)[0]-(0,r.Z)(t,1)[0]})).forEach((function(e){var t=(0,r.Z)(e,2)[1];p+=t})),p+=re(".".concat(Ze,'{content:"').concat(function(e){return Object.keys(e).map((function(t){var n=e[t];return"".concat(t,":").concat(n)})).join(";")}(d),'";}'),void 0,void 0,(0,o.Z)({},Ze,Ze),a),p}var Xe=function(){function e(t,n){(0,h.Z)(this,e),(0,o.Z)(this,"name",void 0),(0,o.Z)(this,"style",void 0),(0,o.Z)(this,"_keyframe",!0),this.name=t,this.style=n}return(0,v.Z)(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}(),Ye=Xe;function Qe(e){return e.notSplit=!0,e}var Je={inset:["top","right","bottom","left"],insetBlock:["top","bottom"],insetBlockStart:["top"],insetBlockEnd:["bottom"],insetInline:["left","right"],insetInlineStart:["left"],insetInlineEnd:["right"],marginBlock:["marginTop","marginBottom"],marginBlockStart:["marginTop"],marginBlockEnd:["marginBottom"],marginInline:["marginLeft","marginRight"],marginInlineStart:["marginLeft"],marginInlineEnd:["marginRight"],paddingBlock:["paddingTop","paddingBottom"],paddingBlockStart:["paddingTop"],paddingBlockEnd:["paddingBottom"],paddingInline:["paddingLeft","paddingRight"],paddingInlineStart:["paddingLeft"],paddingInlineEnd:["paddingRight"],borderBlock:Qe(["borderTop","borderBottom"]),borderBlockStart:Qe(["borderTop"]),borderBlockEnd:Qe(["borderBottom"]),borderInline:Qe(["borderLeft","borderRight"]),borderInlineStart:Qe(["borderLeft"]),borderInlineEnd:Qe(["borderRight"]),borderBlockWidth:["borderTopWidth","borderBottomWidth"],borderBlockStartWidth:["borderTopWidth"],borderBlockEndWidth:["borderBottomWidth"],borderInlineWidth:["borderLeftWidth","borderRightWidth"],borderInlineStartWidth:["borderLeftWidth"],borderInlineEndWidth:["borderRightWidth"],borderBlockStyle:["borderTopStyle","borderBottomStyle"],borderBlockStartStyle:["borderTopStyle"],borderBlockEndStyle:["borderBottomStyle"],borderInlineStyle:["borderLeftStyle","borderRightStyle"],borderInlineStartStyle:["borderLeftStyle"],borderInlineEndStyle:["borderRightStyle"],borderBlockColor:["borderTopColor","borderBottomColor"],borderBlockStartColor:["borderTopColor"],borderBlockEndColor:["borderBottomColor"],borderInlineColor:["borderLeftColor","borderRightColor"],borderInlineStartColor:["borderLeftColor"],borderInlineEndColor:["borderRightColor"],borderStartStartRadius:["borderTopLeftRadius"],borderStartEndRadius:["borderTopRightRadius"],borderEndStartRadius:["borderBottomLeftRadius"],borderEndEndRadius:["borderBottomRightRadius"]};function et(e,t){var n=e;return t&&(n="".concat(n," !important")),{_skip_check_:!0,value:n}}var tt={visit:function(e){var t={};return Object.keys(e).forEach((function(n){var o=e[n],i=Je[n];if(!i||"number"!=typeof o&&"string"!=typeof o)t[n]=o;else{var a=function(e){if("number"==typeof e)return[[e],!1];var t=String(e).trim(),n=t.match(/(.*)(!important)/),r=(n?n[1]:t).trim().split(/\s+/),o=[],i=0;return[r.reduce((function(e,t){if(t.includes("(")||t.includes(")")){var n=t.split("(").length-1,r=t.split(")").length-1;i+=n-r}return i>=0&&o.push(t),0===i&&(e.push(o.join(" ")),o=[]),e}),[]),!!n]}(o),c=(0,r.Z)(a,2),s=c[0],l=c[1];i.length&&i.notSplit?i.forEach((function(e){t[e]=et(o,l)})):1===i.length?t[i[0]]=et(s[0],l):2===i.length?i.forEach((function(e,n){var r;t[e]=et(null!==(r=s[n])&&void 0!==r?r:s[0],l)})):4===i.length?i.forEach((function(e,n){var r,o;t[e]=et(null!==(r=null!==(o=s[n])&&void 0!==o?o:s[n-2])&&void 0!==r?r:s[0],l)})):t[n]=o}})),t}},nt=/url\([^)]+\)|var\([^)]+\)|(\d*\.?\d+)px/g;function rt(e,t){var n=Math.pow(10,t+1),r=Math.floor(e*n);return 10*Math.round(r/10)/n}var ot=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.rootValue,n=void 0===t?16:t,o=e.precision,i=void 0===o?5:o,c=e.mediaQuery,s=void 0!==c&&c,l=function(e,t){if(!t)return e;var r=parseFloat(t);if(r<=1)return e;var o=rt(r/n,i);return"".concat(o,"rem")},u=function(e){var t=(0,a.Z)({},e);return Object.entries(e).forEach((function(e){var n=(0,r.Z)(e,2),o=n[0],i=n[1];if("string"==typeof i&&i.includes("px")){var a=i.replace(nt,l);t[o]=a}_e.Z[o]||"number"!=typeof i||0===i||(t[o]="".concat(i,"px").replace(nt,l));var c=o.trim();if(c.startsWith("@")&&c.includes("px")&&s){var u=o.replace(nt,l);t[u]=t[o],delete t[o]}})),t};return{visit:u}},it={supportModernCSS:function(){return void 0===J&&(J=Q(":where(.".concat(X,') { content: "').concat(Y,'"!important; }'),(function(e){e.className=X}))),J&&(void 0===ee&&(ee=Q(".".concat(X," { inset-block: 93px !important; }"),(function(e){e.className=X}),(function(e){return"93px"===getComputedStyle(e).bottom}))),ee)}}},17338:function(e,t){"use strict";t.Z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"}},70922:function(e,t){"use strict";t.Z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"}},82350:function(e,t,n){"use strict";var r=n(2053),o=n(99459),i=n(57904),a=n(58006),c=n(50959),s=n(82187),l=n.n(s),u=n(75875),f=n(2101),d=n(43452),p=n(49118),h=n(77348),v=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];(0,p.U)(u.blue.primary);var m=c.forwardRef((function(e,t){var n=e.className,s=e.icon,u=e.spin,p=e.rotate,m=e.tabIndex,g=e.onClick,y=e.twoToneColor,b=(0,a.Z)(e,v),w=c.useContext(f.Z),_=w.prefixCls,x=void 0===_?"anticon":_,k=w.rootClassName,S=l()(k,x,(0,i.Z)((0,i.Z)({},"".concat(x,"-").concat(s.name),!!s.name),"".concat(x,"-spin"),!!u||"loading"===s.name),n),E=m;void 0===E&&g&&(E=-1);var C=p?{msTransform:"rotate(".concat(p,"deg)"),transform:"rotate(".concat(p,"deg)")}:void 0,O=(0,h.H9)(y),T=(0,o.Z)(O,2),P=T[0],A=T[1];return c.createElement("span",(0,r.Z)({role:"img","aria-label":s.name},b,{ref:t,tabIndex:E,onClick:g,className:S}),c.createElement(d.Z,{icon:s,primaryColor:P,secondaryColor:A,style:C}))}));m.displayName="AntdIcon",m.getTwoToneColor=p.m,m.setTwoToneColor=p.U,t.Z=m},2101:function(e,t,n){"use strict";var r=(0,n(50959).createContext)({});t.Z=r},43452:function(e,t,n){"use strict";var r=n(58006),o=n(98037),i=n(50959),a=n(77348),c=["icon","className","onClick","style","primaryColor","secondaryColor"],s={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var l=function(e){var t=e.icon,n=e.className,l=e.onClick,u=e.style,f=e.primaryColor,d=e.secondaryColor,p=(0,r.Z)(e,c),h=i.useRef(),v=s;if(f&&(v={primaryColor:f,secondaryColor:d||(0,a.pw)(f)}),(0,a.C3)(h),(0,a.Kp)((0,a.r)(t),"icon should be icon definiton, but got ".concat(t)),!(0,a.r)(t))return null;var m=t;return m&&"function"==typeof m.icon&&(m=(0,o.Z)((0,o.Z)({},m),{},{icon:m.icon(v.primaryColor,v.secondaryColor)})),(0,a.R_)(m.icon,"svg-".concat(m.name),(0,o.Z)((0,o.Z)({className:n,onClick:l,style:u,"data-icon":m.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},p),{},{ref:h}))};l.displayName="IconReact",l.getTwoToneColors=function(){return(0,o.Z)({},s)},l.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;s.primaryColor=t,s.secondaryColor=n||(0,a.pw)(t),s.calculated=!!n},t.Z=l},49118:function(e,t,n){"use strict";n.d(t,{U:function(){return a},m:function(){return c}});var r=n(99459),o=n(43452),i=n(77348);function a(e){var t=(0,i.H9)(e),n=(0,r.Z)(t,2),a=n[0],c=n[1];return o.Z.setTwoToneColors({primaryColor:a,secondaryColor:c})}function c(){var e=o.Z.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}},10705:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(2053),o=n(50959),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},a=n(82350),c=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};var s=o.forwardRef(c)},42216:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(2053),o=n(50959),i={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},a=n(82350),c=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};var s=o.forwardRef(c)},51558:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(2053),o=n(50959),i={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},a=n(82350),c=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};var s=o.forwardRef(c)},6713:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(2053),o=n(50959),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},a=n(82350),c=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};var s=o.forwardRef(c)},41473:function(e,t,n){"use strict";var r=n(2053),o=n(50959),i=n(17338),a=n(82350),c=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i.Z}))},s=o.forwardRef(c);t.Z=s},50848:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(2053),o=n(50959),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},a=n(82350),c=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};var s=o.forwardRef(c)},34382:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(2053),o=n(50959),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},a=n(82350),c=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};var s=o.forwardRef(c)},62299:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(2053),o=n(50959),i={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},a=n(82350),c=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};var s=o.forwardRef(c)},41610:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(2053),o=n(50959),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},a=n(82350),c=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};var s=o.forwardRef(c)},5022:function(e,t,n){"use strict";var r=n(2053),o=n(50959),i=n(70922),a=n(82350),c=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i.Z}))},s=o.forwardRef(c);t.Z=s},77348:function(e,t,n){"use strict";n.d(t,{C3:function(){return b},H9:function(){return g},Kp:function(){return d},R_:function(){return v},pw:function(){return m},r:function(){return p},vD:function(){return y}});var r=n(98037),o=n(24744),i=n(75875),a=n(68042),c=n(93196),s=n(20983),l=n(50959),u=n(2101);function f(e){return e.replace(/-(.)/g,(function(e,t){return t.toUpperCase()}))}function d(e,t){(0,s.ZP)(e,"[@ant-design/icons] ".concat(t))}function p(e){return"object"===(0,o.Z)(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===(0,o.Z)(e.icon)||"function"==typeof e.icon)}function h(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r=e[n];if("class"===n)t.className=r,delete t.class;else delete t[n],t[f(n)]=r;return t}),{})}function v(e,t,n){return n?l.createElement(e.tag,(0,r.Z)((0,r.Z)({key:t},h(e.attrs)),n),(e.children||[]).map((function(n,r){return v(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))):l.createElement(e.tag,(0,r.Z)({key:t},h(e.attrs)),(e.children||[]).map((function(n,r){return v(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function m(e){return(0,i.generate)(e)[0]}function g(e){return e?Array.isArray(e)?e:[e]:[]}var y={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},b=function(e){var t=(0,l.useContext)(u.Z),n=t.csp,r=t.prefixCls,o="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";r&&(o=o.replace(/anticon/g,r)),(0,l.useEffect)((function(){var t=e.current,r=(0,c.A)(t);(0,a.hq)(o,"@ant-design-icons",{prepend:!0,csp:n,attachTo:r})}),[])}},24070:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=(0,n(50959).createContext)({});t.default=r},91574:function(e,t,n){"use strict";function r(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function o(e){return Math.min(1,Math.max(0,e))}function i(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function a(e){return e<=1?"".concat(100*Number(e),"%"):e}function c(e){return 1===e.length?"0"+e:String(e)}function s(e,t,n){e=r(e,255),t=r(t,255),n=r(n,255);var o=Math.max(e,t,n),i=Math.min(e,t,n),a=0,c=0,s=(o+i)/2;if(o===i)c=0,a=0;else{var l=o-i;switch(c=s>.5?l/(2-o-i):l/(o+i),o){case e:a=(t-n)/l+(t1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function u(e,t,n){e=r(e,255),t=r(t,255),n=r(n,255);var o=Math.max(e,t,n),i=Math.min(e,t,n),a=0,c=o,s=o-i,l=0===o?0:s/o;if(o===i)a=0;else{switch(o){case e:a=(t-n)/s+(t>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var o=m(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(r=n.format)&&void 0!==r?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=i(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=u(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=u(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=s(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=s(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),f(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,t,n,r,o){var i=[c(Math.round(e).toString(16)),c(Math.round(t).toString(16)),c(Math.round(n).toString(16)),c(d(r))];return o&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*r(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*r(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+f(this.r,this.g,this.b,!1),t=0,n=Object.entries(v);t=0;return t||!r||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=o(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=o(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=o(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=o(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100;return new e({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],c=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+c)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;a.5?l/(2-o-i):l/(o+i),o){case e:a=(t-n)/l+(t1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function c(e,t,n){var o,i,c;if(e=(0,r.sh)(e,360),t=(0,r.sh)(t,100),n=(0,r.sh)(n,100),0===t)i=n,c=n,o=n;else{var s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;o=a(l,s,e+1/3),i=a(l,s,e),c=a(l,s,e-1/3)}return{r:255*o,g:255*i,b:255*c}}function s(e,t,n){e=(0,r.sh)(e,255),t=(0,r.sh)(t,255),n=(0,r.sh)(n,255);var o=Math.max(e,t,n),i=Math.min(e,t,n),a=0,c=o,s=o-i,l=0===o?0:s/o;if(o===i)a=0;else{switch(o){case e:a=(t-n)/s+(t>16,g:(65280&e)>>8,b:255&e}}},76367:function(e,t,n){"use strict";n.d(t,{R:function(){return r}});var r={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}},28556:function(e,t,n){"use strict";n.d(t,{ky:function(){return d},uA:function(){return a},uz:function(){return f}});var r=n(96299),o=n(76367),i=n(23881);function a(e){var t={r:0,g:0,b:0},n=1,o=null,a=null,c=null,s=!1,l=!1;return"string"==typeof e&&(e=f(e)),"object"==typeof e&&(d(e.r)&&d(e.g)&&d(e.b)?(t=(0,r.rW)(e.r,e.g,e.b),s=!0,l="%"===String(e.r).substr(-1)?"prgb":"rgb"):d(e.h)&&d(e.s)&&d(e.v)?(o=(0,i.JX)(e.s),a=(0,i.JX)(e.v),t=(0,r.WE)(e.h,o,a),s=!0,l="hsv"):d(e.h)&&d(e.s)&&d(e.l)&&(o=(0,i.JX)(e.s),c=(0,i.JX)(e.l),t=(0,r.ve)(e.h,o,c),s=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=(0,i.Yq)(n),{ok:s,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var c="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),s="[\\s|\\(]+(".concat(c,")[,|\\s]+(").concat(c,")[,|\\s]+(").concat(c,")\\s*\\)?"),l="[\\s|\\(]+(".concat(c,")[,|\\s]+(").concat(c,")[,|\\s]+(").concat(c,")[,|\\s]+(").concat(c,")\\s*\\)?"),u={CSS_UNIT:new RegExp(c),rgb:new RegExp("rgb"+s),rgba:new RegExp("rgba"+l),hsl:new RegExp("hsl"+s),hsla:new RegExp("hsla"+l),hsv:new RegExp("hsv"+s),hsva:new RegExp("hsva"+l),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function f(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(o.R[e])e=o.R[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=u.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=u.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=u.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=u.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=u.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=u.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=u.hex8.exec(e))?{r:(0,r.VD)(n[1]),g:(0,r.VD)(n[2]),b:(0,r.VD)(n[3]),a:(0,r.T6)(n[4]),format:t?"name":"hex8"}:(n=u.hex6.exec(e))?{r:(0,r.VD)(n[1]),g:(0,r.VD)(n[2]),b:(0,r.VD)(n[3]),format:t?"name":"hex"}:(n=u.hex4.exec(e))?{r:(0,r.VD)(n[1]+n[1]),g:(0,r.VD)(n[2]+n[2]),b:(0,r.VD)(n[3]+n[3]),a:(0,r.T6)(n[4]+n[4]),format:t?"name":"hex8"}:!!(n=u.hex3.exec(e))&&{r:(0,r.VD)(n[1]+n[1]),g:(0,r.VD)(n[2]+n[2]),b:(0,r.VD)(n[3]+n[3]),format:t?"name":"hex"}}function d(e){return Boolean(u.CSS_UNIT.exec(String(e)))}},99978:function(e,t,n){"use strict";n.d(t,{C:function(){return c},H:function(){return s}});var r=n(96299),o=n(76367),i=n(28556),a=n(23881),c=function(){function e(t,n){var o;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=(0,r.Yt)(t)),this.originalInput=t;var a=(0,i.uA)(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(o=n.format)&&void 0!==o?o:a.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=(0,a.Yq)(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=(0,r.py)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=(0,r.py)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=(0,r.lC)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=(0,r.lC)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),(0,r.vq)(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),(0,r.s)(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*(0,a.sh)(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*(0,a.sh)(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+(0,r.vq)(this.r,this.g,this.b,!1),t=0,n=Object.entries(o.R);t=0;return t||!r||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=(0,a.V2)(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=(0,a.V2)(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=(0,a.V2)(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=(0,a.V2)(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100;return new e({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],c=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+c)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;a=4.5;case"AAlarge":return a>=3;case"AAAsmall":return a>=7;default:return!1}}function c(e,t,n){void 0===n&&(n={includeFallbackColors:!1,level:"AA",size:"small"});for(var o=null,s=0,l=n.includeFallbackColors,u=n.level,f=n.size,d=0,p=t;ds&&(s=v,o=new r.C(h))}return a(e,o,{level:u,size:f})||!l?o:(n.includeFallbackColors=!1,c(e,["#fff","#000"],n))}var s=n(96299);function l(e,t){var n=new r.C(e),o="#"+(0,s.GC)(n.r,n.g,n.b,n.a),i=o,a=n.gradientType?"GradientType = 1, ":"";if(t){var c=new r.C(t);i="#"+(0,s.GC)(c.r,c.g,c.b,c.a)}return"progid:DXImageTransform.Microsoft.gradient(".concat(a,"startColorstr=").concat(o,",endColorstr=").concat(i,")")}var u=n(23881);function f(e,t){var n={r:(0,u.JX)(e.r),g:(0,u.JX)(e.g),b:(0,u.JX)(e.b)};return void 0!==e.a&&(n.a=Number(e.a)),new r.C(n,t)}function d(){return new r.C({r:Math.random(),g:Math.random(),b:Math.random()})}var p=n(28556);function h(e){if(void 0===e&&(e={}),void 0!==e.count&&null!==e.count){var t=e.count,n=[];for(e.count=void 0;t>n.length;)e.count=null,e.seed&&(e.seed+=1),n.push(h(e));return e.count=t,n}var o=function(e,t){var n=m(function(e){var t=parseInt(e,10);if(!Number.isNaN(t)&&t<360&&t>0)return[t,t];if("string"==typeof e){var n=y.find((function(t){return t.name===e}));if(n){var o=g(n);if(o.hueRange)return o.hueRange}var i=new r.C(e);if(i.isValid){var a=i.toHsv().h;return[a,a]}}return[0,360]}(e),t);n<0&&(n=360+n);return n}(e.hue,e.seed),i=function(e,t){if("monochrome"===t.hue)return 0;if("random"===t.luminosity)return m([0,100],t.seed);var n=v(e).saturationRange,r=n[0],o=n[1];switch(t.luminosity){case"bright":r=55;break;case"dark":r=o-10;break;case"light":o=55}return m([r,o],t.seed)}(o,e),a=function(e,t,n){var r=function(e,t){for(var n=v(e).lowerBounds,r=0;r=o&&t<=a){var s=(c-i)/(a-o);return s*t+(i-s*o)}}return 0}(e,t),o=100;switch(n.luminosity){case"dark":o=r+20;break;case"light":r=(o+r)/2;break;case"random":r=0,o=100}return m([r,o],n.seed)}(o,i,e),c={h:o,s:i,v:a};return void 0!==e.alpha&&(c.a=e.alpha),new r.C(c)}function v(e){e>=334&&e<=360&&(e-=360);for(var t=0,n=y;t=r.hueRange[0]&&e<=r.hueRange[1])return r}throw Error("Color not found")}function m(e,t){if(void 0===t)return Math.floor(e[0]+Math.random()*(e[1]+1-e[0]));var n=e[1]||1,r=e[0]||0,o=(t=(9301*t+49297)%233280)/233280;return Math.floor(r+o*(n-r))}function g(e){var t=e.lowerBounds[0][0],n=e.lowerBounds[e.lowerBounds.length-1][0],r=e.lowerBounds[e.lowerBounds.length-1][1],o=e.lowerBounds[0][1];return{name:e.name,hueRange:e.hueRange,lowerBounds:e.lowerBounds,saturationRange:[t,n],brightnessRange:[r,o]}}var y=[{name:"monochrome",hueRange:null,lowerBounds:[[0,0],[100,0]]},{name:"red",hueRange:[-26,18],lowerBounds:[[20,100],[30,92],[40,89],[50,85],[60,78],[70,70],[80,60],[90,55],[100,50]]},{name:"orange",hueRange:[19,46],lowerBounds:[[20,100],[30,93],[40,88],[50,86],[60,85],[70,70],[100,70]]},{name:"yellow",hueRange:[47,62],lowerBounds:[[25,100],[40,94],[50,89],[60,86],[70,84],[80,82],[90,80],[100,75]]},{name:"green",hueRange:[63,178],lowerBounds:[[30,100],[40,90],[50,85],[60,81],[70,74],[80,64],[90,50],[100,40]]},{name:"blue",hueRange:[179,257],lowerBounds:[[20,100],[30,86],[40,80],[50,74],[60,60],[70,52],[80,44],[90,39],[100,35]]},{name:"purple",hueRange:[258,282],lowerBounds:[[20,100],[30,87],[40,79],[50,70],[60,65],[70,59],[80,52],[90,45],[100,42]]},{name:"pink",hueRange:[283,334],lowerBounds:[[20,100],[30,90],[40,86],[60,84],[80,80],[90,75],[100,73]]}],b=r.H},23881:function(e,t,n){"use strict";function r(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function o(e){return Math.min(1,Math.max(0,e))}function i(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function a(e){return e<=1?"".concat(100*Number(e),"%"):e}function c(e){return 1===e.length?"0"+e:String(e)}n.d(t,{FZ:function(){return c},JX:function(){return a},V2:function(){return o},Yq:function(){return i},sh:function(){return r}})},19114:function(e,t,n){"use strict";n.d(t,{ms:function(){return $e},xB:function(){return Me},iv:function(){return Le},tZ:function(){return Re}});var r=n(50959),o=n.t(r,2);var i=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t0?d(x,--w):0,y--,10===_&&(y=1,g--),_}function C(){return _=w2||A(_)>3?"":" "}function L(e,t){for(;--t&&C()&&!(_<48||_>102||_>57&&_<65||_>70&&_<97););return P(e,T()+(t<6&&32==O()&&32==C()))}function N(e){for(;C();)switch(_){case e:return w;case 34:case 39:34!==e&&39!==e&&N(_);break;case 40:41===e&&N(e);break;case 92:C()}return w}function j(e,t){for(;C()&&e+_!==57&&(e+_!==84||47!==O()););return"/*"+P(t,w-1)+"*"+c(47===e?e:C())}function D(e){for(;!A(O());)C();return P(e,w)}var $="-ms-",F="-moz-",z="-webkit-",B="comm",H="rule",q="decl",U="@keyframes";function W(e,t){for(var n="",r=v(e),o=0;o0&&h(N)-g&&m(b>32?Q(N+";",r,n,g-1):Q(u(N," ","")+";",r,n,g-2),l);break;case 59:N+=";";default:if(m(I=X(N,t,n,p,v,o,s,P,A=[],Z=[],g),i),123===S)if(0===v)V(N,t,I,I,A,i,g,s,Z);else switch(99===y&&110===d(N,3)?100:y){case 100:case 108:case 109:case 115:V(e,I,I,r&&m(X(e,I,I,0,0,o,s,P,o,A=[],g),Z),o,Z,g,s,r?A:Z);break;default:V(N,I,I,I,[""],Z,0,s,Z)}}p=v=b=0,_=k=1,P=N="",g=a;break;case 58:g=1+h(N),b=w;default:if(_<1)if(123==S)--_;else if(125==S&&0==_++&&125==E())continue;switch(N+=c(S),S*_){case 38:k=v>0?1:(N+="\f",-1);break;case 44:s[p++]=(h(N)-1)*k,k=1;break;case 64:45===O()&&(N+=R(C())),y=O(),v=g=h(P=N+=D(T())),S++;break;case 45:45===w&&2==h(N)&&(_=0)}}return i}function X(e,t,n,r,o,i,c,s,f,d,h){for(var m=o-1,g=0===o?i:[""],y=v(g),b=0,w=0,_=0;b0?g[x]+" "+S:u(S,/&\f/g,g[x])))&&(f[_++]=E);return k(e,t,n,0===o?H:s,f,d,h)}function Y(e,t,n){return k(e,t,n,B,c(_),p(e,2,-2),0)}function Q(e,t,n,r){return k(e,t,n,q,p(e,0,r),p(e,r+1,-1),r)}var J=function(e,t,n){for(var r=0,o=0;r=o,o=O(),38===r&&12===o&&(t[n]=1),!A(o);)C();return P(e,w)},ee=function(e,t){return I(function(e,t){var n=-1,r=44;do{switch(A(r)){case 0:38===r&&12===O()&&(t[n]=1),e[n]+=J(w-1,t,n);break;case 2:e[n]+=R(r);break;case 4:if(44===r){e[++n]=58===O()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=c(r)}}while(r=C());return e}(Z(e),t))},te=new WeakMap,ne=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||te.get(n))&&!r){te.set(e,!0);for(var o=[],i=ee(t,o),a=n.props,c=0,s=0;c6)switch(d(e,t+1)){case 109:if(45!==d(e,t+4))break;case 102:return u(e,/(.+:)(.+)-([^]+)/,"$1"+z+"$2-$3$1"+F+(108==d(e,t+3)?"$3":"$2-$3"))+e;case 115:return~f(e,"stretch")?oe(u(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==d(e,t+1))break;case 6444:switch(d(e,h(e)-3-(~f(e,"!important")&&10))){case 107:return u(e,":",":"+z)+e;case 101:return u(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+z+(45===d(e,14)?"inline-":"")+"box$3$1"+z+"$2$3$1"+$+"$2box$3")+e}break;case 5936:switch(d(e,t+11)){case 114:return z+e+$+u(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return z+e+$+u(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return z+e+$+u(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return z+e+$+e+e}return e}var ie=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case q:e.return=oe(e.value,e.length);break;case U:return W([S(e,{value:u(e.value,"@","@"+z)})],r);case H:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return W([S(e,{props:[u(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return W([S(e,{props:[u(t,/:(plac\w+)/,":"+z+"input-$1")]}),S(e,{props:[u(t,/:(plac\w+)/,":-moz-$1")]}),S(e,{props:[u(t,/:(plac\w+)/,$+"input-$1")]})],r)}return""}))}}],ae=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,a=e.stylisPlugins||ie,c={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+s;return{name:l,styles:o,next:be}}var xe=!!o.useInsertionEffect&&o.useInsertionEffect,ke=xe||function(e){return e()},Se=xe||r.useLayoutEffect,Ee={}.hasOwnProperty,Ce=r.createContext("undefined"!=typeof HTMLElement?ae({key:"css"}):null);Ce.Provider;var Oe=function(e){return(0,r.forwardRef)((function(t,n){var o=(0,r.useContext)(Ce);return e(t,o,n)}))};var Te=r.createContext({});var Pe="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Ae=function(e,t){var n={};for(var r in t)Ee.call(t,r)&&(n[r]=t[r]);return n[Pe]=e,n},Ze=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return se(t,n,r),ke((function(){return le(t,n,r)})),null};var Ie=Oe((function(e,t,n){var o=e.css;"string"==typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var i=e[Pe],a=[o],c="";"string"==typeof e.className?c=ce(t.registered,a,e.className):null!=e.className&&(c=e.className+" ");var s=_e(a,void 0,r.useContext(Te));c+=t.key+"-"+s.name;var l={};for(var u in e)Ee.call(e,u)&&"css"!==u&&u!==Pe&&(l[u]=e[u]);return l.ref=n,l.className=c,r.createElement(r.Fragment,null,r.createElement(Ze,{cache:t,serialized:s,isStringTag:"string"==typeof i}),r.createElement(i,l))})),Re=(n(72535),function(e,t){var n=arguments;if(null==t||!Ee.call(t,"css"))return r.createElement.apply(void 0,n);var o=n.length,i=new Array(o);i[0]=Ie,i[1]=Ae(e,t);for(var a=2;a1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(S,(function(e,n,r,o,i,a){if(n)t.minimumIntegerDigits=r.length;else{if(o&&i)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(E.test(o.stem))t.minimumIntegerDigits=o.stem.length;else if(x.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(x,(function(e,n,r,o,i,a){return"*"===r?t.minimumFractionDigits=n.length:o&&"#"===o[0]?t.maximumFractionDigits=o.length:i&&a?(t.minimumFractionDigits=i.length,t.maximumFractionDigits=i.length+a.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""}));var i=o.options[0];"w"===i?t=(0,a.pi)((0,a.pi)({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=(0,a.pi)((0,a.pi)({},t),C(i)))}else if(k.test(o.stem))t=(0,a.pi)((0,a.pi)({},t),C(o.stem));else{var c=O(o.stem);c&&(t=(0,a.pi)((0,a.pi)({},t),c));var s=T(o.stem);s&&(t=(0,a.pi)((0,a.pi)({},t),s))}}return t}var Z,I={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function R(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n,r=e.language;return"root"!==r&&(n=e.maximize().region),(I[n||""]||I[r||""]||I["".concat(r,"-001")]||I["001"])[0]}var M=new RegExp("^".concat(y.source,"*")),L=new RegExp("".concat(y.source,"*$"));function N(e,t){return{start:e,end:t}}var j=!!String.prototype.startsWith&&"_a".startsWith("a",1),D=!!String.fromCodePoint,$=!!Object.fromEntries,F=!!String.prototype.codePointAt,z=!!String.prototype.trimStart,B=!!String.prototype.trimEnd,H=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},q=!0;try{q="a"===(null===(Z=Q("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Z?void 0:Z[0])}catch(e){q=!1}var U,W=j?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},G=D?String.fromCodePoint:function(){for(var e=[],t=0;ti;){if((n=e[i++])>1114111)throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},K=$?Object.fromEntries:function(e){for(var t={},n=0,r=e;n=n)){var r,o=e.charCodeAt(t);return o<55296||o>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?o:r-56320+(o-55296<<10)+65536}},X=z?function(e){return e.trimStart()}:function(e){return e.replace(M,"")},Y=B?function(e){return e.trimEnd()}:function(e){return e.replace(L,"")};function Q(e,t){return new RegExp(e,t)}if(q){var J=Q("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");U=function(e,t){var n;return J.lastIndex=t,null!==(n=J.exec(e)[1])&&void 0!==n?n:""}}else U=function(e,t){for(var n=[];;){var r=V(e,t);if(void 0===r||ne(r)||re(r))break;n.push(r),t+=r>=65536?2:1}return G.apply(void 0,n)};var ee=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,n){for(var i=[];!this.isEOF();){var a=this.char();if(123===a){if((c=this.parseArgument(e,n)).err)return c;i.push(c.val)}else{if(125===a&&e>0)break;if(35!==a||"plural"!==t&&"selectordinal"!==t){if(60===a&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(r.UNMATCHED_CLOSING_TAG,N(this.clonePosition(),this.clonePosition()))}if(60===a&&!this.ignoreTag&&te(this.peek()||0)){if((c=this.parseTag(e,t)).err)return c;i.push(c.val)}else{var c;if((c=this.parseLiteral(e,t)).err)return c;i.push(c.val)}}else{var s=this.clonePosition();this.bump(),i.push({type:o.pound,location:N(s,this.clonePosition())})}}}return{val:i,err:null}},e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:o.literal,value:"<".concat(i,"/>"),location:N(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var a=this.parseMessage(e+1,t,!0);if(a.err)return a;var c=a.val,s=this.clonePosition();if(this.bumpIf("")?{val:{type:o.tag,value:i,children:c,location:N(n,this.clonePosition())},err:null}:this.error(r.INVALID_TAG,N(s,this.clonePosition())))}return this.error(r.UNCLOSED_TAG,N(n,this.clonePosition()))}return this.error(r.INVALID_TAG,N(n,this.clonePosition()))},e.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var i=this.tryParseQuote(t);if(i)r+=i;else{var a=this.tryParseUnquoted(e,t);if(a)r+=a;else{var c=this.tryParseLeftAngleBracket();if(!c)break;r+=c}}}var s=N(n,this.clonePosition());return{val:{type:o.literal,value:r,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(te(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(n);this.bump()}return G.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&e>0?null:(this.bump(),G(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(r.EXPECT_ARGUMENT_CLOSING_BRACE,N(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(r.EMPTY_ARGUMENT,N(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(r.MALFORMED_ARGUMENT,N(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(r.EXPECT_ARGUMENT_CLOSING_BRACE,N(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:o.argument,value:i,location:N(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(r.EXPECT_ARGUMENT_CLOSING_BRACE,N(n,this.clonePosition())):this.parseArgumentOptions(e,t,i,n);default:return this.error(r.MALFORMED_ARGUMENT,N(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=U(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:N(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,c){var s,l=this.clonePosition(),u=this.parseIdentifierIfPossible().value,f=this.clonePosition();switch(u){case"":return this.error(r.EXPECT_ARGUMENT_TYPE,N(l,f));case"number":case"date":case"time":this.bumpSpace();var d=null;if(this.bumpIf(",")){this.bumpSpace();var p=this.clonePosition();if((x=this.parseSimpleArgStyleIfPossible()).err)return x;if(0===(g=Y(x.val)).length)return this.error(r.EXPECT_ARGUMENT_STYLE,N(this.clonePosition(),this.clonePosition()));d={style:g,styleLocation:N(p,this.clonePosition())}}if((k=this.tryParseArgumentClose(c)).err)return k;var h=N(c,this.clonePosition());if(d&&W(null==d?void 0:d.style,"::",0)){var v=X(d.style.slice(2));if("number"===u)return(x=this.parseNumberSkeletonFromString(v,d.styleLocation)).err?x:{val:{type:o.number,value:n,location:h,style:x.val},err:null};if(0===v.length)return this.error(r.EXPECT_DATE_TIME_SKELETON,h);var m=v;this.locale&&(m=function(e,t){for(var n="",r=0;r>1),s=R(t);for("H"!=s&&"k"!=s||(c=0);c-- >0;)n+="a";for(;a-- >0;)n=s+n}else n+="J"===o?"H":o}return n}(v,this.locale));var g={type:i.dateTime,pattern:m,location:d.styleLocation,parsedOptions:this.shouldParseSkeletons?w(m):{}};return{val:{type:"date"===u?o.date:o.time,value:n,location:h,style:g},err:null}}return{val:{type:"number"===u?o.number:"date"===u?o.date:o.time,value:n,location:h,style:null!==(s=null==d?void 0:d.style)&&void 0!==s?s:null},err:null};case"plural":case"selectordinal":case"select":var y=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(r.EXPECT_SELECT_ARGUMENT_OPTIONS,N(y,(0,a.pi)({},y)));this.bumpSpace();var b=this.parseIdentifierIfPossible(),_=0;if("select"!==u&&"offset"===b.value){if(!this.bumpIf(":"))return this.error(r.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,N(this.clonePosition(),this.clonePosition()));var x;if(this.bumpSpace(),(x=this.tryParseDecimalInteger(r.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,r.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return x;this.bumpSpace(),b=this.parseIdentifierIfPossible(),_=x.val}var k,S=this.tryParsePluralOrSelectOptions(e,u,t,b);if(S.err)return S;if((k=this.tryParseArgumentClose(c)).err)return k;var E=N(c,this.clonePosition());return"select"===u?{val:{type:o.select,value:n,options:K(S.val),location:E},err:null}:{val:{type:o.plural,value:n,options:K(S.val),offset:_,pluralType:"plural"===u?"cardinal":"ordinal",location:E},err:null};default:return this.error(r.INVALID_ARGUMENT_TYPE,N(l,f))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(r.EXPECT_ARGUMENT_CLOSING_BRACE,N(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(r.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,N(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],n=0,r=e.split(_).filter((function(e){return e.length>0}));n=48&&a<=57))break;o=!0,i=10*i+(a-48),this.bump()}var c=N(r,this.clonePosition());return o?H(i*=n)?{val:i,err:null}:this.error(t,c):this.error(e,c)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=V(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(W(this.message,e,this.offset())){for(var t=0;t=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&ne(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),n=this.message.charCodeAt(t+(e>=65536?2:1));return null!=n?n:null},e}();function te(e){return e>=97&&e<=122||e>=65&&e<=90}function ne(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function re(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function oe(e){e.forEach((function(e){if(delete e.location,d(e)||p(e))for(var t in e.options)delete e.options[t].location,oe(e.options[t].value);else l(e)&&m(e.style)||(u(e)||f(e))&&g(e.style)?delete e.style.location:v(e)&&oe(e.children)}))}function ie(e,t){void 0===t&&(t={}),t=(0,a.pi)({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new ee(e,t).parse();if(n.err){var o=SyntaxError(r[n.err.kind]);throw o.location=n.err.location,o.originalMessage=n.err.message,o}return(null==t?void 0:t.captureLocation)||oe(n.val),n.val}},30626:function(e,t,n){"use strict";n.d(t,{$6:function(){return f},OV:function(){return c},Qe:function(){return l},X9:function(){return u},gb:function(){return s},wI:function(){return a}});var r,o=n(15767);!function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"}(r||(r={}));var i=function(e){function t(n,r,o){var i=this,a=o?o instanceof Error?o:new Error(String(o)):void 0;return(i=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r,"\n").concat(a?"\n".concat(a.message,"\n").concat(a.stack):""))||this).code=n,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(i,t),i}return(0,o.ZT)(t,e),t}(Error),a=function(e){function t(t,n){return e.call(this,r.UNSUPPORTED_FORMATTER,t,n)||this}return(0,o.ZT)(t,e),t}(i),c=function(e){function t(t,n){return e.call(this,r.INVALID_CONFIG,t,n)||this}return(0,o.ZT)(t,e),t}(i),s=function(e){function t(t,n){return e.call(this,r.MISSING_DATA,t,n)||this}return(0,o.ZT)(t,e),t}(i),l=function(e){function t(t,n,o){var i=e.call(this,r.FORMAT_ERROR,"".concat(t,"\nLocale: ").concat(n,"\n"),o)||this;return i.locale=n,i}return(0,o.ZT)(t,e),t}(i),u=function(e){function t(t,n,r,o){var i=e.call(this,"".concat(t,"\nMessageID: ").concat(null==r?void 0:r.id,"\nDefault Message: ").concat(null==r?void 0:r.defaultMessage,"\nDescription: ").concat(null==r?void 0:r.description,"\n"),n,o)||this;return i.descriptor=r,i.locale=n,i}return(0,o.ZT)(t,e),t}(l),f=function(e){function t(t,n){var o=e.call(this,r.MISSING_TRANSLATION,'Missing message: "'.concat(t.id,'" for locale "').concat(n,'", using ').concat(t.defaultMessage?"default message (".concat("string"==typeof t.defaultMessage?t.defaultMessage:t.defaultMessage.map((function(e){var t;return null!==(t=e.value)&&void 0!==t?t:JSON.stringify(e)})).join(),")"):"id"," as fallback."))||this;return o.descriptor=t,o}return(0,o.ZT)(t,e),t}(i)},32005:function(e,t,n){"use strict";n.d(t,{L6:function(){return c},Sn:function(){return l},TB:function(){return d},Z0:function(){return s},ax:function(){return f}});var r=n(15767),o=n(24625),i=n(61472),a=n(30626);function c(e,t,n){return void 0===n&&(n={}),t.reduce((function(t,r){return r in e?t[r]=e[r]:r in n&&(t[r]=n[r]),t}),{})}var s={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:function(e){0},onWarn:function(e){0}};function l(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function u(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function f(e){void 0===e&&(e={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}});var t=Intl.RelativeTimeFormat,n=Intl.ListFormat,a=Intl.DisplayNames,c=(0,i.H)((function(){for(var e,t=[],n=0;nparseFloat(e)));for(let e=0;e<3;e+=1)r[e]=t(r[e]||0,n[e]||"",e);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const m=(e,t,n)=>0===n?e:e/100;function g(e,t){const n=t||255;return e>n?n:e<0?0:e}class y{constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if((0,o.Z)(this,"isValid",!0),(0,o.Z)(this,"r",0),(0,o.Z)(this,"g",0),(0,o.Z)(this,"b",0),(0,o.Z)(this,"a",1),(0,o.Z)(this,"_h",void 0),(0,o.Z)(this,"_s",void 0),(0,o.Z)(this,"_l",void 0),(0,o.Z)(this,"_v",void 0),(0,o.Z)(this,"_max",void 0),(0,o.Z)(this,"_min",void 0),(0,o.Z)(this,"_brightness",void 0),e)if("string"==typeof e){const n=e.trim();function r(e){return n.startsWith(e)}/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):r("rgb")?this.fromRgbString(n):r("hsl")?this.fromHslString(n):(r("hsv")||r("hsb"))&&this.fromHsvString(n)}else if(e instanceof y)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=g(e.r),this.g=g(e.g),this.b=g(e.b),this.a="number"==typeof e.a?g(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else{if(!t("hsv"))throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e));this.fromHsv(e)}else;}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return.2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if(void 0===this._h){const e=this.getMax()-this.getMin();this._h=0===e?0:h(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g1&&(r=1),this._c({h:t,s:n,l:r,a:this.a})}mix(e,t=50){const n=this._c(e),r=t/100,o=e=>(n[e]-this[e])*r+this[e],i={r:h(o("r")),g:h(o("g")),b:h(o("b")),a:h(100*o("a"))/100};return this._c(i)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),n=this.a+t.a*(1-this.a),r=e=>h((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:r("r"),g:r("g"),b:r("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;const n=(this.g||0).toString(16);e+=2===n.length?n:"0"+n;const r=(this.b||0).toString(16);if(e+=2===r.length?r:"0"+r,"number"==typeof this.a&&this.a>=0&&this.a<1){const t=h(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=h(100*this.getSaturation()),n=h(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,n){const r=this.clone();return r[e]=g(t,n),r}_c(e){return new this.constructor(e)}getMax(){return void 0===this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return void 0===this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:r}){if(this._h=e%360,this._s=t,this._l=n,this.a="number"==typeof r?r:1,t<=0){const e=h(255*n);this.r=e,this.g=e,this.b=e}let o=0,i=0,a=0;const c=e/60,s=(1-Math.abs(2*n-1))*t,l=s*(1-Math.abs(c%2-1));c>=0&&c<1?(o=s,i=l):c>=1&&c<2?(o=l,i=s):c>=2&&c<3?(i=s,a=l):c>=3&&c<4?(i=l,a=s):c>=4&&c<5?(o=l,a=s):c>=5&&c<6&&(o=s,a=l);const u=n-s/2;this.r=h(255*(o+u)),this.g=h(255*(i+u)),this.b=h(255*(a+u))}fromHsv({h:e,s:t,v:n,a:r}){this._h=e%360,this._s=t,this._v=n,this.a="number"==typeof r?r:1;const o=h(255*n);if(this.r=o,this.g=o,this.b=o,t<=0)return;const i=e/60,a=Math.floor(i),c=i-a,s=h(n*(1-t)*255),l=h(n*(1-t*c)*255),u=h(n*(1-t*(1-c))*255);switch(a){case 0:this.g=u,this.b=s;break;case 1:this.r=l,this.b=s;break;case 2:this.r=s,this.b=u;break;case 3:this.r=s,this.g=l;break;case 4:this.r=u,this.g=s;break;default:this.g=s,this.b=l}}fromHsvString(e){const t=v(e,m);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=v(e,m);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=v(e,((e,t)=>t.includes("%")?h(e/100*255):e));this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}var b=["b"],w=["v"],_=function(e){return Math.round(Number(e||0))},x=function(e){(0,u.Z)(n,e);var t=(0,f.Z)(n);function n(e){return(0,s.Z)(this,n),t.call(this,function(e){if(e instanceof y)return e;if(e&&"object"===(0,p.Z)(e)&&"h"in e&&"b"in e){var t=e,n=t.b,r=(0,d.Z)(t,b);return(0,c.Z)((0,c.Z)({},r),{},{v:n})}return"string"==typeof e&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e}(e))}return(0,l.Z)(n,[{key:"toHsbString",value:function(){var e=this.toHsb(),t=_(100*e.s),n=_(100*e.b),r=_(e.h),o=e.a,i="hsb(".concat(r,", ").concat(t,"%, ").concat(n,"%)"),a="hsba(".concat(r,", ").concat(t,"%, ").concat(n,"%, ").concat(o.toFixed(0===o?0:2),")");return 1===o?i:a}},{key:"toHsb",value:function(){var e=this.toHsv(),t=e.v,n=(0,d.Z)(e,w);return(0,c.Z)((0,c.Z)({},n),{},{b:t,a:this.a})}}]),n}(y),k=function(e){return e instanceof x?e:new x(e)},S=k("#1677ff"),E=function(e){var t=e.offset,n=e.targetRef,r=e.containerRef,o=e.color,i=e.type,a=r.current.getBoundingClientRect(),s=a.width,l=a.height,u=n.current.getBoundingClientRect(),f=u.width/2,d=u.height/2,p=(t.x+f)/s,h=1-(t.y+d)/l,v=o.toHsb(),m=p,g=(t.x+f)/s*360;if(i)switch(i){case"hue":return k((0,c.Z)((0,c.Z)({},v),{},{h:g<=0?0:g}));case"alpha":return k((0,c.Z)((0,c.Z)({},v),{},{a:m<=0?0:m}))}return k({h:v.h,s:p<=0?0:p,b:h>=1?1:h,a:v.a})},C=function(e,t){var n=e.toHsb();switch(t){case"hue":return{x:n.h/360*100,y:50};case"alpha":return{x:100*e.a,y:50};default:return{x:100*n.s,y:100*(1-n.b)}}},O=n(82187),T=n.n(O),P=function(e){var t=e.color,n=e.prefixCls,r=e.className,o=e.style,i=e.onClick,c="".concat(n,"-color-block");return a.createElement("div",{className:T()(c,r),style:o,onClick:i},a.createElement("div",{className:"".concat(c,"-inner"),style:{background:t}}))};var A=function(e){var t=e.targetRef,n=e.containerRef,r=e.direction,o=e.onDragChange,c=e.onDragChangeComplete,s=e.calculate,l=e.color,u=e.disabledDrag,f=(0,a.useState)({x:0,y:0}),d=(0,i.Z)(f,2),p=d[0],h=d[1],v=(0,a.useRef)(null),m=(0,a.useRef)(null);(0,a.useEffect)((function(){h(s())}),[l]),(0,a.useEffect)((function(){return function(){document.removeEventListener("mousemove",v.current),document.removeEventListener("mouseup",m.current),document.removeEventListener("touchmove",v.current),document.removeEventListener("touchend",m.current),v.current=null,m.current=null}}),[]);var g=function(e){var i=function(e){var t="touches"in e?e.touches[0]:e,n=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,r=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:t.pageX-n,pageY:t.pageY-r}}(e),a=i.pageX,c=i.pageY,s=n.current.getBoundingClientRect(),l=s.x,u=s.y,f=s.width,d=s.height,h=t.current.getBoundingClientRect(),v=h.width,m=h.height,g=v/2,y=m/2,b=Math.max(0,Math.min(a-l,f))-g,w=Math.max(0,Math.min(c-u,d))-y,_={x:b,y:"x"===r?p.y:w};if(0===v&&0===m||v!==m)return!1;null==o||o(_)},y=function(e){e.preventDefault(),g(e)},b=function(e){e.preventDefault(),document.removeEventListener("mousemove",v.current),document.removeEventListener("mouseup",m.current),document.removeEventListener("touchmove",v.current),document.removeEventListener("touchend",m.current),v.current=null,m.current=null,null==c||c()};return[p,function(e){document.removeEventListener("mousemove",v.current),document.removeEventListener("mouseup",m.current),u||(g(e),document.addEventListener("mousemove",y),document.addEventListener("mouseup",b),document.addEventListener("touchmove",y),document.addEventListener("touchend",b),v.current=y,m.current=b)}]},Z=n(62412),I=function(e){var t=e.size,n=void 0===t?"default":t,r=e.color,i=e.prefixCls;return a.createElement("div",{className:T()("".concat(i,"-handler"),(0,o.Z)({},"".concat(i,"-handler-sm"),"small"===n)),style:{backgroundColor:r}})},R=function(e){var t=e.children,n=e.style,r=e.prefixCls;return a.createElement("div",{className:"".concat(r,"-palette"),style:(0,c.Z)({position:"relative"},n)},t)},M=(0,a.forwardRef)((function(e,t){var n=e.children,r=e.x,o=e.y;return a.createElement("div",{ref:t,style:{position:"absolute",left:"".concat(r,"%"),top:"".concat(o,"%"),zIndex:1,transform:"translate(-50%, -50%)"}},n)})),L=function(e){var t=e.color,n=e.onChange,r=e.prefixCls,o=e.onChangeComplete,c=e.disabled,s=(0,a.useRef)(),l=(0,a.useRef)(),u=(0,a.useRef)(t),f=(0,Z.zX)((function(e){var r=E({offset:e,targetRef:l,containerRef:s,color:t});u.current=r,n(r)})),d=A({color:t,containerRef:s,targetRef:l,calculate:function(){return C(t)},onDragChange:f,onDragChangeComplete:function(){return null==o?void 0:o(u.current)},disabledDrag:c}),p=(0,i.Z)(d,2),h=p[0],v=p[1];return a.createElement("div",{ref:s,className:"".concat(r,"-select"),onMouseDown:v,onTouchStart:v},a.createElement(R,{prefixCls:r},a.createElement(M,{x:h.x,y:h.y,ref:l},a.createElement(I,{color:t.toRgbString(),prefixCls:r})),a.createElement("div",{className:"".concat(r,"-saturation"),style:{backgroundColor:"hsl(".concat(t.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},N=function(e,t){var n=(0,Z.C8)(e,{value:t}),r=(0,i.Z)(n,2),o=r[0],c=r[1];return[(0,a.useMemo)((function(){return k(o)}),[o]),c]},j=function(e){var t=e.colors,n=e.children,r=e.direction,o=void 0===r?"to right":r,i=e.type,c=e.prefixCls,s=(0,a.useMemo)((function(){return t.map((function(e,n){var r=k(e);return"alpha"===i&&n===t.length-1&&(r=new x(r.setA(1))),r.toRgbString()})).join(",")}),[t,i]);return a.createElement("div",{className:"".concat(c,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(o,", ").concat(s,")")}},n)},D=function(e){var t=e.prefixCls,n=e.colors,r=e.disabled,o=e.onChange,c=e.onChangeComplete,s=e.color,l=e.type,u=(0,a.useRef)(),f=(0,a.useRef)(),d=(0,a.useRef)(s),p=function(e){return"hue"===l?e.getHue():100*e.a},h=(0,Z.zX)((function(e){var t=E({offset:e,targetRef:f,containerRef:u,color:s,type:l});d.current=t,o(p(t))})),v=A({color:s,targetRef:f,containerRef:u,calculate:function(){return C(s,l)},onDragChange:h,onDragChangeComplete:function(){c(p(d.current))},direction:"x",disabledDrag:r}),m=(0,i.Z)(v,2),g=m[0],y=m[1],b=a.useMemo((function(){if("hue"===l){var e=s.toHsb();return e.s=1,e.b=1,e.a=1,new x(e)}return s}),[s,l]),w=a.useMemo((function(){return n.map((function(e){return"".concat(e.color," ").concat(e.percent,"%")}))}),[n]);return a.createElement("div",{ref:u,className:T()("".concat(t,"-slider"),"".concat(t,"-slider-").concat(l)),onMouseDown:y,onTouchStart:y},a.createElement(R,{prefixCls:t},a.createElement(M,{x:g.x,y:g.y,ref:f},a.createElement(I,{size:"small",color:b.toHexString(),prefixCls:t})),a.createElement(j,{colors:w,type:l,prefixCls:t})))};var $=[{color:"rgb(255, 0, 0)",percent:0},{color:"rgb(255, 255, 0)",percent:17},{color:"rgb(0, 255, 0)",percent:33},{color:"rgb(0, 255, 255)",percent:50},{color:"rgb(0, 0, 255)",percent:67},{color:"rgb(255, 0, 255)",percent:83},{color:"rgb(255, 0, 0)",percent:100}],F=(0,a.forwardRef)((function(e,t){var n=e.value,c=e.defaultValue,s=e.prefixCls,l=void 0===s?"rc-color-picker":s,u=e.onChange,f=e.onChangeComplete,d=e.className,p=e.style,h=e.panelRender,v=e.disabledAlpha,m=void 0!==v&&v,g=e.disabled,y=void 0!==g&&g,b=function(e){return a.useMemo((function(){return[(e||{}).slider||D]}),[e])}(e.components),w=(0,i.Z)(b,1)[0],_=N(c||S,n),k=(0,i.Z)(_,2),E=k[0],C=k[1],O=(0,a.useMemo)((function(){return E.setA(1).toRgbString()}),[E]),A=function(e,t){n||C(e),null==u||u(e,t)},Z=function(e){return new x(E.setHue(e))},I=function(e){return new x(E.setA(e/100))},R=T()("".concat(l,"-panel"),d,(0,o.Z)({},"".concat(l,"-panel-disabled"),y)),M={prefixCls:l,disabled:y,color:E},j=a.createElement(a.Fragment,null,a.createElement(L,(0,r.Z)({onChange:A},M,{onChangeComplete:f})),a.createElement("div",{className:"".concat(l,"-slider-container")},a.createElement("div",{className:T()("".concat(l,"-slider-group"),(0,o.Z)({},"".concat(l,"-slider-group-disabled-alpha"),m))},a.createElement(w,(0,r.Z)({},M,{type:"hue",colors:$,min:0,max:359,value:E.getHue(),onChange:function(e){A(Z(e),{type:"hue",value:e})},onChangeComplete:function(e){f&&f(Z(e))}})),!m&&a.createElement(w,(0,r.Z)({},M,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:O}],min:0,max:100,value:100*E.a,onChange:function(e){A(I(e),{type:"alpha",value:e})},onChangeComplete:function(e){f&&f(I(e))}}))),a.createElement(P,{color:E.toRgbString(),prefixCls:l})));return a.createElement("div",{className:R,style:p,ref:t},"function"==typeof h?h(j):j)}));var z=F},15077:function(e,t,n){"use strict";n.d(t,{Z:function(){return b}});var r=n(99459),o=n(50959),i=n(10422),a=n(68264),c=(n(20983),n(97548)),s=o.createContext(null),l=n(35047),u=n(84025),f=[];var d=n(68042),p=n(50381);var h="rc-util-locker-".concat(Date.now()),v=0;function m(e){var t=!!e,n=o.useState((function(){return v+=1,"".concat(h,"_").concat(v)})),i=(0,r.Z)(n,1)[0];(0,u.Z)((function(){if(t){var e=(0,p.o)(document.body).width,n=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;(0,d.hq)("\nhtml body {\n overflow-y: hidden;\n ".concat(n?"width: calc(100% - ".concat(e,"px);"):"","\n}"),i)}else(0,d.jL)(i);return function(){(0,d.jL)(i)}}),[t,i])}var g=!1;var y=function(e){return!1!==e&&((0,a.Z)()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)};var b=o.forwardRef((function(e,t){var n=e.open,d=e.autoLock,p=e.getContainer,h=(e.debug,e.autoDestroy),v=void 0===h||h,b=e.children,w=o.useState(n),_=(0,r.Z)(w,2),x=_[0],k=_[1],S=x||n;o.useEffect((function(){(v||n)&&k(n)}),[n,v]);var E=o.useState((function(){return y(p)})),C=(0,r.Z)(E,2),O=C[0],T=C[1];o.useEffect((function(){var e=y(p);T(null!=e?e:null)}));var P=function(e,t){var n=o.useState((function(){return(0,a.Z)()?document.createElement("div"):null})),i=(0,r.Z)(n,1)[0],c=o.useRef(!1),d=o.useContext(s),p=o.useState(f),h=(0,r.Z)(p,2),v=h[0],m=h[1],g=d||(c.current?void 0:function(e){m((function(t){return[e].concat((0,l.Z)(t))}))});function y(){i.parentElement||document.body.appendChild(i),c.current=!0}function b(){var e;null===(e=i.parentElement)||void 0===e||e.removeChild(i),c.current=!1}return(0,u.Z)((function(){return e?d?d(y):y():b(),b}),[e]),(0,u.Z)((function(){v.length&&(v.forEach((function(e){return e()})),m(f))}),[v]),[i,g]}(S&&!O),A=(0,r.Z)(P,2),Z=A[0],I=A[1],R=null!=O?O:Z;m(d&&n&&(0,a.Z)()&&(R===Z||R===document.body));var M=null;b&&(0,c.Yr)(b)&&t&&(M=b.ref);var L=(0,c.x1)(M,t);if(!S||!(0,a.Z)()||void 0===O)return null;var N,j=!1===R||("boolean"==typeof N&&(g=N),g),D=b;return t&&(D=o.cloneElement(b,{ref:L})),o.createElement(s.Provider,{value:I},j?D:(0,i.createPortal)(D,R))}))},9623:function(e,t,n){"use strict";n.d(t,{Z:function(){return G}});var r=n(98037),o=n(99459),i=n(58006),a=n(15077),c=n(82187),s=n.n(c),l=n(86983),u=n(42708),f=n(93196),d=n(65985),p=n(23614),h=n(84025),v=n(74191),m=n(50959),g=n(2053),y=n(82570),b=n(97548);function w(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},a=i.className,c=i.content,l=o.x,u=void 0===l?0:l,f=o.y,d=void 0===f?0:f,p=m.useRef();if(!n||!n.points)return null;var h={position:"absolute"};if(!1!==n.autoArrow){var v=n.points[0],g=n.points[1],y=v[0],b=v[1],w=g[0],_=g[1];y!==w&&["t","b"].includes(y)?"t"===y?h.top=0:h.bottom=0:h.top=d,b!==_&&["l","r"].includes(b)?"l"===b?h.left=0:h.right=0:h.left=u}return m.createElement("div",{ref:p,className:s()("".concat(t,"-arrow"),a),style:h},c)}function _(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?m.createElement(y.default,(0,g.Z)({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return m.createElement("div",{style:{zIndex:r},className:s()("".concat(t,"-mask"),n)})})):null}var x=m.memo((function(e){return e.children}),(function(e,t){return t.cache}));var k=m.forwardRef((function(e,t){var n=e.popup,i=e.className,a=e.prefixCls,c=e.style,u=e.target,f=e.onVisibleChanged,d=e.open,p=e.keepDom,v=e.fresh,k=e.onClick,S=e.mask,E=e.arrow,C=e.arrowPos,O=e.align,T=e.motion,P=e.maskMotion,A=e.forceRender,Z=e.getPopupContainer,I=e.autoDestroy,R=e.portal,M=e.zIndex,L=e.onMouseEnter,N=e.onMouseLeave,j=e.onPointerEnter,D=e.onPointerDownCapture,$=e.ready,F=e.offsetX,z=e.offsetY,B=e.offsetR,H=e.offsetB,q=e.onAlign,U=e.onPrepare,W=e.stretch,G=e.targetWidth,K=e.targetHeight,V="function"==typeof n?n():n,X=d||p,Y=(null==Z?void 0:Z.length)>0,Q=m.useState(!Z||!Y),J=(0,o.Z)(Q,2),ee=J[0],te=J[1];if((0,h.Z)((function(){!ee&&Y&&u&&te(!0)}),[ee,Y,u]),!ee)return null;var ne="auto",re={left:"-1000vw",top:"-1000vh",right:ne,bottom:ne};if($||!d){var oe,ie=O.points,ae=O.dynamicInset||(null===(oe=O._experimental)||void 0===oe?void 0:oe.dynamicInset),ce=ae&&"r"===ie[0][1],se=ae&&"b"===ie[0][0];ce?(re.right=B,re.left=ne):(re.left=F,re.right=ne),se?(re.bottom=H,re.top=ne):(re.top=z,re.bottom=ne)}var le={};return W&&(W.includes("height")&&K?le.height=K:W.includes("minHeight")&&K&&(le.minHeight=K),W.includes("width")&&G?le.width=G:W.includes("minWidth")&&G&&(le.minWidth=G)),d||(le.pointerEvents="none"),m.createElement(R,{open:A||X,getContainer:Z&&function(){return Z(u)},autoDestroy:I},m.createElement(_,{prefixCls:a,open:d,zIndex:M,mask:S,motion:P}),m.createElement(l.Z,{onResize:q,disabled:!d},(function(e){return m.createElement(y.default,(0,g.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:A,leavedClassName:"".concat(a,"-hidden")},T,{onAppearPrepare:U,onEnterPrepare:U,visible:d,onVisibleChanged:function(e){var t;null==T||null===(t=T.onVisibleChanged)||void 0===t||t.call(T,e),f(e)}}),(function(n,o){var l=n.className,u=n.style,f=s()(a,l,i);return m.createElement("div",{ref:(0,b.sQ)(e,t,o),className:f,style:(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({"--arrow-x":"".concat(C.x||0,"px"),"--arrow-y":"".concat(C.y||0,"px")},re),le),u),{},{boxSizing:"border-box",zIndex:M},c),onMouseEnter:L,onMouseLeave:N,onPointerEnter:j,onClick:k,onPointerDownCapture:D},E&&m.createElement(w,{prefixCls:a,arrow:E,arrowPos:C,align:O}),m.createElement(x,{cache:!d&&!v},V))}))})))}));var S=m.forwardRef((function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=(0,b.Yr)(n),i=m.useCallback((function(e){(0,b.mH)(t,r?r(e):e)}),[r]),a=(0,b.x1)(i,n.ref);return o?m.cloneElement(n,{ref:a}):n})),E=m.createContext(null);function C(e){return e?Array.isArray(e)?e:[e]:[]}function O(e,t,n,r){return m.useMemo((function(){var o=C(null!=n?n:t),i=C(null!=r?r:t),a=new Set(o),c=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),c.has("hover")&&(c.delete("hover"),c.add("click"))),[a,c]}),[e,t,n,r])}var T=n(73860);function P(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function A(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function L(e){return M(parseFloat(e),0)}function N(e,t){var n=(0,r.Z)({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=I(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,c=t.borderLeftWidth,s=t.borderRightWidth,l=e.getBoundingClientRect(),u=e.offsetHeight,f=e.clientHeight,d=e.offsetWidth,p=e.clientWidth,h=L(i),v=L(a),m=L(c),g=L(s),y=M(Math.round(l.width/d*1e3)/1e3),b=M(Math.round(l.height/u*1e3)/1e3),w=(d-p-m-g)*y,_=(u-f-h-v)*b,x=h*b,k=v*b,S=m*y,E=g*y,C=0,O=0;if("clip"===r){var T=L(o);C=T*y,O=T*b}var P=l.x+S-C,A=l.y+x-O,Z=P+l.width+2*C-S-E-w,R=A+l.height+2*O-x-k-_;n.left=Math.max(n.left,P),n.top=Math.max(n.top,A),n.right=Math.min(n.right,Z),n.bottom=Math.min(n.bottom,R)}})),n}function j(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function D(e,t){var n=t||[],r=(0,o.Z)(n,2),i=r[0],a=r[1];return[j(e.width,i),j(e.height,a)]}function $(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function F(e,t){var n,r=t[0],o=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:n}}function z(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,r){return r===t?n[e]||"c":e})).join("")}function B(e,t,n,i,a,c,s){var l=m.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[i]||{}}),f=(0,o.Z)(l,2),p=f[0],v=f[1],g=m.useRef(0),y=m.useMemo((function(){return t?R(t):[]}),[t]),b=m.useRef({});e||(b.current={});var w=(0,d.Z)((function(){if(t&&n&&e){var l,f,d,p,h,m=t,g=m.ownerDocument,w=I(m).getComputedStyle(m),_=w.width,x=w.height,k=w.position,S=m.style.left,E=m.style.top,C=m.style.right,O=m.style.bottom,P=m.style.overflow,A=(0,r.Z)((0,r.Z)({},a[i]),c),Z=g.createElement("div");if(null===(l=m.parentElement)||void 0===l||l.appendChild(Z),Z.style.left="".concat(m.offsetLeft,"px"),Z.style.top="".concat(m.offsetTop,"px"),Z.style.position=k,Z.style.height="".concat(m.offsetHeight,"px"),Z.style.width="".concat(m.offsetWidth,"px"),m.style.left="0",m.style.top="0",m.style.right="auto",m.style.bottom="auto",m.style.overflow="hidden",Array.isArray(n))h={x:n[0],y:n[1],width:0,height:0};else{var R,L,j=n.getBoundingClientRect();j.x=null!==(R=j.x)&&void 0!==R?R:j.left,j.y=null!==(L=j.y)&&void 0!==L?L:j.top,h={x:j.x,y:j.y,width:j.width,height:j.height}}var B=m.getBoundingClientRect();B.x=null!==(f=B.x)&&void 0!==f?f:B.left,B.y=null!==(d=B.y)&&void 0!==d?d:B.top;var H=g.documentElement,q=H.clientWidth,U=H.clientHeight,W=H.scrollWidth,G=H.scrollHeight,K=H.scrollTop,V=H.scrollLeft,X=B.height,Y=B.width,Q=h.height,J=h.width,ee={left:0,top:0,right:q,bottom:U},te={left:-V,top:-K,right:W-V,bottom:G-K},ne=A.htmlRegion,re="visible",oe="visibleFirst";"scroll"!==ne&&ne!==oe&&(ne=re);var ie=ne===oe,ae=N(te,y),ce=N(ee,y),se=ne===re?ce:ae,le=ie?ce:se;m.style.left="auto",m.style.top="auto",m.style.right="0",m.style.bottom="0";var ue=m.getBoundingClientRect();m.style.left=S,m.style.top=E,m.style.right=C,m.style.bottom=O,m.style.overflow=P,null===(p=m.parentElement)||void 0===p||p.removeChild(Z);var fe=M(Math.round(Y/parseFloat(_)*1e3)/1e3),de=M(Math.round(X/parseFloat(x)*1e3)/1e3);if(0===fe||0===de||(0,u.Sh)(n)&&!(0,T.Z)(n))return;var pe=A.offset,he=A.targetOffset,ve=D(B,pe),me=(0,o.Z)(ve,2),ge=me[0],ye=me[1],be=D(h,he),we=(0,o.Z)(be,2),_e=we[0],xe=we[1];h.x-=_e,h.y-=xe;var ke=A.points||[],Se=(0,o.Z)(ke,2),Ee=Se[0],Ce=$(Se[1]),Oe=$(Ee),Te=F(h,Ce),Pe=F(B,Oe),Ae=(0,r.Z)({},A),Ze=Te.x-Pe.x+ge,Ie=Te.y-Pe.y+ye;function Et(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:se,r=B.x+e,o=B.y+t,i=r+Y,a=o+X,c=Math.max(r,n.left),s=Math.max(o,n.top),l=Math.min(i,n.right),u=Math.min(a,n.bottom);return Math.max(0,(l-c)*(u-s))}var Re,Me,Le,Ne,je=Et(Ze,Ie),De=Et(Ze,Ie,ce),$e=F(h,["t","l"]),Fe=F(B,["t","l"]),ze=F(h,["b","r"]),Be=F(B,["b","r"]),He=A.overflow||{},qe=He.adjustX,Ue=He.adjustY,We=He.shiftX,Ge=He.shiftY,Ke=function(e){return"boolean"==typeof e?e:e>=0};function Ct(){Re=B.y+Ie,Me=Re+X,Le=B.x+Ze,Ne=Le+Y}Ct();var Ve=Ke(Ue),Xe=Oe[0]===Ce[0];if(Ve&&"t"===Oe[0]&&(Me>le.bottom||b.current.bt)){var Ye=Ie;Xe?Ye-=X-Q:Ye=$e.y-Be.y-ye;var Qe=Et(Ze,Ye),Je=Et(Ze,Ye,ce);Qe>je||Qe===je&&(!ie||Je>=De)?(b.current.bt=!0,Ie=Ye,ye=-ye,Ae.points=[z(Oe,0),z(Ce,0)]):b.current.bt=!1}if(Ve&&"b"===Oe[0]&&(Reje||tt===je&&(!ie||nt>=De)?(b.current.tb=!0,Ie=et,ye=-ye,Ae.points=[z(Oe,0),z(Ce,0)]):b.current.tb=!1}var rt=Ke(qe),ot=Oe[1]===Ce[1];if(rt&&"l"===Oe[1]&&(Ne>le.right||b.current.rl)){var it=Ze;ot?it-=Y-J:it=$e.x-Be.x-ge;var at=Et(it,Ie),ct=Et(it,Ie,ce);at>je||at===je&&(!ie||ct>=De)?(b.current.rl=!0,Ze=it,ge=-ge,Ae.points=[z(Oe,1),z(Ce,1)]):b.current.rl=!1}if(rt&&"r"===Oe[1]&&(Leje||lt===je&&(!ie||ut>=De)?(b.current.lr=!0,Ze=st,ge=-ge,Ae.points=[z(Oe,1),z(Ce,1)]):b.current.lr=!1}Ct();var ft=!0===We?0:We;"number"==typeof ft&&(Lece.right&&(Ze-=Ne-ce.right-ge,h.x>ce.right-ft&&(Ze+=h.x-ce.right+ft)));var dt=!0===Ge?0:Ge;"number"==typeof dt&&(Rece.bottom&&(Ie-=Me-ce.bottom-ye,h.y>ce.bottom-dt&&(Ie+=h.y-ce.bottom+dt)));var pt=B.x+Ze,ht=pt+Y,vt=B.y+Ie,mt=vt+X,gt=h.x,yt=gt+J,bt=h.y,wt=bt+Q,_t=(Math.max(pt,gt)+Math.min(ht,yt))/2-pt,xt=(Math.max(vt,bt)+Math.min(mt,wt))/2-vt;null==s||s(t,Ae);var kt=ue.right-B.x-(Ze+B.width),St=ue.bottom-B.y-(Ie+B.height);1===fe&&(Ze=Math.round(Ze),kt=Math.round(kt)),1===de&&(Ie=Math.round(Ie),St=Math.round(St)),v({ready:!0,offsetX:Ze/fe,offsetY:Ie/de,offsetR:kt/fe,offsetB:St/de,arrowX:_t/fe,arrowY:xt/de,scaleX:fe,scaleY:de,align:Ae})}})),_=function(){v((function(e){return(0,r.Z)((0,r.Z)({},e),{},{ready:!1})}))};return(0,h.Z)(_,[i]),(0,h.Z)((function(){e||_()}),[e]),[p.ready,p.offsetX,p.offsetY,p.offsetR,p.offsetB,p.arrowX,p.arrowY,p.scaleX,p.scaleY,p.align,function(){g.current+=1;var e=g.current;Promise.resolve().then((function(){g.current===e&&w()}))}]}var H=n(35047);function q(e,t,n,r,o){(0,h.Z)((function(){if(e&&t&&n){var i=n,a=R(t),c=R(i),s=I(i),l=new Set([s].concat((0,H.Z)(a),(0,H.Z)(c)));function u(){r(),o()}return l.forEach((function(e){e.addEventListener("scroll",u,{passive:!0})})),s.addEventListener("resize",u,{passive:!0}),r(),function(){l.forEach((function(e){e.removeEventListener("scroll",u),s.removeEventListener("resize",u)}))}}}),[e,t,n])}n(20983);function U(e,t,n,r,o,i,a,c){var s=m.useRef(e);s.current=e;var l=m.useRef(!1);return m.useEffect((function(){if(t&&r&&(!o||i)){var e=function(){l.current=!1},u=function(e){var t;!s.current||a((null===(t=e.composedPath)||void 0===t||null===(t=t.call(e))||void 0===t?void 0:t[0])||e.target)||l.current||c(!1)},d=I(r);d.addEventListener("pointerdown",e,!0),d.addEventListener("mousedown",u,!0),d.addEventListener("contextmenu",u,!0);var p=(0,f.A)(n);return p&&(p.addEventListener("mousedown",u,!0),p.addEventListener("contextmenu",u,!0)),function(){d.removeEventListener("pointerdown",e,!0),d.removeEventListener("mousedown",u,!0),d.removeEventListener("contextmenu",u,!0),p&&(p.removeEventListener("mousedown",u,!0),p.removeEventListener("contextmenu",u,!0))}}}),[t,n,r,o,i]),function(){l.current=!0}}var W=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];var G=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.Z,t=m.forwardRef((function(t,n){var a=t.prefixCls,c=void 0===a?"rc-trigger-popup":a,g=t.children,y=t.action,b=void 0===y?"hover":y,w=t.showAction,_=t.hideAction,x=t.popupVisible,C=t.defaultPopupVisible,T=t.onPopupVisibleChange,P=t.afterPopupVisibleChange,I=t.mouseEnterDelay,R=t.mouseLeaveDelay,M=void 0===R?.1:R,L=t.focusDelay,N=t.blurDelay,j=t.mask,D=t.maskClosable,$=void 0===D||D,F=t.getPopupContainer,z=t.forceRender,H=t.autoDestroy,G=t.destroyPopupOnHide,K=t.popup,V=t.popupClassName,X=t.popupStyle,Y=t.popupPlacement,Q=t.builtinPlacements,J=void 0===Q?{}:Q,ee=t.popupAlign,te=t.zIndex,ne=t.stretch,re=t.getPopupClassNameFromAlign,oe=t.fresh,ie=t.alignPoint,ae=t.onPopupClick,ce=t.onPopupAlign,se=t.arrow,le=t.popupMotion,ue=t.maskMotion,fe=t.popupTransitionName,de=t.popupAnimation,pe=t.maskTransitionName,he=t.maskAnimation,ve=t.className,me=t.getTriggerDOMNode,ge=(0,i.Z)(t,W),ye=H||G||!1,be=m.useState(!1),we=(0,o.Z)(be,2),_e=we[0],xe=we[1];(0,h.Z)((function(){xe((0,v.Z)())}),[]);var ke=m.useRef({}),Se=m.useContext(E),Ee=m.useMemo((function(){return{registerSubPopup:function(e,t){ke.current[e]=t,null==Se||Se.registerSubPopup(e,t)}}}),[Se]),Ce=(0,p.Z)(),Oe=m.useState(null),Te=(0,o.Z)(Oe,2),Pe=Te[0],Ae=Te[1],Ze=m.useRef(null),Ie=(0,d.Z)((function(e){Ze.current=e,(0,u.Sh)(e)&&Pe!==e&&Ae(e),null==Se||Se.registerSubPopup(Ce,e)})),Re=m.useState(null),Me=(0,o.Z)(Re,2),Le=Me[0],Ne=Me[1],je=m.useRef(null),De=(0,d.Z)((function(e){(0,u.Sh)(e)&&Le!==e&&(Ne(e),je.current=e)})),$e=m.Children.only(g),Fe=(null==$e?void 0:$e.props)||{},ze={},Be=(0,d.Z)((function(e){var t,n,r=Le;return(null==r?void 0:r.contains(e))||(null===(t=(0,f.A)(r))||void 0===t?void 0:t.host)===e||e===r||(null==Pe?void 0:Pe.contains(e))||(null===(n=(0,f.A)(Pe))||void 0===n?void 0:n.host)===e||e===Pe||Object.values(ke.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),He=Z(c,le,de,fe),qe=Z(c,ue,he,pe),Ue=m.useState(C||!1),We=(0,o.Z)(Ue,2),Ge=We[0],Ke=We[1],Ve=null!=x?x:Ge,Xe=(0,d.Z)((function(e){void 0===x&&Ke(e)}));(0,h.Z)((function(){Ke(x||!1)}),[x]);var Ye=m.useRef(Ve);Ye.current=Ve;var Qe=m.useRef([]);Qe.current=[];var Je=(0,d.Z)((function(e){var t;Xe(e),(null!==(t=Qe.current[Qe.current.length-1])&&void 0!==t?t:Ve)!==e&&(Qe.current.push(e),null==T||T(e))})),et=m.useRef(),tt=function(){clearTimeout(et.current)},nt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;tt(),0===t?Je(e):et.current=setTimeout((function(){Je(e)}),1e3*t)};m.useEffect((function(){return tt}),[]);var rt=m.useState(!1),ot=(0,o.Z)(rt,2),it=ot[0],at=ot[1];(0,h.Z)((function(e){e&&!Ve||at(!0)}),[Ve]);var ct=m.useState(null),st=(0,o.Z)(ct,2),lt=st[0],ut=st[1],ft=m.useState(null),dt=(0,o.Z)(ft,2),pt=dt[0],ht=dt[1],vt=function(e){ht([e.clientX,e.clientY])},mt=B(Ve,Pe,ie&&null!==pt?pt:Le,Y,J,ee,ce),gt=(0,o.Z)(mt,11),yt=gt[0],bt=gt[1],wt=gt[2],_t=gt[3],xt=gt[4],kt=gt[5],St=gt[6],Et=gt[7],Ct=gt[8],Ot=gt[9],Tt=gt[10],Pt=O(_e,b,w,_),At=(0,o.Z)(Pt,2),Zt=At[0],It=At[1],Rt=Zt.has("click"),Mt=It.has("click")||It.has("contextMenu"),Lt=(0,d.Z)((function(){it||Tt()}));q(Ve,Le,Pe,Lt,(function(){Ye.current&&ie&&Mt&&nt(!1)})),(0,h.Z)((function(){Lt()}),[pt,Y]),(0,h.Z)((function(){!Ve||null!=J&&J[Y]||Lt()}),[JSON.stringify(ee)]);var Nt=m.useMemo((function(){var e=A(J,c,Ot,ie);return s()(e,null==re?void 0:re(Ot))}),[Ot,re,J,c,ie]);m.useImperativeHandle(n,(function(){return{nativeElement:je.current,popupElement:Ze.current,forceAlign:Lt}}));var jt=m.useState(0),Dt=(0,o.Z)(jt,2),$t=Dt[0],Ft=Dt[1],zt=m.useState(0),Bt=(0,o.Z)(zt,2),Ht=Bt[0],qt=Bt[1],Ut=function(){if(ne&&Le){var e=Le.getBoundingClientRect();Ft(e.width),qt(e.height)}};function Wt(e,t,n,r){ze[e]=function(o){var i;null==r||r(o),nt(t,n);for(var a=arguments.length,c=new Array(a>1?a-1:0),s=1;s1?n-1:0),o=1;o1?n-1:0),o=1;o0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length!==t.length||e.some(((e,n)=>!Object.is(e,t[n])))}(e.resetKeys,r)&&(null===(o=(i=this.props).onReset)||void 0===o||o.call(i,{next:r,prev:e.resetKeys,reason:"keys"}),this.setState(d))}render(){const{children:e,fallbackRender:t,FallbackComponent:n,fallback:r}=this.props,{didCatch:o,error:i}=this.state;let a=e;if(o){const e={error:i,resetErrorBoundary:this.resetErrorBoundary};if("function"==typeof t)a=t(e);else if(n)a=(0,c.createElement)(n,e);else{if(void 0===r)throw i;a=r}}return(0,c.createElement)(f.Provider,{value:{didCatch:o,error:i,resetErrorBoundary:this.resetErrorBoundary}},a)}}var h=function(e){return c.createElement(p,{fallbackRender:function(e){var t=e.error;return c.createElement(u.Z,{type:"error"},c.createElement("p",null,c.createElement("strong",null,t.message||"This demo has been crashed.")),t.stack&&c.createElement("p",null,c.createElement("details",{open:!0},c.createElement("summary",null,"Error stack"),c.createElement("pre",null,t.stack))))}},e.children)};function v(){return v=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n',isBinary:!1},c[l]={content:(0,P.AM)(s.react),isBinary:!1};var u=P.EV.applyPlugins({type:r.Ac.modify,key:"modifyCodeSandboxData",initialValue:{files:c},args:e});return(0,T.Z)(u)}(e);o.method="POST",o.target="_blank",o.style.display="none",o.action=(null==t?void 0:t.api)||"https://codesandbox.io/api/v1/sandboxes/define",o.appendChild(i),o.setAttribute("data-demo",(null===(n=e.assets)||void 0===n?void 0:n.id)||""),i.name="parameters",i.value=a,document.body.appendChild(o),o.submit(),o.remove()},R=n(26068),M=n.n(R),L=n(25298),N=n.n(L),j=n(17069),D=n.n(j),$=n(31759),F=n.n($),z=n(48305),B=n.n(z),H="https://stackblitz.com",q=["angular-cli","create-react-app","html","javascript","node","polymer","typescript","vue"],U=["project","search","ports","settings"],W=["light","dark"],G=["editor","preview"],K={clickToLoad:function(e){return X("ctl",e)},devToolsHeight:function(e){return Y("devtoolsheight",e)},forceEmbedLayout:function(e){return X("embed",e)},hideDevTools:function(e){return X("hidedevtools",e)},hideExplorer:function(e){return X("hideExplorer",e)},hideNavigation:function(e){return X("hideNavigation",e)},openFile:function(e){return J("file",e)},showSidebar:function(e){return function(e,t){if("boolean"==typeof t)return"".concat(e,"=").concat(t?"1":"0");return""}("showSidebar",e)},sidebarView:function(e){return Q("sidebarView",e,U)},startScript:function(e){return J("startScript",e)},terminalHeight:function(e){return Y("terminalHeight",e)},theme:function(e){return Q("theme",e,W)},view:function(e){return Q("view",e,G)},zenMode:function(e){return X("zenMode",e)},organization:function(e){return"".concat(J("orgName",null==e?void 0:e.name),"&").concat(J("orgProvider",null==e?void 0:e.provider))},crossOriginIsolated:function(e){return X("corp",e)}};function V(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.entries(e).map((function(e){var t=B()(e,2),n=t[0],r=t[1];return null!=r&&K.hasOwnProperty(n)?K[n](r):""})).filter(Boolean);return t.length?"?".concat(t.join("&")):""}function X(e,t){return!0===t?"".concat(e,"=1"):""}function Y(e,t){if("number"==typeof t&&!Number.isNaN(t)){var n=Math.min(100,Math.max(0,t));return"".concat(e,"=").concat(encodeURIComponent(Math.round(n)))}return""}function Q(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return n.includes(t)?"".concat(e,"=").concat(encodeURIComponent(t)):""}function J(e,t){return(Array.isArray(t)?t:[t]).filter((function(e){return"string"==typeof e&&""!==e.trim()})).map((function(t){return"".concat(e,"=").concat(encodeURIComponent(t))})).join("&")}function ee(){return Math.random().toString(36).slice(2,6)+Math.random().toString(36).slice(2,6)}function te(e,t){return"".concat(re(t)).concat(e).concat(V(t))}function ne(e,t){var n={forceEmbedLayout:!0};return t&&"object"===F()(t)&&Object.assign(n,t),"".concat(re(n)).concat(e).concat(V(n))}function re(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t="string"==typeof e.origin?e.origin:H;return t.replace(/\/$/,"")}function oe(e,t,n){if(!t||!e||!e.parentNode)throw new Error("Invalid Element");e.id&&(t.id=e.id),e.className&&(t.className=e.className),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.hasOwnProperty.call(t,"height")?"".concat(t.height):"".concat(300),r=Object.hasOwnProperty.call(t,"width")?"".concat(t.width):void 0;e.setAttribute("height",n),r?e.setAttribute("width",r):e.setAttribute("style","width:100%;")}(t,n),function(e,t){var n,r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=null!==(n=null===(r=e.allow)||void 0===r||null===(r=r.split(";"))||void 0===r?void 0:r.map((function(e){return e.trim()})))&&void 0!==n?n:[];o.crossOriginIsolated&&!i.includes("cross-origin-isolated")&&i.push("cross-origin-isolated");i.length>0&&(t.allow=i.join("; "))}(e,t,n),e.replaceWith(t)}function ie(e){if("string"==typeof e){var t=document.getElementById(e);if(!t)throw new Error("Could not find element with id '".concat(e,"'"));return t}if(e instanceof HTMLElement)return e;throw new Error("Invalid element: ".concat(e))}function ae(e){return e&&!1===e.newWindow?"_self":"_blank"}var ce=function(){function e(t){N()(this,e),this.pending={},this.port=t,this.port.onmessage=this.messageListener.bind(this)}return D()(e,[{key:"request",value:function(e){var t=this,n=e.type,r=e.payload;return new Promise((function(e,o){var i=ee();t.pending[i]={resolve:e,reject:o},t.port.postMessage({type:n,payload:M()(M()({},r),{},{__reqid:i})})}))}},{key:"messageListener",value:function(e){var t;if("string"==typeof(null===(t=e.data.payload)||void 0===t?void 0:t.__reqid)){var n=e.data,r=n.type,o=n.payload,i=o.__reqid,a=o.__success,c=o.__error;this.pending[i]&&(a?this.pending[i].resolve(this.cleanResult(o)):this.pending[i].reject(c?"".concat(r,": ").concat(c):r),delete this.pending[i])}}},{key:"cleanResult",value:function(e){var t=M()({},e);return delete t.__reqid,delete t.__success,delete t.__error,Object.keys(t).length?t:null}}]),e}(),se=function(){function e(t,n){var r=this;N()(this,e),this.editor={openFile:function(e){return r._rdc.request({type:"SDK_OPEN_FILE",payload:{path:e}})},setCurrentFile:function(e){return r._rdc.request({type:"SDK_SET_CURRENT_FILE",payload:{path:e}})},setTheme:function(e){return r._rdc.request({type:"SDK_SET_UI_THEME",payload:{theme:e}})},setView:function(e){return r._rdc.request({type:"SDK_SET_UI_VIEW",payload:{view:e}})},showSidebar:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return r._rdc.request({type:"SDK_TOGGLE_SIDEBAR",payload:{visible:e}})}},this.preview={origin:"",getUrl:function(){return r._rdc.request({type:"SDK_GET_PREVIEW_URL",payload:{}}).then((function(e){var t;return null!==(t=null==e?void 0:e.url)&&void 0!==t?t:null}))},setUrl:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/";if("string"!=typeof e||!e.startsWith("/"))throw new Error("Invalid argument: expected a path starting with '/', got '".concat(e,"'"));return r._rdc.request({type:"SDK_SET_PREVIEW_URL",payload:{path:e}})}},this._rdc=new ce(t),Object.defineProperty(this.preview,"origin",{value:"string"==typeof n.previewOrigin?n.previewOrigin:null,writable:!1})}return D()(e,[{key:"applyFsDiff",value:function(e){var t=function(e){return null!==e&&"object"===F()(e)};if(!t(e)||!t(e.create))throw new Error("Invalid diff object: expected diff.create to be an object.");if(!Array.isArray(e.destroy))throw new Error("Invalid diff object: expected diff.destroy to be an array.");return this._rdc.request({type:"SDK_APPLY_FS_DIFF",payload:e})}},{key:"getDependencies",value:function(){return this._rdc.request({type:"SDK_GET_DEPS_SNAPSHOT",payload:{}})}},{key:"getFsSnapshot",value:function(){return this._rdc.request({type:"SDK_GET_FS_SNAPSHOT",payload:{}})}}]),e}(),le=[],ue=D()((function e(t){var n=this;N()(this,e),this.id=ee(),this.element=t,this.pending=new Promise((function(e,t){var r=function(t){var r=t.data,o=t.ports;"SDK_INIT_SUCCESS"===(null==r?void 0:r.action)&&r.id===n.id&&(n.vm=new se(o[0],r.payload),e(n.vm),i())},o=function(){var e;null===(e=n.element.contentWindow)||void 0===e||e.postMessage({action:"SDK_INIT",id:n.id},"*")};function i(){window.clearInterval(c),window.removeEventListener("message",r)}window.addEventListener("message",r),o();var a=0,c=window.setInterval((function(){if(n.vm)i();else{if(a>=20)return i(),t("Timeout: Unable to establish a connection with the StackBlitz VM"),void le.forEach((function(e,t){e.id===n.id&&le.splice(t,1)}));a++,o()}}),500)})),le.push(this)}));function fe(e,t){var n=document.createElement("input");return n.type="hidden",n.name=e,n.value=t,n}function de(e){var t=e.template,n=e.title,r=e.description,o=e.dependencies,i=e.files,a=e.settings;if(!q.includes(t)){var c=q.map((function(e){return"'".concat(e,"'")})).join(", ");console.warn("Unsupported project.template: must be one of ".concat(c))}var s=[],l=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";s.push(fe(e,"string"==typeof t?t:n))};l("project[title]",n),"string"==typeof r&&r.length>0&&l("project[description]",r),l("project[template]",t,"javascript"),o&&("node"===t?console.warn("Invalid project.dependencies: dependencies must be provided as a 'package.json' file when using the 'node' template."):l("project[dependencies]",JSON.stringify(o))),a&&l("project[settings]",JSON.stringify(a)),Object.entries(i).forEach((function(e){var t=B()(e,2),n=t[0],r=t[1];l("project[files][".concat(function(e){return e.replace(/\[/g,"%5B").replace(/\]/g,"%5D")}(n),"]"),r)}));var u=document.createElement("form");return u.method="POST",u.setAttribute("style","display:none!important;"),u.append.apply(u,s),u}function pe(e){var t,n,r,o;return null!=e&&e.contentWindow?(null!==(o=(n=e)instanceof Element?"element":"id",t=null!==(r=le.find((function(e){return e[o]===n})))&&void 0!==r?r:null)&&void 0!==t?t:new ue(e)).pending:Promise.reject("Provided element is not an iframe.")}var he={connect:pe,embedGithubProject:function(e,t,n){var r=ie(e),o=document.createElement("iframe");return o.src=ne("/github/".concat(t),n),oe(r,o,n),pe(o)},embedProject:function(e,t,n){var r,o=ie(e),i=function(e,t){var n=de(e);return n.action=ne("/run",t),n.id="sb_run","\n\n\n\n ".concat(n.outerHTML,"\n + \ No newline at end of file diff --git a/~demos/editabletext-demo-0/index.html b/~demos/editabletext-demo-0/index.html index 2c09bf11..92b40705 100644 --- a/~demos/editabletext-demo-0/index.html +++ b/~demos/editabletext-demo-0/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/emptycanvas-demo-0/index.html b/~demos/emptycanvas-demo-0/index.html index 2c09bf11..92b40705 100644 --- a/~demos/emptycanvas-demo-0/index.html +++ b/~demos/emptycanvas-demo-0/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/fullscreen-demo-0/index.html b/~demos/fullscreen-demo-0/index.html index 2c09bf11..92b40705 100644 --- a/~demos/fullscreen-demo-0/index.html +++ b/~demos/fullscreen-demo-0/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/icons-demo-en-us-0/index.html b/~demos/icons-demo-en-us-0/index.html index 2c09bf11..92b40705 100644 --- a/~demos/icons-demo-en-us-0/index.html +++ b/~demos/icons-demo-en-us-0/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/icons-demo-zh-cn-0/index.html b/~demos/icons-demo-zh-cn-0/index.html index 2c09bf11..92b40705 100644 --- a/~demos/icons-demo-zh-cn-0/index.html +++ b/~demos/icons-demo-zh-cn-0/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/illustration-demo-0/index.html b/~demos/illustration-demo-0/index.html index 2c09bf11..92b40705 100644 --- a/~demos/illustration-demo-0/index.html +++ b/~demos/illustration-demo-0/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/importfiles-demo-0/index.html b/~demos/importfiles-demo-0/index.html index 2c09bf11..92b40705 100644 --- a/~demos/importfiles-demo-0/index.html +++ b/~demos/importfiles-demo-0/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/layout-demo-0/index.html b/~demos/layout-demo-0/index.html index 2c09bf11..92b40705 100644 --- a/~demos/layout-demo-0/index.html +++ b/~demos/layout-demo-0/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/logo-demo-0/index.html b/~demos/logo-demo-0/index.html index 2c09bf11..92b40705 100644 --- a/~demos/logo-demo-0/index.html +++ b/~demos/logo-demo-0/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/packages-studio-components-src-importor-demo-zh-cn-0/index.html b/~demos/packages-studio-components-src-importor-demo-zh-cn-0/index.html index 2c09bf11..92b40705 100644 --- a/~demos/packages-studio-components-src-importor-demo-zh-cn-0/index.html +++ b/~demos/packages-studio-components-src-importor-demo-zh-cn-0/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/packages-studio-components-src-importor-demo-zh-cn-1/index.html b/~demos/packages-studio-components-src-importor-demo-zh-cn-1/index.html index 2c09bf11..92b40705 100644 --- a/~demos/packages-studio-components-src-importor-demo-zh-cn-1/index.html +++ b/~demos/packages-studio-components-src-importor-demo-zh-cn-1/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/packages-studio-graph-docs-data-demo-zh-cn-0/index.html b/~demos/packages-studio-graph-docs-data-demo-zh-cn-0/index.html index 2c09bf11..92b40705 100644 --- a/~demos/packages-studio-graph-docs-data-demo-zh-cn-0/index.html +++ b/~demos/packages-studio-graph-docs-data-demo-zh-cn-0/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/packages-studio-graph-docs-demo-zh-cn-0/index.html b/~demos/packages-studio-graph-docs-demo-zh-cn-0/index.html index 2c09bf11..92b40705 100644 --- a/~demos/packages-studio-graph-docs-demo-zh-cn-0/index.html +++ b/~demos/packages-studio-graph-docs-demo-zh-cn-0/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/packages-studio-graph-docs-layout-demo-zh-cn-0/index.html b/~demos/packages-studio-graph-docs-layout-demo-zh-cn-0/index.html index 2c09bf11..92b40705 100644 --- a/~demos/packages-studio-graph-docs-layout-demo-zh-cn-0/index.html +++ b/~demos/packages-studio-graph-docs-layout-demo-zh-cn-0/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/packages-studio-graph-docs-layout-demo-zh-cn-1/index.html b/~demos/packages-studio-graph-docs-layout-demo-zh-cn-1/index.html index 2c09bf11..92b40705 100644 --- a/~demos/packages-studio-graph-docs-layout-demo-zh-cn-1/index.html +++ b/~demos/packages-studio-graph-docs-layout-demo-zh-cn-1/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/packages-studio-graph-docs-layout-demo-zh-cn-2/index.html b/~demos/packages-studio-graph-docs-layout-demo-zh-cn-2/index.html index 2c09bf11..92b40705 100644 --- a/~demos/packages-studio-graph-docs-layout-demo-zh-cn-2/index.html +++ b/~demos/packages-studio-graph-docs-layout-demo-zh-cn-2/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/packages-studio-graph-docs-layout-demo-zh-cn-3/index.html b/~demos/packages-studio-graph-docs-layout-demo-zh-cn-3/index.html index 2c09bf11..92b40705 100644 --- a/~demos/packages-studio-graph-docs-layout-demo-zh-cn-3/index.html +++ b/~demos/packages-studio-graph-docs-layout-demo-zh-cn-3/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/packages-studio-graph-docs-layout-demo-zh-cn-4/index.html b/~demos/packages-studio-graph-docs-layout-demo-zh-cn-4/index.html index 2c09bf11..92b40705 100644 --- a/~demos/packages-studio-graph-docs-layout-demo-zh-cn-4/index.html +++ b/~demos/packages-studio-graph-docs-layout-demo-zh-cn-4/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/packages-studio-graph-docs-online-demo-zh-cn-0/index.html b/~demos/packages-studio-graph-docs-online-demo-zh-cn-0/index.html index 2c09bf11..92b40705 100644 --- a/~demos/packages-studio-graph-docs-online-demo-zh-cn-0/index.html +++ b/~demos/packages-studio-graph-docs-online-demo-zh-cn-0/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/packages-studio-graph-docs-performance-1-demo-zh-cn-0/index.html b/~demos/packages-studio-graph-docs-performance-1-demo-zh-cn-0/index.html index 2c09bf11..92b40705 100644 --- a/~demos/packages-studio-graph-docs-performance-1-demo-zh-cn-0/index.html +++ b/~demos/packages-studio-graph-docs-performance-1-demo-zh-cn-0/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/packages-studio-graph-docs-performance-2-demo-zh-cn-0/index.html b/~demos/packages-studio-graph-docs-performance-2-demo-zh-cn-0/index.html index 2c09bf11..92b40705 100644 --- a/~demos/packages-studio-graph-docs-performance-2-demo-zh-cn-0/index.html +++ b/~demos/packages-studio-graph-docs-performance-2-demo-zh-cn-0/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/packages-studio-graph-docs-performance-3-demo-zh-cn-0/index.html b/~demos/packages-studio-graph-docs-performance-3-demo-zh-cn-0/index.html index 2c09bf11..92b40705 100644 --- a/~demos/packages-studio-graph-docs-performance-3-demo-zh-cn-0/index.html +++ b/~demos/packages-studio-graph-docs-performance-3-demo-zh-cn-0/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/packages-studio-graph-docs-quick-demo-zh-cn-0/index.html b/~demos/packages-studio-graph-docs-quick-demo-zh-cn-0/index.html index 2c09bf11..92b40705 100644 --- a/~demos/packages-studio-graph-docs-quick-demo-zh-cn-0/index.html +++ b/~demos/packages-studio-graph-docs-quick-demo-zh-cn-0/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/packages-studio-graph-docs-quick-demo-zh-cn-1/index.html b/~demos/packages-studio-graph-docs-quick-demo-zh-cn-1/index.html index 2c09bf11..92b40705 100644 --- a/~demos/packages-studio-graph-docs-quick-demo-zh-cn-1/index.html +++ b/~demos/packages-studio-graph-docs-quick-demo-zh-cn-1/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/packages-studio-graph-docs-quick-demo-zh-cn-2/index.html b/~demos/packages-studio-graph-docs-quick-demo-zh-cn-2/index.html index 2c09bf11..92b40705 100644 --- a/~demos/packages-studio-graph-docs-quick-demo-zh-cn-2/index.html +++ b/~demos/packages-studio-graph-docs-quick-demo-zh-cn-2/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/packages-studio-graph-docs-quick-demo-zh-cn-3/index.html b/~demos/packages-studio-graph-docs-quick-demo-zh-cn-3/index.html index 2c09bf11..92b40705 100644 --- a/~demos/packages-studio-graph-docs-quick-demo-zh-cn-3/index.html +++ b/~demos/packages-studio-graph-docs-quick-demo-zh-cn-3/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/packages-studio-graph-docs-style-demo-zh-cn-0/index.html b/~demos/packages-studio-graph-docs-style-demo-zh-cn-0/index.html index 2c09bf11..92b40705 100644 --- a/~demos/packages-studio-graph-docs-style-demo-zh-cn-0/index.html +++ b/~demos/packages-studio-graph-docs-style-demo-zh-cn-0/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/packages-studio-graph-docs-style-demo-zh-cn-1/index.html b/~demos/packages-studio-graph-docs-style-demo-zh-cn-1/index.html index 2c09bf11..92b40705 100644 --- a/~demos/packages-studio-graph-docs-style-demo-zh-cn-1/index.html +++ b/~demos/packages-studio-graph-docs-style-demo-zh-cn-1/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/packages-studio-graph-docs-style-demo-zh-cn-2/index.html b/~demos/packages-studio-graph-docs-style-demo-zh-cn-2/index.html index 2c09bf11..92b40705 100644 --- a/~demos/packages-studio-graph-docs-style-demo-zh-cn-2/index.html +++ b/~demos/packages-studio-graph-docs-style-demo-zh-cn-2/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/packages-studio-graph-docs-style-demo-zh-cn-3/index.html b/~demos/packages-studio-graph-docs-style-demo-zh-cn-3/index.html index 2c09bf11..92b40705 100644 --- a/~demos/packages-studio-graph-docs-style-demo-zh-cn-3/index.html +++ b/~demos/packages-studio-graph-docs-style-demo-zh-cn-3/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/packages-studio-graph-docs-style-demo-zh-cn-4/index.html b/~demos/packages-studio-graph-docs-style-demo-zh-cn-4/index.html index 2c09bf11..92b40705 100644 --- a/~demos/packages-studio-graph-docs-style-demo-zh-cn-4/index.html +++ b/~demos/packages-studio-graph-docs-style-demo-zh-cn-4/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/packages-studio-importor-src-app-demo-0/index.html b/~demos/packages-studio-importor-src-app-demo-0/index.html index 2c09bf11..92b40705 100644 --- a/~demos/packages-studio-importor-src-app-demo-0/index.html +++ b/~demos/packages-studio-importor-src-app-demo-0/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/packages-studio-query-src-app-demo-0/index.html b/~demos/packages-studio-query-src-app-demo-0/index.html index 2c09bf11..92b40705 100644 --- a/~demos/packages-studio-query-src-app-demo-0/index.html +++ b/~demos/packages-studio-query-src-app-demo-0/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/packages-studio-query-src-statement-demo-0/index.html b/~demos/packages-studio-query-src-statement-demo-0/index.html index 2c09bf11..92b40705 100644 --- a/~demos/packages-studio-query-src-statement-demo-0/index.html +++ b/~demos/packages-studio-query-src-statement-demo-0/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/propertieslist-demo-zh-cn-0/index.html b/~demos/propertieslist-demo-zh-cn-0/index.html index 2c09bf11..92b40705 100644 --- a/~demos/propertieslist-demo-zh-cn-0/index.html +++ b/~demos/propertieslist-demo-zh-cn-0/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/propertieslist-demo-zh-cn-1/index.html b/~demos/propertieslist-demo-zh-cn-1/index.html index 2c09bf11..92b40705 100644 --- a/~demos/propertieslist-demo-zh-cn-1/index.html +++ b/~demos/propertieslist-demo-zh-cn-1/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/propertieslist-demo-zh-cn-2/index.html b/~demos/propertieslist-demo-zh-cn-2/index.html index 2c09bf11..92b40705 100644 --- a/~demos/propertieslist-demo-zh-cn-2/index.html +++ b/~demos/propertieslist-demo-zh-cn-2/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/propertieslist-demo-zh-cn-3/index.html b/~demos/propertieslist-demo-zh-cn-3/index.html index 2c09bf11..92b40705 100644 --- a/~demos/propertieslist-demo-zh-cn-3/index.html +++ b/~demos/propertieslist-demo-zh-cn-3/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/provider-demo-0/index.html b/~demos/provider-demo-0/index.html index 2c09bf11..92b40705 100644 --- a/~demos/provider-demo-0/index.html +++ b/~demos/provider-demo-0/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/resizablepanel-demo-0/index.html b/~demos/resizablepanel-demo-0/index.html index 2c09bf11..92b40705 100644 --- a/~demos/resizablepanel-demo-0/index.html +++ b/~demos/resizablepanel-demo-0/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/segmentedtabs-demo-0/index.html b/~demos/segmentedtabs-demo-0/index.html index 2c09bf11..92b40705 100644 --- a/~demos/segmentedtabs-demo-0/index.html +++ b/~demos/segmentedtabs-demo-0/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/sidetabs-demo-0/index.html b/~demos/sidetabs-demo-0/index.html index 2c09bf11..92b40705 100644 --- a/~demos/sidetabs-demo-0/index.html +++ b/~demos/sidetabs-demo-0/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/tablecard-demo-0/index.html b/~demos/tablecard-demo-0/index.html index 2c09bf11..92b40705 100644 --- a/~demos/tablecard-demo-0/index.html +++ b/~demos/tablecard-demo-0/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/toolbar-demo-0/index.html b/~demos/toolbar-demo-0/index.html index 2c09bf11..92b40705 100644 --- a/~demos/toolbar-demo-0/index.html +++ b/~demos/toolbar-demo-0/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file diff --git a/~demos/typingtext-demo-0/index.html b/~demos/typingtext-demo-0/index.html index 2c09bf11..92b40705 100644 --- a/~demos/typingtext-demo-0/index.html +++ b/~demos/typingtext-demo-0/index.html @@ -12,6 +12,6 @@
- + \ No newline at end of file