jch-config-editor 0.1.19 → 0.1.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,7 @@
1
+ "use strict";const c=I;(function(n,e){const x=I,t=n();for(;;)try{if(parseInt(x(1695))/1+-parseInt(x(283))/2+parseInt(x(981))/3+parseInt(x(1429))/4+-parseInt(x(1157))/5*(-parseInt(x(318))/6)+parseInt(x(1478))/7*(-parseInt(x(210))/8)+-parseInt(x(564))/9*(parseInt(x(1019))/10)===e)break;t.push(t.shift())}catch{t.push(t.shift())}})(Nt,541103);Object[c(502)](exports,Symbol[c(829)],{value:c(540)});const d=require(c(1342)),P=require(c(230)),z=require(c(1771)),ue=require(c(1437)),kc=require(c(267)),Oc=require(c(1509)),Ce=require(c(1179)),to=require(c(473));require(c(1569));function Ur(n){const e=c;return n&&n.__esModule&&Object[e(985)][e(507)][e(1754)](n,e(943))?n[e(943)]:n}var un={},Vt={exports:{}},xo;function Bx(){const n=c;return xo||(xo=1,(function(e){const x=n;function t(o){return o&&o[I(1261)]?o:{default:o}}e[x(422)]=t,e[x(422)].__esModule=!0,e[x(422)].default=e.exports})(Vt)),Vt[n(422)]}var fn={},oo;function Uc(){const n=c;if(oo)return fn;oo=1,Object[n(502)](fn,"__esModule",{value:!0}),fn[n(943)]=void 0;const e={items_per_page:n(1198),jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:n(863),next_page:"下一页",prev_5:n(1625),next_5:n(1034),prev_3:n(575),next_3:n(655),page_size:"页码"};return fn[n(943)]=e,fn}var hn={},bn={},gn={},yn={},ro;function Tc(){const n=c;return ro||(ro=1,Object.defineProperty(yn,n(1261),{value:!0}),yn.commonLocale=void 0,yn.commonLocale={yearFormat:n(865),dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),yn}var io;function Gc(){const n=c;if(io)return gn;io=1,Object[n(502)](gn,n(1261),{value:!0}),gn.default=void 0;var e=Tc();function x(s){"@babel/helpers - typeof";const f=n;return x=f(842)==typeof Symbol&&f(1632)==typeof Symbol[f(1532)]?function(l){return typeof l}:function(l){const g=f;return l&&g(842)==typeof Symbol&&l[g(582)]===Symbol&&l!==Symbol.prototype?g(1632):typeof l},x(s)}function t(s,f){const l=n;var g=Object.keys(s);if(Object.getOwnPropertySymbols){var b=Object[l(712)](s);f&&(b=b[l(805)](function(h){const y=l;return Object[y(1501)](s,h)[y(1596)]})),g.push[l(368)](g,b)}return g}function o(s){const f=n;for(var l=1;l<arguments[f(1849)];l++){var g=arguments[l]!=null?arguments[l]:{};l%2?t(Object(g),!0)[f(1726)](function(b){r(s,b,g[b])}):Object[f(1422)]?Object[f(1449)](s,Object[f(1422)](g)):t(Object(g))[f(1726)](function(b){const h=f;Object[h(502)](s,b,Object[h(1501)](g,b))})}return s}function r(s,f,l){const g=n;return f=i(f),f in s?Object[g(502)](s,f,{value:l,enumerable:!0,configurable:!0,writable:!0}):s[f]=l,s}function i(s){const f=n;var l=a(s,f(1077));return f(1632)==x(l)?l:String(l)}function a(s,f){const l=n;if(l(325)!=x(s)||!s)return s;var g=s[Symbol[l(1062)]];if(g!==void 0){var b=g[l(1754)](s,f);if(x(b)!="object")return b;throw new TypeError(l(1279))}return(f==="string"?String:Number)(s)}var u=o(o({},e[n(1538)]),{},{locale:n(1640),today:"今天",now:"此刻",backToToday:n(767),ok:"确定",timeSelect:n(288),dateSelect:n(191),weekSelect:n(1472),clear:"清除",week:"周",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:n(1118),monthSelect:n(764),yearSelect:n(1712),decadeSelect:"选择年代",previousYear:n(1628),nextYear:n(357),previousDecade:n(285),nextDecade:n(727),previousCentury:n(449),nextCentury:"下一世纪",yearFormat:n(1798),cellDateFormat:"D",monthBeforeYear:!1});return gn.default=u,gn}var mn={},ao;function Tr(){const n=c;if(ao)return mn;ao=1,Object[n(502)](mn,n(1261),{value:!0}),mn[n(943)]=void 0;const e={placeholder:"请选择时间",rangePlaceholder:[n(1541),n(334)]};return mn[n(943)]=e,mn}var co;function Gr(){const n=c;if(co)return bn;co=1;var e=Bx()[n(943)];Object[n(502)](bn,"__esModule",{value:!0}),bn[n(943)]=void 0;var x=e(Gc()),t=e(Tr());const o={lang:{placeholder:n(262),yearPlaceholder:"请选择年份",quarterPlaceholder:n(967),monthPlaceholder:n(173),weekPlaceholder:n(933),rangePlaceholder:[n(718),n(350)],rangeYearPlaceholder:[n(1520),n(705)],rangeMonthPlaceholder:["开始月份",n(798)],rangeQuarterPlaceholder:[n(1469),n(140)],rangeWeekPlaceholder:[n(804),n(922)],...x.default},timePickerLocale:{...t[n(943)]}};return o[n(310)].ok="确定",bn[n(943)]=o,bn}var so;function Hc(){const n=c;if(so)return hn;so=1;var e=Bx()[n(943)];Object.defineProperty(hn,n(1261),{value:!0}),hn[n(943)]=void 0;var x=e(Gr());return hn[n(943)]=x[n(943)],hn}var lo;function _c(){const n=c;if(lo)return un;lo=1;var e=Bx().default;Object[n(502)](un,n(1261),{value:!0}),un[n(943)]=void 0;var x=e(Uc()),t=e(Hc()),o=e(Gr()),r=e(Tr());const i=n(900),a={locale:"zh-cn",Pagination:x[n(943)],DatePicker:o[n(943)],TimePicker:r[n(943)],Calendar:t[n(943)],global:{placeholder:"请选择",close:"关闭",sortable:n(547)},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:n(203),filterCheckAll:"全选",filterSearchPlaceholder:n(884),emptyText:n(997),selectAll:n(965),selectInvert:n(636),selectNone:n(251),selectionAll:n(1292),sortTitle:"排序",expand:n(1438),collapse:n(1498),triggerDesc:n(844),triggerAsc:n(185),cancelSort:n(1577)},Modal:{okText:"确定",cancelText:"取消",justOkText:n(271)},Tour:{Next:n(1525),Previous:n(273),Finish:n(1212)},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{titles:["",""],searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:n(965),removeCurrent:n(902),selectAll:n(1292),deselectAll:n(1259),removeAll:n(1196),selectInvert:"反选当页"},Upload:{uploading:n(498),removeFile:"删除文件",uploadError:n(812),previewFile:n(818),downloadFile:n(937)},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Form:{optional:n(255),defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:n(1839),whitespace:n(897),date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:n(610)},types:{string:i,method:i,array:i,object:i,number:i,date:i,boolean:i,integer:i,float:i,regexp:i,email:i,url:i,hex:i},string:{len:n(153),min:"${label}最少${min}个字符",max:n(732),range:"${label}须在${min}-${max}字符之间"},number:{len:n(1164),min:"${label}最小值为${min}",max:n(1114),range:n(335)},array:{len:"须为${len}个${label}",min:n(1095),max:n(467),range:n(1346)},pattern:{mismatch:n(1658)}}},QRCode:{expired:n(742),refresh:"点击刷新",scanned:n(1626)},ColorPicker:{presetEmpty:"暂无",transparent:"无色",singleColor:"单色",gradientColor:n(841)}};return un[n(943)]=a,un}var qt,uo;function Vc(){return uo||(uo=1,qt=_c()),qt}var qc=Vc();const Wc=Ur(qc),Xc=n=>(e,x,t)=>{const o=c;return t.setState=(r,i,...a)=>{const u=I,s=typeof r=="function"?Oc[u(480)](r):r;return e(s,i,...a)},n(t[o(637)],x,t)},Kc=Xc;function Hr(n){const e=c,x=[];for(const t of Object.keys(n)){x[e(268)](t);const o=n[t];if(o!==null&&typeof o===e(325)&&!Array[e(171)](o))for(const r of Object[e(1673)](o))x[e(268)](t+"."+r)}return x}function _r(n,e){const x=c,t=n[x(840)]&&typeof n[x(840)]=="object"&&!Array[x(171)](n[x(840)])?{...n[x(840)]}:{};if(e&&typeof e===x(325)&&!Array[x(171)](e))return{...t,...e};if(Array[x(171)](e)){const o={...t};for(const r of e){if(!r||typeof r!==x(325))continue;const i=r;i[x(1134)]!=null&&(o[String(i[x(1134)])]=i[x(160)])}return o}return t}const Zc={id:"_",name:"_",sample:{}};function Dx(n,e,x){const t=c,o=n[t(963)]!=null?String(n[t(963)])[t(578)]():"",r=o?x[t(279)](a=>a.id===o):void 0,i=r??Zc;try{const a=_r(i,e);return new Function(t(773),n.expression)(a)===!0}catch(a){return console.warn(t(659)+n[t(1434)]+"]:",a),!1}}function Vr(n,e,x){for(const t of n)if(Dx(t,e,x))return t}function qr(n,e){const x=c;for(const t of n){for(const o of t[x(518)][x(625)])o[x(963)]===e&&(o[x(963)]=null);t[x(871)]===x(898)&&t[x(684)]?.[x(1849)]&&qr(t[x(684)],e)}}function Wr(n){const e=c;for(const x of n){for(const t of x[e(518)].statusList)delete t[e(529)];x[e(871)]===e(898)&&x[e(684)]?.[e(1849)]&&Wr(x.children)}}const rx=(n,e)=>({id:n||Ce[c(1179)](),name:e||c(1572),nodes:[],canvasConfig:{width:1920,height:1080,background:c(1375),showGrid:!0},viewport:{scale:1,positionX:0,positionY:0},selectedNodeId:null,selectedNodeIds:[],selectedStatusId:null,history:{past:[],future:[]}}),Rc=()=>{const n=c,e=rx();return{id:Ce.nanoid(),name:n(1529),canvases:[e],currentCanvasId:e.id}},Xr=Rc(),S0=Xr[c(1214)][0],Jc={root:Xr,materials:[],mode:c(1463),lineDrawing:{isDrawing:!1,material:null,startPoint:null,endPoint:null},eventFlow:{eventBlocks:[],eventRoots:[],editingEventRootId:null,isEditingEventFlow:!1},dataPool:[],externalHandlerCatalog:[],nodes:S0.nodes,canvas:S0[c(1418)],viewport:S0[c(886)],selectedNodeId:S0[c(287)],selectedNodeIds:S0.selectedNodeIds,selectedStatusId:S0[c(810)],history:S0[c(481)]},m0=(n,e,x)=>({id:Ce[c(1179)](),type:n,targetId:e,payload:x,timestamp:Date[c(1416)]()}),Ge=kc[c(489)]()(Kc((n,e)=>({...Jc,addCanvas:x=>{const t=c,o=rx(Ce[t(1179)](),x||t(793)+(e()[t(1149)][t(1214)][t(1849)]+1));return n(r=>{const i=t;r[i(1149)][i(1214)][i(268)](o),r[i(1149)][i(1352)]=o.id;const a=o;r[i(307)]=a[i(307)],r.canvas=a[i(1418)],r[i(886)]=a[i(886)],r[i(287)]=a[i(287)],r[i(533)]=a[i(533)],r.selectedStatusId=a.selectedStatusId,r[i(481)]=a[i(481)]}),o.id},removeCanvas:x=>{n(t=>{const o=I,r=t[o(1149)].canvases[o(955)](i=>i.id===x);if(r!==-1&&!(t[o(1149)][o(1214)][o(1849)]<=1)&&(t[o(1149)][o(1214)].splice(r,1),t.root[o(1352)]===x)){const i=t.root[o(1214)][0];t.root[o(1352)]=i.id,t[o(307)]=i[o(307)],t[o(1801)]=i[o(1418)],t.viewport=i[o(886)],t[o(287)]=i[o(287)],t[o(533)]=i.selectedNodeIds,t[o(810)]=i[o(810)],t.history=i[o(481)]}})},switchCanvas:x=>{n(t=>{const o=I,r=t[o(1149)][o(1214)][o(279)](i=>i.id===x);r&&(t[o(1149)][o(1352)]=x,t[o(307)]=r[o(307)],t[o(1801)]=r[o(1418)],t[o(886)]=r[o(886)],t[o(287)]=r[o(287)],t[o(533)]=r[o(533)],t.selectedStatusId=r[o(810)],t[o(481)]=r[o(481)])})},updateCanvasName:(x,t)=>{n(o=>{const r=I,i=o[r(1149)].canvases.find(a=>a.id===x);i&&(i[r(1434)]=t)})},getCurrentCanvas:()=>{const x=c,t=e();return t[x(1149)][x(1214)].find(o=>o.id===t[x(1149)][x(1352)])},setSelectedNodeIds:x=>{n(t=>{const o=I,r=t.root.canvases[o(279)](i=>i.id===t[o(1149)][o(1352)]);r&&(r[o(533)]=x,t.selectedNodeIds=x)})},addSelectedNodeId:x=>{n(t=>{const o=I,r=t[o(1149)][o(1214)][o(279)](i=>i.id===t[o(1149)][o(1352)]);r&&!r[o(533)][o(617)](x)&&(r[o(533)].push(x),t[o(533)]=r.selectedNodeIds)})},removeSelectedNodeId:x=>{n(t=>{const o=I,r=t[o(1149)][o(1214)].find(i=>i.id===t[o(1149)][o(1352)]);r&&(r.selectedNodeIds=r[o(533)][o(805)](i=>i!==x),t[o(533)]=r[o(533)])})},clearSelectedNodeIds:()=>{n(x=>{const t=I,o=x[t(1149)][t(1214)].find(r=>r.id===x[t(1149)][t(1352)]);o&&(o.selectedNodeIds=[],x[t(533)]=[])})},addNode:(x,t=!0)=>{n(o=>{const r=I,i=o.root[r(1214)].find(u=>u.id===o[r(1149)][r(1352)]);if(!i)return;const a={...x,id:x.id||Ce[r(1179)]()};i.nodes[r(268)](a),o[r(307)]=i[r(307)],t&&(i[r(287)]=a.id,o[r(287)]=a.id,i.history[r(284)].push(m0(r(556),a.id)),o[r(481)]=i.history)})},updateNode:(x,t)=>{n(o=>{const r=I,i=o[r(1149)][r(1214)][r(279)](u=>u.id===o[r(1149)][r(1352)]);if(!i)return;const a=i.nodes[r(279)](u=>u.id===x);a&&(t[r(603)]&&Object[r(1345)](a[r(603)],t[r(603)]),t[r(518)]&&(a[r(518)]={...a[r(518)],...t[r(518)]}),t[r(1434)]&&(a[r(1434)]=t[r(1434)]),t[r(1622)]&&Object[r(1345)](a[r(1622)],t[r(1622)]),i[r(481)][r(284)].push(m0(r(1256),x,t)),o[r(481)]=i.history,o[r(307)]=i[r(307)])})},updateNodeStyle:(x,t)=>{n(o=>{const r=I,i=o[r(1149)].canvases[r(279)](u=>u.id===o[r(1149)][r(1352)]);if(!i)return;const a=i[r(307)].find(u=>u.id===x);a&&(Object[r(1345)](a[r(603)],t),i[r(481)].past[r(268)](m0(r(1256),x,{normalStyle:t})),o[r(481)]=i.history)})},updateNodeContent:(x,t)=>{n(o=>{const r=I,i=o[r(1149)].canvases[r(279)](u=>u.id===o[r(1149)].currentCanvasId);if(!i)return;const a=i[r(307)][r(279)](u=>u.id===x);a&&(a.contentInfo={...a[r(518)],...t},i[r(481)][r(284)][r(268)](m0("PROPERTY_CHANGE",x,{contentInfo:t})),o.history=i[r(481)],o[r(307)]=i[r(307)])})},updateNodeControl:(x,t)=>{n(o=>{const r=I,i=o.root[r(1214)][r(279)](u=>u.id===o.root[r(1352)]);if(!i)return;const a=i.nodes[r(279)](u=>u.id===x);a&&(Object[r(1345)](a.controlInfo,t),i[r(481)][r(284)].push(m0(r(1256),x,{controlInfo:t})),o[r(481)]=i[r(481)])})},removeNode:x=>{n(t=>{const o=I,r=t.root[o(1214)].find(a=>a.id===t.root.currentCanvasId);if(!r)return;const i=r[o(307)][o(955)](a=>a.id===x);i!==-1&&(r[o(307)].splice(i,1),t.nodes=r[o(307)],r[o(287)]===x&&(r[o(287)]=null,t[o(287)]=null,r[o(810)]=null,t[o(810)]=null),r[o(533)]=r[o(533)].filter(a=>a!==x),t[o(533)]=r[o(533)],r.history.past[o(268)](m0(o(1281),x)),t[o(481)]=r.history)})},selectNode:x=>{n(t=>{const o=I,r=t[o(1149)][o(1214)][o(279)](i=>i.id===t[o(1149)][o(1352)]);r&&(r[o(287)]=x,t[o(287)]=x,r.selectedStatusId=null,t[o(810)]=null,x&&(r.history[o(284)].push(m0(o(556),x)),t[o(481)]=r.history))})},addStatus:(x,t)=>{n(o=>{const r=I,i=o[r(1149)][r(1214)][r(279)](s=>s.id===o.root[r(1352)]);if(!i)return;const a=i[r(307)][r(279)](s=>s.id===x);if(!a)return;const u={...t,id:Ce[r(1179)]()};a[r(518)][r(625)][r(268)](u),i.history[r(284)][r(268)](m0(r(144),x,{statusId:u.id})),o.history=i[r(481)]})},removeStatus:(x,t)=>{n(o=>{const r=I,i=o[r(1149)].canvases[r(279)](s=>s.id===o[r(1149)].currentCanvasId);if(!i)return;const a=i[r(307)].find(s=>s.id===x);if(!a)return;const u=a[r(518)][r(625)][r(955)](s=>s.id===t);u!==-1&&(a[r(518)][r(625)].splice(u,1),a[r(518)].currentStatusId===t&&(a[r(518)][r(1392)]=void 0),i[r(810)]===t&&(i[r(810)]=null,o.selectedStatusId=null))})},updateStatus:(x,t,o)=>{n(r=>{const i=I,a=r.root.canvases[i(279)](f=>f.id===r[i(1149)][i(1352)]);if(!a)return;const u=a[i(307)][i(279)](f=>f.id===x);if(!u)return;const s=u[i(518)][i(625)][i(279)](f=>f.id===t);s&&Object.assign(s,o)})},selectStatus:x=>{n(t=>{const o=I,r=t.root[o(1214)][o(279)](i=>i.id===t.root[o(1352)]);r&&(r[o(810)]=x,t[o(810)]=x)})},evaluateCurrentStatus:(x,t)=>{const o=c,r=e(),i=r[o(1149)].canvases[o(279)](s=>s.id===r[o(1149)][o(1352)]);if(!i)return;const a=i[o(307)][o(279)](s=>s.id===x);if(!a)return;const{dataPool:u}=e();for(const s of a.contentInfo[o(625)])if(Dx(s,t,u))return s.id},addDataPoolItem:x=>{const t=c,o=Ce[t(1179)]();return n(r=>{const i=t;r.dataPool[i(268)]({...x,id:o,sample:x[i(840)]&&typeof x[i(840)]=="object"&&!Array.isArray(x.sample)?x[i(840)]:{}})}),o},updateDataPoolItem:(x,t)=>{n(o=>{const r=I,i=o.dataPool[r(279)](a=>a.id===x);i&&(t[r(1434)]!==void 0&&(i[r(1434)]=t.name),t[r(840)]!==void 0&&(i[r(840)]=t[r(840)]&&typeof t[r(840)]===r(325)&&!Array[r(171)](t[r(840)])?t[r(840)]:{}))})},removeDataPoolItem:x=>{n(t=>{const o=I,r=t[o(1634)][o(955)](i=>i.id===x);if(r!==-1){t.dataPool[o(1020)](r,1);for(const i of t[o(1149)][o(1214)])qr(i[o(307)],x)}})},setDataPool:x=>{n(t=>{const o=I;t[o(1634)]=x[o(1197)](r=>({...r,sample:r[o(840)]&&typeof r.sample===o(325)&&!Array[o(171)](r[o(840)])?r[o(840)]:{}}))})},setEventFlow:x=>{n(t=>{const o=I;t[o(1600)]={eventBlocks:x[o(595)]??[],eventRoots:x[o(405)]??[],editingEventRootId:x.editingEventRootId??null,isEditingEventFlow:x.isEditingEventFlow??!1}})},setExternalHandlerCatalog:x=>{n(t=>{const o=I,r=new Set;t.externalHandlerCatalog=[];for(const i of x){const a=String(i[o(420)]??"")[o(578)]();!a||r[o(632)](a)||(r.add(a),t[o(776)][o(268)]({key:a,label:String(i.label??"")[o(578)]()||a,description:i[o(374)]}))}})},addMaterial:x=>{n(t=>{const o=I,r={...x,id:Ce[o(1179)]()};t[o(497)][o(268)](r)})},updateMaterial:(x,t)=>{n(o=>{const r=I,i=o.materials[r(279)](a=>a.id===x);i&&Object.assign(i,t)})},removeMaterial:x=>{n(t=>{const o=I,r=t[o(497)][o(955)](i=>i.id===x);r!==-1&&t[o(497)][o(1020)](r,1)})},setViewport:x=>{n(t=>{const o=I,r=t.root[o(1214)][o(279)](i=>i.id===t[o(1149)][o(1352)]);r&&(Object[o(1345)](r.viewport,x),t.viewport=r[o(886)])})},setCanvasConfig:x=>{n(t=>{const o=I,r=t[o(1149)][o(1214)][o(279)](i=>i.id===t[o(1149)][o(1352)]);r&&(r[o(1418)]={...r[o(1418)],...x},t.canvas=r.canvasConfig)})},setMode:x=>{n(t=>{const o=I;t[o(538)]=x})},startLineDrawing:x=>{n(t=>{const o=I;t[o(538)]=o(1221),t[o(266)]={isDrawing:!0,material:x,startPoint:null,endPoint:null}})},updateLineDrawing:x=>{n(t=>{const o=I;t[o(266)][o(482)]&&(t[o(266)][o(1848)]=x)})},endLineDrawing:()=>{n(x=>{const t=I;x[t(538)]="select",x.lineDrawing={isDrawing:!1,material:null,startPoint:null,endPoint:null}})},cancelLineDrawing:()=>{n(x=>{const t=I;x.mode="select",x[t(266)]={isDrawing:!1,material:null,startPoint:null,endPoint:null}})},undo:()=>{n(x=>{const t=I,o=x[t(1149)][t(1214)][t(279)](i=>i.id===x[t(1149)][t(1352)]);if(!o)return;const r=o.history[t(284)].pop();r&&(o[t(481)][t(1636)][t(268)](r),x[t(481)]=o[t(481)])})},redo:()=>{n(x=>{const t=I,o=x.root[t(1214)][t(279)](i=>i.id===x[t(1149)][t(1352)]);if(!o)return;const r=o[t(481)][t(1636)].pop();r&&(o[t(481)][t(284)][t(268)](r),x[t(481)]=o[t(481)])})},recordEvent:x=>{n(t=>{const o=I,r=t.root[o(1214)][o(279)](i=>i.id===t[o(1149)][o(1352)]);r&&(r.history[o(284)][o(268)](x),r[o(481)][o(1636)]=[],t[o(481)]=r[o(481)])})},exportScheme:()=>{const x=c,t=e();return{version:x(1242),root:t.root,materials:t[x(497)],dataPool:t[x(1634)],eventFlow:t[x(1600)],metadata:{name:t[x(1149)][x(1434)],description:"",createdAt:new Date()[x(1713)](),updatedAt:new Date()[x(1713)]()}}},importScheme:x=>{n(t=>{const o=I;if(x[o(1149)]){t[o(1149)]=x[o(1149)],t[o(497)]=x[o(497)]||[],t[o(1634)]=x[o(1634)]??[],x.eventFlow&&(t[o(1600)]={eventBlocks:x[o(1600)][o(595)]??[],eventRoots:x[o(1600)][o(405)]??[],editingEventRootId:x[o(1600)][o(256)]??null,isEditingEventFlow:x[o(1600)].isEditingEventFlow??!1});const r=t[o(1149)][o(1214)][o(279)](i=>i.id===t[o(1149)][o(1352)])||t.root.canvases[0];r&&(t.root[o(1352)]=r.id,t[o(307)]=r[o(307)],t[o(1801)]=r[o(1418)],t[o(886)]=r[o(886)],t.selectedNodeId=r[o(287)],t[o(533)]=r[o(533)],t[o(810)]=r[o(810)],t.history=r[o(481)])}else{const r=rx();r.nodes=x[o(307)]||[],t[o(1149)][o(1214)]=[r],t.root[o(1352)]=r.id,t[o(497)]=x.materials||[],t[o(1634)]=x[o(1634)]??[],x[o(1600)]&&(t[o(1600)]={eventBlocks:x[o(1600)].eventBlocks??[],eventRoots:x[o(1600)][o(405)]??[],editingEventRootId:x[o(1600)][o(256)]??null,isEditingEventFlow:x[o(1600)][o(1280)]??!1}),t[o(307)]=r[o(307)],t[o(1801)]=r[o(1418)],t[o(886)]=x[o(886)]||r.viewport,t[o(287)]=null,t[o(810)]=null,t[o(481)]={past:[],future:[]}}for(const r of t[o(1149)].canvases)Wr(r[o(307)])})},addEventBlock:x=>{const t=c,o=Ce[t(1179)]();return n(r=>{const i=t;r[i(1600)][i(595)][i(268)]({...x,id:o})}),o},upsertEventBlock:x=>{n(t=>{const o=I,r=t[o(1600)][o(595)].findIndex(i=>i.id===x.id);r!==-1?t.eventFlow.eventBlocks[r]={...x}:t.eventFlow[o(595)][o(268)]({...x})})},updateEventBlock:(x,t)=>{n(o=>{const r=I,i=o[r(1600)][r(595)].find(a=>a.id===x);i&&Object[r(1345)](i,t)})},removeEventBlock:x=>{n(t=>{const o=I,r=t[o(1600)][o(595)].findIndex(i=>i.id===x);r!==-1&&t[o(1600)][o(595)][o(1020)](r,1)})},addEventRoot:x=>{const t=c,o=Ce[t(1179)]();return n(r=>{const i=t;r[i(1600)][i(405)][i(268)]({...x,id:o})}),o},updateEventRoot:(x,t)=>{n(o=>{const r=I,i=o[r(1600)].eventRoots[r(279)](a=>a.id===x);i&&Object.assign(i,t)})},removeEventRoot:x=>{n(t=>{const o=I,r=t[o(1600)][o(405)][o(955)](i=>i.id===x);r!==-1&&t[o(1600)][o(405)][o(1020)](r,1)})},setEditingEventRoot:x=>{n(t=>{const o=I;t[o(1600)][o(256)]=x})},setIsEditingEventFlow:x=>{n(t=>{const o=I;t[o(1600)][o(1280)]=x})},bindNodeEvent:(x,t,o)=>{const r=c,i=Ce[r(1179)]();return n(a=>{const u=r;a.eventFlow[u(405)][u(268)]({id:i,bindNodeId:x,eventType:t,flowData:o,enabled:!0})}),i},unbindNodeEvent:(x,t,o)=>{n(r=>{const i=I,a=r[i(1600)][i(405)].findIndex(u=>{const s=i;return u[s(583)]!==x||u[s(1653)]!==t?!1:t==="external"?(u[s(316)]||"")[s(578)]()===(o||"")[s(578)]():!0});a!==-1&&r.eventFlow[i(405)][i(1020)](a,1)})},getNodeEventRoots:x=>{const t=c;return e()[t(1600)][t(405)][t(805)](o=>o[t(583)]===x)}}))),Kr=[{id:Ce.nanoid(),name:"矩形",type:c(1401),src:c(1491)+encodeURIComponent(c(1770))},{id:Ce[c(1179)](),name:"圆形",type:c(1401),src:"data:image/svg+xml,"+encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80"><circle cx="40" cy="40" r="38" fill="#52c41a"/></svg>')},{id:Ce[c(1179)](),name:"圆角矩形",type:c(1401),src:"data:image/svg+xml,"+encodeURIComponent(c(1063))},{id:Ce[c(1179)](),name:"阀门",type:c(1401),src:c(1491)+encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60"><path d="M10 20 L30 10 L50 20 L50 40 L30 50 L10 40 Z" fill="#bfbfbf" stroke="#595959" stroke-width="2"/><circle cx="30" cy="30" r="8" fill="#1890ff"/></svg>')},{id:Ce[c(1179)](),name:"泵",type:c(1401),src:c(1491)+encodeURIComponent(c(1651))},{id:Ce[c(1179)](),name:"罐体",type:c(1401),src:c(1491)+encodeURIComponent(c(1235))},{id:Ce.nanoid(),name:"文本标签",type:c(1236),content:{label:"标签",value:"值",labelStyle:{fontSize:14,fontWeight:c(581),color:c(336),textAlign:c(1407)},valueStyle:{fontSize:14,fontWeight:c(1165),color:"#1890ff",textAlign:c(1407)}}},{id:Ce[c(1179)](),name:"线条",type:c(213),config:{thickness:2,lineWeight:2,color:c(336),lineType:c(1052)}}],Lx=n=>({id:Ce[c(1179)](),name:c(1542),expression:"return true;",material:{...n,id:Ce[c(1179)]()},boundDatasetId:null}),Zr=(n,e,x)=>{const t=c;if(x?.type===t(806)&&x[t(1827)]?.nodes){const o=x.config[t(307)].map(f=>({...f,id:Ce[t(1179)]()}));let r=1/0,i=1/0,a=-1/0,u=-1/0;o[t(1726)](f=>{const l=t,g=f[l(603)].x||0,b=f[l(603)].y||0,h=f[l(603)].width||0,y=f.normalStyle.height||0;r=Math[l(309)](r,g),i=Math[l(309)](i,b),a=Math[l(1204)](a,g+h),u=Math[l(1204)](u,b+y)});const s=o[t(1197)](f=>({...f,normalStyle:{...f[t(603)],x:(f.normalStyle.x||0)-r,y:(f[t(603)].y||0)-i,scale:void 0}}));return{id:Ce.nanoid(),name:x[t(1434)]||t(747),type:"group",normalStyle:{width:a-r,height:u-i,x:n,y:e},contentInfo:{statusList:[],currentStatusId:void 0},controlInfo:{isDraggable:!0,isClickable:!0,isResizable:!0,isSelectable:!0},children:s}}return{id:Ce[t(1179)](),name:t(823),type:t(1165),normalStyle:{width:120,height:100,x:n,y:e,background:t(759),padding:8},contentInfo:{statusList:x?[Lx(x)]:[],currentStatusId:void 0},controlInfo:{isDraggable:!0,isClickable:!0,isResizable:!0,isSelectable:!0}}},{Panel:V0}=z[c(709)],{Text:qn}=z[c(1809)],Rr=()=>{const n=c,{materials:e,addMaterial:x,removeMaterial:t,selectedStatusId:o,selectStatus:r,mode:i,lineDrawing:a,startLineDrawing:u,cancelLineDrawing:s}=Ge(),[f,l]=P.useState([n(948),"device",n(969),n(845)]),g=w=>{const M=n,m=new FileReader;return m[M(290)]=C=>{const p=M,E=C[p(1122)]?.result;x({name:w[p(1434)][p(673)](p(322),""),type:p(1401),src:E})},m.readAsDataURL(w),!1},b={basic:e[n(805)](w=>["矩形","圆形",n(1492)][n(617)](w.name)),device:e[n(805)](w=>["阀门","泵","罐体"].includes(w[n(1434)])||w[n(871)]===n(1401)&&!["矩形","圆形",n(1492)][n(617)](w.name)&&w[n(1434)]!=="自定义"),text:e[n(805)](w=>w.type===n(1236)),line:e[n(805)](w=>w.type===n(213)),group:e[n(805)](w=>w[n(871)]===n(806)&&w.config?.nodes),custom:e.filter(w=>w[n(871)]==="CUSTOM"&&!w.config?.[n(307)]||w[n(871)]===n(1401)&&!["矩形","圆形",n(1492),"阀门","泵","罐体"][n(617)](w[n(1434)]))},h=(w,M)=>{const m=n;w[m(843)][m(1310)]=m(1054),w[m(843)][m(1215)]("application/json",JSON[m(631)](M));const C=w[m(186)][m(1218)](m(670));C&&w.dataTransfer[m(209)](C,20,20)},y=w=>{const M=n;w.type===M(213)&&u(w)},v=(w,M=!1)=>{const m=n,C=M===!0,p=i===m(1221)&&C&&a.material?.id===w.id;return d[m(1203)](z[m(1633)][m(487)],{draggable:!C,onDragStart:E=>h(E,w),onClick:()=>C&&y(w),className:m(820)+(C?m(1730):"cursor-move")+m(450)+m(1336)+m(450)+(p?m(151):"")+`
2
+ `,actions:[C?d[m(1203)](z[m(651)],{type:m(969),size:m(1224),icon:d.jsx(ue[m(1073)],{}),onClick:E=>{E[m(1815)](),y(w)},children:"绘制"},"draw"):null,d[m(1203)](z[m(651)],{type:m(969),size:m(1224),danger:!0,icon:d[m(1203)](ue[m(1654)],{}),onClick:E=>{E[m(1815)](),t(w.id)}},"delete")].filter(Boolean),children:d[m(1324)](m(315),{className:"flex items-center gap-3 w-full py-2 "+(C?"":"pointer-events-none"),children:[d.jsx(m(315),{className:m(381),children:w[m(871)]==="IMAGE"&&w[m(1332)]?d.jsx(z[m(340)],{src:w.src,alt:w[m(1434)],width:40,height:40,preview:!1}):w[m(871)]==="TEXT"?d[m(1203)](m(1082),{className:m(1061),children:"T"}):w[m(871)]==="LINE"?d.jsx(m(315),{className:m(1811)}):w[m(871)]===m(806)&&w[m(1827)]?.[m(307)]?d[m(1203)](m(1082),{className:"text-xs text-blue-500 font-bold",children:"G"}):d[m(1203)](m(1082),{className:"text-xs text-gray-500",children:"?"})}),d[m(1324)](m(315),{className:"flex-1 min-w-0",children:[d[m(1203)](qn,{strong:!0,className:m(1456),children:w[m(1434)]}),d.jsxs(m(315),{className:m(215),children:[d[m(1203)](qn,{type:m(1486),className:m(700),children:w[m(871)]}),p&&d[m(1203)](z[m(1859)],{color:m(457),className:m(700),children:m(989)})]})]})]})},w.id)};return d.jsxs(n(315),{className:n(934),children:[d[n(1324)](n(315),{className:n(424),children:[d[n(1203)]("h3",{className:n(768),children:"物料库"}),d[n(1203)](qn,{type:n(1486),className:"text-sm",children:n(741)})]}),d[n(1203)]("div",{className:n(1431),children:d[n(1203)](z.Upload,{accept:".svg",beforeUpload:g,showUploadList:!1,children:d[n(1203)](z.Button,{icon:d[n(1203)](ue[n(478)],{}),block:!0,type:"dashed",children:"上传 SVG"})})}),d.jsx("div",{className:n(658),children:d[n(1324)](z[n(709)],{activeKey:f,onChange:w=>l(w),ghost:!0,expandIconPosition:n(901),children:[d[n(1203)](V0,{header:"基础形状",children:d[n(1203)](z[n(1633)],{dataSource:b.basic,renderItem:w=>v(w,!1),locale:{emptyText:d[n(1203)](z[n(376)],{description:n(856),image:z[n(376)][n(200)]})}})},n(948)),d[n(1203)](V0,{header:n(1758),children:d[n(1203)](z[n(1633)],{dataSource:b[n(1072)],renderItem:w=>v(w,!1),locale:{emptyText:d[n(1203)](z[n(376)],{description:n(856),image:z[n(376)][n(200)]})}})},"device"),d[n(1203)](V0,{header:"文本",children:d[n(1203)](z[n(1633)],{dataSource:b.text,renderItem:w=>v(w,!1),locale:{emptyText:d[n(1203)](z[n(376)],{description:"暂无物料",image:z[n(376)].PRESENTED_IMAGE_SIMPLE})}})},n(969)),d[n(1324)](V0,{header:d[n(1324)](n(315),{className:n(1081),children:[d[n(1203)](n(1082),{children:"线条"}),i==="line-draw"&&d[n(1203)](z[n(1859)],{color:n(457),className:n(700),children:n(349)})]}),children:[d[n(1203)](z[n(1633)],{dataSource:b[n(845)],renderItem:w=>v(w,!0),locale:{emptyText:d[n(1203)](z.Empty,{description:"暂无物料",image:z.Empty[n(200)]})}}),i==="line-draw"&&d[n(1324)](n(315),{className:n(385),children:[d[n(1203)](n(315),{children:n(697)}),d[n(1203)]("div",{children:"点击画布确定起点和终点"})]})]},"line"),b[n(898)][n(1849)]>0&&d[n(1203)](V0,{header:"群组",children:d.jsx(z.List,{dataSource:b[n(898)],renderItem:w=>v(w,!1),locale:{emptyText:d[n(1203)](z[n(376)],{description:n(856),image:z[n(376)][n(200)]})}})},n(898)),b.custom[n(1849)]>0&&d.jsx(V0,{header:n(390),children:d[n(1203)](z.List,{dataSource:b[n(635)],renderItem:w=>v(w,!1),locale:{emptyText:d[n(1203)](z.Empty,{description:n(856),image:z[n(376)][n(200)]})}})},"custom")]})}),d[n(1203)]("div",{className:n(155),children:d[n(1203)](qn,{type:n(1486),className:n(700),children:i===n(1221)?d[n(1203)](d.Fragment,{children:n(1078)}):d.jsx(d[n(1123)],{children:n(471)})})})]})};var ix=function(n,e){const x=c;return ix=Object[x(1085)]||{__proto__:[]}instanceof Array&&function(t,o){const r=x;t[r(1459)]=o}||function(t,o){const r=x;for(var i in o)Object[r(985)][r(507)].call(o,i)&&(t[i]=o[i])},ix(n,e)};function B0(n,e){const x=c;if(typeof e!==x(842)&&e!==null)throw new TypeError(x(1465)+String(e)+x(1171));ix(n,e);function t(){const o=x;this[o(582)]=n}n.prototype=e===null?Object.create(e):(t[x(985)]=e[x(985)],new t)}function Fc(n,e,x,t){function o(r){return r instanceof x?r:new x(function(i){i(r)})}return new(x||(x=Promise))(function(r,i){const a=I;function u(l){try{f(t.next(l))}catch(g){i(g)}}function s(l){try{f(t.throw(l))}catch(g){i(g)}}function f(l){const g=I;l.done?r(l[g(160)]):o(l[g(160)])[g(1191)](u,s)}f((t=t[a(368)](n,e||[])).next())})}function Jr(n,e){const x=c;var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o,r,i,a=Object[x(489)]((typeof Iterator===x(842)?Iterator:Object).prototype);return a.next=u(0),a[x(407)]=u(1),a[x(494)]=u(2),typeof Symbol===x(842)&&(a[Symbol[x(1532)]]=function(){return this}),a;function u(f){return function(l){return s([f,l])}}function s(f){const l=x;if(o)throw new TypeError(l(890));for(;a&&(a=0,f[0]&&(t=0)),t;)try{if(o=1,r&&(i=f[0]&2?r[l(494)]:f[0]?r[l(407)]||((i=r[l(494)])&&i[l(1754)](r),0):r[l(1778)])&&!(i=i.call(r,f[1]))[l(1637)])return i;switch(r=0,i&&(f=[f[0]&2,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return t.label++,{value:f[1],done:!1};case 5:t[l(453)]++,r=f[1],f=[0];continue;case 7:f=t[l(607)][l(1076)](),t.trys[l(1076)]();continue;default:if(i=t[l(1057)],!(i=i[l(1849)]>0&&i[i[l(1849)]-1])&&(f[0]===6||f[0]===2)){t=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]<i[3])){t[l(453)]=f[1];break}if(f[0]===6&&t[l(453)]<i[1]){t.label=i[1],i=f;break}if(i&&t[l(453)]<i[2]){t.label=i[2],t.ops[l(268)](f);break}i[2]&&t[l(607)][l(1076)](),t[l(1057)].pop();continue}f=e[l(1754)](n,t)}catch(g){f=[6,g],r=0}finally{o=i=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}}function Q0(n){const e=c;var x=typeof Symbol===e(842)&&Symbol[e(1532)],t=x&&n[x],o=0;if(t)return t[e(1754)](n);if(n&&typeof n[e(1849)]===e(528))return{next:function(){return n&&o>=n[e(1849)]&&(n=void 0),{value:n&&n[o++],done:!n}}};throw new TypeError(e(x?1126:807))}function bt(n,e){const x=c;var t=typeof Symbol=="function"&&n[Symbol[x(1532)]];if(!t)return n;var o=t[x(1754)](n),r,i=[],a;try{for(;(e===void 0||e-- >0)&&!(r=o[x(1778)]())[x(1637)];)i.push(r.value)}catch(u){a={error:u}}finally{try{r&&!r[x(1637)]&&(t=o[x(494)])&&t[x(1754)](o)}finally{if(a)throw a[x(859)]}}return i}function gt(n,e,x){const t=c;if(x||arguments.length===2)for(var o=0,r=e[t(1849)],i;o<r;o++)(i||!(o in e))&&(i||(i=Array[t(985)][t(1250)][t(1754)](e,0,o)),i[o]=e[o]);return n[t(455)](i||Array[t(985)].slice[t(1754)](e))}function Z0(n){return this instanceof Z0?(this.v=n,this):new Z0(n)}function Qc(n,e,x){const t=c;if(!Symbol[t(605)])throw new TypeError(t(1553));var o=x[t(368)](n,e||[]),r,i=[];return r=Object[t(489)]((typeof AsyncIterator===t(842)?AsyncIterator:Object)[t(985)]),u(t(1778)),u(t(407)),u(t(494),a),r[Symbol[t(605)]]=function(){return this},r;function a(h){return function(y){const v=I;return Promise[v(923)](y)[v(1191)](h,g)}}function u(h,y){o[h]&&(r[h]=function(v){return new Promise(function(w,M){i[I(268)]([h,v,w,M])>1||s(h,v)})},y&&(r[h]=y(r[h])))}function s(h,y){try{f(o[h](y))}catch(v){b(i[0][3],v)}}function f(h){const y=t;h[y(160)]instanceof Z0?Promise[y(923)](h[y(160)].v)[y(1191)](l,g):b(i[0][2],h)}function l(h){s("next",h)}function g(h){s(t(407),h)}function b(h,y){const v=t;h(y),i[v(591)](),i[v(1849)]&&s(i[0][0],i[0][1])}}function $c(n){const e=c;if(!Symbol.asyncIterator)throw new TypeError(e(1553));var x=n[Symbol.asyncIterator],t;return x?x.call(n):(n=typeof Q0===e(842)?Q0(n):n[Symbol[e(1532)]](),t={},o(e(1778)),o(e(407)),o(e(494)),t[Symbol[e(605)]]=function(){return this},t);function o(i){t[i]=n[i]&&function(a){return new Promise(function(u,s){const f=I;a=n[i](a),r(u,s,a[f(1637)],a[f(160)])})}}function r(i,a,u,s){Promise[e(923)](s).then(function(l){i({value:l,done:u})},a)}}typeof SuppressedError===c(842)&&SuppressedError;function Se(n){return typeof n===c(842)}function Nx(n){const e=c;var x=function(o){const r=I;Error.call(o),o[r(1595)]=new Error()[r(1595)]},t=n(x);return t.prototype=Object[e(489)](Error.prototype),t.prototype[e(582)]=t,t}var Wt=Nx(function(n){return function(x){const t=I;n(this),this[t(1294)]=x?x[t(1849)]+t(758)+x.map(function(o,r){const i=t;return r+1+") "+o[i(1262)]()}).join(t(1385)):"",this.name="UnsubscriptionError",this.errors=x}});function yt(n,e){const x=c;if(n){var t=n[x(1733)](e);0<=t&&n[x(1020)](t,1)}}var Yn=(function(){const n=c;function e(x){const t=I;this[t(1597)]=x,this[t(1304)]=!1,this._parentage=null,this[t(1199)]=null}return e[n(985)][n(347)]=function(){const x=n;var t,o,r,i,a;if(!this[x(1304)]){this[x(1304)]=!0;var u=this[x(1677)];if(u)if(this[x(1677)]=null,Array[x(171)](u))try{for(var s=Q0(u),f=s[x(1778)]();!f[x(1637)];f=s[x(1778)]()){var l=f.value;l.remove(this)}}catch(w){t={error:w}}finally{try{f&&!f[x(1637)]&&(o=s[x(494)])&&o[x(1754)](s)}finally{if(t)throw t[x(859)]}}else u[x(229)](this);var g=this[x(1597)];if(Se(g))try{g()}catch(w){a=w instanceof Wt?w[x(892)]:[w]}var b=this[x(1199)];if(b){this[x(1199)]=null;try{for(var h=Q0(b),y=h[x(1778)]();!y[x(1637)];y=h[x(1778)]()){var v=y[x(160)];try{fo(v)}catch(w){a=a??[],w instanceof Wt?a=gt(gt([],bt(a)),bt(w.errors)):a[x(268)](w)}}}catch(w){r={error:w}}finally{try{y&&!y[x(1637)]&&(i=h[x(494)])&&i[x(1754)](h)}finally{if(r)throw r.error}}}if(a)throw new Wt(a)}},e[n(985)][n(654)]=function(x){const t=n;var o;if(x&&x!==this)if(this.closed)fo(x);else{if(x instanceof e){if(x.closed||x[t(1485)](this))return;x[t(814)](this)}(this[t(1199)]=(o=this[t(1199)])!==null&&o!==void 0?o:[]).push(x)}},e[n(985)][n(1485)]=function(x){const t=n;var o=this[t(1677)];return o===x||Array[t(171)](o)&&o[t(617)](x)},e.prototype[n(814)]=function(x){const t=n;var o=this[t(1677)];this._parentage=Array[t(171)](o)?(o[t(268)](x),o):o?[o,x]:x},e.prototype[n(1759)]=function(x){const t=n;var o=this[t(1677)];o===x?this[t(1677)]=null:Array[t(171)](o)&&yt(o,x)},e[n(985)][n(229)]=function(x){const t=n;var o=this[t(1199)];o&&yt(o,x),x instanceof e&&x[t(1759)](this)},e.EMPTY=(function(){const x=n;var t=new e;return t[x(1304)]=!0,t})(),e})(),Fr=Yn.EMPTY;function Qr(n){const e=c;return n instanceof Yn||n&&e(1304)in n&&Se(n[e(229)])&&Se(n[e(654)])&&Se(n[e(347)])}function fo(n){const e=c;Se(n)?n():n[e(347)]()}var es={Promise:void 0},ns={setTimeout:function(n,e){const x=c;for(var t=[],o=2;o<arguments[x(1849)];o++)t[o-2]=arguments[o];return setTimeout.apply(void 0,gt([n,e],bt(t)))},clearTimeout:function(n){return clearTimeout(n)},delegate:void 0};function $r(n){ns[c(235)](function(){throw n})}function ho(){}function rt(n){n()}var Sx=(function(n){const e=c;B0(x,n);function x(t){const o=I;var r=n[o(1754)](this)||this;return r[o(1487)]=!1,t?(r.destination=t,Qr(t)&&t[o(654)](r)):r[o(751)]=os,r}return x[e(489)]=function(t,o,r){return new ax(t,o,r)},x[e(985)][e(1778)]=function(t){const o=e;this.isStopped||this[o(779)](t)},x.prototype[e(859)]=function(t){const o=e;this.isStopped||(this[o(1487)]=!0,this[o(1468)](t))},x[e(985)][e(303)]=function(){const t=e;this[t(1487)]||(this[t(1487)]=!0,this[t(460)]())},x[e(985)][e(347)]=function(){const t=e;!this[t(1304)]&&(this.isStopped=!0,n[t(985)].unsubscribe[t(1754)](this),this[t(751)]=null)},x.prototype._next=function(t){const o=e;this[o(751)][o(1778)](t)},x[e(985)][e(1468)]=function(t){const o=e;try{this[o(751)].error(t)}finally{this[o(347)]()}},x[e(985)][e(460)]=function(){const t=e;try{this[t(751)][t(303)]()}finally{this[t(347)]()}},x})(Yn),ts=(function(){const n=c;function e(x){const t=I;this[t(916)]=x}return e.prototype[n(1778)]=function(x){var o=this[n(916)];if(o.next)try{o.next(x)}catch(r){Wn(r)}},e.prototype.error=function(x){const t=n;var o=this.partialObserver;if(o[t(859)])try{o[t(859)](x)}catch(r){Wn(r)}else Wn(x)},e[n(985)].complete=function(){var x=this.partialObserver;if(x.complete)try{x.complete()}catch(t){Wn(t)}},e})(),ax=(function(n){B0(e,n);function e(x,t,o){var i=n[I(1754)](this)||this,a;return Se(x)||!x?a={next:x??void 0,error:t??void 0,complete:o??void 0}:a=x,i.destination=new ts(a),i}return e})(Sx);function Wn(n){$r(n)}function xs(n){throw n}var os={closed:!0,next:ho,error:xs,complete:ho},Px=(function(){const n=c;return typeof Symbol===n(842)&&Symbol[n(1483)]||"@@observable"})();function ei(n){return n}function rs(n){return n[c(1849)]===0?ei:n.length===1?n[0]:function(t){return n.reduce(function(o,r){return r(o)},t)}}var We=(function(){const n=c;function e(x){x&&(this._subscribe=x)}return e[n(985)].lift=function(x){var t=new e;return t.source=this,t.operator=x,t},e[n(985)][n(940)]=function(x,t,o){var r=this,i=as(x)?x:new ax(x,t,o);return rt(function(){const a=I;var u=r,s=u.operator,f=u[a(344)];i[a(654)](s?s[a(1754)](i,f):f?r[a(1551)](i):r[a(723)](i))}),i},e[n(985)]._trySubscribe=function(x){const t=n;try{return this._subscribe(x)}catch(o){x[t(859)](o)}},e[n(985)].forEach=function(x,t){var o=this;return t=bo(t),new t(function(r,i){const a=I;var u=new ax({next:function(s){const f=I;try{x(s)}catch(l){i(l),u[f(347)]()}},error:i,complete:r});o[a(940)](u)})},e.prototype._subscribe=function(x){const t=n;var o;return(o=this[t(344)])===null||o===void 0?void 0:o[t(940)](x)},e.prototype[Px]=function(){return this},e[n(985)][n(748)]=function(){const x=n;for(var t=[],o=0;o<arguments[x(1849)];o++)t[o]=arguments[o];return rs(t)(this)},e[n(985)][n(227)]=function(x){var t=this;return x=bo(x),new x(function(o,r){var i;t.subscribe(function(a){return i=a},function(a){return r(a)},function(){return o(i)})})},e[n(489)]=function(x){return new e(x)},e})();function bo(n){const e=c;var x;return(x=n??es[e(1317)])!==null&&x!==void 0?x:Promise}function is(n){const e=c;return n&&Se(n[e(1778)])&&Se(n[e(859)])&&Se(n[e(303)])}function as(n){return n&&n instanceof Sx||is(n)&&Qr(n)}function cs(n){return Se(n?.[c(570)])}function T0(n){return function(e){const x=I;if(cs(e))return e.lift(function(t){const o=I;try{return n(t,this)}catch(r){this[o(859)](r)}});throw new TypeError(x(788))}}function j0(n,e,x,t,o){return new ss(n,e,x,t,o)}var ss=(function(n){const e=c;B0(x,n);function x(t,o,r,i,a,u){const s=I;var f=n[s(1754)](this,t)||this;return f[s(708)]=a,f[s(1684)]=u,f[s(779)]=o?function(l){const g=s;try{o(l)}catch(b){t[g(859)](b)}}:n[s(985)]._next,f[s(1468)]=i?function(l){const g=s;try{i(l)}catch(b){t[g(859)](b)}finally{this[g(347)]()}}:n[s(985)][s(1468)],f[s(460)]=r?function(){const l=s;try{r()}catch(g){t[l(859)](g)}finally{this[l(347)]()}}:n.prototype[s(460)],f}return x[e(985)][e(347)]=function(){const t=e;var o;if(!this[t(1684)]||this[t(1684)]()){var r=this[t(1304)];n[t(985)][t(347)].call(this),!r&&((o=this[t(708)])===null||o===void 0||o[t(1754)](this))}},x})(Sx),ls=Nx(function(n){return function(){const x=I;n(this),this[x(1434)]=x(749),this[x(1294)]=x(1571)}}),ni=(function(n){const e=c;B0(x,n);function x(){const t=I;var o=n[t(1754)](this)||this;return o[t(1304)]=!1,o[t(1168)]=null,o[t(1193)]=[],o[t(1487)]=!1,o[t(1530)]=!1,o.thrownError=null,o}return x[e(985)][e(570)]=function(t){var o=new go(this,this);return o.operator=t,o},x.prototype[e(1056)]=function(){if(this[e(1304)])throw new ls},x.prototype[e(1778)]=function(t){var o=this;rt(function(){const r=I;var i,a;if(o._throwIfClosed(),!o[r(1487)]){!o[r(1168)]&&(o.currentObservers=Array[r(1763)](o[r(1193)]));try{for(var u=Q0(o[r(1168)]),s=u.next();!s[r(1637)];s=u[r(1778)]()){var f=s[r(160)];f[r(1778)](t)}}catch(l){i={error:l}}finally{try{s&&!s[r(1637)]&&(a=u[r(494)])&&a[r(1754)](u)}finally{if(i)throw i.error}}}})},x.prototype[e(859)]=function(t){var o=this;rt(function(){const r=I;if(o[r(1056)](),!o[r(1487)]){o[r(1530)]=o.isStopped=!0,o[r(1635)]=t;for(var i=o[r(1193)];i[r(1849)];)i[r(591)]()[r(859)](t)}})},x[e(985)][e(303)]=function(){var t=this;rt(function(){const o=I;if(t[o(1056)](),!t[o(1487)]){t[o(1487)]=!0;for(var r=t[o(1193)];r[o(1849)];)r[o(591)]()[o(303)]()}})},x[e(985)][e(347)]=function(){const t=e;this[t(1487)]=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(x.prototype,"observed",{get:function(){const t=e;var o;return((o=this[t(1193)])===null||o===void 0?void 0:o[t(1849)])>0},enumerable:!1,configurable:!0}),x.prototype[e(723)]=function(t){const o=e;return this[o(1056)](),n[o(985)][o(723)].call(this,t)},x[e(985)]._subscribe=function(t){const o=e;return this[o(1056)](),this[o(1390)](t),this[o(1585)](t)},x[e(985)][e(1585)]=function(t){const o=e;var r=this,i=this,a=i[o(1530)],u=i[o(1487)],s=i.observers;return a||u?Fr:(this[o(1168)]=null,s[o(268)](t),new Yn(function(){r.currentObservers=null,yt(s,t)}))},x[e(985)]._checkFinalizedStatuses=function(t){const o=e;var r=this,i=r[o(1530)],a=r[o(1635)],u=r[o(1487)];i?t[o(859)](a):u&&t[o(303)]()},x[e(985)][e(1768)]=function(){const t=e;var o=new We;return o[t(344)]=this,o},x[e(489)]=function(t,o){return new go(t,o)},x})(We),go=(function(n){const e=c;B0(x,n);function x(t,o){var i=n[I(1754)](this)||this;return i.destination=t,i.source=o,i}return x[e(985)][e(1778)]=function(t){const o=e;var r,i;(i=(r=this[o(751)])===null||r===void 0?void 0:r.next)===null||i===void 0||i[o(1754)](r,t)},x[e(985)][e(859)]=function(t){const o=e;var r,i;(i=(r=this[o(751)])===null||r===void 0?void 0:r[o(859)])===null||i===void 0||i[o(1754)](r,t)},x[e(985)][e(303)]=function(){const t=e;var o,r;(r=(o=this[t(751)])===null||o===void 0?void 0:o[t(303)])===null||r===void 0||r[t(1754)](o)},x[e(985)][e(1551)]=function(t){const o=e;var r,i;return(i=(r=this.source)===null||r===void 0?void 0:r[o(940)](t))!==null&&i!==void 0?i:Fr},x})(ni),ds={now:function(){return Date[c(1416)]()}},us=(function(n){const e=c;B0(x,n);function x(t,o){return n[I(1754)](this)||this}return x.prototype[e(1312)]=function(t,o){return this},x})(Yn),yo={setInterval:function(n,e){const x=c;for(var t=[],o=2;o<arguments.length;o++)t[o-2]=arguments[o];return setInterval[x(368)](void 0,gt([n,e],bt(t)))},clearInterval:function(n){return clearInterval(n)},delegate:void 0},fs=(function(n){const e=c;B0(x,n);function x(t,o){const r=I;var i=n[r(1754)](this,t,o)||this;return i.scheduler=t,i[r(551)]=o,i[r(1589)]=!1,i}return x.prototype[e(1312)]=function(t,o){const r=e;var i;if(o===void 0&&(o=0),this.closed)return this;this.state=t;var a=this.id,u=this[r(546)];return a!=null&&(this.id=this.recycleAsyncId(u,a,o)),this.pending=!0,this[r(1852)]=o,this.id=(i=this.id)!==null&&i!==void 0?i:this.requestAsyncId(u,this.id,o),this},x[e(985)][e(707)]=function(t,o,r){const i=e;return r===void 0&&(r=0),yo[i(740)](t.flush.bind(t,this),r)},x[e(985)][e(995)]=function(t,o,r){const i=e;return r===void 0&&(r=0),r!=null&&this[i(1852)]===r&&this[i(1589)]===!1?o:(o!=null&&yo.clearInterval(o),void 0)},x[e(985)].execute=function(t,o){const r=e;if(this[r(1304)])return new Error("executing a cancelled action");this.pending=!1;var i=this[r(397)](t,o);if(i)return i;this.pending===!1&&this.id!=null&&(this.id=this[r(995)](this[r(546)],this.id,null))},x[e(985)][e(397)]=function(t,o){const r=e;var i=!1,a;try{this.work(t)}catch(u){i=!0,a=u||new Error(r(491))}if(i)return this[r(347)](),a},x.prototype[e(347)]=function(){const t=e;if(!this[t(1304)]){var o=this,r=o.id,i=o[t(546)],a=i[t(149)];this[t(551)]=this.state=this[t(546)]=null,this.pending=!1,yt(a,this),r!=null&&(this.id=this[t(995)](i,r,null)),this.delay=null,n[t(985)][t(347)].call(this)}},x})(us),mo=(function(){const n=c;function e(x,t){const o=I;t===void 0&&(t=e[o(1416)]),this[o(400)]=x,this[o(1416)]=t}return e.prototype.schedule=function(x,t,o){const r=I;return t===void 0&&(t=0),new this[r(400)](this,x)[r(1312)](o,t)},e[n(1416)]=ds[n(1416)],e})(),hs=(function(n){B0(e,n);function e(x,t){const o=I;t===void 0&&(t=mo[o(1416)]);var r=n[o(1754)](this,x,t)||this;return r[o(149)]=[],r[o(899)]=!1,r}return e.prototype.flush=function(x){const t=I;var o=this.actions;if(this[t(899)]){o.push(x);return}var r;this._active=!0;do if(r=x[t(445)](x[t(692)],x[t(1852)]))break;while(x=o[t(591)]());if(this[t(899)]=!1,r){for(;x=o[t(591)]();)x[t(347)]();throw r}},e})(mo),bs=new hs(fs);function gs(n){return n&&Se(n[c(1312)])}function ys(n){return n[n[c(1849)]-1]}function ms(n){const e=c;return gs(ys(n))?n[e(1076)]():void 0}var ti=function(n){const e=c;return n&&typeof n.length===e(528)&&typeof n!="function"};function xi(n){return Se(n?.[c(1191)])}function oi(n){return Se(n[Px])}function ri(n){return Symbol[c(605)]&&Se(n?.[Symbol.asyncIterator])}function ii(n){const e=c;return new TypeError("You provided "+(n!==null&&typeof n===e(325)?e(146):"'"+n+"'")+e(1833))}function vs(){const n=c;return typeof Symbol!==n(842)||!Symbol[n(1532)]?n(276):Symbol[n(1532)]}var ai=vs();function ci(n){return Se(n?.[ai])}function si(n){return Qc(this,arguments,function(){var x,t,o,r;return Jr(this,function(i){const a=I;switch(i[a(453)]){case 0:x=n[a(437)](),i[a(453)]=1;case 1:i[a(1057)][a(268)]([1,,9,10]),i[a(453)]=2;case 2:return[4,Z0(x[a(1066)]())];case 3:return t=i.sent(),o=t[a(160)],r=t[a(1637)],r?[4,Z0(void 0)]:[3,5];case 4:return[2,i[a(872)]()];case 5:return[4,Z0(o)];case 6:return[4,i[a(872)]()];case 7:return i.sent(),[3,2];case 8:return[3,10];case 9:return x.releaseLock(),[7];case 10:return[2]}})})}function li(n){return Se(n?.[c(437)])}function G0(n){if(n instanceof We)return n;if(n!=null){if(oi(n))return ws(n);if(ti(n))return ps(n);if(xi(n))return Cs(n);if(ri(n))return di(n);if(ci(n))return zs(n);if(li(n))return Ms(n)}throw ii(n)}function ws(n){return new We(function(e){const x=I;var t=n[Px]();if(Se(t[x(940)]))return t[x(940)](e);throw new TypeError(x(1053))})}function ps(n){return new We(function(e){for(var x=0;x<n.length&&!e.closed;x++)e.next(n[x]);e.complete()})}function Cs(n){return new We(function(e){n.then(function(x){const t=I;!e[t(1304)]&&(e[t(1778)](x),e[t(303)]())},function(x){return e.error(x)}).then(null,$r)})}function zs(n){return new We(function(e){const x=I;var t,o;try{for(var r=Q0(n),i=r[x(1778)]();!i.done;i=r.next()){var a=i.value;if(e.next(a),e[x(1304)])return}}catch(u){t={error:u}}finally{try{i&&!i[x(1637)]&&(o=r[x(494)])&&o[x(1754)](r)}finally{if(t)throw t[x(859)]}}e[x(303)]()})}function di(n){return new We(function(e){const x=I;Bs(n,e)[x(387)](function(t){return e.error(t)})})}function Ms(n){return di(si(n))}function Bs(n,e){var x,t,o,r;return Fc(this,void 0,void 0,function(){var i,a;return Jr(this,function(u){const s=I;switch(u[s(453)]){case 0:u[s(1057)][s(268)]([0,5,6,11]),x=$c(n),u[s(453)]=1;case 1:return[4,x[s(1778)]()];case 2:if(t=u[s(872)](),!!t[s(1637)])return[3,4];if(i=t[s(160)],e[s(1778)](i),e.closed)return[2];u.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=u[s(872)](),o={error:a},[3,11];case 6:return u[s(1057)].push([6,,9,10]),t&&!t.done&&(r=x[s(494)])?[4,r[s(1754)](x)]:[3,8];case 7:u.sent(),u.label=8;case 8:return[3,10];case 9:if(o)throw o[s(859)];return[7];case 10:return[7];case 11:return e.complete(),[2]}})})}function z0(n,e,x,t,o){const r=c;t===void 0&&(t=0),o===void 0&&(o=!1);var i=e[r(1312)](function(){const a=r;x(),o?n[a(654)](this[a(1312)](null,t)):this[a(347)]()},t);if(n[r(654)](i),!o)return i}function ui(n,e){return e===void 0&&(e=0),T0(function(x,t){x[I(940)](j0(t,function(r){return z0(t,n,function(){return t[I(1778)](r)},e)},function(){return z0(t,n,function(){return t[I(303)]()},e)},function(r){return z0(t,n,function(){return t.error(r)},e)}))})}function fi(n,e){return e===void 0&&(e=0),T0(function(x,t){const o=I;t[o(654)](n[o(1312)](function(){return x[o(940)](t)},e))})}function Ds(n,e){return G0(n).pipe(fi(e),ui(e))}function Ls(n,e){const x=c;return G0(n)[x(748)](fi(e),ui(e))}function Ns(n,e){return new We(function(x){const t=I;var o=0;return e[t(1312)](function(){const r=t;o===n[r(1849)]?x[r(303)]():(x[r(1778)](n[o++]),!x[r(1304)]&&this[r(1312)]())})})}function Ss(n,e){return new We(function(x){var t;return z0(x,e,function(){t=n[ai](),z0(x,e,function(){const o=I;var r,i,a;try{r=t[o(1778)](),i=r.value,a=r.done}catch(u){x[o(859)](u);return}a?x[o(303)]():x.next(i)},0,!0)}),function(){return Se(t?.[I(494)])&&t.return()}})}function hi(n,e){if(!n)throw new Error("Iterable cannot be null");return new We(function(x){z0(x,e,function(){const t=I;var o=n[Symbol[t(605)]]();z0(x,e,function(){const r=t;o[r(1778)]().then(function(i){const a=r;i.done?x[a(303)]():x[a(1778)](i.value)})},0,!0)})})}function Ps(n,e){return hi(si(n),e)}function Es(n,e){if(n!=null){if(oi(n))return Ds(n,e);if(ti(n))return Ns(n,e);if(xi(n))return Ls(n,e);if(ri(n))return hi(n,e);if(ci(n))return Ss(n,e);if(li(n))return Ps(n,e)}throw ii(n)}function it(n,e){return e?Es(n,e):G0(n)}function $e(){const n=c;for(var e=[],x=0;x<arguments[n(1849)];x++)e[x]=arguments[x];var t=ms(e);return it(e,t)}function Oe(n,e){var x=Se(n)?n:function(){return n},t=function(o){return o[I(859)](x())};return new We(t)}function Is(n){return n instanceof Date&&!isNaN(n)}var As=Nx(function(n){return function(x){const t=I;x===void 0&&(x=null),n(this),this.message=t(1097),this[t(1434)]=t(1820),this.info=x}});function js(n,e){const x=c;var t=Is(n)?{first:n}:{each:n},o=t[x(1311)],r=t[x(1464)],i=t[x(372)],a=i===void 0?Ys:i,u=t.scheduler,s=u===void 0?bs:u,f=t[x(1002)],l=f===void 0?null:f;if(o==null&&r==null)throw new TypeError(x(722));return T0(function(g,b){const h=x;var y,v,w=null,M=0,m=function(C){v=z0(b,s,function(){const p=I;try{y.unsubscribe(),G0(a({meta:l,lastValue:w,seen:M}))[p(940)](b)}catch(E){b[p(859)](E)}},C)};y=g[h(940)](j0(b,function(C){const p=h;v?.[p(347)](),M++,b[p(1778)](w=C),r>0&&m(r)},void 0,void 0,function(){const C=h;!v?.closed&&v?.[C(347)](),w=null})),!M&&m(o!=null?typeof o===h(528)?o:+o-s[h(1416)]():r)})}function Ys(n){throw new As(n)}function at(n,e){return T0(function(x,t){const o=I;var r=0;x[o(940)](j0(t,function(i){const a=o;t[a(1778)](n[a(1754)](e,i,r++))}))})}function ks(n,e,x,t,o,r,i,a){const u=c;var s=[],f=0,l=0,g=!1,b=function(){const v=I;g&&!s[v(1849)]&&!f&&e[v(303)]()},h=function(v){return f<t?y(v):s.push(v)},y=function(v){const w=I;f++;var M=!1;G0(x(v,l++))[w(940)](j0(e,function(m){e[w(1778)](m)},function(){M=!0},void 0,function(){const m=w;if(M)try{f--;for(var C=function(){var p=s.shift();i||y(p)};s[m(1849)]&&f<t;)C();b()}catch(p){e[m(859)](p)}}))};return n[u(940)](j0(e,h,function(){g=!0,b()})),function(){}}function cx(n,e,x){const t=c;return x===void 0&&(x=1/0),Se(e)?cx(function(o,r){return at(function(i,a){return e(o,i,r,a)})(G0(n(o,r)))},x):(typeof e===t(528)&&(x=e),T0(function(o,r){return ks(o,r,n,x)}))}function ct(n){return T0(function(e,x){const t=I;var o=null,r=!1,i;o=e.subscribe(j0(x,void 0,void 0,function(a){const u=I;i=G0(n(a,ct(n)(e))),o?(o[u(347)](),o=null,i[u(940)](x)):r=!0})),r&&(o[t(347)](),o=null,i[t(940)](x))})}function Os(n,e,x){var t=Se(n)||e||x?{next:n,error:e,complete:x}:n;return t?T0(function(o,r){const i=I;var a;(a=t[i(940)])===null||a===void 0||a[i(1754)](t);var u=!0;o[i(940)](j0(r,function(s){const f=i;var l;(l=t[f(1778)])===null||l===void 0||l.call(t,s),r.next(s)},function(){const s=i;var f;u=!1,(f=t[s(303)])===null||f===void 0||f[s(1754)](t),r[s(303)]()},function(s){const f=i;var l;u=!1,(l=t.error)===null||l===void 0||l[f(1754)](t,s),r.error(s)},function(){const s=i;var f,l;u&&((f=t[s(347)])===null||f===void 0||f[s(1754)](t)),(l=t[s(1090)])===null||l===void 0||l[s(1754)](t)}))}):ei}function sx(n){const e=c;return encodeURIComponent((n||"")[e(578)]()||e(1702))}function Us(n){const e=c;return n[e(1653)]===e(1186)?n.bindNodeId+e(226)+sx(n[e(316)]??""):n[e(583)]+"::"+n[e(1653)]}function vo(n,e){return n+":"+e}class W0{static[c(1514)];[c(154)]=new Map;[c(1655)]=new Map;[c(595)]=new Map;[c(1743)]=new Map;[c(517)];constructor(){}static[c(1752)](){const e=c;return!W0.instance&&(W0[e(1514)]=new W0),W0[e(1514)]}registerEventBlock(e){const x=c;this[x(595)][x(1527)](e.id,e)}[c(1738)](e){const x=c;this.eventBlocks[x(1129)](e)}[c(1735)](e){return this[c(595)].get(e)}[c(1617)](e){const x=c;this[x(517)]=e}[c(367)](e){const x=c;if(!e)return;const t=this.defaultRuntimeHandlers;this[x(517)]={dataRequest:{...t?.[x(1102)],...e[x(1102)]},external:{...t?.[x(1186)],...e[x(1186)]}}}mergeRuntimeHandlers(e){const x=c,t=this[x(517)];if(!(!t&&!e))return{dataRequest:{...t?.[x(1102)],...e?.[x(1102)]},external:{...t?.[x(1186)],...e?.[x(1186)]}}}[c(1239)](e){const x=c,t=this.subscriptions.get(e.id);t&&(t.unsubscribe(),this[x(1655)].delete(e.id)),this[x(154)][x(1129)](e.id)}[c(141)](e){const x=c,t=Us(e),o=this.nodeEventBindings[x(1386)](t);o&&o.id!==e.id&&this[x(1239)](o),this[x(1743)][x(1527)](t,e),!this.eventSubjects[x(632)](e.id)&&this.createEventFlowPipeline(e)}[c(857)](e,x,t){const o=c;if(x===o(1186)){const u=e+o(226)+sx(t??""),s=this[o(1743)][o(1386)](u);s&&(this[o(1239)](s),this[o(1743)][o(1129)](u));return}const r=e+"::"+x,i=vo(e,x),a=this.nodeEventBindings.get(r)??this[o(1743)][o(1386)](i);a&&(this[o(1239)](a),this[o(1743)][o(1129)](r),this[o(1743)][o(1129)](i))}[c(1724)](e){const x=c,t=[];this[x(1743)][x(1726)]((o,r)=>{o[x(583)]===e&&t.push({key:r,root:o})}),t[x(1726)](({key:o,root:r})=>{const i=x;this[i(1239)](r),this[i(1743)][i(1129)](o)})}[c(1086)](e){const x=c,t=[];return this[x(1743)].forEach(o=>{const r=x;o[r(583)]===e&&t[r(268)](o)}),t}[c(323)](e,x,t){const o=c,r=e+"::"+x,i=this[o(1743)][o(1386)](r)??this.nodeEventBindings[o(1386)](vo(e,x));if(!i||!i[o(428)])return $e({success:!0,result:null,path:[],duration:0});if(!this[o(154)].get(i.id))return Oe(()=>new Error(o(951)+r));const u=Date.now(),s={...t,executionPath:t[o(931)]||[],runtimeHandlers:this.mergeRuntimeHandlers(t[o(1109)])};return this[o(1613)](i,s)[o(748)](at(f=>({success:!0,result:f,path:s[o(931)],duration:Date[o(1416)]()-u})),ct(f=>$e({success:!1,error:f[o(1294)]||o(1575),path:s[o(931)],duration:Date[o(1416)]()-u})))}[c(1025)](e,x,t){const o=c,r=e+"::ext::"+sx(x),i=this[o(1743)][o(1386)](r);if(!i||!i.enabled)return $e({success:!0,result:null,path:[],duration:0});if(!this.eventSubjects[o(1386)](i.id))return Oe(()=>new Error(o(951)+r));const u=Date[o(1416)](),s={...t,executionPath:t.executionPath||[],runtimeHandlers:this[o(526)](t[o(1109)])};return this[o(1613)](i,s).pipe(at(f=>({success:!0,result:f,path:s[o(931)],duration:Date[o(1416)]()-u})),ct(f=>$e({success:!1,error:f[o(1294)]||o(1575),path:s[o(931)],duration:Date[o(1416)]()-u})))}[c(1145)](e){const x=c,t=new ni;this[x(154)][x(1527)](e.id,t)}executeEventFlow(e,x){const t=c,{nodes:o,edges:r}=e[t(980)];if(o[t(1849)]===0)return $e(null);const i=o[t(805)](a=>a.inputs[t(1849)]===0);return i.length===0?Oe(()=>new Error(t(156))):this.executeFlowNodes(i,o,r,x,{})}[c(719)](e,x,t,o,r){const i=c;if(e[i(1849)]===0)return $e(r);const a=e[i(1197)](u=>this[i(753)](u,o,r)[i(748)](Os(s=>{const f=i;r[u.id]=s,o.executionPath[f(268)](u.id)})));return it(a).pipe(cx(u=>u,1),at(()=>{const u=i,s=new Set;return e[u(1726)](l=>{const g=u;l[g(1315)][g(1726)](b=>{const h=g,y=x.find(v=>v.id===b);y&&y[h(1372)].every(w=>r[w]!==void 0)&&s[h(654)](b)})}),x.filter(l=>s[u(632)](l.id))}),cx(u=>u[i(1849)]>0?this.executeFlowNodes(u,x,t,o,r):$e(r)),js(3e4),ct(u=>(console.error(i(1027),u),Oe(()=>u))))}[c(458)](e){const x=c;return this[x(595)][x(1386)](e[x(580)])??e[x(773)][x(1373)]}[c(896)](e,x,t){return e.replace(/\{\{\s*([^}]+?)\s*\}\}/g,(o,r)=>{const i=I,a=String(r)[i(578)]();if(a.startsWith("$")){const s=this.getValueFromPath(t,a[i(1250)](1));return s==null?"":String(s)}const u=x[a];return u==null?"":String(u)})}[c(1797)](e,x,t){const o=c,r=e[o(1731)];if(!r)return Oe(()=>new Error(o(1376)));if(r==="antdMessage"){const i=e[o(614)]??{},a=String(i.content??""),u=i.level??o(1518),s=i[o(794)],f=this[o(896)](a,t,x);if(!f[o(578)]())return Oe(()=>new Error(o(1840)));try{const l={type:u,content:f};if(s!=null&&s!==""){const g=Number(s);!Number[o(927)](g)&&(l[o(794)]=g)}return z.message.open(l),$e({ok:!0,builtinId:r,content:f,level:u})}catch(l){return Oe(()=>l)}}return Oe(()=>new Error("未知内置动作: "+String(r)))}[c(1767)](e,x,t){try{const o=e(x,t);return o instanceof Promise?it(o):$e(o)}catch(o){return Oe(()=>o)}}[c(753)](e,x,t){const o=c,r=this.resolveFlowEventBlock(e);if(!r)return Oe(()=>new Error(o(999)+e.eventBlockId));const i=this[o(736)](e,x,t),a=r[o(1822)]??o(509);if(a===o(1102)){const u=(r.dataRequestKey||"")[o(578)]();if(!u)return Oe(()=>new Error(o(699)));const s=x[o(1109)]?.dataRequest?.[u];return s?this.invokeRuntimeHandler(s,x,i):Oe(()=>new Error(o(248)+u))}if(a===o(1186)){const u=(r.externalHandlerKey||"").trim();if(!u)return Oe(()=>new Error("事件块未配置 externalHandlerKey"));const s=x[o(1109)]?.[o(1186)]?.[u];return s?this.invokeRuntimeHandler(s,x,i):Oe(()=>new Error(o(1598)+u))}if(a===o(536))return this[o(1797)](r,x,i);try{const u=new Function("node",o(1534),o(1268),r[o(233)]),s=u(x[o(1604)],x,i);return s instanceof Promise?it(s):$e(s)}catch(u){return Oe(()=>u)}}[c(736)](e,x,t){const o=c,r={$event:x[o(313)],$data:x[o(773)],$node:x[o(1604)]},{inputMapping:i}=e[o(773)];return i&&Object[o(1676)](i)[o(1726)](([a,u])=>{const s=o;if(u[s(1274)](s(1721))){const f=u[s(673)]("$prev.","");r[a]=t[f]}else if(u[s(1274)]("$")){const f=u[s(1250)](1);r[a]=this[s(1648)](x,f)}else r[a]=u}),r}[c(1648)](e,x){const t=c;return x.split(".")[t(1258)]((o,r)=>{if(o!==null&&typeof o=="object"&&r in o)return o[r]},e)}clearAll(){const e=c;this.subscriptions[e(1726)](x=>x.unsubscribe()),this[e(1655)][e(1627)](),this[e(154)][e(1627)](),this[e(1743)][e(1627)]()}}const R0=W0[c(1752)](),bi=({node:n,children:e,runtimeHandlers:x,flowContextData:t})=>{const o=c,{eventFlow:r}=Ge(),i=P[o(1142)](null),a=P[o(275)](()=>{const s=o;return r[s(405)].filter(f=>f[s(583)]===n.id&&f[s(428)])},[r.eventRoots,n.id]),u=P[o(275)](s=>f=>{const l=I,g=a()[l(805)](h=>h[l(1653)]===s);if(g.length===0)return;s!==l(893)&&s!==l(1563)&&f[l(550)](),f[l(1815)]();const b=t&&typeof t===l(325)?{...t}:{};g.forEach(h=>{const y=l;R0[y(323)](n.id,s,{triggerNode:n,originalEvent:f,data:b,runtimeHandlers:x}).subscribe({next:v=>{!v[y(647)]&&console.error("Event flow execution failed:",v.error)},error:v=>{const w=y;console[w(859)](w(217),v)}})})},[a,n,x,t]);return P.useEffect(()=>{const s=o;return a()[s(1726)](l=>{R0.bindNodeEvent(l)}),()=>{R0[s(1724)](n.id)}},[a,n.id]),P[o(1189)](()=>{const s=o,f=i[s(532)];if(!f)return;const l={click:u(s(1668)),mousedown:u(s(1606)),mouseup:u(s(1139)),dblclick:u("doubleClick"),mouseover:u("mouseOver"),mouseleave:u(s(1563)),mouseenter:u(s(848)),contextmenu:u("contextMenu")};return Object[s(1676)](l).forEach(([g,b])=>{f.addEventListener(g,b,!0)}),()=>{const g=s;Object[g(1676)](l)[g(1726)](([b,h])=>{f.removeEventListener(b,h,!0)})}},[u]),P.cloneElement(e,{ref:s=>{const f=o;i[f(532)]=s;const l=e[f(366)];typeof l===f(842)?l(s):l&&f(532)in l&&(l[f(532)]=s)}})},{Text:wo}=z[c(1809)],Ts=(n,e)=>{const x=c;if(!e||!n)return{value:void 0};if(Array[x(171)](n)){const t=n[x(279)](o=>o.paramsCode===e);if(t)return{value:t[x(160)],unit:t[x(512)]}}else if(typeof n===x(325)&&e in n)return{value:n[e],unit:n.unit};return{value:void 0}},Gs=(n,e)=>{if(n==null||n==="")return"";if(e===-1)return String(n);const x=Number(n);return isNaN(x)?String(n):x.toFixed(e??2)},Hs=(n,e,x,t)=>{const o=c;switch(n.type){case"IMAGE":const r=n,i=r.backgroundColor,a=r.fillColor;let u=r[o(1332)];return a&&u&&u[o(617)](o(1004))&&(n.name==="矩形"?u=o(1491)+encodeURIComponent(o(850)+a+o(665)):n[o(1434)]==="圆形"?u=o(1491)+encodeURIComponent(o(954)+a+o(1028)):n.name===o(1492)&&(u=o(1491)+encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" width="100" height="60"><rect width="100" height="60" fill="'+a+'" rx="20"/></svg>'))),d[o(1203)]("div",{className:"w-full h-full flex items-center justify-center overflow-hidden",style:{backgroundColor:i},children:u?d[o(1203)](o(1166),{src:u,alt:n[o(1434)],style:{width:o(1322),height:o(1322),objectFit:o(858)}}):d[o(1203)](o(315),{className:"w-full h-full flex items-center justify-center",children:d[o(1203)](o(1082),{className:o(885),children:o(1169)})})});case o(1236):const s=n,{label:f,value:l,valueSourceCode:g,unit:b,decimals:h,labelStyle:y,valueStyle:v,customStyle:w}=s[o(1477)]||{},{value:M,unit:m}=g?Ts(e,g):{value:void 0,unit:void 0},C=M!==void 0?M:l,p=Gs(C,h),E=b||m||"";return d[o(1324)](o(315),{className:"w-full h-full flex flex-col justify-center gap-1",style:{...w},children:[f&&d.jsx(wo,{style:{fontSize:14,fontWeight:o(581),color:o(336),textAlign:o(1407),...y},children:f}),p&&d[o(1324)](wo,{style:{fontSize:14,color:"#1890ff",textAlign:o(1407),...v},children:[p,E?" "+E:""]})]});case"LINE":const O=n,{thickness:U=2,color:Y="#d9d9d9",dashed:W=!1,lineType:Q=o(W?1190:1052),lineWeight:R=U,startX:X=0,startY:V=0,endX:L=100,endY:D=0}=O[o(1827)]||{},B=Z=>{const K=o,H=Math.max(R,1);switch(Z){case K(1052):return"";case K(1190):return H*8+","+H*4;case K(1362):return H*12+","+H*3+","+H*2+","+H*3;case"phantom":return H*12+","+H*3+","+H*2+","+H*3+","+H*2+","+H*3;case K(838):return H+","+H*3;case K(737):return H*8+","+H*3+","+H+","+H*3;default:return""}},j=B(Q),A=x?o(975):Y;return d.jsx("div",{className:o(1120),style:{overflow:o(1476)},children:d.jsxs(o(1442),{className:o(258),width:"100%",height:o(1322),style:{overflow:o(1476),pointerEvents:o(1473)},children:[d[o(1203)](o(845),{x1:X,y1:V,x2:L,y2:D,stroke:"transparent",strokeWidth:Math[o(1204)](R,10),strokeLinecap:"round",strokeLinejoin:o(983),style:{pointerEvents:"stroke",cursor:o(1612)}}),d.jsx(o(845),{x1:X,y1:V,x2:L,y2:D,stroke:A,strokeWidth:R,strokeDasharray:j,strokeLinecap:"round",strokeLinejoin:"round",style:{pointerEvents:o(1473)}})]})});case o(806):const S=n;return S[o(836)]?S.render({}):d[o(1203)](o(315),{className:o(1582),children:d[o(1203)]("span",{className:o(885),children:o(1314)})});default:return d.jsx("div",{className:"w-full h-full flex items-center justify-center bg-gray-100",children:d.jsx(o(1082),{className:o(885),children:o(1524)})})}},_s=({node:n,isSelected:e=!1,onClick:x,onMouseDown:t,data:o,onUpdateNode:r,scale:i=1,enableEventFlow:a=!1,eventFlowData:u})=>{const s=c,{normalStyle:f,controlInfo:l}=n,{isClickable:g,isDraggable:b,isResizable:h}=l,y=n[s(518)],v=Ge(N=>N[s(1634)]),w=P[s(1142)](x);P.useEffect(()=>{const N=s;w[N(532)]=x},[x]);const[M,m]=P.useState(null),C=P[s(1142)](null),p=P[s(1142)](null),E=P[s(1142)](null),O=P[s(1142)](null),U=P.useRef(null),[Y,W]=P[s(280)](null),[Q,R]=P[s(280)](null),X=P[s(1142)](null),V=P.useMemo(()=>{const N=s,T=n[N(518)][N(625)];if(T[N(1849)]===0)return;const J=Vr(T,o,v);return J||T[0]},[n.contentInfo.statusList,o,v]),L=V?.[s(743)],D=L?.[s(871)]===s(213),B=D?L[s(1827)]:null,j=f[s(796)]??1,A=(f[s(531)]||100)*j,S=(f[s(1348)]||100)*j,Z=P[s(275)](()=>{const N=s,T=U[N(532)]?.[N(1125)]('[data-canvas="true"]');if(!T)return i;const J=T[N(202)](),G=parseFloat(T[N(165)][N(531)]);return G?J[N(531)]/G:i},[i]),K=P.useCallback((N,T)=>{const J=s;N[J(1815)](),N[J(550)]();const G=B?.[J(1050)]||0,k=B?.[J(1202)]||0,te=B?.endX||0,de=B?.[J(1576)]||0,ye=f.x||0,le=f.y||0,be=Math[J(1204)]((B?.[J(261)]||B?.[J(1192)]||2)*2,4),we=Math[J(309)](G,te),pe=Math[J(309)](k,de),me=Math[J(1204)](G,te),Pe=Math[J(1204)](k,de),Ue=Math[J(1204)](me-we,be),Xe=Math[J(1204)](Pe-pe,be);C[J(532)]={mouseX:N[J(363)],mouseY:N[J(505)],startX:G,startY:k,endX:te,endY:de,nodeX:ye,nodeY:le};const Ie=Math[J(309)](G,te),Ae=Math[J(309)](k,de);E[J(532)]={nodeX:ye+Ie,nodeY:le+Ae,width:Ue,height:Xe,startX:G-Ie,startY:k-Ae,endX:te-Ie,endY:de-Ae},p[J(532)]=V||null,m(T)},[B,f.x,f.y,V]);P.useEffect(()=>{const N=s;if(!M||!D||!B||!r)return;const T=G=>{const k=I,te=C[k(532)];if(!te||!U[k(532)])return;const de=Z(),ye=(G[k(363)]-te[k(1660)])/de,le=(G[k(505)]-te[k(1807)])/de;let be=te[k(1050)],we=te.startY,pe=te[k(1406)],me=te.endY,Pe=te[k(1131)],Ue=te[k(324)];M===k(1460)?(be=te[k(1050)]+ye,we=te[k(1202)]+le,be<0&&(Pe=te.nodeX+be,pe=te[k(1406)]-be,be=0),we<0&&(Ue=te[k(324)]+we,me=te[k(1576)]-we,we=0)):(pe=te[k(1406)]+ye,me=te.endY+le,pe<0&&(Pe=te[k(1131)]+pe,be=te[k(1050)]-pe,pe=0),me<0&&(Ue=te[k(324)]+me,we=te[k(1202)]-me,me=0));const Xe=Math[k(1204)]((B[k(261)]||2)*2,4),Ie=Math[k(309)](be,pe),Ae=Math[k(309)](we,me),je=Math[k(1204)](be,pe),sn=Math.max(we,me),l0=Pe+Ie,H0=Ue+Ae,D0=be-Ie,d0=we-Ae,u0=pe-Ie,f0=me-Ae,h0=Math[k(1204)](je-Ie,Xe),Qe=Math.max(sn-Ae,Xe);E[k(532)]={nodeX:l0,nodeY:H0,width:h0,height:Qe,startX:D0,startY:d0,endX:u0,endY:f0};const Ye=U.current;Ye[k(165)][k(1407)]=l0+"px",Ye[k(165)][k(1692)]=H0+"px",Ye[k(165)][k(531)]=h0+"px",Ye[k(165)][k(1348)]=Qe+"px",Ye[k(942)]("svg line")[k(1726)](b0=>{const g0=k;b0[g0(846)]("x1",String(D0)),b0[g0(846)]("y1",String(d0)),b0[g0(846)]("x2",String(u0)),b0.setAttribute("y2",String(f0))});const L0=Ye[k(1218)](k(1059)),x0=Ye.querySelector(k(1671));L0&&(L0[k(165)].left=D0-6+"px",L0[k(165)][k(1692)]=d0-6+"px"),x0&&(x0[k(165)][k(1407)]=u0-6+"px",x0[k(165)][k(1692)]=f0-6+"px")},J=()=>{const G=I,k=E.current;if(!k||!r){m(null),C[G(532)]=null,E[G(532)]=null,p[G(532)]=null;return}const te=Ge[G(371)]().nodes[G(279)](pe=>pe.id===n.id),de=te?.contentInfo.statusList??n[G(518)][G(625)],ye=p[G(532)],le=ye?.id??de.find(pe=>pe[G(743)].type===G(213))?.id,be=de[G(1197)](pe=>{const me=G;if(pe[me(743)].type!=="LINE"||pe.id!==le)return pe;const Pe=pe.material;return{...pe,material:{...Pe,config:{...Pe.config,startX:k[me(1050)],startY:k[me(1202)],endX:k[me(1406)],endY:k[me(1576)]}}}}),we=te?.contentInfo??y;r(n.id,{normalStyle:{x:k[G(1131)],y:k[G(324)],width:k[G(531)],height:k.height},contentInfo:{...we,statusList:be}}),m(null),C[G(532)]=null,E[G(532)]=null,p[G(532)]=null};return window[N(423)]("mousemove",T),window[N(423)](N(561),J),()=>{const G=N;window[G(1558)](G(1220),T),window[G(1558)](G(561),J)}},[M,D,B,n.id,f,y,n[s(518)].statusList,r,Z]),P[s(1189)](()=>{const N=s;if(!Y||!r)return;const T=G=>{const k=I;if(!U[k(532)])return;const te=Z(),de=(G[k(363)]-Y[k(1050)])/te,ye=(G.clientY-Y[k(1202)])/te;let le=Y[k(1680)],be=Y[k(1561)],we=Y[k(1703)],pe=Y[k(541)];switch(Y[k(412)]){case"se":le=Math[k(1204)](20,Y.startWidth+de),be=Math[k(1204)](20,Y[k(1561)]+ye);break;case"sw":le=Math.max(20,Y[k(1680)]-de),be=Math[k(1204)](20,Y[k(1561)]+ye),we=Y[k(1703)]+(Y[k(1680)]-le);break;case"ne":le=Math[k(1204)](20,Y.startWidth+de),be=Math[k(1204)](20,Y.startHeight-ye),pe=Y[k(541)]+(Y[k(1561)]-be);break;case"nw":le=Math.max(20,Y[k(1680)]-de),be=Math[k(1204)](20,Y[k(1561)]-ye),we=Y[k(1703)]+(Y[k(1680)]-le),pe=Y[k(541)]+(Y[k(1561)]-be);break}O[k(532)]={x:we,y:pe,width:le,height:be};const me=U[k(532)];me[k(165)][k(1407)]=we+"px",me[k(165)][k(1692)]=pe+"px",me[k(165)][k(531)]=le+"px",me[k(165)][k(1348)]=be+"px"},J=()=>{const G=I,k=O[G(532)];k&&r(n.id,{normalStyle:{...f,x:k.x,y:k.y,width:k[G(531)],height:k.height}}),W(null),O[G(532)]=null};return window[N(423)](N(1220),T),window[N(423)](N(561),J),()=>{const G=N;window[G(1558)](G(1220),T),window.removeEventListener(G(561),J)}},[Y,r,n.id,f,Z]);const H=P[s(275)]((N,T)=>{const J=s;N[J(1815)](),N.preventDefault(),W({corner:T,startX:N[J(363)],startY:N[J(505)],startWidth:f[J(531)]||100,startHeight:f[J(1348)]||100,startNodeX:f.x||0,startNodeY:f.y||0})},[f[s(531)],f.height,f.x,f.y]),F=P[s(275)](N=>{const T=s;N[T(1815)](),N[T(550)]();const J=U[T(532)]?.getBoundingClientRect();J&&R({startX:N.clientX,startY:N[T(505)],startAngle:f.rotate||0,centerX:J[T(1407)]+J.width/2,centerY:J[T(1692)]+J.height/2})},[f.rotate]);P.useEffect(()=>{const N=s;if(!Q)return;const T=G=>{const k=I,te=G[k(363)]-Q[k(789)],de=G[k(505)]-Q[k(409)];let le=(Math.atan2(de,te)*(180/Math.PI)+90)%360;if(le<0&&(le+=360),X[k(532)]=le,U[k(532)]){const be=f[k(1115)]||"";U.current.style.transform=(k(1084)+le+k(506)+be)[k(578)]()}},J=()=>{const G=I,k=X[G(532)]??Q.startAngle;X[G(532)]=null,r&&r(n.id,{normalStyle:{...f,rotate:Math[G(983)](k)}}),R(null)};return window[N(423)](N(1220),T),window.addEventListener(N(561),J),()=>{const G=N;window[G(1558)](G(1220),T),window[G(1558)](G(561),J)}},[Q,r,n.id,f]);const ee=n[s(871)]===s(898),ne={position:"absolute",left:f.x||0,top:f.y||0,width:A,height:S,background:ee?s(759):f[s(690)]||"transparent",backgroundImage:ee?void 0:f[s(678)]?s(168)+f.backgroundImage+")":void 0,backgroundSize:s(1531),backgroundPosition:"center",padding:Array.isArray(f[s(991)])?f[s(991)][s(220)](s(1850))+"px":f[s(991)],margin:Array.isArray(f[s(623)])?f[s(623)].join(s(1850))+"px":f[s(623)],borderRadius:ee?void 0:f.borderRadius,border:e&&!D?s(1210):D||ee?s(1473):f.border||s(752),pointerEvents:s(1552),opacity:f[s(1467)]??1,transform:("rotate("+(X[s(532)]??(f[s(447)]||0))+s(506)+(f[s(1115)]||"")).trim(),transformOrigin:"center center",zIndex:e?1e3:f[s(957)]??1,cursor:s(b&&!M?1645:g?1612:943),boxSizing:s(1675),overflow:e||D||ee?"visible":s(197)},xe=B?{x:B.startX||0,y:B.startY||0}:{x:0,y:0},se=B?{x:B[s(1406)]||0,y:B[s(1576)]||0}:{x:0,y:0},ae=d[s(1324)](s(315),{ref:U,"data-node-id":n.id,style:ne,onClick:N=>{const T=s;console[T(1339)]("NodeRenderer onClick",n.id,T(164),g);const J=w[T(532)];g&&J&&!M&&!Y&&!Q&&(N[T(1815)](),J(N))},onMouseDown:N=>{b&&t&&!M&&t(N)},children:[e&&!D&&!ee&&d.jsxs(d[s(1123)],{children:[d[s(1203)](s(315),{className:s(553),style:{zIndex:9999,pointerEvents:s(1552),cursor:s(278),marginTop:s(1433),marginLeft:s(1433)},onMouseDown:N=>H(N,"nw"),title:s(1320)}),d[s(1203)](s(315),{className:"absolute top-0 right-0 w-3 h-3 bg-blue-500 border-2 border-white rounded-full",style:{zIndex:9999,pointerEvents:s(1552),cursor:s(1318),marginTop:s(1433),marginRight:s(1433)},onMouseDown:N=>H(N,"ne"),title:s(1320)}),d.jsx(s(315),{className:s(1333),style:{zIndex:9999,pointerEvents:"auto",cursor:s(870),marginBottom:s(1433),marginLeft:"-6px"},onMouseDown:N=>H(N,"sw"),title:s(1320)}),d.jsx(s(315),{className:"absolute bottom-0 right-0 w-3 h-3 bg-blue-500 border-2 border-white rounded-full",style:{zIndex:9999,pointerEvents:s(1552),cursor:s(190),marginBottom:s(1433),marginRight:s(1433)},onMouseDown:N=>H(N,"se"),title:s(1320)}),d[s(1203)]("div",{className:s(302),style:{zIndex:9999,pointerEvents:s(1552),cursor:s(364),marginTop:"-20px",transform:s(1046),boxShadow:s(321)},onMouseDown:N=>F(N),title:"拖拽旋转"}),d[s(1203)](s(315),{className:s(588),style:{zIndex:9998,pointerEvents:s(1473),marginTop:s(701),transform:s(1046)}}),d[s(1324)](s(315),{className:"absolute -top-6 left-0 bg-blue-500 text-white text-xs px-2 py-0.5 rounded whitespace-nowrap",children:[n[s(1434)]," ",V?"("+V[s(1434)]+")":""]})]}),e&&D&&B&&r&&d[s(1324)](d[s(1123)],{children:[d[s(1203)]("div",{"data-handle":s(1460),className:s(464),style:{left:xe.x-6,top:xe.y-6,boxShadow:s(321)},onMouseDown:N=>K(N,s(1460)),title:"拖拽调整起点"}),d[s(1203)](s(315),{"data-handle":s(901),className:s(464),style:{left:se.x-6,top:se.y-6,boxShadow:"0 0 4px rgba(0,0,0,0.3)"},onMouseDown:N=>K(N,"end"),title:s(746)}),d.jsx(s(315),{className:"absolute -top-6 left-0 bg-blue-500 text-white text-xs px-2 py-0.5 rounded whitespace-nowrap",children:n[s(1434)]})]}),d[s(1203)]("div",{className:s(1120),children:L?d.jsx(s(315),{className:"w-full h-full",children:Hs(L,o,e)}):ee?null:d[s(1203)](s(315),{className:s(395),children:s(1308)})}),n[s(871)]==="group"&&n[s(684)]&&d.jsx(s(315),{className:"absolute inset-0 pointer-events-none",children:n[s(684)][s(1197)](N=>d[s(1203)](s(315),{className:s(375),children:d[s(1203)](Ex,{node:N,isSelected:!1,data:o,onUpdateNode:r,scale:i,enableEventFlow:a,eventFlowData:u})},N.id))})]});return a?d.jsx(bi,{node:n,flowContextData:u,children:ae}):ae},Ex=P[c(811)](_s,(n,e)=>{const x=c,t=n[x(1802)],o=e[x(1802)],r=t.id===o.id&&t[x(603)].x===o[x(603)].x&&t[x(603)].y===o.normalStyle.y&&t[x(603)].width===o[x(603)][x(531)]&&t[x(603)][x(1348)]===o[x(603)][x(1348)],i=t[x(518)]===o[x(518)],a=JSON[x(631)](n[x(790)]??null)===JSON[x(631)](e.eventFlowData??null),u=n[x(1663)]===e[x(1663)]&&n.scale===e[x(796)]&&n[x(1288)]===e[x(1288)]&&a,s=b=>{const h=x,y=[];return b[h(518)]?.[h(625)]?.[h(1726)](v=>{const w=h;if(v[w(743)]?.[w(871)]==="LINE"){const M=v[w(743)].config;y[w(268)]({statusId:v.id,startX:M?.startX??0,startY:M?.[w(1202)]??0,endX:M?.[w(1406)]??100,endY:M?.[w(1576)]??0})}}),y},f=s(t),l=s(o);let g=!0;if(f.length!==l[x(1849)])g=!1;else for(let b=0;b<f[x(1849)];b++){const h=f[b],y=l[x(279)](v=>v[x(1774)]===h[x(1774)]);if(!y||h[x(1050)]!==y[x(1050)]||h[x(1202)]!==y[x(1202)]||h[x(1406)]!==y[x(1406)]||h[x(1576)]!==y[x(1576)]){g=!1;break}}return r&&i&&u&&g}),Vs=[c(975),c(520),c(1503),c(327),c(427),c(365),"#13c2c2",c(645),"#595959",c(336),c(1838),c(802),c(1783),c(1287),c(176),"#73d13d"],$0=({value:n=c(975),onChange:e,onChangeComplete:x})=>{const t=c,[o,r]=P[t(280)](!1),[i,a]=P[t(280)](n),u=P[t(1142)](null);P.useEffect(()=>{a(n)},[n]),P.useEffect(()=>{const f=t,l=g=>{const b=I;u[b(532)]&&!u[b(532)][b(1089)](g[b(1122)])&&(r(!1),x?.({toHexString:()=>i}))};return o&&document[f(423)](f(1803),l),()=>document[f(1558)](f(1803),l)},[o,x,i]);const s=f=>{a(f),e?.({toHexString:()=>f})};return d[t(1324)]("div",{ref:u,style:{position:t(361),display:t(352)},children:[d[t(1203)](t(315),{onClick:()=>r(!o),style:{width:28,height:28,backgroundColor:i,border:t(909),borderRadius:4,cursor:t(1612)}}),o&&d[t(1324)](t(315),{style:{position:t(638),top:32,left:0,zIndex:1e3,background:"#fff",padding:8,borderRadius:4,boxShadow:t(702),border:t(1796)},children:[d.jsx(t(315),{style:{display:t(590),gridTemplateColumns:t(504),gap:4},children:Vs[t(1197)](f=>d[t(1203)](t(315),{onClick:()=>{s(f),r(!1),x?.({toHexString:()=>f})},style:{width:20,height:20,backgroundColor:f,border:t(i===f?1210:909),borderRadius:2,cursor:t(1612)}},f))}),d[t(1203)](t(1728),{type:t(1452),value:i,onChange:f=>s(f[t(1122)][t(160)]),onBlur:()=>x?.({toHexString:()=>i}),style:{width:t(1322),marginTop:8,height:28,border:t(909),borderRadius:4}})]})]})},{TextArea:qs}=z[c(246)];function po(n){const e=c;if(!n||!(n instanceof HTMLElement))return!1;const x=n[e(1496)];return!!(x===e(958)||x===e(1031)||x==="SELECT"||x==="OPTION"||n[e(1657)]||n[e(1125)](e(225))||n[e(1125)](e(524))||n[e(1125)](e(1808)))}const gi=({defaultTestData:n})=>{const e=c,x=P.useRef(null),t=P[e(1142)](null),o=P.useRef(null),{nodes:r,selectedNodeId:i,selectedNodeIds:a,mode:u,lineDrawing:s,viewport:f,canvas:l,root:g,setViewport:b,setCanvasConfig:h,addNode:y,selectNode:v,updateNode:w,removeNode:M,undo:m,redo:C,setMode:p,startLineDrawing:E,endLineDrawing:O,cancelLineDrawing:U,addCanvas:Y,removeCanvas:W,switchCanvas:Q,updateCanvasName:R,setSelectedNodeIds:X}=Ge(),[V,L]=P.useState(!1),[,D]=P[e(280)]({}),B=P[e(1142)](u);P[e(1189)](()=>{const _=e;B[_(532)]=u},[u]);const j=P[e(1142)](!1),A=P.useRef({x:0,y:0}),S=P[e(1142)]({x:0,y:0,newX:0,newY:0}),Z=P.useRef(null),[K,H]=P[e(280)]({start:null,end:null,isDrawing:!1}),[F,ee]=P[e(280)]({start:null,end:null}),ne=a,xe=X;P[e(1142)](!1);const[se,ae]=P[e(280)](!1),[N,T]=P[e(280)](!1),[J,G]=P.useState(()=>JSON[e(631)](n??null,null,2)),k=P[e(1341)](()=>{const _=e;if(!N)return n;try{return JSON[_(998)](J)}catch{return n}},[J,n,N]),te=P[e(1341)](()=>{const _=e,q=k;if(q!==null&&typeof q===_(325))return q;if(q!==void 0)return{_payload:q}},[k]),de=P[e(1341)](()=>{const _=e,q=k;return q!==null&&typeof q===_(325)&&!Array[_(171)](q)?q:Array[_(171)](q)?{_telemetryRows:q}:q==null?{}:{_payload:q}},[k]),ye=P[e(275)](()=>{const _=e;let q=n;if(N)try{q=JSON[_(998)](J)}catch{q=n}G(JSON[_(631)](q??null,null,2)),ae(!0)},[J,n,N]),[le,be]=P[e(280)](!1),[we,pe]=P.useState(!1),me=P[e(275)]((_,q)=>{const ie=e;if(!t[ie(532)])return{x:0,y:0};const oe=t[ie(532)][ie(202)](),ce=_-oe[ie(1407)],$=q-oe[ie(1692)],re=oe[ie(531)]/l[ie(531)],he=oe.height/l[ie(1348)],ve=ce/re,ge=$/he;return{x:Math[ie(983)](ve),y:Math[ie(983)](ge)}},[l.width,l[e(1348)]]),Pe=P[e(275)]((_,q)=>me(_,q),[me]),Ue=P[e(275)]((_,q,ie=!0)=>{const oe=e;if(!s[oe(743)])return;const ce=s[oe(743)],$=ce.config||{},re=$[oe(261)]||$.thickness||2,he=Math[oe(309)](_.x,q.x),ve=Math.min(_.y,q.y),ge=Math[oe(983)](_.x-he),Me=Math[oe(983)](_.y-ve),Be=Math[oe(983)](q.x-he),De=Math.round(q.y-ve),ke=Math[oe(1204)](re*2,4),He=Math.max(Math[oe(188)](_.x-q.x),ke),o0=Math[oe(1204)](Math[oe(188)](_.y-q.y),ke),r0={...ce,id:Ce[oe(1179)](),config:{color:$[oe(1452)],lineWeight:re,thickness:re,lineType:$.lineType,startX:ge,startY:Me,endX:Be,endY:De}},_0={id:Ce.nanoid(),name:ce[oe(1434)]+"_"+Date[oe(1416)](),type:"normal",normalStyle:{width:He,height:o0,x:he,y:ve,background:oe(759)},contentInfo:{statusList:[Lx(r0)],currentStatusId:void 0},controlInfo:{isDraggable:!0,isClickable:!0,isResizable:!0,isSelectable:!0}};if(y(_0,!1),ie){const N0={x:q.x,y:q.y};H({start:N0,end:{...N0},isDrawing:!0})}else H({start:null,end:null,isDrawing:!1}),O()},[s[e(743)],y,O]),Xe=P.useCallback(()=>{const _=e,q=x[_(532)]?.[_(692)];q&&b({scale:q[_(796)],positionX:q.positionX,positionY:q[_(643)]})},[b]),Ie=P[e(275)](_=>{const q=e;j[q(532)]||u!==q(587)&&(_[q(1122)]===t[q(532)]||_.target.dataset?.canvas===q(815))&&(v(null),xe([]))},[v,u]),Ae=P[e(275)](_=>{const q=e;if(_[q(1141)]===0){if(u===q(1221)&&s[q(743)]){_[q(1815)]();const ie=me(_[q(363)],_[q(505)]);K[q(482)]?K[q(1460)]&&Ue(K[q(1460)],ie,!0):H({start:ie,end:ie,isDrawing:!0});return}if(u===q(587)&&!we){const ie=Pe(_[q(363)],_[q(505)]);ee({start:ie,end:ie}),xe([]),_[q(550)](),_.stopPropagation()}}},[u,s.material,K[e(482)],K.start,we,Ue,me,Pe]),je=P[e(275)](_=>{const q=e;if(!(u!==q(1221)||!s[q(743)])&&K[q(482)]&&K[q(1460)]){const ie=me(_[q(363)],_[q(505)]);Ue(K[q(1460)],ie,!1)}},[u,s[e(743)],K[e(482)],K[e(1460)],Ue,me]),sn=P[e(275)](_=>{const q=e;_.preventDefault(),_[q(843)][q(1593)]=q(1054),L(!0)},[]),l0=P.useCallback(_=>{_.preventDefault(),L(!1)},[]),H0=P[e(275)](_=>{const q=e;if(_[q(550)](),L(!1),!(!t[q(532)]||u!==q(1463)))try{const ie=_.dataTransfer[q(1387)]("application/json");if(!ie)return;const oe=JSON[q(998)](ie),ce=me(_[q(363)],_[q(505)]),$=ce.x-50,re=ce.y-50,he=Zr($,re,oe);y(he),xe([he.id])}catch(ie){console.error(q(196),ie)}},[u,y,me]),D0=P.useCallback((_,q)=>{const ie=e;u!=="select"&&u!=="box-select"||!q[ie(1622)][ie(330)]||(_[ie(1815)](),v(q.id),j[ie(532)]=!0,A.current={x:_[ie(363)],y:_[ie(505)]},S.current={x:q[ie(603)].x||0,y:q[ie(603)].y||0,newX:q[ie(603)].x||0,newY:q.normalStyle.y||0},Z[ie(532)]=q,_[ie(550)]())},[u,v]);P[e(1189)](()=>{const _=e,q=$=>{const re=I;if(j[re(532)]&&i&&Z[re(532)]){if(!t.current)return;const he=t.current[re(202)](),ve=he[re(531)]/l.width,ge=he.height/l[re(1348)],Me=$[re(363)]-A.current.x,Be=$[re(505)]-A[re(532)].y,De=Me/ve,ke=Be/ge,He=S[re(532)].x+De,o0=S[re(532)].y+ke,r0=document[re(1218)]('[data-node-id="'+i+'"]');r0&&(r0.style[re(1407)]=He+"px",r0[re(165)][re(1692)]=o0+"px"),S[re(532)][re(270)]=He,S[re(532)][re(1088)]=o0}if(u==="box-select"&&F.start){const he=Pe($.clientX,$[re(505)]);ee(ve=>({...ve,end:he}))}if(u===re(1221)&&K[re(482)]){const he=me($[re(363)],$[re(505)]);H(ve=>({...ve,end:he}))}},ie=()=>{const $=I;if(j[$(532)]&&i&&Z[$(532)]){const re=Ge[$(371)](),he=S[$(532)][$(270)]??S[$(532)].x,ve=S.current.newY??S[$(532)].y;re[$(1631)](i,{normalStyle:{...Z[$(532)][$(603)],x:he,y:ve}})}if(j[$(532)]=!1,Z.current=null,D({}),u===$(587)&&F[$(1460)]&&F[$(901)]){const re=Math[$(309)](F[$(1460)].x,F[$(901)].x),he=Math[$(1204)](F.start.x,F.end.x),ve=Math.min(F[$(1460)].y,F[$(901)].y),ge=Math[$(1204)](F[$(1460)].y,F.end.y),Me=r.filter(Be=>{const De=$,ke=Be[De(603)].x||0,He=Be.normalStyle.y||0,o0=Be[De(603)].width||0,r0=Be[De(603)][De(1348)]||0,_0=ke+o0/2,N0=He+r0/2;return _0>=re&&_0<=he&&N0>=ve&&N0<=ge})[$(1197)](Be=>Be.id);xe(Me),ee({start:null,end:null})}},oe=$=>{const re=I;po($[re(1122)])||($[re(420)]===re(1581)&&u===re(1221)&&(H({start:null,end:null,isDrawing:!1}),U()),$.key===re(1502)&&(i?M(i):ne.length>0&&(ne.forEach(he=>M(he)),xe([]))),$[re(733)]&&$[re(420)]==="z"&&($[re(550)](),m()),$[re(733)]&&$.key==="y"&&($.preventDefault(),C()),$[re(420)]===" "&&!we&&($[re(550)](),pe(!0)))},ce=$=>{$.key===" "&&we&&pe(!1)};return window.addEventListener(_(1220),q),window.addEventListener(_(561),ie),window[_(423)](_(1211),oe),window[_(423)]("keyup",ce),()=>{const $=_;window[$(1558)]($(1220),q),window[$(1558)]($(561),ie),window[$(1558)]("keydown",oe),window[$(1558)]("keyup",ce)}},[i,F,u,K[e(482)],ne,r,l.width,l.height,M,m,we,C,U,me,Pe,xe]);const d0=P[e(275)](()=>{const _=e,q=ne[_(1849)]>0?ne[_(1197)](oe=>r.find(ce=>ce.id===oe)).filter(Boolean):i?[r[_(279)](oe=>oe.id===i)][_(805)](Boolean):[];if(q[_(1849)]===0)return;const ie=[];q[_(1726)](oe=>{const ce=_,$={...oe,id:Ce[ce(1179)](),name:oe[ce(1434)]+ce(1824),normalStyle:{...oe[ce(603)],x:(oe[ce(603)].x||0)+20,y:(oe[ce(603)].y||0)+20}};y($),ie[ce(268)]($.id)}),ie[_(1849)]===1?v(ie[0]):xe(ie)},[i,ne,r,y,v,xe]),u0=P[e(275)](()=>{const _=e;if(ne[_(1849)]<2)return;const q=[];for(let ve=0;ve<ne[_(1849)];ve++){const ge=ne[ve],Me=r.find(Be=>Be.id===ge);if(Me){if(Me?.type===_(898)){Me[_(684)][_(1726)](De=>q.push({...De,normalStyle:{...De.normalStyle,x:(Me[_(603)].x||0)+(De.normalStyle.x||0),y:(Me[_(603)].y||0)+(De[_(603)].y||0)}})),M(ge);continue}q[_(268)](Me)}}if(q.length<2)return;let ie=1/0,oe=1/0,ce=-1/0,$=-1/0;q[_(1726)](ve=>{const ge=_,Me=ve[ge(603)].x||0,Be=ve[ge(603)].y||0,De=ve[ge(603)][ge(531)]||0,ke=ve[ge(603)].height||0;ie=Math[ge(309)](ie,Me),oe=Math[ge(309)](oe,Be),ce=Math[ge(1204)](ce,Me+De),$=Math[ge(1204)]($,Be+ke)});const re=q[_(1197)](ve=>({...ve,normalStyle:{...ve[_(603)],x:(ve[_(603)].x||0)-ie,y:(ve[_(603)].y||0)-oe}})),he={id:Ce.nanoid(),name:_(1526)+Date.now(),type:_(898),normalStyle:{x:ie,y:oe,width:ce-ie,height:$-oe,background:_(759)},contentInfo:{statusList:[],currentStatusId:void 0},controlInfo:{isDraggable:!0,isClickable:!0,isResizable:!0,isSelectable:!0},children:re};ne[_(1726)](ve=>M(ve)),y(he),xe([]),v(he.id)},[ne,r,M,y,v]),f0=P[e(275)](()=>{const _=e,q=ne[_(1849)]>0?ne[_(1197)](ie=>r[_(279)](oe=>oe.id===ie))[_(805)](ie=>!!ie&&ie.type===_(898)):i?[r[_(279)](ie=>ie.id===i)][_(805)](ie=>!!ie&&ie[_(871)]===_(898)):[];q[_(1849)]!==0&&(q[_(1726)](ie=>{const oe=_;if(!ie.children||ie[oe(684)].length===0)return;const ce=ie[oe(684)][oe(1197)]($=>({...$,normalStyle:{...$.normalStyle,x:(ie[oe(603)].x||0)+($[oe(603)].x||0),y:(ie[oe(603)].y||0)+($.normalStyle.y||0)}}));M(ie.id),ce.forEach($=>y($))}),xe([]),v(null))},[i,ne,r,M,y,v,xe]),h0=P[e(275)](_=>{const q=e;if(ne[q(1849)]<2)return;const ie=ne.map(ge=>r[q(279)](Me=>Me.id===ge)).filter(ge=>!!ge&&ge[q(871)]!==q(898));if(ie[q(1849)]<2)return;let oe=1/0,ce=-1/0,$=1/0,re=-1/0;ie.forEach(ge=>{const Me=q,Be=ge[Me(603)].x||0,De=ge.normalStyle.y||0;oe=Math[Me(309)](oe,Be),ce=Math[Me(1204)](ce,Be),$=Math[Me(309)]($,De),re=Math.max(re,De)});const he=[...ie][q(522)]((ge,Me)=>{const Be=q;return _==="horizontal"?(ge[Be(603)].x||0)-(Me[Be(603)].x||0):(ge[Be(603)].y||0)-(Me.normalStyle.y||0)}),ve=he[q(1849)];if(_==="horizontal"){const ge=ce-oe,Me=ge/(ve-1);he.forEach((Be,De)=>{const ke=q,He=oe+Me*De;w(Be.id,{normalStyle:{...Be[ke(603)],x:He}})})}else{const ge=re-$,Me=ge/(ve-1);he[q(1726)]((Be,De)=>{const ke=q,He=$+Me*De;w(Be.id,{normalStyle:{...Be[ke(603)],y:He}})})}},[ne,r,w]),Qe=_=>{const q=e,ie=_.contentInfo[q(625)][q(279)](oe=>oe[q(743)][q(871)]==="LINE");return ie?ie[q(743)][q(1827)]:null},Ye=P[e(275)](_=>{const q=e;if(ne[q(1849)]<2)return;const ie=Ge[q(371)](),oe=ne[q(1197)]($=>r[q(279)](re=>re.id===$))[q(805)]($=>!!$);if(oe[q(1849)]<2)return;let ce=0;switch(_){case q(1407):ce=Math[q(309)](...oe.map($=>{const re=q,he=Qe($);return he?($[re(603)].x||0)+(he.startX||0):$[re(603)].x||0}));break;case q(1835):ce=Math[q(1204)](...oe.map($=>{const re=q,he=Qe($);return he?($[re(603)].x||0)+(he.endX||0):($.normalStyle.x||0)+($[re(603)][re(531)]||0)}));break;case q(1692):ce=Math.min(...oe[q(1197)]($=>{const re=q,he=Qe($);return he?($[re(603)].y||0)+(he.startY||0):$[re(603)].y||0}));break;case q(1360):ce=Math[q(1204)](...oe.map($=>{const re=q,he=Qe($);return he?($[re(603)].y||0)+(he[re(1576)]||0):($[re(603)].y||0)+($[re(603)][re(1348)]||0)}));break}oe[q(1726)]($=>{const re=q;let he=$.normalStyle.x||0,ve=$[re(603)].y||0;const ge=Qe($);switch(_){case"left":ge?he=ce-(ge[re(1050)]||0):he=ce;break;case re(1835):ge?he=ce-(ge[re(1406)]||0):he=ce-($[re(603)].width||0);break;case"top":ge?ve=ce-(ge.startY||0):ve=ce;break;case re(1360):ge?ve=ce-(ge[re(1576)]||0):ve=ce-($[re(603)][re(1348)]||0);break}ie[re(1631)]($.id,{normalStyle:{...$[re(603)],x:he,y:ve}})})},[ne,r]),Hn=[{icon:d.jsx(ue.SelectOutlined,{}),title:e(576),active:u===e(1463),onClick:()=>{p(e(1463))}},{icon:d[e(1203)](ue.GroupOutlined,{}),title:"框选模式",active:u==="box-select",onClick:()=>{p("box-select"),xe([])}},{icon:d[e(1203)](ue[e(218)],{}),title:e(401),active:u===e(765),onClick:()=>{p(e(765))}},{icon:d.jsx(ue[e(1073)],{}),title:e(1580),active:u===e(1221),onClick:()=>{p(e(1221))}},{icon:d[e(1203)](ue.EyeOutlined,{}),title:e(1364),active:u===e(393),onClick:()=>{p(e(393))}}],L0=P[e(1341)](()=>[{icon:d.jsx(ue[e(295)],{}),title:e(745),onClick:m},{icon:d[e(1203)](ue[e(1266)],{}),title:e(319),onClick:C},{icon:d.jsx(ue.CopyOutlined,{}),title:"复制节点",disabled:!i&&ne.length===0,onClick:d0},{icon:d[e(1203)](ue[e(175)],{}),title:e(1656),disabled:ne[e(1849)]<2,onClick:u0},{icon:d[e(1203)](ue[e(1094)],{}),title:e(289),disabled:!i&&ne[e(1849)]===0,onClick:f0},{icon:d[e(1203)](ue[e(495)],{}),title:e(195),disabled:ne[e(1849)]<2,onClick:()=>Ye(e(1407))},{icon:d.jsx(ue.AlignRightOutlined,{}),title:e(1384),disabled:ne[e(1849)]<2,onClick:()=>Ye(e(1835))},{icon:d.jsx(ue[e(1371)],{}),title:"上对齐",disabled:ne[e(1849)]<2,onClick:()=>Ye(e(1692))},{icon:d[e(1203)](ue[e(1602)],{}),title:e(269),disabled:ne[e(1849)]<2,onClick:()=>Ye(e(1360))},{icon:d.jsx(ue.ColumnWidthOutlined,{}),title:e(862),disabled:ne[e(1849)]<2,onClick:()=>h0(e(406))},{icon:d[e(1203)](ue[e(868)],{}),title:"垂直分布",disabled:ne.length<2,onClick:()=>h0("vertical")},{icon:d[e(1203)](ue[e(1753)],{}),title:e(986),onClick:()=>be(!0)},{icon:d[e(1203)](ue.ExperimentOutlined,{}),title:e(1293),type:e(834),onClick:ye},{icon:d[e(1203)](ue[e(1654)],{}),title:e(817),disabled:!i&&ne.length===0,onClick:()=>{i?M(i):ne[e(1849)]>0&&(ne.forEach(q=>M(q)),xe([]))}}],[m,C,u,p,xe,ne,u0,f0,d0,Ye,h0,be,ae,ye,i,M,g.currentCanvasId]),x0=P[e(275)](_=>{const q=e;if(po(_[q(1122)])||_.key!==q(1040)&&_.key!==q(1423)&&_[q(420)]!==q(1661)&&_.key!=="ArrowDown"||ne.length===0)return;_.preventDefault(),ne.map(oe=>r[q(279)](ce=>ce.id===oe))[q(1726)](oe=>{const ce=q;oe&&w(oe.id,{normalStyle:{...oe[ce(603)],x:(oe[ce(603)].x||0)-2*(_[ce(420)]===ce(1040)?1:_[ce(420)]==="ArrowRight"?-1:0),y:(oe[ce(603)].y||0)-2*(_[ce(420)]===ce(1661)?1:_[ce(420)]===ce(592)?-1:0)}})})},[ne,r,w]);P.useEffect(()=>{const _=e;if(u===_(587))return document[_(423)](_(1211),x0),()=>{const q=_;document[q(1558)](q(1211),x0)}},[u,x0]);const[b0,g0]=P[e(280)](!1),[_n,ln]=P.useState(""),[Vn,dn]=P[e(280)](null);return d[e(1324)](e(315),{className:e(682),children:[d[e(1324)](e(315),{className:e(1554),children:[d.jsxs(z[e(337)],{children:[Hn[e(1197)](_=>d.jsx(z.Tooltip,{title:_[e(1450)],children:d.jsx(z[e(651)],{type:_[e(1523)]?e(834):e(943),icon:_[e(1765)],onClick:_.onClick})},_[e(1450)])),d[e(1203)](e(315),{className:e(1290)}),d.jsx(z[e(1842)],{value:g.currentCanvasId,onChange:Q,style:{width:140},dropdownRender:_=>d.jsxs(d[e(1123)],{children:[_,d[e(1203)](e(315),{className:e(1544),children:d[e(1203)](z[e(651)],{type:"link",size:"small",block:!0,onClick:()=>g0(!0),children:e(907)})})]}),children:g.canvases[e(1197)](_=>d.jsx(z[e(1842)][e(1836)],{value:_.id,children:_[e(1434)]},_.id))}),d[e(1203)](z.Button,{icon:d[e(1203)](ue[e(1505)],{}),size:e(1224),onClick:()=>Y(),title:e(1619)})]}),d[e(1203)](z[e(337)],{children:L0.map(_=>d[e(1203)](z[e(770)],{title:_[e(1450)],children:d.jsx(z[e(651)],{type:_[e(1523)]?e(834):_[e(871)]||e(943),icon:_[e(1765)],onClick:_[e(721)],disabled:_.disabled})},_.title))})]}),d[e(1203)]("div",{ref:o,className:e(1618),children:d.jsx(to[e(633)],{ref:x,initialScale:1,initialPositionX:0,initialPositionY:0,minScale:.5,maxScale:5,onTransformed:Xe,limitToBounds:!1,centerZoomedOut:!1,panning:{disabled:!we&&(u===e(1463)||u===e(1221)||u===e(587)),velocityDisabled:!0},wheel:{disabled:!1,step:.1},pinch:{disabled:!1},doubleClick:{disabled:!0},children:({zoomIn:_,zoomOut:q,resetTransform:ie})=>d.jsxs(d.Fragment,{children:[d.jsx(e(315),{className:"absolute bottom-4 right-4 z-10 bg-white rounded-lg shadow-lg p-2",children:d[e(1324)](z[e(337)],{direction:e(1230),children:[d[e(1203)](z[e(770)],{title:"放大",children:d[e(1203)](z[e(651)],{icon:d[e(1203)](ue[e(479)],{}),onClick:()=>_()})}),d[e(1203)](z[e(770)],{title:"缩小",children:d[e(1203)](z.Button,{icon:d[e(1203)](ue.ZoomOutOutlined,{}),onClick:()=>q()})}),d[e(1203)](z[e(770)],{title:e(1610),children:d[e(1203)](z[e(651)],{onClick:()=>ie(),children:e(1322)})}),d.jsxs(e(315),{className:e(656),children:[Math[e(983)](f[e(796)]*100),"%"]})]})}),d[e(1203)](to[e(253)],{wrapperStyle:{width:e(1322),height:"100%",position:e(361)},contentStyle:{width:"100%",height:"100%",display:e(1018),alignItems:e(1362),justifyContent:"center"},children:d.jsxs(e(315),{ref:t,"data-canvas":e(815),className:"relative "+(V?e(1038):"")+" "+(u===e(1221)?e(1083):"")+" "+(we?"cursor-grab":""),style:{width:l[e(531)],height:l[e(1348)],flexShrink:0,backgroundColor:l.background,backgroundImage:l[e(678)]?"url("+l[e(678)]+")":void 0,backgroundSize:"cover",backgroundPosition:e(1362)},onClick:Ie,onMouseDown:Ae,onDoubleClick:je,onDragOver:sn,onDragLeave:l0,onDrop:H0,children:[l[e(1817)]!==!1&&d.jsxs(e(1442),{className:e(1562),width:l[e(531)],height:l[e(1348)],children:[d.jsx(e(403),{children:d.jsx(e(1013),{id:e(590),width:"20",height:"20",patternUnits:"userSpaceOnUse",children:d.jsx(e(1540),{d:e(252),fill:"none",stroke:"#f0f0f0",strokeWidth:"1"})})}),d[e(1203)](e(1819),{width:"100%",height:e(1322),fill:e(292)})]}),r[e(1197)](oe=>d[e(1203)](Ex,{node:oe,isSelected:u==="preview"?!1:i===oe.id||ne[e(617)](oe.id),data:te,onClick:u===e(393)?void 0:ce=>{const $=e;console[$(1339)]($(769),oe.id,"mode:",B.current),B.current!=="line-draw"&&(ce[$(1791)]?(v(oe.id),xe([...ne,oe.id])):(v(oe.id),xe([oe.id])))},onMouseDown:u===e(393)?void 0:ce=>D0(ce,oe),onUpdateNode:u===e(393)?void 0:(ce,$)=>w(ce,$),scale:f[e(796)],enableEventFlow:u===e(393),eventFlowData:de},""+oe.id)),u==="line-draw"&&K[e(482)]&&K[e(1460)]&&K[e(901)]&&d[e(1203)](e(1442),{className:"absolute top-0 left-0 pointer-events-none",width:l[e(531)],height:l.height,children:d[e(1203)](e(845),{x1:K[e(1460)].x,y1:K[e(1460)].y,x2:K[e(901)].x,y2:K.end.y,stroke:"#1890ff",strokeWidth:"2",strokeDasharray:"5,5",strokeLinecap:"round",strokeLinejoin:e(983)})}),u==="box-select"&&F.start&&F.end&&d[e(1203)]("div",{className:e(308),style:{left:Math[e(309)](F[e(1460)].x,F[e(901)].x),top:Math[e(309)](F[e(1460)].y,F[e(901)].y),width:Math[e(188)](F.end.x-F.start.x),height:Math.abs(F[e(901)].y-F[e(1460)].y),zIndex:9999}})]})})]})})}),d[e(1203)](z[e(199)],{title:e(1293),open:se,onCancel:()=>ae(!1),footer:null,children:d.jsx(z[e(386)],{layout:e(1230),children:d[e(1203)](z.Form.Item,{label:"测试数据 (JSON)",children:d.jsx(qs,{value:J,onChange:_=>{const q=e;T(!0),G(_.target[q(160)])},rows:10,placeholder:e(211)})})})}),d[e(1203)](z[e(199)],{title:e(986),open:le,onCancel:()=>be(!1),footer:null,children:d.jsxs(z[e(386)],{layout:e(1230),children:[d[e(1203)](z.Form[e(487)],{label:"宽度",children:d[e(1203)](z[e(291)],{value:l[e(531)],onChange:_=>h({width:_||1920}),min:100,max:5e3,style:{width:e(1322)}})}),d[e(1203)](z[e(386)][e(487)],{label:"高度",children:d.jsx(z[e(291)],{value:l.height,onChange:_=>h({height:_||1080}),min:100,max:5e3,style:{width:e(1322)}})}),d[e(1203)](z[e(386)][e(487)],{label:"显示网格",children:d[e(1203)](z[e(990)],{checked:l[e(1817)]!==!1,onChange:_=>h({showGrid:_})})}),d[e(1203)](z[e(386)][e(487)],{label:e(1185),children:d[e(1324)](e(315),{className:e(606),children:[d.jsx($0,{value:l[e(690)]||e(1375),onChange:_=>h({background:_[e(1363)]()})}),d[e(1203)](z.Input,{value:l[e(690)],onChange:_=>h({background:_.target.value}),placeholder:e(1783)})]})}),d[e(1324)](z[e(386)][e(487)],{label:"背景图片",children:[d[e(1324)](e(315),{className:e(606),children:[d[e(1203)](z[e(1567)],{accept:e(1091),showUploadList:!1,beforeUpload:_=>{const q=e;if(!_[q(871)][q(1274)](q(860)))return z[q(1294)][q(859)](q(881)),!1;const oe=new FileReader;return oe.onload=ce=>{const $=q,re=ce[$(1122)]?.[$(1417)];h({backgroundImage:re}),z[$(1294)][$(647)]($(1231))},oe[q(662)](_),!1},children:d[e(1203)](z[e(651)],{icon:d[e(1203)](ue[e(478)],{}),children:e(1843)})}),d.jsx(z[e(246)],{value:l[e(678)],onChange:_=>h({backgroundImage:_.target[e(160)]}),placeholder:e(1504),style:{flex:1}}),l.backgroundImage&&d[e(1203)](z[e(651)],{icon:d[e(1203)](ue[e(1629)],{}),onClick:()=>h({backgroundImage:void 0}),danger:!0,size:e(1224)})]}),l.backgroundImage&&d[e(1203)](e(315),{className:e(240),style:{maxWidth:e(1322)},children:d[e(1203)](e(1166),{src:l.backgroundImage,alt:e(1717),style:{maxWidth:e(1322),maxHeight:120,objectFit:e(858)}})})]})]})}),d[e(1324)](z[e(199)],{title:e(183),open:b0,onCancel:()=>{g0(!1),dn(null),ln("")},footer:null,children:[d.jsx(z[e(1633)],{dataSource:g[e(1214)],renderItem:_=>d[e(1203)](z[e(1633)][e(487)],{actions:[Vn===_.id?d[e(1203)](z.Button,{type:e(834),size:e(1224),onClick:()=>{R(_.id,_n),dn(null)},children:"保存"}):d[e(1203)](z[e(651)],{type:e(969),icon:d[e(1203)](ue.EditOutlined,{}),size:e(1224),onClick:()=>{const q=e;dn(_.id),ln(_[q(1434)])}}),g[e(1214)][e(1849)]>1&&d[e(1203)](z.Button,{type:e(969),danger:!0,icon:d.jsx(ue.DeleteOutlined,{}),size:"small",onClick:()=>W(_.id)})].filter(Boolean),children:Vn===_.id?d[e(1203)](z.Input,{value:_n,onChange:q=>ln(q[e(1122)][e(160)]),size:e(1224),style:{width:200}}):d[e(1324)](e(1082),{style:{fontWeight:g[e(1352)]===_.id?e(581):e(1165)},children:[_.name," ",g.currentCanvasId===_.id&&e(920)]})})}),d[e(1203)]("div",{className:"mt-4 flex justify-end",children:d.jsx(z[e(651)],{type:"primary",icon:d[e(1203)](ue[e(1505)],{}),onClick:()=>Y(),children:e(1619)})})]})]})},{Option:Xn}=z[c(1842)],Ws=({material:n,onSave:e,dataOptions:x=[]})=>{const t=c,o=n,r=o[t(1477)]||{},[i,a]=P[t(280)]({label:r[t(453)]||"",value:r[t(160)]||"",valueSourceCode:r[t(964)]||"",unit:r[t(512)]||"",decimals:r.decimals??2,labelFontSize:r[t(1549)]?.[t(925)]||14,labelFontWeight:r[t(1549)]?.[t(620)]||"bold",labelColor:r[t(1549)]?.[t(1452)]||t(336),valueFontSize:r[t(1832)]?.[t(925)]||14,valueFontWeight:r[t(1832)]?.[t(620)]||t(1165),valueColor:r[t(1832)]?.[t(1452)]||t(975)});P[t(1189)](()=>{const l=t;a({label:r.label||"",value:r[l(160)]||"",valueSourceCode:r.valueSourceCode||"",unit:r[l(512)]||"",decimals:r[l(1560)]??2,labelFontSize:r[l(1549)]?.fontSize||14,labelFontWeight:r.labelStyle?.fontWeight||l(581),labelColor:r[l(1549)]?.color||l(336),valueFontSize:r[l(1832)]?.[l(925)]||14,valueFontWeight:r.valueStyle?.[l(620)]||"normal",valueColor:r[l(1832)]?.[l(1452)]||l(975)})},[n.id]);const u=(l,g)=>{a(b=>({...b,[l]:g}))},s=l=>{const g=t,b=x[g(279)](y=>y[g(1134)]===l),h=b?.unit||"";a(y=>({...y,valueSourceCode:l,unit:h,value:String(b?.[g(160)]||"")})),setTimeout(()=>{e({content:{...r,valueSourceCode:l,value:String(b?.[g(160)]||""),unit:h}})},0)},f=()=>{const l=t;e({content:{...r,label:i[l(453)],value:i[l(160)],valueSourceCode:i.valueSourceCode,unit:i[l(512)],decimals:i[l(1560)],labelStyle:{fontSize:i[l(622)],fontWeight:i[l(516)],color:i.labelColor},valueStyle:{fontSize:i.valueFontSize,fontWeight:i.valueFontWeight,color:i[l(189)]}}})};return d[t(1324)]("div",{className:t(774),children:[d[t(1203)](z[t(1119)],{style:{marginTop:0},children:t(1201)}),d[t(1324)](z[t(386)],{layout:t(1230),children:[d[t(1203)](z[t(386)][t(487)],{label:t(1041),children:d[t(1203)](z[t(246)],{value:i[t(453)],onChange:l=>u(t(453),l[t(1122)][t(160)]),onBlur:f,placeholder:t(1271)})}),d[t(1203)](z[t(386)].Item,{label:t(384),help:t(1556),children:d.jsx(z[t(1842)],{value:i[t(964)]||void 0,onChange:s,placeholder:"选择数据字段(可选)",allowClear:!0,style:{width:"100%"},fieldNames:{value:t(1134),label:t(558)},options:x})}),d.jsx(z[t(386)][t(487)],{label:i.valueSourceCode?t(1482):t(435),help:i[t(964)]?t(613):"手动输入显示的值",children:d[t(1203)](z[t(246)],{value:i[t(160)],onChange:l=>u("value",l[t(1122)].value),onBlur:f,placeholder:i[t(964)]?t(992):t(574),disabled:!!i[t(964)],variant:i[t(964)]?t(1163):void 0})}),d[t(1203)](z.Form[t(487)],{label:"单位",help:"优先从绑定数据自动获取,也可手动输入",children:d[t(1203)](z.Input,{value:i[t(512)],onChange:l=>u("unit",l.target[t(160)]),onBlur:f,placeholder:t(1497),suffix:i[t(964)]&&x[t(1849)]>0?d[t(1203)](z[t(1859)],{color:"blue",style:{marginRight:-8},children:"自动"}):null})}),d[t(1203)](z[t(386)][t(487)],{label:"保留小数位",help:t(1055),children:d.jsx(z[t(291)],{value:i[t(1560)],onChange:l=>u(t(1560),l??2),onBlur:f,min:-1,max:10,style:{width:"100%"}})})]}),d[t(1203)](z[t(1119)],{children:"标签样式"}),d.jsxs(z[t(386)],{layout:t(1230),children:[d[t(1324)](z.Space,{children:[d[t(1203)](z[t(386)][t(487)],{label:t(1745),children:d.jsx(z[t(291)],{value:i.labelFontSize,onChange:l=>u("labelFontSize",l||14),onBlur:f,min:8,max:72})}),d.jsx(z[t(386)][t(487)],{label:t(1599),children:d[t(1324)](z.Select,{value:i[t(516)],onChange:l=>{u(t(516),l),setTimeout(f,0)},style:{width:100},children:[d[t(1203)](Xn,{value:t(1165),children:"正常"}),d[t(1203)](Xn,{value:t(581),children:"粗体"})]})})]}),d[t(1203)](z[t(386)][t(487)],{label:t(1788),children:d[t(1324)](t(315),{className:t(606),children:[d[t(1203)]($0,{value:i.labelColor||t(336),onChange:l=>{const g=t;u(g(228),l[g(1363)]())},onChangeComplete:l=>{const g=t;e({content:{...r,label:i.label,value:i[g(160)],valueSourceCode:i[g(964)],unit:i[g(512)],decimals:i.decimals,labelStyle:{fontSize:i.labelFontSize,fontWeight:i[g(516)],color:l.toHexString()},valueStyle:{fontSize:i[g(1334)],fontWeight:i.valueFontWeight,color:i.valueColor}}})}}),d[t(1203)](z[t(246)],{value:i[t(228)],onChange:l=>u(t(228),l[t(1122)].value),onBlur:f,placeholder:t(336),style:{width:100}})]})})]}),d[t(1203)](z[t(1119)],{children:"值样式"}),d[t(1324)](z[t(386)],{layout:t(1230),children:[d[t(1324)](z[t(337)],{children:[d[t(1203)](z[t(386)].Item,{label:t(1745),children:d.jsx(z[t(291)],{value:i.valueFontSize,onChange:l=>u(t(1334),l||14),onBlur:f,min:8,max:72})}),d[t(1203)](z[t(386)][t(487)],{label:t(1599),children:d[t(1324)](z[t(1842)],{value:i[t(356)],onChange:l=>{u(t(356),l),setTimeout(f,0)},style:{width:100},children:[d.jsx(Xn,{value:"normal",children:"正常"}),d[t(1203)](Xn,{value:t(581),children:"粗体"})]})})]}),d[t(1203)](z[t(386)].Item,{label:t(1788),children:d[t(1324)]("div",{className:t(606),children:[d[t(1203)]($0,{value:i[t(189)]||t(975),onChange:l=>{u(t(189),l.toHexString())},onChangeComplete:l=>{const g=t;e({content:{...r,label:i[g(453)],value:i[g(160)],valueSourceCode:i[g(964)],unit:i.unit,decimals:i[g(1560)],labelStyle:{fontSize:i[g(622)],fontWeight:i[g(516)],color:i[g(228)]},valueStyle:{fontSize:i[g(1334)],fontWeight:i[g(356)],color:l[g(1363)]()}}})}}),d[t(1203)](z[t(246)],{value:i[t(189)],onChange:l=>u(t(189),l[t(1122)][t(160)]),onBlur:f,placeholder:t(975),style:{width:100}})]})})]})]})},Xs=({material:n,onSave:e})=>{const x=c,t=n,[o,r]=P[x(280)]({name:n[x(1434)],src:t[x(1332)]||"",backgroundColor:t[x(1769)]||"",fillColor:t[x(782)]||""});P[x(1189)](()=>{const u=x;r({name:n[u(1434)],src:t[u(1332)]||"",backgroundColor:t[u(1769)]||"",fillColor:t[u(782)]||""})},[n.id]);const i=(u,s)=>{r(f=>({...f,[u]:s}))},a=()=>{const u=x;e({name:o.name,src:o[u(1332)],backgroundColor:o[u(1769)]})};return d[x(1324)](x(315),{className:x(774),children:[d[x(1203)](z[x(1119)],{style:{marginTop:0},children:x(772)}),d[x(1324)](z[x(386)],{layout:x(1230),children:[d.jsx(z[x(386)][x(487)],{label:x(1244),children:d[x(1203)](z[x(246)],{value:o[x(1434)],onChange:u=>i(x(1434),u[x(1122)].value),onBlur:a})}),d[x(1203)](z[x(386)][x(487)],{label:x(1799),children:d[x(1203)](z[x(246)][x(1488)],{value:o[x(1332)],onChange:u=>i(x(1332),u[x(1122)][x(160)]),onBlur:a,rows:4,placeholder:x(887)})}),d[x(1203)](z[x(386)].Item,{label:x(1181),children:d[x(1324)](x(315),{className:x(606),children:[d[x(1203)]($0,{value:o[x(782)]||"#1890ff",onChange:u=>{const s=x,f=u[s(1363)]();i("fillColor",f),e({name:o[s(1434)],src:o[s(1332)],backgroundColor:o[s(1769)],fillColor:f})}}),d[x(1203)](z[x(246)],{value:o[x(782)],onChange:u=>i(x(782),u[x(1122)][x(160)]),onBlur:a,placeholder:x(975)})]})}),d[x(1203)](z[x(386)].Item,{label:"背景颜色",children:d[x(1324)](x(315),{className:x(606),children:[d[x(1203)]($0,{value:o[x(1769)]||x(975),onChange:u=>{const s=x,f=u.toHexString();i("backgroundColor",f),e({name:o[s(1434)],src:o[s(1332)],backgroundColor:f,fillColor:o[s(782)]})}}),d.jsx(z[x(246)],{value:o[x(1769)],onChange:u=>i(x(1769),u[x(1122)].value),onBlur:a,placeholder:"#1890ff"})]})})]})]})},{Option:Ks}=z.Select,Zs=({material:n,onSave:e})=>{const x=c,t=n[x(1827)]||{},[o,r]=P.useState({lineWeight:t[x(261)]||t.thickness||2,color:t.color||"#262626",lineType:t[x(1669)]||x(1052),startX:t[x(1050)]??0,startY:t[x(1202)]??0,endX:t.endX??100,endY:t[x(1576)]??0}),i=JSON.stringify({sw:t.lineWeight??t[x(1192)],c:t.color,t:t[x(1669)],sx:t[x(1050)],sy:t[x(1202)],ex:t[x(1406)],ey:t[x(1576)]});P[x(1189)](()=>{const s=x;r({lineWeight:t[s(261)]||t.thickness||2,color:t[s(1452)]||s(336),lineType:t[s(1669)]||"solid",startX:t[s(1050)]??0,startY:t[s(1202)]??0,endX:t.endX??100,endY:t[s(1576)]??0})},[n.id,i]);const a=s=>{const f=x,l={...o,...s};r(l),e({config:{...t,thickness:l[f(261)],lineWeight:l[f(261)],color:l[f(1452)],lineType:l.lineType,startX:l.startX,startY:l[f(1202)],endX:l[f(1406)],endY:l[f(1576)]}})},u=[{value:"solid",label:"实线",desc:"连续实线"},{value:x(1190),label:"虚线",desc:x(548)},{value:x(1362),label:x(1124),desc:"长点-短点交替"},{value:x(1223),label:"假想线",desc:x(1284)},{value:"dot",label:"点线",desc:x(388)},{value:x(737),label:"画点线",desc:"长划-点交替"}];return d[x(1324)]("div",{className:"space-y-4",children:[d[x(1203)](z[x(1119)],{style:{marginTop:0},children:"起止位置(相对节点)"}),d.jsxs(z[x(386)],{layout:x(1230),children:[d.jsxs(x(315),{className:x(781),children:[d[x(1203)](z[x(386)].Item,{label:x(1723),className:x(490),children:d[x(1203)](z[x(291)],{value:o.startX,onChange:s=>a({startX:s??0}),style:{width:x(1322)}})}),d.jsx(z[x(386)][x(487)],{label:"起点 Y",className:x(490),children:d.jsx(z[x(291)],{value:o[x(1202)],onChange:s=>a({startY:s??0}),style:{width:"100%"}})}),d[x(1203)](z[x(386)][x(487)],{label:x(1550),className:x(490),children:d[x(1203)](z[x(291)],{value:o[x(1406)],onChange:s=>a({endX:s??100}),style:{width:x(1322)}})}),d.jsx(z[x(386)][x(487)],{label:x(1756),className:x(490),children:d.jsx(z.InputNumber,{value:o[x(1576)],onChange:s=>a({endY:s??0}),style:{width:x(1322)}})})]}),d.jsx(z[x(386)].Item,{label:"快速对齐",className:"mt-4",children:d[x(1324)](z.Space,{children:[d[x(1203)](z[x(651)],{size:x(1224),onClick:()=>{const s=x,f=t[s(1202)]??o[s(1202)];a({endY:f})},title:x(1366),children:"水平"}),d.jsx(z[x(651)],{size:"small",onClick:()=>{const s=x,f=t[s(1050)]??o[s(1050)];a({endX:f})},title:x(212),children:"垂直"}),d[x(1203)](z.Button,{size:x(1224),onClick:()=>{const s=x,f=t[s(1050)]??o[s(1050)],l=t[s(1202)]??o[s(1202)],g=t[s(1406)]??o[s(1406)],b=t[s(1576)]??o[s(1576)];a({startX:g,startY:b,endX:f,endY:l})},title:x(912),children:"反向"})]})})]}),d[x(1203)](z.Divider,{children:"线条属性"}),d[x(1324)](z[x(386)],{layout:"vertical",children:[d[x(1203)](z[x(386)][x(487)],{label:"线型",help:x(726),children:d[x(1203)](z.Select,{value:o[x(1669)],onChange:s=>a({lineType:s}),children:u[x(1197)](s=>d[x(1203)](Ks,{value:s[x(160)],children:d[x(1324)](x(315),{className:"flex flex-col",children:[d[x(1203)](x(1082),{children:s[x(453)]}),d.jsx(x(1082),{className:x(825),children:s[x(1313)]})]})},s[x(160)]))})}),d.jsx(z.Form[x(487)],{label:x(1103),children:d[x(1203)](z[x(291)],{value:o.lineWeight,onChange:s=>a({lineWeight:s||2}),min:1,max:20,style:{width:120}})}),d[x(1203)](z[x(386)][x(487)],{label:"颜色",children:d.jsxs(x(315),{className:"flex items-center gap-2",children:[d.jsx($0,{value:o[x(1452)]||x(802),onChange:s=>a({color:s.toHexString()})}),d[x(1203)](z[x(246)],{value:o[x(1452)],onChange:s=>a({color:s[x(1122)][x(160)]}),placeholder:"#d9d9d9",style:{width:100}})]})})]})]})},yi=({status:n,onUpdate:e,onAppendToExpression:x})=>{const t=c,o=Ge(u=>u[t(1634)]),r=o[t(279)](u=>u.id===n[t(963)]),i=r?Hr(r[t(840)]||{}):[],a=u=>{const s=t,f=s(644)+u;x?x(f):e({expression:""+(n.expression||"")+f})};return d[t(1324)](d[t(1123)],{children:[d[t(1203)](z.Form.Item,{label:t(243),extra:o[t(1849)]===0?"请先在顶部工具栏点击「数据池」添加至少一个数据集(JSON 对象模板);宿主项目也可通过 initialScheme.dataPool 或 useEditorStore.getState().setDataPool() 注入。":"可选:绑定后表达式中的 data 会先合并该数据集的 sample,再合并画布传入的运行时数据。不绑定时 data 仅来自运行时。",children:d.jsx(z[t(1842)],{allowClear:!0,placeholder:o[t(1849)]===0?t(904):t(1394),value:n[t(963)]??void 0,options:o[t(1197)](u=>({label:u.name,value:u.id})),onChange:u=>e({boundDatasetId:u??null})})}),i[t(1849)]>0&&d[t(1203)](z.Form[t(487)],{label:t(1037),children:d[t(1203)](z[t(337)],{size:[4,4],wrap:!0,children:i[t(1197)](u=>d[t(1203)](z.Tag,{className:t(641),onClick:()=>a(u),children:t(644)+u},u))})})]})},mi=({material:n,onSave:e,dataOptions:x})=>{const t=c;switch(n[t(871)]){case"TEXT":return d[t(1203)](Ws,{material:n,onSave:e,dataOptions:x});case t(1401):return d[t(1203)](Xs,{material:n,onSave:e});case"LINE":return d[t(1203)](Zs,{material:n,onSave:e});default:return d.jsx(t(315),{className:t(996),children:t(1150)})}},{Panel:Co}=z[c(709)],{TextArea:Rs}=z[c(246)],Js=({node:n,updateNode:e,materials:x})=>{const t=c,o=x[t(805)](l=>l[t(871)]!==t(806)||!l[t(1827)]?.nodes),r=(l,g)=>{const b=t,h=n[b(684)]?.[b(1197)](y=>{const v=b;return y.id===l?{...y,contentInfo:{...y[v(518)],statusList:g}}:y});e(n.id,{children:h})},i=l=>{const g=t,b=n.children?.[g(279)](y=>y.id===l);if(!b)return;const h={id:Ce.nanoid(),name:"状态"+(b[g(518)][g(625)][g(1849)]+1),expression:b[g(518)][g(625)][g(1849)]===0?g(1419):"return false;",material:{...o[0],id:Ce.nanoid()},boundDatasetId:null};r(l,[...b.contentInfo.statusList,h])},a=(l,g)=>{const b=t,h=n.children?.[b(279)](v=>v.id===l);if(!h)return;const y=h[b(518)][b(625)][b(805)](v=>v.id!==g);r(l,y)},u=(l,g,b)=>{const h=t,y=n[h(684)]?.[h(279)](w=>w.id===l);if(!y)return;const v=y[h(518)].statusList[h(1197)](w=>w.id===g?{...w,...b}:w);r(l,v)},s=(l,g,b)=>{const h=t,y=n[h(684)]?.[h(279)](M=>M.id===l);if(!y)return;const v=y[h(518)][h(625)].findIndex(M=>M.id===g);if(v===-1)return;const w=[...y[h(518)][h(625)]];b==="up"&&v>0?[w[v],w[v-1]]=[w[v-1],w[v]]:b===h(1180)&&v<w[h(1849)]-1&&([w[v],w[v+1]]=[w[v+1],w[v]]),r(l,w)},f=(l,g,b)=>{const h=t,y=x[h(279)](v=>v.id===b);y&&u(l,g,{material:{...y,id:Ce[h(1179)]()}})};return d[t(1324)](t(315),{className:t(774),children:[d.jsx(t(315),{className:"p-3 bg-blue-50 border border-blue-200 rounded-lg mb-4",children:d[t(1324)](t(315),{className:t(910),children:[d[t(1203)]("strong",{children:t(747)}),t(1283)]})}),d[t(1203)](z.Collapse,{ghost:!0,children:n[t(684)]?.[t(1197)]((l,g)=>d.jsx(Co,{header:d.jsxs(t(315),{className:t(1357),children:[d[t(1324)](t(1082),{className:t(568),children:[t(193),g+1]}),d[t(1324)](z[t(1859)],{color:t(457),style:{fontSize:t(237),padding:"0 4px"},children:[l[t(518)][t(625)][t(1849)],t(657)]})]}),children:d.jsxs(t(315),{className:t(744),children:[d[t(1324)]("div",{className:"flex justify-between items-center mb-3",children:[d[t(1203)](t(1082),{className:t(1309),children:t(1715)}),d[t(1203)](z[t(651)],{type:t(834),size:t(1224),icon:d[t(1203)](ue.PlusOutlined,{}),onClick:()=>i(l.id),children:"添加状态"})]}),l[t(518)].statusList[t(1849)]===0?d.jsx(t(315),{className:t(1844),children:"暂无状态,点击上方按钮添加"}):d.jsx(z.Collapse,{ghost:!0,children:l[t(518)][t(625)].map((b,h)=>d[t(1203)](Co,{header:d.jsxs(t(315),{className:t(606),children:[d[t(1203)](t(1082),{className:t(1016),children:h+1}),d[t(1203)](t(1082),{className:"font-medium",children:b[t(1434)]}),d[t(1203)](z[t(1859)],{color:t(943),className:t(700),children:b[t(743)].type})]}),extra:d[t(1324)](z[t(337)],{size:t(1224),onClick:y=>y[t(1815)](),children:[d[t(1203)](z[t(651)],{type:t(969),size:t(1224),icon:d[t(1203)](ue.ArrowUpOutlined,{}),disabled:h===0,onClick:y=>{y[t(1815)](),s(l.id,b.id,"up")}}),d.jsx(z[t(651)],{type:"text",size:"small",icon:d.jsx(ue[t(946)],{}),disabled:h===l[t(518)][t(625)].length-1,onClick:y=>{const v=t;y[v(1815)](),s(l.id,b.id,v(1180))}}),d[t(1203)](z[t(651)],{type:t(969),size:t(1224),danger:!0,icon:d[t(1203)](ue[t(1654)],{}),onClick:y=>{y.stopPropagation(),a(l.id,b.id)}})]}),children:d[t(1324)](z[t(386)],{layout:t(1230),children:[d.jsx(z[t(386)][t(487)],{label:t(1245),children:d[t(1203)](z[t(246)],{value:b[t(1434)],onChange:y=>u(l.id,b.id,{name:y[t(1122)][t(160)]}),placeholder:t(454)})}),d[t(1203)](yi,{status:b,onUpdate:y=>u(l.id,b.id,y)}),d[t(1203)](z[t(386)][t(487)],{label:"执行表达式",help:t(1323),children:d[t(1203)](Rs,{value:b.expression,onChange:y=>u(l.id,b.id,{expression:y[t(1122)].value}),rows:3,placeholder:t(1419)})}),d[t(1203)](z.Form.Item,{label:t(616),children:d[t(1324)](t(315),{className:"flex items-center gap-2",children:[d[t(1203)](z[t(1859)],{color:t(457),children:b.material.name}),d[t(1203)](z.Tag,{color:"default",children:b[t(743)][t(871)]}),d.jsx(z[t(1842)],{placeholder:t(1725),style:{width:150},value:void 0,onChange:y=>y&&f(l.id,b.id,y),options:o[t(1197)](y=>({value:y.id,label:y.name+" ("+y[t(871)]+")"}))})]})}),d[t(1203)](z.Divider,{style:{margin:t(966)}}),d.jsxs(t(315),{className:t(311),children:[d[t(1324)]("div",{className:t(1494),children:[d.jsx(t(1082),{className:t(1755),children:t(373)}),d.jsx(z[t(1859)],{children:b.material[t(1434)]})]}),d[t(1203)](mi,{material:b[t(743)],onSave:y=>{const v=t,w={...b[v(743)],...y};u(l.id,b.id,{material:w})}})]})]})},b.id))})]})},l.id))})]})};function Ee(n){const e=c;if(typeof n===e(1077)||typeof n===e(528))return""+n;let x="";if(Array.isArray(n))for(let t=0,o;t<n.length;t++)(o=Ee(n[t]))!==""&&(x+=(x&&" ")+o);else for(let t in n)n[t]&&(x+=(x&&" ")+t);return x}var Fs={value:()=>{}};function Pt(){const n=c;for(var e=0,x=arguments.length,t={},o;e<x;++e){if(!(o=arguments[e]+"")||o in t||/[\s.]/.test(o))throw new Error(n(1674)+o);t[o]=[]}return new st(t)}function st(n){this._=n}function Qs(n,e){const x=c;return n[x(578)]()[x(448)](/^|\s+/)[x(1197)](function(t){const o=x;var r="",i=t[o(1733)](".");if(i>=0&&(r=t[o(1250)](i+1),t=t.slice(0,i)),t&&!e[o(507)](t))throw new Error(o(612)+t);return{type:t,name:r}})}st[c(985)]=Pt[c(985)]={constructor:st,on:function(n,e){const x=c;var t=this._,o=Qs(n+"",t),r,i=-1,a=o[x(1849)];if(arguments[x(1849)]<2){for(;++i<a;)if((r=(n=o[i])[x(871)])&&(r=$s(t[r],n[x(1434)])))return r;return}if(e!=null&&typeof e!==x(842))throw new Error(x(1140)+e);for(;++i<a;)if(r=(n=o[i])[x(871)])t[r]=zo(t[r],n[x(1434)],e);else if(e==null)for(r in t)t[r]=zo(t[r],n.name,null);return this},copy:function(){const n=c;var e={},x=this._;for(var t in x)e[t]=x[t][n(1250)]();return new st(e)},call:function(n,e){const x=c;if((r=arguments[x(1849)]-2)>0)for(var t=new Array(r),o=0,r,i;o<r;++o)t[o]=arguments[o+2];if(!this._[x(507)](n))throw new Error("unknown type: "+n);for(i=this._[n],o=0,r=i[x(1849)];o<r;++o)i[o][x(160)][x(368)](e,t)},apply:function(n,e,x){const t=c;if(!this._[t(507)](n))throw new Error(t(612)+n);for(var o=this._[n],r=0,i=o[t(1849)];r<i;++r)o[r][t(160)][t(368)](e,x)}};function $s(n,e){const x=c;for(var t=0,o=n.length,r;t<o;++t)if((r=n[t])[x(1434)]===e)return r[x(160)]}function zo(n,e,x){const t=c;for(var o=0,r=n.length;o<r;++o)if(n[o][t(1434)]===e){n[o]=Fs,n=n[t(1250)](0,o).concat(n[t(1250)](o+1));break}return x!=null&&n.push({name:e,value:x}),n}var lx=c(1195);const Mo={svg:"http://www.w3.org/2000/svg",xhtml:lx,xlink:c(208),xml:c(1740),xmlns:c(624)};function Et(n){const e=c;var x=n+="",t=x[e(1733)](":");return t>=0&&(x=n[e(1250)](0,t))!==e(1414)&&(n=n[e(1250)](t+1)),Mo[e(507)](x)?{space:Mo[x],local:n}:n}function el(n){return function(){const e=I;var x=this[e(1856)],t=this[e(1389)];return t===lx&&x.documentElement[e(1389)]===lx?x.createElement(n):x[e(1296)](t,n)}}function nl(n){return function(){const e=I;return this[e(1856)][e(1296)](n.space,n[e(1380)])}}function vi(n){const e=c;var x=Et(n);return(x[e(1380)]?nl:el)(x)}function tl(){}function Ix(n){return n==null?tl:function(){return this[I(1218)](n)}}function xl(n){const e=c;typeof n!="function"&&(n=Ix(n));for(var x=this._groups,t=x.length,o=new Array(t),r=0;r<t;++r)for(var i=x[r],a=i[e(1849)],u=o[r]=new Array(a),s,f,l=0;l<a;++l)(s=i[l])&&(f=n[e(1754)](s,s[e(852)],l,i))&&("__data__"in s&&(f[e(852)]=s[e(852)]),u[l]=f);return new Ve(o,this[e(979)])}function ol(n){const e=c;return n==null?[]:Array[e(171)](n)?n:Array.from(n)}function rl(){return[]}function wi(n){return n==null?rl:function(){return this[I(942)](n)}}function il(n){return function(){return ol(n.apply(this,arguments))}}function al(n){const e=c;typeof n===e(842)?n=il(n):n=wi(n);for(var x=this[e(362)],t=x[e(1849)],o=[],r=[],i=0;i<t;++i)for(var a=x[i],u=a[e(1849)],s,f=0;f<u;++f)(s=a[f])&&(o.push(n[e(1754)](s,s[e(852)],f,a)),r[e(268)](s));return new Ve(o,r)}function pi(n){return function(){return this[I(1213)](n)}}function Ci(n){return function(e){return e[I(1213)](n)}}var cl=Array[c(985)][c(279)];function sl(n){return function(){const e=I;return cl[e(1754)](this[e(684)],n)}}function ll(){return this.firstElementChild}function dl(n){return this[c(1463)](n==null?ll:sl(typeof n=="function"?n:Ci(n)))}var ul=Array[c(985)][c(805)];function fl(){const n=c;return Array[n(1763)](this[n(684)])}function hl(n){return function(){return ul[I(1754)](this.children,n)}}function bl(n){const e=c;return this.selectAll(n==null?fl:hl(typeof n===e(842)?n:Ci(n)))}function gl(n){const e=c;typeof n!==e(842)&&(n=pi(n));for(var x=this._groups,t=x.length,o=new Array(t),r=0;r<t;++r)for(var i=x[r],a=i[e(1849)],u=o[r]=[],s,f=0;f<a;++f)(s=i[f])&&n.call(s,s[e(852)],f,i)&&u[e(268)](s);return new Ve(o,this[e(979)])}function zi(n){return new Array(n.length)}function yl(){const n=c;return new Ve(this[n(1853)]||this._groups[n(1197)](zi),this[n(979)])}function mt(n,e){const x=c;this[x(1856)]=n[x(1856)],this[x(1389)]=n.namespaceURI,this[x(779)]=null,this[x(443)]=n,this[x(852)]=e}mt.prototype={constructor:mt,appendChild:function(n){const e=c;return this[e(443)][e(436)](n,this[e(779)])},insertBefore:function(n,e){const x=c;return this._parent[x(436)](n,e)},querySelector:function(n){const e=c;return this[e(443)][e(1218)](n)},querySelectorAll:function(n){const e=c;return this[e(443)][e(942)](n)}};function ml(n){return function(){return n}}function vl(n,e,x,t,o,r){const i=c;for(var a=0,u,s=e.length,f=r.length;a<f;++a)(u=e[a])?(u[i(852)]=r[a],t[a]=u):x[a]=new mt(n,r[a]);for(;a<s;++a)(u=e[a])&&(o[a]=u)}function wl(n,e,x,t,o,r,i){const a=c;var u,s,f=new Map,l=e[a(1849)],g=r.length,b=new Array(l),h;for(u=0;u<l;++u)(s=e[u])&&(b[u]=h=i[a(1754)](s,s[a(852)],u,e)+"",f[a(632)](h)?o[u]=s:f[a(1527)](h,s));for(u=0;u<g;++u)h=i.call(n,r[u],u,r)+"",(s=f[a(1386)](h))?(t[u]=s,s.__data__=r[u],f.delete(h)):x[u]=new mt(n,r[u]);for(u=0;u<l;++u)(s=e[u])&&f[a(1386)](b[u])===s&&(o[u]=s)}function pl(n){return n.__data__}function Cl(n,e){const x=c;if(!arguments[x(1849)])return Array.from(this,pl);var t=e?wl:vl,o=this[x(979)],r=this[x(362)];typeof n!="function"&&(n=ml(n));for(var i=r[x(1849)],a=new Array(i),u=new Array(i),s=new Array(i),f=0;f<i;++f){var l=o[f],g=r[f],b=g[x(1849)],h=zl(n[x(1754)](l,l&&l[x(852)],f,o)),y=h.length,v=u[f]=new Array(y),w=a[f]=new Array(y),M=s[f]=new Array(b);t(l,g,v,w,M,h,e);for(var m=0,C=0,p,E;m<y;++m)if(p=v[m]){for(m>=C&&(C=m+1);!(E=w[C])&&++C<y;);p[x(779)]=E||null}}return a=new Ve(a,o),a[x(1853)]=u,a._exit=s,a}function zl(n){const e=c;return typeof n===e(325)&&e(1849)in n?n:Array[e(1763)](n)}function Ml(){const n=c;return new Ve(this._exit||this[n(362)][n(1197)](zi),this[n(979)])}function Bl(n,e,x){const t=c;var o=this.enter(),r=this,i=this.exit();return typeof n===t(842)?(o=n(o),o&&(o=o.selection())):o=o[t(544)](n+""),e!=null&&(r=e(r),r&&(r=r[t(1331)]())),x==null?i.remove():x(i),o&&r?o[t(1474)](r)[t(192)]():r}function Dl(n){const e=c;for(var x=n[e(1331)]?n[e(1331)]():n,t=this._groups,o=x[e(362)],r=t[e(1849)],i=o.length,a=Math[e(309)](r,i),u=new Array(r),s=0;s<a;++s)for(var f=t[s],l=o[s],g=f[e(1849)],b=u[s]=new Array(g),h,y=0;y<g;++y)(h=f[y]||l[y])&&(b[y]=h);for(;s<r;++s)u[s]=t[s];return new Ve(u,this[e(979)])}function Ll(){const n=c;for(var e=this._groups,x=-1,t=e[n(1849)];++x<t;)for(var o=e[x],r=o[n(1849)]-1,i=o[r],a;--r>=0;)(a=o[r])&&(i&&a[n(1249)](i)^4&&i[n(1080)].insertBefore(a,i),i=a);return this}function Nl(n){const e=c;n||(n=Sl);function x(g,b){return g&&b?n(g[I(852)],b.__data__):!g-!b}for(var t=this[e(362)],o=t.length,r=new Array(o),i=0;i<o;++i){for(var a=t[i],u=a[e(1849)],s=r[i]=new Array(u),f,l=0;l<u;++l)(f=a[l])&&(s[l]=f);s[e(522)](x)}return new Ve(r,this[e(979)])[e(192)]()}function Sl(n,e){return n<e?-1:n>e?1:n>=e?0:NaN}function Pl(){var n=arguments[0];return arguments[0]=this,n.apply(null,arguments),this}function El(){return Array[c(1763)](this)}function Il(){const n=c;for(var e=this._groups,x=0,t=e[n(1849)];x<t;++x)for(var o=e[x],r=0,i=o[n(1849)];r<i;++r){var a=o[r];if(a)return a}return null}function Al(){let n=0;for(const e of this)++n;return n}function jl(){return!this[c(1802)]()}function Yl(n){const e=c;for(var x=this[e(362)],t=0,o=x.length;t<o;++t)for(var r=x[t],i=0,a=r[e(1849)],u;i<a;++i)(u=r[i])&&n[e(1754)](u,u[e(852)],i,r);return this}function kl(n){return function(){this[I(808)](n)}}function Ol(n){return function(){const e=I;this.removeAttributeNS(n[e(1043)],n.local)}}function Ul(n,e){return function(){this[I(846)](n,e)}}function Tl(n,e){return function(){const x=I;this[x(1172)](n[x(1043)],n[x(1380)],e)}}function Gl(n,e){return function(){const x=I;var t=e.apply(this,arguments);t==null?this[x(808)](n):this[x(846)](n,t)}}function Hl(n,e){return function(){const x=I;var t=e[x(368)](this,arguments);t==null?this[x(1060)](n[x(1043)],n[x(1380)]):this[x(1172)](n[x(1043)],n[x(1380)],t)}}function _l(n,e){const x=c;var t=Et(n);if(arguments.length<2){var o=this[x(1802)]();return t.local?o[x(329)](t.space,t[x(1380)]):o.getAttribute(t)}return this[x(1464)]((e==null?t[x(1380)]?Ol:kl:typeof e===x(842)?t[x(1380)]?Hl:Gl:t[x(1380)]?Tl:Ul)(t,e))}function Mi(n){const e=c;return n.ownerDocument&&n[e(1856)][e(1227)]||n[e(1299)]&&n||n.defaultView}function Vl(n){return function(){const e=I;this.style[e(1792)](n)}}function ql(n,e,x){return function(){const t=I;this[t(165)][t(1005)](n,e,x)}}function Wl(n,e,x){return function(){const t=I;var o=e.apply(this,arguments);o==null?this[t(165)][t(1792)](n):this.style[t(1005)](n,o,x)}}function Xl(n,e,x){const t=c;return arguments.length>1?this[t(1464)]((e==null?Vl:typeof e=="function"?Wl:ql)(n,e,x??"")):en(this[t(1802)](),n)}function en(n,e){return n[c(165)].getPropertyValue(e)||Mi(n).getComputedStyle(n,null).getPropertyValue(e)}function Kl(n){return function(){delete this[n]}}function Zl(n,e){return function(){this[n]=e}}function Rl(n,e){return function(){var t=e[I(368)](this,arguments);t==null?delete this[n]:this[n]=t}}function Jl(n,e){const x=c;return arguments[x(1849)]>1?this[x(1464)]((e==null?Kl:typeof e===x(842)?Rl:Zl)(n,e)):this[x(1802)]()[n]}function Bi(n){const e=c;return n[e(578)]()[e(448)](/^|\s+/)}function Ax(n){return n[c(1732)]||new Di(n)}function Di(n){const e=c;this[e(1217)]=n,this[e(775)]=Bi(n[e(731)](e(786))||"")}Di[c(985)]={add:function(n){const e=c;var x=this[e(775)][e(1733)](n);x<0&&(this._names[e(268)](n),this._node[e(846)](e(786),this[e(775)][e(220)](" ")))},remove:function(n){const e=c;var x=this[e(775)][e(1733)](n);x>=0&&(this._names[e(1020)](x,1),this._node[e(846)](e(786),this[e(775)][e(220)](" ")))},contains:function(n){return this[c(775)].indexOf(n)>=0}};function Li(n,e){const x=c;for(var t=Ax(n),o=-1,r=e[x(1849)];++o<r;)t[x(654)](e[o])}function Ni(n,e){const x=c;for(var t=Ax(n),o=-1,r=e[x(1849)];++o<r;)t[x(229)](e[o])}function Fl(n){return function(){Li(this,n)}}function Ql(n){return function(){Ni(this,n)}}function $l(n,e){return function(){(e[I(368)](this,arguments)?Li:Ni)(this,n)}}function ed(n,e){const x=c;var t=Bi(n+"");if(arguments.length<2){for(var o=Ax(this[x(1802)]()),r=-1,i=t.length;++r<i;)if(!o.contains(t[r]))return!1;return!0}return this[x(1464)]((typeof e=="function"?$l:e?Fl:Ql)(t,e))}function nd(){this.textContent=""}function td(n){return function(){const e=I;this[e(1253)]=n}}function xd(n){return function(){const e=I;var x=n[e(368)](this,arguments);this[e(1253)]=x??""}}function od(n){const e=c;return arguments.length?this[e(1464)](n==null?nd:(typeof n=="function"?xd:td)(n)):this[e(1802)]()[e(1253)]}function rd(){this.innerHTML=""}function id(n){return function(){const e=I;this[e(837)]=n}}function ad(n){return function(){var x=n[I(368)](this,arguments);this.innerHTML=x??""}}function cd(n){const e=c;return arguments[e(1849)]?this[e(1464)](n==null?rd:(typeof n=="function"?ad:id)(n)):this[e(1802)]().innerHTML}function sd(){const n=c;this[n(1781)]&&this[n(1080)][n(1026)](this)}function ld(){return this[c(1464)](sd)}function dd(){const n=c;this[n(1368)]&&this[n(1080)][n(436)](this,this[n(1080)][n(244)])}function ud(){return this[c(1464)](dd)}function fd(n){const e=c;var x=typeof n===e(842)?n:vi(n);return this[e(1463)](function(){const t=e;return this[t(1026)](x[t(368)](this,arguments))})}function hd(){return null}function bd(n,e){const x=c;var t=typeof n===x(842)?n:vi(n),o=e==null?hd:typeof e===x(842)?e:Ix(e);return this.select(function(){const r=x;return this[r(436)](t[r(368)](this,arguments),o[r(368)](this,arguments)||null)})}function gd(){const n=c;var e=this[n(1080)];e&&e[n(1421)](this)}function yd(){return this[c(1464)](gd)}function md(){const n=c;var e=this[n(525)](!1),x=this.parentNode;return x?x[n(436)](e,this[n(1781)]):e}function vd(){const n=c;var e=this[n(525)](!0),x=this[n(1080)];return x?x[n(436)](e,this.nextSibling):e}function wd(n){return this[c(1463)](n?vd:md)}function pd(n){const e=c;return arguments[e(1849)]?this[e(359)]("__data__",n):this[e(1802)]()[e(852)]}function Cd(n){return function(e){const x=I;n[x(1754)](this,e,this[x(852)])}}function zd(n){const e=c;return n[e(578)]()[e(448)](/^|\s+/).map(function(x){const t=e;var o="",r=x[t(1733)](".");return r>=0&&(o=x[t(1250)](r+1),x=x[t(1250)](0,r)),{type:x,name:o}})}function Md(n){return function(){const e=I;var x=this[e(378)];if(x){for(var t=0,o=-1,r=x[e(1849)],i;t<r;++t)i=x[t],(!n[e(871)]||i.type===n[e(871)])&&i[e(1434)]===n[e(1434)]?this[e(1558)](i[e(871)],i[e(826)],i[e(950)]):x[++o]=i;++o?x[e(1849)]=o:delete this[e(378)]}}}function Bd(n,e,x){return function(){const t=I;var o=this[t(378)],r,i=Cd(e);if(o){for(var a=0,u=o.length;a<u;++a)if((r=o[a])[t(871)]===n[t(871)]&&r[t(1434)]===n[t(1434)]){this[t(1558)](r[t(871)],r[t(826)],r[t(950)]),this[t(423)](r.type,r[t(826)]=i,r[t(950)]=x),r.value=e;return}}this[t(423)](n[t(871)],i,x),r={type:n[t(871)],name:n[t(1434)],value:e,listener:i,options:x},o?o[t(268)](r):this[t(378)]=[r]}}function Dd(n,e,x){const t=c;var o=zd(n+""),r,i=o[t(1849)],a;if(arguments.length<2){var u=this[t(1802)]().__on;if(u){for(var s=0,f=u[t(1849)],l;s<f;++s)for(r=0,l=u[s];r<i;++r)if((a=o[r])[t(871)]===l[t(871)]&&a[t(1434)]===l[t(1434)])return l[t(160)]}return}for(u=e?Bd:Md,r=0;r<i;++r)this.each(u(o[r],e,x));return this}function Si(n,e,x){const t=c;var o=Mi(n),r=o[t(446)];typeof r===t(842)?r=new r(e,x):(r=o[t(1299)][t(854)](t(1670)),x?(r.initEvent(e,x[t(947)],x.cancelable),r.detail=x[t(1672)]):r[t(1009)](e,!1,!1)),n.dispatchEvent(r)}function Ld(n,e){return function(){return Si(this,n,e)}}function Nd(n,e){return function(){return Si(this,n,e[I(368)](this,arguments))}}function Sd(n,e){const x=c;return this[x(1464)]((typeof e===x(842)?Nd:Ld)(n,e))}function*Pd(){const n=c;for(var e=this[n(362)],x=0,t=e[n(1849)];x<t;++x)for(var o=e[x],r=0,i=o[n(1849)],a;r<i;++r)(a=o[r])&&(yield a)}var Pi=[null];function Ve(n,e){const x=c;this[x(362)]=n,this[x(979)]=e}function Bn(){const n=c;return new Ve([[document[n(282)]]],Pi)}function Ed(){return this}Ve[c(985)]=Bn[c(985)]={constructor:Ve,select:xl,selectAll:al,selectChild:dl,selectChildren:bl,filter:gl,data:Cl,enter:yl,exit:Ml,join:Bl,merge:Dl,selection:Ed,order:Ll,sort:Nl,call:Pl,nodes:El,node:Il,size:Al,empty:jl,each:Yl,attr:_l,style:Xl,property:Jl,classed:ed,text:od,html:cd,raise:ld,lower:ud,append:fd,insert:bd,remove:yd,clone:wd,datum:pd,on:Dd,dispatch:Sd,[Symbol[c(1532)]]:Pd};function _e(n){const e=c;return typeof n=="string"?new Ve([[document.querySelector(n)]],[document[e(282)]]):new Ve([[n]],Pi)}function Id(n){const e=c;let x;for(;x=n[e(1355)];)n=x;return n}function Ke(n,e){const x=c;if(n=Id(n),e===void 0&&(e=n[x(186)]),e){var t=e[x(1412)]||e;if(t.createSVGPoint){var o=t[x(239)]();return o.x=n[x(363)],o.y=n[x(505)],o=o[x(1812)](e[x(1035)]()[x(1751)]()),[o.x,o.y]}if(e[x(202)]){var r=e[x(202)]();return[n[x(363)]-r[x(1407)]-e[x(1343)],n[x(505)]-r.top-e[x(1644)]]}}return[n[x(305)],n[x(1105)]]}const Ad={passive:!1},Dn={capture:!0,passive:!1};function Xt(n){n[c(738)]()}function J0(n){const e=c;n[e(550)](),n[e(738)]()}function Ei(n){const e=c;var x=n[e(1299)].documentElement,t=_e(n).on(e(1682),J0,Dn);e(698)in x?t.on(e(1301),J0,Dn):(x[e(598)]=x[e(165)][e(694)],x[e(165)][e(694)]=e(1473))}function Ii(n,e){const x=c;var t=n.document.documentElement,o=_e(n).on(x(1682),null);e&&(o.on(x(1275),J0,Dn),setTimeout(function(){const r=x;o.on(r(1275),null)},0)),x(698)in t?o.on(x(1301),null):(t[x(165)][x(694)]=t.__noselect,delete t[x(598)])}const Kn=n=>()=>n;function dx(n,{sourceEvent:e,subject:x,target:t,identifier:o,active:r,x:i,y:a,dx:u,dy:s,dispatch:f}){Object[c(1449)](this,{type:{value:n,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},subject:{value:x,enumerable:!0,configurable:!0},target:{value:t,enumerable:!0,configurable:!0},identifier:{value:o,enumerable:!0,configurable:!0},active:{value:r,enumerable:!0,configurable:!0},x:{value:i,enumerable:!0,configurable:!0},y:{value:a,enumerable:!0,configurable:!0},dx:{value:u,enumerable:!0,configurable:!0},dy:{value:s,enumerable:!0,configurable:!0},_:{value:f}})}dx[c(985)].on=function(){const n=c;var e=this._.on[n(368)](this._,arguments);return e===this._?this:e};function jd(n){const e=c;return!n.ctrlKey&&!n[e(1141)]}function Yd(){return this[c(1080)]}function kd(n,e){return e??{x:n.x,y:n.y}}function Od(){return navigator.maxTouchPoints||"ontouchstart"in this}function Ai(){const n=c;var e=jd,x=Yd,t=kd,o=Od,r={},i=Pt(n(1460),n(765),n(901)),a=0,u,s,f,l,g=0;function b(p){const E=n;p.on(E(879),h).filter(o).on("touchstart.drag",w).on(E(851),M,Ad).on(E(485),m).style(E(1857),E(1473)).style(E(1603),E(1609))}function h(p,E){const O=n;if(!(l||!e[O(1754)](this,p,E))){var U=C(this,x.call(this,p,E),p,E,O(1780));U&&(_e(p[O(438)]).on("mousemove.drag",y,Dn).on(O(1471),v,Dn),Ei(p[O(438)]),Xt(p),f=!1,u=p[O(363)],s=p[O(505)],U("start",p))}}function y(p){const E=n;if(J0(p),!f){var O=p[E(363)]-u,U=p.clientY-s;f=O*O+U*U>g}r.mouse(E(765),p)}function v(p){const E=n;_e(p.view).on(E(515),null),Ii(p[E(438)],f),J0(p),r[E(1780)]("end",p)}function w(p,E){const O=n;if(e[O(1754)](this,p,E)){var U=p[O(1714)],Y=x.call(this,p,E),W=U[O(1849)],Q,R;for(Q=0;Q<W;++Q)(R=C(this,Y,p,E,U[Q][O(1847)],U[Q]))&&(Xt(p),R(O(1460),p,U[Q]))}}function M(p){const E=n;var O=p[E(1714)],U=O.length,Y,W;for(Y=0;Y<U;++Y)(W=r[O[Y][E(1847)]])&&(J0(p),W(E(765),p,O[Y]))}function m(p){const E=n;var O=p.changedTouches,U=O.length,Y,W;for(l&&clearTimeout(l),l=setTimeout(function(){l=null},500),Y=0;Y<U;++Y)(W=r[O[Y][E(1847)]])&&(Xt(p),W(E(901),p,O[Y]))}function C(p,E,O,U,Y,W){const Q=n;var R=i[Q(1054)](),X=Ke(W||O,E),V,L,D;if((D=t[Q(1754)](p,new dx(Q(214),{sourceEvent:O,target:b,identifier:Y,active:a,x:X[0],y:X[1],dx:0,dy:0,dispatch:R}),U))!=null)return V=D.x-X[0]||0,L=D.y-X[1]||0,function B(j,A,S){const Z=Q;var K=X,H;switch(j){case"start":r[Y]=B,H=a++;break;case"end":delete r[Y],--a;case Z(765):X=Ke(S||A,E),H=a;break}R[Z(1754)](j,p,new dx(j,{sourceEvent:A,subject:D,target:b,identifier:Y,active:H,x:X[0]+V,y:X[1]+L,dx:X[0]-K[0],dy:X[1]-K[1],dispatch:R}),U)}}return b[n(805)]=function(p){const E=n;return arguments.length?(e=typeof p===E(842)?p:Kn(!!p),b):e},b.container=function(p){const E=n;return arguments[E(1849)]?(x=typeof p===E(842)?p:Kn(p),b):x},b[n(1490)]=function(p){const E=n;return arguments[E(1849)]?(t=typeof p===E(842)?p:Kn(p),b):t},b[n(377)]=function(p){const E=n;return arguments[E(1849)]?(o=typeof p===E(842)?p:Kn(!!p),b):o},b.on=function(){const p=n;var E=i.on[p(368)](i,arguments);return E===i?b:E},b[n(1291)]=function(p){return arguments[n(1849)]?(g=(p=+p)*p,b):Math.sqrt(g)},b}function jx(n,e,x){const t=c;n[t(985)]=e.prototype=x,x.constructor=n}function ji(n,e){var t=Object.create(n[c(985)]);for(var o in e)t[o]=e[o];return t}function kn(){}var Ln=.7,vt=1/Ln,F0="\\s*([+-]?\\d+)\\s*",Nn=c(415),n0=c(1515),Ud=/^#([0-9a-f]{3,8})$/,Td=new RegExp(c(392)+F0+","+F0+","+F0+c(877)),Gd=new RegExp(c(392)+n0+","+n0+","+n0+"\\)$"),Hd=new RegExp("^rgba\\("+F0+","+F0+","+F0+","+Nn+"\\)$"),_d=new RegExp("^rgba\\("+n0+","+n0+","+n0+","+Nn+c(877)),Vd=new RegExp(c(1705)+Nn+","+n0+","+n0+c(877)),qd=new RegExp("^hsla\\("+Nn+","+n0+","+n0+","+Nn+c(877)),Bo={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};jx(kn,Y0,{copy(n){return Object.assign(new this.constructor,this,n)},displayable(){const n=c;return this[n(1162)]()[n(621)]()},hex:Do,formatHex:Do,formatHex8:Wd,formatHsl:Xd,formatRgb:Lo,toString:Lo});function Do(){return this.rgb().formatHex()}function Wd(){const n=c;return this[n(1162)]()[n(1251)]()}function Xd(){const n=c;return Yi(this)[n(936)]()}function Lo(){const n=c;return this[n(1162)]()[n(1369)]()}function Y0(n){const e=c;var x,t;return n=(n+"")[e(578)]()[e(472)](),(x=Ud[e(542)](n))?(t=x[1].length,x=parseInt(x[1],16),t===6?No(x):t===3?new Te(x>>8&15|x>>4&240,x>>4&15|x&240,(x&15)<<4|x&15,1):t===8?Zn(x>>24&255,x>>16&255,x>>8&255,(x&255)/255):t===4?Zn(x>>12&15|x>>8&240,x>>8&15|x>>4&240,x>>4&15|x&240,((x&15)<<4|x&15)/255):null):(x=Td.exec(n))?new Te(x[1],x[2],x[3],1):(x=Gd[e(542)](n))?new Te(x[1]*255/100,x[2]*255/100,x[3]*255/100,1):(x=Hd[e(542)](n))?Zn(x[1],x[2],x[3],x[4]):(x=_d.exec(n))?Zn(x[1]*255/100,x[2]*255/100,x[3]*255/100,x[4]):(x=Vd[e(542)](n))?Eo(x[1],x[2]/100,x[3]/100,1):(x=qd[e(542)](n))?Eo(x[1],x[2]/100,x[3]/100,x[4]):Bo[e(507)](n)?No(Bo[n]):n===e(759)?new Te(NaN,NaN,NaN,0):null}function No(n){return new Te(n>>16&255,n>>8&255,n&255,1)}function Zn(n,e,x,t){return t<=0&&(n=e=x=NaN),new Te(n,e,x,t)}function Kd(n){const e=c;return n instanceof kn||(n=Y0(n)),n?(n=n.rgb(),new Te(n.r,n.g,n.b,n[e(1467)])):new Te}function ux(n,e,x,t){return arguments[c(1849)]===1?Kd(n):new Te(n,e,x,t??1)}function Te(n,e,x,t){const o=c;this.r=+n,this.g=+e,this.b=+x,this[o(1467)]=+t}jx(Te,ux,ji(kn,{brighter(n){const e=c;return n=n==null?vt:Math.pow(vt,n),new Te(this.r*n,this.g*n,this.b*n,this[e(1467)])},darker(n){const e=c;return n=n==null?Ln:Math[e(277)](Ln,n),new Te(this.r*n,this.g*n,this.b*n,this.opacity)},rgb(){return this},clamp(){const n=c;return new Te(I0(this.r),I0(this.g),I0(this.b),wt(this[n(1467)]))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:So,formatHex:So,formatHex8:Zd,formatRgb:Po,toString:Po}));function So(){return"#"+E0(this.r)+E0(this.g)+E0(this.b)}function Zd(){const n=c;return"#"+E0(this.r)+E0(this.g)+E0(this.b)+E0((isNaN(this[n(1467)])?1:this[n(1467)])*255)}function Po(){const n=c,e=wt(this[n(1467)]);return""+(e===1?"rgb(":n(296))+I0(this.r)+", "+I0(this.g)+", "+I0(this.b)+(e===1?")":", "+e+")")}function wt(n){const e=c;return isNaN(n)?1:Math[e(1204)](0,Math[e(309)](1,n))}function I0(n){const e=c;return Math[e(1204)](0,Math[e(309)](255,Math[e(983)](n)||0))}function E0(n){const e=c;return n=I0(n),(n<16?"0":"")+n[e(1262)](16)}function Eo(n,e,x,t){return t<=0?n=e=x=NaN:x<=0||x>=1?n=e=NaN:e<=0&&(n=NaN),new Ze(n,e,x,t)}function Yi(n){const e=c;if(n instanceof Ze)return new Ze(n.h,n.s,n.l,n[e(1467)]);if(n instanceof kn||(n=Y0(n)),!n)return new Ze;if(n instanceof Ze)return n;n=n[e(1162)]();var x=n.r/255,t=n.g/255,o=n.b/255,r=Math.min(x,t,o),i=Math[e(1204)](x,t,o),a=NaN,u=i-r,s=(i+r)/2;return u?(x===i?a=(t-o)/u+(t<o)*6:t===i?a=(o-x)/u+2:a=(x-t)/u+4,u/=s<.5?i+r:2-i-r,a*=60):u=s>0&&s<1?0:a,new Ze(a,u,s,n[e(1467)])}function Rd(n,e,x,t){return arguments[c(1849)]===1?Yi(n):new Ze(n,e,x,t??1)}function Ze(n,e,x,t){const o=c;this.h=+n,this.s=+e,this.l=+x,this[o(1467)]=+t}jx(Ze,Rd,ji(kn,{brighter(n){const e=c;return n=n==null?vt:Math.pow(vt,n),new Ze(this.h,this.s,this.l*n,this[e(1467)])},darker(n){const e=c;return n=n==null?Ln:Math[e(277)](Ln,n),new Ze(this.h,this.s,this.l*n,this[e(1467)])},rgb(){var n=this.h%360+(this.h<0)*360,e=isNaN(n)||isNaN(this.s)?0:this.s,x=this.l,t=x+(x<.5?x:1-x)*e,o=2*x-t;return new Te(Kt(n>=240?n-240:n+120,o,t),Kt(n,o,t),Kt(n<120?n+240:n-120,o,t),this.opacity)},clamp(){return new Ze(Io(this.h),Rn(this.s),Rn(this.l),wt(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const n=c,e=wt(this[n(1467)]);return""+n(e===1?930:1470)+Io(this.h)+", "+Rn(this.s)*100+n(1773)+Rn(this.l)*100+"%"+(e===1?")":", "+e+")")}}));function Io(n){return n=(n||0)%360,n<0?n+360:n}function Rn(n){const e=c;return Math[e(1204)](0,Math[e(309)](1,n||0))}function Kt(n,e,x){return(n<60?e+(x-e)*n/60:n<180?x:n<240?e+(x-e)*(240-n)/60:e)*255}const Yx=n=>()=>n;function Jd(n,e){return function(x){return n+x*e}}function Fd(n,e,x){const t=c;return n=Math[t(277)](n,x),e=Math[t(277)](e,x)-n,x=1/x,function(o){return Math[t(277)](n+o*e,x)}}function Qd(n){return(n=+n)==1?ki:function(e,x){return x-e?Fd(e,x,n):Yx(isNaN(e)?x:e)}}function ki(n,e){var x=e-n;return x?Jd(n,x):Yx(isNaN(n)?e:n)}const pt=(function n(e){var x=Qd(e);function t(o,r){const i=I;var a=x((o=ux(o)).r,(r=ux(r)).r),u=x(o.g,r.g),s=x(o.b,r.b),f=ki(o[i(1467)],r.opacity);return function(l){const g=i;return o.r=a(l),o.g=u(l),o.b=s(l),o[g(1467)]=f(l),o+""}}return t.gamma=n,t})(1);function $d(n,e){const x=c;e||(e=[]);var t=n?Math[x(309)](e.length,n.length):0,o=e.slice(),r;return function(i){for(r=0;r<t;++r)o[r]=n[r]*(1-i)+e[r]*i;return o}}function eu(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function nu(n,e){const x=c;var t=e?e.length:0,o=n?Math[x(309)](t,n[x(1849)]):0,r=new Array(o),i=new Array(t),a;for(a=0;a<o;++a)r[a]=zn(n[a],e[a]);for(;a<t;++a)i[a]=e[a];return function(u){for(a=0;a<o;++a)i[a]=r[a](u);return i}}function tu(n,e){var x=new Date;return n=+n,e=+e,function(t){return x.setTime(n*(1-t)+e*t),x}}function e0(n,e){return n=+n,e=+e,function(x){return n*(1-x)+e*x}}function xu(n,e){const x=c;var t={},o={},r;(n===null||typeof n!==x(325))&&(n={}),(e===null||typeof e!="object")&&(e={});for(r in e)r in n?t[r]=zn(n[r],e[r]):o[r]=e[r];return function(i){for(r in t)o[r]=t[r](i);return o}}var fx=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Zt=new RegExp(fx[c(344)],"g");function ou(n){return function(){return n}}function ru(n){return function(e){return n(e)+""}}function Oi(n,e){const x=c;var t=fx[x(905)]=Zt.lastIndex=0,o,r,i,a=-1,u=[],s=[];for(n=n+"",e=e+"";(o=fx[x(542)](n))&&(r=Zt.exec(e));)(i=r.index)>t&&(i=e[x(1250)](t,i),u[a]?u[a]+=i:u[++a]=i),(o=o[0])===(r=r[0])?u[a]?u[a]+=r:u[++a]=r:(u[++a]=null,s[x(268)]({i:a,x:e0(o,r)})),t=Zt[x(905)];return t<e[x(1849)]&&(i=e[x(1250)](t),u[a]?u[a]+=i:u[++a]=i),u[x(1849)]<2?s[0]?ru(s[0].x):ou(e):(e=s[x(1849)],function(f){const l=x;for(var g=0,b;g<e;++g)u[(b=s[g]).i]=b.x(f);return u[l(220)]("")})}function zn(n,e){const x=c;var t=typeof e,o;return e==null||t===x(724)?Yx(e):(t===x(528)?e0:t===x(1077)?(o=Y0(e))?(e=o,pt):Oi:e instanceof Y0?pt:e instanceof Date?tu:eu(e)?$d:Array[x(171)](e)?nu:typeof e[x(921)]!="function"&&typeof e[x(1262)]!==x(842)||isNaN(e)?xu:e0)(n,e)}var Ao=180/Math.PI,hx={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Ui(n,e,x,t,o,r){const i=c;var a,u,s;return(a=Math.sqrt(n*n+e*e))&&(n/=a,e/=a),(s=n*x+e*t)&&(x-=n*s,t-=e*s),(u=Math.sqrt(x*x+t*t))&&(x/=u,t/=u,s/=u),n*t<e*x&&(n=-n,e=-e,s=-s,a=-a),{translateX:o,translateY:r,rotate:Math[i(1065)](e,n)*Ao,skewX:Math[i(1377)](s)*Ao,scaleX:a,scaleY:u}}var Jn;function iu(n){const e=c,x=new(typeof DOMMatrix===e(842)?DOMMatrix:WebKitCSSMatrix)(n+"");return x[e(501)]?hx:Ui(x.a,x.b,x.c,x.d,x.e,x.f)}function au(n){const e=c;return n==null||(Jn||(Jn=document[e(1296)](e(205),"g")),Jn[e(846)](e(1115),n),!(n=Jn.transform[e(1493)][e(715)]()))?hx:(n=n[e(1391)],Ui(n.a,n.b,n.c,n.d,n.e,n.f))}function Ti(n,e,x,t){function o(s){const f=I;return s[f(1849)]?s[f(1076)]()+" ":""}function r(s,f,l,g,b,h){const y=I;if(s!==l||f!==g){var v=b[y(268)]("translate(",null,e,null,x);h.push({i:v-4,x:e0(s,l)},{i:v-2,x:e0(f,g)})}else(l||g)&&b[y(268)](y(207)+l+e+g+x)}function i(s,f,l,g){const b=I;s!==f?(s-f>180?f+=360:f-s>180&&(s+=360),g[b(268)]({i:l[b(268)](o(l)+b(1084),null,t)-2,x:e0(s,f)})):f&&l.push(o(l)+b(1084)+f+t)}function a(s,f,l,g){const b=I;s!==f?g[b(268)]({i:l[b(268)](o(l)+b(1329),null,t)-2,x:e0(s,f)}):f&&l[b(268)](o(l)+b(1329)+f+t)}function u(s,f,l,g,b,h){const y=I;if(s!==l||f!==g){var v=b.push(o(b)+"scale(",null,",",null,")");h.push({i:v-4,x:e0(s,l)},{i:v-2,x:e0(f,g)})}else(l!==1||g!==1)&&b[y(268)](o(b)+y(163)+l+","+g+")")}return function(s,f){const l=I;var g=[],b=[];return s=n(s),f=n(f),r(s[l(1174)],s.translateY,f.translateX,f[l(1779)],g,b),i(s[l(447)],f[l(447)],g,b),a(s.skewX,f.skewX,g,b),u(s[l(679)],s[l(1440)],f[l(679)],f[l(1440)],g,b),s=f=null,function(h){const y=l;for(var v=-1,w=b[y(1849)],M;++v<w;)g[(M=b[v]).i]=M.x(h);return g[y(220)]("")}}}var cu=Ti(iu,c(1349),c(345),c(611)),su=Ti(au,", ",")",")"),lu=1e-12;function jo(n){return((n=Math[c(442)](n))+1/n)/2}function du(n){return((n=Math[c(442)](n))-1/n)/2}function uu(n){return((n=Math[c(442)](2*n))-1)/(n+1)}const lt=(function n(e,x,t){function o(r,i){const a=I;var u=r[0],s=r[1],f=r[2],l=i[0],g=i[1],b=i[2],h=l-u,y=g-s,v=h*h+y*y,w,M;if(v<lu)M=Math.log(b/f)/e,w=function(U){const Y=I;return[u+U*h,s+U*y,f*Math[Y(442)](e*U*M)]};else{var m=Math[a(1594)](v),C=(b*b-f*f+t*v)/(2*f*x*m),p=(b*b-f*f-t*v)/(2*b*x*m),E=Math.log(Math[a(1594)](C*C+1)-C),O=Math.log(Math[a(1594)](p*p+1)-p);M=(O-E)/e,w=function(U){var Y=U*M,W=jo(E),Q=f/(x*m)*(W*uu(e*Y+E)-du(E));return[u+Q*h,s+Q*y,f*W/jo(e*Y+E)]}}return w.duration=M*1e3*e/Math[a(1500)],w}return o.rho=function(r){var a=Math[I(1204)](.001,+r),u=a*a,s=u*u;return n(a,u,s)},o})(Math.SQRT2,2,4);var nn=0,pn=0,vn=0,Gi=1e3,Ct,Cn,zt=0,k0=0,It=0,Sn=typeof performance=="object"&&performance[c(1416)]?performance:Date,Hi=typeof window===c(325)&&window[c(342)]?window.requestAnimationFrame[c(1546)](window):function(n){setTimeout(n,17)};function kx(){const n=c;return k0||(Hi(fu),k0=Sn[n(1416)]()+It)}function fu(){k0=0}function Mt(){const n=c;this[n(1410)]=this[n(1127)]=this._next=null}Mt[c(985)]=_i.prototype={constructor:Mt,restart:function(n,e,x){const t=c;if(typeof n!="function")throw new TypeError(t(601));x=(x==null?kx():+x)+(e==null?0:+e),!this[t(779)]&&Cn!==this&&(Cn?Cn[t(779)]=this:Ct=this,Cn=this),this[t(1410)]=n,this[t(1127)]=x,bx()},stop:function(){const n=c;this[n(1410)]&&(this[n(1410)]=null,this[n(1127)]=1/0,bx())}};function _i(n,e,x){const t=c;var o=new Mt;return o[t(935)](n,e,x),o}function hu(){const n=c;kx(),++nn;for(var e=Ct,x;e;)(x=k0-e._time)>=0&&e._call[n(1754)](void 0,x),e=e[n(779)];--nn}function Yo(){k0=(zt=Sn[c(1416)]())+It,nn=pn=0;try{hu()}finally{nn=0,gu(),k0=0}}function bu(){var n=Sn.now(),e=n-zt;e>Gi&&(It-=e,zt=n)}function gu(){const n=c;for(var e,x=Ct,t,o=1/0;x;)x[n(1410)]?(o>x._time&&(o=x[n(1127)]),e=x,x=x[n(779)]):(t=x[n(779)],x[n(779)]=null,x=e?e._next=t:Ct=t);Cn=e,bx(o)}function bx(n){const e=c;if(!nn){pn&&(pn=clearTimeout(pn));var x=n-k0;x>24?(n<1/0&&(pn=setTimeout(Yo,n-Sn[e(1416)]()-It)),vn&&(vn=clearInterval(vn))):(vn||(zt=Sn[e(1416)](),vn=setInterval(bu,Gi)),nn=1,Hi(Yo))}}function ko(n,e,x){var t=new Mt;return e=e==null?0:+e,t.restart(o=>{t[I(652)](),n(o+e)},e,x),t}var yu=Pt(c(1460),c(901),c(932),c(861)),mu=[],Vi=0,Oo=1,gx=2,dt=3,Uo=4,yx=5,ut=6;function At(n,e,x,t,o,r){const i=c;var a=n[i(1427)];if(!a)n[i(1427)]={};else if(x in a)return;vu(n,x,{name:e,index:t,group:o,on:yu,tween:mu,time:r.time,delay:r[i(1852)],duration:r[i(794)],ease:r[i(1260)],timer:null,state:Vi})}function Ox(n,e){const x=c;var t=Fe(n,e);if(t.state>Vi)throw new Error(x(194));return t}function t0(n,e){const x=c;var t=Fe(n,e);if(t[x(692)]>dt)throw new Error("too late; already running");return t}function Fe(n,e){const x=c;var t=n.__transition;if(!t||!(t=t[e]))throw new Error(x(281));return t}function vu(n,e,x){const t=c;var o=n.__transition,r;o[e]=x,x[t(1098)]=_i(i,0,x[t(511)]);function i(f){const l=t;x[l(692)]=Oo,x[l(1098)].restart(a,x.delay,x.time),x[l(1852)]<=f&&a(f-x[l(1852)])}function a(f){const l=t;var g,b,h,y;if(x[l(692)]!==Oo)return s();for(g in o)if(y=o[g],y[l(1434)]===x[l(1434)]){if(y[l(692)]===dt)return ko(a);y[l(692)]===Uo?(y.state=ut,y[l(1098)][l(652)](),y.on[l(1754)]("interrupt",n,n[l(852)],y[l(470)],y.group),delete o[g]):+g<e&&(y[l(692)]=ut,y[l(1098)][l(652)](),y.on.call(l(932),n,n[l(852)],y[l(470)],y[l(898)]),delete o[g])}if(ko(function(){const v=l;x[v(692)]===dt&&(x[v(692)]=Uo,x[v(1098)].restart(u,x[v(1852)],x[v(511)]),u(f))}),x[l(692)]=gx,x.on[l(1754)](l(1460),n,n[l(852)],x.index,x[l(898)]),x[l(692)]===gx){for(x[l(692)]=dt,r=new Array(h=x[l(1233)][l(1849)]),g=0,b=-1;g<h;++g)(y=x[l(1233)][g][l(160)][l(1754)](n,n[l(852)],x[l(470)],x.group))&&(r[++b]=y);r[l(1849)]=b+1}}function u(f){const l=t;for(var g=f<x.duration?x[l(1260)][l(1754)](null,f/x.duration):(x.timer[l(935)](s),x[l(692)]=yx,1),b=-1,h=r[l(1849)];++b<h;)r[b][l(1754)](n,g);x[l(692)]===yx&&(x.on[l(1754)](l(901),n,n[l(852)],x.index,x.group),s())}function s(){const f=t;x[f(692)]=ut,x[f(1098)][f(652)](),delete o[e];for(var l in o)return;delete n[f(1427)]}}function ft(n,e){const x=c;var t=n[x(1427)],o,r,i=!0,a;if(t){e=e==null?null:e+"";for(a in t){if((o=t[a])[x(1434)]!==e){i=!1;continue}r=o[x(692)]>gx&&o[x(692)]<yx,o[x(692)]=ut,o[x(1098)][x(652)](),o.on.call(r?"interrupt":x(932),n,n[x(852)],o[x(470)],o[x(898)]),delete t[a]}i&&delete n.__transition}}function wu(n){return this[c(1464)](function(){ft(this,n)})}function pu(n,e){var x,t;return function(){const o=I;var r=t0(this,n),i=r[o(1233)];if(i!==x){t=x=i;for(var a=0,u=t[o(1849)];a<u;++a)if(t[a][o(1434)]===e){t=t[o(1250)](),t[o(1020)](a,1);break}}r[o(1233)]=t}}function Cu(n,e,x){const t=c;var o,r;if(typeof x!==t(842))throw new Error;return function(){const i=t;var a=t0(this,n),u=a[i(1233)];if(u!==o){r=(o=u).slice();for(var s={name:e,value:x},f=0,l=r.length;f<l;++f)if(r[f][i(1434)]===e){r[f]=s;break}f===l&&r[i(268)](s)}a[i(1233)]=r}}function zu(n,e){const x=c;var t=this[x(440)];if(n+="",arguments[x(1849)]<2){for(var o=Fe(this.node(),t)[x(1233)],r=0,i=o[x(1849)],a;r<i;++r)if((a=o[r])[x(1434)]===n)return a[x(160)];return null}return this[x(1464)]((e==null?pu:Cu)(t,n,e))}function Ux(n,e,x){const t=c;var o=n[t(440)];return n[t(1464)](function(){const r=t;var i=t0(this,o);(i[r(160)]||(i[r(160)]={}))[e]=x[r(368)](this,arguments)}),function(r){const i=t;return Fe(r,o)[i(160)][e]}}function qi(n,e){const x=c;var t;return(typeof e===x(528)?e0:e instanceof Y0?pt:(t=Y0(e))?(e=t,pt):Oi)(n,e)}function Mu(n){return function(){this[I(808)](n)}}function Bu(n){return function(){const e=I;this[e(1060)](n[e(1043)],n[e(1380)])}}function Du(n,e,x){var t,o=x+"",r;return function(){var a=this[I(731)](n);return a===o?null:a===t?r:r=e(t=a,x)}}function Lu(n,e,x){var t,o=x+"",r;return function(){const i=I;var a=this.getAttributeNS(n[i(1043)],n[i(1380)]);return a===o?null:a===t?r:r=e(t=a,x)}}function Nu(n,e,x){var t,o,r;return function(){var i,a=x(this),u;return a==null?void this.removeAttribute(n):(i=this.getAttribute(n),u=a+"",i===u?null:i===t&&u===o?r:(o=u,r=e(t=i,a)))}}function Su(n,e,x){var t,o,r;return function(){const i=I;var a,u=x(this),s;return u==null?void this.removeAttributeNS(n[i(1043)],n[i(1380)]):(a=this[i(329)](n.space,n[i(1380)]),s=u+"",a===s?null:a===t&&s===o?r:(o=s,r=e(t=a,u)))}}function Pu(n,e){const x=c;var t=Et(n),o=t==="transform"?su:qi;return this[x(184)](n,typeof e===x(842)?(t.local?Su:Nu)(t,o,Ux(this,x(1623)+n,e)):e==null?(t[x(1380)]?Bu:Mu)(t):(t[x(1380)]?Lu:Du)(t,o,e))}function Eu(n,e){return function(x){this[I(846)](n,e.call(this,x))}}function Iu(n,e){return function(x){const t=I;this[t(1172)](n[t(1043)],n[t(1380)],e[t(1754)](this,x))}}function Au(n,e){var x,t;function o(){var r=e.apply(this,arguments);return r!==t&&(x=(t=r)&&Iu(n,r)),x}return o._value=e,o}function ju(n,e){const x=c;var t,o;function r(){var a=e[I(368)](this,arguments);return a!==o&&(t=(o=a)&&Eu(n,a)),t}return r[x(1277)]=e,r}function Yu(n,e){const x=c;var t="attr."+n;if(arguments[x(1849)]<2)return(t=this[x(1233)](t))&&t[x(1277)];if(e==null)return this[x(1233)](t,null);if(typeof e!==x(842))throw new Error;var o=Et(n);return this.tween(t,(o[x(1380)]?Au:ju)(o,e))}function ku(n,e){return function(){const x=I;Ox(this,n)[x(1852)]=+e[x(368)](this,arguments)}}function Ou(n,e){return e=+e,function(){const x=I;Ox(this,n)[x(1852)]=e}}function Uu(n){const e=c;var x=this[e(440)];return arguments[e(1849)]?this[e(1464)]((typeof n===e(842)?ku:Ou)(x,n)):Fe(this[e(1802)](),x)[e(1852)]}function Tu(n,e){return function(){const x=I;t0(this,n)[x(794)]=+e.apply(this,arguments)}}function Gu(n,e){return e=+e,function(){t0(this,n).duration=e}}function Hu(n){const e=c;var x=this[e(440)];return arguments.length?this[e(1464)]((typeof n===e(842)?Tu:Gu)(x,n)):Fe(this.node(),x)[e(794)]}function _u(n,e){if(typeof e!==c(842))throw new Error;return function(){t0(this,n).ease=e}}function Vu(n){const e=c;var x=this[e(440)];return arguments[e(1849)]?this[e(1464)](_u(x,n)):Fe(this[e(1802)](),x)[e(1260)]}function qu(n,e){return function(){const x=I;var t=e[x(368)](this,arguments);if(typeof t!==x(842))throw new Error;t0(this,n)[x(1260)]=t}}function Wu(n){const e=c;if(typeof n!==e(842))throw new Error;return this[e(1464)](qu(this[e(440)],n))}function Xu(n){const e=c;typeof n!="function"&&(n=pi(n));for(var x=this[e(362)],t=x.length,o=new Array(t),r=0;r<t;++r)for(var i=x[r],a=i[e(1849)],u=o[r]=[],s,f=0;f<a;++f)(s=i[f])&&n[e(1754)](s,s[e(852)],f,i)&&u[e(268)](s);return new c0(o,this[e(979)],this[e(839)],this._id)}function Ku(n){const e=c;if(n[e(440)]!==this[e(440)])throw new Error;for(var x=this[e(362)],t=n[e(362)],o=x[e(1849)],r=t.length,i=Math.min(o,r),a=new Array(o),u=0;u<i;++u)for(var s=x[u],f=t[u],l=s.length,g=a[u]=new Array(l),b,h=0;h<l;++h)(b=s[h]||f[h])&&(g[h]=b);for(;u<o;++u)a[u]=x[u];return new c0(a,this[e(979)],this[e(839)],this[e(440)])}function Zu(n){const e=c;return(n+"")[e(578)]()[e(448)](/^|\s+/)[e(688)](function(x){const t=e;var o=x.indexOf(".");return o>=0&&(x=x[t(1250)](0,o)),!x||x===t(1460)})}function Ru(n,e,x){var t,o,r=Zu(e)?Ox:t0;return function(){var i=r(this,n),a=i.on;a!==t&&(o=(t=a).copy()).on(e,x),i.on=o}}function Ju(n,e){const x=c;var t=this[x(440)];return arguments[x(1849)]<2?Fe(this[x(1802)](),t).on.on(n):this[x(1464)](Ru(t,n,e))}function Fu(n){return function(){const e=I;var x=this[e(1080)];for(var t in this[e(1427)])if(+t!==n)return;x&&x[e(1421)](this)}}function Qu(){const n=c;return this.on(n(1574),Fu(this._id))}function $u(n){const e=c;var x=this._name,t=this[e(440)];typeof n!="function"&&(n=Ix(n));for(var o=this[e(362)],r=o[e(1849)],i=new Array(r),a=0;a<r;++a)for(var u=o[a],s=u[e(1849)],f=i[a]=new Array(s),l,g,b=0;b<s;++b)(l=u[b])&&(g=n[e(1754)](l,l[e(852)],b,u))&&(e(852)in l&&(g[e(852)]=l.__data__),f[b]=g,At(f[b],x,t,b,f,Fe(l,t)));return new c0(i,this._parents,x,t)}function ef(n){const e=c;var x=this[e(839)],t=this._id;typeof n!==e(842)&&(n=wi(n));for(var o=this[e(362)],r=o.length,i=[],a=[],u=0;u<r;++u)for(var s=o[u],f=s[e(1849)],l,g=0;g<f;++g)if(l=s[g]){for(var b=n[e(1754)](l,l[e(852)],g,s),h,y=Fe(l,t),v=0,w=b[e(1849)];v<w;++v)(h=b[v])&&At(h,x,t,v,b,y);i.push(b),a[e(268)](l)}return new c0(i,a,x,t)}var nf=Bn[c(985)][c(582)];function tf(){const n=c;return new nf(this[n(362)],this[n(979)])}function xf(n,e){var x,t,o;return function(){const r=I;var i=en(this,n),a=(this.style[r(1792)](n),en(this,n));return i===a?null:i===x&&a===t?o:o=e(x=i,t=a)}}function Wi(n){return function(){this[I(165)].removeProperty(n)}}function of(n,e,x){var t,o=x+"",r;return function(){var i=en(this,n);return i===o?null:i===t?r:r=e(t=i,x)}}function rf(n,e,x){var t,o,r;return function(){const i=I;var a=en(this,n),u=x(this),s=u+"";return u==null&&(s=u=(this[i(165)].removeProperty(n),en(this,n))),a===s?null:a===t&&s===o?r:(o=s,r=e(t=a,u))}}function af(n,e){const x=c;var t,o,r,i="style."+e,a=x(1446)+i,u;return function(){const s=x;var f=t0(this,n),l=f.on,g=f[s(160)][i]==null?u||(u=Wi(e)):void 0;(l!==t||r!==g)&&(o=(t=l)[s(1054)]()).on(a,r=g),f.on=o}}function cf(n,e,x){const t=c;var o=(n+="")===t(1115)?cu:qi;return e==null?this[t(394)](n,xf(n,o)).on(t(1521)+n,Wi(n)):typeof e=="function"?this[t(394)](n,rf(n,o,Ux(this,t(523)+n,e)))[t(1464)](af(this[t(440)],n)):this[t(394)](n,of(n,o,e),x).on("end.style."+n,null)}function sf(n,e,x){return function(t){const o=I;this.style[o(1005)](n,e[o(1754)](this,t),x)}}function lf(n,e,x){const t=c;var o,r;function i(){var u=e[I(368)](this,arguments);return u!==r&&(o=(r=u)&&sf(n,u,x)),o}return i[t(1277)]=e,i}function df(n,e,x){const t=c;var o=t(523)+(n+="");if(arguments[t(1849)]<2)return(o=this[t(1233)](o))&&o[t(1277)];if(e==null)return this[t(1233)](o,null);if(typeof e!="function")throw new Error;return this[t(1233)](o,lf(n,e,x??""))}function uf(n){return function(){const e=I;this[e(1253)]=n}}function ff(n){return function(){const e=I;var x=n(this);this[e(1253)]=x??""}}function hf(n){const e=c;return this[e(1233)](e(969),typeof n===e(842)?ff(Ux(this,e(969),n)):uf(n==null?"":n+""))}function bf(n){return function(e){const x=I;this[x(1253)]=n[x(1754)](this,e)}}function gf(n){const e=c;var x,t;function o(){var r=n.apply(this,arguments);return r!==t&&(x=(t=r)&&bf(r)),x}return o[e(1277)]=n,o}function yf(n){const e=c;var x=e(969);if(arguments[e(1849)]<1)return(x=this[e(1233)](x))&&x[e(1277)];if(n==null)return this[e(1233)](x,null);if(typeof n!="function")throw new Error;return this[e(1233)](x,gf(n))}function mf(){const n=c;for(var e=this._name,x=this[n(440)],t=Xi(),o=this[n(362)],r=o[n(1849)],i=0;i<r;++i)for(var a=o[i],u=a[n(1849)],s,f=0;f<u;++f)if(s=a[f]){var l=Fe(s,x);At(s,e,t,f,a,{time:l.time+l[n(1852)]+l.duration,delay:0,duration:l.duration,ease:l[n(1260)]})}return new c0(o,this[n(979)],e,t)}function vf(){const n=c;var e,x,t=this,o=t[n(440)],r=t[n(949)]();return new Promise(function(i,a){const u=n;var s={value:a},f={value:function(){--r===0&&i()}};t[u(1464)](function(){const l=u;var g=t0(this,o),b=g.on;b!==e&&(x=(e=b)[l(1054)](),x._.cancel[l(268)](s),x._[l(861)][l(268)](s),x._[l(901)].push(f)),g.on=x}),r===0&&i()})}var wf=0;function c0(n,e,x,t){const o=c;this[o(362)]=n,this._parents=e,this._name=x,this[o(440)]=t}function Xi(){return++wf}var i0=Bn[c(985)];c0[c(985)]={constructor:c0,select:$u,selectAll:ef,selectChild:i0.selectChild,selectChildren:i0.selectChildren,filter:Xu,merge:Ku,selection:tf,transition:mf,call:i0[c(1754)],nodes:i0[c(307)],node:i0.node,size:i0[c(949)],empty:i0[c(1382)],each:i0[c(1464)],on:Ju,attr:Pu,attrTween:Yu,style:cf,styleTween:df,text:hf,textTween:yf,remove:Qu,tween:zu,delay:Uu,duration:Hu,ease:Vu,easeVarying:Wu,end:vf,[Symbol.iterator]:i0[Symbol[c(1532)]]};function pf(n){return((n*=2)<=1?n*n*n:(n-=2)*n*n+2)/2}var Cf={time:null,delay:0,duration:250,ease:pf};function zf(n,e){const x=c;for(var t;!(t=n[x(1427)])||!(t=t[e]);)if(!(n=n[x(1080)]))throw new Error(x(1846)+e+x(1303));return t}function Mf(n){const e=c;var x,t;n instanceof c0?(x=n._id,n=n[e(839)]):(x=Xi(),(t=Cf).time=kx(),n=n==null?null:n+"");for(var o=this._groups,r=o[e(1849)],i=0;i<r;++i)for(var a=o[i],u=a[e(1849)],s,f=0;f<u;++f)(s=a[f])&&At(s,n,x,f,a,t||zf(s,x));return new c0(o,this[e(979)],n,x)}Bn[c(985)][c(861)]=wu,Bn[c(985)][c(1116)]=Mf;const Fn=n=>()=>n;function Bf(n,{sourceEvent:e,target:x,transform:t,dispatch:o}){Object.defineProperties(this,{type:{value:n,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:x,enumerable:!0,configurable:!0},transform:{value:t,enumerable:!0,configurable:!0},_:{value:o}})}function a0(n,e,x){this.k=n,this.x=e,this.y=x}a0[c(985)]={constructor:a0,scale:function(n){return n===1?this:new a0(this.k*n,this.x,this.y)},translate:function(n,e){return n===0&e===0?this:new a0(this.k,this.x+this.k*n,this.y+this.k*e)},apply:function(n){return[n[0]*this.k+this.x,n[1]*this.k+this.y]},applyX:function(n){return n*this.k+this.x},applyY:function(n){return n*this.k+this.y},invert:function(n){return[(n[0]-this.x)/this.k,(n[1]-this.y)/this.k]},invertX:function(n){return(n-this.x)/this.k},invertY:function(n){return(n-this.y)/this.k},rescaleX:function(n){const e=c;return n[e(1054)]()[e(1426)](n.range().map(this[e(537)],this).map(n[e(1216)],n))},rescaleY:function(n){const e=c;return n[e(1054)]()[e(1426)](n[e(713)]()[e(1197)](this.invertY,this)[e(1197)](n[e(1216)],n))},toString:function(){const n=c;return n(207)+this.x+","+this.y+n(535)+this.k+")"}};var jt=new a0(1,0,0);Ki.prototype=a0.prototype;function Ki(n){const e=c;for(;!n[e(984)];)if(!(n=n[e(1080)]))return jt;return n.__zoom}function Rt(n){n[c(738)]()}function wn(n){const e=c;n[e(550)](),n[e(738)]()}function Df(n){const e=c;return(!n.ctrlKey||n[e(871)]===e(1209))&&!n[e(1141)]}function Lf(){const n=c;var e=this;return e instanceof SVGElement?(e=e[n(1412)]||e,e[n(757)]("viewBox")?(e=e.viewBox[n(1493)],[[e.x,e.y],[e.x+e[n(531)],e.y+e[n(1348)]]]):[[0,0],[e[n(531)].baseVal[n(160)],e.height.baseVal[n(160)]]]):[[0,0],[e[n(913)],e.clientHeight]]}function To(){return this[c(984)]||jt}function Nf(n){const e=c;return-n.deltaY*(n[e(1586)]===1?.05:n[e(1586)]?1:.002)*(n[e(733)]?10:1)}function Sf(){const n=c;return navigator[n(1396)]||n(462)in this}function Pf(n,e,x){const t=c;var o=n[t(537)](e[0][0])-x[0][0],r=n[t(537)](e[1][0])-x[1][0],i=n[t(434)](e[0][1])-x[0][1],a=n[t(434)](e[1][1])-x[1][1];return n[t(320)](r>o?(o+r)/2:Math[t(309)](0,o)||Math[t(1204)](0,r),a>i?(i+a)/2:Math[t(309)](0,i)||Math[t(1204)](0,a))}function Zi(){const n=c;var e=Df,x=Lf,t=Pf,o=Nf,r=Sf,i=[0,1/0],a=[[-1/0,-1/0],[1/0,1/0]],u=250,s=lt,f=Pt(n(1460),n(734),n(901)),l,g,b,h=500,y=150,v=0,w=10;function M(L){const D=n;L[D(359)](D(984),To).on(D(157),Y,{passive:!1}).on(D(1008),W).on(D(510),Q)[D(805)](r).on("touchstart.zoom",R).on("touchmove.zoom",X).on(D(1133),V).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}M[n(1115)]=function(L,D,B,j){const A=n;var S=L.selection?L[A(1331)]():L;S[A(359)](A(984),To),L!==S?E(L,D,B,j):S[A(861)]()[A(1464)](function(){const Z=A;O(this,arguments)[Z(1787)](j)[Z(1460)]()[Z(734)](null,typeof D===Z(842)?D[Z(368)](this,arguments):D)[Z(901)]()})},M.scaleBy=function(L,D,B,j){const A=n;M[A(720)](L,function(){const S=A;var Z=this[S(984)].k,K=typeof D===S(842)?D.apply(this,arguments):D;return Z*K},B,j)},M.scaleTo=function(L,D,B,j){M.transform(L,function(){const A=I;var S=x.apply(this,arguments),Z=this[A(984)],K=B==null?p(S):typeof B=="function"?B.apply(this,arguments):B,H=Z[A(1216)](K),F=typeof D=="function"?D.apply(this,arguments):D;return t(C(m(Z,F),K,H),S,a)},B,j)},M[n(560)]=function(L,D,B,j){const A=n;M[A(1115)](L,function(){const S=A;return t(this[S(984)][S(320)](typeof D===S(842)?D[S(368)](this,arguments):D,typeof B===S(842)?B[S(368)](this,arguments):B),x.apply(this,arguments),a)},null,j)},M[n(486)]=function(L,D,B,j,A){const S=n;M[S(1115)](L,function(){const Z=S;var K=x.apply(this,arguments),H=this[Z(984)],F=j==null?p(K):typeof j=="function"?j[Z(368)](this,arguments):j;return t(jt.translate(F[0],F[1])[Z(796)](H.k)[Z(320)](typeof D===Z(842)?-D[Z(368)](this,arguments):-D,typeof B===Z(842)?-B[Z(368)](this,arguments):-B),K,a)},j,A)};function m(L,D){return D=Math[n(1204)](i[0],Math.min(i[1],D)),D===L.k?L:new a0(D,L.x,L.y)}function C(L,D,B){var j=D[0]-B[0]*L.k,A=D[1]-B[1]*L.k;return j===L.x&&A===L.y?L:new a0(L.k,j,A)}function p(L){return[(+L[0][0]+ +L[1][0])/2,(+L[0][1]+ +L[1][1])/2]}function E(L,D,B,j){const A=n;L.on(A(483),function(){const S=A;O(this,arguments)[S(1787)](j).start()}).on(A(432),function(){const S=A;O(this,arguments)[S(1787)](j)[S(901)]()})[A(1233)](A(734),function(){const S=A;var Z=this,K=arguments,H=O(Z,K)[S(1787)](j),F=x[S(368)](Z,K),ee=B==null?p(F):typeof B=="function"?B[S(368)](Z,K):B,ne=Math[S(1204)](F[1][0]-F[0][0],F[1][1]-F[0][1]),xe=Z[S(984)],se=typeof D===S(842)?D[S(368)](Z,K):D,ae=s(xe[S(1216)](ee)[S(455)](ne/xe.k),se[S(1216)](ee)[S(455)](ne/se.k));return function(N){const T=S;if(N===1)N=se;else{var J=ae(N),G=ne/J[2];N=new a0(G,ee[0]-J[0]*G,ee[1]-J[1]*G)}H[T(734)](null,N)}})}function O(L,D,B){return!B&&L[n(418)]||new U(L,D)}function U(L,D){const B=n;this[B(1686)]=L,this[B(1268)]=D,this.active=0,this[B(1355)]=null,this[B(1039)]=x[B(368)](L,D),this[B(1137)]=0}U[n(985)]={event:function(L){const D=n;return L&&(this[D(1355)]=L),this},start:function(){const L=n;return++this[L(1523)]===1&&(this[L(1686)][L(418)]=this,this[L(323)](L(1460))),this},zoom:function(L,D){const B=n;return this.mouse&&L!==B(1780)&&(this.mouse[1]=D[B(1216)](this[B(1780)][0])),this.touch0&&L!==B(972)&&(this[B(800)][1]=D[B(1216)](this[B(800)][0])),this[B(687)]&&L!==B(972)&&(this.touch1[1]=D.invert(this[B(687)][0])),this[B(1686)][B(984)]=D,this.emit(B(734)),this},end:function(){const L=n;return--this[L(1523)]===0&&(delete this[L(1686)][L(418)],this.emit(L(901))),this},emit:function(L){const D=n;var B=_e(this[D(1686)]).datum();f[D(1754)](L,this[D(1686)],new Bf(L,{sourceEvent:this[D(1355)],target:M,transform:this[D(1686)][D(984)],dispatch:f}),B)}};function Y(L,...D){const B=n;if(!e[B(368)](this,arguments))return;var j=O(this,D)[B(1787)](L),A=this[B(984)],S=Math[B(1204)](i[0],Math[B(309)](i[1],A.k*Math[B(277)](2,o[B(368)](this,arguments)))),Z=Ke(L);if(j[B(1209)])(j[B(1780)][0][0]!==Z[0]||j[B(1780)][0][1]!==Z[1])&&(j[B(1780)][1]=A.invert(j.mouse[0]=Z)),clearTimeout(j[B(1209)]);else{if(A.k===S)return;j.mouse=[Z,A.invert(Z)],ft(this),j[B(1460)]()}wn(L),j[B(1209)]=setTimeout(K,y),j.zoom("mouse",t(C(m(A,S),j[B(1780)][0],j[B(1780)][1]),j.extent,a));function K(){const H=B;j[H(1209)]=null,j[H(901)]()}}function W(L,...D){const B=n;if(b||!e.apply(this,arguments))return;var j=L[B(186)],A=O(this,D,!0)[B(1787)](L),S=_e(L[B(438)]).on(B(459),F,!0).on("mouseup.zoom",ee,!0),Z=Ke(L,j),K=L[B(363)],H=L[B(505)];Ei(L.view),Rt(L),A[B(1780)]=[Z,this[B(984)][B(1216)](Z)],ft(this),A[B(1460)]();function F(ne){const xe=B;if(wn(ne),!A[xe(914)]){var se=ne[xe(363)]-K,ae=ne[xe(505)]-H;A[xe(914)]=se*se+ae*ae>v}A[xe(1787)](ne)[xe(734)](xe(1780),t(C(A.that[xe(984)],A[xe(1780)][0]=Ke(ne,j),A[xe(1780)][1]),A[xe(1039)],a))}function ee(ne){const xe=B;S.on(xe(650),null),Ii(ne[xe(438)],A[xe(914)]),wn(ne),A[xe(1787)](ne)[xe(901)]()}}function Q(L,...D){const B=n;if(e[B(368)](this,arguments)){var j=this[B(984)],A=Ke(L.changedTouches?L[B(1714)][0]:L,this),S=j[B(1216)](A),Z=j.k*(L.shiftKey?.5:2),K=t(C(m(j,Z),A,S),x[B(368)](this,D),a);wn(L),u>0?_e(this)[B(1116)]().duration(u)[B(1754)](E,K,A,L):_e(this)[B(1754)](M[B(1115)],K,A,L)}}function R(L,...D){const B=n;if(e[B(368)](this,arguments)){var j=L[B(1110)],A=j[B(1849)],S=O(this,D,L[B(1714)][B(1849)]===A).event(L),Z,K,H,F;for(Rt(L),K=0;K<A;++K)H=j[K],F=Ke(H,this),F=[F,this[B(984)][B(1216)](F),H[B(1847)]],S[B(800)]?!S[B(687)]&&S[B(800)][2]!==F[2]&&(S.touch1=F,S.taps=0):(S[B(800)]=F,Z=!0,S.taps=1+!!l);l&&(l=clearTimeout(l)),Z&&(S[B(1137)]<2&&(g=F[0],l=setTimeout(function(){l=null},h)),ft(this),S[B(1460)]())}}function X(L,...D){const B=n;if(this[B(418)]){var j=O(this,D)[B(1787)](L),A=L.changedTouches,S=A[B(1849)],Z,K,H,F;for(wn(L),Z=0;Z<S;++Z)K=A[Z],H=Ke(K,this),j[B(800)]&&j[B(800)][2]===K.identifier?j[B(800)][0]=H:j[B(687)]&&j[B(687)][2]===K.identifier&&(j[B(687)][0]=H);if(K=j.that.__zoom,j[B(687)]){var ee=j[B(800)][0],ne=j[B(800)][1],xe=j[B(687)][0],se=j.touch1[1],ae=(ae=xe[0]-ee[0])*ae+(ae=xe[1]-ee[1])*ae,N=(N=se[0]-ne[0])*N+(N=se[1]-ne[1])*N;K=m(K,Math[B(1594)](ae/N)),H=[(ee[0]+xe[0])/2,(ee[1]+xe[1])/2],F=[(ne[0]+se[0])/2,(ne[1]+se[1])/2]}else if(j[B(800)])H=j[B(800)][0],F=j[B(800)][1];else return;j.zoom(B(972),t(C(K,H,F),j[B(1039)],a))}}function V(L,...D){const B=n;if(this[B(418)]){var j=O(this,D)[B(1787)](L),A=L.changedTouches,S=A[B(1849)],Z,K;for(Rt(L),b&&clearTimeout(b),b=setTimeout(function(){b=null},h),Z=0;Z<S;++Z)K=A[Z],j[B(800)]&&j.touch0[2]===K[B(1847)]?delete j[B(800)]:j[B(687)]&&j[B(687)][2]===K[B(1847)]&&delete j.touch1;if(j[B(687)]&&!j.touch0&&(j[B(800)]=j[B(687)],delete j[B(687)]),j.touch0)j[B(800)][1]=this[B(984)].invert(j[B(800)][0]);else if(j.end(),j[B(1137)]===2&&(K=Ke(K,this),Math[B(331)](g[0]-K[0],g[1]-K[1])<w)){var H=_e(this).on(B(510));H&&H[B(368)](this,arguments)}}}return M[n(801)]=function(L){const D=n;return arguments[D(1849)]?(o=typeof L===D(842)?L:Fn(+L),M):o},M.filter=function(L){return arguments[n(1849)]?(e=typeof L=="function"?L:Fn(!!L),M):e},M[n(377)]=function(L){const D=n;return arguments[D(1849)]?(r=typeof L===D(842)?L:Fn(!!L),M):r},M[n(1039)]=function(L){return arguments[n(1849)]?(x=typeof L=="function"?L:Fn([[+L[0][0],+L[0][1]],[+L[1][0],+L[1][1]]]),M):x},M[n(304)]=function(L){return arguments.length?(i[0]=+L[0],i[1]=+L[1],M):[i[0],i[1]]},M[n(1704)]=function(L){return arguments[n(1849)]?(a[0][0]=+L[0][0],a[1][0]=+L[1][0],a[0][1]=+L[0][1],a[1][1]=+L[1][1],M):[[a[0][0],a[0][1]],[a[1][0],a[1][1]]]},M.constrain=function(L){return arguments[n(1849)]?(t=L,M):t},M[n(794)]=function(L){return arguments[n(1849)]?(u=+L,M):u},M[n(1175)]=function(L){return arguments[n(1849)]?(s=L,M):s},M.on=function(){const L=n;var D=f.on[L(368)](f,arguments);return D===f?M:D},M.clickDistance=function(L){const D=n;return arguments.length?(v=(L=+L)*L,M):Math[D(1594)](v)},M.tapDistance=function(L){return arguments[n(1849)]?(w=+L,M):w},M}const qe={error001:()=>c(1011),error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:n=>c(675)+n+c(987),error004:()=>c(1173),error005:()=>"Only child nodes can use a parent extent.",error006:()=>c(333),error007:n=>"The old edge with id="+n+c(1741),error009:n=>c(1267)+n+`" doesn't exist.`,error008:(n,{id:e,sourceHandle:x,targetHandle:t})=>c(1804)+n+c(1358)+(n===c(344)?x:t)+'", edge id: '+e+".",error010:()=>c(161),error011:n=>'Edge type "'+n+c(987),error012:n=>c(716)+n+c(1766),error013:(n=c(230))=>c(410)+n+c(827),error014:()=>c(1071),error015:()=>"It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs."},Pn=[[Number[c(1687)],Number[c(1687)]],[Number.POSITIVE_INFINITY,Number[c(475)]]],Ri=[c(499)," ",c(1581)],Ji={"node.a11yDescription.default":c(1746),"node.a11yDescription.keyboardDisabled":c(777),"node.a11yDescription.ariaLiveMessage":({direction:n,x:e,y:x})=>"Moved selected node "+n+c(346)+e+", y: "+x,"edge.a11yDescription.default":c(1734),"controls.ariaLabel":c(1805),"controls.zoomIn.ariaLabel":c(1049),"controls.zoomOut.ariaLabel":"Zoom Out","controls.fitView.ariaLabel":c(1693),"controls.interactive.ariaLabel":c(1638),"minimap.ariaLabel":"Mini Map","handle.ariaLabel":c(1200)};var tn;(function(n){const e=c;n[e(1689)]=e(1276),n[e(978)]=e(1347)})(tn||(tn={}));var A0;(function(n){const e=c;n[e(988)]="free",n[e(1615)]=e(1230),n[e(572)]=e(406)})(A0||(A0={}));var En;(function(n){const e=c;n[e(1858)]=e(1170),n[e(1325)]=e(293)})(En||(En={}));const Fi={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null};var C0;(function(n){const e=c;n[e(1356)]="default",n.Straight=e(1736),n.Step="step",n[e(787)]="smoothstep",n[e(1845)]="simplebezier"})(C0||(C0={}));var Bt;(function(n){const e=c;n[e(1117)]="arrow",n[e(1729)]=e(680)})(Bt||(Bt={}));var fe;(function(n){const e=c;n[e(1075)]=e(1407),n[e(876)]=e(1692),n.Right=e(1835),n[e(274)]=e(1360)})(fe||(fe={}));const Go={[fe[c(1075)]]:fe[c(1566)],[fe[c(1566)]]:fe[c(1075)],[fe[c(876)]]:fe[c(274)],[fe.Bottom]:fe[c(876)]};function Qi(n){return n===null?null:n?"valid":c(668)}const $i=n=>"id"in n&&c(344)in n&&c(1122)in n,Ef=n=>"id"in n&&c(1748)in n&&!(c(344)in n)&&!("target"in n),Tx=n=>"id"in n&&"internals"in n&&!(c(344)in n)&&!(c(1122)in n),On=(n,e=[0,0])=>{const x=c,{width:t,height:o}=s0(n),r=n[x(1489)]??e,i=t*r[0],a=o*r[1];return{x:n[x(1748)].x-i,y:n[x(1748)].y-a}},If=(n,e={nodeOrigin:[0,0]})=>{const x=c;if(process.env.NODE_ENV==="development"&&!e.nodeLookup&&console[x(1565)](x(1855)),n[x(1849)]===0)return{x:0,y:0,width:0,height:0};const t=n[x(1258)]((o,r)=>{const i=x,a=typeof r===i(1077);let u=!e.nodeLookup&&!a?r:void 0;e[i(1388)]&&(u=a?e.nodeLookup.get(r):Tx(r)?r:e[i(1388)][i(1386)](r.id));const s=u?Dt(u,e[i(1458)]):{x:0,y:0,x2:0,y2:0};return Yt(o,s)},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return kt(t)},Un=(n,e={})=>{const x=c;let t={x:1/0,y:1/0,x2:-1/0,y2:-1/0},o=!1;return n[x(1726)](r=>{const i=x;(e[i(805)]===void 0||e[i(805)](r))&&(t=Yt(t,Dt(r)),o=!0)}),o?kt(t):{x:0,y:0,width:0,height:0}},Gx=(n,e,[x,t,o]=[0,0,1],r=!1,i=!1)=>{const a=c,u={...Gn(e,[x,t,o]),width:e[a(531)]/o,height:e[a(1348)]/o},s=[];for(const f of n[a(1404)]()){const{measured:l,selectable:g=!0,hidden:b=!1}=f;if(i&&!g||b)continue;const h=l[a(531)]??f[a(531)]??f[a(1786)]??null,y=l.height??f[a(1348)]??f[a(1158)]??null,v=In(u,on(f)),w=(h??0)*(y??0),M=r&&v>0;(!f[a(1350)][a(1649)]||M||v>=w||f[a(874)])&&s[a(268)](f)}return s},Af=(n,e)=>{const x=c,t=new Set;return n[x(1726)](o=>{t.add(o.id)}),e[x(805)](o=>t[x(632)](o.source)||t[x(632)](o[x(1122)]))};function jf(n,e){const x=c,t=new Map,o=e?.[x(307)]?new Set(e[x(307)].map(r=>r.id)):null;return n[x(1726)](r=>{const i=x;r[i(1403)][i(531)]&&r.measured.height&&(e?.[i(599)]||!r[i(197)])&&(!o||o[i(632)](r.id))&&t[i(1527)](r.id,r)}),t}async function Yf({nodes:n,width:e,height:x,panZoom:t,minZoom:o,maxZoom:r},i){const a=c;if(n[a(949)]===0)return Promise[a(923)](!0);const u=jf(n,i),s=Un(u),f=Hx(s,e,x,i?.[a(619)]??o,i?.[a(1614)]??r,i?.[a(991)]??.1);return await t[a(1539)](f,{duration:i?.duration,ease:i?.[a(1260)],interpolate:i?.interpolate}),Promise[a(923)](!0)}function ea({nodeId:n,nextPosition:e,nodeLookup:x,nodeOrigin:t=[0,0],nodeExtent:o,onError:r}){const i=c,a=x.get(n),u=a[i(1772)]?x[i(1386)](a[i(1772)]):void 0,{x:s,y:f}=u?u[i(1350)].positionAbsolute:{x:0,y:0},l=a[i(1489)]??t;let g=a[i(1039)]||o;if(a[i(1039)]===i(297)&&!a[i(1225)])if(!u)r?.("005",qe.error005());else{const h=u[i(1403)][i(531)],y=u.measured[i(1348)];h&&y&&(g=[[s,f],[s+h,f+y]])}else u&&rn(a[i(1039)])&&(g=[[a[i(1039)][0][0]+s,a[i(1039)][0][1]+f],[a[i(1039)][1][0]+s,a[i(1039)][1][1]+f]]);const b=rn(g)?O0(e,g,a[i(1403)]):e;return(a.measured.width===void 0||a.measured[i(1348)]===void 0)&&r?.(i(589),qe.error015()),{position:{x:b.x-s+(a.measured[i(531)]??0)*l[0],y:b.y-f+(a[i(1403)][i(1348)]??0)*l[1]},positionAbsolute:b}}async function kf({nodesToRemove:n=[],edgesToRemove:e=[],nodes:x,edges:t,onBeforeDelete:o}){const r=c,i=new Set(n[r(1197)](b=>b.id)),a=[];for(const b of x){if(b.deletable===!1)continue;const h=i[r(632)](b.id),y=!h&&b[r(1772)]&&a[r(279)](v=>v.id===b[r(1772)]);(h||y)&&a[r(268)](b)}const u=new Set(e[r(1197)](b=>b.id)),s=t[r(805)](b=>b[r(1685)]!==!1),f=Af(a,s),l=f;for(const b of s)u[r(632)](b.id)&&!l[r(279)](y=>y.id===b.id)&&l[r(268)](b);if(!o)return{edges:l,nodes:a};const g=await o({nodes:a,edges:l});return typeof g===r(724)?g?{edges:l,nodes:a}:{edges:[],nodes:[]}:g}const xn=(n,e=0,x=1)=>Math[c(309)](Math[c(1204)](n,e),x),O0=(n={x:0,y:0},e,x)=>({x:xn(n.x,e[0][0],e[1][0]-(x?.[c(531)]??0)),y:xn(n.y,e[0][1],e[1][1]-(x?.[c(1348)]??0))});function na(n,e,x){const t=c,{width:o,height:r}=s0(x),{x:i,y:a}=x[t(1350)][t(1583)];return O0(n,[[i,a],[i+o,a+r]],e)}const Ho=(n,e,x)=>{const t=c;return n<e?xn(Math.abs(n-e),1,e)/e:n>x?-xn(Math[t(188)](n-x),1,e)/e:0},ta=(n,e,x=15,t=40)=>{const o=c,r=Ho(n.x,t,e[o(531)]-t)*x,i=Ho(n.y,t,e[o(1348)]-t)*x;return[r,i]},Yt=(n,e)=>({x:Math[c(309)](n.x,e.x),y:Math[c(309)](n.y,e.y),x2:Math[c(1204)](n.x2,e.x2),y2:Math[c(1204)](n.y2,e.y2)}),mx=({x:n,y:e,width:x,height:t})=>({x:n,y:e,x2:n+x,y2:e+t}),kt=({x:n,y:e,x2:x,y2:t})=>({x:n,y:e,width:x-n,height:t-e}),on=(n,e=[0,0])=>{const x=c,{x:t,y:o}=Tx(n)?n[x(1350)][x(1583)]:On(n,e);return{x:t,y:o,width:n[x(1403)]?.[x(531)]??n[x(531)]??n[x(1786)]??0,height:n[x(1403)]?.height??n[x(1348)]??n[x(1158)]??0}},Dt=(n,e=[0,0])=>{const x=c,{x:t,y:o}=Tx(n)?n[x(1350)].positionAbsolute:On(n,e);return{x:t,y:o,x2:t+(n[x(1403)]?.[x(531)]??n[x(531)]??n.initialWidth??0),y2:o+(n[x(1403)]?.[x(1348)]??n.height??n[x(1158)]??0)}},xa=(n,e)=>kt(Yt(mx(n),mx(e))),In=(n,e)=>{const x=c,t=Math[x(1204)](0,Math[x(309)](n.x+n[x(531)],e.x+e[x(531)])-Math[x(1204)](n.x,e.x)),o=Math[x(1204)](0,Math[x(309)](n.y+n.height,e.y+e[x(1348)])-Math[x(1204)](n.y,e.y));return Math[x(816)](t*o)},_o=n=>Re(n[c(531)])&&Re(n[c(1348)])&&Re(n.x)&&Re(n.y),Re=n=>!isNaN(n)&&isFinite(n),oa=(n,e)=>{const x=c;process.env.NODE_ENV===x(178)&&console[x(1565)](x(1432)+e+x(1573)+n)},Tn=(n,e=[1,1])=>{const x=c;return{x:e[0]*Math.round(n.x/e[0]),y:e[1]*Math[x(983)](n.y/e[1])}},Gn=({x:n,y:e},[x,t,o],r=!1,i=[1,1])=>{const a={x:(n-x)/o,y:(e-t)/o};return r?Tn(a,i):a},Lt=({x:n,y:e},[x,t,o])=>({x:n*o+x,y:e*o+t});function q0(n,e){const x=c;if(typeof n===x(528))return Math[x(1782)]((e-e/(1+n))*.5);if(typeof n===x(1077)&&n[x(1718)]("px")){const t=parseFloat(n);if(!Number[x(927)](t))return Math[x(1782)](t)}if(typeof n===x(1077)&&n.endsWith("%")){const t=parseFloat(n);if(!Number[x(927)](t))return Math[x(1782)](e*t*.01)}return console.error(x(1545)+n+x(1790)),0}function Of(n,e,x){const t=c;if(typeof n===t(1077)||typeof n===t(528)){const o=q0(n,x),r=q0(n,e);return{top:o,right:r,bottom:o,left:r,x:r*2,y:o*2}}if(typeof n=="object"){const o=q0(n.top??n.y??0,x),r=q0(n[t(1360)]??n.y??0,x),i=q0(n[t(1407)]??n.x??0,e),a=q0(n[t(1835)]??n.x??0,e);return{top:o,right:a,bottom:r,left:i,x:i+a,y:o+r}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function Uf(n,e,x,t,o,r){const i=c,{x:a,y:u}=Lt(n,[e,x,t]),{x:s,y:f}=Lt({x:n.x+n[i(531)],y:n.y+n[i(1348)]},[e,x,t]),l=o-s,g=r-f;return{left:Math[i(1782)](a),top:Math[i(1782)](u),right:Math[i(1782)](l),bottom:Math[i(1782)](g)}}const Hx=(n,e,x,t,o,r)=>{const i=c,a=Of(r,e,x),u=(e-a.x)/n[i(531)],s=(x-a.y)/n[i(1348)],f=Math[i(309)](u,s),l=xn(f,t,o),g=n.x+n[i(531)]/2,b=n.y+n.height/2,h=e/2-g*l,y=x/2-b*l,v=Uf(n,h,y,l,e,x),w={left:Math[i(309)](v.left-a[i(1407)],0),top:Math[i(309)](v[i(1692)]-a[i(1692)],0),right:Math.min(v.right-a[i(1835)],0),bottom:Math.min(v[i(1360)]-a[i(1360)],0)};return{x:h-w.left+w.right,y:y-w[i(1692)]+w.bottom,zoom:l}},An=()=>typeof navigator!==c(1821)&&navigator?.userAgent?.indexOf("Mac")>=0;function rn(n){const e=c;return n!=null&&n!==e(297)}function s0(n){const e=c;return{width:n[e(1403)]?.[e(531)]??n[e(531)]??n[e(1786)]??0,height:n[e(1403)]?.[e(1348)]??n[e(1348)]??n[e(1158)]??0}}function ra(n){const e=c;return(n[e(1403)]?.[e(531)]??n[e(531)]??n[e(1786)])!==void 0&&(n[e(1403)]?.[e(1348)]??n[e(1348)]??n[e(1158)])!==void 0}function ia(n,e={width:0,height:0},x,t,o){const r=c,i={...n},a=t[r(1386)](x);if(a){const u=a.origin||o;i.x+=a.internals[r(1583)].x-(e[r(531)]??0)*u[0],i.y+=a[r(1350)][r(1583)].y-(e.height??0)*u[1]}return i}function Vo(n,e){const x=c;if(n[x(949)]!==e.size)return!1;for(const t of n)if(!e[x(632)](t))return!1;return!0}function Tf(){let n,e;return{promise:new Promise((t,o)=>{n=t,e=o}),resolve:n,reject:e}}function Gf(n){return{...Ji,...n||{}}}function Mn(n,{snapGrid:e=[0,0],snapToGrid:x=!1,transform:t,containerBounds:o}){const r=c,{x:i,y:a}=Je(n),u=Gn({x:i-(o?.[r(1407)]??0),y:a-(o?.[r(1692)]??0)},t),{x:s,y:f}=x?Tn(u,e):u;return{xSnapped:s,ySnapped:f,...u}}const _x=n=>({width:n.offsetWidth,height:n[c(968)]}),aa=n=>n?.getRootNode?.()||window?.[c(1299)],Hf=[c(958),c(1207),"TEXTAREA"];function ca(n){const e=c,x=n[e(1024)]?.()?.[0]||n[e(1122)];return x?.[e(878)]!==1?!1:Hf[e(617)](x.nodeName)||x[e(757)](e(1178))||!!x.closest(".nokey")}const sa=n=>"clientX"in n,Je=(n,e)=>{const x=c,t=sa(n),o=t?n[x(363)]:n[x(1110)]?.[0][x(363)],r=t?n[x(505)]:n[x(1110)]?.[0][x(505)];return{x:o-(e?.[x(1407)]??0),y:r-(e?.[x(1692)]??0)}},qo=(n,e,x,t,o)=>{const r=c,i=e[r(942)]("."+n);return!i||!i[r(1849)]?null:Array[r(1763)](i)[r(1197)](a=>{const u=r,s=a[u(202)]();return{id:a[u(731)](u(1737)),type:n,nodeId:o,position:a[u(731)]("data-handlepos"),x:(s[u(1407)]-x[u(1407)])/t,y:(s[u(1692)]-x[u(1692)])/t,..._x(a)}})};function la({sourceX:n,sourceY:e,targetX:x,targetY:t,sourceControlX:o,sourceControlY:r,targetControlX:i,targetControlY:a}){const u=n*.125+o*.375+i*.375+x*.125,s=e*.125+r*.375+a*.375+t*.125,f=Math.abs(u-n),l=Math.abs(s-e);return[u,s,f,l]}function Qn(n,e){const x=c;return n>=0?.5*n:e*25*Math[x(1594)](-n)}function Wo({pos:n,x1:e,y1:x,x2:t,y2:o,c:r}){const i=c;switch(n){case fe.Left:return[e-Qn(e-t,r),x];case fe[i(1566)]:return[e+Qn(t-e,r),x];case fe[i(876)]:return[e,x-Qn(x-o,r)];case fe[i(274)]:return[e,x+Qn(o-x,r)]}}function da({sourceX:n,sourceY:e,sourcePosition:x=fe[c(274)],targetX:t,targetY:o,targetPosition:r=fe[c(876)],curvature:i=.25}){const[a,u]=Wo({pos:x,x1:n,y1:e,x2:t,y2:o,c:i}),[s,f]=Wo({pos:r,x1:t,y1:o,x2:n,y2:e,c:i}),[l,g,b,h]=la({sourceX:n,sourceY:e,targetX:t,targetY:o,sourceControlX:a,sourceControlY:u,targetControlX:s,targetControlY:f});return["M"+n+","+e+" C"+a+","+u+" "+s+","+f+" "+t+","+o,l,g,b,h]}function ua({sourceX:n,sourceY:e,targetX:x,targetY:t}){const o=c,r=Math[o(188)](x-n)/2,i=x<n?x+r:x-r,a=Math[o(188)](t-e)/2,u=t<e?t+a:t-a;return[i,u,r,a]}function _f({sourceNode:n,targetNode:e,selected:x=!1,zIndex:t=0,elevateOnSelect:o=!1,zIndexMode:r=c(948)}){const i=c;if(r===i(1022))return t;const a=o&&x?t+1e3:t,u=Math.max(n[i(1772)]||o&&n[i(500)]?n.internals.z:0,e[i(1772)]||o&&e.selected?e.internals.z:0);return a+u}function Vf({sourceNode:n,targetNode:e,width:x,height:t,transform:o}){const r=Yt(Dt(n),Dt(e));r.x===r.x2&&(r.x2+=1),r.y===r.y2&&(r.y2+=1);const i={x:-o[0]/o[2],y:-o[1]/o[2],width:x/o[2],height:t/o[2]};return In(i,kt(r))>0}const qf=({source:n,sourceHandle:e,target:x,targetHandle:t})=>c(1699)+n+(e||"")+"-"+x+(t||""),Wf=(n,e)=>{const x=c;return e[x(1121)](t=>t[x(344)]===n[x(344)]&&t[x(1122)]===n[x(1122)]&&(t[x(1749)]===n[x(1749)]||!t[x(1749)]&&!n[x(1749)])&&(t[x(1014)]===n[x(1014)]||!t.targetHandle&&!n[x(1014)]))},fa=(n,e,x={})=>{const t=c;if(!n.source||!n[t(1122)])return oa(t(908),qe[t(911)]()),e;const o=x[t(1813)]||qf;let r;return $i(n)?r={...n}:r={...n,id:o(n)},Wf(r,e)?e:(r.sourceHandle===null&&delete r.sourceHandle,r.targetHandle===null&&delete r.targetHandle,e[t(455)](r))};function ha({sourceX:n,sourceY:e,targetX:x,targetY:t}){const[o,r,i,a]=ua({sourceX:n,sourceY:e,targetX:x,targetY:t});return["M "+n+","+e+"L "+x+","+t,o,r,i,a]}const Xo={[fe.Left]:{x:-1,y:0},[fe[c(1566)]]:{x:1,y:0},[fe[c(876)]]:{x:0,y:-1},[fe[c(274)]]:{x:0,y:1}},Xf=({source:n,sourcePosition:e=fe[c(274)],target:x})=>{const t=c;return e===fe[t(1075)]||e===fe[t(1566)]?n.x<x.x?{x:1,y:0}:{x:-1,y:0}:n.y<x.y?{x:0,y:1}:{x:0,y:-1}},Ko=(n,e)=>Math.sqrt(Math[c(277)](e.x-n.x,2)+Math[c(277)](e.y-n.y,2));function Kf({source:n,sourcePosition:e=fe[c(274)],target:x,targetPosition:t=fe[c(876)],center:o,offset:r,stepPosition:i}){const a=c,u=Xo[e],s=Xo[t],f={x:n.x+u.x*r,y:n.y+u.y*r},l={x:x.x+s.x*r,y:x.y+s.y*r},g=Xf({source:f,sourcePosition:e,target:l}),b=g.x!==0?"x":"y",h=g[b];let y=[],v,w;const M={x:0,y:0},m={x:0,y:0},[,,C,p]=ua({sourceX:n.x,sourceY:n.y,targetX:x.x,targetY:x.y});if(u[b]*s[b]===-1){b==="x"?(v=o.x??f.x+(l.x-f.x)*i,w=o.y??(f.y+l.y)/2):(v=o.x??(f.x+l.x)/2,w=o.y??f.y+(l.y-f.y)*i);const Y=[{x:v,y:f.y},{x:v,y:l.y}],W=[{x:f.x,y:w},{x:l.x,y:w}];u[b]===h?y=b==="x"?Y:W:y=b==="x"?W:Y}else{const Y=[{x:f.x,y:l.y}],W=[{x:l.x,y:f.y}];if(b==="x"?y=u.x===h?W:Y:y=u.y===h?Y:W,e===t){const L=Math[a(188)](n[b]-x[b]);if(L<=r){const D=Math[a(309)](r-1,r-L);u[b]===h?M[b]=(f[b]>n[b]?-1:1)*D:m[b]=(l[b]>x[b]?-1:1)*D}}if(e!==t){const L=b==="x"?"y":"x",D=u[b]===s[L],B=f[L]>l[L],j=f[L]<l[L];(u[b]===1&&(!D&&B||D&&j)||u[b]!==1&&(!D&&j||D&&B))&&(y=b==="x"?Y:W)}const Q={x:f.x+M.x,y:f.y+M.y},R={x:l.x+m.x,y:l.y+m.y},X=Math[a(1204)](Math[a(188)](Q.x-y[0].x),Math[a(188)](R.x-y[0].x)),V=Math[a(1204)](Math[a(188)](Q.y-y[0].y),Math[a(188)](R.y-y[0].y));X>=V?(v=(Q.x+R.x)/2,w=y[0].y):(v=y[0].x,w=(Q.y+R.y)/2)}const E={x:f.x+M.x,y:f.y+M.y},O={x:l.x+m.x,y:l.y+m.y};return[[n,...E.x!==y[0].x||E.y!==y[0].y?[E]:[],...y,...O.x!==y[y[a(1849)]-1].x||O.y!==y[y.length-1].y?[O]:[],x],v,w,C,p]}function Zf(n,e,x,t){const o=c,r=Math[o(309)](Ko(n,e)/2,Ko(e,x)/2,t),{x:i,y:a}=e;if(n.x===i&&i===x.x||n.y===a&&a===x.y)return"L"+i+" "+a;if(n.y===a){const f=n.x<x.x?-1:1,l=n.y<x.y?1:-1;return"L "+(i+r*f)+","+a+"Q "+i+","+a+" "+i+","+(a+r*l)}const u=n.x<x.x?1:-1,s=n.y<x.y?-1:1;return"L "+i+","+(a+r*s)+"Q "+i+","+a+" "+(i+r*u)+","+a}function vx({sourceX:n,sourceY:e,sourcePosition:x=fe[c(274)],targetX:t,targetY:o,targetPosition:r=fe[c(876)],borderRadius:i=5,centerX:a,centerY:u,offset:s=20,stepPosition:f=.5}){const l=c,[g,b,h,y,v]=Kf({source:{x:n,y:e},sourcePosition:x,target:{x:t,y:o},targetPosition:r,center:{x:a,y:u},offset:s,stepPosition:f});let w="M"+g[0].x+" "+g[0].y;for(let M=1;M<g.length-1;M++)w+=Zf(g[M-1],g[M],g[M+1],i);return w+="L"+g[g[l(1849)]-1].x+" "+g[g.length-1].y,[w,b,h,y,v]}function Zo(n){const e=c;return n&&!!(n[e(1350)][e(1649)]||n.handles?.[e(1849)])&&!!(n.measured[e(531)]||n[e(531)]||n.initialWidth)}function Rf(n){const e=c,{sourceNode:x,targetNode:t}=n;if(!Zo(x)||!Zo(t))return null;const o=x[e(1350)][e(1649)]||Ro(x[e(1254)]),r=t[e(1350)][e(1649)]||Ro(t.handles),i=Jo(o?.source??[],n[e(1749)]),a=Jo(n.connectionMode===tn[e(1689)]?r?.[e(1122)]??[]:(r?.[e(1122)]??[])[e(455)](r?.[e(344)]??[]),n.targetHandle);if(!i||!a)return n[e(158)]?.(e(1710),qe[e(425)](e(i?1122:344),{id:n.id,sourceHandle:n.sourceHandle,targetHandle:n[e(1014)]})),null;const u=i?.[e(1748)]||fe.Bottom,s=a?.[e(1748)]||fe.Top,f=U0(x,i,u),l=U0(t,a,s);return{sourceX:f.x,sourceY:f.y,targetX:l.x,targetY:l.y,sourcePosition:u,targetPosition:s}}function Ro(n){const e=c;if(!n)return null;const x=[],t=[];for(const o of n)o[e(531)]=o[e(531)]??1,o[e(1348)]=o[e(1348)]??1,o[e(871)]===e(344)?x[e(268)](o):o[e(871)]==="target"&&t.push(o);return{source:x,target:t}}function U0(n,e,x=fe[c(1075)],t=!1){const o=c,r=(e?.x??0)+n[o(1350)][o(1583)].x,i=(e?.y??0)+n.internals.positionAbsolute.y,{width:a,height:u}=e??s0(n);if(t)return{x:r+a/2,y:i+u/2};switch(e?.position??x){case fe[o(876)]:return{x:r+a/2,y:i};case fe[o(1566)]:return{x:r+a,y:i+u/2};case fe[o(274)]:return{x:r+a/2,y:i+u};case fe.Left:return{x:r,y:i+u/2}}}function Jo(n,e){const x=c;return n&&(e?n[x(279)](t=>t.id===e):n[0])||null}function wx(n,e){const x=c;return n?typeof n=="string"?n:""+(e?e+"__":"")+Object[x(1673)](n)[x(522)]()[x(1197)](o=>o+"="+n[o])[x(220)]("&"):""}function Jf(n,{id:e,defaultColor:x,defaultMarkerStart:t,defaultMarkerEnd:o}){const r=c,i=new Set;return n[r(1258)]((a,u)=>{const s=r;return[u[s(286)]||t,u[s(1495)]||o][s(1726)](f=>{const l=s;if(f&&typeof f===l(325)){const g=wx(f,e);!i[l(632)](g)&&(a[l(268)]({id:g,color:f[l(1452)]||x,...f}),i[l(654)](g))}}),a},[]).sort((a,u)=>a.id[r(1234)](u.id))}const ba=1e3,Ff=10,Vx={nodeOrigin:[0,0],nodeExtent:Pn,elevateNodesOnSelect:!0,zIndexMode:c(948),defaults:{}},Qf={...Vx,checkEquality:!0};function qx(n,e){const x={...n};for(const t in e)e[t]!==void 0&&(x[t]=e[t]);return x}function $f(n,e,x){const t=c,o=qx(Vx,x);for(const r of n[t(1404)]())if(r[t(1772)])Xx(r,n,e,o);else{const i=On(r,o[t(1458)]),a=rn(r.extent)?r[t(1039)]:o[t(618)],u=O0(i,a,s0(r));r[t(1350)][t(1583)]=u}}function e2(n,e){const x=c;if(!n[x(1254)])return n[x(1403)]?e?.internals[x(1649)]:void 0;const t=[],o=[];for(const r of n[x(1254)]){const i={id:r.id,width:r[x(531)]??1,height:r[x(1348)]??1,nodeId:n.id,x:r.x,y:r.y,position:r[x(1748)],type:r[x(871)]};r.type==="source"?t[x(268)](i):r[x(871)]===x(1122)&&o[x(268)](i)}return{source:t,target:o}}function Wx(n){return n===c(1022)}function px(n,e,x,t={}){const o=c,r=qx(Qf,t),i={i:0},a=new Map(e),u=r?.[o(1647)]&&!Wx(r[o(1643)])?ba:0;let s=n[o(1849)]>0,f=!1;e[o(1627)](),x[o(1627)]();for(const l of n){let g=a[o(1386)](l.id);if(r[o(661)]&&l===g?.[o(1350)].userNode)e[o(1527)](l.id,g);else{const b=On(l,r[o(1458)]),h=rn(l[o(1039)])?l[o(1039)]:r[o(618)],y=O0(b,h,s0(l));g={...r[o(762)],...l,measured:{width:l.measured?.[o(531)],height:l[o(1403)]?.[o(1348)]},internals:{positionAbsolute:y,handleBounds:e2(l,g),z:ga(l,u,r[o(1643)]),userNode:l}},e[o(1527)](l.id,g)}(g[o(1403)]===void 0||g[o(1403)][o(531)]===void 0||g[o(1403)][o(1348)]===void 0)&&!g[o(197)]&&(s=!1),l[o(1772)]&&Xx(g,e,x,t,i),f||=l[o(500)]??!1}return{nodesInitialized:s,hasSelectedNodes:f}}function n2(n,e){const x=c;if(!n[x(1772)])return;const t=e[x(1386)](n.parentId);t?t[x(1527)](n.id,n):e.set(n[x(1772)],new Map([[n.id,n]]))}function Xx(n,e,x,t,o){const r=c,{elevateNodesOnSelect:i,nodeOrigin:a,nodeExtent:u,zIndexMode:s}=qx(Vx,t),f=n[r(1772)],l=e[r(1386)](f);if(!l){console.warn(r(1184)+f+r(1187));return}n2(n,x),o&&!l.parentId&&l[r(1350)][r(1092)]===void 0&&s===r(1552)&&(l.internals[r(1092)]=++o.i,l[r(1350)].z=l[r(1350)].z+o.i*Ff),o&&l[r(1350)].rootParentIndex!==void 0&&(o.i=l.internals[r(1092)]);const g=i&&!Wx(s)?ba:0,{x:b,y:h,z:y}=t2(n,l,a,u,g,s),{positionAbsolute:v}=n.internals,w=b!==v.x||h!==v.y;(w||y!==n[r(1350)].z)&&e[r(1527)](n.id,{...n,internals:{...n.internals,positionAbsolute:w?{x:b,y:h}:v,z:y}})}function ga(n,e,x){const t=c,o=Re(n.zIndex)?n[t(957)]:0;return Wx(x)?o:o+(n[t(500)]?e:0)}function t2(n,e,x,t,o,r){const i=c,{x:a,y:u}=e[i(1350)][i(1583)],s=s0(n),f=On(n,x),l=rn(n[i(1039)])?O0(f,n[i(1039)],s):f;let g=O0({x:a+l.x,y:u+l.y},t,s);n[i(1039)]===i(297)&&(g=na(g,s,e));const b=ga(n,o,r),h=e[i(1350)].z??0;return{x:g.x,y:g.y,z:h>=b?h+1:b}}function Kx(n,e,x,t=[0,0]){const o=c,r=[],i=new Map;for(const a of n){const u=e.get(a[o(1772)]);if(!u)continue;const s=i[o(1386)](a.parentId)?.[o(1087)]??on(u),f=xa(s,a[o(1819)]);i[o(1527)](a.parentId,{expandedRect:f,parent:u})}return i[o(949)]>0&&i[o(1726)](({expandedRect:a,parent:u},s)=>{const f=o,l=u[f(1350)].positionAbsolute,g=s0(u),b=u[f(1489)]??t,h=a.x<l.x?Math.round(Math[f(188)](l.x-a.x)):0,y=a.y<l.y?Math[f(983)](Math.abs(l.y-a.y)):0,v=Math[f(1204)](g[f(531)],Math[f(983)](a[f(531)])),w=Math[f(1204)](g[f(1348)],Math[f(983)](a[f(1348)])),M=(v-g[f(531)])*b[0],m=(w-g[f(1348)])*b[1];(h>0||y>0||M||m)&&(r[f(268)]({id:s,type:f(1748),position:{x:u[f(1748)].x-h+M,y:u[f(1748)].y-y+m}}),x.get(s)?.[f(1726)](C=>{const p=f;!n[p(1121)](E=>E.id===C.id)&&r[p(268)]({id:C.id,type:p(1748),position:{x:C.position.x+h,y:C[p(1748)].y+y}})})),(g[f(531)]<a[f(531)]||g.height<a[f(1348)]||h||y)&&r[f(268)]({id:s,type:f(799),setAttributes:!0,dimensions:{width:v+(h?b[0]*h-M:0),height:w+(y?b[1]*y-m:0)}})}),r}function x2(n,e,x,t,o,r,i){const a=c,u=t?.[a(1218)](a(326));let s=!1;if(!u)return{changes:[],updatedInternals:s};const f=[],l=window.getComputedStyle(u),{m22:g}=new window.DOMMatrixReadOnly(l[a(1115)]),b=[];for(const h of n.values()){const y=e.get(h.id);if(!y)continue;if(y[a(197)]){e[a(1527)](y.id,{...y,internals:{...y[a(1350)],handleBounds:void 0}}),s=!0;continue}const v=_x(h[a(1069)]),w=y[a(1403)].width!==v[a(531)]||y[a(1403)].height!==v[a(1348)];if(!!(v[a(531)]&&v.height&&(w||!y[a(1350)][a(1649)]||h.force))){const m=h[a(1069)][a(202)](),C=rn(y[a(1039)])?y.extent:r;let{positionAbsolute:p}=y.internals;y[a(1772)]&&y[a(1039)]==="parent"?p=na(p,v,e[a(1386)](y[a(1772)])):C&&(p=O0(p,C,v));const E={...y,measured:v,internals:{...y[a(1350)],positionAbsolute:p,handleBounds:{source:qo(a(344),h[a(1069)],m,g,y.id),target:qo(a(1122),h[a(1069)],m,g,y.id)}}};e.set(y.id,E),y.parentId&&Xx(E,e,x,{nodeOrigin:o,zIndexMode:i}),s=!0,w&&(f[a(268)]({id:y.id,type:a(799),dimensions:v}),y[a(1225)]&&y[a(1772)]&&b.push({id:y.id,parentId:y[a(1772)],rect:on(E,o)}))}}if(b[a(1849)]>0){const h=Kx(b,e,x,o);f.push(...h)}return{changes:f,updatedInternals:s}}async function o2({delta:n,panZoom:e,transform:x,translateExtent:t,width:o,height:r}){const i=c;if(!e||!n.x&&!n.y)return Promise[i(923)](!1);const a=await e.setViewportConstrained({x:x[0]+n.x,y:x[1]+n.y,zoom:x[2]},[[0,0],[o,r]],t),u=!!a&&(a.x!==x[0]||a.y!==x[1]||a.k!==x[2]);return Promise.resolve(u)}function Fo(n,e,x,t,o,r){const i=c;let a=o;const u=t[i(1386)](a)||new Map;t[i(1527)](a,u[i(1527)](x,e)),a=o+"-"+n;const s=t[i(1386)](a)||new Map;if(t[i(1527)](a,s[i(1527)](x,e)),r){a=o+"-"+n+"-"+r;const f=t[i(1386)](a)||new Map;t[i(1527)](a,f.set(x,e))}}function ya(n,e,x){const t=c;n[t(1627)](),e.clear();for(const o of x){const{source:r,target:i,sourceHandle:a=null,targetHandle:u=null}=o,s={edgeId:o.id,source:r,target:i,sourceHandle:a,targetHandle:u},f=r+"-"+a+"--"+i+"-"+u,l=i+"-"+u+"--"+r+"-"+a;Fo(t(344),s,l,n,r,a),Fo("target",s,f,n,i,u),e.set(o.id,o)}}function ma(n,e){const x=c;if(!n[x(1772)])return!1;const t=e.get(n.parentId);return t?t[x(500)]?!0:ma(t,e):!1}function Qo(n,e,x){const t=c;let o=n;do{if(o?.[t(1213)]?.(e))return!0;if(o===x)return!1;o=o?.[t(1457)]}while(o);return!1}function r2(n,e,x,t){const o=c,r=new Map;for(const[i,a]of n)if((a[o(500)]||a.id===t)&&(!a[o(1772)]||!ma(a,n))&&(a[o(1319)]||e&&typeof a[o(1319)]>"u")){const u=n.get(i);u&&r.set(i,{id:i,position:u[o(1748)]||{x:0,y:0},distance:{x:x.x-u.internals[o(1583)].x,y:x.y-u[o(1350)].positionAbsolute.y},extent:u.extent,parentId:u[o(1772)],origin:u.origin,expandParent:u.expandParent,internals:{positionAbsolute:u.internals.positionAbsolute||{x:0,y:0}},measured:{width:u[o(1403)][o(531)]??0,height:u[o(1403)][o(1348)]??0}})}return r}function Jt({nodeId:n,dragItems:e,nodeLookup:x,dragging:t=!0}){const o=c,r=[];for(const[a,u]of e){const s=x.get(a)?.internals[o(426)];s&&r[o(268)]({...s,position:u.position,dragging:t})}if(!n)return[r[0],r];const i=x.get(n)?.[o(1350)].userNode;return[i?{...i,position:e.get(n)?.[o(1748)]||i.position,dragging:t}:r[0],r]}function i2({dragItems:n,snapGrid:e,x,y:t}){const o=c,r=n[o(1404)]()[o(1778)]()[o(160)];if(!r)return null;const i={x:x-r.distance.x,y:t-r[o(974)].y},a=Tn(i,e);return{x:a.x-i.x,y:a.y-i.y}}function a2({onNodeMouseDown:n,getStoreItems:e,onDragStart:x,onDrag:t,onDragStop:o}){let r={x:null,y:null},i=0,a=new Map,u=!1,s={x:0,y:0},f=null,l=!1,g=null,b=!1,h=!1,y=null;function v({noDragClassName:M,handleSelector:m,domNode:C,isSelectable:p,nodeId:E,nodeClickDistance:O=0}){const U=I;g=_e(C);function Y({x:X,y:V}){const L=I,{nodeLookup:D,nodeExtent:B,snapGrid:j,snapToGrid:A,nodeOrigin:S,onNodeDrag:Z,onSelectionDrag:K,onError:H,updateNodePositions:F}=e();r={x:X,y:V};let ee=!1;const ne=a.size>1,xe=ne&&B?mx(Un(a)):null,se=ne&&A?i2({dragItems:a,snapGrid:j,x:X,y:V}):null;for(const[ae,N]of a){if(!D.has(ae))continue;let T={x:X-N[L(974)].x,y:V-N[L(974)].y};A&&(T=se?{x:Math.round(T.x+se.x),y:Math[L(983)](T.y+se.y)}:Tn(T,j));let J=null;if(ne&&B&&!N[L(1039)]&&xe){const{positionAbsolute:te}=N[L(1350)],de=te.x-xe.x+B[0][0],ye=te.x+N[L(1403)][L(531)]-xe.x2+B[1][0],le=te.y-xe.y+B[0][1],be=te.y+N.measured.height-xe.y2+B[1][1];J=[[de,le],[ye,be]]}const{position:G,positionAbsolute:k}=ea({nodeId:ae,nextPosition:T,nodeLookup:D,nodeExtent:J||B,nodeOrigin:S,onError:H});ee=ee||N[L(1748)].x!==G.x||N[L(1748)].y!==G.y,N.position=G,N[L(1350)][L(1583)]=k}if(h=h||ee,!!ee&&(F(a,!0),y&&(t||Z||!E&&K))){const[ae,N]=Jt({nodeId:E,dragItems:a,nodeLookup:D});t?.(y,a,ae,N),Z?.(y,ae,N),!E&&K?.(y,N)}}async function W(){if(!f)return;const{transform:X,panBy:V,autoPanSpeed:L,autoPanOnNodeDrag:D}=e();if(!D){u=!1,cancelAnimationFrame(i);return}const[B,j]=ta(s,f,L);(B!==0||j!==0)&&(r.x=(r.x??0)-B/X[2],r.y=(r.y??0)-j/X[2],await V({x:B,y:j})&&Y(r)),i=requestAnimationFrame(W)}function Q(X){const V=I,{nodeLookup:L,multiSelectionActive:D,nodesDraggable:B,transform:j,snapGrid:A,snapToGrid:S,selectNodesOnDrag:Z,onNodeDragStart:K,onSelectionDragStart:H,unselectNodesAndEdges:F}=e();l=!0,(!Z||!p)&&!D&&E&&!L[V(1386)](E)?.[V(500)]&&F(),p&&Z&&E&&n?.(E);const ee=Mn(X.sourceEvent,{transform:j,snapGrid:A,snapToGrid:S,containerBounds:f});if(r=ee,a=r2(L,B,ee,E),a[V(949)]>0&&(x||K||!E&&H)){const[ne,xe]=Jt({nodeId:E,dragItems:a,nodeLookup:L});x?.(X[V(1355)],a,ne,xe),K?.(X[V(1355)],ne,xe),!E&&H?.(X[V(1355)],xe)}}const R=Ai()[U(1291)](O).on(U(1460),X=>{const V=U,{domNode:L,nodeDragThreshold:D,transform:B,snapGrid:j,snapToGrid:A}=e();f=L?.getBoundingClientRect()||null,b=!1,h=!1,y=X[V(1355)],D===0&&Q(X),r=Mn(X[V(1355)],{transform:B,snapGrid:j,snapToGrid:A,containerBounds:f}),s=Je(X.sourceEvent,f)}).on("drag",X=>{const V=U,{autoPanOnNodeDrag:L,transform:D,snapGrid:B,snapToGrid:j,nodeDragThreshold:A,nodeLookup:S}=e(),Z=Mn(X.sourceEvent,{transform:D,snapGrid:B,snapToGrid:j,containerBounds:f});if(y=X[V(1355)],(X[V(1355)][V(871)]===V(1667)&&X[V(1355)][V(1110)][V(1849)]>1||E&&!S[V(632)](E))&&(b=!0),!b){if(!u&&L&&l&&(u=!0,W()),!l){const K=Je(X[V(1355)],f),H=K.x-s.x,F=K.y-s.y;Math[V(1594)](H*H+F*F)>A&&Q(X)}(r.x!==Z.xSnapped||r.y!==Z[V(301)])&&a&&l&&(s=Je(X[V(1355)],f),Y(Z))}}).on(U(901),X=>{const V=U;if(!(!l||b)&&(u=!1,l=!1,cancelAnimationFrame(i),a[V(949)]>0)){const{nodeLookup:L,updateNodePositions:D,onNodeDragStop:B,onSelectionDragStop:j}=e();if(h&&(D(a,!1),h=!1),o||B||!E&&j){const[A,S]=Jt({nodeId:E,dragItems:a,nodeLookup:L,dragging:!1});o?.(X.sourceEvent,a,A,S),B?.(X.sourceEvent,A,S),!E&&j?.(X[V(1355)],S)}}})[U(805)](X=>{const V=U,L=X[V(1122)];return!X[V(1141)]&&(!M||!Qo(L,"."+M,C))&&(!m||Qo(L,m,C))});g[U(1754)](R)}function w(){const M=I;g?.on(M(1716),null)}return{update:v,destroy:w}}function c2(n,e,x){const t=c,o=[],r={x:n.x-x,y:n.y-x,width:x*2,height:x*2};for(const i of e[t(1404)]())In(r,on(i))>0&&o.push(i);return o}const s2=250;function l2(n,e,x,t){const o=c;let r=[],i=1/0;const a=c2(n,x,e+s2);for(const u of a){const s=[...u[o(1350)][o(1649)]?.source??[],...u.internals[o(1649)]?.[o(1122)]??[]];for(const f of s){if(t[o(369)]===f[o(369)]&&t[o(871)]===f[o(871)]&&t.id===f.id)continue;const{x:l,y:g}=U0(u,f,f[o(1748)],!0),b=Math[o(1594)](Math.pow(l-n.x,2)+Math[o(277)](g-n.y,2));b>e||(b<i?(r=[{...f,x:l,y:g}],i=b):b===i&&r[o(268)]({...f,x:l,y:g}))}}if(!r[o(1849)])return null;if(r[o(1849)]>1){const u=t[o(871)]==="source"?"target":"source";return r[o(279)](s=>s.type===u)??r[0]}return r[0]}function va(n,e,x,t,o,r=!1){const i=c,a=t[i(1386)](n);if(!a)return null;const u=o===i(1276)?a[i(1350)].handleBounds?.[e]:[...a[i(1350)][i(1649)]?.[i(344)]??[],...a[i(1350)][i(1649)]?.[i(1122)]??[]],s=(x?u?.[i(279)](f=>f.id===x):u?.[0])??null;return s&&r?{...s,...U0(a,s,s[i(1748)],!0)}:s}function wa(n,e){const x=c;return n||(e?.classList[x(1089)]("target")?x(1122):e?.[x(1732)].contains(x(344))?"source":null)}function d2(n,e){let x=null;return e?x=!0:n&&!e&&(x=!1),x}const pa=()=>!0;function u2(n,{connectionMode:e,connectionRadius:x,handleId:t,nodeId:o,edgeUpdaterType:r,isTarget:i,domNode:a,nodeLookup:u,lib:s,autoPanOnConnect:f,flowId:l,panBy:g,cancelConnection:b,onConnectStart:h,onConnect:y,onConnectEnd:v,isValidConnection:w=pa,onReconnectEnd:M,updateConnection:m,getTransform:C,getFromHandle:p,autoPanSpeed:E,dragThreshold:O=1,handleDomNode:U}){const Y=c,W=aa(n.target);let Q=0,R;const{x:X,y:V}=Je(n),L=wa(r,U),D=a?.[Y(202)]();let B=!1;if(!D||!L)return;const j=va(o,L,t,u,e);if(!j)return;let A=Je(n,D),S=!1,Z=null,K=!1,H=null;function F(){if(!f||!D)return;const[J,G]=ta(A,D,E);g({x:J,y:G}),Q=requestAnimationFrame(F)}const ee={...j,nodeId:o,type:L,position:j.position},ne=u[Y(1386)](o);let se={inProgress:!0,isValid:null,from:U0(ne,ee,fe[Y(1075)],!0),fromHandle:ee,fromPosition:ee[Y(1748)],fromNode:ne,to:A,toHandle:null,toPosition:Go[ee[Y(1748)]],toNode:null,pointer:A};function ae(){B=!0,m(se),h?.(n,{nodeId:o,handleId:t,handleType:L})}O===0&&ae();function N(J){const G=Y;if(!B){const{x:be,y:we}=Je(J),pe=be-X,me=we-V;if(!(pe*pe+me*me>O*O))return;ae()}if(!p()||!ee){T(J);return}const k=C();A=Je(J,D),R=l2(Gn(A,k,!1,[1,1]),x,u,ee),!S&&(F(),S=!0);const te=Ca(J,{handle:R,connectionMode:e,fromNodeId:o,fromHandleId:t,fromType:G(i?1122:344),isValidConnection:w,doc:W,lib:s,flowId:l,nodeLookup:u});H=te[G(543)],Z=te[G(148)],K=d2(!!R,te.isValid);const de=u[G(1386)](o),ye=de?U0(de,ee,fe[G(1075)],!0):se[G(1763)],le={...se,from:ye,isValid:K,to:te[G(1679)]&&K?Lt({x:te.toHandle.x,y:te[G(1679)].y},k):A,toHandle:te[G(1679)],toPosition:K&&te[G(1679)]?te.toHandle.position:Go[ee.position],toNode:te[G(1679)]?u[G(1386)](te[G(1679)][G(369)]):null,pointer:A};m(le),se=le}function T(J){const G=Y;if(!(G(1110)in J&&J[G(1110)][G(1849)]>0)){if(B){(R||H)&&Z&&K&&y?.(Z);const{inProgress:k,...te}=se,de={...te,toPosition:se[G(1679)]?se[G(833)]:null};v?.(J,de),r&&M?.(J,de)}b(),cancelAnimationFrame(Q),S=!1,K=!1,Z=null,H=null,W[G(1558)](G(1220),N),W[G(1558)](G(561),T),W[G(1558)](G(1667),N),W[G(1558)](G(584),T)}}W.addEventListener(Y(1220),N),W.addEventListener("mouseup",T),W[Y(423)](Y(1667),N),W[Y(423)](Y(584),T)}function Ca(n,{handle:e,connectionMode:x,fromNodeId:t,fromHandleId:o,fromType:r,doc:i,lib:a,flowId:u,isValidConnection:s=pa,nodeLookup:f}){const l=c,g=r==="target",b=e?i[l(1218)]("."+a+l(1036)+u+"-"+e?.[l(369)]+"-"+e?.id+"-"+e?.type+'"]'):null,{x:h,y}=Je(n),v=i.elementFromPoint(h,y),w=v?.[l(1732)][l(1089)](a+l(1744))?v:b,M={handleDomNode:w,isValid:!1,connection:null,toHandle:null};if(w){const m=wa(void 0,w),C=w[l(731)]("data-nodeid"),p=w[l(731)]("data-handleid"),E=w.classList[l(1089)](l(1652)),O=w[l(1732)][l(1089)](l(514));if(!C||!m)return M;const U={source:g?C:t,sourceHandle:g?p:o,target:g?t:C,targetHandle:g?o:p};M[l(148)]=U;const Y=E&&O,W=Y&&(x===tn[l(1689)]?g&&m===l(344)||!g&&m==="target":C!==t||p!==o);M.isValid=W&&s(U),M[l(1679)]=va(C,m,p,f,x,!0)}return M}const Cx={onPointerDown:u2,isValid:Ca};function f2({domNode:n,panZoom:e,getTransform:x,getViewScale:t}){const o=_e(n);function r({translateExtent:a,width:u,height:s,zoomStep:f=1,pannable:l=!0,zoomable:g=!0,inversePan:b=!1}){const h=I,y=C=>{const p=I;if(C[p(1355)][p(871)]!==p(1209)||!e)return;const E=x(),O=C[p(1355)][p(733)]&&An()?10:1,U=-C.sourceEvent[p(1286)]*(C.sourceEvent[p(1586)]===1?.05:C[p(1355)][p(1586)]?1:.002)*f,Y=E[2]*Math[p(277)](2,U*O);e[p(720)](Y)};let v=[0,0];const w=C=>{const p=I;(C[p(1355)][p(871)]===p(1803)||C[p(1355)][p(871)]===p(245))&&(v=[C.sourceEvent[p(363)]??C[p(1355)][p(1110)][0][p(363)],C[p(1355)][p(505)]??C[p(1355)][p(1110)][0][p(505)]])},M=C=>{const p=I,E=x();if(C.sourceEvent[p(871)]!=="mousemove"&&C[p(1355)][p(871)]!=="touchmove"||!e)return;const O=[C[p(1355)][p(363)]??C[p(1355)][p(1110)][0][p(363)],C[p(1355)][p(505)]??C[p(1355)][p(1110)][0][p(505)]],U=[O[0]-v[0],O[1]-v[1]];v=O;const Y=t()*Math[p(1204)](E[2],Math[p(1339)](E[2]))*(b?-1:1),W={x:E[0]-U[0]*Y,y:E[1]-U[1]*Y},Q=[[0,0],[u,s]];e[p(597)]({x:W.x,y:W.y,zoom:E[2]},Q,a)},m=Zi().on(h(1460),w).on("zoom",l?M:null).on(h(714),g?y:null);o[h(1754)](m,{})}function i(){const a=I;o.on(a(734),null)}return{update:r,destroy:i,pointer:Ke}}const Ot=n=>({x:n.x,y:n.y,zoom:n.k}),Ft=({x:n,y:e,zoom:x})=>jt[c(320)](n,e)[c(796)](x),X0=(n,e)=>n[c(1122)].closest("."+e),za=(n,e)=>e===2&&Array[c(171)](n)&&n[c(617)](2),h2=n=>((n*=2)<=1?n*n*n:(n-=2)*n*n+2)/2,Qt=(n,e=0,x=h2,t=()=>{})=>{const o=c,r=typeof e===o(528)&&e>0;return!r&&t(),r?n[o(1116)]().duration(e)[o(1260)](x).on("end",t):n},Ma=n=>{const e=c,x=n[e(733)]&&An()?10:1;return-n.deltaY*(n[e(1586)]===1?.05:n.deltaMode?1:.002)*x};function b2({zoomPanValues:n,noWheelClassName:e,d3Selection:x,d3Zoom:t,panOnScrollMode:o,panOnScrollSpeed:r,zoomOnPinch:i,onPanZoomStart:a,onPanZoom:u,onPanZoomEnd:s}){return f=>{const l=I;if(X0(f,e))return f.ctrlKey&&f[l(550)](),!1;f[l(550)](),f[l(738)]();const g=x[l(359)](l(984)).k||1;if(f[l(733)]&&i){const w=Ke(f),M=Ma(f),m=g*Math[l(277)](2,M);t[l(720)](x,m,w,f);return}const b=f.deltaMode===1?20:1;let h=o===A0[l(1615)]?0:f[l(1361)]*b,y=o===A0[l(572)]?0:f[l(1286)]*b;!An()&&f[l(1791)]&&o!==A0[l(1615)]&&(h=f[l(1286)]*b,y=0),t[l(560)](x,-(h/g)*r,-(y/g)*r,{internal:!0});const v=Ot(x.property("__zoom"));clearTimeout(n[l(1255)]),n.isPanScrolling?(u?.(f,v),n.panScrollTimeout=setTimeout(()=>{s?.(f,v),n.isPanScrolling=!1},150)):(n[l(461)]=!0,a?.(f,v))}}function g2({noWheelClassName:n,preventScrolling:e,d3ZoomHandler:x}){return function(t,o){const r=I,i=t[r(871)]===r(1209),a=!e&&i&&!t[r(733)],u=X0(t,n);if(t[r(733)]&&i&&u&&t[r(550)](),a||u)return null;t[r(550)](),x.call(this,t,o)}}function y2({zoomPanValues:n,onDraggingChange:e,onPanZoomStart:x}){return t=>{const o=I;if(t[o(1355)]?.[o(1003)])return;const r=Ot(t.transform);n[o(1351)]=t[o(1355)]?.[o(1141)]||0,n[o(1100)]=!0,n[o(408)]=r,t[o(1355)]?.[o(871)]===o(1803)&&e(!0),x&&x?.(t[o(1355)],r)}}function m2({zoomPanValues:n,panOnDrag:e,onPaneContextMenu:x,onTransformChange:t,onPanZoom:o}){return r=>{const i=I;n[i(1826)]=!!(x&&za(e,n[i(1351)]??0)),!r[i(1355)]?.[i(563)]&&t([r[i(1115)].x,r[i(1115)].y,r[i(1115)].k]),o&&!r[i(1355)]?.internal&&o?.(r[i(1355)],Ot(r[i(1115)]))}}function v2({zoomPanValues:n,panOnDrag:e,panOnScroll:x,onDraggingChange:t,onPanZoomEnd:o,onPaneContextMenu:r}){return i=>{const a=I;if(!i[a(1355)]?.[a(1003)]&&(n[a(1100)]=!1,r&&za(e,n[a(1351)]??0)&&!n[a(1826)]&&i[a(1355)]&&r(i[a(1355)]),n.usedRightMouseButton=!1,t(!1),o)){const u=Ot(i[a(1115)]);n[a(408)]=u,clearTimeout(n[a(867)]),n.timerId=setTimeout(()=>{o?.(i.sourceEvent,u)},x?150:0)}}}function w2({zoomActivationKeyPressed:n,zoomOnScroll:e,zoomOnPinch:x,panOnDrag:t,panOnScroll:o,zoomOnDoubleClick:r,userSelectionActive:i,noWheelClassName:a,noPanClassName:u,lib:s,connectionInProgress:f}){return l=>{const g=I,b=n||e,h=x&&l.ctrlKey,y=l[g(871)]===g(1209);if(l[g(1141)]===1&&l[g(871)]==="mousedown"&&(X0(l,s+g(1188))||X0(l,s+g(924))))return!0;if(!t&&!b&&!o&&!r&&!x||i||f&&!y||X0(l,a)&&y||X0(l,u)&&(!y||o&&y&&!n)||!x&&l[g(733)]&&y)return!1;if(!x&&l[g(871)]===g(245)&&l.touches?.[g(1849)]>1)return l[g(550)](),!1;if(!b&&!o&&!h&&y||!t&&(l[g(871)]===g(1803)||l[g(871)]===g(245))||Array[g(171)](t)&&!t[g(617)](l[g(1141)])&&l[g(871)]===g(1803))return!1;const v=Array[g(171)](t)&&t[g(617)](l[g(1141)])||!l.button||l[g(1141)]<=1;return(!l[g(733)]||y)&&v}}function p2({domNode:n,minZoom:e,maxZoom:x,translateExtent:t,viewport:o,onPanZoom:r,onPanZoomStart:i,onPanZoomEnd:a,onDraggingChange:u}){const s=c,f={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},l=n[s(202)](),g=Zi().scaleExtent([e,x]).translateExtent(t),b=_e(n).call(g);m({x:o.x,y:o.y,zoom:xn(o.zoom,e,x)},[[0,0],[l.width,l[s(1348)]]],t);const h=b.on(s(157)),y=b.on("dblclick.zoom");g[s(801)](Ma);function v(R,X){const V=s;return b?new Promise(L=>{const D=I;g?.[D(1175)](X?.interpolate===D(1642)?zn:lt)[D(1115)](Qt(b,X?.duration,X?.ease,()=>L(!0)),R)}):Promise[V(923)](!1)}function w({noWheelClassName:R,noPanClassName:X,onPaneContextMenu:V,userSelectionActive:L,panOnScroll:D,panOnDrag:B,panOnScrollMode:j,panOnScrollSpeed:A,preventScrolling:S,zoomOnPinch:Z,zoomOnScroll:K,zoomOnDoubleClick:H,zoomActivationKeyPressed:F,lib:ee,onTransformChange:ne,connectionInProgress:xe,paneClickDistance:se,selectionOnDrag:ae}){const N=s;L&&!f[N(1100)]&&M();const T=D&&!F&&!L;g[N(1291)](ae?1/0:!Re(se)||se<0?0:se);const J=T?b2({zoomPanValues:f,noWheelClassName:R,d3Selection:b,d3Zoom:g,panOnScrollMode:j,panOnScrollSpeed:A,zoomOnPinch:Z,onPanZoomStart:i,onPanZoom:r,onPanZoomEnd:a}):g2({noWheelClassName:R,preventScrolling:S,d3ZoomHandler:h});if(b.on("wheel.zoom",J,{passive:!1}),!L){const k=y2({zoomPanValues:f,onDraggingChange:u,onPanZoomStart:i});g.on("start",k);const te=m2({zoomPanValues:f,panOnDrag:B,onPaneContextMenu:!!V,onPanZoom:r,onTransformChange:ne});g.on(N(734),te);const de=v2({zoomPanValues:f,panOnDrag:B,panOnScroll:D,onPaneContextMenu:V,onPanZoomEnd:a,onDraggingChange:u});g.on(N(901),de)}const G=w2({zoomActivationKeyPressed:F,panOnDrag:B,zoomOnScroll:K,panOnScroll:D,zoomOnDoubleClick:H,zoomOnPinch:Z,userSelectionActive:L,noPanClassName:X,noWheelClassName:R,lib:ee,connectionInProgress:xe});g.filter(G),H?b.on(N(510),y):b.on("dblclick.zoom",null)}function M(){const R=s;g.on(R(734),null)}async function m(R,X,V){const L=Ft(R),D=g?.constrain()(L,X,V);return D&&await v(D),new Promise(B=>B(D))}async function C(R,X){const V=Ft(R);return await v(V,X),new Promise(L=>L(V))}function p(R){const X=s;if(b){const V=Ft(R),L=b[X(359)]("__zoom");(L.k!==R[X(734)]||L.x!==R.x||L.y!==R.y)&&g?.[X(1115)](b,V,null,{sync:!0})}}function E(){const R=s,X=b?Ki(b[R(1802)]()):{x:0,y:0,k:1};return{x:X.x,y:X.y,zoom:X.k}}function O(R,X){const V=s;return b?new Promise(L=>{const D=I;g?.[D(1175)](X?.[D(1175)]===D(1642)?zn:lt)[D(720)](Qt(b,X?.[D(794)],X?.ease,()=>L(!0)),R)}):Promise[V(923)](!1)}function U(R,X){return b?new Promise(V=>{const L=I;g?.[L(1175)](X?.[L(1175)]===L(1642)?zn:lt)[L(1010)](Qt(b,X?.[L(794)],X?.[L(1260)],()=>V(!0)),R)}):Promise.resolve(!1)}function Y(R){g?.[s(304)](R)}function W(R){g?.[s(1704)](R)}function Q(R){const X=!Re(R)||R<0?0:R;g?.clickDistance(X)}return{update:w,destroy:M,setViewport:C,setViewportConstrained:m,getViewport:E,scaleTo:O,scaleBy:U,setScaleExtent:Y,setTranslateExtent:W,syncViewport:p,setClickDistance:Q}}var an;(function(n){const e=c;n.Line=e(845),n[e(1200)]=e(1453)})(an||(an={}));function C2({width:n,prevWidth:e,height:x,prevHeight:t,affectsX:o,affectsY:r}){const i=n-e,a=x-t,u=[i>0?1:i<0?-1:0,a>0?1:a<0?-1:0];return i&&o&&(u[0]=u[0]*-1),a&&r&&(u[1]=u[1]*-1),u}function $o(n){const e=c,x=n.includes(e(1835))||n[e(617)](e(1407)),t=n[e(617)]("bottom")||n[e(617)](e(1692)),o=n[e(617)](e(1407)),r=n.includes(e(1692));return{isHorizontal:x,isVertical:t,affectsX:o,affectsY:r}}function v0(n,e){return Math[c(1204)](0,e-n)}function w0(n,e){return Math[c(1204)](0,n-e)}function $n(n,e,x){return Math[c(1204)](0,e-n,n-x)}function er(n,e){return n?!e:e}function z2(n,e,x,t,o,r,i,a){const u=c;let{affectsX:s,affectsY:f}=e;const{isHorizontal:l,isVertical:g}=e,b=l&&g,{xSnapped:h,ySnapped:y}=x,{minWidth:v,maxWidth:w,minHeight:M,maxHeight:m}=t,{x:C,y:p,width:E,height:O,aspectRatio:U}=n;let Y=Math[u(1782)](l?h-n.pointerX:0),W=Math[u(1782)](g?y-n[u(314)]:0);const Q=E+(s?-Y:Y),R=O+(f?-W:W),X=-r[0]*E,V=-r[1]*O;let L=$n(Q,v,w),D=$n(R,M,m);if(i){let A=0,S=0;s&&Y<0?A=v0(C+Y+X,i[0][0]):!s&&Y>0&&(A=w0(C+Q+X,i[1][0])),f&&W<0?S=v0(p+W+V,i[0][1]):!f&&W>0&&(S=w0(p+R+V,i[1][1])),L=Math[u(1204)](L,A),D=Math[u(1204)](D,S)}if(a){let A=0,S=0;s&&Y>0?A=w0(C+Y,a[0][0]):!s&&Y<0&&(A=v0(C+Q,a[1][0])),f&&W>0?S=w0(p+W,a[0][1]):!f&&W<0&&(S=v0(p+R,a[1][1])),L=Math[u(1204)](L,A),D=Math[u(1204)](D,S)}if(o){if(l){const A=$n(Q/U,M,m)*U;if(L=Math[u(1204)](L,A),i){let S=0;!s&&!f||s&&!f&&b?S=w0(p+V+Q/U,i[1][1])*U:S=v0(p+V+(s?Y:-Y)/U,i[0][1])*U,L=Math[u(1204)](L,S)}if(a){let S=0;!s&&!f||s&&!f&&b?S=v0(p+Q/U,a[1][1])*U:S=w0(p+(s?Y:-Y)/U,a[0][1])*U,L=Math[u(1204)](L,S)}}if(g){const A=$n(R*U,v,w)/U;if(D=Math.max(D,A),i){let S=0;!s&&!f||f&&!s&&b?S=w0(C+R*U+X,i[1][0])/U:S=v0(C+(f?W:-W)*U+X,i[0][0])/U,D=Math[u(1204)](D,S)}if(a){let S=0;!s&&!f||f&&!s&&b?S=v0(C+R*U,a[1][0])/U:S=w0(C+(f?W:-W)*U,a[0][0])/U,D=Math[u(1204)](D,S)}}}W=W+(W<0?D:-D),Y=Y+(Y<0?L:-L),o&&(b?Q>R*U?W=(er(s,f)?-Y:Y)/U:Y=(er(s,f)?-W:W)*U:l?(W=Y/U,f=s):(Y=W*U,s=f));const B=s?C+Y:C,j=f?p+W:p;return{width:E+(s?-Y:Y),height:O+(f?-W:W),x:r[0]*Y*(s?-1:1)+B,y:r[1]*W*(f?-1:1)+j}}const Ba={width:0,height:0,x:0,y:0},M2={...Ba,pointerX:0,pointerY:0,aspectRatio:1};function B2(n){const e=c;return[[0,0],[n.measured[e(531)],n.measured[e(1348)]]]}function D2(n,e,x){const t=c,o=e[t(1748)].x+n.position.x,r=e[t(1748)].y+n[t(1748)].y,i=n[t(1403)][t(531)]??0,a=n[t(1403)][t(1348)]??0,u=x[0]*i,s=x[1]*a;return[[o-u,r-s],[o+i-u,r+a-s]]}function L2({domNode:n,nodeId:e,getStoreItems:x,onChange:t,onEnd:o}){const r=c,i=_e(n);let a={controlDirection:$o(r(1639)),boundaries:{minWidth:0,minHeight:0,maxWidth:Number.MAX_VALUE,maxHeight:Number[r(1229)]},resizeDirection:void 0,keepAspectRatio:!1};function u({controlPosition:f,boundaries:l,keepAspectRatio:g,resizeDirection:b,onResizeStart:h,onResize:y,onResizeEnd:v,shouldResize:w}){const M=r;let m={...Ba},C={...M2};a={boundaries:l,resizeDirection:b,keepAspectRatio:g,controlDirection:$o(f)};let p,E=null,O=[],U,Y,W,Q=!1;const R=Ai().on("start",X=>{const V=I,{nodeLookup:L,transform:D,snapGrid:B,snapToGrid:j,nodeOrigin:A,paneDomNode:S}=x();if(p=L[V(1386)](e),!p)return;E=S?.[V(202)]()??null;const{xSnapped:Z,ySnapped:K}=Mn(X[V(1355)],{transform:D,snapGrid:B,snapToGrid:j,containerBounds:E});m={width:p[V(1403)][V(531)]??0,height:p.measured[V(1348)]??0,x:p[V(1748)].x??0,y:p[V(1748)].y??0},C={...m,pointerX:Z,pointerY:K,aspectRatio:m[V(531)]/m[V(1348)]},U=void 0,p.parentId&&(p[V(1039)]===V(297)||p[V(1225)])&&(U=L[V(1386)](p[V(1772)]),Y=U&&p[V(1039)]===V(297)?B2(U):void 0),O=[],W=void 0;for(const[H,F]of L)if(F[V(1772)]===e&&(O[V(268)]({id:H,position:{...F.position},extent:F[V(1039)]}),F[V(1039)]===V(297)||F[V(1225)])){const ee=D2(F,p,F[V(1489)]??A);W?W=[[Math[V(309)](ee[0][0],W[0][0]),Math[V(309)](ee[0][1],W[0][1])],[Math[V(1204)](ee[1][0],W[1][0]),Math[V(1204)](ee[1][1],W[1][1])]]:W=ee}h?.(X,{...m})}).on(M(765),X=>{const V=M,{transform:L,snapGrid:D,snapToGrid:B,nodeOrigin:j}=x(),A=Mn(X[V(1355)],{transform:L,snapGrid:D,snapToGrid:B,containerBounds:E}),S=[];if(!p)return;const{x:Z,y:K,width:H,height:F}=m,ee={},ne=p.origin??j,{width:xe,height:se,x:ae,y:N}=z2(C,a[V(1568)],A,a.boundaries,a[V(792)],ne,Y,W),T=xe!==H,J=se!==F,G=ae!==Z&&T,k=N!==K&&J;if(!G&&!k&&!T&&!J)return;if((G||k||ne[0]===1||ne[1]===1)&&(ee.x=G?ae:m.x,ee.y=k?N:m.y,m.x=ee.x,m.y=ee.y,O.length>0)){const le=ae-Z,be=N-K;for(const we of O)we.position={x:we.position.x-le+ne[0]*(xe-H),y:we[V(1748)].y-be+ne[1]*(se-F)},S[V(268)](we)}if((T||J)&&(ee[V(531)]=T&&(!a.resizeDirection||a.resizeDirection===V(406))?xe:m[V(531)],ee[V(1348)]=J&&(!a[V(689)]||a[V(689)]==="vertical")?se:m.height,m[V(531)]=ee[V(531)],m[V(1348)]=ee[V(1348)]),U&&p[V(1225)]){const le=ne[0]*(ee[V(531)]??0);ee.x&&ee.x<le&&(m.x=le,C.x=C.x-(ee.x-le));const be=ne[1]*(ee.height??0);ee.y&&ee.y<be&&(m.y=be,C.y=C.y-(ee.y-be))}const te=C2({width:m[V(531)],prevWidth:H,height:m[V(1348)],prevHeight:F,affectsX:a.controlDirection[V(1775)],affectsY:a[V(1568)][V(238)]}),de={...m,direction:te};w?.(X,de)!==!1&&(Q=!0,y?.(X,de),t(ee,S))}).on(M(901),X=>{Q&&(v?.(X,{...m}),o?.({...m}),Q=!1)});i[M(1754)](R)}function s(){const f=r;i.on(f(1716),null)}return{update:u,destroy:s}}var et={exports:{}},$t={},nt={exports:{}},ex={},nr;function N2(){const n=c;if(nr)return ex;nr=1;var e=P;function x(g,b){return g===b&&(g!==0||1/g===1/b)||g!==g&&b!==b}var t=n(842)===typeof Object.is?Object.is:x,o=e[n(280)],r=e.useEffect,i=e.useLayoutEffect,a=e[n(198)];function u(g,b){const h=n;var y=b(),v=o({inst:{value:y,getSnapshot:b}}),w=v[0][h(242)],M=v[1];return i(function(){const m=h;w.value=y,w[m(1570)]=b,s(w)&&M({inst:w})},[g,y,b]),r(function(){return s(w)&&M({inst:w}),g(function(){s(w)&&M({inst:w})})},[g]),a(y),y}function s(g){const b=n;var h=g.getSnapshot;g=g[b(160)];try{var y=h();return!t(g,y)}catch{return!0}}function f(g,b){return b()}var l=typeof window>"u"||n(1821)===typeof window.document||n(1821)===typeof window[n(1299)][n(1785)]?f:u;return ex[n(956)]=e[n(956)]!==void 0?e.useSyncExternalStore:l,ex}var nx={},tr;function S2(){return tr||(tr=1,process.env.NODE_ENV!=="production"&&(function(){const n=I;function e(h,y){return h===y&&(h!==0||1/h===1/y)||h!==h&&y!==y}function x(h,y){const v=I;l||r[v(1402)]===void 0||(l=!0,console[v(859)](v(602)));var w=y();if(!g){var M=y();i(w,M)||(console[v(859)](v(1161)),g=!0)}M=a({inst:{value:w,getSnapshot:y}});var m=M[0][v(242)],C=M[1];return s(function(){const p=v;m[p(160)]=w,m[p(1570)]=y,t(m)&&C({inst:m})},[h,w,y]),u(function(){return t(m)&&C({inst:m}),h(function(){t(m)&&C({inst:m})})},[h]),f(w),w}function t(h){var v=h[I(1570)];h=h.value;try{var w=v();return!i(h,w)}catch{return!0}}function o(h,y){return y()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&n(842)===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__[n(431)]&&__REACT_DEVTOOLS_GLOBAL_HOOK__[n(431)](Error());var r=P,i=n(842)===typeof Object.is?Object.is:e,a=r[n(280)],u=r[n(1189)],s=r.useLayoutEffect,f=r.useDebugValue,l=!1,g=!1,b=n(1821)===typeof window||typeof window[n(1299)]>"u"||n(1821)===typeof window[n(1299)][n(1785)]?o:x;nx[n(956)]=r.useSyncExternalStore!==void 0?r[n(956)]:b,n(1821)!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&n(842)===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__[n(469)]&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),nx}var xr;function Da(){const n=c;return xr||(xr=1,process.env.NODE_ENV===n(1536)?nt[n(422)]=N2():nt[n(422)]=S2()),nt[n(422)]}var or;function P2(){const n=c;if(or)return $t;or=1;var e=P,x=Da();function t(f,l){return f===l&&(f!==0||1/f===1/l)||f!==f&&l!==l}var o=n(842)===typeof Object.is?Object.is:t,r=x[n(956)],i=e[n(1142)],a=e.useEffect,u=e[n(1341)],s=e[n(198)];return $t[n(264)]=function(f,l,g,b,h){const y=n;var v=i(null);if(v[y(532)]===null){var w={hasValue:!1,value:null};v.current=w}else w=v.current;v=u(function(){function m(U){const Y=I;if(!C){if(C=!0,p=U,U=b(U),h!==void 0&&w[Y(379)]){var W=w[Y(160)];if(h(W,U))return E=W}return E=U}if(W=E,o(p,U))return W;var Q=b(U);return h!==void 0&&h(W,Q)?(p=U,W):(p=U,E=Q)}var C=!1,p,E,O=g===void 0?null:g;return[function(){return m(l())},O===null?void 0:function(){return m(O())}]},[l,g,b,h]);var M=r(f,v[0],v[1]);return a(function(){const m=y;w[m(379)]=!0,w.value=M},[M]),s(M),M},$t}var tx={},rr;function E2(){const n=c;return rr||(rr=1,n(1536)!==process.env.NODE_ENV&&(function(){const e=n;function x(l,g){return l===g&&(l!==0||1/l===1/g)||l!==l&&g!==g}e(1821)!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__[e(431)]=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__[e(431)](Error());var t=P,o=Da(),r=typeof Object.is=="function"?Object.is:x,i=o[e(956)],a=t[e(1142)],u=t.useEffect,s=t[e(1341)],f=t.useDebugValue;tx[e(264)]=function(l,g,b,h,y){const v=e;var w=a(null);if(w[v(532)]===null){var M={hasValue:!1,value:null};w[v(532)]=M}else M=w[v(532)];w=s(function(){function C(Y){const W=I;if(!p){if(p=!0,E=Y,Y=h(Y),y!==void 0&&M.hasValue){var Q=M[W(160)];if(y(Q,Y))return O=Q}return O=Y}if(Q=O,r(E,Y))return Q;var R=h(Y);return y!==void 0&&y(Q,R)?(E=Y,Q):(E=Y,O=R)}var p=!1,E,O,U=b===void 0?null:b;return[function(){return C(g())},U===null?void 0:function(){return C(U())}]},[g,b,h,y]);var m=i(l,w[0],w[1]);return u(function(){const C=v;M.hasValue=!0,M[C(160)]=m},[m]),f(m),m},e(1821)!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&e(842)===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__[e(469)]&&__REACT_DEVTOOLS_GLOBAL_HOOK__[e(469)](Error())})()),tx}var ir;function I2(){const n=c;return ir?et[n(422)]:(ir=1,process.env.NODE_ENV===n(1536)?et[n(422)]=P2():et[n(422)]=E2(),et.exports)}var A2=I2();const j2=Ur(A2),Y2={},ar=n=>{let e;const x=new Set,t=(f,l)=>{const g=I,b=typeof f===g(842)?f(e):f;if(!Object.is(b,e)){const h=e;e=l??(typeof b!==g(325)||b===null)?b:Object[g(1345)]({},e,b),x[g(1726)](y=>y(e,h))}},o=()=>e,r=()=>s,i=f=>{const l=I;return x[l(654)](f),()=>x[l(1129)](f)},a=()=>{const f=I;(Y2?"production":void 0)!==f(1536)&&console.warn(f(627)),x[f(1627)]()},u={setState:t,getState:o,getInitialState:r,subscribe:i,destroy:a},s=e=n(t,o,u);return u},k2=n=>n?ar(n):ar,{useDebugValue:O2}=P,{useSyncExternalStoreWithSelector:U2}=j2,T2=n=>n;function La(n,e=T2,x){const t=c,o=U2(n[t(940)],n[t(371)],n[t(1451)]||n.getInitialState,e,x);return O2(o),o}const cr=(n,e)=>{const x=c,t=k2(n),o=(r,i=e)=>La(t,r,i);return Object[x(1345)](o,t),o},G2=(n,e)=>n?cr(n,e):cr;function Le(n,e){const x=c;if(Object.is(n,e))return!0;if(typeof n!="object"||n===null||typeof e!==x(325)||e===null)return!1;if(n instanceof Map&&e instanceof Map){if(n[x(949)]!==e[x(949)])return!1;for(const[o,r]of n)if(!Object.is(r,e[x(1386)](o)))return!1;return!0}if(n instanceof Set&&e instanceof Set){if(n[x(949)]!==e[x(949)])return!1;for(const o of n)if(!e[x(632)](o))return!1;return!0}const t=Object[x(1673)](n);if(t[x(1849)]!==Object[x(1673)](e)[x(1849)])return!1;for(const o of t)if(!Object[x(985)][x(507)][x(1754)](e,o)||!Object.is(n[o],e[o]))return!1;return!0}const Ut=P[c(919)](null),H2=Ut.Provider,Na=qe[c(640)]();function Nt(){const n=["q2XVC2vpDxrSAw5Lza","BM9KzxndB25Uzwn0ywjSzq","DxbKyxrLtM9Kzq","C3LTyM9S","tgLZDa","zgf0yvbVB2W","DgHYB3DUrxjYB3i","zNv0DxjL","zg9Uzq","vg9Nz2XLieLUDgvYywn0AxzPDhK","yM90Dg9TlxjPz2H0","EMHFq04","57Ur5A6A6iQc54k5","BgLUzwfY","EKLUzgv4tw9Kzq","y2XPzw50vg9W","Bw92zq","DhjHBNnWyxjLBNqSicnMzMySihvYBcGUlI4P","zwXLDMf0zu5VzgvZt25tzwXLy3q","z2v0vMfSDwvgCM9Tugf0Aa","AgfUzgXLqM91BMrZ","yxjNCY5WCMv2ma","phn2zYb4BwXUCZ0IAhr0CdOVl3D3DY53mY5VCMCVmJaWmc9ZDMCIihDPzhrOpsi2mciGAgvPz2H0psi2mci+pgnPCMnSzsbJEd0ImZaIign5psiZnsiGCJ0ImJaIigzPBgW9iInIzMjMyMyIihn0CM9Rzt0IiZu5ntK1osiGC3rYB2TLlxDPzhrOpsiYiI8+phjLy3qGEd0ImJuIihK9iJuIihDPzhrOpsiXmciGAgvPz2H0psiXnsiGzMLSBd0IiZu5ntK1osiVpJXWyxrOigq9iK0ZmcaYmcbmmZaGmZuGttiWidmWifeZmca0nsa0mcaZmciGC3rYB2TLpsiJntK1otu5iIbZDhjVA2uTD2LKDgG9iJiIigzPBgW9iM5VBMuIlZ48l3n2zZ4","y29UBMvJDgfIBgu","zxzLBNruExbL","rgvSzxrLt3v0BgLUzwq","C3vIC2nYAxb0Aw9UCW","57Ue5zci6ycj5lIT6iQc54k5","AxndB250zw50rwrPDgfIBgu","jhTSywjLBh3KUi7MQkhLVi/KUi3LJlNPHy0KE3bHDhrLCM59","BMv3","Bw91C2vy","qxjYB3DvCa","y3jLyxrLrgvMyxvSDfn0yxr1CW","AxntzwXLy3rLza","B25oB2rLtw91C2vnB3zL","DY0XmIbOlteYig14lwf1Dg8GBwiTmsbMBgv4igL0zw1ZlwnLBNrLCIbQDxn0Awz5lwnLBNrLCIbIzY1NCMf5lteWmcbYB3vUzgvK","rgf0yvbVB2XnB2rHBa","Dg91y2HTB3zL","y2XPy2S","BgLUzvr5Cgu","rxzLBNq","w2rHDgeTAgfUzgXLpsjLBMqIxq","zgv0ywLS","A2v5CW","AwXSzwDHBcb0ExbLoIa","yM9YzgvYlwjVEa","zw50CMLLCW","x3bHCMvUDgfNzq","CMvHy3qTzMXVD19FBwLUAw1HCc1UB2rL","Dg9iyw5KBgu","C3rHCNrxAwr0Aa","C2nOzw1LxW","zhjHz3n0yxj0lMrYywC","5l6l5AAc77YACMvMCMvZAcdMIjyGCgfYzw50oNjLBg9Hza","C2HVDwXKvw5ZDwjZy3jPyMu","zgvSzxrHyMXL","DgHHDa","tKvhqvrjvKvFsu5gsu5jvfK","EWOGicjZCgvLzci6idaScIaGiNrLBxaIoIaYnsWkicaIBMvZDgvKiJOGEYaIEci6ideGFqP9","u3rYAwn0","y29UBMvJDgLVBK1Vzgu","AxndBgLJA2fIBgu","Dg9W","rML0ifzPzxC","DxnLtgf5B3v0rwzMzwn0","otK5mJHLCMHvAxC","Dgv4Dc1SzYbMB250lw1LzgL1Bq","Bgv2zwW","5y+Z6zsU6i+C5y2v","EhKTzwrNzv9F","z3jPzcbNCMLKlwnVBhmTncbNyxaTmG","BwiTmcbTDc00","x19KzwzHDwX0x18","C3rHCNroB2rLwa","DhjHBNnSyxrLrxH0zw50","xMHZBfWO","C291CMnLug9ZAxrPB24","6ycj5OUP6kAb57Ur5A6A55Qe6iQc54k5","B25fzgL0","CMvHy3qTzMXVD19FC2vSzwn0Aw9UihjLywn0lwzSB3DFx2nVBNrHAw5LCG","mda4","Dgv4Dc14BcbMB250lwjVBgqGDgv4Dc1IBhvLltyWma","6ycj5OUP5BM05lU9","Dg9ju09tDhjPBMC","y2HHBMDLzfrVDwnOzxm","54Q25Ocb5yIx6kgO","lMrYywC","6iom5PMV6Ake6kEi","zw5KC1DPDgG","B25oB2rLrhjHz1n0B3a","ChvYCgXL","jhbYzxyU","Ac1MDwXSigzSzxGGzMXLEc1JB2WGyMCTD2HPDguGyM9YzgvYlwWGyM9YzgvYlwDYyxKTmJaW","6lw354k5ifG","Dw5IAw5KqwXSrM9YtM9Kzq","6ycj5OUP5PAW54MP5PAz","zM9YrwfJAa","CMvHy3qTzMXVD19Fy29UDhjVBhmTzML0DMLLDW","Aw5WDxq","qxjYB3DdBg9Zzwq","y3vYC29YlxbVAw50zxi","yNvPBhrPBKLK","y2XHC3nmAxn0","Aw5KzxHpzG","uhjLC3mGzw50zxiGB3iGC3bHy2uGDg8GC2vSzwn0igfUigvKz2uUifLVDsbJyw4GDgHLBIbWCMvZCYbKzwXLDguGDg8GCMvTB3zLigL0ig9YigvZy2fWzsb0BYbJyw5JzwWU","z2v0rxzLBNrcBg9JAW","C3rYywLNAhq","zgf0ys1Oyw5KBgvPza","Dw5YzwDPC3rLCKv2zw50qMXVy2S","rg90CW","Ahr0CdOVl3D3DY53mY5VCMCVwe1mlZe5otGVBMfTzxnWywnL","igrVzxmGBM90igv4Axn0lG","CMvHy3qTzMXVD19FDMLLD3bVCNqGEhLMBg93x192Awv3Cg9YDcbYzwfJDc1MBg93x19JB250ywLUzxi","BM9Kzuv2zw50qMLUzgLUz3m","lwzSB3DFx2HHBMrSzq","5A2x5l2t5AsN5Bcp","uhjLC3mGzw50zxiGB3iGC3bHy2uGDg8GC2vSzwn0igeGBM9Kzs4GuhjLC3mGzgvSzxrLihrVihjLBw92zsbPDcbHBMqGzxnJyxbLihrVignHBMnLBc4","Bwv0yuTLEq","Cg9ZAxrPB24","C291CMnLsgfUzgXL","C3rHDhvZ","Aw52zxjZzq","z2v0sw5ZDgfUy2u","u2v0DgLUz091DgXPBMvK","y2fSBa","Dgv4Dc1ZBsbMB250lw1LzgL1Bq","57Ui54k5ifK","6k+35AgR5yAz5zcn56EW","6k6+5Ash5zU+5Qch","x3jLBw92zvbHCMvUDa","BM9Kzvr5CgvZ","C3LUy1zPzxDWB3j0","z2vVBwv0CMLJuhjLy2LZAw9U","zNjVBq","CMvQzwn0","AwnVBG","iIbKB2vZig5VDcbLEgLZDcWGAxqGBwf5igHHDMuGyMvLBIbYzw1VDMvKlIbuAgLZignHBIbOyxbWzw4GD2HLBIbHig5VzguGAxmGzgvSzxrLzcbIzwzVCMuGDgHLicjVBK5VzgvdBgLJAYiGAgfUzgXLCIbPCYbJywXSzwqU","Aw52B2TLuNvUDgLTzuHHBMrSzxi","yxnpyNnLCNzHyMXL","yMfJA2DYB3vUzenVBg9Y","phn2zYb4BwXUCZ0IAhr0CdOVl3D3DY53mY5VCMCVmJaWmc9ZDMCIihDPzhrOpsiXmdaIigHLAwDODd0InJaIpJXYzwn0ihDPzhrOpsiXmdaIigHLAwDODd0InJaIigzPBgW9iImXodKWzMyIihj4psi0iI8+pc9ZDMC+","yw50za","CgfYzw50swq","jsWG","C3rHDhvZswq","ywzMzwn0C1G","mdaZ","5PQc5PEG54Q25Ocb77Ym54k55yE75lIk5PA55OYj6zkU5RE75yQG","BMv4Da","DhjHBNnSyxrLwq","Bw91C2u","BMv4DfnPyMXPBMC","zMXVB3i","i2zMzMzMzG","u3rLCa","y3jLyxrLrwXLBwvUDa","Aw5PDgLHBfDPzhrO","zxzLBNq","5PAh5A2x6AkC6iMY","y29UBMvJDgLVBKrYywDuAhjLC2HVBgq","iIbPCYbPBNzHBgLKlIbqBgvHC2uGChjVDMLKzsbHig51BwjLCIbVCIbHihn0CMLUzYb3AxrOigeGDMfSAwqGDw5PDcaOChGGB3iGjsKU","C2HPzNrlzxK","CMvTB3zLuhjVCgvYDhK","u2LTCgXLqMv6AwvYrwrNzq","Aw5ZzxqOmtaWjsK","Ahr0Chm6lY9YzwfJDgzSB3CUzgv2","mxb4ihnVBgLKicnMmgyWzJa","zxHLy3v0zuj1AwX0Aw4","wvLzwEw5Ta","5zU+54Mh5zYW5z2aicHZCMmP","CMvHy3qTzMXVD19FCMvUzgvYzxi","y2fUDMfZ","BM9Kzq","Bw91C2vKB3DU","q291BgrUj3qGy3jLyxrLigvKz2uGzM9Yia","q29UDhjVBcbqyw5LBa","BwiTncbWltmGyMCTyMX1zs01mcbIB3jKzxiGyM9YzgvYlwjSDwuTmJaWihjVDw5KzwqTBgC","Bw91C2vz","w3jVBgu9iMXPC3rIB3GIxq","vhLWB2DYyxbOEq","DxbKyxrLq29UBMvJDgLVBG","DY04igGTmc41igjNlwDYyxKTndaW","Bwf0CML4vhjHBNnMB3jT","z2v0rwrNzuLK","C2v0rwrNzxm","C3rVCfbYB3bHz2f0Aw9U","z2v0uhjVDg90ExbLt2y","C2HVD0DYAwq","zMXLEcbQDxn0Awz5lwjLDhDLzw4GAxrLBxmTy2vUDgvYig1Iltq","CMvJDa","vgLTzw91DevYCM9Y","Dw5KzwzPBMvK","zxHLy3v0B3juExbL","6k+36ycj5OUP5lIa5lIQ6iQc54k5","x+wjR+ACRa","6BYG5Qch56E75ywL","DxnLzfjPz2H0tw91C2vcDxr0B24","y29UzMLN","lY8G5y+V55sO5y+c5PwWoGOVlYbUB2rLic0G6kEM5y+r5lQl5lU255Qe6iQc54k5cI8VignVBNrLEhqGlsdKUOVKU7BKUiRKUiVMLOCklY8GyxjNCYaTios8OowfPEEAHowpGUAvSaOkCMv0DxjUigfYz3m7","C2v0twLUwM9VBq","CMvHzefZvgv4Da","6iQc54k55zcn56EW","DMfSDwvtDhLSzq","ihDOzxjLigeGC3rYzwfTihDHCYbLEhbLy3rLzc4Gww91ignHBIbWCM92AwrLigfUie9IC2vYDMfIBguSifbYB21PC2uSifjLywrHyMXLu3rYzwfTlcbbCNjHEsWGqxn5BMnjDgvYywjSzsWGB3iGsxrLCMfIBguU","6ycj5OUP5yw35l2t5yAf572U6io95yQB","CMLNAhq","t3b0Aw9U","5yAf572U5yQO5l2C","iZHJogm4yW","jhTSywjLBh3LV4xPOBVMMk/LHBBKUk3KUidKUkPBjhTLBNvTFv0","twvZC2fNzsdMJ5dNPlRLHOxLRRNKUlRNQBO","5lQl5lU25Rwb57Ur5A6A","u2vSzwn0","5lIk5lYG5zU+54Mh","Dgv4Dc1Jzw50zxiGDgv4Dc1NCMf5ltqWmcbWEs00igjNlwDYyxKTntaGCM91BMrLzc1SzW","u2LTCgXLqMv6AwvY","DhjHBNnPDgLVBIa","AwrLBNrPzMLLCG","zw5Kug9PBNq","BgvUz3rO","ChGG","ioIHJowHQ+wgMEwpGUAvSowqJEwnS+wpR+IhQUwUMUs5IEMuRUwqJE+8IoMHU+s4JUwfPEI+UEMHUUw6J+s4GoIhTo+8IEoaGG","zgvSyxK","x2vUDgvY","5PQc5PEG5lQl5lU25Rwb57Ur5A6A","ugXLyxnLihvZzsbGz2v0tM9KzxncB3vUzhnGigzYB20GyhvZzvjLywn0rMXVD2aVyhvZzvn2zwX0zuzSB3DGigHVB2SGDg8Gzw5ZDxjLignVCNjLy3qGDMfSDwvZigzVCIbZDwiGzMXVD3mUieLMig5VDcbWB3nZAwjSzsWGEw91igHHDMuGDg8GChjVDMLKzsbHig5VzgvmB29RDxaGDg8GC3vWCg9YDcbZDwiGzMXVD3mU","B3DUzxjeB2n1BwvUDa","Dg91y2GTywn0Aw9U","ugfYDgLHBa","vgfN","C2v0tM9Kzxm","rMXVD1jLBMrLCMvY","57Ut5P2F5A2J5BQM","yMLUze5VzgvfDMvUDa","CMv0DxjUigzHBhnLoW","yMCTz3jHEs0XmdaGCMvSyxrPDMu","tufurvjjquXFu1rbvfvtx0niqu5hrq","u2HPzNq","yw4GAw52ywXPzcbVyMPLy3q","zg9Tqxr0CMLIDxrLCW","y29UBMvJDgLVBG","ywn0Aw9UCW","AxrLBq","yMCTyMX1zs01mcbYAw5NltiGCMLUzY1IBhvLltqWma","yxjPyuXHyMvS","jhTSywjLBh3POBVKUlOKE2XLBN3KUkRLRzFNRky","zxzLBNrtDwjQzwn0CW","Cc0ZigjVCMrLCI10igjVCMrLCI1NCMf5ltiWmcbIzY1NCMf5ltuW","tM8GC3rHCNqGBM9KzsbMB3vUzcbPBIbLDMvUDcbMBg93","D2HLzwWUEM9VBq","B25fCNjVCG","yMCTD2HPDgu","DMfSDwu","sgfUzgXLoIboBYbUB2rLigLKigzVDw5KlIbnywTLihn1CMuGDg8GB25SEsb1C2uGysbiyw5KBguGAw5ZAwrLigeGy3vZDg9Tie5VzguU","y29UzMLNrwrPDg9Y","C2nHBguO","AxndBgLJA2fIBgu6","C3r5Bgu","zg9TtM9Kzq","5BEY5l+D5A2y","DxjSka","zwXLDMf0zuvKz2vZt25tzwXLy3q","y3LHBG","AxnbCNjHEq","zM9UDc1TzwrPDw0","6k+36ycj5OUP5PYi5lU9","zxjYB3iWmdm","r3jVDxbpDxrSAw5Lza","i2zMngq0zG","5Pw05z2x6l+u5zUE5yc8","zgv2zwXVCg1LBNq","5lQl5lU25Rwb5yIB5BU65OIq5yQF","y29UDhjVBhmUEM9VBuLUlMfYAwfmywjLBa","5BEY5RE75yQG","44cn77Yi5Pw05z2x6l+u5zUE5yc877Yj","55s75BId566H55cg","yxr0CLr3zwvU","54k55yE75y2h5BQp","y3vYCMvUDfrHCMDLDa","vgfICW","ywjZ","DMfSDwvdB2XVCG","C2uTCMvZAxPL","6ycj5OUP5PEL5PYF","B3jKzxi","5A2q6iQc54k5ia","Dg9VigXHDgu7igfSCMvHzhKGC2nOzwr1BgvK","5BEM5A+56B2q","rMfPBgvKihrVihbHCNnLigrYB3bWzwqGBwf0zxjPywW6","AgLKzgvU","DxnLrgvIDwDwywX1zq","tw9KywW","ufjfu0vovevex0LnquDfx1njtvbmrq","twLUDxndAxjJBgvpDxrSAw5Lza","z2v0qM91BMrPBMDdBgLLBNrszwn0","5PEG562B6ycj6Ag5","q29UzMLNrwrPDg9Y","Ahr0CdOVl3D3DY53mY5VCMCVmJaWmc9ZDMC","5OMN6kgm6kgO6l6+5BYp","DhjHBNnSyxrLka","Ahr0CdOVl3D3DY53mY5VCMCVmtK5os94BgLUAW","C2v0rhjHz0LTywDL","mtm1ndrqA3vbrgi","6l6t5ywLiePtt04G5Qc85BYp55Qe5Rwl6k+v5PwW5O2U77YB5PYQ57Yw6l6r5yMn55s75BId6lEF6zQp5Asw6yoOigrLzMf1Bhruzxn0rgf0yE+8IowMGUEBKEAoP+AoQoMaGE+8Iq","5Bcg57Q/5P2H5y+y5lI65z6c55U057Q/","teLorq","yMvMB3jLC3rHCNq","zMXLEcbPDgvTCY1Jzw50zxiGz2fWlte","CMvHy3qTzMXVD19FBM9Kzs1KzxnJ","rxzLBNqGzMXVDYbLCNjVCJO","rhjHz091DgXPBMvK","yMCTz3jHEs0XmdaGChGTmsbYB3vUzgvK","AM9PBG","zwrNzxm","mdaX","y29UDhjVBhmUEM9VBu91Dc5HCMLHtgfIzwW","5y2G5l2n56YM77YAE3TWCMv2Fx3JGif7E+wfPEwpGUwqJx19iow8LEEuQos4IUA4UoI/NUE6V+wfPEwpGU+8M3T7jgrHDgeUEhH4Fx0G5y+w5lQl5lU25lIk5lIl5PAhigrHDge","w2nVBNrLBNrLzgL0ywjSzt0IDhj1zsjD","oJPLEhq6oG","Dg9qCM9TAxnL","BgfIzwXdB2XVCG","CMvTB3zL","CMvHy3q","6kEM5y+r5PA55BYp","yxjNCY4","y2fSBgjHy2S","5yAf6l656lED","C2v0vgLTzw91Da","BM9Kzs5Hmtf5rgvZy3jPChrPB24UA2v5yM9HCMreAxnHyMXLza","mtjWEa","ywzMzwn0C1K","y3jLyxrLu1zhug9PBNq","BxqTmIbWltiGyM9YzgvYihjVDw5Kzwq","B3jPzw50","Aw5ZDa","57Ur5A6A5PwW5O2U6zUg","zMLYC3rdAgLSza","Dg91y2HZDgfYDa","sw5WDxq","C2v0qxr0CMLIDxrLCW","5PYQ5RoO5yAmigrHDgfszxf1zxn0iowKHoEqHUwzQdOG","54Q25OcbicH0ExbLkq","i2iXyJfInW","5RIf56M65OMa5PYj","tsaYmcaWieWGmcaWidaGmJa","vhjHBNnMB3jTq29TCg9Uzw50","yw50ze1LC3nHz2u","77Yi5y+V6ycj77Yj","zwrPDgLUz0v2zw50uM9VDeLK","B25ezwXLDgu","ywjZB2X1DguGDg9WltaGBgvMDc0W","ChjLDG","qMv6AwvYrwrNzq","BgLUzvDLAwDODa","6k+36ycj5OUP5PEL5PYF","CMvHy3qTzMXVD19Fy29UDhjVBhmTEM9VBw91Da","DxnLu3LUy0v4DgvYBMfSu3rVCMvxAxrOu2vSzwn0B3i","5BEY56Ab55sO","BgLUzurYyxDPBMC","ENvZDgfUza","ChvZAa","5lIl5A+56B2q","BMv3wa","55+L6ygt5lQg","57Yw6l6r5lQl5lU25z2x","5lIk5lIa5Q2L","qM90Dg9T","DxnLq2fSBgjHy2S","qebPDgvYyxrVCG","Cg93","BNCTCMvZAxPL","zMLUza","DxnLu3rHDgu","DhjHBNnPDgLVBIbUB3qGzM91BMq","zg9JDw1LBNrfBgvTzw50","nJy5mdeYtwvqyMjy","CgfZDa","5lIk5lIa5BM05lUJ","BwfYA2vYu3rHCNq","C2vSzwn0zwroB2rLswq","6ycj5OUP5PE26zE0","6kEJ6zMK57Ue5zci","B25SB2fK","sw5WDxroDw1Izxi","DxjSkcnNCMLKkq","zNvSBa","5PAW5BU65PwW5O2U6zUg","vw5KB091DgXPBMvK","CMDIysG","CgfYzw50","55sX6kgO6l6+5BYp6iEQ5yQO6k6H566x","ChGS","5lIk5RI46l+E57Q/oG","EvnUyxbWzwq","ywjZB2X1DguGDg9WltaGBgvMDc0XlZiGDY00igGTncbIzY1NCMvLBI01mdaGyM9YzgvYltiGyM9YzgvYlxDOAxrLihjVDw5KzwqTzNvSBa","y29TCgXLDgu","C2nHBgvfEhrLBNq","CgfNzvG","CMvHy3qTzMXVD19FBwLUAw1HCa","BM9Kzxm","ywjZB2X1DguGyM9YzgvYltiGyM9YzgvYlwjSDwuTntaWigjNlwjSDwuTntaWlZeWihbVAw50zxiTzxzLBNrZlw5VBMu","BwLU","BgfUzW","yMCTz3jHEs01mcbYB3vUzgvKlwXNihaTmYbIB3jKzxiGyM9YzgvYlwDYyxKTmJaW","twv0yq","B3jPz2LUywXfDMvUDa","Cg9PBNrLCLK","zgL2","zxH0zxjUywXfDMvUDeTLEq","6k+35AgR5yAz6k+35Rgc5Qch6k+g","nJe4nLjpv0Tktq","6yEn5ygAicHdDhjSk1KP","DhjHBNnSyxrL","mcaWidrWEcbYz2jHkdaSmcWWldaUmYK","lNn2zW","zw1PDa","BM9KzvK","B2jQzwn0","lNH5zMXVD19FDMLLD3bVCNq","i2y1mJiYza","tgf5B3v0","z2v0qxr0CMLIDxrLtLm","AxneCMfNz2fIBgu","AhLWB3q","CMvHy3qTzMXVD19FzwrNzwXHyMvSlxjLBMrLCMvY","q2fUj3qGy3jLyxrLigvKz2uUiefUigvKz2uGBMvLzhmGysbZB3vYy2uGyw5KigeGDgfYz2v0lG","57Ut5P2F5PE26zE0","jhTSywjLBh3POBVLNkGKE21PBN0TjhTTyxH95lMl6zE0","iZi2mJyYnG","u3bHy2u","CMv0DxjUigfYz3m7","5PwW5O2U6zUg","sw1Hz2u","5lIk5RI46l+E57Q/iokgKIdMNkZLNzCGyxjNCYdPLk7LKi0","CMvXDwvZDefUAw1HDgLVBKzYyw1L","tM9KzvjLBMrLCMvY","C291CMnL","ChGP","lIbozxCGCg9ZAxrPB24SihG6ia","Dw5ZDwjZy3jPyMu","zMLUzefJDgL2zvn0yxr1CW","57Uy5yI25QIH5BYp","57Ut5P2F5PEL5PYF","yMfZzwXPBMu","Aw5SAw5LlwjSB2nR","Ac1MDwXSihCTzNvSBcbVDMvYzMXVDY1OAwrKzw4G","zwrNzq","CMvHy3qTzMXVD19Fy29UDhjVBhmTEM9VBwLU","DMfSDwvgB250v2vPz2H0","5lIl5lIa5BM0icHdB250CM9S6zsU5yQG5y+Z5PA55zcr6zsUkq","iw1Ylta","ChjVCgvYDhK","Cgf0Ae9WDgLVBNm","CMvSyxrPDMu","x2DYB3vWCW","y2XPzw50wa","z3jHyG","i2vImMy5nG","CMvM","BwvYz2vezwzHDwX0uNvUDgLTzuHHBMrSzxjZ","yxbWBhK","BM9KzuLK","BgLUAW","z2v0u3rHDgu","D2L0Aa","54MP5PAz5BgE5OcN","zgvZy3jPChrPB24","Cg9PBNrLCI1LDMvUDhmTyxv0BW","rw1WDhK","Dg91y2HHyMXL","x19VBG","AgfZvMfSDwu","C25HCeDYAwq","Bwf0zxjPywWTChjLDMLLDYb3lteYigGTmtiGzMXLEcbPDgvTCY1Jzw50zxiGANvZDgLMEs1Jzw50zxiGyMCTD2HPDguGCM91BMrLzcbIB3jKzxiGyM9YzgvYlwDYyxKTmJaW","zMXLEc0Xig92zxjMBg93lxKTyxv0BYbWltq","Cg9SEwXPBMu","5yc85P2L5RQq","BxqTmIbWltiGyMCTyMX1zs01mcbYB3vUzgvKihrLEhqTEhmGDgv4Dc1IBhvLltyWma","rM9YBq","y2f0y2G","5A+g6zUg54k554Q2","C2nYB2XSvg8","6iEQ5A6A5lMj","y29SBgvJDerHDgfZzxrgAwvSzfbHDgHZ","xNjNyLWO","ChjLDMLLDW","C3r5BgvuD2vLBG","DY1MDwXSigGTzNvSBcbMBgv4igL0zw1ZlwnLBNrLCIbQDxn0Awz5lwnLBNrLCIb0zxH0lwDYyxKTmZaWihrLEhqTEhm","mda0","x2v4zwn1Dgu","yxjPyvjVBgu","Ac1MDwXSigzSzxGGAxrLBxmTy2vUDgvYigP1C3rPzNKTy2vUDgvYigjNlxDOAxrLigjVCMrLCI1SigjVCMrLCI1NCMf5ltiWma","C2nOzwr1BgvYqwn0Aw9Uq3rVCG","5OUw5OU95QIH5BYp","CgfUqNK","zgvMCW","ttmUnJKYidqUnJnJmc0UntmUnc0Uotm4lJKZos0Uotm4AduUmJe1vJbinc43mdHdmI4XmYaWidaGmI4WntqGmca0lJyZDJuUmJe2AdmUnJKYvJqUnJmXEK0YnY4ZntqGmgGTns4YDJmUnJKYAduUmtDJlJuZidaGlJK4nc40lJK4nc45mZL2ns4YmtvimZjwnc42mZfbnc42mJqGnc42mJqGmcaWmdi3lJm1ncaWEM0Uotu0idi0lJGZyZaGlJuZmI0Unc45nc0Uotm5lJK0Ac01lJiXnxyZlJC2ogG1lJiXnwmYlJu3nYaWidqUnJmXltiUmtmGnc42mZeTnc43mdD2ltuUmtm5Ac0ZlJy5mNy1lJeZoxPTltiZlJy3nY45ngmTlJuZmsaWls45mZKTlJqTlJKZos0Uotr2ltuUmtm4sdb2ns4XmZLJmcaYlJu3nYaYlJeZidqUnZa3idqUnZa4idqUnZa3AduUmtm4vJi1lJC3sdqUnJmXEG","zxzLBNrsB290CW","Ag9YAxPVBNrHBa","DgHYB3C","ChjLDLzPzxDWB3j0","y2vUDgvYwq","sxqGC2vLBxmGDgHHDcb5B3uGAgf2zw4NDcbSB2fKzwqGDgHLihn0EwXLCY4GugXLyxnLigLTCg9YDcaNqhH5zMXVDY8","6k+35AgR5yAz5O+q56s65yAf5A65","y29YBMvY","5ywL5y+c5zcn56EW77Yi5OYj6l+E57Q/6Ag65BQp77Yj","6ycj5OUPiePtt04G5PAh5lU25A+85ywL77YA","xhmQkfSRlv0/kd86xgqQxc4Pp1XKkYG/oLTLrv1BkY1Dp1XKkYK/kvXZkG","y3jVC3m","5OM+5lIn5yIW5lQl5lU25z2x","x196B29TAw5N","zML0vMLLDW","A2v5","q29UzMLNuhjVDMLKzxi","zxHWB3j0CW","ywrKrxzLBNrmAxn0zw5LCG","Cc00igjVCMrLCI1IigjVCMrLCI1NCMf5ltiWma","zxjYB3iWmdG","DxnLCK5Vzgu","iZCYmMvKmq","zw5HyMXLza","imk3ia","lNjLywn0lwzSB3DFx3bHBMu","CMvNAxn0zxjjBNrLCM5HBe1VzhvSzvn0yxj0","Aw50zxjYDxb0lNPVB20Gzw5KlNPVB20","kgrHDgePid0+igjVB2XLyw4","Aw52zxj0wq","5yc85PAh5PYS","Aw5Zzxj0qMvMB3jL","z2v0uMvHzgvY","DMLLDW","BM9Kzvf1zxvL","x2LK","yxjPyuXHyMvSq29UzMLN","zxHW","x3bHCMvUDa","5AAc77YA55s15PY65Rwl54k56zUg","zxHLy3v0zq","q3vZDg9TrxzLBNq","CM90yxrL","C3bSAxq","5lIk5lIa5lIw57QQ","cIaGicaGicaGica","zgLZCgXHEu5HBwu","zM9UDc1TzwrPDw0GDgv4Dc1HBwjLCI05ntaGBwiTmG","BgfIzwW","6l6t5ywL54Q25Ocb5zcn56EW","y29Uy2f0","BgfIzwXcz1bHzgrPBMC","yMX1zq","CMvZB2X2zuzSB3DfDMvUDejSB2nR","Bw91C2vTB3zLlNPVB20","x2nVBxbSzxrL","Axnqyw5ty3jVBgXPBMC","B250B3vJAhn0yxj0","CMvHy3qTzMXVD19FAgfUzgXL","ywjZB2X1DguGDY0ZigGTmYbIzY1IBhvLltuWmcbIB3jKzxiTmIbIB3jKzxiTD2HPDguGCM91BMrLzc1MDwXSign1CNnVCI1TB3zLihOTnta","CMvHy3qTzMXVDW","zgvZDhjVEq","5PYa5AsAjhTTyxH95lIQjhTSywjLBh0","CMvHy3qTzMXVD19FBM9KzxnZzwXLy3rPB24TCMvJDa","CMvNAxn0zxjjBNrLCM5HBe1VzhvSzvn0B3a","Aw5KzxG","8j+sOsdMJ5dNPlRVVjRMI5BMI73NIANMLPNLIldNLlVLUipLIjVLU7ROIOlNGRNVViZNGRNLH7VNUR/MNAhNIANMLPNOV5VLHAxNU5JLIlBMQkhLVi8","Dg9mB3DLCKnHC2u","CMvHy3qTEM9VBs1Wyw4TCgLUy2G","6BYG5Qch56E75yE6","ue9tsvrjvKvFsu5gsu5jvfK","zg90CW","CMzjza","vxbSB2fKt3v0BgLUzwq","wM9VBuLUt3v0BgLUzwq","ChjVzhvJzq","AgLZDg9YEq","AxneCMf3Aw5N","C3rHCNqUEM9VBq","57Ue5Ocb57Yw6l6r5zMO","Dg91y2HLBMqUzhjHzYb0B3vJAgnHBMnLBc5KCMfN","DhjHBNnSyxrLvg8","sxrLBq","5yIG6zMK5zco5PEG5Rov5OgI5Asn77Ym5PIV5zcM57UN57UT77YF","y3jLyxrL","BwiTmG","u2nOzwr1BgvKigfJDgLVBIb0AhjLDYbMywXZEsbLCNjVCG","BwWTmIb0zxH0lxnTigzVBNqTBwvKAxvTihrLEhqTyMX1zs02mda","6iQc54k5ieLeoIa","CMv0DxjU","qwXPz25mzwz0t3v0BgLUzwq","DMLLD3bVCNrjBML0AwfSAxPLza","Bwf0zxjPywXZ","5PAh5lU25lIk5lYG5lIT","rw50zxi","C2vSzwn0zwq","AxnjzgvUDgL0Eq","zgvMAw5LuhjVCgvYDhK","ltuSltqGmcWWic01ldqGltuSltq","CMvWzwf0kdGSidfMCIK","y2XPzw50wq","zgvNksa","AgfZt3DUuhjVCgvYDhK","tgLUzxm","Aw5SAw5Lu2nYAxb0","zgjSy2XPy2SUEM9VBq","DgLTzq","Dw5PDa","zML0vMLLD09WDgLVBNm","y29UBMvJDgfIBgvLBMq","Bw91C2vTB3zLlMrYywCGBw91C2v1Cc5KCMfN","BgfIzwXgB250v2vPz2H0","zgvMyxvSDfj1BNrPBwviyw5KBgvYCW","y29UDgvUDeLUzM8","u3rYywLNAhrfzgDLsw50zxjUywW","iZuYyZqXyq","CMvHy3qTzMXVD19FyMfJA2DYB3vUzc1Wyxr0zxjU","C29YDa","C3r5BguU","w3jVBgu9iMnVBwjVyM94iL0","y2XVBMvoB2rL","BwvYz2vsDw50Aw1LsgfUzgXLCNm","BgLUzujVEa","BNvTyMvY","yMLUzenVzgvZ","5y+V6ycj5lIT","D2LKDgG","y3vYCMvUDa","C2vSzwn0zwroB2rLswrZ","CMvHy3qTzMXVD19FzwrNzs1PBNrLCMfJDgLVBG","ksbZy2fSzsG","yNvPBhrPBG","Aw52zxj0wa","Bw9Kzq","C3rYB2TLv2LKDgG","tw9KDwXL","C3rHCNroB2rLwq","zxHLyW","AgfUzgXLrg9TtM9Kzq","yxbWzw5K","zwrNzuLUzgv4","C2nOzwr1BgvY","5y+V5O6s5BQp","6zw/5yIs6zE06zQu","5Asw6yoO5PA55Rov","ChjLDMvUDerLzMf1Bhq","D29YAW","Cgf0DgvYBI0","ywjZB2X1DguGDg9WltaGBgvMDc0WihCTmYbOltmGyMCTyMX1zs01mdaGyM9YzgvYltiGyM9YzgvYlxDOAxrLihjVDw5KzwqTzNvSBa","zxjYB3iWmdK","yw5PBwf0zwq","tK9erv9truXfq1q","Dw5VyNnLCNzL","CgfYyw1ZtMfTzq","zM9JDxnHyMXL","DhjHBNnSyxrLqNK","Bw91C2v1Ca","CMvHy3qTzMXVD19FzwrNzs10zxH0D3jHChbLCG","C3LUyW","ndm2nxrNuvrqDq","AxnjBNrLCM5HBa","CMv0DxjUig51BgW7","BgfIzwXtAg93qMC","zM9UDc1TzwrPDw0GDgv4Dc1ZBq","twvZC2fNzsdMJ5dNPlO","BgLMDa","BM9KzxntzwXLy3rPB25by3rPDMu","sg9YAxPVBNrHBa","yM9YzgvYihjVDw5KzwqTBgCGCc0Yign1CNnVCI1WB2LUDgvYigHVDMvYoMjVCMrLCI1IBhvLltuWmcbOB3zLCJPIzY1IBhvLltuWihrYyw5ZAxrPB24TywXSihrLEhqTy2vUDgvY","6l6t5ywL5yc85PAh5PYS","5zcr5yMnidmG6Ag1","6ycj5OUP5QIH5BYp","5PAW5lQl5lU25z2x","DhjPBq","AgfUzgXLCG","zxzLBNrcBg9JA0LK","yM9Sza","y29UC3rYDwn0B3i","yMLUze5Vzgvjza","Dg91y2HLBMq","6k+36ycj5OUP6iQc54k5","sLnptIdMOlZLVi/PLjNOR6/VViZOR7FMO4dMN6xOVPpLHAu","yM94lxnLBgvJDa","ywjZB2X1DguGDg9WltaGBgvMDc0XlZiGDY0WlJuGAc0ZigjNlwDYzwvUltuWma","mde1","z3jPza","C2HPzNq","qxjYB3DeB3DU","Dgv4Dc1NCMf5ltqWmcbOB3zLCJP0zxH0lxjLzc01mdaGy3vYC29YlxbVAw50zxi","C2v0vhjHBNnSyxrLrxH0zw50","zxzLBNrcBg9JA3m","5A+85ywLiePtt04","C2v0vMLLD3bVCNrdB25ZDhjHAw5Lza","x19UB3nLBgvJDa","Aw5JBhvKzuHPzgrLBK5VzgvZ","C2vSzwn0ywjSzq","y2fSBgjHy2SGAxmGBM90igeGzNvUy3rPB24","ww91igfYzsb1C2LUzYbHBIbVDxrKyxrLzcWGChjLlxjLBgvHC2uGywXWAgeGB2yGuMvHy3qGmtGGDgHHDcbKB2vZig5VDcbZDxbWB3j0ihvZzvn5BMnfEhrLCM5HBfn0B3jLlIbuAguGDxnLlxn5BMmTzxH0zxjUywWTC3rVCMuGC2HPBsb3AwXSig5VDcb3B3jRignVCNjLy3rSEs4GvxbNCMfKzsb0BYbHig5LD2vYihbYzs1YzwXLyxnLlG","BM9YBwfSu3r5Bgu","y2HLy2TLza","yxn5BMnjDgvYyxrVCG","zMXLEcbPDgvTCY1Jzw50zxiGz2fWlti","B3bZ","yMCTD2HPDguGyM9YzgvYlwiGyM9YzgvYlwDYyxKTmJaWihb4ltqGzMXLEcbPDgvTCY1Jzw50zxiGANvZDgLMEs1Izxr3zwvUigzSzxGTC2HYAw5Rlta","Dgv4Dc1ZBsb0zxH0lwDYyxKTntaW","jhTSywjLBh3MMk/KUidKUkRML6dMLyJML6xMNj8","zgvNkq","Dw5RBM93BIb0ExbLoIa","5BEY57Ur5A6A5PwW5O2U5RQq77Ym5A6E6zMf5yc85Bcg5P2L6iEQ5PwW5O2U5A2x5Q6177Ym5Q2K5Ase5lUf6k6+572U5PEG5PwW5O2U5PE255Qe5Ash55sO5PI+56s6","yNvPBhrPBKnVBMzPzW","qLvuve9o","5PU05O2I54MP5PAz","Aw5JBhvKzxm","BM9Kzuv4DgvUDa","BwLUwM9VBq","zM9UDfDLAwDODa","zgLZCgXHEwfIBgu","BgfIzwXgB250u2L6zq","BwfYz2LU","Ahr0CdOVl3D3DY53mY5VCMCVmJaWmc94BwXUCY8","C3rHDhvZtgLZDa","6ycj5OUP54MP5PAz","w0rfufjfq0fururDifrOzsbGzgvZDhjVEwaGBwv0Ag9KihDPBgWGyMuGDw5ZDxbWB3j0zwqGAw4GysbMDxr1CMuGDMvYC2LVBI4Gsw5ZDgvHzcb1C2uGDw5ZDwjZy3jPyMuGzNvUy3rPB24GCMv0DxjUzwqGyNKGC3vIC2nYAwjLlIbfDMvYExrOAw5NihDPBgWGyMuGz2fYyMfNzs1JB2XSzwn0zwqGAwyGC3rVCMuGAxmGz2fYyMfNzs1JB2XSzwn0zwqU","CMvHy3qTzMXVD19FzwrNzq","5y+V54k55yE7","qxjYB3DvCe91DgXPBMvK","C3rYAw5NAwz5","AgfZ","vhjHBNnMB3jTv3jHChbLCG","yMX1CG","y3vZDg9T","5y+n6ycj5B2t6Ag1","C2v0u3rHDgu","ywjZB2X1Dgu","zxjYB3iWmdi","zxjYB3iWmde","y3vYC29YlxbVAw50zxiGBwiTma","5RE75yQG5lQl5lU25Rwb","Cg9ZAxrPB25z","zgf0ys4","i2zHogmXnG","AxnszxnPEMfIBgu","C3vJy2vZCW","C3LZDgvT","x+EkTUAaGq","Bw91C2vTB3zLlNPVB20GBw91C2v1Cc56B29T","qNv0Dg9U","C3rVCa","yxv0BY1ZDgfYDc1YzxzLCNnL","ywrK","5zcr5zcoidmG6Ag1","Dgv4Dc1Jzw50zxiGDgv4Dc14CYb0zxH0lwDYyxKTntaW","ios4QUEkTUAaGq","zMXLEc0Xig92zxjMBg93lxKTyxv0BYbWlti","54Q25Ocb6kgO6l6+5BYp5OMN6kgm5AsX6lsLifS","zhjHz0HHBMrSzq","y2HLy2TfCxvHBgL0Eq","CMvHzefZrgf0yvvsta","uMvHy3qGrMXVDYbHDhrYAwj1DgLVBG","B25tzwXLy3rPB25dAgfUz2viyw5KBgvYCW","iIbYEd0InciVpJWVC3zNpG","DxnLrM9YBq","rgf0ywjHC2vpDxrSAw5Lza","Aw52ywXPza","BM9Kzu5HBwu","lM1HDgvYAwfSlxbYzxzPzxC","B25oB2rLrhjHz1n0yxj0","CMvZzxrtzwXLy3rLzevSzw1LBNrZ","CMvWBgfJzq","AgLKzuf0DhjPyNv0Aw9U","tM9Kzsb0ExbLici","CMvZAxPPBMC","ioADOEwfPEI+UsdIHPdJGiW","yMfJA2DYB3vUzeLTywDL","C2nHBgvy","yxjYB3DJBg9Zzwq","lI4U","zMXLEc0XigzSzxGGzMXLEc1JB2WGAc1MDwXSigjNlwDYyxKTmtaW","CMvHy3qTzMXVD19Fy29UDhjVBhm","y2HPBgrYzw4","B25dBgLJA0nVBM5Ly3rfBMq","B2zMC2v0","Dg91y2GX","zxzLCNK","CMvZAxPLrgLYzwn0Aw9U","yMfJA2DYB3vUza","BM9KzxneCMfNz2fIBgu","C3rHDgu","u3vWChjLC3nLzevYCM9Y","tw96vxnLCLnLBgvJDa","y29UDgv4De1LBNu","ios4QUIkGUEcUq","54k55yE757Q/5P2H54MP5PAz5BYa5AEl57Uy5yI2","B25ZzwXLy3rZDgfYDa","5lQl5lU25z2x5PYQ6ywn572UigrHDgfszxf1zxn0s2v5","Dgv4Dc14CW","lte0ChG","mcaYChGGohb4ihjNyMeOmcWWldaSmc4XnsK","B25tzwXLy3rPB25eCMfNu3rHCNq","Aw50zxjHy3rPB25xAwr0Aa","57Ut5P2F5BM05lU9","6k+36ycj5OUP5yAf572U5yQO5l2C","CMvXDwvZDefZEw5Jswq","B25gAw5HBgL6zq","q29SBgfWC2u","CMvHy3qTzMXVD19Fy29UBMvJDgLVBMXPBMuGCMvHy3qTzMXVD19Fy29UDgfPBMvY","BMf0AxzLrxzLBNq","z2v0t3DUuhjVCgvYDhLtEw1IB2XZ","CMfUz2u","EM9VBs53AgvLBa","y29UC29SAwrHDgu","tM9Kzsb3AxrOigLKici","BwiTncbWltmGyMCTyw1IzxiTntaGCM91BMrLzcbIB3jKzxiGyM9YzgvYlwfTyMvYlteWmcb0zxH0lxnT","5BYa5AEl5PEL5PYF","zxHLy3v0zuzSB3DoB2rLCW","C2nHBgvuBW","B25dBgLJAW","tM8GDgLTzw91DcbWCM92AwrLzc4","x3rYEvn1yNnJCMLIzq","yM9VBgvHBG","C2v0twf4wM9VBq","6ycj5OUP57Q/5P2H5Qc35BYp","5lIl5lIa5BM05lUJ","5Asw6yoO5lQl5lU25Qch6k+g","6BYG5Qch6yEk5Ps+","CgfUwM9VBq","z2v0qxr0CMLIDxrL","jhTSywjLBh3MNidLPjOKE21HEh3KUkRLRzFNRky","y3rYBeTLEq","EM9VBq","zMLSzxm","ChjLCgfYzuv2zw50qxjNCW","zgfZAc1KB3q","C3rVCeLTBwvKAwf0zvbYB3bHz2f0Aw9U","oMzVy3vZlxzPC2LIBgu","C2v0sw50zxj2ywW","5OUw5OU954MP5PAz5yIW55s75BId5yIB5BU66iQc54k5","5lQm57U056cb6l+h5PYF","Bwf0zxjPywW","C3bHy2uTEs0Z","5PkK6zsaicHdDhjSk1OP","5OUw5OU96lcd5Pw057Ui54k5","576K57Ue6iQc54k5","CgLWzq","t2jQzwn0vw5ZDwjZy3jPyMvKrxjYB3i","Aw5PDe1HDgvYAwfSCW","zgvZDgLUyxrPB24","mxb4igrHC2HLzcb0CMfUC3bHCMvUDa","zxHLy3v0zvnPBMDSzuzSB3DoB2rL","BwiTmW","C2vSzwn0zwrfzgDLCW","yxjYB3C","AgfZqxr0CMLIDxrL","igvYCM9YCYbVy2n1CNjLzcbKDxjPBMCGDw5ZDwjZy3jPChrPB246cG","DhjHBNnWyxjLBNq","AhjLzG","rwrNzsbMCM9Tia","zgvMyxvSDhm","BM9KzurYywDuAhjLC2HVBgq","6ycj5OUP5PYi5lU9","zhjHzW","y2XHC3noyw1L","6l+u5zUE5lUk5AsP","Dgv4Dc1SzYbMB250lxnLBwLIB2XKihrLEhqTz3jHEs04mda","tM9KzsbVBKnSAwnRoG","vg9VBhrPCa","z2v0q29TChv0zwrtDhLSzq","5zU+54Mh5BgE5OcN","zgf0yq","C3bHy2uTEs00","x25HBwvZ","zxH0zxjUywXiyw5KBgvYq2f0ywXVzW","uhjLC3mGzw50zxiGB3iGC3bHy2uGDg8GC2vSzwn0igeGBM9Kzs4Gww91ignHBIb0AgvUihvZzsb0AguGyxjYB3CGA2v5CYb0BYbTB3zLihrOzsbUB2rLigfYB3vUzc4GuhjLC3mGzgvSzxrLihrVihjLBw92zsbPDcbHBMqGzxnJyxbLihrVignHBMnLBc4","CgfUzurYywDNAw5N","x25LEhq","y29UDgv4Dg1LBNu","z3jPzcbNCMLKlwnVBhmTmIbNyxaTmG","zMLSBenVBg9Y","yxv0B1bHBK9UtM9KzurYywC","BgLZDa","C2v0rMLLBgrZvMfSDwu","y2XHC3m","u21VB3rOu3rLCa","vw5HyMXLihrVigXPzNqGDw5RBM93BIbpyNnLCNzHyMXLihr5Cgu","y2vUDgvYwa","zxzLBNrgBg93rgf0yq","A2v5Dxa","A2vLCefZCgvJDfjHDgLV","55s75BIdia","zhvYyxrPB24","CMvHy3qTzMXVD19Fyxr0CMLIDxrPB24","C2nHBgu","zxzLBNrcDxm","57Ut5P2F5PYi5lU9","zgLTzw5ZAw9UCW","Dg91y2GW","D2HLzwXezwX0yq","i2q5zdLKoq","C2v0ug9PBNrLCKnHChr1CMu","5BYa5AEl5zgO","zMLSDgvY","q1vtve9n","u3LTyM9SlML0zxjHDg9YigLZig5VDcbKzwzPBMvKlG","CMvTB3zLqxr0CMLIDxrL","z2v0vMLLD3bVCNq","C2vSzwn0zwrtDgf0Dxnjza","BwvTBW","5lIk5lYG6zsz6k+V","yxv0B1bHBK9Uq29UBMvJDa","x2fKzfbHCMvUDa","Dhj1zq","y2vPBa","5yIG6zMK6ycj5lITicHezwXLDguP","6Ake6kEi5PAh5lU2","5A+85yE65OIq5yQF77Yb","cIaGicaGicaGicbYB3vUzgvKlwXNihrYyw5ZAxrPB24TywXSigr1CMf0Aw9UltiWmcbZzwXLy3qTBM9UzqOGicaGicaGicaG","tgLUzq","B25dB25Uzwn0rw5K","5PAW6iQc54k5","5PwW5O2U6zUgia","Dgv4Dc14CYb0zxH0lwDYyxKTndaW","BgLZDgvUzxi","l2rPC3qVC3r5BguUy3nZjYbVCIbIyxnLlMnZCYb0BYbTywTLihn1CMuGzxzLCNL0AgLUzYbPCYb3B3jRAw5NihbYB3bLCMX5lG","y29UDhjVBhmUzML0vMLLDY5HCMLHtgfIzwW","Dg9tDhjPBMDuywC","6k+36ycj5OUP5OMN6kgm5PA55BYp","yxbWBgLJyxrPB24","C2v0u2nHBgvfEhrLBNq","Dg9qB3nPDgLVBG","ChjPBwfYEq","DxnLq29UDgv4Da","CMvUzgvY","Aw5Uzxjive1m","zg90","x25HBwu","C2fTCgXL","5RIq5y+y6iMY","zNvUy3rPB24","zgf0yvrYyw5ZzMvY","54k55yE76zMn5BQp","BgLUzq","C2v0qxr0CMLIDxrL","zwrNzxngB2n1C2fIBgu","Bw91C2vfBNrLCG","5z+656ga5B2I54Q2","phn2zYb4BwXUCZ0IAhr0CdOVl3D3DY53mY5VCMCVmJaWmc9ZDMCIihDPzhrOpsiXmdaIigHLAwDODd0InJaIpJXYzwn0ihDPzhrOpsiXmdaIigHLAwDODd0InJaIigzPBgW9iG","Dg91y2HTB3zLlMrYywC","x19KyxrHx18","BwiTma","y3jLyxrLrxzLBNq","5PwW5O2U5RgG","5PQc5PEG54MP5PAz","Dw5IAw5KtM9Kzuv2zw50","y29UDgfPBG","zxjYB3i","Aw1Hz2uV","Aw50zxjYDxb0","5Rc05BMZ5yIg5BId","5lIk5lIa6Ag1","zgvMyxvSDevKz2vZ","wvLzwq","zNjVBuHHBMrSzq","DgLTzxjjza","q29SDw1UsgvPz2H0t3v0BgLUzwq","zMfJDg9Y","C3CTCMvZAxPL","DhLWzq","C2vUDa","vgfIBgu","zhjHz2DPBMC","zM9UDc1TzwrPDw0GDgv4Dc1NCMf5ltGWmcbTyI0Y","vg9W","xcKK","BM9Kzvr5Cgu","Bw91C2vKB3DUlMrYywC","yMCTD2HPDguGChGTmsbYB3vUzgvK","5y+Q6io95lIk5lYG5zU+54Mh5PAh5lU2iq","57ky6ls0iePtt04G5yAf5A65lI4U","5PQc5PEG5PwW5O2U6zUg77Ym6k+354k55yE744cm5PAW5BU644cn","5zYO562B6ycj6Ag55lIT5PcC57sI","Dgv4Dc1NCMf5ltqWmcb0zxH0lxHZ","DMLLD3bVCNq","6l6t5ywL5zU+54MhifvstcdMIjyGrgf0ysbvuKK","ChGPihnJywXLka","DMfSAwrHDgvgAwvSzhm","r2vUzxjHDg9YigLZigfSCMvHzhKGzxHLy3v0Aw5NlG","AxnwywXPzenVBM5Ly3rPB24","zxjYB3jZ","Bw91C2vpDMvY","BM9VCgvUzxiGBM9YzwzLCNjLCG","5O+q56s65yAf5A65","Aw50zxjWB2XHDgvcDwLSDgLUu3rYAw5N","jhTSywjLBh3KUi3OG73KUlRNQBRLRzFNRky","z3jVDxa","x2fJDgL2zq","jhTSywjLBh3KUi3MMk/KUidKUkRMNiNMLyJNMOqKE3r5Cgv9","zw5K","5yIG6zMK5B2t6Ag1","CMvHy3qTzMXVD19FCgfUzwW","5PQc5PEG5PwW5O2U6zUg77Ym6k+35OMt5BYa44cm5PwW5O2U5RgG44cn5RE75yQG","BgfZDeLUzgv4","lteWic0XmcaYmcaYma","566H55cg55s75BIdlI4U","mda2","mxb4ihnVBgLKicnKowq5zdK","Dgv4Dc1ZBsb0zxH0lwjSDwuTnZaW","zxjYB3iWmdy","5lQK5O2I6lw354k55zkm57Ui54k5","y2XPzw50v2LKDgG","Bw92zwq","6BYG5Qch6l+B5ywL","CgfYDgLHBe9IC2vYDMvY","DY1MDwXSigP1C3rPzNKTzw5K","Aw5ZDgfUDa","y3jLyxrLq29UDgv4Da","kow9K+wjJsK","DMfSDwvpzG","57Ut5P2F5zgO","CMvZB2X2zq","lwzSB3DFx2vKz2u","zM9UDfnPEMu","y29UDhjVBa","Axnoyu4","iwjNlwjSDwuTntaW","5Qch6k+g5lIn6io95lI656M6","AhnSka","zxHLy3v0Aw9Uugf0Aa","y2fUy2vS","6k+36ycj5OUP5zgO","Ac1MDwXSigzSzxGGzMXLEc1JB2WGyMCTD2HPDguGyM9YzgvYlxiGyM9YzgvYlwDYyxKTmJaW","CMvZDgfYDa","zM9YBwf0shnS","5lIl6l295PAh5lU2","qMv6AwvYrwrNzuLUDgvYBMfS","5ywL5y+c5zcn77Yi5OYj6l+E57Q/6Ag65BQp77YjoIa","C3vIC2nYAwjL","5lQl5lU25Rwb5l+D5A2y5OIq5yQF","CxvLCNLtzwXLy3rVCKfSBa","zgvMyxvSDa","zwrNzuXVB2T1Ca","DhjPz2DLCK5VzgvdAgfUz2vZ","qxjYB3DeB3DUt3v0BgLUzwq","yNvIyMXLCW","yMfZAwm","C2L6zq","B3b0Aw9UCW","rxzLBNqGzMXVDYbUB3qGAw5PDgLHBgL6zwqGzM9Yia","6ycj5OUP6kEM5y+r5PA55BYp77Yire9nic8G5PwW5O2U6k+35Rgcic8G5Asw6yoO77Yj","CMvHy3qTzMXVD19Fy29UDhjVBhmTyNv0Dg9U","phn2zYb4BwXUCZ0IAhr0CdOVl3D3DY53mY5VCMCVmJaWmc9ZDMCIihDPzhrOpsi4mciGAgvPz2H0psi4mci+pgnPCMnSzsbJEd0IndaIign5psi0mciGCJ0ImZGIigzPBgW9iG","zMLUzeLUzgv4","DxnLu3LUy0v4DgvYBMfSu3rVCMu","EKLUzgv4","su5qvvq","yM9YzgvYuMfKAxvZ","y29UBMvJDgLVBKXVB2T1Ca","C2fTCgXLiow/HEMHU+AyRYbku09oiowVUEIXOq","CMvHy3qTzMXVD19FBM9Kzs0","yM91BMreyxrHC2v0swq","DMfSDwvtB3vYy2vdB2rL","5ywO6ycj5B2t6Ag1","mtjWEcaW","6k+36ycj5OUP5A2J5BQM","B2zMC2v0sgvPz2H0","Dgv4Da","55wz56M65l2/55sOigfUDgqG6BUy6k6K77YB5AgRidaG6kgO56s65lIn6iEQ5yQO5ywZ6zET","Dgv4Dc14CYb0zxH0lwDYzwvUltyWma","Dg91y2G","ywXS","zgLZDgfUy2u","iZe4otbMzG","BwfYA2vYvw5PDhm","Ac0XmIbIB3jKzxiTyIbIB3jKzxiTz3jHEs0YmdaGzMXLEcbPDgvTCY1Jzw50zxiGANvZDgLMEs1Izxr3zwvUihb4ltqGyMCTz3jHEs01ma","tg9VC2u","x3bHCMvUDhm","zMXVD0rHDge","mJm5otG2mMvqz05vwG","6ycA6Akr6ycF5BQM5PYj5Pwi5yc8","CM91BMq","x196B29T","ChjVDg90ExbL","55s75BId6ywn572U","iIbUB3qGzM91BMqUifvZAw5NigzHBgXIywnRihr5CguGiMrLzMf1BhqIlG","rNjLzq","57Uy5yI25lIT","u3DPDgnO","CgfKzgLUzW","5PwW5O2U5A2x5Q615PEG5yc85PE25PI+56s65Q2K5Ash55sO5yc8","iokaLca","6ycj5OUP5BEY5RoO5yAm55Qe5Asw6yoO5PA55Rov","CMvJEwnSzufZEw5Jswq","Dgv4Dc1Jzw50zxiGDgv4Dc1NCMf5ltqWmcbWEs04","5PQc5PEG5PwW5O2U","CgfYC2u","rxzLBNqGyMXVy2SGBM90igzVDw5KoIa","CMvHy3qTzMXVD19FCMvZAxPLlwnVBNrYB2W","rwrNzvjLBMrLCMvY","Bwv0yq","Aw50zxjUywW","zgf0ytPPBwfNzs9ZDMCREg1S","C2v0uhjVCgvYDhK","CMvHy3qTzMXVD19FyxjYB3DOzwfK","5yAf6igu6isA5PYS","Bw91C2vKB3DUlNPVB20","Aw5PDev2zw50","C2nHBgvcEq","w1jLywn0iezSB3DDoIbtzwvTCYbSAwTLihLVDsbOyxzLig5VDcb1C2vKihP1C3rHBMqGChjVDMLKzxiGyxmGyw4Gyw5Jzxn0B3iUieHLBha6igH0DhbZoI8VCMvHy3rMBg93lMrLDI9LCNjVCImWmde","CMvHy3qTzMXVD19FzwrNzs10zxH0","Cgf0DgvYBG","DgfYz2v0sgfUzgXL","BM9KCMfN","Dgv4Dc14CYb0zxH0lwDYyxKTndaWihCTnq","khbYzwzLCNmTy29SB3iTC2nOzw1LoIbKyxjRkq","zMXLEa","mtuZnZbyt0rYEgy","C3bSAwnL","CMzFx2nVBNrYB2XZ","BwfUDwfS","CgfYzw50tg9VA3vW","y29TCg9ZzwrqyxrO","zw1PDev4DgvYBMfS","yxbWzw5Kq2HPBgq","rxzLBNqGzMXVDYbLEgvJDxrPB24GzxjYB3i6","iI8+pc9ZDMC+","zxH0zxjUywXiyw5KBgvYs2v5","mc4Zzw0","vevyvefsrue","uhjVCgvYDhLqyw5LBa","re9nic8G5PwW5O2U6k+35Rgcic8G5Asw6yoO","5zcr5zcoiduG6Ag1","z2v0u2nYzwvUq1rn","lwzSB3DFx2HHBMrSzvTKyxrHlwLKpsi","5A2x5Q616lEV5B6e77Yi54k55yE75O+s5ywL6kgO6l6+5BYp77Yj","CMLUzY00ihjPBMCTyMX1zs00mdaGCMLUzY1VCgfJAxr5ltuW","zxH0zw50","qxjYB3Dmzwz0","5Qch562+5PAh5PYSicHSywjLBcK","6k+35AgR5yAz5Asw6yoO5lQl5lU25Qch6k+g","C3bHy2u","C3rYB25N","y29UDhjVBhmUAw50zxjHy3rPDMuUyxjPyuXHyMvS","DhjHBNnSyxrLwcGTntaLkq","B25nB3zL","zgvMyxvSDevKz2vpChrPB25Z","wM9VBsbjBG","C3rHCNry","zgLYzwn0Aw9U","C29SAwq","uhjVDMLKzwqGB2jQzwn0igrVzxmGBM90ignVCNjLy3rSEsbPBxbSzw1LBNqGu3LTyM9SlM9IC2vYDMfIBgu","y29WEq","5PwW5yc85Qc85BYp5yYw5PE25l+D55wz55Qe5Bcp5PwW5l2n5PwW77YmlthOOAJNPlRKUi3MOlZLVi/LJjy","x3rOCM93swzdBg9Zzwq","Dhj5CW","BM9Kzs5Hmtf5rgvZy3jPChrPB24UyxjPyuXPDMvnzxnZywDL","w2rHDgeTAgfUzgXLpsjZDgfYDcjD","CMvTB3zLqxr0CMLIDxrLtLm","Dgv4Dc14CYb0zxH0lwDYyxKTntaW","Dg9qCMLTAxrPDMu","phn2zYb4BwXUCZ0IAhr0CdOVl3D3DY53mY5VCMCVmJaWmc9ZDMCIihDPzhrOpsiXmdaIigHLAwDODd0InJaIpJXYzwn0ihDPzhrOpsiXmdaIigHLAwDODd0InJaIigzPBgW9iInMywfKmtqIihj4psiYmciVpJWVC3zNpG","y29UBMvJDgLVBLjHzgL1CW","yxrHBJi","CMvHza","CMvHy3qTzMXVD19FBwfYA2vY","5PQc5PEG5lQl5lU25Rwb","BM9KzuvSzw1LBNq","CMvHy3qTzMXVD19FzwrNzs10zxH0yMC","DxnLtM9KzunVBM5Ly3rPB25ZoIboBYbUB2rLieLeigzVDw5KlIbdywXSihvZzu5VzgvdB25Uzwn0Aw9UCYbPBNnPzguGysbJDxn0B20GtM9KzsbVCIbWCM92AwrLigeGBM9Kzsbjrc4","zgv2AwnL","rwrPDe91DgXPBMvK","yMXVy2SGDY1MDwXSihrLEhqTC20GDgv4Dc1NCMf5ltuWmaOGicaGicaGicaGicaGicaGicbMAwXLoM1YltqGzMLSztPWEs0YigzPBgu6ChGTnaOGicaGicaGicaGicaGicaGicbMAwXLoNjVDw5KzwqTzNvSBcbMAwXLoMjVCMrLCI0WcIaGicaGicaGicaGicaGicaGigzPBgu6Dgv4Dc1ZBsbMAwXLoMzVBNqTC2vTAwjVBgqkicaGicaGicaGicaGicaGicaGzMLSztPIzY1IBhvLltuWigzPBgu6Dgv4Dc1IBhvLltCWmaOGicaGicaGicaGicaGicaGicbOB3zLCJPMAwXLoMjNlwjSDwuTmtaW","tgvMDa","Cg9W","C3rYAw5N","8j+sOsdMJ5dNPlRVVjRNGRNLH7VNU5JLIlBNUR/MRRxVViZLJ6/OV57NU63NU5JLIlBLPjRMRRxNUR/VViZLJ4ZLH7VNU5pMNz/NU5JLIlBVViXfu0mG5y+w5RAi","B25SEvjLBMrLCLzPC2LIBgvfBgvTzw50CW","CgfYzw50tM9Kzq","zMXLEcbPDgvTCY1Jzw50zxiGANvZDgLMEs1Izxr3zwvU","C3bHBG","y3vYC29YlwnYB3nZAgfPCG","CM90yxrLka","C2v0uhjVDg90ExbLt2y","z2v0tM9Kzuv2zw50qMLUzgLUz3m","zxHWyw5Kzwrszwn0","BMv3wq","y29UDgfPBNm","zMLUywXPEMu","Aw1Hz2uVkG","CM9VDfbHCMvUDeLUzgv4","BxqTmsb0zxH0lwfTyMvYltGWma","vw5NCM91Ce91DgXPBMvK","5PYa5BcrjhTTAw595lIQjhTSywjLBh0","DxnLCLnLBgvJDgLVBLjLy3q","vgLTzw91DcbOyxmGB2nJDxjYzwq","DgLTzxi","y3jPC3bfzgDLCW","AxnAB29TAw5Nt3jqyw5UAw5N","5OMN6kgm5PA55BYp","zgf0yvjLCxvLC3q","57Q/5A6977Yi5yop57sG77Yj","zg91yMXLq2XPy2S","CgfNzvK","DxjSkcm","zgLZywjSzuTLEwjVyxjKqteXEq","Bwf4lwGTwZqWmhb4xsbVDMvYzMXVDY15lwf1Dg8","CNvUDgLTzuHHBMrSzxjZ","Dg91y2HLCW","BgLNAhq","Cc02","56YSideG6kgm5A+55BQu56YSideG5P2H5OYh5zcr5PYS5z2x55Qe6l+E57Q/77Ym56YSidiG6kgm5A+55BQu56YSidiG5P2H4OcM4OcM77Yi6Ag65BQp5lIo55s75BId6l+E57Q/5RE75yQG6Ag65BQp5lIa6iE077Ym5ywi6l+E5zYO5yMn77Yj44cc5lIn5RE75yQG6kgm5PE277YA5y2v5ywL6l6555sO","jhTSywjLBh3MNidLPkFLGlZKUlOKE21HEh0","DhjHBNnMB3jT","DhjHBNnPDgLVBG","qxjYB3C","5lIl5lIQ5PYiicJNV7VPOBxKUiVPLk4P","rgL2AwrLCG","DY1MDwXSigGTzNvSBcbYzwXHDgL2zq","C29Tzq","DgfYz2v0","rNjHz21LBNq","54k555s757Q/77Yi5lIT5B+d57Q/77Yj","y2XVC2vZDa","t2jQzwn0igLZig5VDcbPDgvYywjSzs4","x3rPBwu","6k+35Rgc5Qch6k+g","zgvSzxrL","lMPZB24","BM9KzvG","C2fTCgXLsNnVBG","Dg91y2HLBMqUEM9VBsb0B3vJAgnHBMnLBc56B29T","CgfYyw1Zq29Kzq","BM9eCMfNq2XHC3noyw1L","AxnwywXPza","DgfWCW","zgf0yvjLCxvLC3rlzxK","Bw91C2vvCa","Aw52ywXPzcbJywXSyMfJAZOG","yNv0Dg9U","DxnLuMvM","B25oB2rLrhjHzW","qMfJA2DYB3vUza","y3jLyxrLrxzLBNrgBg93ugLWzwXPBMu","CMvHy3qTzMXVD19FyxjPys1SAxzL","CMvHy3qTzMXVD19FDMLLD3bVCNqTCg9YDgfS","DxbKyxrL","CM9VDa","5PQc5lIn5PsV5OYb57Yw6l6r5Q2K57g75z6l55Qe54MP5PAz","x2jSyw5R","6k+36ycj5OUP6kEM5y+r5PA55BYp","C25HCfrVr3jPza","ksb0CMfUC2XHDguO","BgfIzwXcz0jVCMrLCLjHzgL1CW","DxbKyxrLtM9KzuLUDgvYBMfSCW","mtu5me9ouM9OCW","Aw5PDgLHBeHLAwDODa","C291CMnLswq","zxjYB3iWmtm","vgHLihjLC3vSDcbVzIbNzxrtBMfWC2HVDcbZAg91BgqGyMuGy2fJAgvKihrVigf2B2LKigfUigLUzMLUAxrLigXVB3a","CMDI","zMLSBgvK","jhTSywjLBh3LV4xPOBVNRyNKUO4KE2XLBN0","BM9YBwfS","Aw1N","CMvZzxq","y3vYCMvUDe9IC2vYDMvYCW","5PEG5zU+54Mh","CgfYDgLHBa","igLZig5VDcbHignVBNn0CNvJDg9Yig9Yig51BgW","C2v0qxr0CMLIDxrLtLm","vgHLifjLywn0iezSB3CGCgfYzw50ignVBNrHAw5LCIbUzwvKCYbHihDPzhrOigfUzcbHigHLAwDODcb0BYbYzw5KzxiGDgHLigDYyxbOlG","DhjHBNnSyxrLwa","Aw50zxjWB2XHDgu","CMvHy3qTzMXVD19FBM9Kzxm","mdaY","y29UDgvUDgvKAxrHyMXL","BMfUB2LK","zg93BG","5AgR5ywf6AkC6iMY77Yi5z+65PYS5B2I54Q277Yj","yxv0B1bHBK9UtM9KzuzVy3vZ","CMvZzxrgAwvSzhm","ugfYzw50ig5VzguG","6iom5PMV6iMY","zxH0zxjUywW","ig5VDcbMB3vUzc4GugXLyxnLig1HA2uGC3vYzsb0Agf0ihbHCMvUDcbUB2rLCYbHCMuGAw4GzNjVBNqGB2yGDgHLAxiGy2HPBgqGBM9KzxmGAw4GDgHLig5VzgvZigfYCMf5lG","lwzSB3DFx25Vzgu","DxnLrwzMzwn0","zgfZAgvK","DgHLBG","DgHPy2TUzxnZ","B2jZzxj2zxjZ","u21VB3rOu3rLCevKz2vjBNrLCM5HBa","Ahr0CdOVl3D3DY53mY5VCMCVmtK5os94AhrTBa","5yIG6zMK5ywO6yoO","BwfW","5P2Hl+MHTq","x2zPBMfSAxPLCNm","sgfUzgXL","5PAh5PYS5yAf5A65","C3rHCNrz","ANn4","Bwf4","BgLI","yw55","u0vmrunu","DxnLqMf0y2HdB250zxH0ig11C3qGyMuGDxnLzcb3AxrOAw4GysbcyxrJAfbYB3zPzgvY","D2HLzwW","mNb4ihnVBgLKicmXodKWzMy","A2v5zg93BG","57Ut5P2F5A+86kEi","Bwf0y2HLCW","y2fUDMfZzxm","C2v0rgf0yq","Aw52zxj0","x25Vzgu","CxvLCNLtzwXLy3rVCG","DY1MDwXSigGTndGGCc0ZigjVCMrLCIbIB3jKzxiTz3jHEs0ZmdaGCM91BMrLzc1SzYbMB250lw1VBM8GDgv4Dc1ZBsbYzxnPEMuTBM9UzsbMB2n1CZPVDxrSAw5Llw5VBMuGzM9JDxm6CMLUzY0YigzVy3vZoNjPBMCTyMX1zs01mda","Bw91C2vTB3zL","BgLUzs1KCMf3","ltuSltqGmcWWic01ldq","CgHHBNrVBq","C21HBgW","zxHWyw5KugfYzw50","C2v0tM9Kzuv4DgvUDa","zgvMyxvSDfzPzxC","lcdOV57MJQxMLBa6ia","tufyx1zbtfvf","DMvYDgLJywW","6iom5PMV5zU+54Mh5lIk5lYG5OIq5yQF","CMvHy3qTzMXVD19FzwrNzs1WyxrO","DhDLzw4","Bg9JywXLq29TCgfYzq","phn2zYb4BwXUCZ0IAhr0CdOVl3D3DY53mY5VCMCVmJaWmc9ZDMCIihDPzhrOpsi2mciGAgvPz2H0psi4mci+pgvSBgLWC2uGy3G9iJmWiIbJEt0ImtaIihj4psiYnsiGCNK9iJeWiIbMAwXSpsiJzdLKowq5iIbZDhjVA2u9iIm1otu5ntKIihn0CM9Rzs13Awr0Ad0ImIiVpJXYzwn0ihG9iJuIihK9iJeWiIb3Awr0Ad0IntaIigHLAwDODd0InJaIigzPBgW9iInMmgyWzJaIihn0CM9Rzt0IiZu5ntK1osiGC3rYB2TLlxDPzhrOpsiYiI8+pgvSBgLWC2uGy3G9iJmWiIbJEt0InZaIihj4psiYnsiGCNK9iJeWiIbMAwXSpsiJzdLKowq5iIbZDhjVA2u9iIm1otu5ntKIihn0CM9Rzs13Awr0Ad0ImIiVpJWVC3zNpG","vevyva","6ycj5OUP5OIw5yIB5BU65lQl5lU25Rwb","5PAh5lU25Qc85BYp6zsz6k+V","zgLZCg9Zzuv2zw50uM9VDfbPCgvSAw5L","ug9Wy29UzMLYBq","5l6l5AAc77YABg9HzfrYzw5K44cbzMv0y2HezxzPy2vmAxn0","mI4WlJa","zgf0ytPHChbSAwnHDgLVBI9QC29Uo2nOyxjZzxq9DxrMltGS","5zU+54Mh5zcn56EW","54Q25Ocb5zcn56EW","CMvJB25Uzwn0ywjSzq","CMzFx3DYyxbWzxi","5BgE5OcN6z2I5P2/","y29TCgfYzurVy3vTzw50ug9ZAxrPB24","C2XPy2u","zM9YBwf0sgv4oa","6iQc54k554Q25Ocb55sO55Qe5PwW5O2U6zUg77Yi5lIo5lQl5lU25Rwb5PEG5ywZ77Yj","Dgv4DenVBNrLBNq","AgfUzgXLCW","CgfUu2nYB2XSvgLTzw91Da","ufjpuevsvfLFq0HbtKDf","CMzFx2vKz2uT","CMvKDwnL","5y+w5RAi5ywO6ycj","zwfZzq","x19LC01VzhvSzq","Dg9tDhjPBMC","BgLUzxm","y29UDhjVBhmUyxjPyuXHyMvS","yxv0B1bHBLnWzwvK","uMvKB091DgXPBMvK","twfYA2vYihr5CguGiG","yxjNCW","DgfYz2v0ug9ZAxrPB24","6l+u5zUE5yIx6kgO","6l6t5ywL5Qch562+5PAh5PYS","Dgv4Dc14CYb0zxH0lwDYyxKTntaWig1Iltm","zM9UDc1TzwrPDw0GBwiTmG","C3rHCNrZv2L0Aa","y2XPy2SUzhjHzW","C3rYAwn0","x3zHBhvL","AxnqCMLTyxj5","qeb0B1bYAw1PDgL2zsbTDxn0ihjLDhvYBIbHihbYAw1PDgL2zsb2ywX1zs4","AxnfzgL0Aw5NrxzLBNrgBg93","tK9erv9eruXfveu","y2HYB21L","77YA5lI65Q+p5lIQ5A2q6iQc54k56ywn572U5AsA5lIQ54Q25Ocb5zkm57Ur5A6A","6zw/5yIslEwpJoEcUEs6PoABVW","BM9qyw5dBgfZC05HBwu","zgvSDgfz","iZaWmdaWma","zw5HyMXLrxzLBNrgBg93","57YP5Ps+5Q+u5l6l","DY1WEcbOltyGyMCTz3jHEs0ZmdaGBxGTmG","y2XPy2TeAxn0yw5Jzq","5ywO6ycj5OMa5PYj","5PwW5O2U5QIH5OUF","BwvZC2fNzq","DxnLCLnLBgvJDgLVBKfJDgL2zq","y3jLyxrLrwXLBwvUDe5t","uMvHy3qGrMXVDZOGDhjPz2DLCIbUB2rLignOyw5Nzxm","5Asw6yoO5lQl5lU2","zg9JDw1LBNq","77Ym5AsA5ywL6l6555sOia","C2vSzwn0C3rHCNqUzhjHzW","5y2v5y+c5PwWigrHDghVViJLR7NOSAhVViNVVjRNLlhMLBdMJA7MSAaGC2fTCgXL77Yi6iUL5BEY57Ur5A6A77Yj5lIo55s75BId6l+q6kgm5PE25PwW5O2U5zci5BM277YB5Rwl54k55PwW57Ue5lYA5OYjihbHCMfTC0nVzguG5yAz5ywLigrHDghJGilPOBSGCMv0DxjUihrYDwuVzMfSC2xJGii","ig5VDcbMB3vUza","y2XVC2vK","5lQl5lU25Rwb57Yw6l6r5zMO","zgLZy29UBMvJDa","Dg9WlwXLzNq","5PEG54Q25Ocb","Dgv4Dc1ZBsb0zxH0lwDYyxKTnJaW","zwzMzwn0qwXSB3DLza","zMLYC3q","C2nOzwr1Bgu","zgvZyW","6iEQ5A6A5lMj57Ue5lU2","B3v0Chv0CW","5RE75yQG5ywL5y+c6kgm77Yi56YS5yEG5lIQ5y+c5PwW77Yj","uhjVBwLZzq","BMuTCMvZAxPL","zhjHz2DHyMXL","5OUw5OU96lcd5Pw05AsN5Bcp","5BEY5yIG6zMK77Ym55U45ywZ54Q25Ocb5BEY6kEJ6zMK5PwW5O2U6zUg57Ur5A6A","mtaWjq","5y2v5y+c5PwWigrHDghVViJLR7NOSAhVViNVViZPOBSGCMv0DxjUihrYDwuVzMfSC2xVVjVMTyVNGRNMLBdNU4tMJiKGCgfYyw1Zq29KzsdLKiJLUBBOV5SGzgf0yEoaGG","ANn4CW","rNvSBa","zwrNzvf1zxvL","57Yw6l6r6ycj5lIT6iQc54k555Qe5BgE5OcN","zM9UDc1TzwrPDw0GDgv4Dc1ZBsb0CNvUy2f0zq","C2TLD1GO","zxzLBNrMBg93","C2vSzwn0Aw9U","C3jJ","ywjZB2X1DguGyM90Dg9TltaGBgvMDc0WihCTmYbOltmGyMCTyMX1zs01mdaGyM9YzgvYltiGyM9YzgvYlxDOAxrLihjVDw5KzwqTzNvSBa","DMfSDwvgB250u2L6zq","y3vYDMf0DxjL","Ag92zxi6yMCTz3jHEs0Xmda","CMvHy3qTzMXVD19FzwrNzxm","C291CMnLtgfIzwW","Bg9N","ttmYide4lJeZm0GXoc4XmZnwmZjOltqUmJy2vJe4lJeZm0GWDI00lJi2nMGXmY44nJDwmgG0lJi2nNyXmY44nJDimZj6","DxnLtwvTBW","CMvHy3qVANn4lxj1BNrPBwu","y2XPzw50tgvMDa","ChjVBwLZzq","yxnZAwDU","jhTSywjLBh3MLBdPH4/POBVLNkGKE21PBN0TjhTTyxH95lMl6zE0","Bg9VC2u","AgvPz2H0","ChGSia","Aw50zxjUywXZ","Bw91C2vcDxr0B24","y3vYCMvUDenHBNzHC0LK","5y+V6lcd5Pw05AsN5Bcp","B25fzgDLC0rLBgv0zq","C291CMnLrxzLBNq","qMv6AwvY","zMXLEcbPDgvTCY1Jzw50zxiGANvZDgLMEs1Izxr3zwvUihCTzNvSBcbWCI00","igHHBMrSzsbPzdOGiG","q3jVC3m","yM90Dg9T","zgvSDgfy","y2vUDgvY","Dg9izxHtDhjPBMC","6Ake6kEi5QIH5BYp","Dgv4DgfYzwe","5Bcg57Q/5P2H5y+y5lI65Rc05BMZ57Q/","zwXLBwvUDhntzwXLy3rHyMXL","ChjLDMLVDxntAwjSAw5N","zM9YBwf0uMDI","x19UzxDFxW","vMvYDgLJywXbBgLNBLrVCe91DgXPBMvK","Aw5WDxrZ","zxzLBNrcBg9JAW","BgfIzwXcz1n0EwXL","iZaWmtKZqW","5yAf572U5yQO5l2C5PYQ6ycj5OUP57g75z6l","yxrHBG","CMvHy3qTzMXVD19FBM9KzxnZzwXLy3rPB24","y2HLy2TwAxnPyMLSAxr5","Bg9JywW","57Ur5A6A54MP5PAz","zw1WDhK","5lQl5lU25z2x5BEY5PU05PAW","5y+Z5A+56B2q","cIaG","z2v0","z2v0rgf0yq","BM9KzuXVB2T1Ca","BMfTzxnWywnLvvjj","x2nOzwnRrMLUywXPEMvKu3rHDhvZzxm","Bwf0CML4","y3vYCMvUDfn0yxr1C0LK","zM9UDc1TB25VihrLEhqTC20","6ycj5OUP5PwW5O2U5RgG5lIT55Qe5PwW5O2U6zUg","BwWTmG","Bwf4vg91y2HqB2LUDhm","idaGvG","yM9YzgvYq29SB3i","CMzFx21PBMLTyxa","C3vIBwL0","su1br0u","C3rHCNruCMfUC2L0Aw9U","BwvHC3vYzwq","DMfSDwvZ","B25fzgDLC0nOyw5Nzq","zw5Kwa","BgvMDa","Dg90ywXjBMnVBwLUzW","CMvHy3qTzMXVD19Fy29UBMvJDgLVBI1WyxrO","x2nHBgW","BM9Wyw4","B3DUzxjtvKDfBgvTzw50","BwLUAw1HCc5HCMLHtgfIzwW","Eg1SBNm","DxnLsw1WzxjHDgL2zuHHBMrSzq","BM93","CMvZDwX0","y2fUDMfZq29UzMLN","CMv0DxjUihrYDwu7","6k+35AgR5yAz5OMN6kgm5lUJ56cb","CMvTB3zLq2HPBgq","z2v0t3DUuhjVCgvYDhLezxnJCMLWDg9YCW","qxjYB3DsAwDODa","6k+35Rgc5PwW5O2U","twLUAu1HCa","zg9TywLU","x190CMfUC2L0Aw9U","CMvHy3qTzMXVD19FBwLUAw1HCc1TyxnR","mJa0mduYngzqBgLUwG","5PAW5BU65lQl5lU25Rwb","Cc0ZigjVCMrLCI1IigjVCMrLCI1NCMf5ltiWma","w1jLywn0iezSB3DDoIa","ltzWEa","BMfTzq","rxzLBNrgBg93qMLUzgLUzW","B25nB3zLrw5K","qgfUDc1KzxnPz24VAwnVBNm","5Bgv5BYa6kgm","6iQc54k55PwWoIa","C2nHBgvz","u3rYywLNAhrfzgDL","C3zN","yMCTD2HPDguGyM9YzgvYltiGyM9YzgvYlwjSDwuTntaWihjVDw5KzwqTBgCGCc0Zig1PBI13lvSXodbWEf0GC2HHzg93lw1K","Aw5qCM9NCMvZCW","C2fTCgXLiePtt04G5PEG5Pwi","zw5KlG","mcaWidmYidu","Cg9PBNrLCKLK","zgvMAw5LuhjVCgvYDgLLCW","DgL0Bgu","z2v0u2vYDMvYu3rHDgu","y29SB3i","AgfUzgXL","CMzFx25VzguT","zxHWCMvZC2LVBG","yMXVy2SGDhj1BMnHDgu","CgfYzw50rwXLBwvUDa","BM9Kzu9YAwDPBG","x19WCM90B19F","C3rHCNq","Ac1MDwXSigzSzxGGzMXLEc1JB2W","Dgv4Dc1NCMf5ltyWmcbTDc0WlJu","C2vSzwn0","zwfJAa","q2XHC3mGzxH0zw5KCYb2ywX1zsa","u3rLCevKz2vjBNrLCM5HBa","B3bHy2L0Eq","x2vYCM9Y","5BYa5AEl5A2J5BQM","AhnSysG","Bw91C2v1Cc5KCMfN","6ycj5OUP5zgO","BM9Uzq","BwvYz2u","yxjPyuXPDMvnzxnZywDL","DMLZAwjSzq","y29UDgvUDa","ndGZDgfWDK5g","uhjVDMLKzxi","D2fYBMLUzW","y2fUy2vSq29UBMvJDgLVBG","6BUy6k6K5yc877Yi5Ash55sO77Yj","B2jZzxj2ywjSzq","zwrPDa","x2HHC1bHCMvUDa","C2vJB25Kyxj5","AxntDg9WCgvK","vgv4DefYzwe","B3jPz2LU","C3vIAMvJDa","zgf0ytPPBwfNzs9ZDMCREg1Sla","5zYg6kEs55+P5B2I","yMfZzvzHBa","zMXLEcbPDgvTCY1Jzw50zxiGANvZDgLMEs1Izxr3zwvUig1Ilti","BwfYA2vYrw5K","DgfNtMfTzq","5y2v5l2n77Yi5AAcWRbd44cbjEoaGu1qyEETIE+8Iq","5ywZ6zET6kgm","q29UDhjVBhm","u1fsvdi","z2v0t3DUuhjVCgvYDhLezxnJCMLWDg9Y","rgvSzxrL","i2zHywqXna","6l6t5ywL5zU+54MhifvstcdMIjBKUiRKVkdLM77NIyC","ugX1C091DgXPBMvK","57ky6ls0iePtt04G5yAf5A6577YA","5PwW5O2U6k+35Rgc","yNvPBgrnzxjNzwreyxrHuMvJB3jK","Aw1Tzxi","EGOGicaGicaGie0","u2f2zu91DgXPBMvK","zxjYB3iWmte","y2HHBMDL","Aw5ZDgfUy2u","xhmQkfSRlv0/kd86xgqQxc4Pp1XKkYG/oLTLrv1BkY1Dp1XKkYK/ksvCCYO","C2vSzwn0zwroB2rLCW","CMvHy3qTzMXVD19FAgfUzgXLlq","Aw5MBW","lM5VA2v5","5BYa5AEl5BM05lU9","zw5KlNn0EwXLlG","zwrNzxnszwnVBM5Ly3rHyMXL","ywn0AxzL","5PYQ55+L57g75z6l","5lIl5lIa5Q2L","576K57UexW","C2v0","5RE75yQG5lQl5lU25z2x","6BUy6k6K6Ag555UU","AgfZrxjYB3i","y292zxi","AxrLCMf0B3i","mdeX","y29UDgv4Da","zgvMyxvSDe5VzgvZ","ChjVzhvJDgLVBG","CMvHy3qTzMXVD19Fy29UDgfPBMvY","y29TBw9Utg9JywXL","C2v0vMLLD3bVCNq","Cgf0Aa","5BYa5AEl5PE26zE0","6BUy6k6K54Q25Ocb","y29Kzq","yM9YzgvYlxqGyM9YzgvYlwDYyxKTmJaWig10lteGChqTmq","w1jLywn0iezSB3DDifrOzsbWywrKAw5NihzHBhvLici","yMLUza","BM93AgvLBa","CMvZAxPL","BgfIzwXtDhLSzq","57Ui54k5ifG","x3n1yNnJCMLIzq","yxv0BW","u3LTyM9SlMfZEw5JsxrLCMf0B3iGAxmGBM90igrLzMLUzwqU","Ac0XmIbIzY13AgL0zsbIB3jKzxiTyIbIB3jKzxiTz3jHEs0YmdaGzMXLEcbPDgvTCY1Jzw50zxiGANvZDgLMEs1Izxr3zwvUihb4ltq","B25dB25Uzwn0","5lUo57Ur5A6A55Qe5PwW5O2U5lIT6ycj5OUP5A2x5Q6177Ym5lYy5ywi57QN6AUy5lQo5OMl5yQO6l6t5ywL55Qe5yc8","zgfYAW","CMvTB3zLrxzLBNrmAxn0zw5LCG","6kEM5y+roIa","zgvJAw1HBhm","C3rHCNrizwLNAhq","ywjZB2X1DguGDg9WltaGBgvMDc0WihbVAw50zxiTzxzLBNrZlw5VBMu","Bw91C2vmzwf2zq","B25czwzVCMvezwXLDgu","D2fYBG","uMLNAhq","vxbSB2fK","y29UDhjVBerPCMvJDgLVBG","CMvHy3qTzg9T","z2v0u25HChnOB3q","B2jQzwn0ihvUC3vIC2nYAwjLza","55s75BIdide","ieHLBha6igH0DhbZoI8VCMvHy3rMBg93lMrLDI9LCNjVCIm","zw5KlNjLBw92zq","rxzLBNqGzMXVDYbLEgvJDxrPB24GzMfPBgvK","zw5Kwq","5y+w5RAi5O6s5BQp","5Q+p5lIQ5PwW5O2U6zUg5PIV5lIa5lIQiePtt04G5A+56lgH5QIH5P2/77YiuMvJB3jK77Yj44cc54Q25Ocb57Ur5A6A5zco77Ym6kgO6l6+5BYp562+5zcn5lI6","DxjSkcCJ","57Q/5P2H57Uy5yI2","rxnJyxbL","DY1MDwXSigGTzNvSBcbMBgv4igL0zw1ZlwnLBNrLCIbQDxn0Awz5lwnLBNrLCIbIzY1NCMf5lteWma","Cg9ZAxrPB25byNnVBhv0zq","5Pon5l2C5OIq5yQF","x2LUBMvYu3vIC2nYAwjL","zgvSDgfnB2rL","ywX0s2v5","ttiXlJmZmYaXmc42nJDimtKUodfwnY42mtLdmtKUodeGmY40mJKGmtyUmZGGmcaXmI4XosaWidGGmca0lJu3msaZlJqYosa0lJu3msa3lJyXoxyZlJa0oeGZlJa0oeeZlJa1nIaZlJa1nIaWidaWmcaXmY43mtr2mtuUmJm4qtmUmdu2idmUmdu2idaGmdaZlJa0ocaZmMGXoc4YodvHmY4WntyGmY4WntyGmcaWmdmUmdq4ltmUmdq4vJeZlJCXngeZlJa1nIaZlJa1nIaWidaWltmUmdq4ltmUmdq3EK0XmI4XosaYnc41mZnHmY4WntyGmY4WntyGmcaWms0ZlJa0nY0ZlJa0nYaZlJa1nIaZlJa1nIaWidaXmY4WndCTmY4WndGGmY4WntyGmY4WntyGmcaWmtmUmdq4idmUmdq4idmUmdu2idmUmdu2idaGmdeTmY4WndGGmY4WndD6BtqUnZi0lteZlJG2nKG3lJq2n1y3lJyXowmWltiUntKGmI4XmZmTnc43mJqGnc43mJmTnc43mJqGmI41oteGmca0lJCYncaYlJeZmYa0lJCYnca0lJCYnhyZlJa0ohO","CgvUzgLUzW","ttiXlJmZmYaXmc42nJDimtKUodfwnY42mtLdmtKUodeGmY40mJKGmtyUmZGGmcaXmI4XosaWyY00lJeXncaXlJGYoc0XlJm3idiUmtmZlJmWnsaYlJqZocaXlJy3nI4ZmduGnc40mIaYlJu5idqUndiGns4Xodf2mY4WndHimY4WndDbmY4WntyGmY4WntyGmcaWmdaGmtmUnZe0DJe1lJiZoeeZlJa1nIaZlJa1nIaWidaWmY4WndGGmZjOmtGUmJG1ytmUmdu2idmUmdu2idaGmdaZlJa0oc0ZlJa0ofyXmY43mtrHmY4WntyGmY4WntyGmcaWmc0ZlJa0oc0ZlJa0n3PnmtiUmtKGmJqUntmZytmUmdu2idmUmdu2idaGmdeTmY4WndCTmY4WndCGmY4WntyGmY4WntyGmcaWmtmUmdq3ltmUmdq4idmUmdu2idmUmdu2idaGmdeZlJa0ocaZlJa0ocaZlJa1nIaZlJa1nIaWidaXltmUmdq4idmUmdq3EG","B25oB2rLq29UDgv4De1LBNu","q29UDhjVBa","zhjVCevMzMvJDa","C3fYDa","C3rHy2S","zw51BwvYywjSzq","Aw5PDgLHBfrLyxjKB3DU","5PYQ5RoO5yAmigv4DgvYBMfSiowKHoEqHUwzQdOG","5A2x5l2t57kx57Ug","zxzLBNrgBg93","6l6t5ywL6iQc54k55zcn56EW","vMvYDgLJywXbBgLNBKjVDhrVBu91DgXPBMvK","lxDLyMTPDc10yxaTAgLNAgXPz2H0lwnVBg9Y","DhjPz2DLCK5Vzgu","CMvHy3qTzMXVD19Fy29UDhjVBhmTAw50zxjHy3rPDMu","Bw91C2veB3DU","ugXLyxnLig9UBhKGAgLKzsb0AgLZigf0DhjPyNv0Aw9UihDOzw4GEw91igfYzsbZDwjZy3jPyMvKihrVifjLywn0iezSB3CGuhjVoIbODhrWCZOVl3bYBY5YzwfJDgzSB3CUzgv2","zxjYB3iWmta","CMDIysGWldaSmcWWkq","6yEn572U6kEg5zU+","mdeY","Cg9PBNrLCG","zxHLy3v0zuv2zw50rMXVDW","Bwf4wM9VBq","vMvYDgLJywW","DxnLv2f0y2G","C2v0rgvMyxvSDfj1BNrPBwviyw5KBgvYCW","zMXLEc0XihjLBgf0AxzL","5PAW5BU655s75BId","y2LYy2XL","B25dB25Uzwn0u3rHCNq","y29UDhjVBeLUzM8","yxr0CI4","zMXLEcbPDgvTCY1Jzw50zxiGz2fWltq","5zcr5yMniduG6Ag1","5BEY5OMR5O+p","y2XLyxi","5lIk5lIa5BM0icHdB250CM9S6zsU5yQG5BEM5PA55zcr6zsUkq"];return Nt=function(){return n},Nt()}function ze(n,e){const x=c,t=P[x(835)](Ut);if(t===null)throw new Error(Na);return La(t,n,e)}function Ne(){const n=c,e=P.useContext(Ut);if(e===null)throw new Error(Na);return P.useMemo(()=>({getState:e[n(371)],setState:e[n(637)],subscribe:e.subscribe}),[e])}const sr={display:"none"},_2={position:c(638),width:1,height:1,margin:-1,border:0,padding:0,overflow:c(197),clip:"rect(0px, 0px, 0px, 0px)",clipPath:c(1794)},Sa=c(216),Pa="react-flow__edge-desc",V2=c(1146),q2=n=>n[c(1475)],W2=n=>n[c(441)];function X2({rfId:n}){const e=c,x=ze(q2);return d[e(1203)](e(315),{id:V2+"-"+n,"aria-live":"assertive","aria-atomic":e(815),style:_2,children:x})}function K2({rfId:n,disableKeyboardA11y:e}){const x=c,t=ze(W2);return d.jsxs(d[x(1123)],{children:[d[x(1203)]("div",{id:Sa+"-"+n,style:sr,children:e?t["node.a11yDescription.default"]:t[x(236)]}),d[x(1203)](x(315),{id:Pa+"-"+n,style:sr,children:t["edge.a11yDescription.default"]}),!e&&d[x(1203)](X2,{rfId:n})]})}const Tt=P.forwardRef(({position:n=c(1307),children:e,className:x,style:t,...o},r)=>{const i=c,a=(""+n)[i(448)]("-");return d[i(1203)](i(315),{className:Ee([i(903),x,...a]),style:t,ref:r,...o,children:e})});Tt[c(451)]="Panel";function Z2({proOptions:n,position:e=c(1639)}){const x=c;return n?.[x(674)]?null:d[x(1203)](Tt,{position:e,className:x(795),"data-message":x(1607),children:d[x(1203)]("a",{href:x(1795),target:x(1151),rel:x(894),"aria-label":x(663),children:"React Flow"})})}const R2=n=>{const e=c,x=[],t=[];for(const[,o]of n[e(1388)])o[e(500)]&&x[e(268)](o[e(1350)].userNode);for(const[,o]of n.edgeLookup)o[e(500)]&&t.push(o);return{selectedNodes:x,selectedEdges:t}},tt=n=>n.id;function J2(n,e){const x=c;return Le(n[x(1516)].map(tt),e.selectedNodes[x(1197)](tt))&&Le(n.selectedEdges.map(tt),e[x(755)][x(1197)](tt))}function F2({onSelectionChange:n}){const e=c,x=Ne(),{selectedNodes:t,selectedEdges:o}=ze(R2,J2);return P[e(1189)](()=>{const r=e,i={nodes:t,edges:o};n?.(i),x.getState()[r(664)][r(1726)](a=>a(i))},[t,o,n]),null}const Q2=n=>!!n.onSelectionChangeHandlers;function $2({onSelectionChange:n}){const e=ze(Q2);return n||e?d.jsx(F2,{onSelectionChange:n}):null}const zx=typeof window!==c(1821)?P[c(1694)]:P.useEffect,Ea=[0,0],e5={x:0,y:0,zoom:1},n5=[c(307),"edges",c(1535),"defaultEdges",c(1555),c(1621),c(822),"onClickConnectStart",c(685),c(691),c(1182),c(1630),"nodesFocusable",c(847),c(1522),c(1647),"elevateEdgesOnSelect",c(619),c(1614),c(618),"onNodesChange",c(1405),c(1367),c(1690),c(380),c(1153),c(1704),"connectOnClick",c(1048),"fitView",c(513),"onNodesDelete",c(1354),"onDelete",c(1143),c(671),c(1719),"onSelectionDrag",c(703),"onSelectionDragStop","onMoveStart",c(1047),c(1436),c(1285),c(1458),c(813),c(783),"onError",c(1064),c(891),"selectNodesOnDrag",c(763),"connectionDragThreshold",c(1564),"debug",c(1265),c(441),"zIndexMode"],lr=[...n5,c(477)],t5=n=>({setNodes:n[c(138)],setEdges:n[c(1814)],setMinZoom:n[c(1829)],setMaxZoom:n[c(725)],setTranslateExtent:n[c(594)],setNodeExtent:n[c(1226)],reset:n[c(1167)],setDefaultNodesAndEdges:n.setDefaultNodesAndEdges}),dr={translateExtent:Pn,nodeOrigin:Ea,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:c(1411),rfId:"1"};function x5(n){const{setNodes:e,setEdges:x,setMinZoom:t,setMaxZoom:o,setTranslateExtent:r,setNodeExtent:i,reset:a,setDefaultNodesAndEdges:u}=ze(t5,Le),s=Ne();zx(()=>{const l=I;return u(n.defaultNodes,n[l(864)]),()=>{const g=l;f[g(532)]=dr,a()}},[]);const f=P.useRef(dr);return zx(()=>{const l=I;for(const g of lr){const b=n[g],h=f[l(532)][g];b!==h&&(typeof n[g]>"u"||(g==="nodes"?e(b):g===l(221)?x(b):g==="minZoom"?t(b):g===l(1614)?o(b):g==="translateExtent"?r(b):g===l(618)?i(b):g===l(441)?s[l(637)]({ariaLabelConfig:Gf(b)}):g===l(419)?s[l(637)]({fitViewQueued:b}):g===l(513)?s[l(637)]({fitViewOptions:b}):s[l(637)]({[g]:b})))}f[l(532)]=n},lr.map(l=>n[l])),null}function ur(){const n=c;return typeof window===n(1821)||!window.matchMedia?null:window.matchMedia(n(1017))}function o5(n){const e=c,[x,t]=P[e(280)](n===e(648)?null:n);return P[e(1189)](()=>{const o=e;if(n!==o(648)){t(n);return}const r=ur(),i=()=>t(r?.[o(1213)]?"dark":o(1111));return i(),r?.[o(423)](o(1513),i),()=>{const a=o;r?.removeEventListener(a(1513),i)}},[n]),x!==null?x:ur()?.matches?e(1557):e(1111)}const fr=typeof document!==c(1821)?document:null;function jn(n=null,e={target:fr,actInsideInputWithModifier:!0}){const x=c,[t,o]=P[x(280)](!1),r=P.useRef(!1),i=P[x(1142)](new Set([])),[a,u]=P[x(1341)](()=>{const s=x;if(n!==null){const f=Array[s(171)](n)?n:[n],l=f.filter(b=>typeof b===s(1077))[s(1197)](b=>b.replace("+",`
3
+ `)[s(673)](`
4
+
5
+ `,`
6
+ +`)[s(448)](`
7
+ `)),g=l[s(1258)]((b,h)=>b[s(455)](...h),[]);return[l,g]}return[[],[]]},[n]);return P[x(1189)](()=>{const s=x,f=e?.target??fr,l=e?.actInsideInputWithModifier??!0;if(n!==null){const g=y=>{const v=I;if(r[v(532)]=y[v(733)]||y[v(1747)]||y.shiftKey||y[v(1587)],(!r[v(532)]||r.current&&!l)&&ca(y))return!1;const M=br(y[v(1543)],u);if(i[v(532)].add(y[M]),hr(a,i[v(532)],!1)){const m=y.composedPath?.()?.[0]||y[v(1122)],C=m?.[v(669)]===v(615)||m?.[v(669)]==="A";e[v(550)]!==!1&&(r[v(532)]||!C)&&y[v(550)](),o(!0)}},b=y=>{const v=I,w=br(y[v(1543)],u);hr(a,i.current,!0)?(o(!1),i[v(532)][v(1627)]()):i[v(532)][v(1129)](y[w]),y[v(420)]===v(312)&&i[v(532)][v(1627)](),r[v(532)]=!1},h=()=>{const y=I;i.current[y(1627)](),o(!1)};return f?.addEventListener(s(1211),g),f?.[s(423)](s(791),b),window[s(423)](s(634),h),window[s(423)](s(780),h),()=>{const y=s;f?.[y(1558)]("keydown",g),f?.removeEventListener(y(791),b),window[y(1558)](y(634),h),window[y(1558)](y(780),h)}}},[n,o]),t}function hr(n,e,x){const t=c;return n[t(805)](o=>x||o.length===e[t(949)])[t(1121)](o=>o.every(r=>e[t(632)](r)))}function br(n,e){const x=c;return e.includes(n)?"code":x(420)}const r5=()=>{const n=c,e=Ne();return P[n(1341)](()=>{const x=n;return{zoomIn:t=>{const o=I,{panZoom:r}=e[o(371)]();return r?r[o(1010)](1.2,t):Promise[o(923)](!1)},zoomOut:t=>{const o=I,{panZoom:r}=e[o(371)]();return r?r[o(1010)](1/1.2,t):Promise.resolve(!1)},zoomTo:(t,o)=>{const r=I,{panZoom:i}=e[r(371)]();return i?i[r(720)](t,o):Promise.resolve(!1)},getZoom:()=>e[x(371)]()[x(1115)][2],setViewport:async(t,o)=>{const r=x,{transform:[i,a,u],panZoom:s}=e[r(371)]();return s?(await s[r(1539)]({x:t.x??i,y:t.y??a,zoom:t[r(734)]??u},o),Promise[r(923)](!0)):Promise[r(923)](!1)},getViewport:()=>{const[t,o,r]=e.getState().transform;return{x:t,y:o,zoom:r}},setCenter:async(t,o,r)=>e.getState().setCenter(t,o,r),fitBounds:async(t,o)=>{const r=x,{width:i,height:a,minZoom:u,maxZoom:s,panZoom:f}=e[r(371)](),l=Hx(t,i,a,u,s,o?.[r(991)]??.1);return f?(await f[r(1539)](l,{duration:o?.[r(794)],ease:o?.[r(1260)],interpolate:o?.[r(1175)]}),Promise[r(923)](!0)):Promise[r(923)](!1)},screenToFlowPosition:(t,o={})=>{const r=x,{transform:i,snapGrid:a,snapToGrid:u,domNode:s}=e[r(371)]();if(!s)return t;const{x:f,y:l}=s[r(202)](),g={x:t.x-f,y:t.y-l},b=o[r(380)]??a,h=o[r(1153)]??u;return Gn(g,i,h,b)},flowToScreenPosition:t=>{const o=x,{transform:r,domNode:i}=e[o(371)]();if(!i)return t;const{x:a,y:u}=i[o(202)](),s=Lt(t,r);return{x:s.x+a,y:s.y+u}}}},[])};function Ia(n,e){const x=c,t=[],o=new Map,r=[];for(const i of n)if(i[x(871)]===x(654)){r.push(i);continue}else if(i[x(871)]===x(229)||i[x(871)]==="replace")o[x(1527)](i.id,[i]);else{const a=o[x(1386)](i.id);a?a.push(i):o[x(1527)](i.id,[i])}for(const i of e){const a=o[x(1386)](i.id);if(!a){t.push(i);continue}if(a[0][x(871)]===x(229))continue;if(a[0][x(871)]===x(673)){t[x(268)]({...a[0].item});continue}const u={...i};for(const s of a)i5(s,u);t[x(268)](u)}return r[x(1849)]&&r[x(1726)](i=>{const a=x;i.index!==void 0?t[a(1020)](i[a(470)],0,{...i[a(150)]}):t[a(268)]({...i[a(150)]})}),t}function i5(n,e){const x=c;switch(n.type){case x(1463):{e[x(500)]=n[x(500)];break}case x(1748):{typeof n[x(1748)]!==x(1821)&&(e[x(1748)]=n[x(1748)]),typeof n[x(874)]!==x(1821)&&(e.dragging=n.dragging);break}case x(799):{typeof n[x(799)]!==x(1821)&&(e[x(1403)]={...n[x(799)]},n[x(247)]&&((n[x(247)]===!0||n[x(247)]===x(531))&&(e[x(531)]=n.dimensions[x(531)]),(n[x(247)]===!0||n.setAttributes==="height")&&(e[x(1348)]=n[x(799)][x(1348)]))),typeof n[x(676)]===x(724)&&(e[x(676)]=n[x(676)]);break}}}function Aa(n,e){return Ia(n,e)}function ja(n,e){return Ia(n,e)}function P0(n,e){return{id:n,type:c(1463),selected:e}}function K0(n,e=new Set,x=!1){const t=c,o=[];for(const[r,i]of n){const a=e[t(632)](r);!(i.selected===void 0&&!a)&&i[t(500)]!==a&&(x&&(i[t(500)]=a),o.push(P0(i.id,a)))}return o}function gr({items:n=[],lookup:e}){const x=c,t=[],o=new Map(n[x(1197)](r=>[r.id,r]));for(const[r,i]of n[x(1676)]()){const a=e[x(1386)](i.id),u=a?.[x(1350)]?.userNode??a;u!==void 0&&u!==i&&t[x(268)]({id:i.id,item:i,type:"replace"}),u===void 0&&t[x(268)]({item:i,type:x(654),index:r})}for(const[r]of e)o[x(1386)](r)===void 0&&t[x(268)]({id:r,type:x(229)});return t}function yr(n){const e=c;return{id:n.id,type:e(229)}}const mr=n=>Ef(n),a5=n=>$i(n);function Ya(n){return P.forwardRef(n)}function vr(n){const e=c,[x,t]=P.useState(BigInt(0)),[o]=P[e(280)](()=>c5(()=>t(r=>r+BigInt(1))));return zx(()=>{const r=e,i=o.get();i[r(1849)]&&(n(i),o[r(1167)]())},[x]),o}function c5(n){let e=[];return{get:()=>e,reset:()=>{e=[]},push:x=>{e[I(268)](x),n()}}}const ka=P[c(919)](null);function s5({children:n}){const e=c,x=Ne(),t=P.useCallback(u=>{const s=I,{nodes:f=[],setNodes:l,hasDefaultNodes:g,onNodesChange:b,nodeLookup:h,fitViewQueued:y,onNodesChangeMiddlewareMap:v}=x[s(371)]();let w=f;for(const m of u)w=typeof m=="function"?m(w):m;let M=gr({items:w,lookup:h});for(const m of v[s(1404)]())M=m(M);g&&l(w),M[s(1849)]>0?b?.(M):y&&window[s(342)](()=>{const{fitViewQueued:m,nodes:C,setNodes:p}=x.getState();m&&p(C)})},[]),o=vr(t),r=P[e(275)](u=>{const s=e,{edges:f=[],setEdges:l,hasDefaultEdges:g,onEdgesChange:b,edgeLookup:h}=x[s(371)]();let y=f;for(const v of u)y=typeof v===s(842)?v(y):v;g?l(y):b&&b(gr({items:y,lookup:h}))},[]),i=vr(r),a=P.useMemo(()=>({nodeQueue:o,edgeQueue:i}),[]);return d.jsx(ka.Provider,{value:a,children:n})}function l5(){const n=c,e=P[n(835)](ka);if(!e)throw new Error(n(1208));return e}const d5=n=>!!n.panZoom;function Zx(){const n=c,e=r5(),x=Ne(),t=l5(),o=ze(d5),r=P[n(1341)](()=>{const i=n,a=b=>x[i(371)]()[i(1388)].get(b),u=b=>{const h=i;t.nodeQueue[h(268)](b)},s=b=>{const h=i;t[h(1326)][h(268)](b)},f=b=>{const h=i,{nodeLookup:y,nodeOrigin:v}=x[h(371)](),w=mr(b)?b:y[h(1386)](b.id),M=w[h(1772)]?ia(w[h(1748)],w.measured,w[h(1772)],y,v):w[h(1748)],m={...w,position:M,width:w[h(1403)]?.[h(531)]??w.width,height:w[h(1403)]?.[h(1348)]??w.height};return on(m)},l=(b,h,y={replace:!1})=>{const v=i;u(w=>w[v(1197)](M=>{const m=v;if(M.id===b){const C=typeof h=="function"?h(M):h;return y[m(673)]&&mr(C)?C:{...M,...C}}return M}))},g=(b,h,y={replace:!1})=>{s(v=>v.map(w=>{const M=I;if(w.id===b){const m=typeof h===M(842)?h(w):h;return y[M(673)]&&a5(m)?m:{...w,...m}}return w}))};return{getNodes:()=>x[i(371)]()[i(307)][i(1197)](b=>({...b})),getNode:b=>a(b)?.[i(1350)][i(426)],getInternalNode:a,getEdges:()=>{const b=i,{edges:h=[]}=x.getState();return h[b(1197)](y=>({...y}))},getEdge:b=>x[i(371)]()[i(944)].get(b),setNodes:u,setEdges:s,addNodes:b=>{const h=i,y=Array[h(171)](b)?b:[b];t[h(439)][h(268)](v=>[...v,...y])},addEdges:b=>{const h=i,y=Array.isArray(b)?b:[b];t[h(1326)].push(v=>[...v,...y])},toObject:()=>{const b=i,{nodes:h=[],edges:y=[],transform:v}=x[b(371)](),[w,M,m]=v;return{nodes:h[b(1197)](C=>({...C})),edges:y.map(C=>({...C})),viewport:{x:w,y:M,zoom:m}}},deleteElements:async({nodes:b=[],edges:h=[]})=>{const y=i,{nodes:v,edges:w,onNodesDelete:M,onEdgesDelete:m,triggerNodeChanges:C,triggerEdgeChanges:p,onDelete:E,onBeforeDelete:O}=x[y(371)](),{nodes:U,edges:Y}=await kf({nodesToRemove:b,edgesToRemove:h,nodes:v,edges:w,onBeforeDelete:O}),W=Y[y(1849)]>0,Q=U[y(1849)]>0;if(W){const R=Y[y(1197)](yr);m?.(Y),p(R)}if(Q){const R=U[y(1197)](yr);M?.(U),C(R)}return(Q||W)&&E?.({nodes:U,edges:Y}),{deletedNodes:U,deletedEdges:Y}},getIntersectingNodes:(b,h=!0,y)=>{const v=i,w=_o(b),M=w?b:f(b),m=y!==void 0;return M?(y||x.getState()[v(307)]).filter(C=>{const p=v,E=x[p(371)]()[p(1388)][p(1386)](C.id);if(E&&!w&&(C.id===b.id||!E.internals[p(1583)]))return!1;const O=on(m?C:E),U=In(O,M);return h&&U>0||U>=O.width*O.height||U>=M[p(531)]*M.height}):[]},isNodeIntersecting:(b,h,y=!0)=>{const v=i,w=_o(b),M=w?b:f(b);if(!M)return!1;const m=In(M,h);return y&&m>0||m>=h.width*h.height||m>=M[v(531)]*M[v(1348)]},updateNode:l,updateNodeData:(b,h,y={replace:!1})=>{l(b,v=>{const w=I,M=typeof h===w(842)?h(v):h;return y.replace?{...v,data:M}:{...v,data:{...v[w(773)],...M}}},y)},updateEdge:g,updateEdgeData:(b,h,y={replace:!1})=>{g(b,v=>{const w=I,M=typeof h=="function"?h(v):h;return y.replace?{...v,data:M}:{...v,data:{...v[w(773)],...M}}},y)},getNodesBounds:b=>{const h=i,{nodeLookup:y,nodeOrigin:v}=x[h(371)]();return If(b,{nodeLookup:y,nodeOrigin:v})},getHandleConnections:({type:b,id:h,nodeId:y})=>Array[i(1763)](x[i(371)]()[i(960)][i(1386)](y+"-"+b+(h?"-"+h:""))?.[i(1404)]()??[]),getNodeConnections:({type:b,handleId:h,nodeId:y})=>Array[i(1763)](x[i(371)]()[i(960)][i(1386)](""+y+(b?h?"-"+b+"-"+h:"-"+b:""))?.[i(1404)]()??[]),fitView:async b=>{const h=i,y=x[h(371)]().fitViewResolver??Tf();return x[h(637)]({fitViewQueued:!0,fitViewOptions:b,fitViewResolver:y}),t.nodeQueue.push(v=>[...v]),y[h(1344)]}}},[]);return P.useMemo(()=>({...r,...e,viewportInitialized:o}),[o])}const wr=n=>n[c(500)],u5=typeof window<"u"?window:void 0;function f5({deleteKeyCode:n,multiSelectionKeyCode:e}){const x=c,t=Ne(),{deleteElements:o}=Zx(),r=jn(n,{actInsideInputWithModifier:!1}),i=jn(e,{target:u5});P.useEffect(()=>{const a=I;if(r){const{edges:u,nodes:s}=t[a(371)]();o({nodes:s.filter(wr),edges:u[a(805)](wr)}),t[a(637)]({nodesSelectionActive:!1})}},[r]),P[x(1189)](()=>{t.setState({multiSelectionActive:i})},[i])}function h5(n){const e=Ne();P.useEffect(()=>{const x=I,t=()=>{const o=I;if(!n[o(532)]||!(n.current[o(1379)]?.()??!0))return!1;const r=_x(n.current);(r[o(1348)]===0||r[o(531)]===0)&&e[o(371)]()[o(158)]?.(o(396),qe.error004()),e[o(637)]({width:r[o(531)]||500,height:r[o(1348)]||500})};if(n[x(532)]){t(),window[x(423)](x(1548),t);const o=new ResizeObserver(()=>t());return o.observe(n[x(532)]),()=>{const r=x;window[r(1558)](r(1548),t),o&&n[r(532)]&&o[r(557)](n[r(532)])}}},[])}const Gt={position:c(638),width:c(1322),height:"100%",top:0,left:0},b5=n=>({userSelectionActive:n[c(1295)],lib:n[c(1205)],connectionInProgress:n[c(148)].inProgress});function g5({onPaneContextMenu:n,zoomOnScroll:e=!0,zoomOnPinch:x=!0,panOnScroll:t=!1,panOnScrollSpeed:o=.5,panOnScrollMode:r=A0[c(988)],zoomOnDoubleClick:i=!0,panOnDrag:a=!0,defaultViewport:u,translateExtent:s,minZoom:f,maxZoom:l,zoomActivationKeyCode:g,preventScrolling:b=!0,children:h,noWheelClassName:y,noPanClassName:v,onViewportChange:w,isControlledViewport:M,paneClickDistance:m,selectionOnDrag:C}){const p=c,E=Ne(),O=P[p(1142)](null),{userSelectionActive:U,lib:Y,connectionInProgress:W}=ze(b5,Le),Q=jn(g),R=P[p(1142)]();h5(O);const X=P[p(275)](V=>{const L=p;w?.({x:V[0],y:V[1],zoom:V[2]}),!M&&E[L(637)]({transform:V})},[w,M]);return P.useEffect(()=>{const V=p;if(O[V(532)]){R[V(532)]=p2({domNode:O[V(532)],minZoom:f,maxZoom:l,translateExtent:s,viewport:u,onDraggingChange:j=>E[V(637)](A=>A.paneDragging===j?A:{paneDragging:j}),onPanZoomStart:(j,A)=>{const{onViewportChangeStart:S,onMoveStart:Z}=E.getState();Z?.(j,A),S?.(A)},onPanZoom:(j,A)=>{const{onViewportChange:S,onMove:Z}=E.getState();Z?.(j,A),S?.(A)},onPanZoomEnd:(j,A)=>{const S=V,{onViewportChangeEnd:Z,onMoveEnd:K}=E[S(371)]();K?.(j,A),Z?.(A)}});const{x:L,y:D,zoom:B}=R[V(532)][V(809)]();return E[V(637)]({panZoom:R[V(532)],transform:[L,D,B],domNode:O[V(532)][V(1125)](".react-flow")}),()=>{R.current?.destroy()}}},[]),P[p(1189)](()=>{const V=p;R.current?.[V(1148)]({onPaneContextMenu:n,zoomOnScroll:e,zoomOnPinch:x,panOnScroll:t,panOnScrollSpeed:o,panOnScrollMode:r,zoomOnDoubleClick:i,panOnDrag:a,zoomActivationKeyPressed:Q,preventScrolling:b,noPanClassName:v,userSelectionActive:U,noWheelClassName:y,lib:Y,onTransformChange:X,connectionInProgress:W,selectionOnDrag:C,paneClickDistance:m})},[n,e,x,t,o,r,i,a,Q,b,v,U,y,Y,X,W,C,m]),d[p(1203)](p(315),{className:p(1800),ref:O,style:Gt,children:h})}const y5=n=>({userSelectionActive:n.userSelectionActive,userSelectionRect:n[c(1096)]});function m5(){const n=c,{userSelectionActive:e,userSelectionRect:x}=ze(y5,Le);return e&&x?d.jsx(n(315),{className:n(1709),style:{width:x[n(531)],height:x[n(1348)],transform:n(207)+x.x+"px, "+x.y+"px)"}}):null}const xx=(n,e)=>x=>{const t=I;x[t(1122)]===e[t(532)]&&n?.(x)},v5=n=>({userSelectionActive:n[c(1295)],elementsSelectable:n[c(1367)],connectionInProgress:n[c(148)].inProgress,dragging:n[c(778)]});function w5({isSelecting:n,selectionKeyPressed:e,selectionMode:x=En[c(1325)],panOnDrag:t,paneClickDistance:o,selectionOnDrag:r,onSelectionStart:i,onSelectionEnd:a,onPaneClick:u,onPaneContextMenu:s,onPaneScroll:f,onPaneMouseEnter:l,onPaneMouseMove:g,onPaneMouseLeave:b,children:h}){const y=c,v=Ne(),{userSelectionActive:w,elementsSelectable:M,dragging:m,connectionInProgress:C}=ze(v5,Le),p=M&&(n||w),E=P[y(1142)](null),O=P[y(1142)](),U=P[y(1142)](new Set),Y=P.useRef(new Set),W=P[y(1142)](!1),Q=A=>{const S=y;if(W.current||C){W[S(532)]=!1;return}u?.(A),v.getState()[S(672)](),v[S(637)]({nodesSelectionActive:!1})},R=A=>{const S=y;if(Array[S(171)](t)&&t?.[S(617)](2)){A[S(550)]();return}s?.(A)},X=f?A=>f(A):void 0,V=A=>{const S=y;W[S(532)]&&(A[S(1815)](),W[S(532)]=!1)},L=A=>{const S=y,{domNode:Z}=v.getState();if(O[S(532)]=Z?.[S(202)](),!O[S(532)])return;const K=A[S(1122)]===E[S(532)];if(!K&&!!A[S(1122)][S(1125)](S(1519))||!n||!(r&&K||e)||A[S(1141)]!==0||!A[S(1278)])return;A[S(1122)]?.[S(803)]?.(A[S(1448)]),W[S(532)]=!1;const{x:ee,y:ne}=Je(A[S(711)],O[S(532)]);v[S(637)]({userSelectionRect:{width:0,height:0,startX:ee,startY:ne,x:ee,y:ne}}),!K&&(A[S(1815)](),A[S(550)]())},D=A=>{const S=y,{userSelectionRect:Z,transform:K,nodeLookup:H,edgeLookup:F,connectionLookup:ee,triggerNodeChanges:ne,triggerEdgeChanges:xe,defaultEdgeOptions:se,resetSelectedElements:ae}=v[S(371)]();if(!O[S(532)]||!Z)return;const{x:N,y:T}=Je(A[S(711)],O.current),{startX:J,startY:G}=Z;if(!W[S(532)]){const le=e?0:o;if(Math[S(331)](N-J,T-G)<=le)return;ae(),i?.(A)}W[S(532)]=!0;const k={startX:J,startY:G,x:N<J?N:J,y:T<G?T:G,width:Math.abs(N-J),height:Math[S(188)](T-G)},te=U.current,de=Y.current;U[S(532)]=new Set(Gx(H,k,K,x===En[S(1858)],!0)[S(1197)](le=>le.id)),Y[S(532)]=new Set;const ye=se?.[S(600)]??!0;for(const le of U[S(532)]){const be=ee[S(1386)](le);if(be)for(const{edgeId:we}of be[S(1404)]()){const pe=F[S(1386)](we);pe&&(pe[S(600)]??ye)&&Y[S(532)].add(we)}}if(!Vo(te,U[S(532)])){const le=K0(H,U[S(532)],!0);ne(le)}if(!Vo(de,Y.current)){const le=K0(F,Y[S(532)]);xe(le)}v[S(637)]({userSelectionRect:k,userSelectionActive:!0,nodesSelectionActive:!1})},B=A=>{const S=y;A[S(1141)]===0&&(A[S(1122)]?.releasePointerCapture?.(A[S(1448)]),!w&&A[S(1122)]===E[S(532)]&&v[S(371)]().userSelectionRect&&Q?.(A),v[S(637)]({userSelectionActive:!1,userSelectionRect:null}),W[S(532)]&&(a?.(A),v[S(637)]({nodesSelectionActive:U.current[S(949)]>0})))},j=t===!0||Array[y(171)](t)&&t[y(617)](0);return d[y(1324)]("div",{className:Ee(["react-flow__pane",{draggable:j,dragging:m,selection:n}]),onClick:p?void 0:xx(Q,E),onContextMenu:xx(R,E),onWheel:xx(X,E),onPointerEnter:p?void 0:l,onPointerMove:p?D:g,onPointerUp:p?B:void 0,onPointerDownCapture:p?L:void 0,onClickCapture:p?V:void 0,onPointerLeave:b,ref:E,style:Gt,children:[h,d[y(1203)](m5,{})]})}function Mx({id:n,store:e,unselect:x=!1,nodeRef:t}){const o=c,{addSelectedNodes:r,unselectNodesAndEdges:i,multiSelectionActive:a,nodeLookup:u,onError:s}=e[o(371)](),f=u[o(1386)](n);if(!f){s?.(o(1611),qe.error012(n));return}e[o(637)]({nodesSelectionActive:!1}),f[o(500)]?(x||f[o(500)]&&a)&&(i({nodes:[f],edges:[]}),requestAnimationFrame(()=>t?.[o(532)]?.[o(634)]())):r([n])}function Oa({nodeRef:n,disabled:e=!1,noDragClassName:x,handleSelector:t,nodeId:o,isSelectable:r,nodeClickDistance:i}){const a=c,u=Ne(),[s,f]=P[a(280)](!1),l=P[a(1142)]();return P.useEffect(()=>{const g=a;l[g(532)]=a2({getStoreItems:()=>u[g(371)](),onNodeMouseDown:b=>{Mx({id:b,store:u,nodeRef:n})},onDragStart:()=>{f(!0)},onDragStop:()=>{f(!1)}})},[]),P[a(1189)](()=>{const g=a;if(!(e||!n[g(532)]||!l[g(532)]))return l[g(532)][g(1148)]({noDragClassName:x,handleSelector:t,domNode:n.current,isSelectable:r,nodeId:o,nodeClickDistance:i}),()=>{const b=g;l[b(532)]?.[b(466)]()}},[x,t,e,r,n,o,i]),s}const p5=n=>e=>e[c(500)]&&(e[c(1319)]||n&&typeof e[c(1319)]===c(1821));function Ua(){const n=c,e=Ne();return P[n(275)](t=>{const o=n,{nodeExtent:r,snapToGrid:i,snapGrid:a,nodesDraggable:u,onError:s,updateNodePositions:f,nodeLookup:l,nodeOrigin:g}=e[o(371)](),b=new Map,h=p5(u),y=i?a[0]:5,v=i?a[1]:5,w=t[o(1051)].x*y*t[o(869)],M=t[o(1051)].y*v*t[o(869)];for(const[,m]of l){if(!h(m))continue;let C={x:m[o(1350)][o(1583)].x+w,y:m[o(1350)][o(1583)].y+M};i&&(C=Tn(C,a));const{position:p,positionAbsolute:E}=ea({nodeId:m.id,nextPosition:C,nodeLookup:l,nodeExtent:r,nodeOrigin:g,onError:s});m[o(1748)]=p,m.internals[o(1583)]=E,b[o(1527)](m.id,m)}f(b)},[])}const Rx=P[c(919)](null),C5=Rx[c(1479)];Rx.Consumer;const Ta=()=>P.useContext(Rx),z5=n=>({connectOnClick:n.connectOnClick,noPanClassName:n[c(1285)],rfId:n[c(477)]}),M5=(n,e,x)=>t=>{const o=c,{connectionClickStartHandle:r,connectionMode:i,connection:a}=t,{fromHandle:u,toHandle:s,isValid:f}=a,l=s?.nodeId===n&&s?.id===e&&s?.[o(871)]===x;return{connectingFrom:u?.nodeId===n&&u?.id===e&&u?.[o(871)]===x,connectingTo:l,clickConnecting:r?.[o(369)]===n&&r?.id===e&&r?.[o(871)]===x,isPossibleEndHandle:i===tn[o(1689)]?u?.type!==x:n!==u?.nodeId||e!==u?.id,connectionInProcess:!!u,clickConnectionInProcess:!!r,valid:l&&f}};function B5({type:n=c(344),position:e=fe[c(876)],isValidConnection:x,isConnectable:t=!0,isConnectableStart:o=!0,isConnectableEnd:r=!0,id:i,onConnect:a,children:u,className:s,onMouseDown:f,onTouchStart:l,...g},b){const h=c,y=i||null,v=n===h(1122),w=Ne(),M=Ta(),{connectOnClick:m,noPanClassName:C,rfId:p}=ze(z5,Le),{connectingFrom:E,connectingTo:O,clickConnecting:U,isPossibleEndHandle:Y,connectionInProcess:W,clickConnectionInProcess:Q,valid:R}=ze(M5(M,y,n),Le);!M&&w[h(371)]()[h(158)]?.("010",qe[h(1608)]());const X=D=>{const B=h,{defaultEdgeOptions:j,onConnect:A,hasDefaultEdges:S}=w[B(371)](),Z={...j,...D};if(S){const{edges:K,setEdges:H}=w[B(371)]();H(fa(Z,K))}A?.(Z),a?.(Z)},V=D=>{const B=h;if(!M)return;const j=sa(D[B(711)]);if(o&&(j&&D[B(1141)]===0||!j)){const A=w[B(371)]();Cx.onPointerDown(D.nativeEvent,{handleDomNode:D[B(186)],autoPanOnConnect:A[B(813)],connectionMode:A[B(1690)],connectionRadius:A[B(1064)],domNode:A[B(166)],nodeLookup:A[B(1388)],lib:A[B(1205)],isTarget:v,handleId:y,nodeId:M,flowId:A[B(477)],panBy:A[B(402)],cancelConnection:A[B(1481)],onConnectStart:A[B(1621)],onConnectEnd:(...S)=>w[B(371)]()[B(822)]?.(...S),updateConnection:A[B(1810)],onConnect:X,isValidConnection:x||((...S)=>w[B(371)]().isValidConnection?.(...S)??!0),getTransform:()=>w.getState()[B(1115)],getFromHandle:()=>w[B(371)]()[B(148)].fromHandle,autoPanSpeed:A[B(1265)],dragThreshold:A[B(1789)]})}j?f?.(D):l?.(D)},L=D=>{const B=h,{onClickConnectStart:j,onClickConnectEnd:A,connectionClickStartHandle:S,connectionMode:Z,isValidConnection:K,lib:H,rfId:F,nodeLookup:ee,connection:ne}=w[B(371)]();if(!M||!S&&!o)return;if(!S){j?.(D[B(711)],{nodeId:M,handleId:y,handleType:n}),w.setState({connectionClickStartHandle:{nodeId:M,type:n,id:y}});return}const xe=aa(D[B(1122)]),se=x||K,{connection:ae,isValid:N}=Cx[B(1136)](D[B(711)],{handle:{nodeId:M,id:y,type:n},connectionMode:Z,fromNodeId:S[B(369)],fromHandleId:S.id||null,fromType:S.type,isValidConnection:se,flowId:F,doc:xe,lib:H,nodeLookup:ee});N&&ae&&X(ae);const T=structuredClone(ne);delete T.inProgress,T[B(833)]=T[B(1679)]?T[B(1679)][B(1748)]:null,A?.(D,T),w[B(637)]({connectionClickStartHandle:null})};return d[h(1203)](h(315),{"data-handleid":y,"data-nodeid":M,"data-handlepos":e,"data-id":p+"-"+M+"-"+y+"-"+n,className:Ee([h(463),h(1517)+e,h(1015),C,s,{source:!v,target:v,connectable:t,connectablestart:o,connectableend:r,clickconnecting:U,connectingfrom:E,connectingto:O,valid:R,connectionindicator:t&&(!W||Y)&&(W||Q?r:o)}]),onMouseDown:V,onTouchStart:V,onClick:m?L:void 0,ref:b,...g,children:u})}const cn=P[c(811)](Ya(B5));function D5({data:n,isConnectable:e,sourcePosition:x=fe[c(274)]}){const t=c;return d.jsxs(d[t(1123)],{children:[n?.label,d.jsx(cn,{type:t(344),position:x,isConnectable:e})]})}function L5({data:n,isConnectable:e,targetPosition:x=fe[c(876)],sourcePosition:t=fe.Bottom}){const o=c;return d[o(1324)](d[o(1123)],{children:[d[o(1203)](cn,{type:o(1122),position:x,isConnectable:e}),n?.[o(453)],d.jsx(cn,{type:o(344),position:t,isConnectable:e})]})}function N5(){return null}function S5({data:n,isConnectable:e,targetPosition:x=fe.Top}){const t=c;return d[t(1324)](d[t(1123)],{children:[d[t(1203)](cn,{type:t(1122),position:x,isConnectable:e}),n?.[t(453)]]})}const St={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},pr={input:D5,default:L5,output:S5,group:N5};function P5(n){const e=c;return n.internals[e(1649)]===void 0?{width:n[e(531)]??n[e(1786)]??n[e(165)]?.[e(531)],height:n.height??n[e(1158)]??n[e(165)]?.[e(1348)]}:{width:n[e(531)]??n[e(165)]?.[e(531)],height:n[e(1348)]??n[e(165)]?.height}}const E5=n=>{const e=c,{width:x,height:t,x:o,y:r}=Un(n[e(1388)],{filter:i=>!!i[e(500)]});return{width:Re(x)?x:null,height:Re(t)?t:null,userSelectionActive:n[e(1295)],transformString:e(207)+n[e(1115)][0]+e(299)+n.transform[1]+e(888)+n[e(1115)][2]+e(1154)+o+"px,"+r+e(345)}};function I5({onSelectionContextMenu:n,noPanClassName:e,disableKeyboardA11y:x}){const t=c,o=Ne(),{width:r,height:i,transformString:a,userSelectionActive:u}=ze(E5,Le),s=Ua(),f=P[t(1142)](null);P.useEffect(()=>{!x&&f[t(532)]?.focus({preventScroll:!0})},[x]);const l=!u&&r!==null&&i!==null;if(Oa({nodeRef:f,disabled:!l}),!l)return null;const g=n?h=>{const y=t,v=o[y(371)]()[y(307)][y(805)](w=>w[y(500)]);n(h,v)}:void 0,b=h=>{const y=t;Object[y(985)].hasOwnProperty[y(1754)](St,h[y(420)])&&(h[y(550)](),s({direction:St[h[y(420)]],factor:h[y(1791)]?4:1}))};return d[t(1203)]("div",{className:Ee([t(1378),t(1537),e]),style:{transform:a},children:d[t(1203)]("div",{ref:f,className:t(468),onContextMenu:g,tabIndex:x?void 0:-1,onKeyDown:x?void 0:b,style:{width:r,height:i}})})}const Cr=typeof window!==c(1821)?window:void 0,A5=n=>({nodesSelectionActive:n[c(571)],userSelectionActive:n.userSelectionActive});function Ga({children:n,onPaneClick:e,onPaneMouseEnter:x,onPaneMouseMove:t,onPaneMouseLeave:o,onPaneContextMenu:r,onPaneScroll:i,paneClickDistance:a,deleteKeyCode:u,selectionKeyCode:s,selectionOnDrag:f,selectionMode:l,onSelectionStart:g,onSelectionEnd:b,multiSelectionKeyCode:h,panActivationKeyCode:y,zoomActivationKeyCode:v,elementsSelectable:w,zoomOnScroll:M,zoomOnPinch:m,panOnScroll:C,panOnScrollSpeed:p,panOnScrollMode:E,zoomOnDoubleClick:O,panOnDrag:U,defaultViewport:Y,translateExtent:W,minZoom:Q,maxZoom:R,preventScrolling:X,onSelectionContextMenu:V,noWheelClassName:L,noPanClassName:D,disableKeyboardA11y:B,onViewportChange:j,isControlledViewport:A}){const S=c,{nodesSelectionActive:Z,userSelectionActive:K}=ze(A5,Le),H=jn(s,{target:Cr}),F=jn(y,{target:Cr}),ee=F||U,ne=F||C,xe=f&&ee!==!0,se=H||K||xe;return f5({deleteKeyCode:u,multiSelectionKeyCode:h}),d.jsx(g5,{onPaneContextMenu:r,elementsSelectable:w,zoomOnScroll:M,zoomOnPinch:m,panOnScroll:ne,panOnScrollSpeed:p,panOnScrollMode:E,zoomOnDoubleClick:O,panOnDrag:!H&&ee,defaultViewport:Y,translateExtent:W,minZoom:Q,maxZoom:R,zoomActivationKeyCode:v,preventScrolling:X,noWheelClassName:L,noPanClassName:D,onViewportChange:j,isControlledViewport:A,paneClickDistance:a,selectionOnDrag:xe,children:d[S(1324)](w5,{onSelectionStart:g,onSelectionEnd:b,onPaneClick:e,onPaneMouseEnter:x,onPaneMouseMove:t,onPaneMouseLeave:o,onPaneContextMenu:r,onPaneScroll:i,panOnDrag:ee,isSelecting:!!se,selectionMode:l,selectionKeyPressed:H,paneClickDistance:a,selectionOnDrag:xe,children:[n,Z&&d[S(1203)](I5,{onSelectionContextMenu:V,noPanClassName:D,disableKeyboardA11y:B})]})})}Ga.displayName=c(139);const j5=P.memo(Ga),Y5=n=>e=>{const x=c;return n?Gx(e[x(1388)],{x:0,y:0,width:e.width,height:e[x(1348)]},e[x(1115)],!0)[x(1197)](t=>t.id):Array.from(e[x(1388)].keys())};function k5(n){return ze(P[c(275)](Y5(n),[n]),Le)}const O5=n=>n[c(1156)];function U5(){const n=c,e=ze(O5),[x]=P[n(280)](()=>typeof ResizeObserver>"u"?null:new ResizeObserver(t=>{const o=I,r=new Map;t[o(1726)](i=>{const a=o,u=i.target.getAttribute("data-id");r[a(1527)](u,{id:u,nodeElement:i[a(1122)],force:!0})}),e(r)}));return P[n(1189)](()=>()=>{x?.[I(1306)]()},[x]),x}function T5({node:n,nodeType:e,hasDimensions:x,resizeObserver:t}){const o=c,r=Ne(),i=P[o(1142)](null),a=P[o(1142)](null),u=P.useRef(n.sourcePosition),s=P[o(1142)](n[o(1269)]),f=P[o(1142)](e),l=x&&!!n[o(1350)][o(1649)];return P[o(1189)](()=>{const g=o;i[g(532)]&&!n[g(197)]&&(!l||a.current!==i[g(532)])&&(a[g(532)]&&t?.[g(557)](a.current),t?.observe(i[g(532)]),a[g(532)]=i[g(532)])},[l,n[o(197)]]),P.useEffect(()=>()=>{const g=I;a[g(532)]&&(t?.[g(557)](a[g(532)]),a.current=null)},[]),P[o(1189)](()=>{const g=o;if(i[g(532)]){const b=f.current!==e,h=u[g(532)]!==n[g(1706)],y=s.current!==n[g(1269)];(b||h||y)&&(f.current=e,u[g(532)]=n[g(1706)],s[g(532)]=n[g(1269)],r[g(371)]().updateNodeInternals(new Map([[n.id,{id:n.id,nodeElement:i[g(532)],force:!0}]])))}},[n.id,e,n[o(1706)],n[o(1269)]]),i}function G5({id:n,onClick:e,onMouseEnter:x,onMouseMove:t,onMouseLeave:o,onContextMenu:r,onDoubleClick:i,nodesDraggable:a,elementsSelectable:u,nodesConnectable:s,nodesFocusable:f,resizeObserver:l,noDragClassName:g,noPanClassName:b,disableKeyboardA11y:h,rfId:y,nodeTypes:v,nodeClickDistance:w,onError:M}){const m=c,{node:C,internals:p,isParent:E}=ze(ae=>{const N=I,T=ae[N(1388)][N(1386)](n),J=ae[N(1023)].has(n);return{node:T,internals:T.internals,isParent:J}},Le);let O=C[m(871)]||m(943),U=v?.[O]||pr[O];U===void 0&&(M?.(m(1776),qe[m(174)](O)),O="default",U=v?.[m(943)]||pr[m(943)]);const Y=!!(C[m(1319)]||a&&typeof C.draggable===m(1821)),W=!!(C[m(600)]||u&&typeof C[m(600)]===m(1821)),Q=!!(C[m(1652)]||s&&typeof C[m(1652)]===m(1821)),R=!!(C.focusable||f&&typeof C[m(559)]>"u"),X=Ne(),V=ra(C),L=T5({node:C,nodeType:O,hasDimensions:V,resizeObserver:l}),D=Oa({nodeRef:L,disabled:C[m(197)]||!Y,noDragClassName:g,handleSelector:C[m(660)],nodeId:n,isSelectable:W,nodeClickDistance:w}),B=Ua();if(C[m(197)])return null;const j=s0(C),A=P5(C),S=W||Y||e||x||t||o,Z=x?ae=>x(ae,{...p.userNode}):void 0,K=t?ae=>t(ae,{...p[m(426)]}):void 0,H=o?ae=>o(ae,{...p.userNode}):void 0,F=r?ae=>r(ae,{...p.userNode}):void 0,ee=i?ae=>i(ae,{...p[m(426)]}):void 0,ne=ae=>{const N=m,{selectNodesOnDrag:T,nodeDragThreshold:J}=X[N(371)]();W&&(!T||!Y||J>0)&&Mx({id:n,store:X,nodeRef:L}),e&&e(ae,{...p[N(426)]})},xe=ae=>{const N=m;if(!(ca(ae[N(711)])||h)){if(Ri.includes(ae[N(420)])&&W){const T=ae[N(420)]===N(1581);Mx({id:n,store:X,unselect:T,nodeRef:L})}else if(Y&&C[N(500)]&&Object[N(985)][N(507)].call(St,ae[N(420)])){ae[N(550)]();const{ariaLabelConfig:T}=X.getState();X[N(637)]({ariaLiveMessage:T[N(1058)]({direction:ae[N(420)][N(673)]("Arrow","")[N(472)](),x:~~p[N(1583)].x,y:~~p[N(1583)].y})}),B({direction:St[ae[N(420)]],factor:ae[N(1791)]?4:1})}}},se=()=>{const ae=m;if(h||!L[ae(532)]?.matches(ae(739)))return;const{transform:N,width:T,height:J,autoPanOnNodeFocus:G,setCenter:k}=X[ae(371)]();if(!G)return;!(Gx(new Map([[n,C]]),{x:0,y:0,width:T,height:J},N,!0)[ae(1849)]>0)&&k(C.position.x+j[ae(531)]/2,C.position.y+j[ae(1348)]/2,{zoom:N[2]})};return d[m(1203)]("div",{className:Ee(["react-flow__node",m(962)+O,{[b]:Y},C[m(766)],{selected:C.selected,selectable:W,parent:E,draggable:Y,dragging:D}]),ref:L,style:{zIndex:p.z,transform:m(207)+p[m(1583)].x+m(299)+p[m(1583)].y+m(345),pointerEvents:m(S?973:1473),visibility:m(V?1476:197),...C[m(165)],...A},"data-id":n,"data-testid":m(1454)+n,onMouseEnter:Z,onMouseMove:K,onMouseLeave:H,onContextMenu:F,onClick:ne,onDoubleClick:ee,onKeyDown:R?xe:void 0,tabIndex:R?0:void 0,onFocus:R?se:void 0,role:C[m(398)]??(R?m(898):void 0),"aria-roledescription":m(1802),"aria-describedby":h?void 0:Sa+"-"+y,"aria-label":C[m(152)],...C[m(147)],children:d.jsx(C5,{value:n,children:d[m(1203)](U,{id:n,data:C[m(773)],type:O,positionAbsoluteX:p[m(1583)].x,positionAbsoluteY:p.positionAbsolute.y,selected:C[m(500)]??!1,selectable:W,draggable:Y,deletable:C[m(1685)]??!0,isConnectable:Q,sourcePosition:C[m(1706)],targetPosition:C[m(1269)],dragging:D,dragHandle:C[m(660)],zIndex:p.z,parentId:C.parentId,...j})})})}var H5=P.memo(G5);const _5=n=>({nodesDraggable:n[c(691)],nodesConnectable:n[c(1630)],nodesFocusable:n.nodesFocusable,elementsSelectable:n[c(1367)],onError:n[c(158)]});function Ha(n){const e=c,{nodesDraggable:x,nodesConnectable:t,nodesFocusable:o,elementsSelectable:r,onError:i}=ze(_5,Le),a=k5(n[e(1079)]),u=U5();return d.jsx(e(315),{className:e(1176),style:Gt,children:a[e(1197)](s=>{const f=e;return d.jsx(H5,{id:s,nodeTypes:n[f(1760)],nodeExtent:n[f(618)],onClick:n.onNodeClick,onMouseEnter:n.onNodeMouseEnter,onMouseMove:n[f(1664)],onMouseLeave:n.onNodeMouseLeave,onContextMenu:n[f(1591)],onDoubleClick:n.onNodeDoubleClick,noDragClassName:n[f(1135)],noPanClassName:n.noPanClassName,rfId:n[f(477)],disableKeyboardA11y:n[f(1107)],resizeObserver:u,nodesDraggable:x,nodesConnectable:t,nodesFocusable:o,elementsSelectable:r,nodeClickDistance:n.nodeClickDistance,onError:i},s)})})}Ha[c(451)]="NodeRenderer";const V5=P[c(811)](Ha);function q5(n){return ze(P.useCallback(x=>{const t=I;if(!n)return x.edges[t(1197)](r=>r.id);const o=[];if(x.width&&x.height)for(const r of x[t(221)]){const i=x[t(1388)][t(1386)](r[t(344)]),a=x[t(1388)].get(r.target);i&&a&&Vf({sourceNode:i,targetNode:a,width:x.width,height:x.height,transform:x[t(1115)]})&&o[t(268)](r.id)}return o},[n]),Le)}const W5=({color:n=c(1473),strokeWidth:e=1})=>{const x=c,t={strokeWidth:e,...n&&{stroke:n}};return d.jsx(x(383),{className:x(756),style:t,strokeLinecap:x(983),fill:x(1473),strokeLinejoin:x(983),points:x(1222)})},X5=({color:n=c(1473),strokeWidth:e=1})=>{const x=c,t={strokeWidth:e,...n&&{stroke:n,fill:n}};return d[x(1203)](x(383),{className:"arrowclosed",style:t,strokeLinecap:x(983),strokeLinejoin:x(983),points:x(503)})},zr={[Bt[c(1117)]]:W5,[Bt[c(1729)]]:X5};function K5(n){const e=c,x=Ne();return P[e(1341)](()=>{const o=e;return Object.prototype[o(507)][o(1754)](zr,n)?zr[n]:(x.getState()[o(158)]?.("009",qe[o(554)](n)),null)},[n])}const Z5=({id:n,type:e,color:x,width:t=12.5,height:o=12.5,markerUnits:r=c(539),strokeWidth:i,orient:a=c(653)})=>{const u=c,s=K5(e);return s?d[u(1203)]("marker",{className:u(1006),id:n,markerWidth:""+t,markerHeight:""+o,viewBox:u(906),markerUnits:r,orient:a,refX:"0",refY:"0",children:d[u(1203)](s,{color:x,strokeWidth:i})}):null},_a=({defaultColor:n,rfId:e})=>{const x=c,t=ze(i=>i[x(221)]),o=ze(i=>i[x(1048)]),r=P.useMemo(()=>{const i=x;return Jf(t,{id:e,defaultColor:n,defaultMarkerStart:o?.[i(286)],defaultMarkerEnd:o?.[i(1495)]})},[t,o,e,n]);return r.length?d.jsx(x(1442),{className:x(1067),"aria-hidden":x(815),children:d[x(1203)](x(403),{children:r.map(i=>d[x(1203)](Z5,{id:i.id,type:i[x(871)],color:i.color,width:i.width,height:i[x(1348)],markerUnits:i[x(976)],strokeWidth:i.strokeWidth,orient:i[x(241)]},i.id))})}):null};_a[c(451)]="MarkerDefinitions";var R5=P[c(811)](_a);function Va({x:n,y:e,label:x,labelStyle:t,labelShowBg:o=!0,labelBgStyle:r,labelBgPadding:i=[2,4],labelBgBorderRadius:a=2,children:u,className:s,...f}){const l=c,[g,b]=P[l(280)]({x:1,y:0,width:0,height:0}),h=Ee([l(562),s]),y=P[l(1142)](null);return P[l(1189)](()=>{const v=l;if(y[v(532)]){const w=y[v(532)].getBBox();b({x:w.x,y:w.y,width:w[v(531)],height:w[v(1348)]})}},[x]),x?d[l(1324)]("g",{transform:l(207)+(n-g[l(531)]/2)+" "+(e-g[l(1348)]/2)+")",className:h,visibility:g[l(531)]?l(1476):l(197),...f,children:[o&&d[l(1203)](l(1819),{width:g.width+2*i[0],x:-i[0],y:-i[1],height:g[l(1348)]+2*i[1],className:l(1070),style:r,rx:a,ry:a}),d[l(1203)](l(969),{className:l(1012),y:g[l(1348)]/2,dy:l(1030),ref:y,style:t,children:x}),u]}):null}Va.displayName="EdgeText";const J5=P[c(811)](Va);function Ht({path:n,labelX:e,labelY:x,label:t,labelStyle:o,labelShowBg:r,labelBgStyle:i,labelBgPadding:a,labelBgBorderRadius:u,interactionWidth:s=20,...f}){const l=c;return d[l(1324)](d[l(1123)],{children:[d[l(1203)](l(1540),{...f,d:n,fill:"none",className:Ee([l(1232),f[l(766)]])}),s?d[l(1203)]("path",{d:n,fill:l(1473),strokeOpacity:0,strokeWidth:s,className:l(534)}):null,t&&Re(e)&&Re(x)?d.jsx(J5,{x:e,y:x,label:t,labelStyle:o,labelShowBg:r,labelBgStyle:i,labelBgPadding:a,labelBgBorderRadius:u}):null]})}function Mr({pos:n,x1:e,y1:x,x2:t,y2:o}){return n===fe.Left||n===fe.Right?[.5*(e+t),x]:[e,.5*(x+o)]}function qa({sourceX:n,sourceY:e,sourcePosition:x=fe[c(274)],targetX:t,targetY:o,targetPosition:r=fe.Top}){const[i,a]=Mr({pos:x,x1:n,y1:e,x2:t,y2:o}),[u,s]=Mr({pos:r,x1:t,y1:o,x2:n,y2:e}),[f,l,g,b]=la({sourceX:n,sourceY:e,targetX:t,targetY:o,sourceControlX:i,sourceControlY:a,targetControlX:u,targetControlY:s});return["M"+n+","+e+" C"+i+","+a+" "+u+","+s+" "+t+","+o,f,l,g,b]}function Wa(n){const e=c;return P[e(811)](({id:x,sourceX:t,sourceY:o,targetX:r,targetY:i,sourcePosition:a,targetPosition:u,label:s,labelStyle:f,labelShowBg:l,labelBgStyle:g,labelBgPadding:b,labelBgBorderRadius:h,style:y,markerEnd:v,markerStart:w,interactionWidth:M})=>{const m=e,[C,p,E]=qa({sourceX:t,sourceY:o,sourcePosition:a,targetX:r,targetY:i,targetPosition:u}),O=n[m(565)]?void 0:x;return d[m(1203)](Ht,{id:O,path:C,labelX:p,labelY:E,label:s,labelStyle:f,labelShowBg:l,labelBgStyle:g,labelBgPadding:b,labelBgBorderRadius:h,style:y,markerEnd:v,markerStart:w,interactionWidth:M})})}const F5=Wa({isInternal:!1}),Xa=Wa({isInternal:!0});F5[c(451)]=c(1793),Xa[c(451)]="SimpleBezierEdgeInternal";function Ka(n){const e=c;return P.memo(({id:x,sourceX:t,sourceY:o,targetX:r,targetY:i,label:a,labelStyle:u,labelShowBg:s,labelBgStyle:f,labelBgPadding:l,labelBgBorderRadius:g,style:b,sourcePosition:h=fe[e(274)],targetPosition:y=fe.Top,markerEnd:v,markerStart:w,pathOptions:M,interactionWidth:m})=>{const C=e,[p,E,O]=vx({sourceX:t,sourceY:o,sourcePosition:h,targetX:r,targetY:i,targetPosition:y,borderRadius:M?.[C(959)],offset:M?.[C(686)],stepPosition:M?.stepPosition}),U=n[C(565)]?void 0:x;return d[C(1203)](Ht,{id:U,path:p,labelX:E,labelY:O,label:a,labelStyle:u,labelShowBg:s,labelBgStyle:f,labelBgPadding:l,labelBgBorderRadius:g,style:b,markerEnd:v,markerStart:w,interactionWidth:m})})}const Za=Ka({isInternal:!1}),Ra=Ka({isInternal:!0});Za.displayName="SmoothStepEdge",Ra.displayName=c(1194);function Ja(n){const e=c;return P[e(811)](({id:x,...t})=>{const o=e,r=n[o(565)]?void 0:x;return d[o(1203)](Za,{...t,id:r,pathOptions:P.useMemo(()=>({borderRadius:0,offset:t[o(360)]?.[o(686)]}),[t.pathOptions?.[o(686)]])})})}const Q5=Ja({isInternal:!1}),Fa=Ja({isInternal:!0});Q5[c(451)]="StepEdge",Fa[c(451)]=c(1466);function Qa(n){return P[c(811)](({id:x,sourceX:t,sourceY:o,targetX:r,targetY:i,label:a,labelStyle:u,labelShowBg:s,labelBgStyle:f,labelBgPadding:l,labelBgBorderRadius:g,style:b,markerEnd:h,markerStart:y,interactionWidth:v})=>{const[w,M,m]=ha({sourceX:t,sourceY:o,targetX:r,targetY:i}),C=n.isInternal?void 0:x;return d.jsx(Ht,{id:C,path:w,labelX:M,labelY:m,label:a,labelStyle:u,labelShowBg:s,labelBgStyle:f,labelBgPadding:l,labelBgBorderRadius:g,style:b,markerEnd:h,markerStart:y,interactionWidth:v})})}const $5=Qa({isInternal:!1}),$a=Qa({isInternal:!0});$5.displayName=c(1441),$a.displayName=c(519);function ec(n){const e=c;return P[e(811)](({id:x,sourceX:t,sourceY:o,targetX:r,targetY:i,sourcePosition:a=fe[e(274)],targetPosition:u=fe[e(876)],label:s,labelStyle:f,labelShowBg:l,labelBgStyle:g,labelBgPadding:b,labelBgBorderRadius:h,style:y,markerEnd:v,markerStart:w,pathOptions:M,interactionWidth:m})=>{const C=e,[p,E,O]=da({sourceX:t,sourceY:o,sourcePosition:a,targetX:r,targetY:i,targetPosition:u,curvature:M?.[C(1335)]}),U=n[C(565)]?void 0:x;return d[C(1203)](Ht,{id:U,path:p,labelX:E,labelY:O,label:s,labelStyle:f,labelShowBg:l,labelBgStyle:g,labelBgPadding:b,labelBgBorderRadius:h,style:y,markerEnd:v,markerStart:w,interactionWidth:m})})}const e1=ec({isInternal:!1}),nc=ec({isInternal:!0});e1.displayName=c(260),nc[c(451)]=c(938);const Br={default:nc,straight:$a,step:Fa,smoothstep:Ra,simplebezier:Xa},Dr={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null},n1=(n,e,x)=>{const t=c;return x===fe.Left?n-e:x===fe[t(1566)]?n+e:n},t1=(n,e,x)=>{const t=c;return x===fe.Top?n-e:x===fe[t(274)]?n+e:n},Lr="react-flow__edgeupdater";function Nr({position:n,centerX:e,centerY:x,radius:t=10,onMouseDown:o,onMouseEnter:r,onMouseOut:i,type:a}){const u=c;return d[u(1203)](u(1620),{onMouseDown:o,onMouseEnter:r,onMouseOut:i,className:Ee([Lr,Lr+"-"+a]),cx:n1(e,t,n),cy:t1(x,t,n),r:t,stroke:u(759),fill:u(759)})}function x1({isReconnectable:n,reconnectRadius:e,edge:x,sourceX:t,sourceY:o,targetX:r,targetY:i,sourcePosition:a,targetPosition:u,onReconnect:s,onReconnectStart:f,onReconnectEnd:l,setReconnecting:g,setUpdateHover:b}){const h=c,y=Ne(),v=(p,E)=>{const O=I;if(p.button!==0)return;const{autoPanOnConnect:U,domNode:Y,connectionMode:W,connectionRadius:Q,lib:R,onConnectStart:X,cancelConnection:V,nodeLookup:L,rfId:D,panBy:B,updateConnection:j}=y.getState(),A=E[O(871)]===O(1122),S=(H,F)=>{const ee=O;g(!1),l?.(H,x,E[ee(871)],F)},Z=H=>s?.(x,H),K=(H,F)=>{const ee=O;g(!0),f?.(p,x,E[ee(871)]),X?.(H,F)};Cx.onPointerDown(p[O(711)],{autoPanOnConnect:U,connectionMode:W,connectionRadius:Q,domNode:Y,handleId:E.id,nodeId:E.nodeId,nodeLookup:L,isTarget:A,edgeUpdaterType:E[O(871)],lib:R,flowId:D,cancelConnection:V,panBy:B,isValidConnection:(...H)=>y[O(371)]().isValidConnection?.(...H)??!0,onConnect:Z,onConnectStart:K,onConnectEnd:(...H)=>y.getState().onConnectEnd?.(...H),onReconnectEnd:S,updateConnection:j,getTransform:()=>y[O(371)]()[O(1115)],getFromHandle:()=>y.getState()[O(148)][O(866)],dragThreshold:y.getState().connectionDragThreshold,handleDomNode:p[O(186)]})},w=p=>v(p,{nodeId:x.target,id:x[h(1014)]??null,type:h(1122)}),M=p=>v(p,{nodeId:x[h(344)],id:x[h(1749)]??null,type:h(344)}),m=()=>b(!0),C=()=>b(!1);return d[h(1324)](d[h(1123)],{children:[(n===!0||n==="source")&&d.jsx(Nr,{position:a,centerX:t,centerY:o,radius:e,onMouseDown:w,onMouseEnter:m,onMouseOut:C,type:h(344)}),(n===!0||n===h(1122))&&d.jsx(Nr,{position:u,centerX:r,centerY:i,radius:e,onMouseDown:M,onMouseEnter:m,onMouseOut:C,type:h(1122)})]})}function o1({id:n,edgesFocusable:e,edgesReconnectable:x,elementsSelectable:t,onClick:o,onDoubleClick:r,onContextMenu:i,onMouseEnter:a,onMouseMove:u,onMouseLeave:s,reconnectRadius:f,onReconnect:l,onReconnectStart:g,onReconnectEnd:b,rfId:h,edgeTypes:y,noPanClassName:v,onError:w,disableKeyboardA11y:M}){const m=c;let C=ze(G=>G[m(944)].get(n));const p=ze(G=>G.defaultEdgeOptions);C=p?{...p,...C}:C;let E=C[m(871)]||m(943),O=y?.[E]||Br[E];O===void 0&&(w?.(m(1533),qe[m(1512)](E)),E="default",O=y?.[m(943)]||Br.default);const U=!!(C[m(559)]||e&&typeof C[m(559)]===m(1821)),Y=typeof l!==m(1821)&&(C.reconnectable||x&&typeof C[m(1246)]===m(1821)),W=!!(C[m(600)]||t&&typeof C[m(600)]===m(1821)),Q=P[m(1142)](null),[R,X]=P.useState(!1),[V,L]=P.useState(!1),D=Ne(),{zIndex:B,sourceX:j,sourceY:A,targetX:S,targetY:Z,sourcePosition:K,targetPosition:H}=ze(P[m(275)](G=>{const k=m,te=G.nodeLookup[k(1386)](C[k(344)]),de=G[k(1388)].get(C[k(1122)]);if(!te||!de)return{zIndex:C[k(957)],...Dr};const ye=Rf({id:n,sourceNode:te,targetNode:de,sourceHandle:C[k(1749)]||null,targetHandle:C.targetHandle||null,connectionMode:G[k(1690)],onError:w});return{zIndex:_f({selected:C.selected,zIndex:C[k(957)],sourceNode:te,targetNode:de,elevateOnSelect:G[k(169)],zIndexMode:G.zIndexMode}),...ye||Dr}},[C.source,C[m(1122)],C[m(1749)],C[m(1014)],C[m(500)],C.zIndex]),Le),F=P[m(1341)](()=>C[m(286)]?m(1579)+wx(C.markerStart,h)+"')":void 0,[C[m(286)],h]),ee=P.useMemo(()=>C.markerEnd?m(1579)+wx(C.markerEnd,h)+"')":void 0,[C[m(1495)],h]);if(C[m(197)]||j===null||A===null||S===null||Z===null)return null;const ne=G=>{const k=m,{addSelectedEdges:te,unselectNodesAndEdges:de,multiSelectionActive:ye}=D[k(371)]();W&&(D[k(637)]({nodesSelectionActive:!1}),C[k(500)]&&ye?(de({nodes:[],edges:[C]}),Q[k(532)]?.[k(634)]()):te([n])),o&&o(G,C)},xe=r?G=>{r(G,{...C})}:void 0,se=i?G=>{i(G,{...C})}:void 0,ae=a?G=>{a(G,{...C})}:void 0,N=u?G=>{u(G,{...C})}:void 0,T=s?G=>{s(G,{...C})}:void 0,J=G=>{const k=m;if(!M&&Ri[k(617)](G[k(420)])&&W){const{unselectNodesAndEdges:te,addSelectedEdges:de}=D[k(371)]();G[k(420)]==="Escape"?(Q[k(532)]?.[k(634)](),te({edges:[C]})):de([n])}};return d[m(1203)](m(1442),{style:{zIndex:B},children:d[m(1324)]("g",{className:Ee([m(628),"react-flow__edge-"+E,C[m(766)],v,{selected:C[m(500)],animated:C[m(555)],inactive:!W&&!o,updating:R,selectable:W}]),onClick:ne,onDoubleClick:xe,onContextMenu:se,onMouseEnter:ae,onMouseMove:N,onMouseLeave:T,onKeyDown:U?J:void 0,tabIndex:U?0:void 0,role:C[m(398)]??m(U?898:1166),"aria-roledescription":m(354),"data-id":n,"data-testid":m(1257)+n,"aria-label":C.ariaLabel===null?void 0:C[m(152)]||m(761)+C[m(344)]+" to "+C[m(1122)],"aria-describedby":U?Pa+"-"+h:void 0,ref:Q,...C[m(147)],children:[!V&&d[m(1203)](O,{id:n,source:C[m(344)],target:C[m(1122)],type:C[m(871)],selected:C[m(500)],animated:C[m(555)],selectable:W,deletable:C.deletable??!0,label:C[m(453)],labelStyle:C.labelStyle,labelShowBg:C[m(567)],labelBgStyle:C[m(1374)],labelBgPadding:C[m(456)],labelBgBorderRadius:C[m(1155)],sourceX:j,sourceY:A,targetX:S,targetY:Z,sourcePosition:K,targetPosition:H,data:C[m(773)],style:C[m(165)],sourceHandleId:C[m(1749)],targetHandleId:C[m(1014)],markerStart:F,markerEnd:ee,pathOptions:"pathOptions"in C?C[m(360)]:void 0,interactionWidth:C[m(704)]}),Y&&d[m(1203)](x1,{edge:C,isReconnectable:Y,reconnectRadius:f,onReconnect:l,onReconnectStart:g,onReconnectEnd:b,sourceX:j,sourceY:A,targetX:S,targetY:Z,sourcePosition:K,targetPosition:H,setUpdateHover:X,setReconnecting:L})]})})}var r1=P[c(811)](o1);const i1=n=>({edgesFocusable:n.edgesFocusable,edgesReconnectable:n[c(1522)],elementsSelectable:n.elementsSelectable,connectionMode:n[c(1690)],onError:n[c(158)]});function tc({defaultMarkerColor:n,onlyRenderVisibleElements:e,rfId:x,edgeTypes:t,noPanClassName:o,onReconnect:r,onEdgeContextMenu:i,onEdgeMouseEnter:a,onEdgeMouseMove:u,onEdgeMouseLeave:s,onEdgeClick:f,reconnectRadius:l,onEdgeDoubleClick:g,onReconnectStart:b,onReconnectEnd:h,disableKeyboardA11y:y}){const v=c,{edgesFocusable:w,edgesReconnectable:M,elementsSelectable:m,onError:C}=ze(i1,Le),p=q5(e);return d[v(1324)](v(315),{className:v(1337),children:[d[v(1203)](R5,{defaultColor:n,rfId:x}),p[v(1197)](E=>d[v(1203)](r1,{id:E,edgesFocusable:w,edgesReconnectable:M,elementsSelectable:m,noPanClassName:o,onReconnect:r,onContextMenu:i,onMouseEnter:a,onMouseMove:u,onMouseLeave:s,onClick:f,reconnectRadius:l,onDoubleClick:g,onReconnectStart:b,onReconnectEnd:h,rfId:x,onError:C,edgeTypes:t,disableKeyboardA11y:y},E))]})}tc[c(451)]=c(1001);const a1=P.memo(tc),c1=n=>c(207)+n[c(1115)][0]+c(299)+n[c(1115)][1]+c(888)+n.transform[2]+")";function s1({children:n}){const e=c,x=ze(c1);return d[e(1203)](e(315),{className:e(1742),style:{transform:x},children:n})}function l1(n){const e=c,x=Zx(),t=P[e(1142)](!1);P[e(1189)](()=>{const o=e;!t[o(532)]&&x[o(496)]&&n&&(setTimeout(()=>n(x),1),t[o(532)]=!0)},[n,x[e(496)]])}const d1=n=>n[c(730)]?.[c(1761)];function u1(n){const e=c,x=ze(d1),t=Ne();return P[e(1189)](()=>{const o=e;n&&(x?.(n),t[o(637)]({transform:[n.x,n.y,n[o(734)]]}))},[n,x]),null}function f1(n){const e=c;return n[e(148)][e(1444)]?{...n[e(148)],to:Gn(n[e(148)].to,n[e(1115)])}:{...n[e(148)]}}function h1(n){return f1}function b1(n){const e=h1();return ze(e,Le)}const g1=n=>({nodesConnectable:n[c(1630)],isValid:n[c(148)][c(1136)],inProgress:n[c(148)].inProgress,width:n[c(531)],height:n[c(1348)]});function y1({containerStyle:n,style:e,type:x,component:t}){const o=c,{nodesConnectable:r,width:i,height:a,isValid:u,inProgress:s}=ze(g1,Le);return!(i&&r&&s)?null:d[o(1203)](o(1442),{style:n,width:i,height:a,className:o(710),children:d[o(1203)]("g",{className:Ee(["react-flow__connection",Qi(u)]),children:d[o(1203)](xc,{style:e,type:x,CustomComponent:t,isValid:u})})})}const xc=({style:n,type:e=C0[c(1356)],CustomComponent:x,isValid:t})=>{const o=c,{inProgress:r,from:i,fromNode:a,fromHandle:u,fromPosition:s,to:f,toNode:l,toHandle:g,toPosition:b,pointer:h}=b1();if(!r)return;if(x)return d.jsx(x,{connectionLineType:e,connectionLineStyle:n,fromNode:a,fromHandle:u,fromX:i.x,fromY:i.y,toX:f.x,toY:f.y,fromPosition:s,toPosition:b,connectionStatus:Qi(t),toNode:l,toHandle:g,pointer:h});let y="";const v={sourceX:i.x,sourceY:i.y,sourcePosition:s,targetX:f.x,targetY:f.y,targetPosition:b};switch(e){case C0[o(1356)]:[y]=da(v);break;case C0[o(1845)]:[y]=qa(v);break;case C0[o(1784)]:[y]=vx({...v,borderRadius:0});break;case C0.SmoothStep:[y]=vx(v);break;default:[y]=ha(v)}return d.jsx(o(1540),{d:y,fill:o(1473),className:o(1409),style:n})};xc[c(451)]="ConnectionLine";const m1={};function Sr(n=m1){const e=c,x=P[e(1142)](n),t=Ne();P[e(1189)](()=>{const o=e;if(process.env.NODE_ENV===o(178)){const r=new Set([...Object.keys(x.current),...Object[o(1673)](n)]);for(const i of r)if(x[o(532)][i]!==n[i]){t[o(371)]()[o(158)]?.(o(1177),qe[o(639)]());break}x[o(532)]=n}},[n])}function v1(){const n=c,e=Ne(),x=P[n(1142)](!1);P[n(1189)](()=>{const t=n;if(process.env.NODE_ENV==="development"&&!x[t(532)]){const o=document[t(1218)](t(430));o&&window[t(771)](o).zIndex!=="1"&&e.getState()[t(158)]?.("013",qe[t(1160)](t(230))),x[t(532)]=!0}},[])}function oc({nodeTypes:n,edgeTypes:e,onInit:x,onNodeClick:t,onEdgeClick:o,onNodeDoubleClick:r,onEdgeDoubleClick:i,onNodeMouseEnter:a,onNodeMouseMove:u,onNodeMouseLeave:s,onNodeContextMenu:f,onSelectionContextMenu:l,onSelectionStart:g,onSelectionEnd:b,connectionLineType:h,connectionLineStyle:y,connectionLineComponent:v,connectionLineContainerStyle:w,selectionKeyCode:M,selectionOnDrag:m,selectionMode:C,multiSelectionKeyCode:p,panActivationKeyCode:E,zoomActivationKeyCode:O,deleteKeyCode:U,onlyRenderVisibleElements:Y,elementsSelectable:W,defaultViewport:Q,translateExtent:R,minZoom:X,maxZoom:V,preventScrolling:L,defaultMarkerColor:D,zoomOnScroll:B,zoomOnPinch:j,panOnScroll:A,panOnScrollSpeed:S,panOnScrollMode:Z,zoomOnDoubleClick:K,panOnDrag:H,onPaneClick:F,onPaneMouseEnter:ee,onPaneMouseMove:ne,onPaneMouseLeave:xe,onPaneScroll:se,onPaneContextMenu:ae,paneClickDistance:N,nodeClickDistance:T,onEdgeContextMenu:J,onEdgeMouseEnter:G,onEdgeMouseMove:k,onEdgeMouseLeave:te,reconnectRadius:de,onReconnect:ye,onReconnectStart:le,onReconnectEnd:be,noDragClassName:we,noWheelClassName:pe,noPanClassName:me,disableKeyboardA11y:Pe,nodeExtent:Ue,rfId:Xe,viewport:Ie,onViewportChange:Ae}){const je=c;return Sr(n),Sr(e),v1(),l1(x),u1(Ie),d[je(1203)](j5,{onPaneClick:F,onPaneMouseEnter:ee,onPaneMouseMove:ne,onPaneMouseLeave:xe,onPaneContextMenu:ae,onPaneScroll:se,paneClickDistance:N,deleteKeyCode:U,selectionKeyCode:M,selectionOnDrag:m,selectionMode:C,onSelectionStart:g,onSelectionEnd:b,multiSelectionKeyCode:p,panActivationKeyCode:E,zoomActivationKeyCode:O,elementsSelectable:W,zoomOnScroll:B,zoomOnPinch:j,zoomOnDoubleClick:K,panOnScroll:A,panOnScrollSpeed:S,panOnScrollMode:Z,panOnDrag:H,defaultViewport:Q,translateExtent:R,minZoom:X,maxZoom:V,onSelectionContextMenu:l,preventScrolling:L,noDragClassName:we,noWheelClassName:pe,noPanClassName:me,disableKeyboardA11y:Pe,onViewportChange:Ae,isControlledViewport:!!Ie,children:d[je(1324)](s1,{children:[d[je(1203)](a1,{edgeTypes:e,onEdgeClick:o,onEdgeDoubleClick:i,onReconnect:ye,onReconnectStart:le,onReconnectEnd:be,onlyRenderVisibleElements:Y,onEdgeContextMenu:J,onEdgeMouseEnter:G,onEdgeMouseMove:k,onEdgeMouseLeave:te,reconnectRadius:de,defaultMarkerColor:D,noPanClassName:me,disableKeyboardA11y:Pe,rfId:Xe}),d[je(1203)](y1,{style:y,type:h,component:v,containerStyle:w}),d[je(1203)]("div",{className:je(332)}),d[je(1203)](V5,{nodeTypes:n,onNodeClick:t,onNodeDoubleClick:r,onNodeMouseEnter:a,onNodeMouseMove:u,onNodeMouseLeave:s,onNodeContextMenu:f,nodeClickDistance:T,onlyRenderVisibleElements:Y,noPanClassName:me,noDragClassName:we,disableKeyboardA11y:Pe,nodeExtent:Ue,rfId:Xe}),d.jsx("div",{className:je(1147)})]})})}oc[c(451)]="GraphView";const w1=P[c(811)](oc),Pr=({nodes:n,edges:e,defaultNodes:x,defaultEdges:t,width:o,height:r,fitView:i,fitViewOptions:a,minZoom:u=.5,maxZoom:s=2,nodeOrigin:f,nodeExtent:l,zIndexMode:g=c(948)}={})=>{const b=c,h=new Map,y=new Map,v=new Map,w=new Map,M=t??e??[],m=x??n??[],C=f??[0,0],p=l??Pn;ya(v,w,M);const{nodesInitialized:E}=px(m,h,y,{nodeOrigin:C,nodeExtent:p,zIndexMode:g});let O=[0,0,1];if(i&&o&&r){const U=Un(h,{filter:R=>!!((R[b(531)]||R[b(1786)])&&(R[b(1348)]||R.initialHeight))}),{x:Y,y:W,zoom:Q}=Hx(U,o,r,u,s,a?.padding??.1);O=[Y,W,Q]}return{rfId:"1",width:o??0,height:r??0,transform:O,nodes:m,nodesInitialized:E,nodeLookup:h,parentLookup:y,edges:M,edgeLookup:w,connectionLookup:v,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:x!==void 0,hasDefaultEdges:t!==void 0,panZoom:null,minZoom:u,maxZoom:s,translateExtent:Pn,nodeExtent:p,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:tn[b(1689)],domNode:null,paneDragging:!1,noPanClassName:b(1411),nodeOrigin:C,nodeDragThreshold:1,connectionDragThreshold:1,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesReconnectable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,elevateEdgesOnSelect:!0,selectNodesOnDrag:!0,multiSelectionActive:!1,fitViewQueued:i??!1,fitViewOptions:a,fitViewResolver:null,connection:{...Fi},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:oa,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:b(230),debug:!1,ariaLabelConfig:Ji,zIndexMode:g,onNodesChangeMiddlewareMap:new Map,onEdgesChangeMiddlewareMap:new Map}},p1=({nodes:n,edges:e,defaultNodes:x,defaultEdges:t,width:o,height:r,fitView:i,fitViewOptions:a,minZoom:u,maxZoom:s,nodeOrigin:f,nodeExtent:l,zIndexMode:g})=>G2((b,h)=>{async function y(){const v=I,{nodeLookup:w,panZoom:M,fitViewOptions:m,fitViewResolver:C,width:p,height:E,minZoom:O,maxZoom:U}=h();M&&(await Yf({nodes:w,width:p,height:E,panZoom:M,minZoom:O,maxZoom:U},m),C?.[v(923)](!0),b({fitViewResolver:null}))}return{...Pr({nodes:n,edges:e,width:o,height:r,fitView:i,fitViewOptions:a,minZoom:u,maxZoom:s,nodeOrigin:f,nodeExtent:l,defaultNodes:x,defaultEdges:t,zIndexMode:g}),setNodes:v=>{const{nodeLookup:w,parentLookup:M,nodeOrigin:m,elevateNodesOnSelect:C,fitViewQueued:p,zIndexMode:E,nodesSelectionActive:O}=h(),{nodesInitialized:U,hasSelectedNodes:Y}=px(v,w,M,{nodeOrigin:m,nodeExtent:l,elevateNodesOnSelect:C,checkEquality:!0,zIndexMode:E}),W=O&&Y;p&&U?(y(),b({nodes:v,nodesInitialized:U,fitViewQueued:!1,fitViewOptions:void 0,nodesSelectionActive:W})):b({nodes:v,nodesInitialized:U,nodesSelectionActive:W})},setEdges:v=>{const{connectionLookup:w,edgeLookup:M}=h();ya(w,M,v),b({edges:v})},setDefaultNodesAndEdges:(v,w)=>{if(v){const{setNodes:M}=h();M(v),b({hasDefaultNodes:!0})}if(w){const{setEdges:M}=h();M(w),b({hasDefaultEdges:!0})}},updateNodeInternals:v=>{const w=I,{triggerNodeChanges:M,nodeLookup:m,parentLookup:C,domNode:p,nodeOrigin:E,nodeExtent:O,debug:U,fitViewQueued:Y,zIndexMode:W}=h(),{changes:Q,updatedInternals:R}=x2(v,m,C,p,E,O,W);R&&($f(m,C,{nodeOrigin:E,nodeExtent:O,zIndexMode:W}),Y?(y(),b({fitViewQueued:!1,fitViewOptions:void 0})):b({}),Q?.length>0&&(U&&console[w(1339)](w(1297),Q),M?.(Q)))},updateNodePositions:(v,w=!1)=>{const M=I,m=[];let C=[];const{nodeLookup:p,triggerNodeChanges:E,connection:O,updateConnection:U,onNodesChangeMiddlewareMap:Y}=h();for(const[W,Q]of v){const R=p[M(1386)](W),X=!!(R?.[M(1225)]&&R?.[M(1772)]&&Q?.[M(1748)]),V={id:W,type:M(1748),position:X?{x:Math[M(1204)](0,Q[M(1748)].x),y:Math[M(1204)](0,Q[M(1748)].y)}:Q.position,dragging:w};if(R&&O.inProgress&&O.fromNode.id===R.id){const L=U0(R,O[M(866)],fe[M(1075)],!0);U({...O,from:L})}X&&R.parentId&&m[M(268)]({id:W,parentId:R[M(1772)],rect:{...Q.internals[M(1583)],width:Q[M(1403)][M(531)]??0,height:Q[M(1403)][M(1348)]??0}}),C[M(268)](V)}if(m.length>0){const{parentLookup:W,nodeOrigin:Q}=h(),R=Kx(m,p,W,Q);C[M(268)](...R)}for(const W of Y[M(1404)]())C=W(C);E(C)},triggerNodeChanges:v=>{const w=I,{onNodesChange:M,setNodes:m,nodes:C,hasDefaultNodes:p,debug:E}=h();if(v?.length){if(p){const O=Aa(v,C);m(O)}E&&console.log(w(1297),v),M?.(v)}},triggerEdgeChanges:v=>{const w=I,{onEdgesChange:M,setEdges:m,edges:C,hasDefaultEdges:p,debug:E}=h();if(v?.[w(1849)]){if(p){const O=ja(v,C);m(O)}E&&console[w(1339)]("React Flow: trigger edge changes",v),M?.(v)}},addSelectedNodes:v=>{const w=I,{multiSelectionActive:M,edgeLookup:m,nodeLookup:C,triggerNodeChanges:p,triggerEdgeChanges:E}=h();if(M){const O=v[w(1197)](U=>P0(U,!0));p(O);return}p(K0(C,new Set([...v]),!0)),E(K0(m))},addSelectedEdges:v=>{const{multiSelectionActive:w,edgeLookup:M,nodeLookup:m,triggerNodeChanges:C,triggerEdgeChanges:p}=h();if(w){const E=v.map(O=>P0(O,!0));p(E);return}p(K0(M,new Set([...v]))),C(K0(m,new Set,!0))},unselectNodesAndEdges:({nodes:v,edges:w}={})=>{const M=I,{edges:m,nodes:C,nodeLookup:p,triggerNodeChanges:E,triggerEdgeChanges:O}=h(),U=v||C,Y=w||m,W=[];for(const R of U){if(!R[M(500)])continue;const X=p[M(1386)](R.id);X&&(X[M(500)]=!1),W[M(268)](P0(R.id,!1))}const Q=[];for(const R of Y)R[M(500)]&&Q.push(P0(R.id,!1));E(W),O(Q)},setMinZoom:v=>{const w=I,{panZoom:M,maxZoom:m}=h();M?.[w(832)]([v,m]),b({minZoom:v})},setMaxZoom:v=>{const w=I,{panZoom:M,minZoom:m}=h();M?.[w(832)]([m,v]),b({maxZoom:v})},setTranslateExtent:v=>{const w=I;h()[w(730)]?.[w(594)](v),b({translateExtent:v})},resetSelectedElements:()=>{const v=I,{edges:w,nodes:M,triggerNodeChanges:m,triggerEdgeChanges:C,elementsSelectable:p}=h();if(!p)return;const E=M[v(1258)]((U,Y)=>Y.selected?[...U,P0(Y.id,!1)]:U,[]),O=w.reduce((U,Y)=>Y.selected?[...U,P0(Y.id,!1)]:U,[]);m(E),C(O)},setNodeExtent:v=>{const{nodes:w,nodeLookup:M,parentLookup:m,nodeOrigin:C,elevateNodesOnSelect:p,nodeExtent:E,zIndexMode:O}=h();v[0][0]===E[0][0]&&v[0][1]===E[0][1]&&v[1][0]===E[1][0]&&v[1][1]===E[1][1]||(px(w,M,m,{nodeOrigin:C,nodeExtent:v,elevateNodesOnSelect:p,checkEquality:!1,zIndexMode:O}),b({nodeExtent:v}))},panBy:v=>{const{transform:w,width:M,height:m,panZoom:C,translateExtent:p}=h();return o2({delta:v,panZoom:C,transform:w,translateExtent:p,width:M,height:m})},setCenter:async(v,w,M)=>{const m=I,{width:C,height:p,maxZoom:E,panZoom:O}=h();if(!O)return Promise[m(923)](!1);const U=typeof M?.[m(734)]!==m(1821)?M[m(734)]:E;return await O.setViewport({x:C/2-v*U,y:p/2-w*U,zoom:U},{duration:M?.duration,ease:M?.[m(1260)],interpolate:M?.interpolate}),Promise[m(923)](!0)},cancelConnection:()=>{b({connection:{...Fi}})},updateConnection:v=>{b({connection:v})},reset:()=>b({...Pr()})}},Object.is);function C1({initialNodes:n,initialEdges:e,defaultNodes:x,defaultEdges:t,initialWidth:o,initialHeight:r,initialMinZoom:i,initialMaxZoom:a,initialFitViewOptions:u,fitView:s,nodeOrigin:f,nodeExtent:l,zIndexMode:g,children:b}){const h=c,[y]=P[h(280)](()=>p1({nodes:n,edges:e,defaultNodes:x,defaultEdges:t,width:o,height:r,fitView:s,minZoom:i,maxZoom:a,fitViewOptions:u,nodeOrigin:f,nodeExtent:l,zIndexMode:g}));return d[h(1203)](H2,{value:y,children:d[h(1203)](s5,{children:b})})}function z1({children:n,nodes:e,edges:x,defaultNodes:t,defaultEdges:o,width:r,height:i,fitView:a,fitViewOptions:u,minZoom:s,maxZoom:f,nodeOrigin:l,nodeExtent:g,zIndexMode:b}){const h=c;return P.useContext(Ut)?d[h(1203)](d[h(1123)],{children:n}):d[h(1203)](C1,{initialNodes:e,initialEdges:x,defaultNodes:t,defaultEdges:o,initialWidth:r,initialHeight:i,fitView:a,initialFitViewOptions:u,initialMinZoom:s,initialMaxZoom:f,nodeOrigin:l,nodeExtent:g,zIndexMode:b,children:n})}function I(n,e){n=n-138;const x=Nt();let t=x[n];if(I.AHNsZn===void 0){var o=function(u){const s="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=";let f="",l="";for(let g=0,b,h,y=0;h=u.charAt(y++);~h&&(b=g%4?b*64+h:h,g++%4)?f+=String.fromCharCode(255&b>>(-2*g&6)):0)h=s.indexOf(h);for(let g=0,b=f.length;g<b;g++)l+="%"+("00"+f.charCodeAt(g).toString(16)).slice(-2);return decodeURIComponent(l)};I.HjSQwg=o,I.ekPbTU={},I.AHNsZn=!0}const r=x[0],i=n+r,a=I.ekPbTU[i];return a?t=a:(t=I.HjSQwg(t),I.ekPbTU[i]=t),t}const M1={width:c(1322),height:c(1322),overflow:"hidden",position:c(361),zIndex:0};function B1({nodes:n,edges:e,defaultNodes:x,defaultEdges:t,className:o,nodeTypes:r,edgeTypes:i,onNodeClick:a,onEdgeClick:u,onInit:s,onMove:f,onMoveStart:l,onMoveEnd:g,onConnect:b,onConnectStart:h,onConnectEnd:y,onClickConnectStart:v,onClickConnectEnd:w,onNodeMouseEnter:M,onNodeMouseMove:m,onNodeMouseLeave:C,onNodeContextMenu:p,onNodeDoubleClick:E,onNodeDragStart:O,onNodeDrag:U,onNodeDragStop:Y,onNodesDelete:W,onEdgesDelete:Q,onDelete:R,onSelectionChange:X,onSelectionDragStart:V,onSelectionDrag:L,onSelectionDragStop:D,onSelectionContextMenu:B,onSelectionStart:j,onSelectionEnd:A,onBeforeDelete:S,connectionMode:Z,connectionLineType:K=C0[c(1356)],connectionLineStyle:H,connectionLineComponent:F,connectionLineContainerStyle:ee,deleteKeyCode:ne="Backspace",selectionKeyCode:xe=c(145),selectionOnDrag:se=!1,selectionMode:ae=En.Full,panActivationKeyCode:N=c(337),multiSelectionKeyCode:T=An()?"Meta":c(1592),zoomActivationKeyCode:J=An()?c(312):c(1592),snapToGrid:G,snapGrid:k,onlyRenderVisibleElements:te=!1,selectNodesOnDrag:de,nodesDraggable:ye,autoPanOnNodeFocus:le,nodesConnectable:be,nodesFocusable:we,nodeOrigin:pe=Ea,edgesFocusable:me,edgesReconnectable:Pe,elementsSelectable:Ue=!0,defaultViewport:Xe=e5,minZoom:Ie=.5,maxZoom:Ae=2,translateExtent:je=Pn,preventScrolling:sn=!0,nodeExtent:l0,defaultMarkerColor:H0=c(250),zoomOnScroll:D0=!0,zoomOnPinch:d0=!0,panOnScroll:u0=!1,panOnScrollSpeed:f0=.5,panOnScrollMode:h0=A0[c(988)],zoomOnDoubleClick:Qe=!0,panOnDrag:Ye=!0,onPaneClick:Hn,onPaneMouseEnter:L0,onPaneMouseMove:x0,onPaneMouseLeave:b0,onPaneScroll:g0,onPaneContextMenu:_n,paneClickDistance:ln=1,nodeClickDistance:Vn=0,children:dn,onReconnect:_,onReconnectStart:q,onReconnectEnd:ie,onEdgeContextMenu:oe,onEdgeDoubleClick:ce,onEdgeMouseEnter:$,onEdgeMouseMove:re,onEdgeMouseLeave:he,reconnectRadius:ve=10,onNodesChange:ge,onEdgesChange:Me,noDragClassName:Be=c(1015),noWheelClassName:De=c(1547),noPanClassName:ke=c(1411),fitView:He,fitViewOptions:o0,connectOnClick:r0,attributionPosition:_0,proOptions:N0,defaultEdgeOptions:fc,elevateNodesOnSelect:hc=!0,elevateEdgesOnSelect:bc=!1,disableKeyboardA11y:Jx=!1,autoPanOnConnect:gc,autoPanOnNodeDrag:yc,autoPanSpeed:mc,connectionRadius:vc,isValidConnection:wc,onError:pc,style:Cc,id:Fx,nodeDragThreshold:zc,connectionDragThreshold:Mc,viewport:Bc,onViewportChange:Dc,width:Lc,height:Nc,colorMode:Sc=c(1111),debug:Pc,onScroll:Qx,ariaLabelConfig:Ec,zIndexMode:$x=c(948),...Ic},Ac){const y0=c,_t=Fx||"1",jc=o5(Sc),Yc=P.useCallback(eo=>{const no=I;eo.currentTarget[no(389)]({top:0,left:0,behavior:no(918)}),Qx?.(eo)},[Qx]);return d[y0(1203)](y0(315),{"data-testid":y0(1247),...Ic,onScroll:Yc,style:{...Cc,...M1},ref:Ac,className:Ee([y0(465),o,jc]),id:Fx,role:y0(831),children:d.jsxs(z1,{nodes:n,edges:e,width:Lc,height:Nc,fitView:He,fitViewOptions:o0,minZoom:Ie,maxZoom:Ae,nodeOrigin:pe,nodeExtent:l0,zIndexMode:$x,children:[d.jsx(x5,{nodes:n,edges:e,defaultNodes:x,defaultEdges:t,onConnect:b,onConnectStart:h,onConnectEnd:y,onClickConnectStart:v,onClickConnectEnd:w,nodesDraggable:ye,autoPanOnNodeFocus:le,nodesConnectable:be,nodesFocusable:we,edgesFocusable:me,edgesReconnectable:Pe,elementsSelectable:Ue,elevateNodesOnSelect:hc,elevateEdgesOnSelect:bc,minZoom:Ie,maxZoom:Ae,nodeExtent:l0,onNodesChange:ge,onEdgesChange:Me,snapToGrid:G,snapGrid:k,connectionMode:Z,translateExtent:je,connectOnClick:r0,defaultEdgeOptions:fc,fitView:He,fitViewOptions:o0,onNodesDelete:W,onEdgesDelete:Q,onDelete:R,onNodeDragStart:O,onNodeDrag:U,onNodeDragStop:Y,onSelectionDrag:L,onSelectionDragStart:V,onSelectionDragStop:D,onMove:f,onMoveStart:l,onMoveEnd:g,noPanClassName:ke,nodeOrigin:pe,rfId:_t,autoPanOnConnect:gc,autoPanOnNodeDrag:yc,autoPanSpeed:mc,onError:pc,connectionRadius:vc,isValidConnection:wc,selectNodesOnDrag:de,nodeDragThreshold:zc,connectionDragThreshold:Mc,onBeforeDelete:S,debug:Pc,ariaLabelConfig:Ec,zIndexMode:$x}),d[y0(1203)](w1,{onInit:s,onNodeClick:a,onEdgeClick:u,onNodeMouseEnter:M,onNodeMouseMove:m,onNodeMouseLeave:C,onNodeContextMenu:p,onNodeDoubleClick:E,nodeTypes:r,edgeTypes:i,connectionLineType:K,connectionLineStyle:H,connectionLineComponent:F,connectionLineContainerStyle:ee,selectionKeyCode:xe,selectionOnDrag:se,selectionMode:ae,deleteKeyCode:ne,multiSelectionKeyCode:T,panActivationKeyCode:N,zoomActivationKeyCode:J,onlyRenderVisibleElements:te,defaultViewport:Xe,translateExtent:je,minZoom:Ie,maxZoom:Ae,preventScrolling:sn,zoomOnScroll:D0,zoomOnPinch:d0,zoomOnDoubleClick:Qe,panOnScroll:u0,panOnScrollSpeed:f0,panOnScrollMode:h0,panOnDrag:Ye,onPaneClick:Hn,onPaneMouseEnter:L0,onPaneMouseMove:x0,onPaneMouseLeave:b0,onPaneScroll:g0,onPaneContextMenu:_n,paneClickDistance:ln,nodeClickDistance:Vn,onSelectionContextMenu:B,onSelectionStart:j,onSelectionEnd:A,onReconnect:_,onReconnectStart:q,onReconnectEnd:ie,onEdgeContextMenu:oe,onEdgeDoubleClick:ce,onEdgeMouseEnter:$,onEdgeMouseMove:re,onEdgeMouseLeave:he,reconnectRadius:ve,defaultMarkerColor:H0,noDragClassName:Be,noWheelClassName:De,noPanClassName:ke,rfId:_t,disableKeyboardA11y:Jx,nodeExtent:l0,viewport:Bc,onViewportChange:Dc}),d[y0(1203)]($2,{onSelectionChange:X}),dn,d.jsx(Z2,{proOptions:N0,position:_0}),d[y0(1203)](K2,{rfId:_t,disableKeyboardA11y:Jx})]})})}var D1=Ya(B1);function L1(n){const e=c,[x,t]=P[e(280)](n),o=P.useCallback(r=>t(i=>Aa(r,i)),[]);return[x,t,o]}function N1(n){const e=c,[x,t]=P[e(280)](n),o=P[e(275)](r=>t(i=>ja(r,i)),[]);return[x,t,o]}function S1({dimensions:n,lineWidth:e,variant:x,className:t}){const o=c;return d[o(1203)]("path",{strokeWidth:e,d:"M"+n[0]/2+o(1397)+n[1]+" M0 "+n[1]/2+" H"+n[0],className:Ee([o(521),x,t])})}function P1({radius:n,className:e}){const x=c;return d[x(1203)](x(1620),{cx:n,cy:n,r:n,className:Ee([x(521),x(476),e])})}var M0;(function(n){const e=c;n[e(508)]=e(1263),n[e(1739)]="dots",n[e(1359)]=e(416)})(M0||(M0={}));const E1={[M0[c(1739)]]:1,[M0.Lines]:1,[M0.Cross]:6},I1=n=>({transform:n[c(1115)],patternId:c(552)+n.rfId});function rc({id:n,variant:e=M0[c(1739)],gap:x=20,size:t,lineWidth:o=1,offset:r=0,color:i,bgColor:a,style:u,className:s,patternClassName:f}){const l=c,g=P.useRef(null),{transform:b,patternId:h}=ze(I1,Le),y=t||E1[e],v=e===M0[l(1739)],w=e===M0[l(1359)],M=Array[l(171)](x)?x:[x,x],m=[M[0]*b[2]||1,M[1]*b[2]||1],C=y*b[2],p=Array.isArray(r)?r:[r,r],E=w?[C,C]:m,O=[p[0]*b[2]||1+E[0]/2,p[1]*b[2]||1+E[1]/2],U=""+h+(n||"");return d[l(1324)](l(1442),{className:Ee(["react-flow__background",s]),style:{...u,...Gt,"--xy-background-color-props":a,"--xy-background-pattern-color-props":i},ref:g,"data-testid":"rf__background",children:[d[l(1203)](l(1013),{id:U,x:b[0]%m[0],y:b[1]%m[1],width:m[0],height:m[1],patternUnits:"userSpaceOnUse",patternTransform:"translate(-"+O[0]+",-"+O[1]+")",children:v?d[l(1203)](P1,{radius:C/2,className:f}):d[l(1203)](S1,{dimensions:E,lineWidth:o,variant:e,className:f})}),d[l(1203)](l(1819),{x:"0",y:"0",width:l(1322),height:l(1322),fill:l(1106)+U+")"})]})}rc[c(451)]=c(1144);const A1=P.memo(rc);function j1(){const n=c;return d.jsx(n(1442),{xmlns:n(205),viewBox:"0 0 32 32",children:d.jsx(n(1540),{d:n(1340)})})}function Y1(){const n=c;return d[n(1203)](n(1442),{xmlns:n(205),viewBox:n(1447),children:d.jsx(n(1540),{d:"M0 0h32v4.2H0z"})})}function k1(){const n=c;return d[n(1203)](n(1442),{xmlns:n(205),viewBox:"0 0 32 30",children:d[n(1203)](n(1540),{d:n(404)})})}function O1(){const n=c;return d[n(1203)](n(1442),{xmlns:n(205),viewBox:"0 0 25 32",children:d[n(1203)]("path",{d:n(1588)})})}function U1(){const n=c;return d[n(1203)]("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:d.jsx(n(1540),{d:n(1590)})})}function xt({children:n,className:e,...x}){const t=c;return d.jsx("button",{type:t(1141),className:Ee([t(953),e]),...x,children:n})}const T1=n=>({isInteractive:n.nodesDraggable||n[c(1630)]||n[c(1367)],minZoomReached:n[c(1115)][2]<=n.minZoom,maxZoomReached:n[c(1115)][2]>=n[c(1614)],ariaLabelConfig:n.ariaLabelConfig});function ic({style:n,showZoom:e=!0,showFitView:x=!0,showInteractive:t=!0,fitViewOptions:o,onZoomIn:r,onZoomOut:i,onFitView:a,onInteractiveChange:u,className:s,children:f,position:l="bottom-left",orientation:g=c(1230),"aria-label":b}){const h=c,y=Ne(),{isInteractive:v,minZoomReached:w,maxZoomReached:M,ariaLabelConfig:m}=ze(T1,Le),{zoomIn:C,zoomOut:p,fitView:E}=Zx(),O=()=>{C(),r?.()},U=()=>{p(),i?.()},Y=()=>{E(o),a?.()},W=()=>{y.setState({nodesDraggable:!v,nodesConnectable:!v,elementsSelectable:!v}),u?.(!v)},Q=g===h(406)?h(406):h(1230);return d.jsxs(Tt,{className:Ee([h(683),Q,s]),position:l,style:n,"data-testid":h(1021),"aria-label":b??m[h(1264)],children:[e&&d[h(1324)](d[h(1123)],{children:[d[h(1203)](xt,{onClick:O,className:h(355),title:m[h(180)],"aria-label":m[h(180)],disabled:M,children:d[h(1203)](j1,{})}),d[h(1203)](xt,{onClick:U,className:h(263),title:m[h(223)],"aria-label":m[h(223)],disabled:w,children:d[h(1203)](Y1,{})})]}),x&&d.jsx(xt,{className:h(1727),onClick:Y,title:m[h(828)],"aria-label":m[h(828)],children:d[h(1203)](k1,{})}),t&&d[h(1203)](xt,{className:h(1605),onClick:W,title:m[h(1045)],"aria-label":m[h(1045)],children:v?d.jsx(U1,{}):d[h(1203)](O1,{})}),f]})}ic[c(451)]=c(1499);const G1=P[c(811)](ic);function H1({id:n,x:e,y:x,width:t,height:o,style:r,color:i,strokeColor:a,strokeWidth:u,className:s,borderRadius:f,shapeRendering:l,selected:g,onClick:b}){const h=c,{background:y,backgroundColor:v}=r||{},w=i||y||v;return d.jsx("rect",{className:Ee([h(1678),{selected:g},s]),x:e,y:x,rx:f,ry:f,width:t,height:o,style:{fill:w,stroke:a,strokeWidth:u},shapeRendering:l,onClick:b?M=>b(M,n):void 0})}const _1=P[c(811)](H1),V1=n=>n.nodes.map(e=>e.id),ox=n=>n instanceof Function?n:()=>n;function q1({nodeStrokeColor:n,nodeColor:e,nodeClassName:x="",nodeBorderRadius:t=5,nodeStrokeWidth:o,nodeComponent:r=_1,onClick:i}){const a=c,u=ze(V1,Le),s=ox(e),f=ox(n),l=ox(x),g=typeof window===a(1821)||window[a(1282)]?a(1099):a(1762);return d[a(1203)](d[a(1123)],{children:u[a(1197)](b=>d.jsx(X1,{id:b,nodeColorFunc:s,nodeStrokeColorFunc:f,nodeClassNameFunc:l,nodeBorderRadius:t,nodeStrokeWidth:o,NodeComponent:r,onClick:i,shapeRendering:g},b))})}function W1({id:n,nodeColorFunc:e,nodeStrokeColorFunc:x,nodeClassNameFunc:t,nodeBorderRadius:o,nodeStrokeWidth:r,shapeRendering:i,NodeComponent:a,onClick:u}){const s=c,{node:f,x:l,y:g,width:b,height:h}=ze(y=>{const v=I,w=y[v(1388)][v(1386)](n);if(!w)return{node:void 0,x:0,y:0,width:0,height:0};const M=w.internals[v(426)],{x:m,y:C}=w[v(1350)][v(1583)],{width:p,height:E}=s0(M);return{node:M,x:m,y:C,width:p,height:E}},Le);return!f||f[s(197)]||!ra(f)?null:d[s(1203)](a,{x:l,y:g,width:b,height:h,style:f[s(165)],selected:!!f[s(500)],className:t(f),color:e(f),borderRadius:o,strokeColor:x(f),strokeWidth:r,shapeRendering:i,onClick:u,id:f.id})}const X1=P[c(811)](W1);var K1=P.memo(q1);const Z1=200,R1=150,J1=n=>!n[c(197)],F1=n=>{const e=c,x={x:-n[e(1115)][0]/n.transform[2],y:-n.transform[1]/n[e(1115)][2],width:n[e(531)]/n[e(1115)][2],height:n[e(1348)]/n[e(1115)][2]};return{viewBB:x,boundingRect:n[e(1388)][e(949)]>0?xa(Un(n[e(1388)],{filter:J1}),x):x,rfId:n[e(477)],panZoom:n[e(730)],translateExtent:n[e(1704)],flowWidth:n[e(531)],flowHeight:n[e(1348)],ariaLabelConfig:n.ariaLabelConfig}},Q1="react-flow__minimap-desc";function ac({style:n,className:e,nodeStrokeColor:x,nodeColor:t,nodeClassName:o="",nodeBorderRadius:r=5,nodeStrokeWidth:i,nodeComponent:a,bgColor:u,maskColor:s,maskStrokeColor:f,maskStrokeWidth:l,position:g="bottom-right",onClick:b,onNodeClick:h,pannable:y=!1,zoomable:v=!1,ariaLabel:w,inversePan:M,zoomStep:m=1,offsetScale:C=5}){const p=c,E=Ne(),O=P[p(1142)](null),{boundingRect:U,viewBB:Y,rfId:W,panZoom:Q,translateExtent:R,flowWidth:X,flowHeight:V,ariaLabelConfig:L}=ze(F1,Le),D=n?.[p(531)]??Z1,B=n?.[p(1348)]??R1,j=U[p(531)]/D,A=U[p(1348)]/B,S=Math.max(j,A),Z=S*D,K=S*B,H=C*S,F=U.x-(Z-U[p(531)])/2-H,ee=U.y-(K-U[p(1348)])/2-H,ne=Z+H*2,xe=K+H*2,se=Q1+"-"+W,ae=P[p(1142)](0),N=P[p(1142)]();ae[p(532)]=S,P[p(1189)](()=>{const k=p;if(O.current&&Q)return N[k(532)]=f2({domNode:O[k(532)],panZoom:Q,getTransform:()=>E.getState().transform,getViewScale:()=>ae[k(532)]}),()=>{const te=k;N[te(532)]?.[te(466)]()}},[Q]),P[p(1189)](()=>{N.current?.update({translateExtent:R,width:X,height:V,inversePan:M,pannable:y,zoomStep:m,zoomable:v})},[y,v,M,m,R,X,V]);const T=b?k=>{const te=p,[de,ye]=N[te(532)]?.[te(1612)](k)||[0,0];b(k,{x:de,y:ye})}:void 0,J=h?P[p(275)]((k,te)=>{const de=p,ye=E[de(371)]()[de(1388)][de(1386)](te)[de(1350)][de(426)];h(k,ye)},[]):void 0,G=w??L[p(1413)];return d.jsx(Tt,{position:g,style:{...n,"--xy-minimap-background-color-props":typeof u===p(1077)?u:void 0,"--xy-minimap-mask-background-color-props":typeof s=="string"?s:void 0,"--xy-minimap-mask-stroke-color-props":typeof f=="string"?f:void 0,"--xy-minimap-mask-stroke-width-props":typeof l===p(528)?l*S:void 0,"--xy-minimap-node-background-color-props":typeof t===p(1077)?t:void 0,"--xy-minimap-node-stroke-color-props":typeof x=="string"?x:void 0,"--xy-minimap-node-stroke-width-props":typeof i===p(528)?i:void 0},className:Ee([p(306),e]),"data-testid":p(1399),children:d[p(1324)](p(1442),{width:D,height:B,viewBox:F+" "+ee+" "+ne+" "+xe,className:"react-flow__minimap-svg",role:p(1166),"aria-labelledby":se,ref:O,onClick:T,children:[G&&d[p(1203)](p(1450),{id:se,children:G}),d.jsx(K1,{onClick:J,nodeColor:t,nodeStrokeColor:x,nodeBorderRadius:r,nodeClassName:o,nodeStrokeWidth:i,nodeComponent:a}),d[p(1203)](p(1540),{className:p(1428),d:"M"+(F-H)+","+(ee-H)+"h"+(ne+H*2)+"v"+(xe+H*2)+"h"+(-ne-H*2)+p(1510)+Y.x+","+Y.y+"h"+Y[p(531)]+"v"+Y[p(1348)]+"h"+-Y[p(531)]+"z",fillRule:"evenodd",pointerEvents:p(1473)})]})})}ac.displayName=c(1425);const $1=P[c(811)](ac),eh=n=>e=>n?""+Math[c(1204)](1/e[c(1115)][2],1):void 0,nh={[an[c(821)]]:c(1835),[an[c(1200)]]:"bottom-right"};function th({nodeId:n,position:e,variant:x=an[c(1200)],className:t,style:o=void 0,children:r,color:i,minWidth:a=10,minHeight:u=10,maxWidth:s=Number[c(1229)],maxHeight:f=Number[c(1229)],keepAspectRatio:l=!1,resizeDirection:g,autoScale:b=!0,shouldResize:h,onResizeStart:y,onResize:v,onResizeEnd:w}){const M=c,m=Ta(),C=typeof n=="string"?n:m,p=Ne(),E=P[M(1142)](null),O=x===an[M(1200)],U=ze(P[M(275)](eh(O&&b),[O,b]),Le),Y=P[M(1142)](null),W=e??nh[x];P[M(1189)](()=>{const R=M;if(!(!E[R(532)]||!C))return!Y[R(532)]&&(Y[R(532)]=L2({domNode:E[R(532)],nodeId:C,getStoreItems:()=>{const X=R,{nodeLookup:V,transform:L,snapGrid:D,snapToGrid:B,nodeOrigin:j,domNode:A}=p[X(371)]();return{nodeLookup:V,transform:L,snapGrid:D,snapToGrid:B,nodeOrigin:j,paneDomNode:A}},onChange:(X,V)=>{const L=R,{triggerNodeChanges:D,nodeLookup:B,parentLookup:j,nodeOrigin:A}=p[L(371)](),S=[],Z={x:X.x,y:X.y},K=B[L(1386)](C);if(K&&K[L(1225)]&&K[L(1772)]){const H=K[L(1489)]??A,F=X[L(531)]??K[L(1403)][L(531)]??0,ee=X.height??K[L(1403)][L(1348)]??0,ne={id:K.id,parentId:K[L(1772)],rect:{width:F,height:ee,...ia({x:X.x??K[L(1748)].x,y:X.y??K[L(1748)].y},{width:F,height:ee},K.parentId,B,H)}},xe=Kx([ne],B,j,A);S.push(...xe),Z.x=X.x?Math.max(H[0]*F,X.x):void 0,Z.y=X.y?Math[L(1204)](H[1]*ee,X.y):void 0}if(Z.x!==void 0&&Z.y!==void 0){const H={id:C,type:L(1748),position:{...Z}};S.push(H)}if(X[L(531)]!==void 0&&X[L(1348)]!==void 0){const H=g?g===L(406)?L(531):"height":!0,F={id:C,type:"dimensions",resizing:!0,setAttributes:H,dimensions:{width:X[L(531)],height:X.height}};S[L(268)](F)}for(const H of V){const F={...H,type:L(1748)};S[L(268)](F)}D(S)},onEnd:({width:X,height:V})=>{const L=R,D={id:C,type:L(799),resizing:!1,dimensions:{width:X,height:V}};p[L(371)]()[L(945)]([D])}})),Y[R(532)].update({controlPosition:W,boundaries:{minWidth:a,minHeight:u,maxWidth:s,maxHeight:f},keepAspectRatio:l,resizeDirection:g,onResizeStart:y,onResize:v,onResizeEnd:w,shouldResize:h}),()=>{const X=R;Y[X(532)]?.[X(466)]()}},[W,a,u,s,f,l,y,v,w,h]);const Q=W[M(448)]("-");return d[M(1203)]("div",{className:Ee([M(1e3),M(1015),...Q,x,t]),ref:E,style:{...o,scale:U,...i&&{[M(O?1769:1398)]:i}},children:r})}P.memo(th);const Er=n=>Symbol[c(1532)]in n,Ir=n=>"entries"in n,Ar=(n,e)=>{const x=c,t=n instanceof Map?n:new Map(n[x(1676)]()),o=e instanceof Map?e:new Map(e.entries());if(t[x(949)]!==o[x(949)])return!1;for(const[r,i]of t)if(!o.has(r)||!Object.is(i,o.get(r)))return!1;return!0},xh=(n,e)=>{const x=c,t=n[Symbol[x(1532)]](),o=e[Symbol[x(1532)]]();let r=t[x(1778)](),i=o[x(1778)]();for(;!r[x(1637)]&&!i[x(1637)];){if(!Object.is(r[x(160)],i[x(160)]))return!1;r=t[x(1778)](),i=o[x(1778)]()}return!!r[x(1637)]&&!!i[x(1637)]};function oh(n,e){const x=c;return Object.is(n,e)?!0:typeof n!==x(325)||n===null||typeof e!==x(325)||e===null||Object[x(1816)](n)!==Object[x(1816)](e)?!1:Er(n)&&Er(e)?Ir(n)&&Ir(e)?Ar(n,e):xh(n,e):Ar({entries:()=>Object[x(1676)](n)},{entries:()=>Object[x(1676)](e)})}const cc={inlineScript:c(1007),dataRequest:c(1424),external:c(549),builtin:c(1837)},rh=[{label:"Message 全局提示 (antd)",value:c(254)}],ih=[{label:"info",value:"info"},{label:"success",value:c(647)},{label:c(1480),value:c(1480)},{label:c(859),value:c(859)},{label:"loading",value:"loading"}];function sc(n,e,x){const t=c,o=x[t(805)](i=>i[t(1122)]===n),r=o[t(1849)];return o.map((i,a)=>{const u=t,s=e[u(279)](l=>l.id===i[u(344)]),f=s?.[u(773)];return{sourceId:i[u(344)],sourceLabel:f?.[u(453)]??i.source,edgeIndex:a,totalIncoming:r}})}const ah=({data:n,id:e})=>{const x=c,t=ze(P[x(275)](i=>sc(e,i[x(307)],i[x(221)])[x(1197)](({sourceId:a,sourceLabel:u})=>({sourceId:a,label:u})),[e]),oh),o=n.eventBlock.executorType??x(509),r=o===x(1102)?n[x(1373)][x(1138)]:o===x(1186)?n[x(1373)][x(1029)]:o===x(536)?n[x(1373)][x(1731)]==="antdMessage"?n[x(1373)][x(1731)]+": "+String(n[x(1373)].builtinConfig?.[x(1477)]??"").slice(0,24):n[x(1373)][x(1731)]:null;return d[x(1324)]("div",{className:x(1443),children:[d.jsx(cn,{type:x(1122),position:fe[x(876)],className:x(928)}),d[x(1324)](x(315),{className:x(1494),children:[d.jsx(x(1082),{className:x(1328),children:n[x(453)]}),d[x(1324)](z.Space,{size:x(1224),children:[d[x(1203)](z.Button,{type:x(969),size:"small",icon:d[x(1203)](ue[x(1073)],{}),onClick:()=>n[x(1708)](e)}),d[x(1203)](z.Button,{type:x(969),size:"small",danger:!0,icon:d.jsx(ue[x(1654)],{}),onClick:()=>n[x(257)](e)})]})]}),d[x(1203)](x(315),{className:"text-xs mb-1",children:d[x(1324)](z.Tag,{color:o===x(509)?x(943):x(o==="builtin"?170:1720),className:x(358),children:[cc[o],r?x(429)+r:""]})}),d[x(1324)](x(315),{className:x(1061),children:[n[x(1373)][x(1372)]?.[x(1849)]>0&&d[x(1324)](x(315),{children:[x(939),n[x(1373)][x(1372)][x(1197)](i=>i[x(1434)])[x(220)](", ")]}),t[x(1849)]>0&&d[x(1324)](x(315),{className:x(1093),children:[x(300),t.map(i=>d.jsxs(x(315),{className:"pl-1 border-l-2 border-amber-200",children:["←「",i.label,x(182)]},i.sourceId))]})]}),d.jsx(cn,{type:x(344),position:fe[x(274)],className:x(928)})]})},ch={eventBlock:ah},sh=Object[c(1676)](cc)[c(1197)](([n,e])=>({label:e,value:n})),lc=[{label:"点击",value:c(1668)},{label:"鼠标按下",value:c(1606)},{label:c(729),value:c(1139)},{label:"双击",value:c(1104)},{label:c(1825),value:"mouseOver"},{label:c(474),value:c(1563)},{label:c(915),value:c(848)},{label:c(1698),value:c(695)},{label:c(1507),value:c(1102)},{label:c(1298),value:c(1186)}];function lh(n,e){const x=c,t={},o=[...n];return o[x(1726)]((r,i)=>{const a=x,u=e[a(1372)][i]?.[a(1434)]??(o.length===1?"prev":"prev"+i);t[u]=a(1721)+r[a(344)]}),t}function dh(n,e,x){const t=c;return x[n]?.[t(1434)]??(e===1?t(259):t(259)+n)}const uh=[{label:c(1077),value:"string"},{label:c(528),value:c(528)},{label:c(724),value:c(724)},{label:"object",value:"object"},{label:c(1206),value:c(1206)}];function jr(n){const e=c,x=lc[e(279)](o=>o[e(160)]===n.eventType),t=x?.[e(453)]??n.eventType;if(n[e(1653)]===e(1186)){const o=(n[e(316)]||"")[e(578)]();return o?t+e(429)+o:t}return t}const fh=({open:n,onClose:e,bindNodeId:x})=>{const t=c,{nodes:o,eventFlow:r,externalHandlerCatalog:i,addEventBlock:a,upsertEventBlock:u,removeEventBlock:s,addEventRoot:f,updateEventRoot:l}=Ge(),[g,b,h]=L1([]),[y,v,w]=N1([]),M=P[t(1142)](g);M[t(532)]=g;const[m,C]=P.useState(null),[p,E]=P[t(280)](!1),[O]=z[t(386)][t(666)](),U=z[t(386)][t(1616)]("eventType",O),[Y,W]=P[t(280)](null),[Q,R]=P[t(280)](!1),[X]=z[t(386)][t(666)](),V=z.Form[t(1616)]("executorType",X),L=z[t(386)].useWatch("builtinId",X),D=z[t(386)][t(1616)](t(1372),X),B=P.useMemo(()=>!Q||!Y?[]:sc(Y.id,g,y),[Q,Y,g,y]),j=P[t(1142)](()=>{}),A=P.useRef(()=>{});P[t(1189)](()=>{const N=t;if(Q&&Y){const T=Y.builtinConfig??{},{outputs:J,...G}=Y;X[N(785)]({...G,executorType:Y.executorType??N(509),builtinId:Y[N(1731)],inputs:Y[N(1372)]??[],builtinConfig:{content:String(T[N(1477)]??""),level:String(T.level??N(1518)),duration:T[N(794)]===void 0||T.duration===null?void 0:Number(T[N(794)])}})}},[Q,Y,X]);const S=P[t(275)](N=>{v(T=>fa(N,T))},[v]),Z=N=>{const T=t,J={bindNodeId:N[T(583)],eventType:N[T(1653)],externalEventKey:N[T(1653)]==="external"?(N.externalEventKey||"")[T(578)]():void 0,flowData:{nodes:[],edges:[]},enabled:!0},G=f(J);C({...J,id:G}),O[T(1183)](),E(!1),z.message[T(647)](T(179))},K=P.useCallback(N=>{const T=t;s(N),b(J=>J[T(805)](G=>G.id!==N)),v(J=>J[T(805)](G=>G[T(344)]!==N&&G.target!==N))},[s,b,v]),H=P[t(275)](N=>{const T=t,J=M.current.find(te=>te.id===N)?.[T(773)]?.[T(1373)],G=r.eventBlocks[T(279)](te=>te.id===N),k=J??G;k?(W({...k,id:N}),R(!0)):z[T(1294)][T(1480)](T(417))},[r[t(595)]]);j.current=H,A[t(532)]=K,P[t(1189)](()=>{const N=t;if(n&&m){const T=m[N(980)][N(307)].map(G=>({id:G.id,type:N(1373),position:G[N(1748)],data:{label:G[N(773)][N(453)],eventBlock:G[N(773)].eventBlock,onEdit:k=>j[N(532)](k),onDelete:k=>A[N(532)](k)}})),J=m[N(980)][N(221)].map(G=>({id:G.id,source:G[N(344)],target:G[N(1122)]}));b(T),v(J)}},[n,m,b,v]);const F=()=>{const N=t,T={name:N(577),executorType:N(509),callback:N(338),inputs:[],outputs:[]},J=a(T),G={...T,id:J},k={id:J,type:"eventBlock",position:{x:100+g[N(1849)]*50,y:100+g[N(1849)]*30},data:{label:G.name,eventBlock:G,onEdit:te=>j[N(532)](te),onDelete:te=>A[N(532)](te)}};b(te=>[...te,k])},ee=()=>{const N=t,T={name:N(569),executorType:N(536),builtinId:N(254),builtinConfig:{content:N(1584),level:N(1518)},callback:N(566),inputs:[],outputs:[]},J=a(T),G={...T,id:J},k={id:J,type:N(1373),position:{x:120+g[N(1849)]*50,y:140+g[N(1849)]*30},data:{label:G[N(1434)],eventBlock:G,onEdit:te=>j[N(532)](te),onDelete:te=>A[N(532)](te)}};b(te=>[...te,k])},ne=N=>{const T=t;if(!Y)return;const J=N[T(1822)]??Y[T(1822)]??T(509),G={name:N[T(1434)],callback:N[T(233)]??Y[T(233)],executorType:J,dataRequestKey:J===T(1102)?(N.dataRequestKey||"")[T(578)]():void 0,externalHandlerKey:J===T(1186)?(N[T(1029)]||"")[T(578)]():void 0,builtinId:J===T(536)?N.builtinId:void 0,builtinConfig:J===T(536)&&N.builtinId===T(254)?{content:String(N[T(614)]?.[T(1477)]??"").trim(),level:N.builtinConfig?.[T(1697)]||"info",duration:N[T(614)]?.[T(794)]===null||N[T(614)]?.[T(794)]===void 0?void 0:Number(N[T(614)][T(794)])}:void 0},k=N.inputs??[],te=k[T(805)](ye=>ye?.[T(1434)]&&String(ye.name)[T(578)]()),de={...Y,...G,inputs:te,outputs:[]};u(de),b(ye=>ye[T(1197)](le=>le.id===Y.id?{...le,data:{...le.data,label:de[T(1434)]||le[T(773)].label,eventBlock:de}}:le)),R(!1),W(null),z[T(1294)][T(647)](T(1383))},xe=()=>{const N=t;if(!m)return;const T=g[N(1197)](G=>{const k=N,te=y[k(805)](le=>le[k(1122)]===G.id),de=G[k(773)][k(1373)],ye={...de,outputs:[]};return{id:G.id,eventBlockId:G.id,position:G.position,inputs:te[k(1197)](le=>le[k(344)]),outputs:y[k(805)](le=>le[k(344)]===G.id)[k(1197)](le=>le[k(1122)]),data:{label:G.data[k(453)],eventBlock:ye,inputMapping:lh(te,ye)}}}),J=y[N(1197)](G=>({id:G.id,source:G.source,target:G[N(1122)]}));l(m.id,{flowData:{nodes:T,edges:J}}),R0[N(141)]({...m,flowData:{nodes:T,edges:J}}),z[N(1294)][N(647)](N(941)),e()},se=P[t(1341)](()=>o[t(1197)](N=>({label:N[t(1434)],value:N.id})),[o]),ae=P.useMemo(()=>x?r[t(405)][t(805)](N=>N[t(583)]===x):r[t(405)],[r.eventRoots,x]);return n?d[t(1324)](z[t(199)],{title:t(1305),open:n,onCancel:e,width:1200,footer:null,styles:{body:{height:700,padding:0}},children:[m?d[t(1324)](t(315),{className:t(1461),style:{height:700},children:[d.jsxs(t(315),{className:t(977),children:[d[t(1203)](z[t(337)],{children:d[t(1324)](t(1082),{className:t(172),children:["编辑: ",jr(m)," →"," ",o[t(279)](N=>N.id===m[t(583)])?.name]})}),d[t(1324)](z[t(337)],{children:[d[t(1203)](z[t(651)],{icon:d[t(1203)](ue.PlusOutlined,{}),onClick:F,children:t(1528)}),d[t(1203)](z.Button,{icon:d[t(1203)](ue[t(1505)],{}),onClick:ee,children:t(569)}),d.jsx(z[t(651)],{type:"primary",icon:d.jsx(ue[t(1511)],{}),onClick:xe,children:"保存"}),d.jsx(z[t(651)],{icon:d[t(1203)](ue.CloseOutlined,{}),onClick:()=>C(null),children:t(1270)})]})]}),d[t(1203)](t(315),{className:"flex-1",children:d[t(1324)](D1,{nodes:g,edges:y,onNodesChange:h,onEdgesChange:w,onConnect:S,nodeTypes:ch,fitView:!0,children:[d.jsx(A1,{}),d[t(1203)](G1,{}),d[t(1203)]($1,{})]})})]}):d[t(1324)](t(315),{className:t(1112),children:[d.jsxs(t(315),{className:t(1818),children:[d[t(1203)]("h3",{className:t(1696),children:t(1237)}),d[t(1203)](z[t(651)],{type:t(834),icon:d.jsx(ue[t(1505)],{}),onClick:()=>E(!0),children:t(1430)})]}),d[t(1203)](z[t(1633)],{dataSource:ae,renderItem:N=>d[t(1203)](z[t(1633)][t(487)],{actions:[d[t(1203)](z[t(651)],{type:t(834),icon:d[t(1203)](ue[t(1073)],{}),onClick:()=>C(N),children:"编辑"},t(1484))],children:d[t(1203)](z[t(1633)][t(487)][t(312)],{title:d[t(1324)](z[t(337)],{children:[d[t(1324)]("span",{children:[t(1559),jr(N)]}),d[t(1203)](z.Tag,{color:t(457),children:o.find(T=>T.id===N[t(583)])?.[t(1434)]||N[t(583)]})]}),description:t(1439)+N.flowData[t(307)][t(1849)]+t(1228)+N.flowData.edges[t(1849)]})}),locale:{emptyText:d.jsx(z[t(376)],{description:t(1068)})}}),d[t(1203)](z.Modal,{title:t(1430),open:p,onCancel:()=>{O[t(1183)](),E(!1)},footer:null,afterOpenChange:N=>{const T=t;N&&(O.resetFields(),x&&O[T(785)]({bindNodeId:x}))},children:d[t(1324)](z[t(386)],{form:O,onFinish:Z,layout:"vertical",children:[d[t(1203)](z[t(386)][t(487)],{name:t(583),label:t(1641),rules:[{required:!0,message:t(585)}],initialValue:x,children:d.jsx(z[t(1842)],{options:se,placeholder:t(1707),disabled:!!x})}),d[t(1203)](z.Form[t(487)],{name:t(1653),label:t(231),rules:[{required:!0,message:t(1152)}],children:d[t(1203)](z.Select,{options:lc,placeholder:t(1033)})}),U===t(1186)&&d[t(1203)](z.Form[t(487)],{name:t(316),label:t(728),rules:[{required:!0,message:t(1042)},{validator:(N,T)=>(T||"")[t(578)]()?Promise.resolve():Promise[t(1764)](new Error(t(929)))}],extra:"与 eventBus.emitExternal(节点id, 该标识) 一致",children:d.jsx(z[t(246)],{placeholder:"例如:refresh"})}),d.jsx(z[t(386)][t(487)],{className:t(853),children:d[t(1324)](z.Space,{className:t(917),children:[d[t(1203)](z[t(651)],{onClick:()=>{O[t(1183)](),E(!1)},children:"取消"}),d.jsx(z[t(651)],{type:"primary",htmlType:t(1400),children:"创建"})]})})]})})]}),d.jsx(z.Modal,{title:t(272),open:Q,onCancel:()=>{R(!1),W(null)},footer:null,destroyOnClose:!0,children:d[t(1324)](z.Form,{form:X,onFinish:ne,layout:t(1230),children:[d.jsx(z.Form.Item,{name:t(1434),label:"名称",rules:[{required:!0,message:t(1757)}],children:d.jsx(z[t(246)],{})}),d.jsx(z[t(386)][t(487)],{name:"executorType",label:t(1101),rules:[{required:!0,message:t(830)}],children:d[t(1203)](z[t(1842)],{options:sh,placeholder:"不同方式对应下方不同配置项"})}),V===t(536)&&d.jsx(z[t(386)].Item,{name:t(1731),label:"内置动作",rules:[{required:!0,message:t(706)}],children:d[t(1203)](z[t(1842)],{options:rh,placeholder:t(1834)})}),V==="builtin"&&L===t(254)&&d[t(1324)](d[t(1123)],{children:[d[t(1203)](z.Form[t(487)],{name:[t(614),t(1477)],label:t(895),rules:[{required:!0,message:t(411)}],extra:t(224),children:d[t(1203)](z[t(246)][t(1488)],{rows:3,placeholder:"例如:保存成功 或 结果:{{prev}}"})}),d[t(1203)](z.Form[t(487)],{name:["builtinConfig","level"],label:t(249),children:d[t(1203)](z[t(1842)],{options:ih})}),d[t(1203)](z.Form[t(487)],{name:[t(614),t(794)],label:"持续时间(秒)",extra:t(970),children:d.jsx(z[t(291)],{min:0,step:.5,style:{width:t(1322)},placeholder:"默认"})})]}),V===t(1102)&&d[t(1203)](z[t(386)][t(487)],{name:t(1138),label:t(1128),rules:[{required:!0,message:t(317)},{validator:(N,T)=>(T||"").trim()?Promise[t(923)]():Promise[t(1764)](new Error(t(929)))}],extra:"运行时 eventBus.setDefaultRuntimeHandlers({ dataRequest: { [标识]: (ctx, args) => ... } })",children:d[t(1203)](z[t(246)],{placeholder:t(1241)})}),V===t(1186)&&d[t(1203)](z[t(386)].Item,{name:t(1029),label:"外部方法标识",rules:[{required:!0,message:"请填写外部方法标识"},{validator:(N,T)=>(T||"")[t(578)]()?Promise.resolve():Promise[t(1764)](new Error(t(929)))}],extra:i[t(1849)]>0?"来自 ConfigEditor 的 externalEventActions;也可在运行时 eventBus.mergeDefaultRuntimeHandlers({ external }) 补充":"未配置下拉时手动填写 key;宿主可用 ConfigEditor externalEventActions 注册选项与 handler,或 eventBus.mergeDefaultRuntimeHandlers",children:i.length>0?d.jsx(z[t(1842)],{showSearch:!0,optionFilterProp:t(453),allowClear:!0,placeholder:t(994),options:i[t(1197)](N=>({value:N[t(420)],label:N[t(453)],title:N[t(374)]?N[t(453)]+t(993)+N[t(374)]:N.label+" ("+N[t(420)]+")"}))}):d[t(1203)](z[t(246)],{placeholder:"例如:navigateTo、openDialog"})}),V===t(509)&&d[t(1203)](z.Form[t(487)],{name:t(233),label:"执行代码",rules:[{validator:(N,T)=>{const J=t;return typeof T===J(1077)&&T.trim()?Promise.resolve():Promise[J(1764)](new Error(J(1420)))}}],children:d[t(1203)](z[t(246)][t(1488)],{rows:6,placeholder:t(1828)})}),B.length>0&&d[t(1324)]("div",{className:t(717),children:[d[t(1203)](t(315),{className:t(452),children:t(341)}),d.jsx("ul",{className:"list-none space-y-2 m-0 p-0",children:B[t(1197)](N=>{const T=t,J=D??Y?.[T(1372)]??[],G=dh(N[T(545)],N[T(1408)],J);return d.jsxs("li",{className:"pl-2 border-l-2 border-amber-300",children:[d[T(1324)](T(315),{className:"text-gray-800",children:["第 ",N[T(545)]+1,T(677),N[T(1338)],"」:上游",d[T(1203)](T(1044),{children:T(177)})," →"," ",d.jsxs("code",{className:T(880),children:[T(232),G]})]}),d.jsxs(T(315),{className:T(1462),children:["在下方第 ",N[T(545)]+1,T(1851)]})]},N[T(1159)])})})]}),d[t(1203)](t(315),{className:t(875),children:t(413)}),d[t(1324)](t(315),{className:"text-xs text-gray-500 mb-2",children:[t(1113)," ",d[t(1203)]("code",{children:"args.prev"}),t(1300),d.jsx("code",{children:t(1650)}),"、",d[t(1203)](t(1543),{children:"args.prev1"}),"…"]}),d[t(1203)](z[t(386)][t(1633)],{name:t(1372),children:(N,{add:T,remove:J})=>d[t(1324)](d[t(1123)],{children:[N[t(1197)](({key:G,name:k,...te})=>d.jsxs(z[t(337)],{align:t(351),wrap:!0,className:t(490),children:[d[t(1203)](z[t(386)][t(487)],{...te,name:[k,"name"],rules:[{required:!0,message:"名称"}],children:d[t(1203)](z[t(246)],{placeholder:"参数名,如 A",style:{width:140}})}),d[t(1203)](z[t(386)][t(487)],{...te,name:[k,t(871)],initialValue:"any",children:d[t(1203)](z.Select,{options:uh,style:{width:100}})}),d.jsx(ue[t(201)],{className:t(593),onClick:()=>J(k)})]},G)),d[t(1203)](z[t(651)],{type:t(1190),onClick:()=>T({type:t(1206)}),block:!0,icon:d[t(1203)](ue[t(1505)],{}),children:t(1316)})]})}),d[t(1203)](z.Form[t(487)],{className:t(1701),children:d[t(1324)](z[t(337)],{className:t(917),children:[d.jsx(z[t(651)],{onClick:()=>{R(!1),W(null)},children:"取消"}),d[t(1203)](z[t(651)],{type:"primary",htmlType:t(1400),children:"保存"})]})})]})})]}):null},ht={click:"点击",mouseDown:"鼠标按下",mouseUp:c(729),doubleClick:"双击",mouseOver:c(1825),mouseLeave:c(474),mouseEnter:c(915),contextMenu:"右键菜单",dataRequest:c(1507),external:c(1298)};function hh(n){const e=c;if(n[e(1653)]===e(1186)){const x=(n[e(316)]||"")[e(578)]();return x?ht.external+e(429)+x:ht.external}return ht[n[e(1653)]]}const bh=Object[c(1676)](ht)[c(1197)](([n,e])=>({label:e,value:n})),gh=({nodeId:n})=>{const e=c,{eventFlow:x,addEventRoot:t,updateEventRoot:o,removeEventRoot:r}=Ge(),[i,a]=P[e(280)](!1),[u,s]=P[e(280)](null),[f,l]=P[e(280)](!1),[g]=z[e(386)][e(666)](),b=z[e(386)][e(1616)](e(1653),g),h=P[e(1341)](()=>{const m=e;return x[m(405)].filter(C=>C[m(583)]===n)},[x[e(405)],n]),y=m=>{const C=e,p={bindNodeId:n,eventType:m.eventType,externalEventKey:m.eventType===C(1186)?(m[C(316)]||"").trim():void 0,flowData:{nodes:[],edges:[]},enabled:!0};t(p),g[C(1183)](),l(!1)},v=m=>{s(m),a(!0)},w=(m,C)=>{o(m.id,{enabled:C})},M=m=>{r(m)};return d[e(1324)](e(315),{children:[d.jsxs(e(315),{className:"flex justify-between items-center mb-4",children:[d.jsx("h4",{className:e(1755),children:e(1841)}),d.jsx(z[e(651)],{type:e(834),size:e(1224),icon:d[e(1203)](ue.PlusOutlined,{}),onClick:()=>l(!0),children:e(642)})]}),d[e(1203)](z[e(1633)],{dataSource:h,renderItem:m=>d.jsx(z[e(1633)].Item,{actions:[d[e(1203)](z[e(990)],{checked:m[e(428)],size:e(1224),onChange:C=>w(m,C)},"enable"),d.jsx(z[e(651)],{type:"text",size:e(1224),icon:d[e(1203)](ue.EditOutlined,{}),onClick:()=>v(m)},e(1484)),d[e(1203)](z[e(1240)],{title:"确认删除",description:e(488),onConfirm:()=>M(m.id),children:d[e(1203)](z[e(651)],{type:e(969),danger:!0,size:"small",icon:d[e(1203)](ue[e(1654)],{})})},"delete")],children:d[e(1203)](z[e(1633)][e(487)].Meta,{title:d[e(1324)](z[e(337)],{children:[d[e(1203)](z[e(1859)],{color:m[e(428)]?e(457):"default",children:hh(m)}),d[e(1324)](e(1082),{className:"text-xs text-gray-400",children:[m[e(980)][e(307)][e(1849)],e(696)]})]}),description:m[e(428)]?d[e(1203)](e(1082),{className:e(971),children:"已启用"}):d.jsx(e(1082),{className:e(825),children:e(265)})})}),locale:{emptyText:d[e(1203)](z.Empty,{image:z[e(376)].PRESENTED_IMAGE_SIMPLE,description:e(1854)})}}),d.jsx(z.Modal,{title:e(642),open:f,onCancel:()=>{g[e(1183)](),l(!1)},footer:null,afterOpenChange:m=>{m&&g[e(1183)]()},children:d[e(1324)](z.Form,{form:g,onFinish:y,layout:e(1230),children:[d.jsx(z[e(386)].Item,{name:e(1653),label:e(231),rules:[{required:!0,message:"请选择触发方式"}],children:d[e(1203)](z[e(1842)],{options:bh,placeholder:e(952)})}),b===e(1186)&&d.jsx(z[e(386)].Item,{name:e(316),label:e(728),rules:[{required:!0,message:e(1042)},{validator:(m,C)=>(C||"")[e(578)]()?Promise[e(923)]():Promise[e(1764)](new Error(e(929)))}],extra:"与运行时 eventBus.emitExternal(节点id, 该标识) 一致,例如:refresh、dialog:opened",children:d[e(1203)](z.Input,{placeholder:e(1683)})}),d[e(1203)](z[e(386)].Item,{className:e(853),children:d[e(1324)](z[e(337)],{className:"w-full justify-end",children:[d[e(1203)](z[e(651)],{onClick:()=>l(!1),children:"取消"}),d[e(1203)](z.Button,{type:"primary",htmlType:e(1400),children:"创建"})]})})]})}),d[e(1203)](fh,{open:i,onClose:()=>{a(!1),s(null)},bindNodeId:n})]})},{Panel:p0}=z.Collapse,{TabPane:ot}=z.Tabs,{TextArea:yh}=z[c(246)],dc=({defaultTestData:n})=>{const e=c,{nodes:x,selectedNodeId:t,updateNode:o,updateNodeStyle:r,updateNodeControl:i,updateNodeContent:a,materials:u,selectedStatusId:s,selectStatus:f}=Ge(),[l]=z[e(386)][e(666)](),[g,b]=P[e(280)](e(948)),[h,y]=P[e(280)](!1),[v,w]=P[e(280)](null),[M,m]=P[e(280)]({}),C=P[e(1341)](()=>x.find(D=>D.id===t),[x,t]),p=C?.contentInfo[e(625)]||[],E=D=>{const B=e;t&&(D.normalStyle&&r(t,D.normalStyle),D[B(1434)]!==void 0&&o(t,{name:D[B(1434)]}),D[B(1622)]&&i(t,D.controlInfo))};console[e(1339)](t,"selectedNodeId",C),P.useEffect(()=>{const D=e;C&&C&&(l.setFieldsValue({name:C[D(1434)],normalStyle:{width:100,height:100,x:0,y:0,padding:8,background:D(759),borderRadius:0,opacity:1,...C[D(603)]},controlInfo:{isDraggable:!0,isClickable:!0,isResizable:!0,isSelectable:!0,...C.controlInfo}}),f(null))},[C,f,l]);const O=()=>{!t||!C||(w("new"),y(!0))},U=D=>{const B=e;if(!t||!C)return;const j={id:Ce[B(1179)](),name:D[B(1434)]+B(649)+(p.length+1),expression:p[B(1849)]===0?"return true;":"return false;",material:{...D,id:Ce.nanoid()},boundDatasetId:null};if(v===B(1659)){const A=[...p,j];a(t,{statusList:A})}else if(v){const A=p.map(S=>{const Z=B;return S.id===v?{...S,material:{...D,id:Ce[Z(1179)]()}}:S});a(t,{statusList:A})}y(!1),w(null)},Y=D=>{const B=e;if(!t||!C)return;const j=C[B(518)].statusList?.filter(A=>A.id!==D)||[];a(t,{statusList:j}),s===D&&f(null)},W=(D,B)=>{const j=e;if(!t||!C)return;const A=C[j(518)][j(625)]?.[j(1197)](S=>S.id===D?{...S,...B}:S)||[];a(t,{statusList:A})},Q=D=>{const B=e;if(!t||!C)return;const j={...D,id:Ce[B(1179)](),name:D[B(1434)]+"_复制",expression:B(142)},A=[...p,j];a(t,{statusList:A})},R=(D,B)=>{const j=e;if(!t||!C)return;const A=p[j(955)](Z=>Z.id===D);if(A===-1)return;const S=[...p];B==="up"&&A>0?[S[A],S[A-1]]=[S[A-1],S[A]]:B===j(1180)&&A<S[j(1849)]-1&&([S[A],S[A+1]]=[S[A+1],S[A]]),a(t,{statusList:S})},X=D=>{w(D),y(!0)},V=(D,B)=>{const j=e,A=B.config||{},S=A.startX??0,Z=A.startY??0,K=A[j(1406)]??100,H=A[j(1576)]??0,F=Math.max((A[j(261)]||A[j(1192)]||2)*2,4),ee=Math[j(309)](S,K),ne=Math.min(Z,H),xe=Math.max(S,K),se=Math[j(1204)](Z,H),ae=Math[j(1204)](xe-ee,F),N=Math[j(1204)](se-ne,F),T=D[j(603)].x||0,J=D[j(603)].y||0;return{material:{...B,config:{...A,startX:S-ee,startY:Z-ne,endX:K-ee,endY:H-ne}},box:{x:T+ee,y:J+ne,width:ae,height:N}}},L=(D,B)=>{const j=e;if(!t||!C)return;const{list:A,lineBox:S}=p[j(1258)]((Z,K)=>{const H=j;if(K.id!==D)return Z[H(784)][H(268)](K),Z;let F;if(K[H(743)][H(871)]===H(213)&&H(1827)in B&&B[H(1827)]!==void 0){const ee=K.material,ne=B.config;F={...ee,...B,config:{...ee[H(1827)]||{},...ne}}}else F={...K[H(743)],...B};if(F.type===H(213)){const{material:ee,box:ne}=V(C,F);return Z[H(784)][H(268)]({...K,material:ee}),Z[H(527)]=ne,Z}return Z.list[H(268)]({...K,material:F}),Z},{list:[],lineBox:null});S!==null?o(t,{normalStyle:{...C[j(603)],x:S.x,y:S.y,width:S[j(531)],height:S[j(1348)]},contentInfo:{...C.contentInfo,statusList:A}}):a(t,{statusList:A})};return C?d.jsxs(e(315),{className:e(1722),children:[d[e(1324)]("div",{className:e(424),children:[d[e(1203)]("h3",{className:e(768),children:e(1248)}),d[e(1203)]("p",{className:e(609),children:e(1327)})]}),d[e(1203)]("div",{className:e(382),children:d[e(1324)](z[e(187)],{activeKey:g,onChange:b,children:[d[e(1203)](ot,{tab:"基础",children:d[e(1324)](z[e(386)],{form:l,layout:e(1230),onValuesChange:E,initialValues:{name:C[e(1434)]},children:[d[e(1203)](z[e(386)][e(487)],{label:e(1831),name:"name",children:d[e(1203)](z.Input,{placeholder:e(1601)})}),d.jsxs(z[e(709)],{ghost:!0,defaultActiveKey:[e(1748),"size",e(165)],children:[d.jsx(p0,{header:"位置",children:d.jsxs(z[e(337)],{children:[d[e(1203)](z.Form[e(487)],{label:"X",name:["normalStyle","x"],children:d[e(1203)](z[e(291)],{})}),d[e(1203)](z[e(386)][e(487)],{label:"Y",name:[e(603),"y"],children:d[e(1203)](z[e(291)],{})})]})},e(1748)),d[e(1203)](p0,{header:"尺寸",children:d[e(1324)](z[e(337)],{children:[d.jsx(z[e(386)][e(487)],{label:"宽度",name:[e(603),e(531)],children:d.jsx(z[e(291)],{min:10})}),d.jsx(z[e(386)][e(487)],{label:"高度",name:[e(603),e(1348)],children:d.jsx(z.InputNumber,{min:10})})]})},e(949)),d[e(1324)](p0,{header:"样式",children:[d[e(1203)](z[e(386)].Item,{label:e(1185),name:[e(603),"background"],children:d[e(1203)](z[e(246)],{placeholder:e(1646)})}),d[e(1203)](z[e(386)][e(487)],{label:e(234),name:[e(603),"padding"],children:d[e(1203)](z[e(291)],{min:0})}),d[e(1203)](z.Form[e(487)],{label:"圆角",name:["normalStyle",e(959)],children:d[e(1203)](z[e(291)],{min:0})}),d[e(1203)](z.Form[e(487)],{label:e(1289),name:[e(603),e(796)],help:"等比缩放节点的宽高",children:d[e(1203)](z.InputNumber,{min:.1,max:5,step:.1})}),d[e(1203)](z[e(386)][e(487)],{label:"旋转角度",name:[e(603),e(447)],help:"顺时针旋转角度(度)",children:d[e(1203)](z[e(291)],{min:0,max:360,step:1})}),d.jsx(z[e(386)].Item,{label:"透明度",name:[e(603),"opacity"],children:d[e(1203)](z[e(291)],{min:0,max:1,step:.1})}),d[e(1203)](z.Form[e(487)],{label:"层级",name:["normalStyle","zIndex"],children:d[e(1203)](z[e(291)],{})})]},"style")]})]})},e(948)),d[e(1203)](ot,{tab:"状态",children:C.type===e(898)&&C[e(684)]?d.jsx(Js,{node:C,updateNode:o,materials:u}):d[e(1324)](e(315),{className:"mb-4",children:[d[e(1324)](e(315),{className:"flex items-center justify-between mb-2",children:[d[e(1324)]("span",{className:e(172),children:[e(1715),d.jsx(z[e(1859)],{color:e(457),className:e(1395),children:p[e(1849)]})]}),d[e(1203)](z[e(651)],{type:"primary",size:e(1224),icon:d[e(1203)](ue[e(1505)],{}),onClick:O,children:"添加状态"})]}),d[e(1203)]("p",{className:e(1272),children:"节点根据状态表达式计算结果显示对应物料,第一个返回 true 的状态为当前状态"}),p[e(1849)]>0&&d[e(1203)](e(315),{className:e(1806),children:d[e(1203)]("div",{className:e(1081),children:d.jsxs(e(315),{children:[d[e(1203)](e(1082),{className:e(1309),children:"当前状态:"}),d[e(1203)](e(1082),{className:e(492),children:e(298)})]})})}),p[e(1849)]===0?d.jsx(e(315),{className:"text-center text-gray-400 py-4 bg-gray-50 rounded-lg",children:e(1777)}):d[e(1203)](z.Collapse,{ghost:!0,defaultActiveKey:p[0]?.id+t,children:p[e(1197)]((D,B)=>d.jsx(p0,{header:d[e(1324)](e(315),{className:e(606),children:[d[e(1203)](e(1082),{className:e(1016),children:B+1}),d.jsx(e(1082),{className:e(172),children:D[e(1434)]}),d.jsx(z[e(1859)],{color:e(943),className:e(700),children:D[e(743)].type})]}),extra:d[e(1324)](z[e(337)],{size:e(1224),onClick:j=>j.stopPropagation(),children:[d[e(1203)](z[e(651)],{type:"text",size:"small",icon:d[e(1203)](ue[e(630)],{}),disabled:B===0,onClick:j=>{j[e(1815)](),R(D.id,"up")}}),d[e(1203)](z[e(651)],{type:e(969),size:e(1224),icon:d.jsx(ue[e(946)],{}),disabled:B===p.length-1,onClick:j=>{const A=e;j[A(1815)](),R(D.id,A(1180))}}),d[e(1203)](z[e(651)],{type:e(969),size:e(1224),icon:d.jsx(ue.CopyOutlined,{}),onClick:j=>{j.stopPropagation(),Q(D)}}),d[e(1203)](z[e(651)],{type:e(969),size:"small",danger:!0,icon:d.jsx(ue[e(1654)],{}),onClick:j=>{j[e(1815)](),Y(D.id)}})]}),children:d.jsxs(z[e(386)],{layout:"vertical",children:[d.jsx(z[e(386)][e(487)],{label:e(1245),children:d[e(1203)](z.Input,{value:D[e(1434)],onChange:j=>W(D.id,{name:j[e(1122)].value}),placeholder:e(454)})}),d[e(1203)](yi,{status:D,onUpdate:j=>W(D.id,j),onAppendToExpression:j=>{m(A=>({...A,[D.id]:(A[D.id]??D.expression)+j}))}}),d[e(1203)](z[e(386)][e(487)],{label:e(206),help:e(1302),children:d[e(1203)](yh,{value:M[D.id]??D[e(1455)],onChange:j=>m(A=>({...A,[D.id]:j[e(1122)][e(160)]})),onBlur:j=>{const A=e;W(D.id,{expression:j.target[A(160)]}),m(S=>{const Z={...S};return delete Z[D.id],Z})},rows:3,placeholder:"return true;"})}),d[e(1203)](z[e(386)][e(487)],{label:e(1381),children:d.jsxs(e(315),{className:e(606),children:[d[e(1203)](z[e(1859)],{color:"blue",children:D.material[e(1434)]}),d.jsx(z[e(1859)],{color:e(943),children:D[e(743)][e(871)]}),d[e(1203)](z[e(651)],{type:e(370),size:e(1224),icon:d[e(1203)](ue[e(1073)],{}),onClick:()=>X(D.id),children:e(616)})]})}),d[e(1203)](z[e(1119)],{style:{margin:e(966)}}),d[e(1324)](e(315),{className:e(311),children:[d[e(1324)](e(315),{className:e(1494),children:[d[e(1203)](e(1082),{className:e(1755),children:"物料属性"}),d[e(1203)](z[e(1859)],{children:D[e(743)][e(1434)]})]}),d[e(1203)](mi,{material:D.material,onSave:j=>L(D.id,j),dataOptions:n||[]})]})]})},D.id+t))})]})},e(1750)),d[e(1203)](ot,{tab:"控制",children:d[e(1324)](z[e(386)],{form:l,layout:e(1230),onValuesChange:E,children:[d[e(1203)](z[e(386)][e(487)],{label:"可拖拽",name:[e(1622),e(330)],valuePropName:e(604),children:d[e(1203)](z[e(990)],{})}),d[e(1203)](z.Form.Item,{label:e(629),name:["controlInfo",e(1691)],valuePropName:e(604),children:d[e(1203)](z[e(990)],{})}),d[e(1203)](z.Form[e(487)],{label:e(1353),name:[e(1622),e(646)],valuePropName:e(604),children:d[e(1203)](z.Switch,{})}),d.jsx(z[e(386)][e(487)],{label:e(530),name:[e(1622),"isSelectable"],valuePropName:e(604),children:d[e(1203)](z[e(990)],{})})]})},e(926)),d[e(1203)](ot,{tab:"事件流",children:d[e(1203)](gh,{nodeId:C.id})},e(1330))]})}),d[e(1203)](e(315),{className:"p-3 border-t border-gray-200 bg-gray-50",children:d[e(1324)](e(315),{className:"text-xs text-gray-500",children:[d[e(1324)](e(315),{children:[e(493),C.id[e(1250)](0,8),e(681)]}),d[e(1324)](e(315),{children:["状态数: ",p[e(1849)]]})]})}),d[e(1203)](z[e(199)],{title:e(626),open:h,onCancel:()=>{y(!1),w(null)},footer:null,width:600,children:d[e(1203)](e(315),{className:e(1108),children:d[e(1324)](z.Collapse,{ghost:!0,defaultActiveKey:[e(948),e(1072),"text",e(845)],children:[d[e(1203)](p0,{header:e(849),children:d[e(1203)](e(315),{className:e(1700),children:u[e(805)](D=>["矩形","圆形",e(1492)].includes(D[e(1434)]))[e(1197)](D=>d.jsx(Yr,{material:D,onClick:()=>U(D)},D.id))})},"basic"),d[e(1203)](p0,{header:"设备图标",children:d.jsx("div",{className:"grid grid-cols-4 gap-2",children:u.filter(D=>["阀门","泵","罐体"][e(617)](D[e(1434)])||D[e(871)]===e(1401)&&!["矩形","圆形",e(1492)].includes(D[e(1434)]))[e(1197)](D=>d[e(1203)](Yr,{material:D,onClick:()=>U(D)},D.id))})},e(1072)),d[e(1203)](p0,{header:"文本",children:d[e(1203)](e(315),{className:e(1700),children:u.filter(D=>D[e(871)]==="TEXT").map(D=>d[e(1324)](e(315),{className:"border rounded-lg p-2 cursor-pointer hover:border-blue-500 hover:bg-blue-50 transition-all text-center",onClick:()=>U(D),children:[d[e(1203)]("div",{className:e(1665),children:d.jsx(e(1082),{className:"text-lg font-bold text-gray-500",children:"T"})}),d[e(1203)](e(1082),{className:"text-xs",children:D.name})]},D.id))})},e(969)),d[e(1203)](p0,{header:"线条",children:d[e(1203)](e(315),{className:e(1700),children:u[e(805)](D=>D[e(871)]==="LINE")[e(1197)](D=>d[e(1324)](e(315),{className:e(573),onClick:()=>U(D),children:[d[e(1203)](e(315),{className:e(1665),children:d.jsx(e(315),{className:"w-8 h-0.5 bg-gray-400"})}),d[e(1203)](e(1082),{className:"text-xs",children:D.name})]},D.id))})},"line")]})})})]}):d.jsx("div",{className:e(399),children:d[e(1203)](z[e(376)],{description:e(1823)})})},Yr=({material:n,onClick:e})=>{const x=c,t=n.type===x(1401)?n[x(1332)]:void 0;return d[x(1324)](x(315),{className:x(573),onClick:e,children:[d[x(1203)](x(315),{className:"w-12 h-12 mx-auto mb-1 flex items-center justify-center",children:t?d[x(1203)](x(1166),{src:t,alt:n[x(1434)],className:"w-10 h-10 object-contain"}):d.jsx(x(1082),{className:x(700),children:n[x(1434)][0]})}),d.jsx(x(1082),{className:x(700),children:n[x(1434)]})]})},mh="ConfigEditor-module__configEditor__dinNG",vh={configEditor:mh},kr=c(1688),uc=({open:n,onClose:e})=>{const x=c,{dataPool:t,addDataPoolItem:o,updateDataPoolItem:r,removeDataPoolItem:i}=Ge(),[a]=z[x(386)][x(666)](),[u,s]=P[x(280)](null);P[x(1189)](()=>{const y=x;!n&&(s(null),a[y(1183)]())},[n,a]);const f=()=>{const y=x;s(y(1370)),a[y(785)]({name:y(824)+(t[y(1849)]+1),sampleJson:kr[y(578)]()})},l=y=>{const v=x;s(y.id),a.setFieldsValue({name:y[v(1434)],sampleJson:JSON[v(631)](y.sample??{},null,2)})},g=y=>{const v=x,w=y[v(578)]();if(!w)return{};const M=JSON.parse(w);if(M===null||typeof M!==v(325)||Array[v(171)](M))throw new Error(v(961));return M},b=()=>{const y=x;a[y(889)]()[y(1191)](v=>{const w=y;let M;try{M=g(v[w(1132)])}catch(C){z[w(1294)][w(859)](C instanceof Error?C[w(1294)]:w(1445));return}const m=v[w(1434)][w(578)]();if(!m){z[w(1294)][w(859)](w(1757));return}u===w(1370)?(o({name:m,sample:M}),z[w(1294)].success(w(181))):u&&(r(u,{name:m,sample:M}),z[w(1294)][w(647)](w(167))),s(null),a[w(1183)]()}).catch(()=>{})},h=[{title:"名称",dataIndex:x(1434),key:x(1434)},{title:"字段数",key:"keys",width:90,render:(y,v)=>Object[x(1673)](v[x(840)]||{})[x(1849)]},{title:"操作",key:x(149),width:160,render:(y,v)=>d[x(1324)](z.Space,{children:[d[x(1203)](z.Button,{type:x(370),size:"small",icon:d.jsx(ue[x(1073)],{}),onClick:()=>l(v),children:"编辑"}),d[x(1203)](z[x(1240)],{title:"删除该数据集?",description:"所有绑定此数据集的状态将自动解除绑定。",onConfirm:()=>{const w=x;i(v.id),z.message.success(w(1321))},children:d[x(1203)](z[x(651)],{type:x(370),size:x(1224),danger:!0,icon:d[x(1203)](ue[x(1654)],{}),children:"删除"})})]})}];return d[x(1324)](z[x(199)],{title:"数据池(节点状态用)",open:n,onCancel:e,width:760,footer:null,destroyOnClose:!0,children:[d.jsxs("p",{className:"text-sm text-gray-500 mb-3",children:[x(1578)," ",d.jsx(x(1543),{className:x(219),children:x(433)}),",预览时以模板为底合并画布「模拟数据」。"]}),d.jsx(x(315),{className:x(754),children:d[x(1203)](z[x(651)],{type:"primary",icon:d[x(1203)](ue[x(1505)],{}),onClick:f,children:x(294)})}),u&&d[x(1324)](x(315),{className:"mb-4 p-3 border border-blue-200 rounded bg-blue-50/50",children:[d[x(1324)](x(315),{className:x(1273),children:[u==="__new__"?"新建":"编辑",x(339)]}),d[x(1324)](z[x(386)],{form:a,layout:x(1230),children:[d[x(1203)](z.Form.Item,{name:x(1434),label:"名称",rules:[{required:!0,message:"必填"}],children:d[x(1203)](z[x(246)],{placeholder:x(444)})}),d[x(1203)](z.Form[x(487)],{name:x(1132),label:"示例数据(JSON 对象)",rules:[{required:!0,message:"必填"}],children:d[x(1203)](z[x(246)][x(1488)],{rows:10,className:x(1393),placeholder:kr})}),d[x(1324)](z[x(337)],{children:[d[x(1203)](z.Button,{type:"primary",onClick:b,children:"保存"}),d[x(1203)](z[x(651)],{onClick:()=>{const y=x;s(null),a[y(1183)]()},children:"取消"})]})]})]}),d[x(1203)](z[x(873)],{size:x(1224),rowKey:"id",dataSource:t,columns:h,pagination:!1,locale:{emptyText:x(883)}})]})},{Header:wh,Sider:Or,Content:ph}=z[c(328)],Ch=({initialScheme:n,onChange:e,readonly:x=!1,headerExtra:t,className:o="",style:r,showHeader:i=!0,showMaterialPanel:a=!0,showPropertyPanel:u=!0,customMaterials:s,initialDataPool:f,initialEventFlow:l,externalEventActions:g,defaultTestData:b})=>{const h=c,[y,v]=P[h(280)](!1),[w,M]=P[h(280)](!1),[m,C]=P.useState(""),[p]=P.useState(()=>[{paramsCode:h(222),paramsName:h(982),value:25,paramsUnit:"mm/s"},{paramsCode:h(1177),paramsName:"通频加速度有效值",value:1.5,paramsUnit:"m/s²"}]),E=b!==void 0?b:p,{exportScheme:O,importScheme:U,nodes:Y,materials:W,dataPool:Q,eventFlow:R,root:X,addMaterial:V,setDataPool:L,setEventFlow:D,setExternalHandlerCatalog:B}=Ge();P.useRef(null);const j=P.useRef(!1);P[h(1189)](()=>{const H=h;if(!j[H(532)]&&(j.current=!0,W[H(1849)]===0&&Kr[H(1726)](F=>V(F)),s&&s[H(1849)]>0&&s.forEach(F=>V(F)),n&&U(n),l!==void 0&&D(l),g&&g[H(1849)]>0)){B(g);const F={};for(const ee of g){const ne=String(ee[H(420)]??"")[H(578)]();ne&&ee.handler&&(F[ne]=ee[H(579)])}Object[H(1673)](F)[H(1849)]>0&&R0[H(367)]({external:F})}},[]),P.useEffect(()=>{f!==void 0&&L(f)},[f,L]),P[h(1189)](()=>{if(e){const H=O();e(H)}},[Y,W,Q,R,X,e,O]);const A=P[h(275)](()=>{const H=h,F=O(),ee=JSON[H(631)](F,null,2),ne=H(1243)+encodeURIComponent(ee),xe=H(1681)+Date[H(1416)]()+H(1130),se=document[H(1785)]("a");se[H(846)](H(760),ne),se[H(846)]("download",xe),se.click(),z[H(1294)].success(H(819))},[O]),S=P.useCallback(()=>{const H=h;try{const F=JSON[H(998)](m);U(F),v(!1),C(""),z[H(1294)][H(647)]("导入成功!")}catch{z[H(1294)][H(859)](H(586))}},[m,U]),Z=P[h(275)](H=>{const F=h,ee=new FileReader;return ee[F(290)]=ne=>{const xe=F;try{const se=ne[xe(1122)]?.[xe(1417)],ae=JSON[xe(998)](se);U(ae),z.message[xe(647)]("导入成功!"),v(!1)}catch{z[xe(1294)][xe(859)](xe(1238))}},ee[F(1830)](H),!1},[U]),K=P.useCallback(()=>O(),[O]);return P[h(1415)](P.useRef?.(),()=>({getScheme:K,exportScheme:O,importScheme:U}),[K,O,U]),d[h(1203)](z[h(421)],{locale:Wc,children:d[h(1203)](h(315),{className:vh[h(162)],style:r,children:d[h(1324)](z[h(328)],{className:h(353)+o,children:[i&&d[h(1324)](wh,{className:h(608),children:[d.jsxs(h(315),{className:h(1624),children:[d[h(1203)](h(315),{className:h(1711),children:h(484)}),d[h(1324)](h(315),{className:h(609),children:[Y[h(1849)]," 个节点"]})]}),d[h(1324)](z[h(337)],{children:[t,!x&&d[h(1324)](d[h(1123)],{children:[d[h(1203)](z[h(770)],{title:"导出 JSON",children:d[h(1203)](z[h(651)],{icon:d[h(1203)](ue.DownloadOutlined,{}),onClick:A,children:"导出"})}),d[h(1203)](z[h(770)],{title:h(596),children:d[h(1203)](z[h(651)],{icon:d[h(1203)](ue[h(478)],{}),onClick:()=>v(!0),children:"导入"})}),d[h(1203)](z.Tooltip,{title:h(1252),children:d.jsx(z.Button,{icon:d[h(1203)](ue[h(667)],{}),onClick:()=>M(!0),children:h(855)})})]})]})]}),d[h(1324)](z.Layout,{children:[a&&!x&&d.jsx(Or,{width:280,className:"bg-white",theme:h(1111),children:d.jsx(Rr,{})}),d.jsx(ph,{className:h(143),children:d[h(1203)](gi,{defaultTestData:E})}),u&&!x&&d[h(1203)](Or,{width:360,className:h(159),theme:"light",children:d[h(1203)](dc,{defaultTestData:Array[h(171)](E)?E:void 0})})]}),d[h(1203)](uc,{open:w,onClose:()=>M(!1)}),d[h(1203)](z[h(199)],{title:"导入组态方案",open:y,onOk:S,onCancel:()=>{v(!1),C("")},width:600,children:d[h(1324)](h(315),{className:h(774),children:[d[h(1324)]("div",{children:[d[h(1203)]("p",{className:h(490),children:h(414)}),d[h(1203)]("input",{type:"file",accept:h(1130),onChange:H=>{const F=h,ee=H[F(1122)][F(735)]?.[0];ee&&Z(ee)},className:h(1074)})]}),d[h(1203)](h(315),{className:"text-center text-gray-400",children:"或"}),d.jsxs(h(315),{children:[d[h(1203)]("p",{className:h(490),children:h(1506)}),d[h(1203)](h(1365),{value:m,onChange:H=>C(H[h(1122)][h(160)]),placeholder:h(882),className:h(1219)})]})]})})]})})})};exports.Canvas=gi,exports[c(204)]=Ch,exports[c(1666)]=uc,exports[c(1435)]=bi,exports.MaterialPanel=Rr,exports[c(343)]=Ex,exports[c(1032)]=dc,exports[c(1508)]=_r,exports[c(391)]=Hr,exports.createDefaultNode=Zr,exports[c(1662)]=Lx,exports.evaluateStatusExpression=Dx,exports[c(797)]=R0,exports[c(348)]=Vr,exports[c(750)]=Kr,exports.useEditorStore=Ge;