@logicflow/extension 1.0.0-alpha.1 → 1.0.0-alpha.10

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.
Files changed (88) hide show
  1. package/cjs/NodeResize/Control/Control.js +4 -4
  2. package/cjs/NodeResize/Control/ControlGroup.js +4 -3
  3. package/cjs/NodeResize/Node/DiamondResize.js +18 -9
  4. package/cjs/NodeResize/Node/EllipseResize.js +23 -12
  5. package/cjs/NodeResize/Node/RectResize.js +11 -16
  6. package/cjs/bpmn/events/EndEvent.js +19 -10
  7. package/cjs/bpmn/events/StartEvent.js +4 -16
  8. package/cjs/bpmn/gateways/ExclusiveGateway.js +16 -14
  9. package/cjs/bpmn/index.js +1 -1
  10. package/cjs/bpmn/tasks/ServiceTask.js +20 -17
  11. package/cjs/bpmn/tasks/UserTask.js +20 -16
  12. package/cjs/bpmn-adapter/index.js +1 -1
  13. package/cjs/components/context-menu/index.js +3 -3
  14. package/cjs/components/menu/index.js +6 -6
  15. package/cjs/components/mini-map/index.js +2 -2
  16. package/cjs/components/selection-select/index.js +1 -1
  17. package/cjs/index.js +1 -1
  18. package/cjs/insert-node-in-polyline/index.js +3 -3
  19. package/cjs/materials/curved-edge/index.js +2 -1
  20. package/cjs/materials/group/GroupNode.js +1 -5
  21. package/cjs/materials/group/index.js +4 -4
  22. package/cjs/tools/auto-layout/index.js +8 -8
  23. package/cjs/tools/snapshot/index.js +3 -3
  24. package/es/NodeResize/Control/Control.d.ts +1 -3
  25. package/es/NodeResize/Control/Control.js +4 -4
  26. package/es/NodeResize/Control/ControlGroup.d.ts +1 -8
  27. package/es/NodeResize/Control/ControlGroup.js +4 -3
  28. package/es/NodeResize/Node/DiamondResize.d.ts +3 -2
  29. package/es/NodeResize/Node/DiamondResize.js +18 -9
  30. package/es/NodeResize/Node/EllipseResize.d.ts +4 -2
  31. package/es/NodeResize/Node/EllipseResize.js +23 -12
  32. package/es/NodeResize/Node/RectResize.d.ts +2 -1
  33. package/es/NodeResize/Node/RectResize.js +11 -16
  34. package/es/bpmn/events/EndEvent.d.ts +1 -0
  35. package/es/bpmn/events/EndEvent.js +19 -10
  36. package/es/bpmn/events/StartEvent.d.ts +1 -25
  37. package/es/bpmn/events/StartEvent.js +4 -16
  38. package/es/bpmn/gateways/ExclusiveGateway.js +16 -14
  39. package/es/bpmn/index.js +1 -1
  40. package/es/bpmn/tasks/ServiceTask.js +20 -17
  41. package/es/bpmn/tasks/UserTask.js +20 -16
  42. package/es/bpmn-adapter/index.js +1 -1
  43. package/es/components/context-menu/index.js +3 -3
  44. package/es/components/menu/index.js +6 -6
  45. package/es/components/mini-map/index.js +2 -2
  46. package/es/components/selection-select/index.js +1 -1
  47. package/es/index.d.ts +0 -1
  48. package/es/index.js +1 -1
  49. package/es/insert-node-in-polyline/index.js +3 -3
  50. package/es/materials/curved-edge/index.js +2 -1
  51. package/es/materials/group/GroupNode.d.ts +0 -12
  52. package/es/materials/group/GroupNode.js +1 -5
  53. package/es/materials/group/index.js +4 -4
  54. package/es/tools/auto-layout/index.d.ts +4 -4
  55. package/es/tools/auto-layout/index.js +8 -8
  56. package/es/tools/snapshot/index.js +3 -3
  57. package/lib/AutoLayout.js +1 -1
  58. package/lib/BpmnAdapter.js +1 -1
  59. package/lib/BpmnElement.js +1 -1
  60. package/lib/ContextMenu.js +1 -1
  61. package/lib/Control.js +1 -1
  62. package/lib/CurvedEdge.js +1 -1
  63. package/lib/DndPanel.js +1 -1
  64. package/lib/FlowPath.js +1 -1
  65. package/lib/Group.js +1 -1
  66. package/lib/InsertNodeInPolyline.js +1 -1
  67. package/lib/Menu.js +1 -1
  68. package/lib/MiniMap.js +1 -1
  69. package/lib/NodeResize.js +1 -1
  70. package/lib/RectLabelNode.js +1 -1
  71. package/lib/SelectionSelect.js +1 -1
  72. package/lib/Snapshot.js +1 -1
  73. package/lib/TurboAdapter.js +1 -1
  74. package/package.json +2 -2
  75. package/types/NodeResize/Control/Control.d.ts +1 -3
  76. package/types/NodeResize/Control/ControlGroup.d.ts +1 -8
  77. package/types/NodeResize/Node/DiamondResize.d.ts +3 -2
  78. package/types/NodeResize/Node/EllipseResize.d.ts +4 -2
  79. package/types/NodeResize/Node/RectResize.d.ts +2 -1
  80. package/types/bpmn/events/EndEvent.d.ts +1 -0
  81. package/types/bpmn/events/StartEvent.d.ts +1 -25
  82. package/types/index.d.ts +0 -1
  83. package/types/materials/group/GroupNode.d.ts +0 -12
  84. package/types/tools/auto-layout/index.d.ts +4 -4
  85. package/cjs/materials/node-selection/index.js +0 -267
  86. package/es/materials/node-selection/index.d.ts +0 -29
  87. package/es/materials/node-selection/index.js +0 -264
  88. package/lib/NodeSelection.js +0 -10
@@ -1 +1 @@
1
- !function(t,r){if("object"==typeof exports&&"object"==typeof module)module.exports=r();else if("function"==typeof define&&define.amd)define([],r);else{var n=r();for(var e in n)("object"==typeof exports?exports:t)[e]=n[e]}}(window,(function(){return function(t){var r={};function n(e){if(r[e])return r[e].exports;var o=r[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=r,n.d=function(t,r,e){n.o(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:e})},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,r){if(1&r&&(t=n(t)),8&r)return t;if(4&r&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(n.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&r&&"string"!=typeof t)for(var o in t)n.d(e,o,function(r){return t[r]}.bind(null,o));return e},n.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(r,"a",r),r},n.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},n.p="",n(n.s=195)}([function(t,r,n){(function(r){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 r&&r)||function(){return this}()||Function("return this")()}).call(this,n(94))},function(t,r){var n=Function.prototype,e=n.bind,o=n.call,i=e&&e.bind(o);t.exports=e?function(t){return t&&i(o,t)}:function(t){return t&&function(){return o.apply(t,arguments)}}},function(t,r){t.exports=function(t){return"function"==typeof t}},function(t,r){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,r,n){var e=n(0),o=n(34),i=n(6),u=n(36),c=n(45),f=n(60),a=o("wks"),s=e.Symbol,p=s&&s.for,l=f?s:s&&s.withoutSetter||u;t.exports=function(t){if(!i(a,t)||!c&&"string"!=typeof a[t]){var r="Symbol."+t;c&&i(s,t)?a[t]=s[t]:a[t]=f&&p?p(r):l(r)}return a[t]}},function(t,r,n){var e=n(0),o=n(24).f,i=n(16),u=n(15),c=n(41),f=n(68),a=n(70);t.exports=function(t,r){var n,s,p,l,v,y=t.target,d=t.global,h=t.stat;if(n=d?e:h?e[y]||c(y,{}):(e[y]||{}).prototype)for(s in r){if(l=r[s],p=t.noTargetGet?(v=o(n,s))&&v.value:n[s],!a(d?s:y+(h?".":"#")+s,t.forced)&&void 0!==p){if(typeof l==typeof p)continue;f(l,p)}(t.sham||p&&p.sham)&&i(l,"sham",!0),u(n,s,l,t)}}},function(t,r,n){var e=n(1),o=n(14),i=e({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,r){return i(o(t),r)}},function(t,r,n){var e=n(3);t.exports=!e((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,r,n){var e=n(2);t.exports=function(t){return"object"==typeof t?null!==t:e(t)}},function(t,r,n){var e=n(0),o=n(7),i=n(61),u=n(10),c=n(26),f=e.TypeError,a=Object.defineProperty;r.f=o?a:function(t,r,n){if(u(t),r=c(r),u(n),i)try{return a(t,r,n)}catch(t){}if("get"in n||"set"in n)throw f("Accessors not supported");return"value"in n&&(t[r]=n.value),t}},function(t,r,n){var e=n(0),o=n(8),i=e.String,u=e.TypeError;t.exports=function(t){if(o(t))return t;throw u(i(t)+" is not an object")}},function(t,r){var n=Function.prototype.call;t.exports=n.bind?n.bind(n):function(){return n.apply(n,arguments)}},function(t,r,n){var e=n(56),o=n(32);t.exports=function(t){return e(o(t))}},function(t,r,n){var e=n(0),o=n(2),i=function(t){return o(t)?t:void 0};t.exports=function(t,r){return arguments.length<2?i(e[t]):e[t]&&e[t][r]}},function(t,r,n){var e=n(0),o=n(32),i=e.Object;t.exports=function(t){return i(o(t))}},function(t,r,n){var e=n(0),o=n(2),i=n(6),u=n(16),c=n(41),f=n(38),a=n(21),s=n(57).CONFIGURABLE,p=a.get,l=a.enforce,v=String(String).split("String");(t.exports=function(t,r,n,f){var a,p=!!f&&!!f.unsafe,y=!!f&&!!f.enumerable,d=!!f&&!!f.noTargetGet,h=f&&void 0!==f.name?f.name:r;o(n)&&("Symbol("===String(h).slice(0,7)&&(h="["+String(h).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!i(n,"name")||s&&n.name!==h)&&u(n,"name",h),(a=l(n)).source||(a.source=v.join("string"==typeof h?h:""))),t!==e?(p?!d&&t[r]&&(y=!0):delete t[r],y?t[r]=n:u(t,r,n)):y?t[r]=n:c(r,n)})(Function.prototype,"toString",(function(){return o(this)&&p(this).source||f(this)}))},function(t,r,n){var e=n(7),o=n(9),i=n(20);t.exports=e?function(t,r,n){return o.f(t,r,i(1,n))}:function(t,r,n){return t[r]=n,t}},function(t,r,n){var e=n(85);t.exports=function(t){return e(t.length)}},function(t,r,n){var e,o=n(10),i=n(95),u=n(46),c=n(23),f=n(106),a=n(44),s=n(29),p=s("IE_PROTO"),l=function(){},v=function(t){return"<script>"+t+"<\/script>"},y=function(t){t.write(v("")),t.close();var r=t.parentWindow.Object;return t=null,r},d=function(){try{e=new ActiveXObject("htmlfile")}catch(t){}var t,r;d="undefined"!=typeof document?document.domain&&e?y(e):((r=a("iframe")).style.display="none",f.appendChild(r),r.src=String("javascript:"),(t=r.contentWindow.document).open(),t.write(v("document.F=Object")),t.close(),t.F):y(e);for(var n=u.length;n--;)delete d.prototype[u[n]];return d()};c[p]=!0,t.exports=Object.create||function(t,r){var n;return null!==t?(l.prototype=o(t),n=new l,l.prototype=null,n[p]=t):n=d(),void 0===r?n:i(n,r)}},function(t,r,n){var e=n(1),o=e({}.toString),i=e("".slice);t.exports=function(t){return i(o(t),8,-1)}},function(t,r){t.exports=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}}},function(t,r,n){var e,o,i,u=n(98),c=n(0),f=n(1),a=n(8),s=n(16),p=n(6),l=n(40),v=n(29),y=n(23),d=c.TypeError,h=c.WeakMap;if(u||l.state){var g=l.state||(l.state=new h),b=f(g.get),x=f(g.has),m=f(g.set);e=function(t,r){if(x(g,t))throw new d("Object already initialized");return r.facade=t,m(g,t,r),r},o=function(t){return b(g,t)||{}},i=function(t){return x(g,t)}}else{var O=v("state");y[O]=!0,e=function(t,r){if(p(t,O))throw new d("Object already initialized");return r.facade=t,s(t,O,r),r},o=function(t){return p(t,O)?t[O]:{}},i=function(t){return p(t,O)}}t.exports={set:e,get:o,has:i,enforce:function(t){return i(t)?o(t):e(t,{})},getterFor:function(t){return function(r){var n;if(!a(r)||(n=o(r)).type!==t)throw d("Incompatible receiver, "+t+" required");return n}}}},function(t,r,n){var e=n(0),o=n(31),i=e.String;t.exports=function(t){if("Symbol"===o(t))throw TypeError("Cannot convert a Symbol value to a string");return i(t)}},function(t,r){t.exports={}},function(t,r,n){var e=n(7),o=n(11),i=n(63),u=n(20),c=n(12),f=n(26),a=n(6),s=n(61),p=Object.getOwnPropertyDescriptor;r.f=e?p:function(t,r){if(t=c(t),r=f(r),s)try{return p(t,r)}catch(t){}if(a(t,r))return u(!o(i.f,t,r),t[r])}},,function(t,r,n){var e=n(88),o=n(39);t.exports=function(t){var r=e(t,"string");return o(r)?r:r+""}},function(t,r,n){var e=n(1);t.exports=e({}.isPrototypeOf)},function(t,r){t.exports=!1},function(t,r,n){var e=n(34),o=n(36),i=e("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,r){t.exports={}},function(t,r,n){var e=n(0),o=n(43),i=n(2),u=n(19),c=n(4)("toStringTag"),f=e.Object,a="Arguments"==u(function(){return arguments}());t.exports=o?u:function(t){var r,n,e;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,r){try{return t[r]}catch(t){}}(r=f(t),c))?n:a?u(r):"Object"==(e=u(r))&&i(r.callee)?"Arguments":e}},function(t,r,n){var e=n(0).TypeError;t.exports=function(t){if(null==t)throw e("Can't call method on "+t);return t}},function(t,r,n){var e=n(19);t.exports=Array.isArray||function(t){return"Array"==e(t)}},function(t,r,n){var e=n(28),o=n(40);(t.exports=function(t,r){return o[t]||(o[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.19.3",mode:e?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(t,r,n){var e=n(0),o=n(2),i=n(52),u=e.TypeError;t.exports=function(t){if(o(t))return t;throw u(i(t)+" is not a function")}},function(t,r,n){var e=n(1),o=0,i=Math.random(),u=e(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+u(++o+i,36)}},function(t,r,n){var e=n(64),o=n(46).concat("length","prototype");r.f=Object.getOwnPropertyNames||function(t){return e(t,o)}},function(t,r,n){var e=n(1),o=n(2),i=n(40),u=e(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return u(t)}),t.exports=i.inspectSource},function(t,r,n){var e=n(0),o=n(13),i=n(2),u=n(27),c=n(60),f=e.Object;t.exports=c?function(t){return"symbol"==typeof t}:function(t){var r=o("Symbol");return i(r)&&u(r.prototype,f(t))}},function(t,r,n){var e=n(0),o=n(41),i=e["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=i},function(t,r,n){var e=n(0),o=Object.defineProperty;t.exports=function(t,r){try{o(e,t,{value:r,configurable:!0,writable:!0})}catch(n){e[t]=r}return r}},function(t,r){var n=Math.ceil,e=Math.floor;t.exports=function(t){var r=+t;return r!=r||0===r?0:(r>0?e:n)(r)}},function(t,r,n){var e={};e[n(4)("toStringTag")]="z",t.exports="[object z]"===String(e)},function(t,r,n){var e=n(0),o=n(8),i=e.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},function(t,r,n){var e=n(47),o=n(3);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41}))},function(t,r){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,r,n){var e,o,i=n(0),u=n(79),c=i.process,f=i.Deno,a=c&&c.versions||f&&f.version,s=a&&a.v8;s&&(o=(e=s.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!o&&u&&(!(e=u.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=u.match(/Chrome\/(\d+)/))&&(o=+e[1]),t.exports=o},function(t,r,n){var e=n(9).f,o=n(6),i=n(4)("toStringTag");t.exports=function(t,r,n){t&&!o(t=n?t:t.prototype,i)&&e(t,i,{configurable:!0,value:r})}},function(t,r,n){"use strict";var e=n(26),o=n(9),i=n(20);t.exports=function(t,r,n){var u=e(r);u in t?o.f(t,u,i(0,n)):t[u]=n}},function(t,r,n){var e=n(54),o=n(1),i=n(56),u=n(14),c=n(17),f=n(69),a=o([].push),s=function(t){var r=1==t,n=2==t,o=3==t,s=4==t,p=6==t,l=7==t,v=5==t||p;return function(y,d,h,g){for(var b,x,m=u(y),O=i(m),S=e(d,h),w=c(O),E=0,j=g||f,T=r?j(y,w):n||l?j(y,0):void 0;w>E;E++)if((v||E in O)&&(x=S(b=O[E],E,m),t))if(r)T[E]=x;else if(x)switch(t){case 3:return!0;case 5:return b;case 6:return E;case 2:a(T,b)}else switch(t){case 4:return!1;case 7:a(T,b)}return p?-1:o||s?s:T}};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,r,n){var e=n(35);t.exports=function(t,r){var n=t[r];return null==n?void 0:e(n)}},function(t,r,n){var e=n(0).String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},function(t,r,n){var e=n(42),o=Math.max,i=Math.min;t.exports=function(t,r){var n=e(t);return n<0?o(n+r,0):i(n,r)}},function(t,r,n){var e=n(1),o=n(35),i=e(e.bind);t.exports=function(t,r){return o(t),void 0===r?t:i?i(t,r):function(){return t.apply(r,arguments)}}},function(t,r,n){var e=n(1),o=n(3),i=n(2),u=n(31),c=n(13),f=n(38),a=function(){},s=[],p=c("Reflect","construct"),l=/^\s*(?:class|function)\b/,v=e(l.exec),y=!l.exec(a),d=function(t){if(!i(t))return!1;try{return p(a,s,t),!0}catch(t){return!1}};t.exports=!p||o((function(){var t;return d(d.call)||!d(Object)||!d((function(){t=!0}))||t}))?function(t){if(!i(t))return!1;switch(u(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return y||!!v(l,f(t))}:d},function(t,r,n){var e=n(0),o=n(1),i=n(3),u=n(19),c=e.Object,f=o("".split);t.exports=i((function(){return!c("z").propertyIsEnumerable(0)}))?function(t){return"String"==u(t)?f(t,""):c(t)}:c},function(t,r,n){var e=n(7),o=n(6),i=Function.prototype,u=e&&Object.getOwnPropertyDescriptor,c=o(i,"name"),f=c&&"something"===function(){}.name,a=c&&(!e||e&&u(i,"name").configurable);t.exports={EXISTS:c,PROPER:f,CONFIGURABLE:a}},function(t,r,n){var e=n(64),o=n(46);t.exports=Object.keys||function(t){return e(t,o)}},function(t,r,n){var e=n(0),o=n(6),i=n(2),u=n(14),c=n(29),f=n(102),a=c("IE_PROTO"),s=e.Object,p=s.prototype;t.exports=f?s.getPrototypeOf:function(t){var r=u(t);if(o(r,a))return r[a];var n=r.constructor;return i(n)&&r instanceof n?n.prototype:r instanceof s?p:null}},function(t,r,n){var e=n(45);t.exports=e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,r,n){var e=n(7),o=n(3),i=n(44);t.exports=!e&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(t,r,n){"use strict";var e=n(12),o=n(101),i=n(30),u=n(21),c=n(66),f=u.set,a=u.getterFor("Array Iterator");t.exports=c(Array,"Array",(function(t,r){f(this,{type:"Array Iterator",target:e(t),index:0,kind:r})}),(function(){var t=a(this),r=t.target,n=t.kind,e=t.index++;return!r||e>=r.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:e,done:!1}:"values"==n?{value:r[e],done:!1}:{value:[e,r[e]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(t,r,n){"use strict";var e={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!e.call({1:2},1);r.f=i?function(t){var r=o(this,t);return!!r&&r.enumerable}:e},function(t,r,n){var e=n(1),o=n(6),i=n(12),u=n(80).indexOf,c=n(23),f=e([].push);t.exports=function(t,r){var n,e=i(t),a=0,s=[];for(n in e)!o(c,n)&&o(e,n)&&f(s,n);for(;r.length>a;)o(e,n=r[a++])&&(~u(s,n)||f(s,n));return s}},function(t,r){r.f=Object.getOwnPropertySymbols},function(t,r,n){"use strict";var e=n(5),o=n(11),i=n(28),u=n(57),c=n(2),f=n(109),a=n(59),s=n(76),p=n(48),l=n(16),v=n(15),y=n(4),d=n(30),h=n(77),g=u.PROPER,b=u.CONFIGURABLE,x=h.IteratorPrototype,m=h.BUGGY_SAFARI_ITERATORS,O=y("iterator"),S=function(){return this};t.exports=function(t,r,n,u,y,h,w){f(n,r,u);var E,j,T,P=function(t){if(t===y&&k)return k;if(!m&&t in L)return L[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},A=r+" Iterator",_=!1,L=t.prototype,I=L[O]||L["@@iterator"]||y&&L[y],k=!m&&I||P(y),F="Array"==r&&L.entries||I;if(F&&(E=a(F.call(new t)))!==Object.prototype&&E.next&&(i||a(E)===x||(s?s(E,x):c(E[O])||v(E,O,S)),p(E,A,!0,!0),i&&(d[A]=S)),g&&"values"==y&&I&&"values"!==I.name&&(!i&&b?l(L,"name","values"):(_=!0,k=function(){return o(I,this)})),y)if(j={values:P("values"),keys:h?k:P("keys"),entries:P("entries")},w)for(T in j)(m||_||!(T in L))&&v(L,T,j[T]);else e({target:r,proto:!0,forced:m||_},j);return i&&!w||L[O]===k||v(L,O,k,{name:y}),d[r]=k,j}},function(t,r,n){var e=n(43),o=n(15),i=n(100);e||o(Object.prototype,"toString",i,{unsafe:!0})},function(t,r,n){var e=n(6),o=n(84),i=n(24),u=n(9);t.exports=function(t,r){for(var n=o(r),c=u.f,f=i.f,a=0;a<n.length;a++){var s=n[a];e(t,s)||c(t,s,f(r,s))}}},function(t,r,n){var e=n(99);t.exports=function(t,r){return new(e(t))(0===r?0:r)}},function(t,r,n){var e=n(3),o=n(2),i=/#|\.prototype\./,u=function(t,r){var n=f[c(t)];return n==s||n!=a&&(o(r)?e(r):!!r)},c=u.normalize=function(t){return String(t).replace(i,".").toLowerCase()},f=u.data={},a=u.NATIVE="N",s=u.POLYFILL="P";t.exports=u},function(t,r,n){"use strict";var e=n(50).forEach,o=n(78)("forEach");t.exports=o?[].forEach:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}},function(t,r){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,r,n){var e=n(44)("span").classList,o=e&&e.constructor&&e.constructor.prototype;t.exports=o===Object.prototype?void 0:o},function(t,r,n){var e=n(3),o=n(4),i=n(47),u=o("species");t.exports=function(t){return i>=51||!e((function(){var r=[];return(r.constructor={})[u]=function(){return{foo:1}},1!==r[t](Boolean).foo}))}},function(t,r,n){var e=n(1);t.exports=e([].slice)},function(t,r,n){var e=n(1),o=n(10),i=n(110);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,r=!1,n={};try{(t=e(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),r=n instanceof Array}catch(t){}return function(n,e){return o(n),i(e),r?t(n,e):n.__proto__=e,n}}():void 0)},function(t,r,n){"use strict";var e,o,i,u=n(3),c=n(2),f=n(18),a=n(59),s=n(15),p=n(4),l=n(28),v=p("iterator"),y=!1;[].keys&&("next"in(i=[].keys())?(o=a(a(i)))!==Object.prototype&&(e=o):y=!0),null==e||u((function(){var t={};return e[v].call(t)!==t}))?e={}:l&&(e=f(e)),c(e[v])||s(e,v,(function(){return this})),t.exports={IteratorPrototype:e,BUGGY_SAFARI_ITERATORS:y}},function(t,r,n){"use strict";var e=n(3);t.exports=function(t,r){var n=[][t];return!!n&&e((function(){n.call(null,r||function(){throw 1},1)}))}},function(t,r,n){var e=n(13);t.exports=e("navigator","userAgent")||""},function(t,r,n){var e=n(12),o=n(53),i=n(17),u=function(t){return function(r,n,u){var c,f=e(r),a=i(f),s=o(u,a);if(t&&n!=n){for(;a>s;)if((c=f[s++])!=c)return!0}else for(;a>s;s++)if((t||s in f)&&f[s]===n)return t||s||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},function(t,r,n){"use strict";var e=n(107).charAt,o=n(22),i=n(21),u=n(66),c=i.set,f=i.getterFor("String Iterator");u(String,"String",(function(t){c(this,{type:"String Iterator",string:o(t),index:0})}),(function(){var t,r=f(this),n=r.string,o=r.index;return o>=n.length?{value:void 0,done:!0}:(t=e(n,o),r.index+=t.length,{value:t,done:!1})}))},function(t,r,n){"use strict";var e=n(5),o=n(0),i=n(13),u=n(86),c=n(11),f=n(1),a=n(28),s=n(7),p=n(45),l=n(3),v=n(6),y=n(33),d=n(2),h=n(8),g=n(27),b=n(39),x=n(10),m=n(14),O=n(12),S=n(26),w=n(22),E=n(20),j=n(18),T=n(58),P=n(37),A=n(103),_=n(65),L=n(24),I=n(9),k=n(63),F=n(75),N=n(15),R=n(34),C=n(29),M=n(23),D=n(36),G=n(4),z=n(83),U=n(87),V=n(48),W=n(21),B=n(50).forEach,K=C("hidden"),Y=G("toPrimitive"),Q=W.set,X=W.getterFor("Symbol"),H=Object.prototype,q=o.Symbol,J=q&&q.prototype,$=o.TypeError,Z=o.QObject,tt=i("JSON","stringify"),rt=L.f,nt=I.f,et=A.f,ot=k.f,it=f([].push),ut=R("symbols"),ct=R("op-symbols"),ft=R("string-to-symbol-registry"),at=R("symbol-to-string-registry"),st=R("wks"),pt=!Z||!Z.prototype||!Z.prototype.findChild,lt=s&&l((function(){return 7!=j(nt({},"a",{get:function(){return nt(this,"a",{value:7}).a}})).a}))?function(t,r,n){var e=rt(H,r);e&&delete H[r],nt(t,r,n),e&&t!==H&&nt(H,r,e)}:nt,vt=function(t,r){var n=ut[t]=j(J);return Q(n,{type:"Symbol",tag:t,description:r}),s||(n.description=r),n},yt=function(t,r,n){t===H&&yt(ct,r,n),x(t);var e=S(r);return x(n),v(ut,e)?(n.enumerable?(v(t,K)&&t[K][e]&&(t[K][e]=!1),n=j(n,{enumerable:E(0,!1)})):(v(t,K)||nt(t,K,E(1,{})),t[K][e]=!0),lt(t,e,n)):nt(t,e,n)},dt=function(t,r){x(t);var n=O(r),e=T(n).concat(xt(n));return B(e,(function(r){s&&!c(ht,n,r)||yt(t,r,n[r])})),t},ht=function(t){var r=S(t),n=c(ot,this,r);return!(this===H&&v(ut,r)&&!v(ct,r))&&(!(n||!v(this,r)||!v(ut,r)||v(this,K)&&this[K][r])||n)},gt=function(t,r){var n=O(t),e=S(r);if(n!==H||!v(ut,e)||v(ct,e)){var o=rt(n,e);return!o||!v(ut,e)||v(n,K)&&n[K][e]||(o.enumerable=!0),o}},bt=function(t){var r=et(O(t)),n=[];return B(r,(function(t){v(ut,t)||v(M,t)||it(n,t)})),n},xt=function(t){var r=t===H,n=et(r?ct:O(t)),e=[];return B(n,(function(t){!v(ut,t)||r&&!v(H,t)||it(e,ut[t])})),e};(p||(N(J=(q=function(){if(g(J,this))throw $("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?w(arguments[0]):void 0,r=D(t),n=function(t){this===H&&c(n,ct,t),v(this,K)&&v(this[K],r)&&(this[K][r]=!1),lt(this,r,E(1,t))};return s&&pt&&lt(H,r,{configurable:!0,set:n}),vt(r,t)}).prototype,"toString",(function(){return X(this).tag})),N(q,"withoutSetter",(function(t){return vt(D(t),t)})),k.f=ht,I.f=yt,L.f=gt,P.f=A.f=bt,_.f=xt,z.f=function(t){return vt(G(t),t)},s&&(nt(J,"description",{configurable:!0,get:function(){return X(this).description}}),a||N(H,"propertyIsEnumerable",ht,{unsafe:!0}))),e({global:!0,wrap:!0,forced:!p,sham:!p},{Symbol:q}),B(T(st),(function(t){U(t)})),e({target:"Symbol",stat:!0,forced:!p},{for:function(t){var r=w(t);if(v(ft,r))return ft[r];var n=q(r);return ft[r]=n,at[n]=r,n},keyFor:function(t){if(!b(t))throw $(t+" is not a symbol");if(v(at,t))return at[t]},useSetter:function(){pt=!0},useSimple:function(){pt=!1}}),e({target:"Object",stat:!0,forced:!p,sham:!s},{create:function(t,r){return void 0===r?j(t):dt(j(t),r)},defineProperty:yt,defineProperties:dt,getOwnPropertyDescriptor:gt}),e({target:"Object",stat:!0,forced:!p},{getOwnPropertyNames:bt,getOwnPropertySymbols:xt}),e({target:"Object",stat:!0,forced:l((function(){_.f(1)}))},{getOwnPropertySymbols:function(t){return _.f(m(t))}}),tt)&&e({target:"JSON",stat:!0,forced:!p||l((function(){var t=q();return"[null]"!=tt([t])||"{}"!=tt({a:t})||"{}"!=tt(Object(t))}))},{stringify:function(t,r,n){var e=F(arguments),o=r;if((h(r)||void 0!==t)&&!b(t))return y(r)||(r=function(t,r){if(d(o)&&(r=c(o,this,t,r)),!b(r))return r}),e[1]=r,u(tt,null,e)}});if(!J[Y]){var mt=J.valueOf;N(J,Y,(function(t){return c(mt,this)}))}V(q,"Symbol"),M[K]=!0},function(t,r,n){var e=n(4);r.f=e},function(t,r,n){var e=n(13),o=n(1),i=n(37),u=n(65),c=n(10),f=o([].concat);t.exports=e("Reflect","ownKeys")||function(t){var r=i.f(c(t)),n=u.f;return n?f(r,n(t)):r}},function(t,r,n){var e=n(42),o=Math.min;t.exports=function(t){return t>0?o(e(t),9007199254740991):0}},function(t,r){var n=Function.prototype,e=n.apply,o=n.bind,i=n.call;t.exports="object"==typeof Reflect&&Reflect.apply||(o?i.bind(e):function(){return i.apply(e,arguments)})},function(t,r,n){var e=n(115),o=n(6),i=n(83),u=n(9).f;t.exports=function(t){var r=e.Symbol||(e.Symbol={});o(r,t)||u(r,t,{value:i.f(t)})}},function(t,r,n){var e=n(0),o=n(11),i=n(8),u=n(39),c=n(51),f=n(97),a=n(4),s=e.TypeError,p=a("toPrimitive");t.exports=function(t,r){if(!i(t)||u(t))return t;var n,e=c(t,p);if(e){if(void 0===r&&(r="default"),n=o(e,t,r),!i(n)||u(n))return n;throw s("Can't convert object to primitive value")}return void 0===r&&(r="number"),f(t,r)}},function(t,r,n){var e=n(0),o=n(72),i=n(73),u=n(62),c=n(16),f=n(4),a=f("iterator"),s=f("toStringTag"),p=u.values,l=function(t,r){if(t){if(t[a]!==p)try{c(t,a,p)}catch(r){t[a]=p}if(t[s]||c(t,s,r),o[r])for(var n in u)if(t[n]!==u[n])try{c(t,n,u[n])}catch(r){t[n]=u[n]}}};for(var v in o)l(e[v]&&e[v].prototype,v);l(i,"DOMTokenList")},function(t,r,n){var e=n(31),o=n(51),i=n(30),u=n(4)("iterator");t.exports=function(t){if(null!=t)return o(t,u)||o(t,"@@iterator")||i[e(t)]}},function(t,r,n){var e=n(5),o=n(7);e({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:n(9).f})},,,function(t,r){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,r,n){var e=n(7),o=n(9),i=n(10),u=n(12),c=n(58);t.exports=e?Object.defineProperties:function(t,r){i(t);for(var n,e=u(r),f=c(r),a=f.length,s=0;a>s;)o.f(t,n=f[s++],e[n]);return t}},,function(t,r,n){var e=n(0),o=n(11),i=n(2),u=n(8),c=e.TypeError;t.exports=function(t,r){var n,e;if("string"===r&&i(n=t.toString)&&!u(e=o(n,t)))return e;if(i(n=t.valueOf)&&!u(e=o(n,t)))return e;if("string"!==r&&i(n=t.toString)&&!u(e=o(n,t)))return e;throw c("Can't convert object to primitive value")}},function(t,r,n){var e=n(0),o=n(2),i=n(38),u=e.WeakMap;t.exports=o(u)&&/native code/.test(i(u))},function(t,r,n){var e=n(0),o=n(33),i=n(55),u=n(8),c=n(4)("species"),f=e.Array;t.exports=function(t){var r;return o(t)&&(r=t.constructor,(i(r)&&(r===f||o(r.prototype))||u(r)&&null===(r=r[c]))&&(r=void 0)),void 0===r?f:r}},function(t,r,n){"use strict";var e=n(43),o=n(31);t.exports=e?{}.toString:function(){return"[object "+o(this)+"]"}},function(t,r,n){var e=n(4),o=n(18),i=n(9),u=e("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,r,n){var e=n(3);t.exports=!e((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},function(t,r,n){var e=n(19),o=n(12),i=n(37).f,u=n(108),c="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return c&&"Window"==e(t)?function(t){try{return i(t)}catch(t){return u(c)}}(t):i(o(t))}},function(t,r,n){"use strict";var e=n(5),o=n(71);e({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},function(t,r,n){var e=n(0),o=n(72),i=n(73),u=n(71),c=n(16),f=function(t){if(t&&t.forEach!==u)try{c(t,"forEach",u)}catch(r){t.forEach=u}};for(var a in o)o[a]&&f(e[a]&&e[a].prototype);f(i)},function(t,r,n){var e=n(13);t.exports=e("document","documentElement")},function(t,r,n){var e=n(1),o=n(42),i=n(22),u=n(32),c=e("".charAt),f=e("".charCodeAt),a=e("".slice),s=function(t){return function(r,n){var e,s,p=i(u(r)),l=o(n),v=p.length;return l<0||l>=v?t?"":void 0:(e=f(p,l))<55296||e>56319||l+1===v||(s=f(p,l+1))<56320||s>57343?t?c(p,l):e:t?a(p,l,l+2):s-56320+(e-55296<<10)+65536}};t.exports={codeAt:s(!1),charAt:s(!0)}},function(t,r,n){var e=n(0),o=n(53),i=n(17),u=n(49),c=e.Array,f=Math.max;t.exports=function(t,r,n){for(var e=i(t),a=o(r,e),s=o(void 0===n?e:n,e),p=c(f(s-a,0)),l=0;a<s;a++,l++)u(p,l,t[a]);return p.length=l,p}},function(t,r,n){"use strict";var e=n(77).IteratorPrototype,o=n(18),i=n(20),u=n(48),c=n(30),f=function(){return this};t.exports=function(t,r,n,a){var s=r+" Iterator";return t.prototype=o(e,{next:i(+!a,n)}),u(t,s,!1,!0),c[s]=f,t}},function(t,r,n){var e=n(0),o=n(2),i=e.String,u=e.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,r,n){var e=n(4),o=n(30),i=e("iterator"),u=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||u[i]===t)}},function(t,r,n){var e=n(0),o=n(11),i=n(35),u=n(10),c=n(52),f=n(90),a=e.TypeError;t.exports=function(t,r){var n=arguments.length<2?f(t):r;if(i(n))return u(o(n,t));throw a(c(t)+" is not iterable")}},function(t,r,n){var e=n(11),o=n(10),i=n(51);t.exports=function(t,r,n){var u,c;o(t);try{if(!(u=i(t,"return"))){if("throw"===r)throw n;return n}u=e(u,t)}catch(t){c=!0,u=t}if("throw"===r)throw n;if(c)throw u;return o(u),n}},function(t,r,n){var e=n(4)("iterator"),o=!1;try{var i=0,u={next:function(){return{done:!!i++}},return:function(){o=!0}};u[e]=function(){return this},Array.from(u,(function(){throw 2}))}catch(t){}t.exports=function(t,r){if(!r&&!o)return!1;var n=!1;try{var i={};i[e]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(t){}return n}},function(t,r,n){var e=n(0);t.exports=e},,,function(t,r,n){var e=n(0),o=n(54),i=n(11),u=n(10),c=n(52),f=n(111),a=n(17),s=n(27),p=n(112),l=n(90),v=n(113),y=e.TypeError,d=function(t,r){this.stopped=t,this.result=r},h=d.prototype;t.exports=function(t,r,n){var e,g,b,x,m,O,S,w=n&&n.that,E=!(!n||!n.AS_ENTRIES),j=!(!n||!n.IS_ITERATOR),T=!(!n||!n.INTERRUPTED),P=o(r,w),A=function(t){return e&&v(e,"normal",t),new d(!0,t)},_=function(t){return E?(u(t),T?P(t[0],t[1],A):P(t[0],t[1])):T?P(t,A):P(t)};if(j)e=t;else{if(!(g=l(t)))throw y(c(t)+" is not iterable");if(f(g)){for(b=0,x=a(t);x>b;b++)if((m=_(t[b]))&&s(h,m))return m;return new d(!1)}e=p(t,g)}for(O=e.next;!(S=i(O,e)).done;){try{m=_(S.value)}catch(t){v(e,"throw",t)}if("object"==typeof m&&m&&s(h,m))return m}return new d(!1)}},function(t,r,n){var e=n(0),o=n(27),i=e.TypeError;t.exports=function(t,r){if(o(r,t))return t;throw i("Incorrect invocation")}},,function(t,r,n){var e=n(5),o=n(3),i=n(12),u=n(24).f,c=n(7),f=o((function(){u(1)}));e({target:"Object",stat:!0,forced:!c||f,sham:!c},{getOwnPropertyDescriptor:function(t,r){return u(i(t),r)}})},function(t,r,n){var e=n(5),o=n(1),i=n(23),u=n(8),c=n(6),f=n(9).f,a=n(37),s=n(103),p=n(149),l=n(36),v=n(151),y=!1,d=l("meta"),h=0,g=function(t){f(t,d,{value:{objectID:"O"+h++,weakData:{}}})},b=t.exports={enable:function(){b.enable=function(){},y=!0;var t=a.f,r=o([].splice),n={};n[d]=1,t(n).length&&(a.f=function(n){for(var e=t(n),o=0,i=e.length;o<i;o++)if(e[o]===d){r(e,o,1);break}return e},e({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:s.f}))},fastKey:function(t,r){if(!u(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!c(t,d)){if(!p(t))return"F";if(!r)return"E";g(t)}return t[d].objectID},getWeakData:function(t,r){if(!c(t,d)){if(!p(t))return!0;if(!r)return!1;g(t)}return t[d].weakData},onFreeze:function(t){return v&&y&&p(t)&&!c(t,d)&&g(t),t}};i[d]=!0},,,,,function(t,r,n){var e=n(2),o=n(8),i=n(76);t.exports=function(t,r,n){var u,c;return i&&e(u=r.constructor)&&u!==n&&o(c=u.prototype)&&c!==n.prototype&&i(t,c),t}},,,,,,,,,,,,,function(t,r,n){"use strict";var e=n(5),o=n(0),i=n(1),u=n(70),c=n(15),f=n(122),a=n(118),s=n(119),p=n(2),l=n(8),v=n(3),y=n(114),d=n(48),h=n(127);t.exports=function(t,r,n){var g=-1!==t.indexOf("Map"),b=-1!==t.indexOf("Weak"),x=g?"set":"add",m=o[t],O=m&&m.prototype,S=m,w={},E=function(t){var r=i(O[t]);c(O,t,"add"==t?function(t){return r(this,0===t?0:t),this}:"delete"==t?function(t){return!(b&&!l(t))&&r(this,0===t?0:t)}:"get"==t?function(t){return b&&!l(t)?void 0:r(this,0===t?0:t)}:"has"==t?function(t){return!(b&&!l(t))&&r(this,0===t?0:t)}:function(t,n){return r(this,0===t?0:t,n),this})};if(u(t,!p(m)||!(b||O.forEach&&!v((function(){(new m).entries().next()})))))S=n.getConstructor(r,t,g,x),f.enable();else if(u(t,!0)){var j=new S,T=j[x](b?{}:-0,1)!=j,P=v((function(){j.has(1)})),A=y((function(t){new m(t)})),_=!b&&v((function(){for(var t=new m,r=5;r--;)t[x](r,r);return!t.has(-0)}));A||((S=r((function(t,r){s(t,O);var n=h(new m,t,S);return null!=r&&a(r,n[x],{that:n,AS_ENTRIES:g}),n}))).prototype=O,O.constructor=S),(P||_)&&(E("delete"),E("has"),g&&E("get")),(_||T)&&E(x),b&&O.clear&&delete O.clear}return w[t]=S,e({global:!0,forced:S!=m},w),d(S,t),b||n.setStrong(S,t,g),S}},function(t,r,n){"use strict";var e=n(9).f,o=n(18),i=n(142),u=n(54),c=n(119),f=n(118),a=n(66),s=n(143),p=n(7),l=n(122).fastKey,v=n(21),y=v.set,d=v.getterFor;t.exports={getConstructor:function(t,r,n,a){var s=t((function(t,e){c(t,v),y(t,{type:r,index:o(null),first:void 0,last:void 0,size:0}),p||(t.size=0),null!=e&&f(e,t[a],{that:t,AS_ENTRIES:n})})),v=s.prototype,h=d(r),g=function(t,r,n){var e,o,i=h(t),u=b(t,r);return u?u.value=n:(i.last=u={index:o=l(r,!0),key:r,value:n,previous:e=i.last,next:void 0,removed:!1},i.first||(i.first=u),e&&(e.next=u),p?i.size++:t.size++,"F"!==o&&(i.index[o]=u)),t},b=function(t,r){var n,e=h(t),o=l(r);if("F"!==o)return e.index[o];for(n=e.first;n;n=n.next)if(n.key==r)return n};return i(v,{clear:function(){for(var t=h(this),r=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete r[n.index],n=n.next;t.first=t.last=void 0,p?t.size=0:this.size=0},delete:function(t){var r=h(this),n=b(this,t);if(n){var e=n.next,o=n.previous;delete r.index[n.index],n.removed=!0,o&&(o.next=e),e&&(e.previous=o),r.first==n&&(r.first=e),r.last==n&&(r.last=o),p?r.size--:this.size--}return!!n},forEach:function(t){for(var r,n=h(this),e=u(t,arguments.length>1?arguments[1]:void 0);r=r?r.next:n.first;)for(e(r.value,r.key,this);r&&r.removed;)r=r.previous},has:function(t){return!!b(this,t)}}),i(v,n?{get:function(t){var r=b(this,t);return r&&r.value},set:function(t,r){return g(this,0===t?0:t,r)}}:{add:function(t){return g(this,t=0===t?0:t,t)}}),p&&e(v,"size",{get:function(){return h(this).size}}),s},setStrong:function(t,r,n){var e=r+" Iterator",o=d(r),i=d(e);a(t,r,(function(t,r){y(this,{type:e,target:t,state:o(t),kind:r,last:void 0})}),(function(){for(var t=i(this),r=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==r?{value:n.key,done:!1}:"values"==r?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),s(r)}}},function(t,r,n){var e=n(15);t.exports=function(t,r,n){for(var o in r)e(t,o,r[o],n);return t}},function(t,r,n){"use strict";var e=n(13),o=n(9),i=n(4),u=n(7),c=i("species");t.exports=function(t){var r=e(t),n=o.f;u&&r&&!r[c]&&n(r,c,{configurable:!0,get:function(){return this}})}},,,,,function(t,r,n){"use strict";n(140)("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n(141))},function(t,r,n){var e=n(3),o=n(8),i=n(19),u=n(150),c=Object.isExtensible,f=e((function(){c(1)}));t.exports=f||u?function(t){return!!o(t)&&((!u||"ArrayBuffer"!=i(t))&&(!c||c(t)))}:c},function(t,r,n){var e=n(3);t.exports=e((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))},function(t,r,n){var e=n(3);t.exports=!e((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(t,r,n){var e=n(5),o=n(14),i=n(58);e({target:"Object",stat:!0,forced:n(3)((function(){i(1)}))},{keys:function(t){return i(o(t))}})},function(t,r,n){"use strict";var e=n(5),o=n(50).filter;e({target:"Array",proto:!0,forced:!n(74)("filter")},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},,function(t,r,n){var e=n(5),o=n(7),i=n(84),u=n(12),c=n(24),f=n(49);e({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(t){for(var r,n,e=u(t),o=c.f,a=i(e),s={},p=0;a.length>p;)void 0!==(n=o(e,r=a[p++]))&&f(s,r,n);return s}})},function(t,r,n){var e=n(5),o=n(7);e({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperties:n(95)})},,function(t,r,n){"use strict";var e=n(5),o=n(1),i=n(80).indexOf,u=n(78),c=o([].indexOf),f=!!c&&1/c([1],1,-0)<0,a=u("indexOf");e({target:"Array",proto:!0,forced:f||!a},{indexOf:function(t){var r=arguments.length>1?arguments[1]:void 0;return f?c(this,t,r)||0:i(this,t,r)}})},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,r,n){"use strict";n.r(r),n.d(r,"toTurboData",(function(){return f})),n.d(r,"toLogicflowData",(function(){return a})),n.d(r,"TurboAdapter",(function(){return s}));var e;n(62),n(148),n(67),n(81),n(89),n(104),n(105),n(152),n(158),n(91),n(82),n(153),n(121),n(155),n(156);function o(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);r&&(e=e.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),n.push.apply(n,e)}return n}function i(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?o(Object(n),!0).forEach((function(r){u(t,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))}))}return t}function u(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}function c(t){switch(t){case"bpmn:sequenceFlow":return e.SEQUENCE_FLOW;case"bpmn:startEvent":return e.START_EVENT;case"bpmn:endEvent":return e.END_EVENT;case"bpmn:userTask":return e.USER_TASK;case"bpmn:exclusiveGateway":return e.EXCLUSIVE_GATEWAY;default:return t}}function f(t){var r=new Map,n={flowElementList:[]};return t.nodes.forEach((function(t){var e=function(t){var r=t.id,n=t.type,e=t.x,o=t.y,u=t.text,f=void 0===u?"":u,a=t.properties;return{incoming:[],outgoing:[],dockers:[],type:c(t.type),properties:i(i({},a),{},{name:f&&f.value||"",x:e,y:o,text:f,logicFlowType:n}),key:r}}(t);n.flowElementList.push(e),r.set(t.id,e)})),t.edges.forEach((function(t){var e=function(t){var r=t.id,n=t.type,e=t.sourceNodeId,o=t.targetNodeId,u=t.startPoint,f=t.endPoint,a=t.pointsList,s=t.text,p=void 0===s?"":s,l=t.properties;return{incoming:[e],outgoing:[o],type:c(n),dockers:[],properties:i(i({},l),{},{name:p&&p.value||"",text:p,startPoint:u,endPoint:f,pointsList:a,logicFlowType:n}),key:r}}(t);r.get(t.sourceNodeId).outgoing.push(e.key),r.get(t.targetNodeId).incoming.push(e.key),n.flowElementList.push(e)})),n}function a(t){var r={nodes:[],edges:[]},n=t.flowElementList;return n&&n.length>0&&n.forEach((function(t){if(t.type===e.SEQUENCE_FLOW){var n=function(t){var r=t.incoming,n=t.outgoing,e=t.properties,o=t.key,i=e.text,u=e.startPoint,c=e.endPoint,f=e.pointsList,a={id:o,type:e.logicFlowType,sourceNodeId:r[0],targetNodeId:n[0],text:i,startPoint:u,endPoint:c,pointsList:f,properties:{}},s=["startPoint","endPoint","pointsList","text","logicFlowType"];return Object.keys(t.properties).forEach((function(r){-1===s.indexOf(r)&&(a.properties[r]=t.properties[r])})),a}(t);r.edges.push(n)}else{var o=function(t){var r=t.properties,n=t.key,e=r.x,o=r.y,i=r.text,u={id:n,type:r.logicFlowType,x:e,y:o,text:i,properties:{}},c=["x","y","text","logicFlowType"];return Object.keys(t.properties).forEach((function(r){-1===c.indexOf(r)&&(u.properties[r]=t.properties[r])})),u}(t);r.nodes.push(o)}})),r}!function(t){t[t.SEQUENCE_FLOW=1]="SEQUENCE_FLOW",t[t.START_EVENT=2]="START_EVENT",t[t.END_EVENT=3]="END_EVENT",t[t.USER_TASK=4]="USER_TASK",t[t.EXCLUSIVE_GATEWAY=6]="EXCLUSIVE_GATEWAY"}(e||(e={}));var s={pluginName:"TurboAdapter",install:function(t){t.adapterIn=this.adapterIn,t.adapterOut=this.adapterOut},shapeConfigMap:new Map,setCustomShape:function(t,r){this.shapeConfigMap.set(t,r)},adapterOut:function(t){if(t)return f(t)},adapterIn:function(t){if(t)return a(t)}};r.default=s}])}));
1
+ !function(t,r){if("object"==typeof exports&&"object"==typeof module)module.exports=r();else if("function"==typeof define&&define.amd)define([],r);else{var n=r();for(var e in n)("object"==typeof exports?exports:t)[e]=n[e]}}(window,(function(){return function(t){var r={};function n(e){if(r[e])return r[e].exports;var o=r[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=r,n.d=function(t,r,e){n.o(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:e})},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,r){if(1&r&&(t=n(t)),8&r)return t;if(4&r&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(n.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&r&&"string"!=typeof t)for(var o in t)n.d(e,o,function(r){return t[r]}.bind(null,o));return e},n.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(r,"a",r),r},n.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},n.p="",n(n.s=186)}([function(t,r,n){(function(r){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 r&&r)||function(){return this}()||Function("return this")()}).call(this,n(97))},function(t,r){var n=Function.prototype,e=n.bind,o=n.call,i=e&&e.bind(o);t.exports=e?function(t){return t&&i(o,t)}:function(t){return t&&function(){return o.apply(t,arguments)}}},function(t,r){t.exports=function(t){return"function"==typeof t}},function(t,r){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,r,n){var e=n(0),o=n(34),i=n(5),u=n(36),c=n(45),f=n(59),a=o("wks"),s=e.Symbol,p=s&&s.for,l=f?s:s&&s.withoutSetter||u;t.exports=function(t){if(!i(a,t)||!c&&"string"!=typeof a[t]){var r="Symbol."+t;c&&i(s,t)?a[t]=s[t]:a[t]=f&&p?p(r):l(r)}return a[t]}},function(t,r,n){var e=n(1),o=n(15),i=e({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,r){return i(o(t),r)}},function(t,r,n){var e=n(0),o=n(24).f,i=n(16),u=n(14),c=n(41),f=n(68),a=n(69);t.exports=function(t,r){var n,s,p,l,v,y=t.target,d=t.global,h=t.stat;if(n=d?e:h?e[y]||c(y,{}):(e[y]||{}).prototype)for(s in r){if(l=r[s],p=t.noTargetGet?(v=o(n,s))&&v.value:n[s],!a(d?s:y+(h?".":"#")+s,t.forced)&&void 0!==p){if(typeof l==typeof p)continue;f(l,p)}(t.sham||p&&p.sham)&&i(l,"sham",!0),u(n,s,l,t)}}},function(t,r,n){var e=n(3);t.exports=!e((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,r,n){var e=n(2);t.exports=function(t){return"object"==typeof t?null!==t:e(t)}},function(t,r,n){var e=n(0),o=n(7),i=n(60),u=n(10),c=n(26),f=e.TypeError,a=Object.defineProperty;r.f=o?a:function(t,r,n){if(u(t),r=c(r),u(n),i)try{return a(t,r,n)}catch(t){}if("get"in n||"set"in n)throw f("Accessors not supported");return"value"in n&&(t[r]=n.value),t}},function(t,r,n){var e=n(0),o=n(8),i=e.String,u=e.TypeError;t.exports=function(t){if(o(t))return t;throw u(i(t)+" is not an object")}},function(t,r){var n=Function.prototype.call;t.exports=n.bind?n.bind(n):function(){return n.apply(n,arguments)}},function(t,r,n){var e=n(54),o=n(32);t.exports=function(t){return e(o(t))}},function(t,r,n){var e=n(0),o=n(2),i=function(t){return o(t)?t:void 0};t.exports=function(t,r){return arguments.length<2?i(e[t]):e[t]&&e[t][r]}},function(t,r,n){var e=n(0),o=n(2),i=n(5),u=n(16),c=n(41),f=n(38),a=n(21),s=n(55).CONFIGURABLE,p=a.get,l=a.enforce,v=String(String).split("String");(t.exports=function(t,r,n,f){var a,p=!!f&&!!f.unsafe,y=!!f&&!!f.enumerable,d=!!f&&!!f.noTargetGet,h=f&&void 0!==f.name?f.name:r;o(n)&&("Symbol("===String(h).slice(0,7)&&(h="["+String(h).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!i(n,"name")||s&&n.name!==h)&&u(n,"name",h),(a=l(n)).source||(a.source=v.join("string"==typeof h?h:""))),t!==e?(p?!d&&t[r]&&(y=!0):delete t[r],y?t[r]=n:u(t,r,n)):y?t[r]=n:c(r,n)})(Function.prototype,"toString",(function(){return o(this)&&p(this).source||f(this)}))},function(t,r,n){var e=n(0),o=n(32),i=e.Object;t.exports=function(t){return i(o(t))}},function(t,r,n){var e=n(7),o=n(9),i=n(20);t.exports=e?function(t,r,n){return o.f(t,r,i(1,n))}:function(t,r,n){return t[r]=n,t}},function(t,r,n){var e=n(84);t.exports=function(t){return e(t.length)}},function(t,r,n){var e,o=n(10),i=n(96),u=n(46),c=n(23),f=n(104),a=n(44),s=n(30),p=s("IE_PROTO"),l=function(){},v=function(t){return"<script>"+t+"<\/script>"},y=function(t){t.write(v("")),t.close();var r=t.parentWindow.Object;return t=null,r},d=function(){try{e=new ActiveXObject("htmlfile")}catch(t){}var t,r;d="undefined"!=typeof document?document.domain&&e?y(e):((r=a("iframe")).style.display="none",f.appendChild(r),r.src=String("javascript:"),(t=r.contentWindow.document).open(),t.write(v("document.F=Object")),t.close(),t.F):y(e);for(var n=u.length;n--;)delete d.prototype[u[n]];return d()};c[p]=!0,t.exports=Object.create||function(t,r){var n;return null!==t?(l.prototype=o(t),n=new l,l.prototype=null,n[p]=t):n=d(),void 0===r?n:i(n,r)}},function(t,r,n){var e=n(1),o=e({}.toString),i=e("".slice);t.exports=function(t){return i(o(t),8,-1)}},function(t,r){t.exports=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}}},function(t,r,n){var e,o,i,u=n(99),c=n(0),f=n(1),a=n(8),s=n(16),p=n(5),l=n(40),v=n(30),y=n(23),d=c.TypeError,h=c.WeakMap;if(u||l.state){var g=l.state||(l.state=new h),b=f(g.get),x=f(g.has),m=f(g.set);e=function(t,r){if(x(g,t))throw new d("Object already initialized");return r.facade=t,m(g,t,r),r},o=function(t){return b(g,t)||{}},i=function(t){return x(g,t)}}else{var O=v("state");y[O]=!0,e=function(t,r){if(p(t,O))throw new d("Object already initialized");return r.facade=t,s(t,O,r),r},o=function(t){return p(t,O)?t[O]:{}},i=function(t){return p(t,O)}}t.exports={set:e,get:o,has:i,enforce:function(t){return i(t)?o(t):e(t,{})},getterFor:function(t){return function(r){var n;if(!a(r)||(n=o(r)).type!==t)throw d("Incompatible receiver, "+t+" required");return n}}}},function(t,r,n){var e=n(0),o=n(31),i=e.String;t.exports=function(t){if("Symbol"===o(t))throw TypeError("Cannot convert a Symbol value to a string");return i(t)}},function(t,r){t.exports={}},function(t,r,n){var e=n(7),o=n(11),i=n(62),u=n(20),c=n(12),f=n(26),a=n(5),s=n(60),p=Object.getOwnPropertyDescriptor;r.f=e?p:function(t,r){if(t=c(t),r=f(r),s)try{return p(t,r)}catch(t){}if(a(t,r))return u(!o(i.f,t,r),t[r])}},function(t,r,n){var e=n(1);t.exports=e({}.isPrototypeOf)},function(t,r,n){var e=n(87),o=n(39);t.exports=function(t){var r=e(t,"string");return o(r)?r:r+""}},function(t,r){t.exports={}},,function(t,r){t.exports=!1},function(t,r,n){var e=n(34),o=n(36),i=e("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,r,n){var e=n(0),o=n(43),i=n(2),u=n(19),c=n(4)("toStringTag"),f=e.Object,a="Arguments"==u(function(){return arguments}());t.exports=o?u:function(t){var r,n,e;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,r){try{return t[r]}catch(t){}}(r=f(t),c))?n:a?u(r):"Object"==(e=u(r))&&i(r.callee)?"Arguments":e}},function(t,r,n){var e=n(0).TypeError;t.exports=function(t){if(null==t)throw e("Can't call method on "+t);return t}},function(t,r,n){var e=n(19);t.exports=Array.isArray||function(t){return"Array"==e(t)}},function(t,r,n){var e=n(29),o=n(40);(t.exports=function(t,r){return o[t]||(o[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.19.3",mode:e?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(t,r,n){var e=n(0),o=n(2),i=n(51),u=e.TypeError;t.exports=function(t){if(o(t))return t;throw u(i(t)+" is not a function")}},function(t,r,n){var e=n(1),o=0,i=Math.random(),u=e(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+u(++o+i,36)}},function(t,r,n){var e=n(64),o=n(46).concat("length","prototype");r.f=Object.getOwnPropertyNames||function(t){return e(t,o)}},function(t,r,n){var e=n(1),o=n(2),i=n(40),u=e(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return u(t)}),t.exports=i.inspectSource},function(t,r,n){var e=n(0),o=n(13),i=n(2),u=n(25),c=n(59),f=e.Object;t.exports=c?function(t){return"symbol"==typeof t}:function(t){var r=o("Symbol");return i(r)&&u(r.prototype,f(t))}},function(t,r,n){var e=n(0),o=n(41),i=e["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=i},function(t,r,n){var e=n(0),o=Object.defineProperty;t.exports=function(t,r){try{o(e,t,{value:r,configurable:!0,writable:!0})}catch(n){e[t]=r}return r}},function(t,r){var n=Math.ceil,e=Math.floor;t.exports=function(t){var r=+t;return r!=r||0===r?0:(r>0?e:n)(r)}},function(t,r,n){var e={};e[n(4)("toStringTag")]="z",t.exports="[object z]"===String(e)},function(t,r,n){var e=n(0),o=n(8),i=e.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},function(t,r,n){var e=n(47),o=n(3);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41}))},function(t,r){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,r,n){var e,o,i=n(0),u=n(78),c=i.process,f=i.Deno,a=c&&c.versions||f&&f.version,s=a&&a.v8;s&&(o=(e=s.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!o&&u&&(!(e=u.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=u.match(/Chrome\/(\d+)/))&&(o=+e[1]),t.exports=o},function(t,r,n){var e=n(9).f,o=n(5),i=n(4)("toStringTag");t.exports=function(t,r,n){t&&!o(t=n?t:t.prototype,i)&&e(t,i,{configurable:!0,value:r})}},function(t,r,n){"use strict";var e=n(26),o=n(9),i=n(20);t.exports=function(t,r,n){var u=e(r);u in t?o.f(t,u,i(0,n)):t[u]=n}},function(t,r,n){var e=n(35);t.exports=function(t,r){var n=t[r];return null==n?void 0:e(n)}},function(t,r,n){var e=n(0).String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},function(t,r,n){var e=n(1),o=n(35),i=e(e.bind);t.exports=function(t,r){return o(t),void 0===r?t:i?i(t,r):function(){return t.apply(r,arguments)}}},function(t,r,n){var e=n(1),o=n(3),i=n(2),u=n(31),c=n(13),f=n(38),a=function(){},s=[],p=c("Reflect","construct"),l=/^\s*(?:class|function)\b/,v=e(l.exec),y=!l.exec(a),d=function(t){if(!i(t))return!1;try{return p(a,s,t),!0}catch(t){return!1}};t.exports=!p||o((function(){var t;return d(d.call)||!d(Object)||!d((function(){t=!0}))||t}))?function(t){if(!i(t))return!1;switch(u(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return y||!!v(l,f(t))}:d},function(t,r,n){var e=n(0),o=n(1),i=n(3),u=n(19),c=e.Object,f=o("".split);t.exports=i((function(){return!c("z").propertyIsEnumerable(0)}))?function(t){return"String"==u(t)?f(t,""):c(t)}:c},function(t,r,n){var e=n(7),o=n(5),i=Function.prototype,u=e&&Object.getOwnPropertyDescriptor,c=o(i,"name"),f=c&&"something"===function(){}.name,a=c&&(!e||e&&u(i,"name").configurable);t.exports={EXISTS:c,PROPER:f,CONFIGURABLE:a}},function(t,r,n){var e=n(42),o=Math.max,i=Math.min;t.exports=function(t,r){var n=e(t);return n<0?o(n+r,0):i(n,r)}},function(t,r,n){var e=n(52),o=n(1),i=n(54),u=n(15),c=n(17),f=n(70),a=o([].push),s=function(t){var r=1==t,n=2==t,o=3==t,s=4==t,p=6==t,l=7==t,v=5==t||p;return function(y,d,h,g){for(var b,x,m=u(y),O=i(m),S=e(d,h),w=c(O),E=0,j=g||f,T=r?j(y,w):n||l?j(y,0):void 0;w>E;E++)if((v||E in O)&&(x=S(b=O[E],E,m),t))if(r)T[E]=x;else if(x)switch(t){case 3:return!0;case 5:return b;case 6:return E;case 2:a(T,b)}else switch(t){case 4:return!1;case 7:a(T,b)}return p?-1:o||s?s:T}};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,r,n){var e=n(64),o=n(46);t.exports=Object.keys||function(t){return e(t,o)}},function(t,r,n){var e=n(45);t.exports=e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,r,n){var e=n(7),o=n(3),i=n(44);t.exports=!e&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(t,r,n){"use strict";var e=n(12),o=n(106),i=n(27),u=n(21),c=n(67),f=u.set,a=u.getterFor("Array Iterator");t.exports=c(Array,"Array",(function(t,r){f(this,{type:"Array Iterator",target:e(t),index:0,kind:r})}),(function(){var t=a(this),r=t.target,n=t.kind,e=t.index++;return!r||e>=r.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:e,done:!1}:"values"==n?{value:r[e],done:!1}:{value:[e,r[e]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(t,r,n){"use strict";var e={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!e.call({1:2},1);r.f=i?function(t){var r=o(this,t);return!!r&&r.enumerable}:e},function(t,r,n){var e=n(0),o=n(5),i=n(2),u=n(15),c=n(30),f=n(102),a=c("IE_PROTO"),s=e.Object,p=s.prototype;t.exports=f?s.getPrototypeOf:function(t){var r=u(t);if(o(r,a))return r[a];var n=r.constructor;return i(n)&&r instanceof n?n.prototype:r instanceof s?p:null}},function(t,r,n){var e=n(1),o=n(5),i=n(12),u=n(83).indexOf,c=n(23),f=e([].push);t.exports=function(t,r){var n,e=i(t),a=0,s=[];for(n in e)!o(c,n)&&o(e,n)&&f(s,n);for(;r.length>a;)o(e,n=r[a++])&&(~u(s,n)||f(s,n));return s}},function(t,r){r.f=Object.getOwnPropertySymbols},function(t,r,n){var e=n(43),o=n(14),i=n(101);e||o(Object.prototype,"toString",i,{unsafe:!0})},function(t,r,n){"use strict";var e=n(6),o=n(11),i=n(29),u=n(55),c=n(2),f=n(108),a=n(63),s=n(75),p=n(48),l=n(16),v=n(14),y=n(4),d=n(27),h=n(77),g=u.PROPER,b=u.CONFIGURABLE,x=h.IteratorPrototype,m=h.BUGGY_SAFARI_ITERATORS,O=y("iterator"),S=function(){return this};t.exports=function(t,r,n,u,y,h,w){f(n,r,u);var E,j,T,P=function(t){if(t===y&&k)return k;if(!m&&t in L)return L[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},A=r+" Iterator",_=!1,L=t.prototype,I=L[O]||L["@@iterator"]||y&&L[y],k=!m&&I||P(y),F="Array"==r&&L.entries||I;if(F&&(E=a(F.call(new t)))!==Object.prototype&&E.next&&(i||a(E)===x||(s?s(E,x):c(E[O])||v(E,O,S)),p(E,A,!0,!0),i&&(d[A]=S)),g&&"values"==y&&I&&"values"!==I.name&&(!i&&b?l(L,"name","values"):(_=!0,k=function(){return o(I,this)})),y)if(j={values:P("values"),keys:h?k:P("keys"),entries:P("entries")},w)for(T in j)(m||_||!(T in L))&&v(L,T,j[T]);else e({target:r,proto:!0,forced:m||_},j);return i&&!w||L[O]===k||v(L,O,k,{name:y}),d[r]=k,j}},function(t,r,n){var e=n(5),o=n(82),i=n(24),u=n(9);t.exports=function(t,r){for(var n=o(r),c=u.f,f=i.f,a=0;a<n.length;a++){var s=n[a];e(t,s)||c(t,s,f(r,s))}}},function(t,r,n){var e=n(3),o=n(2),i=/#|\.prototype\./,u=function(t,r){var n=f[c(t)];return n==s||n!=a&&(o(r)?e(r):!!r)},c=u.normalize=function(t){return String(t).replace(i,".").toLowerCase()},f=u.data={},a=u.NATIVE="N",s=u.POLYFILL="P";t.exports=u},function(t,r,n){var e=n(100);t.exports=function(t,r){return new(e(t))(0===r?0:r)}},function(t,r,n){"use strict";var e=n(57).forEach,o=n(79)("forEach");t.exports=o?[].forEach:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}},function(t,r){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,r,n){var e=n(44)("span").classList,o=e&&e.constructor&&e.constructor.prototype;t.exports=o===Object.prototype?void 0:o},function(t,r,n){var e=n(3),o=n(4),i=n(47),u=o("species");t.exports=function(t){return i>=51||!e((function(){var r=[];return(r.constructor={})[u]=function(){return{foo:1}},1!==r[t](Boolean).foo}))}},function(t,r,n){var e=n(1),o=n(10),i=n(109);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,r=!1,n={};try{(t=e(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),r=n instanceof Array}catch(t){}return function(n,e){return o(n),i(e),r?t(n,e):n.__proto__=e,n}}():void 0)},function(t,r,n){var e=n(1);t.exports=e([].slice)},function(t,r,n){"use strict";var e,o,i,u=n(3),c=n(2),f=n(18),a=n(63),s=n(14),p=n(4),l=n(29),v=p("iterator"),y=!1;[].keys&&("next"in(i=[].keys())?(o=a(a(i)))!==Object.prototype&&(e=o):y=!0),null==e||u((function(){var t={};return e[v].call(t)!==t}))?e={}:l&&(e=f(e)),c(e[v])||s(e,v,(function(){return this})),t.exports={IteratorPrototype:e,BUGGY_SAFARI_ITERATORS:y}},function(t,r,n){var e=n(13);t.exports=e("navigator","userAgent")||""},function(t,r,n){"use strict";var e=n(3);t.exports=function(t,r){var n=[][t];return!!n&&e((function(){n.call(null,r||function(){throw 1},1)}))}},function(t,r,n){"use strict";var e=n(105).charAt,o=n(22),i=n(21),u=n(67),c=i.set,f=i.getterFor("String Iterator");u(String,"String",(function(t){c(this,{type:"String Iterator",string:o(t),index:0})}),(function(){var t,r=f(this),n=r.string,o=r.index;return o>=n.length?{value:void 0,done:!0}:(t=e(n,o),r.index+=t.length,{value:t,done:!1})}))},function(t,r,n){"use strict";var e=n(6),o=n(0),i=n(13),u=n(90),c=n(11),f=n(1),a=n(29),s=n(7),p=n(45),l=n(3),v=n(5),y=n(33),d=n(2),h=n(8),g=n(25),b=n(39),x=n(10),m=n(15),O=n(12),S=n(26),w=n(22),E=n(20),j=n(18),T=n(58),P=n(37),A=n(103),_=n(65),L=n(24),I=n(9),k=n(62),F=n(76),N=n(14),R=n(34),C=n(30),M=n(23),D=n(36),G=n(4),z=n(86),U=n(89),V=n(48),W=n(21),B=n(57).forEach,K=C("hidden"),Y=G("toPrimitive"),Q=W.set,X=W.getterFor("Symbol"),H=Object.prototype,q=o.Symbol,J=q&&q.prototype,$=o.TypeError,Z=o.QObject,tt=i("JSON","stringify"),rt=L.f,nt=I.f,et=A.f,ot=k.f,it=f([].push),ut=R("symbols"),ct=R("op-symbols"),ft=R("string-to-symbol-registry"),at=R("symbol-to-string-registry"),st=R("wks"),pt=!Z||!Z.prototype||!Z.prototype.findChild,lt=s&&l((function(){return 7!=j(nt({},"a",{get:function(){return nt(this,"a",{value:7}).a}})).a}))?function(t,r,n){var e=rt(H,r);e&&delete H[r],nt(t,r,n),e&&t!==H&&nt(H,r,e)}:nt,vt=function(t,r){var n=ut[t]=j(J);return Q(n,{type:"Symbol",tag:t,description:r}),s||(n.description=r),n},yt=function(t,r,n){t===H&&yt(ct,r,n),x(t);var e=S(r);return x(n),v(ut,e)?(n.enumerable?(v(t,K)&&t[K][e]&&(t[K][e]=!1),n=j(n,{enumerable:E(0,!1)})):(v(t,K)||nt(t,K,E(1,{})),t[K][e]=!0),lt(t,e,n)):nt(t,e,n)},dt=function(t,r){x(t);var n=O(r),e=T(n).concat(xt(n));return B(e,(function(r){s&&!c(ht,n,r)||yt(t,r,n[r])})),t},ht=function(t){var r=S(t),n=c(ot,this,r);return!(this===H&&v(ut,r)&&!v(ct,r))&&(!(n||!v(this,r)||!v(ut,r)||v(this,K)&&this[K][r])||n)},gt=function(t,r){var n=O(t),e=S(r);if(n!==H||!v(ut,e)||v(ct,e)){var o=rt(n,e);return!o||!v(ut,e)||v(n,K)&&n[K][e]||(o.enumerable=!0),o}},bt=function(t){var r=et(O(t)),n=[];return B(r,(function(t){v(ut,t)||v(M,t)||it(n,t)})),n},xt=function(t){var r=t===H,n=et(r?ct:O(t)),e=[];return B(n,(function(t){!v(ut,t)||r&&!v(H,t)||it(e,ut[t])})),e};(p||(N(J=(q=function(){if(g(J,this))throw $("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?w(arguments[0]):void 0,r=D(t),n=function(t){this===H&&c(n,ct,t),v(this,K)&&v(this[K],r)&&(this[K][r]=!1),lt(this,r,E(1,t))};return s&&pt&&lt(H,r,{configurable:!0,set:n}),vt(r,t)}).prototype,"toString",(function(){return X(this).tag})),N(q,"withoutSetter",(function(t){return vt(D(t),t)})),k.f=ht,I.f=yt,L.f=gt,P.f=A.f=bt,_.f=xt,z.f=function(t){return vt(G(t),t)},s&&(nt(J,"description",{configurable:!0,get:function(){return X(this).description}}),a||N(H,"propertyIsEnumerable",ht,{unsafe:!0}))),e({global:!0,wrap:!0,forced:!p,sham:!p},{Symbol:q}),B(T(st),(function(t){U(t)})),e({target:"Symbol",stat:!0,forced:!p},{for:function(t){var r=w(t);if(v(ft,r))return ft[r];var n=q(r);return ft[r]=n,at[n]=r,n},keyFor:function(t){if(!b(t))throw $(t+" is not a symbol");if(v(at,t))return at[t]},useSetter:function(){pt=!0},useSimple:function(){pt=!1}}),e({target:"Object",stat:!0,forced:!p,sham:!s},{create:function(t,r){return void 0===r?j(t):dt(j(t),r)},defineProperty:yt,defineProperties:dt,getOwnPropertyDescriptor:gt}),e({target:"Object",stat:!0,forced:!p},{getOwnPropertyNames:bt,getOwnPropertySymbols:xt}),e({target:"Object",stat:!0,forced:l((function(){_.f(1)}))},{getOwnPropertySymbols:function(t){return _.f(m(t))}}),tt)&&e({target:"JSON",stat:!0,forced:!p||l((function(){var t=q();return"[null]"!=tt([t])||"{}"!=tt({a:t})||"{}"!=tt(Object(t))}))},{stringify:function(t,r,n){var e=F(arguments),o=r;if((h(r)||void 0!==t)&&!b(t))return y(r)||(r=function(t,r){if(d(o)&&(r=c(o,this,t,r)),!b(r))return r}),e[1]=r,u(tt,null,e)}});if(!J[Y]){var mt=J.valueOf;N(J,Y,(function(t){return c(mt,this)}))}V(q,"Symbol"),M[K]=!0},function(t,r,n){var e=n(13),o=n(1),i=n(37),u=n(65),c=n(10),f=o([].concat);t.exports=e("Reflect","ownKeys")||function(t){var r=i.f(c(t)),n=u.f;return n?f(r,n(t)):r}},function(t,r,n){var e=n(12),o=n(56),i=n(17),u=function(t){return function(r,n,u){var c,f=e(r),a=i(f),s=o(u,a);if(t&&n!=n){for(;a>s;)if((c=f[s++])!=c)return!0}else for(;a>s;s++)if((t||s in f)&&f[s]===n)return t||s||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},function(t,r,n){var e=n(42),o=Math.min;t.exports=function(t){return t>0?o(e(t),9007199254740991):0}},function(t,r,n){var e=n(31),o=n(50),i=n(27),u=n(4)("iterator");t.exports=function(t){if(null!=t)return o(t,u)||o(t,"@@iterator")||i[e(t)]}},function(t,r,n){var e=n(4);r.f=e},function(t,r,n){var e=n(0),o=n(11),i=n(8),u=n(39),c=n(50),f=n(98),a=n(4),s=e.TypeError,p=a("toPrimitive");t.exports=function(t,r){if(!i(t)||u(t))return t;var n,e=c(t,p);if(e){if(void 0===r&&(r="default"),n=o(e,t,r),!i(n)||u(n))return n;throw s("Can't convert object to primitive value")}return void 0===r&&(r="number"),f(t,r)}},function(t,r,n){var e=n(0),o=n(72),i=n(73),u=n(61),c=n(16),f=n(4),a=f("iterator"),s=f("toStringTag"),p=u.values,l=function(t,r){if(t){if(t[a]!==p)try{c(t,a,p)}catch(r){t[a]=p}if(t[s]||c(t,s,r),o[r])for(var n in u)if(t[n]!==u[n])try{c(t,n,u[n])}catch(r){t[n]=u[n]}}};for(var v in o)l(e[v]&&e[v].prototype,v);l(i,"DOMTokenList")},function(t,r,n){var e=n(115),o=n(5),i=n(86),u=n(9).f;t.exports=function(t){var r=e.Symbol||(e.Symbol={});o(r,t)||u(r,t,{value:i.f(t)})}},function(t,r){var n=Function.prototype,e=n.apply,o=n.bind,i=n.call;t.exports="object"==typeof Reflect&&Reflect.apply||(o?i.bind(e):function(){return i.apply(e,arguments)})},function(t,r,n){var e=n(6),o=n(7);e({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:n(9).f})},,,function(t,r,n){"use strict";var e=n(6),o=n(71);e({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},function(t,r,n){var e=n(0),o=n(72),i=n(73),u=n(71),c=n(16),f=function(t){if(t&&t.forEach!==u)try{c(t,"forEach",u)}catch(r){t.forEach=u}};for(var a in o)o[a]&&f(e[a]&&e[a].prototype);f(i)},function(t,r,n){var e=n(7),o=n(9),i=n(10),u=n(12),c=n(58);t.exports=e?Object.defineProperties:function(t,r){i(t);for(var n,e=u(r),f=c(r),a=f.length,s=0;a>s;)o.f(t,n=f[s++],e[n]);return t}},function(t,r){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,r,n){var e=n(0),o=n(11),i=n(2),u=n(8),c=e.TypeError;t.exports=function(t,r){var n,e;if("string"===r&&i(n=t.toString)&&!u(e=o(n,t)))return e;if(i(n=t.valueOf)&&!u(e=o(n,t)))return e;if("string"!==r&&i(n=t.toString)&&!u(e=o(n,t)))return e;throw c("Can't convert object to primitive value")}},function(t,r,n){var e=n(0),o=n(2),i=n(38),u=e.WeakMap;t.exports=o(u)&&/native code/.test(i(u))},function(t,r,n){var e=n(0),o=n(33),i=n(53),u=n(8),c=n(4)("species"),f=e.Array;t.exports=function(t){var r;return o(t)&&(r=t.constructor,(i(r)&&(r===f||o(r.prototype))||u(r)&&null===(r=r[c]))&&(r=void 0)),void 0===r?f:r}},function(t,r,n){"use strict";var e=n(43),o=n(31);t.exports=e?{}.toString:function(){return"[object "+o(this)+"]"}},function(t,r,n){var e=n(3);t.exports=!e((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},function(t,r,n){var e=n(19),o=n(12),i=n(37).f,u=n(107),c="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return c&&"Window"==e(t)?function(t){try{return i(t)}catch(t){return u(c)}}(t):i(o(t))}},function(t,r,n){var e=n(13);t.exports=e("document","documentElement")},function(t,r,n){var e=n(1),o=n(42),i=n(22),u=n(32),c=e("".charAt),f=e("".charCodeAt),a=e("".slice),s=function(t){return function(r,n){var e,s,p=i(u(r)),l=o(n),v=p.length;return l<0||l>=v?t?"":void 0:(e=f(p,l))<55296||e>56319||l+1===v||(s=f(p,l+1))<56320||s>57343?t?c(p,l):e:t?a(p,l,l+2):s-56320+(e-55296<<10)+65536}};t.exports={codeAt:s(!1),charAt:s(!0)}},function(t,r,n){var e=n(4),o=n(18),i=n(9),u=e("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,r,n){var e=n(0),o=n(56),i=n(17),u=n(49),c=e.Array,f=Math.max;t.exports=function(t,r,n){for(var e=i(t),a=o(r,e),s=o(void 0===n?e:n,e),p=c(f(s-a,0)),l=0;a<s;a++,l++)u(p,l,t[a]);return p.length=l,p}},function(t,r,n){"use strict";var e=n(77).IteratorPrototype,o=n(18),i=n(20),u=n(48),c=n(27),f=function(){return this};t.exports=function(t,r,n,a){var s=r+" Iterator";return t.prototype=o(e,{next:i(+!a,n)}),u(t,s,!1,!0),c[s]=f,t}},function(t,r,n){var e=n(0),o=n(2),i=e.String,u=e.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,r,n){var e=n(4),o=n(27),i=e("iterator"),u=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||u[i]===t)}},function(t,r,n){var e=n(0),o=n(11),i=n(35),u=n(10),c=n(51),f=n(85),a=e.TypeError;t.exports=function(t,r){var n=arguments.length<2?f(t):r;if(i(n))return u(o(n,t));throw a(c(t)+" is not iterable")}},function(t,r,n){var e=n(11),o=n(10),i=n(50);t.exports=function(t,r,n){var u,c;o(t);try{if(!(u=i(t,"return"))){if("throw"===r)throw n;return n}u=e(u,t)}catch(t){c=!0,u=t}if("throw"===r)throw n;if(c)throw u;return o(u),n}},function(t,r,n){var e=n(4)("iterator"),o=!1;try{var i=0,u={next:function(){return{done:!!i++}},return:function(){o=!0}};u[e]=function(){return this},Array.from(u,(function(){throw 2}))}catch(t){}t.exports=function(t,r){if(!r&&!o)return!1;var n=!1;try{var i={};i[e]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(t){}return n}},,function(t,r,n){var e=n(0);t.exports=e},function(t,r,n){var e=n(0),o=n(52),i=n(11),u=n(10),c=n(51),f=n(110),a=n(17),s=n(25),p=n(111),l=n(85),v=n(112),y=e.TypeError,d=function(t,r){this.stopped=t,this.result=r},h=d.prototype;t.exports=function(t,r,n){var e,g,b,x,m,O,S,w=n&&n.that,E=!(!n||!n.AS_ENTRIES),j=!(!n||!n.IS_ITERATOR),T=!(!n||!n.INTERRUPTED),P=o(r,w),A=function(t){return e&&v(e,"normal",t),new d(!0,t)},_=function(t){return E?(u(t),T?P(t[0],t[1],A):P(t[0],t[1])):T?P(t,A):P(t)};if(j)e=t;else{if(!(g=l(t)))throw y(c(t)+" is not iterable");if(f(g)){for(b=0,x=a(t);x>b;b++)if((m=_(t[b]))&&s(h,m))return m;return new d(!1)}e=p(t,g)}for(O=e.next;!(S=i(O,e)).done;){try{m=_(S.value)}catch(t){v(e,"throw",t)}if("object"==typeof m&&m&&s(h,m))return m}return new d(!1)}},function(t,r,n){var e=n(0),o=n(25),i=e.TypeError;t.exports=function(t,r){if(o(r,t))return t;throw i("Incorrect invocation")}},,,function(t,r,n){var e=n(6),o=n(1),i=n(23),u=n(8),c=n(5),f=n(9).f,a=n(37),s=n(103),p=n(149),l=n(36),v=n(151),y=!1,d=l("meta"),h=0,g=function(t){f(t,d,{value:{objectID:"O"+h++,weakData:{}}})},b=t.exports={enable:function(){b.enable=function(){},y=!0;var t=a.f,r=o([].splice),n={};n[d]=1,t(n).length&&(a.f=function(n){for(var e=t(n),o=0,i=e.length;o<i;o++)if(e[o]===d){r(e,o,1);break}return e},e({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:s.f}))},fastKey:function(t,r){if(!u(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!c(t,d)){if(!p(t))return"F";if(!r)return"E";g(t)}return t[d].objectID},getWeakData:function(t,r){if(!c(t,d)){if(!p(t))return!0;if(!r)return!1;g(t)}return t[d].weakData},onFreeze:function(t){return v&&y&&p(t)&&!c(t,d)&&g(t),t}};i[d]=!0},function(t,r,n){var e=n(6),o=n(3),i=n(12),u=n(24).f,c=n(7),f=o((function(){u(1)}));e({target:"Object",stat:!0,forced:!c||f,sham:!c},{getOwnPropertyDescriptor:function(t,r){return u(i(t),r)}})},function(t,r,n){var e=n(2),o=n(8),i=n(75);t.exports=function(t,r,n){var u,c;return i&&e(u=r.constructor)&&u!==n&&o(c=u.prototype)&&c!==n.prototype&&i(t,c),t}},,,,,,,,,,,,,function(t,r,n){var e=n(6),o=n(15),i=n(58);e({target:"Object",stat:!0,forced:n(3)((function(){i(1)}))},{keys:function(t){return i(o(t))}})},,,function(t,r,n){"use strict";var e=n(6),o=n(0),i=n(1),u=n(69),c=n(14),f=n(120),a=n(116),s=n(117),p=n(2),l=n(8),v=n(3),y=n(113),d=n(48),h=n(122);t.exports=function(t,r,n){var g=-1!==t.indexOf("Map"),b=-1!==t.indexOf("Weak"),x=g?"set":"add",m=o[t],O=m&&m.prototype,S=m,w={},E=function(t){var r=i(O[t]);c(O,t,"add"==t?function(t){return r(this,0===t?0:t),this}:"delete"==t?function(t){return!(b&&!l(t))&&r(this,0===t?0:t)}:"get"==t?function(t){return b&&!l(t)?void 0:r(this,0===t?0:t)}:"has"==t?function(t){return!(b&&!l(t))&&r(this,0===t?0:t)}:function(t,n){return r(this,0===t?0:t,n),this})};if(u(t,!p(m)||!(b||O.forEach&&!v((function(){(new m).entries().next()})))))S=n.getConstructor(r,t,g,x),f.enable();else if(u(t,!0)){var j=new S,T=j[x](b?{}:-0,1)!=j,P=v((function(){j.has(1)})),A=y((function(t){new m(t)})),_=!b&&v((function(){for(var t=new m,r=5;r--;)t[x](r,r);return!t.has(-0)}));A||((S=r((function(t,r){s(t,O);var n=h(new m,t,S);return null!=r&&a(r,n[x],{that:n,AS_ENTRIES:g}),n}))).prototype=O,O.constructor=S),(P||_)&&(E("delete"),E("has"),g&&E("get")),(_||T)&&E(x),b&&O.clear&&delete O.clear}return w[t]=S,e({global:!0,forced:S!=m},w),d(S,t),b||n.setStrong(S,t,g),S}},function(t,r,n){"use strict";var e=n(9).f,o=n(18),i=n(140),u=n(52),c=n(117),f=n(116),a=n(67),s=n(141),p=n(7),l=n(120).fastKey,v=n(21),y=v.set,d=v.getterFor;t.exports={getConstructor:function(t,r,n,a){var s=t((function(t,e){c(t,v),y(t,{type:r,index:o(null),first:void 0,last:void 0,size:0}),p||(t.size=0),null!=e&&f(e,t[a],{that:t,AS_ENTRIES:n})})),v=s.prototype,h=d(r),g=function(t,r,n){var e,o,i=h(t),u=b(t,r);return u?u.value=n:(i.last=u={index:o=l(r,!0),key:r,value:n,previous:e=i.last,next:void 0,removed:!1},i.first||(i.first=u),e&&(e.next=u),p?i.size++:t.size++,"F"!==o&&(i.index[o]=u)),t},b=function(t,r){var n,e=h(t),o=l(r);if("F"!==o)return e.index[o];for(n=e.first;n;n=n.next)if(n.key==r)return n};return i(v,{clear:function(){for(var t=h(this),r=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete r[n.index],n=n.next;t.first=t.last=void 0,p?t.size=0:this.size=0},delete:function(t){var r=h(this),n=b(this,t);if(n){var e=n.next,o=n.previous;delete r.index[n.index],n.removed=!0,o&&(o.next=e),e&&(e.previous=o),r.first==n&&(r.first=e),r.last==n&&(r.last=o),p?r.size--:this.size--}return!!n},forEach:function(t){for(var r,n=h(this),e=u(t,arguments.length>1?arguments[1]:void 0);r=r?r.next:n.first;)for(e(r.value,r.key,this);r&&r.removed;)r=r.previous},has:function(t){return!!b(this,t)}}),i(v,n?{get:function(t){var r=b(this,t);return r&&r.value},set:function(t,r){return g(this,0===t?0:t,r)}}:{add:function(t){return g(this,t=0===t?0:t,t)}}),p&&e(v,"size",{get:function(){return h(this).size}}),s},setStrong:function(t,r,n){var e=r+" Iterator",o=d(r),i=d(e);a(t,r,(function(t,r){y(this,{type:e,target:t,state:o(t),kind:r,last:void 0})}),(function(){for(var t=i(this),r=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==r?{value:n.key,done:!1}:"values"==r?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),s(r)}}},function(t,r,n){var e=n(14);t.exports=function(t,r,n){for(var o in r)e(t,o,r[o],n);return t}},function(t,r,n){"use strict";var e=n(13),o=n(9),i=n(4),u=n(7),c=i("species");t.exports=function(t){var r=e(t),n=o.f;u&&r&&!r[c]&&n(r,c,{configurable:!0,get:function(){return this}})}},,,function(t,r,n){"use strict";var e=n(6),o=n(57).filter;e({target:"Array",proto:!0,forced:!n(74)("filter")},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,r,n){var e=n(6),o=n(7),i=n(82),u=n(12),c=n(24),f=n(49);e({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(t){for(var r,n,e=u(t),o=c.f,a=i(e),s={},p=0;a.length>p;)void 0!==(n=o(e,r=a[p++]))&&f(s,r,n);return s}})},function(t,r,n){var e=n(6),o=n(7);e({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperties:n(96)})},,function(t,r,n){"use strict";n(138)("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n(139))},function(t,r,n){var e=n(3),o=n(8),i=n(19),u=n(150),c=Object.isExtensible,f=e((function(){c(1)}));t.exports=f||u?function(t){return!!o(t)&&((!u||"ArrayBuffer"!=i(t))&&(!c||c(t)))}:c},function(t,r,n){var e=n(3);t.exports=e((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))},function(t,r,n){var e=n(3);t.exports=!e((function(){return Object.isExtensible(Object.preventExtensions({}))}))},,function(t,r,n){"use strict";var e=n(6),o=n(1),i=n(83).indexOf,u=n(79),c=o([].indexOf),f=!!c&&1/c([1],1,-0)<0,a=u("indexOf");e({target:"Array",proto:!0,forced:f||!a},{indexOf:function(t){var r=arguments.length>1?arguments[1]:void 0;return f?c(this,t,r)||0:i(this,t,r)}})},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,r,n){"use strict";n.r(r),n.d(r,"toTurboData",(function(){return f})),n.d(r,"toLogicflowData",(function(){return a})),n.d(r,"TurboAdapter",(function(){return s}));var e;n(61),n(148),n(66),n(80),n(88),n(94),n(95),n(135),n(153),n(91),n(81),n(144),n(121),n(145),n(146);function o(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);r&&(e=e.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),n.push.apply(n,e)}return n}function i(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?o(Object(n),!0).forEach((function(r){u(t,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))}))}return t}function u(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}function c(t){switch(t){case"bpmn:sequenceFlow":return e.SEQUENCE_FLOW;case"bpmn:startEvent":return e.START_EVENT;case"bpmn:endEvent":return e.END_EVENT;case"bpmn:userTask":return e.USER_TASK;case"bpmn:exclusiveGateway":return e.EXCLUSIVE_GATEWAY;default:return t}}function f(t){var r=new Map,n={flowElementList:[]};return t.nodes.forEach((function(t){var e=function(t){var r=t.id,n=t.type,e=t.x,o=t.y,u=t.text,f=void 0===u?"":u,a=t.properties;return{incoming:[],outgoing:[],dockers:[],type:c(t.type),properties:i(i({},a),{},{name:f&&f.value||"",x:e,y:o,text:f,logicFlowType:n}),key:r}}(t);n.flowElementList.push(e),r.set(t.id,e)})),t.edges.forEach((function(t){var e=function(t){var r=t.id,n=t.type,e=t.sourceNodeId,o=t.targetNodeId,u=t.startPoint,f=t.endPoint,a=t.pointsList,s=t.text,p=void 0===s?"":s,l=t.properties;return{incoming:[e],outgoing:[o],type:c(n),dockers:[],properties:i(i({},l),{},{name:p&&p.value||"",text:p,startPoint:u,endPoint:f,pointsList:a,logicFlowType:n}),key:r}}(t);r.get(t.sourceNodeId).outgoing.push(e.key),r.get(t.targetNodeId).incoming.push(e.key),n.flowElementList.push(e)})),n}function a(t){var r={nodes:[],edges:[]},n=t.flowElementList;return n&&n.length>0&&n.forEach((function(t){if(t.type===e.SEQUENCE_FLOW){var n=function(t){var r=t.incoming,n=t.outgoing,e=t.properties,o=t.key,i=e.text,u=e.startPoint,c=e.endPoint,f=e.pointsList,a={id:o,type:e.logicFlowType,sourceNodeId:r[0],targetNodeId:n[0],text:i,startPoint:u,endPoint:c,pointsList:f,properties:{}},s=["startPoint","endPoint","pointsList","text","logicFlowType"];return Object.keys(t.properties).forEach((function(r){-1===s.indexOf(r)&&(a.properties[r]=t.properties[r])})),a}(t);r.edges.push(n)}else{var o=function(t){var r=t.properties,n=t.key,e=r.x,o=r.y,i=r.text,u={id:n,type:r.logicFlowType,x:e,y:o,text:i,properties:{}},c=["x","y","text","logicFlowType"];return Object.keys(t.properties).forEach((function(r){-1===c.indexOf(r)&&(u.properties[r]=t.properties[r])})),u}(t);r.nodes.push(o)}})),r}!function(t){t[t.SEQUENCE_FLOW=1]="SEQUENCE_FLOW",t[t.START_EVENT=2]="START_EVENT",t[t.END_EVENT=3]="END_EVENT",t[t.USER_TASK=4]="USER_TASK",t[t.EXCLUSIVE_GATEWAY=6]="EXCLUSIVE_GATEWAY"}(e||(e={}));var s={pluginName:"TurboAdapter",install:function(t){t.adapterIn=this.adapterIn,t.adapterOut=this.adapterOut},shapeConfigMap:new Map,setCustomShape:function(t,r){this.shapeConfigMap.set(t,r)},adapterOut:function(t){if(t)return f(t)},adapterIn:function(t){if(t)return a(t)}};r.default=s}])}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@logicflow/extension",
3
- "version": "1.0.0-alpha.1",
3
+ "version": "1.0.0-alpha.10",
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.0.0-alpha.1",
35
+ "@logicflow/core": "^1.0.0-alpha.10",
36
36
  "ids": "^1.0.0",
37
37
  "preact": "^10.4.8"
38
38
  },
@@ -4,11 +4,9 @@ interface IProps {
4
4
  index: number;
5
5
  x: number;
6
6
  y: number;
7
- nodeModel: BaseNodeModel;
7
+ model: BaseNodeModel;
8
8
  graphModel: GraphModel;
9
9
  style?: CSSStyleDeclaration;
10
- hoverStyle?: CSSStyleDeclaration;
11
- edgeStyle?: CSSStyleDeclaration;
12
10
  }
13
11
  declare class Control extends Component<IProps> {
14
12
  dragHandler: Function;
@@ -1,15 +1,8 @@
1
1
  import { h, Component } from 'preact';
2
2
  import { BaseNodeModel, GraphModel } from '@logicflow/core';
3
3
  interface IProps {
4
- x: number;
5
- y: number;
6
- width: number;
7
- height: number;
8
- nodeModel: BaseNodeModel;
4
+ model: BaseNodeModel;
9
5
  graphModel: GraphModel;
10
- style?: CSSStyleDeclaration;
11
- hoverStyle?: CSSStyleDeclaration;
12
- edgeStyle?: CSSStyleDeclaration;
13
6
  }
14
7
  declare class ControlGroup extends Component<IProps> {
15
8
  constructor();
@@ -1,10 +1,11 @@
1
1
  import { h, DiamondNode, DiamondNodeModel } from '@logicflow/core';
2
2
  declare class DiamondResizeModel extends DiamondNodeModel {
3
+ getOutlineStyle(): import("@logicflow/core/types/constant/DefaultTheme").OutlineTheme;
3
4
  setAttributes(): void;
4
5
  }
5
6
  declare class DiamondResizeView extends DiamondNode {
6
- getControlGroup(attributes: any): h.JSX.Element;
7
- getResizeShape(arrt: any): h.JSX.Element;
7
+ getControlGroup(): h.JSX.Element;
8
+ getResizeShape(): h.JSX.Element;
8
9
  getShape(): h.JSX.Element;
9
10
  }
10
11
  declare const EllipseResize: {
@@ -4,11 +4,13 @@ declare class EllipseResizeModel extends EllipseNodeModel {
4
4
  minHeight: number;
5
5
  maxWidth: number;
6
6
  maxHeight: number;
7
+ constructor(data: any, graphModel: any);
8
+ getOutlineStyle(): import("@logicflow/core/types/constant/DefaultTheme").OutlineTheme;
7
9
  setAttributes(): void;
8
10
  }
9
11
  declare class EllipseResizeView extends EllipseNode {
10
- getControlGroup(attributes: any): h.JSX.Element;
11
- getResizeShape(arrt: any): h.JSX.Element;
12
+ getControlGroup(): h.JSX.Element;
13
+ getResizeShape(): h.JSX.Element;
12
14
  getShape(): h.JSX.Element;
13
15
  }
14
16
  declare const EllipseResize: {
@@ -4,10 +4,11 @@ declare class RectResizeModel extends RectNodeModel {
4
4
  minHeight: number;
5
5
  maxWidth: number;
6
6
  maxHeight: number;
7
+ getOutlineStyle(): import("@logicflow/core/types/constant/DefaultTheme").OutlineTheme;
7
8
  setAttributes(): void;
8
9
  }
9
10
  declare class RectResizeView extends RectNode {
10
- getControlGroup(attributes: any): h.JSX.Element;
11
+ getControlGroup(): h.JSX.Element;
11
12
  getResizeShape(): h.JSX.Element;
12
13
  getShape(): h.JSX.Element;
13
14
  }
@@ -2,6 +2,7 @@ import { CircleNode, CircleNodeModel } from '@logicflow/core';
2
2
  declare class EndEventModel extends CircleNodeModel {
3
3
  static extendKey: string;
4
4
  constructor(data: any, graphModel: any);
5
+ setAttributes(): void;
5
6
  getConnectedSourceRules(): import("@logicflow/core").ConnectRule[];
6
7
  }
7
8
  declare class EndEventView extends CircleNode {
@@ -2,35 +2,11 @@ import { CircleNode, CircleNodeModel } from '@logicflow/core';
2
2
  declare class StartEventModel extends CircleNodeModel {
3
3
  static extendKey: string;
4
4
  constructor(data: any, graphModel: any);
5
+ setAttributes(): void;
5
6
  getConnectedTargetRules(): import("@logicflow/core").ConnectRule[];
6
7
  }
7
8
  declare class StartEventView extends CircleNode {
8
9
  static extendKey: string;
9
- getAttributes(): {
10
- r: number;
11
- width: number;
12
- height: number;
13
- fill: string;
14
- fillOpacity?: number;
15
- strokeWidth?: number;
16
- stroke: string;
17
- strokeOpacity?: number;
18
- opacity?: number;
19
- outlineColor?: string;
20
- id: string;
21
- properties: Record<string, any>;
22
- type: string;
23
- x: number;
24
- y: number;
25
- isSelected: boolean;
26
- isHovered: boolean;
27
- text: {
28
- [key: string]: any;
29
- x: number;
30
- y: number;
31
- value: string;
32
- };
33
- };
34
10
  }
35
11
  declare const StartEvent: {
36
12
  type: string;
package/types/index.d.ts CHANGED
@@ -14,4 +14,3 @@ export * from './materials/group';
14
14
  export * from './NodeResize';
15
15
  export * from './tools/flow-path';
16
16
  export * from './tools/auto-layout';
17
- export * from './materials/node-selection';
@@ -24,18 +24,6 @@ declare class GroupNode extends RectNode {
24
24
  * 重新toFront,阻止其置顶
25
25
  */
26
26
  toFront(): void;
27
- getShapeStyle(): {
28
- radius: number;
29
- width: number;
30
- height: number;
31
- fill: string;
32
- fillOpacity?: number;
33
- strokeWidth?: number;
34
- stroke: string;
35
- strokeOpacity?: number;
36
- opacity?: number;
37
- outlineColor?: string;
38
- };
39
27
  }
40
28
  declare const _default: {
41
29
  type: string;
@@ -15,13 +15,13 @@ declare class AutoLayout {
15
15
  layout(data: any, path: any): void;
16
16
  private setNodePosition;
17
17
  /**
18
- * 1. 处理连线上的文本
19
- * 2. 主干节点之间直接的连线
18
+ * 1. 处理边上的文本
19
+ * 2. 主干节点之间直接的边
20
20
  * 3. 一个节点被多个连接作为目标节点,合理分配锚点位置。
21
21
  */
22
22
  private getEdgeDataPoints;
23
23
  /**
24
- * 获取连线的连接节点相对位置。
24
+ * 获取边的连接节点相对位置。
25
25
  * source一定在target左边。
26
26
  * 1. 如果source和target在同一x, y坐标内容。
27
27
  * 2. 如果source在target左上方。
@@ -29,7 +29,7 @@ declare class AutoLayout {
29
29
  */
30
30
  private getRelativePosition;
31
31
  /**
32
- * 获取连线节点图形的宽高。
32
+ * 获取边节点图形的宽高。
33
33
  */
34
34
  private getShape;
35
35
  private formatData;
@@ -1,267 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- extendStatics(d, b);
11
- function __() { this.constructor = d; }
12
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
13
- };
14
- })();
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.NodeSelection = void 0;
17
- var lodash_es_1 = require("lodash-es");
18
- var core_1 = require("@logicflow/core");
19
- var NodeSelectionView = /** @class */ (function (_super) {
20
- __extends(NodeSelectionView, _super);
21
- function NodeSelectionView() {
22
- var _this = _super !== null && _super.apply(this, arguments) || this;
23
- _this.d = 10;
24
- return _this;
25
- }
26
- NodeSelectionView.prototype.getShapeStyle = function () {
27
- // 设置边框为虚线
28
- var style = _super.prototype.getShapeStyle.call(this);
29
- // @ts-ignore
30
- style.strokeDashArray = '10 5';
31
- return style;
32
- };
33
- NodeSelectionView.prototype.getLabelShape = function () {
34
- var attributes = _super.prototype.getAttributes.call(this);
35
- var x = attributes.x, // 元素中心点
36
- y = attributes.y, // 元素中心点
37
- width = attributes.width, height = attributes.height, stroke = attributes.stroke, id = attributes.id, _a = attributes.properties, labelText = _a.label_text, disabledDelete = _a.disabled_delete;
38
- return core_1.h('svg', {
39
- x: x - width / 2,
40
- y: y - height / 2,
41
- style: 'z-index: 0; background: none; overflow: auto;',
42
- }, labelText ? core_1.h('text', {
43
- x: 0,
44
- y: -5,
45
- width: 50,
46
- height: 24,
47
- fontSize: '16px',
48
- fill: stroke,
49
- }, '方案') : '', disabledDelete ? '' : core_1.h('text', {
50
- x: labelText ? 50 : 0,
51
- y: -5,
52
- width: 50,
53
- height: 24,
54
- fontSize: '24px',
55
- cursor: 'pointer',
56
- fill: stroke,
57
- onclick: this.handleCustomDeleteIconClick.bind(this, id),
58
- }, 'x'));
59
- };
60
- NodeSelectionView.prototype.getShape = function () {
61
- var attributes = _super.prototype.getAttributes.call(this);
62
- var x = attributes.x, // 元素中心点
63
- y = attributes.y, // 元素中心点
64
- width = attributes.width, height = attributes.height, fill = attributes.fill, stroke = attributes.stroke, strokeWidth = attributes.strokeWidth, strokeDashArray = attributes.strokeDashArray, id = attributes.id;
65
- return core_1.h('g', {}, [
66
- core_1.h('rect', {
67
- x: x - width / 2,
68
- y: y - height / 2,
69
- fill: fill,
70
- stroke: stroke,
71
- strokeWidth: strokeWidth,
72
- width: width,
73
- height: height,
74
- strokeDashArray: strokeDashArray,
75
- id: id,
76
- }),
77
- this.getLabelShape(),
78
- ]);
79
- };
80
- NodeSelectionView.prototype.toFront = function () { };
81
- /**
82
- * 点击删除
83
- * @param id
84
- */
85
- NodeSelectionView.prototype.handleCustomDeleteIconClick = function (id) {
86
- var graphModel = this.props.graphModel;
87
- graphModel.deleteNode(id);
88
- };
89
- return NodeSelectionView;
90
- }(core_1.PolygonNode));
91
- var NodeSelectionModel = /** @class */ (function (_super) {
92
- __extends(NodeSelectionModel, _super);
93
- function NodeSelectionModel() {
94
- var _this = _super !== null && _super.apply(this, arguments) || this;
95
- _this.d = 10;
96
- return _this;
97
- }
98
- NodeSelectionModel.prototype.setAttributes = function () {
99
- var _this = this;
100
- // 默认不显示
101
- this.points = [];
102
- this.text = {
103
- value: '',
104
- x: 0,
105
- y: 0,
106
- draggable: false,
107
- editable: false,
108
- };
109
- this.stroke = this.properties.active_color || '#008000';
110
- this.zIndex = 0;
111
- this.draggable = false;
112
- this.anchorsOffset = [[0, 0]];
113
- if (this.properties.node_selection_ids.length > 1) {
114
- setTimeout(function () {
115
- _this.updatePointsByNodes(_this.properties.node_selection_ids);
116
- });
117
- }
118
- };
119
- NodeSelectionModel.prototype.getAnchorsByOffset = function () {
120
- return [];
121
- };
122
- /**
123
- * 更新points
124
- * @param points
125
- */
126
- NodeSelectionModel.prototype.updatePoints = function (points) {
127
- this.points = points;
128
- };
129
- /**
130
- * 更新x y
131
- */
132
- NodeSelectionModel.prototype.updateCoordinate = function (_a) {
133
- var x = _a.x, y = _a.y;
134
- this.x = x;
135
- this.y = y;
136
- };
137
- /**
138
- * 更新points
139
- */
140
- NodeSelectionModel.prototype.updatePointsByNodes = function (nodesIds) {
141
- var _this = this;
142
- // TODO: 临时方案矩形
143
- var points = [];
144
- var minX = Infinity;
145
- var minY = Infinity;
146
- var maxX = -Infinity;
147
- var maxY = -Infinity;
148
- nodesIds.forEach(function (id) {
149
- var model = _this.graphModel.getNodeModel(id);
150
- if (!model)
151
- return;
152
- var width = model.width, height = model.height, x = model.x, y = model.y;
153
- minX = Math.min(minX, x - width / 2 - _this.d);
154
- minY = Math.min(minY, y - height / 2 - _this.d);
155
- maxX = Math.max(maxX, x + width / 2 + _this.d);
156
- maxY = Math.max(maxY, y + height / 2 + _this.d);
157
- });
158
- points.push([minX, minY], [maxX, minY], [maxX, maxY], [minX, maxY]);
159
- if ([minX, minY, maxX, maxY].some(function (n) { return Math.abs(n) === Infinity; }))
160
- return;
161
- this.updatePoints(points);
162
- this.updateCoordinate({ x: ((maxX + minX) / 2), y: (maxY + minY) / 2 });
163
- };
164
- return NodeSelectionModel;
165
- }(core_1.PolygonNodeModel));
166
- var NodeSelection = /** @class */ (function () {
167
- function NodeSelection(_a) {
168
- var lf = _a.lf;
169
- this.lf = null; // lf 实例
170
- this.selectNodes = []; // 选择的nodes
171
- this.currentClickNode = null; // 当前点击的节点,选中的节点是无序的
172
- this.d = 10;
173
- lf.register({
174
- type: 'node-selection',
175
- view: NodeSelectionView,
176
- model: NodeSelectionModel,
177
- });
178
- }
179
- Object.defineProperty(NodeSelection.prototype, "selectNodesIds", {
180
- /**
181
- * 获取所选node的id数组
182
- */
183
- get: function () {
184
- return this.selectNodes.map(function (node) { return node.id; });
185
- },
186
- enumerable: false,
187
- configurable: true
188
- });
189
- /**
190
- * 新建node-selection节点
191
- */
192
- NodeSelection.prototype.addNodeSelection = function () {
193
- var node = this.lf.addNode({
194
- type: 'node-selection',
195
- text: '',
196
- properties: {
197
- node_selection_ids: this.selectNodesIds,
198
- },
199
- });
200
- node.updatePointsByNodes(this.selectNodesIds);
201
- };
202
- /**
203
- * 更新node-selection节点
204
- */
205
- NodeSelection.prototype.updateNodeSelection = function () {
206
- var nodeSelection = this.getNodeSelection();
207
- if (!nodeSelection)
208
- return;
209
- this.lf.setProperties(nodeSelection.id, {
210
- node_selection_ids: this.selectNodesIds,
211
- });
212
- this.lf.getNodeModel(nodeSelection.id).updatePointsByNodes(this.selectNodesIds);
213
- };
214
- /**
215
- * 获取所属的node-selection
216
- */
217
- NodeSelection.prototype.getNodeSelection = function () {
218
- var _this = this;
219
- var ids = this.selectNodesIds;
220
- var rawData = this.lf.getGraphRawData();
221
- var oldIds = ids.filter(function (id) { return id !== _this.currentClickNode.id; });
222
- return rawData.nodes.find(function (node) {
223
- if (node.type === 'node-selection') {
224
- var nodeSelectionIds_1 = lodash_es_1.default.get(node, 'properties.node_selection_ids', []);
225
- return oldIds.every(function (id) { return nodeSelectionIds_1.includes(id); });
226
- }
227
- return false;
228
- });
229
- };
230
- NodeSelection.prototype.render = function (lf) {
231
- var _this = this;
232
- this.lf = lf;
233
- lf.on('node:click', function (val) {
234
- if (!val.e.shiftKey || val.data.type === 'node-selection')
235
- return;
236
- _this.currentClickNode = val.data;
237
- // 如果selectNodesIds中已存在此节点,则取消选中此节点
238
- var isUnSelected = false;
239
- if (_this.selectNodesIds.includes(val.data.id)) {
240
- _this.lf.getNodeModel(val.data.id).setSelected(false);
241
- isUnSelected = true;
242
- }
243
- // 获取所有被选中的节点,获取到的数组是无序的
244
- var nodes = lf.getSelectElements(true).nodes;
245
- // 使用插件时判断是否允许使用node-selection
246
- if (lf.disableNodeSelection && lf.disableNodeSelection(nodes)) {
247
- return;
248
- }
249
- _this.selectNodes = nodes;
250
- if (_this.selectNodes.length === 1) {
251
- if (!isUnSelected) {
252
- _this.addNodeSelection();
253
- }
254
- else {
255
- _this.updateNodeSelection();
256
- }
257
- }
258
- else if (_this.selectNodes.length > 1) {
259
- _this.updateNodeSelection();
260
- }
261
- });
262
- };
263
- NodeSelection.pluginName = 'node-selection';
264
- return NodeSelection;
265
- }());
266
- exports.NodeSelection = NodeSelection;
267
- exports.default = NodeSelection;