From f347a246c11ff505dcc7e098c7c2251252b3c710 Mon Sep 17 00:00:00 2001 From: Peter Dulacka Date: Tue, 9 Jul 2024 08:25:00 +0200 Subject: [PATCH] Add missing scenario dist build remp/crm#2089 --- .gitignore | 1 - src/assets/scenario-builder/dist/index.html | 1 + src/assets/scenario-builder/dist/main.js | 2 + .../scenario-builder/dist/main.js.LICENSE.txt | 101 ++++++++++++++++++ 4 files changed, 104 insertions(+), 1 deletion(-) create mode 100644 src/assets/scenario-builder/dist/index.html create mode 100644 src/assets/scenario-builder/dist/main.js create mode 100644 src/assets/scenario-builder/dist/main.js.LICENSE.txt diff --git a/.gitignore b/.gitignore index 7f42fad..2005737 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,5 @@ .DS_Store node_modules -/src/assets/scenario-builder/dist /build # local env files diff --git a/src/assets/scenario-builder/dist/index.html b/src/assets/scenario-builder/dist/index.html new file mode 100644 index 0000000..e7776d3 --- /dev/null +++ b/src/assets/scenario-builder/dist/index.html @@ -0,0 +1 @@ +remp-scenario
\ No newline at end of file diff --git a/src/assets/scenario-builder/dist/main.js b/src/assets/scenario-builder/dist/main.js new file mode 100644 index 0000000..09a2984 --- /dev/null +++ b/src/assets/scenario-builder/dist/main.js @@ -0,0 +1,2 @@ +/*! For license information please see main.js.LICENSE.txt */ +(()=>{var e={9773:(e,t,n)=>{"use strict";n.d(t,{X4:()=>c,a:()=>p,e$:()=>d,eM:()=>s,tL:()=>u});var r=n(7860);function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function i(e){if(e.type)return e;if("#"===e.charAt(0))return i(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error((0,r.A)(3,e));var o=e.substring(t+1,e.length-1).split(",");return{type:n,values:o=o.map((function(e){return parseFloat(e)}))}}function a(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function s(e,t){var n=l(e),r=l(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function l(e){var t="hsl"===(e=i(e)).type?i(function(e){var t=(e=i(e)).values,n=t[0],r=t[1]/100,o=t[2]/100,s=r*Math.min(o,1-o),l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-s*Math.max(Math.min(t-3,9-t,1),-1)},u="rgb",c=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(u+="a",c.push(t[3])),a({type:u,values:c})}(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return l(e)>.5?d(e,t):p(e,t)}function c(e,t){return e=i(e),t=o(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,a(e)}function d(e,t){if(e=i(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return a(e)}function p(e,t){if(e=i(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return a(e)}},7727:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=n(45),o=n(2851),i=n(8168),a=["xs","sm","md","lg","xl"],s=n(4467);function l(e,t,n){var r;return(0,i.A)({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),(0,i.A)({paddingLeft:t(2),paddingRight:t(2)},n,(0,s.A)({},e.up("sm"),(0,i.A)({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},(0,s.A)(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,s.A)(r,e.up("sm"),{minHeight:64}),r)},n)}var u=n(7860);const c={black:"#000",white:"#fff"},d={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"},p="#7986cb",f="#3f51b5",h="#303f9f",m="#ff4081",g="#f50057",v="#c51162",y="#e57373",b="#f44336",x="#d32f2f",E="#ffb74d",w="#ff9800",k="#f57c00",_="#64b5f6",S="#2196f3",A="#1976d2",C="#81c784",P="#4caf50",T="#388e3c";var N=n(9773),M={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:c.white,default:d[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},O={text:{primary:c.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:d[800],default:"#303030"},action:{active:c.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function R(e,t,n,r){var o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,N.a)(e.main,o):"dark"===t&&(e.dark=(0,N.e$)(e.main,i)))}function L(e){return Math.round(1e5*e)/1e5}function I(e){return L(e)}var D={textTransform:"uppercase"},F='"Roboto", "Helvetica", "Arial", sans-serif';function z(e,t){var n="function"==typeof t?t(e):t,a=n.fontFamily,s=void 0===a?F:a,l=n.fontSize,u=void 0===l?14:l,c=n.fontWeightLight,d=void 0===c?300:c,p=n.fontWeightRegular,f=void 0===p?400:p,h=n.fontWeightMedium,m=void 0===h?500:h,g=n.fontWeightBold,v=void 0===g?700:g,y=n.htmlFontSize,b=void 0===y?16:y,x=n.allVariants,E=n.pxToRem,w=(0,r.A)(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),k=u/14,_=E||function(e){return"".concat(e/b*k,"rem")},S=function(e,t,n,r,o){return(0,i.A)({fontFamily:s,fontWeight:e,fontSize:_(t),lineHeight:n},s===F?{letterSpacing:"".concat(L(r/t),"em")}:{},o,x)},A={h1:S(d,96,1.167,-1.5),h2:S(d,60,1.2,-.5),h3:S(f,48,1.167,0),h4:S(f,34,1.235,.25),h5:S(f,24,1.334,0),h6:S(m,20,1.6,.15),subtitle1:S(f,16,1.75,.15),subtitle2:S(m,14,1.57,.1),body1:S(f,16,1.5,.15),body2:S(f,14,1.43,.15),button:S(m,14,1.75,.4,D),caption:S(f,12,1.66,.4),overline:S(f,12,2.66,1,D)};return(0,o.A)((0,i.A)({htmlFontSize:b,pxToRem:_,round:I,fontFamily:s,fontSize:u,fontWeightLight:d,fontWeightRegular:f,fontWeightMedium:m,fontWeightBold:v},A),w,{clone:!1})}function j(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}const W=["none",j(0,2,1,-1,0,1,1,0,0,1,3,0),j(0,3,1,-2,0,2,2,0,0,1,5,0),j(0,3,3,-2,0,3,4,0,0,1,8,0),j(0,2,4,-1,0,4,5,0,0,1,10,0),j(0,3,5,-1,0,5,8,0,0,1,14,0),j(0,3,5,-1,0,6,10,0,0,1,18,0),j(0,4,5,-2,0,7,10,1,0,2,16,1),j(0,5,5,-3,0,8,10,1,0,3,14,2),j(0,5,6,-3,0,9,12,1,0,3,16,2),j(0,6,6,-3,0,10,14,1,0,4,18,3),j(0,6,7,-4,0,11,15,1,0,4,20,3),j(0,7,8,-4,0,12,17,2,0,5,22,4),j(0,7,8,-4,0,13,19,2,0,5,24,4),j(0,7,9,-4,0,14,21,2,0,5,26,4),j(0,8,9,-5,0,15,22,2,0,6,28,5),j(0,8,10,-5,0,16,24,2,0,6,30,5),j(0,8,11,-5,0,17,26,2,0,6,32,5),j(0,9,11,-5,0,18,28,2,0,7,34,6),j(0,9,12,-6,0,19,29,2,0,7,36,6),j(0,10,13,-6,0,20,31,3,0,8,38,7),j(0,10,13,-6,0,21,33,3,0,8,40,7),j(0,10,14,-6,0,22,35,3,0,8,42,7),j(0,11,14,-7,0,23,36,3,0,9,44,8),j(0,11,15,-7,0,24,38,3,0,9,46,8)],B={borderRadius:4};var U=n(296),$=n(2284),V={xs:0,sm:600,md:960,lg:1280,xl:1920},H={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(V[e],"px)")}};const q=function(e,t){return t?(0,o.A)(e,t,{clone:!1}):e};var G,X,K={m:"margin",p:"padding"},Y={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Q={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Z=(G=function(e){if(e.length>2){if(!Q[e])return[e];e=Q[e]}var t=e.split(""),n=(0,U.A)(t,2),r=n[0],o=n[1],i=K[r],a=Y[o]||"";return Array.isArray(a)?a.map((function(e){return i+e})):[i+a]},X={},function(e){return void 0===X[e]&&(X[e]=G(e)),X[e]}),J=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function ee(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}function te(e){var t=ee(e.theme);return Object.keys(e).map((function(n){if(-1===J.indexOf(n))return null;var r=function(e,t){return function(n){return e.reduce((function(e,r){return e[r]=function(e,t){if("string"==typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:"-".concat(n)}(t,n),e}),{})}}(Z(n),t),o=e[n];return function(e,t,n){if(Array.isArray(t)){var r=e.theme.breakpoints||H;return t.reduce((function(e,o,i){return e[r.up(r.keys[i])]=n(t[i]),e}),{})}if("object"===(0,$.A)(t)){var o=e.theme.breakpoints||H;return Object.keys(t).reduce((function(e,r){return e[o.up(r)]=n(t[r]),e}),{})}return n(t)}(e,o,r)})).reduce(q,{})}te.propTypes={},te.filterProps=J;var ne=n(3870),re=n(9474);const oe=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,s=e.mixins,L=void 0===s?{}:s,I=e.palette,D=void 0===I?{}:I,F=e.spacing,j=e.typography,U=void 0===j?{}:j,$=(0,r.A)(e,["breakpoints","mixins","palette","spacing","typography"]),V=function(e){var t=e.primary,n=void 0===t?{light:p,main:f,dark:h}:t,a=e.secondary,s=void 0===a?{light:m,main:g,dark:v}:a,l=e.error,L=void 0===l?{light:y,main:b,dark:x}:l,I=e.warning,D=void 0===I?{light:E,main:w,dark:k}:I,F=e.info,z=void 0===F?{light:_,main:S,dark:A}:F,j=e.success,W=void 0===j?{light:C,main:P,dark:T}:j,B=e.type,U=void 0===B?"light":B,$=e.contrastThreshold,V=void 0===$?3:$,H=e.tonalOffset,q=void 0===H?.2:H,G=(0,r.A)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function X(e){return(0,N.eM)(e,O.text.primary)>=V?O.text.primary:M.text.primary}var K=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,i.A)({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error((0,u.A)(4,t));if("string"!=typeof e.main)throw new Error((0,u.A)(5,JSON.stringify(e.main)));return R(e,"light",n,q),R(e,"dark",r,q),e.contrastText||(e.contrastText=X(e.main)),e},Y={dark:O,light:M};return(0,o.A)((0,i.A)({common:c,type:U,primary:K(n),secondary:K(s,"A400","A200","A700"),error:K(L),warning:K(D),info:K(z),success:K(W),grey:d,contrastThreshold:V,getContrastText:X,augmentColor:K,tonalOffset:q},Y[U]),G)}(D),H=function(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,o=e.unit,s=void 0===o?"px":o,l=e.step,u=void 0===l?5:l,c=(0,r.A)(e,["values","unit","step"]);function d(e){var t="number"==typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(s,")")}function p(e,t){var r=a.indexOf(t);return r===a.length-1?d(e):"@media (min-width:".concat("number"==typeof n[e]?n[e]:e).concat(s,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof n[a[r+1]]?n[a[r+1]]:t)-u/100).concat(s,")")}return(0,i.A)({keys:a,values:n,up:d,down:function(e){var t=a.indexOf(e)+1,r=n[a[t]];return t===a.length?d("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-u/100).concat(s,")")},between:p,only:function(e){return p(e,e)},width:function(e){return n[e]}},c)}(n),q=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=ee({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r1?X-1:0),Y=1;Y{"use strict";n.d(t,{Ay:()=>s,p0:()=>i});var r=n(45),o={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},i={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function a(e){return"".concat(Math.round(e),"ms")}const s={easing:o,duration:i,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,s=void 0===n?i.standard:n,l=t.easing,u=void 0===l?o.easeInOut:l,c=t.delay,d=void 0===c?0:c;return(0,r.A)(t,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof s?s:a(s)," ").concat(u," ").concat("string"==typeof d?d:a(d))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}}},5192:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(8168),o=n(45),i=n(6540),a=n(4146),s=n.n(a),l=n(2611),u=n(6081),c=n(6061);var d=n(7727);const p=function(e,t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var a=t.defaultTheme,d=t.withTheme,p=void 0!==d&&d,f=t.name,h=(0,o.A)(t,["defaultTheme","withTheme","name"]),m=f,g=(0,l.A)(e,(0,r.A)({defaultTheme:a,Component:n,name:f||n.displayName,classNamePrefix:m},h)),v=i.forwardRef((function(e,t){e.classes;var s,l=e.innerRef,d=(0,o.A)(e,["classes","innerRef"]),h=g((0,r.A)({},n.defaultProps,e)),m=d;return("string"==typeof f||p)&&(s=(0,c.A)()||a,f&&(m=(0,u.A)({theme:s,name:f,props:d})),p&&!m.theme&&(m.theme=s)),i.createElement(n,(0,r.A)({ref:l||t,classes:h},m))}));return s()(v,n),v}}(e,(0,r.A)({defaultTheme:d.A},t))}},9474:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500}},7515:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(7860);function o(e){if("string"!=typeof e)throw new Error((0,r.A)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},8521:(e,t,n)=>{"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;nr})},4507:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(8168),o=n(6540),i=n(45),a=n(53),s=n(5192),l=n(7515),u=o.forwardRef((function(e,t){var n=e.children,s=e.classes,u=e.className,c=e.color,d=void 0===c?"inherit":c,p=e.component,f=void 0===p?"svg":p,h=e.fontSize,m=void 0===h?"medium":h,g=e.htmlColor,v=e.titleAccess,y=e.viewBox,b=void 0===y?"0 0 24 24":y,x=(0,i.A)(e,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return o.createElement(f,(0,r.A)({className:(0,a.A)(s.root,u,"inherit"!==d&&s["color".concat((0,l.A)(d))],"default"!==m&&"medium"!==m&&s["fontSize".concat((0,l.A)(m))]),focusable:"false",viewBox:b,color:g,"aria-hidden":!v||void 0,role:v?"img":void 0,ref:t},x),n,v?o.createElement("title",null,v):null)}));u.muiName="SvgIcon";const c=(0,s.A)((function(e){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:e.typography.pxToRem(24),transition:e.transitions.create("fill",{duration:e.transitions.duration.shorter})},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(35)}}}),{name:"MuiSvgIcon"})(u);function d(e,t){var n=function(t,n){return o.createElement(c,(0,r.A)({ref:n},t),e)};return n.muiName=c.muiName,o.memo(o.forwardRef(n))}},1198:(e,t,n)=>{"use strict";function r(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,o=new Array(r),i=0;ir})},1305:(e,t,n)=>{"use strict";n.r(t),n.d(t,{capitalize:()=>r.A,createChainedFunction:()=>o.A,createSvgIcon:()=>i.A,debounce:()=>a.A,deprecatedPropType:()=>s,isMuiElement:()=>l.A,ownerDocument:()=>u.A,ownerWindow:()=>c.A,requirePropFactory:()=>d,setRef:()=>p.A,unstable_useId:()=>v.A,unsupportedProp:()=>f,useControlled:()=>h.A,useEventCallback:()=>m.A,useForkRef:()=>g.A,useIsFocusVisible:()=>y.A});var r=n(7515),o=n(8521),i=n(4507),a=n(1198);function s(e,t){return function(){return null}}var l=n(7570),u=n(1475),c=n(6182);function d(e){return function(){return null}}var p=n(4960);function f(e,t,n,r,o){return null}var h=n(8060),m=n(2319),g=n(4801),v=n(4232),y=n(364)},7570:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(6540);function o(e,t){return r.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}},1475:(e,t,n)=>{"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,{A:()=>r})},6182:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(1475);function o(e){return(0,r.A)(e).defaultView||window}},4960:(e,t,n)=>{"use strict";function r(e,t){"function"==typeof e?e(t):e&&(e.current=t)}n.d(t,{A:()=>r})},4232:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(6540);function o(e){var t=r.useState(e),n=t[0],o=t[1],i=e||n;return r.useEffect((function(){null==n&&o("mui-".concat(Math.round(1e5*Math.random())))}),[n]),i}},8060:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(6540);function o(e){var t=e.controlled,n=e.default,o=(e.name,e.state,r.useRef(void 0!==t).current),i=r.useState(n),a=i[0],s=i[1];return[o?t:a,r.useCallback((function(e){o||s(e)}),[])]}},2319:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(6540),o="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;function i(e){var t=r.useRef(e);return o((function(){t.current=e})),r.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}},4801:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(6540),o=n(4960);function i(e,t){return r.useMemo((function(){return null==e&&null==t?null:function(n){(0,o.A)(e,n),(0,o.A)(t,n)}}),[e,t])}},364:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(6540),o=n(961),i=!0,a=!1,s=null,l={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function u(e){e.metaKey||e.altKey||e.ctrlKey||(i=!0)}function c(){i=!1}function d(){"hidden"===this.visibilityState&&a&&(i=!0)}function p(e){var t,n,r,o=e.target;try{return o.matches(":focus-visible")}catch(e){}return i||(n=(t=o).type,!("INPUT"!==(r=t.tagName)||!l[n]||t.readOnly)||"TEXTAREA"===r&&!t.readOnly||!!t.isContentEditable)}function f(){a=!0,window.clearTimeout(s),s=window.setTimeout((function(){a=!1}),100)}function h(){return{isFocusVisible:p,onBlurVisible:f,ref:r.useCallback((function(e){var t,n=o.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",u,!0),t.addEventListener("mousedown",c,!0),t.addEventListener("pointerdown",c,!0),t.addEventListener("touchstart",c,!0),t.addEventListener("visibilitychange",d,!0))}),[])}}},3558:(e,t,n)=>{"use strict";var r=n(4994),o=n(6305);t.A=void 0;var i=o(n(6540)),a=(0,r(n(6447)).default)(i.createElement("path",{d:"M22 5.7l-4.6-3.9-1.3 1.5 4.6 3.9L22 5.7zM7.9 3.4L6.6 1.9 2 5.7l1.3 1.5 4.6-3.8zM12.5 8H11v6l4.7 2.9.8-1.2-4-2.4V8zM12 4c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7z"}),"AccessAlarmsOutlined");t.A=a},9159:(e,t,n)=>{"use strict";var r=n(4994),o=n(6305);t.A=void 0;var i=o(n(6540)),a=(0,r(n(6447)).default)(i.createElement(i.Fragment,null,i.createElement("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),i.createElement("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})),"AccessTime");t.A=a},9239:(e,t,n)=>{"use strict";var r=n(4994),o=n(6305);t.A=void 0;var i=o(n(6540)),a=(0,r(n(6447)).default)(i.createElement("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"AddCircleOutline");t.A=a},451:(e,t,n)=>{"use strict";var r=n(4994),o=n(6305);t.A=void 0;var i=o(n(6540)),a=(0,r(n(6447)).default)(i.createElement("path",{d:"M12 2C6.49 2 2 6.49 2 12s4.49 10 10 10 10-4.49 10-10S17.51 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm3-8c0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3 3 1.34 3 3z"}),"Adjust");t.A=a},6146:(e,t,n)=>{"use strict";var r=n(4994),o=n(6305);t.A=void 0;var i=o(n(6540)),a=(0,r(n(6447)).default)(i.createElement("path",{d:"M14 4l2.29 2.29-2.88 2.88 1.42 1.42 2.88-2.88L20 10V4zm-4 0H4v6l2.29-2.29 4.71 4.7V20h2v-8.41l-5.29-5.3z"}),"CallSplit");t.A=a},2894:(e,t,n)=>{"use strict";var r=n(4994),o=n(6305);t.A=void 0;var i=o(n(6540)),a=(0,r(n(6447)).default)(i.createElement("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");t.A=a},5565:(e,t,n)=>{"use strict";var r=n(4994),o=n(6305);t.A=void 0;var i=o(n(6540)),a=(0,r(n(6447)).default)(i.createElement("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox");t.A=a},7690:(e,t,n)=>{"use strict";var r=n(4994),o=n(6305);t.A=void 0;var i=o(n(6540)),a=(0,r(n(6447)).default)(i.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle");t.A=a},3546:(e,t,n)=>{"use strict";var r=n(4994),o=n(6305);t.A=void 0;var i=o(n(6540)),a=(0,r(n(6447)).default)(i.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");t.A=a},4711:(e,t,n)=>{"use strict";var r=n(4994),o=n(6305);t.A=void 0;var i=o(n(6540)),a=(0,r(n(6447)).default)(i.createElement("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete");t.A=a},7756:(e,t,n)=>{"use strict";var r=n(4994),o=n(6305);t.A=void 0;var i=o(n(6540)),a=(0,r(n(6447)).default)(i.createElement("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Edit");t.A=a},6064:(e,t,n)=>{"use strict";var r=n(4994),o=n(6305);t.A=void 0;var i=o(n(6540)),a=(0,r(n(6447)).default)(i.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"}),"Error");t.A=a},1371:(e,t,n)=>{"use strict";var r=n(4994),o=n(6305);t.A=void 0;var i=o(n(6540)),a=(0,r(n(6447)).default)(i.createElement("path",{d:"M20.5 11H19V7c0-1.1-.9-2-2-2h-4V3.5C13 2.12 11.88 1 10.5 1S8 2.12 8 3.5V5H4c-1.1 0-1.99.9-1.99 2v3.8H3.5c1.49 0 2.7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7H2V20c0 1.1.9 2 2 2h3.8v-1.5c0-1.49 1.21-2.7 2.7-2.7 1.49 0 2.7 1.21 2.7 2.7V22H17c1.1 0 2-.9 2-2v-4h1.5c1.38 0 2.5-1.12 2.5-2.5S21.88 11 20.5 11z"}),"Extension");t.A=a},820:(e,t,n)=>{"use strict";var r=n(4994),o=n(6305);t.A=void 0;var i=o(n(6540)),a=(0,r(n(6447)).default)(i.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"}),"Info");t.A=a},1083:(e,t,n)=>{"use strict";var r=n(4994),o=n(6305);t.A=void 0;var i=o(n(6540)),a=(0,r(n(6447)).default)(i.createElement("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"}),"Mail");t.A=a},8854:(e,t,n)=>{"use strict";var r=n(4994),o=n(6305);t.A=void 0;var i=o(n(6540)),a=(0,r(n(6447)).default)(i.createElement("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z"}),"Notifications");t.A=a},4276:(e,t,n)=>{"use strict";var r=n(4994),o=n(6305);t.A=void 0;var i=o(n(6540)),a=(0,r(n(6447)).default)(i.createElement("path",{d:"M7.58 4.08L6.15 2.65C3.75 4.48 2.17 7.3 2.03 10.5h2c.15-2.65 1.51-4.97 3.55-6.42zm12.39 6.42h2c-.15-3.2-1.73-6.02-4.12-7.85l-1.42 1.43c2.02 1.45 3.39 3.77 3.54 6.42zM18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}),"NotificationsActive");t.A=a},2312:(e,t,n)=>{"use strict";var r=n(4994),o=n(6305);t.A=void 0;var i=o(n(6540)),a=(0,r(n(6447)).default)(i.createElement("path",{d:"M20.1 7.7l-1 1c1.8 1.8 1.8 4.6 0 6.5l1 1c2.5-2.3 2.5-6.1 0-8.5zM18 9.8l-1 1c.5.7.5 1.6 0 2.3l1 1c1.2-1.2 1.2-3 0-4.3zM14 1H4c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 19H4V4h10v16z"}),"PhonelinkRing");t.A=a},1572:(e,t,n)=>{"use strict";var r=n(4994),o=n(6305);t.A=void 0;var i=o(n(6540)),a=(0,r(n(6447)).default)(i.createElement("path",{d:"M19 15l-6 6-1.42-1.42L15.17 16H4V4h2v10h9.17l-3.59-3.58L13 9l6 6z"}),"SubdirectoryArrowRight");t.A=a},100:(e,t,n)=>{"use strict";var r=n(4994),o=n(6305);t.A=void 0;var i=o(n(6540)),a=(0,r(n(6447)).default)(i.createElement("path",{d:"M16 17.01V10h-2v7.01h-3L15 21l4-3.99h-3zM9 3L5 6.99h3V14h2V6.99h3L9 3z"}),"SwapVert");t.A=a},2788:(e,t,n)=>{"use strict";var r=n(4994),o=n(6305);t.A=void 0;var i=o(n(6540)),a=(0,r(n(6447)).default)(i.createElement("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"Visibility");t.A=a},1334:(e,t,n)=>{"use strict";var r=n(4994),o=n(6305);t.A=void 0;var i=o(n(6540)),a=(0,r(n(6447)).default)(i.createElement("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");t.A=a},6447:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(1305)},6081:(e,t,n)=>{"use strict";function r(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var o,i=t.props[n];for(o in i)void 0===r[o]&&(r[o]=i[o]);return r}n.d(t,{A:()=>r})},2611:(e,t,n)=>{"use strict";n.d(t,{A:()=>on});var r=n(45),o=n(8168),i=n(6540),a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};const s="object"===("undefined"==typeof window?"undefined":a(window))&&"object"===("undefined"==typeof document?"undefined":a(document))&&9===document.nodeType;var l=n(2901),u=n(5540),c=n(9417),d=n(8587),p={}.constructor;function f(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(f);if(e.constructor!==p)return e;var t={};for(var n in e)t[n]=f(e[n]);return t}function h(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,o=f(t);return r.plugins.onCreateRule(e,o,n)||(e[0],null)}var m=function(e,t){for(var n="",r=0;r<+~=|^:(),"'`\s])/g,E="undefined"!=typeof CSS&&CSS.escape,w=function(e){return E?E(e):e.replace(x,"\\$1")},k=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,o=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var o=t;n&&!1===n.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,a=e in this.style;if(i&&!a&&!r)return this;var s=i&&a;if(s?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var l=this.options.sheet;return l&&l.attached,this},e}(),_=function(e){function t(t,n,r){var o;o=e.call(this,t,n,r)||this;var i=r.selector,a=r.scoped,s=r.sheet,l=r.generateId;return i?o.selectorText=i:!1!==a&&(o.id=l((0,c.A)((0,c.A)(o)),s),o.selectorText="."+w(o.id)),o}(0,u.A)(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=g(n))}return e},n.toString=function(e){var t=this.options.sheet,n=t&&t.options.link?(0,o.A)({},e,{allowEmpty:!0}):e;return b(this.selectorText,this.style,n)},(0,l.A)(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;n&&t&&(t.setSelector(n,e)||t.replaceRule(n,this))}},get:function(){return this.selectorText}}]),t}(k),S={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new _(e,t,n)}},A={indent:1,children:!0},C=/@([\w-]+)/,P=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(C);for(var i in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new Z((0,o.A)({},n,{parent:this})),t)this.rules.add(i,t[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=A);var t=v(e).linebreak;if(null==e.indent&&(e.indent=A.indent),null==e.children&&(e.children=A.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),T=/@container|@media|@supports\s+/,N={onCreateRule:function(e,t,n){return T.test(e)?new P(e,t,n):null}},M={indent:1,children:!0},O=/@keyframes\s+([\w-]+)/,R=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(O);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var i=n.scoped,a=n.sheet,s=n.generateId;for(var l in this.id=!1===i?this.name:w(s(this,a)),this.rules=new Z((0,o.A)({},n,{parent:this})),t)this.rules.add(l,t[l],(0,o.A)({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=M);var t=v(e).linebreak;if(null==e.indent&&(e.indent=M.indent),null==e.children&&(e.children=M.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),L=/@keyframes\s+/,I=/\$([\w-]+)/g,D=function(e,t){return"string"==typeof e?e.replace(I,(function(e,n){return n in t?t[n]:e})):e},F=function(e,t,n){var r=e[t],o=D(r,n);o!==r&&(e[t]=o)},z={onCreateRule:function(e,t,n){return"string"==typeof e&&L.test(e)?new R(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&F(e,"animation-name",n.keyframes),"animation"in e&&F(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return D(e,r.keyframes);default:return e}}},j=function(e){function t(){return e.apply(this,arguments)||this}return(0,u.A)(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=t&&t.options.link?(0,o.A)({},e,{allowEmpty:!0}):e;return b(this.key,this.style,n)},t}(k),W={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new j(e,t,n):null}},B=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=v(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r=this.index)t.push(e);else for(var r=0;rn)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=(0,d.A)(t,["attached"]),o=v(r).linebreak,i="",a=0;a-1?r.substr(0,o-1):r;e.style.setProperty(t,i,o>-1?"important":"")}}catch(e){return!1}return!0},ce=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},de=function(e,t){return e.selectorText=t,e.selectorText===t},pe=se((function(){return document.querySelector("head")}));var fe=se((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),he=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[n]},me=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},ge=function(){function e(e){this.getPropertyValue=le,this.setProperty=ue,this.removeProperty=ce,this.setSelector=de,this.hasInsertedRules=!1,this.cssRules=[],e&&ne.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,o=t.element;this.element=o||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var i=fe();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=function(e){var t=ne.registry;if(t.length>0){var n=function(e,t){for(var n=0;nt.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var o=function(e){for(var t=pe(),n=0;n-1){var o=Ot[e];if(!Array.isArray(o))return at+gt(o)in t&&st+o;if(!r)return!1;for(var i=0;it?1:-1:e.length-t.length},{onProcessStyle:function(e,t){if("style"!==t.type)return e;for(var n={},r=Object.keys(e).sort(Kt),o=0;o0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,o=void 0===r?"jss":r,i=e.seed,a=void 0===i?"":i,s=""===a?"":"".concat(a,"-"),l=0,u=function(){return l+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==Ce.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(s).concat(r,"-").concat(e.key);return t.options.theme[Ae]&&""===a?"".concat(i,"-").concat(u()):i}return"".concat(s).concat(o).concat(u())}}(),Zt={disableGeneration:!1,generateClassName:Qt,jss:Yt,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},Jt=i.createContext(Zt),en=-1e9,tn=n(2851);const nn={};function rn(e,t){var n=e.state,r=e.theme,i=e.stylesOptions,a=e.stylesCreator,s=e.name;if(!i.disableGeneration){var l=_e.get(i.sheetsManager,a,r);l||(l={refs:0,staticSheet:null,dynamicStyles:null},_e.set(i.sheetsManager,a,r,l));var u=(0,o.A)({},a.options,i,{theme:r,flip:"boolean"==typeof i.flip?i.flip:"rtl"===r.direction});u.generateId=u.serverGenerateClassName||u.generateClassName;var c=i.sheetsRegistry;if(0===l.refs){var d;i.sheetsCache&&(d=_e.get(i.sheetsCache,a,r));var p=a.create(r,s);d||((d=i.jss.createStyleSheet(p,(0,o.A)({link:!1},u))).attach(),i.sheetsCache&&_e.set(i.sheetsCache,a,r,d)),c&&c.add(d),l.staticSheet=d,l.dynamicStyles=Ee(p)}if(l.dynamicStyles){var f=i.jss.createStyleSheet(l.dynamicStyles,(0,o.A)({link:!0},u));f.update(t),f.attach(),n.dynamicSheet=f,n.classes=(0,we.A)({baseClasses:l.staticSheet.classes,newClasses:f.classes}),c&&c.add(f)}else n.classes=l.staticSheet.classes;l.refs+=1}}function on(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,a=t.classNamePrefix,s=t.Component,l=t.defaultTheme,u=void 0===l?nn:l,c=(0,r.A)(t,["name","classNamePrefix","Component","defaultTheme"]),d=function(e){var t="function"==typeof e;return{create:function(n,r){var i;try{i=t?e(n):e}catch(e){throw e}if(!r||!n.overrides||!n.overrides[r])return i;var a=n.overrides[r],s=(0,o.A)({},i);return Object.keys(a).forEach((function(e){s[e]=(0,tn.A)(s[e],a[e])})),s},options:{}}}(e),p=n||a||"makeStyles";return d.options={index:en+=1,name:n,meta:p,classNamePrefix:p},function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,Se.A)()||u,r=(0,o.A)({},i.useContext(Jt),c),a=i.useRef(),l=i.useRef();!function(o,s){var u,c,p=i.useRef([]),f=i.useMemo((function(){return{}}),s);p.current!==f&&(p.current=f,rn(c={name:n,state:{},stylesCreator:d,stylesOptions:r,theme:t},e),l.current=!1,a.current=c,u=function(){!function(e){var t=e.state,n=e.theme,r=e.stylesOptions,o=e.stylesCreator;if(!r.disableGeneration){var i=_e.get(r.sheetsManager,o,n);i.refs-=1;var a=r.sheetsRegistry;0===i.refs&&(_e.delete(r.sheetsManager,o,n),r.jss.removeStyleSheet(i.staticSheet),a&&a.remove(i.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}(c)}),i.useEffect((function(){return function(){u&&u()}}),[f])}(0,[t,d]),i.useEffect((function(){l.current&&function(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}(a.current,e),l.current=!0}));var p=function(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,o=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,o=!0),o&&(r.cacheClasses.value=(0,we.A)({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}(a.current,e.classes,s);return p}}},3043:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(8168);function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;if(e.Component,!n)return t;var o=(0,r.A)({},t);return Object.keys(n).forEach((function(e){n[e]&&(o[e]="".concat(t[e]," ").concat(n[e]))})),o}},6061:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(6540);const o=r.createContext(null);function i(){return r.useContext(o)}},2851:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(8168),o=n(2284);function i(e){return e&&"object"===(0,o.A)(e)&&e.constructor===Object}function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},o=n.clone?(0,r.A)({},e):e;return i(e)&&i(t)&&Object.keys(t).forEach((function(r){"__proto__"!==r&&(i(t[r])&&r in e?o[r]=a(e[r],t[r],n):o[r]=t[r])})),o}},7860:(e,t,n)=>{"use strict";function r(e){for(var t="https://mui.com/production-error/?code="+e,n=1;nr})},8970:(e,t,n)=>{window,e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=17)}([function(e,t){e.exports=n(2543)},function(e,t){e.exports=n(6540)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1);t.BaseWidget=class extends r.Component{constructor(e,t){super(t),this.className=e}bem(e){return(this.props.baseClass||this.className)+e+" "}getClassName(){return(this.props.baseClass||this.className)+" "+(this.props.className?this.props.className+" ":"")}getProps(){return Object.assign({},this.props.extraProps||{},{className:this.getClassName()})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(38),o=n(8),i=n(40);class a{static UID(){return a.TESTING?(a.TESTING_UID++,""+a.TESTING_UID):"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}static closest(e,t){return document.body.closest?e.closest(t):r(e,t)}static generateLinePath(e,t){return`M${e.x},${e.y} L ${t.x},${t.y}`}static generateCurvePath(e,t,n=0){var r=Math.abs(e.x-t.x)>Math.abs(e.y-t.y),o=r?"x":"y";let i=n;e[o]>e[o]&&(i=-n);var a=r?i:0,s=r?0:i;return`M${e.x},${e.y} C ${e.x+a},${e.y+s}\n ${t.x-a},${t.y-s} ${t.x},${t.y}`}static generateDynamicPath(e){let t=i();return t=t.moveto(e[0][0]*o.ROUTING_SCALING_FACTOR,e[0][1]*o.ROUTING_SCALING_FACTOR),e.slice(1).forEach((e=>{t=t.lineto(e[0]*o.ROUTING_SCALING_FACTOR,e[1]*o.ROUTING_SCALING_FACTOR)})),t.print()}}a.TESTING=!1,a.TESTING_UID=0,t.Toolkit=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(9),o=n(0);t.BaseModel=class extends r.BaseEntity{constructor(e,t){super(t),this.type=e,this.selected=!1}getParent(){return this.parent}setParent(e){this.parent=e}getSelectedEntities(){return this.isSelected()?[this]:[]}deSerialize(e,t){super.deSerialize(e,t),this.type=e.type,this.selected=e.selected}serialize(){return o.merge(super.serialize(),{type:this.type,selected:this.selected})}getType(){return this.type}getID(){return this.id}isSelected(){return this.selected}setSelected(e=!0){this.selected=e,this.iterateListeners(((t,n)=>{t.selectionChanged&&t.selectionChanged(Object.assign({},n,{isSelected:e}))}))}remove(){this.iterateListeners(((e,t)=>{e.entityRemoved&&e.entityRemoved(t)}))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(0);t.PointModel=class extends r.BaseModel{constructor(e,t){super(),this.x=t.x,this.y=t.y,this.parent=e}getSelectedEntities(){return super.isSelected()&&!this.isConnectedToPort()?[this]:[]}isConnectedToPort(){return null!==this.parent.getPortForPoint(this)}getLink(){return this.getParent()}deSerialize(e,t){super.deSerialize(e,t),this.x=e.x,this.y=e.y}serialize(){return o.merge(super.serialize(),{x:this.x,y:this.y})}remove(){this.parent&&this.parent.removePoint(this),super.remove()}updateLocation(e){this.x=e.x,this.y=e.y}getX(){return this.x}getY(){return this.y}isLocked(){return super.isLocked()||this.getParent().isLocked()}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(0);t.NodeModel=class extends r.BaseModel{constructor(e="default",t){super(e,t),this.x=0,this.y=0,this.extras={},this.ports={}}setPosition(e,t){let n=this.x,r=this.y;o.forEach(this.ports,(i=>{o.forEach(i.getLinks(),(o=>{let a=o.getPointForPort(i);a.x=a.x+e-n,a.y=a.y+t-r}))})),this.x=e,this.y=t}positionChanged(){this.iterateListeners(((e,t)=>e.positionChanged&&e.positionChanged(t)))}getSelectedEntities(){let e=super.getSelectedEntities();return this.isSelected()&&o.forEach(this.ports,(t=>{e=e.concat(o.map(t.getLinks(),(e=>e.getPointForPort(t))))})),e}deSerialize(e,t){super.deSerialize(e,t),this.x=e.x,this.y=e.y,this.extras=e.extras,o.forEach(e.ports,(e=>{let n=t.getPortFactory(e.type).getNewInstance();n.deSerialize(e,t),this.addPort(n)}))}serialize(){return o.merge(super.serialize(),{x:this.x,y:this.y,extras:this.extras,ports:o.map(this.ports,(e=>e.serialize()))})}doClone(e={},t){t.ports={},o.forEach(this.ports,(n=>{t.addPort(n.clone(e))}))}remove(){super.remove(),o.forEach(this.ports,(e=>{o.forEach(e.getLinks(),(e=>{e.remove()}))}))}getPortFromID(e){for(var t in this.ports)if(this.ports[t].id===e)return this.ports[t];return null}getPort(e){return this.ports[e]}getPorts(){return this.ports}removePort(e){this.ports[e.name]&&(this.ports[e.name].setParent(null),delete this.ports[e.name])}addPort(e){return e.setParent(this),this.ports[e.name]=e,e}updateDimensions({width:e,height:t}){this.width=e,this.height=t}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractFactory=class{constructor(e){this.type=e}getType(){return this.type}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(39);t.ROUTING_SCALING_FACTOR=5;const o=new r.JumpPointFinder({heuristic:r.Heuristic.manhattan,diagonalMovement:r.DiagonalMovement.Never});t.default=class{constructor(e){this.instance=o,this.diagramEngine=e}calculateDirectPath(e,n){const i=this.diagramEngine.getCanvasMatrix(),a=new r.Grid(i);return o.findPath(this.diagramEngine.translateRoutingX(Math.floor(e.x/t.ROUTING_SCALING_FACTOR)),this.diagramEngine.translateRoutingY(Math.floor(e.y/t.ROUTING_SCALING_FACTOR)),this.diagramEngine.translateRoutingX(Math.floor(n.x/t.ROUTING_SCALING_FACTOR)),this.diagramEngine.translateRoutingY(Math.floor(n.y/t.ROUTING_SCALING_FACTOR)),a)}calculateLinkStartEndCoords(e,t){const n=t.findIndex((t=>0===e[t[1]][t[0]])),r=t.length-1-t.slice().reverse().findIndex((t=>0===e[t[1]][t[0]]));if(-1===n||-1===r)return;const o=t.slice(0,n),i=t.slice(r);return{start:{x:t[n][0],y:t[n][1]},end:{x:t[r][0],y:t[r][1]},pathToStart:o,pathToEnd:i}}calculateDynamicPath(e,t,n,i,a){const s=new r.Grid(e),l=o.findPath(t.x,t.y,n.x,n.y,s),u=i.concat(l,a).map((e=>[this.diagramEngine.translateRoutingX(e[0],!0),this.diagramEngine.translateRoutingY(e[1],!0)]));return r.Util.compressPath(u)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(3),o=n(0);t.BaseEntity=class{constructor(e){this.listeners={},this.id=e||r.Toolkit.UID(),this.locked=!1}getID(){return this.id}doClone(e={},t){}clone(e={}){if(e[this.id])return e[this.id];let t=o.clone(this);return t.id=r.Toolkit.UID(),t.clearListeners(),e[this.id]=t,this.doClone(e,t),t}clearListeners(){this.listeners={}}deSerialize(e,t){this.id=e.id}serialize(){return{id:this.id}}iterateListeners(e){let t={id:r.Toolkit.UID(),firing:!0,entity:this,stopPropagation:()=>{t.firing=!1}};for(var n in this.listeners)if(this.listeners.hasOwnProperty(n)){if(!t.firing)return;e(this.listeners[n],t)}}removeListener(e){return!!this.listeners[e]&&(delete this.listeners[e],!0)}addListener(e){var t=r.Toolkit.UID();return this.listeners[t]=e,t}isLocked(){return this.locked}setLocked(e=!0){this.locked=e,this.iterateListeners(((t,n)=>{t.lockChanged&&t.lockChanged(Object.assign({},n,{locked:e}))}))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(0);t.PortModel=class extends r.BaseModel{constructor(e,t,n,r){super(t,n),this.name=e,this.links={},this.maximumLinks=r}deSerialize(e,t){super.deSerialize(e,t),this.name=e.name,this.maximumLinks=e.maximumLinks}serialize(){return o.merge(super.serialize(),{name:this.name,parentNode:this.parent.id,links:o.map(this.links,(e=>e.id)),maximumLinks:this.maximumLinks})}doClone(e={},t){t.links={},t.parentNode=this.getParent().clone(e)}getNode(){return this.getParent()}getName(){return this.name}getMaximumLinks(){return this.maximumLinks}setMaximumLinks(e){this.maximumLinks=e}removeLink(e){delete this.links[e.getID()]}addLink(e){this.links[e.getID()]=e}getLinks(){return this.links}createLinkModel(){if(o.isFinite(this.maximumLinks)){var e=o.size(this.links);if(1===this.maximumLinks&&e>=1)return o.values(this.links)[0];if(e>=this.maximumLinks)return null}return null}updateCoords({x:e,y:t,width:n,height:r}){this.x=e,this.y=t,this.width=n,this.height=r}canLinkToPort(e){return!0}isLocked(){return super.isLocked()||this.getParent().isLocked()}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseAction=class{constructor(e,t){this.mouseX=e,this.mouseY=t,this.ms=(new Date).getTime()}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(5),i=n(0);t.LinkModel=class extends r.BaseModel{constructor(e="default",t){super(e,t),this.points=[new o.PointModel(this,{x:0,y:0}),new o.PointModel(this,{x:0,y:0})],this.extras={},this.sourcePort=null,this.targetPort=null,this.labels=[]}deSerialize(e,t){super.deSerialize(e,t),this.extras=e.extras,this.points=i.map(e.points||[],(e=>{var n=new o.PointModel(this,{x:e.x,y:e.y});return n.deSerialize(e,t),n})),i.forEach(e.labels||[],(e=>{let n=t.getLabelFactory(e.type).getNewInstance();n.deSerialize(e,t),this.addLabel(n)})),e.target&&this.setTargetPort(this.getParent().getNode(e.target).getPortFromID(e.targetPort)),e.source&&this.setSourcePort(this.getParent().getNode(e.source).getPortFromID(e.sourcePort))}serialize(){return i.merge(super.serialize(),{source:this.sourcePort?this.sourcePort.getParent().id:null,sourcePort:this.sourcePort?this.sourcePort.id:null,target:this.targetPort?this.targetPort.getParent().id:null,targetPort:this.targetPort?this.targetPort.id:null,points:i.map(this.points,(e=>e.serialize())),extras:this.extras,labels:i.map(this.labels,(e=>e.serialize()))})}doClone(e={},t){t.setPoints(i.map(this.getPoints(),(t=>t.clone(e)))),this.sourcePort&&t.setSourcePort(this.sourcePort.clone(e)),this.targetPort&&t.setTargetPort(this.targetPort.clone(e))}remove(){this.sourcePort&&this.sourcePort.removeLink(this),this.targetPort&&this.targetPort.removeLink(this),super.remove()}isLastPoint(e){return this.getPointIndex(e)===this.points.length-1}getPointIndex(e){return this.points.indexOf(e)}getPointModel(e){for(var t=0;t{t.sourcePortChanged&&t.sourcePortChanged(Object.assign({},n,{port:e}))}))}getSourcePort(){return this.sourcePort}getTargetPort(){return this.targetPort}setTargetPort(e){null!==e&&e.addLink(this),null!==this.targetPort&&this.targetPort.removeLink(this),this.targetPort=e,this.iterateListeners(((t,n)=>{t.targetPortChanged&&t.targetPortChanged(Object.assign({},n,{port:e}))}))}point(e,t){return this.addPoint(this.generatePoint(e,t))}addLabel(e){e.setParent(this),this.labels.push(e)}getPoints(){return this.points}setPoints(e){i.forEach(e,(e=>{e.setParent(this)})),this.points=e}removePoint(e){this.points.splice(this.getPointIndex(e),1)}removePointsBefore(e){this.points.splice(0,this.getPointIndex(e))}removePointsAfter(e){this.points.splice(this.getPointIndex(e)+1)}removeMiddlePoints(){this.points.length>2&&this.points.splice(0,this.points.length-2)}addPoint(e,t=1){return e.setParent(this),this.points.splice(t,0,e),e}generatePoint(e=0,t=0){return new o.PointModel(this,{x:e,y:t})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(10),i=n(14);class a extends o.PortModel{constructor(e,t,n=null,r){super(t,"default",r),this.in=e,this.label=n||t}deSerialize(e,t){super.deSerialize(e,t),this.in=e.in,this.label=e.label}serialize(){return r.merge(super.serialize(),{in:this.in,label:this.label})}link(e){let t=this.createLinkModel();return t.setSourcePort(this),t.setTargetPort(e),t}canLinkToPort(e){return!(e instanceof a)||this.in!==e.in}createLinkModel(){return super.createLinkModel()||new i.DefaultLinkModel}}t.DefaultPortModel=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(12),o=n(0),i=n(15),a=n(16);t.DefaultLinkModel=class extends r.LinkModel{constructor(e="default"){super(e),this.color="rgba(255,255,255,0.5)",this.width=3,this.curvyness=50}serialize(){return o.merge(super.serialize(),{width:this.width,color:this.color,curvyness:this.curvyness})}deSerialize(e,t){super.deSerialize(e,t),this.color=e.color,this.width=e.width,this.curvyness=e.curvyness}addLabel(e){if(e instanceof a.LabelModel)return super.addLabel(e);let t=new i.DefaultLabelModel;return t.setLabel(e),super.addLabel(t)}setWidth(e){this.width=e,this.iterateListeners(((t,n)=>{t.widthChanged&&t.widthChanged(Object.assign({},n,{width:e}))}))}setColor(e){this.color=e,this.iterateListeners(((t,n)=>{t.colorChanged&&t.colorChanged(Object.assign({},n,{color:e}))}))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(16),o=n(0);t.DefaultLabelModel=class extends r.LabelModel{constructor(){super("default"),this.offsetY=-23}setLabel(e){this.label=e}deSerialize(e,t){super.deSerialize(e,t),this.label=e.label}serialize(){return o.merge(super.serialize(),{label:this.label})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(0);t.LabelModel=class extends r.BaseModel{constructor(e,t){super(e,t),this.offsetX=0,this.offsetY=0}deSerialize(e,t){super.deSerialize(e,t),this.offsetX=e.offsetX,this.offsetY=e.offsetY}serialize(){return o.merge(super.serialize(),{offsetX:this.offsetX,offsetY:this.offsetY})}}},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(3)),r(n(9)),r(n(41)),r(n(24)),r(n(13)),r(n(14)),r(n(15)),r(n(42)),r(n(43)),r(n(19)),r(n(21)),r(n(25)),r(n(23)),r(n(27)),r(n(28)),r(n(7)),r(n(22)),r(n(26)),r(n(30)),r(n(20)),r(n(8)),r(n(11)),r(n(31)),r(n(32)),r(n(33)),r(n(4)),r(n(18)),r(n(12)),r(n(6)),r(n(5)),r(n(10)),r(n(16)),r(n(44)),r(n(35)),r(n(37)),r(n(29)),r(n(2)),r(n(34)),r(n(36))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(9),o=n(0),i=n(12),a=n(6),s=n(10),l=n(5);t.DiagramModel=class extends r.BaseEntity{constructor(){super(),this.links={},this.nodes={},this.offsetX=0,this.offsetY=0,this.zoom=100,this.rendered=!1,this.gridSize=0}setGridSize(e=0){this.gridSize=e,this.iterateListeners(((t,n)=>{t.gridUpdated&&t.gridUpdated(Object.assign({},n,{size:e}))}))}getGridPosition(e){return 0===this.gridSize?e:this.gridSize*Math.floor((e+this.gridSize/2)/this.gridSize)}deSerializeDiagram(e,t){this.deSerialize(e,t),this.offsetX=e.offsetX,this.offsetY=e.offsetY,this.zoom=e.zoom,this.gridSize=e.gridSize,o.forEach(e.nodes,(e=>{let n=t.getNodeFactory(e.type).getNewInstance(e);n.setParent(this),n.deSerialize(e,t),this.addNode(n)})),o.forEach(e.links,(e=>{let n=t.getLinkFactory(e.type).getNewInstance();n.setParent(this),n.deSerialize(e,t),this.addLink(n)}))}serializeDiagram(){return o.merge(this.serialize(),{offsetX:this.offsetX,offsetY:this.offsetY,zoom:this.zoom,gridSize:this.gridSize,links:o.map(this.links,(e=>e.serialize())),nodes:o.map(this.nodes,(e=>e.serialize()))})}clearSelection(e=null){o.forEach(this.getSelectedItems(),(t=>{e&&e.getID()===t.getID()||t.setSelected(!1)}))}getSelectedItems(...e){Array.isArray(e)||(e=[e]);var t=[];return t=(t=(t=t.concat(o.flatMap(this.nodes,(e=>e.getSelectedEntities())))).concat(o.flatMap(this.links,(e=>e.getSelectedEntities())))).concat(o.flatMap(this.links,(e=>o.flatMap(e.points,(e=>e.getSelectedEntities()))))),t=o.uniq(t),e.length>0&&(t=o.filter(o.uniq(t),(t=>!!(o.includes(e,"node")&&t instanceof a.NodeModel||o.includes(e,"link")&&t instanceof i.LinkModel||o.includes(e,"port")&&t instanceof s.PortModel||o.includes(e,"point")&&t instanceof l.PointModel)))),t}setZoomLevel(e){this.zoom=e,this.iterateListeners(((t,n)=>{t.zoomUpdated&&t.zoomUpdated(Object.assign({},n,{zoom:e}))}))}setOffset(e,t){this.offsetX=e,this.offsetY=t,this.iterateListeners(((n,r)=>{n.offsetUpdated&&n.offsetUpdated(Object.assign({},r,{offsetX:e,offsetY:t}))}))}setOffsetX(e){this.offsetX=e,this.iterateListeners(((t,n)=>{t.offsetUpdated&&t.offsetUpdated(Object.assign({},n,{offsetX:e,offsetY:this.offsetY}))}))}setOffsetY(e){this.offsetY=e,this.iterateListeners(((e,t)=>{e.offsetUpdated&&e.offsetUpdated(Object.assign({},t,{offsetX:this.offsetX,offsetY:this.offsetY}))}))}getOffsetY(){return this.offsetY}getOffsetX(){return this.offsetX}getZoomLevel(){return this.zoom}getNode(e){return e instanceof a.NodeModel?e:this.nodes[e]?this.nodes[e]:null}getLink(e){return e instanceof i.LinkModel?e:this.links[e]?this.links[e]:null}addAll(...e){return o.forEach(e,(e=>{e instanceof i.LinkModel?this.addLink(e):e instanceof a.NodeModel&&this.addNode(e)})),e}addLink(e){return e.addListener({entityRemoved:()=>{this.removeLink(e)}}),this.links[e.getID()]=e,this.iterateListeners(((t,n)=>{t.linksUpdated&&t.linksUpdated(Object.assign({},n,{link:e,isCreated:!0}))})),e}addNode(e){return e.addListener({entityRemoved:()=>{this.removeNode(e)}}),this.nodes[e.getID()]=e,this.iterateListeners(((t,n)=>{t.nodesUpdated&&t.nodesUpdated(Object.assign({},n,{node:e,isCreated:!0}))})),e}removeLink(e){e=this.getLink(e),delete this.links[e.getID()],this.iterateListeners(((t,n)=>{t.linksUpdated&&t.linksUpdated(Object.assign({},n,{link:e,isCreated:!1}))}))}removeNode(e){e=this.getNode(e),delete this.nodes[e.getID()],this.iterateListeners(((t,n)=>{t.nodesUpdated&&t.nodesUpdated(Object.assign({},n,{node:e,isCreated:!1}))}))}getLinks(){return this.links}getNodes(){return this.nodes}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(13),o=n(20);t.DefaultPortFactory=class extends o.AbstractPortFactory{constructor(){super("default")}getNewInstance(e){return new r.DefaultPortModel(!0,"unknown")}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(7);t.AbstractPortFactory=class extends r.AbstractFactory{}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1),o=n(22),i=n(15),a=n(23);t.DefaultLabelFactory=class extends o.AbstractLabelFactory{constructor(){super("default")}generateReactWidget(e,t){return r.createElement(a.DefaultLabelWidget,{model:t})}getNewInstance(e){return new i.DefaultLabelModel}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(7);t.AbstractLabelFactory=class extends r.AbstractFactory{}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1),o=n(2);t.DefaultLabelWidget=class extends o.BaseWidget{constructor(e){super("srd-default-label",e)}render(){return r.createElement("div",Object.assign({},this.getProps()),this.props.model.label)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(13),o=n(0),i=n(6),a=n(3);t.DefaultNodeModel=class extends i.NodeModel{constructor(e="Untitled",t="rgb(0,192,255)"){super("default"),this.name=e,this.color=t}addInPort(e){return this.addPort(new r.DefaultPortModel(!0,a.Toolkit.UID(),e))}addOutPort(e){return this.addPort(new r.DefaultPortModel(!1,a.Toolkit.UID(),e))}deSerialize(e,t){super.deSerialize(e,t),this.name=e.name,this.color=e.color}serialize(){return o.merge(super.serialize(),{name:this.name,color:this.color})}getInPorts(){return o.filter(this.ports,(e=>e.in))}getOutPorts(){return o.filter(this.ports,(e=>!e.in))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1),o=n(5),i=n(3),a=n(8),s=n(0),l=n(2);class u extends l.BaseWidget{constructor(e){super("srd-default-link",e),this.addPointToLink=(e,t)=>{if(!e.shiftKey&&!this.props.diagramEngine.isModelLocked(this.props.link)&&this.props.link.points.length-1<=this.props.diagramEngine.getMaxNumberPointsPerLink()){const n=new o.PointModel(this.props.link,this.props.diagramEngine.getRelativeMousePoint(e));n.setSelected(!0),this.forceUpdate(),this.props.link.addPoint(n,t),this.props.pointAdded(n,e)}},this.findPathAndRelativePositionToRenderLabel=e=>{const t=this.refPaths.map((e=>e.getTotalLength()));let n=t.reduce(((e,t)=>e+t),0)*(e/(this.props.link.labels.length+1)),r=0;for(;r{if(!this.refLabels[e.id])return;const{path:n,position:r}=this.findPathAndRelativePositionToRenderLabel(t),o=this.refLabels[e.id].offsetWidth,i=this.refLabels[e.id].offsetHeight,a=n.getPointAtLength(r),s=a.x-o/2+e.offsetX,l=a.y-i/2+e.offsetY;this.refLabels[e.id].setAttribute("style",`transform: translate(${s}px, ${l}px);`)},this.refLabels={},this.refPaths=[],this.state={selected:!1},e.diagramEngine.isSmartRoutingEnabled()&&(this.pathFinding=new a.default(this.props.diagramEngine))}calculateAllLabelPosition(){s.forEach(this.props.link.labels,((e,t)=>{this.calculateLabelPosition(e,t+1)}))}componentDidUpdate(){this.props.link.labels.length>0&&window.requestAnimationFrame(this.calculateAllLabelPosition.bind(this))}componentDidMount(){this.props.link.labels.length>0&&window.requestAnimationFrame(this.calculateAllLabelPosition.bind(this))}generatePoint(e){let t=this.props.link.points[e].x,n=this.props.link.points[e].y;return r.createElement("g",{key:"point-"+this.props.link.points[e].id},r.createElement("circle",{cx:t,cy:n,r:5,className:"point "+this.bem("__point")+(this.props.link.points[e].isSelected()?this.bem("--point-selected"):"")}),r.createElement("circle",{onMouseLeave:()=>{this.setState({selected:!1})},onMouseEnter:()=>{this.setState({selected:!0})},"data-id":this.props.link.points[e].id,"data-linkid":this.props.link.id,cx:t,cy:n,r:15,opacity:0,className:"point "+this.bem("__point")}))}generateLabel(e){const t=this.props.diagramEngine.canvas;return r.createElement("foreignObject",{key:e.id,className:this.bem("__label"),width:t.offsetWidth,height:t.offsetHeight},r.createElement("div",{ref:t=>this.refLabels[e.id]=t},this.props.diagramEngine.getFactoryForLabel(e).generateReactWidget(this.props.diagramEngine,e)))}generateLink(e,t,n){var o=this.props,i=r.cloneElement(o.diagramEngine.getFactoryForLink(this.props.link).generateLinkSegment(this.props.link,this,this.state.selected||this.props.link.isSelected(),e),{ref:e=>e&&this.refPaths.push(e)}),a=r.cloneElement(i,Object.assign({},t,{strokeLinecap:"round",onMouseLeave:()=>{this.setState({selected:!1})},onMouseEnter:()=>{this.setState({selected:!0})},ref:null,"data-linkid":this.props.link.getID(),strokeOpacity:this.state.selected?.1:0,strokeWidth:20,onContextMenu:()=>{this.props.diagramEngine.isModelLocked(this.props.link)||(event.preventDefault(),this.props.link.remove())}}));return r.createElement("g",{key:"link-"+n},i,a)}isSmartRoutingApplicable(){const{diagramEngine:e,link:t}=this.props;return!!e.isSmartRoutingEnabled()&&2===t.points.length&&null!==t.sourcePort&&null!==t.targetPort}render(){const{diagramEngine:e}=this.props;if(!e.nodesRendered)return null;var t=this.props.link.points,n=[];if(this.isSmartRoutingApplicable()){const r=this.pathFinding.calculateDirectPath(s.first(t),s.last(t)),o=e.getRoutingMatrix(),a=this.pathFinding.calculateLinkStartEndCoords(o,r);if(a){const{start:e,end:t,pathToStart:r,pathToEnd:s}=a,l=this.pathFinding.calculateDynamicPath(o,e,t,r,s);n.push(this.generateLink(i.Toolkit.generateDynamicPath(l),{onMouseDown:e=>{this.addPointToLink(e,1)}},"0"))}}if(0===n.length)if(2===t.length){var o=Math.abs(t[0].x-t[1].x)>Math.abs(t[0].y-t[1].y)?"x":"y";Math.abs(t[0][o]-t[1][o]);var a=t[0],l=t[1];n.push(this.generateLink(i.Toolkit.generateCurvePath(a,l,this.props.link.curvyness),{onMouseDown:e=>{this.addPointToLink(e,1)}},"0")),null===this.props.link.targetPort&&n.push(this.generatePoint(1))}else{for(let e=0;e{this.addPointToLink(t,e+1)}},e));for(var u=1;uthis.generateLabel(e))))}}u.defaultProps={color:"black",width:3,link:null,engine:null,smooth:!1,diagramEngine:null},t.DefaultLinkWidget=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(7);t.AbstractLinkFactory=class extends r.AbstractFactory{}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1),o=n(0),i=n(28),a=n(2);t.DefaultNodeWidget=class extends a.BaseWidget{constructor(e){super("srd-default-node",e),this.state={}}generatePort(e){return r.createElement(i.DefaultPortLabel,{model:e,key:e.id})}render(){return r.createElement("div",Object.assign({},this.getProps(),{style:{background:this.props.node.color}}),r.createElement("div",{className:this.bem("__title")},r.createElement("div",{className:this.bem("__name")},this.props.node.name)),r.createElement("div",{className:this.bem("__ports")},r.createElement("div",{className:this.bem("__in")},o.map(this.props.node.getInPorts(),this.generatePort.bind(this))),r.createElement("div",{className:this.bem("__out")},o.map(this.props.node.getOutPorts(),this.generatePort.bind(this)))))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1),o=n(29),i=n(2);t.DefaultPortLabel=class extends i.BaseWidget{constructor(e){super("srd-default-port",e)}getClassName(){return super.getClassName()+(this.props.model.in?this.bem("--in"):this.bem("--out"))}render(){var e=r.createElement(o.PortWidget,{node:this.props.model.getParent(),name:this.props.model.name}),t=r.createElement("div",{className:"name"},this.props.model.label);return r.createElement("div",Object.assign({},this.getProps()),this.props.model.in?e:t,this.props.model.in?t:e)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1),o=n(2);t.PortWidget=class extends o.BaseWidget{constructor(e){super("srd-port",e),this.state={selected:!1}}getClassName(){return"port "+super.getClassName()+(this.state.selected?this.bem("--selected"):"")}render(){return r.createElement("div",Object.assign({},this.getProps(),{onMouseEnter:()=>{this.setState({selected:!0})},onMouseLeave:()=>{this.setState({selected:!1})},"data-name":this.props.name,"data-nodeid":this.props.node.getID()}))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(7);t.AbstractNodeFactory=class extends r.AbstractFactory{}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(11);t.MoveCanvasAction=class extends r.BaseAction{constructor(e,t,n){super(e,t),this.initialOffsetX=n.getOffsetX(),this.initialOffsetY=n.getOffsetY()}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(11);t.MoveItemsAction=class extends r.BaseAction{constructor(e,t,n){super(e,t),this.moved=!1,n.enableRepaintEntities(n.getDiagramModel().getSelectedItems());var r=n.getDiagramModel().getSelectedItems();r=r.filter((e=>!n.isModelLocked(e))),this.selectionModels=r.map((e=>({model:e,initialX:e.x,initialY:e.y})))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(11);t.SelectingAction=class extends r.BaseAction{constructor(e,t){super(e,t),this.mouseX2=e,this.mouseY2=t}getBoxDimensions(){return{left:this.mouseX2>this.mouseX?this.mouseX:this.mouseX2,top:this.mouseY2>this.mouseY?this.mouseY:this.mouseY2,width:Math.abs(this.mouseX2-this.mouseX),height:Math.abs(this.mouseY2-this.mouseY),right:this.mouseX2o.left&&e*r+n.getOffsetX()o.top&&t*r+n.getOffsetY(){if(this.props.diagramEngine.nodesRendered&&!this.props.diagramEngine.linksThatHaveInitiallyRendered[e.id]){if(null!==e.sourcePort)try{const t=this.props.diagramEngine.getPortCenter(e.sourcePort);e.points[0].updateLocation(t);const n=this.props.diagramEngine.getPortCoords(e.sourcePort);e.sourcePort.updateCoords(n),this.props.diagramEngine.linksThatHaveInitiallyRendered[e.id]=!0}catch(e){}if(null!==e.targetPort)try{const t=this.props.diagramEngine.getPortCenter(e.targetPort);i.last(e.points).updateLocation(t);const n=this.props.diagramEngine.getPortCoords(e.targetPort);e.targetPort.updateCoords(n),this.props.diagramEngine.linksThatHaveInitiallyRendered[e.id]=!0}catch(e){}}var t=this.props.diagramEngine.generateWidgetForLink(e);if(!t)throw new Error(`no link generated for type: ${e.getType()}`);return r.createElement(o.LinkWidget,{key:e.getID(),link:e,diagramEngine:this.props.diagramEngine},r.cloneElement(t,{pointAdded:this.props.pointAdded}))})))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2);t.LinkWidget=class extends r.BaseWidget{constructor(e){super("srd-link",e),this.state={}}shouldComponentUpdate(){return this.props.diagramEngine.canEntityRepaint(this.props.link)}render(){return this.props.children}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1),o=n(0),i=n(37),a=n(2);t.NodeLayerWidget=class extends a.BaseWidget{constructor(e){super("srd-node-layer",e),this.updateNodeDimensions=()=>{if(!this.props.diagramEngine.nodesRendered){const e=this.props.diagramEngine.getDiagramModel();o.map(e.getNodes(),(e=>{e.updateDimensions(this.props.diagramEngine.getNodeDimensions(e))}))}},this.state={}}componentDidUpdate(){this.updateNodeDimensions(),this.props.diagramEngine.nodesRendered=!0}render(){var e=this.props.diagramEngine.getDiagramModel();return r.createElement("div",Object.assign({},this.getProps(),{style:{transform:"translate("+e.getOffsetX()+"px,"+e.getOffsetY()+"px) scale("+e.getZoomLevel()/100+")"}}),o.map(e.getNodes(),(e=>r.createElement(i.NodeWidget,{diagramEngine:this.props.diagramEngine,key:e.id,node:e},this.props.diagramEngine.generateWidgetForNode(e)))))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1),o=n(2);t.NodeWidget=class extends o.BaseWidget{constructor(e){super("srd-node",e),this.state={}}shouldComponentUpdate(){return this.props.diagramEngine.canEntityRepaint(this.props.node)}getClassName(){return"node "+super.getClassName()+(this.props.node.isSelected()?this.bem("--selected"):"")}render(){return r.createElement("div",Object.assign({},this.getProps(),{"data-nodeid":this.props.node.id,style:{top:this.props.node.y,left:this.props.node.x}}),this.props.children)}}},function(e,t){e.exports=n(9356)},function(e,t){e.exports=n(5907)},function(e,t){e.exports=n(8182)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(9),o=n(18),i=n(0),a=n(6),s=n(5),l=n(17),u=n(8),c=n(19),d=n(21),p=n(3);t.DiagramEngine=class extends r.BaseEntity{constructor(){super(),this.canvasMatrix=[],this.routingMatrix=[],this.hAdjustmentFactor=0,this.vAdjustmentFactor=0,this.calculateMatrixDimensions=()=>{const e=i.values(this.diagramModel.nodes).map((e=>({x:e.x,width:e.width,y:e.y,height:e.height}))),t=i.values(this.diagramModel.links),n=i.flatMap(t.map((e=>[e.sourcePort,e.targetPort]))).filter((e=>null!==e)).map((e=>({x:e.x,width:e.width,y:e.y,height:e.height}))),r=i.flatMap(t.map((e=>e.points))).map((e=>({x:e.x,width:0,y:e.y,height:0}))),o=this.canvas,a=Math.floor(Math.min(i.minBy(i.concat(e,n,r),(e=>e.x)).x,0)/u.ROUTING_SCALING_FACTOR)*u.ROUTING_SCALING_FACTOR,s=i.maxBy(i.concat(e,n,r),(e=>e.x+e.width)),l=Math.max(s.x+s.width,o.offsetWidth),c=Math.floor(Math.min(i.minBy(i.concat(e,n,r),(e=>e.y)).y,0)/u.ROUTING_SCALING_FACTOR)*u.ROUTING_SCALING_FACTOR,d=i.maxBy(i.concat(e,n,r),(e=>e.y+e.height)),p=Math.max(d.y+d.height,o.offsetHeight);return{width:Math.ceil(Math.abs(a)+l),hAdjustmentFactor:Math.abs(a)/u.ROUTING_SCALING_FACTOR+1,height:Math.ceil(Math.abs(c)+p),vAdjustmentFactor:Math.abs(c)/u.ROUTING_SCALING_FACTOR+1}},this.markNodes=e=>{i.values(this.diagramModel.nodes).forEach((t=>{const n=Math.floor(t.x/u.ROUTING_SCALING_FACTOR),r=Math.ceil((t.x+t.width)/u.ROUTING_SCALING_FACTOR),o=Math.floor(t.y/u.ROUTING_SCALING_FACTOR),i=Math.ceil((t.y+t.height)/u.ROUTING_SCALING_FACTOR);for(let t=n-1;t<=r+1;t++)for(let n=o-1;n{i.flatMap(i.values(this.diagramModel.links).map((e=>[].concat(e.sourcePort,e.targetPort)))).filter((e=>null!==e)).forEach((t=>{const n=Math.floor(t.x/u.ROUTING_SCALING_FACTOR),r=Math.ceil((t.x+t.width)/u.ROUTING_SCALING_FACTOR),o=Math.floor(t.y/u.ROUTING_SCALING_FACTOR),i=Math.ceil((t.y+t.height)/u.ROUTING_SCALING_FACTOR);for(let t=n-1;t<=r+1;t++)for(let n=o-1;n{void 0!==e[n]&&void 0!==e[n][t]&&(e[n][t]=1)},this.diagramModel=new o.DiagramModel,this.nodeFactories={},this.linkFactories={},this.portFactories={},this.labelFactories={},this.canvas=null,this.paintableWidgets=null,this.linksThatHaveInitiallyRendered={},p.Toolkit.TESTING&&(p.Toolkit.TESTING_UID=0,window&&(window.diagram_instance=this))}installDefaultFactories(){this.registerNodeFactory(new l.DefaultNodeFactory),this.registerLinkFactory(new l.DefaultLinkFactory),this.registerPortFactory(new c.DefaultPortFactory),this.registerLabelFactory(new d.DefaultLabelFactory)}repaintCanvas(){this.iterateListeners((e=>{e.repaintCanvas&&e.repaintCanvas()}))}clearRepaintEntities(){this.paintableWidgets=null}enableRepaintEntities(e){this.paintableWidgets={},e.forEach((e=>{e instanceof a.NodeModel&&i.forEach(e.getPorts(),(e=>{i.forEach(e.getLinks(),(e=>{this.paintableWidgets[e.getID()]=!0}))})),e instanceof s.PointModel&&(this.paintableWidgets[e.getLink().getID()]=!0),this.paintableWidgets[e.getID()]=!0}))}isModelLocked(e){return!!this.diagramModel.isLocked()||e.isLocked()}recalculatePortsVisually(){this.nodesRendered=!1,this.linksThatHaveInitiallyRendered={}}canEntityRepaint(e){return null===this.paintableWidgets||void 0!==this.paintableWidgets[e.getID()]}setCanvas(e){this.canvas=e}setDiagramModel(e){this.diagramModel=e,this.recalculatePortsVisually()}getDiagramModel(){return this.diagramModel}getNodeFactories(){return this.nodeFactories}getLinkFactories(){return this.linkFactories}getLabelFactories(){return this.labelFactories}registerLabelFactory(e){this.labelFactories[e.getType()]=e,this.iterateListeners((e=>{e.labelFactoriesUpdated&&e.labelFactoriesUpdated()}))}registerPortFactory(e){this.portFactories[e.getType()]=e,this.iterateListeners((e=>{e.portFactoriesUpdated&&e.portFactoriesUpdated()}))}registerNodeFactory(e){this.nodeFactories[e.getType()]=e,this.iterateListeners((e=>{e.nodeFactoriesUpdated&&e.nodeFactoriesUpdated()}))}registerLinkFactory(e){this.linkFactories[e.getType()]=e,this.iterateListeners((e=>{e.linkFactoriesUpdated&&e.linkFactoriesUpdated()}))}getPortFactory(e){if(this.portFactories[e])return this.portFactories[e];throw new Error(`cannot find factory for port of type: [${e}]`)}getNodeFactory(e){if(this.nodeFactories[e])return this.nodeFactories[e];throw new Error(`cannot find factory for node of type: [${e}]`)}getLinkFactory(e){if(this.linkFactories[e])return this.linkFactories[e];throw new Error(`cannot find factory for link of type: [${e}]`)}getLabelFactory(e){if(this.labelFactories[e])return this.labelFactories[e];throw new Error(`cannot find factory for label of type: [${e}]`)}getFactoryForNode(e){return this.getNodeFactory(e.getType())}getFactoryForLink(e){return this.getLinkFactory(e.getType())}getFactoryForLabel(e){return this.getLabelFactory(e.getType())}generateWidgetForLink(e){var t=this.getFactoryForLink(e);if(!t)throw new Error("Cannot find link factory for link: "+e.getType());return t.generateReactWidget(this,e)}generateWidgetForNode(e){var t=this.getFactoryForNode(e);if(!t)throw new Error("Cannot find widget factory for node: "+e.getType());return t.generateReactWidget(this,e)}getRelativeMousePoint(e){var t=this.getRelativePoint(e.clientX,e.clientY);return{x:(t.x-this.diagramModel.getOffsetX())/(this.diagramModel.getZoomLevel()/100),y:(t.y-this.diagramModel.getOffsetY())/(this.diagramModel.getZoomLevel()/100)}}getRelativePoint(e,t){var n=this.canvas.getBoundingClientRect();return{x:e-n.left,y:t-n.top}}getNodeElement(e){const t=this.canvas.querySelector(`.node[data-nodeid="${e.getID()}"]`);if(null===t)throw new Error("Cannot find Node element with nodeID: ["+e.getID()+"]");return t}getNodePortElement(e){var t=this.canvas.querySelector(`.port[data-name="${e.getName()}"][data-nodeid="${e.getParent().getID()}"]`);if(null===t)throw new Error("Cannot find Node Port element with nodeID: ["+e.getParent().getID()+"] and name: ["+e.getName()+"]");return t}getPortCenter(e){var t=this.getNodePortElement(e),n=t.getBoundingClientRect(),r=this.getRelativePoint(n.left,n.top);return{x:t.offsetWidth/2+(r.x-this.diagramModel.getOffsetX())/(this.diagramModel.getZoomLevel()/100),y:t.offsetHeight/2+(r.y-this.diagramModel.getOffsetY())/(this.diagramModel.getZoomLevel()/100)}}getPortCoords(e){const t=this.getNodePortElement(e).getBoundingClientRect(),n=this.canvas.getBoundingClientRect();return{x:(t.x-this.diagramModel.getOffsetX())/(this.diagramModel.getZoomLevel()/100)-n.left,y:(t.y-this.diagramModel.getOffsetY())/(this.diagramModel.getZoomLevel()/100)-n.top,width:t.width,height:t.height}}getNodeDimensions(e){if(!this.canvas)return{width:0,height:0};const t=this.getNodeElement(e).getBoundingClientRect();return{width:t.width,height:t.height}}getMaxNumberPointsPerLink(){return this.maxNumberPointsPerLink}setMaxNumberPointsPerLink(e){this.maxNumberPointsPerLink=e}isSmartRoutingEnabled(){return!!this.smartRouting}setSmartRoutingStatus(e){this.smartRouting=e}getCanvasMatrix(){return 0===this.canvasMatrix.length&&this.calculateCanvasMatrix(),this.canvasMatrix}calculateCanvasMatrix(){const{width:e,hAdjustmentFactor:t,height:n,vAdjustmentFactor:r}=this.calculateMatrixDimensions();this.hAdjustmentFactor=t,this.vAdjustmentFactor=r;const o=Math.ceil(e/u.ROUTING_SCALING_FACTOR),a=Math.ceil(n/u.ROUTING_SCALING_FACTOR);this.canvasMatrix=i.range(0,a).map((()=>new Array(o).fill(0)))}getRoutingMatrix(){return 0===this.routingMatrix.length&&this.calculateRoutingMatrix(),this.routingMatrix}calculateRoutingMatrix(){const e=i.cloneDeep(this.getCanvasMatrix());this.markNodes(e),this.markPorts(e),this.routingMatrix=e}translateRoutingX(e,t=!1){return e+this.hAdjustmentFactor*(t?-1:1)}translateRoutingY(e,t=!1){return e+this.vAdjustmentFactor*(t?-1:1)}zoomToFit(){const e=this.canvas.clientWidth/this.canvas.scrollWidth,t=this.canvas.clientHeight/this.canvas.scrollHeight,n=ethis.forceUpdate()});this.setState({diagramEngineListener:t})}}componentWillUpdate(e){this.props.diagramEngine.diagramModel.id!==e.diagramEngine.diagramModel.id&&(this.setState({renderedNodes:!1}),e.diagramEngine.diagramModel.rendered=!0),e.diagramEngine.diagramModel.rendered||(this.setState({renderedNodes:!1}),e.diagramEngine.diagramModel.rendered=!0)}componentDidUpdate(){this.state.renderedNodes||this.setState({renderedNodes:!0})}componentDidMount(){this.onKeyUpPointer=this.onKeyUp.bind(this),this.setState({document,renderedNodes:!0,diagramEngineListener:this.props.diagramEngine.addListener({repaintCanvas:()=>{this.forceUpdate()}})}),window.addEventListener("keyup",this.onKeyUpPointer,!1),window.focus()}getMouseElement(e){var t=e.target,n=this.props.diagramEngine.diagramModel,r=s.Toolkit.closest(t,".port[data-name]");if(r){var o=s.Toolkit.closest(t,".node[data-nodeid]");return{model:n.getNode(o.getAttribute("data-nodeid")).getPort(r.getAttribute("data-name")),element:r}}return(r=s.Toolkit.closest(t,".point[data-id]"))?{model:n.getLink(r.getAttribute("data-linkid")).getPointModel(r.getAttribute("data-id")),element:r}:(r=s.Toolkit.closest(t,"[data-linkid]"))?{model:n.getLink(r.getAttribute("data-linkid")),element:r}:(r=s.Toolkit.closest(t,".node[data-nodeid]"))?{model:n.getNode(r.getAttribute("data-nodeid")),element:r}:null}fireAction(){this.state.action&&this.props.actionStillFiring&&this.props.actionStillFiring(this.state.action)}stopFiringAction(e){this.props.actionStoppedFiring&&!e&&this.props.actionStoppedFiring(this.state.action),this.setState({action:null})}startFiringAction(e){var t=!0;this.props.actionStartedFiring&&(t=this.props.actionStartedFiring(e)),t&&this.setState({action:e})}onMouseMove(e){var t=this.props.diagramEngine,n=t.getDiagramModel();if(this.state.action instanceof c.SelectingAction){var r=t.getRelativePoint(e.clientX,e.clientY);return o.forEach(n.getNodes(),(e=>{this.state.action.containsElement(e.x,e.y,n)&&e.setSelected(!0)})),o.forEach(n.getLinks(),(e=>{var t=!0;o.forEach(e.points,(e=>{this.state.action.containsElement(e.x,e.y,n)?e.setSelected(!0):t=!1})),t&&e.setSelected(!0)})),this.state.action.mouseX2=r.x,this.state.action.mouseY2=r.y,this.fireAction(),void this.setState({action:this.state.action})}if(this.state.action instanceof u.MoveItemsAction){let r=e.clientX-this.state.action.mouseX,i=e.clientY-this.state.action.mouseY,a=n.getZoomLevel()/100;o.forEach(this.state.action.selectionModels,(e=>{e.model instanceof d.NodeModel||e.model instanceof p.PointModel&&!e.model.isConnectedToPort()?(e.model.x=n.getGridPosition(e.initialX+r/a),e.model.y=n.getGridPosition(e.initialY+i/a),e.model instanceof d.NodeModel&&(e.model.positionChanged(),o.forEach(e.model.getPorts(),(e=>{const t=this.props.diagramEngine.getPortCoords(e);e.updateCoords(t)}))),t.isSmartRoutingEnabled()&&t.calculateRoutingMatrix()):e.model instanceof p.PointModel&&(e.model.x=e.initialX+n.getGridPosition(r/a),e.model.y=e.initialY+n.getGridPosition(i/a))})),t.isSmartRoutingEnabled()&&t.calculateCanvasMatrix(),this.fireAction(),this.state.wasMoved?this.forceUpdate():this.setState({wasMoved:!0})}else this.state.action instanceof l.MoveCanvasAction&&this.props.allowCanvasTranslation&&(n.setOffset(this.state.action.initialOffsetX+(e.clientX-this.state.action.mouseX),this.state.action.initialOffsetY+(e.clientY-this.state.action.mouseY)),this.fireAction(),this.forceUpdate())}onKeyUp(e){-1!==this.props.deleteKeys.indexOf(e.keyCode)&&(o.forEach(this.props.diagramEngine.getDiagramModel().getSelectedItems(),(e=>{this.props.diagramEngine.isModelLocked(e)||e.remove()})),this.forceUpdate())}onMouseUp(e){var t=this.props.diagramEngine;if(this.state.action instanceof u.MoveItemsAction){var n=this.getMouseElement(e);o.forEach(this.state.action.selectionModels,(e=>{if(e.model instanceof p.PointModel&&n&&n.model instanceof f.PortModel&&!t.isModelLocked(n.model)){let r=e.model.getLink();if(null!==r.getTargetPort())if(r.getTargetPort()!==n.model&&r.getSourcePort()!==n.model){const o=r.getTargetPort();let i=r.clone({});i.setSourcePort(n.model),i.setTargetPort(o),r.setTargetPort(n.model),o.removeLink(r),i.removePointsBefore(i.getPoints()[r.getPointIndex(e.model)]),r.removePointsAfter(e.model),t.getDiagramModel().addLink(i)}else r.getTargetPort()===n.model?r.removePointsAfter(e.model):r.getSourcePort()===n.model&&r.removePointsBefore(e.model);else r.setTargetPort(n.model);delete this.props.diagramEngine.linksThatHaveInitiallyRendered[r.getID()]}})),!this.props.allowLooseLinks&&this.state.wasMoved&&o.forEach(this.state.action.selectionModels,(e=>{if(!(e.model instanceof p.PointModel))return;let t=e.model.getLink();null!==t.getSourcePort()&&null!==t.getTargetPort()||t.remove()})),o.forEach(this.state.action.selectionModels,(e=>{if(!(e.model instanceof p.PointModel))return;let t=e.model.getLink(),n=t.getSourcePort(),r=t.getTargetPort();null!==n&&null!==r&&(n.canLinkToPort(r)?o.some(o.values(r.getLinks()),(e=>e!==t&&(e.getSourcePort()===n||e.getTargetPort()===n)))&&t.remove():t.remove())})),t.clearRepaintEntities(),this.stopFiringAction(!this.state.wasMoved)}else t.clearRepaintEntities(),this.stopFiringAction();this.state.document.removeEventListener("mousemove",this.onMouseMove),this.state.document.removeEventListener("mouseup",this.onMouseUp)}drawSelectionBox(){let e=this.state.action.getBoxDimensions();return r.createElement("div",{className:this.bem("__selector"),style:{top:e.top,left:e.left,width:e.width,height:e.height}})}render(){var e=this.props.diagramEngine;e.setMaxNumberPointsPerLink(this.props.maxNumberPointsPerLink),e.setSmartRoutingStatus(this.props.smartRouting);var t=e.getDiagramModel();return r.createElement("div",Object.assign({},this.getProps(),{ref:e=>{e&&this.props.diagramEngine.setCanvas(e)},onWheel:n=>{if(this.props.allowCanvasZoom){n.preventDefault(),n.stopPropagation();const r=t.getZoomLevel()/100;let o=this.props.inverseZoom?-n.deltaY:n.deltaY;n.ctrlKey&&o%1!=0?o/=3:o/=60,t.getZoomLevel()+o>10&&t.setZoomLevel(t.getZoomLevel()+o);const i=t.getZoomLevel()/100,a=n.currentTarget.getBoundingClientRect(),s=a.width,l=a.height,u=s*i-s*r,c=l*i-l*r,d=n.clientX-a.left,p=n.clientY-a.top,f=(d-t.getOffsetX())/r/s,h=(p-t.getOffsetY())/r/l;t.setOffset(t.getOffsetX()-u*f,t.getOffsetY()-c*h),e.enableRepaintEntities([]),this.forceUpdate()}},onMouseDown:n=>{if(3!==n.nativeEvent.which){this.setState(Object.assign({},this.state,{wasMoved:!1})),e.clearRepaintEntities();var r=this.getMouseElement(n);if(null===r)if(n.shiftKey){var o=e.getRelativePoint(n.clientX,n.clientY);this.startFiringAction(new c.SelectingAction(o.x,o.y))}else t.clearSelection(),this.startFiringAction(new l.MoveCanvasAction(n.clientX,n.clientY,t));else if(r.model instanceof f.PortModel)if(this.props.diagramEngine.isModelLocked(r.model))t.clearSelection();else{o=e.getRelativeMousePoint(n);var i=r.model,a=i.createLinkModel();a.setSourcePort(i),a&&(a.removeMiddlePoints(),a.getSourcePort()!==i&&a.setSourcePort(i),a.setTargetPort(null),a.getFirstPoint().updateLocation(o),a.getLastPoint().updateLocation(o),t.clearSelection(),a.getLastPoint().setSelected(!0),t.addLink(a),this.startFiringAction(new u.MoveItemsAction(n.clientX,n.clientY,e)))}else n.shiftKey||r.model.isSelected()||t.clearSelection(),r.model.setSelected(!0),this.startFiringAction(new u.MoveItemsAction(n.clientX,n.clientY,e));this.state.document.addEventListener("mousemove",this.onMouseMove),this.state.document.addEventListener("mouseup",this.onMouseUp)}}}),this.state.renderedNodes&&r.createElement(i.LinkLayerWidget,{diagramEngine:e,pointAdded:(n,r)=>{this.state.document.addEventListener("mousemove",this.onMouseMove),this.state.document.addEventListener("mouseup",this.onMouseUp),r.stopPropagation(),t.clearSelection(n),this.setState({action:new u.MoveItemsAction(r.clientX,r.clientY,e)})}}),r.createElement(a.NodeLayerWidget,{diagramEngine:e}),this.state.action instanceof c.SelectingAction&&this.drawSelectionBox())}}m.defaultProps={diagramEngine:null,allowLooseLinks:!0,allowCanvasTranslation:!0,allowCanvasZoom:!0,inverseZoom:!1,maxNumberPointsPerLink:1/0,smartRouting:!1,deleteKeys:[46,8]},t.DiagramWidget=m}])},2505:(e,t,n)=>{e.exports=n(8015)},5592:(e,t,n)=>{"use strict";var r=n(9516),o=n(7522),i=n(9106),a=n(2012),s=n(4202),l=n(7763);e.exports=function(e){return new Promise((function(t,u){var c=e.data,d=e.headers;r.isFormData(c)&&delete d["Content-Type"];var p=new XMLHttpRequest;if(e.auth){var f=e.auth.username||"",h=e.auth.password||"";d.Authorization="Basic "+btoa(f+":"+h)}if(p.open(e.method.toUpperCase(),i(e.url,e.params,e.paramsSerializer),!0),p.timeout=e.timeout,p.onreadystatechange=function(){if(p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in p?a(p.getAllResponseHeaders()):null,r={data:e.responseType&&"text"!==e.responseType?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:n,config:e,request:p};o(t,u,r),p=null}},p.onerror=function(){u(l("Network Error",e,null,p)),p=null},p.ontimeout=function(){u(l("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",p)),p=null},r.isStandardBrowserEnv()){var m=n(3948),g=(e.withCredentials||s(e.url))&&e.xsrfCookieName?m.read(e.xsrfCookieName):void 0;g&&(d[e.xsrfHeaderName]=g)}if("setRequestHeader"in p&&r.forEach(d,(function(e,t){void 0===c&&"content-type"===t.toLowerCase()?delete d[t]:p.setRequestHeader(t,e)})),e.withCredentials&&(p.withCredentials=!0),e.responseType)try{p.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&p.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){p&&(p.abort(),u(e),p=null)})),void 0===c&&(c=null),p.send(c)}))}},8015:(e,t,n)=>{"use strict";var r=n(9516),o=n(9012),i=n(5155),a=n(6987);function s(e){var t=new i(e),n=o(i.prototype.request,t);return r.extend(n,i.prototype,t),r.extend(n,t),n}var l=s(a);l.Axios=i,l.create=function(e){return s(r.merge(a,e))},l.Cancel=n(1928),l.CancelToken=n(3191),l.isCancel=n(3864),l.all=function(e){return Promise.all(e)},l.spread=n(7980),e.exports=l,e.exports.default=l},1928:e=>{"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},3191:(e,t,n)=>{"use strict";var r=n(1928);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},3864:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},5155:(e,t,n)=>{"use strict";var r=n(6987),o=n(9516),i=n(3471),a=n(4490);function s(e){this.defaults=e,this.interceptors={request:new i,response:new i}}s.prototype.request=function(e){"string"==typeof e&&(e=o.merge({url:arguments[0]},arguments[1])),(e=o.merge(r,{method:"get"},this.defaults,e)).method=e.method.toLowerCase();var t=[a,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},o.forEach(["delete","get","head","options"],(function(e){s.prototype[e]=function(t,n){return this.request(o.merge(n||{},{method:e,url:t}))}})),o.forEach(["post","put","patch"],(function(e){s.prototype[e]=function(t,n,r){return this.request(o.merge(r||{},{method:e,url:t,data:n}))}})),e.exports=s},3471:(e,t,n)=>{"use strict";var r=n(9516);function o(){this.handlers=[]}o.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},7763:(e,t,n)=>{"use strict";var r=n(5449);e.exports=function(e,t,n,o,i){var a=new Error(e);return r(a,t,n,o,i)}},4490:(e,t,n)=>{"use strict";var r=n(9516),o=n(2881),i=n(3864),a=n(6987),s=n(9137),l=n(4680);function u(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return u(e),e.baseURL&&!s(e.url)&&(e.url=l(e.baseURL,e.url)),e.headers=e.headers||{},e.data=o(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return u(e),t.data=o(t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(u(e),t&&t.response&&(t.response.data=o(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},5449:e=>{"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e}},7522:(e,t,n)=>{"use strict";var r=n(7763);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},2881:(e,t,n)=>{"use strict";var r=n(9516);e.exports=function(e,t,n){return r.forEach(n,(function(n){e=n(e,t)})),e}},6987:(e,t,n)=>{"use strict";var r=n(9516),o=n(7018),i={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var s,l={adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process)&&(s=n(5592)),s),transformRequest:[function(e,t){return o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(a(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){l.headers[e]=r.merge(i)})),e.exports=l},9012:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r{"use strict";var r=n(9516);function o(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}return i&&(e+=(-1===e.indexOf("?")?"?":"&")+i),e}},4680:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},3948:(e,t,n)=>{"use strict";var r=n(9516);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},9137:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},4202:(e,t,n)=>{"use strict";var r=n(9516);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},7018:(e,t,n)=>{"use strict";var r=n(9516);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},2012:(e,t,n)=>{"use strict";var r=n(9516),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,a={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},7980:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},9516:(e,t,n)=>{"use strict";var r=n(9012),o=n(1106),i=Object.prototype.toString;function a(e){return"[object Array]"===i.call(e)}function s(e){return null!==e&&"object"==typeof e}function l(e){return"[object Function]"===i.call(e)}function u(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),a(e))for(var n=0,r=e.length;n{e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},9356:(e,t,n)=>{var r=n(1840);e.exports=function(e,t,n){for(var o=n?e:e.parentNode;o&&o!==document;){if(r(o,t))return o;o=o.parentNode}}},53:(e,t,n)=>{"use strict";function r(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;to});const o=function(){for(var e,t,n=0,o="";n{"use strict";n.d(t,{A:()=>s});var r=n(1601),o=n.n(r),i=n(6314),a=n.n(i)()(o());a.push([e.id,".srd-diagram{position:relative;flex-grow:1;display:flex;cursor:move;overflow:hidden}.srd-diagram__selector{position:absolute;background-color:rgba(0,192,255,0.2);border:solid 2px #00c0ff}.srd-link-layer{position:absolute;height:100%;width:100%;transform-origin:0 0;overflow:visible !important;top:0;bottom:0;left:0;right:0}.srd-node-layer{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;transform-origin:0 0;width:100%;height:100%}.srd-node{position:absolute;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;cursor:move;pointer-events:all}.srd-node--selected>*{border-color:#00c0ff !important}.srd-port{width:15px;height:15px;background:rgba(255,255,255,0.1)}.srd-port:hover,.srd-port.selected{background:#c0ff00}.srd-default-node{background-color:#1e1e1e;border-radius:5px;font-family:sans-serif;color:white;border:solid 2px black;overflow:visible;font-size:11px}.srd-default-node__title{background:rgba(0,0,0,0.3);display:flex;white-space:nowrap}.srd-default-node__title>*{align-self:center}.srd-default-node__title .fa{padding:5px;opacity:0.2;cursor:pointer}.srd-default-node__title .fa:hover{opacity:1.0}.srd-default-node__name{flex-grow:1;padding:5px 5px}.srd-default-node__ports{display:flex;background-image:linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.2))}.srd-default-node__in,.srd-default-node__out{flex-grow:1;display:flex;flex-direction:column}.srd-default-port{display:flex;margin-top:1px}.srd-default-port>*{align-self:center}.srd-default-port__name{padding:0 5px}.srd-default-port--out{justify-content:flex-end}.srd-default-port--out .srd-default-port__name{justify-content:flex-end;text-align:right}.srd-default-label{background:rgba(70,70,70,0.8);border:1px solid #333;border-radius:4px;color:#fff;display:inline-block;font-size:smaller;padding:5px}@keyframes dash{from{stroke-dashoffset:24}to{stroke-dashoffset:0}}.srd-default-link path{fill:none;pointer-events:all}.srd-default-link--path-selected{stroke:#00c0ff !important;stroke-dasharray:10,2;animation:dash 1s linear infinite}.srd-default-link__label{pointer-events:none}.srd-default-link__label>div{display:inline-block;position:absolute}.srd-default-link__point{fill:rgba(255,255,255,0.5)}.srd-default-link--point-selected{fill:#00c0ff}\n",""]);const s=a},8836:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(1601),o=n.n(r),i=n(6314),a=n.n(i),s=n(9545),l=a()(o());l.i(s.A),l.push([e.id,"@import url(https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Material+Icons);"]),l.push([e.id,'.square-node,.round-node,.diamond-node{background-color:rgba(0,0,0,0);display:flex;flex-direction:column;align-items:center;width:150px}.square-node .node-container,.round-node .node-container,.diamond-node .node-container{position:relative;display:flex;align-items:center;width:50px;height:50px;border-radius:5px;overflow:visible;background-color:#fff;transition:all .15s}.square-node__title,.round-node__title,.diamond-node__title{display:flex;text-align:center;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;font-size:14px;font-weight:500}.square-node__title>*,.round-node__title>*,.diamond-node__title>*{align-self:center}.square-node__title .fa,.round-node__title .fa,.diamond-node__title .fa{padding:5px;opacity:.2;cursor:pointer}.square-node__title .fa:hover,.round-node__title .fa:hover,.diamond-node__title .fa:hover{opacity:1}.square-node__name,.round-node__name,.diamond-node__name{flex-grow:1;padding:5px 0}.square-node__ports,.round-node__ports,.diamond-node__ports{display:flex;background-image:none;width:100%}.square-node__left,.square-node__right,.square-node__bottom,.round-node__left,.round-node__right,.round-node__bottom,.diamond-node__left,.diamond-node__right,.diamond-node__bottom{flex-grow:1;display:flex;flex-direction:column}.square-node__left .port,.square-node__right .port,.square-node__bottom .port,.round-node__left .port,.round-node__right .port,.round-node__bottom .port,.diamond-node__left .port,.diamond-node__right .port,.diamond-node__bottom .port{border-radius:13px;width:13px;height:13px;position:relative;background:#fff}.square-node__left .port:hover,.square-node__left .port.selected,.square-node__right .port:hover,.square-node__right .port.selected,.square-node__bottom .port:hover,.square-node__bottom .port.selected,.round-node__left .port:hover,.round-node__left .port.selected,.round-node__right .port:hover,.round-node__right .port.selected,.round-node__bottom .port:hover,.round-node__bottom .port.selected,.diamond-node__left .port:hover,.diamond-node__left .port.selected,.diamond-node__right .port:hover,.diamond-node__right .port.selected,.diamond-node__bottom .port:hover,.diamond-node__bottom .port.selected{background:#a291fb}.square-node__left,.round-node__left,.diamond-node__left{align-items:flex-start}.square-node__left .port,.round-node__left .port,.diamond-node__left .port{left:-6.5px}.square-node__right,.round-node__right,.diamond-node__right{align-items:flex-end}.square-node__right .port,.round-node__right .port,.diamond-node__right .port{right:-6.5px}.square-node__bottom,.round-node__bottom,.diamond-node__bottom{align-items:center}.square-node__bottom .port,.round-node__bottom .port,.diamond-node__bottom .port{bottom:-6.5px}.square-node__icon,.round-node__icon,.diamond-node__icon{position:absolute;width:100%;height:100%;display:flex;justify-content:center;align-items:center}.round-node .node-container{border-radius:50px}.diamond-node__bottom{position:absolute;bottom:0;width:100%}.srd-node--selected .square-node.email-node .node-container{box-shadow:0 0 10px #a291fb}.email-node .node-container{border:solid 2px #a291fb;color:#a291fb}.email-node__title{color:#a291fb}.email-node__left .port,.email-node__right .port{box-shadow:0 0 10px #a291fb}.email-node__left .port:hover,.email-node__left .port.selected,.email-node__right .port:hover,.email-node__right .port.selected{background:#a291fb}.srd-node--selected .square-node.generic-node .node-container{box-shadow:0 0 10px #a291fb}.generic-node .node-container{border:solid 2px #a291fb;color:#a291fb}.generic-node__title{color:#a291fb}.generic-node__left .port,.generic-node__right .port{box-shadow:0 0 10px #a291fb}.generic-node__left .port:hover,.generic-node__left .port.selected,.generic-node__right .port:hover,.generic-node__right .port.selected{background:#a291fb}.srd-node--selected .diamond-node.segment-node .node-container{box-shadow:0 0 10px #ff695e}.segment-node .node-container{border:solid 2px #ff695e;color:#ff695e}.segment-node__title{color:#ff695e}.segment-node__left .port,.segment-node__right .port,.segment-node__bottom .port{box-shadow:0 0 10px #ff695e}.segment-node__left .port:hover,.segment-node__left .port.selected,.segment-node__right .port:hover,.segment-node__right .port.selected,.segment-node__bottom .port:hover,.segment-node__bottom .port.selected{background:#ff695e}.srd-node--selected .square-node.trigger-node .node-container{box-shadow:0 0 10px #2ecc40}.trigger-node .node-container{border:solid 2px #2ecc40;color:#2ecc40}.trigger-node__title{color:#2ecc40}.trigger-node__left .port,.trigger-node__right .port{box-shadow:0 0 10px #2ecc40}.trigger-node__left .port:hover,.trigger-node__left .port.selected,.trigger-node__right .port:hover,.trigger-node__right .port.selected{background:#2ecc40}.srd-node--selected .square-node.before-trigger-node .node-container{box-shadow:0 0 10px #00b5ad}.before-trigger-node .node-container{border:solid 2px #00b5ad;color:#00b5ad}.before-trigger-node__title{color:#00b5ad}.before-trigger-node__left .port,.before-trigger-node__right .port{box-shadow:0 0 10px #00b5ad}.before-trigger-node__left .port:hover,.before-trigger-node__left .port.selected,.before-trigger-node__right .port:hover,.before-trigger-node__right .port.selected{background:#00b5ad}.srd-node--selected .round-node.wait-node .node-container{box-shadow:0 0 10px #ff851b}.wait-node .node-container{border:solid 2px #ff851b;color:#ff851b}.wait-node__title{color:#ff851b}.wait-node__left .port,.wait-node__right .port{box-shadow:0 0 10px #ff851b}.wait-node__left .port:hover,.wait-node__left .port.selected,.wait-node__right .port:hover,.wait-node__right .port.selected{background:#ff851b}@keyframes dash{from{stroke-dashoffset:24}to{stroke-dashoffset:0}}.srd-default-link path{fill:none;pointer-events:all}.srd-default-link--path-selected{stroke:#54c8ff !important;stroke-dasharray:10,2;animation:dash 1s linear infinite}.srd-default-link__label{pointer-events:none}.srd-default-link__label>div{display:inline-block;position:absolute}.srd-default-link__point{fill:rgba(255,255,255,.5)}.srd-default-link--point-selected{fill:#00c0ff}.srd-node--selected .diamond-node.goal-node .node-container{box-shadow:0 0 10px #767676}.goal-node .node-container{border:solid 2px #767676;color:#767676}.goal-node__title{color:#767676}.goal-node__left .port,.goal-node__right .port,.goal-node__bottom .port{box-shadow:0 0 10px #767676}.goal-node__left .port:hover,.goal-node__left .port.selected,.goal-node__right .port:hover,.goal-node__right .port.selected,.goal-node__bottom .port:hover,.goal-node__bottom .port.selected{background:#767676}.srd-node--selected .square-node.banner-node .node-container{box-shadow:0 0 10px #6435c9}.banner-node .node-container{border:solid 2px #6435c9;color:#6435c9}.banner-node__title{color:#6435c9}.banner-node__left .port,.banner-node__right .port{box-shadow:0 0 10px #6435c9}.banner-node__left .port:hover,.banner-node__left .port.selected,.banner-node__right .port:hover,.banner-node__right .port.selected{background:#6435c9}.srd-node--selected .diamond-node.condition-node .node-container{box-shadow:0 0 10px #f2711c}.condition-node .node-container{border:solid 2px #f2711c;color:#f2711c}.condition-node__title{color:#f2711c}.condition-node__left .port,.condition-node__right .port,.condition-node__bottom .port{box-shadow:0 0 10px #f2711c}.condition-node__left .port:hover,.condition-node__left .port.selected,.condition-node__right .port:hover,.condition-node__right .port.selected,.condition-node__bottom .port:hover,.condition-node__bottom .port.selected{background:#f2711c}.srd-node--selected .square-node.push-notification-node .node-container{box-shadow:0 0 10px #dc73ff}.push-notification-node .node-container{border:solid 2px #dc73ff;color:#dc73ff}.push-notification-node__title{color:#dc73ff}.push-notification-node__left .port,.push-notification-node__right .port{box-shadow:0 0 10px #dc73ff}.push-notification-node__left .port:hover,.push-notification-node__left .port.selected,.push-notification-node__right .port:hover,.push-notification-node__right .port.selected{background:#dc73ff}.srd-node--selected .diamond-node .abtest-node .node-container{box-shadow:0 0 10px #767676}.abtest-node .node-container{border:solid 2px #767676;color:#767676;height:auto}.abtest-node__title{color:#767676}.abtest-node__ports{width:50%;height:100%;flex-direction:column}.abtest-node__right{margin-top:10px;height:20px}.abtest-node__description{display:flex;position:absolute;left:40px;top:-2px;font-size:.8rem;color:#1b1c1d}.abtest-node .port{box-shadow:0 0 10px #767676}.srd-demo-workspace{background:#000;display:flex;flex-direction:column;height:100%;border-radius:5px;overflow:hidden}.srd-demo-workspace__toolbar{padding:5px;display:flex;flex-shrink:0}.srd-demo-workspace__toolbar button{background:#3c3c3c;font-size:14px;padding:5px 10px;border:none;color:#fff;outline:none;cursor:pointer;margin:2px;border-radius:3px}.srd-demo-workspace__toolbar button:hover{background:#00c0ff}.srd-demo-workspace__content{flex-grow:1;height:100%}.docs-preview-wrapper{background:#3c3c3c;border-radius:10px;overflow:hidden;padding:10px;margin-top:20px;margin-bottom:20px}.srd-demo-canvas{height:100vh;min-height:300px;background-color:rgba(0,0,0,.05) !important;background-size:50px 50px}.srd-demo-canvas .pointui{fill:rgba(255,255,255,.5)}.diagram-layer{position:relative;top:64px}.body{flex-grow:1;display:flex;flex-direction:column;min-height:100%}.body .tray-item{cursor:move;cursor:grab;cursor:-moz-grab;cursor:-webkit-grab}.body .tray-item:active{cursor:grabbing;cursor:-moz-grabbing;cursor:-webkit-grabbing}.scenario-name{width:100%;display:inline-block}.scenario-name:hover{cursor:pointer}.changing-name-input{font-size:20px;width:100%;border:0;padding:2px 5px}.circular-loading{margin-right:15px;position:relative;top:7px}.toast-success{background-color:#5d9d52 !important}.toast-error{background-color:#c33e37 !important}.toast-info{background-color:#3477cb !important}.toast-warning{background-color:#f3a33a !important}.toast__icon{font-size:20px}.toast__icon-variant{opacity:.9;margin-right:10px}.toast__message{display:flex;align-items:center}.node-tooltip-loader{display:flex;align-items:center;justify-content:center;padding:20px}.statistic-badge-container-bottom{width:100%;display:flex;justify-content:center}.statistic-badge-right{position:absolute;top:15px;left:60px}.statistic-badge-bottom{position:absolute;top:25px}',""]);const u=l},6314:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var s=0;s0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=i),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),o&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=o):c[4]="".concat(o)),t.push(c))}},t}},1601:e=>{"use strict";e.exports=function(e){return e[1]}},5731:(e,t,n)=>{e.exports=n(4297)},4297:function(e,t,n){e=n.nmd(e),function(){var t,n,r,o,i,a,s,l,u,c,d,p,f,h,m;r=Math.floor,c=Math.min,n=function(e,t){return et?1:0},u=function(e,t,o,i,a){var s;if(null==o&&(o=0),null==a&&(a=n),o<0)throw new Error("lo must be non-negative");for(null==i&&(i=e.length);on;0<=n?t++:t--)u.push(t);return u}.apply(this).reverse()).length;im;0<=m?++p:--p)g.push(i(e,r));return g},h=function(e,t,r,o){var i,a,s;for(null==o&&(o=n),i=e[r];r>t&&o(i,a=e[s=r-1>>1])<0;)e[r]=a,r=s;return e[r]=i},m=function(e,t,r){var o,i,a,s,l;for(null==r&&(r=n),i=e.length,l=t,a=e[t],o=2*t+1;o{"use strict";var r=n(3404),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=f(n);o&&o!==h&&e(t,o,r)}var a=c(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),g=0;g{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case i:case s:case a:case f:return e;default:switch(e=e&&e.$$typeof){case u:case p:case g:case m:case l:return e;default:return t}}case o:return t}}}function w(e){return E(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=p,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=f,t.isAsyncMode=function(e){return w(e)||E(e)===c},t.isConcurrentMode=w,t.isContextConsumer=function(e){return E(e)===u},t.isContextProvider=function(e){return E(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return E(e)===p},t.isFragment=function(e){return E(e)===i},t.isLazy=function(e){return E(e)===g},t.isMemo=function(e){return E(e)===m},t.isPortal=function(e){return E(e)===o},t.isProfiler=function(e){return E(e)===s},t.isStrictMode=function(e){return E(e)===a},t.isSuspense=function(e){return E(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===s||e===a||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===p||e.$$typeof===y||e.$$typeof===b||e.$$typeof===x||e.$$typeof===v)},t.typeOf=E},3404:(e,t,n)=>{"use strict";e.exports=n(3072)},5580:(e,t,n)=>{var r=n(6110)(n(9325),"DataView");e.exports=r},1549:(e,t,n)=>{var r=n(2032),o=n(3862),i=n(6721),a=n(2749),s=n(5749);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t{var r=n(3702),o=n(80),i=n(4739),a=n(8655),s=n(1175);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t{var r=n(6110)(n(9325),"Map");e.exports=r},3661:(e,t,n)=>{var r=n(3040),o=n(7670),i=n(289),a=n(4509),s=n(2949);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t{var r=n(6110)(n(9325),"Promise");e.exports=r},6545:(e,t,n)=>{var r=n(6110)(n(9325),"Set");e.exports=r},8859:(e,t,n)=>{var r=n(3661),o=n(1380),i=n(1459);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t{var r=n(79),o=n(1420),i=n(938),a=n(3605),s=n(9817),l=n(945);function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=o,u.prototype.delete=i,u.prototype.get=a,u.prototype.has=s,u.prototype.set=l,e.exports=u},1873:(e,t,n)=>{var r=n(9325).Symbol;e.exports=r},7828:(e,t,n)=>{var r=n(9325).Uint8Array;e.exports=r},8303:(e,t,n)=>{var r=n(6110)(n(9325),"WeakMap");e.exports=r},9770:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n{var r=n(8096),o=n(2428),i=n(6449),a=n(3656),s=n(361),l=n(7167),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),c=!n&&o(e),d=!n&&!c&&a(e),p=!n&&!c&&!d&&l(e),f=n||c||d||p,h=f?r(e.length,String):[],m=h.length;for(var g in e)!t&&!u.call(e,g)||f&&("length"==g||d&&("offset"==g||"parent"==g)||p&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,m))||h.push(g);return h}},4932:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n{e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n{var r=n(5288);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},909:(e,t,n)=>{var r=n(641),o=n(8329)(r);e.exports=o},3120:(e,t,n)=>{var r=n(4528),o=n(5891);e.exports=function e(t,n,i,a,s){var l=-1,u=t.length;for(i||(i=o),s||(s=[]);++l0&&i(c)?n>1?e(c,n-1,i,a,s):r(s,c):a||(s[s.length]=c)}return s}},6649:(e,t,n)=>{var r=n(3221)();e.exports=r},641:(e,t,n)=>{var r=n(6649),o=n(5950);e.exports=function(e,t){return e&&r(e,t,o)}},7422:(e,t,n)=>{var r=n(1769),o=n(7797);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n{var r=n(4528),o=n(6449);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},2552:(e,t,n)=>{var r=n(1873),o=n(659),i=n(9350),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},8077:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},7534:(e,t,n)=>{var r=n(2552),o=n(346);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},270:(e,t,n)=>{var r=n(7068),o=n(346);e.exports=function e(t,n,i,a,s){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,i,a,e,s))}},7068:(e,t,n)=>{var r=n(7217),o=n(5911),i=n(1986),a=n(689),s=n(5861),l=n(6449),u=n(3656),c=n(7167),d="[object Arguments]",p="[object Array]",f="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,g,v){var y=l(e),b=l(t),x=y?p:s(e),E=b?p:s(t),w=(x=x==d?f:x)==f,k=(E=E==d?f:E)==f,_=x==E;if(_&&u(e)){if(!u(t))return!1;y=!0,w=!1}if(_&&!w)return v||(v=new r),y||c(e)?o(e,t,n,m,g,v):i(e,t,x,n,m,g,v);if(!(1&n)){var S=w&&h.call(e,"__wrapped__"),A=k&&h.call(t,"__wrapped__");if(S||A){var C=S?e.value():e,P=A?t.value():t;return v||(v=new r),g(C,P,n,m,v)}}return!!_&&(v||(v=new r),a(e,t,n,m,g,v))}},1799:(e,t,n)=>{var r=n(7217),o=n(270);e.exports=function(e,t,n,i){var a=n.length,s=a,l=!i;if(null==e)return!s;for(e=Object(e);a--;){var u=n[a];if(l&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++a{var r=n(1882),o=n(7296),i=n(3805),a=n(7473),s=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,c=l.toString,d=u.hasOwnProperty,p=RegExp("^"+c.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?p:s).test(a(e))}},4901:(e,t,n)=>{var r=n(2552),o=n(294),i=n(346),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[r(e)]}},5389:(e,t,n)=>{var r=n(3663),o=n(7978),i=n(3488),a=n(6449),s=n(583);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?o(e[0],e[1]):r(e):s(e)}},8984:(e,t,n)=>{var r=n(5527),o=n(3650),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},5128:(e,t,n)=>{var r=n(909),o=n(4894);e.exports=function(e,t){var n=-1,i=o(e)?Array(e.length):[];return r(e,(function(e,r,o){i[++n]=t(e,r,o)})),i}},3663:(e,t,n)=>{var r=n(1799),o=n(776),i=n(7197);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},7978:(e,t,n)=>{var r=n(270),o=n(8156),i=n(631),a=n(8586),s=n(756),l=n(7197),u=n(7797);e.exports=function(e,t){return a(e)&&s(t)?l(u(e),t):function(n){var a=o(n,e);return void 0===a&&a===t?i(n,e):r(t,a,3)}}},7237:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},7255:(e,t,n)=>{var r=n(7422);e.exports=function(e){return function(t){return r(t,e)}}},8096:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n{var r=n(1873),o=n(4932),i=n(6449),a=n(4394),s=r?r.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},7301:e=>{e.exports=function(e){return function(t){return e(t)}}},9219:e=>{e.exports=function(e,t){return e.has(t)}},1769:(e,t,n)=>{var r=n(6449),o=n(8586),i=n(1802),a=n(3222);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},5481:(e,t,n)=>{var r=n(9325)["__core-js_shared__"];e.exports=r},8329:(e,t,n)=>{var r=n(4894);e.exports=function(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var i=n.length,a=t?i:-1,s=Object(n);(t?a--:++a{e.exports=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===n(i[l],l,i))break}return t}}},5911:(e,t,n)=>{var r=n(8859),o=n(4248),i=n(9219);e.exports=function(e,t,n,a,s,l){var u=1&n,c=e.length,d=t.length;if(c!=d&&!(u&&d>c))return!1;var p=l.get(e),f=l.get(t);if(p&&f)return p==t&&f==e;var h=-1,m=!0,g=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++h{var r=n(1873),o=n(7828),i=n(5288),a=n(5911),s=n(317),l=n(4247),u=r?r.prototype:void 0,c=u?u.valueOf:void 0;e.exports=function(e,t,n,r,u,d,p){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var f=s;case"[object Set]":var h=1&r;if(f||(f=l),e.size!=t.size&&!h)return!1;var m=p.get(e);if(m)return m==t;r|=2,p.set(e,t);var g=a(f(e),f(t),r,u,d,p);return p.delete(e),g;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},689:(e,t,n)=>{var r=n(2),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,a,s){var l=1&n,u=r(e),c=u.length;if(c!=r(t).length&&!l)return!1;for(var d=c;d--;){var p=u[d];if(!(l?p in t:o.call(t,p)))return!1}var f=s.get(e),h=s.get(t);if(f&&h)return f==t&&h==e;var m=!0;s.set(e,t),s.set(t,e);for(var g=l;++d{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},2:(e,t,n)=>{var r=n(2199),o=n(4664),i=n(5950);e.exports=function(e){return r(e,i,o)}},2651:(e,t,n)=>{var r=n(4218);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},776:(e,t,n)=>{var r=n(756),o=n(5950);e.exports=function(e){for(var t=o(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,r(a)]}return t}},6110:(e,t,n)=>{var r=n(5083),o=n(392);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},659:(e,t,n)=>{var r=n(1873),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}},4664:(e,t,n)=>{var r=n(9770),o=n(3345),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=s},5861:(e,t,n)=>{var r=n(5580),o=n(8223),i=n(2804),a=n(6545),s=n(8303),l=n(2552),u=n(7473),c="[object Map]",d="[object Promise]",p="[object Set]",f="[object WeakMap]",h="[object DataView]",m=u(r),g=u(o),v=u(i),y=u(a),b=u(s),x=l;(r&&x(new r(new ArrayBuffer(1)))!=h||o&&x(new o)!=c||i&&x(i.resolve())!=d||a&&x(new a)!=p||s&&x(new s)!=f)&&(x=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case m:return h;case g:return c;case v:return d;case y:return p;case b:return f}return t}),e.exports=x},392:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},9326:(e,t,n)=>{var r=n(1769),o=n(2428),i=n(6449),a=n(361),s=n(294),l=n(7797);e.exports=function(e,t,n){for(var u=-1,c=(t=r(t,e)).length,d=!1;++u{var r=n(1042);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},3862:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},6721:(e,t,n)=>{var r=n(1042),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},2749:(e,t,n)=>{var r=n(1042),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},5749:(e,t,n)=>{var r=n(1042);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},5891:(e,t,n)=>{var r=n(1873),o=n(2428),i=n(6449),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},361:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e{var r=n(6449),o=n(4394),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||a.test(e)||!i.test(e)||null!=t&&e in Object(t)}},4218:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},7296:(e,t,n)=>{var r,o=n(5481),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},5527:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},756:(e,t,n)=>{var r=n(3805);e.exports=function(e){return e==e&&!r(e)}},3702:e=>{e.exports=function(){this.__data__=[],this.size=0}},80:(e,t,n)=>{var r=n(6025),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():o.call(t,n,1),--this.size,0))}},4739:(e,t,n)=>{var r=n(6025);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},8655:(e,t,n)=>{var r=n(6025);e.exports=function(e){return r(this.__data__,e)>-1}},1175:(e,t,n)=>{var r=n(6025);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},3040:(e,t,n)=>{var r=n(1549),o=n(79),i=n(8223);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},7670:(e,t,n)=>{var r=n(2651);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},289:(e,t,n)=>{var r=n(2651);e.exports=function(e){return r(this,e).get(e)}},4509:(e,t,n)=>{var r=n(2651);e.exports=function(e){return r(this,e).has(e)}},2949:(e,t,n)=>{var r=n(2651);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},317:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},7197:e=>{e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},2224:(e,t,n)=>{var r=n(104);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},1042:(e,t,n)=>{var r=n(6110)(Object,"create");e.exports=r},3650:(e,t,n)=>{var r=n(4335)(Object.keys,Object);e.exports=r},6009:(e,t,n)=>{e=n.nmd(e);var r=n(4840),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,s=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},9350:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},4335:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},9325:(e,t,n)=>{var r=n(4840),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},1380:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},1459:e=>{e.exports=function(e){return this.__data__.has(e)}},4247:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},1420:(e,t,n)=>{var r=n(79);e.exports=function(){this.__data__=new r,this.size=0}},938:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},3605:e=>{e.exports=function(e){return this.__data__.get(e)}},9817:e=>{e.exports=function(e){return this.__data__.has(e)}},945:(e,t,n)=>{var r=n(79),o=n(8223),i=n(3661);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},1802:(e,t,n)=>{var r=n(2224),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)})),t}));e.exports=a},7797:(e,t,n)=>{var r=n(4394);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},7473:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},5288:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},7307:(e,t,n)=>{var r=n(3120),o=n(5378);e.exports=function(e,t){return r(o(e,t),1)}},8156:(e,t,n)=>{var r=n(7422);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},631:(e,t,n)=>{var r=n(8077),o=n(9326);e.exports=function(e,t){return null!=e&&o(e,t,r)}},3488:e=>{e.exports=function(e){return e}},2428:(e,t,n)=>{var r=n(7534),o=n(346),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},6449:e=>{var t=Array.isArray;e.exports=t},4894:(e,t,n)=>{var r=n(1882),o=n(294);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},3656:(e,t,n)=>{e=n.nmd(e);var r=n(9325),o=n(9935),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||o;e.exports=l},1882:(e,t,n)=>{var r=n(2552),o=n(3805);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},294:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},3805:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},346:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},4394:(e,t,n)=>{var r=n(2552),o=n(346);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},7167:(e,t,n)=>{var r=n(4901),o=n(7301),i=n(6009),a=i&&i.isTypedArray,s=a?o(a):r;e.exports=s},5950:(e,t,n)=>{var r=n(695),o=n(8984),i=n(4894);e.exports=function(e){return i(e)?r(e):o(e)}},2543:function(e,t,n){var r;e=n.nmd(e),function(){var o,i="Expected a function",a="__lodash_hash_undefined__",s="__lodash_placeholder__",l=32,u=128,c=1/0,d=9007199254740991,p=NaN,f=4294967295,h=[["ary",u],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",l],["partialRight",64],["rearg",256]],m="[object Arguments]",g="[object Array]",v="[object Boolean]",y="[object Date]",b="[object Error]",x="[object Function]",E="[object GeneratorFunction]",w="[object Map]",k="[object Number]",_="[object Object]",S="[object Promise]",A="[object RegExp]",C="[object Set]",P="[object String]",T="[object Symbol]",N="[object WeakMap]",M="[object ArrayBuffer]",O="[object DataView]",R="[object Float32Array]",L="[object Float64Array]",I="[object Int8Array]",D="[object Int16Array]",F="[object Int32Array]",z="[object Uint8Array]",j="[object Uint8ClampedArray]",W="[object Uint16Array]",B="[object Uint32Array]",U=/\b__p \+= '';/g,$=/\b(__p \+=) '' \+/g,V=/(__e\(.*?\)|\b__t\)) \+\n'';/g,H=/&(?:amp|lt|gt|quot|#39);/g,q=/[&<>"']/g,G=RegExp(H.source),X=RegExp(q.source),K=/<%-([\s\S]+?)%>/g,Y=/<%([\s\S]+?)%>/g,Q=/<%=([\s\S]+?)%>/g,Z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,J=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,oe=/\s/,ie=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,se=/,? & /,le=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ue=/[()=,{}\[\]\/\s]/,ce=/\\(\\)?/g,de=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pe=/\w*$/,fe=/^[-+]0x[0-9a-f]+$/i,he=/^0b[01]+$/i,me=/^\[object .+?Constructor\]$/,ge=/^0o[0-7]+$/i,ve=/^(?:0|[1-9]\d*)$/,ye=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,be=/($^)/,xe=/['\n\r\u2028\u2029\\]/g,Ee="\\ud800-\\udfff",we="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ke="\\u2700-\\u27bf",_e="a-z\\xdf-\\xf6\\xf8-\\xff",Se="A-Z\\xc0-\\xd6\\xd8-\\xde",Ae="\\ufe0e\\ufe0f",Ce="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Pe="["+Ee+"]",Te="["+Ce+"]",Ne="["+we+"]",Me="\\d+",Oe="["+ke+"]",Re="["+_e+"]",Le="[^"+Ee+Ce+Me+ke+_e+Se+"]",Ie="\\ud83c[\\udffb-\\udfff]",De="[^"+Ee+"]",Fe="(?:\\ud83c[\\udde6-\\uddff]){2}",ze="[\\ud800-\\udbff][\\udc00-\\udfff]",je="["+Se+"]",We="\\u200d",Be="(?:"+Re+"|"+Le+")",Ue="(?:"+je+"|"+Le+")",$e="(?:['’](?:d|ll|m|re|s|t|ve))?",Ve="(?:['’](?:D|LL|M|RE|S|T|VE))?",He="(?:"+Ne+"|"+Ie+")?",qe="["+Ae+"]?",Ge=qe+He+"(?:"+We+"(?:"+[De,Fe,ze].join("|")+")"+qe+He+")*",Xe="(?:"+[Oe,Fe,ze].join("|")+")"+Ge,Ke="(?:"+[De+Ne+"?",Ne,Fe,ze,Pe].join("|")+")",Ye=RegExp("['’]","g"),Qe=RegExp(Ne,"g"),Ze=RegExp(Ie+"(?="+Ie+")|"+Ke+Ge,"g"),Je=RegExp([je+"?"+Re+"+"+$e+"(?="+[Te,je,"$"].join("|")+")",Ue+"+"+Ve+"(?="+[Te,je+Be,"$"].join("|")+")",je+"?"+Be+"+"+$e,je+"+"+Ve,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Me,Xe].join("|"),"g"),et=RegExp("["+We+Ee+we+Ae+"]"),tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],rt=-1,ot={};ot[R]=ot[L]=ot[I]=ot[D]=ot[F]=ot[z]=ot[j]=ot[W]=ot[B]=!0,ot[m]=ot[g]=ot[M]=ot[v]=ot[O]=ot[y]=ot[b]=ot[x]=ot[w]=ot[k]=ot[_]=ot[A]=ot[C]=ot[P]=ot[N]=!1;var it={};it[m]=it[g]=it[M]=it[O]=it[v]=it[y]=it[R]=it[L]=it[I]=it[D]=it[F]=it[w]=it[k]=it[_]=it[A]=it[C]=it[P]=it[T]=it[z]=it[j]=it[W]=it[B]=!0,it[b]=it[x]=it[N]=!1;var at={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},st=parseFloat,lt=parseInt,ut="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ct="object"==typeof self&&self&&self.Object===Object&&self,dt=ut||ct||Function("return this")(),pt=t&&!t.nodeType&&t,ft=pt&&e&&!e.nodeType&&e,ht=ft&&ft.exports===pt,mt=ht&&ut.process,gt=function(){try{return ft&&ft.require&&ft.require("util").types||mt&&mt.binding&&mt.binding("util")}catch(e){}}(),vt=gt&>.isArrayBuffer,yt=gt&>.isDate,bt=gt&>.isMap,xt=gt&>.isRegExp,Et=gt&>.isSet,wt=gt&>.isTypedArray;function kt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function _t(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o-1}function Nt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r-1;);return n}function Jt(e,t){for(var n=e.length;n--&&jt(t,e[n],0)>-1;);return n}var en=Vt({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),tn=Vt({"&":"&","<":"<",">":">",'"':""","'":"'"});function nn(e){return"\\"+at[e]}function rn(e){return et.test(e)}function on(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function an(e,t){return function(n){return e(t(n))}}function sn(e,t){for(var n=-1,r=e.length,o=0,i=[];++n",""":'"',"'":"'"}),hn=function e(t){var n,r=(t=null==t?dt:hn.defaults(dt.Object(),t,hn.pick(dt,nt))).Array,oe=t.Date,Ee=t.Error,we=t.Function,ke=t.Math,_e=t.Object,Se=t.RegExp,Ae=t.String,Ce=t.TypeError,Pe=r.prototype,Te=we.prototype,Ne=_e.prototype,Me=t["__core-js_shared__"],Oe=Te.toString,Re=Ne.hasOwnProperty,Le=0,Ie=(n=/[^.]+$/.exec(Me&&Me.keys&&Me.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",De=Ne.toString,Fe=Oe.call(_e),ze=dt._,je=Se("^"+Oe.call(Re).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),We=ht?t.Buffer:o,Be=t.Symbol,Ue=t.Uint8Array,$e=We?We.allocUnsafe:o,Ve=an(_e.getPrototypeOf,_e),He=_e.create,qe=Ne.propertyIsEnumerable,Ge=Pe.splice,Xe=Be?Be.isConcatSpreadable:o,Ke=Be?Be.iterator:o,Ze=Be?Be.toStringTag:o,et=function(){try{var e=ui(_e,"defineProperty");return e({},"",{}),e}catch(e){}}(),at=t.clearTimeout!==dt.clearTimeout&&t.clearTimeout,ut=oe&&oe.now!==dt.Date.now&&oe.now,ct=t.setTimeout!==dt.setTimeout&&t.setTimeout,pt=ke.ceil,ft=ke.floor,mt=_e.getOwnPropertySymbols,gt=We?We.isBuffer:o,Dt=t.isFinite,Vt=Pe.join,mn=an(_e.keys,_e),gn=ke.max,vn=ke.min,yn=oe.now,bn=t.parseInt,xn=ke.random,En=Pe.reverse,wn=ui(t,"DataView"),kn=ui(t,"Map"),_n=ui(t,"Promise"),Sn=ui(t,"Set"),An=ui(t,"WeakMap"),Cn=ui(_e,"create"),Pn=An&&new An,Tn={},Nn=Fi(wn),Mn=Fi(kn),On=Fi(_n),Rn=Fi(Sn),Ln=Fi(An),In=Be?Be.prototype:o,Dn=In?In.valueOf:o,Fn=In?In.toString:o;function zn(e){if(es(e)&&!$a(e)&&!(e instanceof Un)){if(e instanceof Bn)return e;if(Re.call(e,"__wrapped__"))return zi(e)}return new Bn(e)}var jn=function(){function e(){}return function(t){if(!Ja(t))return{};if(He)return He(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function Wn(){}function Bn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function Un(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=f,this.__views__=[]}function $n(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function ar(e,t,n,r,i,a){var s,l=1&t,u=2&t,c=4&t;if(n&&(s=i?n(e,r,i,a):n(e)),s!==o)return s;if(!Ja(e))return e;var d=$a(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Re.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!l)return Co(e,s)}else{var p=pi(e),f=p==x||p==E;if(Ga(e))return Eo(e,l);if(p==_||p==m||f&&!i){if(s=u||f?{}:hi(e),!l)return u?function(e,t){return Po(e,di(e),t)}(e,function(e,t){return e&&Po(t,Ms(t),e)}(s,e)):function(e,t){return Po(e,ci(e),t)}(e,nr(s,e))}else{if(!it[p])return i?e:{};s=function(e,t,n){var r,o=e.constructor;switch(t){case M:return wo(e);case v:case y:return new o(+e);case O:return function(e,t){var n=t?wo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case R:case L:case I:case D:case F:case z:case j:case W:case B:return ko(e,n);case w:return new o;case k:case P:return new o(e);case A:return function(e){var t=new e.constructor(e.source,pe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case C:return new o;case T:return r=e,Dn?_e(Dn.call(r)):{}}}(e,p,l)}}a||(a=new Gn);var h=a.get(e);if(h)return h;a.set(e,s),is(e)?e.forEach((function(r){s.add(ar(r,t,n,r,e,a))})):ts(e)&&e.forEach((function(r,o){s.set(o,ar(r,t,n,o,e,a))}));var g=d?o:(c?u?ni:ti:u?Ms:Ns)(e);return St(g||e,(function(r,o){g&&(r=e[o=r]),Jn(s,o,ar(r,t,n,o,e,a))})),s}function sr(e,t,n){var r=n.length;if(null==e)return!r;for(e=_e(e);r--;){var i=n[r],a=t[i],s=e[i];if(s===o&&!(i in e)||!a(s))return!1}return!0}function lr(e,t,n){if("function"!=typeof e)throw new Ce(i);return Pi((function(){e.apply(o,n)}),t)}function ur(e,t,n,r){var o=-1,i=Tt,a=!0,s=e.length,l=[],u=t.length;if(!s)return l;n&&(t=Mt(t,Kt(n))),r?(i=Nt,a=!1):t.length>=200&&(i=Qt,a=!1,t=new qn(t));e:for(;++o-1},Vn.prototype.set=function(e,t){var n=this.__data__,r=er(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Hn.prototype.clear=function(){this.size=0,this.__data__={hash:new $n,map:new(kn||Vn),string:new $n}},Hn.prototype.delete=function(e){var t=si(this,e).delete(e);return this.size-=t?1:0,t},Hn.prototype.get=function(e){return si(this,e).get(e)},Hn.prototype.has=function(e){return si(this,e).has(e)},Hn.prototype.set=function(e,t){var n=si(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},qn.prototype.add=qn.prototype.push=function(e){return this.__data__.set(e,a),this},qn.prototype.has=function(e){return this.__data__.has(e)},Gn.prototype.clear=function(){this.__data__=new Vn,this.size=0},Gn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Gn.prototype.get=function(e){return this.__data__.get(e)},Gn.prototype.has=function(e){return this.__data__.has(e)},Gn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Vn){var r=n.__data__;if(!kn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Hn(r)}return n.set(e,t),this.size=n.size,this};var cr=Mo(yr),dr=Mo(br,!0);function pr(e,t){var n=!0;return cr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function fr(e,t,n){for(var r=-1,i=e.length;++r0&&n(s)?t>1?mr(s,t-1,n,r,o):Ot(o,s):r||(o[o.length]=s)}return o}var gr=Oo(),vr=Oo(!0);function yr(e,t){return e&&gr(e,t,Ns)}function br(e,t){return e&&vr(e,t,Ns)}function xr(e,t){return Pt(t,(function(t){return Ya(e[t])}))}function Er(e,t){for(var n=0,r=(t=vo(t,e)).length;null!=e&&nt}function Sr(e,t){return null!=e&&Re.call(e,t)}function Ar(e,t){return null!=e&&t in _e(e)}function Cr(e,t,n){for(var i=n?Nt:Tt,a=e[0].length,s=e.length,l=s,u=r(s),c=1/0,d=[];l--;){var p=e[l];l&&t&&(p=Mt(p,Kt(t))),c=vn(p.length,c),u[l]=!n&&(t||a>=120&&p.length>=120)?new qn(l&&p):o}p=e[0];var f=-1,h=u[0];e:for(;++f=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}));r--;)e[r]=e[r].value;return e}(o)}function Ur(e,t,n){for(var r=-1,o=t.length,i={};++r-1;)s!==e&&Ge.call(s,l,1),Ge.call(e,l,1);return e}function Vr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;gi(o)?Ge.call(e,o,1):lo(e,o)}}return e}function Hr(e,t){return e+ft(xn()*(t-e+1))}function qr(e,t){var n="";if(!e||t<1||t>d)return n;do{t%2&&(n+=e),(t=ft(t/2))&&(e+=e)}while(t);return n}function Gr(e,t){return Ti(_i(e,t,nl),e+"")}function Xr(e){return Kn(js(e))}function Kr(e,t){var n=js(e);return Oi(n,ir(t,0,n.length))}function Yr(e,t,n,r){if(!Ja(e))return e;for(var i=-1,a=(t=vo(t,e)).length,s=a-1,l=e;null!=l&&++ii?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=r(i);++o>>1,a=e[i];null!==a&&!ss(a)&&(n?a<=t:a=200){var u=t?null:Go(e);if(u)return ln(u);a=!1,o=Qt,l=new qn}else l=t?[]:s;e:for(;++r=r?e:eo(e,t,n)}var xo=at||function(e){return dt.clearTimeout(e)};function Eo(e,t){if(t)return e.slice();var n=e.length,r=$e?$e(n):new e.constructor(n);return e.copy(r),r}function wo(e){var t=new e.constructor(e.byteLength);return new Ue(t).set(new Ue(e)),t}function ko(e,t){var n=t?wo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function _o(e,t){if(e!==t){var n=e!==o,r=null===e,i=e==e,a=ss(e),s=t!==o,l=null===t,u=t==t,c=ss(t);if(!l&&!c&&!a&&e>t||a&&s&&u&&!l&&!c||r&&s&&u||!n&&u||!i)return 1;if(!r&&!a&&!c&&e1?n[i-1]:o,s=i>2?n[2]:o;for(a=e.length>3&&"function"==typeof a?(i--,a):o,s&&vi(n[0],n[1],s)&&(a=i<3?o:a,i=1),t=_e(t);++r-1?i[a?t[s]:s]:o}}function Fo(e){return ei((function(t){var n=t.length,r=n,a=Bn.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new Ce(i);if(a&&!l&&"wrapper"==oi(s))var l=new Bn([],!0)}for(r=l?r:n;++r1&&x.reverse(),f&&dl))return!1;var c=a.get(e),d=a.get(t);if(c&&d)return c==t&&d==e;var p=-1,f=!0,h=2&n?new qn:o;for(a.set(e,t),a.set(t,e);++p-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ie,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return St(h,(function(n){var r="_."+n[0];t&n[1]&&!Tt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(se):[]}(r),n)))}function Mi(e){var t=0,n=0;return function(){var r=yn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Oi(e,t){var n=-1,r=e.length,i=r-1;for(t=t===o?r:t;++n1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,oa(e,n)}));function da(e){var t=zn(e);return t.__chain__=!0,t}function pa(e,t){return t(e)}var fa=ei((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return or(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Un&&gi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:pa,args:[i],thisArg:o}),new Bn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(i)})),ha=To((function(e,t,n){Re.call(e,n)?++e[n]:rr(e,n,1)})),ma=Do(Ui),ga=Do($i);function va(e,t){return($a(e)?St:cr)(e,ai(t,3))}function ya(e,t){return($a(e)?At:dr)(e,ai(t,3))}var ba=To((function(e,t,n){Re.call(e,n)?e[n].push(t):rr(e,n,[t])})),xa=Gr((function(e,t,n){var o=-1,i="function"==typeof t,a=Ha(e)?r(e.length):[];return cr(e,(function(e){a[++o]=i?kt(t,e,n):Pr(e,t,n)})),a})),Ea=To((function(e,t,n){rr(e,n,t)}));function wa(e,t){return($a(e)?Mt:Dr)(e,ai(t,3))}var ka=To((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),_a=Gr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&vi(e,t[0],t[1])?t=[]:n>2&&vi(t[0],t[1],t[2])&&(t=[t[0]]),Br(e,mr(t,1),[])})),Sa=ut||function(){return dt.Date.now()};function Aa(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,Ko(e,u,o,o,o,o,t)}function Ca(e,t){var n;if("function"!=typeof t)throw new Ce(i);return e=fs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var Pa=Gr((function(e,t,n){var r=1;if(n.length){var o=sn(n,ii(Pa));r|=l}return Ko(e,r,t,n,o)})),Ta=Gr((function(e,t,n){var r=3;if(n.length){var o=sn(n,ii(Ta));r|=l}return Ko(t,r,e,n,o)}));function Na(e,t,n){var r,a,s,l,u,c,d=0,p=!1,f=!1,h=!0;if("function"!=typeof e)throw new Ce(i);function m(t){var n=r,i=a;return r=a=o,d=t,l=e.apply(i,n)}function g(e){var n=e-c;return c===o||n>=t||n<0||f&&e-d>=s}function v(){var e=Sa();if(g(e))return y(e);u=Pi(v,function(e){var n=t-(e-c);return f?vn(n,s-(e-d)):n}(e))}function y(e){return u=o,h&&r?m(e):(r=a=o,l)}function b(){var e=Sa(),n=g(e);if(r=arguments,a=this,c=e,n){if(u===o)return function(e){return d=e,u=Pi(v,t),p?m(e):l}(c);if(f)return xo(u),u=Pi(v,t),m(c)}return u===o&&(u=Pi(v,t)),l}return t=ms(t)||0,Ja(n)&&(p=!!n.leading,s=(f="maxWait"in n)?gn(ms(n.maxWait)||0,t):s,h="trailing"in n?!!n.trailing:h),b.cancel=function(){u!==o&&xo(u),d=0,r=c=a=u=o},b.flush=function(){return u===o?l:y(Sa())},b}var Ma=Gr((function(e,t){return lr(e,1,t)})),Oa=Gr((function(e,t,n){return lr(e,ms(t)||0,n)}));function Ra(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ce(i);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Ra.Cache||Hn),n}function La(e){if("function"!=typeof e)throw new Ce(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ra.Cache=Hn;var Ia=yo((function(e,t){var n=(t=1==t.length&&$a(t[0])?Mt(t[0],Kt(ai())):Mt(mr(t,1),Kt(ai()))).length;return Gr((function(r){for(var o=-1,i=vn(r.length,n);++o=t})),Ua=Tr(function(){return arguments}())?Tr:function(e){return es(e)&&Re.call(e,"callee")&&!qe.call(e,"callee")},$a=r.isArray,Va=vt?Kt(vt):function(e){return es(e)&&kr(e)==M};function Ha(e){return null!=e&&Za(e.length)&&!Ya(e)}function qa(e){return es(e)&&Ha(e)}var Ga=gt||ml,Xa=yt?Kt(yt):function(e){return es(e)&&kr(e)==y};function Ka(e){if(!es(e))return!1;var t=kr(e);return t==b||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!rs(e)}function Ya(e){if(!Ja(e))return!1;var t=kr(e);return t==x||t==E||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Qa(e){return"number"==typeof e&&e==fs(e)}function Za(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=d}function Ja(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function es(e){return null!=e&&"object"==typeof e}var ts=bt?Kt(bt):function(e){return es(e)&&pi(e)==w};function ns(e){return"number"==typeof e||es(e)&&kr(e)==k}function rs(e){if(!es(e)||kr(e)!=_)return!1;var t=Ve(e);if(null===t)return!0;var n=Re.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Oe.call(n)==Fe}var os=xt?Kt(xt):function(e){return es(e)&&kr(e)==A},is=Et?Kt(Et):function(e){return es(e)&&pi(e)==C};function as(e){return"string"==typeof e||!$a(e)&&es(e)&&kr(e)==P}function ss(e){return"symbol"==typeof e||es(e)&&kr(e)==T}var ls=wt?Kt(wt):function(e){return es(e)&&Za(e.length)&&!!ot[kr(e)]},us=Vo(Ir),cs=Vo((function(e,t){return e<=t}));function ds(e){if(!e)return[];if(Ha(e))return as(e)?dn(e):Co(e);if(Ke&&e[Ke])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ke]());var t=pi(e);return(t==w?on:t==C?ln:js)(e)}function ps(e){return e?(e=ms(e))===c||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function fs(e){var t=ps(e),n=t%1;return t==t?n?t-n:t:0}function hs(e){return e?ir(fs(e),0,f):0}function ms(e){if("number"==typeof e)return e;if(ss(e))return p;if(Ja(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ja(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Xt(e);var n=he.test(e);return n||ge.test(e)?lt(e.slice(2),n?2:8):fe.test(e)?p:+e}function gs(e){return Po(e,Ms(e))}function vs(e){return null==e?"":ao(e)}var ys=No((function(e,t){if(Ei(t)||Ha(t))Po(t,Ns(t),e);else for(var n in t)Re.call(t,n)&&Jn(e,n,t[n])})),bs=No((function(e,t){Po(t,Ms(t),e)})),xs=No((function(e,t,n,r){Po(t,Ms(t),e,r)})),Es=No((function(e,t,n,r){Po(t,Ns(t),e,r)})),ws=ei(or),ks=Gr((function(e,t){e=_e(e);var n=-1,r=t.length,i=r>2?t[2]:o;for(i&&vi(t[0],t[1],i)&&(r=1);++n1),t})),Po(e,ni(e),n),r&&(n=ar(n,7,Zo));for(var o=t.length;o--;)lo(n,t[o]);return n})),Is=ei((function(e,t){return null==e?{}:function(e,t){return Ur(e,t,(function(t,n){return As(e,n)}))}(e,t)}));function Ds(e,t){if(null==e)return{};var n=Mt(ni(e),(function(e){return[e]}));return t=ai(t),Ur(e,n,(function(e,n){return t(e,n[0])}))}var Fs=Xo(Ns),zs=Xo(Ms);function js(e){return null==e?[]:Yt(e,Ns(e))}var Ws=Lo((function(e,t,n){return t=t.toLowerCase(),e+(n?Bs(t):t)}));function Bs(e){return Ks(vs(e).toLowerCase())}function Us(e){return(e=vs(e))&&e.replace(ye,en).replace(Qe,"")}var $s=Lo((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Vs=Lo((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Hs=Ro("toLowerCase"),qs=Lo((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Gs=Lo((function(e,t,n){return e+(n?" ":"")+Ks(t)})),Xs=Lo((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Ks=Ro("toUpperCase");function Ys(e,t,n){return e=vs(e),(t=n?o:t)===o?function(e){return tt.test(e)}(e)?function(e){return e.match(Je)||[]}(e):function(e){return e.match(le)||[]}(e):e.match(t)||[]}var Qs=Gr((function(e,t){try{return kt(e,o,t)}catch(e){return Ka(e)?e:new Ee(e)}})),Zs=ei((function(e,t){return St(t,(function(t){t=Di(t),rr(e,t,Pa(e[t],e))})),e}));function Js(e){return function(){return e}}var el=Fo(),tl=Fo(!0);function nl(e){return e}function rl(e){return Rr("function"==typeof e?e:ar(e,1))}var ol=Gr((function(e,t){return function(n){return Pr(n,e,t)}})),il=Gr((function(e,t){return function(n){return Pr(e,n,t)}}));function al(e,t,n){var r=Ns(t),o=xr(t,r);null!=n||Ja(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=xr(t,Ns(t)));var i=!(Ja(n)&&"chain"in n&&!n.chain),a=Ya(e);return St(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=Co(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Ot([this.value()],arguments))})})),e}function sl(){}var ll=Bo(Mt),ul=Bo(Ct),cl=Bo(It);function dl(e){return yi(e)?$t(Di(e)):function(e){return function(t){return Er(t,e)}}(e)}var pl=$o(),fl=$o(!0);function hl(){return[]}function ml(){return!1}var gl,vl=Wo((function(e,t){return e+t}),0),yl=qo("ceil"),bl=Wo((function(e,t){return e/t}),1),xl=qo("floor"),El=Wo((function(e,t){return e*t}),1),wl=qo("round"),kl=Wo((function(e,t){return e-t}),0);return zn.after=function(e,t){if("function"!=typeof t)throw new Ce(i);return e=fs(e),function(){if(--e<1)return t.apply(this,arguments)}},zn.ary=Aa,zn.assign=ys,zn.assignIn=bs,zn.assignInWith=xs,zn.assignWith=Es,zn.at=ws,zn.before=Ca,zn.bind=Pa,zn.bindAll=Zs,zn.bindKey=Ta,zn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return $a(e)?e:[e]},zn.chain=da,zn.chunk=function(e,t,n){t=(n?vi(e,t,n):t===o)?1:gn(fs(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,s=0,l=r(pt(i/t));ai?0:i+n),(r=r===o||r>i?i:fs(r))<0&&(r+=i),r=n>r?0:hs(r);n>>0)?(e=vs(e))&&("string"==typeof t||null!=t&&!os(t))&&!(t=ao(t))&&rn(e)?bo(dn(e),0,n):e.split(t,n):[]},zn.spread=function(e,t){if("function"!=typeof e)throw new Ce(i);return t=null==t?0:gn(fs(t),0),Gr((function(n){var r=n[t],o=bo(n,0,t);return r&&Ot(o,r),kt(e,this,o)}))},zn.tail=function(e){var t=null==e?0:e.length;return t?eo(e,1,t):[]},zn.take=function(e,t,n){return e&&e.length?eo(e,0,(t=n||t===o?1:fs(t))<0?0:t):[]},zn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?eo(e,(t=r-(t=n||t===o?1:fs(t)))<0?0:t,r):[]},zn.takeRightWhile=function(e,t){return e&&e.length?co(e,ai(t,3),!1,!0):[]},zn.takeWhile=function(e,t){return e&&e.length?co(e,ai(t,3)):[]},zn.tap=function(e,t){return t(e),e},zn.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new Ce(i);return Ja(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Na(e,t,{leading:r,maxWait:t,trailing:o})},zn.thru=pa,zn.toArray=ds,zn.toPairs=Fs,zn.toPairsIn=zs,zn.toPath=function(e){return $a(e)?Mt(e,Di):ss(e)?[e]:Co(Ii(vs(e)))},zn.toPlainObject=gs,zn.transform=function(e,t,n){var r=$a(e),o=r||Ga(e)||ls(e);if(t=ai(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:Ja(e)&&Ya(i)?jn(Ve(e)):{}}return(o?St:yr)(e,(function(e,r,o){return t(n,e,r,o)})),n},zn.unary=function(e){return Aa(e,1)},zn.union=ea,zn.unionBy=ta,zn.unionWith=na,zn.uniq=function(e){return e&&e.length?so(e):[]},zn.uniqBy=function(e,t){return e&&e.length?so(e,ai(t,2)):[]},zn.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?so(e,o,t):[]},zn.unset=function(e,t){return null==e||lo(e,t)},zn.unzip=ra,zn.unzipWith=oa,zn.update=function(e,t,n){return null==e?e:uo(e,t,go(n))},zn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:uo(e,t,go(n),r)},zn.values=js,zn.valuesIn=function(e){return null==e?[]:Yt(e,Ms(e))},zn.without=ia,zn.words=Ys,zn.wrap=function(e,t){return Da(go(t),e)},zn.xor=aa,zn.xorBy=sa,zn.xorWith=la,zn.zip=ua,zn.zipObject=function(e,t){return ho(e||[],t||[],Jn)},zn.zipObjectDeep=function(e,t){return ho(e||[],t||[],Yr)},zn.zipWith=ca,zn.entries=Fs,zn.entriesIn=zs,zn.extend=bs,zn.extendWith=xs,al(zn,zn),zn.add=vl,zn.attempt=Qs,zn.camelCase=Ws,zn.capitalize=Bs,zn.ceil=yl,zn.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=ms(n))==n?n:0),t!==o&&(t=(t=ms(t))==t?t:0),ir(ms(e),t,n)},zn.clone=function(e){return ar(e,4)},zn.cloneDeep=function(e){return ar(e,5)},zn.cloneDeepWith=function(e,t){return ar(e,5,t="function"==typeof t?t:o)},zn.cloneWith=function(e,t){return ar(e,4,t="function"==typeof t?t:o)},zn.conformsTo=function(e,t){return null==t||sr(e,t,Ns(t))},zn.deburr=Us,zn.defaultTo=function(e,t){return null==e||e!=e?t:e},zn.divide=bl,zn.endsWith=function(e,t,n){e=vs(e),t=ao(t);var r=e.length,i=n=n===o?r:ir(fs(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},zn.eq=ja,zn.escape=function(e){return(e=vs(e))&&X.test(e)?e.replace(q,tn):e},zn.escapeRegExp=function(e){return(e=vs(e))&&ne.test(e)?e.replace(te,"\\$&"):e},zn.every=function(e,t,n){var r=$a(e)?Ct:pr;return n&&vi(e,t,n)&&(t=o),r(e,ai(t,3))},zn.find=ma,zn.findIndex=Ui,zn.findKey=function(e,t){return Ft(e,ai(t,3),yr)},zn.findLast=ga,zn.findLastIndex=$i,zn.findLastKey=function(e,t){return Ft(e,ai(t,3),br)},zn.floor=xl,zn.forEach=va,zn.forEachRight=ya,zn.forIn=function(e,t){return null==e?e:gr(e,ai(t,3),Ms)},zn.forInRight=function(e,t){return null==e?e:vr(e,ai(t,3),Ms)},zn.forOwn=function(e,t){return e&&yr(e,ai(t,3))},zn.forOwnRight=function(e,t){return e&&br(e,ai(t,3))},zn.get=Ss,zn.gt=Wa,zn.gte=Ba,zn.has=function(e,t){return null!=e&&fi(e,t,Sr)},zn.hasIn=As,zn.head=Hi,zn.identity=nl,zn.includes=function(e,t,n,r){e=Ha(e)?e:js(e),n=n&&!r?fs(n):0;var o=e.length;return n<0&&(n=gn(o+n,0)),as(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&jt(e,t,n)>-1},zn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:fs(n);return o<0&&(o=gn(r+o,0)),jt(e,t,o)},zn.inRange=function(e,t,n){return t=ps(t),n===o?(n=t,t=0):n=ps(n),function(e,t,n){return e>=vn(t,n)&&e=-9007199254740991&&e<=d},zn.isSet=is,zn.isString=as,zn.isSymbol=ss,zn.isTypedArray=ls,zn.isUndefined=function(e){return e===o},zn.isWeakMap=function(e){return es(e)&&pi(e)==N},zn.isWeakSet=function(e){return es(e)&&"[object WeakSet]"==kr(e)},zn.join=function(e,t){return null==e?"":Vt.call(e,t)},zn.kebabCase=$s,zn.last=Ki,zn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=fs(n))<0?gn(r+i,0):vn(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):zt(e,Bt,i,!0)},zn.lowerCase=Vs,zn.lowerFirst=Hs,zn.lt=us,zn.lte=cs,zn.max=function(e){return e&&e.length?fr(e,nl,_r):o},zn.maxBy=function(e,t){return e&&e.length?fr(e,ai(t,2),_r):o},zn.mean=function(e){return Ut(e,nl)},zn.meanBy=function(e,t){return Ut(e,ai(t,2))},zn.min=function(e){return e&&e.length?fr(e,nl,Ir):o},zn.minBy=function(e,t){return e&&e.length?fr(e,ai(t,2),Ir):o},zn.stubArray=hl,zn.stubFalse=ml,zn.stubObject=function(){return{}},zn.stubString=function(){return""},zn.stubTrue=function(){return!0},zn.multiply=El,zn.nth=function(e,t){return e&&e.length?Wr(e,fs(t)):o},zn.noConflict=function(){return dt._===this&&(dt._=ze),this},zn.noop=sl,zn.now=Sa,zn.pad=function(e,t,n){e=vs(e);var r=(t=fs(t))?cn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Uo(ft(o),n)+e+Uo(pt(o),n)},zn.padEnd=function(e,t,n){e=vs(e);var r=(t=fs(t))?cn(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var i=xn();return vn(e+i*(t-e+st("1e-"+((i+"").length-1))),t)}return Hr(e,t)},zn.reduce=function(e,t,n){var r=$a(e)?Rt:Ht,o=arguments.length<3;return r(e,ai(t,4),n,o,cr)},zn.reduceRight=function(e,t,n){var r=$a(e)?Lt:Ht,o=arguments.length<3;return r(e,ai(t,4),n,o,dr)},zn.repeat=function(e,t,n){return t=(n?vi(e,t,n):t===o)?1:fs(t),qr(vs(e),t)},zn.replace=function(){var e=arguments,t=vs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},zn.result=function(e,t,n){var r=-1,i=(t=vo(t,e)).length;for(i||(i=1,e=o);++rd)return[];var n=f,r=vn(e,f);t=ai(t),e-=f;for(var o=Gt(r,t);++n=a)return e;var l=n-cn(r);if(l<1)return r;var u=s?bo(s,0,l).join(""):e.slice(0,l);if(i===o)return u+r;if(s&&(l+=u.length-l),os(i)){if(e.slice(l).search(i)){var c,d=u;for(i.global||(i=Se(i.source,vs(pe.exec(i))+"g")),i.lastIndex=0;c=i.exec(d);)var p=c.index;u=u.slice(0,p===o?l:p)}}else if(e.indexOf(ao(i),l)!=l){var f=u.lastIndexOf(i);f>-1&&(u=u.slice(0,f))}return u+r},zn.unescape=function(e){return(e=vs(e))&&G.test(e)?e.replace(H,fn):e},zn.uniqueId=function(e){var t=++Le;return vs(e)+t},zn.upperCase=Xs,zn.upperFirst=Ks,zn.each=va,zn.eachRight=ya,zn.first=Hi,al(zn,(gl={},yr(zn,(function(e,t){Re.call(zn.prototype,t)||(gl[t]=e)})),gl),{chain:!1}),zn.VERSION="4.17.21",St(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){zn[e].placeholder=zn})),St(["drop","take"],(function(e,t){Un.prototype[e]=function(n){n=n===o?1:gn(fs(n),0);var r=this.__filtered__&&!t?new Un(this):this.clone();return r.__filtered__?r.__takeCount__=vn(n,r.__takeCount__):r.__views__.push({size:vn(n,f),type:e+(r.__dir__<0?"Right":"")}),r},Un.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),St(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Un.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ai(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),St(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Un.prototype[e]=function(){return this[n](1).value()[0]}})),St(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Un.prototype[e]=function(){return this.__filtered__?new Un(this):this[n](1)}})),Un.prototype.compact=function(){return this.filter(nl)},Un.prototype.find=function(e){return this.filter(e).head()},Un.prototype.findLast=function(e){return this.reverse().find(e)},Un.prototype.invokeMap=Gr((function(e,t){return"function"==typeof e?new Un(this):this.map((function(n){return Pr(n,e,t)}))})),Un.prototype.reject=function(e){return this.filter(La(ai(e)))},Un.prototype.slice=function(e,t){e=fs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Un(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=fs(t))<0?n.dropRight(-t):n.take(t-e)),n)},Un.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Un.prototype.toArray=function(){return this.take(f)},yr(Un.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=zn[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);i&&(zn.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,l=t instanceof Un,u=s[0],c=l||$a(t),d=function(e){var t=i.apply(zn,Ot([e],s));return r&&p?t[0]:t};c&&n&&"function"==typeof u&&1!=u.length&&(l=c=!1);var p=this.__chain__,f=!!this.__actions__.length,h=a&&!p,m=l&&!f;if(!a&&c){t=m?t:new Un(this);var g=e.apply(t,s);return g.__actions__.push({func:pa,args:[d],thisArg:o}),new Bn(g,p)}return h&&m?e.apply(this,s):(g=this.thru(d),h?r?g.value()[0]:g.value():g)})})),St(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Pe[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);zn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply($a(o)?o:[],e)}return this[n]((function(n){return t.apply($a(n)?n:[],e)}))}})),yr(Un.prototype,(function(e,t){var n=zn[t];if(n){var r=n.name+"";Re.call(Tn,r)||(Tn[r]=[]),Tn[r].push({name:t,func:n})}})),Tn[zo(o,2).name]=[{name:"wrapper",func:o}],Un.prototype.clone=function(){var e=new Un(this.__wrapped__);return e.__actions__=Co(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Co(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Co(this.__views__),e},Un.prototype.reverse=function(){if(this.__filtered__){var e=new Un(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Un.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=$a(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},zn.prototype.plant=function(e){for(var t,n=this;n instanceof Wn;){var r=zi(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},zn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Un){var t=e;return this.__actions__.length&&(t=new Un(this)),(t=t.reverse()).__actions__.push({func:pa,args:[Ji],thisArg:o}),new Bn(t,this.__chain__)}return this.thru(Ji)},zn.prototype.toJSON=zn.prototype.valueOf=zn.prototype.value=function(){return po(this.__wrapped__,this.__actions__)},zn.prototype.first=zn.prototype.head,Ke&&(zn.prototype[Ke]=function(){return this}),zn}();dt._=hn,(r=function(){return hn}.call(t,n,t,e))===o||(e.exports=r)}.call(this)},5378:(e,t,n)=>{var r=n(4932),o=n(5389),i=n(5128),a=n(6449);e.exports=function(e,t){return(a(e)?r:i)(e,o(t,3))}},104:(e,t,n)=>{var r=n(3661);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},583:(e,t,n)=>{var r=n(7237),o=n(7255),i=n(8586),a=n(7797);e.exports=function(e){return i(e)?r(a(e)):o(e)}},3345:e=>{e.exports=function(){return[]}},9935:e=>{e.exports=function(){return!1}},3222:(e,t,n)=>{var r=n(7556);e.exports=function(e){return null==e?"":r(e)}},1840:e=>{var t=Element.prototype,n=t.matchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector;e.exports=function(e,t){if(n)return n.call(e,t);for(var r=e.parentNode.querySelectorAll(t),o=0;o{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var i,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l{e.exports=n(8802)},8802:(e,t,n)=>{e.exports={Heap:n(5731),Node:n(6414),Grid:n(4666),Util:n(6154),DiagonalMovement:n(2744),Heuristic:n(5512),AStarFinder:n(8871),BestFirstFinder:n(6568),BreadthFirstFinder:n(2770),DijkstraFinder:n(6872),BiAStarFinder:n(1464),BiBestFirstFinder:n(3699),BiBreadthFirstFinder:n(519),BiDijkstraFinder:n(1733),IDAStarFinder:n(1500),JumpPointFinder:n(5358)}},2744:e=>{e.exports={Always:1,Never:2,IfAtMostOneObstacle:3,OnlyWhenNoObstacles:4}},4666:(e,t,n)=>{var r=n(6414),o=n(2744);function i(e,t,n){var r;"object"!=typeof e?r=e:(t=e.length,r=e[0].length,n=e),this.width=r,this.height=t,this.nodes=this._buildNodes(r,t,n)}i.prototype._buildNodes=function(e,t,n){var o,i,a=new Array(t);for(o=0;o=0&&e=0&&t{e.exports={manhattan:function(e,t){return e+t},euclidean:function(e,t){return Math.sqrt(e*e+t*t)},octile:function(e,t){var n=Math.SQRT2-1;return e{e.exports=function(e,t,n){this.x=e,this.y=t,this.walkable=void 0===n||n}},6154:(e,t)=>{function n(e){for(var t=[[e.x,e.y]];e.parent;)e=e.parent,t.push([e.x,e.y]);return t.reverse()}function r(e,t,n,r){var o,i,a,s,l,u,c=Math.abs,d=[];for(o=e-s&&(l-=s,e+=o),u{var r=n(5731),o=n(6154),i=n(5512),a=n(2744);function s(e){e=e||{},this.allowDiagonal=e.allowDiagonal,this.dontCrossCorners=e.dontCrossCorners,this.heuristic=e.heuristic||i.manhattan,this.weight=e.weight||1,this.diagonalMovement=e.diagonalMovement,this.diagonalMovement||(this.allowDiagonal?this.dontCrossCorners?this.diagonalMovement=a.OnlyWhenNoObstacles:this.diagonalMovement=a.IfAtMostOneObstacle:this.diagonalMovement=a.Never),this.diagonalMovement===a.Never?this.heuristic=e.heuristic||i.manhattan:this.heuristic=e.heuristic||i.octile}s.prototype.findPath=function(e,t,n,i,a){var s,l,u,c,d,p,f,h,m=new r((function(e,t){return e.f-t.f})),g=a.getNodeAt(e,t),v=a.getNodeAt(n,i),y=this.heuristic,b=this.diagonalMovement,x=this.weight,E=Math.abs,w=Math.SQRT2;for(g.g=0,g.f=0,m.push(g),g.opened=!0;!m.empty();){if((s=m.pop()).closed=!0,s===v)return o.backtrace(v);for(c=0,d=(l=a.getNeighbors(s,b)).length;c{var r=n(8871);function o(e){r.call(this,e);var t=this.heuristic;this.heuristic=function(e,n){return 1e6*t(e,n)}}o.prototype=new r,o.prototype.constructor=o,e.exports=o},1464:(e,t,n)=>{var r=n(5731),o=n(6154),i=n(5512),a=n(2744);function s(e){e=e||{},this.allowDiagonal=e.allowDiagonal,this.dontCrossCorners=e.dontCrossCorners,this.diagonalMovement=e.diagonalMovement,this.heuristic=e.heuristic||i.manhattan,this.weight=e.weight||1,this.diagonalMovement||(this.allowDiagonal?this.dontCrossCorners?this.diagonalMovement=a.OnlyWhenNoObstacles:this.diagonalMovement=a.IfAtMostOneObstacle:this.diagonalMovement=a.Never),this.diagonalMovement===a.Never?this.heuristic=e.heuristic||i.manhattan:this.heuristic=e.heuristic||i.octile}s.prototype.findPath=function(e,t,n,i,a){var s,l,u,c,d,p,f,h,m=function(e,t){return e.f-t.f},g=new r(m),v=new r(m),y=a.getNodeAt(e,t),b=a.getNodeAt(n,i),x=this.heuristic,E=this.diagonalMovement,w=this.weight,k=Math.abs,_=Math.SQRT2;for(y.g=0,y.f=0,g.push(y),y.opened=1,b.g=0,b.f=0,v.push(b),b.opened=2;!g.empty()&&!v.empty();){for((s=g.pop()).closed=!0,c=0,d=(l=a.getNeighbors(s,E)).length;c{var r=n(1464);function o(e){r.call(this,e);var t=this.heuristic;this.heuristic=function(e,n){return 1e6*t(e,n)}}o.prototype=new r,o.prototype.constructor=o,e.exports=o},519:(e,t,n)=>{var r=n(6154),o=n(2744);function i(e){e=e||{},this.allowDiagonal=e.allowDiagonal,this.dontCrossCorners=e.dontCrossCorners,this.diagonalMovement=e.diagonalMovement,this.diagonalMovement||(this.allowDiagonal?this.dontCrossCorners?this.diagonalMovement=o.OnlyWhenNoObstacles:this.diagonalMovement=o.IfAtMostOneObstacle:this.diagonalMovement=o.Never)}i.prototype.findPath=function(e,t,n,o,i){var a,s,l,u,c,d=i.getNodeAt(e,t),p=i.getNodeAt(n,o),f=[],h=[],m=this.diagonalMovement;for(f.push(d),d.opened=!0,d.by=0,h.push(p),p.opened=!0,p.by=1;f.length&&h.length;){for((l=f.shift()).closed=!0,u=0,c=(a=i.getNeighbors(l,m)).length;u{var r=n(1464);function o(e){r.call(this,e),this.heuristic=function(e,t){return 0}}o.prototype=new r,o.prototype.constructor=o,e.exports=o},2770:(e,t,n)=>{var r=n(6154),o=n(2744);function i(e){e=e||{},this.allowDiagonal=e.allowDiagonal,this.dontCrossCorners=e.dontCrossCorners,this.diagonalMovement=e.diagonalMovement,this.diagonalMovement||(this.allowDiagonal?this.dontCrossCorners?this.diagonalMovement=o.OnlyWhenNoObstacles:this.diagonalMovement=o.IfAtMostOneObstacle:this.diagonalMovement=o.Never)}i.prototype.findPath=function(e,t,n,o,i){var a,s,l,u,c,d=[],p=this.diagonalMovement,f=i.getNodeAt(e,t),h=i.getNodeAt(n,o);for(d.push(f),f.opened=!0;d.length;){if((l=d.shift()).closed=!0,l===h)return r.backtrace(h);for(u=0,c=(a=i.getNeighbors(l,p)).length;u{var r=n(8871);function o(e){r.call(this,e),this.heuristic=function(e,t){return 0}}o.prototype=new r,o.prototype.constructor=o,e.exports=o},1500:(e,t,n)=>{n(6154);var r=n(5512),o=n(6414),i=n(2744);function a(e){e=e||{},this.allowDiagonal=e.allowDiagonal,this.dontCrossCorners=e.dontCrossCorners,this.diagonalMovement=e.diagonalMovement,this.heuristic=e.heuristic||r.manhattan,this.weight=e.weight||1,this.trackRecursion=e.trackRecursion||!1,this.timeLimit=e.timeLimit||1/0,this.diagonalMovement||(this.allowDiagonal?this.dontCrossCorners?this.diagonalMovement=i.OnlyWhenNoObstacles:this.diagonalMovement=i.IfAtMostOneObstacle:this.diagonalMovement=i.Never),this.diagonalMovement===i.Never?this.heuristic=e.heuristic||r.manhattan:this.heuristic=e.heuristic||r.octile}a.prototype.findPath=function(e,t,n,r,i){var a,s,l,u=(new Date).getTime(),c=function(e,t){return this.heuristic(Math.abs(t.x-e.x),Math.abs(t.y-e.y))}.bind(this),d=function(e,t,n,r,a){if(this.timeLimit>0&&(new Date).getTime()-u>1e3*this.timeLimit)return 1/0;var s,l,p,h,m=t+c(e,f)*this.weight;if(m>n)return m;if(e==f)return r[a]=[e.x,e.y],e;var g,v,y=i.getNeighbors(e,this.diagonalMovement);for(p=0,s=1/0;h=y[p];++p){if(this.trackRecursion&&(h.retainCount=h.retainCount+1||1,!0!==h.tested&&(h.tested=!0)),(l=d(h,t+(v=h,(g=e).x===v.x||g.y===v.y?1:Math.SQRT2),n,r,a+1))instanceof o)return r[a]=[e.x,e.y],l;this.trackRecursion&&0==--h.retainCount&&(h.tested=!1),l{var r=n(9799),o=n(2744);function i(e){r.call(this,e)}i.prototype=new r,i.prototype.constructor=i,i.prototype._jump=function(e,t,n,r){var o=this.grid,i=e-n,a=t-r;if(!o.isWalkableAt(e,t))return null;if(!0===this.trackJumpRecursion&&(o.getNodeAt(e,t).tested=!0),o.getNodeAt(e,t)===this.endNode)return[e,t];if(0!==i&&0!==a){if(o.isWalkableAt(e-i,t+a)&&!o.isWalkableAt(e-i,t)||o.isWalkableAt(e+i,t-a)&&!o.isWalkableAt(e,t-a))return[e,t];if(this._jump(e+i,t,e,t)||this._jump(e,t+a,e,t))return[e,t]}else if(0!==i){if(o.isWalkableAt(e+i,t+1)&&!o.isWalkableAt(e,t+1)||o.isWalkableAt(e+i,t-1)&&!o.isWalkableAt(e,t-1))return[e,t]}else if(o.isWalkableAt(e+1,t+a)&&!o.isWalkableAt(e+1,t)||o.isWalkableAt(e-1,t+a)&&!o.isWalkableAt(e-1,t))return[e,t];return this._jump(e+i,t+a,e,t)},i.prototype._findNeighbors=function(e){var t,n,r,i,a,s,l,u,c=e.parent,d=e.x,p=e.y,f=this.grid,h=[];if(c)t=c.x,n=c.y,r=(d-t)/Math.max(Math.abs(d-t),1),i=(p-n)/Math.max(Math.abs(p-n),1),0!==r&&0!==i?(f.isWalkableAt(d,p+i)&&h.push([d,p+i]),f.isWalkableAt(d+r,p)&&h.push([d+r,p]),f.isWalkableAt(d+r,p+i)&&h.push([d+r,p+i]),f.isWalkableAt(d-r,p)||h.push([d-r,p+i]),f.isWalkableAt(d,p-i)||h.push([d+r,p-i])):0===r?(f.isWalkableAt(d,p+i)&&h.push([d,p+i]),f.isWalkableAt(d+1,p)||h.push([d+1,p+i]),f.isWalkableAt(d-1,p)||h.push([d-1,p+i])):(f.isWalkableAt(d+r,p)&&h.push([d+r,p]),f.isWalkableAt(d,p+1)||h.push([d+r,p+1]),f.isWalkableAt(d,p-1)||h.push([d+r,p-1]));else for(l=0,u=(a=f.getNeighbors(e,o.Always)).length;l{var r=n(9799),o=n(2744);function i(e){r.call(this,e)}i.prototype=new r,i.prototype.constructor=i,i.prototype._jump=function(e,t,n,r){var o=this.grid,i=e-n,a=t-r;if(!o.isWalkableAt(e,t))return null;if(!0===this.trackJumpRecursion&&(o.getNodeAt(e,t).tested=!0),o.getNodeAt(e,t)===this.endNode)return[e,t];if(0!==i&&0!==a){if(o.isWalkableAt(e-i,t+a)&&!o.isWalkableAt(e-i,t)||o.isWalkableAt(e+i,t-a)&&!o.isWalkableAt(e,t-a))return[e,t];if(this._jump(e+i,t,e,t)||this._jump(e,t+a,e,t))return[e,t]}else if(0!==i){if(o.isWalkableAt(e+i,t+1)&&!o.isWalkableAt(e,t+1)||o.isWalkableAt(e+i,t-1)&&!o.isWalkableAt(e,t-1))return[e,t]}else if(o.isWalkableAt(e+1,t+a)&&!o.isWalkableAt(e+1,t)||o.isWalkableAt(e-1,t+a)&&!o.isWalkableAt(e-1,t))return[e,t];return o.isWalkableAt(e+i,t)||o.isWalkableAt(e,t+a)?this._jump(e+i,t+a,e,t):null},i.prototype._findNeighbors=function(e){var t,n,r,i,a,s,l,u,c=e.parent,d=e.x,p=e.y,f=this.grid,h=[];if(c)t=c.x,n=c.y,r=(d-t)/Math.max(Math.abs(d-t),1),i=(p-n)/Math.max(Math.abs(p-n),1),0!==r&&0!==i?(f.isWalkableAt(d,p+i)&&h.push([d,p+i]),f.isWalkableAt(d+r,p)&&h.push([d+r,p]),(f.isWalkableAt(d,p+i)||f.isWalkableAt(d+r,p))&&h.push([d+r,p+i]),!f.isWalkableAt(d-r,p)&&f.isWalkableAt(d,p+i)&&h.push([d-r,p+i]),!f.isWalkableAt(d,p-i)&&f.isWalkableAt(d+r,p)&&h.push([d+r,p-i])):0===r?f.isWalkableAt(d,p+i)&&(h.push([d,p+i]),f.isWalkableAt(d+1,p)||h.push([d+1,p+i]),f.isWalkableAt(d-1,p)||h.push([d-1,p+i])):f.isWalkableAt(d+r,p)&&(h.push([d+r,p]),f.isWalkableAt(d,p+1)||h.push([d+r,p+1]),f.isWalkableAt(d,p-1)||h.push([d+r,p-1]));else for(l=0,u=(a=f.getNeighbors(e,o.IfAtMostOneObstacle)).length;l{var r=n(9799),o=n(2744);function i(e){r.call(this,e)}i.prototype=new r,i.prototype.constructor=i,i.prototype._jump=function(e,t,n,r){var o=this.grid,i=e-n,a=t-r;if(!o.isWalkableAt(e,t))return null;if(!0===this.trackJumpRecursion&&(o.getNodeAt(e,t).tested=!0),o.getNodeAt(e,t)===this.endNode)return[e,t];if(0!==i&&0!==a){if(this._jump(e+i,t,e,t)||this._jump(e,t+a,e,t))return[e,t]}else if(0!==i){if(o.isWalkableAt(e,t-1)&&!o.isWalkableAt(e-i,t-1)||o.isWalkableAt(e,t+1)&&!o.isWalkableAt(e-i,t+1))return[e,t]}else if(0!==a&&(o.isWalkableAt(e-1,t)&&!o.isWalkableAt(e-1,t-a)||o.isWalkableAt(e+1,t)&&!o.isWalkableAt(e+1,t-a)))return[e,t];return o.isWalkableAt(e+i,t)&&o.isWalkableAt(e,t+a)?this._jump(e+i,t+a,e,t):null},i.prototype._findNeighbors=function(e){var t,n,r,i,a,s,l,u,c,d=e.parent,p=e.x,f=e.y,h=this.grid,m=[];if(d){if(t=d.x,n=d.y,r=(p-t)/Math.max(Math.abs(p-t),1),i=(f-n)/Math.max(Math.abs(f-n),1),0!==r&&0!==i)h.isWalkableAt(p,f+i)&&m.push([p,f+i]),h.isWalkableAt(p+r,f)&&m.push([p+r,f]),h.isWalkableAt(p,f+i)&&h.isWalkableAt(p+r,f)&&m.push([p+r,f+i]);else if(0!==r){c=h.isWalkableAt(p+r,f);var g=h.isWalkableAt(p,f+1),v=h.isWalkableAt(p,f-1);c&&(m.push([p+r,f]),g&&m.push([p+r,f+1]),v&&m.push([p+r,f-1])),g&&m.push([p,f+1]),v&&m.push([p,f-1])}else if(0!==i){c=h.isWalkableAt(p,f+i);var y=h.isWalkableAt(p+1,f),b=h.isWalkableAt(p-1,f);c&&(m.push([p,f+i]),y&&m.push([p+1,f+i]),b&&m.push([p-1,f+i])),y&&m.push([p+1,f]),b&&m.push([p-1,f])}}else for(l=0,u=(a=h.getNeighbors(e,o.OnlyWhenNoObstacles)).length;l{var r=n(9799),o=n(2744);function i(e){r.call(this,e)}i.prototype=new r,i.prototype.constructor=i,i.prototype._jump=function(e,t,n,r){var o=this.grid,i=e-n,a=t-r;if(!o.isWalkableAt(e,t))return null;if(!0===this.trackJumpRecursion&&(o.getNodeAt(e,t).tested=!0),o.getNodeAt(e,t)===this.endNode)return[e,t];if(0!==i){if(o.isWalkableAt(e,t-1)&&!o.isWalkableAt(e-i,t-1)||o.isWalkableAt(e,t+1)&&!o.isWalkableAt(e-i,t+1))return[e,t]}else{if(0===a)throw new Error("Only horizontal and vertical movements are allowed");if(o.isWalkableAt(e-1,t)&&!o.isWalkableAt(e-1,t-a)||o.isWalkableAt(e+1,t)&&!o.isWalkableAt(e+1,t-a))return[e,t];if(this._jump(e+1,t,e,t)||this._jump(e-1,t,e,t))return[e,t]}return this._jump(e+i,t+a,e,t)},i.prototype._findNeighbors=function(e){var t,n,r,i,a,s,l,u,c=e.parent,d=e.x,p=e.y,f=this.grid,h=[];if(c)t=c.x,n=c.y,r=(d-t)/Math.max(Math.abs(d-t),1),i=(p-n)/Math.max(Math.abs(p-n),1),0!==r?(f.isWalkableAt(d,p-1)&&h.push([d,p-1]),f.isWalkableAt(d,p+1)&&h.push([d,p+1]),f.isWalkableAt(d+r,p)&&h.push([d+r,p])):0!==i&&(f.isWalkableAt(d-1,p)&&h.push([d-1,p]),f.isWalkableAt(d+1,p)&&h.push([d+1,p]),f.isWalkableAt(d,p+i)&&h.push([d,p+i]));else for(l=0,u=(a=f.getNeighbors(e,o.Never)).length;l{var r=n(2744),o=n(2049),i=n(9824),a=n(4231),s=n(6707);e.exports=function(e){return(e=e||{}).diagonalMovement===r.Never?new o(e):e.diagonalMovement===r.Always?new i(e):e.diagonalMovement===r.OnlyWhenNoObstacles?new a(e):new s(e)}},9799:(e,t,n)=>{var r=n(5731),o=n(6154),i=n(5512);function a(e){e=e||{},this.heuristic=e.heuristic||i.manhattan,this.trackJumpRecursion=e.trackJumpRecursion||!1}n(2744),a.prototype.findPath=function(e,t,n,i,a){var s,l=this.openList=new r((function(e,t){return e.f-t.f})),u=this.startNode=a.getNodeAt(e,t),c=this.endNode=a.getNodeAt(n,i);for(this.grid=a,u.g=0,u.f=0,l.push(u),u.opened=!0;!l.empty();){if((s=l.pop()).closed=!0,s===c)return o.expandPath(o.backtrace(c));this._identifySuccessors(s)}return[]},a.prototype._identifySuccessors=function(e){var t,n,r,o,a,s,l,u,c,d,p=this.grid,f=this.heuristic,h=this.openList,m=this.endNode.x,g=this.endNode.y,v=e.x,y=e.y,b=Math.abs;for(Math.max,o=0,a=(t=this._findNeighbors(e)).length;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function(e){return e*e},o=function(e,t){var o=n(e,2),i=o[0],a=o[1],s=n(t,2),l=s[0],u=s[1];return Math.sqrt(r(i-l)+r(a-u))};t.default={distPointToPoint:o,distPointToParabol:function(e,t){var n=o(e,t);return 0==n?1/0:r(n)/(2*Math.abs(e[1]-t[1]))},circumCenter:function(e,t,n){var r=(e[0]-n[0])*(t[1]-n[1])-(t[0]-n[0])*(e[1]-n[1]);return 0==r?[1/0,1/0]:[(((e[0]-n[0])*(e[0]+n[0])+(e[1]-n[1])*(e[1]+n[1]))/2*(t[1]-n[1])-((t[0]-n[0])*(t[0]+n[0])+(t[1]-n[1])*(t[1]+n[1]))/2*(e[1]-n[1]))/r,(((t[0]-n[0])*(t[0]+n[0])+(t[1]-n[1])*(t[1]+n[1]))/2*(e[0]-n[0])-((e[0]-n[0])*(e[0]+n[0])+(e[1]-n[1])*(e[1]+n[1]))/2*(t[0]-n[0]))/r]},parabolsCrossX:function(e,t,n){if(e[1]===t[1])return[(e[0]+t[0])/2,(e[0]+t[0])/2];var r=(e[1]*t[0]-e[0]*t[1]+e[0]*n-t[0]*n+Math.sqrt((e[0]*e[0]+e[1]*e[1]-2*e[0]*t[0]+t[0]*t[0]-2*e[1]*t[1]+t[1]*t[1])*(e[1]*t[1]-e[1]*n-t[1]*n+n*n)))/(e[1]-t[1]),o=(e[1]*t[0]-e[0]*t[1]+e[0]*n-t[0]*n-Math.sqrt((e[0]*e[0]+e[1]*e[1]-2*e[0]*t[0]+t[0]*t[0]-2*e[1]*t[1]+t[1]*t[1])*(e[1]*t[1]-e[1]*n-t[1]*n+n*n)))/(e[1]-t[1]);return r=-n&&e.vec[0]*r>=-n;var i=t.vec[0]*e.vec[1]-t.vec[1]*e.vec[0];if(0===i)return!1;var a=(o*t.vec[0]-r*t.vec[1])/i,s=(o*e.vec[0]-r*e.vec[1])/i;return a>=-n&&s>=n||a>=n&&s>=-n},matrixTransform:function(e,t){return e.map((function(e){return{x:e.x*t[0]+e.y*t[2]+t[4],y:e.x*t[1]+e.y*t[3]+t[5]}}))},transformEllipse:function(e,t,n,r){var o=Math.PI/180,i=1e-10,a=Math.cos(n*o),s=Math.sin(n*o),l=[e*(r[0]*a+r[2]*s),e*(r[1]*a+r[3]*s),t*(-r[0]*s+r[2]*a),t*(-r[1]*s+r[3]*a)],u=l[0]*l[0]+l[2]*l[2],c=l[1]*l[1]+l[3]*l[3],d=((l[0]-l[3])*(l[0]-l[3])+(l[2]+l[1])*(l[2]+l[1]))*((l[0]+l[3])*(l[0]+l[3])+(l[2]-l[1])*(l[2]-l[1])),p=(u+c)/2;if(dMath.abs(h-c)?(h-u)/f:f/(h-c))/Math.PI)>=0?(v=Math.sqrt(h),y=Math.sqrt(m)):(g+=90,v=Math.sqrt(m),y=Math.sqrt(h)),{rx:v,ry:y,ax:g,isDegenerate:v{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=n(2793),i=function e(t){var n=t||[],i=function(e){return e.command+" "+e.params.map((function(e){return function(e,t){for(var n=e.length;"0"===e.charAt(n-1);)n-=1;return"."===e.charAt(n-1)&&(n-=1),e.substr(0,n)}(e.toFixed(6))})).join(" ")},a=function(e,t){var n=e.command,r=e.params;switch(n){case"M":case"L":case"T":return[r[0],r[1]];case"H":return[r[0],t[1]];case"V":return[t[0],r[0]];case"Z":return null;case"C":return[r[4],r[5]];case"S":case"Q":return[r[2],r[3]];case"A":return[r[5],r[6]]}},s=function(e,t,n){var r=e.params,i={V:function(e,t,n){var i=[{x:n[0],y:r[0]}],a=(0,o.matrixTransform)(i,t);return a[0].x===(0,o.matrixTransform)([{x:n[0],y:n[1]}],t)[0].x?{command:"V",params:[a[0].y]}:{command:"L",params:[a[0].x,a[0].y]}},H:function(e,t,n){var i=[{x:r[0],y:n[1]}],a=(0,o.matrixTransform)(i,t);return a[0].y===(0,o.matrixTransform)([{x:n[0],y:n[1]}],t)[0].y?{command:"H",params:[a[0].x]}:{command:"L",params:[a[0].x,a[0].y]}},A:function(e,t,n){var i=(0,o.transformEllipse)(r[0],r[1],r[2],t),a=r[4];t[0]*t[3]-t[1]*t[2]<0&&(a=a?"0":"1");var s=[{x:r[5],y:r[6]}],l=(0,o.matrixTransform)(s,t);return i.isDegenerate?{command:"L",params:[l[0].x,l[0].y]}:{command:"A",params:[i.rx,i.ry,i.ax,r[3],a,l[0].x,l[0].y]}},C:function(e,t,n){var i=[{x:r[0],y:r[1]},{x:r[2],y:r[3]},{x:r[4],y:r[5]}],a=(0,o.matrixTransform)(i,t);return{command:"C",params:[a[0].x,a[0].y,a[1].x,a[1].y,a[2].x,a[2].y]}},Z:function(e,t,n){return{command:"Z",params:[]}},default:function(e,t,n){var i=[{x:r[0],y:r[1]}],a=(0,o.matrixTransform)(i,t),s=e.params.slice(0,e.params.length);return s.splice(0,2,a[0].x,a[0].y),{command:e.command,params:s}}};return i[e.command]?i[e.command](e,t,n):i.default(e,t,n)},l=function(e,t){return function(n){var r="object"==typeof n?e.map((function(e){return n[e]})):arguments;return t.apply(null,r)}},u=function(t){return e((o=t,(i=(r=n).slice(0,r.length)).push(o),i));var r,o,i};return{moveto:l(["x","y"],(function(e,t){return u({command:"M",params:[e,t]})})),lineto:l(["x","y"],(function(e,t){return u({command:"L",params:[e,t]})})),hlineto:l(["x"],(function(e){return u({command:"H",params:[e]})})),vlineto:l(["y"],(function(e){return u({command:"V",params:[e]})})),closepath:function(){return u({command:"Z",params:[]})},curveto:l(["x1","y1","x2","y2","x","y"],(function(e,t,n,r,o,i){return u({command:"C",params:[e,t,n,r,o,i]})})),smoothcurveto:l(["x2","y2","x","y"],(function(e,t,n,r){return u({command:"S",params:[e,t,n,r]})})),qcurveto:l(["x1","y1","x","y"],(function(e,t,n,r){return u({command:"Q",params:[e,t,n,r]})})),smoothqcurveto:l(["x","y"],(function(e,t){return u({command:"T",params:[e,t]})})),arc:l(["rx","ry","xrot","largeArcFlag","sweepFlag","x","y"],(function(e,t,n,r,o,i,a){return u({command:"A",params:[e,t,n,r,o,i,a]})})),translate:l(["dx","dy"],(function(){var t=arguments.length<=0||void 0===arguments[0]?0:arguments[0],r=arguments.length<=1||void 0===arguments[1]?0:arguments[1];if(0===t&&0===r)return e(n);var o,i,l,u=(o=[0,0],i=[1,0,0,1,t,r],l=n.map((function(e){var t=s(e,i,o);return o=a(e,o),t})),{v:e(l)});return"object"==typeof u?u.v:void 0})),rotate:l(["angle","rx","ry"],(function(t){var r=arguments.length<=1||void 0===arguments[1]?0:arguments[1],o=arguments.length<=2||void 0===arguments[2]?0:arguments[2];if(0===t)return e(n);var i=function(){var i=void 0,l=void 0,u=n;0!==r&&0!==o&&(i=[0,0],l=[1,0,0,1,-r,-o],u=u.map((function(e){var t=s(e,l,i);return i=a(e,i),t})));var c=t*Math.PI/180,d=Math.cos(c),p=Math.sin(c);return i=[0,0],l=[d,p,-p,d,0,0],u=u.map((function(e){var t=s(e,l,i);return i=a(e,i),t})),0!==r&&0!==o&&(i=[0,0],l=[1,0,0,1,r,o],u=u.map((function(e){var t=s(e,l,i);return i=a(e,i),t}))),{v:e(u)}}();return"object"==typeof i?i.v:void 0})),scale:l(["sx","sy"],(function(){var t=arguments.length<=0||void 0===arguments[0]?1:arguments[0],r=arguments.length<=1||void 0===arguments[1]?t:arguments[1];return function(){if(1===t&&1===r)return e(n);var o,i,l,u=(o=[0,0],i=[t,0,0,r,0,0],l=n.map((function(e){var t=s(e,i,o);return o=a(e,o),t})),{v:e(l)});return"object"==typeof u?u.v:void 0}()})),shearX:l(["angle"],(function(){var t=arguments.length<=0||void 0===arguments[0]?0:arguments[0];if(0===t)return e(n);var r,o,i,l=(r=[0,0],o=[1,0,Math.tan(t*Math.PI/180),1,0,0],i=n.map((function(e){var t=s(e,o,r);return r=a(e,r),t})),{v:e(i)});return"object"==typeof l?l.v:void 0})),shearY:l(["angle"],(function(){var t=arguments.length<=0||void 0===arguments[0]?0:arguments[0];if(0===t)return e(n);var r,o,i,l=(r=[0,0],o=[1,Math.tan(t*Math.PI/180),0,1,0,0],i=n.map((function(e){var t=s(e,o,r);return r=a(e,r),t})),{v:e(i)});return"object"==typeof l?l.v:void 0})),print:function(){return n.map(i).join(" ")},toString:function(){return(void 0).print()},points:function(){var e=[],t=[0,0],r=!0,o=!1,i=void 0;try{for(var s,l=n[Symbol.iterator]();!(r=(s=l.next()).done);r=!0){var u=s.value,c=a(u,t);t=c,c&&e.push(c)}}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return e},instructions:function(){return n.slice(0,n.length)},connect:function(t){var o,i,a,s,l,u,c,d=this.points(),p=d[d.length-1],f=t.points()[0],h=void 0;return"Z"!==n[n.length-1].command?(h=t.instructions().slice(1),o=f,a=(i=r(p,2))[0],s=i[1],u=(l=r(o,2))[0],c=l[1],(a!==u||s!==c)&&h.unshift({command:"L",params:f})):h=t.instructions(),e(this.instructions().concat(h))}}};t.default=function(){return i()},e.exports=t.default},2694:(e,t,n)=>{"use strict";var r=n(6925);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},5556:(e,t,n)=>{e.exports=n(2694)()},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},2551:(e,t,n)=>{"use strict";var r=n(6540),o=n(5228),i=n(9982);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n