@logicflow/extension 1.2.26 → 1.2.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/NodeResize/Control/Control.js +40 -15
- package/cjs/components/selection-select/index.js +0 -13
- package/es/NodeResize/Control/Control.d.ts +3 -1
- package/es/NodeResize/Control/Control.js +40 -15
- package/es/components/selection-select/index.d.ts +0 -1
- package/es/components/selection-select/index.js +0 -13
- package/lib/Group.js +1 -1
- package/lib/NodeResize.js +1 -1
- package/lib/SelectionSelect.js +1 -1
- package/package.json +2 -2
- package/types/NodeResize/BasicShape/Polygon.d.ts +10 -0
- package/types/NodeResize/BasicShape/Rect.d.ts +17 -0
- package/types/NodeResize/Control/Control.d.ts +66 -0
- package/types/NodeResize/Control/ControlGroup.d.ts +13 -0
- package/types/NodeResize/Control/Util.d.ts +33 -0
- package/types/NodeResize/Node/DiamondResize.d.ts +30 -0
- package/types/NodeResize/Node/EllipseResize.d.ts +30 -0
- package/types/NodeResize/Node/HtmlResize.d.ts +30 -0
- package/types/NodeResize/Node/RectResize.d.ts +32 -0
- package/types/NodeResize/index.d.ts +11 -0
- package/types/bpmn/constant.d.ts +46 -0
- package/types/bpmn/events/EndEvent.d.ts +21 -0
- package/types/bpmn/events/StartEvent.d.ts +17 -0
- package/types/bpmn/flow/SequenceFlow.d.ts +15 -0
- package/types/bpmn/gateways/ExclusiveGateway.d.ts +16 -0
- package/types/bpmn/getBpmnId.d.ts +1 -0
- package/types/bpmn/index.d.ts +13 -0
- package/types/bpmn/tasks/ServiceTask.d.ts +17 -0
- package/types/bpmn/tasks/UserTask.d.ts +17 -0
- package/types/bpmn-adapter/bpmnIds.d.ts +1 -0
- package/types/bpmn-adapter/index.d.ts +63 -0
- package/types/bpmn-adapter/json2xml.d.ts +3 -0
- package/types/bpmn-adapter/xml2json.d.ts +2 -0
- package/types/bpmn-elements/index.d.ts +17 -0
- package/types/bpmn-elements/presets/Event/EndEventFactory.d.ts +5 -0
- package/types/bpmn-elements/presets/Event/IntermediateCatchEvent.d.ts +5 -0
- package/types/bpmn-elements/presets/Event/IntermediateThrowEvent.d.ts +5 -0
- package/types/bpmn-elements/presets/Event/StartEventFactory.d.ts +5 -0
- package/types/bpmn-elements/presets/Event/boundaryEventFactory.d.ts +5 -0
- package/types/bpmn-elements/presets/Event/index.d.ts +2 -0
- package/types/bpmn-elements/presets/Flow/index.d.ts +7 -0
- package/types/bpmn-elements/presets/Flow/sequenceFlow.d.ts +5 -0
- package/types/bpmn-elements/presets/Gateway/gateway.d.ts +17 -0
- package/types/bpmn-elements/presets/Gateway/index.d.ts +2 -0
- package/types/bpmn-elements/presets/Task/index.d.ts +2 -0
- package/types/bpmn-elements/presets/Task/subProcess.d.ts +5 -0
- package/types/bpmn-elements/presets/Task/task.d.ts +12 -0
- package/types/bpmn-elements/presets/icons.d.ts +25 -0
- package/types/bpmn-elements/utils.d.ts +2 -0
- package/types/bpmn-elements-adapter/constant.d.ts +66 -0
- package/types/bpmn-elements-adapter/index.d.ts +103 -0
- package/types/bpmn-elements-adapter/json2xml.d.ts +3 -0
- package/types/bpmn-elements-adapter/xml2json.d.ts +2 -0
- package/types/components/context-menu/index.d.ts +34 -0
- package/types/components/control/index.d.ts +26 -0
- package/types/components/dnd-panel/index.d.ts +25 -0
- package/types/components/highlight/index.d.ts +21 -0
- package/types/components/menu/index.d.ts +50 -0
- package/types/components/mini-map/index.d.ts +88 -0
- package/types/components/selection-select/index.d.ts +42 -0
- package/types/index.d.ts +21 -0
- package/types/insert-node-in-polyline/edge.d.ts +31 -0
- package/types/insert-node-in-polyline/index.d.ts +28 -0
- package/types/materials/curved-edge/index.d.ts +14 -0
- package/types/materials/group/GroupNode.d.ts +125 -0
- package/types/materials/group/index.d.ts +65 -0
- package/types/tools/auto-layout/index.d.ts +40 -0
- package/types/tools/flow-path/index.d.ts +47 -0
- package/types/tools/snapshot/index.d.ts +26 -0
- package/types/turbo-adapter/index.d.ts +21 -0
- package/types/type/index.d.ts +6 -0
package/lib/NodeResize.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("window"));else if("function"==typeof define&&define.amd)define(["window"],e);else{var n="object"==typeof exports?e(require("window")):e(t.window);for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(window,(function(t){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=184)}([function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(this,n(98))},function(t,e){var n=Function.prototype,r=n.bind,o=n.call,i=r&&r.bind(o);t.exports=r?function(t){return t&&i(o,t)}:function(t){return t&&function(){return o.apply(t,arguments)}}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=function(t){return"function"==typeof t}},function(t,e,n){var r=n(0),o=n(32),i=n(6),u=n(37),c=n(49),a=n(62),f=o("wks"),l=r.Symbol,s=l&&l.for,p=a?l:l&&l.withoutSetter||u;t.exports=function(t){if(!i(f,t)||!c&&"string"!=typeof f[t]){var e="Symbol."+t;c&&i(l,t)?f[t]=l[t]:f[t]=a&&s?s(e):p(e)}return f[t]}},function(t,e,n){var r=n(0),o=n(25).f,i=n(16),u=n(15),c=n(41),a=n(70),f=n(75);t.exports=function(t,e){var n,l,s,p,h,d=t.target,y=t.global,v=t.stat;if(n=y?r:v?r[d]||c(d,{}):(r[d]||{}).prototype)for(l in e){if(p=e[l],s=t.noTargetGet?(h=o(n,l))&&h.value:n[l],!f(y?l:d+(v?".":"#")+l,t.forced)&&void 0!==s){if(typeof p==typeof s)continue;a(p,s)}(t.sham||s&&s.sham)&&i(p,"sham",!0),u(n,l,p,t)}}},function(t,e,n){var r=n(1),o=n(14),i=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},function(t,e,n){var r=n(2);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,e,n){var r=n(3);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},function(t,e,n){var r=n(0),o=n(7),i=n(63),u=n(10),c=n(28),a=r.TypeError,f=Object.defineProperty;e.f=o?f:function(t,e,n){if(u(t),e=c(e),u(n),i)try{return f(t,e,n)}catch(t){}if("get"in n||"set"in n)throw a("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(0),o=n(8),i=r.String,u=r.TypeError;t.exports=function(t){if(o(t))return t;throw u(i(t)+" is not an object")}},function(t,e){var n=Function.prototype.call;t.exports=n.bind?n.bind(n):function(){return n.apply(n,arguments)}},function(t,e,n){var r=n(57),o=n(27);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(0),o=n(3),i=function(t){return o(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?i(r[t]):r[t]&&r[t][e]}},function(t,e,n){var r=n(0),o=n(27),i=r.Object;t.exports=function(t){return i(o(t))}},function(t,e,n){var r=n(0),o=n(3),i=n(6),u=n(16),c=n(41),a=n(38),f=n(22),l=n(54).CONFIGURABLE,s=f.get,p=f.enforce,h=String(String).split("String");(t.exports=function(t,e,n,a){var f,s=!!a&&!!a.unsafe,d=!!a&&!!a.enumerable,y=!!a&&!!a.noTargetGet,v=a&&void 0!==a.name?a.name:e;o(n)&&("Symbol("===String(v).slice(0,7)&&(v="["+String(v).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!i(n,"name")||l&&n.name!==v)&&u(n,"name",v),(f=p(n)).source||(f.source=h.join("string"==typeof v?v:""))),t!==r?(s?!y&&t[e]&&(d=!0):delete t[e],d?t[e]=n:u(t,e,n)):d?t[e]=n:c(e,n)})(Function.prototype,"toString",(function(){return o(this)&&s(this).source||a(this)}))},function(t,e,n){var r=n(7),o=n(9),i=n(23);t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(82);t.exports=function(t){return r(t.length)}},function(t,e,n){var r=n(1),o=r({}.toString),i=r("".slice);t.exports=function(t){return i(o(t),8,-1)}},function(t,e,n){var r,o=n(10),i=n(92),u=n(48),c=n(24),a=n(107),f=n(42),l=n(35),s=l("IE_PROTO"),p=function(){},h=function(t){return"<script>"+t+"<\/script>"},d=function(t){t.write(h("")),t.close();var e=t.parentWindow.Object;return t=null,e},y=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}var t,e;y="undefined"!=typeof document?document.domain&&r?d(r):((e=f("iframe")).style.display="none",a.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(h("document.F=Object")),t.close(),t.F):d(r);for(var n=u.length;n--;)delete y.prototype[u[n]];return y()};c[s]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(p.prototype=o(t),n=new p,p.prototype=null,n[s]=t):n=y(),void 0===e?n:i(n,e)}},function(t,e,n){var r=n(0),o=n(30),i=r.String;t.exports=function(t){if("Symbol"===o(t))throw TypeError("Cannot convert a Symbol value to a string");return i(t)}},function(e,n){e.exports=t},function(t,e,n){var r,o,i,u=n(101),c=n(0),a=n(1),f=n(8),l=n(16),s=n(6),p=n(40),h=n(35),d=n(24),y=c.TypeError,v=c.WeakMap;if(u||p.state){var g=p.state||(p.state=new v),b=a(g.get),_=a(g.has),m=a(g.set);r=function(t,e){if(_(g,t))throw new y("Object already initialized");return e.facade=t,m(g,t,e),e},o=function(t){return b(g,t)||{}},i=function(t){return _(g,t)}}else{var x=h("state");d[x]=!0,r=function(t,e){if(s(t,x))throw new y("Object already initialized");return e.facade=t,l(t,x,e),e},o=function(t){return s(t,x)?t[x]:{}},i=function(t){return s(t,x)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!f(e)||(n=o(e)).type!==t)throw y("Incompatible receiver, "+t+" required");return n}}}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){t.exports={}},function(t,e,n){var r=n(7),o=n(11),i=n(61),u=n(23),c=n(12),a=n(28),f=n(6),l=n(63),s=Object.getOwnPropertyDescriptor;e.f=r?s:function(t,e){if(t=c(t),e=a(e),l)try{return s(t,e)}catch(t){}if(f(t,e))return u(!o(i.f,t,e),t[e])}},function(t,e,n){var r=n(1);t.exports=r({}.isPrototypeOf)},function(t,e,n){var r=n(0).TypeError;t.exports=function(t){if(null==t)throw r("Can't call method on "+t);return t}},function(t,e,n){var r=n(99),o=n(46);t.exports=function(t){var e=r(t,"string");return o(e)?e:e+""}},function(t,e,n){var r=n(18);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(0),o=n(43),i=n(3),u=n(18),c=n(4)("toStringTag"),a=r.Object,f="Arguments"==u(function(){return arguments}());t.exports=o?u:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=a(t),c))?n:f?u(e):"Object"==(r=u(e))&&i(e.callee)?"Arguments":r}},function(t,e){t.exports={}},function(t,e,n){var r=n(34),o=n(40);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.19.3",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var r=n(0),o=n(3),i=n(52),u=r.TypeError;t.exports=function(t){if(o(t))return t;throw u(i(t)+" is not a function")}},function(t,e){t.exports=!1},function(t,e,n){var r=n(32),o=n(37),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){var e=+t;return e!=e||0===e?0:(e>0?r:n)(e)}},function(t,e,n){var r=n(1),o=0,i=Math.random(),u=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+u(++o+i,36)}},function(t,e,n){var r=n(1),o=n(3),i=n(40),u=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return u(t)}),t.exports=i.inspectSource},function(t,e,n){var r=n(65),o=n(48).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(0),o=n(41),i=r["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=i},function(t,e,n){var r=n(0),o=Object.defineProperty;t.exports=function(t,e){try{o(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},function(t,e,n){var r=n(0),o=n(8),i=r.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},function(t,e,n){var r={};r[n(4)("toStringTag")]="z",t.exports="[object z]"===String(r)},function(t,e,n){"use strict";var r=n(28),o=n(9),i=n(23);t.exports=function(t,e,n){var u=r(e);u in t?o.f(t,u,i(0,n)):t[u]=n}},function(t,e,n){var r=n(33);t.exports=function(t,e){var n=t[e];return null==n?void 0:r(n)}},function(t,e,n){var r=n(0),o=n(13),i=n(3),u=n(26),c=n(62),a=r.Object;t.exports=c?function(t){return"symbol"==typeof t}:function(t){var e=o("Symbol");return i(e)&&u(e.prototype,a(t))}},function(t,e,n){var r=n(1),o=n(33),i=r(r.bind);t.exports=function(t,e){return o(t),void 0===e?t:i?i(t,e):function(){return t.apply(e,arguments)}}},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e,n){var r=n(50),o=n(2);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},function(t,e,n){var r,o,i=n(0),u=n(73),c=i.process,a=i.Deno,f=c&&c.versions||a&&a.version,l=f&&f.v8;l&&(o=(r=l.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&u&&(!(r=u.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=u.match(/Chrome\/(\d+)/))&&(o=+r[1]),t.exports=o},function(t,e,n){var r=n(9).f,o=n(6),i=n(4)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){var r=n(0).String;t.exports=function(t){try{return r(t)}catch(t){return"Object"}}},function(t,e,n){var r=n(47),o=n(1),i=n(57),u=n(14),c=n(17),a=n(71),f=o([].push),l=function(t){var e=1==t,n=2==t,o=3==t,l=4==t,s=6==t,p=7==t,h=5==t||s;return function(d,y,v,g){for(var b,_,m=u(d),x=i(m),O=r(y,v),w=c(x),S=0,P=g||a,j=e?P(d,w):n||p?P(d,0):void 0;w>S;S++)if((h||S in x)&&(_=O(b=x[S],S,m),t))if(e)j[S]=_;else if(_)switch(t){case 3:return!0;case 5:return b;case 6:return S;case 2:f(j,b)}else switch(t){case 4:return!1;case 7:f(j,b)}return s?-1:o||l?l:j}};t.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},function(t,e,n){var r=n(7),o=n(6),i=Function.prototype,u=r&&Object.getOwnPropertyDescriptor,c=o(i,"name"),a=c&&"something"===function(){}.name,f=c&&(!r||r&&u(i,"name").configurable);t.exports={EXISTS:c,PROPER:a,CONFIGURABLE:f}},function(t,e,n){var r=n(1),o=n(2),i=n(3),u=n(30),c=n(13),a=n(38),f=function(){},l=[],s=c("Reflect","construct"),p=/^\s*(?:class|function)\b/,h=r(p.exec),d=!p.exec(f),y=function(t){if(!i(t))return!1;try{return s(f,l,t),!0}catch(t){return!1}};t.exports=!s||o((function(){var t;return y(y.call)||!y(Object)||!y((function(){t=!0}))||t}))?function(t){if(!i(t))return!1;switch(u(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return d||!!h(p,a(t))}:y},function(t,e,n){var r=n(36),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},function(t,e,n){var r=n(0),o=n(1),i=n(2),u=n(18),c=r.Object,a=o("".split);t.exports=i((function(){return!c("z").propertyIsEnumerable(0)}))?function(t){return"String"==u(t)?a(t,""):c(t)}:c},function(t,e,n){var r=n(65),o=n(48);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){"use strict";var r=n(12),o=n(104),i=n(31),u=n(22),c=n(69),a=u.set,f=u.getterFor("Array Iterator");t.exports=c(Array,"Array",(function(t,e){a(this,{type:"Array Iterator",target:r(t),index:0,kind:e})}),(function(){var t=f(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(t,e,n){var r=n(43),o=n(15),i=n(103);r||o(Object.prototype,"toString",i,{unsafe:!0})},function(t,e,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);e.f=i?function(t){var e=o(this,t);return!!e&&e.enumerable}:r},function(t,e,n){var r=n(49);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,n){var r=n(7),o=n(2),i=n(42);t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(5),o=n(7);r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:n(9).f})},function(t,e,n){var r=n(1),o=n(6),i=n(12),u=n(87).indexOf,c=n(24),a=r([].push);t.exports=function(t,e){var n,r=i(t),f=0,l=[];for(n in r)!o(c,n)&&o(r,n)&&a(l,n);for(;e.length>f;)o(r,n=e[f++])&&(~u(l,n)||a(l,n));return l}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(2),o=n(4),i=n(50),u=o("species");t.exports=function(t){return i>=51||!r((function(){var e=[];return(e.constructor={})[u]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},function(t,e,n){var r=n(0),o=n(6),i=n(3),u=n(14),c=n(35),a=n(108),f=c("IE_PROTO"),l=r.Object,s=l.prototype;t.exports=a?l.getPrototypeOf:function(t){var e=u(t);if(o(e,f))return e[f];var n=e.constructor;return i(n)&&e instanceof n?n.prototype:e instanceof l?s:null}},function(t,e,n){"use strict";var r=n(5),o=n(11),i=n(34),u=n(54),c=n(3),a=n(116),f=n(68),l=n(86),s=n(51),p=n(16),h=n(15),d=n(4),y=n(31),v=n(88),g=u.PROPER,b=u.CONFIGURABLE,_=v.IteratorPrototype,m=v.BUGGY_SAFARI_ITERATORS,x=d("iterator"),O=function(){return this};t.exports=function(t,e,n,u,d,v,w){a(n,e,u);var S,P,j,R=function(t){if(t===d&&C)return C;if(!m&&t in M)return M[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},k=e+" Iterator",E=!1,M=t.prototype,T=M[x]||M["@@iterator"]||d&&M[d],C=!m&&T||R(d),D="Array"==e&&M.entries||T;if(D&&(S=f(D.call(new t)))!==Object.prototype&&S.next&&(i||f(S)===_||(l?l(S,_):c(S[x])||h(S,x,O)),s(S,k,!0,!0),i&&(y[k]=O)),g&&"values"==d&&T&&"values"!==T.name&&(!i&&b?p(M,"name","values"):(E=!0,C=function(){return o(T,this)})),d)if(P={values:R("values"),keys:v?C:R("keys"),entries:R("entries")},w)for(j in P)(m||E||!(j in M))&&h(M,j,P[j]);else r({target:e,proto:!0,forced:m||E},P);return i&&!w||M[x]===C||h(M,x,C,{name:d}),y[e]=C,P}},function(t,e,n){var r=n(6),o=n(85),i=n(25),u=n(9);t.exports=function(t,e){for(var n=o(e),c=u.f,a=i.f,f=0;f<n.length;f++){var l=n[f];r(t,l)||c(t,l,a(e,l))}}},function(t,e,n){var r=n(102);t.exports=function(t,e){return new(r(t))(0===e?0:e)}},function(t,e,n){var r=n(1);t.exports=r([].slice)},function(t,e,n){var r=n(13);t.exports=r("navigator","userAgent")||""},function(t,e,n){"use strict";var r=n(53).forEach,o=n(79)("forEach");t.exports=o?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},function(t,e,n){var r=n(2),o=n(3),i=/#|\.prototype\./,u=function(t,e){var n=a[c(t)];return n==l||n!=f&&(o(e)?r(e):!!e)},c=u.normalize=function(t){return String(t).replace(i,".").toLowerCase()},a=u.data={},f=u.NATIVE="N",l=u.POLYFILL="P";t.exports=u},function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,e,n){var r=n(42)("span").classList,o=r&&r.constructor&&r.constructor.prototype;t.exports=o===Object.prototype?void 0:o},function(t,e,n){"use strict";var r=n(105).charAt,o=n(20),i=n(22),u=n(69),c=i.set,a=i.getterFor("String Iterator");u(String,"String",(function(t){c(this,{type:"String Iterator",string:o(t),index:0})}),(function(){var t,e=a(this),n=e.string,o=e.index;return o>=n.length?{value:void 0,done:!0}:(t=r(n,o),e.index+=t.length,{value:t,done:!1})}))},function(t,e,n){"use strict";var r=n(2);t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){throw 1},1)}))}},function(t,e,n){var r=n(30),o=n(45),i=n(31),u=n(4)("iterator");t.exports=function(t){if(null!=t)return o(t,u)||o(t,"@@iterator")||i[r(t)]}},function(t,e,n){var r=n(0),o=n(76),i=n(77),u=n(59),c=n(16),a=n(4),f=a("iterator"),l=a("toStringTag"),s=u.values,p=function(t,e){if(t){if(t[f]!==s)try{c(t,f,s)}catch(e){t[f]=s}if(t[l]||c(t,l,e),o[e])for(var n in u)if(t[n]!==u[n])try{c(t,n,u[n])}catch(e){t[n]=u[n]}}};for(var h in o)p(r[h]&&r[h].prototype,h);p(i,"DOMTokenList")},function(t,e,n){var r=n(36),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e){var n=Function.prototype,r=n.apply,o=n.bind,i=n.call;t.exports="object"==typeof Reflect&&Reflect.apply||(o?i.bind(r):function(){return i.apply(r,arguments)})},function(t,e,n){"use strict";var r=n(5),o=n(0),i=n(13),u=n(83),c=n(11),a=n(1),f=n(34),l=n(7),s=n(49),p=n(2),h=n(6),d=n(29),y=n(3),v=n(8),g=n(26),b=n(46),_=n(10),m=n(14),x=n(12),O=n(28),w=n(20),S=n(23),P=n(19),j=n(58),R=n(39),k=n(106),E=n(66),M=n(25),T=n(9),C=n(61),D=n(72),N=n(15),A=n(32),z=n(35),I=n(24),L=n(37),F=n(4),H=n(93),W=n(94),B=n(51),G=n(22),Y=n(53).forEach,X=z("hidden"),U=F("toPrimitive"),V=G.set,$=G.getterFor("Symbol"),q=Object.prototype,K=o.Symbol,J=K&&K.prototype,Q=o.TypeError,Z=o.QObject,tt=i("JSON","stringify"),et=M.f,nt=T.f,rt=k.f,ot=C.f,it=a([].push),ut=A("symbols"),ct=A("op-symbols"),at=A("string-to-symbol-registry"),ft=A("symbol-to-string-registry"),lt=A("wks"),st=!Z||!Z.prototype||!Z.prototype.findChild,pt=l&&p((function(){return 7!=P(nt({},"a",{get:function(){return nt(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=et(q,e);r&&delete q[e],nt(t,e,n),r&&t!==q&&nt(q,e,r)}:nt,ht=function(t,e){var n=ut[t]=P(J);return V(n,{type:"Symbol",tag:t,description:e}),l||(n.description=e),n},dt=function(t,e,n){t===q&&dt(ct,e,n),_(t);var r=O(e);return _(n),h(ut,r)?(n.enumerable?(h(t,X)&&t[X][r]&&(t[X][r]=!1),n=P(n,{enumerable:S(0,!1)})):(h(t,X)||nt(t,X,S(1,{})),t[X][r]=!0),pt(t,r,n)):nt(t,r,n)},yt=function(t,e){_(t);var n=x(e),r=j(n).concat(_t(n));return Y(r,(function(e){l&&!c(vt,n,e)||dt(t,e,n[e])})),t},vt=function(t){var e=O(t),n=c(ot,this,e);return!(this===q&&h(ut,e)&&!h(ct,e))&&(!(n||!h(this,e)||!h(ut,e)||h(this,X)&&this[X][e])||n)},gt=function(t,e){var n=x(t),r=O(e);if(n!==q||!h(ut,r)||h(ct,r)){var o=et(n,r);return!o||!h(ut,r)||h(n,X)&&n[X][r]||(o.enumerable=!0),o}},bt=function(t){var e=rt(x(t)),n=[];return Y(e,(function(t){h(ut,t)||h(I,t)||it(n,t)})),n},_t=function(t){var e=t===q,n=rt(e?ct:x(t)),r=[];return Y(n,(function(t){!h(ut,t)||e&&!h(q,t)||it(r,ut[t])})),r};(s||(N(J=(K=function(){if(g(J,this))throw Q("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?w(arguments[0]):void 0,e=L(t),n=function(t){this===q&&c(n,ct,t),h(this,X)&&h(this[X],e)&&(this[X][e]=!1),pt(this,e,S(1,t))};return l&&st&&pt(q,e,{configurable:!0,set:n}),ht(e,t)}).prototype,"toString",(function(){return $(this).tag})),N(K,"withoutSetter",(function(t){return ht(L(t),t)})),C.f=vt,T.f=dt,M.f=gt,R.f=k.f=bt,E.f=_t,H.f=function(t){return ht(F(t),t)},l&&(nt(J,"description",{configurable:!0,get:function(){return $(this).description}}),f||N(q,"propertyIsEnumerable",vt,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!s,sham:!s},{Symbol:K}),Y(j(lt),(function(t){W(t)})),r({target:"Symbol",stat:!0,forced:!s},{for:function(t){var e=w(t);if(h(at,e))return at[e];var n=K(e);return at[e]=n,ft[n]=e,n},keyFor:function(t){if(!b(t))throw Q(t+" is not a symbol");if(h(ft,t))return ft[t]},useSetter:function(){st=!0},useSimple:function(){st=!1}}),r({target:"Object",stat:!0,forced:!s,sham:!l},{create:function(t,e){return void 0===e?P(t):yt(P(t),e)},defineProperty:dt,defineProperties:yt,getOwnPropertyDescriptor:gt}),r({target:"Object",stat:!0,forced:!s},{getOwnPropertyNames:bt,getOwnPropertySymbols:_t}),r({target:"Object",stat:!0,forced:p((function(){E.f(1)}))},{getOwnPropertySymbols:function(t){return E.f(m(t))}}),tt)&&r({target:"JSON",stat:!0,forced:!s||p((function(){var t=K();return"[null]"!=tt([t])||"{}"!=tt({a:t})||"{}"!=tt(Object(t))}))},{stringify:function(t,e,n){var r=D(arguments),o=e;if((v(e)||void 0!==t)&&!b(t))return d(e)||(e=function(t,e){if(y(o)&&(e=c(o,this,t,e)),!b(e))return e}),r[1]=e,u(tt,null,r)}});if(!J[U]){var mt=J.valueOf;N(J,U,(function(t){return c(mt,this)}))}B(K,"Symbol"),I[X]=!0},function(t,e,n){var r=n(13),o=n(1),i=n(39),u=n(66),c=n(10),a=o([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(c(t)),n=u.f;return n?a(e,n(t)):e}},function(t,e,n){var r=n(1),o=n(10),i=n(117);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return o(n),i(r),e?t(n,r):n.__proto__=r,n}}():void 0)},function(t,e,n){var r=n(12),o=n(56),i=n(17),u=function(t){return function(e,n,u){var c,a=r(e),f=i(a),l=o(u,f);if(t&&n!=n){for(;f>l;)if((c=a[l++])!=c)return!0}else for(;f>l;l++)if((t||l in a)&&a[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},function(t,e,n){"use strict";var r,o,i,u=n(2),c=n(3),a=n(19),f=n(68),l=n(15),s=n(4),p=n(34),h=s("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(o=f(f(i)))!==Object.prototype&&(r=o):d=!0),null==r||u((function(){var t={};return r[h].call(t)!==t}))?r={}:p&&(r=a(r)),c(r[h])||l(r,h,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:d}},function(t,e,n){"use strict";var r=n(5),o=n(7),i=n(0),u=n(1),c=n(6),a=n(3),f=n(26),l=n(20),s=n(9).f,p=n(70),h=i.Symbol,d=h&&h.prototype;if(o&&a(h)&&(!("description"in d)||void 0!==h().description)){var y={},v=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:l(arguments[0]),e=f(d,this)?new h(t):void 0===t?h():h(t);return""===t&&(y[e]=!0),e};p(v,h),v.prototype=d,d.constructor=v;var g="Symbol(test)"==String(h("test")),b=u(d.toString),_=u(d.valueOf),m=/^Symbol\((.*)\)[^)]+$/,x=u("".replace),O=u("".slice);s(d,"description",{configurable:!0,get:function(){var t=_(this),e=b(t);if(c(y,t))return"";var n=g?O(e,7,-1):x(e,m,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:v})}},function(t,e,n){n(94)("iterator")},function(t,e,n){"use strict";var r,o,i=n(11),u=n(1),c=n(20),a=n(114),f=n(118),l=n(32),s=n(19),p=n(22).get,h=n(121),d=n(122),y=l("native-string-replace",String.prototype.replace),v=RegExp.prototype.exec,g=v,b=u("".charAt),_=u("".indexOf),m=u("".replace),x=u("".slice),O=(o=/b*/g,i(v,r=/a/,"a"),i(v,o,"a"),0!==r.lastIndex||0!==o.lastIndex),w=f.BROKEN_CARET,S=void 0!==/()??/.exec("")[1];(O||S||w||h||d)&&(g=function(t){var e,n,r,o,u,f,l,h=this,d=p(h),P=c(t),j=d.raw;if(j)return j.lastIndex=h.lastIndex,e=i(g,j,P),h.lastIndex=j.lastIndex,e;var R=d.groups,k=w&&h.sticky,E=i(a,h),M=h.source,T=0,C=P;if(k&&(E=m(E,"y",""),-1===_(E,"g")&&(E+="g"),C=x(P,h.lastIndex),h.lastIndex>0&&(!h.multiline||h.multiline&&"\n"!==b(P,h.lastIndex-1))&&(M="(?: "+M+")",C=" "+C,T++),n=new RegExp("^(?:"+M+")",E)),S&&(n=new RegExp("^"+M+"$(?!\\s)",E)),O&&(r=h.lastIndex),o=i(v,k?n:h,C),k?o?(o.input=x(o.input,T),o[0]=x(o[0],T),o.index=h.lastIndex,h.lastIndex+=o[0].length):h.lastIndex=0:O&&o&&(h.lastIndex=h.global?o.index+o[0].length:r),S&&o&&o.length>1&&i(y,o[0],n,(function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(o[u]=void 0)})),o&&R)for(o.groups=f=s(null),u=0;u<R.length;u++)f[(l=R[u])[0]]=o[l[1]];return o}),t.exports=g},function(t,e,n){var r=n(7),o=n(9),i=n(10),u=n(12),c=n(58);t.exports=r?Object.defineProperties:function(t,e){i(t);for(var n,r=u(e),a=c(e),f=a.length,l=0;f>l;)o.f(t,n=a[l++],r[n]);return t}},function(t,e,n){var r=n(4);e.f=r},function(t,e,n){var r=n(123),o=n(6),i=n(93),u=n(9).f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});o(e,t)||u(e,t,{value:i.f(t)})}},function(t,e,n){"use strict";var r=n(5),o=n(74);r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},function(t,e,n){var r=n(0),o=n(76),i=n(77),u=n(74),c=n(16),a=function(t){if(t&&t.forEach!==u)try{c(t,"forEach",u)}catch(e){t.forEach=u}};for(var f in o)o[f]&&a(r[f]&&r[f].prototype);a(i)},function(t,e,n){"use strict";var r=n(5),o=n(91);r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){var r=n(0),o=n(11),i=n(8),u=n(46),c=n(45),a=n(100),f=n(4),l=r.TypeError,s=f("toPrimitive");t.exports=function(t,e){if(!i(t)||u(t))return t;var n,r=c(t,s);if(r){if(void 0===e&&(e="default"),n=o(r,t,e),!i(n)||u(n))return n;throw l("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},function(t,e,n){var r=n(0),o=n(11),i=n(3),u=n(8),c=r.TypeError;t.exports=function(t,e){var n,r;if("string"===e&&i(n=t.toString)&&!u(r=o(n,t)))return r;if(i(n=t.valueOf)&&!u(r=o(n,t)))return r;if("string"!==e&&i(n=t.toString)&&!u(r=o(n,t)))return r;throw c("Can't convert object to primitive value")}},function(t,e,n){var r=n(0),o=n(3),i=n(38),u=r.WeakMap;t.exports=o(u)&&/native code/.test(i(u))},function(t,e,n){var r=n(0),o=n(29),i=n(55),u=n(8),c=n(4)("species"),a=r.Array;t.exports=function(t){var e;return o(t)&&(e=t.constructor,(i(e)&&(e===a||o(e.prototype))||u(e)&&null===(e=e[c]))&&(e=void 0)),void 0===e?a:e}},function(t,e,n){"use strict";var r=n(43),o=n(30);t.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},function(t,e,n){var r=n(4),o=n(19),i=n(9),u=r("unscopables"),c=Array.prototype;null==c[u]&&i.f(c,u,{configurable:!0,value:o(null)}),t.exports=function(t){c[u][t]=!0}},function(t,e,n){var r=n(1),o=n(36),i=n(20),u=n(27),c=r("".charAt),a=r("".charCodeAt),f=r("".slice),l=function(t){return function(e,n){var r,l,s=i(u(e)),p=o(n),h=s.length;return p<0||p>=h?t?"":void 0:(r=a(s,p))<55296||r>56319||p+1===h||(l=a(s,p+1))<56320||l>57343?t?c(s,p):r:t?f(s,p,p+2):l-56320+(r-55296<<10)+65536}};t.exports={codeAt:l(!1),charAt:l(!0)}},function(t,e,n){var r=n(18),o=n(12),i=n(39).f,u=n(113),c="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return c&&"Window"==r(t)?function(t){try{return i(t)}catch(t){return u(c)}}(t):i(o(t))}},function(t,e,n){var r=n(13);t.exports=r("document","documentElement")},function(t,e,n){var r=n(2);t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},function(t,e,n){var r=n(4),o=n(31),i=r("iterator"),u=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||u[i]===t)}},function(t,e,n){var r=n(0),o=n(11),i=n(33),u=n(10),c=n(52),a=n(80),f=r.TypeError;t.exports=function(t,e){var n=arguments.length<2?a(t):e;if(i(n))return u(o(n,t));throw f(c(t)+" is not iterable")}},function(t,e,n){var r=n(11),o=n(10),i=n(45);t.exports=function(t,e,n){var u,c;o(t);try{if(!(u=i(t,"return"))){if("throw"===e)throw n;return n}u=r(u,t)}catch(t){c=!0,u=t}if("throw"===e)throw n;if(c)throw u;return o(u),n}},function(t,e,n){var r=n(4)("iterator"),o=!1;try{var i=0,u={next:function(){return{done:!!i++}},return:function(){o=!0}};u[r]=function(){return this},Array.from(u,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(t){}return n}},function(t,e,n){var r=n(0),o=n(56),i=n(17),u=n(44),c=r.Array,a=Math.max;t.exports=function(t,e,n){for(var r=i(t),f=o(e,r),l=o(void 0===n?r:n,r),s=c(a(l-f,0)),p=0;f<l;f++,p++)u(s,p,t[f]);return s.length=p,s}},function(t,e,n){"use strict";var r=n(10);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,n){var r=n(5),o=n(2),i=n(12),u=n(25).f,c=n(7),a=o((function(){u(1)}));r({target:"Object",stat:!0,forced:!c||a,sham:!c},{getOwnPropertyDescriptor:function(t,e){return u(i(t),e)}})},function(t,e,n){"use strict";var r=n(88).IteratorPrototype,o=n(19),i=n(23),u=n(51),c=n(31),a=function(){return this};t.exports=function(t,e,n,f){var l=e+" Iterator";return t.prototype=o(r,{next:i(+!f,n)}),u(t,l,!1,!0),c[l]=a,t}},function(t,e,n){var r=n(0),o=n(3),i=r.String,u=r.TypeError;t.exports=function(t){if("object"==typeof t||o(t))return t;throw u("Can't set "+i(t)+" as a prototype")}},function(t,e,n){var r=n(2),o=n(0).RegExp,i=r((function(){var t=o("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),u=i||r((function(){return!o("a","y").sticky})),c=i||r((function(){var t=o("^r","gy");return t.lastIndex=2,null!=t.exec("str")}));t.exports={BROKEN_CARET:c,MISSED_STICKY:u,UNSUPPORTED_Y:i}},,,function(t,e,n){var r=n(2),o=n(0).RegExp;t.exports=r((function(){var t=o(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}))},function(t,e,n){var r=n(2),o=n(0).RegExp;t.exports=r((function(){var t=o("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},function(t,e,n){var r=n(0);t.exports=r},function(t,e,n){var r=n(5),o=n(14),i=n(58);r({target:"Object",stat:!0,forced:n(2)((function(){i(1)}))},{keys:function(t){return i(o(t))}})},function(t,e,n){n(5)({target:"Object",stat:!0},{setPrototypeOf:n(86)})},function(t,e,n){var r=n(5),o=n(2),i=n(14),u=n(68),c=n(108);r({target:"Object",stat:!0,forced:o((function(){u(1)})),sham:!c},{getPrototypeOf:function(t){return u(i(t))}})},function(t,e,n){var r=n(5),o=n(13),i=n(83),u=n(155),c=n(150),a=n(10),f=n(8),l=n(19),s=n(2),p=o("Reflect","construct"),h=Object.prototype,d=[].push,y=s((function(){function t(){}return!(p((function(){}),[],t)instanceof t)})),v=!s((function(){p((function(){}))})),g=y||v;r({target:"Reflect",stat:!0,forced:g,sham:g},{construct:function(t,e){c(t),a(e);var n=arguments.length<3?t:c(arguments[2]);if(v&&!y)return p(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return i(d,r,e),new(i(u,t,r))}var o=n.prototype,s=l(f(o)?o:h),g=i(t,s,e);return f(g)?g:s}})},function(t,e,n){n(5)({target:"Object",stat:!0,sham:!n(7)},{create:n(19)})},function(t,e,n){n(5)({target:"Array",stat:!0},{isArray:n(29)})},,,function(t,e,n){var r=n(5),o=n(139);r({target:"Array",stat:!0,forced:!n(112)((function(t){Array.from(t)}))},{from:o})},,function(t,e,n){"use strict";var r=n(5),o=n(53).filter;r({target:"Array",proto:!0,forced:!n(67)("filter")},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(5),o=n(7),i=n(85),u=n(12),c=n(25),a=n(44);r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(t){for(var e,n,r=u(t),o=c.f,f=i(r),l={},s=0;f.length>s;)void 0!==(n=o(r,e=f[s++]))&&a(l,e,n);return l}})},function(t,e,n){var r=n(5),o=n(7);r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperties:n(92)})},function(t,e,n){"use strict";var r=n(5),o=n(0),i=n(29),u=n(55),c=n(8),a=n(56),f=n(17),l=n(12),s=n(44),p=n(4),h=n(67),d=n(72),y=h("slice"),v=p("species"),g=o.Array,b=Math.max;r({target:"Array",proto:!0,forced:!y},{slice:function(t,e){var n,r,o,p=l(this),h=f(p),y=a(t,h),_=a(void 0===e?h:e,h);if(i(p)&&(n=p.constructor,(u(n)&&(n===g||i(n.prototype))||c(n)&&null===(n=n[v]))&&(n=void 0),n===g||void 0===n))return d(p,y,_);for(r=new(void 0===n?g:n)(b(_-y,0)),o=0;y<_;y++,o++)y in p&&s(r,o,p[y]);return r.length=o,r}})},function(t,e,n){var r=n(7),o=n(54).EXISTS,i=n(1),u=n(9).f,c=Function.prototype,a=i(c.toString),f=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,l=i(f.exec);r&&!o&&u(c,"name",{configurable:!0,get:function(){try{return l(f,a(this))[1]}catch(t){return""}}})},function(t,e,n){"use strict";var r=n(0),o=n(47),i=n(11),u=n(14),c=n(140),a=n(109),f=n(55),l=n(17),s=n(44),p=n(110),h=n(80),d=r.Array;t.exports=function(t){var e=u(t),n=f(this),r=arguments.length,y=r>1?arguments[1]:void 0,v=void 0!==y;v&&(y=o(y,r>2?arguments[2]:void 0));var g,b,_,m,x,O,w=h(e),S=0;if(!w||this==d&&a(w))for(g=l(e),b=n?new this(g):d(g);g>S;S++)O=v?y(e[S],S):e[S],s(b,S,O);else for(x=(m=p(e,w)).next,b=n?new this:[];!(_=i(x,m)).done;S++)O=v?c(m,y,[_.value,S],!0):_.value,s(b,S,O);return b.length=S,b}},function(t,e,n){var r=n(10),o=n(111);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){o(t,"throw",e)}}},,,,,,,,,,function(t,e,n){var r=n(0),o=n(55),i=n(52),u=r.TypeError;t.exports=function(t){if(o(t))return t;throw u(i(t)+" is not a constructor")}},,,,,function(t,e,n){"use strict";var r=n(0),o=n(1),i=n(33),u=n(8),c=n(6),a=n(72),f=r.Function,l=o([].concat),s=o([].join),p={},h=function(t,e,n){if(!c(p,e)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";p[e]=f("C,a","return new C("+s(r,",")+")")}return p[e](t,n)};t.exports=f.bind||function(t){var e=i(this),n=e.prototype,r=a(arguments,1),o=function(){var n=l(r,a(arguments));return this instanceof o?h(e,n.length,n):e.apply(t,n)};return u(n)&&(o.prototype=n),o}},,function(t,e,n){"use strict";var r=n(5),o=n(53).map;r({target:"Array",proto:!0,forced:!n(67)("map")},{map:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},,,,function(t,e,n){var r=n(5),o=n(11),i=n(8),u=n(10),c=n(182),a=n(25),f=n(68);r({target:"Reflect",stat:!0},{get:function t(e,n){var r,l,s=arguments.length<3?e:arguments[2];return u(e)===s?e[n]:(r=a.f(e,n))?c(r)?r.value:void 0===r.get?void 0:o(r.get,s):i(l=f(e))?t(l,n,s):void 0}})},,,,,,,function(t,e,n){var r=n(5),o=n(176);r({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},function(t,e,n){"use strict";var r=n(5),o=n(1),i=n(57),u=n(12),c=n(79),a=o([].join),f=i!=Object,l=c("join",",");r({target:"Array",proto:!0,forced:f||!l},{join:function(t){return a(u(this),void 0===t?",":t)}})},,,,,,,function(t,e,n){"use strict";var r=n(7),o=n(1),i=n(11),u=n(2),c=n(58),a=n(66),f=n(61),l=n(14),s=n(57),p=Object.assign,h=Object.defineProperty,d=o([].concat);t.exports=!p||u((function(){if(r&&1!==p({b:1},p(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol();return t[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=p({},t)[n]||"abcdefghijklmnopqrst"!=c(p({},e)).join("")}))?function(t,e){for(var n=l(t),o=arguments.length,u=1,p=a.f,h=f.f;o>u;)for(var y,v=s(arguments[u++]),g=p?d(c(v),p(v)):c(v),b=g.length,_=0;b>_;)y=g[_++],r&&!i(h,v,y)||(n[y]=v[y]);return n}:p},function(t,e,n){"use strict";var r=n(5),o=n(53).find,i=n(104),u=!0;"find"in[]&&Array(1).find((function(){u=!1})),r({target:"Array",proto:!0,forced:u},{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i("find")},,,,,function(t,e,n){var r=n(6);t.exports=function(t){return void 0!==t&&(r(t,"value")||r(t,"writable"))}},,function(t,e,n){"use strict";n.r(e),n.d(e,"NodeResize",(function(){return le})),n.d(e,"RectResize",(function(){return Ot})),n.d(e,"EllipseResize",(function(){return At})),n.d(e,"DiamondResize",(function(){return Kt})),n.d(e,"HtmlResize",(function(){return fe}));n(125),n(126),n(60),n(127),n(128),n(161),n(115),n(64),n(84),n(89),n(90),n(59),n(78),n(81);var r,o,i,u,c,a,f=n(21),l=(n(157),n(168),{}),s=[],p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function h(t,e){for(var n in e)t[n]=e[n];return t}function d(t){var e=t.parentNode;e&&e.removeChild(t)}function y(t,e,n){var o,i,u,c={};for(u in e)"key"==u?o=e[u]:"ref"==u?i=e[u]:c[u]=e[u];if(arguments.length>2&&(c.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(u in t.defaultProps)void 0===c[u]&&(c[u]=t.defaultProps[u]);return v(t,c,o,i,null)}function v(t,e,n,r,u){var c={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==u?++i:u};return null==u&&null!=o.vnode&&o.vnode(c),c}function g(t){return t.children}function b(t,e){this.props=t,this.context=e}function _(t,e){if(null==e)return t.__?_(t.__,t.__.__k.indexOf(t)+1):null;for(var n;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof t.type?_(t):null}function m(t){var e,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return m(t)}}function x(t){(!t.__d&&(t.__d=!0)&&u.push(t)&&!O.__r++||a!==o.debounceRendering)&&((a=o.debounceRendering)||c)(O)}function O(){for(var t;O.__r=u.length;)t=u.sort((function(t,e){return t.__v.__b-e.__v.__b})),u=[],t.some((function(t){var e,n,r,o,i,u;t.__d&&(i=(o=(e=t).__v).__e,(u=e.__P)&&(n=[],(r=h({},o)).__v=o.__v+1,M(u,o,r,e.__n,void 0!==u.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?_(o):i,o.__h),T(n,o),o.__e!=i&&m(o)))}))}function w(t,e,n,r,o,i,u,c,a,f){var p,h,d,y,b,m,x,O=r&&r.__k||s,w=O.length;for(n.__k=[],p=0;p<e.length;p++)if(null!=(y=n.__k[p]=null==(y=e[p])||"boolean"==typeof y?null:"string"==typeof y||"number"==typeof y||"bigint"==typeof y?v(null,y,null,null,y):Array.isArray(y)?v(g,{children:y},null,null,null):y.__b>0?v(y.type,y.props,y.key,null,y.__v):y)){if(y.__=n,y.__b=n.__b+1,null===(d=O[p])||d&&y.key==d.key&&y.type===d.type)O[p]=void 0;else for(h=0;h<w;h++){if((d=O[h])&&y.key==d.key&&y.type===d.type){O[h]=void 0;break}d=null}M(t,y,d=d||l,o,i,u,c,a,f),b=y.__e,(h=y.ref)&&d.ref!=h&&(x||(x=[]),d.ref&&x.push(d.ref,null,y),x.push(h,y.__c||b,y)),null!=b?(null==m&&(m=b),"function"==typeof y.type&&y.__k===d.__k?y.__d=a=S(y,a,t):a=P(t,y,d,O,b,a),"function"==typeof n.type&&(n.__d=a)):a&&d.__e==a&&a.parentNode!=t&&(a=_(d))}for(n.__e=m,p=w;p--;)null!=O[p]&&("function"==typeof n.type&&null!=O[p].__e&&O[p].__e==n.__d&&(n.__d=_(r,p+1)),N(O[p],O[p]));if(x)for(p=0;p<x.length;p++)D(x[p],x[++p],x[++p])}function S(t,e,n){for(var r,o=t.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=t,e="function"==typeof r.type?S(r,e,n):P(n,r,r,o,r.__e,e));return e}function P(t,e,n,r,o,i){var u,c,a;if(void 0!==e.__d)u=e.__d,e.__d=void 0;else if(null==n||o!=i||null==o.parentNode)t:if(null==i||i.parentNode!==t)t.appendChild(o),u=null;else{for(c=i,a=0;(c=c.nextSibling)&&a<r.length;a+=2)if(c==o)break t;t.insertBefore(o,i),u=i}return void 0!==u?u:o.nextSibling}function j(t,e,n){"-"===e[0]?t.setProperty(e,n):t[e]=null==n?"":"number"!=typeof n||p.test(e)?n:n+"px"}function R(t,e,n,r,o){var i;t:if("style"===e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof r&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||j(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||j(t.style,e,n[e])}else if("o"===e[0]&&"n"===e[1])i=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=n,n?r||t.addEventListener(e,i?E:k,i):t.removeEventListener(e,i?E:k,i);else if("dangerouslySetInnerHTML"!==e){if(o)e=e.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==e&&"list"!==e&&"form"!==e&&"tabIndex"!==e&&"download"!==e&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null!=n&&(!1!==n||"a"===e[0]&&"r"===e[1])?t.setAttribute(e,n):t.removeAttribute(e))}}function k(t){this.l[t.type+!1](o.event?o.event(t):t)}function E(t){this.l[t.type+!0](o.event?o.event(t):t)}function M(t,e,n,r,i,u,c,a,f){var l,s,p,d,y,v,_,m,x,O,S,P=e.type;if(void 0!==e.constructor)return null;null!=n.__h&&(f=n.__h,a=e.__e=n.__e,e.__h=null,u=[a]),(l=o.__b)&&l(e);try{t:if("function"==typeof P){if(m=e.props,x=(l=P.contextType)&&r[l.__c],O=l?x?x.props.value:l.__:r,n.__c?_=(s=e.__c=n.__c).__=s.__E:("prototype"in P&&P.prototype.render?e.__c=s=new P(m,O):(e.__c=s=new b(m,O),s.constructor=P,s.render=A),x&&x.sub(s),s.props=m,s.state||(s.state={}),s.context=O,s.__n=r,p=s.__d=!0,s.__h=[]),null==s.__s&&(s.__s=s.state),null!=P.getDerivedStateFromProps&&(s.__s==s.state&&(s.__s=h({},s.__s)),h(s.__s,P.getDerivedStateFromProps(m,s.__s))),d=s.props,y=s.state,p)null==P.getDerivedStateFromProps&&null!=s.componentWillMount&&s.componentWillMount(),null!=s.componentDidMount&&s.__h.push(s.componentDidMount);else{if(null==P.getDerivedStateFromProps&&m!==d&&null!=s.componentWillReceiveProps&&s.componentWillReceiveProps(m,O),!s.__e&&null!=s.shouldComponentUpdate&&!1===s.shouldComponentUpdate(m,s.__s,O)||e.__v===n.__v){s.props=m,s.state=s.__s,e.__v!==n.__v&&(s.__d=!1),s.__v=e,e.__e=n.__e,e.__k=n.__k,e.__k.forEach((function(t){t&&(t.__=e)})),s.__h.length&&c.push(s);break t}null!=s.componentWillUpdate&&s.componentWillUpdate(m,s.__s,O),null!=s.componentDidUpdate&&s.__h.push((function(){s.componentDidUpdate(d,y,v)}))}s.context=O,s.props=m,s.state=s.__s,(l=o.__r)&&l(e),s.__d=!1,s.__v=e,s.__P=t,l=s.render(s.props,s.state,s.context),s.state=s.__s,null!=s.getChildContext&&(r=h(h({},r),s.getChildContext())),p||null==s.getSnapshotBeforeUpdate||(v=s.getSnapshotBeforeUpdate(d,y)),S=null!=l&&l.type===g&&null==l.key?l.props.children:l,w(t,Array.isArray(S)?S:[S],e,n,r,i,u,c,a,f),s.base=e.__e,e.__h=null,s.__h.length&&c.push(s),_&&(s.__E=s.__=null),s.__e=!1}else null==u&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=C(n.__e,e,n,r,i,u,c,f);(l=o.diffed)&&l(e)}catch(t){e.__v=null,(f||null!=u)&&(e.__e=a,e.__h=!!f,u[u.indexOf(a)]=null),o.__e(t,e,n)}}function T(t,e){o.__c&&o.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){o.__e(t,e.__v)}}))}function C(t,e,n,o,i,u,c,a){var f,s,p,h=n.props,y=e.props,v=e.type,g=0;if("svg"===v&&(i=!0),null!=u)for(;g<u.length;g++)if((f=u[g])&&"setAttribute"in f==!!v&&(v?f.localName===v:3===f.nodeType)){t=f,u[g]=null;break}if(null==t){if(null===v)return document.createTextNode(y);t=i?document.createElementNS("http://www.w3.org/2000/svg",v):document.createElement(v,y.is&&y),u=null,a=!1}if(null===v)h===y||a&&t.data===y||(t.data=y);else{if(u=u&&r.call(t.childNodes),s=(h=n.props||l).dangerouslySetInnerHTML,p=y.dangerouslySetInnerHTML,!a){if(null!=u)for(h={},g=0;g<t.attributes.length;g++)h[t.attributes[g].name]=t.attributes[g].value;(p||s)&&(p&&(s&&p.__html==s.__html||p.__html===t.innerHTML)||(t.innerHTML=p&&p.__html||""))}if(function(t,e,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in e||R(t,i,null,n[i],r);for(i in e)o&&"function"!=typeof e[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===e[i]||R(t,i,e[i],n[i],r)}(t,y,h,i,a),p)e.__k=[];else if(g=e.props.children,w(t,Array.isArray(g)?g:[g],e,n,o,i&&"foreignObject"!==v,u,c,u?u[0]:n.__k&&_(n,0),a),null!=u)for(g=u.length;g--;)null!=u[g]&&d(u[g]);a||("value"in y&&void 0!==(g=y.value)&&(g!==h.value||g!==t.value||"progress"===v&&!g)&&R(t,"value",g,h.value,!1),"checked"in y&&void 0!==(g=y.checked)&&g!==t.checked&&R(t,"checked",g,h.checked,!1))}return t}function D(t,e,n){try{"function"==typeof t?t(e):t.current=e}catch(t){o.__e(t,n)}}function N(t,e,n){var r,i;if(o.unmount&&o.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||D(r,null,e)),null!=(r=t.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(t){o.__e(t,e)}r.base=r.__P=null}if(r=t.__k)for(i=0;i<r.length;i++)r[i]&&N(r[i],e,"function"!=typeof t.type);n||null==t.__e||d(t.__e),t.__e=t.__d=void 0}function A(t,e,n){return this.constructor(t,n)}r=s.slice,o={__e:function(t,e){for(var n,r,o;e=e.__;)if((n=e.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(t)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(t),o=n.__d),o)return n.__E=n}catch(e){t=e}throw t}},i=0,b.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=h({},this.state),"function"==typeof t&&(t=t(h({},n),this.props)),t&&h(n,t),null!=t&&this.__v&&(e&&this.__h.push(e),x(this))},b.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),x(this))},b.prototype.render=g,u=[],c="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,O.__r=0;var z;n(95),n(96),n(177),n(124),n(134),n(135),n(136),n(129),n(137),n(138),n(132),n(97);function I(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function L(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?I(Object(n),!0).forEach((function(e){F(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function F(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function H(t){var e=t.x,n=t.y,r=t.width,o=t.height,i=t.radius,u=t.className,c=e-r/2,a=n-o/2,l=L(L({width:10,height:10,cx:0,cy:0,rx:i||0,ry:i||0,fill:"transparent",fillOpacity:1,strokeWidth:"1px",stroke:"#000",strokeOpacity:1,className:"lf-basic-shape ".concat(u)},t),{},{x:c,y:a});return Object(f.h)("rect",l)}function W(t){return(W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function B(){return(B=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function G(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,o,i=[],u=!0,c=!1;try{for(n=n.call(t);!(u=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{u||null==n.return||n.return()}finally{if(c)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Y(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Y(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Y(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function X(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function U(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?X(Object(n),!0).forEach((function(e){Z(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):X(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function V(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function $(t,e){return($=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function q(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Q(t);if(e){var o=Q(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return K(this,n)}}function K(t,e){if(e&&("object"===W(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return J(t)}function J(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Q(t){return(Q=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Z(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}H.defaultProps={radius:0,stroke:"",strokeDasharray:"",className:""},function(t){t.NODE="node",t.CIRCLE_NODE="circle-node",t.POLYGON_NODE="polygon-node",t.RECT_NODE="rect-node",t.HTML_NODE="html-node",t.TEXT_NODE="text-node",t.ELLIPSE_NODE="ellipse-node",t.DIAMOND_NODE="diamond-node",t.EDGE="edge",t.LINE_EDGE="line-edge",t.POLYLINE_EDGE="polyline-edge",t.BEZIER_EDGE="bezier-edge",t.GRAPH="graph"}(z||(z={}));var tt=f.LogicFlowUtil.StepDrag,et=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&$(t,e)}(i,t);var e,n,r,o=q(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),Z(J(e=o.call(this)),"updatePosition",(function(t){var n=t.deltaX,r=t.deltaY,o=e.nodeModel,i=o.x,u=o.y;e.nodeModel.x=i+n/2,e.nodeModel.y=u+r/2,e.nodeModel.moveText(n/2,r/2)})),Z(J(e),"getResize",(function(t){var e=t.index,n=t.deltaX,r=t.deltaY,o=t.width,i=t.height,u=t.PCTResizeInfo,c=t.pct,a=void 0===c?1:c,f={width:o,height:i,deltaX:n,deltaY:r};if(u){var l=0,s=0;switch(e){case 0:s=(-1*n-r)/4;break;case 1:s=(n-r)/4;break;case 2:s=(n+r)/4;break;case 3:s=(-1*n+r)/4}0!==s&&(l=Math.round(s/u.ResizeBasis.basisHeight*1e5)/1e3),u.ResizePCT.widthPCT=Math.max(Math.min(u.ResizePCT.widthPCT+l,u.ScaleLimit.maxScaleLimit),u.ScaleLimit.minScaleLimit),u.ResizePCT.hightPCT=Math.max(Math.min(u.ResizePCT.hightPCT+l,u.ScaleLimit.maxScaleLimit),u.ScaleLimit.minScaleLimit);var p=Math.round(u.ResizePCT.widthPCT*u.ResizeBasis.basisWidth/100),h=Math.round(u.ResizePCT.hightPCT*u.ResizeBasis.basisHeight/100);switch(e){case 0:n=o-p,r=i-h;break;case 1:n=p-o,r=i-h;break;case 2:n=p-o,r=h-i;break;case 3:n=o-p,r=h-i}return f.width=p,f.height=h,f.deltaX=n/a,f.deltaY=r/a,f}switch(e){case 0:f.width=o-n*a,f.height=i-r*a;break;case 1:f.width=o+n*a,f.height=i-r*a;break;case 2:f.width=o+n*a,f.height=i+r*a;break;case 3:f.width=o-n*a,f.height=i+r*a}return f})),Z(J(e),"updateEdgePointByAnchors",(function(){var t=e.nodeModel,n=t.id,r=t.anchors,o=e.getNodeEdges(n);o.sourceEdges.forEach((function(t){var e=r.find((function(e){return e.id===t.sourceAnchorId}));t.updateStartPoint({x:e.x,y:e.y})})),o.targetEdges.forEach((function(t){var e=r.find((function(e){return e.id===t.targetAnchorId}));t.updateEndPoint({x:e.x,y:e.y})}))})),Z(J(e),"updateRect",(function(t){var n=t.deltaX,r=t.deltaY,o=e.nodeModel,i=o.id,u=o.x,c=o.y,a=o.width,f=o.height,l=o.radius,s=o.PCTResizeInfo,p=J(e).index,h=e.getResize({index:p,deltaX:n,deltaY:r,width:a,height:f,PCTResizeInfo:s,pct:1}),d=e.nodeModel,y=d.minWidth,v=d.minHeight,g=d.maxWidth,b=d.maxHeight;if(h.width<y||h.width>g||h.height<v||h.height>b)e.dragHandler.cancelDrag();else{e.updatePosition({deltaX:h.deltaX,deltaY:h.deltaY}),e.nodeModel.width=h.width,e.nodeModel.height=h.height,e.nodeModel.setProperties({nodeSize:{width:h.width,height:h.height}});e.getNodeEdges(i);var _={x:u,y:c,width:a,height:f,radius:l},m={x:e.nodeModel.x,y:e.nodeModel.y,width:e.nodeModel.width,height:e.nodeModel.height,radius:l};e.updateEdgePointByAnchors(),e.eventEmit({beforeNode:_,afterNode:m})}})),Z(J(e),"updateEllipse",(function(t){var n=t.deltaX,r=t.deltaY,o=e.nodeModel,i=o.id,u=o.rx,c=o.ry,a=o.x,f=o.y,l=o.PCTResizeInfo,s=J(e).index,p=u,h=c,d=e.getResize({index:s,deltaX:n,deltaY:r,width:p,height:h,PCTResizeInfo:l,pct:.5}),y=e.nodeModel,v=y.minWidth,g=y.minHeight,b=y.maxWidth,_=y.maxHeight;if(d.width<v/2||d.width>b/2||d.height<g/2||d.height>_/2)e.dragHandler.cancelDrag();else{e.updatePosition({deltaX:d.deltaX,deltaY:d.deltaY}),e.nodeModel.rx=d.width,e.nodeModel.ry=d.height,e.nodeModel.setProperties({nodeSize:{rx:d.width,ry:d.height}});e.getNodeEdges(i);var m={x:a,y:f},x={rx:d.width,ry:d.height,x:e.nodeModel.x,y:e.nodeModel.y};e.updateEdgePointByAnchors(),e.eventEmit({beforeNode:U(U({},m),{},{rx:u,ry:c}),afterNode:x})}})),Z(J(e),"updateDiamond",(function(t){var n=t.deltaX,r=t.deltaY,o=e.nodeModel,i=(o.id,o.rx),u=o.ry,c=o.x,a=o.y,f=o.PCTResizeInfo,l=J(e).index,s=i,p=u,h=e.getResize({index:l,deltaX:n,deltaY:r,width:s,height:p,PCTResizeInfo:f,pct:.5}),d=e.nodeModel,y=d.minWidth,v=d.minHeight,g=d.maxWidth,b=d.maxHeight;if(h.width<y/2||h.width>g/2||h.height<v/2||h.height>b/2)e.dragHandler.cancelDrag();else{e.updatePosition({deltaX:h.deltaX,deltaY:h.deltaY}),e.nodeModel.rx=h.width,e.nodeModel.ry=h.height,e.nodeModel.setProperties({nodeSize:{rx:h.width,ry:h.height}});var _={x:c,y:a,rx:i,ry:u},m={rx:h.width,ry:h.height,x:e.nodeModel.x,y:e.nodeModel.y};e.updateEdgePointByAnchors(),e.eventEmit({beforeNode:_,afterNode:m})}})),Z(J(e),"eventEmit",(function(t){var n=t.beforeNode,r=t.afterNode,o=e.nodeModel,i=o.id,u=o.modelType,c=o.type,a=U({id:i,modelType:u,type:c},n),f=U({id:i,modelType:u,type:c},r);e.graphModel.eventCenter.emit("node:resize",{oldNodeSize:a,newNodeSize:f})})),Z(J(e),"onDragging",(function(t){var n=t.deltaX,r=t.deltaY,o=e.graphModel.transformModel,i=e.nodeModel.modelType,u=G(o.fixDeltaXY(n,r),2);n=u[0],r=u[1],i===z.RECT_NODE||i===z.HTML_NODE?e.updateRect({deltaX:n,deltaY:r}):i===z.ELLIPSE_NODE?e.updateEllipse({deltaX:n,deltaY:r}):i===z.DIAMOND_NODE&&e.updateDiamond({deltaX:n,deltaY:r})})),Z(J(e),"onDragEnd",(function(){var t=e.graphModel.gridSize,n=void 0===t?1:t,r=n*Math.round(e.nodeModel.x/n),o=n*Math.round(e.nodeModel.y/n);e.nodeModel.moveTo(r,o),e.updateEdgePointByAnchors()})),e.index=t.index,e.nodeModel=t.model,e.graphModel=t.graphModel,e.state={},e.dragHandler=new tt({onDragging:e.onDragging,onDragEnd:e.onDragEnd,step:1}),e}return e=i,(n=[{key:"getNodeEdges",value:function(t){for(var e=this.graphModel.edges,n=[],r=[],o=0;o<e.length;o++){var i=e[o];i.sourceNodeId===t?n.push(i):e[o].targetNodeId===t&&r.push(i)}return{sourceEdges:n,targetEdges:r}}},{key:"render",value:function(){var t=this.props,e=t.x,n=t.y,r=t.index,o=t.model.getControlPointStyle();return y("g",{className:"lf-resize-control-".concat(r)},y(H,B({className:"lf-node-control",x:e,y:n},o,{onMouseDown:this.dragHandler.handleMouseDown})))}}])&&V(e.prototype,n),r&&V(e,r),i}(b);function nt(t){return(nt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function rt(){return(rt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function ot(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function it(t,e){return(it=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ut(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=at(t);if(e){var o=at(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ct(this,n)}}function ct(t,e){if(e&&("object"===nt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function at(t){return(at=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var ft=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&it(t,e)}(i,t);var e,n,r,o=ut(i);function i(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this)).state={},t}return e=i,(n=[{key:"getResizeControl",value:function(){var t=this.props,e=t.model,n=t.graphModel,r=e.x,o=e.y,i=e.width,u=e.height,c={minX:r-i/2,minY:o-u/2,maxX:r+i/2,maxY:o+u/2},a=c.minX,f=c.minY,l=c.maxX,s=c.maxY;return[{x:a,y:f},{x:l,y:f},{x:l,y:s},{x:a,y:s}].map((function(t,r){return y(et,rt({index:r},t,{model:e,graphModel:n}))}))}},{key:"getGroupSolid",value:function(){var t=this.props.model,e=t.x,n=t.y,r=t.width,o=t.height;return y(H,rt({fill:"none"},t.getResizeOutlineStyle(),{x:e,y:n,width:r,height:o}))}},{key:"render",value:function(){return y("g",{className:"lf-resize-control"},this.getGroupSolid(),this.getResizeControl())}}])&&ot(e.prototype,n),r&&ot(e,r),i}(b);function lt(t){return(lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function st(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function pt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ht(t,e,n){return e&&pt(t.prototype,e),n&&pt(t,n),t}function dt(){return(dt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=yt(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}}).apply(this,arguments)}function yt(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=mt(t)););return t}function vt(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&>(t,e)}function gt(t,e){return(gt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function bt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=mt(t);if(e){var o=mt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _t(this,n)}}function _t(t,e){if(e&&("object"===lt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function mt(t){return(mt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var xt=function(t){vt(n,t);var e=bt(n);function n(t,r){var o;st(this,n);var i=(o=e.call(this,t,r)).properties.nodeSize;return i&&(o.width=i.width,o.height=i.height),o}return ht(n,[{key:"initNodeData",value:function(t){dt(mt(n.prototype),"initNodeData",this).call(this,t),this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3}},{key:"getOutlineStyle",value:function(){var t=dt(mt(n.prototype),"getOutlineStyle",this).call(this);return this.graphModel.editConfigModel.isSilentMode||(t.stroke="none",t.hover&&(t.hover.stroke="none")),t}},{key:"getResizeOutlineStyle",value:function(){return{fill:"none",stroke:"transparent",strokeWidth:1,strokeDasharray:"3,3"}}},{key:"getControlPointStyle",value:function(){return{width:7,height:7,fill:"#FFFFFF",stroke:"#000000"}}},{key:"resize",value:function(t,e){console.log(t,e)}},{key:"enableProportionResize",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(t){var e={widthPCT:100,hightPCT:100},n={basisWidth:this.width,basisHeight:this.height},r={maxScaleLimit:Math.min(this.maxWidth/this.width*100,this.maxHeight/this.height*100),minScaleLimit:Math.max(this.minWidth/this.width*100,this.minHeight/this.height*100)};this.PCTResizeInfo={ResizePCT:e,ResizeBasis:n,ScaleLimit:r}}else delete this.PCTResizeInfo}}]),n}(f.RectNodeModel),Ot={type:"rect",view:function(t){vt(n,t);var e=bt(n);function n(){return st(this,n),e.apply(this,arguments)}return ht(n,[{key:"getControlGroup",value:function(){var t=this.props,e=t.model,n=t.graphModel;return Object(f.h)(ft,{model:e,graphModel:n})}},{key:"getResizeShape",value:function(){return dt(mt(n.prototype),"getShape",this).call(this)}},{key:"getShape",value:function(){var t=this.props,e=t.model.isSelected,n=t.graphModel.editConfigModel.isSilentMode;return Object(f.h)("g",null,this.getResizeShape(),e&&!n?this.getControlGroup():"")}}]),n}(f.RectNode),model:xt};function wt(t){return(wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function St(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Pt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function jt(t,e,n){return e&&Pt(t.prototype,e),n&&Pt(t,n),t}function Rt(){return(Rt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=kt(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}}).apply(this,arguments)}function kt(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Dt(t)););return t}function Et(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Mt(t,e)}function Mt(t,e){return(Mt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Tt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Dt(t);if(e){var o=Dt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ct(this,n)}}function Ct(t,e){if(e&&("object"===wt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Dt(t){return(Dt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Nt=function(t){Et(n,t);var e=Tt(n);function n(t,r){var o;St(this,n);var i=(o=e.call(this,t,r)).properties.nodeSize;return i&&(o.rx=i.rx,o.ry=i.ry),o}return jt(n,[{key:"initNodeData",value:function(t){Rt(Dt(n.prototype),"initNodeData",this).call(this,t),this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3}},{key:"getOutlineStyle",value:function(){var t=Rt(Dt(n.prototype),"getOutlineStyle",this).call(this);return this.graphModel.editConfigModel.isSilentMode||(t.stroke="none",t.hover&&(t.hover.stroke="none")),t}},{key:"getResizeOutlineStyle",value:function(){return{stroke:"#000000",strokeWidth:1,strokeDasharray:"3,3"}}},{key:"getControlPointStyle",value:function(){return{width:7,height:7,fill:"#FFFFFF",stroke:"#000000"}}},{key:"enableProportionResize",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(t){var e={widthPCT:100,hightPCT:100},n={basisWidth:this.rx,basisHeight:this.ry},r={maxScaleLimit:Math.min(this.maxWidth/(2*this.rx)*100,this.maxHeight/(2*this.ry)*100),minScaleLimit:Math.max(this.minWidth/(2*this.rx)*100,this.minHeight/(2*this.ry)*100)};this.PCTResizeInfo={ResizePCT:e,ResizeBasis:n,ScaleLimit:r}}else delete this.PCTResizeInfo}}]),n}(f.EllipseNodeModel),At={type:"ellipse",view:function(t){Et(n,t);var e=Tt(n);function n(){return St(this,n),e.apply(this,arguments)}return jt(n,[{key:"getControlGroup",value:function(){var t=this.props,e=t.model,n=t.graphModel;return Object(f.h)(ft,{model:e,graphModel:n})}},{key:"getResizeShape",value:function(){return Rt(Dt(n.prototype),"getShape",this).call(this)}},{key:"getShape",value:function(){var t=this.props,e=t.model,n=t.graphModel.editConfigModel.isSilentMode;return Object(f.h)("g",null,this.getResizeShape(),e.isSelected&&!n?this.getControlGroup():"")}}]),n}(f.EllipseNode),model:Nt};n(185),n(169);function zt(t){var e=t.fillOpacity,n=void 0===e?1:e,r=t.strokeWidth,o=void 0===r?1:r,i=t.strokeOpacity,u=void 0===i?1:i,c=t.fill,a=void 0===c?"transparent":c,l=t.stroke,s=void 0===l?"#000":l,p=t.points,h=t.className,d={fill:a,fillOpacity:n,strokeWidth:o,stroke:s,strokeOpacity:u,points:"",className:void 0===h?"lf-basic-shape":h};return d.points=p.map((function(t){return t.join(",")})).join(" "),Object(f.h)("polygon",d)}function It(t){return(It="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Lt(){return(Lt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function Ft(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ht(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Wt(t,e,n){return e&&Ht(t.prototype,e),n&&Ht(t,n),t}function Bt(){return(Bt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=Gt(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}}).apply(this,arguments)}function Gt(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=$t(t)););return t}function Yt(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Xt(t,e)}function Xt(t,e){return(Xt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ut(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=$t(t);if(e){var o=$t(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Vt(this,n)}}function Vt(t,e){if(e&&("object"===It(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function $t(t){return($t=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var qt=function(t){Yt(n,t);var e=Ut(n);function n(t,r){var o;Ft(this,n);var i=(o=e.call(this,t,r)).properties.nodeSize;return i&&(o.rx=i.rx,o.ry=i.ry),o}return Wt(n,[{key:"initNodeData",value:function(t){Bt($t(n.prototype),"initNodeData",this).call(this,t),this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3,this.gridSize=1}},{key:"getOutlineStyle",value:function(){var t=Bt($t(n.prototype),"getOutlineStyle",this).call(this);return this.graphModel.editConfigModel.isSilentMode||(t.stroke="none",t.hover&&(t.hover.stroke="none")),t}},{key:"getResizeOutlineStyle",value:function(){return{stroke:"#000000",strokeWidth:1,strokeDasharray:"3,3"}}},{key:"getControlPointStyle",value:function(){return{width:7,height:7,fill:"#FFFFFF",stroke:"#000000"}}},{key:"enableProportionResize",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(t){var e={widthPCT:100,hightPCT:100},n={basisWidth:this.rx,basisHeight:this.ry},r={maxScaleLimit:Math.min(this.maxWidth/(2*this.rx)*100,this.maxHeight/(2*this.ry)*100),minScaleLimit:Math.max(this.minWidth/(2*this.rx)*100,this.minHeight/(2*this.ry)*100)};this.PCTResizeInfo={ResizePCT:e,ResizeBasis:n,ScaleLimit:r}}else delete this.PCTResizeInfo}}]),n}(f.DiamondNodeModel),Kt={type:"diamond",view:function(t){Yt(n,t);var e=Ut(n);function n(){return Ft(this,n),e.apply(this,arguments)}return Wt(n,[{key:"getControlGroup",value:function(){var t=this.props,e=t.model,n=t.graphModel;return Object(f.h)(ft,{model:e,graphModel:n})}},{key:"getResizeShape",value:function(){var t=this.props.model,e=t.points,n=t.getNodeStyle();return Object(f.h)("g",null,Object(f.h)(zt,Lt({},n,{points:e})))}},{key:"getShape",value:function(){var t=this.props,e=t.model.isSelected,n=t.graphModel.editConfigModel.isSilentMode;return Object(f.h)("g",null,this.getResizeShape(),e&&!n?this.getControlGroup():"")}}]),n}(f.DiamondNode),model:qt};function Jt(t){return(Jt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Qt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Zt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function te(t,e,n){return e&&Zt(t.prototype,e),n&&Zt(t,n),t}function ee(){return(ee="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=ne(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}}).apply(this,arguments)}function ne(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=ce(t)););return t}function re(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&oe(t,e)}function oe(t,e){return(oe=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ie(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ce(t);if(e){var o=ce(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ue(this,n)}}function ue(t,e){if(e&&("object"===Jt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function ce(t){return(ce=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var ae=function(t){re(n,t);var e=ie(n);function n(t,r){var o;Qt(this,n);var i=(o=e.call(this,t,r)).properties.nodeSize;return i&&(o.width=i.width,o.height=i.height),o}return te(n,[{key:"initNodeData",value:function(t){ee(ce(n.prototype),"initNodeData",this).call(this,t),this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3}},{key:"getOutlineStyle",value:function(){var t=ee(ce(n.prototype),"getOutlineStyle",this).call(this);return this.graphModel.editConfigModel.isSilentMode||(t.stroke="none",t.hover&&(t.hover.stroke="none")),t}},{key:"getResizeOutlineStyle",value:function(){return{stroke:"#000000",strokeWidth:1,strokeDasharray:"3,3"}}},{key:"getControlPointStyle",value:function(){return{width:7,height:7,fill:"#FFFFFF",stroke:"#000000"}}},{key:"enableProportionResize",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(t){var e={widthPCT:100,hightPCT:100},n={basisWidth:this.width,basisHeight:this.height},r={maxScaleLimit:Math.min(this.maxWidth/this.width*100,this.maxHeight/this.height*100),minScaleLimit:Math.max(this.minWidth/this.width*100,this.minHeight/this.height*100)};this.PCTResizeInfo={ResizePCT:e,ResizeBasis:n,ScaleLimit:r}}else delete this.PCTResizeInfo}}]),n}(f.HtmlNodeModel),fe={type:"html",view:function(t){re(n,t);var e=ie(n);function n(){return Qt(this,n),e.apply(this,arguments)}return te(n,[{key:"getControlGroup",value:function(){var t=this.props,e=t.model,n=t.graphModel;return Object(f.h)(ft,{model:e,graphModel:n})}},{key:"getResizeShape",value:function(){return ee(ce(n.prototype),"getShape",this).call(this)}},{key:"getShape",value:function(){var t=this.props,e=t.model.isSelected,n=t.graphModel.editConfigModel.isSilentMode;return Object(f.h)("g",null,this.getResizeShape(),e&&!n?this.getControlGroup():"")}}]),n}(f.HtmlNode),model:ae},le={pluginName:"nodeResize",step:0,install:function(t){t.register({type:Ot.type,view:Ot.view,model:Ot.model}),t.register({type:At.type,view:At.view,model:At.model}),t.register({type:Kt.type,view:Kt.view,model:Kt.model}),t.register({type:fe.type,view:fe.view,model:fe.model})}};e.default=le},function(t,e,n){var r=n(5),o=n(218),i=n(104);r({target:"Array",proto:!0},{fill:o}),i("fill")},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";var r=n(14),o=n(56),i=n(17);t.exports=function(t){for(var e=r(this),n=i(e),u=arguments.length,c=o(u>1?arguments[1]:void 0,n),a=u>2?arguments[2]:void 0,f=void 0===a?n:o(a,n);f>c;)e[c++]=t;return e}}])}));
|
|
1
|
+
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("window"));else if("function"==typeof define&&define.amd)define(["window"],e);else{var n="object"==typeof exports?e(require("window")):e(t.window);for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(window,(function(t){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=184)}([function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(this,n(98))},function(t,e){var n=Function.prototype,r=n.bind,o=n.call,i=r&&r.bind(o);t.exports=r?function(t){return t&&i(o,t)}:function(t){return t&&function(){return o.apply(t,arguments)}}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=function(t){return"function"==typeof t}},function(t,e,n){var r=n(0),o=n(32),i=n(6),u=n(37),c=n(49),a=n(62),f=o("wks"),l=r.Symbol,s=l&&l.for,p=a?l:l&&l.withoutSetter||u;t.exports=function(t){if(!i(f,t)||!c&&"string"!=typeof f[t]){var e="Symbol."+t;c&&i(l,t)?f[t]=l[t]:f[t]=a&&s?s(e):p(e)}return f[t]}},function(t,e,n){var r=n(0),o=n(25).f,i=n(16),u=n(15),c=n(41),a=n(70),f=n(75);t.exports=function(t,e){var n,l,s,p,h,d=t.target,y=t.global,v=t.stat;if(n=y?r:v?r[d]||c(d,{}):(r[d]||{}).prototype)for(l in e){if(p=e[l],s=t.noTargetGet?(h=o(n,l))&&h.value:n[l],!f(y?l:d+(v?".":"#")+l,t.forced)&&void 0!==s){if(typeof p==typeof s)continue;a(p,s)}(t.sham||s&&s.sham)&&i(p,"sham",!0),u(n,l,p,t)}}},function(t,e,n){var r=n(1),o=n(14),i=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},function(t,e,n){var r=n(2);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,e,n){var r=n(3);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},function(t,e,n){var r=n(0),o=n(7),i=n(63),u=n(10),c=n(28),a=r.TypeError,f=Object.defineProperty;e.f=o?f:function(t,e,n){if(u(t),e=c(e),u(n),i)try{return f(t,e,n)}catch(t){}if("get"in n||"set"in n)throw a("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(0),o=n(8),i=r.String,u=r.TypeError;t.exports=function(t){if(o(t))return t;throw u(i(t)+" is not an object")}},function(t,e){var n=Function.prototype.call;t.exports=n.bind?n.bind(n):function(){return n.apply(n,arguments)}},function(t,e,n){var r=n(57),o=n(27);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(0),o=n(3),i=function(t){return o(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?i(r[t]):r[t]&&r[t][e]}},function(t,e,n){var r=n(0),o=n(27),i=r.Object;t.exports=function(t){return i(o(t))}},function(t,e,n){var r=n(0),o=n(3),i=n(6),u=n(16),c=n(41),a=n(38),f=n(22),l=n(54).CONFIGURABLE,s=f.get,p=f.enforce,h=String(String).split("String");(t.exports=function(t,e,n,a){var f,s=!!a&&!!a.unsafe,d=!!a&&!!a.enumerable,y=!!a&&!!a.noTargetGet,v=a&&void 0!==a.name?a.name:e;o(n)&&("Symbol("===String(v).slice(0,7)&&(v="["+String(v).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!i(n,"name")||l&&n.name!==v)&&u(n,"name",v),(f=p(n)).source||(f.source=h.join("string"==typeof v?v:""))),t!==r?(s?!y&&t[e]&&(d=!0):delete t[e],d?t[e]=n:u(t,e,n)):d?t[e]=n:c(e,n)})(Function.prototype,"toString",(function(){return o(this)&&s(this).source||a(this)}))},function(t,e,n){var r=n(7),o=n(9),i=n(23);t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(82);t.exports=function(t){return r(t.length)}},function(t,e,n){var r=n(1),o=r({}.toString),i=r("".slice);t.exports=function(t){return i(o(t),8,-1)}},function(t,e,n){var r,o=n(10),i=n(92),u=n(48),c=n(24),a=n(107),f=n(42),l=n(35),s=l("IE_PROTO"),p=function(){},h=function(t){return"<script>"+t+"<\/script>"},d=function(t){t.write(h("")),t.close();var e=t.parentWindow.Object;return t=null,e},y=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}var t,e;y="undefined"!=typeof document?document.domain&&r?d(r):((e=f("iframe")).style.display="none",a.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(h("document.F=Object")),t.close(),t.F):d(r);for(var n=u.length;n--;)delete y.prototype[u[n]];return y()};c[s]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(p.prototype=o(t),n=new p,p.prototype=null,n[s]=t):n=y(),void 0===e?n:i(n,e)}},function(t,e,n){var r=n(0),o=n(30),i=r.String;t.exports=function(t){if("Symbol"===o(t))throw TypeError("Cannot convert a Symbol value to a string");return i(t)}},function(e,n){e.exports=t},function(t,e,n){var r,o,i,u=n(101),c=n(0),a=n(1),f=n(8),l=n(16),s=n(6),p=n(40),h=n(35),d=n(24),y=c.TypeError,v=c.WeakMap;if(u||p.state){var g=p.state||(p.state=new v),b=a(g.get),_=a(g.has),m=a(g.set);r=function(t,e){if(_(g,t))throw new y("Object already initialized");return e.facade=t,m(g,t,e),e},o=function(t){return b(g,t)||{}},i=function(t){return _(g,t)}}else{var x=h("state");d[x]=!0,r=function(t,e){if(s(t,x))throw new y("Object already initialized");return e.facade=t,l(t,x,e),e},o=function(t){return s(t,x)?t[x]:{}},i=function(t){return s(t,x)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!f(e)||(n=o(e)).type!==t)throw y("Incompatible receiver, "+t+" required");return n}}}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){t.exports={}},function(t,e,n){var r=n(7),o=n(11),i=n(61),u=n(23),c=n(12),a=n(28),f=n(6),l=n(63),s=Object.getOwnPropertyDescriptor;e.f=r?s:function(t,e){if(t=c(t),e=a(e),l)try{return s(t,e)}catch(t){}if(f(t,e))return u(!o(i.f,t,e),t[e])}},function(t,e,n){var r=n(1);t.exports=r({}.isPrototypeOf)},function(t,e,n){var r=n(0).TypeError;t.exports=function(t){if(null==t)throw r("Can't call method on "+t);return t}},function(t,e,n){var r=n(99),o=n(46);t.exports=function(t){var e=r(t,"string");return o(e)?e:e+""}},function(t,e,n){var r=n(18);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(0),o=n(43),i=n(3),u=n(18),c=n(4)("toStringTag"),a=r.Object,f="Arguments"==u(function(){return arguments}());t.exports=o?u:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=a(t),c))?n:f?u(e):"Object"==(r=u(e))&&i(e.callee)?"Arguments":r}},function(t,e){t.exports={}},function(t,e,n){var r=n(34),o=n(40);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.19.3",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var r=n(0),o=n(3),i=n(52),u=r.TypeError;t.exports=function(t){if(o(t))return t;throw u(i(t)+" is not a function")}},function(t,e){t.exports=!1},function(t,e,n){var r=n(32),o=n(37),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){var e=+t;return e!=e||0===e?0:(e>0?r:n)(e)}},function(t,e,n){var r=n(1),o=0,i=Math.random(),u=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+u(++o+i,36)}},function(t,e,n){var r=n(1),o=n(3),i=n(40),u=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return u(t)}),t.exports=i.inspectSource},function(t,e,n){var r=n(65),o=n(48).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(0),o=n(41),i=r["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=i},function(t,e,n){var r=n(0),o=Object.defineProperty;t.exports=function(t,e){try{o(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},function(t,e,n){var r=n(0),o=n(8),i=r.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},function(t,e,n){var r={};r[n(4)("toStringTag")]="z",t.exports="[object z]"===String(r)},function(t,e,n){"use strict";var r=n(28),o=n(9),i=n(23);t.exports=function(t,e,n){var u=r(e);u in t?o.f(t,u,i(0,n)):t[u]=n}},function(t,e,n){var r=n(33);t.exports=function(t,e){var n=t[e];return null==n?void 0:r(n)}},function(t,e,n){var r=n(0),o=n(13),i=n(3),u=n(26),c=n(62),a=r.Object;t.exports=c?function(t){return"symbol"==typeof t}:function(t){var e=o("Symbol");return i(e)&&u(e.prototype,a(t))}},function(t,e,n){var r=n(1),o=n(33),i=r(r.bind);t.exports=function(t,e){return o(t),void 0===e?t:i?i(t,e):function(){return t.apply(e,arguments)}}},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e,n){var r=n(50),o=n(2);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},function(t,e,n){var r,o,i=n(0),u=n(73),c=i.process,a=i.Deno,f=c&&c.versions||a&&a.version,l=f&&f.v8;l&&(o=(r=l.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&u&&(!(r=u.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=u.match(/Chrome\/(\d+)/))&&(o=+r[1]),t.exports=o},function(t,e,n){var r=n(9).f,o=n(6),i=n(4)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){var r=n(0).String;t.exports=function(t){try{return r(t)}catch(t){return"Object"}}},function(t,e,n){var r=n(47),o=n(1),i=n(57),u=n(14),c=n(17),a=n(71),f=o([].push),l=function(t){var e=1==t,n=2==t,o=3==t,l=4==t,s=6==t,p=7==t,h=5==t||s;return function(d,y,v,g){for(var b,_,m=u(d),x=i(m),O=r(y,v),w=c(x),S=0,P=g||a,j=e?P(d,w):n||p?P(d,0):void 0;w>S;S++)if((h||S in x)&&(_=O(b=x[S],S,m),t))if(e)j[S]=_;else if(_)switch(t){case 3:return!0;case 5:return b;case 6:return S;case 2:f(j,b)}else switch(t){case 4:return!1;case 7:f(j,b)}return s?-1:o||l?l:j}};t.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},function(t,e,n){var r=n(7),o=n(6),i=Function.prototype,u=r&&Object.getOwnPropertyDescriptor,c=o(i,"name"),a=c&&"something"===function(){}.name,f=c&&(!r||r&&u(i,"name").configurable);t.exports={EXISTS:c,PROPER:a,CONFIGURABLE:f}},function(t,e,n){var r=n(1),o=n(2),i=n(3),u=n(30),c=n(13),a=n(38),f=function(){},l=[],s=c("Reflect","construct"),p=/^\s*(?:class|function)\b/,h=r(p.exec),d=!p.exec(f),y=function(t){if(!i(t))return!1;try{return s(f,l,t),!0}catch(t){return!1}};t.exports=!s||o((function(){var t;return y(y.call)||!y(Object)||!y((function(){t=!0}))||t}))?function(t){if(!i(t))return!1;switch(u(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return d||!!h(p,a(t))}:y},function(t,e,n){var r=n(36),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},function(t,e,n){var r=n(0),o=n(1),i=n(2),u=n(18),c=r.Object,a=o("".split);t.exports=i((function(){return!c("z").propertyIsEnumerable(0)}))?function(t){return"String"==u(t)?a(t,""):c(t)}:c},function(t,e,n){var r=n(65),o=n(48);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){"use strict";var r=n(12),o=n(104),i=n(31),u=n(22),c=n(69),a=u.set,f=u.getterFor("Array Iterator");t.exports=c(Array,"Array",(function(t,e){a(this,{type:"Array Iterator",target:r(t),index:0,kind:e})}),(function(){var t=f(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(t,e,n){var r=n(43),o=n(15),i=n(103);r||o(Object.prototype,"toString",i,{unsafe:!0})},function(t,e,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);e.f=i?function(t){var e=o(this,t);return!!e&&e.enumerable}:r},function(t,e,n){var r=n(49);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,n){var r=n(7),o=n(2),i=n(42);t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(5),o=n(7);r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:n(9).f})},function(t,e,n){var r=n(1),o=n(6),i=n(12),u=n(87).indexOf,c=n(24),a=r([].push);t.exports=function(t,e){var n,r=i(t),f=0,l=[];for(n in r)!o(c,n)&&o(r,n)&&a(l,n);for(;e.length>f;)o(r,n=e[f++])&&(~u(l,n)||a(l,n));return l}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(2),o=n(4),i=n(50),u=o("species");t.exports=function(t){return i>=51||!r((function(){var e=[];return(e.constructor={})[u]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},function(t,e,n){var r=n(0),o=n(6),i=n(3),u=n(14),c=n(35),a=n(108),f=c("IE_PROTO"),l=r.Object,s=l.prototype;t.exports=a?l.getPrototypeOf:function(t){var e=u(t);if(o(e,f))return e[f];var n=e.constructor;return i(n)&&e instanceof n?n.prototype:e instanceof l?s:null}},function(t,e,n){"use strict";var r=n(5),o=n(11),i=n(34),u=n(54),c=n(3),a=n(116),f=n(68),l=n(86),s=n(51),p=n(16),h=n(15),d=n(4),y=n(31),v=n(88),g=u.PROPER,b=u.CONFIGURABLE,_=v.IteratorPrototype,m=v.BUGGY_SAFARI_ITERATORS,x=d("iterator"),O=function(){return this};t.exports=function(t,e,n,u,d,v,w){a(n,e,u);var S,P,j,R=function(t){if(t===d&&C)return C;if(!m&&t in M)return M[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},k=e+" Iterator",E=!1,M=t.prototype,T=M[x]||M["@@iterator"]||d&&M[d],C=!m&&T||R(d),D="Array"==e&&M.entries||T;if(D&&(S=f(D.call(new t)))!==Object.prototype&&S.next&&(i||f(S)===_||(l?l(S,_):c(S[x])||h(S,x,O)),s(S,k,!0,!0),i&&(y[k]=O)),g&&"values"==d&&T&&"values"!==T.name&&(!i&&b?p(M,"name","values"):(E=!0,C=function(){return o(T,this)})),d)if(P={values:R("values"),keys:v?C:R("keys"),entries:R("entries")},w)for(j in P)(m||E||!(j in M))&&h(M,j,P[j]);else r({target:e,proto:!0,forced:m||E},P);return i&&!w||M[x]===C||h(M,x,C,{name:d}),y[e]=C,P}},function(t,e,n){var r=n(6),o=n(85),i=n(25),u=n(9);t.exports=function(t,e){for(var n=o(e),c=u.f,a=i.f,f=0;f<n.length;f++){var l=n[f];r(t,l)||c(t,l,a(e,l))}}},function(t,e,n){var r=n(102);t.exports=function(t,e){return new(r(t))(0===e?0:e)}},function(t,e,n){var r=n(1);t.exports=r([].slice)},function(t,e,n){var r=n(13);t.exports=r("navigator","userAgent")||""},function(t,e,n){"use strict";var r=n(53).forEach,o=n(79)("forEach");t.exports=o?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},function(t,e,n){var r=n(2),o=n(3),i=/#|\.prototype\./,u=function(t,e){var n=a[c(t)];return n==l||n!=f&&(o(e)?r(e):!!e)},c=u.normalize=function(t){return String(t).replace(i,".").toLowerCase()},a=u.data={},f=u.NATIVE="N",l=u.POLYFILL="P";t.exports=u},function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,e,n){var r=n(42)("span").classList,o=r&&r.constructor&&r.constructor.prototype;t.exports=o===Object.prototype?void 0:o},function(t,e,n){"use strict";var r=n(105).charAt,o=n(20),i=n(22),u=n(69),c=i.set,a=i.getterFor("String Iterator");u(String,"String",(function(t){c(this,{type:"String Iterator",string:o(t),index:0})}),(function(){var t,e=a(this),n=e.string,o=e.index;return o>=n.length?{value:void 0,done:!0}:(t=r(n,o),e.index+=t.length,{value:t,done:!1})}))},function(t,e,n){"use strict";var r=n(2);t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){throw 1},1)}))}},function(t,e,n){var r=n(30),o=n(45),i=n(31),u=n(4)("iterator");t.exports=function(t){if(null!=t)return o(t,u)||o(t,"@@iterator")||i[r(t)]}},function(t,e,n){var r=n(0),o=n(76),i=n(77),u=n(59),c=n(16),a=n(4),f=a("iterator"),l=a("toStringTag"),s=u.values,p=function(t,e){if(t){if(t[f]!==s)try{c(t,f,s)}catch(e){t[f]=s}if(t[l]||c(t,l,e),o[e])for(var n in u)if(t[n]!==u[n])try{c(t,n,u[n])}catch(e){t[n]=u[n]}}};for(var h in o)p(r[h]&&r[h].prototype,h);p(i,"DOMTokenList")},function(t,e,n){var r=n(36),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e){var n=Function.prototype,r=n.apply,o=n.bind,i=n.call;t.exports="object"==typeof Reflect&&Reflect.apply||(o?i.bind(r):function(){return i.apply(r,arguments)})},function(t,e,n){"use strict";var r=n(5),o=n(0),i=n(13),u=n(83),c=n(11),a=n(1),f=n(34),l=n(7),s=n(49),p=n(2),h=n(6),d=n(29),y=n(3),v=n(8),g=n(26),b=n(46),_=n(10),m=n(14),x=n(12),O=n(28),w=n(20),S=n(23),P=n(19),j=n(58),R=n(39),k=n(106),E=n(66),M=n(25),T=n(9),C=n(61),D=n(72),z=n(15),N=n(32),A=n(35),I=n(24),L=n(37),F=n(4),H=n(93),W=n(94),B=n(51),G=n(22),Y=n(53).forEach,X=A("hidden"),U=F("toPrimitive"),V=G.set,$=G.getterFor("Symbol"),q=Object.prototype,K=o.Symbol,J=K&&K.prototype,Q=o.TypeError,Z=o.QObject,tt=i("JSON","stringify"),et=M.f,nt=T.f,rt=k.f,ot=C.f,it=a([].push),ut=N("symbols"),ct=N("op-symbols"),at=N("string-to-symbol-registry"),ft=N("symbol-to-string-registry"),lt=N("wks"),st=!Z||!Z.prototype||!Z.prototype.findChild,pt=l&&p((function(){return 7!=P(nt({},"a",{get:function(){return nt(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=et(q,e);r&&delete q[e],nt(t,e,n),r&&t!==q&&nt(q,e,r)}:nt,ht=function(t,e){var n=ut[t]=P(J);return V(n,{type:"Symbol",tag:t,description:e}),l||(n.description=e),n},dt=function(t,e,n){t===q&&dt(ct,e,n),_(t);var r=O(e);return _(n),h(ut,r)?(n.enumerable?(h(t,X)&&t[X][r]&&(t[X][r]=!1),n=P(n,{enumerable:S(0,!1)})):(h(t,X)||nt(t,X,S(1,{})),t[X][r]=!0),pt(t,r,n)):nt(t,r,n)},yt=function(t,e){_(t);var n=x(e),r=j(n).concat(_t(n));return Y(r,(function(e){l&&!c(vt,n,e)||dt(t,e,n[e])})),t},vt=function(t){var e=O(t),n=c(ot,this,e);return!(this===q&&h(ut,e)&&!h(ct,e))&&(!(n||!h(this,e)||!h(ut,e)||h(this,X)&&this[X][e])||n)},gt=function(t,e){var n=x(t),r=O(e);if(n!==q||!h(ut,r)||h(ct,r)){var o=et(n,r);return!o||!h(ut,r)||h(n,X)&&n[X][r]||(o.enumerable=!0),o}},bt=function(t){var e=rt(x(t)),n=[];return Y(e,(function(t){h(ut,t)||h(I,t)||it(n,t)})),n},_t=function(t){var e=t===q,n=rt(e?ct:x(t)),r=[];return Y(n,(function(t){!h(ut,t)||e&&!h(q,t)||it(r,ut[t])})),r};(s||(z(J=(K=function(){if(g(J,this))throw Q("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?w(arguments[0]):void 0,e=L(t),n=function(t){this===q&&c(n,ct,t),h(this,X)&&h(this[X],e)&&(this[X][e]=!1),pt(this,e,S(1,t))};return l&&st&&pt(q,e,{configurable:!0,set:n}),ht(e,t)}).prototype,"toString",(function(){return $(this).tag})),z(K,"withoutSetter",(function(t){return ht(L(t),t)})),C.f=vt,T.f=dt,M.f=gt,R.f=k.f=bt,E.f=_t,H.f=function(t){return ht(F(t),t)},l&&(nt(J,"description",{configurable:!0,get:function(){return $(this).description}}),f||z(q,"propertyIsEnumerable",vt,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!s,sham:!s},{Symbol:K}),Y(j(lt),(function(t){W(t)})),r({target:"Symbol",stat:!0,forced:!s},{for:function(t){var e=w(t);if(h(at,e))return at[e];var n=K(e);return at[e]=n,ft[n]=e,n},keyFor:function(t){if(!b(t))throw Q(t+" is not a symbol");if(h(ft,t))return ft[t]},useSetter:function(){st=!0},useSimple:function(){st=!1}}),r({target:"Object",stat:!0,forced:!s,sham:!l},{create:function(t,e){return void 0===e?P(t):yt(P(t),e)},defineProperty:dt,defineProperties:yt,getOwnPropertyDescriptor:gt}),r({target:"Object",stat:!0,forced:!s},{getOwnPropertyNames:bt,getOwnPropertySymbols:_t}),r({target:"Object",stat:!0,forced:p((function(){E.f(1)}))},{getOwnPropertySymbols:function(t){return E.f(m(t))}}),tt)&&r({target:"JSON",stat:!0,forced:!s||p((function(){var t=K();return"[null]"!=tt([t])||"{}"!=tt({a:t})||"{}"!=tt(Object(t))}))},{stringify:function(t,e,n){var r=D(arguments),o=e;if((v(e)||void 0!==t)&&!b(t))return d(e)||(e=function(t,e){if(y(o)&&(e=c(o,this,t,e)),!b(e))return e}),r[1]=e,u(tt,null,r)}});if(!J[U]){var mt=J.valueOf;z(J,U,(function(t){return c(mt,this)}))}B(K,"Symbol"),I[X]=!0},function(t,e,n){var r=n(13),o=n(1),i=n(39),u=n(66),c=n(10),a=o([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(c(t)),n=u.f;return n?a(e,n(t)):e}},function(t,e,n){var r=n(1),o=n(10),i=n(117);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return o(n),i(r),e?t(n,r):n.__proto__=r,n}}():void 0)},function(t,e,n){var r=n(12),o=n(56),i=n(17),u=function(t){return function(e,n,u){var c,a=r(e),f=i(a),l=o(u,f);if(t&&n!=n){for(;f>l;)if((c=a[l++])!=c)return!0}else for(;f>l;l++)if((t||l in a)&&a[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},function(t,e,n){"use strict";var r,o,i,u=n(2),c=n(3),a=n(19),f=n(68),l=n(15),s=n(4),p=n(34),h=s("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(o=f(f(i)))!==Object.prototype&&(r=o):d=!0),null==r||u((function(){var t={};return r[h].call(t)!==t}))?r={}:p&&(r=a(r)),c(r[h])||l(r,h,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:d}},function(t,e,n){"use strict";var r=n(5),o=n(7),i=n(0),u=n(1),c=n(6),a=n(3),f=n(26),l=n(20),s=n(9).f,p=n(70),h=i.Symbol,d=h&&h.prototype;if(o&&a(h)&&(!("description"in d)||void 0!==h().description)){var y={},v=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:l(arguments[0]),e=f(d,this)?new h(t):void 0===t?h():h(t);return""===t&&(y[e]=!0),e};p(v,h),v.prototype=d,d.constructor=v;var g="Symbol(test)"==String(h("test")),b=u(d.toString),_=u(d.valueOf),m=/^Symbol\((.*)\)[^)]+$/,x=u("".replace),O=u("".slice);s(d,"description",{configurable:!0,get:function(){var t=_(this),e=b(t);if(c(y,t))return"";var n=g?O(e,7,-1):x(e,m,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:v})}},function(t,e,n){n(94)("iterator")},function(t,e,n){"use strict";var r,o,i=n(11),u=n(1),c=n(20),a=n(114),f=n(118),l=n(32),s=n(19),p=n(22).get,h=n(121),d=n(122),y=l("native-string-replace",String.prototype.replace),v=RegExp.prototype.exec,g=v,b=u("".charAt),_=u("".indexOf),m=u("".replace),x=u("".slice),O=(o=/b*/g,i(v,r=/a/,"a"),i(v,o,"a"),0!==r.lastIndex||0!==o.lastIndex),w=f.BROKEN_CARET,S=void 0!==/()??/.exec("")[1];(O||S||w||h||d)&&(g=function(t){var e,n,r,o,u,f,l,h=this,d=p(h),P=c(t),j=d.raw;if(j)return j.lastIndex=h.lastIndex,e=i(g,j,P),h.lastIndex=j.lastIndex,e;var R=d.groups,k=w&&h.sticky,E=i(a,h),M=h.source,T=0,C=P;if(k&&(E=m(E,"y",""),-1===_(E,"g")&&(E+="g"),C=x(P,h.lastIndex),h.lastIndex>0&&(!h.multiline||h.multiline&&"\n"!==b(P,h.lastIndex-1))&&(M="(?: "+M+")",C=" "+C,T++),n=new RegExp("^(?:"+M+")",E)),S&&(n=new RegExp("^"+M+"$(?!\\s)",E)),O&&(r=h.lastIndex),o=i(v,k?n:h,C),k?o?(o.input=x(o.input,T),o[0]=x(o[0],T),o.index=h.lastIndex,h.lastIndex+=o[0].length):h.lastIndex=0:O&&o&&(h.lastIndex=h.global?o.index+o[0].length:r),S&&o&&o.length>1&&i(y,o[0],n,(function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(o[u]=void 0)})),o&&R)for(o.groups=f=s(null),u=0;u<R.length;u++)f[(l=R[u])[0]]=o[l[1]];return o}),t.exports=g},function(t,e,n){var r=n(7),o=n(9),i=n(10),u=n(12),c=n(58);t.exports=r?Object.defineProperties:function(t,e){i(t);for(var n,r=u(e),a=c(e),f=a.length,l=0;f>l;)o.f(t,n=a[l++],r[n]);return t}},function(t,e,n){var r=n(4);e.f=r},function(t,e,n){var r=n(123),o=n(6),i=n(93),u=n(9).f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});o(e,t)||u(e,t,{value:i.f(t)})}},function(t,e,n){"use strict";var r=n(5),o=n(74);r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},function(t,e,n){var r=n(0),o=n(76),i=n(77),u=n(74),c=n(16),a=function(t){if(t&&t.forEach!==u)try{c(t,"forEach",u)}catch(e){t.forEach=u}};for(var f in o)o[f]&&a(r[f]&&r[f].prototype);a(i)},function(t,e,n){"use strict";var r=n(5),o=n(91);r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){var r=n(0),o=n(11),i=n(8),u=n(46),c=n(45),a=n(100),f=n(4),l=r.TypeError,s=f("toPrimitive");t.exports=function(t,e){if(!i(t)||u(t))return t;var n,r=c(t,s);if(r){if(void 0===e&&(e="default"),n=o(r,t,e),!i(n)||u(n))return n;throw l("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},function(t,e,n){var r=n(0),o=n(11),i=n(3),u=n(8),c=r.TypeError;t.exports=function(t,e){var n,r;if("string"===e&&i(n=t.toString)&&!u(r=o(n,t)))return r;if(i(n=t.valueOf)&&!u(r=o(n,t)))return r;if("string"!==e&&i(n=t.toString)&&!u(r=o(n,t)))return r;throw c("Can't convert object to primitive value")}},function(t,e,n){var r=n(0),o=n(3),i=n(38),u=r.WeakMap;t.exports=o(u)&&/native code/.test(i(u))},function(t,e,n){var r=n(0),o=n(29),i=n(55),u=n(8),c=n(4)("species"),a=r.Array;t.exports=function(t){var e;return o(t)&&(e=t.constructor,(i(e)&&(e===a||o(e.prototype))||u(e)&&null===(e=e[c]))&&(e=void 0)),void 0===e?a:e}},function(t,e,n){"use strict";var r=n(43),o=n(30);t.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},function(t,e,n){var r=n(4),o=n(19),i=n(9),u=r("unscopables"),c=Array.prototype;null==c[u]&&i.f(c,u,{configurable:!0,value:o(null)}),t.exports=function(t){c[u][t]=!0}},function(t,e,n){var r=n(1),o=n(36),i=n(20),u=n(27),c=r("".charAt),a=r("".charCodeAt),f=r("".slice),l=function(t){return function(e,n){var r,l,s=i(u(e)),p=o(n),h=s.length;return p<0||p>=h?t?"":void 0:(r=a(s,p))<55296||r>56319||p+1===h||(l=a(s,p+1))<56320||l>57343?t?c(s,p):r:t?f(s,p,p+2):l-56320+(r-55296<<10)+65536}};t.exports={codeAt:l(!1),charAt:l(!0)}},function(t,e,n){var r=n(18),o=n(12),i=n(39).f,u=n(113),c="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return c&&"Window"==r(t)?function(t){try{return i(t)}catch(t){return u(c)}}(t):i(o(t))}},function(t,e,n){var r=n(13);t.exports=r("document","documentElement")},function(t,e,n){var r=n(2);t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},function(t,e,n){var r=n(4),o=n(31),i=r("iterator"),u=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||u[i]===t)}},function(t,e,n){var r=n(0),o=n(11),i=n(33),u=n(10),c=n(52),a=n(80),f=r.TypeError;t.exports=function(t,e){var n=arguments.length<2?a(t):e;if(i(n))return u(o(n,t));throw f(c(t)+" is not iterable")}},function(t,e,n){var r=n(11),o=n(10),i=n(45);t.exports=function(t,e,n){var u,c;o(t);try{if(!(u=i(t,"return"))){if("throw"===e)throw n;return n}u=r(u,t)}catch(t){c=!0,u=t}if("throw"===e)throw n;if(c)throw u;return o(u),n}},function(t,e,n){var r=n(4)("iterator"),o=!1;try{var i=0,u={next:function(){return{done:!!i++}},return:function(){o=!0}};u[r]=function(){return this},Array.from(u,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(t){}return n}},function(t,e,n){var r=n(0),o=n(56),i=n(17),u=n(44),c=r.Array,a=Math.max;t.exports=function(t,e,n){for(var r=i(t),f=o(e,r),l=o(void 0===n?r:n,r),s=c(a(l-f,0)),p=0;f<l;f++,p++)u(s,p,t[f]);return s.length=p,s}},function(t,e,n){"use strict";var r=n(10);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,n){var r=n(5),o=n(2),i=n(12),u=n(25).f,c=n(7),a=o((function(){u(1)}));r({target:"Object",stat:!0,forced:!c||a,sham:!c},{getOwnPropertyDescriptor:function(t,e){return u(i(t),e)}})},function(t,e,n){"use strict";var r=n(88).IteratorPrototype,o=n(19),i=n(23),u=n(51),c=n(31),a=function(){return this};t.exports=function(t,e,n,f){var l=e+" Iterator";return t.prototype=o(r,{next:i(+!f,n)}),u(t,l,!1,!0),c[l]=a,t}},function(t,e,n){var r=n(0),o=n(3),i=r.String,u=r.TypeError;t.exports=function(t){if("object"==typeof t||o(t))return t;throw u("Can't set "+i(t)+" as a prototype")}},function(t,e,n){var r=n(2),o=n(0).RegExp,i=r((function(){var t=o("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),u=i||r((function(){return!o("a","y").sticky})),c=i||r((function(){var t=o("^r","gy");return t.lastIndex=2,null!=t.exec("str")}));t.exports={BROKEN_CARET:c,MISSED_STICKY:u,UNSUPPORTED_Y:i}},,,function(t,e,n){var r=n(2),o=n(0).RegExp;t.exports=r((function(){var t=o(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}))},function(t,e,n){var r=n(2),o=n(0).RegExp;t.exports=r((function(){var t=o("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},function(t,e,n){var r=n(0);t.exports=r},function(t,e,n){var r=n(5),o=n(14),i=n(58);r({target:"Object",stat:!0,forced:n(2)((function(){i(1)}))},{keys:function(t){return i(o(t))}})},function(t,e,n){n(5)({target:"Object",stat:!0},{setPrototypeOf:n(86)})},function(t,e,n){var r=n(5),o=n(2),i=n(14),u=n(68),c=n(108);r({target:"Object",stat:!0,forced:o((function(){u(1)})),sham:!c},{getPrototypeOf:function(t){return u(i(t))}})},function(t,e,n){var r=n(5),o=n(13),i=n(83),u=n(155),c=n(150),a=n(10),f=n(8),l=n(19),s=n(2),p=o("Reflect","construct"),h=Object.prototype,d=[].push,y=s((function(){function t(){}return!(p((function(){}),[],t)instanceof t)})),v=!s((function(){p((function(){}))})),g=y||v;r({target:"Reflect",stat:!0,forced:g,sham:g},{construct:function(t,e){c(t),a(e);var n=arguments.length<3?t:c(arguments[2]);if(v&&!y)return p(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return i(d,r,e),new(i(u,t,r))}var o=n.prototype,s=l(f(o)?o:h),g=i(t,s,e);return f(g)?g:s}})},function(t,e,n){n(5)({target:"Object",stat:!0,sham:!n(7)},{create:n(19)})},function(t,e,n){n(5)({target:"Array",stat:!0},{isArray:n(29)})},,,function(t,e,n){var r=n(5),o=n(139);r({target:"Array",stat:!0,forced:!n(112)((function(t){Array.from(t)}))},{from:o})},,function(t,e,n){"use strict";var r=n(5),o=n(53).filter;r({target:"Array",proto:!0,forced:!n(67)("filter")},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(5),o=n(7),i=n(85),u=n(12),c=n(25),a=n(44);r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(t){for(var e,n,r=u(t),o=c.f,f=i(r),l={},s=0;f.length>s;)void 0!==(n=o(r,e=f[s++]))&&a(l,e,n);return l}})},function(t,e,n){var r=n(5),o=n(7);r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperties:n(92)})},function(t,e,n){"use strict";var r=n(5),o=n(0),i=n(29),u=n(55),c=n(8),a=n(56),f=n(17),l=n(12),s=n(44),p=n(4),h=n(67),d=n(72),y=h("slice"),v=p("species"),g=o.Array,b=Math.max;r({target:"Array",proto:!0,forced:!y},{slice:function(t,e){var n,r,o,p=l(this),h=f(p),y=a(t,h),_=a(void 0===e?h:e,h);if(i(p)&&(n=p.constructor,(u(n)&&(n===g||i(n.prototype))||c(n)&&null===(n=n[v]))&&(n=void 0),n===g||void 0===n))return d(p,y,_);for(r=new(void 0===n?g:n)(b(_-y,0)),o=0;y<_;y++,o++)y in p&&s(r,o,p[y]);return r.length=o,r}})},function(t,e,n){var r=n(7),o=n(54).EXISTS,i=n(1),u=n(9).f,c=Function.prototype,a=i(c.toString),f=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,l=i(f.exec);r&&!o&&u(c,"name",{configurable:!0,get:function(){try{return l(f,a(this))[1]}catch(t){return""}}})},function(t,e,n){"use strict";var r=n(0),o=n(47),i=n(11),u=n(14),c=n(140),a=n(109),f=n(55),l=n(17),s=n(44),p=n(110),h=n(80),d=r.Array;t.exports=function(t){var e=u(t),n=f(this),r=arguments.length,y=r>1?arguments[1]:void 0,v=void 0!==y;v&&(y=o(y,r>2?arguments[2]:void 0));var g,b,_,m,x,O,w=h(e),S=0;if(!w||this==d&&a(w))for(g=l(e),b=n?new this(g):d(g);g>S;S++)O=v?y(e[S],S):e[S],s(b,S,O);else for(x=(m=p(e,w)).next,b=n?new this:[];!(_=i(x,m)).done;S++)O=v?c(m,y,[_.value,S],!0):_.value,s(b,S,O);return b.length=S,b}},function(t,e,n){var r=n(10),o=n(111);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){o(t,"throw",e)}}},,,,,,,,,,function(t,e,n){var r=n(0),o=n(55),i=n(52),u=r.TypeError;t.exports=function(t){if(o(t))return t;throw u(i(t)+" is not a constructor")}},,,,,function(t,e,n){"use strict";var r=n(0),o=n(1),i=n(33),u=n(8),c=n(6),a=n(72),f=r.Function,l=o([].concat),s=o([].join),p={},h=function(t,e,n){if(!c(p,e)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";p[e]=f("C,a","return new C("+s(r,",")+")")}return p[e](t,n)};t.exports=f.bind||function(t){var e=i(this),n=e.prototype,r=a(arguments,1),o=function(){var n=l(r,a(arguments));return this instanceof o?h(e,n.length,n):e.apply(t,n)};return u(n)&&(o.prototype=n),o}},,function(t,e,n){"use strict";var r=n(5),o=n(53).map;r({target:"Array",proto:!0,forced:!n(67)("map")},{map:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},,,,function(t,e,n){var r=n(5),o=n(11),i=n(8),u=n(10),c=n(182),a=n(25),f=n(68);r({target:"Reflect",stat:!0},{get:function t(e,n){var r,l,s=arguments.length<3?e:arguments[2];return u(e)===s?e[n]:(r=a.f(e,n))?c(r)?r.value:void 0===r.get?void 0:o(r.get,s):i(l=f(e))?t(l,n,s):void 0}})},,,,,,,function(t,e,n){var r=n(5),o=n(176);r({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},function(t,e,n){"use strict";var r=n(5),o=n(1),i=n(57),u=n(12),c=n(79),a=o([].join),f=i!=Object,l=c("join",",");r({target:"Array",proto:!0,forced:f||!l},{join:function(t){return a(u(this),void 0===t?",":t)}})},,,,,,,function(t,e,n){"use strict";var r=n(7),o=n(1),i=n(11),u=n(2),c=n(58),a=n(66),f=n(61),l=n(14),s=n(57),p=Object.assign,h=Object.defineProperty,d=o([].concat);t.exports=!p||u((function(){if(r&&1!==p({b:1},p(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol();return t[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=p({},t)[n]||"abcdefghijklmnopqrst"!=c(p({},e)).join("")}))?function(t,e){for(var n=l(t),o=arguments.length,u=1,p=a.f,h=f.f;o>u;)for(var y,v=s(arguments[u++]),g=p?d(c(v),p(v)):c(v),b=g.length,_=0;b>_;)y=g[_++],r&&!i(h,v,y)||(n[y]=v[y]);return n}:p},function(t,e,n){"use strict";var r=n(5),o=n(53).find,i=n(104),u=!0;"find"in[]&&Array(1).find((function(){u=!1})),r({target:"Array",proto:!0,forced:u},{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i("find")},,,,,function(t,e,n){var r=n(6);t.exports=function(t){return void 0!==t&&(r(t,"value")||r(t,"writable"))}},,function(t,e,n){"use strict";n.r(e),n.d(e,"NodeResize",(function(){return le})),n.d(e,"RectResize",(function(){return Ot})),n.d(e,"EllipseResize",(function(){return Nt})),n.d(e,"DiamondResize",(function(){return Kt})),n.d(e,"HtmlResize",(function(){return fe}));n(125),n(126),n(60),n(127),n(128),n(161),n(115),n(64),n(84),n(89),n(90),n(59),n(78),n(81);var r,o,i,u,c,a,f=n(21),l=(n(157),n(168),{}),s=[],p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function h(t,e){for(var n in e)t[n]=e[n];return t}function d(t){var e=t.parentNode;e&&e.removeChild(t)}function y(t,e,n){var o,i,u,c={};for(u in e)"key"==u?o=e[u]:"ref"==u?i=e[u]:c[u]=e[u];if(arguments.length>2&&(c.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(u in t.defaultProps)void 0===c[u]&&(c[u]=t.defaultProps[u]);return v(t,c,o,i,null)}function v(t,e,n,r,u){var c={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==u?++i:u};return null==u&&null!=o.vnode&&o.vnode(c),c}function g(t){return t.children}function b(t,e){this.props=t,this.context=e}function _(t,e){if(null==e)return t.__?_(t.__,t.__.__k.indexOf(t)+1):null;for(var n;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof t.type?_(t):null}function m(t){var e,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return m(t)}}function x(t){(!t.__d&&(t.__d=!0)&&u.push(t)&&!O.__r++||a!==o.debounceRendering)&&((a=o.debounceRendering)||c)(O)}function O(){for(var t;O.__r=u.length;)t=u.sort((function(t,e){return t.__v.__b-e.__v.__b})),u=[],t.some((function(t){var e,n,r,o,i,u;t.__d&&(i=(o=(e=t).__v).__e,(u=e.__P)&&(n=[],(r=h({},o)).__v=o.__v+1,M(u,o,r,e.__n,void 0!==u.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?_(o):i,o.__h),T(n,o),o.__e!=i&&m(o)))}))}function w(t,e,n,r,o,i,u,c,a,f){var p,h,d,y,b,m,x,O=r&&r.__k||s,w=O.length;for(n.__k=[],p=0;p<e.length;p++)if(null!=(y=n.__k[p]=null==(y=e[p])||"boolean"==typeof y?null:"string"==typeof y||"number"==typeof y||"bigint"==typeof y?v(null,y,null,null,y):Array.isArray(y)?v(g,{children:y},null,null,null):y.__b>0?v(y.type,y.props,y.key,null,y.__v):y)){if(y.__=n,y.__b=n.__b+1,null===(d=O[p])||d&&y.key==d.key&&y.type===d.type)O[p]=void 0;else for(h=0;h<w;h++){if((d=O[h])&&y.key==d.key&&y.type===d.type){O[h]=void 0;break}d=null}M(t,y,d=d||l,o,i,u,c,a,f),b=y.__e,(h=y.ref)&&d.ref!=h&&(x||(x=[]),d.ref&&x.push(d.ref,null,y),x.push(h,y.__c||b,y)),null!=b?(null==m&&(m=b),"function"==typeof y.type&&y.__k===d.__k?y.__d=a=S(y,a,t):a=P(t,y,d,O,b,a),"function"==typeof n.type&&(n.__d=a)):a&&d.__e==a&&a.parentNode!=t&&(a=_(d))}for(n.__e=m,p=w;p--;)null!=O[p]&&("function"==typeof n.type&&null!=O[p].__e&&O[p].__e==n.__d&&(n.__d=_(r,p+1)),z(O[p],O[p]));if(x)for(p=0;p<x.length;p++)D(x[p],x[++p],x[++p])}function S(t,e,n){for(var r,o=t.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=t,e="function"==typeof r.type?S(r,e,n):P(n,r,r,o,r.__e,e));return e}function P(t,e,n,r,o,i){var u,c,a;if(void 0!==e.__d)u=e.__d,e.__d=void 0;else if(null==n||o!=i||null==o.parentNode)t:if(null==i||i.parentNode!==t)t.appendChild(o),u=null;else{for(c=i,a=0;(c=c.nextSibling)&&a<r.length;a+=2)if(c==o)break t;t.insertBefore(o,i),u=i}return void 0!==u?u:o.nextSibling}function j(t,e,n){"-"===e[0]?t.setProperty(e,n):t[e]=null==n?"":"number"!=typeof n||p.test(e)?n:n+"px"}function R(t,e,n,r,o){var i;t:if("style"===e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof r&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||j(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||j(t.style,e,n[e])}else if("o"===e[0]&&"n"===e[1])i=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=n,n?r||t.addEventListener(e,i?E:k,i):t.removeEventListener(e,i?E:k,i);else if("dangerouslySetInnerHTML"!==e){if(o)e=e.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==e&&"list"!==e&&"form"!==e&&"tabIndex"!==e&&"download"!==e&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null!=n&&(!1!==n||"a"===e[0]&&"r"===e[1])?t.setAttribute(e,n):t.removeAttribute(e))}}function k(t){this.l[t.type+!1](o.event?o.event(t):t)}function E(t){this.l[t.type+!0](o.event?o.event(t):t)}function M(t,e,n,r,i,u,c,a,f){var l,s,p,d,y,v,_,m,x,O,S,P=e.type;if(void 0!==e.constructor)return null;null!=n.__h&&(f=n.__h,a=e.__e=n.__e,e.__h=null,u=[a]),(l=o.__b)&&l(e);try{t:if("function"==typeof P){if(m=e.props,x=(l=P.contextType)&&r[l.__c],O=l?x?x.props.value:l.__:r,n.__c?_=(s=e.__c=n.__c).__=s.__E:("prototype"in P&&P.prototype.render?e.__c=s=new P(m,O):(e.__c=s=new b(m,O),s.constructor=P,s.render=N),x&&x.sub(s),s.props=m,s.state||(s.state={}),s.context=O,s.__n=r,p=s.__d=!0,s.__h=[]),null==s.__s&&(s.__s=s.state),null!=P.getDerivedStateFromProps&&(s.__s==s.state&&(s.__s=h({},s.__s)),h(s.__s,P.getDerivedStateFromProps(m,s.__s))),d=s.props,y=s.state,p)null==P.getDerivedStateFromProps&&null!=s.componentWillMount&&s.componentWillMount(),null!=s.componentDidMount&&s.__h.push(s.componentDidMount);else{if(null==P.getDerivedStateFromProps&&m!==d&&null!=s.componentWillReceiveProps&&s.componentWillReceiveProps(m,O),!s.__e&&null!=s.shouldComponentUpdate&&!1===s.shouldComponentUpdate(m,s.__s,O)||e.__v===n.__v){s.props=m,s.state=s.__s,e.__v!==n.__v&&(s.__d=!1),s.__v=e,e.__e=n.__e,e.__k=n.__k,e.__k.forEach((function(t){t&&(t.__=e)})),s.__h.length&&c.push(s);break t}null!=s.componentWillUpdate&&s.componentWillUpdate(m,s.__s,O),null!=s.componentDidUpdate&&s.__h.push((function(){s.componentDidUpdate(d,y,v)}))}s.context=O,s.props=m,s.state=s.__s,(l=o.__r)&&l(e),s.__d=!1,s.__v=e,s.__P=t,l=s.render(s.props,s.state,s.context),s.state=s.__s,null!=s.getChildContext&&(r=h(h({},r),s.getChildContext())),p||null==s.getSnapshotBeforeUpdate||(v=s.getSnapshotBeforeUpdate(d,y)),S=null!=l&&l.type===g&&null==l.key?l.props.children:l,w(t,Array.isArray(S)?S:[S],e,n,r,i,u,c,a,f),s.base=e.__e,e.__h=null,s.__h.length&&c.push(s),_&&(s.__E=s.__=null),s.__e=!1}else null==u&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=C(n.__e,e,n,r,i,u,c,f);(l=o.diffed)&&l(e)}catch(t){e.__v=null,(f||null!=u)&&(e.__e=a,e.__h=!!f,u[u.indexOf(a)]=null),o.__e(t,e,n)}}function T(t,e){o.__c&&o.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){o.__e(t,e.__v)}}))}function C(t,e,n,o,i,u,c,a){var f,s,p,h=n.props,y=e.props,v=e.type,g=0;if("svg"===v&&(i=!0),null!=u)for(;g<u.length;g++)if((f=u[g])&&"setAttribute"in f==!!v&&(v?f.localName===v:3===f.nodeType)){t=f,u[g]=null;break}if(null==t){if(null===v)return document.createTextNode(y);t=i?document.createElementNS("http://www.w3.org/2000/svg",v):document.createElement(v,y.is&&y),u=null,a=!1}if(null===v)h===y||a&&t.data===y||(t.data=y);else{if(u=u&&r.call(t.childNodes),s=(h=n.props||l).dangerouslySetInnerHTML,p=y.dangerouslySetInnerHTML,!a){if(null!=u)for(h={},g=0;g<t.attributes.length;g++)h[t.attributes[g].name]=t.attributes[g].value;(p||s)&&(p&&(s&&p.__html==s.__html||p.__html===t.innerHTML)||(t.innerHTML=p&&p.__html||""))}if(function(t,e,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in e||R(t,i,null,n[i],r);for(i in e)o&&"function"!=typeof e[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===e[i]||R(t,i,e[i],n[i],r)}(t,y,h,i,a),p)e.__k=[];else if(g=e.props.children,w(t,Array.isArray(g)?g:[g],e,n,o,i&&"foreignObject"!==v,u,c,u?u[0]:n.__k&&_(n,0),a),null!=u)for(g=u.length;g--;)null!=u[g]&&d(u[g]);a||("value"in y&&void 0!==(g=y.value)&&(g!==h.value||g!==t.value||"progress"===v&&!g)&&R(t,"value",g,h.value,!1),"checked"in y&&void 0!==(g=y.checked)&&g!==t.checked&&R(t,"checked",g,h.checked,!1))}return t}function D(t,e,n){try{"function"==typeof t?t(e):t.current=e}catch(t){o.__e(t,n)}}function z(t,e,n){var r,i;if(o.unmount&&o.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||D(r,null,e)),null!=(r=t.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(t){o.__e(t,e)}r.base=r.__P=null}if(r=t.__k)for(i=0;i<r.length;i++)r[i]&&z(r[i],e,"function"!=typeof t.type);n||null==t.__e||d(t.__e),t.__e=t.__d=void 0}function N(t,e,n){return this.constructor(t,n)}r=s.slice,o={__e:function(t,e){for(var n,r,o;e=e.__;)if((n=e.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(t)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(t),o=n.__d),o)return n.__E=n}catch(e){t=e}throw t}},i=0,b.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=h({},this.state),"function"==typeof t&&(t=t(h({},n),this.props)),t&&h(n,t),null!=t&&this.__v&&(e&&this.__h.push(e),x(this))},b.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),x(this))},b.prototype.render=g,u=[],c="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,O.__r=0;var A;n(95),n(96),n(177),n(124),n(134),n(135),n(136),n(129),n(137),n(138),n(132),n(97);function I(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function L(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?I(Object(n),!0).forEach((function(e){F(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function F(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function H(t){var e=t.x,n=t.y,r=t.width,o=t.height,i=t.radius,u=t.className,c=e-r/2,a=n-o/2,l=L(L({width:10,height:10,cx:0,cy:0,rx:i||0,ry:i||0,fill:"transparent",fillOpacity:1,strokeWidth:"1px",stroke:"#000",strokeOpacity:1,className:"lf-basic-shape ".concat(u)},t),{},{x:c,y:a});return Object(f.h)("rect",l)}function W(t){return(W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function B(){return(B=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function G(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,o,i=[],u=!0,c=!1;try{for(n=n.call(t);!(u=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{u||null==n.return||n.return()}finally{if(c)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Y(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Y(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Y(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function X(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function U(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?X(Object(n),!0).forEach((function(e){Z(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):X(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function V(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function $(t,e){return($=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function q(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Q(t);if(e){var o=Q(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return K(this,n)}}function K(t,e){if(e&&("object"===W(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return J(t)}function J(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Q(t){return(Q=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Z(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}H.defaultProps={radius:0,stroke:"",strokeDasharray:"",className:""},function(t){t.NODE="node",t.CIRCLE_NODE="circle-node",t.POLYGON_NODE="polygon-node",t.RECT_NODE="rect-node",t.HTML_NODE="html-node",t.TEXT_NODE="text-node",t.ELLIPSE_NODE="ellipse-node",t.DIAMOND_NODE="diamond-node",t.EDGE="edge",t.LINE_EDGE="line-edge",t.POLYLINE_EDGE="polyline-edge",t.BEZIER_EDGE="bezier-edge",t.GRAPH="graph"}(A||(A={}));var tt=f.LogicFlowUtil.StepDrag,et=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&$(t,e)}(i,t);var e,n,r,o=q(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),Z(J(e=o.call(this)),"updatePosition",(function(t){var n=t.deltaX,r=t.deltaY,o=e.nodeModel,i=o.x,u=o.y;e.nodeModel.x=i+n/2,e.nodeModel.y=u+r/2,e.nodeModel.moveText(n/2,r/2)})),Z(J(e),"getResize",(function(t){var e=t.index,n=t.deltaX,r=t.deltaY,o=t.width,i=t.height,u=t.PCTResizeInfo,c=t.pct,a=void 0===c?1:c,f=t.freezeWidth,l=void 0!==f&&f,s=t.freezeHeight,p=void 0!==s&&s,h={width:o,height:i,deltaX:n,deltaY:r};if(u){var d=0,y=0;switch(e){case 0:y=(-1*n-r)/4;break;case 1:y=(n-r)/4;break;case 2:y=(n+r)/4;break;case 3:y=(-1*n+r)/4}0!==y&&(d=Math.round(y/u.ResizeBasis.basisHeight*1e5)/1e3),u.ResizePCT.widthPCT=Math.max(Math.min(u.ResizePCT.widthPCT+d,u.ScaleLimit.maxScaleLimit),u.ScaleLimit.minScaleLimit),u.ResizePCT.hightPCT=Math.max(Math.min(u.ResizePCT.hightPCT+d,u.ScaleLimit.maxScaleLimit),u.ScaleLimit.minScaleLimit);var v=Math.round(u.ResizePCT.widthPCT*u.ResizeBasis.basisWidth/100),g=Math.round(u.ResizePCT.hightPCT*u.ResizeBasis.basisHeight/100);switch(e){case 0:n=o-v,r=i-g;break;case 1:n=v-o,r=i-g;break;case 2:n=v-o,r=g-i;break;case 3:n=o-v,r=g-i}return h.width=v,h.height=g,h.deltaX=n/a,h.deltaY=r/a,h}switch(e){case 0:h.width=l?o:o-n*a,h.height=p?i:i-r*a;break;case 1:h.width=l?o:o+n*a,h.height=p?i:i-r*a;break;case 2:h.width=l?o:o+n*a,h.height=p?i:i+r*a;break;case 3:h.width=l?o:o-n*a,h.height=p?i:i+r*a}return h})),Z(J(e),"updateEdgePointByAnchors",(function(){var t=e.nodeModel,n=t.id,r=t.anchors,o=e.getNodeEdges(n);o.sourceEdges.forEach((function(t){var e=r.find((function(e){return e.id===t.sourceAnchorId}));t.updateStartPoint({x:e.x,y:e.y})})),o.targetEdges.forEach((function(t){var e=r.find((function(e){return e.id===t.targetAnchorId}));t.updateEndPoint({x:e.x,y:e.y})}))})),Z(J(e),"updateRect",(function(t){var n=t.deltaX,r=t.deltaY,o=e.nodeModel,i=o.id,u=o.x,c=o.y,a=o.width,f=o.height,l=o.radius,s=o.PCTResizeInfo,p=e.nodeModel,h=p.minWidth,d=p.minHeight,y=p.maxWidth,v=p.maxHeight,g=J(e).index,b=h===y,_=d===v,m=e.getResize({index:g,deltaX:n,deltaY:r,width:a,height:f,PCTResizeInfo:s,pct:1,freezeWidth:b,freezeHeight:_});if(m.width<h||m.width>y||m.height<d||m.height>v)e.dragHandler.cancelDrag();else{e.updatePosition({deltaX:b?0:m.deltaX,deltaY:_?0:m.deltaY}),e.nodeModel.width=m.width,e.nodeModel.height=m.height,e.nodeModel.setProperties({nodeSize:{width:m.width,height:m.height}});e.getNodeEdges(i);var x={x:u,y:c,width:a,height:f,radius:l},O={x:e.nodeModel.x,y:e.nodeModel.y,width:e.nodeModel.width,height:e.nodeModel.height,radius:l};e.updateEdgePointByAnchors(),e.eventEmit({beforeNode:x,afterNode:O})}})),Z(J(e),"updateEllipse",(function(t){var n=t.deltaX,r=t.deltaY,o=e.nodeModel,i=o.id,u=o.rx,c=o.ry,a=o.x,f=o.y,l=o.PCTResizeInfo,s=J(e).index,p=e.nodeModel,h=p.minWidth,d=p.minHeight,y=p.maxWidth,v=p.maxHeight,g=h===y,b=d===v,_=u,m=c,x=e.getResize({index:s,deltaX:n,deltaY:r,width:_,height:m,PCTResizeInfo:l,pct:.5,freezeWidth:g,freezeHeight:b});if(x.width<h/2||x.width>y/2||x.height<d/2||x.height>v/2)e.dragHandler.cancelDrag();else{e.updatePosition({deltaX:g?0:x.deltaX,deltaY:b?0:x.deltaY}),e.nodeModel.rx=x.width,e.nodeModel.ry=x.height,e.nodeModel.setProperties({nodeSize:{rx:x.width,ry:x.height}});e.getNodeEdges(i);var O={x:a,y:f},w={rx:x.width,ry:x.height,x:e.nodeModel.x,y:e.nodeModel.y};e.updateEdgePointByAnchors(),e.eventEmit({beforeNode:U(U({},O),{},{rx:u,ry:c}),afterNode:w})}})),Z(J(e),"updateDiamond",(function(t){var n=t.deltaX,r=t.deltaY,o=e.nodeModel,i=(o.id,o.rx),u=o.ry,c=o.x,a=o.y,f=o.PCTResizeInfo,l=J(e).index,s=e.nodeModel,p=s.minWidth,h=s.minHeight,d=s.maxWidth,y=s.maxHeight,v=p===d,g=h===y,b=i,_=u,m=e.getResize({index:l,deltaX:n,deltaY:r,width:b,height:_,PCTResizeInfo:f,pct:.5,freezeWidth:v,freezeHeight:g});if(m.width<p/2||m.width>d/2||m.height<h/2||m.height>y/2)e.dragHandler.cancelDrag();else{e.updatePosition({deltaX:v?0:m.deltaX,deltaY:g?0:m.deltaY}),e.nodeModel.rx=m.width,e.nodeModel.ry=m.height,e.nodeModel.setProperties({nodeSize:{rx:m.width,ry:m.height}});var x={x:c,y:a,rx:i,ry:u},O={rx:m.width,ry:m.height,x:e.nodeModel.x,y:e.nodeModel.y};e.updateEdgePointByAnchors(),e.eventEmit({beforeNode:x,afterNode:O})}})),Z(J(e),"eventEmit",(function(t){var n=t.beforeNode,r=t.afterNode,o=e.nodeModel,i=o.id,u=o.modelType,c=o.type,a=U({id:i,modelType:u,type:c},n),f=U({id:i,modelType:u,type:c},r);e.graphModel.eventCenter.emit("node:resize",{oldNodeSize:a,newNodeSize:f})})),Z(J(e),"onDragging",(function(t){var n=t.deltaX,r=t.deltaY,o=e.graphModel.transformModel,i=e.nodeModel.modelType,u=G(o.fixDeltaXY(n,r),2);n=u[0],r=u[1],i===A.RECT_NODE||i===A.HTML_NODE?e.updateRect({deltaX:n,deltaY:r}):i===A.ELLIPSE_NODE?e.updateEllipse({deltaX:n,deltaY:r}):i===A.DIAMOND_NODE&&e.updateDiamond({deltaX:n,deltaY:r})})),Z(J(e),"onDragEnd",(function(){var t=e.graphModel.gridSize,n=void 0===t?1:t,r=n*Math.round(e.nodeModel.x/n),o=n*Math.round(e.nodeModel.y/n);e.nodeModel.moveTo(r,o),e.updateEdgePointByAnchors()})),e.index=t.index,e.nodeModel=t.model,e.graphModel=t.graphModel,e.state={},e.dragHandler=new tt({onDragging:e.onDragging,onDragEnd:e.onDragEnd,step:1}),e}return e=i,(n=[{key:"getNodeEdges",value:function(t){for(var e=this.graphModel.edges,n=[],r=[],o=0;o<e.length;o++){var i=e[o];i.sourceNodeId===t?n.push(i):e[o].targetNodeId===t&&r.push(i)}return{sourceEdges:n,targetEdges:r}}},{key:"render",value:function(){var t=this.props,e=t.x,n=t.y,r=t.index,o=t.model.getControlPointStyle();return y("g",{className:"lf-resize-control-".concat(r)},y(H,B({className:"lf-node-control",x:e,y:n},o,{onMouseDown:this.dragHandler.handleMouseDown})))}}])&&V(e.prototype,n),r&&V(e,r),i}(b);function nt(t){return(nt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function rt(){return(rt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function ot(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function it(t,e){return(it=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ut(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=at(t);if(e){var o=at(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ct(this,n)}}function ct(t,e){if(e&&("object"===nt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function at(t){return(at=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var ft=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&it(t,e)}(i,t);var e,n,r,o=ut(i);function i(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this)).state={},t}return e=i,(n=[{key:"getResizeControl",value:function(){var t=this.props,e=t.model,n=t.graphModel,r=e.x,o=e.y,i=e.width,u=e.height,c={minX:r-i/2,minY:o-u/2,maxX:r+i/2,maxY:o+u/2},a=c.minX,f=c.minY,l=c.maxX,s=c.maxY;return[{x:a,y:f},{x:l,y:f},{x:l,y:s},{x:a,y:s}].map((function(t,r){return y(et,rt({index:r},t,{model:e,graphModel:n}))}))}},{key:"getGroupSolid",value:function(){var t=this.props.model,e=t.x,n=t.y,r=t.width,o=t.height;return y(H,rt({fill:"none"},t.getResizeOutlineStyle(),{x:e,y:n,width:r,height:o}))}},{key:"render",value:function(){return y("g",{className:"lf-resize-control"},this.getGroupSolid(),this.getResizeControl())}}])&&ot(e.prototype,n),r&&ot(e,r),i}(b);function lt(t){return(lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function st(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function pt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ht(t,e,n){return e&&pt(t.prototype,e),n&&pt(t,n),t}function dt(){return(dt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=yt(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}}).apply(this,arguments)}function yt(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=mt(t)););return t}function vt(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&>(t,e)}function gt(t,e){return(gt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function bt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=mt(t);if(e){var o=mt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _t(this,n)}}function _t(t,e){if(e&&("object"===lt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function mt(t){return(mt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var xt=function(t){vt(n,t);var e=bt(n);function n(t,r){var o;st(this,n);var i=(o=e.call(this,t,r)).properties.nodeSize;return i&&(o.width=i.width,o.height=i.height),o}return ht(n,[{key:"initNodeData",value:function(t){dt(mt(n.prototype),"initNodeData",this).call(this,t),this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3}},{key:"getOutlineStyle",value:function(){var t=dt(mt(n.prototype),"getOutlineStyle",this).call(this);return this.graphModel.editConfigModel.isSilentMode||(t.stroke="none",t.hover&&(t.hover.stroke="none")),t}},{key:"getResizeOutlineStyle",value:function(){return{fill:"none",stroke:"transparent",strokeWidth:1,strokeDasharray:"3,3"}}},{key:"getControlPointStyle",value:function(){return{width:7,height:7,fill:"#FFFFFF",stroke:"#000000"}}},{key:"resize",value:function(t,e){console.log(t,e)}},{key:"enableProportionResize",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(t){var e={widthPCT:100,hightPCT:100},n={basisWidth:this.width,basisHeight:this.height},r={maxScaleLimit:Math.min(this.maxWidth/this.width*100,this.maxHeight/this.height*100),minScaleLimit:Math.max(this.minWidth/this.width*100,this.minHeight/this.height*100)};this.PCTResizeInfo={ResizePCT:e,ResizeBasis:n,ScaleLimit:r}}else delete this.PCTResizeInfo}}]),n}(f.RectNodeModel),Ot={type:"rect",view:function(t){vt(n,t);var e=bt(n);function n(){return st(this,n),e.apply(this,arguments)}return ht(n,[{key:"getControlGroup",value:function(){var t=this.props,e=t.model,n=t.graphModel;return Object(f.h)(ft,{model:e,graphModel:n})}},{key:"getResizeShape",value:function(){return dt(mt(n.prototype),"getShape",this).call(this)}},{key:"getShape",value:function(){var t=this.props,e=t.model.isSelected,n=t.graphModel.editConfigModel.isSilentMode;return Object(f.h)("g",null,this.getResizeShape(),e&&!n?this.getControlGroup():"")}}]),n}(f.RectNode),model:xt};function wt(t){return(wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function St(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Pt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function jt(t,e,n){return e&&Pt(t.prototype,e),n&&Pt(t,n),t}function Rt(){return(Rt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=kt(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}}).apply(this,arguments)}function kt(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Dt(t)););return t}function Et(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Mt(t,e)}function Mt(t,e){return(Mt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Tt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Dt(t);if(e){var o=Dt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ct(this,n)}}function Ct(t,e){if(e&&("object"===wt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Dt(t){return(Dt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var zt=function(t){Et(n,t);var e=Tt(n);function n(t,r){var o;St(this,n);var i=(o=e.call(this,t,r)).properties.nodeSize;return i&&(o.rx=i.rx,o.ry=i.ry),o}return jt(n,[{key:"initNodeData",value:function(t){Rt(Dt(n.prototype),"initNodeData",this).call(this,t),this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3}},{key:"getOutlineStyle",value:function(){var t=Rt(Dt(n.prototype),"getOutlineStyle",this).call(this);return this.graphModel.editConfigModel.isSilentMode||(t.stroke="none",t.hover&&(t.hover.stroke="none")),t}},{key:"getResizeOutlineStyle",value:function(){return{stroke:"#000000",strokeWidth:1,strokeDasharray:"3,3"}}},{key:"getControlPointStyle",value:function(){return{width:7,height:7,fill:"#FFFFFF",stroke:"#000000"}}},{key:"enableProportionResize",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(t){var e={widthPCT:100,hightPCT:100},n={basisWidth:this.rx,basisHeight:this.ry},r={maxScaleLimit:Math.min(this.maxWidth/(2*this.rx)*100,this.maxHeight/(2*this.ry)*100),minScaleLimit:Math.max(this.minWidth/(2*this.rx)*100,this.minHeight/(2*this.ry)*100)};this.PCTResizeInfo={ResizePCT:e,ResizeBasis:n,ScaleLimit:r}}else delete this.PCTResizeInfo}}]),n}(f.EllipseNodeModel),Nt={type:"ellipse",view:function(t){Et(n,t);var e=Tt(n);function n(){return St(this,n),e.apply(this,arguments)}return jt(n,[{key:"getControlGroup",value:function(){var t=this.props,e=t.model,n=t.graphModel;return Object(f.h)(ft,{model:e,graphModel:n})}},{key:"getResizeShape",value:function(){return Rt(Dt(n.prototype),"getShape",this).call(this)}},{key:"getShape",value:function(){var t=this.props,e=t.model,n=t.graphModel.editConfigModel.isSilentMode;return Object(f.h)("g",null,this.getResizeShape(),e.isSelected&&!n?this.getControlGroup():"")}}]),n}(f.EllipseNode),model:zt};n(185),n(169);function At(t){var e=t.fillOpacity,n=void 0===e?1:e,r=t.strokeWidth,o=void 0===r?1:r,i=t.strokeOpacity,u=void 0===i?1:i,c=t.fill,a=void 0===c?"transparent":c,l=t.stroke,s=void 0===l?"#000":l,p=t.points,h=t.className,d={fill:a,fillOpacity:n,strokeWidth:o,stroke:s,strokeOpacity:u,points:"",className:void 0===h?"lf-basic-shape":h};return d.points=p.map((function(t){return t.join(",")})).join(" "),Object(f.h)("polygon",d)}function It(t){return(It="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Lt(){return(Lt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function Ft(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ht(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Wt(t,e,n){return e&&Ht(t.prototype,e),n&&Ht(t,n),t}function Bt(){return(Bt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=Gt(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}}).apply(this,arguments)}function Gt(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=$t(t)););return t}function Yt(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Xt(t,e)}function Xt(t,e){return(Xt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ut(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=$t(t);if(e){var o=$t(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Vt(this,n)}}function Vt(t,e){if(e&&("object"===It(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function $t(t){return($t=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var qt=function(t){Yt(n,t);var e=Ut(n);function n(t,r){var o;Ft(this,n);var i=(o=e.call(this,t,r)).properties.nodeSize;return i&&(o.rx=i.rx,o.ry=i.ry),o}return Wt(n,[{key:"initNodeData",value:function(t){Bt($t(n.prototype),"initNodeData",this).call(this,t),this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3,this.gridSize=1}},{key:"getOutlineStyle",value:function(){var t=Bt($t(n.prototype),"getOutlineStyle",this).call(this);return this.graphModel.editConfigModel.isSilentMode||(t.stroke="none",t.hover&&(t.hover.stroke="none")),t}},{key:"getResizeOutlineStyle",value:function(){return{stroke:"#000000",strokeWidth:1,strokeDasharray:"3,3"}}},{key:"getControlPointStyle",value:function(){return{width:7,height:7,fill:"#FFFFFF",stroke:"#000000"}}},{key:"enableProportionResize",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(t){var e={widthPCT:100,hightPCT:100},n={basisWidth:this.rx,basisHeight:this.ry},r={maxScaleLimit:Math.min(this.maxWidth/(2*this.rx)*100,this.maxHeight/(2*this.ry)*100),minScaleLimit:Math.max(this.minWidth/(2*this.rx)*100,this.minHeight/(2*this.ry)*100)};this.PCTResizeInfo={ResizePCT:e,ResizeBasis:n,ScaleLimit:r}}else delete this.PCTResizeInfo}}]),n}(f.DiamondNodeModel),Kt={type:"diamond",view:function(t){Yt(n,t);var e=Ut(n);function n(){return Ft(this,n),e.apply(this,arguments)}return Wt(n,[{key:"getControlGroup",value:function(){var t=this.props,e=t.model,n=t.graphModel;return Object(f.h)(ft,{model:e,graphModel:n})}},{key:"getResizeShape",value:function(){var t=this.props.model,e=t.points,n=t.getNodeStyle();return Object(f.h)("g",null,Object(f.h)(At,Lt({},n,{points:e})))}},{key:"getShape",value:function(){var t=this.props,e=t.model.isSelected,n=t.graphModel.editConfigModel.isSilentMode;return Object(f.h)("g",null,this.getResizeShape(),e&&!n?this.getControlGroup():"")}}]),n}(f.DiamondNode),model:qt};function Jt(t){return(Jt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Qt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Zt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function te(t,e,n){return e&&Zt(t.prototype,e),n&&Zt(t,n),t}function ee(){return(ee="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=ne(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}}).apply(this,arguments)}function ne(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=ce(t)););return t}function re(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&oe(t,e)}function oe(t,e){return(oe=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ie(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ce(t);if(e){var o=ce(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ue(this,n)}}function ue(t,e){if(e&&("object"===Jt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function ce(t){return(ce=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var ae=function(t){re(n,t);var e=ie(n);function n(t,r){var o;Qt(this,n);var i=(o=e.call(this,t,r)).properties.nodeSize;return i&&(o.width=i.width,o.height=i.height),o}return te(n,[{key:"initNodeData",value:function(t){ee(ce(n.prototype),"initNodeData",this).call(this,t),this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3}},{key:"getOutlineStyle",value:function(){var t=ee(ce(n.prototype),"getOutlineStyle",this).call(this);return this.graphModel.editConfigModel.isSilentMode||(t.stroke="none",t.hover&&(t.hover.stroke="none")),t}},{key:"getResizeOutlineStyle",value:function(){return{stroke:"#000000",strokeWidth:1,strokeDasharray:"3,3"}}},{key:"getControlPointStyle",value:function(){return{width:7,height:7,fill:"#FFFFFF",stroke:"#000000"}}},{key:"enableProportionResize",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(t){var e={widthPCT:100,hightPCT:100},n={basisWidth:this.width,basisHeight:this.height},r={maxScaleLimit:Math.min(this.maxWidth/this.width*100,this.maxHeight/this.height*100),minScaleLimit:Math.max(this.minWidth/this.width*100,this.minHeight/this.height*100)};this.PCTResizeInfo={ResizePCT:e,ResizeBasis:n,ScaleLimit:r}}else delete this.PCTResizeInfo}}]),n}(f.HtmlNodeModel),fe={type:"html",view:function(t){re(n,t);var e=ie(n);function n(){return Qt(this,n),e.apply(this,arguments)}return te(n,[{key:"getControlGroup",value:function(){var t=this.props,e=t.model,n=t.graphModel;return Object(f.h)(ft,{model:e,graphModel:n})}},{key:"getResizeShape",value:function(){return ee(ce(n.prototype),"getShape",this).call(this)}},{key:"getShape",value:function(){var t=this.props,e=t.model.isSelected,n=t.graphModel.editConfigModel.isSilentMode;return Object(f.h)("g",null,this.getResizeShape(),e&&!n?this.getControlGroup():"")}}]),n}(f.HtmlNode),model:ae},le={pluginName:"nodeResize",step:0,install:function(t){t.register({type:Ot.type,view:Ot.view,model:Ot.model}),t.register({type:Nt.type,view:Nt.view,model:Nt.model}),t.register({type:Kt.type,view:Kt.view,model:Kt.model}),t.register({type:fe.type,view:fe.view,model:fe.model})}};e.default=le},function(t,e,n){var r=n(5),o=n(218),i=n(104);r({target:"Array",proto:!0},{fill:o}),i("fill")},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";var r=n(14),o=n(56),i=n(17);t.exports=function(t){for(var e=r(this),n=i(e),u=arguments.length,c=o(u>1?arguments[1]:void 0,n),a=u>2?arguments[2]:void 0,f=void 0===a?n:o(a,n);f>c;)e[c++]=t;return e}}])}));
|
package/lib/SelectionSelect.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(window,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=236)}([function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(this,n(98))},function(t,e){var n=Function.prototype,r=n.bind,o=n.call,i=r&&r.bind(o);t.exports=r?function(t){return t&&i(o,t)}:function(t){return t&&function(){return o.apply(t,arguments)}}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=function(t){return"function"==typeof t}},function(t,e,n){var r=n(0),o=n(32),i=n(6),c=n(37),u=n(49),a=n(62),f=o("wks"),s=r.Symbol,l=s&&s.for,p=a?s:s&&s.withoutSetter||c;t.exports=function(t){if(!i(f,t)||!u&&"string"!=typeof f[t]){var e="Symbol."+t;u&&i(s,t)?f[t]=s[t]:f[t]=a&&l?l(e):p(e)}return f[t]}},function(t,e,n){var r=n(0),o=n(25).f,i=n(16),c=n(15),u=n(41),a=n(70),f=n(75);t.exports=function(t,e){var n,s,l,p,v,d=t.target,h=t.global,y=t.stat;if(n=h?r:y?r[d]||u(d,{}):(r[d]||{}).prototype)for(s in e){if(p=e[s],l=t.noTargetGet?(v=o(n,s))&&v.value:n[s],!f(h?s:d+(y?".":"#")+s,t.forced)&&void 0!==l){if(typeof p==typeof l)continue;a(p,l)}(t.sham||l&&l.sham)&&i(p,"sham",!0),c(n,s,p,t)}}},function(t,e,n){var r=n(1),o=n(14),i=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},function(t,e,n){var r=n(2);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,e,n){var r=n(3);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},function(t,e,n){var r=n(0),o=n(7),i=n(63),c=n(10),u=n(28),a=r.TypeError,f=Object.defineProperty;e.f=o?f:function(t,e,n){if(c(t),e=u(e),c(n),i)try{return f(t,e,n)}catch(t){}if("get"in n||"set"in n)throw a("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(0),o=n(8),i=r.String,c=r.TypeError;t.exports=function(t){if(o(t))return t;throw c(i(t)+" is not an object")}},function(t,e){var n=Function.prototype.call;t.exports=n.bind?n.bind(n):function(){return n.apply(n,arguments)}},function(t,e,n){var r=n(57),o=n(27);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(0),o=n(3),i=function(t){return o(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?i(r[t]):r[t]&&r[t][e]}},function(t,e,n){var r=n(0),o=n(27),i=r.Object;t.exports=function(t){return i(o(t))}},function(t,e,n){var r=n(0),o=n(3),i=n(6),c=n(16),u=n(41),a=n(38),f=n(22),s=n(54).CONFIGURABLE,l=f.get,p=f.enforce,v=String(String).split("String");(t.exports=function(t,e,n,a){var f,l=!!a&&!!a.unsafe,d=!!a&&!!a.enumerable,h=!!a&&!!a.noTargetGet,y=a&&void 0!==a.name?a.name:e;o(n)&&("Symbol("===String(y).slice(0,7)&&(y="["+String(y).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!i(n,"name")||s&&n.name!==y)&&c(n,"name",y),(f=p(n)).source||(f.source=v.join("string"==typeof y?y:""))),t!==r?(l?!h&&t[e]&&(d=!0):delete t[e],d?t[e]=n:c(t,e,n)):d?t[e]=n:u(e,n)})(Function.prototype,"toString",(function(){return o(this)&&l(this).source||a(this)}))},function(t,e,n){var r=n(7),o=n(9),i=n(23);t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(82);t.exports=function(t){return r(t.length)}},function(t,e,n){var r=n(1),o=r({}.toString),i=r("".slice);t.exports=function(t){return i(o(t),8,-1)}},,,,function(t,e,n){var r,o,i,c=n(101),u=n(0),a=n(1),f=n(8),s=n(16),l=n(6),p=n(40),v=n(35),d=n(24),h=u.TypeError,y=u.WeakMap;if(c||p.state){var m=p.state||(p.state=new y),b=a(m.get),g=a(m.has),x=a(m.set);r=function(t,e){if(g(m,t))throw new h("Object already initialized");return e.facade=t,x(m,t,e),e},o=function(t){return b(m,t)||{}},i=function(t){return g(m,t)}}else{var S=v("state");d[S]=!0,r=function(t,e){if(l(t,S))throw new h("Object already initialized");return e.facade=t,s(t,S,e),e},o=function(t){return l(t,S)?t[S]:{}},i=function(t){return l(t,S)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!f(e)||(n=o(e)).type!==t)throw h("Incompatible receiver, "+t+" required");return n}}}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){t.exports={}},function(t,e,n){var r=n(7),o=n(11),i=n(61),c=n(23),u=n(12),a=n(28),f=n(6),s=n(63),l=Object.getOwnPropertyDescriptor;e.f=r?l:function(t,e){if(t=u(t),e=a(e),s)try{return l(t,e)}catch(t){}if(f(t,e))return c(!o(i.f,t,e),t[e])}},function(t,e,n){var r=n(1);t.exports=r({}.isPrototypeOf)},function(t,e,n){var r=n(0).TypeError;t.exports=function(t){if(null==t)throw r("Can't call method on "+t);return t}},function(t,e,n){var r=n(99),o=n(46);t.exports=function(t){var e=r(t,"string");return o(e)?e:e+""}},function(t,e,n){var r=n(18);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(0),o=n(43),i=n(3),c=n(18),u=n(4)("toStringTag"),a=r.Object,f="Arguments"==c(function(){return arguments}());t.exports=o?c:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=a(t),u))?n:f?c(e):"Object"==(r=c(e))&&i(e.callee)?"Arguments":r}},,function(t,e,n){var r=n(34),o=n(40);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.19.3",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var r=n(0),o=n(3),i=n(52),c=r.TypeError;t.exports=function(t){if(o(t))return t;throw c(i(t)+" is not a function")}},function(t,e){t.exports=!1},function(t,e,n){var r=n(32),o=n(37),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){var e=+t;return e!=e||0===e?0:(e>0?r:n)(e)}},function(t,e,n){var r=n(1),o=0,i=Math.random(),c=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+c(++o+i,36)}},function(t,e,n){var r=n(1),o=n(3),i=n(40),c=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return c(t)}),t.exports=i.inspectSource},function(t,e,n){var r=n(65),o=n(48).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(0),o=n(41),i=r["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=i},function(t,e,n){var r=n(0),o=Object.defineProperty;t.exports=function(t,e){try{o(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},function(t,e,n){var r=n(0),o=n(8),i=r.document,c=o(i)&&o(i.createElement);t.exports=function(t){return c?i.createElement(t):{}}},function(t,e,n){var r={};r[n(4)("toStringTag")]="z",t.exports="[object z]"===String(r)},,function(t,e,n){var r=n(33);t.exports=function(t,e){var n=t[e];return null==n?void 0:r(n)}},function(t,e,n){var r=n(0),o=n(13),i=n(3),c=n(26),u=n(62),a=r.Object;t.exports=u?function(t){return"symbol"==typeof t}:function(t){var e=o("Symbol");return i(e)&&c(e.prototype,a(t))}},function(t,e,n){var r=n(1),o=n(33),i=r(r.bind);t.exports=function(t,e){return o(t),void 0===e?t:i?i(t,e):function(){return t.apply(e,arguments)}}},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e,n){var r=n(50),o=n(2);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},function(t,e,n){var r,o,i=n(0),c=n(73),u=i.process,a=i.Deno,f=u&&u.versions||a&&a.version,s=f&&f.v8;s&&(o=(r=s.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&c&&(!(r=c.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=c.match(/Chrome\/(\d+)/))&&(o=+r[1]),t.exports=o},,function(t,e,n){var r=n(0).String;t.exports=function(t){try{return r(t)}catch(t){return"Object"}}},function(t,e,n){var r=n(47),o=n(1),i=n(57),c=n(14),u=n(17),a=n(71),f=o([].push),s=function(t){var e=1==t,n=2==t,o=3==t,s=4==t,l=6==t,p=7==t,v=5==t||l;return function(d,h,y,m){for(var b,g,x=c(d),S=i(x),w=r(h,y),O=u(S),j=0,E=m||a,P=e?E(d,O):n||p?E(d,0):void 0;O>j;j++)if((v||j in S)&&(g=w(b=S[j],j,x),t))if(e)P[j]=g;else if(g)switch(t){case 3:return!0;case 5:return b;case 6:return j;case 2:f(P,b)}else switch(t){case 4:return!1;case 7:f(P,b)}return l?-1:o||s?s:P}};t.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6),filterReject:s(7)}},function(t,e,n){var r=n(7),o=n(6),i=Function.prototype,c=r&&Object.getOwnPropertyDescriptor,u=o(i,"name"),a=u&&"something"===function(){}.name,f=u&&(!r||r&&c(i,"name").configurable);t.exports={EXISTS:u,PROPER:a,CONFIGURABLE:f}},function(t,e,n){var r=n(1),o=n(2),i=n(3),c=n(30),u=n(13),a=n(38),f=function(){},s=[],l=u("Reflect","construct"),p=/^\s*(?:class|function)\b/,v=r(p.exec),d=!p.exec(f),h=function(t){if(!i(t))return!1;try{return l(f,s,t),!0}catch(t){return!1}};t.exports=!l||o((function(){var t;return h(h.call)||!h(Object)||!h((function(){t=!0}))||t}))?function(t){if(!i(t))return!1;switch(c(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return d||!!v(p,a(t))}:h},function(t,e,n){var r=n(36),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},function(t,e,n){var r=n(0),o=n(1),i=n(2),c=n(18),u=r.Object,a=o("".split);t.exports=i((function(){return!u("z").propertyIsEnumerable(0)}))?function(t){return"String"==c(t)?a(t,""):u(t)}:u},,,function(t,e,n){var r=n(43),o=n(15),i=n(103);r||o(Object.prototype,"toString",i,{unsafe:!0})},function(t,e,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);e.f=i?function(t){var e=o(this,t);return!!e&&e.enumerable}:r},function(t,e,n){var r=n(49);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,n){var r=n(7),o=n(2),i=n(42);t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(5),o=n(7);r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:n(9).f})},function(t,e,n){var r=n(1),o=n(6),i=n(12),c=n(87).indexOf,u=n(24),a=r([].push);t.exports=function(t,e){var n,r=i(t),f=0,s=[];for(n in r)!o(u,n)&&o(r,n)&&a(s,n);for(;e.length>f;)o(r,n=e[f++])&&(~c(s,n)||a(s,n));return s}},function(t,e){e.f=Object.getOwnPropertySymbols},,,,function(t,e,n){var r=n(6),o=n(85),i=n(25),c=n(9);t.exports=function(t,e){for(var n=o(e),u=c.f,a=i.f,f=0;f<n.length;f++){var s=n[f];r(t,s)||u(t,s,a(e,s))}}},function(t,e,n){var r=n(102);t.exports=function(t,e){return new(r(t))(0===e?0:e)}},,function(t,e,n){var r=n(13);t.exports=r("navigator","userAgent")||""},function(t,e,n){"use strict";var r=n(53).forEach,o=n(79)("forEach");t.exports=o?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},function(t,e,n){var r=n(2),o=n(3),i=/#|\.prototype\./,c=function(t,e){var n=a[u(t)];return n==s||n!=f&&(o(e)?r(e):!!e)},u=c.normalize=function(t){return String(t).replace(i,".").toLowerCase()},a=c.data={},f=c.NATIVE="N",s=c.POLYFILL="P";t.exports=c},function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,e,n){var r=n(42)("span").classList,o=r&&r.constructor&&r.constructor.prototype;t.exports=o===Object.prototype?void 0:o},,function(t,e,n){"use strict";var r=n(2);t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){throw 1},1)}))}},,,function(t,e,n){var r=n(36),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},,,function(t,e,n){var r=n(13),o=n(1),i=n(39),c=n(66),u=n(10),a=o([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(u(t)),n=c.f;return n?a(e,n(t)):e}},,function(t,e,n){var r=n(12),o=n(56),i=n(17),c=function(t){return function(e,n,c){var u,a=r(e),f=i(a),s=o(c,f);if(t&&n!=n){for(;f>s;)if((u=a[s++])!=u)return!0}else for(;f>s;s++)if((t||s in a)&&a[s]===n)return t||s||0;return!t&&-1}};t.exports={includes:c(!0),indexOf:c(!1)}},,,,,,,,function(t,e,n){"use strict";var r=n(5),o=n(74);r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},function(t,e,n){var r=n(0),o=n(76),i=n(77),c=n(74),u=n(16),a=function(t){if(t&&t.forEach!==c)try{u(t,"forEach",c)}catch(e){t.forEach=c}};for(var f in o)o[f]&&a(r[f]&&r[f].prototype);a(i)},,function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){var r=n(0),o=n(11),i=n(8),c=n(46),u=n(45),a=n(100),f=n(4),s=r.TypeError,l=f("toPrimitive");t.exports=function(t,e){if(!i(t)||c(t))return t;var n,r=u(t,l);if(r){if(void 0===e&&(e="default"),n=o(r,t,e),!i(n)||c(n))return n;throw s("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},function(t,e,n){var r=n(0),o=n(11),i=n(3),c=n(8),u=r.TypeError;t.exports=function(t,e){var n,r;if("string"===e&&i(n=t.toString)&&!c(r=o(n,t)))return r;if(i(n=t.valueOf)&&!c(r=o(n,t)))return r;if("string"!==e&&i(n=t.toString)&&!c(r=o(n,t)))return r;throw u("Can't convert object to primitive value")}},function(t,e,n){var r=n(0),o=n(3),i=n(38),c=r.WeakMap;t.exports=o(c)&&/native code/.test(i(c))},function(t,e,n){var r=n(0),o=n(29),i=n(55),c=n(8),u=n(4)("species"),a=r.Array;t.exports=function(t){var e;return o(t)&&(e=t.constructor,(i(e)&&(e===a||o(e.prototype))||c(e)&&null===(e=e[u]))&&(e=void 0)),void 0===e?a:e}},function(t,e,n){"use strict";var r=n(43),o=n(30);t.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.r(e),n.d(e,"SelectionSelect",(function(){return i}));n(95),n(60),n(96),n(64);function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i=function(){function t(e){var n=this,r=e.lf;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),o(this,"__disabled",!1),o(this,"isDefaultStopMoveGraph",!1),o(this,"isWholeNode",!0),o(this,"isWholeEdge",!0),o(this,"__draw",(function(t){var e=n.lf.getPointByClient(t.clientX,t.clientY).domOverlayPosition,r=e.x,o=e.y;n.endPoint={x:r,y:o};var i=n.startPoint,c=i.x,u=i.y,a=n.wrapper.style,f=c,s=u,l=r-c,p=o-u;r<c&&(f=r,l=c-r),o<u&&(s=o,p=u-o),a.left="".concat(f,"px"),a.top="".concat(s,"px"),a.width="".concat(l,"px"),a.height="".concat(p,"px")})),o(this,"__drawOff",(function(){document.removeEventListener("mousemove",n.__draw),document.removeEventListener("mouseup",n.__drawOff),n.wrapper.oncontextmenu=null,n.__domContainer.removeChild(n.wrapper);var t=n.startPoint,e=t.x,r=t.y,o=n.endPoint,i=o.x,c=o.y;if(!(Math.abs(i-e)<10&&Math.abs(c-r)<10)){var u=[Math.min(e,i),Math.min(r,c)],a=[Math.max(e,i),Math.max(r,c)],f=n.lf.graphModel.getAreaElement(u,a,n.isWholeEdge,n.isWholeNode,!0),s=n.lf.graphModel.group;f.forEach((function(t){s&&s.getNodeGroup(t.id)||n.lf.selectElementById(t.id,!0)})),n.lf.emit("selection:selected",f)}})),o(this,"__zoom",(function(t){var e,r;t.preventDefault();var o=new WheelEvent("wheel",{deltaX:t.deltaX,deltaY:t.deltaY,clientX:t.clientX,clientY:t.clientY,ctrlKey:t.ctrlKey});null===(e=n.lf.container)||void 0===e||null===(r=e.querySelector('.lf-canvas-overlay[name="canvas-overlay"]'))||void 0===r||r.dispatchEvent(o)})),this.lf=r;var i=r.getEditConfig().stopMoveGraph;this.isDefaultStopMoveGraph=i,r.openSelectionSelect=function(){n.openSelectionSelect()},r.closeSelectionSelect=function(){n.closeSelectionSelect()}}var e,n,i;return e=t,(n=[{key:"render",value:function(t,e){var n=this;this.__domContainer=e,t.on("blank:mousedown",(function(r){var o=r.e;if(t.getEditConfig().stopMoveGraph&&!n.__disabled&&2!==o.button){var i=t.getPointByClient(o.clientX,o.clientY).domOverlayPosition,c=i.x,u=i.y;n.startPoint={x:c,y:u},n.endPoint={x:c,y:u};var a=document.createElement("div");a.className="lf-selection-select",a.oncontextmenu=function(t){t.preventDefault()},a.style.top="".concat(n.startPoint.y,"px"),a.style.left="".concat(n.startPoint.x,"px"),e.appendChild(a),n.wrapper=a,document.addEventListener("mousemove",n.__draw),document.addEventListener("mouseup",n.__drawOff),document.addEventListener("wheel",n.__zoom,{passive:!1})}}))}},{key:"setSelectionSense",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.isWholeEdge=t,this.isWholeNode=e}},{key:"openSelectionSelect",value:function(){this.lf.getEditConfig().stopMoveGraph||(this.isDefaultStopMoveGraph=!1,this.lf.updateEditConfig({stopMoveGraph:!0})),this.open()}},{key:"closeSelectionSelect",value:function(){this.isDefaultStopMoveGraph||this.lf.updateEditConfig({stopMoveGraph:!1}),this.close()}},{key:"open",value:function(){this.__disabled=!1}},{key:"close",value:function(){this.__disabled=!0}}])&&r(e.prototype,n),i&&r(e,i),t}();o(i,"pluginName","selectionSelect")}])}));
|
|
1
|
+
!function(t,n){if("object"==typeof exports&&"object"==typeof module)module.exports=n();else if("function"==typeof define&&define.amd)define([],n);else{var e=n();for(var r in e)("object"==typeof exports?exports:t)[r]=e[r]}}(window,(function(){return function(t){var n={};function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(n){return t[n]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=236)}([function(t,n,e){(function(n){var e=function(t){return t&&t.Math==Math&&t};t.exports=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof n&&n)||function(){return this}()||Function("return this")()}).call(this,e(98))},function(t,n){var e=Function.prototype,r=e.bind,o=e.call,i=r&&r.bind(o);t.exports=r?function(t){return t&&i(o,t)}:function(t){return t&&function(){return o.apply(t,arguments)}}},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n){t.exports=function(t){return"function"==typeof t}},function(t,n,e){var r=e(0),o=e(32),i=e(6),c=e(37),u=e(49),a=e(62),f=o("wks"),s=r.Symbol,l=s&&s.for,p=a?s:s&&s.withoutSetter||c;t.exports=function(t){if(!i(f,t)||!u&&"string"!=typeof f[t]){var n="Symbol."+t;u&&i(s,t)?f[t]=s[t]:f[t]=a&&l?l(n):p(n)}return f[t]}},function(t,n,e){var r=e(0),o=e(25).f,i=e(16),c=e(15),u=e(41),a=e(70),f=e(75);t.exports=function(t,n){var e,s,l,p,v,d=t.target,h=t.global,y=t.stat;if(e=h?r:y?r[d]||u(d,{}):(r[d]||{}).prototype)for(s in n){if(p=n[s],l=t.noTargetGet?(v=o(e,s))&&v.value:e[s],!f(h?s:d+(y?".":"#")+s,t.forced)&&void 0!==l){if(typeof p==typeof l)continue;a(p,l)}(t.sham||l&&l.sham)&&i(p,"sham",!0),c(e,s,p,t)}}},function(t,n,e){var r=e(1),o=e(14),i=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,n){return i(o(t),n)}},function(t,n,e){var r=e(2);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,n,e){var r=e(3);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},function(t,n,e){var r=e(0),o=e(7),i=e(63),c=e(10),u=e(28),a=r.TypeError,f=Object.defineProperty;n.f=o?f:function(t,n,e){if(c(t),n=u(n),c(e),i)try{return f(t,n,e)}catch(t){}if("get"in e||"set"in e)throw a("Accessors not supported");return"value"in e&&(t[n]=e.value),t}},function(t,n,e){var r=e(0),o=e(8),i=r.String,c=r.TypeError;t.exports=function(t){if(o(t))return t;throw c(i(t)+" is not an object")}},function(t,n){var e=Function.prototype.call;t.exports=e.bind?e.bind(e):function(){return e.apply(e,arguments)}},function(t,n,e){var r=e(57),o=e(27);t.exports=function(t){return r(o(t))}},function(t,n,e){var r=e(0),o=e(3),i=function(t){return o(t)?t:void 0};t.exports=function(t,n){return arguments.length<2?i(r[t]):r[t]&&r[t][n]}},function(t,n,e){var r=e(0),o=e(27),i=r.Object;t.exports=function(t){return i(o(t))}},function(t,n,e){var r=e(0),o=e(3),i=e(6),c=e(16),u=e(41),a=e(38),f=e(22),s=e(54).CONFIGURABLE,l=f.get,p=f.enforce,v=String(String).split("String");(t.exports=function(t,n,e,a){var f,l=!!a&&!!a.unsafe,d=!!a&&!!a.enumerable,h=!!a&&!!a.noTargetGet,y=a&&void 0!==a.name?a.name:n;o(e)&&("Symbol("===String(y).slice(0,7)&&(y="["+String(y).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!i(e,"name")||s&&e.name!==y)&&c(e,"name",y),(f=p(e)).source||(f.source=v.join("string"==typeof y?y:""))),t!==r?(l?!h&&t[n]&&(d=!0):delete t[n],d?t[n]=e:c(t,n,e)):d?t[n]=e:u(n,e)})(Function.prototype,"toString",(function(){return o(this)&&l(this).source||a(this)}))},function(t,n,e){var r=e(7),o=e(9),i=e(23);t.exports=r?function(t,n,e){return o.f(t,n,i(1,e))}:function(t,n,e){return t[n]=e,t}},function(t,n,e){var r=e(82);t.exports=function(t){return r(t.length)}},function(t,n,e){var r=e(1),o=r({}.toString),i=r("".slice);t.exports=function(t){return i(o(t),8,-1)}},,,,function(t,n,e){var r,o,i,c=e(101),u=e(0),a=e(1),f=e(8),s=e(16),l=e(6),p=e(40),v=e(35),d=e(24),h=u.TypeError,y=u.WeakMap;if(c||p.state){var m=p.state||(p.state=new y),b=a(m.get),g=a(m.has),x=a(m.set);r=function(t,n){if(g(m,t))throw new h("Object already initialized");return n.facade=t,x(m,t,n),n},o=function(t){return b(m,t)||{}},i=function(t){return g(m,t)}}else{var S=v("state");d[S]=!0,r=function(t,n){if(l(t,S))throw new h("Object already initialized");return n.facade=t,s(t,S,n),n},o=function(t){return l(t,S)?t[S]:{}},i=function(t){return l(t,S)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(n){var e;if(!f(n)||(e=o(n)).type!==t)throw h("Incompatible receiver, "+t+" required");return e}}}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n){t.exports={}},function(t,n,e){var r=e(7),o=e(11),i=e(61),c=e(23),u=e(12),a=e(28),f=e(6),s=e(63),l=Object.getOwnPropertyDescriptor;n.f=r?l:function(t,n){if(t=u(t),n=a(n),s)try{return l(t,n)}catch(t){}if(f(t,n))return c(!o(i.f,t,n),t[n])}},function(t,n,e){var r=e(1);t.exports=r({}.isPrototypeOf)},function(t,n,e){var r=e(0).TypeError;t.exports=function(t){if(null==t)throw r("Can't call method on "+t);return t}},function(t,n,e){var r=e(99),o=e(46);t.exports=function(t){var n=r(t,"string");return o(n)?n:n+""}},function(t,n,e){var r=e(18);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,n,e){var r=e(0),o=e(43),i=e(3),c=e(18),u=e(4)("toStringTag"),a=r.Object,f="Arguments"==c(function(){return arguments}());t.exports=o?c:function(t){var n,e,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,n){try{return t[n]}catch(t){}}(n=a(t),u))?e:f?c(n):"Object"==(r=c(n))&&i(n.callee)?"Arguments":r}},,function(t,n,e){var r=e(34),o=e(40);(t.exports=function(t,n){return o[t]||(o[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.19.3",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(t,n,e){var r=e(0),o=e(3),i=e(52),c=r.TypeError;t.exports=function(t){if(o(t))return t;throw c(i(t)+" is not a function")}},function(t,n){t.exports=!1},function(t,n,e){var r=e(32),o=e(37),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){var n=+t;return n!=n||0===n?0:(n>0?r:e)(n)}},function(t,n,e){var r=e(1),o=0,i=Math.random(),c=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+c(++o+i,36)}},function(t,n,e){var r=e(1),o=e(3),i=e(40),c=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return c(t)}),t.exports=i.inspectSource},function(t,n,e){var r=e(65),o=e(48).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,n,e){var r=e(0),o=e(41),i=r["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=i},function(t,n,e){var r=e(0),o=Object.defineProperty;t.exports=function(t,n){try{o(r,t,{value:n,configurable:!0,writable:!0})}catch(e){r[t]=n}return n}},function(t,n,e){var r=e(0),o=e(8),i=r.document,c=o(i)&&o(i.createElement);t.exports=function(t){return c?i.createElement(t):{}}},function(t,n,e){var r={};r[e(4)("toStringTag")]="z",t.exports="[object z]"===String(r)},,function(t,n,e){var r=e(33);t.exports=function(t,n){var e=t[n];return null==e?void 0:r(e)}},function(t,n,e){var r=e(0),o=e(13),i=e(3),c=e(26),u=e(62),a=r.Object;t.exports=u?function(t){return"symbol"==typeof t}:function(t){var n=o("Symbol");return i(n)&&c(n.prototype,a(t))}},function(t,n,e){var r=e(1),o=e(33),i=r(r.bind);t.exports=function(t,n){return o(t),void 0===n?t:i?i(t,n):function(){return t.apply(n,arguments)}}},function(t,n){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,n,e){var r=e(50),o=e(2);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},function(t,n,e){var r,o,i=e(0),c=e(73),u=i.process,a=i.Deno,f=u&&u.versions||a&&a.version,s=f&&f.v8;s&&(o=(r=s.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&c&&(!(r=c.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=c.match(/Chrome\/(\d+)/))&&(o=+r[1]),t.exports=o},,function(t,n,e){var r=e(0).String;t.exports=function(t){try{return r(t)}catch(t){return"Object"}}},function(t,n,e){var r=e(47),o=e(1),i=e(57),c=e(14),u=e(17),a=e(71),f=o([].push),s=function(t){var n=1==t,e=2==t,o=3==t,s=4==t,l=6==t,p=7==t,v=5==t||l;return function(d,h,y,m){for(var b,g,x=c(d),S=i(x),w=r(h,y),O=u(S),j=0,E=m||a,P=n?E(d,O):e||p?E(d,0):void 0;O>j;j++)if((v||j in S)&&(g=w(b=S[j],j,x),t))if(n)P[j]=g;else if(g)switch(t){case 3:return!0;case 5:return b;case 6:return j;case 2:f(P,b)}else switch(t){case 4:return!1;case 7:f(P,b)}return l?-1:o||s?s:P}};t.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6),filterReject:s(7)}},function(t,n,e){var r=e(7),o=e(6),i=Function.prototype,c=r&&Object.getOwnPropertyDescriptor,u=o(i,"name"),a=u&&"something"===function(){}.name,f=u&&(!r||r&&c(i,"name").configurable);t.exports={EXISTS:u,PROPER:a,CONFIGURABLE:f}},function(t,n,e){var r=e(1),o=e(2),i=e(3),c=e(30),u=e(13),a=e(38),f=function(){},s=[],l=u("Reflect","construct"),p=/^\s*(?:class|function)\b/,v=r(p.exec),d=!p.exec(f),h=function(t){if(!i(t))return!1;try{return l(f,s,t),!0}catch(t){return!1}};t.exports=!l||o((function(){var t;return h(h.call)||!h(Object)||!h((function(){t=!0}))||t}))?function(t){if(!i(t))return!1;switch(c(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return d||!!v(p,a(t))}:h},function(t,n,e){var r=e(36),o=Math.max,i=Math.min;t.exports=function(t,n){var e=r(t);return e<0?o(e+n,0):i(e,n)}},function(t,n,e){var r=e(0),o=e(1),i=e(2),c=e(18),u=r.Object,a=o("".split);t.exports=i((function(){return!u("z").propertyIsEnumerable(0)}))?function(t){return"String"==c(t)?a(t,""):u(t)}:u},,,function(t,n,e){var r=e(43),o=e(15),i=e(103);r||o(Object.prototype,"toString",i,{unsafe:!0})},function(t,n,e){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);n.f=i?function(t){var n=o(this,t);return!!n&&n.enumerable}:r},function(t,n,e){var r=e(49);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,n,e){var r=e(7),o=e(2),i=e(42);t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(t,n,e){var r=e(5),o=e(7);r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:e(9).f})},function(t,n,e){var r=e(1),o=e(6),i=e(12),c=e(87).indexOf,u=e(24),a=r([].push);t.exports=function(t,n){var e,r=i(t),f=0,s=[];for(e in r)!o(u,e)&&o(r,e)&&a(s,e);for(;n.length>f;)o(r,e=n[f++])&&(~c(s,e)||a(s,e));return s}},function(t,n){n.f=Object.getOwnPropertySymbols},,,,function(t,n,e){var r=e(6),o=e(85),i=e(25),c=e(9);t.exports=function(t,n){for(var e=o(n),u=c.f,a=i.f,f=0;f<e.length;f++){var s=e[f];r(t,s)||u(t,s,a(n,s))}}},function(t,n,e){var r=e(102);t.exports=function(t,n){return new(r(t))(0===n?0:n)}},,function(t,n,e){var r=e(13);t.exports=r("navigator","userAgent")||""},function(t,n,e){"use strict";var r=e(53).forEach,o=e(79)("forEach");t.exports=o?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},function(t,n,e){var r=e(2),o=e(3),i=/#|\.prototype\./,c=function(t,n){var e=a[u(t)];return e==s||e!=f&&(o(n)?r(n):!!n)},u=c.normalize=function(t){return String(t).replace(i,".").toLowerCase()},a=c.data={},f=c.NATIVE="N",s=c.POLYFILL="P";t.exports=c},function(t,n){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,n,e){var r=e(42)("span").classList,o=r&&r.constructor&&r.constructor.prototype;t.exports=o===Object.prototype?void 0:o},,function(t,n,e){"use strict";var r=e(2);t.exports=function(t,n){var e=[][t];return!!e&&r((function(){e.call(null,n||function(){throw 1},1)}))}},,,function(t,n,e){var r=e(36),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},,,function(t,n,e){var r=e(13),o=e(1),i=e(39),c=e(66),u=e(10),a=o([].concat);t.exports=r("Reflect","ownKeys")||function(t){var n=i.f(u(t)),e=c.f;return e?a(n,e(t)):n}},,function(t,n,e){var r=e(12),o=e(56),i=e(17),c=function(t){return function(n,e,c){var u,a=r(n),f=i(a),s=o(c,f);if(t&&e!=e){for(;f>s;)if((u=a[s++])!=u)return!0}else for(;f>s;s++)if((t||s in a)&&a[s]===e)return t||s||0;return!t&&-1}};t.exports={includes:c(!0),indexOf:c(!1)}},,,,,,,,function(t,n,e){"use strict";var r=e(5),o=e(74);r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},function(t,n,e){var r=e(0),o=e(76),i=e(77),c=e(74),u=e(16),a=function(t){if(t&&t.forEach!==c)try{u(t,"forEach",c)}catch(n){t.forEach=c}};for(var f in o)o[f]&&a(r[f]&&r[f].prototype);a(i)},,function(t,n){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,n,e){var r=e(0),o=e(11),i=e(8),c=e(46),u=e(45),a=e(100),f=e(4),s=r.TypeError,l=f("toPrimitive");t.exports=function(t,n){if(!i(t)||c(t))return t;var e,r=u(t,l);if(r){if(void 0===n&&(n="default"),e=o(r,t,n),!i(e)||c(e))return e;throw s("Can't convert object to primitive value")}return void 0===n&&(n="number"),a(t,n)}},function(t,n,e){var r=e(0),o=e(11),i=e(3),c=e(8),u=r.TypeError;t.exports=function(t,n){var e,r;if("string"===n&&i(e=t.toString)&&!c(r=o(e,t)))return r;if(i(e=t.valueOf)&&!c(r=o(e,t)))return r;if("string"!==n&&i(e=t.toString)&&!c(r=o(e,t)))return r;throw u("Can't convert object to primitive value")}},function(t,n,e){var r=e(0),o=e(3),i=e(38),c=r.WeakMap;t.exports=o(c)&&/native code/.test(i(c))},function(t,n,e){var r=e(0),o=e(29),i=e(55),c=e(8),u=e(4)("species"),a=r.Array;t.exports=function(t){var n;return o(t)&&(n=t.constructor,(i(n)&&(n===a||o(n.prototype))||c(n)&&null===(n=n[u]))&&(n=void 0)),void 0===n?a:n}},function(t,n,e){"use strict";var r=e(43),o=e(30);t.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,n,e){"use strict";e.r(n),e.d(n,"SelectionSelect",(function(){return i}));e(95),e(60),e(96),e(64);function r(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}var i=function(){function t(n){var e=this,r=n.lf;!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),o(this,"__disabled",!1),o(this,"isDefaultStopMoveGraph",!1),o(this,"isWholeNode",!0),o(this,"isWholeEdge",!0),o(this,"__draw",(function(t){var n=e.lf.getPointByClient(t.clientX,t.clientY).domOverlayPosition,r=n.x,o=n.y;e.endPoint={x:r,y:o};var i=e.startPoint,c=i.x,u=i.y,a=e.wrapper.style,f=c,s=u,l=r-c,p=o-u;r<c&&(f=r,l=c-r),o<u&&(s=o,p=u-o),a.left="".concat(f,"px"),a.top="".concat(s,"px"),a.width="".concat(l,"px"),a.height="".concat(p,"px")})),o(this,"__drawOff",(function(){document.removeEventListener("mousemove",e.__draw),document.removeEventListener("mouseup",e.__drawOff),e.wrapper.oncontextmenu=null,e.__domContainer.removeChild(e.wrapper);var t=e.startPoint,n=t.x,r=t.y,o=e.endPoint,i=o.x,c=o.y;if(!(Math.abs(i-n)<10&&Math.abs(c-r)<10)){var u=[Math.min(n,i),Math.min(r,c)],a=[Math.max(n,i),Math.max(r,c)],f=e.lf.graphModel.getAreaElement(u,a,e.isWholeEdge,e.isWholeNode,!0),s=e.lf.graphModel.group;f.forEach((function(t){s&&s.getNodeGroup(t.id)||e.lf.selectElementById(t.id,!0)})),e.lf.emit("selection:selected",f)}})),this.lf=r;var i=r.getEditConfig().stopMoveGraph;this.isDefaultStopMoveGraph=i,r.openSelectionSelect=function(){e.openSelectionSelect()},r.closeSelectionSelect=function(){e.closeSelectionSelect()}}var n,e,i;return n=t,(e=[{key:"render",value:function(t,n){var e=this;this.__domContainer=n,t.on("blank:mousedown",(function(r){var o=r.e;if(t.getEditConfig().stopMoveGraph&&!e.__disabled&&2!==o.button){var i=t.getPointByClient(o.clientX,o.clientY).domOverlayPosition,c=i.x,u=i.y;e.startPoint={x:c,y:u},e.endPoint={x:c,y:u};var a=document.createElement("div");a.className="lf-selection-select",a.oncontextmenu=function(t){t.preventDefault()},a.style.top="".concat(e.startPoint.y,"px"),a.style.left="".concat(e.startPoint.x,"px"),n.appendChild(a),e.wrapper=a,document.addEventListener("mousemove",e.__draw),document.addEventListener("mouseup",e.__drawOff)}}))}},{key:"setSelectionSense",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.isWholeEdge=t,this.isWholeNode=n}},{key:"openSelectionSelect",value:function(){this.lf.getEditConfig().stopMoveGraph||(this.isDefaultStopMoveGraph=!1,this.lf.updateEditConfig({stopMoveGraph:!0})),this.open()}},{key:"closeSelectionSelect",value:function(){this.isDefaultStopMoveGraph||this.lf.updateEditConfig({stopMoveGraph:!1}),this.close()}},{key:"open",value:function(){this.__disabled=!1}},{key:"close",value:function(){this.__disabled=!0}}])&&r(n.prototype,e),i&&r(n,i),t}();o(i,"pluginName","selectionSelect")}])}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@logicflow/extension",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.28",
|
|
4
4
|
"description": "LogicFlow extension",
|
|
5
5
|
"main": "cjs/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"readme.md"
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@logicflow/core": "^1.2.
|
|
35
|
+
"@logicflow/core": "^1.2.28",
|
|
36
36
|
"jest": "27.5.1",
|
|
37
37
|
"lodash-es": "^4.17.21",
|
|
38
38
|
"preact": "^10.4.8"
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { h } from '@logicflow/core';
|
|
2
|
+
export default function Polygon({ fillOpacity, strokeWidth, strokeOpacity, fill, stroke, points, className, }: {
|
|
3
|
+
fillOpacity?: number;
|
|
4
|
+
strokeWidth?: number;
|
|
5
|
+
strokeOpacity?: number;
|
|
6
|
+
fill?: string;
|
|
7
|
+
stroke?: string;
|
|
8
|
+
points: any;
|
|
9
|
+
className?: string;
|
|
10
|
+
}): h.JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { h, Point, Size } from '@logicflow/core';
|
|
2
|
+
declare type IProps = {
|
|
3
|
+
className?: string;
|
|
4
|
+
radius?: number;
|
|
5
|
+
stroke?: string;
|
|
6
|
+
strokeDasharray?: string;
|
|
7
|
+
} & Point & Size;
|
|
8
|
+
declare function Rect(props: IProps): h.JSX.Element;
|
|
9
|
+
declare namespace Rect {
|
|
10
|
+
var defaultProps: {
|
|
11
|
+
radius: number;
|
|
12
|
+
stroke: string;
|
|
13
|
+
strokeDasharray: string;
|
|
14
|
+
className: string;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export default Rect;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { h, Component } from 'preact';
|
|
2
|
+
import { BaseNodeModel, GraphModel, LogicFlowUtil } from '@logicflow/core';
|
|
3
|
+
interface IProps {
|
|
4
|
+
index: number;
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
model: BaseNodeModel;
|
|
8
|
+
graphModel: GraphModel;
|
|
9
|
+
style?: CSSStyleDeclaration;
|
|
10
|
+
}
|
|
11
|
+
declare class Control extends Component<IProps> {
|
|
12
|
+
index: number;
|
|
13
|
+
nodeModel: BaseNodeModel;
|
|
14
|
+
graphModel: GraphModel;
|
|
15
|
+
dragHandler: LogicFlowUtil.StepDrag;
|
|
16
|
+
constructor(props: any);
|
|
17
|
+
getNodeEdges(nodeId: any): {
|
|
18
|
+
sourceEdges: any[];
|
|
19
|
+
targetEdges: any[];
|
|
20
|
+
};
|
|
21
|
+
updatePosition: ({ deltaX, deltaY }: {
|
|
22
|
+
deltaX: any;
|
|
23
|
+
deltaY: any;
|
|
24
|
+
}) => void;
|
|
25
|
+
getResize: ({ index, deltaX, deltaY, width, height, PCTResizeInfo, pct }: {
|
|
26
|
+
index: any;
|
|
27
|
+
deltaX: any;
|
|
28
|
+
deltaY: any;
|
|
29
|
+
width: any;
|
|
30
|
+
height: any;
|
|
31
|
+
PCTResizeInfo: any;
|
|
32
|
+
pct?: number;
|
|
33
|
+
}) => {
|
|
34
|
+
width: any;
|
|
35
|
+
height: any;
|
|
36
|
+
deltaX: any;
|
|
37
|
+
deltaY: any;
|
|
38
|
+
};
|
|
39
|
+
updateEdgePointByAnchors: () => void;
|
|
40
|
+
updateRect: ({ deltaX, deltaY }: {
|
|
41
|
+
deltaX: any;
|
|
42
|
+
deltaY: any;
|
|
43
|
+
}) => void;
|
|
44
|
+
updateEllipse: ({ deltaX, deltaY }: {
|
|
45
|
+
deltaX: any;
|
|
46
|
+
deltaY: any;
|
|
47
|
+
}) => void;
|
|
48
|
+
updateDiamond: ({ deltaX, deltaY }: {
|
|
49
|
+
deltaX: any;
|
|
50
|
+
deltaY: any;
|
|
51
|
+
}) => void;
|
|
52
|
+
eventEmit: ({ beforeNode, afterNode }: {
|
|
53
|
+
beforeNode: any;
|
|
54
|
+
afterNode: any;
|
|
55
|
+
}) => void;
|
|
56
|
+
onDragging: ({ deltaX, deltaY }: {
|
|
57
|
+
deltaX: any;
|
|
58
|
+
deltaY: any;
|
|
59
|
+
}) => void;
|
|
60
|
+
/**
|
|
61
|
+
* 由于将拖拽放大缩小改成丝滑模式,这个时候需要在拖拽结束的时候,将节点的位置更新到grid上.
|
|
62
|
+
*/
|
|
63
|
+
onDragEnd: () => void;
|
|
64
|
+
render(): h.JSX.Element;
|
|
65
|
+
}
|
|
66
|
+
export default Control;
|