@szjy/workflow 0.1.12 → 0.1.13
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.mjs +244 -244
- package/dist/index.umd.js +3 -3
- package/dist/packages/components/Workflow/slots.d.ts +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
@@ -4049,7 +4049,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
4049
4049
|
}
|
4050
4050
|
`;function sY(e){return e&&e.getRootNode&&e.getRootNode()}function HNe(e){return L$()?sY(e)instanceof ShadowRoot:!1}function UNe(e){return HNe(e)?sY(e):null}var WNe=function(){var t=JK(),n=t.prefixCls,r=t.csp,i=d.getCurrentInstance(),o=VNe;n&&(o=o.replace(/anticon/g,n.value)),d.nextTick(function(){if(L$()){var a=i.vnode.el,s=UNe(a);LNe(o,"@ant-design-vue-icons",{prepend:!0,csp:r.value,attachTo:s})}})},qNe=["icon","primaryColor","secondaryColor"];function GNe(e,t){if(e==null)return{};var n=KNe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function KNe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function H6(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){YNe(e,i,n[i])})}return e}function YNe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var X2=d.reactive({primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1});function ZNe(e){var t=e.primaryColor,n=e.secondaryColor;X2.primaryColor=t,X2.secondaryColor=n||oY(t),X2.calculated=!!n}function XNe(){return H6({},X2)}var mm=function(t,n){var r=H6({},t,n.attrs),i=r.icon,o=r.primaryColor,a=r.secondaryColor,s=GNe(r,qNe),l=X2;if(o&&(l={primaryColor:o,secondaryColor:a||oY(o)}),zNe(iY(i),"icon should be icon definiton, but got ".concat(i)),!iY(i))return null;var c=i;return c&&typeof c.icon=="function"&&(c=H6({},c,{icon:c.icon(l.primaryColor,l.secondaryColor)})),z$(c.icon,"svg-".concat(c.name),H6({},s,{"data-icon":c.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};mm.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String},mm.inheritAttrs=!1,mm.displayName="IconBase",mm.getTwoToneColors=XNe,mm.setTwoToneColors=ZNe;const V$=mm;function JNe(e,t){return nDe(e)||tDe(e,t)||eDe(e,t)||QNe()}function QNe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
4051
4051
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function eDe(e,t){if(e){if(typeof e=="string")return lY(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lY(e,t)}}function lY(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function tDe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,a,s;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw s}}return r}}function nDe(e){if(Array.isArray(e))return e}function cY(e){var t=aY(e),n=JNe(t,2),r=n[0],i=n[1];return V$.setTwoToneColors({primaryColor:r,secondaryColor:i})}function rDe(){var e=V$.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var iDe=d.defineComponent({name:"InsertStyles",setup:function(){return WNe(),function(){return null}}}),oDe=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function aDe(e,t){return uDe(e)||cDe(e,t)||lDe(e,t)||sDe()}function sDe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
4052
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lDe(e,t){if(e){if(typeof e=="string")return uY(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uY(e,t)}}function uY(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function cDe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,a,s;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw s}}return r}}function uDe(e){if(Array.isArray(e))return e}function dY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){J2(e,i,n[i])})}return e}function J2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dDe(e,t){if(e==null)return{};var n=fDe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function fDe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}cY(ONe.primary);var gm=function(t,n){var r,i=dY({},t,n.attrs),o=i.class,a=i.icon,s=i.spin,l=i.rotate,c=i.tabindex,u=i.twoToneColor,f=i.onClick,h=dDe(i,oDe),p=JK(),m=p.prefixCls,b=p.rootClassName,v=(r={},J2(r,b.value,!!b.value),J2(r,m.value,!0),J2(r,"".concat(m.value,"-").concat(a.name),!!a.name),J2(r,"".concat(m.value,"-spin"),!!s||a.name==="loading"),r),g=c;g===void 0&&f&&(g=-1);var y=l?{msTransform:"rotate(".concat(l,"deg)"),transform:"rotate(".concat(l,"deg)")}:void 0,w=aY(u),x=aDe(w,2),C=x[0],_=x[1];return d.createVNode("span",dY({role:"img","aria-label":a.name},h,{onClick:f,class:[v,o],tabindex:g}),[d.createVNode(V$,{icon:a,primaryColor:C,secondaryColor:_,style:y},null),d.createVNode(iDe,null,null)])};gm.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:[String,Array]},gm.displayName="AntdIcon",gm.inheritAttrs=!1,gm.getTwoToneColor=rDe,gm.setTwoToneColor=cY;const fo=gm;var hDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M952 474H829.8C812.5 327.6 696.4 211.5 550 194.2V72c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v122.2C327.6 211.5 211.5 327.6 194.2 474H72c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h122.2C211.5 696.4 327.6 812.5 474 829.8V952c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V829.8C696.4 812.5 812.5 696.4 829.8 550H952c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zM512 756c-134.8 0-244-109.2-244-244s109.2-244 244-244 244 109.2 244 244-109.2 244-244 244z"}},{tag:"path",attrs:{d:"M512 392c-32.1 0-62.1 12.4-84.8 35.2-22.7 22.7-35.2 52.7-35.2 84.8s12.5 62.1 35.2 84.8C449.9 619.4 480 632 512 632s62.1-12.5 84.8-35.2C619.4 574.1 632 544 632 512s-12.5-62.1-35.2-84.8A118.57 118.57 0 00512 392z"}}]},name:"aim",theme:"outlined"};const pDe=hDe;function fY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){mDe(e,i,n[i])})}return e}function mDe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var H$=function(t,n){var r=fY({},t,n.attrs);return d.createVNode(fo,fY({},r,{icon:pDe}),null)};H$.displayName="AimOutlined",H$.inheritAttrs=!1;const gDe=H$;var vDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M855 160.1l-189.2 23.5c-6.6.8-9.3 8.8-4.7 13.5l54.7 54.7-153.5 153.5a8.03 8.03 0 000 11.3l45.1 45.1c3.1 3.1 8.2 3.1 11.3 0l153.6-153.6 54.7 54.7a7.94 7.94 0 0013.5-4.7L863.9 169a7.9 7.9 0 00-8.9-8.9zM416.6 562.3a8.03 8.03 0 00-11.3 0L251.8 715.9l-54.7-54.7a7.94 7.94 0 00-13.5 4.7L160.1 855c-.6 5.2 3.7 9.5 8.9 8.9l189.2-23.5c6.6-.8 9.3-8.8 4.7-13.5l-54.7-54.7 153.6-153.6c3.1-3.1 3.1-8.2 0-11.3l-45.2-45z"}}]},name:"arrows-alt",theme:"outlined"};const bDe=vDe;function hY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){yDe(e,i,n[i])})}return e}function yDe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var U$=function(t,n){var r=hY({},t,n.attrs);return d.createVNode(fo,hY({},r,{icon:bDe}),null)};U$.displayName="ArrowsAltOutlined",U$.inheritAttrs=!1;const gu=U$;var xDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M296 250c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm184 144H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-48 458H208V148h560v320c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm440-88H728v-36.6c46.3-13.8 80-56.6 80-107.4 0-61.9-50.1-112-112-112s-112 50.1-112 112c0 50.7 33.7 93.6 80 107.4V764H520c-8.8 0-16 7.2-16 16v152c0 8.8 7.2 16 16 16h352c8.8 0 16-7.2 16-16V780c0-8.8-7.2-16-16-16zM646 620c0-27.6 22.4-50 50-50s50 22.4 50 50-22.4 50-50 50-50-22.4-50-50zm180 266H566v-60h260v60z"}}]},name:"audit",theme:"outlined"};const wDe=xDe;function pY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){CDe(e,i,n[i])})}return e}function CDe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var W$=function(t,n){var r=pY({},t,n.attrs);return d.createVNode(fo,pY({},r,{icon:wDe}),null)};W$.displayName="AuditOutlined",W$.inheritAttrs=!1;const Q2=W$;var _De={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"};const SDe=_De;function mY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){EDe(e,i,n[i])})}return e}function EDe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var q$=function(t,n){var r=mY({},t,n.attrs);return d.createVNode(fo,mY({},r,{icon:SDe}),null)};q$.displayName="ClockCircleOutlined",q$.inheritAttrs=!1;const kDe=q$;var $De={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M180 176h-60c-4.4 0-8 3.6-8 8v656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V184c0-4.4-3.6-8-8-8zm724 0h-60c-4.4 0-8 3.6-8 8v656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V184c0-4.4-3.6-8-8-8zM785.3 504.3L657.7 403.6a7.23 7.23 0 00-11.7 5.7V476H378v-62.8c0-6-7-9.4-11.7-5.7L238.7 508.3a7.14 7.14 0 000 11.3l127.5 100.8c4.7 3.7 11.7.4 11.7-5.7V548h268v62.8c0 6 7 9.4 11.7 5.7l127.5-100.8c3.8-2.9 3.8-8.5.2-11.4z"}}]},name:"column-width",theme:"outlined"};const TDe=$De;function gY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){RDe(e,i,n[i])})}return e}function RDe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var G$=function(t,n){var r=gY({},t,n.attrs);return d.createVNode(fo,gY({},r,{icon:TDe}),null)};G$.displayName="ColumnWidthOutlined",G$.inheritAttrs=!1;const PDe=G$;var ODe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};const jDe=ODe;function vY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){MDe(e,i,n[i])})}return e}function MDe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var K$=function(t,n){var r=vY({},t,n.attrs);return d.createVNode(fo,vY({},r,{icon:jDe}),null)};K$.displayName="EditOutlined",K$.inheritAttrs=!1;const ADe=K$;var NDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"};const DDe=NDe;function bY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){IDe(e,i,n[i])})}return e}function IDe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Y$=function(t,n){var r=bY({},t,n.attrs);return d.createVNode(fo,bY({},r,{icon:DDe}),null)};Y$.displayName="FileTextOutlined",Y$.inheritAttrs=!1;const U6=Y$;var LDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 597.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V597.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V642h182.9v156zm9.6-236.6l-9.5 16.6h-183l-9.5-16.6L212.7 226h598.6L613 561.4z"}}]},name:"filter",theme:"outlined"};const BDe=LDe;function yY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){FDe(e,i,n[i])})}return e}function FDe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Z$=function(t,n){var r=yY({},t,n.attrs);return d.createVNode(fo,yY({},r,{icon:BDe}),null)};Z$.displayName="FilterOutlined",Z$.inheritAttrs=!1;const zDe=Z$;var VDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 512h-56c-4.4 0-8 3.6-8 8v320H184V184h320c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V520c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M355.9 534.9L354 653.8c-.1 8.9 7.1 16.2 16 16.2h.4l118-2.9c2-.1 4-.9 5.4-2.3l415.9-415c3.1-3.1 3.1-8.2 0-11.3L785.4 114.3c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-415.8 415a8.3 8.3 0 00-2.3 5.6zm63.5 23.6L779.7 199l45.2 45.1-360.5 359.7-45.7 1.1.7-46.4z"}}]},name:"form",theme:"outlined"};const HDe=VDe;function xY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){UDe(e,i,n[i])})}return e}function UDe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var X$=function(t,n){var r=xY({},t,n.attrs);return d.createVNode(fo,xY({},r,{icon:HDe}),null)};X$.displayName="FormOutlined",X$.inheritAttrs=!1;const WDe=X$;var qDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M841 370c3-3.3 2.7-8.3-.6-11.3a8.24 8.24 0 00-5.3-2.1h-72.6c-2.4 0-4.6 1-6.1 2.8L633.5 504.6a7.96 7.96 0 01-13.4-1.9l-63.5-141.3a7.9 7.9 0 00-7.3-4.7H380.7l.9-4.7 8-42.3c10.5-55.4 38-81.4 85.8-81.4 18.6 0 35.5 1.7 48.8 4.7l14.1-66.8c-22.6-4.7-35.2-6.1-54.9-6.1-103.3 0-156.4 44.3-175.9 147.3l-9.4 49.4h-97.6c-3.8 0-7.1 2.7-7.8 6.4L181.9 415a8.07 8.07 0 007.8 9.7H284l-89 429.9a8.07 8.07 0 007.8 9.7H269c3.8 0 7.1-2.7 7.8-6.4l89.7-433.1h135.8l68.2 139.1c1.4 2.9 1 6.4-1.2 8.8l-180.6 203c-2.9 3.3-2.6 8.4.7 11.3 1.5 1.3 3.4 2 5.3 2h72.7c2.4 0 4.6-1 6.1-2.8l123.7-146.7c2.8-3.4 7.9-3.8 11.3-1 .9.8 1.6 1.7 2.1 2.8L676.4 784c1.3 2.8 4.1 4.7 7.3 4.7h64.6a8.02 8.02 0 007.2-11.5l-95.2-198.9c-1.4-2.9-.9-6.4 1.3-8.8L841 370z"}}]},name:"function",theme:"outlined"};const GDe=qDe;function wY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){KDe(e,i,n[i])})}return e}function KDe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var J$=function(t,n){var r=wY({},t,n.attrs);return d.createVNode(fo,wY({},r,{icon:GDe}),null)};J$.displayName="FunctionOutlined",J$.inheritAttrs=!1;const YDe=J$;var ZDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"};const XDe=ZDe;function CY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){JDe(e,i,n[i])})}return e}function JDe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Q$=function(t,n){var r=CY({},t,n.attrs);return d.createVNode(fo,CY({},r,{icon:XDe}),null)};Q$.displayName="InfoCircleOutlined",Q$.inheritAttrs=!1;const QDe=Q$;var eIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"};const tIe=eIe;function _Y(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){nIe(e,i,n[i])})}return e}function nIe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var eT=function(t,n){var r=_Y({},t,n.attrs);return d.createVNode(fo,_Y({},r,{icon:tIe}),null)};eT.displayName="LockOutlined",eT.inheritAttrs=!1;const rIe=eT;var iIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"menu",theme:"outlined"};const oIe=iIe;function SY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){aIe(e,i,n[i])})}return e}function aIe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tT=function(t,n){var r=SY({},t,n.attrs);return d.createVNode(fo,SY({},r,{icon:oIe}),null)};tT.displayName="MenuOutlined",tT.inheritAttrs=!1;const sIe=tT;var lIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 000-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0014.4 7z"}}]},name:"menu-unfold",theme:"outlined"};const cIe=lIe;function EY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){uIe(e,i,n[i])})}return e}function uIe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var nT=function(t,n){var r=EY({},t,n.attrs);return d.createVNode(fo,EY({},r,{icon:cIe}),null)};nT.displayName="MenuUnfoldOutlined",nT.inheritAttrs=!1;const dIe=nT;var fIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M719.4 499.1l-296.1-215A15.9 15.9 0 00398 297v430c0 13.1 14.8 20.5 25.3 12.9l296.1-215a15.9 15.9 0 000-25.8zm-257.6 134V390.9L628.5 512 461.8 633.1z"}}]},name:"play-circle",theme:"outlined"};const hIe=fIe;function kY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){pIe(e,i,n[i])})}return e}function pIe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rT=function(t,n){var r=kY({},t,n.attrs);return d.createVNode(fo,kY({},r,{icon:hIe}),null)};rT.displayName="PlayCircleOutlined",rT.inheritAttrs=!1;const mIe=rT;var gIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};const vIe=gIe;function $Y(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){bIe(e,i,n[i])})}return e}function bIe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var iT=function(t,n){var r=$Y({},t,n.attrs);return d.createVNode(fo,$Y({},r,{icon:vIe}),null)};iT.displayName="PlusOutlined",iT.inheritAttrs=!1;const W6=iT;var yIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656zM492 400h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0 144h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0 144h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zM340 368a40 40 0 1080 0 40 40 0 10-80 0zm0 144a40 40 0 1080 0 40 40 0 10-80 0zm0 144a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"profile",theme:"outlined"};const xIe=yIe;function TY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){wIe(e,i,n[i])})}return e}function wIe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var oT=function(t,n){var r=TY({},t,n.attrs);return d.createVNode(fo,TY({},r,{icon:xIe}),null)};oT.displayName="ProfileOutlined",oT.inheritAttrs=!1;const CIe=oT;var _Ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M788 705.9V192c0-8.8-7.2-16-16-16H602v-68.8c0-6-7-9.4-11.7-5.7L462.7 202.3a7.14 7.14 0 000 11.3l127.5 100.8c4.7 3.7 11.7.4 11.7-5.7V240h114v465.9c-44.2 15-76 56.9-76 106.1 0 61.8 50.2 112 112 112s112-50.2 112-112c.1-49.2-31.7-91-75.9-106.1zM752 860a48.01 48.01 0 010-96 48.01 48.01 0 010 96zM384 212c0-61.8-50.2-112-112-112s-112 50.2-112 112c0 49.2 31.8 91 76 106.1V706c-44.2 15-76 56.9-76 106.1 0 61.8 50.2 112 112 112s112-50.2 112-112c0-49.2-31.8-91-76-106.1V318.1c44.2-15.1 76-56.9 76-106.1zm-160 0a48.01 48.01 0 0196 0 48.01 48.01 0 01-96 0zm96 600a48.01 48.01 0 01-96 0 48.01 48.01 0 0196 0z"}}]},name:"pull-request",theme:"outlined"};const SIe=_Ie;function RY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){EIe(e,i,n[i])})}return e}function EIe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var aT=function(t,n){var r=RY({},t,n.attrs);return d.createVNode(fo,RY({},r,{icon:SIe}),null)};aT.displayName="PullRequestOutlined",aT.inheritAttrs=!1;const kIe=aT;var $Ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M881.7 187.4l-45.1-45.1a8.03 8.03 0 00-11.3 0L667.8 299.9l-54.7-54.7a7.94 7.94 0 00-13.5 4.7L576.1 439c-.6 5.2 3.7 9.5 8.9 8.9l189.2-23.5c6.6-.8 9.3-8.8 4.7-13.5l-54.7-54.7 157.6-157.6c3-3 3-8.1-.1-11.2zM439 576.1l-189.2 23.5c-6.6.8-9.3 8.9-4.7 13.5l54.7 54.7-157.5 157.5a8.03 8.03 0 000 11.3l45.1 45.1c3.1 3.1 8.2 3.1 11.3 0l157.6-157.6 54.7 54.7a7.94 7.94 0 0013.5-4.7L447.9 585a7.9 7.9 0 00-8.9-8.9z"}}]},name:"shrink",theme:"outlined"};const TIe=$Ie;function PY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){RIe(e,i,n[i])})}return e}function RIe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var sT=function(t,n){var r=PY({},t,n.attrs);return d.createVNode(fo,PY({},r,{icon:TIe}),null)};sT.displayName="ShrinkOutlined",sT.inheritAttrs=!1;const eb=sT;var PIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M625.9 115c-5.9 0-11.9 1.6-17.4 5.3L254 352H90c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h164l354.5 231.7c5.5 3.6 11.6 5.3 17.4 5.3 16.7 0 32.1-13.3 32.1-32.1V147.1c0-18.8-15.4-32.1-32.1-32.1zM586 803L293.4 611.7l-18-11.7H146V424h129.4l17.9-11.7L586 221v582zm348-327H806c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16h128c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16zm-41.9 261.8l-110.3-63.7a15.9 15.9 0 00-21.7 5.9l-19.9 34.5c-4.4 7.6-1.8 17.4 5.8 21.8L856.3 800a15.9 15.9 0 0021.7-5.9l19.9-34.5c4.4-7.6 1.7-17.4-5.8-21.8zM760 344a15.9 15.9 0 0021.7 5.9L892 286.2c7.6-4.4 10.2-14.2 5.8-21.8L878 230a15.9 15.9 0 00-21.7-5.9L746 287.8a15.99 15.99 0 00-5.8 21.8L760 344z"}}]},name:"sound",theme:"outlined"};const OIe=PIe;function OY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){jIe(e,i,n[i])})}return e}function jIe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var lT=function(t,n){var r=OY({},t,n.attrs);return d.createVNode(fo,OY({},r,{icon:OIe}),null)};lT.displayName="SoundOutlined",lT.inheritAttrs=!1;const MIe=lT;var AIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"};const NIe=AIe;function jY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){DIe(e,i,n[i])})}return e}function DIe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var cT=function(t,n){var r=jY({},t,n.attrs);return d.createVNode(fo,jY({},r,{icon:NIe}),null)};cT.displayName="UserOutlined",cT.inheritAttrs=!1;const IIe=cT;var LIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M892 772h-80v-80c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v80h-80c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h80v80c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-80h80c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM373.5 498.4c-.9-8.7-1.4-17.5-1.4-26.4 0-15.9 1.5-31.4 4.3-46.5.7-3.6-1.2-7.3-4.5-8.8-13.6-6.1-26.1-14.5-36.9-25.1a127.54 127.54 0 01-38.7-95.4c.9-32.1 13.8-62.6 36.3-85.6 24.7-25.3 57.9-39.1 93.2-38.7 31.9.3 62.7 12.6 86 34.4 7.9 7.4 14.7 15.6 20.4 24.4 2 3.1 5.9 4.4 9.3 3.2 17.6-6.1 36.2-10.4 55.3-12.4 5.6-.6 8.8-6.6 6.3-11.6-32.5-64.3-98.9-108.7-175.7-109.9-110.8-1.7-203.2 89.2-203.2 200 0 62.8 28.9 118.8 74.2 155.5-31.8 14.7-61.1 35-86.5 60.4-54.8 54.7-85.8 126.9-87.8 204a8 8 0 008 8.2h56.1c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5 29.4-29.4 65.4-49.8 104.7-59.7 3.8-1.1 6.4-4.8 5.9-8.8zM824 472c0-109.4-87.9-198.3-196.9-200C516.3 270.3 424 361.2 424 472c0 62.8 29 118.8 74.2 155.5a300.95 300.95 0 00-86.4 60.4C357 742.6 326 814.8 324 891.8a8 8 0 008 8.2h56c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5C505.8 695.7 563 672 624 672c110.4 0 200-89.5 200-200zm-109.5 90.5C690.3 586.7 658.2 600 624 600s-66.3-13.3-90.5-37.5a127.26 127.26 0 01-37.5-91.8c.3-32.8 13.4-64.5 36.3-88 24-24.6 56.1-38.3 90.4-38.7 33.9-.3 66.8 12.9 91 36.6 24.8 24.3 38.4 56.8 38.4 91.4-.1 34.2-13.4 66.3-37.6 90.5z"}}]},name:"usergroup-add",theme:"outlined"};const BIe=LIe;function MY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){FIe(e,i,n[i])})}return e}function FIe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var uT=function(t,n){var r=MY({},t,n.attrs);return d.createVNode(fo,MY({},r,{icon:BIe}),null)};uT.displayName="UsergroupAddOutlined",uT.inheritAttrs=!1;const AY=uT,zIe=d.defineComponent({name:"CollapseTitle",props:{title:{type:String,default:""}}}),VIe={class:"collapse-title"},HIe={class:"title-content"};function UIe(e,t,n,r,i,o){return d.openBlock(),d.createElementBlock("div",VIe,[d.renderSlot(e.$slots,"default",{},void 0,!0),d.createElementVNode("span",HIe,d.toDisplayString(e.title),1)])}const Mo=Ba(zIe,[["render",UIe],["__scopeId","data-v-98e2b0c6"]]),Ea=Ba(d.defineComponent({__name:"HasEdit",setup(e){return(t,n)=>(d.openBlock(),d.createBlock(d.unref(ADe),{class:"edit-icon"}))}}),[["__scopeId","data-v-3c62969a"]]),tb={TOOLBAR_PREFIX:"TOOLBAR_PREFIX",USER_CHOOSER_SUFFIX:"USER_CHOOSER_SUFFIX",FORMID_CHOOSER_SUFFIX:"FORMID_CHOOSER_SUFFIX"},WIe=Object.values(tb),dT={},NY=e=>`SLOT_${e}`,qIe=()=>{const{proxy:e}=d.getCurrentInstance(),{$slots:t}=e;for(const n in t)if(WIe.indexOf(n)>-1){const r=NY(n);d.provide(r,t[n]),dT[n]=!0}d.provide("slotsRegistry",dT)},GIe=e=>dT[e],fT=e=>GIe(e)?d.inject(NY(e)):null,KIe={class:"user-search-info"},YIe={class:"left-side"},ZIe=d.createElementVNode("div",{class:"title"}," 发起人的 ",-1),XIe=d.defineComponent({__name:"UserSearchInfo",props:{searchInfo:{type:Object,default:WAe}},emits:["update:searchInfo"],setup(e,{emit:t}){const n=e,r=t,i=d.ref(n.searchInfo),o=s=>{i.value.searchWithCompanyAndTitleinfo.searchWithCompanyType=s,r("update:searchInfo",i.value)},a=s=>{i.value.searchWithCompanyAndTitleinfo.titleList=s,r("update:searchInfo",i.value)};return(s,l)=>{const c=d.resolveComponent("n-select"),u=d.resolveComponent("n-dynamic-input");return d.openBlock(),d.createElementBlock("div",KIe,[d.createElementVNode("div",YIe,[ZIe,d.createVNode(c,{class:"company-type-select",value:i.value.searchWithCompanyAndTitleinfo.searchWithCompanyType,"onUpdate:value":[l[0]||(l[0]=f=>i.value.searchWithCompanyAndTitleinfo.searchWithCompanyType=f),o],options:d.unref(UAe)},null,8,["value","options"])]),d.createVNode(u,{value:i.value.searchWithCompanyAndTitleinfo.titleList,"onUpdate:value":[l[1]||(l[1]=f=>i.value.searchWithCompanyAndTitleinfo.titleList=f),a],placeholder:"请输入职称"},null,8,["value"])])}}}),JIe={class:"user-model-form"},QIe={class:"user-type-options"},DY=d.defineComponent({__name:"UserForm",props:{user:{type:Object,default:tl}},emits:["update:user"],setup(e,{emit:t}){const n=d.ref(d.markRaw(fT(tb.USER_CHOOSER_SUFFIX))),r=u=>{c.value.userId=u},i=d.ref(d.markRaw(fT(tb.FORMID_CHOOSER_SUFFIX))),o=u=>{c.value.formFieldId=u},a=e,s=d.computed(()=>KAe(c.value.userIdType)),l=t,c=d.ref(a.user);return d.watch(c,u=>{l("update:user",u)},{deep:!0}),(u,f)=>{const h=d.resolveComponent("n-radio"),p=d.resolveComponent("n-radio-group"),m=d.resolveComponent("n-form-item"),b=d.resolveComponent("n-input"),v=d.resolveComponent("n-dynamic-input"),g=d.resolveComponent("n-select"),y=d.resolveComponent("n-form");return d.openBlock(),d.createElementBlock("div",JIe,[d.createVNode(y,{model:c.value,"label-placement":"left","label-width":"auto","require-mark-placement":"right-hanging",size:"small",style:{maxWidth:"640px",marginTop:"10px"}},{default:d.withCtx(()=>[d.createVNode(m,{label:"用户类型",path:"userIdType"},{default:d.withCtx(()=>[d.createElementVNode("div",QIe,[d.createVNode(p,{value:c.value.userIdType,"onUpdate:value":f[0]||(f[0]=w=>c.value.userIdType=w),name:"modeSelect",style:{"margin-bottom":"10px"}},{default:d.withCtx(()=>[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(d.unref(HAe),w=>(d.openBlock(),d.createBlock(h,{key:w.value,value:w.value,label:w.label},null,8,["value","label"]))),128))]),_:1},8,["value"])])]),_:1}),c.value.userIdType===d.unref(Qr).USER_ID?(d.openBlock(),d.createBlock(m,{key:0,label:"用户 id",path:"userId"},{default:d.withCtx(()=>[d.createVNode(b,{value:c.value.userId,"onUpdate:value":f[1]||(f[1]=w=>c.value.userId=w),placeholder:"请输入用户 id",type:"textarea",autosize:{minRows:2},onKeydown:f[2]||(f[2]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},{suffix:d.withCtx(()=>[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(n.value),{userId:c.value.userId,onChange:r},null,40,["userId"]))]),_:1},8,["value"])]),_:1})):d.createCommentVNode("",!0),c.value.userIdType===d.unref(Qr).USER_ID_LIST?(d.openBlock(),d.createBlock(m,{key:1,label:"用户列表",path:"userIdList"},{default:d.withCtx(()=>[d.createVNode(v,{value:c.value.userIdList,"onUpdate:value":f[3]||(f[3]=w=>c.value.userIdList=w),placeholder:"请输入人员ID"},null,8,["value"])]),_:1})):d.createCommentVNode("",!0),c.value.userIdType===d.unref(Qr).FORM_FIELD?(d.openBlock(),d.createBlock(m,{key:2,label:"表单字段 id",path:"formFieldId"},{default:d.withCtx(()=>[d.createVNode(b,{value:c.value.formFieldId,"onUpdate:value":f[4]||(f[4]=w=>c.value.formFieldId=w),placeholder:"表单字段 id",type:"textarea",autosize:{minRows:2},onKeydown:f[5]||(f[5]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},{suffix:d.withCtx(()=>[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(i.value),{userId:c.value.userId,onChange:o},null,40,["userId"]))]),_:1},8,["value"])]),_:1})):d.createCommentVNode("",!0),c.value.userIdType===d.unref(Qr).GET_SINGLE_USER||c.value.userIdType===d.unref(Qr).GET_MULTI_USERS?(d.openBlock(),d.createBlock(m,{key:3,label:"节点 ID",path:"outputTaskDefKey"},{default:d.withCtx(()=>[d.createVNode(g,{value:c.value.outputTaskDefKey,"onUpdate:value":f[6]||(f[6]=w=>c.value.outputTaskDefKey=w),placeholder:"请选择节点",options:s.value,onKeydown:f[7]||(f[7]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},null,8,["value","options"])]),_:1})):d.createCommentVNode("",!0),c.value.userIdType===d.unref(Qr).CREATOR_RELATED?(d.openBlock(),d.createBlock(m,{key:4,label:"相关性",path:"userSearchInfo"},{default:d.withCtx(()=>[d.createVNode(XIe,{"search-info":c.value.userSearchInfo,"onUpdate:searchInfo":f[8]||(f[8]=w=>c.value.userSearchInfo=w)},null,8,["search-info"])]),_:1})):d.createCommentVNode("",!0)]),_:1},8,["model"])])}}}),eLe={class:"user-selector-container"},tLe=Ba(d.defineComponent({__name:"UserSelector",props:{user:{type:Object,required:!0},label:{type:String,default:"配置"},dialogTitle:{type:String,default:"人员选择"}},emits:["update:user","on-ok"],setup(e,{emit:t}){const n=e,r=d.ref({...n.user}),i=d.ref(n.label),o=t,a=g=>{o("update:user",g)},s=d.ref(!1),l=()=>{s.value=!0},c=d.ref(!1),u=d.ref(600),f=d.ref(600),h=d.computed(()=>({width:`${u.value}px`,height:`${f.value}px`})),p=d.ref(d.markRaw(gu));function m(){c.value=!c.value,c.value?(u.value=window.innerWidth,f.value=window.innerHeight,p.value=eb):(u.value=600,f.value=600,p.value=gu)}const b=()=>{a(r.value),o("on-ok",r.value),s.value=!1},v=()=>d.createVNode("div",{class:"json-dialog-title-container"},[d.createVNode("span",null,[n.dialogTitle]),d.createVNode("span",null,[d.createVNode(p.value,{onClick:m,class:"edit-icon"},null)])]);return(g,y)=>{const w=d.resolveComponent("n-button"),x=d.resolveComponent("n-modal");return d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createVNode(x,{show:s.value,"onUpdate:show":y[0]||(y[0]=C=>s.value=C),"mask-closable":!1,preset:"dialog",title:v,"show-icon":!1,style:d.normalizeStyle(h.value)},{action:d.withCtx(()=>[d.createVNode(w,{size:"small",type:"info",onClick:b},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(g.$t("panel.confirm")),1)]),_:1})]),default:d.withCtx(()=>[d.createElementVNode("div",eLe,[d.createVNode(DY,{user:r.value},null,8,["user"])])]),_:1},8,["show","style"]),d.createVNode(w,{type:"info",onClick:l},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(i.value),1)]),_:1})],64)}}}),[["__scopeId","data-v-6c9aa68b"]]),IY=d.defineComponent({__name:"UserJSONDesc",props:{userJson:{type:Object,default:tl}},setup(e){const t=e,n=d.computed(()=>t.userJson);return(r,i)=>{const o=d.resolveComponent("n-descriptions-item"),a=d.resolveComponent("n-descriptions");return d.openBlock(),d.createBlock(a,{"label-placement":"left",column:1,bordered:"",size:"small",style:{"margin-top":"10px"}},{default:d.withCtx(()=>[d.createVNode(o,null,{label:d.withCtx(()=>[d.createTextVNode(" 类型 ")]),default:d.withCtx(()=>[d.createTextVNode(" "+d.toDisplayString(n.value.userIdType),1)]),_:1}),n.value.userIdType===d.unref(Qr).USER_ID?(d.openBlock(),d.createBlock(o,{key:0},{label:d.withCtx(()=>[d.createTextVNode(" 用户 ID ")]),default:d.withCtx(()=>[d.createTextVNode(" "+d.toDisplayString(n.value.userId),1)]),_:1})):d.createCommentVNode("",!0),n.value.userIdType===d.unref(Qr).FORM_FIELD?(d.openBlock(),d.createBlock(o,{key:1},{label:d.withCtx(()=>[d.createTextVNode(" 表单字段 ")]),default:d.withCtx(()=>[d.createTextVNode(" "+d.toDisplayString(n.value.formFieldId),1)]),_:1})):d.createCommentVNode("",!0),n.value.userIdType===d.unref(Qr).USER_ID_LIST?(d.openBlock(),d.createBlock(o,{key:2},{label:d.withCtx(()=>[d.createTextVNode(" 用户 ID 列表 ")]),default:d.withCtx(()=>{var s;return[d.createTextVNode(" "+d.toDisplayString((s=n.value.userIdList)==null?void 0:s.join(",")),1)]}),_:1})):d.createCommentVNode("",!0),n.value.userIdType===d.unref(Qr).GET_SINGLE_USER||n.value.userIdType===d.unref(Qr).GET_MULTI_USERS?(d.openBlock(),d.createBlock(o,{key:3},{label:d.withCtx(()=>[d.createTextVNode(" 节点 ID ")]),default:d.withCtx(()=>[d.createTextVNode(" "+d.toDisplayString(n.value.outputTaskDefKey),1)]),_:1})):d.createCommentVNode("",!0),n.value.userIdType===d.unref(Qr).CREATOR_RELATED?(d.openBlock(),d.createBlock(o,{key:4},{label:d.withCtx(()=>[d.createTextVNode(" 与发起人相关 ")]),default:d.withCtx(()=>{var s,l,c,u,f;return[d.createTextVNode(" "+d.toDisplayString(d.unref(K2)((l=(s=n.value.userSearchInfo)==null?void 0:s.searchWithCompanyAndTitleinfo)==null?void 0:l.searchWithCompanyType))+" 的 "+d.toDisplayString((f=(u=(c=n.value.userSearchInfo)==null?void 0:c.searchWithCompanyAndTitleinfo)==null?void 0:u.titleList)==null?void 0:f.join(",")),1)]}),_:1})):d.createCommentVNode("",!0)]),_:1})}}});function nLe(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(i){i(n)}),(r=e.get("*"))&&r.slice().map(function(i){i(t,n)})}}}const lf=nLe();function Go(e){const t=e,n=()=>{lf.off("element-update",t)};return d.onMounted(()=>{t(),lf.off("element-update",t),lf.on("element-update",t)}),d.onBeforeUnmount(()=>n()),[t,n]}const vm=d.defineComponent({__name:"UserConfigProperty",props:{label:{type:String,default:"获取用户的配置"},getUserValue:{type:Function,default:dNe},updateUserValue:{type:Function,default:fNe}},setup(e){const t=e,n=d.ref({...tl,outputTaskDefKey:""}),r=Zt(Vt),i=()=>{n.value=t.getUserValue(r.activeElement)},o=a=>{t.updateUserValue(r.activeElement,a)};return Go(i),(a,s)=>{const l=d.resolveComponent("n-collapse-item");return d.openBlock(),d.createBlock(l,null,d.createSlots({header:d.withCtx(()=>[d.createVNode(Mo,{title:t.label},{default:d.withCtx(()=>[d.createVNode(d.unref(Q2))]),_:1},8,["title"])]),default:d.withCtx(()=>[d.createElementVNode("div",null,[d.createVNode(tLe,{user:n.value,"onUpdate:user":s[0]||(s[0]=c=>n.value=c),onOnOk:o},null,8,["user"]),d.createVNode(IY,{"user-json":n.value},null,8,["user-json"])])]),_:2},[n.value.userId?{name:"header-extra",fn:d.withCtx(()=>[d.createVNode(Ea)]),key:"0"}:void 0]),1024)}}}),rLe=d.defineComponent({__name:"property",setup(e){return(t,n)=>(d.openBlock(),d.createBlock(vm,{label:"获取公司的配置"}))}}),iLe="data:image/svg+xml,%3csvg%20t='1710141728893'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='12073'%20width='30'%20height='30'%3e%3cpath%20d='M352.256%20550.4c-65.792%200-119.296-53.504-119.296-119.296s53.504-119.296%20119.296-119.296c65.792%200%20119.296%2053.504%20119.296%20119.296S418.048%20550.4%20352.256%20550.4z%20m0-177.408c-32%200-57.856%2026.112-57.856%2057.856s26.112%2057.856%2057.856%2057.856%2057.856-26.112%2057.856-57.856-25.856-57.856-57.856-57.856z'%20fill='%23040000'%20p-id='12074'%3e%3c/path%3e%3cpath%20d='M506.368%20704.512c-16.896%200-30.72-13.824-30.72-30.72%200-68.096-55.296-123.392-123.392-123.392s-123.392%2055.296-123.392%20123.392c0%2016.896-13.824%2030.72-30.72%2030.72s-30.72-13.824-30.72-30.72c0-101.888%2082.944-184.832%20184.832-184.832%20101.888%200%20184.832%2082.944%20184.832%20184.832%200%2016.896-13.824%2030.72-30.72%2030.72zM820.48%20403.712h-209.664c-16.896%200-30.72-13.824-30.72-30.72s13.824-30.72%2030.72-30.72h209.664c16.896%200%2030.72%2013.824%2030.72%2030.72s-13.824%2030.72-30.72%2030.72zM820.48%20539.392h-209.664c-16.896%200-30.72-13.824-30.72-30.72s13.824-30.72%2030.72-30.72h209.664c16.896%200%2030.72%2013.824%2030.72%2030.72s-13.824%2030.72-30.72%2030.72zM820.48%20675.072h-209.664c-16.896%200-30.72-13.824-30.72-30.72s13.824-30.72%2030.72-30.72h209.664c16.896%200%2030.72%2013.824%2030.72%2030.72s-13.824%2030.72-30.72%2030.72z'%20fill='%23040000'%20p-id='12075'%3e%3c/path%3e%3cpath%20d='M883.456%20872.448H147.456c-56.576%200-102.4-45.824-102.4-102.4V252.16c0-56.576%2045.824-102.4%20102.4-102.4h736c56.576%200%20102.4%2045.824%20102.4%20102.4v517.888c0%2056.32-45.824%20102.4-102.4%20102.4zM147.456%20211.2c-22.528%200-40.96%2018.432-40.96%2040.96v517.888c0%2022.528%2018.432%2040.96%2040.96%2040.96h736c22.528%200%2040.96-18.432%2040.96-40.96V252.16c0-22.528-18.432-40.96-40.96-40.96H147.456z'%20fill='%23060001'%20p-id='12076'%3e%3c/path%3e%3c/svg%3e",oLe=(e,t)=>n=>{const r=t.createShape({type:"bpmn:ServiceTask"}),i=r.businessObject;i.set("name","获取人员信息"),i.set("activiti:delegateExpression","${getSingleUserTaskService}"),Wa(r,{name:ua,value:G2}),P$(r,tl),e.start(n,r,void 0)},aLe=(e,t)=>{const n=oLe(e,t);return{"get-user-info":{group:"customnode",title:"获取人员信息",imageUrl:iLe,action:{click:n,dragstart:n}}}},sLe=d.defineComponent({__name:"property",setup(e){return(t,n)=>(d.openBlock(),d.createBlock(vm,{label:"获取用户信息的配置"}))}}),lLe="data:image/svg+xml,%3csvg%20t='1710224897811'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='17482'%20width='30'%20height='30'%3e%3cpath%20d='M216.945519%20232.260831l84.678588%200%200%20208.009498-84.678588%200%200-208.009498Z'%20fill='%232c2c2c'%20p-id='17483'%3e%3c/path%3e%3cpath%20d='M384.134309%20204.3829l84.678588%200%200%20264.548188-84.678588%200%200-264.548188Z'%20fill='%232c2c2c'%20p-id='17484'%3e%3c/path%3e%3cpath%20d='M148.4014%20190.361559c0-22.933315%2018.655895-41.589211%2041.589211-41.589211l641.889279%200c22.933315%200%2041.589211%2018.655895%2041.589211%2041.589211l0%2097.355305L644.231115%20287.716864l83.334987-83.333964-83.289961%200L518.86178%20329.796238l139.395794%20139.395794%2083.290985%200-96.795557-96.795557%20313.39571-0.001023L958.148711%20190.361559c0-69.623707-56.644091-126.267798-126.268822-126.267798L189.99061%2064.09376c-69.62473%200-126.267798%2056.644091-126.267798%20126.267798l0%20459.4389%2084.678588%200L148.4014%20190.361559z'%20fill='%232c2c2c'%20p-id='17485'%3e%3c/path%3e%3cpath%20d='M873.468077%20457.07404l0%20375.176798c0%2022.932292-18.654872%2041.589211-41.589211%2041.589211L189.99061%20873.840048c-22.932292%200-41.589211-18.655895-41.589211-41.589211l0-13.008268%20669.937079%200%200-84.678588L789.985734%20734.563982%20789.985734%20497.195829%20231.188918%20497.195829l0%20237.368152-167.466106-0.083911%200%2097.770767c0%2069.62473%2056.644091%20126.268822%20126.267798%20126.268822l641.889279%200c69.62473%200%20126.268822-56.644091%20126.268822-126.268822L958.148711%20457.07404%20873.468077%20457.07404zM637.041366%20581.87544l68.264756%200%200%20152.688541-68.264756%200L637.041366%20581.87544zM468.812897%20581.87544l83.548858%200%200%20152.688541-83.548858%200L468.812897%20581.87544zM315.868529%20581.87544l68.26578%200%200%20152.688541-68.26578%200L315.868529%20581.87544z'%20fill='%232c2c2c'%20p-id='17486'%3e%3c/path%3e%3c/svg%3e",hT="org",LY=e=>{const{orgVariableType:t}=e,n={orgVariableType:t};switch(t){case As.ORG_ID:n.orgId=e.orgId;break;case As.GET_ORG_TASK_OUTPUT:n.getOrgTaskDefKey=e.getOrgTaskDefKey;break}return{name:hT,type:"expression",value:JSON.stringify(n)}},q6=(e,t)=>{hm(e,LY(t))},cLe=e=>{const n=j0(e).find(i=>i.name===hT)||{};return JSON.parse(n.expression||"{}")},uLe=(e,t)=>{const n=d.toRaw(j0(e)),r=n.findIndex(i=>i.name===hT);r!==-1&&pm(e,n[r],LY(t))},dLe=(e,t)=>n=>{const r=t.createShape({type:"bpmn:ServiceTask"}),i=r.businessObject;i.set("name","获取监理公司"),i.set("activiti:delegateExpression","${getSupervisoryOrgOfOrg}"),Wa(r,{name:ua,value:w$}),q6(r,{orgVariableType:As.GET_ORG_TASK_OUTPUT,getOrgTaskDefKey:""}),e.start(n,r,void 0)},fLe=(e,t)=>{const n=dLe(e,t);return{"get-supervisory-org":{group:"customnode",title:"获取监理公司",imageUrl:lLe,action:{click:n,dragstart:n}}}},hLe={class:"org-title-selector-container"},pLe={class:"org-type-options"},mLe={class:"job-title-type-options"},gLe=d.defineComponent({__name:"OrgTitleSelector",props:{org:{type:Object,required:!0},jobTitle:{type:Object,required:!1,default:()=>({titleListType:af.TITLE_NAME_LIST,titleNameList:[]})},label:{type:String,default:"配置"},dialogTitle:{type:String,default:"公司职务选择"},disableTitle:{type:Boolean,default:!1}},emits:["update:org","update:jobTitle","on-ok"],setup(e,{emit:t}){const n=e,r=d.ref({...n.org}),i=d.ref(n.disableTitle),o=d.ref({...n.jobTitle}),a=d.ref(n.label),s=d.computed(()=>YAe(r.value.orgVariableType)),l=t,c=(x,C)=>{l("update:org",d.toRaw(x)),l("update:jobTitle",d.toRaw(C))},u=d.ref(!1),f=()=>{u.value=!0},h=d.ref(!1),p=d.ref(600),m=d.ref(600),b=d.computed(()=>({width:`${p.value}px`,height:`${m.value}px`})),v=d.ref(d.markRaw(gu));function g(){h.value=!h.value,h.value?(p.value=window.innerWidth,m.value=window.innerHeight,v.value=eb):(p.value=600,m.value=600,v.value=gu)}const y=()=>{c(r.value,o.value),l("on-ok",r.value,o.value),u.value=!1},w=()=>d.createVNode("div",{class:"json-dialog-title-container"},[d.createVNode("span",null,[n.dialogTitle]),d.createVNode("span",null,[d.createVNode(v.value,{onClick:g,class:"edit-icon"},null)])]);return(x,C)=>{const _=d.resolveComponent("n-radio"),S=d.resolveComponent("n-radio-group"),E=d.resolveComponent("n-form-item"),$=d.resolveComponent("n-input"),k=d.resolveComponent("n-select"),O=d.resolveComponent("n-dynamic-input"),T=d.resolveComponent("n-form"),j=d.resolveComponent("n-button"),D=d.resolveComponent("n-modal");return d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createVNode(D,{show:u.value,"onUpdate:show":C[8]||(C[8]=B=>u.value=B),"mask-closable":!1,preset:"dialog",title:w,"show-icon":!1,style:d.normalizeStyle(b.value)},{action:d.withCtx(()=>[d.createVNode(j,{size:"small",type:"info",onClick:y},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(x.$t("panel.confirm")),1)]),_:1})]),default:d.withCtx(()=>[d.createElementVNode("div",hLe,[d.createVNode(T,{"label-placement":"left","label-width":"auto","require-mark-placement":"right-hanging",size:"small",style:{maxWidth:"640px",marginTop:"10px"}},{default:d.withCtx(()=>[d.createVNode(E,{label:"获取机构方式"},{default:d.withCtx(()=>[d.createElementVNode("div",pLe,[d.createVNode(S,{value:r.value.orgVariableType,"onUpdate:value":C[0]||(C[0]=B=>r.value.orgVariableType=B),name:"orgSelect",style:{"margin-bottom":"10px"}},{default:d.withCtx(()=>[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(d.unref(qAe),B=>(d.openBlock(),d.createBlock(_,{key:B.value,value:B.value,label:B.label},null,8,["value","label"]))),128))]),_:1},8,["value"])])]),_:1}),r.value.orgVariableType===d.unref(As).ORG_ID?(d.openBlock(),d.createBlock(E,{key:0,label:"机构 id"},{default:d.withCtx(()=>[d.createVNode($,{value:r.value.orgId,"onUpdate:value":C[1]||(C[1]=B=>r.value.orgId=B),placeholder:"请输入机构 id",onKeydown:C[2]||(C[2]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},null,8,["value"])]),_:1})):d.createCommentVNode("",!0),r.value.orgVariableType===d.unref(As).GET_ORG_TASK_OUTPUT?(d.openBlock(),d.createBlock(E,{key:1,label:"节点 ID"},{default:d.withCtx(()=>[d.createVNode(k,{value:r.value.getOrgTaskDefKey,"onUpdate:value":C[3]||(C[3]=B=>r.value.getOrgTaskDefKey=B),placeholder:"请选择节点",options:s.value,onKeydown:C[4]||(C[4]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},null,8,["value","options"])]),_:1})):d.createCommentVNode("",!0),i.value?d.createCommentVNode("",!0):(d.openBlock(),d.createBlock(E,{key:2,label:"获取职称方式"},{default:d.withCtx(()=>[d.createElementVNode("div",mLe,[d.createVNode(S,{value:o.value.titleListType,"onUpdate:value":C[5]||(C[5]=B=>o.value.titleListType=B),name:"jobTitleSelect",style:{"margin-bottom":"10px"}},{default:d.withCtx(()=>[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(d.unref(GAe),B=>(d.openBlock(),d.createBlock(_,{key:B.value,value:B.value,label:B.label},null,8,["value","label"]))),128))]),_:1},8,["value"])])]),_:1})),!i.value&&o.value.titleListType===d.unref(af).TITLE_NAME_LIST?(d.openBlock(),d.createBlock(E,{key:3,label:"职称名列表"},{default:d.withCtx(()=>[d.createVNode(O,{value:o.value.titleNameList,"onUpdate:value":C[6]||(C[6]=B=>o.value.titleNameList=B),placeholder:"请输入值",min:1,onKeydown:C[7]||(C[7]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},null,8,["value"])]),_:1})):d.createCommentVNode("",!0)]),_:1})])]),_:1},8,["show","style"]),d.createVNode(j,{type:"info",onClick:f},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(a.value),1)]),_:1})],64)}}}),pT="titleList",BY=e=>{const{titleListType:t,titleNameList:n}=e,r={titleListType:t};switch(t){case af.TITLE_NAME_LIST:r.titleNameList=n;break}return{name:pT,type:"expression",value:JSON.stringify(r)}},FY=(e,t)=>{hm(e,BY(t))},vLe=e=>{const n=j0(e).find(i=>i.name===pT)||{};return JSON.parse(n.expression||"{}")},bLe=(e,t)=>{const n=d.toRaw(j0(e)),r=n.findIndex(i=>i.name===pT);r!==-1&&pm(e,n[r],BY(t))},G6=d.defineComponent({__name:"OrgTitleConfigProperty",props:{label:{type:String,default:"获取人员的配置"},disableTitle:{type:Boolean,default:!1}},setup(e){const t=e,n=d.ref({titleListType:"TITLE_NAME_LIST",titleNameList:[]}),r=d.ref({orgVariableType:"ID",orgId:"",getOrgTaskDefKey:""}),i=d.ref(t.disableTitle),o=Zt(Vt),a=()=>{r.value=cLe(o.activeElement),i.value||(n.value=vLe(o.activeElement))},s=(l,c)=>{uLe(o.activeElement,l),i.value||bLe(o.activeElement,c)};return Go(a),(l,c)=>{var p;const u=d.resolveComponent("n-descriptions-item"),f=d.resolveComponent("n-descriptions"),h=d.resolveComponent("n-collapse-item");return d.openBlock(),d.createBlock(h,null,d.createSlots({header:d.withCtx(()=>[d.createVNode(Mo,{title:t.label},{default:d.withCtx(()=>[d.createVNode(d.unref(Q2))]),_:1},8,["title"])]),default:d.withCtx(()=>[d.createElementVNode("div",null,[d.createVNode(gLe,{disableTitle:i.value,label:"配置",org:r.value,"onUpdate:org":c[0]||(c[0]=m=>r.value=m),jobTitle:n.value,"onUpdate:jobTitle":c[1]||(c[1]=m=>n.value=m),onOnOk:s},null,8,["disableTitle","org","jobTitle"]),d.createVNode(f,{"label-placement":"left",column:1,bordered:"",size:"small",style:{"margin-top":"10px"}},{default:d.withCtx(()=>[d.createVNode(u,null,{label:d.withCtx(()=>[d.createTextVNode(" 机构类型 ")]),default:d.withCtx(()=>[d.createTextVNode(" "+d.toDisplayString(r.value.orgVariableType),1)]),_:1}),r.value.orgVariableType===d.unref(As).ORG_ID?(d.openBlock(),d.createBlock(u,{key:0},{label:d.withCtx(()=>[d.createTextVNode(" 机构 ID ")]),default:d.withCtx(()=>[d.createTextVNode(" "+d.toDisplayString(r.value.orgId),1)]),_:1})):d.createCommentVNode("",!0),r.value.orgVariableType===d.unref(As).GET_ORG_TASK_OUTPUT?(d.openBlock(),d.createBlock(u,{key:1},{label:d.withCtx(()=>[d.createTextVNode(" 流程节点 ID ")]),default:d.withCtx(()=>[d.createTextVNode(" "+d.toDisplayString(r.value.getOrgTaskDefKey),1)]),_:1})):d.createCommentVNode("",!0),i.value?d.createCommentVNode("",!0):(d.openBlock(),d.createBlock(u,{key:2},{label:d.withCtx(()=>[d.createTextVNode(" 职称类型 ")]),default:d.withCtx(()=>[d.createTextVNode(" "+d.toDisplayString(n.value.titleListType),1)]),_:1})),!i.value&&n.value.titleListType===d.unref(af).TITLE_NAME_LIST?(d.openBlock(),d.createBlock(u,{key:3},{label:d.withCtx(()=>[d.createTextVNode(" 职称名 ")]),default:d.withCtx(()=>[d.createTextVNode(" "+d.toDisplayString(n.value.titleNameList.join(",")),1)]),_:1})):d.createCommentVNode("",!0)]),_:1})])]),_:2},[r.value.orgId||(p=n.value.titleNameList)!=null&&p.length||r.value.getOrgTaskDefKey?{name:"header-extra",fn:d.withCtx(()=>[d.createVNode(Ea)]),key:"0"}:void 0]),1024)}}}),yLe=d.defineComponent({__name:"property",setup(e){return(t,n)=>(d.openBlock(),d.createBlock(G6,{label:"获取监理公司的配置",disableTitle:!0}))}}),xLe="data:image/svg+xml,%3csvg%20t='1711350794276'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='6567'%20width='30'%20height='30'%3e%3cpath%20d='M0%200h1024v1024H0V0z%20m56.888889%2056.888889v910.222222h910.222222V56.888889H56.888889z'%20fill='%232c2c2c'%20p-id='6568'%3e%3c/path%3e%3cpath%20d='M210.488889%20329.955556h96.711111c-11.377778-34.133333-22.755556-62.577778-39.822222-85.333334l68.266666-11.377778c11.377778%2028.444444%2022.755556%2056.888889%2034.133334%2096.711112h79.644444v62.577777H318.577778v79.644445h119.466666c0%20176.355556-5.688889%20290.133333-11.377777%20329.955555-5.688889%2039.822222-34.133333%2062.577778-91.022223%2062.577778h-28.444444l-17.066667-56.888889c11.377778%200%2022.755556%205.688889%2034.133334%205.688889%2022.755556%200%2039.822222-11.377778%2045.511111-34.133333%205.688889-22.755556%205.688889-102.4%205.688889-238.933334h-56.888889c-5.688889%20153.6-28.444444%20261.688889-73.955556%20335.644445l-51.2-39.822222c39.822222-68.266667%2062.577778-176.355556%2062.577778-324.266667V392.533333h-45.511111V329.955556z%20m335.644444%2039.822222c-17.066667%2045.511111-45.511111%2091.022222-73.955555%20125.155555l-39.822222-51.2c39.822222-51.2%2073.955556-119.466667%20102.4-210.488889l62.577777%2011.377778c-5.688889%2022.755556-11.377778%2039.822222-22.755555%2056.888889h233.244444v62.577778H546.133333z%20m238.933334%2073.955555c0%20130.844444-5.688889%20210.488889-11.377778%20238.933334s-34.133333%2039.822222-73.955556%2039.822222h-5.688889l-17.066666-56.888889h28.444444c5.688889%200%2011.377778-5.688889%2011.377778-17.066667V523.377778l-51.2%2017.066666v221.866667h-62.577778V563.2l-51.2%2017.066667v176.355555c0%2028.444444%2011.377778%2045.511111%2028.444445%2045.511111h130.844444c17.066667%200%2022.755556-5.688889%2034.133333-11.377777%205.688889-5.688889%2011.377778-34.133333%2017.066667-73.955556l56.888889%2017.066667c-5.688889%2056.888889-17.066667%2091.022222-34.133333%20108.088889-11.377778%2011.377778-34.133333%2017.066667-62.577778%2017.066666H563.2c-45.511111%200-68.266667-28.444444-68.266667-91.022222v-170.666667l-39.822222%2022.755556v-56.888889l51.2-17.066667V449.422222h56.888889v68.266667l51.2-17.066667V398.222222h62.577778v85.333334l108.088889-39.822223z'%20fill='%232c2c2c'%20p-id='6569'%3e%3c/path%3e%3c/svg%3e",wLe=(e,t)=>n=>{const r=t.createShape({type:"bpmn:ServiceTask"}),i=r.businessObject;i.set("name","获取施工单位"),i.set("activiti:delegateExpression","${getConstructionOrgOfOrg}"),Wa(r,{name:ua,value:C$}),q6(r,{orgVariableType:As.GET_ORG_TASK_OUTPUT,getOrgTaskDefKey:""}),e.start(n,r,void 0)},CLe=(e,t)=>{const n=wLe(e,t);return{"get-construction-org":{group:"customnode",title:"获取施工单位",imageUrl:xLe,action:{click:n,dragstart:n}}}},_Le=d.defineComponent({__name:"property",setup(e){return(t,n)=>(d.openBlock(),d.createBlock(G6,{label:"获取施工单位的配置",disableTitle:!0}))}}),SLe="data:image/svg+xml,%3csvg%20t='1710141822502'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='14425'%20width='30'%20height='30'%3e%3cpath%20d='M689.814588%20266.300235a175.887059%20175.887059%200%201%200-351.894588%200%20175.887059%20175.887059%200%200%200%20351.894588%200z%20m60.235294%200a236.122353%20236.122353%200%201%201-472.365176%200%20236.122353%20236.122353%200%200%201%20472.365176%200zM873.411765%20916.178824v-76.920471a210.823529%20210.823529%200%200%200-210.82353-210.823529H361.411765a210.823529%20210.823529%200%200%200-210.82353%20210.823529v76.980706h722.82353zM361.411765%20568.259765h301.17647a271.058824%20271.058824%200%200%201%20271.058824%20271.058823v107.098353a30.117647%2030.117647%200%200%201-30.117647%2030.117647H120.470588a30.117647%2030.117647%200%200%201-30.117647-30.117647v-107.098353a271.058824%20271.058824%200%200%201%20271.058824-271.058823z'%20fill='%232c2c2c'%20p-id='14426'%3e%3c/path%3e%3c/svg%3e",ELe=(e,t)=>n=>{const r=t.createShape({type:"bpmn:ServiceTask"}),i=r.businessObject;i.set("name","获取单人员"),i.set("activiti:delegateExpression","${getSingleUserFromTitleTaskService}"),Wa(r,{name:ua,value:y$}),FY(r,{titleListType:af.TITLE_NAME_LIST,titleNameList:[]}),q6(r,{orgVariableType:As.ORG_ID,orgId:""}),e.start(n,r,void 0)},kLe=(e,t)=>{const n=ELe(e,t);return{"get-single-user":{group:"customnode",title:"获取单个人员",imageUrl:SLe,action:{click:n,dragstart:n}}}},$Le=d.defineComponent({__name:"property",setup(e){return(t,n)=>(d.openBlock(),d.createBlock(G6,{label:"获取单人员的配置"}))}}),TLe="data:image/svg+xml,%3csvg%20t='1709800140877'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4222'%20width='30'%20height='30'%3e%3cpath%20d='M414.71%20509.2C301%20509.2%20208.47%20416.68%20208.47%20303S301%2096.73%20414.71%2096.73%20620.94%20189.24%20620.94%20303s-92.51%20206.2-206.23%20206.2z%20m0-352.47c-80.64%200-146.24%2065.6-146.24%20146.23s65.6%20146.24%20146.24%20146.24S560.94%20383.6%20560.94%20303s-65.6-146.27-146.23-146.27zM734.71%20924.17h-640a30%2030%200%200%201-29.6-34.9c15.49-93.64%2058.18-179.2%20120.19-240.9%2031.28-31.13%2066.5-55.45%20104.68-72.28a307%20307%200%200%201%20249.46%200c38.18%2016.83%2073.4%2041.15%20104.68%2072.28%2062%2061.7%20104.69%20147.26%20120.19%20240.9a30%2030%200%200%201-29.6%2034.9z%20m-603.12-60h566.24C660%20714.72%20545.28%20609.61%20414.71%20609.61S169.44%20714.72%20131.59%20864.17zM711%20478.22a30%2030%200%200%201-17-54.71%20146.29%20146.29%200%200%200-13.26-249.22%2030%2030%200%200%201%2028.58-52.76A206.3%20206.3%200%200%201%20728%20472.93a30%2030%200%200%201-17%205.29zM931.12%20924.17h-75.79a30%2030%200%200%201%200-60h39.1C867%20751%20801.12%20660.72%20717.34%20624a30%2030%200%200%201%2024.07-55c56.25%2024.63%20106.42%2068.36%20145.07%20126.46%2036.74%2055.22%2062.41%20122.21%2074.24%20193.73a30%2030%200%200%201-29.6%2034.9z'%20p-id='4223'%3e%3c/path%3e%3c/svg%3e",RLe=(e,t)=>n=>{const r=t.createShape({type:"bpmn:ServiceTask"}),i=r.businessObject;i.set("name","获取多人员"),i.set("activiti:delegateExpression","${getMultipleUsersTaskService}"),Wa(r,{name:ua,value:x$}),FY(r,{titleListType:af.TITLE_NAME_LIST,titleNameList:[]}),q6(r,{orgVariableType:As.ORG_ID,orgId:""}),e.start(n,r,void 0)},PLe=(e,t)=>{const n=RLe(e,t);return{"get-multi-user":{group:"customnode",title:"获取多个人员",imageUrl:TLe,action:{click:n,dragstart:n}}}},OLe=d.defineComponent({__name:"property",setup(e){return(t,n)=>(d.openBlock(),d.createBlock(G6,{label:"获取多人员的配置"}))}}),jLe="data:image/svg+xml,%3csvg%20t='1709801148292'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='5252'%20width='30'%20height='30'%3e%3cpath%20d='M515.09%20955.46H217.17c-67.25%200-121.97-55.66-121.97-124.07V192.41c0-68.41%2054.71-124.07%20121.97-124.07h573.89c67.25%200%20121.97%2055.66%20121.97%20124.07v212.12c0%2022.95-18.29%2041.56-40.85%2041.56s-40.85-18.61-40.85-41.56V192.41c0-22.58-18.06-40.95-40.26-40.95h-573.9c-22.2%200-40.26%2018.37-40.26%2040.95v638.98c0%2022.58%2018.06%2040.95%2040.26%2040.95h297.92c22.56%200%2040.85%2018.61%2040.85%2041.56s-18.28%2041.56-40.85%2041.56z'%20p-id='5253'%3e%3c/path%3e%3cpath%20d='M708.2%20368.58c0.06-0.16%200.11-0.32%200.17-0.47%200.82-2.08%201.48-4.24%201.92-6.49%200.02-0.12%200.03-0.24%200.06-0.36%200.42-2.23%200.66-4.52%200.66-6.87%200-2.35-0.24-4.64-0.66-6.87-0.02-0.12-0.03-0.24-0.06-0.36-0.44-2.25-1.1-4.41-1.92-6.49-0.06-0.16-0.11-0.32-0.17-0.47-0.88-2.13-1.95-4.15-3.19-6.06-0.09-0.14-0.16-0.28-0.25-0.41-1.38-2.07-2.95-4-4.7-5.75l-93.09-93.09c-14.59-14.59-38.24-14.59-52.83%200-14.59%2014.59-14.59%2038.24%200%2052.83l29.32%2029.32H334.58c-20.63%200-37.36%2016.73-37.36%2037.36s16.73%2037.36%2037.36%2037.36h339.07c2.35%200%204.64-0.24%206.87-0.66%200.12-0.02%200.24-0.03%200.36-0.06%202.25-0.44%204.41-1.1%206.49-1.92%200.16-0.06%200.32-0.11%200.47-0.17%202.13-0.88%204.15-1.95%206.06-3.19%200.13-0.09%200.27-0.16%200.41-0.25%204.13-2.75%207.69-6.31%2010.44-10.44%200.09-0.13%200.16-0.27%200.25-0.41%201.25-1.93%202.32-3.96%203.2-6.08zM630.39%20928.98c-8.23%200-18.01-1.74-27.23-7.74-7.32-4.76-19.9-17.07-21.87-40.15l-0.16-1.9%203.77-96.01c-0.2-8.44%202.63-16.08%204.46-21l1.24-3.33%20162.95-245.66c12.53-17.5%2039.04-28.06%2065.41-14.4l3%201.78%2084.68%2056.89c19.06%2013.62%2030.01%2042.17%2012.77%2068.24L764.77%20859.45a61.198%2061.198%200%200%201-23.64%2020.94l-89.75%2044.87-1.91%200.66c-2.28%200.79-9.68%203.06-19.08%203.06z%20m15.88-142.93l-2.9%2074.54%2070.3-35.15%20148.17-224.09-64.39-43.25-151.18%20227.95z'%20p-id='5254'%3e%3c/path%3e%3c/svg%3e";function zY(e,t){const n=`${Ot}:${t}`,r=bm(e);return t==="loopCardinality"||t==="completionCondition"?VY(e,t):r==null?void 0:r.get(n)}function MLe(e){const t=bm(e),n={};for(const r of m$){const i=`${Ot}:${r}`,o=r==="loopCardinality"||r==="completionCondition";t&&(n[r]=o?VY(e,r):t.get(i))}return n}function nb(e,t,n){var a,s;const r=Zt(Vt),i=bm(e);if(t==="loopCardinality"||t==="completionCondition"){const{moddleElement:l,properties:c}=ILe(e,t,n);(a=r.modeling)==null||a.updateModdleProperties(e,l,c)}else(s=r.modeling)==null||s.updateModdleProperties(e,i,{[`${Ot}:${t}`]:n})}function ALe(e){const t=bm(e);return!!t&&Q(t,`${Ot}:Collectable`)}function bm(e){return rt(e).loopCharacteristics}function NLe(e,t){const n=bm(e);return n&&n.get(t)}function DLe(e){return e&&e.get("body")}function VY(e,t){const n=NLe(e,t);return DLe(n)}function ILe(e,t,n){const r=bm(e),i={};if(!n)return i[t]=void 0,{moddleElement:r,properties:i};const o=r.get(t);return o?{moddleElement:o,properties:{body:n}}:(i[t]=oNe(r,n),{moddleElement:r,properties:i})}function LLe(e){const t=Zt(Vt),{scriptFormat:n,value:r,resource:i}=e;return t.moddle.create(`${Ot}:Script`,{scriptFormat:n,value:r,resource:i})}function BLe(e){return e.get("resource")?"external":e.get("value")?"inline":"none"}function FLe(e){return typeof e>"u"}function HY(e=""){try{JSON.parse(e)}catch{return!1}return!0}function UY(e,t){const n=K6(e);return Jh(n,`${Ot}:${t}`)}function rb(e,t,n){const r=Zt(Vt),i=K6(e),o=r.moddle.create(`${Ot}:${n}`,{});qLe(e,o,t),SK(e,i,o)}function WY(e,t,n,r){A6(e,K6(e),n),rb(e,t,r)}function zLe(e,t){A6(e,K6(e),t)}function VLe(e){return Q(e,"bpmn:UserTask")}function HLe(e){return Vn(e,NAe)?!0:Q(e,"bpmn:Participant")?!!e.businessObject.processRef:!1}function ULe(e,t){if(Vn(e,[`${Ot}:${t}`])){if(e.get(`${Ot}:class`))return"class";if(e.get(`${Ot}:expression`))return"expression";if(e.get(`${Ot}:delegateExpression`))return"delegateExpression";if(e.get("script"))return"script"}return""}function K6(e){const t=rt(e);return(t==null?void 0:t.get("processRef"))||t}function WLe(e,t){return t==="TaskListener"?[{label:"Create",value:"create"},{label:"Assignment",value:"assignment"},{label:"Complete",value:"complete"},{label:"Delete",value:"delete"}]:Q(e,"bpmn:SequenceFlow")?[{label:"Take",value:"take"}]:[{label:"Start",value:"start"},{label:"End",value:"end"}]}function qY(e,t){return t==="TaskListener"?"create":Q(e,"bpmn:SequenceFlow")?"take":"start"}function qLe(e,t,n){var f;const r=Zt(Vt),{event:i,class:o,expression:a,delegateExpression:s,script:l,fields:c}=n,u=(h,p)=>{var m;return(m=r.modeling)==null?void 0:m.updateModdleProperties(e,t,{[`${Ot}:${h}`]:p})};if(i&&u("event",i),!FLe(o)&&u("class",o),a&&u("expression",a),s&&u("delegateExpression",s),l){const h=LLe(l);(f=r.modeling)==null||f.updateModdleProperties(e,t,{script:h})}sNe(e,t),c&&c.forEach(h=>{aNe(e,t,h)})}const GLe=/^(\${)?([a-zA-Z_$][\w.$]*)(?:\(([\s\S]*)\))?(}\s*)?$/,vu="jsonstring";function Y6(e=""){e=e.trim();const t=GLe.exec(e);if(!t)return{isVar:!1,isFunction:!1,varName:e,args:[]};const n=t[1]!==void 0&&t[4]!==void 0,r=t[2],i=t[3]||"",o=[];if(i){let s="",l="";for(let u=0;u<i.length;u++){const f=i[u];f===","&&l!==vu?(o.push({content:s.trim(),type:mT(s.trim())}),s="",l=""):(s+=f,f==="{"?l=vu:l!==vu&&s.trim().startsWith("'")&&s.trim().endsWith("'")||l!==vu&&s.trim().startsWith('"')&&s.trim().endsWith('"')?l="string":l!==vu&&f===" "&&(l=mT(s.trim())))}const c=s.trim();c!==""&&o.push({content:c,type:l!==vu?mT(c):vu})}const a=o.length>0||e.endsWith(")");return{isVar:n,isFunction:a,varName:r,args:o}}const KLe=[{label:"字符串",value:"string"},{label:"数字",value:"number"},{label:"布尔值"},{label:"变量",value:"var"},{label:"JSON串",value:vu}];function mT(e){return e.startsWith("'")&&e.endsWith("'")?"string":/^\d+(\.\d+)?$/.test(e)?"number":e==="true"||e==="false"?"boolean":"var"}function Z6(e,t){const n=new RegExp(`^${t}+|${t}+$`,"g");return e.replace(n,"")}function GY(e){return e.replace(/\\"/g,'"')}const gT=e=>({content:(e==null?void 0:e.type)===vu?GY(Z6(Z6(e.content,"'"),'"')):e==null?void 0:e.content,type:e==null?void 0:e.type}),vT=(e,t,n,r)=>{rb(e,{event:t,type:"delegateExpression",delegateExpression:n,fields:r},"TaskListener")},YLe=(e,t,n,r)=>{const i=UY(e,"TaskListener"),o=i.findIndex(a=>a.event===t);WY(e,{event:t,type:"delegateExpression",delegateExpression:n,fields:r},i[o],"TaskListener")},KY=e=>{const t=e.businessObject;if(!t.loopCharacteristics){const r=Zt(Vt).moddle.create("bpmn:MultiInstanceLoopCharacteristics",{isSequential:!1});t.loopCharacteristics=r}},X6={minApprovedCount:1,maxRejectedCount:0};function ZLe(e){const t=/\$\{([\w\_\d]+)\}/,n=e.match(t);return n&&n[1]?n[1]:null}const XLe=e=>{const t=zK(e);return"${counterTaskService.getCounterTaskCandidates(execution,'"+JSON.stringify(t)+"')}"},JLe=e=>"${counterTaskService.counterTaskCompleted(execution, '"+JSON.stringify(e)+"')}",QLe=e=>{vT(e,"create","${checkCounterSignAssigneeListener}"),KY(e);const t=e.businessObject.get("activiti:assignee"),n=ZLe(t);bT(e,tl),nb(e,"elementVariable",n),yT(e,X6,!1)},eBe=e=>{vT(e,"create","${checkCounterReceiveAssigneeListener}"),KY(e),bT(e,tl),nb(e,"elementVariable","counterReceiveAssignee"),yT(e,X6,!1)},tBe=e=>{var a;const t=zY(e,"collection"),r=Y6(t).args,i=gT(r[1]),o=JSON.parse(i.content||"{}");return o.userIdType===Qr.CREATOR&&((a=o.userSearchInfo)!=null&&a.enabled)&&(o.userIdType=Qr.CREATOR_RELATED),o},bT=(e,t)=>{nb(e,"collection",XLe(t))},nBe=e=>{const t=zY(e,"completionCondition"),r=Y6(t).args;if(r.length>=2){const i=gT(r[1]);return JSON.parse(i.content||"{}")}else return X6},yT=(e,t,n=!0)=>{nb(e,"completionCondition",JLe(t));const r=[{name:"counterTaskCompleteCondition",type:"expression",value:JSON.stringify(t)}],i="${counterTaskCompleteListener}";n?YLe(e,"complete",i,r):vT(e,"complete",i,r)},rBe=(e,t)=>n=>{const r=t.createShape({type:"bpmn:UserTask"}),i=r.businessObject;i.set("name","创建会签节点");const o=`counterSignAssignee_${Date.now()}_${Math.floor(Math.random()*1e4)}`;i.set("activiti:assignee","${"+o+"}"),Wa(r,{name:ua,value:N6}),QLe(r),e.start(n,r,void 0)},iBe=(e,t)=>{const n=rBe(e,t);return{"counter-sign-user":{group:"customnode",title:"会签节点",imageUrl:jLe,action:{click:n,dragstart:n}}}},oBe={class:"user-selector-container"},aBe=Ba(d.defineComponent({__name:"CounterSignSelector",props:{user:{type:Object,required:!0},condition:{type:Object,required:!0},label:{type:String,default:"配置"},dialogTitle:{type:String,default:"会签配置"}},emits:["update:user","update:condition","on-ok"],setup(e,{emit:t}){const n=e,r=d.ref({...n.user}),i=d.ref({...n.condition}),o=d.ref(n.label),a=t,s=(y,w)=>{a("update:user",y),a("update:condition",w)},l=d.ref(!1),c=()=>{l.value=!0},u=d.ref(!1),f=d.ref(600),h=d.ref(600),p=d.computed(()=>({width:`${f.value}px`,height:`${h.value}px`})),m=d.ref(d.markRaw(gu));function b(){u.value=!u.value,u.value?(f.value=window.innerWidth,h.value=window.innerHeight,m.value=eb):(f.value=600,h.value=600,m.value=gu)}const v=()=>{s(r.value,i.value),a("on-ok",r.value,i.value),l.value=!1},g=()=>d.createVNode("div",{class:"json-dialog-title-container"},[d.createVNode("span",null,[n.dialogTitle]),d.createVNode("span",null,[d.createVNode(m.value,{onClick:b,class:"edit-icon"},null)])]);return(y,w)=>{const x=d.resolveComponent("n-input-number"),C=d.resolveComponent("n-form-item"),_=d.resolveComponent("n-form"),S=d.resolveComponent("n-button"),E=d.resolveComponent("n-modal");return d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createVNode(E,{show:l.value,"onUpdate:show":w[2]||(w[2]=$=>l.value=$),"mask-closable":!1,preset:"dialog",title:g,"show-icon":!1,style:d.normalizeStyle(p.value)},{action:d.withCtx(()=>[d.createVNode(S,{size:"small",type:"info",onClick:v},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(y.$t("panel.confirm")),1)]),_:1})]),default:d.withCtx(()=>[d.createElementVNode("div",oBe,[d.createVNode(DY,{user:r.value},null,8,["user"]),d.createVNode(_,{"label-placement":"left","label-width":"auto","require-mark-placement":"right-hanging",size:"small"},{default:d.withCtx(()=>[d.createVNode(C,{label:"最小通过人数"},{default:d.withCtx(()=>[d.createVNode(x,{value:i.value.minApprovedCount,"onUpdate:value":w[0]||(w[0]=$=>i.value.minApprovedCount=$),placeholder:"请输入数值,最小值不能小于 1",min:1},null,8,["value"])]),_:1}),d.createVNode(C,{label:"最多拒绝人数"},{default:d.withCtx(()=>[d.createVNode(x,{value:i.value.maxRejectedCount,"onUpdate:value":w[1]||(w[1]=$=>i.value.maxRejectedCount=$),placeholder:"请输入数值",min:0},null,8,["value"])]),_:1})]),_:1})])]),_:1},8,["show","style"]),d.createVNode(S,{type:"info",onClick:c},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(o.value),1)]),_:1})],64)}}}),[["__scopeId","data-v-2641cd09"]]),YY=d.defineComponent({__name:"CounterSignProperty",props:{label:{type:String,default:"获取用户的配置"}},setup(e){const t=e,n=d.ref({...tl,outputTaskDefKey:""}),r=d.ref(X6),i=Zt(Vt),o=()=>{n.value=tBe(i.activeElement),r.value=nBe(i.activeElement)},a=(s,l)=>{bT(i.activeElement,s),yT(i.activeElement,l,!0)};return Go(o),(s,l)=>{const c=d.resolveComponent("n-descriptions-item"),u=d.resolveComponent("n-descriptions"),f=d.resolveComponent("n-collapse-item");return d.openBlock(),d.createBlock(f,null,d.createSlots({header:d.withCtx(()=>[d.createVNode(Mo,{title:t.label},{default:d.withCtx(()=>[d.createVNode(d.unref(Q2))]),_:1},8,["title"])]),default:d.withCtx(()=>[d.createElementVNode("div",null,[d.createVNode(aBe,{user:n.value,"onUpdate:user":l[0]||(l[0]=h=>n.value=h),condition:r.value,"onUpdate:condition":l[1]||(l[1]=h=>r.value=h),onOnOk:a},null,8,["user","condition"]),d.createVNode(IY,{"user-json":n.value},null,8,["user-json"]),d.createVNode(u,{"label-placement":"left",column:1,bordered:"",size:"small",style:{"margin-top":"10px"}},{default:d.withCtx(()=>[d.createVNode(c,null,{label:d.withCtx(()=>[d.createTextVNode(" 最少通过次数 ")]),default:d.withCtx(()=>[d.createTextVNode(" "+d.toDisplayString(r.value.minApprovedCount),1)]),_:1}),d.createVNode(c,null,{label:d.withCtx(()=>[d.createTextVNode(" 最多拒绝次数 ")]),default:d.withCtx(()=>[d.createTextVNode(" "+d.toDisplayString(r.value.maxRejectedCount),1)]),_:1})]),_:1})])]),_:2},[n.value.userId?{name:"header-extra",fn:d.withCtx(()=>[d.createVNode(Ea)]),key:"0"}:void 0]),1024)}}}),sBe=d.defineComponent({__name:"property",setup(e){return(t,n)=>(d.openBlock(),d.createBlock(YY,{label:"会签配置"}))}}),lBe="data:image/svg+xml,%3csvg%20t='1709868403061'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2300'%20width='30'%20height='30'%3e%3cpath%20d='M921.6%20916.992v61.44H139.6224v-61.44H921.6zM530.6368%2051.2a251.392%20251.392%200%200%201%20117.9648%20473.344l-10.5984%205.2736%2016.0768%2079.9232h223.2832l81.4592%20279.296H102.4l81.408-279.296h223.3344l16.0256-79.9232-10.3936-5.1712a251.7504%20251.7504%200%200%201-132.3008-198.0416L279.552%20314.368l-0.256-11.776A251.392%20251.392%200%200%201%20530.6368%2051.2z%20m0%2055.808a195.3792%20195.3792%200%200%200-195.5328%20194.8672l0.256%2010.4448a195.584%20195.584%200%200%200%20129.1776%20174.2848l22.6816%208.1408L452.9664%20665.6H225.6896l-48.7936%20167.5776h707.4304L835.4816%20665.6H608.256l-34.1504-170.9056%2022.6816-8.1408a195.584%20195.584%200%200%200-66.1504-379.4944z'%20fill='%232c2c2c'%20p-id='2301'%3e%3c/path%3e%3c/svg%3e";function cBe(e){const t=rt(e),n={};for(const r of p$){const i=`${Ot}:${r}`;n[r]=t.get(i)}return n}function xT(e,t,n){var o;const r=Zt(Vt),i=rt(e);(o=r.modeling)==null||o.updateModdleProperties(e,i,{[`${Ot}:${t}`]:n})}const ym=(e,t,n,r)=>{rb(e,{event:t,type:"delegateExpression",delegateExpression:n,fields:r},"TaskListener")},uBe=e=>{ym(e,"create","${checkSignAssigneeListener}"),ym(e,"complete","${completeSignApproveListener}")},dBe=e=>{ym(e,"create","${checkReceiveAssigneeListener}"),ym(e,"complete","${completeSignApproveListener}")},fBe=e=>{ym(e,"create","${checkReformAssigneeListener}"),ym(e,"complete","${completeSubmitListener}")},wT=e=>{const n=e.businessObject.get("activiti:assignee");return n?JSON.parse(n||"{}"):tl},CT=(e,t)=>{xT(e,"assignee",JSON.stringify(t))},hBe=(e,t)=>n=>{const r=t.createShape({type:"bpmn:UserTask"}),i=r.businessObject;i.set("name","创建审批节点"),i.set("activiti:assignee",JSON.stringify(tl)),Wa(r,{name:ua,value:D6}),uBe(r),e.start(n,r,void 0)},pBe=(e,t)=>{const n=hBe(e,t);return{"approval-user":{group:"customnode",title:"审批节点",imageUrl:lBe,action:{click:n,dragstart:n}}}},mBe=d.defineComponent({__name:"property",setup(e){return(t,n)=>(d.openBlock(),d.createBlock(vm,{label:"审批配置",getUserValue:d.unref(wT),updateUserValue:d.unref(CT)},null,8,["getUserValue","updateUserValue"]))}}),gBe="data:image/svg+xml,%3csvg%20t='1711350298534'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='5302'%20width='30'%20height='30'%3e%3cpath%20d='M768%2064V0H256v64H64v896h896V64zM320%2064h384v64H320z%20m576%20832H128V128h128v64h512V128h128z'%20fill='%23333333'%20p-id='5303'%3e%3c/path%3e%3cpath%20d='M450.56%20597.12L342.4%20489.6l-44.8%2044.8%20147.84%20148.48%20342.4-273.92-39.68-49.92-297.6%20238.08z'%20fill='%23333333'%20p-id='5304'%3e%3c/path%3e%3c/svg%3e",vBe=(e,t)=>n=>{const r=t.createShape({type:"bpmn:UserTask"}),i=r.businessObject;i.set("name","创建签收节点"),i.set("activiti:assignee",JSON.stringify(tl)),Wa(r,{name:ua,value:S$}),dBe(r),e.start(n,r,void 0)},bBe=(e,t)=>{const n=vBe(e,t);return{"sign-receipt-user":{group:"customnode",title:"签收节点",imageUrl:gBe,action:{click:n,dragstart:n}}}},yBe=d.defineComponent({__name:"property",setup(e){return(t,n)=>(d.openBlock(),d.createBlock(vm,{label:"签收配置",getUserValue:d.unref(wT),updateUserValue:d.unref(CT)},null,8,["getUserValue","updateUserValue"]))}}),xBe="data:image/svg+xml,%3csvg%20t='1711354185141'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='7753'%20width='30'%20height='30'%3e%3cpath%20d='M930.909091%201024H93.090909a93.090909%2093.090909%200%200%201-93.090909-93.090909V93.090909a93.090909%2093.090909%200%200%201%2093.090909-93.090909h837.818182a93.090909%2093.090909%200%200%201%2093.090909%2093.090909v837.818182a93.090909%2093.090909%200%200%201-93.090909%2093.090909zM116.363636%2069.818182a46.545455%2046.545455%200%200%200-46.545454%2046.545454v791.272728a46.545455%2046.545455%200%200%200%2046.545454%2046.545454h791.272728a46.545455%2046.545455%200%200%200%2046.545454-46.545454v-791.272728a46.545455%2046.545455%200%200%200-46.545454-46.545454z'%20fill='%232c2c2c'%20p-id='7754'%3e%3c/path%3e%3cpath%20d='M724.293818%20582.050909l-65.815273-65.815273a23.272727%2023.272727%200%200%201%2032.907637-32.907636l49.384727%2049.338182%20115.153455-115.153455a23.319273%2023.319273%200%200%201%2033.093818%2032.861091l-131.816727%20131.677091a23.272727%2023.272727%200%200%201-32.907637%200z'%20fill='%232c2c2c'%20p-id='7755'%3e%3c/path%3e%3cpath%20d='M724.293818%20787.409455l-65.815273-65.815273a23.272727%2023.272727%200%200%201%2032.907637-32.907637l49.384727%2049.338182%20115.153455-115.153454a23.319273%2023.319273%200%200%201%2033.093818%2032.861091l-131.816727%20131.677091a23.272727%2023.272727%200%200%201-32.907637%200z'%20fill='%232c2c2c'%20p-id='7756'%3e%3c/path%3e%3cpath%20d='M724.293818%20376.738909L658.478545%20310.923636a23.272727%2023.272727%200%200%201%2032.907637-32.907636l49.384727%2049.338182%20115.153455-115.153455a23.319273%2023.319273%200%200%201%2033.093818%2032.861091l-131.816727%20131.677091a23.272727%2023.272727%200%200%201-32.907637%200z'%20fill='%232c2c2c'%20p-id='7757'%3e%3c/path%3e%3cpath%20d='M370.036364%20530.385455a172.218182%20172.218182%200%200%201-172.218182-172.218182%20172.218182%20172.218182%200%200%201%20172.218182-172.218182%20172.218182%20172.218182%200%200%201%20172.218181%20172.218182%20172.218182%20172.218182%200%200%201-172.218181%20172.218182z%20m0-288.349091a116.363636%20116.363636%200%200%200-116.363637%20116.363636%20116.363636%20116.363636%200%200%200%20116.363637%20116.363636%20116.363636%20116.363636%200%200%200%20116.363636-116.363636%20116.363636%20116.363636%200%200%200-116.363636-116.363636z'%20fill='%232c2c2c'%20p-id='7758'%3e%3c/path%3e%3cpath%20d='M198.749091%20814.312727H139.589818a378.088727%20378.088727%200%200%201%2075.264-206.848A202.845091%20202.845091%200%200%201%20372.363636%20523.170909a202.798545%20202.798545%200%200%201%20157.416728%2084.247273%20378.088727%20378.088727%200%200%201%2075.264%20206.801454h-59.159273a337.361455%20337.361455%200%200%200-55.482182-161.652363%20148.107636%20148.107636%200%200%200-118.085818-70.795637%20148.014545%20148.014545%200%200%200-118.085818%2070.795637%20337.594182%20337.594182%200%200%200-55.528728%20161.652363z'%20fill='%232c2c2c'%20p-id='7759'%3e%3c/path%3e%3c/svg%3e",wBe=(e,t)=>n=>{const r=t.createShape({type:"bpmn:UserTask"}),i=r.businessObject;i.set("name","创建多人签收节点"),i.set("activiti:assignee","${counterReceiveAssignee}"),Wa(r,{name:ua,value:_$}),eBe(r),e.start(n,r,void 0)},CBe=(e,t)=>{const n=wBe(e,t);return{"multi-sign-receipt-user":{group:"customnode",title:"多人签收节点",imageUrl:xBe,action:{click:n,dragstart:n}}}},_Be=d.defineComponent({__name:"property",setup(e){return(t,n)=>(d.openBlock(),d.createBlock(YY,{label:"多人签收配置"}))}}),SBe="data:image/svg+xml,%3csvg%20t='1709879234957'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4570'%20width='30'%20height='30'%3e%3cpath%20d='M1016.904408%20870.092348a150.623161%20150.623161%200%200%200-124.661452-148.304141V505.497194a25.565779%2025.565779%200%200%200%200-2.205897v-1.018107a25.452656%2025.452656%200%200%200-25.452656-25.452655H520.577619V303.459668%20302.328438a150.623161%20150.623161%200%201%200-51.866857%200v174.60522H154.68155a25.452656%2025.452656%200%200%200-25.452656%2025.452655v0.961545a25.565779%2025.565779%200%200%200%200%202.205897v216.291013a150.623161%20150.623161%200%201%200%2051.866857%200V511.605831h659.280348v210.182376a150.623161%20150.623161%200%201%200%20176.471747%20148.304141zM494.61591%20252.554356a98.699743%2098.699743%200%201%201%200-197.399487%2098.699743%2098.699743%200%200%201%200%20197.399487z%20m-339.425307%20518.838249a98.699743%2098.699743%200%201%201%200%20197.399487%2098.699743%2098.699743%200%200%201%200-197.399487z%20m809.790387%2098.699743a98.699743%2098.699743%200%201%201-197.342925%200%2098.699743%2098.699743%200%200%201%20197.399486%200z'%20p-id='4571'%20fill='%232c2c2c'%3e%3c/path%3e%3c/svg%3e",EBe=(e,t)=>n=>{const r=t.createShape({type:"bpmn:ExclusiveGateway"});Wa(r,{name:ua,value:TK}),e.start(n,r,void 0)},kBe=(e,t)=>{const n=EBe(e,t);return{"leave-gateway":{group:"customnode",title:"条件节点",imageUrl:SBe,action:{click:n,dragstart:n}}}},ZY=d.defineComponent({__name:"ConditionValueCreator",props:{expr:{type:Object,required:!0},label:{type:String,default:"配置"}},emits:["update:expr"],setup(e,{emit:t}){const n=e,r=d.ref({...JAe,...n.expr}),i=tNe(),o=d.computed(()=>{var c;switch(((c=i.find(u=>u.value===r.value.taskDefKey))==null?void 0:c.type)||""){case dm:return QAe;case G2:return eNe;default:return[]}}),a=t,s=l=>{a("update:expr",l)};return d.watch(r.value,(l,c)=>{l.taskDefKey!==(c==null?void 0:c.taskDefKey)&&(l.taskOutputKey=""),s(d.toRaw(l))},{immediate:!0}),(l,c)=>{const u=d.resolveComponent("n-select"),f=d.resolveComponent("n-input"),h=d.resolveComponent("n-dynamic-input"),p=d.resolveComponent("n-flex");return d.openBlock(),d.createBlock(p,{wrap:!1},{default:d.withCtx(()=>[d.createVNode(u,{value:r.value.conditionValueType,"onUpdate:value":c[0]||(c[0]=m=>r.value.conditionValueType=m),placeholder:"值类型",options:d.unref(jK),onKeydown:c[1]||(c[1]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},null,8,["value","options"]),r.value.conditionValueType===d.unref(Sa).STRING?(d.openBlock(),d.createBlock(f,{key:0,value:r.value.stringValue,"onUpdate:value":c[2]||(c[2]=m=>r.value.stringValue=m),placeholder:"请输入",onKeydown:c[3]||(c[3]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},null,8,["value"])):d.createCommentVNode("",!0),r.value.conditionValueType===d.unref(Sa).NUMBER?(d.openBlock(),d.createBlock(f,{key:1,value:r.value.numberValue,"onUpdate:value":c[4]||(c[4]=m=>r.value.numberValue=m),placeholder:"请输入",onKeydown:c[5]||(c[5]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},null,8,["value"])):d.createCommentVNode("",!0),r.value.conditionValueType===d.unref(Sa).STRING_LIST?(d.openBlock(),d.createBlock(h,{key:2,value:r.value.stringValueList,"onUpdate:value":c[6]||(c[6]=m=>r.value.stringValueList=m),placeholder:"请输入值",min:1},null,8,["value"])):d.createCommentVNode("",!0),r.value.conditionValueType===d.unref(Sa).TASK_OUTPUT?(d.openBlock(),d.createBlock(u,{key:3,style:{width:"128px"},value:r.value.taskDefKey,"onUpdate:value":c[7]||(c[7]=m=>r.value.taskDefKey=m),options:d.unref(i),placeholder:"请选择节点"},null,8,["value","options"])):d.createCommentVNode("",!0),r.value.conditionValueType===d.unref(Sa).TASK_OUTPUT?(d.openBlock(),d.createBlock(u,{key:4,style:{width:"128px"},value:r.value.taskOutputKey,"onUpdate:value":c[8]||(c[8]=m=>r.value.taskOutputKey=m),options:o.value,placeholder:"请选择属性"},null,8,["value","options"])):d.createCommentVNode("",!0)]),_:1})}}}),$Be={class:"user-selector-container"},TBe=d.createElementVNode("p",null,"左值",-1),RBe=d.createElementVNode("p",null,"操作",-1),PBe=d.createElementVNode("p",null,"右值",-1),OBe=d.defineComponent({__name:"GatewayConditionSelector",props:{condition:{type:Object,required:!0},label:{type:String,default:"配置"},dialogTitle:{type:String,default:"条件配置"}},emits:["update:condition","on-ok"],setup(e,{emit:t}){const n=e,{condition:r,label:i}=d.toRefs(n),o=t,a=w=>{o("update:condition",w)},s=d.ref(!1),l=()=>{s.value=!0},c=d.ref(!1),u=d.ref(1e3),f=d.ref(600),h=d.computed(()=>({width:`${u.value}px`,height:`${f.value}px`})),p=d.ref(d.markRaw(gu));function m(){c.value=!c.value,c.value?(u.value=window.innerWidth,f.value=window.innerHeight,p.value=eb):(u.value=1e3,f.value=600,p.value=gu)}const b=d.computed(()=>{const w=P0(D6).map(O0),x=P0(N6).map(O0);return w.concat(x)}),v=d.computed(()=>NK(r.value)),g=()=>{a(r.value),o("on-ok",r.value),s.value=!1},y=()=>d.createVNode("div",{class:"json-dialog-title-container"},[d.createVNode("span",null,[n.dialogTitle]),d.createVNode("span",null,[d.createVNode(p.value,{onClick:m,class:"edit-icon"},null)])]);return(w,x)=>{const C=d.resolveComponent("n-gi"),_=d.resolveComponent("n-select"),S=d.resolveComponent("n-grid"),E=d.resolveComponent("n-flex"),$=d.resolveComponent("n-tab-pane"),k=d.resolveComponent("n-form-item"),O=d.resolveComponent("n-switch"),T=d.resolveComponent("n-tabs"),j=d.resolveComponent("n-alert"),D=d.resolveComponent("n-form"),B=d.resolveComponent("n-button"),V=d.resolveComponent("n-modal");return d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createVNode(V,{class:"gateway-condition-selector-modal",show:s.value,"onUpdate:show":x[8]||(x[8]=R=>s.value=R),"mask-closable":!1,preset:"dialog",title:y,"show-icon":!1,style:d.normalizeStyle(h.value)},{action:d.withCtx(()=>[d.createVNode(B,{size:"small",type:"info",onClick:g},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(w.$t("panel.confirm")),1)]),_:1})]),default:d.withCtx(()=>[d.createElementVNode("div",$Be,[d.createVNode(D,{"label-placement":"left","label-width":"auto","require-mark-placement":"right-hanging",size:"small",style:{marginTop:"10px"}},{default:d.withCtx(()=>[d.createVNode(T,{type:"line",animated:"",value:d.unref(r).conditionType,"onUpdate:value":x[7]||(x[7]=R=>d.unref(r).conditionType=R)},{default:d.withCtx(()=>[d.createVNode($,{name:d.unref(I6)[0].value,tab:d.unref(I6)[0].label},{default:d.withCtx(()=>[d.createVNode(S,{"x-gap":"12",cols:24},{default:d.withCtx(()=>[d.createVNode(C,{span:10},{default:d.withCtx(()=>[TBe,d.createVNode(ZY,{expr:d.unref(r).operatorCondition.left,"onUpdate:expr":x[0]||(x[0]=R=>d.unref(r).operatorCondition.left=R)},null,8,["expr"])]),_:1}),d.createVNode(C,{span:4},{default:d.withCtx(()=>[RBe,d.createVNode(_,{value:d.unref(r).operatorCondition.operator,"onUpdate:value":x[1]||(x[1]=R=>d.unref(r).operatorCondition.operator=R),placeholder:"请选择操作类型",options:d.unref(OK),onKeydown:x[2]||(x[2]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},null,8,["value","options"])]),_:1}),d.createVNode(C,{span:10},{default:d.withCtx(()=>[PBe,d.createVNode(ZY,{expr:d.unref(r).operatorCondition.right,"onUpdate:expr":x[3]||(x[3]=R=>d.unref(r).operatorCondition.right=R)},null,8,["expr"])]),_:1})]),_:1}),d.createVNode(E,{wrap:!1})]),_:1},8,["name","tab"]),d.createVNode($,{name:d.unref(I6)[1].value,tab:d.unref(I6)[1].label},{default:d.withCtx(()=>[d.createVNode(k,{label:"节点 ID"},{default:d.withCtx(()=>[d.createVNode(_,{value:d.unref(r).approveCondition.approveTaskDefKey,"onUpdate:value":x[4]||(x[4]=R=>d.unref(r).approveCondition.approveTaskDefKey=R),placeholder:"请选择审批节点",options:b.value,onKeydown:x[5]||(x[5]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},null,8,["value","options"])]),_:1}),d.createVNode(k,{label:"是否审批通过"},{default:d.withCtx(()=>[d.createVNode(O,{round:!1,value:d.unref(r).approveCondition.targetApproveStatus,"onUpdate:value":x[6]||(x[6]=R=>d.unref(r).approveCondition.targetApproveStatus=R)},null,8,["value"])]),_:1})]),_:1},8,["name","tab"])]),_:1},8,["value"]),d.createVNode(j,{class:"preview-alert",title:"结果预览",type:"info"},{default:d.withCtx(()=>[d.createElementVNode("span",null,d.toDisplayString(v.value),1)]),_:1})]),_:1})])]),_:1},8,["show","style"]),d.createVNode(B,{type:"info",onClick:l},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(d.unref(i)),1)]),_:1})],64)}}}),jBe=["bpmn:Activity","bpmn:ExclusiveGateway","bpmn:InclusiveGateway","bpmn:ComplexGateway"],XY=[{label:"无条件( None )",value:"none"},{label:"默认路径( Default )",value:"default"},{label:"条件表达式( Expression )",value:"expression"},{label:"条件脚本( Script )",value:"script"}];function MBe(e){return Vn(e,jBe)}function JY(e){return Q(e,"bpmn:Event")&&!!k$(e,"bpmn:ConditionalEventDefinition")}function ABe(e){return Q(e,"bpmn:StartEvent")}function NBe(e){return Q(e,"bpmn:SequenceFlow")&&MBe(e==null?void 0:e.source)||JY(e)}function DBe(e){if(vc(e))return vc(e).get("variableName")}function IBe(e,t){var i;const n=Zt(Vt),r=vc(e);r&&((i=n.modeling)==null||i.updateModdleProperties(e,r,{variableName:t||""}))}function LBe(e){if(vc(e))return vc(e).get("variableEvents")}function BBe(e,t){var i;const n=Zt(Vt),r=vc(e);r&&((i=n.modeling)==null||i.updateModdleProperties(e,r,{variableEvents:t||""}))}function FBe(e){var n,r;const t=bu(e);return t?t.get("language")===void 0?"expression":"script":((r=(n=e.source)==null?void 0:n.businessObject)==null?void 0:r.default)===e.businessObject?"default":"none"}function zBe(e,t){if(!t||t==="none"||t==="default")return _T(e),XBe(e,t==="default");const n={language:t==="script"?"":void 0},r=Q(e,"bpmn:SequenceFlow")?rt(e):vc(e),i=R0("bpmn:FormalExpression",n,r);_T(e,i)}function QY(e){const t=bu(e);if(t)return t.get("body")}function eZ(e,t){const n=Q(e,"bpmn:SequenceFlow")?rt(e):vc(e),r=R0("bpmn:FormalExpression",{body:t},n);_T(e,r)}function VBe(e){const t=bu(e);return console.log(t),t.get("body")!==void 0?"inline":t.get(`${Ot}:resource`)!==void 0?"external":"none"}function HBe(e,t){var i;const n=Zt(Vt);let r;(!t||t==="none")&&(r={body:void 0,[`${Ot}:resource`]:void 0}),t==="inline"&&(r={body:"",[`${Ot}:resource`]:void 0}),t==="external"&&(r={body:void 0,[`${Ot}:resource`]:""}),(i=n.modeling)==null||i.updateModdleProperties(e,bu(e),r)}function UBe(e){var t;return(t=bu(e))==null?void 0:t.get("language")}function WBe(e,t){var r;(r=Zt(Vt).modeling)==null||r.updateModdleProperties(e,bu(e),{language:t})}function qBe(e){var t;return(t=bu(e))==null?void 0:t.get("body")}function GBe(e,t){var r;(r=Zt(Vt).modeling)==null||r.updateModdleProperties(e,bu(e),{body:t})}function KBe(e){var t;return(t=bu(e))==null?void 0:t.get(`${Ot}:resource`)}function YBe(e,t){var r;(r=Zt(Vt).modeling)==null||r.updateModdleProperties(e,bu(e),{[`${Ot}:resource`]:t})}function ZBe(e){return Q(e,"bpmn:SequenceFlow")?XY:XY.filter(t=>t.value!=="default")}function vc(e){return Q(e,"bpmn:Event")?k$(e,"bpmn:ConditionalEventDefinition"):!1}function bu(e){const t=rt(e);if(Q(t,"bpmn:SequenceFlow"))return t.get("conditionExpression");if(vc(t))return vc(t).get("condition")}function _T(e,t){var r,i;const n=Zt(Vt);Q(e,"bpmn:SequenceFlow")?(r=n.modeling)==null||r.updateProperties(e,{conditionExpression:t}):(i=n.modeling)==null||i.updateModdleProperties(e,vc(e),{condition:t})}function XBe(e,t){var r;(r=Zt(Vt).modeling)==null||r.updateProperties(e.source,{default:t?e:void 0})}const ST={conditionType:"OPERATOR",operatorCondition:{operator:"EQ",left:{},right:{}},approveCondition:{targetApproveStatus:!1}},tZ=e=>{const{conditionValueType:t}=e,n={conditionValueType:t};switch(t){case"EMPTY":case"CREATOR":break;case"NUMBER":n.numberValue=e.numberValue;break;case"STRING":n.stringValue=e.stringValue;break;case"STRING_LIST":n.stringValueList=e.stringValueList;break;case"TASK_OUTPUT":n.taskDefKey=e.taskDefKey,n.taskOutputKey=e.taskOutputKey;break}return n},JBe=e=>{const{left:t,right:n,operator:r}=e;return{operator:r,left:tZ(t||{}),right:tZ(n||{})}},QBe=e=>{const{conditionType:t,operatorCondition:n,approveCondition:r}=e,i={conditionType:t};switch(t){case fm.APPROVE:i.approveCondition=r;break;case fm.OPERATOR:i.operatorCondition=JBe(n);break}return i},eFe=e=>"${conditionService.isConditionMet(execution, '"+JSON.stringify(QBe(e))+"')}",nZ=e=>{const t=QY(e),r=Y6(t).args;if(r.length>=2){const i=gT(r[1]),o=JSON.parse(i.content||"{}");return{...ST,...o}}else return{...ST}},rZ=(e,t)=>{eZ(e,eFe(t))},tFe=d.defineComponent({__name:"GatewayLineProperty",props:{label:{type:String,default:"获取用户的配置"},getConditionValue:{type:Function,default:nZ},updateConditionValue:{type:Function,default:rZ}},setup(e){const t=e,n=d.ref(ST),r=d.computed(()=>NK(n.value)),i=Zt(Vt),o=()=>{n.value=t.getConditionValue(i.activeElement)},a=s=>{t.updateConditionValue(i.activeElement,s)};return Go(o),(s,l)=>{const c=d.resolveComponent("n-descriptions-item"),u=d.resolveComponent("n-descriptions"),f=d.resolveComponent("n-collapse-item");return d.openBlock(),d.createBlock(f,null,d.createSlots({header:d.withCtx(()=>[d.createVNode(Mo,{title:t.label},{default:d.withCtx(()=>[d.createVNode(d.unref(Q2))]),_:1},8,["title"])]),default:d.withCtx(()=>[d.createElementVNode("div",null,[d.createVNode(OBe,{condition:n.value,"onUpdate:condition":l[0]||(l[0]=h=>n.value=h),onOnOk:a},null,8,["condition"]),d.createVNode(u,{"label-placement":"left",column:1,bordered:"",size:"small",style:{"margin-top":"10px"}},{default:d.withCtx(()=>[d.createVNode(c,null,{label:d.withCtx(()=>[d.createTextVNode(" 类型 ")]),default:d.withCtx(()=>[d.createTextVNode(" "+d.toDisplayString(n.value.conditionType),1)]),_:1}),d.createVNode(c,null,{label:d.withCtx(()=>[d.createTextVNode(" 条件描述 ")]),default:d.withCtx(()=>[d.createTextVNode(" "+d.toDisplayString(r.value),1)]),_:1})]),_:1})])]),_:2},[n.value.approveCondition||n.value.operatorCondition?{name:"header-extra",fn:d.withCtx(()=>[d.createVNode(Ea)]),key:"0"}:void 0]),1024)}}}),nFe=d.defineComponent({__name:"property",setup(e){return(t,n)=>(d.openBlock(),d.createBlock(tFe,{label:"条件配置",getConditionValue:d.unref(nZ),updateConditionValue:d.unref(rZ)},null,8,["getConditionValue","updateConditionValue"]))}}),rFe="data:image/svg+xml,%3csvg%20t='1710226575946'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='24504'%20width='30'%20height='30'%3e%3cpath%20d='M512%20128a383.146667%20383.146667%200%200%201%20134.997333%2024.405333l-50.474666%2050.858667a320%20320%200%201%200%20225.109333%20227.626667l50.944-51.328C887.722667%20420.864%20896%20465.493333%20896%20512a384%20384%200%201%201-384-384z%20m386.56-13.994667l6.229333%205.802667a117.888%20117.888%200%200%201%200.341334%20166.4l-268.970667%20271.104a64%2064%200%200%201-27.818667%2016.426667l-179.712%2051.584a21.333333%2021.333333%200%200%201-26.368-26.410667l51.626667-180.053333a64%2064%200%200%201%2016.085333-27.392l269.184-271.36a116.906667%20116.906667%200%200%201%20159.402667-6.101334z%20m-113.962667%2051.2l-269.226666%20271.36-30.378667%20105.984%20105.728-30.293333%20268.970667-271.146667c19.498667-19.669333%2020.736-50.602667%203.754666-71.68l-4.053333-4.565333a52.906667%2052.906667%200%200%200-74.794667%200.341333z'%20fill='%232c2c2c'%20p-id='24505'%3e%3c/path%3e%3c/svg%3e",ET="workflowStatus",iZ=e=>({name:ET,type:"expression",value:e}),iFe=(e,t)=>{hm(e,iZ(t))},oFe=e=>(j0(e).find(i=>i.name===ET)||{}).expression||Y2.COMPLETED,aFe=(e,t)=>{const n=d.toRaw(j0(e)),r=n.findIndex(i=>i.name===ET);r!==-1&&pm(e,n[r],iZ(t))},sFe=(e,t)=>n=>{const r=t.createShape({type:"bpmn:ServiceTask"}),i=r.businessObject;i.set("name","设置工作流状态"),i.set("activiti:delegateExpression","${setWorkflowStatus}"),Wa(r,{name:ua,value:RK}),iFe(r,Y2.COMPLETED),e.start(n,r,void 0)},lFe=(e,t)=>{const n=sFe(e,t);return{"set-workflow-status":{group:"customnode",title:"设置工作流状态",imageUrl:rFe,action:{click:n,dragstart:n}}}},cFe=d.defineComponent({name:"EditItem",props:{label:{type:String,default:""},textAlign:{type:String,default:"right",validator:e=>["left","center","right"].includes(e)},labelWidth:{type:Number,default:80}},computed:{labelStyle(){return{width:`${this.labelWidth}px`,textAlign:this.textAlign}}}}),uFe={class:"edit-item"},dFe={class:"edit-item_content"};function fFe(e,t,n,r,i,o){return d.openBlock(),d.createElementBlock("div",uFe,[d.createElementVNode("div",{class:"edit-item_label",style:d.normalizeStyle(e.labelStyle)},d.toDisplayString(e.label)+":",5),d.createElementVNode("div",dFe,[d.renderSlot(e.$slots,"default")])])}const ui=Ba(cFe,[["render",fFe]]),hFe=d.defineComponent({__name:"WorkflowStatusProperty",props:{label:{type:String,default:"设置工作流状态"}},setup(e){const t=e,n=d.ref(""),r=Zt(Vt),i=()=>{n.value=oFe(r.activeElement)},o=a=>{aFe(r.activeElement,a)};return Go(i),(a,s)=>{const l=d.resolveComponent("n-select"),c=d.resolveComponent("n-collapse-item");return d.openBlock(),d.createBlock(c,null,{"header-extra":d.withCtx(()=>[d.createVNode(Ea)]),header:d.withCtx(()=>[d.createVNode(Mo,{title:t.label},{default:d.withCtx(()=>[d.createVNode(d.unref(Q2))]),_:1},8,["title"])]),default:d.withCtx(()=>[d.createElementVNode("div",null,[d.createVNode(ui,{key:"status",label:"工作流状态","label-width":120},{default:d.withCtx(()=>[d.createVNode(l,{value:n.value,"onUpdate:value":[s[0]||(s[0]=u=>n.value=u),o],options:d.unref(nNe)},null,8,["value","options"])]),_:1})])]),_:1})}}}),pFe=d.defineComponent({__name:"property",setup(e){return(t,n)=>(d.openBlock(),d.createBlock(hFe,{label:"工作流状态的配置",disableTitle:!0}))}}),mFe="data:image/svg+xml,%3csvg%20t='1712045636499'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2673'%20width='30'%20height='30'%3e%3cpath%20d='M665.312539%201022.083593a32.578915%2032.578915%200%200%201-28.746101-18.525265l-191.640674-411.388646-419.693075-191.640674a31.30131%2031.30131%200%200%201-19.164068-30.662508%2031.940112%2031.940112%200%200%201%2020.441672-24.913287L976.409233%209.582034a31.940112%2031.940112%200%200%201%2033.217716%207.026824%2033.856519%2033.856519%200%200%201%207.665627%2033.217717l-319.401122%20953.092951a31.940112%2031.940112%200%200%201-28.746102%2021.080474zM122.33063%20378.809732l358.36806%20162.894572a28.746101%2028.746101%200%200%201%2015.970056%2015.331254l164.172177%20350.063631%20274.684966-815.750468z'%20fill='%232c2c2c'%20p-id='2674'%3e%3c/path%3e%3cpath%20d='M467.283843%20602.390518a34.495321%2034.495321%200%200%201-19.164068-8.943232%2031.940112%2031.940112%200%200%201%200-45.354959L964.27199%2017.247661a31.940112%2031.940112%200%200%201%2045.354959%200%2031.940112%2031.940112%200%200%201%200%2045.354959l-519.346225%20530.205864a32.578915%2032.578915%200%200%201-22.996881%209.582034z'%20fill='%232c2c2c'%20p-id='2675'%3e%3c/path%3e%3c/svg%3e",gFe=(e,t)=>n=>{const r=t.createShape({type:"bpmn:ServiceTask"}),i=r.businessObject;i.set("name","创建抄送节点"),i.set("activiti:delegateExpression","${ccService}"),Wa(r,{name:ua,value:E$}),P$(r,tl),e.start(n,r,void 0)},vFe=(e,t)=>{const n=gFe(e,t);return{"carbon-copy":{group:"customnode",title:"抄送节点",imageUrl:mFe,action:{click:n,dragstart:n}}}},bFe=d.defineComponent({__name:"property",setup(e){return(t,n)=>(d.openBlock(),d.createBlock(vm,{label:"配置抄送人员"}))}}),yFe="data:image/svg+xml,%3csvg%20t='1711077139435'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='6912'%20width='30'%20height='30'%3e%3cpath%20d='M816%20816m-32%200a32%2032%200%201%200%2064%200%2032%2032%200%201%200-64%200Z'%20fill='%232c2c2c'%20p-id='6913'%3e%3c/path%3e%3cpath%20d='M512%20968a456%20456%200%201%201%20395.76-229.36%2032%2032%200%200%201-55.52-32%20392%20392%200%201%200-145.44%20145.44%2032%2032%200%200%201%2032%2055.52A456%20456%200%200%201%20512%20968z'%20fill='%232c2c2c'%20p-id='6914'%3e%3c/path%3e%3cpath%20d='M576%20672H448a96%2096%200%200%201-96-96V448a96%2096%200%200%201%2096-96h128a96%2096%200%200%201%2096%2096v128a96%2096%200%200%201-96%2096zM448%20416a32%2032%200%200%200-32%2032v128a32%2032%200%200%200%2032%2032h128a32%2032%200%200%200%2032-32V448a32%2032%200%200%200-32-32H448z'%20fill='%232c2c2c'%20p-id='6915'%3e%3c/path%3e%3c/svg%3e",xFe=(e,t,n,r)=>{rb(e,{event:t,type:"delegateExpression",delegateExpression:n,fields:r},"ExecutionListener")},wFe=e=>{xFe(e,"start","${workflowCompleteListener}")},CFe=(e,t)=>n=>{const r=t.createShape({type:"bpmn:EndEvent"});r.businessObject.set("name","结束节点"),Wa(r,{name:ua,value:zAe}),wFe(r),e.start(n,r,void 0)},_Fe=(e,t)=>{const n=CFe(e,t);return{"leave-end":{group:"customnode",title:"结束节点",imageUrl:yFe,action:{click:n,dragstart:n}}}},SFe="data:image/svg+xml,%3csvg%20t='1711096750865'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='8155'%20width='30'%20height='30'%3e%3cpath%20d='M953.274192%20628.793006l-21.366633-21.325701c-5.910617-5.880941-15.507182-5.880941-21.391193%200l-32.075533%2031.949666%2042.75885%2042.652426%2032.075533-31.949666C959.186855%20644.23879%20959.186855%20634.704646%20953.274192%20628.793006zM728.751602%20788.699949l-14.251585%2056.841589%2056.979736-14.21884L728.751602%20788.699949zM739.51576%20778.022773l42.72815%2042.621726%20128.300085-127.927601-42.756803-42.652426L739.51576%20778.022773zM839.594083%20865.172645c0%2038.442544-27.164686%2052.501748-65.626673%2052.501748L157.075455%20917.674393c-16.229636%200.966001-52.501748-33.390481-52.501748-52.501748L104.573707%20156.403143c1.426489-19.86135%2034.018791-52.501748%2052.501748-52.501748l616.891955%200c30.474059-0.665149%2065.626673%2031.57002%2065.626673%2052.501748L839.594083%20589.540004c0%2010.377348%2039.375799%2010.377348%2039.375799%200L878.969882%20169.528068c0-53.803393-47.801702-105.002472-101.634772-105.002472L162.815179%2064.525596c-53.827953%200-97.617271%2043.767829-97.617271%2097.571223l0%20697.383174c0%2053.80237%2043.789319%2097.570199%2097.617271%2097.570199l614.519931%200c53.834092%200%20101.634772-38.075177%20101.634772-91.877547C878.969882%20846.096171%20839.594083%20846.096171%20839.594083%20865.172645zM252.739235%20240.400209c-5.16565-5.158487-12.421914-8.162914-19.723204-8.162914-7.30129%200-14.557554%203.004427-19.718087%208.162914-5.164626%205.16258-8.172123%2012.413727-8.172123%2019.713994%200%207.297197%203.007497%2014.549368%208.172123%2019.711947%205.160533%205.15951%2012.416797%208.162914%2019.718087%208.162914%207.30129%200%2014.557554-3.003404%2019.723204-8.162914%205.164626-5.16258%208.170077-12.413727%208.170077-19.711947C260.909311%20252.813936%20257.903861%20245.562788%20252.739235%20240.400209zM629.588115%20235.154741%20288.328801%20235.154741c-15.683191%200-15.244192%2038.895869%200.440022%2038.895869l340.819293%200.479931C645.457548%20274.531564%20645.457548%20235.154741%20629.588115%20235.154741zM252.739235%20342.627475c-5.16565-5.158487-12.421914-8.162914-19.723204-8.162914-7.30129%200-14.557554%203.004427-19.718087%208.162914-5.164626%205.16258-8.172123%2012.413727-8.172123%2019.712971%200%207.299243%203.007497%2014.550391%208.172123%2019.712971%205.160533%205.15951%2012.416797%208.163937%2019.718087%208.163937%207.30129%200%2014.557554-3.004427%2019.723204-8.163937%205.164626-5.16258%208.170077-12.413727%208.170077-19.712971C260.909311%20355.041202%20257.903861%20347.789031%20252.739235%20342.627475zM629.588115%20340.158237%20288.328801%20340.158237c-15.868409%200-15.868409%2039.375799%200%2039.375799l341.259314%200C645.457548%20379.534036%20645.457548%20340.158237%20629.588115%20340.158237zM252.739235%20444.853717c-5.16565-5.158487-12.421914-8.162914-19.723204-8.162914-7.30129%200-14.557554%203.004427-19.718087%208.162914-5.164626%205.16258-8.172123%2012.413727-8.172123%2019.712971%200%207.299243%203.007497%2014.550391%208.172123%2019.713994%205.160533%205.16258%2012.416797%208.162914%2019.718087%208.162914%207.30129%200%2014.557554-3.000334%2019.723204-8.162914%205.164626-5.163603%208.170077-12.415774%208.170077-19.713994C260.909311%20457.267445%20257.903861%20450.016297%20252.739235%20444.853717zM233.016031%20538.88737c-7.30129%200-14.557554%203.004427-19.718087%208.167007-5.164626%205.158487-8.172123%2012.413727-8.172123%2019.712971s3.007497%2014.552437%208.172123%2019.708877c5.160533%205.163603%2012.416797%208.167007%2019.718087%208.167007%207.30129%200%2014.557554-3.003404%2019.723204-8.167007%205.164626-5.15644%208.170077-12.409634%208.170077-19.708877s-3.00545-14.554484-8.170077-19.712971C247.573585%20541.891797%20240.317321%20538.88737%20233.016031%20538.88737zM629.588115%20445.160709%20288.328801%20445.160709c-15.683191%200-15.244192%2038.895869%200.440022%2038.895869l340.819293%200.479931C645.457548%20484.537532%20645.457548%20445.160709%20629.588115%20445.160709zM629.588115%20550.164205%20288.328801%20550.164205c-15.868409%200-15.868409%2039.375799%200%2039.375799l341.259314%200C645.457548%20589.540004%20645.457548%20550.164205%20629.588115%20550.164205z'%20fill='%232c2c2c'%20p-id='8156'%3e%3c/path%3e%3c/svg%3e",EFe=(e,t)=>n=>{const r=t.createShape({type:"bpmn:UserTask"}),i=r.businessObject;i.set("name","创建整改节点"),i.set("activiti:assignee",JSON.stringify(tl)),Wa(r,{name:ua,value:$K}),fBe(r),e.start(n,r,void 0)},kFe=(e,t)=>{const n=EFe(e,t);return{"reform-user":{group:"customnode",title:"整改节点",imageUrl:SFe,action:{click:n,dragstart:n}}}},$Fe=d.defineComponent({__name:"property",setup(e){const t=d.ref("整改配置");return(n,r)=>(d.openBlock(),d.createBlock(vm,{label:t.value,getUserValue:d.unref(wT),updateUserValue:d.unref(CT)},null,8,["label","getUserValue","updateUserValue"]))}}),TFe=(e,t)=>({...pNe(e,t),...fLe(e,t),...CLe(e,t),...aLe(e,t),...kLe(e,t),...PLe(e,t),...iBe(e,t),...pBe(e,t),...bBe(e,t),...CBe(e,t),...kFe(e,t),...vFe(e,t),...kBe(e,t),...lFe(e,t),..._Fe(e,t)}),RFe=e=>e?!!g$(e).find(r=>r.name===ua):!1,kT=e=>{if(!e)return!1;const n=g$(e).find(r=>r.name===ua);return n?n.value:""},PFe=e=>{const t=e.businessObject;let n=kT(e);const r=[];if(Q(t,"bpmn:SequenceFlow")){const o=t.sourceRef;Q(o,"bpmn:ExclusiveGateway")&&(n=kT(o))}switch(n){case dm:r.push(rLe);break;case w$:r.push(yLe);break;case C$:r.push(_Le);break;case G2:r.push(sLe);break;case y$:r.push($Le);break;case x$:r.push(OLe);break;case N6:r.push(sBe);break;case D6:r.push(mBe);break;case S$:r.push(yBe);break;case _$:r.push(_Be);break;case $K:r.push($Fe);break;case E$:r.push(bFe);break;case TK:Q(t,"bpmn:SequenceFlow")&&r.push(nFe);break;case RK:r.push(pFe);break;default:n&&console.error(`未知的业务类型${n},无法获取右侧属性面板`);break}return{isBizCustom:!!n,propComponents:r}};Hs.createPinia();const Zt=Hs.defineStore("modeler",()=>{const e=d.shallowRef(void 0),t=d.shallowRef(void 0),n=d.shallowRef(void 0),r=d.shallowRef(void 0),i=d.ref(void 0),o=d.shallowRef(void 0),a=d.ref(void 0);return{modeler:t,moddle:n,modeling:e,canvas:r,elementRegistry:i,activeElement:o,activeElementId:a,setModeler:c=>{t.value=c,c?(e.value=c.get("modeling"),n.value=c.get("moddle"),r.value=c.get("canvas"),i.value=c.get("elementRegistry")):e.value=n.value=r.value=i.value=void 0},setElement:c=>{const u=RFe(c);o.value=d.toRaw(c),a.value=c==null?void 0:c.id}}});function OFe(e){if(!Vn(e,["bpmn:Collaboration","bpmn:DataAssociation","bpmn:Association"])){if(Q(e,"bpmn:TextAnnotation"))return e.businessObject.text;if(Q(e,"bpmn:Group")){const t=rt(e),n=t==null?void 0:t.categoryValueRef;return n==null?void 0:n.value}return e==null?void 0:e.businessObject.name}}function jFe(e,t){var i,o,a,s;const n=Zt(Vt),r=(i=n.modeler)==null?void 0:i.get("bpmnFactory");if(!Vn(e,["bpmn:Collaboration","bpmn:DataAssociation","bpmn:Association"])){if(Q(e,"bpmn:TextAnnotation"))return(o=n.modeling)==null?void 0:o.updateModdleProperties(e,e.businessObject,{text:t});if(Q(e,"bpmn:Group")){const l=rt(e);return l.categoryValueRef||AFe(l,canvas==null?void 0:canvas.getRootElement(),r),(a=n.modeling)==null?void 0:a.updateLabel(e,t)}(s=n.modeling)==null||s.updateModdleProperties(e,e.businessObject,{name:t})}}function MFe(e,t){const n=t.create("bpmn:CategoryValue"),r=t.create("bpmn:Category",{categoryValue:[n]});return ao(e.get("rootElements"),r),rt(r).$parent=e,rt(n).$parent=r,n}function AFe(e,t,n){const r=rt(t).$parent;e.categoryValueRef=MFe(r,n)}const NFe=/\s/,DFe=/^([a-z][\w-.]*:)?[a-z_][\w-.]*$/i,IFe=/^[a-z_][\w-.]*$/i;function LFe(e){return NFe.test(e)}function BFe(e,t){const n=e.$model.ids.assigned(t),r=n&&n!==e;return t?r?"ID 必须是唯一的":FFe(t):"ID 不能为空."}function FFe(e){if(LFe(e))return"ID 不能包含空格";if(!IFe.test(e))return DFe.test(e)?"ID 不能包含前缀":"ID 必须符合 BPMN 规范"}function oZ(e,t){var o;const n=BFe(e.businessObject,t),r=s9();if(n&&n.length)return r.warning(n);(o=Zt(Vt).modeling)==null||o.updateProperties(e,{id:t})}function zFe(e){return!!e.businessObject.isExecutable}function VFe(e,t){var r;(r=Zt(Vt).modeling)==null||r.updateProperties(e,{isExecutable:t})}function HFe(e){return e.businessObject.get(`${Ot}:versionTag`)}function UFe(e,t){var r;(r=Zt(Vt).modeling)==null||r.updateProperties(e,{[`${Ot}:versionTag`]:t})}const WFe=d.defineComponent({__name:"ElementGenerations",setup(e){const t=s9(),n=d.ref(""),r=d.ref(""),i=d.ref(""),o=d.ref(!0),a=d.ref(!1),s=Zt(Vt);function l(p){a.value=!!s.activeElement&&s.activeElement.type==="bpmn:Process",n.value=s.activeElementId,r.value=OFe(s.activeElement)||"",a.value&&(o.value=zFe(s.activeElement),i.value=HFe(s.activeElement)||"")}function c(p){jFe(s.activeElement,p)}function u(p){oZ(s.activeElement,p)}function f(p){/((\d|([1-9](\d*))).){2}(\d|([1-9](\d*)))/.test(p)?UFe(s.activeElement,p):t.error("版本号必须符合语义化版本2.0.0 要点")}function h(p){VFe(s.activeElement,p)}return Go(l),(p,m)=>{const b=d.resolveComponent("n-input"),v=d.resolveComponent("n-switch"),g=d.resolveComponent("n-collapse-item");return d.openBlock(),d.createBlock(g,{name:"base-info"},d.createSlots({header:d.withCtx(()=>[d.createVNode(Mo,{title:p.$t("panel.general")},{default:d.withCtx(()=>[d.createVNode(d.unref(QDe))]),_:1},8,["title"])]),default:d.withCtx(()=>[d.createVNode(ui,{label:p.$t("panel.id")},{default:d.withCtx(()=>[d.createVNode(b,{value:n.value,"onUpdate:value":m[0]||(m[0]=y=>n.value=y),maxlength:"32",onChange:u},null,8,["value"])]),_:1},8,["label"]),d.createVNode(ui,{label:p.$t("panel.name")},{default:d.withCtx(()=>[d.createVNode(b,{value:r.value,"onUpdate:value":m[1]||(m[1]=y=>r.value=y),maxlength:"20",onChange:c},null,8,["value"])]),_:1},8,["label"]),a.value?(d.openBlock(),d.createElementBlock(d.Fragment,{key:0},[d.createVNode(ui,{key:"version",label:p.$t("panel.version")},{default:d.withCtx(()=>[d.createVNode(b,{value:i.value,"onUpdate:value":m[2]||(m[2]=y=>i.value=y),maxlength:"20",onChange:f},null,8,["value"])]),_:1},8,["label"]),d.createVNode(ui,{key:"executable",label:p.$t("panel.executable")},{default:d.withCtx(()=>[d.createVNode(v,{value:o.value,"onUpdate:value":[m[3]||(m[3]=y=>o.value=y),h]},null,8,["value"])]),_:1},8,["label"])],64)):d.createCommentVNode("",!0)]),_:2},[r.value||i.value||o.value?{name:"header-extra",fn:d.withCtx(()=>[d.createVNode(Ea)]),key:"0"}:void 0]),1024)}}});function $T(e){const t=e==null?void 0:e.businessObject,n=t&&sZ(t.get("documentation"));return n&&n.text}function qFe(e,t){var a,s,l,c;const n=Zt(Vt),r=(a=n.modeler)==null?void 0:a.get("bpmnFactory"),i=e.businessObject,o=sZ(i&&i.get("documentation"));if(o)return t?(s=n.modeling)==null?void 0:s.updateModdleProperties(e,o,{text:t}):(l=n.modeling)==null?void 0:l.updateModdleProperties(e,i,{documentation:Lv(i.get("documentation"),o)});if(t){const u=r==null?void 0:r.create("bpmn:Documentation",{text:t});return(c=n.modeling)==null?void 0:c.updateModdleProperties(e,i,{documentation:[...i.get("documentation"),u]})}}const aZ="text/plain";function sZ(e){return e.find(function(t){return(t.textFormat||aZ)===aZ})}const GFe=d.defineComponent({__name:"ElementDocumentations",setup(e){const t=d.ref(""),n=Zt(Vt),{activeElementId:r}=Hs.storeToRefs(n);d.watch(()=>r,()=>{t.value=$T(n.activeElement)||""},{immediate:!0}),d.onMounted(()=>{t.value=$T(n.activeElement)||"",lf.on("element-update",()=>{t.value=$T(n.activeElement)||""})});const i=o=>{qFe(n.activeElement,o)};return(o,a)=>{const s=d.resolveComponent("n-input"),l=d.resolveComponent("n-collapse-item");return d.openBlock(),d.createBlock(l,{name:"element-documentations"},d.createSlots({header:d.withCtx(()=>[d.createVNode(Mo,{title:o.$t("panel.documentationSettings")},{default:d.withCtx(()=>[d.createVNode(d.unref(U6))]),_:1},8,["title"])]),default:d.withCtx(()=>[d.createVNode(ui,{label:o.$t("panel.documentationBody")},{default:d.withCtx(()=>[d.createVNode(s,{value:t.value,"onUpdate:value":a[0]||(a[0]=c=>t.value=c),type:"textarea",onChange:i},null,8,["value"])]),_:1},8,["label"])]),_:2},[t.value?{name:"header-extra",fn:d.withCtx(()=>[d.createVNode(Ea)]),key:"0"}:void 0]),1024)}}});function ei(e){return Array.isArray(e)}function Ri(e){return e!==null&&typeof e=="object"&&(e.constructor===void 0||e.constructor.name==="Object")}function lZ(e){return e&&typeof e=="object"?e.op==="add":!1}function cZ(e){return e&&typeof e=="object"?e.op==="remove":!1}function TT(e){return e&&typeof e=="object"?e.op==="replace":!1}function RT(e){return e&&typeof e=="object"?e.op==="copy":!1}function xm(e){return e&&typeof e=="object"?e.op==="move":!1}function KFe(e,t){return JSON.stringify(e)===JSON.stringify(t)}function YFe(e,t){return e===t}function uZ(e){return e.slice(0,e.length-1)}function ZFe(e){return e[e.length-1]}function XFe(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:YFe;if(e.length<t.length)return!1;for(let r=0;r<t.length;r++)if(!n(e[r],t[r]))return!1;return!0}function dZ(e){return typeof e=="object"&&e!==null}function PT(e){if(ei(e)){const t=e.slice();return Object.getOwnPropertySymbols(e).forEach(n=>{t[n]=e[n]}),t}else if(Ri(e)){const t={...e};return Object.getOwnPropertySymbols(e).forEach(n=>{t[n]=e[n]}),t}else return e}function OT(e,t,n){if(e[t]===n)return e;{const r=PT(e);return r[t]=n,r}}function Ut(e,t){let n=e,r=0;for(;r<t.length;)Ri(n)?n=n[t[r]]:ei(n)?n=n[parseInt(t[r])]:n=void 0,r++;return n}function bc(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(t.length===0)return n;const i=t[0],o=bc(e?e[i]:void 0,t.slice(1),n,r);if(Ri(e)||ei(e))return OT(e,i,o);if(r){const a=JFe.test(i)?[]:{};return a[i]=o,a}else throw new Error("Path does not exist")}const JFe=/^\d+$/;function fZ(e,t,n){if(t.length===0)return n(e);if(!dZ(e))throw new Error("Path doesn't exist");const r=t[0],i=fZ(e[r],t.slice(1),n);return OT(e,r,i)}function jT(e,t){if(t.length===0)return e;if(!dZ(e))throw new Error("Path does not exist");if(t.length===1){const i=t[0];if(i in e){const o=PT(e);return ei(o)&&o.splice(parseInt(i),1),Ri(o)&&delete o[i],o}else return e}const n=t[0],r=jT(e[n],t.slice(1));return OT(e,n,r)}function MT(e,t,n){const r=t.slice(0,t.length-1),i=t[t.length-1];return fZ(e,r,o=>{if(!Array.isArray(o))throw new TypeError("Array expected at path "+JSON.stringify(r));const a=PT(o);return a.splice(parseInt(i),0,n),a})}function Al(e,t){return e===void 0?!1:t.length===0?!0:e===null?!1:Al(e[t[0]],t.slice(1))}function yc(e){const t=e.split("/");return t.shift(),t.map(n=>n.replace(/~1/g,"/").replace(/~0/g,"~"))}function Mt(e){return e.map(hZ).join("")}function hZ(e){return"/"+String(e).replace(/~/g,"~0").replace(/\//g,"~1")}function pZ(e,t){return e+hZ(t)}function J6(e,t){return e.startsWith(t)&&(e.length===t.length||e[t.length]==="/")}function xc(e,t,n){let r=e;for(let i=0;i<t.length;i++){aze(t[i]);let o=t[i];if(n&&n.before){const l=n.before(r,o);if(l!==void 0){if(l.document!==void 0&&(r=l.document),l.json!==void 0)throw new Error('Deprecation warning: returned object property ".json" has been renamed to ".document"');l.operation!==void 0&&(o=l.operation)}}const a=r,s=yu(r,o.path);if(o.op==="add")r=tze(r,s,o.value);else if(o.op==="remove")r=eze(r,s);else if(o.op==="replace")r=QFe(r,s,o.value);else if(o.op==="copy")r=nze(r,s,AT(o.from));else if(o.op==="move")r=rze(r,s,AT(o.from));else if(o.op==="test")ize(r,s,o.value);else throw new Error("Unknown JSONPatch operation "+JSON.stringify(o));if(n&&n.after){const l=n.after(r,o,a);l!==void 0&&(r=l)}}return r}function QFe(e,t,n){return bc(e,t,n)}function eze(e,t){return jT(e,t)}function tze(e,t,n){return ib(e,t)?MT(e,t,n):bc(e,t,n)}function nze(e,t,n){const r=Ut(e,n);if(ib(e,t))return MT(e,t,r);{const i=Ut(e,n);return bc(e,t,i)}}function rze(e,t,n){const r=Ut(e,n),i=jT(e,n);return ib(i,t)?MT(i,t,r):bc(i,t,r)}function ize(e,t,n){if(n===void 0)throw new Error(`Test failed: no value provided (path: "${Mt(t)}")`);if(!Al(e,t))throw new Error(`Test failed: path not found (path: "${Mt(t)}")`);const r=Ut(e,t);if(!KFe(r,n))throw new Error(`Test failed, value differs (path: "${Mt(t)}")`)}function ib(e,t){if(t.length===0)return!1;const n=Ut(e,uZ(t));return Array.isArray(n)}function oze(e,t){if(ZFe(t)!=="-")return t;const n=uZ(t),r=Ut(e,n);return n.concat(r.length)}function aze(e){if(!["add","remove","replace","copy","move","test"].includes(e.op))throw new Error("Unknown JSONPatch op "+JSON.stringify(e.op));if(typeof e.path!="string")throw new Error('Required property "path" missing or not a string in operation '+JSON.stringify(e));if((e.op==="copy"||e.op==="move")&&typeof e.from!="string")throw new Error('Required property "from" missing or not a string in operation '+JSON.stringify(e))}function yu(e,t){return oze(e,yc(t))}function AT(e){return yc(e)}function mZ(e,t,n){let r=[];return xc(e,t,{before:(o,a)=>{let s;const l=yu(o,a.path);if(a.op==="add")s=bZ(o,l);else if(a.op==="remove")s=vZ(o,l);else if(a.op==="replace")s=gZ(o,l);else if(a.op==="copy")s=sze(o,l);else if(a.op==="move")s=lze(o,l,AT(a.from));else if(a.op==="test")s=[];else throw new Error("Unknown JSONPatch operation "+JSON.stringify(a));let c;if(n&&n.before){const u=n.before(o,a,s);if(u&&u.revertOperations&&(s=u.revertOperations),u&&u.document&&(c=u.document),u&&u.json)throw new Error('Deprecation warning: returned object property ".json" has been renamed to ".document"')}if(r=s.concat(r),c!==void 0)return{document:c}}}),r}function gZ(e,t){return[{op:"replace",path:Mt(t),value:Ut(e,t)}]}function vZ(e,t){return[{op:"add",path:Mt(t),value:Ut(e,t)}]}function bZ(e,t){return ib(e,t)||!Al(e,t)?[{op:"remove",path:Mt(t)}]:gZ(e,t)}function sze(e,t){return bZ(e,t)}function lze(e,t,n){if(t.length<n.length&&XFe(n,t))return[{op:"replace",path:Mt(t),value:e}];const r={op:"move",from:Mt(t),path:Mt(n)};return!ib(e,t)&&Al(e,t)?[r,...vZ(e,t)]:[r]}var Q6={},yZ={b:"\b",f:"\f",n:`
|
4052
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lDe(e,t){if(e){if(typeof e=="string")return uY(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uY(e,t)}}function uY(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function cDe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,a,s;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw s}}return r}}function uDe(e){if(Array.isArray(e))return e}function dY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){J2(e,i,n[i])})}return e}function J2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dDe(e,t){if(e==null)return{};var n=fDe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function fDe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}cY(ONe.primary);var gm=function(t,n){var r,i=dY({},t,n.attrs),o=i.class,a=i.icon,s=i.spin,l=i.rotate,c=i.tabindex,u=i.twoToneColor,f=i.onClick,h=dDe(i,oDe),p=JK(),m=p.prefixCls,b=p.rootClassName,v=(r={},J2(r,b.value,!!b.value),J2(r,m.value,!0),J2(r,"".concat(m.value,"-").concat(a.name),!!a.name),J2(r,"".concat(m.value,"-spin"),!!s||a.name==="loading"),r),g=c;g===void 0&&f&&(g=-1);var y=l?{msTransform:"rotate(".concat(l,"deg)"),transform:"rotate(".concat(l,"deg)")}:void 0,w=aY(u),x=aDe(w,2),C=x[0],_=x[1];return d.createVNode("span",dY({role:"img","aria-label":a.name},h,{onClick:f,class:[v,o],tabindex:g}),[d.createVNode(V$,{icon:a,primaryColor:C,secondaryColor:_,style:y},null),d.createVNode(iDe,null,null)])};gm.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:[String,Array]},gm.displayName="AntdIcon",gm.inheritAttrs=!1,gm.getTwoToneColor=rDe,gm.setTwoToneColor=cY;const fo=gm;var hDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M952 474H829.8C812.5 327.6 696.4 211.5 550 194.2V72c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v122.2C327.6 211.5 211.5 327.6 194.2 474H72c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h122.2C211.5 696.4 327.6 812.5 474 829.8V952c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V829.8C696.4 812.5 812.5 696.4 829.8 550H952c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zM512 756c-134.8 0-244-109.2-244-244s109.2-244 244-244 244 109.2 244 244-109.2 244-244 244z"}},{tag:"path",attrs:{d:"M512 392c-32.1 0-62.1 12.4-84.8 35.2-22.7 22.7-35.2 52.7-35.2 84.8s12.5 62.1 35.2 84.8C449.9 619.4 480 632 512 632s62.1-12.5 84.8-35.2C619.4 574.1 632 544 632 512s-12.5-62.1-35.2-84.8A118.57 118.57 0 00512 392z"}}]},name:"aim",theme:"outlined"};const pDe=hDe;function fY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){mDe(e,i,n[i])})}return e}function mDe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var H$=function(t,n){var r=fY({},t,n.attrs);return d.createVNode(fo,fY({},r,{icon:pDe}),null)};H$.displayName="AimOutlined",H$.inheritAttrs=!1;const gDe=H$;var vDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M855 160.1l-189.2 23.5c-6.6.8-9.3 8.8-4.7 13.5l54.7 54.7-153.5 153.5a8.03 8.03 0 000 11.3l45.1 45.1c3.1 3.1 8.2 3.1 11.3 0l153.6-153.6 54.7 54.7a7.94 7.94 0 0013.5-4.7L863.9 169a7.9 7.9 0 00-8.9-8.9zM416.6 562.3a8.03 8.03 0 00-11.3 0L251.8 715.9l-54.7-54.7a7.94 7.94 0 00-13.5 4.7L160.1 855c-.6 5.2 3.7 9.5 8.9 8.9l189.2-23.5c6.6-.8 9.3-8.8 4.7-13.5l-54.7-54.7 153.6-153.6c3.1-3.1 3.1-8.2 0-11.3l-45.2-45z"}}]},name:"arrows-alt",theme:"outlined"};const bDe=vDe;function hY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){yDe(e,i,n[i])})}return e}function yDe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var U$=function(t,n){var r=hY({},t,n.attrs);return d.createVNode(fo,hY({},r,{icon:bDe}),null)};U$.displayName="ArrowsAltOutlined",U$.inheritAttrs=!1;const gu=U$;var xDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M296 250c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm184 144H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-48 458H208V148h560v320c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm440-88H728v-36.6c46.3-13.8 80-56.6 80-107.4 0-61.9-50.1-112-112-112s-112 50.1-112 112c0 50.7 33.7 93.6 80 107.4V764H520c-8.8 0-16 7.2-16 16v152c0 8.8 7.2 16 16 16h352c8.8 0 16-7.2 16-16V780c0-8.8-7.2-16-16-16zM646 620c0-27.6 22.4-50 50-50s50 22.4 50 50-22.4 50-50 50-50-22.4-50-50zm180 266H566v-60h260v60z"}}]},name:"audit",theme:"outlined"};const wDe=xDe;function pY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){CDe(e,i,n[i])})}return e}function CDe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var W$=function(t,n){var r=pY({},t,n.attrs);return d.createVNode(fo,pY({},r,{icon:wDe}),null)};W$.displayName="AuditOutlined",W$.inheritAttrs=!1;const Q2=W$;var _De={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"};const SDe=_De;function mY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){EDe(e,i,n[i])})}return e}function EDe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var q$=function(t,n){var r=mY({},t,n.attrs);return d.createVNode(fo,mY({},r,{icon:SDe}),null)};q$.displayName="ClockCircleOutlined",q$.inheritAttrs=!1;const kDe=q$;var $De={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M180 176h-60c-4.4 0-8 3.6-8 8v656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V184c0-4.4-3.6-8-8-8zm724 0h-60c-4.4 0-8 3.6-8 8v656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V184c0-4.4-3.6-8-8-8zM785.3 504.3L657.7 403.6a7.23 7.23 0 00-11.7 5.7V476H378v-62.8c0-6-7-9.4-11.7-5.7L238.7 508.3a7.14 7.14 0 000 11.3l127.5 100.8c4.7 3.7 11.7.4 11.7-5.7V548h268v62.8c0 6 7 9.4 11.7 5.7l127.5-100.8c3.8-2.9 3.8-8.5.2-11.4z"}}]},name:"column-width",theme:"outlined"};const TDe=$De;function gY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){RDe(e,i,n[i])})}return e}function RDe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var G$=function(t,n){var r=gY({},t,n.attrs);return d.createVNode(fo,gY({},r,{icon:TDe}),null)};G$.displayName="ColumnWidthOutlined",G$.inheritAttrs=!1;const PDe=G$;var ODe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};const jDe=ODe;function vY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){MDe(e,i,n[i])})}return e}function MDe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var K$=function(t,n){var r=vY({},t,n.attrs);return d.createVNode(fo,vY({},r,{icon:jDe}),null)};K$.displayName="EditOutlined",K$.inheritAttrs=!1;const ADe=K$;var NDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"};const DDe=NDe;function bY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){IDe(e,i,n[i])})}return e}function IDe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Y$=function(t,n){var r=bY({},t,n.attrs);return d.createVNode(fo,bY({},r,{icon:DDe}),null)};Y$.displayName="FileTextOutlined",Y$.inheritAttrs=!1;const U6=Y$;var LDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 597.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V597.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V642h182.9v156zm9.6-236.6l-9.5 16.6h-183l-9.5-16.6L212.7 226h598.6L613 561.4z"}}]},name:"filter",theme:"outlined"};const BDe=LDe;function yY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){FDe(e,i,n[i])})}return e}function FDe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Z$=function(t,n){var r=yY({},t,n.attrs);return d.createVNode(fo,yY({},r,{icon:BDe}),null)};Z$.displayName="FilterOutlined",Z$.inheritAttrs=!1;const zDe=Z$;var VDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 512h-56c-4.4 0-8 3.6-8 8v320H184V184h320c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V520c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M355.9 534.9L354 653.8c-.1 8.9 7.1 16.2 16 16.2h.4l118-2.9c2-.1 4-.9 5.4-2.3l415.9-415c3.1-3.1 3.1-8.2 0-11.3L785.4 114.3c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-415.8 415a8.3 8.3 0 00-2.3 5.6zm63.5 23.6L779.7 199l45.2 45.1-360.5 359.7-45.7 1.1.7-46.4z"}}]},name:"form",theme:"outlined"};const HDe=VDe;function xY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){UDe(e,i,n[i])})}return e}function UDe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var X$=function(t,n){var r=xY({},t,n.attrs);return d.createVNode(fo,xY({},r,{icon:HDe}),null)};X$.displayName="FormOutlined",X$.inheritAttrs=!1;const WDe=X$;var qDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M841 370c3-3.3 2.7-8.3-.6-11.3a8.24 8.24 0 00-5.3-2.1h-72.6c-2.4 0-4.6 1-6.1 2.8L633.5 504.6a7.96 7.96 0 01-13.4-1.9l-63.5-141.3a7.9 7.9 0 00-7.3-4.7H380.7l.9-4.7 8-42.3c10.5-55.4 38-81.4 85.8-81.4 18.6 0 35.5 1.7 48.8 4.7l14.1-66.8c-22.6-4.7-35.2-6.1-54.9-6.1-103.3 0-156.4 44.3-175.9 147.3l-9.4 49.4h-97.6c-3.8 0-7.1 2.7-7.8 6.4L181.9 415a8.07 8.07 0 007.8 9.7H284l-89 429.9a8.07 8.07 0 007.8 9.7H269c3.8 0 7.1-2.7 7.8-6.4l89.7-433.1h135.8l68.2 139.1c1.4 2.9 1 6.4-1.2 8.8l-180.6 203c-2.9 3.3-2.6 8.4.7 11.3 1.5 1.3 3.4 2 5.3 2h72.7c2.4 0 4.6-1 6.1-2.8l123.7-146.7c2.8-3.4 7.9-3.8 11.3-1 .9.8 1.6 1.7 2.1 2.8L676.4 784c1.3 2.8 4.1 4.7 7.3 4.7h64.6a8.02 8.02 0 007.2-11.5l-95.2-198.9c-1.4-2.9-.9-6.4 1.3-8.8L841 370z"}}]},name:"function",theme:"outlined"};const GDe=qDe;function wY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){KDe(e,i,n[i])})}return e}function KDe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var J$=function(t,n){var r=wY({},t,n.attrs);return d.createVNode(fo,wY({},r,{icon:GDe}),null)};J$.displayName="FunctionOutlined",J$.inheritAttrs=!1;const YDe=J$;var ZDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"};const XDe=ZDe;function CY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){JDe(e,i,n[i])})}return e}function JDe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Q$=function(t,n){var r=CY({},t,n.attrs);return d.createVNode(fo,CY({},r,{icon:XDe}),null)};Q$.displayName="InfoCircleOutlined",Q$.inheritAttrs=!1;const QDe=Q$;var eIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"};const tIe=eIe;function _Y(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){nIe(e,i,n[i])})}return e}function nIe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var eT=function(t,n){var r=_Y({},t,n.attrs);return d.createVNode(fo,_Y({},r,{icon:tIe}),null)};eT.displayName="LockOutlined",eT.inheritAttrs=!1;const rIe=eT;var iIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"menu",theme:"outlined"};const oIe=iIe;function SY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){aIe(e,i,n[i])})}return e}function aIe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tT=function(t,n){var r=SY({},t,n.attrs);return d.createVNode(fo,SY({},r,{icon:oIe}),null)};tT.displayName="MenuOutlined",tT.inheritAttrs=!1;const sIe=tT;var lIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 000-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0014.4 7z"}}]},name:"menu-unfold",theme:"outlined"};const cIe=lIe;function EY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){uIe(e,i,n[i])})}return e}function uIe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var nT=function(t,n){var r=EY({},t,n.attrs);return d.createVNode(fo,EY({},r,{icon:cIe}),null)};nT.displayName="MenuUnfoldOutlined",nT.inheritAttrs=!1;const dIe=nT;var fIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M719.4 499.1l-296.1-215A15.9 15.9 0 00398 297v430c0 13.1 14.8 20.5 25.3 12.9l296.1-215a15.9 15.9 0 000-25.8zm-257.6 134V390.9L628.5 512 461.8 633.1z"}}]},name:"play-circle",theme:"outlined"};const hIe=fIe;function kY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){pIe(e,i,n[i])})}return e}function pIe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rT=function(t,n){var r=kY({},t,n.attrs);return d.createVNode(fo,kY({},r,{icon:hIe}),null)};rT.displayName="PlayCircleOutlined",rT.inheritAttrs=!1;const mIe=rT;var gIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};const vIe=gIe;function $Y(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){bIe(e,i,n[i])})}return e}function bIe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var iT=function(t,n){var r=$Y({},t,n.attrs);return d.createVNode(fo,$Y({},r,{icon:vIe}),null)};iT.displayName="PlusOutlined",iT.inheritAttrs=!1;const W6=iT;var yIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656zM492 400h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0 144h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0 144h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zM340 368a40 40 0 1080 0 40 40 0 10-80 0zm0 144a40 40 0 1080 0 40 40 0 10-80 0zm0 144a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"profile",theme:"outlined"};const xIe=yIe;function TY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){wIe(e,i,n[i])})}return e}function wIe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var oT=function(t,n){var r=TY({},t,n.attrs);return d.createVNode(fo,TY({},r,{icon:xIe}),null)};oT.displayName="ProfileOutlined",oT.inheritAttrs=!1;const CIe=oT;var _Ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M788 705.9V192c0-8.8-7.2-16-16-16H602v-68.8c0-6-7-9.4-11.7-5.7L462.7 202.3a7.14 7.14 0 000 11.3l127.5 100.8c4.7 3.7 11.7.4 11.7-5.7V240h114v465.9c-44.2 15-76 56.9-76 106.1 0 61.8 50.2 112 112 112s112-50.2 112-112c.1-49.2-31.7-91-75.9-106.1zM752 860a48.01 48.01 0 010-96 48.01 48.01 0 010 96zM384 212c0-61.8-50.2-112-112-112s-112 50.2-112 112c0 49.2 31.8 91 76 106.1V706c-44.2 15-76 56.9-76 106.1 0 61.8 50.2 112 112 112s112-50.2 112-112c0-49.2-31.8-91-76-106.1V318.1c44.2-15.1 76-56.9 76-106.1zm-160 0a48.01 48.01 0 0196 0 48.01 48.01 0 01-96 0zm96 600a48.01 48.01 0 01-96 0 48.01 48.01 0 0196 0z"}}]},name:"pull-request",theme:"outlined"};const SIe=_Ie;function RY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){EIe(e,i,n[i])})}return e}function EIe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var aT=function(t,n){var r=RY({},t,n.attrs);return d.createVNode(fo,RY({},r,{icon:SIe}),null)};aT.displayName="PullRequestOutlined",aT.inheritAttrs=!1;const kIe=aT;var $Ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M881.7 187.4l-45.1-45.1a8.03 8.03 0 00-11.3 0L667.8 299.9l-54.7-54.7a7.94 7.94 0 00-13.5 4.7L576.1 439c-.6 5.2 3.7 9.5 8.9 8.9l189.2-23.5c6.6-.8 9.3-8.8 4.7-13.5l-54.7-54.7 157.6-157.6c3-3 3-8.1-.1-11.2zM439 576.1l-189.2 23.5c-6.6.8-9.3 8.9-4.7 13.5l54.7 54.7-157.5 157.5a8.03 8.03 0 000 11.3l45.1 45.1c3.1 3.1 8.2 3.1 11.3 0l157.6-157.6 54.7 54.7a7.94 7.94 0 0013.5-4.7L447.9 585a7.9 7.9 0 00-8.9-8.9z"}}]},name:"shrink",theme:"outlined"};const TIe=$Ie;function PY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){RIe(e,i,n[i])})}return e}function RIe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var sT=function(t,n){var r=PY({},t,n.attrs);return d.createVNode(fo,PY({},r,{icon:TIe}),null)};sT.displayName="ShrinkOutlined",sT.inheritAttrs=!1;const eb=sT;var PIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M625.9 115c-5.9 0-11.9 1.6-17.4 5.3L254 352H90c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h164l354.5 231.7c5.5 3.6 11.6 5.3 17.4 5.3 16.7 0 32.1-13.3 32.1-32.1V147.1c0-18.8-15.4-32.1-32.1-32.1zM586 803L293.4 611.7l-18-11.7H146V424h129.4l17.9-11.7L586 221v582zm348-327H806c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16h128c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16zm-41.9 261.8l-110.3-63.7a15.9 15.9 0 00-21.7 5.9l-19.9 34.5c-4.4 7.6-1.8 17.4 5.8 21.8L856.3 800a15.9 15.9 0 0021.7-5.9l19.9-34.5c4.4-7.6 1.7-17.4-5.8-21.8zM760 344a15.9 15.9 0 0021.7 5.9L892 286.2c7.6-4.4 10.2-14.2 5.8-21.8L878 230a15.9 15.9 0 00-21.7-5.9L746 287.8a15.99 15.99 0 00-5.8 21.8L760 344z"}}]},name:"sound",theme:"outlined"};const OIe=PIe;function OY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){jIe(e,i,n[i])})}return e}function jIe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var lT=function(t,n){var r=OY({},t,n.attrs);return d.createVNode(fo,OY({},r,{icon:OIe}),null)};lT.displayName="SoundOutlined",lT.inheritAttrs=!1;const MIe=lT;var AIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"};const NIe=AIe;function jY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){DIe(e,i,n[i])})}return e}function DIe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var cT=function(t,n){var r=jY({},t,n.attrs);return d.createVNode(fo,jY({},r,{icon:NIe}),null)};cT.displayName="UserOutlined",cT.inheritAttrs=!1;const IIe=cT;var LIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M892 772h-80v-80c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v80h-80c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h80v80c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-80h80c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM373.5 498.4c-.9-8.7-1.4-17.5-1.4-26.4 0-15.9 1.5-31.4 4.3-46.5.7-3.6-1.2-7.3-4.5-8.8-13.6-6.1-26.1-14.5-36.9-25.1a127.54 127.54 0 01-38.7-95.4c.9-32.1 13.8-62.6 36.3-85.6 24.7-25.3 57.9-39.1 93.2-38.7 31.9.3 62.7 12.6 86 34.4 7.9 7.4 14.7 15.6 20.4 24.4 2 3.1 5.9 4.4 9.3 3.2 17.6-6.1 36.2-10.4 55.3-12.4 5.6-.6 8.8-6.6 6.3-11.6-32.5-64.3-98.9-108.7-175.7-109.9-110.8-1.7-203.2 89.2-203.2 200 0 62.8 28.9 118.8 74.2 155.5-31.8 14.7-61.1 35-86.5 60.4-54.8 54.7-85.8 126.9-87.8 204a8 8 0 008 8.2h56.1c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5 29.4-29.4 65.4-49.8 104.7-59.7 3.8-1.1 6.4-4.8 5.9-8.8zM824 472c0-109.4-87.9-198.3-196.9-200C516.3 270.3 424 361.2 424 472c0 62.8 29 118.8 74.2 155.5a300.95 300.95 0 00-86.4 60.4C357 742.6 326 814.8 324 891.8a8 8 0 008 8.2h56c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5C505.8 695.7 563 672 624 672c110.4 0 200-89.5 200-200zm-109.5 90.5C690.3 586.7 658.2 600 624 600s-66.3-13.3-90.5-37.5a127.26 127.26 0 01-37.5-91.8c.3-32.8 13.4-64.5 36.3-88 24-24.6 56.1-38.3 90.4-38.7 33.9-.3 66.8 12.9 91 36.6 24.8 24.3 38.4 56.8 38.4 91.4-.1 34.2-13.4 66.3-37.6 90.5z"}}]},name:"usergroup-add",theme:"outlined"};const BIe=LIe;function MY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){FIe(e,i,n[i])})}return e}function FIe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var uT=function(t,n){var r=MY({},t,n.attrs);return d.createVNode(fo,MY({},r,{icon:BIe}),null)};uT.displayName="UsergroupAddOutlined",uT.inheritAttrs=!1;const AY=uT,zIe=d.defineComponent({name:"CollapseTitle",props:{title:{type:String,default:""}}}),VIe={class:"collapse-title"},HIe={class:"title-content"};function UIe(e,t,n,r,i,o){return d.openBlock(),d.createElementBlock("div",VIe,[d.renderSlot(e.$slots,"default",{},void 0,!0),d.createElementVNode("span",HIe,d.toDisplayString(e.title),1)])}const Mo=Ba(zIe,[["render",UIe],["__scopeId","data-v-98e2b0c6"]]),Ea=Ba(d.defineComponent({__name:"HasEdit",setup(e){return(t,n)=>(d.openBlock(),d.createBlock(d.unref(ADe),{class:"edit-icon"}))}}),[["__scopeId","data-v-3c62969a"]]),tb={TOOLBAR_PREFIX:"TOOLBAR_PREFIX",USER_CHOOSER_SUFFIX:"USER_CHOOSER_SUFFIX",FORMID_CHOOSER_SUFFIX:"FORMID_CHOOSER_SUFFIX"},WIe=Object.values(tb),dT={},NY=e=>`SLOT_${e}`,qIe=()=>{const{proxy:e}=d.getCurrentInstance(),{$slots:t}=e;for(const n in t)if(WIe.indexOf(n)>-1){const r=NY(n);d.provide(r,t[n]),dT[n]=!0}d.provide("slotsRegistry",dT)},GIe=e=>dT[e],fT=e=>GIe(e)?d.markRaw(d.inject(NY(e))):null,KIe={class:"user-search-info"},YIe={class:"left-side"},ZIe=d.createElementVNode("div",{class:"title"}," 发起人的 ",-1),XIe=d.defineComponent({__name:"UserSearchInfo",props:{searchInfo:{type:Object,default:WAe}},emits:["update:searchInfo"],setup(e,{emit:t}){const n=e,r=t,i=d.ref(n.searchInfo),o=s=>{i.value.searchWithCompanyAndTitleinfo.searchWithCompanyType=s,r("update:searchInfo",i.value)},a=s=>{i.value.searchWithCompanyAndTitleinfo.titleList=s,r("update:searchInfo",i.value)};return(s,l)=>{const c=d.resolveComponent("n-select"),u=d.resolveComponent("n-dynamic-input");return d.openBlock(),d.createElementBlock("div",KIe,[d.createElementVNode("div",YIe,[ZIe,d.createVNode(c,{class:"company-type-select",value:i.value.searchWithCompanyAndTitleinfo.searchWithCompanyType,"onUpdate:value":[l[0]||(l[0]=f=>i.value.searchWithCompanyAndTitleinfo.searchWithCompanyType=f),o],options:d.unref(UAe)},null,8,["value","options"])]),d.createVNode(u,{value:i.value.searchWithCompanyAndTitleinfo.titleList,"onUpdate:value":[l[1]||(l[1]=f=>i.value.searchWithCompanyAndTitleinfo.titleList=f),a],placeholder:"请输入职称"},null,8,["value"])])}}}),JIe={class:"user-model-form"},QIe={class:"user-type-options"},DY=d.defineComponent({__name:"UserForm",props:{user:{type:Object,default:tl}},emits:["update:user"],setup(e,{emit:t}){const n=d.ref(fT(tb.USER_CHOOSER_SUFFIX)),r=u=>{c.value.userId=u},i=d.ref(fT(tb.FORMID_CHOOSER_SUFFIX)),o=u=>{c.value.formFieldId=u},a=e,s=d.computed(()=>KAe(c.value.userIdType)),l=t,c=d.ref(a.user);return d.watch(c,u=>{l("update:user",u)},{deep:!0}),(u,f)=>{const h=d.resolveComponent("n-radio"),p=d.resolveComponent("n-radio-group"),m=d.resolveComponent("n-form-item"),b=d.resolveComponent("n-input"),v=d.resolveComponent("n-dynamic-input"),g=d.resolveComponent("n-select"),y=d.resolveComponent("n-form");return d.openBlock(),d.createElementBlock("div",JIe,[d.createVNode(y,{model:c.value,"label-placement":"left","label-width":"auto","require-mark-placement":"right-hanging",size:"small",style:{maxWidth:"640px",marginTop:"10px"}},{default:d.withCtx(()=>[d.createVNode(m,{label:"用户类型",path:"userIdType"},{default:d.withCtx(()=>[d.createElementVNode("div",QIe,[d.createVNode(p,{value:c.value.userIdType,"onUpdate:value":f[0]||(f[0]=w=>c.value.userIdType=w),name:"modeSelect",style:{"margin-bottom":"10px"}},{default:d.withCtx(()=>[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(d.unref(HAe),w=>(d.openBlock(),d.createBlock(h,{key:w.value,value:w.value,label:w.label},null,8,["value","label"]))),128))]),_:1},8,["value"])])]),_:1}),c.value.userIdType===d.unref(Qr).USER_ID?(d.openBlock(),d.createBlock(m,{key:0,label:"用户 id",path:"userId"},{default:d.withCtx(()=>[d.createVNode(b,{value:c.value.userId,"onUpdate:value":f[1]||(f[1]=w=>c.value.userId=w),placeholder:"请输入用户 id",type:"textarea",autosize:{minRows:2},onKeydown:f[2]||(f[2]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},{suffix:d.withCtx(()=>[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(n.value),{userId:c.value.userId,onChange:r},null,40,["userId"]))]),_:1},8,["value"])]),_:1})):d.createCommentVNode("",!0),c.value.userIdType===d.unref(Qr).USER_ID_LIST?(d.openBlock(),d.createBlock(m,{key:1,label:"用户列表",path:"userIdList"},{default:d.withCtx(()=>[d.createVNode(v,{value:c.value.userIdList,"onUpdate:value":f[3]||(f[3]=w=>c.value.userIdList=w),placeholder:"请输入人员ID"},null,8,["value"])]),_:1})):d.createCommentVNode("",!0),c.value.userIdType===d.unref(Qr).FORM_FIELD?(d.openBlock(),d.createBlock(m,{key:2,label:"表单字段 id",path:"formFieldId"},{default:d.withCtx(()=>[d.createVNode(b,{value:c.value.formFieldId,"onUpdate:value":f[4]||(f[4]=w=>c.value.formFieldId=w),placeholder:"表单字段 id",type:"textarea",autosize:{minRows:2},onKeydown:f[5]||(f[5]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},{suffix:d.withCtx(()=>[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(i.value),{userId:c.value.userId,onChange:o},null,40,["userId"]))]),_:1},8,["value"])]),_:1})):d.createCommentVNode("",!0),c.value.userIdType===d.unref(Qr).GET_SINGLE_USER||c.value.userIdType===d.unref(Qr).GET_MULTI_USERS?(d.openBlock(),d.createBlock(m,{key:3,label:"节点 ID",path:"outputTaskDefKey"},{default:d.withCtx(()=>[d.createVNode(g,{value:c.value.outputTaskDefKey,"onUpdate:value":f[6]||(f[6]=w=>c.value.outputTaskDefKey=w),placeholder:"请选择节点",options:s.value,onKeydown:f[7]||(f[7]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},null,8,["value","options"])]),_:1})):d.createCommentVNode("",!0),c.value.userIdType===d.unref(Qr).CREATOR_RELATED?(d.openBlock(),d.createBlock(m,{key:4,label:"相关性",path:"userSearchInfo"},{default:d.withCtx(()=>[d.createVNode(XIe,{"search-info":c.value.userSearchInfo,"onUpdate:searchInfo":f[8]||(f[8]=w=>c.value.userSearchInfo=w)},null,8,["search-info"])]),_:1})):d.createCommentVNode("",!0)]),_:1},8,["model"])])}}}),eLe={class:"user-selector-container"},tLe=Ba(d.defineComponent({__name:"UserSelector",props:{user:{type:Object,required:!0},label:{type:String,default:"配置"},dialogTitle:{type:String,default:"人员选择"}},emits:["update:user","on-ok"],setup(e,{emit:t}){const n=e,r=d.ref({...n.user}),i=d.ref(n.label),o=t,a=g=>{o("update:user",g)},s=d.ref(!1),l=()=>{s.value=!0},c=d.ref(!1),u=d.ref(600),f=d.ref(600),h=d.computed(()=>({width:`${u.value}px`,height:`${f.value}px`})),p=d.ref(d.markRaw(gu));function m(){c.value=!c.value,c.value?(u.value=window.innerWidth,f.value=window.innerHeight,p.value=eb):(u.value=600,f.value=600,p.value=gu)}const b=()=>{a(r.value),o("on-ok",r.value),s.value=!1},v=()=>d.createVNode("div",{class:"json-dialog-title-container"},[d.createVNode("span",null,[n.dialogTitle]),d.createVNode("span",null,[d.createVNode(p.value,{onClick:m,class:"edit-icon"},null)])]);return(g,y)=>{const w=d.resolveComponent("n-button"),x=d.resolveComponent("n-modal");return d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createVNode(x,{show:s.value,"onUpdate:show":y[0]||(y[0]=C=>s.value=C),"mask-closable":!1,preset:"dialog",title:v,"show-icon":!1,style:d.normalizeStyle(h.value)},{action:d.withCtx(()=>[d.createVNode(w,{size:"small",type:"info",onClick:b},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(g.$t("panel.confirm")),1)]),_:1})]),default:d.withCtx(()=>[d.createElementVNode("div",eLe,[d.createVNode(DY,{user:r.value},null,8,["user"])])]),_:1},8,["show","style"]),d.createVNode(w,{type:"info",onClick:l},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(i.value),1)]),_:1})],64)}}}),[["__scopeId","data-v-6c9aa68b"]]),IY=d.defineComponent({__name:"UserJSONDesc",props:{userJson:{type:Object,default:tl}},setup(e){const t=e,n=d.computed(()=>t.userJson);return(r,i)=>{const o=d.resolveComponent("n-descriptions-item"),a=d.resolveComponent("n-descriptions");return d.openBlock(),d.createBlock(a,{"label-placement":"left",column:1,bordered:"",size:"small",style:{"margin-top":"10px"}},{default:d.withCtx(()=>[d.createVNode(o,null,{label:d.withCtx(()=>[d.createTextVNode(" 类型 ")]),default:d.withCtx(()=>[d.createTextVNode(" "+d.toDisplayString(n.value.userIdType),1)]),_:1}),n.value.userIdType===d.unref(Qr).USER_ID?(d.openBlock(),d.createBlock(o,{key:0},{label:d.withCtx(()=>[d.createTextVNode(" 用户 ID ")]),default:d.withCtx(()=>[d.createTextVNode(" "+d.toDisplayString(n.value.userId),1)]),_:1})):d.createCommentVNode("",!0),n.value.userIdType===d.unref(Qr).FORM_FIELD?(d.openBlock(),d.createBlock(o,{key:1},{label:d.withCtx(()=>[d.createTextVNode(" 表单字段 ")]),default:d.withCtx(()=>[d.createTextVNode(" "+d.toDisplayString(n.value.formFieldId),1)]),_:1})):d.createCommentVNode("",!0),n.value.userIdType===d.unref(Qr).USER_ID_LIST?(d.openBlock(),d.createBlock(o,{key:2},{label:d.withCtx(()=>[d.createTextVNode(" 用户 ID 列表 ")]),default:d.withCtx(()=>{var s;return[d.createTextVNode(" "+d.toDisplayString((s=n.value.userIdList)==null?void 0:s.join(",")),1)]}),_:1})):d.createCommentVNode("",!0),n.value.userIdType===d.unref(Qr).GET_SINGLE_USER||n.value.userIdType===d.unref(Qr).GET_MULTI_USERS?(d.openBlock(),d.createBlock(o,{key:3},{label:d.withCtx(()=>[d.createTextVNode(" 节点 ID ")]),default:d.withCtx(()=>[d.createTextVNode(" "+d.toDisplayString(n.value.outputTaskDefKey),1)]),_:1})):d.createCommentVNode("",!0),n.value.userIdType===d.unref(Qr).CREATOR_RELATED?(d.openBlock(),d.createBlock(o,{key:4},{label:d.withCtx(()=>[d.createTextVNode(" 与发起人相关 ")]),default:d.withCtx(()=>{var s,l,c,u,f;return[d.createTextVNode(" "+d.toDisplayString(d.unref(K2)((l=(s=n.value.userSearchInfo)==null?void 0:s.searchWithCompanyAndTitleinfo)==null?void 0:l.searchWithCompanyType))+" 的 "+d.toDisplayString((f=(u=(c=n.value.userSearchInfo)==null?void 0:c.searchWithCompanyAndTitleinfo)==null?void 0:u.titleList)==null?void 0:f.join(",")),1)]}),_:1})):d.createCommentVNode("",!0)]),_:1})}}});function nLe(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(i){i(n)}),(r=e.get("*"))&&r.slice().map(function(i){i(t,n)})}}}const lf=nLe();function Go(e){const t=e,n=()=>{lf.off("element-update",t)};return d.onMounted(()=>{t(),lf.off("element-update",t),lf.on("element-update",t)}),d.onBeforeUnmount(()=>n()),[t,n]}const vm=d.defineComponent({__name:"UserConfigProperty",props:{label:{type:String,default:"获取用户的配置"},getUserValue:{type:Function,default:dNe},updateUserValue:{type:Function,default:fNe}},setup(e){const t=e,n=d.ref({...tl,outputTaskDefKey:""}),r=Zt(Vt),i=()=>{n.value=t.getUserValue(r.activeElement)},o=a=>{t.updateUserValue(r.activeElement,a)};return Go(i),(a,s)=>{const l=d.resolveComponent("n-collapse-item");return d.openBlock(),d.createBlock(l,null,d.createSlots({header:d.withCtx(()=>[d.createVNode(Mo,{title:t.label},{default:d.withCtx(()=>[d.createVNode(d.unref(Q2))]),_:1},8,["title"])]),default:d.withCtx(()=>[d.createElementVNode("div",null,[d.createVNode(tLe,{user:n.value,"onUpdate:user":s[0]||(s[0]=c=>n.value=c),onOnOk:o},null,8,["user"]),d.createVNode(IY,{"user-json":n.value},null,8,["user-json"])])]),_:2},[n.value.userId?{name:"header-extra",fn:d.withCtx(()=>[d.createVNode(Ea)]),key:"0"}:void 0]),1024)}}}),rLe=d.defineComponent({__name:"property",setup(e){return(t,n)=>(d.openBlock(),d.createBlock(vm,{label:"获取公司的配置"}))}}),iLe="data:image/svg+xml,%3csvg%20t='1710141728893'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='12073'%20width='30'%20height='30'%3e%3cpath%20d='M352.256%20550.4c-65.792%200-119.296-53.504-119.296-119.296s53.504-119.296%20119.296-119.296c65.792%200%20119.296%2053.504%20119.296%20119.296S418.048%20550.4%20352.256%20550.4z%20m0-177.408c-32%200-57.856%2026.112-57.856%2057.856s26.112%2057.856%2057.856%2057.856%2057.856-26.112%2057.856-57.856-25.856-57.856-57.856-57.856z'%20fill='%23040000'%20p-id='12074'%3e%3c/path%3e%3cpath%20d='M506.368%20704.512c-16.896%200-30.72-13.824-30.72-30.72%200-68.096-55.296-123.392-123.392-123.392s-123.392%2055.296-123.392%20123.392c0%2016.896-13.824%2030.72-30.72%2030.72s-30.72-13.824-30.72-30.72c0-101.888%2082.944-184.832%20184.832-184.832%20101.888%200%20184.832%2082.944%20184.832%20184.832%200%2016.896-13.824%2030.72-30.72%2030.72zM820.48%20403.712h-209.664c-16.896%200-30.72-13.824-30.72-30.72s13.824-30.72%2030.72-30.72h209.664c16.896%200%2030.72%2013.824%2030.72%2030.72s-13.824%2030.72-30.72%2030.72zM820.48%20539.392h-209.664c-16.896%200-30.72-13.824-30.72-30.72s13.824-30.72%2030.72-30.72h209.664c16.896%200%2030.72%2013.824%2030.72%2030.72s-13.824%2030.72-30.72%2030.72zM820.48%20675.072h-209.664c-16.896%200-30.72-13.824-30.72-30.72s13.824-30.72%2030.72-30.72h209.664c16.896%200%2030.72%2013.824%2030.72%2030.72s-13.824%2030.72-30.72%2030.72z'%20fill='%23040000'%20p-id='12075'%3e%3c/path%3e%3cpath%20d='M883.456%20872.448H147.456c-56.576%200-102.4-45.824-102.4-102.4V252.16c0-56.576%2045.824-102.4%20102.4-102.4h736c56.576%200%20102.4%2045.824%20102.4%20102.4v517.888c0%2056.32-45.824%20102.4-102.4%20102.4zM147.456%20211.2c-22.528%200-40.96%2018.432-40.96%2040.96v517.888c0%2022.528%2018.432%2040.96%2040.96%2040.96h736c22.528%200%2040.96-18.432%2040.96-40.96V252.16c0-22.528-18.432-40.96-40.96-40.96H147.456z'%20fill='%23060001'%20p-id='12076'%3e%3c/path%3e%3c/svg%3e",oLe=(e,t)=>n=>{const r=t.createShape({type:"bpmn:ServiceTask"}),i=r.businessObject;i.set("name","获取人员信息"),i.set("activiti:delegateExpression","${getSingleUserTaskService}"),Wa(r,{name:ua,value:G2}),P$(r,tl),e.start(n,r,void 0)},aLe=(e,t)=>{const n=oLe(e,t);return{"get-user-info":{group:"customnode",title:"获取人员信息",imageUrl:iLe,action:{click:n,dragstart:n}}}},sLe=d.defineComponent({__name:"property",setup(e){return(t,n)=>(d.openBlock(),d.createBlock(vm,{label:"获取用户信息的配置"}))}}),lLe="data:image/svg+xml,%3csvg%20t='1710224897811'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='17482'%20width='30'%20height='30'%3e%3cpath%20d='M216.945519%20232.260831l84.678588%200%200%20208.009498-84.678588%200%200-208.009498Z'%20fill='%232c2c2c'%20p-id='17483'%3e%3c/path%3e%3cpath%20d='M384.134309%20204.3829l84.678588%200%200%20264.548188-84.678588%200%200-264.548188Z'%20fill='%232c2c2c'%20p-id='17484'%3e%3c/path%3e%3cpath%20d='M148.4014%20190.361559c0-22.933315%2018.655895-41.589211%2041.589211-41.589211l641.889279%200c22.933315%200%2041.589211%2018.655895%2041.589211%2041.589211l0%2097.355305L644.231115%20287.716864l83.334987-83.333964-83.289961%200L518.86178%20329.796238l139.395794%20139.395794%2083.290985%200-96.795557-96.795557%20313.39571-0.001023L958.148711%20190.361559c0-69.623707-56.644091-126.267798-126.268822-126.267798L189.99061%2064.09376c-69.62473%200-126.267798%2056.644091-126.267798%20126.267798l0%20459.4389%2084.678588%200L148.4014%20190.361559z'%20fill='%232c2c2c'%20p-id='17485'%3e%3c/path%3e%3cpath%20d='M873.468077%20457.07404l0%20375.176798c0%2022.932292-18.654872%2041.589211-41.589211%2041.589211L189.99061%20873.840048c-22.932292%200-41.589211-18.655895-41.589211-41.589211l0-13.008268%20669.937079%200%200-84.678588L789.985734%20734.563982%20789.985734%20497.195829%20231.188918%20497.195829l0%20237.368152-167.466106-0.083911%200%2097.770767c0%2069.62473%2056.644091%20126.268822%20126.267798%20126.268822l641.889279%200c69.62473%200%20126.268822-56.644091%20126.268822-126.268822L958.148711%20457.07404%20873.468077%20457.07404zM637.041366%20581.87544l68.264756%200%200%20152.688541-68.264756%200L637.041366%20581.87544zM468.812897%20581.87544l83.548858%200%200%20152.688541-83.548858%200L468.812897%20581.87544zM315.868529%20581.87544l68.26578%200%200%20152.688541-68.26578%200L315.868529%20581.87544z'%20fill='%232c2c2c'%20p-id='17486'%3e%3c/path%3e%3c/svg%3e",hT="org",LY=e=>{const{orgVariableType:t}=e,n={orgVariableType:t};switch(t){case As.ORG_ID:n.orgId=e.orgId;break;case As.GET_ORG_TASK_OUTPUT:n.getOrgTaskDefKey=e.getOrgTaskDefKey;break}return{name:hT,type:"expression",value:JSON.stringify(n)}},q6=(e,t)=>{hm(e,LY(t))},cLe=e=>{const n=j0(e).find(i=>i.name===hT)||{};return JSON.parse(n.expression||"{}")},uLe=(e,t)=>{const n=d.toRaw(j0(e)),r=n.findIndex(i=>i.name===hT);r!==-1&&pm(e,n[r],LY(t))},dLe=(e,t)=>n=>{const r=t.createShape({type:"bpmn:ServiceTask"}),i=r.businessObject;i.set("name","获取监理公司"),i.set("activiti:delegateExpression","${getSupervisoryOrgOfOrg}"),Wa(r,{name:ua,value:w$}),q6(r,{orgVariableType:As.GET_ORG_TASK_OUTPUT,getOrgTaskDefKey:""}),e.start(n,r,void 0)},fLe=(e,t)=>{const n=dLe(e,t);return{"get-supervisory-org":{group:"customnode",title:"获取监理公司",imageUrl:lLe,action:{click:n,dragstart:n}}}},hLe={class:"org-title-selector-container"},pLe={class:"org-type-options"},mLe={class:"job-title-type-options"},gLe=d.defineComponent({__name:"OrgTitleSelector",props:{org:{type:Object,required:!0},jobTitle:{type:Object,required:!1,default:()=>({titleListType:af.TITLE_NAME_LIST,titleNameList:[]})},label:{type:String,default:"配置"},dialogTitle:{type:String,default:"公司职务选择"},disableTitle:{type:Boolean,default:!1}},emits:["update:org","update:jobTitle","on-ok"],setup(e,{emit:t}){const n=e,r=d.ref({...n.org}),i=d.ref(n.disableTitle),o=d.ref({...n.jobTitle}),a=d.ref(n.label),s=d.computed(()=>YAe(r.value.orgVariableType)),l=t,c=(x,C)=>{l("update:org",d.toRaw(x)),l("update:jobTitle",d.toRaw(C))},u=d.ref(!1),f=()=>{u.value=!0},h=d.ref(!1),p=d.ref(600),m=d.ref(600),b=d.computed(()=>({width:`${p.value}px`,height:`${m.value}px`})),v=d.ref(d.markRaw(gu));function g(){h.value=!h.value,h.value?(p.value=window.innerWidth,m.value=window.innerHeight,v.value=eb):(p.value=600,m.value=600,v.value=gu)}const y=()=>{c(r.value,o.value),l("on-ok",r.value,o.value),u.value=!1},w=()=>d.createVNode("div",{class:"json-dialog-title-container"},[d.createVNode("span",null,[n.dialogTitle]),d.createVNode("span",null,[d.createVNode(v.value,{onClick:g,class:"edit-icon"},null)])]);return(x,C)=>{const _=d.resolveComponent("n-radio"),S=d.resolveComponent("n-radio-group"),E=d.resolveComponent("n-form-item"),$=d.resolveComponent("n-input"),k=d.resolveComponent("n-select"),O=d.resolveComponent("n-dynamic-input"),T=d.resolveComponent("n-form"),j=d.resolveComponent("n-button"),D=d.resolveComponent("n-modal");return d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createVNode(D,{show:u.value,"onUpdate:show":C[8]||(C[8]=B=>u.value=B),"mask-closable":!1,preset:"dialog",title:w,"show-icon":!1,style:d.normalizeStyle(b.value)},{action:d.withCtx(()=>[d.createVNode(j,{size:"small",type:"info",onClick:y},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(x.$t("panel.confirm")),1)]),_:1})]),default:d.withCtx(()=>[d.createElementVNode("div",hLe,[d.createVNode(T,{"label-placement":"left","label-width":"auto","require-mark-placement":"right-hanging",size:"small",style:{maxWidth:"640px",marginTop:"10px"}},{default:d.withCtx(()=>[d.createVNode(E,{label:"获取机构方式"},{default:d.withCtx(()=>[d.createElementVNode("div",pLe,[d.createVNode(S,{value:r.value.orgVariableType,"onUpdate:value":C[0]||(C[0]=B=>r.value.orgVariableType=B),name:"orgSelect",style:{"margin-bottom":"10px"}},{default:d.withCtx(()=>[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(d.unref(qAe),B=>(d.openBlock(),d.createBlock(_,{key:B.value,value:B.value,label:B.label},null,8,["value","label"]))),128))]),_:1},8,["value"])])]),_:1}),r.value.orgVariableType===d.unref(As).ORG_ID?(d.openBlock(),d.createBlock(E,{key:0,label:"机构 id"},{default:d.withCtx(()=>[d.createVNode($,{value:r.value.orgId,"onUpdate:value":C[1]||(C[1]=B=>r.value.orgId=B),placeholder:"请输入机构 id",onKeydown:C[2]||(C[2]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},null,8,["value"])]),_:1})):d.createCommentVNode("",!0),r.value.orgVariableType===d.unref(As).GET_ORG_TASK_OUTPUT?(d.openBlock(),d.createBlock(E,{key:1,label:"节点 ID"},{default:d.withCtx(()=>[d.createVNode(k,{value:r.value.getOrgTaskDefKey,"onUpdate:value":C[3]||(C[3]=B=>r.value.getOrgTaskDefKey=B),placeholder:"请选择节点",options:s.value,onKeydown:C[4]||(C[4]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},null,8,["value","options"])]),_:1})):d.createCommentVNode("",!0),i.value?d.createCommentVNode("",!0):(d.openBlock(),d.createBlock(E,{key:2,label:"获取职称方式"},{default:d.withCtx(()=>[d.createElementVNode("div",mLe,[d.createVNode(S,{value:o.value.titleListType,"onUpdate:value":C[5]||(C[5]=B=>o.value.titleListType=B),name:"jobTitleSelect",style:{"margin-bottom":"10px"}},{default:d.withCtx(()=>[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(d.unref(GAe),B=>(d.openBlock(),d.createBlock(_,{key:B.value,value:B.value,label:B.label},null,8,["value","label"]))),128))]),_:1},8,["value"])])]),_:1})),!i.value&&o.value.titleListType===d.unref(af).TITLE_NAME_LIST?(d.openBlock(),d.createBlock(E,{key:3,label:"职称名列表"},{default:d.withCtx(()=>[d.createVNode(O,{value:o.value.titleNameList,"onUpdate:value":C[6]||(C[6]=B=>o.value.titleNameList=B),placeholder:"请输入值",min:1,onKeydown:C[7]||(C[7]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},null,8,["value"])]),_:1})):d.createCommentVNode("",!0)]),_:1})])]),_:1},8,["show","style"]),d.createVNode(j,{type:"info",onClick:f},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(a.value),1)]),_:1})],64)}}}),pT="titleList",BY=e=>{const{titleListType:t,titleNameList:n}=e,r={titleListType:t};switch(t){case af.TITLE_NAME_LIST:r.titleNameList=n;break}return{name:pT,type:"expression",value:JSON.stringify(r)}},FY=(e,t)=>{hm(e,BY(t))},vLe=e=>{const n=j0(e).find(i=>i.name===pT)||{};return JSON.parse(n.expression||"{}")},bLe=(e,t)=>{const n=d.toRaw(j0(e)),r=n.findIndex(i=>i.name===pT);r!==-1&&pm(e,n[r],BY(t))},G6=d.defineComponent({__name:"OrgTitleConfigProperty",props:{label:{type:String,default:"获取人员的配置"},disableTitle:{type:Boolean,default:!1}},setup(e){const t=e,n=d.ref({titleListType:"TITLE_NAME_LIST",titleNameList:[]}),r=d.ref({orgVariableType:"ID",orgId:"",getOrgTaskDefKey:""}),i=d.ref(t.disableTitle),o=Zt(Vt),a=()=>{r.value=cLe(o.activeElement),i.value||(n.value=vLe(o.activeElement))},s=(l,c)=>{uLe(o.activeElement,l),i.value||bLe(o.activeElement,c)};return Go(a),(l,c)=>{var p;const u=d.resolveComponent("n-descriptions-item"),f=d.resolveComponent("n-descriptions"),h=d.resolveComponent("n-collapse-item");return d.openBlock(),d.createBlock(h,null,d.createSlots({header:d.withCtx(()=>[d.createVNode(Mo,{title:t.label},{default:d.withCtx(()=>[d.createVNode(d.unref(Q2))]),_:1},8,["title"])]),default:d.withCtx(()=>[d.createElementVNode("div",null,[d.createVNode(gLe,{disableTitle:i.value,label:"配置",org:r.value,"onUpdate:org":c[0]||(c[0]=m=>r.value=m),jobTitle:n.value,"onUpdate:jobTitle":c[1]||(c[1]=m=>n.value=m),onOnOk:s},null,8,["disableTitle","org","jobTitle"]),d.createVNode(f,{"label-placement":"left",column:1,bordered:"",size:"small",style:{"margin-top":"10px"}},{default:d.withCtx(()=>[d.createVNode(u,null,{label:d.withCtx(()=>[d.createTextVNode(" 机构类型 ")]),default:d.withCtx(()=>[d.createTextVNode(" "+d.toDisplayString(r.value.orgVariableType),1)]),_:1}),r.value.orgVariableType===d.unref(As).ORG_ID?(d.openBlock(),d.createBlock(u,{key:0},{label:d.withCtx(()=>[d.createTextVNode(" 机构 ID ")]),default:d.withCtx(()=>[d.createTextVNode(" "+d.toDisplayString(r.value.orgId),1)]),_:1})):d.createCommentVNode("",!0),r.value.orgVariableType===d.unref(As).GET_ORG_TASK_OUTPUT?(d.openBlock(),d.createBlock(u,{key:1},{label:d.withCtx(()=>[d.createTextVNode(" 流程节点 ID ")]),default:d.withCtx(()=>[d.createTextVNode(" "+d.toDisplayString(r.value.getOrgTaskDefKey),1)]),_:1})):d.createCommentVNode("",!0),i.value?d.createCommentVNode("",!0):(d.openBlock(),d.createBlock(u,{key:2},{label:d.withCtx(()=>[d.createTextVNode(" 职称类型 ")]),default:d.withCtx(()=>[d.createTextVNode(" "+d.toDisplayString(n.value.titleListType),1)]),_:1})),!i.value&&n.value.titleListType===d.unref(af).TITLE_NAME_LIST?(d.openBlock(),d.createBlock(u,{key:3},{label:d.withCtx(()=>[d.createTextVNode(" 职称名 ")]),default:d.withCtx(()=>[d.createTextVNode(" "+d.toDisplayString(n.value.titleNameList.join(",")),1)]),_:1})):d.createCommentVNode("",!0)]),_:1})])]),_:2},[r.value.orgId||(p=n.value.titleNameList)!=null&&p.length||r.value.getOrgTaskDefKey?{name:"header-extra",fn:d.withCtx(()=>[d.createVNode(Ea)]),key:"0"}:void 0]),1024)}}}),yLe=d.defineComponent({__name:"property",setup(e){return(t,n)=>(d.openBlock(),d.createBlock(G6,{label:"获取监理公司的配置",disableTitle:!0}))}}),xLe="data:image/svg+xml,%3csvg%20t='1711350794276'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='6567'%20width='30'%20height='30'%3e%3cpath%20d='M0%200h1024v1024H0V0z%20m56.888889%2056.888889v910.222222h910.222222V56.888889H56.888889z'%20fill='%232c2c2c'%20p-id='6568'%3e%3c/path%3e%3cpath%20d='M210.488889%20329.955556h96.711111c-11.377778-34.133333-22.755556-62.577778-39.822222-85.333334l68.266666-11.377778c11.377778%2028.444444%2022.755556%2056.888889%2034.133334%2096.711112h79.644444v62.577777H318.577778v79.644445h119.466666c0%20176.355556-5.688889%20290.133333-11.377777%20329.955555-5.688889%2039.822222-34.133333%2062.577778-91.022223%2062.577778h-28.444444l-17.066667-56.888889c11.377778%200%2022.755556%205.688889%2034.133334%205.688889%2022.755556%200%2039.822222-11.377778%2045.511111-34.133333%205.688889-22.755556%205.688889-102.4%205.688889-238.933334h-56.888889c-5.688889%20153.6-28.444444%20261.688889-73.955556%20335.644445l-51.2-39.822222c39.822222-68.266667%2062.577778-176.355556%2062.577778-324.266667V392.533333h-45.511111V329.955556z%20m335.644444%2039.822222c-17.066667%2045.511111-45.511111%2091.022222-73.955555%20125.155555l-39.822222-51.2c39.822222-51.2%2073.955556-119.466667%20102.4-210.488889l62.577777%2011.377778c-5.688889%2022.755556-11.377778%2039.822222-22.755555%2056.888889h233.244444v62.577778H546.133333z%20m238.933334%2073.955555c0%20130.844444-5.688889%20210.488889-11.377778%20238.933334s-34.133333%2039.822222-73.955556%2039.822222h-5.688889l-17.066666-56.888889h28.444444c5.688889%200%2011.377778-5.688889%2011.377778-17.066667V523.377778l-51.2%2017.066666v221.866667h-62.577778V563.2l-51.2%2017.066667v176.355555c0%2028.444444%2011.377778%2045.511111%2028.444445%2045.511111h130.844444c17.066667%200%2022.755556-5.688889%2034.133333-11.377777%205.688889-5.688889%2011.377778-34.133333%2017.066667-73.955556l56.888889%2017.066667c-5.688889%2056.888889-17.066667%2091.022222-34.133333%20108.088889-11.377778%2011.377778-34.133333%2017.066667-62.577778%2017.066666H563.2c-45.511111%200-68.266667-28.444444-68.266667-91.022222v-170.666667l-39.822222%2022.755556v-56.888889l51.2-17.066667V449.422222h56.888889v68.266667l51.2-17.066667V398.222222h62.577778v85.333334l108.088889-39.822223z'%20fill='%232c2c2c'%20p-id='6569'%3e%3c/path%3e%3c/svg%3e",wLe=(e,t)=>n=>{const r=t.createShape({type:"bpmn:ServiceTask"}),i=r.businessObject;i.set("name","获取施工单位"),i.set("activiti:delegateExpression","${getConstructionOrgOfOrg}"),Wa(r,{name:ua,value:C$}),q6(r,{orgVariableType:As.GET_ORG_TASK_OUTPUT,getOrgTaskDefKey:""}),e.start(n,r,void 0)},CLe=(e,t)=>{const n=wLe(e,t);return{"get-construction-org":{group:"customnode",title:"获取施工单位",imageUrl:xLe,action:{click:n,dragstart:n}}}},_Le=d.defineComponent({__name:"property",setup(e){return(t,n)=>(d.openBlock(),d.createBlock(G6,{label:"获取施工单位的配置",disableTitle:!0}))}}),SLe="data:image/svg+xml,%3csvg%20t='1710141822502'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='14425'%20width='30'%20height='30'%3e%3cpath%20d='M689.814588%20266.300235a175.887059%20175.887059%200%201%200-351.894588%200%20175.887059%20175.887059%200%200%200%20351.894588%200z%20m60.235294%200a236.122353%20236.122353%200%201%201-472.365176%200%20236.122353%20236.122353%200%200%201%20472.365176%200zM873.411765%20916.178824v-76.920471a210.823529%20210.823529%200%200%200-210.82353-210.823529H361.411765a210.823529%20210.823529%200%200%200-210.82353%20210.823529v76.980706h722.82353zM361.411765%20568.259765h301.17647a271.058824%20271.058824%200%200%201%20271.058824%20271.058823v107.098353a30.117647%2030.117647%200%200%201-30.117647%2030.117647H120.470588a30.117647%2030.117647%200%200%201-30.117647-30.117647v-107.098353a271.058824%20271.058824%200%200%201%20271.058824-271.058823z'%20fill='%232c2c2c'%20p-id='14426'%3e%3c/path%3e%3c/svg%3e",ELe=(e,t)=>n=>{const r=t.createShape({type:"bpmn:ServiceTask"}),i=r.businessObject;i.set("name","获取单人员"),i.set("activiti:delegateExpression","${getSingleUserFromTitleTaskService}"),Wa(r,{name:ua,value:y$}),FY(r,{titleListType:af.TITLE_NAME_LIST,titleNameList:[]}),q6(r,{orgVariableType:As.ORG_ID,orgId:""}),e.start(n,r,void 0)},kLe=(e,t)=>{const n=ELe(e,t);return{"get-single-user":{group:"customnode",title:"获取单个人员",imageUrl:SLe,action:{click:n,dragstart:n}}}},$Le=d.defineComponent({__name:"property",setup(e){return(t,n)=>(d.openBlock(),d.createBlock(G6,{label:"获取单人员的配置"}))}}),TLe="data:image/svg+xml,%3csvg%20t='1709800140877'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4222'%20width='30'%20height='30'%3e%3cpath%20d='M414.71%20509.2C301%20509.2%20208.47%20416.68%20208.47%20303S301%2096.73%20414.71%2096.73%20620.94%20189.24%20620.94%20303s-92.51%20206.2-206.23%20206.2z%20m0-352.47c-80.64%200-146.24%2065.6-146.24%20146.23s65.6%20146.24%20146.24%20146.24S560.94%20383.6%20560.94%20303s-65.6-146.27-146.23-146.27zM734.71%20924.17h-640a30%2030%200%200%201-29.6-34.9c15.49-93.64%2058.18-179.2%20120.19-240.9%2031.28-31.13%2066.5-55.45%20104.68-72.28a307%20307%200%200%201%20249.46%200c38.18%2016.83%2073.4%2041.15%20104.68%2072.28%2062%2061.7%20104.69%20147.26%20120.19%20240.9a30%2030%200%200%201-29.6%2034.9z%20m-603.12-60h566.24C660%20714.72%20545.28%20609.61%20414.71%20609.61S169.44%20714.72%20131.59%20864.17zM711%20478.22a30%2030%200%200%201-17-54.71%20146.29%20146.29%200%200%200-13.26-249.22%2030%2030%200%200%201%2028.58-52.76A206.3%20206.3%200%200%201%20728%20472.93a30%2030%200%200%201-17%205.29zM931.12%20924.17h-75.79a30%2030%200%200%201%200-60h39.1C867%20751%20801.12%20660.72%20717.34%20624a30%2030%200%200%201%2024.07-55c56.25%2024.63%20106.42%2068.36%20145.07%20126.46%2036.74%2055.22%2062.41%20122.21%2074.24%20193.73a30%2030%200%200%201-29.6%2034.9z'%20p-id='4223'%3e%3c/path%3e%3c/svg%3e",RLe=(e,t)=>n=>{const r=t.createShape({type:"bpmn:ServiceTask"}),i=r.businessObject;i.set("name","获取多人员"),i.set("activiti:delegateExpression","${getMultipleUsersTaskService}"),Wa(r,{name:ua,value:x$}),FY(r,{titleListType:af.TITLE_NAME_LIST,titleNameList:[]}),q6(r,{orgVariableType:As.ORG_ID,orgId:""}),e.start(n,r,void 0)},PLe=(e,t)=>{const n=RLe(e,t);return{"get-multi-user":{group:"customnode",title:"获取多个人员",imageUrl:TLe,action:{click:n,dragstart:n}}}},OLe=d.defineComponent({__name:"property",setup(e){return(t,n)=>(d.openBlock(),d.createBlock(G6,{label:"获取多人员的配置"}))}}),jLe="data:image/svg+xml,%3csvg%20t='1709801148292'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='5252'%20width='30'%20height='30'%3e%3cpath%20d='M515.09%20955.46H217.17c-67.25%200-121.97-55.66-121.97-124.07V192.41c0-68.41%2054.71-124.07%20121.97-124.07h573.89c67.25%200%20121.97%2055.66%20121.97%20124.07v212.12c0%2022.95-18.29%2041.56-40.85%2041.56s-40.85-18.61-40.85-41.56V192.41c0-22.58-18.06-40.95-40.26-40.95h-573.9c-22.2%200-40.26%2018.37-40.26%2040.95v638.98c0%2022.58%2018.06%2040.95%2040.26%2040.95h297.92c22.56%200%2040.85%2018.61%2040.85%2041.56s-18.28%2041.56-40.85%2041.56z'%20p-id='5253'%3e%3c/path%3e%3cpath%20d='M708.2%20368.58c0.06-0.16%200.11-0.32%200.17-0.47%200.82-2.08%201.48-4.24%201.92-6.49%200.02-0.12%200.03-0.24%200.06-0.36%200.42-2.23%200.66-4.52%200.66-6.87%200-2.35-0.24-4.64-0.66-6.87-0.02-0.12-0.03-0.24-0.06-0.36-0.44-2.25-1.1-4.41-1.92-6.49-0.06-0.16-0.11-0.32-0.17-0.47-0.88-2.13-1.95-4.15-3.19-6.06-0.09-0.14-0.16-0.28-0.25-0.41-1.38-2.07-2.95-4-4.7-5.75l-93.09-93.09c-14.59-14.59-38.24-14.59-52.83%200-14.59%2014.59-14.59%2038.24%200%2052.83l29.32%2029.32H334.58c-20.63%200-37.36%2016.73-37.36%2037.36s16.73%2037.36%2037.36%2037.36h339.07c2.35%200%204.64-0.24%206.87-0.66%200.12-0.02%200.24-0.03%200.36-0.06%202.25-0.44%204.41-1.1%206.49-1.92%200.16-0.06%200.32-0.11%200.47-0.17%202.13-0.88%204.15-1.95%206.06-3.19%200.13-0.09%200.27-0.16%200.41-0.25%204.13-2.75%207.69-6.31%2010.44-10.44%200.09-0.13%200.16-0.27%200.25-0.41%201.25-1.93%202.32-3.96%203.2-6.08zM630.39%20928.98c-8.23%200-18.01-1.74-27.23-7.74-7.32-4.76-19.9-17.07-21.87-40.15l-0.16-1.9%203.77-96.01c-0.2-8.44%202.63-16.08%204.46-21l1.24-3.33%20162.95-245.66c12.53-17.5%2039.04-28.06%2065.41-14.4l3%201.78%2084.68%2056.89c19.06%2013.62%2030.01%2042.17%2012.77%2068.24L764.77%20859.45a61.198%2061.198%200%200%201-23.64%2020.94l-89.75%2044.87-1.91%200.66c-2.28%200.79-9.68%203.06-19.08%203.06z%20m15.88-142.93l-2.9%2074.54%2070.3-35.15%20148.17-224.09-64.39-43.25-151.18%20227.95z'%20p-id='5254'%3e%3c/path%3e%3c/svg%3e";function zY(e,t){const n=`${Ot}:${t}`,r=bm(e);return t==="loopCardinality"||t==="completionCondition"?VY(e,t):r==null?void 0:r.get(n)}function MLe(e){const t=bm(e),n={};for(const r of m$){const i=`${Ot}:${r}`,o=r==="loopCardinality"||r==="completionCondition";t&&(n[r]=o?VY(e,r):t.get(i))}return n}function nb(e,t,n){var a,s;const r=Zt(Vt),i=bm(e);if(t==="loopCardinality"||t==="completionCondition"){const{moddleElement:l,properties:c}=ILe(e,t,n);(a=r.modeling)==null||a.updateModdleProperties(e,l,c)}else(s=r.modeling)==null||s.updateModdleProperties(e,i,{[`${Ot}:${t}`]:n})}function ALe(e){const t=bm(e);return!!t&&Q(t,`${Ot}:Collectable`)}function bm(e){return rt(e).loopCharacteristics}function NLe(e,t){const n=bm(e);return n&&n.get(t)}function DLe(e){return e&&e.get("body")}function VY(e,t){const n=NLe(e,t);return DLe(n)}function ILe(e,t,n){const r=bm(e),i={};if(!n)return i[t]=void 0,{moddleElement:r,properties:i};const o=r.get(t);return o?{moddleElement:o,properties:{body:n}}:(i[t]=oNe(r,n),{moddleElement:r,properties:i})}function LLe(e){const t=Zt(Vt),{scriptFormat:n,value:r,resource:i}=e;return t.moddle.create(`${Ot}:Script`,{scriptFormat:n,value:r,resource:i})}function BLe(e){return e.get("resource")?"external":e.get("value")?"inline":"none"}function FLe(e){return typeof e>"u"}function HY(e=""){try{JSON.parse(e)}catch{return!1}return!0}function UY(e,t){const n=K6(e);return Jh(n,`${Ot}:${t}`)}function rb(e,t,n){const r=Zt(Vt),i=K6(e),o=r.moddle.create(`${Ot}:${n}`,{});qLe(e,o,t),SK(e,i,o)}function WY(e,t,n,r){A6(e,K6(e),n),rb(e,t,r)}function zLe(e,t){A6(e,K6(e),t)}function VLe(e){return Q(e,"bpmn:UserTask")}function HLe(e){return Vn(e,NAe)?!0:Q(e,"bpmn:Participant")?!!e.businessObject.processRef:!1}function ULe(e,t){if(Vn(e,[`${Ot}:${t}`])){if(e.get(`${Ot}:class`))return"class";if(e.get(`${Ot}:expression`))return"expression";if(e.get(`${Ot}:delegateExpression`))return"delegateExpression";if(e.get("script"))return"script"}return""}function K6(e){const t=rt(e);return(t==null?void 0:t.get("processRef"))||t}function WLe(e,t){return t==="TaskListener"?[{label:"Create",value:"create"},{label:"Assignment",value:"assignment"},{label:"Complete",value:"complete"},{label:"Delete",value:"delete"}]:Q(e,"bpmn:SequenceFlow")?[{label:"Take",value:"take"}]:[{label:"Start",value:"start"},{label:"End",value:"end"}]}function qY(e,t){return t==="TaskListener"?"create":Q(e,"bpmn:SequenceFlow")?"take":"start"}function qLe(e,t,n){var f;const r=Zt(Vt),{event:i,class:o,expression:a,delegateExpression:s,script:l,fields:c}=n,u=(h,p)=>{var m;return(m=r.modeling)==null?void 0:m.updateModdleProperties(e,t,{[`${Ot}:${h}`]:p})};if(i&&u("event",i),!FLe(o)&&u("class",o),a&&u("expression",a),s&&u("delegateExpression",s),l){const h=LLe(l);(f=r.modeling)==null||f.updateModdleProperties(e,t,{script:h})}sNe(e,t),c&&c.forEach(h=>{aNe(e,t,h)})}const GLe=/^(\${)?([a-zA-Z_$][\w.$]*)(?:\(([\s\S]*)\))?(}\s*)?$/,vu="jsonstring";function Y6(e=""){e=e.trim();const t=GLe.exec(e);if(!t)return{isVar:!1,isFunction:!1,varName:e,args:[]};const n=t[1]!==void 0&&t[4]!==void 0,r=t[2],i=t[3]||"",o=[];if(i){let s="",l="";for(let u=0;u<i.length;u++){const f=i[u];f===","&&l!==vu?(o.push({content:s.trim(),type:mT(s.trim())}),s="",l=""):(s+=f,f==="{"?l=vu:l!==vu&&s.trim().startsWith("'")&&s.trim().endsWith("'")||l!==vu&&s.trim().startsWith('"')&&s.trim().endsWith('"')?l="string":l!==vu&&f===" "&&(l=mT(s.trim())))}const c=s.trim();c!==""&&o.push({content:c,type:l!==vu?mT(c):vu})}const a=o.length>0||e.endsWith(")");return{isVar:n,isFunction:a,varName:r,args:o}}const KLe=[{label:"字符串",value:"string"},{label:"数字",value:"number"},{label:"布尔值"},{label:"变量",value:"var"},{label:"JSON串",value:vu}];function mT(e){return e.startsWith("'")&&e.endsWith("'")?"string":/^\d+(\.\d+)?$/.test(e)?"number":e==="true"||e==="false"?"boolean":"var"}function Z6(e,t){const n=new RegExp(`^${t}+|${t}+$`,"g");return e.replace(n,"")}function GY(e){return e.replace(/\\"/g,'"')}const gT=e=>({content:(e==null?void 0:e.type)===vu?GY(Z6(Z6(e.content,"'"),'"')):e==null?void 0:e.content,type:e==null?void 0:e.type}),vT=(e,t,n,r)=>{rb(e,{event:t,type:"delegateExpression",delegateExpression:n,fields:r},"TaskListener")},YLe=(e,t,n,r)=>{const i=UY(e,"TaskListener"),o=i.findIndex(a=>a.event===t);WY(e,{event:t,type:"delegateExpression",delegateExpression:n,fields:r},i[o],"TaskListener")},KY=e=>{const t=e.businessObject;if(!t.loopCharacteristics){const r=Zt(Vt).moddle.create("bpmn:MultiInstanceLoopCharacteristics",{isSequential:!1});t.loopCharacteristics=r}},X6={minApprovedCount:1,maxRejectedCount:0};function ZLe(e){const t=/\$\{([\w\_\d]+)\}/,n=e.match(t);return n&&n[1]?n[1]:null}const XLe=e=>{const t=zK(e);return"${counterTaskService.getCounterTaskCandidates(execution,'"+JSON.stringify(t)+"')}"},JLe=e=>"${counterTaskService.counterTaskCompleted(execution, '"+JSON.stringify(e)+"')}",QLe=e=>{vT(e,"create","${checkCounterSignAssigneeListener}"),KY(e);const t=e.businessObject.get("activiti:assignee"),n=ZLe(t);bT(e,tl),nb(e,"elementVariable",n),yT(e,X6,!1)},eBe=e=>{vT(e,"create","${checkCounterReceiveAssigneeListener}"),KY(e),bT(e,tl),nb(e,"elementVariable","counterReceiveAssignee"),yT(e,X6,!1)},tBe=e=>{var a;const t=zY(e,"collection"),r=Y6(t).args,i=gT(r[1]),o=JSON.parse(i.content||"{}");return o.userIdType===Qr.CREATOR&&((a=o.userSearchInfo)!=null&&a.enabled)&&(o.userIdType=Qr.CREATOR_RELATED),o},bT=(e,t)=>{nb(e,"collection",XLe(t))},nBe=e=>{const t=zY(e,"completionCondition"),r=Y6(t).args;if(r.length>=2){const i=gT(r[1]);return JSON.parse(i.content||"{}")}else return X6},yT=(e,t,n=!0)=>{nb(e,"completionCondition",JLe(t));const r=[{name:"counterTaskCompleteCondition",type:"expression",value:JSON.stringify(t)}],i="${counterTaskCompleteListener}";n?YLe(e,"complete",i,r):vT(e,"complete",i,r)},rBe=(e,t)=>n=>{const r=t.createShape({type:"bpmn:UserTask"}),i=r.businessObject;i.set("name","创建会签节点");const o=`counterSignAssignee_${Date.now()}_${Math.floor(Math.random()*1e4)}`;i.set("activiti:assignee","${"+o+"}"),Wa(r,{name:ua,value:N6}),QLe(r),e.start(n,r,void 0)},iBe=(e,t)=>{const n=rBe(e,t);return{"counter-sign-user":{group:"customnode",title:"会签节点",imageUrl:jLe,action:{click:n,dragstart:n}}}},oBe={class:"user-selector-container"},aBe=Ba(d.defineComponent({__name:"CounterSignSelector",props:{user:{type:Object,required:!0},condition:{type:Object,required:!0},label:{type:String,default:"配置"},dialogTitle:{type:String,default:"会签配置"}},emits:["update:user","update:condition","on-ok"],setup(e,{emit:t}){const n=e,r=d.ref({...n.user}),i=d.ref({...n.condition}),o=d.ref(n.label),a=t,s=(y,w)=>{a("update:user",y),a("update:condition",w)},l=d.ref(!1),c=()=>{l.value=!0},u=d.ref(!1),f=d.ref(600),h=d.ref(600),p=d.computed(()=>({width:`${f.value}px`,height:`${h.value}px`})),m=d.ref(d.markRaw(gu));function b(){u.value=!u.value,u.value?(f.value=window.innerWidth,h.value=window.innerHeight,m.value=eb):(f.value=600,h.value=600,m.value=gu)}const v=()=>{s(r.value,i.value),a("on-ok",r.value,i.value),l.value=!1},g=()=>d.createVNode("div",{class:"json-dialog-title-container"},[d.createVNode("span",null,[n.dialogTitle]),d.createVNode("span",null,[d.createVNode(m.value,{onClick:b,class:"edit-icon"},null)])]);return(y,w)=>{const x=d.resolveComponent("n-input-number"),C=d.resolveComponent("n-form-item"),_=d.resolveComponent("n-form"),S=d.resolveComponent("n-button"),E=d.resolveComponent("n-modal");return d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createVNode(E,{show:l.value,"onUpdate:show":w[2]||(w[2]=$=>l.value=$),"mask-closable":!1,preset:"dialog",title:g,"show-icon":!1,style:d.normalizeStyle(p.value)},{action:d.withCtx(()=>[d.createVNode(S,{size:"small",type:"info",onClick:v},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(y.$t("panel.confirm")),1)]),_:1})]),default:d.withCtx(()=>[d.createElementVNode("div",oBe,[d.createVNode(DY,{user:r.value},null,8,["user"]),d.createVNode(_,{"label-placement":"left","label-width":"auto","require-mark-placement":"right-hanging",size:"small"},{default:d.withCtx(()=>[d.createVNode(C,{label:"最小通过人数"},{default:d.withCtx(()=>[d.createVNode(x,{value:i.value.minApprovedCount,"onUpdate:value":w[0]||(w[0]=$=>i.value.minApprovedCount=$),placeholder:"请输入数值,最小值不能小于 1",min:1},null,8,["value"])]),_:1}),d.createVNode(C,{label:"最多拒绝人数"},{default:d.withCtx(()=>[d.createVNode(x,{value:i.value.maxRejectedCount,"onUpdate:value":w[1]||(w[1]=$=>i.value.maxRejectedCount=$),placeholder:"请输入数值",min:0},null,8,["value"])]),_:1})]),_:1})])]),_:1},8,["show","style"]),d.createVNode(S,{type:"info",onClick:c},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(o.value),1)]),_:1})],64)}}}),[["__scopeId","data-v-2641cd09"]]),YY=d.defineComponent({__name:"CounterSignProperty",props:{label:{type:String,default:"获取用户的配置"}},setup(e){const t=e,n=d.ref({...tl,outputTaskDefKey:""}),r=d.ref(X6),i=Zt(Vt),o=()=>{n.value=tBe(i.activeElement),r.value=nBe(i.activeElement)},a=(s,l)=>{bT(i.activeElement,s),yT(i.activeElement,l,!0)};return Go(o),(s,l)=>{const c=d.resolveComponent("n-descriptions-item"),u=d.resolveComponent("n-descriptions"),f=d.resolveComponent("n-collapse-item");return d.openBlock(),d.createBlock(f,null,d.createSlots({header:d.withCtx(()=>[d.createVNode(Mo,{title:t.label},{default:d.withCtx(()=>[d.createVNode(d.unref(Q2))]),_:1},8,["title"])]),default:d.withCtx(()=>[d.createElementVNode("div",null,[d.createVNode(aBe,{user:n.value,"onUpdate:user":l[0]||(l[0]=h=>n.value=h),condition:r.value,"onUpdate:condition":l[1]||(l[1]=h=>r.value=h),onOnOk:a},null,8,["user","condition"]),d.createVNode(IY,{"user-json":n.value},null,8,["user-json"]),d.createVNode(u,{"label-placement":"left",column:1,bordered:"",size:"small",style:{"margin-top":"10px"}},{default:d.withCtx(()=>[d.createVNode(c,null,{label:d.withCtx(()=>[d.createTextVNode(" 最少通过次数 ")]),default:d.withCtx(()=>[d.createTextVNode(" "+d.toDisplayString(r.value.minApprovedCount),1)]),_:1}),d.createVNode(c,null,{label:d.withCtx(()=>[d.createTextVNode(" 最多拒绝次数 ")]),default:d.withCtx(()=>[d.createTextVNode(" "+d.toDisplayString(r.value.maxRejectedCount),1)]),_:1})]),_:1})])]),_:2},[n.value.userId?{name:"header-extra",fn:d.withCtx(()=>[d.createVNode(Ea)]),key:"0"}:void 0]),1024)}}}),sBe=d.defineComponent({__name:"property",setup(e){return(t,n)=>(d.openBlock(),d.createBlock(YY,{label:"会签配置"}))}}),lBe="data:image/svg+xml,%3csvg%20t='1709868403061'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2300'%20width='30'%20height='30'%3e%3cpath%20d='M921.6%20916.992v61.44H139.6224v-61.44H921.6zM530.6368%2051.2a251.392%20251.392%200%200%201%20117.9648%20473.344l-10.5984%205.2736%2016.0768%2079.9232h223.2832l81.4592%20279.296H102.4l81.408-279.296h223.3344l16.0256-79.9232-10.3936-5.1712a251.7504%20251.7504%200%200%201-132.3008-198.0416L279.552%20314.368l-0.256-11.776A251.392%20251.392%200%200%201%20530.6368%2051.2z%20m0%2055.808a195.3792%20195.3792%200%200%200-195.5328%20194.8672l0.256%2010.4448a195.584%20195.584%200%200%200%20129.1776%20174.2848l22.6816%208.1408L452.9664%20665.6H225.6896l-48.7936%20167.5776h707.4304L835.4816%20665.6H608.256l-34.1504-170.9056%2022.6816-8.1408a195.584%20195.584%200%200%200-66.1504-379.4944z'%20fill='%232c2c2c'%20p-id='2301'%3e%3c/path%3e%3c/svg%3e";function cBe(e){const t=rt(e),n={};for(const r of p$){const i=`${Ot}:${r}`;n[r]=t.get(i)}return n}function xT(e,t,n){var o;const r=Zt(Vt),i=rt(e);(o=r.modeling)==null||o.updateModdleProperties(e,i,{[`${Ot}:${t}`]:n})}const ym=(e,t,n,r)=>{rb(e,{event:t,type:"delegateExpression",delegateExpression:n,fields:r},"TaskListener")},uBe=e=>{ym(e,"create","${checkSignAssigneeListener}"),ym(e,"complete","${completeSignApproveListener}")},dBe=e=>{ym(e,"create","${checkReceiveAssigneeListener}"),ym(e,"complete","${completeSignApproveListener}")},fBe=e=>{ym(e,"create","${checkReformAssigneeListener}"),ym(e,"complete","${completeSubmitListener}")},wT=e=>{const n=e.businessObject.get("activiti:assignee");return n?JSON.parse(n||"{}"):tl},CT=(e,t)=>{xT(e,"assignee",JSON.stringify(t))},hBe=(e,t)=>n=>{const r=t.createShape({type:"bpmn:UserTask"}),i=r.businessObject;i.set("name","创建审批节点"),i.set("activiti:assignee",JSON.stringify(tl)),Wa(r,{name:ua,value:D6}),uBe(r),e.start(n,r,void 0)},pBe=(e,t)=>{const n=hBe(e,t);return{"approval-user":{group:"customnode",title:"审批节点",imageUrl:lBe,action:{click:n,dragstart:n}}}},mBe=d.defineComponent({__name:"property",setup(e){return(t,n)=>(d.openBlock(),d.createBlock(vm,{label:"审批配置",getUserValue:d.unref(wT),updateUserValue:d.unref(CT)},null,8,["getUserValue","updateUserValue"]))}}),gBe="data:image/svg+xml,%3csvg%20t='1711350298534'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='5302'%20width='30'%20height='30'%3e%3cpath%20d='M768%2064V0H256v64H64v896h896V64zM320%2064h384v64H320z%20m576%20832H128V128h128v64h512V128h128z'%20fill='%23333333'%20p-id='5303'%3e%3c/path%3e%3cpath%20d='M450.56%20597.12L342.4%20489.6l-44.8%2044.8%20147.84%20148.48%20342.4-273.92-39.68-49.92-297.6%20238.08z'%20fill='%23333333'%20p-id='5304'%3e%3c/path%3e%3c/svg%3e",vBe=(e,t)=>n=>{const r=t.createShape({type:"bpmn:UserTask"}),i=r.businessObject;i.set("name","创建签收节点"),i.set("activiti:assignee",JSON.stringify(tl)),Wa(r,{name:ua,value:S$}),dBe(r),e.start(n,r,void 0)},bBe=(e,t)=>{const n=vBe(e,t);return{"sign-receipt-user":{group:"customnode",title:"签收节点",imageUrl:gBe,action:{click:n,dragstart:n}}}},yBe=d.defineComponent({__name:"property",setup(e){return(t,n)=>(d.openBlock(),d.createBlock(vm,{label:"签收配置",getUserValue:d.unref(wT),updateUserValue:d.unref(CT)},null,8,["getUserValue","updateUserValue"]))}}),xBe="data:image/svg+xml,%3csvg%20t='1711354185141'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='7753'%20width='30'%20height='30'%3e%3cpath%20d='M930.909091%201024H93.090909a93.090909%2093.090909%200%200%201-93.090909-93.090909V93.090909a93.090909%2093.090909%200%200%201%2093.090909-93.090909h837.818182a93.090909%2093.090909%200%200%201%2093.090909%2093.090909v837.818182a93.090909%2093.090909%200%200%201-93.090909%2093.090909zM116.363636%2069.818182a46.545455%2046.545455%200%200%200-46.545454%2046.545454v791.272728a46.545455%2046.545455%200%200%200%2046.545454%2046.545454h791.272728a46.545455%2046.545455%200%200%200%2046.545454-46.545454v-791.272728a46.545455%2046.545455%200%200%200-46.545454-46.545454z'%20fill='%232c2c2c'%20p-id='7754'%3e%3c/path%3e%3cpath%20d='M724.293818%20582.050909l-65.815273-65.815273a23.272727%2023.272727%200%200%201%2032.907637-32.907636l49.384727%2049.338182%20115.153455-115.153455a23.319273%2023.319273%200%200%201%2033.093818%2032.861091l-131.816727%20131.677091a23.272727%2023.272727%200%200%201-32.907637%200z'%20fill='%232c2c2c'%20p-id='7755'%3e%3c/path%3e%3cpath%20d='M724.293818%20787.409455l-65.815273-65.815273a23.272727%2023.272727%200%200%201%2032.907637-32.907637l49.384727%2049.338182%20115.153455-115.153454a23.319273%2023.319273%200%200%201%2033.093818%2032.861091l-131.816727%20131.677091a23.272727%2023.272727%200%200%201-32.907637%200z'%20fill='%232c2c2c'%20p-id='7756'%3e%3c/path%3e%3cpath%20d='M724.293818%20376.738909L658.478545%20310.923636a23.272727%2023.272727%200%200%201%2032.907637-32.907636l49.384727%2049.338182%20115.153455-115.153455a23.319273%2023.319273%200%200%201%2033.093818%2032.861091l-131.816727%20131.677091a23.272727%2023.272727%200%200%201-32.907637%200z'%20fill='%232c2c2c'%20p-id='7757'%3e%3c/path%3e%3cpath%20d='M370.036364%20530.385455a172.218182%20172.218182%200%200%201-172.218182-172.218182%20172.218182%20172.218182%200%200%201%20172.218182-172.218182%20172.218182%20172.218182%200%200%201%20172.218181%20172.218182%20172.218182%20172.218182%200%200%201-172.218181%20172.218182z%20m0-288.349091a116.363636%20116.363636%200%200%200-116.363637%20116.363636%20116.363636%20116.363636%200%200%200%20116.363637%20116.363636%20116.363636%20116.363636%200%200%200%20116.363636-116.363636%20116.363636%20116.363636%200%200%200-116.363636-116.363636z'%20fill='%232c2c2c'%20p-id='7758'%3e%3c/path%3e%3cpath%20d='M198.749091%20814.312727H139.589818a378.088727%20378.088727%200%200%201%2075.264-206.848A202.845091%20202.845091%200%200%201%20372.363636%20523.170909a202.798545%20202.798545%200%200%201%20157.416728%2084.247273%20378.088727%20378.088727%200%200%201%2075.264%20206.801454h-59.159273a337.361455%20337.361455%200%200%200-55.482182-161.652363%20148.107636%20148.107636%200%200%200-118.085818-70.795637%20148.014545%20148.014545%200%200%200-118.085818%2070.795637%20337.594182%20337.594182%200%200%200-55.528728%20161.652363z'%20fill='%232c2c2c'%20p-id='7759'%3e%3c/path%3e%3c/svg%3e",wBe=(e,t)=>n=>{const r=t.createShape({type:"bpmn:UserTask"}),i=r.businessObject;i.set("name","创建多人签收节点"),i.set("activiti:assignee","${counterReceiveAssignee}"),Wa(r,{name:ua,value:_$}),eBe(r),e.start(n,r,void 0)},CBe=(e,t)=>{const n=wBe(e,t);return{"multi-sign-receipt-user":{group:"customnode",title:"多人签收节点",imageUrl:xBe,action:{click:n,dragstart:n}}}},_Be=d.defineComponent({__name:"property",setup(e){return(t,n)=>(d.openBlock(),d.createBlock(YY,{label:"多人签收配置"}))}}),SBe="data:image/svg+xml,%3csvg%20t='1709879234957'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4570'%20width='30'%20height='30'%3e%3cpath%20d='M1016.904408%20870.092348a150.623161%20150.623161%200%200%200-124.661452-148.304141V505.497194a25.565779%2025.565779%200%200%200%200-2.205897v-1.018107a25.452656%2025.452656%200%200%200-25.452656-25.452655H520.577619V303.459668%20302.328438a150.623161%20150.623161%200%201%200-51.866857%200v174.60522H154.68155a25.452656%2025.452656%200%200%200-25.452656%2025.452655v0.961545a25.565779%2025.565779%200%200%200%200%202.205897v216.291013a150.623161%20150.623161%200%201%200%2051.866857%200V511.605831h659.280348v210.182376a150.623161%20150.623161%200%201%200%20176.471747%20148.304141zM494.61591%20252.554356a98.699743%2098.699743%200%201%201%200-197.399487%2098.699743%2098.699743%200%200%201%200%20197.399487z%20m-339.425307%20518.838249a98.699743%2098.699743%200%201%201%200%20197.399487%2098.699743%2098.699743%200%200%201%200-197.399487z%20m809.790387%2098.699743a98.699743%2098.699743%200%201%201-197.342925%200%2098.699743%2098.699743%200%200%201%20197.399486%200z'%20p-id='4571'%20fill='%232c2c2c'%3e%3c/path%3e%3c/svg%3e",EBe=(e,t)=>n=>{const r=t.createShape({type:"bpmn:ExclusiveGateway"});Wa(r,{name:ua,value:TK}),e.start(n,r,void 0)},kBe=(e,t)=>{const n=EBe(e,t);return{"leave-gateway":{group:"customnode",title:"条件节点",imageUrl:SBe,action:{click:n,dragstart:n}}}},ZY=d.defineComponent({__name:"ConditionValueCreator",props:{expr:{type:Object,required:!0},label:{type:String,default:"配置"}},emits:["update:expr"],setup(e,{emit:t}){const n=e,r=d.ref({...JAe,...n.expr}),i=tNe(),o=d.computed(()=>{var c;switch(((c=i.find(u=>u.value===r.value.taskDefKey))==null?void 0:c.type)||""){case dm:return QAe;case G2:return eNe;default:return[]}}),a=t,s=l=>{a("update:expr",l)};return d.watch(r.value,(l,c)=>{l.taskDefKey!==(c==null?void 0:c.taskDefKey)&&(l.taskOutputKey=""),s(d.toRaw(l))},{immediate:!0}),(l,c)=>{const u=d.resolveComponent("n-select"),f=d.resolveComponent("n-input"),h=d.resolveComponent("n-dynamic-input"),p=d.resolveComponent("n-flex");return d.openBlock(),d.createBlock(p,{wrap:!1},{default:d.withCtx(()=>[d.createVNode(u,{value:r.value.conditionValueType,"onUpdate:value":c[0]||(c[0]=m=>r.value.conditionValueType=m),placeholder:"值类型",options:d.unref(jK),onKeydown:c[1]||(c[1]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},null,8,["value","options"]),r.value.conditionValueType===d.unref(Sa).STRING?(d.openBlock(),d.createBlock(f,{key:0,value:r.value.stringValue,"onUpdate:value":c[2]||(c[2]=m=>r.value.stringValue=m),placeholder:"请输入",onKeydown:c[3]||(c[3]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},null,8,["value"])):d.createCommentVNode("",!0),r.value.conditionValueType===d.unref(Sa).NUMBER?(d.openBlock(),d.createBlock(f,{key:1,value:r.value.numberValue,"onUpdate:value":c[4]||(c[4]=m=>r.value.numberValue=m),placeholder:"请输入",onKeydown:c[5]||(c[5]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},null,8,["value"])):d.createCommentVNode("",!0),r.value.conditionValueType===d.unref(Sa).STRING_LIST?(d.openBlock(),d.createBlock(h,{key:2,value:r.value.stringValueList,"onUpdate:value":c[6]||(c[6]=m=>r.value.stringValueList=m),placeholder:"请输入值",min:1},null,8,["value"])):d.createCommentVNode("",!0),r.value.conditionValueType===d.unref(Sa).TASK_OUTPUT?(d.openBlock(),d.createBlock(u,{key:3,style:{width:"128px"},value:r.value.taskDefKey,"onUpdate:value":c[7]||(c[7]=m=>r.value.taskDefKey=m),options:d.unref(i),placeholder:"请选择节点"},null,8,["value","options"])):d.createCommentVNode("",!0),r.value.conditionValueType===d.unref(Sa).TASK_OUTPUT?(d.openBlock(),d.createBlock(u,{key:4,style:{width:"128px"},value:r.value.taskOutputKey,"onUpdate:value":c[8]||(c[8]=m=>r.value.taskOutputKey=m),options:o.value,placeholder:"请选择属性"},null,8,["value","options"])):d.createCommentVNode("",!0)]),_:1})}}}),$Be={class:"user-selector-container"},TBe=d.createElementVNode("p",null,"左值",-1),RBe=d.createElementVNode("p",null,"操作",-1),PBe=d.createElementVNode("p",null,"右值",-1),OBe=d.defineComponent({__name:"GatewayConditionSelector",props:{condition:{type:Object,required:!0},label:{type:String,default:"配置"},dialogTitle:{type:String,default:"条件配置"}},emits:["update:condition","on-ok"],setup(e,{emit:t}){const n=e,{condition:r,label:i}=d.toRefs(n),o=t,a=w=>{o("update:condition",w)},s=d.ref(!1),l=()=>{s.value=!0},c=d.ref(!1),u=d.ref(1e3),f=d.ref(600),h=d.computed(()=>({width:`${u.value}px`,height:`${f.value}px`})),p=d.ref(d.markRaw(gu));function m(){c.value=!c.value,c.value?(u.value=window.innerWidth,f.value=window.innerHeight,p.value=eb):(u.value=1e3,f.value=600,p.value=gu)}const b=d.computed(()=>{const w=P0(D6).map(O0),x=P0(N6).map(O0);return w.concat(x)}),v=d.computed(()=>NK(r.value)),g=()=>{a(r.value),o("on-ok",r.value),s.value=!1},y=()=>d.createVNode("div",{class:"json-dialog-title-container"},[d.createVNode("span",null,[n.dialogTitle]),d.createVNode("span",null,[d.createVNode(p.value,{onClick:m,class:"edit-icon"},null)])]);return(w,x)=>{const C=d.resolveComponent("n-gi"),_=d.resolveComponent("n-select"),S=d.resolveComponent("n-grid"),E=d.resolveComponent("n-flex"),$=d.resolveComponent("n-tab-pane"),k=d.resolveComponent("n-form-item"),O=d.resolveComponent("n-switch"),T=d.resolveComponent("n-tabs"),j=d.resolveComponent("n-alert"),D=d.resolveComponent("n-form"),B=d.resolveComponent("n-button"),V=d.resolveComponent("n-modal");return d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createVNode(V,{class:"gateway-condition-selector-modal",show:s.value,"onUpdate:show":x[8]||(x[8]=R=>s.value=R),"mask-closable":!1,preset:"dialog",title:y,"show-icon":!1,style:d.normalizeStyle(h.value)},{action:d.withCtx(()=>[d.createVNode(B,{size:"small",type:"info",onClick:g},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(w.$t("panel.confirm")),1)]),_:1})]),default:d.withCtx(()=>[d.createElementVNode("div",$Be,[d.createVNode(D,{"label-placement":"left","label-width":"auto","require-mark-placement":"right-hanging",size:"small",style:{marginTop:"10px"}},{default:d.withCtx(()=>[d.createVNode(T,{type:"line",animated:"",value:d.unref(r).conditionType,"onUpdate:value":x[7]||(x[7]=R=>d.unref(r).conditionType=R)},{default:d.withCtx(()=>[d.createVNode($,{name:d.unref(I6)[0].value,tab:d.unref(I6)[0].label},{default:d.withCtx(()=>[d.createVNode(S,{"x-gap":"12",cols:24},{default:d.withCtx(()=>[d.createVNode(C,{span:10},{default:d.withCtx(()=>[TBe,d.createVNode(ZY,{expr:d.unref(r).operatorCondition.left,"onUpdate:expr":x[0]||(x[0]=R=>d.unref(r).operatorCondition.left=R)},null,8,["expr"])]),_:1}),d.createVNode(C,{span:4},{default:d.withCtx(()=>[RBe,d.createVNode(_,{value:d.unref(r).operatorCondition.operator,"onUpdate:value":x[1]||(x[1]=R=>d.unref(r).operatorCondition.operator=R),placeholder:"请选择操作类型",options:d.unref(OK),onKeydown:x[2]||(x[2]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},null,8,["value","options"])]),_:1}),d.createVNode(C,{span:10},{default:d.withCtx(()=>[PBe,d.createVNode(ZY,{expr:d.unref(r).operatorCondition.right,"onUpdate:expr":x[3]||(x[3]=R=>d.unref(r).operatorCondition.right=R)},null,8,["expr"])]),_:1})]),_:1}),d.createVNode(E,{wrap:!1})]),_:1},8,["name","tab"]),d.createVNode($,{name:d.unref(I6)[1].value,tab:d.unref(I6)[1].label},{default:d.withCtx(()=>[d.createVNode(k,{label:"节点 ID"},{default:d.withCtx(()=>[d.createVNode(_,{value:d.unref(r).approveCondition.approveTaskDefKey,"onUpdate:value":x[4]||(x[4]=R=>d.unref(r).approveCondition.approveTaskDefKey=R),placeholder:"请选择审批节点",options:b.value,onKeydown:x[5]||(x[5]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},null,8,["value","options"])]),_:1}),d.createVNode(k,{label:"是否审批通过"},{default:d.withCtx(()=>[d.createVNode(O,{round:!1,value:d.unref(r).approveCondition.targetApproveStatus,"onUpdate:value":x[6]||(x[6]=R=>d.unref(r).approveCondition.targetApproveStatus=R)},null,8,["value"])]),_:1})]),_:1},8,["name","tab"])]),_:1},8,["value"]),d.createVNode(j,{class:"preview-alert",title:"结果预览",type:"info"},{default:d.withCtx(()=>[d.createElementVNode("span",null,d.toDisplayString(v.value),1)]),_:1})]),_:1})])]),_:1},8,["show","style"]),d.createVNode(B,{type:"info",onClick:l},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(d.unref(i)),1)]),_:1})],64)}}}),jBe=["bpmn:Activity","bpmn:ExclusiveGateway","bpmn:InclusiveGateway","bpmn:ComplexGateway"],XY=[{label:"无条件( None )",value:"none"},{label:"默认路径( Default )",value:"default"},{label:"条件表达式( Expression )",value:"expression"},{label:"条件脚本( Script )",value:"script"}];function MBe(e){return Vn(e,jBe)}function JY(e){return Q(e,"bpmn:Event")&&!!k$(e,"bpmn:ConditionalEventDefinition")}function ABe(e){return Q(e,"bpmn:StartEvent")}function NBe(e){return Q(e,"bpmn:SequenceFlow")&&MBe(e==null?void 0:e.source)||JY(e)}function DBe(e){if(vc(e))return vc(e).get("variableName")}function IBe(e,t){var i;const n=Zt(Vt),r=vc(e);r&&((i=n.modeling)==null||i.updateModdleProperties(e,r,{variableName:t||""}))}function LBe(e){if(vc(e))return vc(e).get("variableEvents")}function BBe(e,t){var i;const n=Zt(Vt),r=vc(e);r&&((i=n.modeling)==null||i.updateModdleProperties(e,r,{variableEvents:t||""}))}function FBe(e){var n,r;const t=bu(e);return t?t.get("language")===void 0?"expression":"script":((r=(n=e.source)==null?void 0:n.businessObject)==null?void 0:r.default)===e.businessObject?"default":"none"}function zBe(e,t){if(!t||t==="none"||t==="default")return _T(e),XBe(e,t==="default");const n={language:t==="script"?"":void 0},r=Q(e,"bpmn:SequenceFlow")?rt(e):vc(e),i=R0("bpmn:FormalExpression",n,r);_T(e,i)}function QY(e){const t=bu(e);if(t)return t.get("body")}function eZ(e,t){const n=Q(e,"bpmn:SequenceFlow")?rt(e):vc(e),r=R0("bpmn:FormalExpression",{body:t},n);_T(e,r)}function VBe(e){const t=bu(e);return console.log(t),t.get("body")!==void 0?"inline":t.get(`${Ot}:resource`)!==void 0?"external":"none"}function HBe(e,t){var i;const n=Zt(Vt);let r;(!t||t==="none")&&(r={body:void 0,[`${Ot}:resource`]:void 0}),t==="inline"&&(r={body:"",[`${Ot}:resource`]:void 0}),t==="external"&&(r={body:void 0,[`${Ot}:resource`]:""}),(i=n.modeling)==null||i.updateModdleProperties(e,bu(e),r)}function UBe(e){var t;return(t=bu(e))==null?void 0:t.get("language")}function WBe(e,t){var r;(r=Zt(Vt).modeling)==null||r.updateModdleProperties(e,bu(e),{language:t})}function qBe(e){var t;return(t=bu(e))==null?void 0:t.get("body")}function GBe(e,t){var r;(r=Zt(Vt).modeling)==null||r.updateModdleProperties(e,bu(e),{body:t})}function KBe(e){var t;return(t=bu(e))==null?void 0:t.get(`${Ot}:resource`)}function YBe(e,t){var r;(r=Zt(Vt).modeling)==null||r.updateModdleProperties(e,bu(e),{[`${Ot}:resource`]:t})}function ZBe(e){return Q(e,"bpmn:SequenceFlow")?XY:XY.filter(t=>t.value!=="default")}function vc(e){return Q(e,"bpmn:Event")?k$(e,"bpmn:ConditionalEventDefinition"):!1}function bu(e){const t=rt(e);if(Q(t,"bpmn:SequenceFlow"))return t.get("conditionExpression");if(vc(t))return vc(t).get("condition")}function _T(e,t){var r,i;const n=Zt(Vt);Q(e,"bpmn:SequenceFlow")?(r=n.modeling)==null||r.updateProperties(e,{conditionExpression:t}):(i=n.modeling)==null||i.updateModdleProperties(e,vc(e),{condition:t})}function XBe(e,t){var r;(r=Zt(Vt).modeling)==null||r.updateProperties(e.source,{default:t?e:void 0})}const ST={conditionType:"OPERATOR",operatorCondition:{operator:"EQ",left:{},right:{}},approveCondition:{targetApproveStatus:!1}},tZ=e=>{const{conditionValueType:t}=e,n={conditionValueType:t};switch(t){case"EMPTY":case"CREATOR":break;case"NUMBER":n.numberValue=e.numberValue;break;case"STRING":n.stringValue=e.stringValue;break;case"STRING_LIST":n.stringValueList=e.stringValueList;break;case"TASK_OUTPUT":n.taskDefKey=e.taskDefKey,n.taskOutputKey=e.taskOutputKey;break}return n},JBe=e=>{const{left:t,right:n,operator:r}=e;return{operator:r,left:tZ(t||{}),right:tZ(n||{})}},QBe=e=>{const{conditionType:t,operatorCondition:n,approveCondition:r}=e,i={conditionType:t};switch(t){case fm.APPROVE:i.approveCondition=r;break;case fm.OPERATOR:i.operatorCondition=JBe(n);break}return i},eFe=e=>"${conditionService.isConditionMet(execution, '"+JSON.stringify(QBe(e))+"')}",nZ=e=>{const t=QY(e),r=Y6(t).args;if(r.length>=2){const i=gT(r[1]),o=JSON.parse(i.content||"{}");return{...ST,...o}}else return{...ST}},rZ=(e,t)=>{eZ(e,eFe(t))},tFe=d.defineComponent({__name:"GatewayLineProperty",props:{label:{type:String,default:"获取用户的配置"},getConditionValue:{type:Function,default:nZ},updateConditionValue:{type:Function,default:rZ}},setup(e){const t=e,n=d.ref(ST),r=d.computed(()=>NK(n.value)),i=Zt(Vt),o=()=>{n.value=t.getConditionValue(i.activeElement)},a=s=>{t.updateConditionValue(i.activeElement,s)};return Go(o),(s,l)=>{const c=d.resolveComponent("n-descriptions-item"),u=d.resolveComponent("n-descriptions"),f=d.resolveComponent("n-collapse-item");return d.openBlock(),d.createBlock(f,null,d.createSlots({header:d.withCtx(()=>[d.createVNode(Mo,{title:t.label},{default:d.withCtx(()=>[d.createVNode(d.unref(Q2))]),_:1},8,["title"])]),default:d.withCtx(()=>[d.createElementVNode("div",null,[d.createVNode(OBe,{condition:n.value,"onUpdate:condition":l[0]||(l[0]=h=>n.value=h),onOnOk:a},null,8,["condition"]),d.createVNode(u,{"label-placement":"left",column:1,bordered:"",size:"small",style:{"margin-top":"10px"}},{default:d.withCtx(()=>[d.createVNode(c,null,{label:d.withCtx(()=>[d.createTextVNode(" 类型 ")]),default:d.withCtx(()=>[d.createTextVNode(" "+d.toDisplayString(n.value.conditionType),1)]),_:1}),d.createVNode(c,null,{label:d.withCtx(()=>[d.createTextVNode(" 条件描述 ")]),default:d.withCtx(()=>[d.createTextVNode(" "+d.toDisplayString(r.value),1)]),_:1})]),_:1})])]),_:2},[n.value.approveCondition||n.value.operatorCondition?{name:"header-extra",fn:d.withCtx(()=>[d.createVNode(Ea)]),key:"0"}:void 0]),1024)}}}),nFe=d.defineComponent({__name:"property",setup(e){return(t,n)=>(d.openBlock(),d.createBlock(tFe,{label:"条件配置",getConditionValue:d.unref(nZ),updateConditionValue:d.unref(rZ)},null,8,["getConditionValue","updateConditionValue"]))}}),rFe="data:image/svg+xml,%3csvg%20t='1710226575946'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='24504'%20width='30'%20height='30'%3e%3cpath%20d='M512%20128a383.146667%20383.146667%200%200%201%20134.997333%2024.405333l-50.474666%2050.858667a320%20320%200%201%200%20225.109333%20227.626667l50.944-51.328C887.722667%20420.864%20896%20465.493333%20896%20512a384%20384%200%201%201-384-384z%20m386.56-13.994667l6.229333%205.802667a117.888%20117.888%200%200%201%200.341334%20166.4l-268.970667%20271.104a64%2064%200%200%201-27.818667%2016.426667l-179.712%2051.584a21.333333%2021.333333%200%200%201-26.368-26.410667l51.626667-180.053333a64%2064%200%200%201%2016.085333-27.392l269.184-271.36a116.906667%20116.906667%200%200%201%20159.402667-6.101334z%20m-113.962667%2051.2l-269.226666%20271.36-30.378667%20105.984%20105.728-30.293333%20268.970667-271.146667c19.498667-19.669333%2020.736-50.602667%203.754666-71.68l-4.053333-4.565333a52.906667%2052.906667%200%200%200-74.794667%200.341333z'%20fill='%232c2c2c'%20p-id='24505'%3e%3c/path%3e%3c/svg%3e",ET="workflowStatus",iZ=e=>({name:ET,type:"expression",value:e}),iFe=(e,t)=>{hm(e,iZ(t))},oFe=e=>(j0(e).find(i=>i.name===ET)||{}).expression||Y2.COMPLETED,aFe=(e,t)=>{const n=d.toRaw(j0(e)),r=n.findIndex(i=>i.name===ET);r!==-1&&pm(e,n[r],iZ(t))},sFe=(e,t)=>n=>{const r=t.createShape({type:"bpmn:ServiceTask"}),i=r.businessObject;i.set("name","设置工作流状态"),i.set("activiti:delegateExpression","${setWorkflowStatus}"),Wa(r,{name:ua,value:RK}),iFe(r,Y2.COMPLETED),e.start(n,r,void 0)},lFe=(e,t)=>{const n=sFe(e,t);return{"set-workflow-status":{group:"customnode",title:"设置工作流状态",imageUrl:rFe,action:{click:n,dragstart:n}}}},cFe=d.defineComponent({name:"EditItem",props:{label:{type:String,default:""},textAlign:{type:String,default:"right",validator:e=>["left","center","right"].includes(e)},labelWidth:{type:Number,default:80}},computed:{labelStyle(){return{width:`${this.labelWidth}px`,textAlign:this.textAlign}}}}),uFe={class:"edit-item"},dFe={class:"edit-item_content"};function fFe(e,t,n,r,i,o){return d.openBlock(),d.createElementBlock("div",uFe,[d.createElementVNode("div",{class:"edit-item_label",style:d.normalizeStyle(e.labelStyle)},d.toDisplayString(e.label)+":",5),d.createElementVNode("div",dFe,[d.renderSlot(e.$slots,"default")])])}const ui=Ba(cFe,[["render",fFe]]),hFe=d.defineComponent({__name:"WorkflowStatusProperty",props:{label:{type:String,default:"设置工作流状态"}},setup(e){const t=e,n=d.ref(""),r=Zt(Vt),i=()=>{n.value=oFe(r.activeElement)},o=a=>{aFe(r.activeElement,a)};return Go(i),(a,s)=>{const l=d.resolveComponent("n-select"),c=d.resolveComponent("n-collapse-item");return d.openBlock(),d.createBlock(c,null,{"header-extra":d.withCtx(()=>[d.createVNode(Ea)]),header:d.withCtx(()=>[d.createVNode(Mo,{title:t.label},{default:d.withCtx(()=>[d.createVNode(d.unref(Q2))]),_:1},8,["title"])]),default:d.withCtx(()=>[d.createElementVNode("div",null,[d.createVNode(ui,{key:"status",label:"工作流状态","label-width":120},{default:d.withCtx(()=>[d.createVNode(l,{value:n.value,"onUpdate:value":[s[0]||(s[0]=u=>n.value=u),o],options:d.unref(nNe)},null,8,["value","options"])]),_:1})])]),_:1})}}}),pFe=d.defineComponent({__name:"property",setup(e){return(t,n)=>(d.openBlock(),d.createBlock(hFe,{label:"工作流状态的配置",disableTitle:!0}))}}),mFe="data:image/svg+xml,%3csvg%20t='1712045636499'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2673'%20width='30'%20height='30'%3e%3cpath%20d='M665.312539%201022.083593a32.578915%2032.578915%200%200%201-28.746101-18.525265l-191.640674-411.388646-419.693075-191.640674a31.30131%2031.30131%200%200%201-19.164068-30.662508%2031.940112%2031.940112%200%200%201%2020.441672-24.913287L976.409233%209.582034a31.940112%2031.940112%200%200%201%2033.217716%207.026824%2033.856519%2033.856519%200%200%201%207.665627%2033.217717l-319.401122%20953.092951a31.940112%2031.940112%200%200%201-28.746102%2021.080474zM122.33063%20378.809732l358.36806%20162.894572a28.746101%2028.746101%200%200%201%2015.970056%2015.331254l164.172177%20350.063631%20274.684966-815.750468z'%20fill='%232c2c2c'%20p-id='2674'%3e%3c/path%3e%3cpath%20d='M467.283843%20602.390518a34.495321%2034.495321%200%200%201-19.164068-8.943232%2031.940112%2031.940112%200%200%201%200-45.354959L964.27199%2017.247661a31.940112%2031.940112%200%200%201%2045.354959%200%2031.940112%2031.940112%200%200%201%200%2045.354959l-519.346225%20530.205864a32.578915%2032.578915%200%200%201-22.996881%209.582034z'%20fill='%232c2c2c'%20p-id='2675'%3e%3c/path%3e%3c/svg%3e",gFe=(e,t)=>n=>{const r=t.createShape({type:"bpmn:ServiceTask"}),i=r.businessObject;i.set("name","创建抄送节点"),i.set("activiti:delegateExpression","${ccService}"),Wa(r,{name:ua,value:E$}),P$(r,tl),e.start(n,r,void 0)},vFe=(e,t)=>{const n=gFe(e,t);return{"carbon-copy":{group:"customnode",title:"抄送节点",imageUrl:mFe,action:{click:n,dragstart:n}}}},bFe=d.defineComponent({__name:"property",setup(e){return(t,n)=>(d.openBlock(),d.createBlock(vm,{label:"配置抄送人员"}))}}),yFe="data:image/svg+xml,%3csvg%20t='1711077139435'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='6912'%20width='30'%20height='30'%3e%3cpath%20d='M816%20816m-32%200a32%2032%200%201%200%2064%200%2032%2032%200%201%200-64%200Z'%20fill='%232c2c2c'%20p-id='6913'%3e%3c/path%3e%3cpath%20d='M512%20968a456%20456%200%201%201%20395.76-229.36%2032%2032%200%200%201-55.52-32%20392%20392%200%201%200-145.44%20145.44%2032%2032%200%200%201%2032%2055.52A456%20456%200%200%201%20512%20968z'%20fill='%232c2c2c'%20p-id='6914'%3e%3c/path%3e%3cpath%20d='M576%20672H448a96%2096%200%200%201-96-96V448a96%2096%200%200%201%2096-96h128a96%2096%200%200%201%2096%2096v128a96%2096%200%200%201-96%2096zM448%20416a32%2032%200%200%200-32%2032v128a32%2032%200%200%200%2032%2032h128a32%2032%200%200%200%2032-32V448a32%2032%200%200%200-32-32H448z'%20fill='%232c2c2c'%20p-id='6915'%3e%3c/path%3e%3c/svg%3e",xFe=(e,t,n,r)=>{rb(e,{event:t,type:"delegateExpression",delegateExpression:n,fields:r},"ExecutionListener")},wFe=e=>{xFe(e,"start","${workflowCompleteListener}")},CFe=(e,t)=>n=>{const r=t.createShape({type:"bpmn:EndEvent"});r.businessObject.set("name","结束节点"),Wa(r,{name:ua,value:zAe}),wFe(r),e.start(n,r,void 0)},_Fe=(e,t)=>{const n=CFe(e,t);return{"leave-end":{group:"customnode",title:"结束节点",imageUrl:yFe,action:{click:n,dragstart:n}}}},SFe="data:image/svg+xml,%3csvg%20t='1711096750865'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='8155'%20width='30'%20height='30'%3e%3cpath%20d='M953.274192%20628.793006l-21.366633-21.325701c-5.910617-5.880941-15.507182-5.880941-21.391193%200l-32.075533%2031.949666%2042.75885%2042.652426%2032.075533-31.949666C959.186855%20644.23879%20959.186855%20634.704646%20953.274192%20628.793006zM728.751602%20788.699949l-14.251585%2056.841589%2056.979736-14.21884L728.751602%20788.699949zM739.51576%20778.022773l42.72815%2042.621726%20128.300085-127.927601-42.756803-42.652426L739.51576%20778.022773zM839.594083%20865.172645c0%2038.442544-27.164686%2052.501748-65.626673%2052.501748L157.075455%20917.674393c-16.229636%200.966001-52.501748-33.390481-52.501748-52.501748L104.573707%20156.403143c1.426489-19.86135%2034.018791-52.501748%2052.501748-52.501748l616.891955%200c30.474059-0.665149%2065.626673%2031.57002%2065.626673%2052.501748L839.594083%20589.540004c0%2010.377348%2039.375799%2010.377348%2039.375799%200L878.969882%20169.528068c0-53.803393-47.801702-105.002472-101.634772-105.002472L162.815179%2064.525596c-53.827953%200-97.617271%2043.767829-97.617271%2097.571223l0%20697.383174c0%2053.80237%2043.789319%2097.570199%2097.617271%2097.570199l614.519931%200c53.834092%200%20101.634772-38.075177%20101.634772-91.877547C878.969882%20846.096171%20839.594083%20846.096171%20839.594083%20865.172645zM252.739235%20240.400209c-5.16565-5.158487-12.421914-8.162914-19.723204-8.162914-7.30129%200-14.557554%203.004427-19.718087%208.162914-5.164626%205.16258-8.172123%2012.413727-8.172123%2019.713994%200%207.297197%203.007497%2014.549368%208.172123%2019.711947%205.160533%205.15951%2012.416797%208.162914%2019.718087%208.162914%207.30129%200%2014.557554-3.003404%2019.723204-8.162914%205.164626-5.16258%208.170077-12.413727%208.170077-19.711947C260.909311%20252.813936%20257.903861%20245.562788%20252.739235%20240.400209zM629.588115%20235.154741%20288.328801%20235.154741c-15.683191%200-15.244192%2038.895869%200.440022%2038.895869l340.819293%200.479931C645.457548%20274.531564%20645.457548%20235.154741%20629.588115%20235.154741zM252.739235%20342.627475c-5.16565-5.158487-12.421914-8.162914-19.723204-8.162914-7.30129%200-14.557554%203.004427-19.718087%208.162914-5.164626%205.16258-8.172123%2012.413727-8.172123%2019.712971%200%207.299243%203.007497%2014.550391%208.172123%2019.712971%205.160533%205.15951%2012.416797%208.163937%2019.718087%208.163937%207.30129%200%2014.557554-3.004427%2019.723204-8.163937%205.164626-5.16258%208.170077-12.413727%208.170077-19.712971C260.909311%20355.041202%20257.903861%20347.789031%20252.739235%20342.627475zM629.588115%20340.158237%20288.328801%20340.158237c-15.868409%200-15.868409%2039.375799%200%2039.375799l341.259314%200C645.457548%20379.534036%20645.457548%20340.158237%20629.588115%20340.158237zM252.739235%20444.853717c-5.16565-5.158487-12.421914-8.162914-19.723204-8.162914-7.30129%200-14.557554%203.004427-19.718087%208.162914-5.164626%205.16258-8.172123%2012.413727-8.172123%2019.712971%200%207.299243%203.007497%2014.550391%208.172123%2019.713994%205.160533%205.16258%2012.416797%208.162914%2019.718087%208.162914%207.30129%200%2014.557554-3.000334%2019.723204-8.162914%205.164626-5.163603%208.170077-12.415774%208.170077-19.713994C260.909311%20457.267445%20257.903861%20450.016297%20252.739235%20444.853717zM233.016031%20538.88737c-7.30129%200-14.557554%203.004427-19.718087%208.167007-5.164626%205.158487-8.172123%2012.413727-8.172123%2019.712971s3.007497%2014.552437%208.172123%2019.708877c5.160533%205.163603%2012.416797%208.167007%2019.718087%208.167007%207.30129%200%2014.557554-3.003404%2019.723204-8.167007%205.164626-5.15644%208.170077-12.409634%208.170077-19.708877s-3.00545-14.554484-8.170077-19.712971C247.573585%20541.891797%20240.317321%20538.88737%20233.016031%20538.88737zM629.588115%20445.160709%20288.328801%20445.160709c-15.683191%200-15.244192%2038.895869%200.440022%2038.895869l340.819293%200.479931C645.457548%20484.537532%20645.457548%20445.160709%20629.588115%20445.160709zM629.588115%20550.164205%20288.328801%20550.164205c-15.868409%200-15.868409%2039.375799%200%2039.375799l341.259314%200C645.457548%20589.540004%20645.457548%20550.164205%20629.588115%20550.164205z'%20fill='%232c2c2c'%20p-id='8156'%3e%3c/path%3e%3c/svg%3e",EFe=(e,t)=>n=>{const r=t.createShape({type:"bpmn:UserTask"}),i=r.businessObject;i.set("name","创建整改节点"),i.set("activiti:assignee",JSON.stringify(tl)),Wa(r,{name:ua,value:$K}),fBe(r),e.start(n,r,void 0)},kFe=(e,t)=>{const n=EFe(e,t);return{"reform-user":{group:"customnode",title:"整改节点",imageUrl:SFe,action:{click:n,dragstart:n}}}},$Fe=d.defineComponent({__name:"property",setup(e){const t=d.ref("整改配置");return(n,r)=>(d.openBlock(),d.createBlock(vm,{label:t.value,getUserValue:d.unref(wT),updateUserValue:d.unref(CT)},null,8,["label","getUserValue","updateUserValue"]))}}),TFe=(e,t)=>({...pNe(e,t),...fLe(e,t),...CLe(e,t),...aLe(e,t),...kLe(e,t),...PLe(e,t),...iBe(e,t),...pBe(e,t),...bBe(e,t),...CBe(e,t),...kFe(e,t),...vFe(e,t),...kBe(e,t),...lFe(e,t),..._Fe(e,t)}),RFe=e=>e?!!g$(e).find(r=>r.name===ua):!1,kT=e=>{if(!e)return!1;const n=g$(e).find(r=>r.name===ua);return n?n.value:""},PFe=e=>{const t=e.businessObject;let n=kT(e);const r=[];if(Q(t,"bpmn:SequenceFlow")){const o=t.sourceRef;Q(o,"bpmn:ExclusiveGateway")&&(n=kT(o))}switch(n){case dm:r.push(rLe);break;case w$:r.push(yLe);break;case C$:r.push(_Le);break;case G2:r.push(sLe);break;case y$:r.push($Le);break;case x$:r.push(OLe);break;case N6:r.push(sBe);break;case D6:r.push(mBe);break;case S$:r.push(yBe);break;case _$:r.push(_Be);break;case $K:r.push($Fe);break;case E$:r.push(bFe);break;case TK:Q(t,"bpmn:SequenceFlow")&&r.push(nFe);break;case RK:r.push(pFe);break;default:n&&console.error(`未知的业务类型${n},无法获取右侧属性面板`);break}return{isBizCustom:!!n,propComponents:r}};Hs.createPinia();const Zt=Hs.defineStore("modeler",()=>{const e=d.shallowRef(void 0),t=d.shallowRef(void 0),n=d.shallowRef(void 0),r=d.shallowRef(void 0),i=d.ref(void 0),o=d.shallowRef(void 0),a=d.ref(void 0);return{modeler:t,moddle:n,modeling:e,canvas:r,elementRegistry:i,activeElement:o,activeElementId:a,setModeler:c=>{t.value=c,c?(e.value=c.get("modeling"),n.value=c.get("moddle"),r.value=c.get("canvas"),i.value=c.get("elementRegistry")):e.value=n.value=r.value=i.value=void 0},setElement:c=>{const u=RFe(c);o.value=d.toRaw(c),a.value=c==null?void 0:c.id}}});function OFe(e){if(!Vn(e,["bpmn:Collaboration","bpmn:DataAssociation","bpmn:Association"])){if(Q(e,"bpmn:TextAnnotation"))return e.businessObject.text;if(Q(e,"bpmn:Group")){const t=rt(e),n=t==null?void 0:t.categoryValueRef;return n==null?void 0:n.value}return e==null?void 0:e.businessObject.name}}function jFe(e,t){var i,o,a,s;const n=Zt(Vt),r=(i=n.modeler)==null?void 0:i.get("bpmnFactory");if(!Vn(e,["bpmn:Collaboration","bpmn:DataAssociation","bpmn:Association"])){if(Q(e,"bpmn:TextAnnotation"))return(o=n.modeling)==null?void 0:o.updateModdleProperties(e,e.businessObject,{text:t});if(Q(e,"bpmn:Group")){const l=rt(e);return l.categoryValueRef||AFe(l,canvas==null?void 0:canvas.getRootElement(),r),(a=n.modeling)==null?void 0:a.updateLabel(e,t)}(s=n.modeling)==null||s.updateModdleProperties(e,e.businessObject,{name:t})}}function MFe(e,t){const n=t.create("bpmn:CategoryValue"),r=t.create("bpmn:Category",{categoryValue:[n]});return ao(e.get("rootElements"),r),rt(r).$parent=e,rt(n).$parent=r,n}function AFe(e,t,n){const r=rt(t).$parent;e.categoryValueRef=MFe(r,n)}const NFe=/\s/,DFe=/^([a-z][\w-.]*:)?[a-z_][\w-.]*$/i,IFe=/^[a-z_][\w-.]*$/i;function LFe(e){return NFe.test(e)}function BFe(e,t){const n=e.$model.ids.assigned(t),r=n&&n!==e;return t?r?"ID 必须是唯一的":FFe(t):"ID 不能为空."}function FFe(e){if(LFe(e))return"ID 不能包含空格";if(!IFe.test(e))return DFe.test(e)?"ID 不能包含前缀":"ID 必须符合 BPMN 规范"}function oZ(e,t){var o;const n=BFe(e.businessObject,t),r=s9();if(n&&n.length)return r.warning(n);(o=Zt(Vt).modeling)==null||o.updateProperties(e,{id:t})}function zFe(e){return!!e.businessObject.isExecutable}function VFe(e,t){var r;(r=Zt(Vt).modeling)==null||r.updateProperties(e,{isExecutable:t})}function HFe(e){return e.businessObject.get(`${Ot}:versionTag`)}function UFe(e,t){var r;(r=Zt(Vt).modeling)==null||r.updateProperties(e,{[`${Ot}:versionTag`]:t})}const WFe=d.defineComponent({__name:"ElementGenerations",setup(e){const t=s9(),n=d.ref(""),r=d.ref(""),i=d.ref(""),o=d.ref(!0),a=d.ref(!1),s=Zt(Vt);function l(p){a.value=!!s.activeElement&&s.activeElement.type==="bpmn:Process",n.value=s.activeElementId,r.value=OFe(s.activeElement)||"",a.value&&(o.value=zFe(s.activeElement),i.value=HFe(s.activeElement)||"")}function c(p){jFe(s.activeElement,p)}function u(p){oZ(s.activeElement,p)}function f(p){/((\d|([1-9](\d*))).){2}(\d|([1-9](\d*)))/.test(p)?UFe(s.activeElement,p):t.error("版本号必须符合语义化版本2.0.0 要点")}function h(p){VFe(s.activeElement,p)}return Go(l),(p,m)=>{const b=d.resolveComponent("n-input"),v=d.resolveComponent("n-switch"),g=d.resolveComponent("n-collapse-item");return d.openBlock(),d.createBlock(g,{name:"base-info"},d.createSlots({header:d.withCtx(()=>[d.createVNode(Mo,{title:p.$t("panel.general")},{default:d.withCtx(()=>[d.createVNode(d.unref(QDe))]),_:1},8,["title"])]),default:d.withCtx(()=>[d.createVNode(ui,{label:p.$t("panel.id")},{default:d.withCtx(()=>[d.createVNode(b,{value:n.value,"onUpdate:value":m[0]||(m[0]=y=>n.value=y),maxlength:"32",onChange:u},null,8,["value"])]),_:1},8,["label"]),d.createVNode(ui,{label:p.$t("panel.name")},{default:d.withCtx(()=>[d.createVNode(b,{value:r.value,"onUpdate:value":m[1]||(m[1]=y=>r.value=y),maxlength:"20",onChange:c},null,8,["value"])]),_:1},8,["label"]),a.value?(d.openBlock(),d.createElementBlock(d.Fragment,{key:0},[d.createVNode(ui,{key:"version",label:p.$t("panel.version")},{default:d.withCtx(()=>[d.createVNode(b,{value:i.value,"onUpdate:value":m[2]||(m[2]=y=>i.value=y),maxlength:"20",onChange:f},null,8,["value"])]),_:1},8,["label"]),d.createVNode(ui,{key:"executable",label:p.$t("panel.executable")},{default:d.withCtx(()=>[d.createVNode(v,{value:o.value,"onUpdate:value":[m[3]||(m[3]=y=>o.value=y),h]},null,8,["value"])]),_:1},8,["label"])],64)):d.createCommentVNode("",!0)]),_:2},[r.value||i.value||o.value?{name:"header-extra",fn:d.withCtx(()=>[d.createVNode(Ea)]),key:"0"}:void 0]),1024)}}});function $T(e){const t=e==null?void 0:e.businessObject,n=t&&sZ(t.get("documentation"));return n&&n.text}function qFe(e,t){var a,s,l,c;const n=Zt(Vt),r=(a=n.modeler)==null?void 0:a.get("bpmnFactory"),i=e.businessObject,o=sZ(i&&i.get("documentation"));if(o)return t?(s=n.modeling)==null?void 0:s.updateModdleProperties(e,o,{text:t}):(l=n.modeling)==null?void 0:l.updateModdleProperties(e,i,{documentation:Lv(i.get("documentation"),o)});if(t){const u=r==null?void 0:r.create("bpmn:Documentation",{text:t});return(c=n.modeling)==null?void 0:c.updateModdleProperties(e,i,{documentation:[...i.get("documentation"),u]})}}const aZ="text/plain";function sZ(e){return e.find(function(t){return(t.textFormat||aZ)===aZ})}const GFe=d.defineComponent({__name:"ElementDocumentations",setup(e){const t=d.ref(""),n=Zt(Vt),{activeElementId:r}=Hs.storeToRefs(n);d.watch(()=>r,()=>{t.value=$T(n.activeElement)||""},{immediate:!0}),d.onMounted(()=>{t.value=$T(n.activeElement)||"",lf.on("element-update",()=>{t.value=$T(n.activeElement)||""})});const i=o=>{qFe(n.activeElement,o)};return(o,a)=>{const s=d.resolveComponent("n-input"),l=d.resolveComponent("n-collapse-item");return d.openBlock(),d.createBlock(l,{name:"element-documentations"},d.createSlots({header:d.withCtx(()=>[d.createVNode(Mo,{title:o.$t("panel.documentationSettings")},{default:d.withCtx(()=>[d.createVNode(d.unref(U6))]),_:1},8,["title"])]),default:d.withCtx(()=>[d.createVNode(ui,{label:o.$t("panel.documentationBody")},{default:d.withCtx(()=>[d.createVNode(s,{value:t.value,"onUpdate:value":a[0]||(a[0]=c=>t.value=c),type:"textarea",onChange:i},null,8,["value"])]),_:1},8,["label"])]),_:2},[t.value?{name:"header-extra",fn:d.withCtx(()=>[d.createVNode(Ea)]),key:"0"}:void 0]),1024)}}});function ei(e){return Array.isArray(e)}function Ri(e){return e!==null&&typeof e=="object"&&(e.constructor===void 0||e.constructor.name==="Object")}function lZ(e){return e&&typeof e=="object"?e.op==="add":!1}function cZ(e){return e&&typeof e=="object"?e.op==="remove":!1}function TT(e){return e&&typeof e=="object"?e.op==="replace":!1}function RT(e){return e&&typeof e=="object"?e.op==="copy":!1}function xm(e){return e&&typeof e=="object"?e.op==="move":!1}function KFe(e,t){return JSON.stringify(e)===JSON.stringify(t)}function YFe(e,t){return e===t}function uZ(e){return e.slice(0,e.length-1)}function ZFe(e){return e[e.length-1]}function XFe(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:YFe;if(e.length<t.length)return!1;for(let r=0;r<t.length;r++)if(!n(e[r],t[r]))return!1;return!0}function dZ(e){return typeof e=="object"&&e!==null}function PT(e){if(ei(e)){const t=e.slice();return Object.getOwnPropertySymbols(e).forEach(n=>{t[n]=e[n]}),t}else if(Ri(e)){const t={...e};return Object.getOwnPropertySymbols(e).forEach(n=>{t[n]=e[n]}),t}else return e}function OT(e,t,n){if(e[t]===n)return e;{const r=PT(e);return r[t]=n,r}}function Ut(e,t){let n=e,r=0;for(;r<t.length;)Ri(n)?n=n[t[r]]:ei(n)?n=n[parseInt(t[r])]:n=void 0,r++;return n}function bc(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(t.length===0)return n;const i=t[0],o=bc(e?e[i]:void 0,t.slice(1),n,r);if(Ri(e)||ei(e))return OT(e,i,o);if(r){const a=JFe.test(i)?[]:{};return a[i]=o,a}else throw new Error("Path does not exist")}const JFe=/^\d+$/;function fZ(e,t,n){if(t.length===0)return n(e);if(!dZ(e))throw new Error("Path doesn't exist");const r=t[0],i=fZ(e[r],t.slice(1),n);return OT(e,r,i)}function jT(e,t){if(t.length===0)return e;if(!dZ(e))throw new Error("Path does not exist");if(t.length===1){const i=t[0];if(i in e){const o=PT(e);return ei(o)&&o.splice(parseInt(i),1),Ri(o)&&delete o[i],o}else return e}const n=t[0],r=jT(e[n],t.slice(1));return OT(e,n,r)}function MT(e,t,n){const r=t.slice(0,t.length-1),i=t[t.length-1];return fZ(e,r,o=>{if(!Array.isArray(o))throw new TypeError("Array expected at path "+JSON.stringify(r));const a=PT(o);return a.splice(parseInt(i),0,n),a})}function Al(e,t){return e===void 0?!1:t.length===0?!0:e===null?!1:Al(e[t[0]],t.slice(1))}function yc(e){const t=e.split("/");return t.shift(),t.map(n=>n.replace(/~1/g,"/").replace(/~0/g,"~"))}function Mt(e){return e.map(hZ).join("")}function hZ(e){return"/"+String(e).replace(/~/g,"~0").replace(/\//g,"~1")}function pZ(e,t){return e+hZ(t)}function J6(e,t){return e.startsWith(t)&&(e.length===t.length||e[t.length]==="/")}function xc(e,t,n){let r=e;for(let i=0;i<t.length;i++){aze(t[i]);let o=t[i];if(n&&n.before){const l=n.before(r,o);if(l!==void 0){if(l.document!==void 0&&(r=l.document),l.json!==void 0)throw new Error('Deprecation warning: returned object property ".json" has been renamed to ".document"');l.operation!==void 0&&(o=l.operation)}}const a=r,s=yu(r,o.path);if(o.op==="add")r=tze(r,s,o.value);else if(o.op==="remove")r=eze(r,s);else if(o.op==="replace")r=QFe(r,s,o.value);else if(o.op==="copy")r=nze(r,s,AT(o.from));else if(o.op==="move")r=rze(r,s,AT(o.from));else if(o.op==="test")ize(r,s,o.value);else throw new Error("Unknown JSONPatch operation "+JSON.stringify(o));if(n&&n.after){const l=n.after(r,o,a);l!==void 0&&(r=l)}}return r}function QFe(e,t,n){return bc(e,t,n)}function eze(e,t){return jT(e,t)}function tze(e,t,n){return ib(e,t)?MT(e,t,n):bc(e,t,n)}function nze(e,t,n){const r=Ut(e,n);if(ib(e,t))return MT(e,t,r);{const i=Ut(e,n);return bc(e,t,i)}}function rze(e,t,n){const r=Ut(e,n),i=jT(e,n);return ib(i,t)?MT(i,t,r):bc(i,t,r)}function ize(e,t,n){if(n===void 0)throw new Error(`Test failed: no value provided (path: "${Mt(t)}")`);if(!Al(e,t))throw new Error(`Test failed: path not found (path: "${Mt(t)}")`);const r=Ut(e,t);if(!KFe(r,n))throw new Error(`Test failed, value differs (path: "${Mt(t)}")`)}function ib(e,t){if(t.length===0)return!1;const n=Ut(e,uZ(t));return Array.isArray(n)}function oze(e,t){if(ZFe(t)!=="-")return t;const n=uZ(t),r=Ut(e,n);return n.concat(r.length)}function aze(e){if(!["add","remove","replace","copy","move","test"].includes(e.op))throw new Error("Unknown JSONPatch op "+JSON.stringify(e.op));if(typeof e.path!="string")throw new Error('Required property "path" missing or not a string in operation '+JSON.stringify(e));if((e.op==="copy"||e.op==="move")&&typeof e.from!="string")throw new Error('Required property "from" missing or not a string in operation '+JSON.stringify(e))}function yu(e,t){return oze(e,yc(t))}function AT(e){return yc(e)}function mZ(e,t,n){let r=[];return xc(e,t,{before:(o,a)=>{let s;const l=yu(o,a.path);if(a.op==="add")s=bZ(o,l);else if(a.op==="remove")s=vZ(o,l);else if(a.op==="replace")s=gZ(o,l);else if(a.op==="copy")s=sze(o,l);else if(a.op==="move")s=lze(o,l,AT(a.from));else if(a.op==="test")s=[];else throw new Error("Unknown JSONPatch operation "+JSON.stringify(a));let c;if(n&&n.before){const u=n.before(o,a,s);if(u&&u.revertOperations&&(s=u.revertOperations),u&&u.document&&(c=u.document),u&&u.json)throw new Error('Deprecation warning: returned object property ".json" has been renamed to ".document"')}if(r=s.concat(r),c!==void 0)return{document:c}}}),r}function gZ(e,t){return[{op:"replace",path:Mt(t),value:Ut(e,t)}]}function vZ(e,t){return[{op:"add",path:Mt(t),value:Ut(e,t)}]}function bZ(e,t){return ib(e,t)||!Al(e,t)?[{op:"remove",path:Mt(t)}]:gZ(e,t)}function sze(e,t){return bZ(e,t)}function lze(e,t,n){if(t.length<n.length&&XFe(n,t))return[{op:"replace",path:Mt(t),value:e}];const r={op:"move",from:Mt(t),path:Mt(n)};return!ib(e,t)&&Al(e,t)?[r,...vZ(e,t)]:[r]}var Q6={},yZ={b:"\b",f:"\f",n:`
|
4053
4053
|
`,r:"\r",t:" ",'"':'"',"/":"/","\\":"\\"},cze=97;Q6.parse=function(e,t,n){var r={},i=0,o=0,a=0,s=n&&n.bigint&&typeof BigInt<"u";return{data:l("",!0),pointers:r};function l($,k){c();var O;w($,"value");var T=b();switch(T){case"t":m("rue"),O=!0;break;case"f":m("alse"),O=!1;break;case"n":m("ull"),O=null;break;case'"':O=u();break;case"[":O=h($);break;case"{":O=p($);break;default:v(),"-0123456789".indexOf(T)>=0?O=f():_()}return w($,"valueEnd"),c(),k&&a<e.length&&_(),O}function c(){e:for(;a<e.length;){switch(e[a]){case" ":o++;break;case" ":o+=4;break;case"\r":o=0;break;case`
|
4054
4054
|
`:o=0,i++;break;default:break e}a++}}function u(){for(var $="",k;k=b(),k!='"';)k=="\\"?(k=b(),k in yZ?$+=yZ[k]:k=="u"?$+=g():S()):$+=k;return $}function f(){var $="",k=!0;e[a]=="-"&&($+=b()),$+=e[a]=="0"?b():y(),e[a]=="."&&($+=b()+y(),k=!1),(e[a]=="e"||e[a]=="E")&&($+=b(),(e[a]=="+"||e[a]=="-")&&($+=b()),$+=y(),k=!1);var O=+$;return s&&k&&(O>Number.MAX_SAFE_INTEGER||O<Number.MIN_SAFE_INTEGER)?BigInt($):O}function h($){c();var k=[],O=0;if(b()=="]")return k;for(v();;){var T=$+"/"+O;k.push(l(T)),c();var j=b();if(j=="]")break;j!=","&&S(),c(),O++}return k}function p($){c();var k={};if(b()=="}")return k;for(v();;){var O=C();b()!='"'&&S();var T=u(),j=$+"/"+NT(T);x(j,"key",O),w(j,"keyEnd"),c(),b()!=":"&&S(),c(),k[T]=l(j),c();var D=b();if(D=="}")break;D!=","&&S(),c()}return k}function m($){for(var k=0;k<$.length;k++)b()!==$[k]&&S()}function b(){E();var $=e[a];return a++,o++,$}function v(){a--,o--}function g(){for(var $=4,k=0;$--;){k<<=4;var O=b().toLowerCase();O>="a"&&O<="f"?k+=O.charCodeAt()-cze+10:O>="0"&&O<="9"?k+=+O:S()}return String.fromCharCode(k)}function y(){for(var $="";e[a]>="0"&&e[a]<="9";)$+=b();if($.length)return $;E(),_()}function w($,k){x($,k,C())}function x($,k,O){r[$]=r[$]||{},r[$][k]=O}function C(){return{line:i,column:o,pos:a}}function _(){throw new SyntaxError("Unexpected token "+e[a]+" in JSON at position "+a)}function S(){v(),_()}function E(){if(a>=e.length)throw new SyntaxError("Unexpected end of JSON input")}},Q6.stringify=function(e,t,n){if(!ex(e))return;var r=0,i,o,a=typeof n=="object"?n.space:n;switch(typeof a){case"number":var s=a>10?10:a<0?0:Math.floor(a);a=s&&x(s," "),i=s,o=s;break;case"string":a=a.slice(0,10),i=0,o=0;for(var l=0;l<a.length;l++){var c=a[l];switch(c){case" ":o++;break;case" ":o+=4;break;case"\r":o=0;break;case`
|
4055
4055
|
`:o=0,r++;break;default:throw new Error("whitespace characters not allowed in JSON")}i++}break;default:a=void 0}var u="",f={},h=0,p=0,m=0,b=n&&n.es6&&typeof Map=="function";return v(e,0,""),{json:u,pointers:f};function v(C,_,S){switch(w(S,"value"),typeof C){case"number":case"bigint":case"boolean":g(""+C);break;case"string":g(tx(C));break;case"object":C===null?g("null"):typeof C.toJSON=="function"?g(tx(C.toJSON())):Array.isArray(C)?E():b?C.constructor.BYTES_PER_ELEMENT?E():C instanceof Map?k():C instanceof Set?k(!0):$():$()}w(S,"valueEnd");function E(){if(C.length){g("[");for(var O=_+1,T=0;T<C.length;T++){T&&g(","),y(O);var j=ex(C[T])?C[T]:null,D=S+"/"+T;v(j,O,D)}y(_),g("]")}else g("[]")}function $(){var O=Object.keys(C);if(O.length){g("{");for(var T=_+1,j=0;j<O.length;j++){var D=O[j],B=C[D];if(ex(B)){j&&g(",");var V=S+"/"+NT(D);y(T),w(V,"key"),g(tx(D)),w(V,"keyEnd"),g(":"),a&&g(" "),v(B,T,V)}}y(_),g("}")}else g("{}")}function k(O){if(C.size){g("{");for(var T=_+1,j=!0,D=C.entries(),B=D.next();!B.done;){var V=B.value,R=V[0],I=O?!0:V[1];if(ex(I)){j||g(","),j=!1;var G=S+"/"+NT(R);y(T),w(G,"key"),g(tx(R)),w(G,"keyEnd"),g(":"),a&&g(" "),v(I,T,G)}B=D.next()}y(_),g("}")}else g("{}")}}function g(C){p+=C.length,m+=C.length,u+=C}function y(C){if(a){for(u+=`
|
@@ -4179,8 +4179,8 @@ return query;
|
|
4179
4179
|
</bpmndi:BPMNShape>
|
4180
4180
|
</bpmndi:BPMNPlane>
|
4181
4181
|
</bpmndi:BPMNDiagram>
|
4182
|
-
</definitions>`,imt={class:"toolbar-container"},omt=Ba(d.defineComponent({__name:"Toolbar",setup(e){const t=d.ref(d.markRaw(fT(tb.TOOLBAR_PREFIX))),n=new emt,r=d.ref(null);async function i(){await aue(lue)}async function o(){var p;const h=Zt(Vt);try{const m=await((p=h.modeler)==null?void 0:p.saveXML({format:!0})),{xml:b}=m||{};if(!b)return;const v=new Blob([b],{type:"application/bpmn20-xml;charset=UTF-8,"}),g=document.createElement("a");g.download=`bpmn-${+new Date}.xml`,g.innerHTML="Get BPMN SVG",g.href=window.URL.createObjectURL(v),g.onclick=function(y){document.body.removeChild(y.target)},g.style.visibility="hidden",document.body.appendChild(g),g.click()}catch(m){console.log("saveXML error:",m)}}async function a(h){const p=h.target.files[0],m=Zt(Vt);if(p){const b=new FileReader;b.onload=async v=>{var y;const g=v.target.result;await((y=m.modeler)==null?void 0:y.importXML(g))},b.readAsText(p)}}async function s(){var p;const h=Zt(Vt);try{const m=await((p=h.modeler)==null?void 0:p.saveSVG());if(!(m!=null&&m.svg))return;const{svg:b}=m,v=new Blob([b],{type:"image/svg+xml"}),g=document.createElement("a");g.download=`bpmn-${+new Date}.svg`,g.innerHTML="Get BPMN SVG",g.href=window.URL.createObjectURL(v),g.onclick=function(y){document.body.removeChild(y.target)},g.style.visibility="hidden",document.body.appendChild(g),g.click()}catch(m){console.log(m)}}const l=Jwe();async function c(){const h=await GM();h&&l.create({title:"预览 XML",icon:()=>d.createVNode(U6,null,null),class:"preview-model",content:()=>[d.createVNode("div",{class:"preview-model-body"},[d.createVNode(f4,{code:h,language:"xml",wordWrap:!0},null)])]})}async function u(){const h=await GM(),p=await n.fromXML(h);l.create({title:"预览 JSON",icon:()=>d.createVNode(U6,null,null),class:"preview-model",content:()=>d.createVNode("div",{class:"preview-model"},[d.createVNode(f4,{code:JSON.stringify(p,null,2),language:"json",wordWrap:!0},null)])})}async function f(){const h=sue();l.create({title:"预览权限JSON",icon:()=>d.createVNode(U6,null,null),class:"preview-model",content:()=>d.createVNode("div",{class:"preview-model"},[d.createVNode(f4,{code:JSON.stringify(h,null,2),language:"json",wordWrap:!0},null)])})}return(h,p)=>{const m=d.resolveComponent("n-space"),b=d.resolveComponent("n-popover");return d.openBlock(),d.createElementBlock("div",imt,[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(t.value))),d.createVNode(b,{placement:"bottom",trigger:"hover"},{trigger:d.withCtx(()=>[d.createVNode(d.unref(_n),{size:"small"},{default:d.withCtx(()=>[d.createTextVNode("导入文件")]),_:1})]),default:d.withCtx(()=>[d.createVNode(m,{vertical:""},{default:d.withCtx(()=>[d.createVNode(d.unref(_n),{onClick:p[0]||(p[0]=v=>r.value.click()),type:"primary"},{default:d.withCtx(()=>[d.createTextVNode("导入 XML")]),_:1}),d.createVNode(d.unref(_n),{onClick:i,type:"warning"},{default:d.withCtx(()=>[d.createTextVNode("重置 XML")]),_:1})]),_:1})]),_:1}),d.createVNode(b,{placement:"bottom",trigger:"hover"},{trigger:d.withCtx(()=>[d.createVNode(d.unref(_n),{size:"small"},{default:d.withCtx(()=>[d.createTextVNode("保存文件")]),_:1})]),default:d.withCtx(()=>[d.createVNode(m,{vertical:""},{default:d.withCtx(()=>[d.createVNode(d.unref(_n),{onClick:o,type:"primary"},{default:d.withCtx(()=>[d.createTextVNode("保存 XML")]),_:1}),d.createVNode(d.unref(_n),{onClick:s,type:"primary"},{default:d.withCtx(()=>[d.createTextVNode("保存 SVG")]),_:1})]),_:1})]),_:1}),d.createVNode(b,{placement:"bottom",trigger:"hover"},{trigger:d.withCtx(()=>[d.createVNode(d.unref(_n),{size:"small"},{default:d.withCtx(()=>[d.createTextVNode("预览文件")]),_:1})]),default:d.withCtx(()=>[d.createVNode(m,{vertical:""},{default:d.withCtx(()=>[d.createVNode(d.unref(_n),{onClick:c,type:"primary"},{default:d.withCtx(()=>[d.createTextVNode("预览 XML")]),_:1}),d.createVNode(d.unref(_n),{onClick:u,type:"primary"},{default:d.withCtx(()=>[d.createTextVNode("预览 JSON")]),_:1}),d.createVNode(d.unref(_n),{onClick:f,type:"primary"},{default:d.withCtx(()=>[d.createTextVNode("预览表单权限 JSON")]),_:1})]),_:1})]),_:1}),d.createElementVNode("input",{type:"file",ref_key:"xmlInputRef",ref:r,class:"hidden",onChange:a,accept:".xml"},null,544)])}}}),[["__scopeId","data-v-89dd71d3"]]);function cue(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{const n=e[t],r=typeof n;(r==="object"||r==="function")&&!Object.isFrozen(n)&&cue(n)}),e}class uue{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function due(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function Wf(e,...t){const n=Object.create(null);for(const r in e)n[r]=e[r];return t.forEach(function(r){for(const i in r)n[i]=r[i]}),n}const amt="</span>",fue=e=>!!e.scope,smt=(e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const n=e.split(".");return[`${t}${n.shift()}`,...n.map((r,i)=>`${r}${"_".repeat(i+1)}`)].join(" ")}return`${t}${e}`};class lmt{constructor(t,n){this.buffer="",this.classPrefix=n.classPrefix,t.walk(this)}addText(t){this.buffer+=due(t)}openNode(t){if(!fue(t))return;const n=smt(t.scope,{prefix:this.classPrefix});this.span(n)}closeNode(t){fue(t)&&(this.buffer+=amt)}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}}const hue=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class KM{constructor(){this.rootNode=hue(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const n=hue({scope:t});this.add(n),this.stack.push(n)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,n){return typeof n=="string"?t.addText(n):n.children&&(t.openNode(n),n.children.forEach(r=>this._walk(t,r)),t.closeNode(n)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(n=>typeof n=="string")?t.children=[t.children.join("")]:t.children.forEach(n=>{KM._collapse(n)}))}}class cmt extends KM{constructor(t){super(),this.options=t}addText(t){t!==""&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,n){const r=t.root;n&&(r.scope=`language:${n}`),this.add(r)}toHTML(){return new lmt(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function qy(e){return e?typeof e=="string"?e:e.source:null}function pue(e){return qp("(?=",e,")")}function umt(e){return qp("(?:",e,")*")}function dmt(e){return qp("(?:",e,")?")}function qp(...e){return e.map(n=>qy(n)).join("")}function fmt(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function YM(...e){return"("+(fmt(e).capture?"":"?:")+e.map(r=>qy(r)).join("|")+")"}function mue(e){return new RegExp(e.toString()+"|").exec("").length-1}function hmt(e,t){const n=e&&e.exec(t);return n&&n.index===0}const pmt=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function ZM(e,{joinWith:t}){let n=0;return e.map(r=>{n+=1;const i=n;let o=qy(r),a="";for(;o.length>0;){const s=pmt.exec(o);if(!s){a+=o;break}a+=o.substring(0,s.index),o=o.substring(s.index+s[0].length),s[0][0]==="\\"&&s[1]?a+="\\"+String(Number(s[1])+i):(a+=s[0],s[0]==="("&&n++)}return a}).map(r=>`(${r})`).join(t)}const mmt=/\b\B/,gue="[a-zA-Z]\\w*",XM="[a-zA-Z_]\\w*",vue="\\b\\d+(\\.\\d+)?",bue="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",yue="\\b(0b[01]+)",gmt="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",vmt=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=qp(t,/.*\b/,e.binary,/\b.*/)),Wf({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(n,r)=>{n.index!==0&&r.ignoreMatch()}},e)},Gy={begin:"\\\\[\\s\\S]",relevance:0},bmt={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Gy]},ymt={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Gy]},xmt={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},f7=function(e,t,n={}){const r=Wf({scope:"comment",begin:e,end:t,contains:[]},n);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const i=YM("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:qp(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},wmt=f7("//","$"),Cmt=f7("/\\*","\\*/"),_mt=f7("#","$"),Smt={scope:"number",begin:vue,relevance:0},Emt={scope:"number",begin:bue,relevance:0},kmt={scope:"number",begin:yue,relevance:0},$mt={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Gy,{begin:/\[/,end:/\]/,relevance:0,contains:[Gy]}]},Tmt={scope:"title",begin:gue,relevance:0},Rmt={scope:"title",begin:XM,relevance:0},Pmt={begin:"\\.\\s*"+XM,relevance:0};var h7=Object.freeze({__proto__:null,APOS_STRING_MODE:bmt,BACKSLASH_ESCAPE:Gy,BINARY_NUMBER_MODE:kmt,BINARY_NUMBER_RE:yue,COMMENT:f7,C_BLOCK_COMMENT_MODE:Cmt,C_LINE_COMMENT_MODE:wmt,C_NUMBER_MODE:Emt,C_NUMBER_RE:bue,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(t,n)=>{n.data._beginMatch=t[1]},"on:end":(t,n)=>{n.data._beginMatch!==t[1]&&n.ignoreMatch()}})},HASH_COMMENT_MODE:_mt,IDENT_RE:gue,MATCH_NOTHING_RE:mmt,METHOD_GUARD:Pmt,NUMBER_MODE:Smt,NUMBER_RE:vue,PHRASAL_WORDS_MODE:xmt,QUOTE_STRING_MODE:ymt,REGEXP_MODE:$mt,RE_STARTERS_RE:gmt,SHEBANG:vmt,TITLE_MODE:Tmt,UNDERSCORE_IDENT_RE:XM,UNDERSCORE_TITLE_MODE:Rmt});function Omt(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function jmt(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function Mmt(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=Omt,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function Amt(e,t){Array.isArray(e.illegal)&&(e.illegal=YM(...e.illegal))}function Nmt(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function Dmt(e,t){e.relevance===void 0&&(e.relevance=1)}const Imt=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},e);Object.keys(e).forEach(r=>{delete e[r]}),e.keywords=n.keywords,e.begin=qp(n.beforeMatch,pue(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},Lmt=["of","and","for","in","not","or","if","then","parent","list","value"],Bmt="keyword";function xue(e,t,n=Bmt){const r=Object.create(null);return typeof e=="string"?i(n,e.split(" ")):Array.isArray(e)?i(n,e):Object.keys(e).forEach(function(o){Object.assign(r,xue(e[o],t,o))}),r;function i(o,a){t&&(a=a.map(s=>s.toLowerCase())),a.forEach(function(s){const l=s.split("|");r[l[0]]=[o,Fmt(l[0],l[1])]})}}function Fmt(e,t){return t?Number(t):zmt(e)?0:1}function zmt(e){return Lmt.includes(e.toLowerCase())}const wue={},Gp=e=>{console.error(e)},Cue=(e,...t)=>{console.log(`WARN: ${e}`,...t)},jg=(e,t)=>{wue[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),wue[`${e}/${t}`]=!0)},p7=new Error;function _ue(e,t,{key:n}){let r=0;const i=e[n],o={},a={};for(let s=1;s<=t.length;s++)a[s+r]=i[s],o[s+r]=!0,r+=mue(t[s-1]);e[n]=a,e[n]._emit=o,e[n]._multi=!0}function Vmt(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw Gp("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),p7;if(typeof e.beginScope!="object"||e.beginScope===null)throw Gp("beginScope must be object"),p7;_ue(e,e.begin,{key:"beginScope"}),e.begin=ZM(e.begin,{joinWith:""})}}function Hmt(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw Gp("skip, excludeEnd, returnEnd not compatible with endScope: {}"),p7;if(typeof e.endScope!="object"||e.endScope===null)throw Gp("endScope must be object"),p7;_ue(e,e.end,{key:"endScope"}),e.end=ZM(e.end,{joinWith:""})}}function Umt(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function Wmt(e){Umt(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),Vmt(e),Hmt(e)}function qmt(e){function t(a,s){return new RegExp(qy(a),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(s?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(s,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,s]),this.matchAt+=mue(s)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const s=this.regexes.map(l=>l[1]);this.matcherRe=t(ZM(s,{joinWith:"|"}),!0),this.lastIndex=0}exec(s){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(s);if(!l)return null;const c=l.findIndex((f,h)=>h>0&&f!==void 0),u=this.matchIndexes[c];return l.splice(0,c),Object.assign(l,u)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(s){if(this.multiRegexes[s])return this.multiRegexes[s];const l=new n;return this.rules.slice(s).forEach(([c,u])=>l.addRule(c,u)),l.compile(),this.multiRegexes[s]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(s,l){this.rules.push([s,l]),l.type==="begin"&&this.count++}exec(s){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let c=l.exec(s);if(this.resumingScanAtSamePosition()&&!(c&&c.index===this.lastIndex)){const u=this.getMatcher(0);u.lastIndex=this.lastIndex+1,c=u.exec(s)}return c&&(this.regexIndex+=c.position+1,this.regexIndex===this.count&&this.considerAll()),c}}function i(a){const s=new r;return a.contains.forEach(l=>s.addRule(l.begin,{rule:l,type:"begin"})),a.terminatorEnd&&s.addRule(a.terminatorEnd,{type:"end"}),a.illegal&&s.addRule(a.illegal,{type:"illegal"}),s}function o(a,s){const l=a;if(a.isCompiled)return l;[jmt,Nmt,Wmt,Imt].forEach(u=>u(a,s)),e.compilerExtensions.forEach(u=>u(a,s)),a.__beforeBegin=null,[Mmt,Amt,Dmt].forEach(u=>u(a,s)),a.isCompiled=!0;let c=null;return typeof a.keywords=="object"&&a.keywords.$pattern&&(a.keywords=Object.assign({},a.keywords),c=a.keywords.$pattern,delete a.keywords.$pattern),c=c||/\w+/,a.keywords&&(a.keywords=xue(a.keywords,e.case_insensitive)),l.keywordPatternRe=t(c,!0),s&&(a.begin||(a.begin=/\B|\b/),l.beginRe=t(l.begin),!a.end&&!a.endsWithParent&&(a.end=/\B|\b/),a.end&&(l.endRe=t(l.end)),l.terminatorEnd=qy(l.end)||"",a.endsWithParent&&s.terminatorEnd&&(l.terminatorEnd+=(a.end?"|":"")+s.terminatorEnd)),a.illegal&&(l.illegalRe=t(a.illegal)),a.contains||(a.contains=[]),a.contains=[].concat(...a.contains.map(function(u){return Gmt(u==="self"?a:u)})),a.contains.forEach(function(u){o(u,l)}),a.starts&&o(a.starts,s),l.matcher=i(l),l}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=Wf(e.classNameAliases||{}),o(e)}function Sue(e){return e?e.endsWithParent||Sue(e.starts):!1}function Gmt(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return Wf(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:Sue(e)?Wf(e,{starts:e.starts?Wf(e.starts):null}):Object.isFrozen(e)?Wf(e):e}var Kmt="11.9.0";class Ymt extends Error{constructor(t,n){super(t),this.name="HTMLInjectionError",this.html=n}}const JM=due,Eue=Wf,kue=Symbol("nomatch"),Zmt=7,$ue=function(e){const t=Object.create(null),n=Object.create(null),r=[];let i=!0;const o="Could not find the language '{}', did you forget to load/include a language module?",a={disableAutodetect:!0,name:"Plain text",contains:[]};let s={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:cmt};function l(R){return s.noHighlightRe.test(R)}function c(R){let I=R.className+" ";I+=R.parentNode?R.parentNode.className:"";const G=s.languageDetectRe.exec(I);if(G){const F=$(G[1]);return F||(Cue(o.replace("{}",G[1])),Cue("Falling back to no-highlight mode for this block.",R)),F?G[1]:"no-highlight"}return I.split(/\s+/).find(F=>l(F)||$(F))}function u(R,I,G){let F="",z="";typeof I=="object"?(F=R,G=I.ignoreIllegals,z=I.language):(jg("10.7.0","highlight(lang, code, ...args) has been deprecated."),jg("10.7.0",`Please use highlight(code, options) instead.
|
4183
|
-
https://github.com/highlightjs/highlight.js/issues/2277`),z=R,F=I),G===void 0&&(G=!0);const M={code:F,language:z};B("before:highlight",M);const L=M.result?M.result:f(M.language,M.code,G);return L.code=M.code,B("after:highlight",L),L}function f(R,I,G,F){const z=Object.create(null);function M(Z,ce){return Z.keywords[ce]}function L(){if(!de.keywords){Oe.addText(Le);return}let Z=0;de.keywordPatternRe.lastIndex=0;let ce=de.keywordPatternRe.exec(Le),_e="";for(;ce;){_e+=Le.substring(Z,ce.index);const $e=ue.case_insensitive?ce[0].toLowerCase():ce[0],Ne=M(de,$e);if(Ne){const[it,Je]=Ne;if(Oe.addText(_e),_e="",z[$e]=(z[$e]||0)+1,z[$e]<=Zmt&&(Ge+=Je),it.startsWith("_"))_e+=ce[0];else{const ft=ue.classNameAliases[it]||it;oe(ce[0],ft)}}else _e+=ce[0];Z=de.keywordPatternRe.lastIndex,ce=de.keywordPatternRe.exec(Le)}_e+=Le.substring(Z),Oe.addText(_e)}function A(){if(Le==="")return;let Z=null;if(typeof de.subLanguage=="string"){if(!t[de.subLanguage]){Oe.addText(Le);return}Z=f(de.subLanguage,Le,!0,ve[de.subLanguage]),ve[de.subLanguage]=Z._top}else Z=p(Le,de.subLanguage.length?de.subLanguage:null);de.relevance>0&&(Ge+=Z.relevance),Oe.__addSublanguage(Z._emitter,Z.language)}function q(){de.subLanguage!=null?A():L(),Le=""}function oe(Z,ce){Z!==""&&(Oe.startScope(ce),Oe.addText(Z),Oe.endScope())}function ee(Z,ce){let _e=1;const $e=ce.length-1;for(;_e<=$e;){if(!Z._emit[_e]){_e++;continue}const Ne=ue.classNameAliases[Z[_e]]||Z[_e],it=ce[_e];Ne?oe(it,Ne):(Le=it,L(),Le=""),_e++}}function be(Z,ce){return Z.scope&&typeof Z.scope=="string"&&Oe.openNode(ue.classNameAliases[Z.scope]||Z.scope),Z.beginScope&&(Z.beginScope._wrap?(oe(Le,ue.classNameAliases[Z.beginScope._wrap]||Z.beginScope._wrap),Le=""):Z.beginScope._multi&&(ee(Z.beginScope,ce),Le="")),de=Object.create(Z,{parent:{value:de}}),de}function H(Z,ce,_e){let $e=hmt(Z.endRe,_e);if($e){if(Z["on:end"]){const Ne=new uue(Z);Z["on:end"](ce,Ne),Ne.isMatchIgnored&&($e=!1)}if($e){for(;Z.endsParent&&Z.parent;)Z=Z.parent;return Z}}if(Z.endsWithParent)return H(Z.parent,ce,_e)}function P(Z){return de.matcher.regexIndex===0?(Le+=Z[0],1):(J=!0,0)}function N(Z){const ce=Z[0],_e=Z.rule,$e=new uue(_e),Ne=[_e.__beforeBegin,_e["on:begin"]];for(const it of Ne)if(it&&(it(Z,$e),$e.isMatchIgnored))return P(ce);return _e.skip?Le+=ce:(_e.excludeBegin&&(Le+=ce),q(),!_e.returnBegin&&!_e.excludeBegin&&(Le=ce)),be(_e,Z),_e.returnBegin?0:ce.length}function ae(Z){const ce=Z[0],_e=I.substring(Z.index),$e=H(de,Z,_e);if(!$e)return kue;const Ne=de;de.endScope&&de.endScope._wrap?(q(),oe(ce,de.endScope._wrap)):de.endScope&&de.endScope._multi?(q(),ee(de.endScope,Z)):Ne.skip?Le+=ce:(Ne.returnEnd||Ne.excludeEnd||(Le+=ce),q(),Ne.excludeEnd&&(Le=ce));do de.scope&&Oe.closeNode(),!de.skip&&!de.subLanguage&&(Ge+=de.relevance),de=de.parent;while(de!==$e.parent);return $e.starts&&be($e.starts,Z),Ne.returnEnd?0:ce.length}function U(){const Z=[];for(let ce=de;ce!==ue;ce=ce.parent)ce.scope&&Z.unshift(ce.scope);Z.forEach(ce=>Oe.openNode(ce))}let Y={};function ye(Z,ce){const _e=ce&&ce[0];if(Le+=Z,_e==null)return q(),0;if(Y.type==="begin"&&ce.type==="end"&&Y.index===ce.index&&_e===""){if(Le+=I.slice(ce.index,ce.index+1),!i){const $e=new Error(`0 width match regex (${R})`);throw $e.languageName=R,$e.badRule=Y.rule,$e}return 1}if(Y=ce,ce.type==="begin")return N(ce);if(ce.type==="illegal"&&!G){const $e=new Error('Illegal lexeme "'+_e+'" for mode "'+(de.scope||"<unnamed>")+'"');throw $e.mode=de,$e}else if(ce.type==="end"){const $e=ae(ce);if($e!==kue)return $e}if(ce.type==="illegal"&&_e==="")return 1;if(Te>1e5&&Te>ce.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Le+=_e,_e.length}const ue=$(R);if(!ue)throw Gp(o.replace("{}",R)),new Error('Unknown language: "'+R+'"');const Ce=qmt(ue);let he="",de=F||Ce;const ve={},Oe=new s.__emitter(s);U();let Le="",Ge=0,ne=0,Te=0,J=!1;try{if(ue.__emitTokens)ue.__emitTokens(I,Oe);else{for(de.matcher.considerAll();;){Te++,J?J=!1:de.matcher.considerAll(),de.matcher.lastIndex=ne;const Z=de.matcher.exec(I);if(!Z)break;const ce=I.substring(ne,Z.index),_e=ye(ce,Z);ne=Z.index+_e}ye(I.substring(ne))}return Oe.finalize(),he=Oe.toHTML(),{language:R,value:he,relevance:Ge,illegal:!1,_emitter:Oe,_top:de}}catch(Z){if(Z.message&&Z.message.includes("Illegal"))return{language:R,value:JM(I),illegal:!0,relevance:0,_illegalBy:{message:Z.message,index:ne,context:I.slice(ne-100,ne+100),mode:Z.mode,resultSoFar:he},_emitter:Oe};if(i)return{language:R,value:JM(I),illegal:!1,relevance:0,errorRaised:Z,_emitter:Oe,_top:de};throw Z}}function h(R){const I={value:JM(R),illegal:!1,relevance:0,_top:a,_emitter:new s.__emitter(s)};return I._emitter.addText(R),I}function p(R,I){I=I||s.languages||Object.keys(t);const G=h(R),F=I.filter($).filter(O).map(q=>f(q,R,!1));F.unshift(G);const z=F.sort((q,oe)=>{if(q.relevance!==oe.relevance)return oe.relevance-q.relevance;if(q.language&&oe.language){if($(q.language).supersetOf===oe.language)return 1;if($(oe.language).supersetOf===q.language)return-1}return 0}),[M,L]=z,A=M;return A.secondBest=L,A}function m(R,I,G){const F=I&&n[I]||G;R.classList.add("hljs"),R.classList.add(`language-${F}`)}function b(R){let I=null;const G=c(R);if(l(G))return;if(B("before:highlightElement",{el:R,language:G}),R.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",R);return}if(R.children.length>0&&(s.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(R)),s.throwUnescapedHTML))throw new Ymt("One of your code blocks includes unescaped HTML.",R.innerHTML);I=R;const F=I.textContent,z=G?u(F,{language:G,ignoreIllegals:!0}):p(F);R.innerHTML=z.value,R.dataset.highlighted="yes",m(R,G,z.language),R.result={language:z.language,re:z.relevance,relevance:z.relevance},z.secondBest&&(R.secondBest={language:z.secondBest.language,relevance:z.secondBest.relevance}),B("after:highlightElement",{el:R,result:z,text:F})}function v(R){s=Eue(s,R)}const g=()=>{x(),jg("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function y(){x(),jg("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let w=!1;function x(){if(document.readyState==="loading"){w=!0;return}document.querySelectorAll(s.cssSelector).forEach(b)}function C(){w&&x()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",C,!1);function _(R,I){let G=null;try{G=I(e)}catch(F){if(Gp("Language definition for '{}' could not be registered.".replace("{}",R)),i)Gp(F);else throw F;G=a}G.name||(G.name=R),t[R]=G,G.rawDefinition=I.bind(null,e),G.aliases&&k(G.aliases,{languageName:R})}function S(R){delete t[R];for(const I of Object.keys(n))n[I]===R&&delete n[I]}function E(){return Object.keys(t)}function $(R){return R=(R||"").toLowerCase(),t[R]||t[n[R]]}function k(R,{languageName:I}){typeof R=="string"&&(R=[R]),R.forEach(G=>{n[G.toLowerCase()]=I})}function O(R){const I=$(R);return I&&!I.disableAutodetect}function T(R){R["before:highlightBlock"]&&!R["before:highlightElement"]&&(R["before:highlightElement"]=I=>{R["before:highlightBlock"](Object.assign({block:I.el},I))}),R["after:highlightBlock"]&&!R["after:highlightElement"]&&(R["after:highlightElement"]=I=>{R["after:highlightBlock"](Object.assign({block:I.el},I))})}function j(R){T(R),r.push(R)}function D(R){const I=r.indexOf(R);I!==-1&&r.splice(I,1)}function B(R,I){const G=R;r.forEach(function(F){F[G]&&F[G](I)})}function V(R){return jg("10.7.0","highlightBlock will be removed entirely in v12.0"),jg("10.7.0","Please use highlightElement now."),b(R)}Object.assign(e,{highlight:u,highlightAuto:p,highlightAll:x,highlightElement:b,highlightBlock:V,configure:v,initHighlighting:g,initHighlightingOnLoad:y,registerLanguage:_,unregisterLanguage:S,listLanguages:E,getLanguage:$,registerAliases:k,autoDetection:O,inherit:Eue,addPlugin:j,removePlugin:D}),e.debugMode=function(){i=!1},e.safeMode=function(){i=!0},e.versionString=Kmt,e.regex={concat:qp,lookahead:pue,either:YM,optional:dmt,anyNumberOfTimes:umt};for(const R in h7)typeof h7[R]=="object"&&cue(h7[R]);return Object.assign(e,h7),e},Mg=$ue({});Mg.newInstance=()=>$ue({});var Xmt=Mg;Mg.HighlightJS=Mg,Mg.default=Mg;const QM=f0(Xmt);function Jmt(e){const t=e.regex,n=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,i={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},o={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},a=e.inherit(o,{begin:/\(/,end:/\)/}),s=e.inherit(e.APOS_STRING_MODE,{className:"string"}),l=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),c={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:r,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[i]},{begin:/'/,end:/'/,contains:[i]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[o,l,s,a,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[o,a,l,s]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},i,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[l]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[c],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[c],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(/</,t.lookahead(t.concat(n,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:c}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function Qmt(e){const t={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:"punctuation",relevance:0},r=["true","false","null"],i={scope:"literal",beginKeywords:r.join(" ")};return{name:"JSON",keywords:{literal:r},contains:[t,n,e.QUOTE_STRING_MODE,i,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}const egt={name:"Activiti",uri:"http://activiti.org/bpmn",prefix:"activiti",xml:{tagAlias:"lowerCase"},associations:[],types:[{name:"Definitions",isAbstract:!0,extends:["bpmn:Definitions"],properties:[{name:"diagramRelationId",isAttr:!0,type:"String"}]},{name:"InOutBinding",superClass:["Element"],isAbstract:!0,properties:[{name:"source",isAttr:!0,type:"String"},{name:"sourceExpression",isAttr:!0,type:"String"},{name:"target",isAttr:!0,type:"String"},{name:"businessKey",isAttr:!0,type:"String"},{name:"local",isAttr:!0,type:"Boolean",default:!1},{name:"variables",isAttr:!0,type:"String"}]},{name:"In",superClass:["InOutBinding"],meta:{allowedIn:["bpmn:CallActivity"]}},{name:"Out",superClass:["InOutBinding"],meta:{allowedIn:["bpmn:CallActivity"]}},{name:"AsyncCapable",isAbstract:!0,extends:["bpmn:Activity","bpmn:Gateway","bpmn:Event"],properties:[{name:"async",isAttr:!0,type:"Boolean",default:!1},{name:"asyncBefore",isAttr:!0,type:"Boolean",default:!1},{name:"asyncAfter",isAttr:!0,type:"Boolean",default:!1},{name:"exclusive",isAttr:!0,type:"Boolean",default:!0}]},{name:"JobPriorized",isAbstract:!0,extends:["bpmn:Process","activiti:AsyncCapable"],properties:[{name:"jobPriority",isAttr:!0,type:"String"}]},{name:"SignalEventDefinition",isAbstract:!0,extends:["bpmn:SignalEventDefinition"],properties:[{name:"async",isAttr:!0,type:"Boolean",default:!1}]},{name:"ErrorEventDefinition",isAbstract:!0,extends:["bpmn:ErrorEventDefinition"],properties:[{name:"errorCodeVariable",isAttr:!0,type:"String"},{name:"errorMessageVariable",isAttr:!0,type:"String"}]},{name:"Error",isAbstract:!0,extends:["bpmn:Error"],properties:[{name:"activiti:errorMessage",isAttr:!0,type:"String"}]},{name:"PotentialStarter",superClass:["Element"],properties:[{name:"resourceAssignmentExpression",type:"bpmn:ResourceAssignmentExpression"}]},{name:"FormSupported",isAbstract:!0,extends:["bpmn:StartEvent","bpmn:UserTask"],properties:[{name:"formHandlerClass",isAttr:!0,type:"String"},{name:"formKey",isAttr:!0,type:"String"}]},{name:"TemplateSupported",isAbstract:!0,extends:["bpmn:Process","bpmn:FlowElement"],properties:[{name:"modelerTemplate",isAttr:!0,type:"String"}]},{name:"Initiator",isAbstract:!0,extends:["bpmn:StartEvent"],properties:[{name:"initiator",isAttr:!0,type:"String"}]},{name:"ScriptTask",isAbstract:!0,extends:["bpmn:ScriptTask"],properties:[{name:"resultVariable",isAttr:!0,type:"String"},{name:"resource",isAttr:!0,type:"String"}]},{name:"Process",isAbstract:!0,extends:["bpmn:Process"],properties:[{name:"candidateStarterGroups",isAttr:!0,type:"String"},{name:"candidateStarterUsers",isAttr:!0,type:"String"},{name:"versionTag",isAttr:!0,type:"String"},{name:"historyTimeToLive",isAttr:!0,type:"String"},{name:"isStartableInTasklist",isAttr:!0,type:"Boolean",default:!0},{name:"executionListener",isAbstract:!0,type:"Expression"}]},{name:"EscalationEventDefinition",isAbstract:!0,extends:["bpmn:EscalationEventDefinition"],properties:[{name:"escalationCodeVariable",isAttr:!0,type:"String"}]},{name:"FormalExpression",isAbstract:!0,extends:["bpmn:FormalExpression"],properties:[{name:"resource",isAttr:!0,type:"String"}]},{name:"multiinstance_type",superClass:["Element"]},{name:"multiinstance_condition",superClass:["Element"]},{name:"Assignable",extends:["bpmn:UserTask"],properties:[{name:"assignee",isAttr:!0,type:"String"},{name:"candidateUsers",isAttr:!0,type:"String"},{name:"candidateGroups",isAttr:!0,type:"String"},{name:"dueDate",isAttr:!0,type:"String"},{name:"followUpDate",isAttr:!0,type:"String"},{name:"priority",isAttr:!0,type:"String"},{name:"multiinstance_condition",isAttr:!0,type:"String"}]},{name:"CallActivity",extends:["bpmn:CallActivity"],properties:[{name:"calledElementBinding",isAttr:!0,type:"String",default:"latest"},{name:"calledElementVersion",isAttr:!0,type:"String"},{name:"calledElementVersionTag",isAttr:!0,type:"String"},{name:"calledElementTenantId",isAttr:!0,type:"String"},{name:"caseRef",isAttr:!0,type:"String"},{name:"caseBinding",isAttr:!0,type:"String",default:"latest"},{name:"caseVersion",isAttr:!0,type:"String"},{name:"caseTenantId",isAttr:!0,type:"String"},{name:"variableMappingClass",isAttr:!0,type:"String"},{name:"variableMappingDelegateExpression",isAttr:!0,type:"String"}]},{name:"ServiceTaskLike",extends:["bpmn:ServiceTask","bpmn:BusinessRuleTask","bpmn:SendTask","bpmn:MessageEventDefinition"],properties:[{name:"expression",isAttr:!0,type:"String"},{name:"class",isAttr:!0,type:"String"},{name:"delegateExpression",isAttr:!0,type:"String"},{name:"resultVariable",isAttr:!0,type:"String"}]},{name:"DmnCapable",extends:["bpmn:BusinessRuleTask"],properties:[{name:"decisionRef",isAttr:!0,type:"String"},{name:"decisionRefBinding",isAttr:!0,type:"String",default:"latest"},{name:"decisionRefVersion",isAttr:!0,type:"String"},{name:"mapDecisionResult",isAttr:!0,type:"String",default:"resultList"},{name:"decisionRefTenantId",isAttr:!0,type:"String"}]},{name:"ExternalCapable",extends:["activiti:ServiceTaskLike"],properties:[{name:"type",isAttr:!0,type:"String"},{name:"topic",isAttr:!0,type:"String"}]},{name:"TaskPriorized",extends:["bpmn:Process","activiti:ExternalCapable"],properties:[{name:"taskPriority",isAttr:!0,type:"String"}]},{name:"Properties",superClass:["Element"],meta:{allowedIn:["*"]},properties:[{name:"values",type:"Property",isMany:!0}]},{name:"Property",superClass:["Element"],properties:[{name:"id",type:"String",isAttr:!0},{name:"name",type:"String",isAttr:!0},{name:"value",type:"String",isAttr:!0}]},{name:"Connector",superClass:["Element"],meta:{allowedIn:["activiti:ServiceTaskLike"]},properties:[{name:"inputOutput",type:"InputOutput"},{name:"connectorId",type:"String"}]},{name:"InputOutput",superClass:["Element"],meta:{allowedIn:["bpmn:FlowNode","activiti:Connector"]},properties:[{name:"inputOutput",type:"InputOutput"},{name:"connectorId",type:"String"},{name:"inputParameters",isMany:!0,type:"InputParameter"},{name:"outputParameters",isMany:!0,type:"OutputParameter"}]},{name:"InputOutputParameter",properties:[{name:"name",isAttr:!0,type:"String"},{name:"value",isBody:!0,type:"String"},{name:"definition",type:"InputOutputParameterDefinition"}]},{name:"InputOutputParameterDefinition",isAbstract:!0},{name:"List",superClass:["InputOutputParameterDefinition"],properties:[{name:"items",isMany:!0,type:"InputOutputParameterDefinition"}]},{name:"Map",superClass:["InputOutputParameterDefinition"],properties:[{name:"entries",isMany:!0,type:"Entry"}]},{name:"Entry",properties:[{name:"key",isAttr:!0,type:"String"},{name:"value",isBody:!0,type:"String"},{name:"definition",type:"InputOutputParameterDefinition"}]},{name:"Value",superClass:["InputOutputParameterDefinition"],properties:[{name:"id",isAttr:!0,type:"String"},{name:"name",isAttr:!0,type:"String"},{name:"value",isBody:!0,type:"String"}]},{name:"Script",superClass:["InputOutputParameterDefinition"],properties:[{name:"scriptFormat",isAttr:!0,type:"String"},{name:"resource",isAttr:!0,type:"String"},{name:"value",isBody:!0,type:"String"}]},{name:"Field",superClass:["Element"],meta:{allowedIn:["activiti:ServiceTaskLike","activiti:ExecutionListener","activiti:TaskListener"]},properties:[{name:"name",isAttr:!0,type:"String"},{name:"expression",isAttr:!0,type:"String"},{name:"stringValue",isAttr:!0,type:"String"},{name:"string",isAttr:!0,type:"String"}]},{name:"InputParameter",superClass:["InputOutputParameter"]},{name:"OutputParameter",superClass:["InputOutputParameter"]},{name:"Collectable",isAbstract:!0,extends:["bpmn:MultiInstanceLoopCharacteristics"],superClass:["activiti:AsyncCapable"],properties:[{name:"collection",isAttr:!0,type:"String"},{name:"elementVariable",isAttr:!0,type:"String"}]},{name:"FailedJobRetryTimeCycle",superClass:["Element"],meta:{allowedIn:["activiti:AsyncCapable","bpmn:MultiInstanceLoopCharacteristics"]},properties:[{name:"body",isBody:!0,type:"String"}]},{name:"ExecutionListener",superClass:["Element"],meta:{allowedIn:["bpmn:Task","bpmn:ServiceTask","bpmn:UserTask","bpmn:BusinessRuleTask","bpmn:ScriptTask","bpmn:ReceiveTask","bpmn:ManualTask","bpmn:ExclusiveGateway","bpmn:SequenceFlow","bpmn:ParallelGateway","bpmn:InclusiveGateway","bpmn:EventBasedGateway","bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:EndEvent","bpmn:BoundaryEvent","bpmn:CallActivity","bpmn:SubProcess","bpmn:Process"]},properties:[{name:"expression",isAttr:!0,type:"String"},{name:"class",isAttr:!0,type:"String"},{name:"delegateExpression",isAttr:!0,type:"String"},{name:"event",isAttr:!0,type:"String"},{name:"script",type:"Script"},{name:"fields",type:"Field",isMany:!0}]},{name:"TaskListener",superClass:["Element"],meta:{allowedIn:["bpmn:UserTask"]},properties:[{name:"expression",isAttr:!0,type:"String"},{name:"class",isAttr:!0,type:"String"},{name:"delegateExpression",isAttr:!0,type:"String"},{name:"event",isAttr:!0,type:"String"},{name:"script",type:"Script"},{name:"fields",type:"Field",isMany:!0}]},{name:"FormProperty",superClass:["Element"],meta:{allowedIn:["bpmn:StartEvent","bpmn:UserTask"]},properties:[{name:"id",type:"String",isAttr:!0},{name:"name",type:"String",isAttr:!0},{name:"type",type:"String",isAttr:!0},{name:"required",type:"String",isAttr:!0},{name:"readable",type:"String",isAttr:!0},{name:"writable",type:"String",isAttr:!0},{name:"variable",type:"String",isAttr:!0},{name:"expression",type:"String",isAttr:!0},{name:"datePattern",type:"String",isAttr:!0},{name:"default",type:"String",isAttr:!0},{name:"values",type:"Value",isMany:!0}]},{name:"FormProperty",superClass:["Element"],properties:[{name:"id",type:"String",isAttr:!0},{name:"label",type:"String",isAttr:!0},{name:"type",type:"String",isAttr:!0},{name:"datePattern",type:"String",isAttr:!0},{name:"defaultValue",type:"String",isAttr:!0},{name:"properties",type:"Properties"},{name:"validation",type:"Validation"},{name:"values",type:"Value",isMany:!0}]},{name:"Validation",superClass:["Element"],properties:[{name:"constraints",type:"Constraint",isMany:!0}]},{name:"Constraint",superClass:["Element"],properties:[{name:"name",type:"String",isAttr:!0},{name:"config",type:"String",isAttr:!0}]},{name:"ConditionalEventDefinition",isAbstract:!0,extends:["bpmn:ConditionalEventDefinition"],properties:[{name:"variableName",isAttr:!0,type:"String"},{name:"variableEvent",isAttr:!0,type:"String"}]}],emumerations:[]},$o={legend:[1,"<fieldset>","</fieldset>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],_default:[0,"",""]};$o.td=$o.th=[3,"<table><tbody><tr>","</tr></tbody></table>"],$o.option=$o.optgroup=[1,'<select multiple="multiple">',"</select>"],$o.thead=$o.tbody=$o.colgroup=$o.caption=$o.tfoot=[1,"<table>","</table>"],$o.polyline=$o.ellipse=$o.polygon=$o.circle=$o.text=$o.line=$o.path=$o.rect=$o.g=[1,'<svg xmlns="http://www.w3.org/2000/svg" version="1.1">',"</svg>"];function tgt(e,t=globalThis.document){var c;if(typeof e!="string")throw new TypeError("String expected");const n=/^<!--(.*?)-->$/s.exec(e);if(n)return t.createComment(n[1]);const r=(c=/<([\w:]+)/.exec(e))==null?void 0:c[1];if(!r)return t.createTextNode(e);if(e=e.trim(),r==="body"){const u=t.createElement("html");u.innerHTML=e;const{lastChild:f}=u;return f.remove(),f}let[i,o,a]=Object.hasOwn($o,r)?$o[r]:$o._default,s=t.createElement("div");for(s.innerHTML=o+e+a;i--;)s=s.lastChild;if(s.firstChild===s.lastChild){const{firstChild:u}=s;return u.remove(),u}const l=t.createDocumentFragment();return l.append(...s.childNodes),l}var ngt=tgt;const m7=f0(ngt);function rgt(e,t){return t.forEach(function(n){n&&typeof n!="string"&&!Array.isArray(n)&&Object.keys(n).forEach(function(r){if(r!=="default"&&!(r in e)){var i=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(e,r,i.get?i:{enumerable:!0,get:function(){return n[r]}})}})}),Object.freeze(e)}function Ky(e,t,n){return arguments.length==2?e.getAttribute(t):n===null?e.removeAttribute(t):(e.setAttribute(t,n),e)}const igt=Object.prototype.toString;function Ag(e){return new qf(e)}function qf(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}qf.prototype.add=function(e){return this.list.add(e),this},qf.prototype.remove=function(e){return igt.call(e)=="[object RegExp]"?this.removeMatching(e):(this.list.remove(e),this)},qf.prototype.removeMatching=function(e){const t=this.array();for(let n=0;n<t.length;n++)e.test(t[n])&&this.remove(t[n]);return this},qf.prototype.toggle=function(e,t){return typeof t<"u"?t!==this.list.toggle(e,t)&&this.list.toggle(e):this.list.toggle(e),this},qf.prototype.array=function(){return Array.from(this.list)},qf.prototype.has=qf.prototype.contains=function(e){return this.list.contains(e)};function ogt(e){for(var t;e.childNodes.length;)t=e.childNodes[0],e.removeChild(t);return e}function eA(e,t){return e&&typeof e.matches=="function"&&e.matches(t)}function agt(e,t,n){for(var r=n?e:e.parentNode;r&&r.nodeType!==document.DOCUMENT_NODE&&r.nodeType!==document.DOCUMENT_FRAGMENT_NODE;){if(eA(r,t))return r;r=r.parentNode}return eA(r,t)?r:null}var g7={},v7,tA,nA;function Tue(){v7=window.addEventListener?"addEventListener":"attachEvent",tA=window.removeEventListener?"removeEventListener":"detachEvent",nA=v7!=="addEventListener"?"on":""}var sgt=g7.bind=function(e,t,n,r){return v7||Tue(),e[v7](nA+t,n,r||!1),n},lgt=g7.unbind=function(e,t,n,r){return tA||Tue(),e[tA](nA+t,n,r||!1),n},rA=rgt({__proto__:null,bind:sgt,default:g7,unbind:lgt},[g7]),Rue=["focus","blur"];function cgt(e,t,n,r,i){return Rue.indexOf(n)!==-1&&(i=!0),rA.bind(e,n,function(o){var a=o.target||o.srcElement;o.delegateTarget=agt(a,t,!0),o.delegateTarget&&r.call(e,o)},i)}function ugt(e,t,n,r){return Rue.indexOf(t)!==-1&&(r=!0),rA.unbind(e,t,n,r)}var Pue={bind:cgt,unbind:ugt};function b7(e,t){return t=t||document,t.querySelector(e)}function dgt(e){return CSS.escape(e)}const Oue=".djs-palette-toggle",jue=".entry",fgt=Oue+", "+jue,iA="djs-palette-",hgt="shown",oA="open",Mue="two-column",pgt=1e3;function po(e,t,n,r,i,o){this._eventBus=e,this._canvas=t,this._entries=o,this._paletteContainer=i,this._elementFactory=n,this._create=r;const a=this;e.on("tool-manager.update",function(s){const l=s.tool;a.updateToolHighlight(l)}),e.on("i18n.changed",function(){a._update()}),e.on("diagram.init",function(){a._diagramInitialized=!0,a._rebuild()})}po.$inject=["eventBus","canvas","elementFactory","create","config.paletteContainer","config.paletteEntries"],po.prototype.registerProvider=function(e,t){t||(t=e,e=pgt),this._eventBus.on("palette.getProviders",e,function(n){n.providers.push(t)}),this._rebuild()},po.prototype.getEntries=function(){return this._getProviders().reduce(ggt,{})},po.prototype._rebuild=function(){!this._diagramInitialized||!this._getProviders().length||(this._container||this._init(),this._update())},po.prototype._init=function(){const e=this,t=this._eventBus,n=this._getParentContainer(),r=this._container=m7(po.HTML_MARKUP);n.appendChild(r),Ag(n).add(iA+hgt),Pue.bind(r,fgt,"click",function(i){const o=i.delegateTarget;if(eA(o,Oue))return e.toggle();e.trigger("click",i)}),rA.bind(r,"mousedown",function(i){i.stopPropagation()}),Pue.bind(r,jue,"dragstart",function(i){e.trigger("dragstart",i)}),t.on("canvas.resized",this._layoutChanged,this),t.fire("palette.create",{container:r})},po.prototype._getProviders=function(e){const t=this._eventBus.createEvent({type:"palette.getProviders",providers:[]});return this._eventBus.fire(t),t.providers},po.prototype._toggleState=function(e){e=e||{};const t=this._getParentContainer(),n=this._container,r=this._eventBus;let i;const o=Ag(n),a=Ag(t);"twoColumn"in e?i=e.twoColumn:i=this._needsCollapse(t.clientHeight,this._entries||{}),o.toggle(Mue,i),a.toggle(iA+Mue,i),"open"in e&&(o.toggle(oA,e.open),a.toggle(iA+oA,e.open)),r.fire("palette.changed",{twoColumn:i,open:this.isOpen()})},po.prototype._update=function(){const e=b7(".djs-palette-entries",this._container),t=this._entries=this.getEntries();ogt(e),Pe(t,function(n,r){const i=n.group||"default";let o=b7("[data-group="+dgt(i)+"]",e);o||(o=m7('<div class="group"></div>'),Ky(o,"data-group",i),e==null||e.appendChild(o));const a=n.html||(n.separator?'<hr class="separator" />':'<div class="entry" draggable="true"></div>'),s=m7(a);if(o.appendChild(s),!n.separator&&(Ky(s,"data-action",r),n.title&&Ky(s,"title",n.title),n.className&&mgt(s,n.className),n.imageUrl)){const l=m7("<img>");Ky(l,"src",n.imageUrl),s.appendChild(l)}}),this.open()},po.prototype.trigger=function(e,t,n){const r=t.delegateTarget||t.target;if(!r)return t.preventDefault();const i=Ky(r,"data-action"),o=t.originalEvent||t;return this.triggerEntry(i,e,o,n)},po.prototype.triggerEntry=function(e,t,n,r){const o=this._entries[e];if(!o)return;const a=o.action;if(this._eventBus.fire("palette.trigger",{entry:o,event:n})===!1)return;const s=this._elementFactory,l=this._create;if(Yi(a)){if(t==="click")return a(n,r)}else if(a[t])return a[t](n,r,s,l);n.preventDefault()},po.prototype._layoutChanged=function(){this._toggleState({})},po.prototype._needsCollapse=function(e,t){return Object.keys(t).length*46,!0},po.prototype.close=function(){this._toggleState({open:!1,twoColumn:!1})},po.prototype.open=function(){this._toggleState({open:!0})},po.prototype.toggle=function(){this.isOpen()?this.close():this.open()},po.prototype.isActiveTool=function(e){return e&&this._activeTool===e},po.prototype.updateToolHighlight=function(e){let t;this._toolsContainer||(t=b7(".djs-palette-entries",this._container),this._toolsContainer=b7("[data-group=tools]",t));const n=this._toolsContainer;Pe(n.children,function(r){let i=r.getAttribute("data-action");if(!i)return;const o=Ag(r);i=i.replace("-tool",""),o.contains("entry")&&i===e?o.add("highlighted-entry"):o.remove("highlighted-entry")})},po.prototype.isOpen=function(){return Ag(this._container).has(oA)},po.prototype._getParentContainer=function(){return this._canvas.getContainer()},po.HTML_MARKUP='<div class="djs-palette"><div class="djs-palette-entries"></div><div class="djs-palette-toggle"></div></div>';function mgt(e,t){const n=Ag(e);(Gn(t)?t:t.split(/\s+/g)).forEach(function(i){n.add(i)})}function ggt(e,t){const n=t.getPaletteEntries();return Yi(n)?n(e):(Pe(n,function(r,i){e[i]=r}),e)}class Aue extends j6{constructor(n,r,i,o,a,s,l,c){super(s,n,r,l,a,o,i,c);w7(this,"create");w7(this,"elementFactory");w7(this,"translate");this.create=n,this.elementFactory=r,this.translate=c}getPaletteEntries(){const{create:n,elementFactory:r,translate:i}=this,o=Object.assign({},super.getPaletteEntries());return delete o["create.group"],delete o["create.data-object"],delete o["create.data-store"],delete o["create.participant-expanded"],delete o["create.subprocess-expanded"],delete o["create.intermediate-event"],Fe(o,{"activity-separator":{group:"activity",separator:!0},...TFe(n,r)})}}Aue.$inject=["create","elementFactory","globalConnect","handTool","lassoTool","palette","spaceTool","translate"];const Nue={__depends__:[{__init__:["palette"],palette:["type",po]}],__init__:["paletteProvider"],paletteProvider:["type",Aue]},vgt=()=>{const e=mc.prototype._modules,t=e.findIndex(i=>i.paletteProvider),n=e[t].__depends__,r=Nue;r.__depends__=[...Nue.__depends__,...n.slice(1)],e[t]=r},bgt={class:"szjy-workflow-container"},ygt={class:"toolbar"},xgt={class:"prop-panel",id:"J_PropertiesPanel"},wgt=d.defineComponent({__name:"main",props:{label:{type:String,default:"获取用户的配置"}},emits:["modeler-init"],setup(e,{emit:t}){QM.registerLanguage("xml",Jmt),QM.registerLanguage("json",Qmt);const n=s9(),r=d.shallowRef({bpmnModeler:null,bpmnXmlStr:lue}),i=d.ref(null),o=t,a=async l=>{var c;try{const u=await((c=r.value.bpmnModeler)==null?void 0:c.importXML(l)),{warnings:f}=u||{};console.log(f)}catch(u){n.error("打开模型出错,数据格式有误!"),console.log("error--->",u)}},s=async()=>{const l=Zt(Vt),c={translate:["value",zce]};l.modeler&&(l.modeler.destroy(),await l.setModeler(void 0)),vgt();const u=new mc({container:i.value,propertiesPanel:{parent:"#J_PropertiesPanel"},additionalModules:[c],moddleExtensions:{activiti:egt}});r.value.bpmnModeler=u,await l.setModeler(d.markRaw(u)),lf.emit("modeler-init",u),o("modeler-init",u),a(r.value.bpmnXmlStr)};return d.onMounted(()=>{s()}),(l,c)=>(d.openBlock(),d.createBlock(d.unref(BB),{abstract:"",hljs:d.unref(QM)},{default:d.withCtx(()=>[d.createVNode(d.unref(tz),null,{default:d.withCtx(()=>[d.createElementVNode("div",bgt,[d.createElementVNode("div",ygt,[d.createVNode(omt,{bpmnModeler:r.value.bpmnModeler},null,8,["bpmnModeler"])]),d.createElementVNode("div",{class:"canvas",id:"canvas",ref_key:"canvasRef",ref:i},null,512),d.createElementVNode("div",xgt,[d.createVNode(jpt)])])]),_:1})]),_:1},8,["hljs"]))}}),Cgt={name:"Workflow"},Due=d.defineComponent({...Cgt,emits:["init"],setup(e,{expose:t,emit:n}){qIe();const r=n,i=d.ref(null);return t({getWorkflowXml:GM,initXmlToStore:aue,updateProcessId:tmt,getPermissionJSON:sue,setPermissionByFields:nmt,updatePermFields:rmt}),(o,a)=>{const s=d.resolveComponent("n-message-provider");return d.openBlock(),d.createBlock(s,null,{default:d.withCtx(()=>[d.createVNode(wgt,{ref_key:"workflowRef",ref:i,onModelerInit:a[0]||(a[0]=l=>r("init",l))},null,512)]),_:1})}}}),Iue=Object.freeze(Object.defineProperty({__proto__:null,SZHello:ON,SZWorkflow:Due},Symbol.toStringTag,{value:"Module"})),_gt="0.1.12",Lue="Sz",Sgt=Pz({components:[Pz,u6e,BB,qCe,tz,_n,$B,r4,LB,P6e,n8e,S1,m7e,v7e,ez,f4,L7e,pz,ks,BCe,U_,rF,d4,DB,B_,YCe,Owe,R7e,sxe,S7e,Bwe,Iwe,e_e,ZCe,ACe,bz,SCe,M7e,h5e,XB]}),Bue=e=>{e.use(Sgt),e.use(K7)},aA=function(e){if(!aA.installed){aA.installed=!0,Bue(e);for(let t in Iue){const n=Reflect.get(Iue,t);e.component(Lue+n.name,n)}}};function Egt({componentPrefix:e=Lue,components:t=[]}={}){const n=[];function r(o,a,s){o.component(e+a)||o.component(e+a,s)}function i(o){n.includes(o)||(n.push(o),Bue(o),t.forEach(a=>{const{name:s,alias:l}=a;r(o,s,a),l&&l.forEach(c=>{r(o,c,a)})}))}return{version:_gt,componentPrefix:e,install:i}}const kgt={install(e){aA(e)}};/*!
|
4182
|
+
</definitions>`,imt={class:"toolbar-container"},omt=Ba(d.defineComponent({__name:"Toolbar",setup(e){const t=d.ref(fT(tb.TOOLBAR_PREFIX)),n=new emt,r=d.ref(null);async function i(){await aue(lue)}async function o(){var p;const h=Zt(Vt);try{const m=await((p=h.modeler)==null?void 0:p.saveXML({format:!0})),{xml:b}=m||{};if(!b)return;const v=new Blob([b],{type:"application/bpmn20-xml;charset=UTF-8,"}),g=document.createElement("a");g.download=`bpmn-${+new Date}.xml`,g.innerHTML="Get BPMN SVG",g.href=window.URL.createObjectURL(v),g.onclick=function(y){document.body.removeChild(y.target)},g.style.visibility="hidden",document.body.appendChild(g),g.click()}catch(m){console.log("saveXML error:",m)}}async function a(h){const p=h.target.files[0],m=Zt(Vt);if(p){const b=new FileReader;b.onload=async v=>{var y;const g=v.target.result;await((y=m.modeler)==null?void 0:y.importXML(g))},b.readAsText(p)}}async function s(){var p;const h=Zt(Vt);try{const m=await((p=h.modeler)==null?void 0:p.saveSVG());if(!(m!=null&&m.svg))return;const{svg:b}=m,v=new Blob([b],{type:"image/svg+xml"}),g=document.createElement("a");g.download=`bpmn-${+new Date}.svg`,g.innerHTML="Get BPMN SVG",g.href=window.URL.createObjectURL(v),g.onclick=function(y){document.body.removeChild(y.target)},g.style.visibility="hidden",document.body.appendChild(g),g.click()}catch(m){console.log(m)}}const l=Jwe();async function c(){const h=await GM();h&&l.create({title:"预览 XML",icon:()=>d.createVNode(U6,null,null),class:"preview-model",content:()=>[d.createVNode("div",{class:"preview-model-body"},[d.createVNode(f4,{code:h,language:"xml",wordWrap:!0},null)])]})}async function u(){const h=await GM(),p=await n.fromXML(h);l.create({title:"预览 JSON",icon:()=>d.createVNode(U6,null,null),class:"preview-model",content:()=>d.createVNode("div",{class:"preview-model"},[d.createVNode(f4,{code:JSON.stringify(p,null,2),language:"json",wordWrap:!0},null)])})}async function f(){const h=sue();l.create({title:"预览权限JSON",icon:()=>d.createVNode(U6,null,null),class:"preview-model",content:()=>d.createVNode("div",{class:"preview-model"},[d.createVNode(f4,{code:JSON.stringify(h,null,2),language:"json",wordWrap:!0},null)])})}return(h,p)=>{const m=d.resolveComponent("n-space"),b=d.resolveComponent("n-popover");return d.openBlock(),d.createElementBlock("div",imt,[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(t.value))),d.createVNode(b,{placement:"bottom",trigger:"hover"},{trigger:d.withCtx(()=>[d.createVNode(d.unref(_n),{size:"small"},{default:d.withCtx(()=>[d.createTextVNode("导入文件")]),_:1})]),default:d.withCtx(()=>[d.createVNode(m,{vertical:""},{default:d.withCtx(()=>[d.createVNode(d.unref(_n),{onClick:p[0]||(p[0]=v=>r.value.click()),type:"primary"},{default:d.withCtx(()=>[d.createTextVNode("导入 XML")]),_:1}),d.createVNode(d.unref(_n),{onClick:i,type:"warning"},{default:d.withCtx(()=>[d.createTextVNode("重置 XML")]),_:1})]),_:1})]),_:1}),d.createVNode(b,{placement:"bottom",trigger:"hover"},{trigger:d.withCtx(()=>[d.createVNode(d.unref(_n),{size:"small"},{default:d.withCtx(()=>[d.createTextVNode("保存文件")]),_:1})]),default:d.withCtx(()=>[d.createVNode(m,{vertical:""},{default:d.withCtx(()=>[d.createVNode(d.unref(_n),{onClick:o,type:"primary"},{default:d.withCtx(()=>[d.createTextVNode("保存 XML")]),_:1}),d.createVNode(d.unref(_n),{onClick:s,type:"primary"},{default:d.withCtx(()=>[d.createTextVNode("保存 SVG")]),_:1})]),_:1})]),_:1}),d.createVNode(b,{placement:"bottom",trigger:"hover"},{trigger:d.withCtx(()=>[d.createVNode(d.unref(_n),{size:"small"},{default:d.withCtx(()=>[d.createTextVNode("预览文件")]),_:1})]),default:d.withCtx(()=>[d.createVNode(m,{vertical:""},{default:d.withCtx(()=>[d.createVNode(d.unref(_n),{onClick:c,type:"primary"},{default:d.withCtx(()=>[d.createTextVNode("预览 XML")]),_:1}),d.createVNode(d.unref(_n),{onClick:u,type:"primary"},{default:d.withCtx(()=>[d.createTextVNode("预览 JSON")]),_:1}),d.createVNode(d.unref(_n),{onClick:f,type:"primary"},{default:d.withCtx(()=>[d.createTextVNode("预览表单权限 JSON")]),_:1})]),_:1})]),_:1}),d.createElementVNode("input",{type:"file",ref_key:"xmlInputRef",ref:r,class:"hidden",onChange:a,accept:".xml"},null,544)])}}}),[["__scopeId","data-v-4af6e38a"]]);function cue(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{const n=e[t],r=typeof n;(r==="object"||r==="function")&&!Object.isFrozen(n)&&cue(n)}),e}class uue{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function due(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function Wf(e,...t){const n=Object.create(null);for(const r in e)n[r]=e[r];return t.forEach(function(r){for(const i in r)n[i]=r[i]}),n}const amt="</span>",fue=e=>!!e.scope,smt=(e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const n=e.split(".");return[`${t}${n.shift()}`,...n.map((r,i)=>`${r}${"_".repeat(i+1)}`)].join(" ")}return`${t}${e}`};class lmt{constructor(t,n){this.buffer="",this.classPrefix=n.classPrefix,t.walk(this)}addText(t){this.buffer+=due(t)}openNode(t){if(!fue(t))return;const n=smt(t.scope,{prefix:this.classPrefix});this.span(n)}closeNode(t){fue(t)&&(this.buffer+=amt)}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}}const hue=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class KM{constructor(){this.rootNode=hue(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const n=hue({scope:t});this.add(n),this.stack.push(n)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,n){return typeof n=="string"?t.addText(n):n.children&&(t.openNode(n),n.children.forEach(r=>this._walk(t,r)),t.closeNode(n)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(n=>typeof n=="string")?t.children=[t.children.join("")]:t.children.forEach(n=>{KM._collapse(n)}))}}class cmt extends KM{constructor(t){super(),this.options=t}addText(t){t!==""&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,n){const r=t.root;n&&(r.scope=`language:${n}`),this.add(r)}toHTML(){return new lmt(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function qy(e){return e?typeof e=="string"?e:e.source:null}function pue(e){return qp("(?=",e,")")}function umt(e){return qp("(?:",e,")*")}function dmt(e){return qp("(?:",e,")?")}function qp(...e){return e.map(n=>qy(n)).join("")}function fmt(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function YM(...e){return"("+(fmt(e).capture?"":"?:")+e.map(r=>qy(r)).join("|")+")"}function mue(e){return new RegExp(e.toString()+"|").exec("").length-1}function hmt(e,t){const n=e&&e.exec(t);return n&&n.index===0}const pmt=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function ZM(e,{joinWith:t}){let n=0;return e.map(r=>{n+=1;const i=n;let o=qy(r),a="";for(;o.length>0;){const s=pmt.exec(o);if(!s){a+=o;break}a+=o.substring(0,s.index),o=o.substring(s.index+s[0].length),s[0][0]==="\\"&&s[1]?a+="\\"+String(Number(s[1])+i):(a+=s[0],s[0]==="("&&n++)}return a}).map(r=>`(${r})`).join(t)}const mmt=/\b\B/,gue="[a-zA-Z]\\w*",XM="[a-zA-Z_]\\w*",vue="\\b\\d+(\\.\\d+)?",bue="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",yue="\\b(0b[01]+)",gmt="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",vmt=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=qp(t,/.*\b/,e.binary,/\b.*/)),Wf({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(n,r)=>{n.index!==0&&r.ignoreMatch()}},e)},Gy={begin:"\\\\[\\s\\S]",relevance:0},bmt={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Gy]},ymt={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Gy]},xmt={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},f7=function(e,t,n={}){const r=Wf({scope:"comment",begin:e,end:t,contains:[]},n);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const i=YM("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:qp(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},wmt=f7("//","$"),Cmt=f7("/\\*","\\*/"),_mt=f7("#","$"),Smt={scope:"number",begin:vue,relevance:0},Emt={scope:"number",begin:bue,relevance:0},kmt={scope:"number",begin:yue,relevance:0},$mt={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Gy,{begin:/\[/,end:/\]/,relevance:0,contains:[Gy]}]},Tmt={scope:"title",begin:gue,relevance:0},Rmt={scope:"title",begin:XM,relevance:0},Pmt={begin:"\\.\\s*"+XM,relevance:0};var h7=Object.freeze({__proto__:null,APOS_STRING_MODE:bmt,BACKSLASH_ESCAPE:Gy,BINARY_NUMBER_MODE:kmt,BINARY_NUMBER_RE:yue,COMMENT:f7,C_BLOCK_COMMENT_MODE:Cmt,C_LINE_COMMENT_MODE:wmt,C_NUMBER_MODE:Emt,C_NUMBER_RE:bue,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(t,n)=>{n.data._beginMatch=t[1]},"on:end":(t,n)=>{n.data._beginMatch!==t[1]&&n.ignoreMatch()}})},HASH_COMMENT_MODE:_mt,IDENT_RE:gue,MATCH_NOTHING_RE:mmt,METHOD_GUARD:Pmt,NUMBER_MODE:Smt,NUMBER_RE:vue,PHRASAL_WORDS_MODE:xmt,QUOTE_STRING_MODE:ymt,REGEXP_MODE:$mt,RE_STARTERS_RE:gmt,SHEBANG:vmt,TITLE_MODE:Tmt,UNDERSCORE_IDENT_RE:XM,UNDERSCORE_TITLE_MODE:Rmt});function Omt(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function jmt(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function Mmt(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=Omt,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function Amt(e,t){Array.isArray(e.illegal)&&(e.illegal=YM(...e.illegal))}function Nmt(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function Dmt(e,t){e.relevance===void 0&&(e.relevance=1)}const Imt=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},e);Object.keys(e).forEach(r=>{delete e[r]}),e.keywords=n.keywords,e.begin=qp(n.beforeMatch,pue(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},Lmt=["of","and","for","in","not","or","if","then","parent","list","value"],Bmt="keyword";function xue(e,t,n=Bmt){const r=Object.create(null);return typeof e=="string"?i(n,e.split(" ")):Array.isArray(e)?i(n,e):Object.keys(e).forEach(function(o){Object.assign(r,xue(e[o],t,o))}),r;function i(o,a){t&&(a=a.map(s=>s.toLowerCase())),a.forEach(function(s){const l=s.split("|");r[l[0]]=[o,Fmt(l[0],l[1])]})}}function Fmt(e,t){return t?Number(t):zmt(e)?0:1}function zmt(e){return Lmt.includes(e.toLowerCase())}const wue={},Gp=e=>{console.error(e)},Cue=(e,...t)=>{console.log(`WARN: ${e}`,...t)},jg=(e,t)=>{wue[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),wue[`${e}/${t}`]=!0)},p7=new Error;function _ue(e,t,{key:n}){let r=0;const i=e[n],o={},a={};for(let s=1;s<=t.length;s++)a[s+r]=i[s],o[s+r]=!0,r+=mue(t[s-1]);e[n]=a,e[n]._emit=o,e[n]._multi=!0}function Vmt(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw Gp("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),p7;if(typeof e.beginScope!="object"||e.beginScope===null)throw Gp("beginScope must be object"),p7;_ue(e,e.begin,{key:"beginScope"}),e.begin=ZM(e.begin,{joinWith:""})}}function Hmt(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw Gp("skip, excludeEnd, returnEnd not compatible with endScope: {}"),p7;if(typeof e.endScope!="object"||e.endScope===null)throw Gp("endScope must be object"),p7;_ue(e,e.end,{key:"endScope"}),e.end=ZM(e.end,{joinWith:""})}}function Umt(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function Wmt(e){Umt(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),Vmt(e),Hmt(e)}function qmt(e){function t(a,s){return new RegExp(qy(a),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(s?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(s,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,s]),this.matchAt+=mue(s)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const s=this.regexes.map(l=>l[1]);this.matcherRe=t(ZM(s,{joinWith:"|"}),!0),this.lastIndex=0}exec(s){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(s);if(!l)return null;const c=l.findIndex((f,h)=>h>0&&f!==void 0),u=this.matchIndexes[c];return l.splice(0,c),Object.assign(l,u)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(s){if(this.multiRegexes[s])return this.multiRegexes[s];const l=new n;return this.rules.slice(s).forEach(([c,u])=>l.addRule(c,u)),l.compile(),this.multiRegexes[s]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(s,l){this.rules.push([s,l]),l.type==="begin"&&this.count++}exec(s){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let c=l.exec(s);if(this.resumingScanAtSamePosition()&&!(c&&c.index===this.lastIndex)){const u=this.getMatcher(0);u.lastIndex=this.lastIndex+1,c=u.exec(s)}return c&&(this.regexIndex+=c.position+1,this.regexIndex===this.count&&this.considerAll()),c}}function i(a){const s=new r;return a.contains.forEach(l=>s.addRule(l.begin,{rule:l,type:"begin"})),a.terminatorEnd&&s.addRule(a.terminatorEnd,{type:"end"}),a.illegal&&s.addRule(a.illegal,{type:"illegal"}),s}function o(a,s){const l=a;if(a.isCompiled)return l;[jmt,Nmt,Wmt,Imt].forEach(u=>u(a,s)),e.compilerExtensions.forEach(u=>u(a,s)),a.__beforeBegin=null,[Mmt,Amt,Dmt].forEach(u=>u(a,s)),a.isCompiled=!0;let c=null;return typeof a.keywords=="object"&&a.keywords.$pattern&&(a.keywords=Object.assign({},a.keywords),c=a.keywords.$pattern,delete a.keywords.$pattern),c=c||/\w+/,a.keywords&&(a.keywords=xue(a.keywords,e.case_insensitive)),l.keywordPatternRe=t(c,!0),s&&(a.begin||(a.begin=/\B|\b/),l.beginRe=t(l.begin),!a.end&&!a.endsWithParent&&(a.end=/\B|\b/),a.end&&(l.endRe=t(l.end)),l.terminatorEnd=qy(l.end)||"",a.endsWithParent&&s.terminatorEnd&&(l.terminatorEnd+=(a.end?"|":"")+s.terminatorEnd)),a.illegal&&(l.illegalRe=t(a.illegal)),a.contains||(a.contains=[]),a.contains=[].concat(...a.contains.map(function(u){return Gmt(u==="self"?a:u)})),a.contains.forEach(function(u){o(u,l)}),a.starts&&o(a.starts,s),l.matcher=i(l),l}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=Wf(e.classNameAliases||{}),o(e)}function Sue(e){return e?e.endsWithParent||Sue(e.starts):!1}function Gmt(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return Wf(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:Sue(e)?Wf(e,{starts:e.starts?Wf(e.starts):null}):Object.isFrozen(e)?Wf(e):e}var Kmt="11.9.0";class Ymt extends Error{constructor(t,n){super(t),this.name="HTMLInjectionError",this.html=n}}const JM=due,Eue=Wf,kue=Symbol("nomatch"),Zmt=7,$ue=function(e){const t=Object.create(null),n=Object.create(null),r=[];let i=!0;const o="Could not find the language '{}', did you forget to load/include a language module?",a={disableAutodetect:!0,name:"Plain text",contains:[]};let s={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:cmt};function l(R){return s.noHighlightRe.test(R)}function c(R){let I=R.className+" ";I+=R.parentNode?R.parentNode.className:"";const G=s.languageDetectRe.exec(I);if(G){const F=$(G[1]);return F||(Cue(o.replace("{}",G[1])),Cue("Falling back to no-highlight mode for this block.",R)),F?G[1]:"no-highlight"}return I.split(/\s+/).find(F=>l(F)||$(F))}function u(R,I,G){let F="",z="";typeof I=="object"?(F=R,G=I.ignoreIllegals,z=I.language):(jg("10.7.0","highlight(lang, code, ...args) has been deprecated."),jg("10.7.0",`Please use highlight(code, options) instead.
|
4183
|
+
https://github.com/highlightjs/highlight.js/issues/2277`),z=R,F=I),G===void 0&&(G=!0);const M={code:F,language:z};B("before:highlight",M);const L=M.result?M.result:f(M.language,M.code,G);return L.code=M.code,B("after:highlight",L),L}function f(R,I,G,F){const z=Object.create(null);function M(Z,ce){return Z.keywords[ce]}function L(){if(!de.keywords){Oe.addText(Le);return}let Z=0;de.keywordPatternRe.lastIndex=0;let ce=de.keywordPatternRe.exec(Le),_e="";for(;ce;){_e+=Le.substring(Z,ce.index);const $e=ue.case_insensitive?ce[0].toLowerCase():ce[0],Ne=M(de,$e);if(Ne){const[it,Je]=Ne;if(Oe.addText(_e),_e="",z[$e]=(z[$e]||0)+1,z[$e]<=Zmt&&(Ge+=Je),it.startsWith("_"))_e+=ce[0];else{const ft=ue.classNameAliases[it]||it;oe(ce[0],ft)}}else _e+=ce[0];Z=de.keywordPatternRe.lastIndex,ce=de.keywordPatternRe.exec(Le)}_e+=Le.substring(Z),Oe.addText(_e)}function A(){if(Le==="")return;let Z=null;if(typeof de.subLanguage=="string"){if(!t[de.subLanguage]){Oe.addText(Le);return}Z=f(de.subLanguage,Le,!0,ve[de.subLanguage]),ve[de.subLanguage]=Z._top}else Z=p(Le,de.subLanguage.length?de.subLanguage:null);de.relevance>0&&(Ge+=Z.relevance),Oe.__addSublanguage(Z._emitter,Z.language)}function q(){de.subLanguage!=null?A():L(),Le=""}function oe(Z,ce){Z!==""&&(Oe.startScope(ce),Oe.addText(Z),Oe.endScope())}function ee(Z,ce){let _e=1;const $e=ce.length-1;for(;_e<=$e;){if(!Z._emit[_e]){_e++;continue}const Ne=ue.classNameAliases[Z[_e]]||Z[_e],it=ce[_e];Ne?oe(it,Ne):(Le=it,L(),Le=""),_e++}}function be(Z,ce){return Z.scope&&typeof Z.scope=="string"&&Oe.openNode(ue.classNameAliases[Z.scope]||Z.scope),Z.beginScope&&(Z.beginScope._wrap?(oe(Le,ue.classNameAliases[Z.beginScope._wrap]||Z.beginScope._wrap),Le=""):Z.beginScope._multi&&(ee(Z.beginScope,ce),Le="")),de=Object.create(Z,{parent:{value:de}}),de}function H(Z,ce,_e){let $e=hmt(Z.endRe,_e);if($e){if(Z["on:end"]){const Ne=new uue(Z);Z["on:end"](ce,Ne),Ne.isMatchIgnored&&($e=!1)}if($e){for(;Z.endsParent&&Z.parent;)Z=Z.parent;return Z}}if(Z.endsWithParent)return H(Z.parent,ce,_e)}function P(Z){return de.matcher.regexIndex===0?(Le+=Z[0],1):(J=!0,0)}function N(Z){const ce=Z[0],_e=Z.rule,$e=new uue(_e),Ne=[_e.__beforeBegin,_e["on:begin"]];for(const it of Ne)if(it&&(it(Z,$e),$e.isMatchIgnored))return P(ce);return _e.skip?Le+=ce:(_e.excludeBegin&&(Le+=ce),q(),!_e.returnBegin&&!_e.excludeBegin&&(Le=ce)),be(_e,Z),_e.returnBegin?0:ce.length}function ae(Z){const ce=Z[0],_e=I.substring(Z.index),$e=H(de,Z,_e);if(!$e)return kue;const Ne=de;de.endScope&&de.endScope._wrap?(q(),oe(ce,de.endScope._wrap)):de.endScope&&de.endScope._multi?(q(),ee(de.endScope,Z)):Ne.skip?Le+=ce:(Ne.returnEnd||Ne.excludeEnd||(Le+=ce),q(),Ne.excludeEnd&&(Le=ce));do de.scope&&Oe.closeNode(),!de.skip&&!de.subLanguage&&(Ge+=de.relevance),de=de.parent;while(de!==$e.parent);return $e.starts&&be($e.starts,Z),Ne.returnEnd?0:ce.length}function U(){const Z=[];for(let ce=de;ce!==ue;ce=ce.parent)ce.scope&&Z.unshift(ce.scope);Z.forEach(ce=>Oe.openNode(ce))}let Y={};function ye(Z,ce){const _e=ce&&ce[0];if(Le+=Z,_e==null)return q(),0;if(Y.type==="begin"&&ce.type==="end"&&Y.index===ce.index&&_e===""){if(Le+=I.slice(ce.index,ce.index+1),!i){const $e=new Error(`0 width match regex (${R})`);throw $e.languageName=R,$e.badRule=Y.rule,$e}return 1}if(Y=ce,ce.type==="begin")return N(ce);if(ce.type==="illegal"&&!G){const $e=new Error('Illegal lexeme "'+_e+'" for mode "'+(de.scope||"<unnamed>")+'"');throw $e.mode=de,$e}else if(ce.type==="end"){const $e=ae(ce);if($e!==kue)return $e}if(ce.type==="illegal"&&_e==="")return 1;if(Te>1e5&&Te>ce.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Le+=_e,_e.length}const ue=$(R);if(!ue)throw Gp(o.replace("{}",R)),new Error('Unknown language: "'+R+'"');const Ce=qmt(ue);let he="",de=F||Ce;const ve={},Oe=new s.__emitter(s);U();let Le="",Ge=0,ne=0,Te=0,J=!1;try{if(ue.__emitTokens)ue.__emitTokens(I,Oe);else{for(de.matcher.considerAll();;){Te++,J?J=!1:de.matcher.considerAll(),de.matcher.lastIndex=ne;const Z=de.matcher.exec(I);if(!Z)break;const ce=I.substring(ne,Z.index),_e=ye(ce,Z);ne=Z.index+_e}ye(I.substring(ne))}return Oe.finalize(),he=Oe.toHTML(),{language:R,value:he,relevance:Ge,illegal:!1,_emitter:Oe,_top:de}}catch(Z){if(Z.message&&Z.message.includes("Illegal"))return{language:R,value:JM(I),illegal:!0,relevance:0,_illegalBy:{message:Z.message,index:ne,context:I.slice(ne-100,ne+100),mode:Z.mode,resultSoFar:he},_emitter:Oe};if(i)return{language:R,value:JM(I),illegal:!1,relevance:0,errorRaised:Z,_emitter:Oe,_top:de};throw Z}}function h(R){const I={value:JM(R),illegal:!1,relevance:0,_top:a,_emitter:new s.__emitter(s)};return I._emitter.addText(R),I}function p(R,I){I=I||s.languages||Object.keys(t);const G=h(R),F=I.filter($).filter(O).map(q=>f(q,R,!1));F.unshift(G);const z=F.sort((q,oe)=>{if(q.relevance!==oe.relevance)return oe.relevance-q.relevance;if(q.language&&oe.language){if($(q.language).supersetOf===oe.language)return 1;if($(oe.language).supersetOf===q.language)return-1}return 0}),[M,L]=z,A=M;return A.secondBest=L,A}function m(R,I,G){const F=I&&n[I]||G;R.classList.add("hljs"),R.classList.add(`language-${F}`)}function b(R){let I=null;const G=c(R);if(l(G))return;if(B("before:highlightElement",{el:R,language:G}),R.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",R);return}if(R.children.length>0&&(s.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(R)),s.throwUnescapedHTML))throw new Ymt("One of your code blocks includes unescaped HTML.",R.innerHTML);I=R;const F=I.textContent,z=G?u(F,{language:G,ignoreIllegals:!0}):p(F);R.innerHTML=z.value,R.dataset.highlighted="yes",m(R,G,z.language),R.result={language:z.language,re:z.relevance,relevance:z.relevance},z.secondBest&&(R.secondBest={language:z.secondBest.language,relevance:z.secondBest.relevance}),B("after:highlightElement",{el:R,result:z,text:F})}function v(R){s=Eue(s,R)}const g=()=>{x(),jg("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function y(){x(),jg("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let w=!1;function x(){if(document.readyState==="loading"){w=!0;return}document.querySelectorAll(s.cssSelector).forEach(b)}function C(){w&&x()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",C,!1);function _(R,I){let G=null;try{G=I(e)}catch(F){if(Gp("Language definition for '{}' could not be registered.".replace("{}",R)),i)Gp(F);else throw F;G=a}G.name||(G.name=R),t[R]=G,G.rawDefinition=I.bind(null,e),G.aliases&&k(G.aliases,{languageName:R})}function S(R){delete t[R];for(const I of Object.keys(n))n[I]===R&&delete n[I]}function E(){return Object.keys(t)}function $(R){return R=(R||"").toLowerCase(),t[R]||t[n[R]]}function k(R,{languageName:I}){typeof R=="string"&&(R=[R]),R.forEach(G=>{n[G.toLowerCase()]=I})}function O(R){const I=$(R);return I&&!I.disableAutodetect}function T(R){R["before:highlightBlock"]&&!R["before:highlightElement"]&&(R["before:highlightElement"]=I=>{R["before:highlightBlock"](Object.assign({block:I.el},I))}),R["after:highlightBlock"]&&!R["after:highlightElement"]&&(R["after:highlightElement"]=I=>{R["after:highlightBlock"](Object.assign({block:I.el},I))})}function j(R){T(R),r.push(R)}function D(R){const I=r.indexOf(R);I!==-1&&r.splice(I,1)}function B(R,I){const G=R;r.forEach(function(F){F[G]&&F[G](I)})}function V(R){return jg("10.7.0","highlightBlock will be removed entirely in v12.0"),jg("10.7.0","Please use highlightElement now."),b(R)}Object.assign(e,{highlight:u,highlightAuto:p,highlightAll:x,highlightElement:b,highlightBlock:V,configure:v,initHighlighting:g,initHighlightingOnLoad:y,registerLanguage:_,unregisterLanguage:S,listLanguages:E,getLanguage:$,registerAliases:k,autoDetection:O,inherit:Eue,addPlugin:j,removePlugin:D}),e.debugMode=function(){i=!1},e.safeMode=function(){i=!0},e.versionString=Kmt,e.regex={concat:qp,lookahead:pue,either:YM,optional:dmt,anyNumberOfTimes:umt};for(const R in h7)typeof h7[R]=="object"&&cue(h7[R]);return Object.assign(e,h7),e},Mg=$ue({});Mg.newInstance=()=>$ue({});var Xmt=Mg;Mg.HighlightJS=Mg,Mg.default=Mg;const QM=f0(Xmt);function Jmt(e){const t=e.regex,n=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,i={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},o={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},a=e.inherit(o,{begin:/\(/,end:/\)/}),s=e.inherit(e.APOS_STRING_MODE,{className:"string"}),l=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),c={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:r,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[i]},{begin:/'/,end:/'/,contains:[i]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[o,l,s,a,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[o,a,l,s]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},i,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[l]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[c],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[c],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(/</,t.lookahead(t.concat(n,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:c}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function Qmt(e){const t={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:"punctuation",relevance:0},r=["true","false","null"],i={scope:"literal",beginKeywords:r.join(" ")};return{name:"JSON",keywords:{literal:r},contains:[t,n,e.QUOTE_STRING_MODE,i,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}const egt={name:"Activiti",uri:"http://activiti.org/bpmn",prefix:"activiti",xml:{tagAlias:"lowerCase"},associations:[],types:[{name:"Definitions",isAbstract:!0,extends:["bpmn:Definitions"],properties:[{name:"diagramRelationId",isAttr:!0,type:"String"}]},{name:"InOutBinding",superClass:["Element"],isAbstract:!0,properties:[{name:"source",isAttr:!0,type:"String"},{name:"sourceExpression",isAttr:!0,type:"String"},{name:"target",isAttr:!0,type:"String"},{name:"businessKey",isAttr:!0,type:"String"},{name:"local",isAttr:!0,type:"Boolean",default:!1},{name:"variables",isAttr:!0,type:"String"}]},{name:"In",superClass:["InOutBinding"],meta:{allowedIn:["bpmn:CallActivity"]}},{name:"Out",superClass:["InOutBinding"],meta:{allowedIn:["bpmn:CallActivity"]}},{name:"AsyncCapable",isAbstract:!0,extends:["bpmn:Activity","bpmn:Gateway","bpmn:Event"],properties:[{name:"async",isAttr:!0,type:"Boolean",default:!1},{name:"asyncBefore",isAttr:!0,type:"Boolean",default:!1},{name:"asyncAfter",isAttr:!0,type:"Boolean",default:!1},{name:"exclusive",isAttr:!0,type:"Boolean",default:!0}]},{name:"JobPriorized",isAbstract:!0,extends:["bpmn:Process","activiti:AsyncCapable"],properties:[{name:"jobPriority",isAttr:!0,type:"String"}]},{name:"SignalEventDefinition",isAbstract:!0,extends:["bpmn:SignalEventDefinition"],properties:[{name:"async",isAttr:!0,type:"Boolean",default:!1}]},{name:"ErrorEventDefinition",isAbstract:!0,extends:["bpmn:ErrorEventDefinition"],properties:[{name:"errorCodeVariable",isAttr:!0,type:"String"},{name:"errorMessageVariable",isAttr:!0,type:"String"}]},{name:"Error",isAbstract:!0,extends:["bpmn:Error"],properties:[{name:"activiti:errorMessage",isAttr:!0,type:"String"}]},{name:"PotentialStarter",superClass:["Element"],properties:[{name:"resourceAssignmentExpression",type:"bpmn:ResourceAssignmentExpression"}]},{name:"FormSupported",isAbstract:!0,extends:["bpmn:StartEvent","bpmn:UserTask"],properties:[{name:"formHandlerClass",isAttr:!0,type:"String"},{name:"formKey",isAttr:!0,type:"String"}]},{name:"TemplateSupported",isAbstract:!0,extends:["bpmn:Process","bpmn:FlowElement"],properties:[{name:"modelerTemplate",isAttr:!0,type:"String"}]},{name:"Initiator",isAbstract:!0,extends:["bpmn:StartEvent"],properties:[{name:"initiator",isAttr:!0,type:"String"}]},{name:"ScriptTask",isAbstract:!0,extends:["bpmn:ScriptTask"],properties:[{name:"resultVariable",isAttr:!0,type:"String"},{name:"resource",isAttr:!0,type:"String"}]},{name:"Process",isAbstract:!0,extends:["bpmn:Process"],properties:[{name:"candidateStarterGroups",isAttr:!0,type:"String"},{name:"candidateStarterUsers",isAttr:!0,type:"String"},{name:"versionTag",isAttr:!0,type:"String"},{name:"historyTimeToLive",isAttr:!0,type:"String"},{name:"isStartableInTasklist",isAttr:!0,type:"Boolean",default:!0},{name:"executionListener",isAbstract:!0,type:"Expression"}]},{name:"EscalationEventDefinition",isAbstract:!0,extends:["bpmn:EscalationEventDefinition"],properties:[{name:"escalationCodeVariable",isAttr:!0,type:"String"}]},{name:"FormalExpression",isAbstract:!0,extends:["bpmn:FormalExpression"],properties:[{name:"resource",isAttr:!0,type:"String"}]},{name:"multiinstance_type",superClass:["Element"]},{name:"multiinstance_condition",superClass:["Element"]},{name:"Assignable",extends:["bpmn:UserTask"],properties:[{name:"assignee",isAttr:!0,type:"String"},{name:"candidateUsers",isAttr:!0,type:"String"},{name:"candidateGroups",isAttr:!0,type:"String"},{name:"dueDate",isAttr:!0,type:"String"},{name:"followUpDate",isAttr:!0,type:"String"},{name:"priority",isAttr:!0,type:"String"},{name:"multiinstance_condition",isAttr:!0,type:"String"}]},{name:"CallActivity",extends:["bpmn:CallActivity"],properties:[{name:"calledElementBinding",isAttr:!0,type:"String",default:"latest"},{name:"calledElementVersion",isAttr:!0,type:"String"},{name:"calledElementVersionTag",isAttr:!0,type:"String"},{name:"calledElementTenantId",isAttr:!0,type:"String"},{name:"caseRef",isAttr:!0,type:"String"},{name:"caseBinding",isAttr:!0,type:"String",default:"latest"},{name:"caseVersion",isAttr:!0,type:"String"},{name:"caseTenantId",isAttr:!0,type:"String"},{name:"variableMappingClass",isAttr:!0,type:"String"},{name:"variableMappingDelegateExpression",isAttr:!0,type:"String"}]},{name:"ServiceTaskLike",extends:["bpmn:ServiceTask","bpmn:BusinessRuleTask","bpmn:SendTask","bpmn:MessageEventDefinition"],properties:[{name:"expression",isAttr:!0,type:"String"},{name:"class",isAttr:!0,type:"String"},{name:"delegateExpression",isAttr:!0,type:"String"},{name:"resultVariable",isAttr:!0,type:"String"}]},{name:"DmnCapable",extends:["bpmn:BusinessRuleTask"],properties:[{name:"decisionRef",isAttr:!0,type:"String"},{name:"decisionRefBinding",isAttr:!0,type:"String",default:"latest"},{name:"decisionRefVersion",isAttr:!0,type:"String"},{name:"mapDecisionResult",isAttr:!0,type:"String",default:"resultList"},{name:"decisionRefTenantId",isAttr:!0,type:"String"}]},{name:"ExternalCapable",extends:["activiti:ServiceTaskLike"],properties:[{name:"type",isAttr:!0,type:"String"},{name:"topic",isAttr:!0,type:"String"}]},{name:"TaskPriorized",extends:["bpmn:Process","activiti:ExternalCapable"],properties:[{name:"taskPriority",isAttr:!0,type:"String"}]},{name:"Properties",superClass:["Element"],meta:{allowedIn:["*"]},properties:[{name:"values",type:"Property",isMany:!0}]},{name:"Property",superClass:["Element"],properties:[{name:"id",type:"String",isAttr:!0},{name:"name",type:"String",isAttr:!0},{name:"value",type:"String",isAttr:!0}]},{name:"Connector",superClass:["Element"],meta:{allowedIn:["activiti:ServiceTaskLike"]},properties:[{name:"inputOutput",type:"InputOutput"},{name:"connectorId",type:"String"}]},{name:"InputOutput",superClass:["Element"],meta:{allowedIn:["bpmn:FlowNode","activiti:Connector"]},properties:[{name:"inputOutput",type:"InputOutput"},{name:"connectorId",type:"String"},{name:"inputParameters",isMany:!0,type:"InputParameter"},{name:"outputParameters",isMany:!0,type:"OutputParameter"}]},{name:"InputOutputParameter",properties:[{name:"name",isAttr:!0,type:"String"},{name:"value",isBody:!0,type:"String"},{name:"definition",type:"InputOutputParameterDefinition"}]},{name:"InputOutputParameterDefinition",isAbstract:!0},{name:"List",superClass:["InputOutputParameterDefinition"],properties:[{name:"items",isMany:!0,type:"InputOutputParameterDefinition"}]},{name:"Map",superClass:["InputOutputParameterDefinition"],properties:[{name:"entries",isMany:!0,type:"Entry"}]},{name:"Entry",properties:[{name:"key",isAttr:!0,type:"String"},{name:"value",isBody:!0,type:"String"},{name:"definition",type:"InputOutputParameterDefinition"}]},{name:"Value",superClass:["InputOutputParameterDefinition"],properties:[{name:"id",isAttr:!0,type:"String"},{name:"name",isAttr:!0,type:"String"},{name:"value",isBody:!0,type:"String"}]},{name:"Script",superClass:["InputOutputParameterDefinition"],properties:[{name:"scriptFormat",isAttr:!0,type:"String"},{name:"resource",isAttr:!0,type:"String"},{name:"value",isBody:!0,type:"String"}]},{name:"Field",superClass:["Element"],meta:{allowedIn:["activiti:ServiceTaskLike","activiti:ExecutionListener","activiti:TaskListener"]},properties:[{name:"name",isAttr:!0,type:"String"},{name:"expression",isAttr:!0,type:"String"},{name:"stringValue",isAttr:!0,type:"String"},{name:"string",isAttr:!0,type:"String"}]},{name:"InputParameter",superClass:["InputOutputParameter"]},{name:"OutputParameter",superClass:["InputOutputParameter"]},{name:"Collectable",isAbstract:!0,extends:["bpmn:MultiInstanceLoopCharacteristics"],superClass:["activiti:AsyncCapable"],properties:[{name:"collection",isAttr:!0,type:"String"},{name:"elementVariable",isAttr:!0,type:"String"}]},{name:"FailedJobRetryTimeCycle",superClass:["Element"],meta:{allowedIn:["activiti:AsyncCapable","bpmn:MultiInstanceLoopCharacteristics"]},properties:[{name:"body",isBody:!0,type:"String"}]},{name:"ExecutionListener",superClass:["Element"],meta:{allowedIn:["bpmn:Task","bpmn:ServiceTask","bpmn:UserTask","bpmn:BusinessRuleTask","bpmn:ScriptTask","bpmn:ReceiveTask","bpmn:ManualTask","bpmn:ExclusiveGateway","bpmn:SequenceFlow","bpmn:ParallelGateway","bpmn:InclusiveGateway","bpmn:EventBasedGateway","bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:EndEvent","bpmn:BoundaryEvent","bpmn:CallActivity","bpmn:SubProcess","bpmn:Process"]},properties:[{name:"expression",isAttr:!0,type:"String"},{name:"class",isAttr:!0,type:"String"},{name:"delegateExpression",isAttr:!0,type:"String"},{name:"event",isAttr:!0,type:"String"},{name:"script",type:"Script"},{name:"fields",type:"Field",isMany:!0}]},{name:"TaskListener",superClass:["Element"],meta:{allowedIn:["bpmn:UserTask"]},properties:[{name:"expression",isAttr:!0,type:"String"},{name:"class",isAttr:!0,type:"String"},{name:"delegateExpression",isAttr:!0,type:"String"},{name:"event",isAttr:!0,type:"String"},{name:"script",type:"Script"},{name:"fields",type:"Field",isMany:!0}]},{name:"FormProperty",superClass:["Element"],meta:{allowedIn:["bpmn:StartEvent","bpmn:UserTask"]},properties:[{name:"id",type:"String",isAttr:!0},{name:"name",type:"String",isAttr:!0},{name:"type",type:"String",isAttr:!0},{name:"required",type:"String",isAttr:!0},{name:"readable",type:"String",isAttr:!0},{name:"writable",type:"String",isAttr:!0},{name:"variable",type:"String",isAttr:!0},{name:"expression",type:"String",isAttr:!0},{name:"datePattern",type:"String",isAttr:!0},{name:"default",type:"String",isAttr:!0},{name:"values",type:"Value",isMany:!0}]},{name:"FormProperty",superClass:["Element"],properties:[{name:"id",type:"String",isAttr:!0},{name:"label",type:"String",isAttr:!0},{name:"type",type:"String",isAttr:!0},{name:"datePattern",type:"String",isAttr:!0},{name:"defaultValue",type:"String",isAttr:!0},{name:"properties",type:"Properties"},{name:"validation",type:"Validation"},{name:"values",type:"Value",isMany:!0}]},{name:"Validation",superClass:["Element"],properties:[{name:"constraints",type:"Constraint",isMany:!0}]},{name:"Constraint",superClass:["Element"],properties:[{name:"name",type:"String",isAttr:!0},{name:"config",type:"String",isAttr:!0}]},{name:"ConditionalEventDefinition",isAbstract:!0,extends:["bpmn:ConditionalEventDefinition"],properties:[{name:"variableName",isAttr:!0,type:"String"},{name:"variableEvent",isAttr:!0,type:"String"}]}],emumerations:[]},$o={legend:[1,"<fieldset>","</fieldset>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],_default:[0,"",""]};$o.td=$o.th=[3,"<table><tbody><tr>","</tr></tbody></table>"],$o.option=$o.optgroup=[1,'<select multiple="multiple">',"</select>"],$o.thead=$o.tbody=$o.colgroup=$o.caption=$o.tfoot=[1,"<table>","</table>"],$o.polyline=$o.ellipse=$o.polygon=$o.circle=$o.text=$o.line=$o.path=$o.rect=$o.g=[1,'<svg xmlns="http://www.w3.org/2000/svg" version="1.1">',"</svg>"];function tgt(e,t=globalThis.document){var c;if(typeof e!="string")throw new TypeError("String expected");const n=/^<!--(.*?)-->$/s.exec(e);if(n)return t.createComment(n[1]);const r=(c=/<([\w:]+)/.exec(e))==null?void 0:c[1];if(!r)return t.createTextNode(e);if(e=e.trim(),r==="body"){const u=t.createElement("html");u.innerHTML=e;const{lastChild:f}=u;return f.remove(),f}let[i,o,a]=Object.hasOwn($o,r)?$o[r]:$o._default,s=t.createElement("div");for(s.innerHTML=o+e+a;i--;)s=s.lastChild;if(s.firstChild===s.lastChild){const{firstChild:u}=s;return u.remove(),u}const l=t.createDocumentFragment();return l.append(...s.childNodes),l}var ngt=tgt;const m7=f0(ngt);function rgt(e,t){return t.forEach(function(n){n&&typeof n!="string"&&!Array.isArray(n)&&Object.keys(n).forEach(function(r){if(r!=="default"&&!(r in e)){var i=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(e,r,i.get?i:{enumerable:!0,get:function(){return n[r]}})}})}),Object.freeze(e)}function Ky(e,t,n){return arguments.length==2?e.getAttribute(t):n===null?e.removeAttribute(t):(e.setAttribute(t,n),e)}const igt=Object.prototype.toString;function Ag(e){return new qf(e)}function qf(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}qf.prototype.add=function(e){return this.list.add(e),this},qf.prototype.remove=function(e){return igt.call(e)=="[object RegExp]"?this.removeMatching(e):(this.list.remove(e),this)},qf.prototype.removeMatching=function(e){const t=this.array();for(let n=0;n<t.length;n++)e.test(t[n])&&this.remove(t[n]);return this},qf.prototype.toggle=function(e,t){return typeof t<"u"?t!==this.list.toggle(e,t)&&this.list.toggle(e):this.list.toggle(e),this},qf.prototype.array=function(){return Array.from(this.list)},qf.prototype.has=qf.prototype.contains=function(e){return this.list.contains(e)};function ogt(e){for(var t;e.childNodes.length;)t=e.childNodes[0],e.removeChild(t);return e}function eA(e,t){return e&&typeof e.matches=="function"&&e.matches(t)}function agt(e,t,n){for(var r=n?e:e.parentNode;r&&r.nodeType!==document.DOCUMENT_NODE&&r.nodeType!==document.DOCUMENT_FRAGMENT_NODE;){if(eA(r,t))return r;r=r.parentNode}return eA(r,t)?r:null}var g7={},v7,tA,nA;function Tue(){v7=window.addEventListener?"addEventListener":"attachEvent",tA=window.removeEventListener?"removeEventListener":"detachEvent",nA=v7!=="addEventListener"?"on":""}var sgt=g7.bind=function(e,t,n,r){return v7||Tue(),e[v7](nA+t,n,r||!1),n},lgt=g7.unbind=function(e,t,n,r){return tA||Tue(),e[tA](nA+t,n,r||!1),n},rA=rgt({__proto__:null,bind:sgt,default:g7,unbind:lgt},[g7]),Rue=["focus","blur"];function cgt(e,t,n,r,i){return Rue.indexOf(n)!==-1&&(i=!0),rA.bind(e,n,function(o){var a=o.target||o.srcElement;o.delegateTarget=agt(a,t,!0),o.delegateTarget&&r.call(e,o)},i)}function ugt(e,t,n,r){return Rue.indexOf(t)!==-1&&(r=!0),rA.unbind(e,t,n,r)}var Pue={bind:cgt,unbind:ugt};function b7(e,t){return t=t||document,t.querySelector(e)}function dgt(e){return CSS.escape(e)}const Oue=".djs-palette-toggle",jue=".entry",fgt=Oue+", "+jue,iA="djs-palette-",hgt="shown",oA="open",Mue="two-column",pgt=1e3;function po(e,t,n,r,i,o){this._eventBus=e,this._canvas=t,this._entries=o,this._paletteContainer=i,this._elementFactory=n,this._create=r;const a=this;e.on("tool-manager.update",function(s){const l=s.tool;a.updateToolHighlight(l)}),e.on("i18n.changed",function(){a._update()}),e.on("diagram.init",function(){a._diagramInitialized=!0,a._rebuild()})}po.$inject=["eventBus","canvas","elementFactory","create","config.paletteContainer","config.paletteEntries"],po.prototype.registerProvider=function(e,t){t||(t=e,e=pgt),this._eventBus.on("palette.getProviders",e,function(n){n.providers.push(t)}),this._rebuild()},po.prototype.getEntries=function(){return this._getProviders().reduce(ggt,{})},po.prototype._rebuild=function(){!this._diagramInitialized||!this._getProviders().length||(this._container||this._init(),this._update())},po.prototype._init=function(){const e=this,t=this._eventBus,n=this._getParentContainer(),r=this._container=m7(po.HTML_MARKUP);n.appendChild(r),Ag(n).add(iA+hgt),Pue.bind(r,fgt,"click",function(i){const o=i.delegateTarget;if(eA(o,Oue))return e.toggle();e.trigger("click",i)}),rA.bind(r,"mousedown",function(i){i.stopPropagation()}),Pue.bind(r,jue,"dragstart",function(i){e.trigger("dragstart",i)}),t.on("canvas.resized",this._layoutChanged,this),t.fire("palette.create",{container:r})},po.prototype._getProviders=function(e){const t=this._eventBus.createEvent({type:"palette.getProviders",providers:[]});return this._eventBus.fire(t),t.providers},po.prototype._toggleState=function(e){e=e||{};const t=this._getParentContainer(),n=this._container,r=this._eventBus;let i;const o=Ag(n),a=Ag(t);"twoColumn"in e?i=e.twoColumn:i=this._needsCollapse(t.clientHeight,this._entries||{}),o.toggle(Mue,i),a.toggle(iA+Mue,i),"open"in e&&(o.toggle(oA,e.open),a.toggle(iA+oA,e.open)),r.fire("palette.changed",{twoColumn:i,open:this.isOpen()})},po.prototype._update=function(){const e=b7(".djs-palette-entries",this._container),t=this._entries=this.getEntries();ogt(e),Pe(t,function(n,r){const i=n.group||"default";let o=b7("[data-group="+dgt(i)+"]",e);o||(o=m7('<div class="group"></div>'),Ky(o,"data-group",i),e==null||e.appendChild(o));const a=n.html||(n.separator?'<hr class="separator" />':'<div class="entry" draggable="true"></div>'),s=m7(a);if(o.appendChild(s),!n.separator&&(Ky(s,"data-action",r),n.title&&Ky(s,"title",n.title),n.className&&mgt(s,n.className),n.imageUrl)){const l=m7("<img>");Ky(l,"src",n.imageUrl),s.appendChild(l)}}),this.open()},po.prototype.trigger=function(e,t,n){const r=t.delegateTarget||t.target;if(!r)return t.preventDefault();const i=Ky(r,"data-action"),o=t.originalEvent||t;return this.triggerEntry(i,e,o,n)},po.prototype.triggerEntry=function(e,t,n,r){const o=this._entries[e];if(!o)return;const a=o.action;if(this._eventBus.fire("palette.trigger",{entry:o,event:n})===!1)return;const s=this._elementFactory,l=this._create;if(Yi(a)){if(t==="click")return a(n,r)}else if(a[t])return a[t](n,r,s,l);n.preventDefault()},po.prototype._layoutChanged=function(){this._toggleState({})},po.prototype._needsCollapse=function(e,t){return Object.keys(t).length*46,!0},po.prototype.close=function(){this._toggleState({open:!1,twoColumn:!1})},po.prototype.open=function(){this._toggleState({open:!0})},po.prototype.toggle=function(){this.isOpen()?this.close():this.open()},po.prototype.isActiveTool=function(e){return e&&this._activeTool===e},po.prototype.updateToolHighlight=function(e){let t;this._toolsContainer||(t=b7(".djs-palette-entries",this._container),this._toolsContainer=b7("[data-group=tools]",t));const n=this._toolsContainer;Pe(n.children,function(r){let i=r.getAttribute("data-action");if(!i)return;const o=Ag(r);i=i.replace("-tool",""),o.contains("entry")&&i===e?o.add("highlighted-entry"):o.remove("highlighted-entry")})},po.prototype.isOpen=function(){return Ag(this._container).has(oA)},po.prototype._getParentContainer=function(){return this._canvas.getContainer()},po.HTML_MARKUP='<div class="djs-palette"><div class="djs-palette-entries"></div><div class="djs-palette-toggle"></div></div>';function mgt(e,t){const n=Ag(e);(Gn(t)?t:t.split(/\s+/g)).forEach(function(i){n.add(i)})}function ggt(e,t){const n=t.getPaletteEntries();return Yi(n)?n(e):(Pe(n,function(r,i){e[i]=r}),e)}class Aue extends j6{constructor(n,r,i,o,a,s,l,c){super(s,n,r,l,a,o,i,c);w7(this,"create");w7(this,"elementFactory");w7(this,"translate");this.create=n,this.elementFactory=r,this.translate=c}getPaletteEntries(){const{create:n,elementFactory:r,translate:i}=this,o=Object.assign({},super.getPaletteEntries());return delete o["create.group"],delete o["create.data-object"],delete o["create.data-store"],delete o["create.participant-expanded"],delete o["create.subprocess-expanded"],delete o["create.intermediate-event"],Fe(o,{"activity-separator":{group:"activity",separator:!0},...TFe(n,r)})}}Aue.$inject=["create","elementFactory","globalConnect","handTool","lassoTool","palette","spaceTool","translate"];const Nue={__depends__:[{__init__:["palette"],palette:["type",po]}],__init__:["paletteProvider"],paletteProvider:["type",Aue]},vgt=()=>{const e=mc.prototype._modules,t=e.findIndex(i=>i.paletteProvider),n=e[t].__depends__,r=Nue;r.__depends__=[...Nue.__depends__,...n.slice(1)],e[t]=r},bgt={class:"szjy-workflow-container"},ygt={class:"toolbar"},xgt={class:"prop-panel",id:"J_PropertiesPanel"},wgt=d.defineComponent({__name:"main",props:{label:{type:String,default:"获取用户的配置"}},emits:["modeler-init"],setup(e,{emit:t}){QM.registerLanguage("xml",Jmt),QM.registerLanguage("json",Qmt);const n=s9(),r=d.shallowRef({bpmnModeler:null,bpmnXmlStr:lue}),i=d.ref(null),o=t,a=async l=>{var c;try{const u=await((c=r.value.bpmnModeler)==null?void 0:c.importXML(l)),{warnings:f}=u||{};console.log(f)}catch(u){n.error("打开模型出错,数据格式有误!"),console.log("error--->",u)}},s=async()=>{const l=Zt(Vt),c={translate:["value",zce]};l.modeler&&(l.modeler.destroy(),await l.setModeler(void 0)),vgt();const u=new mc({container:i.value,propertiesPanel:{parent:"#J_PropertiesPanel"},additionalModules:[c],moddleExtensions:{activiti:egt}});r.value.bpmnModeler=u,await l.setModeler(d.markRaw(u)),lf.emit("modeler-init",u),o("modeler-init",u),a(r.value.bpmnXmlStr)};return d.onMounted(()=>{s()}),(l,c)=>(d.openBlock(),d.createBlock(d.unref(BB),{abstract:"",hljs:d.unref(QM)},{default:d.withCtx(()=>[d.createVNode(d.unref(tz),null,{default:d.withCtx(()=>[d.createElementVNode("div",bgt,[d.createElementVNode("div",ygt,[d.createVNode(omt,{bpmnModeler:r.value.bpmnModeler},null,8,["bpmnModeler"])]),d.createElementVNode("div",{class:"canvas",id:"canvas",ref_key:"canvasRef",ref:i},null,512),d.createElementVNode("div",xgt,[d.createVNode(jpt)])])]),_:1})]),_:1},8,["hljs"]))}}),Cgt={name:"Workflow"},Due=d.defineComponent({...Cgt,emits:["init"],setup(e,{expose:t,emit:n}){qIe();const r=n,i=d.ref(null);return t({getWorkflowXml:GM,initXmlToStore:aue,updateProcessId:tmt,getPermissionJSON:sue,setPermissionByFields:nmt,updatePermFields:rmt}),(o,a)=>{const s=d.resolveComponent("n-message-provider");return d.openBlock(),d.createBlock(s,null,{default:d.withCtx(()=>[d.createVNode(wgt,{ref_key:"workflowRef",ref:i,onModelerInit:a[0]||(a[0]=l=>r("init",l))},null,512)]),_:1})}}}),Iue=Object.freeze(Object.defineProperty({__proto__:null,SZHello:ON,SZWorkflow:Due},Symbol.toStringTag,{value:"Module"})),_gt="0.1.13",Lue="Sz",Sgt=Pz({components:[Pz,u6e,BB,qCe,tz,_n,$B,r4,LB,P6e,n8e,S1,m7e,v7e,ez,f4,L7e,pz,ks,BCe,U_,rF,d4,DB,B_,YCe,Owe,R7e,sxe,S7e,Bwe,Iwe,e_e,ZCe,ACe,bz,SCe,M7e,h5e,XB]}),Bue=e=>{e.use(Sgt),e.use(K7)},aA=function(e){if(!aA.installed){aA.installed=!0,Bue(e);for(let t in Iue){const n=Reflect.get(Iue,t);e.component(Lue+n.name,n)}}};function Egt({componentPrefix:e=Lue,components:t=[]}={}){const n=[];function r(o,a,s){o.component(e+a)||o.component(e+a,s)}function i(o){n.includes(o)||(n.push(o),Bue(o),t.forEach(a=>{const{name:s,alias:l}=a;r(o,s,a),l&&l.forEach(c=>{r(o,c,a)})}))}return{version:_gt,componentPrefix:e,install:i}}const kgt={install(e){aA(e)}};/*!
|
4184
4184
|
* vanilla-picker v2.12.2
|
4185
4185
|
* https://vanilla-picker.js.org
|
4186
4186
|
*
|