You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/p__SmartResources__index.5b...

1 line
3.0 MiB

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(self.webpackChunk=self.webpackChunk||[]).push([[1346],{40001:function(t,e,n){"use strict";n.d(e,{Z:function(){return l}});var i=n(14809),r=n(59301),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},a=n(7657),s=function(t,e){return r.createElement(a.Z,(0,i.Z)({},t,{ref:e,icon:o}))};var l=r.forwardRef(s)},84105:function(t,e,n){"use strict";n.d(e,{Z:function(){return l}});var i=n(14809),r=n(59301),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},a=n(7657),s=function(t,e){return r.createElement(a.Z,(0,i.Z)({},t,{ref:e,icon:o}))};var l=r.forwardRef(s)},18785:function(t,e,n){"use strict";n.d(e,{Z:function(){return l}});var i=n(14809),r=n(59301),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},a=n(7657),s=function(t,e){return r.createElement(a.Z,(0,i.Z)({},t,{ref:e,icon:o}))};var l=r.forwardRef(s)},15277:function(t,e,n){"use strict";n.d(e,{Z:function(){return l}});var i=n(14809),r=n(59301),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},a=n(7657),s=function(t,e){return r.createElement(a.Z,(0,i.Z)({},t,{ref:e,icon:o}))};var l=r.forwardRef(s)},33853:function(t,e,n){"use strict";n.d(e,{Z:function(){return l}});var i=n(14809),r=n(59301),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},a=n(7657),s=function(t,e){return r.createElement(a.Z,(0,i.Z)({},t,{ref:e,icon:o}))};var l=r.forwardRef(s)},12893:function(t,e,n){"use strict";n.d(e,{Z:function(){return l}});var i=n(14809),r=n(59301),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"},a=n(7657),s=function(t,e){return r.createElement(a.Z,(0,i.Z)({},t,{ref:e,icon:o}))};var l=r.forwardRef(s)},38819:function(t,e,n){"use strict";n.d(e,{Z:function(){return l}});var i=n(14809),r=n(59301),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},a=n(7657),s=function(t,e){return r.createElement(a.Z,(0,i.Z)({},t,{ref:e,icon:o}))};var l=r.forwardRef(s)},47472:function(t,e,n){"use strict";n.d(e,{Z:function(){return l}});var i=n(14809),r=n(59301),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},a=n(7657),s=function(t,e){return r.createElement(a.Z,(0,i.Z)({},t,{ref:e,icon:o}))};var l=r.forwardRef(s)},35593:function(t,e,n){"use strict";n.d(e,{Z:function(){return X}});var i=n(20439),r=n(50298),o=n(62646),a=n(43403),s=n(92310),l=n.n(s),u=n(29301),c=n(76846),h=n(96452),d=n(6089),f=n(80402),p=n(34280),g=n(49658),m=n(59301),v=n(14809),y=n(77900),w=n(8654);function b(t){var e=t.prefixCls,n=t.align,i=t.arrow,r=t.arrowPos,o=i||{},a=o.className,s=o.content,u=r.x,c=void 0===u?0:u,h=r.y,d=void 0===h?0:h,f=m.useRef();if(!n||!n.points)return null;var p={position:"absolute"};if(!1!==n.autoArrow){var g=n.points[0],v=n.points[1],y=g[0],w=g[1],b=v[0],x=v[1];y!==b&&["t","b"].includes(y)?"t"===y?p.top=0:p.bottom=0:p.top=d,w!==x&&["l","r"].includes(w)?"l"===w?p.left=0:p.right=0:p.left=c}return m.createElement("div",{ref:f,className:l()("".concat(e,"-arrow"),a),style:p},s)}function x(t){var e=t.prefixCls,n=t.open,i=t.zIndex,r=t.mask,o=t.motion;return r?m.createElement(y.ZP,(0,v.Z)({},o,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(t){var n=t.className;return m.createElement("div",{style:{zIndex:i},className:l()("".concat(e,"-mask"),n)})})):null}var S=m.memo((function(t){return t.children}),(function(t,e){return e.cache}));var P=m.forwardRef((function(t,e){var n=t.popup,o=t.className,a=t.prefixCls,s=t.style,c=t.target,h=t.onVisibleChanged,d=t.open,f=t.keepDom,g=t.fresh,P=t.onClick,k=t.mask,C=t.arrow,A=t.arrowPos,M=t.align,E=t.motion,L=t.maskMotion,T=t.forceRender,N=t.getPopupContainer,j=t.autoDestroy,I=t.portal,B=t.zIndex,O=t.onMouseEnter,D=t.onMouseLeave,R=t.onPointerEnter,F=t.ready,z=t.offsetX,G=t.offsetY,U=t.offsetR,H=t.offsetB,_=t.onAlign,Z=t.onPrepare,W=t.stretch,V=t.targetWidth,Y=t.targetHeight,X="function"==typeof n?n():n,q=d||f,K=(null==N?void 0:N.length)>0,Q=m.useState(!N||!K),J=(0,r.Z)(Q,2),$=J[0],tt=J[1];if((0,p.Z)((function(){!$&&K&&c&&tt(!0)}),[$,K,c]),!$)return null;var et="auto",nt={left:"-1000vw",top:"-1000vh",right:et,bottom:et};if(F||!d){var it,rt=M.points,ot=M.dynamicInset||(null===(it=M._experimental)||void 0===it?void 0:it.dynamicInset),at=ot&&"r"===rt[0][1],st=ot&&"b"===rt[0][0];at?(nt.right=U,nt.left=et):(nt.left=z,nt.right=et),st?(nt.bottom=H,nt.top=et):(nt.top=G,nt.bottom=et)}var lt={};return W&&(W.includes("height")&&Y?lt.height=Y:W.includes("minHeight")&&Y&&(lt.minHeight=Y),W.includes("width")&&V?lt.width=V:W.includes("minWidth")&&V&&(lt.minWidth=V)),d||(lt.pointerEvents="none"),m.createElement(I,{open:T||q,getContainer:N&&function(){return N(c)},autoDestroy:j},m.createElement(x,{prefixCls:a,open:d,zIndex:B,mask:k,motion:L}),m.createElement(u.Z,{onResize:_,disabled:!d},(function(t){return m.createElement(y.ZP,(0,v.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:T,leavedClassName:"".concat(a,"-hidden")},E,{onAppearPrepare:Z,onEnterPrepare:Z,visible:d,onVisibleChanged:function(t){var e;null==E||null===(e=E.onVisibleChanged)||void 0===e||e.call(E,t),h(t)}}),(function(n,r){var u=n.className,c=n.style,h=l()(a,u,o);return m.createElement("div",{ref:(0,w.sQ)(t,e,r),className:h,style:(0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)({"--arrow-x":"".concat(A.x||0,"px"),"--arrow-y":"".concat(A.y||0,"px")},nt),lt),c),{},{boxSizing:"border-box",zIndex:B},s),onMouseEnter:O,onMouseLeave:D,onPointerEnter:R,onClick:P},C&&m.createElement(b,{prefixCls:a,arrow:C,arrowPos:A,align:M}),m.createElement(S,{cache:!d&&!g},X))}))})))}));var k=m.forwardRef((function(t,e){var n=t.children,i=t.getTriggerDOMNode,r=(0,w.Yr)(n),o=m.useCallback((function(t){(0,w.mH)(e,i?i(t):t)}),[i]),a=(0,w.x1)(o,n.ref);return r?m.cloneElement(n,{ref:a}):n})),C=m.createContext(null);function A(t){return t?Array.isArray(t)?t:[t]:[]}function M(t,e,n,i){return m.useMemo((function(){var r=A(null!=n?n:e),o=A(null!=i?i:e),a=new Set(r),s=new Set(o);return t&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]}),[t,e,n,i])}var E=n(29194);function L(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?t[0]===e[0]:t[0]===e[0]&&t[1]===e[1]}function T(t,e,n,i){for(var r=n.points,o=Object.keys(t),a=0;a<o.length;a+=1){var s,l=o[a];if(L(null===(s=t[l])||void 0===s?void 0:s.points,r,i))return"".concat(e,"-placement-").concat(l)}return""}function N(t,e,n,i){return e||(n?{motionName:"".concat(t,"-").concat(n)}:i?{motionName:i}:null)}function j(t){return t.ownerDocument.defaultView}function I(t){for(var e=[],n=null==t?void 0:t.parentElement,i=["hidden","scroll","clip","auto"];n;){var r=j(n).getComputedStyle(n);[r.overflowX,r.overflowY,r.overflow].some((function(t){return i.includes(t)}))&&e.push(n),n=n.parentElement}return e}function B(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(t)?e:t}function O(t){return B(parseFloat(t),0)}function D(t,e){var n=(0,i.Z)({},t);return(e||[]).forEach((function(t){if(!(t instanceof HTMLBodyElement||t instanceof HTMLHtmlElement)){var e=j(t).getComputedStyle(t),i=e.overflow,r=e.overflowClipMargin,o=e.borderTopWidth,a=e.borderBottomWidth,s=e.borderLeftWidth,l=e.borderRightWidth,u=t.getBoundingClientRect(),c=t.offsetHeight,h=t.clientHeight,d=t.offsetWidth,f=t.clientWidth,p=O(o),g=O(a),m=O(s),v=O(l),y=B(Math.round(u.width/d*1e3)/1e3),w=B(Math.round(u.height/c*1e3)/1e3),b=(d-f-m-v)*y,x=(c-h-p-g)*w,S=p*w,P=g*w,k=m*y,C=v*y,A=0,M=0;if("clip"===i){var E=O(r);A=E*y,M=E*w}var L=u.x+k-A,T=u.y+S-M,N=L+u.width+2*A-k-C-b,I=T+u.height+2*M-S-P-x;n.left=Math.max(n.left,L),n.top=Math.max(n.top,T),n.right=Math.min(n.right,N),n.bottom=Math.min(n.bottom,I)}})),n}function R(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n="".concat(e),i=n.match(/^(.*)\%$/);return i?t*(parseFloat(i[1])/100):parseFloat(n)}function F(t,e){var n=e||[],i=(0,r.Z)(n,2),o=i[0],a=i[1];return[R(t.width,o),R(t.height,a)]}function z(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[t[0],t[1]]}function G(t,e){var n,i=e[0],r=e[1];return n="t"===i?t.y:"b"===i?t.y+t.height:t.y+t.height/2,{x:"l"===r?t.x:"r"===r?t.x+t.width:t.x+t.width/2,y:n}}function U(t,e){var n={t:"b",b:"t",l:"r",r:"l"};return t.map((function(t,i){return i===e?n[t]||"c":t})).join("")}function H(t,e,n,o,a,s,l){var u=m.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[o]||{}}),h=(0,r.Z)(u,2),f=h[0],g=h[1],v=m.useRef(0),y=m.useMemo((function(){return e?I(e):[]}),[e]),w=m.useRef({});t||(w.current={});var b=(0,d.Z)((function(){if(e&&n&&t){var u,h,d,f=e,p=f.ownerDocument,m=j(f).getComputedStyle(f),v=m.width,b=m.height,x=m.position,S=f.style.left,P=f.style.top,k=f.style.right,C=f.style.bottom,A=f.style.overflow,M=(0,i.Z)((0,i.Z)({},a[o]),s),L=p.createElement("div");if(null===(u=f.parentElement)||void 0===u||u.appendChild(L),L.style.left="".concat(f.offsetLeft,"px"),L.style.top="".concat(f.offsetTop,"px"),L.style.position=x,L.style.height="".concat(f.offsetHeight,"px"),L.style.width="".concat(f.offsetWidth,"px"),f.style.left="0",f.style.top="0",f.style.right="auto",f.style.bottom="auto",f.style.overflow="hidden",Array.isArray(n))d={x:n[0],y:n[1],width:0,height:0};else{var T=n.getBoundingClientRect();d={x:T.x,y:T.y,width:T.width,height:T.height}}var N=f.getBoundingClientRect(),I=p.documentElement,O=I.clientWidth,R=I.clientHeight,H=I.scrollWidth,_=I.scrollHeight,Z=I.scrollTop,W=I.scrollLeft,V=N.height,Y=N.width,X=d.height,q=d.width,K={left:0,top:0,right:O,bottom:R},Q={left:-W,top:-Z,right:H-W,bottom:_-Z},J=M.htmlRegion,$="visible",tt="visibleFirst";"scroll"!==J&&J!==tt&&(J=$);var et=J===tt,nt=D(Q,y),it=D(K,y),rt=J===$?it:nt,ot=et?it:rt;f.style.left="auto",f.style.top="auto",f.style.right="0",f.style.bottom="0";var at=f.getBoundingClientRect();f.style.left=S,f.style.top=P,f.style.right=k,f.style.bottom=C,f.style.overflow=A,null===(h=f.parentElement)||void 0===h||h.removeChild(L);var st=B(Math.round(Y/parseFloat(v)*1e3)/1e3),lt=B(Math.round(V/parseFloat(b)*1e3)/1e3);if(0===st||0===lt||(0,c.Sh)(n)&&!(0,E.Z)(n))return;var ut=M.offset,ct=M.targetOffset,ht=F(N,ut),dt=(0,r.Z)(ht,2),ft=dt[0],pt=dt[1],gt=F(d,ct),mt=(0,r.Z)(gt,2),vt=mt[0],yt=mt[1];d.x-=vt,d.y-=yt;var wt=M.points||[],bt=(0,r.Z)(wt,2),xt=bt[0],St=z(bt[1]),Pt=z(xt),kt=G(d,St),Ct=G(N,Pt),At=(0,i.Z)({},M),Mt=kt.x-Ct.x+ft,Et=kt.y-Ct.y+pt;function xe(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:rt,i=N.x+t,r=N.y+e,o=i+Y,a=r+V,s=Math.max(i,n.left),l=Math.max(r,n.top),u=Math.min(o,n.right),c=Math.min(a,n.bottom);return Math.max(0,(u-s)*(c-l))}var Lt,Tt,Nt,jt,It=xe(Mt,Et),Bt=xe(Mt,Et,it),Ot=G(d,["t","l"]),Dt=G(N,["t","l"]),Rt=G(d,["b","r"]),Ft=G(N,["b","r"]),zt=M.overflow||{},Gt=zt.adjustX,Ut=zt.adjustY,Ht=zt.shiftX,_t=zt.shiftY,Zt=function(t){return"boolean"==typeof t?t:t>=0};function Se(){Lt=N.y+Et,Tt=Lt+V,Nt=N.x+Mt,jt=Nt+Y}Se();var Wt=Zt(Ut),Vt=Pt[0]===St[0];if(Wt&&"t"===Pt[0]&&(Tt>ot.bottom||w.current.bt)){var Yt=Et;Vt?Yt-=V-X:Yt=Ot.y-Ft.y-pt;var Xt=xe(Mt,Yt),qt=xe(Mt,Yt,it);Xt>It||Xt===It&&(!et||qt>=Bt)?(w.current.bt=!0,Et=Yt,pt=-pt,At.points=[U(Pt,0),U(St,0)]):w.current.bt=!1}if(Wt&&"b"===Pt[0]&&(Lt<ot.top||w.current.tb)){var Kt=Et;Vt?Kt+=V-X:Kt=Rt.y-Dt.y-pt;var Qt=xe(Mt,Kt),Jt=xe(Mt,Kt,it);Qt>It||Qt===It&&(!et||Jt>=Bt)?(w.current.tb=!0,Et=Kt,pt=-pt,At.points=[U(Pt,0),U(St,0)]):w.current.tb=!1}var $t=Zt(Gt),te=Pt[1]===St[1];if($t&&"l"===Pt[1]&&(jt>ot.right||w.current.rl)){var ee=Mt;te?ee-=Y-q:ee=Ot.x-Ft.x-ft;var ne=xe(ee,Et),ie=xe(ee,Et,it);ne>It||ne===It&&(!et||ie>=Bt)?(w.current.rl=!0,Mt=ee,ft=-ft,At.points=[U(Pt,1),U(St,1)]):w.current.rl=!1}if($t&&"r"===Pt[1]&&(Nt<ot.left||w.current.lr)){var re=Mt;te?re+=Y-q:re=Rt.x-Dt.x-ft;var oe=xe(re,Et),ae=xe(re,Et,it);oe>It||oe===It&&(!et||ae>=Bt)?(w.current.lr=!0,Mt=re,ft=-ft,At.points=[U(Pt,1),U(St,1)]):w.current.lr=!1}Se();var se=!0===Ht?0:Ht;"number"==typeof se&&(Nt<it.left&&(Mt-=Nt-it.left-ft,d.x+q<it.left+se&&(Mt+=d.x-it.left+q-se)),jt>it.right&&(Mt-=jt-it.right-ft,d.x>it.right-se&&(Mt+=d.x-it.right+se)));var le=!0===_t?0:_t;"number"==typeof le&&(Lt<it.top&&(Et-=Lt-it.top-pt,d.y+X<it.top+le&&(Et+=d.y-it.top+X-le)),Tt>it.bottom&&(Et-=Tt-it.bottom-pt,d.y>it.bottom-le&&(Et+=d.y-it.bottom+le)));var ue=N.x+Mt,ce=ue+Y,he=N.y+Et,de=he+V,fe=d.x,pe=fe+q,ge=d.y,me=ge+X,ve=(Math.max(ue,fe)+Math.min(ce,pe))/2-ue,ye=(Math.max(he,ge)+Math.min(de,me))/2-he;null==l||l(e,At);var we=at.right-N.x-(Mt+N.width),be=at.bottom-N.y-(Et+N.height);g({ready:!0,offsetX:Mt/st,offsetY:Et/lt,offsetR:we/st,offsetB:be/lt,arrowX:ve/st,arrowY:ye/lt,scaleX:st,scaleY:lt,align:At})}})),x=function(){g((function(t){return(0,i.Z)((0,i.Z)({},t),{},{ready:!1})}))};return(0,p.Z)(x,[o]),(0,p.Z)((function(){t||x()}),[t]),[f.ready,f.offsetX,f.offsetY,f.offsetR,f.offsetB,f.arrowX,f.arrowY,f.scaleX,f.scaleY,f.align,function(){v.current+=1;var t=v.current;Promise.resolve().then((function(){v.current===t&&b()}))}]}var _=n(95190);function Z(t,e,n,i,r){(0,p.Z)((function(){if(t&&e&&n){var o=n,a=I(e),s=I(o),l=j(o),u=new Set([l].concat((0,_.Z)(a),(0,_.Z)(s)));function c(){i(),r()}return u.forEach((function(t){t.addEventListener("scroll",c,{passive:!0})})),l.addEventListener("resize",c,{passive:!0}),i(),function(){u.forEach((function(t){t.removeEventListener("scroll",c),l.removeEventListener("resize",c)}))}}}),[t,e,n])}n(48736);var W=n(16089);function V(t,e,n,i,o,a,s,l){var u=m.useRef(t),c=m.useRef(!1);u.current!==t&&(c.current=!0,u.current=t),m.useEffect((function(){var t=(0,W.Z)((function(){c.current=!1}));return function(){W.Z.cancel(t)}}),[t]),m.useEffect((function(){if(e&&i&&(!o||a)){var t=function(){var t=!1;return[function(e){var n=e.target;t=s(n)},function(e){var n=e.target;c.current||!u.current||t||s(n)||l(!1)}]},d=t(),f=(0,r.Z)(d,2),p=f[0],g=f[1],m=t(),v=(0,r.Z)(m,2),y=v[0],w=v[1],b=j(i);b.addEventListener("mousedown",p,!0),b.addEventListener("click",g,!0),b.addEventListener("contextmenu",g,!0);var x=(0,h.A)(n);return x&&(x.addEventListener("mousedown",y,!0),x.addEventListener("click",w,!0),x.addEventListener("contextmenu",w,!0)),function(){b.removeEventListener("mousedown",p,!0),b.removeEventListener("click",g,!0),b.removeEventListener("contextmenu",g,!0),x&&(x.removeEventListener("mousedown",y,!0),x.removeEventListener("click",w,!0),x.removeEventListener("contextmenu",w,!0))}}}),[e,n,i,o,a])}var Y=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];var X=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.Z,e=m.forwardRef((function(e,n){var a=e.prefixCls,s=void 0===a?"rc-trigger-popup":a,v=e.children,y=e.action,w=void 0===y?"hover":y,b=e.showAction,x=e.hideAction,S=e.popupVisible,A=e.defaultPopupVisible,E=e.onPopupVisibleChange,L=e.afterPopupVisibleChange,j=e.mouseEnterDelay,I=e.mouseLeaveDelay,B=void 0===I?.1:I,O=e.focusDelay,D=e.blurDelay,R=e.mask,F=e.maskClosable,z=void 0===F||F,G=e.getPopupContainer,U=e.forceRender,_=e.autoDestroy,W=e.destroyPopupOnHide,X=e.popup,q=e.popupClassName,K=e.popupStyle,Q=e.popupPlacement,J=e.builtinPlacements,$=void 0===J?{}:J,tt=e.popupAlign,et=e.zIndex,nt=e.stretch,it=e.getPopupClassNameFromAlign,rt=e.fresh,ot=e.alignPoint,at=e.onPopupClick,st=e.onPopupAlign,lt=e.arrow,ut=e.popupMotion,ct=e.maskMotion,ht=e.popupTransitionName,dt=e.popupAnimation,ft=e.maskTransitionName,pt=e.maskAnimation,gt=e.className,mt=e.getTriggerDOMNode,vt=(0,o.Z)(e,Y),yt=_||W||!1,wt=m.useState(!1),bt=(0,r.Z)(wt,2),xt=bt[0],St=bt[1];(0,p.Z)((function(){St((0,g.Z)())}),[]);var Pt=m.useRef({}),kt=m.useContext(C),Ct=m.useMemo((function(){return{registerSubPopup:function(t,e){Pt.current[t]=e,null==kt||kt.registerSubPopup(t,e)}}}),[kt]),At=(0,f.Z)(),Mt=m.useState(null),Et=(0,r.Z)(Mt,2),Lt=Et[0],Tt=Et[1],Nt=(0,d.Z)((function(t){(0,c.Sh)(t)&&Lt!==t&&Tt(t),null==kt||kt.registerSubPopup(At,t)})),jt=m.useState(null),It=(0,r.Z)(jt,2),Bt=It[0],Ot=It[1],Dt=m.useRef(null),Rt=(0,d.Z)((function(t){(0,c.Sh)(t)&&Bt!==t&&(Ot(t),Dt.current=t)})),Ft=m.Children.only(v),zt=(null==Ft?void 0:Ft.props)||{},Gt={},Ut=(0,d.Z)((function(t){var e,n,i=Bt;return(null==i?void 0:i.contains(t))||(null===(e=(0,h.A)(i))||void 0===e?void 0:e.host)===t||t===i||(null==Lt?void 0:Lt.contains(t))||(null===(n=(0,h.A)(Lt))||void 0===n?void 0:n.host)===t||t===Lt||Object.values(Pt.current).some((function(e){return(null==e?void 0:e.contains(t))||t===e}))})),Ht=N(s,ut,dt,ht),_t=N(s,ct,pt,ft),Zt=m.useState(A||!1),Wt=(0,r.Z)(Zt,2),Vt=Wt[0],Yt=Wt[1],Xt=null!=S?S:Vt,qt=(0,d.Z)((function(t){void 0===S&&Yt(t)}));(0,p.Z)((function(){Yt(S||!1)}),[S]);var Kt=m.useRef(Xt);Kt.current=Xt;var Qt=m.useRef([]);Qt.current=[];var Jt=(0,d.Z)((function(t){var e;qt(t),(null!==(e=Qt.current[Qt.current.length-1])&&void 0!==e?e:Xt)!==t&&(Qt.current.push(t),null==E||E(t))})),$t=m.useRef(),te=function(){clearTimeout($t.current)},ee=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;te(),0===e?Jt(t):$t.current=setTimeout((function(){Jt(t)}),1e3*e)};m.useEffect((function(){return te}),[]);var ne=m.useState(!1),ie=(0,r.Z)(ne,2),re=ie[0],oe=ie[1];(0,p.Z)((function(t){t&&!Xt||oe(!0)}),[Xt]);var ae=m.useState(null),se=(0,r.Z)(ae,2),le=se[0],ue=se[1],ce=m.useState([0,0]),he=(0,r.Z)(ce,2),de=he[0],fe=he[1],pe=function(t){fe([t.clientX,t.clientY])},ge=H(Xt,Lt,ot?de:Bt,Q,$,tt,st),me=(0,r.Z)(ge,11),ve=me[0],ye=me[1],we=me[2],be=me[3],xe=me[4],Se=me[5],Pe=me[6],ke=me[7],Ce=me[8],Ae=me[9],Me=me[10],Ee=M(xt,w,b,x),Le=(0,r.Z)(Ee,2),Te=Le[0],Ne=Le[1],je=Te.has("click"),Ie=Ne.has("click")||Ne.has("contextMenu"),Be=(0,d.Z)((function(){re||Me()}));Z(Xt,Bt,Lt,Be,(function(){Kt.current&&ot&&Ie&&ee(!1)})),(0,p.Z)((function(){Be()}),[de,Q]),(0,p.Z)((function(){!Xt||null!=$&&$[Q]||Be()}),[JSON.stringify(tt)]);var Oe=m.useMemo((function(){var t=T($,s,Ae,ot);return l()(t,null==it?void 0:it(Ae))}),[Ae,it,$,s,ot]);m.useImperativeHandle(n,(function(){return{nativeElement:Dt.current,forceAlign:Be}}));var De=m.useState(0),Re=(0,r.Z)(De,2),Fe=Re[0],ze=Re[1],Ge=m.useState(0),Ue=(0,r.Z)(Ge,2),He=Ue[0],_e=Ue[1],Ze=function(){if(nt&&Bt){var t=Bt.getBoundingClientRect();ze(t.width),_e(t.height)}};function We(t,e,n,i){Gt[t]=function(r){var o;null==i||i(r),ee(e,n);for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];null===(o=zt[t])||void 0===o||o.call.apply(o,[zt,r].concat(s))}}(0,p.Z)((function(){le&&(Me(),le(),ue(null))}),[le]),(je||Ie)&&(Gt.onClick=function(t){var e;Kt.current&&Ie?ee(!1):!Kt.current&&je&&(pe(t),ee(!0));for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];null===(e=zt.onClick)||void 0===e||e.call.apply(e,[zt,t].concat(i))}),V(Xt,Ie,Bt,Lt,R,z,Ut,ee);var Ve,Ye,Xe=Te.has("hover"),qe=Ne.has("hover");Xe&&(We("onMouseEnter",!0,j,(function(t){pe(t)})),We("onPointerEnter",!0,j,(function(t){pe(t)})),Ve=function(t){(Xt||re)&&null!=Lt&&Lt.contains(t.target)&&ee(!0,j)},ot&&(Gt.onMouseMove=function(t){var e;null===(e=zt.onMouseMove)||void 0===e||e.call(zt,t)})),qe&&(We("onMouseLeave",!1,B),We("onPointerLeave",!1,B),Ye=function(){ee(!1,B)}),Te.has("focus")&&We("onFocus",!0,O),Ne.has("focus")&&We("onBlur",!1,D),Te.has("contextMenu")&&(Gt.onContextMenu=function(t){var e;Kt.current&&Ne.has("contextMenu")?ee(!1):(pe(t),ee(!0)),t.preventDefault();for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];null===(e=zt.onContextMenu)||void 0===e||e.call.apply(e,[zt,t].concat(i))}),gt&&(Gt.className=l()(zt.className,gt));var Ke=(0,i.Z)((0,i.Z)({},zt),Gt),Qe={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach((function(t){vt[t]&&(Qe[t]=function(){for(var e,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];null===(e=Ke[t])||void 0===e||e.call.apply(e,[Ke].concat(i)),vt[t].apply(vt,i)})}));var Je=m.cloneElement(Ft,(0,i.Z)((0,i.Z)({},Ke),Qe)),$e={x:Se,y:Pe},tn=lt?(0,i.Z)({},!0!==lt?lt:{}):null;return m.createElement(m.Fragment,null,m.createElement(u.Z,{disabled:!Xt,ref:Rt,onResize:function(){Ze(),Be()}},m.createElement(k,{getTriggerDOMNode:mt},Je)),m.createElement(C.Provider,{value:Ct},m.createElement(P,{portal:t,ref:Nt,prefixCls:s,popup:X,className:l()(q,Oe),style:K,target:Bt,onMouseEnter:Ve,onMouseLeave:Ye,onPointerEnter:Ve,zIndex:et,open:Xt,keepDom:re,fresh:rt,onClick:at,mask:R,motion:Ht,maskMotion:_t,onVisibleChanged:function(t){oe(!1),Me(),null==L||L(t)},onPrepare:function(){return new Promise((function(t){Ze(),ue((function(){return t}))}))},forceRender:U,autoDestroy:yt,getPopupContainer:G,align:Ae,arrow:tn,arrowPos:$e,ready:ve,offsetX:ye,offsetY:we,offsetR:be,offsetB:xe,onAlign:Be,stretch:nt,targetWidth:Fe/ke,targetHeight:He/Ce})))}));return e}(a.Z)},77164:function(){"use strict";function t(t,e,n,i){void 0===n&&(n=0),void 0===i&&(i=1/0),this._name=t,this._defaultValue=e,this._minimum=n,this._maximum=i}Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(t){if("string"!=typeof t||""===t)throw new Error("Shape name must be a valid string.");this._name=t}}),Object.defineProperty(t.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(t){if("number"!=typeof t||isNaN(t))throw new Error("The default value must be a real number, not: "+t);this._defaultValue=t}}),Object.defineProperty(t.prototype,"minimum",{get:function(){return this._minimum},set:function(t){if("number"!=typeof t||isNaN(t))throw new Error("Minimum must be a real number, not: "+t);this._minimum=t}}),Object.defineProperty(t.prototype,"maximum",{get:function(){return this._maximum},set:function(t){if("number"!=typeof t||isNaN(t))throw new Error("Maximum must be a real number, not: "+t);this._maximum=t}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(t,e){var n=go.Shape._FigureParameters[t];return n?n[e]:null},go.Shape.setFigureParameter=function(e,n,i){if(!(i instanceof t))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+i);if(i.defaultValue<i.minimum||i.defaultValue>i.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+i.defaultValue);var r=go.Shape._FigureParameters[e];r||(r=[],go.Shape._FigureParameters[e]=r),r[n]=i};var e=[];function n(t,n){var i=e.pop();return void 0===i?new go.Point(t,n):(i.x=t,i.y=n,i)}function i(){var t=e.pop();return void 0===t?new go.Point:t}function r(t){e.push(t)}function o(t,e,n,i,r,o,a,s,l){l||(l=new go.Point);var u,c,h,d=t-n,f=r-a,p=NaN,g=NaN;0===d?0===f?t===n&&(p=t,g=e):g=(c=(o-s)/f)*(p=t)+(o-c*r):g=0===f?(u=(e-i)/d)*(p=r)+(h=e-u*t):(u=(e-i)/d)*(p=(o-(c=(o-s)/f)*r-(h=e-u*t))/(u-c))+h;return l.x=p,l.y=g,l}function a(t,e,n,i,r,o,a,s,l,u,c,h,d,f){var p=1-l,g=t*p+n*l,m=e*p+i*l,v=n*p+r*l,y=i*p+o*l,w=r*p+a*l,b=o*p+s*l,x=g*p+v*l,S=m*p+y*l,P=v*p+w*l,k=y*p+b*l,C=x*p+P*l,A=S*p+k*l;u.x=g,u.y=m,c.x=x,c.y=S,h.x=C,h.y=A,d.x=P,d.y=k,f.x=w,f.y=b}var s=new go.Spot(.156,.156),l=new go.Spot(.844,.844),u=(Math.sqrt(2)-1)/3*4;go.Shape.setFigureParameter("RoundedRectangle",0,new t("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",(function(t,e,n){var i=t?t.parameter1:NaN;(isNaN(i)||i<0)&&(i=5),i=Math.min(i,e/3);var r=(i=Math.min(i,n/3))*u,o=(new go.Geometry).add(new go.PathFigure(i,0,!0).add(new go.PathSegment(go.PathSegment.Line,e-i,0)).add(new go.PathSegment(go.PathSegment.Bezier,e,i,e-r,0,e,r)).add(new go.PathSegment(go.PathSegment.Line,e,n-i)).add(new go.PathSegment(go.PathSegment.Bezier,e-i,n,e,n-r,e-r,n)).add(new go.PathSegment(go.PathSegment.Line,i,n)).add(new go.PathSegment(go.PathSegment.Bezier,0,n-i,r,n,0,n-r)).add(new go.PathSegment(go.PathSegment.Line,0,i)).add(new go.PathSegment(go.PathSegment.Bezier,i,0,0,r,r,0).close()));return r>1&&(o.spot1=new go.Spot(0,0,r,r),o.spot2=new go.Spot(1,1,-r,-r)),o})),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,e,.5*n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close())).setSpots(0,.25,.5,.75)})),go.Shape.defineFigureGenerator("TriangleDown",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,e,0)).add(new go.PathSegment(go.PathSegment.Line,.5*e,n).close())).setSpots(.25,0,.75,.5)})),go.Shape.defineFigureGenerator("TriangleLeft",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(e,n).add(new go.PathSegment(go.PathSegment.Line,0,.5*n)).add(new go.PathSegment(go.PathSegment.Line,e,0).close())).setSpots(.5,.25,1,.75)})),go.Shape.defineFigureGenerator("TriangleUp",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(e,n).add(new go.PathSegment(go.PathSegment.Line,0,n)).add(new go.PathSegment(go.PathSegment.Line,.5*e,0).close())).setSpots(.25,.5,.75,1)})),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(.5*e,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*n)).add(new go.PathSegment(go.PathSegment.Line,.5*e,n)).add(new go.PathSegment(go.PathSegment.Line,e,.5*n).close())).setSpots(.25,.25,.75,.75)})),go.Shape.defineFigureGenerator("LineH",(function(t,e,n){var i=new go.Geometry(go.Geometry.Line);return i.startX=0,i.startY=n/2,i.endX=e,i.endY=n/2,i})),go.Shape.defineFigureGenerator("LineV",(function(t,e,n){var i=new go.Geometry(go.Geometry.Line);return i.startX=e/2,i.startY=0,i.endX=e/2,i.endY=n,i})),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(0,n/2,!1).add(new go.PathSegment(go.PathSegment.Line,e,n/2)).add(new go.PathSegment(go.PathSegment.Move,e/2,0)).add(new go.PathSegment(go.PathSegment.Line,e/2,n)))})),go.Shape.defineFigureGenerator("XLine",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(0,n,!1).add(new go.PathSegment(go.PathSegment.Line,e,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,e,n)))})),go.Shape.defineFigureGenerator("LineRight",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(.25*e,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*e,.5*n)).add(new go.PathSegment(go.PathSegment.Line,.25*e,n)))})),go.Shape.defineFigureGenerator("LineDown",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(0,.25*n,!1).add(new go.PathSegment(go.PathSegment.Line,.5*e,.75*n)).add(new go.PathSegment(go.PathSegment.Line,e,.25*n)))})),go.Shape.defineFigureGenerator("LineLeft",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(.75*e,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*e,.5*n)).add(new go.PathSegment(go.PathSegment.Line,.75*e,n)))})),go.Shape.defineFigureGenerator("LineUp",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(0,.75*n,!1).add(new go.PathSegment(go.PathSegment.Line,.5*e,.25*n)).add(new go.PathSegment(go.PathSegment.Line,e,.75*n)))})),go.Shape.defineFigureGenerator("AsteriskLine",(function(t,e,n){var i=.2/Math.SQRT2;return(new go.Geometry).add(new go.PathFigure(i*e,(1-i)*n,!1).add(new go.PathSegment(go.PathSegment.Line,(1-i)*e,i*n)).add(new go.PathSegment(go.PathSegment.Move,i*e,i*n)).add(new go.PathSegment(go.PathSegment.Line,(1-i)*e,(1-i)*n)).add(new go.PathSegment(go.PathSegment.Move,0,n/2)).add(new go.PathSegment(go.PathSegment.Line,e,n/2)).add(new go.PathSegment(go.PathSegment.Move,e/2,0)).add(new go.PathSegment(go.PathSegment.Line,e/2,n)))})),go.Shape.defineFigureGenerator("CircleLine",(function(t,e,n){var i=e/2,r=(new go.Geometry).add(new go.PathFigure(e,e/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,i,i,i,i).close()));return r.spot1=s,r.spot2=l,r.defaultStretch=go.GraphObject.Uniform,r})),go.Shape.defineFigureGenerator("Line1",(function(t,e,n){var i=new go.Geometry(go.Geometry.Line);return i.startX=0,i.startY=0,i.endX=e,i.endY=n,i})),go.Shape.defineFigureGenerator("Line2",(function(t,e,n){var i=new go.Geometry(go.Geometry.Line);return i.startX=e,i.startY=0,i.endX=0,i.endY=n,i})),go.Shape.defineFigureGenerator("Curve1",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,e,n,u*e,0,e,(1-u)*n)))})),go.Shape.defineFigureGenerator("Curve2",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,e,n,0,u*n,(1-u)*e,n)))})),go.Shape.defineFigureGenerator("Curve3",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(e,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,n,e,u*n,u*e,n)))})),go.Shape.defineFigureGenerator("Curve4",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(e,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,n,(1-u)*e,0,0,(1-u)*n)))})),go.Shape.defineFigureGenerator("TriangleDownLeft",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,e,n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close())).setSpots(0,.5,.5,1)})),go.Shape.defineFigureGenerator("TriangleDownRight",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(e,0,!0).add(new go.PathSegment(go.PathSegment.Line,e,n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close())).setSpots(.5,.5,1,1)})),go.Shape.defineFigureGenerator("TriangleUpLeft",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,e,0)).add(new go.PathSegment(go.PathSegment.Line,0,n).close())).setSpots(0,0,.5,.5)})),go.Shape.defineFigureGenerator("TriangleUpRight",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,e,0)).add(new go.PathSegment(go.PathSegment.Line,e,n).close())).setSpots(.5,0,1,.5)})),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new t("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",(function(t,e,n){var i=t?t.parameter1:NaN;isNaN(i)?i=.1:i<-1?i=-1:i>1&&(i=1);var r=Math.abs(i)*e;if(0===i)return(o=new go.Geometry(go.Geometry.Rectangle)).startX=0,o.startY=0,o.endX=e,o.endY=n,o;var o=new go.Geometry;return i>0?o.add(new go.PathFigure(r,0).add(new go.PathSegment(go.PathSegment.Line,e,0)).add(new go.PathSegment(go.PathSegment.Line,e-r,n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close())):o.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,e-r,0)).add(new go.PathSegment(go.PathSegment.Line,e,n)).add(new go.PathSegment(go.PathSegment.Line,r,n).close())),r<e/2&&o.setSpots(r/e,0,(e-r)/e,1),o})),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new t("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",(function(t,e,n){var i=t?t.parameter1:NaN;isNaN(i)?i=10:i<-e?i=-e:i>e&&(i=e);var r=Math.abs(i);if(0===i)return(o=new go.Geometry(go.Geometry.Rectangle)).startX=0,o.startY=0,o.endX=e,o.endY=n,o;var o=new go.Geometry;return i>0?o.add(new go.PathFigure(r,0).add(new go.PathSegment(go.PathSegment.Line,e,0)).add(new go.PathSegment(go.PathSegment.Line,e-r,n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close())):o.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,e-r,0)).add(new go.PathSegment(go.PathSegment.Line,e,n)).add(new go.PathSegment(go.PathSegment.Line,r,n).close())),r<e/2&&o.setSpots(r/e,0,(e-r)/e,1),o})),go.Shape.setFigureParameter("Trapezoid1",0,new t("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",(function(t,e,n){var i=t?t.parameter1:NaN;isNaN(i)?i=.2:i<.5?i=-.5:i>.5&&(i=.5);var r=Math.abs(i)*e;if(0===i)return(o=new go.Geometry(go.Geometry.Rectangle)).startX=0,o.startY=0,o.endX=e,o.endY=n,o;var o=new go.Geometry;return i>0?o.add(new go.PathFigure(r,0).add(new go.PathSegment(go.PathSegment.Line,e-r,0)).add(new go.PathSegment(go.PathSegment.Line,e,n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close())):o.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,e,0)).add(new go.PathSegment(go.PathSegment.Line,e-r,n)).add(new go.PathSegment(go.PathSegment.Line,r,n).close())),r<e/2&&o.setSpots(r/e,0,(e-r)/e,1),o})),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new t("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",(function(t,e,n){var i=t?t.parameter1:NaN;isNaN(i)?i=20:i<-e?i=-e/2:i>e&&(i=e/2);var r=Math.abs(i);if(0===i)return(o=new go.Geometry(go.Geometry.Rectangle)).startX=0,o.startY=0,o.endX=e,o.endY=n,o;var o=new go.Geometry;return i>0?o.add(new go.PathFigure(r,0).add(new go.PathSegment(go.PathSegment.Line,e-r,0)).add(new go.PathSegment(go.PathSegment.Line,e,n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close())):o.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,e,0)).add(new go.PathSegment(go.PathSegment.Line,e-r,n)).add(new go.PathSegment(go.PathSegment.Line,r,n).close())),r<e/2&&o.setSpots(r/e,0,(e-r)/e,1),o})),go.Shape.setFigureParameter("ManualOperation",0,new t("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",(function(t,e,n){var i=t?t.parameter1:NaN;isNaN(i)?i=10:i<-e?i=-e/2:i>e&&(i=e/2);var r=Math.abs(i);if(0===i)return(o=new go.Geometry(go.Geometry.Rectangle)).startX=0,o.startY=0,o.endX=e,o.endY=n,o;var o=new go.Geometry;return i>0?o.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,e,0)).add(new go.PathSegment(go.PathSegment.Line,e-r,n)).add(new go.PathSegment(go.PathSegment.Line,r,n).close())):o.add(new go.PathFigure(r,0).add(new go.PathSegment(go.PathSegment.Line,e-r,0)).add(new go.PathSegment(go.PathSegment.Line,e,n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close())),r<e/2&&o.setSpots(r/e,0,(e-r)/e,1),o}));var c=[];function h(){var t=c.pop();return void 0===t?[]:t}function d(t){t.length=0,c.push(t)}function f(t){for(var e=h(),n=1.5*Math.PI,i=0,r=0;r<t;r++)i=2*Math.PI/t*r+n,e[r]=new go.Point(.5+.5*Math.cos(i),.5+.5*Math.sin(i));return e.push(e[0]),e}function p(t){var e=g(t),n=h();n[0]=e[0];for(var i=1,r=1;i<e.length;i+=2,r+=3)n[r]=e[i],n[r+1]=e[i],n[r+2]=e[i+1];return d(e),n}function g(t){for(var e=f(t),n=h(),i=Math.floor(e.length/2),r=e.length-1,a=t%2==0?2:1,s=0;s<r;s++){var l=e[s],u=e[s+1],c=e[(i+s-1)%r],p=e[(i+s+a)%r];n[2*s]=l,n[2*s+1]=o(l.x,l.y,c.x,c.y,u.x,u.y,p.x,p.y,new go.Point)}return n[n.length]=n[0],d(e),n}go.Shape.defineFigureGenerator("Pentagon",(function(t,e,n){var i=f(5),r=new go.Geometry,o=new go.PathFigure(i[0].x*e,i[0].y*n,!0);r.add(o);for(var a=1;a<5;a++)o.add(new go.PathSegment(go.PathSegment.Line,i[a].x*e,i[a].y*n));return o.add(new go.PathSegment(go.PathSegment.Line,i[0].x*e,i[0].y*n).close()),d(i),r.spot1=new go.Spot(.2,.22),r.spot2=new go.Spot(.8,.9),r})),go.Shape.defineFigureGenerator("Hexagon",(function(t,e,n){var i=f(6),r=new go.Geometry,o=new go.PathFigure(i[0].x*e,i[0].y*n,!0);r.add(o);for(var a=1;a<6;a++)o.add(new go.PathSegment(go.PathSegment.Line,i[a].x*e,i[a].y*n));return o.add(new go.PathSegment(go.PathSegment.Line,i[0].x*e,i[0].y*n).close()),d(i),r.spot1=new go.Spot(.07,.25),r.spot2=new go.Spot(.93,.75),r})),go.Shape.defineFigureGenerator("Heptagon",(function(t,e,n){var i=f(7),r=new go.Geometry,o=new go.PathFigure(i[0].x*e,i[0].y*n,!0);r.add(o);for(var a=1;a<7;a++)o.add(new go.PathSegment(go.PathSegment.Line,i[a].x*e,i[a].y*n));return o.add(new go.PathSegment(go.PathSegment.Line,i[0].x*e,i[0].y*n).close()),d(i),r.spot1=new go.Spot(.2,.15),r.spot2=new go.Spot(.8,.85),r})),go.Shape.defineFigureGenerator("Octagon",(function(t,e,n){var i=f(8),r=new go.Geometry,o=new go.PathFigure(i[0].x*e,i[0].y*n,!0);r.add(o);for(var a=1;a<8;a++)o.add(new go.PathSegment(go.PathSegment.Line,i[a].x*e,i[a].y*n));return o.add(new go.PathSegment(go.PathSegment.Line,i[0].x*e,i[0].y*n).close()),d(i),r.spot1=new go.Spot(.15,.15),r.spot2=new go.Spot(.85,.85),r})),go.Shape.defineFigureGenerator("Nonagon",(function(t,e,n){var i=f(9),r=new go.Geometry,o=new go.PathFigure(i[0].x*e,i[0].y*n,!0);r.add(o);for(var a=1;a<9;a++)o.add(new go.PathSegment(go.PathSegment.Line,i[a].x*e,i[a].y*n));return o.add(new go.PathSegment(go.PathSegment.Line,i[0].x*e,i[0].y*n).close()),d(i),r.spot1=new go.Spot(.17,.13),r.spot2=new go.Spot(.82,.82),r})),go.Shape.defineFigureGenerator("Decagon",(function(t,e,n){var i=f(10),r=new go.Geometry,o=new go.PathFigure(i[0].x*e,i[0].y*n,!0);r.add(o);for(var a=1;a<10;a++)o.add(new go.PathSegment(go.PathSegment.Line,i[a].x*e,i[a].y*n));return o.add(new go.PathSegment(go.PathSegment.Line,i[0].x*e,i[0].y*n).close()),d(i),r.spot1=new go.Spot(.16,.16),r.spot2=new go.Spot(.84,.84),r})),go.Shape.defineFigureGenerator("Dodecagon",(function(t,e,n){var i=f(12),r=new go.Geometry,o=new go.PathFigure(i[0].x*e,i[0].y*n,!0);r.add(o);for(var a=1;a<12;a++)o.add(new go.PathSegment(go.PathSegment.Line,i[a].x*e,i[a].y*n));return o.add(new go.PathSegment(go.PathSegment.Line,i[0].x*e,i[0].y*n).close()),d(i),r.spot1=new go.Spot(.16,.16),r.spot2=new go.Spot(.84,.84),r})),go.Shape.defineFigureGenerator("FivePointedStar",(function(t,e,n){var i=g(5),r=new go.Geometry,o=new go.PathFigure(i[0].x*e,i[0].y*n,!0);r.add(o);for(var a=1;a<10;a++)o.add(new go.PathSegment(go.PathSegment.Line,i[a].x*e,i[a].y*n));return o.add(new go.PathSegment(go.PathSegment.Line,i[0].x*e,i[0].y*n).close()),d(i),r.spot1=new go.Spot(.266,.333),r.spot2=new go.Spot(.733,.733),r})),go.Shape.defineFigureGenerator("SixPointedStar",(function(t,e,n){var i=g(6),r=new go.Geometry,o=new go.PathFigure(i[0].x*e,i[0].y*n,!0);r.add(o);for(var a=1;a<12;a++)o.add(new go.PathSegment(go.PathSegment.Line,i[a].x*e,i[a].y*n));return o.add(new go.PathSegment(go.PathSegment.Line,i[0].x*e,i[0].y*n).close()),d(i),r.spot1=new go.Spot(.17,.25),r.spot2=new go.Spot(.83,.75),r})),go.Shape.defineFigureGenerator("SevenPointedStar",(function(t,e,n){var i=g(7),r=new go.Geometry,o=new go.PathFigure(i[0].x*e,i[0].y*n,!0);r.add(o);for(var a=1;a<14;a++)o.add(new go.PathSegment(go.PathSegment.Line,i[a].x*e,i[a].y*n));return o.add(new go.PathSegment(go.PathSegment.Line,i[0].x*e,i[0].y*n).close()),d(i),r.spot1=new go.Spot(.222,.277),r.spot2=new go.Spot(.777,.666),r})),go.Shape.defineFigureGenerator("EightPointedStar",(function(t,e,n){var i=g(8),r=new go.Geometry,o=new go.PathFigure(i[0].x*e,i[0].y*n,!0);r.add(o);for(var a=1;a<16;a++)o.add(new go.PathSegment(go.PathSegment.Line,i[a].x*e,i[a].y*n));return o.add(new go.PathSegment(go.PathSegment.Line,i[0].x*e,i[0].y*n).close()),d(i),r.spot1=new go.Spot(.25,.25),r.spot2=new go.Spot(.75,.75),r})),go.Shape.defineFigureGenerator("NinePointedStar",(function(t,e,n){var i=g(9),r=new go.Geometry,o=new go.PathFigure(i[0].x*e,i[0].y*n,!0);r.add(o);for(var a=1;a<18;a++)o.add(new go.PathSegment(go.PathSegment.Line,i[a].x*e,i[a].y*n));return o.add(new go.PathSegment(go.PathSegment.Line,i[0].x*e,i[0].y*n).close()),d(i),r.spot1=new go.Spot(.222,.277),r.spot2=new go.Spot(.777,.666),r})),go.Shape.defineFigureGenerator("TenPointedStar",(function(t,e,n){var i=g(10),r=new go.Geometry,o=new go.PathFigure(i[0].x*e,i[0].y*n,!0);r.add(o);for(var a=1;a<20;a++)o.add(new go.PathSegment(go.PathSegment.Line,i[a].x*e,i[a].y*n));return o.add(new go.PathSegment(go.PathSegment.Line,i[0].x*e,i[0].y*n).close()),d(i),r.spot1=new go.Spot(.281,.261),r.spot2=new go.Spot(.723,.748),r})),go.Shape.defineFigureGenerator("FivePointedBurst",(function(t,e,n){var i=p(5),r=new go.Geometry,o=new go.PathFigure(i[0].x*e,i[0].y*n,!0);r.add(o);for(var a=1;a<i.length;a+=3)o.add(new go.PathSegment(go.PathSegment.Bezier,i[a+2].x*e,i[a+2].y*n,i[a].x*e,i[a].y*n,i[a+1].x*e,i[a+1].y*n));return o.segments.last().close(),d(i),r.spot1=new go.Spot(.222,.277),r.spot2=new go.Spot(.777,.777),r})),go.Shape.defineFigureGenerator("SixPointedBurst",(function(t,e,n){var i=p(6),r=new go.Geometry,o=new go.PathFigure(i[0].x*e,i[0].y*n,!0);r.add(o);for(var a=1;a<i.length;a+=3)o.add(new go.PathSegment(go.PathSegment.Bezier,i[a+2].x*e,i[a+2].y*n,i[a].x*e,i[a].y*n,i[a+1].x*e,i[a+1].y*n));return o.segments.last().close(),d(i),r.spot1=new go.Spot(.17,.222),r.spot2=new go.Spot(.833,.777),r})),go.Shape.defineFigureGenerator("SevenPointedBurst",(function(t,e,n){var i=p(7),r=new go.Geometry,o=new go.PathFigure(i[0].x*e,i[0].y*n,!0);r.add(o);for(var a=1;a<i.length;a+=3)o.add(new go.PathSegment(go.PathSegment.Bezier,i[a+2].x*e,i[a+2].y*n,i[a].x*e,i[a].y*n,i[a+1].x*e,i[a+1].y*n));return o.segments.last().close(),d(i),r.spot1=new go.Spot(.222,.222),r.spot2=new go.Spot(.777,.777),r})),go.Shape.defineFigureGenerator("EightPointedBurst",(function(t,e,n){var i=p(8),r=new go.Geometry,o=new go.PathFigure(i[0].x*e,i[0].y*n,!0);r.add(o);for(var a=1;a<i.length;a+=3)o.add(new go.PathSegment(go.PathSegment.Bezier,i[a+2].x*e,i[a+2].y*n,i[a].x*e,i[a].y*n,i[a+1].x*e,i[a+1].y*n));return o.segments.last().close(),d(i),r.spot1=new go.Spot(.222,.222),r.spot2=new go.Spot(.777,.777),r})),go.Shape.defineFigureGenerator("NinePointedBurst",(function(t,e,n){var i=p(9),r=new go.Geometry,o=new go.PathFigure(i[0].x*e,i[0].y*n,!0);r.add(o);for(var a=1;a<i.length;a+=3)o.add(new go.PathSegment(go.PathSegment.Bezier,i[a+2].x*e,i[a+2].y*n,i[a].x*e,i[a].y*n,i[a+1].x*e,i[a+1].y*n));return o.segments.last().close(),d(i),r.spot1=new go.Spot(.222,.222),r.spot2=new go.Spot(.777,.777),r})),go.Shape.defineFigureGenerator("TenPointedBurst",(function(t,e,n){var i=p(10),r=new go.Geometry,o=new go.PathFigure(i[0].x*e,i[0].y*n,!0);r.add(o);for(var a=1;a<i.length;a+=3)o.add(new go.PathSegment(go.PathSegment.Bezier,i[a+2].x*e,i[a+2].y*n,i[a].x*e,i[a].y*n,i[a+1].x*e,i[a+1].y*n));return o.segments.last().close(),d(i),r.spot1=new go.Spot(.222,.222),r.spot2=new go.Spot(.777,.777),r})),go.Shape.setFigureParameter("FramedRectangle",0,new t("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new t("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",(function(t,e,n){var i=t?t.parameter1:NaN,r=t?t.parameter2:NaN;isNaN(i)&&(i=8),isNaN(r)&&(r=8);var o=new go.Geometry,a=new go.PathFigure(0,0,!0);return o.add(a),a.add(new go.PathSegment(go.PathSegment.Line,e,0)),a.add(new go.PathSegment(go.PathSegment.Line,e,n)),a.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),i<e/2&&r<n/2&&(a.add(new go.PathSegment(go.PathSegment.Move,i,r)),a.add(new go.PathSegment(go.PathSegment.Line,i,n-r)),a.add(new go.PathSegment(go.PathSegment.Line,e-i,n-r)),a.add(new go.PathSegment(go.PathSegment.Line,e-i,r).close())),o.setSpots(0,0,1,1,i,r,-i,-r),o})),go.Shape.setFigureParameter("Ring",0,new t("Thickness",8)),go.Shape.defineFigureGenerator("Ring",(function(t,e,n){var i=t?t.parameter1:NaN;(isNaN(i)||i<0)&&(i=8);var r=e/2,o=new go.Geometry,a=new go.PathFigure(e,e/2,!0);o.add(a),a.add(new go.PathSegment(go.PathSegment.Arc,0,360,r,r,r,r).close());var u=Math.max(r-i,0);return u>0&&(a.add(new go.PathSegment(go.PathSegment.Move,e/2+u,e/2)),a.add(new go.PathSegment(go.PathSegment.Arc,0,-360,r,r,u,u).close())),o.spot1=s,o.spot2=l,o.defaultStretch=go.GraphObject.Uniform,o})),go.Shape.defineFigureGenerator("Cloud",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(.08034461*e,.1944299*n,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*e,.05349299*n,-.09239631*e,.07836421*n,.1406031*e,-.0542823*n)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*e,.074219*n,.2450511*e,-.00697547*n,.3776197*e,-.01112067*n)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*e,.07004196*n,.4539471*e,0,.6066018*e,-.02526587*n)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*e,.08370865*n,.6914277*e,-.01904177*n,.8921095*e,-.01220843*n)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*e,.3194596*n,1.036446*e,.04105738*n,1.020377*e,.3022052*n)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*e,.562044*n,1.04448*e,.360238*n,.992256*e,.5219009*n)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*e,.8217117*n,1.032337*e,.5771781*n,1.018411*e,.8120651*n)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*e,.9156953*n,1.028411*e,.9571472*n,.8556702*e,1.052487*n)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*e,.9310455*n,.7431877*e,1.009325*n,.5624123*e,1.021761*n)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*e,.9344623*n,.4820677*e,1.031761*n,.3030112*e,1.002796*n)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*e,.870098*n,.2329994*e,1.01518*n,.03213784*e,1.01518*n)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*e,.6545475*n,-.02812061*e,.9032597*n,-.01205169*e,.6835638*n)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*e,.4265613*n,-.01812061*e,.6089503*n,-.00606892*e,.4555777*n)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*e,.1944299*n,-.01606892*e,.3892545*n,-.01205169*e,.1944299*n))).setSpots(.1,.1,.9,.9)})),go.Shape.defineFigureGenerator("StopSign",(function(t,e,n){var i=1/(Math.SQRT2+2);return(new go.Geometry).add(new go.PathFigure(i*e,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-i)*e,0)).add(new go.PathSegment(go.PathSegment.Line,e,i*n)).add(new go.PathSegment(go.PathSegment.Line,e,(1-i)*n)).add(new go.PathSegment(go.PathSegment.Line,(1-i)*e,n)).add(new go.PathSegment(go.PathSegment.Line,i*e,n)).add(new go.PathSegment(go.PathSegment.Line,0,(1-i)*n)).add(new go.PathSegment(go.PathSegment.Line,0,i*n).close())).setSpots(i/2,i/2,1-i/2,1-i/2)})),go.Shape.setFigureParameter("Pie",0,new t("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new t("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",(function(t,e,n){var i=t?t.parameter1:NaN,r=t?t.parameter2:NaN;isNaN(i)&&(i=0),isNaN(r)&&(r=315);var o=i%360;o<0&&(o+=360);var a=r%360,s=Math.min(e,n)/2;return(new go.Geometry).add(new go.PathFigure(s,s).add(new go.PathSegment(go.PathSegment.Arc,o,a,s,s,s,s).close()))})),go.Shape.defineFigureGenerator("PiePiece",(function(t,e,n){var i=u/Math.SQRT2*.5,r=Math.SQRT2/2,o=1-Math.SQRT2/2;return(new go.Geometry).add(new go.PathFigure(e,n,!0).add(new go.PathSegment(go.PathSegment.Bezier,r*e,o*n,e,(1-i)*n,(r+i)*e,(o+i)*n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close()))})),go.Shape.setFigureParameter("ThickCross",0,new t("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",(function(t,e,n){var i=t?t.parameter1:NaN;(isNaN(i)||i<0)&&(i=30);var r=Math.min(i,e)/2,o=e/2,a=n/2;return(new go.Geometry).add(new go.PathFigure(o-r,0,!0).add(new go.PathSegment(go.PathSegment.Line,o+r,0)).add(new go.PathSegment(go.PathSegment.Line,o+r,a-r)).add(new go.PathSegment(go.PathSegment.Line,e,a-r)).add(new go.PathSegment(go.PathSegment.Line,e,a+r)).add(new go.PathSegment(go.PathSegment.Line,o+r,a+r)).add(new go.PathSegment(go.PathSegment.Line,o+r,n)).add(new go.PathSegment(go.PathSegment.Line,o-r,n)).add(new go.PathSegment(go.PathSegment.Line,o-r,a+r)).add(new go.PathSegment(go.PathSegment.Line,0,a+r)).add(new go.PathSegment(go.PathSegment.Line,0,a-r)).add(new go.PathSegment(go.PathSegment.Line,o-r,a-r).close()))})),go.Shape.setFigureParameter("ThinCross",0,new t("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",(function(t,e,n){var i=t?t.parameter1:NaN;(isNaN(i)||i<0)&&(i=10);var r=Math.min(i,e)/2,o=e/2,a=n/2;return(new go.Geometry).add(new go.PathFigure(o-r,0,!0).add(new go.PathSegment(go.PathSegment.Line,o+r,0)).add(new go.PathSegment(go.PathSegment.Line,o+r,a-r)).add(new go.PathSegment(go.PathSegment.Line,e,a-r)).add(new go.PathSegment(go.PathSegment.Line,e,a+r)).add(new go.PathSegment(go.PathSegment.Line,o+r,a+r)).add(new go.PathSegment(go.PathSegment.Line,o+r,n)).add(new go.PathSegment(go.PathSegment.Line,o-r,n)).add(new go.PathSegment(go.PathSegment.Line,o-r,a+r)).add(new go.PathSegment(go.PathSegment.Line,0,a+r)).add(new go.PathSegment(go.PathSegment.Line,0,a-r)).add(new go.PathSegment(go.PathSegment.Line,o-r,a-r).close()))})),go.Shape.setFigureParameter("ThickX",0,new t("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",(function(t,e,n){var i=t?t.parameter1:NaN;if((isNaN(i)||i<0)&&(i=30),0===e||0===n)return(u=new go.Geometry(go.Geometry.Rectangle)).startX=0,u.startY=0,u.endX=e,u.endY=n,u;var r=e/2,o=n/2,a=Math.atan2(n,e),s=i-Math.min(Math.cos(a)*i/2,r),l=i-Math.min(Math.sin(a)*i/2,o),u=new go.Geometry,c=new go.PathFigure(s,0,!0);return u.add(c),c.add(new go.PathSegment(go.PathSegment.Line,r,.2*n)),c.add(new go.PathSegment(go.PathSegment.Line,e-s,0)),c.add(new go.PathSegment(go.PathSegment.Line,e,l)),c.add(new go.PathSegment(go.PathSegment.Line,.8*e,o)),c.add(new go.PathSegment(go.PathSegment.Line,e,n-l)),c.add(new go.PathSegment(go.PathSegment.Line,e-s,n)),c.add(new go.PathSegment(go.PathSegment.Line,r,.8*n)),c.add(new go.PathSegment(go.PathSegment.Line,s,n)),c.add(new go.PathSegment(go.PathSegment.Line,0,n-l)),c.add(new go.PathSegment(go.PathSegment.Line,.2*e,o)),c.add(new go.PathSegment(go.PathSegment.Line,0,l).close()),u})),go.Shape.setFigureParameter("ThinX",0,new t("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",(function(t,e,n){var i=t?t.parameter1:NaN;(isNaN(i)||i<0)&&(i=10);var r=new go.Geometry,o=new go.PathFigure(.1*e,0,!0);return r.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.5*e,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,.9*e,0)),o.add(new go.PathSegment(go.PathSegment.Line,e,.1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.6*e,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,e,.9*n)),o.add(new go.PathSegment(go.PathSegment.Line,.9*e,n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*e,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,.1*e,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.9*n)),o.add(new go.PathSegment(go.PathSegment.Line,.4*e,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.1*n).close()),r})),go.Shape.setFigureParameter("SquareIBeam",0,new t("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",(function(t,e,n){var i=t?t.parameter1:NaN;isNaN(i)&&(i=.2);var r=new go.Geometry,o=new go.PathFigure(0,0,!0);return r.add(o),o.add(new go.PathSegment(go.PathSegment.Line,e,0)),o.add(new go.PathSegment(go.PathSegment.Line,e,i*n)),o.add(new go.PathSegment(go.PathSegment.Line,(.5+i/2)*e,i*n)),o.add(new go.PathSegment(go.PathSegment.Line,(.5+i/2)*e,(1-i)*n)),o.add(new go.PathSegment(go.PathSegment.Line,e,(1-i)*n)),o.add(new go.PathSegment(go.PathSegment.Line,e,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,(1-i)*n)),o.add(new go.PathSegment(go.PathSegment.Line,(.5-i/2)*e,(1-i)*n)),o.add(new go.PathSegment(go.PathSegment.Line,(.5-i/2)*e,i*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,i*n).close()),r})),go.Shape.setFigureParameter("RoundedIBeam",0,new t("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",(function(t,e,n){var i=t?t.parameter1:NaN;isNaN(i)&&(i=.5);var r=new go.Geometry,o=new go.PathFigure(0,0,!0);return r.add(o),o.add(new go.PathSegment(go.PathSegment.Line,e,0)),o.add(new go.PathSegment(go.PathSegment.Bezier,e,n,Math.abs(1-i)*e,.25*n,Math.abs(1-i)*e,.75*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Bezier,0,0,i*e,.75*n,i*e,.25*n).close()),r})),go.Shape.defineFigureGenerator("HalfEllipse",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,e,.5*n,u*e,0,e,(.5-u/2)*n)).add(new go.PathSegment(go.PathSegment.Bezier,0,n,e,(.5+u/2)*n,u*e,n).close())).setSpots(0,.156,.844,.844)})),go.Shape.defineFigureGenerator("Crescent",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,n,e,0,e,n)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*e,.75*n,.5*e,.25*n).close())).setSpots(.311,.266,.744,.744)})),go.Shape.defineFigureGenerator("Heart",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(.5*e,n,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*n,.1*e,.8*n,0,.5*n)).add(new go.PathSegment(go.PathSegment.Bezier,.5*e,.3*n,0,0,.45*e,0)).add(new go.PathSegment(go.PathSegment.Bezier,e,.3*n,.55*e,0,e,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*e,n,e,.5*n,.9*e,.8*n).close())).setSpots(.14,.29,.86,.78)})),go.Shape.defineFigureGenerator("Spade",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(.5*e,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*e,.01*n)).add(new go.PathSegment(go.PathSegment.Bezier,e,.5*n,.6*e,.2*n,e,.25*n)).add(new go.PathSegment(go.PathSegment.Bezier,.55*e,.7*n,e,.8*n,.6*e,.8*n)).add(new go.PathSegment(go.PathSegment.Bezier,.75*e,n,.5*e,.75*n,.55*e,.95*n)).add(new go.PathSegment(go.PathSegment.Line,.25*e,n)).add(new go.PathSegment(go.PathSegment.Bezier,.45*e,.7*n,.45*e,.95*n,.5*e,.75*n)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*n,.4*e,.8*n,0,.8*n)).add(new go.PathSegment(go.PathSegment.Bezier,.49*e,.01*n,0,.25*n,.4*e,.2*n).close())).setSpots(.14,.26,.86,.78)})),go.Shape.defineFigureGenerator("Club",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(.4*e,.6*n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Bezier,.15*e,n,.5*e,.75*n,.45*e,.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,.85*e,n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.6*e,.6*n,.55*e,.95*n,.5*e,.75*n));var o=.2,a=.3,s=0,l=o*u;return r.add(new go.PathSegment(go.PathSegment.Bezier,(.5+a)*e,(.5+o+s)*n,(.5-o+a)*e,(.5+l+s)*n,(.5-l+a)*e,(.5+o+s)*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,(.5+o+a)*e,(.5+s)*n,(.5+l+a)*e,(.5+o+s)*n,(.5+o+a)*e,(.5+l+s)*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,(.5+a)*e,(.5-o+s)*n,(.5+o+a)*e,(.5-l+s)*n,(.5+l+a)*e,(.5-o+s)*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.65*e,.36771243*n,(.5-l+a)*e,(.5-o+s)*n,(.5-o+a+.05)*e,(.5-l+s-.02)*n)),a=0,s=-.3,l=(o=.2)*u,r.add(new go.PathSegment(go.PathSegment.Bezier,(.5+o+a)*e,(.5+s)*n,(.5+l+a)*e,(.5+o+s)*n,(.5+o+a)*e,(.5+l+s)*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,(.5+a)*e,(.5-o+s)*n,(.5+o+a)*e,(.5-l+s)*n,(.5+l+a)*e,(.5-o+s)*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,(.5-o+a)*e,(.5+s)*n,(.5-l+a)*e,(.5-o+s)*n,(.5-o+a)*e,(.5-l+s)*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,(.5-l+a)*e,(.5+o+s)*n,(.5-o+a)*e,(.5+l+s)*n,(.5-l+a)*e,(.5+o+s)*n)),a=-.3,s=0,l=(o=.2)*u,r.add(new go.PathSegment(go.PathSegment.Bezier,(.5+a)*e,(.5-o+s)*n,(.5+o+a-.05)*e,(.5-l+s-.02)*n,(.5+l+a)*e,(.5-o+s)*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,(.5-o+a)*e,(.5+s)*n,(.5-l+a)*e,(.5-o+s)*n,(.5-o+a)*e,(.5-l+s)*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,(.5+a)*e,(.5+o+s)*n,(.5-o+a)*e,(.5+l+s)*n,(.5-l+a)*e,(.5+o+s)*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.4*e,.6*n,(.5+l+a)*e,(.5+o+s)*n,(.5+o+a)*e,(.5+l+s)*n).close()),i.setSpots(.06,.33,.93,.68),i})),go.Shape.defineFigureGenerator("YinYang",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(.5*e,0,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Arc,270,180,.5*e,.5*e,.5*e,.5*e)),r.add(new go.PathSegment(go.PathSegment.Arc,90,-180,.5*e,.75*e,.25*e,.25*e)),r.add(new go.PathSegment(go.PathSegment.Arc,90,180,.5*e,.25*e,.25*e,.25*e));var o=.1,a=.5,s=.25;return r.add(new go.PathSegment(go.PathSegment.Move,.6*e,s*n)),r.add(new go.PathSegment(go.PathSegment.Arc,0,-360,e*a,n*s,o*e,o*e).close()),r=new go.PathFigure(.5*e,0,!1),i.add(r),r.add(new go.PathSegment(go.PathSegment.Arc,270,-180,.5*e,.5*e,.5*e,.5*e)),s=.75,r=new go.PathFigure(.6*e,s*n,!0),i.add(r),r.add(new go.PathSegment(go.PathSegment.Arc,0,360,e*a,n*s,o*e,o*e).close()),i.defaultStretch=go.GraphObject.Uniform,i})),go.Shape.defineFigureGenerator("Peace",(function(t,e,n){var i=.8535533905932737,r=.5*e,o=.5*n;return(new go.Geometry).add(new go.PathFigure(r,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,r,o,r,o)).add(new go.PathSegment(go.PathSegment.Line,r,n)).add(new go.PathSegment(go.PathSegment.Move,r,o)).add(new go.PathSegment(go.PathSegment.Line,(1-i)*e,i*n)).add(new go.PathSegment(go.PathSegment.Move,r,o)).add(new go.PathSegment(go.PathSegment.Line,i*e,i*n)))})),go.Shape.defineFigureGenerator("NotAllowed",(function(t,e,n){var o=new go.Geometry,s=.5*u,l=.5,c=.5,h=.5,d=new go.PathFigure(c*e,(h-l)*n);o.add(d),d.add(new go.PathSegment(go.PathSegment.Bezier,(c-l)*e,h*n,(c-s)*e,(h-l)*n,(c-l)*e,(h-s)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,c*e,(h+l)*n,(c-l)*e,(h+s)*n,(c-s)*e,(h+l)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,(c+l)*e,h*n,(c+s)*e,(h+l)*n,(c+l)*e,(h+s)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,c*e,(h-l)*n,(c+l)*e,(h-s)*n,(c+s)*e,(h-l)*n)),l=.4,s=.4*u;var f=i(),p=i(),g=i(),m=i();a(c,h-l,c+s,h-l,c+l,h-s,c+l,h,.42,f,p,g,m,m);var v=i(),y=i(),w=i();a(c,h-l,c+s,h-l,c+l,h-s,c+l,h,.58,m,m,w,v,y);var b=i(),x=i(),S=i();a(c,h+l,c-s,h+l,c-l,h+s,c-l,h,.42,b,x,S,m,m);var P=i(),k=i(),C=i();return a(c,h+l,c-s,h+l,c-l,h+s,c-l,h,.58,m,m,C,P,k),d.add(new go.PathSegment(go.PathSegment.Move,C.x*e,C.y*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,(c-l)*e,h*n,P.x*e,P.y*n,k.x*e,k.y*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,c*e,(h-l)*n,(c-l)*e,(h-s)*n,(c-s)*e,(h-l)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,g.x*e,g.y*n,f.x*e,f.y*n,p.x*e,p.y*n)),d.add(new go.PathSegment(go.PathSegment.Line,C.x*e,C.y*n).close()),d.add(new go.PathSegment(go.PathSegment.Move,S.x*e,S.y*n)),d.add(new go.PathSegment(go.PathSegment.Line,w.x*e,w.y*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,(c+l)*e,h*n,v.x*e,v.y*n,y.x*e,y.y*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,c*e,(h+l)*n,(c+l)*e,(h+s)*n,(c+s)*e,(h+l)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,S.x*e,S.y*n,b.x*e,b.y*n,x.x*e,x.y*n).close()),r(f),r(p),r(g),r(m),r(v),r(y),r(w),r(b),r(x),r(S),r(P),r(k),r(C),o.defaultStretch=go.GraphObject.Uniform,o})),go.Shape.defineFigureGenerator("Fragile",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*e,0)).add(new go.PathSegment(go.PathSegment.Line,.2*e,.15*n)).add(new go.PathSegment(go.PathSegment.Line,.3*e,.25*n)).add(new go.PathSegment(go.PathSegment.Line,.29*e,.33*n)).add(new go.PathSegment(go.PathSegment.Line,.35*e,.25*n)).add(new go.PathSegment(go.PathSegment.Line,.3*e,.15*n)).add(new go.PathSegment(go.PathSegment.Line,.4*e,0)).add(new go.PathSegment(go.PathSegment.Line,e,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*e,.5*n,e,.25*n,.75*e,.5*n)).add(new go.PathSegment(go.PathSegment.Line,.55*e,.9*n)).add(new go.PathSegment(go.PathSegment.Line,.7*e,.9*n)).add(new go.PathSegment(go.PathSegment.Line,.7*e,n)).add(new go.PathSegment(go.PathSegment.Line,.3*e,n)).add(new go.PathSegment(go.PathSegment.Line,.3*e,.9*n)).add(new go.PathSegment(go.PathSegment.Line,.45*e,.9*n)).add(new go.PathSegment(go.PathSegment.Line,.45*e,.5*n)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*e,.5*n,0,.25*n).close()))})),go.Shape.setFigureParameter("HourGlass",0,new t("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",(function(t,e,n){var i=t?t.parameter1:NaN;(isNaN(i)||i<0)&&(i=30),i>e&&(i=e);var r=(e-i)/2,o=r+i;return(new go.Geometry).add(new go.PathFigure(o,.5*n).add(new go.PathSegment(go.PathSegment.Line,e,n)).add(new go.PathSegment(go.PathSegment.Line,0,n)).add(new go.PathSegment(go.PathSegment.Line,r,.5*n)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,e,0).close()))})),go.Shape.defineFigureGenerator("Lightning",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(0,.55*n).add(new go.PathSegment(go.PathSegment.Line,.6*e,0)).add(new go.PathSegment(go.PathSegment.Line,.3*e,.45*n)).add(new go.PathSegment(go.PathSegment.Line,e,.45*n)).add(new go.PathSegment(go.PathSegment.Line,.4*e,n)).add(new go.PathSegment(go.PathSegment.Line,.7*e,.55*n).close()))})),go.Shape.defineFigureGenerator("GenderMale",(function(t,e,o){var s=new go.Geometry,l=.4*u,c=.4,h=.5,d=.5,f=i(),p=i(),g=i(),m=i(),v=new go.PathFigure((h-c)*e,d*o,!1);s.add(v),v.add(new go.PathSegment(go.PathSegment.Bezier,h*e,(d-c)*o,(h-c)*e,(d-l)*o,(h-l)*e,(d-c)*o)),a(h,d-c,h+l,d-c,h+c,d-l,h+c,d,.44,g,m,p,f,f),v.add(new go.PathSegment(go.PathSegment.Bezier,p.x*e,p.y*o,g.x*e,g.y*o,m.x*e,m.y*o));var y=n(p.x,p.y);a(h,d-c,h+l,d-c,h+c,d-l,h+c,d,.56,f,f,p,g,m);var w=n(p.x,p.y);v.add(new go.PathSegment(go.PathSegment.Line,(.1*y.x+.855)*e,.1*y.y*o)),v.add(new go.PathSegment(go.PathSegment.Line,.85*e,.1*y.y*o)),v.add(new go.PathSegment(go.PathSegment.Line,.85*e,0)),v.add(new go.PathSegment(go.PathSegment.Line,e,0)),v.add(new go.PathSegment(go.PathSegment.Line,e,.15*o)),v.add(new go.PathSegment(go.PathSegment.Line,(.1*w.x+.9)*e,.15*o)),v.add(new go.PathSegment(go.PathSegment.Line,(.1*w.x+.9)*e,(.1*w.y+.05*.9)*o)),v.add(new go.PathSegment(go.PathSegment.Line,w.x*e,w.y*o)),v.add(new go.PathSegment(go.PathSegment.Bezier,(h+c)*e,d*o,g.x*e,g.y*o,m.x*e,m.y*o)),v.add(new go.PathSegment(go.PathSegment.Bezier,h*e,(d+c)*o,(h+c)*e,(d+l)*o,(h+l)*e,(d+c)*o)),v.add(new go.PathSegment(go.PathSegment.Bezier,(h-c)*e,d*o,(h-l)*e,(d+c)*o,(h-c)*e,(d+l)*o)),c=.35,l=.35*u;var b=new go.PathFigure(h*e,(d-c)*o,!1);s.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,(h-c)*e,d*o,(h-l)*e,(d-c)*o,(h-c)*e,(d-l)*o)),b.add(new go.PathSegment(go.PathSegment.Bezier,h*e,(d+c)*o,(h-c)*e,(d+l)*o,(h-l)*e,(d+c)*o)),b.add(new go.PathSegment(go.PathSegment.Bezier,(h+c)*e,d*o,(h+l)*e,(d+c)*o,(h+c)*e,(d+l)*o)),b.add(new go.PathSegment(go.PathSegment.Bezier,h*e,(d-c)*o,(h+c)*e,(d-l)*o,(h+l)*e,(d-c)*o));var x=new go.PathFigure((h-c)*e,d*o,!1);return s.add(x),r(f),r(p),r(g),r(m),r(y),r(w),s.spot1=new go.Spot(.202,.257),s.spot2=new go.Spot(.792,.739),s.defaultStretch=go.GraphObject.Uniform,s})),go.Shape.defineFigureGenerator("GenderFemale",(function(t,e,n){var i=new go.Geometry,r=.375,o=0,a=-.125,s=r*u,l=new go.PathFigure((.525+o)*e,(.5+r+a)*n,!1);i.add(l),l.add(new go.PathSegment(go.PathSegment.Bezier,(.5+r+o)*e,(.5+a)*n,(.5+s+o)*e,(.5+r+a)*n,(.5+r+o)*e,(.5+s+a)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,(.5+o)*e,(.5-r+a)*n,(.5+r+o)*e,(.5-s+a)*n,(.5+s+o)*e,(.5-r+a)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,(.5-r+o)*e,(.5+a)*n,(.5-s+o)*e,(.5-r+a)*n,(.5-r+o)*e,(.5-s+a)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,(.475+o)*e,(.5+r+a)*n,(.5-r+o)*e,(.5+s+a)*n,(.5-s+o)*e,(.5+r+a)*n)),l.add(new go.PathSegment(go.PathSegment.Line,.475*e,.85*n)),l.add(new go.PathSegment(go.PathSegment.Line,.425*e,.85*n)),l.add(new go.PathSegment(go.PathSegment.Line,.425*e,.9*n)),l.add(new go.PathSegment(go.PathSegment.Line,.475*e,.9*n)),l.add(new go.PathSegment(go.PathSegment.Line,.475*e,n)),l.add(new go.PathSegment(go.PathSegment.Line,.525*e,n)),l.add(new go.PathSegment(go.PathSegment.Line,.525*e,.9*n)),l.add(new go.PathSegment(go.PathSegment.Line,.575*e,.9*n)),l.add(new go.PathSegment(go.PathSegment.Line,.575*e,.85*n)),l.add(new go.PathSegment(go.PathSegment.Line,.525*e,.85*n).close()),o=0,a=-.125,s=(r=.325)*u;l=new go.PathFigure((.5+r+o)*e,(.5+a)*n,!1);i.add(l),l.add(new go.PathSegment(go.PathSegment.Bezier,(.5+o)*e,(.5+r+a)*n,(.5+r+o)*e,(.5+s+a)*n,(.5+s+o)*e,(.5+r+a)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,(.5-r+o)*e,(.5+a)*n,(.5-s+o)*e,(.5+r+a)*n,(.5-r+o)*e,(.5+s+a)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,(.5+o)*e,(.5-r+a)*n,(.5-r+o)*e,(.5-s+a)*n,(.5-s+o)*e,(.5-r+a)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,(.5+r+o)*e,(.5+a)*n,(.5+s+o)*e,(.5-r+a)*n,(.5+r+o)*e,(.5-s+a)*n));l=new go.PathFigure((.525+o)*e,(.5+r+a)*n,!1);return i.add(l),i.spot1=new go.Spot(.232,.136),i.spot2=new go.Spot(.682,.611),i.defaultStretch=go.GraphObject.Uniform,i})),go.Shape.defineFigureGenerator("LogicImplies",(function(t,e,n){var i=t?t.parameter1:NaN;return isNaN(i)&&(i=.2),(new go.Geometry).add(new go.PathFigure((1-i)*e,0,!1).add(new go.PathSegment(go.PathSegment.Line,e,.5*n)).add(new go.PathSegment(go.PathSegment.Line,(1-i)*e,n)).add(new go.PathSegment(go.PathSegment.Move,0,.5*n)).add(new go.PathSegment(go.PathSegment.Line,e,.5*n))).setSpots(0,0,.8,.5)})),go.Shape.defineFigureGenerator("LogicIff",(function(t,e,n){var i=t?t.parameter1:NaN;return isNaN(i)&&(i=.2),(new go.Geometry).add(new go.PathFigure((1-i)*e,0,!1).add(new go.PathSegment(go.PathSegment.Line,e,.5*n)).add(new go.PathSegment(go.PathSegment.Line,(1-i)*e,n)).add(new go.PathSegment(go.PathSegment.Move,0,.5*n)).add(new go.PathSegment(go.PathSegment.Line,e,.5*n)).add(new go.PathSegment(go.PathSegment.Move,i*e,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*n)).add(new go.PathSegment(go.PathSegment.Line,i*e,n))).setSpots(.2,0,.8,.5)})),go.Shape.defineFigureGenerator("LogicNot",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,e,0)).add(new go.PathSegment(go.PathSegment.Line,e,n)))})),go.Shape.defineFigureGenerator("LogicAnd",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(0,n,!1).add(new go.PathSegment(go.PathSegment.Line,.5*e,0)).add(new go.PathSegment(go.PathSegment.Line,e,n))).setSpots(.25,.5,.75,1)})),go.Shape.defineFigureGenerator("LogicOr",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*e,n)).add(new go.PathSegment(go.PathSegment.Line,e,0))).setSpots(.219,0,.78,.409)})),go.Shape.defineFigureGenerator("LogicXor",(function(t,e,n){var i=(new go.Geometry).add(new go.PathFigure(.5*e,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*e,n)).add(new go.PathSegment(go.PathSegment.Move,0,.5*n)).add(new go.PathSegment(go.PathSegment.Line,e,.5*n)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*e,.5*n,.5*e,.5*n)));return i.defaultStretch=go.GraphObject.Uniform,i})),go.Shape.defineFigureGenerator("LogicTruth",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,e,0)).add(new go.PathSegment(go.PathSegment.Move,.5*e,0)).add(new go.PathSegment(go.PathSegment.Line,.5*e,n)))})),go.Shape.defineFigureGenerator("LogicFalsity",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(0,n,!1).add(new go.PathSegment(go.PathSegment.Line,e,n)).add(new go.PathSegment(go.PathSegment.Move,.5*e,n)).add(new go.PathSegment(go.PathSegment.Line,.5*e,0)))})),go.Shape.defineFigureGenerator("LogicThereExists",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,e,0)).add(new go.PathSegment(go.PathSegment.Line,e,.5*n)).add(new go.PathSegment(go.PathSegment.Line,0,.5*n)).add(new go.PathSegment(go.PathSegment.Move,e,.5*n)).add(new go.PathSegment(go.PathSegment.Line,e,n)).add(new go.PathSegment(go.PathSegment.Line,0,n)))})),go.Shape.defineFigureGenerator("LogicForAll",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*e,n)).add(new go.PathSegment(go.PathSegment.Line,e,0)).add(new go.PathSegment(go.PathSegment.Move,.25*e,.5*n)).add(new go.PathSegment(go.PathSegment.Line,.75*e,.5*n))).setSpots(.25,0,.75,.5)})),go.Shape.defineFigureGenerator("LogicIsDefinedAs",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,e,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*n)).add(new go.PathSegment(go.PathSegment.Line,e,.5*n)).add(new go.PathSegment(go.PathSegment.Move,0,n)).add(new go.PathSegment(go.PathSegment.Line,e,n))).setSpots(.01,.01,.99,.49)})),go.Shape.defineFigureGenerator("LogicIntersect",(function(t,e,n){var i=.5;return(new go.Geometry).add(new go.PathFigure(0,n,!1).add(new go.PathSegment(go.PathSegment.Line,0,i*n)).add(new go.PathSegment(go.PathSegment.Arc,180,180,i*e,i*n,i*e,i*n)).add(new go.PathSegment(go.PathSegment.Line,e,n))).setSpots(0,.5,1,1)})),go.Shape.defineFigureGenerator("LogicUnion",(function(t,e,n){var i=.5;return(new go.Geometry).add(new go.PathFigure(e,0,!1).add(new go.PathSegment(go.PathSegment.Line,e,i*n)).add(new go.PathSegment(go.PathSegment.Arc,0,180,i*e,i*n,i*e,i*n)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)})),go.Shape.setFigureParameter("Arrow",0,new t("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new t("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",(function(t,e,n){var a=t?t.parameter1:NaN;isNaN(a)&&(a=.3);var s=t?t.parameter2:NaN;isNaN(s)&&(s=.3);var l=(1-a)*e,u=(.5-s/2)*n,c=(.5+s/2)*n,h=new go.Geometry,d=new go.PathFigure(0,u,!0);h.add(d),d.add(new go.PathSegment(go.PathSegment.Line,l,u)),d.add(new go.PathSegment(go.PathSegment.Line,l,0)),d.add(new go.PathSegment(go.PathSegment.Line,e,.5*n)),d.add(new go.PathSegment(go.PathSegment.Line,l,n)),d.add(new go.PathSegment(go.PathSegment.Line,l,c)),d.add(new go.PathSegment(go.PathSegment.Line,0,c).close()),h.spot1=new go.Spot(0,u/n);var f=o(0,c/n,1,c/n,l/e,1,1,.5,i());return h.spot2=new go.Spot(f.x,f.y),r(f),h})),go.Shape.setFigureParameter("Arrow2",0,new t("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new t("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",(function(t,e,n){var a=t?t.parameter1:NaN;isNaN(a)&&(a=30),a>e&&(a=e);var s=t?t.parameter2:NaN;isNaN(s)&&(s=30);var l=e-a,u=(n-(s=Math.min(s,n/2)))/2,c=u+s,h=new go.Geometry,d=new go.PathFigure(0,u,!0);h.add(d),d.add(new go.PathSegment(go.PathSegment.Line,l,u)),d.add(new go.PathSegment(go.PathSegment.Line,l,0)),d.add(new go.PathSegment(go.PathSegment.Line,e,.5*n)),d.add(new go.PathSegment(go.PathSegment.Line,l,n)),d.add(new go.PathSegment(go.PathSegment.Line,l,c)),d.add(new go.PathSegment(go.PathSegment.Line,0,c).close()),h.spot1=new go.Spot(0,u/n);var f=o(0,c/n,1,c/n,l/e,1,1,.5,i());return h.spot2=new go.Spot(f.x,f.y),r(f),h})),go.Shape.defineFigureGenerator("Chevron",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,e,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,.5*n).close()),i})),go.Shape.defineFigureGenerator("DoubleArrow",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.3*e,.214*n)),r.add(new go.PathSegment(go.PathSegment.Line,.3*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,1*e,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.3*e,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.3*e,.786*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,1*n).close()),i})),go.Shape.setFigureParameter("DoubleEndArrow",0,new t("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",(function(t,e,n){var a=t?t.parameter1:NaN;isNaN(a)&&(a=.3);var s=(.5-a/2)*n,l=(.5+a/2)*n,u=new go.Geometry,c=new go.PathFigure(e,.5*n,!0);u.add(c),c.add(new go.PathSegment(go.PathSegment.Line,.7*e,n)),c.add(new go.PathSegment(go.PathSegment.Line,.7*e,l)),c.add(new go.PathSegment(go.PathSegment.Line,.3*e,l)),c.add(new go.PathSegment(go.PathSegment.Line,.3*e,n)),c.add(new go.PathSegment(go.PathSegment.Line,0,.5*n)),c.add(new go.PathSegment(go.PathSegment.Line,.3*e,0)),c.add(new go.PathSegment(go.PathSegment.Line,.3*e,s)),c.add(new go.PathSegment(go.PathSegment.Line,.7*e,s)),c.add(new go.PathSegment(go.PathSegment.Line,.7*e,0).close());var h=o(0,.5,.3,0,0,s/n,.1,s/n,i());return u.spot1=new go.Spot(h.x,h.y),h=o(.7,1,1,.5,0,l/n,1,l/n,h),u.spot2=new go.Spot(h.x,h.y),r(h),u})),go.Shape.setFigureParameter("DoubleEndArrow2",0,new t("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new t("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",(function(t,e,n){var a=t?t.parameter1:NaN;isNaN(a)&&(a=40);var s=t?t.parameter2:NaN;isNaN(s)&&(s=100);var l=(n-a)/2,u=l+a,c=(n-s)/2,h=c+s;(a>n||s>n)&&(s>a?(u=(l=(n-(a=a*n/s))/2)+a,c=0,h=n):(l=0,u=n,c=0,h=n));var d=new go.Geometry,f=new go.PathFigure(e,.5*n,!0);d.add(f),f.add(new go.PathSegment(go.PathSegment.Line,.7*e,h)),f.add(new go.PathSegment(go.PathSegment.Line,.7*e,u)),f.add(new go.PathSegment(go.PathSegment.Line,.3*e,u)),f.add(new go.PathSegment(go.PathSegment.Line,.3*e,h)),f.add(new go.PathSegment(go.PathSegment.Line,0,.5*n)),f.add(new go.PathSegment(go.PathSegment.Line,.3*e,c)),f.add(new go.PathSegment(go.PathSegment.Line,.3*e,l)),f.add(new go.PathSegment(go.PathSegment.Line,.7*e,l)),f.add(new go.PathSegment(go.PathSegment.Line,.7*e,c).close());var p=o(0,.5,.3,c/n,0,l/n,1,l/n,i());return d.spot1=new go.Spot(p.x,p.y),p=o(.7,h/n,1,.5,0,u/n,1,u/n,p),d.spot2=new go.Spot(p.x,p.y),r(p),d})),go.Shape.setFigureParameter("IBeamArrow",0,new t("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",(function(t,e,n){var a=t?t.parameter1:NaN;isNaN(a)&&(a=.3);var s=(.5-a/2)*n,l=(.5+a/2)*n,u=new go.Geometry,c=new go.PathFigure(e,.5*n,!0);u.add(c),c.add(new go.PathSegment(go.PathSegment.Line,.7*e,n)),c.add(new go.PathSegment(go.PathSegment.Line,.7*e,l)),c.add(new go.PathSegment(go.PathSegment.Line,.2*e,l)),c.add(new go.PathSegment(go.PathSegment.Line,.2*e,n)),c.add(new go.PathSegment(go.PathSegment.Line,0,n)),c.add(new go.PathSegment(go.PathSegment.Line,0,0)),c.add(new go.PathSegment(go.PathSegment.Line,.2*e,0)),c.add(new go.PathSegment(go.PathSegment.Line,.2*e,s)),c.add(new go.PathSegment(go.PathSegment.Line,.7*e,s)),c.add(new go.PathSegment(go.PathSegment.Line,.7*e,0).close()),u.spot1=new go.Spot(0,s/n);var h=o(.7,1,1,.5,0,l/n,1,l/n,i());return u.spot2=new go.Spot(h.x,h.y),r(h),u})),go.Shape.setFigureParameter("IBeamArrow2",0,new t("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new t("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",(function(t,e,n){var a=t?t.parameter1:NaN;isNaN(a)&&(a=40);var s=t?t.parameter2:NaN;isNaN(s)&&(s=100);var l=(n-a)/2,u=l+a,c=(n-s)/2,h=c+s;(a>n||s>n)&&(s>a?(u=(l=(n-(a=a*n/s))/2)+a,c=0,h=n):(l=0,u=n,c=0,h=n));var d=new go.Geometry,f=new go.PathFigure(e,.5*n,!0);d.add(f),f.add(new go.PathSegment(go.PathSegment.Line,.7*e,h)),f.add(new go.PathSegment(go.PathSegment.Line,.7*e,u)),f.add(new go.PathSegment(go.PathSegment.Line,.2*e,u)),f.add(new go.PathSegment(go.PathSegment.Line,.2*e,h)),f.add(new go.PathSegment(go.PathSegment.Line,0,h)),f.add(new go.PathSegment(go.PathSegment.Line,0,c)),f.add(new go.PathSegment(go.PathSegment.Line,.2*e,c)),f.add(new go.PathSegment(go.PathSegment.Line,.2*e,l)),f.add(new go.PathSegment(go.PathSegment.Line,.7*e,l)),f.add(new go.PathSegment(go.PathSegment.Line,.7*e,c).close()),d.spot1=new go.Spot(0,l/n);var p=o(.7,h/n,1,.5,0,u/n,1,u/n,i());return d.spot2=new go.Spot(p.x,p.y),r(p),d})),go.Shape.setFigureParameter("Pointer",0,new t("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",(function(t,e,n){var a=t?t.parameter1:NaN;isNaN(a)&&(a=.1);var s=new go.Geometry,l=new go.PathFigure(e,.5*n,!0);s.add(l),l.add(new go.PathSegment(go.PathSegment.Line,0,n)),l.add(new go.PathSegment(go.PathSegment.Line,a*e,.5*n)),l.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),s.spot1=new go.Spot(a,.35);var u=o(.2,.65,1,.65,0,1,1,.5,i());return s.spot2=new go.Spot(u.x,u.y),r(u),s})),go.Shape.setFigureParameter("RoundedPointer",0,new t("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",(function(t,e,n){var a=t?t.parameter1:NaN;isNaN(a)&&(a=.3);var s=new go.Geometry,l=new go.PathFigure(e,.5*n,!0);s.add(l),l.add(new go.PathSegment(go.PathSegment.Line,0,n)),l.add(new go.PathSegment(go.PathSegment.Bezier,0,0,a*e,.75*n,a*e,.25*n).close()),s.spot1=new go.Spot(a,.35);var u=o(0,.65,1,.65,0,1,1,.5,i());return s.spot2=new go.Spot(u.x,u.y),r(u),s})),go.Shape.setFigureParameter("SplitEndArrow",0,new t("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",(function(t,e,n){var a=t?t.parameter1:NaN;isNaN(a)&&(a=.4);var s=(.5-a/2)*n,l=(.5+a/2)*n,u=new go.Geometry,c=new go.PathFigure(e,.5*n,!0);u.add(c),c.add(new go.PathSegment(go.PathSegment.Line,.7*e,n)),c.add(new go.PathSegment(go.PathSegment.Line,.7*e,l)),c.add(new go.PathSegment(go.PathSegment.Line,0,l)),c.add(new go.PathSegment(go.PathSegment.Line,.2*e,.5*n)),c.add(new go.PathSegment(go.PathSegment.Line,0,s)),c.add(new go.PathSegment(go.PathSegment.Line,.7*e,s)),c.add(new go.PathSegment(go.PathSegment.Line,.7*e,0).close()),u.spot1=new go.Spot(.2,.3);var h=o(.7,1,1,.5,0,l/n,1,l/n,i());return u.spot2=new go.Spot(h.x,h.y),r(h),u})),go.Shape.setFigureParameter("SplitEndArrow2",0,new t("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",(function(t,e,n){var a=t?t.parameter1:NaN;isNaN(a)&&(a=50);var s=(n-a)/2,l=s+a;a>n&&(s=0,l=n);var u=new go.Geometry,c=new go.PathFigure(e,.5*n,!0);u.add(c),c.add(new go.PathSegment(go.PathSegment.Line,.7*e,n)),c.add(new go.PathSegment(go.PathSegment.Line,.7*e,l)),c.add(new go.PathSegment(go.PathSegment.Line,0,l)),c.add(new go.PathSegment(go.PathSegment.Line,.2*e,.5*n)),c.add(new go.PathSegment(go.PathSegment.Line,0,s)),c.add(new go.PathSegment(go.PathSegment.Line,.7*e,s)),c.add(new go.PathSegment(go.PathSegment.Line,.7*e,0).close()),u.spot1=new go.Spot(.2,s/n);var h=o(.7,1,1,.5,0,l/n,1,l/n,i());return u.spot2=new go.Spot(h.x,h.y),r(h),u})),go.Shape.setFigureParameter("SquareArrow",0,new t("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",(function(t,e,n){var i=t?t.parameter1:NaN;isNaN(i)&&(i=.7);var r=new go.Geometry,o=new go.PathFigure(e,.5*n,!0);return r.add(o),o.add(new go.PathSegment(go.PathSegment.Line,i*e,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,0)),o.add(new go.PathSegment(go.PathSegment.Line,i*e,0).close()),r.spot1=go.Spot.TopLeft,r.spot2=new go.Spot(i,1),r})),go.Shape.defineFigureGenerator("Cone1",(function(t,e,n){var i=new go.Geometry,r=.5*u,o=.1*u,a=new go.PathFigure(0,.9*n,!0);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,.5*e,0)),a.add(new go.PathSegment(go.PathSegment.Line,e,.9*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,.5*e,n,e,(.9+o)*n,(.5+r)*e,n)),a.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*n,(.5-r)*e,n,0,(.9+o)*n).close()),i.spot1=new go.Spot(.25,.5),i.spot2=new go.Spot(.75,.97),i})),go.Shape.defineFigureGenerator("Cone2",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,.9*n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Bezier,e,.9*n,(1-.85/.9)*e,n,.85/.9*e,n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,0,.9*n).close());var o=new go.PathFigure(0,.9*n,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Bezier,e,.9*n,(1-.85/.9)*e,.8*n,.85/.9*e,.8*n)),i.spot1=new go.Spot(.25,.5),i.spot2=new go.Spot(.75,.82),i})),go.Shape.defineFigureGenerator("Cube1",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(.5*e,n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,e,.85*n)),r.add(new go.PathSegment(go.PathSegment.Line,e,.15*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,0,.15*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.85*n).close());var o=new go.PathFigure(.5*e,n,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.5*e,.3*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.15*n)),o.add(new go.PathSegment(go.PathSegment.Move,.5*e,.3*n)),o.add(new go.PathSegment(go.PathSegment.Line,e,.15*n)),i.spot1=new go.Spot(0,.3),i.spot2=new go.Spot(.5,.85),i})),go.Shape.defineFigureGenerator("Cube2",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,.3*n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Line,.7*e,n)),r.add(new go.PathSegment(go.PathSegment.Line,e,.7*n)),r.add(new go.PathSegment(go.PathSegment.Line,e,0)),r.add(new go.PathSegment(go.PathSegment.Line,.3*e,0).close());var o=new go.PathFigure(0,.3*n,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.7*e,.3*n)),o.add(new go.PathSegment(go.PathSegment.Line,e,0)),o.add(new go.PathSegment(go.PathSegment.Move,.7*e,.3*n)),o.add(new go.PathSegment(go.PathSegment.Line,.7*e,n)),i.spot1=new go.Spot(0,.3),i.spot2=new go.Spot(.7,1),i})),go.Shape.defineFigureGenerator("Cylinder1",(function(t,e,n){var i=t?t.parameter1:NaN;isNaN(i)&&(i=5),i=Math.min(i,n/3);var r=new go.Geometry,o=.5*u,a=new go.PathFigure(0,i,!0);r.add(a),a.add(new go.PathSegment(go.PathSegment.Bezier,.5*e,0,0,u*i,(.5-o)*e,0)),a.add(new go.PathSegment(go.PathSegment.Bezier,1*e,i,(.5+o)*e,0,1*e,u*i)),a.add(new go.PathSegment(go.PathSegment.Line,e,n-i)),a.add(new go.PathSegment(go.PathSegment.Bezier,.5*e,1*n,1*e,n-u*i,(.5+o)*e,1*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,0,n-i,(.5-o)*e,1*n,0,n-u*i)),a.add(new go.PathSegment(go.PathSegment.Line,0,i));var s=new go.PathFigure(e,i,!1);return r.add(s),s.add(new go.PathSegment(go.PathSegment.Bezier,.5*e,2*i,1*e,2*i-u*i,(.5+o)*e,2*i)),s.add(new go.PathSegment(go.PathSegment.Bezier,0,i,(.5-o)*e,2*i,0,2*i-u*i)),r.spot1=new go.Spot(0,0,0,2*i),r.spot2=new go.Spot(1,1),r})),go.Shape.defineFigureGenerator("Cylinder2",(function(t,e,n){var i=t?t.parameter1:NaN;isNaN(i)&&(i=5),i=Math.min(i,n/3);var r=new go.Geometry,o=.5*u,a=new go.PathFigure(0,n-i,!0);r.add(a),a.add(new go.PathSegment(go.PathSegment.Line,0,i)),a.add(new go.PathSegment(go.PathSegment.Bezier,.5*e,0,0,u*i,(.5-o)*e,0)),a.add(new go.PathSegment(go.PathSegment.Bezier,e,i,(.5+o)*e,0,e,u*i)),a.add(new go.PathSegment(go.PathSegment.Line,e,n-i)),a.add(new go.PathSegment(go.PathSegment.Bezier,.5*e,n,e,n-u*i,(.5+o)*e,n)),a.add(new go.PathSegment(go.PathSegment.Bezier,0,n-i,(.5-o)*e,n,0,n-u*i));var s=new go.PathFigure(0,n-i,!1);return r.add(s),s.add(new go.PathSegment(go.PathSegment.Bezier,.5*e,n-2*i,0,n-i-u*i,(.5-o)*e,n-2*i)),s.add(new go.PathSegment(go.PathSegment.Bezier,e,n-i,(.5+o)*e,n-2*i,e,n-i-u*i)),r.spot1=new go.Spot(0,0),r.spot2=new go.Spot(1,1,0,-2*i),r})),go.Shape.defineFigureGenerator("Cylinder3",(function(t,e,n){var i=t?t.parameter1:NaN;isNaN(i)&&(i=5),i=Math.min(i,e/3);var r=new go.Geometry,o=.5*u,a=new go.PathFigure(i,0,!0);r.add(a),a.add(new go.PathSegment(go.PathSegment.Line,e-i,0)),a.add(new go.PathSegment(go.PathSegment.Bezier,e,.5*n,e-u*i,0,e,(.5-o)*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,e-i,n,e,(.5+o)*n,e-u*i,n)),a.add(new go.PathSegment(go.PathSegment.Line,i,n)),a.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*n,u*i,n,0,(.5+o)*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,i,0,0,(.5-o)*n,u*i,0));var s=new go.PathFigure(i,0,!1);return r.add(s),s.add(new go.PathSegment(go.PathSegment.Bezier,2*i,.5*n,i+u*i,0,2*i,(.5-o)*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,i,n,2*i,(.5+o)*n,i+u*i,n)),r.spot1=new go.Spot(0,0,2*i,0),r.spot2=new go.Spot(1,1),r})),go.Shape.defineFigureGenerator("Cylinder4",(function(t,e,n){var i=t?t.parameter1:NaN;isNaN(i)&&(i=5),i=Math.min(i,e/3);var r=new go.Geometry,o=.5*u,a=new go.PathFigure(e-i,0,!0);r.add(a),a.add(new go.PathSegment(go.PathSegment.Bezier,e,.5*n,e-u*i,0,e,(.5-o)*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,e-i,n,e,(.5+o)*n,e-u*i,n)),a.add(new go.PathSegment(go.PathSegment.Line,i,n)),a.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*n,u*i,n,0,(.5+o)*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,i,0,0,(.5-o)*n,u*i,0)),a.add(new go.PathSegment(go.PathSegment.Line,e-i,0));var s=new go.PathFigure(e-i,0,!1);return r.add(s),s.add(new go.PathSegment(go.PathSegment.Bezier,e-2*i,.5*n,e-i-u*i,0,e-2*i,(.5-o)*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,e-i,n,e-2*i,(.5+o)*n,e-i-u*i,n)),r.spot1=new go.Spot(0,0),r.spot2=new go.Spot(1,1,-2*i,0),r})),go.Shape.defineFigureGenerator("Prism1",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(.25*e,.25*n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.75*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,e,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var o=new go.PathFigure(.25*e,.25*n,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.5*e,n)),i.spot1=new go.Spot(.408,.172),i.spot2=new go.Spot(.833,.662),i})),go.Shape.defineFigureGenerator("Prism2",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,.25*n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.75*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,e,.25*n)),r.add(new go.PathSegment(go.PathSegment.Line,.75*e,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var o=new go.PathFigure(0,n,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.25*e,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,e,.25*n)),o.add(new go.PathSegment(go.PathSegment.Move,0,.25*n)),o.add(new go.PathSegment(go.PathSegment.Line,.25*e,.5*n)),i.spot1=new go.Spot(.25,.5),i.spot2=new go.Spot(.75,.75),i})),go.Shape.defineFigureGenerator("Pyramid1",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(.5*e,0,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,e,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.75*n).close());var o=new go.PathFigure(.5*e,0,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.5*e,n)),i.spot1=new go.Spot(.25,.367),i.spot2=new go.Spot(.75,.875),i})),go.Shape.defineFigureGenerator("Pyramid2",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(.5*e,0,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,e,.85*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.85*n).close());var o=new go.PathFigure(.5*e,0,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.5*e,.7*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.85*n)),o.add(new go.PathSegment(go.PathSegment.Move,.5*e,.7*n)),o.add(new go.PathSegment(go.PathSegment.Line,e,.85*n)),i.spot1=new go.Spot(.25,.367),i.spot2=new go.Spot(.75,.875),i})),go.Shape.defineFigureGenerator("Actor",(function(t,e,n){var i=new go.Geometry,r=.2,o=.1,a=u*r,s=u*o,l=.5,c=.1,h=new go.PathFigure(l*e,(c+o)*n,!0);i.add(h),h.add(new go.PathSegment(go.PathSegment.Bezier,(l-r)*e,c*n,(l-a)*e,(c+o)*n,(l-r)*e,(c+s)*n)),h.add(new go.PathSegment(go.PathSegment.Bezier,l*e,(c-o)*n,(l-r)*e,(c-s)*n,(l-a)*e,(c-o)*n)),h.add(new go.PathSegment(go.PathSegment.Bezier,(l+r)*e,c*n,(l+a)*e,(c-o)*n,(l+r)*e,(c-s)*n)),h.add(new go.PathSegment(go.PathSegment.Bezier,l*e,(c+o)*n,(l+r)*e,(c+s)*n,(l+a)*e,(c+o)*n));var d=.05,f=u*d;l=.05,c=.25;var p=new go.PathFigure(.5*e,.2*n,!0);return i.add(p),p.add(new go.PathSegment(go.PathSegment.Line,.95*e,.2*n)),l=.95,c=.25,p.add(new go.PathSegment(go.PathSegment.Bezier,(l+d)*e,c*n,(l+f)*e,(c-d)*n,(l+d)*e,(c-f)*n)),p.add(new go.PathSegment(go.PathSegment.Line,e,.6*n)),p.add(new go.PathSegment(go.PathSegment.Line,.85*e,.6*n)),p.add(new go.PathSegment(go.PathSegment.Line,.85*e,.35*n)),f=u*(d=.025),l=.825,c=.35,p.add(new go.PathSegment(go.PathSegment.Bezier,l*e,(c-d)*n,(l+d)*e,(c-f)*n,(l+f)*e,(c-d)*n)),p.add(new go.PathSegment(go.PathSegment.Bezier,(l-d)*e,c*n,(l-f)*e,(c-d)*n,(l-d)*e,(c-f)*n)),p.add(new go.PathSegment(go.PathSegment.Line,.8*e,n)),p.add(new go.PathSegment(go.PathSegment.Line,.55*e,n)),p.add(new go.PathSegment(go.PathSegment.Line,.55*e,.7*n)),f=u*(d=.05),l=.5,c=.7,p.add(new go.PathSegment(go.PathSegment.Bezier,l*e,(c-d)*n,(l+d)*e,(c-f)*n,(l+f)*e,(c-d)*n)),p.add(new go.PathSegment(go.PathSegment.Bezier,(l-d)*e,c*n,(l-f)*e,(c-d)*n,(l-d)*e,(c-f)*n)),p.add(new go.PathSegment(go.PathSegment.Line,.45*e,n)),p.add(new go.PathSegment(go.PathSegment.Line,.2*e,n)),p.add(new go.PathSegment(go.PathSegment.Line,.2*e,.35*n)),f=u*(d=.025),l=.175,c=.35,p.add(new go.PathSegment(go.PathSegment.Bezier,l*e,(c-d)*n,(l+d)*e,(c-f)*n,(l+f)*e,(c-d)*n)),p.add(new go.PathSegment(go.PathSegment.Bezier,(l-d)*e,c*n,(l-f)*e,(c-d)*n,(l-d)*e,(c-f)*n)),p.add(new go.PathSegment(go.PathSegment.Line,.15*e,.6*n)),p.add(new go.PathSegment(go.PathSegment.Line,0,.6*n)),p.add(new go.PathSegment(go.PathSegment.Line,0,.25*n)),f=u*(d=.05),l=.05,c=.25,p.add(new go.PathSegment(go.PathSegment.Bezier,l*e,(c-d)*n,(l-d)*e,(c-f)*n,(l-f)*e,(c-d)*n)),p.add(new go.PathSegment(go.PathSegment.Line,.5*e,.2*n)),i.spot1=new go.Spot(.2,.2),i.spot2=new go.Spot(.8,.65),i})),go.Shape.setFigureParameter("Card",0,new t("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",(function(t,e,n){var i=t?t.parameter1:NaN;isNaN(i)&&(i=.2);var r=new go.Geometry,o=new go.PathFigure(e,0,!0);return r.add(o),o.add(new go.PathSegment(go.PathSegment.Line,e,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,i*n)),o.add(new go.PathSegment(go.PathSegment.Line,i*e,0).close()),r.spot1=new go.Spot(0,i),r.spot2=go.Spot.BottomRight,r})),go.Shape.defineFigureGenerator("Collate",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(.5*e,.5*n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,0)),r.add(new go.PathSegment(go.PathSegment.Line,e,0)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,.5*n));var o=new go.PathFigure(.5*e,.5*n,!0);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,e,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*e,.5*n)),i.spot1=new go.Spot(.25,0),i.spot2=new go.Spot(.75,.25),i})),go.Shape.defineFigureGenerator("CreateRequest",(function(t,e,n){var i=new go.Geometry,r=t?t.parameter1:NaN;isNaN(r)&&(r=.1);var o=new go.PathFigure(0,0,!0);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,e,0)),o.add(new go.PathSegment(go.PathSegment.Line,e,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var a=new go.PathFigure(0,r*n,!1);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,e,r*n)),a.add(new go.PathSegment(go.PathSegment.Move,0,(1-r)*n)),a.add(new go.PathSegment(go.PathSegment.Line,e,(1-r)*n)),i})),go.Shape.defineFigureGenerator("Database",(function(t,e,n){var i=new go.Geometry,r=.5*u,o=.1*u,a=new go.PathFigure(e,.1*n,!0);i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,e,.9*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,.5*e,n,e,(.9+o)*n,(.5+r)*e,n)),a.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*n,(.5-r)*e,n,0,(.9+o)*n)),a.add(new go.PathSegment(go.PathSegment.Line,0,.1*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,.5*e,0,0,(.1-o)*n,(.5-r)*e,0)),a.add(new go.PathSegment(go.PathSegment.Bezier,e,.1*n,(.5+r)*e,0,e,(.1-o)*n));var s=new go.PathFigure(e,.1*n,!1);return i.add(s),s.add(new go.PathSegment(go.PathSegment.Bezier,.5*e,.2*n,e,(.1+o)*n,(.5+r)*e,.2*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*n,(.5-r)*e,.2*n,0,(.1+o)*n)),s.add(new go.PathSegment(go.PathSegment.Move,e,.2*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,.5*e,.3*n,e,(.2+o)*n,(.5+r)*e,.3*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*n,(.5-r)*e,.3*n,0,(.2+o)*n)),s.add(new go.PathSegment(go.PathSegment.Move,e,.3*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,.5*e,.4*n,e,(.3+o)*n,(.5+r)*e,.4*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*n,(.5-r)*e,.4*n,0,(.3+o)*n)),i.spot1=new go.Spot(0,.4),i.spot2=new go.Spot(1,.9),i})),go.Shape.defineFigureGenerator("DataStorage",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.75*e,0)),r.add(new go.PathSegment(go.PathSegment.Bezier,.75*e,n,e,0,e,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*e,.9*n,.25*e,.1*n).close()),i.spot1=new go.Spot(.226,0),i.spot2=new go.Spot(.81,1),i})),go.Shape.defineFigureGenerator("DiskStorage",(function(t,e,n){var i=new go.Geometry,r=.5*u,o=.1*u,a=new go.PathFigure(e,.1*n,!0);i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,e,.9*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,.5*e,n,e,(.9+o)*n,(.5+r)*e,n)),a.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*n,(.5-r)*e,n,0,(.9+o)*n)),a.add(new go.PathSegment(go.PathSegment.Line,0,.1*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,.5*e,0,0,(.1-o)*n,(.5-r)*e,0)),a.add(new go.PathSegment(go.PathSegment.Bezier,e,.1*n,(.5+r)*e,0,e,(.1-o)*n));var s=new go.PathFigure(e,.1*n,!1);return i.add(s),s.add(new go.PathSegment(go.PathSegment.Bezier,.5*e,.2*n,e,(.1+o)*n,(.5+r)*e,.2*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*n,(.5-r)*e,.2*n,0,(.1+o)*n)),s.add(new go.PathSegment(go.PathSegment.Move,e,.2*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,.5*e,.3*n,e,(.2+o)*n,(.5+r)*e,.3*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*n,(.5-r)*e,.3*n,0,(.2+o)*n)),i.spot1=new go.Spot(0,.3),i.spot2=new go.Spot(1,.9),i})),go.Shape.defineFigureGenerator("Display",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(.25*e,0,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.75*e,0)),r.add(new go.PathSegment(go.PathSegment.Bezier,.75*e,n,e,0,e,n)),r.add(new go.PathSegment(go.PathSegment.Line,.25*e,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.5*n).close()),i.spot1=new go.Spot(.25,0),i.spot2=new go.Spot(.75,1),i})),go.Shape.defineFigureGenerator("DividedEvent",(function(t,e,n){var i=new go.Geometry,r=t?t.parameter1:NaN;isNaN(r)?r=.2:r<.15&&(r=.15);var o=.2*u,a=new go.PathFigure(0,.2*n,!0);i.add(a),a.add(new go.PathSegment(go.PathSegment.Bezier,.2*e,0,0,(.2-o)*n,(.2-o)*e,0)),a.add(new go.PathSegment(go.PathSegment.Line,.8*e,0)),a.add(new go.PathSegment(go.PathSegment.Bezier,e,.2*n,(.8+o)*e,0,e,(.2-o)*n)),a.add(new go.PathSegment(go.PathSegment.Line,e,.8*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,.8*e,n,e,(.8+o)*n,(.8+o)*e,n)),a.add(new go.PathSegment(go.PathSegment.Line,.2*e,n)),a.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*n,(.2-o)*e,n,0,(.8+o)*n)),a.add(new go.PathSegment(go.PathSegment.Line,0,.2*n));var s=new go.PathFigure(0,r*n,!1);return i.add(s),s.add(new go.PathSegment(go.PathSegment.Line,e,r*n)),i})),go.Shape.defineFigureGenerator("DividedProcess",(function(t,e,n){var i=new go.Geometry,r=t?t.parameter1:NaN;(isNaN(r)||r<.1)&&(r=.1);var o=new go.PathFigure(0,0,!0);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,e,0)),o.add(new go.PathSegment(go.PathSegment.Line,e,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var a=new go.PathFigure(0,r*n,!1);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,e,r*n)),i})),go.Shape.defineFigureGenerator("Document",(function(t,e,n){var i=new go.Geometry;n/=.8;var r=new go.PathFigure(0,.7*n,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,0)),r.add(new go.PathSegment(go.PathSegment.Line,e,0)),r.add(new go.PathSegment(go.PathSegment.Line,e,.7*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*n,.5*e,.4*n,.5*e,n).close()),i.spot1=go.Spot.TopLeft,i.spot2=new go.Spot(1,.6),i})),go.Shape.defineFigureGenerator("ExternalOrganization",(function(t,e,n){var i=new go.Geometry,r=t?t.parameter1:NaN;(isNaN(r)||r<.2)&&(r=.2);var o=new go.PathFigure(0,0,!0);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,e,0)),o.add(new go.PathSegment(go.PathSegment.Line,e,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var a=new go.PathFigure(r*e,0,!1);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,0,r*n)),a.add(new go.PathSegment(go.PathSegment.Move,e,r*n)),a.add(new go.PathSegment(go.PathSegment.Line,(1-r)*e,0)),a.add(new go.PathSegment(go.PathSegment.Move,0,(1-r)*n)),a.add(new go.PathSegment(go.PathSegment.Line,r*e,n)),a.add(new go.PathSegment(go.PathSegment.Move,(1-r)*e,n)),a.add(new go.PathSegment(go.PathSegment.Line,e,(1-r)*n)),i})),go.Shape.defineFigureGenerator("ExternalProcess",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(.5*e,0,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,e,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.5*n).close());var o=new go.PathFigure(.1*e,.4*n,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.1*e,.6*n)),o.add(new go.PathSegment(go.PathSegment.Move,.9*e,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,.9*e,.4*n)),o.add(new go.PathSegment(go.PathSegment.Move,.6*e,.1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.4*e,.1*n)),o.add(new go.PathSegment(go.PathSegment.Move,.4*e,.9*n)),o.add(new go.PathSegment(go.PathSegment.Line,.6*e,.9*n)),i.spot1=new go.Spot(.25,.25),i.spot2=new go.Spot(.75,.75),i})),go.Shape.defineFigureGenerator("File",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.75*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,e,.25*n)),r.add(new go.PathSegment(go.PathSegment.Line,e,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var o=new go.PathFigure(.75*e,0,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.75*e,.25*n)),o.add(new go.PathSegment(go.PathSegment.Line,e,.25*n)),i.spot1=new go.Spot(0,.25),i.spot2=go.Spot.BottomRight,i})),go.Shape.defineFigureGenerator("Interrupt",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(e,.5*n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,0)),r.add(new go.PathSegment(go.PathSegment.Line,e,.5*n));var o=new go.PathFigure(e,.5*n,!1);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,e,n));var a=new go.PathFigure(e,.5*n,!1);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,e,0)),i.spot1=new go.Spot(0,.25),i.spot2=new go.Spot(.5,.75),i})),go.Shape.defineFigureGenerator("InternalStorage",(function(t,e,n){var i=new go.Geometry,r=t?t.parameter1:NaN,o=t?t.parameter2:NaN;isNaN(r)&&(r=.1),isNaN(o)&&(o=.1);var a=new go.PathFigure(0,0,!0);i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,e,0)),a.add(new go.PathSegment(go.PathSegment.Line,e,n)),a.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var s=new go.PathFigure(r*e,0,!1);return i.add(s),s.add(new go.PathSegment(go.PathSegment.Line,r*e,n)),s.add(new go.PathSegment(go.PathSegment.Move,0,o*n)),s.add(new go.PathSegment(go.PathSegment.Line,e,o*n)),i})),go.Shape.defineFigureGenerator("Junction",(function(t,e,n){var i=new go.Geometry,r=1/Math.SQRT2,o=(1-1/Math.SQRT2)/2,a=.5*u,s=.5,l=new go.PathFigure(e,s*n,!0);i.add(l),l.add(new go.PathSegment(go.PathSegment.Bezier,s*e,n,e,(s+a)*n,(s+a)*e,n)),l.add(new go.PathSegment(go.PathSegment.Bezier,0,s*n,(s-a)*e,n,0,(s+a)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,s*e,0,0,(s-a)*n,(s-a)*e,0)),l.add(new go.PathSegment(go.PathSegment.Bezier,e,s*n,(s+a)*e,0,e,(s-a)*n));var c=new go.PathFigure((o+r)*e,(o+r)*n,!1);return i.add(c),c.add(new go.PathSegment(go.PathSegment.Line,o*e,o*n)),c.add(new go.PathSegment(go.PathSegment.Move,o*e,(o+r)*n)),c.add(new go.PathSegment(go.PathSegment.Line,(o+r)*e,o*n)),i})),go.Shape.defineFigureGenerator("LinedDocument",(function(t,e,n){var i=new go.Geometry;n/=.8;var r=new go.PathFigure(0,.7*n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,0)),r.add(new go.PathSegment(go.PathSegment.Line,e,0)),r.add(new go.PathSegment(go.PathSegment.Line,e,.7*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*n,.5*e,.4*n,.5*e,n).close());var o=new go.PathFigure(.1*e,0,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.1*e,.75*n)),i.spot1=new go.Spot(.1,0),i.spot2=new go.Spot(1,.6),i})),go.Shape.defineFigureGenerator("LoopLimit",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,n,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,.25*n)),r.add(new go.PathSegment(go.PathSegment.Line,.25*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,.75*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,e,.25*n)),r.add(new go.PathSegment(go.PathSegment.Line,e,n).close()),i.spot1=new go.Spot(0,.25),i.spot2=go.Spot.BottomRight,i})),go.Shape.defineFigureGenerator("MagneticTape",(function(t,e,n){var i=new go.Geometry,r=.5*u,o=.5,a=new go.PathFigure(.5*e,n,!0);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Bezier,0,o*n,(o-r)*e,n,0,(o+r)*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,o*e,0,0,(o-r)*n,(o-r)*e,0)),a.add(new go.PathSegment(go.PathSegment.Bezier,e,o*n,(o+r)*e,0,e,(o-r)*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,.6*e,.9*n,e,(o+r)*n,(o+r)*e,.9*n)),a.add(new go.PathSegment(go.PathSegment.Line,e,.9*n)),a.add(new go.PathSegment(go.PathSegment.Line,e,n)),a.add(new go.PathSegment(go.PathSegment.Line,.5*e,n)),i.spot1=new go.Spot(.15,.15),i.spot2=new go.Spot(.85,.8),i})),go.Shape.defineFigureGenerator("ManualInput",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(e,0,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,e,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.25*n).close()),i.spot1=new go.Spot(0,.25),i.spot2=go.Spot.BottomRight,i})),go.Shape.defineFigureGenerator("MessageFromUser",(function(t,e,n){var i=new go.Geometry,r=t?t.parameter1:NaN;isNaN(r)&&(r=.7);var o=new go.PathFigure(0,0,!0);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,e,0)),o.add(new go.PathSegment(go.PathSegment.Line,r*e,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,e,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),i.spot1=go.Spot.TopLeft,i})),go.Shape.defineFigureGenerator("MicroformProcessing",(function(t,e,n){var i=new go.Geometry,r=t?t.parameter1:NaN;isNaN(r)&&(r=.25);var o=new go.PathFigure(0,0,!0);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.5*e,r*n)),o.add(new go.PathSegment(go.PathSegment.Line,e,0)),o.add(new go.PathSegment(go.PathSegment.Line,e,n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*e,(1-r)*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),i})),go.Shape.defineFigureGenerator("MicroformRecording",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.75*e,.25*n)),r.add(new go.PathSegment(go.PathSegment.Line,e,.15*n)),r.add(new go.PathSegment(go.PathSegment.Line,e,.85*n)),r.add(new go.PathSegment(go.PathSegment.Line,.75*e,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),i.spot1=new go.Spot(0,.25),i.spot2=new go.Spot(1,.75),i})),go.Shape.defineFigureGenerator("MultiDocument",(function(t,e,n){var i=new go.Geometry;n/=.8;var r=new go.PathFigure(e,0,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,e,.5*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.9*e,.44*n,.96*e,.47*n,.93*e,.45*n)),r.add(new go.PathSegment(go.PathSegment.Line,.9*e,.6*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.8*e,.54*n,.86*e,.57*n,.83*e,.55*n)),r.add(new go.PathSegment(go.PathSegment.Line,.8*e,.7*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*n,.4*e,.4*n,.4*e,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.2*n)),r.add(new go.PathSegment(go.PathSegment.Line,.1*e,.2*n)),r.add(new go.PathSegment(go.PathSegment.Line,.1*e,.1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.2*e,.1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.2*e,0).close());var o=new go.PathFigure(.1*e,.2*n,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.8*e,.2*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*e,.54*n)),o.add(new go.PathSegment(go.PathSegment.Move,.2*e,.1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.9*e,.1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.9*e,.44*n)),i.spot1=new go.Spot(0,.25),i.spot2=new go.Spot(.8,.77),i})),go.Shape.defineFigureGenerator("MultiProcess",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(.1*e,.1*n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.2*e,.1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.2*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,e,0)),r.add(new go.PathSegment(go.PathSegment.Line,e,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,.9*e,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,.9*e,.9*n)),r.add(new go.PathSegment(go.PathSegment.Line,.8*e,.9*n)),r.add(new go.PathSegment(go.PathSegment.Line,.8*e,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.2*n)),r.add(new go.PathSegment(go.PathSegment.Line,.1*e,.2*n).close());var o=new go.PathFigure(.2*e,.1*n,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.9*e,.1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.9*e,.8*n)),o.add(new go.PathSegment(go.PathSegment.Move,.1*e,.2*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*e,.2*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*e,.9*n)),i.spot1=new go.Spot(0,.2),i.spot2=new go.Spot(.8,1),i})),go.Shape.defineFigureGenerator("OfflineStorage",(function(t,e,n){var i=new go.Geometry,r=t?t.parameter1:NaN;isNaN(r)&&(r=.1);var o=new go.PathFigure(0,0,!0);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,e,0)),o.add(new go.PathSegment(go.PathSegment.Line,.5*e,n).close());var a=new go.PathFigure(.5*r*e,r*n,!1);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,(1-.5*r)*e,r*n)),i})),go.Shape.defineFigureGenerator("OffPageConnector",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.75*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,e,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.75*e,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),i.spot1=go.Spot.TopLeft,i.spot2=new go.Spot(.75,1),i})),go.Shape.defineFigureGenerator("Or",(function(t,e,n){var i=new go.Geometry,r=.5*u,o=.5,a=new go.PathFigure(e,o*n,!0);i.add(a),a.add(new go.PathSegment(go.PathSegment.Bezier,o*e,n,e,(o+r)*n,(o+r)*e,n)),a.add(new go.PathSegment(go.PathSegment.Bezier,0,o*n,(o-r)*e,n,0,(o+r)*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,o*e,0,0,(o-r)*n,(o-r)*e,0)),a.add(new go.PathSegment(go.PathSegment.Bezier,e,o*n,(o+r)*e,0,e,(o-r)*n));var s=new go.PathFigure(e,.5*n,!1);return i.add(s),s.add(new go.PathSegment(go.PathSegment.Line,0,.5*n)),s.add(new go.PathSegment(go.PathSegment.Move,.5*e,n)),s.add(new go.PathSegment(go.PathSegment.Line,.5*e,0)),i})),go.Shape.defineFigureGenerator("PaperTape",(function(t,e,n){var i=new go.Geometry;n/=.8;var r=new go.PathFigure(0,.7*n,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,.3*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,e,.3*n,.5*e,.6*n,.5*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,e,.7*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*n,.5*e,.4*n,.5*e,n).close()),i.spot1=new go.Spot(0,.49),i.spot2=new go.Spot(1,.75),i})),go.Shape.defineFigureGenerator("PrimitiveFromCall",(function(t,e,n){var i=new go.Geometry,r=t?t.parameter1:NaN,o=t?t.parameter2:NaN;isNaN(r)&&(r=.1),isNaN(o)&&(o=.3);var a=new go.PathFigure(0,0,!0);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,e,0)),a.add(new go.PathSegment(go.PathSegment.Line,(1-o)*e,.5*n)),a.add(new go.PathSegment(go.PathSegment.Line,e,n)),a.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),i})),go.Shape.defineFigureGenerator("PrimitiveToCall",(function(t,e,n){var i=new go.Geometry,r=t?t.parameter1:NaN,o=t?t.parameter2:NaN;isNaN(r)&&(r=.1),isNaN(o)&&(o=.3);var a=new go.PathFigure(0,0,!0);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,(1-o)*e,0)),a.add(new go.PathSegment(go.PathSegment.Line,e,.5*n)),a.add(new go.PathSegment(go.PathSegment.Line,(1-o)*e,n)),a.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),i})),go.Shape.defineFigureGenerator("Procedure",(function(t,e,n){var i=new go.Geometry,r=t?t.parameter1:NaN;isNaN(r)&&(r=.1);var o=new go.PathFigure(0,0,!0);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,e,0)),o.add(new go.PathSegment(go.PathSegment.Line,e,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var a=new go.PathFigure((1-r)*e,0,!1);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,(1-r)*e,n)),a.add(new go.PathSegment(go.PathSegment.Move,r*e,0)),a.add(new go.PathSegment(go.PathSegment.Line,r*e,n)),i})),go.Shape.defineFigureGenerator("Process",(function(t,e,n){var i=new go.Geometry,r=t?t.parameter1:NaN;isNaN(r)&&(r=.1);var o=new go.PathFigure(0,0,!0);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,e,0)),o.add(new go.PathSegment(go.PathSegment.Line,e,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var a=new go.PathFigure(r*e,0,!1);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,r*e,n)),i.spot2=go.Spot.BottomRight,i})),go.Shape.defineFigureGenerator("Sort",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(.5*e,0,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,e,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.5*n).close());var o=new go.PathFigure(0,.5*n,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,e,.5*n)),i.spot1=new go.Spot(.25,.25),i.spot2=new go.Spot(.75,.5),i})),go.Shape.defineFigureGenerator("Start",(function(t,e,n){var i=new go.Geometry,r=t?t.parameter1:NaN;isNaN(r)&&(r=.25);var o=new go.PathFigure(r*e,0,!0);i.add(o),o.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*e,.5*n,.25*e,.5*n)),o.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*e,.5*n,.25*e,.5*n));var a=new go.PathFigure(r*e,0,!1);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,r*e,n)),a.add(new go.PathSegment(go.PathSegment.Move,(1-r)*e,0)),a.add(new go.PathSegment(go.PathSegment.Line,(1-r)*e,n)),i.spot1=new go.Spot(r,0),i.spot2=new go.Spot(1-r,1),i})),go.Shape.defineFigureGenerator("Terminator",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(.25*e,0,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*e,.5*n,.25*e,.5*n)),r.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*e,.5*n,.25*e,.5*n)),i.spot1=new go.Spot(.23,0),i.spot2=new go.Spot(.77,1),i})),go.Shape.defineFigureGenerator("TransmittalTape",(function(t,e,n){var i=new go.Geometry,r=t?t.parameter1:NaN;isNaN(r)&&(r=.1);var o=new go.PathFigure(0,0,!0);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,e,0)),o.add(new go.PathSegment(go.PathSegment.Line,e,n)),o.add(new go.PathSegment(go.PathSegment.Line,.75*e,(1-r)*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,(1-r)*n).close()),i.spot1=go.Spot.TopLeft,i})),go.Shape.defineFigureGenerator("AndGate",(function(t,e,n){var i=new go.Geometry,r=.5*u,o=new go.PathFigure(0,0,!0);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.5*e,0)),o.add(new go.PathSegment(go.PathSegment.Bezier,e,.5*n,(.5+r)*e,0,e,(.5-r)*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.5*e,n,e,(.5+r)*n,(.5+r)*e,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),i.spot1=go.Spot.TopLeft,i.spot2=new go.Spot(.55,1),i})),go.Shape.defineFigureGenerator("Buffer",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,e,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),i.spot1=new go.Spot(0,.25),i.spot2=new go.Spot(.5,.75),i})),go.Shape.defineFigureGenerator("Clock",(function(t,e,n){var i=new go.Geometry,r=.5*u,o=.5,a=new go.PathFigure(e,o*n,!0);i.add(a),a.add(new go.PathSegment(go.PathSegment.Bezier,o*e,n,e,(o+r)*n,(o+r)*e,n)),a.add(new go.PathSegment(go.PathSegment.Bezier,0,o*n,(o-r)*e,n,0,(o+r)*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,o*e,0,0,(o-r)*n,(o-r)*e,0)),a.add(new go.PathSegment(go.PathSegment.Bezier,e,o*n,(o+r)*e,0,e,(o-r)*n));var s=new go.PathFigure(e,o*n,!1);i.add(s),s.add(new go.PathSegment(go.PathSegment.Line,e,o*n));var l=new go.PathFigure(.8*e,.75*n,!1);return i.add(l),l.add(new go.PathSegment(go.PathSegment.Line,.8*e,.25*n)),l.add(new go.PathSegment(go.PathSegment.Line,.6*e,.25*n)),l.add(new go.PathSegment(go.PathSegment.Line,.6*e,.75*n)),l.add(new go.PathSegment(go.PathSegment.Line,.4*e,.75*n)),l.add(new go.PathSegment(go.PathSegment.Line,.4*e,.25*n)),l.add(new go.PathSegment(go.PathSegment.Line,.2*e,.25*n)),l.add(new go.PathSegment(go.PathSegment.Line,.2*e,.75*n)),i})),go.Shape.defineFigureGenerator("Ground",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(.5*e,0,!1);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,.4*n)),r.add(new go.PathSegment(go.PathSegment.Move,.2*e,.6*n)),r.add(new go.PathSegment(go.PathSegment.Line,.8*e,.6*n)),r.add(new go.PathSegment(go.PathSegment.Move,.3*e,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,.7*e,.8*n)),r.add(new go.PathSegment(go.PathSegment.Move,.4*e,n)),r.add(new go.PathSegment(go.PathSegment.Line,.6*e,n)),i})),go.Shape.defineFigureGenerator("Inverter",(function(t,e,n){var i=new go.Geometry,r=.1*u,o=.9,a=.5,s=new go.PathFigure(.8*e,.5*n,!0);i.add(s),s.add(new go.PathSegment(go.PathSegment.Line,0,n)),s.add(new go.PathSegment(go.PathSegment.Line,0,0)),s.add(new go.PathSegment(go.PathSegment.Line,.8*e,.5*n));var l=new go.PathFigure(1*e,a*n,!0);return i.add(l),l.add(new go.PathSegment(go.PathSegment.Bezier,o*e,.6*n,1*e,(a+r)*n,(o+r)*e,.6*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,.8*e,a*n,(o-r)*e,.6*n,.8*e,(a+r)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,o*e,.4*n,.8*e,(a-r)*n,(o-r)*e,.4*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,1*e,a*n,(o+r)*e,.4*n,1*e,(a-r)*n)),i.spot1=new go.Spot(0,.25),i.spot2=new go.Spot(.4,.75),i})),go.Shape.defineFigureGenerator("NandGate",(function(t,e,n){var i=new go.Geometry,r=.5*u,o=.4*u,a=.1*u,s=.9,l=.5,c=new go.PathFigure(.8*e,.5*n,!0);i.add(c),c.add(new go.PathSegment(go.PathSegment.Bezier,.4*e,n,.8*e,(.5+o)*n,(.4+r)*e,n)),c.add(new go.PathSegment(go.PathSegment.Line,0,n)),c.add(new go.PathSegment(go.PathSegment.Line,0,0)),c.add(new go.PathSegment(go.PathSegment.Line,.4*e,0)),c.add(new go.PathSegment(go.PathSegment.Bezier,.8*e,.5*n,(.4+r)*e,0,.8*e,(.5-o)*n));var h=new go.PathFigure(1*e,l*n,!0);return i.add(h),h.add(new go.PathSegment(go.PathSegment.Bezier,s*e,.6*n,1*e,(l+a)*n,(s+a)*e,.6*n)),h.add(new go.PathSegment(go.PathSegment.Bezier,.8*e,l*n,(s-a)*e,.6*n,.8*e,(l+a)*n)),h.add(new go.PathSegment(go.PathSegment.Bezier,s*e,.4*n,.8*e,(l-a)*n,(s-a)*e,.4*n)),h.add(new go.PathSegment(go.PathSegment.Bezier,1*e,l*n,(s+a)*e,.4*n,1*e,(l-a)*n)),i.spot1=new go.Spot(0,.05),i.spot2=new go.Spot(.55,.95),i})),go.Shape.defineFigureGenerator("NorGate",(function(t,e,n){var i=new go.Geometry,r=.5,o=u*r,a=0,s=.5,l=new go.PathFigure(.8*e,.5*n,!0);i.add(l),l.add(new go.PathSegment(go.PathSegment.Bezier,0,n,.7*e,(s+o)*n,(a+o)*e,(s+r)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*e,.75*n,.25*e,.25*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,.8*e,.5*n,(a+o)*e,(s-r)*n,.7*e,(s-o)*n)),r=.1,o=.1*u,a=.9,s=.5;var c=new go.PathFigure((a-r)*e,s*n,!0);return i.add(c),c.add(new go.PathSegment(go.PathSegment.Bezier,a*e,(s-r)*n,(a-r)*e,(s-o)*n,(a-o)*e,(s-r)*n)),c.add(new go.PathSegment(go.PathSegment.Bezier,(a+r)*e,s*n,(a+o)*e,(s-r)*n,(a+r)*e,(s-o)*n)),c.add(new go.PathSegment(go.PathSegment.Bezier,a*e,(s+r)*n,(a+r)*e,(s+o)*n,(a+o)*e,(s+r)*n)),c.add(new go.PathSegment(go.PathSegment.Bezier,(a-r)*e,s*n,(a-o)*e,(s+r)*n,(a-r)*e,(s+o)*n)),i.spot1=new go.Spot(.2,.25),i.spot2=new go.Spot(.6,.75),i})),go.Shape.defineFigureGenerator("OrGate",(function(t,e,n){var i=new go.Geometry,r=.5*u,o=.5,a=new go.PathFigure(0,0,!0);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Bezier,e,.5*n,(0+r+r)*e,0*n,.8*e,(o-r)*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,0,n,.8*e,(o+r)*n,(0+r+r)*e,1*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*e,.75*n,.25*e,.25*n).close()),i.spot1=new go.Spot(.2,.25),i.spot2=new go.Spot(.75,.75),i})),go.Shape.defineFigureGenerator("XnorGate",(function(t,e,n){var i=new go.Geometry,r=.5,o=u*r,a=.2,s=.5,l=new go.PathFigure(.1*e,0,!1);i.add(l),l.add(new go.PathSegment(go.PathSegment.Bezier,.1*e,n,.35*e,.25*n,.35*e,.75*n));var c=new go.PathFigure(.8*e,.5*n,!0);i.add(c),c.add(new go.PathSegment(go.PathSegment.Bezier,.2*e,n,.7*e,(s+o)*n,(a+o)*e,(s+r)*n)),c.add(new go.PathSegment(go.PathSegment.Bezier,.2*e,0,.45*e,.75*n,.45*e,.25*n)),c.add(new go.PathSegment(go.PathSegment.Bezier,.8*e,.5*n,(a+o)*e,(s-r)*n,.7*e,(s-o)*n)),r=.1,o=.1*u,a=.9,s=.5;var h=new go.PathFigure((a-r)*e,s*n,!0);return i.add(h),h.add(new go.PathSegment(go.PathSegment.Bezier,a*e,(s-r)*n,(a-r)*e,(s-o)*n,(a-o)*e,(s-r)*n)),h.add(new go.PathSegment(go.PathSegment.Bezier,(a+r)*e,s*n,(a+o)*e,(s-r)*n,(a+r)*e,(s-o)*n)),h.add(new go.PathSegment(go.PathSegment.Bezier,a*e,(s+r)*n,(a+r)*e,(s+o)*n,(a+o)*e,(s+r)*n)),h.add(new go.PathSegment(go.PathSegment.Bezier,(a-r)*e,s*n,(a-o)*e,(s+r)*n,(a-r)*e,(s+o)*n)),i.spot1=new go.Spot(.4,.25),i.spot2=new go.Spot(.65,.75),i})),go.Shape.defineFigureGenerator("XorGate",(function(t,e,n){var i=new go.Geometry,r=.5*u,o=.5,a=new go.PathFigure(.1*e,0,!1);i.add(a),a.add(new go.PathSegment(go.PathSegment.Bezier,.1*e,n,.35*e,.25*n,.35*e,.75*n));var s=new go.PathFigure(.2*e,0,!0);return i.add(s),s.add(new go.PathSegment(go.PathSegment.Bezier,e,.5*n,(.2+r)*e,0*n,.9*e,(o-r)*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,.2*e,n,.9*e,(o+r)*n,(.2+r)*e,1*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,.2*e,0,.45*e,.75*n,.45*e,.25*n).close()),i.spot1=new go.Spot(.4,.25),i.spot2=new go.Spot(.8,.75),i})),go.Shape.defineFigureGenerator("Capacitor",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!1);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Move,e,0)),r.add(new go.PathSegment(go.PathSegment.Line,e,n)),i})),go.Shape.defineFigureGenerator("Resistor",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,.5*n,!1);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.1*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,.2*e,n)),r.add(new go.PathSegment(go.PathSegment.Line,.3*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,.4*e,n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,.6*e,n)),r.add(new go.PathSegment(go.PathSegment.Line,.7*e,.5*n)),i})),go.Shape.defineFigureGenerator("Inductor",(function(t,e,n){var i=new go.Geometry,r=.1*u,o=.1,a=.1,s=new go.PathFigure((a-.5*r)*e,n,!1);return i.add(s),s.add(new go.PathSegment(go.PathSegment.Bezier,(a+o)*e,0,(a-r)*e,n,(a-o)*e,0)),a=.3,s.add(new go.PathSegment(go.PathSegment.Bezier,a*e,n,(a+o)*e,0,(a+r)*e,n)),s.add(new go.PathSegment(go.PathSegment.Bezier,(a+o)*e,0,(a-r)*e,n,(a-o)*e,0)),a=.5,s.add(new go.PathSegment(go.PathSegment.Bezier,a*e,n,(a+o)*e,0,(a+r)*e,n)),s.add(new go.PathSegment(go.PathSegment.Bezier,(a+o)*e,0,(a-r)*e,n,(a-o)*e,0)),a=.7,s.add(new go.PathSegment(go.PathSegment.Bezier,a*e,n,(a+o)*e,0,(a+r)*e,n)),s.add(new go.PathSegment(go.PathSegment.Bezier,(a+o)*e,0,(a-r)*e,n,(a-o)*e,0)),a=.9,s.add(new go.PathSegment(go.PathSegment.Bezier,(a+.5*r)*e,n,(a+o)*e,0,(a+r)*e,n)),i})),go.Shape.defineFigureGenerator("ACvoltageSource",(function(t,e,n){var i=new go.Geometry,r=.5*u,o=.5,a=.5,s=new go.PathFigure(0*e,a*n,!1);return i.add(s),s.add(new go.PathSegment(go.PathSegment.Bezier,o*e,0*n,0*e,(a-r)*n,(o-r)*e,0*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,1*e,a*n,(o+r)*e,0*n,1*e,(a-r)*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,o*e,1*n,1*e,(a+r)*n,(o+r)*e,1*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,0*e,a*n,(o-r)*e,1*n,0*e,(a+r)*n)),s.add(new go.PathSegment(go.PathSegment.Move,.1*e,a*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,.9*e,a*n,o*e,0*n,o*e,1*n)),i})),go.Shape.defineFigureGenerator("DCvoltageSource",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,.75*n,!1);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,.25*n)),r.add(new go.PathSegment(go.PathSegment.Move,e,0)),r.add(new go.PathSegment(go.PathSegment.Line,e,n)),i})),go.Shape.defineFigureGenerator("Diode",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(e,0,!1);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,e,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,0)),r.add(new go.PathSegment(go.PathSegment.Line,e,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,e,n)),i.spot1=new go.Spot(0,.25),i.spot2=new go.Spot(.5,.75),i})),go.Shape.defineFigureGenerator("Wifi",(function(t,e,n){var i=new go.Geometry,r=.8*u,o=.8,a=0,s=.5,l=(e-(e*=.38))/2,c=(n-(n*=.6))/2,h=new go.PathFigure(a*e+l,(s+o)*n+c,!0);i.add(h),h.add(new go.PathSegment(go.PathSegment.Bezier,(a-o)*e+l,s*n+c,(a-r)*e+l,(s+o)*n+c,(a-o)*e+l,(s+r)*n+c)),h.add(new go.PathSegment(go.PathSegment.Bezier,a*e+l,(s-o)*n+c,(a-o)*e+l,(s-r)*n+c,(a-r)*e+l,(s-o)*n+c)),h.add(new go.PathSegment(go.PathSegment.Bezier,(a-o+.5*r)*e+l,s*n+c,a*e+l,(s-o)*n+c,(a-o+.5*r)*e+l,(s-r)*n+c)),h.add(new go.PathSegment(go.PathSegment.Bezier,a*e+l,(s+o)*n+c,(a-o+.5*r)*e+l,(s+r)*n+c,a*e+l,(s+o)*n+c).close()),r=.4*u,o=.4,a=.2,s=.5;var d=new go.PathFigure(a*e+l,(s+o)*n+c,!0);i.add(d),d.add(new go.PathSegment(go.PathSegment.Bezier,(a-o)*e+l,s*n+c,(a-r)*e+l,(s+o)*n+c,(a-o)*e+l,(s+r)*n+c)),d.add(new go.PathSegment(go.PathSegment.Bezier,a*e+l,(s-o)*n+c,(a-o)*e+l,(s-r)*n+c,(a-r)*e+l,(s-o)*n+c)),d.add(new go.PathSegment(go.PathSegment.Bezier,(a-o+.5*r)*e+l,s*n+c,a*e+l,(s-o)*n+c,(a-o+.5*r)*e+l,(s-r)*n+c)),d.add(new go.PathSegment(go.PathSegment.Bezier,a*e+l,(s+o)*n+c,(a-o+.5*r)*e+l,(s+r)*n+c,a*e+l,(s+o)*n+c).close()),r=.2*u,o=.2,a=.5,s=.5;var f=new go.PathFigure((a-o)*e+l,s*n+c,!0);i.add(f),f.add(new go.PathSegment(go.PathSegment.Bezier,a*e+l,(s-o)*n+c,(a-o)*e+l,(s-r)*n+c,(a-r)*e+l,(s-o)*n+c)),f.add(new go.PathSegment(go.PathSegment.Bezier,(a+o)*e+l,s*n+c,(a+r)*e+l,(s-o)*n+c,(a+o)*e+l,(s-r)*n+c)),f.add(new go.PathSegment(go.PathSegment.Bezier,a*e+l,(s+o)*n+c,(a+o)*e+l,(s+r)*n+c,(a+r)*e+l,(s+o)*n+c)),f.add(new go.PathSegment(go.PathSegment.Bezier,(a-o)*e+l,s*n+c,(a-r)*e+l,(s+o)*n+c,(a-o)*e+l,(s+r)*n+c)),r=.4*u,o=.4,a=.8,s=.5;var p=new go.PathFigure(a*e+l,(s-o)*n+c,!0);i.add(p),p.add(new go.PathSegment(go.PathSegment.Bezier,(a+o)*e+l,s*n+c,(a+r)*e+l,(s-o)*n+c,(a+o)*e+l,(s-r)*n+c)),p.add(new go.PathSegment(go.PathSegment.Bezier,a*e+l,(s+o)*n+c,(a+o)*e+l,(s+r)*n+c,(a+r)*e+l,(s+o)*n+c)),p.add(new go.PathSegment(go.PathSegment.Bezier,(a+o-.5*r)*e+l,s*n+c,a*e+l,(s+o)*n+c,(a+o-.5*r)*e+l,(s+r)*n+c)),p.add(new go.PathSegment(go.PathSegment.Bezier,a*e+l,(s-o)*n+c,(a+o-.5*r)*e+l,(s-r)*n+c,a*e+l,(s-o)*n+c).close()),r=.8*u,o=.8,a=1,s=.5;var g=new go.PathFigure(a*e+l,(s-o)*n+c,!0);return i.add(g),g.add(new go.PathSegment(go.PathSegment.Bezier,(a+o)*e+l,s*n+c,(a+r)*e+l,(s-o)*n+c,(a+o)*e+l,(s-r)*n+c)),g.add(new go.PathSegment(go.PathSegment.Bezier,a*e+l,(s+o)*n+c,(a+o)*e+l,(s+r)*n+c,(a+r)*e+l,(s+o)*n+c)),g.add(new go.PathSegment(go.PathSegment.Bezier,(a+o-.5*r)*e+l,s*n+c,a*e+l,(s+o)*n+c,(a+o-.5*r)*e+l,(s+r)*n+c)),g.add(new go.PathSegment(go.PathSegment.Bezier,a*e+l,(s-o)*n+c,(a+o-.5*r)*e+l,(s-r)*n+c,a*e+l,(s-o)*n+c).close()),i})),go.Shape.defineFigureGenerator("Email",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,e,0)),r.add(new go.PathSegment(go.PathSegment.Line,e,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var o=new go.PathFigure(0,0,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.5*e,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,e,0)),o.add(new go.PathSegment(go.PathSegment.Move,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,.45*e,.54*n)),o.add(new go.PathSegment(go.PathSegment.Move,e,n)),o.add(new go.PathSegment(go.PathSegment.Line,.55*e,.54*n)),i})),go.Shape.defineFigureGenerator("Ethernet",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(.35*e,0,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.65*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,.65*e,.4*n)),r.add(new go.PathSegment(go.PathSegment.Line,.35*e,.4*n)),r.add(new go.PathSegment(go.PathSegment.Line,.35*e,0).close());var o=new go.PathFigure(.1*e,n,!0,!0);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.4*e,n)),o.add(new go.PathSegment(go.PathSegment.Line,.4*e,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,.1*e,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,.1*e,n).close());var a=new go.PathFigure(.6*e,n,!0,!0);i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,.9*e,n)),a.add(new go.PathSegment(go.PathSegment.Line,.9*e,.6*n)),a.add(new go.PathSegment(go.PathSegment.Line,.6*e,.6*n)),a.add(new go.PathSegment(go.PathSegment.Line,.6*e,n).close());var s=new go.PathFigure(0,.5*n,!1);return i.add(s),s.add(new go.PathSegment(go.PathSegment.Line,e,.5*n)),s.add(new go.PathSegment(go.PathSegment.Move,.5*e,.5*n)),s.add(new go.PathSegment(go.PathSegment.Line,.5*e,.4*n)),s.add(new go.PathSegment(go.PathSegment.Move,.75*e,.5*n)),s.add(new go.PathSegment(go.PathSegment.Line,.75*e,.6*n)),s.add(new go.PathSegment(go.PathSegment.Move,.25*e,.5*n)),s.add(new go.PathSegment(go.PathSegment.Line,.25*e,.6*n)),i})),go.Shape.defineFigureGenerator("Power",(function(t,e,o){var s=new go.Geometry,l=.4*u,c=.4,h=.5,d=.5,f=i(),p=i(),g=i(),m=i();a(h,d-c,h+l,d-c,h+c,d-l,h+c,d,.5,f,f,p,g,m);var v=n(p.x,p.y),y=new go.PathFigure(p.x*e,p.y*o,!0);s.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,(h+c)*e,d*o,g.x*e,g.y*o,m.x*e,m.y*o)),y.add(new go.PathSegment(go.PathSegment.Bezier,h*e,(d+c)*o,(h+c)*e,(d+l)*o,(h+l)*e,(d+c)*o)),y.add(new go.PathSegment(go.PathSegment.Bezier,(h-c)*e,d*o,(h-l)*e,(d+c)*o,(h-c)*e,(d+l)*o)),a(h-c,d,h-c,d-l,h-l,d-c,h,d-c,.5,g,m,p,f,f),y.add(new go.PathSegment(go.PathSegment.Bezier,p.x*e,p.y*o,g.x*e,g.y*o,m.x*e,m.y*o)),a(h-(c=.3),d,h-c,d-(l=.3*u),h-l,d-c,h,d-c,.5,g,m,p,f,f),y.add(new go.PathSegment(go.PathSegment.Line,p.x*e,p.y*o)),y.add(new go.PathSegment(go.PathSegment.Bezier,(h-c)*e,d*o,m.x*e,m.y*o,g.x*e,g.y*o)),y.add(new go.PathSegment(go.PathSegment.Bezier,h*e,(d+c)*o,(h-c)*e,(d+l)*o,(h-l)*e,(d+c)*o)),y.add(new go.PathSegment(go.PathSegment.Bezier,(h+c)*e,d*o,(h+l)*e,(d+c)*o,(h+c)*e,(d+l)*o)),a(h,d-c,h+l,d-c,h+c,d-l,h+c,d,.5,f,f,p,g,m),y.add(new go.PathSegment(go.PathSegment.Bezier,p.x*e,p.y*o,m.x*e,m.y*o,g.x*e,g.y*o).close());y=new go.PathFigure(.45*e,0,!0);return s.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.45*e,.5*o)),y.add(new go.PathSegment(go.PathSegment.Line,.55*e,.5*o)),y.add(new go.PathSegment(go.PathSegment.Line,.55*e,0).close()),r(f),r(p),r(g),r(m),r(v),s.spot1=new go.Spot(.25,.45),s.spot2=new go.Spot(.75,.8),s})),go.Shape.defineFigureGenerator("Fallout",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,n/2,!0);function o(t,i,r){t.add(new go.PathSegment(go.PathSegment.Move,(.3+i)*e,(.8+r)*n)),t.add(new go.PathSegment(go.PathSegment.Line,(.5+i)*e,(.5+r)*n)),t.add(new go.PathSegment(go.PathSegment.Line,(.1+i)*e,(.5+r)*n)),t.add(new go.PathSegment(go.PathSegment.Line,(.3+i)*e,(.8+r)*n).close())}return i.add(r),r.add(new go.PathSegment(go.PathSegment.Arc,180,360,e/2,n/2,e/2,n/2)),o(r,0,0),o(r,.4,0),o(r,.2,-.3),i})),go.Shape.defineFigureGenerator("IrritationHazard",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(.2*e,0,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,.3*n)),r.add(new go.PathSegment(go.PathSegment.Line,.8*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,e,.2*n)),r.add(new go.PathSegment(go.PathSegment.Line,.7*e,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,e,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,.8*e,n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,.7*n)),r.add(new go.PathSegment(go.PathSegment.Line,.2*e,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,.3*e,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.2*n).close()),i.spot1=new go.Spot(.3,.3),i.spot2=new go.Spot(.7,.7),i})),go.Shape.defineFigureGenerator("ElectricalHazard",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(.37*e,0,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,.11*n)),r.add(new go.PathSegment(go.PathSegment.Line,.77*e,.04*n)),r.add(new go.PathSegment(go.PathSegment.Line,.33*e,.49*n)),r.add(new go.PathSegment(go.PathSegment.Line,e,.37*n)),r.add(new go.PathSegment(go.PathSegment.Line,.63*e,.86*n)),r.add(new go.PathSegment(go.PathSegment.Line,.77*e,.91*n)),r.add(new go.PathSegment(go.PathSegment.Line,.34*e,n)),r.add(new go.PathSegment(go.PathSegment.Line,.34*e,.78*n)),r.add(new go.PathSegment(go.PathSegment.Line,.44*e,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,.65*e,.56*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.68*n).close()),i})),go.Shape.defineFigureGenerator("FireHazard",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(.1*e,n,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Bezier,.29*e,0,-.25*e,.63*n,.45*e,.44*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.51*e,.42*n,.48*e,.17*n,.54*e,.35*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.59*e,.18*n,.59*e,.29*n,.58*e,.28*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.75*e,.6*n,.8*e,.34*n,.88*e,.43*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.88*e,.31*n,.87*e,.48*n,.88*e,.43*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.9*e,n,1.17*e,.76*n,.82*e,.8*n).close()),i.spot1=new go.Spot(.07,.445),i.spot2=new go.Spot(.884,.958),i})),go.Shape.defineFigureGenerator("BpmnActivityLoop",(function(t,e,n){var i=new go.Geometry,r=.5,o=r*u,a=.4*Math.SQRT2/2+.5,s=.5-.5*Math.SQRT2/2,l=new go.PathFigure(a*e,(1-s)*n,!1);return i.add(l),l.add(new go.PathSegment(go.PathSegment.Bezier,1*e,.5*n,1*e,.7*n,1*e,.5*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,.5*e,0*n,1*e,(.5-o+0)*n,(.5+o+0)*e,0*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,0*e,.5*n,(.5-o+0)*e,0*n,0*e,(.5-o+0)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,.35*e,.9*n,0*e,(.5+o+0)*n,(.5-o+0)*e,.9*n)),l.add(new go.PathSegment(go.PathSegment.Move,.25*e,.8*n)),l.add(new go.PathSegment(go.PathSegment.Line,.35*e,.9*n)),l.add(new go.PathSegment(go.PathSegment.Line,.2*e,.95*n)),i})),go.Shape.defineFigureGenerator("BpmnActivityParallel",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!1);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Move,.5*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,n)),r.add(new go.PathSegment(go.PathSegment.Move,e,0)),r.add(new go.PathSegment(go.PathSegment.Line,e,n)),i})),go.Shape.defineFigureGenerator("BpmnActivitySequential",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!1);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,e,0)),r.add(new go.PathSegment(go.PathSegment.Move,0,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,e,.5*n)),r.add(new go.PathSegment(go.PathSegment.Move,0,n)),r.add(new go.PathSegment(go.PathSegment.Line,e,n)),i})),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!1);i.add(r);var o=new go.PathFigure(e,n,!1);i.add(o);var a=new go.PathFigure(0,.5*n,!1);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Bezier,.5*e,.5*n,.2*e,.35*n,.3*e,.35*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,e,.5*n,.7*e,.65*n,.8*e,.65*n)),i})),go.Shape.defineFigureGenerator("BpmnActivityCompensation",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,.5*n,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,e,n)),r.add(new go.PathSegment(go.PathSegment.Line,e,0)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,n).close()),i})),go.Shape.defineFigureGenerator("BpmnTaskMessage",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,.2*n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,e,.2*n)),r.add(new go.PathSegment(go.PathSegment.Line,e,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.8*n).close());r=new go.PathFigure(0,.2*n,!1);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,e,.2*n)),i})),go.Shape.defineFigureGenerator("BpmnTaskScript",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(.7*e,n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.3*e,n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.3*e,0,.6*e,.5*n,0,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.7*e,0)),r.add(new go.PathSegment(go.PathSegment.Bezier,.7*e,n,.4*e,.5*n,e,.5*n).close());var o=new go.PathFigure(.45*e,.73*n,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.7*e,.73*n)),o.add(new go.PathSegment(go.PathSegment.Move,.38*e,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,.63*e,.5*n)),o.add(new go.PathSegment(go.PathSegment.Move,.31*e,.27*n)),o.add(new go.PathSegment(go.PathSegment.Line,.56*e,.27*n)),i})),go.Shape.defineFigureGenerator("BpmnTaskUser",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!1);i.add(r);var o=new go.PathFigure(.335*e,(1-.555)*n,!0);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.335*e,.595*n)),o.add(new go.PathSegment(go.PathSegment.Line,.665*e,.595*n)),o.add(new go.PathSegment(go.PathSegment.Line,.665*e,(1-.555)*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,e,.68*n,.88*e,.46*n,.98*e,.54*n)),o.add(new go.PathSegment(go.PathSegment.Line,e,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.68*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.335*e,(1-.555)*n,.02*e,.54*n,.12*e,.46*n)),o.add(new go.PathSegment(go.PathSegment.Line,.365*e,.405*n));var a=.5-.285,s=.5,l=a,u=Math.PI/4,c=4*(1-Math.cos(u))/(3*Math.sin(u)),h=a,d=a,f=c*h,p=c*d;o.add(new go.PathSegment(go.PathSegment.Bezier,.285*e,l*n,(s-(f+h)/2)*e,(l+(d+p)/2)*n,.285*e,(l+p)*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,s*e,0*n,.285*e,(l-p)*n,(s-f)*e,0*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,(s+h)*e,l*n,(s+f)*e,0*n,(s+h)*e,(l-p)*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.635*e,.405*n,(s+h)*e,(l+p)*n,(s+(f+h)/2)*e,(l+(d+p)/2)*n)),o.add(new go.PathSegment(go.PathSegment.Line,.635*e,.405*n)),o.add(new go.PathSegment(go.PathSegment.Line,.665*e,(1-.555)*n)),o.add(new go.PathSegment(go.PathSegment.Line,.665*e,.595*n)),o.add(new go.PathSegment(go.PathSegment.Line,.335*e,.595*n));var g=new go.PathFigure(.2*e,n,!1);i.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.2*e,.8*n));var m=new go.PathFigure(.8*e,n,!1);return i.add(m),m.add(new go.PathSegment(go.PathSegment.Line,.8*e,.8*n)),i})),go.Shape.defineFigureGenerator("BpmnEventConditional",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(.1*e,0,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.9*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,.9*e,n)),r.add(new go.PathSegment(go.PathSegment.Line,.1*e,n).close());var o=new go.PathFigure(.2*e,.2*n,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.8*e,.2*n)),o.add(new go.PathSegment(go.PathSegment.Move,.2*e,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*e,.4*n)),o.add(new go.PathSegment(go.PathSegment.Move,.2*e,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*e,.6*n)),o.add(new go.PathSegment(go.PathSegment.Move,.2*e,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*e,.8*n)),i})),go.Shape.defineFigureGenerator("BpmnEventError",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,n,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.33*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,.66*e,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,e,0)),r.add(new go.PathSegment(go.PathSegment.Line,.66*e,n)),r.add(new go.PathSegment(go.PathSegment.Line,.33*e,.5*n).close()),i})),go.Shape.defineFigureGenerator("BpmnEventEscalation",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!1);i.add(r);var o=new go.PathFigure(e,n,!1);i.add(o);var a=new go.PathFigure(.1*e,n,!0);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,.5*e,0)),a.add(new go.PathSegment(go.PathSegment.Line,.9*e,n)),a.add(new go.PathSegment(go.PathSegment.Line,.5*e,.5*n).close()),i})),go.Shape.defineFigureGenerator("Caution",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(.05*e,n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Bezier,.1*e,.8*n,0,n,0,n)),r.add(new go.PathSegment(go.PathSegment.Line,.45*e,.1*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.55*e,.1*n,.5*e,0,.5*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,.95*e,.9*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.9*e,n,e,n,e,n)),r.add(new go.PathSegment(go.PathSegment.Line,.05*e,n));var o=.05;return r.add(new go.PathSegment(go.PathSegment.Move,.45*e,.875*n)),r.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*e,.875*n,o*e,o*n)),r.add(new go.PathSegment(go.PathSegment.Move,.5*e,.75*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*e,.325*n,.575*e,.725*n,.625*e,.375*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*e,.75*n,.375*e,.375*n,.425*e,.725*n)),i})),go.Shape.defineFigureGenerator("Recycle",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(.45*e,.95*n,!1);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.2*e,.95*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.185*e,.85*n,.17*e,.95*n,.15*e,.9*n)),r.add(new go.PathSegment(go.PathSegment.Line,.235*e,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,.3*e,.625*n)),r.add(new go.PathSegment(go.PathSegment.Line,.35*e,.65*n)),r.add(new go.PathSegment(go.PathSegment.Line,.275*e,.45*n)),r.add(new go.PathSegment(go.PathSegment.Line,.05*e,.45*n)),r.add(new go.PathSegment(go.PathSegment.Line,.1*e,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.05*e,.575*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.1875*e,.95*n,0,.675*n,0,.7*n)),r.add(new go.PathSegment(go.PathSegment.Move,.45*e,.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,.45*e,.775*n)),r.add(new go.PathSegment(go.PathSegment.Line,.22*e,.775*n));var o=new go.PathFigure(.475*e,.2*n,!1);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.4*e,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,.225*e,.3*n)),o.add(new go.PathSegment(go.PathSegment.Line,.275*e,.175*n)),o.add(new go.PathSegment(go.PathSegment.Line,.325*e,.05*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.4*e,.05*n,.35*e,0,.375*e,0)),o.add(new go.PathSegment(go.PathSegment.Line,.575*e,.375*n)),o.add(new go.PathSegment(go.PathSegment.Line,.525*e,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,.75*e,.475*n)),o.add(new go.PathSegment(go.PathSegment.Line,.85*e,.315*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*e,.32*n)),o.add(new go.PathSegment(go.PathSegment.Line,.65*e,.05*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.575*e,0,.65*e,.05*n,.625*e,0)),o.add(new go.PathSegment(go.PathSegment.Line,.38*e,.0105*n));var a=new go.PathFigure(.675*e,.575*n,!1);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,.875*e,.525*n)),a.add(new go.PathSegment(go.PathSegment.Line,e,.775*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,.85*e,.95*n,e,.8*n,e,.85*n)),a.add(new go.PathSegment(go.PathSegment.Line,.65*e,.95*n)),a.add(new go.PathSegment(go.PathSegment.Line,.65*e,n)),a.add(new go.PathSegment(go.PathSegment.Line,.55*e,.85*n)),a.add(new go.PathSegment(go.PathSegment.Line,.65*e,.725*n)),a.add(new go.PathSegment(go.PathSegment.Line,.65*e,.775*n)),a.add(new go.PathSegment(go.PathSegment.Line,.7*e,.775*n)),a.add(new go.PathSegment(go.PathSegment.Line,e,.775*n)),a.add(new go.PathSegment(go.PathSegment.Move,.675*e,.575*n)),a.add(new go.PathSegment(go.PathSegment.Line,.775*e,.775*n)),i})),go.Shape.defineFigureGenerator("BpmnEventTimer",(function(t,e,n){var i=new go.Geometry,r=.5,o=.5*u,a=new go.PathFigure(e,r*n,!0);i.add(a),a.add(new go.PathSegment(go.PathSegment.Bezier,r*e,n,e,(r+o)*n,(r+o)*e,n)),a.add(new go.PathSegment(go.PathSegment.Bezier,0,r*n,(r-o)*e,n,0,(r+o)*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,r*e,0,0,(r-o)*n,(r-o)*e,0)),a.add(new go.PathSegment(go.PathSegment.Bezier,e,r*n,(r+o)*e,0,e,(r-o)*n));var s=new go.PathFigure(r*e,0,!1);return i.add(s),s.add(new go.PathSegment(go.PathSegment.Line,r*e,.15*n)),s.add(new go.PathSegment(go.PathSegment.Move,r*e,n)),s.add(new go.PathSegment(go.PathSegment.Line,r*e,.85*n)),s.add(new go.PathSegment(go.PathSegment.Move,0,r*n)),s.add(new go.PathSegment(go.PathSegment.Line,.15*e,r*n)),s.add(new go.PathSegment(go.PathSegment.Move,e,r*n)),s.add(new go.PathSegment(go.PathSegment.Line,.85*e,r*n)),s.add(new go.PathSegment(go.PathSegment.Move,r*e,r*n)),s.add(new go.PathSegment(go.PathSegment.Line,.58*e,.1*n)),s.add(new go.PathSegment(go.PathSegment.Move,r*e,r*n)),s.add(new go.PathSegment(go.PathSegment.Line,.78*e,.54*n)),i})),go.Shape.defineFigureGenerator("Package",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,.15*n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,e,.15*n)),r.add(new go.PathSegment(go.PathSegment.Line,e,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var o=new go.PathFigure(0,.15*n,!0);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,0)),o.add(new go.PathSegment(go.PathSegment.Line,.6*e,0)),o.add(new go.PathSegment(go.PathSegment.Line,.65*e,.15*n).close()),i.spot1=new go.Spot(0,.1),i.spot2=new go.Spot(1,1),i})),go.Shape.defineFigureGenerator("Class",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,e,0)),r.add(new go.PathSegment(go.PathSegment.Line,e,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var o=new go.PathFigure(0,.2*n,!1);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,e,.2*n).close());var a=new go.PathFigure(0,.5*n,!1);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,e,.5*n).close()),i})),go.Shape.defineFigureGenerator("Component",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(e,n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,e,0)),r.add(new go.PathSegment(go.PathSegment.Line,.15*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,.15*e,n)),r.add(new go.PathSegment(go.PathSegment.Line,e,n).close());var o=new go.PathFigure(0,.2*n,!0);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.45*e,.2*n)),o.add(new go.PathSegment(go.PathSegment.Line,.45*e,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.2*n).close());var a=new go.PathFigure(0,.6*n,!0);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,.45*e,.6*n)),a.add(new go.PathSegment(go.PathSegment.Line,.45*e,.8*n)),a.add(new go.PathSegment(go.PathSegment.Line,0,.8*n)),a.add(new go.PathSegment(go.PathSegment.Line,0,.6*n).close()),i})),go.Shape.defineFigureGenerator("Boat Shipment",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(.15*e,.6*n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.15*e,.6*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.6*n)),r.add(new go.PathSegment(go.PathSegment.Line,.15*e,n)),r.add(new go.PathSegment(go.PathSegment.Line,.85*e,n)),r.add(new go.PathSegment(go.PathSegment.Line,e,.6*n)),r.add(new go.PathSegment(go.PathSegment.Line,.85*e,.6*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,.15*e,.6*n));var o=new go.PathFigure(.15*e,.6*n,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.85*e,.6*n)),i})),go.Shape.defineFigureGenerator("Customer/Supplier",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(e,n,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,e,0)),r.add(new go.PathSegment(go.PathSegment.Line,.66*e,.33*n)),r.add(new go.PathSegment(go.PathSegment.Line,.66*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,.33*e,.33*n)),r.add(new go.PathSegment(go.PathSegment.Line,.33*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,0,.33*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Line,e,n).close()),i})),go.Shape.defineFigureGenerator("Workcell",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,n,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,0)),r.add(new go.PathSegment(go.PathSegment.Line,e,0)),r.add(new go.PathSegment(go.PathSegment.Line,e,n)),r.add(new go.PathSegment(go.PathSegment.Line,.65*e,n)),r.add(new go.PathSegment(go.PathSegment.Line,.65*e,.4*n)),r.add(new go.PathSegment(go.PathSegment.Line,.35*e,.4*n)),r.add(new go.PathSegment(go.PathSegment.Line,.35*e,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),i})),go.Shape.defineFigureGenerator("Supermarket",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!1);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,e,0)),r.add(new go.PathSegment(go.PathSegment.Line,e,.33*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.33*n)),r.add(new go.PathSegment(go.PathSegment.Move,e,.33*n)),r.add(new go.PathSegment(go.PathSegment.Line,e,.66*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.66*n)),r.add(new go.PathSegment(go.PathSegment.Move,e,.66*n)),r.add(new go.PathSegment(go.PathSegment.Line,e,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),i})),go.Shape.defineFigureGenerator("TruckShipment",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.6*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,.6*e,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var o=new go.PathFigure(e,.8*n,!0);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,e,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,.6*e,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,.6*e,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,e,.8*n).close());var a=.1,s=.1*u,l=.2,c=.9,h=new go.PathFigure((l-a)*e,c*n,!0);i.add(h),h.add(new go.PathSegment(go.PathSegment.Bezier,l*e,(c-a)*n,(l-a)*e,(c-s)*n,(l-s)*e,(c-a)*n)),h.add(new go.PathSegment(go.PathSegment.Bezier,(l+a)*e,c*n,(l+s)*e,(c-a)*n,(l+a)*e,(c-s)*n)),h.add(new go.PathSegment(go.PathSegment.Bezier,l*e,(c+a)*n,(l+a)*e,(c+s)*n,(l+s)*e,(c+a)*n)),h.add(new go.PathSegment(go.PathSegment.Bezier,(l-a)*e,c*n,(l-s)*e,(c+a)*n,(l-a)*e,(c+s)*n).close()),a=.1,s=.1*u,l=.8,c=.9;var d=new go.PathFigure((l-a)*e,c*n,!0);return i.add(d),d.add(new go.PathSegment(go.PathSegment.Bezier,l*e,(c-a)*n,(l-a)*e,(c-s)*n,(l-s)*e,(c-a)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,(l+a)*e,c*n,(l+s)*e,(c-a)*n,(l+a)*e,(c-s)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,l*e,(c+a)*n,(l+a)*e,(c+s)*n,(l+s)*e,(c+a)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,(l-a)*e,c*n,(l-s)*e,(c+a)*n,(l-a)*e,(c+s)*n).close()),i})),go.Shape.defineFigureGenerator("KanbanPost",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(.2*e,0,!1);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.2*e,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.8*e,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.8*e,0)),r.add(new go.PathSegment(go.PathSegment.Move,.5*e,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,n)),r.add(new go.PathSegment(go.PathSegment.Line,.2*e,n)),r.add(new go.PathSegment(go.PathSegment.Move,.5*e,n)),r.add(new go.PathSegment(go.PathSegment.Line,.8*e,n)),i})),go.Shape.defineFigureGenerator("Forklift",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.4*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,0,0));var o=new go.PathFigure(0,.5*n,!0);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*e,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*e,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.5*n));var a=new go.PathFigure(.5*e,.8*n,!0);i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,.5*e,.1*n)),a.add(new go.PathSegment(go.PathSegment.Line,.55*e,.1*n)),a.add(new go.PathSegment(go.PathSegment.Line,.55*e,.8*n)),a.add(new go.PathSegment(go.PathSegment.Line,.5*e,.8*n));var s=new go.PathFigure(.5*e,.7*n,!1);i.add(s),s.add(new go.PathSegment(go.PathSegment.Line,e,.7*n));var l=.1,c=.1*u,h=.1,d=.9,f=new go.PathFigure((h-l)*e,d*n,!0);i.add(f),f.add(new go.PathSegment(go.PathSegment.Bezier,h*e,(d-l)*n,(h-l)*e,(d-c)*n,(h-c)*e,(d-l)*n)),f.add(new go.PathSegment(go.PathSegment.Bezier,(h+l)*e,d*n,(h+c)*e,(d-l)*n,(h+l)*e,(d-c)*n)),f.add(new go.PathSegment(go.PathSegment.Bezier,h*e,(d+l)*n,(h+l)*e,(d+c)*n,(h+c)*e,(d+l)*n)),f.add(new go.PathSegment(go.PathSegment.Bezier,(h-l)*e,d*n,(h-c)*e,(d+l)*n,(h-l)*e,(d+c)*n)),l=.1,c=.1*u,h=.4,d=.9;var p=new go.PathFigure((h-l)*e,d*n,!0);return i.add(p),p.add(new go.PathSegment(go.PathSegment.Bezier,h*e,(d-l)*n,(h-l)*e,(d-c)*n,(h-c)*e,(d-l)*n)),p.add(new go.PathSegment(go.PathSegment.Bezier,(h+l)*e,d*n,(h+c)*e,(d-l)*n,(h+l)*e,(d-c)*n)),p.add(new go.PathSegment(go.PathSegment.Bezier,h*e,(d+l)*n,(h+l)*e,(d+c)*n,(h+c)*e,(d+l)*n)),p.add(new go.PathSegment(go.PathSegment.Bezier,(h-l)*e,d*n,(h-c)*e,(d+l)*n,(h-l)*e,(d+c)*n)),i})),go.Shape.defineFigureGenerator("RailShipment",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(.1*e,.4*n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.45*e,.4*n)),r.add(new go.PathSegment(go.PathSegment.Line,.45*e,.9*n)),r.add(new go.PathSegment(go.PathSegment.Line,.1*e,.9*n)),r.add(new go.PathSegment(go.PathSegment.Line,.1*e,.4*n).close());var o=new go.PathFigure(.45*e,.7*n,!1);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.55*e,.7*n));var a=new go.PathFigure(.55*e,.4*n,!0);i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,.9*e,.4*n)),a.add(new go.PathSegment(go.PathSegment.Line,.9*e,.9*n)),a.add(new go.PathSegment(go.PathSegment.Line,.55*e,.9*n)),a.add(new go.PathSegment(go.PathSegment.Line,.55*e,.4*n).close());var s=.05,l=.05*u,c=.175,h=.95,d=new go.PathFigure((c-s)*e,h*n,!0);i.add(d),d.add(new go.PathSegment(go.PathSegment.Bezier,c*e,(h-s)*n,(c-s)*e,(h-l)*n,(c-l)*e,(h-s)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,(c+s)*e,h*n,(c+l)*e,(h-s)*n,(c+s)*e,(h-l)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,c*e,(h+s)*n,(c+s)*e,(h+l)*n,(c+l)*e,(h+s)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,(c-s)*e,h*n,(c-l)*e,(h+s)*n,(c-s)*e,(h+l)*n));s=.05,l=.05*u,c=.375,h=.95;var f=new go.PathFigure((c-s)*e,h*n,!0);i.add(f),f.add(new go.PathSegment(go.PathSegment.Bezier,c*e,(h-s)*n,(c-s)*e,(h-l)*n,(c-l)*e,(h-s)*n)),f.add(new go.PathSegment(go.PathSegment.Bezier,(c+s)*e,h*n,(c+l)*e,(h-s)*n,(c+s)*e,(h-l)*n)),f.add(new go.PathSegment(go.PathSegment.Bezier,c*e,(h+s)*n,(c+s)*e,(h+l)*n,(c+l)*e,(h+s)*n)),f.add(new go.PathSegment(go.PathSegment.Bezier,(c-s)*e,h*n,(c-l)*e,(h+s)*n,(c-s)*e,(h+l)*n));s=.05,l=.05*u,c=.625,h=.95;var p=new go.PathFigure((c-s)*e,h*n,!0);i.add(p),p.add(new go.PathSegment(go.PathSegment.Bezier,c*e,(h-s)*n,(c-s)*e,(h-l)*n,(c-l)*e,(h-s)*n)),p.add(new go.PathSegment(go.PathSegment.Bezier,(c+s)*e,h*n,(c+l)*e,(h-s)*n,(c+s)*e,(h-l)*n)),p.add(new go.PathSegment(go.PathSegment.Bezier,c*e,(h+s)*n,(c+s)*e,(h+l)*n,(c+l)*e,(h+s)*n)),p.add(new go.PathSegment(go.PathSegment.Bezier,(c-s)*e,h*n,(c-l)*e,(h+s)*n,(c-s)*e,(h+l)*n));s=.05,l=.05*u,c=.825,h=.95;var g=new go.PathFigure((c-s)*e,h*n,!0);i.add(g),g.add(new go.PathSegment(go.PathSegment.Bezier,c*e,(h-s)*n,(c-s)*e,(h-l)*n,(c-l)*e,(h-s)*n)),g.add(new go.PathSegment(go.PathSegment.Bezier,(c+s)*e,h*n,(c+l)*e,(h-s)*n,(c+s)*e,(h-l)*n)),g.add(new go.PathSegment(go.PathSegment.Bezier,c*e,(h+s)*n,(c+s)*e,(h+l)*n,(c+l)*e,(h+s)*n)),g.add(new go.PathSegment(go.PathSegment.Bezier,(c-s)*e,h*n,(c-l)*e,(h+s)*n,(c-s)*e,(h+l)*n).close());var m=new go.PathFigure(0,n,!1);return i.add(m),m.add(new go.PathSegment(go.PathSegment.Line,e,n).close()),i})),go.Shape.defineFigureGenerator("Warehouse",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,e,0)),r.add(new go.PathSegment(go.PathSegment.Line,e,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var o=new go.PathFigure(0,.2*n,!1);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,e,.2*n).close());var a=new go.PathFigure(.15*e,n,!0);i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,.15*e,.5*n)),a.add(new go.PathSegment(go.PathSegment.Line,.4*e,.5*n)),a.add(new go.PathSegment(go.PathSegment.Line,.4*e,n)),a.add(new go.PathSegment(go.PathSegment.Line,.15*e,n).close());var s=.05,l=.05*u,c=.35,h=.775,d=new go.PathFigure(.3*e,h*n,!0);return i.add(d),d.add(new go.PathSegment(go.PathSegment.Bezier,c*e,.725*n,.3*e,(h-l)*n,(c-l)*e,.725*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,(c+s)*e,h*n,(c+l)*e,.725*n,(c+s)*e,(h-l)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,c*e,(h+s)*n,(c+s)*e,(h+l)*n,(c+l)*e,(h+s)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,.3*e,h*n,(c-l)*e,(h+s)*n,.3*e,(h+l)*n).close()),i})),go.Shape.defineFigureGenerator("ControlCenter",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,n,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,.1*e,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,.1*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,.9*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,.9*e,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,e,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,e,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Move,.1*e,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,.9*e,.8*n).close()),i})),go.Shape.defineFigureGenerator("Bluetooth",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,.75*n,!1);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,e,.25*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,n)),r.add(new go.PathSegment(go.PathSegment.Line,e,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.25*n)),i})),go.Shape.defineFigureGenerator("Bookmark",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,.6*n)),r.add(new go.PathSegment(go.PathSegment.Line,e,n)),r.add(new go.PathSegment(go.PathSegment.Line,e,0)),r.add(new go.PathSegment(go.PathSegment.Line,0,0)),r.add(new go.PathSegment(go.PathSegment.Move,.2*e,.2*n)),r.add(new go.PathSegment(go.PathSegment.Line,.8*e,.2*n)),r.add(new go.PathSegment(go.PathSegment.Move,.2*e,.4*n)),r.add(new go.PathSegment(go.PathSegment.Line,.8*e,.4*n)),i})),go.Shape.defineFigureGenerator("Bookmark",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,.6*n)),r.add(new go.PathSegment(go.PathSegment.Line,e,n)),r.add(new go.PathSegment(go.PathSegment.Line,e,0)),r.add(new go.PathSegment(go.PathSegment.Line,0,0)),r.add(new go.PathSegment(go.PathSegment.Move,.2*e,.2*n)),r.add(new go.PathSegment(go.PathSegment.Line,.8*e,.2*n)),r.add(new go.PathSegment(go.PathSegment.Move,.2*e,.4*n)),r.add(new go.PathSegment(go.PathSegment.Line,.8*e,.4*n)),i})),go.Shape.defineFigureGenerator("Globe",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(.5*e,0,!1);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,n)),r.add(new go.PathSegment(go.PathSegment.Move,0,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,e,.5*n)),r.add(new go.PathSegment(go.PathSegment.Move,.5*e,0)),r.add(new go.PathSegment(go.PathSegment.Bezier,e,.5*n,.75*e,0,e,.25*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*e,n,e,.75*n,.75*e,n)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*n,.25*e,n,0,.75*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*e,0,0,.25*n,.25*e,0)),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*e,n,.15*e,.25*n,.15*e,.75*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*e,0,.85*e,.75*n,.85*e,.25*n)),r.add(new go.PathSegment(go.PathSegment.Move,.1675*e,.15*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.8325*e,.15*n,.35*e,.3*n,.65*e,.3*n)),r.add(new go.PathSegment(go.PathSegment.Move,.1675*e,.85*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.8325*e,.85*n,.35*e,.7*n,.65*e,.7*n)),i})),go.Shape.defineFigureGenerator("Wave",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,.25*n,!1);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Bezier,.3*e,.25*n,.1*e,0,.2*e,0)),r.add(new go.PathSegment(go.PathSegment.Bezier,.7*e,.25*n,.425*e,.5*n,.575*e,.5*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,e,.25*n,.8*e,0,.9*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,e,.75*n)),r.add(new go.PathSegment(go.PathSegment.Move,0,.25*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.75*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.3*e,.75*n,.1*e,.5*n,.2*e,.5*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.7*e,.75*n,.425*e,n,.575*e,n)),r.add(new go.PathSegment(go.PathSegment.Bezier,e,.75*n,.8*e,.5*n,.9*e,.5*n)),i})),go.Shape.defineFigureGenerator("Operator",(function(t,e,n){var i=new go.Geometry,r=.3,o=.3*u,a=.5,s=.7,l=new go.PathFigure(.2*e,s*n,!0);i.add(l),l.add(new go.PathSegment(go.PathSegment.Bezier,a*e,(s-r)*n,.2*e,(s-o)*n,(a-o)*e,(s-r)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,.8*e,s*n,(a+o)*e,(s-r)*n,.8*e,(s-o)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,a*e,1*n,.8*e,(s+o)*n,(a+o)*e,1*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,.2*e,s*n,(a-o)*e,1*n,.2*e,(s+o)*n));var c=new go.PathFigure(0,.7*n,!1);return i.add(c),c.add(new go.PathSegment(go.PathSegment.Bezier,e,.7*n,0,0,e,0)),i})),go.Shape.defineFigureGenerator("TripleFanBlades",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(.5*e,0,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*e,.65*n,.65*e,.3*n,.65*e,.5*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*e,0,.35*e,.5*n,.35*e,.3*n)),r.add(new go.PathSegment(go.PathSegment.Move,.5*e,.65*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,n,.3*e,.6*n,.1*e,.8*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*e,.65*n,.2*e,n,.35*e,.95*n)),r.add(new go.PathSegment(go.PathSegment.Move,.5*e,.65*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,e,n,.7*e,.6*n,.9*e,.8*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*e,.65*n,.8*e,n,.65*e,.95*n)),i})),go.Shape.defineFigureGenerator("CentrifugalPump",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(e,0,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.4*e,0)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*n,0,.075*n,0,.5*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.4*e,n,0,n,.4*e,n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.8*e,.4*n,.8*e,n,.85*e,.6*n)),r.add(new go.PathSegment(go.PathSegment.Line,e,.4*n)),r.add(new go.PathSegment(go.PathSegment.Line,e,0)),i})),go.Shape.defineFigureGenerator("Battery",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,.1*n)),r.add(new go.PathSegment(go.PathSegment.Line,e,.1*n)),r.add(new go.PathSegment(go.PathSegment.Line,e,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Move,.4*e,.1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.4*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,.6*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,.6*e,.1*n));var o=new go.PathFigure(0,.6*n,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Move,0,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,e,.4*n)),i})),go.Shape.defineFigureGenerator("Delete",(function(t,e,n){var i=new go.Geometry,r=.5*u,o=.5,a=.5,s=new go.PathFigure(0*e,a*n,!0);i.add(s),s.add(new go.PathSegment(go.PathSegment.Bezier,o*e,0*n,0*e,(a-r)*n,(o-r)*e,0*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,1*e,a*n,(o+r)*e,0*n,1*e,(a-r)*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,o*e,1*n,1*e,(a+r)*n,(o+r)*e,1*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,0*e,a*n,(o-r)*e,1*n,0*e,(a+r)*n));var l=new go.PathFigure(.15*e,.5*n,!1);return i.add(l),l.add(new go.PathSegment(go.PathSegment.Line,.85*e,.5*n)),i})),go.Shape.defineFigureGenerator("Flag",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,.1*n,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Move,0,.1*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*e,.1*n,.15*e,0,.35*e,0)),r.add(new go.PathSegment(go.PathSegment.Bezier,e,.1*n,.65*e,.2*n,.85*e,.2*n)),r.add(new go.PathSegment(go.PathSegment.Line,e,.5*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*e,.5*n,.85*e,.6*n,.65*e,.6*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*n,.35*e,.4*n,.15*e,.4*n).close()),i})),go.Shape.defineFigureGenerator("Help",(function(t,e,n){var i=new go.Geometry,r=.5,o=.5*u,a=.5,s=.5,l=new go.PathFigure((a-r)*e,s*n,!1);i.add(l),l.add(new go.PathSegment(go.PathSegment.Bezier,a*e,(s-r)*n,(a-r)*e,(s-o)*n,(a-o)*e,(s-r)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,(a+r)*e,s*n,(a+o)*e,(s-r)*n,(a+r)*e,(s-o)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,a*e,(s+r)*n,(a+r)*e,(s+o)*n,(a+o)*e,(s+r)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,(a-r)*e,s*n,(a-o)*e,(s+r)*n,(a-r)*e,(s+o)*n).close()),r=.05,o=.05*u,a=.5,s=.8;var c=new go.PathFigure((a-r)*e,s*n,!1);return i.add(c),c.add(new go.PathSegment(go.PathSegment.Bezier,a*e,(s-r)*n,(a-r)*e,(s-o)*n,(a-o)*e,(s-r)*n)),c.add(new go.PathSegment(go.PathSegment.Bezier,(a+r)*e,s*n,(a+o)*e,(s-r)*n,(a+r)*e,(s-o)*n)),c.add(new go.PathSegment(go.PathSegment.Bezier,a*e,(s+r)*n,(a+r)*e,(s+o)*n,(a+o)*e,(s+r)*n)),c.add(new go.PathSegment(go.PathSegment.Bezier,(a-r)*e,s*n,(a-o)*e,(s+r)*n,(a-r)*e,(s+o)*n).close()),c.add(new go.PathSegment(go.PathSegment.Move,.5*e,.7*n)),c.add(new go.PathSegment(go.PathSegment.Line,.5*e,.5*n)),c.add(new go.PathSegment(go.PathSegment.Bezier,.5*e,.2*n,.75*e,.475*n,.75*e,.225*n)),c.add(new go.PathSegment(go.PathSegment.Bezier,.3*e,.35*n,.4*e,.2*n,.3*e,.25*n)),i})),go.Shape.defineFigureGenerator("Location",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(.5*e,n,!0).add(new go.PathSegment(go.PathSegment.Line,.75*e,.5*n)).add(new go.PathSegment(go.PathSegment.Bezier,.5*e,0,.975*e,.025*n,.5*e,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*e,.5*n,.5*e,0,.025*e,.025*n).close()).add(new go.PathSegment(go.PathSegment.Move,.5*e,.2*n)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*e,.3*n,.1*e,.1*n).close()))})),go.Shape.defineFigureGenerator("Lock",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,.5*n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Line,e,n)),r.add(new go.PathSegment(go.PathSegment.Line,e,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.5*n));var o=new go.PathFigure(.2*e,.5*n,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Move,.2*e,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,.2*e,.3*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.8*e,.3*n,.25*e,0,.75*e,0)),o.add(new go.PathSegment(go.PathSegment.Line,.8*e,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*e,.3*n)),i})),go.Shape.defineFigureGenerator("Unlocked",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,.5*n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Line,e,n)),r.add(new go.PathSegment(go.PathSegment.Line,e,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.5*n));var o=new go.PathFigure(.2*e,.5*n,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Move,.2*e,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,.2*e,.3*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.8*e,.3*n,.25*e,0,.75*e,0)),o.add(new go.PathSegment(go.PathSegment.Line,.8*e,.35*n)),i})),go.Shape.defineFigureGenerator("Gear",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(.9375*e,.56246875*n,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*e,.4375*n)).add(new go.PathSegment(go.PathSegment.Line,.80621875*e,.4375*n)).add(new go.PathSegment(go.PathSegment.Bezier,.763*e,.3316875*n,.79840625*e,.39915625*n,.7834375*e,.3635*n)).add(new go.PathSegment(go.PathSegment.Line,.8566875*e,.23796875*n)).add(new go.PathSegment(go.PathSegment.Line,.76825*e,.14959375*n)).add(new go.PathSegment(go.PathSegment.Line,.67596875*e,.24184375*n)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*e,.19378125*n,.64228125*e,.2188125*n,.603875*e,.2021875*n)).add(new go.PathSegment(go.PathSegment.Line,.5625*e,.0625*n)).add(new go.PathSegment(go.PathSegment.Line,.4375*e,.0625*n)).add(new go.PathSegment(go.PathSegment.Line,.4375*e,.19378125*n)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*e,.239375*n,.39759375*e,.20190625*n,.36053125*e,.2176875*n)).add(new go.PathSegment(go.PathSegment.Line,.2379375*e,.14959375*n)).add(new go.PathSegment(go.PathSegment.Line,.14953125*e,.2379375*n)).add(new go.PathSegment(go.PathSegment.Line,.23934375*e,.3278125*n)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*e,.4375*n,.21765625*e,.36059375*n,.201875*e,.397625*n)).add(new go.PathSegment(go.PathSegment.Line,.0625*e,.4375*n)).add(new go.PathSegment(go.PathSegment.Line,.0625*e,.5625*n)).add(new go.PathSegment(go.PathSegment.Line,.1938125*e,.5625*n)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*e,.67596875*n,.20221875*e,.603875*n,.21884375*e,.64228125*n)).add(new go.PathSegment(go.PathSegment.Line,.1495625*e,.76825*n)).add(new go.PathSegment(go.PathSegment.Line,.238*e,.8566875*n)).add(new go.PathSegment(go.PathSegment.Line,.3316875*e,.76296875*n)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*e,.80621875*n,.36353125*e,.78340625*n,.3991875*e,.79840625*n)).add(new go.PathSegment(go.PathSegment.Line,.43753125*e,.9375*n)).add(new go.PathSegment(go.PathSegment.Line,.5625*e,.9375*n)).add(new go.PathSegment(go.PathSegment.Line,.5625*e,.80621875*n)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*e,.760625*n,.602375*e,.79809375*n,.63946875*e,.78234375*n)).add(new go.PathSegment(go.PathSegment.Line,.76828125*e,.8566875*n)).add(new go.PathSegment(go.PathSegment.Line,.85671875*e,.76825*n)).add(new go.PathSegment(go.PathSegment.Line,.76065625*e,.67221875*n)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*e,.56246875*n,.78234375*e,.63940625*n,.798125*e,.602375*n)).add(new go.PathSegment(go.PathSegment.Line,.9375*e,.56246875*n).close()).add(new go.PathSegment(go.PathSegment.Move,.5*e,.6*n)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*e,.5*n,.1*e,.1*n).close()))})),go.Shape.defineFigureGenerator("Hand",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,.5*n,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Bezier,.1*e,.3*n,0,.375*n,.05*e,.325*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.45*e,.075*n,.3*e,.225*n,.4*e,.175*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.525*e,.075*n,.46*e,.05*n,.525*e,.05*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.3*e,.4*n,.525*e,.275*n,.475*e,.325*n)),r.add(new go.PathSegment(go.PathSegment.Line,.9*e,.4*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.9*e,.55*n,e,.4*n,e,.55*n)),r.add(new go.PathSegment(go.PathSegment.Line,.425*e,.55*n)),r.add(new go.PathSegment(go.PathSegment.Line,.6*e,.55*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.6*e,.7*n,.675*e,.55*n,.675*e,.7*n)),r.add(new go.PathSegment(go.PathSegment.Line,.4*e,.7*n)),r.add(new go.PathSegment(go.PathSegment.Line,.575*e,.7*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.575*e,.85*n,.65*e,.7*n,.65*e,.85*n)),r.add(new go.PathSegment(go.PathSegment.Line,.4*e,.85*n)),r.add(new go.PathSegment(go.PathSegment.Line,.525*e,.85*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.535*e,n,.61*e,.85*n,.61*e,n)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*n,.435*e,n,0,n).close()),i})),go.Shape.defineFigureGenerator("Map",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,.2*n,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.25*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,.2*n)),r.add(new go.PathSegment(go.PathSegment.Line,.75*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,e,.2*n)),r.add(new go.PathSegment(go.PathSegment.Line,e,n)),r.add(new go.PathSegment(go.PathSegment.Line,.75*e,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,n)),r.add(new go.PathSegment(go.PathSegment.Line,.25*e,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),r.add(new go.PathSegment(go.PathSegment.Move,.25*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,.25*e,.8*n)),r.add(new go.PathSegment(go.PathSegment.Move,.5*e,.2*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,n)),r.add(new go.PathSegment(go.PathSegment.Move,.75*e,0)),r.add(new go.PathSegment(go.PathSegment.Line,.75*e,.8*n)),i})),go.Shape.defineFigureGenerator("Eject",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,e,n)),r.add(new go.PathSegment(go.PathSegment.Line,e,.7*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.7*n).close());var o=new go.PathFigure(0,.6*n,!0);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,e,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*e,0).close()),i})),go.Shape.defineFigureGenerator("Pencil",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*e,.1*n)).add(new go.PathSegment(go.PathSegment.Line,e,.9*n)).add(new go.PathSegment(go.PathSegment.Line,.9*e,n)).add(new go.PathSegment(go.PathSegment.Line,.1*e,.2*n).close()))})),go.Shape.defineFigureGenerator("Building",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(1*e,1*n,!1);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.85*n)),r.add(new go.PathSegment(go.PathSegment.Line,.046*e,.85*n)),r.add(new go.PathSegment(go.PathSegment.Line,.046*e,.45*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.45*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.3*n)),r.add(new go.PathSegment(go.PathSegment.Line,.046*e,.3*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,0*n)),r.add(new go.PathSegment(go.PathSegment.Line,.954*e,.3*n)),r.add(new go.PathSegment(go.PathSegment.Line,e,.3*n)),r.add(new go.PathSegment(go.PathSegment.Line,e,.45*n)),r.add(new go.PathSegment(go.PathSegment.Line,.954*e,.45*n)),r.add(new go.PathSegment(go.PathSegment.Line,.954*e,.85*n)),r.add(new go.PathSegment(go.PathSegment.Line,e,.85*n).close());var o=new go.PathFigure(.126*e,.85*n,!1);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.126*e,.45*n)),o.add(new go.PathSegment(go.PathSegment.Line,.322*e,.45*n)),o.add(new go.PathSegment(go.PathSegment.Line,.322*e,.85*n).close());var a=new go.PathFigure(.402*e,.85*n,!1);i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,.402*e,.45*n)),a.add(new go.PathSegment(go.PathSegment.Line,.598*e,.45*n)),a.add(new go.PathSegment(go.PathSegment.Line,.598*e,.85*n).close());var s=new go.PathFigure(.678*e,.85*n,!1);i.add(s),s.add(new go.PathSegment(go.PathSegment.Line,.678*e,.45*n)),s.add(new go.PathSegment(go.PathSegment.Line,.874*e,.45*n)),s.add(new go.PathSegment(go.PathSegment.Line,.874*e,.85*n).close());var l=new go.PathFigure(.5*e,.1*n,!1);return i.add(l),l.add(new go.PathSegment(go.PathSegment.Line,.196*e,.3*n)),l.add(new go.PathSegment(go.PathSegment.Line,.804*e,.3*n).close()),i})),go.Shape.defineFigureGenerator("Staircase",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,1*n,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.2*e,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.2*e,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,.4*e,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,.4*e,.6*n)),r.add(new go.PathSegment(go.PathSegment.Line,.6*e,.6*n)),r.add(new go.PathSegment(go.PathSegment.Line,.6*e,.4*n)),r.add(new go.PathSegment(go.PathSegment.Line,.8*e,.4*n)),r.add(new go.PathSegment(go.PathSegment.Line,.8*e,.2*n)),r.add(new go.PathSegment(go.PathSegment.Line,1*e,.2*n)),r.add(new go.PathSegment(go.PathSegment.Line,1*e,.15*n)),r.add(new go.PathSegment(go.PathSegment.Line,.75*e,.15*n)),r.add(new go.PathSegment(go.PathSegment.Line,.75*e,.35*n)),r.add(new go.PathSegment(go.PathSegment.Line,.55*e,.35*n)),r.add(new go.PathSegment(go.PathSegment.Line,.55*e,.55*n)),r.add(new go.PathSegment(go.PathSegment.Line,.35*e,.55*n)),r.add(new go.PathSegment(go.PathSegment.Line,.35*e,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,.15*e,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,.15*e,.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.95*n).close()),i})),go.Shape.defineFigureGenerator("5Bars",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,1*n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.184*e,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.184*e,n*(1-.184)).close());var o=new go.PathFigure(.204*e,n,!0);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.204*e,n*(1-.184))),o.add(new go.PathSegment(go.PathSegment.Line,.388*e,.632*n)),o.add(new go.PathSegment(go.PathSegment.Line,.388*e,1*n).close());var a=new go.PathFigure(.408*e,n,!0);i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,.408*e,.632*n)),a.add(new go.PathSegment(go.PathSegment.Line,.592*e,n*(1-.552))),a.add(new go.PathSegment(go.PathSegment.Line,.592*e,1*n).close());var s=new go.PathFigure(.612*e,n,!0);i.add(s),s.add(new go.PathSegment(go.PathSegment.Line,.612*e,n*(1-.552))),s.add(new go.PathSegment(go.PathSegment.Line,.796*e,.264*n)),s.add(new go.PathSegment(go.PathSegment.Line,.796*e,1*n).close());var l=new go.PathFigure(.816*e,n,!0);return i.add(l),l.add(new go.PathSegment(go.PathSegment.Line,.816*e,.264*n)),l.add(new go.PathSegment(go.PathSegment.Line,1*e,n*(1-.184*5))),l.add(new go.PathSegment(go.PathSegment.Line,1*e,1*n).close()),i})),go.Shape.defineFigureGenerator("PC",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.3*e,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.3*e,0).close());var o=new go.PathFigure(.055*e,.07*n,!0);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.245*e,.07*n)),o.add(new go.PathSegment(go.PathSegment.Line,.245*e,.1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.055*e,.1*n).close());var a=new go.PathFigure(.055*e,.13*n,!0);i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,.245*e,.13*n)),a.add(new go.PathSegment(go.PathSegment.Line,.245*e,.16*n)),a.add(new go.PathSegment(go.PathSegment.Line,.055*e,.16*n).close());var s=new go.PathFigure(.055*e,.18*n,!0);i.add(s),s.add(new go.PathSegment(go.PathSegment.Line,.245*e,.18*n)),s.add(new go.PathSegment(go.PathSegment.Line,.245*e,.21*n)),s.add(new go.PathSegment(go.PathSegment.Line,.055*e,.21*n).close());var l=new go.PathFigure(1*e,0,!0);return i.add(l),l.add(new go.PathSegment(go.PathSegment.Line,.4*e,0)),l.add(new go.PathSegment(go.PathSegment.Line,.4*e,.65*n)),l.add(new go.PathSegment(go.PathSegment.Line,1*e,.65*n).close()),i})),go.Shape.defineFigureGenerator("Plane",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(.55*e,n,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,.6*n)),r.add(new go.PathSegment(go.PathSegment.Line,.4*e,.7*n)),r.add(new go.PathSegment(go.PathSegment.Line,.1*e,.475*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.35*e,.525*n,0,.4*n,.225*e,.45*n)),r.add(new go.PathSegment(go.PathSegment.Line,.4*e,.475*n)),r.add(new go.PathSegment(go.PathSegment.Line,.15*e,.35*n)),r.add(new go.PathSegment(go.PathSegment.Line,.2*e,.325*n)),r.add(new go.PathSegment(go.PathSegment.Line,.6*e,.325*n)),r.add(new go.PathSegment(go.PathSegment.Line,.85*e,.1*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.9*e,.2*n,.975*e,0,e,.08*n)),r.add(new go.PathSegment(go.PathSegment.Line,.7*e,.45*n)),r.add(new go.PathSegment(go.PathSegment.Line,.6*e,.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,.55*e,n).close()),i})),go.Shape.defineFigureGenerator("Key",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(1*e,.5*n,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.9*e,.4*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,.4*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,.35*n)),r.add(new go.PathSegment(go.PathSegment.Line,.45*e,.35*n)),r.add(new go.PathSegment(go.PathSegment.Line,.3*e,.2*n)),r.add(new go.PathSegment(go.PathSegment.Line,.15*e,.2*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.35*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.65*n)),r.add(new go.PathSegment(go.PathSegment.Line,.15*e,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,.3*e,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,.45*e,.65*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,.65*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,.6*n)),r.add(new go.PathSegment(go.PathSegment.Line,.6*e,.6*n)),r.add(new go.PathSegment(go.PathSegment.Line,.65*e,.55*n)),r.add(new go.PathSegment(go.PathSegment.Line,.7*e,.6*n)),r.add(new go.PathSegment(go.PathSegment.Line,.75*e,.55*n)),r.add(new go.PathSegment(go.PathSegment.Line,.8*e,.6*n)),r.add(new go.PathSegment(go.PathSegment.Line,.85*e,.575*n)),r.add(new go.PathSegment(go.PathSegment.Line,.9*e,.6*n).close()),r.add(new go.PathSegment(go.PathSegment.Move,.17*e,.425*n)),r.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*e,.5*n,.075*e,.075*n).close()),i})),go.Shape.defineFigureGenerator("FilmTape",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!1);i.add(r),r.add(new go.PathSegment(go.PathSegment.Arc,270,180,0*e,.3*e,.055*e)),r.add(new go.PathSegment(go.PathSegment.Line,0,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.08*e,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.08*e,.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,.136*e,.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,.136*e,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.192*e,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.192*e,.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,.248*e,.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,.248*e,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.304*e,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.304*e,.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,e*(.08+.28),.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,e*(.08+.28),1*n)),r.add(new go.PathSegment(go.PathSegment.Line,e*(.08+.336),1*n)),r.add(new go.PathSegment(go.PathSegment.Line,e*(.08+.336),.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,e*(.08+.392),.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,e*(.08+.392),1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.528*e,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.528*e,.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,.584*e,.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,.584*e,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.64*e,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.64*e,.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,.696*e,.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,.696*e,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.752*e,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.752*e,.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,e*(.08+.728),.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,e*(.08+.728),1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.864*e,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.864*e,.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,e*(.08+.84),.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,e*(.08+.84),1*n)),r.add(new go.PathSegment(go.PathSegment.Line,1*e,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,1*e,1*n));var o=new go.PathFigure(0,0,!1);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,1*e,0*n)),o.add(new go.PathSegment(go.PathSegment.Arc,270,-180,1*e,.3*e,.055*e)),o.add(new go.PathSegment(go.PathSegment.Line,1*e,1*n));var a=new go.PathFigure(.11*e,.1*n,!1);i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,.35133333*e,.1*n)),a.add(new go.PathSegment(go.PathSegment.Line,.35133333*e,.8*n)),a.add(new go.PathSegment(go.PathSegment.Line,.11*e,.8*n).close());var s=new go.PathFigure(.37933333*e,.1*n,!1);i.add(s),s.add(new go.PathSegment(go.PathSegment.Line,.62066666*e,.1*n)),s.add(new go.PathSegment(go.PathSegment.Line,.62066666*e,.8*n)),s.add(new go.PathSegment(go.PathSegment.Line,.37933333*e,.8*n).close());var l=new go.PathFigure(e*(.59266666+.056),.1*n,!1);return i.add(l),l.add(new go.PathSegment(go.PathSegment.Line,e*(.83399999+.056),.1*n)),l.add(new go.PathSegment(go.PathSegment.Line,e*(.83399999+.056),.8*n)),l.add(new go.PathSegment(go.PathSegment.Line,e*(.59266666+.056),.8*n).close()),i})),go.Shape.defineFigureGenerator("FloppyDisk",(function(t,e,n){var i=new go.Geometry,r=8*u,o=new go.PathFigure(8,0,!1);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.86*e,0)),o.add(new go.PathSegment(go.PathSegment.Line,1*e,.14*n)),o.add(new go.PathSegment(go.PathSegment.Line,e,n-8)),o.add(new go.PathSegment(go.PathSegment.Bezier,e-8,n,e,n-r,e-r,n)),o.add(new go.PathSegment(go.PathSegment.Line,8,n)),o.add(new go.PathSegment(go.PathSegment.Bezier,0,n-8,r,n,0,n-r)),o.add(new go.PathSegment(go.PathSegment.Line,0,8)),o.add(new go.PathSegment(go.PathSegment.Bezier,8,0,0,r,r,0).close());var a=new go.PathFigure(.83*e,0,!1);i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,.83*e,.3*n)),a.add(new go.PathSegment(go.PathSegment.Line,.17*e,.3*n)),a.add(new go.PathSegment(go.PathSegment.Line,.17*e,0*n).close());var s=new go.PathFigure(.83*e,1*n,!1);i.add(s),s.add(new go.PathSegment(go.PathSegment.Line,.83*e,.5*n)),s.add(new go.PathSegment(go.PathSegment.Line,.17*e,.5*n)),s.add(new go.PathSegment(go.PathSegment.Line,.17*e,1*n).close());var l=new go.PathFigure(.78*e,.05*n,!1);return i.add(l),l.add(new go.PathSegment(go.PathSegment.Line,.66*e,.05*n)),l.add(new go.PathSegment(go.PathSegment.Line,.66*e,.25*n)),l.add(new go.PathSegment(go.PathSegment.Line,.78*e,.25*n).close()),i})),go.Shape.defineFigureGenerator("SpeechBubble",(function(t,e,n){var i=t?t.parameter1:NaN;(isNaN(i)||i<0)&&(i=15),i=Math.min(i,e/3);var r=(i=Math.min(i,n/3))*u,o=.8*n,a=new go.Geometry,s=new go.PathFigure(i,0,!0);return a.add(s),s.add(new go.PathSegment(go.PathSegment.Line,e-i,0)),s.add(new go.PathSegment(go.PathSegment.Bezier,e,i,e-r,0,e,r)),s.add(new go.PathSegment(go.PathSegment.Line,e,o-i)),s.add(new go.PathSegment(go.PathSegment.Bezier,e-i,o,e,o-r,e-r,o)),s.add(new go.PathSegment(go.PathSegment.Line,.7*e,o)),s.add(new go.PathSegment(go.PathSegment.Line,.7*e,n)),s.add(new go.PathSegment(go.PathSegment.Line,.55*e,o)),s.add(new go.PathSegment(go.PathSegment.Line,i,o)),s.add(new go.PathSegment(go.PathSegment.Bezier,0,o-i,r,o,0,o-r)),s.add(new go.PathSegment(go.PathSegment.Line,0,i)),s.add(new go.PathSegment(go.PathSegment.Bezier,i,0,0,r,r,0).close()),r>1?(a.spot1=new go.Spot(0,0,r,r),a.spot2=new go.Spot(1,.8,-r,-r)):(a.spot1=go.Spot.TopLeft,a.spot2=new go.Spot(1,.8)),a})),go.Shape.defineFigureGenerator("Repeat",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0*e,.45*n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.25*e,0*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,.45*n)),r.add(new go.PathSegment(go.PathSegment.Line,.3*e,.45*n)),r.add(new go.PathSegment(go.PathSegment.Line,.3*e,.9*n)),r.add(new go.PathSegment(go.PathSegment.Line,.6*e,.9*n)),r.add(new go.PathSegment(go.PathSegment.Line,.65*e,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.2*e,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.2*e,.45*n).close());var o=new go.PathFigure(1*e,.55*n,!0);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.75*e,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*e,.55*n)),o.add(new go.PathSegment(go.PathSegment.Line,.7*e,.55*n)),o.add(new go.PathSegment(go.PathSegment.Line,.7*e,.1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.4*e,.1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.35*e,0*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*e,0*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*e,.55*n).close()),i})),go.Shape.defineFigureGenerator("Windows",(function(t,e,n){return(new go.Geometry).add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,e,0)).add(new go.PathSegment(go.PathSegment.Line,e,n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close()).add(new go.PathSegment(go.PathSegment.Move,.4*e,.4*n)).add(new go.PathSegment(go.PathSegment.Line,.4*e,.8*n)).add(new go.PathSegment(go.PathSegment.Line,.9*e,.8*n)).add(new go.PathSegment(go.PathSegment.Line,.9*e,.4*n).close()).add(new go.PathSegment(go.PathSegment.Move,.2*e,.1*n)).add(new go.PathSegment(go.PathSegment.Line,.2*e,.6*n)).add(new go.PathSegment(go.PathSegment.Line,.7*e,.6*n)).add(new go.PathSegment(go.PathSegment.Line,.7*e,.1*n).close()).add(new go.PathSegment(go.PathSegment.Move,.1*e,.6*n)).add(new go.PathSegment(go.PathSegment.Line,.1*e,.9*n)).add(new go.PathSegment(go.PathSegment.Line,.5*e,.9*n)).add(new go.PathSegment(go.PathSegment.Line,.5*e,.6*n).close()))})),go.Shape.defineFigureGenerator("Terminal",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0*e,.1*n,!1);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,1*e,.1*n)),r.add(new go.PathSegment(go.PathSegment.Line,1*e,.9*n)),r.add(new go.PathSegment(go.PathSegment.Line,0*e,.9*n).close());var o=new go.PathFigure(.1*e,.2*n,!0);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.1*e,.25*n)),o.add(new go.PathSegment(go.PathSegment.Line,.22*e,.285*n)),o.add(new go.PathSegment(go.PathSegment.Line,.1*e,.32*n)),o.add(new go.PathSegment(go.PathSegment.Line,.1*e,.37*n)),o.add(new go.PathSegment(go.PathSegment.Line,.275*e,.32*n)),o.add(new go.PathSegment(go.PathSegment.Line,.275*e,.25*n).close());var a=new go.PathFigure(.28*e,.37*n,!0);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,.45*e,.37*n)),a.add(new go.PathSegment(go.PathSegment.Line,.45*e,.41*n)),a.add(new go.PathSegment(go.PathSegment.Line,.28*e,.41*n).close()),i})),go.Shape.defineFigureGenerator("Beaker",(function(t,e,n){var i=new go.Geometry,r=15*u,o=new go.PathFigure(.62*e,.475*n,!0);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,e,n-15)),o.add(new go.PathSegment(go.PathSegment.Bezier,e-15,n,e,n-r,e-r,n)),o.add(new go.PathSegment(go.PathSegment.Line,15,n)),o.add(new go.PathSegment(go.PathSegment.Bezier,0,n-15,r,n,0,n-r)),o.add(new go.PathSegment(go.PathSegment.Line,.38*e,.475*n)),o.add(new go.PathSegment(go.PathSegment.Line,.38*e,.03*n)),o.add(new go.PathSegment(go.PathSegment.Line,.36*e,0*n)),o.add(new go.PathSegment(go.PathSegment.Line,.64*e,0*n)),o.add(new go.PathSegment(go.PathSegment.Line,.62*e,.03*n).close()),r>1?(i.spot1=new go.Spot(0,0,r,r),i.spot2=new go.Spot(1,1,-r,-r)):(i.spot1=go.Spot.TopLeft,i.spot2=go.Spot.BottomRight),i})),go.Shape.defineFigureGenerator("Download",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0*e,1*n,!0);i.add(r);var o=.1/.3;r.add(new go.PathSegment(go.PathSegment.Line,1*e,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,1*e,n*(1-o))),r.add(new go.PathSegment(go.PathSegment.Line,.8*e,0*n)),r.add(new go.PathSegment(go.PathSegment.Line,.66*e,0*n)),r.add(new go.PathSegment(go.PathSegment.Line,.66*e,.055*n)),r.add(new go.PathSegment(go.PathSegment.Line,.755*e,.055*n)),r.add(new go.PathSegment(go.PathSegment.Line,.93*e,n*(1-o))),r.add(new go.PathSegment(go.PathSegment.Line,.64*e,n*(1-o))),r.add(new go.PathSegment(go.PathSegment.Line,.61*e,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,.39*e,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,.36*e,n*(1-o))),r.add(new go.PathSegment(go.PathSegment.Line,.07*e,n*(1-o))),r.add(new go.PathSegment(go.PathSegment.Line,.245*e,.055*n)),r.add(new go.PathSegment(go.PathSegment.Line,e*(1-.66),.055*n)),r.add(new go.PathSegment(go.PathSegment.Line,e*(1-.66),0*n)),r.add(new go.PathSegment(go.PathSegment.Line,e*(1-.8),0*n)),r.add(new go.PathSegment(go.PathSegment.Line,0*e,n*(1-o)).close());var a=new go.PathFigure(.4*e,0*n,!0);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,.4*e,.44*n)),a.add(new go.PathSegment(go.PathSegment.Line,.26*e,.44*n)),a.add(new go.PathSegment(go.PathSegment.Line,.5*e,.66*n)),a.add(new go.PathSegment(go.PathSegment.Line,.74*e,.44*n)),a.add(new go.PathSegment(go.PathSegment.Line,.6*e,.44*n)),a.add(new go.PathSegment(go.PathSegment.Line,.6*e,0*n).close()),i})),go.Shape.defineFigureGenerator("Bin",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0*e,1*n,!0);i.add(r);var o=.1/.3;return r.add(new go.PathSegment(go.PathSegment.Line,1*e,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,1*e,n*(1-o))),r.add(new go.PathSegment(go.PathSegment.Line,.8*e,0*n)),r.add(new go.PathSegment(go.PathSegment.Line,.66*e,0*n)),r.add(new go.PathSegment(go.PathSegment.Line,.66*e,.055*n)),r.add(new go.PathSegment(go.PathSegment.Line,.755*e,.055*n)),r.add(new go.PathSegment(go.PathSegment.Line,.93*e,n*(1-o))),r.add(new go.PathSegment(go.PathSegment.Line,.64*e,n*(1-o))),r.add(new go.PathSegment(go.PathSegment.Line,.61*e,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,.39*e,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,.36*e,n*(1-o))),r.add(new go.PathSegment(go.PathSegment.Line,.07*e,n*(1-o))),r.add(new go.PathSegment(go.PathSegment.Line,.245*e,.055*n)),r.add(new go.PathSegment(go.PathSegment.Line,e*(1-.66),.055*n)),r.add(new go.PathSegment(go.PathSegment.Line,e*(1-.66),0*n)),r.add(new go.PathSegment(go.PathSegment.Line,e*(1-.8),0*n)),r.add(new go.PathSegment(go.PathSegment.Line,0*e,n*(1-o)).close()),i})),go.Shape.defineFigureGenerator("Upload",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(0*e,1*n,!0);i.add(r);var o=.1/.3;r.add(new go.PathSegment(go.PathSegment.Line,1*e,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,1*e,n*(1-o))),r.add(new go.PathSegment(go.PathSegment.Line,.8*e,0*n)),r.add(new go.PathSegment(go.PathSegment.Line,.66*e,0*n)),r.add(new go.PathSegment(go.PathSegment.Line,.66*e,.055*n)),r.add(new go.PathSegment(go.PathSegment.Line,.755*e,.055*n)),r.add(new go.PathSegment(go.PathSegment.Line,.93*e,n*(1-o))),r.add(new go.PathSegment(go.PathSegment.Line,.64*e,n*(1-o))),r.add(new go.PathSegment(go.PathSegment.Line,.61*e,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,.39*e,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,.36*e,n*(1-o))),r.add(new go.PathSegment(go.PathSegment.Line,.07*e,n*(1-o))),r.add(new go.PathSegment(go.PathSegment.Line,.245*e,.055*n)),r.add(new go.PathSegment(go.PathSegment.Line,e*(1-.66),.055*n)),r.add(new go.PathSegment(go.PathSegment.Line,e*(1-.66),0*n)),r.add(new go.PathSegment(go.PathSegment.Line,e*(1-.8),0*n)),r.add(new go.PathSegment(go.PathSegment.Line,0*e,n*(1-o)).close());var a=new go.PathFigure(.5*e,0*n,!0);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,.26*e,.25*n)),a.add(new go.PathSegment(go.PathSegment.Line,.4*e,.25*n)),a.add(new go.PathSegment(go.PathSegment.Line,.4*e,.63*n)),a.add(new go.PathSegment(go.PathSegment.Line,.6*e,.63*n)),a.add(new go.PathSegment(go.PathSegment.Line,.6*e,.25*n)),a.add(new go.PathSegment(go.PathSegment.Line,.74*e,.25*n).close()),i})),go.Shape.defineFigureGenerator("EmptyDrink",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(.15*e,0*n,!1);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.85*e,0*n)),r.add(new go.PathSegment(go.PathSegment.Line,.7*e,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.3*e,1*n).close()),i})),go.Shape.defineFigureGenerator("Drink",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(.15*e,0*n,!1);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.85*e,0*n)),r.add(new go.PathSegment(go.PathSegment.Line,.7*e,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.3*e,1*n).close());var o=new go.PathFigure(.235*e,.28*n,!0);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.765*e,.28*n)),o.add(new go.PathSegment(go.PathSegment.Line,.655*e,.97*n)),o.add(new go.PathSegment(go.PathSegment.Line,.345*e,.97*n).close()),i})),go.Shape.defineFigureGenerator("4Arrows",(function(t,e,n){var i=new go.Geometry,r=new go.PathFigure(.5*e,0*n,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.65*e,.25*n)),r.add(new go.PathSegment(go.PathSegment.Line,.55*e,.25*n)),r.add(new go.PathSegment(go.PathSegment.Line,.55*e,.45*n)),r.add(new go.PathSegment(go.PathSegment.Line,.75*e,.45*n)),r.add(new go.PathSegment(go.PathSegment.Line,.75*e,.35*n)),r.add(new go.PathSegment(go.PathSegment.Line,1*e,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.75*e,.65*n)),r.add(new go.PathSegment(go.PathSegment.Line,.75*e,.55*n)),r.add(new go.PathSegment(go.PathSegment.Line,.55*e,.55*n)),r.add(new go.PathSegment(go.PathSegment.Line,.55*e,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,.65*e,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*e,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.35*e,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,.45*e,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,.45*e,.55*n)),r.add(new go.PathSegment(go.PathSegment.Line,.25*e,.55*n)),r.add(new go.PathSegment(go.PathSegment.Line,.25*e,.65*n)),r.add(new go.PathSegment(go.PathSegment.Line,0*e,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.25*e,.35*n)),r.add(new go.PathSegment(go.PathSegment.Line,.25*e,.45*n)),r.add(new go.PathSegment(go.PathSegment.Line,.45*e,.45*n)),r.add(new go.PathSegment(go.PathSegment.Line,.45*e,.25*n)),r.add(new go.PathSegment(go.PathSegment.Line,.35*e,.25*n).close()),i})),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},35702:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,_typeof=__webpack_require__(31468).default;(function(){if("function"!=typeof window.GGBApplet){var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var t={},e="5.0",n={},i=null,r=!1,o=!1,a=null,s=!1,l=null,u=null,c=0;c<arguments.length;c++){var h=arguments[c];if(null!==h)switch(_typeof(h)){case"number":e=h.toFixed(1);break;case"string":h.match(new RegExp("^[0-9]\\.[0-9]+$"))?e=h:a=h;break;case"object":void 0!==h.is3D?i=h:n=h;break;case"boolean":r=h,o=!0}}null===i&&(i={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},void 0===n.material_id||o||(r=!0)),null!==a&&void 0===n.id&&(n.id=a);var d="",f=!1,p=null,g=null,m=null,v=!1,y=null,w=null,b=null;void 0!==n.height&&(n.height=Math.round(n.height)),void 0!==n.width&&(n.width=Math.round(n.width));var x=function(t){return parseFloat(t)>4?parseFloat(t):5};function S(){try{return window.self!==window.top}catch(t){return!0}}function P(){return(!n.hasOwnProperty("screenshotGenerator")||!n.screenshotGenerator)&&Math.max(screen.width,screen.height)<800}t.setHTML5Codebase=function(t,e){u=t,R(t,e)},t.setJavaCodebase=t.setJavaCodebaseVersion=t.isCompiledInstalled=t.setPreCompiledScriptPath=t.setPreCompiledResourcePath=function(){},t.setHTML5CodebaseVersion=function(t,e){var n=parseFloat(t);NaN!==n&&n<5?console.log("The GeoGebra HTML5 codebase version "+n+" is deprecated. Using version latest instead."):(l=t,D(t,e))},t.getHTML5CodebaseVersion=function(){return g},t.getParameters=function(){return n},t.setFontsCSSURL=function(t){b=t},t.setGiacJSURL=function(t){},t.setJNLPFile=function(t){t},t.setJNLPBaseDir=function(t){},t.inject=function(){function e(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var i,r="auto",o=n.id,a=!1,l=0;l<arguments.length;l++){var u=arguments[l];"string"==typeof u?(u=u.toLowerCase()).match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?r=u:o=arguments[l]:"boolean"==typeof u?a=u:u instanceof HTMLElement&&(i=u)}function c(){if(s){r=B(r);var l=i||document.getElementById(o);if(l)if(t.removeExistingApplet(l,!1),void 0===n.width&&l.clientWidth&&(n.width=l.clientWidth),void 0===n.height&&l.clientHeight&&(n.height=l.clientHeight),n.width&&n.height||"html5"!==r||(delete n.width,delete n.height),p=r,"screenshot"===r)L(l,n);else{var u=!1;n.hasOwnProperty("playButton")&&n.playButton||n.hasOwnProperty("clickToLoad")&&n.clickToLoad?u=!0:n.hasOwnProperty("playButtonAutoDecide")&&n.playButtonAutoDecide&&(u=(!S()||e())&&P()),u?(p="screenshot",N(l,n,a,r)):E(l,n,a)}else console.log("possibly bug on ajax loading? ")}else setTimeout(c,200)}c()},t.getViews=function(){return i},t.isJavaInstalled=function(){return!1};var k=function(e){var r=function(){n.onError&&n.onError(),F("Error: Fetching material (id "+n.material_id+") failed.",n)},o=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",a="/materials/"+n.material_id+"?scope=basic";A("https://"+o+"/api/proxy.php?path="+encodeURIComponent(a),(function(o){var a=JSON.parse(o),s=a.elements?a.elements.filter((function(t){return"G"==t.type||"E"==t.type}))[0]:a;if(s&&s.url){n.fileName=s.url,C(s.settings||{}),i.is3D=!0;var l="https://www.geogebra.org/images/";t.setPreviewImage(y||s.previewUrl,l+"GeoGebra_loading.png",l+"applet_play.png"),e()}else r()}),r)};function C(t){["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach((function(e){t[e]=!!t[e]})),["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"].forEach((function(e){void 0===n[e]&&void 0!==t[e]&&(n[e]=t[e])})),void 0===n.showToolBarHelp&&(n.showToolBarHelp=n.showToolBar)}function A(t,e,n){var i=new XMLHttpRequest;i.open("GET",t),i.onload=function(){e(i.responseText)},i.onerror=n,i.send()}t.isHTML5Installed=function(){return!0},t.getLoadedAppletType=function(){return p},t.setPreviewImage=function(t,e,n){y=t,w=e,n},t.removeExistingApplet=function(t,e){var i;"string"==typeof t&&(t=document.getElementById(t)),p=null;var r=null;for(i=0;i<t.childNodes.length;i++){var o=t.childNodes[i],a=o.className;"applet_screenshot"===a?e?(o.style.display="block",p="screenshot"):o.style.display="none":"applet_scaler prerender"!==a&&(t.removeChild(o),r=a&&-1!=a.indexOf("appletParameters")?o.id:null,i--)}var s=void 0!==n.id?n.id:r,l=window[s];l&&"function"==typeof l.getBase64&&(l.remove(),window[s]=null)},t.refreshHitPoints=function(){if(x(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var e=t.getAppletObject();return!(!e||"function"!=typeof e.recalculateEnvironments)&&(e.recalculateEnvironments(),!0)},t.startAnimation=function(){var e=t.getAppletObject();return!(!e||"function"!=typeof e.startAnimation)&&(e.startAnimation(),!0)},t.stopAnimation=function(){var e=t.getAppletObject();return!(!e||"function"!=typeof e.stopAnimation)&&(e.stopAnimation(),!0)},t.getAppletObject=function(){var t=void 0!==n.id?n.id:"ggbApplet";return window[t]},t.resize=function(){};var M=function(t){return t&&"false"!==t},E=function(e,n,i){x(g)<=4.2&&(i=!0);var r=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==g||ggbHTML5LoadedCodebaseIsWebSimple&&!v)&&(r=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var o=document.createElement("div");o.classList.add("appletParameters","notranslate");var a=n.width,s=n.height;if(n.disableAutoScale=void 0===n.disableAutoScale?GGBAppletUtils.isFlexibleWorksheetEditor():n.disableAutoScale,void 0!==n.width)if(x(g)<=4.4)M(n.showToolBar)&&(n.height-=7),M(n.showAlgebraInput)&&(n.height-=37),n.width<605&&M(n.showToolBar)&&(n.width=605,a=605);else{var c=100;(M(n.showToolBar)||M(n.showMenuBar))&&(n.hasOwnProperty("customToolBar")&&(n.customToolbar=n.customToolBar),c=M(n.showMenuBar)?245:155),a<c&&(n.width=c,a=c)}for(var h in o.style.border="none",o.style.display="inline-block",n)n.hasOwnProperty(h)&&"appletOnLoad"!==h&&o.setAttribute("data-param-"+h,n[h]);b&&o.setAttribute("data-param-fontscssurl",b),t.resize=function(){GGBAppletUtils.responsiveResize(e,n)},window.addEventListener("resize",(function(e){t.resize()}));var f="function"==typeof n.appletOnLoad?n.appletOnLoad:function(){};if(i||void 0===n.width){var p=document.createElement("div");p.className="applet_scaler",p.style.position="relative",p.style.display="block",p.appendChild(o),e.appendChild(p),n.appletOnLoad=function(e){t.resize(),f(e)}}else{n.hasOwnProperty("showSplash")||o.setAttribute("data-param-showSplash","false");var y=e.querySelector(".applet_scaler.prerender"),w=null!==y;if(w)S=y.querySelector(".ggb_preview");else{var S=I(a,s,n.borderColor,!1);(y=document.createElement("div")).className="applet_scaler",y.style.position="relative",y.style.display="block",y.style.width=a+"px",y.style.height=s+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(y,"66%"),x(g)>=5?(n.appletOnLoad=function(t){var n=e.querySelector(".ggb_preview");n&&n.parentNode.removeChild(n),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(y),window.GGBT_wsf_view&&$(window).trigger("resize"),f(t)},w||y.appendChild(S)):o.appendChild(S),y.appendChild(o),w||e.appendChild(y),setTimeout((function(){t.resize()}),1)}function P(t,e){e&&"function"==typeof e.appletOnLoad&&"function"==typeof renderGGBElement?renderGGBElement(t,e.appletOnLoad):renderGGBElement(t),F("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",e)}function k(t,e){"undefined"==typeof renderGGBElement?(null===html5AppletsToProcess&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:t,params:e}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,null!==html5AppletsToProcess&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach((function(t){P(t.article,t.params)})),html5AppletsToProcess=null)},x(g)<5&&(t.className+=" geogebraweb")):P(t,e)}if(r){scriptLoadStarted=!0;for(var C=0;C<o.childNodes.length;C++){"TABLE"===o.childNodes[C].tagName&&(o.removeChild(o.childNodes[C]),C--)}if(null!==ggbHTML5LoadedScript){var A=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');null!=A&&A.parentNode.removeChild(A)}var E=document.createElement("script"),L=function(){k(o,n)};E.src=d+m,ggbHTML5LoadedCodebaseIsWebSimple=v,ggbHTML5LoadedCodebaseVersion=g,ggbHTML5LoadedScript=E.src,F("GeoGebra HTML5 codebase loaded: '"+d+"'.",n),u||l&&"5.0"!=l?d.requirejs?__webpack_require__.e(5760).then(function(){var t=[__webpack_require__(5760)];L.apply(null,t)}.bind(this)).catch(__webpack_require__.oe):(E.onload=L,e.appendChild(E)):(v?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),L())}else k(o,n);n.height=s,n.width=a},L=function(e,n,i){var r=I(n.width,n.height,n.borderColor,i),o=document.createElement("div");o.style.position="relative",o.style.display="block",o.style.width=n.width+"px",o.style.height=n.height+"px",o.className="applet_screenshot applet_scaler"+(i?" applet_screenshot_play":""),o.appendChild(r);var a=GGBAppletUtils.getScale(n,e,i);i?(e.appendChild(j()),window.GGBT_wsf_view||(e.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(o,"66%"),e.appendChild(o),1===a||isNaN(a)||(GGBAppletUtils.scaleElement(o,a),o.style.width=n.width+"px",o.style.height=n.height+"px",o.parentNode.style.width=n.width*a+"px",o.parentNode.style.height=n.height*a+"px"),t.resize=function(){T(e,r,o,i)},window.addEventListener("resize",(function(e){t.resize()})),t.resize()};function T(t,e,i,r){if(t.contains(e)){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if("fullscreencontent"!==t.id)return;window.GGBT_wsf_view.setCloseBtnPosition(t)}var o=GGBAppletUtils.getScale(n,t,r);null!==i.parentNode&&(isNaN(o)||1===o?(GGBAppletUtils.scaleElement(i,1),i.parentNode.style.width=n.width+"px",i.parentNode.style.height=n.height+"px"):(GGBAppletUtils.scaleElement(i,o),i.parentNode.style.width=n.width*o+"px",i.parentNode.style.height=n.height*o+"px")),"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(t),"object"===_typeof(window.GGBT_ws_header_footer)&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}t.onExitFullscreen=function(t,e){e.appendChild(t)};var N=function(t,e,n,i){L(t,e,!0);for(var r=function(){var n=[];for(a=0;a<t.childNodes.length;a++)n.push(t.childNodes[a]);if(window.GGBT_wsf_view){var r=window.GGBT_wsf_view.renderFullScreen(t,e.id),o=document.getElementById("fullscreencontainer"),s=jQuery(t).find(".fullscreencontent");s.length>0?(r.remove(),s.attr("id","fullscreencontent").show(),jQuery(o).append(s),window.dispatchEvent(new Event("resize"))):E(r,e,!1),window.GGBT_wsf_view.launchFullScreen(o)}else p=i,E(t,e,!1);if(!window.GGBT_wsf_view)for(a=0;a<n.length;a++)t.removeChild(n[a])},o=t.getElementsByClassName("ggb_preview_play"),a=0;a<o.length;a++)o[a].addEventListener("click",r,!1),o[a].addEventListener("ontouchstart",r,!1);"function"==typeof window.ggbAppletPlayerOnload&&window.ggbAppletPlayerOnload(t),P()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},j=function(){var t=document.createElement("div");if(t.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var e='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',n=document.createElement("style");n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e)),document.getElementsByTagName("head")[0].appendChild(n)}return t},I=function(t,e,n,i){var r=document.createElement("div");r.className="ggb_preview",r.style.position="absolute",r.style.zIndex="90",r.style.width=t-2+"px",r.style.height=e-2+"px",r.style.top="0px",r.style.left="0px",r.style.overflow="hidden",r.style.backgroundColor="white";var o="lightgrey";void 0!==n&&(o="none"===n?"transparent":n),r.style.border="1px solid "+o;var a,s,l,u=document.createElement("img");if((u.style.position="relative",u.style.zIndex="1000",u.style.top="-1px",u.style.left="-1px",null!==y&&u.setAttribute("src",y),u.style.opacity=.7,null!==w)&&!i){(a=document.createElement("img")).style.position="absolute",a.style.zIndex="1001",a.style.opacity=1,u.style.opacity=.3,(s=360)>t/4*3&&(s=t/4*3),l=s/5.8,a.setAttribute("src",w),a.setAttribute("width",s),a.setAttribute("height",l);var c=(t-s)/2,h=(e-l)/2;a.style.left=c+"px",a.style.top=h+"px",r.appendChild(a)}return r.appendChild(u),r},B=function(t){return"html5"===(t=t.toLowerCase())||"screenshot"===t?t:"html5"},O=["web","webSimple","web3d","tablet","tablet3d","phone"],D=function(t,e){if(g=t,e)R(g,!0);else{var o,a,s=!r;if(s){var l=x(g);!isNaN(l)&&l<4.4&&(s=!1)}o="http"===window.location.protocol.substr(0,4)?window.location.protocol:"http:";var u=g.indexOf("//");for(var c in a=u>0?g:0===u?o+g:"https://www.geogebra.org/apps/5.2.814.0/",O)if(g.slice(-1*O[c].length)===O[c]||g.slice(-1*(O[c].length+1))===O[c]+"/")return void R(a,!1);GGBAppletUtils.isFlexibleWorksheetEditor()||!s||i.is3D||i.AV||i.SV||i.CV||i.EV2||i.CP||i.PC||i.DA||i.FI||i.PV||M(n.showToolBar)||M(n.showMenuBar)||M(n.showAlgebraInput)||M(n.enableRightClick)||n.appName&&"classic"!=n.appName?a+="web3d/":a+="webSimple/",R(a,!1)}},R=function(t,e){if(t.requirejs)d=t;else{"/"!==t.slice(-1)&&(t+="/"),d=t,null===e&&(e=-1===t.indexOf("http")),f=e,m="web.nocache.js",v=!1;var n=d.split("/");n.length>1&&(e||"webSimple"!==n[n.length-2]?O.indexOf(n[n.length-2])>=0&&(m=n[n.length-2]+".nocache.js"):(m="webSimple.nocache.js",v=!0)),n=t.split("/"),"test"===(g=n[n.length-3]).substr(0,4)?g=g.substr(4,1)+"."+g.substr(5,1):"war"!==g.substr(0,3)&&"beta"!==g.substr(0,4)||(g="5.0");var i=parseFloat(g);NaN!==i&&i<5&&t.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+i+" is deprecated. Using version latest instead."),D("5.0",e))}},F=function(t,e){window.console&&window.console.log&&(!e||void 0===e.showLogging||e.showLogging&&"false"!==e.showLogging)&&console.log(t)};function z(){var t=e;null!==l?t=l:parseFloat(t)<5&&(t="5.0"),D(t,!1),null!==u&&R(u,f),s=!0}return void 0!==n.material_id?k(z):z(),t},GGBAppletUtils=function(){"use strict";function t(){return void 0!==window.GGBT_wsf_edit}function e(t,e){1!=e?(t.style.transformOrigin="0% 0% 0px",t.style.webkitTransformOrigin="0% 0% 0px",t.style.transform="scale("+e+","+e+")",t.style.webkitTransform="scale("+e+","+e+")",t.style.maxWidth="initial",null!==t.querySelector(".ggb_preview")&&(t.querySelector(".ggb_preview").style.maxWidth="initial"),void 0!==t.querySelectorAll(".ggb_preview img")[0]&&(t.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),void 0!==t.querySelectorAll(".ggb_preview img")[1]&&(t.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(t.style.transform="none",t.style.webkitTransform="none")}function n(t,e,n,i,r){if(t.isScreenshoGenerator)return 1;var o,a=void 0!==i&&i,s=null!=t.noScaleMargin&&t.noScaleMargin,l=(o=t.autoHeight)&&"false"!==o,u=function(t,e,n,i,r,o){var a=null;if(null!=o&&""!=o)for(var s=t.parentNode;null!=s;){if((" "+s.className+" ").indexOf(" "+o+" ")>-1){a=s;break}s=s.parentNode}var l=0,u=0,c=0,h=0,d=0,f=0,p=0;if(a)l=a.offsetWidth,u=Math.max(i?a.offsetWidth:0,a.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(l=Math.min(window.innerWidth,document.documentElement.clientWidth),u=Math.min(window.innerHeight,document.documentElement.clientHeight),c=l):(l=window.innerWidth,u=window.innerHeight,c=window.innerWidth),t){var g=t.getBoundingClientRect();g.left>0&&g.left<=l&&(void 0===r||!r)&&("rtl"===document.dir?(d=l-g.width-g.left,f=c<=480?10:30):(f=g.left,d=c<=480?10:30),h=f+d)}t&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(t.getBoundingClientRect(),"closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(h=40,p=0):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(h=0,p=40))}return t&&((void 0===n||!n)&&e>0&&e+h<l?l=e:l-=h,"object"!==_typeof(window.GGBT_wsf_view)||!window.GGBT_wsf_view.isFullscreen()||void 0!==n&&n||(u-=p)),{width:l,height:u}}(e,t.width,n,l,a&&window.GGBT_wsf_view||s,r),c=parseInt(u.width),h=t.width,d=t.height;if(void 0===h){var f=e.querySelector(".appletParameters");f&&(h=f.offsetWidth,d=f.offsetHeight)}var p=c/h,g=a?1:u.height/d;return void 0===n||n||(p=Math.min(1,p),g=Math.min(1,g)),Math.min(p,g)}function i(t,e,i){var r,o=1,a=!1;return t.hasOwnProperty("allowUpscale")&&(a=t.allowUpscale),t.hasOwnProperty("scale")&&(o=parseFloat(t.scale),(isNaN(o)||null===o||0===o)&&(o=1),o>1&&(a=!0)),e&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(a=!0),t.hasOwnProperty("disableAutoScale")&&t.disableAutoScale?o:(r=n(t,e,a,i,t.scaleContainerClass),!a||t.hasOwnProperty("scale")&&1!==o?Math.min(o,r):r)}function r(t){var e=Math.min(window.innerWidth,document.documentElement.clientWidth),n=Math.min(window.innerHeight,document.documentElement.clientHeight),i=t.getBoundingClientRect(),r=(e-i.width)/2,o=(n-i.height)/2;o<0&&(o=0),t.style.position="relative","closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(t.style.left=r<40?"40px":r+"px",t.style.top=o+"px"):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(t.style.top=o<40?"40px":o+"px",t.style.left=r+"px")}return{responsiveResize:function(n,o){var a=n.querySelector(".appletParameters");if(a){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if(o.id!==a.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(n)}if(a.parentElement&&/fullscreen/.test(a.parentElement.className))return;var s=i(o,n);t()&&a.setAttribute("data-param-scale",s);for(var l=null,u=0;u<n.childNodes.length;u++)if(void 0!==n.childNodes[u].className&&n.childNodes[u].className.match(/^applet_scaler/)){l=n.childNodes[u];break}if(null!==l&&null!==l.querySelector(".noscale"))return;var c=void 0!==o.id?o.id:"ggbApplet",h=window[c];null!=h&&h.recalculateEnvironments||null===l||l.className.match(/fullscreen/)||(l.parentNode.style.transform="",isNaN(s)||1===s?(e(l,1),l.parentNode.style.width=o.width+"px",l.parentNode.style.height=o.height+"px"):(l.parentNode.style.width=o.width*s+"px",l.parentNode.style.height=o.height*s+"px",e(l,s))),"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&r(n),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(a).parents(".content-added-content"))}},isFlexibleWorksheetEditor:t,positionCenter:r,getScale:i,scaleElement:e}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var t=n.location.search;return-1!=t.indexOf(J)||-1!=t.indexOf(K)}function q(t,e){}q(H,I),webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{},t;function u(){return v(),t}function v(){if(!t){var e=o.createElement(Q);if(e.id=L,e.style.cssText=R+S,e.tabIndex=-1,o.body.appendChild(e),t=e.contentWindow.document,-1==navigator.userAgent.indexOf(T)){t.open();var n=document.compatMode==U?V:W;t.write(n+X),t.close()}}}function w(t){q(cb,eb),function(t){function e(){return _typeof(o.readyState)==Y?_typeof(o.body)!=Y&&null!=o.body:/loaded|complete/.test(o.readyState)}var n=e();if(n)t();else{o.addEventListener&&o.addEventListener(Z,r,!1);var i=setInterval((function(){r()}),$)}function r(){if(!n){if(!e())return;n=!0,t(),o.removeEventListener&&o.removeEventListener(Z,r,!1),i&&clearInterval(i)}}}((function(){var e,n,i,r;e=t,n=u(),i=n.body,(r=n.createElement(_)).language=ab,r.crossOrigin=W,r.src=e,webModule.__errFn&&(r.onerror=function(){webModule.__errFn(L,new Error(bb+e))}),i.appendChild(r),q(cb,db)}))}function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(t){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(t){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(t){var e=c[t];return null==e?null:e},r=d,webModule.__errFn=e}function B(){function t(t){var e=t.lastIndexOf(rb);-1==e&&(e=t.length);var n=t.indexOf(sb);-1==n&&(n=t.length);var i=t.lastIndexOf(tb,Math.min(n,e));return i>=O?t.substring(O,i+P):W}var e,n=null!=(e=__gwt_getMetaProperty(wb))?e:W;return n==W&&(n=function(){for(var e=o.getElementsByTagName(_),n=O;n<e.length;++n)if(-1!=e[n].src.indexOf(xb))return t(e[n].src);return W}()),n==W&&(n=function(){var t=o.getElementsByTagName(yb);return t.length>O?t[t.length-P].href:W}()),n==W&&function(){var t=o.location;return t.href==t.protocol+zb+t.host+t.pathname+t.search+t.hash}()&&(n=t(o.location.href)),n=function(e){if(e.match(/^\w+:\/\//));else{var n=o.createElement(ub);n.src=e+vb,e=t(n.src)}return e}(n),n}function C(t){return t.match(/^\//)||t.match(/^[a-zA-Z]+:\/\//)?t:webModule.__moduleBase+t}function D(){var t,e=O,i=[],o=[];function a(t){var e=o[t](),n=i[t];if(e in n)return e;var a=[];for(var s in n)a[n[s]]=s;throw r&&r(t,a,e),null}if(__gwt_isKnownPropertyValue=function(t,e){return e in i[t]},webModule.__getPropMap=function(){var t={};for(var e in i)i.hasOwnProperty(e)&&(t[e]=a(e));return t},webModule.__computePropValue=a,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);try{var s=(t=Cb).indexOf(Db);-1!=s&&(e=parseInt(t.substring(s+P),$),t=t.substring(O,s))}catch(t){}return webModule.__softPermutationId=e,C(t+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}s[L]={moduleName:L},webModule.__moduleStartupDone=function(t){var e=s[L].bindings;s[L].bindings=function(){for(var n=e?e():{},i=t[webModule.__softPermutationId],r=O;r<i.length;r++){var o=i[r];n[o[O]]=o[P]}return n}},webModule.__startLoadingFragment=function(t){return C(t)},webModule.__installRunAsyncCode=function(t){var e=u(),n=e.body,i=e.createElement(_);i.language=ab,i.text=t,n.appendChild(i),n.removeChild(i)},A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},"function"!=typeof window.web3d&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),"function"!=typeof window.webSimple&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet}else console.warn("deployggb.js was loaded twice")})()},54877:function(t,e,n){"use strict";n.d(e,{Z:function(){return c}});n(59301);var i="tabs___jKdgD",r="button___N3zPT",o="active___yaTxW",a="tabBar___s48We",s=n(92310),l=n.n(s),u=n(37712),c=function(t){var e=t.dataSource,n=void 0===e?[]:e,s=t.value,c=t.onChange,h=t.className,d=t.style,f=void 0===d?{}:d,p=t.tabBarExtraContent;return(0,u.jsxs)("div",{className:l()(i,h),style:f,children:[null==n?void 0:n.map((function(t,e){return(0,u.jsx)("div",{onClick:function(){s!==t.id&&c(t.id)},className:l()(r,s===t.id&&o),children:t.name},e)})),(0,u.jsx)("div",{className:a,children:p})]})}},25950:function(t,e,n){"use strict";n.d(e,{Z:function(){return l}});n(59301);var i="title___M6CiE",r="dot___urlBO",o=n(92310),a=n.n(o),s=n(37712),l=function(t){var e=t.className,n=t.style,o=void 0===n?{}:n,l=t.title,u=t.subTitle;return(0,s.jsxs)("div",{className:a()(i,e),style:o,children:[(0,s.jsx)("b",{className:"font24 c-black",children:l}),(0,s.jsx)("div",{className:r}),(0,s.jsx)("div",{className:"font24 c-grey-333",children:u})]})}},32338:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return fu}});var i=n(7557),r=n.n(i),o=n(41498),a=n.n(o),s=n(79800),l=n.n(s),u=n(39647),c=n.n(u),h=n(59301),d=n(94706),f="video_list___fmmt3",p="video_name___iZxI4",g="activeTrial___zR4Bn",m="video_r_con___bgznT",v="l_b_title___EpR3D",y="r_b_tab___GHKki",w="activeStudy___IPQSu",b="r_b_item___cdpdS",x="r_b_name___frftT",S="r_b_name_con____aDdk",P="r_b_content___Db8sb",k="znzy___r1bkj",C="zncentent___a2TnP",A="mainzn___afzSf",M="znright___YN_Gq",E="z_r_title___LfjIE",L="z_r_c___jTOl5",T="title___SCM0g",N="xxitem___aJcyW",j="itemct___HSYno",I="info___gocFs",B="listWrap___UwLiK",O="tree___VjT0F",D=n(54877),R=n(25950),F=n(1079),z=n(82242),G=n.n(z),U=n(73677),H=n(8591),_=n(71418),Z=n(18240),W={flex_box_center:"flex_box_center___nX_sY",flex_space_between:"flex_space_between___tHW6l",flex_box_vertical_center:"flex_box_vertical_center___Dp_Bf",flex_box_center_end:"flex_box_center_end___n8GT5",flex_box_column:"flex_box_column___Q5Wxa",icons:"icons___DLUv4",shixuns:"shixuns___pPCqO",buttons:"buttons___s8iBY",addStage:"addStage___P94hb",color4CA:"color4CA___Eres0",color204:"color204___LCqpH",completed:"completed___fCP6S",actionTabs:"actionTabs___eNCHj",tab:"tab___QGwIF",s1:"s1___pZAwX",s2:"s2___ziJyb",tabActive:"tabActive___Wlqkr",learn:"learn___syPDx",ChapterStyle:"ChapterStyle___GRtiS",EditStyle:"EditStyle____ZVTa",labelContainer:"labelContainer___DgWPB",text:"text___vzLzH",tag:"tag___fN0LG","tagsList-content":"tagsList-content___ZHHsi",introContent:"introContent___S9E3f",introContentMaxHeight:"introContentMaxHeight___KNbal",nodata:"nodata___FO793"},V=n(37205),Y=n.n(V),X=n(83447),q=n(43428),K=n(3113),Q=n(95237),J=n(43604),$=n(24905),tt=n(6848),et=n(28103),nt=n(58421),it=n(24530),rt=n(10249),ot={search:"search___JA0r9",btn:"btn___GGtZC"},at=n(37712),st=function(t){var e=t.value,n=t.onChange,i=X.Z.useForm(),r=l()(i,1)[0],o=(0,h.useRef)(!1);(0,h.useEffect)((function(){e&&r.setFieldsValue(e)}),e);return(0,at.jsx)("div",{className:ot.search,children:(0,at.jsxs)(X.Z,{className:ot.formWrap,colon:!1,form:r,size:"large",layout:"inline",onFinish:function(t){o.current||function(t){o.current||n(t),o.current=!0,setTimeout((function(){o.current=!1}),2e3)}(t)},children:[(0,at.jsx)(X.Z.Item,{label:"实践项目名称",name:"keyword",initialValue:"",children:(0,at.jsx)(rt.Z,{style:{width:280,height:40}})}),(0,at.jsx)(X.Z.Item,{label:"学校/单位",name:"schools",initialValue:"",style:{margin:"0 40px"},children:(0,at.jsx)(rt.Z,{style:{width:280,height:40}})}),(0,at.jsx)(X.Z.Item,{label:"创建者/合作者",name:"creator",initialValue:"",children:(0,at.jsx)(rt.Z,{style:{width:200,height:40}})}),(0,at.jsx)(K.ZP,{className:ot.btn,type:"primary",htmlType:"submit",children:"搜索"})]})})},lt=n(77233),ut="drawer___AjfBZ",ct="menu___yWQ6S",ht="actived___WiR0o",dt="listItem___LLCke",ft="info___j5uqi",pt="title___F7Dim",gt="titleLeft___x7Xay",mt="description___s7pxM",vt="filter___QlOf_",yt="menuCourse___X85qC",wt="authorname___GLFYK",bt="tooltip-content___panbs",xt=n(13277);function St(t,e){var n=(0,h.useState)(e),i=l()(n,2),o=i[0],s=i[1],u=(0,h.useState)(!1),c=l()(u,2),d=c[0],f=c[1],p=(0,h.useState)(),g=l()(p,2),m=g[0],v=g[1],y=function(){var n=a()(r()().mark((function n(i){var a,l,u,c=arguments;return r()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a=c.length>1&&void 0!==c[1]&&c[1],l=a?e:G()(G()({},o),i),f(!0),s(l),n.next=6,t(l);case 6:return u=n.sent,f(!1),v(u),n.abrupt("return",u);case 10:case"end":return n.stop()}}),n)})));return function(t){return n.apply(this,arguments)}}();return[o,d,y,m,v]}var Pt=[{id:"type",name:"筛选",children:[{name:"全部",id:"all",type:"type"},{name:"我的",id:"mine",type:"type"}]},{id:"diff",name:"难度",children:[{name:"全部",id:"",type:"diff"},{name:"初级",id:1,type:"diff"},{name:"中级",id:2,type:"diff"},{name:"中高级",id:3,type:"diff"},{name:"高级",id:4,type:"diff"}]}],kt=(0,d.connect)((function(t){return{classroomList:t.classroomList,loading:t.loading}}))((function(t){var e,n,i=t.classroomList,o=t.loading,s=t.dispatch,u=t.cb,c=t.shixunIds,f=void 0===c?[]:c,p=((0,d.useParams)(),(0,d.useLocation)(),X.Z.useForm()),g=(l()(p,1)[0],i.shixunLists),m=(0,h.useState)([]),v=l()(m,2),y=v[0],w=v[1],b=(0,h.useState)([]),x=l()(b,2),S=x[0],P=x[1],k=(0,h.useState)([]),C=l()(k,2),A=C[0],M=C[1],E=(null==i||null===(e=i.actionTabs)||void 0===e?void 0:e.isMissionLevel)||!1,L=St(lt.xG,{}),T=l()(L,3),N=T[1],j=T[2],I=[{name:"最新",id:"created_at"},{name:"最热",id:"myshixuns_count"}].filter((function(t){return!!t})),B=(0,h.useState)({page:1,type:(0,xt.Ny)()?"all":"mine",diff:0,status:"all",order:"desc",limit:20,sort:"myshixuns_count",group_id:null,need:1,load_jupyter_evaluate:!0,is_subject:!0}),O=l()(B,2),D=O[0],R=O[1];(0,h.useEffect)((function(){"选用实践项目"===i.actionTabs.key&&(F(),D.page=1,s({type:"classroomList/getShixunLists",payload:G()({},D)}))}),[i.actionTabs.key]);var F=function(){var t=a()(r()().mark((function t(){var e;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,it.ZP)("/api/users/user_setting_groups.json",{method:"get",params:{type:"Shixun"}});case 2:e=t.sent,w([{id:null,name:"全部"},{id:-1,name:"未加入目录"}].concat(Y()((null==e?void 0:e.groups)||[])));case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),z=function(){s({type:"classroomList/setActionTabs",payload:{}}),R({page:1,type:(0,xt.Ny)()?"all":"mine",diff:0,status:"all",order:"desc",limit:20,sort:"myshixuns_count",group_id:null,need:1,load_jupyter_evaluate:!0,is_subject:!0}),M([])};return"选用实践项目"!==i.actionTabs.key?null:(0,at.jsxs)(q.Z,{placement:"bottom",height:"100%",closable:!1,open:"选用实践项目"===i.actionTabs.key,rootClassName:ut,footer:(0,at.jsxs)("div",{className:"flex justify-center gap-8px",children:[(0,at.jsx)(K.ZP,{size:"middle",onClick:function(){z(),P([]),u("取消")},children:" 取消 "}),(0,at.jsx)(K.ZP,{size:"middle",loading:N,onClick:a()(r()().mark((function t(){var e,n,o,a,s,l;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=r()().mark((function t(){var e,n;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=S[o],!f.includes(e)){t.next=4;break}return H.ZP.info("请勿重复选择:".concat(null==g||null===(n=g.shixun_list)||void 0===n||null===(n=n.find((function(t){return t.id===e})))||void 0===n?void 0:n.title)),t.abrupt("return",{v:void 0});case 4:case"end":return t.stop()}}),t)})),o=0;case 2:if(!(o<(null==S?void 0:S.length))){t.next=10;break}return t.delegateYield(e(),"t0",4);case 4:if(!(n=t.t0)){t.next=7;break}return t.abrupt("return",n.v);case 7:o++,t.next=2;break;case 10:if(a=[],E&&A.forEach((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];a.push.apply(a,Y()(t.filter((function(t){return-1!==t}))))})),!E){t.next=18;break}return t.next=15,j({stage_id:i.actionTabs.id,subject_id:i.actionTabs.subject_id,challenge_ids:a});case 15:t.t1=t.sent,t.next=21;break;case 18:return t.next=20,(0,lt.Ep)({id:i.actionTabs.id,subject_id:i.actionTabs.subject_id,shixun_ids:Y()(S)});case 20:t.t1=t.sent;case 21:s=t.t1,P([]),(E?0===(null==s?void 0:s.status):null==s?void 0:s.shixuns_list)&&(z(),u(E?null==s||null===(l=s.data)||void 0===l?void 0:l.list:s.shixuns_list));case 24:case"end":return t.stop()}}),t)}))),type:"primary",children:" 确定 "})]}),children:[(0,at.jsx)("section",{className:"tc",children:(0,at.jsx)(st,{onChange:function(t){R(G()(G()(G()({},D),t),{},{page:1})),s({type:"classroomList/getShixunLists",payload:G()(G()(G()({},D),t),{},{page:1})})}})}),(0,at.jsx)(_.Z,{spinning:o.effects["classroomList/getShixunLists"],children:(0,at.jsxs)("section",{className:"edu-container",children:[Pt.map((function(t,e){var n;return(0,at.jsxs)("ul",{className:ct,children:[(0,at.jsx)("li",{children:t.name}),null==t||null===(n=t.children)||void 0===n?void 0:n.map((function(e,n){return(0,xt.Ny)()||"type"!==t.id||"全部"!==e.name?(0,at.jsx)("li",{className:D[t.id]==e.id?ht:"",onClick:function(){D[t.id]=e.id,D.page=1,R(G()({},D)),s({type:"classroomList/getShixunLists",payload:G()({},D)})},children:(0,at.jsx)("strong",{children:e.name})},n):(0,at.jsx)(at.Fragment,{})}))]},e)})),"mine"===D.type&&(0,at.jsxs)("ul",{className:ct,children:[(0,at.jsx)("li",{children:"目录"}),null==y?void 0:y.map((function(t,e){return(0,at.jsx)("li",{className:D.group_id==t.id?ht:"",onClick:function(){D.group_id=t.id,D.page=1,R(G()({},D)),s({type:"classroomList/getShixunLists",payload:G()({},D)})},children:(0,at.jsx)("strong",{children:t.name})},t.name)}))]}),(0,at.jsxs)(Q.Z,{align:"middle",children:[(0,at.jsx)(J.Z,{flex:"1",className:vt,children:I.map((function(t,e){return(0,at.jsx)(K.ZP,{className:"mr20",type:D.sort===t.id?"primary":"default",onClick:function(){D.sort=t.id,R(G()({},D)),s({type:"classroomList/getShixunLists",payload:G()({},D)})},children:t.name},e)}))}),(0,at.jsx)(J.Z,{className:"c-grey-999",children:(0,at.jsx)("div",{className:yt,children:(0,at.jsx)("ul",{children:(0,at.jsxs)("li",{className:"current",onClick:function(){D.order="asc"===D.order?"desc":"asc",R(G()({},D)),s({type:"classroomList/getShixunLists",payload:G()({},D)})},children:["学习人数",(0,at.jsxs)("p",{className:"edu-sorter current ".concat(D.order),children:[(0,at.jsx)("span",{className:"iconfont icon-sanjiaoxing-up"}),(0,at.jsx)("span",{className:"iconfont icon-sanjiaoxing-down"})]})]})})})})]}),null==g||null===(n=g.shixun_list)||void 0===n?void 0:n.map((function(t,e){var n;return(0,at.jsxs)("div",{className:dt,children:[!E&&(0,at.jsx)($.Z,{checked:S.includes(t.id),value:t.id,onChange:function(e){S.indexOf(t.id);S.indexOf(t.id)>-1?P(S.filter((function(e){return e!==t.id}))):P(S.concat(t.id))},disabled:"未发布"==(null==t?void 0:t.shixun_tag_num_name)}),(0,at.jsxs)("div",{className:ft,children:[(0,at.jsx)("div",{className:pt,children:(0,at.jsxs)("div",{className:gt,children:[(0,at.jsx)("a",{className:"c-black",href:"/shixuns/".concat(null==t?void 0:t.identifier,"/challenges"),target:"_blank",children:(0,at.jsx)("strong",{className:"font16",dangerouslySetInnerHTML:{__html:t.title}})}),(0,xt.Ny)()&&1===(null==t?void 0:t.mark_status)&&(0,at.jsx)(tt.Z,{title:null==t?void 0:t.mark_content,children:(0,at.jsx)("span",{style:{marginRight:"auto",background:"#2FA34F"},className:"tag-style current ml10",children:"正常"})}),(0,xt.Ny)()&&2===(null==t?void 0:t.mark_status)&&(0,at.jsx)(tt.Z,{title:null==t?void 0:t.mark_content,children:(0,at.jsx)("span",{style:{marginRight:"auto",background:"#FF8C29"},className:"tag-style current ml10",children:"需完善"})}),(0,xt.Ny)()&&3===(null==t?void 0:t.mark_status)&&(0,at.jsx)(tt.Z,{title:null==t?void 0:t.mark_content,children:(0,at.jsx)("span",{style:{marginRight:"auto",background:"#E53333"},className:"tag-style current ml10",children:"无法使用"})}),"未发布"==(null==t?void 0:t.shixun_tag_num_name)&&(0,at.jsx)(tt.Z,{zIndex:1e4,title:"实训需发布后才能选用到课程中,点击名称可前往实训详情",children:(0,at.jsx)("span",{style:{marginRight:"auto",background:"#999"},className:"tag-style current ml10",children:"未发布"})})]})}),(0,at.jsx)("div",{className:"flex-wrp mt10 font14 c-light-black",children:(0,at.jsx)("span",{className:mt,dangerouslySetInnerHTML:{__html:t.description}})}),E?(0,at.jsx)(tt.Z,{title:null!=t&&t.task_pass&&"未发布"!=(null==t?void 0:t.shixun_tag_num_name)?"":"禁止跳关和未发布的实训任务关卡,不能选用到课程中",children:(0,at.jsx)("div",{className:"mt15",children:(0,at.jsx)($.Z.Group,{disabled:!(null!=t&&t.task_pass)||"未发布"==(null==t?void 0:t.shixun_tag_num_name),options:[{value:-1,label:"全选"}].concat(Y()((null==t||null===(n=t.challenges)||void 0===n?void 0:n.map((function(t,e){return{value:null==t?void 0:t.id,label:"第".concat(null==t?void 0:t.position,"关 ").concat(null==t?void 0:t.subject)}})))||[])),value:(null==A?void 0:A[e])||[],onChange:function(n){var i,r,o,a=(null==n?void 0:n.filter((function(t){return-1!==t})))||[],s=(null==t||null===(i=t.challenges)||void 0===i?void 0:i.map((function(t){return null==t?void 0:t.id})))||[];null!=n&&n.includes(-1)?A[e]=null!=A&&null!==(r=A[e])&&void 0!==r&&r.includes(-1)?(null==a?void 0:a.length)!==(null==s?void 0:s.length)?a:[]:[].concat(Y()(s),[-1]):A[e]=null!=A&&null!==(o=A[e])&&void 0!==o&&o.includes(-1)?[]:(null==n?void 0:n.length)===(null==s?void 0:s.length)?[].concat(Y()(s),[-1]):n;M(Y()(A))}})})}):(0,at.jsx)("div",{className:" mt15",children:t.challenge_names.map((function(t,e){return(0,at.jsxs)("span",{className:"mr30 font12",children:["第",e+1,"关 ",t," "]},e)}))}),(0,at.jsx)(et.Z,{dashed:!0}),(0,at.jsxs)("div",{className:"c-light-black mt20 font12",style:{display:"flex",justifyContent:"space-between"},children:[(0,at.jsxs)("div",{children:[(0,at.jsx)(tt.Z,{overlayClassName:bt,title:(0,at.jsx)("div",{children:(0,at.jsx)("span",{dangerouslySetInnerHTML:{__html:null==t?void 0:t.member_user_names}})}),children:(0,at.jsx)("span",{className:wt,dangerouslySetInnerHTML:{__html:null==t?void 0:t.member_user_names}})}),t.author_school_name&&(0,at.jsx)(h.Fragment,{children:(0,at.jsx)("span",{dangerouslySetInnerHTML:{__html:t.author_school_name}})})]}),(0,at.jsxs)("div",{children:[(0,at.jsxs)("span",{className:"mr30",children:["难度系数  ",t.level]}),(0,at.jsxs)("span",{children:["学习人数  ",t.study_count]})]})]})]})]},e)})),(0,at.jsx)("p",{})]})}),(0,at.jsx)("div",{className:"tc",children:(0,at.jsx)(nt.Z,{current:D.page||1,hideOnSinglePage:!0,showSizeChanger:!1,defaultPageSize:20,showQuickJumper:!0,total:null==g?void 0:g.shixuns_count,onChange:function(t){D.page=t,s({type:"classroomList/getShixunLists",payload:G()({},D)})}})})]},"bottom")})),Ct=n(91232),At=n.n(Ct),Mt=n(38819),Et=n(92310),Lt=n.n(Et),Tt=n(14809),Nt=n(95190),jt=n(50298),It=n(93664),Bt=n(18929),Ot=n(48736),Dt=n(62646),Rt=n(11592),Ft=n(4635),zt=n(77900),Gt=n(10228),Ut=h.forwardRef((function(t,e){var n=t.prefixCls,i=t.forceRender,r=t.className,o=t.style,a=t.children,s=t.isActive,l=t.role,u=h.useState(s||i),c=(0,jt.Z)(u,2),d=c[0],f=c[1];return h.useEffect((function(){(i||s)&&f(!0)}),[i,s]),d?h.createElement("div",{ref:e,className:Lt()("".concat(n,"-content"),(0,Ft.Z)((0,Ft.Z)({},"".concat(n,"-content-active"),s),"".concat(n,"-content-inactive"),!s),r),style:o,role:l},h.createElement("div",{className:"".concat(n,"-content-box")},a)):null}));Ut.displayName="PanelContent";var Ht=Ut,_t=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],Zt=h.forwardRef((function(t,e){var n=t.showArrow,i=void 0===n||n,r=t.headerClass,o=t.isActive,a=t.onItemClick,s=t.forceRender,l=t.className,u=t.prefixCls,c=t.collapsible,d=t.accordion,f=t.panelKey,p=t.extra,g=t.header,m=t.expandIcon,v=t.openMotion,y=t.destroyInactivePanel,w=t.children,b=(0,Dt.Z)(t,_t),x="disabled"===c,S="header"===c,P="icon"===c,k=null!=p&&"boolean"!=typeof p,C=function(){null==a||a(f)},A="function"==typeof m?m(t):h.createElement("i",{className:"arrow"});A&&(A=h.createElement("div",{className:"".concat(u,"-expand-icon"),onClick:["header","icon"].includes(c)?C:void 0},A));var M=Lt()((0,Ft.Z)((0,Ft.Z)((0,Ft.Z)({},"".concat(u,"-item"),!0),"".concat(u,"-item-active"),o),"".concat(u,"-item-disabled"),x),l),E={className:Lt()(r,(0,Ft.Z)((0,Ft.Z)((0,Ft.Z)({},"".concat(u,"-header"),!0),"".concat(u,"-header-collapsible-only"),S),"".concat(u,"-icon-collapsible-only"),P)),"aria-expanded":o,"aria-disabled":x,onKeyDown:function(t){"Enter"!==t.key&&t.keyCode!==Gt.Z.ENTER&&t.which!==Gt.Z.ENTER||C()}};return S||P||(E.onClick=C,E.role=d?"tab":"button",E.tabIndex=x?-1:0),h.createElement("div",(0,Tt.Z)({},b,{ref:e,className:M}),h.createElement("div",E,i&&A,h.createElement("span",{className:"".concat(u,"-header-text"),onClick:"header"===c?C:void 0},g),k&&h.createElement("div",{className:"".concat(u,"-extra")},p)),h.createElement(zt.ZP,(0,Tt.Z)({visible:o,leavedClassName:"".concat(u,"-content-hidden")},v,{forceRender:s,removeOnLeave:y}),(function(t,e){var n=t.className,i=t.style;return h.createElement(Ht,{ref:e,prefixCls:u,className:n,style:i,isActive:o,forceRender:s,role:d?"tabpanel":void 0},w)})))})),Wt=Zt,Vt=["children","label","key","collapsible","onItemClick","destroyInactivePanel"];var Yt=function(t,e,n){return Array.isArray(t)?function(t,e){var n=e.prefixCls,i=e.accordion,r=e.collapsible,o=e.destroyInactivePanel,a=e.onItemClick,s=e.activeKey,l=e.openMotion,u=e.expandIcon;return t.map((function(t,e){var c=t.children,d=t.label,f=t.key,p=t.collapsible,g=t.onItemClick,m=t.destroyInactivePanel,v=(0,Dt.Z)(t,Vt),y=String(null!=f?f:e),w=null!=p?p:r,b=null!=m?m:o,x=!1;return x=i?s[0]===y:s.indexOf(y)>-1,h.createElement(Wt,(0,Tt.Z)({},v,{prefixCls:n,key:y,panelKey:y,isActive:x,accordion:i,openMotion:l,expandIcon:u,header:d,collapsible:w,onItemClick:function(t){"disabled"!==w&&(a(t),null==g||g(t))},destroyInactivePanel:b}),c)}))}(t,n):(0,Rt.Z)(e).map((function(t,e){return function(t,e,n){if(!t)return null;var i=n.prefixCls,r=n.accordion,o=n.collapsible,a=n.destroyInactivePanel,s=n.onItemClick,l=n.activeKey,u=n.openMotion,c=n.expandIcon,d=t.key||String(e),f=t.props,p=f.header,g=f.headerClass,m=f.destroyInactivePanel,v=f.collapsible,y=f.onItemClick,w=!1;w=r?l[0]===d:l.indexOf(d)>-1;var b=null!=v?v:o,x={key:d,panelKey:d,header:p,headerClass:g,isActive:w,prefixCls:i,destroyInactivePanel:null!=m?m:a,openMotion:u,accordion:r,children:t.props.children,onItemClick:function(t){"disabled"!==b&&(s(t),null==y||y(t))},expandIcon:c,collapsible:b};return"string"==typeof t.type?t:(Object.keys(x).forEach((function(t){void 0===x[t]&&delete x[t]})),h.cloneElement(t,x))}(t,e,n)}))},Xt=n(26112);function qt(t){var e=t;if(!Array.isArray(e)){var n=(0,It.Z)(e);e="number"===n||"string"===n?[e]:[]}return e.map((function(t){return String(t)}))}var Kt=h.forwardRef((function(t,e){var n=t.prefixCls,i=void 0===n?"rc-collapse":n,r=t.destroyInactivePanel,o=void 0!==r&&r,a=t.style,s=t.accordion,l=t.className,u=t.children,c=t.collapsible,d=t.openMotion,f=t.expandIcon,p=t.activeKey,g=t.defaultActiveKey,m=t.onChange,v=t.items,y=Lt()(i,l),w=(0,Bt.Z)([],{value:p,onChange:function(t){return null==m?void 0:m(t)},defaultValue:g,postState:qt}),b=(0,jt.Z)(w,2),x=b[0],S=b[1];(0,Ot.ZP)(!u,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var P=Yt(v,u,{prefixCls:i,accordion:s,openMotion:d,expandIcon:f,collapsible:c,destroyInactivePanel:o,onItemClick:function(t){return S((function(){return s?x[0]===t?[]:[t]:x.indexOf(t)>-1?x.filter((function(e){return e!==t})):[].concat((0,Nt.Z)(x),[t])}))},activeKey:x});return h.createElement("div",(0,Tt.Z)({ref:e,className:y,style:a,role:s?"tablist":void 0},(0,Xt.Z)(t,{aria:!0,data:!0})),P)})),Qt=Object.assign(Kt,{Panel:Wt}),Jt=Qt,$t=(Qt.Panel,n(2738)),te=n(62892),ee=n(92343),ne=n(36355),ie=n(19716);var re=h.forwardRef(((t,e)=>{const{getPrefixCls:n}=h.useContext(ne.E_),{prefixCls:i,className:r,showArrow:o=!0}=t,a=n("collapse",i),s=Lt()({[`${a}-no-arrow`]:!o},r);return h.createElement(Jt.Panel,Object.assign({ref:e},t,{prefixCls:a,className:s}))})),oe=n(17313),ae=n(8378),se=n(83116),le=n(37613);const ue=t=>{const{componentCls:e,contentBg:n,padding:i,headerBg:r,headerPadding:o,collapseHeaderPaddingSM:a,collapseHeaderPaddingLG:s,collapsePanelBorderRadius:l,lineWidth:u,lineType:c,colorBorder:h,colorText:d,colorTextHeading:f,colorTextDisabled:p,fontSize:g,fontSizeLG:m,lineHeight:v,marginSM:y,paddingSM:w,paddingLG:b,paddingXS:x,motionDurationSlow:S,fontSizeIcon:P,contentPadding:k}=t,C=`${u}px ${c} ${h}`;return{[e]:Object.assign(Object.assign({},(0,oe.Wf)(t)),{backgroundColor:r,border:C,borderBottom:0,borderRadius:`${l}px`,"&-rtl":{direction:"rtl"},[`& > ${e}-item`]:{borderBottom:C,"&:last-child":{[`\n &,\n & > ${e}-header`]:{borderRadius:`0 0 ${l}px ${l}px`}},[`> ${e}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:o,color:f,lineHeight:v,cursor:"pointer",transition:`all ${S}, visibility 0s`,[`> ${e}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${e}-expand-icon`]:{height:g*v,display:"flex",alignItems:"center",paddingInlineEnd:y},[`${e}-arrow`]:Object.assign(Object.assign({},(0,oe.Ro)()),{fontSize:P,svg:{transition:`transform ${S}`}}),[`${e}-header-text`]:{marginInlineEnd:"auto"}},[`${e}-header-collapsible-only`]:{cursor:"default",[`${e}-header-text`]:{flex:"none",cursor:"pointer"}},[`${e}-icon-collapsible-only`]:{cursor:"default",[`${e}-expand-icon`]:{cursor:"pointer"}}},[`${e}-content`]:{color:d,backgroundColor:n,borderTop:C,[`& > ${e}-content-box`]:{padding:k},"&-hidden":{display:"none"}},"&-small":{[`> ${e}-item`]:{[`> ${e}-header`]:{padding:a,paddingInlineStart:x,[`> ${e}-expand-icon`]:{marginInlineStart:w-x}},[`> ${e}-content > ${e}-content-box`]:{padding:w}}},"&-large":{[`> ${e}-item`]:{fontSize:m,[`> ${e}-header`]:{padding:s,paddingInlineStart:i,[`> ${e}-expand-icon`]:{height:m*v,marginInlineStart:b-i}},[`> ${e}-content > ${e}-content-box`]:{padding:b}}},[`${e}-item:last-child`]:{[`> ${e}-content`]:{borderRadius:`0 0 ${l}px ${l}px`}},[`& ${e}-item-disabled > ${e}-header`]:{"\n &,\n & > .arrow\n ":{color:p,cursor:"not-allowed"}},[`&${e}-icon-position-end`]:{[`& > ${e}-item`]:{[`> ${e}-header`]:{[`${e}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:y}}}}})}},ce=t=>{const{componentCls:e}=t;return{[`${e}-rtl`]:{[`> ${e}-item > ${e}-header ${e}-arrow svg`]:{transform:"rotate(180deg)"}}}},he=t=>{const{componentCls:e,headerBg:n,paddingXXS:i,colorBorder:r}=t;return{[`${e}-borderless`]:{backgroundColor:n,border:0,[`> ${e}-item`]:{borderBottom:`1px solid ${r}`},[`\n > ${e}-item:last-child,\n > ${e}-item:last-child ${e}-header\n `]:{borderRadius:0},[`> ${e}-item:last-child`]:{borderBottom:0},[`> ${e}-item > ${e}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${e}-item > ${e}-content > ${e}-content-box`]:{paddingTop:i}}}},de=t=>{const{componentCls:e,paddingSM:n}=t;return{[`${e}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${e}-item`]:{borderBottom:0,[`> ${e}-content`]:{backgroundColor:"transparent",border:0,[`> ${e}-content-box`]:{paddingBlock:n}}}}}};var fe=(0,se.Z)("Collapse",(t=>{const e=(0,le.TS)(t,{collapseHeaderPaddingSM:`${t.paddingXS}px ${t.paddingSM}px`,collapseHeaderPaddingLG:`${t.padding}px ${t.paddingLG}px`,collapsePanelBorderRadius:t.borderRadiusLG});return[ue(e),he(e),de(e),ce(e),(0,ae.Z)(e)]}),(t=>({headerPadding:`${t.paddingSM}px ${t.padding}px`,headerBg:t.colorFillAlter,contentPadding:`${t.padding}px 16px`,contentBg:t.colorBgContainer})));const pe=h.forwardRef(((t,e)=>{const{getPrefixCls:n,direction:i,collapse:r}=h.useContext(ne.E_),{prefixCls:o,className:a,rootClassName:s,style:l,bordered:u=!0,ghost:c,size:d,expandIconPosition:f="start",children:p,expandIcon:g}=t,m=(0,ie.Z)((t=>{var e;return null!==(e=null!=d?d:t)&&void 0!==e?e:"middle"})),v=n("collapse",o),y=n(),[w,b]=fe(v),x=h.useMemo((()=>"left"===f?"start":"right"===f?"end":f),[f]),S=Lt()(`${v}-icon-position-${x}`,{[`${v}-borderless`]:!u,[`${v}-rtl`]:"rtl"===i,[`${v}-ghost`]:!!c,[`${v}-${m}`]:"middle"!==m},null==r?void 0:r.className,a,s,b),P=Object.assign(Object.assign({},(0,te.Z)(y)),{motionAppear:!1,leavedClassName:`${v}-content-hidden`}),k=h.useMemo((()=>p?(0,Rt.Z)(p).map(((t,e)=>{var n,i;if(null===(n=t.props)||void 0===n?void 0:n.disabled){const n=null!==(i=t.key)&&void 0!==i?i:String(e),{disabled:r,collapsible:o}=t.props,a=Object.assign(Object.assign({},(0,$t.Z)(t.props,["disabled"])),{key:n,collapsible:null!=o?o:r?"disabled":void 0});return(0,ee.Tm)(t,a)}return t})):null),[p]);return w(h.createElement(Jt,Object.assign({ref:e,openMotion:P},(0,$t.Z)(t,["rootClassName"]),{expandIcon:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e=g?g(t):h.createElement(Mt.Z,{rotate:t.isActive?90:void 0});return(0,ee.Tm)(e,(()=>({className:Lt()(e.props.className,`${v}-arrow`)})))},prefixCls:v,className:S,style:Object.assign(Object.assign({},null==r?void 0:r.style),l)}),k))}));var ge=Object.assign(pe,{Panel:re}),me=n(8070),ve=n(20834),ye=n(5112),we=n(99267),be=n(36785),xe=n(47729),Se=n(14088);const Pe=t=>{const{lineWidth:e,fontSizeIcon:n}=t,i=t.fontSizeSM,r=t.lineHeightSM*i+"px";return(0,le.TS)(t,{tagFontSize:i,tagLineHeight:r,tagIconSize:n-2*e,tagPaddingHorizontal:8,tagBorderlessBg:t.colorFillTertiary})},ke=t=>({defaultBg:t.colorFillQuaternary,defaultColor:t.colorText});var Ce=(0,se.Z)("Tag",(t=>(t=>{const{paddingXXS:e,lineWidth:n,tagPaddingHorizontal:i,componentCls:r}=t,o=i-n,a=e-n;return{[r]:Object.assign(Object.assign({},(0,oe.Wf)(t)),{display:"inline-block",height:"auto",marginInlineEnd:t.marginXS,paddingInline:o,fontSize:t.tagFontSize,lineHeight:t.tagLineHeight,whiteSpace:"nowrap",background:t.defaultBg,border:`${t.lineWidth}px ${t.lineType} ${t.colorBorder}`,borderRadius:t.borderRadiusSM,opacity:1,transition:`all ${t.motionDurationMid}`,textAlign:"start",position:"relative",[`&${r}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:t.defaultColor},[`${r}-close-icon`]:{marginInlineStart:a,color:t.colorTextDescription,fontSize:t.tagIconSize,cursor:"pointer",transition:`all ${t.motionDurationMid}`,"&:hover":{color:t.colorTextHeading}},[`&${r}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${t.iconCls}-close, ${t.iconCls}-close:hover`]:{color:t.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${r}-checkable-checked):hover`]:{color:t.colorPrimary,backgroundColor:t.colorFillSecondary},"&:active, &-checked":{color:t.colorTextLightSolid},"&-checked":{backgroundColor:t.colorPrimary,"&:hover":{backgroundColor:t.colorPrimaryHover}},"&:active":{backgroundColor:t.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${t.iconCls} + span, > span + ${t.iconCls}`]:{marginInlineStart:o}}),[`${r}-borderless`]:{borderColor:"transparent",background:t.tagBorderlessBg}}})(Pe(t))),ke),Ae=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};var Me=t=>{const{prefixCls:e,style:n,className:i,checked:r,onChange:o,onClick:a}=t,s=Ae(t,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:l,tag:u}=h.useContext(ne.E_),c=l("tag",e),[d,f]=Ce(c),p=Lt()(c,`${c}-checkable`,{[`${c}-checkable-checked`]:r},null==u?void 0:u.className,i,f);return d(h.createElement("span",Object.assign({},s,{style:Object.assign(Object.assign({},n),null==u?void 0:u.style),className:p,onClick:t=>{null==o||o(!r),null==a||a(t)}})))},Ee=n(45157);var Le=(0,se.b)(["Tag","preset"],(t=>(t=>(0,Ee.Z)(t,((e,n)=>{let{textColor:i,lightBorderColor:r,lightColor:o,darkColor:a}=n;return{[`${t.componentCls}-${e}`]:{color:i,background:o,borderColor:r,"&-inverse":{color:t.colorTextLightSolid,background:a,borderColor:a},[`&${t.componentCls}-borderless`]:{borderColor:"transparent"}}}})))(Pe(t))),ke);const Te=(t,e,n)=>{const i="string"!=typeof(r=n)?r:r.charAt(0).toUpperCase()+r.slice(1);var r;return{[`${t.componentCls}-${e}`]:{color:t[`color${n}`],background:t[`color${i}Bg`],borderColor:t[`color${i}Border`],[`&${t.componentCls}-borderless`]:{borderColor:"transparent"}}}};var Ne=(0,se.b)(["Tag","status"],(t=>{const e=Pe(t);return[Te(e,"success","Success"),Te(e,"processing","Info"),Te(e,"error","Error"),Te(e,"warning","Warning")]}),ke),je=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};const Ie=(t,e)=>{const{prefixCls:n,className:i,rootClassName:r,style:o,children:a,icon:s,color:l,onClose:u,closeIcon:c,closable:d,bordered:f=!0}=t,p=je(t,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:g,direction:m,tag:v}=h.useContext(ne.E_),[y,w]=h.useState(!0);h.useEffect((()=>{"visible"in p&&w(p.visible)}),[p.visible]);const b=(0,be.o2)(l),x=(0,be.yT)(l),S=b||x,P=Object.assign(Object.assign({backgroundColor:l&&!S?l:void 0},null==v?void 0:v.style),o),k=g("tag",n),[C,A]=Ce(k),M=Lt()(k,null==v?void 0:v.className,{[`${k}-${l}`]:S,[`${k}-has-color`]:l&&!S,[`${k}-hidden`]:!y,[`${k}-rtl`]:"rtl"===m,[`${k}-borderless`]:!f},i,r,A),E=t=>{t.stopPropagation(),null==u||u(t),t.defaultPrevented||w(!1)},[,L]=(0,xe.Z)(d,c,(t=>null===t?h.createElement(we.Z,{className:`${k}-close-icon`,onClick:E}):h.createElement("span",{className:`${k}-close-icon`,onClick:E},t)),null,!1),T="function"==typeof p.onClick||a&&"a"===a.type,N=s||null,j=N?h.createElement(h.Fragment,null,N,a&&h.createElement("span",null,a)):a,I=h.createElement("span",Object.assign({},p,{ref:e,className:M,style:P}),j,L,b&&h.createElement(Le,{key:"preset",prefixCls:k}),x&&h.createElement(Ne,{key:"status",prefixCls:k}));return C(T?h.createElement(Se.Z,{component:"Tag"},I):I)},Be=h.forwardRef(Ie);Be.CheckableTag=Me;var Oe=Be,De=n(99313),Re=n(57809),Fe=n(32418),ze="scoremodal___CwnRQ",Ge="selectWrapper___Jdp94",Ue="search___zSf8A",He="searchIcon___ApAIo",_e="header_style___RfAxp",Ze="tabWrap___YTk4j",We="form_style___c9uGg",Ve=n(46172),Ye=n(23003),Xe="scoremodal___cmAHe",qe="tabWrap___Xnuvu",Ke="RenderHtml_content___pmH_q",Qe="RenderHtml_style___tvtS0",Je="content_list___jvOz0",$e="content_value___DkebT",tn="content_text___oRKdm",en=n(61186),nn=n.n(en),rn=n(5627),on="list___KhJas",an="row___GGtIx",sn="title___o_xqf",ln="size___OVRoL",un="download___ZLcIH",cn="preview___gi0kI",hn="annotation___KVSwj",dn=n(97562),fn="imageDimensions___a7crR",pn="img___Kroat",gn="fullWidth___c492T",mn=function(t,e){return(mn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function vn(t,e){function n(){this.constructor=t}mn(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function yn(t,e,n,i){return new(n||(n=Promise))((function(r,o){function a(t){try{l(i.next(t))}catch(t){o(t)}}function s(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((i=i.apply(t,e||[])).next())}))}function wn(t,e){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function bn(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,r++)i[r]=o[a];return i}var xn=function(){function t(){}return t.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},t.setAttributes=function(t,e){for(var n=0,i=e;n<i.length;n++){var r=i[n],o=r[0],a=r[1];t.setAttribute(o,a)}},t.createRect=function(e,n,i){var r=document.createElementNS("http://www.w3.org/2000/svg","rect");return r.setAttribute("width",e.toString()),r.setAttribute("height",n.toString()),i&&t.setAttributes(r,i),r},t.createLine=function(e,n,i,r,o){var a=document.createElementNS("http://www.w3.org/2000/svg","line");return a.setAttribute("x1",e.toString()),a.setAttribute("y1",n.toString()),a.setAttribute("x2",i.toString()),a.setAttribute("y2",r.toString()),o&&t.setAttributes(a,o),a},t.createPolygon=function(e,n){var i=document.createElementNS("http://www.w3.org/2000/svg","polygon");return i.setAttribute("points",e),n&&t.setAttributes(i,n),i},t.createCircle=function(e,n){var i=document.createElementNS("http://www.w3.org/2000/svg","circle");return i.setAttribute("cx",(e/2).toString()),i.setAttribute("cy",(e/2).toString()),i.setAttribute("r",e.toString()),n&&t.setAttributes(i,n),i},t.createEllipse=function(e,n,i){var r=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return r.setAttribute("cx",(e/2).toString()),r.setAttribute("cy",(n/2).toString()),r.setAttribute("rx",(e/2).toString()),r.setAttribute("ry",(n/2).toString()),i&&t.setAttributes(r,i),r},t.createGroup=function(e){var n=document.createElementNS("http://www.w3.org/2000/svg","g");return e&&t.setAttributes(n,e),n},t.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},t.createMarker=function(e,n,i,r,o,a,s){var l=document.createElementNS("http://www.w3.org/2000/svg","marker");return t.setAttributes(l,[["id",e],["orient",n],["markerWidth",i.toString()],["markerHeight",r.toString()],["refX",o.toString()],["refY",a.toString()]]),l.appendChild(s),l},t.createText=function(e){var n=document.createElementNS("http://www.w3.org/2000/svg","text");return n.setAttribute("x","0"),n.setAttribute("y","0"),e&&t.setAttributes(n,e),n},t.createTSpan=function(e,n){var i=document.createElementNS("http://www.w3.org/2000/svg","tspan");return i.textContent=e,n&&t.setAttributes(i,n),i},t.createImage=function(e){var n=document.createElementNS("http://www.w3.org/2000/svg","image");return e&&t.setAttributes(n,e),n},t.createPoint=function(t,e){var n=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return n.x=t,n.y=e,n},t.createPath=function(e,n){var i=document.createElementNS("http://www.w3.org/2000/svg","path");return i.setAttribute("d",e),n&&t.setAttributes(i,n),i},t}(),Sn=function(){function t(){}return t.addKey=function(e){t.key=e},Object.defineProperty(t,"isLicensed",{get:function(){return!!t.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(t.key)},enumerable:!1,configurable:!0}),t}(),Pn=function(){function t(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return t.prototype.rasterize=function(t,e,n){var i=this;return new Promise((function(r){var o=void 0!==n?n:document.createElement("canvas");null===t&&(i.markersOnly=!0,i.naturalSize=!1);var a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.setAttribute("xmlns","http://www.w3.org/2000/svg"),a.setAttribute("width",e.width.baseVal.valueAsString),a.setAttribute("height",e.height.baseVal.valueAsString),a.setAttribute("viewBox","0 0 "+e.viewBox.baseVal.width.toString()+" "+e.viewBox.baseVal.height.toString()),a.innerHTML=e.innerHTML,!0===i.naturalSize?(a.width.baseVal.value=t.naturalWidth,a.height.baseVal.value=t.naturalHeight):void 0!==i.width&&void 0!==i.height&&(a.width.baseVal.value=i.width,a.height.baseVal.value=i.height),o.width=a.width.baseVal.value,o.height=a.height.baseVal.value;var s=a.outerHTML,l=o.getContext("2d");!0!==i.markersOnly&&l.drawImage(t,0,0,o.width,o.height);var u=window.URL,c=new Image(o.width,o.height);c.setAttribute("crossOrigin","anonymous");var h=new Blob([s],{type:"image/svg+xml"}),d=u.createObjectURL(h);c.onload=function(){l.drawImage(c,0,0),u.revokeObjectURL(d);var t=o.toDataURL(i.imageType,i.imageQuality);r(t)},c.src=d}))},t}(),kn=function(){},Cn=function(){function t(t){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+t+"_"}return Object.defineProperty(t.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#ffffff",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarColor:"#eeeeee",toolbarHeight:40,toolboxColor:"#eeeeee",toolboxAccentColor:"#3080c3",undoButtonVisible:!0,redoButtonVisible:!1,zoomButtonVisible:!1,zoomOutButtonVisible:!1,clearButtonVisible:!1,resultButtonBlockVisible:!0,logoPosition:"left"}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),t.prototype.addClass=function(t){return void 0===this.styleSheet&&this.addStyleSheet(),t.name=""+this.classNamePrefix+t.localName,this.classes.push(t),this.styleSheet.sheet.insertRule("."+t.name+" {"+t.style+"}",this.styleSheet.sheet.cssRules.length),t},t.prototype.addRule=function(t){void 0===this.styleSheet&&this.addStyleSheet(),this.rules.push(t),this.styleSheet.sheet.insertRule(t.selector+" {"+t.style+"}",this.styleSheet.sheet.cssRules.length)},t.prototype.addStyleSheet=function(){var t;this.styleSheet=document.createElement("style"),(null!==(t=this.styleSheetRoot)&&void 0!==t?t:document.head).appendChild(this.styleSheet),this.addRule(new An("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new An("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames","\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n ")),this.addRule(new An("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames","\n from {\n opacity: 1;\n }\n to {\n opacity: 0;\n }\n ")),this.addClass(new Mn("fade_in","\n animation-duration: 0.3s;\n animation-name: "+this.classNamePrefix+"_fade_in_animation_frames;\n ")),this.addClass(new Mn("fade_out","\n animation-duration: 0.3s;\n animation-name: "+this.classNamePrefix+"_fade_out_animation_frames;\n "))},t.prototype.removeStyleSheet=function(){var t;this.styleSheet&&((null!==(t=this.styleSheetRoot)&&void 0!==t?t:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},t}(),An=function(t,e){this.selector=t,this.style=e},Mn=function(t,e){this.localName=t,this.style=e},En=function(){function t(t,e,n,i,r){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=t,this.displayMode=e,this.markerItems=n,this.uiStyleSettings=i,this.styles=r,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return t.prototype.show=function(t){var e=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=t,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var n=document.createElement("div");n.className=this.toolbarBlockStyleClass.name,n.style.whiteSpace="nowrap",this.uiContainer.appendChild(n),this.addActionButton(n,'<svg viewBox="0 0 24 24"><path d="M10.07 14.27a.997.997 0 011.33.48l2.3 4.99 1.8-.85-2.31-4.98c-.24-.5-.02-1.1.48-1.33l.28-.08 2.3-.45L8 5.12V15.9l1.82-1.47.25-.16m3.57 7.7a.99.99 0 01-1.33-.47l-2.18-4.74-2.51 2.02c-.17.14-.38.22-.62.22a1 1 0 01-1-1V3a1 1 0 011-1c.24 0 .47.09.64.23l.01-.01 11.49 9.64a1.001 1.001 0 01-.44 1.75l-3.16.62 2.2 4.73c.26.5.02 1.09-.48 1.32l-3.62 1.69z"/></svg>',"select"),this.addActionButton(n,'<svg viewBox="0 0 24 24"><path d="M9 3v1H4v2h1v13a2 2 0 002 2h10a2 2 0 002-2V6h1V4h-5V3H9M7 6h10v13H7V6m2 2v9h2V8H9m4 0v9h2V8h-2z"/></svg>',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(n,'<svg viewBox="0 0 24 24"><path d="M19.36 2.72l1.42 1.42-5.72 5.71c1.07 1.54 1.22 3.39.32 4.59L9.06 8.12c1.2-.9 3.05-.75 4.59.32l5.71-5.72M5.93 17.57c-2.01-2.01-3.24-4.41-3.58-6.65l4.88-2.09 7.44 7.44-2.09 4.88c-2.24-.34-4.64-1.57-6.65-3.58z"/></svg>',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(n,'<svg viewBox="0 0 24 24"><path d="M12.5 8c-2.65 0-5.05 1-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/></svg>',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(n,'<svg viewBox="0 0 24 24"><path d="M18.4 10.6C16.55 9 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8.002 8.002 0 017.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/></svg>',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(n,'<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(n,'<svg viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 009.5 3 6.5 6.5 0 003 9.5 6.5 6.5 0 009.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 5 1.5-1.5-5-5m-6 0C7 14 5 12 5 9.5S7 5 9.5 5 14 7 14 9.5 12 14 9.5 14M7 9h5v1H7V9z"/></svg>',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(n,'<svg viewBox="0 0 24 24"><path d="M18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 002 2h6v-1.87l.13-.13H5V5h7v7h6.13M14 4.5l5.5 5.5H14V4.5m5.13 9.33l2.04 2.04L15.04 22H13v-2.04l6.13-6.13m3.72.36l-.98.98-2.04-2.04.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72z"/></svg>',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach((function(t){var n=document.createElement("div");n.className=""+e.toolbarButtonStyleClass.name,n.setAttribute("data-type-name",t.typeName),n.innerHTML=t.icon,n.addEventListener("click",(function(){e.markerToolbarButtonClicked(n,t)})),e.buttons.push(n),e.markerButtons.push(n)})),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<svg viewBox="0 0 24 24"><path d="M12 16a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2z"/></svg>',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var i=document.createElement("div");i.className=this.toolbarBlockStyleClass.name,i.style.whiteSpace="nowrap",i.style.display=!1!==this.uiStyleSettings.resultButtonBlockVisible?"":"none",this.uiContainer.appendChild(i),this.addActionButton(i,'<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"render"),this.addActionButton(i,'<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},t.prototype.addButtonClickListener=function(t){this.buttonClickListeners.push(t)},t.prototype.removeButtonClickListener=function(t){this.buttonClickListeners.indexOf(t)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(t),1)},t.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},t.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var t=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var e=0;e<this.markerButtons.length;e++)e<t||e===t&&this.markerButtons.length-1===t?this.markerButtonBlock.appendChild(this.markerButtons[e]):(e===t&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[e]))}},t.prototype.overflowButtonClicked=function(){"none"!==this.markerButtonOverflowBlock.style.display?(this.markerButtonOverflowBlock.className=this.markerButtonOverflowBlock.className.replace(this.styles.fadeInAnimationClassName,""),this.markerButtonOverflowBlock.style.display="none"):(this.markerButtonOverflowBlock.className+=" "+this.styles.fadeInAnimationClassName,this.markerButtonOverflowBlock.style.top=this.uiContainer.offsetTop+this.overflowButton.offsetHeight+"px",this.markerButtonOverflowBlock.style.right=this.uiContainer.offsetWidth-this.overflowButton.offsetLeft-this.overflowButton.offsetWidth+2*this.uiContainer.offsetLeft+"px",this.markerButtonOverflowBlock.style.display="inline-block")},t.prototype.resetButtonStyles=function(){var t=this;this.buttons.forEach((function(e){e.className=e.className.replace(t.uiStyleSettings.toolbarButtonStyleColorsClassName?t.uiStyleSettings.toolbarButtonStyleColorsClassName:t.toolbarButtonStyleColorsClass.name,"").trim(),e.className=e.className.replace(t.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?t.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:t.toolbarActiveButtonStyleColorsClass.name,"").trim(),e.className+=" "+(t.uiStyleSettings.toolbarButtonStyleColorsClassName?t.uiStyleSettings.toolbarButtonStyleColorsClassName:t.toolbarButtonStyleColorsClass.name)}))},t.prototype.addActionButton=function(t,e,n){var i=this,r=document.createElement("div");switch(r.className=""+this.toolbarButtonStyleClass.name,r.innerHTML=e,r.setAttribute("data-action",n),r.addEventListener("click",(function(){i.actionToolbarButtonClicked(r,n)})),n){case"select":case"undo":case"redo":r.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":r.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"render":r.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":r.style.fill=this.uiStyleSettings.closeButtonColor}t.appendChild(r),this.buttons.push(r)},t.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new Mn("toolbar","\n width: 100%;\n flex-shrink: 0;\n display: flex;\n flex-direction: row;\n justify-content: space-between; \n height: "+this.uiStyleSettings.toolbarHeight+"px;\n box-sizing: content-box;\n "+("inline"===this.displayMode?"border-top-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+"\n "+("inline"===this.displayMode?"border-top-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+"\n overflow: hidden;\n ")),this.toolbarStyleColorsClass=this.styles.addClass(new Mn("toolbar_colors","\n background-color: "+this.uiStyleSettings.toolbarBackgroundColor+";\n box-shadow: 0px 3px rgba(33, 33, 33, 0.1);\n ")),this.toolbarBlockStyleClass=this.styles.addClass(new Mn("toolbar-block","\n display: inline-block;\n box-sizing: content-box;\n ")),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new Mn("toolbar-overflow-block","\n position: absolute;\n top: "+this.uiStyleSettings.toolbarHeight+"px;\n max-width: "+2*this.uiStyleSettings.toolbarHeight+"px;\n z-index: 10;\n box-sizing: content-box;\n ")),this.toolbarOverflowBlockStyleColorsClass=this.styles.addClass(new Mn("toolbar-overflow-block_colors","\n background-color: "+this.uiStyleSettings.toolbarBackgroundColor+";\n "));var t=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new Mn("toolbar_button","\n display: inline-block;\n width: "+(this.uiStyleSettings.toolbarHeight-2*t)+"px;\n height: "+(this.uiStyleSettings.toolbarHeight-2*t)+"px;\n padding: "+t+"px;\n box-sizing: content-box;\n ")),this.toolbarButtonStyleColorsClass=this.styles.addClass(new Mn("toolbar_button_colors","\n fill: "+this.uiStyleSettings.toolbarColor+";\n ")),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new Mn("toolbar_active_button","\n fill: "+this.uiStyleSettings.toolbarColor+";\n background-color: "+this.uiStyleSettings.toolbarBackgroundHoverColor+"\n ")),this.styles.addRule(new An("."+this.toolbarButtonStyleClass.name+" svg","\n height: "+this.uiStyleSettings.toolbarHeight/2+"px;\n ")),this.styles.addRule(new An("."+this.toolbarButtonStyleColorsClass.name+":hover","\n background-color: "+this.uiStyleSettings.toolbarBackgroundHoverColor+"\n "))},t.prototype.markerToolbarButtonClicked=function(t,e){this.setActiveButton(t),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach((function(t){return t("marker",e)})),this.markerButtonOverflowBlock.style.display="none"},t.prototype.actionToolbarButtonClicked=function(t,e){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach((function(t){return t("action",e)})),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},t.prototype.setActiveButton=function(t){this.resetButtonStyles(),t.className=t.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),t.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},t.prototype.setActiveMarkerButton=function(t){var e=this.markerButtons.find((function(e){return e.getAttribute("data-type-name")===t}));e&&this.setActiveButton(e)},t.prototype.setCurrentMarker=function(t){var e=this;this.currentMarker=t,this.buttons.filter((function(t){return/delete|notes/.test(t.getAttribute("data-action"))})).forEach((function(t){void 0===e.currentMarker?(t.style.fillOpacity="0.4",t.style.pointerEvents="none"):(t.style.fillOpacity="1",t.style.pointerEvents="all")}))},t}(),Ln=function(){function t(t,e,n,i){this.panels=[],this.panelButtons=[],this.markerjsContainer=t,this.displayMode=e,this.uiStyleSettings=n,this.styles=i,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return t.prototype.addStyles=function(){var t;this.toolboxStyleClass=this.styles.addClass(new Mn("toolbox","\n width: 100%;\n flex-shrink: 0;\n display: flex;\n flex-direction: column;\n font-family: sans-serif;\n "+("popup"===this.displayMode?"height:"+2.5*this.uiStyleSettings.toolbarHeight+"px;":"")+"\n box-sizing: content-box;\n "+("popup"===this.displayMode?"background-color: "+this.uiStyleSettings.canvasBackgroundColor+";":"")+"\n "+("inline"===this.displayMode?"border-bottom-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+"\n "+("inline"===this.displayMode?"border-bottom-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+"\n overflow: hidden;\n ")),this.toolboxStyleColorsClass=this.styles.addClass(new Mn("toolbox_colors","\n color: "+this.uiStyleSettings.toolboxColor+";\n "));var e=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Mn("toolbox-button-row","\n display: flex;\n cursor: default;\n box-sizing: content-box;\n ")),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Mn("toolbox-button-row_colors","\n background-color: "+this.uiStyleSettings.toolbarBackgroundColor+";\n ")),this.toolboxPanelRowStyleClass=this.styles.addClass(new Mn("toolbox-panel-row","\n display: flex;\n "+("inline"===this.displayMode?"position: absolute;":"")+"\n "+("inline"===this.displayMode?"bottom: "+this.uiStyleSettings.toolbarHeight+"px;":"")+"\n cursor: default;\n height: "+1.5*this.uiStyleSettings.toolbarHeight+"px;\n "+("inline"===this.displayMode?"width: 100%;":"")+"\n box-sizing: content-box;\n ")),this.toolboxPanelRowStyleColorsClass=this.styles.addClass(new Mn("toolbox-panel-row_colors","\n background-color: "+(null!==(t=this.uiStyleSettings.toolboxBackgroundColor)&&void 0!==t?t:this.uiStyleSettings.toolbarBackgroundHoverColor)+";\n ")),this.toolboxButtonStyleClass=this.styles.addClass(new Mn("toolbox_button","\n display: inline-block;\n width: "+(this.uiStyleSettings.toolbarHeight-2*e)+"px;\n height: "+(this.uiStyleSettings.toolbarHeight-2*e)+"px;\n padding: "+e+"px;\n box-sizing: content-box;\n ")),this.toolboxButtonStyleColorsClass=this.styles.addClass(new Mn("toolbox-button_colors","\n fill: "+this.uiStyleSettings.toolbarColor+";\n ")),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Mn("toolbox-active-button_colors","\n background-color: "+this.uiStyleSettings.toolbarBackgroundHoverColor+";\n fill: "+this.uiStyleSettings.toolbarColor+";\n ")),this.styles.addRule(new An("."+this.toolboxButtonStyleColorsClass.name+":hover","\n background-color: "+this.uiStyleSettings.toolbarBackgroundHoverColor+"\n ")),this.styles.addRule(new An("."+this.toolboxButtonStyleClass.name+" svg","\n height: "+this.uiStyleSettings.toolbarHeight/2+"px;\n "))},t.prototype.show=function(t){var e;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=t,this.uiContainer.className=this.toolboxStyleClass.name+" "+(null!==(e=this.uiStyleSettings.toolboxStyleColorsClassName)&&void 0!==e?e:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},t.prototype.setPanelButtons=function(t){var e,n,i=this;this.panels=t,void 0!==this.uiContainer&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+(null!==(e=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)&&void 0!==e?e:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+(null!==(n=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)&&void 0!==n?n:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach((function(t){var e;t.uiStyleSettings=i.uiStyleSettings;var n=document.createElement("div");n.className=i.toolboxButtonStyleClass.name+" "+(null!==(e=i.uiStyleSettings.toolboxButtonStyleColorsClassName)&&void 0!==e?e:i.toolboxButtonStyleColorsClass.name),n.innerHTML=t.icon,n.title=t.title,n.addEventListener("click",(function(){i.panelButtonClick(t)})),i.panelButtons.push(n),i.buttonRow.appendChild(n)})),"inline"===this.displayMode?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},t.prototype.panelButtonClick=function(t){var e=this,n=-1;if(t!==this.activePanel){n=this.panels.indexOf(t),this.panelRow.innerHTML="";var i=t.getUi();i.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(i),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=t}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout((function(){"inline"===e.displayMode?e.panelRow.style.display="none":e.panelRow.style.visibility="hidden"}),200);this.panelButtons.forEach((function(t,i){var r,o;t.className=e.toolboxButtonStyleClass.name+" "+(i===n?""+(null!==(r=e.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)&&void 0!==r?r:e.toolboxActiveButtonStyleColorsClass.name):""+(null!==(o=e.uiStyleSettings.toolboxButtonStyleColorsClassName)&&void 0!==o?o:e.toolboxButtonStyleColorsClass.name))}))},t}(),Tn=function(t,e){this.title=t,this.icon=e},Nn=function(t){function e(e,n,i,r){var o=t.call(this,e,r||'<svg viewBox="0 0 24 24"><path d="M17.5 12a1.5 1.5 0 01-1.5-1.5A1.5 1.5 0 0117.5 9a1.5 1.5 0 011.5 1.5 1.5 1.5 0 01-1.5 1.5m-3-4A1.5 1.5 0 0113 6.5 1.5 1.5 0 0114.5 5 1.5 1.5 0 0116 6.5 1.5 1.5 0 0114.5 8m-5 0A1.5 1.5 0 018 6.5 1.5 1.5 0 019.5 5 1.5 1.5 0 0111 6.5 1.5 1.5 0 019.5 8m-3 4A1.5 1.5 0 015 10.5 1.5 1.5 0 016.5 9 1.5 1.5 0 018 10.5 1.5 1.5 0 016.5 12M12 3a9 9 0 00-9 9 9 9 0 009 9 1.5 1.5 0 001.5-1.5c0-.39-.15-.74-.39-1-.23-.27-.38-.62-.38-1a1.5 1.5 0 011.5-1.5H16a5 5 0 005-5c0-4.42-4.03-8-9-8z"/></svg>')||this;return o.colors=[],o.addTransparent=!1,o.colorBoxes=[],o.colors=n,o.currentColor=i,o.setCurrentColor=o.setCurrentColor.bind(o),o.getColorBox=o.getColorBox.bind(o),o}return vn(e,t),e.prototype.getUi=function(){var t=this,e=document.createElement("div");return e.style.overflow="hidden",e.style.whiteSpace="nowrap",this.colors.forEach((function(n){var i=t.getColorBox(n);e.appendChild(i),t.colorBoxes.push(i)})),e},e.prototype.getColorBox=function(t){var e=this,n=this.uiStyleSettings.toolbarHeight/4,i=this.uiStyleSettings.toolbarHeight-n,r=document.createElement("div");r.style.display="inline-block",r.style.boxSizing="content-box",r.style.width=i-2+"px",r.style.height=i-2+"px",r.style.padding="1px",r.style.marginRight="2px",r.style.marginBottom="2px",r.style.borderWidth="2px",r.style.borderStyle="solid",r.style.borderRadius=(i+2)/2+"px",r.style.borderColor=t===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",r.addEventListener("click",(function(){e.setCurrentColor(t,r)}));var o=document.createElement("div");return o.style.display="inline-block",o.style.width=i-2+"px",o.style.height=i-2+"px",o.style.backgroundColor=t,o.style.borderRadius=i/2+"px","transparent"===t&&(o.style.fill=this.uiStyleSettings.toolboxAccentColor,o.innerHTML='<svg viewBox="0 0 24 24">\n <path d="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z" />\n </svg>'),r.appendChild(o),r},e.prototype.setCurrentColor=function(t,e){var n=this;this.currentColor=t,this.colorBoxes.forEach((function(t){t.style.borderColor=t===e?n.uiStyleSettings.toolboxAccentColor:"transparent"})),this.onColorChanged&&this.onColorChanged(t)},e}(Tn),jn=function(){function t(t,e,n){this._state="new",this._isSelected=!1,this._container=t,this._overlayContainer=e,this.globalSettings=n,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(t.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),t.prototype.ownsTarget=function(t){return!1},Object.defineProperty(t.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),t.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},t.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},t.prototype.pointerDown=function(t,e){},t.prototype.dblClick=function(t,e){},t.prototype.manipulate=function(t){},t.prototype.pointerUp=function(t){this.stateChanged()},t.prototype.dispose=function(){},t.prototype.addMarkerVisualToContainer=function(t){this.container.childNodes.length>0?this.container.insertBefore(t,this.container.childNodes[0]):this.container.appendChild(t)},t.prototype.getState=function(){return{typeName:t.typeName,state:this.state,notes:this.notes}},t.prototype.restoreState=function(t){this._state=t.state,this.notes=t.notes},t.prototype.scale=function(t,e){},t.prototype.colorChanged=function(t){this.onColorChanged&&this.onColorChanged(t),this.stateChanged()},t.prototype.fillColorChanged=function(t){this.onFillColorChanged&&this.onFillColorChanged(t),this.stateChanged()},t.prototype.stateChanged=function(){if(this.onStateChanged&&"creating"!==this.state&&"new"!==this.state){var t=this.getState();void 0!==this.manipulationStartState&&(this.manipulationStartState.state="select"),t.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(t)&&this.onStateChanged(this)}},t.typeName="MarkerBase",t}(),In=function(){function t(){this.findGripByVisual=this.findGripByVisual.bind(this)}return t.prototype.findGripByVisual=function(t){return this.topLeft.ownsTarget(t)?this.topLeft:this.topCenter.ownsTarget(t)?this.topCenter:this.topRight.ownsTarget(t)?this.topRight:this.centerLeft.ownsTarget(t)?this.centerLeft:this.centerRight.ownsTarget(t)?this.centerRight:this.bottomLeft.ownsTarget(t)?this.bottomLeft:this.bottomCenter.ownsTarget(t)?this.bottomCenter:this.bottomRight.ownsTarget(t)?this.bottomRight:void 0},t}(),Bn=function(){function t(){this.GRIP_SIZE=10,this.visual=xn.createGroup(),this.visual.appendChild(xn.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(xn.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return t.prototype.ownsTarget=function(t){return t===this.visual||t===this.visual.childNodes[0]||t===this.visual.childNodes[1]},t}(),On=function(){function t(){}return t.toITransformMatrix=function(t){return{a:t.a,b:t.b,c:t.c,d:t.d,e:t.e,f:t.f}},t.toSVGMatrix=function(t,e){return t.a=e.a,t.b=e.b,t.c=e.c,t.d=e.d,t.e=e.e,t.f=e.f,t},t}(),Dn=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return r.left=0,r.top=0,r.width=0,r.height=0,r.defaultSize={x:50,y:20},r.offsetX=0,r.offsetY=0,r.rotationAngle=0,r.CB_DISTANCE=10,r._suppressMarkerCreateEvent=!1,r.container.transform.baseVal.appendItem(xn.createTransform()),r.setupControlBox(),r}return vn(e,t),Object.defineProperty(e.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"visual",{get:function(){return this._visual},set:function(t){this._visual=t;var e=xn.createTransform();this._visual.transform.baseVal.appendItem(e)},enumerable:!1,configurable:!0}),e.prototype.ownsTarget=function(e){return!!t.prototype.ownsTarget.call(this,e)||!!(void 0!==this.controlGrips.findGripByVisual(e)||void 0!==this.rotatorGrip&&this.rotatorGrip.ownsTarget(e))},e.prototype.pointerDown=function(e,n){t.prototype.pointerDown.call(this,e,n),"new"===this.state&&(this.left=e.x,this.top=e.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var i=this.unrotatePoint(e);if(this.manipulationStartX=i.x,this.manipulationStartY=i.y,this.offsetX=i.x-this.left,this.offsetY=i.y-this.top,"new"!==this.state)if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(n),void 0!==this.activeGrip)this._state="resize";else if(void 0!==this.rotatorGrip&&this.rotatorGrip.ownsTarget(n)){this.activeGrip=this.rotatorGrip;var r=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=r.x-this.width/2,this.top=r.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var o=this.container.transform.baseVal.getItem(0);o.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(o,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},e.prototype.pointerUp=function(e){var n=this.state;t.prototype.pointerUp.call(this,e),"creating"===this.state&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(e),this._state="select","creating"===n&&this.onMarkerCreated&&!1===this._suppressMarkerCreateEvent&&this.onMarkerCreated(this)},e.prototype.moveVisual=function(t){this.visual.style.transform="translate("+t.x+"px, "+t.y+"px)"},e.prototype.manipulate=function(t){var e=this.unrotatePoint(t);"creating"===this.state?this.resize(t):"move"===this.state?(this.left=this.manipulationStartLeft+(e.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(e.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):"resize"===this.state?this.resize(e):"rotate"===this.state&&this.rotate(t)},e.prototype.resize=function(t){var e=this.manipulationStartLeft,n=this.manipulationStartWidth,i=this.manipulationStartTop,r=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:e=this.manipulationStartLeft+t.x-this.manipulationStartX,n=this.manipulationStartWidth+this.manipulationStartLeft-e;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:n=this.manipulationStartWidth+t.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:i=this.manipulationStartTop+t.y-this.manipulationStartY,r=this.manipulationStartHeight+this.manipulationStartTop-i;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:r=this.manipulationStartHeight+t.y-this.manipulationStartY}n>=0?(this.left=e,this.width=n):(this.left=e+n,this.width=-n),r>=0?(this.top=i,this.height=r):(this.top=i+r,this.height=-r),this.setSize()},e.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},e.prototype.rotate=function(t){if(Math.abs(t.x-this.centerX)>.1){var e=Math.sign(t.x-this.centerX);this.rotationAngle=180*Math.atan((t.y-this.centerY)/(t.x-this.centerX))/Math.PI+90*e,this.applyRotation()}},e.prototype.applyRotation=function(){var t=this.container.transform.baseVal.getItem(0);t.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(t,0)},e.prototype.rotatePoint=function(t){if(0===this.rotationAngle)return t;var e=this.container.getCTM(),n=xn.createPoint(t.x,t.y);return{x:(n=n.matrixTransform(e)).x,y:n.y}},e.prototype.unrotatePoint=function(t){if(0===this.rotationAngle)return t;var e=this.container.getCTM();e=e.inverse();var n=xn.createPoint(t.x,t.y);return{x:(n=n.matrixTransform(e)).x,y:n.y}},e.prototype.select=function(){t.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},e.prototype.deselect=function(){t.prototype.deselect.call(this),this.controlBox.style.display="none"},e.prototype.setupControlBox=function(){this.controlBox=xn.createGroup();var t=xn.createTransform();t.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(t),this.container.appendChild(this.controlBox),this.controlRect=xn.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),!0!==this.globalSettings.disableRotation&&(this.rotatorGripLine=xn.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new In,this.addControlGrips(),this.controlBox.style.display="none"},e.prototype.adjustControlBox=function(){var t=this.controlBox.transform.baseVal.getItem(0);t.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(t,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),void 0!==this.rotatorGripLine&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},e.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),!0!==this.globalSettings.disableRotation&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},e.prototype.createGrip=function(){var t=new Bn;return t.visual.transform.baseVal.appendItem(xn.createTransform()),this.controlBox.appendChild(t.visual),t},e.prototype.positionGrips=function(){var t=this.controlGrips.topLeft.GRIP_SIZE,e=-t/2,n=e,i=(this.width+this.CB_DISTANCE)/2-t/2,r=(this.height+this.CB_DISTANCE)/2-t/2,o=this.height+this.CB_DISTANCE-t/2,a=this.width+this.CB_DISTANCE-t/2;this.positionGrip(this.controlGrips.topLeft.visual,e,n),this.positionGrip(this.controlGrips.topCenter.visual,i,n),this.positionGrip(this.controlGrips.topRight.visual,a,n),this.positionGrip(this.controlGrips.centerLeft.visual,e,r),this.positionGrip(this.controlGrips.centerRight.visual,a,r),this.positionGrip(this.controlGrips.bottomLeft.visual,e,o),this.positionGrip(this.controlGrips.bottomCenter.visual,i,o),this.positionGrip(this.controlGrips.bottomRight.visual,a,o),void 0!==this.rotatorGrip&&this.positionGrip(this.rotatorGrip.visual,i,n-3*this.CB_DISTANCE)},e.prototype.positionGrip=function(t,e,n){var i=t.transform.baseVal.getItem(0);i.setTranslate(e,n),t.transform.baseVal.replaceItem(i,0)},e.prototype.hideControlBox=function(){this.controlBox.style.display="none"},e.prototype.showControlBox=function(){this.controlBox.style.display=""},e.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:On.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:On.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},t.prototype.getState.call(this))},e.prototype.restoreState=function(e){t.prototype.restoreState.call(this,e);var n=e;this.left=n.left,this.top=n.top,this.width=n.width,this.height=n.height,this.rotationAngle=n.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(On.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,n.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(On.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,n.containerTransformMatrix))},e.prototype.scale=function(e,n){t.prototype.scale.call(this,e,n);var i=this.rotatePoint({x:this.left,y:this.top}),r=this.unrotatePoint({x:i.x*e,y:i.y*n});this.left=r.x,this.top=r.y,this.width=this.width*e,this.height=this.height*n,this.adjustControlBox()},e}(jn),Rn=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return r.fillColor="transparent",r.strokeColor="transparent",r.strokeWidth=0,r.strokeDasharray="",r.opacity=1,r.setStrokeColor=r.setStrokeColor.bind(r),r.setFillColor=r.setFillColor.bind(r),r.setStrokeWidth=r.setStrokeWidth.bind(r),r.setStrokeDasharray=r.setStrokeDasharray.bind(r),r.createVisual=r.createVisual.bind(r),r}return vn(e,t),e.prototype.ownsTarget=function(e){return!(!t.prototype.ownsTarget.call(this,e)&&e!==this.visual)},e.prototype.createVisual=function(){this.visual=xn.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},e.prototype.pointerDown=function(e,n){t.prototype.pointerDown.call(this,e,n),"new"===this.state&&(this.createVisual(),this.moveVisual(e),this._state="creating")},e.prototype.manipulate=function(e){t.prototype.manipulate.call(this,e)},e.prototype.resize=function(e){t.prototype.resize.call(this,e),this.setSize()},e.prototype.setSize=function(){t.prototype.setSize.call(this),xn.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},e.prototype.pointerUp=function(e){t.prototype.pointerUp.call(this,e),this.setSize()},e.prototype.setStrokeColor=function(t){this.strokeColor=t,this.visual&&xn.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(t),this.stateChanged()},e.prototype.setFillColor=function(t){this.fillColor=t,this.visual&&xn.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},e.prototype.setStrokeWidth=function(t){this.strokeWidth=t,this.visual&&xn.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},e.prototype.setStrokeDasharray=function(t){this.strokeDasharray=t,this.visual&&xn.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},e.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},t.prototype.getState.call(this))},e.prototype.restoreState=function(e){var n=e;this.fillColor=n.fillColor,this.strokeColor=n.strokeColor,this.strokeWidth=n.strokeWidth,this.strokeDasharray=n.strokeDasharray,this.opacity=n.opacity,this.createVisual(),t.prototype.restoreState.call(this,e),this.setSize()},e.prototype.scale=function(e,n){t.prototype.scale.call(this,e,n),this.setSize()},e.title="Rectangle marker",e}(Dn),Fn=function(t){function e(e,n,i,r){var o=t.call(this,e,r||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return o.widths=[],o.widthBoxes=[],o.widths=n,o.currentWidth=i,o.setCurrentWidth=o.setCurrentWidth.bind(o),o}return vn(e,t),e.prototype.getUi=function(){var t=this,e=document.createElement("div");return e.style.display="flex",e.style.overflow="hidden",e.style.flexGrow="2",this.widths.forEach((function(n){var i=document.createElement("div");i.style.display="flex",i.style.flexGrow="2",i.style.alignItems="center",i.style.justifyContent="space-between",i.style.padding="5px",i.style.borderWidth="2px",i.style.borderStyle="solid",i.style.borderColor=n===t.currentWidth?t.uiStyleSettings.toolboxAccentColor:"transparent",i.addEventListener("click",(function(){t.setCurrentWidth(n,i)})),e.appendChild(i);var r=document.createElement("div");r.innerText=n.toString(),r.style.marginRight="5px",i.appendChild(r);var o=document.createElement("div");o.style.minHeight="20px",o.style.flexGrow="2",o.style.display="flex",o.style.alignItems="center";var a=document.createElement("hr");a.style.minWidth="20px",a.style.border="0px",a.style.borderTop=n+"px solid "+t.uiStyleSettings.toolboxColor,a.style.flexGrow="2",o.appendChild(a),i.appendChild(o),t.widthBoxes.push(i)})),e},e.prototype.setCurrentWidth=function(t,e){var n=this;this.currentWidth=t,this.widthBoxes.forEach((function(t){t.style.borderColor=t===e?n.uiStyleSettings.toolboxAccentColor:"transparent"})),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},e}(Tn),zn=function(t){function e(e,n,i,r){var o=t.call(this,e,r||'<svg viewBox="0 0 24 24"><path d="M3 16h5v-2H3v2m6.5 0h5v-2h-5v2m6.5 0h5v-2h-5v2M3 20h2v-2H3v2m4 0h2v-2H7v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2M3 12h8v-2H3v2m10 0h8v-2h-8v2M3 4v4h18V4H3z"/></svg>')||this;return o.styles=[],o.styleBoxes=[],o.styles=n,o.currentStyle=i,o.setCurrentStyle=o.setCurrentStyle.bind(o),o}return vn(e,t),e.prototype.getUi=function(){var t=this,e=document.createElement("div");return e.style.display="flex",e.style.overflow="hidden",e.style.flexGrow="2",this.styles.forEach((function(n){var i=document.createElement("div");i.style.display="flex",i.style.alignItems="center",i.style.justifyContent="space-between",i.style.padding="5px",i.style.borderWidth="2px",i.style.borderStyle="solid",i.style.overflow="hidden",i.style.maxWidth=100/t.styles.length-5+"%",i.style.borderColor=n===t.currentStyle?t.uiStyleSettings.toolboxAccentColor:"transparent",i.addEventListener("click",(function(){t.setCurrentStyle(n,i)})),e.appendChild(i);var r=document.createElement("div");r.style.minHeight="20px",r.style.flexGrow="2",r.style.overflow="hidden";var o='<svg width="100" height="20">\n <line x1="0" y1="10" x2="100" y2="10" stroke="'+t.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(""!==n?'stroke-dasharray="'+n+'"':"")+" />\n </svg>";r.innerHTML=o,i.appendChild(r),t.styleBoxes.push(i)})),e},e.prototype.setCurrentStyle=function(t,e){var n=this;this.currentStyle=t,this.styleBoxes.forEach((function(t){t.style.borderColor=t===e?n.uiStyleSettings.toolboxAccentColor:"transparent"})),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},e}(Tn),Gn=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return r.strokeColor=i.defaultColor,r.strokeWidth=i.defaultStrokeWidth,r.strokeDasharray=i.defaultStrokeDasharray,r.strokePanel=new Nn("Line color",i.defaultColorSet,i.defaultColor),r.strokePanel.onColorChanged=r.setStrokeColor,r.strokeWidthPanel=new Fn("Line width",i.defaultStrokeWidths,i.defaultStrokeWidth),r.strokeWidthPanel.onWidthChanged=r.setStrokeWidth,r.strokeStylePanel=new zn("Line style",i.defaultStrokeDasharrays,i.defaultStrokeDasharray),r.strokeStylePanel.onStyleChanged=r.setStrokeDasharray,r}return vn(e,t),Object.defineProperty(e.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),e.prototype.getState=function(){var n=t.prototype.getState.call(this);return n.typeName=e.typeName,n},e.typeName="FrameMarker",e.title="Frame marker",e.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',e}(Rn),Un=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1,this.defaultCaptionFontSize="1rem",this.defaultCaptionText="Text"},Hn=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return r.x1=0,r.y1=0,r.x2=0,r.y2=0,r.defaultLength=50,r.manipulationStartX=0,r.manipulationStartY=0,r.manipulationStartX1=0,r.manipulationStartY1=0,r.manipulationStartX2=0,r.manipulationStartY2=0,r.setupControlBox(),r}return vn(e,t),e.prototype.ownsTarget=function(e){return!!t.prototype.ownsTarget.call(this,e)||!(!this.grip1.ownsTarget(e)&&!this.grip2.ownsTarget(e))},e.prototype.pointerDown=function(e,n){t.prototype.pointerDown.call(this,e,n),this.manipulationStartX=e.x,this.manipulationStartY=e.y,"new"===this.state&&(this.x1=e.x,this.y1=e.y,this.x2=e.x,this.y2=e.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,"new"!==this.state&&(this.select(),this.grip1.ownsTarget(n)?this.activeGrip=this.grip1:this.grip2.ownsTarget(n)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},e.prototype.pointerUp=function(e){var n=this.state;t.prototype.pointerUp.call(this,e),"creating"===this.state&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(e),this._state="select","creating"===n&&this.onMarkerCreated&&this.onMarkerCreated(this)},e.prototype.adjustVisual=function(){},e.prototype.manipulate=function(t){"creating"===this.state?this.resize(t):"move"===this.state?(this.x1=this.manipulationStartX1+t.x-this.manipulationStartX,this.y1=this.manipulationStartY1+t.y-this.manipulationStartY,this.x2=this.manipulationStartX2+t.x-this.manipulationStartX,this.y2=this.manipulationStartY2+t.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):"resize"===this.state&&this.resize(t)},e.prototype.resize=function(t){switch(this.activeGrip){case this.grip1:this.x1=t.x,this.y1=t.y;break;case this.grip2:case void 0:this.x2=t.x,this.y2=t.y}this.adjustVisual(),this.adjustControlBox()},e.prototype.select=function(){t.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},e.prototype.deselect=function(){t.prototype.deselect.call(this),this.controlBox.style.display="none"},e.prototype.setupControlBox=function(){this.controlBox=xn.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},e.prototype.adjustControlBox=function(){this.positionGrips()},e.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},e.prototype.createGrip=function(){var t=new Bn;return t.visual.transform.baseVal.appendItem(xn.createTransform()),this.controlBox.appendChild(t.visual),t},e.prototype.positionGrips=function(){var t=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-t/2,this.y1-t/2),this.positionGrip(this.grip2.visual,this.x2-t/2,this.y2-t/2)},e.prototype.positionGrip=function(t,e,n){var i=t.transform.baseVal.getItem(0);i.setTranslate(e,n),t.transform.baseVal.replaceItem(i,0)},e.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},t.prototype.getState.call(this))},e.prototype.restoreState=function(e){t.prototype.restoreState.call(this,e);var n=e;this.x1=n.x1,this.y1=n.y1,this.x2=n.x2,this.y2=n.y2},e.prototype.scale=function(e,n){t.prototype.scale.call(this,e,n),this.x1=this.x1*e,this.y1=this.y1*n,this.x2=this.x2*e,this.y2=this.y2*n,this.adjustVisual(),this.adjustControlBox()},e}(jn),_n=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return r.strokeColor="transparent",r.strokeWidth=0,r.strokeDasharray="",r.setStrokeColor=r.setStrokeColor.bind(r),r.setStrokeWidth=r.setStrokeWidth.bind(r),r.setStrokeDasharray=r.setStrokeDasharray.bind(r),r.strokeColor=i.defaultColor,r.strokeWidth=i.defaultStrokeWidth,r.strokeDasharray=i.defaultStrokeDasharray,r.strokePanel=new Nn("Line color",i.defaultColorSet,i.defaultColor),r.strokePanel.onColorChanged=r.setStrokeColor,r.strokeWidthPanel=new Fn("Line width",i.defaultStrokeWidths,i.defaultStrokeWidth),r.strokeWidthPanel.onWidthChanged=r.setStrokeWidth,r.strokeStylePanel=new zn("Line style",i.defaultStrokeDasharrays,i.defaultStrokeDasharray),r.strokeStylePanel.onStyleChanged=r.setStrokeDasharray,r}return vn(e,t),e.prototype.ownsTarget=function(e){return!(!t.prototype.ownsTarget.call(this,e)&&e!==this.visual&&e!==this.selectorLine&&e!==this.visibleLine)},e.prototype.createVisual=function(){this.visual=xn.createGroup(),this.selectorLine=xn.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=xn.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},e.prototype.pointerDown=function(e,n){t.prototype.pointerDown.call(this,e,n),"new"===this.state&&(this.createVisual(),this.adjustVisual(),this._state="creating")},e.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),xn.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),xn.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),xn.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},e.prototype.setStrokeColor=function(t){this.strokeColor=t,this.adjustVisual(),this.colorChanged(t)},e.prototype.setStrokeWidth=function(t){this.strokeWidth=t,this.adjustVisual()},e.prototype.setStrokeDasharray=function(t){this.strokeDasharray=t,this.adjustVisual(),this.stateChanged()},Object.defineProperty(e.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),e.prototype.getState=function(){var n=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},t.prototype.getState.call(this));return n.typeName=e.typeName,n},e.prototype.restoreState=function(e){t.prototype.restoreState.call(this,e);var n=e;this.strokeColor=n.strokeColor,this.strokeWidth=n.strokeWidth,this.strokeDasharray=n.strokeDasharray,this.createVisual(),this.adjustVisual()},e.typeName="LineMarker",e.title="Line marker",e.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',e}(Hn),Zn=function(t){function e(e,n,i,r){var o=t.call(this,e,r||'<svg viewBox="0 0 24 24"><path d="M17 8h3v12h1v1h-4v-1h1v-3h-4l-1.5 3H14v1h-4v-1h1l6-12m1 1l-3.5 7H18V9M5 3h5c1.11 0 2 .89 2 2v11H9v-5H6v5H3V5c0-1.11.89-2 2-2m1 2v4h3V5H6z"/></svg>')||this;return o.fonts=[],o.fontBoxes=[],o.fonts=n,o.currentFont=i,o.setCurrentFont=o.setCurrentFont.bind(o),o}return vn(e,t),e.prototype.getUi=function(){var t=this,e=document.createElement("div");return e.style.overflow="hidden",e.style.flexGrow="2",this.fonts.forEach((function(n){var i=document.createElement("div");i.style.display="inline-block",i.style.alignItems="center",i.style.justifyContent="space-between",i.style.padding="5px",i.style.borderWidth="2px",i.style.borderStyle="solid",i.style.overflow="hidden",i.style.maxWidth=100/t.fonts.length-5+"%",i.style.borderColor=n===t.currentFont?t.uiStyleSettings.toolboxAccentColor:"transparent",i.addEventListener("click",(function(){t.setCurrentFont(n,i)})),e.appendChild(i);var r=document.createElement("div");r.style.display="flex",r.style.minHeight="20px",r.style.flexGrow="2",r.style.fontFamily=n,r.style.overflow="hidden";var o=document.createElement("div");o.style.whiteSpace="nowrap",o.style.overflow="hidden",o.style.textOverflow="ellipsis",o.innerHTML="The quick brown fox jumps over the lazy dog",r.appendChild(o),i.appendChild(r),t.fontBoxes.push(i)})),e},e.prototype.setCurrentFont=function(t,e){var n=this;this.currentFont=t,this.fontBoxes.forEach((function(t){t.style.borderColor=t===e?n.uiStyleSettings.toolboxAccentColor:"transparent"})),this.onFontChanged&&this.onFontChanged(this.currentFont)},e}(Tn),Wn=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return r.color="transparent",r.padding=5,r.DEFAULT_TEXT="请输入文本",r.text=r.DEFAULT_TEXT,r.isMoved=!1,r.color=i.defaultColor,r.fontFamily=i.defaultFontFamily,r.defaultSize={x:100,y:30},r.setColor=r.setColor.bind(r),r.setFont=r.setFont.bind(r),r.renderText=r.renderText.bind(r),r.sizeText=r.sizeText.bind(r),r.textEditDivClicked=r.textEditDivClicked.bind(r),r.showTextEditor=r.showTextEditor.bind(r),r.setSize=r.setSize.bind(r),r.positionTextEditor=r.positionTextEditor.bind(r),r.colorPanel=new Nn("Color",i.defaultColorSet,i.defaultColor),r.colorPanel.onColorChanged=r.setColor,r.fontFamilyPanel=new Zn("Font",i.defaultFontFamilies,i.defaultFontFamily),r.fontFamilyPanel.onFontChanged=r.setFont,r}return vn(e,t),e.prototype.ownsTarget=function(e){if(t.prototype.ownsTarget.call(this,e)||e===this.visual||e===this.textElement||e===this.bgRectangle)return!0;var n=!1;return this.textElement.childNodes.forEach((function(t){t===e&&(n=!0)})),n},e.prototype.createVisual=function(){this.visual=xn.createGroup(),this.bgRectangle=xn.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=xn.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(xn.createTransform()),this.textElement.transform.baseVal.appendItem(xn.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},e.prototype.pointerDown=function(e,n){t.prototype.pointerDown.call(this,e,n),this.isMoved=!1,this.pointerDownPoint=e,this.pointerDownTimestamp=Date.now(),"new"===this.state&&(this.createVisual(),this.moveVisual(e),this._state="creating")},e.prototype.renderText=function(){var t=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach((function(e){t.textElement.appendChild(xn.createTSpan(""===e.trim()?" ":e.trim(),[["x","0"],["dy","1.2em"]]))})),setTimeout(this.sizeText,10)}},e.prototype.getTextScale=function(){var t=this.textElement.getBBox(),e=1;if(t.width>0&&t.height>0){var n=(1*this.width-this.width*this.padding*2/100)/t.width,i=(1*this.height-this.height*this.padding*2/100)/t.height;e=Math.min(n,i)}return e},e.prototype.getTextPosition=function(t){var e=this.textElement.getBBox(),n=0,i=0;return e.width>0&&e.height>0&&(n=(this.width-e.width*t)/2,i=this.height/2-e.height*t/2),{x:n,y:i}},e.prototype.sizeText=function(){var t=this.textElement.getBBox(),e=this.getTextScale(),n=this.getTextPosition(e);n.y-=t.y*e,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+n.x+"px, "+n.y+"px) scale("+e+", "+e+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(n.x,n.y),this.textElement.transform.baseVal.getItem(1).setScale(e,e))},e.prototype.manipulate=function(e){t.prototype.manipulate.call(this,e),void 0!==this.pointerDownPoint&&(this.isMoved=Math.abs(e.x-this.pointerDownPoint.x)>5||Math.abs(e.y-this.pointerDownPoint.y)>5)},e.prototype.resize=function(e){t.prototype.resize.call(this,e),this.isMoved=!0,this.setSize(),this.sizeText()},e.prototype.setSize=function(){t.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(xn.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),xn.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},e.prototype.pointerUp=function(e){var n=this.state;"creating"===n&&(this._suppressMarkerCreateEvent=!0),t.prototype.pointerUp.call(this,e),this.setSize(),("creating"===n||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},e.prototype.showTextEditor=function(){var t=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",(function(t){t.stopPropagation()})),this.textEditor.addEventListener("input",(function(){for(var e=Number.parseFloat(t.textEditor.style.fontSize);t.textEditor.clientWidth>=Number.parseInt(t.textEditor.style.maxWidth)&&e>.9;)e-=.1,t.textEditor.style.fontSize=Math.max(e,.9)+"em"})),this.textEditor.addEventListener("keyup",(function(t){t.cancelBubble=!0})),this.textEditor.addEventListener("paste",(function(t){if(t.clipboardData){var e=t.clipboardData.getData("text"),n=window.getSelection();if(!n.rangeCount)return!1;n.deleteFromDocument(),n.getRangeAt(0).insertNode(document.createTextNode(e)),t.preventDefault()}})),this.textEditDiv.addEventListener("pointerup",(function(){t.textEditDivClicked(t.textEditor.innerText)})),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},e.prototype.positionTextEditor=function(){if("edit"===this.state)if(void 0===this.textEditor)this.showTextEditor();else{this.textElement.style.display="";var t=this.getTextScale(),e=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),n=this.textElement.getBBox(),i={x:n.width*t,y:n.height*t};e.x-=i.x/2,e.y-=i.y/2,this.textEditor.style.top=e.y+"px",this.textEditor.style.left=e.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-e.x+"px",this.textEditor.style.fontSize=Math.max(16*t,12)+"px",this.textElement.style.display="none"}},e.prototype.textEditDivClicked=function(t){this.text=t.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},e.prototype.select=function(){t.prototype.select.call(this),"edit"===this.state&&this.textEditDivClicked(this.textEditor.innerText)},e.prototype.deselect=function(){"edit"===this.state&&this.textEditDivClicked(this.textEditor.innerText),t.prototype.deselect.call(this)},e.prototype.dblClick=function(e,n){t.prototype.dblClick.call(this,e,n),this.showTextEditor()},e.prototype.setColor=function(t){this.textElement&&xn.setAttributes(this.textElement,[["fill",t]]),this.color=t,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(t)},e.prototype.setFont=function(t){this.textElement&&xn.setAttributes(this.textElement,[["font-family",t]]),this.fontFamily=t,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},e.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},e.prototype.showVisual=function(){"edit"===this.state&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(e.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),e.prototype.getState=function(){var n=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},t.prototype.getState.call(this));return n.typeName=e.typeName,n},e.prototype.restoreState=function(e){var n=e;this.color=n.color,this.fontFamily=n.fontFamily,this.padding=n.padding,this.text=n.text,this.createVisual(),t.prototype.restoreState.call(this,e),this.setSize()},e.prototype.scale=function(e,n){t.prototype.scale.call(this,e,n),this.setSize(),this.sizeText(),this.positionTextEditor()},e.typeName="TextMarker",e.title="Text marker",e.icon='<svg viewBox="0 0 24 24"><path d="M9.6 14L12 7.7l2.4 6.3M11 5L5.5 19h2.2l1.1-3H15l1.1 3h2.2L13 5h-2z"/></svg>',e}(Dn),Vn=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return r.color="transparent",r.lineWidth=3,r.drawing=!1,r.pixelRatio=1,r.color=i.defaultColor,r.lineWidth=i.defaultStrokeWidth,r.pixelRatio=i.freehandPixelRatio,r.setColor=r.setColor.bind(r),r.addCanvas=r.addCanvas.bind(r),r.finishCreation=r.finishCreation.bind(r),r.setLineWidth=r.setLineWidth.bind(r),r.colorPanel=new Nn("Color",i.defaultColorSet,i.defaultColor),r.colorPanel.onColorChanged=r.setColor,r.lineWidthPanel=new Fn("Line width",i.defaultStrokeWidths,i.defaultStrokeWidth),r.lineWidthPanel.onWidthChanged=r.setLineWidth,r}return vn(e,t),e.prototype.ownsTarget=function(e){return!(!t.prototype.ownsTarget.call(this,e)&&e!==this.visual&&e!==this.drawingImage)},e.prototype.createVisual=function(){this.visual=xn.createGroup(),this.drawingImage=xn.createImage(),this.visual.appendChild(this.drawingImage);var t=xn.createTransform();this.visual.transform.baseVal.appendItem(t),this.addMarkerVisualToContainer(this.visual)},e.prototype.pointerDown=function(e,n){"new"===this.state&&(this.addCanvas(),this.createVisual(),this._state="creating"),"creating"===this.state?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(e.x,e.y),this.drawing=!0):t.prototype.pointerDown.call(this,e,n)},e.prototype.manipulate=function(e){"creating"===this.state?this.drawing&&(this.canvasContext.lineTo(e.x,e.y),this.canvasContext.stroke()):t.prototype.manipulate.call(this,e)},e.prototype.resize=function(e){t.prototype.resize.call(this,e),xn.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),xn.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},e.prototype.pointerUp=function(e){"creating"===this._state?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):t.prototype.pointerUp.call(this,e)},e.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},e.prototype.select=function(){"creating"===this.state&&this.finishCreation(),t.prototype.select.call(this)},e.prototype.deselect=function(){"creating"===this.state&&this.finishCreation(),t.prototype.deselect.call(this)},e.prototype.finishCreation=function(){for(var t=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),e=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],n=e[0],i=e[1],r=e[2],o=e[3],a=!1,s=0;s<this.canvasElement.height;s++)for(var l=0;l<this.canvasElement.width;l++)t.data[s*this.canvasElement.width*4+4*l+3]>0&&(a=!0,s<i&&(i=s),l<n&&(n=l),s>o&&(o=s),l>r&&(r=l));if(a){this.left=n/this.pixelRatio,this.top=i/this.pixelRatio,this.width=(r-n)/this.pixelRatio,this.height=(o-i)/this.pixelRatio;var u=document.createElement("canvas");u.width=r-n,u.height=o-i,u.getContext("2d").putImageData(this.canvasContext.getImageData(n,i,r-n,o-i),0,0),this.drawingImgUrl=u.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},e.prototype.setDrawingImage=function(){xn.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),xn.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},e.prototype.setColor=function(t){this.color=t,this.colorChanged(t)},e.prototype.setLineWidth=function(t){this.lineWidth=t},Object.defineProperty(e.prototype,"toolboxPanels",{get:function(){return"new"===this.state||"creating"===this.state?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),e.prototype.getState=function(){var n=Object.assign({drawingImgUrl:this.drawingImgUrl},t.prototype.getState.call(this));return n.typeName=e.typeName,n},e.prototype.restoreState=function(e){this.createVisual(),t.prototype.restoreState.call(this,e),this.drawingImgUrl=e.drawingImgUrl,this.setDrawingImage()},e.prototype.scale=function(e,n){t.prototype.scale.call(this,e,n),this.setDrawingImage()},e.typeName="FreehandMarker",e.title="Freehand marker",e.icon='<svg viewBox="0 0 24 24"><path d="M9.75 20.85c1.78-.7 1.39-2.63.49-3.85-.89-1.25-2.12-2.11-3.36-2.94A9.817 9.817 0 014.54 12c-.28-.33-.85-.94-.27-1.06.59-.12 1.61.46 2.13.68.91.38 1.81.82 2.65 1.34l1.01-1.7C8.5 10.23 6.5 9.32 4.64 9.05c-1.06-.16-2.18.06-2.54 1.21-.32.99.19 1.99.77 2.77 1.37 1.83 3.5 2.71 5.09 4.29.34.33.75.72.95 1.18.21.44.16.47-.31.47-1.24 0-2.79-.97-3.8-1.61l-1.01 1.7c1.53.94 4.09 2.41 5.96 1.79m11.09-15.6c.22-.22.22-.58 0-.79l-1.3-1.3a.562.562 0 00-.78 0l-1.02 1.02 2.08 2.08M11 10.92V13h2.08l6.15-6.15-2.08-2.08L11 10.92z"/></svg>',e}(Dn),Yn=function(t){function e(e,n,i){var r=t.call(this,e,i||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return r.typeBoxes=[],r.currentType=n,r.setCurrentType=r.setCurrentType.bind(r),r}return vn(e,t),e.prototype.getUi=function(){var t=this,e=document.createElement("div");e.style.display="flex",e.style.overflow="hidden",e.style.flexGrow="2";for(var n=function(n){var r="both";switch(n){case 0:r="both";break;case 1:r="start";break;case 2:r="end";break;case 3:r="none"}var o=document.createElement("div");if(o.style.display="flex",o.style.flexGrow="2",o.style.alignItems="center",o.style.justifyContent="space-between",o.style.padding="5px",o.style.borderWidth="2px",o.style.borderStyle="solid",o.style.borderColor=r===i.currentType?i.uiStyleSettings.toolboxAccentColor:"transparent",o.addEventListener("click",(function(){t.setCurrentType(r,o)})),e.appendChild(o),"both"===r||"start"===r){var a=document.createElement("div");a.style.display="flex",a.style.alignItems="center",a.style.minHeight="20px",a.innerHTML='<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">\n <polygon points="0,5 10,0 10,10" fill="'+(void 0!==i.uiStyleSettings?i.uiStyleSettings.toolboxColor:"#eeeeee")+'" />\n </svg>',a.style.marginLeft="5px",o.appendChild(a)}var s=document.createElement("div");s.style.display="flex",s.style.alignItems="center",s.style.minHeight="20px",s.style.flexGrow="2";var l=document.createElement("hr");if(l.style.minWidth="20px",l.style.border="0px",l.style.borderTop="3px solid "+(void 0!==i.uiStyleSettings?i.uiStyleSettings.toolboxColor:"#eeeeee"),l.style.flexGrow="2",s.appendChild(l),o.appendChild(s),"both"===r||"end"===r){var u=document.createElement("div");u.style.display="flex",u.style.alignItems="center",u.style.minHeight="20px",u.innerHTML='<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">\n <polygon points="0,0 10,5 0,10" fill="'+(void 0!==i.uiStyleSettings?i.uiStyleSettings.toolboxColor:"#eeeeee")+'" />\n </svg>',u.style.marginRight="5px",o.appendChild(u)}i.typeBoxes.push(o)},i=this,r=0;r<4;r++)n(r);return e},e.prototype.setCurrentType=function(t,e){var n=this;this.currentType=t,this.typeBoxes.forEach((function(t){t.style.borderColor=t===e?void 0!==n.uiStyleSettings?n.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"})),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},e}(Tn),Xn=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return r.arrowType="end",r.arrowBaseHeight=10,r.arrowBaseWidth=10,r.getArrowPoints=r.getArrowPoints.bind(r),r.setArrowType=r.setArrowType.bind(r),r.arrowTypePanel=new Yn("Arrow type","end"),r.arrowTypePanel.onArrowTypeChanged=r.setArrowType,r}return vn(e,t),e.prototype.ownsTarget=function(e){return!(!t.prototype.ownsTarget.call(this,e)&&e!==this.arrow1&&e!==this.arrow2)},e.prototype.getArrowPoints=function(t,e){var n=this.arrowBaseWidth+2*this.strokeWidth,i=this.arrowBaseHeight+2*this.strokeWidth;return t-n/2+","+(e+i/2)+" "+t+","+(e-i/2)+" "+(t+n/2)+","+(e+i/2)},e.prototype.createTips=function(){this.arrow1=xn.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(xn.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=xn.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(xn.createTransform()),this.visual.appendChild(this.arrow2)},e.prototype.pointerDown=function(e,n){t.prototype.pointerDown.call(this,e,n),"creating"===this.state&&this.createTips()},e.prototype.adjustVisual=function(){if(t.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2){this.arrow1.style.display="both"===this.arrowType||"start"===this.arrowType?"":"none",this.arrow2.style.display="both"===this.arrowType||"end"===this.arrowType?"":"none",xn.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),xn.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var e=0;Math.abs(this.x1-this.x2)>.1&&(e=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var n=this.arrow1.transform.baseVal.getItem(0);n.setRotate(e,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(n,0);var i=this.arrow2.transform.baseVal.getItem(0);i.setRotate(e+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(i,0)}},e.prototype.setArrowType=function(t){this.arrowType=t,this.adjustVisual(),this.stateChanged()},Object.defineProperty(e.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),e.prototype.getState=function(){var n=Object.assign({arrowType:this.arrowType},t.prototype.getState.call(this));return n.typeName=e.typeName,n},e.prototype.restoreState=function(e){t.prototype.restoreState.call(this,e);var n=e;this.arrowType=n.arrowType,this.createTips(),this.adjustVisual()},e.typeName="ArrowMarker",e.title="Arrow marker",e.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',e}(_n),qn=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return r.fillColor=i.defaultFillColor,r.strokeWidth=0,r.fillPanel=new Nn("Color",i.defaultColorSet,i.defaultFillColor),r.fillPanel.onColorChanged=r.setFillColor,r}return vn(e,t),Object.defineProperty(e.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),e.prototype.getState=function(){var n=t.prototype.getState.call(this);return n.typeName=e.typeName,n},e.typeName="CoverMarker",e.title="Cover marker",e.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',e}(Rn),Kn=function(t){function e(e,n,i,r){var o=t.call(this,e,r||'<svg viewBox="0 0 24 24"><path d="M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8M6 14c0-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 18 12 18 14H6z"/></svg>')||this;return o.opacities=[],o.opacityBoxes=[],o.opacities=n,o.currentOpacity=i,o.setCurrentOpacity=o.setCurrentOpacity.bind(o),o}return vn(e,t),e.prototype.getUi=function(){var t=this,e=document.createElement("div");return e.style.display="flex",e.style.overflow="hidden",e.style.flexGrow="2",e.style.justifyContent="space-between",this.opacities.forEach((function(n){var i=document.createElement("div");i.style.display="flex",i.style.alignItems="center",i.style.justifyContent="center",i.style.padding="5px",i.style.borderWidth="2px",i.style.borderStyle="solid",i.style.borderColor=n===t.currentOpacity?t.uiStyleSettings.toolboxAccentColor:"transparent",i.addEventListener("click",(function(){t.setCurrentOpacity(n,i)})),e.appendChild(i);var r=document.createElement("div");r.innerText=100*n+"%",i.appendChild(r),t.opacityBoxes.push(i)})),e},e.prototype.setCurrentOpacity=function(t,e){var n=this;this.currentOpacity=t,this.opacityBoxes.forEach((function(t){t.style.borderColor=t===e?n.uiStyleSettings.toolboxAccentColor:"transparent"})),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},e}(Tn),Qn=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return r.setOpacity=r.setOpacity.bind(r),r.fillColor=i.defaultHighlightColor,r.strokeWidth=0,r.opacity=i.defaultHighlightOpacity,r.fillPanel=new Nn("Color",i.defaultColorSet,r.fillColor),r.fillPanel.onColorChanged=r.setFillColor,r.opacityPanel=new Kn("Opacity",i.defaultOpacitySteps,r.opacity),r.opacityPanel.onOpacityChanged=r.setOpacity,r}return vn(e,t),e.prototype.setOpacity=function(t){this.opacity=t,this.visual&&xn.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(e.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),e.prototype.getState=function(){var n=t.prototype.getState.call(this);return n.typeName=e.typeName,n},e.typeName="HighlightMarker",e.title="Highlight marker",e.icon='<svg viewBox="0 0 24 24"><path d="M18.5 1.15c-.53 0-1.04.19-1.43.58l-5.81 5.82 5.65 5.65 5.82-5.81c.77-.78.77-2.04 0-2.83l-2.84-2.83c-.39-.39-.89-.58-1.39-.58M10.3 8.5l-5.96 5.96c-.78.78-.78 2.04.02 2.85C3.14 18.54 1.9 19.77.67 21h5.66l.86-.86c.78.76 2.03.75 2.81-.02l5.95-5.96"/></svg>',e}(qn),Jn='<svg viewBox="0 0 24 24"><path d="M9.62 12L12 5.67 14.37 12M11 3L5.5 17h2.25l1.12-3h6.25l1.13 3h2.25L13 3h-2z"/></svg>',$n='<svg viewBox="0 0 24 24"><path d="M19 11.5s-2 2.17-2 3.5a2 2 0 002 2 2 2 0 002-2c0-1.33-2-3.5-2-3.5M5.21 10L10 5.21 14.79 10m1.77-1.06L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.56-.59 1.53 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.59.59-1.56 0-2.12z"/></svg>',ti=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return r.bgColor="transparent",r.tipPosition={x:0,y:0},r.tipBase1Position={x:0,y:0},r.tipBase2Position={x:0,y:0},r.tipMoving=!1,r.color=i.defaultStrokeColor,r.bgColor=i.defaultFillColor,r.fontFamily=i.defaultFontFamily,r.defaultSize={x:100,y:30},r.setBgColor=r.setBgColor.bind(r),r.getTipPoints=r.getTipPoints.bind(r),r.positionTip=r.positionTip.bind(r),r.setTipPoints=r.setTipPoints.bind(r),r.colorPanel=new Nn("Text color",i.defaultColorSet,r.color,Jn),r.colorPanel.onColorChanged=r.setColor,r.bgColorPanel=new Nn("Fill color",i.defaultColorSet,r.bgColor,$n),r.bgColorPanel.onColorChanged=r.setBgColor,r.fontFamilyPanel=new Zn("Font",i.defaultFontFamilies,i.defaultFontFamily),r.fontFamilyPanel.onFontChanged=r.setFont,r.tipGrip=new Bn,r.tipGrip.visual.transform.baseVal.appendItem(xn.createTransform()),r.controlBox.appendChild(r.tipGrip.visual),r}return vn(e,t),e.prototype.ownsTarget=function(e){return t.prototype.ownsTarget.call(this,e)||this.tipGrip.ownsTarget(e)||this.tip===e},e.prototype.createTip=function(){xn.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=xn.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},e.prototype.pointerDown=function(e,n){"new"===this.state&&t.prototype.pointerDown.call(this,e,n),"creating"===this.state?this.createTip():this.tipGrip.ownsTarget(n)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):t.prototype.pointerDown.call(this,e,n)},e.prototype.pointerUp=function(e){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,t.prototype.pointerUp.call(this,e);else{var n="creating"===this.state;t.prototype.pointerUp.call(this,e),this.setTipPoints(n),this.positionTip()}},e.prototype.manipulate=function(e){if(this.tipMoving){var n=this.unrotatePoint(e);this.tipPosition={x:n.x-this.manipulationStartLeft,y:n.y-this.manipulationStartTop},this.positionTip()}else t.prototype.manipulate.call(this,e)},e.prototype.setBgColor=function(t){this.bgRectangle&&this.tip&&(xn.setAttributes(this.bgRectangle,[["fill",t]]),xn.setAttributes(this.tip,[["fill",t]])),this.bgColor=t,this.fillColorChanged(t)},e.prototype.getTipPoints=function(){return this.setTipPoints("creating"===this.state),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},e.prototype.setTipPoints=function(t){void 0===t&&(t=!1);var e=Math.min(this.height/2,15),n=this.height/5;t&&(this.tipPosition={x:e+n/2,y:this.height+20});var i=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?i<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(n=this.width/5,e=Math.min(this.width/2,15),this.tipBase1Position={x:e,y:0},this.tipBase2Position={x:e+n,y:0}):(this.tipBase1Position={x:0,y:e},this.tipBase2Position={x:0,y:e+n}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?i<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(n=this.width/5,e=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-e-n,y:0},this.tipBase2Position={x:this.width-e,y:0}):(this.tipBase1Position={x:this.width,y:e},this.tipBase2Position={x:this.width,y:e+n}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?i<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(n=this.width/5,e=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-e-n,y:this.height},this.tipBase2Position={x:this.width-e,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-e-n},this.tipBase2Position={x:this.width,y:this.height-e}):i<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(n=this.width/5,e=Math.min(this.width/2,15),this.tipBase1Position={x:e,y:this.height},this.tipBase2Position={x:e+n,y:this.height}):(this.tipBase1Position={x:0,y:this.height-e},this.tipBase2Position={x:0,y:this.height-e-n})},e.prototype.resize=function(e){t.prototype.resize.call(this,e),this.positionTip()},e.prototype.positionTip=function(){xn.setAttributes(this.tip,[["points",this.getTipPoints()]]);var t=this.tipGrip.visual.transform.baseVal.getItem(0);t.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(t,0)},Object.defineProperty(e.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),e.prototype.select=function(){this.positionTip(),t.prototype.select.call(this)},e.prototype.getState=function(){var n=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},t.prototype.getState.call(this));return n.typeName=e.typeName,n},e.prototype.restoreState=function(e){var n=e;this.bgColor=n.bgColor,this.tipPosition=n.tipPosition,t.prototype.restoreState.call(this,e),this.createTip(),this.setTipPoints()},e.prototype.scale=function(e,n){t.prototype.scale.call(this,e,n),this.tipPosition={x:this.tipPosition.x*e,y:this.tipPosition.y*n},this.positionTip()},e.typeName="CalloutMarker",e.title="Callout marker",e.icon='<svg viewBox="0 0 24 24"><path d="M4 2h16a2 2 0 012 2v12a2 2 0 01-2 2h-4l-4 4-4-4H4a2 2 0 01-2-2V4a2 2 0 012-2m0 2v12h4.83L12 19.17 15.17 16H20V4H4m2 3h12v2H6V7m0 4h10v2H6v-2z"/></svg>',e}(Wn),ei=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return r.fillColor="transparent",r.strokeColor="transparent",r.strokeWidth=0,r.strokeDasharray="",r.opacity=1,r.strokeColor=i.defaultColor,r.strokeWidth=i.defaultStrokeWidth,r.strokeDasharray=i.defaultStrokeDasharray,r.fillColor=i.defaultFillColor,r.setStrokeColor=r.setStrokeColor.bind(r),r.setFillColor=r.setFillColor.bind(r),r.setStrokeWidth=r.setStrokeWidth.bind(r),r.setStrokeDasharray=r.setStrokeDasharray.bind(r),r.setOpacity=r.setOpacity.bind(r),r.createVisual=r.createVisual.bind(r),r.strokePanel=new Nn("Line color",bn(i.defaultColorSet,["transparent"]),i.defaultColor),r.strokePanel.onColorChanged=r.setStrokeColor,r.fillPanel=new Nn("Fill color",bn(i.defaultColorSet,["transparent"]),r.fillColor,$n),r.fillPanel.onColorChanged=r.setFillColor,r.strokeWidthPanel=new Fn("Line width",i.defaultStrokeWidths,i.defaultStrokeWidth),r.strokeWidthPanel.onWidthChanged=r.setStrokeWidth,r.strokeStylePanel=new zn("Line style",i.defaultStrokeDasharrays,i.defaultStrokeDasharray),r.strokeStylePanel.onStyleChanged=r.setStrokeDasharray,r.opacityPanel=new Kn("Opacity",i.defaultOpacitySteps,r.opacity),r.opacityPanel.onOpacityChanged=r.setOpacity,r}return vn(e,t),e.prototype.ownsTarget=function(e){return!(!t.prototype.ownsTarget.call(this,e)&&e!==this.visual)},e.prototype.createVisual=function(){this.visual=xn.createEllipse(this.width/2,this.height/2,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},e.prototype.pointerDown=function(e,n){t.prototype.pointerDown.call(this,e,n),"new"===this.state&&(this.createVisual(),this.moveVisual(e),this._state="creating")},e.prototype.manipulate=function(e){t.prototype.manipulate.call(this,e)},e.prototype.resize=function(e){t.prototype.resize.call(this,e),this.setSize()},e.prototype.setSize=function(){t.prototype.setSize.call(this),xn.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},e.prototype.pointerUp=function(e){t.prototype.pointerUp.call(this,e),this.setSize()},e.prototype.setStrokeColor=function(t){this.strokeColor=t,this.visual&&xn.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(t),this.stateChanged()},e.prototype.setFillColor=function(t){this.fillColor=t,this.visual&&xn.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(t),this.stateChanged()},e.prototype.setStrokeWidth=function(t){this.strokeWidth=t,this.visual&&xn.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},e.prototype.setStrokeDasharray=function(t){this.strokeDasharray=t,this.visual&&xn.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},e.prototype.setOpacity=function(t){this.opacity=t,this.visual&&xn.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(e.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),e.prototype.getState=function(){var n=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},t.prototype.getState.call(this));return n.typeName=e.typeName,n},e.prototype.restoreState=function(e){var n=e;this.fillColor=n.fillColor,this.strokeColor=n.strokeColor,this.strokeWidth=n.strokeWidth,this.strokeDasharray=n.strokeDasharray,this.opacity=n.opacity,this.createVisual(),t.prototype.restoreState.call(this,e),this.setSize()},e.prototype.scale=function(e,n){t.prototype.scale.call(this,e,n),this.setSize()},e.typeName="EllipseMarker",e.title="Ellipse marker",e.icon='<svg viewBox="0 0 24 24"><path d="M12 4C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',e}(Dn),ni=function(t){function e(e,n,i){return t.call(this,e,n,i)||this}return vn(e,t),Object.defineProperty(e.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),e.prototype.ownsTarget=function(e){return!(!t.prototype.ownsTarget.call(this,e)&&e!==this.tip1&&e!==this.tip2)},e.prototype.createTips=function(){this.tip1=xn.createLine(this.x1-this.tipLength/2,this.y1,this.x1+this.tipLength/2,this.y1,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip1.transform.baseVal.appendItem(xn.createTransform()),this.visual.appendChild(this.tip1),this.tip2=xn.createLine(this.x2-this.tipLength/2,this.y2,this.x2+this.tipLength/2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip2.transform.baseVal.appendItem(xn.createTransform()),this.visual.appendChild(this.tip2)},e.prototype.pointerDown=function(e,n){t.prototype.pointerDown.call(this,e,n),"creating"===this.state&&this.createTips()},e.prototype.adjustVisual=function(){if(t.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(xn.setAttributes(this.tip1,[["x1",(this.x1-this.tipLength/2).toString()],["y1",this.y1.toString()],["x2",(this.x1+this.tipLength/2).toString()],["y2",this.y1.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),xn.setAttributes(this.tip2,[["x1",(this.x2-this.tipLength/2).toString()],["y1",this.y2.toString()],["x2",(this.x2+this.tipLength/2).toString()],["y2",this.y2.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Math.abs(this.x1-this.x2)>.1)){var e=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),n=this.tip1.transform.baseVal.getItem(0);n.setRotate(e,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(n,0);var i=this.tip2.transform.baseVal.getItem(0);i.setRotate(e+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(i,0)}},Object.defineProperty(e.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),e.prototype.getState=function(){var n=t.prototype.getState.call(this);return n.typeName=e.typeName,n},e.prototype.restoreState=function(e){t.prototype.restoreState.call(this,e),this.createTips(),this.adjustVisual()},e.typeName="MeasurementMarker",e.title="Measurement marker",e.icon='<svg viewBox="0 0 24 24"><path d="M1.39 18.36l1.77-1.76L4.58 18l1.06-1.05-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.42 1.41L10.59 12l-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.41 1.41 1.07-1.06-1.42-1.41 1.42-1.42L18 6.7l1.07-1.06-2.47-2.48 1.76-1.77 4.25 4.25L5.64 22.61l-4.25-4.25z"/></svg>',e}(_n),ii=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return r.strokePanel.colors=i.defaultColorSet,r.fillColor="transparent",r}return vn(e,t),Object.defineProperty(e.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),e.prototype.getState=function(){var n=t.prototype.getState.call(this);return n.typeName=e.typeName,n},e.typeName="EllipseFrameMarker",e.title="Ellipse frame marker",e.icon='<svg viewBox="0 0 24 24"><path d="M12 6c4.41 0 8 2.69 8 6s-3.59 6-8 6-8-2.69-8-6 3.59-6 8-6m0-2C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',e}(ei),ri=function(){function t(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(t.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),t.prototype.addUndoStep=function(t){0!==this.undoStack.length&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(t)||(this.undoStack.push(t),JSON.stringify(this.lastRedoStep)!==JSON.stringify(t)&&this.redoStack.splice(0,this.redoStack.length))},t.prototype.replaceLastUndoStep=function(t){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=t)},t.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},t.prototype.undo=function(){if(this.undoStack.length>1){var t=this.undoStack.pop();return void 0!==t&&this.redoStack.push(t),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},t.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},t}(),oi=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return r.strokeColor="transparent",r.strokeWidth=0,r.strokeDasharray="",r.curveX=0,r.curveY=0,r.manipulationStartCurveX=0,r.manipulationStartCurveY=0,r.setStrokeColor=r.setStrokeColor.bind(r),r.setStrokeWidth=r.setStrokeWidth.bind(r),r.setStrokeDasharray=r.setStrokeDasharray.bind(r),r.positionGrips=r.positionGrips.bind(r),r.addControlGrips=r.addControlGrips.bind(r),r.adjustVisual=r.adjustVisual.bind(r),r.setupControlBox=r.setupControlBox.bind(r),r.resize=r.resize.bind(r),r.strokeColor=i.defaultColor,r.strokeWidth=i.defaultStrokeWidth,r.strokeDasharray=i.defaultStrokeDasharray,r.strokePanel=new Nn("Line color",i.defaultColorSet,i.defaultColor),r.strokePanel.onColorChanged=r.setStrokeColor,r.strokeWidthPanel=new Fn("Line width",i.defaultStrokeWidths,i.defaultStrokeWidth),r.strokeWidthPanel.onWidthChanged=r.setStrokeWidth,r.strokeStylePanel=new zn("Line style",i.defaultStrokeDasharrays,i.defaultStrokeDasharray),r.strokeStylePanel.onStyleChanged=r.setStrokeDasharray,r}return vn(e,t),e.prototype.ownsTarget=function(e){return!(!t.prototype.ownsTarget.call(this,e)&&e!==this.visual&&e!==this.selectorCurve&&e!==this.visibleCurve&&!this.curveGrip.ownsTarget(e))},e.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},e.prototype.createVisual=function(){this.visual=xn.createGroup(),this.selectorCurve=xn.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=xn.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},e.prototype.pointerDown=function(e,n){t.prototype.pointerDown.call(this,e,n),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,"new"===this.state&&(this.curveX=e.x,this.curveY=e.y),"new"===this.state?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(n)&&(this.activeGrip=this.curveGrip,this._state="resize")},e.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),xn.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),xn.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),xn.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},e.prototype.setupControlBox=function(){t.prototype.setupControlBox.call(this),this.curveControlLine1=xn.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=xn.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},e.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,t.prototype.addControlGrips.call(this)},e.prototype.positionGrips=function(){t.prototype.positionGrips.call(this);var e=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-e/2,this.curveY-e/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},e.prototype.manipulate=function(e){"move"===this.state&&(this.curveX=this.manipulationStartCurveX+e.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+e.y-this.manipulationStartY),t.prototype.manipulate.call(this,e)},e.prototype.resize=function(e){this.activeGrip===this.curveGrip&&(this.curveX=e.x,this.curveY=e.y),t.prototype.resize.call(this,e),"creating"===this.state&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},e.prototype.setStrokeColor=function(t){this.strokeColor=t,this.adjustVisual(),this.colorChanged(t)},e.prototype.setStrokeWidth=function(t){this.strokeWidth=t,this.adjustVisual()},e.prototype.setStrokeDasharray=function(t){this.strokeDasharray=t,this.adjustVisual()},e.prototype.scale=function(e,n){this.curveX=this.curveX*e,this.curveY=this.curveY*n,t.prototype.scale.call(this,e,n)},Object.defineProperty(e.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),e.prototype.getState=function(){var n=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},t.prototype.getState.call(this));return n.typeName=e.typeName,n},e.prototype.restoreState=function(e){t.prototype.restoreState.call(this,e);var n=e;this.strokeColor=n.strokeColor,this.strokeWidth=n.strokeWidth,this.strokeDasharray=n.strokeDasharray,this.curveX=n.curveX,this.curveY=n.curveY,this.createVisual(),this.adjustVisual()},e.typeName="CurveMarker",e.title="Curve marker",e.icon='<svg viewBox="0 0 24 24"><path d="M18.5 2A1.5 1.5 0 0120 3.5 1.5 1.5 0 0118.5 5c-.23 0-.45-.05-.65-.15l-3.69 3.7.34.45c2.19-1.26 4.76-2 7.5-2l1 .03v2.01L22 9c-2.58 0-5 .75-7 2.04A3.96 3.96 0 0111.04 15C9.75 17 9 19.42 9 22l.04 1H7.03L7 22c0-2.74.74-5.31 2-7.5l-.45-.34-3.7 3.69c.1.2.15.42.15.65A1.5 1.5 0 013.5 20 1.5 1.5 0 012 18.5 1.5 1.5 0 013.5 17c.23 0 .45.05.65.15l3.69-3.7C7.31 12.78 7 11.92 7 11a4 4 0 014-4c.92 0 1.78.31 2.45.84l3.7-3.69c-.1-.2-.15-.42-.15-.65A1.5 1.5 0 0118.5 2M11 9a2 2 0 00-2 2 2 2 0 002 2 2 2 0 002-2 2 2 0 00-2-2z"/></svg>',e}(Hn),ai=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return r.fillColor="transparent",r.strokeColor="transparent",r.strokeWidth=0,r.strokeDasharray="",r.textColor="transparent",r.fontSize="1rem",r.isMoved=!1,r.captionText="Caption",r.PADDING=5,r.captionBoxWidth=0,r.captionBoxHeight=0,r.strokeColor=i.defaultColor,r.strokeWidth=i.defaultStrokeWidth,r.strokeDasharray=i.defaultStrokeDasharray,r.fillColor=i.defaultFillColor,r.textColor=i.defaultStrokeColor,r.fontFamily=i.defaultFontFamily,r.fontSize=i.defaultCaptionFontSize,r.captionText=i.defaultCaptionText,r.setStrokeColor=r.setStrokeColor.bind(r),r.setFillColor=r.setFillColor.bind(r),r.setStrokeWidth=r.setStrokeWidth.bind(r),r.setStrokeDasharray=r.setStrokeDasharray.bind(r),r.createVisual=r.createVisual.bind(r),r.sizeCaption=r.sizeCaption.bind(r),r.setCaptionText=r.setCaptionText.bind(r),r.showTextEditor=r.showTextEditor.bind(r),r.positionTextEditor=r.positionTextEditor.bind(r),r.finishTextEditing=r.finishTextEditing.bind(r),r.setFont=r.setFont.bind(r),r.setTextColor=r.setTextColor.bind(r),r.strokePanel=new Nn("Line color",bn(i.defaultColorSet,["transparent"]),r.strokeColor),r.strokePanel.onColorChanged=r.setStrokeColor,r.fillPanel=new Nn("Fill color",bn(i.defaultColorSet,["transparent"]),r.fillColor,$n),r.fillPanel.onColorChanged=r.setFillColor,r.strokeWidthPanel=new Fn("Line width",i.defaultStrokeWidths,i.defaultStrokeWidth),r.strokeWidthPanel.onWidthChanged=r.setStrokeWidth,r.strokeStylePanel=new zn("Line style",i.defaultStrokeDasharrays,i.defaultStrokeDasharray),r.strokeStylePanel.onStyleChanged=r.setStrokeDasharray,r.fontFamilyPanel=new Zn("Font",i.defaultFontFamilies,i.defaultFontFamily),r.fontFamilyPanel.onFontChanged=r.setFont,r.textColorPanel=new Nn("Text color",i.defaultColorSet,r.textColor,Jn),r.textColorPanel.onColorChanged=r.setTextColor,r}return vn(e,t),e.prototype.ownsTarget=function(e){return!(!t.prototype.ownsTarget.call(this,e)&&e!==this.visual&&e!==this.frame&&e!==this.captionBg&&e!==this.captionElement)},e.prototype.createVisual=function(){this.visual=xn.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=xn.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=xn.createText([["fill",this.textColor],["font-family",this.fontFamily]]),this.captionElement.style.fontSize=this.fontSize,this.captionElement.style.textAnchor="start",this.captionElement.style.dominantBaseline="text-before-edge",this.captionElement.textContent=this.captionText,this.visual.appendChild(this.captionElement),this.frame=xn.createRect(this.width,this.height,[["fill","transparent"],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray]]),this.visual.appendChild(this.frame),this.sizeCaption()},e.prototype.setCaptionText=function(t){this.captionText=t,this.captionElement.textContent=this.captionText,this.sizeCaption()},e.prototype.pointerDown=function(e,n){t.prototype.pointerDown.call(this,e,n),this.isMoved=!1,this.pointerDownPoint=e,this.pointerDownTimestamp=Date.now(),"new"===this.state&&(this.createVisual(),this.moveVisual(e),this._state="creating")},e.prototype.manipulate=function(e){t.prototype.manipulate.call(this,e),void 0!==this.pointerDownPoint&&(this.isMoved=Math.abs(e.x-this.pointerDownPoint.x)>5||Math.abs(e.y-this.pointerDownPoint.y)>5)},e.prototype.resize=function(e){t.prototype.resize.call(this,e),this.setSize()},e.prototype.sizeCaption=function(){var t=this.captionElement.getBBox();""!==this.captionText.trim()?(this.captionBoxWidth=t.width+2*this.PADDING,this.captionBoxHeight=t.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),xn.setAttributes(this.captionBg,[["width",this.captionBoxWidth.toString()],["height",this.captionBoxHeight.toString()],["clip-path","path('M0,0 H"+this.width+" V"+this.height+" H"+-this.width+" Z')"]]),xn.setAttributes(this.captionElement,[["x",this.PADDING.toString()],["y",this.PADDING.toString()],["clip-path","path('M0,0 H"+(this.width-this.PADDING)+" V"+this.height+" H"+(-this.width-this.PADDING)+" Z')"]])},e.prototype.showTextEditor=function(){var t=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditBox=document.createElement("input"),this.textEditBox.style.position="absolute",this.textEditBox.style.width=this.width+"px",this.captionBoxHeight>0&&(this.textEditBox.style.height=this.captionBoxHeight+"px"),this.textEditBox.style.fontSize=this.fontSize,this.textEditBox.style.fontFamily=this.fontFamily,this.textEditBox.style.backgroundColor=this.fillColor,this.textEditBox.style.color=this.textColor,this.textEditBox.style.borderWidth="0",this.textEditBox.setAttribute("value",this.captionText),this.textEditBox.select(),this.textEditDiv.appendChild(this.textEditBox),this.overlayContainer.appendChild(this.textEditDiv),this.textEditBox.addEventListener("pointerup",(function(t){t.stopPropagation()})),this.textEditBox.addEventListener("keypress",(function(e){"Enter"===e.key&&t.finishTextEditing(t.textEditBox.value)})),this.textEditBox.addEventListener("keyup",(function(t){t.cancelBubble=!0})),this.textEditBox.addEventListener("blur",(function(){t.finishTextEditing(t.textEditBox.value)})),this.textEditDiv.addEventListener("pointerup",(function(){t.finishTextEditing(t.textEditBox.value)})),this.positionTextEditor(),this.textEditBox.focus()},e.prototype.positionTextEditor=function(){"edit"===this.state&&(void 0===this.textEditBox?this.showTextEditor():(this.textEditBox.style.left=this.left+"px",this.textEditBox.style.top=this.top+"px",this.textEditBox.style.transform="rotate("+this.rotationAngle+"deg)",this.textEditBox.style.transformOrigin=this.width/2+"px "+this.height/2+"px"))},e.prototype.finishTextEditing=function(t){this.setCaptionText(t.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},e.prototype.setFont=function(t){this.captionElement&&xn.setAttributes(this.captionElement,[["font-family",t]]),this.fontFamily=t,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},e.prototype.setTextColor=function(t){this.captionElement&&xn.setAttributes(this.captionElement,[["fill",t]]),this.textColor=t,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},e.prototype.setSize=function(){t.prototype.setSize.call(this),xn.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},e.prototype.pointerUp=function(e){t.prototype.pointerUp.call(this,e),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},e.prototype.dblClick=function(e,n){t.prototype.dblClick.call(this,e,n),this.showTextEditor()},e.prototype.setStrokeColor=function(t){this.strokeColor=t,this.frame&&xn.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(t),this.stateChanged()},e.prototype.setFillColor=function(t){this.fillColor=t,this.captionBg&&xn.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(t),this.stateChanged()},e.prototype.setStrokeWidth=function(t){this.strokeWidth=t,this.frame&&xn.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},e.prototype.setStrokeDasharray=function(t){this.strokeDasharray=t,this.frame&&xn.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(e.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),e.prototype.getState=function(){var e=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:1,textColor:this.textColor,fontFamily:this.fontFamily,fontSize:this.fontSize,captionText:this.captionText},t.prototype.getState.call(this));return e.typeName=this.typeName,e},e.prototype.restoreState=function(e){var n=e;this.fillColor=n.fillColor,this.strokeColor=n.strokeColor,this.strokeWidth=n.strokeWidth,this.strokeDasharray=n.strokeDasharray,this.textColor=n.textColor,this.fontFamily=n.fontFamily,this.captionText=n.captionText,this.fontSize=n.fontSize,this.createVisual(),t.prototype.restoreState.call(this,e),this.setSize()},e.prototype.scale=function(e,n){t.prototype.scale.call(this,e,n),this.setSize()},e.typeName="CaptionFrameMarker",e.title="Caption frame marker",e.icon='<svg viewBox="0 0 24 24"><path d="M5 3c-1.11 0-2 .89-2 2v14c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2V5c0-1.11-.89-2-2-2H5m0 2h14v14H5V5m2 2v2h10V7H7z"/></svg>',e}(Dn),si=function(){function t(t,e){void 0===e&&(e=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=t,this.cancelable=e}return Object.defineProperty(t.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),t.prototype.preventDefault=function(){this._defaultPrevented=!0},t}(),li=function(t){function e(e,n,i){var r=t.call(this,e,!1)||this;return r.dataUrl=n,r.state=i,r}return vn(e,t),e}(si),ui=function(t){function e(e,n,i){void 0===i&&(i=!1);var r=t.call(this,e,i)||this;return r.marker=n,r}return vn(e,t),e}(si),ci=function(){function t(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return t.prototype.addEventListener=function(t,e){this[t].push(e)},t.prototype.removeEventListener=function(t,e){var n=this[t].indexOf(e);n>-1&&this[t].splice(n,1)},t}(),hi=function(){function t(e){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Un,this._isOpen=!1,this.undoRedoManager=new ri,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new ci,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=t.instanceCounter++,this.styles=new Cn(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=e,this.targetRoot=document.body,this.width=e.clientWidth,this.height=e.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(t.prototype,"ALL_MARKER_TYPES",{get:function(){return[Gn,Vn,Xn,Wn,ii,ei,Qn,ti,ni,qn,_n,oi,ai]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Gn,Vn,Xn,Wn,ei,Qn,ti]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Gn,Vn,Xn,Wn,Qn]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(t){var e=this;this._availableMarkerTypes.splice(0),t.forEach((function(t){if("string"==typeof t){var n=e.ALL_MARKER_TYPES.find((function(e){return e.typeName===t}));void 0!==n&&e._availableMarkerTypes.push(n)}else e._availableMarkerTypes.push(t)}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(t){this._zoomLevel=t,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),t.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),"popup"===this.settings.displayMode&&this.onPopupTargetResize(),Sn.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},t.prototype.show=function(){var t=this;void 0===this.styles.styleSheetRoot&&void 0!==kn.styleSheetRoot&&(this.styles.styleSheetRoot=kn.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach((function(e){return e(new si(t))}))},t.prototype.render=function(){return yn(this,void 0,void 0,(function(){var t;return wn(this,(function(e){switch(e.label){case 0:return this.setCurrentMarker(),(t=new Pn).naturalSize=this.renderAtNaturalSize,t.imageType=this.renderImageType,t.imageQuality=this.renderImageQuality,t.markersOnly=this.renderMarkersOnly,t.width=this.renderWidth,t.height=this.renderHeight,[4,t.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return e.sent(),[4,t.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,e.sent()]}}))}))},t.prototype.close=function(t){var e=this;if(void 0===t&&(t=!1),this.isOpen){var n=!1;t||this.eventListeners.beforeclose.forEach((function(t){var i=new si(e,!0);t(i),i.defaultPrevented&&(n=!0)})),n||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),"popup"===this.settings.displayMode&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach((function(t){return t(new si(e))})),this.detachEvents(),this._isOpen=!1)}},t.prototype.addMarkersToToolbar=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];(t=this._availableMarkerTypes).push.apply(t,e)},t.prototype.addRenderEventListener=function(t){this.addEventListener("render",(function(e){t(e.dataUrl,e.state)}))},t.prototype.removeRenderEventListener=function(t){},t.prototype.addCloseEventListener=function(t){this.addEventListener("close",(function(){t()}))},t.prototype.removeCloseEventListener=function(t){},t.prototype.setupResizeObserver=function(){var t=this;"inline"===this.settings.displayMode?window.ResizeObserver&&(this.targetObserver=new ResizeObserver((function(){t.resize(t.target.clientWidth,t.target.clientHeight)})),this.targetObserver.observe(this.target)):"popup"===this.settings.displayMode&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver((function(){return t.onPopupTargetResize()})),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},t.prototype.onPopupTargetResize=function(){var t=1*this.target.clientWidth/this.target.clientHeight,e=this.editorCanvas.clientWidth/t>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*t:this.editorCanvas.clientWidth,n=e<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/t;this.resize(e,n)},t.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},t.prototype.resize=function(t,e){this._isResizing=!0;var n=t/this.imageWidth,i=e/this.imageHeight;this.imageWidth=Math.round(t),this.imageHeight=Math.round(e),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px",this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px","popup"!==this.settings.displayMode?this.coverDiv.style.width=this.imageWidth.toString()+"px":(this.setTopLeft(),this.positionMarkerImage()),void 0!==this.toolbar&&this.toolbar.adjustLayout(),this.positionLogo(),this.scaleMarkers(n,i),this._isResizing=!1},t.prototype.scaleMarkers=function(t,e){var n,i=this;this._currentMarker&&this._currentMarker instanceof Wn?this._currentMarker.scale(t,e):(n=this._currentMarker,this.setCurrentMarker()),this.markers.forEach((function(n){n!==i._currentMarker&&n.scale(t,e)})),void 0!==n&&this.setCurrentMarker(n)},t.prototype.setEditingTarget=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px"},t.prototype.setTopLeft=function(){var t=this.editingTarget.getBoundingClientRect(),e=this.editorCanvas.getBoundingClientRect();this.left=t.left-e.left,this.top=t.top-e.top},t.prototype.initMarkerCanvas=function(){this.markerImageHolder=document.createElement("div"),this.markerImageHolder.style.setProperty("touch-action","pinch-zoom"),this.markerImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.markerImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImage.style.pointerEvents="auto",this.markerImageHolder.style.position="absolute",this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.markerImageHolder.style.transformOrigin="top left",this.positionMarkerImage(),this.markerImageHolder.appendChild(this.markerImage),this.editorCanvas.appendChild(this.markerImageHolder)},t.prototype.addDefs=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this.defs=xn.createDefs(),this.addDefsToImage(),(t=this.defs).append.apply(t,e)},t.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},t.prototype.initOverlay=function(){this.overlayContainer=document.createElement("div"),this.overlayContainer.style.position="absolute",this.overlayContainer.style.left="0px",this.overlayContainer.style.top="0px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.overlayContainer.style.display="flex",this.markerImageHolder.appendChild(this.overlayContainer)},t.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},t.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},t.prototype.attachWindowEvents=function(){window.addEventListener("pointermove",this.onPointerMove),window.addEventListener("pointerup",this.onPointerUp),window.addEventListener("pointercancel",this.onPointerOut),window.addEventListener("pointerout",this.onPointerOut),window.addEventListener("pointerleave",this.onPointerUp),window.addEventListener("resize",this.onWindowResize),window.addEventListener("keyup",this.onKeyUp)},t.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},t.prototype.detachWindowEvents=function(){window.removeEventListener("pointermove",this.onPointerMove),window.removeEventListener("pointerup",this.onPointerUp),window.removeEventListener("pointercancel",this.onPointerOut),window.removeEventListener("pointerout",this.onPointerOut),window.removeEventListener("pointerleave",this.onPointerUp),window.removeEventListener("resize",this.onWindowResize),window.removeEventListener("keyup",this.onKeyUp)},t.prototype.addLogo=function(){this.logoUI=document.createElement("div"),this.logoUI.style.display="inline-block",this.logoUI.style.margin="0px",this.logoUI.style.padding="0px",this.logoUI.style.fill="#333333";var t=document.createElement("a");t.href="https://markerjs.com/",t.target="_blank",t.innerHTML='<svg viewBox="0 0 112 96" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path fill="#e5f20d" fill-opacity=".647" d="M0 40.386h111.96V95.62H0z"/><path d="M93.61 61.452c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.591 1.048-1.481 0-2.222-.74-2.222-2.22 0-16.617-.533-29.347-1.604-38.192-1.068-8.842-2.92-13.265-5.552-13.265-4.443 0-10.94 15.509-19.497 46.52v.124c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.592 1.048-1.48 0-2.22-.74-2.22-2.22 0-3.29.165-8.392.493-15.302.33-7.732.494-13.82.494-18.262 0-6.17-.186-10.55-.556-13.142-.37-2.591-1.172-3.887-2.406-3.887-2.796 0-6.333 5.12-10.612 15.363C38.494 34.367 34.01 46.44 29.32 60.34l-1.11 3.209a5.714 5.714 0 01-1.42 2.097c-.617.578-1.295.864-2.036.864-.987 0-1.644-.081-1.974-.247-.328-.162-.533-.656-.617-1.48-.41-4.03-.74-9.418-.987-16.165-.163-1.728-.329-4.566-.494-8.515-.822-13.901-1.562-23.3-2.221-28.196-.657-4.893-.987-7.628-.987-8.205 0-.657.33-1.44.987-2.345.659-.903 1.276-1.357 1.85-1.357 1.319 0 2.387.947 3.21 2.838.411.906.863 4.526 1.357 10.859.493 6.335.905 14.19 1.233 23.568l.617 18.88c4.527-13.983 9.216-26.673 14.068-38.068C45.65 6.686 50.093.988 54.123.988c2.715 0 4.566 1.974 5.553 5.923.987 3.949 1.481 9.667 1.481 17.152 0 3.949-.081 9.625-.247 17.029l-.123 5.676c3.373-11.762 6.725-21.634 10.057-29.615 3.331-7.979 6.685-11.97 10.056-11.97 8.475 0 12.71 18.757 12.71 56.269z" fill-rule="nonzero"/></svg>',t.title="Powered by marker.js",t.style.display="grid",t.style.alignItems="center",t.style.justifyItems="center",t.style.padding="3px",t.style.width="20px",t.style.height="20px",this.logoUI.appendChild(t),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},t.prototype.positionLogo=function(){this.logoUI&&("right"!==this.uiStyleSettings.logoPosition?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},t.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},t.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},t.prototype.showUI=function(){switch("popup"===this.settings.displayMode&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var t=void 0!==this.settings.uiOffsetTop?this.target.offsetTop+this.settings.uiOffsetTop:this.target.offsetTop>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=t+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=void 0!==this.uiStyleSettings.zIndex?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=void 0!==this.uiStyleSettings.zIndex?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin="popup"===this.settings.displayMode?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new En(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1","popup"===this.settings.displayMode&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex","popup"===this.settings.displayMode&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),void 0===this.settings.uiOffsetTop&&this.target.offsetTop<this.styles.settings.toolbarHeight&&(this.editingTarget.style.marginTop=this.target.offsetTop-this.styles.settings.toolbarHeight+"px"),this.editorCanvas.appendChild(this.editingTarget),this.toolbox=new Ln(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},t.prototype.closeUI=function(){"popup"===this.settings.displayMode&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},t.prototype.removeMarker=function(t){this.markerImage.removeChild(t.container),this.markers.indexOf(t)>-1&&this.markers.splice(this.markers.indexOf(t),1),t.dispose()},t.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),void 0!==this._currentMarker&&("new"!==this._currentMarker.state?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},t.prototype.toolbarButtonClicked=function(t,e){if("marker"===t&&void 0!==e)this.createNewMarker(e);else if("action"===t)switch(e){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":void 0===this.notesArea?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},t.prototype.deleteSelectedMarker=function(){var t=this;if(void 0!==this._currentMarker){var e=!1;if(this.eventListeners.markerbeforedelete.forEach((function(n){var i=new ui(t,t._currentMarker,!0);n(i),i.defaultPrevented&&(e=!0)})),!e){var n=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach((function(e){return e(new ui(t,n))}))}}},t.prototype.clear=function(){var t=this,e=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach((function(n){var i=new ui(t,void 0,!0);n(i),i.defaultPrevented&&(e=!0)})),!e)){this.setCurrentMarker();for(var n=function(e){var n=i.markers[e];i.setCurrentMarker(i.markers[e]),i._currentMarker.dispose(),i.markerImage.removeChild(i._currentMarker.container),i.markers.splice(i.markers.indexOf(i._currentMarker),1),i.eventListeners.markerdelete.forEach((function(e){return e(new ui(t,n))}))},i=this,r=this.markers.length-1;r>=0;r--)n(r);this.addUndoStep()}},Object.defineProperty(t.prototype,"isNotesAreaOpen",{get:function(){return void 0!==this.notesArea},enumerable:!1,configurable:!0}),t.prototype.showNotesEditor=function(){var t;void 0!==this._currentMarker&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=null!==(t=this._currentMarker.notes)&&void 0!==t?t:"",this.overlayContainer.appendChild(this.notesArea))},t.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(void 0!==this._currentMarker&&(this._currentMarker.notes=""!==this.notesArea.value.trim()?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},t.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},t.prototype.addUndoStep=function(){var t=this;if(void 0===this._currentMarker||"edit"!==this._currentMarker.state){var e=this.getState(),n=this.undoRedoManager.getLastUndoStep();if(!n||n.width===e.width&&n.height===e.height){var i=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(e),i<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach((function(e){return e(new si(t))}))}else this.undoRedoManager.replaceLastUndoStep(e),this.eventListeners.statechange.forEach((function(e){return e(new si(t))}))}},t.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},t.prototype.undoStep=function(){var t=this,e=this.undoRedoManager.undo();void 0!==e&&(this.restoreState(e),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach((function(e){return e(new si(t))})))},t.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},t.prototype.redoStep=function(){var t=this,e=this.undoRedoManager.redo();void 0!==e&&(this.restoreState(e),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach((function(e){return e(new si(t))})))},t.prototype.stepZoom=function(){var t=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=t<this.zoomSteps.length-1?this.zoomSteps[t+1]:this.zoomSteps[0]},t.prototype.panTo=function(t){this.contentDiv.scrollBy({left:this.prevPanPoint.x-t.x,top:this.prevPanPoint.y-t.y}),this.prevPanPoint=t},t.prototype.startRenderAndClose=function(){return yn(this,void 0,void 0,(function(){var t,e,n=this;return wn(this,(function(i){switch(i.label){case 0:return[4,this.render()];case 1:return t=i.sent(),e=this.getState(),this.eventListeners.render.forEach((function(i){return i(new li(n,t,e))})),this.close(!0),[2]}}))}))},t.prototype.getState=function(t){!0===t&&this.setCurrentMarker();var e={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach((function(t){return e.markers.push(t.getState())})),e},t.prototype.restoreState=function(t){var e=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);t.markers.forEach((function(t){var n=e._availableMarkerTypes.find((function(e){return e.typeName===t.typeName}));if(void 0!==n){var i=e.addNewMarker(n);i.restoreState(t),e.markers.push(i)}})),t.width&&t.height&&(t.width!==this.imageWidth||t.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/t.width,this.imageHeight/t.height),this.eventListeners.restorestate.forEach((function(t){return t(new si(e))}))},t.prototype.addNewMarker=function(t){var e=xn.createGroup();return this.markerImage.appendChild(e),new t(e,this.overlayContainer,this.settings)},t.prototype.createNewMarker=function(t){var e,n=this;(e="string"==typeof t?this._availableMarkerTypes.find((function(e){return e.typeName===t})):t)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(e),this._currentMarker.onMarkerCreated=this.markerCreated,this._currentMarker.onColorChanged=this.colorChanged,this._currentMarker.onFillColorChanged=this.fillColorChanged,this._currentMarker.onStateChanged=this.markerStateChanged,this.markerImage.style.cursor="crosshair",this.toolbar.setActiveMarkerButton(e.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach((function(t){return t(new ui(n,n._currentMarker))})))},t.prototype.markerCreated=function(t){var e=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(t),this.setCurrentMarker(t),t instanceof Vn&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(Vn):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach((function(t){return t(new ui(e,e._currentMarker))}))},t.prototype.colorChanged=function(t){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=t,this.settings.defaultStrokeColor=t)},t.prototype.fillColorChanged=function(t){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=t)},t.prototype.markerStateChanged=function(t){var e=this;this.eventListeners.markerchange.forEach((function(n){return n(new ui(e,t))}))},t.prototype.setCurrentMarker=function(t){var e=this;this._currentMarker!==t&&void 0!==this._currentMarker&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach((function(t){return t(new ui(e,e._currentMarker))}))),this._currentMarker=t,void 0===this._currentMarker||this._currentMarker.isSelected||("new"!==this._currentMarker.state&&this._currentMarker.select(),this.toolbar.setCurrentMarker(this._currentMarker),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this._isResizing||this.eventListeners.markerselect.forEach((function(t){return t(new ui(e,e._currentMarker))})))},t.prototype.onPointerDown=function(t){if(this._isFocused||this.focus(),this.touchPoints++,1===this.touchPoints||"touch"!==t.pointerType)if(void 0===this._currentMarker||"new"!==this._currentMarker.state&&"creating"!==this._currentMarker.state){if("select"===this.mode){var e=this.markers.find((function(e){return e.ownsTarget(t.target)}));void 0!==e?(this.setCurrentMarker(e),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(t.clientX,t.clientY),t.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:t.clientX,y:t.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(t.clientX,t.clientY))},t.prototype.onDblClick=function(t){if(this._isFocused||this.focus(),"select"===this.mode){var e=this.markers.find((function(e){return e.ownsTarget(t.target)}));void 0!==e&&e!==this._currentMarker&&this.setCurrentMarker(e),void 0!==this._currentMarker?this._currentMarker.dblClick(this.clientToLocalCoordinates(t.clientX,t.clientY),t.target):this.setCurrentMarker()}},t.prototype.onPointerMove=function(t){1!==this.touchPoints&&"touch"===t.pointerType||(void 0!==this._currentMarker||this.isDragging)&&(void 0!==this._currentMarker&&"edit"===this._currentMarker.state||t.preventDefault(),void 0!==this._currentMarker?this._currentMarker.manipulate(this.clientToLocalCoordinates(t.clientX,t.clientY)):this.zoomLevel>1&&this.panTo({x:t.clientX,y:t.clientY}))},t.prototype.onPointerUp=function(t){this.touchPoints>0&&this.touchPoints--,0===this.touchPoints&&this.isDragging&&void 0!==this._currentMarker&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(t.clientX,t.clientY)),this.isDragging=!1,this.addUndoStep()},t.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},t.prototype.onKeyUp=function(t){void 0===this._currentMarker||void 0!==this.notesArea||"Delete"!==t.key&&"Backspace"!==t.key||this.deleteSelectedMarker()},t.prototype.clientToLocalCoordinates=function(t,e){var n=this.markerImage.getBoundingClientRect();return{x:(t-n.left)/this.zoomLevel,y:(e-n.top)/this.zoomLevel}},t.prototype.onWindowResize=function(){this.positionUI()},t.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var t=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=t+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},t.prototype.addLicenseKey=function(t){Sn.addKey(t)},t.prototype.addEventListener=function(t,e){this.eventListeners.addEventListener(t,e)},t.prototype.removeEventListener=function(t,e){this.eventListeners.removeEventListener(t,e)},t.prototype.renderState=function(t){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(t),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(t.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),t.prototype.focus=function(){var t=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,void 0!==this._previousCurrentMarker&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach((function(e){return e(new si(t))})))},t.prototype.blur=function(){var t=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach((function(e){return e(new si(t))})))},t.instanceCounter=0,t}(),di=function(t){var e=t.data,n=t.className,i=t.fullWidth,o=t.style,s=void 0===o?{}:o,u=t.onClose,c=t.onOk,d=t.showFullTools,f=t.noAssociationId,p=(0,h.useRef)(null),g=(0,h.useRef)(null),m=(0,h.useRef)(null),v=(0,h.useRef)(null),y=(0,h.useState)(!1),w=l()(y,2),b=w[0],x=w[1],S=(0,h.useState)("正在加载中"),P=l()(S,2),k=P[0],C=P[1];(0,h.useEffect)((function(){return m.current||(m.current=document.createElement("style"),document.head.appendChild(m.current)),null!=e&&e.visible?(document.body.setAttribute("data-custom","y-hidden"),m.current.innerHTML=" html { overflow-y: hidden; }",null!=e&&e.src&&A()):(document.body.removeAttribute("data-custom"),m.current&&(document.head.removeChild(m.current),m.current=null)),function(){document.body.removeAttribute("data-custom"),m.current&&(document.head.removeChild(m.current),m.current=null)}}),[null==e?void 0:e.visible]);var A=function(){var t=a()(r()().mark((function t(){var n;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return x(!0),C("正在加载中"),t.next=4,(0,F.ZJ)(null==e?void 0:e.src);case 4:n=t.sent,p.current.src="",p.current.src=n,p.current.onload=function(){E()},x(!1),C("");case 10:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),M=function(){var t=a()(r()().mark((function t(n){var i;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return x(!0),C("正在保存中"),t.next=4,(0,it.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:e.title,file:n.dataUrl}});case 4:if(null==(i=t.sent)||!i.id||f){t.next=12;break}return t.next=8,(0,it.ZP)("/api/attachments/".concat(e.id,"/add_subitem.json"),{method:"post",body:{subitem_id:null==i?void 0:i.id,settings:JSON.stringify(n.state)}});case 8:0===t.sent.status&&c(),t.next=13;break;case 12:null!=i&&i.id&&c(i);case 13:x(!1),C("");case 15:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),E=function(){g.current=new hi(p.current),g.current.targetRoot=v.current,g.current.addEventListener("render",M),g.current.addEventListener("beforeclose",u),d&&(g.current.availableMarkerTypes=g.current.ALL_MARKER_TYPES,g.current.uiStyleSettings.redoButtonVisible=!0,g.current.uiStyleSettings.notesButtonVisible=!0,g.current.uiStyleSettings.zoomButtonVisible=!0,g.current.uiStyleSettings.zoomOutButtonVisible=!0,g.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=g.current.uiStyleSettings,g.current.show(),null!=e&&e.snapshotData&&g.current.restoreState(e.snapshotData),setTimeout((function(){var t;window.scrollTo(0,0),(t=document.querySelector('a[href="https://markerjs.com/"]'))&&t.parentNode&&(t.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"选择"},{name:'[data-action="delete"]',title:"删除元素"},{name:'[data-action="undo"]',title:"撤销"},{name:'[data-type-name="FrameMarker"]',title:"矩形"},{name:'[data-type-name="FreehandMarker"]',title:"画线"},{name:'[data-type-name="ArrowMarker"]',title:"箭头"},{name:'[data-type-name="TextMarker"]',title:"文本"},{name:'[data-type-name="EllipseMarker"]',title:"椭圆"},{name:'[data-type-name="HighlightMarker"]',title:"方块"},{name:'[data-type-name="CalloutMarker"]',title:"注释"},{name:'[data-action="render"]',title:"保存"},{name:'[data-action="close"]',title:"退出"}].forEach((function(t){var e=document.querySelector(t.name);e&&e.setAttribute("title",t.title)}))}),300)};return(0,at.jsx)(h.Fragment,{children:(null==e?void 0:e.visible)&&(0,at.jsx)(_.Z,{spinning:b,tip:k,style:{position:"absolute",width:"100vw"},children:(0,at.jsx)("div",{ref:v,className:Lt()(fn,n,i?gn:""),style:s,children:(0,at.jsx)("img",{className:pn,ref:p})})})})},fi=n(67390),pi=(0,d.connect)((function(t){return{classroomList:t.classroomList}}))((function(t){var e,n=t.className,i=t.style,o=t.dataSource,s=void 0===o?[]:o,u=t.authority,c=void 0!==u&&u,d=t.callback,f=t.showDimensions,p=void 0===f||f,g=t.classroomList,m=(0,h.useState)({content:"",type:""}),v=l()(m,2),y=v[0],w=v[1],b=(0,h.useState)({}),x=l()(b,2),S=x[0],P=x[1],k=(0,h.useState)(!1),C=l()(k,2),A=C[0],M=C[1],E=(0,h.useState)({title:"",visible:!1,src:"",snapshotData:{}}),L=l()(E,2),T=L[0],N=L[1],j=(0,h.useRef)(),I=function(){var t=a()(r()().mark((function t(e){var n;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(P(e),"txt"!==e.file_type){t.next=6;break}return t.next=4,(0,it.ZP)(e.url,{method:"get",headers:{"Content-Type":"application/xml"}});case 4:n=t.sent,j.current=n;case 6:w({type:e.file_type,content:fi.Z.API_SERVER+e.url});case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),B=function(t){var e;N({visible:!0,src:fi.Z.API_SERVER+t.url,id:t.id,title:t.title,snapshotData:null==t||null===(e=t.subitem)||void 0===e?void 0:e.settings})},O=function(){var t=a()(r()().mark((function t(e){var n;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:w({type:e.file_type,content:fi.Z.API_SERVER+(null==e||null===(n=e.subitem)||void 0===n?void 0:n.url)});case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();return null!=s&&s.length?(0,at.jsxs)(h.Fragment,{children:[(0,at.jsx)("div",{className:Lt()(on,n),style:i,children:s.map((function(t,e){var n,i,r;return(0,at.jsxs)("div",{className:an,children:[(0,at.jsxs)("div",{className:sn,onClick:function(){return I(t)},children:[(0,at.jsx)("i",{className:"iconfont icon-fujian1"}),(0,at.jsx)("span",{title:t.title,children:t.title})]}),(0,at.jsx)("div",{className:ln,children:t.filesize}),(0,at.jsxs)("div",{className:un,onClick:function(){var e,n;!(0,xt.Rm)()||null!==(e=g.AssistantObject.normal)&&void 0!==e&&e.can_download?(0,F.Nd)("","".concat(fi.Z.API_SERVER).concat(null===(n=t.url)||void 0===n?void 0:n.replace("disposition=inline",""))):H.ZP.warning("您未获取此权限,需向课堂管理员申请权限才能使用此功能")},children:[(0,at.jsx)("i",{className:"iconfont icon-xiazai4"}),"下载"]}),!["other","download"].includes(null==t?void 0:t.file_type)&&(0,at.jsxs)("div",{className:cn,onClick:function(){return I(t)},children:[(0,at.jsx)("i",{className:"iconfont icon-yulan"}),"预览"]}),["image"].includes(null==t?void 0:t.file_type)&&p&&(c?(0,at.jsxs)("div",{className:hn,onClick:function(){return B(t)},children:[(0,at.jsx)("i",{className:"iconfont icon-pizhu"}),null!==(n=t.subitem)&&void 0!==n&&n.id?"修改批注":"批注"]}):(null===(i=t.subitem)||void 0===i?void 0:i.id)&&(0,at.jsxs)("div",{className:hn,onClick:function(){return O(t)},children:[(0,at.jsx)("i",{className:"iconfont icon-chakanlaoshipizhu1"}),"查看老师批注"]})),["image"].includes(null==t?void 0:t.file_type)&&(null===(r=t.subitem)||void 0===r?void 0:r.id)&&(0,at.jsxs)("div",{className:un,style:{marginLeft:20},onClick:function(){var e;(0,F.Nd)("","".concat(fi.Z.API_SERVER).concat(null==t||null===(e=t.subitem)||void 0===e||null===(e=e.url)||void 0===e?void 0:e.replace("disposition=inline","")))},children:[(0,at.jsx)("i",{className:"iconfont icon-xiazai4"}),"下载批注文件"]}),["office"].includes(null==t?void 0:t.file_type)&&(0,xt.eB)()&&["xlsx","docx","pptx"].includes(null==t?void 0:t.file_sub)&&p&&(0,at.jsxs)("div",{className:hn,onClick:function(){M(!0),I(t)},children:[(0,at.jsx)("i",{className:"iconfont icon-pizhu"}),t.is_edit?"修改批注":"批注"]}),t.is_edit&&(0,xt.dE)()&&p&&(0,at.jsxs)("div",{className:hn,onClick:function(){I(t)},children:[(0,at.jsx)("i",{className:"iconfont icon-sousuo7"}),"查看老师批注"]})]},e)}))}),(0,at.jsx)(dn.Z,{close:!0,data:null==y?void 0:y.content,type:null==y?void 0:y.type,hasMask:!0,disabledDownload:(0,xt.Rm)()&&!(null!==(e=g.AssistantObject.normal)&&void 0!==e&&e.can_download),editOffice:A?"edit":"view",monacoEditor:{value:j.current,language:"txt",onChange:function(){},options:{readOnly:!0,fontSize:14,minimap:{enabled:!1}}},onImgDimensions:c&&p&&"image"===y.type?function(){return B(S)}:null,onClose:function(){d(),M(!1),w({content:"",type:""})}}),(0,at.jsx)(di,{onOk:function(){d(),N({visible:!1})},onClose:function(){return N({visible:!1})},data:T,showFullTools:!0})]}):null}));nn().locale("ZH-cn");var gi=["","简单","中等","困难"],mi=function(t){var e,n,i,o,s=t.setScoreShow,u=t.ScoreShow,c=t.modalDdata,f=t.homeType,p=(t.homeId,(0,h.useState)(G()(G()({},(0,d.useParams)()),{},{per_page:10}))),g=l()(p,2),m=g[0],v=g[1],y=(0,h.useState)("1"),w=l()(y,2),b=w[0],x=w[1];return(0,h.useEffect)((function(){v(G()({},m))}),[]),(0,at.jsx)("div",{children:(0,at.jsxs)(U.Z,{title:"详情",footer:!1,open:u,width:900,centered:!0,className:Xe,onCancel:function(){s(!1)},children:[(0,at.jsx)(De.Z,{className:qe,activeKey:b,onChange:function(t){x(t)},items:[{label:"".concat("HomeworkCommon"==f?"说明":"作业描述"),key:"1"},{label:"".concat("HomeworkCommon"==f?"题目列表":"参考答案"),key:"2"}]}),"HomeworkCommon"==f?(0,at.jsxs)("div",{className:Ke,children:["1"==b&&(0,at.jsxs)("section",{className:" edu-container",style:{background:"#fff",width:"100%"},children:[!(null!=c&&c.description)&&(0,at.jsx)(Ve.Z,{customText:"暂无说明"}),(0,at.jsx)(rn.Z,{value:(null==c?void 0:c.description)||""})]}),"2"==b&&(0,at.jsxs)("div",{children:[(0,at.jsx)("section",{className:" edu-container",style:{background:"#fff",width:"100%"},children:(null==c||null===(e=c.data)||void 0===e||null===(e=e[0])||void 0===e?void 0:e.identifier)&&(0,at.jsx)(Fe.Z,{dataSource:null==c?void 0:c.data,rowKey:function(t){return null==t?void 0:t.identifier},pagination:!1,expandable:{expandedRowRender:function(t){return(0,at.jsxs)("div",{style:{padding:"10px 48px",borderRadius:2},children:[(0,at.jsxs)("p",{children:["题目:",null==t?void 0:t.name]}),(0,at.jsxs)("p",{children:["描述:",null==t?void 0:t.description]}),!(0,xt.dE)()&&(0,at.jsxs)("p",{children:["题目解析:",(0,at.jsx)(rn.Z,{style:{fontSize:"14px"},value:(null==t?void 0:t.analysis)||"暂无解析"})]})]})},defaultExpandedRowKeys:null==c||null===(n=c.data)||void 0===n||null===(n=n[0])||void 0===n?void 0:n.identifier},columns:[{title:"题目",dataIndex:"name",ellipsis:!0,key:"name"},{title:"难度",dataIndex:"difficult",key:"difficult",render:function(t,e,n){return(0,at.jsx)("div",{children:gi[t]})}},{title:"知识点",dataIndex:"tag_discipline",ellipsis:!0,key:"tag_discipline"},{title:"操作",dataIndex:"identifier",key:"identifier",render:function(t,e,n){return(0,at.jsx)("div",{children:(0,at.jsx)("a",{onClick:a()(r()().mark((function t(){var n;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,it.ZP)("/api/problems/".concat(null==e?void 0:e.identifier,"/start.json"),{method:"get"});case 2:(n=t.sent)&&window.open("/myproblems/".concat(null==n?void 0:n.identifier,"?type=1&backUrl=/paths/").concat(null==m?void 0:m.pathId));case 4:case"end":return t.stop()}}),t)}))),children:"体验"})})}}]})}),(0,at.jsx)("aside",{className:"tc mt30 pb30",children:(0,at.jsx)(nt.Z,{defaultCurrent:1,total:null==c?void 0:c.count,hideOnSinglePage:!0,showTotal:function(t){return(0,at.jsxs)("span",{children:["共",t,"条"]})},current:m.page||1,pageSize:m.per_page||10,onChange:function(t,e){m.page=t,m.per_page=e,v(G()({},m))}})})]})]}):(0,at.jsxs)("div",{className:Ke,children:["1"==b&&(null!=c&&c.description||(null==c||null===(i=c.attachments)||void 0===i?void 0:i.length)>0?"group"==(null==c?void 0:c.homework_type)?(0,at.jsxs)("div",{children:[(0,at.jsx)(rn.Z,{value:null==c?void 0:c.description,className:Qe,style:{color:"#5f6367"}}),(0,at.jsxs)("div",{className:Je,children:["分组要求",(0,at.jsxs)("span",{className:$e,children:[null==c?void 0:c.min_num,"-",null==c?void 0:c.max_num]}),"人",(0,at.jsx)("span",{className:tn,children:"(学生提交作品时需要关联同组成员,组内成员作品共享)"})]}),(0,at.jsxs)("div",{className:Je,children:["基于项目实施",(0,at.jsx)("span",{className:$e,children:null!=c&&c.base_on_project?"是":"否"}),(0,at.jsx)("span",{className:tn,children:null!=c&&c.base_on_project?"(学生必须在平台创建项目,项目管理员可以提交作品)":"(学生不需要在本平台创建项目,所有学生可以提交作品)"})]}),(0,at.jsx)(pi,{callback:function(){},dataSource:null==c?void 0:c.attachments})]}):(0,at.jsxs)("div",{children:[(0,at.jsx)(rn.Z,{value:null==c?void 0:c.description,style:{color:"#5f6367",fontSize:14}}),(0,at.jsx)(pi,{callback:function(){},dataSource:null==c?void 0:c.attachments})]}):(0,at.jsx)(Ve.Z,{styles:{margin:"80px auto"}})),"2"==b&&(null!=c&&c.reference_answer||(null==c||null===(o=c.ref_attachments)||void 0===o?void 0:o.length)>0?(0,at.jsxs)("div",{children:[(0,at.jsx)(rn.Z,{value:null==c?void 0:c.reference_answer,style:{color:"#5f6367",fontSize:14}}),(0,at.jsx)(pi,{callback:function(){},dataSource:null==c?void 0:c.ref_attachments})]}):(0,at.jsx)(Ve.Z,{styles:{margin:"80px auto"}}))]})]})})},vi=n(31468),yi=n.n(vi),wi=n(82100),bi=n.n(wi),xi=n(29186),Si=n.n(xi),Pi=function(){function t(){bi()(this,t)}return Si()(t,null,[{key:"install",value:function(){Object.setPrototypeOf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Object.assign=Object.assign||function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var i=arguments[n];if(null!=i)for(var r in i)i.hasOwnProperty(r)&&(e[r]=i[r])}return e},"function"!=typeof self.Promise&&n(3867).polyfill()}}]),t}();Pi.install();var ki=Pi,Ci=n(86204),Ai=n.n(Ci),Mi=function(){function t(){bi()(this,t)}return Si()(t,null,[{key:"e",value:function(e,n){e&&!t.FORCE_GLOBAL_TAG||(e=t.GLOBAL_TAG);var i="[".concat(e,"] > ").concat(n);t.ENABLE_CALLBACK&&t.emitter.emit("log","error",i),t.ENABLE_ERROR&&(console.error?console.error(i):console.warn?console.warn(i):console.log(i))}},{key:"i",value:function(e,n){e&&!t.FORCE_GLOBAL_TAG||(e=t.GLOBAL_TAG);var i="[".concat(e,"] > ").concat(n);t.ENABLE_CALLBACK&&t.emitter.emit("log","info",i),t.ENABLE_INFO&&(console.info?console.info(i):console.log(i))}},{key:"w",value:function(e,n){e&&!t.FORCE_GLOBAL_TAG||(e=t.GLOBAL_TAG);var i="[".concat(e,"] > ").concat(n);t.ENABLE_CALLBACK&&t.emitter.emit("log","warn",i),t.ENABLE_WARN&&(console.warn?console.warn(i):console.log(i))}},{key:"d",value:function(e,n){e&&!t.FORCE_GLOBAL_TAG||(e=t.GLOBAL_TAG);var i="[".concat(e,"] > ").concat(n);t.ENABLE_CALLBACK&&t.emitter.emit("log","debug",i),t.ENABLE_DEBUG&&(console.debug?console.debug(i):console.log(i))}},{key:"v",value:function(e,n){e&&!t.FORCE_GLOBAL_TAG||(e=t.GLOBAL_TAG);var i="[".concat(e,"] > ").concat(n);t.ENABLE_CALLBACK&&t.emitter.emit("log","verbose",i),t.ENABLE_VERBOSE&&console.log(i)}}]),t}();Mi.GLOBAL_TAG="flv.js",Mi.FORCE_GLOBAL_TAG=!1,Mi.ENABLE_ERROR=!0,Mi.ENABLE_INFO=!0,Mi.ENABLE_WARN=!0,Mi.ENABLE_DEBUG=!0,Mi.ENABLE_VERBOSE=!0,Mi.ENABLE_CALLBACK=!1,Mi.emitter=new(Ai());var Ei=Mi,Li=function(){function t(){bi()(this,t),this._firstCheckpoint=0,this._lastCheckpoint=0,this._intervalBytes=0,this._totalBytes=0,this._lastSecondBytes=0,self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now}return Si()(t,[{key:"reset",value:function(){this._firstCheckpoint=this._lastCheckpoint=0,this._totalBytes=this._intervalBytes=0,this._lastSecondBytes=0}},{key:"addBytes",value:function(t){0===this._firstCheckpoint?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=t,this._totalBytes+=t):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=t,this._totalBytes+=t):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=t,this._totalBytes+=t,this._lastCheckpoint=this._now())}},{key:"currentKBps",get:function(){this.addBytes(0);var t=(this._now()-this._lastCheckpoint)/1e3;return 0==t&&(t=1),this._intervalBytes/t/1024}},{key:"lastSecondKBps",get:function(){return this.addBytes(0),0!==this._lastSecondBytes?this._lastSecondBytes/1024:this._now()-this._lastCheckpoint>=500?this.currentKBps:0}},{key:"averageKBps",get:function(){var t=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/t/1024}}]),t}(),Ti=n(80619),Ni=n.n(Ti),ji=n(47074),Ii=n.n(ji),Bi=function(){function t(e){bi()(this,t),this._message=e}return Si()(t,[{key:"name",get:function(){return"RuntimeException"}},{key:"message",get:function(){return this._message}},{key:"toString",value:function(){return this.name+": "+this.message}}]),t}(),Oi=function(t){Ni()(n,t);var e=Ii()(n);function n(t){return bi()(this,n),e.call(this,t)}return Si()(n,[{key:"name",get:function(){return"IllegalStateException"}}]),n}(Bi),Di=function(t){Ni()(n,t);var e=Ii()(n);function n(t){return bi()(this,n),e.call(this,t)}return Si()(n,[{key:"name",get:function(){return"InvalidArgumentException"}}]),n}(Bi),Ri=function(t){Ni()(n,t);var e=Ii()(n);function n(t){return bi()(this,n),e.call(this,t)}return Si()(n,[{key:"name",get:function(){return"NotImplementedException"}}]),n}(Bi),Fi={kIdle:0,kConnecting:1,kBuffering:2,kError:3,kComplete:4},zi={OK:"OK",EXCEPTION:"Exception",HTTP_STATUS_CODE_INVALID:"HttpStatusCodeInvalid",CONNECTING_TIMEOUT:"ConnectingTimeout",EARLY_EOF:"EarlyEof",UNRECOVERABLE_EARLY_EOF:"UnrecoverableEarlyEof"},Gi=function(){function t(e){bi()(this,t),this._type=e||"undefined",this._status=Fi.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}return Si()(t,[{key:"destroy",value:function(){this._status=Fi.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}},{key:"isWorking",value:function(){return this._status===Fi.kConnecting||this._status===Fi.kBuffering}},{key:"type",get:function(){return this._type}},{key:"status",get:function(){return this._status}},{key:"needStashBuffer",get:function(){return this._needStash}},{key:"onContentLengthKnown",get:function(){return this._onContentLengthKnown},set:function(t){this._onContentLengthKnown=t}},{key:"onURLRedirect",get:function(){return this._onURLRedirect},set:function(t){this._onURLRedirect=t}},{key:"onDataArrival",get:function(){return this._onDataArrival},set:function(t){this._onDataArrival=t}},{key:"onError",get:function(){return this._onError},set:function(t){this._onError=t}},{key:"onComplete",get:function(){return this._onComplete},set:function(t){this._onComplete=t}},{key:"open",value:function(t,e){throw new Ri("Unimplemented abstract function!")}},{key:"abort",value:function(){throw new Ri("Unimplemented abstract function!")}}]),t}(),Ui=n(4811),Hi=n.n(Ui),_i=n(34577),Zi=n.n(_i),Wi={};!function(){var t=self.navigator.userAgent.toLowerCase(),e=/(edge)\/([\w.]+)/.exec(t)||/(opr)[\/]([\w.]+)/.exec(t)||/(chrome)[ \/]([\w.]+)/.exec(t)||/(iemobile)[\/]([\w.]+)/.exec(t)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(t)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(t)||/(webkit)[ \/]([\w.]+)/.exec(t)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(t)||/(msie) ([\w.]+)/.exec(t)||t.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(t)||t.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(t)||[],n=/(ipad)/.exec(t)||/(ipod)/.exec(t)||/(windows phone)/.exec(t)||/(iphone)/.exec(t)||/(kindle)/.exec(t)||/(android)/.exec(t)||/(windows)/.exec(t)||/(mac)/.exec(t)||/(linux)/.exec(t)||/(cros)/.exec(t)||[],i={browser:e[5]||e[3]||e[1]||"",version:e[2]||e[4]||"0",majorVersion:e[4]||e[2]||"0",platform:n[0]||""},r={};if(i.browser){r[i.browser]=!0;var o=i.majorVersion.split(".");r.version={major:parseInt(i.majorVersion,10),string:i.version},o.length>1&&(r.version.minor=parseInt(o[1],10)),o.length>2&&(r.version.build=parseInt(o[2],10))}if(i.platform&&(r[i.platform]=!0),(r.chrome||r.opr||r.safari)&&(r.webkit=!0),r.rv||r.iemobile){r.rv&&delete r.rv;var a="msie";i.browser=a,r[a]=!0}if(r.edge){delete r.edge;var s="msedge";i.browser=s,r[s]=!0}if(r.opr){var l="opera";i.browser=l,r[l]=!0}if(r.safari&&r.android){var u="android";i.browser=u,r[u]=!0}for(var c in r.name=i.browser,r.platform=i.platform,Wi)Wi.hasOwnProperty(c)&&delete Wi[c];Object.assign(Wi,r)}();var Vi=Wi,Yi=function(t){Ni()(n,t);var e=Ii()(n);function n(t,i){var r;return bi()(this,n),(r=e.call(this,"fetch-stream-loader")).TAG="FetchStreamLoader",r._seekHandler=t,r._config=i,r._needStash=!0,r._requestAbort=!1,r._contentLength=null,r._receivedLength=0,r}return Si()(n,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),Hi()(Zi()(n.prototype),"destroy",this).call(this)}},{key:"open",value:function(t,e){var n=this;this._dataSource=t,this._range=e;var i=t.url;this._config.reuseRedirectedURL&&null!=t.redirectedURL&&(i=t.redirectedURL);var r=this._seekHandler.getConfig(i,e),o=new self.Headers;if("object"===yi()(r.headers)){var a=r.headers;for(var s in a)a.hasOwnProperty(s)&&o.append(s,a[s])}var l={method:"GET",headers:o,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if("object"===yi()(this._config.headers))for(var u in this._config.headers)o.append(u,this._config.headers[u]);!1===t.cors&&(l.mode="same-origin"),t.withCredentials&&(l.credentials="include"),t.referrerPolicy&&(l.referrerPolicy=t.referrerPolicy),this._status=Fi.kConnecting,self.fetch(r.url,l).then((function(t){if(n._requestAbort)return n._requestAbort=!1,void(n._status=Fi.kIdle);if(t.ok&&t.status>=200&&t.status<=299){if(t.url!==r.url&&n._onURLRedirect){var e=n._seekHandler.removeURLParameters(t.url);n._onURLRedirect(e)}var i=t.headers.get("Content-Length");return null!=i&&(n._contentLength=parseInt(i),0!==n._contentLength&&n._onContentLengthKnown&&n._onContentLengthKnown(n._contentLength)),n._pump.call(n,t.body.getReader())}if(n._status=Fi.kError,!n._onError)throw new Bi("FetchStreamLoader: Http code invalid, "+t.status+" "+t.statusText);n._onError(zi.HTTP_STATUS_CODE_INVALID,{code:t.status,msg:t.statusText})})).catch((function(t){if(n._status=Fi.kError,!n._onError)throw t;n._onError(zi.EXCEPTION,{code:-1,msg:t.message})}))}},{key:"abort",value:function(){this._requestAbort=!0}},{key:"_pump",value:function(t){var e=this;return t.read().then((function(n){if(n.done)if(null!==e._contentLength&&e._receivedLength<e._contentLength){e._status=Fi.kError;var i=zi.EARLY_EOF,r={code:-1,msg:"Fetch stream meet Early-EOF"};if(!e._onError)throw new Bi(r.msg);e._onError(i,r)}else e._status=Fi.kComplete,e._onComplete&&e._onComplete(e._range.from,e._range.from+e._receivedLength-1);else{if(!0===e._requestAbort)return e._requestAbort=!1,e._status=Fi.kComplete,t.cancel();e._status=Fi.kBuffering;var o=n.value.buffer,a=e._range.from+e._receivedLength;e._receivedLength+=o.byteLength,e._onDataArrival&&e._onDataArrival(o,a,e._receivedLength),e._pump(t)}})).catch((function(t){if(11!==t.code||!Vi.msedge){e._status=Fi.kError;var n=0,i=null;if(19!==t.code&&"network error"!==t.message||!(null===e._contentLength||null!==e._contentLength&&e._receivedLength<e._contentLength)?(n=zi.EXCEPTION,i={code:t.code,msg:t.message}):(n=zi.EARLY_EOF,i={code:t.code,msg:"Fetch stream meet Early-EOF"}),!e._onError)throw new Bi(i.msg);e._onError(n,i)}}))}}],[{key:"isSupported",value:function(){try{var t=Vi.msedge&&Vi.version.minor>=15048,e=!Vi.msedge||t;return self.fetch&&self.ReadableStream&&e}catch(t){return!1}}}]),n}(Gi),Xi=Yi,qi=function(t){Ni()(n,t);var e=Ii()(n);function n(t,i){var r;return bi()(this,n),(r=e.call(this,"xhr-moz-chunked-loader")).TAG="MozChunkedLoader",r._seekHandler=t,r._config=i,r._needStash=!0,r._xhr=null,r._requestAbort=!1,r._contentLength=null,r._receivedLength=0,r}return Si()(n,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onloadend=null,this._xhr.onerror=null,this._xhr=null),Hi()(Zi()(n.prototype),"destroy",this).call(this)}},{key:"open",value:function(t,e){this._dataSource=t,this._range=e;var n=t.url;this._config.reuseRedirectedURL&&null!=t.redirectedURL&&(n=t.redirectedURL);var i=this._seekHandler.getConfig(n,e);this._requestURL=i.url;var r=this._xhr=new XMLHttpRequest;if(r.open("GET",i.url,!0),r.responseType="moz-chunked-arraybuffer",r.onreadystatechange=this._onReadyStateChange.bind(this),r.onprogress=this._onProgress.bind(this),r.onloadend=this._onLoadEnd.bind(this),r.onerror=this._onXhrError.bind(this),t.withCredentials&&(r.withCredentials=!0),"object"===yi()(i.headers)){var o=i.headers;for(var a in o)o.hasOwnProperty(a)&&r.setRequestHeader(a,o[a])}if("object"===yi()(this._config.headers)){var s=this._config.headers;for(var l in s)s.hasOwnProperty(l)&&r.setRequestHeader(l,s[l])}this._status=Fi.kConnecting,r.send()}},{key:"abort",value:function(){this._requestAbort=!0,this._xhr&&this._xhr.abort(),this._status=Fi.kComplete}},{key:"_onReadyStateChange",value:function(t){var e=t.target;if(2===e.readyState){if(null!=e.responseURL&&e.responseURL!==this._requestURL&&this._onURLRedirect){var n=this._seekHandler.removeURLParameters(e.responseURL);this._onURLRedirect(n)}if(0!==e.status&&(e.status<200||e.status>299)){if(this._status=Fi.kError,!this._onError)throw new Bi("MozChunkedLoader: Http code invalid, "+e.status+" "+e.statusText);this._onError(zi.HTTP_STATUS_CODE_INVALID,{code:e.status,msg:e.statusText})}else this._status=Fi.kBuffering}}},{key:"_onProgress",value:function(t){if(this._status!==Fi.kError){null===this._contentLength&&null!==t.total&&0!==t.total&&(this._contentLength=t.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength));var e=t.target.response,n=this._range.from+this._receivedLength;this._receivedLength+=e.byteLength,this._onDataArrival&&this._onDataArrival(e,n,this._receivedLength)}}},{key:"_onLoadEnd",value:function(t){!0!==this._requestAbort?this._status!==Fi.kError&&(this._status=Fi.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)):this._requestAbort=!1}},{key:"_onXhrError",value:function(t){this._status=Fi.kError;var e=0,n=null;if(this._contentLength&&t.loaded<this._contentLength?(e=zi.EARLY_EOF,n={code:-1,msg:"Moz-Chunked stream meet Early-Eof"}):(e=zi.EXCEPTION,n={code:-1,msg:t.constructor.name+" "+t.type}),!this._onError)throw new Bi(n.msg);this._onError(e,n)}}],[{key:"isSupported",value:function(){try{var t=new XMLHttpRequest;return t.open("GET","https://example.com",!0),t.responseType="moz-chunked-arraybuffer","moz-chunked-arraybuffer"===t.responseType}catch(t){return Ei.w("MozChunkedLoader",t.message),!1}}}]),n}(Gi),Ki=qi,Qi=function(t){Ni()(n,t);var e=Ii()(n);function n(t,i){var r;return bi()(this,n),(r=e.call(this,"xhr-range-loader")).TAG="RangeLoader",r._seekHandler=t,r._config=i,r._needStash=!1,r._chunkSizeKBList=[128,256,384,512,768,1024,1536,2048,3072,4096,5120,6144,7168,8192],r._currentChunkSizeKB=384,r._currentSpeedNormalized=0,r._zeroSpeedChunkCount=0,r._xhr=null,r._speedSampler=new Li,r._requestAbort=!1,r._waitForTotalLength=!1,r._totalLengthReceived=!1,r._currentRequestURL=null,r._currentRedirectedURL=null,r._currentRequestRange=null,r._totalLength=null,r._contentLength=null,r._receivedLength=0,r._lastTimeLoaded=0,r}return Si()(n,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr=null),Hi()(Zi()(n.prototype),"destroy",this).call(this)}},{key:"currentSpeed",get:function(){return this._speedSampler.lastSecondKBps}},{key:"open",value:function(t,e){this._dataSource=t,this._range=e,this._status=Fi.kConnecting;var n=!1;null!=this._dataSource.filesize&&0!==this._dataSource.filesize&&(n=!0,this._totalLength=this._dataSource.filesize),this._totalLengthReceived||n?this._openSubRange():(this._waitForTotalLength=!0,this._internalOpen(this._dataSource,{from:0,to:-1}))}},{key:"_openSubRange",value:function(){var t=1024*this._currentChunkSizeKB,e=this._range.from+this._receivedLength,n=e+t;null!=this._contentLength&&n-this._range.from>=this._contentLength&&(n=this._range.from+this._contentLength-1),this._currentRequestRange={from:e,to:n},this._internalOpen(this._dataSource,this._currentRequestRange)}},{key:"_internalOpen",value:function(t,e){this._lastTimeLoaded=0;var n=t.url;this._config.reuseRedirectedURL&&(null!=this._currentRedirectedURL?n=this._currentRedirectedURL:null!=t.redirectedURL&&(n=t.redirectedURL));var i=this._seekHandler.getConfig(n,e);this._currentRequestURL=i.url;var r=this._xhr=new XMLHttpRequest;if(r.open("GET",i.url,!0),r.responseType="arraybuffer",r.onreadystatechange=this._onReadyStateChange.bind(this),r.onprogress=this._onProgress.bind(this),r.onload=this._onLoad.bind(this),r.onerror=this._onXhrError.bind(this),t.withCredentials&&(r.withCredentials=!0),"object"===yi()(i.headers)){var o=i.headers;for(var a in o)o.hasOwnProperty(a)&&r.setRequestHeader(a,o[a])}if("object"===yi()(this._config.headers)){var s=this._config.headers;for(var l in s)s.hasOwnProperty(l)&&r.setRequestHeader(l,s[l])}r.send()}},{key:"abort",value:function(){this._requestAbort=!0,this._internalAbort(),this._status=Fi.kComplete}},{key:"_internalAbort",value:function(){this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr.abort(),this._xhr=null)}},{key:"_onReadyStateChange",value:function(t){var e=t.target;if(2===e.readyState){if(null!=e.responseURL){var n=this._seekHandler.removeURLParameters(e.responseURL);e.responseURL!==this._currentRequestURL&&n!==this._currentRedirectedURL&&(this._currentRedirectedURL=n,this._onURLRedirect&&this._onURLRedirect(n))}if(e.status>=200&&e.status<=299){if(this._waitForTotalLength)return;this._status=Fi.kBuffering}else{if(this._status=Fi.kError,!this._onError)throw new Bi("RangeLoader: Http code invalid, "+e.status+" "+e.statusText);this._onError(zi.HTTP_STATUS_CODE_INVALID,{code:e.status,msg:e.statusText})}}}},{key:"_onProgress",value:function(t){if(this._status!==Fi.kError){if(null===this._contentLength){var e=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,e=!0;var n=t.total;this._internalAbort(),null!=n&0!==n&&(this._totalLength=n)}if(-1===this._range.to?this._contentLength=this._totalLength-this._range.from:this._contentLength=this._range.to-this._range.from+1,e)return void this._openSubRange();this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}var i=t.loaded-this._lastTimeLoaded;this._lastTimeLoaded=t.loaded,this._speedSampler.addBytes(i)}}},{key:"_normalizeSpeed",value:function(t){var e=this._chunkSizeKBList,n=e.length-1,i=0,r=0,o=n;if(t<e[0])return e[0];for(;r<=o;){if((i=r+Math.floor((o-r)/2))===n||t>=e[i]&&t<e[i+1])return e[i];e[i]<t?r=i+1:o=i-1}}},{key:"_onLoad",value:function(t){if(this._status!==Fi.kError)if(this._waitForTotalLength)this._waitForTotalLength=!1;else{this._lastTimeLoaded=0;var e=this._speedSampler.lastSecondKBps;if(0===e&&(this._zeroSpeedChunkCount++,this._zeroSpeedChunkCount>=3&&(e=this._speedSampler.currentKBps)),0!==e){var n=this._normalizeSpeed(e);this._currentSpeedNormalized!==n&&(this._currentSpeedNormalized=n,this._currentChunkSizeKB=n)}var i=t.target.response,r=this._range.from+this._receivedLength;this._receivedLength+=i.byteLength;var o=!1;null!=this._contentLength&&this._receivedLength<this._contentLength?this._openSubRange():o=!0,this._onDataArrival&&this._onDataArrival(i,r,this._receivedLength),o&&(this._status=Fi.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1))}}},{key:"_onXhrError",value:function(t){this._status=Fi.kError;var e=0,n=null;if(this._contentLength&&this._receivedLength>0&&this._receivedLength<this._contentLength?(e=zi.EARLY_EOF,n={code:-1,msg:"RangeLoader meet Early-Eof"}):(e=zi.EXCEPTION,n={code:-1,msg:t.constructor.name+" "+t.type}),!this._onError)throw new Bi(n.msg);this._onError(e,n)}}],[{key:"isSupported",value:function(){try{var t=new XMLHttpRequest;return t.open("GET","https://example.com",!0),t.responseType="arraybuffer","arraybuffer"===t.responseType}catch(t){return Ei.w("RangeLoader",t.message),!1}}}]),n}(Gi),Ji=Qi,$i=function(t){Ni()(n,t);var e=Ii()(n);function n(){var t;return bi()(this,n),(t=e.call(this,"websocket-loader")).TAG="WebSocketLoader",t._needStash=!0,t._ws=null,t._requestAbort=!1,t._receivedLength=0,t}return Si()(n,[{key:"destroy",value:function(){this._ws&&this.abort(),Hi()(Zi()(n.prototype),"destroy",this).call(this)}},{key:"open",value:function(t){try{var e=this._ws=new self.WebSocket(t.url);e.binaryType="arraybuffer",e.onopen=this._onWebSocketOpen.bind(this),e.onclose=this._onWebSocketClose.bind(this),e.onmessage=this._onWebSocketMessage.bind(this),e.onerror=this._onWebSocketError.bind(this),this._status=Fi.kConnecting}catch(t){this._status=Fi.kError;var n={code:t.code,msg:t.message};if(!this._onError)throw new Bi(n.msg);this._onError(zi.EXCEPTION,n)}}},{key:"abort",value:function(){var t=this._ws;!t||0!==t.readyState&&1!==t.readyState||(this._requestAbort=!0,t.close()),this._ws=null,this._status=Fi.kComplete}},{key:"_onWebSocketOpen",value:function(t){this._status=Fi.kBuffering}},{key:"_onWebSocketClose",value:function(t){!0!==this._requestAbort?(this._status=Fi.kComplete,this._onComplete&&this._onComplete(0,this._receivedLength-1)):this._requestAbort=!1}},{key:"_onWebSocketMessage",value:function(t){var e=this;if(t.data instanceof ArrayBuffer)this._dispatchArrayBuffer(t.data);else if(t.data instanceof Blob){var n=new FileReader;n.onload=function(){e._dispatchArrayBuffer(n.result)},n.readAsArrayBuffer(t.data)}else{this._status=Fi.kError;var i={code:-1,msg:"Unsupported WebSocket message type: "+t.data.constructor.name};if(!this._onError)throw new Bi(i.msg);this._onError(zi.EXCEPTION,i)}}},{key:"_dispatchArrayBuffer",value:function(t){var e=t,n=this._receivedLength;this._receivedLength+=e.byteLength,this._onDataArrival&&this._onDataArrival(e,n,this._receivedLength)}},{key:"_onWebSocketError",value:function(t){this._status=Fi.kError;var e={code:t.code,msg:t.message};if(!this._onError)throw new Bi(e.msg);this._onError(zi.EXCEPTION,e)}}],[{key:"isSupported",value:function(){try{return void 0!==self.WebSocket}catch(t){return!1}}}]),n}(Gi),tr=$i,er=function(){function t(e){bi()(this,t),this._zeroStart=e||!1}return Si()(t,[{key:"getConfig",value:function(t,e){var n,i={};0!==e.from||-1!==e.to?(n=-1!==e.to?"bytes=".concat(e.from.toString(),"-").concat(e.to.toString()):"bytes=".concat(e.from.toString(),"-"),i.Range=n):this._zeroStart&&(i.Range="bytes=0-");return{url:t,headers:i}}},{key:"removeURLParameters",value:function(t){return t}}]),t}(),nr=function(){function t(e,n){bi()(this,t),this._startName=e,this._endName=n}return Si()(t,[{key:"getConfig",value:function(t,e){var n=t;if(0!==e.from||-1!==e.to){var i=!0;-1===n.indexOf("?")&&(n+="?",i=!1),i&&(n+="&"),n+="".concat(this._startName,"=").concat(e.from.toString()),-1!==e.to&&(n+="&".concat(this._endName,"=").concat(e.to.toString()))}return{url:n,headers:{}}}},{key:"removeURLParameters",value:function(t){var e=t.split("?")[0],n=void 0,i=t.indexOf("?");-1!==i&&(n=t.substring(i+1));var r="";if(null!=n&&n.length>0)for(var o=n.split("&"),a=0;a<o.length;a++){var s=o[a].split("="),l=a>0;s[0]!==this._startName&&s[0]!==this._endName&&(l&&(r+="&"),r+=o[a])}return 0===r.length?e:e+"?"+r}}]),t}(),ir=nr,rr=function(){function t(e,n,i){bi()(this,t),this.TAG="IOController",this._config=n,this._extraData=i,this._stashInitialSize=393216,null!=n.stashInitialSize&&n.stashInitialSize>0&&(this._stashInitialSize=n.stashInitialSize),this._stashUsed=0,this._stashSize=this._stashInitialSize,this._bufferSize=3145728,this._stashBuffer=new ArrayBuffer(this._bufferSize),this._stashByteStart=0,this._enableStash=!0,!1===n.enableStashBuffer&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=e,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(e.url),this._refTotalLength=e.filesize?e.filesize:null,this._totalLength=this._refTotalLength,this._fullRequestFlag=!1,this._currentRange=null,this._redirectedURL=null,this._speedNormalized=0,this._speedSampler=new Li,this._speedNormalizeList=[64,128,256,384,512,768,1024,1536,2048,3072,4096],this._isEarlyEofReconnecting=!1,this._paused=!1,this._resumeFrom=0,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._selectSeekHandler(),this._selectLoader(),this._createLoader()}return Si()(t,[{key:"destroy",value:function(){this._loader.isWorking()&&this._loader.abort(),this._loader.destroy(),this._loader=null,this._loaderClass=null,this._dataSource=null,this._stashBuffer=null,this._stashUsed=this._stashSize=this._bufferSize=this._stashByteStart=0,this._currentRange=null,this._speedSampler=null,this._isEarlyEofReconnecting=!1,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._extraData=null}},{key:"isWorking",value:function(){return this._loader&&this._loader.isWorking()&&!this._paused}},{key:"isPaused",value:function(){return this._paused}},{key:"status",get:function(){return this._loader.status}},{key:"extraData",get:function(){return this._extraData},set:function(t){this._extraData=t}},{key:"onDataArrival",get:function(){return this._onDataArrival},set:function(t){this._onDataArrival=t}},{key:"onSeeked",get:function(){return this._onSeeked},set:function(t){this._onSeeked=t}},{key:"onError",get:function(){return this._onError},set:function(t){this._onError=t}},{key:"onComplete",get:function(){return this._onComplete},set:function(t){this._onComplete=t}},{key:"onRedirect",get:function(){return this._onRedirect},set:function(t){this._onRedirect=t}},{key:"onRecoveredEarlyEof",get:function(){return this._onRecoveredEarlyEof},set:function(t){this._onRecoveredEarlyEof=t}},{key:"currentURL",get:function(){return this._dataSource.url}},{key:"hasRedirect",get:function(){return null!=this._redirectedURL||null!=this._dataSource.redirectedURL}},{key:"currentRedirectedURL",get:function(){return this._redirectedURL||this._dataSource.redirectedURL}},{key:"currentSpeed",get:function(){return this._loaderClass===Ji?this._loader.currentSpeed:this._speedSampler.lastSecondKBps}},{key:"loaderType",get:function(){return this._loader.type}},{key:"_selectSeekHandler",value:function(){var t=this._config;if("range"===t.seekType)this._seekHandler=new er(this._config.rangeLoadZeroStart);else if("param"===t.seekType){var e=t.seekParamStart||"bstart",n=t.seekParamEnd||"bend";this._seekHandler=new ir(e,n)}else{if("custom"!==t.seekType)throw new Di("Invalid seekType in config: ".concat(t.seekType));if("function"!=typeof t.customSeekHandler)throw new Di("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new t.customSeekHandler}}},{key:"_selectLoader",value:function(){if(null!=this._config.customLoader)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=tr;else if(Xi.isSupported())this._loaderClass=Xi;else if(Ki.isSupported())this._loaderClass=Ki;else{if(!Ji.isSupported())throw new Bi("Your browser doesn't support xhr with arraybuffer responseType!");this._loaderClass=Ji}}},{key:"_createLoader",value:function(){this._loader=new this._loaderClass(this._seekHandler,this._config),!1===this._loader.needStashBuffer&&(this._enableStash=!1),this._loader.onContentLengthKnown=this._onContentLengthKnown.bind(this),this._loader.onURLRedirect=this._onURLRedirect.bind(this),this._loader.onDataArrival=this._onLoaderChunkArrival.bind(this),this._loader.onComplete=this._onLoaderComplete.bind(this),this._loader.onError=this._onLoaderError.bind(this)}},{key:"open",value:function(t){this._currentRange={from:0,to:-1},t&&(this._currentRange.from=t),this._speedSampler.reset(),t||(this._fullRequestFlag=!0),this._loader.open(this._dataSource,Object.assign({},this._currentRange))}},{key:"abort",value:function(){this._loader.abort(),this._paused&&(this._paused=!1,this._resumeFrom=0)}},{key:"pause",value:function(){this.isWorking()&&(this._loader.abort(),0!==this._stashUsed?(this._resumeFrom=this._stashByteStart,this._currentRange.to=this._stashByteStart-1):this._resumeFrom=this._currentRange.to+1,this._stashUsed=0,this._stashByteStart=0,this._paused=!0)}},{key:"resume",value:function(){if(this._paused){this._paused=!1;var t=this._resumeFrom;this._resumeFrom=0,this._internalSeek(t,!0)}}},{key:"seek",value:function(t){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(t,!0)}},{key:"_internalSeek",value:function(t,e){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(e),this._loader.destroy(),this._loader=null;var n={from:t,to:-1};this._currentRange={from:n.from,to:-1},this._speedSampler.reset(),this._stashSize=this._stashInitialSize,this._createLoader(),this._loader.open(this._dataSource,n),this._onSeeked&&this._onSeeked()}},{key:"updateUrl",value:function(t){if(!t||"string"!=typeof t||0===t.length)throw new Di("Url must be a non-empty string!");this._dataSource.url=t}},{key:"_expandBuffer",value:function(t){for(var e=this._stashSize;e+1048576<t;)e*=2;if((e+=1048576)!==this._bufferSize){var n=new ArrayBuffer(e);if(this._stashUsed>0){var i=new Uint8Array(this._stashBuffer,0,this._stashUsed);new Uint8Array(n,0,e).set(i,0)}this._stashBuffer=n,this._bufferSize=e}}},{key:"_normalizeSpeed",value:function(t){var e=this._speedNormalizeList,n=e.length-1,i=0,r=0,o=n;if(t<e[0])return e[0];for(;r<=o;){if((i=r+Math.floor((o-r)/2))===n||t>=e[i]&&t<e[i+1])return e[i];e[i]<t?r=i+1:o=i-1}}},{key:"_adjustStashSize",value:function(t){var e=0;(e=this._config.isLive||t<512?t:t>=512&&t<=1024?Math.floor(1.5*t):2*t)>8192&&(e=8192);var n=1024*e+1048576;this._bufferSize<n&&this._expandBuffer(n),this._stashSize=1024*e}},{key:"_dispatchChunks",value:function(t,e){return this._currentRange.to=e+t.byteLength-1,this._onDataArrival(t,e)}},{key:"_onURLRedirect",value:function(t){this._redirectedURL=t,this._onRedirect&&this._onRedirect(t)}},{key:"_onContentLengthKnown",value:function(t){t&&this._fullRequestFlag&&(this._totalLength=t,this._fullRequestFlag=!1)}},{key:"_onLoaderChunkArrival",value:function(t,e,n){if(!this._onDataArrival)throw new Oi("IOController: No existing consumer (onDataArrival) callback!");if(!this._paused){this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,this._onRecoveredEarlyEof&&this._onRecoveredEarlyEof()),this._speedSampler.addBytes(t.byteLength);var i=this._speedSampler.lastSecondKBps;if(0!==i){var r=this._normalizeSpeed(i);this._speedNormalized!==r&&(this._speedNormalized=r,this._adjustStashSize(r))}if(this._enableStash)if(0===this._stashUsed&&0===this._stashByteStart&&(this._stashByteStart=e),this._stashUsed+t.byteLength<=this._stashSize){new Uint8Array(this._stashBuffer,0,this._stashSize).set(new Uint8Array(t),this._stashUsed),this._stashUsed+=t.byteLength}else{var o=new Uint8Array(this._stashBuffer,0,this._bufferSize);if(this._stashUsed>0){var a=this._stashBuffer.slice(0,this._stashUsed),s=this._dispatchChunks(a,this._stashByteStart);if(s<a.byteLength){if(s>0){var l=new Uint8Array(a,s);o.set(l,0),this._stashUsed=l.byteLength,this._stashByteStart+=s}}else this._stashUsed=0,this._stashByteStart+=s;this._stashUsed+t.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+t.byteLength),o=new Uint8Array(this._stashBuffer,0,this._bufferSize)),o.set(new Uint8Array(t),this._stashUsed),this._stashUsed+=t.byteLength}else{var u=this._dispatchChunks(t,e);if(u<t.byteLength){var c=t.byteLength-u;c>this._bufferSize&&(this._expandBuffer(c),o=new Uint8Array(this._stashBuffer,0,this._bufferSize)),o.set(new Uint8Array(t,u),0),this._stashUsed+=c,this._stashByteStart=e+u}}}else if(0===this._stashUsed){var h=this._dispatchChunks(t,e);if(h<t.byteLength){var d=t.byteLength-h;d>this._bufferSize&&this._expandBuffer(d),new Uint8Array(this._stashBuffer,0,this._bufferSize).set(new Uint8Array(t,h),0),this._stashUsed+=d,this._stashByteStart=e+h}}else{this._stashUsed+t.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+t.byteLength);var f=new Uint8Array(this._stashBuffer,0,this._bufferSize);f.set(new Uint8Array(t),this._stashUsed),this._stashUsed+=t.byteLength;var p=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(p<this._stashUsed&&p>0){var g=new Uint8Array(this._stashBuffer,p);f.set(g,0)}this._stashUsed-=p,this._stashByteStart+=p}}}},{key:"_flushStashBuffer",value:function(t){if(this._stashUsed>0){var e=this._stashBuffer.slice(0,this._stashUsed),n=this._dispatchChunks(e,this._stashByteStart),i=e.byteLength-n;if(n<e.byteLength){if(!t){if(n>0){var r=new Uint8Array(this._stashBuffer,0,this._bufferSize),o=new Uint8Array(e,n);r.set(o,0),this._stashUsed=o.byteLength,this._stashByteStart+=n}return 0}Ei.w(this.TAG,"".concat(i," bytes unconsumed data remain when flush buffer, dropped"))}return this._stashUsed=0,this._stashByteStart=0,i}return 0}},{key:"_onLoaderComplete",value:function(t,e){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)}},{key:"_onLoaderError",value:function(t,e){if(Ei.e(this.TAG,"Loader error, code = ".concat(e.code,", msg = ").concat(e.msg)),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,t=zi.UNRECOVERABLE_EARLY_EOF),t===zi.EARLY_EOF){if(!this._config.isLive&&this._totalLength){var n=this._currentRange.to+1;return void(n<this._totalLength&&(Ei.w(this.TAG,"Connection lost, trying reconnect..."),this._isEarlyEofReconnecting=!0,this._internalSeek(n,!1)))}t=zi.UNRECOVERABLE_EARLY_EOF}if(!this._onError)throw new Bi("IOException: "+e.msg);this._onError(t,e)}}]),t}(),or=rr,ar={enableWorker:!1,enableStashBuffer:!0,stashInitialSize:void 0,isLive:!1,lazyLoad:!0,lazyLoadMaxDuration:180,lazyLoadRecoverDuration:30,deferLoadAfterSourceOpen:!0,autoCleanupMaxBackwardDuration:180,autoCleanupMinBackwardDuration:120,statisticsInfoReportInterval:600,fixAudioTimestampGap:!0,accurateSeek:!1,seekType:"range",seekParamStart:"bstart",seekParamEnd:"bend",rangeLoadZeroStart:!1,customSeekHandler:void 0,reuseRedirectedURL:!1,headers:void 0,customLoader:void 0};function sr(){return Object.assign({},ar)}var lr=function(){function t(){bi()(this,t)}return Si()(t,null,[{key:"supportMSEH264Playback",value:function(){return window.MediaSource&&window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"')}},{key:"supportNetworkStreamIO",value:function(){var t=new or({},sr()),e=t.loaderType;return t.destroy(),"fetch-stream-loader"==e||"xhr-moz-chunked-loader"==e}},{key:"getNetworkLoaderTypeName",value:function(){var t=new or({},sr()),e=t.loaderType;return t.destroy(),e}},{key:"supportNativeMediaPlayback",value:function(e){null==t.videoElement&&(t.videoElement=window.document.createElement("video"));var n=t.videoElement.canPlayType(e);return"probably"===n||"maybe"==n}},{key:"getFeatureList",value:function(){var e={mseFlvPlayback:!1,mseLiveFlvPlayback:!1,networkStreamIO:!1,networkLoaderName:"",nativeMP4H264Playback:!1,nativeWebmVP8Playback:!1,nativeWebmVP9Playback:!1};return e.mseFlvPlayback=t.supportMSEH264Playback(),e.networkStreamIO=t.supportNetworkStreamIO(),e.networkLoaderName=t.getNetworkLoaderTypeName(),e.mseLiveFlvPlayback=e.mseFlvPlayback&&e.networkStreamIO,e.nativeMP4H264Playback=t.supportNativeMediaPlayback('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),e.nativeWebmVP8Playback=t.supportNativeMediaPlayback('video/webm; codecs="vp8.0, vorbis"'),e.nativeWebmVP9Playback=t.supportNativeMediaPlayback('video/webm; codecs="vp9"'),e}}]),t}(),ur=lr,cr={ERROR:"error",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",STATISTICS_INFO:"statistics_info"},hr=function(){function t(){bi()(this,t)}return Si()(t,null,[{key:"forceGlobalTag",get:function(){return Ei.FORCE_GLOBAL_TAG},set:function(e){Ei.FORCE_GLOBAL_TAG=e,t._notifyChange()}},{key:"globalTag",get:function(){return Ei.GLOBAL_TAG},set:function(e){Ei.GLOBAL_TAG=e,t._notifyChange()}},{key:"enableAll",get:function(){return Ei.ENABLE_VERBOSE&&Ei.ENABLE_DEBUG&&Ei.ENABLE_INFO&&Ei.ENABLE_WARN&&Ei.ENABLE_ERROR},set:function(e){Ei.ENABLE_VERBOSE=e,Ei.ENABLE_DEBUG=e,Ei.ENABLE_INFO=e,Ei.ENABLE_WARN=e,Ei.ENABLE_ERROR=e,t._notifyChange()}},{key:"enableDebug",get:function(){return Ei.ENABLE_DEBUG},set:function(e){Ei.ENABLE_DEBUG=e,t._notifyChange()}},{key:"enableVerbose",get:function(){return Ei.ENABLE_VERBOSE},set:function(e){Ei.ENABLE_VERBOSE=e,t._notifyChange()}},{key:"enableInfo",get:function(){return Ei.ENABLE_INFO},set:function(e){Ei.ENABLE_INFO=e,t._notifyChange()}},{key:"enableWarn",get:function(){return Ei.ENABLE_WARN},set:function(e){Ei.ENABLE_WARN=e,t._notifyChange()}},{key:"enableError",get:function(){return Ei.ENABLE_ERROR},set:function(e){Ei.ENABLE_ERROR=e,t._notifyChange()}},{key:"getConfig",value:function(){return{globalTag:Ei.GLOBAL_TAG,forceGlobalTag:Ei.FORCE_GLOBAL_TAG,enableVerbose:Ei.ENABLE_VERBOSE,enableDebug:Ei.ENABLE_DEBUG,enableInfo:Ei.ENABLE_INFO,enableWarn:Ei.ENABLE_WARN,enableError:Ei.ENABLE_ERROR,enableCallback:Ei.ENABLE_CALLBACK}}},{key:"applyConfig",value:function(t){Ei.GLOBAL_TAG=t.globalTag,Ei.FORCE_GLOBAL_TAG=t.forceGlobalTag,Ei.ENABLE_VERBOSE=t.enableVerbose,Ei.ENABLE_DEBUG=t.enableDebug,Ei.ENABLE_INFO=t.enableInfo,Ei.ENABLE_WARN=t.enableWarn,Ei.ENABLE_ERROR=t.enableError,Ei.ENABLE_CALLBACK=t.enableCallback}},{key:"_notifyChange",value:function(){var e=t.emitter;if(e.listenerCount("change")>0){var n=t.getConfig();e.emit("change",n)}}},{key:"registerListener",value:function(e){t.emitter.addListener("change",e)}},{key:"removeListener",value:function(e){t.emitter.removeListener("change",e)}},{key:"addLogListener",value:function(e){Ei.emitter.addListener("log",e),Ei.emitter.listenerCount("log")>0&&(Ei.ENABLE_CALLBACK=!0,t._notifyChange())}},{key:"removeLogListener",value:function(e){Ei.emitter.removeListener("log",e),0===Ei.emitter.listenerCount("log")&&(Ei.ENABLE_CALLBACK=!1,t._notifyChange())}}]),t}();hr.emitter=new(Ai());var dr=hr,fr=function(){function t(){bi()(this,t),this.mimeType=null,this.duration=null,this.hasAudio=null,this.hasVideo=null,this.audioCodec=null,this.videoCodec=null,this.audioDataRate=null,this.videoDataRate=null,this.audioSampleRate=null,this.audioChannelCount=null,this.width=null,this.height=null,this.fps=null,this.profile=null,this.level=null,this.refFrames=null,this.chromaFormat=null,this.sarNum=null,this.sarDen=null,this.metadata=null,this.segments=null,this.segmentCount=null,this.hasKeyframesIndex=null,this.keyframesIndex=null}return Si()(t,[{key:"isComplete",value:function(){var t=!1===this.hasAudio||!0===this.hasAudio&&null!=this.audioCodec&&null!=this.audioSampleRate&&null!=this.audioChannelCount,e=!1===this.hasVideo||!0===this.hasVideo&&null!=this.videoCodec&&null!=this.width&&null!=this.height&&null!=this.fps&&null!=this.profile&&null!=this.level&&null!=this.refFrames&&null!=this.chromaFormat&&null!=this.sarNum&&null!=this.sarDen;return null!=this.mimeType&&null!=this.duration&&null!=this.metadata&&null!=this.hasKeyframesIndex&&t&&e}},{key:"isSeekable",value:function(){return!0===this.hasKeyframesIndex}},{key:"getNearestKeyframe",value:function(t){if(null==this.keyframesIndex)return null;var e=this.keyframesIndex,n=this._search(e.times,t);return{index:n,milliseconds:e.times[n],fileposition:e.filepositions[n]}}},{key:"_search",value:function(t,e){var n=0,i=t.length-1,r=0,o=0,a=i;for(e<t[0]&&(n=0,o=a+1);o<=a;){if((r=o+Math.floor((a-o)/2))===i||e>=t[r]&&e<t[r+1]){n=r;break}t[r]<e?o=r+1:a=r-1}return n}}]),t}(),pr=fr;function gr(t,e,n){var i=t;if(e+n<i.length){for(;n--;)if(128!=(192&i[++e]))return!1;return!0}return!1}var mr,vr=function(t){for(var e=[],n=t,i=0,r=t.length;i<r;)if(n[i]<128)e.push(String.fromCharCode(n[i])),++i;else{if(n[i]<192);else if(n[i]<224){if(gr(n,i,1)){var o=(31&n[i])<<6|63&n[i+1];if(o>=128){e.push(String.fromCharCode(65535&o)),i+=2;continue}}}else if(n[i]<240){if(gr(n,i,2)){var a=(15&n[i])<<12|(63&n[i+1])<<6|63&n[i+2];if(a>=2048&&55296!=(63488&a)){e.push(String.fromCharCode(65535&a)),i+=3;continue}}}else if(n[i]<248&&gr(n,i,3)){var s=(7&n[i])<<18|(63&n[i+1])<<12|(63&n[i+2])<<6|63&n[i+3];if(s>65536&&s<1114112){s-=65536,e.push(String.fromCharCode(s>>>10|55296)),e.push(String.fromCharCode(1023&s|56320)),i+=4;continue}}e.push(String.fromCharCode(65533)),++i}return e.join("")},yr=(mr=new ArrayBuffer(2),new DataView(mr).setInt16(0,256,!0),256===new Int16Array(mr)[0]),wr=function(){function t(){bi()(this,t)}return Si()(t,null,[{key:"parseScriptData",value:function(e,n,i){var r={};try{var o=t.parseValue(e,n,i),a=t.parseValue(e,n+o.size,i-o.size);r[o.data]=a.data}catch(t){Ei.e("AMF",t.toString())}return r}},{key:"parseObject",value:function(e,n,i){if(i<3)throw new Oi("Data not enough when parse ScriptDataObject");var r=t.parseString(e,n,i),o=t.parseValue(e,n+r.size,i-r.size),a=o.objectEnd;return{data:{name:r.data,value:o.data},size:r.size+o.size,objectEnd:a}}},{key:"parseVariable",value:function(e,n,i){return t.parseObject(e,n,i)}},{key:"parseString",value:function(t,e,n){if(n<2)throw new Oi("Data not enough when parse String");var i=new DataView(t,e,n).getUint16(0,!yr);return{data:i>0?vr(new Uint8Array(t,e+2,i)):"",size:2+i}}},{key:"parseLongString",value:function(t,e,n){if(n<4)throw new Oi("Data not enough when parse LongString");var i=new DataView(t,e,n).getUint32(0,!yr);return{data:i>0?vr(new Uint8Array(t,e+4,i)):"",size:4+i}}},{key:"parseDate",value:function(t,e,n){if(n<10)throw new Oi("Data size invalid when parse Date");var i=new DataView(t,e,n),r=i.getFloat64(0,!yr),o=i.getInt16(8,!yr);return{data:new Date(r+=60*o*1e3),size:10}}},{key:"parseValue",value:function(e,n,i){if(i<1)throw new Oi("Data not enough when parse Value");var r,o=new DataView(e,n,i),a=1,s=o.getUint8(0),l=!1;try{switch(s){case 0:r=o.getFloat64(1,!yr),a+=8;break;case 1:r=!!o.getUint8(1),a+=1;break;case 2:var u=t.parseString(e,n+1,i-1);r=u.data,a+=u.size;break;case 3:r={};var c=0;for(9==(16777215&o.getUint32(i-4,!yr))&&(c=3);a<i-4;){var h=t.parseObject(e,n+a,i-a-c);if(h.objectEnd)break;r[h.data.name]=h.data.value,a+=h.size}if(a<=i-3)9===(16777215&o.getUint32(a-1,!yr))&&(a+=3);break;case 8:r={},a+=4;var d=0;for(9==(16777215&o.getUint32(i-4,!yr))&&(d=3);a<i-8;){var f=t.parseVariable(e,n+a,i-a-d);if(f.objectEnd)break;r[f.data.name]=f.data.value,a+=f.size}if(a<=i-3)9===(16777215&o.getUint32(a-1,!yr))&&(a+=3);break;case 9:r=void 0,a=1,l=!0;break;case 10:r=[];var p=o.getUint32(1,!yr);a+=4;for(var g=0;g<p;g++){var m=t.parseValue(e,n+a,i-a);r.push(m.data),a+=m.size}break;case 11:var v=t.parseDate(e,n+1,i-1);r=v.data,a+=v.size;break;case 12:var y=t.parseString(e,n+1,i-1);r=y.data,a+=y.size;break;default:a=i,Ei.w("AMF","Unsupported AMF value type "+s)}}catch(t){Ei.e("AMF",t.toString())}return{data:r,size:a,objectEnd:l}}}]),t}(),br=wr,xr=function(){function t(e){bi()(this,t),this.TAG="ExpGolomb",this._buffer=e,this._buffer_index=0,this._total_bytes=e.byteLength,this._total_bits=8*e.byteLength,this._current_word=0,this._current_word_bits_left=0}return Si()(t,[{key:"destroy",value:function(){this._buffer=null}},{key:"_fillCurrentWord",value:function(){var t=this._total_bytes-this._buffer_index;if(t<=0)throw new Oi("ExpGolomb: _fillCurrentWord() but no bytes available");var e=Math.min(4,t),n=new Uint8Array(4);n.set(this._buffer.subarray(this._buffer_index,this._buffer_index+e)),this._current_word=new DataView(n.buffer).getUint32(0,!1),this._buffer_index+=e,this._current_word_bits_left=8*e}},{key:"readBits",value:function(t){if(t>32)throw new Di("ExpGolomb: readBits() bits exceeded max 32bits!");if(t<=this._current_word_bits_left){var e=this._current_word>>>32-t;return this._current_word<<=t,this._current_word_bits_left-=t,e}var n=this._current_word_bits_left?this._current_word:0;n>>>=32-this._current_word_bits_left;var i=t-this._current_word_bits_left;this._fillCurrentWord();var r=Math.min(i,this._current_word_bits_left),o=this._current_word>>>32-r;return this._current_word<<=r,this._current_word_bits_left-=r,n=n<<r|o}},{key:"readBool",value:function(){return 1===this.readBits(1)}},{key:"readByte",value:function(){return this.readBits(8)}},{key:"_skipLeadingZero",value:function(){var t;for(t=0;t<this._current_word_bits_left;t++)if(0!=(this._current_word&2147483648>>>t))return this._current_word<<=t,this._current_word_bits_left-=t,t;return this._fillCurrentWord(),t+this._skipLeadingZero()}},{key:"readUEG",value:function(){var t=this._skipLeadingZero();return this.readBits(t+1)-1}},{key:"readSEG",value:function(){var t=this.readUEG();return 1&t?t+1>>>1:-1*(t>>>1)}}]),t}(),Sr=function(){function t(){bi()(this,t)}return Si()(t,null,[{key:"_ebsp2rbsp",value:function(t){for(var e=t,n=e.byteLength,i=new Uint8Array(n),r=0,o=0;o<n;o++)o>=2&&3===e[o]&&0===e[o-1]&&0===e[o-2]||(i[r]=e[o],r++);return new Uint8Array(i.buffer,0,r)}},{key:"parseSPS",value:function(e){var n=t._ebsp2rbsp(e),i=new xr(n);i.readByte();var r=i.readByte();i.readByte();var o=i.readByte();i.readUEG();var a=t.getProfileString(r),s=t.getLevelString(o),l=1,u=420,c=8;if((100===r||110===r||122===r||244===r||44===r||83===r||86===r||118===r||128===r||138===r||144===r)&&(3===(l=i.readUEG())&&i.readBits(1),l<=3&&(u=[0,420,422,444][l]),c=i.readUEG()+8,i.readUEG(),i.readBits(1),i.readBool()))for(var h=3!==l?8:12,d=0;d<h;d++)i.readBool()&&(d<6?t._skipScalingList(i,16):t._skipScalingList(i,64));i.readUEG();var f=i.readUEG();if(0===f)i.readUEG();else if(1===f){i.readBits(1),i.readSEG(),i.readSEG();for(var p=i.readUEG(),g=0;g<p;g++)i.readSEG()}var m=i.readUEG();i.readBits(1);var v=i.readUEG(),y=i.readUEG(),w=i.readBits(1);0===w&&i.readBits(1),i.readBits(1);var b=0,x=0,S=0,P=0;i.readBool()&&(b=i.readUEG(),x=i.readUEG(),S=i.readUEG(),P=i.readUEG());var k=1,C=1,A=0,M=!0,E=0,L=0;if(i.readBool()){if(i.readBool()){var T=i.readByte();T>0&&T<16?(k=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2][T-1],C=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1][T-1]):255===T&&(k=i.readByte()<<8|i.readByte(),C=i.readByte()<<8|i.readByte())}if(i.readBool()&&i.readBool(),i.readBool()&&(i.readBits(4),i.readBool()&&i.readBits(24)),i.readBool()&&(i.readUEG(),i.readUEG()),i.readBool()){var N=i.readBits(32),j=i.readBits(32);M=i.readBool(),A=(E=j)/(L=2*N)}}var I=1;1===k&&1===C||(I=k/C);var B=0,O=0;0===l?(B=1,O=2-w):(B=3===l?1:2,O=(1===l?2:1)*(2-w));var D=16*(v+1),R=16*(y+1)*(2-w);D-=(b+x)*B,R-=(S+P)*O;var F=Math.ceil(D*I);return i.destroy(),i=null,{profile_string:a,level_string:s,bit_depth:c,ref_frames:m,chroma_format:u,chroma_format_string:t.getChromaFormatString(u),frame_rate:{fixed:M,fps:A,fps_den:L,fps_num:E},sar_ratio:{width:k,height:C},codec_size:{width:D,height:R},present_size:{width:F,height:R}}}},{key:"_skipScalingList",value:function(t,e){for(var n=8,i=8,r=0;r<e;r++)0!==i&&(i=(n+t.readSEG()+256)%256),n=0===i?n:i}},{key:"getProfileString",value:function(t){switch(t){case 66:return"Baseline";case 77:return"Main";case 88:return"Extended";case 100:return"High";case 110:return"High10";case 122:return"High422";case 244:return"High444";default:return"Unknown"}}},{key:"getLevelString",value:function(t){return(t/10).toFixed(1)}},{key:"getChromaFormatString",value:function(t){switch(t){case 420:return"4:2:0";case 422:return"4:2:2";case 444:return"4:4:4";default:return"Unknown"}}}]),t}(),Pr=Sr,kr={OK:"OK",FORMAT_ERROR:"FormatError",FORMAT_UNSUPPORTED:"FormatUnsupported",CODEC_UNSUPPORTED:"CodecUnsupported"};var Cr=function(){function t(e,n){bi()(this,t),this.TAG="FLVDemuxer",this._config=n,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=e.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=e.hasAudioTrack,this._hasVideo=e.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new pr,this._mediaInfo.hasAudio=this._hasAudio,this._mediaInfo.hasVideo=this._hasVideo,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._naluLengthSize=4,this._timestampBase=0,this._timescale=1e3,this._duration=0,this._durationOverrided=!1,this._referenceFrameRate={fixed:!0,fps:23.976,fps_num:23976,fps_den:1e3},this._flvSoundRateTable=[5500,11025,22050,44100,48e3],this._mpegSamplingRates=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],this._mpegAudioV10SampleRateTable=[44100,48e3,32e3,0],this._mpegAudioV20SampleRateTable=[22050,24e3,16e3,0],this._mpegAudioV25SampleRateTable=[11025,12e3,8e3,0],this._mpegAudioL1BitRateTable=[0,32,64,96,128,160,192,224,256,288,320,352,384,416,448,-1],this._mpegAudioL2BitRateTable=[0,32,48,56,64,80,96,112,128,160,192,224,256,320,384,-1],this._mpegAudioL3BitRateTable=[0,32,40,48,56,64,80,96,112,128,160,192,224,256,320,-1],this._videoTrack={type:"video",id:1,sequenceNumber:0,samples:[],length:0},this._audioTrack={type:"audio",id:2,sequenceNumber:0,samples:[],length:0},this._littleEndian=function(){var t=new ArrayBuffer(2);return new DataView(t).setInt16(0,256,!0),256===new Int16Array(t)[0]}()}return Si()(t,[{key:"destroy",value:function(){this._mediaInfo=null,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._videoTrack=null,this._audioTrack=null,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null}},{key:"bindDataSource",value:function(t){return t.onDataArrival=this.parseChunks.bind(this),this}},{key:"onTrackMetadata",get:function(){return this._onTrackMetadata},set:function(t){this._onTrackMetadata=t}},{key:"onMediaInfo",get:function(){return this._onMediaInfo},set:function(t){this._onMediaInfo=t}},{key:"onMetaDataArrived",get:function(){return this._onMetaDataArrived},set:function(t){this._onMetaDataArrived=t}},{key:"onScriptDataArrived",get:function(){return this._onScriptDataArrived},set:function(t){this._onScriptDataArrived=t}},{key:"onError",get:function(){return this._onError},set:function(t){this._onError=t}},{key:"onDataAvailable",get:function(){return this._onDataAvailable},set:function(t){this._onDataAvailable=t}},{key:"timestampBase",get:function(){return this._timestampBase},set:function(t){this._timestampBase=t}},{key:"overridedDuration",get:function(){return this._duration},set:function(t){this._durationOverrided=!0,this._duration=t,this._mediaInfo.duration=t}},{key:"overridedHasAudio",set:function(t){this._hasAudioFlagOverrided=!0,this._hasAudio=t,this._mediaInfo.hasAudio=t}},{key:"overridedHasVideo",set:function(t){this._hasVideoFlagOverrided=!0,this._hasVideo=t,this._mediaInfo.hasVideo=t}},{key:"resetMediaInfo",value:function(){this._mediaInfo=new pr}},{key:"_isInitialMetadataDispatched",value:function(){return this._hasAudio&&this._hasVideo?this._audioInitialMetadataDispatched&&this._videoInitialMetadataDispatched:this._hasAudio&&!this._hasVideo?this._audioInitialMetadataDispatched:!(this._hasAudio||!this._hasVideo)&&this._videoInitialMetadataDispatched}},{key:"parseChunks",value:function(e,n){if(!(this._onError&&this._onMediaInfo&&this._onTrackMetadata&&this._onDataAvailable))throw new Oi("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");var i=0,r=this._littleEndian;if(0===n){if(!(e.byteLength>13))return 0;i=t.probe(e).dataOffset}this._firstParse&&(this._firstParse=!1,n+i!==this._dataOffset&&Ei.w(this.TAG,"First time parsing but chunk byteStart invalid!"),0!==new DataView(e,i).getUint32(0,!r)&&Ei.w(this.TAG,"PrevTagSize0 !== 0 !!!"),i+=4);for(;i<e.byteLength;){this._dispatch=!0;var o=new DataView(e,i);if(i+11+4>e.byteLength)break;var a=o.getUint8(0),s=16777215&o.getUint32(0,!r);if(i+11+s+4>e.byteLength)break;if(8===a||9===a||18===a){var l=o.getUint8(4),u=o.getUint8(5),c=o.getUint8(6)|u<<8|l<<16|o.getUint8(7)<<24;0!==(16777215&o.getUint32(7,!r))&&Ei.w(this.TAG,"Meet tag which has StreamID != 0!");var h=i+11;switch(a){case 8:this._parseAudioData(e,h,s,c);break;case 9:this._parseVideoData(e,h,s,c,n+i);break;case 18:this._parseScriptData(e,h,s)}var d=o.getUint32(11+s,!r);d!==11+s&&Ei.w(this.TAG,"Invalid PrevTagSize ".concat(d)),i+=11+s+4}else Ei.w(this.TAG,"Unsupported tag type ".concat(a,", skipped")),i+=11+s+4}return this._isInitialMetadataDispatched()&&this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack),i}},{key:"_parseScriptData",value:function(t,e,n){var i=br.parseScriptData(t,e,n);if(i.hasOwnProperty("onMetaData")){if(null==i.onMetaData||"object"!==yi()(i.onMetaData))return void Ei.w(this.TAG,"Invalid onMetaData structure!");this._metadata&&Ei.w(this.TAG,"Found another onMetaData tag!"),this._metadata=i;var r=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},r)),"boolean"==typeof r.hasAudio&&!1===this._hasAudioFlagOverrided&&(this._hasAudio=r.hasAudio,this._mediaInfo.hasAudio=this._hasAudio),"boolean"==typeof r.hasVideo&&!1===this._hasVideoFlagOverrided&&(this._hasVideo=r.hasVideo,this._mediaInfo.hasVideo=this._hasVideo),"number"==typeof r.audiodatarate&&(this._mediaInfo.audioDataRate=r.audiodatarate),"number"==typeof r.videodatarate&&(this._mediaInfo.videoDataRate=r.videodatarate),"number"==typeof r.width&&(this._mediaInfo.width=r.width),"number"==typeof r.height&&(this._mediaInfo.height=r.height),"number"==typeof r.duration){if(!this._durationOverrided){var o=Math.floor(r.duration*this._timescale);this._duration=o,this._mediaInfo.duration=o}}else this._mediaInfo.duration=0;if("number"==typeof r.framerate){var a=Math.floor(1e3*r.framerate);if(a>0){var s=a/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=s,this._referenceFrameRate.fps_num=a,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=s}}if("object"===yi()(r.keyframes)){this._mediaInfo.hasKeyframesIndex=!0;var l=r.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(l),r.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=r,Ei.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(i).length>0&&this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},i))}},{key:"_parseKeyframesIndex",value:function(t){for(var e=[],n=[],i=1;i<t.times.length;i++){var r=this._timestampBase+Math.floor(1e3*t.times[i]);e.push(r),n.push(t.filepositions[i])}return{times:e,filepositions:n}}},{key:"_parseAudioData",value:function(t,e,n,i){if(n<=1)Ei.w(this.TAG,"Flv: Invalid audio packet, missing SoundData payload!");else if(!0!==this._hasAudioFlagOverrided||!1!==this._hasAudio){this._littleEndian;var r=new DataView(t,e,n).getUint8(0),o=r>>>4;if(2===o||10===o){var a=0,s=(12&r)>>>2;if(s>=0&&s<=4){a=this._flvSoundRateTable[s];var l=1&r,u=this._audioMetadata,c=this._audioTrack;if(u||(!1===this._hasAudio&&!1===this._hasAudioFlagOverrided&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),(u=this._audioMetadata={}).type="audio",u.id=c.id,u.timescale=this._timescale,u.duration=this._duration,u.audioSampleRate=a,u.channelCount=0===l?1:2),10===o){var h=this._parseAACAudioData(t,e+1,n-1);if(null==h)return;if(0===h.packetType){u.config&&Ei.w(this.TAG,"Found another AudioSpecificConfig!");var d=h.data;u.audioSampleRate=d.samplingRate,u.channelCount=d.channelCount,u.codec=d.codec,u.originalCodec=d.originalCodec,u.config=d.config,u.refSampleDuration=1024/u.audioSampleRate*u.timescale,Ei.v(this.TAG,"Parsed AudioSpecificConfig"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._audioInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("audio",u);var f=this._mediaInfo;f.audioCodec=u.originalCodec,f.audioSampleRate=u.audioSampleRate,f.audioChannelCount=u.channelCount,f.hasVideo?null!=f.videoCodec&&(f.mimeType='video/x-flv; codecs="'+f.videoCodec+","+f.audioCodec+'"'):f.mimeType='video/x-flv; codecs="'+f.audioCodec+'"',f.isComplete()&&this._onMediaInfo(f)}else if(1===h.packetType){var p=this._timestampBase+i,g={unit:h.data,length:h.data.byteLength,dts:p,pts:p};c.samples.push(g),c.length+=h.data.length}else Ei.e(this.TAG,"Flv: Unsupported AAC data type ".concat(h.packetType))}else if(2===o){if(!u.codec){var m=this._parseMP3AudioData(t,e+1,n-1,!0);if(null==m)return;u.audioSampleRate=m.samplingRate,u.channelCount=m.channelCount,u.codec=m.codec,u.originalCodec=m.originalCodec,u.refSampleDuration=1152/u.audioSampleRate*u.timescale,Ei.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",u);var v=this._mediaInfo;v.audioCodec=u.codec,v.audioSampleRate=u.audioSampleRate,v.audioChannelCount=u.channelCount,v.audioDataRate=m.bitRate,v.hasVideo?null!=v.videoCodec&&(v.mimeType='video/x-flv; codecs="'+v.videoCodec+","+v.audioCodec+'"'):v.mimeType='video/x-flv; codecs="'+v.audioCodec+'"',v.isComplete()&&this._onMediaInfo(v)}var y=this._parseMP3AudioData(t,e+1,n-1,!1);if(null==y)return;var w=this._timestampBase+i,b={unit:y,length:y.byteLength,dts:w,pts:w};c.samples.push(b),c.length+=y.length}}else this._onError(kr.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+s)}else this._onError(kr.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+o)}}},{key:"_parseAACAudioData",value:function(t,e,n){if(!(n<=1)){var i={},r=new Uint8Array(t,e,n);return i.packetType=r[0],0===r[0]?i.data=this._parseAACAudioSpecificConfig(t,e+1,n-1):i.data=r.subarray(1),i}Ei.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!")}},{key:"_parseAACAudioSpecificConfig",value:function(t,e,n){var i,r,o=new Uint8Array(t,e,n),a=null,s=0,l=null;if(s=i=o[0]>>>3,(r=(7&o[0])<<1|o[1]>>>7)<0||r>=this._mpegSamplingRates.length)this._onError(kr.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");else{var u=this._mpegSamplingRates[r],c=(120&o[1])>>>3;if(!(c<0||c>=8)){5===s&&(l=(7&o[1])<<1|o[2]>>>7,(124&o[2])>>>2);var h=self.navigator.userAgent.toLowerCase();return-1!==h.indexOf("firefox")?r>=6?(s=5,a=new Array(4),l=r-3):(s=2,a=new Array(2),l=r):-1!==h.indexOf("android")?(s=2,a=new Array(2),l=r):(s=5,l=r,a=new Array(4),r>=6?l=r-3:1===c&&(s=2,a=new Array(2),l=r)),a[0]=s<<3,a[0]|=(15&r)>>>1,a[1]=(15&r)<<7,a[1]|=(15&c)<<3,5===s&&(a[1]|=(15&l)>>>1,a[2]=(1&l)<<7,a[2]|=8,a[3]=0),{config:a,samplingRate:u,channelCount:c,codec:"mp4a.40."+s,originalCodec:"mp4a.40."+i}}this._onError(kr.FORMAT_ERROR,"Flv: AAC invalid channel configuration")}}},{key:"_parseMP3AudioData",value:function(t,e,n,i){if(!(n<4)){this._littleEndian;var r=new Uint8Array(t,e,n),o=null;if(i){if(255!==r[0])return;var a=r[1]>>>3&3,s=(6&r[1])>>1,l=(240&r[2])>>>4,u=(12&r[2])>>>2,c=3!==(r[3]>>>6&3)?2:1,h=0,d=0;switch(a){case 0:h=this._mpegAudioV25SampleRateTable[u];break;case 2:h=this._mpegAudioV20SampleRateTable[u];break;case 3:h=this._mpegAudioV10SampleRateTable[u]}switch(s){case 1:34,l<this._mpegAudioL3BitRateTable.length&&(d=this._mpegAudioL3BitRateTable[l]);break;case 2:33,l<this._mpegAudioL2BitRateTable.length&&(d=this._mpegAudioL2BitRateTable[l]);break;case 3:32,l<this._mpegAudioL1BitRateTable.length&&(d=this._mpegAudioL1BitRateTable[l])}o={bitRate:d,samplingRate:h,channelCount:c,codec:"mp3",originalCodec:"mp3"}}else o=r;return o}Ei.w(this.TAG,"Flv: Invalid MP3 packet, header missing!")}},{key:"_parseVideoData",value:function(t,e,n,i,r){if(n<=1)Ei.w(this.TAG,"Flv: Invalid video packet, missing VideoData payload!");else if(!0!==this._hasVideoFlagOverrided||!1!==this._hasVideo){var o=new Uint8Array(t,e,n)[0],a=(240&o)>>>4,s=15&o;7===s?this._parseAVCVideoPacket(t,e+1,n-1,i,r,a):this._onError(kr.CODEC_UNSUPPORTED,"Flv: Unsupported codec in video frame: ".concat(s))}}},{key:"_parseAVCVideoPacket",value:function(t,e,n,i,r,o){if(n<4)Ei.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");else{var a=this._littleEndian,s=new DataView(t,e,n),l=s.getUint8(0),u=(16777215&s.getUint32(0,!a))<<8>>8;if(0===l)this._parseAVCDecoderConfigurationRecord(t,e+4,n-4);else if(1===l)this._parseAVCVideoData(t,e+4,n-4,i,r,o,u);else if(2!==l)return void this._onError(kr.FORMAT_ERROR,"Flv: Invalid video packet type ".concat(l))}}},{key:"_parseAVCDecoderConfigurationRecord",value:function(t,e,n){if(n<7)Ei.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");else{var i=this._videoMetadata,r=this._videoTrack,o=this._littleEndian,a=new DataView(t,e,n);i?void 0!==i.avcc&&Ei.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(!1===this._hasVideo&&!1===this._hasVideoFlagOverrided&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),(i=this._videoMetadata={}).type="video",i.id=r.id,i.timescale=this._timescale,i.duration=this._duration);var s=a.getUint8(0),l=a.getUint8(1);a.getUint8(2),a.getUint8(3);if(1===s&&0!==l)if(this._naluLengthSize=1+(3&a.getUint8(4)),3===this._naluLengthSize||4===this._naluLengthSize){var u=31&a.getUint8(5);if(0!==u){u>1&&Ei.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ".concat(u));for(var c=6,h=0;h<u;h++){var d=a.getUint16(c,!o);if(c+=2,0!==d){var f=new Uint8Array(t,e+c,d);c+=d;var p=Pr.parseSPS(f);if(0===h){i.codecWidth=p.codec_size.width,i.codecHeight=p.codec_size.height,i.presentWidth=p.present_size.width,i.presentHeight=p.present_size.height,i.profile=p.profile_string,i.level=p.level_string,i.bitDepth=p.bit_depth,i.chromaFormat=p.chroma_format,i.sarRatio=p.sar_ratio,i.frameRate=p.frame_rate,!1!==p.frame_rate.fixed&&0!==p.frame_rate.fps_num&&0!==p.frame_rate.fps_den||(i.frameRate=this._referenceFrameRate);var g=i.frameRate.fps_den,m=i.frameRate.fps_num;i.refSampleDuration=i.timescale*(g/m);for(var v=f.subarray(1,4),y="avc1.",w=0;w<3;w++){var b=v[w].toString(16);b.length<2&&(b="0"+b),y+=b}i.codec=y;var x=this._mediaInfo;x.width=i.codecWidth,x.height=i.codecHeight,x.fps=i.frameRate.fps,x.profile=i.profile,x.level=i.level,x.refFrames=p.ref_frames,x.chromaFormat=p.chroma_format_string,x.sarNum=i.sarRatio.width,x.sarDen=i.sarRatio.height,x.videoCodec=y,x.hasAudio?null!=x.audioCodec&&(x.mimeType='video/x-flv; codecs="'+x.videoCodec+","+x.audioCodec+'"'):x.mimeType='video/x-flv; codecs="'+x.videoCodec+'"',x.isComplete()&&this._onMediaInfo(x)}}}var S=a.getUint8(c);if(0!==S){S>1&&Ei.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ".concat(S)),c++;for(var P=0;P<S;P++){var k=a.getUint16(c,!o);c+=2,0!==k&&(c+=k)}i.avcc=new Uint8Array(n),i.avcc.set(new Uint8Array(t,e,n),0),Ei.v(this.TAG,"Parsed AVCDecoderConfigurationRecord"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._videoInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("video",i)}else this._onError(kr.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No PPS")}else this._onError(kr.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS")}else this._onError(kr.FORMAT_ERROR,"Flv: Strange NaluLengthSizeMinusOne: ".concat(this._naluLengthSize-1));else this._onError(kr.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord")}}},{key:"_parseAVCVideoData",value:function(t,e,n,i,r,o,a){for(var s=this._littleEndian,l=new DataView(t,e,n),u=[],c=0,h=0,d=this._naluLengthSize,f=this._timestampBase+i,p=1===o;h<n;){if(h+4>=n){Ei.w(this.TAG,"Malformed Nalu near timestamp ".concat(f,", offset = ").concat(h,", dataSize = ").concat(n));break}var g=l.getUint32(h,!s);if(3===d&&(g>>>=8),g>n-d)return void Ei.w(this.TAG,"Malformed Nalus near timestamp ".concat(f,", NaluSize > DataSize!"));var m=31&l.getUint8(h+d);5===m&&(p=!0);var v=new Uint8Array(t,e+h,d+g),y={type:m,data:v};u.push(y),c+=v.byteLength,h+=d+g}if(u.length){var w=this._videoTrack,b={units:u,length:c,isKeyframe:p,dts:f,cts:a,pts:f+a};p&&(b.fileposition=r),w.samples.push(b),w.length+=c}}}],[{key:"probe",value:function(t){var e=new Uint8Array(t),n={match:!1};if(70!==e[0]||76!==e[1]||86!==e[2]||1!==e[3])return n;var i,r,o=(4&e[4])>>>2!=0,a=0!=(1&e[4]),s=(i=e)[r=5]<<24|i[r+1]<<16|i[r+2]<<8|i[r+3];return s<9?n:{match:!0,consumed:s,dataOffset:s,hasAudioTrack:o,hasVideoTrack:a}}}]),t}(),Ar=Cr,Mr=function(){function t(){bi()(this,t)}return Si()(t,null,[{key:"init",value:function(){for(var e in t.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[],".mp3":[]},t.types)t.types.hasOwnProperty(e)&&(t.types[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);var n=t.constants={};n.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),n.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),n.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),n.STSC=n.STCO=n.STTS,n.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),n.HDLR_VIDEO=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),n.HDLR_AUDIO=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),n.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),n.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),n.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}},{key:"box",value:function(t){for(var e=8,n=null,i=Array.prototype.slice.call(arguments,1),r=i.length,o=0;o<r;o++)e+=i[o].byteLength;(n=new Uint8Array(e))[0]=e>>>24&255,n[1]=e>>>16&255,n[2]=e>>>8&255,n[3]=255&e,n.set(t,4);for(var a=8,s=0;s<r;s++)n.set(i[s],a),a+=i[s].byteLength;return n}},{key:"generateInitSegment",value:function(e){var n=t.box(t.types.ftyp,t.constants.FTYP),i=t.moov(e),r=new Uint8Array(n.byteLength+i.byteLength);return r.set(n,0),r.set(i,n.byteLength),r}},{key:"moov",value:function(e){var n=t.mvhd(e.timescale,e.duration),i=t.trak(e),r=t.mvex(e);return t.box(t.types.moov,n,i,r)}},{key:"mvhd",value:function(e,n){return t.box(t.types.mvhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e,n>>>24&255,n>>>16&255,n>>>8&255,255&n,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]))}},{key:"trak",value:function(e){return t.box(t.types.trak,t.tkhd(e),t.mdia(e))}},{key:"tkhd",value:function(e){var n=e.id,i=e.duration,r=e.presentWidth,o=e.presentHeight;return t.box(t.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,n>>>24&255,n>>>16&255,n>>>8&255,255&n,0,0,0,0,i>>>24&255,i>>>16&255,i>>>8&255,255&i,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,r>>>8&255,255&r,0,0,o>>>8&255,255&o,0,0]))}},{key:"mdia",value:function(e){return t.box(t.types.mdia,t.mdhd(e),t.hdlr(e),t.minf(e))}},{key:"mdhd",value:function(e){var n=e.timescale,i=e.duration;return t.box(t.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,n>>>24&255,n>>>16&255,n>>>8&255,255&n,i>>>24&255,i>>>16&255,i>>>8&255,255&i,85,196,0,0]))}},{key:"hdlr",value:function(e){var n=null;return n="audio"===e.type?t.constants.HDLR_AUDIO:t.constants.HDLR_VIDEO,t.box(t.types.hdlr,n)}},{key:"minf",value:function(e){var n=null;return n="audio"===e.type?t.box(t.types.smhd,t.constants.SMHD):t.box(t.types.vmhd,t.constants.VMHD),t.box(t.types.minf,n,t.dinf(),t.stbl(e))}},{key:"dinf",value:function(){return t.box(t.types.dinf,t.box(t.types.dref,t.constants.DREF))}},{key:"stbl",value:function(e){return t.box(t.types.stbl,t.stsd(e),t.box(t.types.stts,t.constants.STTS),t.box(t.types.stsc,t.constants.STSC),t.box(t.types.stsz,t.constants.STSZ),t.box(t.types.stco,t.constants.STCO))}},{key:"stsd",value:function(e){return"audio"===e.type?"mp3"===e.codec?t.box(t.types.stsd,t.constants.STSD_PREFIX,t.mp3(e)):t.box(t.types.stsd,t.constants.STSD_PREFIX,t.mp4a(e)):t.box(t.types.stsd,t.constants.STSD_PREFIX,t.avc1(e))}},{key:"mp3",value:function(e){var n=e.channelCount,i=e.audioSampleRate,r=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,n,0,16,0,0,0,0,i>>>8&255,255&i,0,0]);return t.box(t.types[".mp3"],r)}},{key:"mp4a",value:function(e){var n=e.channelCount,i=e.audioSampleRate,r=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,n,0,16,0,0,0,0,i>>>8&255,255&i,0,0]);return t.box(t.types.mp4a,r,t.esds(e))}},{key:"esds",value:function(e){var n=e.config||[],i=n.length,r=new Uint8Array([0,0,0,0,3,23+i,0,1,0,4,15+i,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([i]).concat(n).concat([6,1,2]));return t.box(t.types.esds,r)}},{key:"avc1",value:function(e){var n=e.avcc,i=e.codecWidth,r=e.codecHeight,o=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,i>>>8&255,255&i,r>>>8&255,255&r,0,72,0,0,0,72,0,0,0,0,0,0,0,1,10,120,113,113,47,102,108,118,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,255,255]);return t.box(t.types.avc1,o,t.box(t.types.avcC,n))}},{key:"mvex",value:function(e){return t.box(t.types.mvex,t.trex(e))}},{key:"trex",value:function(e){var n=e.id,i=new Uint8Array([0,0,0,0,n>>>24&255,n>>>16&255,n>>>8&255,255&n,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return t.box(t.types.trex,i)}},{key:"moof",value:function(e,n){return t.box(t.types.moof,t.mfhd(e.sequenceNumber),t.traf(e,n))}},{key:"mfhd",value:function(e){var n=new Uint8Array([0,0,0,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e]);return t.box(t.types.mfhd,n)}},{key:"traf",value:function(e,n){var i=e.id,r=t.box(t.types.tfhd,new Uint8Array([0,0,0,0,i>>>24&255,i>>>16&255,i>>>8&255,255&i])),o=t.box(t.types.tfdt,new Uint8Array([0,0,0,0,n>>>24&255,n>>>16&255,n>>>8&255,255&n])),a=t.sdtp(e),s=t.trun(e,a.byteLength+16+16+8+16+8+8);return t.box(t.types.traf,r,o,s,a)}},{key:"sdtp",value:function(e){for(var n=e.samples||[],i=n.length,r=new Uint8Array(4+i),o=0;o<i;o++){var a=n[o].flags;r[o+4]=a.isLeading<<6|a.dependsOn<<4|a.isDependedOn<<2|a.hasRedundancy}return t.box(t.types.sdtp,r)}},{key:"trun",value:function(e,n){var i=e.samples||[],r=i.length,o=12+16*r,a=new Uint8Array(o);n+=8+o,a.set([0,0,15,1,r>>>24&255,r>>>16&255,r>>>8&255,255&r,n>>>24&255,n>>>16&255,n>>>8&255,255&n],0);for(var s=0;s<r;s++){var l=i[s].duration,u=i[s].size,c=i[s].flags,h=i[s].cts;a.set([l>>>24&255,l>>>16&255,l>>>8&255,255&l,u>>>24&255,u>>>16&255,u>>>8&255,255&u,c.isLeading<<2|c.dependsOn,c.isDependedOn<<6|c.hasRedundancy<<4|c.isNonSync,0,0,h>>>24&255,h>>>16&255,h>>>8&255,255&h],12+16*s)}return t.box(t.types.trun,a)}},{key:"mdat",value:function(e){return t.box(t.types.mdat,e)}}]),t}();Mr.init();var Er=Mr,Lr=function(){function t(){bi()(this,t)}return Si()(t,null,[{key:"getSilentFrame",value:function(t,e){if("mp4a.40.2"===t){if(1===e)return new Uint8Array([0,200,0,128,35,128]);if(2===e)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(6===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if(1===e)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(2===e)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(3===e)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null}}]),t}(),Tr=Si()((function t(e,n,i,r,o){bi()(this,t),this.dts=e,this.pts=n,this.duration=i,this.originalDts=r,this.isSyncPoint=o,this.fileposition=null})),Nr=function(){function t(){bi()(this,t),this.beginDts=0,this.endDts=0,this.beginPts=0,this.endPts=0,this.originalBeginDts=0,this.originalEndDts=0,this.syncPoints=[],this.firstSample=null,this.lastSample=null}return Si()(t,[{key:"appendSyncPoint",value:function(t){t.isSyncPoint=!0,this.syncPoints.push(t)}}]),t}(),jr=function(){function t(){bi()(this,t),this._list=[]}return Si()(t,[{key:"clear",value:function(){this._list=[]}},{key:"appendArray",value:function(t){var e=this._list;0!==t.length&&(e.length>0&&t[0].originalDts<e[e.length-1].originalDts&&this.clear(),Array.prototype.push.apply(e,t))}},{key:"getLastSyncPointBeforeDts",value:function(t){if(0==this._list.length)return null;var e=this._list,n=0,i=e.length-1,r=0,o=0,a=i;for(t<e[0].dts&&(n=0,o=a+1);o<=a;){if((r=o+Math.floor((a-o)/2))===i||t>=e[r].dts&&t<e[r+1].dts){n=r;break}e[r].dts<t?o=r+1:a=r-1}return this._list[n]}}]),t}(),Ir=function(){function t(e){bi()(this,t),this._type=e,this._list=[],this._lastAppendLocation=-1}return Si()(t,[{key:"type",get:function(){return this._type}},{key:"length",get:function(){return this._list.length}},{key:"isEmpty",value:function(){return 0===this._list.length}},{key:"clear",value:function(){this._list=[],this._lastAppendLocation=-1}},{key:"_searchNearestSegmentBefore",value:function(t){var e=this._list;if(0===e.length)return-2;var n=e.length-1,i=0,r=0,o=n,a=0;if(t<e[0].originalBeginDts)return a=-1;for(;r<=o;){if((i=r+Math.floor((o-r)/2))===n||t>e[i].lastSample.originalDts&&t<e[i+1].originalBeginDts){a=i;break}e[i].originalBeginDts<t?r=i+1:o=i-1}return a}},{key:"_searchNearestSegmentAfter",value:function(t){return this._searchNearestSegmentBefore(t)+1}},{key:"append",value:function(t){var e=this._list,n=t,i=this._lastAppendLocation,r=0;-1!==i&&i<e.length&&n.originalBeginDts>=e[i].lastSample.originalDts&&(i===e.length-1||i<e.length-1&&n.originalBeginDts<e[i+1].originalBeginDts)?r=i+1:e.length>0&&(r=this._searchNearestSegmentBefore(n.originalBeginDts)+1),this._lastAppendLocation=r,this._list.splice(r,0,n)}},{key:"getLastSegmentBefore",value:function(t){var e=this._searchNearestSegmentBefore(t);return e>=0?this._list[e]:null}},{key:"getLastSampleBefore",value:function(t){var e=this.getLastSegmentBefore(t);return null!=e?e.lastSample:null}},{key:"getLastSyncPointBefore",value:function(t){for(var e=this._searchNearestSegmentBefore(t),n=this._list[e].syncPoints;0===n.length&&e>0;)e--,n=this._list[e].syncPoints;return n.length>0?n[n.length-1]:null}}]),t}(),Br=function(){function t(e){bi()(this,t),this.TAG="MP4Remuxer",this._config=e,this._isLive=!0===e.isLive,this._dtsBase=-1,this._dtsBaseInited=!1,this._audioDtsBase=1/0,this._videoDtsBase=1/0,this._audioNextDts=void 0,this._videoNextDts=void 0,this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList=new Ir("audio"),this._videoSegmentInfoList=new Ir("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!(!Vi.chrome||!(Vi.version.major<50||50===Vi.version.major&&Vi.version.build<2661)),this._fillSilentAfterSeek=Vi.msedge||Vi.msie,this._mp3UseMpegAudio=!Vi.firefox,this._fillAudioTimestampGap=this._config.fixAudioTimestampGap}return Si()(t,[{key:"destroy",value:function(){this._dtsBase=-1,this._dtsBaseInited=!1,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList.clear(),this._audioSegmentInfoList=null,this._videoSegmentInfoList.clear(),this._videoSegmentInfoList=null,this._onInitSegment=null,this._onMediaSegment=null}},{key:"bindDataSource",value:function(t){return t.onDataAvailable=this.remux.bind(this),t.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this}},{key:"onInitSegment",get:function(){return this._onInitSegment},set:function(t){this._onInitSegment=t}},{key:"onMediaSegment",get:function(){return this._onMediaSegment},set:function(t){this._onMediaSegment=t}},{key:"insertDiscontinuity",value:function(){this._audioNextDts=this._videoNextDts=void 0}},{key:"seek",value:function(t){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()}},{key:"remux",value:function(t,e){if(!this._onMediaSegment)throw new Oi("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(t,e),this._remuxVideo(e),this._remuxAudio(t)}},{key:"_onTrackMetadataReceived",value:function(t,e){var n=null,i="mp4",r=e.codec;if("audio"===t)this._audioMeta=e,"mp3"===e.codec&&this._mp3UseMpegAudio?(i="mpeg",r="",n=new Uint8Array):n=Er.generateInitSegment(e);else{if("video"!==t)return;this._videoMeta=e,n=Er.generateInitSegment(e)}if(!this._onInitSegment)throw new Oi("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(t,{type:t,data:n.buffer,codec:r,container:"".concat(t,"/").concat(i),mediaDuration:e.duration})}},{key:"_calculateDtsBase",value:function(t,e){this._dtsBaseInited||(t.samples&&t.samples.length&&(this._audioDtsBase=t.samples[0].dts),e.samples&&e.samples.length&&(this._videoDtsBase=e.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0)}},{key:"flushStashedSamples",value:function(){var t=this._videoStashedLastSample,e=this._audioStashedLastSample,n={type:"video",id:1,sequenceNumber:0,samples:[],length:0};null!=t&&(n.samples.push(t),n.length=t.length);var i={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};null!=e&&(i.samples.push(e),i.length=e.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(n,!0),this._remuxAudio(i,!0)}},{key:"_remuxAudio",value:function(t,e){if(null!=this._audioMeta){var n,i=t,r=i.samples,o=void 0,a=-1,s=this._audioMeta.refSampleDuration,l="mp3"===this._audioMeta.codec&&this._mp3UseMpegAudio,u=this._dtsBaseInited&&void 0===this._audioNextDts,c=!1;if(r&&0!==r.length&&(1!==r.length||e)){var h=0,d=null,f=0;l?(h=0,f=i.length):(h=8,f=8+i.length);var p=null;if(r.length>1&&(f-=(p=r.pop()).length),null!=this._audioStashedLastSample){var g=this._audioStashedLastSample;this._audioStashedLastSample=null,r.unshift(g),f+=g.length}null!=p&&(this._audioStashedLastSample=p);var m=r[0].dts-this._dtsBase;if(this._audioNextDts)o=m-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())o=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&"mp3"!==this._audioMeta.originalCodec&&(c=!0);else{var v=this._audioSegmentInfoList.getLastSampleBefore(m);if(null!=v){var y=m-(v.originalDts+v.duration);y<=3&&(y=0),o=m-(v.dts+v.duration+y)}else o=0}if(c){var w=m-o,b=this._videoSegmentInfoList.getLastSegmentBefore(m);if(null!=b&&b.beginDts<w){var x=Lr.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);if(x){var S=b.beginDts,P=w-b.beginDts;Ei.v(this.TAG,"InsertPrefixSilentAudio: dts: ".concat(S,", duration: ").concat(P)),r.unshift({unit:x,dts:S,pts:S}),f+=x.byteLength}}else c=!1}for(var k=[],C=0;C<r.length;C++){var A=r[C],M=A.unit,E=A.dts-this._dtsBase,L=E-o;-1===a&&(a=L);var T=0;if(C!==r.length-1)T=r[C+1].dts-this._dtsBase-o-L;else if(null!=p)T=p.dts-this._dtsBase-o-L;else T=k.length>=1?k[k.length-1].duration:Math.floor(s);var N=!1,j=null;if(T>1.5*s&&"mp3"!==this._audioMeta.codec&&this._fillAudioTimestampGap&&!Vi.safari){N=!0;var I=Math.abs(T-s),B=Math.ceil(I/s),O=L+s;Ei.w(this.TAG,"Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync.\n"+"dts: ".concat(L+T," ms, expected: ").concat(L+Math.round(s)," ms, ")+"delta: ".concat(Math.round(I)," ms, generate: ").concat(B," frames"));var D=Lr.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);null==D&&(Ei.w(this.TAG,"Unable to generate silent frame for "+"".concat(this._audioMeta.originalCodec," with ").concat(this._audioMeta.channelCount," channels, repeat last frame")),D=M),j=[];for(var R=0;R<B;R++){var F=Math.round(O);if(j.length>0){var z=j[j.length-1];z.duration=F-z.dts}var G={dts:F,pts:F,cts:0,unit:D,size:D.byteLength,duration:0,originalDts:E,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};j.push(G),f+=G.size,O+=s}var U=j[j.length-1];U.duration=L+T-U.dts,T=Math.round(s)}k.push({dts:L,pts:L,cts:0,unit:A.unit,size:A.unit.byteLength,duration:T,originalDts:E,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),N&&k.push.apply(k,j)}l?d=new Uint8Array(f):((d=new Uint8Array(f))[0]=f>>>24&255,d[1]=f>>>16&255,d[2]=f>>>8&255,d[3]=255&f,d.set(Er.types.mdat,4));for(var H=0;H<k.length;H++){var _=k[H].unit;d.set(_,h),h+=_.byteLength}var Z=k[k.length-1];n=Z.dts+Z.duration,this._audioNextDts=n;var W=new Nr;W.beginDts=a,W.endDts=n,W.beginPts=a,W.endPts=n,W.originalBeginDts=k[0].originalDts,W.originalEndDts=Z.originalDts+Z.duration,W.firstSample=new Tr(k[0].dts,k[0].pts,k[0].duration,k[0].originalDts,!1),W.lastSample=new Tr(Z.dts,Z.pts,Z.duration,Z.originalDts,!1),this._isLive||this._audioSegmentInfoList.append(W),i.samples=k,i.sequenceNumber++;var V=null;V=l?new Uint8Array:Er.moof(i,a),i.samples=[],i.length=0;var Y={type:"audio",data:this._mergeBoxes(V,d).buffer,sampleCount:k.length,info:W};l&&u&&(Y.timestampOffset=a),this._onMediaSegment("audio",Y)}}}},{key:"_remuxVideo",value:function(t,e){if(null!=this._videoMeta){var n,i,r=t,o=r.samples,a=void 0,s=-1,l=-1;if(o&&0!==o.length&&(1!==o.length||e)){var u=8,c=null,h=8+t.length,d=null;if(o.length>1&&(h-=(d=o.pop()).length),null!=this._videoStashedLastSample){var f=this._videoStashedLastSample;this._videoStashedLastSample=null,o.unshift(f),h+=f.length}null!=d&&(this._videoStashedLastSample=d);var p=o[0].dts-this._dtsBase;if(this._videoNextDts)a=p-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())a=0;else{var g=this._videoSegmentInfoList.getLastSampleBefore(p);if(null!=g){var m=p-(g.originalDts+g.duration);m<=3&&(m=0),a=p-(g.dts+g.duration+m)}else a=0}for(var v=new Nr,y=[],w=0;w<o.length;w++){var b=o[w],x=b.dts-this._dtsBase,S=b.isKeyframe,P=x-a,k=b.cts,C=P+k;-1===s&&(s=P,l=C);var A=0;if(w!==o.length-1)A=o[w+1].dts-this._dtsBase-a-P;else if(null!=d)A=d.dts-this._dtsBase-a-P;else A=y.length>=1?y[y.length-1].duration:Math.floor(this._videoMeta.refSampleDuration);if(S){var M=new Tr(P,C,A,b.dts,!0);M.fileposition=b.fileposition,v.appendSyncPoint(M)}y.push({dts:P,pts:C,cts:k,units:b.units,size:b.length,isKeyframe:S,duration:A,originalDts:x,flags:{isLeading:0,dependsOn:S?2:1,isDependedOn:S?1:0,hasRedundancy:0,isNonSync:S?0:1}})}(c=new Uint8Array(h))[0]=h>>>24&255,c[1]=h>>>16&255,c[2]=h>>>8&255,c[3]=255&h,c.set(Er.types.mdat,4);for(var E=0;E<y.length;E++)for(var L=y[E].units;L.length;){var T=L.shift().data;c.set(T,u),u+=T.byteLength}var N=y[y.length-1];if(n=N.dts+N.duration,i=N.pts+N.duration,this._videoNextDts=n,v.beginDts=s,v.endDts=n,v.beginPts=l,v.endPts=i,v.originalBeginDts=y[0].originalDts,v.originalEndDts=N.originalDts+N.duration,v.firstSample=new Tr(y[0].dts,y[0].pts,y[0].duration,y[0].originalDts,y[0].isKeyframe),v.lastSample=new Tr(N.dts,N.pts,N.duration,N.originalDts,N.isKeyframe),this._isLive||this._videoSegmentInfoList.append(v),r.samples=y,r.sequenceNumber++,this._forceFirstIDR){var j=y[0].flags;j.dependsOn=2,j.isNonSync=0}var I=Er.moof(r,s);r.samples=[],r.length=0,this._onMediaSegment("video",{type:"video",data:this._mergeBoxes(I,c).buffer,sampleCount:y.length,info:v})}}}},{key:"_mergeBoxes",value:function(t,e){var n=new Uint8Array(t.byteLength+e.byteLength);return n.set(t,0),n.set(e,t.byteLength),n}}]),t}(),Or=Br,Dr={IO_ERROR:"io_error",DEMUX_ERROR:"demux_error",INIT_SEGMENT:"init_segment",MEDIA_SEGMENT:"media_segment",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",STATISTICS_INFO:"statistics_info",RECOMMEND_SEEKPOINT:"recommend_seekpoint"},Rr=function(){function t(e,n){bi()(this,t),this.TAG="TransmuxingController",this._emitter=new(Ai()),this._config=n,e.segments||(e.segments=[{duration:e.duration,filesize:e.filesize,url:e.url}]),"boolean"!=typeof e.cors&&(e.cors=!0),"boolean"!=typeof e.withCredentials&&(e.withCredentials=!1),this._mediaDataSource=e,this._currentSegmentIndex=0;var i=0;this._mediaDataSource.segments.forEach((function(t){t.timestampBase=i,i+=t.duration,t.cors=e.cors,t.withCredentials=e.withCredentials,n.referrerPolicy&&(t.referrerPolicy=n.referrerPolicy)})),isNaN(i)||this._mediaDataSource.duration===i||(this._mediaDataSource.duration=i),this._mediaInfo=null,this._demuxer=null,this._remuxer=null,this._ioctl=null,this._pendingSeekTime=null,this._pendingResolveSeekPoint=null,this._statisticsReporter=null}return Si()(t,[{key:"destroy",value:function(){this._mediaInfo=null,this._mediaDataSource=null,this._statisticsReporter&&this._disableStatisticsReporter(),this._ioctl&&(this._ioctl.destroy(),this._ioctl=null),this._demuxer&&(this._demuxer.destroy(),this._demuxer=null),this._remuxer&&(this._remuxer.destroy(),this._remuxer=null),this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(t,e){this._emitter.addListener(t,e)}},{key:"off",value:function(t,e){this._emitter.removeListener(t,e)}},{key:"start",value:function(){this._loadSegment(0),this._enableStatisticsReporter()}},{key:"_loadSegment",value:function(t,e){this._currentSegmentIndex=t;var n=this._mediaDataSource.segments[t],i=this._ioctl=new or(n,this._config,t);i.onError=this._onIOException.bind(this),i.onSeeked=this._onIOSeeked.bind(this),i.onComplete=this._onIOComplete.bind(this),i.onRedirect=this._onIORedirect.bind(this),i.onRecoveredEarlyEof=this._onIORecoveredEarlyEof.bind(this),e?this._demuxer.bindDataSource(this._ioctl):i.onDataArrival=this._onInitChunkArrival.bind(this),i.open(e)}},{key:"stop",value:function(){this._internalAbort(),this._disableStatisticsReporter()}},{key:"_internalAbort",value:function(){this._ioctl&&(this._ioctl.destroy(),this._ioctl=null)}},{key:"pause",value:function(){this._ioctl&&this._ioctl.isWorking()&&(this._ioctl.pause(),this._disableStatisticsReporter())}},{key:"resume",value:function(){this._ioctl&&this._ioctl.isPaused()&&(this._ioctl.resume(),this._enableStatisticsReporter())}},{key:"seek",value:function(t){if(null!=this._mediaInfo&&this._mediaInfo.isSeekable()){var e=this._searchSegmentIndexContains(t);if(e===this._currentSegmentIndex){var n=this._mediaInfo.segments[e];if(null==n)this._pendingSeekTime=t;else{var i=n.getNearestKeyframe(t);this._remuxer.seek(i.milliseconds),this._ioctl.seek(i.fileposition),this._pendingResolveSeekPoint=i.milliseconds}}else{var r=this._mediaInfo.segments[e];if(null==r)this._pendingSeekTime=t,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(e);else{var o=r.getNearestKeyframe(t);this._internalAbort(),this._remuxer.seek(t),this._remuxer.insertDiscontinuity(),this._demuxer.resetMediaInfo(),this._demuxer.timestampBase=this._mediaDataSource.segments[e].timestampBase,this._loadSegment(e,o.fileposition),this._pendingResolveSeekPoint=o.milliseconds,this._reportSegmentMediaInfo(e)}}this._enableStatisticsReporter()}}},{key:"_searchSegmentIndexContains",value:function(t){for(var e=this._mediaDataSource.segments,n=e.length-1,i=0;i<e.length;i++)if(t<e[i].timestampBase){n=i-1;break}return n}},{key:"_onInitChunkArrival",value:function(t,e){var n=this,i=null,r=0;if(e>0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,r=this._demuxer.parseChunks(t,e);else if((i=Ar.probe(t)).match){this._demuxer=new Ar(i,this._config),this._remuxer||(this._remuxer=new Or(this._config));var o=this._mediaDataSource;null==o.duration||isNaN(o.duration)||(this._demuxer.overridedDuration=o.duration),"boolean"==typeof o.hasAudio&&(this._demuxer.overridedHasAudio=o.hasAudio),"boolean"==typeof o.hasVideo&&(this._demuxer.overridedHasVideo=o.hasVideo),this._demuxer.timestampBase=o.segments[this._currentSegmentIndex].timestampBase,this._demuxer.onError=this._onDemuxException.bind(this),this._demuxer.onMediaInfo=this._onMediaInfo.bind(this),this._demuxer.onMetaDataArrived=this._onMetaDataArrived.bind(this),this._demuxer.onScriptDataArrived=this._onScriptDataArrived.bind(this),this._remuxer.bindDataSource(this._demuxer.bindDataSource(this._ioctl)),this._remuxer.onInitSegment=this._onRemuxerInitSegmentArrival.bind(this),this._remuxer.onMediaSegment=this._onRemuxerMediaSegmentArrival.bind(this),r=this._demuxer.parseChunks(t,e)}else i=null,Ei.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then((function(){n._internalAbort()})),this._emitter.emit(Dr.DEMUX_ERROR,kr.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),r=0;return r}},{key:"_onMediaInfo",value:function(t){var e=this;null==this._mediaInfo&&(this._mediaInfo=Object.assign({},t),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,pr.prototype));var n=Object.assign({},t);Object.setPrototypeOf(n,pr.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=n,this._reportSegmentMediaInfo(this._currentSegmentIndex),null!=this._pendingSeekTime&&Promise.resolve().then((function(){var t=e._pendingSeekTime;e._pendingSeekTime=null,e.seek(t)}))}},{key:"_onMetaDataArrived",value:function(t){this._emitter.emit(Dr.METADATA_ARRIVED,t)}},{key:"_onScriptDataArrived",value:function(t){this._emitter.emit(Dr.SCRIPTDATA_ARRIVED,t)}},{key:"_onIOSeeked",value:function(){this._remuxer.insertDiscontinuity()}},{key:"_onIOComplete",value:function(t){var e=t+1;e<this._mediaDataSource.segments.length?(this._internalAbort(),this._remuxer.flushStashedSamples(),this._loadSegment(e)):(this._remuxer.flushStashedSamples(),this._emitter.emit(Dr.LOADING_COMPLETE),this._disableStatisticsReporter())}},{key:"_onIORedirect",value:function(t){var e=this._ioctl.extraData;this._mediaDataSource.segments[e].redirectedURL=t}},{key:"_onIORecoveredEarlyEof",value:function(){this._emitter.emit(Dr.RECOVERED_EARLY_EOF)}},{key:"_onIOException",value:function(t,e){Ei.e(this.TAG,"IOException: type = ".concat(t,", code = ").concat(e.code,", msg = ").concat(e.msg)),this._emitter.emit(Dr.IO_ERROR,t,e),this._disableStatisticsReporter()}},{key:"_onDemuxException",value:function(t,e){Ei.e(this.TAG,"DemuxException: type = ".concat(t,", info = ").concat(e)),this._emitter.emit(Dr.DEMUX_ERROR,t,e)}},{key:"_onRemuxerInitSegmentArrival",value:function(t,e){this._emitter.emit(Dr.INIT_SEGMENT,t,e)}},{key:"_onRemuxerMediaSegmentArrival",value:function(t,e){if(null==this._pendingSeekTime&&(this._emitter.emit(Dr.MEDIA_SEGMENT,t,e),null!=this._pendingResolveSeekPoint&&"video"===t)){var n=e.info.syncPoints,i=this._pendingResolveSeekPoint;this._pendingResolveSeekPoint=null,Vi.safari&&n.length>0&&n[0].originalDts===i&&(i=n[0].pts),this._emitter.emit(Dr.RECOMMEND_SEEKPOINT,i)}}},{key:"_enableStatisticsReporter",value:function(){null==this._statisticsReporter&&(this._statisticsReporter=self.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval))}},{key:"_disableStatisticsReporter",value:function(){this._statisticsReporter&&(self.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}},{key:"_reportSegmentMediaInfo",value:function(t){var e=this._mediaInfo.segments[t],n=Object.assign({},e);n.duration=this._mediaInfo.duration,n.segmentCount=this._mediaInfo.segmentCount,delete n.segments,delete n.keyframesIndex,this._emitter.emit(Dr.MEDIA_INFO,n)}},{key:"_reportStatisticsInfo",value:function(){var t={};t.url=this._ioctl.currentURL,t.hasRedirect=this._ioctl.hasRedirect,t.hasRedirect&&(t.redirectedURL=this._ioctl.currentRedirectedURL),t.speed=this._ioctl.currentSpeed,t.loaderType=this._ioctl.loaderType,t.currentSegmentIndex=this._currentSegmentIndex,t.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(Dr.STATISTICS_INFO,t)}}]),t}(),Fr=Rr,zr=function(t){var e=null,n=function(e,n){t.postMessage({msg:"logcat_callback",data:{type:e,logcat:n}})}.bind(this);function i(e,n){var i={msg:Dr.INIT_SEGMENT,data:{type:e,data:n}};t.postMessage(i,[n.data])}function r(e,n){var i={msg:Dr.MEDIA_SEGMENT,data:{type:e,data:n}};t.postMessage(i,[n.data])}function o(){var e={msg:Dr.LOADING_COMPLETE};t.postMessage(e)}function a(){var e={msg:Dr.RECOVERED_EARLY_EOF};t.postMessage(e)}function s(e){var n={msg:Dr.MEDIA_INFO,data:e};t.postMessage(n)}function l(e){var n={msg:Dr.METADATA_ARRIVED,data:e};t.postMessage(n)}function u(e){var n={msg:Dr.SCRIPTDATA_ARRIVED,data:e};t.postMessage(n)}function c(e){var n={msg:Dr.STATISTICS_INFO,data:e};t.postMessage(n)}function h(e,n){t.postMessage({msg:Dr.IO_ERROR,data:{type:e,info:n}})}function d(e,n){t.postMessage({msg:Dr.DEMUX_ERROR,data:{type:e,info:n}})}function f(e){t.postMessage({msg:Dr.RECOMMEND_SEEKPOINT,data:e})}ki.install(),t.addEventListener("message",(function(p){switch(p.data.cmd){case"init":(e=new Fr(p.data.param[0],p.data.param[1])).on(Dr.IO_ERROR,h.bind(this)),e.on(Dr.DEMUX_ERROR,d.bind(this)),e.on(Dr.INIT_SEGMENT,i.bind(this)),e.on(Dr.MEDIA_SEGMENT,r.bind(this)),e.on(Dr.LOADING_COMPLETE,o.bind(this)),e.on(Dr.RECOVERED_EARLY_EOF,a.bind(this)),e.on(Dr.MEDIA_INFO,s.bind(this)),e.on(Dr.METADATA_ARRIVED,l.bind(this)),e.on(Dr.SCRIPTDATA_ARRIVED,u.bind(this)),e.on(Dr.STATISTICS_INFO,c.bind(this)),e.on(Dr.RECOMMEND_SEEKPOINT,f.bind(this));break;case"destroy":e&&(e.destroy(),e=null),t.postMessage({msg:"destroyed"});break;case"start":e.start();break;case"stop":e.stop();break;case"seek":e.seek(p.data.param);break;case"pause":e.pause();break;case"resume":e.resume();break;case"logging_config":var g=p.data.param;dr.applyConfig(g),!0===g.enableCallback?dr.addLogListener(n):dr.removeLogListener(n)}}))},Gr=function(){function t(e,i){if(bi()(this,t),this.TAG="Transmuxer",this._emitter=new(Ai()),i.enableWorker&&"undefined"!=typeof Worker)try{var r=n(82059);this._worker=r(zr),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[e,i]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},dr.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:dr.getConfig()})}catch(t){Ei.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new Fr(e,i)}else this._controller=new Fr(e,i);if(this._controller){var o=this._controller;o.on(Dr.IO_ERROR,this._onIOError.bind(this)),o.on(Dr.DEMUX_ERROR,this._onDemuxError.bind(this)),o.on(Dr.INIT_SEGMENT,this._onInitSegment.bind(this)),o.on(Dr.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),o.on(Dr.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),o.on(Dr.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),o.on(Dr.MEDIA_INFO,this._onMediaInfo.bind(this)),o.on(Dr.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),o.on(Dr.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),o.on(Dr.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),o.on(Dr.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}return Si()(t,[{key:"destroy",value:function(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),dr.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(t,e){this._emitter.addListener(t,e)}},{key:"off",value:function(t,e){this._emitter.removeListener(t,e)}},{key:"hasWorker",value:function(){return null!=this._worker}},{key:"open",value:function(){this._worker?this._worker.postMessage({cmd:"start"}):this._controller.start()}},{key:"close",value:function(){this._worker?this._worker.postMessage({cmd:"stop"}):this._controller.stop()}},{key:"seek",value:function(t){this._worker?this._worker.postMessage({cmd:"seek",param:t}):this._controller.seek(t)}},{key:"pause",value:function(){this._worker?this._worker.postMessage({cmd:"pause"}):this._controller.pause()}},{key:"resume",value:function(){this._worker?this._worker.postMessage({cmd:"resume"}):this._controller.resume()}},{key:"_onInitSegment",value:function(t,e){var n=this;Promise.resolve().then((function(){n._emitter.emit(Dr.INIT_SEGMENT,t,e)}))}},{key:"_onMediaSegment",value:function(t,e){var n=this;Promise.resolve().then((function(){n._emitter.emit(Dr.MEDIA_SEGMENT,t,e)}))}},{key:"_onLoadingComplete",value:function(){var t=this;Promise.resolve().then((function(){t._emitter.emit(Dr.LOADING_COMPLETE)}))}},{key:"_onRecoveredEarlyEof",value:function(){var t=this;Promise.resolve().then((function(){t._emitter.emit(Dr.RECOVERED_EARLY_EOF)}))}},{key:"_onMediaInfo",value:function(t){var e=this;Promise.resolve().then((function(){e._emitter.emit(Dr.MEDIA_INFO,t)}))}},{key:"_onMetaDataArrived",value:function(t){var e=this;Promise.resolve().then((function(){e._emitter.emit(Dr.METADATA_ARRIVED,t)}))}},{key:"_onScriptDataArrived",value:function(t){var e=this;Promise.resolve().then((function(){e._emitter.emit(Dr.SCRIPTDATA_ARRIVED,t)}))}},{key:"_onStatisticsInfo",value:function(t){var e=this;Promise.resolve().then((function(){e._emitter.emit(Dr.STATISTICS_INFO,t)}))}},{key:"_onIOError",value:function(t,e){var n=this;Promise.resolve().then((function(){n._emitter.emit(Dr.IO_ERROR,t,e)}))}},{key:"_onDemuxError",value:function(t,e){var n=this;Promise.resolve().then((function(){n._emitter.emit(Dr.DEMUX_ERROR,t,e)}))}},{key:"_onRecommendSeekpoint",value:function(t){var e=this;Promise.resolve().then((function(){e._emitter.emit(Dr.RECOMMEND_SEEKPOINT,t)}))}},{key:"_onLoggingConfigChanged",value:function(t){this._worker&&this._worker.postMessage({cmd:"logging_config",param:t})}},{key:"_onWorkerMessage",value:function(t){var e=t.data,n=e.data;if("destroyed"===e.msg||this._workerDestroying)return this._workerDestroying=!1,this._worker.terminate(),void(this._worker=null);switch(e.msg){case Dr.INIT_SEGMENT:case Dr.MEDIA_SEGMENT:this._emitter.emit(e.msg,n.type,n.data);break;case Dr.LOADING_COMPLETE:case Dr.RECOVERED_EARLY_EOF:this._emitter.emit(e.msg);break;case Dr.MEDIA_INFO:Object.setPrototypeOf(n,pr.prototype),this._emitter.emit(e.msg,n);break;case Dr.METADATA_ARRIVED:case Dr.SCRIPTDATA_ARRIVED:case Dr.STATISTICS_INFO:this._emitter.emit(e.msg,n);break;case Dr.IO_ERROR:case Dr.DEMUX_ERROR:this._emitter.emit(e.msg,n.type,n.info);break;case Dr.RECOMMEND_SEEKPOINT:this._emitter.emit(e.msg,n);break;case"logcat_callback":Ei.emitter.emit("log",n.type,n.logcat)}}}]),t}(),Ur=Gr,Hr={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"},_r=function(){function t(e){bi()(this,t),this.TAG="MSEController",this._config=e,this._emitter=new(Ai()),this._config.isLive&&null==this._config.autoCleanupSourceBuffer&&(this._config.autoCleanupSourceBuffer=!0),this.e={onSourceOpen:this._onSourceOpen.bind(this),onSourceEnded:this._onSourceEnded.bind(this),onSourceClose:this._onSourceClose.bind(this),onSourceBufferError:this._onSourceBufferError.bind(this),onSourceBufferUpdateEnd:this._onSourceBufferUpdateEnd.bind(this)},this._mediaSource=null,this._mediaSourceObjectURL=null,this._mediaElement=null,this._isBufferFull=!1,this._hasPendingEos=!1,this._requireSetMediaDuration=!1,this._pendingMediaDuration=0,this._pendingSourceBufferInit=[],this._mimeTypes={video:null,audio:null},this._sourceBuffers={video:null,audio:null},this._lastInitSegments={video:null,audio:null},this._pendingSegments={video:[],audio:[]},this._pendingRemoveRanges={video:[],audio:[]},this._idrList=new jr}return Si()(t,[{key:"destroy",value:function(){(this._mediaElement||this._mediaSource)&&this.detachMediaElement(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(t,e){this._emitter.addListener(t,e)}},{key:"off",value:function(t,e){this._emitter.removeListener(t,e)}},{key:"attachMediaElement",value:function(t){if(this._mediaSource)throw new Oi("MediaSource has been attached to an HTMLMediaElement!");var e=this._mediaSource=new window.MediaSource;e.addEventListener("sourceopen",this.e.onSourceOpen),e.addEventListener("sourceended",this.e.onSourceEnded),e.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=t,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),t.src=this._mediaSourceObjectURL}},{key:"detachMediaElement",value:function(){if(this._mediaSource){var t=this._mediaSource;for(var e in this._sourceBuffers){var n=this._pendingSegments[e];n.splice(0,n.length),this._pendingSegments[e]=null,this._pendingRemoveRanges[e]=null,this._lastInitSegments[e]=null;var i=this._sourceBuffers[e];if(i){if("closed"!==t.readyState){try{t.removeSourceBuffer(i)}catch(t){Ei.e(this.TAG,t.message)}i.removeEventListener("error",this.e.onSourceBufferError),i.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[e]=null,this._sourceBuffers[e]=null}}if("open"===t.readyState)try{t.endOfStream()}catch(t){Ei.e(this.TAG,t.message)}t.removeEventListener("sourceopen",this.e.onSourceOpen),t.removeEventListener("sourceended",this.e.onSourceEnded),t.removeEventListener("sourceclose",this.e.onSourceClose),this._pendingSourceBufferInit=[],this._isBufferFull=!1,this._idrList.clear(),this._mediaSource=null}this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement=null),this._mediaSourceObjectURL&&(window.URL.revokeObjectURL(this._mediaSourceObjectURL),this._mediaSourceObjectURL=null)}},{key:"appendInitSegment",value:function(t,e){if(!this._mediaSource||"open"!==this._mediaSource.readyState)return this._pendingSourceBufferInit.push(t),void this._pendingSegments[t.type].push(t);var n=t,i="".concat(n.container);n.codec&&n.codec.length>0&&(i+=";codecs=".concat(n.codec));var r=!1;if(Ei.v(this.TAG,"Received Initialization Segment, mimeType: "+i),this._lastInitSegments[n.type]=n,i!==this._mimeTypes[n.type]){if(this._mimeTypes[n.type])Ei.v(this.TAG,"Notice: ".concat(n.type," mimeType changed, origin: ").concat(this._mimeTypes[n.type],", target: ").concat(i));else{r=!0;try{var o=this._sourceBuffers[n.type]=this._mediaSource.addSourceBuffer(i);o.addEventListener("error",this.e.onSourceBufferError),o.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(t){return Ei.e(this.TAG,t.message),void this._emitter.emit(Hr.ERROR,{code:t.code,msg:t.message})}}this._mimeTypes[n.type]=i}e||this._pendingSegments[n.type].push(n),r||this._sourceBuffers[n.type]&&!this._sourceBuffers[n.type].updating&&this._doAppendSegments(),Vi.safari&&"audio/mpeg"===n.container&&n.mediaDuration>0&&(this._requireSetMediaDuration=!0,this._pendingMediaDuration=n.mediaDuration/1e3,this._updateMediaSourceDuration())}},{key:"appendMediaSegment",value:function(t){var e=t;this._pendingSegments[e.type].push(e),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();var n=this._sourceBuffers[e.type];!n||n.updating||this._hasPendingRemoveRanges()||this._doAppendSegments()}},{key:"seek",value:function(t){for(var e in this._sourceBuffers)if(this._sourceBuffers[e]){var n=this._sourceBuffers[e];if("open"===this._mediaSource.readyState)try{n.abort()}catch(t){Ei.e(this.TAG,t.message)}this._idrList.clear();var i=this._pendingSegments[e];if(i.splice(0,i.length),"closed"!==this._mediaSource.readyState){for(var r=0;r<n.buffered.length;r++){var o=n.buffered.start(r),a=n.buffered.end(r);this._pendingRemoveRanges[e].push({start:o,end:a})}if(n.updating||this._doRemoveRanges(),Vi.safari){var s=this._lastInitSegments[e];s&&(this._pendingSegments[e].push(s),n.updating||this._doAppendSegments())}}}}},{key:"endOfStream",value:function(){var t=this._mediaSource,e=this._sourceBuffers;t&&"open"===t.readyState?e.video&&e.video.updating||e.audio&&e.audio.updating?this._hasPendingEos=!0:(this._hasPendingEos=!1,t.endOfStream()):t&&"closed"===t.readyState&&this._hasPendingSegments()&&(this._hasPendingEos=!0)}},{key:"getNearestKeyframe",value:function(t){return this._idrList.getLastSyncPointBeforeDts(t)}},{key:"_needCleanupSourceBuffer",value:function(){if(!this._config.autoCleanupSourceBuffer)return!1;var t=this._mediaElement.currentTime;for(var e in this._sourceBuffers){var n=this._sourceBuffers[e];if(n){var i=n.buffered;if(i.length>=1&&t-i.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1}},{key:"_doCleanupSourceBuffer",value:function(){var t=this._mediaElement.currentTime;for(var e in this._sourceBuffers){var n=this._sourceBuffers[e];if(n){for(var i=n.buffered,r=!1,o=0;o<i.length;o++){var a=i.start(o),s=i.end(o);if(a<=t&&t<s+3){if(t-a>=this._config.autoCleanupMaxBackwardDuration){r=!0;var l=t-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[e].push({start:a,end:l})}}else s<t&&(r=!0,this._pendingRemoveRanges[e].push({start:a,end:s}))}r&&!n.updating&&this._doRemoveRanges()}}}},{key:"_updateMediaSourceDuration",value:function(){var t=this._sourceBuffers;if(0!==this._mediaElement.readyState&&"open"===this._mediaSource.readyState&&!(t.video&&t.video.updating||t.audio&&t.audio.updating)){var e=this._mediaSource.duration,n=this._pendingMediaDuration;n>0&&(isNaN(e)||n>e)&&(Ei.v(this.TAG,"Update MediaSource duration from ".concat(e," to ").concat(n)),this._mediaSource.duration=n),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}}},{key:"_doRemoveRanges",value:function(){for(var t in this._pendingRemoveRanges)if(this._sourceBuffers[t]&&!this._sourceBuffers[t].updating)for(var e=this._sourceBuffers[t],n=this._pendingRemoveRanges[t];n.length&&!e.updating;){var i=n.shift();e.remove(i.start,i.end)}}},{key:"_doAppendSegments",value:function(){var t=this._pendingSegments;for(var e in t)if(this._sourceBuffers[e]&&!this._sourceBuffers[e].updating&&t[e].length>0){var n=t[e].shift();if(n.timestampOffset){var i=this._sourceBuffers[e].timestampOffset,r=n.timestampOffset/1e3;Math.abs(i-r)>.1&&(Ei.v(this.TAG,"Update MPEG audio timestampOffset from ".concat(i," to ").concat(r)),this._sourceBuffers[e].timestampOffset=r),delete n.timestampOffset}if(!n.data||0===n.data.byteLength)continue;try{this._sourceBuffers[e].appendBuffer(n.data),this._isBufferFull=!1,"video"===e&&n.hasOwnProperty("info")&&this._idrList.appendArray(n.info.syncPoints)}catch(t){this._pendingSegments[e].unshift(n),22===t.code?(this._isBufferFull||this._emitter.emit(Hr.BUFFER_FULL),this._isBufferFull=!0):(Ei.e(this.TAG,t.message),this._emitter.emit(Hr.ERROR,{code:t.code,msg:t.message}))}}}},{key:"_onSourceOpen",value:function(){if(Ei.v(this.TAG,"MediaSource onSourceOpen"),this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._pendingSourceBufferInit.length>0)for(var t=this._pendingSourceBufferInit;t.length;){var e=t.shift();this.appendInitSegment(e,!0)}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(Hr.SOURCE_OPEN)}},{key:"_onSourceEnded",value:function(){Ei.v(this.TAG,"MediaSource onSourceEnded")}},{key:"_onSourceClose",value:function(){Ei.v(this.TAG,"MediaSource onSourceClose"),this._mediaSource&&null!=this.e&&(this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._mediaSource.removeEventListener("sourceended",this.e.onSourceEnded),this._mediaSource.removeEventListener("sourceclose",this.e.onSourceClose))}},{key:"_hasPendingSegments",value:function(){var t=this._pendingSegments;return t.video.length>0||t.audio.length>0}},{key:"_hasPendingRemoveRanges",value:function(){var t=this._pendingRemoveRanges;return t.video.length>0||t.audio.length>0}},{key:"_onSourceBufferUpdateEnd",value:function(){this._requireSetMediaDuration?this._updateMediaSourceDuration():this._hasPendingRemoveRanges()?this._doRemoveRanges():this._hasPendingSegments()?this._doAppendSegments():this._hasPendingEos&&this.endOfStream(),this._emitter.emit(Hr.UPDATE_END)}},{key:"_onSourceBufferError",value:function(t){Ei.e(this.TAG,"SourceBuffer Error: ".concat(t))}}]),t}(),Zr=_r,Wr={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},Vr={NETWORK_EXCEPTION:zi.EXCEPTION,NETWORK_STATUS_CODE_INVALID:zi.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:zi.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:zi.UNRECOVERABLE_EARLY_EOF,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:kr.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:kr.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:kr.CODEC_UNSUPPORTED},Yr=function(){function t(e,n){if(bi()(this,t),this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new(Ai()),this._config=sr(),"object"===yi()(n)&&Object.assign(this._config,n),"flv"!==e.type.toLowerCase())throw new Di("FlvPlayer requires an flv MediaDataSource input!");!0===e.isLive&&(this._config.isLive=!0),this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this),onvSeeking:this._onvSeeking.bind(this),onvCanPlay:this._onvCanPlay.bind(this),onvStalled:this._onvStalled.bind(this),onvProgress:this._onvProgress.bind(this)},self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now,this._pendingSeekTime=null,this._requestSetTime=!1,this._seekpointRecord=null,this._progressChecker=null,this._mediaDataSource=e,this._mediaElement=null,this._msectl=null,this._transmuxer=null,this._mseSourceOpened=!1,this._hasPendingLoad=!1,this._receivedCanPlay=!1,this._mediaInfo=null,this._statisticsInfo=null;var i=Vi.chrome&&(Vi.version.major<50||50===Vi.version.major&&Vi.version.build<2661);this._alwaysSeekKeyframe=!!(i||Vi.msedge||Vi.msie),this._alwaysSeekKeyframe&&(this._config.accurateSeek=!1)}return Si()(t,[{key:"destroy",value:function(){null!=this._progressChecker&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._transmuxer&&this.unload(),this._mediaElement&&this.detachMediaElement(),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(t,e){var n=this;t===cr.MEDIA_INFO?null!=this._mediaInfo&&Promise.resolve().then((function(){n._emitter.emit(cr.MEDIA_INFO,n.mediaInfo)})):t===cr.STATISTICS_INFO&&null!=this._statisticsInfo&&Promise.resolve().then((function(){n._emitter.emit(cr.STATISTICS_INFO,n.statisticsInfo)})),this._emitter.addListener(t,e)}},{key:"off",value:function(t,e){this._emitter.removeListener(t,e)}},{key:"attachMediaElement",value:function(t){var e=this;if(this._mediaElement=t,t.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),t.addEventListener("seeking",this.e.onvSeeking),t.addEventListener("canplay",this.e.onvCanPlay),t.addEventListener("stalled",this.e.onvStalled),t.addEventListener("progress",this.e.onvProgress),this._msectl=new Zr(this._config),this._msectl.on(Hr.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on(Hr.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on(Hr.SOURCE_OPEN,(function(){e._mseSourceOpened=!0,e._hasPendingLoad&&(e._hasPendingLoad=!1,e.load())})),this._msectl.on(Hr.ERROR,(function(t){e._emitter.emit(cr.ERROR,Wr.MEDIA_ERROR,Vr.MEDIA_MSE_ERROR,t)})),this._msectl.attachMediaElement(t),null!=this._pendingSeekTime)try{t.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(t){}}},{key:"detachMediaElement",value:function(){this._mediaElement&&(this._msectl.detachMediaElement(),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement.removeEventListener("seeking",this.e.onvSeeking),this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay),this._mediaElement.removeEventListener("stalled",this.e.onvStalled),this._mediaElement.removeEventListener("progress",this.e.onvProgress),this._mediaElement=null),this._msectl&&(this._msectl.destroy(),this._msectl=null)}},{key:"load",value:function(){var t=this;if(!this._mediaElement)throw new Oi("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new Oi("FlvPlayer.load() has been called, please call unload() first!");this._hasPendingLoad||(this._config.deferLoadAfterSourceOpen&&!1===this._mseSourceOpened?this._hasPendingLoad=!0:(this._mediaElement.readyState>0&&(this._requestSetTime=!0,this._mediaElement.currentTime=0),this._transmuxer=new Ur(this._mediaDataSource,this._config),this._transmuxer.on(Dr.INIT_SEGMENT,(function(e,n){t._msectl.appendInitSegment(n)})),this._transmuxer.on(Dr.MEDIA_SEGMENT,(function(e,n){if(t._msectl.appendMediaSegment(n),t._config.lazyLoad&&!t._config.isLive){var i=t._mediaElement.currentTime;n.info.endDts>=1e3*(i+t._config.lazyLoadMaxDuration)&&null==t._progressChecker&&(Ei.v(t.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),t._suspendTransmuxer())}})),this._transmuxer.on(Dr.LOADING_COMPLETE,(function(){t._msectl.endOfStream(),t._emitter.emit(cr.LOADING_COMPLETE)})),this._transmuxer.on(Dr.RECOVERED_EARLY_EOF,(function(){t._emitter.emit(cr.RECOVERED_EARLY_EOF)})),this._transmuxer.on(Dr.IO_ERROR,(function(e,n){t._emitter.emit(cr.ERROR,Wr.NETWORK_ERROR,e,n)})),this._transmuxer.on(Dr.DEMUX_ERROR,(function(e,n){t._emitter.emit(cr.ERROR,Wr.MEDIA_ERROR,e,{code:-1,msg:n})})),this._transmuxer.on(Dr.MEDIA_INFO,(function(e){t._mediaInfo=e,t._emitter.emit(cr.MEDIA_INFO,Object.assign({},e))})),this._transmuxer.on(Dr.METADATA_ARRIVED,(function(e){t._emitter.emit(cr.METADATA_ARRIVED,e)})),this._transmuxer.on(Dr.SCRIPTDATA_ARRIVED,(function(e){t._emitter.emit(cr.SCRIPTDATA_ARRIVED,e)})),this._transmuxer.on(Dr.STATISTICS_INFO,(function(e){t._statisticsInfo=t._fillStatisticsInfo(e),t._emitter.emit(cr.STATISTICS_INFO,Object.assign({},t._statisticsInfo))})),this._transmuxer.on(Dr.RECOMMEND_SEEKPOINT,(function(e){t._mediaElement&&!t._config.accurateSeek&&(t._requestSetTime=!0,t._mediaElement.currentTime=e/1e3)})),this._transmuxer.open()))}},{key:"unload",value:function(){this._mediaElement&&this._mediaElement.pause(),this._msectl&&this._msectl.seek(0),this._transmuxer&&(this._transmuxer.close(),this._transmuxer.destroy(),this._transmuxer=null)}},{key:"play",value:function(){return this._mediaElement.play()}},{key:"pause",value:function(){this._mediaElement.pause()}},{key:"type",get:function(){return this._type}},{key:"buffered",get:function(){return this._mediaElement.buffered}},{key:"duration",get:function(){return this._mediaElement.duration}},{key:"volume",get:function(){return this._mediaElement.volume},set:function(t){this._mediaElement.volume=t}},{key:"muted",get:function(){return this._mediaElement.muted},set:function(t){this._mediaElement.muted=t}},{key:"currentTime",get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(t){this._mediaElement?this._internalSeek(t):this._pendingSeekTime=t}},{key:"mediaInfo",get:function(){return Object.assign({},this._mediaInfo)}},{key:"statisticsInfo",get:function(){return null==this._statisticsInfo&&(this._statisticsInfo={}),this._statisticsInfo=this._fillStatisticsInfo(this._statisticsInfo),Object.assign({},this._statisticsInfo)}},{key:"_fillStatisticsInfo",value:function(t){if(t.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return t;var e=!0,n=0,i=0;if(this._mediaElement.getVideoPlaybackQuality){var r=this._mediaElement.getVideoPlaybackQuality();n=r.totalVideoFrames,i=r.droppedVideoFrames}else null!=this._mediaElement.webkitDecodedFrameCount?(n=this._mediaElement.webkitDecodedFrameCount,i=this._mediaElement.webkitDroppedFrameCount):e=!1;return e&&(t.decodedFrames=n,t.droppedFrames=i),t}},{key:"_onmseUpdateEnd",value:function(){if(this._config.lazyLoad&&!this._config.isLive){for(var t=this._mediaElement.buffered,e=this._mediaElement.currentTime,n=0,i=0;i<t.length;i++){var r=t.start(i),o=t.end(i);if(r<=e&&e<o){r,n=o;break}}n>=e+this._config.lazyLoadMaxDuration&&null==this._progressChecker&&(Ei.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}}},{key:"_onmseBufferFull",value:function(){Ei.v(this.TAG,"MSE SourceBuffer is full, suspend transmuxing task"),null==this._progressChecker&&this._suspendTransmuxer()}},{key:"_suspendTransmuxer",value:function(){this._transmuxer&&(this._transmuxer.pause(),null==this._progressChecker&&(this._progressChecker=window.setInterval(this._checkProgressAndResume.bind(this),1e3)))}},{key:"_checkProgressAndResume",value:function(){for(var t=this._mediaElement.currentTime,e=this._mediaElement.buffered,n=!1,i=0;i<e.length;i++){var r=e.start(i),o=e.end(i);if(t>=r&&t<o){t>=o-this._config.lazyLoadRecoverDuration&&(n=!0);break}}n&&(window.clearInterval(this._progressChecker),this._progressChecker=null,n&&(Ei.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))}},{key:"_isTimepointBuffered",value:function(t){for(var e=this._mediaElement.buffered,n=0;n<e.length;n++){var i=e.start(n),r=e.end(n);if(t>=i&&t<r)return!0}return!1}},{key:"_internalSeek",value:function(t){var e=this._isTimepointBuffered(t),n=!1,i=0;if(t<1&&this._mediaElement.buffered.length>0){var r=this._mediaElement.buffered.start(0);(r<1&&t<r||Vi.safari)&&(n=!0,i=Vi.safari?.1:r)}if(n)this._requestSetTime=!0,this._mediaElement.currentTime=i;else if(e){if(this._alwaysSeekKeyframe){var o=this._msectl.getNearestKeyframe(Math.floor(1e3*t));this._requestSetTime=!0,this._mediaElement.currentTime=null!=o?o.dts/1e3:t}else this._requestSetTime=!0,this._mediaElement.currentTime=t;null!=this._progressChecker&&this._checkProgressAndResume()}else null!=this._progressChecker&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._msectl.seek(t),this._transmuxer.seek(Math.floor(1e3*t)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=t)}},{key:"_checkAndApplyUnbufferedSeekpoint",value:function(){if(this._seekpointRecord)if(this._seekpointRecord.recordTime<=this._now()-100){var t=this._mediaElement.currentTime;this._seekpointRecord=null,this._isTimepointBuffered(t)||(null!=this._progressChecker&&(window.clearTimeout(this._progressChecker),this._progressChecker=null),this._msectl.seek(t),this._transmuxer.seek(Math.floor(1e3*t)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=t))}else window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}},{key:"_checkAndResumeStuckPlayback",value:function(t){var e=this._mediaElement;if(t||!this._receivedCanPlay||e.readyState<2){var n=e.buffered;n.length>0&&e.currentTime<n.start(0)&&(Ei.w(this.TAG,"Playback seems stuck at ".concat(e.currentTime,", seek to ").concat(n.start(0))),this._requestSetTime=!0,this._mediaElement.currentTime=n.start(0),this._mediaElement.removeEventListener("progress",this.e.onvProgress))}else this._mediaElement.removeEventListener("progress",this.e.onvProgress)}},{key:"_onvLoadedMetadata",value:function(t){null!=this._pendingSeekTime&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null)}},{key:"_onvSeeking",value:function(t){var e=this._mediaElement.currentTime,n=this._mediaElement.buffered;if(this._requestSetTime)this._requestSetTime=!1;else{if(e<1&&n.length>0){var i=n.start(0);if(i<1&&e<i||Vi.safari)return this._requestSetTime=!0,void(this._mediaElement.currentTime=Vi.safari?.1:i)}if(this._isTimepointBuffered(e)){if(this._alwaysSeekKeyframe){var r=this._msectl.getNearestKeyframe(Math.floor(1e3*e));null!=r&&(this._requestSetTime=!0,this._mediaElement.currentTime=r.dts/1e3)}null!=this._progressChecker&&this._checkProgressAndResume()}else this._seekpointRecord={seekPoint:e,recordTime:this._now()},window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}}},{key:"_onvCanPlay",value:function(t){this._receivedCanPlay=!0,this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay)}},{key:"_onvStalled",value:function(t){this._checkAndResumeStuckPlayback(!0)}},{key:"_onvProgress",value:function(t){this._checkAndResumeStuckPlayback()}}]),t}(),Xr=Yr,qr=function(){function t(e,n){if(bi()(this,t),this.TAG="NativePlayer",this._type="NativePlayer",this._emitter=new(Ai()),this._config=sr(),"object"===yi()(n)&&Object.assign(this._config,n),"flv"===e.type.toLowerCase())throw new Di("NativePlayer does't support flv MediaDataSource input!");if(e.hasOwnProperty("segments"))throw new Di("NativePlayer(".concat(e.type,") doesn't support multipart playback!"));this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this)},this._pendingSeekTime=null,this._statisticsReporter=null,this._mediaDataSource=e,this._mediaElement=null}return Si()(t,[{key:"destroy",value:function(){this._mediaElement&&(this.unload(),this.detachMediaElement()),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(t,e){var n=this;t===cr.MEDIA_INFO?null!=this._mediaElement&&0!==this._mediaElement.readyState&&Promise.resolve().then((function(){n._emitter.emit(cr.MEDIA_INFO,n.mediaInfo)})):t===cr.STATISTICS_INFO&&null!=this._mediaElement&&0!==this._mediaElement.readyState&&Promise.resolve().then((function(){n._emitter.emit(cr.STATISTICS_INFO,n.statisticsInfo)})),this._emitter.addListener(t,e)}},{key:"off",value:function(t,e){this._emitter.removeListener(t,e)}},{key:"attachMediaElement",value:function(t){if(this._mediaElement=t,t.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),null!=this._pendingSeekTime)try{t.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(t){}}},{key:"detachMediaElement",value:function(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement=null),null!=this._statisticsReporter&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}},{key:"load",value:function(){if(!this._mediaElement)throw new Oi("HTMLMediaElement must be attached before load()!");this._mediaElement.src=this._mediaDataSource.url,this._mediaElement.readyState>0&&(this._mediaElement.currentTime=0),this._mediaElement.preload="auto",this._mediaElement.load(),this._statisticsReporter=window.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval)}},{key:"unload",value:function(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src")),null!=this._statisticsReporter&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}},{key:"play",value:function(){return this._mediaElement.play()}},{key:"pause",value:function(){this._mediaElement.pause()}},{key:"type",get:function(){return this._type}},{key:"buffered",get:function(){return this._mediaElement.buffered}},{key:"duration",get:function(){return this._mediaElement.duration}},{key:"volume",get:function(){return this._mediaElement.volume},set:function(t){this._mediaElement.volume=t}},{key:"muted",get:function(){return this._mediaElement.muted},set:function(t){this._mediaElement.muted=t}},{key:"currentTime",get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(t){this._mediaElement?this._mediaElement.currentTime=t:this._pendingSeekTime=t}},{key:"mediaInfo",get:function(){var t={mimeType:(this._mediaElement instanceof HTMLAudioElement?"audio/":"video/")+this._mediaDataSource.type};return this._mediaElement&&(t.duration=Math.floor(1e3*this._mediaElement.duration),this._mediaElement instanceof HTMLVideoElement&&(t.width=this._mediaElement.videoWidth,t.height=this._mediaElement.videoHeight)),t}},{key:"statisticsInfo",get:function(){var t={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return t;var e=!0,n=0,i=0;if(this._mediaElement.getVideoPlaybackQuality){var r=this._mediaElement.getVideoPlaybackQuality();n=r.totalVideoFrames,i=r.droppedVideoFrames}else null!=this._mediaElement.webkitDecodedFrameCount?(n=this._mediaElement.webkitDecodedFrameCount,i=this._mediaElement.webkitDroppedFrameCount):e=!1;return e&&(t.decodedFrames=n,t.droppedFrames=i),t}},{key:"_onvLoadedMetadata",value:function(t){null!=this._pendingSeekTime&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(cr.MEDIA_INFO,this.mediaInfo)}},{key:"_reportStatisticsInfo",value:function(){this._emitter.emit(cr.STATISTICS_INFO,this.statisticsInfo)}}]),t}();ki.install();var Kr={createPlayer:function(t,e){var n=t;if(null==n||"object"!==yi()(n))throw new Di("MediaDataSource must be an javascript object!");if(!n.hasOwnProperty("type"))throw new Di("MediaDataSource must has type field to indicate video file type!");return"flv"===n.type?new Xr(n,e):new qr(n,e)},isSupported:function(){return ur.supportMSEH264Playback()},getFeatureList:function(){return ur.getFeatureList()}};Kr.BaseLoader=Gi,Kr.LoaderStatus=Fi,Kr.LoaderErrors=zi,Kr.Events=cr,Kr.ErrorTypes=Wr,Kr.ErrorDetails=Vr,Kr.FlvPlayer=Xr,Kr.NativePlayer=qr,Kr.LoggingControl=dr,Object.defineProperty(Kr,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var Qr=Kr,Jr=n(15360),$r=n(56102);function to(){var t=window.top.document.fullscreenElement||window.top.document.mozFullscreenElement||window.top.document.webkitFullscreenElement;document.fullscreenEnabled||document.mozFullscreenEnabled||document.webkitFullscreenEnabled;return console.log("fullscreenElement",t),window.isFullScreen?window.isFullScreen:null!=t}var eo={watermark:"watermark___hNYlv",videovideo:"videovideo___ovOkV",animate__loop:"animate__loop___mvL6s",upDown:"upDown___SlgHv",container:"container___g1WYG","video-container":"video-container___XPkWR","video-controls":"video-controls___to0Zq",hide:"hide___NA3DV","video-progress":"video-progress___gqHsd",seek:"seek___iZHBm","seek-tooltip":"seek-tooltip___uWyXx","bottom-controls":"bottom-controls___uoIBm","left-controls":"left-controls___mBEx4","right-controls":"right-controls___e9L6r",rateOverlay:"rateOverlay___HHBWe",controlText:"controlText___M_BWR","volume-controls":"volume-controls___fa3mE","fullscreen-button":"fullscreen-button___ur0es","fullscreen-button1":"fullscreen-button1___rfaXm","pip-button":"pip-button___GFO8W","playback-animation":"playback-animation___ndURq",volume:"volume___OTmpP",hidden:"hidden___o7GkT"};function no(t){if(isNaN(t))return{minutes:"00",seconds:"00"};var e=new Date(1e3*t).toISOString().substr(11,8);return{hour:e.substr(0,2),minutes:e.substr(3,2),seconds:e.substr(6,2)}}function io(t,e){return t-e}function ro(t){t.sort(io);for(var e=0,n=0;n<t.length-1;n++){var i=Math.abs(t[n+1]-t[n]);i<21&&(e+=i)}return e}Object.defineProperty(HTMLMediaElement.prototype,"playing",{get:function(){return!!(this.currentTime>0&&!this.paused&&!this.ended&&this.readyState>2)}});var oo=/(android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini)/i,ao=(0,h.forwardRef)((function(t,e){var n,i,o=t.allow_skip,s=t.src,u=t.toLog,c=t.videoId,d=t.logWatchHistory,f=t.courseId,p=void 0===f?null:f,g=t.startTime,m=t.handlePause,v=void 0===m?function(){}:m,y=t.handlePlay,w=void 0===y?function(){}:y,b=t.handlePlayEnded,x=void 0===b?function(){}:b,S=t.autoPlay,P=void 0!==S&&S,k=t.onPlayEnded,C=void 0===k?function(){}:k,A=t.isShowWaterMark,M=void 0===A||A,E="flv"===(null===(i=s=null===(n=s)||void 0===n?void 0:n.replace("http://","https://"))||void 0===i||null===(i=i.split("."))||void 0===i?void 0:i.pop()),L=(0,h.useRef)(),T=(0,h.useRef)(),N=(0,h.useRef)(),j=(0,h.useRef)(),I=(0,h.useRef)(),B=(0,h.useRef)(),O=(0,h.useRef)(),D=(0,h.useRef)(),R=(0,h.useRef)(),F=(0,h.useRef)(),z=(0,h.useRef)(),G=(0,h.useRef)(),U=(0,h.useRef)(),_=(0,h.useRef)(),Z=navigator.userAgent.toLowerCase().match(oo),W=Z?Z[0]:"pc",V=(0,h.useRef)(!1),Y=(0,xt.eY)(),X=0,q=0,K=0,Q=null,J=!1,$=20,tt=1,et=!1,nt=!1,it=[];(0,h.useImperativeHandle)(e,(function(){return{getLastUpdatedTime:function(){return L.current.currentTime},getDuration:function(){return L.current.duration}}})),H.ZP.config({maxCount:1,getContainer:function(){return N.current}});var rt=(0,h.useCallback)((function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n={point:L.current.currentTime};function i(){return o.apply(this,arguments)}function o(){return(o=a()(r()().mark((function e(){var i;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return et=!0,e.next=3,null==d?void 0:d(n);case 3:i=e.sent,Q=i,et=!1,t&&t();case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}Q?(n.log_id=Q,n.watch_duration=ro(it),n.total_duration=q):(p?(n.video_id=parseInt(c,10),n.course_id=p):n.video_id=c,n.duration=X,n.device=W),e&&(n.ed="1"),i()}),[c,p]);function ot(){L.current.paused?(j.current.style.display="none",I.current.style.display="block"):(j.current.style.display="block",I.current.style.display="none")}function st(){z.current.style.display="none",U.current.style.display="none",G.current.style.display="none",L.current.muted||0===L.current.volume?z.current.style.display="block":L.current.volume>0&&L.current.volume<=.5?U.current.style.display="block":G.current.style.display="block"}(0,h.useEffect)((function(){var t;L.current&&(j.current.style.display="none",I.current.style.display="block"),H.ZP.destroy();var e=null;return Qr.isSupported&&E&&s&&(null===(t=s)||void 0===t?void 0:t.indexOf(".m3u8"))<0?(e=Qr.createPlayer({type:"flv",volume:.8,cors:!0,url:s,muted:!1}),L.current&&(e.attachMediaElement(L.current),e.load())):L.current.setAttribute("src",s),st(),function(){e&&(e.unload(),e.pause(),e.destroy(),e=null)}}),[L,E,s]),(0,h.useEffect)((function(){document.getElementById("play"),document.querySelectorAll(".playback-icons use");function t(){w(),g&&!V.current&&(L.current.currentTime=g),V.current=!0,it.push(L.current.currentTime),J||(J=!0,u&&rt())}function e(){return n.apply(this,arguments)}function n(){return(n=a()(r()().mark((function t(){return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:ot(),it.push(L.current.currentTime),u&&rt((function(){Q=null,K=0,J=!1,et=!1,nt=!1,it=[],q=0,tt=1}),!0),C();case 4:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function i(){B.current.value=Math.round(L.current.currentTime),O.current.value=Math.round(L.current.currentTime)}function s(){var t,e,n,i,r,o=Math.round(null===(t=L.current)||void 0===t?void 0:t.duration);null===(e=B.current)||void 0===e||null===(n=e.setAttribute)||void 0===n||n.call(e,"max",o),null===(i=O.current)||void 0===i||null===(r=i.setAttribute)||void 0===r||r.call(i,"max",o);var a,s,l=no(o);D.current&&(D.current.innerText="".concat(l.hour>0?l.hour+":":"").concat(l.minutes,":").concat(l.seconds),null===(a=(s=D.current).setAttribute)||void 0===a||a.call(s,"datetime","".concat(l.hour>0?" "+l.hour+" ":"").concat(l.minutes,"m ").concat(l.seconds,"s")))}function l(){try{var t=Math.round(L.current.duration);B.current.setAttribute("max",t),O.current.setAttribute("max",t);var e=no(t);D.current.innerText="".concat(e.hour>0?e.hour+":":"").concat(e.minutes,":").concat(e.seconds),D.current.setAttribute("datetime","".concat(e.hour>0?" "+e.hour+" ":"").concat(e.minutes,"m ").concat(e.seconds,"s")),i(),function(){var t=no(Math.round(L.current.currentTime));R.current.innerText="".concat(t.hour>0?t.hour+":":"").concat(t.minutes,":").concat(t.seconds),R.current.setAttribute("datetime","".concat(t.hour>0?" "+t.hour+" ":"").concat(t.minutes,"m ").concat(t.seconds,"s"))}();var n=T.current.getBoundingClientRect(),r=n.width,o=(n.height,n.x),a=n.y;if(o<0||a<0||!r)return;if(!nt){var s=L.current.currentTime,l=s-K;Math.abs(l)<10?(q+=Math.abs(l),K=s,et||q-tt*$>=0&&(tt++,it.push(K),u&&rt())):(K=s,u&&rt())}}catch(t){console.log(t)}}function c(){nt=!0}function h(){L.current.playing&&it.push(L.current.currentTime,K),K=L.current.currentTime,nt=!1}function d(){(X=L.current.duration)<=20&&($=X/3),L.current.addEventListener("play",t)}function f(){v()}function p(t){if(o){var e=t.target.dataset.seek?t.target.dataset.seek:t.target.value;L.current.currentTime=e,O.current.value=e,B.current.value=e}else H.ZP.warning("该视频禁止快进/后退播放")}function m(t){var e=Math.round(t.offsetX/t.target.clientWidth*parseInt(t.target.getAttribute("max"),10));B.current.setAttribute("data-seek",e);var n=no(e);F.current.textContent="".concat(n.hour>0?n.hour+":":"").concat(n.minutes,":").concat(n.seconds);var i=L.current.getBoundingClientRect();F.current.style.left="".concat(t.pageX-i.left,"px")}function y(t){switch(t.code){case"Space":t.preventDefault(),ht();break;case"ArrowRight":if(t.preventDefault(),!o){H.ZP.warning("该视频禁止快进/后退播放");break}if(L.current.currentTime>=L.current.duration)break;L.current.currentTime=parseInt(L.current.currentTime)+5,i();break;case"ArrowLeft":if(t.preventDefault(),!o){H.ZP.warning("该视频禁止快进/后退播放");break}if(0===L.current.currentTime)break;L.current.currentTime=parseInt(L.current.currentTime)-5,i();break;case"ArrowUp":t.preventDefault(),L.current.volume<1&&(L.current.volume=(parseInt(10*L.current.volume)+1)/10);break;case"ArrowDown":t.preventDefault(),L.current.volume>0&&(L.current.volume=(parseInt(10*L.current.volume)-1)/10)}}return N.current.addEventListener(document.webkitExitFullscreen?"webkitfullscreenchange":document.exitFullscreen?"fullscreenchange":document.msExitFullscreen?"msfullscreenchange":document.mozCancelFullScreen?"mozfullscreenchange":void 0,(function(t){t.preventDefault(),to()?(L.current.style.width="100%",L.current.style.height="100%"):L.current.style.cssText=""})),L.current.addEventListener("canplay",d),L.current.addEventListener("ended",e),L.current.addEventListener("seeking",c),L.current.addEventListener("seeked",h),L.current.addEventListener("loadedmetadata",s),B.current.addEventListener("mousemove",m),B.current.addEventListener("input",p),L.current.addEventListener("timeupdate",l),L.current.addEventListener("pause",f),L.current.addEventListener("volumechange",st),document.addEventListener("keydown",y),function(){var n,i,r,o,a,g,v,w,b,x,S,P;null===(n=L.current)||void 0===n||n.removeEventListener("canplay",d),null===(i=L.current)||void 0===i||i.removeEventListener("play",t),null===(r=L.current)||void 0===r||r.removeEventListener("ended",e),null===(o=L.current)||void 0===o||o.removeEventListener("seeking",c),null===(a=L.current)||void 0===a||a.removeEventListener("seeked",h),null===(g=B.current)||void 0===g||g.removeEventListener("mousemove",m),null===(v=B.current)||void 0===v||v.removeEventListener("input",p),null===(w=L.current)||void 0===w||w.removeEventListener("timeupdate",l),null===(b=L.current)||void 0===b||b.removeEventListener("pause",f),null===(x=L.current)||void 0===x||x.removeEventListener("loadedmetadata",s),null===(S=L.current)||void 0===S||S.removeEventListener("volumechange",st),document.removeEventListener("keydown",y),null!==(P=L.current)&&void 0!==P&&P.playing&&(it.push(K,L.current.currentTime),u&&rt())}}),[L,s]),(0,h.useEffect)((function(){var t;if(L.current.onended=function(){x(L)},L.current.oncontextmenu=function(){return!1},(null===(t=s)||void 0===t?void 0:t.indexOf(".m3u8"))>-1)if(L.current.canPlayType("application/vnd.apple.mpegurl"))L.current.src=s;else if(Jr.ZP.isSupported()){var e=new Jr.ZP;e.loadSource(s),e.attachMedia(L.current)}}),[s]);var lt=(0,h.useState)(1),ut=l()(lt,2),ct=(ut[0],ut[1]),ht=function(){L.current.paused||L.current.ended?L.current.play():L.current.pause(),ot()};return(0,at.jsxs)("div",{style:{position:"relative"},ref:N,children:[(0,at.jsx)("div",{ref:T,className:"".concat(eo.watermark," animated_alternate animate__animated_10s animate__infinite animate__stepstart ").concat(eo.animate__loop),children:M&&Y?Y.login:" "}),(0,at.jsx)("div",{className:eo.container,children:(0,at.jsxs)("div",{className:eo["video-container"],id:"video-container",children:[(0,at.jsx)("div",{className:eo["playback-animation"],id:"playback-animation",children:(0,at.jsxs)("svg",{className:eo["playback-icons"],children:[(0,at.jsx)("use",{className:"hidden",href:"#play-icon"}),(0,at.jsx)("use",{href:"#pause"})]})}),(0,at.jsx)("video",{className:eo.video,id:"video",preload:"auto",disablePictureInPicture:!0,ref:L,autoPlay:P}),(0,at.jsxs)("div",{className:"".concat(eo["video-controls"]," "),id:"video-controls",children:[(0,at.jsxs)("div",{className:eo["bottom-controls"],children:[(0,at.jsxs)("div",{className:eo["left-controls"],children:[(0,at.jsx)("button",{"data-title":"播放/暂停",id:"play",onClick:ht,children:(0,at.jsxs)("svg",{className:eo["playback-icons"],children:[(0,at.jsx)("use",{ref:I,href:"#play-icon"}),(0,at.jsx)("use",{ref:j,style:{display:"none"},href:"#pause"})]})}),(0,at.jsxs)("div",{className:eo.time,children:[(0,at.jsx)("time",{id:"time-elapsed",ref:R,children:"00:00"}),(0,at.jsx)("span",{children:" / "}),(0,at.jsx)("time",{id:"duration",ref:D,children:"00:00"})]})]}),(0,at.jsxs)("div",{className:eo["right-controls"],children:[o&&(0,at.jsx)(me.Z,{placement:"top",overlayClassName:eo.rateOverlay,getPopupContainer:function(t){return t.parentNode},menu:{items:[{key:"1",label:(0,at.jsx)("span",{onClick:function(){ct(1),L.current.playbackRate=1},children:"1.0x"})},{key:"2",label:(0,at.jsx)("span",{onClick:function(){ct(1.5),L.current.playbackRate=1.5},children:"1.5x"})},{key:"3",label:(0,at.jsx)("span",{onClick:function(){ct(2),L.current.playbackRate=2},children:"2.0x"})}]},children:(0,at.jsx)("div",{className:"".concat(eo.controlText," mr5"),children:"倍速"})}),(0,at.jsx)($r.CopyToClipboard,{text:s,onCopy:function(){return H.ZP.success("复制成功")},children:(0,at.jsx)("button",{"data-title":"复制链接",children:(0,at.jsx)("i",{className:"icon-lianjie2 iconfont",style:{fontSize:"12px",color:"white"}})})}),(0,at.jsxs)("div",{className:eo["volume-controls"],children:[(0,at.jsxs)("button",{"data-title":"开启/关闭声音",className:eo["volume-button"],id:"volume-button",onClick:function(){L.current.muted=!L.current.muted,L.current.muted?(_.current.setAttribute("data-volume",volume.value),_.current.value=0):_.current.value=_.current.dataset.volume},children:[(0,at.jsx)("i",{ref:z,className:"icon-a-bianzu8 iconfont",style:{fontSize:"14px",color:"white"}}),(0,at.jsx)("i",{ref:U,className:"icon-shengyinkaibeifen iconfont",style:{fontSize:"14px",color:"white"}}),(0,at.jsx)("i",{ref:G,className:"icon-shengyinkai iconfont",style:{fontSize:"14px",color:"white"}})]}),(0,at.jsx)("input",{className:eo.volume,id:"volume",value:"1","data-mute":"0.5",type:"range",max:"1",min:"0",step:"0.01",ref:_,style:{display:"none"},onClick:st})]}),(0,at.jsx)("button",{"data-title":"全屏/退出全屏",className:eo["fullscreen-button"],onClick:function(){to()?window.top.document.webkitExitFullscreen?window.top.document.webkitExitFullscreen():document.exitFullscreen?window.top.document.exitFullscreen():document.msExitFullscreen?window.top.document.msExitFullscreen():document.mozCancelFullScreen&&window.top.document.mozCancelFullScreen():function(t){try{t.mozRequestFullScreen?t.mozRequestFullScreen():t.webkitRequestFullScreen&&t.webkitRequestFullScreen()}catch(t){console.log(t,":e")}}(N.current)},children:(0,at.jsx)("i",{className:"icon-fangda1 iconfont",style:{fontSize:"12px",color:"white"}})})]})]}),(0,at.jsxs)("div",{className:eo["video-progress"],children:[(0,at.jsx)("progress",{ref:O,value:"0",min:"0"}),(0,at.jsx)("input",{className:eo.seek,ref:B,value:"0",min:"0",type:"range",step:"1"}),(0,at.jsx)("div",{className:eo["seek-tooltip"],ref:F,id:"seek-tooltip",children:"00:00"})]})]})]})}),(0,at.jsx)("svg",{style:{display:"none"},children:(0,at.jsxs)("defs",{children:[(0,at.jsx)("symbol",{id:"pause",viewBox:"0 0 24 24",children:(0,at.jsx)("path",{d:"M14.016 5.016h3.984v13.969h-3.984v-13.969zM6 18.984v-13.969h3.984v13.969h-3.984z"})}),(0,at.jsx)("symbol",{id:"play-icon",viewBox:"0 0 24 24",children:(0,at.jsx)("path",{d:"M8.016 5.016l10.969 6.984-10.969 6.984v-13.969z"})}),(0,at.jsx)("symbol",{id:"volume-high",viewBox:"0 0 24 24",children:(0,at.jsx)("path",{d:"M14.016 3.234q3.047 0.656 5.016 3.117t1.969 5.648-1.969 5.648-5.016 3.117v-2.063q2.203-0.656 3.586-2.484t1.383-4.219-1.383-4.219-3.586-2.484v-2.063zM16.5 12q0 2.813-2.484 4.031v-8.063q1.031 0.516 1.758 1.688t0.727 2.344zM3 9h3.984l5.016-5.016v16.031l-5.016-5.016h-3.984v-6z"})}),(0,at.jsx)("symbol",{id:"volume-low",viewBox:"0 0 24 24",children:(0,at.jsx)("path",{d:"M5.016 9h3.984l5.016-5.016v16.031l-5.016-5.016h-3.984v-6zM18.516 12q0 2.766-2.531 4.031v-8.063q1.031 0.516 1.781 1.711t0.75 2.32z"})}),(0,at.jsx)("symbol",{id:"volume-mute",viewBox:"0 0 24 24",children:(0,at.jsx)("path",{d:"M12 3.984v4.219l-2.109-2.109zM4.266 3l16.734 16.734-1.266 1.266-2.063-2.063q-1.547 1.313-3.656 1.828v-2.063q1.172-0.328 2.25-1.172l-4.266-4.266v6.75l-5.016-5.016h-3.984v-6h4.734l-4.734-4.734zM18.984 12q0-2.391-1.383-4.219t-3.586-2.484v-2.063q3.047 0.656 5.016 3.117t1.969 5.648q0 2.203-1.031 4.172l-1.5-1.547q0.516-1.266 0.516-2.625zM16.5 12q0 0.422-0.047 0.609l-2.438-2.438v-2.203q1.031 0.516 1.758 1.688t0.727 2.344z"})}),(0,at.jsx)("symbol",{id:"fullscreen",viewBox:"0 0 24 24",children:(0,at.jsx)("path",{d:"M14.016 5.016h4.969v4.969h-1.969v-3h-3v-1.969zM17.016 17.016v-3h1.969v4.969h-4.969v-1.969h3zM5.016 9.984v-4.969h4.969v1.969h-3v3h-1.969zM6.984 14.016v3h3v1.969h-4.969v-4.969h1.969z"})}),(0,at.jsx)("symbol",{id:"fullscreen-exit",viewBox:"0 0 24 24",children:(0,at.jsx)("path",{d:"M15.984 8.016h3v1.969h-4.969v-4.969h1.969v3zM14.016 18.984v-4.969h4.969v1.969h-3v3h-1.969zM8.016 8.016v-3h1.969v4.969h-4.969v-1.969h3zM5.016 15.984v-1.969h4.969v4.969h-1.969v-3h-3z"})}),(0,at.jsx)("symbol",{id:"pip",viewBox:"0 0 24 24",children:(0,at.jsx)("path",{d:"M21 19.031v-14.063h-18v14.063h18zM23.016 18.984q0 0.797-0.609 1.406t-1.406 0.609h-18q-0.797 0-1.406-0.609t-0.609-1.406v-14.016q0-0.797 0.609-1.383t1.406-0.586h18q0.797 0 1.406 0.586t0.609 1.383v14.016zM18.984 11.016v6h-7.969v-6h7.969z"})})]})})]})})),so="modal___LGwws",lo="closeIcon___vsUXI",uo=n(24334),co=function(t){var e=t.visible,n=t.width,i=t.videoId,r=t.file_url,o=t.course_id,a=(t.copyUrl,t.toLog),s=void 0===a||a,l=t.logWatchHistory,u=void 0===l?function(){}:l,c=t.allow_skip,h=t.onClose,d=void 0===h?function(){}:h,f=t.autoPlay,p=void 0!==f&&f,g=t.onPlayEnded,m=void 0===g?function(){}:g;return(0,at.jsxs)(U.Z,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,open:e,title:null,footer:null,width:n,className:so,children:[(0,at.jsx)("i",{className:"".concat(lo," iconfont icon-guanbi10"),onClick:d}),e&&(0,at.jsx)(ao,{onPlayEnded:m,autoPlay:p,allow_skip:c,courseId:o,src:null!=r&&r.startsWith("http")?r:uo.Base64.decode(r),videoId:i,toLog:s,logWatchHistory:u})]})},ho=(0,d.connect)((function(t){return{user:t.user,dispatch:t.dispatch}}))((function(t){var e,n=t.setScoreShow,i=t.ScoreShow,o=t.modalType,s=t.user,u=t.id,c=t.subjectId,f=t.dispatch,p=t.getData,g=t.openPreview,m=(0,h.useState)({page:1,type:"1",per_page:10,category:"manage",search:"",homework_type:"3",association_id:""}),v=l()(m,2),y=v[0],w=v[1],b=(0,h.useState)([]),x=l()(b,2),S=x[0],P=x[1],k=(0,h.useState)([]),C=l()(k,2),A=C[0],M=C[1],E=(0,h.useState)([]),L=l()(E,2),T=L[0],N=L[1],j=(0,h.useState)(!1),I=l()(j,2),B=I[0],O=I[1],D=X.Z.useForm(),R=l()(D,1)[0],z=(0,h.useState)(0),_=l()(z,2),Z=_[0],W=_[1],V=(0,h.useState)(!1),q=l()(V,2),K=q[0],Q=q[1],J=(0,h.useState)(""),$=l()(J,2),tt=$[0],et=$[1],it=(0,h.useState)([]),ot=l()(it,2),st=ot[0],ut=ot[1],ct=(0,h.useRef)(new Set),ht=(0,h.useRef)(new Set),dt=(0,h.useState)([{}]),ft=l()(dt,2),pt=ft[0],gt=ft[1],mt=(0,h.useState)(),vt=l()(mt,2),yt=vt[0],wt=vt[1],bt=(0,h.useState)({}),xt=l()(bt,2),St=xt[0],Pt=xt[1],kt=(0,h.useState)(""),Ct=l()(kt,2),Mt=Ct[0],Et=Ct[1],Lt=(0,h.useState)(""),Tt=l()(Lt,2),Nt=Tt[0],jt=Tt[1],It=((0,d.useParams)(),(0,h.useState)(!1)),Bt=l()(It,2),Ot=Bt[0],Dt=Bt[1],Rt=[{title:"名称",dataIndex:"3"==(null==y?void 0:y.type)?"title":"name",key:"name",render:function(t,e,n){var i,r;return(0,at.jsxs)("div",{children:["1"==(null==y?void 0:y.homework_type)&&(null==e?void 0:e.name),"3"==(null==y?void 0:y.homework_type)&&(null==e?void 0:e.name),"5"==(null==y?void 0:y.homework_type)&&(null==e?void 0:e.name),"7"==(null==y?void 0:y.homework_type)&&(null==e||null===(i=e.video)||void 0===i?void 0:i.title),"8"==(null==y?void 0:y.homework_type)&&"1"==(null==y?void 0:y.type)?null==e?void 0:e.filename:null==e||null===(r=e.attachment)||void 0===r?void 0:r.filename,"3"==(null==y?void 0:y.type)&&t]})}},{title:"1"==(null==y?void 0:y.type)?"所属课堂":"所属实践课程",dataIndex:"1"==(null==y?void 0:y.type)?"course_name":"subject_name",width:"55%",key:"1"==(null==y?void 0:y.type)?"course_name":"subject_name",ellipsis:!0,hidden:"3"==(null==y?void 0:y.type)},{title:"操作",dataIndex:"id",width:"60px",key:"item_type",render:function(t,e,n){return(0,at.jsx)("div",{style:{flex:1,textAlign:"start"},children:(0,at.jsx)("a",{onClick:function(){if(null!=e&&e.link)(0,F.xg)(e.link);else if("教学课件"==o)g(e);else if("视频项目"==o){var t,n;if(null!=e&&e.video)wt(!0),Pt({videoId:null==e||null===(t=e.video)||void 0===t?void 0:t.id,file_url:null==e||null===(n=e.video)||void 0===n?void 0:n.play_url});else"3"==(null==y?void 0:y.type)?(wt(!0),Pt({videoId:e.id,file_url:e.play_url||e.file_url})):H.ZP.error("没有视频资源")}else"编程作业"==o?(0,lt.NV)({id:null==e?void 0:e.id,source:"course"}).then((function(t){var e;0==(null==t?void 0:t.status)&&(et(null==t||null===(e=t.data)||void 0===e?void 0:e.homework),jt(null==t?void 0:t.course_id));Et("HomeworkCommon"),Q(!0)})):(0,lt.NV)({id:null==e?void 0:e.id,source:"1"==(null==y?void 0:y.type)?"course":"subject"}).then((function(t){var e;0==(null==t?void 0:t.status)&&et(null==t||null===(e=t.data)||void 0===e?void 0:e.homework);Q(!0)}))},children:"查看"})})}}].filter((function(t){return!t.hidden})),Ft={type:"checkbox",selectedRowKeys:S,onSelect:function(t,e,n){if(e)P([].concat(Y()(S),[t.id])),ut([].concat(Y()(st),[t])),"2"===y.type?ct.current.add(t.id):ht.current.add(t.id),W(1),M([].concat(Y()(A),[t.id]));else{var i=st.filter((function(e){return e.id!==t.id}));ut(i);var r=i.map((function(t){return t.id}));P(Y()(r)),"2"===y.type?ct.current.delete(t.id):ht.current.delete(t.id);var o=A.filter((function(e){return e!==t.id}));M(o)}},onSelectAll:function(t,e,n){if(t){var i=n.map((function(t){return t.id}));ut([].concat(Y()(st),Y()(n))),P([].concat(Y()(S),Y()(i))),M([].concat(Y()(A),Y()(i)));var r,o=At()(n);try{for(o.s();!(r=o.n()).done;){var a=r.value;"2"===y.type?ct.current.add(a.id):ht.current.add(a.id)}}catch(t){o.e(t)}finally{o.f()}}else{var s=n.map((function(t){return t.id})),l=S.filter((function(t){return!s.some((function(e){return e===t}))})),u=st.filter((function(t){return!s.some((function(e){return e===t.id}))}));ut(u),P(Y()(l)),M(Y()(l));var c,h=At()(s);try{for(h.s();!(c=h.n()).done;){var d=c.value;"2"===y.type?ct.current.delete(d):ht.current.delete(d)}}catch(t){h.e(t)}finally{h.f()}}}};(0,h.useEffect)((function(){i&&(y.search="",y.type="1",y.homework_type="分组作业"==o?"3":"图文作业"==o?"1":"视频项目"==o?"7":"编程作业"==o?"5":"8",w(y),Kt(y),R.setFieldsValue({association_id:"",search:null}),ct.current.clear(),ht.current.clear(),ut([]),P([]),M([]))}),[i]);var zt=(0,h.useState)(1),Gt=l()(zt,2),Ut=Gt[0],Ht=Gt[1],_t=(0,h.useState)([]),Zt=l()(_t,2),Wt=Zt[0],Vt=Zt[1];(0,h.useEffect)((function(){1!=Ut&&i&&Yt(Ut)}),[Ut]),(0,h.useEffect)((function(){i&&(Vt([]),Ht(1),Yt(1))}),[y.type]);var Yt=function(t){"1"==y.type?Xt(t):"2"==y.type&&qt(t)},Xt=function(t){var e;(0,Ye.Ho)({page:t,category:"manage",status:"",sort_by:"updated_at",sort_direction:"desc",username:null==s||null===(e=s.userInfo)||void 0===e?void 0:e.login}).then((function(e){Vt(1==t?[{id:"",name:"全部教学课堂"}].concat(Y()(null==e?void 0:e.courses)):[].concat(Y()(Wt),Y()(null==e?void 0:e.courses)))}))},qt=function(t){var e;(0,Ye.w3)({page:t,category:"manage",status:"",sort_by:"updated_at",sort_direction:"desc",username:null==s||null===(e=s.userInfo)||void 0===e?void 0:e.login}).then((function(e){Vt(1==t?[{id:"",name:"全部实践课程"}].concat(Y()(null==e?void 0:e.subjects)):[].concat(Y()(Wt),Y()(null==e?void 0:e.subjects)))}))};function Kt(t){return Qt.apply(this,arguments)}function Qt(){return(Qt=a()(r()().mark((function t(e){var n,i,o,a;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(O(!0),w(G()({},e)),"1"!=e.type){t.next=6;break}(0,lt.A7)(G()({user_id:null==s||null===(n=s.userInfo)||void 0===n?void 0:n.login},e)).then((function(t){0==(null==t?void 0:t.status)&&N(null==t?void 0:t.data)})),t.next=15;break;case 6:if("2"!=e.type){t.next=10;break}(0,lt.jT)(G()({user_id:null==s||null===(i=s.userInfo)||void 0===i?void 0:i.login},e)).then((function(t){0==(null==t?void 0:t.status)&&N(null==t?void 0:t.data)})),t.next=15;break;case 10:if("3"!=e.type){t.next=15;break}return t.next=13,f({type:"userDetail/getVideos",payload:G()(G()({},e),{},{category:"all",sort_by:"published_at",sort_direction:"desc",username:null===(o=s.userInfo)||void 0===o?void 0:o.login})});case 13:a=t.sent,N({count:null==a?void 0:a.count,list:null==a?void 0:a.videos});case 15:O(!1);case 16:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return(0,h.useEffect)((function(){Z>0&&setTimeout((function(){W(0)}),2e3)}),[Z]),(0,at.jsxs)("div",{children:[(0,at.jsxs)(U.Z,{title:"选用"+o,open:i,width:900,centered:!0,zIndex:10,className:ze,onCancel:function(){n(!1)},confirmLoading:Ot,onOk:a()(r()().mark((function t(){var e;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!((null==A?void 0:A.length)<=0)){t.next=3;break}return H.ZP.info("当前暂未选择数据"),t.abrupt("return");case 3:return Dt(!0),t.next=6,(0,lt._C)({id:u,subject_id:c,homework_type:"3"==y.type?"9":"分组作业"==o?"3":"图文作业"==o?"1":"视频项目"==o?"7":"编程作业"==o?"5":"8",homework_ids:Y()(ht.current),subject_homework_ids:Y()(ct.current)});case 6:0==(null==(e=t.sent)?void 0:e.status)&&(H.ZP.success("选用成功"),p(),n(!1)),Dt(!1);case 9:case"end":return t.stop()}}),t)}))),children:[(0,at.jsxs)("div",{className:_e,children:[(0,at.jsx)(De.Z,{className:Ze,activeKey:y.type,onChange:function(t){y.type=t,y.page=1,y.updated_at="",y.association_id=null,y.search=null,R.setFieldsValue({association_id:"",search:null}),w(G()({},y)),Kt(G()({},y))},items:[{label:"从教学课堂选用",key:"1"},"编程作业"!=o&&("视频项目"==o?{label:"从个人主页选用",key:"3"}:{label:"从实践课程选用",key:"2"})]}),(0,at.jsxs)(X.Z,{layout:"inline",className:We,form:R,onValuesChange:function(t,e){y.page=1,t.search||""===t.search||R.submit()},onFinish:function(t){w(G()(G()({},y),t)),Kt(G()(G()({},y),t))},children:["3"!=y.type&&(0,at.jsx)(X.Z.Item,{name:"association_id",children:(0,at.jsx)(Re.default,{onPopupScroll:function(t){var e=t.target;e.scrollHeight-e.clientHeight===e.scrollTop&&Ht(Ut+1)},className:Ge,style:{width:200},size:"large",children:Wt.map((function(t,e){return(0,at.jsx)(Re.default.Option,{children:null==t?void 0:t.name},null==t?void 0:t.id)}))})}),(0,at.jsx)(X.Z.Item,{style:{flex:"0 0 auto",marginRight:0,marginLeft:"auto"},name:"search",children:(0,at.jsx)(rt.Z.Search,{className:Ue,placeholder:"视频项目"==o?"请输入视频名称进行搜索":"教学课件"==o?"请输入课件名称进行搜索":"请输入作业名称进行搜索",allowClear:!0,suffix:(0,at.jsx)("i",{className:"iconfont icon-sousuo9 font14 ".concat(He),onClick:function(){return R.submit()}}),onSearch:function(t){R.submit()}})})]})]}),(null==T||null===(e=T.list)||void 0===e?void 0:e.length)>0?(0,at.jsx)(Fe.Z,{style:{marginTop:20,marginBottom:20},scroll:{y:260},dataSource:null==T?void 0:T.list,pagination:!1,loading:B,rowKey:function(t){return t.id},rowSelection:Ft,columns:Rt}):(0,at.jsx)(Ve.Z,{}),(null==T?void 0:T.count)>0&&(0,at.jsx)(nt.Z,{current:y.page,total:null==T?void 0:T.count,style:{marginBottom:20},defaultPageSize:y.per_page,showTotal:function(t){return(0,at.jsxs)("span",{children:["共 ",(0,at.jsx)("span",{style:{color:"#165DFF"},children:t})," 条数据"]})},pageSize:y.per_page,onChange:function(t,e){y.page=t,y.per_page=e,w(G()({},y)),Kt(G()({},y))}})]}),(0,at.jsx)(mi,{setScoreShow:Q,ScoreShow:K,modalDdata:tt,homeType:Mt,homeId:Nt}),(0,at.jsx)(dn.Z,{close:!0,data:null==pt?void 0:pt.content,type:null==pt?void 0:pt.type,hasMask:!0,monacoEditor:{value:"",language:"txt",onChange:function(){},options:{readOnly:!0,fontSize:14,minimap:{enabled:!1}}},onClose:function(){gt({content:"",type:""})}}),(0,at.jsx)(co,G()(G()({},St),{},{visible:yt,allow_skip:!0,width:800,onClose:function(){wt(!1),Pt({})}}))]})})),fo=n(85573),po=n.n(fo),mo=n(89780),vo=n.n(mo),yo=n(76374),wo=(n(6313),n(25717),n(99498),n(25419),n(67549),function(t){var e=t.value,n=void 0===e?"":e,i=(t.className,t.showTextOnly,t.showLines,t.style,(0,h.useMemo)((function(){return""}),[n]));return(0,at.jsx)(at.Fragment,{children:(0,at.jsx)("div",{dangerouslySetInnerHTML:{__html:i}})})}),bo=[{title:"粗体",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"斜体",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"无序列表",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"有序列表",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"行内代码",icon:"md-iconfont icon-code",actionName:"code"},{title:"代码块(多语言风格)",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"链接",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"行内公式",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"数学图像",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"多行公式",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"添加图片",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"插入画图",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"插入流程图",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"表格",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"换行",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"清空",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function xo(t){var e=t.onActionCallback,n=t.title,i=t.icon,r=t.actionName,o=t.className,a=void 0===o?"":o,s=t.children;return(0,at.jsxs)("a",{title:n,className:a,onClick:function(){e(r)},children:[(0,at.jsx)("i",{className:"".concat(i)}),s]})}var So=function(t){var e=t.watch,n=t.showNullButton,i=t.showNullProgramButton,r=t.onActionCallback,o=t.fullScreen,a=t.insertTemp,s=t.hidetoolBar,l=t.extraUse,u=[].concat(bo,[{title:"".concat(e?"关闭实时预览":"开启实时预览"),icon:"".concat(e?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"),actionName:"trigger-watch"}]);return(0,at.jsxs)("ul",{className:"markdown-toolbar-container",children:[!s&&u.map((function(t,e){return(0,at.jsx)("li",{children:t.actionName?(0,at.jsx)(xo,G()(G()({},t),{},{onActionCallback:r})):(0,at.jsx)("span",{className:"v-line"})},e)})),n?(0,at.jsx)("li",{children:(0,at.jsx)(xo,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-null-ch",onActionCallback:r,children:(0,at.jsx)("span",{className:"fill-tip",children:"点击插入\b填空项"})})}):null,i?(0,at.jsxs)(at.Fragment,{children:[(0,at.jsx)("li",{children:(0,at.jsx)(xo,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-signal",onActionCallback:r,children:(0,at.jsx)("span",{className:"fill-tip",children:"+单行填空项"})})}),(0,at.jsx)("li",{children:(0,at.jsx)(xo,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"增加填空",actionName:"add-multiple",onActionCallback:r,children:(0,at.jsx)("span",{className:"fill-tip",children:"+多行填空项"})})})]}):null,a&&(0,at.jsx)("li",{children:(0,at.jsx)(xo,{icon:"md-iconfont icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(a),onActionCallback:r,children:(0,at.jsx)("span",{className:"fill-tip",children:"插入模板"})})}),l&&(0,at.jsx)("li",{children:l}),(0,at.jsx)("li",{className:"btn-full-screen",children:(0,at.jsx)(xo,{icon:"".concat(o?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:o?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:r})})]})},Po=n(4676),ko=function(t){Ni()(n,t);var e=Ii()(n);function n(t){var i;bi()(this,n),i=e.call(this,t);var r=window.document;return i.node=r.createElement("div"),r.body.appendChild(i.node),i}return Si()(n,[{key:"render",value:function(){var t=this.props.children;return(0,Po.createPortal)(t,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),n}(h.Component),Co={labelCol:{span:4},wrapperCol:{span:20}},Ao=function(t){var e=t.callback,n=t.onCancel;return(0,at.jsxs)(X.Z,G()(G()({},Co),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(t){e(t)},style:{width:500},children:[(0,at.jsx)(X.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,at.jsx)(rt.Z,{})}),(0,at.jsx)(X.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,at.jsx)(rt.Z,{})}),(0,at.jsxs)("div",{className:"flex-container flex-end",children:[(0,at.jsx)(K.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,at.jsx)(K.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))},Mo=Re.default.Option,Eo={labelCol:{span:4},wrapperCol:{span:20}},Lo={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]},To=function(t){var e=t.callback,n=t.onCancel,i=(0,h.useState)("python"),r=l()(i,2),o=r[0],a=r[1];return(0,at.jsxs)(X.Z,G()(G()({},Eo),{},{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:function(t){e(t)},style:{width:500},children:[(0,at.jsx)(X.Z.Item,{label:"代码语言",name:"language",children:(0,at.jsx)(Re.default,{getPopupContainer:function(t){return t.parentNode},onChange:function(t){a(Lo[t][1])},children:Object.keys(Lo).map((function(t){return(0,at.jsx)(Mo,{value:t,children:Lo[t][0]},t)}))})}),(0,at.jsx)(X.Z.Item,{label:"代码内容",name:"content",rules:[{required:!0,message:"请输入代码内容"}],children:(0,at.jsx)(No,{mode:o})}),(0,at.jsxs)("div",{className:"flex-container flex-end",children:[(0,at.jsx)(K.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,at.jsx)(K.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))};function No(t){var e=t.value,n=t.onChange,i=t.mode,r=t.options,o=void 0===r?{}:r,a=(0,h.useRef)(),s=(0,h.useState)(),u=l()(s,2),c=u[0],d=u[1];return(0,h.useEffect)((function(){if(c){var t=function(t){var e=t.getValue();n&&n(e)};return c.on("change",t),function(){c.off("change",t)}}}),[c,n]),(0,h.useEffect)((function(){c&&c.setOption("mode",i)}),[c,i]),(0,h.useEffect)((function(){c&&(e===c.getValue()&&""!==e||setTimeout((function(){c.setValue(e||"")}),300))}),[c,e]),(0,h.useEffect)((function(){if(a.current&&!c){var t=vo().fromTextArea(a.current,G()({mode:i,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},o));d(t)}}),[a.current,c]),(0,at.jsx)("div",{className:"my-codemirror-container",children:(0,at.jsx)("textarea",{ref:a})})}var jo=n(53302),Io=function(t){var e=t.callback,n=t.onCancel,i=document.createElement("canvas"),r=i.getContext("2d");i.width=1e3,i.height=800,r.fillStyle="#ffffff",r.fillRect(0,0,i.width,i.height);var o=i.toDataURL("image/png");return(0,at.jsx)(U.Z,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1,children:(0,at.jsx)(Q.Z,{style:{height:"100vh"},children:(0,at.jsx)(di,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:o,visible:!0,title:String(Date.now())},onOk:function(t){e({src:t.url})},onClose:n})})})},Bo=n(12378);function Oo(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Oo,go.CommandHandler),Oo.prototype.canAlignSelection=function(){var t=this.diagram;return null!==t&&!t.isReadOnly&&!t.isModelReadOnly&&!(t.selection.count<2)},Oo.prototype.alignLeft=function(){var t=this.diagram;t.startTransaction("aligning left");var e=1/0;t.selection.each((function(t){t instanceof go.Link||(e=Math.min(t.position.x,e))})),t.selection.each((function(t){t instanceof go.Link||t.move(new go.Point(e,t.position.y))})),t.commitTransaction("aligning left")},Oo.prototype.alignRight=function(){var t=this.diagram;t.startTransaction("aligning right");var e=-1/0;t.selection.each((function(t){if(!(t instanceof go.Link)){var n=t.actualBounds.x+t.actualBounds.width;e=Math.max(n,e)}})),t.selection.each((function(t){t instanceof go.Link||t.move(new go.Point(e-t.actualBounds.width,t.position.y))})),t.commitTransaction("aligning right")},Oo.prototype.alignTop=function(){var t=this.diagram;t.startTransaction("alignTop");var e=1/0;t.selection.each((function(t){t instanceof go.Link||(e=Math.min(t.position.y,e))})),t.selection.each((function(t){t instanceof go.Link||t.move(new go.Point(t.position.x,e))})),t.commitTransaction("alignTop")},Oo.prototype.alignBottom=function(){var t=this.diagram;t.startTransaction("aligning bottom");var e=-1/0;t.selection.each((function(t){if(!(t instanceof go.Link)){var n=t.actualBounds.y+t.actualBounds.height;e=Math.max(n,e)}})),t.selection.each((function(t){t instanceof go.Link||t.move(new go.Point(t.actualBounds.x,e-t.actualBounds.height))})),t.commitTransaction("aligning bottom")},Oo.prototype.alignCenterX=function(){var t=this.diagram,e=t.selection.first();if(e){t.startTransaction("aligning Center X");var n=e.actualBounds.x+e.actualBounds.width/2;t.selection.each((function(t){t instanceof go.Link||t.move(new go.Point(n-t.actualBounds.width/2,t.actualBounds.y))})),t.commitTransaction("aligning Center X")}},Oo.prototype.alignCenterY=function(){var t=this.diagram,e=t.selection.first();if(e){t.startTransaction("aligning Center Y");var n=e.actualBounds.y+e.actualBounds.height/2;t.selection.each((function(t){t instanceof go.Link||t.move(new go.Point(t.actualBounds.x,n-t.actualBounds.height/2))})),t.commitTransaction("aligning Center Y")}},Oo.prototype.alignColumn=function(t){var e=this.diagram;e.startTransaction("align Column"),void 0===t&&(t=0),t=parseFloat(t);var n=new Array;e.selection.each((function(t){t instanceof go.Link||n.push(t)}));for(var i=0;i<n.length-1;i++){var r=n[i],o=r.actualBounds.y+r.actualBounds.height+t;n[i+1].move(new go.Point(r.actualBounds.x,o))}e.commitTransaction("align Column")},Oo.prototype.alignRow=function(t){void 0===t&&(t=0),t=parseFloat(t);var e=this.diagram;e.startTransaction("align Row");var n=new Array;e.selection.each((function(t){t instanceof go.Link||n.push(t)}));for(var i=0;i<n.length-1;i++){var r=n[i],o=r.actualBounds.x+r.actualBounds.width+t;n[i+1].move(new go.Point(o,r.actualBounds.y))}e.commitTransaction("align Row")},Oo.prototype.canRotate=function(t){var e=this.diagram;return null!==e&&!e.isReadOnly&&!e.isModelReadOnly&&!(e.selection.count<1)},Oo.prototype.rotate=function(t){var e;void 0===t&&(t=90),(e=this.diagram).startTransaction("rotate "+t.toString()),(e=this.diagram).selection.each((function(e){e instanceof go.Link||e instanceof go.Group||(e.angle+=t)})),e.commitTransaction("rotate "+t.toString())},Oo.prototype.pullToFront=function(){var t=this.diagram;t.startTransaction("pullToFront");var e=new go.Map;t.selection.each((function(t){e.set(t.layer,0)})),e.iteratorKeys.each((function(t){var n=0;t.parts.each((function(t){if(!t.isSelected){var e=t.zOrder;isNaN(e)?t.zOrder=0:n=Math.max(n,e)}})),e.set(t,n)})),t.selection.each((function(t){Oo._assignZOrder(t,e.get(t.layer)+1)})),t.commitTransaction("pullToFront")},Oo.prototype.pushToBack=function(){var t=this.diagram;t.startTransaction("pushToBack");var e=new go.Map;t.selection.each((function(t){e.set(t.layer,0)})),e.iteratorKeys.each((function(t){var n=0;t.parts.each((function(t){if(!t.isSelected){var e=t.zOrder;isNaN(e)?t.zOrder=0:n=Math.min(n,e)}})),e.set(t,n)})),t.selection.each((function(t){Oo._assignZOrder(t,e.get(t.layer)-1-Oo._findGroupDepth(t))})),t.commitTransaction("pushToBack")},Oo._assignZOrder=function(t,e,n){void 0===n&&(n=t),t.layer===n.layer&&(t.zOrder=e),t instanceof go.Group&&t.memberParts.each((function(t){Oo._assignZOrder(t,e+1,n)}))},Oo._findGroupDepth=function(t){if(t instanceof go.Group){var e=0;return t.memberParts.each((function(t){e=Math.max(e,Oo._findGroupDepth(t))})),e+1}return 0},Oo.prototype.doKeyDown=function(){var t=this.diagram;if(null!==t){var e=t.lastInput;if("Up"===e.key||"Down"===e.key||"Left"===e.key||"Right"===e.key){var n=this.arrowKeyBehavior;if("none"===n)return;if("select"===n)return void this._arrowKeySelect();if("move"===n)return void this._arrowKeyMove();if("tree"===n)return void this._arrowKeyTree()}go.CommandHandler.prototype.doKeyDown.call(this)}},Oo.prototype._getAllParts=function(){var t=new Array;return this.diagram.nodes.each((function(e){t.push(e)})),this.diagram.parts.each((function(e){t.push(e)})),t},Oo.prototype._arrowKeyMove=function(){var t=this.diagram,e=t.lastInput,n=0,i=0;if(e.control||e.meta)n=1,i=1;else if(null!==t.grid){var r=t.grid.gridCellSize;i=r.width,n=r.height}t.startTransaction("arrowKeyMove"),t.selection.each((function(t){"Up"===e.key?t.move(new go.Point(t.actualBounds.x,t.actualBounds.y-n)):"Down"===e.key?t.move(new go.Point(t.actualBounds.x,t.actualBounds.y+n)):"Left"===e.key?t.move(new go.Point(t.actualBounds.x-i,t.actualBounds.y)):"Right"===e.key&&t.move(new go.Point(t.actualBounds.x+i,t.actualBounds.y))})),t.commitTransaction("arrowKeyMove")},Oo.prototype._arrowKeySelect=function(){var t=this.diagram,e=t.lastInput,n=null;"Up"===e.key?n=this._findNearestPartTowards(270):"Down"===e.key?n=this._findNearestPartTowards(90):"Left"===e.key?n=this._findNearestPartTowards(180):"Right"===e.key&&(n=this._findNearestPartTowards(0)),null!==n&&(e.shift?n.isSelected=!0:e.control||e.meta?n.isSelected=!n.isSelected:t.select(n))},Oo.prototype._findNearestPartTowards=function(t){var e=this.diagram.selection.first();if(null===e)return null;for(var n=e.actualBounds.center,i=this._getAllParts(),r=1/0,o=e,a=0;a<i.length;a++){var s=i[a];if(s!==e&&s.canSelect()){var l=s.actualBounds.center,u=n.directionPoint(l),c=this._angleCloseness(u,t);if(c<=45){var h=n.distanceSquaredPoint(l);(h*=1+Math.sin(c*Math.PI/180))<r&&(r=h,o=s)}}}return o},Oo.prototype._angleCloseness=function(t,e){return Math.min(Math.abs(e-t),Math.min(Math.abs(e+360-t),Math.abs(e-360-t)))},Oo.prototype._arrowKeyTree=function(){var t=this.diagram,e=t.selection.first();if(e instanceof go.Node){var n=t.lastInput;if("Right"===n.key)if(e.isTreeLeaf);else if(e.isTreeExpanded){null!==(r=this._sortTreeChildrenByY(e).first())&&t.select(r)}else t.commandHandler.canExpandTree(e)&&t.commandHandler.expandTree(e);else if("Left"===n.key){if(!e.isTreeLeaf&&e.isTreeExpanded)t.commandHandler.canCollapseTree(e)&&t.commandHandler.collapseTree(e);else null!==(o=e.findTreeParentNode())&&t.select(o)}else if("Up"===n.key){if(null!==(o=e.findTreeParentNode()))if((s=(a=this._sortTreeChildrenByY(o)).indexOf(e))>0){for(var i=a.elt(s-1);null!==i&&i.isTreeExpanded&&!i.isTreeLeaf;){i=this._sortTreeChildrenByY(i).last()}null!==i&&t.select(i)}else t.select(o)}else if("Down"===n.key){var r;if(e.isTreeExpanded&&!e.isTreeLeaf)null!==(r=this._sortTreeChildrenByY(e).first())&&t.select(r);else for(;null!==e;){var o,a,s;if(null===(o=e.findTreeParentNode()))break;if((s=(a=this._sortTreeChildrenByY(o)).indexOf(e))<a.length-1){t.select(a.elt(s+1));break}e=o}}var l=t.selection.first();null!==l&&t.scrollToRect(l.actualBounds)}},Oo.prototype._sortTreeChildrenByY=function(t){var e=(new go.List).addAll(t.findTreeChildrenNodes());return e.sort((function(t,e){var n=t.location,i=e.location;return n.y<i.y?-1:n.y>i.y?1:n.x<i.x?-1:n.x>i.x?1:0})),e},Oo.prototype.copyToClipboard=function(t){go.CommandHandler.prototype.copyToClipboard.call(this,t),this._lastPasteOffset.set(this.pasteOffset)},Oo.prototype.pasteFromClipboard=function(){var t=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(t,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),t},Object.defineProperty(Oo.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(t){if("move"!==t&&"select"!==t&&"scroll"!==t&&"tree"!==t&&"none"!==t)throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+t);this._arrowKeyBehavior=t}}),Object.defineProperty(Oo.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(t){if(!(t instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+t);this._pasteOffset.set(t)}});var Do=Oo,Ro=(n(77164),"myPaletteDiv___Xjz2I"),Fo="flowChartWrp____f45r",zo="maxH60___Pd4Re";var Go=function(t){var e=t.onCancel,n=t.callback,i=(0,h.useRef)(),o=(0,h.useRef)(),s=(0,h.useRef)(),u=(0,h.useRef)(!1),c=(0,h.useRef)(!1),d=(0,h.useState)(0),f=l()(d,2),p=f[0],g=f[1],m=function(){var t=a()(r()().mark((function t(){var e,o,a;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=i.current.makeImage(),t.next=3,(0,it.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:o.src,file_data:JSON.stringify({login:null===(e=(0,xt.eY)())||void 0===e?void 0:e.login,data:JSON.parse(i.current.model.toJson())})}});case 3:a=t.sent,n({src:a.url});case 5:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return(0,h.useEffect)((function(){return setTimeout((function(){!function(){var t=Bo.bx.make,e="#ff3333",n="#3358ff",r="#25ad23",a="#d533ff",l="#7d33ff",u="#ff6233",c="#ffffff",h="#000000",d="#fffcd5",f="#d5ebff",p="#f2dfe0",g="#a5d2fa",m="#cccccc",v="#b3e6b3",y="#fcbbbd";function w(e,n){var i=function(t,n){t.handled=!0,t.diagram.model.commit((function(i){var r=n.part.adornedPart,o=(new Bo.E9).setRectSpot(r.actualBounds,e);o.subtract(r.location),o.scale(2,2),o.x+=130*Math.sign(o.x),o.y+=130*Math.sign(o.y),o.add(r.location),o.snapToGridPoint(t.diagram.grid.gridOrigin,t.diagram.grid.gridCellSize);var a=i.copyNodeData(r.data);i.setGroupKeyForNodeData(a,i.getGroupKeyForNodeData(r.data)),i.addNodeData(a);var s={from:r.key,to:i.getKeyForNodeData(a)};i.addLinkData(s);var l=t.diagram.findNodeForData(a);l.location=o,t.diagram.select(l),setTimeout((function(){t.diagram.commandHandler.editTextBlock()}),20)}))};return t(Bo.bn,{figure:n,alignment:e,alignmentFocus:e.opposite(),width:e.equals(Bo.z6.Top)||e.equals(Bo.z6.Bottom)?25:18,height:e.equals(Bo.z6.Top)||e.equals(Bo.z6.Bottom)?18:25,fill:"orange",stroke:c,strokeWidth:4,mouseEnter:function(t,e){return e.fill="dodgerblue"},mouseLeave:function(t,e){return e.fill="orange"},isActionable:!0,click:i,contextClick:i})}function b(e){return t(Bo.bn,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:function(t,e){return e.fill="dodgerblue"},mouseLeave:function(t,e){return e.fill="orange"},click:function(t,e){t.diagram.commandHandler.showContextMenu(e.part.adornedPart)}},e||{})}function x(t,e){return function(n,i){n.handled=!0,n.diagram.model.commit((function(n){n.set(i.part.adornedPart.data,t,e)}))}}function S(e,n){return n||(n="color"),t(Bo.bn,{width:16,height:16,stroke:"lightgray",fill:e,margin:1,background:"transparent",mouseEnter:function(t,e){return e.stroke="dodgerblue"},mouseLeave:function(t,e){return e.stroke="lightgray"},click:x(n,e),contextClick:x(n,e)})}function P(){return[t("ContextMenuButton",t(Bo.s_,"Horizontal",S(c,"fill"),S(d,"fill"),S(f,"fill"),S(p,"fill"))),t("ContextMenuButton",t(Bo.s_,"Horizontal",S(m,"fill"),S(v,"fill"),S(g,"fill"),S(y,"fill")))]}function k(){return[t("ContextMenuButton",t(Bo.s_,"Horizontal",S(h),S(r),S(n),S(e))),t("ContextMenuButton",t(Bo.s_,"Horizontal",S(c),S(a),S(l),S(u)))]}function C(e,n){return n||(n="thickness"),t(Bo.bn,"LineH",{width:16,height:16,strokeWidth:e,margin:1,background:"transparent",mouseEnter:function(t,e){return e.background="dodgerblue"},mouseLeave:function(t,e){return e.background="transparent"},click:x(n,e),contextClick:x(n,e)})}function A(e,n){return n||(n="dash"),t(Bo.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:e,margin:1,background:"transparent",mouseEnter:function(t,e){return e.background="dodgerblue"},mouseLeave:function(t,e){return e.background="transparent"},click:x(n,e),contextClick:x(n,e)})}function M(){return[t("ContextMenuButton",t(Bo.s_,"Horizontal",C(1),C(2),C(3),C(4))),t("ContextMenuButton",t(Bo.s_,"Horizontal",A(null),A([2,4]),A([4,4])))]}function E(e,n){return n||(n="figure"),t(Bo.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:e,margin:1,background:"transparent",mouseEnter:function(t,e){return e.fill="dodgerblue"},mouseLeave:function(t,e){return e.fill="lightgray"},click:x(n,e),contextClick:x(n,e)})}function L(e){return t(Bo.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(e+4).toString()+" H3"})}function T(e){var n="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return 0===e?n="M0 0 M16 16 M0 8 L16 8":2===e&&(n="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),t(Bo.bn,{geometryString:n,margin:2,background:"transparent",mouseEnter:function(t,e){return e.background="dodgerblue"},mouseLeave:function(t,e){return e.background="transparent"},click:x("dir",e),contextClick:x("dir",e)})}function N(e){var n=function(t,n){t.handled=!0,t.diagram.model.commit((function(t){var i=n.part.adornedPart;t.set(i.data,e?"toSpot":"fromSpot",Bo.z6.stringify(Bo.z6.AllSides)),(e?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return t(Bo.bn,{width:12,height:12,fill:"transparent",mouseEnter:function(t,e){return e.background="dodgerblue"},mouseLeave:function(t,e){return e.background="transparent"},click:n,contextClick:n})}function j(e,n){var i=0,r=Bo.z6.RightSide;e.equals(Bo.z6.Top)?(i=270,r=Bo.z6.TopSide):e.equals(Bo.z6.Left)?(i=180,r=Bo.z6.LeftSide):e.equals(Bo.z6.Bottom)&&(i=90,r=Bo.z6.BottomSide),n||(i-=180);var o=function(t,e){t.handled=!0,t.diagram.model.commit((function(t){var i=e.part.adornedPart;t.set(i.data,n?"toSpot":"fromSpot",Bo.z6.stringify(r)),(n?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return t(Bo.bn,{alignment:e,alignmentFocus:e.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:i,background:"transparent",mouseEnter:function(t,e){return e.background="dodgerblue"},mouseLeave:function(t,e){return e.background="transparent"},click:o,contextClick:o})}i.current=new Bo.S0(o.current,{padding:20,grid:t(Bo.s_,"Grid",t(Bo.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),t(Bo.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:function(t){t.diagram.commandHandler.addTopLevelParts(t.diagram.selection,!0)||t.diagram.currentTool.doCancel()},commandHandler:t(Do),"clickCreatingTool.archetypeNodeData":{text:"未命名",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:function(t){var e=t.subject;e.location=e.location.copy().snapToGridPoint(t.diagram.grid.gridOrigin,t.diagram.grid.gridCellSize),setTimeout((function(){t.diagram.commandHandler.editTextBlock()}),20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:function(t){t.subject,setTimeout((function(){t.diagram.commandHandler.editTextBlock()}))},LinkRelinked:function(t){t.parameter.part.invalidateConnectedLinks();var e=t.subject;t.diagram.toolManager.linkingTool.isForwards?e.toNode.invalidateConnectedLinks():e.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),i.current.nodeTemplate=t(Bo.NB,"Auto",{locationSpot:Bo.z6.Center,locationObjectName:"SHAPE",desiredSize:new Bo.$u(120,60),minSize:new Bo.$u(40,40),resizable:!0,resizeCellSize:new Bo.$u(10,10),rotatable:!0},new Bo.KX("location","loc",Bo.E9.parse).makeTwoWay(Bo.E9.stringify),new Bo.KX("desiredSize","size",Bo.$u.parse).makeTwoWay(Bo.$u.stringify),t(Bo.bn,{name:"SHAPE",fill:c,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Bo.z6.AllSides,toSpot:Bo.z6.AllSides},new Bo.KX("figure"),new Bo.KX("fill"),new Bo.KX("stroke","borderColor"),new Bo.KX("strokeWidth","thickness"),new Bo.KX("strokeDashArray","dash")),t(Bo.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),t(Bo.al,{margin:1,textAlign:"center",overflow:Bo.al.OverflowEllipsis,editable:!0},new Bo.KX("text").makeTwoWay(),new Bo.KX("stroke","color"))),i.current.nodeTemplate.toolTip=t("ToolTip",t(Bo.s_,"Vertical",{maxSize:new Bo.$u(200,NaN)},t(Bo.al,{font:"bold 10pt sans-serif",textAlign:"center"},new Bo.KX("text")),t(Bo.al,{font:"10pt sans-serif",textAlign:"center"},new Bo.KX("text","details")))),i.current.nodeTemplate.selectionAdornmentTemplate=t(Bo.uz,"Spot",t(Bo.Vm,{padding:10}),w(Bo.z6.Top,"TriangleUp"),w(Bo.z6.Left,"TriangleLeft"),w(Bo.z6.Right,"TriangleRight"),w(Bo.z6.Bottom,"TriangleDown"),b({alignment:new Bo.z6(.75,0)})),i.current.nodeTemplate.contextMenu=t("ContextMenu",t("ContextMenuButton",t(Bo.s_,"Horizontal",E("Rectangle"),E("RoundedRectangle"),E("Ellipse"),E("Diamond"))),t("ContextMenuButton",t(Bo.s_,"Horizontal",E("Parallelogram2"),E("ManualOperation"),E("Procedure"),E("Cylinder1"))),t("ContextMenuButton",t(Bo.s_,"Horizontal",E("Terminator"),E("CreateRequest"),E("Document"),E("TriangleDown"))),P(),k(),M()),i.current.groupTemplate=t(Bo.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:Bo.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:function(t,e){e.addMembers(e.diagram.selection,!0)||e.diagram.currentTool.doCancel()},avoidable:!1},new Bo.KX("location","loc",Bo.E9.parse).makeTwoWay(Bo.E9.stringify),t(Bo.s_,"Auto",{name:"BODY"},t(Bo.bn,{parameter1:10,fill:c,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Bo.z6.AllSides,toSpot:Bo.z6.AllSides},new Bo.KX("fill"),new Bo.KX("stroke","color"),new Bo.KX("strokeWidth","thickness"),new Bo.KX("strokeDashArray","dash")),t(Bo.Vm,{background:"transparent",margin:20})),t(Bo.al,{alignment:Bo.z6.Top,alignmentFocus:Bo.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new Bo.KX("text"),new Bo.KX("stroke","color"))),i.current.groupTemplate.selectionAdornmentTemplate=t(Bo.uz,"Spot",t(Bo.s_,"Auto",t(Bo.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),t(Bo.Vm,{margin:1.5})),b({alignment:Bo.z6.TopRight,alignmentFocus:Bo.z6.BottomRight})),i.current.groupTemplate.contextMenu=t("ContextMenu",P(),k(),M()),i.current.linkTemplate=t(Bo.rU,{layerName:"Foreground",routing:Bo.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new Bo.KX("fromSpot","fromSpot",Bo.z6.parse),new Bo.KX("toSpot","toSpot",Bo.z6.parse),new Bo.KX("fromShortLength","dir",(function(t){return t>=1?10:0})),new Bo.KX("toShortLength","dir",(function(t){return t>=1?10:0})),new Bo.KX("points").makeTwoWay(),t(Bo.bn,{strokeWidth:2},new Bo.KX("stroke","color"),new Bo.KX("strokeWidth","thickness"),new Bo.KX("strokeDashArray","dash")),t(Bo.bn,{segmentIndex:0,segmentOffset:new Bo.E9(15,0),segmentOrientation:Bo.rU.OrientAlong,alignmentFocus:Bo.z6.Right,figure:"circle",width:10,strokeWidth:0},new Bo.KX("fill","color"),new Bo.KX("visible","dir",(function(t){return 1===t}))),t(Bo.bn,{segmentIndex:-1,segmentOffset:new Bo.E9(-10,6),segmentOrientation:Bo.rU.OrientPlus90,alignmentFocus:Bo.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Bo.KX("fill","color"),new Bo.KX("visible","dir",(function(t){return t>=1})),new Bo.KX("width","thickness",(function(t){return 7+3*t})),new Bo.KX("height","thickness",(function(t){return 7+3*t})),new Bo.KX("segmentOffset","thickness",(function(t){return new Bo.E9(-15,4+1.5*t)}))),t(Bo.bn,{segmentIndex:0,segmentOffset:new Bo.E9(15,-6),segmentOrientation:Bo.rU.OrientMinus90,alignmentFocus:Bo.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Bo.KX("fill","color"),new Bo.KX("visible","dir",(function(t){return 2===t})),new Bo.KX("width","thickness",(function(t){return 7+3*t})),new Bo.KX("height","thickness",(function(t){return 7+3*t})),new Bo.KX("segmentOffset","thickness",(function(t){return new Bo.E9(-15,4+1.5*t)}))),t(Bo.al,{alignmentFocus:new Bo.z6(0,1,-4,0),editable:!0},new Bo.KX("text").makeTwoWay(),new Bo.KX("stroke","color"))),i.current.linkTemplate.selectionAdornmentTemplate=t(Bo.uz,t(Bo.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:L(2)},new Bo.KX("pathPattern","thickness",L)),b({alignmentFocus:new Bo.z6(0,0,-6,-4)})),i.current.linkTemplate.contextMenu=t("ContextMenu",k(),M(),t("ContextMenuButton",t(Bo.s_,"Horizontal",T(0),T(1),T(2))),t("ContextMenuButton",t(Bo.s_,"Horizontal",t(Bo.s_,"Spot",N(!1),j(Bo.z6.Top,!1),j(Bo.z6.Left,!1),j(Bo.z6.Right,!1),j(Bo.z6.Bottom,!1)),t(Bo.s_,"Spot",{margin:new Bo.Zt(0,0,0,2)},N(!0),j(Bo.z6.Top,!0),j(Bo.z6.Left,!0),j(Bo.z6.Right,!0),j(Bo.z6.Bottom,!0)))));var I=new Bo.YI(s.current,{maxSelectionCount:1,linkTemplate:t(Bo.rU,{locationSpot:Bo.z6.Center,selectionAdornmentTemplate:t(Bo.uz,"Link",{locationSpot:Bo.z6.Center},t(Bo.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),t(Bo.bn,{toArrow:"Standard",stroke:null}))},{routing:Bo.rU.AvoidsNodes,curve:Bo.rU.JumpOver,corner:5,toShortLength:4},new Bo.KX("points"),t(Bo.bn,{isPanelMain:!0,strokeWidth:2}),t(Bo.bn,{toArrow:"Standard",stroke:null})),model:new Bo.FJ([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(Y()(Bo.bn.getFigureGenerators().toArray().map((function(t){return{text:"未命名",size:"100 100",figure:t.key,fill:"white",stroke:"#666",borderColor:"#000"}})))))});i.current.addDiagramListener("TextEdited",(function(t){var e,n=t.subject.part,r=null===(e=document.activeElement)||void 0===e?void 0:e.value;"string"==typeof r&&""===r.trim()&&i.current.model.commit((function(t){t.set(n.data,"text","未命名"),i.current.commandHandler.stopCommand()}),"increment")})),I.nodeTemplate=t(Bo.NB,"Auto",{locationSpot:Bo.z6.Center},new Bo.KX("location","location",Bo.E9.parse).makeTwoWay(Bo.E9.stringify),t(Bo.bn,"Circle",{fill:"white",stroke:"gray",strokeWidth:2,width:20,height:20,portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromLinkableSelfNode:!0,toLinkableSelfNode:!0},new Bo.KX("stroke").makeTwoWay(),new Bo.KX("fill").makeTwoWay(),new Bo.KX("figure")),t(Bo.al,{margin:new Bo.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new Bo.$u(16,16),maxSize:new Bo.$u(10,NaN),textAlign:"center",editable:!0},new Bo.KX("key").makeTwoWay())),setTimeout((function(){i.current.grid=t(Bo.s_,"Grid",t(Bo.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),t(Bo.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),i.current.grid.visible=!0,i.current.grid.gridCellStroke="darkgray",i.current.grid.gridCellStrokeWidth=1}),300),window.myDiagrams=i.current,i.current}()}),500),g(p+1),function(){i.current=null}}),[]),(0,at.jsx)("div",{ref:c,className:u.current?"".concat(zo," body-overflow-initial"):"body-overflow-initial",children:(0,at.jsx)(U.Z,{width:1200,icon:null,footer:null,closable:!0,visible:!!p,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:(0,at.jsxs)(Q.Z,{children:[(0,at.jsx)(J.Z,{flex:1,children:"插入流程图"}),(0,at.jsx)(J.Z,{onClick:function(){var t=i.current.selection.first();if(u.current=!u.current,document.activeElement&&t){var e,n=null===(e=document.activeElement)||void 0===e||null===(e=e.value)||void 0===e?void 0:e.trim();"string"==typeof n&&i.current.model.commit((function(e){e.set(t.data,"text",n||"未命名"),i.current.commandHandler.stopCommand()}),"increment")}g(p+1)},children:(0,at.jsx)("span",{className:"current c-blue mr30",style:{fontWeight:400},children:"展开/收起"})})]}),onCancel:e,children:(0,at.jsxs)("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Fo,children:[(0,at.jsxs)("div",{style:{display:"flex",height:"100%"},children:[(0,at.jsxs)("div",{style:{width:"300px",height:"100%"},children:[(0,at.jsx)("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"},children:"图形库"}),(0,at.jsx)("div",{style:{height:"calc(100% - 50px)"},className:Ro,ref:s})]}),(0,at.jsx)("div",{style:{flex:1,position:"relative"},children:(0,at.jsx)("div",{ref:o,style:{height:"80vh"}})})]}),(0,at.jsx)("div",{className:"tr",children:(0,at.jsx)(K.ZP,{size:"large",onClick:m,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},Uo=n(31060),Ho=ye.ZP.Group,_o={margin:"0 8px"},Zo=function(t){var e=t.callback,n=t.onCancel;return(0,at.jsxs)(X.Z,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:function(t){e(t)},children:[(0,at.jsxs)("div",{className:"flex-container",style:{alignItems:"baseline"},children:[(0,at.jsx)("span",{style:_o,children:"单元格数:"}),(0,at.jsx)("span",{style:_o,children:"行数"}),(0,at.jsx)(X.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,at.jsx)(Uo.Z,{})}),(0,at.jsx)("span",{style:_o,children:"列数"}),(0,at.jsx)(X.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,at.jsx)(Uo.Z,{})})]}),(0,at.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,at.jsx)("span",{style:_o,children:"对齐方式:"}),(0,at.jsx)(X.Z.Item,{name:"align",children:(0,at.jsxs)(Ho,{children:[(0,at.jsx)(ye.ZP,{value:"default",children:(0,at.jsx)("i",{className:"fa fa-align-justify"})}),(0,at.jsx)(ye.ZP,{value:"left",children:(0,at.jsx)("i",{className:"fa fa-align-left"})}),(0,at.jsx)(ye.ZP,{value:"center",children:(0,at.jsx)("i",{className:"fa fa-align-center"})}),(0,at.jsx)(ye.ZP,{value:"right",children:(0,at.jsx)("i",{className:"fa fa-align-right"})})]})})]}),(0,at.jsxs)("div",{className:"flex-container flex-end",children:[(0,at.jsx)(K.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,at.jsx)(K.ZP,{type:"ghost",onClick:n,children:"取消"})]})]})},Wo=n(58617),Vo=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Yo=h.forwardRef((function(t,e){var n,i=t.prefixCls,r=void 0===i?"rc-switch":i,o=t.className,a=t.checked,s=t.defaultChecked,l=t.disabled,u=t.loadingIcon,c=t.checkedChildren,d=t.unCheckedChildren,f=t.onClick,p=t.onChange,g=t.onKeyDown,m=(0,Dt.Z)(t,Vo),v=(0,Bt.Z)(!1,{value:a,defaultValue:s}),y=(0,jt.Z)(v,2),w=y[0],b=y[1];function x(t,e){var n=w;return l||(b(n=t),null==p||p(n,e)),n}var S=Lt()(r,o,(n={},(0,Ft.Z)(n,"".concat(r,"-checked"),w),(0,Ft.Z)(n,"".concat(r,"-disabled"),l),n));return h.createElement("button",(0,Tt.Z)({},m,{type:"button",role:"switch","aria-checked":w,disabled:l,className:S,ref:e,onKeyDown:function(t){t.which===Gt.Z.LEFT?x(!1,t):t.which===Gt.Z.RIGHT&&x(!0,t),null==g||g(t)},onClick:function(t){var e=x(!w,t);null==f||f(e,t)}}),u,h.createElement("span",{className:"".concat(r,"-inner")},h.createElement("span",{className:"".concat(r,"-inner-checked")},c),h.createElement("span",{className:"".concat(r,"-inner-unchecked")},d)))}));Yo.displayName="Switch";var Xo=Yo,qo=n(1684),Ko=n(60654);const Qo=t=>{const{componentCls:e,trackHeightSM:n,trackPadding:i,trackMinWidthSM:r,innerMinMarginSM:o,innerMaxMarginSM:a,handleSizeSM:s}=t,l=`${e}-inner`;return{[e]:{[`&${e}-small`]:{minWidth:r,height:n,lineHeight:`${n}px`,[`${e}-inner`]:{paddingInlineStart:a,paddingInlineEnd:o,[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${s+2*i}px - ${2*a}px)`,marginInlineEnd:`calc(100% - ${s+2*i}px + ${2*a}px)`},[`${l}-unchecked`]:{marginTop:-n,marginInlineStart:0,marginInlineEnd:0}},[`${e}-handle`]:{width:s,height:s},[`${e}-loading-icon`]:{top:(s-t.switchLoadingIconSize)/2,fontSize:t.switchLoadingIconSize},[`&${e}-checked`]:{[`${e}-inner`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${s+2*i}px + ${2*a}px)`,marginInlineEnd:`calc(-100% + ${s+2*i}px - ${2*a}px)`}},[`${e}-handle`]:{insetInlineStart:`calc(100% - ${s+i}px)`}},[`&:not(${e}-disabled):active`]:{[`&:not(${e}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:t.marginXXS/2,marginInlineEnd:-t.marginXXS/2}},[`&${e}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:-t.marginXXS/2,marginInlineEnd:t.marginXXS/2}}}}}}},Jo=t=>{const{componentCls:e,handleSize:n}=t;return{[e]:{[`${e}-loading-icon${t.iconCls}`]:{position:"relative",top:(n-t.fontSize)/2,color:t.switchLoadingIconColor,verticalAlign:"top"},[`&${e}-checked ${e}-loading-icon`]:{color:t.switchColor}}}},$o=t=>{const{componentCls:e,motion:n,trackPadding:i,handleBg:r,handleShadow:o,handleSize:a}=t,s=`${e}-handle`;return{[e]:{[s]:{position:"absolute",top:i,insetInlineStart:i,width:a,height:a,transition:`all ${t.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:a/2,boxShadow:o,transition:`all ${t.switchDuration} ease-in-out`,content:'""'}},[`&${e}-checked ${s}`]:{insetInlineStart:`calc(100% - ${a+i}px)`},[`&:not(${e}-disabled):active`]:n?{[`${s}::before`]:{insetInlineEnd:t.switchHandleActiveInset,insetInlineStart:0},[`&${e}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:t.switchHandleActiveInset}}:{}}}},ta=t=>{const{componentCls:e,trackHeight:n,trackPadding:i,innerMinMargin:r,innerMaxMargin:o,handleSize:a}=t,s=`${e}-inner`;return{[e]:{[s]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:o,paddingInlineEnd:r,transition:`padding-inline-start ${t.switchDuration} ease-in-out, padding-inline-end ${t.switchDuration} ease-in-out`,[`${s}-checked, ${s}-unchecked`]:{display:"block",color:t.colorTextLightSolid,fontSize:t.fontSizeSM,transition:`margin-inline-start ${t.switchDuration} ease-in-out, margin-inline-end ${t.switchDuration} ease-in-out`,pointerEvents:"none"},[`${s}-checked`]:{marginInlineStart:`calc(-100% + ${a+2*i}px - ${2*o}px)`,marginInlineEnd:`calc(100% - ${a+2*i}px + ${2*o}px)`},[`${s}-unchecked`]:{marginTop:-n,marginInlineStart:0,marginInlineEnd:0}},[`&${e}-checked ${s}`]:{paddingInlineStart:r,paddingInlineEnd:o,[`${s}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${s}-unchecked`]:{marginInlineStart:`calc(100% - ${a+2*i}px + ${2*o}px)`,marginInlineEnd:`calc(-100% + ${a+2*i}px - ${2*o}px)`}},[`&:not(${e}-disabled):active`]:{[`&:not(${e}-checked) ${s}`]:{[`${s}-unchecked`]:{marginInlineStart:2*i,marginInlineEnd:2*-i}},[`&${e}-checked ${s}`]:{[`${s}-checked`]:{marginInlineStart:2*-i,marginInlineEnd:2*i}}}}}},ea=t=>{const{componentCls:e,trackHeight:n,trackMinWidth:i}=t;return{[e]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,oe.Wf)(t)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:i,height:n,lineHeight:`${n}px`,verticalAlign:"middle",background:t.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${t.motionDurationMid}`,userSelect:"none",[`&:hover:not(${e}-disabled)`]:{background:t.colorTextTertiary}}),(0,oe.Qy)(t)),{[`&${e}-checked`]:{background:t.switchColor,[`&:hover:not(${e}-disabled)`]:{background:t.colorPrimaryHover}},[`&${e}-loading, &${e}-disabled`]:{cursor:"not-allowed",opacity:t.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${e}-rtl`]:{direction:"rtl"}})}};var na=(0,se.Z)("Switch",(t=>{const e=(0,le.TS)(t,{switchDuration:t.motionDurationMid,switchColor:t.colorPrimary,switchDisabledOpacity:t.opacityLoading,switchLoadingIconSize:.75*t.fontSizeIcon,switchLoadingIconColor:`rgba(0, 0, 0, ${t.opacityLoading})`,switchHandleActiveInset:"-30%"});return[ea(e),ta(e),$o(e),Jo(e),Qo(e)]}),(t=>{const{fontSize:e,lineHeight:n,controlHeight:i,colorWhite:r}=t,o=e*n,a=i/2,s=o-4,l=a-4;return{trackHeight:o,trackHeightSM:a,trackMinWidth:2*s+8,trackMinWidthSM:2*l+4,trackPadding:2,handleBg:r,handleSize:s,handleSizeSM:l,handleShadow:`0 2px 4px 0 ${new Ko.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:s/2,innerMaxMargin:s+2+4,innerMinMarginSM:l/2,innerMaxMarginSM:l+2+4}})),ia=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};const ra=h.forwardRef(((t,e)=>{const{prefixCls:n,size:i,disabled:r,loading:o,className:a,rootClassName:s,style:l}=t,u=ia(t,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:c,direction:d,switch:f}=h.useContext(ne.E_),p=h.useContext(qo.Z),g=(null!=r?r:p)||o,m=c("switch",n),v=h.createElement("div",{className:`${m}-handle`},o&&h.createElement(Wo.Z,{className:`${m}-loading-icon`})),[y,w]=na(m),b=(0,ie.Z)(i),x=Lt()(null==f?void 0:f.className,{[`${m}-small`]:"small"===b,[`${m}-loading`]:o,[`${m}-rtl`]:"rtl"===d},a,s,w),S=Object.assign(Object.assign({},null==f?void 0:f.style),l);return y(h.createElement(Se.Z,{component:"Switch"},h.createElement(Xo,Object.assign({},u,{prefixCls:m,className:x,style:S,disabled:g,ref:e,loadingIcon:v}))))}));ra.__ANT_SWITCH=!0;var oa=ra,aa=n(35702),sa=n.n(aa),la=(0,h.forwardRef)((function(t,e){var n=t.use3d,i=t.width,r=t.height,o=t.callback,a=(t.showSaveButton,(0,h.useRef)()),s=(0,h.useRef)(),u=(0,h.useState)(!1),c=l()(u,2),d=c[0],f=c[1],p=(0,h.useRef)({id:a,appName:"graphing",width:i||1e3,height:r||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,h.useEffect)((function(){s.current=new(sa())(p.current,!0),window.onload=function(){s.current.inject("applet_container")}}),[]);var g=function(){var t=window.ggbApplet.getPNGBase64(1,!0,72);return o&&o(t),t};return(0,h.useEffect)((function(){p.current.appName=d?"3D":"graphing",s.current.inject("applet_container")}),[d]),(0,h.useEffect)((function(){f(n)}),[n]),(0,h.useImperativeHandle)(e,(function(){return{getImgData:g}})),(0,at.jsxs)(at.Fragment,{children:[(0,at.jsx)("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:a}),(0,at.jsxs)(Q.Z,{align:"middle",children:[(0,at.jsx)(J.Z,{flex:1,children:(0,at.jsx)(oa,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:d,onChange:function(t){return f(t)}})}),(0,at.jsx)(J.Z,{children:(0,at.jsx)(K.ZP,{size:"large",onClick:g,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),ua=la,ca=n(34685),ha="link",da="upload-image",fa="add-flowchart",pa="draw-image",ga="code-block",ma="add-table",va="------------",ya={default:va,left:":".concat(va),center:":".concat(va,":"),right:"".concat(va,":")};var wa="@▁▁@",ba=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function xa(t){return/^\d+$/.test(t)?"".concat(t,"px"):t}var Sa,Pa=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",ka=po()(po()({},Pa+"-B","bold"),Pa+"-I","italic"),Ca=po()(po()(po()(po()(po()(po()(po()(po()({},ha,"添加链接"),ga,"添加代码块"),da,"添加图片"),pa,"添加画图"),fa,"插入流程图"),ma,"添加表格"),"maths-latex","数学图像"),"inline-latex","LATEX公式"),Aa=function(t){var e=t.defaultValue,n=void 0===e?"":e,i=t.onChange,r=t.width,o=void 0===r?"100%":r,a=t.height,s=void 0===a?400:a,u=t.miniToolbar,c=void 0!==u&&u,d=t.isFocus,f=void 0!==d&&d,p=t.watch,g=t.insertTemp,m=t.mode,v=void 0===m?"markdown":m,y=t.id,w=void 0===y?"markdown-editor-id":y,b=t.showResizeBar,x=void 0!==b&&b,S=t.noStorage,P=void 0!==S&&S,k=t.showNullButton,C=void 0!==k&&k,A=t.showNullProgramButton,M=void 0!==A&&A,E=t.hidetoolBar,L=void 0!==E&&E,T=t.fullScreen,N=void 0!==T&&T,j=t.onBlur,I=t.onCMBeforeChange,B=t.onFullScreen,O=t.className,D=void 0===O?"":O,R=t.disablePaste,F=void 0!==R&&R,z=t.disabled,G=void 0!==z&&z,_=t.disabledFill,Z=void 0!==_&&_,W=t.placeholder,V=void 0===W?"":W,Y=t.values,X=void 0===Y?"":Y,q=t.extraUse,K=(0,h.useState)(null),Q=l()(K,2),J=Q[0],$=Q[1],tt=(0,h.useState)(n),et=l()(tt,2),nt=et[0],it=et[1],rt=(0,h.useState)(p),ot=l()(rt,2),st=ot[0],lt=ot[1],ut=(0,h.useState)(N),ct=l()(ut,2),ht=ct[0],dt=ct[1],ft=(0,h.useState)(""),pt=l()(ft,2),gt=pt[0],mt=pt[1],vt=(0,h.useState)(0),yt=l()(vt,2),wt=yt[0],bt=yt[1],xt=(0,h.useState)(s),St=l()(xt,2),Pt=St[0],kt=St[1],Ct=(0,h.useState)(!1),Mt=l()(Ct,2),Et=(Mt[0],Mt[1]),Lt=(0,h.useState)(0),Tt=l()(Lt,2),Nt=Tt[0],jt=Tt[1],It=(0,h.useState)(0),Bt=l()(It,2),Ot=Bt[0],Dt=Bt[1],Rt=(0,h.useRef)(),Ft=(0,h.useRef)(),zt=(0,h.useRef)(),Gt=(0,h.useRef)();(0,h.useEffect)((function(){var t=window.scrollY||window.pageYOffset;it(X),null==J||J.setValue(X),window.scrollTo(0,t)}),[X]),(0,h.useEffect)((function(){null==B||B(ht)}),[ht]),(0,h.useEffect)((function(){if(Rt.current){var t=function(t,n){if(!F){var i=n.clipboardData;if(i){var r=i.types.toString(),o=i.items;if("Files"===r||i.types.indexOf("Files")>-1){if(n.preventDefault(),"stex"==v)return;try{var a,s=o[1];"file"===(null===(a=o[0])||void 0===a?void 0:a.kind)&&(s=o[0]);var l=s.getAsFile(),u=l.name.split(".").pop();(0,jo.I)(l,(function(t){var n,i,r;t.id?(null==l||null===(n=l.type)||void 0===n?void 0:n.indexOf("image"))>-1?e.replaceSelection('<img width="100%" src="/api/attachments/'.concat(t.id,"?type=").concat(t.content_type,')" alt="','" />')):(null==l||null===(i=l.type)||void 0===i?void 0:i.indexOf("video"))>-1?e.replaceSelection('<video width="100%" controls src="/api/attachments/'.concat(t.id,'"></video>')):(null==l||null===(r=l.type)||void 0===r?void 0:r.indexOf("pdf"))>-1?e.replaceSelection('<a href="/api/attachments/'.concat(t.id,"?type=").concat(l.type,'&disposition=inline" target="_blank">').concat(l.name,"</a>")):ba.includes(u)?e.replaceSelection('<a href="/api/attachments/'.concat(t.id,'?type=office&disposition=inline" target="_blank">').concat(l.name,"</a>")):e.replaceSelection("[".concat(l.name,"](/api/attachments/").concat(t.id,"?type=").concat(t.content_type,")")):401===(null==t?void 0:t.status)&&(document.location.href="/user/login")}))}catch(n){H.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}n.preventDefault()},e=vo().fromTextArea(Rt.current,{mode:v,lineNumbers:!c,lineWrapping:!0,value:n,autoCloseTags:!0,autoCloseBrackets:!0});return e.on("keyup",(function(t,n){8===n.keyCode&&(""==t.getValue()?e.setOption("placeholder",V):e.setOption("placeholder",null))})),e.on("keydown",(function(t,e){if(8===e.keyCode){var n=function(t,e){var n=t.getDoc(),i=n.getCursor(),r=n.getLine(i.line),o=r.charAt(i.ch-1),a=r.lastIndexOf("@▁@",i.ch),s=r.lastIndexOf("@▁▁@",i.ch),l=a>s?a:s,u=a>s?3:4;if(-1===wa.indexOf(o))return null;if(console.log("change1:",e,t,r,i,l,a,s,o),l>=0&&i.ch-l<5){var c=l+u;return n.replaceRange("",{line:i.line,ch:l},{line:i.line,ch:c}),{line:i.line,ch:c}}return null}(t);n&&e.preventDefault()}})),f&&e.focus(),e.on("paste",t),G&&e.on("beforeChange",(function(t,e){"paste"!==e.origin&&"+input"!==e.origin||e.cancel()})),$(e),function(){e.off("paste",t)}}}),[]);var Ut,Ht,_t,Zt=(0,h.useCallback)((function(){Ft.current}),[Pt,Ft,ht]);(0,h.useEffect)((function(){if(J){var t=function(){var t=new yo.Z((function(t){var e,n=At()(t);try{for(n.s();!(e=n.n()).done;){var i=e.value;(i.target.offsetHeight>0||i.target.offsetWidth>0)&&(Zt(),J.setSize("100%","100%"),J.refresh())}}catch(t){n.e(t)}finally{n.f()}}));return t.observe(Rt.current.parentElement),t}();return function(){var e,n;null!==(e=Rt.current)&&void 0!==e&&e.parentElement&&t.unobserve(null===(n=Rt.current)||void 0===n?void 0:n.parentElement)}}}),[J,Zt]),(0,h.useEffect)((function(){if(J){for(var t=[],e=function(){var e=l()(i[n],2),r=e[0],o=e[1],a=po()({},r,(function(){Wt(o)}));t.push(a),J.addKeyMap(a)},n=0,i=Object.entries(ka);n<i.length;n++)e();return function(){for(var e=0,n=t;e<n.length;e++){var i=n[e];J.removeKeyMap(i)}}}}),[J]),(0,h.useEffect)((function(){N!==ht&&dt(N)}),[N]),Ut=function(){if(!P&&wt>0){var t=(new Date).getTime(),e=window.sessionStorage.getItem(w);t>=wt+1e4&&(!e||e!==nt)&&(window.sessionStorage.setItem(w,nt),Et(!0))}},Ht=1e4,_t=(0,h.useRef)(),(0,h.useEffect)((function(){_t.current=Ut})),(0,h.useEffect)((function(){if(null!==Ht){var t=setInterval((function(){_t.current()}),Ht);return function(){return clearInterval(t)}}}),[Ht]),(0,h.useEffect)((function(){lt(p)}),[J,p]),(0,h.useEffect)((function(){J&&f&&J.focus()}),[J,f]),(0,h.useEffect)((function(){if(st&&J){var t=function(t){var e=t.target;if(Gt.current){var n=e.scrollTop/e.scrollHeight;Gt.current.scrollTop=Gt.current.scrollHeight*n}},e=J.getScrollerElement();return e.addEventListener("scroll",t),function(){e.removeEventListener("scroll",t)}}}),[J,st]),(0,h.useEffect)((function(){if(J&&I){var t=function(t,e){I(t,e)};return J.on("beforeChange",t),function(){J.off("beforeChange",t)}}}),[J,I]),(0,h.useEffect)((function(){if(J&&j){var t=function(){j(J.getValue())};return J.on("blur",t),function(){J.off("blur",t)}}}),[J,j]),(0,h.useEffect)((function(){if(J){var t=function(t,e){var n=t.getValue();it(n),bt((new Date).getTime()),t.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),i&&(M?i(n,Kt(n)):i(n))};return J.on("change",t),function(){J.off("change",t)}}}),[J,i]),(0,h.useEffect)((function(){if(J)if(null==n)J.setValue(""),it("");else{var t=window.scrollY||window.pageYOffset;n!==J.getValue()&&(J.setValue(n),it(n),J.setCursor(G?1:J.lineCount(),0),window.scrollTo(0,t))}}),[J,n]);var Wt=(0,h.useCallback)((function(t){var e=J.getCursor(),n=J.getSelection(),i=n.split("\n");switch(t){case"bold":return J.replaceSelection("**"+n+"**"),""===n&&J.setCursor(e.line,e.ch+2),J.focus();case"italic":return J.replaceSelection("*"+n+"*"),""===n&&J.setCursor(e.line,e.ch+1),J.focus();case"code":return J.replaceSelection("`"+n+"`"),""===n&&J.setCursor(e.line,e.ch+1),J.focus();case"inline-latex":return mt("inline-latex"),J.focus();case"latex":return J.replaceSelection("```latex\n"+n+"\n```"),J.setCursor(e.line+1,n.length+1),J.focus();case"line-break":return J.replaceSelection("<br/>\n"),J.focus();case"list-ul":return""===n?J.replaceSelection("- "+n):J.replaceSelection(i.map((function(t){return""===t?"":"- ".concat(t)})).join("\n")),J.focus();case"list-ol":return""===n?J.replaceSelection("1. "+n):J.replaceSelection(i.map((function(t,e){return""===t?"":"".concat(e+1,". ").concat(t)})).join("\n")),J.focus();case"add-null-ch":return""===n&&J.setCursor(e.line,e.ch),J.replaceSelection("▁"),J.focus();case"add-signal":return""===n&&J.setCursor(e.line,e.ch),J.replaceSelection("@▁@"),J.focus();case"add-multiple":return""===n&&J.setCursor(e.line,e.ch),J.replaceSelection(wa),J.focus();case"inster-template-1":return""===n&&J.setCursor(e.line,e.ch),J.replaceSelection("\n**模板标题**\n模板正文内容可输入文本内容和粘贴图片等操作"),J.focus();case"eraser":return J.setValue(""),J.focus();case"trigger-watch":return lt(!st),J.focus();case"trigger-full-screen":return dt(!ht),J.focus();case ha:return void mt(ha);case ga:return void mt(ga);case da:return void mt(da);case pa:return void mt(pa);case"maths-latex":return void mt("maths-latex");case fa:return void mt(fa);case ma:return void mt(ma);default:throw new Error}}),[J,st,ht]),Vt=(0,h.useCallback)((function(t,e){var n,i,r,o,a;switch(mt(""),gt){case ha:var s=t.title,l=t.link;return J.replaceSelection("[".concat(s,"](").concat(l,")")),J.focus();case ga:var u=t.language,c=t.content;return J.replaceSelection(["```"+u,c,"```"].join("\n")),J.focus();case"maths-latex":for(var h=atob(t),d=new Uint8Array(h.length),f=0;f<h.length;f++)d[f]=h.charCodeAt(f);var p=new Blob([d],{type:"image/png"});(0,jo.I)(p,(function(t){t.id?J.replaceSelection("![,](/api/attachments/".concat(t.id,"?type=").concat(t.content_type,")")):401===(null==t?void 0:t.status)&&(document.location.href="/user/login")}));break;case"inline-latex":J.replaceSelection("`$$"+t+"$$`");break;case da:case pa:case"add-flowchart":var g=t.src,m=t.alt,v=e,y=null==v||null===(n=v.name)||void 0===n||null===(n=n.split("."))||void 0===n||null===(i=n.pop)||void 0===i?void 0:i.call(n);return(null==v||null===(r=v.type)||void 0===r?void 0:r.indexOf("image"))>-1||null==v||!v.type?null!=v&&v.align||null!=v&&v.width?J.replaceSelection('<p style="text-align:'.concat(v.align||"initial",'"><img width="').concat(v.width?v.width+"%":"initial",'" src="').concat(g,'" alt="').concat(m||"",'" /></p>')):J.replaceSelection('<img width="100%" src="'.concat(g,'" alt="').concat(m||"",'" />')):(null==v||null===(o=v.type)||void 0===o?void 0:o.indexOf("video"))>-1?J.replaceSelection('<video width="100%" controls src="'.concat(g,'"></video>')):(null==v||null===(a=v.type)||void 0===a?void 0:a.indexOf("pdf"))>-1?J.replaceSelection('<a href="'.concat(g,"?type=").concat(v.type,'&disposition=inline" target="_blank">').concat(v.name,"</a>")):ba.includes(y)?J.replaceSelection('<a href="'.concat(g,'?type=office&disposition=inline" target="_blank">').concat(v.name,"</a>")):J.replaceSelection("[".concat(v.name,"](").concat(g,")")),J.focus();case ma:for(var w=t.row,b=t.col,x=t.align,S="\n",P=0;P<w;P++){for(var k=[],C=[],A=0;A<b;A++)1===P&&C.push(ya[x]),k.push(" ");1===P&&(S+="| ".concat(C.join(" | ")," |\n")),S+="| ".concat(k.join(1===b?"":" | ")," |\n")}return J.replaceSelection(S+"\n"),J.focus();default:throw new Error}}),[J,gt]),Yt=(0,h.useMemo)((function(){switch(gt){case ha:return(0,at.jsx)(Ao,{callback:Vt,onCancel:Xt});case ga:return(0,at.jsx)(To,{callback:Vt,onCancel:Xt});case da:return(0,at.jsx)(jo.Z,{callback:Vt,onCancel:Xt});case fa:return(0,at.jsx)(Go,{callback:Vt,onCancel:Xt});case ma:return(0,at.jsx)(Zo,{callback:Vt,onCancel:Xt});case"maths-latex":return(0,at.jsx)(ua,{showSaveButton:!0,callback:Vt});case"inline-latex":return(0,at.jsx)(ca.Z,{showSaveButton:!0,callback:Vt});default:return null}}),[gt]);function Xt(){mt("")}(0,h.useEffect)((function(){if(zt.current){var t=function(t){r=!0,o=t.pageY},e=function(){r=!1},n=function(t){if(r){var e=t.pageY-o;e<0&&(e=0),e>300&&(e=300),kt(s+e+"px")}},i=zt.current,r=!1,o=0;return i.addEventListener("mousedown",t),document.addEventListener("mousemove",n),document.addEventListener("mouseup",e),function(){i.removeEventListener("mousedown",t),document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",e)}}}),[J,zt]),(0,h.useEffect)((function(){kt(s)}),[s]);var qt={width:xa(o),height:xa(Pt)},Kt=((0,h.useMemo)((function(){if(wt){var t=new Date(wt),e=t.getHours(),n=t.getMinutes(),i=t.getSeconds();return n=n<10?"0"+n:n,i=i<10?"0"+i:i,"".concat(e=e<10?"0"+e:e,":").concat(n,":").concat(i)}return 0}),[wt]),function(t){var e=[];if(M){t=t.replace(/(@▁▁@|@▁@)/g,(function(t,n,i){e.push({multiLine:!("@▁@"===t)})}))}return e});(0,h.useEffect)((function(){Ca[gt]&&gt!==pa&&gt!==fa&&setTimeout((function(){var t=document.getElementsByClassName("markdown-popup-form")[0],e=window.innerWidth/2-t.offsetWidth/2,n=window.innerHeight/2-t.offsetHeight/2;jt(e),Dt(n)}),0)}),[gt]);var Qt=function(t,e,n,i){var r=document.body.clientHeight,o=document.body.clientWidth;return!(t<20&&n>t||t>o-20&&n<t||e<20&&i>e||e>r-20&&i<e)||(document.body.onmousemove=null,document.body.onmouseup=null,!1)};return(0,at.jsxs)(h.Fragment,{children:[(0,at.jsx)("div",{className:"markdown-editor-wrapper",ref:Ft,children:(0,at.jsxs)("div",{className:"markdown-editor-container ".concat(D," ").concat(st?"on-preview":""," ").concat(c?"mini":""," ").concat(ht?"full-screen":""),style:qt,children:[(0,at.jsx)(So,{insertTemp:g,watch:st,fullScreen:ht,showNullButton:C,showNullProgramButton:M,onActionCallback:Wt,hidetoolBar:L,extraUse:q}),(0,at.jsxs)("div",{className:"markdown-editor-body",children:[(0,at.jsx)("div",{className:"codemirror-container",children:(0,at.jsx)("textarea",{ref:Rt,placeholder:V})}),st?(0,at.jsxs)("div",{ref:Gt,className:"preview-container",children:["stex"===v&&(0,at.jsx)(wo,{value:nt}),"stex"!==v&&(0,at.jsx)(rn.Z,{disabledFill:Z,showProgramFill:M,value:nt})]}):null]})]})}),x?(0,at.jsx)("a",{ref:zt,className:"editor-resize"}):null,gt===pa&&(0,at.jsx)(Io,{callback:Vt,onCancel:Xt}),gt===fa&&(0,at.jsx)(Go,{callback:Vt,onCancel:Xt}),(0,at.jsx)(ko,{children:Ca[gt]&&gt!==pa&&gt!==fa?(0,at.jsx)(U.Z,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Nt,top:Ot},title:(0,at.jsx)("div",{style:{cursor:"move"},onMouseDown:function(t){t.preventDefault();var e=t.clientX-Nt,n=t.clientY-Ot;document.body.onmousemove=function(t){var i=t.clientX-e,r=t.clientY-n,o=document.getElementsByClassName("markdown-popup-form")[0],a=window.innerWidth-o.offsetWidth,s=window.innerHeight-o.offsetHeight;i=Math.max(0,Math.min(i,a)),r=Math.max(0,Math.min(r,s)),Qt(t.clientX,t.clientY,e,n)&&(jt(i),Dt(r))},document.body.onmouseup=function(){document.body.onmousemove=null}},children:Ca[gt]}),open:!0,onCancel:Xt,footer:null,destroyOnClose:!0,width:gt===fa?"1200px":null,height:gt===fa?"80vh":null,className:"markdown-popup-form",children:Yt}):null})]})},Ma=n(73140),Ea=n.p+"static/newqrcode.a8740efb.png",La=n(32637),Ta=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return!(!Na(t)||!ja(t,e,n,i,r))},Na=function(t){return!!(0,xt.bg)()||(t({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},ja=function(t){var e,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=(0,d.getDvaApp)()._store.getState(),a=o.user;return!(null===(e=a.userInfo)||void 0===e||!e.profile_completed)||(n?t({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:i,isCurrentPage:r}}):U.Z.confirm({title:"提示",width:530,centered:!0,content:"您需要去完善您的个人资料,才能使用此功能",okText:"立即完善",cancelText:"稍后完善",onOk:function(){(0,F.xg)("/account/profile/edit"),Ia()}}),!1)},Ia=function(){U.Z.success({title:"提示",width:430,closable:!0,centered:!0,content:"已完善个人资料?请刷新页面",okText:"立即刷新",icon:null,onOk:function(){location.reload()}})},Ba=function(t,e){return!!t||(U.Z.confirm({centered:!0,zIndex:1e4,width:530,title:"提示",content:(0,at.jsxs)("div",{children:[(0,at.jsx)("p",{children:e||"该实践资源需授权后才可使用。 您可以在QQ服务群向管理员申请获得继续操作的权限。"}),(0,at.jsxs)("div",{style:{marginLeft:"110px"},children:[(0,at.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAIAAAAP3aGbAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAABcRAAAXEQHKJvM/AAAouElEQVR42u3de5gU1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BQBkILAAgAwEFgCQkcewBioPvlsxAMK2u/gunHPB5OJWjJ+wbeSKs1u3YnHqRT5whAUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIMFutYefOnRUVFVa3ctWqVStXrjT4ZtsqK+RE5Ql7K1BpvAtHmdhWI8S2QhcWDWswG1gVFRVVVVVWtCxbOBy2ehMA4H44JQQAMhBYAEAGAgsAyEBgAQAZCCwAIMOSSShM3tFsaWkp+J1HZx+RN75O23pkRWEGk5wdEWJFN0023mTdEWfH9xjvZl5whAUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIsGRYg7NIP99vRd+tKDlg2zutYLxJzk7/Ydv+dOEcKwPBERYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgowiHNYzk4QJWPEzvwm7mZEVlBZP1Epwd65CTbSMYLBq5giMsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQIYlwxpaWlrMLG5yBgrbSvfbVnKASsED25j8iE2u0/jiJsc6uLBWhLPrZBYFVsHnvAEAYDglBABCEFgAQAYCCwDIQGABABlmL7qvWrUqHA5b3cotW7bYszsAwM24FXeIbUPl0XPbahsY76ZtU3W48+64ma0bZ9tnZFtdB9tKoQwEp4QAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjDyGNQAAOAtHWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjP8Prqme11Be/zoAAAAASUVORK5CYII=",width:200}),(0,at.jsxs)("div",{style:{marginLeft:"35px"},children:["群号:","714336072"]})]})]}),okText:"立即联系",cancelText:"取消",onOk:function(){(0,F.xg)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1)},Oa=n(26613),Da=n(93948),Ra={modal:"modal___EKlPQ",uploadWrap:"uploadWrap___YGxav",upload:"upload___ouqG9",uploadLink:"uploadLink___nuif6",fileProgress:"fileProgress___tf4qy",fileCancel:"fileCancel___Bh3Wh",videoName:"videoName___Ra0NM",contentItem:"contentItem___zMdIq","tagsList-content":"tagsList-content___sDVph"},Fa=n(93125),za=n.n(Fa),Ga="",Ua="";function Ha(t){!function(t){Sa=new(za().Vod)({timeout:6e4,partSize:1048576,parallel:5,retryCount:3,retryDuration:2,region:"ap-southeast-1",userId:0x6803cbd867207,enableUploadProgress:!1,addFileSuccess:function(e){console.log("addFileSuccess: "+e.file.name),t.addFileSuccess&&t.addFileSuccess(e),Sa.startUpload()},onUploadstarted:function(e){var n=e.file.name;if(e.videoId){var i="/api/users/".concat(Ga,"/video_auths.json");(0,it.ZP)(i,{method:"put",body:{video_id:e.videoId,title:n,file_name:n,virtual_classroom_id:Ua}}).then((function(n){if(-1!=n.status){var i=n.data,r=i.UploadAuth,o=i.UploadAddress;i.VideoId;Sa.setUploadAuthAndAddress(e,r,o)}else t.onUploadError&&t.onUploadError(e)})).catch((function(t){Sa.deleteFile(Sa._curIndex),Sa.nextUpload(),console.log(t)}))}else{var r="/api/users/".concat(Ga,"/video_auths.json"),o="";(0,it.ZP)(r,{method:"Post",body:{title:o+n,file_name:o+n,virtual_classroom_id:Ua}}).then((function(t){if(t){var n=t.data,i=n.UploadAuth,r=n.UploadAddress,o=n.VideoId;Sa.setUploadAuthAndAddress(e,i,r,o)}})).catch((function(t){Sa.deleteFile(Sa._curIndex),Sa.nextUpload(),console.log(t)})),console.log("文件开始上传...")}},onUploadSucceed:function(e){t.onUploadSucceed&&t.onUploadSucceed(e),console.log("文件上传成功!")},onUploadFailed:function(e,n,i){t.onUploadFailed&&t.onUploadFailed(e),console.log("文件上传失败!")},onUploadCanceled:function(t,e,n){console.log("文件上传已暂停!")},onUploadProgress:function(e,n,i){t.onUploadProgress&&t.onUploadProgress(e,n,i);Math.ceil(100*i);console.log("文件上传中...")},onUploadTokenExpired:function(t){console.log("文件上传超时!");var e="/api/users/".concat(Ga,"/video_auths.json");(0,it.ZP)(e,{method:"put",body:{video_id:t.videoId}}).then((function(t){var e=t.data.UploadAuth;Sa.resumeUploadWithAuth(e)})).catch((function(t){console.log(t)}))},onUploadEnd:function(e){t.onUploadEnd&&t.onUploadEnd(e),console.log("onUploadEnd: uploaded all the files")}}),t.gotUploader&&t.gotUploader(Sa)}(t)}var _a=n(70091),Za={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},Wa=n(7657),Va=function(t,e){return h.createElement(Wa.Z,(0,Tt.Z)({},t,{ref:e,icon:Za}))};var Ya=h.forwardRef(Va),Xa=n(19248),qa="img___BgL9D",Ka=function(t){var e=t.value,n=t.onChange,i=t.getFileProgress,r=(0,h.useState)(!1),o=l()(r,2),a=o[0],s=o[1],u=(0,at.jsx)(K.ZP,{loading:a,icon:(0,at.jsx)(Ya,{}),children:"选择上传文件"});return(0,at.jsx)(h.Fragment,{children:e?(0,at.jsxs)("div",{className:qa,children:[(0,at.jsx)("img",{src:fi.Z.API_SERVER+"/api/attachments/"+e,alt:"avatar",style:{width:288}}),(0,at.jsx)("div",{children:(0,at.jsx)(Xa.Z,{onClick:function(){return n("")},style:{fontSize:"16px",color:"red"}})})]}):(0,at.jsxs)("div",{children:[(0,at.jsx)(_a.Z,{withCredentials:!0,name:"file",showUploadList:!1,action:"".concat(fi.Z.API_SERVER,"/api/attachments.json"),onChange:function(t){if(i&&i(t),"uploading"!==t.file.status){if("done"===t.file.status){var e,r,o;if(s(!1),"done"===t.file.status&&-1===(null===(e=t.file)||void 0===e||null===(e=e.response)||void 0===e?void 0:e.status))return void H.ZP.error(null===(o=t.file)||void 0===o||null===(o=o.response)||void 0===o?void 0:o.message);n(null==t||null===(r=t.file)||void 0===r||null===(r=r.response)||void 0===r?void 0:r.id)}}else s(!0)},accept:"image/*",children:u}),(0,at.jsx)("div",{className:"mt20 c-light-black",children:"说明支持上传jpg/png等格式文件文件大小不能超过2M,建议使用288*158像素"}),(0,at.jsx)("div",{className:"c-light-black",children:"如不上传,默认使用系统图片。"})]})})},Qa=rt.Z.TextArea,Ja=function(t,e){var n,i=(e.payload||{}).uploadInfo,r=void 0===i?{}:i;switch(e.type){case"addVideo":return{videoList:[].concat(Y()(t.videoList),[{name:r.file.name,size:r.file.size,type:r.file.type,fileHash:r.fileHash,state:r.state,videoId:r.videoId,loaded:r.loaded||0,title:""}])};case"removeVideo":return{videoList:t.videoList.filter((function(t){return t.name!==e.payload.name}))};case"removeAll":default:return{videoList:[]};case"updateProgress":return{videoList:t.videoList.map((function(t){return t.name===e.payload.uploadInfo.file.name?G()(G()({},t),{loaded:e.payload.progressPercent,videoId:r.videoId,fileHash:r.fileHash}):t}))};case"updateTitle":return{videoList:null===(n=t.videoList)||void 0===n?void 0:n.map((function(t){return t.name===e.payload.item.name?G()(G()({},t),{title:e.payload.title}):t}))}}},$a=(0,d.connect)((function(t){var e=t.user,n=t.loading;return{user:e,globalSetting:t.globalSetting,loading:n}}))((function(t){var e,n=t.user,i=(t.globalSetting,t.loading,t.dispatch,t.visible),o=t.editData,s=t.onCancel,u=void 0===s?function(){}:s,c=t.onOk,f=void 0===c?function(){}:c,p=t.queryParams,g=void 0===p?{}:p,m=((0,d.useParams)(),X.Z.useForm()),v=l()(m,1)[0],y=(0,h.useReducer)(Ja,{videoList:[]}),w=l()(y,2),b=w[0],x=w[1],S=(0,h.useState)(!1),P=l()(S,2),k=(P[0],P[1]),C=(0,h.useRef)(),A=(0,h.useState)(),M=l()(A,2),E=M[0],L=M[1],T=(0,h.useState)(!1),N=l()(T,2),j=N[0],I=N[1],B=(0,h.useState)(!1),O=l()(B,2),D=O[0],R=O[1],F=(0,xt.Ny)()?3:1;(0,h.useEffect)((function(){var t,e,n;i&&o&&(I(o.is_link),L(o.link),!o.is_link&&x({type:"addVideo",payload:{uploadInfo:{file:{name:o.filename||""},videoId:o.video_id,loaded:100}}}),st((null==o||null===(t=o.tags)||void 0===t?void 0:t.map((function(t){return null==t?void 0:t.name})))||[]),v.setFieldsValue({name:o.name,description:o.description,attachment_id:null==o||null===(e=o.video)||void 0===e?void 0:e.attachment_id,allow_skip:null==o||null===(n=o.video_item)||void 0===n?void 0:n.allow_skip}))}),[o,i]);var z,_,Z,W,V,q,K,Q=function(){document.getElementById("fileUpload").value=""},J=function(t){var e,i,r,o,a='{"Vod":{}}';(k(!0),C.current)?C.current.addFile(t,null,null,null,a):(i=null===(e=n.userInfo)||void 0===e?void 0:e.login,o={create:!C,addFileSuccess:function(t){x({type:"addVideo",payload:{uploadInfo:t}})},onUploadProgress:function(t,e,n){var i=Math.ceil(100*n);x({type:"updateProgress",payload:{uploadInfo:t,progressPercent:i}}),Q()},onUploadFailed:function(t){H.ZP.info("视频云服务出现异常,请重新上传。")},onUploadEnd:function(t){k(!1)},onUploadSucceed:function(t){k(!1)},onUploadError:function(t){k(!1)},gotUploader:function(e){e.addFile(t,null,null,null,a),C.current=e}},i&&(Ga=i),(r="")&&(Ua=r),Ha(o))},tt=function(){var t=a()(r()().mark((function t(){var e,n,i,o;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,v.validateFields();case 2:if((j||null!==(e=b.videoList)&&void 0!==e&&e.length)&&(!j||E)){t.next=5;break}return H.ZP.info("请先上传视频或者添加外链"),t.abrupt("return");case 5:return R(!0),i=j?{link:E}:{video_id:null===(n=b.videoList)||void 0===n?void 0:n[0].videoId},t.next=9,f(G()(G()(G()({},i),g),{name:v.getFieldValue("name"),attachment_id:v.getFieldValue("attachment_id"),description:v.getFieldValue("description"),tags:v.getFieldValue("tag"),allow_skip:v.getFieldValue("allow_skip")}));case 9:o=t.sent,R(!1),o.id&&et();case 12:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),et=function(){v.resetFields(),x({type:"removeAll"}),L(null),st([]),I(null)},nt=(0,h.useState)([]),it=l()(nt,2),ot=it[0],st=it[1];return(0,at.jsx)(U.Z,{centered:!0,maskClosable:!1,destroyOnClose:!0,title:o?"编辑视频项目":"新建视频项目",width:740,className:Ra.modal,open:i,confirmLoading:D,onOk:tt,onCancel:function(){u(),et()},children:(0,at.jsxs)(X.Z,{form:v,children:[(0,at.jsx)("input",{type:"file",id:"fileUpload",style:{display:"none"},onChange:function(t){var e;I(!1);var n=t.target.files[0];if(n){var i=n.name.toLowerCase();return i&&-1==i.indexOf(".avi")&&-1==i.indexOf(".flv")&&-1==i.indexOf(".f4v")&&-1==i.indexOf(".m4v")&&-1==i.indexOf(".mov")&&-1==i.indexOf(".mp4")&&-1==i.indexOf(".rmvb")&&-1==i.indexOf(".swf")&&-1==i.indexOf(".webm")&&-1==i.indexOf(".wmv")?(H.ZP.info("不支持的视频格式"),void Q()):n.size>1024*F*1024*1024?(H.ZP.info("视频大小超过".concat(F,"G")),void Q()):null!==(e=b.videoList)&&void 0!==e&&e.find((function(t){return t.name===n.name}))?(H.ZP.info("你不能上传同一个视频文件名称,请重新选择。"),void Q()):void J(n)}Q()},accept:".mkv, .flv, .f4v, .rmvb, .swf, video/mp4,video/x-m4v,video/flv,video/f4v,video/rmvb,video/swf,video/*"}),(0,at.jsx)(X.Z.Item,{label:"项目名称",name:"name",rules:[{required:!0,message:"请输入项目名称"}],children:(0,at.jsx)(rt.Z,{maxLength:40,placeholder:"请输入不超过40字的项目名称"})}),(0,at.jsx)(X.Z.Item,{label:"项目内容",name:"content",className:Ra.contentItem,children:(0,at.jsxs)(at.Fragment,{children:[!j&&!(null===(z=b.videoList)||void 0===z||!z.length)&&(0,at.jsxs)("div",{className:Ra.fileProgress,children:[100==(null===(_=b.videoList)||void 0===_||null===(_=_[0])||void 0===_?void 0:_.loaded)?(0,at.jsx)("div",{className:"".concat(Ra.videoName," font14"),children:null===(Z=b.videoList)||void 0===Z||null===(Z=Z[0])||void 0===Z?void 0:Z.name}):(0,at.jsx)(Da.Z,{style:{width:"80%"},percent:null===(W=b.videoList)||void 0===W||null===(W=W[0])||void 0===W?void 0:W.loaded,status:100==(null===(V=b.videoList)||void 0===V||null===(V=V[0])||void 0===V?void 0:V.loaded)?"normal":"active"}),(0,at.jsx)("div",{className:Ra.fileCancel,onClick:function(){var t,e,n,i;return n=null===(t=b.videoList)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.name,i=100==(null===(e=b.videoList)||void 0===e||null===(e=e[0])||void 0===e?void 0:e.loaded),void U.Z.confirm({title:"提示",centered:!0,okText:"确定",cancelText:"取消",content:(0,at.jsxs)("div",{className:"tc",children:["您确认要",i?"删除":"取消上传","该视频吗?"]}),onOk:function(){Q(),x({type:"removeVideo",payload:{name:n}})}})},children:100===(null===(q=b.videoList)||void 0===q||null===(q=q[0])||void 0===q?void 0:q.loaded)?"删除":"取消上传"})]}),!(null!==(K=b.videoList)&&void 0!==K&&K.length)&&(0,at.jsxs)("div",{className:Ra.uploadWrap,children:[(0,at.jsxs)("label",{htmlFor:"fileUpload",className:Ra.upload,children:[(0,at.jsx)("i",{className:"iconfont icon-shangchuanshipin1 mr5"}),"上传视频"]}),(0,at.jsxs)("label",{className:"".concat(Ra.upload," ").concat(Ra.uploadLink),onClick:function(){return I(!0)},children:[(0,at.jsx)("i",{className:"iconfont icon-lianjie1 mr5"}),"添加外链"]})]}),j&&(0,at.jsx)(rt.Z,{className:"mt5",placeholder:"请输入视频链接",value:E,onChange:function(t){return L(t.target.value)}})]})}),(0,at.jsx)(X.Z.Item,{name:"attachment_id",label:"上传封面图:",children:(0,at.jsx)(Ka,{getFileProgress:function(t){"uploading"!==t.file.status?"done"===t.file.status&&R(!1):R(!0)}})}),(0,at.jsx)(X.Z.Item,{label:"项目简介",name:"description",className:"ml8",children:(0,at.jsx)(Qa,{rows:5,maxLength:800,placeholder:"请输入本视频简介最多不超过800字"})}),(0,at.jsx)(X.Z.Item,{label:"知识标签",name:"tag",className:"ml8",children:(0,at.jsx)(rt.Z,{onKeyUp:function(t){if("Enter"==t.key){var e=v.getFieldValue("tag");if(v.setFieldsValue({tag:""}),!e)return void H.ZP.info("标签不能为空");if(ot.filter((function(t){return t===e})).length>0)return void H.ZP.info("已有相同名称标签");ot.push(e),st(Y()(ot))}}})}),(0,at.jsx)(X.Z.Item,{label:"播放设置",name:"allow_skip",valuePropName:"checked",className:"ml8",initialValue:!0,children:(0,at.jsx)($.Z,{children:"允许快进播放"})}),(0,at.jsx)("div",{className:Ra["tagsList-content"],children:ot.map((function(t,e){return(0,at.jsx)(Oe,{closable:!0,onClose:function(e){!function(t,e){t.preventDefault(),st(Y()(ot.filter((function(t){return t!=e}))))}(e,t)},children:t},e+t)}))}),(0,at.jsxs)("div",{className:"c-grey-999",children:[(0,at.jsx)("div",{children:"注意:"}),(0,at.jsxs)("div",{children:["1、上传视频即表示您已同意",(0,at.jsx)(d.Link,{to:"/users/".concat(null===(e=n.userInfo)||void 0===e?void 0:e.login,"/videos/protocol"),target:"_blank",className:Ra.colorBlue,children:"上传内容协议"}),",不得上传未经他人授权的作品;"]}),(0,at.jsxs)("div",{children:["2、不支持断点续传文件大小请勿超过",F,"G"]}),(0,at.jsx)("div",{children:"3、支持文件格式avi、flv、f4v、m4v、mov、mp4、rmvb、swf、webm、wmv"}),(0,at.jsx)("div",{children:"4、如果视频来自于外部链接本网站不提供播放页面无法提供统计数据。"})]})]})})}));function ts(t){return es.apply(this,arguments)}function es(){return(es=a()(r()().mark((function t(e){var n;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,it.IV)("attachments/".concat(e,".json"));case 2:return n=t.sent,t.abrupt("return",0===n.status);case 4:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var ns="  ";function is(t){if(0==t)return"0 Byte";var e=parseInt(""+Math.floor(Math.log(t)/Math.log(1024)),10);return(t/Math.pow(1024,e)).toFixed(1)+" "+["Bytes","KB","MB","GB","TB"][e]}var rs={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},os=function(t,e){return h.createElement(Wa.Z,(0,Tt.Z)({},t,{ref:e,icon:rs}))};var as=h.forwardRef(os),ss=n(89392);Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var ls=_a.Z.Dragger;function us(t){var e=[];return t&&t.length>0&&(e=t.map((function(t){return{uid:t.id,id:t.id,name:t.title+ns+t.filesize,url:t.url,filesize:t.filesize,status:"done",response:{id:t.id}}}))),e}var cs=function(t){var e=t.value,n=t.onChange,i=t.action,o=t.data,s=t.className,u=t.maxSize,c=void 0===u?150:u,d=t.title,f=void 0===d?"上传附件":d,p=t.showRemoveModal,g=void 0!==p&&p,m=t.accept,v=void 0===m?"":m,y=t.additionalText,w=t.isDragger,b=t.number,x=void 0===b?1e3:b,S=t.aloneClear,P=void 0!==S&&S,k=t.realTimeRemove,C=void 0===k||k,A=t.uploadText,M=t.setFileProgress,E=t.showFileProgress,L=(0,h.useState)(!1),T=l()(L,2),N=T[0],j=T[1],I=(0,h.useState)(e||[]),B=l()(I,2),O=B[0],D=B[1],R=(0,h.useState)(1),F=l()(R,2),z=F[0],_=F[1];(0,h.useEffect)((function(){e&&(1===z&&D(Y()(e)),_(2),x===(null==e?void 0:e.length)&&j(!0))}),[e]);var Z=function(){setTimeout((function(){O.pop(),D(Y()(O))}),500)};E&&M(O.some((function(t){return"uploading"===t.status})));var W,V={multiple:!0,disabled:N,accept:v,withCredentials:!0,fileList:O,beforeUpload:function(t,e){var n=t.size/1024/1024;return O.concat(e).length>x?(O.pop(),D(Y()(O)),H.ZP.error("最多只能上传".concat(x,"个文件")),P?Promise.reject():(Z(),!1)):n<c||(H.ZP.error("该文件无法上传。超过文件大小限制(".concat(c,"MB).")),P?Promise.reject():(Z(),!1))},data:o,action:i||"".concat(fi.Z.API_SERVER,"/api/attachments.json"),onChange:function(t){var e,i;(O="removed"===t.file.status?t.fileList:(0,ss.uniqBy)([].concat(Y()(t.fileList),Y()(O)),"uid"),"done"!==t.file.status||-1!==(null===(e=t.file)||void 0===e||null===(e=e.response)||void 0===e?void 0:e.status))?(O.length>=x?j(!0):j(!1),D(Y()(O)),O=O.map((function(t){var e,n;null!=t&&null!==(e=t.response)&&void 0!==e&&e.id&&(t.url=null==t||null===(n=t.response)||void 0===n?void 0:n.url);return-1===t.name.indexOf(ns)&&(t.name="".concat(t.name).concat(ns).concat(is(t.size))),G()({},t)})),console.log("info:",t,O),n(O)):H.ZP.error(null===(i=t.file)||void 0===i||null===(i=i.response)||void 0===i?void 0:i.message)},onRemove:(W=a()(r()().mark((function t(e){var n;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(C){t.next=2;break}return t.abrupt("return",!0);case 2:if(n=function(){var t=a()(r()().mark((function t(){var n;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e.response?e.response.id:e.id)){t.next=8;break}return t.next=4,ts(e.response?e.response.id:e.uid);case 4:return n=t.sent,t.abrupt("return",Promise.resolve(n));case 8:return t.abrupt("return",!0);case 9:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),!g){t.next=7;break}return t.abrupt("return",new Promise((function(t,e){var i;U.Z.confirm({centered:!0,width:530,okText:"确定",cancelText:"取消",title:"提示",content:(0,at.jsx)("div",{className:"tc font16",children:"是否确认删除?"}),onOk:(i=a()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n();case 2:e.sent,H.ZP.success("删除成功"),t(!0);case 5:case"end":return e.stop()}}),e)}))),function(){return i.apply(this,arguments)}),onCancel:function(){return t(!1)}})})));case 7:return t.next=9,n();case 9:return t.abrupt("return",t.sent);case 10:case"end":return t.stop()}}),t)}))),function(t){return W.apply(this,arguments)})};return(0,at.jsxs)("div",{className:"multi-upload ".concat(s||""),children:[w&&(0,at.jsxs)(ls,G()(G()({},V),{},{children:[(0,at.jsx)("p",{className:"ant-upload-drag-icon",children:(0,at.jsx)(as,{})}),(0,at.jsxs)("p",{className:"ant-upload-text",children:["点击上传图标,选择要上传的文件或将文件拖拽到此",(0,at.jsx)("br",{}),"(单个文件最大限制为",c,"MB)"," "]}),y]})),!w&&(0,at.jsxs)(_a.Z,G()(G()({},V),{},{children:[(0,at.jsxs)(K.ZP,{disabled:N,className:"upload_button",children:[(0,at.jsx)("img",{className:"aBtn_img",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4="}),f]}),(0,at.jsx)("span",{onClick:function(t){t.preventDefault(),t.stopPropagation()},className:"upload_text",children:A||"(单个文件最大".concat(c,"MB)")})]}))]})},hs=n(177),ds={tree:"tree___u23Lf",learn:"learn___gQiNJ",name:"name___1D14q",sign:"sign___Ki_95",pdf_name:"pdf_name___T3MPw",name_style:"name_style___nfuvC",color333:"color333___P8iqP",DirectoryTree:"DirectoryTree___umMQK",EditDom:"EditDom___Be0Pl"},fs=n(84105),ps=n(91454),gs="text___FxbAX",ms="wrap___UlBQ1",vs="contact____pUDq",ys="img___BapAv",ws=function(t){var e=t.type,n=t.style,i=(0,at.jsxs)("div",{className:ms,onClick:function(t){t.preventDefault(),t.stopPropagation()},children:[(0,at.jsxs)("p",{children:["shixun"===e||"paths"===e?"当前实践项目是高消耗类型的实验。":"当前试卷包含高消耗类型的实验。",(0,at.jsx)("br",{}),"根据平台使用规则,需要授权才能使用。","paths"===e?"发送到课堂":"发布","使用之前,请先联系平台管理员获取授权码。"]}),(0,at.jsxs)("div",{className:vs,children:[(0,at.jsx)("div",{className:ys,children:(0,at.jsx)("img",{src:La,width:"124px",height:"124px"})}),(0,at.jsx)("div",{className:"tc font14 mt10",style:{color:"#777A93"},children:"扫一扫,获取授权码"})]})]});return(0,at.jsx)(ps.Z,{content:i,children:(0,at.jsx)("span",{className:gs,style:n,children:"高消耗"})})},bs="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAAIABJREFUeF7tfQd8VFX2//e+SSYJvadMCAEpARSUoqKiomlWxIJr7+23q4LKqquoi6JYcC27q2JX1LWAgoJkguAKKr0tEJAOKRB6TZly///zJpMpmfLem/fevJnM+Xz4hGTuPefcc+93bjvnXIYEaWIBvnVuOsy8O4AcCDwbHFngSIfAOgG8AzhrC/A+0oSzjWD8MMAOwMn3gWEPGCrhZOUAdqL+xDbWY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Sort","isPaths","dispatch","isShowSchedule","getData"],Ps=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};switch(null==t?void 0:t.item_type){case"Challenge":return(0,at.jsx)(tt.Z,{title:"实战形式:任务关卡",children:(0,at.jsx)("i",{className:"iconfont icon-renwuguanka1 font20",style:{color:"#39B97E"}})});case"VideoItem":return(0,at.jsx)(tt.Z,{title:"教学视频",children:(0,at.jsx)("i",{className:"iconfont icon-shipin2 c-purple-8C1 font20"})});case"StageCatalog":return(0,at.jsx)("i",{className:"iconfont icon-kongbai c-brilliant-blue font20"});case"SubjectHomework":if("group"===(null==t?void 0:t.homework_type))return(0,at.jsx)(tt.Z,{title:"作业形式:分组作业",children:(0,at.jsx)("i",{className:"iconfont icon-fenzuzuoye3 font20",style:{color:"#acc218"}})});if("normal"===(null==t?void 0:t.homework_type))return(0,at.jsx)(tt.Z,{title:"作业形式:图文作业",children:(0,at.jsx)("i",{className:"iconfont icon-tuwenzuoye font20",style:{color:"#1db37f"}})});break;case"ExaminationBank":return(0,at.jsx)(tt.Z,{title:"测验形式:在线考试",children:(0,at.jsx)("i",{className:"iconfont icon-zhangjieceshibeifen font20",style:{color:"#e9a318"}})});case"HomeworkCommon":if("hack"===(null==t?void 0:t.homework_type))return(0,at.jsx)(tt.Z,{title:"作业形式:编程作业",children:(0,at.jsx)("i",{className:"iconfont icon-bianchengzuoye1 font20",style:{color:"#E99237"}})});break;case"Shixun":return null!=t&&t.is_all_choice?(0,at.jsx)(tt.Z,{title:"实战形式:选择题",children:(0,at.jsx)("i",{className:"iconfont icon-xuanzeti4 c-lake-blue font20"})}):null!=t&&t.is_unity_3d?(null==t||null===(e=t.challenge_types)||void 0===e?void 0:e.length)<=1?(0,at.jsx)(tt.Z,{title:"实战形式:虚拟仿真",children:(0,at.jsx)("i",{className:"iconfont icon-xunifangzhenti1 font20",style:{color:"#A504D8"}})}):(0,at.jsx)(tt.Z,{title:"实战形式:选择题+虚拟仿真",children:(0,at.jsx)("i",{className:"iconfont icon-rongheti1 font20",style:{color:"#44B7D7"}})}):(null==t||null===(n=t.challenge_types)||void 0===n?void 0:n.length)>1?(0,at.jsx)(tt.Z,{title:"实战形式:选择题+编程开发",children:(0,at.jsx)("i",{className:"iconfont icon-rongheti1 font20",style:{color:"#44B7D7"}})}):null!=t&&t.is_jupyter_lab?(0,at.jsx)(tt.Z,{title:"实战类型JupyterLab",children:(0,at.jsx)("img",{width:20,src:bs})}):null!=t&&t.is_jupyter?(0,at.jsx)(tt.Z,{title:"实战类型Jupyter Notebook",children:(0,at.jsx)("img",{width:20,src:xs})}):(0,at.jsx)(tt.Z,{title:"实战形式:编程开发",children:(0,at.jsx)("i",{className:"iconfont icon-shixunti2 c-light-primary font20"})});var e,n;default:return(0,at.jsx)(tt.Z,{title:"教学课件",children:(0,at.jsx)("i",{className:"iconfont icon-kejian1 c-cyan-blue font20"})})}},ks=(0,d.connect)((function(t){var e=t.pathsDetail,n=t.loading,i=t.user;return{pathsDetail:e,globalSetting:t.globalSetting,user:i,loading:n.effects}}))((function(t){var e=t.pathsDetail,n=(t.globalSetting,t.user),i=(t.loading,t.updateSort),o=(t.isPaths,t.dispatch),s=t.isShowSchedule,u=t.getData,f=c()(t,Ss),p=e.keywords,g=e.visibleType,m=void 0===g?"All":g,v=(0,h.useState)([]),y=l()(v,2),w=y[0],b=y[1],x=(0,h.useState)([]),S=l()(x,2),P=S[0],k=(S[1],(0,h.useState)([])),C=l()(k,2),A=C[0],M=C[1],E=(0,h.useState)([]),L=l()(E,2),T=(L[0],L[1],(0,h.useState)([])),N=l()(T,2),j=(N[0],N[1],(0,d.useParams)()),I=(0,h.useState)([]),B=l()(I,2),O=B[0],D=B[1],R=(0,h.useState)({}),z=l()(R,2),W=z[0],V=z[1],X=(0,h.useState)(!1),q=l()(X,2),K=q[0],$=q[1],et=(0,h.useRef)(!1);(0,h.useEffect)((function(){if(f.data&&!(0,ss.isEqual)(f.data,O)){P=[];var t=JSON.parse(JSON.stringify(f.data));ut(t,0),D(Y()(t)),null!=f&&f.expandAll||"All"!=m?b(Y()(P)):b([])}}),[f.data,m,null==f?void 0:f.expandAll]),(0,h.useEffect)((function(){console.log(888)}),[]),(0,h.useEffect)((function(){var t,n,i,r;if(null!==(t=e.detail)&&void 0!==t&&t.has_start){var o,a=null===(o=e.detail)||void 0===o||null===(o=o.courses)||void 0===o?void 0:o.findIndex((function(t){var e;return 1===parseInt(null===(e=t.course_status)||void 0===e?void 0:e.status)}));i=a>-1?a:0}else{var s,l,u=null===(s=e.detail)||void 0===s||null===(s=s.courses)||void 0===s||null===(s=s.map((function(t){var e;return parseInt(null===(e=t.course_status)||void 0===e?void 0:e.status)})))||void 0===s?void 0:s.lastIndexOf(2);i=u>-1?u:0,i=(u=null===(l=e.detail)||void 0===l||null===(l=l.courses)||void 0===l?void 0:l.findIndex((function(t){var e;return 0===parseInt(null===(e=t.course_status)||void 0===e?void 0:e.status)})))>-1?u:i}null!==(n=e.detail)&&void 0!==n&&n.courses&&V((null===(r=e.detail)||void 0===r?void 0:r.courses[i])||{})}),[e.detail]);var nt=function(){var t=a()(r()().mark((function t(e,n){var i,o,a=arguments;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=a.length>2&&void 0!==a[2]?a[2]:{},!n){t.next=7;break}return t.next=4,(0,Z.BK)({id:e,challenge_id:null==i?void 0:i.challenge_id,subject_id:j.pathId});case 4:t.t0=t.sent,t.next=10;break;case 7:return t.next=9,(0,Z.Ir)({id:e,challenge_id:null==i?void 0:i.challenge_id,subject_id:j.pathId});case 9:t.t0=t.sent;case 10:if(!(null!=(o=t.t0)&&o.game_identifier||null!=o&&o.identifier)){t.next=14;break}return(0,F.xg)(n?"/tasks/".concat(null==o?void 0:o.identifier,"/jupyter"):"/tasks/".concat(o.game_identifier,"?subject_id=").concat(j.pathId||"")),t.abrupt("return");case 14:-3===(null==o?void 0:o.status)?(0,F.eF)():2===(null==o?void 0:o.status)?it(null==o?void 0:o.message):3===(null==o?void 0:o.status)&&rt(null==o?void 0:o.message);case 15:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),it=function t(e){var n,i;e=null!==(n=e)&&void 0!==n&&n.includes(".json")?e:"".concat(e,".json"),U.Z.confirm({centered:!0,title:"提示",okText:"确定",cancelText:"取消",content:(0,at.jsx)("div",{className:"tc font16",children:"实训已经更新了,正在为您重置!"}),onOk:(i=a()(r()().mark((function n(){var i,o;return r()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,Oa.L8)({url:e});case 2:if(i=n.sent){n.next=5;break}return n.abrupt("return");case 5:return H.ZP.success("重置成功,正在进入实践项目!"),n.next=8,(0,Z.Ir)({id:i.shixun_identifier});case 8:if(null==(o=n.sent)||!o.game_identifier){n.next=12;break}return(0,F.xg)("/tasks/".concat(o.game_identifier)),n.abrupt("return");case 12:2===(null==o?void 0:o.status)?t(null==o?void 0:o.message):3===(null==o?void 0:o.status)&&rt(null==o?void 0:o.message);case 13:case"end":return n.stop()}}),n)}))),function(){return i.apply(this,arguments)})})},rt=function(t){U.Z.confirm({centered:!0,title:"提示",okText:"确定",cancelText:"取消",content:(0,at.jsxs)("div",{className:"tc font16",children:["目前该实践项目尚在内测中,将于",t,"之后开放,谢谢!"]})})},ot=function(t){console.log("onDragEnter:",t)},st=function(){var t=a()(r()().mark((function t(e){var n,o,a,s,l,u,c,h,d,p,g,m,v,y;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(console.log("onDrop:",e),l=e.node.props.eventKey,u=e.dragNode.props.eventKey,c=e.node.props.pos.split("-"),h=e.dropPosition-Number(c[c.length-1]),!(c.length>3)||e.node.dragOverGapBottom||e.node.dragOverGapTop){t.next=7;break}return t.abrupt("return",!1);case 7:if(!(e.node.dragOver&&e.dragNodesKeys.length>1)){t.next=9;break}return t.abrupt("return",!1);case 9:if(!(c.length>2&&e.dragNodesKeys.length>1)){t.next=11;break}return t.abrupt("return",!1);case 11:if(!(d=["Attachment","Hack","Shixun","SubjectHomework","Videoltem"]).includes(null===(n=e.dragNode)||void 0===n?void 0:n.item_type)||"StageCatalog"==(null===(o=e.node)||void 0===o?void 0:o.item_type)||0!==h){t.next=14;break}return t.abrupt("return",!1);case 14:if("StageCatalog"!==(null===(a=e.dragNode)||void 0===a?void 0:a.item_type)||!d.includes(null===(s=e.node)||void 0===s?void 0:s.item_type)||0!==h){t.next=16;break}return t.abrupt("return",!1);case 16:return p=function t(e,n,i){for(var r=0;r<e.length;r++){if(e[r].key===n)return i(e[r],r,e);e[r].children&&t(e[r].children,n,i)}},g=Y()(O),p(g,u,(function(t,e,n){n.splice(e,1),m=t})),e.dropToGap?(e.node.props.children||[]).length>0&&e.node.props.expanded&&1===h?p(g,l,(function(t){t.children=t.children||[],t.children.unshift(m)})):(p(g,l,(function(t,e,n){v=n,y=e})),-1===h?v.splice(y,0,m):v.splice(y+1,0,m)):p(g,l,(function(t){t.children=t.children||[],t.children.unshift(m)})),t.next=22,i({stage_id:f.stage_id,list:g});case 22:ut(g,0,0,!0),console.log("data:",g),D(Y()(g)),b([].concat(Y()(w),[e.node.key]));case 26:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),ut=function t(e,n,i,r){n=n||0,e.map((function(e,o){try{var a;return e.key2=n+1+"-"+(o+1),e.key3=f.index+1+"-"+(o+1),e.title="",r||(e.key=n+1+"-"+(o+1)),e.index=n?i+"-"+(o+1):e.key3,null!==(a=e.children)&&void 0!==a&&a.length&&(P.push(e.key2),t(e.children,e.key2,e.index,r)),e}catch(t){}}))},ct=function(t){t=t||"";var e=new RegExp(p,"ig"),n=t.replace(e,'<span style="color:#3061D0">$&</span>');return p?(0,at.jsx)("span",{dangerouslySetInnerHTML:{__html:n}}):t},ht=function(t){"All"===m&&(w.includes(t)?b(w.filter((function(e){return e!=t}))):b(w.concat(t)))};console.log(w,O,et.current,"openkeys");var dt=function(){var t=a()(r()().mark((function t(e,n){return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(Ta(o,!0)){t.next=2;break}return t.abrupt("return");case 2:if(null==e||!e.need_authorize){t.next=5;break}return Ba(!1),t.abrupt("return");case 5:return t.next=7,nt(e.identifier,e.is_jupyter||e.is_jupyter_lab,e);case 7:n(),null!=W&&W.course_id&&(0,lt.JS)({id:null==W?void 0:W.course_id});case 9:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),ft=function(){var t=a()(r()().mark((function t(i){var a,s,l,c,h,d;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(Ta(o)){t.next=2;break}return t.abrupt("return");case 2:if(null!==(a=n.userInfo)&&void 0!==a&&a.admin||null!==(s=n.userInfo)&&void 0!==s&&s.business||i.can_view||"Attachment"===i.item_type){t.next=4;break}return t.abrupt("return",U.Z.info({centered:!0,width:400,okText:"知道啦",icon:null,content:(0,at.jsx)("div",{className:"tc font14",children:"当前视频为创建者所属单位内部教学资料,外单位用户无观看权限"})}));case 4:if(i.link&&(0,Ma.DH)({is_f:1,id:i.id,point:0,total:0}),h=null!=f&&f.course_id?"course_id=".concat(null==f?void 0:f.course_id):"subject_id=".concat(j.pathId||f.subject_id),".ZIP"!==(null==i||null===(l=i.name)||void 0===l?void 0:l.substr(null==i||null===(c=i.name)||void 0===c?void 0:c.lastIndexOf("."))).toUpperCase()){t.next=14;break}if(null!==(d=e.detail)&&void 0!==d&&d.allow_download){t.next=11;break}return H.ZP.info("教学课件不支持下载"),t.abrupt("return");case 11:(0,F.FH)(i.name,fi.Z.API_SERVER+i.url),t.next=15;break;case 14:(0,F.xg)(i.link||"/video/".concat(i.id,"?").concat(h));case 15:if("Attachment"!==i.item_type||2==i.complete_status){t.next=19;break}return t.next=18,(0,lt.rS)({attachment_id:i.id,status:2});case 18:t.sent;case 19:"Attachment"!==i.item_type&&"VideoItem"!==i.item_type||u({stage_id:f.stage_id});case 20:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),pt=(0,h.useRef)(!1),gt=(0,h.useMemo)((function(){return(0,at.jsx)(_.Z,{spinning:!1,children:(0,at.jsx)(hs.Z,{className:ds.tree,disabled:f.disabled,expandedKeys:Y()(w),draggable:!0,onDragEnter:ot,onDrop:st,onExpand:ht,blockNode:!0,titleRender:function(t){var e,i,l,u,c,h,d,p,g,v=t;null==t||null===(e=t.learning_status)||void 0===e||e[0];return(0,at.jsxs)(Q.Z,{align:"middle",className:"font14",onClick:function(){return ht(v.key)},style:{flexWrap:"nowrap",whiteSpace:"nowrap"},onMouseOver:function(){return v.key,void(K||$(!0))},children:[(0,at.jsx)(J.Z,{flex:"30px",style:{display:"flex",alignItems:"center"},children:Ps(t)}),(0,at.jsxs)(J.Z,{flex:"1",className:ds.color333,style:{display:"flex",alignItems:"center",width:300},children:[f.cust_seq&&(0,at.jsxs)("span",{className:"".concat(ds.color333," mr10"),children:[" ",t.index," "]}),"Attachment"!==t.item_type&&(0,at.jsx)("div",{className:ds.name_style,children:(0,at.jsx)(tt.Z,{placement:"topLeft",title:t.name,children:(h=t,d=!1,p=h.learning_status,g=h.name,"can"===(null==p?void 0:p[0])&&"try"===(null==p?void 0:p[1])?(0,at.jsxs)("div",{className:ds.learn,children:[(0,at.jsx)("span",{className:ds.name,children:d?g:ct(g)}),(0,at.jsx)("span",{className:ds.sign,children:"免费试学"})]}):d?g:ct(g))})}),"Attachment"===t.item_type&&(0,at.jsx)("a",{target:"_blank",className:ds.pdf_name,title:t.name,onClick:a()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Ta(o)){e.next=2;break}return e.abrupt("return");case 2:if(null==W||!W.course_id){e.next=6;break}return e.next=5,(0,lt.JS)({id:null==W?void 0:W.course_id});case 5:e.sent;case 6:e.t0=t.item_type,e.next="Attachment"===e.t0?9:"VideoItem"===e.t0?11:"ExaminationBank"===e.t0?13:"HomeworkCommon"===e.t0?15:"SubjectHomework"===e.t0?17:"Shixun"===e.t0?19:21;break;case 9:return ft(v),e.abrupt("break",21);case 11:case 13:case 15:return ft(t),e.abrupt("break",21);case 17:return("group"==t.homework_type||"normal"==t.homework_type)&&ft(t),e.abrupt("break",21);case 19:return dt(t),e.abrupt("break",21);case 21:case"end":return e.stop()}}),e)}))),children:t.name}),("Shixun"===t.item_type||"Challenge"===t.item_type)&&t.high_resources_consume&&(0,at.jsx)(ws,{type:"paths",style:{marginLeft:10}}),("Shixun"===t.item_type||"Challenge"===t.item_type)&&(null==t||null===(i=t.shixun_marks)||void 0===i?void 0:i.length)>0&&(1==(null==n||null===(l=n.userInfo)||void 0===l?void 0:l.role)||2==(null==n||null===(u=n.userInfo)||void 0===u?void 0:u.role))&&(null==t?void 0:t.shixun_marks.map((function(t,e){return(0,at.jsx)(tt.Z,{title:"".concat(t),children:(0,at.jsx)("span",{style:{background:"#43a2ff",color:"#fff",borderRadius:"13px",marginLeft:"5px",height:"20px",textAlign:"center",fontSize:"12px",maxWidth:"70px",padding:"0px 13px",overflow:"hidden",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",justifyContent:"center",textOverflow:"ellipsis"},children:t})},e)}))),!(null===(c=t.schools)||void 0===c||!c.length)&&(0,at.jsx)(tt.Z,{title:"该实践项目面向指定单位开放",children:(0,at.jsx)("i",{className:"iconfont icon-zhidinggongkai1 ml10 c-orange",style:{transform:"translateY(1px)",display:"inline-block"}})}),("Shixun"===t.item_type||"Challenge"===t.item_type)&&!(null==t||!t.finished_challenges_count)&&(0,at.jsx)(tt.Z,{title:"完成度:".concat(Math.round((null==t?void 0:t.finished_challenges_count)/(null==t?void 0:t.challenges_count)*100),"%"),children:(0,at.jsx)("i",{className:"iconfont icon-a-wanchengdu100 ml10 ".concat((null==t?void 0:t.finished_challenges_count)-(null==t?void 0:t.challenges_count)==0?"c-light-green":"c-grey-333"),style:{transform:"translateY(1px)",display:"inline-block"}})})]}),!f.disabled&&(0,at.jsx)("aside",{style:{color:"#0152d9",fontSize:"14px",marginRight:"20px"},children:"拖动可以改变项目显示顺序"}),(0,at.jsxs)(J.Z,{children:[f.disabled&&"暂未公开"===v.shixun_status&&(0,at.jsx)("span",{className:"".concat(ds.color204," ml5"),children:"暂未发布"}),"已删除"===v.shixun_status&&(0,at.jsx)("span",{className:"".concat(ds.color204," ml5"),children:"已删除"}),f.disabled&&!s&&("Shixun"===v.item_type||"Challenge"===v.item_type)&&!!v.challenges_count&&(0,at.jsxs)("span",{className:"experˆiment-number ml5 c-grey-999",children:[" 实验数 ","Challenge"===v.item_type?1:v.challenges_count," "]}),f.disabled&&s&&("Shixun"===v.item_type||"Challenge"===v.item_type)&&!!v.challenges_count&&"暂未公开"!==v.shixun_status&&"已删除"!==v.shixun_status&&(0,at.jsxs)(at.Fragment,{children:[(0,at.jsx)("i",{className:"iconfont icon-wanchenggouxuan font14",style:{marginLeft:"5px",color:v.finished_challenges_count===v.challenges_count?"#50DAAE":"#DEDEDE"}}),(0,at.jsxs)("span",{style:{marginLeft:"4px"},children:[(0,at.jsx)("span",{style:{color:"#165DFF",fontSize:"14px"},children:v.finished_challenges_count}),(0,at.jsxs)("span",{style:{color:"#DEDEDE",fontSize:"14px"},children:["/",v.challenges_count]})]})]}),f.disabled&&s&&("VideoItem"===v.item_type||"Attachment"===v.item_type)&&(0==v.complete_status?(0,at.jsx)("i",{className:"iconfont icon-weidianjixuexi font14",style:{color:"#DEDEDE"}}):1==v.complete_status?(0,at.jsx)("i",{className:"iconfont icon-yidianjixuexiweiwancheng font14",style:{color:"#50DAAE"}}):(0,at.jsx)("i",{className:"iconfont icon-xuexiwancheng font14",style:{color:"#50DAAE"}})),"All"===m&&"StageCatalog"===t.item_type&&(0,at.jsx)("span",{className:"ml10",children:w.includes(t.key)?(0,at.jsx)(fs.Z,{}):(0,at.jsx)(Mt.Z,{})})]})]})},treeData:O,loadedKeys:A,loadData:function(){var t=a()(r()().mark((function t(e){var n,i,a;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(console.log(e,22),pt.current=!0,M(null==A?void 0:A.concat([e.key])),"StageCatalog"===e.item_type){t.next=5;break}return t.abrupt("return",pt.current=!1);case 5:return t.next=7,o({type:"pathsDetail/getStageChildrenData",payload:{id:e.stage_item_id}});case 7:n=t.sent,pt.current=!1,i=function t(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:O;return i.map((function(i){var r;return i.id==e.id?G()(G()({},i),{},{children:n.data.items}):G()(G()({},i),{},{children:(null==i||null===(r=i.children)||void 0===r?void 0:r.length)>0?t(i.children):[]})}))},a=i(),ut(a,0),D(Y()(a));case 13:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()})})}),[O,P,w,m,K,A]);return(0,at.jsx)(at.Fragment,{children:gt})})),Cs=["pathsDetail","user","globalSetting","loading","exercise","dispatch","classroomList","val","allData","index","visibleTypeNew","getData","selectExercise","openPreview","UpdataStageChildrenData"],As=["tagName"],Ms=["application/pdf","application/msword","application/vnd.ms-excel","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/ZIP"],Es=(0,d.connect)((function(t){var e=t.pathsDetail,n=t.user,i=t.loading,r=t.globalSetting,o=t.classroomList,a=t.exercise;return{pathsDetail:e,user:n,globalSetting:r,loading:i.effects,classroomList:o,exercise:a}}))((function(t){var e,n,i,o=t.pathsDetail,s=t.user,u=t.globalSetting,f=(t.loading,t.exercise,t.dispatch),p=(t.classroomList,t.val),g=t.allData,m=t.index,v=t.visibleTypeNew,y=t.getData,w=t.selectExercise,b=t.openPreview,x=t.UpdataStageChildrenData,S=(c()(t,Cs),X.Z.useForm()),P=l()(S,1)[0],k=(0,h.useState)(),C=l()(k,2),A=C[0],M=(C[1],X.Z.useForm()),E=l()(M,1)[0],L=X.Z.useForm(),T=l()(L,1)[0],N=X.Z.useForm(),j=l()(N,1)[0],I=(0,d.useParams)(),B=o.stageData,O=o.keywords,D=o.visibleType,R=void 0===D?"All":D,F=o.editKey,z=(0,h.useState)({}),Z=l()(z,2),V=Z[0],q=Z[1],$=(0,h.useRef)(),tt=(0,h.useState)(!1),et=l()(tt,2),nt=et[0],ot=et[1],st=(0,h.useState)(!1),ut=l()(st,2),ct=ut[0],ht=ut[1],dt=(0,h.useState)(!1),ft=l()(dt,2),pt=ft[0],gt=ft[1],mt=(0,h.useState)(!1),vt=l()(mt,2),yt=vt[0],wt=vt[1],bt=(0,h.useState)(!1),St=l()(bt,2),Pt=St[0],kt=St[1],Ct=(0,h.useState)(!1),Mt=l()(Ct,2),Et=Mt[0],Lt=Mt[1],Tt=(0,h.useState)(),Nt=l()(Tt,2),jt=Nt[0],It=Nt[1],Bt=(0,h.useState)(!1),Ot=l()(Bt,2),Dt=Ot[0],Rt=Ot[1],Ft=(0,h.useState)(!1),zt=l()(Ft,2),Gt=zt[0],Ut=zt[1],Ht=(0,h.useState)(""),_t=l()(Ht,2),Zt=_t[0],Wt=_t[1],Vt=(0,h.useState)(""),Yt=l()(Vt,2),Xt=Yt[0],qt=Yt[1],Kt=(0,h.useState)(""),Qt=l()(Kt,2),Jt=Qt[0],$t=Qt[1],te=(0,h.useState)(""),ee=l()(te,2),ne=ee[0],ie=ee[1],re=(0,h.useState)(),oe=l()(re,2),ae=oe[0],se=oe[1],le=(0,h.useState)(!0),ue=l()(le,2),ce=ue[0],he=(ue[1],(0,h.useState)([])),de=l()(he,2),fe=de[0],pe=de[1],we=(0,h.useState)(),be=l()(we,2),xe=be[0],Se=be[1],Pe=(0,h.useState)([]),ke=l()(Pe,2),Ce=ke[0],Ae=ke[1],Me=(null===(e=o.detail)||void 0===e?void 0:e.is_free)||(null===(n=o.detail)||void 0===n?void 0:n.can_learning);null!==(i=o.detail)&&void 0!==i&&i.can_managed;(0,h.useEffect)((function(){console.log(555)}),[]);var Ee=function(){var t=a()(r()().mark((function t(e){var n;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,lt.Ex)(G()({},e));case 2:return n=t.sent,V.items=e.list,t.abrupt("return",n);case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Le=function(){var t=a()(r()().mark((function t(e){var n,i;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(xe){t.next=7;break}return t.next=3,(0,lt.A2)(G()({id:V.stage_id,subject_id:I.pathId},e));case 3:t.sent.id&&(kt(!1),x({stage_id:V.stage_id})),t.next=11;break;case 7:return t.next=9,(0,lt.M2)(G()(G()({id:null==xe?void 0:xe.id,subject_id:I.pathId},e),{},{video_id:(null==e?void 0:e.video_id)||(null==xe||null===(n=xe.video_item)||void 0===n?void 0:n.video_id),link:(null==e?void 0:e.link)||(null==xe||null===(i=xe.video_item)||void 0===i?void 0:i.link)}));case 9:t.sent&&(H.ZP.success("修改成功"),kt(!1),x({stage_id:V.stage_id}));case 11:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Te=function(){var t=a()(r()().mark((function t(e){var n,i,o,a,s,l,u,h;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!=e&&e.name&&""!==(null==e?void 0:e.name.replace(/(^\s*)|(\s*$)/g,""))){t.next=2;break}return t.abrupt("return",H.ZP.info("请先输入章节名称!"));case 2:return o=[].concat(Y()((null==V||null===(n=V.shixuns_list)||void 0===n?void 0:n.map((function(t){return{type:t.item_type,id:t.id}})))||[]),Y()((null==V||null===(i=V.attachments_list)||void 0===i?void 0:i.map((function(t){return{type:"Attachment",id:t.id}})))||[])),a=e.tagName,s=c()(e,As),l=G()(G()({},s),{},{id:V.stage_id,type:Array.from(new Set(o.map((function(t){return t.type})))),list:o}),u=V.tag&&V.tag.id||"",l=G()(G()({},l),{},{stage_tag_attributes:u?{id:u,name:a}:{name:a||""}}),t.next=9,(0,lt.xn)(G()({},l));case 9:null!=(h=t.sent)&&h.subject_id&&x(G()(G()(G()({},V),h),{},{stage_name:l.name,stage_description:l.description,tag:l.stage_tag_attributes}));case 11:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Ne=function(t){var e;U.Z.confirm({centered:!0,okText:"确定",cancelText:"取消",title:"提示",content:"本操作将删除当前目录及下属子目录的全部内容,确认要删除吗?",onOk:(e=a()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,lt.WW)(t);case 2:0===e.sent.status&&(H.ZP.success("删除成功"),x({stage_id:p.stage_id||V.stage_id}));case 4:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})})},je=function(){var t=a()(r()().mark((function t(e){var n;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,lt.FD)({id:null==e?void 0:e.stage_item_id,type:null==e?void 0:e.homework_type});case 2:(n=t.sent)&&("HomeworkCommon"==(null==e?void 0:e.item_type)?$t(null==n?void 0:n.hack_homework):$t(null==n?void 0:n.subject_homework),Wt(null==e?void 0:e.item_type),qt(null==e?void 0:e.stage_item_id),Ut(!0));case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Ie=function(){var t=a()(r()().mark((function t(e){var n,i,o,s,l,u;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("VideoItem"!==(null==e?void 0:e.item_type)){t.next=8;break}return t.next=3,(0,Ma.TJ)({id:null==e?void 0:e.stage_item_id});case 3:n=t.sent,Se(n),"VideoItem"===(null==e?void 0:e.item_type)?kt(!0):(Ae((null==n||null===(i=n.tags)||void 0===i?void 0:i.map((function(t){return null==t?void 0:t.name})))||[]),T.setFieldsValue({files:[{uid:null==n||null===(o=n.attachment)||void 0===o?void 0:o.id,name:null==n?void 0:n.name,response:{id:null==n||null===(s=n.attachment)||void 0===s?void 0:s.id}}]}),gt(!0)),t.next=9;break;case 8:"ExaminationBank"===(null==e?void 0:e.item_type)?d.history.push("/paperlibrary/add/".concat(null==e?void 0:e.id,"?defaultActiveKey=0&type=2&pageType=course&updateType=course&courseId=").concat(I.pathId,"&stageId=").concat(p.stage_id)):"HomeworkCommon"===(null==e?void 0:e.item_type)?d.history.push("/paths/".concat(I.pathId,"/").concat(V.stage_id,"/program_homework/").concat(null==e?void 0:e.id,"/edit")):"Attachment"===(null==e?void 0:e.item_type)?U.Z.confirm({title:"修改课件名称",icon:null,centered:!0,okText:"确认修改",cancelText:"取消",content:(0,at.jsx)(rt.Z,{value:l,onChange:function(t){l=t.target.value},placeholder:"请输入课件名称"}),onOk:function(){var t=a()(r()().mark((function t(){var n,i;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(l){t.next=3;break}return H.ZP.info("名称不能为空"),t.abrupt("return",Promise.reject());case 3:return t.next=5,(0,it.ZP)("/api/attachments/".concat(null==e?void 0:e.id,".json"),{method:"put",body:{name:l+(null==e||null===(n=e.name)||void 0===n?void 0:n.substr(null==e||null===(i=e.name)||void 0===i?void 0:i.lastIndexOf(".")))}});case 5:t.sent,l="",x({stage_id:null==e?void 0:e.stage_id});case 8:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()}):"SubjectHomework"===(null==e?void 0:e.item_type)?f({type:"classroomList/setActionTabs",payload:{key:"group"==(null==e?void 0:e.homework_type)?"课程编辑分组作业":"课程编辑图文作业",id:null==e?void 0:e.stage_item_id,type:null==e?void 0:e.homework_type}}):U.Z.confirm({title:"修改小节名称",icon:null,centered:!0,okText:"确认修改",cancelText:"取消",content:(0,at.jsx)(rt.Z,{defaultValue:null==e?void 0:e.name,value:u,maxLength:40,onChange:function(t){console.log(t.target.value),u=t.target.value},placeholder:"请输入小节名称"}),onOk:function(){var t=a()(r()().mark((function t(){return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((u||(null==e?void 0:e.name)).replaceAll(" ","")){t.next=3;break}return H.ZP.info("名称不能为空"),t.abrupt("return",Promise.reject());case 3:return t.next=5,(0,it.ZP)("/api/stages/".concat(null==e?void 0:e.stage_id,"/update_item_name.json"),{method:"put",body:{name:u||(null==e?void 0:e.name),item_id:null==e?void 0:e.id}});case 5:t.sent,u="",x({stage_id:null==e?void 0:e.stage_id});case 8:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()});case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Be=function(){Te(P.getFieldsValue(),"edit")},De=function(t){var e,n,i=[];t.items&&null!==(e=t.items)&&void 0!==e&&e.length&&(null===(n=t.items)||void 0===n||n.forEach((function(t){var e;i.push(t),t.children&&null!==(e=t.children)&&void 0!==e&&e.length&&(i=i.concat(t.children))})));return!!i.find((function(t){return(0,ss.isEqual)(t.learning_status,["can","try"])}))?(0,at.jsx)("aside",{className:W.learn,children:"免费试学"}):null},Re=function(t,e){var n,i,l,c,h,p=(null==t?void 0:t.items)||[];console.log(p,"kdata");var m,b,S,k;"All"===R&&((null===(m=s.userInfo)||void 0===m?void 0:m.admin)||(null===(b=s.userInfo)||void 0===b?void 0:b.business)||null===(S=o.detail)||void 0===S||S.allow_statistics,null!==(k=o.detail)&&void 0!==k&&k.allow_add_member&&Me&&!nt&&(null==B||B.length));var C,M,L,N,O,D=function(){var n=a()(r()().mark((function n(i){return r()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:pe(i),null!=p&&p.length||!i.includes("".concat(e))||x({stage_id:t.stage_id||V.stage_id});case 2:case"end":return n.stop()}}),n)})));return function(t){return n.apply(this,arguments)}}();return(0,at.jsx)(_.Z,{spinning:!1,children:(0,at.jsx)(ge,{className:"mt20 ".concat(W.ChapterStyle),activeKey:fe,bordered:!1,expandIconPosition:"end",expandIcon:function(t){var e=t.isActive;return(0,at.jsx)("i",{className:"iconfont icon-zhankai1 fon14",style:{transform:"rotate(".concat(e?90:0,"deg) "),transition:".3s"}})},onChange:D,items:[{key:e,label:(0,at.jsxs)(Q.Z,{id:"Edit_".concat(e),wrap:!1,align:"middle",gutter:5,children:[(0,at.jsx)(J.Z,{children:(0,at.jsxs)("span",{className:"font18 blod c-3061d0",children:[t.stage_name||"第".concat(null==g?void 0:g.length,"章节"),De(t)]})}),t.tag&&t.tag.name&&(0,at.jsx)(J.Z,{children:(0,at.jsx)("span",{className:"".concat(W.tag),children:t.tag.name})})]}),children:(0,at.jsxs)(_.Z,{spinning:!1,children:[!nt&&(t.stage_description?(0,at.jsx)("aside",{className:"pl20 pr20",children:(0,at.jsx)("div",{ref:$,className:"".concat(W.introContent," ").concat(""),children:(0,at.jsx)(rn.Z,{value:null==t?void 0:t.stage_description})})}):0==(null==p?void 0:p.length)?(0,at.jsx)("div",{className:W.nodata,children:"暂无内容~"}):null),nt&&(0,at.jsxs)("div",{className:"pl20 pr20",children:[(0,at.jsx)(X.Z.Item,{name:"name",label:"名称",rules:[{required:!0,message:"章节名称不能为空"},{whitespace:!0,message:"不能输入空格"}],children:(0,at.jsx)(rt.Z,{size:"middle",maxLength:60,placeholder:"请输入第".concat(e+1,"章节名称,最大限制60个字符"),onBlur:Be})}),(0,at.jsx)(X.Z.Item,{name:"description",label:"描述",className:"ml10",children:(0,at.jsx)(Aa,{defaultValue:null==A?void 0:A.description,placeholder:"请输入第".concat(e+1,"章节描述"),height:300,onBlur:Be})}),(0,at.jsx)(X.Z.Item,{label:"标签",name:"tagName",rules:[{max:10,message:"标签不能超过10个字”"}],children:(0,at.jsx)(rt.Z,{placeholder:"请输入标签名称",onBlur:Be})}),(0,at.jsxs)("aside",{className:"mt20 mb20",children:[(0,at.jsx)(K.ZP,{size:"middle",style:{padding:"4px 11px"},ghost:!0,type:"primary",icon:(0,at.jsx)("i",{className:"iconfont icon-tianjiafangda mr5 "}),onClick:function(){if(null==V||!V.stage_id)return H.ZP.info("请先输入章节名称!");Ta(f)&&(wt(!0),j.resetFields())},children:"小节"}),(0,at.jsx)(me.Z,{placement:"bottomCenter",overlayClassName:W.dro,menu:{items:[{key:"1",label:"新建实践项目"},{key:"2",label:"选用实践项目"},{key:"3",label:"选用任务关卡"}],onClick:function(t){var e=t.key;t.keyPath,t.domEvent;if(!V.stage_id)return H.ZP.info("请先输入章节名称!");if("1"===e){if(!Ta(f)||!(0,xt.V9)()&&(U.Z.warning({centered:!0,width:530,title:"提示",content:(0,at.jsxs)("div",{className:"tc",style:{marginLeft:-38},children:[(0,at.jsx)("p",{children:"扫码加 助教,申请操作权限"}),(0,at.jsx)("img",{src:Ea,width:200})]}),okText:"我知道了",maskClosable:!0}),1))return;Lt(!1),ht(!0),E.setFieldsValue({name:"",is_jupyter:!1})}"2"===e&&f({type:"classroomList/setActionTabs",payload:{key:"选用实践项目",id:V.stage_id,subject_id:I.pathId}}),"3"===e&&f({type:"classroomList/setActionTabs",payload:{key:"选用实践项目",id:V.stage_id,subject_id:I.pathId,isMissionLevel:!0}})}},children:(0,at.jsxs)(K.ZP,{size:"middle",style:{marginLeft:15,padding:"4px 11px"},ghost:!0,type:"primary",children:[(0,at.jsx)("span",{className:"iconfont icon-tianjiafangda mr5"}),"实践项目"]})}),!(null!=u&&null!==(n=u.setting)&&void 0!==n&&n.is_local)&&(0,at.jsx)(at.Fragment,{children:(0,at.jsx)(me.Z,{placement:"bottomCenter",overlayClassName:W.dro,dropdownRender:function(){return(0,at.jsxs)(ve.Z,{children:[(0,at.jsx)(ve.Z.Item,{style:{textAlign:"center"},onClick:function(){if(!V.stage_id)return H.ZP.info("请先输入章节名称!");Se(""),kt(!0)},children:"新建视频项目"},3),(0,at.jsx)(ve.Z.Item,{style:{textAlign:"center"},onClick:function(){if(!V.stage_id)return H.ZP.info("请先输入章节名称!");Ta(f)&&(It("视频项目"),Rt(!0),ie(V.stage_id))},children:"选用视频项目"},4)]})},children:(0,at.jsxs)(K.ZP,{size:"middle",style:{marginLeft:15,padding:"4px 11px"},ghost:!0,type:"primary",children:[(0,at.jsx)("span",{className:"iconfont icon-tianjiafangda mr5 "}),"视频项目"]})})}),(0,at.jsx)(me.Z,{placement:"bottomCenter",overlayClassName:W.dro,dropdownRender:function(){return(0,at.jsxs)(ve.Z,{children:[(0,at.jsx)(ve.Z.Item,{style:{textAlign:"center"},onClick:function(){if(!V.stage_id)return H.ZP.info("请先输入章节名称!");Ta(f)&&(Se(""),Ae([]),Lt(!1),gt(!0),T.resetFields())},children:"新建教学课件"},5),(0,at.jsx)(ve.Z.Item,{style:{textAlign:"center"},onClick:function(){if(!V.stage_id)return H.ZP.info("请先输入章节名称!");Ta(f)&&(It("教学课件"),Rt(!0),ie(V.stage_id))},children:"选用教学课件"},6)]})},children:(0,at.jsxs)(K.ZP,{size:"middle",style:{marginLeft:15,padding:"4px 11px"},ghost:!0,type:"primary",children:[(0,at.jsx)("span",{className:"iconfont icon-tianjiafangda mr5 "}),"教学课件"]})}),(0,at.jsx)(me.Z,{placement:"bottomCenter",overlayClassName:W.dro,dropdownRender:function(){return(0,at.jsxs)(ve.Z,{children:[(0,at.jsx)(ve.Z.Item,{style:{textAlign:"center"},onClick:function(){if(!V.stage_id)return H.ZP.info("请先输入章节名称!");Ta(f)&&f({type:"classroomList/setActionTabs",payload:{key:"课程新建分组作业",id:V.stage_id,subject_id:I.pathId}})},children:"新建分组作业"},7),(0,at.jsx)(ve.Z.Item,{style:{textAlign:"center"},onClick:function(){if(!V.stage_id)return H.ZP.info("请先输入章节名称!");Ta(f)&&f({type:"classroomList/setActionTabs",payload:{key:"课程新建图文作业",id:V.stage_id,subject_id:I.pathId}})},children:"新建图文作业"},8),(0,at.jsx)(ve.Z.Item,{style:{textAlign:"center"},onClick:function(){if(!V.stage_id)return H.ZP.info("请先输入章节名称!");Ta(f)&&d.history.push("/paths/".concat(I.pathId,"/").concat(V.stage_id,"/program_homework/null/add"))},children:"新建编程作业"},9),(0,at.jsx)(ve.Z.Item,{style:{textAlign:"center"},onClick:function(){if(!V.stage_id)return H.ZP.info("请先输入章节名称!");Ta(f)&&(It("分组作业"),Rt(!0),ie(V.stage_id))},children:"选用分组作业"},10),(0,at.jsx)(ve.Z.Item,{style:{textAlign:"center"},onClick:function(){if(!V.stage_id)return H.ZP.info("请先输入章节名称!");Ta(f)&&(It("图文作业"),Rt(!0),ie(V.stage_id))},children:"选用图文作业"},11),(0,at.jsx)(ve.Z.Item,{style:{textAlign:"center"},onClick:function(){if(!V.stage_id)return H.ZP.info("请先输入章节名称!");Ta(f)&&(It("编程作业"),Rt(!0),ie(V.stage_id))},children:"选用编程作业"},12)]})},children:(0,at.jsxs)(K.ZP,{size:"middle",style:{marginLeft:15,padding:"4px 11px"},ghost:!0,type:"primary",children:[(0,at.jsx)("span",{className:"iconfont icon-tianjiafangda mr5 "}),"作业"]})}),(0,at.jsx)(me.Z,{placement:"bottomCenter",overlayClassName:W.dro,dropdownRender:function(){return(0,at.jsxs)(ve.Z,{children:[(0,at.jsx)(ve.Z.Item,{style:{textAlign:"center"},onClick:function(){d.history.push("/paperlibrary/add?pageType=course&courseId=".concat(I.pathId,"&stageId=").concat(t.stage_id))},children:"新建试卷"},13),(0,at.jsx)(ve.Z.Item,{style:{textAlign:"center"},onClick:function(){if(!V.stage_id)return H.ZP.info("请先输入章节名称!");Ta(f)&&w(t)},children:"选用试卷"},14)]})},children:(0,at.jsxs)(K.ZP,{size:"middle",style:{marginLeft:15,padding:"4px 11px"},ghost:!0,type:"primary",children:[(0,at.jsx)("span",{className:"iconfont icon-tianjiafangda mr5 "}),"测验"]},e)}),(0,at.jsx)("br",{})]}),(0,at.jsxs)("aside",{className:"c-light-black mt10 pb20",children:["所有项目均可以通过拖动排序或升降级。",(0,at.jsx)("br",{}),"新建项目名称指本项目下没有实质内容,仅展示名称,不可点击。"]})]}),(0,at.jsx)("aside",{className:"".concat(null!=t&&t.stage_description?"mt10":""," ").concat(W.shixuns),children:!(null==p||!p.length)&&(0,at.jsx)(Fe,{visibleType:v,data:p,stage_id:t.stage_id,disabled:!nt,deleteStages:Ne,editVidoItem:Ie,showInfoModal:je,updateSort:Ee,index:e,expandAll:null==o||null===(i=o.detail)||void 0===i?void 0:i.show_course_section,cust_seq:!(null==o||null===(l=o.detail)||void 0===l||!l.cust_seq),showVideoPlay:(null===(c=s.userInfo)||void 0===c?void 0:c.admin)||(null===(h=s.userInfo)||void 0===h?void 0:h.business)||((null===(C=o.detail)||void 0===C||null===(C=C.courses)||void 0===C?void 0:C.length)>0?null===(M=o.detail)||void 0===M?void 0:M.allow_visit:!("学生"===(null===(L=s.userInfo)||void 0===L?void 0:L.user_identity)&&null!==(N=o.detail)&&void 0!==N&&N.allow_visit&&null!==(O=o.detail)&&void 0!==O&&O.courses)),isPaths:!0,isShowSchedule:o.isShowSchedule,getData:y})}),nt&&(0,at.jsxs)("aside",{className:W.buttons,children:[(0,at.jsx)(K.ZP,{onClick:function(){ot(!1),f({type:"pathsDetail/save",payload:{editKey:-1}}),f({type:"pathsDetail/getPathsDetail",payload:{id:I.pathId}})},type:"primary",size:"middle",ghost:!0,children:"取消"}),(0,at.jsx)(K.ZP,{onClick:a()(r()().mark((function t(){return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:P.submit(),f({type:"pathsDetail/save",payload:{editKey:-1}}),f({type:"pathsDetail/getPathsDetail",payload:{id:I.pathId}});case 3:case"end":return t.stop()}}),t)}))),size:"middle",type:"primary",children:"保存"})]})]})}]})})},Fe=h.memo(ks);(0,h.useMemo)((function(){return console.log(V,"data1"),V?Re(V,m):null}),[V,O,v,R,ae,ce,fe,nt,F]);return(0,h.useEffect)((function(){q(G()({},p)),P.setFieldsValue(G()(G()({},p),{},{name:null==p?void 0:p.stage_name}))}),[p]),(0,h.useEffect)((function(){var t;if(F===m){ot(!0);var e=document.getElementById("Edit_".concat(F));e&&setTimeout((function(){return e.scrollIntoView({block:"start",behavior:"smooth"})}))}else ot(!1);pe(null==V||!V.limit_expansion||(null==V||null===(t=V.items)||void 0===t?void 0:t.length)>0||F===m?["".concat(m)]:[])}),[V,F]),(0,h.useEffect)((function(){if($.current){var t=function(){var t,e=new ResizeObserver((function(t){var e,n=At()(t);try{for(n.s();!(e=n.n()).done;){var i=e.value;se(i.target.offsetHeight>=280)}}catch(t){n.e(t)}finally{n.f()}}));return e.observe(null===(t=$.current)||void 0===t?void 0:t.firstElementChild),e}();return function(){var e,n;(null===(e=$.current)||void 0===e?void 0:e.firstElementChild)&&t.unobserve(null===(n=$.current)||void 0===n?void 0:n.firstElementChild)}}}),[$.current,V]),(0,at.jsxs)("section",{children:[(0,at.jsx)(X.Z,{form:P,onFinish:Te,children:Re(V,m)}),(0,at.jsx)(U.Z,{centered:!0,title:"新建实践项目",open:ct,confirmLoading:Et,destroyOnClose:!0,onOk:a()(r()().mark((function t(){return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:E.submit();case 1:case"end":return t.stop()}}),t)}))),onCancel:function(){ht(!1)},children:(0,at.jsxs)(X.Z,{form:E,initialValues:{name:"",is_jupyter:!1},onFinish:function(){var t=a()(r()().mark((function t(e){return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return Lt(!0),t.next=3,(0,lt.vf)(G()({id:V.stage_id,subject_id:I.pathId},e));case 3:t.sent.id&&(E.resetFields(),H.ZP.success("添加成功"),x(G()({},V)),ht(!1)),Lt(!1);case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),children:[(0,at.jsx)(X.Z.Item,{label:"类型",name:"is_jupyter",rules:[{required:!0,message:"请选择类型"}],children:(0,at.jsxs)(ye.ZP.Group,{children:[(0,at.jsx)(ye.ZP,{value:!1,children:" 全栈实践项目 "}),(0,at.jsx)(ye.ZP,{value:!0,children:"Jupyter Notebook实践项目"})]})}),(0,at.jsx)(X.Z.Item,{label:"名称",name:"name",rules:[{required:!0,message:"请输入名称"},{whitespace:!0,message:"请勿输入空格"}],children:(0,at.jsx)(rt.Z,{showCount:!0,maxLength:60,placeholder:"请输入不超过60字的名称"})})]})}),(0,at.jsx)(U.Z,{centered:!0,title:xe?"编辑教学课件":"新建教学课件",open:pt,confirmLoading:Et,onCancel:function(){gt(!1),Ae([]),Se("")},destroyOnClose:!0,onOk:a()(r()().mark((function t(){var e,n,i,o,a,s;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=T.getFieldsValue(),Lt(!0),!(i=n.files.find((function(t){return!t.response||!t.response.id})))){t.next=6;break}return H.ZP.error("".concat(null==i?void 0:i.name," 文件上传失败,请重新上传")),t.abrupt("return");case 6:if(a=G()(G()({},n),{},{subject_id:I.pathId,tags:Ce,attachment_ids:null==n||null===(e=n.files)||void 0===e?void 0:e.map((function(t){return t.response.id}))}),xe){t.next=13;break}return t.next=10,(0,lt.s0)(G()(G()({},a),{},{id:V.stage_id}));case 10:o=t.sent,t.next=16;break;case 13:return t.next=15,(0,lt.M2)(G()(G()({},a),{},{id:null==xe?void 0:xe.id,attachment_id:null==a||null===(s=a.attachment_ids)||void 0===s?void 0:s[0]}));case 15:o=t.sent;case 16:0===o.status&&(H.ZP.success("修改成功"),gt(!1),x(G()({},V))),Lt(!1);case 18:case"end":return t.stop()}}),t)}))),children:(0,at.jsxs)(X.Z,{form:T,children:[(0,at.jsx)(X.Z.Item,{label:"课件内容",name:"files",rules:[{required:!0,message:"请上传课件内容"}],children:(0,at.jsx)(cs,{aloneClear:!0,maxSize:(0,xt.Ny)()?500:100,accept:Ms.toString(),number:xe?1:10})}),(0,at.jsx)(X.Z.Item,{style:{marginLeft:8},label:"知识标签",name:"tags",children:(0,at.jsx)(rt.Z,{onKeyUp:function(t){if("Enter"==t.key){var e=T.getFieldValue("tag");if(T.setFieldsValue({tag:""}),!e)return void H.ZP.info("标签不能为空");if(Ce.filter((function(t){return t===e})).length>0)return void H.ZP.info("已有相同名称标签");Ce.push(e),Ae(Y()(Ce))}}})}),(0,at.jsx)("div",{className:W["tagsList-content"],children:Ce.map((function(t,e){return(0,at.jsx)(Oe,{closable:!0,onClose:function(e){!function(t,e){t.preventDefault(),Ae(Y()(Ce.filter((function(t){return t!=e}))))}(e,t)},children:t},e+t)}))}),(0,at.jsxs)("div",{children:[(0,at.jsx)("span",{className:"c-red",children:"注意:"}),(0,at.jsx)("br",{}),"1、上传课件即表示您已同意",(0,at.jsx)(d.Link,{to:"/users/mmipb3zhj/videos/protocol",target:"_blank",children:"上传内容协议"}),",不得上传未经他人授权的作品;",(0,at.jsx)("br",{}),"2、上传课件默认设置为不允许下载若要开启下载功能可进入课程编辑页面设置",(0,at.jsx)("br",{}),"3、不支持断点续传单个文件大小请勿超过",(0,xt.Ny)()?500:100,"M",(0,at.jsx)("br",{}),"4、当前仅限支持pdf、word、excel、ppt、zip文件",(0,at.jsx)("br",{}),"5、文件名将被自动读取为系统内该课件的名称上传前请注意这一点",(0,at.jsx)("br",{}),"6、一次最多上传10个文件。"]})]})}),(0,at.jsx)(U.Z,{centered:!0,title:"新建小节名称",open:yt,confirmLoading:Et,onOk:a()(r()().mark((function t(){return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:j.submit();case 1:case"end":return t.stop()}}),t)}))),onCancel:function(){wt(!1),j.resetFields()},children:(0,at.jsx)(X.Z,{form:j,onFinish:function(){var t=a()(r()().mark((function t(e){return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return Lt(!0),t.next=3,(0,lt.Mt)(G()(G()({},e),{},{id:null==V?void 0:V.stage_id,subject_id:I.pathId}));case 3:0===t.sent.status&&(H.ZP.success("添加成功"),wt(!1),j.resetFields(),x(G()({},V))),Lt(!1);case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),children:(0,at.jsx)(X.Z.Item,{label:"",name:"name",rules:[{required:!0,message:"请输入不超过40字的小节名称"},{whitespace:!0,message:"请勿输入空格"}],children:(0,at.jsx)(rt.Z,{showCount:!0,maxLength:40,placeholder:"请输入不超过40字的小节名称"})})})}),(0,at.jsx)($a,{visible:Pt,editData:xe,onCancel:function(){return kt(!1)},onOk:Le}),(0,at.jsx)(ho,{setScoreShow:Rt,getData:function(){x({stage_id:p.stage_id||V.stage_id})},id:ne,ScoreShow:Dt,modalType:jt,subjectId:I.pathId,openPreview:b}),(0,at.jsx)(mi,{setScoreShow:Ut,ScoreShow:Gt,homeType:Zt,homeId:Xt,modalDdata:Jt})]})})),Ls=(0,d.connect)((function(t){var e=t.shixunsDetail,n=t.loading;return{shixunsDetail:e,globalSetting:t.globalSetting,loading:n.models.index}}))((function(t){t.user;var e=t.onReplyDiscuss,n=t.dispatch,i=t.id,r=t.activeDiscussIndex,o=t.placeholder,a=(0,h.useState)(""),s=l()(a,2),u=s[0],c=s[1];var f=(0,d.useParams)();return(0,at.jsxs)("div",{className:"discuss-item-editor",style:{display:r===i?"block":"none",width:"100%"},children:[(0,at.jsx)(Aa,{miniToolbar:!0,startInit:r===i,defaultValue:u,id:i,noStorage:!0,watch:!1,height:155,placeholder:o||"我要回复",showResizeBar:!0,onChange:function(t){c(t)}}),(0,at.jsx)("a",{onClick:function(){u?(e(i,u),n({type:"pathsDetail/getPathsDetail",payload:{id:f.pathId}}),c("")):H.ZP.info("回复内容不能为空!")},className:"btn-send",children:"发送"})]},i)})),Ts=(0,d.connect)((function(t){var e=t.shixunsDetail,n=t.loading;return{shixunsDetail:e,globalSetting:t.globalSetting,loading:n.models.index}}))((function(t){var e=t.user,n=t.upDataList,i=(t.page,t.dispatch,t.keywords),o=(0,d.useParams)(),s=function(){var t=a()(r()().mark((function t(e,o){var a;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,lt.WD)({id:e,content:o});case 2:0===(null==(a=t.sent)?void 0:a.status)&&n(1,i);case 4:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}();return(0,at.jsxs)("div",{className:"discuss-item-container bg-white",children:[(0,at.jsx)("a",{href:"/users/".concat(e.login),target:"_blank",children:(0,at.jsx)("img",{alt:"用户头像",height:"50",src:"".concat(fi.Z.IMG_SERVER,"/images/").concat(e.image_url),width:"50"})}),(0,at.jsx)("section",{children:(0,at.jsx)(Ls,{id:o.pathId,activeDiscussIndex:o.pathId,onReplyDiscuss:s,placeholder:"我要讨论"})})]})})),Ns="GET_DISCUSSES",js="SHOW_DISCUSSES_LOADING",Is="TOP_OR_DOWN_DISCUSS",Bs="PLUS_DISCUSS",Os="SET_ACTION_TYPE",Ds="SHOW_REWARD_DIALOG",Rs="CANCEL_REWARD_DIALOG",Fs="SET_REWARD",zs="ACTIVE_DISCUSS_INDEX";function Gs(t,e){return(0,it.v_)("/discusses/".concat(t,"/top_or_down_discuss.json"),{top:e})}function Us(t,e){return(0,it.v_)("/discusses/".concat(t,"/plus.json"),{container_type:"Discuss",type:e?1:0})}function Hs(t,e){return(0,it.v_)("/discusses/".concat(t,"/hidden.json"),e)}function _s(t,e){return(0,it.v_)("/discusses/".concat(t,"/reward_code.json"),e)}function Zs(t){return(0,it.ZP)("/api/discusses/".concat(t,".json"),{method:"delete"})}function Ws(t,e){return(0,it.v_)("/discusses/".concat(t,"/reply.json"),{container_type:"Shixun",content:e})}var Vs=n(1499);function Ys(t){var e=t.data,n=t.index,i=t.adminOrOperator,r=t.parentDiscussIndex,o=t.shixunIdentifier,a=(t.isDelete,t.user,t.onSetRewardData),s=t.onSetActionType,l=t.deleteCommentAlert,u=t.shixunName,c=t.keywords,h=e.author,d=(e.can_delete,e.manage),f=e.content,p=e.hidden,g=e.id,m=e.reward,v=e.time;return(0,at.jsxs)("div",{className:"second-level-discuss",children:[(0,at.jsxs)("div",{className:"discuss-info-body",style:{marginTop:"8px",marginBottom:"8px"},children:[(0,at.jsxs)("div",{className:"discuss-info",children:[(0,at.jsx)("a",{href:"/users/".concat(h.login),target:"_blank",children:h.name}),(0,at.jsx)("span",{className:"grey",children:v}),m?(0,at.jsxs)("a",{className:"c-orange gift",title:"已奖励金币".concat(m),children:[(0,at.jsx)("i",{className:"iconfont icon-gift c-orange "}),(0,at.jsx)("span",{children:m})]}):null]}),(0,at.jsxs)("div",{className:c?"hidden":"btn-group",style:{marginBottom:"0px"},children:[i?(0,at.jsx)("a",{onClick:function(){a({id:g,index:n,user_id:h.user_id,parentDiscussIndex:r})},title:"给TA奖励金币",children:(0,at.jsx)("i",{className:"iconfont icon-jiangli"})}):null,i?(0,at.jsx)("a",{onClick:function(){s({id:g,index:n,params:{hidden:p?"0":"1",container_identifier:o},type:"hidden-discuss",parentDiscussIndex:r,message:p?"确定要取消隐藏该条回复吗":"确定要隐藏该条回复吗"})},title:p?"取消隐藏":"隐藏评论",children:(0,at.jsx)("i",{className:p?"iconfont icon-yincangbiyan":"fa fa-eye"})}):null,d?(0,at.jsx)("a",{onClick:function(){l?U.Z.info({title:"提示",content:(0,at.jsxs)("div",{className:"tc",children:[" ","该条评论来自《",u,"》实践项目,您不是该实践项目的管理者,不能删除评论!"]}),onOk:function(){}}):s({id:g,index:n,type:"delete-discuss",parentDiscussIndex:r,message:"确定要删除该条回复吗"})},title:"删除",style:{minWidth:"unset"},children:(0,at.jsx)("i",{className:"iconfont icon-shanchu"})}):null]})]}),(0,at.jsx)(rn.Z,{className:"discuss-content",value:f,highlightKeywords:c})]})}var Xs=function(t){var e=t.data,n=t.index,i=t.shixunIdentifier,r=t.adminOrOperator,o=t.identity,a=(t.onTopOrDownDiscuss,t.onPlusDiscuss),s=t.onSetActionType,l=t.onSetRewardData,u=t.user,c=t.isDelete,h=t.activeDiscussIndex,d=t.onReplyDiscuss,f=t.onSetActiveDiscussIndex,p=t.keywords,g=e.content,m=e.children,v=e.game_url,y=e.hidden,w=e.id,b=e.position,x=e.praise_count,S=e.reward,P=(e.sticky,e.time),k=e.user_praise,C=e.game_passed,A=e.delete_comment_alert,M=e.author,E=e.shixun_name,L=e.manage;var T=function(t){var e=t.target,n=e.nodeName,i=e.src;"IMG"===n&&(Vs.Z.publish("preview-image",i),console.log("src:",i))};return(0,at.jsxs)("div",{className:"discuss-item-container",children:[(0,at.jsx)("a",{href:"/users/".concat(M.login),target:"_blank",children:(0,at.jsx)("img",{alt:"用户头像",height:"50",src:"".concat(fi.Z.IMG_SERVER,"/images/").concat(M.image_url),width:"50"})}),(0,at.jsxs)("section",{children:[(0,at.jsxs)("div",{className:"discuss-info",children:[(0,at.jsx)("a",{href:"/users/".concat(M.login),target:"_blank",children:M.name}),(0,at.jsx)("span",{className:"grey",children:P}),b?(0,at.jsxs)("span",{className:"c-green",children:[" [第",b,"关] "]}):null,v?(0,at.jsx)("a",{href:v,target:"_blank",className:"view-code",title:"点击查看TA的代码页面",children:"查看"}):null,S?(0,at.jsxs)("a",{className:"c-orange gift",title:"已奖励金币".concat(S),children:[(0,at.jsx)("i",{className:"iconfont icon-gift c-orange "}),(0,at.jsx)("span",{children:S})]}):null,o<=5?(0,at.jsx)("span",{style:{flex:"1",textAlign:"right",color:1===C?"#29bd8b":""},children:C||0===C?1===C?"已通关":"未通关":""}):null]}),(0,at.jsx)("div",{onClick:T,children:(0,at.jsx)(rn.Z,{className:"discuss-content",value:g,highlightKeywords:p})}),m&&m.length>0?(0,at.jsx)("div",{className:"reply-discuss-container",onClick:T,children:m.map((function(t,e){return(0,at.jsx)(Ys,{data:t,index:e,deleteCommentAlert:A,shixunName:E,shixunIdentifier:i,adminOrOperator:r,user:u,isDelete:c,onSetRewardData:l,onSetActionType:s,parentDiscussIndex:n,keywords:p},t.id)}))}):null,(0,at.jsxs)("div",{className:p?"hidden":"btn-group",children:[r?(0,at.jsx)("a",{onClick:function(){l({id:w,index:n,user_id:M.user_id})},title:"给TA奖励金币",children:(0,at.jsx)("i",{className:"iconfont icon-jiangli"})}):null,r?(0,at.jsx)("a",{onClick:function(){s({id:w,index:n,params:{hidden:y?"0":"1",container_identifier:i},type:"hidden-discuss",message:y?"确定要取消隐藏该条回复吗":"确定要隐藏该条回复吗"})},title:y?"取消隐藏":"隐藏评论",children:(0,at.jsx)("i",{className:y?"iconfont icon-yincangbiyan":"fa fa-eye"})}):null,L&&(!m||0==m.length)&&(0,at.jsx)("a",{onClick:function(){A?U.Z.info({title:"提示",content:(0,at.jsxs)("div",{className:"tc",children:[" ","该条评论来自《",E,"》实践项目,您不是该实践项目的管理者,不能删除评论!"]}),onOk:function(){}}):s({id:w,index:n,type:"delete-discuss",message:"确定要删除该条回复吗"})},title:"删除",children:(0,at.jsx)("i",{className:"iconfont icon-shanchu"})}),(0,at.jsx)("a",{onClick:function(){f(w)},title:"回复",children:(0,at.jsx)("i",{className:"iconfont icon-huifu1"})}),(0,at.jsxs)("a",{onClick:function(){a(w,!k,n)},style:{whiteSpace:"nowrap"},className:k?"c-orange":"",children:[(0,at.jsx)("i",{className:k?"iconfont icon-dianzan mr3":"iconfont icon-dianzan-xian mr3 "}),(0,at.jsx)("span",{children:x||""})]})]}),(0,at.jsx)(Ls,{id:w,activeDiscussIndex:h,onReplyDiscuss:d})]})]},w)},qs={showRewardDialog:!1,data:null,page:1,loading:!1,actionType:null,activeDiscussIndex:null};function Ks(t,e){switch(e.type){case js:return G()(G()({},t),{},{loading:!0});case Ds:return G()(G()({},t),{},{showRewardDialog:!0});case Rs:return G()(G()({},t),{},{showRewardDialog:!1});case Ns:case Is:case Bs:case Os:case Fs:case zs:return G()(G()({},t),e.payload);default:throw new Error}}var Qs=function(t){var e=t.shixunIdentifier,n=t.identity,i=t.activeIndex,o=t.user,s=(t.isShixunDetail,t.isDelete),u=t.keywords,c=t.refreshCount,f=(0,h.useReducer)(Ks,qs),p=l()(f,2),g=p[0],m=p[1],v=g.page,y=g.loading,w=g.data,b=g.actionType,x=g.showRewardDialog,S=g.activeDiscussIndex,P=(0,h.useRef)(),k=(0,h.useRef)(),C=(0,d.useParams)();function A(t){return M.apply(this,arguments)}function M(){return(M=a()(r()().mark((function t(e){var n;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!y){t.next=2;break}return t.abrupt("return");case 2:return t.prev=2,m({type:js}),t.next=6,(0,lt.Ax)(G()(G()({},C),{},{page:e,keywords:u}));case 6:n=t.sent,m({type:Ns,payload:{activeDiscussIndex:null,page:e,data:n,loading:!1}}),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(2),console.log(t.t0);case 13:case"end":return t.stop()}}),t,null,[[2,10]])})))).apply(this,arguments)}function E(t){document.body.scrollIntoView(),A(t)}function L(t,e,n){return T.apply(this,arguments)}function T(){return(T=a()(r()().mark((function t(e,n,i){var o;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Us(e,n);case 3:o=t.sent,Z[i].user_praise=n,Z[i].praise_count=o.praise_count,m({type:Bs,payload:{data:G()(G()({},w),{},{comments:Z})}}),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(0),console.log(t.t0);case 12:case"end":return t.stop()}}),t,null,[[0,9]])})))).apply(this,arguments)}function N(t,e,n){return j.apply(this,arguments)}function j(){return(j=a()(r()().mark((function t(e,n,i){return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Gs(e,n);case 3:Z[i].sticky=n,m({type:Is,payload:{data:G()(G()({},w),{},{comments:Z})}}),t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),console.log(t.t0);case 10:case"end":return t.stop()}}),t,null,[[0,7]])})))).apply(this,arguments)}function I(){return I=a()(r()().mark((function t(){var e,n,i,o,a,s,l,u;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=b.id,n=b.params,i=b.type,o=b.index,a=b.parentDiscussIndex,"hidden-discuss"!==i){t.next=6;break}return t.next=4,Hs(e,n);case 4:a?Z[a].children[o].hidden=1==n.hidden:Z[o].hidden=1==n.hidden,m({type:Os,payload:{actionType:null,data:G()(G()({},w),{},{comments:Z})}});case 6:if("delete-discuss"!==i){t.next=32;break}return t.next=9,Zs(e);case 9:if(!a&&0!==a){t.next=22;break}s=Z[a].children,l=s.length-1;case 12:if(!(l>=0)){t.next=19;break}if(s[l].id!==e){t.next=16;break}return s.splice(l,1),t.abrupt("break",19);case 16:l--,t.next=12;break;case 19:Z[a].children=s,t.next=30;break;case 22:u=Z.length-1;case 23:if(!(u>=0)){t.next=30;break}if(Z[u].id!==e){t.next=27;break}return Z.splice(u,1),t.abrupt("break",30);case 27:u--,t.next=23;break;case 30:m({type:Os,payload:{actionType:null,data:G()(G()({},w),{},{comments:Z})}}),c();case 32:case"end":return t.stop()}}),t)}))),I.apply(this,arguments)}function B(t){m({type:Os,payload:{actionType:t}})}function O(){return(O=a()(r()().mark((function t(){var e,n,i,o,a,s,l;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=P.current,n=e.id,i=e.index,o=e.score,a=e.user_id,s=e.parentDiscussIndex,t.next=3,_s(n,{container_type:"Discusses",score:o,user_id:a});case 3:l=t.sent,s?Z[s].children[i].reward=l.code:Z[i].reward=l.code,m({type:Fs,payload:{showRewardDialog:!1,data:G()(G()({},w),{},{comments:Z})}}),P.current=null;case 7:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function D(t){P.current=t,m({type:Ds})}function R(t,e){return F.apply(this,arguments)}function F(){return(F=a()(r()().mark((function t(e,n){return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Ws(e,n);case 3:A(v),t.next=9;break;case 6:t.prev=6,t.t0=t.catch(0),console.log(t.t0);case 9:case"end":return t.stop()}}),t,null,[[0,6]])})))).apply(this,arguments)}function z(t){m(S===t?{type:zs,payload:{activeDiscussIndex:null}}:{type:zs,payload:{activeDiscussIndex:t}})}if((0,h.useEffect)((function(){function t(){return(t=a()(r()().mark((function t(){return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(3!==i||w||!e){t.next=3;break}return t.next=3,A(v);case 3:case"end":return t.stop()}}),t)})))).apply(this,arguments)}!function(){t.apply(this,arguments)}()}),[C.pathId,u]),(0,h.useEffect)((function(){A(v)}),[u]),!w)return(0,at.jsx)(_.Z,{spinning:!0,children:(0,at.jsx)("div",{style:{height:"300px",width:"100%"}})});var H=w.disscuss_count,Z=w.comments,W=(w.all,w.can_hidden);return(0,at.jsxs)(h.Fragment,{children:[(0,at.jsxs)("div",{className:"discuss-container",ref:k,children:[0===H?(0,at.jsx)(Ve.Z,{}):null,(0,xt.bg)()&&!u&&(0,at.jsx)(Ts,{upDataList:A,page:v,user:o,keywords:u}),(0,at.jsx)("aside",{className:"bg-white",children:null==Z?void 0:Z.map((function(t,i){return(0,at.jsx)(Xs,{user:o,data:t,index:i,identity:n,onPaginationChange:E,shixunIdentifier:e,isDelete:s,onSetActionType:B,onTopOrDownDiscuss:N,adminOrOperator:W,onPlusDiscuss:L,onSetRewardData:D,activeDiscussIndex:S,onSetActiveDiscussIndex:z,onReplyDiscuss:R,keywords:u},t.id)}))}),H>10?(0,at.jsx)("div",{className:"pagination-container tc",children:(0,at.jsx)(nt.Z,{showQuickJumper:!0,showSizeChanger:!1,onChange:E,current:v,total:H})}):null]}),(0,at.jsxs)(ko,{children:[(0,at.jsx)(U.Z,{centered:!0,title:"提示",open:!!b,onOk:function(){return I.apply(this,arguments)},onCancel:function(){m({type:Os,payload:{actionType:null}})},children:(0,at.jsx)("p",{children:b?b.message:""})}),(0,at.jsx)(U.Z,{centered:!0,width:400,title:"奖励设置",open:x,onCancel:function(){m({type:Rs})},onOk:function(){return O.apply(this,arguments)},children:(0,at.jsx)(Uo.Z,{placeholder:"请输入奖励的金币数量",min:1,onChange:function(t){P.current.score=t},style:{width:"228px"}})})]})]})},Js="scoremodal___YNtb3",$s="wrap___BauIT",tl="wrap_title___ZWoHv",el="radioWrap___Jh9vt",nl="radio___Ydt8R",il="colorFF0000___JOb5w",rl="pagination___d1fv4",ol="search___Pjuzg",al="searchIcon___v01bz",sl="orangeColor___U5vU6",ll="redColor___qYa6X",ul="statustitle___pTBLm",cl="statusbody___qUPQx",hl="flex___VtL45",dl=function(t){var e=t.type,n=t.resdata,i=t.onok,o=t.oktext,s=t.okloading,u=(0,h.useState)(!1),c=l()(u,2),d=c[0],f=c[1],p=n.can_copy_list,g=n.can_copy_num,m=n.challenge_type,v=(n.course_data_list,n.no_copy_list),y=n.no_copy_num,w=n.no_use_list,b=(n.no_use_num,n.repeat_shixun_num,n.student_count),x=(n.total_num,n.use_num),S=g>0||"exercise"===e;(0,h.useEffect)((function(){(null==n?void 0:n.student_count)>0&&f(!0)}),[n]),console.log("---11",s),(0,h.useEffect)((function(){s||f(!1)}),[s]);return(0,at.jsx)(U.Z,{open:d,onCancel:function(){f(!1)},cancelText:"取消",title:"提示",width:700,centered:!0,cancelButtonProps:{style:{display:!S&&"none"}},zIndex:1003,confirmLoading:s,okText:S?o:"我知道了",onOk:a()(r()().mark((function t(){return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!S){t.next=5;break}return t.next=3,i([].concat(Y()(p),Y()(w)));case 3:t.next=6;break;case 5:f(!1);case 6:case"end":return t.stop()}}),t)}))),children:(0,at.jsxs)("div",{style:{maxHeight:600,overflow:"auto"},children:["exercise"===e&&1===m?(0,at.jsxs)(at.Fragment,{children:["课堂内有",(0,at.jsx)("span",{className:sl,children:b}),"名学生已在其他考试中挑战过其中的",(0,at.jsx)("span",{className:sl,children:x}),"个实践项目,",(0,at.jsx)("span",{className:ll,children:"重复发送会导致这部分学生无法作答已挑战过的实训题。"})]}):"exercise"===e&&2===m?(0,at.jsxs)(at.Fragment,{children:["课堂内有",(0,at.jsx)("span",{className:sl,children:b}),"名学生已在课堂实验中挑战过其中的",(0,at.jsx)("span",{className:sl,children:x}),"个实践项目,且作业已开启“作业截止后不允许学生编辑代码”设置项,",(0,at.jsx)("span",{className:ll,children:"重复发布会导致这部分学生无法再提交作业。"})]}):"shixun"===e&&1===m?(0,at.jsxs)(at.Fragment,{children:["课堂内有",(0,at.jsx)("span",{className:sl,children:b}),"名学生已在考试中挑战过该实践项目,",(0,at.jsx)("span",{className:ll,children:"重复发送会导致这部分学生无法再提交作业。"})]}):"shixun"===e&&2===m?(0,at.jsxs)(at.Fragment,{children:["课堂内有",(0,at.jsx)("span",{className:sl,children:b}),"名学生已在课堂实验中挑战过该实践项目,且作业已开启“作业截止后不允许学生编辑代码”设置项,",(0,at.jsx)("span",{className:ll,children:"重复发送会导致这部分学生无法再提交作业。"})]}):"subject"===e&&1===m?(0,at.jsxs)(at.Fragment,{children:["课堂内有",(0,at.jsx)("span",{className:sl,children:b}),"名学生已在考试中挑战过其中的",(0,at.jsx)("span",{className:sl,children:x}),"个实践项目,",(0,at.jsx)("span",{className:ll,children:"重复发送会导致这部分学生无法再提交作业。"})]}):"subject"===e&&2===m?(0,at.jsxs)(at.Fragment,{children:["课堂内有 ",(0,at.jsx)("span",{className:sl,children:b})," 名学生已在课堂实验挑战过其中的 ",(0,at.jsx)("span",{className:sl,children:x})," 个实践项目,且作业已开启“作业截止后不允许学生编辑代码”设置项,",(0,at.jsx)("span",{className:ll,children:"重复发送会导致这部分学生无法再提交作业。"})]}):"exercisepush"===e?(0,at.jsxs)(at.Fragment,{children:["课堂内有",(0,at.jsx)("span",{className:sl,children:b}),"名学生已在其他考试中挑战过试卷中的",(0,at.jsx)("span",{className:sl,children:x}),"个实践项目 ",(0,at.jsx)("span",{className:ll,children:"重复发布会导致这部分学生无法在当前考试中进行作答。"})]}):"shixunpush"===e&&1===m?(0,at.jsxs)(at.Fragment,{children:["课堂内有",(0,at.jsx)("span",{className:sl,children:b}),"名学生已在考试中挑战过其中的",(0,at.jsx)("span",{className:sl,children:x}),"个实践项目,",(0,at.jsx)("span",{className:ll,children:"重复发布会导致这部分学生无法再提交作业。"})]}):"shixunpush"===e&&2===m?(0,at.jsxs)(at.Fragment,{children:["课堂内有",(0,at.jsx)("span",{className:sl,children:b}),"名学生已在课堂实验中挑战过",(0,at.jsx)("span",{className:sl,children:x}),"个实践项目,且作业已开启“作业截止后不允许学生编辑代码”设置项,",(0,at.jsx)("span",{className:ll,children:"重复发布会导致这部分学生无法再提交作业。"})]}):void 0,"exercise"===e||"subject"===e||"exercisepush"===e||"shixunpush"===e?(0,at.jsxs)("div",{style:{marginTop:20},children:[y>0&&(0,at.jsxs)("div",{children:[(0,at.jsxs)("span",{className:hl,children:[(0,at.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAW1JREFUOE+dkj1IQmEUht9z/blp4VQEjS39eW+oSCFCpFCI4BiKFGWWQUSrCjVVg+lQNJZQDZGNTm1B4NTibS3n2lo0wuqEN8i/a0HfeN7v+d73nO+QJEcKAJzQPAwCnSpKNtoqkyRHqgDrtUFAb6Rnedx43KgT6O5P0GQijFiNLe/Sy3/B8g+YTIRRrb5jP32JYNADr8eOldU0RJEqVlm8r1kyuA/AIEB10OWy4vBgA4ryCIdjCJlMDmfn1zAY6EmyGY/UrAwrgGATWKsn4mGEQl4Uiw+YX9hT73aZiEcl8eMbZAGA0AT6/ZPY3Ykiny/A55tA7uoGqdQFBD2VbDbDugoSTTEj3gTGYgG8Vt7UeG63hNkZJ7a2s+gw1XqPnf5REKhkt4kxNakO08ycbOtRC/7FcakCwNTJ0WwmDI+1LUCZZDkSYGa5Eewf0G0KAnprNYtFQHdPbZhNS1cmLafF5bUTJsyBSVMHPm+/ADTrfrtCH68WAAAAAElFTkSuQmCC",style:{width:14}}),(0,at.jsx)("span",{className:ul,children:"不支持复制的实践项目"})]}),(0,at.jsxs)("div",{className:cl,children:["exercise"===e&&(0,at.jsxs)("div",{style:{marginBottom:15},children:["没有复制权限的实践项目,",(0,at.jsx)("span",{className:ll,children:"以下试题将不会被发送至课堂中。"}),"您也可以联系项目创建者开启复制权限或者联系平台教研助理进行协助。"]}),("subject"===e||"exercisepush"===e)&&(0,at.jsxs)("div",{style:{marginBottom:15},children:["没有复制权限的实践项目,",S&&(0,at.jsx)("span",{className:ll,children:"一键复制不会复制此部分项目。"}),"您可以联系项目创建者开启复制权限或者联系平台教研助理进行协助。"]}),"shixunpush"===e&&(0,at.jsxs)("div",{style:{marginBottom:15},children:["没有复制权限的实践项目,",S&&(0,at.jsx)("span",{className:ll,children:"一键复制不会复制此部分项目。"}),"建议您重新选择实践项目再发布作业,也可联系项目创建者开启复制权限或联系平台教研助理进行协助。"]}),(0,at.jsx)("div",{children:null==v?void 0:v.map((function(t,e){return(0,at.jsxs)("a",{href:"/shixuns/".concat(t.identifier,"/challenges"),target:"_blank",children:["《",null==t?void 0:t.name,"》",e+1!==y&&"、"]})}))})]})]}),g>0&&(0,at.jsxs)("div",{style:{marginTop:20},children:[(0,at.jsxs)("span",{className:hl,children:[(0,at.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAPCAYAAADUFP50AAAAAXNSR0IArs4c6QAAAUFJREFUOE+V0ktKw1AUxvH/rVqIxT4wkgwEUSmK4APRBfiYCKU7cOZEBOkadAMZiwhuwJETBQciFRTtwJkPBLW2BRGrRanU9kpN2sSYiGaWc/PjuznnCN2Qh8AkPo+AzXxKLLiPhW7ICtDqB4GzQkqM/huGFZgZcDCBBDaaicsTMKbZH2xfwdY5/ICAEGSasC0AwRYblj+gKkENwfy4WS9V4LHsgsk49EZteJKHdBa6w7AybdZzr3D64ILxGKjtNrx9gfsSRBSYtf6xZh1/u+qQClrIhtdFuHmGvhisJcz65RPsZl2Jc/3QE7FhpgDHuT80x2+O9cR1K/GiCDt3rkQ/+Ns43gDFD0YVmHIuQGOOmiGTARhxwkGd1cZ7Vwd0OppWr3911StpcV++Iwn67q/kyBMuHchErcqwFxT1XZXsfQJqo2zI6kdI4QAAAABJRU5ErkJggg==",style:{width:14}}),(0,at.jsx)("span",{className:ul,children:"支持复制的实践项目"})]}),(0,at.jsxs)("div",{className:cl,children:["exercise"===e&&(0,at.jsx)("div",{style:{marginBottom:15},children:"建议您一键复制并替换试题(将复制并创建一个新的项目替换试卷中的原试题,不会复制学生的挑战记录,新的项目支持进行编辑并与原项目信息互不影响)。"}),("subject"===e||"exercisepush"===e)&&(0,at.jsx)("div",{style:{marginBottom:15},children:"建议您一键复制并发送(将复制并创建一个新的项目,不会复制学生的挑战记录,新的项目支持进行编辑并与原项目信息互不影响)。"}),"shixunpush"===e&&(0,at.jsx)("div",{style:{marginBottom:15},children:"建议您一键复制并替换试题(将复制并创建一个新的项目替换当前作业中的实践项目,不会复制学生的挑战记录,新的项目支持进行编辑并与原项目信息互不影响)。"}),(0,at.jsx)("div",{children:null==p?void 0:p.map((function(t,e){return(0,at.jsxs)("a",{href:"/shixuns/".concat(t.identifier,"/challenges"),target:"_blank",children:["《",null==t?void 0:t.name,"》",e+1!==g&&"、"]})}))})]})]})]}):"shixun"===e?(0,at.jsx)("div",{style:{marginTop:20},children:g>0?"该项目支持复制,建议您一键复制并发送(将复制并创建一个新的项目,不会复制学生的挑战记录,新的项目支持进行编辑并与原项目信息互不影响)。":"该项目不支持复制,您可以联系项目创建者开启复制权限或者联系平台教研助理进行协助。"}):void 0]})})},fl=["shixunsDetail","dispatch"],pl=(rt.Z.Search,(0,d.connect)((function(t){return{shixunsDetail:t.shixunsDetail}}))((function(t){var e,n,i=t.shixunsDetail,o=t.dispatch,s=(c()(t,fl),(0,d.useParams)()),u=(0,h.useState)(0),f=l()(u,2),p=f[0],g=f[1],m=(0,h.useState)([]),v=l()(m,2),y=v[0],w=v[1],b=(0,h.useState)(""),x=l()(b,2),S=x[0],P=x[1],k=(0,h.useState)(),C=l()(k,2),A=C[0],M=C[1],E=(0,h.useState)(!1),L=l()(E,2),T=L[0],N=L[1],j=(0,h.useState)(!1),I=l()(j,2),B=(I[0],I[1]),O=(0,h.useState)(!1),D=l()(O,2),R=D[0],z=D[1],H=(0,h.useState)({}),_=l()(H,2),W=_[0],V=_[1],Y=(0,h.useState)({page:1,limit:10,type:"video"}),X=l()(Y,2),q=X[0],K=X[1];(0,h.useEffect)((function(){var t,e;if(P(""),"Stage-SendModal"===i.actionTabs.key)if("分组作业"==(null==i||null===(t=i.actionTabs)||void 0===t||null===(t=t.params)||void 0===t?void 0:t.title)){var n={page:1,limit:10,type:"group"};K(n),Q(G()(G()({},n),{},{search:encodeURI(S)}))}else if("图文作业"==(null==i||null===(e=i.actionTabs)||void 0===e||null===(e=e.params)||void 0===e?void 0:e.title)){var r={page:1,limit:10,type:"normal"};K(r),Q(G()(G()({},r),{},{search:encodeURI(S)}))}else K(q),Q(G()(G()({},q),{},{search:encodeURI(S)}))}),[i.actionTabs.key]);var Q=function(){var t=a()(r()().mark((function t(e){var n;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,o({type:"shixunsDetail/searchUserCourses",payload:e});case 2:401===(n=t.sent).status?(o({type:"shixunsDetail/setActionTabs",payload:{}}),B(!1)):(g((null==n?void 0:n.courses_count)||0),w((null==n?void 0:n.course_list)||[]));case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),J=function(){var t=a()(r()().mark((function t(){var e,n,o,a,l,u,c,h,d,f;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(A){t.next=3;break}return N(!0),t.abrupt("return");case 3:return d=null===(e=i.actionTabs.params)||void 0===e?void 0:e.id,B(!1),t.next=7,(0,Z.Tr)({id:"测验"==(null==i||null===(n=i.actionTabs)||void 0===n||null===(n=n.params)||void 0===n?void 0:n.title)?null==i||null===(o=i.actionTabs)||void 0===o||null===(o=o.params)||void 0===o?void 0:o.examinationid:null==s?void 0:s.pathId,course_id:"测验"==(null==i||null===(a=i.actionTabs)||void 0===a||null===(a=a.params)||void 0===a?void 0:a.title)?[A]:A,type:"分组作业"==(null==i||null===(l=i.actionTabs)||void 0===l||null===(l=l.params)||void 0===l?void 0:l.title)?"group":"图文作业"==(null==i||null===(u=i.actionTabs)||void 0===u||null===(u=u.params)||void 0===u?void 0:u.title)?"normal":"测验"==(null==i||null===(c=i.actionTabs)||void 0===c||null===(c=c.params)||void 0===c?void 0:c.title)?"examination_bank":"编程作业"==(null==i||null===(h=i.actionTabs)||void 0===h||null===(h=h.params)||void 0===h?void 0:h.title)?"hack":"subject",stage_item_id:d,sync_catelog:0});case 7:if(0!==(null==(f=t.sent)?void 0:f.student_count)){t.next=13;break}return t.next=11,$(null==f?void 0:f.no_use_list);case 11:t.next=14;break;case 13:V(f);case 14:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),$=function(){var t=a()(r()().mark((function t(e){var n,o,a,l,u,c,h,d,f,p,g,m,v,y,w;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null===(n=i.actionTabs.params)||void 0===n?void 0:n.id,z(!0),null===(o=i.actionTabs.params)||void 0===o||!o.is_jupyter){t.next=9;break}return c=null===(u=i.actionTabs.params)||void 0===u?void 0:u.identifier,t.next=6,(0,it.ZP)("/api/shixuns/".concat(c,"/send_to_course.json"),{method:"Post",body:{courses:[{course_id:A,identifier:c,type:"normal",is_copy:e,is_use:1}]}});case 6:l=t.sent,t.next=18;break;case 9:if("测验"!=(null==i||null===(h=i.actionTabs)||void 0===h||null===(h=h.params)||void 0===h?void 0:h.title)){t.next=15;break}return t.next=12,(0,lt.p4)({id:null==i||null===(d=i.actionTabs)||void 0===d||null===(d=d.params)||void 0===d?void 0:d.examinationid,course_id:[A],shixuns_info:e?null==e?void 0:e.map((function(t){return t.shixun_id=t.id,t})):[]});case 12:l=t.sent,t.next=18;break;case 15:return t.next=17,(0,lt.Q)({id:null==s?void 0:s.pathId,course_id:A,stage_shixuns:e,sync_catelog:0,type:"实训"===(null===(f=i.actionTabs.params)||void 0===f?void 0:f.title)?"shixun":"分组作业"==(null==i||null===(p=i.actionTabs)||void 0===p||null===(p=p.params)||void 0===p?void 0:p.title)?"group":"图文作业"==(null==i||null===(g=i.actionTabs)||void 0===g||null===(g=g.params)||void 0===g?void 0:g.title)?"normal":"视频"==(null==i||null===(m=i.actionTabs)||void 0===m||null===(m=m.params)||void 0===m?void 0:m.title)?"video":"编程作业"==(null==i||null===(v=i.actionTabs)||void 0===v||null===(v=v.params)||void 0===v?void 0:v.title)?"hack":""});case 17:l=t.sent;case 18:tt(),"测验"==(null==i||null===(a=i.actionTabs)||void 0===a||null===(a=a.params)||void 0===a?void 0:a.title)?0===(null===(y=l)||void 0===y?void 0:y.status)&&U.Z.confirm({title:"提示",centered:!0,icon:null,okText:"立即前往",cancelText:"稍后再说",content:(0,at.jsx)("div",{style:{textAlign:"left"},children:"发送成功!是否前往对应的教学课堂?"}),onOk:function(){(0,F.xg)("".concat(l.data[0].first_category_url,"/").concat(l.data[0].exercise_id,"/detail?random=").concat(l.data[0].is_random,"&tabs=3"))}}):1===(null===(w=l)||void 0===w?void 0:w.status)&&U.Z.confirm({title:"提示",centered:!0,icon:null,okText:"立即前往",cancelText:"稍后再说",content:(0,at.jsx)("div",{style:{textAlign:"left"},children:"发送成功!是否前往对应的教学课堂?"}),onOk:function(){var t,e,n,r,o,a;if(null!==(t=i.actionTabs.params)&&void 0!==t&&t.is_jupyter)(0,F.xg)(null===(o=l)||void 0===o?void 0:o.first_category_url);else if("分组作业"==(null==i||null===(e=i.actionTabs)||void 0===e||null===(e=e.params)||void 0===e?void 0:e.title)||"图文作业"==(null==i||null===(n=i.actionTabs)||void 0===n||null===(n=n.params)||void 0===n?void 0:n.title))(0,F.xg)(null===(a=l)||void 0===a?void 0:a.url);else if("编程作业"==(null==i||null===(r=i.actionTabs)||void 0===r||null===(r=r.params)||void 0===r?void 0:r.title)){var s,u=null===(s=l)||void 0===s||null===(s=s.url.split("/"))||void 0===s?void 0:s[2];(0,F.xg)("/classrooms/".concat(u,"/program_homework"))}else{var c,h=null===(c=l)||void 0===c||null===(c=c.url.split("/"))||void 0===c?void 0:c[2];(0,F.xg)("/classrooms/".concat(h,"/shixun_homework"))}}});case 20:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),tt=function(){P(""),M(null),N(!1),o({type:"shixunsDetail/setActionTabs",payload:{}}),B(!1),z(!1)};return(0,at.jsxs)(at.Fragment,{children:[(0,at.jsx)(U.Z,{title:"发送".concat((null===(e=i.actionTabs.params)||void 0===e?void 0:e.title)||"实训"),open:"Stage-SendModal"===i.actionTabs.key,centered:!0,className:Js,onCancel:tt,onOk:J,children:(0,at.jsxs)("div",{className:$s,children:[(0,at.jsxs)("div",{className:tl,children:["选择的","".concat((null===(n=i.actionTabs.params)||void 0===n?void 0:n.title)||"实训"),"将会发送到指定课堂"]}),(0,at.jsx)("div",{className:"mb10",children:(0,at.jsx)(rt.Z.Search,{className:ol,placeholder:"输入课堂名称的关键字进行搜索",allowClear:!0,value:S,onChange:function(t){return P(t.target.value)},suffix:(0,at.jsx)("i",{className:"iconfont icon-sousuo9 font14 ".concat(al),onClick:function(){P(S);var t=G()(G()({},q),{page:1,limit:10,search:encodeURI(S)});K(t),Q(t)}}),onSearch:function(t){P(t);var e=G()(G()({},q),{page:1,limit:10,search:encodeURI(t)});K(e),Q(e)}})}),(0,at.jsx)("div",{className:el,children:(0,at.jsx)(ye.ZP.Group,{value:A,onChange:function(t){M(t.target.value),N(!1)},children:y.map((function(t,e){return(0,at.jsx)(ye.ZP,{className:nl,value:t.course_id,children:(0,at.jsx)("span",{title:t.name,children:t.name})},e)}))})}),T&&(0,at.jsx)("div",{className:il,children:"请选择你要发送的课堂"}),p>10&&(0,at.jsx)("div",{className:rl,children:(0,at.jsx)(nt.Z,{size:"small",className:"mb20",showQuickJumper:!0,showSizeChanger:!1,defaultCurrent:1,current:null==q?void 0:q.page,pageSize:10,total:p,onChange:function(t){var e=G()(G()({},q),{page:t,limit:10,search:encodeURI(S)});K(e),Q(e)}})})]})}),(0,at.jsx)(dl,{resdata:W,type:"shixun",okloading:R,oktext:"一键复制并发送",onok:function(t){var e;$(null!==(e=i.actionTabs.params)&&void 0!==e&&e.is_jupyter?1:t)}})]})}))),gl={bg:"bg___F_x5V",title:"title___QEshf",fieldWrap:"fieldWrap___zSBF2",mdWrap:"mdWrap___V2EBb",footer_style:"footer_style___lwvvM",submit_button:"submit_button___gNsfc",close_button:"close_button___K6_8I"},ml=n(12893),vl={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},yl=function(t,e){return h.createElement(Wa.Z,(0,Tt.Z)({},t,{ref:e,icon:vl}))};var wl=h.forwardRef(yl),bl={},xl=($.Z.Group,(0,d.connect)((function(t){var e=t.classroomList,n=t.loading,i=t.globalSetting,r=t.user;return{classroomList:e,globalSetting:i,loading:n.effects,user:r}}))((function(t){t.classroomList,t.loading,t.user,t.exercise_id,t.homework_common_id;var e,n,i,o,s,u,c,f,p=t.setitem,g=t.item,m=(t.type,t.rz),v=(t.dispatch,(0,h.useState)([])),y=l()(v,2),w=(y[0],y[1],(0,h.useState)({zydatas:[],jbdatas:[],kcdatas:[],zsdatas:[],page:1,per_page:20})),b=l()(w,2),x=b[0],S=b[1],P=((0,d.useParams)(),(0,h.useState)(!1)),k=l()(P,2),C=(k[0],k[1],(0,h.useState)(!1)),A=l()(C,2),M=(A[0],A[1],X.Z.useForm()),E=l()(M,1)[0];function L(){return(L=a()(r()().mark((function t(){return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return console.log("----",g),t.next=3,T(null==g?void 0:g.ec_major_school_id);case 3:return t.next=5,j(null==g?void 0:g.ec_year_id);case 5:return t.next=7,B(null==g?void 0:g.ec_course_id);case 7:E.setFieldsValue({ec_course_id:null==g?void 0:g.ec_course_id,ec_major_school_id:null==g?void 0:g.ec_major_school_id,ec_point_ids:null==g?void 0:g.ec_point_ids,ec_year_id:null==g?void 0:g.ec_year_id});case 8:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function T(t){return N.apply(this,arguments)}function N(){return N=a()(r()().mark((function t(e){var n;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,it.ZP)("/api/ec_major_schools/".concat(e,"/ec_years/get_year_list.json"),{method:"get"});case 2:n=t.sent,x.jbdatas=null==n?void 0:n.data,S(G()({},x)),E.setFieldsValue({ec_year_id:"",ec_course_id:"",ec_point_ids:[]});case 6:case"end":return t.stop()}}),t)}))),N.apply(this,arguments)}function j(t){return I.apply(this,arguments)}function I(){return I=a()(r()().mark((function t(e){var n;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,it.ZP)("/api/ec_years/".concat(e,"/ec_courses/get_courses.json"),{method:"get"});case 2:n=t.sent,x.kcdatas=null==n?void 0:n.data,S(G()({},x)),E.setFieldsValue({ec_course_id:"",ec_point_ids:[]});case 6:case"end":return t.stop()}}),t)}))),I.apply(this,arguments)}(0,h.useEffect)((function(){m&&(x.zydatas=m,S(G()({},x)),null!=g&&g.ec_course_id&&function(){L.apply(this,arguments)}())}),[g,m]);var B=function(){var t=a()(r()().mark((function t(e){var n;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,it.ZP)("/api/ec_courses/".concat(e,"/ec_points.json"),{method:"get",params:{ec_course_id:e}});case 2:n=t.sent,x.zsdatas=null==n?void 0:n.data,S(G()({},x));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();return(0,at.jsx)("div",{className:bl.from,children:(0,at.jsxs)(X.Z,{form:E,layout:"inline",onValuesChange:function(t){console.log("----",t),t.ec_major_school_id&&(x.jbdatas=[],x.kcdatas=[],x.zsdatas=[],S(G()({},x)),T(t.ec_major_school_id)),t.ec_year_id&&(x.kcdatas=[],x.zsdatas=[],S(G()({},x)),j(t.ec_year_id)),t.ec_course_id&&(x.zsdatas=[],S(G()({},x)),B(t.ec_course_id))},onFinish:function(){var t=a()(r()().mark((function t(e){return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:p(e);case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),children:[(0,at.jsx)(X.Z.Item,{label:"认证专业",name:"ec_major_school_id",children:(0,at.jsx)(Re.default,{style:{width:150},disabled:(null===(e=x.zydatas)||void 0===e?void 0:e.length)<=0,placeholder:"请选择认证专业",children:null==x||null===(n=x.zydatas)||void 0===n?void 0:n.map((function(t,e){return(0,at.jsx)(Re.default.Option,{value:null==t?void 0:t.ec_major_school_id,children:null==t?void 0:t.name},e)}))})}),(0,at.jsx)(X.Z.Item,{label:"认证届别",name:"ec_year_id",children:(0,at.jsx)(Re.default,{style:{width:150},disabled:(null===(i=x.jbdatas)||void 0===i?void 0:i.length)<=0,placeholder:"请选择认证届别",children:null==x||null===(o=x.jbdatas)||void 0===o?void 0:o.map((function(t,e){return(0,at.jsx)(Re.default.Option,{value:null==t?void 0:t.ec_year_id,children:null==t?void 0:t.year},e)}))})}),(0,at.jsx)(X.Z.Item,{label:"课程",name:"ec_course_id",children:(0,at.jsx)(Re.default,{style:{width:150},disabled:(null===(s=x.kcdatas)||void 0===s?void 0:s.length)<=0,placeholder:"请选择课程",children:null==x||null===(u=x.kcdatas)||void 0===u?void 0:u.map((function(t,e){return(0,at.jsx)(Re.default.Option,{value:null==t?void 0:t.id,children:null==t?void 0:t.name},e)}))})}),(0,at.jsx)(X.Z.Item,{label:"知识点",name:"ec_point_ids",children:(0,at.jsx)(Re.default,{onChange:function(){E.submit()},style:{width:150},mode:"multiple",disabled:(null===(c=x.zsdatas)||void 0===c?void 0:c.length)<=0,placeholder:"请选择知识点",children:null==x||null===(f=x.zsdatas)||void 0===f?void 0:f.map((function(t,e){return(0,at.jsx)(Re.default.Option,{value:null==t?void 0:t.id,children:null==t?void 0:t.name},e)}))})})]})})}))),Sl=($.Z.Group,(0,d.connect)((function(t){var e=t.classroomList,n=t.loading,i=t.globalSetting,r=t.user;return{classroomList:e,globalSetting:i,loading:n.effects,user:r}}))((function(t){t.classroomList,t.loading;var e,n,i=t.user,o=t.exercise_id,s=void 0===o?null:o,u=t.homework_common_id,c=void 0===u?null:u,d=t.setitem,f=(t.type,t.dispatch,(0,h.useState)([{}])),p=l()(f,2),g=p[0],m=p[1],v=(0,h.useState)([]),y=l()(v,2),w=y[0],b=y[1];function x(){return S.apply(this,arguments)}function S(){return S=a()(r()().mark((function t(){var e,n,i,o,a;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,it.ZP)("/api/ec_courses/".concat(0,"/ec_points/get_work_points.json"),{method:"get",params:{exercise_id:s,homework_common_id:c}});case 2:(null==(n=t.sent)||null===(e=n.data)||void 0===e?void 0:e.length)>0&&(a=[],null==n||null===(i=n.data)||void 0===i||i.map((function(t){var e;null==t||null===(e=t.ec_point_ids)||void 0===e||e.map((function(t){a.push(t)}))})),d(G()(G()({},null==n||null===(o=n.data)||void 0===o?void 0:o[0]),{},{ec_point_ids:a})),m(null==n?void 0:n.data));case 4:case"end":return t.stop()}}),t)}))),S.apply(this,arguments)}function P(){return(P=a()(r()().mark((function t(){var e,n;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,it.ZP)("/api/schools/".concat(null==i||null===(e=i.userInfo)||void 0===e||null===(e=e.course)||void 0===e?void 0:e.course_school_id,"/ec_majors/get_major_list.json"),{method:"get"});case 2:n=t.sent,b(null==n?void 0:n.data),(c||s)&&x();case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return(0,h.useEffect)((function(){var t;null!=i&&null!==(t=i.userInfo)&&void 0!==t&&null!==(t=t.course)&&void 0!==t&&t.course_school_id&&function(){P.apply(this,arguments)}()}),[null==i||null===(e=i.userInfo)||void 0===e||null===(e=e.course)||void 0===e?void 0:e.course_school_id]),(0,at.jsxs)("div",{style:{display:null!==(n=i.userInfo.course)&&void 0!==n&&n.is_openengineering?"":"none"},children:[(0,at.jsx)("p",{style:{fontSize:"16px",fontWeight:400},children:"工程认证考核知识点"}),null==g?void 0:g.map((function(t,e){return(0,at.jsxs)("div",{style:{display:"flex",alignItems:"center",marginBottom:"10px"},children:[(0,at.jsx)(xl,{rz:w,item:t,type:e,setitem:function(t){g.splice(e,1,t),m(Y()(g));var n=[];null==g||g.map((function(t){var e;null==t||null===(e=t.ec_point_ids)||void 0===e||e.map((function(t){n.push(t)}))})),d(G()(G()({},t),{},{ec_point_ids:n}))}}),0!=e&&(0,at.jsx)(ml.Z,{onClick:function(){g.splice(e,1),m(Y()(g))},style:{marginLeft:10,fontSize:"20px"}}),(0,at.jsx)(wl,{onClick:function(){g.push({}),m(Y()(g))},style:{marginLeft:10,fontSize:"20px"}})]},e)}))]})}))),Pl=(0,d.connect)((function(t){var e=t.shixunHomeworks,n=t.newCourse,i=t.loading,r=t.globalSetting;return{classroomList:t.classroomList,shixunHomeworks:e,newCourse:n,globalSetting:r,loading:i.effects}}))((function(t){var e,n,i=t.shixunHomeworks,o=(t.newCourse,t.globalSetting),s=(t.loading,t.dispatch),u=t.classroomList,c=((0,d.useParams)(),X.Z.useForm()),f=l()(c,1)[0],p=(0,h.useState)({}),g=l()(p,2),m=g[0],v=g[1],y=((0,h.useRef)(),i.commonHomeWorkAddDefaultData,(0,h.useState)({})),w=l()(y,2),b=w[0],x=w[1];(0,h.useEffect)((function(){f.resetFields()}),[u.actionTabs.key]);function S(t){return P.apply(this,arguments)}function P(){return(P=a()(r()().mark((function t(e){return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!=b&&b.ec_point_ids){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,(0,it.ZP)("/api/ec_courses/".concat(null==b?void 0:b.ec_course_id,"/ec_points/set_work_points.json"),{method:"post",body:G()({homework_common_id:e},b)});case 4:t.sent;case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return(0,at.jsxs)(q.Z,{placement:"bottom",height:"100%",closable:!1,open:"课程新建分组作业"===u.actionTabs.key,className:gl.drawer,children:[(0,at.jsxs)("section",{className:gl.bg,children:[(0,at.jsx)("aside",{className:gl.title,children:"新建分组作业"}),(0,at.jsxs)(X.Z,{form:f,scrollToFirstError:!0,layout:"vertical",onValuesChange:function(){v(G()({},f.getFieldsValue()))},children:[(0,at.jsx)("div",{className:gl.fieldWrap,children:(0,at.jsx)(X.Z.Item,{name:"name",label:"标题",rules:[{required:!0,message:"请输入标题"}],children:(0,at.jsx)(rt.Z,{maxLength:60,suffix:"".concat((null===(e=m.name)||void 0===e?void 0:e.length)||0,"/60"),placeholder:"例如从Python程序设计-入门精通"})})}),(0,at.jsxs)("div",{className:gl.mdWrap,children:[(0,at.jsx)(X.Z.Item,{name:"description",style:{marginTop:"-10px"},label:"内容",rules:[{required:!0,message:"请输入作业的简介"},{max:5e3,message:"作业简介最大限制5000个字符"}],children:(0,at.jsx)(Aa,{watch:!0,defaultValue:m.intro})}),(0,at.jsx)("div",{children:(0,at.jsx)(X.Z.Item,{name:"attachment_ids",style:{marginTop:"-15px"},children:(0,at.jsx)(cs,{})})}),(0,at.jsxs)(Q.Z,{gutter:[20,20],style:{marginTop:20},children:[(0,at.jsx)(J.Z,{flex:"230px",children:(0,at.jsx)(X.Z.Item,{name:"min_num",label:"分组设置",rules:[{required:!0,message:"请填写每组最小人数"}],children:(0,at.jsx)(Uo.Z,{style:{width:200,height:40},min:1,placeholder:"请填写每组最小人数"})})}),(0,at.jsx)(J.Z,{flex:"230px",children:(0,at.jsx)(X.Z.Item,{name:"max_num",label:(0,at.jsx)("div",{children:" "}),rules:[{validator:function(t,e){return e?Promise.resolve():Promise.reject(new Error("请填写每组最大人数"))}}],children:(0,at.jsx)(Uo.Z,{style:{width:200,height:40},max:100,placeholder:"请填写每组最大人数"})})}),(0,at.jsx)(J.Z,{children:(0,at.jsx)("div",{className:"mt40",style:{color:"#536367",marginLeft:"-20px"},children:"(学生提交作品时需要关联同组成员,组内成员作品共享)"})})]}),!(null!=o&&null!==(n=o.setting)&&void 0!==n&&n.is_local)&&(0,at.jsx)(Q.Z,{style:{marginTop:"-10px"},children:(0,at.jsxs)(J.Z,{children:[(0,at.jsx)(X.Z.Item,{name:"base_on_project",valuePropName:"checked",style:{marginBottom:5},children:(0,at.jsx)($.Z,{value:!0,style:{color:"#5F6368"},children:"基于项目实施"})}),(0,at.jsx)("span",{className:"c-light-black",style:{color:"#999999"},children:"(选中,则必须在本平台创建项目,项目管理员可以提交作品;不选中,无需在平台创建项目,任意小组成员均可以提交作品)"})]})})]}),(0,at.jsxs)("div",{className:gl.mdWrap,children:[(0,at.jsx)(X.Z.Item,{name:"reference_answer",label:"参考答案",style:{marginTop:10},children:(0,at.jsx)(Aa,{watch:!0,defaultValue:m.notice})}),(0,at.jsx)("div",{children:(0,at.jsx)(X.Z.Item,{name:"reference_attachment_ids",style:{marginTop:"-15px"},children:(0,at.jsx)(cs,{})})})]})]}),(0,at.jsx)("div",{className:gl.mdWrap,children:(0,at.jsx)(Sl,{setitem:function(t){return x(G()({},t))}})})]}),(0,at.jsxs)("div",{className:gl.footer_style,children:[(0,at.jsx)("div",{className:gl.close_button,onClick:function(){s({type:"classroomList/setActionTabs",payload:{key:""}})},children:"取消"}),(0,at.jsx)("div",{onClick:function(){f.validateFields().then(a()(r()().mark((function t(){var e,n,i,o;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(m.min_num>m.max_num)){t.next=3;break}return H.ZP.info("最大人数不能小于最小人数"),t.abrupt("return");case 3:return(e=G()({},m)).attachment_ids&&(e.attachment_ids=null==e||null===(n=e.attachment_ids)||void 0===n?void 0:n.map((function(t){return t.response.id}))),e.reference_attachment_ids&&(e.reference_attachment_ids=null==e||null===(i=e.reference_attachment_ids)||void 0===i?void 0:i.map((function(t){return t.response.id}))),e.base_on_project||(e.base_on_project=!1),t.next=9,(0,lt.DQ)(G()(G()({id:u.actionTabs.id,subject_id:u.actionTabs.subject_id},e),{},{homework_type:3}));case 9:0===(o=t.sent).status&&(S(o.homework_id),(0,F.L9)(["教学课堂","分组作业","新建分组作业"]),H.ZP.success("新建成功"),s({type:"classroomList/setActionTabs",payload:{key:"closePathsTabs"}}));case 11:case"end":return t.stop()}}),t)}))))},className:gl.submit_button,children:"提交"})]})]},"bottom")})),kl={bg:"bg___oLxz5",title:"title___bfvam",fieldWrap:"fieldWrap___A5u2u",mdWrap:"mdWrap___zugL3",footer_style:"footer_style___unO7C",submit_button:"submit_button___t8Hvx",close_button:"close_button___oswUb"},Cl=(0,d.connect)((function(t){var e=t.shixunHomeworks,n=t.newCourse,i=t.loading,r=t.globalSetting,o=t.classroomList;return{shixunHomeworks:e,newCourse:n,globalSetting:r,loading:i.effects,classroomList:o}}))((function(t){var e,n,i=t.shixunHomeworks,o=(t.newCourse,t.globalSetting),s=(t.loading,t.dispatch),u=t.classroomList,c=(0,d.useParams)(),f=X.Z.useForm(),p=l()(f,1)[0],g=(0,h.useState)({}),m=l()(g,2),v=m[0],y=m[1],w=(0,h.useState)(!1),b=l()(w,2),x=b[0],S=b[1],P=(0,h.useState)({}),k=l()(P,2),C=k[0],A=k[1],M=(0,h.useState)({}),E=l()(M,2),L=E[0],T=E[1];(0,h.useRef)(),i.commonHomeWorkEditDefaultData;(0,h.useEffect)((function(){"课程编辑分组作业"==u.actionTabs.key&&N()}),[u.actionTabs.key]);var N=function(){var t=a()(r()().mark((function t(){var e,n;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,lt.FD)({id:u.actionTabs.id,type:u.actionTabs.type});case 2:(e=t.sent)&&(n=G()(G()({},e.subject_homework),{},{attachment_ids:us(e.subject_homework.attachments),reference_attachment_ids:us(e.subject_homework.ref_attachments)}),p.setFieldsValue(G()({},n)),y(G()({},n)),S(!0),T(new Date));case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();function j(t){return I.apply(this,arguments)}function I(){return(I=a()(r()().mark((function t(e){return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!=C&&C.ec_point_ids){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,(0,it.ZP)("/api/ec_courses/".concat(null==C?void 0:C.ec_course_id,"/ec_points/set_work_points.json"),{method:"post",body:G()({homework_common_id:e},C)});case 4:t.sent;case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return(0,at.jsxs)(q.Z,{placement:"bottom",height:"100%",closable:!1,open:"课程编辑分组作业"===u.actionTabs.key,className:kl.drawer,children:[(0,at.jsxs)("section",{className:kl.bg,children:[(0,at.jsx)("aside",{className:kl.title,children:"编辑分组作业"}),(0,at.jsxs)(X.Z,{form:p,scrollToFirstError:!0,layout:"vertical",onValuesChange:function(){y(G()({},p.getFieldsValue()))},children:[(0,at.jsx)("div",{className:kl.fieldWrap,children:(0,at.jsx)(X.Z.Item,{name:"name",label:"标题:",rules:[{required:!0,message:"请输入标题"}],children:(0,at.jsx)(rt.Z,{maxLength:60,suffix:"".concat((null===(e=v.name)||void 0===e?void 0:e.length)||0,"/60"),placeholder:"例如从Python程序设计-入门精通"})})}),(0,at.jsxs)("div",{className:kl.mdWrap,children:[(0,at.jsx)(X.Z.Item,{name:"description",label:"简介:",style:{marginTop:"-10px"},rules:[{required:!0,message:"请输入作业的简介"},{max:5e3,message:"作业简介最大限制5000个字符"}],children:(0,at.jsx)(Aa,{watch:!0,defaultValue:v.description})}),(0,at.jsx)("div",{children:(0,at.jsx)(X.Z.Item,{name:"attachment_ids",style:{marginTop:"-15px"},children:x&&(0,at.jsx)(cs,{},L)})}),(0,at.jsxs)(Q.Z,{gutter:[20,20],style:{marginTop:20},children:[(0,at.jsx)(J.Z,{flex:"230px",children:(0,at.jsx)(X.Z.Item,{name:"min_num",label:"分组设置",rules:[{required:!0,message:"请填写每组最小人数"}],children:(0,at.jsx)(Uo.Z,{style:{width:200,height:40},min:1,placeholder:"请填写每组最小人数"})})}),(0,at.jsx)(J.Z,{flex:"230px",children:(0,at.jsx)(X.Z.Item,{name:"max_num",label:(0,at.jsx)("div",{children:" "}),rules:[{validator:function(t,e){return e?Promise.resolve():Promise.reject(new Error("请填写每组最大人数"))}}],children:(0,at.jsx)(Uo.Z,{style:{width:200,height:40},max:100,placeholder:"请填写每组最大人数"})})}),(0,at.jsx)(J.Z,{children:(0,at.jsx)("div",{className:"mt35",style:{color:"#536367",marginLeft:"-20px"},children:"(学生提交作品时需要关联同组成员,组内成员作品共享)"})})]}),!(null!=o&&null!==(n=o.setting)&&void 0!==n&&n.is_local)&&(0,at.jsx)(Q.Z,{style:{marginTop:"-10px"},children:(0,at.jsxs)(J.Z,{children:[(0,at.jsx)(X.Z.Item,{name:"base_on_project",valuePropName:"checked",style:{marginBottom:5,marginTop:5},children:(0,at.jsx)($.Z,{value:!0,defaultChecked:!0,style:{color:"#5F6368"},children:"基于项目实施"})}),(0,at.jsx)("span",{className:"c-light-black",style:{color:"#999999",marginTop:"-10px"},children:"(选中,则必须在本平台创建项目,项目管理员可以提交作品;不选中,无需在平台创建项目,任意小组成员均可以提交作品)"})]})})]}),(0,at.jsxs)("div",{className:kl.mdWrap,children:[(0,at.jsx)(X.Z.Item,{name:"reference_answer",label:"参考答案:",style:{marginTop:10},children:(0,at.jsx)(Aa,{defaultValue:v.reference_answer,watch:!0})}),(0,at.jsx)("div",{children:(0,at.jsx)(X.Z.Item,{name:"reference_attachment_ids",style:{marginTop:"-15px"},children:x&&(0,at.jsx)(cs,{},L)})})]})]}),(0,at.jsx)("div",{className:kl.mdWrap,children:(0,at.jsx)(Sl,{setitem:function(t){return A(G()({},t))},homework_common_id:c.categoryId})})]}),(0,at.jsxs)("div",{className:kl.footer_style,children:[(0,at.jsx)("div",{className:kl.close_button,onClick:function(){s({type:"classroomList/setActionTabs",payload:{key:""}})},children:"取消"}),(0,at.jsx)("div",{onClick:function(){p.validateFields().then(a()(r()().mark((function t(){var e,n,i;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(v.min_num>v.max_num)){t.next=3;break}return H.ZP.info("最大人数不能小于最小人数"),t.abrupt("return");case 3:return(e=G()({},v)).attachment_ids&&(e.attachment_ids=null==e||null===(n=e.attachment_ids)||void 0===n?void 0:n.map((function(t){return t.response.id}))),e.reference_attachment_ids&&(e.reference_attachment_ids=null==e||null===(i=e.reference_attachment_ids)||void 0===i?void 0:i.map((function(t){return t.response.id}))),e.base_on_project||(e.base_on_project=!1),t.next=9,(0,lt.VO)(G()(G()(G()({},c),e),{},{base_on_project:e.base_on_project,homework_type:3,id:u.actionTabs.id}));case 9:0===t.sent.status&&(H.ZP.success("编辑成功"),j(c.categoryId),s({type:"classroomList/setActionTabs",payload:{key:"closePathsTabs"}}));case 11:case"end":return t.stop()}}),t)}))))},className:kl.submit_button,children:"提交"})]})]},"bottom")})),Al={bg:"bg___fOlTw",title:"title___G3D9y",fieldWrap:"fieldWrap___imjS7",mdWrap:"mdWrap___aKGYo",footer_style:"footer_style___BWH5p",submit_button:"submit_button___yxKUd",close_button:"close_button___nRK7d"},Ml=(0,d.connect)((function(t){var e=t.shixunHomeworks,n=t.newCourse,i=t.loading,r=t.globalSetting,o=t.classroomList;return{shixunHomeworks:e,newCourse:n,globalSetting:r,loading:i.effects,classroomList:o}}))((function(t){var e,n=t.shixunHomeworks,i=(t.newCourse,t.globalSetting,t.loading,t.dispatch),o=t.classroomList,s=((0,d.useParams)(),X.Z.useForm()),u=l()(s,1)[0],c=(0,h.useState)({}),f=l()(c,2),p=f[0],g=f[1],m=(0,h.useState)(),v=l()(m,2),y=(v[0],v[1],(0,h.useRef)(),n.commonHomeWorkAddDefaultData,(0,h.useState)({})),w=l()(y,2),b=w[0],x=w[1];(0,h.useEffect)((function(){u.resetFields()}),[o.actionTabs.key]);function S(t){return P.apply(this,arguments)}function P(){return(P=a()(r()().mark((function t(e){return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!=b&&b.ec_point_ids){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,(0,it.ZP)("/api/ec_courses/".concat(null==b?void 0:b.ec_course_id,"/ec_points/set_work_points.json"),{method:"post",body:G()({homework_common_id:e},b)});case 4:t.sent;case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return(0,at.jsxs)(q.Z,{placement:"bottom",height:"100%",closable:!1,open:"课程新建图文作业"===o.actionTabs.key,className:Al.drawer,children:[(0,at.jsxs)("section",{className:Al.bg,children:[(0,at.jsx)("aside",{className:Al.title,children:"新建图文作业"}),(0,at.jsxs)(X.Z,{form:u,scrollToFirstError:!0,layout:"vertical",onValuesChange:function(){console.log("onchange: ",u.getFieldsValue()),g(G()({},u.getFieldsValue()))},children:[(0,at.jsx)("div",{className:Al.fieldWrap,children:(0,at.jsx)(X.Z.Item,{name:"name",label:"标题:",rules:[{required:!0,message:"请输入标题"}],children:(0,at.jsx)(rt.Z,{maxLength:60,suffix:"".concat((null===(e=p.name)||void 0===e?void 0:e.length)||0,"/60"),placeholder:"例如从Python程序设计-入门精通"})})}),(0,at.jsxs)("div",{className:Al.mdWrap,children:[(0,at.jsx)(X.Z.Item,{name:"description",label:"简介:",style:{marginTop:"-10px"},rules:[{required:!0,message:"请输入作业的简介"},{max:5e3,message:"作业简介最大限制5000个字符"}],children:(0,at.jsx)(Aa,{watch:!0,defaultValue:p.intro})}),(0,at.jsx)("div",{children:(0,at.jsx)(X.Z.Item,{name:"attachment_ids",style:{marginTop:"-15px"},children:(0,at.jsx)(cs,{})})})]}),(0,at.jsxs)("div",{className:Al.mdWrap,children:[(0,at.jsx)(X.Z.Item,{name:"reference_answer",style:{marginTop:"-10px"},label:"参考答案:",children:(0,at.jsx)(Aa,{watch:!0,defaultValue:p.notice})}),(0,at.jsx)("div",{children:(0,at.jsx)(X.Z.Item,{name:"reference_attachment_ids",style:{marginTop:"-15px"},children:(0,at.jsx)(cs,{})})})]})]}),(0,at.jsx)("div",{className:Al.mdWrap,children:(0,at.jsx)(Sl,{setitem:function(t){return x(G()({},t))}})})]}),(0,at.jsxs)("div",{className:Al.footer_style,children:[(0,at.jsx)("div",{className:Al.close_button,onClick:function(){i({type:"classroomList/setActionTabs",payload:{key:""}})},children:"取消"}),(0,at.jsx)("div",{onClick:function(){u.validateFields().then(a()(r()().mark((function t(){var e,n,a,s;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(e=G()({},p)).attachment_ids&&(e.attachment_ids=null==e||null===(n=e.attachment_ids)||void 0===n?void 0:n.map((function(t){return t.response.id}))),e.reference_attachment_ids&&(e.reference_attachment_ids=null==e||null===(a=e.reference_attachment_ids)||void 0===a?void 0:a.map((function(t){return t.response.id}))),t.next=5,(0,lt.DQ)(G()(G()({id:o.actionTabs.id,subject_id:o.actionTabs.subject_id},e),{},{homework_type:1}));case 5:0===(null==(s=t.sent)?void 0:s.status)&&(S(s.homework_id),(0,F.L9)(["教学课堂","图文作业","新建图文作业"]),H.ZP.success("新建成功"),i({type:"classroomList/setActionTabs",payload:{key:"closePathsTabs"}}));case 7:case"end":return t.stop()}}),t)}))))},className:Al.submit_button,children:"提交"})]})]},"bottom")})),El={bg:"bg___Sx8dX",title:"title___GKPKJ",fieldWrap:"fieldWrap___fIL9U",mdWrap:"mdWrap___iwCM_",footer_style:"footer_style___KYp6i",submit_button:"submit_button___Rnntu",close_button:"close_button___Drc5k"},Ll=(0,d.connect)((function(t){var e=t.shixunHomeworks,n=t.newCourse,i=t.loading,r=t.globalSetting,o=t.classroomList;return{shixunHomeworks:e,newCourse:n,globalSetting:r,loading:i.effects,classroomList:o}}))((function(t){var e,n=t.shixunHomeworks,i=(t.newCourse,t.globalSetting,t.loading,t.dispatch),o=t.classroomList,s=(0,d.useParams)(),u=X.Z.useForm(),c=l()(u,1)[0],f=(0,h.useState)({}),p=l()(f,2),g=p[0],m=p[1],v=(0,h.useState)(!1),y=l()(v,2),w=y[0],b=y[1],x=(0,h.useState)({}),S=l()(x,2),P=S[0],k=S[1],C=(0,h.useState)({}),A=l()(C,2),M=A[0],E=A[1];(0,h.useRef)(),n.commonHomeWorkEditDefaultData;(0,h.useEffect)((function(){"课程编辑图文作业"==o.actionTabs.key&&L()}),[o.actionTabs.key]);var L=function(){var t=a()(r()().mark((function t(){var e,n;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,lt.FD)({id:o.actionTabs.id,type:o.actionTabs.type});case 2:(e=t.sent)&&(n={name:e.subject_homework.name,description:e.subject_homework.description,reference_answer:e.subject_homework.reference_answer,attachment_ids:us(e.subject_homework.attachments),reference_attachment_ids:us(e.subject_homework.ref_attachments)},console.log(n),c.setFieldsValue(G()({},n)),m(G()({},n)),b(!0),E(new Date));case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();function T(t){return N.apply(this,arguments)}function N(){return(N=a()(r()().mark((function t(e){return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!=P&&P.ec_point_ids){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,(0,it.ZP)("/api/ec_courses/".concat(null==P?void 0:P.ec_course_id,"/ec_points/set_work_points.json"),{method:"post",body:G()({homework_common_id:e},P)});case 4:t.sent;case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return(0,at.jsxs)(q.Z,{placement:"bottom",height:"100%",closable:!1,open:"课程编辑图文作业"===o.actionTabs.key,className:El.drawer,children:[(0,at.jsxs)("section",{className:El.bg,children:[(0,at.jsx)("aside",{className:El.title,children:"编辑图文作业"}),(0,at.jsxs)(X.Z,{form:c,scrollToFirstError:!0,layout:"vertical",onValuesChange:function(){m(G()({},c.getFieldsValue()))},children:[(0,at.jsx)("div",{className:El.fieldWrap,children:(0,at.jsx)(X.Z.Item,{name:"name",label:"标题:",rules:[{required:!0,message:"请输入标题"}],children:(0,at.jsx)(rt.Z,{maxLength:60,suffix:"".concat((null===(e=g.name)||void 0===e?void 0:e.length)||0,"/60"),placeholder:"例如从Python程序设计-入门精通"})})}),(0,at.jsxs)("div",{className:El.mdWrap,children:[(0,at.jsx)(X.Z.Item,{name:"description",label:"简介:",style:{marginTop:"-10px"},rules:[{required:!0,message:"请输入作业的简介"},{max:5e3,message:"作业简介最大限制5000个字符"}],children:(0,at.jsx)(Aa,{watch:!0,defaultValue:g.description})}),(0,at.jsx)("div",{children:(0,at.jsx)(X.Z.Item,{name:"attachment_ids",style:{marginTop:"-15px"},children:w&&(0,at.jsx)(cs,{},M)})})]}),(0,at.jsxs)("div",{className:El.mdWrap,children:[(0,at.jsx)(X.Z.Item,{name:"reference_answer",label:"参考答案:",style:{marginTop:"-10px"},children:(0,at.jsx)(Aa,{defaultValue:g.reference_answer,watch:!0})}),(0,at.jsx)("div",{children:(0,at.jsx)(X.Z.Item,{name:"reference_attachment_ids",style:{marginTop:"-15px"},children:w&&(0,at.jsx)(cs,{},M)})})]})]}),(0,at.jsx)("div",{className:El.mdWrap,children:(0,at.jsx)(Sl,{setitem:function(t){return k(G()({},t))},homework_common_id:s.categoryId})})]}),(0,at.jsxs)("div",{className:El.footer_style,children:[(0,at.jsx)("div",{className:El.close_button,onClick:function(){i({type:"classroomList/setActionTabs",payload:{key:""}})},children:"取消"}),(0,at.jsx)("div",{onClick:function(){c.validateFields().then(a()(r()().mark((function t(){var e,n,a;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(e=G()({},g)).attachment_ids&&(e.attachment_ids=null==e||null===(n=e.attachment_ids)||void 0===n?void 0:n.map((function(t){var e;return null===(e=t.response)||void 0===e?void 0:e.id}))),e.reference_attachment_ids&&(e.reference_attachment_ids=null==e||null===(a=e.reference_attachment_ids)||void 0===a?void 0:a.map((function(t){var e;return null===(e=t.response)||void 0===e?void 0:e.id}))),t.next=5,(0,lt.VO)(G()(G()(G()({},s),e),{},{base_on_project:!0,homework_type:1,id:o.actionTabs.id}));case 5:0===t.sent.status&&(H.ZP.success("编辑成功"),T(s.categoryId),i({type:"classroomList/setActionTabs",payload:{key:"closePathsTabs"}}));case 7:case"end":return t.stop()}}),t)}))))},className:El.submit_button,children:"提交"})]})]},"bottom")})),Tl=n(26724),Nl=n.n(Tl),jl=n(9221),Il=["onResize","width"],Bl={header:{cell:function(t){var e=t.onResize,n=t.width,i=c()(t,Il);return n?(0,at.jsx)(jl.Resizable,{width:n,height:0,handle:(0,at.jsx)("span",{className:"react-resizable-handle",onClick:function(t){t.stopPropagation()}}),onResize:e,draggableOpts:{enableUserSelectHack:!1},children:(0,at.jsx)("th",G()({},i))}):(0,at.jsx)("th",G()({},i))}}},Ol=["pagination","resColumns","dataSource","onRow"],Dl=function(t){var e=t.pagination,n=t.resColumns,i=t.dataSource,r=t.onRow,o=c()(t,Ol),a=(0,h.useState)(!1),s=l()(a,2),u=s[0],d=(s[1],(0,h.useState)([{}])),f=l()(d,2),p=f[0],g=f[1],m=(0,h.useRef)(null);(0,h.useEffect)((function(){var t=n;t=t.map((function(t,e){return G()(G()({},t),{},{onHeaderCell:function(t){return{width:t.width,onResize:v(e)}}})})),g(t)}),[]),(0,h.useEffect)((function(){m.current=p}),[p]);var v=function(t){return function(e,n){var i=n.size,r=Y()(m.current);r[t]=G()(G()({},r[t]),{},{width:i.width}),g(r)}};return(0,at.jsx)("div",{children:(0,at.jsx)(Fe.Z,G()(G()({bordered:!0,components:Bl,columns:p,dataSource:i,pagination:e,loading:u,onRow:r},o),{},{rowKey:function(t){return t.key||t.id}}))})},Rl="hideHeadCheckbox___Hq5gw",Fl="tabSearch___NaKI4",zl="warpModal___HLUgh",Gl="modalColumn___F7R5w",Ul="modalRow___L6ghw",Hl="sup___VGKXV",_l="brief___LOzpE",Zl="contentTitle___xkdcN",Wl="content___Vtri0",Vl="antdTable___s8T2N",Yl="tableCell___kN9Fw",Xl="antdModal___WVBk3",ql="orangeColor___ryB2u",Kl=["isImportMultipleCourse"],Ql=function(t){var e=t.studentNames,n=t.total;return n>3?(0,at.jsxs)(at.Fragment,{children:["课堂内有",(0,at.jsx)("span",{className:ql,children:null==e?void 0:e.join("、")}),"等",(0,at.jsx)("span",{className:ql,children:n}),"名学生"]}):(0,at.jsxs)(at.Fragment,{children:["课堂内有",(0,at.jsx)("span",{className:ql,children:null==e?void 0:e.join("、")}),["","一","两","三"][n],"名学生"]})},Jl=function(t){var e=t.onCancel,n=t.onOk,i=t.visible,o=(t.inPaper,t.renderData),s=(t.type,t.isMultipleCourse),u=void 0!==s&&s,c=X.Z.useForm(),d=l()(c,1)[0],f=(0,h.useState)(1),p=l()(f,2),g=p[0],m=p[1],v=(0,h.useState)(!1),y=l()(v,2),w=y[0],b=y[1],x=(0,h.useMemo)((function(){return 1===(null==o?void 0:o.total_num)&&1===(null==o?void 0:o.can_copy_num)}),[o]),S=(0,h.useMemo)((function(){var t;return null==o||null===(t=o.course_data_list)||void 0===t?void 0:t.filter((function(t){return t.is_show}))}),[o]);return(0,at.jsx)(at.Fragment,{children:x?(0,at.jsxs)(U.Z,{centered:!0,closable:!0,open:i,destroyOnClose:!0,title:"提示",className:Xl,width:682,confirmLoading:w,onCancel:e,onOk:a()(r()().mark((function t(){var e,i,a;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return b(!0),e=g,u&&(a=G()({},d.getFieldsValue()),e=null==o||null===(i=o.course_data_list)||void 0===i?void 0:i.map((function(t){return void 0!==a[t.id]?G()(G()({},t),{},{is_copy:a[t.id]}):t}))),t.next=5,n(e);case 5:b(!1);case 6:case"end":return t.stop()}}),t)}))),children:[(0,at.jsx)("div",{className:Wl,style:{marginBottom:20},children:u?"检测到以下课堂已在教学课堂中使用,请问是否复制成新的实训发送至教学课堂中?":(0,at.jsxs)(at.Fragment,{children:[(0,at.jsx)(Ql,{studentNames:null==o?void 0:o.student_names,total:null==o?void 0:o.student_count}),"学习过该实践项目。该项目支持复制,请选择是否将该项目复制为新项目发送至课堂中?"]})}),u?(0,at.jsx)(X.Z,{form:d,preserve:!1,children:null==S?void 0:S.map((function(t){return(0,at.jsxs)(h.Fragment,{children:[(0,at.jsx)("h3",{className:"ml15 mb5",children:t.name}),(0,at.jsx)(X.Z.Item,{name:t.id,initialValue:1,children:(0,at.jsxs)(ye.ZP.Group,{className:Wl,children:[(0,at.jsx)(ye.ZP,{value:1,style:{color:"#464f66"},children:"复制实训"}),(0,at.jsx)(ye.ZP,{value:0,style:{color:"#464f66"},children:"不复制实训"})]})})]},t.id)}))}):(0,at.jsxs)(ye.ZP.Group,{value:g,onChange:function(t){return m(t.target.value)},className:Wl,style:{marginBottom:30},children:[(0,at.jsx)(ye.ZP,{value:1,style:{color:"#464f66"},children:"复制"}),(0,at.jsx)(ye.ZP,{value:0,style:{color:"#464f66"},children:"不复制"})]}),(0,at.jsxs)("div",{children:[(0,at.jsx)("div",{className:Wl,style:{marginBottom:10},children:"* 说明:"}),(0,at.jsx)("div",{className:Wl,style:{marginBottom:20},children:"1、复制系统将复制并创建一个新的项目发送到课堂中使用不会复制学生的挑战记录新的项目支持进行编辑并与原项目信息互不影响。"}),(0,at.jsx)("div",{className:"".concat(Wl," ").concat(ql),children:"2、不复制当前项目会被直接发送到课堂中使用挑战过该项目的学生再次进入项目开启挑战时会清空之前的挑战记录。"})]})]}):(0,at.jsx)(U.Z,{centered:!0,closable:!0,destroyOnClose:!0,open:i,confirmLoading:w,title:"提示",width:682,onCancel:e,onOk:a()(r()().mark((function t(){var e,i,a;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return b(!0),e=0,u&&(a=G()({},d.getFieldsValue()),e=null==o||null===(i=o.course_data_list)||void 0===i?void 0:i.map((function(t){return void 0!==a[t.id]?G()(G()({},t),{},{is_use:a[t.id]}):t}))),t.next=5,n(e);case 5:b(!1);case 6:case"end":return t.stop()}}),t)}))),children:(0,at.jsxs)("div",{className:Wl,children:[(0,at.jsx)(Ql,{studentNames:null==o?void 0:o.student_names,total:null==o?void 0:o.student_count}),"学习过该实践项目。",u?(0,at.jsxs)(X.Z,{form:d,preserve:!1,children:[(0,at.jsx)("h3",{children:"当前实训不可复制,已经检测到以下课堂存在该实训,同一实训在课堂中重复使用时,会导致成绩互相影响,请确认是否继续使用"}),null==S?void 0:S.map((function(t){return(0,at.jsxs)(h.Fragment,{children:[(0,at.jsx)("h3",{className:"ml15 mb5",children:t.name}),(0,at.jsx)(X.Z.Item,{name:t.id,initialValue:1,children:(0,at.jsxs)(ye.ZP.Group,{className:Wl,children:[(0,at.jsx)(ye.ZP,{value:1,style:{color:"#464f66"},children:"继续使用"}),(0,at.jsx)(ye.ZP,{value:0,style:{color:"#464f66"},children:"不使用"})]})})]},t.id)}))]}):(0,at.jsxs)("div",{children:["该项目不支持复制,若确认继续发送,",(0,at.jsx)("span",{className:ql,children:"当前项目会被直接发送到课堂中使用,挑战过该项目的学生再次进入项目开启挑战时,会清空之前的挑战记录。"}),"(如果不想清空学生之前的挑战记录,建议参照该实践项目的内容自行创建一个新的项目,或者尝试联系项目创建人开放本项目的复制权限)。"]})]})})})},$l=function(t){var e=X.Z.useForm(),n=l()(e,1)[0],i=(0,h.useState)(!1),o=l()(i,2),s=o[0],u=o[1],c=t.onCancel,d=t.onOk,f=t.visible,p=t.inPaper,g=void 0!==p&&p,m=t.renderData,v=t.type,y=t.isMultipleCourse,w=void 0!==y&&y,b=t.position,x=(0,h.useMemo)((function(){return g?[{title:"实践项目名称",dataIndex:"name",width:424,align:"center",ellipsis:!0,className:Yl,render:function(t,e){return(0,at.jsx)("a",{href:"/shixuns/".concat(e.identifier,"/challenges"),target:"_blank",children:t})}},{title:"是否复制",dataIndex:"is_copy",align:"center",render:function(t,e){return(0,at.jsxs)(at.Fragment,{children:[(0,at.jsx)(X.Z.Item,{name:["".concat("subject"===v?e.stage_shixun_id:e.shixun_course_id||e.id),"is_copy"],initialValue:1,children:(0,at.jsxs)(ye.ZP.Group,{children:[(0,at.jsx)(ye.ZP,{value:1,children:"是"}),(0,at.jsx)(ye.ZP,{value:0,children:"否"})]})}),(0,at.jsx)(X.Z.Item,{name:["".concat("subject"===v?null==e?void 0:e.stage_shixun_id:e.shixun_course_id||e.id),"is_use"],hidden:!0,initialValue:1,children:(0,at.jsx)(rt.Z,{type:"hidden"})})]})}}]:[{title:"实践项目名称",dataIndex:"name",width:424,align:"center",ellipsis:!0,className:Yl,render:function(t,e){return(0,at.jsx)("a",{href:"/shixuns/".concat(e.identifier,"/challenges"),target:"_blank",children:t})}},{title:"是否使用",dataIndex:"is_use",align:"center",render:function(t,e){return(0,at.jsx)(X.Z.Item,{name:["".concat("subject"===v?e.stage_shixun_id:e.shixun_course_id||e.id),"is_use"],initialValue:1,children:(0,at.jsxs)(ye.ZP.Group,{children:[(0,at.jsx)(ye.ZP,{value:1,children:"是"}),(0,at.jsx)(ye.ZP,{value:0,children:"否"})]})})}},{title:"是否复制",dataIndex:"is_copy",align:"center",render:function(t,e){return(0,at.jsx)(X.Z.Item,{name:["".concat("subject"===v?e.stage_shixun_id:e.shixun_course_id||e.id),"is_copy"],initialValue:1,children:(0,at.jsxs)(ye.ZP.Group,{children:[(0,at.jsx)(ye.ZP,{value:1,children:"是"}),(0,at.jsx)(ye.ZP,{value:0,children:"否"})]})})}}]}),[g]),S=(0,h.useMemo)((function(){return g?[{title:"实践项目名称",dataIndex:"name",width:424,className:Yl,align:"center",ellipsis:!0,render:function(t,e){return(0,at.jsxs)(at.Fragment,{children:[(0,at.jsx)("a",{href:"/shixuns/".concat(e.identifier,"/challenges"),target:"_blank",children:t}),(0,at.jsx)(X.Z.Item,{name:["".concat("subject"===v?null==e?void 0:e.stage_shixun_id:e.shixun_course_id||e.id),"is_copy"],hidden:!0,initialValue:0,children:(0,at.jsx)(rt.Z,{type:"hidden"})}),(0,at.jsx)(X.Z.Item,{name:["".concat("subject"===v?null==e?void 0:e.stage_shixun_id:e.shixun_course_id||e.id),"is_use"],hidden:!0,initialValue:1,children:(0,at.jsx)(rt.Z,{type:"hidden"})})]})}}]:[{title:"实践项目名称",dataIndex:"name",width:424,className:Yl,ellipsis:!0,align:"center",render:function(t,e){return(0,at.jsx)("a",{href:"/shixuns/".concat(e.identifier,"/challenges"),target:"_blank",children:t})}},{title:"是否使用",dataIndex:"is_use",align:"center",render:function(t,e){return(0,at.jsxs)(at.Fragment,{children:[(0,at.jsx)(X.Z.Item,{name:["".concat("subject"===v?null==e?void 0:e.stage_shixun_id:e.shixun_course_id||e.id),"is_use"],initialValue:0,children:(0,at.jsxs)(ye.ZP.Group,{children:[(0,at.jsx)(ye.ZP,{value:1,children:"是"}),(0,at.jsx)(ye.ZP,{value:0,children:"否"})]})}),(0,at.jsx)(X.Z.Item,{name:["".concat("subject"===v?null==e?void 0:e.stage_shixun_id:e.shixun_course_id||e.id),"is_copy"],hidden:!0,initialValue:0,children:(0,at.jsx)(rt.Z,{type:"hidden"})})]})}}]}),[g]);if(w){var P={title:"课堂名称",ellipsis:!0,dataIndex:"course_name",width:190,align:"center",className:Yl,render:function(t,e){return(0,at.jsx)("a",{href:"/classrooms/".concat(e.course_id),children:t})}};x=[P].concat(Y()(x)),S=[P].concat(Y()(S))}var k=(0,h.useMemo)((function(){return function(t){var e=t.used,n=t.copy,i=t.canNotCopy,r=t.studentNames,o=t.studentCount,a=t.inPaper,s=t.is_random,l=void 0!==s&&s,u=t.position,c=(void 0===u?"":u)||(a?"试卷":"课程");return(0,at.jsxs)("span",{children:[(0,at.jsx)(Ql,{studentNames:r,total:o}),"学习过",c,"中的",(0,at.jsx)("span",{className:ql,children:e}),"个项目,",n>0&&i>0?(0,at.jsxs)(at.Fragment,{children:["其中",(0,at.jsx)("span",{className:ql,children:n}),"个项目支持复制,",(0,at.jsx)("span",{className:ql,children:i}),"个项目不支持复制"]}):n>0&&0===i?(0,at.jsxs)(at.Fragment,{children:["其中",(0,at.jsx)("span",{className:ql,children:n}),"个项目支持复制"]}):0===n&&i>0?(0,at.jsxs)(at.Fragment,{children:["其中",(0,at.jsx)("span",{className:ql,children:i}),"个项目不支持复制"]}):void 0,"。请选择",l?"":"是否继续使用和","是否复制为新项目发送至课堂中?"]})}({used:null==m?void 0:m.repeat_shixun_num,copy:null==m?void 0:m.can_copy_num,canNotCopy:null==m?void 0:m.no_copy_num,studentNames:null==m?void 0:m.student_names,studentCount:null==m?void 0:m.student_count,is_random:null==m?void 0:m.is_random,inPaper:g,position:b})}),[m,g,b]);return(0,at.jsx)(U.Z,{title:"提示",centered:!0,open:f,confirmLoading:s,onOk:a()(r()().mark((function t(){var e,i;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return u(!0),e=n.getFieldsValue(),i=Object.keys(e).map((function(t){return{id:parseInt(t.split("_")[0]),course_id:parseInt(t.split("_")[1]),is_use:e[t].is_use,is_copy:e[t].is_copy}})),t.next=5,d(i);case 5:u(!1);case 6:case"end":return t.stop()}}),t)}))),onCancel:c,width:880,okText:"确认",className:Xl,destroyOnClose:!0,children:(0,at.jsxs)(X.Z,{form:n,preserve:!1,children:[(0,at.jsx)("div",{className:_l,children:k}),(0,at.jsxs)("div",{style:{marginBottom:30},children:[(0,at.jsx)("div",{style:{marginBottom:20},children:"* 说明"}),(0,at.jsx)("div",{style:{marginBottom:20},children:"1、复制系统将复制并创建一个新的项目发送到课堂中使用不会复制学生的挑战记录新的项目支持进行编辑并与原项目信息互不影响。"}),(0,at.jsx)("div",{className:ql,children:"2、不复制当前项目会被直接发送到课堂中使用挑战过该项目的学生再次进入项目开启挑战时会清空之前的挑战记录。"})]}),(null==m?void 0:m.can_copy_num)>0&&(0,at.jsxs)("div",{children:[(0,at.jsx)("div",{className:Zl,children:"支持复制的项目"}),(0,at.jsx)(Fe.Z,{columns:x,className:Vl,dataSource:null==m?void 0:m.can_copy_list,rowKey:"subject"===v?"stage_shixun_id":"id",pagination:!1,scroll:{y:240},bordered:!0})]}),(null==m?void 0:m.no_copy_num)>0&&(0,at.jsxs)("div",{children:[(0,at.jsx)("div",{className:Zl,children:"不支持复制的项目"}),(0,at.jsx)(Fe.Z,{columns:S,className:Vl,dataSource:null==m?void 0:m.no_copy_list,rowKey:"subject"===v?"stage_shixun_id":"id",pagination:!1,scroll:{y:200},bordered:!0})]}),(null==m?void 0:m.no_use_list.length)>0&&(null==m?void 0:m.no_use_list.map((function(t){return(0,at.jsxs)("div",{children:[(0,at.jsx)(X.Z.Item,{name:["".concat("subject"===v?null==t?void 0:t.stage_shixun_id:t.shixun_course_id||t.id),"is_copy"],hidden:!0,initialValue:0,children:(0,at.jsx)(rt.Z,{type:"hidden"})}),(0,at.jsx)(X.Z.Item,{name:["".concat("subject"===v?null==t?void 0:t.stage_shixun_id:t.shixun_course_id||t.id),"is_use"],hidden:!0,initialValue:1,children:(0,at.jsx)(rt.Z,{type:"hidden"})})]},"subject"===v?t.stage_shixun_id:t.shixun_course_id||t.id)})))]})})},tu=function(t){return"multiple"===t.modalType?(0,at.jsx)($l,G()({},t)):(0,at.jsx)(Jl,G()({},t))},eu=n(12554),nu=De.Z.TabPane,iu=(0,d.connect)((function(t){return{exercise:t.exercise,loading:t.loading,classroomList:t.classroomList}}))((function(t){t.classroomList;var e,n=t.exercise,i=t.saveExercise,o=(t.loading,t.dispatch),s=(0,d.useParams)(),u=((0,d.useLocation)(),X.Z.useForm()),f=(l()(u,1)[0],n.brankList,(0,h.useState)(!0)),p=l()(f,2),g=p[0],m=p[1],v=(0,h.useState)(!1),y=l()(v,2),w=y[0],b=y[1],x=(0,h.useState)("myself"),S=l()(x,2),P=S[0],k=S[1],C=(0,h.useState)([]),A=l()(C,2),M=A[0],E=A[1],L=(0,h.useState)([]),T=l()(L,2),N=T[0],j=T[1],I=(0,h.useState)(),B=l()(I,2),O=B[0],D=B[1],R=(0,h.useState)([]),z=l()(R,2),_=z[0],W=z[1],V=(0,h.useRef)(null),q=(0,h.useState)(!1),Q=l()(q,2),J=Q[0],$=Q[1],tt=(0,h.useState)(""),et=l()(tt,2),nt=et[0],it=et[1],ot=(0,h.useState)(""),st=l()(ot,2),lt=st[0],ut=st[1],ct=[{title:"试卷名称",dataIndex:"name",width:150,ellipsis:!0,align:"left"},{title:"方向&课程",dataIndex:"course_list_name",width:150,ellipsis:!0,align:"left"},{title:"类型",dataIndex:"is_random",width:90,align:"left",render:function(t){return t?"随机组卷":"人工组卷"}},{title:"更新时间",dataIndex:"updated_at",width:150,align:"left"},{title:"试题数",dataIndex:"item_num",width:60,align:"center"},{title:"总分",dataIndex:"total_score",width:60,align:"center"},{title:"操作",dataIndex:"is_random",width:60,align:"center",render:function(t,e){return(0,at.jsx)("a",{href:t?"/randompaper/detail/".concat(e.id):"/paperlibrary/see/".concat(e.id,"?defaultActiveKey=").concat("public"==(null==ft?void 0:ft.filter)?"1":"teacher"==(null==ft?void 0:ft.filter)?"2":"0"),target:"_blank>",children:"预览"})}}],ht=(0,h.useState)({page:0,limit:20,group_id:null,object_type:"examination_bank",search:"",filter:"myself",is_random:null,is_encrypt:0}),dt=l()(ht,2),ft=dt[0],pt=dt[1];(0,h.useEffect)((function(){"试卷选用"===n.actionTabs.key&&(vt(),W([]),gt())}),[n.actionTabs.key]);var gt=function(){var t=a()(r()().mark((function t(){var e;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,o({type:"paperlibrary/getTeachGroupData"});case 2:e=t.sent,j(e);case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),mt=function(t){var e=parseInt(t);return isNaN(e)?"":e},vt=function(){var t=a()(r()().mark((function t(){var e,n;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!g){t.next=12;break}return++ft.page,m(!1),ft.is_random="myself"==ft.filter?2:null,t.next=6,o({type:"exercise/getBrankList",payload:G()({},ft)});case 6:n=t.sent,M=null!=n&&n.object_list?Y()(M.concat(null==n?void 0:n.object_list)):M,D(n.is_teacher),(null===(e=n.object_list)||void 0===e?void 0:e.length)<ft.limit?m(!1):m(!0),E(Y()(M));case 12:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),yt={selectedRowKeys:_,onChange:function(t){W(t)},type:"radio"},wt=function(){pt(G()({},{page:0,limit:20,group_id:null,object_type:"examination_bank",search:"",filter:"myself"})),E([]),m(!0),k("myself"),o({type:"exercise/setActionTabs",payload:{}}),b(!1)},bt=function(){var t=(0,h.useState)(!1),e=l()(t,2),n=e[0],i=e[1],o=(0,h.useState)(),s=l()(o,2),u=s[0],d=s[1],f=function(){var t=a()(r()().mark((function t(e){var n,o,a,s,l,u;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.isImportMultipleCourse,o=void 0!==n&&n,a=c()(e,Kl),console.log(e),t.t0=null==e?void 0:e.result,t.t0){t.next=7;break}return t.next=6,(0,Z.Tr)(a);case 6:t.t0=t.sent;case 7:if(!("status"in(s=t.t0))){t.next=10;break}return t.abrupt("return",!1);case 10:if(!o){t.next=17;break}if(u=null==s||null===(l=s.course_data_list)||void 0===l?void 0:l.some((function(t){return t.is_show})),!u){t.next=16;break}return d(s),i(!0),t.abrupt("return",!0);case 16:return t.abrupt("return",s.course_data_list||[]);case 17:if(0!==s.student_count){t.next=19;break}return t.abrupt("return",!1);case 19:return d(s),i(!0),t.abrupt("return",!0);case 22:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();return[n,function(){return i(!1)},u,f]}(),xt=l()(bt,4),St=xt[0],Pt=xt[1],kt=xt[2],Ct=(xt[3],function(){var t=a()(r()().mark((function t(e){var i,l,u,c,h;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=!1,M.forEach((function(t){_.includes(t.id)&&(i=t.is_random)})),l=e.map((function(t){return{shixun_id:t.id,is_use:t.is_use,is_copy:t.is_copy}})),i){t.next=9;break}return t.next=6,o({type:"exercise/saveBanks",payload:{course_id:s.coursesId,object_type:"examination_bank",bank_id:_,shixuns_info:l}});case 6:return 0===(null==(u=t.sent)?void 0:u.status)&&((0,F.L9)(["教学课堂","试卷","试卷选用"]),o({type:"classroomList/getClassroomExercisesList",payload:G()({},n.actionTabs.params)}),it("/classrooms/".concat(s.coursesId,"/exercise/").concat(u.exercise_id,"/detail?random=").concat(u.is_random,"&tabs=3")),ut("/classrooms/".concat(s.coursesId,"/exercise/add/").concat(u.exercise_id,"?random=").concat(u.is_random,"&type=2")),$(!0),H.ZP.success("生成试卷成功"),Pt(),wt()),t.abrupt("return");case 9:o({type:"exercise/setActionTabs",payload:{}}),Pt(),c=1,h=U.Z.confirm({icon:null,className:"custom-modal-divider",centered:!0,width:500,maskClosable:!1,keyboard:!1,cancelButtonProps:{disabled:!1},title:"配置出卷数量",content:(0,at.jsxs)("div",{className:Gl,children:[(0,at.jsxs)("div",{className:Ul,children:[(0,at.jsx)("sup",{className:Hl,children:"*"}),(0,at.jsx)("span",{style:{flexShrink:0},children:"随机出卷数量:"}),(0,at.jsx)(Uo.Z,{parser:mt,style:{width:120},placeholder:"请输入试卷数量",min:1,defaultValue:c,onChange:function(t){c=t;var e=document.getElementById("model_error");e.style.display=c<1||c>50?"block":"none"}})]}),(0,at.jsx)("div",{style:{display:"none",marginLeft:106},id:"model_error",className:"c-red",children:"请输入1-50之间的整数"})]}),okText:"确认",cancelText:"取消",onCancel:wt,onOk:function(){var t=a()(r()().mark((function t(){var e;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(c<1||c>50)){t.next=4;break}return document.getElementById("model_error").style.display="block",t.abrupt("return",Promise.reject());case 4:return h.update({cancelButtonProps:{disabled:!0}}),t.next=7,o({type:"exercise/saveBanks",payload:{course_id:s.coursesId,object_type:"examination_bank",bank_id:_,shixuns_info:l,num:c}});case 7:e=t.sent,h.update({cancelButtonProps:{disabled:!1}}),e&&0===e.status?((0,F.L9)(["教学课堂","试卷","试卷选用"]),U.Z.destroyAll(),o({type:"classroomList/getClassroomExercisesList",payload:G()({},n.actionTabs.params)}),wt(),Pt(),H.ZP.success("生成试卷成功")):(wt(),Pt());case 10:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()});case 13:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());return(0,at.jsxs)(at.Fragment,{children:[(0,at.jsxs)(U.Z,{centered:!0,width:980,title:"选择试卷",maskClosable:!1,destroyOnClose:!0,open:"试卷选用"===n.actionTabs.key,okText:"确定",cancelText:"取消",confirmLoading:w,bodyStyle:{minHeight:200},wrapClassName:zl,onOk:a()(r()().mark((function t(){var e;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(_.length){t.next=3;break}return H.ZP.error("请选择试卷"),t.abrupt("return");case 3:if(b(!0),e=!1,!1,M.forEach((function(t){_.includes(t.id)&&t.need_authorize&&(e=t.need_authorize),_.includes(t.id)&&t.is_random})),!e){t.next=10;break}return Ba(!1,"该试卷中包含实训需授权后才可使用。 您可以在QQ服务群向管理员申请获得继续操作的权限。"),t.abrupt("return");case 10:i(_[0]),wt(),b(!1);case 13:case"end":return t.stop()}}),t)}))),onCancel:wt,children:[(0,at.jsxs)(De.Z,{activeKey:P,onTabClick:function(){var t=a()(r()().mark((function t(e){return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:V.current.scrollTop=0,M=[],P!==e&&W([]),k(e),ft.page=0,ft.filter=e,ft.group_id=null,g=!0,vt();case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),children:[(0,at.jsx)(nu,{tab:(0,at.jsx)("span",{children:"我的试卷库"})},"myself"),(0,at.jsx)(nu,{tab:(0,at.jsx)("span",{children:"教研共享"})},"teacher"),(0,at.jsx)(nu,{tab:(0,at.jsx)("span",{children:"公共试卷库"})},"public")]}),(0,at.jsxs)("div",{className:Fl,children:["teacher"===P&&(0,at.jsxs)(Re.default,{value:ft.group_id,onChange:function(t){V.current.scrollTop=0,M=[],ft.page=0,ft.group_id=t,g=!0,W([]),pt(G()({},ft)),vt()},size:"middle",style:{width:200,marginRight:30},children:[(0,at.jsx)(Re.default.Option,{value:null,children:"全部教研团队"}),null==N||null===(e=N.groups)||void 0===e?void 0:e.map((function(t){return(0,at.jsx)(Re.default.Option,{value:null==t?void 0:t.group_id,children:null==t?void 0:t.name},null==t?void 0:t.group_id)}))]}),(0,at.jsx)(rt.Z.Search,{placeholder:"请输入试卷名称进行搜索",value:ft.search,onChange:function(t){ft.search=t.target.value,pt(G()({},ft))},onSearch:function(t){V.current.scrollTop=0,M=[],ft.page=0,g=!0,W([]),t&&(0,eu.tk)({name:t,copywriting:t,position:"Exercise"}),vt()}})]}),(0,at.jsxs)("div",{ref:V,style:{maxHeight:350,overflowY:"auto",overflowX:"hidden",marginTop:10,paddingBottom:20},children:[!O&&"public"===P&&(0,at.jsxs)("div",{style:{display:"flex",flexDirection:"column",paddingTop:"30px",alignItems:"center",justifyContent:"center"},children:[(0,at.jsx)("span",{children:"通过职业认证的教师才能访问公共课程资源库"}),(0,at.jsx)("p",{style:{cursor:"pointer",background:"#ff6800",height:"30px",textAlign:"center",marginTop:"5px",padding:"5px 0px",color:"#fff",width:"80px"},onClick:function(){window.open("/account/certification")},children:"立即认证"})]}),(0,at.jsx)(Nl(),{initialLoad:!1,pageStart:0,loadMore:function(){vt()},hasMore:g,useWindow:!1,children:"试卷选用"===n.actionTabs.key&&O&&(0,at.jsx)(Dl,{className:Rl,pagination:!1,hideSelectAll:!0,dataSource:M,onRow:function(t){return{onClick:function(){W([null==t?void 0:t.id])}}},resColumns:ct,rowSelection:yt})})]})]}),(0,at.jsx)(U.Z,{title:"提示",open:J,confirmLoading:!1,centered:!0,okText:"设置规则",cancelText:"修改试卷",footer:(0,at.jsxs)("div",{children:[(0,at.jsx)(K.ZP,{onClick:function(){$(!1),d.history.push(lt)},children:"修改试卷"}),(0,at.jsx)(K.ZP,{type:"primary",onClick:function(){d.history.push(nt),$(!1)},children:"设置规则"})]}),onCancel:function(){$(!1)},children:(0,at.jsx)("p",{children:"试卷创建完成!目前处于未发布状态,是否设置考试规则?"})}),(0,at.jsx)(tu,{inPaper:!0,visible:St,onCancel:Pt,onOk:Ct,renderData:kt,modalType:"multiple",type:"examination_bank"})]})})),ru=n(61621),ou={delay_publish:0,is_public:[!1],description:"",title:"",link:"",publish_time:""},au=(0,d.connect)((function(t){var e=t.attachment,n=t.loading;return{attachment:e,globalSetting:t.globalSetting,loading:n,user:t.user}}))((function(t){var e=t.attachment,n=t.dispatch,i=t.loading,o=t.globalSetting,s=(0,d.useParams)(),u=(e.detail,X.Z.useForm()),c=l()(u,1)[0],f=(0,h.useState)(!1),p=l()(f,2),g=p[0],m=p[1],v=(0,h.useState)([]),y=l()(v,2),w=y[0],b=y[1],x=(0,h.useState)(G()({},ou)),S=l()(x,2),P=S[0],k=S[1],C=(0,h.useState)({name:"",filename:"",type:"",className:"",data:"",close:!0,style:{position:"fixed",zIndex:9999,background:"rgba(0,0,0,.7)"},disabledDownload:!1,monacoEditor:{value:"",language:"",theme:"vs",options:{readOnly:!0}}}),A=l()(C,2),M=A[0],E=A[1];s.id=s.coursesId,s.course_id=s.coursesId;var L=function(){var t=a()(r()().mark((function t(){var i,o,a,l,u,h,d;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a={},a="课程内教学课件预览"==(null==e||null===(i=e.actionTabs)||void 0===i||null===(i=i.params)||void 0===i?void 0:i.openType)?G()({},e.actionTabs.params):G()({},s),t.next=4,n({type:"attachment/getDetail",payload:a});case 4:(l=t.sent).delay_publish=l.delay_publish?1:0,P.is_public=[l.is_public],P.description=l.description,P.delay_publish=l.delay_publish,P.publish_time=l.publish_time,c.setFieldsValue(P),b([G()({},l)].concat(Y()(null==l?void 0:l.attachment_histories))),null!=l&&null!==(o=l.attachment_histories)&&void 0!==o&&o.length?m(!0):(M.type=l.file_type,M.data=fi.Z.API_SERVER+l.url,M.recordInfo={id:null==e||null===(u=e.actionTabs)||void 0===u||null===(u=u.selectArrs)||void 0===u?void 0:u.id,course_id:null==e||null===(h=e.actionTabs)||void 0===h||null===(h=h.params)||void 0===h?void 0:h.course_id},"txt"===l.file_type&&(M.monacoEditor.value=l.content),M.disabledDownload=(0,xt.dE)()&&Boolean(null==e||null===(d=e.actionTabs)||void 0===d||null===(d=d.selectArrs)||void 0===d?void 0:d.download_setting),E(G()({},M)));case 13:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return(0,h.useEffect)((function(){var t;"资源下载"===e.actionTabs.key?(s.id=null===(t=e.actionTabs.selectArrs)||void 0===t?void 0:t.id,c.resetFields(),L()):m(!1)}),[e.actionTabs.key,s.id]),(0,h.useEffect)((function(){return function(){E(G()(G()({},M),{},{type:""})),n({type:"attachment/setActionTabs",payload:{}})}}),[]),(0,at.jsxs)(at.Fragment,{children:[(0,at.jsx)(U.Z,{centered:!0,title:"资源下载",open:g,okText:"确定",destroyOnClose:!0,maskClosable:!1,cancelText:"取消",width:600,onOk:a()(r()().mark((function t(){return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n({type:"attachment/setActionTabs",payload:{}});case 1:case"end":return t.stop()}}),t)}))),onCancel:function(){k(G()({},ou)),n({type:"attachment/setActionTabs",payload:{}})},children:(0,at.jsx)("section",{className:"pl20 pr20 pt10",children:(0,at.jsxs)(ru.Z,{loading:i["attachment/getDetail"],active:!0,avatar:{size:40},paragraph:{rows:5},className:"mt30",children:[(0,at.jsxs)(Q.Z,{align:"middle",justify:"center",style:{background:"#eee"},gutter:[20,8],children:[(0,at.jsx)(J.Z,{flex:"307px",children:"资源名称"}),(0,at.jsx)(J.Z,{flex:"80px",children:"下载"}),(0,at.jsx)(J.Z,{flex:"140px",children:"版本号"})]}),null==w?void 0:w.map((function(t,n){return(0,at.jsxs)(Q.Z,{align:"middle",justify:"center",style:{borderBottom:"1px solid #eaeaea"},gutter:[20,8],children:[(0,at.jsx)(J.Z,{flex:"307px",children:(0,at.jsx)(tt.Z,{title:t.title,children:(0,at.jsxs)(Q.Z,{children:[(0,at.jsx)(J.Z,{children:(0,at.jsx)("a",{href:fi.Z.API_SERVER+t.url,target:"_blank",className:"multi_ellipsis1 c-grey-333 mr5",onClick:function(n){var i;t.link||"application/pdf"===t.content_type||o.setting.is_local||(n.preventDefault(),M.type=t.file_type,M.data=fi.Z.API_SERVER+t.url,"txt"===t.file_type&&(M.monacoEditor.value=t.content),M.disabledDownload=(0,xt.dE)()&&Boolean(null==e||null===(i=e.actionTabs)||void 0===i||null===(i=i.selectArrs)||void 0===i?void 0:i.download_setting),E(G()({},M)))},children:t.title})}),(0,at.jsx)(J.Z,{children:(0,at.jsx)(Oe,{className:"",color:0===n?"green":"orange",children:0===n?"当前版本":"历史版本"})})]})})}),(0,at.jsx)(J.Z,{flex:"80px",children:t.downloads_count}),(0,at.jsx)(J.Z,{flex:"140px",children:nn()(t.created_on).format("YYYY-MM-DD HH:mm")})]},n)}))]})})}),(0,at.jsx)(dn.Z,G()(G()({},M),{},{onClose:function(){E(G()(G()({},M),{},{type:""})),n({type:"attachment/setActionTabs",payload:{}})}}))]})})),su=["pathsDetail","user","loading","dispatch","classroomList"],lu=function(t){return t.All="",t.Shixun="shixun",t.VideoItem="video",t.Attachment="attachment",t.group_count="group_homework",t.normal_count="normal_homework",t.ExaminationBank="exercise",t.HomeworkCommon="hack_homework",t.Discusses="Discusses",t.Challenge="challenge",t}(lu||{}),uu=(0,d.connect)((function(t){var e=t.pathsDetail,n=t.user,i=t.loading,r=t.classroomList;return{pathsDetail:e,user:n,loading:i.effects,classroomList:r}}))((function(t){var e,n,i,o,s,u=t.pathsDetail,f=t.user,p=t.loading,g=t.dispatch,m=t.classroomList,v=(c()(t,su),null===(e=(0,F.cV)())||void 0===e||e.url,(null===(n=(0,F.cV)())||void 0===n?void 0:n.conversable_id)||""),y=((0,d.useParams)(),u.stageData),w=u.visibleType,b=void 0===w?"All":w,x=u.keywords,S=u.editKey,P=null==u?void 0:u.detail,k=P.shixuns_count,C=void 0===k?0:k,A=P.videos_count,M=void 0===A?0:A,E=P.attachment_count,L=void 0===E?0:E,T=P.chapter_statis,N=P.group_count,j=void 0===N?0:N,I=P.normal_count,B=void 0===I?0:I,O=(P.disscuss_count,P.banks_count),D=void 0===O?0:O,R=P.hack_count,z=void 0===R?0:R,U=(0,h.useState)([]),Z=l()(U,2),V=Z[0],Y=Z[1],X=(0,h.useState)({content:"",type:""}),q=l()(X,2),K=q[0],Q=q[1],J=(0,h.useState)([]),$=l()(J,2),tt=$[0],et=($[1],(0,h.useState)("All")),nt=l()(et,2),it=nt[0],rt=nt[1],ot=(0,h.useState)(""),st=l()(ot,2),ut=st[0],ct=st[1],ht=St(lt.CI,{}),dt=l()(ht,3),ft=(dt[1],dt[2],null!==(i=u.detail)&&void 0!==i&&i.can_managed,[{name:"全部",type:"All",number:C+M+L+j+B+D+z+((null==T?void 0:T.challenge_count)||0),isShow:!0},{name:"实践项目",type:"Shixun",number:C,isShow:C>0},{name:"视频",type:"VideoItem",number:M,isShow:M>0},{name:"课件",type:"Attachment",number:L,isShow:L>0},{name:"关卡",type:"Challenge",number:null==T?void 0:T.challenge_count,isShow:(null==T?void 0:T.challenge_count)>0},{name:"分组作业",type:"group_count",number:j,isShow:!(0,xt.JA)()&&j>0},{name:"图文作业",type:"normal_count",number:B,isShow:!(0,xt.JA)()&&B>0},{name:"编程作业",type:"HomeworkCommon",number:z,isShow:!(0,xt.JA)()&&z>0},{name:"测验",type:"ExaminationBank",number:D,isShow:!(0,xt.JA)()&&D>0}].filter((function(t){return t.isShow}))),pt=function(){var t=a()(r()().mark((function t(){var e,n=arguments;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=n.length>0&&void 0!==n[0]?n[0]:{},t.next=3,g({type:"pathsDetail/getStageData",payload:G()(G()({tab:lu[b]},e),{},{subject_id:v,keywords:x})});case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),gt=function(){var t=a()(r()().mark((function t(){var e,n,i,o=arguments;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null==(e=o.length>0&&void 0!==o[0]?o[0]:{})||!e.stage_id){t.next=7;break}return t.next=4,g({type:"pathsDetail/getStageChildrenData",payload:{id:null==e?void 0:e.stage_id,type:"stage",keywords:x,tab:lu[b]}});case 4:n=t.sent,i=V.map((function(t){var i;return t.stage_id==(null==e?void 0:e.stage_id)?G()(G()(G()({},t),e),{},{items:null===(i=n.data)||void 0===i?void 0:i.items}):t})),g({type:"pathsDetail/save",payload:{stageData:i}});case 7:g({type:"pathsDetail/getPathsDetail",payload:{id:v}});case 8:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),mt=(0,h.useMemo)((function(){return null==V?void 0:V.map((function(t,e){return(0,at.jsx)("div",{children:(0,at.jsx)(Es,{val:t,allData:V,index:e,selectExercise:function(t){ct(null==t?void 0:t.stage_id),g({type:"exercise/setActionTabs",payload:{key:"试卷选用"}})},openPreview:function(t){var e,n;null!=t&&t.container_id?g({type:"attachment/setActionTabs",payload:{key:"资源下载",selectArrs:null==t?void 0:t.attachment_detail,params:{course_id:null==t?void 0:t.container_id,coursesId:null==t?void 0:t.container_id,id:null==t?void 0:t.id,openType:"课程内教学课件预览"}}}):Q({content:fi.Z.API_SERVER+(null==t||null===(e=t.attachment_detail)||void 0===e?void 0:e.url),type:null==t||null===(n=t.attachment_detail)||void 0===n?void 0:n.file_type})},visibleTypeNew:it,UpdataStageChildrenData:gt,getData:gt})},e)}))}),[V,it]);return(0,h.useEffect)((function(){Y(y)}),[y]),(0,h.useEffect)((function(){console.log(555)}),[]),(0,h.useEffect)((function(){"closePathsTabs"==m.actionTabs.key&&gt({stage_id:ut||(null==u?void 0:u.stage_id)})}),[m.actionTabs.key]),(0,at.jsxs)("section",{children:[(0,at.jsxs)(_.Z,{spinning:p["pathsDetail/getStageChildrenData"]||p["pathsDetail/getStageData"]||p["pathsDetail/getPathsDetail"],children:[(0,at.jsx)("aside",{className:W.actionTabs,children:ft.map((function(t,e){return(0,at.jsxs)("div",{className:"".concat(t.type===b?W.tabActive:W.tab),onClick:function(){-1===S?("group_count"==t.type||"normal_count"==t.type?rt("SubjectHomework"):rt(t.type),"Discusses"!==t.type&&pt({tab:lu[t.type]}),g({type:"pathsDetail/save",payload:{visibleType:t.type,editKey:-1}})):H.ZP.warning("请先取消编辑状态")},children:[(0,at.jsx)("span",{className:W.s1,children:t.name}),(0,at.jsx)("span",{className:W.s2,children:t.number})]},e)}))}),"Discusses"!==b&&(0,at.jsxs)(at.Fragment,{children:[mt,0===(null==V?void 0:V.length)&&(0,at.jsx)(Ve.Z,{styles:{backgroundColor:"#fff",padding:"100px 0",margin:"20px auto"}})]}),"Discusses"===b&&(0,at.jsx)("aside",{className:"mt20",children:(0,at.jsx)(Qs,{activeIndex:3,isDelete:null===(o=u.detail)||void 0===o?void 0:o.allow_add_member,shixunIdentifier:11,identity:null===(s=f.userInfo)||void 0===s?void 0:s.role,user:f.userInfo,isShixunDetail:!0,keywords:x,refreshCount:function(){g({type:"pathsDetail/getPathsDetail",payload:{id:v,keywords:x}})}})})]}),(0,at.jsx)(pl,{}),(0,at.jsx)(kt,{shixunIds:tt,cb:function(t){var e;"取消"!==t&&gt({stage_id:null==m||null===(e=m.actionTabs)||void 0===e?void 0:e.id})}}),(0,at.jsx)(Pl,{}),(0,at.jsx)(Cl,{}),(0,at.jsx)(Ml,{}),(0,at.jsx)(Ll,{}),(0,at.jsx)(iu,{saveExercise:function(t){(0,lt._C)({id:ut,subject_id:v,homework_type:"exercise",examination_bank_ids:[t]}).then((function(t){0==(null==t?void 0:t.status)&&(H.ZP.success("选用成功"),gt({stage_id:ut||(null==u?void 0:u.stage_id)}))}))}}),(0,at.jsx)(au,{}),(0,at.jsx)(dn.Z,{close:!0,data:null==K?void 0:K.content,type:null==K?void 0:K.type,hasMask:!0,monacoEditor:{language:"txt",onChange:function(){},options:{readOnly:!0,fontSize:14,minimap:{enabled:!1}}},onClose:function(){Q({content:"",type:""})}})]})})),cu=["homePage","loading","globalSetting","user","dispatch","location","pathsDetail"],hu=[{img:n(20828),name:"视频资源",content:"平台提供课程讲解视频、实验演示视频、习题讲解视频、知识点总结视频等多种类型的视频资料。"},{img:n(13129),name:"课件文档",content:"平台提供 PPT、PDF、Word 等多种格式的课件文档,方便教师根据实际需求进行使用。"},{img:n(99127),name:"数据集",content:"提供丰富的数据集,涵盖图像、文本、语音等多种类型"},{img:n(4575),name:"试题",content:"平台提供选择题、填空题、判断题、多选题、编程题、简答题、组合题、程序设计题等多种题型,满足不同的练习需求。"}],du=[{img:n(67836),name:"教师备课",content:"为学生提供 7*24 小时在线答疑服务解答学习疑问,提供学习建议"},{img:n(48739),name:"课堂教学",content:"教师可以利用平台资源进行课堂AI教学增强课堂互动性和趣味性"},{img:n(3647),name:"自主学习",content:"学生可以基于平台资源个性化推荐资源自主学习,拓展知识面,提升学习效率"}],fu=(0,d.connect)((function(t){return{loading:t.loading,globalSetting:t.globalSetting,user:t.user,homePage:t.homePage,pathsDetail:t.pathsDetail}}))((function(t){var e,i,o=t.homePage,s=(t.loading,t.globalSetting,t.user,t.dispatch),u=(t.location,t.pathsDetail),d=(c()(t,cu),(0,h.useState)(0)),z=l()(d,2),G=z[0],U=z[1],H=(0,h.useState)(0),_=l()(H,2),Z=_[0],W=_[1],V=(0,h.useState)(null),Y=l()(V,2),X=(Y[0],Y[1],(0,h.useState)(!1)),q=l()(X,2),K=(q[0],q[1],(0,h.useState)("Subject"===(0,F.cV)().questionable_type?1:2)),Q=l()(K,2),J=Q[0],$=Q[1],tt=null==u?void 0:u.detail,et=tt.shixuns_count,nt=void 0===et?0:et,it=tt.videos_count,rt=void 0===it?0:it,ot=tt.attachment_count,st=void 0===ot?0:ot,lt=tt.chapter_statis,ut=tt.group_count,ct=void 0===ut?0:ut,ht=tt.normal_count,dt=void 0===ht?0:ht,ft=(tt.disscuss_count,tt.banks_count),pt=void 0===ft?0:ft,gt=tt.hack_count,mt=void 0===gt?0:gt;(0,h.useEffect)((function(){s({type:"homePage/home",payload:{}})}),[]),(0,h.useEffect)((function(){vt()}),[]);var vt=function(){var t=a()(r()().mark((function t(){var e,n,i;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("Subject"===(0,F.cV)().questionable_type){t.next=2;break}return t.abrupt("return");case 2:return n=null===(e=(0,F.cV)())||void 0===e?void 0:e.conversable_id,t.next=5,s({type:"pathsDetail/getPathsDetail",payload:{id:n}});case 5:return i=t.sent,t.next=8,s({type:"pathsDetail/getStageData",payload:{subject_id:n,show_course_section:null==i?void 0:i.show_course_section}});case 8:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),yt=(null==o||null===(e=o.shixun_demo)||void 0===e?void 0:e.length)>0?null==o?void 0:o.shixun_demo.filter((function(t){return"智能助教"!==t.name&&"智能课程"!==t.name})):[],wt="Subject"===(0,F.cV)().questionable_type?[{id:1,name:"本课程智慧资源概览"},{id:0,name:"智慧资源开发环境"},{id:2,name:"智慧资源简介"}]:[{id:2,name:"智慧资源简介"}],bt=[{img:n(20614),name:"资源总数",count:nt+rt+st+ct+dt+pt+mt+((null==lt?void 0:lt.challenge_count)||0)},{img:n(16702),name:"实践项目数",count:nt},{img:n(1426),name:"视频数",count:rt},{img:n(70521),name:"课件",count:st},{img:n(72838),name:"作业数",count:ct+dt+mt},{img:n(45787),name:"测验数",count:pt}];return(0,at.jsx)("div",{className:k,children:(0,at.jsxs)("div",{className:C,children:[(0,at.jsx)(R.Z,{title:"智慧资源",subTitle:"汇聚海量资源,打造智慧教育生态"}),(0,at.jsx)(D.Z,{dataSource:wt,className:"mt20",value:J,onChange:function(t){var e,n;0===t?(0,F.xg)((null===(e=(0,F.cV)())||void 0===e?void 0:e.url)+"/paths/".concat(null===(n=(0,F.cV)())||void 0===n?void 0:n.conversable_id,"?skipSource=ai")):$(t)}}),1===J&&(0,at.jsxs)("div",{className:I,children:[(0,at.jsx)("div",{className:B,children:bt.map((function(t){return(0,at.jsxs)("aside",{children:[(0,at.jsx)("img",{src:t.img}),(0,at.jsx)("div",{className:"font16 c-grey-666 mt20 mb6",children:t.name}),(0,at.jsx)("b",{className:"font24 c-grey-333",children:t.count})]})}))}),(0,at.jsx)("div",{className:O,children:(0,at.jsx)(uu,{keywords:""})})]}),2===J&&(0,at.jsxs)("div",{children:[(0,at.jsxs)("div",{style:{marginTop:30,display:"flex",border:"1px solid #E7EEFF",borderRadius:20},children:[(0,at.jsxs)("div",{className:A,children:[(0,at.jsxs)("div",{children:[(0,at.jsx)("div",{className:v,children:"实验资源"}),(0,at.jsx)("div",{className:f,style:{width:80,marginTop:24},children:yt.map((function(t,e){return(0,at.jsx)("div",{className:"".concat(p," ").concat(G===e?g:""),onClick:function(){return U(e)},children:null==t?void 0:t.name},e)}))})]}),(0,at.jsx)("div",{className:m,children:(0,at.jsx)("video",{src:null===(i=yt[G])||void 0===i?void 0:i.video,controls:!0,autoPlay:!0,controlsList:"nodownload",onEnded:function(){U(G+1>=yt.length?0:G+1)},style:{width:"100%",height:"100%",objectFit:"fill"}})})]}),(0,at.jsxs)("div",{className:M,children:[(0,at.jsx)("div",{className:E,children:"智慧资源,赋能教育创新未来"}),(0,at.jsx)("div",{className:L,children:"人工智能与智慧资源的深度融合,基于学生学习数据和行为分析,精准推荐个性化学习资源,实时评估学习进度并提供个性化建议,帮助学生查漏补缺。同时提供在线答疑服务,即时解答学生疑问,打造高效、智能的学习体验。"})]})]}),(0,at.jsxs)("div",{style:{marginTop:20,display:"flex"},children:[(0,at.jsxs)("div",{className:N,style:{width:552},children:[(0,at.jsxs)("div",{style:{display:"flex"},children:[(0,at.jsx)("div",{className:T,style:{flex:1},children:"学习资源"}),(0,at.jsx)("div",{className:"flex item-center",style:{height:32},children:hu.map((function(t,e){return(0,at.jsx)("div",{className:"".concat(y," ").concat(Z===e?w:""),onClick:function(){return W(e)},children:t.name},e)}))})]}),(0,at.jsxs)("div",{className:j,children:[(0,at.jsx)("img",{src:hu[Z].img}),(0,at.jsx)("div",{style:{marginTop:17,color:"#191919",fontSize:14},children:hu[Z].content})]})]}),(0,at.jsxs)("div",{className:N,style:{width:428,marginLeft:20},children:[(0,at.jsx)("div",{className:T,children:"应用场景"}),(0,at.jsx)("div",{style:{marginTop:20},children:du.map((function(t,e){return(0,at.jsxs)("div",{className:b,children:[(0,at.jsx)("img",{src:t.img,width:114,height:84}),(0,at.jsxs)("div",{className:S,children:[(0,at.jsx)("div",{className:x,children:t.name}),(0,at.jsx)("div",{className:P,children:t.content})]})]},e)}))})]})]})]})]})})}))},8944:function(){},93125:function(t,e,n){var i;i=function(){return function t(e,n,i){function r(a,s){if(!n[a]){if(!e[a]){if(o)return o(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var u=n[a]={exports:{}};e[a][0].call(u.exports,(function(t){return r(e[a][1][t]||t)}),u,u.exports,t,e,n,i)}return n[a].exports}for(var o=void 0,a=0;a<i.length;a++)r(i[a]);return r}({1:[function(t,e,n){"use strict";var i=t("./browser/client");i.Buffer=t("buffer").Buffer,i.co=t("co"),i.urllib=t("../shims/xhr"),i.version=t("./browser/version").version,e.exports=i},{"../shims/xhr":244,"./browser/client":2,"./browser/version":5,buffer:38,co:41}],2:[function(t,e,n){(function(n,i){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(this instanceof o))return new o(t,e);t&&t.inited?this.options=t:this.options=o.initOptions(t),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=x,this.agent=this.options.agent||M),this.ctx=e,this.userAgent=this._getUserAgent(),this.options.amendTimeSkewed=0}var a=r(t("babel-runtime/regenerator")),s=r(t("babel-runtime/core-js/object/keys")),l=t("debug")("ali-oss"),u=t("./../../shims/crypto/crypto.js"),c=t("path"),h=t("copy-to"),d=t("mime"),f=t("xml2js"),p=t("humanize-ms"),g=t("agentkeepalive"),m=t("merge-descriptors"),v=t("url"),y=t("is-type-of"),w=t("platform"),b=t("utility"),x=t("urllib"),S=t("./version"),P=t("dateformat"),k=t("bowser"),C=t("../common/signUtils"),A=t("../common/utils"),M=new g;e.exports=o,o.initOptions=function(t){if(!t||!t.accessKeyId||!t.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");var e={region:"oss-cn-hangzhou",internal:!1,secure:document&&document.location&&"https:"===document.location.protocol,bucket:null,endpoint:null,cname:!1};if((0,s.default)(t).forEach((function(n){void 0!==t[n]&&(e[n]=t[n])})),e.accessKeyId=e.accessKeyId.trim(),e.accessKeySecret=e.accessKeySecret.trim(),e.timeout&&(e.timeout=p(e.timeout)),e.endpoint)e.endpoint=function(t,e){var n=v.parse(t);if(!n.protocol){var i=e?"https://":"http://";n=v.parse(i+t)}if("http:"!==n.protocol&&"https:"!==n.protocol)throw new Error("Endpoint protocol must be http or https.");return n}(e.endpoint,e.secure);else{if(!e.region)throw new Error("require options.endpoint or options.region");e.endpoint=function(t,e,n){var i=n?"https://":"http://",r=e?"-internal.aliyuncs.com":".aliyuncs.com";return"vpc100-oss-cn-"===t.substr(0,"vpc100-oss-cn-".length)&&(r=".aliyuncs.com"),v.parse(i+t+r)}(e.region,e.internal,e.secure)}return e.inited=!0,e};var E=o.prototype;m(E,t("./object")),m(E,t("./managed_upload")),m(E,t("../common/multipart")),m(E,t("../common/thunkpool.js")),o.Wrapper=t("./wrapper"),E.signature=function(t){return l("authorization stringToSign: %s",t),C.computeSignature(this.options.accessKeySecret,t)},E.authorization=function(t,e,n,i){var r=C.buildCanonicalString(t.toUpperCase(),e,{headers:i,parameters:n});return C.authorization(this.options.accessKeyId,this.options.accessKeySecret,r)},E.createRequest=function(t){var e={"x-oss-date":P(+new Date+this.options.amendTimeSkewed,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'"),"x-oss-user-agent":this.userAgent};this.options.stsToken&&(e["x-oss-security-token"]=this.options.stsToken),h(t.headers).to(e),function(t,e){return t[e]||t[e.toLowerCase()]}(e,"Content-Type")||(t.mime===d.default_type&&(t.mime=""),t.mime&&t.mime.indexOf("/")>0?e["Content-Type"]=t.mime:e["Content-Type"]=d.getType(t.mime||c.extname(t.object||""))||"application/octet-stream"),t.content&&(e["Content-Md5"]=u.createHash("md5").update(new i(t.content,"utf8")).digest("base64"),e["Content-Length"]||(e["Content-Length"]=t.content.length));var n=this._getResource(t);e.authorization=this.authorization(t.method,n,t.subres,e);var r=this._getReqUrl(t);l("request %s %s, with headers %j, !!stream: %s",t.method,r,e,!!t.stream);var o=t.timeout||this.options.timeout;return{url:r,params:{agent:this.agent,method:t.method,content:t.content,stream:t.stream,headers:e,timeout:o,writeStream:t.writeStream,customResponse:t.customResponse,ctx:t.ctx||this.ctx}}},E.request=a.default.mark((function t(e){var n,i,r,o;return a.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this.createRequest(e),i=void 0,r=void 0,t.prev=3,t.next=6,this.urllib.request(n.url,n.params);case 6:i=t.sent,l("response %s %s, got %s, headers: %j",e.method,n.url,i.status,i.headers),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(3),r=t.t0;case 13:if(o=void 0,!i||!e.successStatuses||-1!==e.successStatuses.indexOf(i.status)){t.next=26;break}return t.next=17,this.requestError(i);case 17:if("RequestTimeTooSkewed"!==(o=t.sent).code){t.next=23;break}return this.options.amendTimeSkewed=+new Date(o.serverTime)-new Date,t.next=22,this.request(e);case 22:return t.abrupt("return",t.sent);case 23:o.params=e,t.next=30;break;case 26:if(!r){t.next=30;break}return t.next=29,this.requestError(r);case 29:o=t.sent;case 30:if(!o){t.next=32;break}throw o;case 32:if(!e.xmlResponse){t.next=36;break}return t.next=35,this.parseXML(i.data);case 35:i.data=t.sent;case 36:return t.abrupt("return",i);case 37:case"end":return t.stop()}}),t,this,[[3,10]])})),E._getResource=function(t){var e="/";return t.bucket&&(e+=t.bucket+"/"),t.object&&(e+=t.object),e},E._isIP=function(t){return A._isIP(t)},E._escape=function(t){return b.encodeURIComponent(t).replace(/%2F/g,"/")},E._getReqUrl=function(t){var e={};h(this.options.endpoint).to(e);var n=this._isIP(e.hostname),i=this.options.cname;!t.bucket||i||n||(e.host=t.bucket+"."+e.host);var r="/";t.bucket&&n&&(r+=t.bucket+"/"),t.object&&(r+=this._escape(t.object).replace(/\+/g,"%2B")),e.pathname=r;var o={};if(t.query&&m(o,t.query),t.subres){var a={};y.string(t.subres)?a[t.subres]="":y.array(t.subres)?t.subres.forEach((function(t){a[t]=""})):a=t.subres,m(o,a)}return e.query=o,v.format(e)},E._getUserAgent=function(){var t="aliyun-sdk-"+(n&&n.browser?"js":"nodejs")+"/"+S.version,e=w.description;return!e&&n&&(e="Node.js "+n.version.slice(1)+" on "+n.platform+" "+n.arch),this._checkUserAgent(t+" "+e)},E._checkUserAgent=function(t){return t.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta")},E.checkBrowserAndVersion=function(t,e){return k.name===t&&k.version.split(".")[0]===e},E.parseXML=function(t){return function(e){i.isBuffer(t)&&(t=t.toString()),f.parseString(t,{explicitRoot:!1,explicitArray:!1},e)}},E.requestError=a.default.mark((function t(e){var n,i,r,o;return a.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=null,e.data&&e.data.length){t.next=5;break}-1===e.status||-2===e.status?((n=new Error(e.message)).name=e.name,n.status=e.status,n.code=e.name):(404===e.status?((n=new Error("Object not exists")).name="NoSuchKeyError",n.status=404,n.code="NoSuchKey"):412===e.status?((n=new Error("Pre condition failed")).name="PreconditionFailedError",n.status=412,n.code="PreconditionFailed"):((n=new Error("Unknow error, status: "+e.status)).name="UnknowError",n.status=e.status),n.requestId=e.headers["x-oss-request-id"],n.host=""),t.next=30;break;case 5:return i=String(e.data),l("request response error data: %s",i),r=void 0,t.prev=8,t.next=11,this.parseXML(i)||{};case 11:r=t.sent,t.next=21;break;case 14:return t.prev=14,t.t0=t.catch(8),l(i),t.t0.message+="\nraw xml: "+i,t.t0.status=e.status,t.t0.requestId=e.headers["x-oss-request-id"],t.abrupt("return",t.t0);case 21:o=r.Message||"unknow request error, status: "+e.status,r.Condition&&(o+=" (condition: "+r.Condition+")"),(n=new Error(o)).name=r.Code?r.Code+"Error":"UnknowError",n.status=e.status,n.code=r.Code,n.requestId=r.RequestId,n.hostId=r.HostId,n.serverTime=r.ServerTime;case 30:return l("generate error %j",n),t.abrupt("return",n);case 32:case"end":return t.stop()}}),t,this,[[8,14]])}))}).call(this,t("_process"),t("buffer").Buffer)},{"../common/multipart":8,"../common/signUtils":9,"../common/thunkpool.js":10,"../common/utils":11,"./../../shims/crypto/crypto.js":237,"./managed_upload":3,"./object":4,"./version":5,"./wrapper":6,_process:173,agentkeepalive:12,"babel-runtime/core-js/object/keys":23,"babel-runtime/regenerator":33,bowser:35,buffer:38,"copy-to":43,dateformat:154,debug:155,"humanize-ms":160,"is-type-of":165,"merge-descriptors":168,mime:242,path:170,platform:171,url:203,urllib:244,utility:243,xml2js:213}],3:[function(t,e,n){(function(e){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(this instanceof r))return new r(t,e);f.call(this,e),this.file=t,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}var o=i(t("babel-runtime/core-js/array/from")),a=i(t("babel-runtime/regenerator")),s=t("is-type-of"),l=t("util"),u=t("path"),c=t("mime"),h=t("copy-to"),d=n;d.multipartUpload=a.default.mark((function t(e,n,i){var r,o,l,h,d,f,p,g,m;return a.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.resetCancelFlag(),!(i=i||{}).checkpoint||!i.checkpoint.uploadId){t.next=6;break}return t.next=5,this._resumeMultipart(i.checkpoint,i);case 5:case 38:return t.abrupt("return",t.sent);case 6:return r=102400,i.mime||(s.file(n)?i.mime=c.getType(u.extname(n.name)):s.blob(n)?i.mime=n.type:i.mime=c.getType(u.extname(n))),i.headers=i.headers||{},this._convertMetaToHeaders(i.meta,i.headers),t.next=12,this._getFileSize(n);case 12:if(!((o=t.sent)<r)){t.next=25;break}return l=this._createStream(n,0,o),i.contentLength=o,t.next=18,this.putStream(e,l,i);case 18:if(h=t.sent,!i||!i.progress){t.next=22;break}return t.next=22,i.progress(1);case 22:return d={res:h.res,bucket:this.options.bucket,name:e,etag:h.res.headers.etag},(i.headers&&i.headers["x-oss-callback"]||i.callback)&&(d.data=h.data),t.abrupt("return",d);case 25:if(!(i.partSize&&i.partSize<r)){t.next=27;break}throw new Error("partSize must not be smaller than "+r);case 27:return t.next=29,this.initMultipartUpload(e,i);case 29:if(f=t.sent,p=f.uploadId,g=this._getPartSize(o,i.partSize),m={file:n,name:e,fileSize:o,partSize:g,uploadId:p,doneParts:[]},!i||!i.progress){t.next=36;break}return t.next=36,i.progress(0,m,f.res);case 36:return t.next=38,this._resumeMultipart(m,i);case 39:case"end":return t.stop()}}),t,this)})),d._resumeMultipart=a.default.mark((function t(e,n){var i,r,s,l,u,c,d,f,p,g,m,v,y,w,b,x,S,P,k,C;return a.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.isCancel()){t.next=2;break}throw this._makeCancelEvent();case 2:if(i=e.file,r=e.fileSize,s=e.partSize,l=e.uploadId,u=e.doneParts,c=e.name,d=[],u.length>0&&h(u).to(d),f=this._divideParts(r,s),p=f.length,g=!1,m=a.default.mark((function t(r,o){var s,h,m;return a.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r.isCancel()){t.next=21;break}return t.prev=1,s=f[o-1],h={stream:r._createStream(i,s.start,s.end),size:s.end-s.start},t.next=6,r._uploadPart(c,l,o,h);case 6:if(m=t.sent,r.isCancel()||g){t.next=13;break}if(e.doneParts.push({number:o,etag:m.res.headers.etag}),d.push({number:o,etag:m.res.headers.etag}),!n||!n.progress){t.next=13;break}return t.next=13,n.progress(u.length/p,e,m.res);case 13:t.next=21;break;case 15:if(t.prev=15,t.t0=t.catch(1),r.isCancel()){t.next=21;break}throw r.cancel(),t.t0.partNum=o,t.t0;case 21:case"end":return t.stop()}}),t,this,[[1,15]])})),v=(0,o.default)(new Array(p),(function(t,e){return e+1})),y=d.map((function(t){return t.number})),w=v.filter((function(t){return y.indexOf(t)<0})),b=n.parallel||5,!this.checkBrowserAndVersion("Internet Explorer","10")&&1!==b){t.next=26;break}x=0;case 16:if(!(x<w.length)){t.next=24;break}if(!this.isCancel()){t.next=19;break}throw this._makeCancelEvent();case 19:return t.next=21,m(this,w[x]);case 21:x++,t.next=16;break;case 24:t.next=40;break;case 26:for(S=[],P=0;P<w.length;P++)S.push(m(this,w[P]));return t.next=30,this._thunkPool(S,b);case 30:if(k=t.sent,g=!0,!(k&&k.length>0)){t.next=37;break}throw this.resetCancelFlag(),(C=k[0]).message="Failed to upload some parts with error: "+C.toString()+" part_num: "+C.partNum,C;case 37:if(!this.isCancel()){t.next=40;break}throw S=null,this._makeCancelEvent();case 40:return t.next=42,this.completeMultipartUpload(c,l,d,n);case 42:return t.abrupt("return",t.sent);case 43:case"end":return t.stop()}}),t,this)})),s.file=function(t){return"undefined"!=typeof File&&t instanceof File},s.blob=function(t){return"undefined"!=typeof Blob&&t instanceof Blob},d._getFileSize=a.default.mark((function t(e){var n;return a.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!s.buffer(e)){t.next=4;break}return t.abrupt("return",e.length);case 4:if(!s.blob(e)&&!s.file(e)){t.next=6;break}return t.abrupt("return",e.size);case 6:if(!s.string(e)){t.next=11;break}return t.next=9,this._statFile(e);case 9:return n=t.sent,t.abrupt("return",n.size);case 11:throw new Error("_getFileSize requires Buffer/File/String.");case 12:case"end":return t.stop()}}),t,this)}));var f=t("stream").Readable;l.inherits(r,f),r.prototype.readFileAndPush=function(t){if(this.fileBuffer)for(var e=!0;e&&this.fileBuffer&&this.start<this.fileBuffer.length;){var n=this.start,i=n+t;i=i>this.fileBuffer.length?this.fileBuffer.length:i,this.start=i,e=this.push(this.fileBuffer.slice(n,i))}},r.prototype._read=function(t){if(this.file&&this.start>=this.file.size||this.fileBuffer&&this.start>=this.fileBuffer.length||this.finish||0===this.start&&!this.file)return this.finish||(this.fileBuffer=null,this.finish=!0),void this.push(null);t=t||16384;var n=this;this.reader.onload=function(i){n.fileBuffer=new e(new Uint8Array(i.target.result)),n.file=null,n.readFileAndPush(t)},0===this.start?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(t)},d._createStream=function(t,e,n){if(s.blob(t)||s.file(t))return new r(t.slice(e,n));throw new Error("_createStream requires File/String.")},d._getPartSize=function(t,e){return e?Math.max(Math.ceil(t/1e4),e):1048576},d._divideParts=function(t,e){for(var n=Math.ceil(t/e),i=[],r=0;r<n;r++){var o=e*r,a=Math.min(o+e,t);i.push({start:o,end:a})}return i},d._makeCancelEvent=function(){return{status:0,name:"cancel"}}}).call(this,t("buffer").Buffer)},{"babel-runtime/core-js/array/from":16,"babel-runtime/regenerator":33,buffer:38,"copy-to":43,"is-type-of":165,mime:242,path:170,stream:195,util:207}],4:[function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}var r=i(t("babel-runtime/core-js/object/keys")),o=i(t("babel-runtime/regenerator")),a=t("debug")("ali-oss:object"),s=t("utility"),l=t("fs"),u=t("is-type-of"),c=t("url"),h=t("copy-to"),d=t("path"),f=t("mime"),p=t("../common/callback"),g=t("../common/signUtils"),m=n;m.append=o.default.mark((function t(e,n,i){var r;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return void 0===(i=i||{}).position&&(i.position="0"),i.subres={append:"",position:i.position},i.method="POST",t.next=6,this.put(e,n,i);case 6:return(r=t.sent).nextAppendPosition=r.res.headers["x-oss-next-append-position"],t.abrupt("return",r);case 9:case"end":return t.stop()}}),t,this)})),m.put=o.default.mark((function t(e,n,i){var r,a,s,l,c,h;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=void 0,i=i||{},!u.buffer(n)){t.next=6;break}r=n,t.next=18;break;case 6:if(!u.blob(n)&&!u.file(n)){t.next=17;break}return i.mime||(u.file(n)?i.mime=f.getType(d.extname(n.name)):i.mime=n.type),a=this._createStream(n,0,n.size),t.next=11,this._getFileSize(n);case 11:return i.contentLength=t.sent,t.next=14,this.putStream(e,a,i);case 14:return t.abrupt("return",t.sent);case 17:throw new TypeError("Must provide Buffer/Blob for put.");case 18:return i.headers=i.headers||{},this._convertMetaToHeaders(i.meta,i.headers),s=i.method||"PUT",l=this._objectRequestParams(s,e,i),p.encodeCallback(l,i),l.mime=i.mime,l.content=r,l.successStatuses=[200],t.next=28,this.request(l);case 28:return c=t.sent,h={name:e,url:this._objectUrl(e),res:c.res},l.headers&&l.headers["x-oss-callback"]&&(h.data=JSON.parse(c.data.toString())),t.abrupt("return",h);case 32:case"end":return t.stop()}}),t,this)})),m.putStream=o.default.mark((function t(e,n,i){var r,a,s,l;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(i=i||{}).headers=i.headers||{},i.contentLength?i.headers["Content-Length"]=i.contentLength:i.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(i.meta,i.headers),r=i.method||"PUT",a=this._objectRequestParams(r,e,i),p.encodeCallback(a,i),a.mime=i.mime,a.stream=n,a.successStatuses=[200],t.next=12,this.request(a);case 12:return s=t.sent,l={name:e,url:this._objectUrl(e),res:s.res},a.headers&&a.headers["x-oss-callback"]&&(l.data=JSON.parse(s.data.toString())),t.abrupt("return",l);case 16:case"end":return t.stop()}}),t,this)})),m.head=o.default.mark((function t(e,n){var i,a,s;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(i=this._objectRequestParams("HEAD",e,n)).successStatuses=[200,304],t.next=4,this.request(i);case 4:return a=t.sent,s={meta:null,res:a.res,status:a.status},200===a.status&&(0,r.default)(a.headers).forEach((function(t){0===t.indexOf("x-oss-meta-")&&(s.meta||(s.meta={}),s.meta[t.substring(11)]=a.headers[t])})),t.abrupt("return",s);case 8:case"end":return t.stop()}}),t,this)})),m.get=o.default.mark((function t(e,n,i){var r,s,c,h;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=null,s=!1,u.writableStream(n)?r=n:u.string(n)?(r=l.createWriteStream(n),s=!0):i=n,(i=i||{}).process&&(i.subres=i.subres||{},i.subres["x-oss-process"]=i.process),c=void 0,t.prev=6,(h=this._objectRequestParams("GET",e,i)).writeStream=r,h.successStatuses=[200,206,304],t.next=12,this.request(h);case 12:c=t.sent,s&&r.destroy(),t.next=24;break;case 16:if(t.prev=16,t.t0=t.catch(6),!s){t.next=23;break}return r.destroy(),a("get error: %s, delete the exists file %s",t.t0,n),t.next=23,this._deleteFileSafe(n);case 23:throw t.t0;case 24:return t.abrupt("return",{res:c.res,content:c.data});case 25:case"end":return t.stop()}}),t,this,[[6,16]])})),m.getStream=o.default.mark((function t(e,n){var i,r;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=n||{},(i=this._objectRequestParams("GET",e,n)).customResponse=!0,i.successStatuses=[200,206,304],t.next=6,this.request(i);case 6:return r=t.sent,t.abrupt("return",{stream:r.res,res:{status:r.status,headers:r.headers}});case 8:case"end":return t.stop()}}),t,this)})),m.delete=o.default.mark((function t(e,n){var i,r;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(i=this._objectRequestParams("DELETE",e,n)).successStatuses=[204],t.next=4,this.request(i);case 4:return r=t.sent,t.abrupt("return",{res:r.res});case 6:case"end":return t.stop()}}),t,this)})),m.deleteMulti=o.default.mark((function t(e,n){var i,r,l,u,c,h;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(i='<?xml version="1.0" encoding="UTF-8"?>\n<Delete>\n',(n=n||{}).quiet?i+=" <Quiet>true</Quiet>\n":i+=" <Quiet>false</Quiet>\n",r=0;r<e.length;r++)i+=" <Object><Key>"+s.escape(this._objectName(e[r]))+"</Key></Object>\n";return a("delete multi objects: %s",i+="</Delete>"),n.subres="delete",(l=this._objectRequestParams("POST","",n)).mime="xml",l.content=i,l.xmlResponse=!0,l.successStatuses=[200],t.next=14,this.request(l);case 14:return u=t.sent,c=u.data,(h=c&&c.Deleted||null)&&(Array.isArray(h)||(h=[h]),h=h.map((function(t){return t.Key}))),t.abrupt("return",{res:u.res,deleted:h});case 19:case"end":return t.stop()}}),t,this)})),m.copy=o.default.mark((function t(e,n,i){var a,s,l;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(i=i||{}).headers=i.headers||{},(0,r.default)(i.headers).forEach((function(t){i.headers["x-oss-copy-source-"+t.toLowerCase()]=i.headers[t]})),i.meta&&(i.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(i.meta,i.headers),n="/"!==n[0]?"/"+this.options.bucket+"/"+encodeURIComponent(n):"/"+encodeURIComponent(n.slice(1)),i.headers["x-oss-copy-source"]=n,(a=this._objectRequestParams("PUT",e,i)).xmlResponse=!0,a.successStatuses=[200,304],t.next=12,this.request(a);case 12:return s=t.sent,(l=s.data)&&(l={etag:l.ETag,lastModified:l.LastModified}),t.abrupt("return",{data:l,res:s.res});case 16:case"end":return t.stop()}}),t,this)})),m.putMeta=o.default.mark((function t(e,n,i){return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.copy(e,e,{meta:n||{},timeout:i&&i.timeout,ctx:i&&i.ctx});case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t,this)})),m.list=o.default.mark((function t(e,n){var i,r,a,s,l;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(i=this._objectRequestParams("GET","",n)).query=e,i.xmlResponse=!0,i.successStatuses=[200],t.next=6,this.request(i);case 6:return r=t.sent,a=r.data.Contents,s=this,a&&(Array.isArray(a)||(a=[a]),a=a.map((function(t){return{name:t.Key,url:s._objectUrl(t.Key),lastModified:t.LastModified,etag:t.ETag,type:t.Type,size:Number(t.Size),storageClass:t.StorageClass,owner:{id:t.Owner.ID,displayName:t.Owner.DisplayName}}}))),(l=r.data.CommonPrefixes||null)&&(Array.isArray(l)||(l=[l]),l=l.map((function(t){return t.Prefix}))),t.abrupt("return",{res:r.res,objects:a,prefixes:l,nextMarker:r.data.NextMarker||null,isTruncated:"true"===r.data.IsTruncated});case 13:case"end":return t.stop()}}),t,this)})),m.putACL=o.default.mark((function t(e,n,i){var r,a;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(i=i||{}).subres="acl",i.headers=i.headers||{},i.headers["x-oss-object-acl"]=n,e=this._objectName(e),(r=this._objectRequestParams("PUT",e,i)).successStatuses=[200],t.next=9,this.request(r);case 9:return a=t.sent,t.abrupt("return",{res:a.res});case 11:case"end":return t.stop()}}),t,this)})),m.getACL=o.default.mark((function t(e,n){var i,r;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(n=n||{}).subres="acl",e=this._objectName(e),(i=this._objectRequestParams("GET",e,n)).successStatuses=[200],i.xmlResponse=!0,t.next=8,this.request(i);case 8:return r=t.sent,t.abrupt("return",{acl:r.data.AccessControlList.Grant,owner:{id:r.data.Owner.ID,displayName:r.data.Owner.DisplayName},res:r.res});case 10:case"end":return t.stop()}}),t,this)})),m.restore=o.default.mark((function t(e,n){var i,r;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(n=n||{}).subres="restore",(i=this._objectRequestParams("POST",e,n)).successStatuses=[202],t.next=6,this.request(i);case 6:return r=t.sent,t.abrupt("return",{res:r.res});case 8:case"end":return t.stop()}}),t,this)})),m.signatureUrl=function(t,e){e=e||{},t=this._objectName(t),e.method=e.method||"GET";var n=s.timestamp()+(e.expires||1800),i={bucket:this.options.bucket,object:t},r=this._getResource(i);this.options.stsToken&&(e["security-token"]=this.options.stsToken);var o=g._signatureForURL(this.options.accessKeySecret,e,r,n),a=c.parse(this._getReqUrl(i));return a.query={OSSAccessKeyId:this.options.accessKeyId,Expires:n,Signature:o.Signature},h(o.subResource).to(a.query),a.format()},m.getObjectUrl=function(t,e){return e?"/"!==e[e.length-1]&&(e+="/"):e=this.options.endpoint.format(),e+this._escape(this._objectName(t))},m._objectUrl=function(t){return this._getReqUrl({bucket:this.options.bucket,object:t})},m.generateObjectUrl=function(t,e){if(e)"/"!==e[e.length-1]&&(e+="/");else{e=this.options.endpoint.format();var n=c.parse(e),i=this.options.bucket;n.hostname=i+"."+n.hostname,n.host=i+"."+n.host,e=n.format()}return e+this._escape(this._objectName(t))},m._objectRequestParams=function(t,e,n){if(!this.options.bucket)throw new Error("Please create a bucket first");n=n||{};var i={object:e=this._objectName(e),bucket:this.options.bucket,method:t,subres:n&&n.subres,timeout:n&&n.timeout,ctx:n&&n.ctx};return n.headers&&(i.headers={},h(n.headers).to(i.headers)),i},m._objectName=function(t){return t.replace(/^\/+/,"")},m._statFile=function(t){return function(e){l.stat(t,e)}},m._convertMetaToHeaders=function(t,e){t&&(0,r.default)(t).forEach((function(n){e["x-oss-meta-"+n]=t[n]}))},m._deleteFileSafe=function(t){return function(e){l.exists(t,(function(n){n?l.unlink(t,(function(n){n&&a("unlink %j error: %s",t,n),e()})):e()}))}}},{"../common/callback":7,"../common/signUtils":9,"babel-runtime/core-js/object/keys":23,"babel-runtime/regenerator":33,"copy-to":43,debug:155,fs:36,"is-type-of":165,mime:242,path:170,url:203,utility:243}],5:[function(t,e,n){"use strict";n.version="5.3.1"},{}],6:[function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function r(t){return t&&"function"==typeof t.next&&"function"==typeof t.throw}function o(t){if(!t)return!1;var e=t.constructor;return!!e&&("GeneratorFunction"===e.name||"GeneratorFunction"===e.displayName||r(e.prototype)||r(t.prototype))}function a(t,e){var n=new t(e),i=(0,u.default)(n),r=(0,u.default)((0,l.default)(n));i.concat(r).forEach((function(t){o(n[t])?this[t]=c.wrap(n[t]).bind(n):this[t]=n[t]}),this)}function s(t){if(!(this instanceof s))return new s(t);a.call(this,h,t)}var l=i(t("babel-runtime/core-js/object/get-prototype-of")),u=i(t("babel-runtime/core-js/object/keys")),c=t("co"),h=t("./client");e.exports=s,s.STS=function t(e){if(!(this instanceof t))return new t(e);a.call(this,h.STS,e)}},{"./client":2,"babel-runtime/core-js/object/get-prototype-of":22,"babel-runtime/core-js/object/keys":23,co:41}],7:[function(t,e,n){(function(e){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}var r=i(t("babel-runtime/core-js/object/keys")),o=i(t("babel-runtime/core-js/json/stringify"));n.encodeCallback=function(t,n){if(t.headers=t.headers||{},!Object.prototype.hasOwnProperty.call(t.headers,"x-oss-callback")&&n.callback){var i={callbackUrl:encodeURI(n.callback.url),callbackBody:n.callback.body};n.callback.host&&(i.callbackHost=n.callback.host),n.callback.contentType&&(i.callbackBodyType=n.callback.contentType);var a=new e((0,o.default)(i)).toString("base64");if(t.headers["x-oss-callback"]=a,n.callback.customValue){var s={};(0,r.default)(n.callback.customValue).forEach((function(t){s["x:"+t]=n.callback.customValue[t]})),t.headers["x-oss-callback-var"]=new e((0,o.default)(s)).toString("base64")}}}}).call(this,t("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":17,"babel-runtime/core-js/object/keys":23,buffer:38}],8:[function(t,e,n){"use strict";var i=function(t){return t&&t.__esModule?t:{default:t}}(t("babel-runtime/regenerator")),r=t("copy-to"),o=t("./callback"),a=n;a.listUploads=i.default.mark((function t(e,n){var o,a,s,l;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o={},r(n=n||{}).to(o),o.subres="uploads",(a=this._objectRequestParams("GET","",o)).query=e,a.xmlResponse=!0,a.successStatuses=[200],t.next=10,this.request(a);case 10:return s=t.sent,l=s.data.Upload||[],Array.isArray(l)||(l=[l]),l=l.map((function(t){return{name:t.Key,uploadId:t.UploadId,initiated:t.Initiated}})),t.abrupt("return",{res:s.res,uploads:l,bucket:s.data.Bucket,nextKeyMarker:s.data.NextKeyMarker,nextUploadIdMarker:s.data.NextUploadIdMarker,isTruncated:"true"===s.data.IsTruncated});case 15:case"end":return t.stop()}}),t,this)})),a.listParts=i.default.mark((function t(e,n,o,a){var s,l,u;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return s={},r(a=a||{}).to(s),s.subres={uploadId:n},(l=this._objectRequestParams("GET",e,s)).query=o,l.xmlResponse=!0,l.successStatuses=[200],t.next=10,this.request(l);case 10:return u=t.sent,t.abrupt("return",{res:u.res,uploadId:u.data.UploadId,bucket:u.data.Bucket,name:u.data.Key,partNumberMarker:u.data.PartNumberMarker,nextPartNumberMarker:u.data.NextPartNumberMarker,maxParts:u.data.MaxParts,isTruncated:u.data.IsTruncated,parts:u.data.Part||[]});case 12:case"end":return t.stop()}}),t,this)})),a.abortMultipartUpload=i.default.mark((function t(e,n,o){var a,s,l;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.cancel(),a={},r(o=o||{}).to(a),a.subres={uploadId:n},(s=this._objectRequestParams("DELETE",e,a)).successStatuses=[204],t.next=9,this.request(s);case 9:return l=t.sent,t.abrupt("return",{res:l.res});case 11:case"end":return t.stop()}}),t,this)})),a.initMultipartUpload=i.default.mark((function t(e,n){var o,a,s;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o={},r(n=n||{}).to(o),o.headers=o.headers||{},this._convertMetaToHeaders(n.meta,o.headers),o.subres="uploads",(a=this._objectRequestParams("POST",e,o)).mime=n.mime,a.xmlResponse=!0,a.successStatuses=[200],t.next=12,this.request(a);case 12:return s=t.sent,t.abrupt("return",{res:s.res,bucket:s.data.Bucket,name:s.data.Key,uploadId:s.data.UploadId});case 14:case"end":return t.stop()}}),t,this)})),a.uploadPart=i.default.mark((function t(e,n,r,o,a,s,l){var u;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return u={stream:this._createStream(o,a,s),size:s-a},t.next=3,this._uploadPart(e,n,r,u,l);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t,this)})),a.completeMultipartUpload=i.default.mark((function t(e,n,a,s){var l,u,c,h,d,f,p,g;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(l=a.concat().sort((function(t,e){return t.number-e.number})).filter((function(t,e,n){return!e||t.number!==n[e-1].number})),u='<?xml version="1.0" encoding="UTF-8"?>\n<CompleteMultipartUpload>\n',c=0;c<l.length;c++)h=l[c],u+="<Part>\n",u+="<PartNumber>"+h.number+"</PartNumber>\n",u+="<ETag>"+h.etag+"</ETag>\n",u+="</Part>\n";return u+="</CompleteMultipartUpload>",d={},r(s=s||{}).to(d),d.subres={uploadId:n},f=this._objectRequestParams("POST",e,d),o.encodeCallback(f,d),f.mime="xml",f.content=u,f.headers&&f.headers["x-oss-callback"]||(f.xmlResponse=!0),f.successStatuses=[200],t.next=16,this.request(f);case 16:return p=t.sent,g={res:p.res,bucket:f.bucket,name:e,etag:p.res.headers.etag},f.headers&&f.headers["x-oss-callback"]&&(g.data=JSON.parse(p.data.toString())),t.abrupt("return",g);case 20:case"end":return t.stop()}}),t,this)})),a._uploadPart=i.default.mark((function t(e,n,o,a,s){var l,u,c;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return l={},r(s=s||{}).to(l),l.headers={"Content-Length":a.size},l.subres={partNumber:o,uploadId:n},(u=this._objectRequestParams("PUT",e,l)).mime=l.mime,u.stream=a.stream,u.successStatuses=[200],t.next=11,this.request(u);case 11:return c=t.sent,a.stream=null,u.stream=null,t.abrupt("return",{name:e,etag:c.res.headers.etag,res:c.res});case 15:case"end":return t.stop()}}),t,this)}))},{"./callback":7,"babel-runtime/regenerator":33,"copy-to":43}],9:[function(t,e,n){(function(e){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}var r=i(t("babel-runtime/core-js/json/stringify")),o=i(t("babel-runtime/core-js/object/keys")),a=t("./../../shims/crypto/crypto.js"),s=t("is-type-of");n.buildCanonicalizedResource=function(t,e){var n=""+t,i="?";return s.string(e)&&""!==e.trim()?n+=i+e:s.array(e)?(e.sort(),n+=i+e.join("&")):e&&(0,o.default)(e).sort((function(t,e){return t[0]>e[0]?1:t[0]<e[0]?-1:0})).forEach((function(t){n+=i+t,e[t]&&(n+="="+e[t]),i="&"})),n},n.buildCanonicalString=function(t,e,n,i){var r=(n=n||{}).headers||{},a=[],s={},l=[t.toUpperCase(),r["Content-Md5"]||"",r["Content-Type"]||r["Content-Type".toLowerCase()],i||r["x-oss-date"]];return(0,o.default)(r).forEach((function(t){var e=t.toLowerCase();0===e.indexOf("x-oss-")&&(s[e]=String(r[t]).trim())})),(0,o.default)(s).sort().forEach((function(t){a.push(t+":"+s[t])})),(l=l.concat(a)).push(this.buildCanonicalizedResource(e,n.parameters)),l.join("\n")},n.computeSignature=function(t,n){return a.createHmac("sha1",t).update(new e(n,"utf8")).digest("base64")},n.authorization=function(t,e,n){return"OSS "+t+":"+this.computeSignature(e,n)},n._signatureForURL=function(t,n,i,a){var s={},l={};if(n.process&&(l["x-oss-process"]=n.process),n.response&&(0,o.default)(n.response).forEach((function(t){var e="response-"+t.toLowerCase();l[e]=n.response[t]})),(0,o.default)(n).forEach((function(t){var e=t.toLowerCase(),i=n[t];0===e.indexOf("x-oss-")?s[e]=i:0===e.indexOf("content-md5")||0===e.indexOf("content-type")?s[t]=i:"expires"!==e&&"response"!==e&&"process"!==e&&"method"!==e&&(l[e]=i)})),Object.prototype.hasOwnProperty.call(n,"security-token")&&(l["security-token"]=n["security-token"]),Object.prototype.hasOwnProperty.call(n,"callback")){var u={callbackUrl:encodeURI(n.callback.url),callbackBody:n.callback.body};if(n.callback.host&&(u.callbackHost=n.callback.host),n.callback.contentType&&(u.callbackBodyType=n.callback.contentType),l.callback=new e((0,r.default)(u)).toString("base64"),n.callback.customValue){var c={};(0,o.default)(n.callback.customValue).forEach((function(t){c["x:"+t]=n.callback.customValue[t]})),l["callback-var"]=new e((0,r.default)(c)).toString("base64")}}var h=this.buildCanonicalString(n.method,i,{headers:s,parameters:l},a.toString());return{Signature:this.computeSignature(t,h),subResource:l}}}).call(this,t("buffer").Buffer)},{"./../../shims/crypto/crypto.js":237,"babel-runtime/core-js/json/stringify":17,"babel-runtime/core-js/object/keys":23,buffer:38,"is-type-of":165}],10:[function(t,e,n){"use strict";var i=function(t){return t&&t.__esModule?t:{default:t}}(t("babel-runtime/regenerator")),r=t("co"),o=t("co-priority-queue"),a=t("any-promise"),s=n;s._thunkPool=function(t,e){function n(t,e){++u===t.length&&e(c)}function s(t,e){function n(){var n;return i.default.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:n=void 0;case 1:if(l.isCancel()){i.next=9;break}return i.next=4,u.next();case 4:return n=i.sent,i.next=7,n();case 7:i.next=1;break;case 9:(h+=1)===t&&(u.fns=[],u.buffer=[],e(c));case 11:case"end":return i.stop()}}),s,this)}function a(t){console.error(t.stack)}for(var s=i.default.mark(n),u=new o,h=0,d=0;d<t;d++)r(n).catch(a);return function(t,e){return function(n){u.push(i.default.mark((function e(){return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.t0=n,e.next=4,t;case 4:e.t1=e.sent,(0,e.t0)(null,e.t1),e.next=11;break;case 8:e.prev=8,e.t2=e.catch(0),n(e.t2);case 11:case"end":return e.stop()}}),e,this,[[0,8]])})),e)}}}var l=this,u=0,c=[];return new a((function(o){function a(e){return i.default.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,h(t[e]);case 2:n(t,o);case 3:case"end":return i.stop()}}),u,this)}function l(e){c.push(e),n(t,o)}for(var u=i.default.mark(a),h=new s(e,o),d=0;d<t.length;d++)r(a(d)).catch(l)}))},s.cancel=function(){this.options.cancelFlag=!0},s.isCancel=function(){return this.options.cancelFlag},s.resetCancelFlag=function(){this.options.cancelFlag=!1}},{"any-promise":13,"babel-runtime/regenerator":33,co:41,"co-priority-queue":40}],11:[function(t,e,n){"use strict";n._isIP=function(t){return/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/.test(t)||/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/.test(t)}},{}],12:[function(t,e,n){function i(){}e.exports=i,e.exports.HttpsAgent=i},{}],13:[function(t,e,n){e.exports=t("./register")().Promise},{"./register":15}],14:[function(t,e,n){"use strict";var i=null;e.exports=function(t,e){return function(n,r){n=n||null;var o=!1!==(r=r||{}).global;if(null===i&&o&&(i=t["@@any-promise/REGISTRATION"]||null),null!==i&&null!==n&&i.implementation!==n)throw new Error('any-promise already defined as "'+i.implementation+'". You can only register an implementation before the first call to require("any-promise") and an implementation cannot be changed');return null===i&&(i=null!==n&&void 0!==r.Promise?{Promise:r.Promise,implementation:n}:e(n),o&&(t["@@any-promise/REGISTRATION"]=i)),i}}},{}],15:[function(t,e,n){"use strict";e.exports=t("./loader")(window,(function(){if(void 0===window.Promise)throw new Error("any-promise browser requires a polyfill or explicit registration e.g: require('any-promise/register/bluebird')");return{Promise:window.Promise,implementation:"window.Promise"}}))},{"./loader":14}],16:[function(t,e,n){e.exports={default:t("core-js/library/fn/array/from"),__esModule:!0}},{"core-js/library/fn/array/from":44}],17:[function(t,e,n){e.exports={default:t("core-js/library/fn/json/stringify"),__esModule:!0}},{"core-js/library/fn/json/stringify":45}],18:[function(t,e,n){e.exports={default:t("core-js/library/fn/object/assign"),__esModule:!0}},{"core-js/library/fn/object/assign":46}],19:[function(t,e,n){e.exports={default:t("core-js/library/fn/object/create"),__esModule:!0}},{"core-js/library/fn/object/create":47}],20:[function(t,e,n){e.exports={default:t("core-js/library/fn/object/define-property"),__esModule:!0}},{"core-js/library/fn/object/define-property":48}],21:[function(t,e,n){e.exports={default:t("core-js/library/fn/object/get-own-property-names"),__esModule:!0}},{"core-js/library/fn/object/get-own-property-names":49}],22:[function(t,e,n){e.exports={default:t("core-js/library/fn/object/get-prototype-of"),__esModule:!0}},{"core-js/library/fn/object/get-prototype-of":50}],23:[function(t,e,n){e.exports={default:t("core-js/library/fn/object/keys"),__esModule:!0}},{"core-js/library/fn/object/keys":51}],24:[function(t,e,n){e.exports={default:t("core-js/library/fn/promise"),__esModule:!0}},{"core-js/library/fn/promise":52}],25:[function(t,e,n){e.exports={default:t("core-js/library/fn/set-immediate"),__esModule:!0}},{"core-js/library/fn/set-immediate":53}],26:[function(t,e,n){e.exports={default:t("core-js/library/fn/string/from-code-point"),__esModule:!0}},{"core-js/library/fn/string/from-code-point":54}],27:[function(t,e,n){e.exports={default:t("core-js/library/fn/symbol"),__esModule:!0}},{"core-js/library/fn/symbol":56}],28:[function(t,e,n){e.exports={default:t("core-js/library/fn/symbol/has-instance"),__esModule:!0}},{"core-js/library/fn/symbol/has-instance":55}],29:[function(t,e,n){e.exports={default:t("core-js/library/fn/symbol/iterator"),__esModule:!0}},{"core-js/library/fn/symbol/iterator":57}],30:[function(t,e,n){"use strict";n.__esModule=!0,n.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},{}],31:[function(t,e,n){"use strict";n.__esModule=!0;var i=function(t){return t&&t.__esModule?t:{default:t}}(t("../core-js/object/define-property"));n.default=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,i.default)(t,r.key,r)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}()},{"../core-js/object/define-property":20}],32:[function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=i(t("../core-js/symbol/iterator")),o=i(t("../core-js/symbol")),a="function"==typeof o.default&&"symbol"==typeof r.default?function(t){return typeof t}:function(t){return t&&"function"==typeof o.default&&t.constructor===o.default&&t!==o.default.prototype?"symbol":typeof t};n.default="function"==typeof o.default&&"symbol"===a(r.default)?function(t){return void 0===t?"undefined":a(t)}:function(t){return t&&"function"==typeof o.default&&t.constructor===o.default&&t!==o.default.prototype?"symbol":void 0===t?"undefined":a(t)}},{"../core-js/symbol":27,"../core-js/symbol/iterator":29}],33:[function(t,e,n){e.exports=t("regenerator-runtime")},{"regenerator-runtime":191}],34:[function(t,e,n){"use strict";function i(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function r(t){return a[t>>18&63]+a[t>>12&63]+a[t>>6&63]+a[63&t]}function o(t,e,n){for(var i,o=[],a=e;a<n;a+=3)i=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(255&t[a+2]),o.push(r(i));return o.join("")}n.byteLength=function(t){var e=i(t),n=e[0],r=e[1];return 3*(n+r)/4-r},n.toByteArray=function(t){for(var e,n=i(t),r=n[0],o=n[1],a=new l(function(t,e,n){return 3*(e+n)/4-n}(0,r,o)),u=0,c=o>0?r-4:r,h=0;h<c;h+=4)e=s[t.charCodeAt(h)]<<18|s[t.charCodeAt(h+1)]<<12|s[t.charCodeAt(h+2)]<<6|s[t.charCodeAt(h+3)],a[u++]=e>>16&255,a[u++]=e>>8&255,a[u++]=255&e;return 2===o&&(e=s[t.charCodeAt(h)]<<2|s[t.charCodeAt(h+1)]>>4,a[u++]=255&e),1===o&&(e=s[t.charCodeAt(h)]<<10|s[t.charCodeAt(h+1)]<<4|s[t.charCodeAt(h+2)]>>2,a[u++]=e>>8&255,a[u++]=255&e),a},n.fromByteArray=function(t){for(var e,n=t.length,i=n%3,r=[],s=0,l=n-i;s<l;s+=16383)r.push(o(t,s,s+16383>l?l:s+16383));return 1===i?(e=t[n-1],r.push(a[e>>2]+a[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],r.push(a[e>>10]+a[e>>4&63]+a[e<<2&63]+"=")),r.join("")};for(var a=[],s=[],l="undefined"!=typeof Uint8Array?Uint8Array:Array,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,h=u.length;c<h;++c)a[c]=u[c],s[u.charCodeAt(c)]=c;s["-".charCodeAt(0)]=62,s["_".charCodeAt(0)]=63},{}],35:[function(t,e,n){!function(t,n,i){void 0!==e&&e.exports?e.exports=i():t.bowser=i()}(this,0,(function(){function t(t){function e(e){var n=t.match(e);return n&&n.length>1&&n[1]||""}function n(e){var n=t.match(e);return n&&n.length>1&&n[2]||""}var i,r=e(/(ipod|iphone|ipad)/i).toLowerCase(),a=!/like android/i.test(t)&&/android/i.test(t),s=/nexus\s*[0-6]\s*/i.test(t),l=!s&&/nexus\s*[0-9]+/i.test(t),u=/CrOS/.test(t),c=/silk/i.test(t),h=/sailfish/i.test(t),d=/tizen/i.test(t),f=/(web|hpw)os/i.test(t),p=/windows phone/i.test(t),g=(/SamsungBrowser/i.test(t),!p&&/windows/i.test(t)),m=!r&&!c&&/macintosh/i.test(t),v=!a&&!h&&!d&&!f&&/linux/i.test(t),y=n(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),w=e(/version\/(\d+(\.\d+)?)/i),b=/tablet/i.test(t)&&!/tablet pc/i.test(t),x=!b&&/[^-]mobi/i.test(t),S=/xbox/i.test(t);/opera/i.test(t)?i={name:"Opera",opera:o,version:w||e(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(t)?i={name:"Opera",opera:o,version:e(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||w}:/SamsungBrowser/i.test(t)?i={name:"Samsung Internet for Android",samsungBrowser:o,version:w||e(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/coast/i.test(t)?i={name:"Opera Coast",coast:o,version:w||e(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/yabrowser/i.test(t)?i={name:"Yandex Browser",yandexbrowser:o,version:w||e(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(t)?i={name:"UC Browser",ucbrowser:o,version:e(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(t)?i={name:"Maxthon",maxthon:o,version:e(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(t)?i={name:"Epiphany",epiphany:o,version:e(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(t)?i={name:"Puffin",puffin:o,version:e(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(t)?i={name:"Sleipnir",sleipnir:o,version:e(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(t)?i={name:"K-Meleon",kMeleon:o,version:e(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:p?(i={name:"Windows Phone",osname:"Windows Phone",windowsphone:o},y?(i.msedge=o,i.version=y):(i.msie=o,i.version=e(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(t)?i={name:"Internet Explorer",msie:o,version:e(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:u?i={name:"Chrome",osname:"Chrome OS",chromeos:o,chromeBook:o,chrome:o,version:e(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(t)?i={name:"Microsoft Edge",msedge:o,version:y}:/vivaldi/i.test(t)?i={name:"Vivaldi",vivaldi:o,version:e(/vivaldi\/(\d+(\.\d+)?)/i)||w}:h?i={name:"Sailfish",osname:"Sailfish OS",sailfish:o,version:e(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(t)?i={name:"SeaMonkey",seamonkey:o,version:e(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(t)?(i={name:"Firefox",firefox:o,version:e(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(t)&&(i.firefoxos=o,i.osname="Firefox OS")):c?i={name:"Amazon Silk",silk:o,version:e(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(t)?i={name:"PhantomJS",phantom:o,version:e(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(t)?i={name:"SlimerJS",slimer:o,version:e(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(t)||/rim\stablet/i.test(t)?i={name:"BlackBerry",osname:"BlackBerry OS",blackberry:o,version:w||e(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:f?(i={name:"WebOS",osname:"WebOS",webos:o,version:w||e(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(t)&&(i.touchpad=o)):/bada/i.test(t)?i={name:"Bada",osname:"Bada",bada:o,version:e(/dolfin\/(\d+(\.\d+)?)/i)}:d?i={name:"Tizen",osname:"Tizen",tizen:o,version:e(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||w}:/qupzilla/i.test(t)?i={name:"QupZilla",qupzilla:o,version:e(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||w}:/chromium/i.test(t)?i={name:"Chromium",chromium:o,version:e(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||w}:/chrome|crios|crmo/i.test(t)?i={name:"Chrome",chrome:o,version:e(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:a?i={name:"Android",version:w}:/safari|applewebkit/i.test(t)?(i={name:"Safari",safari:o},w&&(i.version=w)):r?(i={name:"iphone"==r?"iPhone":"ipad"==r?"iPad":"iPod"},w&&(i.version=w)):i=/googlebot/i.test(t)?{name:"Googlebot",googlebot:o,version:e(/googlebot\/(\d+(\.\d+))/i)||w}:{name:e(/^(.*)\/(.*) /),version:n(/^(.*)\/(.*) /)},!i.msedge&&/(apple)?webkit/i.test(t)?(/(apple)?webkit\/537\.36/i.test(t)?(i.name=i.name||"Blink",i.blink=o):(i.name=i.name||"Webkit",i.webkit=o),!i.version&&w&&(i.version=w)):!i.opera&&/gecko\//i.test(t)&&(i.name=i.name||"Gecko",i.gecko=o,i.version=i.version||e(/gecko\/(\d+(\.\d+)?)/i)),i.windowsphone||!a&&!i.silk?!i.windowsphone&&r?(i[r]=o,i.ios=o,i.osname="iOS"):m?(i.mac=o,i.osname="macOS"):S?(i.xbox=o,i.osname="Xbox"):g?(i.windows=o,i.osname="Windows"):v&&(i.linux=o,i.osname="Linux"):(i.android=o,i.osname="Android");var P="";i.windows?P=function(t){switch(t){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}(e(/Windows ((NT|XP)( \d\d?.\d)?)/i)):i.windowsphone?P=e(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):i.mac?P=(P=e(/Mac OS X (\d+([_\.\s]\d+)*)/i)).replace(/[_\s]/g,"."):r?P=(P=e(/os (\d+([_\s]\d+)*) like mac os x/i)).replace(/[_\s]/g,"."):a?P=e(/android[ \/-](\d+(\.\d+)*)/i):i.webos?P=e(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):i.blackberry?P=e(/rim\stablet\sos\s(\d+(\.\d+)*)/i):i.bada?P=e(/bada\/(\d+(\.\d+)*)/i):i.tizen&&(P=e(/tizen[\/\s](\d+(\.\d+)*)/i)),P&&(i.osversion=P);var k=!i.windows&&P.split(".")[0];return b||l||"ipad"==r||a&&(3==k||k>=4&&!x)||i.silk?i.tablet=o:(x||"iphone"==r||"ipod"==r||a||s||i.blackberry||i.webos||i.bada)&&(i.mobile=o),i.msedge||i.msie&&i.version>=10||i.yandexbrowser&&i.version>=15||i.vivaldi&&i.version>=1||i.chrome&&i.version>=20||i.samsungBrowser&&i.version>=4||i.firefox&&i.version>=20||i.safari&&i.version>=6||i.opera&&i.version>=10||i.ios&&i.osversion&&i.osversion.split(".")[0]>=6||i.blackberry&&i.version>=10.1||i.chromium&&i.version>=20?i.a=o:i.msie&&i.version<10||i.chrome&&i.version<20||i.firefox&&i.version<20||i.safari&&i.version<6||i.opera&&i.version<10||i.ios&&i.osversion&&i.osversion.split(".")[0]<6||i.chromium&&i.version<20?i.c=o:i.x=o,i}function e(t){return t.split(".").length}function n(t,e){var n,i=[];if(Array.prototype.map)return Array.prototype.map.call(t,e);for(n=0;n<t.length;n++)i.push(e(t[n]));return i}function i(t){for(var i=Math.max(e(t[0]),e(t[1])),r=n(t,(function(t){var r=i-e(t);return n((t+=new Array(r+1).join(".0")).split("."),(function(t){return new Array(20-t.length).join("0")+t})).reverse()}));--i>=0;){if(r[0][i]>r[1][i])return 1;if(r[0][i]!==r[1][i])return-1;if(0===i)return 0}}function r(e,n,r){var o=a;"string"==typeof n&&(r=n,n=void 0),void 0===n&&(n=!1),r&&(o=t(r));var s=""+o.version;for(var l in e)if(e.hasOwnProperty(l)&&o[l]){if("string"!=typeof e[l])throw new Error("Browser version in the minVersion map should be a string: "+l+": "+String(e));return i([s,e[l]])<0}return n}var o=!0,a=t("undefined"!=typeof navigator&&navigator.userAgent||"");return a.test=function(t){for(var e=0;e<t.length;++e){var n=t[e];if("string"==typeof n&&n in a)return!0}return!1},a.isUnsupportedBrowser=r,a.compareVersions=i,a.check=function(t,e,n){return!r(t,e,n)},a._detect=t,a.detect=t,a}))},{}],36:[function(t,e,n){},{}],37:[function(t,e,n){function i(t){return t.toString(this.encoding)}function r(t){this.charReceived=t.length%2,this.charLength=this.charReceived?2:0}function o(t){this.charReceived=t.length%3,this.charLength=this.charReceived?3:0}var a=t("buffer").Buffer,s=a.isEncoding||function(t){switch(t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},l=n.StringDecoder=function(t){switch(this.encoding=(t||"utf8").toLowerCase().replace(/[-_]/,""),function(t){if(t&&!s(t))throw new Error("Unknown encoding: "+t)}(t),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=r;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=o;break;default:return void(this.write=i)}this.charBuffer=new a(6),this.charReceived=0,this.charLength=0};l.prototype.write=function(t){for(var e="";this.charLength;){var n=t.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:t.length;if(t.copy(this.charBuffer,this.charReceived,0,n),this.charReceived+=n,this.charReceived<this.charLength)return"";if(t=t.slice(n,t.length),!((i=(e=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(e.length-1))>=55296&&i<=56319)){if(this.charReceived=this.charLength=0,0===t.length)return e;break}this.charLength+=this.surrogateSize,e=""}this.detectIncompleteChar(t);var i,r=t.length;if(this.charLength&&(t.copy(this.charBuffer,0,t.length-this.charReceived,r),r-=this.charReceived),r=(e+=t.toString(this.encoding,0,r)).length-1,(i=e.charCodeAt(r))>=55296&&i<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),t.copy(this.charBuffer,0,0,o),e.substring(0,r)}return e},l.prototype.detectIncompleteChar=function(t){for(var e=t.length>=3?3:t.length;e>0;e--){var n=t[t.length-e];if(1==e&&n>>5==6){this.charLength=2;break}if(e<=2&&n>>4==14){this.charLength=3;break}if(e<=3&&n>>3==30){this.charLength=4;break}}this.charReceived=e},l.prototype.end=function(t){var e="";if(t&&t.length&&(e=this.write(t)),this.charReceived){var n=this.charReceived,i=this.charBuffer,r=this.encoding;e+=i.slice(0,n).toString(r)}return e}},{buffer:38}],38:[function(t,e,i){(function(e){"use strict";function n(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function r(t,e){if(n()<e)throw new RangeError("Invalid typed array length");return o.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=o.prototype:(null===t&&(t=new o(e)),t.length=e),t}function o(t,e,n){if(!(o.TYPED_ARRAY_SUPPORT||this instanceof o))return new o(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return l(this,t)}return a(this,t,e,n)}function a(t,e,n,i){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,i){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(i||0))throw new RangeError("'length' is out of bounds");return e=void 0===n&&void 0===i?new Uint8Array(e):void 0===i?new Uint8Array(e,n):new Uint8Array(e,n,i),o.TYPED_ARRAY_SUPPORT?(t=e).__proto__=o.prototype:t=u(t,e),t}(t,e,n,i):"string"==typeof e?function(t,e,n){if("string"==typeof n&&""!==n||(n="utf8"),!o.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var i=0|h(e,n),a=(t=r(t,i)).write(e,n);return a!==i&&(t=t.slice(0,a)),t}(t,e,n):function(t,e){if(o.isBuffer(e)){var n=0|c(e.length);return 0===(t=r(t,n)).length||e.copy(t,0,0,n),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||function(t){return t!=t}(e.length)?r(t,0):u(t,e);if("Buffer"===e.type&&U(e.data))return u(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function s(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function l(t,e){if(s(e),t=r(t,e<0?0:0|c(e)),!o.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function u(t,e){var n=e.length<0?0:0|c(e.length);t=r(t,n);for(var i=0;i<n;i+=1)t[i]=255&e[i];return t}function c(t){if(t>=n())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n().toString(16)+" bytes");return 0|t}function h(t,e){if(o.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return D(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return R(t).length;default:if(i)return D(t).length;e=(""+e).toLowerCase(),i=!0}}function d(t,e,n){var i=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return A(this,e,n);case"utf8":case"utf-8":return P(this,e,n);case"ascii":return k(this,e,n);case"latin1":case"binary":return C(this,e,n);case"base64":return S(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,e,n);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}function f(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function p(t,e,n,i,r){if(0===t.length)return-1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(r)return-1;n=t.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof e&&(e=o.from(e,i)),o.isBuffer(e))return 0===e.length?-1:g(t,e,n,i,r);if("number"==typeof e)return e&=255,o.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):g(t,[e],n,i,r);throw new TypeError("val must be string, number or Buffer")}function g(t,e,n,i,r){function o(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}var a,s=1,l=t.length,u=e.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return-1;s=2,l/=2,u/=2,n/=2}if(r){var c=-1;for(a=n;a<l;a++)if(o(t,a)===o(e,-1===c?0:a-c)){if(-1===c&&(c=a),a-c+1===u)return c*s}else-1!==c&&(a-=a-c),c=-1}else for(n+u>l&&(n=l-u),a=n;a>=0;a--){for(var h=!0,d=0;d<u;d++)if(o(t,a+d)!==o(e,d)){h=!1;break}if(h)return a}return-1}function m(t,e,n,i){n=Number(n)||0;var r=t.length-n;i?(i=Number(i))>r&&(i=r):i=r;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");i>o/2&&(i=o/2);for(var a=0;a<i;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[n+a]=s}return a}function v(t,e,n,i){return F(D(e,t.length-n),t,n,i)}function y(t,e,n,i){return F(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,i)}function w(t,e,n,i){return y(t,e,n,i)}function b(t,e,n,i){return F(R(e),t,n,i)}function x(t,e,n,i){return F(function(t,e){for(var n,i,r,o=[],a=0;a<t.length&&!((e-=2)<0);++a)n=t.charCodeAt(a),i=n>>8,r=n%256,o.push(r),o.push(i);return o}(e,t.length-n),t,n,i)}function S(t,e,n){return 0===e&&n===t.length?z.fromByteArray(t):z.fromByteArray(t.slice(e,n))}function P(t,e,n){n=Math.min(t.length,n);for(var i=[],r=e;r<n;){var o,a,s,l,u=t[r],c=null,h=u>239?4:u>223?3:u>191?2:1;if(r+h<=n)switch(h){case 1:u<128&&(c=u);break;case 2:128==(192&(o=t[r+1]))&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=t[r+1],a=t[r+2],128==(192&o)&&128==(192&a)&&(l=(15&u)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=t[r+1],a=t[r+2],s=t[r+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,h=1):c>65535&&(c-=65536,i.push(c>>>10&1023|55296),c=56320|1023&c),i.push(c),r+=h}return function(t){var e=t.length;if(e<=H)return String.fromCharCode.apply(String,t);for(var n="",i=0;i<e;)n+=String.fromCharCode.apply(String,t.slice(i,i+=H));return n}(i)}function k(t,e,n){var i="";n=Math.min(t.length,n);for(var r=e;r<n;++r)i+=String.fromCharCode(127&t[r]);return i}function C(t,e,n){var i="";n=Math.min(t.length,n);for(var r=e;r<n;++r)i+=String.fromCharCode(t[r]);return i}function A(t,e,n){var i=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>i)&&(n=i);for(var r="",o=e;o<n;++o)r+=O(t[o]);return r}function M(t,e,n){for(var i=t.slice(e,n),r="",o=0;o<i.length;o+=2)r+=String.fromCharCode(i[o]+256*i[o+1]);return r}function E(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function L(t,e,n,i,r,a){if(!o.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||e<a)throw new RangeError('"value" argument is out of bounds');if(n+i>t.length)throw new RangeError("Index out of range")}function T(t,e,n,i){e<0&&(e=65535+e+1);for(var r=0,o=Math.min(t.length-n,2);r<o;++r)t[n+r]=(e&255<<8*(i?r:1-r))>>>8*(i?r:1-r)}function N(t,e,n,i){e<0&&(e=4294967295+e+1);for(var r=0,o=Math.min(t.length-n,4);r<o;++r)t[n+r]=e>>>8*(i?r:3-r)&255}function j(t,e,n,i,r,o){if(n+i>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function I(t,e,n,i,r){return r||j(t,0,n,4),G.write(t,e,n,i,23,4),n+4}function B(t,e,n,i,r){return r||j(t,0,n,8),G.write(t,e,n,i,52,8),n+8}function O(t){return t<16?"0"+t.toString(16):t.toString(16)}function D(t,e){e=e||1/0;for(var n,i=t.length,r=null,o=[],a=0;a<i;++a){if((n=t.charCodeAt(a))>55295&&n<57344){if(!r){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===i){(e-=3)>-1&&o.push(239,191,189);continue}r=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(e-=3)>-1&&o.push(239,191,189);if(r=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function R(t){return z.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(_,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function F(t,e,n,i){for(var r=0;r<i&&!(r+n>=e.length||r>=t.length);++r)e[r+n]=t[r];return r}var z=t("base64-js"),G=t("ieee754"),U=t("isarray");i.Buffer=o,i.SlowBuffer=function(t){return+t!=t&&(t=0),o.alloc(+t)},i.INSPECT_MAX_BYTES=50,o.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),i.kMaxLength=n(),o.poolSize=8192,o._augment=function(t){return t.__proto__=o.prototype,t},o.from=function(t,e,n){return a(null,t,e,n)},o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0})),o.alloc=function(t,e,n){return function(t,e,n,i){return s(e),e<=0?r(t,e):void 0!==n?"string"==typeof i?r(t,e).fill(n,i):r(t,e).fill(n):r(t,e)}(null,t,e,n)},o.allocUnsafe=function(t){return l(null,t)},o.allocUnsafeSlow=function(t){return l(null,t)},o.isBuffer=function(t){return!(null==t||!t._isBuffer)},o.compare=function(t,e){if(!o.isBuffer(t)||!o.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,i=e.length,r=0,a=Math.min(n,i);r<a;++r)if(t[r]!==e[r]){n=t[r],i=e[r];break}return n<i?-1:i<n?1:0},o.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(t,e){if(!U(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return o.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var i=o.allocUnsafe(e),r=0;for(n=0;n<t.length;++n){var a=t[n];if(!o.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(i,r),r+=a.length}return i},o.byteLength=h,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)f(this,e,e+1);return this},o.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)f(this,e,e+3),f(this,e+1,e+2);return this},o.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)f(this,e,e+7),f(this,e+1,e+6),f(this,e+2,e+5),f(this,e+3,e+4);return this},o.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?P(this,0,t):d.apply(this,arguments)},o.prototype.equals=function(t){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===o.compare(this,t)},o.prototype.inspect=function(){var t="",e=i.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,e).match(/.{2}/g).join(" "),this.length>e&&(t+=" ... ")),"<Buffer "+t+">"},o.prototype.compare=function(t,e,n,i,r){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),e<0||n>t.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&e>=n)return 0;if(i>=r)return-1;if(e>=n)return 1;if(this===t)return 0;for(var a=(r>>>=0)-(i>>>=0),s=(n>>>=0)-(e>>>=0),l=Math.min(a,s),u=this.slice(i,r),c=t.slice(e,n),h=0;h<l;++h)if(u[h]!==c[h]){a=u[h],s=c[h];break}return a<s?-1:s<a?1:0},o.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},o.prototype.indexOf=function(t,e,n){return p(this,t,e,n,!0)},o.prototype.lastIndexOf=function(t,e,n){return p(this,t,e,n,!1)},o.prototype.write=function(t,e,n,i){if(void 0===e)i="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)i=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}var r=this.length-e;if((void 0===n||n>r)&&(n=r),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return m(this,t,e,n);case"utf8":case"utf-8":return v(this,t,e,n);case"ascii":return y(this,t,e,n);case"latin1":case"binary":return w(this,t,e,n);case"base64":return b(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var H=4096;o.prototype.slice=function(t,e){var n,i=this.length;if((t=~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),(e=void 0===e?i:~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),e<t&&(e=t),o.TYPED_ARRAY_SUPPORT)(n=this.subarray(t,e)).__proto__=o.prototype;else{var r=e-t;n=new o(r,void 0);for(var a=0;a<r;++a)n[a]=this[a+t]}return n},o.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||E(t,e,this.length);for(var i=this[t],r=1,o=0;++o<e&&(r*=256);)i+=this[t+o]*r;return i},o.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||E(t,e,this.length);for(var i=this[t+--e],r=1;e>0&&(r*=256);)i+=this[t+--e]*r;return i},o.prototype.readUInt8=function(t,e){return e||E(t,1,this.length),this[t]},o.prototype.readUInt16LE=function(t,e){return e||E(t,2,this.length),this[t]|this[t+1]<<8},o.prototype.readUInt16BE=function(t,e){return e||E(t,2,this.length),this[t]<<8|this[t+1]},o.prototype.readUInt32LE=function(t,e){return e||E(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},o.prototype.readUInt32BE=function(t,e){return e||E(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},o.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||E(t,e,this.length);for(var i=this[t],r=1,o=0;++o<e&&(r*=256);)i+=this[t+o]*r;return i>=(r*=128)&&(i-=Math.pow(2,8*e)),i},o.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||E(t,e,this.length);for(var i=e,r=1,o=this[t+--i];i>0&&(r*=256);)o+=this[t+--i]*r;return o>=(r*=128)&&(o-=Math.pow(2,8*e)),o},o.prototype.readInt8=function(t,e){return e||E(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},o.prototype.readInt16LE=function(t,e){e||E(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt16BE=function(t,e){e||E(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt32LE=function(t,e){return e||E(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},o.prototype.readInt32BE=function(t,e){return e||E(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},o.prototype.readFloatLE=function(t,e){return e||E(t,4,this.length),G.read(this,t,!0,23,4)},o.prototype.readFloatBE=function(t,e){return e||E(t,4,this.length),G.read(this,t,!1,23,4)},o.prototype.readDoubleLE=function(t,e){return e||E(t,8,this.length),G.read(this,t,!0,52,8)},o.prototype.readDoubleBE=function(t,e){return e||E(t,8,this.length),G.read(this,t,!1,52,8)},o.prototype.writeUIntLE=function(t,e,n,i){t=+t,e|=0,n|=0,i||L(this,t,e,n,Math.pow(2,8*n)-1,0);var r=1,o=0;for(this[e]=255&t;++o<n&&(r*=256);)this[e+o]=t/r&255;return e+n},o.prototype.writeUIntBE=function(t,e,n,i){t=+t,e|=0,n|=0,i||L(this,t,e,n,Math.pow(2,8*n)-1,0);var r=n-1,o=1;for(this[e+r]=255&t;--r>=0&&(o*=256);)this[e+r]=t/o&255;return e+n},o.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,1,255,0),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},o.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):T(this,t,e,!0),e+2},o.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):T(this,t,e,!1),e+2},o.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):N(this,t,e,!0),e+4},o.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):N(this,t,e,!1),e+4},o.prototype.writeIntLE=function(t,e,n,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);L(this,t,e,n,r-1,-r)}var o=0,a=1,s=0;for(this[e]=255&t;++o<n&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},o.prototype.writeIntBE=function(t,e,n,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);L(this,t,e,n,r-1,-r)}var o=n-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},o.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,1,127,-128),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},o.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):T(this,t,e,!0),e+2},o.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):T(this,t,e,!1),e+2},o.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):N(this,t,e,!0),e+4},o.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):N(this,t,e,!1),e+4},o.prototype.writeFloatLE=function(t,e,n){return I(this,t,e,!0,n)},o.prototype.writeFloatBE=function(t,e,n){return I(this,t,e,!1,n)},o.prototype.writeDoubleLE=function(t,e,n){return B(this,t,e,!0,n)},o.prototype.writeDoubleBE=function(t,e,n){return B(this,t,e,!1,n)},o.prototype.copy=function(t,e,n,i){if(n||(n=0),i||0===i||(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i<n&&(i=n),i===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e<i-n&&(i=t.length-e+n);var r,a=i-n;if(this===t&&n<e&&e<i)for(r=a-1;r>=0;--r)t[r+e]=this[r+n];else if(a<1e3||!o.TYPED_ARRAY_SUPPORT)for(r=0;r<a;++r)t[r+e]=this[r+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+a),e);return a},o.prototype.fill=function(t,e,n,i){if("string"==typeof t){if("string"==typeof e?(i=e,e=0,n=this.length):"string"==typeof n&&(i=n,n=this.length),1===t.length){var r=t.charCodeAt(0);r<256&&(t=r)}if(void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!o.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var a;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(a=e;a<n;++a)this[a]=t;else{var s=o.isBuffer(t)?t:D(new o(t,i).toString()),l=s.length;for(a=0;a<n-e;++a)this[a+e]=s[a%l]}return this};var _=/[^+\/0-9A-Za-z-_]/g}).call(this,void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"base64-js":34,ieee754:161,isarray:166}],39:[function(t,e,n){e.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],40:[function(t,e,n){"use strict";var i=function(){this.buffer=[],this.fns=[]};i.prototype.push=function(t,e){if(this.fns.length)return this.fns.shift()(null,t);var n={data:t,priority:e},i=r(this.buffer,n,(function(t){return t.priority}));this.buffer.splice(i,0,n)},i.prototype.next=function(){var t=this;return function(e){if(t.buffer.length)return e(null,t.buffer.pop().data);t.fns.push(e)}};var r=function(t,e,n){e=n(e);for(var i=0,r=t?t.length:i;i<r;){var o=i+r>>>1;n(t[o])<e?i=o+1:r=o}return i};e.exports=i},{}],41:[function(t,e,n){function i(t){var e=this,n=c.call(arguments,1);return new Promise((function(i,o){function a(e){var n;try{n=t.next(e)}catch(t){return o(t)}u(n)}function s(e){var n;try{n=t.throw(e)}catch(t){return o(t)}u(n)}function u(t){if(t.done)return i(t.value);var n=r.call(e,t.value);return n&&l(n)?n.then(a,s):s(new TypeError('You may only yield a function, promise, generator, array, or object, but the following object was passed: "'+String(t.value)+'"'))}if("function"==typeof t&&(t=t.apply(e,n)),!t||"function"!=typeof t.next)return i(t);a()}))}function r(t){return t?l(t)?t:function(t){var e=t.constructor;return!!e&&("GeneratorFunction"===e.name||"GeneratorFunction"===e.displayName||u(e.prototype))}(t)||u(t)?i.call(this,t):"function"==typeof t?o.call(this,t):Array.isArray(t)?a.call(this,t):function(t){return Object==t.constructor}(t)?s.call(this,t):t:t}function o(t){var e=this;return new Promise((function(n,i){t.call(e,(function(t,e){if(t)return i(t);arguments.length>2&&(e=c.call(arguments,1)),n(e)}))}))}function a(t){return Promise.all(t.map(r,this))}function s(t){for(var e=new t.constructor,n=Object.keys(t),i=[],o=0;o<n.length;o++){var a=n[o],s=r.call(this,t[a]);s&&l(s)?function(t,n){e[n]=void 0,i.push(t.then((function(t){e[n]=t})))}(s,a):e[a]=t[a]}return Promise.all(i).then((function(){return e}))}function l(t){return"function"==typeof t.then}function u(t){return"function"==typeof t.next&&"function"==typeof t.throw}var c=Array.prototype.slice;e.exports=i.default=i.co=i,i.wrap=function(t){function e(){return i.call(this,t.apply(this,arguments))}return e.__generatorFunction__=t,e}},{}],42:[function(t,e,n){e.exports={O_RDONLY:0,O_WRONLY:1,O_RDWR:2,S_IFMT:61440,S_IFREG:32768,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960,S_IFSOCK:49152,O_CREAT:512,O_EXCL:2048,O_NOCTTY:131072,O_TRUNC:1024,O_APPEND:8,O_DIRECTORY:1048576,O_NOFOLLOW:256,O_SYNC:128,O_SYMLINK:2097152,O_NONBLOCK:4,S_IRWXU:448,S_IRUSR:256,S_IWUSR:128,S_IXUSR:64,S_IRWXG:56,S_IRGRP:32,S_IWGRP:16,S_IXGRP:8,S_IRWXO:7,S_IROTH:4,S_IWOTH:2,S_IXOTH:1,E2BIG:7,EACCES:13,EADDRINUSE:48,EADDRNOTAVAIL:49,EAFNOSUPPORT:47,EAGAIN:35,EALREADY:37,EBADF:9,EBADMSG:94,EBUSY:16,ECANCELED:89,ECHILD:10,ECONNABORTED:53,ECONNREFUSED:61,ECONNRESET:54,EDEADLK:11,EDESTADDRREQ:39,EDOM:33,EDQUOT:69,EEXIST:17,EFAULT:14,EFBIG:27,EHOSTUNREACH:65,EIDRM:90,EILSEQ:92,EINPROGRESS:36,EINTR:4,EINVAL:22,EIO:5,EISCONN:56,EISDIR:21,ELOOP:62,EMFILE:24,EMLINK:31,EMSGSIZE:40,EMULTIHOP:95,ENAMETOOLONG:63,ENETDOWN:50,ENETRESET:52,ENETUNREACH:51,ENFILE:23,ENOBUFS:55,ENODATA:96,ENODEV:19,ENOENT:2,ENOEXEC:8,ENOLCK:77,ENOLINK:97,ENOMEM:12,ENOMSG:91,ENOPROTOOPT:42,ENOSPC:28,ENOSR:98,ENOSTR:99,ENOSYS:78,ENOTCONN:57,ENOTDIR:20,ENOTEMPTY:66,ENOTSOCK:38,ENOTSUP:45,ENOTTY:25,ENXIO:6,EOPNOTSUPP:102,EOVERFLOW:84,EPERM:1,EPIPE:32,EPROTO:100,EPROTONOSUPPORT:43,EPROTOTYPE:41,ERANGE:34,EROFS:30,ESPIPE:29,ESRCH:3,ESTALE:70,ETIME:101,ETIMEDOUT:60,ETXTBSY:26,EWOULDBLOCK:35,EXDEV:18,SIGHUP:1,SIGINT:2,SIGQUIT:3,SIGILL:4,SIGTRAP:5,SIGABRT:6,SIGIOT:6,SIGBUS:10,SIGFPE:8,SIGKILL:9,SIGUSR1:30,SIGSEGV:11,SIGUSR2:31,SIGPIPE:13,SIGALRM:14,SIGTERM:15,SIGCHLD:20,SIGCONT:19,SIGSTOP:17,SIGTSTP:18,SIGTTIN:21,SIGTTOU:22,SIGURG:16,SIGXCPU:24,SIGXFSZ:25,SIGVTALRM:26,SIGPROF:27,SIGWINCH:28,SIGIO:23,SIGSYS:12,SSL_OP_ALL:2147486719,SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION:262144,SSL_OP_CIPHER_SERVER_PREFERENCE:4194304,SSL_OP_CISCO_ANYCONNECT:32768,SSL_OP_COOKIE_EXCHANGE:8192,SSL_OP_CRYPTOPRO_TLSEXT_BUG:2147483648,SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS:2048,SSL_OP_EPHEMERAL_RSA:0,SSL_OP_LEGACY_SERVER_CONNECT:4,SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER:32,SSL_OP_MICROSOFT_SESS_ID_BUG:1,SSL_OP_MSIE_SSLV2_RSA_PADDING:0,SSL_OP_NETSCAPE_CA_DN_BUG:536870912,SSL_OP_NETSCAPE_CHALLENGE_BUG:2,SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG:1073741824,SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG:8,SSL_OP_NO_COMPRESSION:131072,SSL_OP_NO_QUERY_MTU:4096,SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION:65536,SSL_OP_NO_SSLv2:16777216,SSL_OP_NO_SSLv3:33554432,SSL_OP_NO_TICKET:16384,SSL_OP_NO_TLSv1:67108864,SSL_OP_NO_TLSv1_1:268435456,SSL_OP_NO_TLSv1_2:134217728,SSL_OP_PKCS1_CHECK_1:0,SSL_OP_PKCS1_CHECK_2:0,SSL_OP_SINGLE_DH_USE:1048576,SSL_OP_SINGLE_ECDH_USE:524288,SSL_OP_SSLEAY_080_CLIENT_DH_BUG:128,SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG:0,SSL_OP_TLS_BLOCK_PADDING_BUG:512,SSL_OP_TLS_D5_BUG:256,SSL_OP_TLS_ROLLBACK_BUG:8388608,ENGINE_METHOD_DSA:2,ENGINE_METHOD_DH:4,ENGINE_METHOD_RAND:8,ENGINE_METHOD_ECDH:16,ENGINE_METHOD_ECDSA:32,ENGINE_METHOD_CIPHERS:64,ENGINE_METHOD_DIGESTS:128,ENGINE_METHOD_STORE:256,ENGINE_METHOD_PKEY_METHS:512,ENGINE_METHOD_PKEY_ASN1_METHS:1024,ENGINE_METHOD_ALL:65535,ENGINE_METHOD_NONE:0,DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6,F_OK:0,R_OK:4,W_OK:2,X_OK:1,UV_UDP_REUSEADDR:4}},{}],43:[function(t,e,n){"use strict";function i(t,e){if(!(this instanceof i))return new i(t,e);this.src=t,this._withAccess=e}function r(t,e){return void 0===t[e]&&void 0===t.__lookupGetter__(e)&&void 0===t.__lookupSetter__(e)}var o=Array.prototype.slice;e.exports=i,i.prototype.withAccess=function(t){return this._withAccess=!1!==t,this},i.prototype.pick=function(t){return Array.isArray(t)||(t=o.call(arguments)),t.length&&(this.keys=t),this},i.prototype.to=function(t){if(t=t||{},!this.src)return t;var e=this.keys||Object.keys(this.src);if(!this._withAccess){for(var n=0;n<e.length;n++)void 0===t[i=e[n]]&&(t[i]=this.src[i]);return t}for(n=0;n<e.length;n++){var i=e[n];if(r(t,i)){var o=this.src.__lookupGetter__(i),a=this.src.__lookupSetter__(i);o&&t.__defineGetter__(i,o),a&&t.__defineSetter__(i,a),o||a||(t[i]=this.src[i])}}return t},i.prototype.toCover=function(t){for(var e=this.keys||Object.keys(this.src),n=0;n<e.length;n++){var i=e[n];delete t[i];var r=this.src.__lookupGetter__(i),o=this.src.__lookupSetter__(i);r&&t.__defineGetter__(i,r),o&&t.__defineSetter__(i,o),r||o||(t[i]=this.src[i])}},i.prototype.override=i.prototype.toCover,i.prototype.and=function(t){var e={};return this.to(e),this.src=t,this.to(e),this.src=e,this}},{}],44:[function(t,e,n){t("../../modules/es6.string.iterator"),t("../../modules/es6.array.from"),e.exports=t("../../modules/_core").Array.from},{"../../modules/_core":65,"../../modules/es6.array.from":133,"../../modules/es6.string.iterator":145}],45:[function(t,e,n){var i=t("../../modules/_core"),r=i.JSON||(i.JSON={stringify:JSON.stringify});e.exports=function(t){return r.stringify.apply(r,arguments)}},{"../../modules/_core":65}],46:[function(t,e,n){t("../../modules/es6.object.assign"),e.exports=t("../../modules/_core").Object.assign},{"../../modules/_core":65,"../../modules/es6.object.assign":136}],47:[function(t,e,n){t("../../modules/es6.object.create");var i=t("../../modules/_core").Object;e.exports=function(t,e){return i.create(t,e)}},{"../../modules/_core":65,"../../modules/es6.object.create":137}],48:[function(t,e,n){t("../../modules/es6.object.define-property");var i=t("../../modules/_core").Object;e.exports=function(t,e,n){return i.defineProperty(t,e,n)}},{"../../modules/_core":65,"../../modules/es6.object.define-property":138}],49:[function(t,e,n){t("../../modules/es6.object.get-own-property-names");var i=t("../../modules/_core").Object;e.exports=function(t){return i.getOwnPropertyNames(t)}},{"../../modules/_core":65,"../../modules/es6.object.get-own-property-names":139}],50:[function(t,e,n){t("../../modules/es6.object.get-prototype-of"),e.exports=t("../../modules/_core").Object.getPrototypeOf},{"../../modules/_core":65,"../../modules/es6.object.get-prototype-of":140}],51:[function(t,e,n){t("../../modules/es6.object.keys"),e.exports=t("../../modules/_core").Object.keys},{"../../modules/_core":65,"../../modules/es6.object.keys":141}],52:[function(t,e,n){t("../modules/es6.object.to-string"),t("../modules/es6.string.iterator"),t("../modules/web.dom.iterable"),t("../modules/es6.promise"),t("../modules/es7.promise.finally"),t("../modules/es7.promise.try"),e.exports=t("../modules/_core").Promise},{"../modules/_core":65,"../modules/es6.object.to-string":142,"../modules/es6.promise":143,"../modules/es6.string.iterator":145,"../modules/es7.promise.finally":147,"../modules/es7.promise.try":148,"../modules/web.dom.iterable":151}],53:[function(t,e,n){t("../modules/web.immediate"),e.exports=t("../modules/_core").setImmediate},{"../modules/_core":65,"../modules/web.immediate":152}],54:[function(t,e,n){t("../../modules/es6.string.from-code-point"),e.exports=t("../../modules/_core").String.fromCodePoint},{"../../modules/_core":65,"../../modules/es6.string.from-code-point":144}],55:[function(t,e,n){t("../../modules/es6.function.has-instance"),e.exports=t("../../modules/_wks-ext").f("hasInstance")},{"../../modules/_wks-ext":130,"../../modules/es6.function.has-instance":135}],56:[function(t,e,n){t("../../modules/es6.symbol"),t("../../modules/es6.object.to-string"),t("../../modules/es7.symbol.async-iterator"),t("../../modules/es7.symbol.observable"),e.exports=t("../../modules/_core").Symbol},{"../../modules/_core":65,"../../modules/es6.object.to-string":142,"../../modules/es6.symbol":146,"../../modules/es7.symbol.async-iterator":149,"../../modules/es7.symbol.observable":150}],57:[function(t,e,n){t("../../modules/es6.string.iterator"),t("../../modules/web.dom.iterable"),e.exports=t("../../modules/_wks-ext").f("iterator")},{"../../modules/_wks-ext":130,"../../modules/es6.string.iterator":145,"../../modules/web.dom.iterable":151}],58:[function(t,e,n){e.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},{}],59:[function(t,e,n){e.exports=function(){}},{}],60:[function(t,e,n){e.exports=function(t,e,n,i){if(!(t instanceof e)||void 0!==i&&i in t)throw TypeError(n+": incorrect invocation!");return t}},{}],61:[function(t,e,n){var i=t("./_is-object");e.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},{"./_is-object":85}],62:[function(t,e,n){var i=t("./_to-iobject"),r=t("./_to-length"),o=t("./_to-absolute-index");e.exports=function(t){return function(e,n,a){var s,l=i(e),u=r(l.length),c=o(a,u);if(t&&n!=n){for(;u>c;)if((s=l[c++])!=s)return!0}else for(;u>c;c++)if((t||c in l)&&l[c]===n)return t||c||0;return!t&&-1}}},{"./_to-absolute-index":121,"./_to-iobject":123,"./_to-length":124}],63:[function(t,e,n){var i=t("./_cof"),r=t("./_wks")("toStringTag"),o="Arguments"==i(function(){return arguments}());e.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),r))?n:o?i(e):"Object"==(a=i(e))&&"function"==typeof e.callee?"Arguments":a}},{"./_cof":64,"./_wks":131}],64:[function(t,e,n){var i={}.toString;e.exports=function(t){return i.call(t).slice(8,-1)}},{}],65:[function(t,e,n){var i=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=i)},{}],66:[function(t,e,n){"use strict";var i=t("./_object-dp"),r=t("./_property-desc");e.exports=function(t,e,n){e in t?i.f(t,e,r(0,n)):t[e]=n}},{"./_object-dp":98,"./_property-desc":111}],67:[function(t,e,n){var i=t("./_a-function");e.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}return function(){return t.apply(e,arguments)}}},{"./_a-function":58}],68:[function(t,e,n){e.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},{}],69:[function(t,e,n){e.exports=!t("./_fails")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},{"./_fails":74}],70:[function(t,e,n){var i=t("./_is-object"),r=t("./_global").document,o=i(r)&&i(r.createElement);e.exports=function(t){return o?r.createElement(t):{}}},{"./_global":76,"./_is-object":85}],71:[function(t,e,n){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],72:[function(t,e,n){var i=t("./_object-keys"),r=t("./_object-gops"),o=t("./_object-pie");e.exports=function(t){var e=i(t),n=r.f;if(n)for(var a,s=n(t),l=o.f,u=0;s.length>u;)l.call(t,a=s[u++])&&e.push(a);return e}},{"./_object-gops":103,"./_object-keys":106,"./_object-pie":107}],73:[function(t,e,n){var i=t("./_global"),r=t("./_core"),o=t("./_ctx"),a=t("./_hide"),s=t("./_has"),l=function(t,e,n){var u,c,h,d=t&l.F,f=t&l.G,p=t&l.S,g=t&l.P,m=t&l.B,v=t&l.W,y=f?r:r[e]||(r[e]={}),w=y.prototype,b=f?i:p?i[e]:(i[e]||{}).prototype;for(u in f&&(n=e),n)(c=!d&&b&&void 0!==b[u])&&s(y,u)||(h=c?b[u]:n[u],y[u]=f&&"function"!=typeof b[u]?n[u]:m&&c?o(h,i):v&&b[u]==h?function(t){var e=function(e,n,i){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,i)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(h):g&&"function"==typeof h?o(Function.call,h):h,g&&((y.virtual||(y.virtual={}))[u]=h,t&l.R&&w&&!w[u]&&a(w,u,h)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},{"./_core":65,"./_ctx":67,"./_global":76,"./_has":77,"./_hide":78}],74:[function(t,e,n){e.exports=function(t){try{return!!t()}catch(t){return!0}}},{}],75:[function(t,e,n){var i=t("./_ctx"),r=t("./_iter-call"),o=t("./_is-array-iter"),a=t("./_an-object"),s=t("./_to-length"),l=t("./core.get-iterator-method"),u={},c={};n=e.exports=function(t,e,n,h,d){var f,p,g,m,v=d?function(){return t}:l(t),y=i(n,h,e?2:1),w=0;if("function"!=typeof v)throw TypeError(t+" is not iterable!");if(o(v)){for(f=s(t.length);f>w;w++)if((m=e?y(a(p=t[w])[0],p[1]):y(t[w]))===u||m===c)return m}else for(g=v.call(t);!(p=g.next()).done;)if((m=r(g,y,p.value,e))===u||m===c)return m},n.BREAK=u,n.RETURN=c},{"./_an-object":61,"./_ctx":67,"./_is-array-iter":83,"./_iter-call":86,"./_to-length":124,"./core.get-iterator-method":132}],76:[function(t,e,n){var i=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=i)},{}],77:[function(t,e,n){var i={}.hasOwnProperty;e.exports=function(t,e){return i.call(t,e)}},{}],78:[function(t,e,n){var i=t("./_object-dp"),r=t("./_property-desc");e.exports=t("./_descriptors")?function(t,e,n){return i.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},{"./_descriptors":69,"./_object-dp":98,"./_property-desc":111}],79:[function(t,e,n){var i=t("./_global").document;e.exports=i&&i.documentElement},{"./_global":76}],80:[function(t,e,n){e.exports=!t("./_descriptors")&&!t("./_fails")((function(){return 7!=Object.defineProperty(t("./_dom-create")("div"),"a",{get:function(){return 7}}).a}))},{"./_descriptors":69,"./_dom-create":70,"./_fails":74}],81:[function(t,e,n){e.exports=function(t,e,n){var i=void 0===n;switch(e.length){case 0:return i?t():t.call(n);case 1:return i?t(e[0]):t.call(n,e[0]);case 2:return i?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return i?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return i?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},{}],82:[function(t,e,n){var i=t("./_cof");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},{"./_cof":64}],83:[function(t,e,n){var i=t("./_iterators"),r=t("./_wks")("iterator"),o=Array.prototype;e.exports=function(t){return void 0!==t&&(i.Array===t||o[r]===t)}},{"./_iterators":91,"./_wks":131}],84:[function(t,e,n){var i=t("./_cof");e.exports=Array.isArray||function(t){return"Array"==i(t)}},{"./_cof":64}],85:[function(t,e,n){e.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},{}],86:[function(t,e,n){var i=t("./_an-object");e.exports=function(t,e,n,r){try{return r?e(i(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&i(o.call(t)),e}}},{"./_an-object":61}],87:[function(t,e,n){"use strict";var i=t("./_object-create"),r=t("./_property-desc"),o=t("./_set-to-string-tag"),a={};t("./_hide")(a,t("./_wks")("iterator"),(function(){return this})),e.exports=function(t,e,n){t.prototype=i(a,{next:r(1,n)}),o(t,e+" Iterator")}},{"./_hide":78,"./_object-create":97,"./_property-desc":111,"./_set-to-string-tag":115,"./_wks":131}],88:[function(t,e,n){"use strict";var i=t("./_library"),r=t("./_export"),o=t("./_redefine"),a=t("./_hide"),s=t("./_iterators"),l=t("./_iter-create"),u=t("./_set-to-string-tag"),c=t("./_object-gpo"),h=t("./_wks")("iterator"),d=!([].keys&&"next"in[].keys()),f=function(){return this};e.exports=function(t,e,n,p,g,m,v){l(n,e,p);var y,w,b,x=function(t){if(!d&&t in C)return C[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},S=e+" Iterator",P="values"==g,k=!1,C=t.prototype,A=C[h]||C["@@iterator"]||g&&C[g],M=A||x(g),E=g?P?x("entries"):M:void 0,L="Array"==e&&C.entries||A;if(L&&(b=c(L.call(new t)))!==Object.prototype&&b.next&&(u(b,S,!0),i||"function"==typeof b[h]||a(b,h,f)),P&&A&&"values"!==A.name&&(k=!0,M=function(){return A.call(this)}),i&&!v||!d&&!k&&C[h]||a(C,h,M),s[e]=M,s[S]=f,g)if(y={values:P?M:x("values"),keys:m?M:x("keys"),entries:E},v)for(w in y)w in C||o(C,w,y[w]);else r(r.P+r.F*(d||k),e,y);return y}},{"./_export":73,"./_hide":78,"./_iter-create":87,"./_iterators":91,"./_library":92,"./_object-gpo":104,"./_redefine":113,"./_set-to-string-tag":115,"./_wks":131}],89:[function(t,e,n){var i=t("./_wks")("iterator"),r=!1;try{var o=[7][i]();o.return=function(){r=!0},Array.from(o,(function(){throw 2}))}catch(t){}e.exports=function(t,e){if(!e&&!r)return!1;var n=!1;try{var o=[7],a=o[i]();a.next=function(){return{done:n=!0}},o[i]=function(){return a},t(o)}catch(t){}return n}},{"./_wks":131}],90:[function(t,e,n){e.exports=function(t,e){return{value:e,done:!!t}}},{}],91:[function(t,e,n){e.exports={}},{}],92:[function(t,e,n){e.exports=!0},{}],93:[function(t,e,n){var i=t("./_uid")("meta"),r=t("./_is-object"),o=t("./_has"),a=t("./_object-dp").f,s=0,l=Object.isExtensible||function(){return!0},u=!t("./_fails")((function(){return l(Object.preventExtensions({}))})),c=function(t){a(t,i,{value:{i:"O"+ ++s,w:{}}})},h=e.exports={KEY:i,NEED:!1,fastKey:function(t,e){if(!r(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,i)){if(!l(t))return"F";if(!e)return"E";c(t)}return t[i].i},getWeak:function(t,e){if(!o(t,i)){if(!l(t))return!0;if(!e)return!1;c(t)}return t[i].w},onFreeze:function(t){return u&&h.NEED&&l(t)&&!o(t,i)&&c(t),t}}},{"./_fails":74,"./_has":77,"./_is-object":85,"./_object-dp":98,"./_uid":127}],94:[function(t,e,n){var i=t("./_global"),r=t("./_task").set,o=i.MutationObserver||i.WebKitMutationObserver,a=i.process,s=i.Promise,l="process"==t("./_cof")(a);e.exports=function(){var t,e,n,u=function(){var i,r;for(l&&(i=a.domain)&&i.exit();t;){r=t.fn,t=t.next;try{r()}catch(i){throw t?n():e=void 0,i}}e=void 0,i&&i.enter()};if(l)n=function(){a.nextTick(u)};else if(!o||i.navigator&&i.navigator.standalone)if(s&&s.resolve){var c=s.resolve(void 0);n=function(){c.then(u)}}else n=function(){r.call(i,u)};else{var h=!0,d=document.createTextNode("");new o(u).observe(d,{characterData:!0}),n=function(){d.data=h=!h}}return function(i){var r={fn:i,next:void 0};e&&(e.next=r),t||(t=r,n()),e=r}}},{"./_cof":64,"./_global":76,"./_task":120}],95:[function(t,e,n){"use strict";function i(t){var e,n;this.promise=new t((function(t,i){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=i})),this.resolve=r(e),this.reject=r(n)}var r=t("./_a-function");e.exports.f=function(t){return new i(t)}},{"./_a-function":58}],96:[function(t,e,n){"use strict";var i=t("./_object-keys"),r=t("./_object-gops"),o=t("./_object-pie"),a=t("./_to-object"),s=t("./_iobject"),l=Object.assign;e.exports=!l||t("./_fails")((function(){var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach((function(t){e[t]=t})),7!=l({},t)[n]||Object.keys(l({},e)).join("")!=i}))?function(t,e){for(var n=a(t),l=arguments.length,u=1,c=r.f,h=o.f;l>u;)for(var d,f=s(arguments[u++]),p=c?i(f).concat(c(f)):i(f),g=p.length,m=0;g>m;)h.call(f,d=p[m++])&&(n[d]=f[d]);return n}:l},{"./_fails":74,"./_iobject":82,"./_object-gops":103,"./_object-keys":106,"./_object-pie":107,"./_to-object":125}],97:[function(t,e,n){var i=t("./_an-object"),r=t("./_object-dps"),o=t("./_enum-bug-keys"),a=t("./_shared-key")("IE_PROTO"),s=function(){},l=function(){var e,n=t("./_dom-create")("iframe"),i=o.length;for(n.style.display="none",t("./_html").appendChild(n),n.src="javascript:",(e=n.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),l=e.F;i--;)delete l.prototype[o[i]];return l()};e.exports=Object.create||function(t,e){var n;return null!==t?(s.prototype=i(t),n=new s,s.prototype=null,n[a]=t):n=l(),void 0===e?n:r(n,e)}},{"./_an-object":61,"./_dom-create":70,"./_enum-bug-keys":71,"./_html":79,"./_object-dps":99,"./_shared-key":116}],98:[function(t,e,n){var i=t("./_an-object"),r=t("./_ie8-dom-define"),o=t("./_to-primitive"),a=Object.defineProperty;n.f=t("./_descriptors")?Object.defineProperty:function(t,e,n){if(i(t),e=o(e,!0),i(n),r)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},{"./_an-object":61,"./_descriptors":69,"./_ie8-dom-define":80,"./_to-primitive":126}],99:[function(t,e,n){var i=t("./_object-dp"),r=t("./_an-object"),o=t("./_object-keys");e.exports=t("./_descriptors")?Object.defineProperties:function(t,e){r(t);for(var n,a=o(e),s=a.length,l=0;s>l;)i.f(t,n=a[l++],e[n]);return t}},{"./_an-object":61,"./_descriptors":69,"./_object-dp":98,"./_object-keys":106}],100:[function(t,e,n){var i=t("./_object-pie"),r=t("./_property-desc"),o=t("./_to-iobject"),a=t("./_to-primitive"),s=t("./_has"),l=t("./_ie8-dom-define"),u=Object.getOwnPropertyDescriptor;n.f=t("./_descriptors")?u:function(t,e){if(t=o(t),e=a(e,!0),l)try{return u(t,e)}catch(t){}if(s(t,e))return r(!i.f.call(t,e),t[e])}},{"./_descriptors":69,"./_has":77,"./_ie8-dom-define":80,"./_object-pie":107,"./_property-desc":111,"./_to-iobject":123,"./_to-primitive":126}],101:[function(t,e,n){var i=t("./_to-iobject"),r=t("./_object-gopn").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(t){return a&&"[object Window]"==o.call(t)?function(t){try{return r(t)}catch(t){return a.slice()}}(t):r(i(t))}},{"./_object-gopn":102,"./_to-iobject":123}],102:[function(t,e,n){var i=t("./_object-keys-internal"),r=t("./_enum-bug-keys").concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return i(t,r)}},{"./_enum-bug-keys":71,"./_object-keys-internal":105}],103:[function(t,e,n){n.f=Object.getOwnPropertySymbols},{}],104:[function(t,e,n){var i=t("./_has"),r=t("./_to-object"),o=t("./_shared-key")("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(t){return t=r(t),i(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},{"./_has":77,"./_shared-key":116,"./_to-object":125}],105:[function(t,e,n){var i=t("./_has"),r=t("./_to-iobject"),o=t("./_array-includes")(!1),a=t("./_shared-key")("IE_PROTO");e.exports=function(t,e){var n,s=r(t),l=0,u=[];for(n in s)n!=a&&i(s,n)&&u.push(n);for(;e.length>l;)i(s,n=e[l++])&&(~o(u,n)||u.push(n));return u}},{"./_array-includes":62,"./_has":77,"./_shared-key":116,"./_to-iobject":123}],106:[function(t,e,n){var i=t("./_object-keys-internal"),r=t("./_enum-bug-keys");e.exports=Object.keys||function(t){return i(t,r)}},{"./_enum-bug-keys":71,"./_object-keys-internal":105}],107:[function(t,e,n){n.f={}.propertyIsEnumerable},{}],108:[function(t,e,n){var i=t("./_export"),r=t("./_core"),o=t("./_fails");e.exports=function(t,e){var n=(r.Object||{})[t]||Object[t],a={};a[t]=e(n),i(i.S+i.F*o((function(){n(1)})),"Object",a)}},{"./_core":65,"./_export":73,"./_fails":74}],109:[function(t,e,n){e.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},{}],110:[function(t,e,n){var i=t("./_an-object"),r=t("./_is-object"),o=t("./_new-promise-capability");e.exports=function(t,e){if(i(t),r(e)&&e.constructor===t)return e;var n=o.f(t);return(0,n.resolve)(e),n.promise}},{"./_an-object":61,"./_is-object":85,"./_new-promise-capability":95}],111:[function(t,e,n){e.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},{}],112:[function(t,e,n){var i=t("./_hide");e.exports=function(t,e,n){for(var r in e)n&&t[r]?t[r]=e[r]:i(t,r,e[r]);return t}},{"./_hide":78}],113:[function(t,e,n){e.exports=t("./_hide")},{"./_hide":78}],114:[function(t,e,n){"use strict";var i=t("./_global"),r=t("./_core"),o=t("./_object-dp"),a=t("./_descriptors"),s=t("./_wks")("species");e.exports=function(t){var e="function"==typeof r[t]?r[t]:i[t];a&&e&&!e[s]&&o.f(e,s,{configurable:!0,get:function(){return this}})}},{"./_core":65,"./_descriptors":69,"./_global":76,"./_object-dp":98,"./_wks":131}],115:[function(t,e,n){var i=t("./_object-dp").f,r=t("./_has"),o=t("./_wks")("toStringTag");e.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,o)&&i(t,o,{configurable:!0,value:e})}},{"./_has":77,"./_object-dp":98,"./_wks":131}],116:[function(t,e,n){var i=t("./_shared")("keys"),r=t("./_uid");e.exports=function(t){return i[t]||(i[t]=r(t))}},{"./_shared":117,"./_uid":127}],117:[function(t,e,n){var i=t("./_core"),r=t("./_global"),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});(e.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:i.version,mode:t("./_library")?"pure":"global",copyright:"漏 2018 Denis Pushkarev (zloirock.ru)"})},{"./_core":65,"./_global":76,"./_library":92}],118:[function(t,e,n){var i=t("./_an-object"),r=t("./_a-function"),o=t("./_wks")("species");e.exports=function(t,e){var n,a=i(t).constructor;return void 0===a||null==(n=i(a)[o])?e:r(n)}},{"./_a-function":58,"./_an-object":61,"./_wks":131}],119:[function(t,e,n){var i=t("./_to-integer"),r=t("./_defined");e.exports=function(t){return function(e,n){var o,a,s=String(r(e)),l=i(n),u=s.length;return l<0||l>=u?t?"":void 0:(o=s.charCodeAt(l))<55296||o>56319||l+1===u||(a=s.charCodeAt(l+1))<56320||a>57343?t?s.charAt(l):o:t?s.slice(l,l+2):a-56320+(o-55296<<10)+65536}}},{"./_defined":68,"./_to-integer":122}],120:[function(t,e,n){var i,r,o,a=t("./_ctx"),s=t("./_invoke"),l=t("./_html"),u=t("./_dom-create"),c=t("./_global"),h=c.process,d=c.setImmediate,f=c.clearImmediate,p=c.MessageChannel,g=c.Dispatch,m=0,v={},y=function(){var t=+this;if(v.hasOwnProperty(t)){var e=v[t];delete v[t],e()}},w=function(t){y.call(t.data)};d&&f||(d=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return v[++m]=function(){s("function"==typeof t?t:Function(t),e)},i(m),m},f=function(t){delete v[t]},"process"==t("./_cof")(h)?i=function(t){h.nextTick(a(y,t,1))}:g&&g.now?i=function(t){g.now(a(y,t,1))}:p?(o=(r=new p).port2,r.port1.onmessage=w,i=a(o.postMessage,o,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(i=function(t){c.postMessage(t+"","*")},c.addEventListener("message",w,!1)):i="onreadystatechange"in u("script")?function(t){l.appendChild(u("script")).onreadystatechange=function(){l.removeChild(this),y.call(t)}}:function(t){setTimeout(a(y,t,1),0)}),e.exports={set:d,clear:f}},{"./_cof":64,"./_ctx":67,"./_dom-create":70,"./_global":76,"./_html":79,"./_invoke":81}],121:[function(t,e,n){var i=t("./_to-integer"),r=Math.max,o=Math.min;e.exports=function(t,e){return(t=i(t))<0?r(t+e,0):o(t,e)}},{"./_to-integer":122}],122:[function(t,e,n){var i=Math.ceil,r=Math.floor;e.exports=function(t){return isNaN(t=+t)?0:(t>0?r:i)(t)}},{}],123:[function(t,e,n){var i=t("./_iobject"),r=t("./_defined");e.exports=function(t){return i(r(t))}},{"./_defined":68,"./_iobject":82}],124:[function(t,e,n){var i=t("./_to-integer"),r=Math.min;e.exports=function(t){return t>0?r(i(t),9007199254740991):0}},{"./_to-integer":122}],125:[function(t,e,n){var i=t("./_defined");e.exports=function(t){return Object(i(t))}},{"./_defined":68}],126:[function(t,e,n){var i=t("./_is-object");e.exports=function(t,e){if(!i(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!i(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":85}],127:[function(t,e,n){var i=0,r=Math.random();e.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++i+r).toString(36))}},{}],128:[function(t,e,n){var i=t("./_global").navigator;e.exports=i&&i.userAgent||""},{"./_global":76}],129:[function(t,e,n){var i=t("./_global"),r=t("./_core"),o=t("./_library"),a=t("./_wks-ext"),s=t("./_object-dp").f;e.exports=function(t){var e=r.Symbol||(r.Symbol=o?{}:i.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},{"./_core":65,"./_global":76,"./_library":92,"./_object-dp":98,"./_wks-ext":130}],130:[function(t,e,n){n.f=t("./_wks")},{"./_wks":131}],131:[function(t,e,n){var i=t("./_shared")("wks"),r=t("./_uid"),o=t("./_global").Symbol,a="function"==typeof o;(e.exports=function(t){return i[t]||(i[t]=a&&o[t]||(a?o:r)("Symbol."+t))}).store=i},{"./_global":76,"./_shared":117,"./_uid":127}],132:[function(t,e,n){var i=t("./_classof"),r=t("./_wks")("iterator"),o=t("./_iterators");e.exports=t("./_core").getIteratorMethod=function(t){if(null!=t)return t[r]||t["@@iterator"]||o[i(t)]}},{"./_classof":63,"./_core":65,"./_iterators":91,"./_wks":131}],133:[function(t,e,n){"use strict";var i=t("./_ctx"),r=t("./_export"),o=t("./_to-object"),a=t("./_iter-call"),s=t("./_is-array-iter"),l=t("./_to-length"),u=t("./_create-property"),c=t("./core.get-iterator-method");r(r.S+r.F*!t("./_iter-detect")((function(t){Array.from(t)})),"Array",{from:function(t){var e,n,r,h,d=o(t),f="function"==typeof this?this:Array,p=arguments.length,g=p>1?arguments[1]:void 0,m=void 0!==g,v=0,y=c(d);if(m&&(g=i(g,p>2?arguments[2]:void 0,2)),null==y||f==Array&&s(y))for(n=new f(e=l(d.length));e>v;v++)u(n,v,m?g(d[v],v):d[v]);else for(h=y.call(d),n=new f;!(r=h.next()).done;v++)u(n,v,m?a(h,g,[r.value,v],!0):r.value);return n.length=v,n}})},{"./_create-property":66,"./_ctx":67,"./_export":73,"./_is-array-iter":83,"./_iter-call":86,"./_iter-detect":89,"./_to-length":124,"./_to-object":125,"./core.get-iterator-method":132}],134:[function(t,e,n){"use strict";var i=t("./_add-to-unscopables"),r=t("./_iter-step"),o=t("./_iterators"),a=t("./_to-iobject");e.exports=t("./_iter-define")(Array,"Array",(function(t,e){this._t=a(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,r(1)):r(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},{"./_add-to-unscopables":59,"./_iter-define":88,"./_iter-step":90,"./_iterators":91,"./_to-iobject":123}],135:[function(t,e,n){"use strict";var i=t("./_is-object"),r=t("./_object-gpo"),o=t("./_wks")("hasInstance"),a=Function.prototype;o in a||t("./_object-dp").f(a,o,{value:function(t){if("function"!=typeof this||!i(t))return!1;if(!i(this.prototype))return t instanceof this;for(;t=r(t);)if(this.prototype===t)return!0;return!1}})},{"./_is-object":85,"./_object-dp":98,"./_object-gpo":104,"./_wks":131}],136:[function(t,e,n){var i=t("./_export");i(i.S+i.F,"Object",{assign:t("./_object-assign")})},{"./_export":73,"./_object-assign":96}],137:[function(t,e,n){var i=t("./_export");i(i.S,"Object",{create:t("./_object-create")})},{"./_export":73,"./_object-create":97}],138:[function(t,e,n){var i=t("./_export");i(i.S+i.F*!t("./_descriptors"),"Object",{defineProperty:t("./_object-dp").f})},{"./_descriptors":69,"./_export":73,"./_object-dp":98}],139:[function(t,e,n){t("./_object-sap")("getOwnPropertyNames",(function(){return t("./_object-gopn-ext").f}))},{"./_object-gopn-ext":101,"./_object-sap":108}],140:[function(t,e,n){var i=t("./_to-object"),r=t("./_object-gpo");t("./_object-sap")("getPrototypeOf",(function(){return function(t){return r(i(t))}}))},{"./_object-gpo":104,"./_object-sap":108,"./_to-object":125}],141:[function(t,e,n){var i=t("./_to-object"),r=t("./_object-keys");t("./_object-sap")("keys",(function(){return function(t){return r(i(t))}}))},{"./_object-keys":106,"./_object-sap":108,"./_to-object":125}],142:[function(t,e,n){arguments[4][36][0].apply(n,arguments)},{dup:36}],143:[function(t,e,n){"use strict";var i,r,o,a,s=t("./_library"),l=t("./_global"),u=t("./_ctx"),c=t("./_classof"),h=t("./_export"),d=t("./_is-object"),f=t("./_a-function"),p=t("./_an-instance"),g=t("./_for-of"),m=t("./_species-constructor"),v=t("./_task").set,y=t("./_microtask")(),w=t("./_new-promise-capability"),b=t("./_perform"),x=t("./_user-agent"),S=t("./_promise-resolve"),P=l.TypeError,k=l.process,C=k&&k.versions,A=C&&C.v8||"",M=l.Promise,E="process"==c(k),L=function(){},T=r=w.f,N=!!function(){try{var e=M.resolve(1),n=(e.constructor={})[t("./_wks")("species")]=function(t){t(L,L)};return(E||"function"==typeof PromiseRejectionEvent)&&e.then(L)instanceof n&&0!==A.indexOf("6.6")&&-1===x.indexOf("Chrome/66")}catch(t){}}(),j=function(t){var e;return!(!d(t)||"function"!=typeof(e=t.then))&&e},I=function(t,e){if(!t._n){t._n=!0;var n=t._c;y((function(){for(var i=t._v,r=1==t._s,o=0;n.length>o;)!function(e){var n,o,a,s=r?e.ok:e.fail,l=e.resolve,u=e.reject,c=e.domain;try{s?(r||(2==t._h&&D(t),t._h=1),!0===s?n=i:(c&&c.enter(),n=s(i),c&&(c.exit(),a=!0)),n===e.promise?u(P("Promise-chain cycle")):(o=j(n))?o.call(n,l,u):l(n)):u(i)}catch(t){c&&!a&&c.exit(),u(t)}}(n[o++]);t._c=[],t._n=!1,e&&!t._h&&B(t)}))}},B=function(t){v.call(l,(function(){var e,n,i,r=t._v,o=O(t);if(o&&(e=b((function(){E?k.emit("unhandledRejection",r,t):(n=l.onunhandledrejection)?n({promise:t,reason:r}):(i=l.console)&&i.error&&i.error("Unhandled promise rejection",r)})),t._h=E||O(t)?2:1),t._a=void 0,o&&e.e)throw e.v}))},O=function(t){return 1!==t._h&&0===(t._a||t._c).length},D=function(t){v.call(l,(function(){var e;E?k.emit("rejectionHandled",t):(e=l.onrejectionhandled)&&e({promise:t,reason:t._v})}))},R=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),I(e,!0))},F=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw P("Promise can't be resolved itself");(e=j(t))?y((function(){var i={_w:n,_d:!1};try{e.call(t,u(F,i,1),u(R,i,1))}catch(t){R.call(i,t)}})):(n._v=t,n._s=1,I(n,!1))}catch(t){R.call({_w:n,_d:!1},t)}}};N||(M=function(t){p(this,M,"Promise","_h"),f(t),i.call(this);try{t(u(F,this,1),u(R,this,1))}catch(t){R.call(this,t)}},(i=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=t("./_redefine-all")(M.prototype,{then:function(t,e){var n=T(m(this,M));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=E?k.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&I(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new i;this.promise=t,this.resolve=u(F,t,1),this.reject=u(R,t,1)},w.f=T=function(t){return t===M||t===a?new o(t):r(t)}),h(h.G+h.W+h.F*!N,{Promise:M}),t("./_set-to-string-tag")(M,"Promise"),t("./_set-species")("Promise"),a=t("./_core").Promise,h(h.S+h.F*!N,"Promise",{reject:function(t){var e=T(this);return(0,e.reject)(t),e.promise}}),h(h.S+h.F*(s||!N),"Promise",{resolve:function(t){return S(s&&this===a?M:this,t)}}),h(h.S+h.F*!(N&&t("./_iter-detect")((function(t){M.all(t).catch(L)}))),"Promise",{all:function(t){var e=this,n=T(e),i=n.resolve,r=n.reject,o=b((function(){var n=[],o=0,a=1;g(t,!1,(function(t){var s=o++,l=!1;n.push(void 0),a++,e.resolve(t).then((function(t){l||(l=!0,n[s]=t,--a||i(n))}),r)})),--a||i(n)}));return o.e&&r(o.v),n.promise},race:function(t){var e=this,n=T(e),i=n.reject,r=b((function(){g(t,!1,(function(t){e.resolve(t).then(n.resolve,i)}))}));return r.e&&i(r.v),n.promise}})},{"./_a-function":58,"./_an-instance":60,"./_classof":63,"./_core":65,"./_ctx":67,"./_export":73,"./_for-of":75,"./_global":76,"./_is-object":85,"./_iter-detect":89,"./_library":92,"./_microtask":94,"./_new-promise-capability":95,"./_perform":109,"./_promise-resolve":110,"./_redefine-all":112,"./_set-species":114,"./_set-to-string-tag":115,"./_species-constructor":118,"./_task":120,"./_user-agent":128,"./_wks":131}],144:[function(t,e,n){var i=t("./_export"),r=t("./_to-absolute-index"),o=String.fromCharCode,a=String.fromCodePoint;i(i.S+i.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(t){for(var e,n=[],i=arguments.length,a=0;i>a;){if(e=+arguments[a++],r(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?o(e):o(55296+((e-=65536)>>10),e%1024+56320))}return n.join("")}})},{"./_export":73,"./_to-absolute-index":121}],145:[function(t,e,n){"use strict";var i=t("./_string-at")(!0);t("./_iter-define")(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=i(e,n),this._i+=t.length,{value:t,done:!1})}))},{"./_iter-define":88,"./_string-at":119}],146:[function(t,e,n){"use strict";var i=t("./_global"),r=t("./_has"),o=t("./_descriptors"),a=t("./_export"),s=t("./_redefine"),l=t("./_meta").KEY,u=t("./_fails"),c=t("./_shared"),h=t("./_set-to-string-tag"),d=t("./_uid"),f=t("./_wks"),p=t("./_wks-ext"),g=t("./_wks-define"),m=t("./_enum-keys"),v=t("./_is-array"),y=t("./_an-object"),w=t("./_is-object"),b=t("./_to-iobject"),x=t("./_to-primitive"),S=t("./_property-desc"),P=t("./_object-create"),k=t("./_object-gopn-ext"),C=t("./_object-gopd"),A=t("./_object-dp"),M=t("./_object-keys"),E=C.f,L=A.f,T=k.f,N=i.Symbol,j=i.JSON,I=j&&j.stringify,B=f("_hidden"),O=f("toPrimitive"),D={}.propertyIsEnumerable,R=c("symbol-registry"),F=c("symbols"),z=c("op-symbols"),G=Object.prototype,U="function"==typeof N,H=i.QObject,_=!H||!H.prototype||!H.prototype.findChild,Z=o&&u((function(){return 7!=P(L({},"a",{get:function(){return L(this,"a",{value:7}).a}})).a}))?function(t,e,n){var i=E(G,e);i&&delete G[e],L(t,e,n),i&&t!==G&&L(G,e,i)}:L,W=function(t){var e=F[t]=P(N.prototype);return e._k=t,e},V=U&&"symbol"==typeof N.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof N},Y=function(t,e,n){return t===G&&Y(z,e,n),y(t),e=x(e,!0),y(n),r(F,e)?(n.enumerable?(r(t,B)&&t[B][e]&&(t[B][e]=!1),n=P(n,{enumerable:S(0,!1)})):(r(t,B)||L(t,B,S(1,{})),t[B][e]=!0),Z(t,e,n)):L(t,e,n)},X=function(t,e){y(t);for(var n,i=m(e=b(e)),r=0,o=i.length;o>r;)Y(t,n=i[r++],e[n]);return t},q=function(t){var e=D.call(this,t=x(t,!0));return!(this===G&&r(F,t)&&!r(z,t))&&(!(e||!r(this,t)||!r(F,t)||r(this,B)&&this[B][t])||e)},K=function(t,e){if(t=b(t),e=x(e,!0),t!==G||!r(F,e)||r(z,e)){var n=E(t,e);return!n||!r(F,e)||r(t,B)&&t[B][e]||(n.enumerable=!0),n}},Q=function(t){for(var e,n=T(b(t)),i=[],o=0;n.length>o;)r(F,e=n[o++])||e==B||e==l||i.push(e);return i},J=function(t){for(var e,n=t===G,i=T(n?z:b(t)),o=[],a=0;i.length>a;)!r(F,e=i[a++])||n&&!r(G,e)||o.push(F[e]);return o};U||(N=function(){if(this instanceof N)throw TypeError("Symbol is not a constructor!");var t=d(arguments.length>0?arguments[0]:void 0),e=function(n){this===G&&e.call(z,n),r(this,B)&&r(this[B],t)&&(this[B][t]=!1),Z(this,t,S(1,n))};return o&&_&&Z(G,t,{configurable:!0,set:e}),W(t)},s(N.prototype,"toString",(function(){return this._k})),C.f=K,A.f=Y,t("./_object-gopn").f=k.f=Q,t("./_object-pie").f=q,t("./_object-gops").f=J,o&&!t("./_library")&&s(G,"propertyIsEnumerable",q,!0),p.f=function(t){return W(f(t))}),a(a.G+a.W+a.F*!U,{Symbol:N});for(var $="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;$.length>tt;)f($[tt++]);for(var et=M(f.store),nt=0;et.length>nt;)g(et[nt++]);a(a.S+a.F*!U,"Symbol",{for:function(t){return r(R,t+="")?R[t]:R[t]=N(t)},keyFor:function(t){if(!V(t))throw TypeError(t+" is not a symbol!");for(var e in R)if(R[e]===t)return e},useSetter:function(){_=!0},useSimple:function(){_=!1}}),a(a.S+a.F*!U,"Object",{create:function(t,e){return void 0===e?P(t):X(P(t),e)},defineProperty:Y,defineProperties:X,getOwnPropertyDescriptor:K,getOwnPropertyNames:Q,getOwnPropertySymbols:J}),j&&a(a.S+a.F*(!U||u((function(){var t=N();return"[null]"!=I([t])||"{}"!=I({a:t})||"{}"!=I(Object(t))}))),"JSON",{stringify:function(t){for(var e,n,i=[t],r=1;arguments.length>r;)i.push(arguments[r++]);if(n=e=i[1],(w(e)||void 0!==t)&&!V(t))return v(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!V(e))return e}),i[1]=e,I.apply(j,i)}}),N.prototype[O]||t("./_hide")(N.prototype,O,N.prototype.valueOf),h(N,"Symbol"),h(Math,"Math",!0),h(i.JSON,"JSON",!0)},{"./_an-object":61,"./_descriptors":69,"./_enum-keys":72,"./_export":73,"./_fails":74,"./_global":76,"./_has":77,"./_hide":78,"./_is-array":84,"./_is-object":85,"./_library":92,"./_meta":93,"./_object-create":97,"./_object-dp":98,"./_object-gopd":100,"./_object-gopn":102,"./_object-gopn-ext":101,"./_object-gops":103,"./_object-keys":106,"./_object-pie":107,"./_property-desc":111,"./_redefine":113,"./_set-to-string-tag":115,"./_shared":117,"./_to-iobject":123,"./_to-primitive":126,"./_uid":127,"./_wks":131,"./_wks-define":129,"./_wks-ext":130}],147:[function(t,e,n){"use strict";var i=t("./_export"),r=t("./_core"),o=t("./_global"),a=t("./_species-constructor"),s=t("./_promise-resolve");i(i.P+i.R,"Promise",{finally:function(t){var e=a(this,r.Promise||o.Promise),n="function"==typeof t;return this.then(n?function(n){return s(e,t()).then((function(){return n}))}:t,n?function(n){return s(e,t()).then((function(){throw n}))}:t)}})},{"./_core":65,"./_export":73,"./_global":76,"./_promise-resolve":110,"./_species-constructor":118}],148:[function(t,e,n){"use strict";var i=t("./_export"),r=t("./_new-promise-capability"),o=t("./_perform");i(i.S,"Promise",{try:function(t){var e=r.f(this),n=o(t);return(n.e?e.reject:e.resolve)(n.v),e.promise}})},{"./_export":73,"./_new-promise-capability":95,"./_perform":109}],149:[function(t,e,n){t("./_wks-define")("asyncIterator")},{"./_wks-define":129}],150:[function(t,e,n){t("./_wks-define")("observable")},{"./_wks-define":129}],151:[function(t,e,n){t("./es6.array.iterator");for(var i=t("./_global"),r=t("./_hide"),o=t("./_iterators"),a=t("./_wks")("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l<s.length;l++){var u=s[l],c=i[u],h=c&&c.prototype;h&&!h[a]&&r(h,a,u),o[u]=o.Array}},{"./_global":76,"./_hide":78,"./_iterators":91,"./_wks":131,"./es6.array.iterator":134}],152:[function(t,e,n){var i=t("./_export"),r=t("./_task");i(i.G+i.B,{setImmediate:r.set,clearImmediate:r.clear})},{"./_export":73,"./_task":120}],153:[function(t,e,n){(function(e){"use strict";function i(t){return Object.prototype.toString.call(t)}var r=function(t){return t&&t.__esModule?t:{default:t}}(t("babel-runtime/helpers/typeof"));n.isArray=function(t){return Array.isArray?Array.isArray(t):"[object Array]"===i(t)},n.isBoolean=function(t){return"boolean"==typeof t},n.isNull=function(t){return null===t},n.isNullOrUndefined=function(t){return null==t},n.isNumber=function(t){return"number"==typeof t},n.isString=function(t){return"string"==typeof t},n.isSymbol=function(t){return"symbol"===(void 0===t?"undefined":(0,r.default)(t))},n.isUndefined=function(t){return void 0===t},n.isRegExp=function(t){return"[object RegExp]"===i(t)},n.isObject=function(t){return"object"===(void 0===t?"undefined":(0,r.default)(t))&&null!==t},n.isDate=function(t){return"[object Date]"===i(t)},n.isError=function(t){return"[object Error]"===i(t)||t instanceof Error},n.isFunction=function(t){return"function"==typeof t},n.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"===(void 0===t?"undefined":(0,r.default)(t))||void 0===t},n.isBuffer=e.isBuffer}).call(this,{isBuffer:t("../../is-buffer/index.js")})},{"../../is-buffer/index.js":163,"babel-runtime/helpers/typeof":32}],154:[function(t,e,n){"use strict";var i=function(t){return t&&t.__esModule?t:{default:t}}(t("babel-runtime/helpers/typeof"));!function(t){function r(t,e){for(t=String(t),e=e||2;t.length<e;)t="0"+t;return t}function o(t){var e=new Date(t.getFullYear(),t.getMonth(),t.getDate());e.setDate(e.getDate()-(e.getDay()+6)%7+3);var n=new Date(e.getFullYear(),0,4);n.setDate(n.getDate()-(n.getDay()+6)%7+3);var i=e.getTimezoneOffset()-n.getTimezoneOffset();e.setHours(e.getHours()-i);var r=(e-n)/6048e5;return 1+Math.floor(r)}function a(t){var e=t.getDay();return 0===e&&(e=7),e}function s(t){return null===t?"null":void 0===t?"undefined":"object"!==(void 0===t?"undefined":(0,i.default)(t))?void 0===t?"undefined":(0,i.default)(t):Array.isArray(t)?"array":{}.toString.call(t).slice(8,-1).toLowerCase()}var l=function(){var t=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,e=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,n=/[^-+\dA-Z]/g;return function(i,u,c,h){if(1!==arguments.length||"string"!==s(i)||/\d/.test(i)||(u=i,i=void 0),(i=i||new Date)instanceof Date||(i=new Date(i)),isNaN(i))throw TypeError("Invalid date");var d=(u=String(l.masks[u]||u||l.masks.default)).slice(0,4);"UTC:"!==d&&"GMT:"!==d||(u=u.slice(4),c=!0,"GMT:"===d&&(h=!0));var f=c?"getUTC":"get",p=i[f+"Date"](),g=i[f+"Day"](),m=i[f+"Month"](),v=i[f+"FullYear"](),y=i[f+"Hours"](),w=i[f+"Minutes"](),b=i[f+"Seconds"](),x=i[f+"Milliseconds"](),S=c?0:i.getTimezoneOffset(),P=o(i),k=a(i),C={d:p,dd:r(p),ddd:l.i18n.dayNames[g],dddd:l.i18n.dayNames[g+7],m:m+1,mm:r(m+1),mmm:l.i18n.monthNames[m],mmmm:l.i18n.monthNames[m+12],yy:String(v).slice(2),yyyy:v,h:y%12||12,hh:r(y%12||12),H:y,HH:r(y),M:w,MM:r(w),s:b,ss:r(b),l:r(x,3),L:r(Math.round(x/10)),t:y<12?"a":"p",tt:y<12?"am":"pm",T:y<12?"A":"P",TT:y<12?"AM":"PM",Z:h?"GMT":c?"UTC":(String(i).match(e)||[""]).pop().replace(n,""),o:(S>0?"-":"+")+r(100*Math.floor(Math.abs(S)/60)+Math.abs(S)%60,4),S:["th","st","nd","rd"][p%10>3?0:(p%100-p%10!=10)*p%10],W:P,N:k};return u.replace(t,(function(t){return t in C?C[t]:t.slice(1,t.length-1)}))}}();l.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},l.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]},"object"===(void 0===n?"undefined":(0,i.default)(n))?e.exports=l:(void 0).dateFormat=l}()},{"babel-runtime/helpers/typeof":32}],155:[function(t,e,n){(function(i){function r(){var t;try{t=n.storage.debug}catch(t){}return!t&&void 0!==i&&"env"in i&&(t=i.env.DEBUG),t}(n=e.exports=t("./debug")).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},n.formatArgs=function(t){var e=this.useColors;if(t[0]=(e?"%c":"")+this.namespace+(e?" %c":" ")+t[0]+(e?"%c ":" ")+"+"+n.humanize(this.diff),e){var i="color: "+this.color;t.splice(1,0,i,"color: inherit");var r=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(function(t){"%%"!==t&&(r++,"%c"===t&&(o=r))})),t.splice(o,0,i)}},n.save=function(t){try{null==t?n.storage.removeItem("debug"):n.storage.debug=t}catch(t){}},n.load=r,n.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},n.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(t){}}(),n.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],n.formatters.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},n.enable(r())}).call(this,t("_process"))},{"./debug":156,_process:173}],156:[function(t,e,n){function i(t){function e(){if(e.enabled){var t=e,i=+new Date,o=i-(r||i);t.diff=o,t.prev=r,t.curr=i,r=i;for(var a=new Array(arguments.length),s=0;s<a.length;s++)a[s]=arguments[s];a[0]=n.coerce(a[0]),"string"!=typeof a[0]&&a.unshift("%O");var l=0;a[0]=a[0].replace(/%([a-zA-Z%])/g,(function(e,i){if("%%"===e)return e;l++;var r=n.formatters[i];if("function"==typeof r){var o=a[l];e=r.call(t,o),a.splice(l,1),l--}return e})),n.formatArgs.call(t,a),(e.log||n.log||console.log.bind(console)).apply(t,a)}}return e.namespace=t,e.enabled=n.enabled(t),e.useColors=n.useColors(),e.color=function(t){var e,i=0;for(e in t)i=(i<<5)-i+t.charCodeAt(e),i|=0;return n.colors[Math.abs(i)%n.colors.length]}(t),"function"==typeof n.init&&n.init(e),e}var r;(n=e.exports=i.debug=i.default=i).coerce=function(t){return t instanceof Error?t.stack||t.message:t},n.disable=function(){n.enable("")},n.enable=function(t){n.save(t),n.names=[],n.skips=[];for(var e=("string"==typeof t?t:"").split(/[\s,]+/),i=e.length,r=0;r<i;r++)e[r]&&("-"===(t=e[r].replace(/\*/g,".*?"))[0]?n.skips.push(new RegExp("^"+t.substr(1)+"$")):n.names.push(new RegExp("^"+t+"$")))},n.enabled=function(t){var e,i;for(e=0,i=n.skips.length;e<i;e++)if(n.skips[e].test(t))return!1;for(e=0,i=n.names.length;e<i;e++)if(n.names[e].test(t))return!0;return!1},n.humanize=t("ms"),n.names=[],n.skips=[],n.formatters={}},{ms:169}],157:[function(t,e,n){"use strict";var i=/["'&<>]/;e.exports=function(t){var e=""+t,n=i.exec(e);if(!n)return e;var r,o="",a=0,s=0;for(a=n.index;a<e.length;a++){switch(e.charCodeAt(a)){case 34:r="&quot;";break;case 38:r="&amp;";break;case 39:r="&#39;";break;case 60:r="&lt;";break;case 62:r="&gt;";break;default:continue}s!==a&&(o+=e.substring(s,a)),s=a+1,o+=r}return s!==a?o+e.substring(s,a):o}},{}],158:[function(t,e,n){function i(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(t){return"function"==typeof t}function o(t){return"object"==typeof t&&null!==t}function a(t){return void 0===t}e.exports=i,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._maxListeners=void 0,i.defaultMaxListeners=10,i.prototype.setMaxListeners=function(t){if(!function(t){return"number"==typeof t}(t)||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},i.prototype.emit=function(t){var e,n,i,s,l,u;if(this._events||(this._events={}),"error"===t&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if((e=arguments[1])instanceof Error)throw e;var c=new Error('Uncaught, unspecified "error" event. ('+e+")");throw c.context=e,c}if(a(n=this._events[t]))return!1;if(r(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(o(n))for(s=Array.prototype.slice.call(arguments,1),i=(u=n.slice()).length,l=0;l<i;l++)u[l].apply(this,s);return!0},i.prototype.addListener=function(t,e){var n;if(!r(e))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",t,r(e.listener)?e.listener:e),this._events[t]?o(this._events[t])?this._events[t].push(e):this._events[t]=[this._events[t],e]:this._events[t]=e,o(this._events[t])&&!this._events[t].warned&&(n=a(this._maxListeners)?i.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[t].length>n&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),"function"==typeof console.trace&&console.trace()),this},i.prototype.on=i.prototype.addListener,i.prototype.once=function(t,e){function n(){this.removeListener(t,n),i||(i=!0,e.apply(this,arguments))}if(!r(e))throw TypeError("listener must be a function");var i=!1;return n.listener=e,this.on(t,n),this},i.prototype.removeListener=function(t,e){var n,i,a,s;if(!r(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(a=(n=this._events[t]).length,i=-1,n===e||r(n.listener)&&n.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(o(n)){for(s=a;s-- >0;)if(n[s]===e||n[s].listener&&n[s].listener===e){i=s;break}if(i<0)return this;1===n.length?(n.length=0,delete this._events[t]):n.splice(i,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},i.prototype.removeAllListeners=function(t){var e,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(e in this._events)"removeListener"!==e&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(r(n=this._events[t]))this.removeListener(t,n);else if(n)for(;n.length;)this.removeListener(t,n[n.length-1]);return delete this._events[t],this},i.prototype.listeners=function(t){return this._events&&this._events[t]?r(this._events[t])?[this._events[t]]:this._events[t].slice():[]},i.prototype.listenerCount=function(t){if(this._events){var e=this._events[t];if(r(e))return 1;if(e)return e.length}return 0},i.listenerCount=function(t,e){return t.listenerCount(e)}},{}],159:[function(t,e,n){var i=t("http"),r=e.exports;for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o]);r.request=function(t,e){return t||(t={}),t.scheme="https",t.protocol="https:",i.request.call(this,t,e)}},{http:196}],160:[function(t,e,n){"use strict";var i=t("util"),r=t("ms");e.exports=function(t){if("number"==typeof t)return t;var e=r(t);if(void 0===e){var n=new Error(i.format("humanize-ms(%j) result undefined",t));console.warn(n.stack)}return e}},{ms:169,util:207}],161:[function(t,e,n){n.read=function(t,e,n,i,r){var o,a,s=8*r-i-1,l=(1<<s)-1,u=l>>1,c=-7,h=n?r-1:0,d=n?-1:1,f=t[e+h];for(h+=d,o=f&(1<<-c)-1,f>>=-c,c+=s;c>0;o=256*o+t[e+h],h+=d,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=i;c>0;a=256*a+t[e+h],h+=d,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,i),o-=u}return(f?-1:1)*a*Math.pow(2,o-i)},n.write=function(t,e,n,i,r,o){var a,s,l,u=8*o-r-1,c=(1<<u)-1,h=c>>1,d=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,f=i?0:o-1,p=i?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),(e+=a+h>=1?d/l:d*Math.pow(2,1-h))*l>=2&&(a++,l/=2),a+h>=c?(s=0,a=c):a+h>=1?(s=(e*l-1)*Math.pow(2,r),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,r),a=0));r>=8;t[n+f]=255&s,f+=p,s/=256,r-=8);for(a=a<<r|s,u+=r;u>0;t[n+f]=255&a,f+=p,a/=256,u-=8);t[n+f-p]|=128*g}},{}],162:[function(t,e,n){"function"==typeof Object.create?e.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},{}],163:[function(t,e,n){function i(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}e.exports=function(t){return null!=t&&(i(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&i(t.slice(0,0))}(t)||!!t._isBuffer)}},{}],164:[function(t,e,n){!function(t){function i(t){return"function"==typeof t&&(/^class(\s|\{\}$)/.test(r.call(t))||/^.*classCallCheck\(/.test(function(t){return r.call(t).replace(/^[^{]*{\s*/,"").replace(/\s*}[^}]*$/,"")}(t)))}var r=Function.prototype.toString;void 0!==n?(void 0!==e&&e.exports&&(n=e.exports=i),n.isClass=i):t.isClass=i}(this)},{}],165:[function(t,e,n){"use strict";var i=t("core-util-is"),r=t("isstream"),o=t("is-class");Object.keys(i).map((function(t){n[function(t){var e=t.slice(2);return e[0].toLowerCase()+e.slice(1)}(t)]=i[t]})),n.stream=r,n.readableStream=r.isReadable,n.writableStream=r.isWritable,n.duplexStream=r.isDuplex,n.class=o,n.finite=function(t){return Number.isFinite(t)},n.NaN=function(t){return Number.isNaN(t)},n.generator=function(t){return t&&"function"==typeof t.next&&"function"==typeof t.throw},n.generatorFunction=function(t){return t&&t.constructor&&"GeneratorFunction"===t.constructor.name},n.asyncFunction=function(t){return t&&t.constructor&&"AsyncFunction"===t.constructor.name},n.promise=function(t){return t&&"function"==typeof t.then};var a=Math.pow(2,31);n.int=function(t){return i.isNumber(t)&&t%1==0},n.int32=function(t){return n.int(t)&&t<a&&t>=-a},n.long=function(t){return n.int(t)&&(t>=a||t<-a)},n.Long=function(t){return n.object(t)&&n.number(t.high)&&n.number(t.low)},n.double=function(t){return i.isNumber(t)&&!isNaN(t)&&t%1!=0},n.date=function(t){return t instanceof Date},n.regExp=function(t){return t instanceof RegExp},n.regexp=n.regExp,n.error=function(t){return t instanceof Error},n.array=function(t){return Array.isArray(t)}},{"core-util-is":153,"is-class":164,isstream:167}],166:[function(t,e,n){var i={}.toString;e.exports=Array.isArray||function(t){return"[object Array]"==i.call(t)}},{}],167:[function(t,e,n){function i(t){return t instanceof a.Stream}function r(t){return i(t)&&"function"==typeof t._read&&"object"==typeof t._readableState}function o(t){return i(t)&&"function"==typeof t._write&&"object"==typeof t._writableState}var a=t("stream");e.exports=i,e.exports.isReadable=r,e.exports.isWritable=o,e.exports.isDuplex=function(t){return r(t)&&o(t)}},{stream:195}],168:[function(t,e,n){"use strict";e.exports=function(t,e,n){if(!t)throw new TypeError("argument dest is required");if(!e)throw new TypeError("argument src is required");return void 0===n&&(n=!0),Object.getOwnPropertyNames(e).forEach((function(r){if(n||!i.call(t,r)){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o)}})),t};var i=Object.prototype.hasOwnProperty},{}],169:[function(t,e,n){function i(t,e,n){if(!(t<e))return t<1.5*e?Math.floor(t/e)+" "+n:Math.ceil(t/e)+" "+n+"s"}var r=1e3,o=60*r,a=60*o,s=24*a,l=365.25*s;e.exports=function(t,e){e=e||{};var n=typeof t;if("string"===n&&t.length>0)return function(t){if(!((t=String(t)).length>100)){var e=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(e){var n=parseFloat(e[1]);switch((e[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return n*l;case"days":case"day":case"d":return n*s;case"hours":case"hour":case"hrs":case"hr":case"h":return n*a;case"minutes":case"minute":case"mins":case"min":case"m":return n*o;case"seconds":case"second":case"secs":case"sec":case"s":return n*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}(t);if("number"===n&&!1===isNaN(t))return e.long?function(t){return i(t,s,"day")||i(t,a,"hour")||i(t,o,"minute")||i(t,r,"second")||t+" ms"}(t):function(t){return t>=s?Math.round(t/s)+"d":t>=a?Math.round(t/a)+"h":t>=o?Math.round(t/o)+"m":t>=r?Math.round(t/r)+"s":t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},{}],170:[function(t,e,n){(function(t){function e(t,e){for(var n=0,i=t.length-1;i>=0;i--){var r=t[i];"."===r?t.splice(i,1):".."===r?(t.splice(i,1),n++):n&&(t.splice(i,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}function i(t,e){if(t.filter)return t.filter(e);for(var n=[],i=0;i<t.length;i++)e(t[i],i,t)&&n.push(t[i]);return n}n.resolve=function(){for(var n="",r=!1,o=arguments.length-1;o>=-1&&!r;o--){var a=o>=0?arguments[o]:t.cwd();if("string"!=typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(n=a+"/"+n,r="/"===a.charAt(0))}return n=e(i(n.split("/"),(function(t){return!!t})),!r).join("/"),(r?"/":"")+n||"."},n.normalize=function(t){var o=n.isAbsolute(t),a="/"===r(t,-1);return(t=e(i(t.split("/"),(function(t){return!!t})),!o).join("/"))||o||(t="."),t&&a&&(t+="/"),(o?"/":"")+t},n.isAbsolute=function(t){return"/"===t.charAt(0)},n.join=function(){var t=Array.prototype.slice.call(arguments,0);return n.normalize(i(t,(function(t,e){if("string"!=typeof t)throw new TypeError("Arguments to path.join must be strings");return t})).join("/"))},n.relative=function(t,e){function i(t){for(var e=0;e<t.length&&""===t[e];e++);for(var n=t.length-1;n>=0&&""===t[n];n--);return e>n?[]:t.slice(e,n-e+1)}t=n.resolve(t).substr(1),e=n.resolve(e).substr(1);for(var r=i(t.split("/")),o=i(e.split("/")),a=Math.min(r.length,o.length),s=a,l=0;l<a;l++)if(r[l]!==o[l]){s=l;break}var u=[];for(l=s;l<r.length;l++)u.push("..");return(u=u.concat(o.slice(s))).join("/")},n.sep="/",n.delimiter=":",n.dirname=function(t){if("string"!=typeof t&&(t+=""),0===t.length)return".";for(var e=t.charCodeAt(0),n=47===e,i=-1,r=!0,o=t.length-1;o>=1;--o)if(47===(e=t.charCodeAt(o))){if(!r){i=o;break}}else r=!1;return-1===i?n?"/":".":n&&1===i?"/":t.slice(0,i)},n.basename=function(t,e){var n=function(t){"string"!=typeof t&&(t+="");var e,n=0,i=-1,r=!0;for(e=t.length-1;e>=0;--e)if(47===t.charCodeAt(e)){if(!r){n=e+1;break}}else-1===i&&(r=!1,i=e+1);return-1===i?"":t.slice(n,i)}(t);return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n},n.extname=function(t){"string"!=typeof t&&(t+="");for(var e=-1,n=0,i=-1,r=!0,o=0,a=t.length-1;a>=0;--a){var s=t.charCodeAt(a);if(47!==s)-1===i&&(r=!1,i=a+1),46===s?-1===e?e=a:1!==o&&(o=1):-1!==e&&(o=-1);else if(!r){n=a+1;break}}return-1===e||-1===i||0===o||1===o&&e===i-1&&e===n+1?"":t.slice(e,i)};var r=function(t,e,n){return t.substr(e,n)}}).call(this,t("_process"))},{_process:173}],171:[function(t,e,i){(function(t){(function(){"use strict";function n(t){return(t=String(t)).charAt(0).toUpperCase()+t.slice(1)}function r(t){return t=u(t),/^(?:webOS|i(?:OS|P))/.test(t)?t:n(t)}function o(t,e){for(var n in t)y.call(t,n)&&e(t[n],n,t)}function a(t){return null==t?n(t):w.call(t).slice(8,-1)}function s(t){return String(t).replace(/([ -])(?!$)/g,"$1?")}function l(t,e){var n=null;return function(t,e){var n=-1,i=t?t.length:0;if("number"==typeof i&&i>-1&&i<=g)for(;++n<i;)e(t[n],n,t);else o(t,e)}(t,(function(i,r){n=e(n,i,r,t)})),n}function u(t){return String(t).replace(/^ +| +$/g,"")}var c={function:!0,object:!0},h=c[typeof window]&&window||this,d=c[typeof i]&&i,f=c[typeof e]&&e&&!e.nodeType&&e,p=d&&f&&"object"==typeof t&&t;!p||p.global!==p&&p.window!==p&&p.self!==p||(h=p);var g=Math.pow(2,53)-1,m=/\bOpera/,v=Object.prototype,y=v.hasOwnProperty,w=v.toString,b=function t(e){function n(t){return l(t,(function(t,n){var i=n.pattern||s(n);return!t&&(t=RegExp("\\b"+i+" *\\d+[.\\w_]*","i").exec(e)||RegExp("\\b"+i+" *\\w+-[\\w]*","i").exec(e)||RegExp("\\b"+i+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(e))&&((t=String(n.label&&!RegExp(i,"i").test(n.label)?n.label:t).split("/"))[1]&&!/[\d.]+/.test(t[0])&&(t[0]+=" "+t[1]),n=n.label||n,t=r(t[0].replace(RegExp(i,"i"),n).replace(RegExp("; *(?:"+n+"[_-])?","i")," ").replace(RegExp("("+n+")[-_.]?(\\w)","i"),"$1 $2"))),t}))}var i=h,c=e&&"object"==typeof e&&"String"!=a(e);c&&(i=e,e=null);var d=i.navigator||{},f=d.userAgent||"";e||(e=f);var p,g,v=c?!!d.likeChrome:/\bChrome\b/.test(e)&&!/internal|\n/i.test(w.toString()),y=c?"Object":"ScriptBridgingProxyObject",b=c?"Object":"Environment",x=c&&i.java?"JavaPackage":a(i.java),S=c?"Object":"RuntimeObject",P=/\bJava/.test(x)&&i.java,k=P&&a(i.environment)==b,C=P?"a":"伪",A=P?"b":"尾",M=i.document||{},E=i.operamini||i.opera,L=m.test(L=c&&E?E["[[Class]]"]:a(E))?L:E=null,T=e,N=[],j=null,I=e==f,B=I&&E&&"function"==typeof E.version&&E.version(),O=l([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"],(function(t,n){return t||RegExp("\\b"+(n.pattern||s(n))+"\\b","i").exec(e)&&(n.label||n)})),D=l(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"Edge"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Waterfox","WebPositive","Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chrome",{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"],(function(t,n){return t||RegExp("\\b"+(n.pattern||s(n))+"\\b","i").exec(e)&&(n.label||n)})),R=n([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),F=l({Apple:{iPad:1,iPhone:1,iPod:1},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1}},(function(t,n,i){return t||(n[R]||n[/^[a-z]+(?: +[a-z]+\b)*/i.exec(R)]||RegExp("\\b"+s(i)+"(?:\\b|\\w*\\d)","i").exec(e))&&i})),z=l(["Windows Phone","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian","Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "],(function(t,n){var i=n.pattern||s(n);return!t&&(t=RegExp("\\b"+i+"(?:/[\\d.]+|[ \\w.]*)","i").exec(e))&&(t=function(t,e,n){var i={"10.0":"10",6.4:"10 Technical Preview",6.3:"8.1",6.2:"8",6.1:"Server 2008 R2 / 7","6.0":"Server 2008 / Vista",5.2:"Server 2003 / XP 64-bit",5.1:"XP",5.01:"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return e&&n&&/^Win/i.test(t)&&!/^Windows Phone /i.test(t)&&(i=i[/[\d.]+$/.exec(t)])&&(t="Windows "+i),t=String(t),e&&n&&(t=t.replace(RegExp(e,"i"),n)),r(t.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0])}(t,i,n.label||n)),t}));if(O&&(O=[O]),F&&!R&&(R=n([F])),(p=/\bGoogle TV\b/.exec(R))&&(R=p[0]),/\bSimulator\b/i.test(e)&&(R=(R?R+" ":"")+"Simulator"),"Opera Mini"==D&&/\bOPiOS\b/.test(e)&&N.push("running in Turbo/Uncompressed mode"),"IE"==D&&/\blike iPhone OS\b/.test(e)?(F=(p=t(e.replace(/like iPhone OS/,""))).manufacturer,R=p.product):/^iP/.test(R)?(D||(D="Safari"),z="iOS"+((p=/ OS ([\d_]+)/i.exec(e))?" "+p[1].replace(/_/g,"."):"")):"Konqueror"!=D||/buntu/i.test(z)?F&&"Google"!=F&&(/Chrome/.test(D)&&!/\bMobile Safari\b/i.test(e)||/\bVita\b/.test(R))||/\bAndroid\b/.test(z)&&/^Chrome/.test(D)&&/\bVersion\//i.test(e)?(D="Android Browser",z=/\bAndroid\b/.test(z)?z:"Android"):"Silk"==D?(/\bMobi/i.test(e)||(z="Android",N.unshift("desktop mode")),/Accelerated *= *true/i.test(e)&&N.unshift("accelerated")):"PaleMoon"==D&&(p=/\bFirefox\/([\d.]+)\b/.exec(e))?N.push("identifying as Firefox "+p[1]):"Firefox"==D&&(p=/\b(Mobile|Tablet|TV)\b/i.exec(e))?(z||(z="Firefox OS"),R||(R=p[1])):!D||(p=!/\bMinefield\b/i.test(e)&&/\b(?:Firefox|Safari)\b/.exec(D))?(D&&!R&&/[\/,]|^[^(]+?\)/.test(e.slice(e.indexOf(p+"/")+8))&&(D=null),(p=R||F||z)&&(R||F||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(z))&&(D=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(z)?z:p)+" Browser")):"Electron"==D&&(p=(/\bChrome\/([\d.]+)\b/.exec(e)||0)[1])&&N.push("Chromium "+p):z="Kubuntu",B||(B=function(t){return l(t,(function(t,n){return t||(RegExp(n+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(e)||0)[1]||null}))}(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",s(D),"(?:Firefox|Minefield|NetFront)"])),(p=("iCab"==O&&parseFloat(B)>3?"WebKit":/\bOpera\b/.test(D)&&(/\bOPR\b/.test(e)?"Blink":"Presto"))||/\b(?:Midori|Nook|Safari)\b/i.test(e)&&!/^(?:Trident|EdgeHTML)$/.test(O)&&"WebKit"||!O&&/\bMSIE\b/i.test(e)&&("Mac OS"==z?"Tasman":"Trident")||"WebKit"==O&&/\bPlayStation\b(?! Vita\b)/i.test(D)&&"NetFront")&&(O=[p]),"IE"==D&&(p=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(e)||0)[1])?(D+=" Mobile",z="Windows Phone "+(/\+$/.test(p)?p:p+".x"),N.unshift("desktop mode")):/\bWPDesktop\b/i.test(e)?(D="IE Mobile",z="Windows Phone 8.x",N.unshift("desktop mode"),B||(B=(/\brv:([\d.]+)/.exec(e)||0)[1])):"IE"!=D&&"Trident"==O&&(p=/\brv:([\d.]+)/.exec(e))&&(D&&N.push("identifying as "+D+(B?" "+B:"")),D="IE",B=p[1]),I){if(function(t,e){var n=null!=t?typeof t[e]:"number";return!(/^(?:boolean|number|string|undefined)$/.test(n)||"object"==n&&!t[e])}(i,"global"))if(P&&(T=(p=P.lang.System).getProperty("os.arch"),z=z||p.getProperty("os.name")+" "+p.getProperty("os.version")),k){try{B=i.require("ringo/engine").version.join("."),D="RingoJS"}catch(e){(p=i.system)&&p.global.system==i.system&&(D="Narwhal",z||(z=p[0].os||null))}D||(D="Rhino")}else"object"==typeof i.process&&!i.process.browser&&(p=i.process)&&("object"==typeof p.versions&&("string"==typeof p.versions.electron?(N.push("Node "+p.versions.node),D="Electron",B=p.versions.electron):"string"==typeof p.versions.nw&&(N.push("Chromium "+B,"Node "+p.versions.node),D="NW.js",B=p.versions.nw)),D||(D="Node.js",T=p.arch,z=p.platform,B=(B=/[\d.]+/.exec(p.version))?B[0]:null));else a(p=i.runtime)==y?(D="Adobe AIR",z=p.flash.system.Capabilities.os):a(p=i.phantom)==S?(D="PhantomJS",B=(p=p.version||null)&&p.major+"."+p.minor+"."+p.patch):"number"==typeof M.documentMode&&(p=/\bTrident\/(\d+)/i.exec(e))?(B=[B,M.documentMode],(p=+p[1]+4)!=B[1]&&(N.push("IE "+B[1]+" mode"),O&&(O[1]=""),B[1]=p),B="IE"==D?String(B[1].toFixed(1)):B[0]):"number"==typeof M.documentMode&&/^(?:Chrome|Firefox)\b/.test(D)&&(N.push("masking as "+D+" "+B),D="IE",B="11.0",O=["Trident"],z="Windows");z=z&&r(z)}if(B&&(p=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(B)||/(?:alpha|beta)(?: ?\d)?/i.exec(e+";"+(I&&d.appMinorVersion))||/\bMinefield\b/i.test(e)&&"a")&&(j=/b/i.test(p)?"beta":"alpha",B=B.replace(RegExp(p+"\\+?$"),"")+("beta"==j?A:C)+(/\d+\+?/.exec(p)||"")),"Fennec"==D||"Firefox"==D&&/\b(?:Android|Firefox OS)\b/.test(z))D="Firefox Mobile";else if("Maxthon"==D&&B)B=B.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(R))"Xbox 360"==R&&(z=null),"Xbox 360"==R&&/\bIEMobile\b/.test(e)&&N.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(D)&&(!D||R||/Browser|Mobi/.test(D))||"Windows CE"!=z&&!/Mobi/i.test(e))if("IE"==D&&I)try{null===i.external&&N.unshift("platform preview")}catch(e){N.unshift("embedded")}else(/\bBlackBerry\b/.test(R)||/\bBB10\b/.test(e))&&(p=(RegExp(R.replace(/ +/g," *")+"/([.\\d]+)","i").exec(e)||0)[1]||B)?(z=((p=[p,/BB10/.test(e)])[1]?(R=null,F="BlackBerry"):"Device Software")+" "+p[0],B=null):this!=o&&"Wii"!=R&&(I&&E||/Opera/.test(D)&&/\b(?:MSIE|Firefox)\b/i.test(e)||"Firefox"==D&&/\bOS X (?:\d+\.){2,}/.test(z)||"IE"==D&&(z&&!/^Win/.test(z)&&B>5.5||/\bWindows XP\b/.test(z)&&B>8||8==B&&!/\bTrident\b/.test(e)))&&!m.test(p=t.call(o,e.replace(m,"")+";"))&&p.name&&(p="ing as "+p.name+((p=p.version)?" "+p:""),m.test(D)?(/\bIE\b/.test(p)&&"Mac OS"==z&&(z=null),p="identify"+p):(p="mask"+p,D=L?r(L.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(p)&&(z=null),I||(B=null)),O=["Presto"],N.push(p));else D+=" Mobile";(p=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(e)||0)[1])&&(p=[parseFloat(p.replace(/\.(\d)$/,".0$1")),p],"Safari"==D&&"+"==p[1].slice(-1)?(D="WebKit Nightly",j="alpha",B=p[1].slice(0,-1)):B!=p[1]&&B!=(p[2]=(/\bSafari\/([\d.]+\+?)/i.exec(e)||0)[1])||(B=null),p[1]=(/\bChrome\/([\d.]+)/i.exec(e)||0)[1],537.36==p[0]&&537.36==p[2]&&parseFloat(p[1])>=28&&"WebKit"==O&&(O=["Blink"]),I&&(v||p[1])?(O&&(O[1]="like Chrome"),p=p[1]||((p=p[0])<530?1:p<532?2:p<532.05?3:p<533?4:p<534.03?5:p<534.07?6:p<534.1?7:p<534.13?8:p<534.16?9:p<534.24?10:p<534.3?11:p<535.01?12:p<535.02?"13+":p<535.07?15:p<535.11?16:p<535.19?17:p<536.05?18:p<536.1?19:p<537.01?20:p<537.11?"21+":p<537.13?23:p<537.18?24:p<537.24?25:p<537.36?26:"Blink"!=O?"27":"28")):(O&&(O[1]="like Safari"),p=(p=p[0])<400?1:p<500?2:p<526?3:p<533?4:p<534?"4+":p<535?5:p<537?6:p<538?7:p<601?8:"8"),O&&(O[1]+=" "+(p+="number"==typeof p?".x":/[.+]/.test(p)?"":"+")),"Safari"==D&&(!B||parseInt(B)>45)&&(B=p)),"Opera"==D&&(p=/\bzbov|zvav$/.exec(z))?(D+=" ",N.unshift("desktop mode"),"zvav"==p?(D+="Mini",B=null):D+="Mobile",z=z.replace(RegExp(" *"+p+"$"),"")):"Safari"==D&&/\bChrome\b/.exec(O&&O[1])&&(N.unshift("desktop mode"),D="Chrome Mobile",B=null,/\bOS X\b/.test(z)?(F="Apple",z="iOS 4.3+"):z=null),B&&0==B.indexOf(p=/[\d.]+$/.exec(z))&&e.indexOf("/"+p+"-")>-1&&(z=u(z.replace(p,""))),O&&!/\b(?:Avant|Nook)\b/.test(D)&&(/Browser|Lunascape|Maxthon/.test(D)||"Safari"!=D&&/^iOS/.test(z)&&/\bSafari\b/.test(O[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(D)&&O[1])&&(p=O[O.length-1])&&N.push(p),N.length&&(N=["("+N.join("; ")+")"]),F&&R&&R.indexOf(F)<0&&N.push("on "+F),R&&N.push((/^on /.test(N[N.length-1])?"":"on ")+R),z&&(p=/ ([\d.+]+)$/.exec(z),g=p&&"/"==z.charAt(z.length-p[0].length-1),z={architecture:32,family:p&&!g?z.replace(p[0],""):z,version:p?p[1]:null,toString:function(){var t=this.version;return this.family+(t&&!g?" "+t:"")+(64==this.architecture?" 64-bit":"")}}),(p=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(T))&&!/\bi686\b/i.test(T)?(z&&(z.architecture=64,z.family=z.family.replace(RegExp(" *"+p),"")),D&&(/\bWOW64\b/i.test(e)||I&&/\w(?:86|32)$/.test(d.cpuClass||d.platform)&&!/\bWin64; x64\b/i.test(e))&&N.unshift("32-bit")):z&&/^OS X/.test(z.family)&&"Chrome"==D&&parseFloat(B)>=39&&(z.architecture=64),e||(e=null);var G={};return G.description=e,G.layout=O&&O[0],G.manufacturer=F,G.name=D,G.prerelease=j,G.product=R,G.ua=e,G.version=D&&B,G.os=z||{architecture:null,family:null,version:null,toString:function(){return"null"}},G.parse=t,G.toString=function(){return this.description||""},G.version&&N.unshift(B),G.name&&N.unshift(D),z&&D&&(z!=String(z).split(" ")[0]||z!=D.split(" ")[0]&&!R)&&N.push(R?"("+z+")":"on "+z),N.length&&(G.description=N.join(" ")),G}();d&&f?o(b,(function(t,e){d[e]=t})):h.platform=b}).call(this)}).call(this,void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],172:[function(t,e,n){(function(t){"use strict";!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,n,i,r){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick((function(){e.call(null,n)}));case 3:return t.nextTick((function(){e.call(null,n,i)}));case 4:return t.nextTick((function(){e.call(null,n,i,r)}));default:for(o=new Array(s-1),a=0;a<o.length;)o[a++]=arguments[a];return t.nextTick((function(){e.apply(null,o)}))}}}:e.exports=t}).call(this,t("_process"))},{_process:173}],173:[function(t,e,n){function i(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(t){if(c===setTimeout)return setTimeout(t,0);if((c===i||!c)&&setTimeout)return c=setTimeout,setTimeout(t,0);try{return c(t,0)}catch(e){try{return c.call(null,t,0)}catch(e){return c.call(this,t,0)}}}function a(){g&&f&&(g=!1,f.length?p=f.concat(p):m=-1,p.length&&s())}function s(){if(!g){var t=o(a);g=!0;for(var e=p.length;e;){for(f=p,p=[];++m<e;)f&&f[m].run();m=-1,e=p.length}f=null,g=!1,function(t){if(h===clearTimeout)return clearTimeout(t);if((h===r||!h)&&clearTimeout)return h=clearTimeout,clearTimeout(t);try{h(t)}catch(e){try{return h.call(null,t)}catch(e){return h.call(this,t)}}}(t)}}function l(t,e){this.fun=t,this.array=e}function u(){}var c,h,d=e.exports={};!function(){try{c="function"==typeof setTimeout?setTimeout:i}catch(t){c=i}try{h="function"==typeof clearTimeout?clearTimeout:r}catch(t){h=r}}();var f,p=[],g=!1,m=-1;d.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];p.push(new l(t,e)),1!==p.length||g||o(s)},l.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=u,d.addListener=u,d.once=u,d.off=u,d.removeListener=u,d.removeAllListeners=u,d.emit=u,d.prependListener=u,d.prependOnceListener=u,d.listeners=function(t){return[]},d.binding=function(t){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(t){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},{}],174:[function(t,e,i){(function(t){!function(n){function r(t){throw new RangeError(N[t])}function o(t,e){for(var n=t.length,i=[];n--;)i[n]=e(t[n]);return i}function a(t,e){var n=t.split("@"),i="";return n.length>1&&(i=n[0]+"@",t=n[1]),i+o((t=t.replace(T,".")).split("."),e).join(".")}function s(t){for(var e,n,i=[],r=0,o=t.length;r<o;)(e=t.charCodeAt(r++))>=55296&&e<=56319&&r<o?56320==(64512&(n=t.charCodeAt(r++)))?i.push(((1023&e)<<10)+(1023&n)+65536):(i.push(e),r--):i.push(e);return i}function l(t){return o(t,(function(t){var e="";return t>65535&&(e+=B((t-=65536)>>>10&1023|55296),t=56320|1023&t),e+B(t)})).join("")}function u(t){return t-48<10?t-22:t-65<26?t-65:t-97<26?t-97:b}function c(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function h(t,e,n){var i=0;for(t=n?I(t/k):t>>1,t+=I(t/e);t>j*S>>1;i+=b)t=I(t/j);return I(i+(j+1)*t/(t+P))}function d(t){var e,n,i,o,a,s,c,d,f,p,g=[],m=t.length,v=0,y=A,P=C;for((n=t.lastIndexOf(M))<0&&(n=0),i=0;i<n;++i)t.charCodeAt(i)>=128&&r("not-basic"),g.push(t.charCodeAt(i));for(o=n>0?n+1:0;o<m;){for(a=v,s=1,c=b;o>=m&&r("invalid-input"),((d=u(t.charCodeAt(o++)))>=b||d>I((w-v)/s))&&r("overflow"),v+=d*s,!(d<(f=c<=P?x:c>=P+S?S:c-P));c+=b)s>I(w/(p=b-f))&&r("overflow"),s*=p;P=h(v-a,e=g.length+1,0==a),I(v/e)>w-y&&r("overflow"),y+=I(v/e),v%=e,g.splice(v++,0,y)}return l(g)}function f(t){var e,n,i,o,a,l,u,d,f,p,g,m,v,y,P,k=[];for(m=(t=s(t)).length,e=A,n=0,a=C,l=0;l<m;++l)(g=t[l])<128&&k.push(B(g));for(i=o=k.length,o&&k.push(M);i<m;){for(u=w,l=0;l<m;++l)(g=t[l])>=e&&g<u&&(u=g);for(u-e>I((w-n)/(v=i+1))&&r("overflow"),n+=(u-e)*v,e=u,l=0;l<m;++l)if((g=t[l])<e&&++n>w&&r("overflow"),g==e){for(d=n,f=b;!(d<(p=f<=a?x:f>=a+S?S:f-a));f+=b)P=d-p,y=b-p,k.push(B(c(p+P%y,0))),d=I(P/y);k.push(B(c(d,0))),a=h(n,v,i==o),n=0,++i}++n,++e}return k.join("")}var p="object"==typeof i&&i&&!i.nodeType&&i,g="object"==typeof e&&e&&!e.nodeType&&e,m="object"==typeof t&&t;m.global!==m&&m.window!==m&&m.self!==m||(n=m);var v,y,w=2147483647,b=36,x=1,S=26,P=38,k=700,C=72,A=128,M="-",E=/^xn--/,L=/[^\x20-\x7E]/,T=/[\x2E\u3002\uFF0E\uFF61]/g,N={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},j=b-x,I=Math.floor,B=String.fromCharCode;if(v={version:"1.4.1",ucs2:{decode:s,encode:l},decode:d,encode:f,toASCII:function(t){return a(t,(function(t){return L.test(t)?"xn--"+f(t):t}))},toUnicode:function(t){return a(t,(function(t){return E.test(t)?d(t.slice(4).toLowerCase()):t}))}},p&&g)if(e.exports==p)g.exports=v;else for(y in v)v.hasOwnProperty(y)&&(p[y]=v[y]);else n.punycode=v}(this)}).call(this,void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],175:[function(t,e,n){"use strict";function i(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.exports=function(t,e,n,o){e=e||"&",n=n||"=";var a={};if("string"!=typeof t||0===t.length)return a;var s=/\+/g;t=t.split(e);var l=1e3;o&&"number"==typeof o.maxKeys&&(l=o.maxKeys);var u=t.length;l>0&&u>l&&(u=l);for(var c=0;c<u;++c){var h,d,f,p,g=t[c].replace(s,"%20"),m=g.indexOf(n);m>=0?(h=g.substr(0,m),d=g.substr(m+1)):(h=g,d=""),f=decodeURIComponent(h),p=decodeURIComponent(d),i(a,f)?r(a[f])?a[f].push(p):a[f]=[a[f],p]:a[f]=p}return a};var r=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},{}],176:[function(t,e,n){"use strict";function i(t,e){if(t.map)return t.map(e);for(var n=[],i=0;i<t.length;i++)n.push(e(t[i],i));return n}var r=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};e.exports=function(t,e,n,s){return e=e||"&",n=n||"=",null===t&&(t=void 0),"object"==typeof t?i(a(t),(function(a){var s=encodeURIComponent(r(a))+n;return o(t[a])?i(t[a],(function(t){return s+encodeURIComponent(r(t))})).join(e):s+encodeURIComponent(r(t[a]))})).join(e):s?encodeURIComponent(r(s))+n+encodeURIComponent(r(t)):""};var o=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},a=Object.keys||function(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.push(n);return e}},{}],177:[function(t,e,n){"use strict";n.decode=n.parse=t("./decode"),n.encode=n.stringify=t("./encode")},{"./decode":175,"./encode":176}],178:[function(t,e,n){e.exports=t("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":179}],179:[function(t,e,n){"use strict";function i(t){if(!(this instanceof i))return new i(t);c.call(this,t),h.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",r)}function r(){this.allowHalfOpen||this._writableState.ended||s.nextTick(o,this)}function o(t){t.end()}var a=function(t){return t&&t.__esModule?t:{default:t}}(t("babel-runtime/core-js/object/keys")),s=t("process-nextick-args"),l=a.default||function(t){var e=[];for(var n in t)e.push(n);return e};e.exports=i;var u=t("core-util-is");u.inherits=t("inherits");var c=t("./_stream_readable"),h=t("./_stream_writable");u.inherits(i,c);for(var d=l(h.prototype),f=0;f<d.length;f++){var p=d[f];i.prototype[p]||(i.prototype[p]=h.prototype[p])}Object.defineProperty(i.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(i.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}),i.prototype._destroy=function(t,e){this.push(null),this.end(),s.nextTick(e,t)}},{"./_stream_readable":181,"./_stream_writable":183,"babel-runtime/core-js/object/keys":23,"core-util-is":153,inherits:162,"process-nextick-args":172}],180:[function(t,e,n){"use strict";function i(t){if(!(this instanceof i))return new i(t);r.call(this,t)}e.exports=i;var r=t("./_stream_transform"),o=t("core-util-is");o.inherits=t("inherits"),o.inherits(i,r),i.prototype._transform=function(t,e,n){n(null,t)}},{"./_stream_transform":182,"core-util-is":153,inherits:162}],181:[function(t,e,i){(function(n,i){"use strict";function r(e,n){e=e||{};var i=n instanceof(P=P||t("./_stream_duplex"));this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var r=e.highWaterMark,o=e.readableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:i&&(o||0===o)?o:a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new I,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(j||(j=t("string_decoder/").StringDecoder),this.decoder=new j(e.encoding),this.encoding=e.encoding)}function o(e){if(P=P||t("./_stream_duplex"),!(this instanceof o))return new o(e);this._readableState=new r(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),A.call(this)}function a(t,e,n,i,r){var o,a=t._readableState;return null===e?(a.reading=!1,function(t,e){if(!e.ended){if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,c(t)}}(t,a)):(r||(o=l(a,e)),o?t.emit("error",o):a.objectMode||e&&e.length>0?("string"==typeof e||a.objectMode||(0,x.default)(e)===M.prototype||(e=function(t){return M.from(t)}(e)),i?a.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):s(t,a,e,!0):a.ended?t.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(e=a.decoder.write(e),a.objectMode||0!==e.length?s(t,a,e,!1):d(t,a)):s(t,a,e,!1))):i||(a.reading=!1)),function(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}(a)}function s(t,e,n,i){e.flowing&&0===e.length&&!e.sync?(t.emit("data",n),t.read(0)):(e.length+=e.objectMode?1:n.length,i?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&c(t)),d(t,e)}function l(t,e){var n;return function(t){return M.isBuffer(t)||t instanceof E}(e)||"string"==typeof e||void 0===e||t.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}function u(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=D?t=D:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function c(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(N("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?S.nextTick(h,t):h(t))}function h(t){N("emit readable"),t.emit("readable"),m(t)}function d(t,e){e.readingMore||(e.readingMore=!0,S.nextTick(f,t,e))}function f(t,e){for(var n=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(N("maybeReadMore read 0"),t.read(0),n!==e.length);)n=e.length;e.readingMore=!1}function p(t){N("readable nexttick read 0"),t.read(0)}function g(t,e){e.reading||(N("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),m(t),e.flowing&&!e.reading&&t.read(0)}function m(t){var e=t._readableState;for(N("flow",e.flowing);e.flowing&&null!==t.read(););}function v(t,e){return 0===e.length?null:(e.objectMode?n=e.buffer.shift():!t||t>=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):n=function(t,e,n){var i;return t<e.head.data.length?(i=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):i=t===e.head.data.length?e.shift():n?function(t,e){var n=e.head,i=1,r=n.data;for(t-=r.length;n=n.next;){var o=n.data,a=t>o.length?o.length:t;if(a===o.length?r+=o:r+=o.slice(0,t),0==(t-=a)){a===o.length?(++i,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=o.slice(a));break}++i}return e.length-=i,r}(t,e):function(t,e){var n=M.allocUnsafe(t),i=e.head,r=1;for(i.data.copy(n),t-=i.data.length;i=i.next;){var o=i.data,a=t>o.length?o.length:t;if(o.copy(n,n.length-t,0,a),0==(t-=a)){a===o.length?(++r,i.next?e.head=i.next:e.head=e.tail=null):(e.head=i,i.data=o.slice(a));break}++r}return e.length-=r,n}(t,e),i}(t,e.buffer,e.decoder),n);var n}function y(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,S.nextTick(w,e,t))}function w(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function b(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1}var x=function(t){return t&&t.__esModule?t:{default:t}}(t("babel-runtime/core-js/object/get-prototype-of")),S=t("process-nextick-args");e.exports=o;var P,k=t("isarray");o.ReadableState=r;var C=(t("events").EventEmitter,function(t,e){return t.listeners(e).length}),A=t("./internal/streams/stream"),M=t("safe-buffer").Buffer,E=i.Uint8Array||function(){},L=t("core-util-is");L.inherits=t("inherits");var T=t("util"),N=void 0;N=T&&T.debuglog?T.debuglog("stream"):function(){};var j,I=t("./internal/streams/BufferList"),B=t("./internal/streams/destroy");L.inherits(o,A);var O=["error","close","destroy","pause","resume"];Object.defineProperty(o.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),o.prototype.destroy=B.destroy,o.prototype._undestroy=B.undestroy,o.prototype._destroy=function(t,e){this.push(null),e(t)},o.prototype.push=function(t,e){var n,i=this._readableState;return i.objectMode?n=!0:"string"==typeof t&&((e=e||i.defaultEncoding)!==i.encoding&&(t=M.from(t,e),e=""),n=!0),a(this,t,e,!1,n)},o.prototype.unshift=function(t){return a(this,t,null,!0,!1)},o.prototype.isPaused=function(){return!1===this._readableState.flowing},o.prototype.setEncoding=function(e){return j||(j=t("string_decoder/").StringDecoder),this._readableState.decoder=new j(e),this._readableState.encoding=e,this};var D=8388608;o.prototype.read=function(t){N("read",t),t=parseInt(t,10);var e=this._readableState,n=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return N("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?y(this):c(this),null;if(0===(t=u(t,e))&&e.ended)return 0===e.length&&y(this),null;var i,r=e.needReadable;return N("need readable",r),(0===e.length||e.length-t<e.highWaterMark)&&N("length less than watermark",r=!0),e.ended||e.reading?N("reading or ended",r=!1):r&&(N("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=u(n,e))),null===(i=t>0?v(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&y(this)),null!==i&&this.emit("data",i),i},o.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},o.prototype.pipe=function(t,e){function i(t,e){N("onunpipe"),t===h&&e&&!1===e.hasUnpiped&&(e.hasUnpiped=!0,o())}function r(){N("onend"),t.end()}function o(){N("cleanup"),t.removeListener("close",l),t.removeListener("finish",u),t.removeListener("drain",p),t.removeListener("error",s),t.removeListener("unpipe",i),h.removeListener("end",r),h.removeListener("end",c),h.removeListener("data",a),g=!0,!d.awaitDrain||t._writableState&&!t._writableState.needDrain||p()}function a(e){N("ondata"),v=!1,!1!==t.write(e)||v||((1===d.pipesCount&&d.pipes===t||d.pipesCount>1&&-1!==b(d.pipes,t))&&!g&&(N("false write response, pause",h._readableState.awaitDrain),h._readableState.awaitDrain++,v=!0),h.pause())}function s(e){N("onerror",e),c(),t.removeListener("error",s),0===C(t,"error")&&t.emit("error",e)}function l(){t.removeListener("finish",u),c()}function u(){N("onfinish"),t.removeListener("close",l),c()}function c(){N("unpipe"),h.unpipe(t)}var h=this,d=this._readableState;switch(d.pipesCount){case 0:d.pipes=t;break;case 1:d.pipes=[d.pipes,t];break;default:d.pipes.push(t)}d.pipesCount+=1,N("pipe count=%d opts=%j",d.pipesCount,e);var f=e&&!1===e.end||t===n.stdout||t===n.stderr?c:r;d.endEmitted?S.nextTick(f):h.once("end",f),t.on("unpipe",i);var p=function(t){return function(){var e=t._readableState;N("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&C(t,"data")&&(e.flowing=!0,m(t))}}(h);t.on("drain",p);var g=!1,v=!1;return h.on("data",a),function(t,e,n){if("function"==typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?k(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}(t,"error",s),t.once("close",l),t.once("finish",u),t.emit("pipe",h),d.flowing||(N("pipe resume"),h.resume()),t},o.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n)),this;if(!t){var i=e.pipes,r=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<r;o++)i[o].emit("unpipe",this,n);return this}var a=b(e.pipes,t);return-1===a||(e.pipes.splice(a,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,n)),this},o.prototype.on=function(t,e){var n=A.prototype.on.call(this,t,e);if("data"===t)!1!==this._readableState.flowing&&this.resume();else if("readable"===t){var i=this._readableState;i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&c(this):S.nextTick(p,this))}return n},o.prototype.addListener=o.prototype.on,o.prototype.resume=function(){var t=this._readableState;return t.flowing||(N("resume"),t.flowing=!0,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,S.nextTick(g,t,e))}(this,t)),this},o.prototype.pause=function(){return N("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(N("pause"),this._readableState.flowing=!1,this.emit("pause")),this},o.prototype.wrap=function(t){var e=this,n=this._readableState,i=!1;for(var r in t.on("end",(function(){if(N("wrapped end"),n.decoder&&!n.ended){var t=n.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(r){N("wrapped data"),n.decoder&&(r=n.decoder.write(r)),n.objectMode&&null==r||!(n.objectMode||r&&r.length)||e.push(r)||(i=!0,t.pause())})),t)void 0===this[r]&&"function"==typeof t[r]&&(this[r]=function(e){return function(){return t[e].apply(t,arguments)}}(r));for(var o=0;o<O.length;o++)t.on(O[o],this.emit.bind(this,O[o]));return this._read=function(e){N("wrapped _read",e),i&&(i=!1,t.resume())},this},Object.defineProperty(o.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),o._fromList=v}).call(this,t("_process"),void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./_stream_duplex":179,"./internal/streams/BufferList":184,"./internal/streams/destroy":185,"./internal/streams/stream":186,_process:173,"babel-runtime/core-js/object/get-prototype-of":22,"core-util-is":153,events:158,inherits:162,isarray:166,"process-nextick-args":172,"safe-buffer":193,"string_decoder/":200,util:36}],182:[function(t,e,n){"use strict";function i(t,e){var n=this._transformState;n.transforming=!1;var i=n.writecb;if(!i)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=e&&this.push(e),i(t);var r=this._readableState;r.reading=!1,(r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}function r(t){if(!(this instanceof r))return new r(t);s.call(this,t),this._transformState={afterTransform:i.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",o)}function o(){var t=this;"function"==typeof this._flush?this._flush((function(e,n){a(t,e,n)})):a(this,null,null)}function a(t,e,n){if(e)return t.emit("error",e);if(null!=n&&t.push(n),t._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(t._transformState.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}e.exports=r;var s=t("./_stream_duplex"),l=t("core-util-is");l.inherits=t("inherits"),l.inherits(r,s),r.prototype.push=function(t,e){return this._transformState.needTransform=!1,s.prototype.push.call(this,t,e)},r.prototype._transform=function(t,e,n){throw new Error("_transform() is not implemented")},r.prototype._write=function(t,e,n){var i=this._transformState;if(i.writecb=n,i.writechunk=t,i.writeencoding=e,!i.transforming){var r=this._readableState;(i.needTransform||r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}},r.prototype._read=function(t){var e=this._transformState;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0},r.prototype._destroy=function(t,e){var n=this;s.prototype._destroy.call(this,t,(function(t){e(t),n.emit("close")}))}},{"./_stream_duplex":179,"core-util-is":153,inherits:162}],183:[function(t,e,i){(function(n,i){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,n){var i=t.entry;for(t.entry=null;i;){var r=i.callback;e.pendingcb--,r(n),i=i.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}(e,t)}}function a(){}function s(e,n){x=x||t("./_stream_duplex"),e=e||{};var i=n instanceof x;this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var r=e.highWaterMark,a=e.writableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:i&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var l=!1===e.decodeStrings;this.decodeStrings=!l,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var n=t._writableState,i=n.sync,r=n.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(n),e)!function(t,e,n,i,r){--e.pendingcb,n?(b.nextTick(r,i),b.nextTick(g,t,e),t._writableState.errorEmitted=!0,t.emit("error",i)):(r(i),t._writableState.errorEmitted=!0,t.emit("error",i),g(t,e))}(t,n,i,e,r);else{var o=f(n);o||n.corked||n.bufferProcessing||!n.bufferedRequest||d(t,n),i?S(h,t,n,o,r):h(t,n,o,r)}}(n,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function l(e){if(x=x||t("./_stream_duplex"),!(k.call(l,this)||this instanceof x))return new l(e);this._writableState=new s(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),A.call(this)}function u(t,e,n,i,r,o){if(!n){var a=function(t,e,n){return t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=M.from(e,n)),e}(e,i,r);i!==a&&(n=!0,r="buffer",i=a)}var s=e.objectMode?1:i.length;e.length+=s;var l=e.length<e.highWaterMark;if(l||(e.needDrain=!0),e.writing||e.corked){var u=e.lastBufferedRequest;e.lastBufferedRequest={chunk:i,encoding:r,isBuf:n,callback:o,next:null},u?u.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else c(t,e,!1,s,i,r,o);return l}function c(t,e,n,i,r,o,a){e.writelen=i,e.writecb=a,e.writing=!0,e.sync=!0,n?t._writev(r,e.onwrite):t._write(r,o,e.onwrite),e.sync=!1}function h(t,e,n,i){n||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,i(),g(t,e)}function d(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var i=e.bufferedRequestCount,r=new Array(i),a=e.corkedRequestsFree;a.entry=n;for(var s=0,l=!0;n;)r[s]=n,n.isBuf||(l=!1),n=n.next,s+=1;r.allBuffers=l,c(t,e,!0,e.length,r,"",a.finish),e.pendingcb++,e.lastBufferedRequest=null,a.next?(e.corkedRequestsFree=a.next,a.next=null):e.corkedRequestsFree=new o(e),e.bufferedRequestCount=0}else{for(;n;){var u=n.chunk,h=n.encoding,d=n.callback;if(c(t,e,!1,e.objectMode?1:u.length,u,h,d),n=n.next,e.bufferedRequestCount--,e.writing)break}null===n&&(e.lastBufferedRequest=null)}e.bufferedRequest=n,e.bufferProcessing=!1}function f(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function p(t,e){t._final((function(n){e.pendingcb--,n&&t.emit("error",n),e.prefinished=!0,t.emit("prefinish"),g(t,e)}))}function g(t,e){var n=f(e);return n&&(function(t,e){e.prefinished||e.finalCalled||("function"==typeof t._final?(e.pendingcb++,e.finalCalled=!0,b.nextTick(p,t,e)):(e.prefinished=!0,t.emit("prefinish")))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),n}var m=r(t("babel-runtime/core-js/object/define-property")),v=r(t("babel-runtime/core-js/symbol/has-instance")),y=r(t("babel-runtime/core-js/symbol")),w=r(t("babel-runtime/core-js/set-immediate")),b=t("process-nextick-args");e.exports=l;var x,S=!n.browser&&["v0.10","v0.9."].indexOf(n.version.slice(0,5))>-1?w.default:b.nextTick;l.WritableState=s;var P=t("core-util-is");P.inherits=t("inherits");var k,C={deprecate:t("util-deprecate")},A=t("./internal/streams/stream"),M=t("safe-buffer").Buffer,E=i.Uint8Array||function(){},L=t("./internal/streams/destroy");P.inherits(l,A),s.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(s.prototype,"buffer",{get:C.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof y.default&&v.default&&"function"==typeof Function.prototype[v.default]?(k=Function.prototype[v.default],(0,m.default)(l,v.default,{value:function(t){return!!k.call(this,t)||this===l&&t&&t._writableState instanceof s}})):k=function(t){return t instanceof this},l.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},l.prototype.write=function(t,e,n){var i=this._writableState,r=!1,o=!i.objectMode&&function(t){return M.isBuffer(t)||t instanceof E}(t);return o&&!M.isBuffer(t)&&(t=function(t){return M.from(t)}(t)),"function"==typeof e&&(n=e,e=null),o?e="buffer":e||(e=i.defaultEncoding),"function"!=typeof n&&(n=a),i.ended?function(t,e){var n=new Error("write after end");t.emit("error",n),b.nextTick(e,n)}(this,n):(o||function(t,e,n,i){var r=!0,o=!1;return null===n?o=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||e.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(t.emit("error",o),b.nextTick(i,o),r=!1),r}(this,i,t,n))&&(i.pendingcb++,r=u(this,i,o,t,e,n)),r},l.prototype.cork=function(){this._writableState.corked++},l.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||d(this,t))},l.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),l.prototype._write=function(t,e,n){n(new Error("_write() is not implemented"))},l.prototype._writev=null,l.prototype.end=function(t,e,n){var i=this._writableState;"function"==typeof t?(n=t,t=null,e=null):"function"==typeof e&&(n=e,e=null),null!=t&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||i.finished||function(t,e,n){e.ending=!0,g(t,e),n&&(e.finished?b.nextTick(n):t.once("finish",n)),e.ended=!0,t.writable=!1}(this,i,n)},Object.defineProperty(l.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),l.prototype.destroy=L.destroy,l.prototype._undestroy=L.undestroy,l.prototype._destroy=function(t,e){this.end(),e(t)}}).call(this,t("_process"),void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./_stream_duplex":179,"./internal/streams/destroy":185,"./internal/streams/stream":186,_process:173,"babel-runtime/core-js/object/define-property":20,"babel-runtime/core-js/set-immediate":25,"babel-runtime/core-js/symbol":27,"babel-runtime/core-js/symbol/has-instance":28,"core-util-is":153,inherits:162,"process-nextick-args":172,"safe-buffer":193,"util-deprecate":205}],184:[function(t,e,n){"use strict";function i(t,e,n){t.copy(e,n)}var r=t("safe-buffer").Buffer,o=t("util");e.exports=function(){function t(){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,n=""+e.data;e=e.next;)n+=t+e.data;return n},t.prototype.concat=function(t){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;for(var e=r.allocUnsafe(t>>>0),n=this.head,o=0;n;)i(n.data,e,o),o+=n.data.length,n=n.next;return e},t}(),o&&o.inspect&&o.inspect.custom&&(e.exports.prototype[o.inspect.custom]=function(){var t=o.inspect({length:this.length});return this.constructor.name+" "+t})},{"safe-buffer":193,util:36}],185:[function(t,e,n){"use strict";function i(t,e){t.emit("error",e)}var r=t("process-nextick-args");e.exports={destroy:function(t,e){var n=this,o=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return o||a?(e?e(t):!t||this._writableState&&this._writableState.errorEmitted||r.nextTick(i,this,t),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!e&&t?(r.nextTick(i,n,t),n._writableState&&(n._writableState.errorEmitted=!0)):e&&e(t)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},{"process-nextick-args":172}],186:[function(t,e,n){"use strict";e.exports=t("events").EventEmitter},{events:158}],187:[function(t,e,n){e.exports=t("./readable").PassThrough},{"./readable":188}],188:[function(t,e,n){(n=e.exports=t("./lib/_stream_readable.js")).Stream=n,n.Readable=n,n.Writable=t("./lib/_stream_writable.js"),n.Duplex=t("./lib/_stream_duplex.js"),n.Transform=t("./lib/_stream_transform.js"),n.PassThrough=t("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":179,"./lib/_stream_passthrough.js":180,"./lib/_stream_readable.js":181,"./lib/_stream_transform.js":182,"./lib/_stream_writable.js":183}],189:[function(t,e,n){e.exports=t("./readable").Transform},{"./readable":188}],190:[function(t,e,n){e.exports=t("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":183}],191:[function(t,e,n){var i=function(){return this}()||Function("return this")(),r=i.regeneratorRuntime&&Object.getOwnPropertyNames(i).indexOf("regeneratorRuntime")>=0,o=r&&i.regeneratorRuntime;if(i.regeneratorRuntime=void 0,e.exports=t("./runtime"),r)i.regeneratorRuntime=o;else try{delete i.regeneratorRuntime}catch(t){i.regeneratorRuntime=void 0}},{"./runtime":192}],192:[function(t,e,n){!function(t){"use strict";function n(t,e,n,i){var o=e&&e.prototype instanceof r?e:r,a=Object.create(o.prototype),s=new f(i||[]);return a._invoke=u(t,n,s),a}function i(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function r(){}function o(){}function a(){}function s(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function l(t){function e(n,r,o,a){var s=i(t[n],t,r);if("throw"!==s.type){var l=s.arg,u=l.value;return u&&"object"==typeof u&&y.call(u,"__await")?Promise.resolve(u.__await).then((function(t){e("next",t,o,a)}),(function(t){e("throw",t,o,a)})):Promise.resolve(u).then((function(t){l.value=t,o(l)}),a)}a(s.arg)}var n;this._invoke=function(t,i){function r(){return new Promise((function(n,r){e(t,i,n,r)}))}return n=n?n.then(r,r):r()}}function u(t,e,n){var r=C;return function(o,a){if(r===M)throw new Error("Generator is already running");if(r===E){if("throw"===o)throw a;return g()}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var l=c(s,n);if(l){if(l===L)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===C)throw r=E,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=M;var u=i(t,e,n);if("normal"===u.type){if(r=n.done?E:A,u.arg===L)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=E,n.method="throw",n.arg=u.arg)}}}function c(t,e){var n=t.iterator[e.method];if(n===m){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=m,c(t,e),"throw"===e.method))return L;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return L}var r=i(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,L;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=m),e.delegate=null,L):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,L)}function h(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function d(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function f(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(h,this),this.reset(!0)}function p(t){if(t){var e=t[b];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(y.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=m,e.done=!0,e};return i.next=i}}return{next:g}}function g(){return{value:m,done:!0}}var m,v=Object.prototype,y=v.hasOwnProperty,w="function"==typeof Symbol?Symbol:{},b=w.iterator||"@@iterator",x=w.asyncIterator||"@@asyncIterator",S=w.toStringTag||"@@toStringTag",P="object"==typeof e,k=t.regeneratorRuntime;if(k)P&&(e.exports=k);else{(k=t.regeneratorRuntime=P?e.exports:{}).wrap=n;var C="suspendedStart",A="suspendedYield",M="executing",E="completed",L={},T={};T[b]=function(){return this};var N=Object.getPrototypeOf,j=N&&N(N(p([])));j&&j!==v&&y.call(j,b)&&(T=j);var I=a.prototype=r.prototype=Object.create(T);o.prototype=I.constructor=a,a.constructor=o,a[S]=o.displayName="GeneratorFunction",k.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===o||"GeneratorFunction"===(e.displayName||e.name))},k.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,a):(t.__proto__=a,S in t||(t[S]="GeneratorFunction")),t.prototype=Object.create(I),t},k.awrap=function(t){return{__await:t}},s(l.prototype),l.prototype[x]=function(){return this},k.AsyncIterator=l,k.async=function(t,e,i,r){var o=new l(n(t,e,i,r));return k.isGeneratorFunction(e)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},s(I),I[S]="Generator",I[b]=function(){return this},I.toString=function(){return"[object Generator]"},k.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var i=e.pop();if(i in t)return n.value=i,n.done=!1,n}return n.done=!0,n}},k.values=p,f.prototype={constructor:f,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=m,this.done=!1,this.delegate=null,this.method="next",this.arg=m,this.tryEntries.forEach(d),!t)for(var e in this)"t"===e.charAt(0)&&y.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=m)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){function e(e,i){return o.type="throw",o.arg=t,n.next=e,i&&(n.method="next",n.arg=m),!!i}if(this.done)throw t;for(var n=this,i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i],o=r.completion;if("root"===r.tryLoc)return e("end");if(r.tryLoc<=this.prev){var a=y.call(r,"catchLoc"),s=y.call(r,"finallyLoc");if(a&&s){if(this.prev<r.catchLoc)return e(r.catchLoc,!0);if(this.prev<r.finallyLoc)return e(r.finallyLoc)}else if(a){if(this.prev<r.catchLoc)return e(r.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return e(r.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&y.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var r=i;break}}r&&("break"===t||"continue"===t)&&r.tryLoc<=e&&e<=r.finallyLoc&&(r=null);var o=r?r.completion:{};return o.type=t,o.arg=e,r?(this.method="next",this.next=r.finallyLoc,L):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),L},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),d(n),L}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;d(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:p(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=m),L}}}}(function(){return this}()||Function("return this")())},{}],193:[function(t,e,n){function i(t,e){for(var n in t)e[n]=t[n]}function r(t,e,n){return a(t,e,n)}var o=t("buffer"),a=o.Buffer;a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?e.exports=o:(i(o,n),n.Buffer=r),i(a,r),r.from=function(t,e,n){if("number"==typeof t)throw new TypeError("Argument must not be a number");return a(t,e,n)},r.alloc=function(t,e,n){if("number"!=typeof t)throw new TypeError("Argument must be a number");var i=a(t);return void 0!==e?"string"==typeof n?i.fill(e,n):i.fill(e):i.fill(0),i},r.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return a(t)},r.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return o.SlowBuffer(t)}},{buffer:38}],194:[function(t,e,n){(function(e){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}var r=i(t("babel-runtime/core-js/string/from-code-point")),o=i(t("babel-runtime/core-js/json/stringify")),a=i(t("babel-runtime/helpers/typeof")),s=i(t("babel-runtime/core-js/object/define-property")),l=i(t("babel-runtime/core-js/object/keys")),u=i(t("babel-runtime/core-js/object/create"));!function(n){function i(t,e){if(!(this instanceof i))return new i(t,e);var r=this;(function(t){for(var e=0,n=I.length;e<n;e++)t[I[e]]=""})(r),r.q=r.c="",r.bufferCheckPosition=n.MAX_BUFFER_LENGTH,r.opt=e||{},r.opt.lowercase=r.opt.lowercase||r.opt.lowercasetags,r.looseCase=r.opt.lowercase?"toLowerCase":"toUpperCase",r.tags=[],r.closed=r.closedRoot=r.sawRoot=!1,r.tag=r.error=null,r.strict=!!t,r.noscript=!(!t&&!r.opt.noscript),r.state=Z.BEGIN,r.strictEntities=r.opt.strictEntities,r.ENTITIES=r.strictEntities?(0,u.default)(n.XML_ENTITIES):(0,u.default)(n.ENTITIES),r.attribList=[],r.opt.xmlns&&(r.ns=(0,u.default)(z)),r.trackPosition=!1!==r.opt.position,r.trackPosition&&(r.position=r.line=r.column=0),v(r,"onready")}function c(t){for(var e=Math.max(n.MAX_BUFFER_LENGTH,10),i=0,r=0,o=I.length;r<o;r++){var a=t[I[r]].length;if(a>e)switch(I[r]){case"textNode":w(t);break;case"cdata":y(t,"oncdata",t.cdata),t.cdata="";break;case"script":y(t,"onscript",t.script),t.script="";break;default:x(t,"Max buffer length exceeded: "+I[r])}i=Math.max(i,a)}var s=n.MAX_BUFFER_LENGTH-i;t.bufferCheckPosition=s+t.position}function h(t,e){if(!(this instanceof h))return new h(t,e);j.apply(this),this._parser=new i(t,e),this.writable=!0,this.readable=!0;var n=this;this._parser.onend=function(){n.emit("end")},this._parser.onerror=function(t){n.emit("error",t),n._parser.error=null},this._decoder=null,B.forEach((function(t){(0,s.default)(n,"on"+t,{get:function(){return n._parser["on"+t]},set:function(e){if(!e)return n.removeAllListeners(t),n._parser["on"+t]=e,e;n.on(t,e)},enumerable:!0,configurable:!1})}))}function d(t){return" "===t||"\n"===t||"\r"===t||"\t"===t}function f(t){return'"'===t||"'"===t}function p(t){return">"===t||d(t)}function g(t,e){return t.test(e)}function m(t,e){return!g(t,e)}function v(t,e,n){t[e]&&t[e](n)}function y(t,e,n){t.textNode&&w(t),v(t,e,n)}function w(t){t.textNode=b(t.opt,t.textNode),t.textNode&&v(t,"ontext",t.textNode),t.textNode=""}function b(t,e){return t.trim&&(e=e.trim()),t.normalize&&(e=e.replace(/\s+/g," ")),e}function x(t,e){return w(t),t.trackPosition&&(e+="\nLine: "+t.line+"\nColumn: "+t.column+"\nChar: "+t.c),e=new Error(e),t.error=e,v(t,"onerror",e),t}function S(t){return t.sawRoot&&!t.closedRoot&&P(t,"Unclosed root tag"),t.state!==Z.BEGIN&&t.state!==Z.BEGIN_WHITESPACE&&t.state!==Z.TEXT&&x(t,"Unexpected end"),w(t),t.c="",t.closed=!0,v(t,"onend"),i.call(t,t.strict,t.opt),t}function P(t,e){if("object"!==(void 0===t?"undefined":(0,a.default)(t))||!(t instanceof i))throw new Error("bad call to strictFail");t.strict&&x(t,e)}function k(t){t.strict||(t.tagName=t.tagName[t.looseCase]());var e=t.tags[t.tags.length-1]||t,n=t.tag={name:t.tagName,attributes:{}};t.opt.xmlns&&(n.ns=e.ns),t.attribList.length=0,y(t,"onopentagstart",n)}function C(t,e){var n=t.indexOf(":")<0?["",t]:t.split(":"),i=n[0],r=n[1];return e&&"xmlns"===t&&(i="xmlns",r=""),{prefix:i,local:r}}function A(t){if(t.strict||(t.attribName=t.attribName[t.looseCase]()),-1!==t.attribList.indexOf(t.attribName)||t.tag.attributes.hasOwnProperty(t.attribName))t.attribName=t.attribValue="";else{if(t.opt.xmlns){var e=C(t.attribName,!0),n=e.prefix,i=e.local;if("xmlns"===n)if("xml"===i&&t.attribValue!==R)P(t,"xml: prefix must be bound to "+R+"\nActual: "+t.attribValue);else if("xmlns"===i&&t.attribValue!==F)P(t,"xmlns: prefix must be bound to "+F+"\nActual: "+t.attribValue);else{var r=t.tag,o=t.tags[t.tags.length-1]||t;r.ns===o.ns&&(r.ns=(0,u.default)(o.ns)),r.ns[i]=t.attribValue}t.attribList.push([t.attribName,t.attribValue])}else t.tag.attributes[t.attribName]=t.attribValue,y(t,"onattribute",{name:t.attribName,value:t.attribValue});t.attribName=t.attribValue=""}}function M(t,e){if(t.opt.xmlns){var n=t.tag,i=C(t.tagName);n.prefix=i.prefix,n.local=i.local,n.uri=n.ns[i.prefix]||"",n.prefix&&!n.uri&&(P(t,"Unbound namespace prefix: "+(0,o.default)(t.tagName)),n.uri=i.prefix);var r=t.tags[t.tags.length-1]||t;n.ns&&r.ns!==n.ns&&(0,l.default)(n.ns).forEach((function(e){y(t,"onopennamespace",{prefix:e,uri:n.ns[e]})}));for(var a=0,s=t.attribList.length;a<s;a++){var u=t.attribList[a],c=u[0],h=u[1],d=C(c,!0),f=d.prefix,p=d.local,g=""===f?"":n.ns[f]||"",m={name:c,value:h,prefix:f,local:p,uri:g};f&&"xmlns"!==f&&!g&&(P(t,"Unbound namespace prefix: "+(0,o.default)(f)),m.uri=f),t.tag.attributes[c]=m,y(t,"onattribute",m)}t.attribList.length=0}t.tag.isSelfClosing=!!e,t.sawRoot=!0,t.tags.push(t.tag),y(t,"onopentag",t.tag),e||(t.noscript||"script"!==t.tagName.toLowerCase()?t.state=Z.TEXT:t.state=Z.SCRIPT,t.tag=null,t.tagName=""),t.attribName=t.attribValue="",t.attribList.length=0}function E(t){if(!t.tagName)return P(t,"Weird empty close tag."),t.textNode+="</>",void(t.state=Z.TEXT);if(t.script){if("script"!==t.tagName)return t.script+="</"+t.tagName+">",t.tagName="",void(t.state=Z.SCRIPT);y(t,"onscript",t.script),t.script=""}var e=t.tags.length,n=t.tagName;t.strict||(n=n[t.looseCase]());for(var i=n;e--&&t.tags[e].name!==i;)P(t,"Unexpected close tag");if(e<0)return P(t,"Unmatched closing tag: "+t.tagName),t.textNode+="</"+t.tagName+">",void(t.state=Z.TEXT);t.tagName=n;for(var r=t.tags.length;r-- >e;){var o=t.tag=t.tags.pop();t.tagName=t.tag.name,y(t,"onclosetag",t.tagName);var a={};for(var s in o.ns)a[s]=o.ns[s];var u=t.tags[t.tags.length-1]||t;t.opt.xmlns&&o.ns!==u.ns&&(0,l.default)(o.ns).forEach((function(e){var n=o.ns[e];y(t,"onclosenamespace",{prefix:e,uri:n})}))}0===e&&(t.closedRoot=!0),t.tagName=t.attribValue=t.attribName="",t.attribList.length=0,t.state=Z.TEXT}function L(t){var e,n=t.entity,i=n.toLowerCase(),o="";return t.ENTITIES[n]?t.ENTITIES[n]:t.ENTITIES[i]?t.ENTITIES[i]:("#"===(n=i).charAt(0)&&("x"===n.charAt(1)?(n=n.slice(2),o=(e=parseInt(n,16)).toString(16)):(n=n.slice(1),o=(e=parseInt(n,10)).toString(10))),n=n.replace(/^0+/,""),isNaN(e)||o.toLowerCase()!==n?(P(t,"Invalid character entity"),"&"+t.entity+";"):(0,r.default)(e))}function T(t,e){"<"===e?(t.state=Z.OPEN_WAKA,t.startTagPosition=t.position):d(e)||(P(t,"Non-whitespace before first tag."),t.textNode=e,t.state=Z.TEXT)}function N(t,e){var n="";return e<t.length&&(n=t.charAt(e)),n}n.parser=function(t,e){return new i(t,e)},n.SAXParser=i,n.SAXStream=h,n.createStream=function(t,e){return new h(t,e)},n.MAX_BUFFER_LENGTH=65536;var j,I=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];n.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],u.default||(Object.create=function(t){function e(){}return e.prototype=t,new e}),l.default||(Object.keys=function(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}),i.prototype={end:function(){S(this)},write:function(t){var e=this;if(this.error)throw this.error;if(e.closed)return x(e,"Cannot write after close. Assign an onready handler.");if(null===t)return S(e);"object"===(void 0===t?"undefined":(0,a.default)(t))&&(t=t.toString());for(var n=0,i="";i=N(t,n++),e.c=i,i;)switch(e.trackPosition&&(e.position++,"\n"===i?(e.line++,e.column=0):e.column++),e.state){case Z.BEGIN:if(e.state=Z.BEGIN_WHITESPACE,"\ufeff"===i)continue;T(e,i);continue;case Z.BEGIN_WHITESPACE:T(e,i);continue;case Z.TEXT:if(e.sawRoot&&!e.closedRoot){for(var r=n-1;i&&"<"!==i&&"&"!==i;)(i=N(t,n++))&&e.trackPosition&&(e.position++,"\n"===i?(e.line++,e.column=0):e.column++);e.textNode+=t.substring(r,n-1)}"<"!==i||e.sawRoot&&e.closedRoot&&!e.strict?(d(i)||e.sawRoot&&!e.closedRoot||P(e,"Text data outside of root node."),"&"===i?e.state=Z.TEXT_ENTITY:e.textNode+=i):(e.state=Z.OPEN_WAKA,e.startTagPosition=e.position);continue;case Z.SCRIPT:"<"===i?e.state=Z.SCRIPT_ENDING:e.script+=i;continue;case Z.SCRIPT_ENDING:"/"===i?e.state=Z.CLOSE_TAG:(e.script+="<"+i,e.state=Z.SCRIPT);continue;case Z.OPEN_WAKA:if("!"===i)e.state=Z.SGML_DECL,e.sgmlDecl="";else if(d(i));else if(g(G,i))e.state=Z.OPEN_TAG,e.tagName=i;else if("/"===i)e.state=Z.CLOSE_TAG,e.tagName="";else if("?"===i)e.state=Z.PROC_INST,e.procInstName=e.procInstBody="";else{if(P(e,"Unencoded <"),e.startTagPosition+1<e.position){var o=e.position-e.startTagPosition;i=new Array(o).join(" ")+i}e.textNode+="<"+i,e.state=Z.TEXT}continue;case Z.SGML_DECL:(e.sgmlDecl+i).toUpperCase()===O?(y(e,"onopencdata"),e.state=Z.CDATA,e.sgmlDecl="",e.cdata=""):e.sgmlDecl+i==="--"?(e.state=Z.COMMENT,e.comment="",e.sgmlDecl=""):(e.sgmlDecl+i).toUpperCase()===D?(e.state=Z.DOCTYPE,(e.doctype||e.sawRoot)&&P(e,"Inappropriately located doctype declaration"),e.doctype="",e.sgmlDecl=""):">"===i?(y(e,"onsgmldeclaration",e.sgmlDecl),e.sgmlDecl="",e.state=Z.TEXT):f(i)?(e.state=Z.SGML_DECL_QUOTED,e.sgmlDecl+=i):e.sgmlDecl+=i;continue;case Z.SGML_DECL_QUOTED:i===e.q&&(e.state=Z.SGML_DECL,e.q=""),e.sgmlDecl+=i;continue;case Z.DOCTYPE:">"===i?(e.state=Z.TEXT,y(e,"ondoctype",e.doctype),e.doctype=!0):(e.doctype+=i,"["===i?e.state=Z.DOCTYPE_DTD:f(i)&&(e.state=Z.DOCTYPE_QUOTED,e.q=i));continue;case Z.DOCTYPE_QUOTED:e.doctype+=i,i===e.q&&(e.q="",e.state=Z.DOCTYPE);continue;case Z.DOCTYPE_DTD:e.doctype+=i,"]"===i?e.state=Z.DOCTYPE:f(i)&&(e.state=Z.DOCTYPE_DTD_QUOTED,e.q=i);continue;case Z.DOCTYPE_DTD_QUOTED:e.doctype+=i,i===e.q&&(e.state=Z.DOCTYPE_DTD,e.q="");continue;case Z.COMMENT:"-"===i?e.state=Z.COMMENT_ENDING:e.comment+=i;continue;case Z.COMMENT_ENDING:"-"===i?(e.state=Z.COMMENT_ENDED,e.comment=b(e.opt,e.comment),e.comment&&y(e,"oncomment",e.comment),e.comment=""):(e.comment+="-"+i,e.state=Z.COMMENT);continue;case Z.COMMENT_ENDED:">"!==i?(P(e,"Malformed comment"),e.comment+="--"+i,e.state=Z.COMMENT):e.state=Z.TEXT;continue;case Z.CDATA:"]"===i?e.state=Z.CDATA_ENDING:e.cdata+=i;continue;case Z.CDATA_ENDING:"]"===i?e.state=Z.CDATA_ENDING_2:(e.cdata+="]"+i,e.state=Z.CDATA);continue;case Z.CDATA_ENDING_2:">"===i?(e.cdata&&y(e,"oncdata",e.cdata),y(e,"onclosecdata"),e.cdata="",e.state=Z.TEXT):"]"===i?e.cdata+="]":(e.cdata+="]]"+i,e.state=Z.CDATA);continue;case Z.PROC_INST:"?"===i?e.state=Z.PROC_INST_ENDING:d(i)?e.state=Z.PROC_INST_BODY:e.procInstName+=i;continue;case Z.PROC_INST_BODY:if(!e.procInstBody&&d(i))continue;"?"===i?e.state=Z.PROC_INST_ENDING:e.procInstBody+=i;continue;case Z.PROC_INST_ENDING:">"===i?(y(e,"onprocessinginstruction",{name:e.procInstName,body:e.procInstBody}),e.procInstName=e.procInstBody="",e.state=Z.TEXT):(e.procInstBody+="?"+i,e.state=Z.PROC_INST_BODY);continue;case Z.OPEN_TAG:g(U,i)?e.tagName+=i:(k(e),">"===i?M(e):"/"===i?e.state=Z.OPEN_TAG_SLASH:(d(i)||P(e,"Invalid character in tag name"),e.state=Z.ATTRIB));continue;case Z.OPEN_TAG_SLASH:">"===i?(M(e,!0),E(e)):(P(e,"Forward-slash in opening tag not followed by >"),e.state=Z.ATTRIB);continue;case Z.ATTRIB:if(d(i))continue;">"===i?M(e):"/"===i?e.state=Z.OPEN_TAG_SLASH:g(G,i)?(e.attribName=i,e.attribValue="",e.state=Z.ATTRIB_NAME):P(e,"Invalid attribute name");continue;case Z.ATTRIB_NAME:"="===i?e.state=Z.ATTRIB_VALUE:">"===i?(P(e,"Attribute without value"),e.attribValue=e.attribName,A(e),M(e)):d(i)?e.state=Z.ATTRIB_NAME_SAW_WHITE:g(U,i)?e.attribName+=i:P(e,"Invalid attribute name");continue;case Z.ATTRIB_NAME_SAW_WHITE:if("="===i)e.state=Z.ATTRIB_VALUE;else{if(d(i))continue;P(e,"Attribute without value"),e.tag.attributes[e.attribName]="",e.attribValue="",y(e,"onattribute",{name:e.attribName,value:""}),e.attribName="",">"===i?M(e):g(G,i)?(e.attribName=i,e.state=Z.ATTRIB_NAME):(P(e,"Invalid attribute name"),e.state=Z.ATTRIB)}continue;case Z.ATTRIB_VALUE:if(d(i))continue;f(i)?(e.q=i,e.state=Z.ATTRIB_VALUE_QUOTED):(P(e,"Unquoted attribute value"),e.state=Z.ATTRIB_VALUE_UNQUOTED,e.attribValue=i);continue;case Z.ATTRIB_VALUE_QUOTED:if(i!==e.q){"&"===i?e.state=Z.ATTRIB_VALUE_ENTITY_Q:e.attribValue+=i;continue}A(e),e.q="",e.state=Z.ATTRIB_VALUE_CLOSED;continue;case Z.ATTRIB_VALUE_CLOSED:d(i)?e.state=Z.ATTRIB:">"===i?M(e):"/"===i?e.state=Z.OPEN_TAG_SLASH:g(G,i)?(P(e,"No whitespace between attributes"),e.attribName=i,e.attribValue="",e.state=Z.ATTRIB_NAME):P(e,"Invalid attribute name");continue;case Z.ATTRIB_VALUE_UNQUOTED:if(!p(i)){"&"===i?e.state=Z.ATTRIB_VALUE_ENTITY_U:e.attribValue+=i;continue}A(e),">"===i?M(e):e.state=Z.ATTRIB;continue;case Z.CLOSE_TAG:if(e.tagName)">"===i?E(e):g(U,i)?e.tagName+=i:e.script?(e.script+="</"+e.tagName,e.tagName="",e.state=Z.SCRIPT):(d(i)||P(e,"Invalid tagname in closing tag"),e.state=Z.CLOSE_TAG_SAW_WHITE);else{if(d(i))continue;m(G,i)?e.script?(e.script+="</"+i,e.state=Z.SCRIPT):P(e,"Invalid tagname in closing tag."):e.tagName=i}continue;case Z.CLOSE_TAG_SAW_WHITE:if(d(i))continue;">"===i?E(e):P(e,"Invalid characters in closing tag");continue;case Z.TEXT_ENTITY:case Z.ATTRIB_VALUE_ENTITY_Q:case Z.ATTRIB_VALUE_ENTITY_U:var s,l;switch(e.state){case Z.TEXT_ENTITY:s=Z.TEXT,l="textNode";break;case Z.ATTRIB_VALUE_ENTITY_Q:s=Z.ATTRIB_VALUE_QUOTED,l="attribValue";break;case Z.ATTRIB_VALUE_ENTITY_U:s=Z.ATTRIB_VALUE_UNQUOTED,l="attribValue"}";"===i?(e[l]+=L(e),e.entity="",e.state=s):g(e.entity.length?_:H,i)?e.entity+=i:(P(e,"Invalid character in entity name"),e[l]+="&"+e.entity+i,e.entity="",e.state=s);continue;default:throw new Error(e,"Unknown state: "+e.state)}return e.position>=e.bufferCheckPosition&&c(e),e},resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){!function(t){w(t),""!==t.cdata&&(y(t,"oncdata",t.cdata),t.cdata=""),""!==t.script&&(y(t,"onscript",t.script),t.script="")}(this)}};try{j=t("stream").Stream}catch(t){j=function(){}}var B=n.EVENTS.filter((function(t){return"error"!==t&&"end"!==t}));h.prototype=(0,u.default)(j.prototype,{constructor:{value:h}}),h.prototype.write=function(n){if("function"==typeof e&&"function"==typeof e.isBuffer&&e.isBuffer(n)){if(!this._decoder){var i=t("string_decoder").StringDecoder;this._decoder=new i("utf8")}n=this._decoder.write(n)}return this._parser.write(n.toString()),this.emit("data",n),!0},h.prototype.end=function(t){return t&&t.length&&this.write(t),this._parser.end(),!0},h.prototype.on=function(t,e){var n=this;return n._parser["on"+t]||-1===B.indexOf(t)||(n._parser["on"+t]=function(){var e=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);e.splice(0,0,t),n.emit.apply(n,e)}),j.prototype.on.call(n,t,e)};var O="[CDATA[",D="DOCTYPE",R="http://www.w3.org/XML/1998/namespace",F="http://www.w3.org/2000/xmlns/",z={xml:R,xmlns:F},G=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,U=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,H=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,_=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,Z=0;for(var W in n.STATE={BEGIN:Z++,BEGIN_WHITESPACE:Z++,TEXT:Z++,TEXT_ENTITY:Z++,OPEN_WAKA:Z++,SGML_DECL:Z++,SGML_DECL_QUOTED:Z++,DOCTYPE:Z++,DOCTYPE_QUOTED:Z++,DOCTYPE_DTD:Z++,DOCTYPE_DTD_QUOTED:Z++,COMMENT_STARTING:Z++,COMMENT:Z++,COMMENT_ENDING:Z++,COMMENT_ENDED:Z++,CDATA:Z++,CDATA_ENDING:Z++,CDATA_ENDING_2:Z++,PROC_INST:Z++,PROC_INST_BODY:Z++,PROC_INST_ENDING:Z++,OPEN_TAG:Z++,OPEN_TAG_SLASH:Z++,ATTRIB:Z++,ATTRIB_NAME:Z++,ATTRIB_NAME_SAW_WHITE:Z++,ATTRIB_VALUE:Z++,ATTRIB_VALUE_QUOTED:Z++,ATTRIB_VALUE_CLOSED:Z++,ATTRIB_VALUE_UNQUOTED:Z++,ATTRIB_VALUE_ENTITY_Q:Z++,ATTRIB_VALUE_ENTITY_U:Z++,CLOSE_TAG:Z++,CLOSE_TAG_SAW_WHITE:Z++,SCRIPT:Z++,SCRIPT_ENDING:Z++},n.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},n.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},(0,l.default)(n.ENTITIES).forEach((function(t){var e=n.ENTITIES[t],i="number"==typeof e?String.fromCharCode(e):e;n.ENTITIES[t]=i})),n.STATE)n.STATE[n.STATE[W]]=W;Z=n.STATE,r.default||function(){var t=String.fromCharCode,e=Math.floor,n=function(){var n,i,r=[],o=-1,a=arguments.length;if(!a)return"";for(var s="";++o<a;){var l=Number(arguments[o]);if(!isFinite(l)||l<0||l>1114111||e(l)!==l)throw RangeError("Invalid code point: "+l);l<=65535?r.push(l):(n=55296+((l-=65536)>>10),i=l%1024+56320,r.push(n,i)),(o+1===a||r.length>16384)&&(s+=t.apply(null,r),r.length=0)}return s};s.default?Object.defineProperty(String,"fromCodePoint",{value:n,configurable:!0,writable:!0}):String.fromCodePoint=n}()}(void 0===n?(void 0).sax={}:n)}).call(this,t("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":17,"babel-runtime/core-js/object/create":19,"babel-runtime/core-js/object/define-property":20,"babel-runtime/core-js/object/keys":23,"babel-runtime/core-js/string/from-code-point":26,"babel-runtime/helpers/typeof":32,buffer:38,stream:195,string_decoder:37}],195:[function(t,e,n){function i(){r.call(this)}e.exports=i;var r=t("events").EventEmitter;t("inherits")(i,r),i.Readable=t("readable-stream/readable.js"),i.Writable=t("readable-stream/writable.js"),i.Duplex=t("readable-stream/duplex.js"),i.Transform=t("readable-stream/transform.js"),i.PassThrough=t("readable-stream/passthrough.js"),i.Stream=i,i.prototype.pipe=function(t,e){function n(e){t.writable&&!1===t.write(e)&&u.pause&&u.pause()}function i(){u.readable&&u.resume&&u.resume()}function o(){c||(c=!0,t.end())}function a(){c||(c=!0,"function"==typeof t.destroy&&t.destroy())}function s(t){if(l(),0===r.listenerCount(this,"error"))throw t}function l(){u.removeListener("data",n),t.removeListener("drain",i),u.removeListener("end",o),u.removeListener("close",a),u.removeListener("error",s),t.removeListener("error",s),u.removeListener("end",l),u.removeListener("close",l),t.removeListener("close",l)}var u=this;u.on("data",n),t.on("drain",i),t._isStdio||e&&!1===e.end||(u.on("end",o),u.on("close",a));var c=!1;return u.on("error",s),t.on("error",s),u.on("end",l),u.on("close",l),t.on("close",l),t.emit("pipe",u),t}},{events:158,inherits:162,"readable-stream/duplex.js":178,"readable-stream/passthrough.js":187,"readable-stream/readable.js":188,"readable-stream/transform.js":189,"readable-stream/writable.js":190}],196:[function(t,e,i){(function(e){var n=t("./lib/request"),r=t("./lib/response"),o=t("xtend"),a=t("builtin-status-codes"),s=t("url"),l=i;l.request=function(t,i){t="string"==typeof t?s.parse(t):o(t);var r=-1===e.location.protocol.search(/^https?:$/)?"http:":"",a=t.protocol||r,l=t.hostname||t.host,u=t.port,c=t.path||"/";l&&-1!==l.indexOf(":")&&(l="["+l+"]"),t.url=(l?a+"//"+l:"")+(u?":"+u:"")+c,t.method=(t.method||"GET").toUpperCase(),t.headers=t.headers||{};var h=new n(t);return i&&h.on("response",i),h},l.get=function(t,e){var n=l.request(t,e);return n.end(),n},l.ClientRequest=n,l.IncomingMessage=r.IncomingMessage,l.Agent=function(){},l.Agent.defaultMaxSockets=4,l.globalAgent=new l.Agent,l.STATUS_CODES=a,l.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./lib/request":198,"./lib/response":199,"builtin-status-codes":39,url:203,xtend:236}],197:[function(t,e,i){(function(t){"use strict";function e(){if(void 0!==o)return o;if(t.XMLHttpRequest){o=new t.XMLHttpRequest;try{o.open("GET",t.XDomainRequest?"/":"https://example.com")}catch(t){o=null}}else o=null;return o}function n(t){var n=e();if(!n)return!1;try{return n.responseType=t,n.responseType===t}catch(t){}return!1}function r(t){return"function"==typeof t}i.fetch=r(t.fetch)&&r(t.ReadableStream),i.writableStream=r(t.WritableStream),i.abortController=r(t.AbortController),i.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),i.blobConstructor=!0}catch(t){}var o,a=void 0!==t.ArrayBuffer,s=a&&r(t.ArrayBuffer.prototype.slice);i.arraybuffer=i.fetch||a&&n("arraybuffer"),i.msstream=!i.fetch&&s&&n("ms-stream"),i.mozchunkedarraybuffer=!i.fetch&&a&&n("moz-chunked-arraybuffer"),i.overrideMimeType=i.fetch||!!e()&&r(e().overrideMimeType),i.vbArray=r(t.VBArray),o=null}).call(this,void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],198:[function(t,e,i){(function(n,i,r){"use strict";var o=function(t){return t&&t.__esModule?t:{default:t}}(t("babel-runtime/core-js/object/keys")),a=t("./capability"),s=t("inherits"),l=t("./response"),u=t("readable-stream"),c=t("to-arraybuffer"),h=l.IncomingMessage,d=l.readyStates,f=e.exports=function(t){var e=this;u.Writable.call(e),e._opts=t,e._body=[],e._headers={},t.auth&&e.setHeader("Authorization","Basic "+new r(t.auth).toString("base64")),(0,o.default)(t.headers).forEach((function(n){e.setHeader(n,t.headers[n])}));var n,i=!0;if("disable-fetch"===t.mode||"requestTimeout"in t&&!a.abortController)i=!1,n=!0;else if("prefer-streaming"===t.mode)n=!1;else if("allow-wrong-content-type"===t.mode)n=!a.overrideMimeType;else{if(t.mode&&"default"!==t.mode&&"prefer-fast"!==t.mode)throw new Error("Invalid value for opts.mode");n=!0}e._mode=function(t,e){return a.fetch&&e?"fetch":a.mozchunkedarraybuffer?"moz-chunked-arraybuffer":a.msstream?"ms-stream":a.arraybuffer&&t?"arraybuffer":a.vbArray&&t?"text:vbarray":"text"}(n,i),e._fetchTimer=null,e.on("finish",(function(){e._onFinish()}))};s(f,u.Writable),f.prototype.setHeader=function(t,e){var n=t.toLowerCase();-1===p.indexOf(n)&&(this._headers[n]={name:t,value:e})},f.prototype.getHeader=function(t){var e=this._headers[t.toLowerCase()];return e?e.value:null},f.prototype.removeHeader=function(t){delete this._headers[t.toLowerCase()]},f.prototype._onFinish=function(){var t=this;if(!t._destroyed){var e=t._opts,s=t._headers,l=null;"GET"!==e.method&&"HEAD"!==e.method&&(l=a.arraybuffer?c(r.concat(t._body)):a.blobConstructor?new i.Blob(t._body.map((function(t){return c(t)})),{type:(s["content-type"]||{}).value||""}):r.concat(t._body).toString());var u=[];if((0,o.default)(s).forEach((function(t){var e=s[t].name,n=s[t].value;Array.isArray(n)?n.forEach((function(t){u.push([e,t])})):u.push([e,n])})),"fetch"===t._mode){var h=null;if(a.abortController){var f=new AbortController;h=f.signal,t._fetchAbortController=f,"requestTimeout"in e&&0!==e.requestTimeout&&(t._fetchTimer=i.setTimeout((function(){t.emit("requestTimeout"),t._fetchAbortController&&t._fetchAbortController.abort()}),e.requestTimeout))}i.fetch(t._opts.url,{method:t._opts.method,headers:u,body:l||void 0,mode:"cors",credentials:e.withCredentials?"include":"same-origin",signal:h}).then((function(e){t._fetchResponse=e,t._connect()}),(function(e){i.clearTimeout(t._fetchTimer),t._destroyed||t.emit("error",e)}))}else{var p=t._xhr=new i.XMLHttpRequest;try{p.open(t._opts.method,t._opts.url,!0)}catch(e){return void n.nextTick((function(){t.emit("error",e)}))}"responseType"in p&&(p.responseType=t._mode.split(":")[0]),"withCredentials"in p&&(p.withCredentials=!!e.withCredentials),"text"===t._mode&&"overrideMimeType"in p&&p.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in e&&(p.timeout=e.requestTimeout,p.ontimeout=function(){t.emit("requestTimeout")}),u.forEach((function(t){p.setRequestHeader(t[0],t[1])})),t._response=null,p.onreadystatechange=function(){switch(p.readyState){case d.LOADING:case d.DONE:t._onXHRProgress()}},"moz-chunked-arraybuffer"===t._mode&&(p.onprogress=function(){t._onXHRProgress()}),p.onerror=function(){t._destroyed||t.emit("error",new Error("XHR error"))};try{p.send(l)}catch(e){return void n.nextTick((function(){t.emit("error",e)}))}}}},f.prototype._onXHRProgress=function(){var t=this;(function(t){try{var e=t.status;return null!==e&&0!==e}catch(t){return!1}})(t._xhr)&&!t._destroyed&&(t._response||t._connect(),t._response._onXHRProgress())},f.prototype._connect=function(){var t=this;t._destroyed||(t._response=new h(t._xhr,t._fetchResponse,t._mode,t._fetchTimer),t._response.on("error",(function(e){t.emit("error",e)})),t.emit("response",t._response))},f.prototype._write=function(t,e,n){this._body.push(t),n()},f.prototype.abort=f.prototype.destroy=function(){var t=this;t._destroyed=!0,i.clearTimeout(t._fetchTimer),t._response&&(t._response._destroyed=!0),t._xhr?t._xhr.abort():t._fetchAbortController&&t._fetchAbortController.abort()},f.prototype.end=function(t,e,n){"function"==typeof t&&(n=t,t=void 0),u.Writable.prototype.end.call(this,t,e,n)},f.prototype.flushHeaders=function(){},f.prototype.setTimeout=function(){},f.prototype.setNoDelay=function(){},f.prototype.setSocketKeepAlive=function(){};var p=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(this,t("_process"),void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer)},{"./capability":197,"./response":199,_process:173,"babel-runtime/core-js/object/keys":23,buffer:38,inherits:162,"readable-stream":188,"to-arraybuffer":202}],199:[function(t,e,i){(function(e,n,r){"use strict";var o=function(t){return t&&t.__esModule?t:{default:t}}(t("babel-runtime/core-js/promise")),a=t("./capability"),s=t("inherits"),l=t("readable-stream"),u=i.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},c=i.IncomingMessage=function(t,i,s,u){var c=this;if(l.Readable.call(c),c._mode=s,c.headers={},c.rawHeaders=[],c.trailers={},c.rawTrailers=[],c.on("end",(function(){e.nextTick((function(){c.emit("close")}))})),"fetch"===s){if(c._fetchResponse=i,c.url=i.url,c.statusCode=i.status,c.statusMessage=i.statusText,i.headers.forEach((function(t,e){c.headers[e.toLowerCase()]=t,c.rawHeaders.push(e,t)})),a.writableStream){var h=new WritableStream({write:function(t){return new o.default((function(e,n){c._destroyed?n():c.push(new r(t))?e():c._resumeFetch=e}))},close:function(){n.clearTimeout(u),c._destroyed||c.push(null)},abort:function(t){c._destroyed||c.emit("error",t)}});try{return void i.body.pipeTo(h).catch((function(t){n.clearTimeout(u),c._destroyed||c.emit("error",t)}))}catch(t){}}var d=i.body.getReader();!function t(){d.read().then((function(e){if(!c._destroyed){if(e.done)return n.clearTimeout(u),void c.push(null);c.push(new r(e.value)),t()}})).catch((function(t){n.clearTimeout(u),c._destroyed||c.emit("error",t)}))}()}else if(c._xhr=t,c._pos=0,c.url=t.responseURL,c.statusCode=t.status,c.statusMessage=t.statusText,t.getAllResponseHeaders().split(/\r?\n/).forEach((function(t){var e=t.match(/^([^:]+):\s*(.*)/);if(e){var n=e[1].toLowerCase();"set-cookie"===n?(void 0===c.headers[n]&&(c.headers[n]=[]),c.headers[n].push(e[2])):void 0!==c.headers[n]?c.headers[n]+=", "+e[2]:c.headers[n]=e[2],c.rawHeaders.push(e[1],e[2])}})),c._charset="x-user-defined",!a.overrideMimeType){var f=c.rawHeaders["mime-type"];if(f){var p=f.match(/;\s*charset=([^;])(;|$)/);p&&(c._charset=p[1].toLowerCase())}c._charset||(c._charset="utf-8")}};s(c,l.Readable),c.prototype._read=function(){var t=this._resumeFetch;t&&(this._resumeFetch=null,t())},c.prototype._onXHRProgress=function(){var t=this,e=t._xhr,i=null;switch(t._mode){case"text:vbarray":if(e.readyState!==u.DONE)break;try{i=new n.VBArray(e.responseBody).toArray()}catch(t){}if(null!==i){t.push(new r(i));break}case"text":try{i=e.responseText}catch(e){t._mode="text:vbarray";break}if(i.length>t._pos){var o=i.substr(t._pos);if("x-user-defined"===t._charset){for(var a=new r(o.length),s=0;s<o.length;s++)a[s]=255&o.charCodeAt(s);t.push(a)}else t.push(o,t._charset);t._pos=i.length}break;case"arraybuffer":if(e.readyState!==u.DONE||!e.response)break;i=e.response,t.push(new r(new Uint8Array(i)));break;case"moz-chunked-arraybuffer":if(i=e.response,e.readyState!==u.LOADING||!i)break;t.push(new r(new Uint8Array(i)));break;case"ms-stream":if(i=e.response,e.readyState!==u.LOADING)break;var l=new n.MSStreamReader;l.onprogress=function(){l.result.byteLength>t._pos&&(t.push(new r(new Uint8Array(l.result.slice(t._pos)))),t._pos=l.result.byteLength)},l.onload=function(){t.push(null)},l.readAsArrayBuffer(i)}t._xhr.readyState===u.DONE&&"ms-stream"!==t._mode&&t.push(null)}}).call(this,t("_process"),void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer)},{"./capability":197,_process:173,"babel-runtime/core-js/promise":24,buffer:38,inherits:162,"readable-stream":188}],200:[function(t,e,n){"use strict";function i(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(d.isEncoding===f||!f(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=a,this.end=s,e=4;break;case"utf8":this.fillLast=o,e=4;break;case"base64":this.text=l,this.end=u,e=3;break;default:return this.write=c,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=d.allocUnsafe(e)}function r(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function o(t){var e=this.lastTotal-this.lastNeed,n=function(t,e,n){if(128!=(192&e[0]))return t.lastNeed=0,"锟<>";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"锟<>";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"锟<>"}}(this,t);return void 0!==n?n:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function a(t,e){if((t.length-e)%2==0){var n=t.toString("utf16le",e);if(n){var i=n.charCodeAt(n.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function s(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,n)}return e}function l(t,e){var n=(t.length-e)%3;return 0===n?t.toString("base64",e):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-n))}function u(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function c(t){return t.toString(this.encoding)}function h(t){return t&&t.length?this.write(t):""}var d=t("safe-buffer").Buffer,f=d.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};n.StringDecoder=i,i.prototype.write=function(t){if(0===t.length)return"";var e,n;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<t.length?e?e+this.text(t,n):this.text(t,n):e||""},i.prototype.end=function(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"锟<>":e},i.prototype.text=function(t,e){var n=function(t,e,n){var i=e.length-1;if(i<n)return 0;var o=r(e[i]);return o>=0?(o>0&&(t.lastNeed=o-1),o):--i<n||-2===o?0:(o=r(e[i]))>=0?(o>0&&(t.lastNeed=o-2),o):--i<n||-2===o?0:(o=r(e[i]))>=0?(o>0&&(2===o?o=0:t.lastNeed=o-3),o):0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=n;var i=t.length-(n-this.lastNeed);return t.copy(this.lastChar,0,i),t.toString("utf8",e,i)},i.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},{"safe-buffer":193}],201:[function(t,e,n){(function(e,i){function r(t,e){this._id=t,this._clearFn=e}var o=t("process/browser.js").nextTick,a=Function.prototype.apply,s=Array.prototype.slice,l={},u=0;n.setTimeout=function(){return new r(a.call(setTimeout,window,arguments),clearTimeout)},n.setInterval=function(){return new r(a.call(setInterval,window,arguments),clearInterval)},n.clearTimeout=n.clearInterval=function(t){t.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(window,this._id)},n.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},n.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},n._unrefActive=n.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},n.setImmediate="function"==typeof e?e:function(t){var e=u++,i=!(arguments.length<2)&&s.call(arguments,1);return l[e]=!0,o((function(){l[e]&&(i?t.apply(null,i):t.call(null),n.clearImmediate(e))})),e},n.clearImmediate="function"==typeof i?i:function(t){delete l[t]}}).call(this,t("timers").setImmediate,t("timers").clearImmediate)},{"process/browser.js":173,timers:201}],202:[function(t,e,n){var i=t("buffer").Buffer;e.exports=function(t){if(t instanceof Uint8Array){if(0===t.byteOffset&&t.byteLength===t.buffer.byteLength)return t.buffer;if("function"==typeof t.buffer.slice)return t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}if(i.isBuffer(t)){for(var e=new Uint8Array(t.length),n=t.length,r=0;r<n;r++)e[r]=t[r];return e.buffer}throw new Error("Argument must be a Buffer")}},{buffer:38}],203:[function(t,e,n){"use strict";function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function r(t,e,n){if(t&&a.isObject(t)&&t instanceof i)return t;var r=new i;return r.parse(t,e,n),r}var o=t("punycode"),a=t("./util");n.parse=r,n.resolve=function(t,e){return r(t,!1,!0).resolve(e)},n.resolveObject=function(t,e){return t?r(t,!1,!0).resolveObject(e):e},n.format=function(t){return a.isString(t)&&(t=r(t)),t instanceof i?t.format():i.prototype.format.call(t)},n.Url=i;var s=/^([a-z0-9.+-]+:)/i,l=/:[0-9]*$/,u=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),h=["'"].concat(c),d=["%","/","?",";","#"].concat(h),f=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,g=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},v={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},w=t("querystring");i.prototype.parse=function(t,e,n){if(!a.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var i=t.indexOf("?"),r=-1!==i&&i<t.indexOf("#")?"?":"#",l=t.split(r);l[0]=l[0].replace(/\\/g,"/");var c=t=l.join(r);if(c=c.trim(),!n&&1===t.split("#").length){var b=u.exec(c);if(b)return this.path=c,this.href=c,this.pathname=b[1],b[2]?(this.search=b[2],this.query=e?w.parse(this.search.substr(1)):this.search.substr(1)):e&&(this.search="",this.query={}),this}var x=s.exec(c);if(x){var S=(x=x[0]).toLowerCase();this.protocol=S,c=c.substr(x.length)}if(n||x||c.match(/^\/\/[^@\/]+@[^@\/]+/)){var P="//"===c.substr(0,2);!P||x&&v[x]||(c=c.substr(2),this.slashes=!0)}if(!v[x]&&(P||x&&!y[x])){for(var k=-1,C=0;C<f.length;C++)-1!==(E=c.indexOf(f[C]))&&(-1===k||E<k)&&(k=E);var A,M;for(-1!==(M=-1===k?c.lastIndexOf("@"):c.lastIndexOf("@",k))&&(A=c.slice(0,M),c=c.slice(M+1),this.auth=decodeURIComponent(A)),k=-1,C=0;C<d.length;C++){var E;-1!==(E=c.indexOf(d[C]))&&(-1===k||E<k)&&(k=E)}-1===k&&(k=c.length),this.host=c.slice(0,k),c=c.slice(k),this.parseHost(),this.hostname=this.hostname||"";var L="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!L)for(var T=this.hostname.split(/\./),N=(C=0,T.length);C<N;C++){var j=T[C];if(j&&!j.match(p)){for(var I="",B=0,O=j.length;B<O;B++)j.charCodeAt(B)>127?I+="x":I+=j[B];if(!I.match(p)){var D=T.slice(0,C),R=T.slice(C+1),F=j.match(g);F&&(D.push(F[1]),R.unshift(F[2])),R.length&&(c="/"+R.join(".")+c),this.hostname=D.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),L||(this.hostname=o.toASCII(this.hostname));var z=this.port?":"+this.port:"",G=this.hostname||"";this.host=G+z,this.href+=this.host,L&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==c[0]&&(c="/"+c))}if(!m[S])for(C=0,N=h.length;C<N;C++){var U=h[C];if(-1!==c.indexOf(U)){var H=encodeURIComponent(U);H===U&&(H=escape(U)),c=c.split(U).join(H)}}var _=c.indexOf("#");-1!==_&&(this.hash=c.substr(_),c=c.slice(0,_));var Z=c.indexOf("?");if(-1!==Z?(this.search=c.substr(Z),this.query=c.substr(Z+1),e&&(this.query=w.parse(this.query)),c=c.slice(0,Z)):e&&(this.search="",this.query={}),c&&(this.pathname=c),y[S]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){z=this.pathname||"";var W=this.search||"";this.path=z+W}return this.href=this.format(),this},i.prototype.format=function(){var t=this.auth||"";t&&(t=(t=encodeURIComponent(t)).replace(/%3A/i,":"),t+="@");var e=this.protocol||"",n=this.pathname||"",i=this.hash||"",r=!1,o="";this.host?r=t+this.host:this.hostname&&(r=t+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(r+=":"+this.port)),this.query&&a.isObject(this.query)&&Object.keys(this.query).length&&(o=w.stringify(this.query));var s=this.search||o&&"?"+o||"";return e&&":"!==e.substr(-1)&&(e+=":"),this.slashes||(!e||y[e])&&!1!==r?(r="//"+(r||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):r||(r=""),i&&"#"!==i.charAt(0)&&(i="#"+i),s&&"?"!==s.charAt(0)&&(s="?"+s),n=n.replace(/[?#]/g,(function(t){return encodeURIComponent(t)})),e+r+n+(s=s.replace("#","%23"))+i},i.prototype.resolve=function(t){return this.resolveObject(r(t,!1,!0)).format()},i.prototype.resolveObject=function(t){if(a.isString(t)){var e=new i;e.parse(t,!1,!0),t=e}for(var n=new i,r=Object.keys(this),o=0;o<r.length;o++){var s=r[o];n[s]=this[s]}if(n.hash=t.hash,""===t.href)return n.href=n.format(),n;if(t.slashes&&!t.protocol){for(var l=Object.keys(t),u=0;u<l.length;u++){var c=l[u];"protocol"!==c&&(n[c]=t[c])}return y[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(t.protocol&&t.protocol!==n.protocol){if(!y[t.protocol]){for(var h=Object.keys(t),d=0;d<h.length;d++){var f=h[d];n[f]=t[f]}return n.href=n.format(),n}if(n.protocol=t.protocol,t.host||v[t.protocol])n.pathname=t.pathname;else{for(var p=(t.pathname||"").split("/");p.length&&!(t.host=p.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),""!==p[0]&&p.unshift(""),p.length<2&&p.unshift(""),n.pathname=p.join("/")}if(n.search=t.search,n.query=t.query,n.host=t.host||"",n.auth=t.auth,n.hostname=t.hostname||t.host,n.port=t.port,n.pathname||n.search){var g=n.pathname||"",m=n.search||"";n.path=g+m}return n.slashes=n.slashes||t.slashes,n.href=n.format(),n}var w=n.pathname&&"/"===n.pathname.charAt(0),b=t.host||t.pathname&&"/"===t.pathname.charAt(0),x=b||w||n.host&&t.pathname,S=x,P=n.pathname&&n.pathname.split("/")||[],k=(p=t.pathname&&t.pathname.split("/")||[],n.protocol&&!y[n.protocol]);if(k&&(n.hostname="",n.port=null,n.host&&(""===P[0]?P[0]=n.host:P.unshift(n.host)),n.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(""===p[0]?p[0]=t.host:p.unshift(t.host)),t.host=null),x=x&&(""===p[0]||""===P[0])),b)n.host=t.host||""===t.host?t.host:n.host,n.hostname=t.hostname||""===t.hostname?t.hostname:n.hostname,n.search=t.search,n.query=t.query,P=p;else if(p.length)P||(P=[]),P.pop(),P=P.concat(p),n.search=t.search,n.query=t.query;else if(!a.isNullOrUndefined(t.search))return k&&(n.hostname=n.host=P.shift(),(L=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=L.shift(),n.host=n.hostname=L.shift())),n.search=t.search,n.query=t.query,a.isNull(n.pathname)&&a.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n;if(!P.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var C=P.slice(-1)[0],A=(n.host||t.host||P.length>1)&&("."===C||".."===C)||""===C,M=0,E=P.length;E>=0;E--)"."===(C=P[E])?P.splice(E,1):".."===C?(P.splice(E,1),M++):M&&(P.splice(E,1),M--);if(!x&&!S)for(;M--;M)P.unshift("..");!x||""===P[0]||P[0]&&"/"===P[0].charAt(0)||P.unshift(""),A&&"/"!==P.join("/").substr(-1)&&P.push("");var L,T=""===P[0]||P[0]&&"/"===P[0].charAt(0);return k&&(n.hostname=n.host=T?"":P.length?P.shift():"",(L=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=L.shift(),n.host=n.hostname=L.shift())),(x=x||n.host&&P.length)&&!T&&P.unshift(""),P.length?n.pathname=P.join("/"):(n.pathname=null,n.path=null),a.isNull(n.pathname)&&a.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=t.auth||n.auth,n.slashes=n.slashes||t.slashes,n.href=n.format(),n},i.prototype.parseHost=function(){var t=this.host,e=l.exec(t);e&&(":"!==(e=e[0])&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},{"./util":204,punycode:174,querystring:177}],204:[function(t,e,n){"use strict";e.exports={isString:function(t){return"string"==typeof t},isObject:function(t){return"object"==typeof t&&null!==t},isNull:function(t){return null===t},isNullOrUndefined:function(t){return null==t}}},{}],205:[function(t,e,i){(function(t){function n(e){try{if(!t.localStorage)return!1}catch(t){return!1}var n=t.localStorage[e];return null!=n&&"true"===String(n).toLowerCase()}e.exports=function(t,e){if(n("noDeprecation"))return t;var i=!1;return function(){if(!i){if(n("throwDeprecation"))throw new Error(e);n("traceDeprecation")?console.trace(e):console.warn(e),i=!0}return t.apply(this,arguments)}}}).call(this,void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],206:[function(t,e,n){e.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},{}],207:[function(t,e,i){(function(e,n){function r(t,e){var n={seen:[],stylize:a};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),d(e)?n.showHidden=e:e&&i._extend(n,e),m(n.showHidden)&&(n.showHidden=!1),m(n.depth)&&(n.depth=2),m(n.colors)&&(n.colors=!1),m(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=o),s(n,t,n.depth)}function o(t,e){var n=r.styles[e];return n?"["+r.colors[n][0]+"m"+t+"["+r.colors[n][1]+"m":t}function a(t,e){return t}function s(t,e,n){if(t.customInspect&&e&&x(e.inspect)&&e.inspect!==i.inspect&&(!e.constructor||e.constructor.prototype!==e)){var r=e.inspect(n,t);return g(r)||(r=s(t,r,n)),r}var o=l(t,e);if(o)return o;var a=Object.keys(e),d=function(t){var e={};return t.forEach((function(t,n){e[t]=!0})),e}(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(e)),b(e)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return u(e);if(0===a.length){if(x(e)){var f=e.name?": "+e.name:"";return t.stylize("[Function"+f+"]","special")}if(v(e))return t.stylize(RegExp.prototype.toString.call(e),"regexp");if(w(e))return t.stylize(Date.prototype.toString.call(e),"date");if(b(e))return u(e)}var p,m="",y=!1,S=["{","}"];return h(e)&&(y=!0,S=["[","]"]),x(e)&&(m=" [Function"+(e.name?": "+e.name:"")+"]"),v(e)&&(m=" "+RegExp.prototype.toString.call(e)),w(e)&&(m=" "+Date.prototype.toUTCString.call(e)),b(e)&&(m=" "+u(e)),0!==a.length||y&&0!=e.length?n<0?v(e)?t.stylize(RegExp.prototype.toString.call(e),"regexp"):t.stylize("[Object]","special"):(t.seen.push(e),p=y?function(t,e,n,i,r){for(var o=[],a=0,s=e.length;a<s;++a)C(e,String(a))?o.push(c(t,e,n,i,String(a),!0)):o.push("");return r.forEach((function(r){r.match(/^\d+$/)||o.push(c(t,e,n,i,r,!0))})),o}(t,e,n,d,a):a.map((function(i){return c(t,e,n,d,i,y)})),t.seen.pop(),function(t,e,n){return t.reduce((function(t,e){return e.indexOf("\n"),t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1]:n[0]+e+" "+t.join(", ")+" "+n[1]}(p,m,S)):S[0]+m+S[1]}function l(t,e){if(m(e))return t.stylize("undefined","undefined");if(g(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}return p(e)?t.stylize(""+e,"number"):d(e)?t.stylize(""+e,"boolean"):f(e)?t.stylize("null","null"):void 0}function u(t){return"["+Error.prototype.toString.call(t)+"]"}function c(t,e,n,i,r,o){var a,l,u;if((u=Object.getOwnPropertyDescriptor(e,r)||{value:e[r]}).get?l=u.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):u.set&&(l=t.stylize("[Setter]","special")),C(i,r)||(a="["+r+"]"),l||(t.seen.indexOf(u.value)<0?(l=f(n)?s(t,u.value,null):s(t,u.value,n-1)).indexOf("\n")>-1&&(l=o?l.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+l.split("\n").map((function(t){return" "+t})).join("\n")):l=t.stylize("[Circular]","special")),m(a)){if(o&&r.match(/^\d+$/))return l;(a=JSON.stringify(""+r)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+l}function h(t){return Array.isArray(t)}function d(t){return"boolean"==typeof t}function f(t){return null===t}function p(t){return"number"==typeof t}function g(t){return"string"==typeof t}function m(t){return void 0===t}function v(t){return y(t)&&"[object RegExp]"===S(t)}function y(t){return"object"==typeof t&&null!==t}function w(t){return y(t)&&"[object Date]"===S(t)}function b(t){return y(t)&&("[object Error]"===S(t)||t instanceof Error)}function x(t){return"function"==typeof t}function S(t){return Object.prototype.toString.call(t)}function P(t){return t<10?"0"+t.toString(10):t.toString(10)}function k(){var t=new Date,e=[P(t.getHours()),P(t.getMinutes()),P(t.getSeconds())].join(":");return[t.getDate(),L[t.getMonth()],e].join(" ")}function C(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var A=/%[sdj%]/g;i.format=function(t){if(!g(t)){for(var e=[],n=0;n<arguments.length;n++)e.push(r(arguments[n]));return e.join(" ")}n=1;for(var i=arguments,o=i.length,a=String(t).replace(A,(function(t){if("%%"===t)return"%";if(n>=o)return t;switch(t){case"%s":return String(i[n++]);case"%d":return Number(i[n++]);case"%j":try{return JSON.stringify(i[n++])}catch(t){return"[Circular]"}default:return t}})),s=i[n];n<o;s=i[++n])f(s)||!y(s)?a+=" "+s:a+=" "+r(s);return a},i.deprecate=function(t,r){if(m(n.process))return function(){return i.deprecate(t,r).apply(this,arguments)};if(!0===e.noDeprecation)return t;var o=!1;return function(){if(!o){if(e.throwDeprecation)throw new Error(r);e.traceDeprecation?console.trace(r):console.error(r),o=!0}return t.apply(this,arguments)}};var M,E={};i.debuglog=function(t){if(m(M)&&(M=e.env.NODE_DEBUG||""),t=t.toUpperCase(),!E[t])if(new RegExp("\\b"+t+"\\b","i").test(M)){var n=e.pid;E[t]=function(){var e=i.format.apply(i,arguments);console.error("%s %d: %s",t,n,e)}}else E[t]=function(){};return E[t]},i.inspect=r,r.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},r.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},i.isArray=h,i.isBoolean=d,i.isNull=f,i.isNullOrUndefined=function(t){return null==t},i.isNumber=p,i.isString=g,i.isSymbol=function(t){return"symbol"==typeof t},i.isUndefined=m,i.isRegExp=v,i.isObject=y,i.isDate=w,i.isError=b,i.isFunction=x,i.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},i.isBuffer=t("./support/isBuffer");var L=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];i.log=function(){console.log("%s - %s",k(),i.format.apply(i,arguments))},i.inherits=t("inherits"),i._extend=function(t,e){if(!e||!y(e))return t;for(var n=Object.keys(e),i=n.length;i--;)t[n[i]]=e[n[i]];return t}}).call(this,t("_process"),void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":206,_process:173,inherits:162}],208:[function(t,e,n){"use strict";(function(){n.stripBOM=function(t){return"\ufeff"===t[0]?t.substring(1):t}}).call(void 0)},{}],209:[function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}var r=i(t("babel-runtime/helpers/typeof")),o=i(t("babel-runtime/core-js/object/keys"));(function(){var e,i,a,s,l,u={}.hasOwnProperty;e=t("xmlbuilder"),i=t("./defaults").defaults,s=function(t){return"string"==typeof t&&(t.indexOf("&")>=0||t.indexOf(">")>=0||t.indexOf("<")>=0)},l=function(t){return"<![CDATA["+a(t)+"]]>"},a=function(t){return t.replace("]]>","]]]]><![CDATA[>")},n.Builder=function(){function t(t){var e,n,r;for(e in this.options={},n=i[.2])u.call(n,e)&&(r=n[e],this.options[e]=r);for(e in t)u.call(t,e)&&(r=t[e],this.options[e]=r)}return t.prototype.buildObject=function(t){var n,a,c,h,d;return n=this.options.attrkey,a=this.options.charkey,1===(0,o.default)(t).length&&this.options.rootName===i[.2].rootName?t=t[d=(0,o.default)(t)[0]]:d=this.options.rootName,c=function(t){return function(e,i){var o,h,d,f,p,g;if("object"!==(void 0===i?"undefined":(0,r.default)(i)))t.options.cdata&&s(i)?e.raw(l(i)):e.txt(i);else if(Array.isArray(i)){for(f in i)if(u.call(i,f))for(p in h=i[f])d=h[p],e=c(e.ele(p),d).up()}else for(p in i)if(u.call(i,p))if(h=i[p],p===n){if("object"===(void 0===h?"undefined":(0,r.default)(h)))for(o in h)g=h[o],e=e.att(o,g)}else if(p===a)e=t.options.cdata&&s(h)?e.raw(l(h)):e.txt(h);else if(Array.isArray(h))for(f in h)u.call(h,f)&&(e="string"==typeof(d=h[f])?t.options.cdata&&s(d)?e.ele(p).raw(l(d)).up():e.ele(p,d).up():c(e.ele(p),d).up());else"object"===(void 0===h?"undefined":(0,r.default)(h))?e=c(e.ele(p),h).up():"string"==typeof h&&t.options.cdata&&s(h)?e=e.ele(p).raw(l(h)).up():(null==h&&(h=""),e=e.ele(p,h.toString()).up());return e}}(this),h=e.create(d,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),c(h,t).end(this.options.renderOpts)},t}()}).call(void 0)},{"./defaults":210,"babel-runtime/core-js/object/keys":23,"babel-runtime/helpers/typeof":32,xmlbuilder:235}],210:[function(t,e,n){"use strict";(function(){n.defaults={.1:{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},.2:{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:"\n"},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(void 0)},{}],211:[function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}var r=i(t("babel-runtime/core-js/object/get-own-property-names")),o=i(t("babel-runtime/core-js/object/keys")),a=i(t("babel-runtime/helpers/typeof"));(function(){var e,i,s,l,u,c,h,d,f=function(t,e){return function(){return t.apply(e,arguments)}},p={}.hasOwnProperty;h=t("sax"),s=t("events"),e=t("./bom"),c=t("./processors"),d=t("timers").setImmediate,i=t("./defaults").defaults,l=function(t){return"object"===(void 0===t?"undefined":(0,a.default)(t))&&null!=t&&0===(0,o.default)(t).length},u=function(t,e,n){var i,r;for(i=0,r=t.length;i<r;i++)e=(0,t[i])(e,n);return e},n.Parser=function(t){function s(t){var e,r,o;if(this.parseString=f(this.parseString,this),this.reset=f(this.reset,this),this.assignOrPush=f(this.assignOrPush,this),this.processAsync=f(this.processAsync,this),!(this instanceof n.Parser))return new n.Parser(t);for(e in this.options={},r=i[.2])p.call(r,e)&&(o=r[e],this.options[e]=o);for(e in t)p.call(t,e)&&(o=t[e],this.options[e]=o);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(c.normalize)),this.reset()}return function(t,e){function n(){this.constructor=t}for(var i in e)p.call(e,i)&&(t[i]=e[i]);n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype}(s,t),s.prototype.processAsync=function(){var t,e;try{return this.remaining.length<=this.options.chunkSize?(t=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(t),this.saxParser.close()):(t=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(t),d(this.processAsync))}catch(t){if(e=t,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(e)}},s.prototype.assignOrPush=function(t,e,n){return e in t?(t[e]instanceof Array||(t[e]=[t[e]]),t[e].push(n)):this.options.explicitArray?t[e]=[n]:t[e]=n},s.prototype.reset=function(){var t,e,n,i;return this.removeAllListeners(),this.saxParser=h.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(t){return function(e){if(t.saxParser.resume(),!t.saxParser.errThrown)return t.saxParser.errThrown=!0,t.emit("error",e)}}(this),this.saxParser.onend=function(t){return function(){if(!t.saxParser.ended)return t.saxParser.ended=!0,t.emit("end",t.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,i=[],t=this.options.attrkey,e=this.options.charkey,this.saxParser.onopentag=function(n){return function(r){var o,a,s,l,c;if((s={})[e]="",!n.options.ignoreAttrs)for(o in c=r.attributes)p.call(c,o)&&(t in s||n.options.mergeAttrs||(s[t]={}),a=n.options.attrValueProcessors?u(n.options.attrValueProcessors,r.attributes[o],o):r.attributes[o],l=n.options.attrNameProcessors?u(n.options.attrNameProcessors,o):o,n.options.mergeAttrs?n.assignOrPush(s,l,a):s[t][l]=a);return s["#name"]=n.options.tagNameProcessors?u(n.options.tagNameProcessors,r.name):r.name,n.options.xmlns&&(s[n.options.xmlnskey]={uri:r.uri,local:r.local}),i.push(s)}}(this),this.saxParser.onclosetag=function(t){return function(){var n,s,c,h,d,f,g,m,v,y;if(f=i.pop(),d=f["#name"],t.options.explicitChildren&&t.options.preserveChildrenOrder||delete f["#name"],!0===f.cdata&&(n=f.cdata,delete f.cdata),v=i[i.length-1],f[e].match(/^\s*$/)&&!n?(s=f[e],delete f[e]):(t.options.trim&&(f[e]=f[e].trim()),t.options.normalize&&(f[e]=f[e].replace(/\s{2,}/g," ").trim()),f[e]=t.options.valueProcessors?u(t.options.valueProcessors,f[e],d):f[e],1===(0,o.default)(f).length&&e in f&&!t.EXPLICIT_CHARKEY&&(f=f[e])),l(f)&&(f=""!==t.options.emptyTag?t.options.emptyTag:s),null!=t.options.validator&&(y="/"+function(){var t,e,n;for(n=[],t=0,e=i.length;t<e;t++)h=i[t],n.push(h["#name"]);return n}().concat(d).join("/"),function(){var e;try{f=t.options.validator(y,v&&v[d],f)}catch(n){return e=n,t.emit("error",e)}}()),t.options.explicitChildren&&!t.options.mergeAttrs&&"object"===(void 0===f?"undefined":(0,a.default)(f)))if(t.options.preserveChildrenOrder){if(v){for(c in v[t.options.childkey]=v[t.options.childkey]||[],g={},f)p.call(f,c)&&(g[c]=f[c]);v[t.options.childkey].push(g),delete f["#name"],1===(0,o.default)(f).length&&e in f&&!t.EXPLICIT_CHARKEY&&(f=f[e])}}else h={},t.options.attrkey in f&&(h[t.options.attrkey]=f[t.options.attrkey],delete f[t.options.attrkey]),!t.options.charsAsChildren&&t.options.charkey in f&&(h[t.options.charkey]=f[t.options.charkey],delete f[t.options.charkey]),(0,r.default)(f).length>0&&(h[t.options.childkey]=f),f=h;return i.length>0?t.assignOrPush(v,d,f):(t.options.explicitRoot&&(m=f,(f={})[d]=m),t.resultObject=f,t.saxParser.ended=!0,t.emit("end",t.resultObject))}}(this),n=function(t){return function(n){var r,o;if(o=i[i.length-1])return o[e]+=n,t.options.explicitChildren&&t.options.preserveChildrenOrder&&t.options.charsAsChildren&&(t.options.includeWhiteChars||""!==n.replace(/\\n/g,"").trim())&&(o[t.options.childkey]=o[t.options.childkey]||[],(r={"#name":"__text__"})[e]=n,t.options.normalize&&(r[e]=r[e].replace(/\s{2,}/g," ").trim()),o[t.options.childkey].push(r)),o}}(this),this.saxParser.ontext=n,this.saxParser.oncdata=function(t){var e;if(e=n(t))return e.cdata=!0}},s.prototype.parseString=function(t,n){var i;null!=n&&"function"==typeof n&&(this.on("end",(function(t){return this.reset(),n(null,t)})),this.on("error",(function(t){return this.reset(),n(t)})));try{return""===(t=t.toString()).trim()?(this.emit("end",null),!0):(t=e.stripBOM(t),this.options.async?(this.remaining=t,d(this.processAsync),this.saxParser):this.saxParser.write(t).close())}catch(t){if(i=t,!this.saxParser.errThrown&&!this.saxParser.ended)return this.emit("error",i),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw i}},s}(s.EventEmitter),n.parseString=function(t,e,i){var r,o;return null!=i?("function"==typeof i&&(r=i),"object"===(void 0===e?"undefined":(0,a.default)(e))&&(o=e)):("function"==typeof e&&(r=e),o={}),new n.Parser(o).parseString(t,r)}}).call(void 0)},{"./bom":208,"./defaults":210,"./processors":212,"babel-runtime/core-js/object/get-own-property-names":21,"babel-runtime/core-js/object/keys":23,"babel-runtime/helpers/typeof":32,events:158,sax:194,timers:201}],212:[function(t,e,n){"use strict";(function(){var t;t=new RegExp(/(?!xmlns)^.*:/),n.normalize=function(t){return t.toLowerCase()},n.firstCharLowerCase=function(t){return t.charAt(0).toLowerCase()+t.slice(1)},n.stripPrefix=function(e){return e.replace(t,"")},n.parseNumbers=function(t){return isNaN(t)||(t=t%1==0?parseInt(t,10):parseFloat(t)),t},n.parseBooleans=function(t){return/^(?:true|false)$/i.test(t)&&(t="true"===t.toLowerCase()),t}}).call(void 0)},{}],213:[function(t,e,n){"use strict";(function(){var e,i,r,o,a={}.hasOwnProperty;i=t("./defaults"),e=t("./builder"),r=t("./parser"),o=t("./processors"),n.defaults=i.defaults,n.processors=o,n.ValidationError=function(t){function e(t){this.message=t}return function(t,e){function n(){this.constructor=t}for(var i in e)a.call(e,i)&&(t[i]=e[i]);n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype}(e,Error),e}(),n.Builder=e.Builder,n.Parser=r.Parser,n.parseString=r.parseString}).call(void 0)},{"./builder":209,"./defaults":210,"./parser":211,"./processors":212}],214:[function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}var r=i(t("babel-runtime/core-js/object/get-prototype-of")),o=i(t("babel-runtime/helpers/typeof")),a=i(t("babel-runtime/core-js/object/assign"));(function(){var t,n,i,s,l,u,c=[].slice,h={}.hasOwnProperty;t=function(){var t,e,n,i,r,o;if(o=arguments[0],r=2<=arguments.length?c.call(arguments,1):[],s(a.default))a.default.apply(null,arguments);else for(t=0,n=r.length;t<n;t++)if(null!=(i=r[t]))for(e in i)h.call(i,e)&&(o[e]=i[e]);return o},s=function(t){return!!t&&"[object Function]"===Object.prototype.toString.call(t)},l=function(t){var e;return!!t&&("function"===(e=void 0===t?"undefined":(0,o.default)(t))||"object"===e)},n=function(t){return s(Array.isArray)?Array.isArray(t):"[object Array]"===Object.prototype.toString.call(t)},i=function(t){var e;if(n(t))return!t.length;for(e in t)if(h.call(t,e))return!1;return!0},u=function(t){var e,n;return l(t)&&(n=(0,r.default)(t))&&(e=n.constructor)&&"function"==typeof e&&e instanceof e&&Function.prototype.toString.call(e)===Function.prototype.toString.call(Object)},e.exports.assign=t,e.exports.isFunction=s,e.exports.isObject=l,e.exports.isArray=n,e.exports.isEmpty=i,e.exports.isPlainObject=u}).call(void 0)},{"babel-runtime/core-js/object/assign":18,"babel-runtime/core-js/object/get-prototype-of":22,"babel-runtime/helpers/typeof":32}],215:[function(t,e,n){"use strict";var i=function(t){return t&&t.__esModule?t:{default:t}}(t("babel-runtime/core-js/object/create"));(function(){e.exports=function(){function t(t,e,n){if(this.options=t.options,this.stringify=t.stringify,null==e)throw new Error("Missing attribute name of element "+t.name);if(null==n)throw new Error("Missing attribute value for attribute "+e+" of element "+t.name);this.name=this.stringify.attName(e),this.value=this.stringify.attValue(n)}return t.prototype.clone=function(){return(0,i.default)(this)},t.prototype.toString=function(t){return this.options.writer.set(t).attribute(this)},t}()}).call(void 0)},{"babel-runtime/core-js/object/create":19}],216:[function(t,e,n){"use strict";var i=function(t){return t&&t.__esModule?t:{default:t}}(t("babel-runtime/core-js/object/create"));(function(){var n,r={}.hasOwnProperty;n=t("./XMLNode"),e.exports=function(t){function e(t,n){if(e.__super__.constructor.call(this,t),null==n)throw new Error("Missing CDATA text");this.text=this.stringify.cdata(n)}return function(t,e){function n(){this.constructor=t}for(var i in e)r.call(e,i)&&(t[i]=e[i]);n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype}(e,t),e.prototype.clone=function(){return(0,i.default)(this)},e.prototype.toString=function(t){return this.options.writer.set(t).cdata(this)},e}(n)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],217:[function(t,e,n){"use strict";var i=function(t){return t&&t.__esModule?t:{default:t}}(t("babel-runtime/core-js/object/create"));(function(){var n,r={}.hasOwnProperty;n=t("./XMLNode"),e.exports=function(t){function e(t,n){if(e.__super__.constructor.call(this,t),null==n)throw new Error("Missing comment text");this.text=this.stringify.comment(n)}return function(t,e){function n(){this.constructor=t}for(var i in e)r.call(e,i)&&(t[i]=e[i]);n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype}(e,t),e.prototype.clone=function(){return(0,i.default)(this)},e.prototype.toString=function(t){return this.options.writer.set(t).comment(this)},e}(n)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],218:[function(t,e,n){"use strict";(function(){var n,i={}.hasOwnProperty;n=t("./XMLNode"),e.exports=function(t){function e(t,n,i,r,o,a){if(e.__super__.constructor.call(this,t),null==n)throw new Error("Missing DTD element name");if(null==i)throw new Error("Missing DTD attribute name");if(!r)throw new Error("Missing DTD attribute type");if(!o)throw new Error("Missing DTD attribute default");if(0!==o.indexOf("#")&&(o="#"+o),!o.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT");if(a&&!o.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT");this.elementName=this.stringify.eleName(n),this.attributeName=this.stringify.attName(i),this.attributeType=this.stringify.dtdAttType(r),this.defaultValue=this.stringify.dtdAttDefault(a),this.defaultValueType=o}return function(t,e){function n(){this.constructor=t}for(var r in e)i.call(e,r)&&(t[r]=e[r]);n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype}(e,t),e.prototype.toString=function(t){return this.options.writer.set(t).dtdAttList(this)},e}(n)}).call(void 0)},{"./XMLNode":227}],219:[function(t,e,n){"use strict";(function(){var n,i={}.hasOwnProperty;n=t("./XMLNode"),e.exports=function(t){function e(t,n,i){if(e.__super__.constructor.call(this,t),null==n)throw new Error("Missing DTD element name");i||(i="(#PCDATA)"),Array.isArray(i)&&(i="("+i.join(",")+")"),this.name=this.stringify.eleName(n),this.value=this.stringify.dtdElementValue(i)}return function(t,e){function n(){this.constructor=t}for(var r in e)i.call(e,r)&&(t[r]=e[r]);n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype}(e,t),e.prototype.toString=function(t){return this.options.writer.set(t).dtdElement(this)},e}(n)}).call(void 0)},{"./XMLNode":227}],220:[function(t,e,n){"use strict";(function(){var n,i,r={}.hasOwnProperty;i=t("./Utility").isObject,n=t("./XMLNode"),e.exports=function(t){function e(t,n,r,o){if(e.__super__.constructor.call(this,t),null==r)throw new Error("Missing entity name");if(null==o)throw new Error("Missing entity value");if(this.pe=!!n,this.name=this.stringify.eleName(r),i(o)){if(!o.pubID&&!o.sysID)throw new Error("Public and/or system identifiers are required for an external entity");if(o.pubID&&!o.sysID)throw new Error("System identifier is required for a public external entity");if(null!=o.pubID&&(this.pubID=this.stringify.dtdPubID(o.pubID)),null!=o.sysID&&(this.sysID=this.stringify.dtdSysID(o.sysID)),null!=o.nData&&(this.nData=this.stringify.dtdNData(o.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity")}else this.value=this.stringify.dtdEntityValue(o)}return function(t,e){function n(){this.constructor=t}for(var i in e)r.call(e,i)&&(t[i]=e[i]);n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype}(e,t),e.prototype.toString=function(t){return this.options.writer.set(t).dtdEntity(this)},e}(n)}).call(void 0)},{"./Utility":214,"./XMLNode":227}],221:[function(t,e,n){"use strict";(function(){var n,i={}.hasOwnProperty;n=t("./XMLNode"),e.exports=function(t){function e(t,n,i){if(e.__super__.constructor.call(this,t),null==n)throw new Error("Missing notation name");if(!i.pubID&&!i.sysID)throw new Error("Public or system identifiers are required for an external entity");this.name=this.stringify.eleName(n),null!=i.pubID&&(this.pubID=this.stringify.dtdPubID(i.pubID)),null!=i.sysID&&(this.sysID=this.stringify.dtdSysID(i.sysID))}return function(t,e){function n(){this.constructor=t}for(var r in e)i.call(e,r)&&(t[r]=e[r]);n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype}(e,t),e.prototype.toString=function(t){return this.options.writer.set(t).dtdNotation(this)},e}(n)}).call(void 0)},{"./XMLNode":227}],222:[function(t,e,n){"use strict";(function(){var n,i,r={}.hasOwnProperty;i=t("./Utility").isObject,n=t("./XMLNode"),e.exports=function(t){function e(t,n,r,o){var a;e.__super__.constructor.call(this,t),i(n)&&(n=(a=n).version,r=a.encoding,o=a.standalone),n||(n="1.0"),this.version=this.stringify.xmlVersion(n),null!=r&&(this.encoding=this.stringify.xmlEncoding(r)),null!=o&&(this.standalone=this.stringify.xmlStandalone(o))}return function(t,e){function n(){this.constructor=t}for(var i in e)r.call(e,i)&&(t[i]=e[i]);n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype}(e,t),e.prototype.toString=function(t){return this.options.writer.set(t).declaration(this)},e}(n)}).call(void 0)},{"./Utility":214,"./XMLNode":227}],223:[function(t,e,n){"use strict";(function(){var n,i,r,o,a,s,l={}.hasOwnProperty;s=t("./Utility").isObject,a=t("./XMLNode"),n=t("./XMLDTDAttList"),r=t("./XMLDTDEntity"),i=t("./XMLDTDElement"),o=t("./XMLDTDNotation"),e.exports=function(t){function e(t,n,i){var r,o;e.__super__.constructor.call(this,t),this.documentObject=t,s(n)&&(n=(r=n).pubID,i=r.sysID),null==i&&(i=(o=[n,i])[0],n=o[1]),null!=n&&(this.pubID=this.stringify.dtdPubID(n)),null!=i&&(this.sysID=this.stringify.dtdSysID(i))}return function(t,e){function n(){this.constructor=t}for(var i in e)l.call(e,i)&&(t[i]=e[i]);n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype}(e,t),e.prototype.element=function(t,e){var n;return n=new i(this,t,e),this.children.push(n),this},e.prototype.attList=function(t,e,i,r,o){var a;return a=new n(this,t,e,i,r,o),this.children.push(a),this},e.prototype.entity=function(t,e){var n;return n=new r(this,!1,t,e),this.children.push(n),this},e.prototype.pEntity=function(t,e){var n;return n=new r(this,!0,t,e),this.children.push(n),this},e.prototype.notation=function(t,e){var n;return n=new o(this,t,e),this.children.push(n),this},e.prototype.toString=function(t){return this.options.writer.set(t).docType(this)},e.prototype.ele=function(t,e){return this.element(t,e)},e.prototype.att=function(t,e,n,i,r){return this.attList(t,e,n,i,r)},e.prototype.ent=function(t,e){return this.entity(t,e)},e.prototype.pent=function(t,e){return this.pEntity(t,e)},e.prototype.not=function(t,e){return this.notation(t,e)},e.prototype.up=function(){return this.root()||this.documentObject},e}(a)}).call(void 0)},{"./Utility":214,"./XMLDTDAttList":218,"./XMLDTDElement":219,"./XMLDTDEntity":220,"./XMLDTDNotation":221,"./XMLNode":227}],224:[function(t,e,n){"use strict";(function(){var n,i,r,o,a={}.hasOwnProperty;o=t("./Utility").isPlainObject,n=t("./XMLNode"),r=t("./XMLStringifier"),i=t("./XMLStringWriter"),e.exports=function(t){function e(t){e.__super__.constructor.call(this,null),t||(t={}),t.writer||(t.writer=new i),this.options=t,this.stringify=new r(t),this.isDocument=!0}return function(t,e){function n(){this.constructor=t}for(var i in e)a.call(e,i)&&(t[i]=e[i]);n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype}(e,t),e.prototype.end=function(t){var e;return t?o(t)&&(e=t,t=this.options.writer.set(e)):t=this.options.writer,t.document(this)},e.prototype.toString=function(t){return this.options.writer.set(t).document(this)},e}(n)}).call(void 0)},{"./Utility":214,"./XMLNode":227,"./XMLStringWriter":231,"./XMLStringifier":232}],225:[function(t,e,n){"use strict";(function(){var n,i,r,o,a,s,l,u,c,h,d,f,p,g,m,v,y,w,b,x={}.hasOwnProperty;b=t("./Utility"),y=b.isObject,v=b.isFunction,w=b.isPlainObject,h=t("./XMLElement"),i=t("./XMLCData"),r=t("./XMLComment"),f=t("./XMLRaw"),m=t("./XMLText"),d=t("./XMLProcessingInstruction"),u=t("./XMLDeclaration"),c=t("./XMLDocType"),o=t("./XMLDTDAttList"),s=t("./XMLDTDEntity"),a=t("./XMLDTDElement"),l=t("./XMLDTDNotation"),n=t("./XMLAttribute"),g=t("./XMLStringifier"),p=t("./XMLStringWriter"),e.exports=function(){function t(t,e,n){var i;t||(t={}),t.writer?w(t.writer)&&(i=t.writer,t.writer=new p(i)):t.writer=new p(t),this.options=t,this.writer=t.writer,this.stringify=new g(t),this.onDataCallback=e||function(){},this.onEndCallback=n||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return t.prototype.node=function(t,e,n){var i;if(null==t)throw new Error("Missing node name");if(this.root&&-1===this.currentLevel)throw new Error("Document can only have one root node");return this.openCurrent(),t=t.valueOf(),null==e&&(e={}),e=e.valueOf(),y(e)||(n=(i=[e,n])[0],e=i[1]),this.currentNode=new h(this,t,e),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,null!=n&&this.text(n),this},t.prototype.element=function(t,e,n){return this.currentNode&&this.currentNode instanceof c?this.dtdElement.apply(this,arguments):this.node(t,e,n)},t.prototype.attribute=function(t,e){var i,r;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode");if(null!=t&&(t=t.valueOf()),y(t))for(i in t)x.call(t,i)&&(r=t[i],this.attribute(i,r));else v(e)&&(e=e.apply()),this.options.skipNullAttributes&&null==e||(this.currentNode.attributes[t]=new n(this,t,e));return this},t.prototype.text=function(t){var e;return this.openCurrent(),e=new m(this,t),this.onData(this.writer.text(e,this.currentLevel+1)),this},t.prototype.cdata=function(t){var e;return this.openCurrent(),e=new i(this,t),this.onData(this.writer.cdata(e,this.currentLevel+1)),this},t.prototype.comment=function(t){var e;return this.openCurrent(),e=new r(this,t),this.onData(this.writer.comment(e,this.currentLevel+1)),this},t.prototype.raw=function(t){var e;return this.openCurrent(),e=new f(this,t),this.onData(this.writer.raw(e,this.currentLevel+1)),this},t.prototype.instruction=function(t,e){var n,i,r,o,a;if(this.openCurrent(),null!=t&&(t=t.valueOf()),null!=e&&(e=e.valueOf()),Array.isArray(t))for(n=0,o=t.length;n<o;n++)i=t[n],this.instruction(i);else if(y(t))for(i in t)x.call(t,i)&&(r=t[i],this.instruction(i,r));else v(e)&&(e=e.apply()),a=new d(this,t,e),this.onData(this.writer.processingInstruction(a,this.currentLevel+1));return this},t.prototype.declaration=function(t,e,n){var i;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node");return i=new u(this,t,e,n),this.onData(this.writer.declaration(i,this.currentLevel+1)),this},t.prototype.doctype=function(t,e,n){if(this.openCurrent(),null==t)throw new Error("Missing root node name");if(this.root)throw new Error("dtd() must come before the root node");return this.currentNode=new c(this,e,n),this.currentNode.rootNodeName=t,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},t.prototype.dtdElement=function(t,e){var n;return this.openCurrent(),n=new a(this,t,e),this.onData(this.writer.dtdElement(n,this.currentLevel+1)),this},t.prototype.attList=function(t,e,n,i,r){var a;return this.openCurrent(),a=new o(this,t,e,n,i,r),this.onData(this.writer.dtdAttList(a,this.currentLevel+1)),this},t.prototype.entity=function(t,e){var n;return this.openCurrent(),n=new s(this,!1,t,e),this.onData(this.writer.dtdEntity(n,this.currentLevel+1)),this},t.prototype.pEntity=function(t,e){var n;return this.openCurrent(),n=new s(this,!0,t,e),this.onData(this.writer.dtdEntity(n,this.currentLevel+1)),this},t.prototype.notation=function(t,e){var n;return this.openCurrent(),n=new l(this,t,e),this.onData(this.writer.dtdNotation(n,this.currentLevel+1)),this},t.prototype.up=function(){if(this.currentLevel<0)throw new Error("The document node has no parent");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},t.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},t.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},t.prototype.openNode=function(t){if(!t.isOpen)return!this.root&&0===this.currentLevel&&t instanceof h&&(this.root=t),this.onData(this.writer.openNode(t,this.currentLevel)),t.isOpen=!0},t.prototype.closeNode=function(t){if(!t.isClosed)return this.onData(this.writer.closeNode(t,this.currentLevel)),t.isClosed=!0},t.prototype.onData=function(t){return this.documentStarted=!0,this.onDataCallback(t)},t.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},t.prototype.ele=function(){return this.element.apply(this,arguments)},t.prototype.nod=function(t,e,n){return this.node(t,e,n)},t.prototype.txt=function(t){return this.text(t)},t.prototype.dat=function(t){return this.cdata(t)},t.prototype.com=function(t){return this.comment(t)},t.prototype.ins=function(t,e){return this.instruction(t,e)},t.prototype.dec=function(t,e,n){return this.declaration(t,e,n)},t.prototype.dtd=function(t,e,n){return this.doctype(t,e,n)},t.prototype.e=function(t,e,n){return this.element(t,e,n)},t.prototype.n=function(t,e,n){return this.node(t,e,n)},t.prototype.t=function(t){return this.text(t)},t.prototype.d=function(t){return this.cdata(t)},t.prototype.c=function(t){return this.comment(t)},t.prototype.r=function(t){return this.raw(t)},t.prototype.i=function(t,e){return this.instruction(t,e)},t.prototype.att=function(){return this.currentNode&&this.currentNode instanceof c?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},t.prototype.a=function(){return this.currentNode&&this.currentNode instanceof c?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},t.prototype.ent=function(t,e){return this.entity(t,e)},t.prototype.pent=function(t,e){return this.pEntity(t,e)},t.prototype.not=function(t,e){return this.notation(t,e)},t}()}).call(void 0)},{"./Utility":214,"./XMLAttribute":215,"./XMLCData":216,"./XMLComment":217,"./XMLDTDAttList":218,"./XMLDTDElement":219,"./XMLDTDEntity":220,"./XMLDTDNotation":221,"./XMLDeclaration":222,"./XMLDocType":223,"./XMLElement":226,"./XMLProcessingInstruction":228,"./XMLRaw":229,"./XMLStringWriter":231,"./XMLStringifier":232,"./XMLText":233}],226:[function(t,e,n){"use strict";var i=function(t){return t&&t.__esModule?t:{default:t}}(t("babel-runtime/core-js/object/create"));(function(){var n,r,o,a,s,l={}.hasOwnProperty;s=t("./Utility"),a=s.isObject,o=s.isFunction,r=t("./XMLNode"),n=t("./XMLAttribute"),e.exports=function(t){function e(t,n,i){if(e.__super__.constructor.call(this,t),null==n)throw new Error("Missing element name");this.name=this.stringify.eleName(n),this.attributes={},null!=i&&this.attribute(i),t.isDocument&&(this.isRoot=!0,this.documentObject=t,t.rootObject=this)}return function(t,e){function n(){this.constructor=t}for(var i in e)l.call(e,i)&&(t[i]=e[i]);n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype}(e,t),e.prototype.clone=function(){var t,e,n,r;for(e in(n=(0,i.default)(this)).isRoot&&(n.documentObject=null),n.attributes={},r=this.attributes)l.call(r,e)&&(t=r[e],n.attributes[e]=t.clone());return n.children=[],this.children.forEach((function(t){var e;return(e=t.clone()).parent=n,n.children.push(e)})),n},e.prototype.attribute=function(t,e){var i,r;if(null!=t&&(t=t.valueOf()),a(t))for(i in t)l.call(t,i)&&(r=t[i],this.attribute(i,r));else o(e)&&(e=e.apply()),this.options.skipNullAttributes&&null==e||(this.attributes[t]=new n(this,t,e));return this},e.prototype.removeAttribute=function(t){var e,n,i;if(null==t)throw new Error("Missing attribute name");if(t=t.valueOf(),Array.isArray(t))for(n=0,i=t.length;n<i;n++)e=t[n],delete this.attributes[e];else delete this.attributes[t];return this},e.prototype.toString=function(t){return this.options.writer.set(t).element(this)},e.prototype.att=function(t,e){return this.attribute(t,e)},e.prototype.a=function(t,e){return this.attribute(t,e)},e}(r)}).call(void 0)},{"./Utility":214,"./XMLAttribute":215,"./XMLNode":227,"babel-runtime/core-js/object/create":19}],227:[function(t,e,n){"use strict";(function(){var n,i,r,o,a,s,l,u,c,h,d,f,p={}.hasOwnProperty;f=t("./Utility"),d=f.isObject,h=f.isFunction,c=f.isEmpty,a=null,n=null,i=null,r=null,o=null,l=null,u=null,s=null,e.exports=function(){function e(e){this.parent=e,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.children=[],a||(a=t("./XMLElement"),n=t("./XMLCData"),i=t("./XMLComment"),r=t("./XMLDeclaration"),o=t("./XMLDocType"),l=t("./XMLRaw"),u=t("./XMLText"),s=t("./XMLProcessingInstruction"))}return e.prototype.element=function(t,e,n){var i,r,o,a,s,l,u,f,g,m;if(l=null,null==e&&(e={}),e=e.valueOf(),d(e)||(n=(g=[e,n])[0],e=g[1]),null!=t&&(t=t.valueOf()),Array.isArray(t))for(o=0,u=t.length;o<u;o++)r=t[o],l=this.element(r);else if(h(t))l=this.element(t.apply());else if(d(t)){for(s in t)if(p.call(t,s))if(m=t[s],h(m)&&(m=m.apply()),d(m)&&c(m)&&(m=null),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&0===s.indexOf(this.stringify.convertAttKey))l=this.attribute(s.substr(this.stringify.convertAttKey.length),m);else if(!this.options.separateArrayItems&&Array.isArray(m))for(a=0,f=m.length;a<f;a++)r=m[a],(i={})[s]=r,l=this.element(i);else d(m)?(l=this.element(s)).element(m):l=this.element(s,m)}else l=!this.options.ignoreDecorators&&this.stringify.convertTextKey&&0===t.indexOf(this.stringify.convertTextKey)?this.text(n):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&0===t.indexOf(this.stringify.convertCDataKey)?this.cdata(n):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&0===t.indexOf(this.stringify.convertCommentKey)?this.comment(n):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&0===t.indexOf(this.stringify.convertRawKey)?this.raw(n):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&0===t.indexOf(this.stringify.convertPIKey)?this.instruction(t.substr(this.stringify.convertPIKey.length),n):this.node(t,e,n);if(null==l)throw new Error("Could not create any elements with: "+t);return l},e.prototype.insertBefore=function(t,e,n){var i,r,o;if(this.isRoot)throw new Error("Cannot insert elements at root level");return r=this.parent.children.indexOf(this),o=this.parent.children.splice(r),i=this.parent.element(t,e,n),Array.prototype.push.apply(this.parent.children,o),i},e.prototype.insertAfter=function(t,e,n){var i,r,o;if(this.isRoot)throw new Error("Cannot insert elements at root level");return r=this.parent.children.indexOf(this),o=this.parent.children.splice(r+1),i=this.parent.element(t,e,n),Array.prototype.push.apply(this.parent.children,o),i},e.prototype.remove=function(){var t;if(this.isRoot)throw new Error("Cannot remove the root element");return t=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[t,t-t+1].concat([])),this.parent},e.prototype.node=function(t,e,n){var i,r;return null!=t&&(t=t.valueOf()),e||(e={}),e=e.valueOf(),d(e)||(n=(r=[e,n])[0],e=r[1]),i=new a(this,t,e),null!=n&&i.text(n),this.children.push(i),i},e.prototype.text=function(t){var e;return e=new u(this,t),this.children.push(e),this},e.prototype.cdata=function(t){var e;return e=new n(this,t),this.children.push(e),this},e.prototype.comment=function(t){var e;return e=new i(this,t),this.children.push(e),this},e.prototype.commentBefore=function(t){var e,n;return e=this.parent.children.indexOf(this),n=this.parent.children.splice(e),this.parent.comment(t),Array.prototype.push.apply(this.parent.children,n),this},e.prototype.commentAfter=function(t){var e,n;return e=this.parent.children.indexOf(this),n=this.parent.children.splice(e+1),this.parent.comment(t),Array.prototype.push.apply(this.parent.children,n),this},e.prototype.raw=function(t){var e;return e=new l(this,t),this.children.push(e),this},e.prototype.instruction=function(t,e){var n,i,r,o,a;if(null!=t&&(t=t.valueOf()),null!=e&&(e=e.valueOf()),Array.isArray(t))for(o=0,a=t.length;o<a;o++)n=t[o],this.instruction(n);else if(d(t))for(n in t)p.call(t,n)&&(i=t[n],this.instruction(n,i));else h(e)&&(e=e.apply()),r=new s(this,t,e),this.children.push(r);return this},e.prototype.instructionBefore=function(t,e){var n,i;return n=this.parent.children.indexOf(this),i=this.parent.children.splice(n),this.parent.instruction(t,e),Array.prototype.push.apply(this.parent.children,i),this},e.prototype.instructionAfter=function(t,e){var n,i;return n=this.parent.children.indexOf(this),i=this.parent.children.splice(n+1),this.parent.instruction(t,e),Array.prototype.push.apply(this.parent.children,i),this},e.prototype.declaration=function(t,e,n){var i,o;return i=this.document(),o=new r(i,t,e,n),i.children[0]instanceof r?i.children[0]=o:i.children.unshift(o),i.root()||i},e.prototype.doctype=function(t,e){var n,i,r,a,s,l,u,c,h;for(n=this.document(),i=new o(n,t,e),r=a=0,l=(c=n.children).length;a<l;r=++a)if(c[r]instanceof o)return n.children[r]=i,i;for(r=s=0,u=(h=n.children).length;s<u;r=++s)if(h[r].isRoot)return n.children.splice(r,0,i),i;return n.children.push(i),i},e.prototype.up=function(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},e.prototype.root=function(){var t;for(t=this;t;){if(t.isDocument)return t.rootObject;if(t.isRoot)return t;t=t.parent}},e.prototype.document=function(){var t;for(t=this;t;){if(t.isDocument)return t;t=t.parent}},e.prototype.end=function(t){return this.document().end(t)},e.prototype.prev=function(){var t;if((t=this.parent.children.indexOf(this))<1)throw new Error("Already at the first node");return this.parent.children[t-1]},e.prototype.next=function(){var t;if(-1===(t=this.parent.children.indexOf(this))||t===this.parent.children.length-1)throw new Error("Already at the last node");return this.parent.children[t+1]},e.prototype.importDocument=function(t){var e;return(e=t.root().clone()).parent=this,e.isRoot=!1,this.children.push(e),this},e.prototype.ele=function(t,e,n){return this.element(t,e,n)},e.prototype.nod=function(t,e,n){return this.node(t,e,n)},e.prototype.txt=function(t){return this.text(t)},e.prototype.dat=function(t){return this.cdata(t)},e.prototype.com=function(t){return this.comment(t)},e.prototype.ins=function(t,e){return this.instruction(t,e)},e.prototype.doc=function(){return this.document()},e.prototype.dec=function(t,e,n){return this.declaration(t,e,n)},e.prototype.dtd=function(t,e){return this.doctype(t,e)},e.prototype.e=function(t,e,n){return this.element(t,e,n)},e.prototype.n=function(t,e,n){return this.node(t,e,n)},e.prototype.t=function(t){return this.text(t)},e.prototype.d=function(t){return this.cdata(t)},e.prototype.c=function(t){return this.comment(t)},e.prototype.r=function(t){return this.raw(t)},e.prototype.i=function(t,e){return this.instruction(t,e)},e.prototype.u=function(){return this.up()},e.prototype.importXMLBuilder=function(t){return this.importDocument(t)},e}()}).call(void 0)},{"./Utility":214,"./XMLCData":216,"./XMLComment":217,"./XMLDeclaration":222,"./XMLDocType":223,"./XMLElement":226,"./XMLProcessingInstruction":228,"./XMLRaw":229,"./XMLText":233}],228:[function(t,e,n){"use strict";var i=function(t){return t&&t.__esModule?t:{default:t}}(t("babel-runtime/core-js/object/create"));(function(){var n,r={}.hasOwnProperty;n=t("./XMLNode"),e.exports=function(t){function e(t,n,i){if(e.__super__.constructor.call(this,t),null==n)throw new Error("Missing instruction target");this.target=this.stringify.insTarget(n),i&&(this.value=this.stringify.insValue(i))}return function(t,e){function n(){this.constructor=t}for(var i in e)r.call(e,i)&&(t[i]=e[i]);n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype}(e,t),e.prototype.clone=function(){return(0,i.default)(this)},e.prototype.toString=function(t){return this.options.writer.set(t).processingInstruction(this)},e}(n)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],229:[function(t,e,n){"use strict";var i=function(t){return t&&t.__esModule?t:{default:t}}(t("babel-runtime/core-js/object/create"));(function(){var n,r={}.hasOwnProperty;n=t("./XMLNode"),e.exports=function(t){function e(t,n){if(e.__super__.constructor.call(this,t),null==n)throw new Error("Missing raw text");this.value=this.stringify.raw(n)}return function(t,e){function n(){this.constructor=t}for(var i in e)r.call(e,i)&&(t[i]=e[i]);n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype}(e,t),e.prototype.clone=function(){return(0,i.default)(this)},e.prototype.toString=function(t){return this.options.writer.set(t).raw(this)},e}(n)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],230:[function(t,e,n){"use strict";(function(){var n,i,r,o,a,s,l,u,c,h,d,f,p,g={}.hasOwnProperty;l=t("./XMLDeclaration"),u=t("./XMLDocType"),n=t("./XMLCData"),i=t("./XMLComment"),c=t("./XMLElement"),d=t("./XMLRaw"),f=t("./XMLText"),h=t("./XMLProcessingInstruction"),r=t("./XMLDTDAttList"),o=t("./XMLDTDElement"),a=t("./XMLDTDEntity"),s=t("./XMLDTDNotation"),p=t("./XMLWriterBase"),e.exports=function(t){function e(t,n){e.__super__.constructor.call(this,n),this.stream=t}return function(t,e){function n(){this.constructor=t}for(var i in e)g.call(e,i)&&(t[i]=e[i]);n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype}(e,t),e.prototype.document=function(t){var e,n,r,o,a,s,c,d;for(n=0,o=(s=t.children).length;n<o;n++)(e=s[n]).isLastRootNode=!1;for(t.children[t.children.length-1].isLastRootNode=!0,d=[],r=0,a=(c=t.children).length;r<a;r++)switch(e=c[r],!1){case!(e instanceof l):d.push(this.declaration(e));break;case!(e instanceof u):d.push(this.docType(e));break;case!(e instanceof i):d.push(this.comment(e));break;case!(e instanceof h):d.push(this.processingInstruction(e));break;default:d.push(this.element(e))}return d},e.prototype.attribute=function(t){return this.stream.write(" "+t.name+'="'+t.value+'"')},e.prototype.cdata=function(t,e){return this.stream.write(this.space(e)+"<![CDATA["+t.text+"]]>"+this.endline(t))},e.prototype.comment=function(t,e){return this.stream.write(this.space(e)+"\x3c!-- "+t.text+" --\x3e"+this.endline(t))},e.prototype.declaration=function(t,e){return this.stream.write(this.space(e)),this.stream.write('<?xml version="'+t.version+'"'),null!=t.encoding&&this.stream.write(' encoding="'+t.encoding+'"'),null!=t.standalone&&this.stream.write(' standalone="'+t.standalone+'"'),this.stream.write(this.spacebeforeslash+"?>"),this.stream.write(this.endline(t))},e.prototype.docType=function(t,e){var l,u,c,d;if(e||(e=0),this.stream.write(this.space(e)),this.stream.write("<!DOCTYPE "+t.root().name),t.pubID&&t.sysID?this.stream.write(' PUBLIC "'+t.pubID+'" "'+t.sysID+'"'):t.sysID&&this.stream.write(' SYSTEM "'+t.sysID+'"'),t.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(t)),u=0,c=(d=t.children).length;u<c;u++)switch(l=d[u],!1){case!(l instanceof r):this.dtdAttList(l,e+1);break;case!(l instanceof o):this.dtdElement(l,e+1);break;case!(l instanceof a):this.dtdEntity(l,e+1);break;case!(l instanceof s):this.dtdNotation(l,e+1);break;case!(l instanceof n):this.cdata(l,e+1);break;case!(l instanceof i):this.comment(l,e+1);break;case!(l instanceof h):this.processingInstruction(l,e+1);break;default:throw new Error("Unknown DTD node type: "+l.constructor.name)}this.stream.write("]")}return this.stream.write(this.spacebeforeslash+">"),this.stream.write(this.endline(t))},e.prototype.element=function(t,e){var r,o,a,s,l,u,p,m;for(l in e||(e=0),m=this.space(e),this.stream.write(m+"<"+t.name),u=t.attributes)g.call(u,l)&&(r=u[l],this.attribute(r));if(0===t.children.length||t.children.every((function(t){return""===t.value})))this.allowEmpty?this.stream.write("></"+t.name+">"):this.stream.write(this.spacebeforeslash+"/>");else if(this.pretty&&1===t.children.length&&null!=t.children[0].value)this.stream.write(">"),this.stream.write(t.children[0].value),this.stream.write("</"+t.name+">");else{for(this.stream.write(">"+this.newline),a=0,s=(p=t.children).length;a<s;a++)switch(o=p[a],!1){case!(o instanceof n):this.cdata(o,e+1);break;case!(o instanceof i):this.comment(o,e+1);break;case!(o instanceof c):this.element(o,e+1);break;case!(o instanceof d):this.raw(o,e+1);break;case!(o instanceof f):this.text(o,e+1);break;case!(o instanceof h):this.processingInstruction(o,e+1);break;default:throw new Error("Unknown XML node type: "+o.constructor.name)}this.stream.write(m+"</"+t.name+">")}return this.stream.write(this.endline(t))},e.prototype.processingInstruction=function(t,e){return this.stream.write(this.space(e)+"<?"+t.target),t.value&&this.stream.write(" "+t.value),this.stream.write(this.spacebeforeslash+"?>"+this.endline(t))},e.prototype.raw=function(t,e){return this.stream.write(this.space(e)+t.value+this.endline(t))},e.prototype.text=function(t,e){return this.stream.write(this.space(e)+t.value+this.endline(t))},e.prototype.dtdAttList=function(t,e){return this.stream.write(this.space(e)+"<!ATTLIST "+t.elementName+" "+t.attributeName+" "+t.attributeType),"#DEFAULT"!==t.defaultValueType&&this.stream.write(" "+t.defaultValueType),t.defaultValue&&this.stream.write(' "'+t.defaultValue+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(t))},e.prototype.dtdElement=function(t,e){return this.stream.write(this.space(e)+"<!ELEMENT "+t.name+" "+t.value),this.stream.write(this.spacebeforeslash+">"+this.endline(t))},e.prototype.dtdEntity=function(t,e){return this.stream.write(this.space(e)+"<!ENTITY"),t.pe&&this.stream.write(" %"),this.stream.write(" "+t.name),t.value?this.stream.write(' "'+t.value+'"'):(t.pubID&&t.sysID?this.stream.write(' PUBLIC "'+t.pubID+'" "'+t.sysID+'"'):t.sysID&&this.stream.write(' SYSTEM "'+t.sysID+'"'),t.nData&&this.stream.write(" NDATA "+t.nData)),this.stream.write(this.spacebeforeslash+">"+this.endline(t))},e.prototype.dtdNotation=function(t,e){return this.stream.write(this.space(e)+"<!NOTATION "+t.name),t.pubID&&t.sysID?this.stream.write(' PUBLIC "'+t.pubID+'" "'+t.sysID+'"'):t.pubID?this.stream.write(' PUBLIC "'+t.pubID+'"'):t.sysID&&this.stream.write(' SYSTEM "'+t.sysID+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(t))},e.prototype.endline=function(t){return t.isLastRootNode?"":this.newline},e}(p)}).call(void 0)},{"./XMLCData":216,"./XMLComment":217,"./XMLDTDAttList":218,"./XMLDTDElement":219,"./XMLDTDEntity":220,"./XMLDTDNotation":221,"./XMLDeclaration":222,"./XMLDocType":223,"./XMLElement":226,"./XMLProcessingInstruction":228,"./XMLRaw":229,"./XMLText":233,"./XMLWriterBase":234}],231:[function(t,e,n){"use strict";(function(){var n,i,r,o,a,s,l,u,c,h,d,f,p,g={}.hasOwnProperty;l=t("./XMLDeclaration"),u=t("./XMLDocType"),n=t("./XMLCData"),i=t("./XMLComment"),c=t("./XMLElement"),d=t("./XMLRaw"),f=t("./XMLText"),h=t("./XMLProcessingInstruction"),r=t("./XMLDTDAttList"),o=t("./XMLDTDElement"),a=t("./XMLDTDEntity"),s=t("./XMLDTDNotation"),p=t("./XMLWriterBase"),e.exports=function(t){function e(t){e.__super__.constructor.call(this,t)}return function(t,e){function n(){this.constructor=t}for(var i in e)g.call(e,i)&&(t[i]=e[i]);n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype}(e,t),e.prototype.document=function(t){var e,n,r,o,a;for(this.textispresent=!1,o="",n=0,r=(a=t.children).length;n<r;n++)e=a[n],o+=function(){switch(!1){case!(e instanceof l):return this.declaration(e);case!(e instanceof u):return this.docType(e);case!(e instanceof i):return this.comment(e);case!(e instanceof h):return this.processingInstruction(e);default:return this.element(e,0)}}.call(this);return this.pretty&&o.slice(-this.newline.length)===this.newline&&(o=o.slice(0,-this.newline.length)),o},e.prototype.attribute=function(t){return" "+t.name+'="'+t.value+'"'},e.prototype.cdata=function(t,e){return this.space(e)+"<![CDATA["+t.text+"]]>"+this.newline},e.prototype.comment=function(t,e){return this.space(e)+"\x3c!-- "+t.text+" --\x3e"+this.newline},e.prototype.declaration=function(t,e){var n;return n=this.space(e),n+='<?xml version="'+t.version+'"',null!=t.encoding&&(n+=' encoding="'+t.encoding+'"'),null!=t.standalone&&(n+=' standalone="'+t.standalone+'"'),(n+=this.spacebeforeslash+"?>")+this.newline},e.prototype.docType=function(t,e){var l,u,c,d,f;if(e||(e=0),d=this.space(e),d+="<!DOCTYPE "+t.root().name,t.pubID&&t.sysID?d+=' PUBLIC "'+t.pubID+'" "'+t.sysID+'"':t.sysID&&(d+=' SYSTEM "'+t.sysID+'"'),t.children.length>0){for(d+=" [",d+=this.newline,u=0,c=(f=t.children).length;u<c;u++)l=f[u],d+=function(){switch(!1){case!(l instanceof r):return this.dtdAttList(l,e+1);case!(l instanceof o):return this.dtdElement(l,e+1);case!(l instanceof a):return this.dtdEntity(l,e+1);case!(l instanceof s):return this.dtdNotation(l,e+1);case!(l instanceof n):return this.cdata(l,e+1);case!(l instanceof i):return this.comment(l,e+1);case!(l instanceof h):return this.processingInstruction(l,e+1);default:throw new Error("Unknown DTD node type: "+l.constructor.name)}}.call(this);d+="]"}return(d+=this.spacebeforeslash+">")+this.newline},e.prototype.element=function(t,e){var r,o,a,s,l,u,p,m,v,y,w,b,x;for(p in e||(e=0),x=!1,this.textispresent?(this.newline="",this.pretty=!1):(this.newline=this.newlinedefault,this.pretty=this.prettydefault),m="",m+=(b=this.space(e))+"<"+t.name,v=t.attributes)g.call(v,p)&&(r=v[p],m+=this.attribute(r));if(0===t.children.length||t.children.every((function(t){return""===t.value})))this.allowEmpty?m+="></"+t.name+">"+this.newline:m+=this.spacebeforeslash+"/>"+this.newline;else if(this.pretty&&1===t.children.length&&null!=t.children[0].value)m+=">",m+=t.children[0].value,m+="</"+t.name+">"+this.newline;else{if(this.dontprettytextnodes)for(a=0,l=(y=t.children).length;a<l;a++)if(null!=(o=y[a]).value){this.textispresent++,x=!0;break}for(this.textispresent&&(this.newline="",this.pretty=!1,b=this.space(e)),m+=">"+this.newline,s=0,u=(w=t.children).length;s<u;s++)o=w[s],m+=function(){switch(!1){case!(o instanceof n):return this.cdata(o,e+1);case!(o instanceof i):return this.comment(o,e+1);case!(o instanceof c):return this.element(o,e+1);case!(o instanceof d):return this.raw(o,e+1);case!(o instanceof f):return this.text(o,e+1);case!(o instanceof h):return this.processingInstruction(o,e+1);default:throw new Error("Unknown XML node type: "+o.constructor.name)}}.call(this);x&&this.textispresent--,this.textispresent||(this.newline=this.newlinedefault,this.pretty=this.prettydefault),m+=b+"</"+t.name+">"+this.newline}return m},e.prototype.processingInstruction=function(t,e){var n;return n=this.space(e)+"<?"+t.target,t.value&&(n+=" "+t.value),n+(this.spacebeforeslash+"?>")+this.newline},e.prototype.raw=function(t,e){return this.space(e)+t.value+this.newline},e.prototype.text=function(t,e){return this.space(e)+t.value+this.newline},e.prototype.dtdAttList=function(t,e){var n;return n=this.space(e)+"<!ATTLIST "+t.elementName+" "+t.attributeName+" "+t.attributeType,"#DEFAULT"!==t.defaultValueType&&(n+=" "+t.defaultValueType),t.defaultValue&&(n+=' "'+t.defaultValue+'"'),n+(this.spacebeforeslash+">")+this.newline},e.prototype.dtdElement=function(t,e){return this.space(e)+"<!ELEMENT "+t.name+" "+t.value+this.spacebeforeslash+">"+this.newline},e.prototype.dtdEntity=function(t,e){var n;return n=this.space(e)+"<!ENTITY",t.pe&&(n+=" %"),n+=" "+t.name,t.value?n+=' "'+t.value+'"':(t.pubID&&t.sysID?n+=' PUBLIC "'+t.pubID+'" "'+t.sysID+'"':t.sysID&&(n+=' SYSTEM "'+t.sysID+'"'),t.nData&&(n+=" NDATA "+t.nData)),n+(this.spacebeforeslash+">")+this.newline},e.prototype.dtdNotation=function(t,e){var n;return n=this.space(e)+"<!NOTATION "+t.name,t.pubID&&t.sysID?n+=' PUBLIC "'+t.pubID+'" "'+t.sysID+'"':t.pubID?n+=' PUBLIC "'+t.pubID+'"':t.sysID&&(n+=' SYSTEM "'+t.sysID+'"'),n+(this.spacebeforeslash+">")+this.newline},e.prototype.openNode=function(t,e){var n,i,r,o;if(e||(e=0),t instanceof c){for(i in r=this.space(e)+"<"+t.name,o=t.attributes)g.call(o,i)&&(n=o[i],r+=this.attribute(n));return r+(t.children?">":"/>")+this.newline}return r=this.space(e)+"<!DOCTYPE "+t.rootNodeName,t.pubID&&t.sysID?r+=' PUBLIC "'+t.pubID+'" "'+t.sysID+'"':t.sysID&&(r+=' SYSTEM "'+t.sysID+'"'),r+(t.children?" [":">")+this.newline},e.prototype.closeNode=function(t,e){switch(e||(e=0),!1){case!(t instanceof c):return this.space(e)+"</"+t.name+">"+this.newline;case!(t instanceof u):return this.space(e)+"]>"+this.newline}},e}(p)}).call(void 0)},{"./XMLCData":216,"./XMLComment":217,"./XMLDTDAttList":218,"./XMLDTDElement":219,"./XMLDTDEntity":220,"./XMLDTDNotation":221,"./XMLDeclaration":222,"./XMLDocType":223,"./XMLElement":226,"./XMLProcessingInstruction":228,"./XMLRaw":229,"./XMLText":233,"./XMLWriterBase":234}],232:[function(t,e,n){"use strict";(function(){var t={}.hasOwnProperty;e.exports=function(){function e(e){var n,i,r;for(n in this.assertLegalChar=function(t,e){return function(){return t.apply(e,arguments)}}(this.assertLegalChar,this),e||(e={}),this.noDoubleEncoding=e.noDoubleEncoding,i=e.stringify||{})t.call(i,n)&&(r=i[n],this[n]=r)}return e.prototype.eleName=function(t){return t=""+t||"",this.assertLegalChar(t)},e.prototype.eleText=function(t){return t=""+t||"",this.assertLegalChar(this.elEscape(t))},e.prototype.cdata=function(t){return t=(t=""+t||"").replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(t)},e.prototype.comment=function(t){if((t=""+t||"").match(/--/))throw new Error("Comment text cannot contain double-hypen: "+t);return this.assertLegalChar(t)},e.prototype.raw=function(t){return""+t||""},e.prototype.attName=function(t){return""+t||""},e.prototype.attValue=function(t){return t=""+t||"",this.attEscape(t)},e.prototype.insTarget=function(t){return""+t||""},e.prototype.insValue=function(t){if((t=""+t||"").match(/\?>/))throw new Error("Invalid processing instruction value: "+t);return t},e.prototype.xmlVersion=function(t){if(!(t=""+t||"").match(/1\.[0-9]+/))throw new Error("Invalid version number: "+t);return t},e.prototype.xmlEncoding=function(t){if(!(t=""+t||"").match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+t);return t},e.prototype.xmlStandalone=function(t){return t?"yes":"no"},e.prototype.dtdPubID=function(t){return""+t||""},e.prototype.dtdSysID=function(t){return""+t||""},e.prototype.dtdElementValue=function(t){return""+t||""},e.prototype.dtdAttType=function(t){return""+t||""},e.prototype.dtdAttDefault=function(t){return null!=t?""+t||"":t},e.prototype.dtdEntityValue=function(t){return""+t||""},e.prototype.dtdNData=function(t){return""+t||""},e.prototype.convertAttKey="@",e.prototype.convertPIKey="?",e.prototype.convertTextKey="#text",e.prototype.convertCDataKey="#cdata",e.prototype.convertCommentKey="#comment",e.prototype.convertRawKey="#raw",e.prototype.assertLegalChar=function(t){var e;if(e=t.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/))throw new Error("Invalid character in string: "+t+" at index "+e.index);return t},e.prototype.elEscape=function(t){var e;return e=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,t.replace(e,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;")},e.prototype.attEscape=function(t){var e;return e=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,t.replace(e,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;")},e}()}).call(void 0)},{}],233:[function(t,e,n){"use strict";var i=function(t){return t&&t.__esModule?t:{default:t}}(t("babel-runtime/core-js/object/create"));(function(){var n,r={}.hasOwnProperty;n=t("./XMLNode"),e.exports=function(t){function e(t,n){if(e.__super__.constructor.call(this,t),null==n)throw new Error("Missing element text");this.value=this.stringify.eleText(n)}return function(t,e){function n(){this.constructor=t}for(var i in e)r.call(e,i)&&(t[i]=e[i]);n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype}(e,t),e.prototype.clone=function(){return(0,i.default)(this)},e.prototype.toString=function(t){return this.options.writer.set(t).text(this)},e}(n)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],234:[function(t,e,n){"use strict";(function(){var t={}.hasOwnProperty;e.exports=function(){function e(e){var n,i,r,o,a,s,l,u,c;for(n in e||(e={}),this.pretty=e.pretty||!1,this.allowEmpty=null!=(i=e.allowEmpty)&&i,this.pretty?(this.indent=null!=(r=e.indent)?r:" ",this.newline=null!=(o=e.newline)?o:"\n",this.offset=null!=(a=e.offset)?a:0,this.dontprettytextnodes=null!=(s=e.dontprettytextnodes)?s:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash=null!=(l=e.spacebeforeslash)?l:"",!0===this.spacebeforeslash&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,u=e.writer||{})t.call(u,n)&&(c=u[n],this[n]=c)}return e.prototype.set=function(e){var n,i,r;for(n in e||(e={}),"pretty"in e&&(this.pretty=e.pretty),"allowEmpty"in e&&(this.allowEmpty=e.allowEmpty),this.pretty?(this.indent="indent"in e?e.indent:" ",this.newline="newline"in e?e.newline:"\n",this.offset="offset"in e?e.offset:0,this.dontprettytextnodes="dontprettytextnodes"in e?e.dontprettytextnodes:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash="spacebeforeslash"in e?e.spacebeforeslash:"",!0===this.spacebeforeslash&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,i=e.writer||{})t.call(i,n)&&(r=i[n],this[n]=r);return this},e.prototype.space=function(t){var e;return this.pretty&&(e=(t||0)+this.offset+1)>0?new Array(e).join(this.indent):""},e}()}).call(void 0)},{}],235:[function(t,e,n){"use strict";(function(){var n,i,r,o,a,s,l;l=t("./Utility"),a=l.assign,s=l.isFunction,n=t("./XMLDocument"),i=t("./XMLDocumentCB"),o=t("./XMLStringWriter"),r=t("./XMLStreamWriter"),e.exports.create=function(t,e,i,r){var o,s;if(null==t)throw new Error("Root element needs a name");return r=a({},e,i,r),s=(o=new n(r)).element(t),r.headless||(o.declaration(r),null==r.pubID&&null==r.sysID||o.doctype(r)),s},e.exports.begin=function(t,e,r){var o;return s(t)&&(e=(o=[t,e])[0],r=o[1],t={}),e?new i(t,e,r):new n(t)},e.exports.stringWriter=function(t){return new o(t)},e.exports.streamWriter=function(t,e){return new r(t,e)}}).call(void 0)},{"./Utility":214,"./XMLDocument":224,"./XMLDocumentCB":225,"./XMLStreamWriter":230,"./XMLStringWriter":231}],236:[function(t,e,n){e.exports=function(){for(var t={},e=0;e<arguments.length;e++){var n=arguments[e];for(var r in n)i.call(n,r)&&(t[r]=n[r])}return t};var i=Object.prototype.hasOwnProperty},{}],237:[function(t,e,n){"use strict";function i(t,e){var n=a[t=t||"sha1"],i=[];return n||r("algorithm:",t,"is not yet supported"),{update:function(t){return o.isBuffer(t)||(t=new o(t)),i.push(t),t.length,this},digest:function(t){var r=o.concat(i),a=e?function(t,e,n){o.isBuffer(e)||(e=new o(e)),o.isBuffer(n)||(n=new o(n)),e.length>s?e=t(e):e.length<s&&(e=o.concat([e,l],s));for(var i=new o(s),r=new o(s),a=0;a<s;a++)i[a]=54^e[a],r[a]=92^e[a];var u=t(o.concat([i,n]));return t(o.concat([r,u]))}(n,e,r):n(r);return i=null,t?a.toString(t):a}}}function r(){var t=[].slice.call(arguments).join(" ");throw new Error([t,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join("\n"))}var o=t("buffer").Buffer,a={sha1:t("./sha"),sha256:t("./sha256"),md5:t("./md5")},s=64,l=new o(s);l.fill(0),n.createHash=function(t){return i(t)},n.createHmac=function(t,e){return i(t,e)},function(t,e){for(var n in t)e(t[n])}(["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],(function(t){n[t]=function(){r("sorry,",t,"is not implemented yet")}}))},{"./md5":239,"./sha":240,"./sha256":241,buffer:38}],238:[function(t,e,n){"use strict";var i=t("buffer").Buffer,r=4,o=new i(r);o.fill(0);var a=8;e.exports={hash:function(t,e,n,s){return i.isBuffer(t)||(t=new i(t)),function(t,e,n){for(var r=new i(e),o=n?r.writeInt32BE:r.writeInt32LE,a=0;a<t.length;a++)o.call(r,t[a],4*a,!0);return r}(e(function(t,e){if(t.length%r!=0){var n=t.length+(r-t.length%r);t=i.concat([t,o],n)}for(var a=[],s=e?t.readInt32BE:t.readInt32LE,l=0;l<t.length;l+=r)a.push(s.call(t,l));return a}(t,s),t.length*a),n,s)}}},{buffer:38}],239:[function(t,e,n){"use strict";function i(t,e){t[e>>5]|=128<<e%32,t[14+(e+64>>>9<<4)]=e;for(var n=1732584193,i=-271733879,r=-1732584194,c=271733878,h=0;h<t.length;h+=16){var d=n,f=i,p=r,g=c;n=o(n,i,r,c,t[h+0],7,-680876936),c=o(c,n,i,r,t[h+1],12,-389564586),r=o(r,c,n,i,t[h+2],17,606105819),i=o(i,r,c,n,t[h+3],22,-1044525330),n=o(n,i,r,c,t[h+4],7,-176418897),c=o(c,n,i,r,t[h+5],12,1200080426),r=o(r,c,n,i,t[h+6],17,-1473231341),i=o(i,r,c,n,t[h+7],22,-45705983),n=o(n,i,r,c,t[h+8],7,1770035416),c=o(c,n,i,r,t[h+9],12,-1958414417),r=o(r,c,n,i,t[h+10],17,-42063),i=o(i,r,c,n,t[h+11],22,-1990404162),n=o(n,i,r,c,t[h+12],7,1804603682),c=o(c,n,i,r,t[h+13],12,-40341101),r=o(r,c,n,i,t[h+14],17,-1502002290),n=a(n,i=o(i,r,c,n,t[h+15],22,1236535329),r,c,t[h+1],5,-165796510),c=a(c,n,i,r,t[h+6],9,-1069501632),r=a(r,c,n,i,t[h+11],14,643717713),i=a(i,r,c,n,t[h+0],20,-373897302),n=a(n,i,r,c,t[h+5],5,-701558691),c=a(c,n,i,r,t[h+10],9,38016083),r=a(r,c,n,i,t[h+15],14,-660478335),i=a(i,r,c,n,t[h+4],20,-405537848),n=a(n,i,r,c,t[h+9],5,568446438),c=a(c,n,i,r,t[h+14],9,-1019803690),r=a(r,c,n,i,t[h+3],14,-187363961),i=a(i,r,c,n,t[h+8],20,1163531501),n=a(n,i,r,c,t[h+13],5,-1444681467),c=a(c,n,i,r,t[h+2],9,-51403784),r=a(r,c,n,i,t[h+7],14,1735328473),n=s(n,i=a(i,r,c,n,t[h+12],20,-1926607734),r,c,t[h+5],4,-378558),c=s(c,n,i,r,t[h+8],11,-2022574463),r=s(r,c,n,i,t[h+11],16,1839030562),i=s(i,r,c,n,t[h+14],23,-35309556),n=s(n,i,r,c,t[h+1],4,-1530992060),c=s(c,n,i,r,t[h+4],11,1272893353),r=s(r,c,n,i,t[h+7],16,-155497632),i=s(i,r,c,n,t[h+10],23,-1094730640),n=s(n,i,r,c,t[h+13],4,681279174),c=s(c,n,i,r,t[h+0],11,-358537222),r=s(r,c,n,i,t[h+3],16,-722521979),i=s(i,r,c,n,t[h+6],23,76029189),n=s(n,i,r,c,t[h+9],4,-640364487),c=s(c,n,i,r,t[h+12],11,-421815835),r=s(r,c,n,i,t[h+15],16,530742520),n=l(n,i=s(i,r,c,n,t[h+2],23,-995338651),r,c,t[h+0],6,-198630844),c=l(c,n,i,r,t[h+7],10,1126891415),r=l(r,c,n,i,t[h+14],15,-1416354905),i=l(i,r,c,n,t[h+5],21,-57434055),n=l(n,i,r,c,t[h+12],6,1700485571),c=l(c,n,i,r,t[h+3],10,-1894986606),r=l(r,c,n,i,t[h+10],15,-1051523),i=l(i,r,c,n,t[h+1],21,-2054922799),n=l(n,i,r,c,t[h+8],6,1873313359),c=l(c,n,i,r,t[h+15],10,-30611744),r=l(r,c,n,i,t[h+6],15,-1560198380),i=l(i,r,c,n,t[h+13],21,1309151649),n=l(n,i,r,c,t[h+4],6,-145523070),c=l(c,n,i,r,t[h+11],10,-1120210379),r=l(r,c,n,i,t[h+2],15,718787259),i=l(i,r,c,n,t[h+9],21,-343485551),n=u(n,d),i=u(i,f),r=u(r,p),c=u(c,g)}return Array(n,i,r,c)}function r(t,e,n,i,r,o){return u(function(t,e){return t<<e|t>>>32-e}(u(u(e,t),u(i,o)),r),n)}function o(t,e,n,i,o,a,s){return r(e&n|~e&i,t,e,o,a,s)}function a(t,e,n,i,o,a,s){return r(e&i|n&~i,t,e,o,a,s)}function s(t,e,n,i,o,a,s){return r(e^n^i,t,e,o,a,s)}function l(t,e,n,i,o,a,s){return r(n^(e|~i),t,e,o,a,s)}function u(t,e){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}var c=t("./helpers");e.exports=function(t){return c.hash(t,i,16)}},{"./helpers":238}],240:[function(t,e,n){"use strict";function i(t,e){t[e>>5]|=128<<24-e%32,t[15+(e+64>>9<<4)]=e;for(var n=Array(80),i=1732584193,l=-271733879,u=-1732584194,c=271733878,h=-1009589776,d=0;d<t.length;d+=16){for(var f=i,p=l,g=u,m=c,v=h,y=0;y<80;y++){n[y]=y<16?t[d+y]:s(n[y-3]^n[y-8]^n[y-14]^n[y-16],1);var w=a(a(s(i,5),r(y,l,u,c)),a(a(h,n[y]),o(y)));h=c,c=u,u=s(l,30),l=i,i=w}i=a(i,f),l=a(l,p),u=a(u,g),c=a(c,m),h=a(h,v)}return Array(i,l,u,c,h)}function r(t,e,n,i){return t<20?e&n|~e&i:t<40?e^n^i:t<60?e&n|e&i|n&i:e^n^i}function o(t){return t<20?1518500249:t<40?1859775393:t<60?-1894007588:-899497514}function a(t,e){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}function s(t,e){return t<<e|t>>>32-e}var l=t("./helpers");e.exports=function(t){return l.hash(t,i,20,!0)}},{"./helpers":238}],241:[function(t,e,n){"use strict";var i=t("./helpers"),r=function(t,e){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n},o=function(t,e){return t>>>e|t<<32-e},a=function(t,e){return t>>>e},s=function(t,e,n){return t&e^~t&n},l=function(t,e,n){return t&e^t&n^e&n},u=function(t){return o(t,2)^o(t,13)^o(t,22)},c=function(t){return o(t,6)^o(t,11)^o(t,25)},h=function(t){return o(t,7)^o(t,18)^a(t,3)},d=function(t){return o(t,17)^o(t,19)^a(t,10)},f=function(t,e){var n,i,o,a,f,p,g,m,v,y,w=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),b=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),x=new Array(64);t[e>>5]|=128<<24-e%32,t[15+(e+64>>9<<4)]=e;for(var S=0;S<t.length;S+=16){n=b[0],i=b[1],o=b[2],a=b[3],f=b[4],p=b[5],g=b[6],m=b[7];for(var P=0;P<64;P++)x[P]=P<16?t[P+S]:r(r(r(d(x[P-2]),x[P-7]),h(x[P-15])),x[P-16]),v=r(r(r(r(m,c(f)),s(f,p,g)),w[P]),x[P]),y=r(u(n),l(n,i,o)),m=g,g=p,p=f,f=r(a,v),a=o,o=i,i=n,n=r(v,y);b[0]=r(n,b[0]),b[1]=r(i,b[1]),b[2]=r(o,b[2]),b[3]=r(a,b[3]),b[4]=r(f,b[4]),b[5]=r(p,b[5]),b[6]=r(g,b[6]),b[7]=r(m,b[7])}return b};e.exports=function(t){return i.hash(t,f,32,!0)}},{"./helpers":238}],242:[function(t,e,i){(function(n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var o=r(t("babel-runtime/core-js/object/create")),a=r(t("babel-runtime/helpers/classCallCheck")),s=r(t("babel-runtime/helpers/createClass")),l=r(t("babel-runtime/helpers/typeof"));!function(t){"object"===(void 0===i?"undefined":(0,l.default)(i))&&void 0!==e?e.exports=t():("undefined"!=typeof window?window:void 0!==n?n:"undefined"!=typeof self?self:this).mime=t()}((function(){return function e(n,i,r){function o(s,l){if(!i[s]){if(!n[s]){var u="function"==typeof t&&t;if(!l&&u)return u(s,!0);if(a)return a(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var h=i[s]={exports:{}};n[s][0].call(h.exports,(function(t){return o(n[s][1][t]||t)}),h,h.exports,e,n,i,r)}return i[s].exports}for(var a="function"==typeof t&&t,s=0;s<r.length;s++)o(r[s]);return o}({1:[function(t,e,n){var i=function(){function t(){(0,a.default)(this,t),this._types=(0,o.default)(null),this._extensions=(0,o.default)(null);for(var e=0;e<arguments.length;e++)this.define(arguments[e])}return(0,s.default)(t,[{key:"define",value:function(t,e){for(var n in t){for(var i=t[n],r=0;r<i.length;r++){var o=i[r];if(!e&&o in this._types)throw new Error('Attempt to change mapping for "'+o+'" extension from "'+this._types[o]+'" to "'+n+'". Pass `force=true` to allow this, otherwise remove "'+o+'" from the list of extensions for "'+n+'".');this._types[o]=n}!e&&this._extensions[n]||(this._extensions[n]=i[0])}}},{key:"getType",value:function(t){var e=(t=String(t)).replace(/^.*[\/\\]/,"").toLowerCase(),n=e.replace(/^.*\./,"").toLowerCase(),i=e.length<t.length;return(n.length<e.length-1||!i)&&this._types[n]||null}},{key:"getExtension",value:function(t){return(t=/^\s*([^;\s]*)/.test(t)&&RegExp.$1)&&this._extensions[t.toLowerCase()]||null}}]),t}();e.exports=i},{}],2:[function(t,e,n){var i=t("./Mime");e.exports=new i(t("./types/standard"),t("./types/other"))},{"./Mime":1,"./types/other":3,"./types/standard":4}],3:[function(t,e,n){e.exports={"application/prs.cww":["cww"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["xfdf"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["mpp","mpt"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":[],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":[],"application/x-bittorrent":["torrent"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-otf":[],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-ttf":["ttf","ttc"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-iso9660-image":[],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":[],"application/x-msdownload":["com","bat"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["wmf","emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":[],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":[],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":[],"audio/x-wav":[],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":[],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/x-3ds":["3ds"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":[],"image/x-pcx":["pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["mts"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":[],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]}},{}],4:[function(t,e,n){e.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomsvc+xml":["atomsvc"],"application/bdoc":["bdoc"],"application/ccxml+xml":["ccxml"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma"],"application/emma+xml":["emma"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/font-tdpfr":["pfr"],"application/font-woff":["woff"],"application/font-woff2":["woff2"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/pskc+xml":["pskcxml"],"application/rdf+xml":["rdf"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/voicexml+xml":["vxml"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-diff+xml":["xdf"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":[],"audio/adpcm":["adp"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mp3":[],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":[],"audio/webm":["weba"],"audio/xm":["xm"],"font/otf":["otf"],"image/apng":["apng"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/g3fax":["g3"],"image/gif":["gif"],"image/ief":["ief"],"image/jpeg":["jpeg","jpg","jpe"],"image/ktx":["ktx"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/tiff":["tiff","tif"],"image/webp":["webp"],"message/rfc822":["eml","mime"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["x3db","x3dbz"],"model/x3d+vrml":["x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/hjson":["hjson"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":[],"text/sgml":["sgml","sgm"],"text/slim":["slim","slm"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":[],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/jpeg":["jpgv"],"video/jpm":["jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}},{}]},{},[2])(2)}))}).call(this,void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"babel-runtime/core-js/object/create":19,"babel-runtime/helpers/classCallCheck":30,"babel-runtime/helpers/createClass":31,"babel-runtime/helpers/typeof":32}],243:[function(t,e,n){"use strict";n.encodeURIComponent=function(t){try{return encodeURIComponent(t)}catch(e){return t}},n.escape=t("escape-html"),n.timestamp=function(t){if(t){var e=t;return"string"==typeof e&&(e=Number(e)),10===String(t).length&&(e*=1e3),new Date(e)}return Math.round(Date.now()/1e3)}},{"escape-html":157}],244:[function(t,e,n){(function(e,i){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){return void 0===t?e:t}function a(t,e){return function(n,i,r){if(n)return e(n);t({data:i,status:r.statusCode,headers:r.headers,res:r})}}var s,l=r(t("babel-runtime/core-js/json/stringify")),u=r(t("babel-runtime/helpers/typeof")),c=t("util"),h=t("url"),d=t("http"),f=t("https"),p=t("debug")("urllib"),g=t("humanize-ms"),m=0,v=Math.pow(2,31)-10,y=/^https?:\/\//i;n.TIMEOUTS=[g("300s"),g("300s")];var w=["json","text"];n.request=function(e,i,r){return 2===arguments.length&&"function"==typeof i&&(r=i,i=null),"function"==typeof r?n.requestWithCallback(e,i,r):(s||(s=t("any-promise")),new s((function(t,r){n.requestWithCallback(e,i,a(t,r))})))},n.requestWithCallback=function(r,a,s){function b(){X&&(clearTimeout(X),X=null)}function x(){q&&(clearTimeout(q),q=null)}function S(t,i,o){if(x(),!s)return console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),L,e.pid,F.method,r),void(t&&console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s: %s\nstack: %s",Date(),L,e.pid,t.name,t.message,t.stack));var u=s;s=null;var c={};if(o&&(tt=o.statusCode,c=o.headers),401===tt&&c["www-authenticate"]&&(!a.headers||!a.headers.Authorization)&&a.digestAuth){var h=c["www-authenticate"];if(h.indexOf("Digest ")>=0)return p("Request#%d %s: got digest auth header WWW-Authenticate: %s",L,r,h),a.headers=a.headers||{},a.headers.Authorization=digestAuthHeader(F.method,F.path,h,a.digestAuth),p("Request#%d %s: auth with digest header: %s",L,r,a.headers.Authorization),o.headers["set-cookie"]&&(a.headers.Cookie=o.headers["set-cookie"].join(";")),n.requestWithCallback(r,a,u)}var d=Date.now()-j;rt&&(rt.contentDownload=d),p("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",d,$,tt,F.method,F.host,F.path,J,rt);var f={status:tt,statusCode:tt,headers:c,size:$,aborted:et,rt:d,keepAliveSocket:J,data:i,requestUrls:a.requestUrls,timing:rt,remoteAddress:nt,remotePort:it};if(t){var g="";D&&"function"==typeof D.getCurrentStatus&&(g=", agent status: "+(0,l.default)(D.getCurrentStatus())),t.message+=", "+F.method+" "+r+" "+tt+" (connected: "+Q+", keepalive socket: "+J+g+")\nheaders: "+(0,l.default)(c),t.data=i,t.path=F.path,t.status=tt,t.headers=c,t.res=f}u(t,i,a.streaming?o:f),a.emitter&&(T.url=r,T.socket=st&&st.connection,T.options=F,T.size=V,a.emitter.emit("response",{requestId:L,error:t,ctx:a.ctx,req:T,res:f}))}function P(t){var e=null;if(a.followRedirect&&statuses.redirect[t.statusCode]){a._followRedirectCount=(a._followRedirectCount||0)+1;var i=t.headers.location;if(i){if(!(a._followRedirectCount>a.maxRedirects)){var o=a.formatRedirectUrl?a.formatRedirectUrl(r,i):h.resolve(r,i);p("Request#%d %s: `redirected` from %s to %s",L,F.path,r,o),x(),a.headers&&a.headers.Host&&y.test(i)&&(a.headers.Host=null);var l=s;return s=null,n.requestWithCallback(o,a,l),{redirect:!0,error:null}}(e=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+r)).name="MaxRedirectError"}else(e=new Error("Got statusCode "+t.statusCode+" but cannot resolve next location from headers")).name="FollowRedirectError"}return{redirect:!1,error:e}}function k(t,e,n){return n(null,e,t.headers["content-encoding"])}function C(t){var e;if(rt&&(rt.waiting=Date.now()-j),p("Request#%d %s `req response` event emit: status %d, headers: %j",L,r,t.statusCode,t.headers),a.streaming)return(e=P(t)).redirect?void t.resume():e.error?(t.resume(),S(e.error,null,t)):S(null,null,t);if(t.on("close",(function(){p("Request#%d %s: `res close` event emit, total size %d",L,r,$)})),t.on("error",(function(){p("Request#%d %s: `res error` event emit, total size %d",L,r,$)})),t.on("aborted",(function(){et=!0,p("Request#%d %s: `res aborted` event emit, total size %d",L,r,$)})),lt)return(e=P(t)).redirect?void t.resume():e.error?(t.resume(),lt.end(),S(e.error,null,t)):(!1===a.consumeWriteStream?t.on("end",S.bind(null,null,null,t)):isNode010||isNode012?first([[lt,"close"],[t,"aborted"]],(function(e,n,i){p("Request#%d %s: writeStream or res %s event emitted",L,r,i),S(K||null,null,t)})):lt.on("close",(function(){p("Request#%d %s: writeStream close event emitted",L,r),S(K||null,null,t)})),t.pipe(lt));var n=[];t.on("data",(function(t){p("Request#%d %s: `res data` event emit, size %d",L,r,t.length),$+=t.length,n.push(t)})),t.on("end",(function(){var e=i.concat(n,$);if(p("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",L,r,$,t._dumped),K)return S(K,e,t);var o=P(t);if(o.error)return S(o.error,e,t);o.redirect||k(t,e,(function(n,i,o){if(n)return S(n,e,t);if(!o&&w.indexOf(a.dataType)>=0){try{i=decodeBodyByCharset(i,t)}catch(e){return p("decodeBodyByCharset error: %s",e),S(null,i,t)}if("json"===a.dataType)if(0===$)i=null;else{var s=parseJSON(i,R);s.error?n=s.error:i=s.data}}et&&p("Request#%d %s: Remote socket was terminated before `response.end()` was called",L,r),S(n,i,t)}))}))}function A(){p("Response timer ticking, timeout: %d",at),q=setTimeout((function(){q=null;var t="Response timeout for "+at+"ms";(K=new Error(t)).name="ResponseTimeoutError",K.requestId=L,p("ResponseTimeout: Request#%d %s %s: %s, connected: %s",L,r,K.name,t,Q),M()}),at)}function M(){p("Request#%d %s abort, connected: %s",L,r,Q),st.socket||(K.noSocket=!0,S(K)),st.abort()}if(!r||"string"!=typeof r&&"object"!==(void 0===r?"undefined":(0,u.default)(r))){var E=c.format("expect request url to be a string or a http request options, but got %j",r);throw new Error(E)}2===arguments.length&&"function"==typeof a&&(s=a,a=null),m>=v&&(m=0);var L=++m;(a=a||{}).requestUrls=a.requestUrls||[];var T={requestId:L,url:r,args:a,ctx:a.ctx};a.emitter&&a.emitter.emit("request",T),a.timeout=a.timeout||n.TIMEOUTS,a.maxRedirects=a.maxRedirects||10,a.streaming=a.streaming||a.customResponse;var N,j=Date.now();"string"==typeof r?(y.test(r)||(r="http://"+r),N=h.parse(r)):N=r;var I=(a.type||a.method||N.method||"GET").toUpperCase(),B=N.port||80,O=d,D=o(a.agent,n.agent),R=a.fixJSONCtlChars;"https:"===N.protocol&&(O=f,D=o(a.httpsAgent,n.httpsAgent),N.port||(B=443));var F={host:N.hostname||N.host||"localhost",path:N.path||"/",method:I,port:B,agent:D,headers:a.headers||{},lookup:a.lookup};Array.isArray(a.timeout)?F.requestTimeout=a.timeout[a.timeout.length-1]:void 0!==a.timeout&&(F.requestTimeout=a.timeout);for(var z=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","secureOptions"],G=0;G<z.length;G++){var U=z[G];a.hasOwnProperty(U)&&(F[U]=a[U])}!1!==F.rejectUnauthorized||F.hasOwnProperty("secureOptions")||(F.secureOptions=t("constants").SSL_OP_NO_TLSv1_2);var H=a.auth||N.auth;H&&(F.auth=H);var _=a.content||a.data,Z="GET"===I||"HEAD"===I||a.dataAsQueryString;if(!a.content&&_&&"string"!=typeof _&&!i.isBuffer(_))if(Z)_=a.nestedQuerystring?qs.stringify(_):querystring.stringify(_);else{var W=F.headers["Content-Type"]||F.headers["content-type"];W||(W="json"===a.contentType?"application/json":"application/x-www-form-urlencoded",F.headers["Content-Type"]=W),_="application/json"===parseContentType(W).type?(0,l.default)(_):a.nestedQuerystring?qs.stringify(_):querystring.stringify(_)}Z&&_&&(F.path+=(N.query?"&":"?")+_,_=null);var V=0;if(_){var Y=_.length;i.isBuffer(_)||(Y=i.byteLength(_)),V=F.headers["Content-Length"]=Y}"json"===a.dataType&&(F.headers.Accept="application/json"),"function"==typeof a.beforeRequest&&a.beforeRequest(F);var X=null,q=null,K=null,Q=!1,J=!1,$=0,tt=-1,et=!1,nt="",it="",rt=null;a.timing&&(rt={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0}),F.headers["User-Agent"]||F.headers["user-agent"]||(F.headers["User-Agent"]=navigator.userAgent),a.gzip&&(F.headers["Accept-Encoding"]||F.headers["accept-encoding"]||(F.headers["Accept-Encoding"]="gzip"));var ot,at,st,lt=a.writeStream;p("Request#%d %s %s with headers %j, options.path: %s",L,I,r,F.headers,F.path),a.requestUrls.push(r),Array.isArray(a.timeout)?(ot=g(a.timeout[0]),at=g(a.timeout[1])):ot=at=g(a.timeout),p("ConnectTimeout: %d, ResponseTimeout: %d",ot,at);try{st=O.request(F,C)}catch(t){return S(t)}return"undefined"==typeof window?(p("Connect timer ticking, timeout: %d",ot),X=setTimeout((function(){X=null,-1===tt&&(tt=-2);var t="Connect timeout for "+ot+"ms",e="ConnectionTimeoutError";st.socket||(e="SocketAssignTimeoutError",t+=", working sockets is full"),(K=new Error(t)).name=e,K.requestId=L,p("ConnectTimeout: Request#%d %s %s: %s, connected: %s",L,r,K.name,t,Q),M()}),ot)):st.on("requestTimeout",(function(){-1===tt&&(tt=-2),(K=new Error("Connect timeout for "+ot+"ms")).name="ConnectionTimeoutError",K.requestId=L,M()})),rt&&st.on("finish",(function(){rt.requestSent=Date.now()-j})),st.once("socket",(function(t){rt&&(rt.queuing=Date.now()-j),isNode010&&t.socket&&(t=t.socket);var e=t.readyState;if("opening"===e)return t.once("lookup",(function(t,e,n){p("Request#%d %s lookup: %s, %s, %s",L,r,t,e,n),rt&&(rt.dnslookup=Date.now()-j),e&&(nt=e)})),void t.once("connect",(function(){rt&&(rt.connected=Date.now()-j),b(),A(),p("Request#%d %s new socket connected",L,r),Q=!0,nt||(nt=t.remoteAddress),it=t.remotePort}));p("Request#%d %s reuse socket connected, readyState: %s",L,r,e),Q=!0,J=!0,nt||(nt=t.remoteAddress),it=t.remotePort,b(),A()})),st.on("error",(function(t){"Error"!==t.name&&"TypeError"!==t.name||(t.name=Q?"ResponseError":"RequestError"),t.message+=' (req "error")',p("Request#%d %s `req error` event emit, %s: %s",L,r,t.name,t.message),S(K||t)})),lt&&lt.once("error",(function(t){t.message+=' (writeStream "error")',K=t,p("Request#%d %s `writeStream error` event emit, %s: %s",L,r,t.name,t.message),M()})),a.stream?(a.stream.pipe(st),a.stream.once("error",(function(t){t.message+=' (stream "error")',K=t,p("Request#%d %s `readStream error` event emit, %s: %s",L,r,t.name,t.message),M()}))):st.end(_),st.requestId=L,st}}).call(this,t("_process"),t("buffer").Buffer)},{_process:173,"any-promise":13,"babel-runtime/core-js/json/stringify":17,"babel-runtime/helpers/typeof":32,buffer:38,constants:42,debug:155,http:196,https:159,"humanize-ms":160,url:203,util:207}]},{},[1])(1)},window.OSS=i(),t.exports=i(),function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=12)}([function(t,e,n){t.exports=function(){var t=t||function(t,e){var n=Object.create||function(){function t(){}return function(e){var n;return t.prototype=e,n=new t,t.prototype=null,n}}(),i={},r=i.lib={},o=r.Base={extend:function(t){var e=n(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},a=r.WordArray=o.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:4*t.length},toString:function(t){return(t||l).stringify(this)},concat:function(t){var e=this.words,n=t.words,i=this.sigBytes,r=t.sigBytes;if(this.clamp(),i%4)for(var o=0;o<r;o++){var a=n[o>>>2]>>>24-o%4*8&255;e[i+o>>>2]|=a<<24-(i+o)%4*8}else for(o=0;o<r;o+=4)e[i+o>>>2]=n[o>>>2];return this.sigBytes+=r,this},clamp:function(){var e=this.words,n=this.sigBytes;e[n>>>2]&=4294967295<<32-n%4*8,e.length=t.ceil(n/4)},clone:function(){var t=o.clone.call(this);return t.words=this.words.slice(0),t},random:function(e){for(var n,i=[],r=0;r<e;r+=4){var o=function(e){var n=987654321,i=4294967295;return function(){var r=((n=36969*(65535&n)+(n>>16)&i)<<16)+(e=18e3*(65535&e)+(e>>16)&i)&i;return r/=4294967296,(r+=.5)*(t.random()>.5?1:-1)}}(4294967296*(n||t.random()));n=987654071*o(),i.push(4294967296*o()|0)}return new a.init(i,e)}}),s=i.enc={},l=s.Hex={stringify:function(t){for(var e=t.words,n=t.sigBytes,i=[],r=0;r<n;r++){var o=e[r>>>2]>>>24-r%4*8&255;i.push((o>>>4).toString(16)),i.push((15&o).toString(16))}return i.join("")},parse:function(t){for(var e=t.length,n=[],i=0;i<e;i+=2)n[i>>>3]|=parseInt(t.substr(i,2),16)<<24-i%8*4;return new a.init(n,e/2)}},u=s.Latin1={stringify:function(t){for(var e=t.words,n=t.sigBytes,i=[],r=0;r<n;r++){var o=e[r>>>2]>>>24-r%4*8&255;i.push(String.fromCharCode(o))}return i.join("")},parse:function(t){for(var e=t.length,n=[],i=0;i<e;i++)n[i>>>2]|=(255&t.charCodeAt(i))<<24-i%4*8;return new a.init(n,e)}},c=s.Utf8={stringify:function(t){try{return decodeURIComponent(escape(u.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return u.parse(unescape(encodeURIComponent(t)))}},h=r.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=c.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var n=this._data,i=n.words,r=n.sigBytes,o=this.blockSize,s=r/(4*o),l=(s=e?t.ceil(s):t.max((0|s)-this._minBufferSize,0))*o,u=t.min(4*l,r);if(l){for(var c=0;c<l;c+=o)this._doProcessBlock(i,c);var h=i.splice(0,l);n.sigBytes-=u}return new a.init(h,u)},clone:function(){var t=o.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),d=(r.Hasher=h.extend({cfg:o.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){h.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,n){return new t.init(n).finalize(e)}},_createHmacHelper:function(t){return function(e,n){return new d.HMAC.init(t,n).finalize(e)}}}),i.algo={});return i}(Math);return t}()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return i(t,null,[{key:"detectIEVersion",value:function(){for(var t=4,e=document.createElement("div"),n=e.getElementsByTagName("i");e.innerHTML="\x3c!--[if gt IE "+t+"]><i></i><![endif]--\x3e",n[0];)t++;return t>4&&t}},{key:"extend",value:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&e[n]&&(t[n]=e[n])}},{key:"isArray",value:function(t){return"[object Array]"===Object.prototype.toString.call(arg)}},{key:"getFileType",value:function(t){return t=t.toLowerCase(),/.mp4|.flv|.m3u8|.avi|.rm|.rmvb|.mpeg|.mpg|.mov|.wmv|.3gp|.asf|.dat|.dv|.f4v|.gif|.m2t|.m4v|.mj2|.mjpeg|.mpe|.mts|.ogg|.qt|.swf|.ts|.vob|.wmv|.webm/.test(t)?"video":/.mp3|.wav|.ape|.cda|.au|.midi|.mac|.aac|.ac3|.acm|.amr|.caf|.flac|.m4a|.ra|.wma/.test(t)?"audio":/.bmp|.jpg|.jpeg|.png/.test(t)?"img":"other"}},{key:"isImage",value:function(t){return t=t.toLowerCase(),!!/.jpg|.jpeg|.png/.test(t)}},{key:"ISODateString",value:function(t){function e(t){return t<10?"0"+t:t}return t.getUTCFullYear()+"-"+e(t.getUTCMonth()+1)+"-"+e(t.getUTCDate())+"T"+e(t.getUTCHours())+":"+e(t.getUTCMinutes())+":"+e(t.getUTCSeconds())+"Z"}},{key:"isIntNum",value:function(t){return!!/^\d+$/.test(t)}}]),t}();e.default=r},function(t,e,n){t.exports=function(t){return function(e){function n(t,e,n,i,r,o,a){var s=t+(e&n|~e&i)+r+a;return(s<<o|s>>>32-o)+e}function i(t,e,n,i,r,o,a){var s=t+(e&i|n&~i)+r+a;return(s<<o|s>>>32-o)+e}function r(t,e,n,i,r,o,a){var s=t+(e^n^i)+r+a;return(s<<o|s>>>32-o)+e}function o(t,e,n,i,r,o,a){var s=t+(n^(e|~i))+r+a;return(s<<o|s>>>32-o)+e}var a=t,s=a.lib,l=s.WordArray,u=s.Hasher,c=a.algo,h=[];!function(){for(var t=0;t<64;t++)h[t]=4294967296*e.abs(e.sin(t+1))|0}();var d=c.MD5=u.extend({_doReset:function(){this._hash=new l.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,e){for(var a=0;a<16;a++){var s=e+a,l=t[s];t[s]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}var u=this._hash.words,c=t[e+0],d=t[e+1],f=t[e+2],p=t[e+3],g=t[e+4],m=t[e+5],v=t[e+6],y=t[e+7],w=t[e+8],b=t[e+9],x=t[e+10],S=t[e+11],P=t[e+12],k=t[e+13],C=t[e+14],A=t[e+15],M=u[0],E=u[1],L=u[2],T=u[3];M=n(M,E,L,T,c,7,h[0]),T=n(T,M,E,L,d,12,h[1]),L=n(L,T,M,E,f,17,h[2]),E=n(E,L,T,M,p,22,h[3]),M=n(M,E,L,T,g,7,h[4]),T=n(T,M,E,L,m,12,h[5]),L=n(L,T,M,E,v,17,h[6]),E=n(E,L,T,M,y,22,h[7]),M=n(M,E,L,T,w,7,h[8]),T=n(T,M,E,L,b,12,h[9]),L=n(L,T,M,E,x,17,h[10]),E=n(E,L,T,M,S,22,h[11]),M=n(M,E,L,T,P,7,h[12]),T=n(T,M,E,L,k,12,h[13]),L=n(L,T,M,E,C,17,h[14]),M=i(M,E=n(E,L,T,M,A,22,h[15]),L,T,d,5,h[16]),T=i(T,M,E,L,v,9,h[17]),L=i(L,T,M,E,S,14,h[18]),E=i(E,L,T,M,c,20,h[19]),M=i(M,E,L,T,m,5,h[20]),T=i(T,M,E,L,x,9,h[21]),L=i(L,T,M,E,A,14,h[22]),E=i(E,L,T,M,g,20,h[23]),M=i(M,E,L,T,b,5,h[24]),T=i(T,M,E,L,C,9,h[25]),L=i(L,T,M,E,p,14,h[26]),E=i(E,L,T,M,w,20,h[27]),M=i(M,E,L,T,k,5,h[28]),T=i(T,M,E,L,f,9,h[29]),L=i(L,T,M,E,y,14,h[30]),M=r(M,E=i(E,L,T,M,P,20,h[31]),L,T,m,4,h[32]),T=r(T,M,E,L,w,11,h[33]),L=r(L,T,M,E,S,16,h[34]),E=r(E,L,T,M,C,23,h[35]),M=r(M,E,L,T,d,4,h[36]),T=r(T,M,E,L,g,11,h[37]),L=r(L,T,M,E,y,16,h[38]),E=r(E,L,T,M,x,23,h[39]),M=r(M,E,L,T,k,4,h[40]),T=r(T,M,E,L,c,11,h[41]),L=r(L,T,M,E,p,16,h[42]),E=r(E,L,T,M,v,23,h[43]),M=r(M,E,L,T,b,4,h[44]),T=r(T,M,E,L,P,11,h[45]),L=r(L,T,M,E,A,16,h[46]),M=o(M,E=r(E,L,T,M,f,23,h[47]),L,T,c,6,h[48]),T=o(T,M,E,L,y,10,h[49]),L=o(L,T,M,E,C,15,h[50]),E=o(E,L,T,M,m,21,h[51]),M=o(M,E,L,T,P,6,h[52]),T=o(T,M,E,L,p,10,h[53]),L=o(L,T,M,E,x,15,h[54]),E=o(E,L,T,M,d,21,h[55]),M=o(M,E,L,T,w,6,h[56]),T=o(T,M,E,L,A,10,h[57]),L=o(L,T,M,E,v,15,h[58]),E=o(E,L,T,M,k,21,h[59]),M=o(M,E,L,T,g,6,h[60]),T=o(T,M,E,L,S,10,h[61]),L=o(L,T,M,E,f,15,h[62]),E=o(E,L,T,M,b,21,h[63]),u[0]=u[0]+M|0,u[1]=u[1]+E|0,u[2]=u[2]+L|0,u[3]=u[3]+T|0},_doFinalize:function(){var t=this._data,n=t.words,i=8*this._nDataBytes,r=8*t.sigBytes;n[r>>>5]|=128<<24-r%32;var o=e.floor(i/4294967296),a=i;n[15+(r+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(r+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,l=s.words,u=0;u<4;u++){var c=l[u];l[u]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}return s},clone:function(){var t=u.clone.call(this);return t._hash=this._hash.clone(),t}});a.MD5=u._createHelper(d),a.HmacMD5=u._createHmacHelper(d)}(Math),t.MD5}(n(0))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UPLOADSTATE={INIT:"init",UPLOADING:"uploading",COMPLETE:"complete",INTERRUPT:"interrupt"},e.UPLOADSTEP={INIT:"init",PART:"part",COMPLETE:"complete"},e.UPLOADDEFAULT={PARALLEL:5,PARTSIZE:1048576}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),o=i(n(5)),a=i(n(25)),s=i(n(6)),l=i(n(7)),u=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var n=l.default.os.name,i=l.default.os.version||"",r=l.default.browser.name,a=l.default.browser.version||"",u=window.location.href,c="";u&&(c=l.default.getHost(u));var h="pc";l.default.os.ipad?h="pad":(l.default.os.iphone||l.default.os.android)&&(h="phone"),this._ri=o.default.create(),this.initParam={APIVersion:"0.6.0",lv:"1",av:s.default.version,pd:"upload",sm:"upload",md:"uploader",uuid:t.getUuid(),os:n,ov:i,et:r,ev:a,uat:navigator.userAgent,app_n:c,tt:h,dm:"h5",ut:""}}return r(t,[{key:"log",value:function(t,e){e&&e.ri?(this._ri=e.ri,delete e.ri):this._ri=o.default.create(),e&&e.ut&&(this.initParam.ut=e.ut,delete e.ut),this.initParam.t=(new Date).getTime(),this.initParam.ll="20006"==t?"error":"info",this.initParam.ri=this._ri,this.initParam.e=t;var n=[];if(e)for(var i in e)n.push(i+"="+e[i]);var r=n.join("&");this.initParam.args=encodeURIComponent(""==r?"0":r);var a=[];for(var i in this.initParam)a.push(i+"="+this.initParam[i]);var s=a.join("&");AliyunUpload&&AliyunUpload.__logTestCallback__?AliyunUpload.__logTestCallback__(s):new Image(0,0).src="https://videocloud.cn-hangzhou.log.aliyuncs.com/logstores/upload/track?"+s}}],[{key:"getUuid",value:function(){var t=a.default.get("p_h5_upload_u");return t||(t=o.default.create(),a.default.set("p_h5_upload_u",t,730)),t}},{key:"getClientId",value:function(){return a.default.get("p_h5_upload_clientId")}},{key:"setClientId",value:function(t){return t||(t=o.default.create()),a.default.set("p_h5_upload_clientId",t,730),t}}]),t}();e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return i(t,null,[{key:"create",value:function(t,e){var n,i,r="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),o=[];if(e=e||r.length,t)for(n=0;n<t;n++)o[n]=r[0|Math.random()*e];else for(o[8]=o[13]=o[18]=o[23]="-",o[14]="4",n=0;n<36;n++)o[n]||(i=0|16*Math.random(),o[n]=r[19==n?3&i|8:i]);return o.join("")}}]),t}();e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default={version:"1.5.0"}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=function(t){var e=navigator.userAgent.toLowerCase();return t.chrome?"Chrome":t.firefox?"Firefox":t.safari?"Safari":t.webview?"webview":t.ie?/edge/.test(e)?"Edge":"IE":/baiduspider/.test(e)?"Baiduspider":/ucweb/.test(e)||/UCBrowser/.test(e)?"UC":/opera/.test(e)?"Opera":/ucweb/.test(e)?"UC":/360se/.test(e)?"360浏览器":/bidubrowser/.test(e)?"百度浏览器":/metasr/.test(e)?"搜狗浏览器":/lbbrowser/.test(e)?"猎豹浏览器":/micromessenger/.test(e)?"微信内置浏览器":/qqbrowser/.test(e)?"QQ浏览器":/playstation/.test(e)?"PS4浏览器":void 0},o=function(){var t={},e={},n=navigator.userAgent,i=navigator.platform,o=n.match(/Web[kK]it[\/]{0,1}([\d.]+)/),a=n.match(/(Android);?[\s\/]+([\d.]+)?/),s=!!n.match(/\(Macintosh\; Intel /),l=n.match(/(iPad).*OS\s([\d_]+)/),u=n.match(/(iPod)(.*OS\s([\d_]+))?/),c=!l&&n.match(/(iPhone\sOS)\s([\d_]+)/),h=n.match(/(webOS|hpwOS)[\s\/]([\d.]+)/),d=/Win\d{2}|Windows/.test(i),f=n.match(/Windows Phone ([\d.]+)/),p=h&&n.match(/TouchPad/),g=n.match(/Kindle\/([\d.]+)/),m=n.match(/Silk\/([\d._]+)/),v=n.match(/(BlackBerry).*Version\/([\d.]+)/),y=n.match(/(BB10).*Version\/([\d.]+)/),w=n.match(/(RIM\sTablet\sOS)\s([\d.]+)/),b=n.match(/PlayBook/),x=n.match(/Chrome\/([\d.]+)/)||n.match(/CriOS\/([\d.]+)/),S=n.match(/Firefox\/([\d.]+)/),P=n.match(/\((?:Mobile|Tablet); rv:([\d.]+)\).*Firefox\/[\d.]+/),k=n.match(/MSIE\s([\d.]+)/)||n.match(/Trident\/[\d](?=[^\?]+).*rv:([0-9.].)/),C=!x&&n.match(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/),A=C||n.match(/Version\/([\d.]+)([^S](Safari)|[^M]*(Mobile)[^S]*(Safari))/);if((e.webkit=!!o)&&(e.version=o[1]),a&&(t.android=!0,t.version=a[2]),c&&!u&&(t.ios=t.iphone=!0,t.version=c[2].replace(/_/g,".")),l&&(t.ios=t.ipad=!0,t.version=l[2].replace(/_/g,".")),u&&(t.ios=t.ipod=!0,t.version=u[3]?u[3].replace(/_/g,"."):null),f&&(t.wp=!0,t.version=f[1]),h&&(t.webos=!0,t.version=h[2]),p&&(t.touchpad=!0),v&&(t.blackberry=!0,t.version=v[2]),y&&(t.bb10=!0,t.version=y[2]),w&&(t.rimtabletos=!0,t.version=w[2]),b&&(e.playbook=!0),g&&(t.kindle=!0,t.version=g[1]),m&&(e.silk=!0,e.version=m[1]),!m&&t.android&&n.match(/Kindle Fire/)&&(e.silk=!0),x&&(e.chrome=!0,e.version=x[1]),S&&(e.firefox=!0,e.version=S[1]),P&&(t.firefoxos=!0,t.version=P[1]),k&&(e.ie=!0,e.version=k[1]),A&&(s||t.ios||d||a)&&(e.safari=!0,t.ios||(e.version=A[1])),C&&(e.webview=!0),s){var M=n.match(/[\d]*_[\d]*_[\d]*/);M&&M.length>0&&M[0]&&(t.version=M[0].replace(/_/g,"."))}return t.tablet=!!(l||b||a&&!n.match(/Mobile/)||S&&n.match(/Tablet/)||k&&!n.match(/Phone/)&&n.match(/Touch/)),t.phone=!(t.tablet||t.ipod||!(a||c||h||v||y||x&&n.match(/Android/)||x&&n.match(/CriOS\/([\d.]+)/)||S&&n.match(/Mobile/)||k&&n.match(/Touch/))),t.pc=!t.tablet&&!t.phone,s?t.name="macOS":d?(t.name="windows",t.version=function(){var t=navigator.userAgent,e="";return(t.indexOf("Windows NT 5.0")>-1||t.indexOf("Windows 2000")>-1)&&(e="2000"),(t.indexOf("Windows NT 5.1")>-1||t.indexOf("Windows XP")>-1)&&(e="XP"),(t.indexOf("Windows NT 5.2")>-1||t.indexOf("Windows 2003")>-1)&&(e="2003"),(t.indexOf("Windows NT 6.0")>-1||t.indexOf("Windows Vista")>-1)&&(e="Vista"),(t.indexOf("Windows NT 6.1")>-1||t.indexOf("Windows 7")>-1)&&(e="7"),(t.indexOf("Windows NT 6.2")>-1||t.indexOf("Windows 8")>-1)&&(e="8"),(t.indexOf("Windows NT 6.3")>-1||t.indexOf("Windows 8.1")>-1)&&(e="8.1"),(t.indexOf("Windows NT 10")>-1||t.indexOf("Windows 10")>-1)&&(e="10"),e}()):t.name=function(t){var e=navigator.userAgent,n="other";if(t.ios)return"iOS";if(t.android)return"android";if(e.indexOf("Baiduspider")>-1)return"Baiduspider";if(e.indexOf("PlayStation")>-1)return"PS4";var i="Win32"==navigator.platform||"Windows"==navigator.platform||e.indexOf("Windows")>-1,r="Mac68K"==navigator.platform||"MacPPC"==navigator.platform||"Macintosh"==navigator.platform||"MacIntel"==navigator.platform;return r&&(n="macOS"),"X11"==navigator.platform&&!i&&!r&&(n="Unix"),String(navigator.platform).indexOf("Linux")>-1&&(n="Linux"),i?"windows":n}(t),e.name=r(e),{os:t,browser:e}}(),a=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return i(t,null,[{key:"getHost",value:function(t){var e="";if(void 0===t||null==t||""==t)return"";var n=t.indexOf("//"),i=t;n>-1&&(i=t.substring(n+2));e=i;var r=i.split("/");return r&&r.length>0&&(e=r[0]),(r=e.split(":"))&&r.length>0&&(e=r[0]),e}},{key:"os",get:function(){return o.os}},{key:"browser",get:function(){var t=o.browser;return t.name||(t.name=r()),t}}]),t}();e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return i(t,null,[{key:"get",value:function(t,e,n,i,r){var o;n=n||function(){},"undefined"==typeof XMLHttpRequest&&(window.XMLHttpRequest=function(){try{return new window.ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(t){}try{return new window.ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(t){}try{return new window.ActiveXObject("Msxml2.XMLHTTP")}catch(t){}throw new Error("This browser does not support XMLHttpRequest.")}),(o=new XMLHttpRequest).onreadystatechange=function(){4===o.readyState&&(200===o.status?e(o.responseText):n(o.responseText))};try{void 0===i&&(i=!0),o.open("GET",t,i),r&&(o.withCredentials=!0)}catch(t){return void n(t)}try{o.send()}catch(t){n(t)}}}]),t}();e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=n(27),o=n(30),a=(n(10),function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return i(t,null,[{key:"randomUUID",value:function(){for(var t=[],e="0123456789abcdef",n=0;n<36;n++)t[n]=e.substr(Math.floor(16*Math.random()),1);return t[14]="4",t[19]=e.substr(3&t[19]|8,1),t[8]=t[13]=t[18]=t[23]="-",t.join("")}},{key:"aliyunEncodeURI",value:function(t){var e=encodeURIComponent(t);return e.replace(/\+/g,"%20").replace(/\*/g,"%2A").replace(/%7E/g,"~").replace(/!/g,"%21").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/'/g,"%27")}},{key:"makeUTF8sort",value:function(e,n,i){if(!e)throw new Error("PrismPlayer Error: vid should not be null!");var r=[];for(var o in e)r.push(o);var a=r.sort(),s="",l=a.length;for(o=0;o<l;o++){var u=t.aliyunEncodeURI(a[o]),c=t.aliyunEncodeURI(e[a[o]]);""==s?s=u+n+c:s+=i+u+n+c}return s}},{key:"makeChangeSiga",value:function(e,n){if(!e)throw new Error("PrismPlayer Error: vid should not be null!");return o.stringify(r("GET&"+t.aliyunEncodeURI("/")+"&"+t.aliyunEncodeURI(t.makeUTF8sort(e,"=","&")),n+"&"))}}]),t}());e.default=a},function(t,e,n){t.exports=function(t){return t.enc.Utf8}(n(0))},function(t,e,n){t.exports=function(t){return t.enc.Hex}(n(0))},function(t,e,n){t.exports=n(13)},function(e,n,i){"use strict";var r,o=function(t){return t&&t.__esModule?t:{default:t}}(("function"==typeof Symbol&&Symbol.iterator,i(14))),a={Vod:o.default};void 0!==(r=function(){return a}.apply(n,[]))&&(e.exports=r),window.AliyunUpload=a,t.exports=AliyunUpload},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),o=n(15),a=n(3),s=i(n(16)),l=i(n(18)),u=i(n(24)),c=i(n(4)),h=i(n(1)),d=i(n(5)),f=i(n(26)),p=i(n(31)),g=i(n(32)),m=(n(2),function(){function t(e){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this.options=e,this.options.partSize=this.options.partSize||a.UPLOADDEFAULT.PARTSIZE,this.options.parallel=this.options.parallel||a.UPLOADDEFAULT.PARALLEL,this.options.region=this.options.region||"cn-shanghai",this.options.cname=this.options.cname||!1,this.options.localCheckpoint=this.options.localCheckpoint||!1,void 0===this.options.enableUploadProgress&&(this.options.enableUploadProgress=!0),this._ossCreditor=new Object,this._state=o.VODSTATE.INIT,this._uploadList=[],this._curIndex=-1,this._ossUpload=null,this._log=new c.default,this._retryCount=0,this._retryTotal=this.options.retryCount||3,this._retryDuration=this.options.retryDuration||2,this._state=o.VODSTATE.INIT,this._uploadWay="vod",this._onbeforeunload=!1,this._invalidUserId=!1,this._initEvent()}return r(t,[{key:"init",value:function(t,e,n,i){return this._retryCount=0,!(n&&!i||!n&&i||t&&!e||!t&&e||(this._ossCreditor.accessKeyId=t,this._ossCreditor.accessKeySecret=e,this._ossCreditor.securityToken=n,this._ossCreditor.expireTime=i,0))}},{key:"addFile",value:function(t,e,n,i,r,a){if(!t)return!1;if(0==t.size)try{this.options.onUploadFailed({file:t},"EmptyFile","文件大小为0不能上传")}catch(t){console.log(t)}for(var s=(this.options,0);s<this._uploadList.length;s++)if(this._uploadList[s].file==t)return!1;var u=new Object;if(u.file=t,u._endpoint=e,u._bucket=n,u._object=i,u.state=o.UPLOADSTATE.INIT,u.isImage=h.default.isImage(t.name),!u.isImage&&this.options.enableUploadProgress){var c=this;g.default.getMd5(t,(function(t){u.fileHash=t;var e=c._getCheckoutpoint(u);c.options.localCheckpoint||e||c._getCheckoutpointFromCloud(u,(function(t){if(t.UploadPoint){var e=JSON.parse(t.UploadPoint);1!=e.loaded&&(u.checkpoint=e.checkpoint,u.loaded=e.loaded,u.videoId=t.VideoId,c._saveCheckoutpoint(u,e.checkpoint))}}),(function(t){try{if((t=JSON.parse(t))&&"InvalidParameter"==t.Code&&t.Message.indexOf("UserId")>0){c._invalidUserId=!0;var e=t.Message+"正确账号ID(userId)请参考https://help.aliyun.com/knowledge_detail/37196.html";console.log(e)}}catch(t){console.log(t)}}))}))}r&&(u.videoInfo=r?JSON.parse(r).Vod:{},u.userData=l.default.encode(r)),u.ri=d.default.create(),this._uploadList.push(u),this._reportLog("20001",u,{ql:this._uploadList.length});try{this.options.addFileSuccess&&this.options.addFileSuccess(u)}catch(t){console.log(t)}return!0}},{key:"deleteFile",value:function(t){return!!this.cancelFile(t)&&(this._uploadList.splice(t,1),!0)}},{key:"cleanList",value:function(){this.stopUpload(),this._uploadList.length=0,this._curIndex=-1}},{key:"cancelFile",value:function(t){if(this.options,t<0||t>=this._uploadList.length)return!1;var e=this._uploadList[t];if(t==this._curIndex&&e.state==o.UPLOADSTATE.UPLOADING){e.state=o.UPLOADSTATE.CANCELED;var n=this._getCheckoutpoint(e);n&&n.checkpoint&&(n=n.checkpoint),n&&this._ossUpload.abort(e),this._removeCheckoutpoint(e),this.nextUpload()}else e.state!=o.UPLOADSTATE.SUCCESS&&(e.state=o.UPLOADSTATE.CANCELED);return this._reportLog("20008",e),!0}},{key:"resumeFile",value:function(t){if(this.options,t<0||t>=this._uploadList.length)return!1;var e=this._uploadList[t];return e.state==o.UPLOADSTATE.CANCELED&&(e.state=o.UPLOADSTATE.INIT,!0)}},{key:"listFiles",value:function(){return this._uploadList}},{key:"getCheckpoint",value:function(t){return this._getCheckoutpoint({file:t})}},{key:"startUpload",value:function(t){if(this._retryCount=0,this.options,this._state!=o.VODSTATE.START&&this._state!=o.VODSTATE.EXPIRE)if(this._initState(),this._curIndex=this._findUploadIndex(),-1!=this._curIndex){var e=this._uploadList[this._curIndex];this._ossUpload=null,this._upload(e),this._state=o.VODSTATE.START}else this._state=o.VODSTATE.END;else console.log("already started or expired")}},{key:"nextUpload",value:function(){var t=this.options;if(this._state==o.VODSTATE.START)if(this._curIndex=this._findUploadIndex(),-1!=this._curIndex){var e=this._uploadList[this._curIndex];this._ossUpload=null,this._upload(e)}else{this._state=o.VODSTATE.END;try{t.onUploadEnd&&t.onUploadEnd(e)}catch(t){console.log(t)}}}},{key:"clear",value:function(t){for(var e=this.options,n=0,i=0;i<this._uploadList.length;i++)e.uploadList[i].state==o.UPLOADSTATE.SUCCESS&&n++,this._uploadList[i].state==t&&(e.uploadList.splice(i,1),i--);e.onClear&&e.onClear(e.uploadList.length,n)}},{key:"stopUpload",value:function(){if((this._state==o.VODSTATE.START||this._state==o.VODSTATE.FAILURE||-1==this._curIndex)&&-1!=this._curIndex){var t=this._uploadList[this._curIndex];this._state=o.VODSTATE.STOP,t.state=o.UPLOADSTATE.STOPED,this._changeState(t,o.UPLOADSTATE.STOPED),this._ossUpload.cancel()}}},{key:"resumeUploadWithAuth",value:function(t){if(!t)return!1;var e=JSON.parse(l.default.decode(t));return!!(e.AccessKeyId&&e.AccessKeySecret&&e.SecurityToken&&e.Expiration)&&this.resumeUploadWithToken(e.AccessKeyId,e.AccessKeySecret,e.SecurityToken,e.Expiration)}},{key:"resumeUploadWithToken",value:function(t,e,n,i){if(this.options,!(t&&e&&n&&i))return!1;if(this._state!=o.VODSTATE.EXPIRE)return!1;if(-1==this._curIndex)return!1;var r="";return this._uploadList.length>this._curIndex&&(r=this._uploadList[this._curIndex]),r&&(this.init(t,e,n,i),this._state=o.VODSTATE.START,this._ossUpload=null,this._uploadCore(r,r.retry),r.retry=!1),!0}},{key:"resumeUploadWithSTSToken",value:function(t,e,n){if(-1==this._curIndex)return!1;if(this._state!=o.VODSTATE.EXPIRE)return!1;if(this._uploadList.length>this._curIndex){var i=this._uploadList[this._curIndex];i.object?this._refreshSTSTokenUpload(i,t,e,n):this.setSTSToken(i,t,e,n)}}},{key:"setSTSTokenDirectlyUpload",value:function(t,e,n,i,r){if(!(e&&n&&i&&r))return console.log("accessKeyId、ccessKeySecret、securityToken and expiration should not be empty."),!1;this._ut="oss";var o=t;this.init(e,n,i,r),o.endpoint=o._endpoint,o.bucket=o._bucket,o.object=o._object,this._ossUpload=null,this._uploadCore(o,t.retry),t.retry=!1}},{key:"setSTSToken",value:function(t,e,n,i){if(!e||!n||!i)return console.log("accessKeyId、ccessKeySecret、securityToken should not be empty."),!1;this._ut="vod",this._uploadWay="sts";var r=t.videoInfo,a={accessKeyId:e,securityToken:i,accessKeySecret:n,fileName:t.file.name,title:r.Title,requestId:t.ri,region:this.options.region};r.ImageType&&(a.imageType=r.ImageType),r.ImageExt&&(a.imageExt=r.ImageExt),r.FileSize&&(a.fileSize=r.FileSize),r.Description&&(a.description=r.Description),r.CateId&&(a.cateId=r.CateId),r.Tags&&(a.tags=r.Tags),r.TemplateGroupId&&(a.templateGroupId=r.TemplateGroupId),r.StorageLocation&&(a.storageLocation=r.StorageLocation),r.CoverURL&&(a.coverUrl=r.CoverURL),r.TransCodeMode&&(a.transCodeMode=r.TransCodeMode),r.UserData&&(a.userData=r.UserData);var s=this,l="getUploadAuth";t.videoId?(a.videoId=t.videoId,l="refreshUploadAuth"):t.isImage&&(l="getImageUploadAuth"),f.default[l](a,(function(e){t.videoId=e.VideoId?e.VideoId:t.videoId,s.setUploadAuthAndAddress(t,e.UploadAuth,e.UploadAddress),s._state=o.VODSTATE.START}),(function(e){s._error(t,{name:e.Code,code:e.Code,message:e.Message,requestId:e.RequestId})}))}},{key:"setUploadAuthAndAddress",value:function(t,e,n,i){if(!t||!e||!n)return!1;var r=JSON.parse(l.default.decode(e));if(!(r.AccessKeyId&&r.AccessKeySecret&&r.SecurityToken&&r.Expiration))return console.error("uploadauth is invalid"),!1;var o={},a=t;if(n){if(!(o=JSON.parse(l.default.decode(n))).Endpoint||!o.Bucket||!o.FileName)return console.error("uploadAddress is invalid"),!1}else o.Endpoint=a.endpoint,o.Bucket=a.bucket,o.FileName=a.object;this._ut="vod",this._uploadWay="vod",this.options.region=r.Region||this.options.region,this.init(r.AccessKeyId,r.AccessKeySecret,r.SecurityToken,r.Expiration),a.endpoint=a._endpoint?a._endpoint:o.Endpoint,a.bucket=a._bucket?a._bucket:o.Bucket,a.object=a._object?a._object:o.FileName,a.region=this.options.region,i&&(a.videoId=i),this._ossUpload=null,this._uploadCore(a,t.retry),t.retry=!1}},{key:"_refreshSTSTokenUpload",value:function(t,e,n,i){if(!e||!n||!i)return console.log("accessKeyId、ccessKeySecret、securityToken should not be empty."),!1;var r={accessKeyId:e,securityToken:i,accessKeySecret:n,videoId:t.object,requestId:t.ri,region:this.options.region},a=this,s="refreshUploadAuth";t.isImage&&(s="getImageUploadAuth"),f.default[s](r,(function(e){a.setUploadAuthAndAddress(t,e.UploadAuth,UploadAddress),a._state=o.VODSTATE.START}),(function(e){a._error(t,{name:e.Code,code:e.Code,message:e.Message,requestId:e.RequestId})}))}},{key:"_upload",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.options;if(t.retry=e,n.onUploadstarted&&!e)try{var i=this._getCheckoutpoint(t);i&&i.state!=o.UPLOADSTATE.UPLOADING&&(t.checkpoint=i,t.videoId=i.videoId),n.onUploadstarted(t)}catch(t){console.log(t)}}},{key:"_uploadCore",value:function(t){if(!this._ossCreditor.accessKeyId||!this._ossCreditor.accessKeySecret||!this._ossCreditor.securityToken)throw new Error("AccessKeyId、AccessKeySecret、securityToken should not be null");if(t.state=o.UPLOADSTATE.UPLOADING,!this._ossUpload){t.endpoint=t.endpoint||"http://oss-cn-hangzhou.aliyuncs.com";var e=this;this._ossUpload=new s.default({bucket:t.bucket,endpoint:t.endpoint,AccessKeyId:this._ossCreditor.accessKeyId,AccessKeySecret:this._ossCreditor.accessKeySecret,SecurityToken:this._ossCreditor.securityToken,timeout:this.options.timeout,cname:this.options.cname},{onerror:function(t,n){e._error.call(e,t,n)},oncomplete:function(t,n){e._complete.call(e,t,n)},onprogress:function(t,n,i){e._progress.call(e,t,n,i)}})}var n=h.default.getFileType(t.file.name),i=this._getCheckoutpoint(t),r="",a="";i&&i.checkpoint&&(a=i.state,r=i.videoId,i=i.checkpoint),i&&r==t.videoId&&a!=o.UPLOADSTATE.UPLOADING&&(i.file=t.file,t.checkpoint=i,i.uploadId);var l=this._adjustPartSize(t);this._reportLog("20002",t,{ft:n,fs:t.file.size,bu:t.bucket,ok:t.object,vid:t.videoId||"",fn:t.file.name,fw:null,fh:null,ps:l});var u={headers:{"x-oss-notification":t.userData?t.userData:""},partSize:l,parallel:this.options.parallel};this._ossUpload.upload(t,u)}},{key:"_findUploadIndex",value:function(){for(var t=-1,e=0;e<this._uploadList.length;e++)if(this._uploadList[e].state==o.UPLOADSTATE.INIT){t=e;break}return t}},{key:"_error",value:function(t,e){if("cancel"==e.name)try{this.options.onUploadCanceled(t,e)}catch(t){console.log(t)}else{if(e.message.indexOf("InvalidAccessKeyIdError")>0||"SignatureDoesNotMatchError"==e.name||"SecurityTokenExpired"==e.code||"InvalidSecurityToken.Expired"==e.code||"InvalidAccessKeyId"==e.code&&this._ossCreditor.securityToken){if(this.options.onUploadTokenExpired){this._state=o.VODSTATE.EXPIRE,t.state=o.UPLOADSTATE.FAIlURE;try{this.options.onUploadTokenExpired(t,e)}catch(t){console.log(t)}}return}if(("RequestTimeoutError"==e.name||"ConnectionTimeout"==e.name||"ConnectionTimeoutError"==e.name)&&this._retryTotal>this._retryCount){var n=this;return setTimeout((function(){n._uploadCore(t,!0)}),1e3*n._retryDuration),void this._retryCount++}"NoSuchUploadError"==e.name&&this._removeCheckoutpoint(t),this._handleError(t,e)}}},{key:"_handleError",value:function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=o.UPLOADSTATE.FAIlURE;if(t.state!=o.UPLOADSTATE.CANCELED&&(t.state=o.UPLOADSTATE.FAIlURE,this._state=o.VODSTATE.FAILURE,this.options.onUploadFailed&&e&&e.code&&e.message))try{this.options.onUploadFailed(t,e.code,e.message)}catch(t){console.log(t)}if(n&&this._changeState(t,i),this._reportLog("20006",t,{code:e.name,message:e.message,requestId:e.requestId,fs:t.file.size,bu:t.bucket,ok:t.object,fn:t.file.name}),this._reportLog("20004",t,{requestId:e.requestId,fs:t.file.size,bu:t.bucket,ok:t.object,fn:t.file.name}),t.ri=d.default.create(),-1!=this._findUploadIndex()){var r=this;this._state=o.VODSTATE.START,setTimeout((function(){r.nextUpload()}),100)}}},{key:"_complete",value:function(t,e){if(t.state=o.UPLOADSTATE.SUCCESS,this.options.onUploadSucceed)try{this.options.onUploadSucceed(t)}catch(t){console.log(t)}var n=0;e&&e.res&&e.res.headers&&(n=e.res.headers["x-oss-request-id"]),this._removeCheckoutpoint(t);var i=this;setTimeout((function(){i.nextUpload()}),100),this._retryCount=0,this._reportLog("20003",t,{requestId:n})}},{key:"_progress",value:function(t,e,n){if(this.options.onUploadProgress)try{t.loaded=e.loaded,this.options.onUploadProgress(t,e.total,e.loaded)}catch(t){console.log(t)}var i=e.checkpoint,r=0;i&&(t.checkpoint=i,this._saveCheckoutpoint(t,i,o.UPLOADSTATE.UPLOADING),r=i.uploadId),this._retryCount=0;var a=this._getPortNumber(i),s=0;if(n&&n.headers&&(s=n.headers["x-oss-request-id"]),0!=e.loaded&&this._reportLog("20007",t,{pn:a,requestId:s}),1!=e.loaded&&this._reportLog("20005",t,{UploadId:r,pn:a+1,pr:t.retry?1:0,fs:t.file.size,bu:t.bucket,ok:t.object,fn:t.file.name}),!this._invalidUserId&&!t.isImage&&"vod"==this._ut&&this.options.enableUploadProgress){var l={file:t.file,checkpoint:e,userId:this.options.userId,videoId:t.videoId,region:this.options.region,fileHash:t.fileHash};try{var u=this;p.default.upload(l,(function(){}),(function(t){if((t=JSON.parse(t))&&"InvalidParameter"==t.Code&&t.Message.indexOf("UserId")>0){u._invalidUserId=!0;var e=t.Message+"正确账号ID(userId)请参考https://help.aliyun.com/knowledge_detail/37196.html";console.log(e)}}))}catch(t){console.log(t)}}}},{key:"_getPortNumber",value:function(t){if(t){var e=t.doneParts;if(e&&e.length>0)return e[e.length-1].number}return 0}},{key:"_removeCheckoutpoint",value:function(t){var e=this._getCheckoutpointKey(t);u.default.remove(e)}},{key:"_getCheckoutpoint",value:function(t){var e=this._getCheckoutpointKey(t),n=u.default.get(e);if(n)try{return JSON.parse(n)}catch(t){}return""}},{key:"_saveCheckoutpoint",value:function(t,e,n){if(e){var i=this._getCheckoutpointKey(t),r=t.file,o={fileName:r.name,lastModified:r.lastModified,size:r.size,object:t.object,videoId:t.videoId,bucket:t.bucket,endpoint:t.endpoint,checkpoint:e,loaded:t.loaded,state:n};u.default.set(i,JSON.stringify(o))}}},{key:"_changeState",value:function(t,e){var n=this._getCheckoutpoint(t);n&&((this._onbeforeunload=!0)&&(e=o.UPLOADSTATE.STOPED),this._saveCheckoutpoint(t,n.checkpoint,e))}},{key:"_getCheckoutpointKey",value:function(t){return"upload_"+t.file.lastModified+"_"+t.file.name+"_"+t.file.size}},{key:"_getCheckoutpointFromCloud",value:function(t,e,n){var i={userId:this.options.userId,uploadInfoList:[{FileName:t.file.name,FileSize:t.file.size,FileCreateTime:t.file.lastModified,FileHash:t.fileHash}],region:this.options.region};p.default.get(i,(function(t){e(t)}),n)}},{key:"_reportLog",value:function(t,e,n){n||(n={}),n.ri=e.ri,this._ut&&(n.ut=this._ut),this._log.log(t,n)}},{key:"_initEvent",value:function(){var t=this;window&&(window.onbeforeunload=function(e){if(t._onbeforeunload=!0,-1!=t._curIndex&&t._uploadList.length>t._curIndex){var n=t._uploadList[t._curIndex];t._changeState(n,o.UPLOADSTATE.STOPED)}})}},{key:"_initState",value:function(){for(var t=0;t<this._uploadList.length;t++){var e=this._uploadList[t];e.state!=o.UPLOADSTATE.FAIlURE&&e.state!=o.UPLOADSTATE.STOPED||(e.state=o.UPLOADSTATE.INIT)}this._state=o.VODSTATE.INIT}},{key:"_adjustPartSize",value:function(t){return t.file.size/this.options.partSize>1e4?t.file.size/9999:this.options.partSize}}]),t}());e.default=m},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UPLOADSTATE={INIT:"Ready",UPLOADING:"Uploading",SUCCESS:"Success",FAIlURE:"Failure",CANCELED:"Canceled",STOPED:"Stoped"},e.VODSTATE={INIT:"Init",START:"Start",STOP:"Stop",FAILURE:"Failure",EXPIRE:"Expire",END:"End"}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),o=n(3),a=(i(n(17)),n(1)),s=(i(a),function(){function t(e,n){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e){this._config=e,this.create(this._config),this._uploadInfo=null,this._callback={};var i=function(){};this._callback.onerror=n.onerror||i,this._callback.oncomplete=n.oncomplete||i,this._callback.onprogress=n.onprogress||i}}return r(t,[{key:"create",value:function(t){if(t.endpoint=t.endpoint||this._config.endpoint,t.bucket=t.bucket||this._config.bucket,!(t.AccessKeyId&&t.AccessKeySecret&&t.endpoint&&t.SecurityToken))throw new Error("AccessKeyId、AccessKeySecret、endpoint should not be null");var e={accessKeyId:t.AccessKeyId,accessKeySecret:t.AccessKeySecret,stsToken:t.SecurityToken,endpoint:t.endpoint||this._config.endpoint,bucket:t.bucket||this._config.bucket,secure:!0,cname:t.cname};t.timeout&&(e.timeout=t.timeout),this.oss=new OSS.Wrapper(e)}},{key:"abort",value:function(t){if(t.checkpoint){var e=t.checkpoint.uploadId;this.oss.abortMultipartUpload(t.object,e)}}},{key:"getVersion",value:function(){}},{key:"cancel",value:function(){this.oss.cancel&&this.oss.cancel()}},{key:"upload",value:function(t,e){this._uploadInfo=t;var n=this,i={parallel:e.parallel||this._config.parallel||o.UPLOADDEFAULT.PARALLEL,partSize:e.partSize||this._config.partSize||o.UPLOADDEFAULT.PARTSIZE,progress:function(t,e,i){return function(r){n._progress(t,e,i),r()}}};e.headers&&(i.headers=e.headers),t.checkpoint&&(i.checkpoint=t.checkpoint),t.bucket||(this.oss.options.bucket=t.bucket),t.endpoint||(this.oss.options.endpoint=t.endpoint),this.oss.multipartUpload(t.object,t.file,i).then((function(t,e){n._complete(t)})).catch((function(t){n.oss.cancel&&(n.oss&&n.oss.isCancel()?console.log("oss is cancel as error"):n.oss.cancel()),n._error(t)}))}},{key:"header",value:function(t,e,n){this.oss.get(t.object).then((function(t){e(t)})).catch((function(t){n(t)}))}},{key:"_progress",value:function(t,e,n){this._callback.onprogress(this._uploadInfo,{loaded:t,total:this._uploadInfo.file.size,checkpoint:e},n)}},{key:"_error",value:function(t){this._callback.onerror(this._uploadInfo,t)}},{key:"_complete",value:function(t){this._callback.oncomplete(this._uploadInfo,t)}}]),t}());e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return i(t,null,[{key:"format",value:function(t){if(arguments.length<2)return null;for(var e=arguments[1],n=1;n<arguments.length;n++){var i=new RegExp("\\{"+(n-1)+"\\}","gm");e=e.replace(i,arguments[n+1])}return{code:t,message:e}}},{key:"CODE",get:function(){return{SUCCESS:"Successful",EmptyValue:"InvalidParameter.EmptyValue",STSInvalid:"InvalidParameter.TokenInvalid",ReadFileError:"ReadFileError",FILEDUPLICATION:"FileDuplication",UploadALEADRYSTARTED:"UploadAlearyStarted"}}},{key:"MESSAGE",get:function(){return{SUCCESS:"Successful",EmptyValue:"参数 {0} 不能为空。",STSInvalid:"STS参数非法 accessKeyId、accessKeySecret、secretToken、expireTime都不能为空。",ReadFileError:"读取文件{0}{1}失败.",FILEDUPLICATION:"文件重复添加 {0}",UploadALEADRYSTARTED:"重复开始."}}}]),t}();e.default=r},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),i=function(){function e(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e)}return n(e,null,[{key:"encode",value:function(e){return new t(e).toString("base64")}},{key:"decode",value:function(e){return new t(e,"base64").toString()}}]),e}();e.default=i}).call(e,n(19).Buffer)},function(t,e,n){"use strict";(function(t){function i(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function r(t,e){if(i()<e)throw new RangeError("Invalid typed array length");return o.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=o.prototype:(null===t&&(t=new o(e)),t.length=e),t}function o(t,e,n){if(!(o.TYPED_ARRAY_SUPPORT||this instanceof o))return new o(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return l(this,t)}return a(this,t,e,n)}function a(t,e,n,i){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,i){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(i||0))throw new RangeError("'length' is out of bounds");return e=void 0===n&&void 0===i?new Uint8Array(e):void 0===i?new Uint8Array(e,n):new Uint8Array(e,n,i),o.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=o.prototype):t=u(t,e),t}(t,e,n,i):"string"==typeof e?function(t,e,n){if("string"==typeof n&&""!==n||(n="utf8"),!o.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var i=0|h(e,n);t=r(t,i);var a=t.write(e,n);return a!==i&&(t=t.slice(0,a)),t}(t,e,n):function(t,e){if(o.isBuffer(e)){var n=0|c(e.length);return 0===(t=r(t,n)).length||e.copy(t,0,0,n),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||function(t){return t!=t}(e.length)?r(t,0):u(t,e);if("Buffer"===e.type&&U(e.data))return u(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function s(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function l(t,e){if(s(e),t=r(t,e<0?0:0|c(e)),!o.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function u(t,e){var n=e.length<0?0:0|c(e.length);t=r(t,n);for(var i=0;i<n;i+=1)t[i]=255&e[i];return t}function c(t){if(t>=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|t}function h(t,e){if(o.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return D(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return R(t).length;default:if(i)return D(t).length;e=(""+e).toLowerCase(),i=!0}}function d(t,e,n){var i=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return A(this,e,n);case"utf8":case"utf-8":return P(this,e,n);case"ascii":return k(this,e,n);case"latin1":case"binary":return C(this,e,n);case"base64":return S(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,e,n);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}function f(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function p(t,e,n,i,r){if(0===t.length)return-1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(r)return-1;n=t.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof e&&(e=o.from(e,i)),o.isBuffer(e))return 0===e.length?-1:g(t,e,n,i,r);if("number"==typeof e)return e&=255,o.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):g(t,[e],n,i,r);throw new TypeError("val must be string, number or Buffer")}function g(t,e,n,i,r){function o(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}var a,s=1,l=t.length,u=e.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return-1;s=2,l/=2,u/=2,n/=2}if(r){var c=-1;for(a=n;a<l;a++)if(o(t,a)===o(e,-1===c?0:a-c)){if(-1===c&&(c=a),a-c+1===u)return c*s}else-1!==c&&(a-=a-c),c=-1}else for(n+u>l&&(n=l-u),a=n;a>=0;a--){for(var h=!0,d=0;d<u;d++)if(o(t,a+d)!==o(e,d)){h=!1;break}if(h)return a}return-1}function m(t,e,n,i){n=Number(n)||0;var r=t.length-n;i?(i=Number(i))>r&&(i=r):i=r;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");i>o/2&&(i=o/2);for(var a=0;a<i;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[n+a]=s}return a}function v(t,e,n,i){return F(D(e,t.length-n),t,n,i)}function y(t,e,n,i){return F(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,i)}function w(t,e,n,i){return y(t,e,n,i)}function b(t,e,n,i){return F(R(e),t,n,i)}function x(t,e,n,i){return F(function(t,e){for(var n,i,r,o=[],a=0;a<t.length&&!((e-=2)<0);++a)n=t.charCodeAt(a),i=n>>8,r=n%256,o.push(r),o.push(i);return o}(e,t.length-n),t,n,i)}function S(t,e,n){return 0===e&&n===t.length?z.fromByteArray(t):z.fromByteArray(t.slice(e,n))}function P(t,e,n){n=Math.min(t.length,n);for(var i=[],r=e;r<n;){var o,a,s,l,u=t[r],c=null,h=u>239?4:u>223?3:u>191?2:1;if(r+h<=n)switch(h){case 1:u<128&&(c=u);break;case 2:128==(192&(o=t[r+1]))&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=t[r+1],a=t[r+2],128==(192&o)&&128==(192&a)&&(l=(15&u)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=t[r+1],a=t[r+2],s=t[r+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,h=1):c>65535&&(c-=65536,i.push(c>>>10&1023|55296),c=56320|1023&c),i.push(c),r+=h}return function(t){var e=t.length;if(e<=H)return String.fromCharCode.apply(String,t);for(var n="",i=0;i<e;)n+=String.fromCharCode.apply(String,t.slice(i,i+=H));return n}(i)}function k(t,e,n){var i="";n=Math.min(t.length,n);for(var r=e;r<n;++r)i+=String.fromCharCode(127&t[r]);return i}function C(t,e,n){var i="";n=Math.min(t.length,n);for(var r=e;r<n;++r)i+=String.fromCharCode(t[r]);return i}function A(t,e,n){var i=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>i)&&(n=i);for(var r="",o=e;o<n;++o)r+=O(t[o]);return r}function M(t,e,n){for(var i=t.slice(e,n),r="",o=0;o<i.length;o+=2)r+=String.fromCharCode(i[o]+256*i[o+1]);return r}function E(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function L(t,e,n,i,r,a){if(!o.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||e<a)throw new RangeError('"value" argument is out of bounds');if(n+i>t.length)throw new RangeError("Index out of range")}function T(t,e,n,i){e<0&&(e=65535+e+1);for(var r=0,o=Math.min(t.length-n,2);r<o;++r)t[n+r]=(e&255<<8*(i?r:1-r))>>>8*(i?r:1-r)}function N(t,e,n,i){e<0&&(e=4294967295+e+1);for(var r=0,o=Math.min(t.length-n,4);r<o;++r)t[n+r]=e>>>8*(i?r:3-r)&255}function j(t,e,n,i,r,o){if(n+i>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function I(t,e,n,i,r){return r||j(t,0,n,4),G.write(t,e,n,i,23,4),n+4}function B(t,e,n,i,r){return r||j(t,0,n,8),G.write(t,e,n,i,52,8),n+8}function O(t){return t<16?"0"+t.toString(16):t.toString(16)}function D(t,e){e=e||1/0;for(var n,i=t.length,r=null,o=[],a=0;a<i;++a){if((n=t.charCodeAt(a))>55295&&n<57344){if(!r){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===i){(e-=3)>-1&&o.push(239,191,189);continue}r=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(e-=3)>-1&&o.push(239,191,189);if(r=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function R(t){return z.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(_,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function F(t,e,n,i){for(var r=0;r<i&&!(r+n>=e.length||r>=t.length);++r)e[r+n]=t[r];return r}var z=n(21),G=n(22),U=n(23);e.Buffer=o,e.SlowBuffer=function(t){return+t!=t&&(t=0),o.alloc(+t)},e.INSPECT_MAX_BYTES=50,o.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=i(),o.poolSize=8192,o._augment=function(t){return t.__proto__=o.prototype,t},o.from=function(t,e,n){return a(null,t,e,n)},o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0})),o.alloc=function(t,e,n){return function(t,e,n,i){return s(e),e<=0?r(t,e):void 0!==n?"string"==typeof i?r(t,e).fill(n,i):r(t,e).fill(n):r(t,e)}(null,t,e,n)},o.allocUnsafe=function(t){return l(null,t)},o.allocUnsafeSlow=function(t){return l(null,t)},o.isBuffer=function(t){return!(null==t||!t._isBuffer)},o.compare=function(t,e){if(!o.isBuffer(t)||!o.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,i=e.length,r=0,a=Math.min(n,i);r<a;++r)if(t[r]!==e[r]){n=t[r],i=e[r];break}return n<i?-1:i<n?1:0},o.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(t,e){if(!U(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return o.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var i=o.allocUnsafe(e),r=0;for(n=0;n<t.length;++n){var a=t[n];if(!o.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(i,r),r+=a.length}return i},o.byteLength=h,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)f(this,e,e+1);return this},o.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)f(this,e,e+3),f(this,e+1,e+2);return this},o.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)f(this,e,e+7),f(this,e+1,e+6),f(this,e+2,e+5),f(this,e+3,e+4);return this},o.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?P(this,0,t):d.apply(this,arguments)},o.prototype.equals=function(t){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===o.compare(this,t)},o.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},o.prototype.compare=function(t,e,n,i,r){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),e<0||n>t.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&e>=n)return 0;if(i>=r)return-1;if(e>=n)return 1;if(this===t)return 0;for(var a=(r>>>=0)-(i>>>=0),s=(n>>>=0)-(e>>>=0),l=Math.min(a,s),u=this.slice(i,r),c=t.slice(e,n),h=0;h<l;++h)if(u[h]!==c[h]){a=u[h],s=c[h];break}return a<s?-1:s<a?1:0},o.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},o.prototype.indexOf=function(t,e,n){return p(this,t,e,n,!0)},o.prototype.lastIndexOf=function(t,e,n){return p(this,t,e,n,!1)},o.prototype.write=function(t,e,n,i){if(void 0===e)i="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)i=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}var r=this.length-e;if((void 0===n||n>r)&&(n=r),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return m(this,t,e,n);case"utf8":case"utf-8":return v(this,t,e,n);case"ascii":return y(this,t,e,n);case"latin1":case"binary":return w(this,t,e,n);case"base64":return b(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var H=4096;o.prototype.slice=function(t,e){var n,i=this.length;if((t=~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),(e=void 0===e?i:~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),e<t&&(e=t),o.TYPED_ARRAY_SUPPORT)(n=this.subarray(t,e)).__proto__=o.prototype;else{var r=e-t;n=new o(r,void 0);for(var a=0;a<r;++a)n[a]=this[a+t]}return n},o.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||E(t,e,this.length);for(var i=this[t],r=1,o=0;++o<e&&(r*=256);)i+=this[t+o]*r;return i},o.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||E(t,e,this.length);for(var i=this[t+--e],r=1;e>0&&(r*=256);)i+=this[t+--e]*r;return i},o.prototype.readUInt8=function(t,e){return e||E(t,1,this.length),this[t]},o.prototype.readUInt16LE=function(t,e){return e||E(t,2,this.length),this[t]|this[t+1]<<8},o.prototype.readUInt16BE=function(t,e){return e||E(t,2,this.length),this[t]<<8|this[t+1]},o.prototype.readUInt32LE=function(t,e){return e||E(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},o.prototype.readUInt32BE=function(t,e){return e||E(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},o.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||E(t,e,this.length);for(var i=this[t],r=1,o=0;++o<e&&(r*=256);)i+=this[t+o]*r;return i>=(r*=128)&&(i-=Math.pow(2,8*e)),i},o.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||E(t,e,this.length);for(var i=e,r=1,o=this[t+--i];i>0&&(r*=256);)o+=this[t+--i]*r;return o>=(r*=128)&&(o-=Math.pow(2,8*e)),o},o.prototype.readInt8=function(t,e){return e||E(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},o.prototype.readInt16LE=function(t,e){e||E(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt16BE=function(t,e){e||E(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt32LE=function(t,e){return e||E(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},o.prototype.readInt32BE=function(t,e){return e||E(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},o.prototype.readFloatLE=function(t,e){return e||E(t,4,this.length),G.read(this,t,!0,23,4)},o.prototype.readFloatBE=function(t,e){return e||E(t,4,this.length),G.read(this,t,!1,23,4)},o.prototype.readDoubleLE=function(t,e){return e||E(t,8,this.length),G.read(this,t,!0,52,8)},o.prototype.readDoubleBE=function(t,e){return e||E(t,8,this.length),G.read(this,t,!1,52,8)},o.prototype.writeUIntLE=function(t,e,n,i){t=+t,e|=0,n|=0,i||L(this,t,e,n,Math.pow(2,8*n)-1,0);var r=1,o=0;for(this[e]=255&t;++o<n&&(r*=256);)this[e+o]=t/r&255;return e+n},o.prototype.writeUIntBE=function(t,e,n,i){t=+t,e|=0,n|=0,i||L(this,t,e,n,Math.pow(2,8*n)-1,0);var r=n-1,o=1;for(this[e+r]=255&t;--r>=0&&(o*=256);)this[e+r]=t/o&255;return e+n},o.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,1,255,0),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},o.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):T(this,t,e,!0),e+2},o.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):T(this,t,e,!1),e+2},o.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):N(this,t,e,!0),e+4},o.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):N(this,t,e,!1),e+4},o.prototype.writeIntLE=function(t,e,n,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);L(this,t,e,n,r-1,-r)}var o=0,a=1,s=0;for(this[e]=255&t;++o<n&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},o.prototype.writeIntBE=function(t,e,n,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);L(this,t,e,n,r-1,-r)}var o=n-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},o.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,1,127,-128),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},o.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):T(this,t,e,!0),e+2},o.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):T(this,t,e,!1),e+2},o.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):N(this,t,e,!0),e+4},o.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):N(this,t,e,!1),e+4},o.prototype.writeFloatLE=function(t,e,n){return I(this,t,e,!0,n)},o.prototype.writeFloatBE=function(t,e,n){return I(this,t,e,!1,n)},o.prototype.writeDoubleLE=function(t,e,n){return B(this,t,e,!0,n)},o.prototype.writeDoubleBE=function(t,e,n){return B(this,t,e,!1,n)},o.prototype.copy=function(t,e,n,i){if(n||(n=0),i||0===i||(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i<n&&(i=n),i===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e<i-n&&(i=t.length-e+n);var r,a=i-n;if(this===t&&n<e&&e<i)for(r=a-1;r>=0;--r)t[r+e]=this[r+n];else if(a<1e3||!o.TYPED_ARRAY_SUPPORT)for(r=0;r<a;++r)t[r+e]=this[r+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+a),e);return a},o.prototype.fill=function(t,e,n,i){if("string"==typeof t){if("string"==typeof e?(i=e,e=0,n=this.length):"string"==typeof n&&(i=n,n=this.length),1===t.length){var r=t.charCodeAt(0);r<256&&(t=r)}if(void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!o.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var a;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(a=e;a<n;++a)this[a]=t;else{var s=o.isBuffer(t)?t:D(new o(t,i).toString()),l=s.length;for(a=0;a<n-e;++a)this[a+e]=s[a%l]}return this};var _=/[^+\/0-9A-Za-z-_]/g}).call(e,n(20))},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";function i(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===t[e-2]?2:"="===t[e-1]?1:0}function r(t){return a[t>>18&63]+a[t>>12&63]+a[t>>6&63]+a[63&t]}function o(t,e,n){for(var i,o=[],a=e;a<n;a+=3)i=(t[a]<<16)+(t[a+1]<<8)+t[a+2],o.push(r(i));return o.join("")}e.byteLength=function(t){return 3*t.length/4-i(t)},e.toByteArray=function(t){var e,n,r,o,a,u=t.length;o=i(t),a=new l(3*u/4-o),n=o>0?u-4:u;var c=0;for(e=0;e<n;e+=4)r=s[t.charCodeAt(e)]<<18|s[t.charCodeAt(e+1)]<<12|s[t.charCodeAt(e+2)]<<6|s[t.charCodeAt(e+3)],a[c++]=r>>16&255,a[c++]=r>>8&255,a[c++]=255&r;return 2===o?(r=s[t.charCodeAt(e)]<<2|s[t.charCodeAt(e+1)]>>4,a[c++]=255&r):1===o&&(r=s[t.charCodeAt(e)]<<10|s[t.charCodeAt(e+1)]<<4|s[t.charCodeAt(e+2)]>>2,a[c++]=r>>8&255,a[c++]=255&r),a},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,r="",s=[],l=0,u=n-i;l<u;l+=16383)s.push(o(t,l,l+16383>u?u:l+16383));return 1===i?(e=t[n-1],r+=a[e>>2],r+=a[e<<4&63],r+="=="):2===i&&(e=(t[n-2]<<8)+t[n-1],r+=a[e>>10],r+=a[e>>4&63],r+=a[e<<2&63],r+="="),s.push(r),s.join("")};for(var a=[],s=[],l="undefined"!=typeof Uint8Array?Uint8Array:Array,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,h=u.length;c<h;++c)a[c]=u[c],s[u.charCodeAt(c)]=c;s["-".charCodeAt(0)]=62,s["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,n,i,r){var o,a,s=8*r-i-1,l=(1<<s)-1,u=l>>1,c=-7,h=n?r-1:0,d=n?-1:1,f=t[e+h];for(h+=d,o=f&(1<<-c)-1,f>>=-c,c+=s;c>0;o=256*o+t[e+h],h+=d,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=i;c>0;a=256*a+t[e+h],h+=d,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,i),o-=u}return(f?-1:1)*a*Math.pow(2,o-i)},e.write=function(t,e,n,i,r,o){var a,s,l,u=8*o-r-1,c=(1<<u)-1,h=c>>1,d=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,f=i?0:o-1,p=i?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),(e+=a+h>=1?d/l:d*Math.pow(2,1-h))*l>=2&&(a++,l/=2),a+h>=c?(s=0,a=c):a+h>=1?(s=(e*l-1)*Math.pow(2,r),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,r),a=0));r>=8;t[n+f]=255&s,f+=p,s/=256,r-=8);for(a=a<<r|s,u+=r;u>0;t[n+f]=255&a,f+=p,a/=256,u-=8);t[n+f-p]|=128*g}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return i(t,null,[{key:"set",value:function(t,e){try{window.localStorage&&localStorage.setItem(t,e)}catch(n){window[t+"_localStorage"]=e}}},{key:"get",value:function(t){try{if(window.localStorage)return localStorage.getItem(t)}catch(e){return window[t+"_localStorage"]}return""}},{key:"remove",value:function(t){try{window.localStorage&&localStorage.removeItem(t)}catch(e){delete window[t+"_localStorage"]}}}]),t}();e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return i(t,null,[{key:"get",value:function(t){for(var e=t+"",n=document.cookie.split(";"),i=0;i<n.length;i++){var r=n[i].trim();if(0==r.indexOf(e))return unescape(r.substring(e.length+1,r.length))}return""}},{key:"set",value:function(t,e,n){var i=new Date;i.setTime(i.getTime()+24*n*60*60*1e3);var r="expires="+i.toGMTString();document.cookie=t+"="+escape(e)+"; "+r}}]),t}();e.default=r},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),o=i(n(8)),a=i(n(9)),s=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return r(t,null,[{key:"refreshUploadAuth",value:function(t,e,n){var i=(a.default.randomUUID(),a.default.randomUUID()),r={AccessKeyId:t.accessKeyId,SecurityToken:t.securityToken,Action:"RefreshUploadVideo",VideoId:t.videoId,Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:i,RequestId:t.requestId},s=a.default.makeUTF8sort(r,"=","&")+"&Signature="+a.default.aliyunEncodeURI(a.default.makeChangeSiga(r,t.accessKeySecret)),l="https://vod."+t.region+".aliyuncs.com/?"+s;o.default.get(l,(function(t){t=JSON.parse(t);e&&e(t)}),(function(t){if(n){var e=JSON.parse(t);n(e)}}))}},{key:"getUploadAuth",value:function(t,e,n){var i=(a.default.randomUUID(),a.default.randomUUID()),r={AccessKeyId:t.accessKeyId,SecurityToken:t.securityToken,Action:"CreateUploadVideo",Title:t.title,FileName:t.fileName,Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:i,RequestId:t.requestId};t.fileSize&&(r.FileSize=t.fileSize),t.description&&(r.Description=t.description),t.cateId&&(r.CateId=t.cateId),t.tags&&(r.Tags=t.tags),t.templateGroupId&&(r.TemplateGroupId=t.templateGroupId),t.storageLocation&&(r.StorageLocation=t.storageLocation),t.coverUrl&&(r.CoverURL=t.coverUrl),t.transCodeMode&&(r.TransCodeMode=t.transCodeMode),t.userData&&(r.UserData=JSON.stringify(t.userData));var s=a.default.makeUTF8sort(r,"=","&")+"&Signature="+a.default.aliyunEncodeURI(a.default.makeChangeSiga(r,t.accessKeySecret)),l="https://vod."+t.region+".aliyuncs.com/?"+s;o.default.get(l,(function(t){try{t=JSON.parse(t)}catch(t){if(n)return void n({Code:"GetUploadAuthFailed",Message:"获取uploadauth失败"})}e&&e(t)}),(function(t){if(n){var e={Code:"GetUploadAuthFailed",Message:"获取uploadauth失败"};try{e=JSON.parse(t)}catch(t){}n(e)}}))}},{key:"getImageUploadAuth",value:function(t,e,n){var i=(a.default.randomUUID(),a.default.randomUUID()),r={AccessKeyId:t.accessKeyId,SecurityToken:t.securityToken,Action:"CreateUploadImage",ImageType:t.imageType?t.imageType:"default",Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:i,RequestId:t.requestId};t.title&&(r.Title=t.title),t.imageExt&&(r.ImageExt=t.imageExt),t.tags&&(r.Tags=t.tags),t.storageLocation&&(r.StorageLocation=t.storageLocation);var s=a.default.makeUTF8sort(r,"=","&")+"&Signature="+a.default.aliyunEncodeURI(a.default.makeChangeSiga(r,t.accessKeySecret)),l="https://vod."+t.region+".aliyuncs.com/?"+s;o.default.get(l,(function(t){t=JSON.parse(t),e&&e(t)}),(function(t){if(n){var e=JSON.parse(t);n(e)}}))}}]),t}();e.default=s},function(t,e,n){t.exports=function(t){return t.HmacSHA1}(n(0),n(28),n(29))},function(t,e,n){t.exports=function(t){return function(){var e=t,n=e.lib,i=n.WordArray,r=n.Hasher,o=e.algo,a=[],s=o.SHA1=r.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var n=this._hash.words,i=n[0],r=n[1],o=n[2],s=n[3],l=n[4],u=0;u<80;u++){if(u<16)a[u]=0|t[e+u];else{var c=a[u-3]^a[u-8]^a[u-14]^a[u-16];a[u]=c<<1|c>>>31}var h=(i<<5|i>>>27)+l+a[u];h+=u<20?1518500249+(r&o|~r&s):u<40?1859775393+(r^o^s):u<60?(r&o|r&s|o&s)-1894007588:(r^o^s)-899497514,l=s,s=o,o=r<<30|r>>>2,r=i,i=h}n[0]=n[0]+i|0,n[1]=n[1]+r|0,n[2]=n[2]+o|0,n[3]=n[3]+s|0,n[4]=n[4]+l|0},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;return e[i>>>5]|=128<<24-i%32,e[14+(i+64>>>9<<4)]=Math.floor(n/4294967296),e[15+(i+64>>>9<<4)]=n,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=r.clone.call(this);return t._hash=this._hash.clone(),t}});e.SHA1=r._createHelper(s),e.HmacSHA1=r._createHmacHelper(s)}(),t.SHA1}(n(0))},function(t,e,n){t.exports=function(t){!function(){var e=t,n=e.lib.Base,i=e.enc.Utf8;e.algo.HMAC=n.extend({init:function(t,e){t=this._hasher=new t.init,"string"==typeof e&&(e=i.parse(e));var n=t.blockSize,r=4*n;e.sigBytes>r&&(e=t.finalize(e)),e.clamp();for(var o=this._oKey=e.clone(),a=this._iKey=e.clone(),s=o.words,l=a.words,u=0;u<n;u++)s[u]^=1549556828,l[u]^=909522486;o.sigBytes=a.sigBytes=r,this.reset()},reset:function(){var t=this._hasher;t.reset(),t.update(this._iKey)},update:function(t){return this._hasher.update(t),this},finalize:function(t){var e=this._hasher,n=e.finalize(t);return e.reset(),e.finalize(this._oKey.clone().concat(n))}})}()}(n(0))},function(t,e,n){t.exports=function(t){return function(){function e(t,e,n){for(var r=[],o=0,a=0;a<e;a++)if(a%4){var s=n[t.charCodeAt(a-1)]<<a%4*2,l=n[t.charCodeAt(a)]>>>6-a%4*2;r[o>>>2]|=(s|l)<<24-o%4*8,o++}return i.create(r,o)}var n=t,i=n.lib.WordArray;n.enc.Base64={stringify:function(t){var e=t.words,n=t.sigBytes,i=this._map;t.clamp();for(var r=[],o=0;o<n;o+=3)for(var a=(e[o>>>2]>>>24-o%4*8&255)<<16|(e[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|e[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s<n;s++)r.push(i.charAt(a>>>6*(3-s)&63));var l=i.charAt(64);if(l)for(;r.length%4;)r.push(l);return r.join("")},parse:function(t){var n=t.length,i=this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var o=0;o<i.length;o++)r[i.charCodeAt(o)]=o}var a=i.charAt(64);if(a){var s=t.indexOf(a);-1!==s&&(n=s)}return e(t,n,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),t.enc.Base64}(n(0))},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),o=i(n(8)),a=i(n(7)),s=i(n(4)),l=i(n(6)),u=i(n(1)),c=i(n(9)),h=n(2),d=n(11),f=n(10),p=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return r(t,null,[{key:"getAuthInfo",value:function(t,e,n){var i=t+"|f#Ylm&^1TppeRhLg|"+n;return e&&(i=t+"|"+e+"|f#Ylm&^1TppeRhLg|"+n),h(f.parse(i)).toString(d)}},{key:"upload",value:function(e,n,i){var r=u.default.ISODateString(new Date),h=Math.floor((new Date).valueOf()/1e3),d=s.default.getClientId();d=s.default.setClientId(d);var f=t.getAuthInfo(e.userId,d,h),p=c.default.randomUUID(),g={Source:"WebSDK",BusinessType:"UploadVideo",Action:"ReportUploadProgress",TerminalType:"H5",DeviceModel:a.default.browser.name+(a.default.browser.version||""),AppVersion:l.default.version,AuthTimestamp:h,Timestamp:r,AuthInfo:f,FileName:e.file.name,FileSize:e.file.size,FileCreateTime:e.file.lastModified,FileHash:e.fileHash,UploadId:e.checkpoint.checkpoint.uploadId,PartSize:e.checkpoint.checkpoint.partSize,DonePartsCount:e.checkpoint.checkpoint.doneParts.length,UploadPoint:JSON.stringify(e.checkpoint),UploadRatio:e.checkpoint.loaded,UserId:e.userId,VideoId:e.videoId,Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:p};d&&(g.ClientId=d);var m=c.default.makeUTF8sort(g,"=","&")+"&Signature="+c.default.aliyunEncodeURI(c.default.makeChangeSiga(g,e.accessKeySecret)),v="https://vod."+e.region+".aliyuncs.com/?"+m;o.default.get(v,(function(t){n&&n()}),(function(t){t&&(i(t),console.log(t))}))}},{key:"get",value:function(e,n,i){var r=u.default.ISODateString(new Date),h=Math.floor((new Date).valueOf()/1e3),d=s.default.getClientId(),f=t.getAuthInfo(e.userId,d,h),p=c.default.randomUUID(),g={Source:"WebSDK",BusinessType:"UploadVideo",Action:"GetUploadProgress",TerminalType:"H5",DeviceModel:a.default.browser.name+(a.default.browser.version||""),AppVersion:l.default.version,AuthTimestamp:h,Timestamp:r,AuthInfo:f,UserId:e.userId,UploadInfoList:JSON.stringify(e.uploadInfoList),Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:p};d&&(g.ClientId=d);var m=c.default.makeUTF8sort(g,"=","&")+"&Signature="+c.default.aliyunEncodeURI(c.default.makeChangeSiga(g,e.accessKeySecret)),v="https://vod."+e.region+".aliyuncs.com/?"+m;o.default.get(v,(function(t){var e={},i=d;(t=t?JSON.parse(t):{}).UploadProgress&&t.UploadProgress.UploadProgressList&&t.UploadProgress.UploadProgressList.length>0&&(i=(e=t.UploadProgress.UploadProgressList[0]).ClientId),s.default.setClientId(i),n&&n(e)}),(function(t){t&&(i(t),console.log(t))}))}}]),t}();e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=n(2),o=n(33),a=(n(11),function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return i(t,null,[{key:"getMd5",value:function(t,e,n){var i=new FileReader;i.onload=function(t){try{if(t&&t.target){var n=r(o.parse(t.target.result)).toString();e(n)}}catch(t){console.log(t)}},i.onerror=function(t){console.log(t),errorCallback(t)};var a=(File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice).call(t,0,1024);i.readAsBinaryString(a)}}]),t}());e.default=a},function(t,e,n){t.exports=function(t){return t.enc.Latin1}(n(0))}])},36785:function(t,e,n){"use strict";n.d(e,{o2:function(){return s},yT:function(){return l}});var i=n(95190),r=n(33166);const o=r.i.map((t=>`${t}-inverse`)),a=["success","processing","error","default","warning"];function s(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e?[].concat((0,i.Z)(o),(0,i.Z)(r.i)).includes(t):r.i.includes(t)}function l(t){return a.includes(t)}},56762:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});var i=n(59301);function r(){const[,t]=i.useReducer((t=>t+1),0);return t}},79676:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var i=n(60293);const r={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},o={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},a=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function s(t){const{arrowWidth:e,autoAdjustOverflow:n,arrowPointAtCenter:s,offset:l,borderRadius:u,visibleFirst:c}=t,h=e/2,d={};return Object.keys(r).forEach((t=>{const f=s&&o[t]||r[t],p=Object.assign(Object.assign({},f),{offset:[0,0]});switch(d[t]=p,a.has(t)&&(p.autoArrow=!1),t){case"top":case"topLeft":case"topRight":p.offset[1]=-h-l;break;case"bottom":case"bottomLeft":case"bottomRight":p.offset[1]=h+l;break;case"left":case"leftTop":case"leftBottom":p.offset[0]=-h-l;break;case"right":case"rightTop":case"rightBottom":p.offset[0]=h+l}const g=(0,i.fS)({contentRadius:u,limitVerticalRadius:!0});if(s)switch(t){case"topLeft":case"bottomLeft":p.offset[0]=-g.dropdownArrowOffset-h;break;case"topRight":case"bottomRight":p.offset[0]=g.dropdownArrowOffset+h;break;case"leftTop":case"rightTop":p.offset[1]=-g.dropdownArrowOffset-h;break;case"leftBottom":case"rightBottom":p.offset[1]=g.dropdownArrowOffset+h}p.overflow=function(t,e,n,i){if(!1===i)return{adjustX:!1,adjustY:!1};const r=i&&"object"==typeof i?i:{},o={};switch(t){case"top":case"bottom":o.shiftX=2*e.dropdownArrowOffset+n;break;case"left":case"right":o.shiftY=2*e.dropdownArrowOffsetVertical+n}const a=Object.assign(Object.assign({},o),r);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(t,g,e,n),c&&(p.htmlRegion="visibleFirst")})),d}},69507:function(t,e,n){"use strict";n.d(e,{ZP:function(){return a},c4:function(){return o}});var i=n(59301),r=n(88088);const o=["xxl","xl","lg","md","sm","xs"];function a(){const[,t]=(0,r.Z)(),e=(t=>({xs:`(max-width: ${t.screenXSMax}px)`,sm:`(min-width: ${t.screenSM}px)`,md:`(min-width: ${t.screenMD}px)`,lg:`(min-width: ${t.screenLG}px)`,xl:`(min-width: ${t.screenXL}px)`,xxl:`(min-width: ${t.screenXXL}px)`}))((t=>{const e=t,n=[].concat(o).reverse();return n.forEach(((t,i)=>{const r=t.toUpperCase(),o=`screen${r}Min`,a=`screen${r}`;if(!(e[o]<=e[a]))throw new Error(`${o}<=${a} fails : !(${e[o]}<=${e[a]})`);if(i<n.length-1){const t=`screen${r}Max`;if(!(e[a]<=e[t]))throw new Error(`${a}<=${t} fails : !(${e[a]}<=${e[t]})`);const o=`screen${n[i+1].toUpperCase()}Min`;if(!(e[t]<=e[o]))throw new Error(`${t}<=${o} fails : !(${e[t]}<=${e[o]})`)}})),t})(t));return i.useMemo((()=>{const t=new Map;let n=-1,i={};return{matchHandlers:{},dispatch(e){return i=e,t.forEach((t=>t(i))),t.size>=1},subscribe(e){return t.size||this.register(),n+=1,t.set(n,e),e(i),n},unsubscribe(e){t.delete(e),t.size||this.unregister()},unregister(){Object.keys(e).forEach((t=>{const n=e[t],i=this.matchHandlers[n];null==i||i.mql.removeListener(null==i?void 0:i.listener)})),t.clear()},register(){Object.keys(e).forEach((t=>{const n=e[t],r=e=>{let{matches:n}=e;this.dispatch(Object.assign(Object.assign({},i),{[t]:n}))},o=window.matchMedia(n);o.addListener(r),this.matchHandlers[n]={mql:o,listener:r},r(o)}))},responsiveMap:e}}),[t])}},19080:function(t,e,n){"use strict";n.d(e,{F:function(){return a},Z:function(){return o}});var i=n(92310),r=n.n(i);function o(t,e,n){return r()({[`${t}-status-success`]:"success"===e,[`${t}-status-warning`]:"warning"===e,[`${t}-status-error`]:"error"===e,[`${t}-status-validating`]:"validating"===e,[`${t}-has-feedback`]:n})}const a=(t,e)=>e||t},8070:function(t,e,n){"use strict";n.d(e,{Z:function(){return z}});var i=n(59301),r=n(38819),o=n(92310),a=n.n(o),s=n(31561),l=n(70425),u=n(18929),c=n(2738),h=n(79676),d=n(53487),f=n(92343),p=n(36355),g=n(20834),m=n(40875),v=n(88088),y=n(17313),w=n(13826),b=n(92899),x=n(29878),S=n(60293),P=n(83116),k=n(37613);var C=t=>{const{componentCls:e,menuCls:n,colorError:i,colorTextLightSolid:r}=t,o=`${n}-item`;return{[`${e}, ${e}-menu-submenu`]:{[`${n} ${o}`]:{[`&${o}-danger:not(${o}-disabled)`]:{color:i,"&:hover":{color:r,backgroundColor:i}}}}}};const A=t=>{const{componentCls:e,menuCls:n,zIndexPopup:i,dropdownArrowDistance:r,sizePopupArrow:o,antCls:a,iconCls:s,motionDurationMid:l,dropdownPaddingVertical:u,fontSize:c,dropdownEdgeChildPadding:h,colorTextDisabled:d,fontSizeIcon:f,controlPaddingHorizontal:p,colorBgElevated:g}=t;return[{[e]:Object.assign(Object.assign({},(0,y.Wf)(t)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:i,display:"block","&::before":{position:"absolute",insetBlock:o/2-r,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${a}-btn`]:{[`& > ${s}-down, & > ${a}-btn-icon > ${s}-down`]:{fontSize:f}},[`${e}-wrap`]:{position:"relative",[`${a}-btn > ${s}-down`]:{fontSize:f},[`${s}-down::before`]:{transition:`transform ${l}`}},[`${e}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${a}-slide-down-enter${a}-slide-down-enter-active${e}-placement-bottomLeft,\n &${a}-slide-down-appear${a}-slide-down-appear-active${e}-placement-bottomLeft,\n &${a}-slide-down-enter${a}-slide-down-enter-active${e}-placement-bottom,\n &${a}-slide-down-appear${a}-slide-down-appear-active${e}-placement-bottom,\n &${a}-slide-down-enter${a}-slide-down-enter-active${e}-placement-bottomRight,\n &${a}-slide-down-appear${a}-slide-down-appear-active${e}-placement-bottomRight`]:{animationName:w.fJ},[`&${a}-slide-up-enter${a}-slide-up-enter-active${e}-placement-topLeft,\n &${a}-slide-up-appear${a}-slide-up-appear-active${e}-placement-topLeft,\n &${a}-slide-up-enter${a}-slide-up-enter-active${e}-placement-top,\n &${a}-slide-up-appear${a}-slide-up-appear-active${e}-placement-top,\n &${a}-slide-up-enter${a}-slide-up-enter-active${e}-placement-topRight,\n &${a}-slide-up-appear${a}-slide-up-appear-active${e}-placement-topRight`]:{animationName:w.Qt},[`&${a}-slide-down-leave${a}-slide-down-leave-active${e}-placement-bottomLeft,\n &${a}-slide-down-leave${a}-slide-down-leave-active${e}-placement-bottom,\n &${a}-slide-down-leave${a}-slide-down-leave-active${e}-placement-bottomRight`]:{animationName:w.Uw},[`&${a}-slide-up-leave${a}-slide-up-leave-active${e}-placement-topLeft,\n &${a}-slide-up-leave${a}-slide-up-leave-active${e}-placement-top,\n &${a}-slide-up-leave${a}-slide-up-leave-active${e}-placement-topRight`]:{animationName:w.ly}})},(0,S.ZP)(t,{colorBg:g,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${e} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:i,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${e}, ${e}-menu-submenu`]:{[n]:Object.assign(Object.assign({padding:h,listStyleType:"none",backgroundColor:g,backgroundClip:"padding-box",borderRadius:t.borderRadiusLG,outline:"none",boxShadow:t.boxShadowSecondary},(0,y.Qy)(t)),{[`${n}-item-group-title`]:{padding:`${u}px ${p}px`,color:t.colorTextDescription,transition:`all ${l}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:c,marginInlineEnd:t.marginXS,fontSize:t.fontSizeSM},[`${n}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${l}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${u}px ${p}px`,color:t.colorText,fontWeight:"normal",fontSize:c,lineHeight:t.lineHeight,cursor:"pointer",transition:`all ${l}`,borderRadius:t.borderRadiusSM,"&:hover, &-active":{backgroundColor:t.controlItemBgHover}},(0,y.Qy)(t)),{"&-selected":{color:t.colorPrimary,backgroundColor:t.controlItemBgActive,"&:hover, &-active":{backgroundColor:t.controlItemBgActiveHover}},"&-disabled":{color:d,cursor:"not-allowed","&:hover":{color:d,backgroundColor:g,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${t.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:t.colorSplit},[`${e}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:t.paddingXS,[`${e}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:t.colorTextDescription,fontSize:f,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${t.marginXS}px`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:p+t.fontSizeSM},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${e}-menu-submenu-title`]:{[`&, ${e}-menu-submenu-arrow-icon`]:{color:d,backgroundColor:g,cursor:"not-allowed"}},[`${n}-submenu-selected ${e}-menu-submenu-title`]:{color:t.colorPrimary}})}},[(0,w.oN)(t,"slide-up"),(0,w.oN)(t,"slide-down"),(0,b.Fm)(t,"move-up"),(0,b.Fm)(t,"move-down"),(0,x._y)(t,"zoom-big")]]};var M=(0,P.Z)("Dropdown",((t,e)=>{let{rootPrefixCls:n}=e;const{marginXXS:i,sizePopupArrow:r,controlHeight:o,fontSize:a,lineHeight:s,paddingXXS:l,componentCls:u,borderRadiusLG:c}=t,h=(o-a*s)/2,{dropdownArrowOffset:d}=(0,S.fS)({contentRadius:c}),f=(0,k.TS)(t,{menuCls:`${u}-menu`,rootPrefixCls:n,dropdownArrowDistance:r/2+i,dropdownArrowOffset:d,dropdownPaddingVertical:h,dropdownEdgeChildPadding:l});return[A(f),C(f)]}),(t=>({zIndexPopup:t.zIndexPopupBase+50})));const E=t=>{const{menu:e,arrow:n,prefixCls:o,children:d,trigger:y,disabled:w,dropdownRender:b,getPopupContainer:x,overlayClassName:S,rootClassName:P,open:k,onOpenChange:C,visible:A,onVisibleChange:E,mouseEnterDelay:L=.15,mouseLeaveDelay:T=.1,autoAdjustOverflow:N=!0,placement:j="",overlay:I,transitionName:B}=t,{getPopupContainer:O,getPrefixCls:D,direction:R}=i.useContext(p.E_);const F=i.useMemo((()=>{const t=D();return void 0!==B?B:j.includes("top")?`${t}-slide-down`:`${t}-slide-up`}),[D,j,B]),z=i.useMemo((()=>{if(!j)return"rtl"===R?"bottomRight":"bottomLeft";if(j.includes("Center")){return j.slice(0,j.indexOf("Center"))}return j}),[j,R]);const G=D("dropdown",o),[U,H]=M(G),[,_]=(0,v.Z)(),Z=i.Children.only(d),W=(0,f.Tm)(Z,{className:a()(`${G}-trigger`,{[`${G}-rtl`]:"rtl"===R},Z.props.className),disabled:w}),V=w?[]:y;let Y;V&&V.includes("contextMenu")&&(Y=!0);const[X,q]=(0,u.Z)(!1,{value:null!=k?k:A}),K=(0,l.zX)((t=>{null==C||C(t),null==E||E(t),q(t)})),Q=a()(S,P,H,{[`${G}-rtl`]:"rtl"===R}),J=(0,h.Z)({arrowPointAtCenter:"object"==typeof n&&n.pointAtCenter,autoAdjustOverflow:N,offset:_.marginXXS,arrowWidth:n?_.sizePopupArrow:0,borderRadius:_.borderRadius}),$=i.useCallback((()=>{q(!1)}),[]);return U(i.createElement(s.Z,Object.assign({alignPoint:Y},(0,c.Z)(t,["rootClassName"]),{mouseEnterDelay:L,mouseLeaveDelay:T,visible:X,builtinPlacements:J,arrow:!!n,overlayClassName:Q,prefixCls:G,getPopupContainer:x||O,transitionName:F,trigger:V,overlay:()=>{let t;return t=(null==e?void 0:e.items)?i.createElement(g.Z,Object.assign({},e)):"function"==typeof I?I():I,b&&(t=b(t)),t=i.Children.only("string"==typeof t?i.createElement("span",null,t):t),i.createElement(m.J,{prefixCls:`${G}-menu`,expandIcon:i.createElement("span",{className:`${G}-menu-submenu-arrow`},i.createElement(r.Z,{className:`${G}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:$,validator:t=>{let{mode:e}=t}},t)},placement:z,onVisibleChange:K}),W))};const L=(0,d.Z)(E,"dropdown",(t=>t),(function(t){return Object.assign(Object.assign({},t),{align:{overflow:{adjustX:!1,adjustY:!1}}})}));E._InternalPanelDoNotUseOrYouWillBeFired=t=>i.createElement(L,Object.assign({},t),i.createElement("span",null));var T=E,N=n(18785),j=n(3113),I=n(81327),B=n(33234),O=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};const D=t=>{const{getPopupContainer:e,getPrefixCls:n,direction:r}=i.useContext(p.E_),{prefixCls:o,type:s="default",danger:l,disabled:u,loading:c,onClick:h,htmlType:d,children:f,className:g,menu:m,arrow:v,autoFocus:y,overlay:w,trigger:b,align:x,open:S,onOpenChange:P,placement:k,getPopupContainer:C,href:A,icon:E=i.createElement(N.Z,null),title:L,buttonsRender:D=(t=>t),mouseEnterDelay:R,mouseLeaveDelay:F,overlayClassName:z,overlayStyle:G,destroyPopupOnHide:U,dropdownRender:H}=t,_=O(t,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),Z=n("dropdown",o),W=`${Z}-button`,[V,Y]=M(Z),X={menu:m,arrow:v,autoFocus:y,align:x,disabled:u,trigger:u?[]:b,onOpenChange:P,getPopupContainer:C||e,mouseEnterDelay:R,mouseLeaveDelay:F,overlayClassName:z,overlayStyle:G,destroyPopupOnHide:U,dropdownRender:H},{compactSize:q,compactItemClassnames:K}=(0,B.ri)(Z,r),Q=a()(W,K,g,Y);"overlay"in t&&(X.overlay=w),"open"in t&&(X.open=S),X.placement="placement"in t?k:"rtl"===r?"bottomLeft":"bottomRight";const J=i.createElement(j.ZP,{type:s,danger:l,disabled:u,loading:c,onClick:h,htmlType:d,href:A,title:L},f),$=i.createElement(j.ZP,{type:s,danger:l,icon:E}),[tt,et]=D([J,$]);return V(i.createElement(I.Z.Compact,Object.assign({className:Q,size:q,block:!0},_),tt,i.createElement(T,Object.assign({},X),et)))};D.__ANT_BUTTON=!0;var R=D;const F=T;F.Button=R;var z=F},9432:function(t,e,n){"use strict";n.d(e,{Z:function(){return w},n:function(){return y}});var i=n(19248),r=n(92310),o=n.n(r),a=n(93681),s=n(8654),l=n(59301),u=n(19080),c=n(36355),h=n(1684),d=n(19716),f=n(32441),p=n(33234),g=n(59412),m=n(9937);var v=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};function y(t,e){if(!t)return;t.focus(e);const{cursor:n}=e||{};if(n){const e=t.value.length;switch(n){case"start":t.setSelectionRange(0,0);break;case"end":t.setSelectionRange(e,e);break;default:t.setSelectionRange(0,e)}}}var w=(0,l.forwardRef)(((t,e)=>{var n;const{prefixCls:r,bordered:y=!0,status:w,size:b,disabled:x,onBlur:S,onFocus:P,suffix:k,allowClear:C,addonAfter:A,addonBefore:M,className:E,style:L,styles:T,rootClassName:N,onChange:j,classNames:I}=t,B=v(t,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:O,direction:D,input:R}=l.useContext(c.E_),F=O("input",r),z=(0,l.useRef)(null),[G,U]=(0,m.ZP)(F),{compactSize:H,compactItemClassnames:_}=(0,p.ri)(F,D),Z=(0,d.Z)((t=>{var e;return null!==(e=null!=b?b:H)&&void 0!==e?e:t})),W=l.useContext(h.Z),V=null!=x?x:W,{status:Y,hasFeedback:X,feedbackIcon:q}=(0,l.useContext)(f.aM),K=(0,u.F)(Y,w),Q=function(t){return!!(t.prefix||t.suffix||t.allowClear)}(t)||!!X,J=(0,l.useRef)(Q);(0,l.useEffect)((()=>{Q&&J.current,J.current=Q}),[Q]);const $=(0,g.Z)(z,!0),tt=(X||k)&&l.createElement(l.Fragment,null,k,X&&q);let et;return"object"==typeof C&&(null==C?void 0:C.clearIcon)?et=C:C&&(et={clearIcon:l.createElement(i.Z,null)}),G(l.createElement(a.Z,Object.assign({ref:(0,s.sQ)(e,z),prefixCls:F,autoComplete:null==R?void 0:R.autoComplete},B,{disabled:V,onBlur:t=>{$(),null==S||S(t)},onFocus:t=>{$(),null==P||P(t)},style:Object.assign(Object.assign({},null==R?void 0:R.style),L),styles:Object.assign(Object.assign({},null==R?void 0:R.styles),T),suffix:tt,allowClear:et,className:o()(E,N,_,null==R?void 0:R.className),onChange:t=>{$(),null==j||j(t)},addonAfter:A&&l.createElement(p.BR,null,l.createElement(f.Ux,{override:!0,status:!0},A)),addonBefore:M&&l.createElement(p.BR,null,l.createElement(f.Ux,{override:!0,status:!0},M)),classNames:Object.assign(Object.assign(Object.assign({},I),null==R?void 0:R.classNames),{input:o()({[`${F}-sm`]:"small"===Z,[`${F}-lg`]:"large"===Z,[`${F}-rtl`]:"rtl"===D,[`${F}-borderless`]:!y},!Q&&(0,u.Z)(F,K),null==I?void 0:I.input,null===(n=null==R?void 0:R.classNames)||void 0===n?void 0:n.input,U)}),classes:{affixWrapper:o()({[`${F}-affix-wrapper-sm`]:"small"===Z,[`${F}-affix-wrapper-lg`]:"large"===Z,[`${F}-affix-wrapper-rtl`]:"rtl"===D,[`${F}-affix-wrapper-borderless`]:!y},(0,u.Z)(`${F}-affix-wrapper`,K,X),U),wrapper:o()({[`${F}-group-rtl`]:"rtl"===D},U),group:o()({[`${F}-group-wrapper-sm`]:"small"===Z,[`${F}-group-wrapper-lg`]:"large"===Z,[`${F}-group-wrapper-rtl`]:"rtl"===D,[`${F}-group-wrapper-disabled`]:V},(0,u.Z)(`${F}-group-wrapper`,K,X),U)}})))}))},6121:function(t,e,n){"use strict";n.d(e,{Z:function(){return U}});var i,r=n(19248),o=n(92310),a=n.n(o),s=n(14809),l=n(20439),u=n(4635),c=n(93664),h=n(50298),d=n(62646),f=n(95190),p=n(93681),g=n(5643),m=n(18929),v=n(59301),y=n(29301),w=n(34280),b=n(16089),x="\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n",S=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],P={};function k(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.getAttribute("id")||t.getAttribute("data-reactid")||t.getAttribute("name");if(e&&P[n])return P[n];var i=window.getComputedStyle(t),r=i.getPropertyValue("box-sizing")||i.getPropertyValue("-moz-box-sizing")||i.getPropertyValue("-webkit-box-sizing"),o=parseFloat(i.getPropertyValue("padding-bottom"))+parseFloat(i.getPropertyValue("padding-top")),a=parseFloat(i.getPropertyValue("border-bottom-width"))+parseFloat(i.getPropertyValue("border-top-width")),s=S.map((function(t){return"".concat(t,":").concat(i.getPropertyValue(t))})).join(";"),l={sizingStyle:s,paddingSize:o,borderSize:a,boxSizing:r};return e&&n&&(P[n]=l),l}var C=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],A=v.forwardRef((function(t,e){var n=t,r=n.prefixCls,o=(n.onPressEnter,n.defaultValue),f=n.value,p=n.autoSize,g=n.onResize,S=n.className,P=n.style,A=n.disabled,M=n.onChange,E=(n.onInternalAutoSize,(0,d.Z)(n,C)),L=(0,m.Z)(o,{value:f,postState:function(t){return null!=t?t:""}}),T=(0,h.Z)(L,2),N=T[0],j=T[1],I=v.useRef();v.useImperativeHandle(e,(function(){return{textArea:I.current}}));var B=v.useMemo((function(){return p&&"object"===(0,c.Z)(p)?[p.minRows,p.maxRows]:[]}),[p]),O=(0,h.Z)(B,2),D=O[0],R=O[1],F=!!p,z=v.useState(2),G=(0,h.Z)(z,2),U=G[0],H=G[1],_=v.useState(),Z=(0,h.Z)(_,2),W=Z[0],V=Z[1],Y=function(){H(0)};(0,w.Z)((function(){F&&Y()}),[f,D,R,F]),(0,w.Z)((function(){if(0===U)H(1);else if(1===U){var t=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;i||((i=document.createElement("textarea")).setAttribute("tab-index","-1"),i.setAttribute("aria-hidden","true"),document.body.appendChild(i)),t.getAttribute("wrap")?i.setAttribute("wrap",t.getAttribute("wrap")):i.removeAttribute("wrap");var o=k(t,e),a=o.paddingSize,s=o.borderSize,l=o.boxSizing,u=o.sizingStyle;i.setAttribute("style","".concat(u,";").concat(x)),i.value=t.value||t.placeholder||"";var c,h=void 0,d=void 0,f=i.scrollHeight;if("border-box"===l?f+=s:"content-box"===l&&(f-=a),null!==n||null!==r){i.value=" ";var p=i.scrollHeight-a;null!==n&&(h=p*n,"border-box"===l&&(h=h+a+s),f=Math.max(h,f)),null!==r&&(d=p*r,"border-box"===l&&(d=d+a+s),c=f>d?"":"hidden",f=Math.min(d,f))}var g={height:f,overflowY:c,resize:"none"};return h&&(g.minHeight=h),d&&(g.maxHeight=d),g}(I.current,!1,D,R);H(2),V(t)}else!function(){try{if(document.activeElement===I.current){var t=I.current,e=t.selectionStart,n=t.selectionEnd,i=t.scrollTop;I.current.setSelectionRange(e,n),I.current.scrollTop=i}}catch(t){}}()}),[U]);var X=v.useRef(),q=function(){b.Z.cancel(X.current)};v.useEffect((function(){return q}),[]);var K=F?W:null,Q=(0,l.Z)((0,l.Z)({},P),K);return 0!==U&&1!==U||(Q.overflowY="hidden",Q.overflowX="hidden"),v.createElement(y.Z,{onResize:function(t){2===U&&(null==g||g(t),p&&(q(),X.current=(0,b.Z)((function(){Y()}))))},disabled:!(p||g)},v.createElement("textarea",(0,s.Z)({},E,{ref:I,style:Q,className:a()(r,S,(0,u.Z)({},"".concat(r,"-disabled"),A)),disabled:A,value:N,onChange:function(t){j(t.target.value),null==M||M(t)}})))})),M=A,E=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function L(t,e){return(0,f.Z)(t||"").slice(0,e).join("")}function T(t,e,n,i){var r=n;return t?r=L(n,i):(0,f.Z)(e||"").length<n.length&&(0,f.Z)(n||"").length>i&&(r=e),r}var N=v.forwardRef((function(t,e){var n,i=t.defaultValue,r=t.value,o=t.onFocus,y=t.onBlur,w=t.onChange,b=t.allowClear,x=t.maxLength,S=t.onCompositionStart,P=t.onCompositionEnd,k=t.suffix,C=t.prefixCls,A=void 0===C?"rc-textarea":C,N=t.classes,j=t.showCount,I=t.className,B=t.style,O=t.disabled,D=t.hidden,R=t.classNames,F=t.styles,z=t.onResize,G=(0,d.Z)(t,E),U=(0,m.Z)(i,{value:r,defaultValue:i}),H=(0,h.Z)(U,2),_=H[0],Z=H[1],W=(0,v.useRef)(null),V=v.useState(!1),Y=(0,h.Z)(V,2),X=Y[0],q=Y[1],K=v.useState(!1),Q=(0,h.Z)(K,2),J=Q[0],$=Q[1],tt=v.useRef(),et=v.useRef(0),nt=v.useState(null),it=(0,h.Z)(nt,2),rt=it[0],ot=it[1],at=function(){var t;null===(t=W.current)||void 0===t||t.textArea.focus()};(0,v.useImperativeHandle)(e,(function(){return{resizableTextArea:W.current,focus:at,blur:function(){var t;null===(t=W.current)||void 0===t||t.textArea.blur()}}})),(0,v.useEffect)((function(){q((function(t){return!O&&t}))}),[O]);var st=Number(x)>0,lt=(0,g.D7)(_);!J&&st&&null==r&&(lt=L(lt,x));var ut,ct=k;if(j){var ht=(0,f.Z)(lt).length;ut="object"===(0,c.Z)(j)?j.formatter({value:lt,count:ht,maxLength:x}):"".concat(ht).concat(st?" / ".concat(x):""),ct=v.createElement(v.Fragment,null,ct,v.createElement("span",{className:a()("".concat(A,"-data-count"),null==R?void 0:R.count),style:null==F?void 0:F.count},ut))}var dt=!G.autoSize&&!j&&!b;return v.createElement(p.Q,{value:lt,allowClear:b,handleReset:function(t){var e;Z(""),at(),(0,g.rJ)(null===(e=W.current)||void 0===e?void 0:e.textArea,t,w)},suffix:ct,prefixCls:A,classes:{affixWrapper:a()(null==N?void 0:N.affixWrapper,(n={},(0,u.Z)(n,"".concat(A,"-show-count"),j),(0,u.Z)(n,"".concat(A,"-textarea-allow-clear"),b),n))},disabled:O,focused:X,className:I,style:(0,l.Z)((0,l.Z)({},B),rt&&!dt?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof ut?ut:void 0}},hidden:D,inputElement:v.createElement(M,(0,s.Z)({},G,{onKeyDown:function(t){var e=G.onPressEnter,n=G.onKeyDown;"Enter"===t.key&&e&&e(t),null==n||n(t)},onChange:function(t){var e=t.target.value;!J&&st&&(e=T(t.target.selectionStart>=x+1||t.target.selectionStart===e.length||!t.target.selectionStart,_,e,x));Z(e),(0,g.rJ)(t.currentTarget,t,w,e)},onFocus:function(t){q(!0),null==o||o(t)},onBlur:function(t){q(!1),null==y||y(t)},onCompositionStart:function(t){$(!0),tt.current=_,et.current=t.currentTarget.selectionStart,null==S||S(t)},onCompositionEnd:function(t){$(!1);var e,n=t.currentTarget.value;st&&(n=T(et.current>=x+1||et.current===(null===(e=tt.current)||void 0===e?void 0:e.length),tt.current,n,x));n!==_&&(Z(n),(0,g.rJ)(t.currentTarget,t,w,n)),null==P||P(t)},className:null==R?void 0:R.textarea,style:(0,l.Z)((0,l.Z)({},null==F?void 0:F.textarea),{},{resize:null==B?void 0:B.resize}),disabled:O,prefixCls:A,onResize:function(t){var e;null==z||z(t),null!==(e=W.current)&&void 0!==e&&e.textArea.style.height&&ot(!0)},ref:W}))})})),j=N,I=n(19080),B=n(36355),O=n(1684),D=n(19716),R=n(32441),F=n(9432),z=n(9937),G=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};var U=(0,v.forwardRef)(((t,e)=>{const{prefixCls:n,bordered:i=!0,size:o,disabled:s,status:l,allowClear:u,showCount:c,classNames:h,rootClassName:d,className:f}=t,p=G(t,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:g,direction:m}=v.useContext(B.E_),y=(0,D.Z)(o),w=v.useContext(O.Z),b=null!=s?s:w,{status:x,hasFeedback:S,feedbackIcon:P}=v.useContext(R.aM),k=(0,I.F)(x,l),C=v.useRef(null);v.useImperativeHandle(e,(()=>{var t;return{resizableTextArea:null===(t=C.current)||void 0===t?void 0:t.resizableTextArea,focus:t=>{var e,n;(0,F.n)(null===(n=null===(e=C.current)||void 0===e?void 0:e.resizableTextArea)||void 0===n?void 0:n.textArea,t)},blur:()=>{var t;return null===(t=C.current)||void 0===t?void 0:t.blur()}}}));const A=g("input",n);let M;"object"==typeof u&&(null==u?void 0:u.clearIcon)?M=u:u&&(M={clearIcon:v.createElement(r.Z,null)});const[E,L]=(0,z.ZP)(A);return E(v.createElement(j,Object.assign({},p,{disabled:b,allowClear:M,className:a()(f,d),classes:{affixWrapper:a()(`${A}-textarea-affix-wrapper`,{[`${A}-affix-wrapper-rtl`]:"rtl"===m,[`${A}-affix-wrapper-borderless`]:!i,[`${A}-affix-wrapper-sm`]:"small"===y,[`${A}-affix-wrapper-lg`]:"large"===y,[`${A}-textarea-show-count`]:c},(0,I.Z)(`${A}-affix-wrapper`,k),L)},classNames:Object.assign(Object.assign({},h),{textarea:a()({[`${A}-borderless`]:!i,[`${A}-sm`]:"small"===y,[`${A}-lg`]:"large"===y},(0,I.Z)(A,k),L,null==h?void 0:h.textarea)}),prefixCls:A,suffix:S&&v.createElement("span",{className:`${A}-textarea-suffix`},P),showCount:c,ref:C})))}))},59412:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});var i=n(59301);function r(t,e){const n=(0,i.useRef)([]),r=()=>{n.current.push(setTimeout((()=>{var e,n,i,r;(null===(e=t.current)||void 0===e?void 0:e.input)&&"password"===(null===(n=t.current)||void 0===n?void 0:n.input.getAttribute("type"))&&(null===(i=t.current)||void 0===i?void 0:i.input.hasAttribute("value"))&&(null===(r=t.current)||void 0===r||r.input.removeAttribute("value"))})))};return(0,i.useEffect)((()=>(e&&r(),()=>n.current.forEach((t=>{t&&clearTimeout(t)})))),[]),r}},10249:function(t,e,n){"use strict";n.d(e,{Z:function(){return I}});var i=n(92310),r=n.n(i),o=n(59301),a=n(36355),s=n(32441),l=n(9937);var u=t=>{const{getPrefixCls:e,direction:n}=(0,o.useContext)(a.E_),{prefixCls:i,className:u}=t,c=e("input-group",i),h=e("input"),[d,f]=(0,l.ZP)(h),p=r()(c,{[`${c}-lg`]:"large"===t.size,[`${c}-sm`]:"small"===t.size,[`${c}-compact`]:t.compact,[`${c}-rtl`]:"rtl"===n},f,u),g=(0,o.useContext)(s.aM),m=(0,o.useMemo)((()=>Object.assign(Object.assign({},g),{isFormItemInput:!1})),[g]);return d(o.createElement("span",{className:p,style:t.style,onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,onFocus:t.onFocus,onBlur:t.onBlur},o.createElement(s.aM.Provider,{value:m},t.children)))},c=n(9432),h=n(14809),d={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},f=n(7657),p=function(t,e){return o.createElement(f.Z,(0,h.Z)({},t,{ref:e,icon:d}))};var g=o.forwardRef(p),m=n(15277),v=n(2738),y=n(8654),w=n(59412),b=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};const x=t=>t?o.createElement(m.Z,null):o.createElement(g,null),S={click:"onClick",hover:"onMouseOver"};var P=o.forwardRef(((t,e)=>{const{visibilityToggle:n=!0}=t,i="object"==typeof n&&void 0!==n.visible,[s,l]=(0,o.useState)((()=>!!i&&n.visible)),u=(0,o.useRef)(null);o.useEffect((()=>{i&&l(n.visible)}),[i,n]);const h=(0,w.Z)(u),d=()=>{const{disabled:e}=t;e||(s&&h(),l((t=>{var e;const i=!t;return"object"==typeof n&&(null===(e=n.onVisibleChange)||void 0===e||e.call(n,i)),i})))},{className:f,prefixCls:p,inputPrefixCls:g,size:m}=t,P=b(t,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:k}=o.useContext(a.E_),C=k("input",g),A=k("input-password",p),M=n&&(e=>{const{action:n="click",iconRender:i=x}=t,r=S[n]||"",a=i(s),l={[r]:d,className:`${e}-icon`,key:"passwordIcon",onMouseDown:t=>{t.preventDefault()},onMouseUp:t=>{t.preventDefault()}};return o.cloneElement(o.isValidElement(a)?a:o.createElement("span",null,a),l)})(A),E=r()(A,f,{[`${A}-${m}`]:!!m}),L=Object.assign(Object.assign({},(0,v.Z)(P,["suffix","iconRender","visibilityToggle"])),{type:s?"text":"password",className:E,prefixCls:C,suffix:M});return m&&(L.size=m),o.createElement(c.Z,Object.assign({ref:(0,y.sQ)(e,u)},L))})),k=n(47472),C=n(92343),A=n(3113),M=n(19716),E=n(33234),L=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};var T=o.forwardRef(((t,e)=>{const{prefixCls:n,inputPrefixCls:i,className:s,size:l,suffix:u,enterButton:h=!1,addonAfter:d,loading:f,disabled:p,onSearch:g,onChange:m,onCompositionStart:v,onCompositionEnd:w}=t,b=L(t,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:x,direction:S}=o.useContext(a.E_),P=o.useRef(!1),T=x("input-search",n),N=x("input",i),{compactSize:j}=(0,E.ri)(T,S),I=(0,M.Z)((t=>{var e;return null!==(e=null!=l?l:j)&&void 0!==e?e:t})),B=o.useRef(null),O=t=>{var e;document.activeElement===(null===(e=B.current)||void 0===e?void 0:e.input)&&t.preventDefault()},D=t=>{var e,n;g&&g(null===(n=null===(e=B.current)||void 0===e?void 0:e.input)||void 0===n?void 0:n.value,t,{source:"input"})},R="boolean"==typeof h?o.createElement(k.Z,null):null,F=`${T}-button`;let z;const G=h||{},U=G.type&&!0===G.type.__ANT_BUTTON;z=U||"button"===G.type?(0,C.Tm)(G,Object.assign({onMouseDown:O,onClick:t=>{var e,n;null===(n=null===(e=null==G?void 0:G.props)||void 0===e?void 0:e.onClick)||void 0===n||n.call(e,t),D(t)},key:"enterButton"},U?{className:F,size:I}:{})):o.createElement(A.ZP,{className:F,type:h?"primary":void 0,size:I,disabled:p,key:"enterButton",onMouseDown:O,onClick:D,loading:f,icon:R},h),d&&(z=[z,(0,C.Tm)(d,{key:"addonAfter"})]);const H=r()(T,{[`${T}-rtl`]:"rtl"===S,[`${T}-${I}`]:!!I,[`${T}-with-button`]:!!h},s);return o.createElement(c.Z,Object.assign({ref:(0,y.sQ)(B,e),onPressEnter:t=>{P.current||f||D(t)}},b,{size:I,onCompositionStart:t=>{P.current=!0,null==v||v(t)},onCompositionEnd:t=>{P.current=!1,null==w||w(t)},prefixCls:N,addonAfter:z,suffix:u,onChange:t=>{t&&t.target&&"click"===t.type&&g&&g(t.target.value,t,{source:"clear"}),m&&m(t)},className:H,disabled:p}))})),N=n(6121);const j=c.Z;j.Group=u,j.Search=T,j.TextArea=N.Z,j.Password=P;var I=j},9937:function(t,e,n){"use strict";n.d(e,{M1:function(){return u},TM:function(){return P},Xy:function(){return c},bi:function(){return f},e5:function(){return S},ik:function(){return p},nz:function(){return s},pU:function(){return l},s7:function(){return g},x0:function(){return d}});var i=n(17313),r=n(74207),o=n(37613),a=n(83116);const s=t=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:t,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),l=t=>({borderColor:t.hoverBorderColor}),u=t=>({borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0}),c=t=>({color:t.colorTextDisabled,backgroundColor:t.colorBgContainerDisabled,borderColor:t.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},l((0,o.TS)(t,{hoverBorderColor:t.colorBorder})))}),h=t=>{const{paddingBlockLG:e,fontSizeLG:n,lineHeightLG:i,borderRadiusLG:r,paddingInlineLG:o}=t;return{padding:`${e}px ${o}px`,fontSize:n,lineHeight:i,borderRadius:r}},d=t=>({padding:`${t.paddingBlockSM}px ${t.paddingInlineSM}px`,borderRadius:t.borderRadiusSM}),f=(t,e)=>{const{componentCls:n,colorError:i,colorWarning:r,errorActiveShadow:a,warningActiveShadow:s,colorErrorBorderHover:l,colorWarningBorderHover:c}=t;return{[`&-status-error:not(${e}-disabled):not(${e}-borderless)${e}`]:{borderColor:i,"&:hover":{borderColor:l},"&:focus, &-focused":Object.assign({},u((0,o.TS)(t,{activeBorderColor:i,activeShadow:a}))),[`${n}-prefix, ${n}-suffix`]:{color:i}},[`&-status-warning:not(${e}-disabled):not(${e}-borderless)${e}`]:{borderColor:r,"&:hover":{borderColor:c},"&:focus, &-focused":Object.assign({},u((0,o.TS)(t,{activeBorderColor:r,activeShadow:s}))),[`${n}-prefix, ${n}-suffix`]:{color:r}}}},p=t=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${t.paddingBlock}px ${t.paddingInline}px`,color:t.colorText,fontSize:t.fontSize,lineHeight:t.lineHeight,backgroundColor:t.colorBgContainer,backgroundImage:"none",borderWidth:t.lineWidth,borderStyle:t.lineType,borderColor:t.colorBorder,borderRadius:t.borderRadius,transition:`all ${t.motionDurationMid}`},s(t.colorTextPlaceholder)),{"&:hover":Object.assign({},l(t)),"&:focus, &-focused":Object.assign({},u(t)),"&-disabled, &[disabled]":Object.assign({},c(t)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:t.controlHeight,lineHeight:t.lineHeight,verticalAlign:"bottom",transition:`all ${t.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},h(t)),"&-sm":Object.assign({},d(t)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),g=t=>{const{componentCls:e,antCls:n}=t;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:t.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${e}, &-lg > ${e}-group-addon`]:Object.assign({},h(t)),[`&-sm ${e}, &-sm > ${e}-group-addon`]:Object.assign({},d(t)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:t.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:t.controlHeightSM},[`> ${e}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${e}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${t.paddingInline}px`,color:t.colorText,fontWeight:"normal",fontSize:t.fontSize,textAlign:"center",backgroundColor:t.colorFillAlter,border:`${t.lineWidth}px ${t.lineType} ${t.colorBorder}`,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`-${t.paddingBlock+1}px -${t.paddingInline}px`,[`&${n}-select-single:not(${n}-select-customize-input)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${t.lineWidth}px ${t.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:t.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px -${t.paddingInline}px`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${e}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${e}-search-with-button &`]:{zIndex:0}}},[`> ${e}:first-child, ${e}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${e}-affix-wrapper`]:{[`&:not(:first-child) ${e}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${e}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${e}:last-child, ${e}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${e}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${e}-search &`]:{borderStartStartRadius:t.borderRadius,borderEndStartRadius:t.borderRadius}},[`&:not(:first-child), ${e}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${e}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,i.dF)()),{[`${e}-group-addon, ${e}-group-wrap, > ${e}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:t.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`\n & > ${e}-affix-wrapper,\n & > ${e}-number-affix-wrapper,\n & > ${n}-picker-range\n `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-t.lineWidth,borderInlineEndWidth:t.lineWidth},[`${e}`]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,\n & > ${n}-select-auto-complete ${e},\n & > ${n}-cascader-picker ${e},\n & > ${e}-group-wrapper ${e}`]:{borderInlineEndWidth:t.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,\n & > ${n}-select:first-child > ${n}-select-selector,\n & > ${n}-select-auto-complete:first-child ${e},\n & > ${n}-cascader-picker:first-child ${e}`]:{borderStartStartRadius:t.borderRadius,borderEndStartRadius:t.borderRadius},[`& > *:last-child,\n & > ${n}-select:last-child > ${n}-select-selector,\n & > ${n}-cascader-picker:last-child ${e},\n & > ${n}-cascader-picker-focused:last-child ${e}`]:{borderInlineEndWidth:t.lineWidth,borderStartEndRadius:t.borderRadius,borderEndEndRadius:t.borderRadius},[`& > ${n}-select-auto-complete ${e}`]:{verticalAlign:"top"},[`${e}-group-wrapper + ${e}-group-wrapper`]:{marginInlineStart:-t.lineWidth,[`${e}-affix-wrapper`]:{borderRadius:0}},[`${e}-group-wrapper:not(:last-child)`]:{[`&${e}-search > ${e}-group`]:{[`& > ${e}-group-addon > ${e}-search-button`]:{borderRadius:0},[`& > ${e}`]:{borderStartStartRadius:t.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:t.borderRadius}}}})}},m=t=>{const{componentCls:e,controlHeightSM:n,lineWidth:r}=t,o=(n-2*r-16)/2;return{[e]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,i.Wf)(t)),p(t)),f(t,e)),{'&[type="color"]':{height:t.controlHeight,[`&${e}-lg`]:{height:t.controlHeightLG},[`&${e}-sm`]:{height:n,paddingTop:o,paddingBottom:o}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},v=t=>{const{componentCls:e}=t;return{[`${e}-clear-icon`]:{margin:0,color:t.colorTextQuaternary,fontSize:t.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${t.motionDurationSlow}`,"&:hover":{color:t.colorTextTertiary},"&:active":{color:t.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${t.inputAffixPadding}px`}}}},y=t=>{const{componentCls:e,inputAffixPadding:n,colorTextDescription:i,motionDurationSlow:r,colorIcon:o,colorIconHover:a,iconCls:s}=t;return{[`${e}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},p(t)),{display:"inline-flex",[`&:not(${e}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},l(t)),{zIndex:1,[`${e}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${e}[disabled]`]:{background:"transparent"}},[`> input${e}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${e}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:t.paddingXS}},"&-show-count-suffix":{color:i},"&-show-count-has-suffix":{marginInlineEnd:t.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),v(t)),{[`${s}${e}-password-icon`]:{color:o,cursor:"pointer",transition:`all ${r}`,"&:hover":{color:a}}}),f(t,`${e}-affix-wrapper`))}},w=t=>{const{componentCls:e,colorError:n,colorWarning:r,borderRadiusLG:o,borderRadiusSM:a}=t;return{[`${e}-group`]:Object.assign(Object.assign(Object.assign({},(0,i.Wf)(t)),g(t)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${e}-group-addon`]:{borderRadius:o,fontSize:t.fontSizeLG}},"&-sm":{[`${e}-group-addon`]:{borderRadius:a}},"&-status-error":{[`${e}-group-addon`]:{color:n,borderColor:n}},"&-status-warning":{[`${e}-group-addon`]:{color:r,borderColor:r}},"&-disabled":{[`${e}-group-addon`]:Object.assign({},c(t))},[`&:not(${e}-compact-first-item):not(${e}-compact-last-item)${e}-compact-item`]:{[`${e}, ${e}-group-addon`]:{borderRadius:0}},[`&:not(${e}-compact-last-item)${e}-compact-first-item`]:{[`${e}, ${e}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${e}-compact-first-item)${e}-compact-last-item`]:{[`${e}, ${e}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},b=t=>{const{componentCls:e,antCls:n}=t,i=`${e}-search`;return{[i]:{[`${e}`]:{"&:hover, &:focus":{borderColor:t.colorPrimaryHover,[`+ ${e}-group-addon ${i}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:t.colorPrimaryHover}}},[`${e}-affix-wrapper`]:{borderRadius:0},[`${e}-lg`]:{lineHeight:t.lineHeightLG-2e-4},[`> ${e}-group`]:{[`> ${e}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${i}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:t.borderRadius,borderEndEndRadius:t.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${i}-button:not(${n}-btn-primary)`]:{color:t.colorTextDescription,"&:hover":{color:t.colorPrimaryHover},"&:active":{color:t.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${i}-button`]:{height:t.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${i}-button`]:{height:t.controlHeightLG},[`&-small ${i}-button`]:{height:t.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${e}-compact-item`]:{[`&:not(${e}-compact-last-item)`]:{[`${e}-group-addon`]:{[`${e}-search-button`]:{marginInlineEnd:-t.lineWidth,borderRadius:0}}},[`&:not(${e}-compact-first-item)`]:{[`${e},${e}-affix-wrapper`]:{borderRadius:0}},[`> ${e}-group-addon ${e}-search-button,\n > ${e},\n ${e}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${e}-affix-wrapper-focused`]:{zIndex:2}}}}},x=t=>{const{componentCls:e,paddingLG:n}=t,i=`${e}-textarea`;return{[i]:{position:"relative","&-show-count":{[`> ${e}`]:{height:"100%"},[`${e}-data-count`]:{position:"absolute",bottom:-t.fontSize*t.lineHeight,insetInlineEnd:0,color:t.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${e}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${i}-has-feedback`]:{[`${e}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${e}-affix-wrapper`]:{padding:0,[`> textarea${e}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${e}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${e}-clear-icon`]:{position:"absolute",insetInlineEnd:t.paddingXS,insetBlockStart:t.paddingXS},[`${i}-suffix`]:{position:"absolute",top:0,insetInlineEnd:t.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function S(t){return(0,o.TS)(t,{inputAffixPadding:t.paddingXXS})}const P=t=>{const{controlHeight:e,fontSize:n,lineHeight:i,lineWidth:r,controlHeightSM:o,controlHeightLG:a,fontSizeLG:s,lineHeightLG:l,paddingSM:u,controlPaddingHorizontalSM:c,controlPaddingHorizontal:h,colorFillAlter:d,colorPrimaryHover:f,controlOutlineWidth:p,controlOutline:g,colorErrorOutline:m,colorWarningOutline:v}=t;return{paddingBlock:Math.max(Math.round((e-n*i)/2*10)/10-r,3),paddingBlockSM:Math.max(Math.round((o-n*i)/2*10)/10-r,0),paddingBlockLG:Math.ceil((a-s*l)/2*10)/10-r,paddingInline:u-r,paddingInlineSM:c-r,paddingInlineLG:h-r,addonBg:d,activeBorderColor:f,hoverBorderColor:f,activeShadow:`0 0 0 ${p}px ${g}`,errorActiveShadow:`0 0 0 ${p}px ${m}`,warningActiveShadow:`0 0 0 ${p}px ${v}`}};e.ZP=(0,a.Z)("Input",(t=>{const e=(0,o.TS)(t,S(t));return[m(e),x(e),y(e),w(e),b(e),(0,r.c)(e)]}),P)},45818:function(t,e,n){"use strict";n.d(e,{D:function(){return w},Z:function(){return x}});var i=n(14809),r=n(59301),o={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},a=n(7657),s=function(t,e){return r.createElement(a.Z,(0,i.Z)({},t,{ref:e,icon:o}))};var l=r.forwardRef(s),u=n(33853),c=n(38819),h=n(92310),d=n.n(h),f=n(2738);var p=t=>!isNaN(parseFloat(t))&&isFinite(t),g=n(36355),m=n(84966),v=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};const y={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},w=r.createContext({}),b=(()=>{let t=0;return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t+=1,`${e}${t}`}})();var x=r.forwardRef(((t,e)=>{const{prefixCls:n,className:i,trigger:o,children:a,defaultCollapsed:s=!1,theme:h="dark",style:x={},collapsible:S=!1,reverseArrow:P=!1,width:k=200,collapsedWidth:C=80,zeroWidthTriggerStyle:A,breakpoint:M,onCollapse:E,onBreakpoint:L}=t,T=v(t,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:N}=(0,r.useContext)(m.Gs),[j,I]=(0,r.useState)("collapsed"in t?t.collapsed:s),[B,O]=(0,r.useState)(!1);(0,r.useEffect)((()=>{"collapsed"in t&&I(t.collapsed)}),[t.collapsed]);const D=(e,n)=>{"collapsed"in t||I(e),null==E||E(e,n)},R=(0,r.useRef)();R.current=t=>{O(t.matches),null==L||L(t.matches),j!==t.matches&&D(t.matches,"responsive")},(0,r.useEffect)((()=>{function t(t){return R.current(t)}let e;if("undefined"!=typeof window){const{matchMedia:n}=window;if(n&&M&&M in y){e=n(`(max-width: ${y[M]})`);try{e.addEventListener("change",t)}catch(n){e.addListener(t)}t(e)}}return()=>{try{null==e||e.removeEventListener("change",t)}catch(n){null==e||e.removeListener(t)}}}),[M]),(0,r.useEffect)((()=>{const t=b("ant-sider-");return N.addSider(t),()=>N.removeSider(t)}),[]);const F=()=>{D(!j,"clickTrigger")},{getPrefixCls:z}=(0,r.useContext)(g.E_),G=r.useMemo((()=>({siderCollapsed:j})),[j]);return r.createElement(w.Provider,{value:G},(()=>{const t=z("layout-sider",n),s=(0,f.Z)(T,["collapsed"]),g=j?C:k,m=p(g)?`${g}px`:String(g),v=0===parseFloat(String(C||0))?r.createElement("span",{onClick:F,className:d()(`${t}-zero-width-trigger`,`${t}-zero-width-trigger-${P?"right":"left"}`),style:A},o||r.createElement(l,null)):null,y={expanded:P?r.createElement(c.Z,null):r.createElement(u.Z,null),collapsed:P?r.createElement(u.Z,null):r.createElement(c.Z,null)}[j?"collapsed":"expanded"],w=null!==o?v||r.createElement("div",{className:`${t}-trigger`,onClick:F,style:{width:m}},o||y):null,b=Object.assign(Object.assign({},x),{flex:`0 0 ${m}`,maxWidth:m,minWidth:m,width:m}),M=d()(t,`${t}-${h}`,{[`${t}-collapsed`]:!!j,[`${t}-has-trigger`]:S&&null!==o&&!v,[`${t}-below`]:!!B,[`${t}-zero-width`]:0===parseFloat(m)},i);return r.createElement("aside",Object.assign({className:M},s,{style:b,ref:e}),r.createElement("div",{className:`${t}-children`},a),S||B&&v?w:null)})())}))},84966:function(t,e,n){"use strict";n.d(e,{VY:function(){return x},$_:function(){return b},h4:function(){return w},Gs:function(){return p},ZP:function(){return S}});var i=n(95190),r=n(92310),o=n.n(r),a=n(2738),s=n(59301),l=n(36355),u=n(83116);var c=t=>{const{componentCls:e,bodyBg:n,lightSiderBg:i,lightTriggerBg:r,lightTriggerColor:o}=t;return{[`${e}-sider-light`]:{background:i,[`${e}-sider-trigger`]:{color:o,background:r},[`${e}-sider-zero-width-trigger`]:{color:o,background:r,border:`1px solid ${n}`,borderInlineStart:0}}}};const h=t=>{const{antCls:e,componentCls:n,colorText:i,triggerColor:r,footerBg:o,triggerBg:a,headerHeight:s,headerPadding:l,headerColor:u,footerPadding:h,triggerHeight:d,zeroTriggerHeight:f,zeroTriggerWidth:p,motionDurationMid:g,motionDurationSlow:m,fontSize:v,borderRadius:y,bodyBg:w,headerBg:b,siderBg:x}=t;return{[n]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:w,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},[`${n}-sider`]:{position:"relative",minWidth:0,background:x,transition:`all ${g}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${e}-menu${e}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:d},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:d,color:r,lineHeight:`${d}px`,textAlign:"center",background:a,cursor:"pointer",transition:`all ${g}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:s,insetInlineEnd:-p,zIndex:1,width:p,height:f,color:r,fontSize:t.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:x,borderStartStartRadius:0,borderStartEndRadius:y,borderEndEndRadius:y,borderEndStartRadius:0,cursor:"pointer",transition:`background ${m} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${m}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-p,borderStartStartRadius:y,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:y}}}}},c(t)),{"&-rtl":{direction:"rtl"}}),[`${n}-header`]:{height:s,padding:l,color:u,lineHeight:`${s}px`,background:b,[`${e}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:h,color:i,fontSize:v,background:o},[`${n}-content`]:{flex:"auto",minHeight:0}}};var d=(0,u.Z)("Layout",(t=>[h(t)]),(t=>{const{colorBgLayout:e,controlHeight:n,controlHeightLG:i,colorText:r,controlHeightSM:o,marginXXS:a,colorTextLightSolid:s,colorBgContainer:l}=t,u=1.25*i;return{colorBgHeader:"#001529",colorBgBody:e,colorBgTrigger:"#002140",bodyBg:e,headerBg:"#001529",headerHeight:2*n,headerPadding:`0 ${u}px`,headerColor:r,footerPadding:`${o}px ${u}px`,footerBg:e,siderBg:"#001529",triggerHeight:i+2*a,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:i,zeroTriggerHeight:i,lightSiderBg:l,lightTriggerBg:l,lightTriggerColor:r}}),{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),f=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};const p=s.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function g(t){let{suffixCls:e,tagName:n,displayName:i}=t;return t=>s.forwardRef(((i,r)=>s.createElement(t,Object.assign({ref:r,suffixCls:e,tagName:n},i))))}const m=s.forwardRef(((t,e)=>{const{prefixCls:n,suffixCls:i,className:r,tagName:a}=t,u=f(t,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:c}=s.useContext(l.E_),h=c("layout",n),[p,g]=d(h),m=i?`${h}-${i}`:h;return p(s.createElement(a,Object.assign({className:o()(n||m,r,g),ref:e},u)))})),v=s.forwardRef(((t,e)=>{const{direction:n}=s.useContext(l.E_),[r,u]=s.useState([]),{prefixCls:c,className:h,rootClassName:g,children:m,hasSider:v,tagName:y,style:w}=t,b=f(t,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),x=(0,a.Z)(b,["suffixCls"]),{getPrefixCls:S,layout:P}=s.useContext(l.E_),k=S("layout",c),[C,A]=d(k),M=o()(k,{[`${k}-has-sider`]:"boolean"==typeof v?v:r.length>0,[`${k}-rtl`]:"rtl"===n},null==P?void 0:P.className,h,g,A),E=s.useMemo((()=>({siderHook:{addSider:t=>{u((e=>[].concat((0,i.Z)(e),[t])))},removeSider:t=>{u((e=>e.filter((e=>e!==t))))}}})),[]);return C(s.createElement(p.Provider,{value:E},s.createElement(y,Object.assign({ref:e,className:M,style:Object.assign(Object.assign({},null==P?void 0:P.style),w)},x),m)))})),y=g({tagName:"div",displayName:"Layout"})(v),w=g({suffixCls:"header",tagName:"header",displayName:"Header"})(m),b=g({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(m),x=g({suffixCls:"content",tagName:"main",displayName:"Content"})(m);var S=y},40875:function(t,e,n){"use strict";n.d(e,{J:function(){return l}});var i=n(59301),r=n(33234),o=n(70425),a=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};const s=i.createContext(null),l=i.forwardRef(((t,e)=>{const{children:n}=t,l=a(t,["children"]),u=i.useContext(s),c=i.useMemo((()=>Object.assign(Object.assign({},u),l)),[u,l.prefixCls,l.mode,l.selectable]);return i.createElement(s.Provider,{value:c},i.createElement(r.BR,null,(0,o.t4)(n)?i.cloneElement(n,{ref:e}):n))}));e.Z=s},20834:function(t,e,n){"use strict";n.d(e,{Z:function(){return V}});var i=n(15285),r=n(59301),o=n(45818),a=n(92310),s=n.n(a),l=n(36355),u=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};var c=t=>{const{prefixCls:e,className:n,dashed:o}=t,a=u(t,["prefixCls","className","dashed"]),{getPrefixCls:c}=r.useContext(l.E_),h=c("menu",e),d=s()({[`${h}-item-divider-dashed`]:!!o},n);return r.createElement(i.iz,Object.assign({className:d},a))},h=n(11592),d=n(2738),f=n(6848),p=n(92343);var g=(0,r.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var m=t=>{var e;const{className:n,children:a,icon:l,title:u,danger:c}=t,{prefixCls:m,firstLevel:v,direction:y,disableMenuItemTitleTooltip:w,inlineCollapsed:b}=r.useContext(g),{siderCollapsed:x}=r.useContext(o.D);let S=u;void 0===u?S=v?a:"":!1===u&&(S="");const P={title:S};x||b||(P.title=null,P.open=!1);const k=(0,h.Z)(a).length;let C=r.createElement(i.ck,Object.assign({},(0,d.Z)(t,["title","icon","danger"]),{className:s()({[`${m}-item-danger`]:c,[`${m}-item-only-child`]:1===(l?k+1:k)},n),title:"string"==typeof u?u:void 0}),(0,p.Tm)(l,{className:s()((0,p.l$)(l)?null===(e=l.props)||void 0===e?void 0:e.className:"",`${m}-item-icon`)}),(t=>{const e=r.createElement("span",{className:`${m}-title-content`},a);return(!l||(0,p.l$)(a)&&"span"===a.type)&&a&&t&&v&&"string"==typeof a?r.createElement("div",{className:`${m}-inline-collapsed-noicon`},a.charAt(0)):e})(b));return w||(C=r.createElement(f.Z,Object.assign({},P,{placement:"rtl"===y?"left":"right",overlayClassName:`${m}-inline-collapsed-tooltip`}),C)),C};var v=t=>{var e;const{popupClassName:n,icon:o,title:a,theme:l}=t,u=r.useContext(g),{prefixCls:c,inlineCollapsed:h,theme:f}=u,m=(0,i.Xl)();let v;if(o){const t=(0,p.l$)(a)&&"span"===a.type;v=r.createElement(r.Fragment,null,(0,p.Tm)(o,{className:s()((0,p.l$)(o)?null===(e=o.props)||void 0===e?void 0:e.className:"",`${c}-item-icon`)}),t?a:r.createElement("span",{className:`${c}-title-content`},a))}else v=h&&!m.length&&a&&"string"==typeof a?r.createElement("div",{className:`${c}-inline-collapsed-noicon`},a.charAt(0)):r.createElement("span",{className:`${c}-title-content`},a);const y=r.useMemo((()=>Object.assign(Object.assign({},u),{firstLevel:!1})),[u]);return r.createElement(g.Provider,{value:y},r.createElement(i.Wd,Object.assign({},(0,d.Z)(t,["icon"]),{title:v,popupClassName:s()(c,n,`${c}-${l||f}`)})))},y=n(18785),w=n(70425),b=n(62892),x=n(40875),S=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};function P(t){return(t||[]).map(((t,e)=>{if(t&&"object"==typeof t){const n=t,{label:o,children:a,key:s,type:l}=n,u=S(n,["label","children","key","type"]),h=null!=s?s:`tmp-${e}`;return a||"group"===l?"group"===l?r.createElement(i.BW,Object.assign({key:h},u,{title:o}),P(a)):r.createElement(v,Object.assign({key:h},u,{title:o}),P(a)):"divider"===l?r.createElement(c,Object.assign({key:h},u)):r.createElement(m,Object.assign({key:h},u),o)}return null})).filter((t=>t))}function k(t){return r.useMemo((()=>t?P(t):t),[t])}var C=n(60654),A=n(17313),M=n(8378),E=n(13826),L=n(29878),T=n(83116),N=n(37613);var j=t=>{const{componentCls:e,motionDurationSlow:n,horizontalLineHeight:i,colorSplit:r,lineWidth:o,lineType:a,itemPaddingInline:s}=t;return{[`${e}-horizontal`]:{lineHeight:i,border:0,borderBottom:`${o}px ${a} ${r}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${e}-item, ${e}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${e}-item:hover,\n > ${e}-item-active,\n > ${e}-submenu ${e}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${e}-item, ${e}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${e}-submenu-arrow`]:{display:"none"}}}};var I=t=>{let{componentCls:e,menuArrowOffset:n}=t;return{[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical,\n ${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${n})`},"&::after":{transform:`rotate(45deg) translateY(${n})`}}}}};const B=t=>Object.assign({},(0,A.oN)(t));var O=(t,e)=>{const{componentCls:n,itemColor:i,itemSelectedColor:r,groupTitleColor:o,itemBg:a,subMenuItemBg:s,itemSelectedBg:l,activeBarHeight:u,activeBarWidth:c,activeBarBorderWidth:h,motionDurationSlow:d,motionEaseInOut:f,motionEaseOut:p,itemPaddingInline:g,motionDurationMid:m,itemHoverColor:v,lineType:y,colorSplit:w,itemDisabledColor:b,dangerItemColor:x,dangerItemHoverColor:S,dangerItemSelectedColor:P,dangerItemActiveBg:k,dangerItemSelectedBg:C,itemHoverBg:A,itemActiveBg:M,menuSubMenuBg:E,horizontalItemSelectedColor:L,horizontalItemSelectedBg:T,horizontalItemBorderRadius:N,horizontalItemHoverBg:j,popupBg:I}=t;return{[`${n}-${e}, ${n}-${e} > ${n}`]:{color:i,background:a,[`&${n}-root:focus-visible`]:Object.assign({},B(t)),[`${n}-item-group-title`]:{color:o},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:r}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${b} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:v}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:A},"&:active":{backgroundColor:M}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:A},"&:active":{backgroundColor:M}}},[`${n}-item-danger`]:{color:x,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:S}},[`&${n}-item:active`]:{background:k}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:r,[`&${n}-item-danger`]:{color:P},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:l,[`&${n}-item-danger`]:{backgroundColor:C}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},B(t))},[`&${n}-submenu > ${n}`]:{backgroundColor:E},[`&${n}-popup > ${n}`]:{backgroundColor:I},[`&${n}-horizontal`]:Object.assign(Object.assign({},"dark"===e?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:h,marginTop:-h,marginBottom:0,borderRadius:N,"&::after":{position:"absolute",insetInline:g,bottom:0,borderBottom:`${u}px solid transparent`,transition:`border-color ${d} ${f}`,content:'""'},"&:hover, &-active, &-open":{background:j,"&::after":{borderBottomWidth:u,borderBottomColor:L}},"&-selected":{color:L,backgroundColor:T,"&:hover":{backgroundColor:T},"&::after":{borderBottomWidth:u,borderBottomColor:L}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${h}px ${y} ${w}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:s},[`${n}-item, ${n}-submenu-title`]:h&&c?{width:`calc(100% + ${h}px)`}:{},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${c}px solid ${r}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${m} ${p}`,`opacity ${m} ${p}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:P}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${m} ${f}`,`opacity ${m} ${f}`].join(",")}}}}}};const D=t=>{const{componentCls:e,itemHeight:n,itemMarginInline:i,padding:r,menuArrowSize:o,marginXS:a,itemMarginBlock:s}=t;return{[`${e}-item`]:{position:"relative",overflow:"hidden"},[`${e}-item, ${e}-submenu-title`]:{height:n,lineHeight:`${n}px`,paddingInline:r,overflow:"hidden",textOverflow:"ellipsis",marginInline:i,marginBlock:s,width:`calc(100% - ${2*i}px)`},[`> ${e}-item,\n > ${e}-submenu > ${e}-submenu-title`]:{height:n,lineHeight:`${n}px`},[`${e}-item-group-list ${e}-submenu-title,\n ${e}-submenu-title`]:{paddingInlineEnd:r+o+a}}};var R=t=>{const{componentCls:e,iconCls:n,itemHeight:i,colorTextLightSolid:r,dropdownWidth:o,controlHeightLG:a,motionDurationMid:s,motionEaseOut:l,paddingXL:u,itemMarginInline:c,fontSizeLG:h,motionDurationSlow:d,paddingXS:f,boxShadowSecondary:p,collapsedWidth:g,collapsedIconSize:m}=t,v={height:i,lineHeight:`${i}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[e]:{"&-inline, &-vertical":Object.assign({[`&${e}-root`]:{boxShadow:"none"}},D(t))},[`${e}-submenu-popup`]:{[`${e}-vertical`]:Object.assign(Object.assign({},D(t)),{boxShadow:p})}},{[`${e}-submenu-popup ${e}-vertical${e}-sub`]:{minWidth:o,maxHeight:`calc(100vh - ${2.5*a}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${e}-inline`]:{width:"100%",[`&${e}-root`]:{[`${e}-item, ${e}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${d}`,`background ${d}`,`padding ${s} ${l}`].join(","),[`> ${e}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${e}-sub${e}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${e}-submenu > ${e}-submenu-title`]:v,[`& ${e}-item-group-title`]:{paddingInlineStart:u}},[`${e}-item`]:v}},{[`${e}-inline-collapsed`]:{width:g,[`&${e}-root`]:{[`${e}-item, ${e}-submenu ${e}-submenu-title`]:{[`> ${e}-inline-collapsed-noicon`]:{fontSize:h,textAlign:"center"}}},[`> ${e}-item,\n > ${e}-item-group > ${e}-item-group-list > ${e}-item,\n > ${e}-item-group > ${e}-item-group-list > ${e}-submenu > ${e}-submenu-title,\n > ${e}-submenu > ${e}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${h/2}px - ${c}px)`,textOverflow:"clip",[`\n ${e}-submenu-arrow,\n ${e}-submenu-expand-icon\n `]:{opacity:0},[`${e}-item-icon, ${n}`]:{margin:0,fontSize:m,lineHeight:`${i}px`,"+ span":{display:"inline-block",opacity:0}}},[`${e}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${e}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:r}},[`${e}-item-group-title`]:Object.assign(Object.assign({},A.vS),{paddingInline:f})}}]};const F=t=>{const{componentCls:e,motionDurationSlow:n,motionDurationMid:i,motionEaseInOut:r,motionEaseOut:o,iconCls:a,iconSize:s,iconMarginInlineEnd:l}=t;return{[`${e}-item, ${e}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding ${n} ${r}`].join(","),[`${e}-item-icon, ${a}`]:{minWidth:s,fontSize:s,transition:[`font-size ${i} ${o}`,`margin ${n} ${r}`,`color ${n}`].join(","),"+ span":{marginInlineStart:l,opacity:1,transition:[`opacity ${n} ${r}`,`margin ${n}`,`color ${n}`].join(",")}},[`${e}-item-icon`]:Object.assign({},(0,A.Ro)()),[`&${e}-item-only-child`]:{[`> ${a}, > ${e}-item-icon`]:{marginInlineEnd:0}}},[`${e}-item-disabled, ${e}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${e}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},z=t=>{const{componentCls:e,motionDurationSlow:n,motionEaseInOut:i,borderRadius:r,menuArrowSize:o,menuArrowOffset:a}=t;return{[`${e}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:t.margin,width:o,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${i}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:.6*o,height:.15*o,backgroundColor:"currentcolor",borderRadius:r,transition:[`background ${n} ${i}`,`transform ${n} ${i}`,`top ${n} ${i}`,`color ${n} ${i}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${a})`},"&::after":{transform:`rotate(-45deg) translateY(${a})`}}}}},G=t=>{const{antCls:e,componentCls:n,fontSize:i,motionDurationSlow:r,motionDurationMid:o,motionEaseInOut:a,paddingXS:s,padding:l,colorSplit:u,lineWidth:c,zIndexPopup:h,borderRadiusLG:d,subMenuItemBorderRadius:f,menuArrowSize:p,menuArrowOffset:g,lineType:m,menuPanelMaskInset:v,groupTitleLineHeight:y,groupTitleFontSize:w}=t;return[{"":{[`${n}`]:Object.assign(Object.assign({},(0,A.dF)()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,A.Wf)(t)),(0,A.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:i,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${r} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:t.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${s}px ${l}px`,fontSize:w,lineHeight:y,transition:`all ${r}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${r} ${a}`,`background ${r} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${r} ${a}`,`background ${r} ${a}`,`padding ${o} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${r} ${a}`,`padding ${r} ${a}`].join(",")},[`${n}-title-content`]:{transition:`color ${r}`},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:u,borderStyle:m,borderWidth:0,borderTopWidth:c,marginBlock:c,padding:0,"&-dashed":{borderStyle:"dashed"}}}),F(t)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${2*i}px ${l}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:h,borderRadius:d,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${v}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:v},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:t.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:t.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:t.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:t.paddingXS},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:d},F(t)),z(t)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:f},[`${n}-submenu-title::after`]:{transition:`transform ${r} ${a}`}})}}),z(t)),{[`&-inline-collapsed ${n}-submenu-arrow,\n &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${g})`},"&::after":{transform:`rotate(45deg) translateX(-${g})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(-${.2*p}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${g})`},"&::before":{transform:`rotate(45deg) translateX(${g})`}}})},{[`${e}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]};var U=(t,e)=>(0,T.Z)("Menu",(t=>{if(!1===e)return[];const{colorBgElevated:n,colorPrimary:i,colorTextLightSolid:r,controlHeightLG:o,fontSize:a,darkItemColor:s,darkDangerItemColor:l,darkItemBg:u,darkSubMenuItemBg:c,darkItemSelectedColor:h,darkItemSelectedBg:d,darkDangerItemSelectedBg:f,darkItemHoverBg:p,darkGroupTitleColor:g,darkItemHoverColor:m,darkItemDisabledColor:v,darkDangerItemHoverColor:y,darkDangerItemSelectedColor:w,darkDangerItemActiveBg:b}=t,x=a/7*5,S=(0,N.TS)(t,{menuArrowSize:x,menuHorizontalHeight:1.15*o,menuArrowOffset:.25*x+"px",menuPanelMaskInset:-7,menuSubMenuBg:n}),P=(0,N.TS)(S,{itemColor:s,itemHoverColor:m,groupTitleColor:g,itemSelectedColor:h,itemBg:u,popupBg:u,subMenuItemBg:c,itemActiveBg:"transparent",itemSelectedBg:d,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:p,itemDisabledColor:v,dangerItemColor:l,dangerItemHoverColor:y,dangerItemSelectedColor:w,dangerItemActiveBg:b,dangerItemSelectedBg:f,menuSubMenuBg:c,horizontalItemSelectedColor:r,horizontalItemSelectedBg:i});return[G(S),j(S),R(S),O(S,"light"),O(P,"dark"),I(S),(0,M.Z)(S),(0,E.oN)(S,"slide-up"),(0,E.oN)(S,"slide-down"),(0,L._y)(S,"zoom-big")]}),(t=>{const{colorPrimary:e,colorError:n,colorTextDisabled:i,colorErrorBg:r,colorText:o,colorTextDescription:a,colorBgContainer:s,colorFillAlter:l,colorFillContent:u,lineWidth:c,lineWidthBold:h,controlItemBgActive:d,colorBgTextHover:f,controlHeightLG:p,lineHeight:g,colorBgElevated:m,marginXXS:v,padding:y,fontSize:w,controlHeightSM:b,fontSizeLG:x,colorTextLightSolid:S,colorErrorHover:P}=t,k=new C.C(S).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:t.zIndexPopupBase+50,radiusItem:t.borderRadiusLG,itemBorderRadius:t.borderRadiusLG,radiusSubMenuItem:t.borderRadiusSM,subMenuItemBorderRadius:t.borderRadiusSM,colorItemText:o,itemColor:o,colorItemTextHover:o,itemHoverColor:o,colorItemTextHoverHorizontal:e,horizontalItemHoverColor:e,colorGroupTitle:a,groupTitleColor:a,colorItemTextSelected:e,itemSelectedColor:e,colorItemTextSelectedHorizontal:e,horizontalItemSelectedColor:e,colorItemBg:s,itemBg:s,colorItemBgHover:f,itemHoverBg:f,colorItemBgActive:u,itemActiveBg:d,colorSubItemBg:l,subMenuItemBg:l,colorItemBgSelected:d,itemSelectedBg:d,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:h,activeBarHeight:h,colorActiveBarBorderSize:c,activeBarBorderWidth:c,colorItemTextDisabled:i,itemDisabledColor:i,colorDangerItemText:n,dangerItemColor:n,colorDangerItemTextHover:n,dangerItemHoverColor:n,colorDangerItemTextSelected:n,dangerItemSelectedColor:n,colorDangerItemBgActive:r,dangerItemActiveBg:r,colorDangerItemBgSelected:r,dangerItemSelectedBg:r,itemMarginInline:t.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:p,groupTitleLineHeight:g,collapsedWidth:2*p,popupBg:m,itemMarginBlock:v,itemPaddingInline:y,horizontalLineHeight:1.15*p+"px",iconSize:w,iconMarginInlineEnd:b-w,collapsedIconSize:x,groupTitleFontSize:w,darkItemDisabledColor:new C.C(S).setAlpha(.25).toRgbString(),darkItemColor:k,darkDangerItemColor:n,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:S,darkItemSelectedBg:e,darkDangerItemSelectedBg:n,darkItemHoverBg:"transparent",darkGroupTitleColor:k,darkItemHoverColor:S,darkDangerItemHoverColor:P,darkDangerItemSelectedColor:S,darkDangerItemActiveBg:n}}),{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(t),H=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};const _=(0,r.forwardRef)(((t,e)=>{var n,o;const a=r.useContext(x.Z),u=a||{},{getPrefixCls:c,getPopupContainer:h,direction:f,menu:m}=r.useContext(l.E_),v=c(),{prefixCls:S,className:P,style:C,theme:A="light",expandIcon:M,_internalDisableMenuItemTitleTooltip:E,inlineCollapsed:L,siderCollapsed:T,items:N,children:j,rootClassName:I,mode:B,selectable:O,onClick:D,overflowedIndicatorPopupClassName:R}=t,F=H(t,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),z=(0,d.Z)(F,["collapsedWidth"]),G=k(N)||j;null===(n=u.validator)||void 0===n||n.call(u,{mode:B});const _=(0,w.zX)((function(){var t;null==D||D.apply(void 0,arguments),null===(t=u.onClick)||void 0===t||t.call(u)})),Z=u.mode||B,W=null!=O?O:u.selectable,V=r.useMemo((()=>void 0!==T?T:L),[L,T]),Y={horizontal:{motionName:`${v}-slide-up`},inline:(0,b.Z)(v),other:{motionName:`${v}-zoom-big`}},X=c("menu",S||u.prefixCls),[q,K]=U(X,!a),Q=s()(`${X}-${A}`,null==m?void 0:m.className,P);let J;if("function"==typeof M)J=M;else if(null===M||!1===M)J=null;else if(null===u.expandIcon||!1===u.expandIcon)J=null;else{const t=null!=M?M:u.expandIcon;J=(0,p.Tm)(t,{className:s()(`${X}-submenu-expand-icon`,(0,p.l$)(t)?null===(o=t.props)||void 0===o?void 0:o.className:"")})}const $=r.useMemo((()=>({prefixCls:X,inlineCollapsed:V||!1,direction:f,firstLevel:!0,theme:A,mode:Z,disableMenuItemTitleTooltip:E})),[X,V,f,E,A]);return q(r.createElement(x.Z.Provider,{value:null},r.createElement(g.Provider,{value:$},r.createElement(i.ZP,Object.assign({getPopupContainer:h,overflowedIndicator:r.createElement(y.Z,null),overflowedIndicatorPopupClassName:s()(X,`${X}-${A}`,R),mode:Z,selectable:W,onClick:_},z,{inlineCollapsed:V,style:Object.assign(Object.assign({},null==m?void 0:m.style),C),className:Q,prefixCls:X,direction:f,defaultMotions:Y,expandIcon:J,ref:e,rootClassName:s()(I,K)}),G))))}));var Z=_;const W=(0,r.forwardRef)(((t,e)=>{const n=(0,r.useRef)(null),i=r.useContext(o.D);return(0,r.useImperativeHandle)(e,(()=>({menu:n.current,focus:t=>{var e;null===(e=n.current)||void 0===e||e.focus(t)}}))),r.createElement(Z,Object.assign({ref:n},t,i))}));W.Item=m,W.SubMenu=v,W.Divider=c,W.ItemGroup=i.BW;var V=W},91454:function(t,e,n){"use strict";n.d(e,{Z:function(){return M}});var i=n(92310),r=n.n(i),o=n(59301);const a=t=>t?"function"==typeof t?t():t:null;var s=n(62892),l=n(36355),u=n(6848),c=n(55477),h=n(17313),d=n(29878),f=n(60293),p=n(33166),g=n(83116),m=n(37613);const v=t=>{const{componentCls:e,popoverColor:n,minWidth:i,fontWeightStrong:r,popoverPadding:o,boxShadowSecondary:a,colorTextHeading:s,borderRadiusLG:l,zIndexPopup:u,marginXS:c,colorBgElevated:d,popoverBg:p}=t;return[{[e]:Object.assign(Object.assign({},(0,h.Wf)(t)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:u,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":d,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${e}-content`]:{position:"relative"},[`${e}-inner`]:{backgroundColor:p,backgroundClip:"padding-box",borderRadius:l,boxShadow:a,padding:o},[`${e}-title`]:{minWidth:i,marginBottom:c,color:s,fontWeight:r},[`${e}-inner-content`]:{color:n}})},(0,f.ZP)(t,{colorBg:"var(--antd-arrow-background-color)"}),{[`${e}-pure`]:{position:"relative",maxWidth:"none",margin:t.sizePopupArrow,display:"inline-block",[`${e}-content`]:{display:"inline-block"}}}]},y=t=>{const{componentCls:e}=t;return{[e]:p.i.map((n=>{const i=t[`${n}6`];return{[`&${e}-${n}`]:{"--antd-arrow-background-color":i,[`${e}-inner`]:{backgroundColor:i},[`${e}-arrow`]:{background:"transparent"}}}}))}},w=t=>{const{componentCls:e,lineWidth:n,lineType:i,colorSplit:r,paddingSM:o,controlHeight:a,fontSize:s,lineHeight:l,padding:u}=t,c=a-Math.round(s*l);return{[e]:{[`${e}-inner`]:{padding:0},[`${e}-title`]:{margin:0,padding:`${c/2}px ${u}px ${c/2-n}px`,borderBottom:`${n}px ${i} ${r}`},[`${e}-inner-content`]:{padding:`${o}px ${u}px`}}}};var b=(0,g.Z)("Popover",(t=>{const{colorBgElevated:e,colorText:n,wireframe:i}=t,r=(0,m.TS)(t,{popoverPadding:12,popoverBg:e,popoverColor:n});return[v(r),y(r),i&&w(r),(0,d._y)(r,"zoom-big")]}),(t=>({width:177,minWidth:177,zIndexPopup:t.zIndexPopupBase+30})),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]}),x=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};const S=t=>{const{hashId:e,prefixCls:n,className:i,style:s,placement:l="top",title:u,content:h,children:d}=t;return o.createElement("div",{className:r()(e,n,`${n}-pure`,`${n}-placement-${l}`,i),style:s},o.createElement("div",{className:`${n}-arrow`}),o.createElement(c.G,Object.assign({},t,{className:e,prefixCls:n}),d||((t,e,n)=>{if(e||n)return o.createElement(o.Fragment,null,e&&o.createElement("div",{className:`${t}-title`},a(e)),o.createElement("div",{className:`${t}-inner-content`},a(n)))})(n,u,h)))};var P=t=>{const{prefixCls:e}=t,n=x(t,["prefixCls"]),{getPrefixCls:i}=o.useContext(l.E_),r=i("popover",e),[a,s]=b(r);return a(o.createElement(S,Object.assign({},n,{prefixCls:r,hashId:s})))},k=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};const C=t=>{let{title:e,content:n,prefixCls:i}=t;return o.createElement(o.Fragment,null,e&&o.createElement("div",{className:`${i}-title`},a(e)),o.createElement("div",{className:`${i}-inner-content`},a(n)))},A=o.forwardRef(((t,e)=>{const{prefixCls:n,title:i,content:a,overlayClassName:c,placement:h="top",trigger:d="hover",mouseEnterDelay:f=.1,mouseLeaveDelay:p=.1,overlayStyle:g={}}=t,m=k(t,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:v}=o.useContext(l.E_),y=v("popover",n),[w,x]=b(y),S=v(),P=r()(c,x);return w(o.createElement(u.Z,Object.assign({placement:h,trigger:d,mouseEnterDelay:f,mouseLeaveDelay:p,overlayStyle:g},m,{prefixCls:y,overlayClassName:P,ref:e,overlay:i||a?o.createElement(C,{prefixCls:y,title:i,content:a}):null,transitionName:(0,s.m)(S,"zoom-big",m.transitionName),"data-popover-inject":!0})))}));A._InternalPanelDoNotUseOrYouWillBeFired=P;var M=A},93948:function(t,e,n){"use strict";n.d(e,{Z:function(){return et}});var i=n(59301),r=n(29679),o=n(40001),a=n(19248),s=n(99267),l=n(92310),u=n.n(l),c=n(2738),h=n(36355),d=n(14809),f=n(20439),p=n(62646),g={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},m=function(){var t=(0,i.useRef)([]),e=(0,i.useRef)(null);return(0,i.useEffect)((function(){var n=Date.now(),i=!1;t.current.forEach((function(t){if(t){i=!0;var r=t.style;r.transitionDuration=".3s, .3s, .3s, .06s",e.current&&n-e.current<100&&(r.transitionDuration="0s, 0s")}})),i&&(e.current=Date.now())})),t.current};var v=n(93664),y=n(50298),w=n(47273),b=0,x=(0,w.Z)();var S=function(t){var e=i.useState(),n=(0,y.Z)(e,2),r=n[0],o=n[1];return i.useEffect((function(){var t;o("rc_progress_".concat((x?(t=b,b+=1):t="TEST_OR_SSR",t)))}),[]),t||r},P=function(t){var e=t.bg,n=t.children;return i.createElement("div",{style:{width:"100%",height:"100%",background:e}},n)};function k(t,e){return Object.keys(t).map((function(n){var i=parseFloat(n),r="".concat(Math.floor(i*e),"%");return"".concat(t[n]," ").concat(r)}))}var C=i.forwardRef((function(t,e){var n=t.prefixCls,r=t.color,o=t.gradientId,a=t.radius,s=t.style,l=t.ptg,u=t.strokeLinecap,c=t.strokeWidth,h=t.size,d=t.gapDegree,f=r&&"object"===(0,v.Z)(r),p=f?"#FFF":void 0,g=h/2,m=i.createElement("circle",{className:"".concat(n,"-circle-path"),r:a,cx:g,cy:g,stroke:p,strokeLinecap:u,strokeWidth:c,opacity:0===l?0:1,style:s,ref:e});if(!f)return m;var y="".concat(o,"-conic"),w=d?"".concat(180+d/2,"deg"):"0deg",b=k(r,(360-d)/360),x=k(r,1),S="conic-gradient(from ".concat(w,", ").concat(b.join(", "),")"),C="linear-gradient(to ".concat(d?"bottom":"top",", ").concat(x.join(", "),")");return i.createElement(i.Fragment,null,i.createElement("mask",{id:y},m),i.createElement("foreignObject",{x:0,y:0,width:h,height:h,mask:"url(#".concat(y,")")},i.createElement(P,{bg:C},i.createElement(P,{bg:S}))))})),A=100,M=function(t,e,n,i,r,o,a,s,l,u){var c=arguments.length>10&&void 0!==arguments[10]?arguments[10]:0,h=n/100*360*((360-o)/360),d=0===o?0:{bottom:0,top:180,left:90,right:-90}[a],f=(100-i)/100*e;"round"===l&&100!==i&&(f+=u/2)>=e&&(f=e-.01);var p=50;return{stroke:"string"==typeof s?s:void 0,strokeDasharray:"".concat(e,"px ").concat(t),strokeDashoffset:f+c,transform:"rotate(".concat(r+h+d,"deg)"),transformOrigin:"".concat(p,"px ").concat(p,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},E=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function L(t){var e=null!=t?t:[];return Array.isArray(e)?e:[e]}var T=function(t){var e,n,r,o=(0,f.Z)((0,f.Z)({},g),t),a=o.id,s=o.prefixCls,l=o.steps,c=o.strokeWidth,h=o.trailWidth,y=o.gapDegree,w=void 0===y?0:y,b=o.gapPosition,x=o.trailColor,P=o.strokeLinecap,k=o.style,T=o.className,N=o.strokeColor,j=o.percent,I=(0,p.Z)(o,E),B=S(a),O="".concat(B,"-gradient"),D=50-c/2,R=2*Math.PI*D,F=w>0?90+w/2:-90,z=R*((360-w)/360),G="object"===(0,v.Z)(l)?l:{count:l,space:2},U=G.count,H=G.space,_=L(j),Z=L(N),W=Z.find((function(t){return t&&"object"===(0,v.Z)(t)})),V=W&&"object"===(0,v.Z)(W)?"butt":P,Y=M(R,z,0,100,F,w,b,x,V,c),X=m();return i.createElement("svg",(0,d.Z)({className:u()("".concat(s,"-circle"),T),viewBox:"0 0 ".concat(A," ").concat(A),style:k,id:a,role:"presentation"},I),!U&&i.createElement("circle",{className:"".concat(s,"-circle-trail"),r:D,cx:50,cy:50,stroke:x,strokeLinecap:V,strokeWidth:h||c,style:Y}),U?(e=Math.round(U*(_[0]/100)),n=100/U,r=0,new Array(U).fill(null).map((function(t,o){var a=o<=e-1?Z[0]:x,l=a&&"object"===(0,v.Z)(a)?"url(#".concat(O,")"):void 0,u=M(R,z,r,n,F,w,b,a,"butt",c,H);return r+=100*(z-u.strokeDashoffset+H)/z,i.createElement("circle",{key:o,className:"".concat(s,"-circle-path"),r:D,cx:50,cy:50,stroke:l,strokeWidth:c,opacity:1,style:u,ref:function(t){X[o]=t}})}))):function(){var t=0;return _.map((function(e,n){var r=Z[n]||Z[Z.length-1],o=M(R,z,t,e,F,w,b,r,V,c);return t+=e,i.createElement(C,{key:n,color:r,ptg:e,radius:D,prefixCls:s,gradientId:O,style:o,strokeLinecap:V,strokeWidth:c,gapDegree:w,ref:function(t){X[n]=t},size:A})})).reverse()}())},N=n(6848),j=n(30071);function I(t){return!t||t<0?0:t>100?100:t}function B(t){let{success:e,successPercent:n}=t,i=n;return e&&"progress"in e&&(i=e.progress),e&&"percent"in e&&(i=e.percent),i}const O=t=>{let{percent:e,success:n,successPercent:i}=t;const r=I(B({success:n,successPercent:i}));return[r,I(I(e)-r)]},D=(t,e,n)=>{var i,r,o,a;let s=-1,l=-1;if("step"===e){const e=n.steps,i=n.strokeWidth;"string"==typeof t||void 0===t?(s="small"===t?2:14,l=null!=i?i:8):"number"==typeof t?[s,l]=[t,t]:[s=14,l=8]=t,s*=e}else if("line"===e){const e=null==n?void 0:n.strokeWidth;"string"==typeof t||void 0===t?l=e||("small"===t?6:8):"number"==typeof t?[s,l]=[t,t]:[s=-1,l=8]=t}else"circle"!==e&&"dashboard"!==e||("string"==typeof t||void 0===t?[s,l]="small"===t?[60,60]:[120,120]:"number"==typeof t?[s,l]=[t,t]:(s=null!==(r=null!==(i=t[0])&&void 0!==i?i:t[1])&&void 0!==r?r:120,l=null!==(a=null!==(o=t[0])&&void 0!==o?o:t[1])&&void 0!==a?a:120));return[s,l]};var R=t=>{const{prefixCls:e,trailColor:n=null,strokeLinecap:r="round",gapPosition:o,gapDegree:a,width:s=120,type:l,children:c,success:h,size:d=s}=t,[f,p]=D(d,"circle");let{strokeWidth:g}=t;void 0===g&&(g=Math.max((t=>3/t*100)(f),6));const m={width:f,height:p,fontSize:.15*f+6},v=i.useMemo((()=>a||0===a?a:"dashboard"===l?75:void 0),[a,l]),y=o||"dashboard"===l&&"bottom"||void 0,w="[object Object]"===Object.prototype.toString.call(t.strokeColor),b=(t=>{let{success:e={},strokeColor:n}=t;const{strokeColor:i}=e;return[i||j.ez.green,n||null]})({success:h,strokeColor:t.strokeColor}),x=u()(`${e}-inner`,{[`${e}-circle-gradient`]:w}),S=i.createElement(T,{percent:O(t),strokeWidth:g,trailWidth:g,strokeColor:b,strokeLinecap:r,trailColor:n,prefixCls:e,gapDegree:v,gapPosition:y});return i.createElement("div",{className:x,style:m},f<=20?i.createElement(N.Z,{title:c},i.createElement("span",null,S)):i.createElement(i.Fragment,null,S,c))},F=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};const z=(t,e)=>{const{from:n=j.ez.blue,to:i=j.ez.blue,direction:r=("rtl"===e?"to left":"to right")}=t,o=F(t,["from","to","direction"]);if(0!==Object.keys(o).length){return{backgroundImage:`linear-gradient(${r}, ${(t=>{let e=[];return Object.keys(t).forEach((n=>{const i=parseFloat(n.replace(/%/g,""));isNaN(i)||e.push({key:i,value:t[n]})})),e=e.sort(((t,e)=>t.key-e.key)),e.map((t=>{let{key:e,value:n}=t;return`${n} ${e}%`})).join(", ")})(o)})`}}return{backgroundImage:`linear-gradient(${r}, ${n}, ${i})`}};var G=t=>{const{prefixCls:e,direction:n,percent:r,size:o,strokeWidth:a,strokeColor:s,strokeLinecap:l="round",children:u,trailColor:c=null,success:h}=t,d=s&&"string"!=typeof s?z(s,n):{backgroundColor:s},f="square"===l||"butt"===l?0:void 0,p={backgroundColor:c||void 0,borderRadius:f},g=null!=o?o:[-1,a||("small"===o?6:8)],[m,v]=D(g,"line",{strokeWidth:a});const y=Object.assign({width:`${I(r)}%`,height:v,borderRadius:f},d),w=B(t),b={width:`${I(w)}%`,height:v,borderRadius:f,backgroundColor:null==h?void 0:h.strokeColor},x={width:m<0?"100%":m,height:v};return i.createElement(i.Fragment,null,i.createElement("div",{className:`${e}-outer`,style:x},i.createElement("div",{className:`${e}-inner`,style:p},i.createElement("div",{className:`${e}-bg`,style:y}),void 0!==w?i.createElement("div",{className:`${e}-success-bg`,style:b}):null)),u)};var U=t=>{const{size:e,steps:n,percent:r=0,strokeWidth:o=8,strokeColor:a,trailColor:s=null,prefixCls:l,children:c}=t,h=Math.round(n*(r/100)),d=null!=e?e:["small"===e?2:14,o],[f,p]=D(d,"step",{steps:n,strokeWidth:o}),g=f/n,m=new Array(n);for(let t=0;t<n;t++){const e=Array.isArray(a)?a[t]:a;m[t]=i.createElement("div",{key:t,className:u()(`${l}-steps-item`,{[`${l}-steps-item-active`]:t<=h-1}),style:{backgroundColor:t<=h-1?e:s,width:g,height:p}})}return i.createElement("div",{className:`${l}-steps-outer`},m,c)},H=n(66604),_=n(17313),Z=n(83116),W=n(37613);const V=t=>{const e=t?"100%":"-100%";return new H.E4(`antProgress${t?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${e}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${e}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Y=t=>{const{componentCls:e,iconCls:n}=t;return{[e]:Object.assign(Object.assign({},(0,_.Wf)(t)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:t.fontSize,marginInlineEnd:t.marginXS,marginBottom:t.marginXS},[`${e}-outer`]:{display:"inline-block",width:"100%"},[`&${e}-show-info`]:{[`${e}-outer`]:{marginInlineEnd:`calc(-2em - ${t.marginXS}px)`,paddingInlineEnd:`calc(2em + ${t.paddingXS}px)`}},[`${e}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:t.remainingColor,borderRadius:t.lineBorderRadius},[`${e}-inner:not(${e}-circle-gradient)`]:{[`${e}-circle-path`]:{stroke:t.defaultColor}},[`${e}-success-bg, ${e}-bg`]:{position:"relative",backgroundColor:t.defaultColor,borderRadius:t.lineBorderRadius,transition:`all ${t.motionDurationSlow} ${t.motionEaseInOutCirc}`},[`${e}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:t.colorSuccess},[`${e}-text`]:{display:"inline-block",width:"2em",marginInlineStart:t.marginXS,color:t.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:t.fontSize}},[`&${e}-status-active`]:{[`${e}-bg::before`]:{position:"absolute",inset:0,backgroundColor:t.colorBgContainer,borderRadius:t.lineBorderRadius,opacity:0,animationName:V(),animationDuration:t.progressActiveMotionDuration,animationTimingFunction:t.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${e}-rtl${e}-status-active`]:{[`${e}-bg::before`]:{animationName:V(!0)}},[`&${e}-status-exception`]:{[`${e}-bg`]:{backgroundColor:t.colorError},[`${e}-text`]:{color:t.colorError}},[`&${e}-status-exception ${e}-inner:not(${e}-circle-gradient)`]:{[`${e}-circle-path`]:{stroke:t.colorError}},[`&${e}-status-success`]:{[`${e}-bg`]:{backgroundColor:t.colorSuccess},[`${e}-text`]:{color:t.colorSuccess}},[`&${e}-status-success ${e}-inner:not(${e}-circle-gradient)`]:{[`${e}-circle-path`]:{stroke:t.colorSuccess}}})}},X=t=>{const{componentCls:e,iconCls:n}=t;return{[e]:{[`${e}-circle-trail`]:{stroke:t.remainingColor},[`&${e}-circle ${e}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${e}-circle ${e}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:t.circleTextColor,fontSize:t.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:t.fontSize/t.fontSizeSM+"em"}},[`${e}-circle&-status-exception`]:{[`${e}-text`]:{color:t.colorError}},[`${e}-circle&-status-success`]:{[`${e}-text`]:{color:t.colorSuccess}}},[`${e}-inline-circle`]:{lineHeight:1,[`${e}-inner`]:{verticalAlign:"bottom"}}}},q=t=>{const{componentCls:e}=t;return{[e]:{[`${e}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:t.progressStepMinWidth,marginInlineEnd:t.progressStepMarginInlineEnd,backgroundColor:t.remainingColor,transition:`all ${t.motionDurationSlow}`,"&-active":{backgroundColor:t.defaultColor}}}}}},K=t=>{const{componentCls:e,iconCls:n}=t;return{[e]:{[`${e}-small&-line, ${e}-small&-line ${e}-text ${n}`]:{fontSize:t.fontSizeSM}}}};var Q=(0,Z.Z)("Progress",(t=>{const e=t.marginXXS/2,n=(0,W.TS)(t,{progressStepMarginInlineEnd:e,progressStepMinWidth:e,progressActiveMotionDuration:"2.4s"});return[Y(n),X(n),q(n),K(n)]}),(t=>({circleTextColor:t.colorText,defaultColor:t.colorInfo,remainingColor:t.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"}))),J=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};const $=["normal","exception","active","success"],tt=i.forwardRef(((t,e)=>{const{prefixCls:n,className:l,rootClassName:d,steps:f,strokeColor:p,percent:g=0,size:m="default",showInfo:v=!0,type:y="line",status:w,format:b,style:x}=t,S=J(t,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),P=i.useMemo((()=>{var e,n;const i=B(t);return parseInt(void 0!==i?null===(e=null!=i?i:0)||void 0===e?void 0:e.toString():null===(n=null!=g?g:0)||void 0===n?void 0:n.toString(),10)}),[g,t.success,t.successPercent]),k=i.useMemo((()=>!$.includes(w)&&P>=100?"success":w||"normal"),[w,P]),{getPrefixCls:C,direction:A,progress:M}=i.useContext(h.E_),E=C("progress",n),[L,T]=Q(E),N=i.useMemo((()=>{if(!v)return null;const e=B(t);let n;const l="line"===y;return b||"exception"!==k&&"success"!==k?n=(b||(t=>`${t}%`))(I(g),I(e)):"exception"===k?n=l?i.createElement(a.Z,null):i.createElement(s.Z,null):"success"===k&&(n=l?i.createElement(r.Z,null):i.createElement(o.Z,null)),i.createElement("span",{className:`${E}-text`,title:"string"==typeof n?n:void 0},n)}),[v,g,P,k,y,E,b]);const j=Array.isArray(p)?p[0]:p,O="string"==typeof p||Array.isArray(p)?p:void 0;let F;"line"===y?F=f?i.createElement(U,Object.assign({},t,{strokeColor:O,prefixCls:E,steps:f}),N):i.createElement(G,Object.assign({},t,{strokeColor:j,prefixCls:E,direction:A}),N):"circle"!==y&&"dashboard"!==y||(F=i.createElement(R,Object.assign({},t,{strokeColor:j,prefixCls:E,progressStatus:k}),N));const z=u()(E,`${E}-status-${k}`,`${E}-${("dashboard"===y?"circle":f&&"steps")||y}`,{[`${E}-inline-circle`]:"circle"===y&&D(m,"circle")[0]<=20,[`${E}-show-info`]:v,[`${E}-${m}`]:"string"==typeof m,[`${E}-rtl`]:"rtl"===A},null==M?void 0:M.className,l,d,T);return L(i.createElement("div",Object.assign({ref:e,style:Object.assign(Object.assign({},null==M?void 0:M.style),x),className:z,role:"progressbar","aria-valuenow":P},(0,c.Z)(S,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),F))}));var et=tt},81327:function(t,e,n){"use strict";n.d(e,{Z:function(){return y}});var i=n(59301),r=n(92310),o=n.n(r),a=n(11592),s=n(36355),l=n(33234);const u=i.createContext({latestIndex:0}),c=u.Provider;var h=t=>{let{className:e,index:n,children:r,split:o,style:a}=t;const{latestIndex:s}=i.useContext(u);return null==r?null:i.createElement(i.Fragment,null,i.createElement("div",{className:e,style:a},r),n<s&&o&&i.createElement("span",{className:`${e}-split`},o))},d=n(2856);function f(t){return["small","middle","large"].includes(t)}function p(t){return!!t&&("number"==typeof t&&!Number.isNaN(t))}var g=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};const m=i.forwardRef(((t,e)=>{var n,r;const{getPrefixCls:l,space:u,direction:m}=i.useContext(s.E_),{size:v=(null==u?void 0:u.size)||"small",align:y,className:w,rootClassName:b,children:x,direction:S="horizontal",prefixCls:P,split:k,style:C,wrap:A=!1,classNames:M,styles:E}=t,L=g(t,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[T,N]=Array.isArray(v)?v:[v,v],j=f(N),I=f(T),B=p(N),O=p(T),D=(0,a.Z)(x,{keepEmpty:!0}),R=void 0===y&&"horizontal"===S?"center":y,F=l("space",P),[z,G]=(0,d.Z)(F),U=o()(F,null==u?void 0:u.className,G,`${F}-${S}`,{[`${F}-rtl`]:"rtl"===m,[`${F}-align-${R}`]:R,[`${F}-gap-row-${N}`]:j,[`${F}-gap-col-${T}`]:I},w,b),H=o()(`${F}-item`,null!==(n=null==M?void 0:M.item)&&void 0!==n?n:null===(r=null==u?void 0:u.classNames)||void 0===r?void 0:r.item);let _=0;const Z=D.map(((t,e)=>{var n,r;null!=t&&(_=e);const o=t&&t.key||`${H}-${e}`;return i.createElement(h,{className:H,key:o,index:e,split:k,style:null!==(n=null==E?void 0:E.item)&&void 0!==n?n:null===(r=null==u?void 0:u.styles)||void 0===r?void 0:r.item},t)})),W=i.useMemo((()=>({latestIndex:_})),[_]);if(0===D.length)return null;const V={};return A&&(V.flexWrap="wrap"),!I&&O&&(V.columnGap=T),!j&&B&&(V.rowGap=N),z(i.createElement("div",Object.assign({ref:e,className:U,style:Object.assign(Object.assign(Object.assign({},V),null==u?void 0:u.style),C)},L),i.createElement(c,{value:W},Z)))}));const v=m;v.Compact=l.ZP;var y=v},8378:function(t,e){"use strict";e.Z=t=>({[t.componentCls]:{[`${t.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${t.motionDurationMid} ${t.motionEaseInOut},\n opacity ${t.motionDurationMid} ${t.motionEaseInOut} !important`}},[`${t.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${t.motionDurationMid} ${t.motionEaseInOut},\n opacity ${t.motionDurationMid} ${t.motionEaseInOut} !important`}}})},92899:function(t,e,n){"use strict";n.d(e,{Fm:function(){return d}});var i=n(66604),r=n(95406);const o=new i.E4("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),a=new i.E4("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),s=new i.E4("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),l=new i.E4("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),u=new i.E4("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),c=new i.E4("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),h={"move-up":{inKeyframes:new i.E4("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),outKeyframes:new i.E4("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}})},"move-down":{inKeyframes:o,outKeyframes:a},"move-left":{inKeyframes:s,outKeyframes:l},"move-right":{inKeyframes:u,outKeyframes:c}},d=(t,e)=>{const{antCls:n}=t,i=`${n}-${e}`,{inKeyframes:o,outKeyframes:a}=h[e];return[(0,r.R)(i,o,a,t.motionDurationMid),{[`\n ${i}-enter,\n ${i}-appear\n `]:{opacity:0,animationTimingFunction:t.motionEaseOutCirc},[`${i}-leave`]:{animationTimingFunction:t.motionEaseInOutCirc}}]}},13826:function(t,e,n){"use strict";n.d(e,{Qt:function(){return s},Uw:function(){return a},fJ:function(){return o},ly:function(){return l},oN:function(){return p}});var i=n(66604),r=n(95406);const o=new i.E4("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),a=new i.E4("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),s=new i.E4("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),l=new i.E4("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),u=new i.E4("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),c=new i.E4("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),h=new i.E4("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),d=new i.E4("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),f={"slide-up":{inKeyframes:o,outKeyframes:a},"slide-down":{inKeyframes:s,outKeyframes:l},"slide-left":{inKeyframes:u,outKeyframes:c},"slide-right":{inKeyframes:h,outKeyframes:d}},p=(t,e)=>{const{antCls:n}=t,i=`${n}-${e}`,{inKeyframes:o,outKeyframes:a}=f[e];return[(0,r.R)(i,o,a,t.motionDurationMid),{[`\n ${i}-enter,\n ${i}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:t.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${i}-leave`]:{animationTimingFunction:t.motionEaseInQuint}}]}},15969:function(t,e,n){"use strict";n.d(e,{N:function(){return i}});const i=t=>({color:t.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${t.motionDurationSlow}`,"&:focus, &:hover":{color:t.colorLinkHover},"&:active":{color:t.colorLinkActive}})},60293:function(t,e,n){"use strict";n.d(e,{qN:function(){return r},ZP:function(){return s},fS:function(){return o}});const i=(t,e,n,i,r)=>{const o=t/2,a=o,s=1*n/Math.sqrt(2),l=o-n*(1-1/Math.sqrt(2)),u=o-e*(1/Math.sqrt(2)),c=n*(Math.sqrt(2)-1)+e*(1/Math.sqrt(2)),h=2*o-u,d=c,f=2*o-s,p=l,g=2*o-0,m=a,v=o*Math.sqrt(2)+n*(Math.sqrt(2)-2),y=n*(Math.sqrt(2)-1);return{pointerEvents:"none",width:t,height:t,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:t,height:t/2,background:i,clipPath:{_multi_value_:!0,value:[`polygon(${y}px 100%, 50% ${y}px, ${2*o-y}px 100%, ${y}px 100%)`,`path('M 0 ${a} A ${n} ${n} 0 0 0 ${s} ${l} L ${u} ${c} A ${e} ${e} 0 0 1 ${h} ${d} L ${f} ${p} A ${n} ${n} 0 0 0 ${g} ${m} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:v,height:v,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${e}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"}}},r=8;function o(t){const e=r,{contentRadius:n,limitVerticalRadius:i}=t,o=n>12?n+2:12;return{dropdownArrowOffset:o,dropdownArrowOffsetVertical:i?e:o}}function a(t,e){return t?e:{}}function s(t,e){const{componentCls:n,sizePopupArrow:r,borderRadiusXS:s,borderRadiusOuter:l,boxShadowPopoverArrow:u}=t,{colorBg:c,contentRadius:h=t.borderRadiusLG,limitVerticalRadius:d,arrowDistance:f=0,arrowPlacement:p={left:!0,right:!0,top:!0,bottom:!0}}=e,{dropdownArrowOffsetVertical:g,dropdownArrowOffset:m}=o({contentRadius:h,limitVerticalRadius:d});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},i(r,s,l,c,u)),{"&:before":{background:c}})]},a(!!p.top,{[[`&-placement-top ${n}-arrow`,`&-placement-topLeft ${n}-arrow`,`&-placement-topRight ${n}-arrow`].join(",")]:{bottom:f,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:m}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:m}}})),a(!!p.bottom,{[[`&-placement-bottom ${n}-arrow`,`&-placement-bottomLeft ${n}-arrow`,`&-placement-bottomRight ${n}-arrow`].join(",")]:{top:f,transform:"translateY(-100%)"},[`&-placement-bottom ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:m}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:m}}})),a(!!p.left,{[[`&-placement-left ${n}-arrow`,`&-placement-leftTop ${n}-arrow`,`&-placement-leftBottom ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:f},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${n}-arrow`]:{top:g},[`&-placement-leftBottom ${n}-arrow`]:{bottom:g}})),a(!!p.right,{[[`&-placement-right ${n}-arrow`,`&-placement-rightTop ${n}-arrow`,`&-placement-rightBottom ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:f},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${n}-arrow`]:{top:g},[`&-placement-rightBottom ${n}-arrow`]:{bottom:g}}))}}},32418:function(t,e,n){"use strict";n.d(e,{Z:function(){return oi}});var i={},r="rc-table-internal-hook",o=n(50298),a=n(6089),s=n(34280),l=n(13697),u=n(59301),c=n(4676);function h(t){var e=u.createContext(void 0);return{Context:e,Provider:function(t){var n=t.value,i=t.children,r=u.useRef(n);r.current=n;var a=u.useState((function(){return{getValue:function(){return r.current},listeners:new Set}})),l=(0,o.Z)(a,1)[0];return(0,s.Z)((function(){(0,c.unstable_batchedUpdates)((function(){l.listeners.forEach((function(t){t(n)}))}))}),[n]),u.createElement(e.Provider,{value:l},i)},defaultValue:t}}function d(t,e){var n=(0,a.Z)("function"==typeof e?e:function(t){if(void 0===e)return t;if(!Array.isArray(e))return t[e];var n={};return e.forEach((function(e){n[e]=t[e]})),n}),i=u.useContext(null==t?void 0:t.Context),r=i||{},c=r.listeners,h=r.getValue,d=u.useRef();d.current=n(i?h():null==t?void 0:t.defaultValue);var f=u.useState({}),p=(0,o.Z)(f,2)[1];return(0,s.Z)((function(){if(i)return c.add(t),function(){c.delete(t)};function t(t){var e=n(t);(0,l.Z)(d.current,e,!0)||p({})}}),[i]),d.current}var f=n(14809),p=n(8654);function g(){var t=u.createContext(null);function e(){return u.useContext(t)}return{makeImmutable:function(n,i){var r=(0,p.Yr)(n),o=function(o,a){var s=r?{ref:a}:{},l=u.useRef(0),c=u.useRef(o);return null!==e()?u.createElement(n,(0,f.Z)({},o,s)):(i&&!i(c.current,o)||(l.current+=1),c.current=o,u.createElement(t.Provider,{value:l.current},u.createElement(n,(0,f.Z)({},o,s))))};return r?u.forwardRef(o):o},responseImmutable:function(t,n){var i=(0,p.Yr)(t),r=function(n,r){var o=i?{ref:r}:{};return e(),u.createElement(t,(0,f.Z)({},n,o))};return i?u.memo(u.forwardRef(r),n):u.memo(r,n)},useImmutableMark:e}}var m=g(),v=(m.makeImmutable,m.responseImmutable,m.useImmutableMark,g()),y=v.makeImmutable,w=v.responseImmutable,b=v.useImmutableMark,x=h();u.memo((function(){var t=function(t,e){var n=u.useRef(0);n.current+=1;var i=u.useRef(t),r=[];Object.keys(t||{}).map((function(e){var n;(null==t?void 0:t[e])!==(null===(n=i.current)||void 0===n?void 0:n[e])&&r.push(e)})),i.current=t;var o=u.useRef([]);return r.length&&(o.current=r),u.useDebugValue(n.current),u.useDebugValue(o.current.join(", ")),e&&console.log("".concat(e,":"),n.current,o.current),n.current}();return u.createElement("h1",null,"Render Times: ",t)})).displayName="RenderBlock";var S=n(93664),P=n(20439),k=n(4635),C=n(92310),A=n.n(C),M=n(80547),E=n(97938),L=(n(48736),u.createContext({renderWithProps:!1}));function T(t){var e=[],n={};return t.forEach((function(t){for(var i,r=t||{},o=r.key,a=r.dataIndex,s=o||(i=a,null==i?[]:Array.isArray(i)?i:[i]).join("-")||"RC_TABLE_KEY";n[s];)s="".concat(s,"_next");n[s]=!0,e.push(s)})),e}function N(t){return null!=t}function j(t,e,n,i,r,a){var s=u.useContext(L),c=b();return(0,M.Z)((function(){if(N(i))return[i];var o,a=null==e||""===e?[]:Array.isArray(e)?e:[e],l=(0,E.Z)(t,a),c=l,h=void 0;if(r){var d=r(l,t,n);!(o=d)||"object"!==(0,S.Z)(o)||Array.isArray(o)||u.isValidElement(o)?c=d:(c=d.children,h=d.props,s.renderWithProps=!0)}return[c,h]}),[c,t,i,e,r,n],(function(t,e){if(a){var n=(0,o.Z)(t,2)[1],i=(0,o.Z)(e,2)[1];return a(i,n)}return!!s.renderWithProps||!(0,l.Z)(t,e,!0)}))}function I(t){var e,n,i,r,a,s,l,c;var h=t.component,p=t.children,g=t.ellipsis,m=t.scope,v=t.prefixCls,y=t.className,w=t.align,b=t.record,C=t.render,M=t.dataIndex,E=t.renderIndex,L=t.shouldCellUpdate,T=t.index,N=t.rowType,I=t.colSpan,B=t.rowSpan,O=t.fixLeft,D=t.fixRight,R=t.firstFixLeft,F=t.lastFixLeft,z=t.firstFixRight,G=t.lastFixRight,U=t.appendNode,H=t.additionalProps,_=void 0===H?{}:H,Z=t.isSticky,W="".concat(v,"-cell"),V=d(x,["supportSticky","allColumnsFixedLeft"]),Y=V.supportSticky,X=V.allColumnsFixedLeft,q=j(b,M,E,p,C,L),K=(0,o.Z)(q,2),Q=K[0],J=K[1],$={},tt="number"==typeof O&&Y,et="number"==typeof D&&Y;tt&&($.position="sticky",$.left=O),et&&($.position="sticky",$.right=D);var nt=null!==(e=null!==(n=null!==(i=null==J?void 0:J.colSpan)&&void 0!==i?i:_.colSpan)&&void 0!==n?n:I)&&void 0!==e?e:1,it=null!==(r=null!==(a=null!==(s=null==J?void 0:J.rowSpan)&&void 0!==s?s:_.rowSpan)&&void 0!==a?a:B)&&void 0!==r?r:1,rt=function(t,e){return d(x,(function(n){var i,r,o,a;return[(i=t,r=e||1,o=n.hoverStartRow,a=n.hoverEndRow,i<=a&&i+r-1>=o),n.onHover]}))}(T,it),ot=(0,o.Z)(rt,2),at=ot[0],st=ot[1];if(0===nt||0===it)return null;var lt=null!==(l=_.title)&&void 0!==l?l:function(t){var e,n=t.ellipsis,i=t.rowType,r=t.children,o=!0===n?{showTitle:!0}:n;return o&&(o.showTitle||"header"===i)&&("string"==typeof r||"number"==typeof r?e=r.toString():u.isValidElement(r)&&"string"==typeof r.props.children&&(e=r.props.children)),e}({rowType:N,ellipsis:g,children:Q}),ut=A()(W,y,(c={},(0,k.Z)(c,"".concat(W,"-fix-left"),tt&&Y),(0,k.Z)(c,"".concat(W,"-fix-left-first"),R&&Y),(0,k.Z)(c,"".concat(W,"-fix-left-last"),F&&Y),(0,k.Z)(c,"".concat(W,"-fix-left-all"),F&&X&&Y),(0,k.Z)(c,"".concat(W,"-fix-right"),et&&Y),(0,k.Z)(c,"".concat(W,"-fix-right-first"),z&&Y),(0,k.Z)(c,"".concat(W,"-fix-right-last"),G&&Y),(0,k.Z)(c,"".concat(W,"-ellipsis"),g),(0,k.Z)(c,"".concat(W,"-with-append"),U),(0,k.Z)(c,"".concat(W,"-fix-sticky"),(tt||et)&&Z&&Y),(0,k.Z)(c,"".concat(W,"-row-hover"),!J&&at),c),_.className,null==J?void 0:J.className),ct={};w&&(ct.textAlign=w);var ht=(0,P.Z)((0,P.Z)((0,P.Z)((0,P.Z)({},$),_.style),ct),null==J?void 0:J.style),dt=Q;return"object"!==(0,S.Z)(dt)||Array.isArray(dt)||u.isValidElement(dt)||(dt=null),g&&(F||z)&&(dt=u.createElement("span",{className:"".concat(W,"-content")},dt)),u.createElement(h,(0,f.Z)({},J,_,{className:ut,style:ht,title:lt,scope:m,onMouseEnter:function(t){var e;b&&st(T,T+it-1),null==_||null===(e=_.onMouseEnter)||void 0===e||e.call(_,t)},onMouseLeave:function(t){var e;b&&st(-1,-1),null==_||null===(e=_.onMouseLeave)||void 0===e||e.call(_,t)},colSpan:1!==nt?nt:null,rowSpan:1!==it?it:null}),U,dt)}var B=u.memo(I);function O(t,e,n,i,r,o){var a,s,l=n[t]||{},u=n[e]||{};"left"===l.fixed?a=i.left["rtl"===r?e:t]:"right"===u.fixed&&(s=i.right["rtl"===r?t:e]);var c=!1,h=!1,d=!1,f=!1,p=n[e+1],g=n[t-1],m=!(null!=o&&o.children);if("rtl"===r){if(void 0!==a)f=!(g&&"left"===g.fixed)&&m;else if(void 0!==s){d=!(p&&"right"===p.fixed)&&m}}else if(void 0!==a){c=!(p&&"left"===p.fixed)&&m}else if(void 0!==s){h=!(g&&"right"===g.fixed)&&m}return{fixLeft:a,fixRight:s,lastFixLeft:c,firstFixRight:h,lastFixRight:d,firstFixLeft:f,isSticky:i.isSticky}}var D=u.createContext({});var R=n(62646),F=["children"];function z(t){return t.children}z.Row=function(t){var e=t.children,n=(0,R.Z)(t,F);return u.createElement("tr",n,e)},z.Cell=function(t){var e=t.className,n=t.index,i=t.children,r=t.colSpan,o=void 0===r?1:r,a=t.rowSpan,s=t.align,l=d(x,["prefixCls","direction"]),c=l.prefixCls,h=l.direction,p=u.useContext(D),g=p.scrollColumnIndex,m=p.stickyOffsets,v=p.flattenColumns,y=p.columns,w=n+o-1+1===g?o+1:o,b=O(n,n+w-1,v,m,h,null==y?void 0:y[n]);return u.createElement(B,(0,f.Z)({className:e,index:n,component:"td",prefixCls:c,record:null,dataIndex:null,align:s,colSpan:w,rowSpan:a,render:function(){return i}},b))};var G=z;var U=w((function(t){var e=t.children,n=t.stickyOffsets,i=t.flattenColumns,r=t.columns,o=d(x,"prefixCls"),a=i.length-1,s=i[a],l=u.useMemo((function(){return{stickyOffsets:n,flattenColumns:i,scrollColumnIndex:null!=s&&s.scrollbar?a:null,columns:r}}),[s,i,a,n,r]);return u.createElement(D.Provider,{value:l},u.createElement("tfoot",{className:"".concat(o,"-summary")},e))})),H=G,_=n(70425),Z=n(29301),W=n(29194),V=n(24514),Y=n(75152),X=n(26112);function q(t,e,n,i,r,o,a){t.push({record:e,indent:n,index:a});var s=o(e),l=null==r?void 0:r.has(s);if(e&&Array.isArray(e[i])&&l)for(var u=0;u<e[i].length;u+=1)q(t,e[i][u],n+1,i,r,o,u)}function K(t,e,n,i){return u.useMemo((function(){if(null!=n&&n.size){for(var r=[],o=0;o<(null==t?void 0:t.length);o+=1){q(r,t[o],0,e,n,i,o)}return r}return null==t?void 0:t.map((function(t,e){return{record:t,indent:0,index:e}}))}),[t,e,n,i])}var Q=function(t){var e=t.prefixCls,n=t.children,i=t.component,r=t.cellComponent,o=t.className,a=t.expanded,s=t.colSpan,l=t.isEmpty,c=d(x,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),h=c.scrollbarSize,f=c.fixHeader,p=c.fixColumn,g=c.componentWidth,m=c.horizonScroll,v=n;return(l?m&&g:p)&&(v=u.createElement("div",{style:{width:g-(f?h:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(e,"-expanded-row-fixed")},v)),u.createElement(i,{className:o,style:{display:a?null:"none"}},u.createElement(B,{component:r,prefixCls:e,colSpan:s},v))};function J(t,e,n,i){var r,o=d(x,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),a=o.flattenColumns,s=o.expandableType,l=o.expandedKeys,u=o.childrenColumnName,c=o.onTriggerExpand,h=o.rowExpandable,f=o.onRow,p=o.expandRowByClick,g=o.rowClassName,m="nest"===s,v="row"===s&&(!h||h(t)),y=v||m,w=l&&l.has(e),b=u&&t&&t[u],S=(0,_.zX)(c),k=null==f?void 0:f(t,n),C=null==k?void 0:k.onClick;"string"==typeof g?r=g:"function"==typeof g&&(r=g(t,n,i));var M=T(a);return(0,P.Z)((0,P.Z)({},o),{},{columnsKey:M,nestExpandable:m,expanded:w,hasNestChildren:b,record:t,onTriggerExpand:S,rowSupportExpand:v,expandable:y,rowProps:(0,P.Z)((0,P.Z)({},k),{},{className:A()(r,null==k?void 0:k.className),onClick:function(e){p&&y&&c(t,e);for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];null==C||C.apply(void 0,[e].concat(i))}})})}function $(t,e,n,i,r){var o,a,s=t.record,l=t.prefixCls,c=t.columnsKey,h=t.fixedInfoList,d=t.expandIconColumnIndex,f=t.nestExpandable,p=t.indentSize,g=t.expandIcon,m=t.expanded,v=t.hasNestChildren,y=t.onTriggerExpand,w=c[n],b=h[n];return n===(d||0)&&f&&(o=u.createElement(u.Fragment,null,u.createElement("span",{style:{paddingLeft:"".concat(p*i,"px")},className:"".concat(l,"-row-indent indent-level-").concat(i)}),g({prefixCls:l,expanded:m,expandable:v,record:s,onExpand:y}))),e.onCell&&(a=e.onCell(s,r)),{key:w,fixedInfo:b,appendCellNode:o,additionalCellProps:a||{}}}function tt(t){var e=t.className,n=t.style,i=t.record,r=t.index,a=t.renderIndex,s=t.rowKey,l=t.indent,c=void 0===l?0:l,h=t.rowComponent,d=t.cellComponent,p=t.scopeCellComponent,g=J(i,s,r,c),m=g.prefixCls,v=g.flattenColumns,y=g.expandedRowClassName,w=g.expandedRowRender,b=g.rowProps,x=g.expanded,S=g.rowSupportExpand,k=u.useState(!1),C=(0,o.Z)(k,2),M=C[0],E=C[1];u.useEffect((function(){x&&E(!0)}),[x]);var L,T=u.createElement(h,(0,f.Z)({},b,{"data-row-key":s,className:A()(e,"".concat(m,"-row"),"".concat(m,"-row-level-").concat(c),null==b?void 0:b.className),style:(0,P.Z)((0,P.Z)({},n),null==b?void 0:b.style)}),v.map((function(t,e){var n=t.render,o=t.dataIndex,s=t.className,l=$(g,t,e,c,r),h=l.key,v=l.fixedInfo,y=l.appendCellNode,w=l.additionalCellProps;return u.createElement(B,(0,f.Z)({className:s,ellipsis:t.ellipsis,align:t.align,scope:t.rowScope,component:t.rowScope?p:d,prefixCls:m,key:h,record:i,index:r,renderIndex:a,dataIndex:o,render:n,shouldCellUpdate:t.shouldCellUpdate},v,{appendNode:y,additionalProps:w}))})));if(S&&(M||x)){var N=w(i,r,c+1,x),j=y&&y(i,r,c);L=u.createElement(Q,{expanded:x,className:A()("".concat(m,"-expanded-row"),"".concat(m,"-expanded-row-level-").concat(c+1),j),prefixCls:m,component:h,cellComponent:d,colSpan:v.length,isEmpty:!1},N)}return u.createElement(u.Fragment,null,T,L)}tt.displayName="BodyRow";var et=w(tt);function nt(t){var e=t.columnKey,n=t.onColumnResize,i=u.useRef();return u.useEffect((function(){i.current&&n(e,i.current.offsetWidth)}),[]),u.createElement(Z.Z,{data:e},u.createElement("td",{ref:i,style:{padding:0,border:0,height:0}},u.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}function it(t){var e=t.prefixCls,n=t.columnsKey,i=t.onColumnResize;return u.createElement("tr",{"aria-hidden":"true",className:"".concat(e,"-measure-row"),style:{height:0,fontSize:0}},u.createElement(Z.Z.Collection,{onBatchResize:function(t){t.forEach((function(t){var e=t.data,n=t.size;i(e,n.offsetWidth)}))}},n.map((function(t){return u.createElement(nt,{key:t,columnKey:t,onColumnResize:i})}))))}function rt(t){var e,n=t.data,i=t.measureColumnWidth,r=d(x,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),o=r.prefixCls,a=r.getComponent,s=r.onColumnResize,l=r.flattenColumns,c=r.getRowKey,h=r.expandedKeys,f=r.childrenColumnName,p=r.emptyNode,g=K(n,f,h,c),m=u.useRef({renderWithProps:!1}),v=a(["body","wrapper"],"tbody"),y=a(["body","row"],"tr"),w=a(["body","cell"],"td"),b=a(["body","cell"],"th");e=n.length?g.map((function(t,e){var n=t.record,i=t.indent,r=t.index,o=c(n,e);return u.createElement(et,{key:o,rowKey:o,record:n,index:e,renderIndex:r,rowComponent:y,cellComponent:w,scopeCellComponent:b,getRowKey:c,indent:i})})):u.createElement(Q,{expanded:!0,className:"".concat(o,"-placeholder"),prefixCls:o,component:y,cellComponent:w,colSpan:l.length,isEmpty:!0},p);var S=T(l);return u.createElement(L.Provider,{value:m.current},u.createElement(v,{className:"".concat(o,"-tbody")},i&&u.createElement(it,{prefixCls:o,columnsKey:S,onColumnResize:s}),e))}rt.displayName="Body";var ot=w(rt),at=["expandable"],st="RC_TABLE_INTERNAL_COL_DEFINE";var lt=["columnType"];var ut=function(t){for(var e=t.colWidths,n=t.columns,i=[],r=!1,o=(t.columCount||n.length)-1;o>=0;o-=1){var a=e[o],s=n&&n[o],l=s&&s[st];if(a||l||r){var c=l||{},h=(c.columnType,(0,R.Z)(c,lt));i.unshift(u.createElement("col",(0,f.Z)({key:o,style:{width:a}},h))),r=!0}}return u.createElement("colgroup",null,i)},ct=n(95190),ht=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];var dt=u.forwardRef((function(t,e){var n=t.className,i=t.noData,r=t.columns,o=t.flattenColumns,a=t.colWidths,s=t.columCount,l=t.stickyOffsets,c=t.direction,h=t.fixHeader,f=t.stickyTopOffset,g=t.stickyBottomOffset,m=t.stickyClassName,v=t.onScroll,y=t.maxContentScroll,w=t.children,b=(0,R.Z)(t,ht),S=d(x,["prefixCls","scrollbarSize","isSticky"]),C=S.prefixCls,M=S.scrollbarSize,E=S.isSticky,L=E&&!h?0:M,T=u.useRef(null),N=u.useCallback((function(t){(0,p.mH)(e,t),(0,p.mH)(T,t)}),[]);u.useEffect((function(){var t;function e(t){var e=t,n=e.currentTarget,i=e.deltaX;i&&(v({currentTarget:n,scrollLeft:n.scrollLeft+i}),t.preventDefault())}return null===(t=T.current)||void 0===t||t.addEventListener("wheel",e),function(){var t;null===(t=T.current)||void 0===t||t.removeEventListener("wheel",e)}}),[]);var j=u.useMemo((function(){return o.every((function(t){return t.width}))}),[o]),I=o[o.length-1],B={fixed:I?I.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(C,"-cell-scrollbar")}}},O=(0,u.useMemo)((function(){return L?[].concat((0,ct.Z)(r),[B]):r}),[L,r]),D=(0,u.useMemo)((function(){return L?[].concat((0,ct.Z)(o),[B]):o}),[L,o]),F=(0,u.useMemo)((function(){var t=l.right,e=l.left;return(0,P.Z)((0,P.Z)({},l),{},{left:"rtl"===c?[].concat((0,ct.Z)(e.map((function(t){return t+L}))),[0]):e,right:"rtl"===c?t:[].concat((0,ct.Z)(t.map((function(t){return t+L}))),[0]),isSticky:E})}),[L,l,E]),z=function(t,e){return(0,u.useMemo)((function(){for(var n=[],i=0;i<e;i+=1){var r=t[i];if(void 0===r)return null;n[i]=r}return n}),[t.join("_"),e])}(a,s);return u.createElement("div",{style:(0,P.Z)({overflow:"hidden"},E?{top:f,bottom:g}:{}),ref:N,className:A()(n,(0,k.Z)({},m,!!m))},u.createElement("table",{style:{tableLayout:"fixed",visibility:i||z?null:"hidden"}},(!i||!y||j)&&u.createElement(ut,{colWidths:z?[].concat((0,ct.Z)(z),[L]):[],columCount:s+1,columns:D}),w((0,P.Z)((0,P.Z)({},b),{},{stickyOffsets:F,columns:O,flattenColumns:D}))))}));dt.displayName="FixedHolder";var ft=u.memo(dt);function pt(t){var e,n=t.cells,i=t.stickyOffsets,r=t.flattenColumns,o=t.rowComponent,a=t.cellComponent,s=t.tdCellComponent,l=t.onHeaderRow,c=t.index,h=d(x,["prefixCls","direction"]),p=h.prefixCls,g=h.direction;l&&(e=l(n.map((function(t){return t.column})),c));var m=T(n.map((function(t){return t.column})));return u.createElement(o,e,n.map((function(t,e){var n,o=t.column,l=O(t.colStart,t.colEnd,r,i,g,o);return o&&o.onHeaderCell&&(n=t.column.onHeaderCell(o)),u.createElement(B,(0,f.Z)({},t,{scope:o.title?t.colSpan>1?"colgroup":"col":null,ellipsis:o.ellipsis,align:o.align,component:o.title?a:s,prefixCls:p,key:m[e]},l,{additionalProps:n,rowType:"header"}))})))}pt.displayName="HeaderRow";var gt=pt;var mt=w((function(t){var e=t.stickyOffsets,n=t.columns,i=t.flattenColumns,r=t.onHeaderRow,o=d(x,["prefixCls","getComponent"]),a=o.prefixCls,s=o.getComponent,l=u.useMemo((function(){return function(t){var e=[];!function t(n,i){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;e[r]=e[r]||[];var o=i;return n.filter(Boolean).map((function(n){var i={key:n.key,className:n.className||"",children:n.title,column:n,colStart:o},a=1,s=n.children;return s&&s.length>0&&(a=t(s,o,r+1).reduce((function(t,e){return t+e}),0),i.hasSubColumns=!0),"colSpan"in n&&(a=n.colSpan),"rowSpan"in n&&(i.rowSpan=n.rowSpan),i.colSpan=a,i.colEnd=i.colStart+a-1,e[r].push(i),o+=a,a}))}(t,0);for(var n=e.length,i=function(t){e[t].forEach((function(e){"rowSpan"in e||e.hasSubColumns||(e.rowSpan=n-t)}))},r=0;r<n;r+=1)i(r);return e}(n)}),[n]),c=s(["header","wrapper"],"thead"),h=s(["header","row"],"tr"),f=s(["header","cell"],"th"),p=s(["header","cell"],"td");return u.createElement(c,{className:"".concat(a,"-thead")},l.map((function(t,n){return u.createElement(gt,{key:n,flattenColumns:i,cells:t,stickyOffsets:e,rowComponent:h,cellComponent:f,tdCellComponent:p,onHeaderRow:r,index:n})})))})),vt=n(11592);function yt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"number"==typeof e?e:e.endsWith("%")?t*parseFloat(e)/100:null}var wt=["children"],bt=["fixed"];function xt(t){return(0,vt.Z)(t).filter((function(t){return u.isValidElement(t)})).map((function(t){var e=t.key,n=t.props,i=n.children,r=(0,R.Z)(n,wt),o=(0,P.Z)({key:e},r);return i&&(o.children=xt(i)),o}))}function St(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"key";return t.filter((function(t){return t&&"object"===(0,S.Z)(t)})).reduce((function(t,n,i){var r=n.fixed,o=!0===r?"left":r,a="".concat(e,"-").concat(i),s=n.children;return s&&s.length>0?[].concat((0,ct.Z)(t),(0,ct.Z)(St(s,a).map((function(t){return(0,P.Z)({fixed:o},t)})))):[].concat((0,ct.Z)(t),[(0,P.Z)((0,P.Z)({key:a},n),{},{fixed:o})])}),[])}var Pt=function(t,e){var n=t.prefixCls,r=t.columns,a=t.children,s=t.expandable,l=t.expandedKeys,c=t.columnTitle,h=t.getRowKey,d=t.onTriggerExpand,f=t.expandIcon,p=t.rowExpandable,g=t.expandIconColumnIndex,m=t.direction,v=t.expandRowByClick,y=t.columnWidth,w=t.fixed,b=t.scrollWidth,x=u.useMemo((function(){return r||xt(a)}),[r,a]),S=u.useMemo((function(){if(s){var t,e=x.slice();if(!e.includes(i)){var r=g||0;r>=0&&e.splice(r,0,i)}0;var o=e.indexOf(i);e=e.filter((function(t,e){return t!==i||e===o}));var a,m=x[o];a="left"!==w&&!w||g?"right"!==w&&!w||g!==x.length?m?m.fixed:null:"right":"left";var b=(t={},(0,k.Z)(t,st,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,k.Z)(t,"title",c),(0,k.Z)(t,"fixed",a),(0,k.Z)(t,"className","".concat(n,"-row-expand-icon-cell")),(0,k.Z)(t,"width",y),(0,k.Z)(t,"render",(function(t,e,i){var r=h(e,i),o=l.has(r),a=!p||p(e),s=f({prefixCls:n,expanded:o,expandable:a,record:e,onExpand:d});return v?u.createElement("span",{onClick:function(t){return t.stopPropagation()}},s):s})),t);return e.map((function(t){return t===i?b:t}))}return x.filter((function(t){return t!==i}))}),[s,x,h,l,f,m]),C=u.useMemo((function(){var t=S;return e&&(t=e(t)),t.length||(t=[{render:function(){return null}}]),t}),[e,S,m]),A=u.useMemo((function(){return"rtl"===m?function(t){return t.map((function(t){var e=t.fixed,n=(0,R.Z)(t,bt),i=e;return"left"===e?i="right":"right"===e&&(i="left"),(0,P.Z)({fixed:i},n)}))}(St(C)):St(C)}),[C,m,b]),M=function(t,e){return u.useMemo((function(){if(e&&e>0){var n=0,i=0;t.forEach((function(t){var r=yt(e,t.width);r?n+=r:i+=1}));var r=e-n,o=i,a=r/i,s=0;return[t.map((function(t){var n=(0,P.Z)({},t),i=yt(e,n.width);if(i)n.width=i;else{var l=Math.floor(a);n.width=1===o?r:l,r-=l,o-=1}return s+=n.width,n})),s]}return[t,e]}),[t,e])}(A,b),E=(0,o.Z)(M,2),L=E[0],T=E[1];return[C,L,T]};function kt(t){var e,n=t.prefixCls,i=t.record,r=t.onExpand,o=t.expanded,a=t.expandable,s="".concat(n,"-row-expand-icon");if(!a)return u.createElement("span",{className:A()(s,"".concat(n,"-row-spaced"))});return u.createElement("span",{className:A()(s,(e={},(0,k.Z)(e,"".concat(n,"-row-expanded"),o),(0,k.Z)(e,"".concat(n,"-row-collapsed"),!o),e)),onClick:function(t){r(i,t),t.stopPropagation()}})}function Ct(t,e,n){var i=function(t){var e,n=t.expandable,i=(0,R.Z)(t,at);return!1===(e="expandable"in t?(0,P.Z)((0,P.Z)({},i),n):i).showExpandColumn&&(e.expandIconColumnIndex=-1),e}(t),a=i.expandIcon,s=i.expandedRowKeys,l=i.defaultExpandedRowKeys,c=i.defaultExpandAllRows,h=i.expandedRowRender,d=i.onExpand,f=i.onExpandedRowsChange,p=a||kt,g=i.childrenColumnName||"children",m=u.useMemo((function(){return h?"row":!!(t.expandable&&t.internalHooks===r&&t.expandable.__PARENT_RENDER_ICON__||e.some((function(t){return t&&"object"===(0,S.Z)(t)&&t[g]})))&&"nest"}),[!!h,e]),v=u.useState((function(){return l||(c?function(t,e,n){var i=[];return function t(r){(r||[]).forEach((function(r,o){i.push(e(r,o)),t(r[n])}))}(t),i}(e,n,g):[])})),y=(0,o.Z)(v,2),w=y[0],b=y[1],x=u.useMemo((function(){return new Set(s||w||[])}),[s,w]),k=u.useCallback((function(t){var i,r=n(t,e.indexOf(t)),o=x.has(r);o?(x.delete(r),i=(0,ct.Z)(x)):i=[].concat((0,ct.Z)(x),[r]),b(i),d&&d(!o,t),f&&f(i)}),[n,x,e,d,f]);return[i,m,x,p,g,k]}function At(t){var e=(0,u.useRef)(t),n=(0,u.useState)({}),i=(0,o.Z)(n,2)[1],r=(0,u.useRef)(null),a=(0,u.useRef)([]);return(0,u.useEffect)((function(){return function(){r.current=null}}),[]),[e.current,function(t){a.current.push(t);var n=Promise.resolve();r.current=n,n.then((function(){if(r.current===n){var t=a.current,o=e.current;a.current=[],t.forEach((function(t){e.current=t(e.current)})),r.current=null,o!==e.current&&i({})}}))}]}var Mt=(0,n(47273).Z)()?window:null;var Et=function(t,e,n){return(0,u.useMemo)((function(){for(var i=[],r=[],o=0,a=0,s=0;s<e;s+=1)if("rtl"===n){r[s]=a,a+=t[s]||0;var l=e-s-1;i[l]=o,o+=t[l]||0}else{i[s]=o,o+=t[s]||0;var u=e-s-1;r[u]=a,a+=t[u]||0}return{left:i,right:r}}),[t,e,n])};var Lt=function(t){var e=t.className,n=t.children;return u.createElement("div",{className:e},n)},Tt=n(8224),Nt=n(55468),jt=function(t,e){var n,i,r=t.scrollBodyRef,a=t.onScroll,s=t.offsetScroll,l=t.container,c=d(x,"prefixCls"),h=(null===(n=r.current)||void 0===n?void 0:n.scrollWidth)||0,f=(null===(i=r.current)||void 0===i?void 0:i.clientWidth)||0,p=h&&f*(f/h),g=u.useRef(),m=At({scrollLeft:0,isHiddenScrollBar:!1}),v=(0,o.Z)(m,2),y=v[0],w=v[1],b=u.useRef({delta:0,x:0}),S=u.useState(!1),C=(0,o.Z)(S,2),M=C[0],E=C[1],L=function(){E(!1)},T=function(t){var e,n=(t||(null===(e=window)||void 0===e?void 0:e.event)).buttons;if(M&&0!==n){var i=b.current.x+t.pageX-b.current.x-b.current.delta;i<=0&&(i=0),i+p>=f&&(i=f-p),a({scrollLeft:i/f*(h+2)}),b.current.x=t.pageX}else M&&E(!1)},N=function(){if(r.current){var t=(0,Nt.os)(r.current).top,e=t+r.current.offsetHeight,n=l===window?document.documentElement.scrollTop+window.innerHeight:(0,Nt.os)(l).top+l.clientHeight;e-(0,Y.Z)()<=n||t>=n-s?w((function(t){return(0,P.Z)((0,P.Z)({},t),{},{isHiddenScrollBar:!0})})):w((function(t){return(0,P.Z)((0,P.Z)({},t),{},{isHiddenScrollBar:!1})}))}},j=function(t){w((function(e){return(0,P.Z)((0,P.Z)({},e),{},{scrollLeft:t/h*f||0})}))};return u.useImperativeHandle(e,(function(){return{setScrollLeft:j}})),u.useEffect((function(){var t=(0,Tt.Z)(document.body,"mouseup",L,!1),e=(0,Tt.Z)(document.body,"mousemove",T,!1);return N(),function(){t.remove(),e.remove()}}),[p,M]),u.useEffect((function(){var t=(0,Tt.Z)(l,"scroll",N,!1),e=(0,Tt.Z)(window,"resize",N,!1);return function(){t.remove(),e.remove()}}),[l]),u.useEffect((function(){y.isHiddenScrollBar||w((function(t){var e=r.current;return e?(0,P.Z)((0,P.Z)({},t),{},{scrollLeft:e.scrollLeft/e.scrollWidth*e.clientWidth}):t}))}),[y.isHiddenScrollBar]),h<=f||!p||y.isHiddenScrollBar?null:u.createElement("div",{style:{height:(0,Y.Z)(),width:f,bottom:s},className:"".concat(c,"-sticky-scroll")},u.createElement("div",{onMouseDown:function(t){t.persist(),b.current.delta=t.pageX-y.scrollLeft,b.current.x=0,E(!0),t.preventDefault()},ref:g,className:A()("".concat(c,"-sticky-scroll-bar"),(0,k.Z)({},"".concat(c,"-sticky-scroll-bar-active"),M)),style:{width:"".concat(p,"px"),transform:"translate3d(".concat(y.scrollLeft,"px, 0, 0)")}}))},It=u.forwardRef(jt);var Bt=function(t){return null};var Ot=function(t){return null},Dt="rc-table",Rt=[],Ft={};function zt(){return"No Data"}function Gt(t){var e,n=(0,P.Z)({rowKey:"key",prefixCls:Dt,emptyText:zt},t),i=n.prefixCls,s=n.className,c=n.rowClassName,h=n.style,d=n.data,p=n.rowKey,g=n.scroll,m=n.tableLayout,v=n.direction,y=n.title,w=n.footer,b=n.summary,C=n.caption,L=n.id,j=n.showHeader,I=n.components,B=n.emptyText,D=n.onRow,R=n.onHeaderRow,F=n.internalHooks,z=n.transformColumns,H=n.internalRefs,_=n.tailor,q=n.sticky,K=d||Rt,Q=!!K.length,J=F===r;var $,tt,et,nt=u.useCallback((function(t,e){return(0,E.Z)(I,t)||e}),[I]),it=u.useMemo((function(){return"function"==typeof p?p:function(t){return t&&t[p]}}),[p]),rt=nt(["body"]),at=function(){var t=u.useState(-1),e=(0,o.Z)(t,2),n=e[0],i=e[1],r=u.useState(-1),a=(0,o.Z)(r,2),s=a[0],l=a[1];return[n,s,u.useCallback((function(t,e){i(t),l(e)}),[])]}(),st=(0,o.Z)(at,3),lt=st[0],ct=st[1],ht=st[2],dt=Ct(n,K,it),pt=(0,o.Z)(dt,6),gt=pt[0],vt=pt[1],yt=pt[2],wt=pt[3],bt=pt[4],xt=pt[5],St=null==g?void 0:g.x,kt=u.useState(0),Tt=(0,o.Z)(kt,2),Nt=Tt[0],jt=Tt[1],Bt=Pt((0,P.Z)((0,P.Z)((0,P.Z)({},n),gt),{},{expandable:!!gt.expandedRowRender,columnTitle:gt.columnTitle,expandedKeys:yt,getRowKey:it,onTriggerExpand:xt,expandIcon:wt,expandIconColumnIndex:gt.expandIconColumnIndex,direction:v,scrollWidth:J&&_&&"number"==typeof St?St:null}),J?z:null),Ot=(0,o.Z)(Bt,3),Gt=Ot[0],Ut=Ot[1],Ht=Ot[2],_t=null!=Ht?Ht:St,Zt=u.useMemo((function(){return{columns:Gt,flattenColumns:Ut}}),[Gt,Ut]),Wt=u.useRef(),Vt=u.useRef(),Yt=u.useRef(),Xt=u.useRef(),qt=u.useRef(),Kt=u.useState(!1),Qt=(0,o.Z)(Kt,2),Jt=Qt[0],$t=Qt[1],te=u.useState(!1),ee=(0,o.Z)(te,2),ne=ee[0],ie=ee[1],re=At(new Map),oe=(0,o.Z)(re,2),ae=oe[0],se=oe[1],le=T(Ut).map((function(t){return ae.get(t)})),ue=u.useMemo((function(){return le}),[le.join("_")]),ce=Et(ue,Ut.length,v),he=g&&N(g.y),de=g&&N(_t)||Boolean(gt.fixed),fe=de&&Ut.some((function(t){return t.fixed})),pe=u.useRef(),ge=function(t,e){var n="object"===(0,S.Z)(t)?t:{},i=n.offsetHeader,r=void 0===i?0:i,o=n.offsetSummary,a=void 0===o?0:o,s=n.offsetScroll,l=void 0===s?0:s,c=n.getContainer,h=(void 0===c?function(){return Mt}:c)()||Mt;return u.useMemo((function(){var n=!!t;return{isSticky:n,stickyClassName:n?"".concat(e,"-sticky-holder"):"",offsetHeader:r,offsetSummary:a,offsetScroll:l,container:h}}),[l,r,a,e,h])}(q,i),me=ge.isSticky,ve=ge.offsetHeader,ye=ge.offsetSummary,we=ge.offsetScroll,be=ge.stickyClassName,xe=ge.container,Se=u.useMemo((function(){return null==b?void 0:b(K)}),[b,K]),Pe=(he||me)&&u.isValidElement(Se)&&Se.type===G&&Se.props.fixed;he&&(tt={overflowY:"scroll",maxHeight:g.y}),de&&($={overflowX:"auto"},he||(tt={overflowY:"hidden"}),et={width:!0===_t?"auto":_t,minWidth:"100%"});var ke=u.useCallback((function(t,e){(0,W.Z)(Wt.current)&&se((function(n){if(n.get(t)!==e){var i=new Map(n);return i.set(t,e),i}return n}))}),[]),Ce=function(t){var e=(0,u.useRef)(t||null),n=(0,u.useRef)();function i(){window.clearTimeout(n.current)}return(0,u.useEffect)((function(){return i}),[]),[function(t){e.current=t,i(),n.current=window.setTimeout((function(){e.current=null,n.current=void 0}),100)},function(){return e.current}]}(null),Ae=(0,o.Z)(Ce,2),Me=Ae[0],Ee=Ae[1];function Le(t,e){e&&("function"==typeof e?e(t):e.scrollLeft!==t&&(e.scrollLeft=t,e.scrollLeft!==t&&setTimeout((function(){e.scrollLeft=t}),0)))}var Te=(0,a.Z)((function(t){var e,n=t.currentTarget,i=t.scrollLeft,r="rtl"===v,o="number"==typeof i?i:n.scrollLeft,a=n||Ft;Ee()&&Ee()!==a||(Me(a),Le(o,Vt.current),Le(o,Yt.current),Le(o,qt.current),Le(o,null===(e=pe.current)||void 0===e?void 0:e.setScrollLeft));var s=n||Vt.current;if(s){var l=s.scrollWidth,u=s.clientWidth;if(l===u)return $t(!1),void ie(!1);r?($t(-o<l-u),ie(-o>0)):($t(o>0),ie(o<l-u))}})),Ne=function(){de&&Yt.current?Te({currentTarget:Yt.current}):($t(!1),ie(!1))},je=u.useRef(!1);u.useEffect((function(){je.current&&Ne()}),[de,d,Gt.length]),u.useEffect((function(){je.current=!0}),[]);var Ie=u.useState(0),Be=(0,o.Z)(Ie,2),Oe=Be[0],De=Be[1],Re=u.useState(!0),Fe=(0,o.Z)(Re,2),ze=Fe[0],Ge=Fe[1];u.useEffect((function(){_&&J||(Yt.current instanceof Element?De((0,Y.o)(Yt.current).width):De((0,Y.o)(Xt.current).width)),Ge((0,V.G)("position","sticky"))}),[]),u.useEffect((function(){J&&H&&(H.body.current=Yt.current)}));var Ue,He=u.useCallback((function(t){return u.createElement(u.Fragment,null,u.createElement(mt,t),"top"===Pe&&u.createElement(U,t,Se))}),[Pe,Se]),_e=u.useCallback((function(t){return u.createElement(U,t,Se)}),[Se]),Ze=nt(["table"],"table"),We=u.useMemo((function(){return m||(fe?"max-content"===_t?"auto":"fixed":he||me||Ut.some((function(t){return t.ellipsis}))?"fixed":"auto")}),[he,fe,Ut,m,me]),Ve={colWidths:ue,columCount:Ut.length,stickyOffsets:ce,onHeaderRow:R,fixHeader:he,scroll:g},Ye=u.useMemo((function(){return Q?null:"function"==typeof B?B():B}),[Q,B]),Xe=u.createElement(ot,{data:K,measureColumnWidth:he||de||me}),qe=u.createElement(ut,{colWidths:Ut.map((function(t){return t.width})),columns:Ut}),Ke=null!=C?u.createElement("caption",{className:"".concat(i,"-caption")},C):void 0,Qe=(0,X.Z)(n,{data:!0}),Je=(0,X.Z)(n,{aria:!0});if(he||me){var $e;"function"==typeof rt?($e=rt(K,{scrollbarSize:Oe,ref:Yt,onScroll:Te}),Ve.colWidths=Ut.map((function(t,e){var n=t.width,i=e===Ut.length-1?n-Oe:n;return"number"!=typeof i||Number.isNaN(i)?0:i}))):$e=u.createElement("div",{style:(0,P.Z)((0,P.Z)({},$),tt),onScroll:Te,ref:Yt,className:A()("".concat(i,"-body"))},u.createElement(Ze,(0,f.Z)({style:(0,P.Z)((0,P.Z)({},et),{},{tableLayout:We})},Je),Ke,qe,Xe,!Pe&&Se&&u.createElement(U,{stickyOffsets:ce,flattenColumns:Ut,columns:Gt},Se)));var tn=(0,P.Z)((0,P.Z)((0,P.Z)({noData:!K.length,maxContentScroll:de&&"max-content"===_t},Ve),Zt),{},{direction:v,stickyClassName:be,onScroll:Te});Ue=u.createElement(u.Fragment,null,!1!==j&&u.createElement(ft,(0,f.Z)({},tn,{stickyTopOffset:ve,className:"".concat(i,"-header"),ref:Vt}),He),$e,Pe&&"top"!==Pe&&u.createElement(ft,(0,f.Z)({},tn,{stickyBottomOffset:ye,className:"".concat(i,"-summary"),ref:qt}),_e),me&&u.createElement(It,{ref:pe,offsetScroll:we,scrollBodyRef:Yt,onScroll:Te,container:xe}))}else Ue=u.createElement("div",{style:(0,P.Z)((0,P.Z)({},$),tt),className:A()("".concat(i,"-content")),onScroll:Te,ref:Yt},u.createElement(Ze,(0,f.Z)({style:(0,P.Z)((0,P.Z)({},et),{},{tableLayout:We})},Je),Ke,qe,!1!==j&&u.createElement(mt,(0,f.Z)({},Ve,Zt)),Xe,Se&&u.createElement(U,{stickyOffsets:ce,flattenColumns:Ut,columns:Gt},Se)));var en=u.createElement("div",(0,f.Z)({className:A()(i,s,(e={},(0,k.Z)(e,"".concat(i,"-rtl"),"rtl"===v),(0,k.Z)(e,"".concat(i,"-ping-left"),Jt),(0,k.Z)(e,"".concat(i,"-ping-right"),ne),(0,k.Z)(e,"".concat(i,"-layout-fixed"),"fixed"===m),(0,k.Z)(e,"".concat(i,"-fixed-header"),he),(0,k.Z)(e,"".concat(i,"-fixed-column"),fe),(0,k.Z)(e,"".concat(i,"-scroll-horizontal"),de),(0,k.Z)(e,"".concat(i,"-has-fix-left"),Ut[0]&&Ut[0].fixed),(0,k.Z)(e,"".concat(i,"-has-fix-right"),Ut[Ut.length-1]&&"right"===Ut[Ut.length-1].fixed),e)),style:h,id:L,ref:Wt},Qe),y&&u.createElement(Lt,{className:"".concat(i,"-title")},y(K)),u.createElement("div",{ref:Xt,className:"".concat(i,"-container")},Ue),w&&u.createElement(Lt,{className:"".concat(i,"-footer")},w(K)));de&&(en=u.createElement(Z.Z,{onResize:function(t){var e=t.width;e!==Nt&&(Ne(),jt(Wt.current?Wt.current.offsetWidth:e))}},en));var nn=function(t,e,n,i){var r=t.map((function(r,o){return O(o,o,t,e,n,null==i?void 0:i[o])}));return(0,M.Z)((function(){return r}),[r],(function(t,e){return!(0,l.Z)(t,e)}))}(Ut,ce,v,Gt),rn=u.useMemo((function(){return{scrollX:_t,prefixCls:i,getComponent:nt,scrollbarSize:Oe,direction:v,fixedInfoList:nn,isSticky:me,supportSticky:ze,componentWidth:Nt,fixHeader:he,fixColumn:fe,horizonScroll:de,tableLayout:We,rowClassName:c,expandedRowClassName:gt.expandedRowClassName,expandIcon:wt,expandableType:vt,expandRowByClick:gt.expandRowByClick,expandedRowRender:gt.expandedRowRender,onTriggerExpand:xt,expandIconColumnIndex:gt.expandIconColumnIndex,indentSize:gt.indentSize,allColumnsFixedLeft:Ut.every((function(t){return"left"===t.fixed})),emptyNode:Ye,columns:Gt,flattenColumns:Ut,onColumnResize:ke,hoverStartRow:lt,hoverEndRow:ct,onHover:ht,rowExpandable:gt.rowExpandable,onRow:D,getRowKey:it,expandedKeys:yt,childrenColumnName:bt}}),[_t,i,nt,Oe,v,nn,me,ze,Nt,he,fe,de,We,c,gt.expandedRowClassName,wt,vt,gt.expandRowByClick,gt.expandedRowRender,xt,gt.expandIconColumnIndex,gt.indentSize,Ye,Gt,Ut,ke,lt,ct,ht,gt.rowExpandable,D,it,yt,bt]);return u.createElement(x.Provider,{value:rn},en)}function Ut(t){return y(Gt,t)}var Ht=Ut();Ht.EXPAND_COLUMN=i,Ht.INTERNAL_HOOKS=r,Ht.Column=Bt,Ht.ColumnGroup=Ot,Ht.Summary=H;var _t=Ht,Zt=n(65283),Wt=h(null),Vt=h(null);var Yt=function(t){var e=t.rowInfo,n=t.column,i=t.colIndex,r=t.indent,o=t.index,a=t.renderIndex,s=t.record,l=t.style,c=t.className,h=t.inverse,p=t.getHeight,g=n.render,m=n.dataIndex,v=n.className,y=n.width,w=d(Vt,["columnsOffset"]).columnsOffset,b=$(e,n,i,r,o),x=b.key,S=b.fixedInfo,k=b.appendCellNode,C=b.additionalCellProps,M=C.style,E=C.colSpan,L=void 0===E?1:E,T=C.rowSpan,N=void 0===T?1:T,j=function(t,e,n){return n[t+(e||1)]-(n[t]||0)}(i-1,L,w),I=L>1?y-j:0,O=(0,P.Z)((0,P.Z)((0,P.Z)({},M),l),{},{flex:"0 0 ".concat(j,"px"),width:"".concat(j,"px"),marginRight:I,pointerEvents:"auto"}),D=u.useMemo((function(){return h?N<=1:0===L||0===N||N>1}),[N,L,h]);D?O.visibility="hidden":h&&(O.height=null==p?void 0:p(N));var R=D?function(){return null}:g,F={};return 0!==N&&0!==L||(F.rowSpan=1,F.colSpan=1),u.createElement(B,(0,f.Z)({className:A()(v,c),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:"div",prefixCls:e.prefixCls,key:x,record:s,index:o,renderIndex:a,dataIndex:m,render:R,shouldCellUpdate:n.shouldCellUpdate},S,{appendNode:k,additionalProps:(0,P.Z)((0,P.Z)({},C),{},{style:O},F)}))},Xt=["data","index","className","rowKey","style","extra","getHeight"],qt=u.forwardRef((function(t,e){var n,i=t.data,r=t.index,o=t.className,a=t.rowKey,s=t.style,l=t.extra,c=t.getHeight,h=(0,R.Z)(t,Xt),p=i.record,g=i.indent,m=i.index,v=d(x,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),y=v.scrollX,w=v.flattenColumns,b=v.prefixCls,S=v.fixColumn,C=v.componentWidth,M=J(p,a,r,g),E=M.rowSupportExpand,L=M.expanded,T=M.rowProps,N=M.expandedRowRender,j=M.expandedRowClassName;if(E&&L){var I=N(p,r,g+1,L),O=null==j?void 0:j(p,r,g),D={};S&&(D={style:(0,k.Z)({},"--virtual-width","".concat(C,"px"))});var F="".concat(b,"-expanded-row-cell");n=u.createElement("div",{className:A()("".concat(b,"-expanded-row"),"".concat(b,"-expanded-row-level-").concat(g+1),O)},u.createElement(B,{component:"div",prefixCls:b,className:A()(F,(0,k.Z)({},"".concat(F,"-fixed"),S)),additionalProps:D},I))}var z=(0,P.Z)((0,P.Z)({},s),{},{width:y});l&&(z.position="absolute",z.pointerEvents="none");var G=u.createElement("div",(0,f.Z)({},T,h,{ref:E?null:e,className:A()(o,"".concat(b,"-row"),null==T?void 0:T.className,(0,k.Z)({},"".concat(b,"-row-extra"),l)),style:(0,P.Z)((0,P.Z)({},z),null==T?void 0:T.style)}),w.map((function(t,e){return u.createElement(Yt,{key:e,rowInfo:M,column:t,colIndex:e,indent:g,index:r,renderIndex:m,record:p,inverse:l,getHeight:c})})));return E?u.createElement("div",{ref:e},G,n):G}));var Kt=w(qt),Qt=u.forwardRef((function(t,e){var n=t.data,i=t.onScroll,r=d(x,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),a=r.flattenColumns,s=r.onColumnResize,l=r.getRowKey,c=r.expandedKeys,h=r.prefixCls,p=r.childrenColumnName,g=r.emptyNode,m=r.scrollX,v=d(Wt),y=v.scrollY,w=v.listItemHeight,b=u.useRef(),S=K(n,p,c,l),P=u.useMemo((function(){var t=0;return a.map((function(e){var n=e.width;return[e.key,n,t+=n]}))}),[a]),k=u.useMemo((function(){return P.map((function(t){return t[2]}))}),[P]);u.useEffect((function(){P.forEach((function(t){var e=(0,o.Z)(t,2),n=e[0],i=e[1];s(n,i)}))}),[P]),u.useImperativeHandle(e,(function(){var t={};return Object.defineProperty(t,"scrollLeft",{get:function(){var t;return(null===(t=b.current)||void 0===t?void 0:t.getScrollInfo().x)||0},set:function(t){var e;null===(e=b.current)||void 0===e||e.scrollTo({left:t})}}),t}));var C,M=function(t,e){var n,i=null===(n=S[e])||void 0===n?void 0:n.record,r=t.onCell;if(r){var o,a=r(i,e);return null!==(o=null==a?void 0:a.rowSpan)&&void 0!==o?o:1}return 1},E=u.useMemo((function(){return{columnsOffset:k}}),[k]),L="".concat(h,"-tbody");return C=S.length?u.createElement(Zt.Z,{fullHeight:!1,ref:b,className:A()(L,"".concat(L,"-virtual")),height:y,itemHeight:w||24,data:S,itemKey:function(t){return l(t.record)},scrollWidth:m,onVirtualScroll:function(t){var e=t.x;i({scrollLeft:e})},extraRender:function(t){var e=t.start,n=t.end,i=t.getSize,r=t.offsetY;if(n<0)return null;for(var o=a.filter((function(t){return 0===M(t,e)})),s=e,c=function(t){if(!(o=o.filter((function(e){return 0===M(e,t)}))).length)return s=t,"break"},h=e;h>=0&&"break"!==c(h);h-=1);for(var d=a.filter((function(t){return 1!==M(t,n)})),f=n,p=function(t){if(!(d=d.filter((function(e){return 1!==M(e,t)}))).length)return f=Math.max(t-1,n),"break"},g=n;g<S.length&&"break"!==p(g);g+=1);for(var m=[],v=function(t){if(!S[t])return"continue";a.some((function(e){return M(e,t)>1}))&&m.push(t)},y=s;y<=f;y+=1)v(y);return m.map((function(t){var e=S[t],n=l(e.record,t),o=i(n);return u.createElement(Kt,{key:t,data:e,rowKey:n,index:t,style:{top:-r+o.top},extra:!0,getHeight:function(e){var r=t+e-1,o=l(S[r].record,r),a=i(n,o);return a.bottom-a.top}})}))}},(function(t,e,n){var i=l(t.record,e);return u.createElement(Kt,(0,f.Z)({data:t,rowKey:i,index:e},n))})):u.createElement("div",{className:A()("".concat(h,"-placeholder"))},u.createElement(B,{component:"div",prefixCls:h},g)),u.createElement(Vt.Provider,{value:E},C)}));var Jt=w(Qt),$t=function(t,e){var n=e.ref,i=e.onScroll;return u.createElement(Jt,{ref:n,data:t,onScroll:i})};function te(t){var e=t.columns,n=t.scroll,i=t.prefixCls,o=void 0===i?Dt:i,a=t.className,s=t.listItemHeight,l=n||{},c=l.x,h=l.y;"number"!=typeof c&&(c=100*((e||[]).length+1)),"number"!=typeof h&&(h=500);var d=u.useMemo((function(){return{scrollY:h,listItemHeight:s}}),[h,s]);return u.createElement(Wt.Provider,{value:d},u.createElement(_t,(0,f.Z)({},t,{className:A()(a,"".concat(o,"-virtual")),scroll:(0,P.Z)((0,P.Z)({},n),{},{x:c}),components:{body:$t},columns:e,internalHooks:r,tailor:!0})))}function ee(t){return y(te,t)}ee();var ne=function(t){return null};var ie=function(t){return null},re=n(2738),oe=n(16089);function ae(t,e,n,i){const r=n-e;return(t/=i/2)<1?r/2*t*t*t+e:r/2*((t-=2)*t*t+2)+e}function se(t){return null!=t&&t===t.window}function le(t,e){var n,i;if("undefined"==typeof window)return 0;const r=e?"scrollTop":"scrollLeft";let o=0;return se(t)?o=t[e?"pageYOffset":"pageXOffset"]:t instanceof Document?o=t.documentElement[r]:(t instanceof HTMLElement||t)&&(o=t[r]),t&&!se(t)&&"number"!=typeof o&&(o=null===(i=(null!==(n=t.ownerDocument)&&void 0!==n?n:t).documentElement)||void 0===i?void 0:i[r]),o}function ue(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{getContainer:n=(()=>window),callback:i,duration:r=450}=e,o=n(),a=le(o,!0),s=Date.now(),l=()=>{const e=Date.now()-s,n=ae(e>r?r:e,a,t,r);se(o)?o.scrollTo(window.pageXOffset,n):o instanceof Document||"HTMLDocument"===o.constructor.name?o.documentElement.scrollTop=n:o.scrollTop=n,e<r?(0,oe.Z)(l):"function"==typeof i&&i()};(0,oe.Z)(l)}var ce=n(36355),he=n(93891),de=n(19716),fe=n(8628),pe=n(41412),ge=n(58421),me=n(71418),ve=n(88088);var ye=function(t){return function(e){let{prefixCls:n,onExpand:i,record:r,expanded:o,expandable:a}=e;const s=`${n}-row-expand-icon`;return u.createElement("button",{type:"button",onClick:t=>{i(r,t),t.stopPropagation()},className:A()(s,{[`${s}-spaced`]:!a,[`${s}-expanded`]:a&&o,[`${s}-collapsed`]:a&&!o}),"aria-label":o?t.collapse:t.expand,"aria-expanded":o})}};function we(t,e){return"key"in t&&void 0!==t.key&&null!==t.key?t.key:t.dataIndex?Array.isArray(t.dataIndex)?t.dataIndex.join("."):t.dataIndex:e}function be(t,e){return e?`${e}-${t}`:`${t}`}function xe(t,e){return"function"==typeof t?t(e):t}var Se={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},Pe=n(7657),ke=function(t,e){return u.createElement(Pe.Z,(0,f.Z)({},t,{ref:e,icon:Se}))};var Ce=u.forwardRef(ke),Ae=n(56762);var Me=n(3113),Ee=n(24905),Le=n(8070),Te=n(64165),Ne=n(20834),je=n(40875),Ie=n(5112),Be=n(177),Oe=n(47472),De=n(10249);var Re=function(t){let{value:e,onChange:n,filterSearch:i,tablePrefixCls:r,locale:o}=t;return i?u.createElement("div",{className:`${r}-filter-dropdown-search`},u.createElement(De.Z,{prefix:u.createElement(Oe.Z,null),placeholder:o.filterSearchPlaceholder,onChange:n,value:e,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},Fe=n(10228);const ze=t=>{const{keyCode:e}=t;e===Fe.Z.ENTER&&t.stopPropagation()};var Ge=u.forwardRef(((t,e)=>u.createElement("div",{className:t.className,onClick:t=>t.stopPropagation(),onKeyDown:ze,ref:e},t.children)));function Ue(t){let e=[];return(t||[]).forEach((t=>{let{value:n,children:i}=t;e.push(n),i&&(e=[].concat((0,ct.Z)(e),(0,ct.Z)(Ue(i))))})),e}function He(t,e){return("string"==typeof e||"number"==typeof e)&&(null==e?void 0:e.toString().toLowerCase().includes(t.trim().toLowerCase()))}function _e(t){let{filters:e,prefixCls:n,filteredKeys:i,filterMultiple:r,searchValue:o,filterSearch:a}=t;return e.map(((t,e)=>{const s=String(t.value);if(t.children)return{key:s||e,label:t.text,popupClassName:`${n}-dropdown-submenu`,children:_e({filters:t.children,prefixCls:n,filteredKeys:i,filterMultiple:r,searchValue:o,filterSearch:a})};const l=r?Ee.Z:Ie.ZP,c={key:void 0!==t.value?s:e,label:u.createElement(u.Fragment,null,u.createElement(l,{checked:i.includes(s)}),u.createElement("span",null,t.text))};return o.trim()?"function"==typeof a?a(o,t)?c:null:He(o,t.text)?c:null:c}))}var Ze=function(t){var e,n;const{tablePrefixCls:i,prefixCls:r,column:o,dropdownPrefixCls:a,columnKey:s,filterMultiple:c,filterMode:h="menu",filterSearch:d=!1,filterState:f,triggerFilter:p,locale:g,children:m,getPopupContainer:v}=t,{filterDropdownOpen:y,onFilterDropdownOpenChange:w,filterResetToDefaultFilteredValue:b,defaultFilteredValue:x,filterDropdownVisible:S,onFilterDropdownVisibleChange:P}=o,[k,C]=u.useState(!1),M=!(!f||!(null===(e=f.filteredKeys)||void 0===e?void 0:e.length)&&!f.forceFiltered),E=t=>{C(t),null==w||w(t),null==P||P(t)},L=null!==(n=null!=y?y:S)&&void 0!==n?n:k,T=null==f?void 0:f.filteredKeys,[N,j]=function(t){const e=u.useRef(t),n=(0,Ae.Z)();return[()=>e.current,t=>{e.current=t,n()}]}(T||[]),I=t=>{let{selectedKeys:e}=t;j(e)},B=(t,e)=>{let{node:n,checked:i}=e;I(c?{selectedKeys:t}:{selectedKeys:i&&n.key?[n.key]:[]})};u.useEffect((()=>{k&&I({selectedKeys:T||[]})}),[T]);const[O,D]=u.useState([]),R=t=>{D(t)},[F,z]=u.useState(""),G=t=>{const{value:e}=t.target;z(e)};u.useEffect((()=>{k||z("")}),[k]);const U=t=>{const e=t&&t.length?t:null;return null!==e||f&&f.filteredKeys?(0,l.Z)(e,null==f?void 0:f.filteredKeys,!0)?null:void p({column:o,key:s,filteredKeys:e}):null},H=()=>{E(!1),U(N())},_=function(){let{confirm:t,closeDropdown:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{confirm:!1,closeDropdown:!1};t&&U([]),e&&E(!1),z(""),j(b?(x||[]).map((t=>String(t))):[])},Z=function(){let{closeDropdown:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{closeDropdown:!0};t&&E(!1),U(N())},W=A()({[`${a}-menu-without-submenu`]:(V=o.filters||[],!V.some((t=>{let{children:e}=t;return e})))});var V;const Y=t=>{if(t.target.checked){const t=Ue(null==o?void 0:o.filters).map((t=>String(t)));j(t)}else j([])},X=t=>{let{filters:e}=t;return(e||[]).map(((t,e)=>{const n=String(t.value),i={title:t.text,key:void 0!==t.value?n:e};return t.children&&(i.children=X({filters:t.children})),i}))},q=t=>{var e;return Object.assign(Object.assign({},t),{text:t.title,value:t.key,children:(null===(e=t.children)||void 0===e?void 0:e.map((t=>q(t))))||[]})};let K,Q;if("function"==typeof o.filterDropdown)K=o.filterDropdown({prefixCls:`${a}-custom`,setSelectedKeys:t=>I({selectedKeys:t}),selectedKeys:N(),confirm:Z,clearFilters:_,filters:o.filters,visible:L,close:()=>{E(!1)}});else if(o.filterDropdown)K=o.filterDropdown;else{const t=N()||[],e=()=>0===(o.filters||[]).length?u.createElement(Te.Z,{image:Te.Z.PRESENTED_IMAGE_SIMPLE,description:g.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):"tree"===h?u.createElement(u.Fragment,null,u.createElement(Re,{filterSearch:d,value:F,onChange:G,tablePrefixCls:i,locale:g}),u.createElement("div",{className:`${i}-filter-dropdown-tree`},c?u.createElement(Ee.Z,{checked:t.length===Ue(o.filters).length,indeterminate:t.length>0&&t.length<Ue(o.filters).length,className:`${i}-filter-dropdown-checkall`,onChange:Y},g.filterCheckall):null,u.createElement(Be.Z,{checkable:!0,selectable:!1,blockNode:!0,multiple:c,checkStrictly:!c,className:`${a}-menu`,onCheck:B,checkedKeys:t,selectedKeys:t,showIcon:!1,treeData:X({filters:o.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:F.trim()?t=>"function"==typeof d?d(F,q(t)):He(F,t.title):void 0}))):u.createElement(u.Fragment,null,u.createElement(Re,{filterSearch:d,value:F,onChange:G,tablePrefixCls:i,locale:g}),u.createElement(Ne.Z,{selectable:!0,multiple:c,prefixCls:`${a}-menu`,className:W,onSelect:I,onDeselect:I,selectedKeys:t,getPopupContainer:v,openKeys:O,onOpenChange:R,items:_e({filters:o.filters||[],filterSearch:d,prefixCls:r,filteredKeys:N(),filterMultiple:c,searchValue:F})})),n=()=>b?(0,l.Z)((x||[]).map((t=>String(t))),t,!0):0===t.length;K=u.createElement(u.Fragment,null,e(),u.createElement("div",{className:`${r}-dropdown-btns`},u.createElement(Me.ZP,{type:"link",size:"small",disabled:n(),onClick:()=>_()},g.filterReset),u.createElement(Me.ZP,{type:"primary",size:"small",onClick:H},g.filterConfirm)))}o.filterDropdown&&(K=u.createElement(je.J,{selectable:void 0},K)),Q="function"==typeof o.filterIcon?o.filterIcon(M):o.filterIcon?o.filterIcon:u.createElement(Ce,null);const{direction:J}=u.useContext(ce.E_);return u.createElement("div",{className:`${r}-column`},u.createElement("span",{className:`${i}-column-title`},m),u.createElement(Le.Z,{dropdownRender:()=>u.createElement(Ge,{className:`${r}-dropdown`},K),trigger:["click"],open:L,onOpenChange:t=>{t&&void 0!==T&&j(T||[]),E(t),t||o.filterDropdown||H()},getPopupContainer:v,placement:"rtl"===J?"bottomLeft":"bottomRight"},u.createElement("span",{role:"button",tabIndex:-1,className:A()(`${r}-trigger`,{active:M}),onClick:t=>{t.stopPropagation()}},Q)))};function We(t,e,n){let i=[];return(t||[]).forEach(((t,r)=>{var o;const a=be(r,n);if(t.filters||"filterDropdown"in t||"onFilter"in t)if("filteredValue"in t){let e=t.filteredValue;"filterDropdown"in t||(e=null!==(o=null==e?void 0:e.map(String))&&void 0!==o?o:e),i.push({column:t,key:we(t,a),filteredKeys:e,forceFiltered:t.filtered})}else i.push({column:t,key:we(t,a),filteredKeys:e&&t.defaultFilteredValue?t.defaultFilteredValue:void 0,forceFiltered:t.filtered});"children"in t&&(i=[].concat((0,ct.Z)(i),(0,ct.Z)(We(t.children,e,a))))})),i}function Ve(t,e,n,i,r,o,a,s){return n.map(((n,l)=>{const c=be(l,s),{filterMultiple:h=!0,filterMode:d,filterSearch:f}=n;let p=n;if(p.filters||p.filterDropdown){const s=we(p,c),l=i.find((t=>{let{key:e}=t;return s===e}));p=Object.assign(Object.assign({},p),{title:i=>u.createElement(Ze,{tablePrefixCls:t,prefixCls:`${t}-filter`,dropdownPrefixCls:e,column:p,columnKey:s,filterState:l,filterMultiple:h,filterMode:d,filterSearch:f,triggerFilter:o,locale:r,getPopupContainer:a},xe(n.title,i))})}return"children"in p&&(p=Object.assign(Object.assign({},p),{children:Ve(t,e,p.children,i,r,o,a,c)})),p}))}function Ye(t){const e={};return t.forEach((t=>{let{key:n,filteredKeys:i,column:r}=t;const{filters:o,filterDropdown:a}=r;if(a)e[n]=i||null;else if(Array.isArray(i)){const t=Ue(o);e[n]=t.filter((t=>i.includes(String(t))))}else e[n]=null})),e}function Xe(t,e){return e.reduce(((t,e)=>{const{column:{onFilter:n,filters:i},filteredKeys:r}=e;return n&&r&&r.length?t.filter((t=>r.some((e=>{const r=Ue(i),o=r.findIndex((t=>String(t)===String(e))),a=-1!==o?r[o]:e;return n(a,t)})))):t}),t)}const qe=t=>t.flatMap((t=>"children"in t?[t].concat((0,ct.Z)(qe(t.children||[]))):[t]));var Ke=function(t){let{prefixCls:e,dropdownPrefixCls:n,mergedColumns:i,onFilterChange:r,getPopupContainer:o,locale:a}=t;const s=u.useMemo((()=>qe(i||[])),[i]),[l,c]=u.useState((()=>We(s,!0))),h=u.useMemo((()=>{const t=We(s,!1);if(0===t.length)return t;let e=!0,n=!0;if(t.forEach((t=>{let{filteredKeys:i}=t;void 0!==i?e=!1:n=!1})),e){const t=(s||[]).map(((t,e)=>we(t,be(e))));return l.filter((e=>{let{key:n}=e;return t.includes(n)})).map((e=>{const n=s[t.findIndex((t=>t===e.key))];return Object.assign(Object.assign({},e),{column:Object.assign(Object.assign({},e.column),n),forceFiltered:n.filtered})}))}return t}),[s,l]),d=u.useMemo((()=>Ye(h)),[h]),f=t=>{const e=h.filter((e=>{let{key:n}=e;return n!==t.key}));e.push(t),c(e),r(Ye(e),e)};return[t=>Ve(e,n,t,h,a,f,o),h,d]};var Qe=function(){const t=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let e=1;e<arguments.length;e++){const n=e<0||arguments.length<=e?void 0:arguments[e];n&&Object.keys(n).forEach((e=>{const i=n[e];void 0!==i&&(t[e]=i)}))}return t},Je=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};const $e=10;var tn=function(t,e,n){const i=n&&"object"==typeof n?n:{},{total:r=0}=i,o=Je(i,["total"]),[a,s]=(0,u.useState)((()=>({current:"defaultCurrent"in o?o.defaultCurrent:1,pageSize:"defaultPageSize"in o?o.defaultPageSize:$e}))),l=Qe(a,o,{total:r>0?r:t}),c=Math.ceil((r||t)/l.pageSize);l.current>c&&(l.current=c||1);const h=(t,e)=>{s({current:null!=t?t:1,pageSize:e||l.pageSize})};return!1===n?[{},()=>{}]:[Object.assign(Object.assign({},l),{onChange:(t,i)=>{var r;n&&(null===(r=n.onChange)||void 0===r||r.call(n,t,i)),h(t,i),e(t,i||(null==l?void 0:l.pageSize))}}),h]},en=n(84105),nn=n(35654),rn=n(90782),on=n(71430),an=n(18929);const sn={},ln="SELECT_ALL",un="SELECT_INVERT",cn="SELECT_NONE",hn=[],dn=(t,e)=>{let n=[];return(e||[]).forEach((e=>{n.push(e),e&&"object"==typeof e&&t in e&&(n=[].concat((0,ct.Z)(n),(0,ct.Z)(dn(t,e[t]))))})),n};var fn=(t,e)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:i,defaultSelectedRowKeys:r,getCheckboxProps:o,onChange:a,onSelect:s,onSelectAll:l,onSelectInvert:c,onSelectNone:h,onSelectMultiple:d,columnWidth:f,type:p,selections:g,fixed:m,renderCell:v,hideSelectAll:y,checkStrictly:w=!0}=e||{},{prefixCls:b,data:x,pageData:S,getRecordByKey:P,getRowKey:k,expandType:C,childrenColumnName:M,locale:E,getPopupContainer:L}=t,[T,N]=(0,an.Z)(i||r||hn,{value:i}),j=u.useRef(new Map),I=(0,u.useCallback)((t=>{if(n){const e=new Map;t.forEach((t=>{let n=P(t);!n&&j.current.has(t)&&(n=j.current.get(t)),e.set(t,n)})),j.current=e}}),[P,n]);u.useEffect((()=>{I(T)}),[T]);const{keyEntities:B}=(0,u.useMemo)((()=>{if(w)return{keyEntities:null};let t=x;if(n){const e=new Set(x.map(((t,e)=>k(t,e)))),n=Array.from(j.current).reduce(((t,n)=>{let[i,r]=n;return e.has(i)?t:t.concat(r)}),[]);t=[].concat((0,ct.Z)(t),(0,ct.Z)(n))}return(0,on.I8)(t,{externalGetKey:k,childrenPropName:M})}),[x,k,w,M,n]),O=(0,u.useMemo)((()=>dn(M,S)),[M,S]),D=(0,u.useMemo)((()=>{const t=new Map;return O.forEach(((e,n)=>{const i=k(e,n),r=(o?o(e):null)||{};t.set(i,r)})),t}),[O,k,o]),R=(0,u.useCallback)((t=>{var e;return!!(null===(e=D.get(k(t)))||void 0===e?void 0:e.disabled)}),[D,k]),[F,z]=(0,u.useMemo)((()=>{if(w)return[T||[],[]];const{checkedKeys:t,halfCheckedKeys:e}=(0,rn.S)(T,!0,B,R);return[t||[],e]}),[T,w,B,R]),G=(0,u.useMemo)((()=>{const t="radio"===p?F.slice(0,1):F;return new Set(t)}),[F,p]),U=(0,u.useMemo)((()=>"radio"===p?new Set:new Set(z)),[z,p]),[H,_]=(0,u.useState)(null);u.useEffect((()=>{e||N(hn)}),[!!e]);const Z=(0,u.useCallback)(((t,e)=>{let i,r;I(t),n?(i=t,r=t.map((t=>j.current.get(t)))):(i=[],r=[],t.forEach((t=>{const e=P(t);void 0!==e&&(i.push(t),r.push(e))}))),N(i),null==a||a(i,r,{type:e})}),[N,P,a,n]),W=(0,u.useCallback)(((t,e,n,i)=>{if(s){const r=n.map((t=>P(t)));s(P(t),e,r,i)}Z(n,"single")}),[s,P,Z]),V=(0,u.useMemo)((()=>{if(!g||y)return null;return(!0===g?[ln,un,cn]:g).map((t=>t===ln?{key:"all",text:E.selectionAll,onSelect(){Z(x.map(((t,e)=>k(t,e))).filter((t=>{const e=D.get(t);return!(null==e?void 0:e.disabled)||G.has(t)})),"all")}}:t===un?{key:"invert",text:E.selectInvert,onSelect(){const t=new Set(G);S.forEach(((e,n)=>{const i=k(e,n),r=D.get(i);(null==r?void 0:r.disabled)||(t.has(i)?t.delete(i):t.add(i))}));const e=Array.from(t);c&&c(e),Z(e,"invert")}}:t===cn?{key:"none",text:E.selectNone,onSelect(){null==h||h(),Z(Array.from(G).filter((t=>{const e=D.get(t);return null==e?void 0:e.disabled})),"none")}}:t)).map((t=>Object.assign(Object.assign({},t),{onSelect:function(){for(var e,n,i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];null===(n=t.onSelect)||void 0===n||(e=n).call.apply(e,[t].concat(r)),_(null)}})))}),[g,G,S,k,c,Z]),Y=(0,u.useCallback)((t=>{var n;if(!e)return t.filter((t=>t!==sn));let i=(0,ct.Z)(t);const r=new Set(G),o=O.map(k).filter((t=>!D.get(t).disabled)),a=o.every((t=>r.has(t))),s=o.some((t=>r.has(t))),c=()=>{const t=[];a?o.forEach((e=>{r.delete(e),t.push(e)})):o.forEach((e=>{r.has(e)||(r.add(e),t.push(e))}));const e=Array.from(r);null==l||l(!a,e.map((t=>P(t))),t.map((t=>P(t)))),Z(e,"all"),_(null)};let h,x;if("radio"!==p){let t;if(V){const e={getPopupContainer:L,items:V.map(((t,e)=>{const{key:n,text:i,onSelect:r}=t;return{key:null!=n?n:e,onClick:()=>{null==r||r(o)},label:i}}))};t=u.createElement("div",{className:`${b}-selection-extra`},u.createElement(Le.Z,{menu:e,getPopupContainer:L},u.createElement("span",null,u.createElement(en.Z,null))))}const e=O.map(((t,e)=>{const n=k(t,e),i=D.get(n)||{};return Object.assign({checked:r.has(n)},i)})).filter((t=>{let{disabled:e}=t;return e})),n=!!e.length&&e.length===O.length,i=n&&e.every((t=>{let{checked:e}=t;return e})),l=n&&e.some((t=>{let{checked:e}=t;return e}));h=!y&&u.createElement("div",{className:`${b}-selection`},u.createElement(Ee.Z,{checked:n?i:!!O.length&&a,indeterminate:n?!i&&l:!a&&s,onChange:c,disabled:0===O.length||n,"aria-label":t?"Custom selection":"Select all",skipGroup:!0}),t)}x="radio"===p?(t,e,n)=>{const i=k(e,n),o=r.has(i);return{node:u.createElement(Ie.ZP,Object.assign({},D.get(i),{checked:o,onClick:t=>t.stopPropagation(),onChange:t=>{r.has(i)||W(i,!0,[i],t.nativeEvent)}})),checked:o}}:(t,e,n)=>{var i;const a=k(e,n),s=r.has(a),l=U.has(a),c=D.get(a);let h;return h="nest"===C?l:null!==(i=null==c?void 0:c.indeterminate)&&void 0!==i?i:l,{node:u.createElement(Ee.Z,Object.assign({},c,{indeterminate:h,checked:s,skipGroup:!0,onClick:t=>t.stopPropagation(),onChange:t=>{let{nativeEvent:e}=t;const{shiftKey:n}=e;let i=-1,l=-1;if(n&&w){const t=new Set([H,a]);o.some(((e,n)=>{if(t.has(e)){if(-1!==i)return l=n,!0;i=n}return!1}))}if(-1!==l&&i!==l&&w){const t=o.slice(i,l+1),e=[];s?t.forEach((t=>{r.has(t)&&(e.push(t),r.delete(t))})):t.forEach((t=>{r.has(t)||(e.push(t),r.add(t))}));const n=Array.from(r);null==d||d(!s,n.map((t=>P(t))),e.map((t=>P(t)))),Z(n,"multiple")}else{const t=F;if(w){const n=s?(0,nn._5)(t,a):(0,nn.L0)(t,a);W(a,!s,n,e)}else{const n=(0,rn.S)([].concat((0,ct.Z)(t),[a]),!0,B,R),{checkedKeys:i,halfCheckedKeys:r}=n;let o=i;if(s){const t=new Set(i);t.delete(a),o=(0,rn.S)(Array.from(t),{checked:!1,halfCheckedKeys:r},B,R).checkedKeys}W(a,!s,o,e)}}_(s?null:a)}})),checked:s}};if(!i.includes(sn))if(0===i.findIndex((t=>{var e;return"EXPAND_COLUMN"===(null===(e=t[st])||void 0===e?void 0:e.columnType)}))){const[t,...e]=i;i=[t,sn].concat((0,ct.Z)(e))}else i=[sn].concat((0,ct.Z)(i));const S=i.indexOf(sn);i=i.filter(((t,e)=>t!==sn||e===S));const M=i[S-1],E=i[S+1];let T=m;void 0===T&&(void 0!==(null==E?void 0:E.fixed)?T=E.fixed:void 0!==(null==M?void 0:M.fixed)&&(T=M.fixed)),T&&M&&"EXPAND_COLUMN"===(null===(n=M[st])||void 0===n?void 0:n.columnType)&&void 0===M.fixed&&(M.fixed=T);const N=A()(`${b}-selection-col`,{[`${b}-selection-col-with-dropdown`]:g&&"checkbox"===p}),j={fixed:T,width:f,className:`${b}-selection-column`,title:e.columnTitle||h,render:(t,e,n)=>{const{node:i,checked:r}=x(t,e,n);return v?v(r,e,n,i):i},onCell:e.onCell,[st]:{className:N}};return i.map((t=>t===sn?j:t))}),[k,O,e,F,G,U,f,V,C,H,D,d,W,R]);return[Y,G]},pn=n(89489),gn={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},mn=function(t,e){return u.createElement(Pe.Z,(0,f.Z)({},t,{ref:e,icon:gn}))};var vn=u.forwardRef(mn),yn=n(6848);const wn="ascend",bn="descend";function xn(t){return"object"==typeof t.sorter&&"number"==typeof t.sorter.multiple&&t.sorter.multiple}function Sn(t){return"function"==typeof t?t:!(!t||"object"!=typeof t||!t.compare)&&t.compare}function Pn(t,e,n){let i=[];function r(t,e){i.push({column:t,key:we(t,e),multiplePriority:xn(t),sortOrder:t.sortOrder})}return(t||[]).forEach(((t,o)=>{const a=be(o,n);t.children?("sortOrder"in t&&r(t,a),i=[].concat((0,ct.Z)(i),(0,ct.Z)(Pn(t.children,e,a)))):t.sorter&&("sortOrder"in t?r(t,a):e&&t.defaultSortOrder&&i.push({column:t,key:we(t,a),multiplePriority:xn(t),sortOrder:t.defaultSortOrder}))})),i}function kn(t,e,n,i,r,o,a,s){return(e||[]).map(((e,l)=>{const c=be(l,s);let h=e;if(h.sorter){const s=h.sortDirections||r,l=void 0===h.showSorterTooltip?a:h.showSorterTooltip,d=we(h,c),f=n.find((t=>{let{key:e}=t;return e===d})),p=f?f.sortOrder:null,g=function(t,e){return e?t[t.indexOf(e)+1]:t[0]}(s,p);let m;if(e.sortIcon)m=e.sortIcon({sortOrder:p});else{const e=s.includes(wn)&&u.createElement(vn,{className:A()(`${t}-column-sorter-up`,{active:p===wn})}),n=s.includes(bn)&&u.createElement(pn.Z,{className:A()(`${t}-column-sorter-down`,{active:p===bn})});m=u.createElement("span",{className:A()(`${t}-column-sorter`,{[`${t}-column-sorter-full`]:!(!e||!n)})},u.createElement("span",{className:`${t}-column-sorter-inner`,"aria-hidden":"true"},e,n))}const{cancelSort:v,triggerAsc:y,triggerDesc:w}=o||{};let b=v;g===bn?b=w:g===wn&&(b=y);const x="object"==typeof l?l:{title:b};h=Object.assign(Object.assign({},h),{className:A()(h.className,{[`${t}-column-sort`]:p}),title:n=>{const i=u.createElement("div",{className:`${t}-column-sorters`},u.createElement("span",{className:`${t}-column-title`},xe(e.title,n)),m);return l?u.createElement(yn.Z,Object.assign({},x),i):i},onHeaderCell:n=>{const r=e.onHeaderCell&&e.onHeaderCell(n)||{},o=r.onClick,a=r.onKeyDown;r.onClick=t=>{i({column:e,key:d,sortOrder:g,multiplePriority:xn(e)}),null==o||o(t)},r.onKeyDown=t=>{t.keyCode===Fe.Z.ENTER&&(i({column:e,key:d,sortOrder:g,multiplePriority:xn(e)}),null==a||a(t))};const s=function(t,e){const n=xe(t,e);return"[object Object]"===Object.prototype.toString.call(n)?"":n}(e.title,{}),l=null==s?void 0:s.toString();return p?r["aria-sort"]="ascend"===p?"ascending":"descending":r["aria-label"]=l||"",r.className=A()(r.className,`${t}-column-has-sorters`),r.tabIndex=0,e.ellipsis&&(r.title=(null!=s?s:"").toString()),r}})}return"children"in h&&(h=Object.assign(Object.assign({},h),{children:kn(t,h.children,n,i,r,o,a,c)})),h}))}function Cn(t){const{column:e,sortOrder:n}=t;return{column:e,order:n,field:e.dataIndex,columnKey:e.key}}function An(t){const e=t.filter((t=>{let{sortOrder:e}=t;return e})).map(Cn);return 0===e.length&&t.length?Object.assign(Object.assign({},Cn(t[t.length-1])),{column:void 0}):e.length<=1?e[0]||{}:e}function Mn(t,e,n){const i=e.slice().sort(((t,e)=>e.multiplePriority-t.multiplePriority)),r=t.slice(),o=i.filter((t=>{let{column:{sorter:e},sortOrder:n}=t;return Sn(e)&&n}));return o.length?r.sort(((t,e)=>{for(let n=0;n<o.length;n+=1){const i=o[n],{column:{sorter:r},sortOrder:a}=i,s=Sn(r);if(s&&a){const n=s(t,e,a);if(0!==n)return a===wn?n:-n}}return 0})).map((t=>{const i=t[n];return i?Object.assign(Object.assign({},t),{[n]:Mn(i,e,n)}):t})):r}function En(t,e){return t.map((t=>{const n=Object.assign({},t);return n.title=xe(t.title,e),"children"in n&&(n.children=En(n.children,e)),n}))}function Ln(t){return[u.useCallback((e=>En(e,t)),[t])]}var Tn=Ut(((t,e)=>{const{_renderTimes:n}=t,{_renderTimes:i}=e;return n!==i})),Nn=ee(((t,e)=>{const{_renderTimes:n}=t,{_renderTimes:i}=e;return n!==i})),jn=n(60654),In=n(17313),Bn=n(83116),On=n(37613);var Dn=t=>{const{componentCls:e}=t,n=`${t.lineWidth}px ${t.lineType} ${t.tableBorderColor}`,i=(n,i,r)=>({[`&${e}-${n}`]:{[`> ${e}-container`]:{[`> ${e}-content, > ${e}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${e}-expanded-row-fixed`]:{margin:`-${i}px -${r+t.lineWidth}px`}}}}}});return{[`${e}-wrapper`]:{[`${e}${e}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${e}-title`]:{border:n,borderBottom:0},[`> ${e}-container`]:{borderInlineStart:n,borderTop:n,[`\n > ${e}-content,\n > ${e}-header,\n > ${e}-body,\n > ${e}-summary\n `]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:n},"> thead":{"> tr:not(:last-child) > th":{borderBottom:n},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${e}-cell-fix-right-first::after`]:{borderInlineEnd:n}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${e}-expanded-row-fixed`]:{margin:`-${t.tablePaddingVertical}px -${t.tablePaddingHorizontal+t.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:t.lineWidth,bottom:0,borderInlineEnd:n,content:'""'}}}}}},[`&${e}-scroll-horizontal`]:{[`> ${e}-container > ${e}-body`]:{"> table > tbody":{[`\n > tr${e}-expanded-row,\n > tr${e}-placeholder\n `]:{"> th, > td":{borderInlineEnd:0}}}}}},i("middle",t.tablePaddingVerticalMiddle,t.tablePaddingHorizontalMiddle)),i("small",t.tablePaddingVerticalSmall,t.tablePaddingHorizontalSmall)),{[`> ${e}-footer`]:{border:n,borderTop:0}}),[`${e}-cell`]:{[`${e}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${t.lineWidth}px 0 ${t.lineWidth}px ${t.tableHeaderBg}`}},[`${e}-bordered ${e}-cell-scrollbar`]:{borderInlineEnd:n}}}};var Rn=t=>{const{componentCls:e}=t;return{[`${e}-wrapper`]:{[`${e}-cell-ellipsis`]:Object.assign(Object.assign({},In.vS),{wordBreak:"keep-all",[`\n &${e}-cell-fix-left-last,\n &${e}-cell-fix-right-first\n `]:{overflow:"visible",[`${e}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${e}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}};var Fn=t=>{const{componentCls:e}=t;return{[`${e}-wrapper`]:{[`${e}-tbody > tr${e}-placeholder`]:{textAlign:"center",color:t.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:t.colorBgContainer}}}}},zn=n(15969);var Gn=t=>{const{componentCls:e,antCls:n,controlInteractiveSize:i,motionDurationSlow:r,lineWidth:o,paddingXS:a,lineType:s,tableBorderColor:l,tableExpandIconBg:u,tableExpandColumnWidth:c,borderRadius:h,fontSize:d,fontSizeSM:f,lineHeight:p,tablePaddingVertical:g,tablePaddingHorizontal:m,tableExpandedRowBg:v,paddingXXS:y}=t,w=i/2-o,b=2*w+3*o,x=`${o}px ${s} ${l}`,S=y-o;return{[`${e}-wrapper`]:{[`${e}-expand-icon-col`]:{width:c},[`${e}-row-expand-icon-cell`]:{textAlign:"center",[`${e}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${e}-row-indent`]:{height:1,float:"left"},[`${e}-row-expand-icon`]:Object.assign(Object.assign({},(0,zn.N)(t)),{position:"relative",float:"left",boxSizing:"border-box",width:b,height:b,padding:0,color:"inherit",lineHeight:`${b}px`,background:u,border:x,borderRadius:h,transform:`scale(${i/b})`,transition:`all ${r}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:w,insetInlineEnd:S,insetInlineStart:S,height:o},"&::after":{top:S,bottom:S,insetInlineStart:w,width:o,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${e}-row-indent + ${e}-row-expand-icon`]:{marginTop:(d*p-3*o)/2-Math.ceil((1.4*f-3*o)/2),marginInlineEnd:a},[`tr${e}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:v}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${e}-expanded-row-fixed`]:{position:"relative",margin:`-${g}px -${m}px`,padding:`${g}px ${m}px`}}}};var Un=t=>{const{componentCls:e,antCls:n,iconCls:i,tableFilterDropdownWidth:r,tableFilterDropdownSearchWidth:o,paddingXXS:a,paddingXS:s,colorText:l,lineWidth:u,lineType:c,tableBorderColor:h,tableHeaderIconColor:d,fontSizeSM:f,tablePaddingHorizontal:p,borderRadius:g,motionDurationSlow:m,colorTextDescription:v,colorPrimary:y,tableHeaderFilterActiveBg:w,colorTextDisabled:b,tableFilterDropdownBg:x,tableFilterDropdownHeight:S,controlItemBgHover:P,controlItemBgActive:k,boxShadowSecondary:C,filterDropdownMenuBg:A}=t,M=`${n}-dropdown`,E=`${e}-filter-dropdown`,L=`${n}-tree`,T=`${u}px ${c} ${h}`;return[{[`${e}-wrapper`]:{[`${e}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${e}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-a,marginInline:`${a}px ${-p/2}px`,padding:`0 ${a}px`,color:d,fontSize:f,borderRadius:g,cursor:"pointer",transition:`all ${m}`,"&:hover":{color:v,background:w},"&.active":{color:y}}}},{[`${n}-dropdown`]:{[E]:Object.assign(Object.assign({},(0,In.Wf)(t)),{minWidth:r,backgroundColor:x,borderRadius:g,boxShadow:C,overflow:"hidden",[`${M}-menu`]:{maxHeight:S,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:A,"&:empty::after":{display:"block",padding:`${s}px 0`,color:b,fontSize:f,textAlign:"center",content:'"Not Found"'}},[`${E}-tree`]:{paddingBlock:`${s}px 0`,paddingInline:s,[L]:{padding:0},[`${L}-treenode ${L}-node-content-wrapper:hover`]:{backgroundColor:P},[`${L}-treenode-checkbox-checked ${L}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:k}}},[`${E}-search`]:{padding:s,borderBottom:T,"&-input":{input:{minWidth:o},[i]:{color:b}}},[`${E}-checkall`]:{width:"100%",marginBottom:a,marginInlineStart:a},[`${E}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${s-u}px ${s}px`,overflow:"hidden",borderTop:T}})}},{[`${n}-dropdown ${E}, ${E}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:s,color:l},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]};var Hn=t=>{const{componentCls:e,lineWidth:n,colorSplit:i,motionDurationSlow:r,zIndexTableFixed:o,tableBg:a,zIndexTableSticky:s}=t;return{[`${e}-wrapper`]:{[`\n ${e}-cell-fix-left,\n ${e}-cell-fix-right\n `]:{position:"sticky !important",zIndex:o,background:a},[`\n ${e}-cell-fix-left-first::after,\n ${e}-cell-fix-left-last::after\n `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-n,width:30,transform:"translateX(100%)",transition:`box-shadow ${r}`,content:'""',pointerEvents:"none"},[`${e}-cell-fix-left-all::after`]:{display:"none"},[`\n ${e}-cell-fix-right-first::after,\n ${e}-cell-fix-right-last::after\n `]:{position:"absolute",top:0,bottom:-n,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${r}`,content:'""',pointerEvents:"none"},[`${e}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:s+1,width:30,transition:`box-shadow ${r}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${e}-ping-left`]:{[`&:not(${e}-has-fix-left) ${e}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${i}`}},[`\n ${e}-cell-fix-left-first::after,\n ${e}-cell-fix-left-last::after\n `]:{boxShadow:`inset 10px 0 8px -8px ${i}`},[`${e}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${e}-ping-right`]:{[`&:not(${e}-has-fix-right) ${e}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${i}`}},[`\n ${e}-cell-fix-right-first::after,\n ${e}-cell-fix-right-last::after\n `]:{boxShadow:`inset -10px 0 8px -8px ${i}`}}}}};var _n=t=>{const{componentCls:e,antCls:n}=t;return{[`${e}-wrapper`]:{[`${e}-pagination${n}-pagination`]:{margin:`${t.margin}px 0`},[`${e}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:t.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}};var Zn=t=>{const{componentCls:e,tableRadius:n}=t;return{[`${e}-wrapper`]:{[e]:{[`${e}-title, ${e}-header`]:{borderRadius:`${n}px ${n}px 0 0`},[`${e}-title + ${e}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${e}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${n}px ${n}px`}}}}};var Wn=t=>{const{componentCls:e}=t;return{[`${e}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${e}-pagination-left`]:{justifyContent:"flex-end"},[`${e}-pagination-right`]:{justifyContent:"flex-start"},[`${e}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${e}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${e}-row-indent`]:{float:"right"}}}}};var Vn=t=>{const{componentCls:e,antCls:n,iconCls:i,fontSizeIcon:r,padding:o,paddingXS:a,tableHeaderIconColor:s,tableHeaderIconColorHover:l,tableSelectionColumnWidth:u}=t;return{[`${e}-wrapper`]:{[`${e}-selection-col`]:{width:u,[`&${e}-selection-col-with-dropdown`]:{width:u+r+o/4}},[`${e}-bordered ${e}-selection-col`]:{width:u+2*a,[`&${e}-selection-col-with-dropdown`]:{width:u+r+o/4+2*a}},[`\n table tr th${e}-selection-column,\n table tr td${e}-selection-column\n `]:{paddingInlineEnd:t.paddingXS,paddingInlineStart:t.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${e}-selection-column${e}-cell-fix-left`]:{zIndex:t.zIndexTableFixed+1},[`table tr th${e}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${e}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${e}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${t.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:t.tablePaddingHorizontal/4+"px",[i]:{color:s,fontSize:r,verticalAlign:"baseline","&:hover":{color:l}}}}}};var Yn=t=>{const{componentCls:e}=t,n=(n,i,r,o)=>({[`${e}${e}-${n}`]:{fontSize:o,[`\n ${e}-title,\n ${e}-footer,\n ${e}-cell,\n ${e}-thead > tr > th,\n ${e}-tbody > tr > th,\n ${e}-tbody > tr > td,\n tfoot > tr > th,\n tfoot > tr > td\n `]:{padding:`${i}px ${r}px`},[`${e}-filter-trigger`]:{marginInlineEnd:`-${r/2}px`},[`${e}-expanded-row-fixed`]:{margin:`-${i}px -${r}px`},[`${e}-tbody`]:{[`${e}-wrapper:only-child ${e}`]:{marginBlock:`-${i}px`,marginInline:`${t.tableExpandColumnWidth-r}px -${r}px`}},[`${e}-selection-column`]:{paddingInlineStart:r/4+"px"}}});return{[`${e}-wrapper`]:Object.assign(Object.assign({},n("middle",t.tablePaddingVerticalMiddle,t.tablePaddingHorizontalMiddle,t.tableFontSizeMiddle)),n("small",t.tablePaddingVerticalSmall,t.tablePaddingHorizontalSmall,t.tableFontSizeSmall))}};var Xn=t=>{const{componentCls:e,marginXXS:n,fontSizeIcon:i,tableHeaderIconColor:r,tableHeaderIconColorHover:o}=t;return{[`${e}-wrapper`]:{[`${e}-thead th${e}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${t.motionDurationSlow}`,"&:hover":{background:t.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:t.colorPrimary},[`\n &${e}-cell-fix-left:hover,\n &${e}-cell-fix-right:hover\n `]:{background:t.tableFixedHeaderSortActiveBg}},[`${e}-thead th${e}-column-sort`]:{background:t.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${e}-column-sort`]:{background:t.tableBodySortBg},[`${e}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${e}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${e}-column-sorter`]:{marginInlineStart:n,color:r,fontSize:0,transition:`color ${t.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:i,"&.active":{color:t.colorPrimary}},[`${e}-column-sorter-up + ${e}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${e}-column-sorters:hover ${e}-column-sorter`]:{color:o}}}};var qn=t=>{const{componentCls:e,opacityLoading:n,tableScrollThumbBg:i,tableScrollThumbBgHover:r,tableScrollThumbSize:o,tableScrollBg:a,zIndexTableSticky:s,stickyScrollBarBorderRadius:l}=t,u=`${t.lineWidth}px ${t.lineType} ${t.tableBorderColor}`;return{[`${e}-wrapper`]:{[`${e}-sticky`]:{"&-holder":{position:"sticky",zIndex:s,background:t.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${o}px !important`,zIndex:s,display:"flex",alignItems:"center",background:a,borderTop:u,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:o,backgroundColor:i,borderRadius:l,transition:`all ${t.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:r}}}}}}};var Kn=t=>{const{componentCls:e,lineWidth:n,tableBorderColor:i}=t,r=`${n}px ${t.lineType} ${i}`;return{[`${e}-wrapper`]:{[`${e}-summary`]:{position:"relative",zIndex:t.zIndexTableFixed,background:t.tableBg,"> tr":{"> th, > td":{borderBottom:r}}},[`div${e}-summary`]:{boxShadow:`0 -${n}px 0 ${i}`}}}};var Qn=t=>{const{componentCls:e}=t,n=`${t.lineWidth}px ${t.lineType} ${t.tableBorderColor}`,i=`${e}-expanded-row-cell`;return{[`${e}-wrapper`]:{[`${e}-tbody-virtual`]:{[`${e}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${e}-cell`]:{borderBottom:n},[`${e}-expanded-row`]:{[`${i}${i}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${t.lineWidth}px)`,borderInlineEnd:"none"}}},[`${e}-bordered`]:{[`${e}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:n,position:"absolute"},[`${e}-cell`]:{borderInlineEnd:n,[`&${e}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-t.lineWidth,borderInlineStart:n}}}}}}};const Jn=t=>{const{componentCls:e,fontWeightStrong:n,tablePaddingVertical:i,tablePaddingHorizontal:r,lineWidth:o,lineType:a,tableBorderColor:s,tableFontSize:l,tableBg:u,tableRadius:c,tableHeaderTextColor:h,motionDurationMid:d,tableHeaderBg:f,tableHeaderCellSplitColor:p,tableRowHoverBg:g,tableSelectedRowBg:m,tableSelectedRowHoverBg:v,tableFooterTextColor:y,tableFooterBg:w,paddingContentVerticalLG:b}=t,x=`${o}px ${a} ${s}`;return{[`${e}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,In.dF)()),{[e]:Object.assign(Object.assign({},(0,In.Wf)(t)),{fontSize:l,background:u,borderRadius:`${c}px ${c}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${c}px ${c}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`\n ${e}-cell,\n ${e}-thead > tr > th,\n ${e}-tbody > tr > th,\n ${e}-tbody > tr > td,\n tfoot > tr > th,\n tfoot > tr > td\n `]:{position:"relative",padding:`${b}px ${r}px`,overflowWrap:"break-word"},[`${e}-title`]:{padding:`${i}px ${r}px`},[`${e}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:h,fontWeight:n,textAlign:"start",background:f,borderBottom:x,transition:`background ${d} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${e}-selection-column):not(${e}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:p,transform:"translateY(-50%)",transition:`background-color ${d}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${e}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${d}, border-color ${d}`,borderBottom:x,[`\n > ${e}-wrapper:only-child,\n > ${e}-expanded-row-fixed > ${e}-wrapper:only-child\n `]:{[e]:{marginBlock:`-${i}px`,marginInline:`${t.tableExpandColumnWidth-r}px -${r}px`,[`${e}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:h,fontWeight:n,textAlign:"start",background:f,borderBottom:x,transition:`background ${d} ease`},[`\n &${e}-row:hover > th,\n &${e}-row:hover > td,\n > th${e}-cell-row-hover,\n > td${e}-cell-row-hover\n `]:{background:g},[`&${e}-row-selected`]:{"> th, > td":{background:m},"&:hover > th, &:hover > td":{background:v}}}},[`${e}-footer`]:{padding:`${i}px ${r}px`,color:y,background:w}})}};var $n=(0,Bn.Z)("Table",(t=>{const{colorTextHeading:e,colorSplit:n,colorIcon:i,colorIconHover:r,opacityLoading:o,colorBgContainer:a,controlInteractiveSize:s,headerBg:l,headerColor:u,headerSortActiveBg:c,headerSortHoverBg:h,bodySortBg:d,rowHoverBg:f,rowSelectedBg:p,rowSelectedHoverBg:g,rowExpandedBg:m,cellPaddingBlock:v,cellPaddingInline:y,cellPaddingBlockMD:w,cellPaddingInlineMD:b,cellPaddingBlockSM:x,cellPaddingInlineSM:S,borderColor:P,footerBg:k,footerColor:C,headerBorderRadius:A,cellFontSize:M,cellFontSizeMD:E,cellFontSizeSM:L,headerSplitColor:T,fixedHeaderSortActiveBg:N,headerFilterHoverBg:j,filterDropdownBg:I,expandIconBg:B,selectionColumnWidth:O,stickyScrollBarBg:D}=t,R=new jn.C(i),F=new jn.C(r),z=(0,On.TS)(t,{tableFontSize:M,tableBg:a,tableRadius:A,tablePaddingVertical:v,tablePaddingHorizontal:y,tablePaddingVerticalMiddle:w,tablePaddingHorizontalMiddle:b,tablePaddingVerticalSmall:x,tablePaddingHorizontalSmall:S,tableBorderColor:P,tableHeaderTextColor:u,tableHeaderBg:l,tableFooterTextColor:C,tableFooterBg:k,tableHeaderCellSplitColor:T,tableHeaderSortBg:c,tableHeaderSortHoverBg:h,tableHeaderIconColor:R.clone().setAlpha(R.getAlpha()*o).toRgbString(),tableHeaderIconColorHover:F.clone().setAlpha(F.getAlpha()*o).toRgbString(),tableBodySortBg:d,tableFixedHeaderSortActiveBg:N,tableHeaderFilterActiveBg:j,tableFilterDropdownBg:I,tableRowHoverBg:f,tableSelectedRowBg:p,tableSelectedRowHoverBg:g,zIndexTableFixed:2,zIndexTableSticky:3,tableFontSizeMiddle:E,tableFontSizeSmall:L,tableSelectionColumnWidth:O,tableExpandIconBg:B,tableExpandColumnWidth:s+2*t.padding,tableExpandedRowBg:m,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:D,tableScrollThumbBgHover:e,tableScrollBg:n});return[Jn(z),_n(z),Kn(z),Xn(z),Un(z),Dn(z),Zn(z),Gn(z),Kn(z),Fn(z),Vn(z),Hn(z),qn(z),Rn(z),Yn(z),Wn(z),Qn(z)]}),(t=>{const{colorFillAlter:e,colorBgContainer:n,colorTextHeading:i,colorFillSecondary:r,colorFillContent:o,controlItemBgActive:a,controlItemBgActiveHover:s,padding:l,paddingSM:u,paddingXS:c,colorBorderSecondary:h,borderRadiusLG:d,fontSize:f,controlHeight:p,colorTextPlaceholder:g}=t,m=new jn.C(r).onBackground(n).toHexShortString(),v=new jn.C(o).onBackground(n).toHexShortString(),y=new jn.C(e).onBackground(n).toHexShortString();return{headerBg:y,headerColor:i,headerSortActiveBg:m,headerSortHoverBg:v,bodySortBg:y,rowHoverBg:y,rowSelectedBg:a,rowSelectedHoverBg:s,rowExpandedBg:e,cellPaddingBlock:l,cellPaddingInline:l,cellPaddingBlockMD:u,cellPaddingInlineMD:c,cellPaddingBlockSM:c,cellPaddingInlineSM:c,borderColor:h,headerBorderRadius:d,footerBg:y,footerColor:i,cellFontSize:f,cellFontSizeMD:f,cellFontSizeSM:f,headerSplitColor:h,fixedHeaderSortActiveBg:m,headerFilterHoverBg:o,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:p,stickyScrollBarBg:g,stickyScrollBarBorderRadius:100}}));const ti=[],ei=(t,e)=>{const{prefixCls:n,className:i,rootClassName:o,style:a,size:s,bordered:l,dropdownPrefixCls:c,dataSource:h,pagination:d,rowSelection:f,rowKey:p="key",rowClassName:g,columns:m,children:v,childrenColumnName:y,onChange:w,getPopupContainer:b,loading:x,expandIcon:S,expandable:P,expandedRowRender:k,expandIconColumnIndex:C,indentSize:M,scroll:E,sortDirections:L,locale:T,showSorterTooltip:N=!0,virtual:j}=t;const I=u.useMemo((()=>m||xt(v)),[m,v]),B=u.useMemo((()=>I.some((t=>t.responsive))),[I]),O=(0,fe.Z)(B),D=u.useMemo((()=>{const t=new Set(Object.keys(O).filter((t=>O[t])));return I.filter((e=>!e.responsive||e.responsive.some((e=>t.has(e)))))}),[I,O]),R=(0,re.Z)(t,["className","style","columns"]),{locale:F=pe.Z,direction:z,table:G,renderEmpty:U,getPrefixCls:H,getPopupContainer:_}=u.useContext(ce.E_),Z=(0,de.Z)(s),W=Object.assign(Object.assign({},F.Table),T),V=h||ti,Y=H("table",n),X=H("dropdown",c),q=Object.assign({childrenColumnName:y,expandIconColumnIndex:C},P),{childrenColumnName:K="children"}=q,Q=u.useMemo((()=>V.some((t=>null==t?void 0:t[K]))?"nest":k||P&&P.expandedRowRender?"row":null),[V]),J={body:u.useRef()},$=u.useMemo((()=>"function"==typeof p?p:t=>null==t?void 0:t[p]),[p]),[tt]=function(t,e,n){const i=u.useRef({});return[function(r){if(!i.current||i.current.data!==t||i.current.childrenColumnName!==e||i.current.getRowKey!==n){const o=new Map;function a(t){t.forEach(((t,i)=>{const r=n(t,i);o.set(r,t),t&&"object"==typeof t&&e in t&&a(t[e]||[])}))}a(t),i.current={data:t,childrenColumnName:e,kvMap:o,getRowKey:n}}return i.current.kvMap.get(r)}]}(V,K,$),et={},nt=function(t,e){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];var i,r,o;const a=Object.assign(Object.assign({},et),t);n&&(null===(i=et.resetPagination)||void 0===i||i.call(et),(null===(r=a.pagination)||void 0===r?void 0:r.current)&&(a.pagination.current=1),d&&d.onChange&&d.onChange(1,null===(o=a.pagination)||void 0===o?void 0:o.pageSize)),E&&!1!==E.scrollToFirstRowOnChange&&J.body.current&&ue(0,{getContainer:()=>J.body.current}),null==w||w(a.pagination,a.filters,a.sorter,{currentDataSource:Xe(Mn(V,a.sorterStates,K),a.filterStates),action:e})},[it,rt,ot,at]=function(t){let{prefixCls:e,mergedColumns:n,onSorterChange:i,sortDirections:r,tableLocale:o,showSorterTooltip:a}=t;const[s,l]=u.useState(Pn(n,!0)),c=u.useMemo((()=>{let t=!0;const e=Pn(n,!1);if(!e.length)return s;const i=[];function r(e){t?i.push(e):i.push(Object.assign(Object.assign({},e),{sortOrder:null}))}let o=null;return e.forEach((e=>{null===o?(r(e),e.sortOrder&&(!1===e.multiplePriority?t=!1:o=!0)):(o&&!1!==e.multiplePriority||(t=!1),r(e))})),i}),[n,s]),h=u.useMemo((()=>{const t=c.map((t=>{let{column:e,sortOrder:n}=t;return{column:e,order:n}}));return{sortColumns:t,sortColumn:t[0]&&t[0].column,sortOrder:t[0]&&t[0].order}}),[c]);function d(t){let e;e=!1!==t.multiplePriority&&c.length&&!1!==c[0].multiplePriority?[].concat((0,ct.Z)(c.filter((e=>{let{key:n}=e;return n!==t.key}))),[t]):[t],l(e),i(An(e),e)}return[t=>kn(e,t,c,d,r,o,a),c,h,()=>An(c)]}({prefixCls:Y,mergedColumns:D,onSorterChange:(t,e)=>{nt({sorter:t,sorterStates:e},"sort",!1)},sortDirections:L||["ascend","descend"],tableLocale:W,showSorterTooltip:N}),st=u.useMemo((()=>Mn(V,rt,K)),[V,rt]);et.sorter=at(),et.sorterStates=rt;const[lt,ut,ht]=Ke({prefixCls:Y,locale:W,dropdownPrefixCls:X,mergedColumns:D,onFilterChange:(t,e)=>{nt({filters:t,filterStates:e},"filter",!0)},getPopupContainer:b||_}),dt=Xe(st,ut);et.filters=ht,et.filterStates=ut;const ft=u.useMemo((()=>{const t={};return Object.keys(ht).forEach((e=>{null!==ht[e]&&(t[e]=ht[e])})),Object.assign(Object.assign({},ot),{filters:t})}),[ot,ht]),[pt]=Ln(ft),[gt,mt]=tn(dt.length,((t,e)=>{nt({pagination:Object.assign(Object.assign({},et.pagination),{current:t,pageSize:e})},"paginate")}),d);et.pagination=!1===d?{}:function(t,e){const n={current:t.current,pageSize:t.pageSize},i=e&&"object"==typeof e?e:{};return Object.keys(i).forEach((e=>{const i=t[e];"function"!=typeof i&&(n[e]=i)})),n}(gt,d),et.resetPagination=mt;const vt=u.useMemo((()=>{if(!1===d||!gt.pageSize)return dt;const{current:t=1,total:e,pageSize:n=$e}=gt;return dt.length<e?dt.length>n?dt.slice((t-1)*n,t*n):dt:dt.slice((t-1)*n,t*n)}),[!!d,dt,gt&&gt.current,gt&&gt.pageSize,gt&&gt.total]),[yt,wt]=fn({prefixCls:Y,data:dt,pageData:vt,getRowKey:$,getRecordByKey:tt,expandType:Q,childrenColumnName:K,locale:W,getPopupContainer:b||_},f);q.__PARENT_RENDER_ICON__=q.expandIcon,q.expandIcon=q.expandIcon||S||ye(W),"nest"===Q&&void 0===q.expandIconColumnIndex?q.expandIconColumnIndex=f?1:0:q.expandIconColumnIndex>0&&f&&(q.expandIconColumnIndex-=1),"number"!=typeof q.indentSize&&(q.indentSize="number"==typeof M?M:15);const bt=u.useCallback((t=>pt(yt(lt(it(t))))),[it,lt,yt]);let St,Pt,kt;if(!1!==d&&(null==gt?void 0:gt.total)){let t;t=gt.size?gt.size:"small"===Z||"middle"===Z?"small":void 0;const e=e=>u.createElement(ge.Z,Object.assign({},gt,{className:A()(`${Y}-pagination ${Y}-pagination-${e}`,gt.className),size:t})),n="rtl"===z?"left":"right",{position:i}=gt;if(null!==i&&Array.isArray(i)){const t=i.find((t=>t.includes("top"))),r=i.find((t=>t.includes("bottom"))),o=i.every((t=>"none"==`${t}`));t||r||o||(Pt=e(n)),t&&(St=e(t.toLowerCase().replace("top",""))),r&&(Pt=e(r.toLowerCase().replace("bottom","")))}else Pt=e(n)}"boolean"==typeof x?kt={spinning:x}:"object"==typeof x&&(kt=Object.assign({spinning:!0},x));const[Ct,At]=$n(Y),[,Mt]=(0,ve.Z)(),Et=A()(`${Y}-wrapper`,null==G?void 0:G.className,{[`${Y}-wrapper-rtl`]:"rtl"===z},i,o,At),Lt=Object.assign(Object.assign({},null==G?void 0:G.style),a),Tt=T&&T.emptyText||(null==U?void 0:U("Table"))||u.createElement(he.Z,{componentName:"Table"}),Nt=j?Nn:Tn,jt={},It=u.useMemo((()=>{const{fontSize:t,lineHeight:e,padding:n,paddingXS:i,paddingSM:r}=Mt,o=Math.floor(t*e);switch(Z){case"large":return 2*n+o;case"small":return 2*i+o;default:return 2*r+o}}),[Mt,Z]);return j&&(jt.listItemHeight=It),Ct(u.createElement("div",{ref:e,className:Et,style:Lt},u.createElement(me.Z,Object.assign({spinning:!1},kt),St,u.createElement(Nt,Object.assign({},jt,R,{columns:D,direction:z,expandable:q,prefixCls:Y,className:A()({[`${Y}-middle`]:"middle"===Z,[`${Y}-small`]:"small"===Z,[`${Y}-bordered`]:l,[`${Y}-empty`]:0===V.length}),data:vt,rowKey:$,rowClassName:(t,e,n)=>{let i;return i="function"==typeof g?A()(g(t,e,n)):A()(g),A()({[`${Y}-row-selected`]:wt.has($(t,e))},i)},emptyText:Tt,internalHooks:r,internalRefs:J,transformColumns:bt})),Pt)))};var ni=u.forwardRef(ei);const ii=(t,e)=>{const n=u.useRef(0);return n.current+=1,u.createElement(ni,Object.assign({},t,{ref:e,_renderTimes:n.current}))},ri=u.forwardRef(ii);ri.SELECTION_COLUMN=sn,ri.EXPAND_COLUMN=i,ri.SELECTION_ALL=ln,ri.SELECTION_INVERT=un,ri.SELECTION_NONE=cn,ri.Column=ne,ri.ColumnGroup=ie,ri.Summary=H;var oi=ri},33166:function(t,e,n){"use strict";n.d(e,{i:function(){return i}});const i=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"]},45157:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});var i=n(33166);function r(t,e){return i.i.reduce(((n,i)=>{const r=t[`${i}1`],o=t[`${i}3`],a=t[`${i}6`],s=t[`${i}7`];return Object.assign(Object.assign({},n),e(i,{lightColor:r,lightBorderColor:o,darkColor:a,textColor:s}))}),{})}},6848:function(t,e,n){"use strict";n.d(e,{Z:function(){return E}});var i=n(59301),r=n(92310),o=n.n(r),a=n(55477),s=n(18929),l=n(62892),u=n(79676),c=n(92343),h=n(36355),d=n(33234),f=n(88088),p=n(17313),g=n(29878),m=n(60293),v=n(45157),y=n(37613),w=n(83116);const b=t=>{const{componentCls:e,tooltipMaxWidth:n,tooltipColor:i,tooltipBg:r,tooltipBorderRadius:o,zIndexPopup:a,controlHeight:s,boxShadowSecondary:l,paddingSM:u,paddingXS:c,tooltipRadiusOuter:h}=t;return[{[e]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,p.Wf)(t)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":r,[`${e}-inner`]:{minWidth:s,minHeight:s,padding:`${u/2}px ${c}px`,color:i,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:r,borderRadius:o,boxShadow:l,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${e}-inner`]:{borderRadius:Math.min(o,m.qN)}},[`${e}-content`]:{position:"relative"}}),(0,v.Z)(t,((t,n)=>{let{darkColor:i}=n;return{[`&${e}-${t}`]:{[`${e}-inner`]:{backgroundColor:i},[`${e}-arrow`]:{"--antd-arrow-background-color":i}}}}))),{"&-rtl":{direction:"rtl"}})},(0,m.ZP)((0,y.TS)(t,{borderRadiusOuter:h}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:o,limitVerticalRadius:!0}),{[`${e}-pure`]:{position:"relative",maxWidth:"none",margin:t.sizePopupArrow}}]};var x=(t,e)=>(0,w.Z)("Tooltip",(t=>{if(!1===e)return[];const{borderRadius:n,colorTextLightSolid:i,colorBgDefault:r,borderRadiusOuter:o}=t,a=(0,y.TS)(t,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:n,tooltipBg:r,tooltipRadiusOuter:o>4?4:o});return[b(a),(0,g._y)(t,"zoom-big-fast")]}),(t=>{let{zIndexPopupBase:e,colorBgSpotlight:n}=t;return{zIndexPopup:e+70,colorBgDefault:n}}),{resetStyle:!1})(t),S=n(36785);function P(t,e){const n=(0,S.o2)(e),i=o()({[`${t}-${e}`]:e&&n}),r={},a={};return e&&!n&&(r.background=e,a["--antd-arrow-background-color"]=e),{className:i,overlayStyle:r,arrowStyle:a}}var k=t=>{const{prefixCls:e,className:n,placement:r="top",title:s,color:l,overlayInnerStyle:u}=t,{getPrefixCls:c}=i.useContext(h.E_),d=c("tooltip",e),[f,p]=x(d,!0),g=P(d,l),m=g.arrowStyle,v=Object.assign(Object.assign({},u),g.overlayStyle),y=o()(p,d,`${d}-pure`,`${d}-placement-${r}`,n,g.className);return f(i.createElement("div",{className:y,style:m},i.createElement("div",{className:`${d}-arrow`}),i.createElement(a.G,Object.assign({},t,{className:p,prefixCls:d,overlayInnerStyle:v}),s)))},C=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};function A(t,e){const n=t.type;if((!0===n.__ANT_BUTTON||"button"===t.type)&&t.props.disabled||!0===n.__ANT_SWITCH&&(t.props.disabled||t.props.loading)||!0===n.__ANT_RADIO&&t.props.disabled){const{picked:n,omitted:r}=((t,e)=>{const n={},i=Object.assign({},t);return e.forEach((e=>{t&&e in t&&(n[e]=t[e],delete i[e])})),{picked:n,omitted:i}})(t.props.style,["position","left","right","top","bottom","float","display","zIndex"]),a=Object.assign(Object.assign({display:"inline-block"},n),{cursor:"not-allowed",width:t.props.block?"100%":void 0}),s=Object.assign(Object.assign({},r),{pointerEvents:"none"}),l=(0,c.Tm)(t,{style:s,className:null});return i.createElement("span",{style:a,className:o()(t.props.className,`${e}-disabled-compatible-wrapper`)},l)}return t}const M=i.forwardRef(((t,e)=>{var n,r;const{prefixCls:p,openClassName:g,getTooltipContainer:m,overlayClassName:v,color:y,overlayInnerStyle:w,children:b,afterOpenChange:S,afterVisibleChange:k,destroyTooltipOnHide:M,arrow:E=!0,title:L,overlay:T,builtinPlacements:N,arrowPointAtCenter:j=!1,autoAdjustOverflow:I=!0}=t,B=!!E,[,O]=(0,f.Z)(),{getPopupContainer:D,getPrefixCls:R,direction:F}=i.useContext(h.E_),z=i.useRef(null),G=()=>{var t;null===(t=z.current)||void 0===t||t.forceAlign()};i.useImperativeHandle(e,(()=>({forceAlign:G,forcePopupAlign:()=>{G()}})));const[U,H]=(0,s.Z)(!1,{value:null!==(n=t.open)&&void 0!==n?n:t.visible,defaultValue:null!==(r=t.defaultOpen)&&void 0!==r?r:t.defaultVisible}),_=!L&&!T&&0!==L,Z=i.useMemo((()=>{var t,e;let n=j;return"object"==typeof E&&(n=null!==(e=null!==(t=E.pointAtCenter)&&void 0!==t?t:E.arrowPointAtCenter)&&void 0!==e?e:j),N||(0,u.Z)({arrowPointAtCenter:n,autoAdjustOverflow:I,arrowWidth:B?O.sizePopupArrow:0,borderRadius:O.borderRadius,offset:O.marginXXS,visibleFirst:!0})}),[j,E,N,O]),W=i.useMemo((()=>0===L?L:T||L||""),[T,L]),V=i.createElement(d.BR,null,"function"==typeof W?W():W),{getPopupContainer:Y,placement:X="top",mouseEnterDelay:q=.1,mouseLeaveDelay:K=.1,overlayStyle:Q,rootClassName:J}=t,$=C(t,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),tt=R("tooltip",p),et=R(),nt=t["data-popover-inject"];let it=U;"open"in t||"visible"in t||!_||(it=!1);const rt=A((0,c.l$)(b)&&!(0,c.M2)(b)?b:i.createElement("span",null,b),tt),ot=rt.props,at=ot.className&&"string"!=typeof ot.className?ot.className:o()(ot.className,g||`${tt}-open`),[st,lt]=x(tt,!nt),ut=P(tt,y),ct=ut.arrowStyle,ht=Object.assign(Object.assign({},w),ut.overlayStyle),dt=o()(v,{[`${tt}-rtl`]:"rtl"===F},ut.className,J,lt);return st(i.createElement(a.Z,Object.assign({},$,{showArrow:B,placement:X,mouseEnterDelay:q,mouseLeaveDelay:K,prefixCls:tt,overlayClassName:dt,overlayStyle:Object.assign(Object.assign({},ct),Q),getTooltipContainer:Y||m||D,ref:z,builtinPlacements:Z,overlay:V,visible:it,onVisibleChange:e=>{var n,i;H(!_&&e),_||(null===(n=t.onOpenChange)||void 0===n||n.call(t,e),null===(i=t.onVisibleChange)||void 0===i||i.call(t,e))},afterVisibleChange:null!=S?S:k,overlayInnerStyle:ht,arrowContent:i.createElement("span",{className:`${tt}-arrow-content`}),motion:{motionName:(0,l.m)(et,"zoom-big-fast",t.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!M}),it?(0,c.Tm)(rt,{className:at}):rt))}));M._InternalPanelDoNotUseOrYouWillBeFired=k;var E=M},70091:function(t,e,n){"use strict";n.d(e,{Z:function(){return Vt}});var i=n(59301),r=n(95190),o=n(92310),a=n.n(o),s=n(14809),l=n(99153),u=n(84851),c=n(19257),h=n(54941),d=n(4635),f=n(62646),p=n(70539),g=n(93664),m=n(95764),v=n(26112);function y(t){var e=t.responseText||t.response;if(!e)return e;try{return JSON.parse(e)}catch(t){return e}}function w(t){var e=new XMLHttpRequest;t.onProgress&&e.upload&&(e.upload.onprogress=function(e){e.total>0&&(e.percent=e.loaded/e.total*100),t.onProgress(e)});var n=new FormData;t.data&&Object.keys(t.data).forEach((function(e){var i=t.data[e];Array.isArray(i)?i.forEach((function(t){n.append("".concat(e,"[]"),t)})):n.append(e,i)})),t.file instanceof Blob?n.append(t.filename,t.file,t.file.name):n.append(t.filename,t.file),e.onerror=function(e){t.onError(e)},e.onload=function(){return e.status<200||e.status>=300?t.onError(function(t,e){var n="cannot ".concat(t.method," ").concat(t.action," ").concat(e.status,"'"),i=new Error(n);return i.status=e.status,i.method=t.method,i.url=t.action,i}(t,e),y(e)):t.onSuccess(y(e),e)},e.open(t.method,t.action,!0),t.withCredentials&&"withCredentials"in e&&(e.withCredentials=!0);var i=t.headers||{};return null!==i["X-Requested-With"]&&e.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(i).forEach((function(t){null!==i[t]&&e.setRequestHeader(t,i[t])})),e.send(n),{abort:function(){e.abort()}}}var b=+new Date,x=0;function S(){return"rc-upload-".concat(b,"-").concat(++x)}var P=n(48736),k=function(t,e){if(t&&e){var n=Array.isArray(e)?e:e.split(","),i=t.name||"",r=t.type||"",o=r.replace(/\/.*$/,"");return n.some((function(t){var e=t.trim();if(/^\*(\/\*)?$/.test(t))return!0;if("."===e.charAt(0)){var n=i.toLowerCase(),a=e.toLowerCase(),s=[a];return".jpg"!==a&&".jpeg"!==a||(s=[".jpg",".jpeg"]),s.some((function(t){return n.endsWith(t)}))}return/\/\*$/.test(e)?o===e.replace(/\/.*$/,""):r===e||!!/^\w+$/.test(e)&&((0,P.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(e,"'.Skip for check.")),!0)}))}return!0};var C=function(t,e,n){var i=function t(i,r){i&&(i.path=r||"",i.isFile?i.file((function(t){n(t)&&(i.fullPath&&!t.webkitRelativePath&&(Object.defineProperties(t,{webkitRelativePath:{writable:!0}}),t.webkitRelativePath=i.fullPath.replace(/^\//,""),Object.defineProperties(t,{webkitRelativePath:{writable:!1}})),e([t]))})):i.isDirectory&&function(t,e){var n=t.createReader(),i=[];!function t(){n.readEntries((function(n){var r=Array.prototype.slice.apply(n);i=i.concat(r),r.length?t():e(i)}))}()}(i,(function(e){e.forEach((function(e){t(e,"".concat(r).concat(i.name,"/"))}))})))};t.forEach((function(t){i(t.webkitGetAsEntry())}))},A=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],M=function(t){(0,c.Z)(n,t);var e=(0,h.Z)(n);function n(){var t;(0,l.Z)(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return(t=e.call.apply(e,[this].concat(o))).state={uid:S()},t.reqs={},t.fileInput=void 0,t._isMounted=void 0,t.onChange=function(e){var n=t.props,i=n.accept,o=n.directory,a=e.target.files,s=(0,r.Z)(a).filter((function(t){return!o||k(t,i)}));t.uploadFiles(s),t.reset()},t.onClick=function(e){var n=t.fileInput;if(n){var i=e.target,r=t.props.onClick;if(i&&"BUTTON"===i.tagName)n.parentNode.focus(),i.blur();n.click(),r&&r(e)}},t.onKeyDown=function(e){"Enter"===e.key&&t.onClick(e)},t.onFileDrop=function(e){var n=t.props.multiple;if(e.preventDefault(),"dragover"!==e.type)if(t.props.directory)C(Array.prototype.slice.call(e.dataTransfer.items),t.uploadFiles,(function(e){return k(e,t.props.accept)}));else{var i=(0,r.Z)(e.dataTransfer.files).filter((function(e){return k(e,t.props.accept)}));!1===n&&(i=i.slice(0,1)),t.uploadFiles(i)}},t.uploadFiles=function(e){var n=(0,r.Z)(e),i=n.map((function(e){return e.uid=S(),t.processFile(e,n)}));Promise.all(i).then((function(e){var n=t.props.onBatchStart;null==n||n(e.map((function(t){return{file:t.origin,parsedFile:t.parsedFile}}))),e.filter((function(t){return null!==t.parsedFile})).forEach((function(e){t.post(e)}))}))},t.processFile=function(){var e=(0,m.Z)((0,p.Z)().mark((function e(n,i){var r,o,a,s,l,u,c,h,d;return(0,p.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.props.beforeUpload,o=n,!r){e.next=14;break}return e.prev=3,e.next=6,r(n,i);case 6:o=e.sent,e.next=12;break;case 9:e.prev=9,e.t0=e.catch(3),o=!1;case 12:if(!1!==o){e.next=14;break}return e.abrupt("return",{origin:n,parsedFile:null,action:null,data:null});case 14:if("function"!=typeof(a=t.props.action)){e.next=21;break}return e.next=18,a(n);case 18:s=e.sent,e.next=22;break;case 21:s=a;case 22:if("function"!=typeof(l=t.props.data)){e.next=29;break}return e.next=26,l(n);case 26:u=e.sent,e.next=30;break;case 29:u=l;case 30:return c="object"!==(0,g.Z)(o)&&"string"!=typeof o||!o?n:o,h=c instanceof File?c:new File([c],n.name,{type:n.type}),(d=h).uid=n.uid,e.abrupt("return",{origin:n,data:u,parsedFile:d,action:s});case 35:case"end":return e.stop()}}),e,null,[[3,9]])})));return function(t,n){return e.apply(this,arguments)}}(),t.saveFileInput=function(e){t.fileInput=e},t}return(0,u.Z)(n,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(t){var e=this,n=t.data,i=t.origin,r=t.action,o=t.parsedFile;if(this._isMounted){var a=this.props,s=a.onStart,l=a.customRequest,u=a.name,c=a.headers,h=a.withCredentials,d=a.method,f=i.uid,p=l||w,g={action:r,filename:u,data:n,file:o,headers:c,withCredentials:h,method:d||"post",onProgress:function(t){var n=e.props.onProgress;null==n||n(t,o)},onSuccess:function(t,n){var i=e.props.onSuccess;null==i||i(t,o,n),delete e.reqs[f]},onError:function(t,n){var i=e.props.onError;null==i||i(t,n,o),delete e.reqs[f]}};s(i),this.reqs[f]=p(g)}}},{key:"reset",value:function(){this.setState({uid:S()})}},{key:"abort",value:function(t){var e=this.reqs;if(t){var n=t.uid?t.uid:t;e[n]&&e[n].abort&&e[n].abort(),delete e[n]}else Object.keys(e).forEach((function(t){e[t]&&e[t].abort&&e[t].abort(),delete e[t]}))}},{key:"render",value:function(){var t=this.props,e=t.component,n=t.prefixCls,r=t.className,o=t.disabled,l=t.id,u=t.style,c=t.multiple,h=t.accept,p=t.capture,g=t.children,m=t.directory,y=t.openFileDialogOnClick,w=t.onMouseEnter,b=t.onMouseLeave,x=(0,f.Z)(t,A),S=a()((0,d.Z)((0,d.Z)((0,d.Z)({},n,!0),"".concat(n,"-disabled"),o),r,r)),P=m?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},k=o?{}:{onClick:y?this.onClick:function(){},onKeyDown:y?this.onKeyDown:function(){},onMouseEnter:w,onMouseLeave:b,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return i.createElement(e,(0,s.Z)({},k,{className:S,role:"button",style:u}),i.createElement("input",(0,s.Z)({},(0,v.Z)(x,{aria:!0,data:!0}),{id:l,disabled:o,type:"file",ref:this.saveFileInput,onClick:function(t){return t.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:h},P,{multiple:c,onChange:this.onChange},null!=p?{capture:p}:{})),g)}}]),n}(i.Component),E=M;function L(){}var T=function(t){(0,c.Z)(n,t);var e=(0,h.Z)(n);function n(){var t;(0,l.Z)(this,n);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))).uploader=void 0,t.saveUploader=function(e){t.uploader=e},t}return(0,u.Z)(n,[{key:"abort",value:function(t){this.uploader.abort(t)}},{key:"render",value:function(){return i.createElement(E,(0,s.Z)({},this.props,{ref:this.saveUploader}))}}]),n}(i.Component);T.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:L,onError:L,onSuccess:L,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var N=T,j=n(18929),I=n(4676),B=n(36355),O=n(1684),D=n(9763),R=n(41412),F={icon:function(t,e){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:e}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}}]}},name:"file",theme:"twotone"},z=n(7657),G=function(t,e){return i.createElement(z.Z,(0,s.Z)({},t,{ref:e,icon:F}))};var U=i.forwardRef(G),H=n(58617),_={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},Z=function(t,e){return i.createElement(z.Z,(0,s.Z)({},t,{ref:e,icon:_}))};var W=i.forwardRef(Z),V={icon:function(t,e){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:t}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:e}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:e}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:e}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:t}}]}},name:"picture",theme:"twotone"},Y=function(t,e){return i.createElement(z.Z,(0,s.Z)({},t,{ref:e,icon:V}))};var X=i.forwardRef(Y),q=n(77900),K=n(56762),Q=n(62892),J=n(92343),$=n(3113);function tt(t){return Object.assign(Object.assign({},t),{lastModified:t.lastModified,lastModifiedDate:t.lastModifiedDate,name:t.name,size:t.size,type:t.type,uid:t.uid,percent:0,originFileObj:t})}function et(t,e){const n=(0,r.Z)(e),i=n.findIndex((e=>{let{uid:n}=e;return n===t.uid}));return-1===i?n.push(t):n[i]=t,n}function nt(t,e){const n=void 0!==t.uid?"uid":"name";return e.filter((e=>e[n]===t[n]))[0]}const it=t=>0===t.indexOf("image/"),rt=t=>{if(t.type&&!t.thumbUrl)return it(t.type);const e=t.thumbUrl||t.url||"",n=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const e=t.split("/"),n=e[e.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(n)||[""])[0]}(e);return!(!/^data:image\//.test(e)&&!/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n))||!/^data:/.test(e)&&!n},ot=200;function at(t){return new Promise((e=>{if(!t.type||!it(t.type))return void e("");const n=document.createElement("canvas");n.width=ot,n.height=ot,n.style.cssText="position: fixed; left: 0; top: 0; width: 200px; height: 200px; z-index: 9999; display: none;",document.body.appendChild(n);const i=n.getContext("2d"),r=new Image;if(r.onload=()=>{const{width:t,height:o}=r;let a=ot,s=ot,l=0,u=0;t>o?(s=o*(ot/t),u=-(s-a)/2):(a=t*(ot/o),l=-(a-s)/2),i.drawImage(r,l,u,a,s);const c=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(r.src),e(c)},r.crossOrigin="anonymous",t.type.startsWith("image/svg+xml")){const e=new FileReader;e.onload=()=>{e.result&&(r.src=e.result)},e.readAsDataURL(t)}else if(t.type.startsWith("image/gif")){const n=new FileReader;n.onload=()=>{n.result&&e(n.result)},n.readAsDataURL(t)}else r.src=window.URL.createObjectURL(t)}))}var st={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},lt=function(t,e){return i.createElement(z.Z,(0,s.Z)({},t,{ref:e,icon:st}))};var ut=i.forwardRef(lt),ct={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},ht=function(t,e){return i.createElement(z.Z,(0,s.Z)({},t,{ref:e,icon:ct}))};var dt=i.forwardRef(ht),ft=n(15277),pt=n(93948),gt=n(6848);const mt=i.forwardRef(((t,e)=>{let{prefixCls:n,className:r,style:o,locale:s,listType:l,file:u,items:c,progress:h,iconRender:d,actionIconRender:f,itemRender:p,isImgUrl:g,showPreviewIcon:m,showRemoveIcon:v,showDownloadIcon:y,previewIcon:w,removeIcon:b,downloadIcon:x,onPreview:S,onDownload:P,onClose:k}=t;var C,A;const{status:M}=u,[E,L]=i.useState(M);i.useEffect((()=>{"removed"!==M&&L(M)}),[M]);const[T,N]=i.useState(!1);i.useEffect((()=>{const t=setTimeout((()=>{N(!0)}),300);return()=>{clearTimeout(t)}}),[]);const j=d(u);let I=i.createElement("div",{className:`${n}-icon`},j);if("picture"===l||"picture-card"===l||"picture-circle"===l)if("uploading"===E||!u.thumbUrl&&!u.url){const t=a()(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:"uploading"!==E});I=i.createElement("div",{className:t},j)}else{const t=(null==g?void 0:g(u))?i.createElement("img",{src:u.thumbUrl||u.url,alt:u.name,className:`${n}-list-item-image`,crossOrigin:u.crossOrigin}):j,e=a()(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:g&&!g(u)});I=i.createElement("a",{className:e,onClick:t=>S(u,t),href:u.url||u.thumbUrl,target:"_blank",rel:"noopener noreferrer"},t)}const O=a()(`${n}-list-item`,`${n}-list-item-${E}`),D="string"==typeof u.linkProps?JSON.parse(u.linkProps):u.linkProps,R=v?f(("function"==typeof b?b(u):b)||i.createElement(ut,null),(()=>k(u)),n,s.removeFile):null,F=y&&"done"===E?f(("function"==typeof x?x(u):x)||i.createElement(dt,null),(()=>P(u)),n,s.downloadFile):null,z="picture-card"!==l&&"picture-circle"!==l&&i.createElement("span",{key:"download-delete",className:a()(`${n}-list-item-actions`,{picture:"picture"===l})},F,R),G=a()(`${n}-list-item-name`),U=u.url?[i.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:G,title:u.name},D,{href:u.url,onClick:t=>S(u,t)}),u.name),z]:[i.createElement("span",{key:"view",className:G,onClick:t=>S(u,t),title:u.name},u.name),z],H=m?i.createElement("a",{href:u.url||u.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:u.url||u.thumbUrl?void 0:{pointerEvents:"none",opacity:.5},onClick:t=>S(u,t),title:s.previewFile},"function"==typeof w?w(u):w||i.createElement(ft.Z,null)):null,_=("picture-card"===l||"picture-circle"===l)&&"uploading"!==E&&i.createElement("span",{className:`${n}-list-item-actions`},H,"done"===E&&F,R),{getPrefixCls:Z}=i.useContext(B.E_),W=Z(),V=i.createElement("div",{className:O},I,U,_,T&&i.createElement(q.ZP,{motionName:`${W}-fade`,visible:"uploading"===E,motionDeadline:2e3},(t=>{let{className:e}=t;const r="percent"in u?i.createElement(pt.Z,Object.assign({},h,{type:"line",percent:u.percent,"aria-label":u["aria-label"],"aria-labelledby":u["aria-labelledby"]})):null;return i.createElement("div",{className:a()(`${n}-list-item-progress`,e)},r)}))),Y=u.response&&"string"==typeof u.response?u.response:(null===(C=u.error)||void 0===C?void 0:C.statusText)||(null===(A=u.error)||void 0===A?void 0:A.message)||s.uploadError,X="error"===E?i.createElement(gt.Z,{title:Y,getPopupContainer:t=>t.parentNode},V):V;return i.createElement("div",{className:a()(`${n}-list-item-container`,r),style:o,ref:e},p?p(X,u,c,{download:P.bind(null,u),preview:S.bind(null,u),remove:k.bind(null,u)}):X)}));var vt=mt;const yt=(t,e)=>{const{listType:n="text",previewFile:o=at,onPreview:s,onDownload:l,onRemove:u,locale:c,iconRender:h,isImageUrl:d=rt,prefixCls:f,items:p=[],showPreviewIcon:g=!0,showRemoveIcon:m=!0,showDownloadIcon:v=!1,removeIcon:y,previewIcon:w,downloadIcon:b,progress:x={size:[-1,2],showInfo:!1},appendAction:S,appendActionVisible:P=!0,itemRender:k,disabled:C}=t,A=(0,K.Z)(),[M,E]=i.useState(!1);i.useEffect((()=>{"picture"!==n&&"picture-card"!==n&&"picture-circle"!==n||(p||[]).forEach((t=>{"undefined"!=typeof document&&"undefined"!=typeof window&&window.FileReader&&window.File&&(t.originFileObj instanceof File||t.originFileObj instanceof Blob)&&void 0===t.thumbUrl&&(t.thumbUrl="",o&&o(t.originFileObj).then((e=>{t.thumbUrl=e||"",A()})))}))}),[n,p,o]),i.useEffect((()=>{E(!0)}),[]);const L=(t,e)=>{if(s)return null==e||e.preventDefault(),s(t)},T=t=>{"function"==typeof l?l(t):t.url&&window.open(t.url)},N=t=>{null==u||u(t)},j=t=>{if(h)return h(t,n);const e="uploading"===t.status,r=d&&d(t)?i.createElement(X,null):i.createElement(U,null);let o=e?i.createElement(H.Z,null):i.createElement(W,null);return"picture"===n?o=e?i.createElement(H.Z,null):r:"picture-card"!==n&&"picture-circle"!==n||(o=e?c.uploading:r),o},I=(t,e,n,r)=>{const o={type:"text",size:"small",title:r,onClick:n=>{e(),(0,J.l$)(t)&&t.props.onClick&&t.props.onClick(n)},className:`${n}-list-item-action`,disabled:C};if((0,J.l$)(t)){const e=(0,J.Tm)(t,Object.assign(Object.assign({},t.props),{onClick:()=>{}}));return i.createElement($.ZP,Object.assign({},o,{icon:e}))}return i.createElement($.ZP,Object.assign({},o),i.createElement("span",null,t))};i.useImperativeHandle(e,(()=>({handlePreview:L,handleDownload:T})));const{getPrefixCls:O}=i.useContext(B.E_),D=O("upload",f),R=O(),F=a()(`${D}-list`,`${D}-list-${n}`),z=(0,r.Z)(p.map((t=>({key:t.uid,file:t}))));let G={motionDeadline:2e3,motionName:`${D}-${"picture-card"===n||"picture-circle"===n?"animate-inline":"animate"}`,keys:z,motionAppear:M};const _=i.useMemo((()=>{const t=Object.assign({},(0,Q.Z)(R));return delete t.onAppearEnd,delete t.onEnterEnd,delete t.onLeaveEnd,t}),[R]);return"picture-card"!==n&&"picture-circle"!==n&&(G=Object.assign(Object.assign({},_),G)),i.createElement("div",{className:F},i.createElement(q.V4,Object.assign({},G,{component:!1}),(t=>{let{key:e,file:r,className:o,style:a}=t;return i.createElement(vt,{key:e,locale:c,prefixCls:D,className:o,style:a,file:r,items:p,progress:x,listType:n,isImgUrl:d,showPreviewIcon:g,showRemoveIcon:m,showDownloadIcon:v,removeIcon:y,previewIcon:w,downloadIcon:b,iconRender:j,actionIconRender:I,itemRender:k,onPreview:L,onDownload:T,onClose:N})})),S&&i.createElement(q.ZP,Object.assign({},G,{visible:P,forceRender:!0}),(t=>{let{className:e,style:n}=t;return(0,J.Tm)(S,(t=>({className:a()(t.className,e),style:Object.assign(Object.assign(Object.assign({},n),{pointerEvents:e?"none":void 0}),t.style)})))})))};var wt=i.forwardRef(yt),bt=n(17313),xt=n(8378),St=n(83116),Pt=n(37613);var kt=t=>{const{componentCls:e,iconCls:n}=t;return{[`${e}-wrapper`]:{[`${e}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:t.colorFillAlter,border:`${t.lineWidth}px dashed ${t.colorBorder}`,borderRadius:t.borderRadiusLG,cursor:"pointer",transition:`border-color ${t.motionDurationSlow}`,[e]:{padding:`${t.padding}px 0`},[`${e}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${e}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${e}-disabled):hover`]:{borderColor:t.colorPrimaryHover},[`p${e}-drag-icon`]:{marginBottom:t.margin,[n]:{color:t.colorPrimary,fontSize:t.uploadThumbnailSize}},[`p${e}-text`]:{margin:`0 0 ${t.marginXXS}px`,color:t.colorTextHeading,fontSize:t.fontSizeLG},[`p${e}-hint`]:{color:t.colorTextDescription,fontSize:t.fontSize},[`&${e}-disabled`]:{cursor:"not-allowed",[`p${e}-drag-icon ${n},\n p${e}-text,\n p${e}-hint\n `]:{color:t.colorTextDisabled}}}}}};var Ct=t=>{const{componentCls:e,antCls:n,iconCls:i,fontSize:r,lineHeight:o}=t,a=`${e}-list-item`,s=`${a}-actions`,l=`${a}-action`,u=Math.round(r*o);return{[`${e}-wrapper`]:{[`${e}-list`]:Object.assign(Object.assign({},(0,bt.dF)()),{lineHeight:t.lineHeight,[a]:{position:"relative",height:t.lineHeight*r,marginTop:t.marginXS,fontSize:r,display:"flex",alignItems:"center",transition:`background-color ${t.motionDurationSlow}`,"&:hover":{backgroundColor:t.controlItemBgHover},[`${a}-name`]:Object.assign(Object.assign({},bt.vS),{padding:`0 ${t.paddingXS}px`,lineHeight:o,flex:"auto",transition:`all ${t.motionDurationSlow}`}),[s]:{[l]:{opacity:0},[`${l}${n}-btn-sm`]:{height:u,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`\n ${l}:focus-visible,\n &.picture ${l}\n `]:{opacity:1},[i]:{color:t.actionsColor,transition:`all ${t.motionDurationSlow}`},[`&:hover ${i}`]:{color:t.colorText}},[`${e}-icon ${i}`]:{color:t.colorTextDescription,fontSize:r},[`${a}-progress`]:{position:"absolute",bottom:-t.uploadProgressOffset,width:"100%",paddingInlineStart:r+t.paddingXS,fontSize:r,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${a}:hover ${l}`]:{opacity:1,color:t.colorText},[`${a}-error`]:{color:t.colorError,[`${a}-name, ${e}-icon ${i}`]:{color:t.colorError},[s]:{[`${i}, ${i}:hover`]:{color:t.colorError},[l]:{opacity:1}}},[`${e}-list-item-container`]:{transition:`opacity ${t.motionDurationSlow}, height ${t.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},At=n(66604),Mt=n(1950);const Et=new At.E4("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Lt=new At.E4("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Tt=t=>{const{componentCls:e}=t,n=`${e}-animate-inline`;return[{[`${e}-wrapper`]:{[`${n}-appear, ${n}-enter, ${n}-leave`]:{animationDuration:t.motionDurationSlow,animationTimingFunction:t.motionEaseInOutCirc,animationFillMode:"forwards"},[`${n}-appear, ${n}-enter`]:{animationName:Et},[`${n}-leave`]:{animationName:Lt}}},{[`${e}-wrapper`]:(0,Mt.J$)(t)},Et,Lt]},Nt=n(30071),jt=n(60654);const It=t=>{const{componentCls:e,iconCls:n,uploadThumbnailSize:i,uploadProgressOffset:r}=t,o=`${e}-list`,a=`${o}-item`;return{[`${e}-wrapper`]:{[`\n ${o}${o}-picture,\n ${o}${o}-picture-card,\n ${o}${o}-picture-circle\n `]:{[a]:{position:"relative",height:i+2*t.lineWidth+2*t.paddingXS,padding:t.paddingXS,border:`${t.lineWidth}px ${t.lineType} ${t.colorBorder}`,borderRadius:t.borderRadiusLG,"&:hover":{background:"transparent"},[`${a}-thumbnail`]:Object.assign(Object.assign({},bt.vS),{width:i,height:i,lineHeight:`${i+t.paddingSM}px`,textAlign:"center",flex:"none",[n]:{fontSize:t.fontSizeHeading2,color:t.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${a}-progress`]:{bottom:r,width:`calc(100% - ${2*t.paddingSM}px)`,marginTop:0,paddingInlineStart:i+t.paddingXS}},[`${a}-error`]:{borderColor:t.colorError,[`${a}-thumbnail ${n}`]:{[`svg path[fill='${Nt.iN[0]}']`]:{fill:t.colorErrorBg},[`svg path[fill='${Nt.iN.primary}']`]:{fill:t.colorError}}},[`${a}-uploading`]:{borderStyle:"dashed",[`${a}-name`]:{marginBottom:r}}},[`${o}${o}-picture-circle ${a}`]:{[`&, &::before, ${a}-thumbnail`]:{borderRadius:"50%"}}}}},Bt=t=>{const{componentCls:e,iconCls:n,fontSizeLG:i,colorTextLightSolid:r}=t,o=`${e}-list`,a=`${o}-item`,s=t.uploadPicCardSize;return{[`\n ${e}-wrapper${e}-picture-card-wrapper,\n ${e}-wrapper${e}-picture-circle-wrapper\n `]:Object.assign(Object.assign({},(0,bt.dF)()),{display:"inline-block",width:"100%",[`${e}${e}-select`]:{width:s,height:s,marginInlineEnd:t.marginXS,marginBottom:t.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:t.colorFillAlter,border:`${t.lineWidth}px dashed ${t.colorBorder}`,borderRadius:t.borderRadiusLG,cursor:"pointer",transition:`border-color ${t.motionDurationSlow}`,[`> ${e}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${e}-disabled):hover`]:{borderColor:t.colorPrimary}},[`${o}${o}-picture-card, ${o}${o}-picture-circle`]:{[`${o}-item-container`]:{display:"inline-block",width:s,height:s,marginBlock:`0 ${t.marginXS}px`,marginInline:`0 ${t.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[a]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${2*t.paddingXS}px)`,height:`calc(100% - ${2*t.paddingXS}px)`,backgroundColor:t.colorBgMask,opacity:0,transition:`all ${t.motionDurationSlow}`,content:'" "'}},[`${a}:hover`]:{[`&::before, ${a}-actions`]:{opacity:1}},[`${a}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${t.motionDurationSlow}`,[`${n}-eye, ${n}-download, ${n}-delete`]:{zIndex:10,width:i,margin:`0 ${t.marginXXS}px`,fontSize:i,cursor:"pointer",transition:`all ${t.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${a}-actions, ${a}-actions:hover`]:{[`${n}-eye, ${n}-download, ${n}-delete`]:{color:new jt.C(r).setAlpha(.65).toRgbString(),"&:hover":{color:r}}},[`${a}-thumbnail, ${a}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${a}-name`]:{display:"none",textAlign:"center"},[`${a}-file + ${a}-name`]:{position:"absolute",bottom:t.margin,display:"block",width:`calc(100% - ${2*t.paddingXS}px)`},[`${a}-uploading`]:{[`&${a}`]:{backgroundColor:t.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${a}-progress`]:{bottom:t.marginXL,width:`calc(100% - ${2*t.paddingXS}px)`,paddingInlineStart:0}}}),[`${e}-wrapper${e}-picture-circle-wrapper`]:{[`${e}${e}-select`]:{borderRadius:"50%"}}}};var Ot=t=>{const{componentCls:e}=t;return{[`${e}-rtl`]:{direction:"rtl"}}};const Dt=t=>{const{componentCls:e,colorTextDisabled:n}=t;return{[`${e}-wrapper`]:Object.assign(Object.assign({},(0,bt.Wf)(t)),{[e]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${e}-select`]:{display:"inline-block"},[`${e}-disabled`]:{color:n,cursor:"not-allowed"}})}};var Rt=(0,St.Z)("Upload",(t=>{const{fontSizeHeading3:e,fontSize:n,lineHeight:i,lineWidth:r,controlHeightLG:o}=t,a=Math.round(n*i),s=(0,Pt.TS)(t,{uploadThumbnailSize:2*e,uploadProgressOffset:a/2+r,uploadPicCardSize:2.55*o});return[Dt(s),kt(s),It(s),Bt(s),Ct(s),Tt(s),Ot(s),(0,xt.Z)(s)]}),(t=>({actionsColor:t.colorTextDescription}))),Ft=function(t,e,n,i){return new(n||(n=Promise))((function(r,o){function a(t){try{l(i.next(t))}catch(t){o(t)}}function s(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((i=i.apply(t,e||[])).next())}))};const zt=`__LIST_IGNORE_${Date.now()}__`,Gt=(t,e)=>{const{fileList:n,defaultFileList:o,onRemove:s,showUploadList:l=!0,listType:u="text",onPreview:c,onDownload:h,onChange:d,onDrop:f,previewFile:p,disabled:g,locale:m,iconRender:v,isImageUrl:y,progress:w,prefixCls:b,className:x,type:S="select",children:P,style:k,itemRender:C,maxCount:A,data:M={},multiple:E=!1,action:L="",accept:T="",supportServerRender:F=!0,rootClassName:z}=t,G=i.useContext(O.Z),U=null!=g?g:G,[H,_]=(0,j.Z)(o||[],{value:n,postState:t=>null!=t?t:[]}),[Z,W]=i.useState("drop"),V=i.useRef(null);i.useMemo((()=>{const t=Date.now();(n||[]).forEach(((e,n)=>{e.uid||Object.isFrozen(e)||(e.uid=`__AUTO__${t}_${n}__`)}))}),[n]);const Y=(t,e,n)=>{let i=(0,r.Z)(e),o=!1;1===A?i=i.slice(-1):A&&(o=i.length>A,i=i.slice(0,A)),(0,I.flushSync)((()=>{_(i)}));const a={file:t,fileList:i};n&&(a.event=n),o&&!i.some((e=>e.uid===t.uid))||(0,I.flushSync)((()=>{null==d||d(a)}))},X=t=>{const e=t.filter((t=>!t.file[zt]));if(!e.length)return;const n=e.map((t=>tt(t.file)));let i=(0,r.Z)(H);n.forEach((t=>{i=et(t,i)})),n.forEach(((t,n)=>{let r=t;if(e[n].parsedFile)t.status="uploading";else{const{originFileObj:e}=t;let n;try{n=new File([e],e.name,{type:e.type})}catch(t){n=new Blob([e],{type:e.type}),n.name=e.name,n.lastModifiedDate=new Date,n.lastModified=(new Date).getTime()}n.uid=t.uid,r=n}Y(r,i)}))},q=(t,e,n)=>{try{"string"==typeof t&&(t=JSON.parse(t))}catch(t){}if(!nt(e,H))return;const i=tt(e);i.status="done",i.percent=100,i.response=t,i.xhr=n;const r=et(i,H);Y(i,r)},K=(t,e)=>{if(!nt(e,H))return;const n=tt(e);n.status="uploading",n.percent=t.percent;const i=et(n,H);Y(n,i,t)},Q=(t,e,n)=>{if(!nt(n,H))return;const i=tt(n);i.error=t,i.response=e,i.status="error";const r=et(i,H);Y(i,r)},J=t=>{let e;Promise.resolve("function"==typeof s?s(t):s).then((n=>{var i;if(!1===n)return;const r=function(t,e){const n=void 0!==t.uid?"uid":"name",i=e.filter((e=>e[n]!==t[n]));return i.length===e.length?null:i}(t,H);r&&(e=Object.assign(Object.assign({},t),{status:"removed"}),null==H||H.forEach((t=>{const n=void 0!==e.uid?"uid":"name";t[n]!==e[n]||Object.isFrozen(t)||(t.status="removed")})),null===(i=V.current)||void 0===i||i.abort(e),Y(e,r))}))},$=t=>{W(t.type),"drop"===t.type&&(null==f||f(t))};i.useImperativeHandle(e,(()=>({onBatchStart:X,onSuccess:q,onProgress:K,onError:Q,fileList:H,upload:V.current})));const{getPrefixCls:it,direction:rt,upload:ot}=i.useContext(B.E_),at=it("upload",b),st=Object.assign(Object.assign({onBatchStart:X,onError:Q,onProgress:K,onSuccess:q},t),{data:M,multiple:E,action:L,accept:T,supportServerRender:F,prefixCls:at,disabled:U,beforeUpload:(e,n)=>Ft(void 0,void 0,void 0,(function*(){const{beforeUpload:i,transformFile:r}=t;let o=e;if(i){const t=yield i(e,n);if(!1===t)return!1;if(delete e[zt],t===zt)return Object.defineProperty(e,zt,{value:!0,configurable:!0}),!1;"object"==typeof t&&t&&(o=t)}return r&&(o=yield r(o)),o})),onChange:void 0});delete st.className,delete st.style,P&&!U||delete st.id;const[lt,ut]=Rt(at),[ct]=(0,D.Z)("Upload",R.Z.Upload),{showRemoveIcon:ht,showPreviewIcon:dt,showDownloadIcon:ft,removeIcon:pt,previewIcon:gt,downloadIcon:mt}="boolean"==typeof l?{}:l,vt=(t,e)=>l?i.createElement(wt,{prefixCls:at,listType:u,items:H,previewFile:p,onPreview:c,onDownload:h,onRemove:J,showRemoveIcon:!U&&ht,showPreviewIcon:dt,showDownloadIcon:ft,removeIcon:pt,previewIcon:gt,downloadIcon:mt,iconRender:v,locale:Object.assign(Object.assign({},ct),m),isImageUrl:y,progress:w,appendAction:t,appendActionVisible:e,itemRender:C,disabled:U}):t,yt=a()(`${at}-wrapper`,x,z,ut,null==ot?void 0:ot.className,{[`${at}-rtl`]:"rtl"===rt,[`${at}-picture-card-wrapper`]:"picture-card"===u,[`${at}-picture-circle-wrapper`]:"picture-circle"===u}),bt=Object.assign(Object.assign({},null==ot?void 0:ot.style),k);if("drag"===S){const t=a()(ut,at,`${at}-drag`,{[`${at}-drag-uploading`]:H.some((t=>"uploading"===t.status)),[`${at}-drag-hover`]:"dragover"===Z,[`${at}-disabled`]:U,[`${at}-rtl`]:"rtl"===rt});return lt(i.createElement("span",{className:yt},i.createElement("div",{className:t,style:bt,onDrop:$,onDragOver:$,onDragLeave:$},i.createElement(N,Object.assign({},st,{ref:V,className:`${at}-btn`}),i.createElement("div",{className:`${at}-drag-container`},P))),vt()))}const xt=a()(at,`${at}-select`,{[`${at}-disabled`]:U}),St=(Pt=P?void 0:{display:"none"},i.createElement("div",{className:xt,style:Pt},i.createElement(N,Object.assign({},st,{ref:V}))));var Pt;return lt("picture-card"===u||"picture-circle"===u?i.createElement("span",{className:yt},vt(St,!!P)):i.createElement("span",{className:yt},St,vt()))};var Ut=i.forwardRef(Gt),Ht=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};const _t=i.forwardRef(((t,e)=>{var{style:n,height:r}=t,o=Ht(t,["style","height"]);return i.createElement(Ut,Object.assign({ref:e},o,{type:"drag",style:Object.assign(Object.assign({},n),{height:r})}))}));var Zt=_t;const Wt=Ut;Wt.Dragger=Zt,Wt.LIST_IGNORE=zt;var Vt=Wt},57780:function(t,e,n){"use strict";function i(t){var e,n,r="";if("string"==typeof t||"number"==typeof t)r+=t;else if("object"==typeof t)if(Array.isArray(t))for(e=0;e<t.length;e++)t[e]&&(n=i(t[e]))&&(r&&(r+=" "),r+=n);else for(e in t)t[e]&&(r&&(r+=" "),r+=e);return r}function r(){for(var t,e,n=0,r="";n<arguments.length;)(t=arguments[n++])&&(e=i(t))&&(r&&(r+=" "),r+=e);return r}n.r(e),n.d(e,{clsx:function(){return r}}),e.default=r},99498:function(t,e,n){!function(t){function e(t){t.state.placeholder&&(t.state.placeholder.parentNode.removeChild(t.state.placeholder),t.state.placeholder=null)}function n(t){e(t);var n=t.state.placeholder=document.createElement("pre");n.style.cssText="height: 0; overflow: visible",n.style.direction=t.getOption("direction"),n.className="CodeMirror-placeholder CodeMirror-line-like";var i=t.getOption("placeholder");"string"==typeof i&&(i=document.createTextNode(i)),n.appendChild(i),t.display.lineSpace.insertBefore(n,t.display.lineSpace.firstChild)}function i(t){setTimeout((function(){var i=!1,r=t.getInputField();"TEXTAREA"==r.nodeName?i=!r.value:1==t.lineCount()&&(i=!/[^\u200b]/.test(r.querySelector(".CodeMirror-line").textContent)),i?n(t):e(t)}),20)}function r(t){a(t)&&n(t)}function o(t){var i=t.getWrapperElement(),r=a(t);i.className=i.className.replace(" CodeMirror-empty","")+(r?" CodeMirror-empty":""),r?n(t):e(t)}function a(t){return 1===t.lineCount()&&""===t.getLine(0)}t.defineOption("placeholder","",(function(n,a,s){var l=s&&s!=t.Init;if(a&&!l)n.on("blur",r),n.on("change",o),n.on("swapDoc",o),t.on(n.getInputField(),"compositionupdate",n.state.placeholderCompose=function(){i(n)}),o(n);else if(!a&&l){n.off("blur",r),n.off("change",o),n.off("swapDoc",o),t.off(n.getInputField(),"compositionupdate",n.state.placeholderCompose),e(n);var u=n.getWrapperElement();u.className=u.className.replace(" CodeMirror-empty","")}a&&!n.hasFocus()&&r(n)}))}(n(89780))},25717:function(t,e,n){!function(t){var e={pairs:"()[]{}''\"\"",closeBefore:")]}'\":;>",triples:"",explode:"[]{}"},n=t.Pos;function i(t,n){return"pairs"==n&&"string"==typeof t?t:"object"==typeof t&&null!=t[n]?t[n]:e[n]}t.defineOption("autoCloseBrackets",!1,(function(e,n,a){a&&a!=t.Init&&(e.removeKeyMap(r),e.state.closeBrackets=null),n&&(o(i(n,"pairs")),e.state.closeBrackets=n,e.addKeyMap(r))}));var r={Backspace:l,Enter:u};function o(t){for(var e=0;e<t.length;e++){var n=t.charAt(e),i="'"+n+"'";r[i]||(r[i]=a(n))}}function a(t){return function(e){return h(e,t)}}function s(t){var e=t.state.closeBrackets;return!e||e.override?e:t.getModeAt(t.getCursor()).closeBrackets||e}function l(e){var r=s(e);if(!r||e.getOption("disableInput"))return t.Pass;for(var o=i(r,"pairs"),a=e.listSelections(),l=0;l<a.length;l++){if(!a[l].empty())return t.Pass;var u=d(e,a[l].head);if(!u||o.indexOf(u)%2!=0)return t.Pass}for(l=a.length-1;l>=0;l--){var c=a[l].head;e.replaceRange("",n(c.line,c.ch-1),n(c.line,c.ch+1),"+delete")}}function u(e){var n=s(e),r=n&&i(n,"explode");if(!r||e.getOption("disableInput"))return t.Pass;for(var o=e.listSelections(),a=0;a<o.length;a++){if(!o[a].empty())return t.Pass;var l=d(e,o[a].head);if(!l||r.indexOf(l)%2!=0)return t.Pass}e.operation((function(){var t=e.lineSeparator()||"\n";e.replaceSelection(t+t,null),e.execCommand("goCharLeft"),o=e.listSelections();for(var n=0;n<o.length;n++){var i=o[n].head.line;e.indentLine(i,null,!0),e.indentLine(i+1,null,!0)}}))}function c(e){var i=t.cmpPos(e.anchor,e.head)>0;return{anchor:new n(e.anchor.line,e.anchor.ch+(i?-1:1)),head:new n(e.head.line,e.head.ch+(i?1:-1))}}function h(e,r){var o=s(e);if(!o||e.getOption("disableInput"))return t.Pass;var a=i(o,"pairs"),l=a.indexOf(r);if(-1==l)return t.Pass;for(var u,h=i(o,"closeBefore"),d=i(o,"triples"),p=a.charAt(l+1)==r,g=e.listSelections(),m=l%2==0,v=0;v<g.length;v++){var y,w=g[v],b=w.head,x=e.getRange(b,n(b.line,b.ch+1));if(m&&!w.empty())y="surround";else if(!p&&m||x!=r)if(p&&b.ch>1&&d.indexOf(r)>=0&&e.getRange(n(b.line,b.ch-2),b)==r+r){if(b.ch>2&&/\bstring/.test(e.getTokenTypeAt(n(b.line,b.ch-2))))return t.Pass;y="addFour"}else if(p){var S=0==b.ch?" ":e.getRange(n(b.line,b.ch-1),b);if(t.isWordChar(x)||S==r||t.isWordChar(S))return t.Pass;y="both"}else{if(!m||!(0===x.length||/\s/.test(x)||h.indexOf(x)>-1))return t.Pass;y="both"}else y=p&&f(e,b)?"both":d.indexOf(r)>=0&&e.getRange(b,n(b.line,b.ch+3))==r+r+r?"skipThree":"skip";if(u){if(u!=y)return t.Pass}else u=y}var P=l%2?a.charAt(l-1):r,k=l%2?r:a.charAt(l+1);e.operation((function(){if("skip"==u)e.execCommand("goCharRight");else if("skipThree"==u)for(var t=0;t<3;t++)e.execCommand("goCharRight");else if("surround"==u){var n=e.getSelections();for(t=0;t<n.length;t++)n[t]=P+n[t]+k;for(e.replaceSelections(n,"around"),n=e.listSelections().slice(),t=0;t<n.length;t++)n[t]=c(n[t]);e.setSelections(n)}else"both"==u?(e.replaceSelection(P+k,null),e.triggerElectric(P+k),e.execCommand("goCharLeft")):"addFour"==u&&(e.replaceSelection(P+P+P+P,"before"),e.execCommand("goCharRight"))}))}function d(t,e){var i=t.getRange(n(e.line,e.ch-1),n(e.line,e.ch+1));return 2==i.length?i:null}function f(t,e){var i=t.getTokenAt(n(e.line,e.ch+1));return/\bstring/.test(i.type)&&i.start==e.ch&&(0==e.ch||!/\bstring/.test(t.getTokenTypeAt(e)))}o(e.pairs+"`")}(n(89780))},6313:function(t,e,n){!function(t){t.defineOption("autoCloseTags",!1,(function(e,n,r){if(r!=t.Init&&r&&e.removeKeyMap("autoCloseTags"),n){var a={name:"autoCloseTags"};"object"==typeof n&&!1===n.whenClosing||(a["'/'"]=function(t){return o(t)}),"object"==typeof n&&!1===n.whenOpening||(a["'>'"]=function(t){return i(t)}),e.addKeyMap(a)}}));var e=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],n=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function i(i){if(i.getOption("disableInput"))return t.Pass;for(var r=i.listSelections(),o=[],l=i.getOption("autoCloseTags"),u=0;u<r.length;u++){if(!r[u].empty())return t.Pass;var c=r[u].head,h=i.getTokenAt(c),d=t.innerMode(i.getMode(),h.state),f=d.state,p=d.mode.xmlCurrentTag&&d.mode.xmlCurrentTag(f),g=p&&p.name;if(!g)return t.Pass;var m="html"==d.mode.configuration,v="object"==typeof l&&l.dontCloseTags||m&&e,y="object"==typeof l&&l.indentTags||m&&n;h.end>c.ch&&(g=g.slice(0,g.length-h.end+c.ch));var w=g.toLowerCase();if(!g||"string"==h.type&&(h.end!=c.ch||!/[\"\']/.test(h.string.charAt(h.string.length-1))||1==h.string.length)||"tag"==h.type&&p.close||h.string.indexOf("/")==c.ch-h.start-1||v&&a(v,w)>-1||s(i,d.mode.xmlCurrentContext&&d.mode.xmlCurrentContext(f)||[],g,c,!0))return t.Pass;var b="object"==typeof l&&l.emptyTags;if(b&&a(b,g)>-1)o[u]={text:"/>",newPos:t.Pos(c.line,c.ch+2)};else{var x=y&&a(y,w)>-1;o[u]={indent:x,text:">"+(x?"\n\n":"")+"</"+g+">",newPos:x?t.Pos(c.line+1,0):t.Pos(c.line,c.ch+1)}}}var S="object"==typeof l&&l.dontIndentOnAutoClose;for(u=r.length-1;u>=0;u--){var P=o[u];i.replaceRange(P.text,r[u].head,r[u].anchor,"+insert");var k=i.listSelections().slice(0);k[u]={head:P.newPos,anchor:P.newPos},i.setSelections(k),!S&&P.indent&&(i.indentLine(P.newPos.line,null,!0),i.indentLine(P.newPos.line+1,null,!0))}}function r(e,n){for(var i=e.listSelections(),r=[],o=n?"/":"</",a=e.getOption("autoCloseTags"),l="object"==typeof a&&a.dontIndentOnSlash,u=0;u<i.length;u++){if(!i[u].empty())return t.Pass;var c=i[u].head,h=e.getTokenAt(c),d=t.innerMode(e.getMode(),h.state),f=d.state;if(n&&("string"==h.type||"<"!=h.string.charAt(0)||h.start!=c.ch-1))return t.Pass;var p,g="xml"!=d.mode.name&&"htmlmixed"==e.getMode().name;if(g&&"javascript"==d.mode.name)p=o+"script";else if(g&&"css"==d.mode.name)p=o+"style";else{var m=d.mode.xmlCurrentContext&&d.mode.xmlCurrentContext(f);if(!m||m.length&&s(e,m,m[m.length-1],c))return t.Pass;p=o+m[m.length-1]}">"!=e.getLine(c.line).charAt(h.end)&&(p+=">"),r[u]=p}if(e.replaceSelections(r),i=e.listSelections(),!l)for(u=0;u<i.length;u++)(u==i.length-1||i[u].head.line<i[u+1].head.line)&&e.indentLine(i[u].head.line)}function o(e){return e.getOption("disableInput")?t.Pass:r(e,!0)}function a(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0,i=t.length;n<i;++n)if(t[n]==e)return n;return-1}function s(e,n,i,r,o){if(!t.scanForClosingTag)return!1;var a=Math.min(e.lastLine()+1,r.line+500),s=t.scanForClosingTag(e,r,null,a);if(!s||s.tag!=i)return!1;for(var l=o?1:0,u=n.length-1;u>=0&&n[u]==i;u--)++l;for(r=s.to,u=1;u<l;u++){var c=t.scanForClosingTag(e,r,null,a);if(!c||c.tag!=i)return!1;r=c.to}return!0}t.commands.closeTag=function(t){return r(t)}}(n(89780),n(32855))},32855:function(t,e,n){!function(t){"use strict";var e=t.Pos;function n(t,e){return t.line-e.line||t.ch-e.ch}var i="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",r=new RegExp("<(/?)(["+i+"]["+i+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*)","g");function o(t,e,n,i){this.line=e,this.ch=n,this.cm=t,this.text=t.getLine(e),this.min=i?Math.max(i.from,t.firstLine()):t.firstLine(),this.max=i?Math.min(i.to-1,t.lastLine()):t.lastLine()}function a(t,n){var i=t.cm.getTokenTypeAt(e(t.line,n));return i&&/\btag\b/.test(i)}function s(t){if(!(t.line>=t.max))return t.ch=0,t.text=t.cm.getLine(++t.line),!0}function l(t){if(!(t.line<=t.min))return t.text=t.cm.getLine(--t.line),t.ch=t.text.length,!0}function u(t){for(;;){var e=t.text.indexOf(">",t.ch);if(-1==e){if(s(t))continue;return}if(a(t,e+1)){var n=t.text.lastIndexOf("/",e),i=n>-1&&!/\S/.test(t.text.slice(n+1,e));return t.ch=e+1,i?"selfClose":"regular"}t.ch=e+1}}function c(t){for(;;){var e=t.ch?t.text.lastIndexOf("<",t.ch-1):-1;if(-1==e){if(l(t))continue;return}if(a(t,e+1)){r.lastIndex=e,t.ch=e;var n=r.exec(t.text);if(n&&n.index==e)return n}else t.ch=e}}function h(t){for(;;){r.lastIndex=t.ch;var e=r.exec(t.text);if(!e){if(s(t))continue;return}if(a(t,e.index+1))return t.ch=e.index+e[0].length,e;t.ch=e.index+1}}function d(t){for(;;){var e=t.ch?t.text.lastIndexOf(">",t.ch-1):-1;if(-1==e){if(l(t))continue;return}if(a(t,e+1)){var n=t.text.lastIndexOf("/",e),i=n>-1&&!/\S/.test(t.text.slice(n+1,e));return t.ch=e+1,i?"selfClose":"regular"}t.ch=e}}function f(t,n){for(var i=[];;){var r,o=h(t),a=t.line,s=t.ch-(o?o[0].length:0);if(!o||!(r=u(t)))return;if("selfClose"!=r)if(o[1]){for(var l=i.length-1;l>=0;--l)if(i[l]==o[2]){i.length=l;break}if(l<0&&(!n||n==o[2]))return{tag:o[2],from:e(a,s),to:e(t.line,t.ch)}}else i.push(o[2])}}function p(t,n){for(var i=[];;){var r=d(t);if(!r)return;if("selfClose"!=r){var o=t.line,a=t.ch,s=c(t);if(!s)return;if(s[1])i.push(s[2]);else{for(var l=i.length-1;l>=0;--l)if(i[l]==s[2]){i.length=l;break}if(l<0&&(!n||n==s[2]))return{tag:s[2],from:e(t.line,t.ch),to:e(o,a)}}}else c(t)}}t.registerHelper("fold","xml",(function(t,i){for(var r=new o(t,i.line,0);;){var a=h(r);if(!a||r.line!=i.line)return;var s=u(r);if(!s)return;if(!a[1]&&"selfClose"!=s){var l=e(r.line,r.ch),c=f(r,a[2]);return c&&n(c.from,l)>0?{from:l,to:c.from}:null}}})),t.findMatchingTag=function(t,i,r){var a=new o(t,i.line,i.ch,r);if(-1!=a.text.indexOf(">")||-1!=a.text.indexOf("<")){var s=u(a),l=s&&e(a.line,a.ch),h=s&&c(a);if(s&&h&&!(n(a,i)>0)){var d={from:e(a.line,a.ch),to:l,tag:h[2]};return"selfClose"==s?{open:d,close:null,at:"open"}:h[1]?{open:p(a,h[2]),close:d,at:"close"}:{open:d,close:f(a=new o(t,l.line,l.ch,r),h[2]),at:"open"}}}},t.findEnclosingTag=function(t,e,n,i){for(var r=new o(t,e.line,e.ch,n);;){var a=p(r,i);if(!a)break;var s=f(new o(t,e.line,e.ch,n),a.tag);if(s)return{open:a,close:s}}},t.scanForClosingTag=function(t,e,n,i){return f(new o(t,e.line,e.ch,i?{from:0,to:i}:null),n)}}(n(89780))},89780:function(t){t.exports=function(){"use strict";var t=navigator.userAgent,e=navigator.platform,n=/gecko\/\d/i.test(t),i=/MSIE \d/.test(t),r=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(t),o=/Edge\/(\d+)/.exec(t),a=i||r||o,s=a&&(i?document.documentMode||6:+(o||r)[1]),l=!o&&/WebKit\//.test(t),u=l&&/Qt\/\d+\.\d+/.test(t),c=!o&&/Chrome\//.test(t),h=/Opera\//.test(t),d=/Apple Computer/.test(navigator.vendor),f=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(t),p=/PhantomJS/.test(t),g=!o&&/AppleWebKit/.test(t)&&/Mobile\/\w+/.test(t),m=/Android/.test(t),v=g||m||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(t),y=g||/Mac/.test(e),w=/\bCrOS\b/.test(t),b=/win/i.test(e),x=h&&t.match(/Version\/(\d*\.\d*)/);x&&(x=Number(x[1])),x&&x>=15&&(h=!1,l=!0);var S=y&&(u||h&&(null==x||x<12.11)),P=n||a&&s>=9;function k(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var C,A=function(t,e){var n=t.className,i=k(e).exec(n);if(i){var r=n.slice(i.index+i[0].length);t.className=n.slice(0,i.index)+(r?i[1]+r:"")}};function M(t){for(var e=t.childNodes.length;e>0;--e)t.removeChild(t.firstChild);return t}function E(t,e){return M(t).appendChild(e)}function L(t,e,n,i){var r=document.createElement(t);if(n&&(r.className=n),i&&(r.style.cssText=i),"string"==typeof e)r.appendChild(document.createTextNode(e));else if(e)for(var o=0;o<e.length;++o)r.appendChild(e[o]);return r}function T(t,e,n,i){var r=L(t,e,n,i);return r.setAttribute("role","presentation"),r}function N(t,e){if(3==e.nodeType&&(e=e.parentNode),t.contains)return t.contains(e);do{if(11==e.nodeType&&(e=e.host),e==t)return!0}while(e=e.parentNode)}function j(){var t;try{t=document.activeElement}catch(e){t=document.body||null}for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function I(t,e){var n=t.className;k(e).test(n)||(t.className+=(n?" ":"")+e)}function B(t,e){for(var n=t.split(" "),i=0;i<n.length;i++)n[i]&&!k(n[i]).test(e)&&(e+=" "+n[i]);return e}C=document.createRange?function(t,e,n,i){var r=document.createRange();return r.setEnd(i||t,n),r.setStart(t,e),r}:function(t,e,n){var i=document.body.createTextRange();try{i.moveToElementText(t.parentNode)}catch(t){return i}return i.collapse(!0),i.moveEnd("character",n),i.moveStart("character",e),i};var O=function(t){t.select()};function D(t){var e=Array.prototype.slice.call(arguments,1);return function(){return t.apply(null,e)}}function R(t,e,n){for(var i in e||(e={}),t)!t.hasOwnProperty(i)||!1===n&&e.hasOwnProperty(i)||(e[i]=t[i]);return e}function F(t,e,n,i,r){null==e&&-1==(e=t.search(/[^\s\u00a0]/))&&(e=t.length);for(var o=i||0,a=r||0;;){var s=t.indexOf("\t",o);if(s<0||s>=e)return a+(e-o);a+=s-o,a+=n-a%n,o=s+1}}g?O=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:a&&(O=function(t){try{t.select()}catch(t){}});var z=function(){this.id=null,this.f=null,this.time=0,this.handler=D(this.onTimeout,this)};function G(t,e){for(var n=0;n<t.length;++n)if(t[n]==e)return n;return-1}z.prototype.onTimeout=function(t){t.id=0,t.time<=+new Date?t.f():setTimeout(t.handler,t.time-+new Date)},z.prototype.set=function(t,e){this.f=e;var n=+new Date+t;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,t),this.time=n)};var U=50,H={toString:function(){return"CodeMirror.Pass"}},_={scroll:!1},Z={origin:"*mouse"},W={origin:"+move"};function V(t,e,n){for(var i=0,r=0;;){var o=t.indexOf("\t",i);-1==o&&(o=t.length);var a=o-i;if(o==t.length||r+a>=e)return i+Math.min(a,e-r);if(r+=o-i,i=o+1,(r+=n-r%n)>=e)return i}}var Y=[""];function X(t){for(;Y.length<=t;)Y.push(q(Y)+" ");return Y[t]}function q(t){return t[t.length-1]}function K(t,e){for(var n=[],i=0;i<t.length;i++)n[i]=e(t[i],i);return n}function Q(t,e,n){for(var i=0,r=n(e);i<t.length&&n(t[i])<=r;)i++;t.splice(i,0,e)}function J(){}function $(t,e){var n;return Object.create?n=Object.create(t):(J.prototype=t,n=new J),e&&R(e,n),n}var tt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function et(t){return/\w/.test(t)||t>"€"&&(t.toUpperCase()!=t.toLowerCase()||tt.test(t))}function nt(t,e){return e?!!(e.source.indexOf("\\w")>-1&&et(t))||e.test(t):et(t)}function it(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e])return!1;return!0}var rt=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function ot(t){return t.charCodeAt(0)>=768&&rt.test(t)}function at(t,e,n){for(;(n<0?e>0:e<t.length)&&ot(t.charAt(e));)e+=n;return e}function st(t,e,n){for(var i=e>n?-1:1;;){if(e==n)return e;var r=(e+n)/2,o=i<0?Math.ceil(r):Math.floor(r);if(o==e)return t(o)?e:n;t(o)?n=o:e=o+i}}function lt(t,e,n,i){if(!t)return i(e,n,"ltr",0);for(var r=!1,o=0;o<t.length;++o){var a=t[o];(a.from<n&&a.to>e||e==n&&a.to==e)&&(i(Math.max(a.from,e),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),r=!0)}r||i(e,n,"ltr")}var ut=null;function ct(t,e,n){var i;ut=null;for(var r=0;r<t.length;++r){var o=t[r];if(o.from<e&&o.to>e)return r;o.to==e&&(o.from!=o.to&&"before"==n?i=r:ut=r),o.from==e&&(o.from!=o.to&&"before"!=n?i=r:ut=r)}return null!=i?i:ut}var ht=function(){var t="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",e="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(n){return n<=247?t.charAt(n):1424<=n&&n<=1524?"R":1536<=n&&n<=1785?e.charAt(n-1536):1774<=n&&n<=2220?"r":8192<=n&&n<=8203?"w":8204==n?"b":"L"}var i=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,r=/[stwN]/,o=/[LRr]/,a=/[Lb1n]/,s=/[1n]/;function l(t,e,n){this.level=t,this.from=e,this.to=n}return function(t,e){var u="ltr"==e?"L":"R";if(0==t.length||"ltr"==e&&!i.test(t))return!1;for(var c=t.length,h=[],d=0;d<c;++d)h.push(n(t.charCodeAt(d)));for(var f=0,p=u;f<c;++f){var g=h[f];"m"==g?h[f]=p:p=g}for(var m=0,v=u;m<c;++m){var y=h[m];"1"==y&&"r"==v?h[m]="n":o.test(y)&&(v=y,"r"==y&&(h[m]="R"))}for(var w=1,b=h[0];w<c-1;++w){var x=h[w];"+"==x&&"1"==b&&"1"==h[w+1]?h[w]="1":","!=x||b!=h[w+1]||"1"!=b&&"n"!=b||(h[w]=b),b=x}for(var S=0;S<c;++S){var P=h[S];if(","==P)h[S]="N";else if("%"==P){var k=void 0;for(k=S+1;k<c&&"%"==h[k];++k);for(var C=S&&"!"==h[S-1]||k<c&&"1"==h[k]?"1":"N",A=S;A<k;++A)h[A]=C;S=k-1}}for(var M=0,E=u;M<c;++M){var L=h[M];"L"==E&&"1"==L?h[M]="L":o.test(L)&&(E=L)}for(var T=0;T<c;++T)if(r.test(h[T])){var N=void 0;for(N=T+1;N<c&&r.test(h[N]);++N);for(var j="L"==(T?h[T-1]:u),I=j==("L"==(N<c?h[N]:u))?j?"L":"R":u,B=T;B<N;++B)h[B]=I;T=N-1}for(var O,D=[],R=0;R<c;)if(a.test(h[R])){var F=R;for(++R;R<c&&a.test(h[R]);++R);D.push(new l(0,F,R))}else{var z=R,G=D.length,U="rtl"==e?1:0;for(++R;R<c&&"L"!=h[R];++R);for(var H=z;H<R;)if(s.test(h[H])){z<H&&(D.splice(G,0,new l(1,z,H)),G+=U);var _=H;for(++H;H<R&&s.test(h[H]);++H);D.splice(G,0,new l(2,_,H)),G+=U,z=H}else++H;z<R&&D.splice(G,0,new l(1,z,R))}return"ltr"==e&&(1==D[0].level&&(O=t.match(/^\s+/))&&(D[0].from=O[0].length,D.unshift(new l(0,0,O[0].length))),1==q(D).level&&(O=t.match(/\s+$/))&&(q(D).to-=O[0].length,D.push(new l(0,c-O[0].length,c)))),"rtl"==e?D.reverse():D}}();function dt(t,e){var n=t.order;return null==n&&(n=t.order=ht(t.text,e)),n}var ft=[],pt=function(t,e,n){if(t.addEventListener)t.addEventListener(e,n,!1);else if(t.attachEvent)t.attachEvent("on"+e,n);else{var i=t._handlers||(t._handlers={});i[e]=(i[e]||ft).concat(n)}};function gt(t,e){return t._handlers&&t._handlers[e]||ft}function mt(t,e,n){if(t.removeEventListener)t.removeEventListener(e,n,!1);else if(t.detachEvent)t.detachEvent("on"+e,n);else{var i=t._handlers,r=i&&i[e];if(r){var o=G(r,n);o>-1&&(i[e]=r.slice(0,o).concat(r.slice(o+1)))}}}function vt(t,e){var n=gt(t,e);if(n.length)for(var i=Array.prototype.slice.call(arguments,2),r=0;r<n.length;++r)n[r].apply(null,i)}function yt(t,e,n){return"string"==typeof e&&(e={type:e,preventDefault:function(){this.defaultPrevented=!0}}),vt(t,n||e.type,t,e),kt(e)||e.codemirrorIgnore}function wt(t){var e=t._handlers&&t._handlers.cursorActivity;if(e)for(var n=t.curOp.cursorActivityHandlers||(t.curOp.cursorActivityHandlers=[]),i=0;i<e.length;++i)-1==G(n,e[i])&&n.push(e[i])}function bt(t,e){return gt(t,e).length>0}function xt(t){t.prototype.on=function(t,e){pt(this,t,e)},t.prototype.off=function(t,e){mt(this,t,e)}}function St(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function Pt(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function kt(t){return null!=t.defaultPrevented?t.defaultPrevented:0==t.returnValue}function Ct(t){St(t),Pt(t)}function At(t){return t.target||t.srcElement}function Mt(t){var e=t.which;return null==e&&(1&t.button?e=1:2&t.button?e=3:4&t.button&&(e=2)),y&&t.ctrlKey&&1==e&&(e=3),e}var Et,Lt,Tt=function(){if(a&&s<9)return!1;var t=L("div");return"draggable"in t||"dragDrop"in t}();function Nt(t){if(null==Et){var e=L("span","");E(t,L("span",[e,document.createTextNode("x")])),0!=t.firstChild.offsetHeight&&(Et=e.offsetWidth<=1&&e.offsetHeight>2&&!(a&&s<8))}var n=Et?L("span",""):L("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function jt(t){if(null!=Lt)return Lt;var e=E(t,document.createTextNode("AخA")),n=C(e,0,1).getBoundingClientRect(),i=C(e,1,2).getBoundingClientRect();return M(t),!(!n||n.left==n.right)&&(Lt=i.right-n.right<3)}var It,Bt=3!="\n\nb".split(/\n/).length?function(t){for(var e=0,n=[],i=t.length;e<=i;){var r=t.indexOf("\n",e);-1==r&&(r=t.length);var o=t.slice(e,"\r"==t.charAt(r-1)?r-1:r),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),e+=a+1):(n.push(o),e=r+1)}return n}:function(t){return t.split(/\r\n?|\n/)},Ot=window.getSelection?function(t){try{return t.selectionStart!=t.selectionEnd}catch(t){return!1}}:function(t){var e;try{e=t.ownerDocument.selection.createRange()}catch(t){}return!(!e||e.parentElement()!=t)&&0!=e.compareEndPoints("StartToEnd",e)},Dt="oncopy"in(It=L("div"))||(It.setAttribute("oncopy","return;"),"function"==typeof It.oncopy),Rt=null;function Ft(t){if(null!=Rt)return Rt;var e=E(t,L("span","x")),n=e.getBoundingClientRect(),i=C(e,0,1).getBoundingClientRect();return Rt=Math.abs(n.left-i.left)>1}var zt={},Gt={};function Ut(t,e){arguments.length>2&&(e.dependencies=Array.prototype.slice.call(arguments,2)),zt[t]=e}function Ht(t,e){Gt[t]=e}function _t(t){if("string"==typeof t&&Gt.hasOwnProperty(t))t=Gt[t];else if(t&&"string"==typeof t.name&&Gt.hasOwnProperty(t.name)){var e=Gt[t.name];"string"==typeof e&&(e={name:e}),(t=$(e,t)).name=e.name}else{if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return _t("application/xml");if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return _t("application/json")}return"string"==typeof t?{name:t}:t||{name:"null"}}function Zt(t,e){e=_t(e);var n=zt[e.name];if(!n)return Zt(t,"text/plain");var i=n(t,e);if(Wt.hasOwnProperty(e.name)){var r=Wt[e.name];for(var o in r)r.hasOwnProperty(o)&&(i.hasOwnProperty(o)&&(i["_"+o]=i[o]),i[o]=r[o])}if(i.name=e.name,e.helperType&&(i.helperType=e.helperType),e.modeProps)for(var a in e.modeProps)i[a]=e.modeProps[a];return i}var Wt={};function Vt(t,e){R(e,Wt.hasOwnProperty(t)?Wt[t]:Wt[t]={})}function Yt(t,e){if(!0===e)return e;if(t.copyState)return t.copyState(e);var n={};for(var i in e){var r=e[i];r instanceof Array&&(r=r.concat([])),n[i]=r}return n}function Xt(t,e){for(var n;t.innerMode&&(n=t.innerMode(e))&&n.mode!=t;)e=n.state,t=n.mode;return n||{mode:t,state:e}}function qt(t,e,n){return!t.startState||t.startState(e,n)}var Kt=function(t,e,n){this.pos=this.start=0,this.string=t,this.tabSize=e||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function Qt(t,e){if((e-=t.first)<0||e>=t.size)throw new Error("There is no line "+(e+t.first)+" in the document.");for(var n=t;!n.lines;)for(var i=0;;++i){var r=n.children[i],o=r.chunkSize();if(e<o){n=r;break}e-=o}return n.lines[e]}function Jt(t,e,n){var i=[],r=e.line;return t.iter(e.line,n.line+1,(function(t){var o=t.text;r==n.line&&(o=o.slice(0,n.ch)),r==e.line&&(o=o.slice(e.ch)),i.push(o),++r})),i}function $t(t,e,n){var i=[];return t.iter(e,n,(function(t){i.push(t.text)})),i}function te(t,e){var n=e-t.height;if(n)for(var i=t;i;i=i.parent)i.height+=n}function ee(t){if(null==t.parent)return null;for(var e=t.parent,n=G(e.lines,t),i=e.parent;i;e=i,i=i.parent)for(var r=0;i.children[r]!=e;++r)n+=i.children[r].chunkSize();return n+e.first}function ne(t,e){var n=t.first;t:do{for(var i=0;i<t.children.length;++i){var r=t.children[i],o=r.height;if(e<o){t=r;continue t}e-=o,n+=r.chunkSize()}return n}while(!t.lines);for(var a=0;a<t.lines.length;++a){var s=t.lines[a].height;if(e<s)break;e-=s}return n+a}function ie(t,e){return e>=t.first&&e<t.first+t.size}function re(t,e){return String(t.lineNumberFormatter(e+t.firstLineNumber))}function oe(t,e,n){if(void 0===n&&(n=null),!(this instanceof oe))return new oe(t,e,n);this.line=t,this.ch=e,this.sticky=n}function ae(t,e){return t.line-e.line||t.ch-e.ch}function se(t,e){return t.sticky==e.sticky&&0==ae(t,e)}function le(t){return oe(t.line,t.ch)}function ue(t,e){return ae(t,e)<0?e:t}function ce(t,e){return ae(t,e)<0?t:e}function he(t,e){return Math.max(t.first,Math.min(e,t.first+t.size-1))}function de(t,e){if(e.line<t.first)return oe(t.first,0);var n=t.first+t.size-1;return e.line>n?oe(n,Qt(t,n).text.length):fe(e,Qt(t,e.line).text.length)}function fe(t,e){var n=t.ch;return null==n||n>e?oe(t.line,e):n<0?oe(t.line,0):t}function pe(t,e){for(var n=[],i=0;i<e.length;i++)n[i]=de(t,e[i]);return n}Kt.prototype.eol=function(){return this.pos>=this.string.length},Kt.prototype.sol=function(){return this.pos==this.lineStart},Kt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Kt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Kt.prototype.eat=function(t){var e=this.string.charAt(this.pos);if("string"==typeof t?e==t:e&&(t.test?t.test(e):t(e)))return++this.pos,e},Kt.prototype.eatWhile=function(t){for(var e=this.pos;this.eat(t););return this.pos>e},Kt.prototype.eatSpace=function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},Kt.prototype.skipToEnd=function(){this.pos=this.string.length},Kt.prototype.skipTo=function(t){var e=this.string.indexOf(t,this.pos);if(e>-1)return this.pos=e,!0},Kt.prototype.backUp=function(t){this.pos-=t},Kt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=F(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?F(this.string,this.lineStart,this.tabSize):0)},Kt.prototype.indentation=function(){return F(this.string,null,this.tabSize)-(this.lineStart?F(this.string,this.lineStart,this.tabSize):0)},Kt.prototype.match=function(t,e,n){if("string"!=typeof t){var i=this.string.slice(this.pos).match(t);return i&&i.index>0?null:(i&&!1!==e&&(this.pos+=i[0].length),i)}var r=function(t){return n?t.toLowerCase():t};if(r(this.string.substr(this.pos,t.length))==r(t))return!1!==e&&(this.pos+=t.length),!0},Kt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Kt.prototype.hideFirstChars=function(t,e){this.lineStart+=t;try{return e()}finally{this.lineStart-=t}},Kt.prototype.lookAhead=function(t){var e=this.lineOracle;return e&&e.lookAhead(t)},Kt.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};var ge=function(t,e){this.state=t,this.lookAhead=e},me=function(t,e,n,i){this.state=e,this.doc=t,this.line=n,this.maxLookAhead=i||0,this.baseTokens=null,this.baseTokenPos=1};function ve(t,e,n,i){var r=[t.state.modeGen],o={};Ae(t,e.text,t.doc.mode,n,(function(t,e){return r.push(t,e)}),o,i);for(var a=n.state,s=function(i){n.baseTokens=r;var s=t.state.overlays[i],l=1,u=0;n.state=!0,Ae(t,e.text,s.mode,n,(function(t,e){for(var n=l;u<t;){var i=r[l];i>t&&r.splice(l,1,t,r[l+1],i),l+=2,u=Math.min(t,i)}if(e)if(s.opaque)r.splice(n,l-n,t,"overlay "+e),l=n+2;else for(;n<l;n+=2){var o=r[n+1];r[n+1]=(o?o+" ":"")+"overlay "+e}}),o),n.state=a,n.baseTokens=null,n.baseTokenPos=1},l=0;l<t.state.overlays.length;++l)s(l);return{styles:r,classes:o.bgClass||o.textClass?o:null}}function ye(t,e,n){if(!e.styles||e.styles[0]!=t.state.modeGen){var i=we(t,ee(e)),r=e.text.length>t.options.maxHighlightLength&&Yt(t.doc.mode,i.state),o=ve(t,e,i);r&&(i.state=r),e.stateAfter=i.save(!r),e.styles=o.styles,o.classes?e.styleClasses=o.classes:e.styleClasses&&(e.styleClasses=null),n===t.doc.highlightFrontier&&(t.doc.modeFrontier=Math.max(t.doc.modeFrontier,++t.doc.highlightFrontier))}return e.styles}function we(t,e,n){var i=t.doc,r=t.display;if(!i.mode.startState)return new me(i,!0,e);var o=Me(t,e,n),a=o>i.first&&Qt(i,o-1).stateAfter,s=a?me.fromSaved(i,a,o):new me(i,qt(i.mode),o);return i.iter(o,e,(function(n){be(t,n.text,s);var i=s.line;n.stateAfter=i==e-1||i%5==0||i>=r.viewFrom&&i<r.viewTo?s.save():null,s.nextLine()})),n&&(i.modeFrontier=s.line),s}function be(t,e,n,i){var r=t.doc.mode,o=new Kt(e,t.options.tabSize,n);for(o.start=o.pos=i||0,""==e&&xe(r,n.state);!o.eol();)Se(r,o,n.state),o.start=o.pos}function xe(t,e){if(t.blankLine)return t.blankLine(e);if(t.innerMode){var n=Xt(t,e);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function Se(t,e,n,i){for(var r=0;r<10;r++){i&&(i[0]=Xt(t,n).mode);var o=t.token(e,n);if(e.pos>e.start)return o}throw new Error("Mode "+t.name+" failed to advance stream.")}me.prototype.lookAhead=function(t){var e=this.doc.getLine(this.line+t);return null!=e&&t>this.maxLookAhead&&(this.maxLookAhead=t),e},me.prototype.baseToken=function(t){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=t;)this.baseTokenPos+=2;var e=this.baseTokens[this.baseTokenPos+1];return{type:e&&e.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-t}},me.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},me.fromSaved=function(t,e,n){return e instanceof ge?new me(t,Yt(t.mode,e.state),n,e.lookAhead):new me(t,Yt(t.mode,e),n)},me.prototype.save=function(t){var e=!1!==t?Yt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ge(e,this.maxLookAhead):e};var Pe=function(t,e,n){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=e||null,this.state=n};function ke(t,e,n,i){var r,o,a=t.doc,s=a.mode,l=Qt(a,(e=de(a,e)).line),u=we(t,e.line,n),c=new Kt(l.text,t.options.tabSize,u);for(i&&(o=[]);(i||c.pos<e.ch)&&!c.eol();)c.start=c.pos,r=Se(s,c,u.state),i&&o.push(new Pe(c,r,Yt(a.mode,u.state)));return i?o:new Pe(c,r,u.state)}function Ce(t,e){if(t)for(;;){var n=t.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;t=t.slice(0,n.index)+t.slice(n.index+n[0].length);var i=n[1]?"bgClass":"textClass";null==e[i]?e[i]=n[2]:new RegExp("(?:^|\\s)"+n[2]+"(?:$|\\s)").test(e[i])||(e[i]+=" "+n[2])}return t}function Ae(t,e,n,i,r,o,a){var s=n.flattenSpans;null==s&&(s=t.options.flattenSpans);var l,u=0,c=null,h=new Kt(e,t.options.tabSize,i),d=t.options.addModeClass&&[null];for(""==e&&Ce(xe(n,i.state),o);!h.eol();){if(h.pos>t.options.maxHighlightLength?(s=!1,a&&be(t,e,i,h.pos),h.pos=e.length,l=null):l=Ce(Se(n,h,i.state,d),o),d){var f=d[0].name;f&&(l="m-"+(l?f+" "+l:f))}if(!s||c!=l){for(;u<h.start;)r(u=Math.min(h.start,u+5e3),c);c=l}h.start=h.pos}for(;u<h.pos;){var p=Math.min(h.pos,u+5e3);r(p,c),u=p}}function Me(t,e,n){for(var i,r,o=t.doc,a=n?-1:e-(t.doc.mode.innerMode?1e3:100),s=e;s>a;--s){if(s<=o.first)return o.first;var l=Qt(o,s-1),u=l.stateAfter;if(u&&(!n||s+(u instanceof ge?u.lookAhead:0)<=o.modeFrontier))return s;var c=F(l.text,null,t.options.tabSize);(null==r||i>c)&&(r=s-1,i=c)}return r}function Ee(t,e){if(t.modeFrontier=Math.min(t.modeFrontier,e),!(t.highlightFrontier<e-10)){for(var n=t.first,i=e-1;i>n;i--){var r=Qt(t,i).stateAfter;if(r&&(!(r instanceof ge)||i+r.lookAhead<e)){n=i+1;break}}t.highlightFrontier=Math.min(t.highlightFrontier,n)}}var Le=!1,Te=!1;function Ne(){Le=!0}function je(){Te=!0}function Ie(t,e,n){this.marker=t,this.from=e,this.to=n}function Be(t,e){if(t)for(var n=0;n<t.length;++n){var i=t[n];if(i.marker==e)return i}}function Oe(t,e){for(var n,i=0;i<t.length;++i)t[i]!=e&&(n||(n=[])).push(t[i]);return n}function De(t,e){t.markedSpans=t.markedSpans?t.markedSpans.concat([e]):[e],e.marker.attachLine(t)}function Re(t,e,n){var i;if(t)for(var r=0;r<t.length;++r){var o=t[r],a=o.marker;if(null==o.from||(a.inclusiveLeft?o.from<=e:o.from<e)||o.from==e&&"bookmark"==a.type&&(!n||!o.marker.insertLeft)){var s=null==o.to||(a.inclusiveRight?o.to>=e:o.to>e);(i||(i=[])).push(new Ie(a,o.from,s?null:o.to))}}return i}function Fe(t,e,n){var i;if(t)for(var r=0;r<t.length;++r){var o=t[r],a=o.marker;if(null==o.to||(a.inclusiveRight?o.to>=e:o.to>e)||o.from==e&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var s=null==o.from||(a.inclusiveLeft?o.from<=e:o.from<e);(i||(i=[])).push(new Ie(a,s?null:o.from-e,null==o.to?null:o.to-e))}}return i}function ze(t,e){if(e.full)return null;var n=ie(t,e.from.line)&&Qt(t,e.from.line).markedSpans,i=ie(t,e.to.line)&&Qt(t,e.to.line).markedSpans;if(!n&&!i)return null;var r=e.from.ch,o=e.to.ch,a=0==ae(e.from,e.to),s=Re(n,r,a),l=Fe(i,o,a),u=1==e.text.length,c=q(e.text).length+(u?r:0);if(s)for(var h=0;h<s.length;++h){var d=s[h];if(null==d.to){var f=Be(l,d.marker);f?u&&(d.to=null==f.to?null:f.to+c):d.to=r}}if(l)for(var p=0;p<l.length;++p){var g=l[p];null!=g.to&&(g.to+=c),null==g.from?Be(s,g.marker)||(g.from=c,u&&(s||(s=[])).push(g)):(g.from+=c,u&&(s||(s=[])).push(g))}s&&(s=Ge(s)),l&&l!=s&&(l=Ge(l));var m=[s];if(!u){var v,y=e.text.length-2;if(y>0&&s)for(var w=0;w<s.length;++w)null==s[w].to&&(v||(v=[])).push(new Ie(s[w].marker,null,null));for(var b=0;b<y;++b)m.push(v);m.push(l)}return m}function Ge(t){for(var e=0;e<t.length;++e){var n=t[e];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&t.splice(e--,1)}return t.length?t:null}function Ue(t,e,n){var i=null;if(t.iter(e.line,n.line+1,(function(t){if(t.markedSpans)for(var e=0;e<t.markedSpans.length;++e){var n=t.markedSpans[e].marker;!n.readOnly||i&&-1!=G(i,n)||(i||(i=[])).push(n)}})),!i)return null;for(var r=[{from:e,to:n}],o=0;o<i.length;++o)for(var a=i[o],s=a.find(0),l=0;l<r.length;++l){var u=r[l];if(!(ae(u.to,s.from)<0||ae(u.from,s.to)>0)){var c=[l,1],h=ae(u.from,s.from),d=ae(u.to,s.to);(h<0||!a.inclusiveLeft&&!h)&&c.push({from:u.from,to:s.from}),(d>0||!a.inclusiveRight&&!d)&&c.push({from:s.to,to:u.to}),r.splice.apply(r,c),l+=c.length-3}}return r}function He(t){var e=t.markedSpans;if(e){for(var n=0;n<e.length;++n)e[n].marker.detachLine(t);t.markedSpans=null}}function _e(t,e){if(e){for(var n=0;n<e.length;++n)e[n].marker.attachLine(t);t.markedSpans=e}}function Ze(t){return t.inclusiveLeft?-1:0}function We(t){return t.inclusiveRight?1:0}function Ve(t,e){var n=t.lines.length-e.lines.length;if(0!=n)return n;var i=t.find(),r=e.find(),o=ae(i.from,r.from)||Ze(t)-Ze(e);if(o)return-o;var a=ae(i.to,r.to)||We(t)-We(e);return a||e.id-t.id}function Ye(t,e){var n,i=Te&&t.markedSpans;if(i)for(var r=void 0,o=0;o<i.length;++o)(r=i[o]).marker.collapsed&&null==(e?r.from:r.to)&&(!n||Ve(n,r.marker)<0)&&(n=r.marker);return n}function Xe(t){return Ye(t,!0)}function qe(t){return Ye(t,!1)}function Ke(t,e){var n,i=Te&&t.markedSpans;if(i)for(var r=0;r<i.length;++r){var o=i[r];o.marker.collapsed&&(null==o.from||o.from<e)&&(null==o.to||o.to>e)&&(!n||Ve(n,o.marker)<0)&&(n=o.marker)}return n}function Qe(t,e,n,i,r){var o=Qt(t,e),a=Te&&o.markedSpans;if(a)for(var s=0;s<a.length;++s){var l=a[s];if(l.marker.collapsed){var u=l.marker.find(0),c=ae(u.from,n)||Ze(l.marker)-Ze(r),h=ae(u.to,i)||We(l.marker)-We(r);if(!(c>=0&&h<=0||c<=0&&h>=0)&&(c<=0&&(l.marker.inclusiveRight&&r.inclusiveLeft?ae(u.to,n)>=0:ae(u.to,n)>0)||c>=0&&(l.marker.inclusiveRight&&r.inclusiveLeft?ae(u.from,i)<=0:ae(u.from,i)<0)))return!0}}}function Je(t){for(var e;e=Xe(t);)t=e.find(-1,!0).line;return t}function $e(t){for(var e;e=qe(t);)t=e.find(1,!0).line;return t}function tn(t){for(var e,n;e=qe(t);)t=e.find(1,!0).line,(n||(n=[])).push(t);return n}function en(t,e){var n=Qt(t,e),i=Je(n);return n==i?e:ee(i)}function nn(t,e){if(e>t.lastLine())return e;var n,i=Qt(t,e);if(!rn(t,i))return e;for(;n=qe(i);)i=n.find(1,!0).line;return ee(i)+1}function rn(t,e){var n=Te&&e.markedSpans;if(n)for(var i=void 0,r=0;r<n.length;++r)if((i=n[r]).marker.collapsed){if(null==i.from)return!0;if(!i.marker.widgetNode&&0==i.from&&i.marker.inclusiveLeft&&on(t,e,i))return!0}}function on(t,e,n){if(null==n.to){var i=n.marker.find(1,!0);return on(t,i.line,Be(i.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==e.text.length)return!0;for(var r=void 0,o=0;o<e.markedSpans.length;++o)if((r=e.markedSpans[o]).marker.collapsed&&!r.marker.widgetNode&&r.from==n.to&&(null==r.to||r.to!=n.from)&&(r.marker.inclusiveLeft||n.marker.inclusiveRight)&&on(t,e,r))return!0}function an(t){for(var e=0,n=(t=Je(t)).parent,i=0;i<n.lines.length;++i){var r=n.lines[i];if(r==t)break;e+=r.height}for(var o=n.parent;o;o=(n=o).parent)for(var a=0;a<o.children.length;++a){var s=o.children[a];if(s==n)break;e+=s.height}return e}function sn(t){if(0==t.height)return 0;for(var e,n=t.text.length,i=t;e=Xe(i);){var r=e.find(0,!0);i=r.from.line,n+=r.from.ch-r.to.ch}for(i=t;e=qe(i);){var o=e.find(0,!0);n-=i.text.length-o.from.ch,n+=(i=o.to.line).text.length-o.to.ch}return n}function ln(t){var e=t.display,n=t.doc;e.maxLine=Qt(n,n.first),e.maxLineLength=sn(e.maxLine),e.maxLineChanged=!0,n.iter((function(t){var n=sn(t);n>e.maxLineLength&&(e.maxLineLength=n,e.maxLine=t)}))}var un=function(t,e,n){this.text=t,_e(this,e),this.height=n?n(this):1};function cn(t,e,n,i){t.text=e,t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null),null!=t.order&&(t.order=null),He(t),_e(t,n);var r=i?i(t):1;r!=t.height&&te(t,r)}function hn(t){t.parent=null,He(t)}un.prototype.lineNo=function(){return ee(this)},xt(un);var dn={},fn={};function pn(t,e){if(!t||/^\s*$/.test(t))return null;var n=e.addModeClass?fn:dn;return n[t]||(n[t]=t.replace(/\S+/g,"cm-$&"))}function gn(t,e){var n=T("span",null,null,l?"padding-right: .1px":null),i={pre:T("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:t,trailingSpace:!1,splitSpaces:t.getOption("lineWrapping")};e.measure={};for(var r=0;r<=(e.rest?e.rest.length:0);r++){var o=r?e.rest[r-1]:e.line,a=void 0;i.pos=0,i.addToken=vn,jt(t.display.measure)&&(a=dt(o,t.doc.direction))&&(i.addToken=wn(i.addToken,a)),i.map=[],xn(o,i,ye(t,o,e!=t.display.externalMeasured&&ee(o))),o.styleClasses&&(o.styleClasses.bgClass&&(i.bgClass=B(o.styleClasses.bgClass,i.bgClass||"")),o.styleClasses.textClass&&(i.textClass=B(o.styleClasses.textClass,i.textClass||""))),0==i.map.length&&i.map.push(0,0,i.content.appendChild(Nt(t.display.measure))),0==r?(e.measure.map=i.map,e.measure.cache={}):((e.measure.maps||(e.measure.maps=[])).push(i.map),(e.measure.caches||(e.measure.caches=[])).push({}))}if(l){var s=i.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(i.content.className="cm-tab-wrap-hack")}return vt(t,"renderLine",t,e.line,i.pre),i.pre.className&&(i.textClass=B(i.pre.className,i.textClass||"")),i}function mn(t){var e=L("span","•","cm-invalidchar");return e.title="\\u"+t.charCodeAt(0).toString(16),e.setAttribute("aria-label",e.title),e}function vn(t,e,n,i,r,o,l){if(e){var u,c=t.splitSpaces?yn(e,t.trailingSpace):e,h=t.cm.state.specialChars,d=!1;if(h.test(e)){u=document.createDocumentFragment();for(var f=0;;){h.lastIndex=f;var p=h.exec(e),g=p?p.index-f:e.length-f;if(g){var m=document.createTextNode(c.slice(f,f+g));a&&s<9?u.appendChild(L("span",[m])):u.appendChild(m),t.map.push(t.pos,t.pos+g,m),t.col+=g,t.pos+=g}if(!p)break;f+=g+1;var v=void 0;if("\t"==p[0]){var y=t.cm.options.tabSize,w=y-t.col%y;(v=u.appendChild(L("span",X(w),"cm-tab"))).setAttribute("role","presentation"),v.setAttribute("cm-text","\t"),t.col+=w}else"\r"==p[0]||"\n"==p[0]?((v=u.appendChild(L("span","\r"==p[0]?"␍":"␤","cm-invalidchar"))).setAttribute("cm-text",p[0]),t.col+=1):((v=t.cm.options.specialCharPlaceholder(p[0])).setAttribute("cm-text",p[0]),a&&s<9?u.appendChild(L("span",[v])):u.appendChild(v),t.col+=1);t.map.push(t.pos,t.pos+1,v),t.pos++}}else t.col+=e.length,u=document.createTextNode(c),t.map.push(t.pos,t.pos+e.length,u),a&&s<9&&(d=!0),t.pos+=e.length;if(t.trailingSpace=32==c.charCodeAt(e.length-1),n||i||r||d||o||l){var b=n||"";i&&(b+=i),r&&(b+=r);var x=L("span",[u],b,o);if(l)for(var S in l)l.hasOwnProperty(S)&&"style"!=S&&"class"!=S&&x.setAttribute(S,l[S]);return t.content.appendChild(x)}t.content.appendChild(u)}}function yn(t,e){if(t.length>1&&!/ /.test(t))return t;for(var n=e,i="",r=0;r<t.length;r++){var o=t.charAt(r);" "!=o||!n||r!=t.length-1&&32!=t.charCodeAt(r+1)||(o=" "),i+=o,n=" "==o}return i}function wn(t,e){return function(n,i,r,o,a,s,l){r=r?r+" cm-force-border":"cm-force-border";for(var u=n.pos,c=u+i.length;;){for(var h=void 0,d=0;d<e.length&&!((h=e[d]).to>u&&h.from<=u);d++);if(h.to>=c)return t(n,i,r,o,a,s,l);t(n,i.slice(0,h.to-u),r,o,null,s,l),o=null,i=i.slice(h.to-u),u=h.to}}}function bn(t,e,n,i){var r=!i&&n.widgetNode;r&&t.map.push(t.pos,t.pos+e,r),!i&&t.cm.display.input.needsContentAttribute&&(r||(r=t.content.appendChild(document.createElement("span"))),r.setAttribute("cm-marker",n.id)),r&&(t.cm.display.input.setUneditable(r),t.content.appendChild(r)),t.pos+=e,t.trailingSpace=!1}function xn(t,e,n){var i=t.markedSpans,r=t.text,o=0;if(i)for(var a,s,l,u,c,h,d,f=r.length,p=0,g=1,m="",v=0;;){if(v==p){l=u=c=s="",d=null,h=null,v=1/0;for(var y=[],w=void 0,b=0;b<i.length;++b){var x=i[b],S=x.marker;if("bookmark"==S.type&&x.from==p&&S.widgetNode)y.push(S);else if(x.from<=p&&(null==x.to||x.to>p||S.collapsed&&x.to==p&&x.from==p)){if(null!=x.to&&x.to!=p&&v>x.to&&(v=x.to,u=""),S.className&&(l+=" "+S.className),S.css&&(s=(s?s+";":"")+S.css),S.startStyle&&x.from==p&&(c+=" "+S.startStyle),S.endStyle&&x.to==v&&(w||(w=[])).push(S.endStyle,x.to),S.title&&((d||(d={})).title=S.title),S.attributes)for(var P in S.attributes)(d||(d={}))[P]=S.attributes[P];S.collapsed&&(!h||Ve(h.marker,S)<0)&&(h=x)}else x.from>p&&v>x.from&&(v=x.from)}if(w)for(var k=0;k<w.length;k+=2)w[k+1]==v&&(u+=" "+w[k]);if(!h||h.from==p)for(var C=0;C<y.length;++C)bn(e,0,y[C]);if(h&&(h.from||0)==p){if(bn(e,(null==h.to?f+1:h.to)-p,h.marker,null==h.from),null==h.to)return;h.to==p&&(h=!1)}}if(p>=f)break;for(var A=Math.min(f,v);;){if(m){var M=p+m.length;if(!h){var E=M>A?m.slice(0,A-p):m;e.addToken(e,E,a?a+l:l,c,p+E.length==v?u:"",s,d)}if(M>=A){m=m.slice(A-p),p=A;break}p=M,c=""}m=r.slice(o,o=n[g++]),a=pn(n[g++],e.cm.options)}}else for(var L=1;L<n.length;L+=2)e.addToken(e,r.slice(o,o=n[L]),pn(n[L+1],e.cm.options))}function Sn(t,e,n){this.line=e,this.rest=tn(e),this.size=this.rest?ee(q(this.rest))-n+1:1,this.node=this.text=null,this.hidden=rn(t,e)}function Pn(t,e,n){for(var i,r=[],o=e;o<n;o=i){var a=new Sn(t.doc,Qt(t.doc,o),o);i=o+a.size,r.push(a)}return r}var kn=null;function Cn(t){kn?kn.ops.push(t):t.ownsGroup=kn={ops:[t],delayedCallbacks:[]}}function An(t){var e=t.delayedCallbacks,n=0;do{for(;n<e.length;n++)e[n].call(null);for(var i=0;i<t.ops.length;i++){var r=t.ops[i];if(r.cursorActivityHandlers)for(;r.cursorActivityCalled<r.cursorActivityHandlers.length;)r.cursorActivityHandlers[r.cursorActivityCalled++].call(null,r.cm)}}while(n<e.length)}function Mn(t,e){var n=t.ownsGroup;if(n)try{An(n)}finally{kn=null,e(n)}}var En=null;function Ln(t,e){var n=gt(t,e);if(n.length){var i,r=Array.prototype.slice.call(arguments,2);kn?i=kn.delayedCallbacks:En?i=En:(i=En=[],setTimeout(Tn,0));for(var o=function(t){i.push((function(){return n[t].apply(null,r)}))},a=0;a<n.length;++a)o(a)}}function Tn(){var t=En;En=null;for(var e=0;e<t.length;++e)t[e]()}function Nn(t,e,n,i){for(var r=0;r<e.changes.length;r++){var o=e.changes[r];"text"==o?On(t,e):"gutter"==o?Rn(t,e,n,i):"class"==o?Dn(t,e):"widget"==o&&Fn(t,e,i)}e.changes=null}function jn(t){return t.node==t.text&&(t.node=L("div",null,null,"position: relative"),t.text.parentNode&&t.text.parentNode.replaceChild(t.node,t.text),t.node.appendChild(t.text),a&&s<8&&(t.node.style.zIndex=2)),t.node}function In(t,e){var n=e.bgClass?e.bgClass+" "+(e.line.bgClass||""):e.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),e.background)n?e.background.className=n:(e.background.parentNode.removeChild(e.background),e.background=null);else if(n){var i=jn(e);e.background=i.insertBefore(L("div",null,n),i.firstChild),t.display.input.setUneditable(e.background)}}function Bn(t,e){var n=t.display.externalMeasured;return n&&n.line==e.line?(t.display.externalMeasured=null,e.measure=n.measure,n.built):gn(t,e)}function On(t,e){var n=e.text.className,i=Bn(t,e);e.text==e.node&&(e.node=i.pre),e.text.parentNode.replaceChild(i.pre,e.text),e.text=i.pre,i.bgClass!=e.bgClass||i.textClass!=e.textClass?(e.bgClass=i.bgClass,e.textClass=i.textClass,Dn(t,e)):n&&(e.text.className=n)}function Dn(t,e){In(t,e),e.line.wrapClass?jn(e).className=e.line.wrapClass:e.node!=e.text&&(e.node.className="");var n=e.textClass?e.textClass+" "+(e.line.textClass||""):e.line.textClass;e.text.className=n||""}function Rn(t,e,n,i){if(e.gutter&&(e.node.removeChild(e.gutter),e.gutter=null),e.gutterBackground&&(e.node.removeChild(e.gutterBackground),e.gutterBackground=null),e.line.gutterClass){var r=jn(e);e.gutterBackground=L("div",null,"CodeMirror-gutter-background "+e.line.gutterClass,"left: "+(t.options.fixedGutter?i.fixedPos:-i.gutterTotalWidth)+"px; width: "+i.gutterTotalWidth+"px"),t.display.input.setUneditable(e.gutterBackground),r.insertBefore(e.gutterBackground,e.text)}var o=e.line.gutterMarkers;if(t.options.lineNumbers||o){var a=jn(e),s=e.gutter=L("div",null,"CodeMirror-gutter-wrapper","left: "+(t.options.fixedGutter?i.fixedPos:-i.gutterTotalWidth)+"px");if(t.display.input.setUneditable(s),a.insertBefore(s,e.text),e.line.gutterClass&&(s.className+=" "+e.line.gutterClass),!t.options.lineNumbers||o&&o["CodeMirror-linenumbers"]||(e.lineNumber=s.appendChild(L("div",re(t.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+i.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+t.display.lineNumInnerWidth+"px"))),o)for(var l=0;l<t.display.gutterSpecs.length;++l){var u=t.display.gutterSpecs[l].className,c=o.hasOwnProperty(u)&&o[u];c&&s.appendChild(L("div",[c],"CodeMirror-gutter-elt","left: "+i.gutterLeft[u]+"px; width: "+i.gutterWidth[u]+"px"))}}}function Fn(t,e,n){e.alignable&&(e.alignable=null);for(var i=k("CodeMirror-linewidget"),r=e.node.firstChild,o=void 0;r;r=o)o=r.nextSibling,i.test(r.className)&&e.node.removeChild(r);Gn(t,e,n)}function zn(t,e,n,i){var r=Bn(t,e);return e.text=e.node=r.pre,r.bgClass&&(e.bgClass=r.bgClass),r.textClass&&(e.textClass=r.textClass),Dn(t,e),Rn(t,e,n,i),Gn(t,e,i),e.node}function Gn(t,e,n){if(Un(t,e.line,e,n,!0),e.rest)for(var i=0;i<e.rest.length;i++)Un(t,e.rest[i],e,n,!1)}function Un(t,e,n,i,r){if(e.widgets)for(var o=jn(n),a=0,s=e.widgets;a<s.length;++a){var l=s[a],u=L("div",[l.node],"CodeMirror-linewidget"+(l.className?" "+l.className:""));l.handleMouseEvents||u.setAttribute("cm-ignore-events","true"),Hn(l,u,n,i),t.display.input.setUneditable(u),r&&l.above?o.insertBefore(u,n.gutter||n.text):o.appendChild(u),Ln(l,"redraw")}}function Hn(t,e,n,i){if(t.noHScroll){(n.alignable||(n.alignable=[])).push(e);var r=i.wrapperWidth;e.style.left=i.fixedPos+"px",t.coverGutter||(r-=i.gutterTotalWidth,e.style.paddingLeft=i.gutterTotalWidth+"px"),e.style.width=r+"px"}t.coverGutter&&(e.style.zIndex=5,e.style.position="relative",t.noHScroll||(e.style.marginLeft=-i.gutterTotalWidth+"px"))}function _n(t){if(null!=t.height)return t.height;var e=t.doc.cm;if(!e)return 0;if(!N(document.body,t.node)){var n="position: relative;";t.coverGutter&&(n+="margin-left: -"+e.display.gutters.offsetWidth+"px;"),t.noHScroll&&(n+="width: "+e.display.wrapper.clientWidth+"px;"),E(e.display.measure,L("div",[t.node],null,n))}return t.height=t.node.parentNode.offsetHeight}function Zn(t,e){for(var n=At(e);n!=t.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==t.sizer&&n!=t.mover)return!0}function Wn(t){return t.lineSpace.offsetTop}function Vn(t){return t.mover.offsetHeight-t.lineSpace.offsetHeight}function Yn(t){if(t.cachedPaddingH)return t.cachedPaddingH;var e=E(t.measure,L("pre","x","CodeMirror-line-like")),n=window.getComputedStyle?window.getComputedStyle(e):e.currentStyle,i={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return isNaN(i.left)||isNaN(i.right)||(t.cachedPaddingH=i),i}function Xn(t){return U-t.display.nativeBarWidth}function qn(t){return t.display.scroller.clientWidth-Xn(t)-t.display.barWidth}function Kn(t){return t.display.scroller.clientHeight-Xn(t)-t.display.barHeight}function Qn(t,e,n){var i=t.options.lineWrapping,r=i&&qn(t);if(!e.measure.heights||i&&e.measure.width!=r){var o=e.measure.heights=[];if(i){e.measure.width=r;for(var a=e.text.firstChild.getClientRects(),s=0;s<a.length-1;s++){var l=a[s],u=a[s+1];Math.abs(l.bottom-u.bottom)>2&&o.push((l.bottom+u.top)/2-n.top)}}o.push(n.bottom-n.top)}}function Jn(t,e,n){if(t.line==e)return{map:t.measure.map,cache:t.measure.cache};for(var i=0;i<t.rest.length;i++)if(t.rest[i]==e)return{map:t.measure.maps[i],cache:t.measure.caches[i]};for(var r=0;r<t.rest.length;r++)if(ee(t.rest[r])>n)return{map:t.measure.maps[r],cache:t.measure.caches[r],before:!0}}function $n(t,e){var n=ee(e=Je(e)),i=t.display.externalMeasured=new Sn(t.doc,e,n);i.lineN=n;var r=i.built=gn(t,i);return i.text=r.pre,E(t.display.lineMeasure,r.pre),i}function ti(t,e,n,i){return ii(t,ni(t,e),n,i)}function ei(t,e){if(e>=t.display.viewFrom&&e<t.display.viewTo)return t.display.view[Di(t,e)];var n=t.display.externalMeasured;return n&&e>=n.lineN&&e<n.lineN+n.size?n:void 0}function ni(t,e){var n=ee(e),i=ei(t,n);i&&!i.text?i=null:i&&i.changes&&(Nn(t,i,n,Ni(t)),t.curOp.forceUpdate=!0),i||(i=$n(t,e));var r=Jn(i,e,n);return{line:e,view:i,rect:null,map:r.map,cache:r.cache,before:r.before,hasHeights:!1}}function ii(t,e,n,i,r){e.before&&(n=-1);var o,a=n+(i||"");return e.cache.hasOwnProperty(a)?o=e.cache[a]:(e.rect||(e.rect=e.view.text.getBoundingClientRect()),e.hasHeights||(Qn(t,e.view,e.rect),e.hasHeights=!0),(o=li(t,e,n,i)).bogus||(e.cache[a]=o)),{left:o.left,right:o.right,top:r?o.rtop:o.top,bottom:r?o.rbottom:o.bottom}}var ri,oi={left:0,right:0,top:0,bottom:0};function ai(t,e,n){for(var i,r,o,a,s,l,u=0;u<t.length;u+=3)if(s=t[u],l=t[u+1],e<s?(r=0,o=1,a="left"):e<l?o=1+(r=e-s):(u==t.length-3||e==l&&t[u+3]>e)&&(r=(o=l-s)-1,e>=l&&(a="right")),null!=r){if(i=t[u+2],s==l&&n==(i.insertLeft?"left":"right")&&(a=n),"left"==n&&0==r)for(;u&&t[u-2]==t[u-3]&&t[u-1].insertLeft;)i=t[2+(u-=3)],a="left";if("right"==n&&r==l-s)for(;u<t.length-3&&t[u+3]==t[u+4]&&!t[u+5].insertLeft;)i=t[(u+=3)+2],a="right";break}return{node:i,start:r,end:o,collapse:a,coverStart:s,coverEnd:l}}function si(t,e){var n=oi;if("left"==e)for(var i=0;i<t.length&&(n=t[i]).left==n.right;i++);else for(var r=t.length-1;r>=0&&(n=t[r]).left==n.right;r--);return n}function li(t,e,n,i){var r,o=ai(e.map,n,i),l=o.node,u=o.start,c=o.end,h=o.collapse;if(3==l.nodeType){for(var d=0;d<4;d++){for(;u&&ot(e.line.text.charAt(o.coverStart+u));)--u;for(;o.coverStart+c<o.coverEnd&&ot(e.line.text.charAt(o.coverStart+c));)++c;if((r=a&&s<9&&0==u&&c==o.coverEnd-o.coverStart?l.parentNode.getBoundingClientRect():si(C(l,u,c).getClientRects(),i)).left||r.right||0==u)break;c=u,u-=1,h="right"}a&&s<11&&(r=ui(t.display.measure,r))}else{var f;u>0&&(h=i="right"),r=t.options.lineWrapping&&(f=l.getClientRects()).length>1?f["right"==i?f.length-1:0]:l.getBoundingClientRect()}if(a&&s<9&&!u&&(!r||!r.left&&!r.right)){var p=l.parentNode.getClientRects()[0];r=p?{left:p.left,right:p.left+Ti(t.display),top:p.top,bottom:p.bottom}:oi}for(var g=r.top-e.rect.top,m=r.bottom-e.rect.top,v=(g+m)/2,y=e.view.measure.heights,w=0;w<y.length-1&&!(v<y[w]);w++);var b=w?y[w-1]:0,x=y[w],S={left:("right"==h?r.right:r.left)-e.rect.left,right:("left"==h?r.left:r.right)-e.rect.left,top:b,bottom:x};return r.left||r.right||(S.bogus=!0),t.options.singleCursorHeightPerLine||(S.rtop=g,S.rbottom=m),S}function ui(t,e){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!Ft(t))return e;var n=screen.logicalXDPI/screen.deviceXDPI,i=screen.logicalYDPI/screen.deviceYDPI;return{left:e.left*n,right:e.right*n,top:e.top*i,bottom:e.bottom*i}}function ci(t){if(t.measure&&(t.measure.cache={},t.measure.heights=null,t.rest))for(var e=0;e<t.rest.length;e++)t.measure.caches[e]={}}function hi(t){t.display.externalMeasure=null,M(t.display.lineMeasure);for(var e=0;e<t.display.view.length;e++)ci(t.display.view[e])}function di(t){hi(t),t.display.cachedCharWidth=t.display.cachedTextHeight=t.display.cachedPaddingH=null,t.options.lineWrapping||(t.display.maxLineChanged=!0),t.display.lineNumChars=null}function fi(){return c&&m?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function pi(){return c&&m?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function gi(t){var e=0;if(t.widgets)for(var n=0;n<t.widgets.length;++n)t.widgets[n].above&&(e+=_n(t.widgets[n]));return e}function mi(t,e,n,i,r){if(!r){var o=gi(e);n.top+=o,n.bottom+=o}if("line"==i)return n;i||(i="local");var a=an(e);if("local"==i?a+=Wn(t.display):a-=t.display.viewOffset,"page"==i||"window"==i){var s=t.display.lineSpace.getBoundingClientRect();a+=s.top+("window"==i?0:pi());var l=s.left+("window"==i?0:fi());n.left+=l,n.right+=l}return n.top+=a,n.bottom+=a,n}function vi(t,e,n){if("div"==n)return e;var i=e.left,r=e.top;if("page"==n)i-=fi(),r-=pi();else if("local"==n||!n){var o=t.display.sizer.getBoundingClientRect();i+=o.left,r+=o.top}var a=t.display.lineSpace.getBoundingClientRect();return{left:i-a.left,top:r-a.top}}function yi(t,e,n,i,r){return i||(i=Qt(t.doc,e.line)),mi(t,i,ti(t,i,e.ch,r),n)}function wi(t,e,n,i,r,o){function a(e,a){var s=ii(t,r,e,a?"right":"left",o);return a?s.left=s.right:s.right=s.left,mi(t,i,s,n)}i=i||Qt(t.doc,e.line),r||(r=ni(t,i));var s=dt(i,t.doc.direction),l=e.ch,u=e.sticky;if(l>=i.text.length?(l=i.text.length,u="before"):l<=0&&(l=0,u="after"),!s)return a("before"==u?l-1:l,"before"==u);function c(t,e,n){return a(n?t-1:t,1==s[e].level!=n)}var h=ct(s,l,u),d=ut,f=c(l,h,"before"==u);return null!=d&&(f.other=c(l,d,"before"!=u)),f}function bi(t,e){var n=0;e=de(t.doc,e),t.options.lineWrapping||(n=Ti(t.display)*e.ch);var i=Qt(t.doc,e.line),r=an(i)+Wn(t.display);return{left:n,right:n,top:r,bottom:r+i.height}}function xi(t,e,n,i,r){var o=oe(t,e,n);return o.xRel=r,i&&(o.outside=i),o}function Si(t,e,n){var i=t.doc;if((n+=t.display.viewOffset)<0)return xi(i.first,0,null,-1,-1);var r=ne(i,n),o=i.first+i.size-1;if(r>o)return xi(i.first+i.size-1,Qt(i,o).text.length,null,1,1);e<0&&(e=0);for(var a=Qt(i,r);;){var s=Ai(t,a,r,e,n),l=Ke(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!l)return s;var u=l.find(1);if(u.line==r)return u;a=Qt(i,r=u.line)}}function Pi(t,e,n,i){i-=gi(e);var r=e.text.length,o=st((function(e){return ii(t,n,e-1).bottom<=i}),r,0);return{begin:o,end:r=st((function(e){return ii(t,n,e).top>i}),o,r)}}function ki(t,e,n,i){return n||(n=ni(t,e)),Pi(t,e,n,mi(t,e,ii(t,n,i),"line").top)}function Ci(t,e,n,i){return!(t.bottom<=n)&&(t.top>n||(i?t.left:t.right)>e)}function Ai(t,e,n,i,r){r-=an(e);var o=ni(t,e),a=gi(e),s=0,l=e.text.length,u=!0,c=dt(e,t.doc.direction);if(c){var h=(t.options.lineWrapping?Ei:Mi)(t,e,n,o,c,i,r);s=(u=1!=h.level)?h.from:h.to-1,l=u?h.to:h.from-1}var d,f,p=null,g=null,m=st((function(e){var n=ii(t,o,e);return n.top+=a,n.bottom+=a,!!Ci(n,i,r,!1)&&(n.top<=r&&n.left<=i&&(p=e,g=n),!0)}),s,l),v=!1;if(g){var y=i-g.left<g.right-i,w=y==u;m=p+(w?0:1),f=w?"after":"before",d=y?g.left:g.right}else{u||m!=l&&m!=s||m++,f=0==m?"after":m==e.text.length?"before":ii(t,o,m-(u?1:0)).bottom+a<=r==u?"after":"before";var b=wi(t,oe(n,m,f),"line",e,o);d=b.left,v=r<b.top?-1:r>=b.bottom?1:0}return xi(n,m=at(e.text,m,1),f,v,i-d)}function Mi(t,e,n,i,r,o,a){var s=st((function(s){var l=r[s],u=1!=l.level;return Ci(wi(t,oe(n,u?l.to:l.from,u?"before":"after"),"line",e,i),o,a,!0)}),0,r.length-1),l=r[s];if(s>0){var u=1!=l.level,c=wi(t,oe(n,u?l.from:l.to,u?"after":"before"),"line",e,i);Ci(c,o,a,!0)&&c.top>a&&(l=r[s-1])}return l}function Ei(t,e,n,i,r,o,a){var s=Pi(t,e,i,a),l=s.begin,u=s.end;/\s/.test(e.text.charAt(u-1))&&u--;for(var c=null,h=null,d=0;d<r.length;d++){var f=r[d];if(!(f.from>=u||f.to<=l)){var p=ii(t,i,1!=f.level?Math.min(u,f.to)-1:Math.max(l,f.from)).right,g=p<o?o-p+1e9:p-o;(!c||h>g)&&(c=f,h=g)}}return c||(c=r[r.length-1]),c.from<l&&(c={from:l,to:c.to,level:c.level}),c.to>u&&(c={from:c.from,to:u,level:c.level}),c}function Li(t){if(null!=t.cachedTextHeight)return t.cachedTextHeight;if(null==ri){ri=L("pre",null,"CodeMirror-line-like");for(var e=0;e<49;++e)ri.appendChild(document.createTextNode("x")),ri.appendChild(L("br"));ri.appendChild(document.createTextNode("x"))}E(t.measure,ri);var n=ri.offsetHeight/50;return n>3&&(t.cachedTextHeight=n),M(t.measure),n||1}function Ti(t){if(null!=t.cachedCharWidth)return t.cachedCharWidth;var e=L("span","xxxxxxxxxx"),n=L("pre",[e],"CodeMirror-line-like");E(t.measure,n);var i=e.getBoundingClientRect(),r=(i.right-i.left)/10;return r>2&&(t.cachedCharWidth=r),r||10}function Ni(t){for(var e=t.display,n={},i={},r=e.gutters.clientLeft,o=e.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var s=t.display.gutterSpecs[a].className;n[s]=o.offsetLeft+o.clientLeft+r,i[s]=o.clientWidth}return{fixedPos:ji(e),gutterTotalWidth:e.gutters.offsetWidth,gutterLeft:n,gutterWidth:i,wrapperWidth:e.wrapper.clientWidth}}function ji(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function Ii(t){var e=Li(t.display),n=t.options.lineWrapping,i=n&&Math.max(5,t.display.scroller.clientWidth/Ti(t.display)-3);return function(r){if(rn(t.doc,r))return 0;var o=0;if(r.widgets)for(var a=0;a<r.widgets.length;a++)r.widgets[a].height&&(o+=r.widgets[a].height);return n?o+(Math.ceil(r.text.length/i)||1)*e:o+e}}function Bi(t){var e=t.doc,n=Ii(t);e.iter((function(t){var e=n(t);e!=t.height&&te(t,e)}))}function Oi(t,e,n,i){var r=t.display;if(!n&&"true"==At(e).getAttribute("cm-not-content"))return null;var o,a,s=r.lineSpace.getBoundingClientRect();try{o=e.clientX-s.left,a=e.clientY-s.top}catch(t){return null}var l,u=Si(t,o,a);if(i&&u.xRel>0&&(l=Qt(t.doc,u.line).text).length==u.ch){var c=F(l,l.length,t.options.tabSize)-l.length;u=oe(u.line,Math.max(0,Math.round((o-Yn(t.display).left)/Ti(t.display))-c))}return u}function Di(t,e){if(e>=t.display.viewTo)return null;if((e-=t.display.viewFrom)<0)return null;for(var n=t.display.view,i=0;i<n.length;i++)if((e-=n[i].size)<0)return i}function Ri(t,e,n,i){null==e&&(e=t.doc.first),null==n&&(n=t.doc.first+t.doc.size),i||(i=0);var r=t.display;if(i&&n<r.viewTo&&(null==r.updateLineNumbers||r.updateLineNumbers>e)&&(r.updateLineNumbers=e),t.curOp.viewChanged=!0,e>=r.viewTo)Te&&en(t.doc,e)<r.viewTo&&zi(t);else if(n<=r.viewFrom)Te&&nn(t.doc,n+i)>r.viewFrom?zi(t):(r.viewFrom+=i,r.viewTo+=i);else if(e<=r.viewFrom&&n>=r.viewTo)zi(t);else if(e<=r.viewFrom){var o=Gi(t,n,n+i,1);o?(r.view=r.view.slice(o.index),r.viewFrom=o.lineN,r.viewTo+=i):zi(t)}else if(n>=r.viewTo){var a=Gi(t,e,e,-1);a?(r.view=r.view.slice(0,a.index),r.viewTo=a.lineN):zi(t)}else{var s=Gi(t,e,e,-1),l=Gi(t,n,n+i,1);s&&l?(r.view=r.view.slice(0,s.index).concat(Pn(t,s.lineN,l.lineN)).concat(r.view.slice(l.index)),r.viewTo+=i):zi(t)}var u=r.externalMeasured;u&&(n<u.lineN?u.lineN+=i:e<u.lineN+u.size&&(r.externalMeasured=null))}function Fi(t,e,n){t.curOp.viewChanged=!0;var i=t.display,r=t.display.externalMeasured;if(r&&e>=r.lineN&&e<r.lineN+r.size&&(i.externalMeasured=null),!(e<i.viewFrom||e>=i.viewTo)){var o=i.view[Di(t,e)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==G(a,n)&&a.push(n)}}}function zi(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function Gi(t,e,n,i){var r,o=Di(t,e),a=t.display.view;if(!Te||n==t.doc.first+t.doc.size)return{index:o,lineN:n};for(var s=t.display.viewFrom,l=0;l<o;l++)s+=a[l].size;if(s!=e){if(i>0){if(o==a.length-1)return null;r=s+a[o].size-e,o++}else r=s-e;e+=r,n+=r}for(;en(t.doc,n)!=n;){if(o==(i<0?0:a.length-1))return null;n+=i*a[o-(i<0?1:0)].size,o+=i}return{index:o,lineN:n}}function Ui(t,e,n){var i=t.display;0==i.view.length||e>=i.viewTo||n<=i.viewFrom?(i.view=Pn(t,e,n),i.viewFrom=e):(i.viewFrom>e?i.view=Pn(t,e,i.viewFrom).concat(i.view):i.viewFrom<e&&(i.view=i.view.slice(Di(t,e))),i.viewFrom=e,i.viewTo<n?i.view=i.view.concat(Pn(t,i.viewTo,n)):i.viewTo>n&&(i.view=i.view.slice(0,Di(t,n)))),i.viewTo=n}function Hi(t){for(var e=t.display.view,n=0,i=0;i<e.length;i++){var r=e[i];r.hidden||r.node&&!r.changes||++n}return n}function _i(t){t.display.input.showSelection(t.display.input.prepareSelection())}function Zi(t,e){void 0===e&&(e=!0);for(var n=t.doc,i={},r=i.cursors=document.createDocumentFragment(),o=i.selection=document.createDocumentFragment(),a=0;a<n.sel.ranges.length;a++)if(e||a!=n.sel.primIndex){var s=n.sel.ranges[a];if(!(s.from().line>=t.display.viewTo||s.to().line<t.display.viewFrom)){var l=s.empty();(l||t.options.showCursorWhenSelecting)&&Wi(t,s.head,r),l||Yi(t,s,o)}}return i}function Wi(t,e,n){var i=wi(t,e,"div",null,null,!t.options.singleCursorHeightPerLine),r=n.appendChild(L("div"," ","CodeMirror-cursor"));if(r.style.left=i.left+"px",r.style.top=i.top+"px",r.style.height=Math.max(0,i.bottom-i.top)*t.options.cursorHeight+"px",i.other){var o=n.appendChild(L("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));o.style.display="",o.style.left=i.other.left+"px",o.style.top=i.other.top+"px",o.style.height=.85*(i.other.bottom-i.other.top)+"px"}}function Vi(t,e){return t.top-e.top||t.left-e.left}function Yi(t,e,n){var i=t.display,r=t.doc,o=document.createDocumentFragment(),a=Yn(t.display),s=a.left,l=Math.max(i.sizerWidth,qn(t)-i.sizer.offsetLeft)-a.right,u="ltr"==r.direction;function c(t,e,n,i){e<0&&(e=0),e=Math.round(e),i=Math.round(i),o.appendChild(L("div",null,"CodeMirror-selected","position: absolute; left: "+t+"px;\n top: "+e+"px; width: "+(null==n?l-t:n)+"px;\n height: "+(i-e)+"px"))}function h(e,n,i){var o,a,h=Qt(r,e),d=h.text.length;function f(n,i){return yi(t,oe(e,n),"div",h,i)}function p(e,n,i){var r=ki(t,h,null,e),o="ltr"==n==("after"==i)?"left":"right";return f("after"==i?r.begin:r.end-(/\s/.test(h.text.charAt(r.end-1))?2:1),o)[o]}var g=dt(h,r.direction);return lt(g,n||0,null==i?d:i,(function(t,e,r,h){var m="ltr"==r,v=f(t,m?"left":"right"),y=f(e-1,m?"right":"left"),w=null==n&&0==t,b=null==i&&e==d,x=0==h,S=!g||h==g.length-1;if(y.top-v.top<=3){var P=(u?b:w)&&S,k=(u?w:b)&&x?s:(m?v:y).left,C=P?l:(m?y:v).right;c(k,v.top,C-k,v.bottom)}else{var A,M,E,L;m?(A=u&&w&&x?s:v.left,M=u?l:p(t,r,"before"),E=u?s:p(e,r,"after"),L=u&&b&&S?l:y.right):(A=u?p(t,r,"before"):s,M=!u&&w&&x?l:v.right,E=!u&&b&&S?s:y.left,L=u?p(e,r,"after"):l),c(A,v.top,M-A,v.bottom),v.bottom<y.top&&c(s,v.bottom,null,y.top),c(E,y.top,L-E,y.bottom)}(!o||Vi(v,o)<0)&&(o=v),Vi(y,o)<0&&(o=y),(!a||Vi(v,a)<0)&&(a=v),Vi(y,a)<0&&(a=y)})),{start:o,end:a}}var d=e.from(),f=e.to();if(d.line==f.line)h(d.line,d.ch,f.ch);else{var p=Qt(r,d.line),g=Qt(r,f.line),m=Je(p)==Je(g),v=h(d.line,d.ch,m?p.text.length+1:null).end,y=h(f.line,m?0:null,f.ch).start;m&&(v.top<y.top-2?(c(v.right,v.top,null,v.bottom),c(s,y.top,y.left,y.bottom)):c(v.right,v.top,y.left-v.right,v.bottom)),v.bottom<y.top&&c(s,v.bottom,null,y.top)}n.appendChild(o)}function Xi(t){if(t.state.focused){var e=t.display;clearInterval(e.blinker);var n=!0;e.cursorDiv.style.visibility="",t.options.cursorBlinkRate>0?e.blinker=setInterval((function(){t.hasFocus()||Ji(t),e.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),t.options.cursorBlinkRate):t.options.cursorBlinkRate<0&&(e.cursorDiv.style.visibility="hidden")}}function qi(t){t.state.focused||(t.display.input.focus(),Qi(t))}function Ki(t){t.state.delayingBlurEvent=!0,setTimeout((function(){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1,Ji(t))}),100)}function Qi(t,e){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1),"nocursor"!=t.options.readOnly&&(t.state.focused||(vt(t,"focus",t,e),t.state.focused=!0,I(t.display.wrapper,"CodeMirror-focused"),t.curOp||t.display.selForContextMenu==t.doc.sel||(t.display.input.reset(),l&&setTimeout((function(){return t.display.input.reset(!0)}),20)),t.display.input.receivedFocus()),Xi(t))}function Ji(t,e){t.state.delayingBlurEvent||(t.state.focused&&(vt(t,"blur",t,e),t.state.focused=!1,A(t.display.wrapper,"CodeMirror-focused")),clearInterval(t.display.blinker),setTimeout((function(){t.state.focused||(t.display.shift=!1)}),150))}function $i(t){for(var e=t.display,n=e.lineDiv.offsetTop,i=0;i<e.view.length;i++){var r=e.view[i],o=t.options.lineWrapping,l=void 0,u=0;if(!r.hidden){if(a&&s<8){var c=r.node.offsetTop+r.node.offsetHeight;l=c-n,n=c}else{var h=r.node.getBoundingClientRect();l=h.bottom-h.top,!o&&r.text.firstChild&&(u=r.text.firstChild.getBoundingClientRect().right-h.left-1)}var d=r.line.height-l;if((d>.005||d<-.005)&&(te(r.line,l),tr(r.line),r.rest))for(var f=0;f<r.rest.length;f++)tr(r.rest[f]);if(u>t.display.sizerWidth){var p=Math.ceil(u/Ti(t.display));p>t.display.maxLineLength&&(t.display.maxLineLength=p,t.display.maxLine=r.line,t.display.maxLineChanged=!0)}}}}function tr(t){if(t.widgets)for(var e=0;e<t.widgets.length;++e){var n=t.widgets[e],i=n.node.parentNode;i&&(n.height=i.offsetHeight)}}function er(t,e,n){var i=n&&null!=n.top?Math.max(0,n.top):t.scroller.scrollTop;i=Math.floor(i-Wn(t));var r=n&&null!=n.bottom?n.bottom:i+t.wrapper.clientHeight,o=ne(e,i),a=ne(e,r);if(n&&n.ensure){var s=n.ensure.from.line,l=n.ensure.to.line;s<o?(o=s,a=ne(e,an(Qt(e,s))+t.wrapper.clientHeight)):Math.min(l,e.lastLine())>=a&&(o=ne(e,an(Qt(e,l))-t.wrapper.clientHeight),a=l)}return{from:o,to:Math.max(a,o+1)}}function nr(t,e){if(!yt(t,"scrollCursorIntoView")){var n=t.display,i=n.sizer.getBoundingClientRect(),r=null;if(e.top+i.top<0?r=!0:e.bottom+i.top>(window.innerHeight||document.documentElement.clientHeight)&&(r=!1),null!=r&&!p){var o=L("div","",null,"position: absolute;\n top: "+(e.top-n.viewOffset-Wn(t.display))+"px;\n height: "+(e.bottom-e.top+Xn(t)+n.barHeight)+"px;\n left: "+e.left+"px; width: "+Math.max(2,e.right-e.left)+"px;");t.display.lineSpace.appendChild(o),o.scrollIntoView(r),t.display.lineSpace.removeChild(o)}}}function ir(t,e,n,i){var r;null==i&&(i=0),t.options.lineWrapping||e!=n||(n="before"==(e=e.ch?oe(e.line,"before"==e.sticky?e.ch-1:e.ch,"after"):e).sticky?oe(e.line,e.ch+1,"before"):e);for(var o=0;o<5;o++){var a=!1,s=wi(t,e),l=n&&n!=e?wi(t,n):s,u=or(t,r={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-i,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+i}),c=t.doc.scrollTop,h=t.doc.scrollLeft;if(null!=u.scrollTop&&(dr(t,u.scrollTop),Math.abs(t.doc.scrollTop-c)>1&&(a=!0)),null!=u.scrollLeft&&(pr(t,u.scrollLeft),Math.abs(t.doc.scrollLeft-h)>1&&(a=!0)),!a)break}return r}function rr(t,e){var n=or(t,e);null!=n.scrollTop&&dr(t,n.scrollTop),null!=n.scrollLeft&&pr(t,n.scrollLeft)}function or(t,e){var n=t.display,i=Li(t.display);e.top<0&&(e.top=0);var r=t.curOp&&null!=t.curOp.scrollTop?t.curOp.scrollTop:n.scroller.scrollTop,o=Kn(t),a={};e.bottom-e.top>o&&(e.bottom=e.top+o);var s=t.doc.height+Vn(n),l=e.top<i,u=e.bottom>s-i;if(e.top<r)a.scrollTop=l?0:e.top;else if(e.bottom>r+o){var c=Math.min(e.top,(u?s:e.bottom)-o);c!=r&&(a.scrollTop=c)}var h=t.options.fixedGutter?0:n.gutters.offsetWidth,d=t.curOp&&null!=t.curOp.scrollLeft?t.curOp.scrollLeft:n.scroller.scrollLeft-h,f=qn(t)-n.gutters.offsetWidth,p=e.right-e.left>f;return p&&(e.right=e.left+f),e.left<10?a.scrollLeft=0:e.left<d?a.scrollLeft=Math.max(0,e.left+h-(p?0:10)):e.right>f+d-3&&(a.scrollLeft=e.right+(p?0:10)-f),a}function ar(t,e){null!=e&&(cr(t),t.curOp.scrollTop=(null==t.curOp.scrollTop?t.doc.scrollTop:t.curOp.scrollTop)+e)}function sr(t){cr(t);var e=t.getCursor();t.curOp.scrollToPos={from:e,to:e,margin:t.options.cursorScrollMargin}}function lr(t,e,n){null==e&&null==n||cr(t),null!=e&&(t.curOp.scrollLeft=e),null!=n&&(t.curOp.scrollTop=n)}function ur(t,e){cr(t),t.curOp.scrollToPos=e}function cr(t){var e=t.curOp.scrollToPos;e&&(t.curOp.scrollToPos=null,hr(t,bi(t,e.from),bi(t,e.to),e.margin))}function hr(t,e,n,i){var r=or(t,{left:Math.min(e.left,n.left),top:Math.min(e.top,n.top)-i,right:Math.max(e.right,n.right),bottom:Math.max(e.bottom,n.bottom)+i});lr(t,r.scrollLeft,r.scrollTop)}function dr(t,e){Math.abs(t.doc.scrollTop-e)<2||(n||_r(t,{top:e}),fr(t,e,!0),n&&_r(t),Or(t,100))}function fr(t,e,n){e=Math.max(0,Math.min(t.display.scroller.scrollHeight-t.display.scroller.clientHeight,e)),(t.display.scroller.scrollTop!=e||n)&&(t.doc.scrollTop=e,t.display.scrollbars.setScrollTop(e),t.display.scroller.scrollTop!=e&&(t.display.scroller.scrollTop=e))}function pr(t,e,n,i){e=Math.max(0,Math.min(e,t.display.scroller.scrollWidth-t.display.scroller.clientWidth)),(n?e==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-e)<2)&&!i||(t.doc.scrollLeft=e,Yr(t),t.display.scroller.scrollLeft!=e&&(t.display.scroller.scrollLeft=e),t.display.scrollbars.setScrollLeft(e))}function gr(t){var e=t.display,n=e.gutters.offsetWidth,i=Math.round(t.doc.height+Vn(t.display));return{clientHeight:e.scroller.clientHeight,viewHeight:e.wrapper.clientHeight,scrollWidth:e.scroller.scrollWidth,clientWidth:e.scroller.clientWidth,viewWidth:e.wrapper.clientWidth,barLeft:t.options.fixedGutter?n:0,docHeight:i,scrollHeight:i+Xn(t)+e.barHeight,nativeBarWidth:e.nativeBarWidth,gutterWidth:n}}var mr=function(t,e,n){this.cm=n;var i=this.vert=L("div",[L("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),r=this.horiz=L("div",[L("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");i.tabIndex=r.tabIndex=-1,t(i),t(r),pt(i,"scroll",(function(){i.clientHeight&&e(i.scrollTop,"vertical")})),pt(r,"scroll",(function(){r.clientWidth&&e(r.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};mr.prototype.update=function(t){var e=t.scrollWidth>t.clientWidth+1,n=t.scrollHeight>t.clientHeight+1,i=t.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=e?i+"px":"0";var r=t.viewHeight-(e?i:0);this.vert.firstChild.style.height=Math.max(0,t.scrollHeight-t.clientHeight+r)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(e){this.horiz.style.display="block",this.horiz.style.right=n?i+"px":"0",this.horiz.style.left=t.barLeft+"px";var o=t.viewWidth-t.barLeft-(n?i:0);this.horiz.firstChild.style.width=Math.max(0,t.scrollWidth-t.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&t.clientHeight>0&&(0==i&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?i:0,bottom:e?i:0}},mr.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},mr.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},mr.prototype.zeroWidthHack=function(){var t=y&&!f?"12px":"18px";this.horiz.style.height=this.vert.style.width=t,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new z,this.disableVert=new z},mr.prototype.enableZeroWidthBar=function(t,e,n){function i(){var r=t.getBoundingClientRect();("vert"==n?document.elementFromPoint(r.right-1,(r.top+r.bottom)/2):document.elementFromPoint((r.right+r.left)/2,r.bottom-1))!=t?t.style.pointerEvents="none":e.set(1e3,i)}t.style.pointerEvents="auto",e.set(1e3,i)},mr.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)};var vr=function(){};function yr(t,e){e||(e=gr(t));var n=t.display.barWidth,i=t.display.barHeight;wr(t,e);for(var r=0;r<4&&n!=t.display.barWidth||i!=t.display.barHeight;r++)n!=t.display.barWidth&&t.options.lineWrapping&&$i(t),wr(t,gr(t)),n=t.display.barWidth,i=t.display.barHeight}function wr(t,e){var n=t.display,i=n.scrollbars.update(e);n.sizer.style.paddingRight=(n.barWidth=i.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=i.bottom)+"px",n.heightForcer.style.borderBottom=i.bottom+"px solid transparent",i.right&&i.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=i.bottom+"px",n.scrollbarFiller.style.width=i.right+"px"):n.scrollbarFiller.style.display="",i.bottom&&t.options.coverGutterNextToScrollbar&&t.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=i.bottom+"px",n.gutterFiller.style.width=e.gutterWidth+"px"):n.gutterFiller.style.display=""}vr.prototype.update=function(){return{bottom:0,right:0}},vr.prototype.setScrollLeft=function(){},vr.prototype.setScrollTop=function(){},vr.prototype.clear=function(){};var br={native:mr,null:vr};function xr(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&A(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new br[t.options.scrollbarStyle]((function(e){t.display.wrapper.insertBefore(e,t.display.scrollbarFiller),pt(e,"mousedown",(function(){t.state.focused&&setTimeout((function(){return t.display.input.focus()}),0)})),e.setAttribute("cm-not-content","true")}),(function(e,n){"horizontal"==n?pr(t,e):dr(t,e)}),t),t.display.scrollbars.addClass&&I(t.display.wrapper,t.display.scrollbars.addClass)}var Sr=0;function Pr(t){t.curOp={cm:t,viewChanged:!1,startHeight:t.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Sr},Cn(t.curOp)}function kr(t){var e=t.curOp;e&&Mn(e,(function(t){for(var e=0;e<t.ops.length;e++)t.ops[e].cm.curOp=null;Cr(t)}))}function Cr(t){for(var e=t.ops,n=0;n<e.length;n++)Ar(e[n]);for(var i=0;i<e.length;i++)Mr(e[i]);for(var r=0;r<e.length;r++)Er(e[r]);for(var o=0;o<e.length;o++)Lr(e[o]);for(var a=0;a<e.length;a++)Tr(e[a])}function Ar(t){var e=t.cm,n=e.display;Fr(e),t.updateMaxLine&&ln(e),t.mustUpdate=t.viewChanged||t.forceUpdate||null!=t.scrollTop||t.scrollToPos&&(t.scrollToPos.from.line<n.viewFrom||t.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&e.options.lineWrapping,t.update=t.mustUpdate&&new Rr(e,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function Mr(t){t.updatedDisplay=t.mustUpdate&&Ur(t.cm,t.update)}function Er(t){var e=t.cm,n=e.display;t.updatedDisplay&&$i(e),t.barMeasure=gr(e),n.maxLineChanged&&!e.options.lineWrapping&&(t.adjustWidthTo=ti(e,n.maxLine,n.maxLine.text.length).left+3,e.display.sizerWidth=t.adjustWidthTo,t.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+t.adjustWidthTo+Xn(e)+e.display.barWidth),t.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+t.adjustWidthTo-qn(e))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=n.input.prepareSelection())}function Lr(t){var e=t.cm;null!=t.adjustWidthTo&&(e.display.sizer.style.minWidth=t.adjustWidthTo+"px",t.maxScrollLeft<e.doc.scrollLeft&&pr(e,Math.min(e.display.scroller.scrollLeft,t.maxScrollLeft),!0),e.display.maxLineChanged=!1);var n=t.focus&&t.focus==j();t.preparedSelection&&e.display.input.showSelection(t.preparedSelection,n),(t.updatedDisplay||t.startHeight!=e.doc.height)&&yr(e,t.barMeasure),t.updatedDisplay&&Vr(e,t.barMeasure),t.selectionChanged&&Xi(e),e.state.focused&&t.updateInput&&e.display.input.reset(t.typing),n&&qi(t.cm)}function Tr(t){var e=t.cm,n=e.display,i=e.doc;t.updatedDisplay&&Hr(e,t.update),null==n.wheelStartX||null==t.scrollTop&&null==t.scrollLeft&&!t.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=t.scrollTop&&fr(e,t.scrollTop,t.forceScroll),null!=t.scrollLeft&&pr(e,t.scrollLeft,!0,!0),t.scrollToPos&&nr(e,ir(e,de(i,t.scrollToPos.from),de(i,t.scrollToPos.to),t.scrollToPos.margin));var r=t.maybeHiddenMarkers,o=t.maybeUnhiddenMarkers;if(r)for(var a=0;a<r.length;++a)r[a].lines.length||vt(r[a],"hide");if(o)for(var s=0;s<o.length;++s)o[s].lines.length&&vt(o[s],"unhide");n.wrapper.offsetHeight&&(i.scrollTop=e.display.scroller.scrollTop),t.changeObjs&&vt(e,"changes",e,t.changeObjs),t.update&&t.update.finish()}function Nr(t,e){if(t.curOp)return e();Pr(t);try{return e()}finally{kr(t)}}function jr(t,e){return function(){if(t.curOp)return e.apply(t,arguments);Pr(t);try{return e.apply(t,arguments)}finally{kr(t)}}}function Ir(t){return function(){if(this.curOp)return t.apply(this,arguments);Pr(this);try{return t.apply(this,arguments)}finally{kr(this)}}}function Br(t){return function(){var e=this.cm;if(!e||e.curOp)return t.apply(this,arguments);Pr(e);try{return t.apply(this,arguments)}finally{kr(e)}}}function Or(t,e){t.doc.highlightFrontier<t.display.viewTo&&t.state.highlight.set(e,D(Dr,t))}function Dr(t){var e=t.doc;if(!(e.highlightFrontier>=t.display.viewTo)){var n=+new Date+t.options.workTime,i=we(t,e.highlightFrontier),r=[];e.iter(i.line,Math.min(e.first+e.size,t.display.viewTo+500),(function(o){if(i.line>=t.display.viewFrom){var a=o.styles,s=o.text.length>t.options.maxHighlightLength?Yt(e.mode,i.state):null,l=ve(t,o,i,!0);s&&(i.state=s),o.styles=l.styles;var u=o.styleClasses,c=l.classes;c?o.styleClasses=c:u&&(o.styleClasses=null);for(var h=!a||a.length!=o.styles.length||u!=c&&(!u||!c||u.bgClass!=c.bgClass||u.textClass!=c.textClass),d=0;!h&&d<a.length;++d)h=a[d]!=o.styles[d];h&&r.push(i.line),o.stateAfter=i.save(),i.nextLine()}else o.text.length<=t.options.maxHighlightLength&&be(t,o.text,i),o.stateAfter=i.line%5==0?i.save():null,i.nextLine();if(+new Date>n)return Or(t,t.options.workDelay),!0})),e.highlightFrontier=i.line,e.modeFrontier=Math.max(e.modeFrontier,i.line),r.length&&Nr(t,(function(){for(var e=0;e<r.length;e++)Fi(t,r[e],"text")}))}}var Rr=function(t,e,n){var i=t.display;this.viewport=e,this.visible=er(i,t.doc,e),this.editorIsHidden=!i.wrapper.offsetWidth,this.wrapperHeight=i.wrapper.clientHeight,this.wrapperWidth=i.wrapper.clientWidth,this.oldDisplayWidth=qn(t),this.force=n,this.dims=Ni(t),this.events=[]};function Fr(t){var e=t.display;!e.scrollbarsClipped&&e.scroller.offsetWidth&&(e.nativeBarWidth=e.scroller.offsetWidth-e.scroller.clientWidth,e.heightForcer.style.height=Xn(t)+"px",e.sizer.style.marginBottom=-e.nativeBarWidth+"px",e.sizer.style.borderRightWidth=Xn(t)+"px",e.scrollbarsClipped=!0)}function zr(t){if(t.hasFocus())return null;var e=j();if(!e||!N(t.display.lineDiv,e))return null;var n={activeElt:e};if(window.getSelection){var i=window.getSelection();i.anchorNode&&i.extend&&N(t.display.lineDiv,i.anchorNode)&&(n.anchorNode=i.anchorNode,n.anchorOffset=i.anchorOffset,n.focusNode=i.focusNode,n.focusOffset=i.focusOffset)}return n}function Gr(t){if(t&&t.activeElt&&t.activeElt!=j()&&(t.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(t.activeElt.nodeName)&&t.anchorNode&&N(document.body,t.anchorNode)&&N(document.body,t.focusNode))){var e=window.getSelection(),n=document.createRange();n.setEnd(t.anchorNode,t.anchorOffset),n.collapse(!1),e.removeAllRanges(),e.addRange(n),e.extend(t.focusNode,t.focusOffset)}}function Ur(t,e){var n=t.display,i=t.doc;if(e.editorIsHidden)return zi(t),!1;if(!e.force&&e.visible.from>=n.viewFrom&&e.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==Hi(t))return!1;Xr(t)&&(zi(t),e.dims=Ni(t));var r=i.first+i.size,o=Math.max(e.visible.from-t.options.viewportMargin,i.first),a=Math.min(r,e.visible.to+t.options.viewportMargin);n.viewFrom<o&&o-n.viewFrom<20&&(o=Math.max(i.first,n.viewFrom)),n.viewTo>a&&n.viewTo-a<20&&(a=Math.min(r,n.viewTo)),Te&&(o=en(t.doc,o),a=nn(t.doc,a));var s=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=e.wrapperHeight||n.lastWrapWidth!=e.wrapperWidth;Ui(t,o,a),n.viewOffset=an(Qt(t.doc,n.viewFrom)),t.display.mover.style.top=n.viewOffset+"px";var l=Hi(t);if(!s&&0==l&&!e.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var u=zr(t);return l>4&&(n.lineDiv.style.display="none"),Zr(t,n.updateLineNumbers,e.dims),l>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,Gr(u),M(n.cursorDiv),M(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=e.wrapperHeight,n.lastWrapWidth=e.wrapperWidth,Or(t,400)),n.updateLineNumbers=null,!0}function Hr(t,e){for(var n=e.viewport,i=!0;;i=!1){if(i&&t.options.lineWrapping&&e.oldDisplayWidth!=qn(t))i&&(e.visible=er(t.display,t.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(t.doc.height+Vn(t.display)-Kn(t),n.top)}),e.visible=er(t.display,t.doc,n),e.visible.from>=t.display.viewFrom&&e.visible.to<=t.display.viewTo)break;if(!Ur(t,e))break;$i(t);var r=gr(t);_i(t),yr(t,r),Vr(t,r),e.force=!1}e.signal(t,"update",t),t.display.viewFrom==t.display.reportedViewFrom&&t.display.viewTo==t.display.reportedViewTo||(e.signal(t,"viewportChange",t,t.display.viewFrom,t.display.viewTo),t.display.reportedViewFrom=t.display.viewFrom,t.display.reportedViewTo=t.display.viewTo)}function _r(t,e){var n=new Rr(t,e);if(Ur(t,n)){$i(t),Hr(t,n);var i=gr(t);_i(t),yr(t,i),Vr(t,i),n.finish()}}function Zr(t,e,n){var i=t.display,r=t.options.lineNumbers,o=i.lineDiv,a=o.firstChild;function s(e){var n=e.nextSibling;return l&&y&&t.display.currentWheelTarget==e?e.style.display="none":e.parentNode.removeChild(e),n}for(var u=i.view,c=i.viewFrom,h=0;h<u.length;h++){var d=u[h];if(d.hidden);else if(d.node&&d.node.parentNode==o){for(;a!=d.node;)a=s(a);var f=r&&null!=e&&e<=c&&d.lineNumber;d.changes&&(G(d.changes,"gutter")>-1&&(f=!1),Nn(t,d,c,n)),f&&(M(d.lineNumber),d.lineNumber.appendChild(document.createTextNode(re(t.options,c)))),a=d.node.nextSibling}else{var p=zn(t,d,c,n);o.insertBefore(p,a)}c+=d.size}for(;a;)a=s(a)}function Wr(t){var e=t.gutters.offsetWidth;t.sizer.style.marginLeft=e+"px"}function Vr(t,e){t.display.sizer.style.minHeight=e.docHeight+"px",t.display.heightForcer.style.top=e.docHeight+"px",t.display.gutters.style.height=e.docHeight+t.display.barHeight+Xn(t)+"px"}function Yr(t){var e=t.display,n=e.view;if(e.alignWidgets||e.gutters.firstChild&&t.options.fixedGutter){for(var i=ji(e)-e.scroller.scrollLeft+t.doc.scrollLeft,r=e.gutters.offsetWidth,o=i+"px",a=0;a<n.length;a++)if(!n[a].hidden){t.options.fixedGutter&&(n[a].gutter&&(n[a].gutter.style.left=o),n[a].gutterBackground&&(n[a].gutterBackground.style.left=o));var s=n[a].alignable;if(s)for(var l=0;l<s.length;l++)s[l].style.left=o}t.options.fixedGutter&&(e.gutters.style.left=i+r+"px")}}function Xr(t){if(!t.options.lineNumbers)return!1;var e=t.doc,n=re(t.options,e.first+e.size-1),i=t.display;if(n.length!=i.lineNumChars){var r=i.measure.appendChild(L("div",[L("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=r.firstChild.offsetWidth,a=r.offsetWidth-o;return i.lineGutter.style.width="",i.lineNumInnerWidth=Math.max(o,i.lineGutter.offsetWidth-a)+1,i.lineNumWidth=i.lineNumInnerWidth+a,i.lineNumChars=i.lineNumInnerWidth?n.length:-1,i.lineGutter.style.width=i.lineNumWidth+"px",Wr(t.display),!0}return!1}function qr(t,e){for(var n=[],i=!1,r=0;r<t.length;r++){var o=t[r],a=null;if("string"!=typeof o&&(a=o.style,o=o.className),"CodeMirror-linenumbers"==o){if(!e)continue;i=!0}n.push({className:o,style:a})}return e&&!i&&n.push({className:"CodeMirror-linenumbers",style:null}),n}function Kr(t){var e=t.gutters,n=t.gutterSpecs;M(e),t.lineGutter=null;for(var i=0;i<n.length;++i){var r=n[i],o=r.className,a=r.style,s=e.appendChild(L("div",null,"CodeMirror-gutter "+o));a&&(s.style.cssText=a),"CodeMirror-linenumbers"==o&&(t.lineGutter=s,s.style.width=(t.lineNumWidth||1)+"px")}e.style.display=n.length?"":"none",Wr(t)}function Qr(t){Kr(t.display),Ri(t),Yr(t)}function Jr(t,e,i,r){var o=this;this.input=i,o.scrollbarFiller=L("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=L("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=T("div",null,"CodeMirror-code"),o.selectionDiv=L("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=L("div",null,"CodeMirror-cursors"),o.measure=L("div",null,"CodeMirror-measure"),o.lineMeasure=L("div",null,"CodeMirror-measure"),o.lineSpace=T("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var u=T("div",[o.lineSpace],"CodeMirror-lines");o.mover=L("div",[u],null,"position: relative"),o.sizer=L("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=L("div",null,null,"position: absolute; height: "+U+"px; width: 1px;"),o.gutters=L("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=L("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=L("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),a&&s<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),l||n&&v||(o.scroller.draggable=!0),t&&(t.appendChild?t.appendChild(o.wrapper):t(o.wrapper)),o.viewFrom=o.viewTo=e.first,o.reportedViewFrom=o.reportedViewTo=e.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,o.gutterSpecs=qr(r.gutters,r.lineNumbers),Kr(o),i.init(o)}Rr.prototype.signal=function(t,e){bt(t,e)&&this.events.push(arguments)},Rr.prototype.finish=function(){for(var t=0;t<this.events.length;t++)vt.apply(null,this.events[t])};var $r=0,to=null;function eo(t){var e=t.wheelDeltaX,n=t.wheelDeltaY;return null==e&&t.detail&&t.axis==t.HORIZONTAL_AXIS&&(e=t.detail),null==n&&t.detail&&t.axis==t.VERTICAL_AXIS?n=t.detail:null==n&&(n=t.wheelDelta),{x:e,y:n}}function no(t){var e=eo(t);return e.x*=to,e.y*=to,e}function io(t,e){var i=eo(e),r=i.x,o=i.y,a=t.display,s=a.scroller,u=s.scrollWidth>s.clientWidth,c=s.scrollHeight>s.clientHeight;if(r&&u||o&&c){if(o&&y&&l)t:for(var d=e.target,f=a.view;d!=s;d=d.parentNode)for(var p=0;p<f.length;p++)if(f[p].node==d){t.display.currentWheelTarget=d;break t}if(r&&!n&&!h&&null!=to)return o&&c&&dr(t,Math.max(0,s.scrollTop+o*to)),pr(t,Math.max(0,s.scrollLeft+r*to)),(!o||o&&c)&&St(e),void(a.wheelStartX=null);if(o&&null!=to){var g=o*to,m=t.doc.scrollTop,v=m+a.wrapper.clientHeight;g<0?m=Math.max(0,m+g-50):v=Math.min(t.doc.height,v+g+50),_r(t,{top:m,bottom:v})}$r<20&&(null==a.wheelStartX?(a.wheelStartX=s.scrollLeft,a.wheelStartY=s.scrollTop,a.wheelDX=r,a.wheelDY=o,setTimeout((function(){if(null!=a.wheelStartX){var t=s.scrollLeft-a.wheelStartX,e=s.scrollTop-a.wheelStartY,n=e&&a.wheelDY&&e/a.wheelDY||t&&a.wheelDX&&t/a.wheelDX;a.wheelStartX=a.wheelStartY=null,n&&(to=(to*$r+n)/($r+1),++$r)}}),200)):(a.wheelDX+=r,a.wheelDY+=o))}}a?to=-.53:n?to=15:c?to=-.7:d&&(to=-1/3);var ro=function(t,e){this.ranges=t,this.primIndex=e};ro.prototype.primary=function(){return this.ranges[this.primIndex]},ro.prototype.equals=function(t){if(t==this)return!0;if(t.primIndex!=this.primIndex||t.ranges.length!=this.ranges.length)return!1;for(var e=0;e<this.ranges.length;e++){var n=this.ranges[e],i=t.ranges[e];if(!se(n.anchor,i.anchor)||!se(n.head,i.head))return!1}return!0},ro.prototype.deepCopy=function(){for(var t=[],e=0;e<this.ranges.length;e++)t[e]=new oo(le(this.ranges[e].anchor),le(this.ranges[e].head));return new ro(t,this.primIndex)},ro.prototype.somethingSelected=function(){for(var t=0;t<this.ranges.length;t++)if(!this.ranges[t].empty())return!0;return!1},ro.prototype.contains=function(t,e){e||(e=t);for(var n=0;n<this.ranges.length;n++){var i=this.ranges[n];if(ae(e,i.from())>=0&&ae(t,i.to())<=0)return n}return-1};var oo=function(t,e){this.anchor=t,this.head=e};function ao(t,e,n){var i=t&&t.options.selectionsMayTouch,r=e[n];e.sort((function(t,e){return ae(t.from(),e.from())})),n=G(e,r);for(var o=1;o<e.length;o++){var a=e[o],s=e[o-1],l=ae(s.to(),a.from());if(i&&!a.empty()?l>0:l>=0){var u=ce(s.from(),a.from()),c=ue(s.to(),a.to()),h=s.empty()?a.from()==a.head:s.from()==s.head;o<=n&&--n,e.splice(--o,2,new oo(h?c:u,h?u:c))}}return new ro(e,n)}function so(t,e){return new ro([new oo(t,e||t)],0)}function lo(t){return t.text?oe(t.from.line+t.text.length-1,q(t.text).length+(1==t.text.length?t.from.ch:0)):t.to}function uo(t,e){if(ae(t,e.from)<0)return t;if(ae(t,e.to)<=0)return lo(e);var n=t.line+e.text.length-(e.to.line-e.from.line)-1,i=t.ch;return t.line==e.to.line&&(i+=lo(e).ch-e.to.ch),oe(n,i)}function co(t,e){for(var n=[],i=0;i<t.sel.ranges.length;i++){var r=t.sel.ranges[i];n.push(new oo(uo(r.anchor,e),uo(r.head,e)))}return ao(t.cm,n,t.sel.primIndex)}function ho(t,e,n){return t.line==e.line?oe(n.line,t.ch-e.ch+n.ch):oe(n.line+(t.line-e.line),t.ch)}function fo(t,e,n){for(var i=[],r=oe(t.first,0),o=r,a=0;a<e.length;a++){var s=e[a],l=ho(s.from,r,o),u=ho(lo(s),r,o);if(r=s.to,o=u,"around"==n){var c=t.sel.ranges[a],h=ae(c.head,c.anchor)<0;i[a]=new oo(h?u:l,h?l:u)}else i[a]=new oo(l,l)}return new ro(i,t.sel.primIndex)}function po(t){t.doc.mode=Zt(t.options,t.doc.modeOption),go(t)}function go(t){t.doc.iter((function(t){t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null)})),t.doc.modeFrontier=t.doc.highlightFrontier=t.doc.first,Or(t,100),t.state.modeGen++,t.curOp&&Ri(t)}function mo(t,e){return 0==e.from.ch&&0==e.to.ch&&""==q(e.text)&&(!t.cm||t.cm.options.wholeLineUpdateBefore)}function vo(t,e,n,i){function r(t){return n?n[t]:null}function o(t,n,r){cn(t,n,r,i),Ln(t,"change",t,e)}function a(t,e){for(var n=[],o=t;o<e;++o)n.push(new un(u[o],r(o),i));return n}var s=e.from,l=e.to,u=e.text,c=Qt(t,s.line),h=Qt(t,l.line),d=q(u),f=r(u.length-1),p=l.line-s.line;if(e.full)t.insert(0,a(0,u.length)),t.remove(u.length,t.size-u.length);else if(mo(t,e)){var g=a(0,u.length-1);o(h,h.text,f),p&&t.remove(s.line,p),g.length&&t.insert(s.line,g)}else if(c==h)if(1==u.length)o(c,c.text.slice(0,s.ch)+d+c.text.slice(l.ch),f);else{var m=a(1,u.length-1);m.push(new un(d+c.text.slice(l.ch),f,i)),o(c,c.text.slice(0,s.ch)+u[0],r(0)),t.insert(s.line+1,m)}else if(1==u.length)o(c,c.text.slice(0,s.ch)+u[0]+h.text.slice(l.ch),r(0)),t.remove(s.line+1,p);else{o(c,c.text.slice(0,s.ch)+u[0],r(0)),o(h,d+h.text.slice(l.ch),f);var v=a(1,u.length-1);p>1&&t.remove(s.line+1,p-1),t.insert(s.line+1,v)}Ln(t,"change",t,e)}function yo(t,e,n){function i(t,r,o){if(t.linked)for(var a=0;a<t.linked.length;++a){var s=t.linked[a];if(s.doc!=r){var l=o&&s.sharedHist;n&&!l||(e(s.doc,l),i(s.doc,t,l))}}}i(t,null,!0)}function wo(t,e){if(e.cm)throw new Error("This document is already in use.");t.doc=e,e.cm=t,Bi(t),po(t),bo(t),t.options.lineWrapping||ln(t),t.options.mode=e.modeOption,Ri(t)}function bo(t){("rtl"==t.doc.direction?I:A)(t.display.lineDiv,"CodeMirror-rtl")}function xo(t){Nr(t,(function(){bo(t),Ri(t)}))}function So(t){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=t||1}function Po(t,e){var n={from:le(e.from),to:lo(e),text:Jt(t,e.from,e.to)};return To(t,n,e.from.line,e.to.line+1),yo(t,(function(t){return To(t,n,e.from.line,e.to.line+1)}),!0),n}function ko(t){for(;t.length&&q(t).ranges;)t.pop()}function Co(t,e){return e?(ko(t.done),q(t.done)):t.done.length&&!q(t.done).ranges?q(t.done):t.done.length>1&&!t.done[t.done.length-2].ranges?(t.done.pop(),q(t.done)):void 0}function Ao(t,e,n,i){var r=t.history;r.undone.length=0;var o,a,s=+new Date;if((r.lastOp==i||r.lastOrigin==e.origin&&e.origin&&("+"==e.origin.charAt(0)&&r.lastModTime>s-(t.cm?t.cm.options.historyEventDelay:500)||"*"==e.origin.charAt(0)))&&(o=Co(r,r.lastOp==i)))a=q(o.changes),0==ae(e.from,e.to)&&0==ae(e.from,a.to)?a.to=lo(e):o.changes.push(Po(t,e));else{var l=q(r.done);for(l&&l.ranges||Lo(t.sel,r.done),o={changes:[Po(t,e)],generation:r.generation},r.done.push(o);r.done.length>r.undoDepth;)r.done.shift(),r.done[0].ranges||r.done.shift()}r.done.push(n),r.generation=++r.maxGeneration,r.lastModTime=r.lastSelTime=s,r.lastOp=r.lastSelOp=i,r.lastOrigin=r.lastSelOrigin=e.origin,a||vt(t,"historyAdded")}function Mo(t,e,n,i){var r=e.charAt(0);return"*"==r||"+"==r&&n.ranges.length==i.ranges.length&&n.somethingSelected()==i.somethingSelected()&&new Date-t.history.lastSelTime<=(t.cm?t.cm.options.historyEventDelay:500)}function Eo(t,e,n,i){var r=t.history,o=i&&i.origin;n==r.lastSelOp||o&&r.lastSelOrigin==o&&(r.lastModTime==r.lastSelTime&&r.lastOrigin==o||Mo(t,o,q(r.done),e))?r.done[r.done.length-1]=e:Lo(e,r.done),r.lastSelTime=+new Date,r.lastSelOrigin=o,r.lastSelOp=n,i&&!1!==i.clearRedo&&ko(r.undone)}function Lo(t,e){var n=q(e);n&&n.ranges&&n.equals(t)||e.push(t)}function To(t,e,n,i){var r=e["spans_"+t.id],o=0;t.iter(Math.max(t.first,n),Math.min(t.first+t.size,i),(function(n){n.markedSpans&&((r||(r=e["spans_"+t.id]={}))[o]=n.markedSpans),++o}))}function No(t){if(!t)return null;for(var e,n=0;n<t.length;++n)t[n].marker.explicitlyCleared?e||(e=t.slice(0,n)):e&&e.push(t[n]);return e?e.length?e:null:t}function jo(t,e){var n=e["spans_"+t.id];if(!n)return null;for(var i=[],r=0;r<e.text.length;++r)i.push(No(n[r]));return i}function Io(t,e){var n=jo(t,e),i=ze(t,e);if(!n)return i;if(!i)return n;for(var r=0;r<n.length;++r){var o=n[r],a=i[r];if(o&&a)t:for(var s=0;s<a.length;++s){for(var l=a[s],u=0;u<o.length;++u)if(o[u].marker==l.marker)continue t;o.push(l)}else a&&(n[r]=a)}return n}function Bo(t,e,n){for(var i=[],r=0;r<t.length;++r){var o=t[r];if(o.ranges)i.push(n?ro.prototype.deepCopy.call(o):o);else{var a=o.changes,s=[];i.push({changes:s});for(var l=0;l<a.length;++l){var u=a[l],c=void 0;if(s.push({from:u.from,to:u.to,text:u.text}),e)for(var h in u)(c=h.match(/^spans_(\d+)$/))&&G(e,Number(c[1]))>-1&&(q(s)[h]=u[h],delete u[h])}}}return i}function Oo(t,e,n,i){if(i){var r=t.anchor;if(n){var o=ae(e,r)<0;o!=ae(n,r)<0?(r=e,e=n):o!=ae(e,n)<0&&(e=n)}return new oo(r,e)}return new oo(n||e,e)}function Do(t,e,n,i,r){null==r&&(r=t.cm&&(t.cm.display.shift||t.extend)),Ho(t,new ro([Oo(t.sel.primary(),e,n,r)],0),i)}function Ro(t,e,n){for(var i=[],r=t.cm&&(t.cm.display.shift||t.extend),o=0;o<t.sel.ranges.length;o++)i[o]=Oo(t.sel.ranges[o],e[o],null,r);Ho(t,ao(t.cm,i,t.sel.primIndex),n)}function Fo(t,e,n,i){var r=t.sel.ranges.slice(0);r[e]=n,Ho(t,ao(t.cm,r,t.sel.primIndex),i)}function zo(t,e,n,i){Ho(t,so(e,n),i)}function Go(t,e,n){var i={ranges:e.ranges,update:function(e){this.ranges=[];for(var n=0;n<e.length;n++)this.ranges[n]=new oo(de(t,e[n].anchor),de(t,e[n].head))},origin:n&&n.origin};return vt(t,"beforeSelectionChange",t,i),t.cm&&vt(t.cm,"beforeSelectionChange",t.cm,i),i.ranges!=e.ranges?ao(t.cm,i.ranges,i.ranges.length-1):e}function Uo(t,e,n){var i=t.history.done,r=q(i);r&&r.ranges?(i[i.length-1]=e,_o(t,e,n)):Ho(t,e,n)}function Ho(t,e,n){_o(t,e,n),Eo(t,t.sel,t.cm?t.cm.curOp.id:NaN,n)}function _o(t,e,n){(bt(t,"beforeSelectionChange")||t.cm&&bt(t.cm,"beforeSelectionChange"))&&(e=Go(t,e,n));var i=n&&n.bias||(ae(e.primary().head,t.sel.primary().head)<0?-1:1);Zo(t,Vo(t,e,i,!0)),n&&!1===n.scroll||!t.cm||sr(t.cm)}function Zo(t,e){e.equals(t.sel)||(t.sel=e,t.cm&&(t.cm.curOp.updateInput=1,t.cm.curOp.selectionChanged=!0,wt(t.cm)),Ln(t,"cursorActivity",t))}function Wo(t){Zo(t,Vo(t,t.sel,null,!1))}function Vo(t,e,n,i){for(var r,o=0;o<e.ranges.length;o++){var a=e.ranges[o],s=e.ranges.length==t.sel.ranges.length&&t.sel.ranges[o],l=Xo(t,a.anchor,s&&s.anchor,n,i),u=Xo(t,a.head,s&&s.head,n,i);(r||l!=a.anchor||u!=a.head)&&(r||(r=e.ranges.slice(0,o)),r[o]=new oo(l,u))}return r?ao(t.cm,r,e.primIndex):e}function Yo(t,e,n,i,r){var o=Qt(t,e.line);if(o.markedSpans)for(var a=0;a<o.markedSpans.length;++a){var s=o.markedSpans[a],l=s.marker,u="selectLeft"in l?!l.selectLeft:l.inclusiveLeft,c="selectRight"in l?!l.selectRight:l.inclusiveRight;if((null==s.from||(u?s.from<=e.ch:s.from<e.ch))&&(null==s.to||(c?s.to>=e.ch:s.to>e.ch))){if(r&&(vt(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!l.atomic)continue;if(n){var h=l.find(i<0?1:-1),d=void 0;if((i<0?c:u)&&(h=qo(t,h,-i,h&&h.line==e.line?o:null)),h&&h.line==e.line&&(d=ae(h,n))&&(i<0?d<0:d>0))return Yo(t,h,e,i,r)}var f=l.find(i<0?-1:1);return(i<0?u:c)&&(f=qo(t,f,i,f.line==e.line?o:null)),f?Yo(t,f,e,i,r):null}}return e}function Xo(t,e,n,i,r){var o=i||1,a=Yo(t,e,n,o,r)||!r&&Yo(t,e,n,o,!0)||Yo(t,e,n,-o,r)||!r&&Yo(t,e,n,-o,!0);return a||(t.cantEdit=!0,oe(t.first,0))}function qo(t,e,n,i){return n<0&&0==e.ch?e.line>t.first?de(t,oe(e.line-1)):null:n>0&&e.ch==(i||Qt(t,e.line)).text.length?e.line<t.first+t.size-1?oe(e.line+1,0):null:new oe(e.line,e.ch+n)}function Ko(t){t.setSelection(oe(t.firstLine(),0),oe(t.lastLine()),_)}function Qo(t,e,n){var i={canceled:!1,from:e.from,to:e.to,text:e.text,origin:e.origin,cancel:function(){return i.canceled=!0}};return n&&(i.update=function(e,n,r,o){e&&(i.from=de(t,e)),n&&(i.to=de(t,n)),r&&(i.text=r),void 0!==o&&(i.origin=o)}),vt(t,"beforeChange",t,i),t.cm&&vt(t.cm,"beforeChange",t.cm,i),i.canceled?(t.cm&&(t.cm.curOp.updateInput=2),null):{from:i.from,to:i.to,text:i.text,origin:i.origin}}function Jo(t,e,n){if(t.cm){if(!t.cm.curOp)return jr(t.cm,Jo)(t,e,n);if(t.cm.state.suppressEdits)return}if(!(bt(t,"beforeChange")||t.cm&&bt(t.cm,"beforeChange"))||(e=Qo(t,e,!0))){var i=Le&&!n&&Ue(t,e.from,e.to);if(i)for(var r=i.length-1;r>=0;--r)$o(t,{from:i[r].from,to:i[r].to,text:r?[""]:e.text,origin:e.origin});else $o(t,e)}}function $o(t,e){if(1!=e.text.length||""!=e.text[0]||0!=ae(e.from,e.to)){var n=co(t,e);Ao(t,e,n,t.cm?t.cm.curOp.id:NaN),na(t,e,n,ze(t,e));var i=[];yo(t,(function(t,n){n||-1!=G(i,t.history)||(sa(t.history,e),i.push(t.history)),na(t,e,null,ze(t,e))}))}}function ta(t,e,n){var i=t.cm&&t.cm.state.suppressEdits;if(!i||n){for(var r,o=t.history,a=t.sel,s="undo"==e?o.done:o.undone,l="undo"==e?o.undone:o.done,u=0;u<s.length&&(r=s[u],n?!r.ranges||r.equals(t.sel):r.ranges);u++);if(u!=s.length){for(o.lastOrigin=o.lastSelOrigin=null;;){if(!(r=s.pop()).ranges){if(i)return void s.push(r);break}if(Lo(r,l),n&&!r.equals(t.sel))return void Ho(t,r,{clearRedo:!1});a=r}var c=[];Lo(a,l),l.push({changes:c,generation:o.generation}),o.generation=r.generation||++o.maxGeneration;for(var h=bt(t,"beforeChange")||t.cm&&bt(t.cm,"beforeChange"),d=function(n){var i=r.changes[n];if(i.origin=e,h&&!Qo(t,i,!1))return s.length=0,{};c.push(Po(t,i));var o=n?co(t,i):q(s);na(t,i,o,Io(t,i)),!n&&t.cm&&t.cm.scrollIntoView({from:i.from,to:lo(i)});var a=[];yo(t,(function(t,e){e||-1!=G(a,t.history)||(sa(t.history,i),a.push(t.history)),na(t,i,null,Io(t,i))}))},f=r.changes.length-1;f>=0;--f){var p=d(f);if(p)return p.v}}}}function ea(t,e){if(0!=e&&(t.first+=e,t.sel=new ro(K(t.sel.ranges,(function(t){return new oo(oe(t.anchor.line+e,t.anchor.ch),oe(t.head.line+e,t.head.ch))})),t.sel.primIndex),t.cm)){Ri(t.cm,t.first,t.first-e,e);for(var n=t.cm.display,i=n.viewFrom;i<n.viewTo;i++)Fi(t.cm,i,"gutter")}}function na(t,e,n,i){if(t.cm&&!t.cm.curOp)return jr(t.cm,na)(t,e,n,i);if(e.to.line<t.first)ea(t,e.text.length-1-(e.to.line-e.from.line));else if(!(e.from.line>t.lastLine())){if(e.from.line<t.first){var r=e.text.length-1-(t.first-e.from.line);ea(t,r),e={from:oe(t.first,0),to:oe(e.to.line+r,e.to.ch),text:[q(e.text)],origin:e.origin}}var o=t.lastLine();e.to.line>o&&(e={from:e.from,to:oe(o,Qt(t,o).text.length),text:[e.text[0]],origin:e.origin}),e.removed=Jt(t,e.from,e.to),n||(n=co(t,e)),t.cm?ia(t.cm,e,i):vo(t,e,i),_o(t,n,_),t.cantEdit&&Xo(t,oe(t.firstLine(),0))&&(t.cantEdit=!1)}}function ia(t,e,n){var i=t.doc,r=t.display,o=e.from,a=e.to,s=!1,l=o.line;t.options.lineWrapping||(l=ee(Je(Qt(i,o.line))),i.iter(l,a.line+1,(function(t){if(t==r.maxLine)return s=!0,!0}))),i.sel.contains(e.from,e.to)>-1&&wt(t),vo(i,e,n,Ii(t)),t.options.lineWrapping||(i.iter(l,o.line+e.text.length,(function(t){var e=sn(t);e>r.maxLineLength&&(r.maxLine=t,r.maxLineLength=e,r.maxLineChanged=!0,s=!1)})),s&&(t.curOp.updateMaxLine=!0)),Ee(i,o.line),Or(t,400);var u=e.text.length-(a.line-o.line)-1;e.full?Ri(t):o.line!=a.line||1!=e.text.length||mo(t.doc,e)?Ri(t,o.line,a.line+1,u):Fi(t,o.line,"text");var c=bt(t,"changes"),h=bt(t,"change");if(h||c){var d={from:o,to:a,text:e.text,removed:e.removed,origin:e.origin};h&&Ln(t,"change",t,d),c&&(t.curOp.changeObjs||(t.curOp.changeObjs=[])).push(d)}t.display.selForContextMenu=null}function ra(t,e,n,i,r){var o;i||(i=n),ae(i,n)<0&&(n=(o=[i,n])[0],i=o[1]),"string"==typeof e&&(e=t.splitLines(e)),Jo(t,{from:n,to:i,text:e,origin:r})}function oa(t,e,n,i){n<t.line?t.line+=i:e<t.line&&(t.line=e,t.ch=0)}function aa(t,e,n,i){for(var r=0;r<t.length;++r){var o=t[r],a=!0;if(o.ranges){o.copied||((o=t[r]=o.deepCopy()).copied=!0);for(var s=0;s<o.ranges.length;s++)oa(o.ranges[s].anchor,e,n,i),oa(o.ranges[s].head,e,n,i)}else{for(var l=0;l<o.changes.length;++l){var u=o.changes[l];if(n<u.from.line)u.from=oe(u.from.line+i,u.from.ch),u.to=oe(u.to.line+i,u.to.ch);else if(e<=u.to.line){a=!1;break}}a||(t.splice(0,r+1),r=0)}}}function sa(t,e){var n=e.from.line,i=e.to.line,r=e.text.length-(i-n)-1;aa(t.done,n,i,r),aa(t.undone,n,i,r)}function la(t,e,n,i){var r=e,o=e;return"number"==typeof e?o=Qt(t,he(t,e)):r=ee(e),null==r?null:(i(o,r)&&t.cm&&Fi(t.cm,r,n),o)}function ua(t){this.lines=t,this.parent=null;for(var e=0,n=0;n<t.length;++n)t[n].parent=this,e+=t[n].height;this.height=e}function ca(t){this.children=t;for(var e=0,n=0,i=0;i<t.length;++i){var r=t[i];e+=r.chunkSize(),n+=r.height,r.parent=this}this.size=e,this.height=n,this.parent=null}oo.prototype.from=function(){return ce(this.anchor,this.head)},oo.prototype.to=function(){return ue(this.anchor,this.head)},oo.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},ua.prototype={chunkSize:function(){return this.lines.length},removeInner:function(t,e){for(var n=t,i=t+e;n<i;++n){var r=this.lines[n];this.height-=r.height,hn(r),Ln(r,"delete")}this.lines.splice(t,e)},collapse:function(t){t.push.apply(t,this.lines)},insertInner:function(t,e,n){this.height+=n,this.lines=this.lines.slice(0,t).concat(e).concat(this.lines.slice(t));for(var i=0;i<e.length;++i)e[i].parent=this},iterN:function(t,e,n){for(var i=t+e;t<i;++t)if(n(this.lines[t]))return!0}},ca.prototype={chunkSize:function(){return this.size},removeInner:function(t,e){this.size-=e;for(var n=0;n<this.children.length;++n){var i=this.children[n],r=i.chunkSize();if(t<r){var o=Math.min(e,r-t),a=i.height;if(i.removeInner(t,o),this.height-=a-i.height,r==o&&(this.children.splice(n--,1),i.parent=null),0==(e-=o))break;t=0}else t-=r}if(this.size-e<25&&(this.children.length>1||!(this.children[0]instanceof ua))){var s=[];this.collapse(s),this.children=[new ua(s)],this.children[0].parent=this}},collapse:function(t){for(var e=0;e<this.children.length;++e)this.children[e].collapse(t)},insertInner:function(t,e,n){this.size+=e.length,this.height+=n;for(var i=0;i<this.children.length;++i){var r=this.children[i],o=r.chunkSize();if(t<=o){if(r.insertInner(t,e,n),r.lines&&r.lines.length>50){for(var a=r.lines.length%25+25,s=a;s<r.lines.length;){var l=new ua(r.lines.slice(s,s+=25));r.height-=l.height,this.children.splice(++i,0,l),l.parent=this}r.lines=r.lines.slice(0,a),this.maybeSpill()}break}t-=o}},maybeSpill:function(){if(!(this.children.length<=10)){var t=this;do{var e=new ca(t.children.splice(t.children.length-5,5));if(t.parent){t.size-=e.size,t.height-=e.height;var n=G(t.parent.children,t);t.parent.children.splice(n+1,0,e)}else{var i=new ca(t.children);i.parent=t,t.children=[i,e],t=i}e.parent=t.parent}while(t.children.length>10);t.parent.maybeSpill()}},iterN:function(t,e,n){for(var i=0;i<this.children.length;++i){var r=this.children[i],o=r.chunkSize();if(t<o){var a=Math.min(e,o-t);if(r.iterN(t,a,n))return!0;if(0==(e-=a))break;t=0}else t-=o}}};var ha=function(t,e,n){if(n)for(var i in n)n.hasOwnProperty(i)&&(this[i]=n[i]);this.doc=t,this.node=e};function da(t,e,n){an(e)<(t.curOp&&t.curOp.scrollTop||t.doc.scrollTop)&&ar(t,n)}function fa(t,e,n,i){var r=new ha(t,n,i),o=t.cm;return o&&r.noHScroll&&(o.display.alignWidgets=!0),la(t,e,"widget",(function(e){var n=e.widgets||(e.widgets=[]);if(null==r.insertAt?n.push(r):n.splice(Math.min(n.length-1,Math.max(0,r.insertAt)),0,r),r.line=e,o&&!rn(t,e)){var i=an(e)<t.scrollTop;te(e,e.height+_n(r)),i&&ar(o,r.height),o.curOp.forceUpdate=!0}return!0})),o&&Ln(o,"lineWidgetAdded",o,r,"number"==typeof e?e:ee(e)),r}ha.prototype.clear=function(){var t=this.doc.cm,e=this.line.widgets,n=this.line,i=ee(n);if(null!=i&&e){for(var r=0;r<e.length;++r)e[r]==this&&e.splice(r--,1);e.length||(n.widgets=null);var o=_n(this);te(n,Math.max(0,n.height-o)),t&&(Nr(t,(function(){da(t,n,-o),Fi(t,i,"widget")})),Ln(t,"lineWidgetCleared",t,this,i))}},ha.prototype.changed=function(){var t=this,e=this.height,n=this.doc.cm,i=this.line;this.height=null;var r=_n(this)-e;r&&(rn(this.doc,i)||te(i,i.height+r),n&&Nr(n,(function(){n.curOp.forceUpdate=!0,da(n,i,r),Ln(n,"lineWidgetChanged",n,t,ee(i))})))},xt(ha);var pa=0,ga=function(t,e){this.lines=[],this.type=e,this.doc=t,this.id=++pa};function ma(t,e,n,i,r){if(i&&i.shared)return ya(t,e,n,i,r);if(t.cm&&!t.cm.curOp)return jr(t.cm,ma)(t,e,n,i,r);var o=new ga(t,r),a=ae(e,n);if(i&&R(i,o,!1),a>0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=T("span",[o.replacedWith],"CodeMirror-widget"),i.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),i.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Qe(t,e.line,e,n,o)||e.line!=n.line&&Qe(t,n.line,e,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");je()}o.addToHistory&&Ao(t,{from:e,to:n,origin:"markText"},t.sel,NaN);var s,l=e.line,u=t.cm;if(t.iter(l,n.line+1,(function(t){u&&o.collapsed&&!u.options.lineWrapping&&Je(t)==u.display.maxLine&&(s=!0),o.collapsed&&l!=e.line&&te(t,0),De(t,new Ie(o,l==e.line?e.ch:null,l==n.line?n.ch:null)),++l})),o.collapsed&&t.iter(e.line,n.line+1,(function(e){rn(t,e)&&te(e,0)})),o.clearOnEnter&&pt(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(Ne(),(t.history.done.length||t.history.undone.length)&&t.clearHistory()),o.collapsed&&(o.id=++pa,o.atomic=!0),u){if(s&&(u.curOp.updateMaxLine=!0),o.collapsed)Ri(u,e.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var c=e.line;c<=n.line;c++)Fi(u,c,"text");o.atomic&&Wo(u.doc),Ln(u,"markerAdded",u,o)}return o}ga.prototype.clear=function(){if(!this.explicitlyCleared){var t=this.doc.cm,e=t&&!t.curOp;if(e&&Pr(t),bt(this,"clear")){var n=this.find();n&&Ln(this,"clear",n.from,n.to)}for(var i=null,r=null,o=0;o<this.lines.length;++o){var a=this.lines[o],s=Be(a.markedSpans,this);t&&!this.collapsed?Fi(t,ee(a),"text"):t&&(null!=s.to&&(r=ee(a)),null!=s.from&&(i=ee(a))),a.markedSpans=Oe(a.markedSpans,s),null==s.from&&this.collapsed&&!rn(this.doc,a)&&t&&te(a,Li(t.display))}if(t&&this.collapsed&&!t.options.lineWrapping)for(var l=0;l<this.lines.length;++l){var u=Je(this.lines[l]),c=sn(u);c>t.display.maxLineLength&&(t.display.maxLine=u,t.display.maxLineLength=c,t.display.maxLineChanged=!0)}null!=i&&t&&this.collapsed&&Ri(t,i,r+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&Wo(t.doc)),t&&Ln(t,"markerCleared",t,this,i,r),e&&kr(t),this.parent&&this.parent.clear()}},ga.prototype.find=function(t,e){var n,i;null==t&&"bookmark"==this.type&&(t=1);for(var r=0;r<this.lines.length;++r){var o=this.lines[r],a=Be(o.markedSpans,this);if(null!=a.from&&(n=oe(e?o:ee(o),a.from),-1==t))return n;if(null!=a.to&&(i=oe(e?o:ee(o),a.to),1==t))return i}return n&&{from:n,to:i}},ga.prototype.changed=function(){var t=this,e=this.find(-1,!0),n=this,i=this.doc.cm;e&&i&&Nr(i,(function(){var r=e.line,o=ee(e.line),a=ei(i,o);if(a&&(ci(a),i.curOp.selectionChanged=i.curOp.forceUpdate=!0),i.curOp.updateMaxLine=!0,!rn(n.doc,r)&&null!=n.height){var s=n.height;n.height=null;var l=_n(n)-s;l&&te(r,r.height+l)}Ln(i,"markerChanged",i,t)}))},ga.prototype.attachLine=function(t){if(!this.lines.length&&this.doc.cm){var e=this.doc.cm.curOp;e.maybeHiddenMarkers&&-1!=G(e.maybeHiddenMarkers,this)||(e.maybeUnhiddenMarkers||(e.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(t)},ga.prototype.detachLine=function(t){if(this.lines.splice(G(this.lines,t),1),!this.lines.length&&this.doc.cm){var e=this.doc.cm.curOp;(e.maybeHiddenMarkers||(e.maybeHiddenMarkers=[])).push(this)}},xt(ga);var va=function(t,e){this.markers=t,this.primary=e;for(var n=0;n<t.length;++n)t[n].parent=this};function ya(t,e,n,i,r){(i=R(i)).shared=!1;var o=[ma(t,e,n,i,r)],a=o[0],s=i.widgetNode;return yo(t,(function(t){s&&(i.widgetNode=s.cloneNode(!0)),o.push(ma(t,de(t,e),de(t,n),i,r));for(var l=0;l<t.linked.length;++l)if(t.linked[l].isParent)return;a=q(o)})),new va(o,a)}function wa(t){return t.findMarks(oe(t.first,0),t.clipPos(oe(t.lastLine())),(function(t){return t.parent}))}function ba(t,e){for(var n=0;n<e.length;n++){var i=e[n],r=i.find(),o=t.clipPos(r.from),a=t.clipPos(r.to);if(ae(o,a)){var s=ma(t,o,a,i.primary,i.primary.type);i.markers.push(s),s.parent=i}}}function xa(t){for(var e=function(e){var n=t[e],i=[n.primary.doc];yo(n.primary.doc,(function(t){return i.push(t)}));for(var r=0;r<n.markers.length;r++){var o=n.markers[r];-1==G(i,o.doc)&&(o.parent=null,n.markers.splice(r--,1))}},n=0;n<t.length;n++)e(n)}va.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var t=0;t<this.markers.length;++t)this.markers[t].clear();Ln(this,"clear")}},va.prototype.find=function(t,e){return this.primary.find(t,e)},xt(va);var Sa=0,Pa=function(t,e,n,i,r){if(!(this instanceof Pa))return new Pa(t,e,n,i,r);null==n&&(n=0),ca.call(this,[new ua([new un("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var o=oe(n,0);this.sel=so(o),this.history=new So(null),this.id=++Sa,this.modeOption=e,this.lineSep=i,this.direction="rtl"==r?"rtl":"ltr",this.extend=!1,"string"==typeof t&&(t=this.splitLines(t)),vo(this,{from:o,to:o,text:t}),Ho(this,so(o),_)};Pa.prototype=$(ca.prototype,{constructor:Pa,iter:function(t,e,n){n?this.iterN(t-this.first,e-t,n):this.iterN(this.first,this.first+this.size,t)},insert:function(t,e){for(var n=0,i=0;i<e.length;++i)n+=e[i].height;this.insertInner(t-this.first,e,n)},remove:function(t,e){this.removeInner(t-this.first,e)},getValue:function(t){var e=$t(this,this.first,this.first+this.size);return!1===t?e:e.join(t||this.lineSeparator())},setValue:Br((function(t){var e=oe(this.first,0),n=this.first+this.size-1;Jo(this,{from:e,to:oe(n,Qt(this,n).text.length),text:this.splitLines(t),origin:"setValue",full:!0},!0),this.cm&&lr(this.cm,0,0),Ho(this,so(e),_)})),replaceRange:function(t,e,n,i){ra(this,t,e=de(this,e),n=n?de(this,n):e,i)},getRange:function(t,e,n){var i=Jt(this,de(this,t),de(this,e));return!1===n?i:i.join(n||this.lineSeparator())},getLine:function(t){var e=this.getLineHandle(t);return e&&e.text},getLineHandle:function(t){if(ie(this,t))return Qt(this,t)},getLineNumber:function(t){return ee(t)},getLineHandleVisualStart:function(t){return"number"==typeof t&&(t=Qt(this,t)),Je(t)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(t){return de(this,t)},getCursor:function(t){var e=this.sel.primary();return null==t||"head"==t?e.head:"anchor"==t?e.anchor:"end"==t||"to"==t||!1===t?e.to():e.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Br((function(t,e,n){zo(this,de(this,"number"==typeof t?oe(t,e||0):t),null,n)})),setSelection:Br((function(t,e,n){zo(this,de(this,t),de(this,e||t),n)})),extendSelection:Br((function(t,e,n){Do(this,de(this,t),e&&de(this,e),n)})),extendSelections:Br((function(t,e){Ro(this,pe(this,t),e)})),extendSelectionsBy:Br((function(t,e){Ro(this,pe(this,K(this.sel.ranges,t)),e)})),setSelections:Br((function(t,e,n){if(t.length){for(var i=[],r=0;r<t.length;r++)i[r]=new oo(de(this,t[r].anchor),de(this,t[r].head));null==e&&(e=Math.min(t.length-1,this.sel.primIndex)),Ho(this,ao(this.cm,i,e),n)}})),addSelection:Br((function(t,e,n){var i=this.sel.ranges.slice(0);i.push(new oo(de(this,t),de(this,e||t))),Ho(this,ao(this.cm,i,i.length-1),n)})),getSelection:function(t){for(var e,n=this.sel.ranges,i=0;i<n.length;i++){var r=Jt(this,n[i].from(),n[i].to());e=e?e.concat(r):r}return!1===t?e:e.join(t||this.lineSeparator())},getSelections:function(t){for(var e=[],n=this.sel.ranges,i=0;i<n.length;i++){var r=Jt(this,n[i].from(),n[i].to());!1!==t&&(r=r.join(t||this.lineSeparator())),e[i]=r}return e},replaceSelection:function(t,e,n){for(var i=[],r=0;r<this.sel.ranges.length;r++)i[r]=t;this.replaceSelections(i,e,n||"+input")},replaceSelections:Br((function(t,e,n){for(var i=[],r=this.sel,o=0;o<r.ranges.length;o++){var a=r.ranges[o];i[o]={from:a.from(),to:a.to(),text:this.splitLines(t[o]),origin:n}}for(var s=e&&"end"!=e&&fo(this,i,e),l=i.length-1;l>=0;l--)Jo(this,i[l]);s?Uo(this,s):this.cm&&sr(this.cm)})),undo:Br((function(){ta(this,"undo")})),redo:Br((function(){ta(this,"redo")})),undoSelection:Br((function(){ta(this,"undo",!0)})),redoSelection:Br((function(){ta(this,"redo",!0)})),setExtending:function(t){this.extend=t},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,e=0,n=0,i=0;i<t.done.length;i++)t.done[i].ranges||++e;for(var r=0;r<t.undone.length;r++)t.undone[r].ranges||++n;return{undo:e,redo:n}},clearHistory:function(){var t=this;this.history=new So(this.history.maxGeneration),yo(this,(function(e){return e.history=t.history}),!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(t){return t&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(t){return this.history.generation==(t||this.cleanGeneration)},getHistory:function(){return{done:Bo(this.history.done),undone:Bo(this.history.undone)}},setHistory:function(t){var e=this.history=new So(this.history.maxGeneration);e.done=Bo(t.done.slice(0),null,!0),e.undone=Bo(t.undone.slice(0),null,!0)},setGutterMarker:Br((function(t,e,n){return la(this,t,"gutter",(function(t){var i=t.gutterMarkers||(t.gutterMarkers={});return i[e]=n,!n&&it(i)&&(t.gutterMarkers=null),!0}))})),clearGutter:Br((function(t){var e=this;this.iter((function(n){n.gutterMarkers&&n.gutterMarkers[t]&&la(e,n,"gutter",(function(){return n.gutterMarkers[t]=null,it(n.gutterMarkers)&&(n.gutterMarkers=null),!0}))}))})),lineInfo:function(t){var e;if("number"==typeof t){if(!ie(this,t))return null;if(e=t,!(t=Qt(this,t)))return null}else if(null==(e=ee(t)))return null;return{line:e,handle:t,text:t.text,gutterMarkers:t.gutterMarkers,textClass:t.textClass,bgClass:t.bgClass,wrapClass:t.wrapClass,widgets:t.widgets}},addLineClass:Br((function(t,e,n){return la(this,t,"gutter"==e?"gutter":"class",(function(t){var i="text"==e?"textClass":"background"==e?"bgClass":"gutter"==e?"gutterClass":"wrapClass";if(t[i]){if(k(n).test(t[i]))return!1;t[i]+=" "+n}else t[i]=n;return!0}))})),removeLineClass:Br((function(t,e,n){return la(this,t,"gutter"==e?"gutter":"class",(function(t){var i="text"==e?"textClass":"background"==e?"bgClass":"gutter"==e?"gutterClass":"wrapClass",r=t[i];if(!r)return!1;if(null==n)t[i]=null;else{var o=r.match(k(n));if(!o)return!1;var a=o.index+o[0].length;t[i]=r.slice(0,o.index)+(o.index&&a!=r.length?" ":"")+r.slice(a)||null}return!0}))})),addLineWidget:Br((function(t,e,n){return fa(this,t,e,n)})),removeLineWidget:function(t){t.clear()},markText:function(t,e,n){return ma(this,de(this,t),de(this,e),n,n&&n.type||"range")},setBookmark:function(t,e){var n={replacedWith:e&&(null==e.nodeType?e.widget:e),insertLeft:e&&e.insertLeft,clearWhenEmpty:!1,shared:e&&e.shared,handleMouseEvents:e&&e.handleMouseEvents};return ma(this,t=de(this,t),t,n,"bookmark")},findMarksAt:function(t){var e=[],n=Qt(this,(t=de(this,t)).line).markedSpans;if(n)for(var i=0;i<n.length;++i){var r=n[i];(null==r.from||r.from<=t.ch)&&(null==r.to||r.to>=t.ch)&&e.push(r.marker.parent||r.marker)}return e},findMarks:function(t,e,n){t=de(this,t),e=de(this,e);var i=[],r=t.line;return this.iter(t.line,e.line+1,(function(o){var a=o.markedSpans;if(a)for(var s=0;s<a.length;s++){var l=a[s];null!=l.to&&r==t.line&&t.ch>=l.to||null==l.from&&r!=t.line||null!=l.from&&r==e.line&&l.from>=e.ch||n&&!n(l.marker)||i.push(l.marker.parent||l.marker)}++r})),i},getAllMarks:function(){var t=[];return this.iter((function(e){var n=e.markedSpans;if(n)for(var i=0;i<n.length;++i)null!=n[i].from&&t.push(n[i].marker)})),t},posFromIndex:function(t){var e,n=this.first,i=this.lineSeparator().length;return this.iter((function(r){var o=r.text.length+i;if(o>t)return e=t,!0;t-=o,++n})),de(this,oe(n,e))},indexFromPos:function(t){var e=(t=de(this,t)).ch;if(t.line<this.first||t.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,t.line,(function(t){e+=t.text.length+n})),e},copy:function(t){var e=new Pa($t(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return e.scrollTop=this.scrollTop,e.scrollLeft=this.scrollLeft,e.sel=this.sel,e.extend=!1,t&&(e.history.undoDepth=this.history.undoDepth,e.setHistory(this.getHistory())),e},linkedDoc:function(t){t||(t={});var e=this.first,n=this.first+this.size;null!=t.from&&t.from>e&&(e=t.from),null!=t.to&&t.to<n&&(n=t.to);var i=new Pa($t(this,e,n),t.mode||this.modeOption,e,this.lineSep,this.direction);return t.sharedHist&&(i.history=this.history),(this.linked||(this.linked=[])).push({doc:i,sharedHist:t.sharedHist}),i.linked=[{doc:this,isParent:!0,sharedHist:t.sharedHist}],ba(i,wa(this)),i},unlinkDoc:function(t){if(t instanceof Rs&&(t=t.doc),this.linked)for(var e=0;e<this.linked.length;++e)if(this.linked[e].doc==t){this.linked.splice(e,1),t.unlinkDoc(this),xa(wa(this));break}if(t.history==this.history){var n=[t.id];yo(t,(function(t){return n.push(t.id)}),!0),t.history=new So(null),t.history.done=Bo(this.history.done,n),t.history.undone=Bo(this.history.undone,n)}},iterLinkedDocs:function(t){yo(this,t)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(t){return this.lineSep?t.split(this.lineSep):Bt(t)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:Br((function(t){"rtl"!=t&&(t="ltr"),t!=this.direction&&(this.direction=t,this.iter((function(t){return t.order=null})),this.cm&&xo(this.cm))}))}),Pa.prototype.eachLine=Pa.prototype.iter;var ka=0;function Ca(t){var e=this;if(Ea(e),!yt(e,t)&&!Zn(e.display,t)){St(t),a&&(ka=+new Date);var n=Oi(e,t,!0),i=t.dataTransfer.files;if(n&&!e.isReadOnly())if(i&&i.length&&window.FileReader&&window.File)for(var r=i.length,o=Array(r),s=0,l=function(){++s==r&&jr(e,(function(){var t={from:n=de(e.doc,n),to:n,text:e.doc.splitLines(o.filter((function(t){return null!=t})).join(e.doc.lineSeparator())),origin:"paste"};Jo(e.doc,t),Uo(e.doc,so(de(e.doc,n),de(e.doc,lo(t))))}))()},u=function(t,n){if(e.options.allowDropFileTypes&&-1==G(e.options.allowDropFileTypes,t.type))l();else{var i=new FileReader;i.onerror=function(){return l()},i.onload=function(){var t=i.result;/[\x00-\x08\x0e-\x1f]{2}/.test(t)||(o[n]=t),l()},i.readAsText(t)}},c=0;c<i.length;c++)u(i[c],c);else{if(e.state.draggingText&&e.doc.sel.contains(n)>-1)return e.state.draggingText(t),void setTimeout((function(){return e.display.input.focus()}),20);try{var h=t.dataTransfer.getData("Text");if(h){var d;if(e.state.draggingText&&!e.state.draggingText.copy&&(d=e.listSelections()),_o(e.doc,so(n,n)),d)for(var f=0;f<d.length;++f)ra(e.doc,"",d[f].anchor,d[f].head,"drag");e.replaceSelection(h,"around","paste"),e.display.input.focus()}}catch(t){}}}}function Aa(t,e){if(a&&(!t.state.draggingText||+new Date-ka<100))Ct(e);else if(!yt(t,e)&&!Zn(t.display,e)&&(e.dataTransfer.setData("Text",t.getSelection()),e.dataTransfer.effectAllowed="copyMove",e.dataTransfer.setDragImage&&!d)){var n=L("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",h&&(n.width=n.height=1,t.display.wrapper.appendChild(n),n._top=n.offsetTop),e.dataTransfer.setDragImage(n,0,0),h&&n.parentNode.removeChild(n)}}function Ma(t,e){var n=Oi(t,e);if(n){var i=document.createDocumentFragment();Wi(t,n,i),t.display.dragCursor||(t.display.dragCursor=L("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),t.display.lineSpace.insertBefore(t.display.dragCursor,t.display.cursorDiv)),E(t.display.dragCursor,i)}}function Ea(t){t.display.dragCursor&&(t.display.lineSpace.removeChild(t.display.dragCursor),t.display.dragCursor=null)}function La(t){if(document.getElementsByClassName){for(var e=document.getElementsByClassName("CodeMirror"),n=[],i=0;i<e.length;i++){var r=e[i].CodeMirror;r&&n.push(r)}n.length&&n[0].operation((function(){for(var e=0;e<n.length;e++)t(n[e])}))}}var Ta=!1;function Na(){Ta||(ja(),Ta=!0)}function ja(){var t;pt(window,"resize",(function(){null==t&&(t=setTimeout((function(){t=null,La(Ia)}),100))})),pt(window,"blur",(function(){return La(Ji)}))}function Ia(t){var e=t.display;e.cachedCharWidth=e.cachedTextHeight=e.cachedPaddingH=null,e.scrollbarsClipped=!1,t.setSize()}for(var Ba={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Oa=0;Oa<10;Oa++)Ba[Oa+48]=Ba[Oa+96]=String(Oa);for(var Da=65;Da<=90;Da++)Ba[Da]=String.fromCharCode(Da);for(var Ra=1;Ra<=12;Ra++)Ba[Ra+111]=Ba[Ra+63235]="F"+Ra;var Fa={};function za(t){var e,n,i,r,o=t.split(/-(?!$)/);t=o[o.length-1];for(var a=0;a<o.length-1;a++){var s=o[a];if(/^(cmd|meta|m)$/i.test(s))r=!0;else if(/^a(lt)?$/i.test(s))e=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else{if(!/^s(hift)?$/i.test(s))throw new Error("Unrecognized modifier name: "+s);i=!0}}return e&&(t="Alt-"+t),n&&(t="Ctrl-"+t),r&&(t="Cmd-"+t),i&&(t="Shift-"+t),t}function Ga(t){var e={};for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==i){delete t[n];continue}for(var r=K(n.split(" "),za),o=0;o<r.length;o++){var a=void 0,s=void 0;o==r.length-1?(s=r.join(" "),a=i):(s=r.slice(0,o+1).join(" "),a="...");var l=e[s];if(l){if(l!=a)throw new Error("Inconsistent bindings for "+s)}else e[s]=a}delete t[n]}for(var u in e)t[u]=e[u];return t}function Ua(t,e,n,i){var r=(e=Wa(e)).call?e.call(t,i):e[t];if(!1===r)return"nothing";if("..."===r)return"multi";if(null!=r&&n(r))return"handled";if(e.fallthrough){if("[object Array]"!=Object.prototype.toString.call(e.fallthrough))return Ua(t,e.fallthrough,n,i);for(var o=0;o<e.fallthrough.length;o++){var a=Ua(t,e.fallthrough[o],n,i);if(a)return a}}}function Ha(t){var e="string"==typeof t?t:Ba[t.keyCode];return"Ctrl"==e||"Alt"==e||"Shift"==e||"Mod"==e}function _a(t,e,n){var i=t;return e.altKey&&"Alt"!=i&&(t="Alt-"+t),(S?e.metaKey:e.ctrlKey)&&"Ctrl"!=i&&(t="Ctrl-"+t),(S?e.ctrlKey:e.metaKey)&&"Mod"!=i&&(t="Cmd-"+t),!n&&e.shiftKey&&"Shift"!=i&&(t="Shift-"+t),t}function Za(t,e){if(h&&34==t.keyCode&&t.char)return!1;var n=Ba[t.keyCode];return null!=n&&!t.altGraphKey&&(3==t.keyCode&&t.code&&(n=t.code),_a(n,t,e))}function Wa(t){return"string"==typeof t?Fa[t]:t}function Va(t,e){for(var n=t.doc.sel.ranges,i=[],r=0;r<n.length;r++){for(var o=e(n[r]);i.length&&ae(o.from,q(i).to)<=0;){var a=i.pop();if(ae(a.from,o.from)<0){o.from=a.from;break}}i.push(o)}Nr(t,(function(){for(var e=i.length-1;e>=0;e--)ra(t.doc,"",i[e].from,i[e].to,"+delete");sr(t)}))}function Ya(t,e,n){var i=at(t.text,e+n,n);return i<0||i>t.text.length?null:i}function Xa(t,e,n){var i=Ya(t,e.ch,n);return null==i?null:new oe(e.line,i,n<0?"after":"before")}function qa(t,e,n,i,r){if(t){"rtl"==e.doc.direction&&(r=-r);var o=dt(n,e.doc.direction);if(o){var a,s=r<0?q(o):o[0],l=r<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==e.doc.direction){var u=ni(e,n);a=r<0?n.text.length-1:0;var c=ii(e,u,a).top;a=st((function(t){return ii(e,u,t).top==c}),r<0==(1==s.level)?s.from:s.to-1,a),"before"==l&&(a=Ya(n,a,1))}else a=r<0?s.to:s.from;return new oe(i,a,l)}}return new oe(i,r<0?n.text.length:0,r<0?"before":"after")}function Ka(t,e,n,i){var r=dt(e,t.doc.direction);if(!r)return Xa(e,n,i);n.ch>=e.text.length?(n.ch=e.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=ct(r,n.ch,n.sticky),a=r[o];if("ltr"==t.doc.direction&&a.level%2==0&&(i>0?a.to>n.ch:a.from<n.ch))return Xa(e,n,i);var s,l=function(t,n){return Ya(e,t instanceof oe?t.ch:t,n)},u=function(n){return t.options.lineWrapping?(s=s||ni(t,e),ki(t,e,s,n)):{begin:0,end:e.text.length}},c=u("before"==n.sticky?l(n,-1):n.ch);if("rtl"==t.doc.direction||1==a.level){var h=1==a.level==i<0,d=l(n,h?1:-1);if(null!=d&&(h?d<=a.to&&d<=c.end:d>=a.from&&d>=c.begin)){var f=h?"before":"after";return new oe(n.line,d,f)}}var p=function(t,e,i){for(var o=function(t,e){return e?new oe(n.line,l(t,1),"before"):new oe(n.line,t,"after")};t>=0&&t<r.length;t+=e){var a=r[t],s=e>0==(1!=a.level),u=s?i.begin:l(i.end,-1);if(a.from<=u&&u<a.to)return o(u,s);if(u=s?a.from:l(a.to,-1),i.begin<=u&&u<i.end)return o(u,s)}},g=p(o+i,i,c);if(g)return g;var m=i>0?c.end:l(c.begin,-1);return null==m||i>0&&m==e.text.length||!(g=p(i>0?0:r.length-1,i,u(m)))?null:g}Fa.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Fa.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Fa.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Fa.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Fa.default=y?Fa.macDefault:Fa.pcDefault;var Qa={selectAll:Ko,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),_)},killLine:function(t){return Va(t,(function(e){if(e.empty()){var n=Qt(t.doc,e.head.line).text.length;return e.head.ch==n&&e.head.line<t.lastLine()?{from:e.head,to:oe(e.head.line+1,0)}:{from:e.head,to:oe(e.head.line,n)}}return{from:e.from(),to:e.to()}}))},deleteLine:function(t){return Va(t,(function(e){return{from:oe(e.from().line,0),to:de(t.doc,oe(e.to().line+1,0))}}))},delLineLeft:function(t){return Va(t,(function(t){return{from:oe(t.from().line,0),to:t.from()}}))},delWrappedLineLeft:function(t){return Va(t,(function(e){var n=t.charCoords(e.head,"div").top+5;return{from:t.coordsChar({left:0,top:n},"div"),to:e.from()}}))},delWrappedLineRight:function(t){return Va(t,(function(e){var n=t.charCoords(e.head,"div").top+5,i=t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:n},"div");return{from:e.from(),to:i}}))},undo:function(t){return t.undo()},redo:function(t){return t.redo()},undoSelection:function(t){return t.undoSelection()},redoSelection:function(t){return t.redoSelection()},goDocStart:function(t){return t.extendSelection(oe(t.firstLine(),0))},goDocEnd:function(t){return t.extendSelection(oe(t.lastLine()))},goLineStart:function(t){return t.extendSelectionsBy((function(e){return Ja(t,e.head.line)}),{origin:"+move",bias:1})},goLineStartSmart:function(t){return t.extendSelectionsBy((function(e){return ts(t,e.head)}),{origin:"+move",bias:1})},goLineEnd:function(t){return t.extendSelectionsBy((function(e){return $a(t,e.head.line)}),{origin:"+move",bias:-1})},goLineRight:function(t){return t.extendSelectionsBy((function(e){var n=t.cursorCoords(e.head,"div").top+5;return t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:n},"div")}),W)},goLineLeft:function(t){return t.extendSelectionsBy((function(e){var n=t.cursorCoords(e.head,"div").top+5;return t.coordsChar({left:0,top:n},"div")}),W)},goLineLeftSmart:function(t){return t.extendSelectionsBy((function(e){var n=t.cursorCoords(e.head,"div").top+5,i=t.coordsChar({left:0,top:n},"div");return i.ch<t.getLine(i.line).search(/\S/)?ts(t,e.head):i}),W)},goLineUp:function(t){return t.moveV(-1,"line")},goLineDown:function(t){return t.moveV(1,"line")},goPageUp:function(t){return t.moveV(-1,"page")},goPageDown:function(t){return t.moveV(1,"page")},goCharLeft:function(t){return t.moveH(-1,"char")},goCharRight:function(t){return t.moveH(1,"char")},goColumnLeft:function(t){return t.moveH(-1,"column")},goColumnRight:function(t){return t.moveH(1,"column")},goWordLeft:function(t){return t.moveH(-1,"word")},goGroupRight:function(t){return t.moveH(1,"group")},goGroupLeft:function(t){return t.moveH(-1,"group")},goWordRight:function(t){return t.moveH(1,"word")},delCharBefore:function(t){return t.deleteH(-1,"codepoint")},delCharAfter:function(t){return t.deleteH(1,"char")},delWordBefore:function(t){return t.deleteH(-1,"word")},delWordAfter:function(t){return t.deleteH(1,"word")},delGroupBefore:function(t){return t.deleteH(-1,"group")},delGroupAfter:function(t){return t.deleteH(1,"group")},indentAuto:function(t){return t.indentSelection("smart")},indentMore:function(t){return t.indentSelection("add")},indentLess:function(t){return t.indentSelection("subtract")},insertTab:function(t){return t.replaceSelection("\t")},insertSoftTab:function(t){for(var e=[],n=t.listSelections(),i=t.options.tabSize,r=0;r<n.length;r++){var o=n[r].from(),a=F(t.getLine(o.line),o.ch,i);e.push(X(i-a%i))}t.replaceSelections(e)},defaultTab:function(t){t.somethingSelected()?t.indentSelection("add"):t.execCommand("insertTab")},transposeChars:function(t){return Nr(t,(function(){for(var e=t.listSelections(),n=[],i=0;i<e.length;i++)if(e[i].empty()){var r=e[i].head,o=Qt(t.doc,r.line).text;if(o)if(r.ch==o.length&&(r=new oe(r.line,r.ch-1)),r.ch>0)r=new oe(r.line,r.ch+1),t.replaceRange(o.charAt(r.ch-1)+o.charAt(r.ch-2),oe(r.line,r.ch-2),r,"+transpose");else if(r.line>t.doc.first){var a=Qt(t.doc,r.line-1).text;a&&(r=new oe(r.line,1),t.replaceRange(o.charAt(0)+t.doc.lineSeparator()+a.charAt(a.length-1),oe(r.line-1,a.length-1),r,"+transpose"))}n.push(new oo(r,r))}t.setSelections(n)}))},newlineAndIndent:function(t){return Nr(t,(function(){for(var e=t.listSelections(),n=e.length-1;n>=0;n--)t.replaceRange(t.doc.lineSeparator(),e[n].anchor,e[n].head,"+input");e=t.listSelections();for(var i=0;i<e.length;i++)t.indentLine(e[i].from().line,null,!0);sr(t)}))},openLine:function(t){return t.replaceSelection("\n","start")},toggleOverwrite:function(t){return t.toggleOverwrite()}};function Ja(t,e){var n=Qt(t.doc,e),i=Je(n);return i!=n&&(e=ee(i)),qa(!0,t,i,e,1)}function $a(t,e){var n=Qt(t.doc,e),i=$e(n);return i!=n&&(e=ee(i)),qa(!0,t,n,e,-1)}function ts(t,e){var n=Ja(t,e.line),i=Qt(t.doc,n.line),r=dt(i,t.doc.direction);if(!r||0==r[0].level){var o=Math.max(n.ch,i.text.search(/\S/)),a=e.line==n.line&&e.ch<=o&&e.ch;return oe(n.line,a?0:o,n.sticky)}return n}function es(t,e,n){if("string"==typeof e&&!(e=Qa[e]))return!1;t.display.input.ensurePolled();var i=t.display.shift,r=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),n&&(t.display.shift=!1),r=e(t)!=H}finally{t.display.shift=i,t.state.suppressEdits=!1}return r}function ns(t,e,n){for(var i=0;i<t.state.keyMaps.length;i++){var r=Ua(e,t.state.keyMaps[i],n,t);if(r)return r}return t.options.extraKeys&&Ua(e,t.options.extraKeys,n,t)||Ua(e,t.options.keyMap,n,t)}var is=new z;function rs(t,e,n,i){var r=t.state.keySeq;if(r){if(Ha(e))return"handled";if(/\'$/.test(e)?t.state.keySeq=null:is.set(50,(function(){t.state.keySeq==r&&(t.state.keySeq=null,t.display.input.reset())})),os(t,r+" "+e,n,i))return!0}return os(t,e,n,i)}function os(t,e,n,i){var r=ns(t,e,i);return"multi"==r&&(t.state.keySeq=e),"handled"==r&&Ln(t,"keyHandled",t,e,n),"handled"!=r&&"multi"!=r||(St(n),Xi(t)),!!r}function as(t,e){var n=Za(e,!0);return!!n&&(e.shiftKey&&!t.state.keySeq?rs(t,"Shift-"+n,e,(function(e){return es(t,e,!0)}))||rs(t,n,e,(function(e){if("string"==typeof e?/^go[A-Z]/.test(e):e.motion)return es(t,e)})):rs(t,n,e,(function(e){return es(t,e)})))}function ss(t,e,n){return rs(t,"'"+n+"'",e,(function(e){return es(t,e,!0)}))}var ls=null;function us(t){var e=this;if(!(t.target&&t.target!=e.display.input.getField()||(e.curOp.focus=j(),yt(e,t)))){a&&s<11&&27==t.keyCode&&(t.returnValue=!1);var i=t.keyCode;e.display.shift=16==i||t.shiftKey;var r=as(e,t);h&&(ls=r?i:null,r||88!=i||Dt||!(y?t.metaKey:t.ctrlKey)||e.replaceSelection("",null,"cut")),n&&!y&&!r&&46==i&&t.shiftKey&&!t.ctrlKey&&document.execCommand&&document.execCommand("cut"),18!=i||/\bCodeMirror-crosshair\b/.test(e.display.lineDiv.className)||cs(e)}}function cs(t){var e=t.display.lineDiv;function n(t){18!=t.keyCode&&t.altKey||(A(e,"CodeMirror-crosshair"),mt(document,"keyup",n),mt(document,"mouseover",n))}I(e,"CodeMirror-crosshair"),pt(document,"keyup",n),pt(document,"mouseover",n)}function hs(t){16==t.keyCode&&(this.doc.sel.shift=!1),yt(this,t)}function ds(t){var e=this;if(!(t.target&&t.target!=e.display.input.getField()||Zn(e.display,t)||yt(e,t)||t.ctrlKey&&!t.altKey||y&&t.metaKey)){var n=t.keyCode,i=t.charCode;if(h&&n==ls)return ls=null,void St(t);if(!h||t.which&&!(t.which<10)||!as(e,t)){var r=String.fromCharCode(null==i?n:i);"\b"!=r&&(ss(e,t,r)||e.display.input.onKeyPress(t))}}}var fs,ps,gs=400,ms=function(t,e,n){this.time=t,this.pos=e,this.button=n};function vs(t,e){var n=+new Date;return ps&&ps.compare(n,t,e)?(fs=ps=null,"triple"):fs&&fs.compare(n,t,e)?(ps=new ms(n,t,e),fs=null,"double"):(fs=new ms(n,t,e),ps=null,"single")}function ys(t){var e=this,n=e.display;if(!(yt(e,t)||n.activeTouch&&n.input.supportsTouch()))if(n.input.ensurePolled(),n.shift=t.shiftKey,Zn(n,t))l||(n.scroller.draggable=!1,setTimeout((function(){return n.scroller.draggable=!0}),100));else if(!Ms(e,t)){var i=Oi(e,t),r=Mt(t),o=i?vs(i,r):"single";window.focus(),1==r&&e.state.selectingText&&e.state.selectingText(t),i&&ws(e,r,i,o,t)||(1==r?i?xs(e,i,o,t):At(t)==n.scroller&&St(t):2==r?(i&&Do(e.doc,i),setTimeout((function(){return n.input.focus()}),20)):3==r&&(P?e.display.input.onContextMenu(t):Ki(e)))}}function ws(t,e,n,i,r){var o="Click";return"double"==i?o="Double"+o:"triple"==i&&(o="Triple"+o),rs(t,_a(o=(1==e?"Left":2==e?"Middle":"Right")+o,r),r,(function(e){if("string"==typeof e&&(e=Qa[e]),!e)return!1;var i=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),i=e(t,n)!=H}finally{t.state.suppressEdits=!1}return i}))}function bs(t,e,n){var i=t.getOption("configureMouse"),r=i?i(t,e,n):{};if(null==r.unit){var o=w?n.shiftKey&&n.metaKey:n.altKey;r.unit=o?"rectangle":"single"==e?"char":"double"==e?"word":"line"}return(null==r.extend||t.doc.extend)&&(r.extend=t.doc.extend||n.shiftKey),null==r.addNew&&(r.addNew=y?n.metaKey:n.ctrlKey),null==r.moveOnDrag&&(r.moveOnDrag=!(y?n.altKey:n.ctrlKey)),r}function xs(t,e,n,i){a?setTimeout(D(qi,t),0):t.curOp.focus=j();var r,o=bs(t,n,i),s=t.doc.sel;t.options.dragDrop&&Tt&&!t.isReadOnly()&&"single"==n&&(r=s.contains(e))>-1&&(ae((r=s.ranges[r]).from(),e)<0||e.xRel>0)&&(ae(r.to(),e)>0||e.xRel<0)?Ss(t,i,e,o):ks(t,i,e,o)}function Ss(t,e,n,i){var r=t.display,o=!1,u=jr(t,(function(e){l&&(r.scroller.draggable=!1),t.state.draggingText=!1,mt(r.wrapper.ownerDocument,"mouseup",u),mt(r.wrapper.ownerDocument,"mousemove",c),mt(r.scroller,"dragstart",h),mt(r.scroller,"drop",u),o||(St(e),i.addNew||Do(t.doc,n,null,null,i.extend),l&&!d||a&&9==s?setTimeout((function(){r.wrapper.ownerDocument.body.focus({preventScroll:!0}),r.input.focus()}),20):r.input.focus())})),c=function(t){o=o||Math.abs(e.clientX-t.clientX)+Math.abs(e.clientY-t.clientY)>=10},h=function(){return o=!0};l&&(r.scroller.draggable=!0),t.state.draggingText=u,u.copy=!i.moveOnDrag,r.scroller.dragDrop&&r.scroller.dragDrop(),pt(r.wrapper.ownerDocument,"mouseup",u),pt(r.wrapper.ownerDocument,"mousemove",c),pt(r.scroller,"dragstart",h),pt(r.scroller,"drop",u),Ki(t),setTimeout((function(){return r.input.focus()}),20)}function Ps(t,e,n){if("char"==n)return new oo(e,e);if("word"==n)return t.findWordAt(e);if("line"==n)return new oo(oe(e.line,0),de(t.doc,oe(e.line+1,0)));var i=n(t,e);return new oo(i.from,i.to)}function ks(t,e,n,i){var r=t.display,o=t.doc;St(e);var a,s,l=o.sel,u=l.ranges;if(i.addNew&&!i.extend?(s=o.sel.contains(n),a=s>-1?u[s]:new oo(n,n)):(a=o.sel.primary(),s=o.sel.primIndex),"rectangle"==i.unit)i.addNew||(a=new oo(n,n)),n=Oi(t,e,!0,!0),s=-1;else{var c=Ps(t,n,i.unit);a=i.extend?Oo(a,c.anchor,c.head,i.extend):c}i.addNew?-1==s?(s=u.length,Ho(o,ao(t,u.concat([a]),s),{scroll:!1,origin:"*mouse"})):u.length>1&&u[s].empty()&&"char"==i.unit&&!i.extend?(Ho(o,ao(t,u.slice(0,s).concat(u.slice(s+1)),0),{scroll:!1,origin:"*mouse"}),l=o.sel):Fo(o,s,a,Z):(s=0,Ho(o,new ro([a],0),Z),l=o.sel);var h=n;function d(e){if(0!=ae(h,e))if(h=e,"rectangle"==i.unit){for(var r=[],u=t.options.tabSize,c=F(Qt(o,n.line).text,n.ch,u),d=F(Qt(o,e.line).text,e.ch,u),f=Math.min(c,d),p=Math.max(c,d),g=Math.min(n.line,e.line),m=Math.min(t.lastLine(),Math.max(n.line,e.line));g<=m;g++){var v=Qt(o,g).text,y=V(v,f,u);f==p?r.push(new oo(oe(g,y),oe(g,y))):v.length>y&&r.push(new oo(oe(g,y),oe(g,V(v,p,u))))}r.length||r.push(new oo(n,n)),Ho(o,ao(t,l.ranges.slice(0,s).concat(r),s),{origin:"*mouse",scroll:!1}),t.scrollIntoView(e)}else{var w,b=a,x=Ps(t,e,i.unit),S=b.anchor;ae(x.anchor,S)>0?(w=x.head,S=ce(b.from(),x.anchor)):(w=x.anchor,S=ue(b.to(),x.head));var P=l.ranges.slice(0);P[s]=Cs(t,new oo(de(o,S),w)),Ho(o,ao(t,P,s),Z)}}var f=r.wrapper.getBoundingClientRect(),p=0;function g(e){var n=++p,a=Oi(t,e,!0,"rectangle"==i.unit);if(a)if(0!=ae(a,h)){t.curOp.focus=j(),d(a);var s=er(r,o);(a.line>=s.to||a.line<s.from)&&setTimeout(jr(t,(function(){p==n&&g(e)})),150)}else{var l=e.clientY<f.top?-20:e.clientY>f.bottom?20:0;l&&setTimeout(jr(t,(function(){p==n&&(r.scroller.scrollTop+=l,g(e))})),50)}}function m(e){t.state.selectingText=!1,p=1/0,e&&(St(e),r.input.focus()),mt(r.wrapper.ownerDocument,"mousemove",v),mt(r.wrapper.ownerDocument,"mouseup",y),o.history.lastSelOrigin=null}var v=jr(t,(function(t){0!==t.buttons&&Mt(t)?g(t):m(t)})),y=jr(t,m);t.state.selectingText=y,pt(r.wrapper.ownerDocument,"mousemove",v),pt(r.wrapper.ownerDocument,"mouseup",y)}function Cs(t,e){var n=e.anchor,i=e.head,r=Qt(t.doc,n.line);if(0==ae(n,i)&&n.sticky==i.sticky)return e;var o=dt(r);if(!o)return e;var a=ct(o,n.ch,n.sticky),s=o[a];if(s.from!=n.ch&&s.to!=n.ch)return e;var l,u=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==u||u==o.length)return e;if(i.line!=n.line)l=(i.line-n.line)*("ltr"==t.doc.direction?1:-1)>0;else{var c=ct(o,i.ch,i.sticky),h=c-a||(i.ch-n.ch)*(1==s.level?-1:1);l=c==u-1||c==u?h<0:h>0}var d=o[u+(l?-1:0)],f=l==(1==d.level),p=f?d.from:d.to,g=f?"after":"before";return n.ch==p&&n.sticky==g?e:new oo(new oe(n.line,p,g),i)}function As(t,e,n,i){var r,o;if(e.touches)r=e.touches[0].clientX,o=e.touches[0].clientY;else try{r=e.clientX,o=e.clientY}catch(t){return!1}if(r>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;i&&St(e);var a=t.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!bt(t,n))return kt(e);o-=s.top-a.viewOffset;for(var l=0;l<t.display.gutterSpecs.length;++l){var u=a.gutters.childNodes[l];if(u&&u.getBoundingClientRect().right>=r)return vt(t,n,t,ne(t.doc,o),t.display.gutterSpecs[l].className,e),kt(e)}}function Ms(t,e){return As(t,e,"gutterClick",!0)}function Es(t,e){Zn(t.display,e)||Ls(t,e)||yt(t,e,"contextmenu")||P||t.display.input.onContextMenu(e)}function Ls(t,e){return!!bt(t,"gutterContextMenu")&&As(t,e,"gutterContextMenu",!1)}function Ts(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),di(t)}ms.prototype.compare=function(t,e,n){return this.time+gs>t&&0==ae(e,this.pos)&&n==this.button};var Ns={toString:function(){return"CodeMirror.Init"}},js={},Is={};function Bs(t){var e=t.optionHandlers;function n(n,i,r,o){t.defaults[n]=i,r&&(e[n]=o?function(t,e,n){n!=Ns&&r(t,e,n)}:r)}t.defineOption=n,t.Init=Ns,n("value","",(function(t,e){return t.setValue(e)}),!0),n("mode",null,(function(t,e){t.doc.modeOption=e,po(t)}),!0),n("indentUnit",2,po,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(t){go(t),di(t),Ri(t)}),!0),n("lineSeparator",null,(function(t,e){if(t.doc.lineSep=e,e){var n=[],i=t.doc.first;t.doc.iter((function(t){for(var r=0;;){var o=t.text.indexOf(e,r);if(-1==o)break;r=o+e.length,n.push(oe(i,o))}i++}));for(var r=n.length-1;r>=0;r--)ra(t.doc,e,n[r],oe(n[r].line,n[r].ch+e.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,(function(t,e,n){t.state.specialChars=new RegExp(e.source+(e.test("\t")?"":"|\t"),"g"),n!=Ns&&t.refresh()})),n("specialCharPlaceholder",mn,(function(t){return t.refresh()}),!0),n("electricChars",!0),n("inputStyle",v?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(t,e){return t.getInputField().spellcheck=e}),!0),n("autocorrect",!1,(function(t,e){return t.getInputField().autocorrect=e}),!0),n("autocapitalize",!1,(function(t,e){return t.getInputField().autocapitalize=e}),!0),n("rtlMoveVisually",!b),n("wholeLineUpdateBefore",!0),n("theme","default",(function(t){Ts(t),Qr(t)}),!0),n("keyMap","default",(function(t,e,n){var i=Wa(e),r=n!=Ns&&Wa(n);r&&r.detach&&r.detach(t,i),i.attach&&i.attach(t,r||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Ds,!0),n("gutters",[],(function(t,e){t.display.gutterSpecs=qr(e,t.options.lineNumbers),Qr(t)}),!0),n("fixedGutter",!0,(function(t,e){t.display.gutters.style.left=e?ji(t.display)+"px":"0",t.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(t){return yr(t)}),!0),n("scrollbarStyle","native",(function(t){xr(t),yr(t),t.display.scrollbars.setScrollTop(t.doc.scrollTop),t.display.scrollbars.setScrollLeft(t.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(t,e){t.display.gutterSpecs=qr(t.options.gutters,e),Qr(t)}),!0),n("firstLineNumber",1,Qr,!0),n("lineNumberFormatter",(function(t){return t}),Qr,!0),n("showCursorWhenSelecting",!1,_i,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(t,e){"nocursor"==e&&(Ji(t),t.display.input.blur()),t.display.input.readOnlyChanged(e)})),n("screenReaderLabel",null,(function(t,e){e=""===e?null:e,t.display.input.screenReaderLabelChanged(e)})),n("disableInput",!1,(function(t,e){e||t.display.input.reset()}),!0),n("dragDrop",!0,Os),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,_i,!0),n("singleCursorHeightPerLine",!0,_i,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,go,!0),n("addModeClass",!1,go,!0),n("pollInterval",100),n("undoDepth",200,(function(t,e){return t.doc.history.undoDepth=e})),n("historyEventDelay",1250),n("viewportMargin",10,(function(t){return t.refresh()}),!0),n("maxHighlightLength",1e4,go,!0),n("moveInputWithCursor",!0,(function(t,e){e||t.display.input.resetPosition()})),n("tabindex",null,(function(t,e){return t.display.input.getField().tabIndex=e||""})),n("autofocus",null),n("direction","ltr",(function(t,e){return t.doc.setDirection(e)}),!0),n("phrases",null)}function Os(t,e,n){if(!e!=!(n&&n!=Ns)){var i=t.display.dragFunctions,r=e?pt:mt;r(t.display.scroller,"dragstart",i.start),r(t.display.scroller,"dragenter",i.enter),r(t.display.scroller,"dragover",i.over),r(t.display.scroller,"dragleave",i.leave),r(t.display.scroller,"drop",i.drop)}}function Ds(t){t.options.lineWrapping?(I(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(A(t.display.wrapper,"CodeMirror-wrap"),ln(t)),Bi(t),Ri(t),di(t),setTimeout((function(){return yr(t)}),100)}function Rs(t,e){var n=this;if(!(this instanceof Rs))return new Rs(t,e);this.options=e=e?R(e):{},R(js,e,!1);var i=e.value;"string"==typeof i?i=new Pa(i,e.mode,null,e.lineSeparator,e.direction):e.mode&&(i.modeOption=e.mode),this.doc=i;var r=new Rs.inputStyles[e.inputStyle](this),o=this.display=new Jr(t,i,r,e);for(var u in o.wrapper.CodeMirror=this,Ts(this),e.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),xr(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new z,keySeq:null,specialChars:null},e.autofocus&&!v&&o.input.focus(),a&&s<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),Fs(this),Na(),Pr(this),this.curOp.forceUpdate=!0,wo(this,i),e.autofocus&&!v||this.hasFocus()?setTimeout((function(){n.hasFocus()&&!n.state.focused&&Qi(n)}),20):Ji(this),Is)Is.hasOwnProperty(u)&&Is[u](this,e[u],Ns);Xr(this),e.finishInit&&e.finishInit(this);for(var c=0;c<zs.length;++c)zs[c](this);kr(this),l&&e.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}function Fs(t){var e=t.display;pt(e.scroller,"mousedown",jr(t,ys)),pt(e.scroller,"dblclick",a&&s<11?jr(t,(function(e){if(!yt(t,e)){var n=Oi(t,e);if(n&&!Ms(t,e)&&!Zn(t.display,e)){St(e);var i=t.findWordAt(n);Do(t.doc,i.anchor,i.head)}}})):function(e){return yt(t,e)||St(e)}),pt(e.scroller,"contextmenu",(function(e){return Es(t,e)})),pt(e.input.getField(),"contextmenu",(function(n){e.scroller.contains(n.target)||Es(t,n)}));var n,i={end:0};function r(){e.activeTouch&&(n=setTimeout((function(){return e.activeTouch=null}),1e3),(i=e.activeTouch).end=+new Date)}function o(t){if(1!=t.touches.length)return!1;var e=t.touches[0];return e.radiusX<=1&&e.radiusY<=1}function l(t,e){if(null==e.left)return!0;var n=e.left-t.left,i=e.top-t.top;return n*n+i*i>400}pt(e.scroller,"touchstart",(function(r){if(!yt(t,r)&&!o(r)&&!Ms(t,r)){e.input.ensurePolled(),clearTimeout(n);var a=+new Date;e.activeTouch={start:a,moved:!1,prev:a-i.end<=300?i:null},1==r.touches.length&&(e.activeTouch.left=r.touches[0].pageX,e.activeTouch.top=r.touches[0].pageY)}})),pt(e.scroller,"touchmove",(function(){e.activeTouch&&(e.activeTouch.moved=!0)})),pt(e.scroller,"touchend",(function(n){var i=e.activeTouch;if(i&&!Zn(e,n)&&null!=i.left&&!i.moved&&new Date-i.start<300){var o,a=t.coordsChar(e.activeTouch,"page");o=!i.prev||l(i,i.prev)?new oo(a,a):!i.prev.prev||l(i,i.prev.prev)?t.findWordAt(a):new oo(oe(a.line,0),de(t.doc,oe(a.line+1,0))),t.setSelection(o.anchor,o.head),t.focus(),St(n)}r()})),pt(e.scroller,"touchcancel",r),pt(e.scroller,"scroll",(function(){e.scroller.clientHeight&&(dr(t,e.scroller.scrollTop),pr(t,e.scroller.scrollLeft,!0),vt(t,"scroll",t))})),pt(e.scroller,"mousewheel",(function(e){return io(t,e)})),pt(e.scroller,"DOMMouseScroll",(function(e){return io(t,e)})),pt(e.wrapper,"scroll",(function(){return e.wrapper.scrollTop=e.wrapper.scrollLeft=0})),e.dragFunctions={enter:function(e){yt(t,e)||Ct(e)},over:function(e){yt(t,e)||(Ma(t,e),Ct(e))},start:function(e){return Aa(t,e)},drop:jr(t,Ca),leave:function(e){yt(t,e)||Ea(t)}};var u=e.input.getField();pt(u,"keyup",(function(e){return hs.call(t,e)})),pt(u,"keydown",jr(t,us)),pt(u,"keypress",jr(t,ds)),pt(u,"focus",(function(e){return Qi(t,e)})),pt(u,"blur",(function(e){return Ji(t,e)}))}Rs.defaults=js,Rs.optionHandlers=Is;var zs=[];function Gs(t,e,n,i){var r,o=t.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?r=we(t,e).state:n="prev");var a=t.options.tabSize,s=Qt(o,e),l=F(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var u,c=s.text.match(/^\s*/)[0];if(i||/\S/.test(s.text)){if("smart"==n&&((u=o.mode.indent(r,s.text.slice(c.length),s.text))==H||u>150)){if(!i)return;n="prev"}}else u=0,n="not";"prev"==n?u=e>o.first?F(Qt(o,e-1).text,null,a):0:"add"==n?u=l+t.options.indentUnit:"subtract"==n?u=l-t.options.indentUnit:"number"==typeof n&&(u=l+n),u=Math.max(0,u);var h="",d=0;if(t.options.indentWithTabs)for(var f=Math.floor(u/a);f;--f)d+=a,h+="\t";if(d<u&&(h+=X(u-d)),h!=c)return ra(o,h,oe(e,0),oe(e,c.length),"+input"),s.stateAfter=null,!0;for(var p=0;p<o.sel.ranges.length;p++){var g=o.sel.ranges[p];if(g.head.line==e&&g.head.ch<c.length){var m=oe(e,c.length);Fo(o,p,new oo(m,m));break}}}Rs.defineInitHook=function(t){return zs.push(t)};var Us=null;function Hs(t){Us=t}function _s(t,e,n,i,r){var o=t.doc;t.display.shift=!1,i||(i=o.sel);var a=+new Date-200,s="paste"==r||t.state.pasteIncoming>a,l=Bt(e),u=null;if(s&&i.ranges.length>1)if(Us&&Us.text.join("\n")==e){if(i.ranges.length%Us.text.length==0){u=[];for(var c=0;c<Us.text.length;c++)u.push(o.splitLines(Us.text[c]))}}else l.length==i.ranges.length&&t.options.pasteLinesPerSelection&&(u=K(l,(function(t){return[t]})));for(var h=t.curOp.updateInput,d=i.ranges.length-1;d>=0;d--){var f=i.ranges[d],p=f.from(),g=f.to();f.empty()&&(n&&n>0?p=oe(p.line,p.ch-n):t.state.overwrite&&!s?g=oe(g.line,Math.min(Qt(o,g.line).text.length,g.ch+q(l).length)):s&&Us&&Us.lineWise&&Us.text.join("\n")==l.join("\n")&&(p=g=oe(p.line,0)));var m={from:p,to:g,text:u?u[d%u.length]:l,origin:r||(s?"paste":t.state.cutIncoming>a?"cut":"+input")};Jo(t.doc,m),Ln(t,"inputRead",t,m)}e&&!s&&Ws(t,e),sr(t),t.curOp.updateInput<2&&(t.curOp.updateInput=h),t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=-1}function Zs(t,e){var n=t.clipboardData&&t.clipboardData.getData("Text");if(n)return t.preventDefault(),e.isReadOnly()||e.options.disableInput||Nr(e,(function(){return _s(e,n,0,null,"paste")})),!0}function Ws(t,e){if(t.options.electricChars&&t.options.smartIndent)for(var n=t.doc.sel,i=n.ranges.length-1;i>=0;i--){var r=n.ranges[i];if(!(r.head.ch>100||i&&n.ranges[i-1].head.line==r.head.line)){var o=t.getModeAt(r.head),a=!1;if(o.electricChars){for(var s=0;s<o.electricChars.length;s++)if(e.indexOf(o.electricChars.charAt(s))>-1){a=Gs(t,r.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(Qt(t.doc,r.head.line).text.slice(0,r.head.ch))&&(a=Gs(t,r.head.line,"smart"));a&&Ln(t,"electricInput",t,r.head.line)}}}function Vs(t){for(var e=[],n=[],i=0;i<t.doc.sel.ranges.length;i++){var r=t.doc.sel.ranges[i].head.line,o={anchor:oe(r,0),head:oe(r+1,0)};n.push(o),e.push(t.getRange(o.anchor,o.head))}return{text:e,ranges:n}}function Ys(t,e,n,i){t.setAttribute("autocorrect",n?"":"off"),t.setAttribute("autocapitalize",i?"":"off"),t.setAttribute("spellcheck",!!e)}function Xs(){var t=L("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),e=L("div",[t],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return l?t.style.width="1000px":t.setAttribute("wrap","off"),g&&(t.style.border="1px solid black"),Ys(t),e}function qs(t){var e=t.optionHandlers,n=t.helpers={};t.prototype={constructor:t,focus:function(){window.focus(),this.display.input.focus()},setOption:function(t,n){var i=this.options,r=i[t];i[t]==n&&"mode"!=t||(i[t]=n,e.hasOwnProperty(t)&&jr(this,e[t])(this,n,r),vt(this,"optionChange",this,t))},getOption:function(t){return this.options[t]},getDoc:function(){return this.doc},addKeyMap:function(t,e){this.state.keyMaps[e?"push":"unshift"](Wa(t))},removeKeyMap:function(t){for(var e=this.state.keyMaps,n=0;n<e.length;++n)if(e[n]==t||e[n].name==t)return e.splice(n,1),!0},addOverlay:Ir((function(e,n){var i=e.token?e:t.getMode(this.options,e);if(i.startState)throw new Error("Overlays may not be stateful.");Q(this.state.overlays,{mode:i,modeSpec:e,opaque:n&&n.opaque,priority:n&&n.priority||0},(function(t){return t.priority})),this.state.modeGen++,Ri(this)})),removeOverlay:Ir((function(t){for(var e=this.state.overlays,n=0;n<e.length;++n){var i=e[n].modeSpec;if(i==t||"string"==typeof t&&i.name==t)return e.splice(n,1),this.state.modeGen++,void Ri(this)}})),indentLine:Ir((function(t,e,n){"string"!=typeof e&&"number"!=typeof e&&(e=null==e?this.options.smartIndent?"smart":"prev":e?"add":"subtract"),ie(this.doc,t)&&Gs(this,t,e,n)})),indentSelection:Ir((function(t){for(var e=this.doc.sel.ranges,n=-1,i=0;i<e.length;i++){var r=e[i];if(r.empty())r.head.line>n&&(Gs(this,r.head.line,t,!0),n=r.head.line,i==this.doc.sel.primIndex&&sr(this));else{var o=r.from(),a=r.to(),s=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var l=s;l<n;++l)Gs(this,l,t);var u=this.doc.sel.ranges;0==o.ch&&e.length==u.length&&u[i].from().ch>0&&Fo(this.doc,i,new oo(o,u[i].to()),_)}}})),getTokenAt:function(t,e){return ke(this,t,e)},getLineTokens:function(t,e){return ke(this,oe(t),e,!0)},getTokenTypeAt:function(t){t=de(this.doc,t);var e,n=ye(this,Qt(this.doc,t.line)),i=0,r=(n.length-1)/2,o=t.ch;if(0==o)e=n[2];else for(;;){var a=i+r>>1;if((a?n[2*a-1]:0)>=o)r=a;else{if(!(n[2*a+1]<o)){e=n[2*a+2];break}i=a+1}}var s=e?e.indexOf("overlay "):-1;return s<0?e:0==s?null:e.slice(0,s-1)},getModeAt:function(e){var n=this.doc.mode;return n.innerMode?t.innerMode(n,this.getTokenAt(e).state).mode:n},getHelper:function(t,e){return this.getHelpers(t,e)[0]},getHelpers:function(t,e){var i=[];if(!n.hasOwnProperty(e))return i;var r=n[e],o=this.getModeAt(t);if("string"==typeof o[e])r[o[e]]&&i.push(r[o[e]]);else if(o[e])for(var a=0;a<o[e].length;a++){var s=r[o[e][a]];s&&i.push(s)}else o.helperType&&r[o.helperType]?i.push(r[o.helperType]):r[o.name]&&i.push(r[o.name]);for(var l=0;l<r._global.length;l++){var u=r._global[l];u.pred(o,this)&&-1==G(i,u.val)&&i.push(u.val)}return i},getStateAfter:function(t,e){var n=this.doc;return we(this,(t=he(n,null==t?n.first+n.size-1:t))+1,e).state},cursorCoords:function(t,e){var n=this.doc.sel.primary();return wi(this,null==t?n.head:"object"==typeof t?de(this.doc,t):t?n.from():n.to(),e||"page")},charCoords:function(t,e){return yi(this,de(this.doc,t),e||"page")},coordsChar:function(t,e){return Si(this,(t=vi(this,t,e||"page")).left,t.top)},lineAtHeight:function(t,e){return t=vi(this,{top:t,left:0},e||"page").top,ne(this.doc,t+this.display.viewOffset)},heightAtLine:function(t,e,n){var i,r=!1;if("number"==typeof t){var o=this.doc.first+this.doc.size-1;t<this.doc.first?t=this.doc.first:t>o&&(t=o,r=!0),i=Qt(this.doc,t)}else i=t;return mi(this,i,{top:0,left:0},e||"page",n||r).top+(r?this.doc.height-an(i):0)},defaultTextHeight:function(){return Li(this.display)},defaultCharWidth:function(){return Ti(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(t,e,n,i,r){var o=this.display,a=(t=wi(this,de(this.doc,t))).bottom,s=t.left;if(e.style.position="absolute",e.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(e),o.sizer.appendChild(e),"over"==i)a=t.top;else if("above"==i||"near"==i){var l=Math.max(o.wrapper.clientHeight,this.doc.height),u=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==i||t.bottom+e.offsetHeight>l)&&t.top>e.offsetHeight?a=t.top-e.offsetHeight:t.bottom+e.offsetHeight<=l&&(a=t.bottom),s+e.offsetWidth>u&&(s=u-e.offsetWidth)}e.style.top=a+"px",e.style.left=e.style.right="","right"==r?(s=o.sizer.clientWidth-e.offsetWidth,e.style.right="0px"):("left"==r?s=0:"middle"==r&&(s=(o.sizer.clientWidth-e.offsetWidth)/2),e.style.left=s+"px"),n&&rr(this,{left:s,top:a,right:s+e.offsetWidth,bottom:a+e.offsetHeight})},triggerOnKeyDown:Ir(us),triggerOnKeyPress:Ir(ds),triggerOnKeyUp:hs,triggerOnMouseDown:Ir(ys),execCommand:function(t){if(Qa.hasOwnProperty(t))return Qa[t].call(null,this)},triggerElectric:Ir((function(t){Ws(this,t)})),findPosH:function(t,e,n,i){var r=1;e<0&&(r=-1,e=-e);for(var o=de(this.doc,t),a=0;a<e&&!(o=Ks(this.doc,o,r,n,i)).hitSide;++a);return o},moveH:Ir((function(t,e){var n=this;this.extendSelectionsBy((function(i){return n.display.shift||n.doc.extend||i.empty()?Ks(n.doc,i.head,t,e,n.options.rtlMoveVisually):t<0?i.from():i.to()}),W)})),deleteH:Ir((function(t,e){var n=this.doc.sel,i=this.doc;n.somethingSelected()?i.replaceSelection("",null,"+delete"):Va(this,(function(n){var r=Ks(i,n.head,t,e,!1);return t<0?{from:r,to:n.head}:{from:n.head,to:r}}))})),findPosV:function(t,e,n,i){var r=1,o=i;e<0&&(r=-1,e=-e);for(var a=de(this.doc,t),s=0;s<e;++s){var l=wi(this,a,"div");if(null==o?o=l.left:l.left=o,(a=Qs(this,l,r,n)).hitSide)break}return a},moveV:Ir((function(t,e){var n=this,i=this.doc,r=[],o=!this.display.shift&&!i.extend&&i.sel.somethingSelected();if(i.extendSelectionsBy((function(a){if(o)return t<0?a.from():a.to();var s=wi(n,a.head,"div");null!=a.goalColumn&&(s.left=a.goalColumn),r.push(s.left);var l=Qs(n,s,t,e);return"page"==e&&a==i.sel.primary()&&ar(n,yi(n,l,"div").top-s.top),l}),W),r.length)for(var a=0;a<i.sel.ranges.length;a++)i.sel.ranges[a].goalColumn=r[a]})),findWordAt:function(t){var e=Qt(this.doc,t.line).text,n=t.ch,i=t.ch;if(e){var r=this.getHelper(t,"wordChars");"before"!=t.sticky&&i!=e.length||!n?++i:--n;for(var o=e.charAt(n),a=nt(o,r)?function(t){return nt(t,r)}:/\s/.test(o)?function(t){return/\s/.test(t)}:function(t){return!/\s/.test(t)&&!nt(t)};n>0&&a(e.charAt(n-1));)--n;for(;i<e.length&&a(e.charAt(i));)++i}return new oo(oe(t.line,n),oe(t.line,i))},toggleOverwrite:function(t){null!=t&&t==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?I(this.display.cursorDiv,"CodeMirror-overwrite"):A(this.display.cursorDiv,"CodeMirror-overwrite"),vt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==j()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:Ir((function(t,e){lr(this,t,e)})),getScrollInfo:function(){var t=this.display.scroller;return{left:t.scrollLeft,top:t.scrollTop,height:t.scrollHeight-Xn(this)-this.display.barHeight,width:t.scrollWidth-Xn(this)-this.display.barWidth,clientHeight:Kn(this),clientWidth:qn(this)}},scrollIntoView:Ir((function(t,e){null==t?(t={from:this.doc.sel.primary().head,to:null},null==e&&(e=this.options.cursorScrollMargin)):"number"==typeof t?t={from:oe(t,0),to:null}:null==t.from&&(t={from:t,to:null}),t.to||(t.to=t.from),t.margin=e||0,null!=t.from.line?ur(this,t):hr(this,t.from,t.to,t.margin)})),setSize:Ir((function(t,e){var n=this,i=function(t){return"number"==typeof t||/^\d+$/.test(String(t))?t+"px":t};null!=t&&(this.display.wrapper.style.width=i(t)),null!=e&&(this.display.wrapper.style.height=i(e)),this.options.lineWrapping&&hi(this);var r=this.display.viewFrom;this.doc.iter(r,this.display.viewTo,(function(t){if(t.widgets)for(var e=0;e<t.widgets.length;e++)if(t.widgets[e].noHScroll){Fi(n,r,"widget");break}++r})),this.curOp.forceUpdate=!0,vt(this,"refresh",this)})),operation:function(t){return Nr(this,t)},startOperation:function(){return Pr(this)},endOperation:function(){return kr(this)},refresh:Ir((function(){var t=this.display.cachedTextHeight;Ri(this),this.curOp.forceUpdate=!0,di(this),lr(this,this.doc.scrollLeft,this.doc.scrollTop),Wr(this.display),(null==t||Math.abs(t-Li(this.display))>.5||this.options.lineWrapping)&&Bi(this),vt(this,"refresh",this)})),swapDoc:Ir((function(t){var e=this.doc;return e.cm=null,this.state.selectingText&&this.state.selectingText(),wo(this,t),di(this),this.display.input.reset(),lr(this,t.scrollLeft,t.scrollTop),this.curOp.forceScroll=!0,Ln(this,"swapDoc",this,e),e})),phrase:function(t){var e=this.options.phrases;return e&&Object.prototype.hasOwnProperty.call(e,t)?e[t]:t},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},xt(t),t.registerHelper=function(e,i,r){n.hasOwnProperty(e)||(n[e]=t[e]={_global:[]}),n[e][i]=r},t.registerGlobalHelper=function(e,i,r,o){t.registerHelper(e,i,o),n[e]._global.push({pred:r,val:o})}}function Ks(t,e,n,i,r){var o=e,a=n,s=Qt(t,e.line),l=r&&"rtl"==t.direction?-n:n;function u(){var n=e.line+l;return!(n<t.first||n>=t.first+t.size)&&(e=new oe(n,e.ch,e.sticky),s=Qt(t,n))}function c(o){var a;if("codepoint"==i){var c=s.text.charCodeAt(e.ch+(i>0?0:-1));a=isNaN(c)?null:new oe(e.line,Math.max(0,Math.min(s.text.length,e.ch+n*(c>=55296&&c<56320?2:1))),-n)}else a=r?Ka(t.cm,s,e,n):Xa(s,e,n);if(null==a){if(o||!u())return!1;e=qa(r,t.cm,s,e.line,l)}else e=a;return!0}if("char"==i||"codepoint"==i)c();else if("column"==i)c(!0);else if("word"==i||"group"==i)for(var h=null,d="group"==i,f=t.cm&&t.cm.getHelper(e,"wordChars"),p=!0;!(n<0)||c(!p);p=!1){var g=s.text.charAt(e.ch)||"\n",m=nt(g,f)?"w":d&&"\n"==g?"n":!d||/\s/.test(g)?null:"p";if(!d||p||m||(m="s"),h&&h!=m){n<0&&(n=1,c(),e.sticky="after");break}if(m&&(h=m),n>0&&!c(!p))break}var v=Xo(t,e,o,a,!0);return se(o,v)&&(v.hitSide=!0),v}function Qs(t,e,n,i){var r,o,a=t.doc,s=e.left;if("page"==i){var l=Math.min(t.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),u=Math.max(l-.5*Li(t.display),3);r=(n>0?e.bottom:e.top)+n*u}else"line"==i&&(r=n>0?e.bottom+3:e.top-3);for(;(o=Si(t,s,r)).outside;){if(n<0?r<=0:r>=a.height){o.hitSide=!0;break}r+=5*n}return o}var Js=function(t){this.cm=t,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new z,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function $s(t,e){var n=ei(t,e.line);if(!n||n.hidden)return null;var i=Qt(t.doc,e.line),r=Jn(n,i,e.line),o=dt(i,t.doc.direction),a="left";o&&(a=ct(o,e.ch)%2?"right":"left");var s=ai(r.map,e.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function tl(t){for(var e=t;e;e=e.parentNode)if(/CodeMirror-gutter-wrapper/.test(e.className))return!0;return!1}function el(t,e){return e&&(t.bad=!0),t}function nl(t,e,n,i,r){var o="",a=!1,s=t.doc.lineSeparator(),l=!1;function u(t){return function(e){return e.id==t}}function c(){a&&(o+=s,l&&(o+=s),a=l=!1)}function h(t){t&&(c(),o+=t)}function d(e){if(1==e.nodeType){var n=e.getAttribute("cm-text");if(n)return void h(n);var o,f=e.getAttribute("cm-marker");if(f){var p=t.findMarks(oe(i,0),oe(r+1,0),u(+f));return void(p.length&&(o=p[0].find(0))&&h(Jt(t.doc,o.from,o.to).join(s)))}if("false"==e.getAttribute("contenteditable"))return;var g=/^(pre|div|p|li|table|br)$/i.test(e.nodeName);if(!/^br$/i.test(e.nodeName)&&0==e.textContent.length)return;g&&c();for(var m=0;m<e.childNodes.length;m++)d(e.childNodes[m]);/^(pre|p)$/i.test(e.nodeName)&&(l=!0),g&&(a=!0)}else 3==e.nodeType&&h(e.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;d(e),e!=n;)e=e.nextSibling,l=!1;return o}function il(t,e,n){var i;if(e==t.display.lineDiv){if(!(i=t.display.lineDiv.childNodes[n]))return el(t.clipPos(oe(t.display.viewTo-1)),!0);e=null,n=0}else for(i=e;;i=i.parentNode){if(!i||i==t.display.lineDiv)return null;if(i.parentNode&&i.parentNode==t.display.lineDiv)break}for(var r=0;r<t.display.view.length;r++){var o=t.display.view[r];if(o.node==i)return rl(o,e,n)}}function rl(t,e,n){var i=t.text.firstChild,r=!1;if(!e||!N(i,e))return el(oe(ee(t.line),0),!0);if(e==i&&(r=!0,e=i.childNodes[n],n=0,!e)){var o=t.rest?q(t.rest):t.line;return el(oe(ee(o),o.text.length),r)}var a=3==e.nodeType?e:null,s=e;for(a||1!=e.childNodes.length||3!=e.firstChild.nodeType||(a=e.firstChild,n&&(n=a.nodeValue.length));s.parentNode!=i;)s=s.parentNode;var l=t.measure,u=l.maps;function c(e,n,i){for(var r=-1;r<(u?u.length:0);r++)for(var o=r<0?l.map:u[r],a=0;a<o.length;a+=3){var s=o[a+2];if(s==e||s==n){var c=ee(r<0?t.line:t.rest[r]),h=o[a]+i;return(i<0||s!=e)&&(h=o[a+(i?1:0)]),oe(c,h)}}}var h=c(a,s,n);if(h)return el(h,r);for(var d=s.nextSibling,f=a?a.nodeValue.length-n:0;d;d=d.nextSibling){if(h=c(d,d.firstChild,0))return el(oe(h.line,h.ch-f),r);f+=d.textContent.length}for(var p=s.previousSibling,g=n;p;p=p.previousSibling){if(h=c(p,p.firstChild,-1))return el(oe(h.line,h.ch+g),r);g+=p.textContent.length}}Js.prototype.init=function(t){var e=this,n=this,i=n.cm,r=n.div=t.lineDiv;function o(t){for(var e=t.target;e;e=e.parentNode){if(e==r)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(e.className))break}return!1}function a(t){if(o(t)&&!yt(i,t)){if(i.somethingSelected())Hs({lineWise:!1,text:i.getSelections()}),"cut"==t.type&&i.replaceSelection("",null,"cut");else{if(!i.options.lineWiseCopyCut)return;var e=Vs(i);Hs({lineWise:!0,text:e.text}),"cut"==t.type&&i.operation((function(){i.setSelections(e.ranges,0,_),i.replaceSelection("",null,"cut")}))}if(t.clipboardData){t.clipboardData.clearData();var a=Us.text.join("\n");if(t.clipboardData.setData("Text",a),t.clipboardData.getData("Text")==a)return void t.preventDefault()}var s=Xs(),l=s.firstChild;i.display.lineSpace.insertBefore(s,i.display.lineSpace.firstChild),l.value=Us.text.join("\n");var u=document.activeElement;O(l),setTimeout((function(){i.display.lineSpace.removeChild(s),u.focus(),u==r&&n.showPrimarySelection()}),50)}}Ys(r,i.options.spellcheck,i.options.autocorrect,i.options.autocapitalize),pt(r,"paste",(function(t){!o(t)||yt(i,t)||Zs(t,i)||s<=11&&setTimeout(jr(i,(function(){return e.updateFromDOM()})),20)})),pt(r,"compositionstart",(function(t){e.composing={data:t.data,done:!1}})),pt(r,"compositionupdate",(function(t){e.composing||(e.composing={data:t.data,done:!1})})),pt(r,"compositionend",(function(t){e.composing&&(t.data!=e.composing.data&&e.readFromDOMSoon(),e.composing.done=!0)})),pt(r,"touchstart",(function(){return n.forceCompositionEnd()})),pt(r,"input",(function(){e.composing||e.readFromDOMSoon()})),pt(r,"copy",a),pt(r,"cut",a)},Js.prototype.screenReaderLabelChanged=function(t){t?this.div.setAttribute("aria-label",t):this.div.removeAttribute("aria-label")},Js.prototype.prepareSelection=function(){var t=Zi(this.cm,!1);return t.focus=document.activeElement==this.div,t},Js.prototype.showSelection=function(t,e){t&&this.cm.display.view.length&&((t.focus||e)&&this.showPrimarySelection(),this.showMultipleSelections(t))},Js.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Js.prototype.showPrimarySelection=function(){var t=this.getSelection(),e=this.cm,i=e.doc.sel.primary(),r=i.from(),o=i.to();if(e.display.viewTo==e.display.viewFrom||r.line>=e.display.viewTo||o.line<e.display.viewFrom)t.removeAllRanges();else{var a=il(e,t.anchorNode,t.anchorOffset),s=il(e,t.focusNode,t.focusOffset);if(!a||a.bad||!s||s.bad||0!=ae(ce(a,s),r)||0!=ae(ue(a,s),o)){var l=e.display.view,u=r.line>=e.display.viewFrom&&$s(e,r)||{node:l[0].measure.map[2],offset:0},c=o.line<e.display.viewTo&&$s(e,o);if(!c){var h=l[l.length-1].measure,d=h.maps?h.maps[h.maps.length-1]:h.map;c={node:d[d.length-1],offset:d[d.length-2]-d[d.length-3]}}if(u&&c){var f,p=t.rangeCount&&t.getRangeAt(0);try{f=C(u.node,u.offset,c.offset,c.node)}catch(t){}f&&(!n&&e.state.focused?(t.collapse(u.node,u.offset),f.collapsed||(t.removeAllRanges(),t.addRange(f))):(t.removeAllRanges(),t.addRange(f)),p&&null==t.anchorNode?t.addRange(p):n&&this.startGracePeriod()),this.rememberSelection()}else t.removeAllRanges()}}},Js.prototype.startGracePeriod=function(){var t=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout((function(){t.gracePeriod=!1,t.selectionChanged()&&t.cm.operation((function(){return t.cm.curOp.selectionChanged=!0}))}),20)},Js.prototype.showMultipleSelections=function(t){E(this.cm.display.cursorDiv,t.cursors),E(this.cm.display.selectionDiv,t.selection)},Js.prototype.rememberSelection=function(){var t=this.getSelection();this.lastAnchorNode=t.anchorNode,this.lastAnchorOffset=t.anchorOffset,this.lastFocusNode=t.focusNode,this.lastFocusOffset=t.focusOffset},Js.prototype.selectionInEditor=function(){var t=this.getSelection();if(!t.rangeCount)return!1;var e=t.getRangeAt(0).commonAncestorContainer;return N(this.div,e)},Js.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()&&document.activeElement==this.div||this.showSelection(this.prepareSelection(),!0),this.div.focus())},Js.prototype.blur=function(){this.div.blur()},Js.prototype.getField=function(){return this.div},Js.prototype.supportsTouch=function(){return!0},Js.prototype.receivedFocus=function(){var t=this;function e(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,e))}this.selectionInEditor()?this.pollSelection():Nr(this.cm,(function(){return t.cm.curOp.selectionChanged=!0})),this.polling.set(this.cm.options.pollInterval,e)},Js.prototype.selectionChanged=function(){var t=this.getSelection();return t.anchorNode!=this.lastAnchorNode||t.anchorOffset!=this.lastAnchorOffset||t.focusNode!=this.lastFocusNode||t.focusOffset!=this.lastFocusOffset},Js.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var t=this.getSelection(),e=this.cm;if(m&&c&&this.cm.display.gutterSpecs.length&&tl(t.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=il(e,t.anchorNode,t.anchorOffset),i=il(e,t.focusNode,t.focusOffset);n&&i&&Nr(e,(function(){Ho(e.doc,so(n,i),_),(n.bad||i.bad)&&(e.curOp.selectionChanged=!0)}))}}},Js.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var t,e,n,i=this.cm,r=i.display,o=i.doc.sel.primary(),a=o.from(),s=o.to();if(0==a.ch&&a.line>i.firstLine()&&(a=oe(a.line-1,Qt(i.doc,a.line-1).length)),s.ch==Qt(i.doc,s.line).text.length&&s.line<i.lastLine()&&(s=oe(s.line+1,0)),a.line<r.viewFrom||s.line>r.viewTo-1)return!1;a.line==r.viewFrom||0==(t=Di(i,a.line))?(e=ee(r.view[0].line),n=r.view[0].node):(e=ee(r.view[t].line),n=r.view[t-1].node.nextSibling);var l,u,c=Di(i,s.line);if(c==r.view.length-1?(l=r.viewTo-1,u=r.lineDiv.lastChild):(l=ee(r.view[c+1].line)-1,u=r.view[c+1].node.previousSibling),!n)return!1;for(var h=i.doc.splitLines(nl(i,n,u,e,l)),d=Jt(i.doc,oe(e,0),oe(l,Qt(i.doc,l).text.length));h.length>1&&d.length>1;)if(q(h)==q(d))h.pop(),d.pop(),l--;else{if(h[0]!=d[0])break;h.shift(),d.shift(),e++}for(var f=0,p=0,g=h[0],m=d[0],v=Math.min(g.length,m.length);f<v&&g.charCodeAt(f)==m.charCodeAt(f);)++f;for(var y=q(h),w=q(d),b=Math.min(y.length-(1==h.length?f:0),w.length-(1==d.length?f:0));p<b&&y.charCodeAt(y.length-p-1)==w.charCodeAt(w.length-p-1);)++p;if(1==h.length&&1==d.length&&e==a.line)for(;f&&f>a.ch&&y.charCodeAt(y.length-p-1)==w.charCodeAt(w.length-p-1);)f--,p++;h[h.length-1]=y.slice(0,y.length-p).replace(/^\u200b+/,""),h[0]=h[0].slice(f).replace(/\u200b+$/,"");var x=oe(e,f),S=oe(l,d.length?q(d).length-p:0);return h.length>1||h[0]||ae(x,S)?(ra(i.doc,h,x,S,"+input"),!0):void 0},Js.prototype.ensurePolled=function(){this.forceCompositionEnd()},Js.prototype.reset=function(){this.forceCompositionEnd()},Js.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Js.prototype.readFromDOMSoon=function(){var t=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(t.readDOMTimeout=null,t.composing){if(!t.composing.done)return;t.composing=null}t.updateFromDOM()}),80))},Js.prototype.updateFromDOM=function(){var t=this;!this.cm.isReadOnly()&&this.pollContent()||Nr(this.cm,(function(){return Ri(t.cm)}))},Js.prototype.setUneditable=function(t){t.contentEditable="false"},Js.prototype.onKeyPress=function(t){0==t.charCode||this.composing||(t.preventDefault(),this.cm.isReadOnly()||jr(this.cm,_s)(this.cm,String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),0))},Js.prototype.readOnlyChanged=function(t){this.div.contentEditable=String("nocursor"!=t)},Js.prototype.onContextMenu=function(){},Js.prototype.resetPosition=function(){},Js.prototype.needsContentAttribute=!0;var ol=function(t){this.cm=t,this.prevInput="",this.pollingFast=!1,this.polling=new z,this.hasSelection=!1,this.composing=null};function al(t,e){if((e=e?R(e):{}).value=t.value,!e.tabindex&&t.tabIndex&&(e.tabindex=t.tabIndex),!e.placeholder&&t.placeholder&&(e.placeholder=t.placeholder),null==e.autofocus){var n=j();e.autofocus=n==t||null!=t.getAttribute("autofocus")&&n==document.body}function i(){t.value=s.getValue()}var r;if(t.form&&(pt(t.form,"submit",i),!e.leaveSubmitMethodAlone)){var o=t.form;r=o.submit;try{var a=o.submit=function(){i(),o.submit=r,o.submit(),o.submit=a}}catch(t){}}e.finishInit=function(n){n.save=i,n.getTextArea=function(){return t},n.toTextArea=function(){n.toTextArea=isNaN,i(),t.parentNode.removeChild(n.getWrapperElement()),t.style.display="",t.form&&(mt(t.form,"submit",i),e.leaveSubmitMethodAlone||"function"!=typeof t.form.submit||(t.form.submit=r))}},t.style.display="none";var s=Rs((function(e){return t.parentNode.insertBefore(e,t.nextSibling)}),e);return s}function sl(t){t.off=mt,t.on=pt,t.wheelEventPixels=no,t.Doc=Pa,t.splitLines=Bt,t.countColumn=F,t.findColumn=V,t.isWordChar=et,t.Pass=H,t.signal=vt,t.Line=un,t.changeEnd=lo,t.scrollbarModel=br,t.Pos=oe,t.cmpPos=ae,t.modes=zt,t.mimeModes=Gt,t.resolveMode=_t,t.getMode=Zt,t.modeExtensions=Wt,t.extendMode=Vt,t.copyState=Yt,t.startState=qt,t.innerMode=Xt,t.commands=Qa,t.keyMap=Fa,t.keyName=Za,t.isModifierKey=Ha,t.lookupKey=Ua,t.normalizeKeyMap=Ga,t.StringStream=Kt,t.SharedTextMarker=va,t.TextMarker=ga,t.LineWidget=ha,t.e_preventDefault=St,t.e_stopPropagation=Pt,t.e_stop=Ct,t.addClass=I,t.contains=N,t.rmClass=A,t.keyNames=Ba}ol.prototype.init=function(t){var e=this,n=this,i=this.cm;this.createField(t);var r=this.textarea;function o(t){if(!yt(i,t)){if(i.somethingSelected())Hs({lineWise:!1,text:i.getSelections()});else{if(!i.options.lineWiseCopyCut)return;var e=Vs(i);Hs({lineWise:!0,text:e.text}),"cut"==t.type?i.setSelections(e.ranges,null,_):(n.prevInput="",r.value=e.text.join("\n"),O(r))}"cut"==t.type&&(i.state.cutIncoming=+new Date)}}t.wrapper.insertBefore(this.wrapper,t.wrapper.firstChild),g&&(r.style.width="0px"),pt(r,"input",(function(){a&&s>=9&&e.hasSelection&&(e.hasSelection=null),n.poll()})),pt(r,"paste",(function(t){yt(i,t)||Zs(t,i)||(i.state.pasteIncoming=+new Date,n.fastPoll())})),pt(r,"cut",o),pt(r,"copy",o),pt(t.scroller,"paste",(function(e){if(!Zn(t,e)&&!yt(i,e)){if(!r.dispatchEvent)return i.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=e.clipboardData,r.dispatchEvent(o)}})),pt(t.lineSpace,"selectstart",(function(e){Zn(t,e)||St(e)})),pt(r,"compositionstart",(function(){var t=i.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:t,range:i.markText(t,i.getCursor("to"),{className:"CodeMirror-composing"})}})),pt(r,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},ol.prototype.createField=function(t){this.wrapper=Xs(),this.textarea=this.wrapper.firstChild},ol.prototype.screenReaderLabelChanged=function(t){t?this.textarea.setAttribute("aria-label",t):this.textarea.removeAttribute("aria-label")},ol.prototype.prepareSelection=function(){var t=this.cm,e=t.display,n=t.doc,i=Zi(t);if(t.options.moveInputWithCursor){var r=wi(t,n.sel.primary().head,"div"),o=e.wrapper.getBoundingClientRect(),a=e.lineDiv.getBoundingClientRect();i.teTop=Math.max(0,Math.min(e.wrapper.clientHeight-10,r.top+a.top-o.top)),i.teLeft=Math.max(0,Math.min(e.wrapper.clientWidth-10,r.left+a.left-o.left))}return i},ol.prototype.showSelection=function(t){var e=this.cm.display;E(e.cursorDiv,t.cursors),E(e.selectionDiv,t.selection),null!=t.teTop&&(this.wrapper.style.top=t.teTop+"px",this.wrapper.style.left=t.teLeft+"px")},ol.prototype.reset=function(t){if(!this.contextMenuPending&&!this.composing){var e=this.cm;if(e.somethingSelected()){this.prevInput="";var n=e.getSelection();this.textarea.value=n,e.state.focused&&O(this.textarea),a&&s>=9&&(this.hasSelection=n)}else t||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null))}},ol.prototype.getField=function(){return this.textarea},ol.prototype.supportsTouch=function(){return!1},ol.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!v||j()!=this.textarea))try{this.textarea.focus()}catch(t){}},ol.prototype.blur=function(){this.textarea.blur()},ol.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ol.prototype.receivedFocus=function(){this.slowPoll()},ol.prototype.slowPoll=function(){var t=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){t.poll(),t.cm.state.focused&&t.slowPoll()}))},ol.prototype.fastPoll=function(){var t=!1,e=this;function n(){e.poll()||t?(e.pollingFast=!1,e.slowPoll()):(t=!0,e.polling.set(60,n))}e.pollingFast=!0,e.polling.set(20,n)},ol.prototype.poll=function(){var t=this,e=this.cm,n=this.textarea,i=this.prevInput;if(this.contextMenuPending||!e.state.focused||Ot(n)&&!i&&!this.composing||e.isReadOnly()||e.options.disableInput||e.state.keySeq)return!1;var r=n.value;if(r==i&&!e.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===r||y&&/[\uf700-\uf7ff]/.test(r))return e.display.input.reset(),!1;if(e.doc.sel==e.display.selForContextMenu){var o=r.charCodeAt(0);if(8203!=o||i||(i=""),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var l=0,u=Math.min(i.length,r.length);l<u&&i.charCodeAt(l)==r.charCodeAt(l);)++l;return Nr(e,(function(){_s(e,r.slice(l),i.length-l,null,t.composing?"*compose":null),r.length>1e3||r.indexOf("\n")>-1?n.value=t.prevInput="":t.prevInput=r,t.composing&&(t.composing.range.clear(),t.composing.range=e.markText(t.composing.start,e.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},ol.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ol.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},ol.prototype.onContextMenu=function(t){var e=this,n=e.cm,i=n.display,r=e.textarea;e.contextMenuPending&&e.contextMenuPending();var o=Oi(n,t),u=i.scroller.scrollTop;if(o&&!h){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&jr(n,Ho)(n.doc,so(o),_);var c,d=r.style.cssText,f=e.wrapper.style.cssText,p=e.wrapper.offsetParent.getBoundingClientRect();if(e.wrapper.style.cssText="position: static",r.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(t.clientY-p.top-5)+"px; left: "+(t.clientX-p.left-5)+"px;\n z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(c=window.scrollY),i.input.focus(),l&&window.scrollTo(null,c),i.input.reset(),n.somethingSelected()||(r.value=e.prevInput=" "),e.contextMenuPending=v,i.selForContextMenu=n.doc.sel,clearTimeout(i.detectingSelectAll),a&&s>=9&&m(),P){Ct(t);var g=function(){mt(window,"mouseup",g),setTimeout(v,20)};pt(window,"mouseup",g)}else setTimeout(v,50)}function m(){if(null!=r.selectionStart){var t=n.somethingSelected(),o=""+(t?r.value:"");r.value="⇚",r.value=o,e.prevInput=t?"":"",r.selectionStart=1,r.selectionEnd=o.length,i.selForContextMenu=n.doc.sel}}function v(){if(e.contextMenuPending==v&&(e.contextMenuPending=!1,e.wrapper.style.cssText=f,r.style.cssText=d,a&&s<9&&i.scrollbars.setScrollTop(i.scroller.scrollTop=u),null!=r.selectionStart)){(!a||a&&s<9)&&m();var t=0,o=function(){i.selForContextMenu==n.doc.sel&&0==r.selectionStart&&r.selectionEnd>0&&""==e.prevInput?jr(n,Ko)(n):t++<10?i.detectingSelectAll=setTimeout(o,500):(i.selForContextMenu=null,i.input.reset())};i.detectingSelectAll=setTimeout(o,200)}}},ol.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled="nocursor"==t,this.textarea.readOnly=!!t},ol.prototype.setUneditable=function(){},ol.prototype.needsContentAttribute=!1,Bs(Rs),qs(Rs);var ll="iter insert remove copy getEditor constructor".split(" ");for(var ul in Pa.prototype)Pa.prototype.hasOwnProperty(ul)&&G(ll,ul)<0&&(Rs.prototype[ul]=function(t){return function(){return t.apply(this.doc,arguments)}}(Pa.prototype[ul]));return xt(Pa),Rs.inputStyles={textarea:ol,contenteditable:Js},Rs.defineMode=function(t){Rs.defaults.mode||"null"==t||(Rs.defaults.mode=t),Ut.apply(this,arguments)},Rs.defineMIME=Ht,Rs.defineMode("null",(function(){return{token:function(t){return t.skipToEnd()}}})),Rs.defineMIME("text/plain","null"),Rs.defineExtension=function(t,e){Rs.prototype[t]=e},Rs.defineDocExtension=function(t,e){Pa.prototype[t]=e},Rs.fromTextArea=al,sl(Rs),Rs.version="5.58.2",Rs}()},25419:function(t,e,n){!function(t){"use strict";t.defineMode("markdown",(function(e,n){var i=t.getMode(e,"text/html"),r="null"==i.name;function o(n){if(t.findModeByName){var i=t.findModeByName(n);i&&(n=i.mime||i.mimes[0])}var r=t.getMode(e,n);return"null"==r.name?null:r}void 0===n.highlightFormatting&&(n.highlightFormatting=!1),void 0===n.maxBlockquoteDepth&&(n.maxBlockquoteDepth=0),void 0===n.taskLists&&(n.taskLists=!1),void 0===n.strikethrough&&(n.strikethrough=!1),void 0===n.emoji&&(n.emoji=!1),void 0===n.fencedCodeBlockHighlighting&&(n.fencedCodeBlockHighlighting=!0),void 0===n.fencedCodeBlockDefaultMode&&(n.fencedCodeBlockDefaultMode="text/plain"),void 0===n.xml&&(n.xml=!0),void 0===n.tokenTypeOverrides&&(n.tokenTypeOverrides={});var a={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var s in a)a.hasOwnProperty(s)&&n.tokenTypeOverrides[s]&&(a[s]=n.tokenTypeOverrides[s]);var l=/^([*\-_])(?:\s*\1){2,}\s*$/,u=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,c=/^\[(x| )\](?=\s)/i,h=n.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,d=/^ {0,3}(?:\={1,}|-{2,})\s*$/,f=/^[^#!\[\]*_\\<>` "'(~:]+/,p=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,g=/^\s*\[[^\]]+?\]:.*$/,m=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,v=" ";function y(t,e,n){return e.f=e.inline=n,n(t,e)}function w(t,e,n){return e.f=e.block=n,n(t,e)}function b(t){return!t||!/\S/.test(t.string)}function x(e){if(e.linkTitle=!1,e.linkHref=!1,e.linkText=!1,e.em=!1,e.strong=!1,e.strikethrough=!1,e.quote=0,e.indentedCode=!1,e.f==P){var n=r;if(!n){var o=t.innerMode(i,e.htmlState);n="xml"==o.mode.name&&null===o.state.tagStart&&!o.state.context&&o.state.tokenize.isInText}n&&(e.f=M,e.block=S,e.htmlState=null)}return e.trailingSpace=0,e.trailingSpaceNewLine=!1,e.prevLine=e.thisLine,e.thisLine={stream:null},null}function S(e,i){var r=e.column()===i.indentation,s=b(i.prevLine.stream),f=i.indentedCode,m=i.prevLine.hr,v=!1!==i.list,w=(i.listStack[i.listStack.length-1]||0)+3;i.indentedCode=!1;var x=i.indentation;if(null===i.indentationDiff&&(i.indentationDiff=i.indentation,v)){for(i.list=null;x<i.listStack[i.listStack.length-1];)i.listStack.pop(),i.listStack.length?i.indentation=i.listStack[i.listStack.length-1]:i.list=!1;!1!==i.list&&(i.indentationDiff=x-i.listStack[i.listStack.length-1])}var S=!(s||m||i.prevLine.header||v&&f||i.prevLine.fencedCodeEnd),P=(!1===i.list||m||s)&&i.indentation<=w&&e.match(l),A=null;if(i.indentationDiff>=4&&(f||i.prevLine.fencedCodeEnd||i.prevLine.header||s))return e.skipToEnd(),i.indentedCode=!0,a.code;if(e.eatSpace())return null;if(r&&i.indentation<=w&&(A=e.match(h))&&A[1].length<=6)return i.quote=0,i.header=A[1].length,i.thisLine.header=!0,n.highlightFormatting&&(i.formatting="header"),i.f=i.inline,C(i);if(i.indentation<=w&&e.eat(">"))return i.quote=r?1:i.quote+1,n.highlightFormatting&&(i.formatting="quote"),e.eatSpace(),C(i);if(!P&&!i.setext&&r&&i.indentation<=w&&(A=e.match(u))){var M=A[1]?"ol":"ul";return i.indentation=x+e.current().length,i.list=!0,i.quote=0,i.listStack.push(i.indentation),i.em=!1,i.strong=!1,i.code=!1,i.strikethrough=!1,n.taskLists&&e.match(c,!1)&&(i.taskList=!0),i.f=i.inline,n.highlightFormatting&&(i.formatting=["list","list-"+M]),C(i)}return r&&i.indentation<=w&&(A=e.match(p,!0))?(i.quote=0,i.fencedEndRE=new RegExp(A[1]+"+ *$"),i.localMode=n.fencedCodeBlockHighlighting&&o(A[2]||n.fencedCodeBlockDefaultMode),i.localMode&&(i.localState=t.startState(i.localMode)),i.f=i.block=k,n.highlightFormatting&&(i.formatting="code-block"),i.code=-1,C(i)):i.setext||!(S&&v||i.quote||!1!==i.list||i.code||P||g.test(e.string))&&(A=e.lookAhead(1))&&(A=A.match(d))?(i.setext?(i.header=i.setext,i.setext=0,e.skipToEnd(),n.highlightFormatting&&(i.formatting="header")):(i.header="="==A[0].charAt(0)?1:2,i.setext=i.header),i.thisLine.header=!0,i.f=i.inline,C(i)):P?(e.skipToEnd(),i.hr=!0,i.thisLine.hr=!0,a.hr):"["===e.peek()?y(e,i,j):y(e,i,i.inline)}function P(e,n){var o=i.token(e,n.htmlState);if(!r){var a=t.innerMode(i,n.htmlState);("xml"==a.mode.name&&null===a.state.tagStart&&!a.state.context&&a.state.tokenize.isInText||n.md_inside&&e.current().indexOf(">")>-1)&&(n.f=M,n.block=S,n.htmlState=null)}return o}function k(t,e){var i,r=e.listStack[e.listStack.length-1]||0,o=e.indentation<r,s=r+3;return e.fencedEndRE&&e.indentation<=s&&(o||t.match(e.fencedEndRE))?(n.highlightFormatting&&(e.formatting="code-block"),o||(i=C(e)),e.localMode=e.localState=null,e.block=S,e.f=M,e.fencedEndRE=null,e.code=0,e.thisLine.fencedCodeEnd=!0,o?w(t,e,e.block):i):e.localMode?e.localMode.token(t,e.localState):(t.skipToEnd(),a.code)}function C(t){var e=[];if(t.formatting){e.push(a.formatting),"string"==typeof t.formatting&&(t.formatting=[t.formatting]);for(var i=0;i<t.formatting.length;i++)e.push(a.formatting+"-"+t.formatting[i]),"header"===t.formatting[i]&&e.push(a.formatting+"-"+t.formatting[i]+"-"+t.header),"quote"===t.formatting[i]&&(!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=t.quote?e.push(a.formatting+"-"+t.formatting[i]+"-"+t.quote):e.push("error"))}if(t.taskOpen)return e.push("meta"),e.length?e.join(" "):null;if(t.taskClosed)return e.push("property"),e.length?e.join(" "):null;if(t.linkHref?e.push(a.linkHref,"url"):(t.strong&&e.push(a.strong),t.em&&e.push(a.em),t.strikethrough&&e.push(a.strikethrough),t.emoji&&e.push(a.emoji),t.linkText&&e.push(a.linkText),t.code&&e.push(a.code),t.image&&e.push(a.image),t.imageAltText&&e.push(a.imageAltText,"link"),t.imageMarker&&e.push(a.imageMarker)),t.header&&e.push(a.header,a.header+"-"+t.header),t.quote&&(e.push(a.quote),!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=t.quote?e.push(a.quote+"-"+t.quote):e.push(a.quote+"-"+n.maxBlockquoteDepth)),!1!==t.list){var r=(t.listStack.length-1)%3;r?1===r?e.push(a.list2):e.push(a.list3):e.push(a.list1)}return t.trailingSpaceNewLine?e.push("trailing-space-new-line"):t.trailingSpace&&e.push("trailing-space-"+(t.trailingSpace%2?"a":"b")),e.length?e.join(" "):null}function A(t,e){if(t.match(f,!0))return C(e)}function M(e,r){var o=r.text(e,r);if(void 0!==o)return o;if(r.list)return r.list=null,C(r);if(r.taskList)return" "===e.match(c,!0)[1]?r.taskOpen=!0:r.taskClosed=!0,n.highlightFormatting&&(r.formatting="task"),r.taskList=!1,C(r);if(r.taskOpen=!1,r.taskClosed=!1,r.header&&e.match(/^#+$/,!0))return n.highlightFormatting&&(r.formatting="header"),C(r);var s=e.next();if(r.linkTitle){r.linkTitle=!1;var l=s;"("===s&&(l=")");var u="^\\s*(?:[^"+(l=(l+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1"))+"\\\\]+|\\\\\\\\|\\\\.)"+l;if(e.match(new RegExp(u),!0))return a.linkHref}if("`"===s){var h=r.formatting;n.highlightFormatting&&(r.formatting="code"),e.eatWhile("`");var d=e.current().length;if(0!=r.code||r.quote&&1!=d){if(d==r.code){var f=C(r);return r.code=0,f}return r.formatting=h,C(r)}return r.code=d,C(r)}if(r.code)return C(r);if("\\"===s&&(e.next(),n.highlightFormatting)){var p=C(r),g=a.formatting+"-escape";return p?p+" "+g:g}if("!"===s&&e.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return r.imageMarker=!0,r.image=!0,n.highlightFormatting&&(r.formatting="image"),C(r);if("["===s&&r.imageMarker&&e.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return r.imageMarker=!1,r.imageAltText=!0,n.highlightFormatting&&(r.formatting="image"),C(r);if("]"===s&&r.imageAltText){n.highlightFormatting&&(r.formatting="image");var p=C(r);return r.imageAltText=!1,r.image=!1,r.inline=r.f=L,p}if("["===s&&!r.image)return r.linkText&&e.match(/^.*?\]/)||(r.linkText=!0,n.highlightFormatting&&(r.formatting="link")),C(r);if("]"===s&&r.linkText){n.highlightFormatting&&(r.formatting="link");var p=C(r);return r.linkText=!1,r.inline=r.f=e.match(/\(.*?\)| ?\[.*?\]/,!1)?L:M,p}if("<"===s&&e.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1))return r.f=r.inline=E,n.highlightFormatting&&(r.formatting="link"),(p=C(r))?p+=" ":p="",p+a.linkInline;if("<"===s&&e.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1))return r.f=r.inline=E,n.highlightFormatting&&(r.formatting="link"),(p=C(r))?p+=" ":p="",p+a.linkEmail;if(n.xml&&"<"===s&&e.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var v=e.string.indexOf(">",e.pos);if(-1!=v){var y=e.string.substring(e.start,v);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(y)&&(r.md_inside=!0)}return e.backUp(1),r.htmlState=t.startState(i),w(e,r,P)}if(n.xml&&"<"===s&&e.match(/^\/\w*?>/))return r.md_inside=!1,"tag";if("*"===s||"_"===s){for(var b=1,x=1==e.pos?" ":e.string.charAt(e.pos-2);b<3&&e.eat(s);)b++;var S=e.peek()||" ",k=!/\s/.test(S)&&(!m.test(S)||/\s/.test(x)||m.test(x)),A=!/\s/.test(x)&&(!m.test(x)||/\s/.test(S)||m.test(S)),T=null,N=null;if(b%2&&(r.em||!k||"*"!==s&&A&&!m.test(x)?r.em!=s||!A||"*"!==s&&k&&!m.test(S)||(T=!1):T=!0),b>1&&(r.strong||!k||"*"!==s&&A&&!m.test(x)?r.strong!=s||!A||"*"!==s&&k&&!m.test(S)||(N=!1):N=!0),null!=N||null!=T)return n.highlightFormatting&&(r.formatting=null==T?"strong":null==N?"em":"strong em"),!0===T&&(r.em=s),!0===N&&(r.strong=s),f=C(r),!1===T&&(r.em=!1),!1===N&&(r.strong=!1),f}else if(" "===s&&(e.eat("*")||e.eat("_"))){if(" "===e.peek())return C(r);e.backUp(1)}if(n.strikethrough)if("~"===s&&e.eatWhile(s)){if(r.strikethrough)return n.highlightFormatting&&(r.formatting="strikethrough"),f=C(r),r.strikethrough=!1,f;if(e.match(/^[^\s]/,!1))return r.strikethrough=!0,n.highlightFormatting&&(r.formatting="strikethrough"),C(r)}else if(" "===s&&e.match(/^~~/,!0)){if(" "===e.peek())return C(r);e.backUp(2)}if(n.emoji&&":"===s&&e.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){r.emoji=!0,n.highlightFormatting&&(r.formatting="emoji");var j=C(r);return r.emoji=!1,j}return" "===s&&(e.match(/^ +$/,!1)?r.trailingSpace++:r.trailingSpace&&(r.trailingSpaceNewLine=!0)),C(r)}function E(t,e){if(">"===t.next()){e.f=e.inline=M,n.highlightFormatting&&(e.formatting="link");var i=C(e);return i?i+=" ":i="",i+a.linkInline}return t.match(/^[^>]+/,!0),a.linkInline}function L(t,e){if(t.eatSpace())return null;var i=t.next();return"("===i||"["===i?(e.f=e.inline=N("("===i?")":"]"),n.highlightFormatting&&(e.formatting="link-string"),e.linkHref=!0,C(e)):"error"}var T={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function N(t){return function(e,i){if(e.next()===t){i.f=i.inline=M,n.highlightFormatting&&(i.formatting="link-string");var r=C(i);return i.linkHref=!1,r}return e.match(T[t]),i.linkHref=!0,C(i)}}function j(t,e){return t.match(/^([^\]\\]|\\.)*\]:/,!1)?(e.f=I,t.next(),n.highlightFormatting&&(e.formatting="link"),e.linkText=!0,C(e)):y(t,e,M)}function I(t,e){if(t.match(/^\]:/,!0)){e.f=e.inline=B,n.highlightFormatting&&(e.formatting="link");var i=C(e);return e.linkText=!1,i}return t.match(/^([^\]\\]|\\.)+/,!0),a.linkText}function B(t,e){return t.eatSpace()?null:(t.match(/^[^\s]+/,!0),void 0===t.peek()?e.linkTitle=!0:t.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),e.f=e.inline=M,a.linkHref+" url")}var O={startState:function(){return{f:S,prevLine:{stream:null},thisLine:{stream:null},block:S,htmlState:null,indentation:0,inline:M,text:A,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(e){return{f:e.f,prevLine:e.prevLine,thisLine:e.thisLine,block:e.block,htmlState:e.htmlState&&t.copyState(i,e.htmlState),indentation:e.indentation,localMode:e.localMode,localState:e.localMode?t.copyState(e.localMode,e.localState):null,inline:e.inline,text:e.text,formatting:!1,linkText:e.linkText,linkTitle:e.linkTitle,linkHref:e.linkHref,code:e.code,em:e.em,strong:e.strong,strikethrough:e.strikethrough,emoji:e.emoji,header:e.header,setext:e.setext,hr:e.hr,taskList:e.taskList,list:e.list,listStack:e.listStack.slice(0),quote:e.quote,indentedCode:e.indentedCode,trailingSpace:e.trailingSpace,trailingSpaceNewLine:e.trailingSpaceNewLine,md_inside:e.md_inside,fencedEndRE:e.fencedEndRE}},token:function(t,e){if(e.formatting=!1,t!=e.thisLine.stream){if(e.header=0,e.hr=!1,t.match(/^\s*$/,!0))return x(e),null;if(e.prevLine=e.thisLine,e.thisLine={stream:t},e.taskList=!1,e.trailingSpace=0,e.trailingSpaceNewLine=!1,!e.localState&&(e.f=e.block,e.f!=P)){var n=t.match(/^\s*/,!0)[0].replace(/\t/g,v).length;if(e.indentation=n,e.indentationDiff=null,n>0)return null}}return e.f(t,e)},innerMode:function(t){return t.block==P?{state:t.htmlState,mode:i}:t.localState?{state:t.localState,mode:t.localMode}:{state:t,mode:O}},indent:function(e,n,r){return e.block==P&&i.indent?i.indent(e.htmlState,n,r):e.localState&&e.localMode.indent?e.localMode.indent(e.localState,n,r):t.Pass},blankLine:x,getType:C,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return O}),"xml"),t.defineMIME("text/markdown","markdown"),t.defineMIME("text/x-markdown","markdown")}(n(89780),n(15525),n(98101))},98101:function(t,e,n){!function(t){"use strict";t.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var e=0;e<t.modeInfo.length;e++){var n=t.modeInfo[e];n.mimes&&(n.mime=n.mimes[0])}t.findModeByMIME=function(e){e=e.toLowerCase();for(var n=0;n<t.modeInfo.length;n++){var i=t.modeInfo[n];if(i.mime==e)return i;if(i.mimes)for(var r=0;r<i.mimes.length;r++)if(i.mimes[r]==e)return i}return/\+xml$/.test(e)?t.findModeByMIME("application/xml"):/\+json$/.test(e)?t.findModeByMIME("application/json"):void 0},t.findModeByExtension=function(e){e=e.toLowerCase();for(var n=0;n<t.modeInfo.length;n++){var i=t.modeInfo[n];if(i.ext)for(var r=0;r<i.ext.length;r++)if(i.ext[r]==e)return i}},t.findModeByFileName=function(e){for(var n=0;n<t.modeInfo.length;n++){var i=t.modeInfo[n];if(i.file&&i.file.test(e))return i}var r=e.lastIndexOf("."),o=r>-1&&e.substring(r+1,e.length);if(o)return t.findModeByExtension(o)},t.findModeByName=function(e){e=e.toLowerCase();for(var n=0;n<t.modeInfo.length;n++){var i=t.modeInfo[n];if(i.name.toLowerCase()==e)return i;if(i.alias)for(var r=0;r<i.alias.length;r++)if(i.alias[r].toLowerCase()==e)return i}}}(n(89780))},67549:function(t,e,n){!function(t){"use strict";t.defineMode("stex",(function(t,e){function n(t,e){t.cmdState.push(e)}function i(t){return t.cmdState.length>0?t.cmdState[t.cmdState.length-1]:null}function r(t){var e=t.cmdState.pop();e&&e.closeBracket()}function o(t){for(var e=t.cmdState,n=e.length-1;n>=0;n--){var i=e[n];if("DEFAULT"!=i.name)return i}return{styleIdentifier:function(){return null}}}function a(t,e,n){return function(){this.name=t,this.bracketNo=0,this.style=e,this.styles=n,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var s={};function l(t,e){t.f=e}function u(t,e){var r;if(t.match(/^\\[a-zA-Z@]+/)){var a=t.current().slice(1);return n(e,r=new(r=s.hasOwnProperty(a)?s[a]:s.DEFAULT)),l(e,h),r.style}if(t.match(/^\\[$&%#{}_]/))return"tag";if(t.match(/^\\[,;!\/\\]/))return"tag";if(t.match("\\["))return l(e,(function(t,e){return c(t,e,"\\]")})),"keyword";if(t.match("\\("))return l(e,(function(t,e){return c(t,e,"\\)")})),"keyword";if(t.match("$$"))return l(e,(function(t,e){return c(t,e,"$$")})),"keyword";if(t.match("$"))return l(e,(function(t,e){return c(t,e,"$")})),"keyword";var u=t.next();return"%"==u?(t.skipToEnd(),"comment"):"}"==u||"]"==u?(r=i(e))?(r.closeBracket(u),l(e,h),"bracket"):"error":"{"==u||"["==u?(n(e,r=new(r=s.DEFAULT)),"bracket"):/\d/.test(u)?(t.eatWhile(/[\w.%]/),"atom"):(t.eatWhile(/[\w\-_]/),"begin"==(r=o(e)).name&&(r.argument=t.current()),r.styleIdentifier())}function c(t,e,n){if(t.eatSpace())return null;if(n&&t.match(n))return l(e,u),"keyword";if(t.match(/^\\[a-zA-Z@]+/))return"tag";if(t.match(/^[a-zA-Z]+/))return"variable-2";if(t.match(/^\\[$&%#{}_]/))return"tag";if(t.match(/^\\[,;!\/]/))return"tag";if(t.match(/^[\^_&]/))return"tag";if(t.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(t.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var i=t.next();return"{"==i||"}"==i||"["==i||"]"==i||"("==i||")"==i?"bracket":"%"==i?(t.skipToEnd(),"comment"):"error"}function h(t,e){var n=t.peek();return"{"==n||"["==n?(i(e).openBracket(n),t.eat(n),l(e,u),"bracket"):/[ \t\r]/.test(n)?(t.eat(n),null):(l(e,u),r(e),u(t,e))}return s.importmodule=a("importmodule","tag",["string","builtin"]),s.documentclass=a("documentclass","tag",["","atom"]),s.usepackage=a("usepackage","tag",["atom"]),s.begin=a("begin","tag",["atom"]),s.end=a("end","tag",["atom"]),s.label=a("label","tag",["atom"]),s.ref=a("ref","tag",["atom"]),s.eqref=a("eqref","tag",["atom"]),s.cite=a("cite","tag",["atom"]),s.bibitem=a("bibitem","tag",["atom"]),s.Bibitem=a("Bibitem","tag",["atom"]),s.RBibitem=a("RBibitem","tag",["atom"]),s.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}},{startState:function(){return{cmdState:[],f:e.inMathMode?function(t,e){return c(t,e)}:u}},copyState:function(t){return{cmdState:t.cmdState.slice(),f:t.f}},token:function(t,e){return e.f(t,e)},blankLine:function(t){t.f=u,t.cmdState.length=0},lineComment:"%"}})),t.defineMIME("text/x-stex","stex"),t.defineMIME("text/x-latex","stex")}(n(89780))},15525:function(t,e,n){!function(t){"use strict";var e={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};t.defineMode("xml",(function(i,r){var o,a,s=i.indentUnit,l={},u=r.htmlMode?e:n;for(var c in u)l[c]=u[c];for(var c in r)l[c]=r[c];function h(t,e){function n(n){return e.tokenize=n,n(t,e)}var i=t.next();return"<"==i?t.eat("!")?t.eat("[")?t.match("CDATA[")?n(p("atom","]]>")):null:t.match("--")?n(p("comment","--\x3e")):t.match("DOCTYPE",!0,!0)?(t.eatWhile(/[\w\._\-]/),n(g(1))):null:t.eat("?")?(t.eatWhile(/[\w\._\-]/),e.tokenize=p("meta","?>"),"meta"):(o=t.eat("/")?"closeTag":"openTag",e.tokenize=d,"tag bracket"):"&"==i?(t.eat("#")?t.eat("x")?t.eatWhile(/[a-fA-F\d]/)&&t.eat(";"):t.eatWhile(/[\d]/)&&t.eat(";"):t.eatWhile(/[\w\.\-:]/)&&t.eat(";"))?"atom":"error":(t.eatWhile(/[^&<]/),null)}function d(t,e){var n=t.next();if(">"==n||"/"==n&&t.eat(">"))return e.tokenize=h,o=">"==n?"endTag":"selfcloseTag","tag bracket";if("="==n)return o="equals",null;if("<"==n){e.tokenize=h,e.state=w,e.tagName=e.tagStart=null;var i=e.tokenize(t,e);return i?i+" tag error":"tag error"}return/[\'\"]/.test(n)?(e.tokenize=f(n),e.stringStartCol=t.column(),e.tokenize(t,e)):(t.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function f(t){var e=function(e,n){for(;!e.eol();)if(e.next()==t){n.tokenize=d;break}return"string"};return e.isInAttribute=!0,e}function p(t,e){return function(n,i){for(;!n.eol();){if(n.match(e)){i.tokenize=h;break}n.next()}return t}}function g(t){return function(e,n){for(var i;null!=(i=e.next());){if("<"==i)return n.tokenize=g(t+1),n.tokenize(e,n);if(">"==i){if(1==t){n.tokenize=h;break}return n.tokenize=g(t-1),n.tokenize(e,n)}}return"meta"}}function m(t,e,n){this.prev=t.context,this.tagName=e,this.indent=t.indented,this.startOfLine=n,(l.doNotIndent.hasOwnProperty(e)||t.context&&t.context.noIndent)&&(this.noIndent=!0)}function v(t){t.context&&(t.context=t.context.prev)}function y(t,e){for(var n;;){if(!t.context)return;if(n=t.context.tagName,!l.contextGrabbers.hasOwnProperty(n)||!l.contextGrabbers[n].hasOwnProperty(e))return;v(t)}}function w(t,e,n){return"openTag"==t?(n.tagStart=e.column(),b):"closeTag"==t?x:w}function b(t,e,n){return"word"==t?(n.tagName=e.current(),a="tag",k):l.allowMissingTagName&&"endTag"==t?(a="tag bracket",k(t,e,n)):(a="error",b)}function x(t,e,n){if("word"==t){var i=e.current();return n.context&&n.context.tagName!=i&&l.implicitlyClosed.hasOwnProperty(n.context.tagName)&&v(n),n.context&&n.context.tagName==i||!1===l.matchClosing?(a="tag",S):(a="tag error",P)}return l.allowMissingTagName&&"endTag"==t?(a="tag bracket",S(t,e,n)):(a="error",P)}function S(t,e,n){return"endTag"!=t?(a="error",S):(v(n),w)}function P(t,e,n){return a="error",S(t,e,n)}function k(t,e,n){if("word"==t)return a="attribute",C;if("endTag"==t||"selfcloseTag"==t){var i=n.tagName,r=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==t||l.autoSelfClosers.hasOwnProperty(i)?y(n,i):(y(n,i),n.context=new m(n,i,r==n.indented)),w}return a="error",k}function C(t,e,n){return"equals"==t?A:(l.allowMissing||(a="error"),k(t,e,n))}function A(t,e,n){return"string"==t?M:"word"==t&&l.allowUnquoted?(a="string",k):(a="error",k(t,e,n))}function M(t,e,n){return"string"==t?M:k(t,e,n)}return h.isInText=!0,{startState:function(t){var e={tokenize:h,state:w,indented:t||0,tagName:null,tagStart:null,context:null};return null!=t&&(e.baseIndent=t),e},token:function(t,e){if(!e.tagName&&t.sol()&&(e.indented=t.indentation()),t.eatSpace())return null;o=null;var n=e.tokenize(t,e);return(n||o)&&"comment"!=n&&(a=null,e.state=e.state(o||n,t,e),a&&(n="error"==a?n+" error":a)),n},indent:function(e,n,i){var r=e.context;if(e.tokenize.isInAttribute)return e.tagStart==e.indented?e.stringStartCol+1:e.indented+s;if(r&&r.noIndent)return t.Pass;if(e.tokenize!=d&&e.tokenize!=h)return i?i.match(/^(\s*)/)[0].length:0;if(e.tagName)return!1!==l.multilineTagIndentPastTag?e.tagStart+e.tagName.length+2:e.tagStart+s*(l.multilineTagIndentFactor||1);if(l.alignCDATA&&/<!\[CDATA\[/.test(n))return 0;var o=n&&/^<(\/)?([\w_:\.-]*)/.exec(n);if(o&&o[1])for(;r;){if(r.tagName==o[2]){r=r.prev;break}if(!l.implicitlyClosed.hasOwnProperty(r.tagName))break;r=r.prev}else if(o)for(;r;){var a=l.contextGrabbers[r.tagName];if(!a||!a.hasOwnProperty(o[2]))break;r=r.prev}for(;r&&r.prev&&!r.startOfLine;)r=r.prev;return r?r.indent+s:e.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:l.htmlMode?"html":"xml",helperType:l.htmlMode?"html":"xml",skipAttribute:function(t){t.state==A&&(t.state=k)},xmlCurrentTag:function(t){return t.tagName?{name:t.tagName,close:"closeTag"==t.type}:null},xmlCurrentContext:function(t){for(var e=[],n=t.context;n;n=n.prev)n.tagName&&e.push(n.tagName);return e.reverse()}}})),t.defineMIME("text/xml","xml"),t.defineMIME("application/xml","xml"),t.mimeModes.hasOwnProperty("text/html")||t.defineMIME("text/html",{name:"xml",htmlMode:!0})}(n(89780))},25769:function(t,e,n){"use strict";var i=n(98040),r={"text/plain":"Text","text/html":"Url",default:"Text"};t.exports=function(t,e){var n,o,a,s,l,u,c=!1;e||(e={}),n=e.debug||!1;try{if(a=i(),s=document.createRange(),l=document.getSelection(),(u=document.createElement("span")).textContent=t,u.ariaHidden="true",u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",(function(i){if(i.stopPropagation(),e.format)if(i.preventDefault(),void 0===i.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var o=r[e.format]||r.default;window.clipboardData.setData(o,t)}else i.clipboardData.clearData(),i.clipboardData.setData(e.format,t);e.onCopy&&(i.preventDefault(),e.onCopy(i.clipboardData))})),document.body.appendChild(u),s.selectNodeContents(u),l.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");c=!0}catch(i){n&&console.error("unable to copy using execCommand: ",i),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",t),e.onCopy&&e.onCopy(window.clipboardData),c=!0}catch(i){n&&console.error("unable to copy using clipboardData: ",i),n&&console.error("falling back to prompt"),o=function(t){var e=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return t.replace(/#{\s*key\s*}/g,e)}("message"in e?e.message:"Copy to clipboard: #{key}, Enter"),window.prompt(o,t)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(s):l.removeAllRanges()),u&&document.body.removeChild(u),a()}return c}},3867:function(t,e,n){var i=n(97671);t.exports=function(){"use strict";function t(t){var e=typeof t;return null!==t&&("object"===e||"function"===e)}function e(t){return"function"==typeof t}var r=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},o=0,a=void 0,s=void 0,l=function(t,e){x[o]=t,x[o+1]=e,2===(o+=2)&&(s?s(S):k())};function u(t){s=t}function c(t){l=t}var h="undefined"!=typeof window?window:void 0,d=h||{},f=d.MutationObserver||d.WebKitMutationObserver,p="undefined"==typeof self&&void 0!==i&&"[object process]"==={}.toString.call(i),g="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function m(){return function(){return i.nextTick(S)}}function v(){return void 0!==a?function(){a(S)}:b()}function y(){var t=0,e=new f(S),n=document.createTextNode("");return e.observe(n,{characterData:!0}),function(){n.data=t=++t%2}}function w(){var t=new MessageChannel;return t.port1.onmessage=S,function(){return t.port2.postMessage(0)}}function b(){var t=setTimeout;return function(){return t(S,1)}}var x=new Array(1e3);function S(){for(var t=0;t<o;t+=2)(0,x[t])(x[t+1]),x[t]=void 0,x[t+1]=void 0;o=0}function P(){try{var t=Function("return this")().require("vertx");return a=t.runOnLoop||t.runOnContext,v()}catch(t){return b()}}var k=void 0;function C(t,e){var n=this,i=new this.constructor(E);void 0===i[M]&&X(i);var r=n._state;if(r){var o=arguments[r-1];l((function(){return Z(r,i,o,n._result)}))}else H(n,i,t,e);return i}function A(t){var e=this;if(t&&"object"==typeof t&&t.constructor===e)return t;var n=new e(E);return F(n,t),n}k=p?m():f?y():g?w():void 0===h?P():b();var M=Math.random().toString(36).substring(2);function E(){}var L=void 0,T=1,N=2;function j(){return new TypeError("You cannot resolve a promise with itself")}function I(){return new TypeError("A promises callback cannot return that same promise.")}function B(t,e,n,i){try{t.call(e,n,i)}catch(t){return t}}function O(t,e,n){l((function(t){var i=!1,r=B(n,e,(function(n){i||(i=!0,e!==n?F(t,n):G(t,n))}),(function(e){i||(i=!0,U(t,e))}),"Settle: "+(t._label||" unknown promise"));!i&&r&&(i=!0,U(t,r))}),t)}function D(t,e){e._state===T?G(t,e._result):e._state===N?U(t,e._result):H(e,void 0,(function(e){return F(t,e)}),(function(e){return U(t,e)}))}function R(t,n,i){n.constructor===t.constructor&&i===C&&n.constructor.resolve===A?D(t,n):void 0===i?G(t,n):e(i)?O(t,n,i):G(t,n)}function F(e,n){if(e===n)U(e,j());else if(t(n)){var i=void 0;try{i=n.then}catch(t){return void U(e,t)}R(e,n,i)}else G(e,n)}function z(t){t._onerror&&t._onerror(t._result),_(t)}function G(t,e){t._state===L&&(t._result=e,t._state=T,0!==t._subscribers.length&&l(_,t))}function U(t,e){t._state===L&&(t._state=N,t._result=e,l(z,t))}function H(t,e,n,i){var r=t._subscribers,o=r.length;t._onerror=null,r[o]=e,r[o+T]=n,r[o+N]=i,0===o&&t._state&&l(_,t)}function _(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var i=void 0,r=void 0,o=t._result,a=0;a<e.length;a+=3)i=e[a],r=e[a+n],i?Z(n,i,r,o):r(o);t._subscribers.length=0}}function Z(t,n,i,r){var o=e(i),a=void 0,s=void 0,l=!0;if(o){try{a=i(r)}catch(t){l=!1,s=t}if(n===a)return void U(n,I())}else a=r;n._state!==L||(o&&l?F(n,a):!1===l?U(n,s):t===T?G(n,a):t===N&&U(n,a))}function W(t,e){try{e((function(e){F(t,e)}),(function(e){U(t,e)}))}catch(e){U(t,e)}}var V=0;function Y(){return V++}function X(t){t[M]=V++,t._state=void 0,t._result=void 0,t._subscribers=[]}function q(){return new Error("Array Methods must be provided an Array")}var K=function(){function t(t,e){this._instanceConstructor=t,this.promise=new t(E),this.promise[M]||X(this.promise),r(e)?(this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?G(this.promise,this._result):(this.length=this.length||0,this._enumerate(e),0===this._remaining&&G(this.promise,this._result))):U(this.promise,q())}return t.prototype._enumerate=function(t){for(var e=0;this._state===L&&e<t.length;e++)this._eachEntry(t[e],e)},t.prototype._eachEntry=function(t,e){var n=this._instanceConstructor,i=n.resolve;if(i===A){var r=void 0,o=void 0,a=!1;try{r=t.then}catch(t){a=!0,o=t}if(r===C&&t._state!==L)this._settledAt(t._state,e,t._result);else if("function"!=typeof r)this._remaining--,this._result[e]=t;else if(n===nt){var s=new n(E);a?U(s,o):R(s,t,r),this._willSettleAt(s,e)}else this._willSettleAt(new n((function(e){return e(t)})),e)}else this._willSettleAt(i(t),e)},t.prototype._settledAt=function(t,e,n){var i=this.promise;i._state===L&&(this._remaining--,t===N?U(i,n):this._result[e]=n),0===this._remaining&&G(i,this._result)},t.prototype._willSettleAt=function(t,e){var n=this;H(t,void 0,(function(t){return n._settledAt(T,e,t)}),(function(t){return n._settledAt(N,e,t)}))},t}();function Q(t){return new K(this,t).promise}function J(t){var e=this;return r(t)?new e((function(n,i){for(var r=t.length,o=0;o<r;o++)e.resolve(t[o]).then(n,i)})):new e((function(t,e){return e(new TypeError("You must pass an array to race."))}))}function $(t){var e=new this(E);return U(e,t),e}function tt(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function et(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var nt=function(){function t(e){this[M]=Y(),this._result=this._state=void 0,this._subscribers=[],E!==e&&("function"!=typeof e&&tt(),this instanceof t?W(this,e):et())}return t.prototype.catch=function(t){return this.then(null,t)},t.prototype.finally=function(t){var n=this,i=n.constructor;return e(t)?n.then((function(e){return i.resolve(t()).then((function(){return e}))}),(function(e){return i.resolve(t()).then((function(){throw e}))})):n.then(t,t)},t}();function it(){var t=void 0;if(void 0!==n.g)t=n.g;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(t){throw new Error("polyfill failed because global object is unavailable in this environment")}var e=t.Promise;if(e){var i=null;try{i=Object.prototype.toString.call(e.resolve())}catch(t){}if("[object Promise]"===i&&!e.cast)return}t.Promise=nt}return nt.prototype.then=C,nt.all=Q,nt.race=J,nt.resolve=A,nt.reject=$,nt._setScheduler=u,nt._setAsap=c,nt._asap=l,nt.polyfill=it,nt.Promise=nt,nt}()},86204:function(t){"use strict";var e,n="object"==typeof Reflect?Reflect:null,i=n&&"function"==typeof n.apply?n.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)};e=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var r=Number.isNaN||function(t){return t!=t};function o(){o.init.call(this)}t.exports=o,t.exports.once=function(t,e){return new Promise((function(n,i){function r(n){t.removeListener(e,o),i(n)}function o(){"function"==typeof t.removeListener&&t.removeListener("error",r),n([].slice.call(arguments))}g(t,e,o,{once:!0}),"error"!==e&&function(t,e,n){"function"==typeof t.on&&g(t,"error",e,n)}(t,r,{once:!0})}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function s(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function l(t){return void 0===t._maxListeners?o.defaultMaxListeners:t._maxListeners}function u(t,e,n,i){var r,o,a;if(s(n),void 0===(o=t._events)?(o=t._events=Object.create(null),t._eventsCount=0):(void 0!==o.newListener&&(t.emit("newListener",e,n.listener?n.listener:n),o=t._events),a=o[e]),void 0===a)a=o[e]=n,++t._eventsCount;else if("function"==typeof a?a=o[e]=i?[n,a]:[a,n]:i?a.unshift(n):a.push(n),(r=l(t))>0&&a.length>r&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=t,u.type=e,u.count=a.length,function(t){console&&console.warn&&console.warn(t)}(u)}return t}function c(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(t,e,n){var i={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},r=c.bind(i);return r.listener=n,i.wrapFn=r,r}function d(t,e,n){var i=t._events;if(void 0===i)return[];var r=i[e];return void 0===r?[]:"function"==typeof r?n?[r.listener||r]:[r]:n?function(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}(r):p(r,r.length)}function f(t){var e=this._events;if(void 0!==e){var n=e[t];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function p(t,e){for(var n=new Array(e),i=0;i<e;++i)n[i]=t[i];return n}function g(t,e,n,i){if("function"==typeof t.on)i.once?t.once(e,n):t.on(e,n);else{if("function"!=typeof t.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t);t.addEventListener(e,(function r(o){i.once&&t.removeEventListener(e,r),n(o)}))}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(t){if("number"!=typeof t||t<0||r(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");a=t}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||r(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},o.prototype.getMaxListeners=function(){return l(this)},o.prototype.emit=function(t){for(var e=[],n=1;n<arguments.length;n++)e.push(arguments[n]);var r="error"===t,o=this._events;if(void 0!==o)r=r&&void 0===o.error;else if(!r)return!1;if(r){var a;if(e.length>0&&(a=e[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=o[t];if(void 0===l)return!1;if("function"==typeof l)i(l,this,e);else{var u=l.length,c=p(l,u);for(n=0;n<u;++n)i(c[n],this,e)}return!0},o.prototype.addListener=function(t,e){return u(this,t,e,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(t,e){return u(this,t,e,!0)},o.prototype.once=function(t,e){return s(e),this.on(t,h(this,t,e)),this},o.prototype.prependOnceListener=function(t,e){return s(e),this.prependListener(t,h(this,t,e)),this},o.prototype.removeListener=function(t,e){var n,i,r,o,a;if(s(e),void 0===(i=this._events))return this;if(void 0===(n=i[t]))return this;if(n===e||n.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete i[t],i.removeListener&&this.emit("removeListener",t,n.listener||e));else if("function"!=typeof n){for(r=-1,o=n.length-1;o>=0;o--)if(n[o]===e||n[o].listener===e){a=n[o].listener,r=o;break}if(r<0)return this;0===r?n.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(n,r),1===n.length&&(i[t]=n[0]),void 0!==i.removeListener&&this.emit("removeListener",t,a||e)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(t){var e,n,i;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[t]),this;if(0===arguments.length){var r,o=Object.keys(n);for(i=0;i<o.length;++i)"removeListener"!==(r=o[i])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=n[t]))this.removeListener(t,e);else if(void 0!==e)for(i=e.length-1;i>=0;i--)this.removeListener(t,e[i]);return this},o.prototype.listeners=function(t){return d(this,t,!0)},o.prototype.rawListeners=function(t){return d(this,t,!1)},o.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):f.call(t,e)},o.prototype.listenerCount=f,o.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},12378:function(t,e,n){"use strict";n.d(e,{$u:function(){return a},E9:function(){return o},FJ:function(){return u},KX:function(){return c},NB:function(){return y},S0:function(){return h},Vm:function(){return b},YI:function(){return d},ZA:function(){return r},Zt:function(){return s},al:function(){return m},bn:function(){return g},bx:function(){return f},rU:function(){return w},s_:function(){return p},uz:function(){return v},z6:function(){return l}}),t=n.hmd(t),function(){var e;function i(t){var e=0;return function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}}function r(t){var e="undefined"!=typeof Symbol&&Symbol.iterator&&t[Symbol.iterator];return e?e.call(t):{next:i(t)}}function o(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}var a,s="function"==typeof Object.create?Object.create:function(t){function e(){}return e.prototype=t,new e};if("function"==typeof Object.setPrototypeOf)a=Object.setPrototypeOf;else{var l;t:{var u={};try{u.__proto__={a:!0},l=u.a;break t}catch(t){}l=!1}a=l?function(t,e){if(t.__proto__=e,t.__proto__!==e)throw new TypeError(t+" is not extensible");return t}:null}var c=a;function h(t,e){if(t.prototype=s(e.prototype),t.prototype.constructor=t,c)c(t,e);else for(var n in e)if("prototype"!=n)if(Object.defineProperties){var i=Object.getOwnPropertyDescriptor(e,n);i&&Object.defineProperty(t,n,i)}else t[n]=e[n];t.QA=e.prototype}var d=void 0!==n.g&&null!=n.g?n.g:self,f="function"==typeof Object.assign?Object.assign:function(t,e){for(var n=1;n<arguments.length;n++){var i=arguments[n];if(i)for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t},p="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,n){t!=Array.prototype&&t!=Object.prototype&&(t[e]=n.value)};function g(t,e){if(e){var n=d;t=t.split(".");for(var i=0;i<t.length-1;i++){var r=t[i];r in n||(n[r]={}),n=n[r]}(e=e(i=n[t=t[t.length-1]]))!=i&&null!=e&&p(n,t,{writable:!0,value:e})}}g("Object.assign",(function(t){return t||f})),g("Array.prototype.fill",(function(t){return t||function(t,e,n){var i=this.length||0;for(0>e&&(e=Math.max(0,i+e)),(null==n||n>i)&&(n=i),0>(n=Number(n))&&(n=Math.max(0,i+n)),e=Number(e||0);e<n;e++)this[e]=t;return this}}));var m="object"==typeof globalThis&&globalThis||"object"==typeof n.g&&n.g.global===n.g&&n.g||"object"==typeof self&&self.self===self&&self||{};function v(){}function y(t,e){var n=-1;return function(){var i=this,r=arguments;-1!==n&&m.clearTimeout(n),n=w((function(){n=-1,t.apply(i,r)}),e)}}function w(t,e){return m.setTimeout(t,e)}function b(t){return m.document.createElement(t)}function x(t){throw Error(t)}function S(t,e){t="The object is frozen, so its properties cannot be set: "+t.toString(),void 0!==e&&(t+=" to value: "+e),x(t)}function P(t,e,n,i){n=null===n?"*":"string"==typeof n?n:"function"==typeof n&&"string"==typeof n.className?n.className:"",void 0!==i&&(n+="."+i),x(n+" is not in the range "+e+": "+t)}function k(t){m.console&&m.console.log(t)}function C(t){return"object"==typeof t&&null!==t}function A(t){return Array.isArray(t)||m.NodeList&&t instanceof m.NodeList||m.HTMLCollection&&t instanceof m.HTMLCollection}function M(t){return Array.prototype.slice.call(t)}function E(t,e,n){Array.isArray(t)?e>=t.length?t.push(n):t.splice(e,0,n):x("Cannot insert an object into an HTMLCollection or NodeList: "+n+" at "+e)}function L(t,e){Array.isArray(t)?e>=t.length?t.pop():t.splice(e,1):x("Cannot remove an object from an HTMLCollection or NodeList at "+e)}function T(){var t=z.pop();return void 0===t?[]:t}function N(t){t.length=0,z.push(t)}function j(t){if("function"==typeof t){if(t.className)return t.className;if(t.name)return t.name;var e=t.toString();if(""!==(e=e.substring(9,e.indexOf("(")).trim()))return t._className=e}else if(C(t)&&t.constructor)return j(t.constructor);return typeof t}function I(t){var e=t;return C(t)&&(t.text?e=t.text:t.name?e=t.name:void 0!==t.key?e=t.key:void 0!==t.id?e=t.id:t.constructor===Object&&(t.Text?e=t.Text:t.Name?e=t.Name:void 0!==t.Key?e=t.Key:void 0!==t.Id?e=t.Id:void 0!==t.ID&&(e=t.ID))),void 0===e?"undefined":null===e?"null":e.toString()}function B(t,e){if(t.hasOwnProperty(e))return!0;for(t=Object.getPrototypeOf(t);t&&t!==Function;){if(t.hasOwnProperty(e))return!0;var n=t.CA;if(n&&n[e])return!0;t=Object.getPrototypeOf(t)}return!1}function O(t,e,n){Object.defineProperty(bn.prototype,t,{get:e,set:n})}function D(t){for(var e=[],n=0;256>n;n++)e["0123456789abcdef".charAt(n>>4)+"0123456789abcdef".charAt(15&n)]=String.fromCharCode(n);t.length%2&&(t="0"+t),n=[];for(var i=0,r=0;r<t.length;r+=2)n[i++]=e[t.substr(r,2)];for(t=""===(t=n.join(""))?"0":t,e=[],n=0;256>n;n++)e[n]=n;for(n=i=0;256>n;n++)i=(i+e[n]+119)%256,r=e[n],e[n]=e[i],e[i]=r;i=n=0;for(var o="",a=0;a<t.length;a++)i=(i+e[n=(n+1)%256])%256,r=e[n],e[n]=e[i],e[i]=r,o+=String.fromCharCode(t.charCodeAt(a)^e[(e[n]+e[i])%256]);return o.indexOf("GoJS 2.1 evaluation")>-1||o.indexOf("© 1998-2021 Northwoods Software")>-1||o.indexOf("Not for distribution or production use")>-1||o.indexOf("gojs.net")>-1?"":o}void 0===m.requestAnimationFrame&&(void 0===m.setImmediate?m.requestAnimationFrame=function(t){m.setTimeout(t,0)}:m.requestAnimationFrame=m.setImmediate);var R=void 0!==m.navigator&&0<m.navigator.userAgent.indexOf("Trident/7"),F=void 0!==m.navigator&&void 0!==m.navigator.platform&&null!==m.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i),z=[];function G(t,e,n){$(this),this.j=t,this.xa=e,this.o=n}function U(t,e){return null==e||""===e?null:t[e]}function H(){this.ew=[]}function _(){}Object.freeze([]),v.className="Util",v.Dx="32ab5ff3b26f42dc0ed90f21472913b5",v.adym="gojs.net",v.vfo="28e645fdb266",v.className="Util",G.prototype.toString=function(){return"EnumValue."+this.xa},d.Object.defineProperties(G.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),G.className="EnumValue",H.prototype.toString=function(){return this.ew.join("")},H.prototype.add=function(t){""!==t&&this.ew.push(t)},H.className="StringBuilder",_.className="PropertyCollection";var Z={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(t){m.console&&m.console.log(t)},HA:function(t,e,n,i){t.strokeStyle="red",t.fillStyle="red",t.font="8px sans-serif",t.beginPath(),t.moveTo(-10,0),t.lineTo(10,0),t.moveTo(0,-10),t.lineTo(0,10),t.stroke(),t.setTransform(1,0,0,1,0,0),t.scale(n,n),t.transform(e.m11,e.m12,e.m21,e.m22,e.dx,e.dy),t.lineWidth=2,t.beginPath(),t.moveTo(i.left,i.top+20),t.lineTo(i.left,i.top),t.lineTo(i.left+20,i.top),t.moveTo(i.right,i.bottom-20),t.lineTo(i.right,i.bottom),t.lineTo(i.right-20,i.bottom),t.stroke(),t.fillText("DB: "+Math.round(i.x)+", "+Math.round(i.y)+", "+Math.round(i.width)+", "+Math.round(i.height),i.left,i.top-5)},DA:function(t){var e,n={};for(e in t){if(n.x=e,"licenseKey"!==n.x){var i=t[n.x];if(void 0!==i.prototype){n.Zl=Object.getOwnPropertyNames(i.prototype);for(var r={Tj:0};r.Tj<n.Zl.length;(r={Tj:r.Tj}).Tj++){var o=Object.getOwnPropertyDescriptor(i.prototype,n.Zl[r.Tj]);void 0!==o.get&&void 0===o.set&&Object.defineProperty(i.prototype,n.Zl[r.Tj],{set:function(t,e){return function(){throw Error("Property "+t.Zl[e.Tj]+" of "+t.x+" is read-only.")}}(n,r)})}}}n={Zl:n.Zl,x:n.x}}}};function W(){}W.prototype.reset=function(){},W.prototype.next=function(){return!1},W.prototype.Ad=function(){return!1},W.prototype.first=function(){return null},W.prototype.any=function(){return!1},W.prototype.all=function(){return!0},W.prototype.each=function(){return this},W.prototype.map=function(){return this},W.prototype.filter=function(){return this},W.prototype.de=function(){},W.prototype.toString=function(){return"EmptyIterator"},d.Object.defineProperties(W.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),W.prototype.first=W.prototype.first,W.prototype.hasNext=W.prototype.Ad,W.prototype.next=W.prototype.next,W.prototype.reset=W.prototype.reset;var V;function Y(t){this.key=-1,this.value=t}function X(t){this.Bb=t,this.qf=null,t.Sa=null,this.qa=t.Ja,this.Za=-1}function q(t){this.Bb=t,t.Hg=null,this.qa=t.Ja,this.Za=t.s.length}function K(t){$(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,"string"==typeof t&&x("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),void 0!==t&&this.addAll(t)}function Q(t){this.eg=t,t.Sa=null,this.qa=t.Ja,this.sa=null}function J(t){$(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,"string"==typeof t&&x("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),void 0!==t&&this.addAll(t)}function $(t){t.__gohashid=st++}function tt(t){var e=t.__gohashid;return void 0===e&&(e=st++,t.__gohashid=e),e}function et(t){return t.__gohashid}W.className="EmptyIterator",V=new W,Y.prototype.reset=function(){this.key=-1},Y.prototype.next=function(){return-1===this.key&&(this.key=0,!0)},Y.prototype.Ad=function(){return this.next()},Y.prototype.first=function(){return this.key=0,this.value},Y.prototype.any=function(t){return this.key=-1,t(this.value)},Y.prototype.all=function(t){return this.key=-1,t(this.value)},Y.prototype.each=function(t){return this.key=-1,t(this.value),this},Y.prototype.map=function(t){return new Y(t(this.value))},Y.prototype.filter=function(t){return t(this.value)?new Y(this.value):V},Y.prototype.de=function(){this.value=null},Y.prototype.toString=function(){return"SingletonIterator("+this.value+")"},d.Object.defineProperties(Y.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),Y.prototype.first=Y.prototype.first,Y.prototype.hasNext=Y.prototype.Ad,Y.prototype.next=Y.prototype.next,Y.prototype.reset=Y.prototype.reset,Y.className="SingletonIterator",X.prototype.reset=function(){var t=this.Bb;t.Sa=null,this.qa=t.Ja,this.Za=-1},X.prototype.next=function(){var t=this.Bb;if(t.Ja!==this.qa&&0>this.key)return!1;var e=(t=t.s).length,n=++this.Za,i=this.qf;if(null!==i)for(;n<e;){var r=t[n];if(i(r))return this.key=this.Za=n,this.value=r,!0;n++}else{if(n<e)return this.key=n,this.value=t[n],!0;this.de()}return!1},X.prototype.Ad=function(){return this.next()},X.prototype.first=function(){var t=this.Bb;this.qa=t.Ja,this.Za=0;var e=(t=t.s).length,n=this.qf;if(null!==n){for(var i=0;i<e;){var r=t[i];if(n(r))return this.key=this.Za=i,this.value=r;i++}return null}return 0<e?(t=t[0],this.key=0,this.value=t):null},X.prototype.any=function(t){var e=this.Bb;e.Sa=null,this.Za=-1;for(var n=(e=e.s).length,i=this.qf,r=0;r<n;r++){var o=e[r];if((null===i||i(o))&&t(o))return!0}return!1},X.prototype.all=function(t){var e=this.Bb;e.Sa=null,this.Za=-1;for(var n=(e=e.s).length,i=this.qf,r=0;r<n;r++){var o=e[r];if((null===i||i(o))&&!t(o))return!1}return!0},X.prototype.each=function(t){var e=this.Bb;e.Sa=null,this.Za=-1;for(var n=(e=e.s).length,i=this.qf,r=0;r<n;r++){var o=e[r];(null===i||i(o))&&t(o)}return this},X.prototype.map=function(t){var e=this.Bb;e.Sa=null,this.Za=-1;for(var n=[],i=(e=e.s).length,r=this.qf,o=0;o<i;o++){var a=e[o];(null===r||r(a))&&n.push(t(a))}return(t=new K).s=n,t.xb(),t.iterator},X.prototype.filter=function(t){var e=this.Bb;e.Sa=null,this.Za=-1;for(var n=[],i=(e=e.s).length,r=this.qf,o=0;o<i;o++){var a=e[o];(null===r||r(a))&&t(a)&&n.push(a)}return(t=new K).s=n,t.xb(),t.iterator},X.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},X.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},d.Object.defineProperties(X.prototype,{iterator:{get:function(){return this}},predicate:{get:function(){return this.qf},set:function(t){this.qf=t}},count:{get:function(){var t=this.qf;if(null!==t){for(var e=0,n=this.Bb.s,i=n.length,r=0;r<i;r++)t(n[r])&&e++;return e}return this.Bb.s.length}}}),X.prototype.first=X.prototype.first,X.prototype.hasNext=X.prototype.Ad,X.prototype.next=X.prototype.next,X.prototype.reset=X.prototype.reset,X.className="ListIterator",q.prototype.reset=function(){var t=this.Bb;t.Hg=null,this.qa=t.Ja,this.Za=t.s.length},q.prototype.next=function(){var t=this.Bb;if(t.Ja!==this.qa&&0>this.key)return!1;var e=--this.Za;return 0<=e?(this.key=e,this.value=t.s[e],!0):(this.de(),!1)},q.prototype.Ad=function(){return this.next()},q.prototype.first=function(){var t=this.Bb;this.qa=t.Ja;var e=t.s;return this.Za=t=e.length-1,0<=t?(e=e[t],this.key=t,this.value=e):null},q.prototype.any=function(t){var e=this.Bb;e.Hg=null;var n=(e=e.s).length;for(this.Za=n,--n;0<=n;n--)if(t(e[n]))return!0;return!1},q.prototype.all=function(t){var e=this.Bb;e.Hg=null;var n=(e=e.s).length;for(this.Za=n,--n;0<=n;n--)if(!t(e[n]))return!1;return!0},q.prototype.each=function(t){var e=this.Bb;e.Hg=null;var n=(e=e.s).length;for(this.Za=n,--n;0<=n;n--)t(e[n]);return this},q.prototype.map=function(t){var e=this.Bb;e.Hg=null;var n=[],i=(e=e.s).length;for(this.Za=i,--i;0<=i;i--)n.push(t(e[i]));return(t=new K).s=n,t.xb(),t.iterator},q.prototype.filter=function(t){var e=this.Bb;e.Hg=null;var n=[],i=(e=e.s).length;for(this.Za=i,--i;0<=i;i--){var r=e[i];t(r)&&n.push(r)}return(t=new K).s=n,t.xb(),t.iterator},q.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},q.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},d.Object.defineProperties(q.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),q.prototype.first=q.prototype.first,q.prototype.hasNext=q.prototype.Ad,q.prototype.next=q.prototype.next,q.prototype.reset=q.prototype.reset,q.className="ListIteratorBackwards",(e=K.prototype).xb=function(){var t=this.Ja;999999999<++t&&(t=0),this.Ja=t},e.freeze=function(){return this._isFrozen=!0,this},e.ka=function(){return this._isFrozen=!1,this},e.toString=function(){return"List()#"+et(this)},e.add=function(t){return null===t||(this._isFrozen&&S(this,t),this.s.push(t),this.xb()),this},e.push=function(t){this.add(t)},e.addAll=function(t){if(null===t)return this;this._isFrozen&&S(this);var e=this.s;if(A(t))for(var n=t.length,i=0;i<n;i++)e.push(t[i]);else for(t=t.iterator;t.next();)e.push(t.value);return this.xb(),this},e.clear=function(){this._isFrozen&&S(this),this.s.length=0,this.xb()},e.contains=function(t){return null!==t&&-1!==this.s.indexOf(t)},e.has=function(t){return this.contains(t)},e.indexOf=function(t){return null===t?-1:this.s.indexOf(t)},e.M=function(t){var e=this.s;return(0>t||t>=e.length)&&P(t,"0 <= i < length",K,"elt:i"),e[t]},e.get=function(t){return this.M(t)},e.cd=function(t,e){var n=this.s;(0>t||t>=n.length)&&P(t,"0 <= i < length",K,"setElt:i"),this._isFrozen&&S(this,t),n[t]=e},e.set=function(t,e){this.cd(t,e)},e.first=function(){var t=this.s;return 0===t.length?null:t[0]},e.jc=function(){var t=this.s,e=t.length;return 0<e?t[e-1]:null},e.pop=function(){this._isFrozen&&S(this);var t=this.s;return 0<t.length?t.pop():null},K.prototype.any=function(t){for(var e=this.s,n=e.length,i=0;i<n;i++)if(t(e[i]))return!0;return!1},K.prototype.all=function(t){for(var e=this.s,n=e.length,i=0;i<n;i++)if(!t(e[i]))return!1;return!0},K.prototype.each=function(t){for(var e=this.s,n=e.length,i=0;i<n;i++)t(e[i]);return this},K.prototype.map=function(t){for(var e=new K,n=[],i=this.s,r=i.length,o=0;o<r;o++)n.push(t(i[o]));return e.s=n,e.xb(),e},K.prototype.filter=function(t){for(var e=new K,n=[],i=this.s,r=i.length,o=0;o<r;o++){var a=i[o];t(a)&&n.push(a)}return e.s=n,e.xb(),e},(e=K.prototype).Gb=function(t,e){0>t&&P(t,">= 0",K,"insertAt:i"),this._isFrozen&&S(this,t);var n=this.s;t>=n.length?n.push(e):n.splice(t,0,e),this.xb()},e.remove=function(t){if(null===t)return!1;this._isFrozen&&S(this,t);var e=this.s;return-1!==(t=e.indexOf(t))&&(t===e.length-1?e.pop():e.splice(t,1),this.xb(),!0)},e.delete=function(t){return this.remove(t)},e.mb=function(t){var e=this.s;(0>t||t>=e.length)&&P(t,"0 <= i < length",K,"removeAt:i"),this._isFrozen&&S(this,t),t===e.length-1?e.pop():e.splice(t,1),this.xb()},e.removeRange=function(t,e){var n=this.s,i=n.length;if(0>t)t=0;else if(t>=i)return this;if(0>e)return this;if(e>=i&&(e=i-1),t>e)return this;this._isFrozen&&S(this);for(var r=t,o=e+1;o<i;)n[r++]=n[o++];return n.length=i-(e-t+1),this.xb(),this},K.prototype.copy=function(){var t=new K,e=this.s;return 0<e.length&&(t.s=Array.prototype.slice.call(e)),t},(e=K.prototype).Fa=function(){for(var t=this.s,e=this.count,n=Array(e),i=0;i<e;i++)n[i]=t[i];return n},e.Iv=function(){for(var t=new J,e=this.s,n=this.count,i=0;i<n;i++)t.add(e[i]);return t},e.sort=function(t){return this._isFrozen&&S(this),this.s.sort(t),this.xb(),this},e.zi=function(t,e,n){var i=this.s,r=i.length;void 0===e&&(e=0),void 0===n&&(n=r),this._isFrozen&&S(this);var o=n-e;if(1>=o)return this;if((0>e||e>=r-1)&&P(e,"0 <= from < length",K,"sortRange:from"),2===o)return 0<t(n=i[e],r=i[e+1])&&(i[e]=r,i[e+1]=n,this.xb()),this;if(0===e)if(n>=r)i.sort(t);else for((e=i.slice(0,n)).sort(t),t=0;t<n;t++)i[t]=e[t];else if(n>=r)for((n=i.slice(e)).sort(t),t=e;t<r;t++)i[t]=n[t-e];else for((r=i.slice(e,n)).sort(t),t=e;t<n;t++)i[t]=r[t-e];return this.xb(),this},e.reverse=function(){return this._isFrozen&&S(this),this.s.reverse(),this.xb(),this},d.Object.defineProperties(K.prototype,{_dataArray:{get:function(){return this.s}},count:{get:function(){return this.s.length}},size:{get:function(){return this.s.length}},length:{get:function(){return this.s.length}},iterator:{get:function(){if(0>=this.s.length)return V;var t=this.Sa;return null!==t?(t.reset(),t):new X(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return V;var t=this.Hg;return null!==t?(t.reset(),t):new q(this)}}}),K.prototype.reverse=K.prototype.reverse,K.prototype.sortRange=K.prototype.zi,K.prototype.sort=K.prototype.sort,K.prototype.toSet=K.prototype.Iv,K.prototype.toArray=K.prototype.Fa,K.prototype.removeRange=K.prototype.removeRange,K.prototype.removeAt=K.prototype.mb,K.prototype.delete=K.prototype.delete,K.prototype.remove=K.prototype.remove,K.prototype.insertAt=K.prototype.Gb,K.prototype.pop=K.prototype.pop,K.prototype.last=K.prototype.jc,K.prototype.first=K.prototype.first,K.prototype.set=K.prototype.set,K.prototype.setElt=K.prototype.cd,K.prototype.get=K.prototype.get,K.prototype.elt=K.prototype.M,K.prototype.indexOf=K.prototype.indexOf,K.prototype.has=K.prototype.has,K.prototype.contains=K.prototype.contains,K.prototype.clear=K.prototype.clear,K.prototype.addAll=K.prototype.addAll,K.prototype.push=K.prototype.push,K.prototype.add=K.prototype.add,K.prototype.thaw=K.prototype.ka,K.prototype.freeze=K.prototype.freeze,K.className="List",Q.prototype.reset=function(){var t=this.eg;t.Sa=null,this.qa=t.Ja,this.sa=null},Q.prototype.next=function(){var t=this.eg;if(t.Ja!==this.qa&&null===this.key)return!1;var e=this.sa;return null!==(e=null===e?t.ea:e.va)?(this.sa=e,this.value=e.value,this.key=e.key,!0):(this.de(),!1)},Q.prototype.Ad=function(){return this.next()},Q.prototype.first=function(){var t=this.eg;if(this.qa=t.Ja,null!==(t=t.ea)){this.sa=t;var e=t.value;return this.key=t.key,this.value=e}return null},Q.prototype.any=function(t){var e=this.eg;for(this.sa=e.Sa=null,e=e.ea;null!==e;){if(t(e.value))return!0;e=e.va}return!1},Q.prototype.all=function(t){var e=this.eg;for(this.sa=e.Sa=null,e=e.ea;null!==e;){if(!t(e.value))return!1;e=e.va}return!0},Q.prototype.each=function(t){var e=this.eg;for(this.sa=e.Sa=null,e=e.ea;null!==e;)t(e.value),e=e.va;return this},Q.prototype.map=function(t){var e=this.eg;e.Sa=null;var n=new K;for(e=e.ea;null!==e;)n.add(t(e.value)),e=e.va;return n.iterator},Q.prototype.filter=function(t){var e=this.eg;e.Sa=null;var n=new K;for(e=e.ea;null!==e;){var i=e.value;t(i)&&n.add(i),e=e.va}return n.iterator},Q.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},Q.prototype.toString=function(){return null!==this.sa?"SetIterator@"+this.sa.value:"SetIterator"},d.Object.defineProperties(Q.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),Q.prototype.first=Q.prototype.first,Q.prototype.hasNext=Q.prototype.Ad,Q.prototype.next=Q.prototype.next,Q.prototype.reset=Q.prototype.reset,Q.className="SetIterator",(e=J.prototype).xb=function(){var t=this.Ja;999999999<++t&&(t=0),this.Ja=t},e.freeze=function(){return this._isFrozen=!0,this},e.ka=function(){return this._isFrozen=!1,this},e.toString=function(){return"Set()#"+et(this)},e.add=function(t){if(null===t)return this;this._isFrozen&&S(this,t);var e=t;return C(t)&&(e=tt(t)),void 0===this.Tb[e]&&(this.Sb++,t=new ht(t,t),this.Tb[e]=t,null===(e=this.kf)?this.ea=t:(t.ll=e,e.va=t),this.kf=t,this.xb()),this},e.addAll=function(t){if(null===t)return this;if(this._isFrozen&&S(this),A(t))for(var e=t.length,n=0;n<e;n++)this.add(t[n]);else for(t=t.iterator;t.next();)this.add(t.value);return this},e.contains=function(t){if(null===t)return!1;var e=t;return(!C(t)||void 0!==(e=et(t)))&&void 0!==this.Tb[e]},e.has=function(t){return this.contains(t)},e.Sy=function(t){if(null===t)return!0;for(t=t.iterator;t.next();)if(!this.contains(t.value))return!1;return!0},e.Ty=function(t){if(null===t)return!0;for(t=t.iterator;t.next();)if(this.contains(t.value))return!0;return!1},e.first=function(){var t=this.ea;return null===t?null:t.value},J.prototype.any=function(t){for(var e=this.ea;null!==e;){if(t(e.value))return!0;e=e.va}return!1},J.prototype.all=function(t){for(var e=this.ea;null!==e;){if(!t(e.value))return!1;e=e.va}return!0},J.prototype.each=function(t){for(var e=this.ea;null!==e;)t(e.value),e=e.va;return this},J.prototype.map=function(t){for(var e=new J,n=this.ea;null!==n;)e.add(t(n.value)),n=n.va;return e},J.prototype.filter=function(t){for(var e=new J,n=this.ea;null!==n;){var i=n.value;t(i)&&e.add(i),n=n.va}return e},(e=J.prototype).remove=function(t){if(null===t)return!1;this._isFrozen&&S(this,t);var e=t;if(C(t)&&void 0===(e=et(t)))return!1;if(void 0===(t=this.Tb[e]))return!1;var n=t.va,i=t.ll;return null!==n&&(n.ll=i),null!==i&&(i.va=n),this.ea===t&&(this.ea=n),this.kf===t&&(this.kf=i),delete this.Tb[e],this.Sb--,this.xb(),!0},e.delete=function(t){return this.remove(t)},e.hp=function(t){if(null===t)return this;if(this._isFrozen&&S(this),A(t))for(var e=t.length,n=0;n<e;n++)this.remove(t[n]);else for(t=t.iterator;t.next();)this.remove(t.value);return this},e.pA=function(t){if(null===t||0===this.count)return this;this._isFrozen&&S(this);var e=new J;e.addAll(t),t=[];for(var n=this.iterator;n.next();){var i=n.value;e.contains(i)||t.push(i)}return this.hp(t),this},e.clear=function(){this._isFrozen&&S(this),this.Tb={},this.Sb=0,null!==this.Sa&&this.Sa.reset(),this.kf=this.ea=null,this.xb()},J.prototype.copy=function(){var t,e=new J,n=this.Tb;for(t in n)e.add(n[t].value);return e},J.prototype.Fa=function(){var t,e=Array(this.Sb),n=this.Tb,i=0;for(t in n)e[i]=n[t].value,i++;return e},J.prototype.Hv=function(){var t,e=new K,n=this.Tb;for(t in n)e.add(n[t].value);return e},d.Object.defineProperties(J.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return V;var t=this.Sa;return null!==t?(t.reset(),t):new Q(this)}}}),J.prototype.toList=J.prototype.Hv,J.prototype.toArray=J.prototype.Fa,J.prototype.clear=J.prototype.clear,J.prototype.retainAll=J.prototype.pA,J.prototype.removeAll=J.prototype.hp,J.prototype.delete=J.prototype.delete,J.prototype.remove=J.prototype.remove,J.prototype.first=J.prototype.first,J.prototype.containsAny=J.prototype.Ty,J.prototype.containsAll=J.prototype.Sy,J.prototype.has=J.prototype.has,J.prototype.contains=J.prototype.contains,J.prototype.addAll=J.prototype.addAll,J.prototype.add=J.prototype.add,J.prototype.thaw=J.prototype.ka,J.prototype.freeze=J.prototype.freeze;var nt,it,rt,ot,at,st=1;function lt(t){this.ma=t,this.qa=t.Ja,this.sa=null}function ut(t){J.call(this),$(this),this._isFrozen=!0,this.ma=t}function ct(t){this.ma=t,t.jf=null,this.qa=t.Ja,this.sa=null}function ht(t,e){this.key=t,this.value=e,this.ll=this.va=null}function dt(t){this.ma=t,t.Sa=null,this.qa=t.Ja,this.sa=null}function ft(t){$(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.jf=this.Sa=null,this.Ja=0,this.kf=this.ea=null,"string"==typeof t&&x("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),void 0!==t&&this.addAll(t)}function pt(t,e){void 0===t?this.y=this.x=0:"number"==typeof t&&"number"==typeof e?(this.x=t,this.y=e):x("Invalid arguments to Point constructor: "+t+", "+e),this._isFrozen=!1}function gt(t){if("string"==typeof t){t=t.split(" ");for(var e=0,n=0;""===t[e];)e++;var i=t[e++];i&&(n=parseFloat(i));for(var r=0;""===t[e];)e++;return(i=t[e++])&&(r=parseFloat(i)),new pt(n,r)}return new pt}function mt(t){return t.x.toString()+" "+t.y.toString()}function vt(t,e){if(0===t)return 0<e?90:0>e?270:0;if(0===e)return 0<t?0:180;if(isNaN(t)||isNaN(e))return 0;var n=180*Math.atan(Math.abs(e/t))/Math.PI;return 0>t?n=0>e?n+180:180-n:0>e&&(n=360-n),n}function yt(t,e){return e.Cd(t),t}function wt(t,e,n,i,r,o){var a=r-n,s=o-i,l=a*a+s*s,u=-(n-=t)*a-(i-=e)*s;return 0>=u||u>=l?(a=r-t,s=o-e,Math.min(n*n+i*i,a*a+s*s)):(t=a*i-s*n)*t/l}function bt(t,e,n,i){return(t=n-t)*t+(e=i-e)*e}function xt(t,e,n,i){return e=i-e,0===(t=n-t)?0<e?90:0>e?270:0:0===e?0<t?0:180:isNaN(t)||isNaN(e)?0:(i=180*Math.atan(Math.abs(e/t))/Math.PI,0>t?i=0>e?i+180:180-i:0>e&&(i=360-i),i)}J.className="Set",J.uniqueHash=$,J.hashIdUnique=tt,J.hashId=et,lt.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},lt.prototype.next=function(){var t=this.ma;if(t.Ja!==this.qa&&null===this.key)return!1;var e=this.sa;return null!==(e=null===e?t.ea:e.va)?(this.sa=e,this.value=this.key=t=e.key,!0):(this.de(),!1)},lt.prototype.Ad=function(){return this.next()},lt.prototype.first=function(){var t=this.ma;return this.qa=t.Ja,null!==(t=t.ea)?(this.sa=t,this.value=this.key=t=t.key):null},lt.prototype.any=function(t){var e=this.ma;for(this.sa=null,e=e.ea;null!==e;){if(t(e.key))return!0;e=e.va}return!1},lt.prototype.all=function(t){var e=this.ma;for(this.sa=null,e=e.ea;null!==e;){if(!t(e.key))return!1;e=e.va}return!0},lt.prototype.each=function(t){var e=this.ma;for(this.sa=null,e=e.ea;null!==e;)t(e.key),e=e.va;return this},lt.prototype.map=function(t){var e=this.ma;this.sa=null;var n=new K;for(e=e.ea;null!==e;)n.add(t(e.key)),e=e.va;return n.iterator},lt.prototype.filter=function(t){var e=this.ma;this.sa=null;var n=new K;for(e=e.ea;null!==e;){var i=e.key;t(i)&&n.add(i),e=e.va}return n.iterator},lt.prototype.de=function(){this.value=this.key=null,this.qa=-1},lt.prototype.toString=function(){return null!==this.sa?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},d.Object.defineProperties(lt.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),lt.prototype.first=lt.prototype.first,lt.prototype.hasNext=lt.prototype.Ad,lt.prototype.next=lt.prototype.next,lt.prototype.reset=lt.prototype.reset,lt.className="MapKeySetIterator",h(ut,J),(e=ut.prototype).freeze=function(){return this},e.ka=function(){return this},e.toString=function(){return"MapKeySet("+this.ma.toString()+")"},e.add=function(){x("This Set is read-only: "+this.toString())},e.contains=function(t){return this.ma.contains(t)},e.has=function(t){return this.contains(t)},e.remove=function(){x("This Set is read-only: "+this.toString())},e.delete=function(t){return this.remove(t)},e.clear=function(){x("This Set is read-only: "+this.toString())},e.first=function(){var t=this.ma.ea;return null!==t?t.key:null},ut.prototype.any=function(t){for(var e=this.ma.ea;null!==e;){if(t(e.key))return!0;e=e.va}return!1},ut.prototype.all=function(t){for(var e=this.ma.ea;null!==e;){if(!t(e.key))return!1;e=e.va}return!0},ut.prototype.each=function(t){for(var e=this.ma.ea;null!==e;)t(e.key),e=e.va;return this},ut.prototype.map=function(t){for(var e=new J,n=this.ma.ea;null!==n;)e.add(t(n.key)),n=n.va;return e},ut.prototype.filter=function(t){for(var e=new J,n=this.ma.ea;null!==n;){var i=n.key;t(i)&&e.add(i),n=n.va}return e},ut.prototype.copy=function(){return new ut(this.ma)},ut.prototype.Iv=function(){var t,e=new J,n=this.ma.Tb;for(t in n)e.add(n[t].key);return e},ut.prototype.Fa=function(){var t,e=this.ma.Tb,n=Array(this.ma.Sb),i=0;for(t in e)n[i]=e[t].key,i++;return n},ut.prototype.Hv=function(){var t,e=new K,n=this.ma.Tb;for(t in n)e.add(n[t].key);return e},d.Object.defineProperties(ut.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?V:new lt(this.ma)}}}),ut.prototype.toList=ut.prototype.Hv,ut.prototype.toArray=ut.prototype.Fa,ut.prototype.toSet=ut.prototype.Iv,ut.prototype.first=ut.prototype.first,ut.prototype.clear=ut.prototype.clear,ut.prototype.delete=ut.prototype.delete,ut.prototype.remove=ut.prototype.remove,ut.prototype.has=ut.prototype.has,ut.prototype.contains=ut.prototype.contains,ut.prototype.add=ut.prototype.add,ut.prototype.thaw=ut.prototype.ka,ut.prototype.freeze=ut.prototype.freeze,ut.className="MapKeySet",ct.prototype.reset=function(){var t=this.ma;t.jf=null,this.qa=t.Ja,this.sa=null},ct.prototype.next=function(){var t=this.ma;if(t.Ja!==this.qa&&null===this.key)return!1;var e=this.sa;return null!==(e=null===e?t.ea:e.va)?(this.sa=e,this.value=e.value,this.key=e.key,!0):(this.de(),!1)},ct.prototype.Ad=function(){return this.next()},ct.prototype.first=function(){var t=this.ma;if(this.qa=t.Ja,null!==(t=t.ea)){this.sa=t;var e=t.value;return this.key=t.key,this.value=e}return null},ct.prototype.any=function(t){var e=this.ma;for(this.sa=e.jf=null,e=e.ea;null!==e;){if(t(e.value))return!0;e=e.va}return!1},ct.prototype.all=function(t){var e=this.ma;for(this.sa=e.jf=null,e=e.ea;null!==e;){if(!t(e.value))return!1;e=e.va}return!0},ct.prototype.each=function(t){var e=this.ma;for(this.sa=e.jf=null,e=e.ea;null!==e;)t(e.value),e=e.va;return this},ct.prototype.map=function(t){var e=this.ma;this.sa=e.jf=null;var n=new K;for(e=e.ea;null!==e;)n.add(t(e.value)),e=e.va;return n.iterator},ct.prototype.filter=function(t){var e=this.ma;this.sa=e.jf=null;var n=new K;for(e=e.ea;null!==e;){var i=e.value;t(i)&&n.add(i),e=e.va}return n.iterator},ct.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},ct.prototype.toString=function(){return null!==this.sa?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},d.Object.defineProperties(ct.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),ct.prototype.first=ct.prototype.first,ct.prototype.hasNext=ct.prototype.Ad,ct.prototype.next=ct.prototype.next,ct.prototype.reset=ct.prototype.reset,ct.className="MapValueSetIterator",ht.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},ht.className="KeyValuePair",dt.prototype.reset=function(){var t=this.ma;t.Sa=null,this.qa=t.Ja,this.sa=null},dt.prototype.next=function(){var t=this.ma;if(t.Ja!==this.qa&&null===this.key)return!1;var e=this.sa;return null!==(e=null===e?t.ea:e.va)?(this.sa=e,this.key=e.key,this.value=e.value,!0):(this.de(),!1)},dt.prototype.Ad=function(){return this.next()},dt.prototype.first=function(){var t=this.ma;return this.qa=t.Ja,null!==(t=t.ea)?(this.sa=t,this.key=t.key,this.value=t.value,t):null},dt.prototype.any=function(t){var e=this.ma;for(this.sa=e.Sa=null,e=e.ea;null!==e;){if(t(e))return!0;e=e.va}return!1},dt.prototype.all=function(t){var e=this.ma;for(this.sa=e.Sa=null,e=e.ea;null!==e;){if(!t(e))return!1;e=e.va}return!0},dt.prototype.each=function(t){var e=this.ma;for(this.sa=e.Sa=null,e=e.ea;null!==e;)t(e),e=e.va;return this},dt.prototype.map=function(t){var e=this.ma;this.sa=e.Sa=null;var n=new K;for(e=e.ea;null!==e;)n.add(t(e)),e=e.va;return n.iterator},dt.prototype.filter=function(t){var e=this.ma;this.sa=e.Sa=null;var n=new K;for(e=e.ea;null!==e;)t(e)&&n.add(e),e=e.va;return n.iterator},dt.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},dt.prototype.toString=function(){return null!==this.sa?"MapIterator@"+this.sa:"MapIterator"},d.Object.defineProperties(dt.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),dt.prototype.first=dt.prototype.first,dt.prototype.hasNext=dt.prototype.Ad,dt.prototype.next=dt.prototype.next,dt.prototype.reset=dt.prototype.reset,dt.className="MapIterator",(e=ft.prototype).xb=function(){var t=this.Ja;999999999<++t&&(t=0),this.Ja=t},e.freeze=function(){return this._isFrozen=!0,this},e.ka=function(){return this._isFrozen=!1,this},e.toString=function(){return"Map()#"+et(this)},e.add=function(t,e){this._isFrozen&&S(this,t);var n=t;C(t)&&(n=tt(t));var i=this.Tb[n];return void 0===i?(this.Sb++,t=new ht(t,e),this.Tb[n]=t,null===(n=this.kf)?this.ea=t:(t.ll=n,n.va=t),this.kf=t,this.xb()):i.value=e,this},e.set=function(t,e){return this.add(t,e)},e.addAll=function(t){if(null===t)return this;if(A(t))for(var e=t.length,n=0;n<e;n++){var i=t[n];this.add(i.key,i.value)}else if(t instanceof ft)for(t=t.iterator;t.next();)this.add(t.key,t.value);else for(t=t.iterator;t.next();)e=t.value,this.add(e.key,e.value);return this},e.first=function(){return this.ea},ft.prototype.any=function(t){for(var e=this.ea;null!==e;){if(t(e))return!0;e=e.va}return!1},ft.prototype.all=function(t){for(var e=this.ea;null!==e;){if(!t(e))return!1;e=e.va}return!0},ft.prototype.each=function(t){for(var e=this.ea;null!==e;)t(e),e=e.va;return this},ft.prototype.map=function(t){for(var e=new ft,n=this.ea;null!==n;)e.add(n.key,t(n)),n=n.va;return e},ft.prototype.filter=function(t){for(var e=new ft,n=this.ea;null!==n;)t(n)&&e.add(n.key,n.value),n=n.va;return e},(e=ft.prototype).contains=function(t){var e=t;return(!C(t)||void 0!==(e=et(t)))&&void 0!==this.Tb[e]},e.has=function(t){return this.contains(t)},e.I=function(t){var e=t;return C(t)&&void 0===(e=et(t))||void 0===(t=this.Tb[e])?null:t.value},e.get=function(t){return this.I(t)},e.remove=function(t){if(null===t)return!1;this._isFrozen&&S(this,t);var e=t;if(C(t)&&void 0===(e=et(t)))return!1;if(void 0===(t=this.Tb[e]))return!1;var n=t.va,i=t.ll;return null!==n&&(n.ll=i),null!==i&&(i.va=n),this.ea===t&&(this.ea=n),this.kf===t&&(this.kf=i),delete this.Tb[e],this.Sb--,this.xb(),!0},e.delete=function(t){return this.remove(t)},e.clear=function(){this._isFrozen&&S(this),this.Tb={},this.Sb=0,null!==this.Sa&&this.Sa.reset(),null!==this.jf&&this.jf.reset(),this.kf=this.ea=null,this.xb()},ft.prototype.copy=function(){var t,e=new ft,n=this.Tb;for(t in n){var i=n[t];e.add(i.key,i.value)}return e},ft.prototype.Fa=function(){var t,e=this.Tb,n=Array(this.Sb),i=0;for(t in e){var r=e[t];n[i]=new ht(r.key,r.value),i++}return n},ft.prototype.Lf=function(){return new ut(this)},d.Object.defineProperties(ft.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return V;var t=this.Sa;return null!==t?(t.reset(),t):new dt(this)}},iteratorKeys:{get:function(){return 0>=this.count?V:new lt(this)}},iteratorValues:{get:function(){if(0>=this.count)return V;var t=this.jf;return null!==t?(t.reset(),t):new ct(this)}}}),ft.prototype.toKeySet=ft.prototype.Lf,ft.prototype.toArray=ft.prototype.Fa,ft.prototype.clear=ft.prototype.clear,ft.prototype.delete=ft.prototype.delete,ft.prototype.remove=ft.prototype.remove,ft.prototype.get=ft.prototype.get,ft.prototype.getValue=ft.prototype.I,ft.prototype.has=ft.prototype.has,ft.prototype.contains=ft.prototype.contains,ft.prototype.first=ft.prototype.first,ft.prototype.addAll=ft.prototype.addAll,ft.prototype.set=ft.prototype.set,ft.prototype.add=ft.prototype.add,ft.prototype.thaw=ft.prototype.ka,ft.prototype.freeze=ft.prototype.freeze,ft.className="Map",pt.prototype.assign=function(t){return this.x=t.x,this.y=t.y,this},pt.prototype.h=function(t,e){return this.x=t,this.y=e,this},pt.prototype.sg=function(t,e){return this.x=t,this.y=e,this},pt.prototype.set=function(t){return this.x=t.x,this.y=t.y,this},pt.prototype.copy=function(){var t=new pt;return t.x=this.x,t.y=this.y,t},(e=pt.prototype).ja=function(){return this._isFrozen=!0,Object.freeze(this),this},e.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},e.freeze=function(){return this._isFrozen=!0,this},e.ka=function(){return Object.isFrozen(this)&&x("cannot thaw constant: "+this),this._isFrozen=!1,this},e.toString=function(){return"Point("+this.x+","+this.y+")"},e.D=function(t){return t instanceof pt&&(this.x===t.x&&this.y===t.y)},e.hi=function(t,e){return this.x===t&&this.y===e},e.Xa=function(t){return _e.B(this.x,t.x)&&_e.B(this.y,t.y)},e.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.re=function(t){return this.x-=t.x,this.y-=t.y,this},e.offset=function(t,e){return this.x+=t,this.y+=e,this},pt.prototype.rotate=function(t){if(0===t)return this;var e=this.x,n=this.y;if(0===e&&0===n)return this;if(360<=t?t-=360:0>t&&(t+=360),90===t){t=0;var i=1}else 180===t?(t=-1,i=0):270===t?(t=0,i=-1):(i=t*Math.PI/180,t=Math.cos(i),i=Math.sin(i));return this.x=t*e-i*n,this.y=i*e+t*n,this},(e=pt.prototype).scale=function(t,e){return this.x*=t,this.y*=e,this},e.Bf=function(t){var e=t.x-this.x;return e*e+(t=t.y-this.y)*t},e.zd=function(t,e){return(t-=this.x)*t+(e-=this.y)*e},e.normalize=function(){var t=this.x,e=this.y,n=Math.sqrt(t*t+e*e);return 0<n&&(this.x=t/n,this.y=e/n),this},e.ab=function(t){return vt(t.x-this.x,t.y-this.y)},e.direction=function(t,e){return vt(t-this.x,e-this.y)},e.Ry=function(t,e){return _e.Fl(t.x,t.y,e.x,e.y,this.x,this.y)},e.fA=function(t,e,n,i){return _e.qh(t,e,n,i,this.x,this.y,this),this},e.gA=function(t,e){return _e.qh(t.x,t.y,e.x,e.y,this.x,this.y,this),this},e.uA=function(t,e,n,i){return _e.No(this.x,this.y,t,e,n,i,this),this},e.vA=function(t,e){return _e.No(this.x,this.y,t.x,t.y,e.width,e.height,this),this},e.xi=function(t,e){return this.x=t.x+e.x*t.width+e.offsetX,this.y=t.y+e.y*t.height+e.offsetY,this},e.yi=function(t,e,n,i,r){return this.x=t+r.x*n+r.offsetX,this.y=e+r.y*i+r.offsetY,this},e.transform=function(t){return t.Ga(this),this},e.w=function(){return isFinite(this.x)&&isFinite(this.y)},pt.alloc=function(){var t=Lt.pop();return void 0===t?new pt:t},pt.allocAt=function(t,e){var n=Lt.pop();return void 0===n?new pt(t,e):(n.x=t,n.y=e,n)},pt.free=function(t){Lt.push(t)},pt.prototype.isReal=pt.prototype.w,pt.prototype.setSpot=pt.prototype.yi,pt.prototype.setRectSpot=pt.prototype.xi,pt.prototype.snapToGridPoint=pt.prototype.vA,pt.prototype.snapToGrid=pt.prototype.uA,pt.prototype.projectOntoLineSegmentPoint=pt.prototype.gA,pt.prototype.projectOntoLineSegment=pt.prototype.fA,pt.intersectingLineSegments=function(t,e,n,i,r,o,a,s){return _e.Rl(t,e,n,i,r,o,a,s)},pt.prototype.compareWithLineSegmentPoint=pt.prototype.Ry,pt.compareWithLineSegment=function(t,e,n,i,r,o){return _e.Fl(t,e,n,i,r,o)},pt.prototype.direction=pt.prototype.direction,pt.prototype.directionPoint=pt.prototype.ab,pt.prototype.normalize=pt.prototype.normalize,pt.prototype.distanceSquared=pt.prototype.zd,pt.prototype.distanceSquaredPoint=pt.prototype.Bf,pt.prototype.scale=pt.prototype.scale,pt.prototype.rotate=pt.prototype.rotate,pt.prototype.offset=pt.prototype.offset,pt.prototype.subtract=pt.prototype.re,pt.prototype.add=pt.prototype.add,pt.prototype.equalsApprox=pt.prototype.Xa,pt.prototype.equalTo=pt.prototype.hi,pt.prototype.equals=pt.prototype.D,pt.prototype.set=pt.prototype.set,pt.prototype.setTo=pt.prototype.sg;var St,Pt,kt,Ct,At,Mt,Et,Lt=[];function Tt(t,e){void 0===t?this.height=this.width=0:"number"==typeof t&&(0<=t||isNaN(t))&&"number"==typeof e&&(0<=e||isNaN(e))?(this.width=t,this.height=e):x("Invalid arguments to Size constructor: "+t+", "+e),this._isFrozen=!1}function Nt(t){if("string"==typeof t){t=t.split(" ");for(var e=0,n=0;""===t[e];)e++;var i=t[e++];i&&(n=parseFloat(i));for(var r=0;""===t[e];)e++;return(i=t[e++])&&(r=parseFloat(i)),new Tt(n,r)}return new Tt}function jt(t){return t.width.toString()+" "+t.height.toString()}pt.className="Point",pt.parse=gt,pt.stringify=mt,pt.distanceLineSegmentSquared=wt,pt.distanceSquared=bt,pt.direction=xt,pt.Origin=nt=new pt(0,0).ja(),pt.InfiniteTopLeft=it=new pt(-1/0,-1/0).ja(),pt.InfiniteBottomRight=rt=new pt(1/0,1/0).ja(),pt.SixPoint=ot=new pt(6,6).ja(),pt.NoPoint=at=new pt(NaN,NaN).ja(),pt.parse=gt,pt.stringify=mt,pt.distanceLineSegmentSquared=wt,pt.distanceSquared=bt,pt.direction=xt,Tt.prototype.assign=function(t){return this.width=t.width,this.height=t.height,this},Tt.prototype.h=function(t,e){return this.width=t,this.height=e,this},Tt.prototype.sg=function(t,e){return this.width=t,this.height=e,this},Tt.prototype.set=function(t){return this.width=t.width,this.height=t.height,this},Tt.prototype.copy=function(){var t=new Tt;return t.width=this.width,t.height=this.height,t},(e=Tt.prototype).ja=function(){return this._isFrozen=!0,Object.freeze(this),this},e.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},e.freeze=function(){return this._isFrozen=!0,this},e.ka=function(){return Object.isFrozen(this)&&x("cannot thaw constant: "+this),this._isFrozen=!1,this},e.toString=function(){return"Size("+this.width+","+this.height+")"},e.D=function(t){return t instanceof Tt&&(this.width===t.width&&this.height===t.height)},e.hi=function(t,e){return this.width===t&&this.height===e},e.Xa=function(t){return _e.B(this.width,t.width)&&_e.B(this.height,t.height)},e.Bc=function(t,e){return t=this.width+t,this.width=0<=t?t:0,e=this.height+e,this.height=0<=e?e:0,this},e.w=function(){return isFinite(this.width)&&isFinite(this.height)},Tt.alloc=function(){var t=It.pop();return void 0===t?new Tt:t},Tt.free=function(t){It.push(t)},Tt.prototype.isReal=Tt.prototype.w,Tt.prototype.inflate=Tt.prototype.Bc,Tt.prototype.equalsApprox=Tt.prototype.Xa,Tt.prototype.equalTo=Tt.prototype.hi,Tt.prototype.equals=Tt.prototype.D,Tt.prototype.set=Tt.prototype.set,Tt.prototype.setTo=Tt.prototype.sg;var It=[];function Bt(t,e,n,i){void 0===t?this.height=this.width=this.y=this.x=0:"number"==typeof t&&"number"==typeof e&&"number"==typeof n&&(0<=n||isNaN(n))&&"number"==typeof i&&(0<=i||isNaN(i))?(this.x=t,this.y=e,this.width=n,this.height=i):t instanceof pt?(n=t.x,t=t.y,e instanceof pt?(i=e.x,e=e.y,this.x=Math.min(n,i),this.y=Math.min(t,e),this.width=Math.abs(n-i),this.height=Math.abs(t-e)):e instanceof Tt?(this.x=n,this.y=t,this.width=e.width,this.height=e.height):x("Incorrect second argument supplied to Rect constructor "+e)):x("Invalid arguments to Rect constructor: "+t+", "+e+", "+n+", "+i),this._isFrozen=!1}function Ot(t,e,n){t.width=e,t.height=n}function Dt(t){if("string"==typeof t){t=t.split(" ");for(var e=0,n=0;""===t[e];)e++;var i=t[e++];i&&(n=parseFloat(i));for(var r=0;""===t[e];)e++;(i=t[e++])&&(r=parseFloat(i));for(var o=0;""===t[e];)e++;(i=t[e++])&&(o=parseFloat(i));for(var a=0;""===t[e];)e++;return(i=t[e++])&&(a=parseFloat(i)),new Bt(n,r,o,a)}return new Bt}function Rt(t){return t.x.toString()+" "+t.y.toString()+" "+t.width.toString()+" "+t.height.toString()}function Ft(t,e){return _e.$(t.x,e.x)&&_e.$(t.y,e.y)&&_e.$(t.width,e.width)&&_e.$(t.height,e.height)}function zt(t,e,n,i,r){var o=t.width;return n+r<=-o?(t.x+=o/2,t.width=0):(t.x-=r,t.width+=n+r),e+i<=-(n=t.height)?(t.y+=n/2,t.height=0):(t.y-=e,t.height+=e+i),t}function Gt(t,e,n,i,r){var o=Math.max(t.x,e),a=Math.max(t.y,n);return e=Math.min(t.x+t.width,e+i),n=Math.min(t.y+t.height,n+r),t.x=o,t.y=a,t.width=Math.max(0,e-o),t.height=Math.max(0,n-a),t}function Ut(t,e){var n=t.width,i=t.x,r=e.x-10;return!(i>e.width+10+10+r||r>n+i)&&(n=t.height,t=t.y,i=e.y-10,!(t>e.height+10+10+i||i>n+t))}function Ht(t,e,n,i,r){var o=Math.min(t.x,e),a=Math.min(t.y,n);return e=Math.max(t.x+t.width,e+i),n=Math.max(t.y+t.height,n+r),t.x=o,t.y=a,t.width=e-o,t.height=n-a,t}function _t(t,e,n,i,r,o,a,s){return void 0===a&&(a=0),void 0===s&&(s=0),t<=r&&r+a<=t+n&&e<=o&&o+s<=e+i}function Zt(t,e,n,i,r,o,a,s){return!(t>a+r||r>n+t)&&!(e>s+o||o>i+e)}Tt.className="Size",Tt.parse=Nt,Tt.stringify=jt,Tt.ZeroSize=St=new Tt(0,0).ja(),Tt.OneSize=Pt=new Tt(1,1).ja(),Tt.SixSize=kt=new Tt(6,6).ja(),Tt.EightSize=Ct=new Tt(8,8).ja(),Tt.TenSize=At=new Tt(10,10).ja(),Tt.InfiniteSize=Mt=new Tt(1/0,1/0).ja(),Tt.NoSize=Et=new Tt(NaN,NaN).ja(),Tt.parse=Nt,Tt.stringify=jt,(e=Bt.prototype).assign=function(t){return this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height,this},e.h=function(t,e,n,i){return this.x=t,this.y=e,this.width=n,this.height=i,this},e.sg=function(t,e,n,i){return this.x=t,this.y=e,this.width=n,this.height=i,this},e.set=function(t){return this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height,this},e.dd=function(t){return this.x=t.x,this.y=t.y,this},e.tA=function(t){return this.width=t.width,this.height=t.height,this},Bt.prototype.copy=function(){var t=new Bt;return t.x=this.x,t.y=this.y,t.width=this.width,t.height=this.height,t},(e=Bt.prototype).ja=function(){return this._isFrozen=!0,Object.freeze(this),this},e.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},e.freeze=function(){return this._isFrozen=!0,this},e.ka=function(){return Object.isFrozen(this)&&x("cannot thaw constant: "+this),this._isFrozen=!1,this},e.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},e.D=function(t){return t instanceof Bt&&(this.x===t.x&&this.y===t.y&&this.width===t.width&&this.height===t.height)},e.hi=function(t,e,n,i){return this.x===t&&this.y===e&&this.width===n&&this.height===i},e.Xa=function(t){return _e.B(this.x,t.x)&&_e.B(this.y,t.y)&&_e.B(this.width,t.width)&&_e.B(this.height,t.height)},e.ca=function(t){return this.x<=t.x&&this.x+this.width>=t.x&&this.y<=t.y&&this.y+this.height>=t.y},e.Re=function(t){return this.x<=t.x&&t.x+t.width<=this.x+this.width&&this.y<=t.y&&t.y+t.height<=this.y+this.height},e.contains=function(t,e,n,i){return void 0===n&&(n=0),void 0===i&&(i=0),this.x<=t&&t+n<=this.x+this.width&&this.y<=e&&e+i<=this.y+this.height},e.offset=function(t,e){return this.x+=t,this.y+=e,this},e.Bc=function(t,e){return zt(this,e,t,e,t)},e.Co=function(t){return zt(this,t.top,t.right,t.bottom,t.left)},e.Fv=function(t){return zt(this,-t.top,-t.right,-t.bottom,-t.left)},e.Hz=function(t,e,n,i){return zt(this,t,e,n,i)},e.Ex=function(t){return Gt(this,t.x,t.y,t.width,t.height)},e.Uu=function(t,e,n,i){return Gt(this,t,e,n,i)},e.Yc=function(t){return this.Vu(t.x,t.y,t.width,t.height)},e.Vu=function(t,e,n,i){var r=this.width,o=this.x;return!(1/0!==r&&1/0!==n&&(r+=o,n+=t,isNaN(n)||isNaN(r)||o>n||t>r))&&(t=this.height,n=this.y,!(1/0!==t&&1/0!==i&&(t+=n,i+=e,isNaN(i)||isNaN(t)||n>i||e>t)))},e.Ye=function(t){return Ht(this,t.x,t.y,0,0)},e.ed=function(t){return Ht(this,t.x,t.y,t.width,t.height)},e.Kv=function(t,e,n,i){return void 0===n&&(n=0),void 0===i&&(i=0),Ht(this,t,e,n,i)},e.yi=function(t,e,n){return this.x=t-n.offsetX-n.x*this.width,this.y=e-n.offsetY-n.y*this.height,this},e.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.Mz=function(){return 0===this.width&&0===this.height},Bt.alloc=function(){var t=Yt.pop();return void 0===t?new Bt:t},Bt.allocAt=function(t,e,n,i){var r=Yt.pop();return void 0===r?new Bt(t,e,n,i):r.h(t,e,n,i)},Bt.free=function(t){Yt.push(t)},d.Object.defineProperties(Bt.prototype,{left:{get:function(){return this.x},set:function(t){this.x=t}},top:{get:function(){return this.y},set:function(t){this.y=t}},right:{get:function(){return this.x+this.width},set:function(t){this.x+=t-(this.x+this.width)}},bottom:{get:function(){return this.y+this.height},set:function(t){this.y+=t-(this.y+this.height)}},position:{get:function(){return new pt(this.x,this.y)},set:function(t){this.x=t.x,this.y=t.y}},size:{get:function(){return new Tt(this.width,this.height)},set:function(t){this.width=t.width,this.height=t.height}},center:{get:function(){return new pt(this.x+this.width/2,this.y+this.height/2)},set:function(t){this.x=t.x-this.width/2,this.y=t.y-this.height/2}},centerX:{get:function(){return this.x+this.width/2},set:function(t){this.x=t-this.width/2}},centerY:{get:function(){return this.y+this.height/2},set:function(t){this.y=t-this.height/2}}}),Bt.prototype.isEmpty=Bt.prototype.Mz,Bt.prototype.isReal=Bt.prototype.w,Bt.intersectsLineSegment=function(t,e,n,i,r,o,a,s){return _e.Fx(t,e,n,i,r,o,a,s)},Bt.prototype.setSpot=Bt.prototype.yi,Bt.prototype.union=Bt.prototype.Kv,Bt.prototype.unionRect=Bt.prototype.ed,Bt.prototype.unionPoint=Bt.prototype.Ye,Bt.prototype.intersects=Bt.prototype.Vu,Bt.prototype.intersectsRect=Bt.prototype.Yc,Bt.prototype.intersect=Bt.prototype.Uu,Bt.prototype.intersectRect=Bt.prototype.Ex,Bt.prototype.grow=Bt.prototype.Hz,Bt.prototype.subtractMargin=Bt.prototype.Fv,Bt.prototype.addMargin=Bt.prototype.Co,Bt.prototype.inflate=Bt.prototype.Bc,Bt.prototype.offset=Bt.prototype.offset,Bt.prototype.contains=Bt.prototype.contains,Bt.prototype.containsRect=Bt.prototype.Re,Bt.prototype.containsPoint=Bt.prototype.ca,Bt.prototype.equalsApprox=Bt.prototype.Xa,Bt.prototype.equalTo=Bt.prototype.hi,Bt.prototype.equals=Bt.prototype.D,Bt.prototype.setSize=Bt.prototype.tA,Bt.prototype.setPoint=Bt.prototype.dd,Bt.prototype.set=Bt.prototype.set,Bt.prototype.setTo=Bt.prototype.sg;var Wt,Vt,Yt=[];function Xt(t,e,n,i){void 0===t?this.left=this.bottom=this.right=this.top=0:void 0===e?this.left=this.bottom=this.right=this.top=t:void 0===n?(this.top=t,this.right=e,this.bottom=t,this.left=e):void 0!==i?(this.top=t,this.right=e,this.bottom=n,this.left=i):x("Invalid arguments to Margin constructor: "+t+", "+e+", "+n+", "+i),this._isFrozen=!1}function qt(t){if("string"==typeof t){t=t.split(" ");for(var e=0,n=NaN;""===t[e];)e++;var i=t[e++];if(i&&(n=parseFloat(i)),isNaN(n))return new Xt;for(var r=NaN;""===t[e];)e++;if((i=t[e++])&&(r=parseFloat(i)),isNaN(r))return new Xt(n);for(var o=NaN;""===t[e];)e++;if((i=t[e++])&&(o=parseFloat(i)),isNaN(o))return new Xt(n,r);for(var a=NaN;""===t[e];)e++;return(i=t[e++])&&(a=parseFloat(i)),isNaN(a)?new Xt(n,r):new Xt(n,r,o,a)}return new Xt}function Kt(t){return t.top.toString()+" "+t.right.toString()+" "+t.bottom.toString()+" "+t.left.toString()}Bt.className="Rect",Bt.parse=Dt,Bt.stringify=Rt,Bt.contains=_t,Bt.intersects=Zt,Bt.ZeroRect=Wt=new Bt(0,0,0,0).ja(),Bt.NoRect=Vt=new Bt(NaN,NaN,NaN,NaN).ja(),Bt.parse=Dt,Bt.stringify=Rt,Bt.contains=_t,Bt.intersects=Zt,Xt.prototype.assign=function(t){return this.top=t.top,this.right=t.right,this.bottom=t.bottom,this.left=t.left,this},Xt.prototype.sg=function(t,e,n,i){return this.top=t,this.right=e,this.bottom=n,this.left=i,this},Xt.prototype.set=function(t){return this.top=t.top,this.right=t.right,this.bottom=t.bottom,this.left=t.left,this},Xt.prototype.copy=function(){var t=new Xt;return t.top=this.top,t.right=this.right,t.bottom=this.bottom,t.left=this.left,t},(e=Xt.prototype).ja=function(){return this._isFrozen=!0,Object.freeze(this),this},e.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},e.freeze=function(){return this._isFrozen=!0,this},e.ka=function(){return Object.isFrozen(this)&&x("cannot thaw constant: "+this),this._isFrozen=!1,this},e.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},e.D=function(t){return t instanceof Xt&&(this.top===t.top&&this.right===t.right&&this.bottom===t.bottom&&this.left===t.left)},e.hi=function(t,e,n,i){return this.top===t&&this.right===e&&this.bottom===n&&this.left===i},e.Xa=function(t){return _e.B(this.top,t.top)&&_e.B(this.right,t.right)&&_e.B(this.bottom,t.bottom)&&_e.B(this.left,t.left)},e.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},Xt.alloc=function(){var t=Oe.pop();return void 0===t?new Xt:t},Xt.free=function(t){Oe.push(t)},Xt.prototype.isReal=Xt.prototype.w,Xt.prototype.equalsApprox=Xt.prototype.Xa,Xt.prototype.equalTo=Xt.prototype.hi,Xt.prototype.equals=Xt.prototype.D,Xt.prototype.set=Xt.prototype.set,Xt.prototype.setTo=Xt.prototype.sg;var Qt,Jt,$t,te,ee,ne,ie,re,oe,ae,se,le,ue,ce,he,de,fe,pe,ge,me,ve,ye,we,be,xe,Se,Pe,ke,Ce,Ae,Me,Ee,Le,Te,Ne,je,Ie,Be,Oe=[];function De(t,e,n,i){void 0===t?this.offsetY=this.offsetX=this.y=this.x=0:(void 0===e&&(e=0),void 0===n&&(n=0),void 0===i&&(i=0),this.x=t,this.y=e,this.offsetX=n,this.offsetY=i),this._isFrozen=!1}function Re(t,e){return t.x=NaN,t.y=NaN,t.offsetX=e,t}function Fe(t){if("string"==typeof t){if("None"===(t=t.trim()))return $t;if("TopLeft"===t)return te;if("Top"===t||"TopCenter"===t||"MiddleTop"===t)return ee;if("TopRight"===t)return ne;if("Left"===t||"LeftCenter"===t||"MiddleLeft"===t)return ie;if("Center"===t)return re;if("Right"===t||"RightCenter"===t||"MiddleRight"===t)return oe;if("BottomLeft"===t)return ae;if("Bottom"===t||"BottomCenter"===t||"MiddleBottom"===t)return se;if("BottomRight"===t)return le;if("TopSide"===t)return ue;if("LeftSide"===t)return ce;if("RightSide"===t)return he;if("BottomSide"===t)return de;if("TopBottomSides"===t)return fe;if("LeftRightSides"===t)return pe;if("TopLeftSides"===t)return ge;if("TopRightSides"===t)return me;if("BottomLeftSides"===t)return ve;if("BottomRightSides"===t)return ye;if("NotTopSide"===t)return we;if("NotLeftSide"===t)return be;if("NotRightSide"===t)return xe;if("NotBottomSide"===t)return Se;if("AllSides"===t)return Pe;if("Default"===t)return ke;t=t.split(" ");for(var e=0,n=0;""===t[e];)e++;var i=t[e++];void 0!==i&&0<i.length&&(n=parseFloat(i));for(var r=0;""===t[e];)e++;void 0!==(i=t[e++])&&0<i.length&&(r=parseFloat(i));for(var o=0;""===t[e];)e++;void 0!==(i=t[e++])&&0<i.length&&(o=parseFloat(i));for(var a=0;""===t[e];)e++;return void 0!==(i=t[e++])&&0<i.length&&(a=parseFloat(i)),new De(n,r,o,a)}return new De}function ze(t){return t.sb()?t.x.toString()+" "+t.y.toString()+" "+t.offsetX.toString()+" "+t.offsetY.toString():t.toString()}Xt.className="Margin",Xt.parse=qt,Xt.stringify=Kt,Xt.ZeroMargin=Qt=new Xt(0,0,0,0).ja(),Xt.TwoMargin=Jt=new Xt(2,2,2,2).ja(),Xt.parse=qt,Xt.stringify=Kt,De.prototype.assign=function(t){return this.x=t.x,this.y=t.y,this.offsetX=t.offsetX,this.offsetY=t.offsetY,this},De.prototype.sg=function(t,e,n,i){return this.x=t,this.y=e,this.offsetX=n,this.offsetY=i,this},De.prototype.set=function(t){return this.x=t.x,this.y=t.y,this.offsetX=t.offsetX,this.offsetY=t.offsetY,this},De.prototype.copy=function(){var t=new De;return t.x=this.x,t.y=this.y,t.offsetX=this.offsetX,t.offsetY=this.offsetY,t},(e=De.prototype).ja=function(){return this._isFrozen=!0,Object.freeze(this),this},e.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},e.freeze=function(){return this._isFrozen=!0,this},e.ka=function(){return Object.isFrozen(this)&&x("cannot thaw constant: "+this),this._isFrozen=!1,this},e.toString=function(){return this.sb()?0===this.offsetX&&0===this.offsetY?"Spot("+this.x+","+this.y+")":"Spot("+this.x+","+this.y+","+this.offsetX+","+this.offsetY+")":this.D($t)?"None":this.D(te)?"TopLeft":this.D(ee)?"Top":this.D(ne)?"TopRight":this.D(ie)?"Left":this.D(re)?"Center":this.D(oe)?"Right":this.D(ae)?"BottomLeft":this.D(se)?"Bottom":this.D(le)?"BottomRight":this.D(ue)?"TopSide":this.D(ce)?"LeftSide":this.D(he)?"RightSide":this.D(de)?"BottomSide":this.D(fe)?"TopBottomSides":this.D(pe)?"LeftRightSides":this.D(ge)?"TopLeftSides":this.D(me)?"TopRightSides":this.D(ve)?"BottomLeftSides":this.D(ye)?"BottomRightSides":this.D(we)?"NotTopSide":this.D(be)?"NotLeftSide":this.D(xe)?"NotRightSide":this.D(Se)?"NotBottomSide":this.D(Pe)?"AllSides":this.D(ke)?"Default":"None"},e.D=function(t){return t instanceof De&&((this.x===t.x||isNaN(this.x)&&isNaN(t.x))&&(this.y===t.y||isNaN(this.y)&&isNaN(t.y))&&this.offsetX===t.offsetX&&this.offsetY===t.offsetY)},e.gv=function(){return new De(.5-(this.x-.5),.5-(this.y-.5),-this.offsetX,-this.offsetY)},e.Hf=function(t){if(!this.$c())return!1;if(!t.$c())if(t.D(Ce))t=ce;else if(t.D(Ae))t=he;else if(t.D(Me))t=ue;else{if(!t.D(Ee))return!1;t=de}return t=t.offsetY,(this.offsetY&t)===t},e.sb=function(){return!isNaN(this.x)&&!isNaN(this.y)},e.Mc=function(){return isNaN(this.x)||isNaN(this.y)},e.$c=function(){return isNaN(this.x)&&isNaN(this.y)&&1===this.offsetX&&0!==this.offsetY},e.ys=function(){return isNaN(this.x)&&isNaN(this.y)&&0===this.offsetX&&0===this.offsetY},e.Xb=function(){return isNaN(this.x)&&isNaN(this.y)&&-1===this.offsetX&&0===this.offsetY},De.alloc=function(){var t=Ge.pop();return void 0===t?new De:t},De.free=function(t){Ge.push(t)},De.prototype.isDefault=De.prototype.Xb,De.prototype.isNone=De.prototype.ys,De.prototype.isSide=De.prototype.$c,De.prototype.isNoSpot=De.prototype.Mc,De.prototype.isSpot=De.prototype.sb,De.prototype.includesSide=De.prototype.Hf,De.prototype.opposite=De.prototype.gv,De.prototype.equals=De.prototype.D,De.prototype.set=De.prototype.set,De.prototype.setTo=De.prototype.sg;var Ge=[];function Ue(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}De.className="Spot",De.parse=Fe,De.stringify=ze,De.None=$t=Re(new De(0,0,0,0),0).ja(),De.Default=ke=Re(new De(0,0,-1,0),-1).ja(),De.TopLeft=te=new De(0,0,0,0).ja(),De.TopCenter=ee=new De(.5,0,0,0).ja(),De.TopRight=ne=new De(1,0,0,0).ja(),De.LeftCenter=ie=new De(0,.5,0,0).ja(),De.Center=re=new De(.5,.5,0,0).ja(),De.RightCenter=oe=new De(1,.5,0,0).ja(),De.BottomLeft=ae=new De(0,1,0,0).ja(),De.BottomCenter=se=new De(.5,1,0,0).ja(),De.BottomRight=le=new De(1,1,0,0).ja(),De.MiddleTop=Le=ee,De.MiddleLeft=Te=ie,De.MiddleRight=Ne=oe,De.MiddleBottom=je=se,De.Top=Me=ee,De.Left=Ce=ie,De.Right=Ae=oe,De.Bottom=Ee=se,De.TopSide=ue=Re(new De(0,0,1,1),1).ja(),De.LeftSide=ce=Re(new De(0,0,1,2),1).ja(),De.RightSide=he=Re(new De(0,0,1,4),1).ja(),De.BottomSide=de=Re(new De(0,0,1,8),1).ja(),De.TopBottomSides=fe=Re(new De(0,0,1,9),1).ja(),De.LeftRightSides=pe=Re(new De(0,0,1,6),1).ja(),De.TopLeftSides=ge=Re(new De(0,0,1,3),1).ja(),De.TopRightSides=me=Re(new De(0,0,1,5),1).ja(),De.BottomLeftSides=ve=Re(new De(0,0,1,10),1).ja(),De.BottomRightSides=ye=Re(new De(0,0,1,12),1).ja(),De.NotTopSide=we=Re(new De(0,0,1,14),1).ja(),De.NotLeftSide=be=Re(new De(0,0,1,13),1).ja(),De.NotRightSide=xe=Re(new De(0,0,1,11),1).ja(),De.NotBottomSide=Se=Re(new De(0,0,1,7),1).ja(),De.AllSides=Pe=Re(new De(0,0,1,15),1).ja(),Ie=new De(.156,.156).ja(),Be=new De(.844,.844).ja(),De.parse=Fe,De.stringify=ze,Ue.prototype.set=function(t){return this.m11=t.m11,this.m12=t.m12,this.m21=t.m21,this.m22=t.m22,this.dx=t.dx,this.dy=t.dy,this},Ue.prototype.setTransform=function(t,e,n,i,r,o){return this.m11=t,this.m12=e,this.m21=n,this.m22=i,this.dx=r,this.dy=o,this},Ue.prototype.copy=function(){var t=new Ue;return t.m11=this.m11,t.m12=this.m12,t.m21=this.m21,t.m22=this.m22,t.dx=this.dx,t.dy=this.dy,t},Ue.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},Ue.prototype.D=function(t){return this.m11===t.m11&&this.m12===t.m12&&this.m21===t.m21&&this.m22===t.m22&&this.dx===t.dx&&this.dy===t.dy},Ue.prototype.ws=function(){return 0===this.dx&&0===this.dy&&1===this.m11&&0===this.m12&&0===this.m21&&1===this.m22},Ue.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},Ue.prototype.multiply=function(t){var e=this.m11*t.m11+this.m21*t.m12,n=this.m12*t.m11+this.m22*t.m12,i=this.m11*t.m21+this.m21*t.m22,r=this.m12*t.m21+this.m22*t.m22;return this.dx=this.m11*t.dx+this.m21*t.dy+this.dx,this.dy=this.m12*t.dx+this.m22*t.dy+this.dy,this.m11=e,this.m12=n,this.m21=i,this.m22=r,this},Ue.prototype.bv=function(t){var e=1/(t.m11*t.m22-t.m12*t.m21),n=t.m22*e,i=-t.m12*e,r=-t.m21*e,o=t.m11*e,a=e*(t.m21*t.dy-t.m22*t.dx);return t=e*(t.m12*t.dx-t.m11*t.dy),e=this.m11*n+this.m21*i,n=this.m12*n+this.m22*i,i=this.m11*r+this.m21*o,r=this.m12*r+this.m22*o,this.dx=this.m11*a+this.m21*t+this.dx,this.dy=this.m12*a+this.m22*t+this.dy,this.m11=e,this.m12=n,this.m21=i,this.m22=r,this},Ue.prototype.Vj=function(){var t=1/(this.m11*this.m22-this.m12*this.m21),e=-this.m12*t,n=-this.m21*t,i=this.m11*t,r=t*(this.m21*this.dy-this.m22*this.dx),o=t*(this.m12*this.dx-this.m11*this.dy);return this.m11=this.m22*t,this.m12=e,this.m21=n,this.m22=i,this.dx=r,this.dy=o,this},Ue.prototype.rotate=function(t,e,n){if(360<=t?t-=360:0>t&&(t+=360),0===t)return this;if(this.translate(e,n),90===t){t=0;var i=1}else 180===t?(t=-1,i=0):270===t?(t=0,i=-1):(i=t*Math.PI/180,t=Math.cos(i),i=Math.sin(i));var r=this.m12*t+this.m22*i,o=this.m11*-i+this.m21*t,a=this.m12*-i+this.m22*t;return this.m11=this.m11*t+this.m21*i,this.m12=r,this.m21=o,this.m22=a,this.translate(-e,-n),this},(e=Ue.prototype).translate=function(t,e){return this.dx+=this.m11*t+this.m21*e,this.dy+=this.m12*t+this.m22*e,this},e.scale=function(t,e){return void 0===e&&(e=t),this.m11*=t,this.m12*=t,this.m21*=e,this.m22*=e,this},e.Ga=function(t){var e=t.x,n=t.y;return t.h(e*this.m11+n*this.m21+this.dx,e*this.m12+n*this.m22+this.dy)},e.Cd=function(t){var e=1/(this.m11*this.m22-this.m12*this.m21),n=t.x,i=t.y;return t.h(n*this.m22*e+i*-this.m21*e+e*(this.m21*this.dy-this.m22*this.dx),n*-this.m12*e+i*this.m11*e+e*(this.m12*this.dx-this.m11*this.dy))},e.Eu=function(t){var e=1/(this.m11*this.m22-this.m12*this.m21),n=1.25*t.x,i=1.2*t.y;return t.h(n*this.m22*e+i*-this.m21*e+e*(this.m21*this.dy-this.m22*this.dx),n*-this.m12*e+i*this.m11*e+e*(this.m12*this.dx-this.m11*this.dy))},e.pp=function(t){var e=t.x,n=t.y,i=e+t.width,r=n+t.height,o=this.m11,a=this.m12,s=this.m21,l=this.m22,u=this.dx,c=this.dy,h=e*o+n*s+u,d=e*a+n*l+c,f=i*o+n*s+u,p=i*a+n*l+c;return n=e*o+r*s+u,e=e*a+r*l+c,o=i*o+r*s+u,i=i*a+r*l+c,r=Math.min(h,f),h=Math.max(h,f),f=Math.min(d,p),d=Math.max(d,p),r=Math.min(r,n),h=Math.max(h,n),f=Math.min(f,e),d=Math.max(d,e),r=Math.min(r,o),h=Math.max(h,o),f=Math.min(f,i),d=Math.max(d,i),t.h(r,f,h-r,d-f),t},Ue.alloc=function(){var t=He.pop();return void 0===t?new Ue:t},Ue.free=function(t){He.push(t)},Ue.prototype.transformRect=Ue.prototype.pp,Ue.prototype.transformPoint=Ue.prototype.Ga,Ue.prototype.scale=Ue.prototype.scale,Ue.prototype.translate=Ue.prototype.translate,Ue.prototype.rotate=Ue.prototype.rotate,Ue.prototype.invert=Ue.prototype.Vj,Ue.prototype.multiplyInverted=Ue.prototype.bv,Ue.prototype.multiply=Ue.prototype.multiply,Ue.prototype.reset=Ue.prototype.reset,Ue.prototype.isIdentity=Ue.prototype.ws,Ue.prototype.equals=Ue.prototype.D,Ue.prototype.setTransform=Ue.prototype.setTransform,Ue.prototype.set=Ue.prototype.set;var He=[];Ue.className="Transform",Ue.xF="54a702f3e53909c447824c6706603faf4c";var _e={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(t){if(0>=t)return 0;var e=_e.Uv;if(null===e){e=[];for(var n=0;2e3>=n;n++)e[n]=Math.sqrt(n);_e.Uv=e}return 1>t?2e3>=(n=1/t)?1/e[0|n]:Math.sqrt(t):2e3>=t?e[0|t]:Math.sqrt(t)},B:function(t,e){return.5>(t-=e)&&-.5<t},$:function(t,e){return 5e-8>(t-=e)&&-5e-8<t},Yb:function(t,e,n,i,r,o,a){if(0>=r&&(r=1e-6),t<n)var s=t,l=n;else s=n,l=t;if(e<i)var u=e,c=i;else u=i,c=e;if(t===n)return u<=a&&a<=c&&t-r<=o&&o<=t+r;if(e===i)return s<=o&&o<=l&&e-r<=a&&a<=e+r;if(l+=r,(s-=r)<=o&&o<=l&&(c+=r,(u-=r)<=a&&a<=c))if(l-s>c-u){if(!(t-n>r||n-t>r))return!0;if((o=(i-e)/(n-t)*(o-t)+e)-r<=a&&a<=o+r)return!0}else{if(!(e-i>r||i-e>r))return!0;if((a=(n-t)/(i-e)*(a-e)+t)-r<=o&&o<=a+r)return!0}return!1},cs:function(t,e,n,i,r,o,a,s,l,u,c,h){if(_e.Yb(t,e,a,s,h,n,i)&&_e.Yb(t,e,a,s,h,r,o))return _e.Yb(t,e,a,s,h,u,c);var d=(t+n)/2,f=(e+i)/2,p=(n+r)/2,g=(i+o)/2,m=((i=(d+p)/2)+(p=(p+(r=(r+a)/2))/2))/2,v=((n=(f+g)/2)+(g=(g+(o=(o+s)/2))/2))/2;return _e.cs(t,e,d,f,i,n,m,v,l,u,c,h)||_e.cs(m,v,p,g,r,o,a,s,l,u,c,h)},ax:function(t,e,n,i,r,o,a,s,l){var u=(n+r)/2,c=(i+o)/2;return l.h((((t+n)/2+u)/2+(u+(r+a)/2)/2)/2,(((e+i)/2+c)/2+(c+(o+s)/2)/2)/2),l},My:function(t,e,n,i,r,o,a,s){var l=(n+r)/2,u=(i+o)/2;return xt(((t+n)/2+l)/2,((e+i)/2+u)/2,(l+(r+a)/2)/2,(u+(o+s)/2)/2)},Dl:function(t,e,n,i,r,o,a,s,l,u){if(_e.Yb(t,e,a,s,l,n,i)&&_e.Yb(t,e,a,s,l,r,o))Ht(u,t,e,0,0),Ht(u,a,s,0,0);else{var c=(t+n)/2,h=(e+i)/2,d=(n+r)/2,f=(i+o)/2,p=((i=(c+d)/2)+(d=(d+(r=(r+a)/2))/2))/2,g=((n=(h+f)/2)+(f=(f+(o=(o+s)/2))/2))/2;_e.Dl(t,e,c,h,i,n,p,g,l,u),_e.Dl(p,g,d,f,r,o,a,s,l,u)}return u},Qe:function(t,e,n,i,r,o,a,s,l,u){if(_e.Yb(t,e,a,s,l,n,i)&&_e.Yb(t,e,a,s,l,r,o))0===u.length&&(u.push(t),u.push(e)),u.push(a),u.push(s);else{var c=(t+n)/2,h=(e+i)/2,d=(n+r)/2,f=(i+o)/2,p=((i=(c+d)/2)+(d=(d+(r=(r+a)/2))/2))/2,g=((n=(h+f)/2)+(f=(f+(o=(o+s)/2))/2))/2;_e.Qe(t,e,c,h,i,n,p,g,l,u),_e.Qe(p,g,d,f,r,o,a,s,l,u)}return u},jv:function(t,e,n,i,r,o,a,s,l,u){if(_e.Yb(t,e,r,o,u,n,i))return _e.Yb(t,e,r,o,u,s,l);var c=(t+n)/2,h=(e+i)/2,d=(c+(n=(n+r)/2))/2,f=(h+(i=(i+o)/2))/2;return _e.jv(t,e,c,h,d,f,a,s,l,u)||_e.jv(d,f,n,i,r,o,a,s,l,u)},OA:function(t,e,n,i,r,o,a){return a.h(((t+n)/2+(n+r)/2)/2,((e+i)/2+(i+o)/2)/2),a},iv:function(t,e,n,i,r,o,a,s){if(_e.Yb(t,e,r,o,a,n,i))Ht(s,t,e,0,0),Ht(s,r,o,0,0);else{var l=(t+n)/2,u=(e+i)/2,c=(l+(n=(n+r)/2))/2,h=(u+(i=(i+o)/2))/2;_e.iv(t,e,l,u,c,h,a,s),_e.iv(c,h,n,i,r,o,a,s)}return s},ep:function(t,e,n,i,r,o,a,s){if(_e.Yb(t,e,r,o,a,n,i))0===s.length&&(s.push(t),s.push(e)),s.push(r),s.push(o);else{var l=(t+n)/2,u=(e+i)/2,c=(l+(n=(n+r)/2))/2,h=(u+(i=(i+o)/2))/2;_e.ep(t,e,l,u,c,h,a,s),_e.ep(c,h,n,i,r,o,a,s)}return s},Eo:function(t,e,n,i,r,o,a,s,l,u,c,h,d,f){if(_e.Yb(t,e,a,s,d,n,i)&&_e.Yb(t,e,a,s,d,r,o))return!!_e.Rl(t,e,a,s,l,u,c,h)&&(0!=(d=(t-a)*(u-h)-(e-s)*(l-c))&&(f.h(((t*s-e*a)*(l-c)-(t-a)*(l*h-u*c))/d,((t*s-e*a)*(u-h)-(e-s)*(l*h-u*c))/d),!0));var p=(t+n)/2,g=(e+i)/2,m=(n+r)/2,v=(i+o)/2,y=((i=(p+m)/2)+(m=(m+(r=(r+a)/2))/2))/2,w=((n=(g+v)/2)+(v=(v+(o=(o+s)/2))/2))/2,b=1/0,x=!1,S=0,P=0;return _e.Eo(t,e,p,g,i,n,y,w,l,u,c,h,d,f)&&((t=(f.x-l)*(f.x-l)+(f.y-u)*(f.y-u))<b&&(b=t,x=!0,S=f.x,P=f.y)),_e.Eo(y,w,m,v,r,o,a,s,l,u,c,h,d,f)&&(f.x-l)*(f.x-l)+(f.y-u)*(f.y-u)<b&&(x=!0,S=f.x,P=f.y),x&&(f.x=S,f.y=P),x},Fo:function(t,e,n,i,r,o,a,s,l,u,c,h,d){var f=0;if(_e.Yb(t,e,a,s,d,n,i)&&_e.Yb(t,e,a,s,d,r,o)){if(0===(d=(t-a)*(u-h)-(e-s)*(l-c)))return f;var p=((t*s-e*a)*(l-c)-(t-a)*(l*h-u*c))/d,g=((t*s-e*a)*(u-h)-(e-s)*(l*h-u*c))/d;if(p>=c)return f;if((l>c?l-c:c-l)<(u>h?u-h:h-u)){if(e<s?(l=e,t=s):(l=s,t=e),g<l||g>t)return f}else if(t<a?(l=t,t=a):l=a,p<l||p>t)return f;0<d?f++:0>d&&f--}else{g=(e+i)/2;var m=(n+r)/2,v=(i+o)/2,y=((i=((p=(t+n)/2)+m)/2)+(m=(m+(r=(r+a)/2))/2))/2,w=((n=(g+v)/2)+(v=(v+(o=(o+s)/2))/2))/2;f+=_e.Fo(t,e,p,g,i,n,y,w,l,u,c,h,d),f+=_e.Fo(y,w,m,v,r,o,a,s,l,u,c,h,d)}return f},qh:function(t,e,n,i,r,o,a){return _e.$(t,n)?(e<i?(n=e,e=i):n=i,o<n?(a.h(t,n),!1):o>e?(a.h(t,e),!1):(a.h(t,o),!0)):_e.$(e,i)?(t<n?(i=t,t=n):i=n,r<i?(a.h(i,e),!1):r>t?(a.h(t,e),!1):(a.h(r,e),!0)):-5e-6>(r=((t-r)*(t-n)+(e-o)*(e-i))/((n-t)*(n-t)+(i-e)*(i-e)))?(a.h(t,e),!1):1.000005<r?(a.h(n,i),!1):(a.h(t+r*(n-t),e+r*(i-e)),!0)},Ve:function(t,e,n,i,r,o,a,s,l){return _e.B(t,n)&&_e.B(e,i)?(l.h(t,e),!1):_e.$(r,a)?_e.$(t,n)?(_e.qh(t,e,n,i,r,o,l),!1):_e.qh(t,e,n,i,r,(i-e)/(n-t)*(r-t)+e,l):(s=(s-o)/(a-r),_e.$(t,n)?(n=s*(t-r)+o,e<i?(r=e,e=i):r=i,n<r?(l.h(t,r),!1):n>e?(l.h(t,e),!1):(l.h(t,n),!0)):(a=(i-e)/(n-t),_e.$(s,a)?(_e.qh(t,e,n,i,r,o,l),!1):(r=(a*t-s*r+o-e)/(a-s),_e.$(a,0)?(t<n?(i=t,t=n):i=n,r<i?(l.h(i,e),!1):r>t?(l.h(t,e),!1):(l.h(r,e),!0)):_e.qh(t,e,n,i,r,a*(r-t)+e,l))))},MA:function(t,e,n,i,r){return _e.Ve(n.x,n.y,i.x,i.y,t.x,t.y,e.x,e.y,r)},KA:function(t,e,n,i,r,o,a,s,l,u){function c(n,i){var r=(n-t)*(n-t)+(i-e)*(i-e);r<h&&(h=r,l.h(n,i))}var h=1/0;c(l.x,l.y);var d=0,f=0,p=0,g=0;if(r<a?(d=r,f=a):(d=a,f=r),o<s?(p=r,g=a):(p=a,g=r),d=(f-d)/2+u,u=(g-p)/2+u,r=(r+a)/2,o=(o+s)/2,0===d||0===u)return l;if(.5>(n>t?n-t:t-n)){if(0>(d=1-(n-r)*(n-r)/(d*d)))return l;i=-u*(d=Math.sqrt(d))+o,c(n,u*d+o),c(n,i)}else{if(0>(d=(s=2*(n=(i-e)/(n-t))*(e-n*t)/(u*u)-2*n*o/(u*u)-2*r/(d*d))*s-4*(i=1/(d*d)+n*n/(u*u))*(2*n*t*o/(u*u)-2*e*o/(u*u)+o*o/(u*u)+r*r/(d*d)-1+(e-n*t)*(e-n*t)/(u*u))))return l;c(u=(-s+(d=Math.sqrt(d)))/(2*i),n*u-n*t+e),c(d=(-s-d)/(2*i),n*d-n*t+e)}return l},Ff:function(t,e,n,i,r,o,a,s,l){var u=1e21,c=t,h=e;if(_e.Ve(t,e,t,i,r,o,a,s,l)){var d=(l.x-r)*(l.x-r)+(l.y-o)*(l.y-o);d<u&&(u=d,c=l.x,h=l.y)}return _e.Ve(n,e,n,i,r,o,a,s,l)&&((d=(l.x-r)*(l.x-r)+(l.y-o)*(l.y-o))<u&&(u=d,c=l.x,h=l.y)),_e.Ve(t,e,n,e,r,o,a,s,l)&&((e=(l.x-r)*(l.x-r)+(l.y-o)*(l.y-o))<u&&(u=e,c=l.x,h=l.y)),_e.Ve(t,i,n,i,r,o,a,s,l)&&((t=(l.x-r)*(l.x-r)+(l.y-o)*(l.y-o))<u&&(u=t,c=l.x,h=l.y)),l.h(c,h),1e21>u},us:function(t,e,n){return _e.Fx(t.x,t.y,t.width,t.height,e.x,e.y,n.x,n.y)},Fx:function(t,e,n,i,r,o,a,s){var l=t+n,u=e+i;return r===a?(o<s?(a=o,o=s):a=s,t<=r&&r<=l&&a<=u&&o>=e):o===s?(r<a?(s=r,r=a):s=a,e<=o&&o<=u&&s<=l&&r>=t):!!(_t(t,e,n,i,r,o)||_t(t,e,n,i,a,s)||_e.Rl(t,e,l,e,r,o,a,s)||_e.Rl(l,e,l,u,r,o,a,s)||_e.Rl(l,u,t,u,r,o,a,s)||_e.Rl(t,u,t,e,r,o,a,s))},Rl:function(t,e,n,i,r,o,a,s){return t===n&&e===i&&r===a&&o===s?t===r&&e===o:0>=_e.Fl(t,e,n,i,r,o)*_e.Fl(t,e,n,i,a,s)&&0>=_e.Fl(r,o,a,s,t,e)*_e.Fl(r,o,a,s,n,i)},Fl:function(t,e,n,i,r,o){return n-=t,0===(o=(t=r-t)*(i-=e)-(e=o-e)*n)&&(0<(o=t*n+e*i)&&(0>(o=(t-n)*n+(e-i)*i)&&(o=0))),o},bp:function(t){return 0>t&&(t+=360),360<=t&&(t-=360),t},jx:function(t,e,n,i,r,o){var a=Math.PI;o||(i*=a/180,r*=a/180);var s=i>r?-1:1;o=[];var l=a/2,u=i;if(1e-5>(i=Math.min(2*a,Math.abs(r-i))))return l=u+s*Math.min(i,l),s=t+n*Math.cos(u),u=e+n*Math.sin(u),t+=n*Math.cos(l),e+=n*Math.sin(l),n=(s+t)/2,l=(u+e)/2,o.push([s,u,n,l,n,l,t,e]),o;for(;1e-5<i;)r=u+s*Math.min(i,l),o.push(_e.Vy(n,u,r,t,e)),i-=Math.abs(r-u),u=r;return o},Vy:function(t,e,n,i,r){var o=(n-e)/2,a=t*Math.cos(o),s=t*Math.sin(o),l=-s,u=a*a+l*l,c=u+a*a+l*s;return s=a-(u=4/3*(Math.sqrt(2*u*c)-c)/(a*s-l*a))*l,l=-(a=l+u*a),u=o+e,o=Math.cos(u),u=Math.sin(u),[i+t*Math.cos(e),r+t*Math.sin(e),i+s*o-a*u,r+s*u+a*o,i+s*o-l*u,r+s*u+l*o,i+t*Math.cos(n),r+t*Math.sin(n)]},No:function(t,e,n,i,r,o,a){var s=n=Math.floor((t-n)/r)*r+n;return n+r-t<r/2&&(s=n+r),t=i=Math.floor((e-i)/o)*o+i,i+o-e<o/2&&(t=i+o),a.h(s,t),a},vx:function(t,e){var n,i=Math.max(t,e);t=Math.min(t,e);do{e=i%t,i=n=t,t=e}while(0<e);return n},$y:function(t,e,n,i){var r=0>n,o=0>i;if(t<e)var a=1,s=0;else a=0,s=1;var l=0===a?t:e,u=0===a?n:i;return(0===a?r:o)&&(u=-u),n=0===(a=s)?n:i,(0===a?r:o)&&(n=-n),_e.az(l,0===a?t:e,u,n,0,0)},az:function(t,e,n,i,r,o){if(0<i)if(0<n){r=t*t,t*=n;var a=e*i,s=-(o=e*e)+a,l=-o+Math.sqrt(t*t+a*a);e=s;for(var u=0;9999999999>u&&((e=.5*(s+l))!==s&&e!==l);++u){var c=t/(e+r),h=a/(e+o);if(0<(c=c*c+h*h-1))s=e;else{if(!(0>c))break;l=e}}n=r*n/(e+r)-n,i=o*i/(e+o)-i,n=Math.sqrt(n*n+i*i)}else n=Math.abs(i-e);else(o=t*n)<(i=t*t-e*e)?(i=o/i,o=e*Math.sqrt(Math.abs(1-i*i)),n=t*i-n,n=Math.sqrt(n*n+o*o)):n=Math.abs(n-t);return n},Ze:new _,um:new _,Mf:new _,Nf:0,vm:100};function Ze(t){$(this),this.l=2,void 0===t&&(t=Ze.o),this.na=t,this.Ec=this.Dc=this.pd=this.od=0,t===Ze.o?this.ee=new K:(null===Ze.V&&(Ze.V=(new K).freeze()),this.ee=Ze.V),this.aq=this.ee.Ja,this.Ip=(new Bt).freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=te,this.gg=le,this.Rk=this.Sk=NaN,this.Uf=ha}function We(t,e){return t.type===Ze.j&&e.type===Ze.o&&!!(1===e.figures.count&&(e=e.figures.M(0),1===e.segments.count&&_e.B(t.startX,e.startX)&&_e.B(t.startY,e.startY)&&(e=e.segments.M(0),e.type===rn&&_e.B(t.endX,e.endX)&&_e.B(t.endY,e.endY))))}function Ve(t,e,n){switch(t.type){case Ze.j:case Ze.u:case Ze.F:n?e.h(t.od,t.pd,0,0):Ht(e,t.od,t.pd,0,0),Ht(e,t.Dc,t.Ec,0,0);break;case Ze.o:var i=t.figures;t=i.s,i=i.length;for(var r=0;r<i;r++){var o=t[r];n&&0===r?e.h(o.startX,o.startY,0,0):Ht(e,o.startX,o.startY,0,0);for(var a=o.segments.s,s=a.length,l=o.startX,u=o.startY,c=0;c<s;c++){var h=a[c];switch(h.type){case rn:case nn:Ht(e,l=h.endX,u=h.endY,0,0);break;case on:_e.Dl(l,u,h.point1X,h.point1Y,h.point2X,h.point2Y,h.endX,h.endY,.5,e),l=h.endX,u=h.endY;break;case an:_e.iv(l,u,h.point1X,h.point1Y,h.endX,h.endY,.5,e),l=h.endX,u=h.endY;break;case sn:case ln:var d=h.type===sn?tn(h,o):en(h,o,l,u),f=d.length;if(0===f){Ht(e,l=h.type===sn?h.centerX:h.endX,u=h.type===sn?h.centerY:h.endY,0,0);break}h=null;for(var p=0;p<f;p++)h=d[p],_e.Dl(h[0],h[1],h[2],h[3],h[4],h[5],h[6],h[7],.5,e);null!==h&&(l=h[6],u=h[7]);break;default:x("Unknown Segment type: "+h.type)}}}break;default:x("Unknown Geometry type: "+t.type)}}function Ye(t,e,n,i,r){var o=e.x;e=e.y;for(var a,s,l,u,c=t.bounds.x-20,h=0,d=t.figures.s,f=d.length,p=0;p<f;p++){var g=d[p],m=!g.isEvenOdd;if(g.isFilled){if(i&&g.ca(o,e,n))return!0;for(var v=g.segments,y=a=g.startX,w=s=g.startY,b=v.s,S=0;S<=v.length;S++){var P=void 0;if(S!==v.length){var k=(P=b[S]).type;t=P.endX,u=P.endY}else k=rn,t=y,u=w;switch(k){case nn:if(y=Xe(o,e,c,e,a,s,y,w),isNaN(y))return!0;h+=y,y=t,w=u;break;case rn:if(a=Xe(o,e,c,e,a,s,t,u),isNaN(a))return!0;h+=a;break;case on:h+=l=_e.Fo(a,s,P.point1X,P.point1Y,P.point2X,P.point2Y,t,u,c,e,o,e,.5);break;case an:h+=l=_e.Fo(a,s,(a+2*P.point1X)/3,(s+2*P.point1Y)/3,(2*P.point1X+t)/3,(2*P.point1Y+u)/3,t,u,c,e,o,e,.5);break;case sn:case ln:var C=(k=P.type===sn?tn(P,g):en(P,g,a,s)).length;if(0===C){if(a=Xe(o,e,c,e,a,s,P.type===sn?P.centerX:P.endX,P.type===sn?P.centerY:P.endY),isNaN(a))return!0;h+=a;break}P=null;for(var A=0;A<C;A++){if(P=k[A],0===A){if(l=Xe(o,e,c,e,a,s,P[0],P[1]),isNaN(l))return!0;h+=l}h+=l=_e.Fo(P[0],P[1],P[2],P[3],P[4],P[5],P[6],P[7],c,e,o,e,.5)}null!==P&&(t=P[6],u=P[7]);break;default:x("Unknown Segment type: "+P.type)}a=t,s=u}if(m){if(0!==h)return!0}else if(0!=h%2)return!0;h=0}else if(g.ca(o,e,r?n:n+2))return!0}return!1}function Xe(t,e,n,i,r,o,a,s){if(_e.Yb(r,o,a,s,.05,t,e))return NaN;var l=(t-n)*(o-s);if(0===l)return 0;var u=((t*i-e*n)*(r-a)-(t-n)*(r*s-o*a))/l;if(e=(t*i-e*n)*(o-s)/l,u>=t)return 0;if((r>a?r-a:a-r)<(o>s?o-s:s-o)){if(o<s){if(e<o||e>s)return 0}else if(e<s||e>o)return 0}else if(r<a){if(u<r||u>a)return 0}else if(u<a||u>r)return 0;return 0<l?1:-1}function qe(t,e,n,i){for(var r=(t=t.figures.s).length,o=0;o<r;o++)if(t[o].ca(e,n,i))return!0;return!1}function Ke(t){if(null===t.tk){var e=t.tk=[],n=t.ym=[],i=[],r=[];if(t.type===Ze.j)i.push(t.startX),i.push(t.startY),i.push(t.endX),i.push(t.endY),e.push(i),r.push(Math.sqrt((t.startX-t.endX)*(t.startX-t.endX)+(t.startY-t.endY)*(t.startY-t.endY))),n.push(r);else if(t.type===Ze.u)i.push(t.startX),i.push(t.startY),i.push(t.endX),i.push(t.startY),i.push(t.endX),i.push(t.endY),i.push(t.startX),i.push(t.endY),i.push(t.startX),i.push(t.startY),e.push(i),r.push(Math.abs(t.startX-t.endX)),r.push(Math.abs(t.startY-t.endY)),r.push(Math.abs(t.startX-t.endX)),r.push(Math.abs(t.startY-t.endY)),n.push(r);else if(t.type===Ze.F){var o=new Je;o.startX=t.endX,o.startY=(t.startY+t.endY)/2;var a=new $e(sn);if(a.startAngle=0,a.sweepAngle=360,a.centerX=(t.startX+t.endX)/2,a.centerY=(t.startY+t.endY)/2,a.radiusX=Math.abs(t.startX-t.endX)/2,a.radiusY=Math.abs(t.startY-t.endY)/2,o.add(a),0===(r=(t=tn(a,o)).length))i.push(a.centerX),i.push(a.centerY);else{a=o.startX,o=o.startY;for(var s=0;s<r;s++){var l=t[s];_e.Qe(a,o,l[2],l[3],l[4],l[5],l[6],l[7],.5,i),a=l[6],o=l[7]}}e.push(i),n.push(Qe(i))}else for(t=t.figures.iterator;t.next();){r=t.value,(i=[]).push(r.startX),i.push(r.startY),s=a=r.startX,l=o=r.startY;for(var u=r.segments.s,c=u.length,h=0;h<c;h++){var d=u[h];switch(d.type){case nn:4<=i.length&&(e.push(i),n.push(Qe(i))),(i=[]).push(d.endX),i.push(d.endY),s=a=d.endX,l=o=d.endY;break;case rn:i.push(d.endX),i.push(d.endY),a=d.endX,o=d.endY;break;case on:_e.Qe(a,o,d.point1X,d.point1Y,d.point2X,d.point2Y,d.endX,d.endY,.5,i),a=d.endX,o=d.endY;break;case an:_e.ep(a,o,d.point1X,d.point1Y,d.endX,d.endY,.5,i),a=d.endX,o=d.endY;break;case sn:var f=tn(d,r),p=f.length;if(0===p){i.push(d.centerX),i.push(d.centerY),a=d.centerX,o=d.centerY;break}for(var g=0;g<p;g++){var m=f[g];_e.Qe(a,o,m[2],m[3],m[4],m[5],m[6],m[7],.5,i),a=m[6],o=m[7]}break;case ln:if(p=(f=en(d,r,a,o)).length,g=d.endX,m=d.endY,0===p){i.push(g),i.push(m),a=g,o=m;break}for(g=0;g<p;g++)m=f[g],_e.Qe(a,o,m[2],m[3],m[4],m[5],m[6],m[7],.5,i),a=m[6],o=m[7];break;default:x("Segment not of valid type: "+d.type)}d.isClosed&&(i.push(s),i.push(l))}4<=i.length&&(e.push(i),n.push(Qe(i)))}}}function Qe(t){for(var e=[],n=0,i=0,r=t.length,o=0;o<r;o+=2){var a=t[o],s=t[o+1];0!==o&&e.push(Math.sqrt(bt(n,i,a,s))),n=a,i=s}return e}function Je(t,e,n,i,r){$(this),void 0===n&&(n=!0),void 0===i&&(i=!0),void 0===r&&(r=!1),this.l=2|(n?4:0)|(i?8:0)|(r?16:0),this.od=void 0!==t?t:0,this.pd=void 0!==e?e:0,this.pl=new K,this.sr=this.pl.Ja,this.fw=null}function $e(t,e,n,i,r,o,a,s){$(this),void 0===t&&(t=rn),this.na=t,this.l=2,this.Dc=void 0!==e?e:0,this.Ec=void 0!==n?n:0,void 0===i&&(i=0),void 0===r&&(r=0),void 0===o&&(o=0),void 0===a&&(a=0),t===ln?(0>(t=o%360)&&(t+=360),this.Ne=t,this.Vh=0,this.Wh=Math.max(i,0),this.Pg=Math.max(r,0),"boolean"==typeof a?a&&(this.isLargeArc=!0):"number"==typeof a&&a&&(this.isLargeArc=!0),s&&(this.isClockwiseArc=!0)):(this.Ne=i,this.Vh=r,t===sn&&(o=Math.max(o,0)),this.Wh=o,"number"==typeof a?(t===sn&&(a=Math.max(a,0)),this.Pg=a):this.Pg=0),this.ae=null}function tn(t,e){if(null!==t.ae&&!1===e._isInvalidBounds)return t.ae;var n=t.radiusX,i=t.radiusY;if(void 0===i&&(i=n),0===n||0===i)return t.ae=[],t.ae;e=t.Ne;var r=t.Vh,o=_e.jx(0,0,n<i?n:i,t.startAngle,t.startAngle+t.sweepAngle,!1);if(n!==i){var a=Ue.alloc();a.reset(),n<i?a.scale(1,i/n):a.scale(n/i,1),Ze.Ha(o,a),Ue.free(a)}for(n=o.length,i=0;i<n;i++)(a=o[i])[0]+=e,a[1]+=r,a[2]+=e,a[3]+=r,a[4]+=e,a[5]+=r,a[6]+=e,a[7]+=r;return t.ae=o,t.ae}function en(t,e,n,i){function r(t,e,n,i){return(t*i<e*n?-1:1)*Math.acos((t*n+e*i)/(Math.sqrt(t*t+e*e)*Math.sqrt(n*n+i*i)))}if(null!==t.ae&&!1===e._isInvalidBounds)return t.ae;if(0===t.radiusX||0===t.radiusY)return t.ae=[],t.ae;e=t.Wh;var o=t.Pg;0===e&&(e=1e-4),0===o&&(o=1e-4);var a=Math.PI/180*t.Ne,s=t.isLargeArc,l=t.isClockwiseArc,u=t.Dc,c=t.Ec,h=Math.cos(a),d=Math.sin(a),f=h*(n-u)/2+d*(i-c)/2,p=f*f/(e*e)+(a=-d*(n-u)/2+h*(i-c)/2)*a/(o*o);return 1<p&&(e*=Math.sqrt(p),o*=Math.sqrt(p)),p=(s===l?-1:1)*Math.sqrt((e*e*o*o-e*e*a*a-o*o*f*f)/(e*e*a*a+o*o*f*f)),isNaN(p)&&(p=0),s=p*e*a/o,p=p*-o*f/e,isNaN(s)&&(s=0),isNaN(p)&&(p=0),n=(n+u)/2+h*s-d*p,i=(i+c)/2+d*s+h*p,c=r(1,0,(f-s)/e,(a-p)/o),a=r(h=(f-s)/e,u=(a-p)/o,f=(-f-s)/e,s=(-a-p)/o),-1>=(f=(h*f+u*s)/(Math.sqrt(h*h+u*u)*Math.sqrt(f*f+s*s)))?a=Math.PI:1<=f&&(a=0),!l&&0<a&&(a-=2*Math.PI),l&&0>a&&(a+=2*Math.PI),l=e>o?1:e/o,f=e>o?o/e:1,e=_e.jx(0,0,e>o?e:o,c,c+a,!0),(o=Ue.alloc()).reset(),o.translate(n,i),o.rotate(t.Ne,0,0),o.scale(l,f),Ze.Ha(e,o),Ue.free(o),t.ae=e,t.ae}_e.za=_e.AA,Ze.prototype.copy=function(){var t=new Ze;if(t.l=-2&this.l,t.na=this.na,t.od=this.od,t.pd=this.pd,t.Dc=this.Dc,t.Ec=this.Ec,this.na===Ze.o){for(var e=this.ee.s,n=t.ee,i=0;i<e.length;i++)n.add(e[i].copy());t.ee=n}else t.ee=this.ee;return t.aq=this.aq,t.Ip.assign(this.Ip),t.tk=this.tk,t.ym=this.ym,t.zm=this.zm,t.fg=this.fg.J(),t.gg=this.gg.J(),t.Sk=this.Sk,t.Rk=this.Rk,t.Uf=this.Uf,t},Ze.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},Ze.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==Ze.o)return this;var t=this.figures;t.freeze();for(var e=(t=t.s).length,n=0;n<e;n++)t[n].freeze();return this},Ze.prototype.ka=function(){if(Object.isFrozen(this)&&x("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==Ze.o)return this;var t=this.figures;t.ka();for(var e=(t=t.s).length,n=0;n<e;n++)t[n].ka();return this},Ze.prototype.Xa=function(t){if(!(t instanceof Ze))return!1;if(this.type!==t.type)return this.type===Ze.j&&t.type===Ze.o?We(this,t):t.type===Ze.j&&this.type===Ze.o&&We(t,this);if(this.type===Ze.o){var e=this.figures.s;t=t.figures.s;var n=e.length;if(n!==t.length)return!1;for(var i=0;i<n;i++)if(!e[i].Xa(t[i]))return!1;return!0}return _e.B(this.startX,t.startX)&&_e.B(this.startY,t.startY)&&_e.B(this.endX,t.endX)&&_e.B(this.endY,t.endY)},Ze.ia=function(t){return t.toString()},Ze.prototype.qb=function(t){t.classType===Ze&&(this.type=t)},Ze.prototype.toString=function(t){switch(void 0===t&&(t=-1),this.type){case Ze.j:return 0>t?"M"+this.startX.toString()+" "+this.startY.toString()+"L"+this.endX.toString()+" "+this.endY.toString():"M"+this.startX.toFixed(t)+" "+this.startY.toFixed(t)+"L"+this.endX.toFixed(t)+" "+this.endY.toFixed(t);case Ze.u:var e=new Bt(this.startX,this.startY,0,0);return e.Kv(this.endX,this.endY,0,0),0>t?"M"+e.x.toString()+" "+e.y.toString()+"H"+e.right.toString()+"V"+e.bottom.toString()+"H"+e.left.toString()+"z":"M"+e.x.toFixed(t)+" "+e.y.toFixed(t)+"H"+e.right.toFixed(t)+"V"+e.bottom.toFixed(t)+"H"+e.left.toFixed(t)+"z";case Ze.F:if((e=new Bt(this.startX,this.startY,0,0)).Kv(this.endX,this.endY,0,0),0>t)return"M"+(t=e.left.toString()+" "+(e.y+e.height/2).toString())+"A"+(e.width/2).toString()+" "+(e.height/2).toString()+" 0 0 1 "+e.right.toString()+" "+(e.y+e.height/2).toString()+"A"+(e.width/2).toString()+" "+(e.height/2).toString()+" 0 0 1 "+t;var n=e.left.toFixed(t)+" "+(e.y+e.height/2).toFixed(t);return"M"+n+"A"+(e.width/2).toFixed(t)+" "+(e.height/2).toFixed(t)+" 0 0 1 "+e.right.toFixed(t)+" "+(e.y+e.height/2).toFixed(t)+"A"+(e.width/2).toFixed(t)+" "+(e.height/2).toFixed(t)+" 0 0 1 "+n;case Ze.o:e="";for(var i=(n=this.figures.s).length,r=0;r<i;r++){var o=n[r];0<r&&(e+=" x "),o.isFilled&&(e+="F "),e+=o.toString(t)}return e;default:return this.type.toString()}},Ze.nb=function(t){for(var e=(t=t.split(/[Xx]/)).length,n="",i=0;i<e;i++){var r=t[i];n=null!==r.match(/[Ff]/)?0===i?n+r:n+"X"+(" "===r[0]?"":" ")+r:n+(0===i?"":"X ")+"F"+(" "===r[0]?"":" ")+r}return n},Ze.parse=function(t,e){function n(){return g>=b-1||null!==u[g+1].match(x)}function i(){return g++,u[g]}function r(t){var e=parseFloat(i()),n=parseFloat(i());m===m.toLowerCase()&&(e=w.x+e,n=w.y+n),t.h(e,n)}function o(){return r(w),w}function a(){return r(y),y}function s(){var t=v.toLowerCase();return"c"!==t&&"s"!==t&&"q"!==t&&"t"!==t?w:new pt(2*w.x-y.x,2*w.y-y.y)}void 0===e&&(e=!1);var l=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm,u=(t=(t=(t=(t=(t=(t=(t=(t=t.replace(/,/gm," ")).replace(l,"$1 $2")).replace(l,"$1 $2")).replace(/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([^s])/gm,"$1 $2")).replace(/([^s])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm,"$1 $2")).replace(/([0-9])([+\-])/gm,"$1 $2")).replace(/[\s\r\t\n]+/gm," ")).replace(/^\s+|\s+$/g,"")).split(" ");for(t=0;t<u.length;t++){var c=u[t];if(null!==c.match(/(\.[0-9]*)(\.)/gm)){l=T();for(var h="",d=!1,f=0;f<c.length;f++){var p=c[f];"."!==p||d?"."===p?(l.push(h),h="."):h+=p:(d=!0,h+=p)}for(l.push(h),u.splice(t,1),c=0;c<l.length;c++)u.splice(t+c,0,l[c]);t+=l.length-1,N(l)}}var g=-1,m="",v="";l=new pt(0,0);var y=new pt(0,0),w=new pt(0,0),b=u.length;t=yc(null),d=h=c=!1,f=!0,p=null;for(var x=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(g>=b-1);)if(v=m,""!==(m=i()))switch(m.toUpperCase()){case"X":f=!0,h=c=!1;break;case"M":for(p=o(),null===t.mc||!0===f?(fc(t,p.x,p.y,c,!h,d),f=!1):t.moveTo(p.x,p.y),l.assign(w);!n();)p=o(),t.lineTo(p.x,p.y);break;case"L":for(;!n();)p=o(),t.lineTo(p.x,p.y);break;case"H":for(;!n();)w=new pt((m===m.toLowerCase()?w.x:0)+parseFloat(i()),w.y),t.lineTo(w.x,w.y);break;case"V":for(;!n();)w=new pt(w.x,(m===m.toLowerCase()?w.y:0)+parseFloat(i())),t.lineTo(w.x,w.y);break;case"C":for(;!n();){r(p=new pt);var S=a(),P=o();gc(t,p.x,p.y,S.x,S.y,P.x,P.y)}break;case"S":for(;!n();)p=s(),S=a(),P=o(),gc(t,p.x,p.y,S.x,S.y,P.x,P.y);break;case"Q":for(;!n();)p=a(),S=o(),mc(t,p.x,p.y,S.x,S.y);break;case"T":for(;!n();)y=p=s(),S=o(),mc(t,p.x,p.y,S.x,S.y);break;case"B":for(;!n();){p=parseFloat(i()),S=parseFloat(i()),P=parseFloat(i());var k=parseFloat(i()),C=parseFloat(i()),A=C,M=!1;n()||(A=parseFloat(i()),n()||(M=0!==parseFloat(i()))),m===m.toLowerCase()&&(P+=w.x,k+=w.y),t.arcTo(p,S,P,k,C,A,M)}break;case"A":for(;!n();)p=Math.abs(parseFloat(i())),S=Math.abs(parseFloat(i())),P=parseFloat(i()),C=k=!1,M=A=0,1===(A=i()).length?(k=!!parseFloat(A),C=!!parseFloat(i()),A=parseFloat(i())):2===A.length?(k=!!parseFloat(A[0]),C=!!parseFloat(A[1]),A=parseFloat(i())):(k=!!parseFloat(A[0]),C=!!parseFloat(A[1]),A=parseFloat(A.slice(2))),M=parseFloat(i()),m===m.toLowerCase()&&(A=w.x+A,M=w.y+M),w.h(A,M),vc(t,p,S,P,k,C,A,M);break;case"Z":pc(t),w.assign(l);break;case"F":for(p="",S=1;u[g+S];)if("0"===u[g+S])d=!0,S++;else if(null!==u[g+S].match(/[Uu]/))S++;else{if(null!==u[g+S].match(x)){p=u[g+S];break}S++}p.match(/[Mm]/)?c=!0:0<t.mc.segments.length&&(t.mc.isFilled=!0);break;case"U":for(p="",S=1;u[g+S];)if(null!==u[g+S].match(/[Ff]/))S++;else{if(null!==u[g+S].match(x)){p=u[g+S];break}S++}p.match(/[Mm]/)?h=!0:t.mc.isShadowed=!1}if(l=t.os,wc=t,e)for(e=l.figures.iterator;e.next();)e.value.isFilled=!0;return l},Ze.Ha=function(t,e){for(var n=t.length,i=pt.alloc(),r=0;r<n;r++){var o=t[r];i.x=o[0],i.y=o[1],e.Ga(i),o[0]=i.x,o[1]=i.y,i.x=o[2],i.y=o[3],e.Ga(i),o[2]=i.x,o[3]=i.y,i.x=o[4],i.y=o[5],e.Ga(i),o[4]=i.x,o[5]=i.y,i.x=o[6],i.y=o[7],e.Ga(i),o[6]=i.x,o[7]=i.y}pt.free(i)},Ze.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===Ze.o){if(this.aq!==this.figures.Ja)return!0;for(var t=this.figures.s,e=t.length,n=0;n<e;n++)if(t[n].Zu())return!0}return!1},Ze.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===Ze.o){this.aq=this.figures.Ja;for(var t=this.figures.s,e=t.length,n=0;n<e;n++){var i=t[n];i._isInvalidBounds=!1;var r=i.segments;i.sr=r.Ja,r=(i=r.s).length;for(var o=0;o<r;o++){var a=i[o];a._isInvalidBounds=!1,a.ae=null}}}(t=this.Ip).ka(),isNaN(this.Sk)||isNaN(this.Rk)?t.h(0,0,0,0):t.h(0,0,this.Sk,this.Rk),Ve(this,t,!1),Ht(t,0,0,0,0),t.freeze()},Ze.prototype.ix=function(){var t=new Bt;return Ve(this,t,!0),t},Ze.prototype.normalize=function(){this._isFrozen&&S(this);var t=this.ix();return this.offset(-t.x,-t.y),new pt(-t.x,-t.y)},Ze.prototype.offset=function(t,e){return this._isFrozen&&S(this),this.transform(1,0,0,1,t,e),this},Ze.prototype.scale=function(t,e){return this._isFrozen&&S(this),this.transform(t,0,0,e,0,0),this},Ze.prototype.rotate=function(t,e,n){this._isFrozen&&S(this),void 0===e&&(e=0),void 0===n&&(n=0);var i=Ue.alloc();return i.reset(),i.rotate(t,e,n),this.transform(i.m11,i.m12,i.m21,i.m22,i.dx,i.dy),Ue.free(i),this},(e=Ze.prototype).transform=function(t,e,n,i,r,o){switch(this.type){case Ze.j:case Ze.u:case Ze.F:var a=this.od,s=this.pd;this.od=a*t+s*n+r,this.pd=a*e+s*i+o,a=this.Dc,s=this.Ec,this.Dc=a*t+s*n+r,this.Ec=a*e+s*i+o;break;case Ze.o:for(var l=this.figures.s,u=l.length,c=0;c<u;c++){var h=l[c];a=h.startX,s=h.startY,h.startX=a*t+s*n+r,h.startY=a*e+s*i+o;for(var d=(h=h.segments.s).length,f=0;f<d;f++){var p=h[f];switch(p.type){case rn:case nn:a=p.endX,s=p.endY,p.endX=a*t+s*n+r,p.endY=a*e+s*i+o;break;case on:a=p.point1X,s=p.point1Y,p.point1X=a*t+s*n+r,p.point1Y=a*e+s*i+o,a=p.point2X,s=p.point2Y,p.point2X=a*t+s*n+r,p.point2Y=a*e+s*i+o,a=p.endX,s=p.endY,p.endX=a*t+s*n+r,p.endY=a*e+s*i+o;break;case an:a=p.point1X,s=p.point1Y,p.point1X=a*t+s*n+r,p.point1Y=a*e+s*i+o,a=p.endX,s=p.endY,p.endX=a*t+s*n+r,p.endY=a*e+s*i+o;break;case sn:a=p.centerX,s=p.centerY,p.centerX=a*t+s*n+r,p.centerY=a*e+s*i+o,0!==e&&(0>(a=180*Math.atan2(e,t)/Math.PI)&&(a+=360),p.startAngle+=a),0>t&&(p.startAngle=180-p.startAngle,p.sweepAngle=-p.sweepAngle),0>i&&(p.startAngle=-p.startAngle,p.sweepAngle=-p.sweepAngle),p.radiusX*=Math.sqrt(t*t+n*n),void 0!==p.radiusY&&(p.radiusY*=Math.sqrt(e*e+i*i));break;case ln:if(a=p.endX,s=p.endY,p.endX=a*t+s*n+r,p.endY=a*e+s*i+o,0===p.radiusX||0===p.radiusY)break;0!==e&&(0>(a=180*Math.atan2(e,t)/Math.PI)&&(a+=360),p.xAxisRotation+=a),0>t&&(p.xAxisRotation=180-p.xAxisRotation,p.isClockwiseArc=!p.isClockwiseArc),0>i&&(p.xAxisRotation=-p.xAxisRotation,p.isClockwiseArc=!p.isClockwiseArc),p.radiusX*=Math.sqrt(t*t+n*n),p.radiusY*=Math.sqrt(e*e+i*i);break;default:x("Unknown Segment type: "+p.type)}}}}return this._isInvalidBounds=!0,this},e.ca=function(t,e){void 0===e&&(e=0);var n=this.od,i=this.pd,r=this.Dc,o=this.Ec;switch(this.type){case Ze.j:return _e.Yb(n,i,r,o,e,t.x,t.y);case Ze.u:var a=Bt.allocAt(Math.min(n,r)-e,Math.min(i,o)-e,Math.abs(r-n)+2*e,Math.abs(o-i)+2*e);return t=a.ca(t),Bt.free(a),t;case Ze.F:a=Math.min(n,r)-e;var s=Math.min(i,o)-e;return n=(Math.abs(r-n)+2*e)/2,e=(Math.abs(o-i)+2*e)/2,0>=n||0>=e?!1:1>=(a=t.x-(a+n))*a/(n*n)+(s=t.y-(s+e))*s/(e*e);case Ze.o:return Ye(this,t,e,!0,!1);default:return!1}},e.Pu=function(t,e){if(0>t?t=0:1<t&&(t=1),void 0===e&&(e=new pt),this.type===Ze.j)return e.h(this.startX+t*(this.endX-this.startX),this.startY+t*(this.endY-this.startY)),e;for(var n=this.flattenedSegments,i=this.flattenedLengths,r=n.length,o=this.flattenedTotalLength*t,a=0,s=0;s<r;s++){var l=i[s],u=l.length;for(t=0;t<u;t++){var c=l[t];if(a+c>=o)return i=o-a,i=0===c?0:i/c,s=(n=n[s])[2*t],r=n[2*t+1],e.h(s+(n[2*t+2]-s)*i,r+(n[2*t+3]-r)*i),e;a+=c}}return e},e.wx=function(t){if(0>t?t=0:1<t&&(t=1),this.type===Ze.j)return 180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI;for(var e=this.flattenedSegments,n=this.flattenedLengths,i=e.length,r=this.flattenedTotalLength*t,o=0,a=0;a<i;a++){var s=n[a],l=s.length;for(t=0;t<l;t++){var u=s[t];if(o+u>=r)return e=(r=e[a])[2*t],n=r[2*t+1],i=r[2*t+2],t=r[2*t+3],1>Math.abs(i-e)&&1>Math.abs(t-n)?0:1>Math.abs(i-e)?0<=t-n?90:270:1>Math.abs(t-n)?0<=i-e?0:180:180*Math.atan2(t-n,i-e)/Math.PI;o+=u}}return NaN},e.Qu=function(t,e){if(0>t?t=0:1<t&&(t=1),void 0===e&&(e=[]),e.length=3,this.type===Ze.j)return e[0]=this.startX+t*(this.endX-this.startX),e[1]=this.startY+t*(this.endY-this.startY),e[2]=180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI,e;for(var n=this.flattenedSegments,i=this.flattenedLengths,r=n.length,o=this.flattenedTotalLength*t,a=0,s=0;s<r;s++){var l=i[s],u=l.length;for(t=0;t<u;t++){var c=l[t];if(a+c>=o)return i=o-a,i=0===c?0:i/c,n=(c=n[s])[2*t],s=c[2*t+1],r=c[2*t+2],t=c[2*t+3],e[0]=n+(r-n)*i,e[1]=s+(t-s)*i,e[2]=1>Math.abs(r-n)&&1>Math.abs(t-s)?0:1>Math.abs(r-n)?0<=t-s?90:270:1>Math.abs(t-s)?0<=r-n?0:180:180*Math.atan2(t-s,r-n)/Math.PI,e;a+=c}}return e},e.xx=function(t){if(this.type===Ze.j){var e=this.startX,n=this.startY,i=this.endX,r=this.endY;if(e!==i||n!==r){var o=t.x;if(t=t.y,e===i){if(n<r){var a=n;i=r}else a=r,i=n;return t<=a?a===n?0:1:t>=i?i===n?0:1:Math.abs(t-n)/(i-a)}if(n===r)return e<i?a=e:(a=i,i=e),o<=a?a===e?0:1:o>=i?i===e?0:1:Math.abs(o-e)/(i-a);a=(i-e)*(i-e)+(r-n)*(r-n);var s=pt.alloc();return _e.qh(e,n,i,r,o,t,s),t=s.x,o=s.y,pt.free(s),Math.sqrt(((t-e)*(t-e)+(o-n)*(o-n))/a)}}else{if(this.type!==Ze.u){e=this.flattenedSegments,n=this.flattenedLengths,o=this.flattenedTotalLength,i=pt.alloc(),r=1/0,s=a=0,v=e.length;for(var l=y=0,u=0;u<v;u++)for(var c=e[u],h=n[u],d=c.length,f=0;f<d;f+=2){var p=c[f],g=c[f+1];if(0!==f){_e.qh(y,l,p,g,t.x,t.y,i);var m=(i.x-t.x)*(i.x-t.x)+(i.y-t.y)*(i.y-t.y);m<r&&(r=m,a=s,a+=Math.sqrt((i.x-y)*(i.x-y)+(i.y-l)*(i.y-l))),s+=h[(f-2)/2]}y=p,l=g}return pt.free(i),0>(t=a/o)?0:1<t?1:t}a=this.startX,s=this.startY;var v=this.endX;if(r=this.endY,a!==v||s!==r){o=2*(e=v-a)+2*(n=r-s),i=t.x,t=t.y,i=Math.min(Math.max(i,a),v),t=Math.min(Math.max(t,s),r),a=Math.abs(i-a),v=Math.abs(i-v),s=Math.abs(t-s),r=Math.abs(t-r);var y=Math.min(a,v,s,r);if(y===s)return i/o;if(y===v)return(e+t)/o;if(y===r)return(2*e+n-i)/o;if(y===a)return(2*e+2*n-t)/o}}return 0},e.add=function(t){return this.ee.add(t),this},e.pm=function(t,e,n,i,r,o,a,s){return this._isFrozen&&S(this),this.fg=new De(t,e,r,o).freeze(),this.gg=new De(n,i,a,s).freeze(),this},d.Object.defineProperties(Ze.prototype,{_isFrozen:{get:function(){return 0!=(1&this.l)},set:function(t){this.l=t?1|this.l:-2&this.l}},_isInvalidBounds:{get:function(){return 0!=(2&this.l)},set:function(t){this.l=t?2|this.l:-3&this.l}},flattenedSegments:{get:function(){return Ke(this),this.tk}},flattenedLengths:{get:function(){return Ke(this),this.ym}},flattenedTotalLength:{get:function(){var t=this.zm;if(isNaN(t)){if(this.type===Ze.j){t=Math.abs(this.endX-this.startX);var e=Math.abs(this.endY-this.startY);t=Math.sqrt(t*t+e*e)}else if(this.type===Ze.u)t=2*Math.abs(this.endX-this.startX)+2*Math.abs(this.endY-this.startY);else for(var n=(e=this.flattenedLengths).length,i=t=0;i<n;i++)for(var r=e[i],o=r.length,a=0;a<o;a++)t+=r[a];this.zm=t}return t}},type:{get:function(){return this.na},set:function(t){this.na!==t&&(this._isFrozen&&S(this,t),this.na=t,t===Ze.o?this.ee=new K:(null===Ze.V&&(Ze.V=(new K).freeze()),this.ee=Ze.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(t){this.od!==t&&(this._isFrozen&&S(this,t),this.od=t,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(t){this.pd!==t&&(this._isFrozen&&S(this,t),this.pd=t,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(t){this.Dc!==t&&(this._isFrozen&&S(this,t),this.Dc=t,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(t){this.Ec!==t&&(this._isFrozen&&S(this,t),this.Ec=t,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(t){this.ee!==t&&(this._isFrozen&&S(this,t),this.ee=t,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(t){this._isFrozen&&S(this,t),this.fg=t.J()}},spot2:{get:function(){return this.gg},set:function(t){this._isFrozen&&S(this,t),this.gg=t.J()}},defaultStretch:{get:function(){return this.Uf},set:function(t){this._isFrozen&&S(this,t),this.Uf=t}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),Ze.prototype.setSpots=Ze.prototype.pm,Ze.prototype.add=Ze.prototype.add,Ze.prototype.getFractionForPoint=Ze.prototype.xx,Ze.prototype.getPointAndAngleAlongPath=Ze.prototype.Qu,Ze.prototype.getAngleAlongPath=Ze.prototype.wx,Ze.prototype.getPointAlongPath=Ze.prototype.Pu,Ze.prototype.containsPoint=Ze.prototype.ca,Ze.prototype.transform=Ze.prototype.transform,Ze.prototype.rotate=Ze.prototype.rotate,Ze.prototype.scale=Ze.prototype.scale,Ze.prototype.offset=Ze.prototype.offset,Ze.prototype.normalize=Ze.prototype.normalize,Ze.prototype.computeBoundsWithoutOrigin=Ze.prototype.ix,Ze.prototype.equalsApprox=Ze.prototype.Xa,Ze.className="Geometry",Ze.j=new G(Ze,"Line",0),Ze.u=new G(Ze,"Rectangle",1),Ze.F=new G(Ze,"Ellipse",2),Ze.o=new G(Ze,"Path",3),Ze.V=null,Ze.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",Ze.className="Geometry",Ze.stringify=Ze.ia,Ze.fillPath=Ze.nb,Ze.parse=Ze.parse,Ze.Line=Ze.j,Ze.Rectangle=Ze.u,Ze.Ellipse=Ze.F,Ze.Path=Ze.o,Je.prototype.copy=function(){var t=new Je;t.l=-2&this.l,t.od=this.od,t.pd=this.pd;for(var e=this.pl.s,n=e.length,i=t.pl,r=0;r<n;r++){var o=e[r].copy();i.add(o)}return t.sr=this.sr,t.fw=this.fw,t},(e=Je.prototype).Xa=function(t){if(!(t instanceof Je&&_e.B(this.startX,t.startX)&&_e.B(this.startY,t.startY)))return!1;var e=this.segments.s;t=t.segments.s;var n=e.length;if(n!==t.length)return!1;for(var i=0;i<n;i++)if(!e[i].Xa(t[i]))return!1;return!0},e.toString=function(t){void 0===t&&(t=-1);for(var e=0>t?"M"+this.startX.toString()+" "+this.startY.toString():"M"+this.startX.toFixed(t)+" "+this.startY.toFixed(t),n=this.segments.s,i=n.length,r=0;r<i;r++)e+=" "+n[r].toString(t);return e},e.freeze=function(){this._isFrozen=!0;var t=this.segments;t.freeze();var e=t.s;t=t.length;for(var n=0;n<t;n++)e[n].freeze();return this},e.ka=function(){this._isFrozen=!1;var t=this.segments;t.ka();for(var e=(t=t.s).length,n=0;n<e;n++)t[n].ka();return this},e.Zu=function(){if(this._isInvalidBounds)return!0;var t=this.segments;if(this.sr!==t.Ja)return!0;for(var e=(t=t.s).length,n=0;n<e;n++)if(t[n]._isInvalidBounds)return!0;return!1},e.add=function(t){return this.pl.add(t),this},e.ca=function(t,e,n){for(var i=this.startX,r=this.startY,o=i,a=r,s=this.segments.s,l=s.length,u=0;u<l;u++){var c=s[u];switch(c.type){case nn:o=c.endX,a=c.endY,i=c.endX,r=c.endY;break;case rn:if(_e.Yb(i,r,c.endX,c.endY,n,t,e))return!0;i=c.endX,r=c.endY;break;case on:if(_e.cs(i,r,c.point1X,c.point1Y,c.point2X,c.point2Y,c.endX,c.endY,.5,t,e,n))return!0;i=c.endX,r=c.endY;break;case an:if(_e.jv(i,r,c.point1X,c.point1Y,c.endX,c.endY,.5,t,e,n))return!0;i=c.endX,r=c.endY;break;case sn:case ln:var h=c.type===sn?tn(c,this):en(c,this,i,r),d=h.length,f=c.type===sn?c.centerX:c.endX,p=c.type===sn?c.centerY:c.endY;if(0===d){if(_e.Yb(i,r,f,p,n,t,e))return!0;i=f,r=p;break}for(f=null,p=0;p<d;p++)if(f=h[p],0===p&&_e.Yb(i,r,f[0],f[1],n,t,e)||_e.cs(f[0],f[1],f[2],f[3],f[4],f[5],f[6],f[7],.5,t,e,n))return!0;null!==f&&(i=f[6],r=f[7]);break;default:x("Unknown Segment type: "+c.type)}if(c.isClosed&&(i!==o||r!==a)&&_e.Yb(i,r,o,a,n,t,e))return!0}return!1},d.Object.defineProperties(Je.prototype,{_isFrozen:{get:function(){return 0!=(1&this.l)},set:function(t){this.l=t?1|this.l:-2&this.l}},_isInvalidBounds:{get:function(){return 0!=(2&this.l)},set:function(t){this.l=t?2|this.l:-3&this.l}},isFilled:{get:function(){return 0!=(4&this.l)},set:function(t){this._isFrozen&&S(this,t),this.l=t?4|this.l:-5&this.l}},isShadowed:{get:function(){return 0!=(8&this.l)},set:function(t){this._isFrozen&&S(this,t),this.l=t?8|this.l:-9&this.l}},isEvenOdd:{get:function(){return 0!=(16&this.l)},set:function(t){this._isFrozen&&S(this,t),this.l=t?16|this.l:-17&this.l}},startX:{get:function(){return this.od},set:function(t){this._isFrozen&&S(this,t),this.od=t,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(t){this._isFrozen&&S(this,t),this.pd=t,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(t){this._isFrozen&&S(this,t),this.pl=t,this._isInvalidBounds=!0}}}),Je.prototype.add=Je.prototype.add,Je.prototype.equalsApprox=Je.prototype.Xa,Je.className="PathFigure",$e.prototype.copy=function(){var t=new $e;return t.na=this.na,t.l=-2&this.l,t.Dc=this.Dc,t.Ec=this.Ec,t.Ne=this.Ne,t.Vh=this.Vh,t.Wh=this.Wh,t.Pg=this.Pg,t},(e=$e.prototype).Xa=function(t){if(!(t instanceof $e)||this.type!==t.type||this.isClosed!==t.isClosed)return!1;switch(this.type){case nn:case rn:return _e.B(this.endX,t.endX)&&_e.B(this.endY,t.endY);case on:return _e.B(this.endX,t.endX)&&_e.B(this.endY,t.endY)&&_e.B(this.point1X,t.point1X)&&_e.B(this.point1Y,t.point1Y)&&_e.B(this.point2X,t.point2X)&&_e.B(this.point2Y,t.point2Y);case an:return _e.B(this.endX,t.endX)&&_e.B(this.endY,t.endY)&&_e.B(this.point1X,t.point1X)&&_e.B(this.point1Y,t.point1Y);case sn:return _e.B(this.startAngle,t.startAngle)&&_e.B(this.sweepAngle,t.sweepAngle)&&_e.B(this.centerX,t.centerX)&&_e.B(this.centerY,t.centerY)&&_e.B(this.radiusX,t.radiusX)&&_e.B(this.radiusY,t.radiusY);case ln:return this.isClockwiseArc===t.isClockwiseArc&&this.isLargeArc===t.isLargeArc&&_e.B(this.xAxisRotation,t.xAxisRotation)&&_e.B(this.endX,t.endX)&&_e.B(this.endY,t.endY)&&_e.B(this.radiusX,t.radiusX)&&_e.B(this.radiusY,t.radiusY);default:return!1}},e.qb=function(t){t.classType===$e&&(this.type=t)},e.toString=function(t){switch(void 0===t&&(t=-1),this.type){case nn:t=0>t?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(t)+" "+this.endY.toFixed(t);break;case rn:t=0>t?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(t)+" "+this.endY.toFixed(t);break;case on:t=0>t?"C"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.point2X.toString()+" "+this.point2Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"C"+this.point1X.toFixed(t)+" "+this.point1Y.toFixed(t)+" "+this.point2X.toFixed(t)+" "+this.point2Y.toFixed(t)+" "+this.endX.toFixed(t)+" "+this.endY.toFixed(t);break;case an:t=0>t?"Q"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"Q"+this.point1X.toFixed(t)+" "+this.point1Y.toFixed(t)+" "+this.endX.toFixed(t)+" "+this.endY.toFixed(t);break;case sn:t=0>t?"B"+this.startAngle.toString()+" "+this.sweepAngle.toString()+" "+this.centerX.toString()+" "+this.centerY.toString()+" "+this.radiusX.toString()+" "+this.radiusY.toString():"B"+this.startAngle.toFixed(t)+" "+this.sweepAngle.toFixed(t)+" "+this.centerX.toFixed(t)+" "+this.centerY.toFixed(t)+" "+this.radiusX.toFixed(t)+" "+this.radiusY.toFixed(t);break;case ln:t=0>t?"A"+this.radiusX.toString()+" "+this.radiusY.toString()+" "+this.xAxisRotation.toString()+" "+(this.isLargeArc?1:0)+" "+(this.isClockwiseArc?1:0)+" "+this.endX.toString()+" "+this.endY.toString():"A"+this.radiusX.toFixed(t)+" "+this.radiusY.toFixed(t)+" "+this.xAxisRotation.toFixed(t)+" "+(this.isLargeArc?1:0)+" "+(this.isClockwiseArc?1:0)+" "+this.endX.toFixed(t)+" "+this.endY.toFixed(t);break;default:t=this.type.toString()}return t+(this.isClosed?"z":"")},e.freeze=function(){return this._isFrozen=!0,this},e.ka=function(){return this._isFrozen=!1,this},e.close=function(){return this.isClosed=!0,this},d.Object.defineProperties($e.prototype,{_isFrozen:{get:function(){return 0!=(1&this.l)},set:function(t){this.l=t?1|this.l:-2&this.l}},_isInvalidBounds:{get:function(){return 0!=(2&this.l)},set:function(t){this.l=t?2|this.l:-3&this.l}},isClosed:{get:function(){return 0!=(8&this.l)},set:function(t){this.isClosed!==t&&(this.l=t?8|this.l:-9&this.l,this._isInvalidBounds=!0)}},type:{get:function(){return this.na},set:function(t){this._isFrozen&&S(this,t),this.na=t,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(t){this._isFrozen&&S(this,t),this.Dc=t,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(t){this._isFrozen&&S(this,t),this.Ec=t,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(t){this._isFrozen&&S(this,t),this.Ne=t,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(t){this._isFrozen&&S(this,t),this.Vh=t,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(t){this._isFrozen&&S(this,t),this.Wh=t,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(t){this._isFrozen&&S(this,t),this.Pg=t,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(t){this._isFrozen&&S(this,t),this.Ne=t,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(t){this._isFrozen&&S(this,t),this.Vh=t,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(t){0>t&&P(t,">= zero",$e,"radiusX"),this._isFrozen&&S(this,t),this.Wh=t,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(t){0>t&&P(t,">= zero",$e,"radiusY"),this._isFrozen&&S(this,t),this.Pg=t,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(t){this._isFrozen&&S(this,t),0>(t%=360)&&(t+=360),this.Dc=t,this._isInvalidBounds=!0}},sweepAngle:{get:function(){return this.Ec},set:function(t){this._isFrozen&&S(this,t),360<t&&(t=360),-360>t&&(t=-360),this.Ec=t,this._isInvalidBounds=!0}},isClockwiseArc:{get:function(){return 0!=(4&this.l)},set:function(t){this._isFrozen&&S(this,t),this.l=t?4|this.l:-5&this.l,this._isInvalidBounds=!0}},isLargeArc:{get:function(){return 0!=(16&this.l)},set:function(t){this._isFrozen&&S(this,t),this.l=t?16|this.l:-17&this.l,this._isInvalidBounds=!0}},xAxisRotation:{get:function(){return this.Ne},set:function(t){this._isFrozen&&S(this,t),0>(t%=360)&&(t+=360),this.Ne=t,this._isInvalidBounds=!0}}}),$e.prototype.equalsApprox=$e.prototype.Xa;var nn=new G($e,"Move",0),rn=new G($e,"Line",1),on=new G($e,"Bezier",2),an=new G($e,"QuadraticBezier",3),sn=new G($e,"Arc",4),ln=new G($e,"SvgArc",4);function un(){this.H=null,this.xu=new pt(0,0).freeze(),this.mt=new pt(0,0).freeze(),this.Bp=this.Rq=0,this.Cp=1,this.xq="",this.Wr=this.Tp=!1,this.Rp=this.Ep=0,this.xg=this.nq=this.tq=!1,this.Zp=null,this.Rr=0,this.xd=this.Nr=null}function cn(){this.H=null,this.xa="",this.ar=this.Lr=null}function hn(){this.Fm=fn,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}$e.className="PathSegment",$e.Move=nn,$e.Line=rn,$e.Bezier=on,$e.QuadraticBezier=an,$e.Arc=sn,$e.SvgArc=ln,un.prototype.copy=function(){var t=new un;return this.clone(t)},un.prototype.clone=function(t){return t.H=this.H,t.xu.assign(this.viewPoint),t.mt.assign(this.documentPoint),t.Rq=this.Rq,t.Bp=this.Bp,t.Cp=this.Cp,t.xq=this.xq,t.Tp=this.Tp,t.Wr=this.Wr,t.Ep=this.Ep,t.Rp=this.Rp,t.tq=this.tq,t.nq=this.nq,t.xg=this.xg,t.Zp=this.Zp,t.Rr=this.Rr,t.Nr=this.Nr,t.xd=this.xd,t},un.prototype.toString=function(){var t="^";return 0!==this.modifiers&&(t+="M:"+this.modifiers),0!==this.button&&(t+="B:"+this.button),""!==this.key&&(t+="K:"+this.key),0!==this.clickCount&&(t+="C:"+this.clickCount),0!==this.delta&&(t+="D:"+this.delta),this.handled&&(t+="h"),this.bubbles&&(t+="b"),null!==this.documentPoint&&(t+="@"+this.documentPoint.toString()),t},un.prototype.So=function(t,e){var n=this.diagram;return null===n||qr(n,t,e),e},un.prototype.Bz=function(t,e){var n=this.diagram;return null===n||(qr(n,t,e),e.assign(n.Ps(e))),e},d.Object.defineProperties(un.prototype,{diagram:{get:function(){return this.H},set:function(t){this.H=t}},viewPoint:{get:function(){return this.xu},set:function(t){this.xu.assign(t)}},documentPoint:{get:function(){return this.mt},set:function(t){this.mt.assign(t)}},modifiers:{get:function(){return this.Rq},set:function(t){this.Rq=t}},button:{get:function(){return this.Bp},set:function(t){if(this.Bp=t,null===this.event)switch(t){case 0:this.buttons=1;break;case 1:this.buttons=4;break;case 2:this.buttons=2}}},buttons:{get:function(){return this.Cp},set:function(t){this.Cp=t}},key:{get:function(){return this.xq},set:function(t){this.xq=t}},down:{get:function(){return this.Tp},set:function(t){this.Tp=t}},up:{get:function(){return this.Wr},set:function(t){this.Wr=t}},clickCount:{get:function(){return this.Ep},set:function(t){this.Ep=t}},delta:{get:function(){return this.Rp},set:function(t){this.Rp=t}},isMultiTouch:{get:function(){return this.tq},set:function(t){this.tq=t}},handled:{get:function(){return this.nq},set:function(t){this.nq=t}},bubbles:{get:function(){return this.xg},set:function(t){this.xg=t}},event:{get:function(){return this.Zp},set:function(t){this.Zp=t}},isTouchEvent:{get:function(){var t=this.event;return null!==t&&("touch"===t.pointerType||"pen"===t.pointerType)}},timestamp:{get:function(){return this.Rr},set:function(t){this.Rr=t}},targetDiagram:{get:function(){return this.Nr},set:function(t){this.Nr=t}},targetObject:{get:function(){return this.xd},set:function(t){this.xd=t}},control:{get:function(){return 0!=(1&this.modifiers)},set:function(t){this.modifiers=t?1|this.modifiers:-2&this.modifiers}},shift:{get:function(){return 0!=(4&this.modifiers)},set:function(t){this.modifiers=t?4|this.modifiers:-5&this.modifiers}},alt:{get:function(){return 0!=(2&this.modifiers)},set:function(t){this.modifiers=t?2|this.modifiers:-3&this.modifiers}},meta:{get:function(){return 0!=(8&this.modifiers)},set:function(t){this.modifiers=t?8|this.modifiers:-9&this.modifiers}},left:{get:function(){var t=this.event;return null===t||"mousedown"!==t.type&&"mouseup"!==t.type&&"pointerdown"!==t.type&&"pointerup"!==t.type?0!=(1&this.buttons):0===this.button},set:function(t){this.buttons=t?1|this.buttons:-2&this.buttons}},right:{get:function(){var t=this.event;return null===t||"mousedown"!==t.type&&"mouseup"!==t.type&&"pointerdown"!==t.type&&"pointerup"!==t.type?0!=(2&this.buttons):2===this.button},set:function(t){this.buttons=t?2|this.buttons:-3&this.buttons}},middle:{get:function(){var t=this.event;return null===t||"mousedown"!==t.type&&"mouseup"!==t.type&&"pointerdown"!==t.type&&"pointerup"!==t.type?0!=(4&this.buttons):1===this.button},set:function(t){this.buttons=t?4|this.buttons:-5&this.buttons}}}),un.prototype.getMultiTouchDocumentPoint=un.prototype.Bz,un.prototype.getMultiTouchViewPoint=un.prototype.So,un.className="InputEvent",cn.prototype.copy=function(){var t=new cn;return t.H=this.H,t.xa=this.xa,t.Lr=this.Lr,t.ar=this.ar,t},cn.prototype.toString=function(){var t="*"+this.name;return null!==this.subject&&(t+=":"+this.subject.toString()),null!==this.parameter&&(t+="("+this.parameter.toString()+")"),t},d.Object.defineProperties(cn.prototype,{diagram:{get:function(){return this.H},set:function(t){this.H=t}},name:{get:function(){return this.xa},set:function(t){this.xa=t}},subject:{get:function(){return this.Lr},set:function(t){this.Lr=t}},parameter:{get:function(){return this.ar},set:function(t){this.ar=t}}}),cn.className="DiagramEvent",hn.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},hn.prototype.copy=function(){var t=new hn;t.Fm=this.Fm,t.Qq=this.Qq,t.rf=this.rf,t.cc=this.cc,t.H=this.H,t.Qn=this.Qn;var e=this.Sn;return t.Sn=C(e)&&"function"==typeof e.J?e.J():e,e=this.Rn,t.Rn=C(e)&&"function"==typeof e.J?e.J():e,e=this.Mn,t.Mn=C(e)&&"function"==typeof e.J?e.J():e,e=this.Ln,t.Ln=C(e)&&"function"==typeof e.J?e.J():e,t},hn.prototype.qb=function(t){t.classType===hn&&(this.change=t)},hn.prototype.toString=function(){var t="";return t=this.change===dn?t+"* ":this.change===fn?t+(null!==this.model?"!m":"!d"):t+(null!==this.model?"!m":"!d")+this.change,this.propertyName&&"string"==typeof this.propertyName&&(t+=" "+this.propertyName),this.modelChange&&this.modelChange!==this.propertyName&&(t+=" "+this.modelChange),t+=": ",this.change===dn?null!==this.oldValue&&(t+=" "+this.oldValue):(null!==this.object&&(t+=I(this.object)),null!==this.oldValue&&(t+=" old: "+I(this.oldValue)),null!==this.oldParam&&(t+=" "+this.oldParam),null!==this.newValue&&(t+=" new: "+I(this.newValue)),null!==this.newParam&&(t+=" "+this.newParam)),t},hn.prototype.I=function(t){return t?this.oldValue:this.newValue},hn.prototype.Dz=function(t){return t?this.oldParam:this.newParam},hn.prototype.canUndo=function(){return null!==this.model||null!==this.diagram},hn.prototype.undo=function(){this.canUndo()&&(null!==this.model?this.model.changeState(this,!0):null!==this.diagram&&this.diagram.changeState(this,!0))},hn.prototype.canRedo=function(){return null!==this.model||null!==this.diagram},hn.prototype.redo=function(){this.canRedo()&&(null!==this.model?this.model.changeState(this,!1):null!==this.diagram&&this.diagram.changeState(this,!1))},d.Object.defineProperties(hn.prototype,{model:{get:function(){return this.cc},set:function(t){this.cc=t}},diagram:{get:function(){return this.H},set:function(t){this.H=t}},change:{get:function(){return this.Fm},set:function(t){this.Fm=t}},modelChange:{get:function(){return this.Qq},set:function(t){this.Qq=t}},propertyName:{get:function(){return this.rf},set:function(t){this.rf=t}},isTransactionFinished:{get:function(){return this.Fm===dn&&("CommittedTransaction"===this.rf||"FinishedUndo"===this.rf||"FinishedRedo"===this.rf)}},object:{get:function(){return this.Qn},set:function(t){this.Qn=t}},oldValue:{get:function(){return this.Sn},set:function(t){this.Sn=t}},oldParam:{get:function(){return this.Rn},set:function(t){this.Rn=t}},newValue:{get:function(){return this.Mn},set:function(t){this.Mn=t}},newParam:{get:function(){return this.Ln},set:function(t){this.Ln=t}}}),hn.prototype.redo=hn.prototype.redo,hn.prototype.canRedo=hn.prototype.canRedo,hn.prototype.undo=hn.prototype.undo,hn.prototype.canUndo=hn.prototype.canUndo,hn.prototype.getParam=hn.prototype.Dz,hn.prototype.getValue=hn.prototype.I,hn.prototype.clear=hn.prototype.clear;var dn=new G(hn,"Transaction",-1),fn=new G(hn,"Property",0),pn=new G(hn,"Insert",1),gn=new G(hn,"Remove",2);function mn(){this.o=(new K).freeze(),this.xa="",this.j=!1}function vn(){this.Pt=new J,this.Jd=!1,this.u=(new K).freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=(new K).freeze(),this.hl=new K,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}function yn(t,e,n){if(t.isUndoingRedoing)return!1;t.checksTransactionLevel&&1>t.transactionLevel&&k("Ending transaction without having started a transaction: "+n);var i=1===t.transactionLevel,r=t.currentTransaction;i&&e&&(t.isInternalTransaction||t.Ob("CommittingTransaction",n,r));var o=0;if(0<t.transactionLevel&&(t.bi--,t.isEnabled)){var a=t.Ie.count;0<a&&(""===n&&(n=t.Ie.M(0)),t.Ie.ka(),t.Ie.mb(a-1),t.Ie.freeze()),0<(a=t.hl.count)&&(o=t.hl.M(a-1),t.hl.mb(a-1))}if(i){if(e)t.rq=!1,null===r&&""!==n&&(r=t.currentTransaction),t.isEnabled&&null!==r&&(r.isComplete||(r.isComplete=!0,r.name=n),t.lx(),(e=t.history).ka(),0<=(i=t.maxHistoryLength)&&(0===i?e.clear():e.count>=i&&(null!==(o=e.M(0))&&o.clear(),e.mb(0),t.Ce--)),0===i||0!==e.count&&e.get(e.count-1)===r||(e.add(r),t.Ce++),e.freeze()),t.isInternalTransaction||t.Ob("CommittedTransaction",n,r);else{t.Fe=!0;try{t.isEnabled&&null!==r&&(r.isComplete=!0,r.undo())}finally{t.isInternalTransaction||t.Ob("RolledBackTransaction",n,r),t.Fe=!1}null!==r&&r.clear()}return t.Np=null,t.isPendingClear&&t.clear(),t.isPendingClear=!1,t.isPendingUnmodified=!1,!0}if(t.isEnabled&&!e&&null!==r){for(t=o,r=(n=r.changes).count-1;r>=t;r--)null!==(e=n.M(r))&&e.undo(),n.ka(),n.mb(r);n.freeze()}return!1}function wn(){$(this),this.H=wr,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new un,this.Zr=-1}function bn(){wn.call(this),this.name="ToolManager",this.hb=new K,this.ob=new K,this.Hb=new K,this.F=this.V=850,this.o=new Tt(2,2).ja(),this.Ha=5e3,this.ia=Pn,this.u=An,this.Mp=this.j=null,this.zj=-1}function xn(t,e){t.standardMouseOver(),t.isBeyondDragSize()&&t.standardWaitAfter(t.isActive?t.holdDelay:t.hoverDelay,e.lastInput)}hn.className="ChangedEvent",hn.Transaction=dn,hn.Property=fn,hn.Insert=pn,hn.Remove=gn,mn.prototype.toString=function(t){var e="Transaction: "+this.name+" "+this.changes.count.toString()+(this.isComplete?"":", incomplete");if(void 0!==t&&0<t){t=this.changes.count;for(var n=0;n<t;n++){var i=this.changes.M(n);null!==i&&(e+="\n "+i.toString())}}return e},mn.prototype.clear=function(){var t=this.changes;t.ka();for(var e=t.count-1;0<=e;e--){var n=t.M(e);null!==n&&n.clear()}t.clear(),t.freeze()},mn.prototype.canUndo=function(){return this.isComplete},mn.prototype.undo=function(){if(this.canUndo())for(var t=this.changes.count-1;0<=t;t--){var e=this.changes.M(t);null!==e&&e.undo()}},mn.prototype.canRedo=function(){return this.isComplete},mn.prototype.redo=function(){if(this.canRedo())for(var t=this.changes.count,e=0;e<t;e++){var n=this.changes.M(e);null!==n&&n.redo()}},mn.prototype.ak=function(){if(this.isComplete){var t=this.changes;t.ka();for(var e=new ft,n=0;n<t.count;n++){var i=t.M(n);if(null!==i&&i.change===fn&&i.object){var r=e.get(i.object);r||(r=new ft,e.set(i.object,r));var o=r.get(i.propertyName);null===o?r.set(i.propertyName,-1):(0<o&&t.cd(o,null),r.set(i.propertyName,n))}}for(n=e=0;n<t.count;n++)null!==(i=t.M(n))&&(n>e&&t.cd(e,i),e++);for(;t.length>e;)t.pop();t.freeze()}},d.Object.defineProperties(mn.prototype,{changes:{get:function(){return this.o}},name:{get:function(){return this.xa},set:function(t){this.xa=t}},isComplete:{get:function(){return this.j},set:function(t){this.j=t}}}),mn.prototype.optimize=mn.prototype.ak,mn.prototype.redo=mn.prototype.redo,mn.prototype.canRedo=mn.prototype.canRedo,mn.prototype.undo=mn.prototype.undo,mn.prototype.canUndo=mn.prototype.canUndo,mn.prototype.clear=mn.prototype.clear,mn.className="Transaction",vn.prototype.toString=function(t){var e="UndoManager "+this.historyIndex+"<"+this.history.count+"<="+this.maxHistoryLength;e+="[";for(var n=this.nestedTransactionNames.count,i=0;i<n;i++)0<i&&(e+=" "),e+=this.nestedTransactionNames.M(i);if(e+="]",void 0!==t&&0<t)for(n=this.history.count,i=0;i<n;i++)e+="\n "+this.history.M(i).toString(t-1);return e},vn.prototype.clear=function(){var t=this.history;t.ka();for(var e=t.count-1;0<=e;e--){var n=t.M(e);null!==n&&n.clear()}t.clear(),this.Ce=-1,t.freeze(),this.Fe=!1,this.Np=null,this.bi=0,this.Ie.ka(),this.Ie.clear(),this.Ie.freeze(),this.hl.clear(),this.Dt=this.rq=this.Gt=this.Ft=!1},vn.prototype.copyProperties=function(t){this.isEnabled=t.isEnabled,this.maxHistoryLength=t.maxHistoryLength,this.checksTransactionLevel=t.checksTransactionLevel},(e=vn.prototype).Xw=function(t){this.Pt.add(t)},e.Rx=function(t){this.Pt.remove(t)},e.Ea=function(t){if(void 0===t&&(t=""),null===t&&(t=""),this.isUndoingRedoing)return!1;!0===this.tt&&(this.tt=!1,this.bi++,this.isInternalTransaction||this.Ob("StartingFirstTransaction",t,this.currentTransaction),0<this.bi&&this.bi--),this.isEnabled&&(this.Ie.ka(),this.Ie.add(t),this.Ie.freeze(),null===this.currentTransaction?this.hl.add(0):this.hl.add(this.currentTransaction.changes.count)),this.bi++;var e=1===this.transactionLevel;return e&&(this.isInternalTransaction||this.Ob("StartedTransaction",t,this.currentTransaction)),e},e.eb=function(t){return void 0===t&&(t=""),yn(this,!0,t)},e.Kf=function(){return yn(this,!1,"")},e.lx=function(){if(!this.isUndoingRedoing&&this.canRedo()){var t=this.history;t.ka();for(var e=t.count-1;e>this.historyIndex;e--){var n=t.M(e);null!==n&&n.clear(),t.mb(e),this.rq=!0}t.freeze()}},vn.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var t=this.transactionToUndo;return!(null===t||!t.canUndo())},vn.prototype.undo=function(){if(this.canUndo()){var t=this.transactionToUndo;try{this.Fe=!0,this.Ob("StartingUndo","Undo",t),this.Ce--,t.undo()}catch(t){k("undo error: "+t.toString())}finally{this.Ob("FinishedUndo","Undo",t),this.Fe=!1}}},vn.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var t=this.transactionToRedo;return!(null===t||!t.canRedo())},vn.prototype.redo=function(){if(this.canRedo()){var t=this.transactionToRedo;try{this.Fe=!0,this.Ob("StartingRedo","Redo",t),this.Ce++,t.redo()}catch(t){k("redo error: "+t.toString())}finally{this.Ob("FinishedRedo","Redo",t),this.Fe=!1}}},vn.prototype.Ob=function(t,e,n){void 0===n&&(n=null);var i=new hn;for(i.change=dn,i.propertyName=t,i.object=n,i.oldValue=e,t=this.models;t.next();)e=t.value,i.model=e,e.ds(i)},vn.prototype.Tu=function(t){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(t)){var e=this.currentTransaction;null===e&&(this.Np=e=new mn);var n=t.copy();(e=e.changes).ka(),e.add(n),e.freeze(),this.checksTransactionLevel&&0>=this.transactionLevel&&!this.tt&&(null!==(t=t.diagram)&&!1===t.pi||k("Change not within a transaction: "+n.toString()))}},vn.prototype.skipsEvent=function(t){if(null===t||0>t.change.value)return!0;if(null===(t=t.object))return!1;if(void 0!==t.layer){if(null!==(t=t.layer)&&t.isTemporary)return!0}else if(t.isTemporary)return!0;return!1},d.Object.defineProperties(vn.prototype,{models:{get:function(){return this.Pt.iterator}},isEnabled:{get:function(){return this.Jd},set:function(t){this.Jd=t}},transactionToUndo:{get:function(){return 0<=this.historyIndex&&this.historyIndex<=this.history.count-1?this.history.M(this.historyIndex):null}},transactionToRedo:{get:function(){return this.historyIndex<this.history.count-1?this.history.M(this.historyIndex+1):null}},isUndoingRedoing:{get:function(){return this.Fe}},history:{get:function(){return this.u}},maxHistoryLength:{get:function(){return this.o},set:function(t){this.o=t}},historyIndex:{get:function(){return this.Ce}},currentTransaction:{get:function(){return this.Np}},transactionLevel:{get:function(){return this.bi}},isInTransaction:{get:function(){return 0<this.bi}},checksTransactionLevel:{get:function(){return this.j},set:function(t){this.j=t}},nestedTransactionNames:{get:function(){return this.Ie}},isPendingClear:{get:function(){return this.Ft},set:function(t){this.Ft=t}},isPendingUnmodified:{get:function(){return this.Gt},set:function(t){this.Gt=t}},isInternalTransaction:{get:function(){return this.Dt},set:function(t){this.Dt=t}},isJustDiscarded:{get:function(){return this.rq}}}),vn.prototype.handleChanged=vn.prototype.Tu,vn.prototype.redo=vn.prototype.redo,vn.prototype.undo=vn.prototype.undo,vn.prototype.canUndo=vn.prototype.canUndo,vn.prototype.discardHistoryAfterIndex=vn.prototype.lx,vn.prototype.rollbackTransaction=vn.prototype.Kf,vn.prototype.commitTransaction=vn.prototype.eb,vn.prototype.startTransaction=vn.prototype.Ea,vn.prototype.removeModel=vn.prototype.Rx,vn.prototype.addModel=vn.prototype.Xw,vn.prototype.clear=vn.prototype.clear,vn.className="UndoManager",wn.prototype.toString=function(){return""!==this.name?this.name+" Tool":j(this.constructor)},wn.prototype.updateAdornments=function(){},wn.prototype.canStart=function(){return this.isEnabled},wn.prototype.doStart=function(){},wn.prototype.doActivate=function(){this.isActive=!0},wn.prototype.doDeactivate=function(){this.isActive=!1},wn.prototype.doStop=function(){},wn.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},wn.prototype.stopTool=function(){var t=this.diagram;t.currentTool===this&&(t.currentTool=null,t.currentCursor="")},wn.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},wn.prototype.doMouseMove=function(){},wn.prototype.doMouseUp=function(){this.stopTool()},wn.prototype.doMouseWheel=function(){},wn.prototype.canStartMultiTouch=function(){return!0},wn.prototype.standardPinchZoomStart=function(){var t=this.diagram,e=t.lastInput,n=e.So(0,pt.allocAt(NaN,NaN)),i=e.So(1,pt.allocAt(NaN,NaN));if(n.w()&&i.w()&&(this.doCancel(),t.Ql("hasGestureZoom"))){t.Bw=t.scale;var r=i.x-n.x,o=i.y-n.y;t.Jw=Math.sqrt(r*r+o*o),e.bubbles=!1}pt.free(n),pt.free(i)},wn.prototype.standardPinchZoomMove=function(){var t=this.diagram,e=t.lastInput,n=e.So(0,pt.allocAt(NaN,NaN)),i=e.So(1,pt.allocAt(NaN,NaN));if(n.w()&&i.w()&&(this.doCancel(),t.Ql("hasGestureZoom"))){var r=i.x-n.x,o=i.y-n.y;o=Math.sqrt(r*r+o*o)/t.Jw,r=new pt((Math.min(i.x,n.x)+Math.max(i.x,n.x))/2,(Math.min(i.y,n.y)+Math.max(i.y,n.y))/2),o*=t.Bw;var a=t.commandHandler;if(o!==t.scale&&a.canResetZoom(o)){var s=t.zoomPoint;t.zoomPoint=r,a.resetZoom(o),t.zoomPoint=s}e.bubbles=!1}pt.free(n),pt.free(i)},wn.prototype.doKeyDown=function(){"Esc"===this.diagram.lastInput.key&&this.doCancel()},wn.prototype.doKeyUp=function(){},wn.prototype.Ea=function(t){return void 0===t&&(t=this.name),this.transactionResult=null,this.diagram.Ea(t)},wn.prototype.stopTransaction=function(){var t=this.diagram;return null===this.transactionResult?t.Kf():t.eb(this.transactionResult)},wn.prototype.standardMouseSelect=function(){var t=this.diagram;if(t.allowSelect){var e=t.lastInput,n=t.Ol(e.documentPoint,!1);if(null!==n){if(F?e.meta:e.control){for(t.R("ChangingSelection",t.selection),e=n;null!==e&&!e.canSelect();)e=e.containingGroup;null!==e&&(e.isSelected=!e.isSelected),t.R("ChangedSelection",t.selection)}else if(e.shift){if(!n.isSelected){for(t.R("ChangingSelection",t.selection),e=n;null!==e&&!e.canSelect();)e=e.containingGroup;null!==e&&(e.isSelected=!0),t.R("ChangedSelection",t.selection)}}else if(!n.isSelected){for(e=n;null!==e&&!e.canSelect();)e=e.containingGroup;null!==e&&t.select(e)}}else!e.left||(F?e.meta:e.control)||e.shift||t.clearSelection()}},wn.prototype.standardMouseClick=function(t,e){void 0===t&&(t=null),void 0===e&&(e=function(t){return!t.layer.isTemporary});var n=this.diagram,i=n.lastInput;return t=n.ic(i.documentPoint,t,e),i.targetObject=t,function(t,e,n){if(e.handled=!1,null===t||t.If()){var i=0;e.left?i=1===e.clickCount?1:2===e.clickCount?2:1:e.right&&1===e.clickCount&&(i=3);var r="ObjectSingleClicked";if(null!==t){switch(i){case 1:r="ObjectSingleClicked";break;case 2:r="ObjectDoubleClicked";break;case 3:r="ObjectContextClicked"}0!==i&&n.R(r,t)}else{switch(i){case 1:r="BackgroundSingleClicked";break;case 2:r="BackgroundDoubleClicked";break;case 3:r="BackgroundContextClicked"}0!==i&&n.R(r)}if(null!==t)for(;null!==t;){switch(n=null,i){case 1:n=t.click;break;case 2:n=t.doubleClick?t.doubleClick:t.click;break;case 3:n=t.contextClick}if(null!==n&&(n(e,t),e.handled))break;t=t.panel}else{switch(t=null,i){case 1:t=n.click;break;case 2:t=n.doubleClick?n.doubleClick:n.click;break;case 3:t=n.contextClick}null!==t&&t(e)}}}(t,i,n),i.handled},wn.prototype.standardMouseOver=function(){var t=this.diagram,e=t.lastInput;if(!0!==t.animationManager.zb){var n=t.skipsUndoManager;t.skipsUndoManager=!0;var i=t.viewportBounds.ca(e.documentPoint)?t.ic(e.documentPoint,null,null):null;!e.event||"pointercancel"!==e.event.type&&"pointerout"!==e.event.type||(i=null),e.targetObject=i;var r=!1;if(i!==t.Ck){var o=t.Ck,a=o;for(t.Ck=i,this.doCurrentObjectChanged(o,i),e.handled=!1;null!==o;){var s=o.mouseLeave;if(null!==s){if(i===o)break;if(null!==i&&i.rg(o))break;if(s(e,o,i),r=!0,e.handled)break}o=o.panel}for(o=a,e.handled=!1;null!==i;){if(null!==(a=i.mouseEnter)){if(o===i)break;if(null!==o&&o.rg(i))break;if(a(e,i,o),r=!0,e.handled)break}i=i.panel}i=t.Ck}if(null!==i){for(o=i,a="";null!==o&&""===(a=o.cursor);)o=o.panel;for(t.currentCursor=a,e.handled=!1,o=i;null!==o&&(null===(i=o.mouseOver)||(i(e,o),r=!0,!e.handled));)o=o.panel}else this.doUpdateCursor(null),null!==(i=t.mouseOver)&&(i(e),r=!0);r&&t.$b(),t.skipsUndoManager=n}},wn.prototype.doUpdateCursor=function(){var t=this.diagram;t&&(t.currentCursor="")},wn.prototype.doCurrentObjectChanged=function(){},wn.prototype.standardMouseWheel=function(){var t=this.diagram,e=t.lastInput,n=e.delta;if(0!==n&&t.documentBounds.w()){var i=t.commandHandler,r=t.toolManager.mouseWheelBehavior;if(null!==i&&(r===kn&&!e.shift||r===Pn&&e.control))(0<n?i.canIncreaseZoom():i.canDecreaseZoom())&&(r=t.zoomPoint,t.zoomPoint=e.viewPoint,0<n?i.increaseZoom():i.decreaseZoom(),t.zoomPoint=r),e.bubbles=!1;else if(r===kn&&e.shift||r===Pn&&!e.control){i=t.position.copy();var o=e.event;r=o.deltaMode;var a=o.deltaX;o=o.deltaY;var s="pixel";if(0===a&&0===o||e.shift)!e.shift&&t.allowVerticalScroll?(n=3*n*t.scrollVerticalLineChange,t.scroll(s,0<n?"up":"down",Math.abs(n))):e.shift&&t.allowHorizontalScroll&&(n=3*n*t.scrollHorizontalLineChange,t.scroll(s,0<n?"left":"right",Math.abs(n)));else{switch(r){case 0:s="pixel";break;case 1:s="line";break;case 2:s="page"}0!==a&&t.allowHorizontalScroll&&(a*=t.scrollHorizontalLineChange/16,t.scroll(s,0<a?"right":"left",Math.abs(a))),0!==o&&t.allowVerticalScroll&&(o*=t.scrollVerticalLineChange/16,t.scroll(s,0<o?"down":"up",Math.abs(o)))}this.doWheelChange(t,i,e)}}},wn.prototype.doWheelChange=function(t,e,n){t.position.D(e)&&0===n.event.wheelDeltaX||(n.bubbles=!1)},wn.prototype.standardWaitAfter=function(t,e){void 0===e&&(e=this.diagram.lastInput),this.cancelWaitAfter();var n=this,i=e.clone(this.yy);this.Zr=w((function(){n.doWaitAfter(i)}),t)},wn.prototype.cancelWaitAfter=function(){-1!==this.Zr&&m.clearTimeout(this.Zr),this.Zr=-1},wn.prototype.doWaitAfter=function(){},wn.prototype.findToolHandleAt=function(t,e){return null===(t=this.diagram.ic(t,(function(t){for(;null!==t&&!(t.panel instanceof Yc);)t=t.panel;return t})))?null:t.part.category===e?t:null},wn.prototype.isBeyondDragSize=function(t,e){var n=this.diagram;void 0===t&&(t=n.firstInput.viewPoint),void 0===e&&(e=n.lastInput.viewPoint);var i=n.toolManager.dragSize,r=i.width;return i=i.height,n.firstInput.isTouchEvent&&(r+=6,i+=6),Math.abs(e.x-t.x)>r||Math.abs(e.y-t.y)>i},d.Object.defineProperties(wn.prototype,{diagram:{get:function(){return this.H},set:function(t){t instanceof Mr&&(this.H=t)}},name:{get:function(){return this.xa},set:function(t){this.xa=t}},isEnabled:{get:function(){return this.Jd},set:function(t){this.Jd=t}},isActive:{get:function(){return this.nb},set:function(t){this.nb=t}},transactionResult:{get:function(){return this.wm},set:function(t){this.wm=t}}}),wn.prototype.startTransaction=wn.prototype.Ea,wn.className="Tool",h(bn,wn),bn.prototype.initializeStandardTools=function(){},bn.prototype.updateAdornments=function(t){var e=this.currentToolTip;if(e instanceof Yc&&this.Mp===t){var n=e.adornedObject;(null!==t?n.part===t:null===n)?this.showToolTip(e,n):this.hideToolTip()}},bn.prototype.doMouseDown=function(){var t=this.diagram,e=t.lastInput;if(e.isTouchEvent&&this.gestureBehavior===Mn&&(e.bubbles=!1),e.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===En)return void(e.bubbles=!0);if(this.gestureBehavior===Mn)return;if(t.currentTool.canStartMultiTouch())return void t.currentTool.standardPinchZoomStart()}for(var n=this.mouseDownTools.length,i=0;i<n;i++){var r=this.mouseDownTools.M(i);if(r.diagram=this.diagram,r.canStart())return t.doFocus(),t.currentTool=r,void(t.currentTool===r&&(r.isActive||r.doActivate(),r.doMouseDown()))}1===t.lastInput.button&&(this.mouseWheelBehavior===Pn?this.mouseWheelBehavior=kn:this.mouseWheelBehavior===kn&&(this.mouseWheelBehavior=Pn)),this.doActivate(),this.standardWaitAfter(this.holdDelay,e)},bn.prototype.doMouseMove=function(){var t=this.diagram,e=t.lastInput;if(e.isMultiTouch){if(this.gestureBehavior===En)return void(e.bubbles=!0);if(this.gestureBehavior===Mn)return;if(t.currentTool.canStartMultiTouch())return void t.currentTool.standardPinchZoomMove()}if(this.isActive)for(var n=this.mouseMoveTools.length,i=0;i<n;i++){var r=this.mouseMoveTools.M(i);if(r.diagram=this.diagram,r.canStart())return t.doFocus(),t.currentTool=r,void(t.currentTool===r&&(r.isActive||r.doActivate(),r.doMouseMove()))}xn(this,t),null===(t=e.event)||"pointermove"!==t.type&&t.cancelable||(e.bubbles=!0)},bn.prototype.doCurrentObjectChanged=function(t,e){null===(t=this.currentToolTip)||null!==e&&t instanceof Yc&&(e===t||e.rg(t))||this.hideToolTip()},bn.prototype.doWaitAfter=function(t){var e=this.diagram;null!==e.ta&&(this.doMouseHover(),this.isActive||this.doToolTip(),t.isTouchEvent&&!e.lastInput.handled&&((t=t.copy()).button=2,t.buttons=2,e.lastInput=t,e.qu=!0,e.doMouseUp()))},bn.prototype.doMouseHover=function(){var t=this.diagram,e=t.lastInput;null===e.targetObject&&(e.targetObject=t.ic(e.documentPoint,null,null));var n=e.targetObject;if(null!==n)for(e.handled=!1;null!==n&&(null===(t=this.isActive?n.mouseHold:n.mouseHover)||(t(e,n),!e.handled));)n=n.panel;else null!==(n=this.isActive?t.mouseHold:t.mouseHover)&&n(e)},bn.prototype.doToolTip=function(){var t=this.diagram,e=t.lastInput;if(null===e.targetObject&&(e.targetObject=t.ic(e.documentPoint,null,null)),null!==(e=e.targetObject)){if(!((t=this.currentToolTip)instanceof Yc)||e!==t&&!e.rg(t)){for(;null!==e;){if(null!==(t=e.toolTip))return void this.showToolTip(t,e);e=e.panel}this.hideToolTip()}}else null!==(e=t.toolTip)?this.showToolTip(e,null):this.hideToolTip()},bn.prototype.showToolTip=function(t,e){var n=this.diagram;if(t!==this.currentToolTip&&this.hideToolTip(),t instanceof Yc){t.layerName="Tool",t.selectable=!1,t.scale=1/n.scale,t.category="ToolTip",null!==t.placeholder&&(t.placeholder.scale=n.scale);var i=t.diagram;null!==i&&i!==n&&i.remove(t),n.add(t),null!==e?t.adornedObject=e:t.data=n.model,t.Va(),this.positionToolTip(t,e)}else t instanceof wi&&t!==this.currentToolTip&&t.show(e,n,this);if(this.currentToolTip=t,-1!==this.zj&&(m.clearTimeout(this.zj),this.zj=-1),0<(t=this.toolTipDuration)&&1/0!==t){var r=this;this.zj=w((function(){r.hideToolTip()}),t)}},bn.prototype.positionToolTip=function(t){if(null===t.placeholder){var e=this.diagram,n=e.lastInput.documentPoint.copy(),i=t.measuredBounds,r=e.viewportBounds;e.lastInput.isTouchEvent&&(n.x-=i.width),n.x+i.width>r.right&&(n.x-=i.width+5/e.scale),n.x<r.x&&(n.x=r.x),n.y=n.y+20/e.scale+i.height>r.bottom?n.y-(i.height+5/e.scale):n.y+20/e.scale,n.y<r.y&&(n.y=r.y),t.position=n}},bn.prototype.hideToolTip=function(){-1!==this.zj&&(m.clearTimeout(this.zj),this.zj=-1);var t=this.diagram,e=this.currentToolTip;null!==e&&(e instanceof Yc?(t.remove(e),null!==this.Mp&&this.Mp.Jf(e.category),e.data=null,e.adornedObject=null):e instanceof wi&&null!==e.hide&&e.hide(t,this),this.currentToolTip=null)},bn.prototype.doMouseUp=function(){this.cancelWaitAfter();var t=this.diagram;if(this.isActive)for(var e=this.mouseUpTools.length,n=0;n<e;n++){var i=this.mouseUpTools.M(n);if(i.diagram=this.diagram,i.canStart())return t.doFocus(),t.currentTool=i,void(t.currentTool===i&&(i.isActive||i.doActivate(),i.doMouseUp()))}t.doFocus(),this.doDeactivate()},bn.prototype.doMouseWheel=function(){this.standardMouseWheel()},bn.prototype.doKeyDown=function(){var t=this.diagram;null!==t.commandHandler&&t.commandHandler.doKeyDown()},bn.prototype.doKeyUp=function(){var t=this.diagram;null!==t.commandHandler&&t.commandHandler.doKeyUp()},bn.prototype.findTool=function(t){for(var e=this.mouseDownTools.length,n=0;n<e;n++){var i=this.mouseDownTools.M(n);if(i.name===t)return i}for(e=this.mouseMoveTools.length,n=0;n<e;n++)if((i=this.mouseMoveTools.M(n)).name===t)return i;for(e=this.mouseUpTools.length,n=0;n<e;n++)if((i=this.mouseUpTools.M(n)).name===t)return i;return null},bn.prototype.replaceTool=function(t,e){null!==e&&(e.diagram=this.diagram);for(var n=this.mouseDownTools.length,i=0;i<n;i++){var r=this.mouseDownTools.M(i);if(r.name===t)return null!==e?this.mouseDownTools.cd(i,e):this.mouseDownTools.mb(i),r}for(n=this.mouseMoveTools.length,i=0;i<n;i++)if((r=this.mouseMoveTools.M(i)).name===t)return null!==e?this.mouseMoveTools.cd(i,e):this.mouseMoveTools.mb(i),r;for(n=this.mouseUpTools.length,i=0;i<n;i++)if((r=this.mouseUpTools.M(i)).name===t)return null!==e?this.mouseUpTools.cd(i,e):this.mouseUpTools.mb(i),r;return null},bn.prototype.gb=function(t,e,n){null!==e&&(e.name=t,e.diagram=this.diagram),this.findTool(t)?this.replaceTool(t,e):null!==e&&n.add(e)},d.Object.defineProperties(bn.prototype,{mouseWheelBehavior:{get:function(){return this.ia},set:function(t){this.ia=t}},gestureBehavior:{get:function(){return this.u},set:function(t){this.u=t}},currentToolTip:{get:function(){return this.j},set:function(t){this.j=t,this.Mp=null!==t&&t instanceof Yc?t.adornedPart:null}},mouseDownTools:{get:function(){return this.hb}},mouseMoveTools:{get:function(){return this.ob}},mouseUpTools:{get:function(){return this.Hb}},hoverDelay:{get:function(){return this.V},set:function(t){this.V=t}},holdDelay:{get:function(){return this.F},set:function(t){this.F=t}},dragSize:{get:function(){return this.o},set:function(t){this.o=t.J()}},toolTipDuration:{get:function(){return this.Ha},set:function(t){this.Ha=t}}}),bn.prototype.replaceStandardTool=bn.prototype.gb;var Sn,Pn=new G(bn,"WheelScroll",0),kn=new G(bn,"WheelZoom",1),Cn=new G(bn,"WheelNone",2),An=new G(bn,"GestureZoom",3),Mn=new G(bn,"GestureCancel",4),En=new G(bn,"GestureNone",5);function Ln(){wn.call(this),this.name="Dragging",this.u=this.Sw=this.ob=!0,this.o=this.Ha=this.V=this.Oe=null,this.Ym=this.Hb=!1,this.tl=new pt(NaN,NaN),this.Fr=new pt,this.hb=!0,this.Ik=100,this.Cg=[],this.te=(new J).freeze(),this.ia=new Pa,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}function Tn(t,e){if(t.dragsLink){var n=t.diagram;n.allowRelink&&(n.model.Wj()&&1===e.count&&e.first()instanceof xh?(t.draggedLink=e.first(),t.draggedLink.canRelinkFrom()&&t.draggedLink.canRelinkTo()&&t.draggedLink.Ej(),t.Oe=n.toolManager.findTool("Relinking"),null===t.Oe&&(t.Oe=new ri,t.Oe.diagram=n),t.Oe.originalLink=t.draggedLink):(t.draggedLink=null,t.Oe=null))}}function Nn(t){var e=t.diagram,n=e.skipsUndoManager;e.skipsUndoManager=!0,zn(t,e.lastInput,null),e.skipsUndoManager=n,t.Cg.length=0}function jn(){var t=Yn;Bn(t),Rn(t);var e=t.diagram;t.tl.w()&&(e.position=t.tl),e.ug()}function In(t,e){if(null===t.copiedParts){var n=t.diagram;if((!e||!n.isReadOnly&&!n.isModelReadOnly)&&null!==t.draggedParts){var i=n.undoManager;for(i.isEnabled&&i.isInTransaction?null!==i.currentTransaction&&0<i.currentTransaction.changes.count&&(n.undoManager.Kf(),n.Ea("Drag")):Rn(t),n.skipsUndoManager=!e,n.partManager.addsToTemporaryLayer=!e,t.startPoint=n.firstInput.documentPoint,e=t.copiesEffectiveCollection?t.draggedParts.Lf():n.selection,e=n.Kj(e,n,!0),n=new ft,i=t.draggedParts.iterator;i.next();){var r=i.key;if(r.Zc()&&r.canCopy()){var o=e.I(r);null!==o&&(o.location=r.location,o.Va(),n.add(o,t.Pd(o.location)))}}for(e=e.iterator;e.next();)(i=e.value)instanceof xh&&i.canCopy()&&n.add(i,t.Pd());t.copiedParts=n,Tn(t,n.Lf()),null!==t.draggedLink&&(e=(n=t.draggedLink).routeBounds,kh(n,t.startPoint.x-(e.x+e.width/2),t.startPoint.y-(e.y+e.height/2))),t.doUpdateCursor(null)}}}function Bn(t){var e=t.diagram;if(null!==t.copiedParts){if(e.Is(t.copiedParts.Lf(),!1),t.copiedParts=null,null!==t.draggedParts)for(var n=t.draggedParts.iterator;n.next();)n.key instanceof xh&&(n.value.point=new pt(0,0));t.doUpdateCursor(null)}e.skipsUndoManager=!1,e.partManager.addsToTemporaryLayer=!1,t.startPoint=e.firstInput.documentPoint}function On(t){if(null!==t.draggedLink){if(t.dragsLink&&null!==t.Oe){var e=t.Oe;e.diagram.remove(e.temporaryFromNode),e.diagram.remove(e.temporaryToNode),t.Oe.originalLink=null}t.draggedLink=null,t.Oe=null}}function Dn(t,e,n){var i=t.diagram,r=t.startPoint,o=pt.alloc();o.assign(i.lastInput.documentPoint),t.moveParts(e,o.re(r),n),pt.free(o),!0===i.Gf("temporaryPixelRatio")&&null===i.Yh&&30<i.$w&&(jr(i),i.hk())}function Rn(t){if(null!==t.draggedParts){for(var e=t.diagram,n=t.draggedParts.iterator;n.next();){var i=n.key;i.Zc()&&(i.location=n.value.point)}for(n=t.draggedParts.iterator;n.next();)if((i=n.key)instanceof xh&&i.suspendsRouting){var r=n.value.point;t.draggedParts.add(i,t.Pd()),kh(i,-r.x,-r.y)}e.bd()}}function Fn(t,e){var n=t.diagram;t.dragsLink&&(null!==t.draggedLink&&(t.draggedLink.fromNode=null,t.draggedLink.toNode=null),Hn(t,!1));var i=t.findDragOverObject(e),r=n.lastInput;r.targetObject=i,t.doUpdateCursor(i);var o=n.skipsUndoManager,a=!1;try{if(n.skipsUndoManager=!0,a=zn(t,r,i),!t.isActive&&null===Yn)return;var s=null!==i?i.part:null;if(null===s||n.handlesDragDropForTopLevelParts&&s.isTopLevel&&!(s instanceof gh)){var l=n.mouseDragOver;null!==l&&(l(r),a=!0)}if(!t.isActive&&null===Yn)return;if(t.doDragOver(e,i),!t.isActive&&null===Yn)return}finally{n.skipsUndoManager=o,a&&n.bd()}t.Bn=i,n.isReadOnly||!n.allowMove&&!n.allowCopy||!n.allowHorizontalScroll&&!n.allowVerticalScroll||n.gs(r.viewPoint)}function zn(t,e,n){var i=!1,r=t.Cg.length,o=0<r?t.Cg[0]:null;if(n===o)return!1;e.handled=!1;for(var a=0;a<r;a++){var s=t.Cg[a],l=s.mouseDragLeave;if(null!==l&&(l(e,s,n),i=!0,e.handled))break}if(t.Cg.length=0,!t.isActive&&null===Yn||null===n)return i;for(e.handled=!1,r=n;null!==r;)t.Cg.push(r),r=Gn(r);for(r=t.Cg.length,n=0;n<r&&(null===(s=(a=t.Cg[n]).mouseDragEnter)||(s(e,a,o),i=!0,!e.handled));n++);return i}function Gn(t){var e=t.panel;return null!==e?e:t instanceof Sc&&!(t instanceof gh)&&(null!==(t=t.containingGroup)&&t.handlesDragDropForMembers)?t:null}function Un(t,e,n){var i=t.Oe;if(null===i)return null;var r=t.diagram.og(e,i.portGravity,(function(t){return i.findValidLinkablePort(t,n)}));t=pt.alloc();var o=1/0,a=null;for(r=r.iterator;r.next();){var s=r.value;if(null!==s.part){var l=s.ga(re,t);(l=e.Bf(l))<o&&(a=s,o=l)}}return pt.free(t),a}function Hn(t,e){var n=t.draggedLink;if(null!==n&&!(2>n.pointsCount)){var i=t.diagram;if(!i.isReadOnly){var r=t.Oe;if(null!==r){var o=null,a=null;null===n.fromNode&&(null!==(o=Un(t,n.i(0),!1))&&(a=o.part));var s=null,l=null;null===n.toNode&&(null!==(s=Un(t,n.i(n.pointsCount-1),!0))&&(l=s.part)),r.isValidLink(a,o,l,s)?e?(n.defaultFromPoint=n.i(0),n.defaultToPoint=n.i(n.pointsCount-1),n.suspendsRouting=!1,n.fromNode=a,null!==o&&(n.fromPortId=o.portId),n.toNode=l,null!==s&&(n.toPortId=s.portId),n.fromPort!==i.Mx&&i.R("LinkRelinked",n,i.Mx),n.toPort!==i.Nx&&i.R("LinkRelinked",n,i.Nx)):oi(r,a,o,l,s):oi(r,null,null,null,null)}}}}function _n(t,e){var n=t.diagram;t.dragsLink&&Hn(t,!0),Nn(t);var i=t.findDragOverObject(e),r=n.lastInput;if(r.targetObject=i,null!==i){r.handled=!1;for(var o=i;null!==o;){var a=o.mouseDrop;if(null!==a&&(a(r,o),r.handled))break;Zn(t,r,o),o=Gn(o)}}else null!==(o=n.mouseDrop)&&o(r);if(t.isActive||null!==Yn){for(r=(t.copiedParts||t.draggedParts).iterator;r.next();)(o=r.key)instanceof qc&&o.linksConnected.each((function(t){t.suspendsRouting=!1}));if(t.doDropOnto(e,i),t.isActive||null!==Yn){for(t=Bt.alloc(),e=n.selection.iterator;e.next();)(i=e.value)instanceof qc&&Wn(n,i,t);Bt.free(t)}}}function Zn(t,e,n){t=t.diagram,n=n.part,!t.handlesDragDropForTopLevelParts||!n.isTopLevel||n instanceof gh||null!==(n=t.mouseDrop)&&n(e)}function Wn(t,e,n){var i=!1;if(n=e.getAvoidableRect(n),t.viewportBounds.Re(n)&&(i=!0),0!==(t=t.Nu(n,(function(t){return t.part}),(function(t){return t instanceof xh}),!0,(function(t){return t instanceof xh}),i)).count)for(t=t.iterator;t.next();)!(n=t.value).Td(e)&&n.isAvoiding&&n.bb()}function Vn(t,e,n,i){if(null===t.copiedParts){var r=t.diagram;if(!r.isReadOnly&&!r.isModelReadOnly){r.skipsUndoManager=!n,r.partManager.addsToTemporaryLayer=!n,t.startPoint=i.documentPoint,n=r.Kj(e,r,!0);var o=Bt.alloc();r=i=1/0;for(var a=-1/0,s=-1/0,l=e.iterator;l.next();){var u=l.value;if(u.isVisible()){var c=u.location;u=c.x,c=c.y,isNaN(u)||isNaN(c)||(u<i&&(i=u),c<r&&(r=c),u>a&&(a=u),c>s&&(s=c))}}for(1/0===i?o.h(0,0,0,0):o.h(i,r,a-i,s-r),i=o.x+o.width/2,r=o.y+o.height/2,Bt.free(o),o=t.Fr,a=new ft,s=pt.alloc(),l=e.iterator;l.next();)(u=l.value)instanceof xh&&u.canCopy()&&(null!==(c=n.I(u))&&(c.points=u.points,kh(c,o.x-i,o.y-r),c.suspendsRouting=!0,a.add(c,t.Pd())));for(e=e.iterator;e.next();)(u=e.value).Zc()&&u.canCopy()&&(null!==(l=n.I(u))&&(u=u.location,s.h(o.x-(i-u.x),o.y-(r-u.y)),l.location=s,l.Va(),a.add(l,t.Pd(s))));pt.free(s),t.copiedParts=a,Tn(t,a.Lf()),null!==t.draggedLink&&(e=(n=t.draggedLink).routeBounds,kh(n,t.startPoint.x-(e.x+e.width/2),t.startPoint.y-(e.y+e.height/2))),t.doUpdateCursor(null)}}}bn.className="ToolManager",bn.WheelScroll=Pn,bn.WheelZoom=kn,bn.WheelNone=Cn,bn.GestureZoom=An,bn.GestureCancel=Mn,bn.GestureNone=En,h(Ln,wn),Ln.prototype.canStart=function(){if(!this.isEnabled)return!1;var t=this.diagram;if(t.isReadOnly&&!t.allowDragOut||!t.allowMove&&!t.allowCopy&&!t.allowDragOut||!t.allowSelect)return!1;var e=t.lastInput;return!(!e.left||t.currentTool!==this&&(!this.isBeyondDragSize()||e.isTouchEvent&&e.timestamp-t.firstInput.timestamp<this.Ik))&&null!==this.findDraggablePart()},Ln.prototype.findDraggablePart=function(){var t=this.diagram;if(null===(t=t.Ol(t.firstInput.documentPoint,!1)))return null;for(;null!==t&&!t.canSelect();)t=t.containingGroup;return null!==t&&(t.canMove()||t.canCopy())?t:null},Ln.prototype.standardMouseSelect=function(){var t=this.diagram;if(t.allowSelect){var e=t.Ol(t.firstInput.documentPoint,!1);if(null!==e){for(;null!==e&&!e.canSelect();)e=e.containingGroup;this.currentPart=e,null===this.currentPart||this.currentPart.isSelected||(t.R("ChangingSelection",t.selection),e=t.lastInput,(F?e.meta:e.control)||e.shift||t.clearSelection(!0),this.currentPart.isSelected=!0,t.R("ChangedSelection",t.selection))}}},Ln.prototype.doActivate=function(){var t=this.diagram;this.Bn=null,null===this.currentPart&&this.standardMouseSelect();var e=this.currentPart;null!==e&&(e.canMove()||e.canCopy())&&(t.Fu(!0),Yn=null,this.isActive=!0,this.tl.set(t.position),Tn(this,t.selection),this.Cg.length=0,t.animationManager.Cc(),this.draggedParts=this.computeEffectiveCollection(t.selection,this.dragOptions),this.Sw=this.diagram.layout.isRealtime,this.diagram.layout.isRealtime=!1,t.Ns=!0,!0===t.Gf("temporaryPixelRatio")&&30<t.$w&&jr(t),ho(t,this.draggedParts),this.Ea("Drag"),this.startPoint=t.firstInput.documentPoint,t.isMouseCaptured=!0,t.allowDragOut&&(this.isDragOutStarted=!0,this.Ym=!1,Yn=this,Xn=this.diagram,this.doSimulatedDragOut()))},Ln.prototype.computeEffectiveCollection=function(t,e){return this.diagram.commandHandler.computeEffectiveCollection(t,e)},Ln.prototype.Pd=function(t){return void 0===t?new ca(nt):this.isGridSnapEnabled?new ca(new pt(Math.round(1e3*t.x)/1e3,Math.round(1e3*t.y)/1e3)):new ca(t.copy())},Ln.prototype.doDeactivate=function(){this.isActive=!1;var t=this.diagram;if(this.diagram.layout.isRealtime=this.Sw,t.Fu(!1),t.ug(),Nn(this),fo(t,this.draggedParts),this.draggedParts=this.currentPart=this.Bn=null,this.Ym=this.isDragOutStarted=!1,0<Sn.count){for(var e=Sn,n=e.length,i=0;i<n;i++){var r=e.M(i);On(r),Bn(r),Nn(r),r.diagram.ug()}e.clear()}On(this),this.tl.h(NaN,NaN),null!==Xn&&(Xn.currentCursor=""),Yn=Xn=null,Bn(this),t.isMouseCaptured=!1,t.currentCursor="",t.Ns=!1,this.stopTransaction(),Ir(t,!0)},Ln.prototype.stopTransaction=function(){var t=this.diagram,e=wn.prototype.stopTransaction.call(this);return e&&null!==t.undoManager.transactionToUndo&&t.undoManager.transactionToUndo.ak(),e},Ln.prototype.doCancel=function(){Bn(this),Rn(this);var t=this.diagram;this.tl.w()&&(t.position=this.tl),this.stopTool()},Ln.prototype.doKeyDown=function(){var t=this.diagram,e=t.lastInput;this.isActive&&("Esc"===e.key?this.doCancel():e.key!==t.previousInput.key&&this.doMouseMove())},Ln.prototype.doKeyUp=function(){this.isActive&&this.doMouseMove()},Ln.prototype.moveParts=function(t,e,n){void 0===n&&(n=!1);var i=this.diagram;null!==i&&lo(i,t,e,this.dragOptions,n)},Ln.prototype.findDragOverObject=function(t){var e=this;return _r(this.diagram,t,null,(function(t){return null===t?t=!0:t=!!(null===(t=t.part)||t instanceof Yc||t.layer.isTemporary||e.draggedParts&&e.draggedParts.contains(t)||e.copiedParts&&e.copiedParts.contains(t)),!t}))},Ln.prototype.doUpdateCursor=function(t){var e=this.diagram;null!==t&&this.Bn===t||(!this.diagram.currentTool.isActive||this.mayCopy()?e.currentCursor=this.copyCursor:this.mayMove()?e.currentCursor=this.moveCursor:this.mayDragOut()&&(e.currentCursor=this.nodropCursor))},Ln.prototype.doDragOver=function(){},Ln.prototype.doDropOnto=function(){},Ln.prototype.doMouseMove=function(){if(this.isActive){var t=this.diagram,e=t.lastInput;this.simulatedMouseMove(e.event,e.documentPoint,e.targetDiagram)||null===this.currentPart||null===this.draggedParts||(this.mayCopy()?(In(this,!1),ho(t,this.copiedParts),Dn(this,this.copiedParts,!1),fo(t,this.copiedParts)):this.mayMove()?(Bn(this),Dn(this,this.draggedParts,!0)):this.mayDragOut()?(In(this,!1),Dn(this,this.copiedParts,!1)):Bn(this),Fn(this,t.lastInput.documentPoint))}},Ln.prototype.doMouseUp=function(){if(this.isActive){var t=this.diagram,e=t.lastInput;if(!this.simulatedMouseUp(e.event,e.documentPoint,e.targetDiagram)){e=!1;var n=this.mayCopy();if(n&&null!==this.copiedParts?(Bn(this),In(this,!0),ho(t,this.copiedParts),Dn(this,this.copiedParts,!1),fo(t,this.copiedParts),null!==this.copiedParts&&(t.R("ChangingSelection",t.selection),t.clearSelection(!0),this.copiedParts.iteratorKeys.each((function(t){t.isSelected=!0})))):(e=!0,Bn(this),this.mayMove()&&(Dn(this,this.draggedParts,!0),Fn(this,t.lastInput.documentPoint))),this.Ym=!0,_n(this,t.lastInput.documentPoint),this.isActive){var i=n?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,e&&function(t){if(null!==t.draggedParts)for(var e=t.draggedParts.iterator;e.next();){var n=e.key;n instanceof qc&&(null===(n=n.containingGroup)||null===n.placeholder||t.draggedParts.contains(n)||n.placeholder.v())}}(this),t.Ya(),fo(t,this.draggedParts),this.transactionResult=n?"Copy":"Move",t.R(n?"SelectionCopied":"SelectionMoved",i)}this.stopTool(),n&&t.R("ChangedSelection",t.selection)}}},Ln.prototype.simulatedMouseMove=function(t,e,n){if(null===Yn)return!1;var i=Yn.diagram;n instanceof Mr||(n=null);var r=Xn;return n!==r&&(null!==r&&r!==i&&(r.ug(),Yn.isDragOutStarted=!1,null!==(r=r.toolManager.findTool("Dragging"))&&r.doSimulatedDragLeave()),Xn=n,null!==n&&n!==i&&(jn(),null!==(r=n.toolManager.findTool("Dragging"))&&(Sn.contains(r)||Sn.add(r),r.doSimulatedDragEnter())),this.doUpdateCursor(null)),!(null===n||n===i||!n.allowDrop||n.isReadOnly||!n.allowInsert)&&(null!==(i=n.toolManager.findTool("Dragging"))&&(null!==t&&(void 0!==t.targetTouches&&(0<t.targetTouches.length?t=t.targetTouches[0]:0<t.changedTouches.length&&(t=t.changedTouches[0])),e=n.getMouse(t)),n.lastInput.documentPoint=e,n.lastInput.viewPoint=n.op(e),n.lastInput.down=!1,n.lastInput.up=!1,i.doSimulatedDragOver()),!0)},Ln.prototype.simulatedMouseUp=function(t,e,n){if(null===Yn)return!1;var i=Xn,r=Yn.diagram;if(null===n)return Yn.doCancel(),!0;if(n!==i){var o=i.toolManager.findTool("Dragging");if(null!==i&&i!==r&&null!==o)return i.ug(),Yn.isDragOutStarted=!1,o.doSimulatedDragLeave(),!1;Xn=n,null!==(i=n.toolManager.findTool("Dragging"))&&(jn(),Sn.contains(i)||Sn.add(i),i.doSimulatedDragEnter())}return n!==this.diagram&&(null!==t?(void 0!==t.targetTouches&&(0<t.targetTouches.length?t=t.targetTouches[0]:0<t.changedTouches.length&&(t=t.changedTouches[0])),e=n.getMouse(t)):null===e&&(e=new pt),n.lastInput.documentPoint=e,n.lastInput.viewPoint=n.op(e),n.lastInput.down=!1,n.lastInput.up=!0,null!==(t=n.toolManager.findTool("Dragging"))&&t.doSimulatedDrop(),null!==(t=Yn)&&(n=t.mayCopy(),t.transactionResult=n?"Copy":"Move",t.stopTool()),!0)},Ln.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var t=this.diagram;if(t.isReadOnly||t.isModelReadOnly||!t.allowInsert||!t.allowCopy||(F?!t.lastInput.alt:!t.lastInput.control))return!1;for(t=t.selection.iterator;t.next();)if(t.value.canCopy())return!0;return!(null===this.draggedLink||!this.dragsLink||!this.draggedLink.canCopy())},Ln.prototype.mayDragOut=function(){if(!this.isCopyEnabled)return!1;var t=this.diagram;if(!t.allowDragOut||!t.allowCopy||t.allowMove)return!1;for(t=t.selection.iterator;t.next();)if(t.value.canCopy())return!0;return!(null===this.draggedLink||!this.dragsLink||!this.draggedLink.canCopy())},Ln.prototype.mayMove=function(){var t=this.diagram;if(t.isReadOnly||!t.allowMove)return!1;for(t=t.selection.iterator;t.next();)if(t.value.canMove())return!0;return!(null===this.draggedLink||!this.dragsLink||!this.draggedLink.canMove())},Ln.prototype.computeBorder=function(t,e,n){return this.Ym||null===this.draggedParts||this.draggedParts.contains(t)?null:n.assign(e)},Ln.prototype.Az=function(){return Yn},Ln.prototype.mayDragIn=function(){var t=this.diagram;if(!t.allowDrop||t.isReadOnly||t.isModelReadOnly||!t.allowInsert)return!1;return null!==Yn&&Yn.diagram.model.dataFormat===t.model.dataFormat},Ln.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var t=this.diagram;t.animationManager.Cc(),Qr(t),t.animationManager.Cc(),null!==(t=Yn)&&(t.diagram.Ns=!1),this.doUpdateCursor(null)}},Ln.prototype.doSimulatedDragLeave=function(){null!==Yn&&Yn.doSimulatedDragOut(),this.doCancel()},Ln.prototype.doSimulatedDragOver=function(){var t=this.diagram;t.animationManager.Dm=!0;var e=Yn;if(null!==e&&null!==e.draggedParts){if(!this.mayDragIn())return;Vn(this,e.draggedParts.Lf(),!1,t.firstInput),Dn(this,this.copiedParts,!1),Fn(this,t.lastInput.documentPoint)}t.animationManager.Dm=!1},Ln.prototype.doSimulatedDrop=function(){var t=this.diagram,e=Yn;if(null!==e){var n=e.diagram;if(e.Ym=!0,Bn(this),!this.mayDragIn())return;t.animationManager.Dm=!0,t.R("ChangingSelection",t.selection),this.Ea("Drop"),Vn(this,e.draggedParts.Lf(),!0,t.lastInput),Dn(this,this.copiedParts,!1);var i=new J;null!==this.copiedParts&&(t.clearSelection(!0),this.copiedParts.iteratorKeys.each((function(t){t.isSelected=!0,i.add(t)}))),_n(this,t.lastInput.documentPoint),t.Ya(),null!==this.copiedParts&&(this.transactionResult="ExternalCopy"),this.copiedParts=null,t.doFocus(),t.R("ExternalObjectsDropped",i,n),this.stopTransaction(),t.R("ChangedSelection",t.selection)}t.animationManager.Dm=!1},Ln.prototype.doSimulatedDragOut=function(){var t=this.diagram;t.Ns=!1,this.mayCopy()||this.mayMove()?t.currentCursor="":t.currentCursor=this.nodropCursor,this.Bn=null},Ln.prototype.computeMove=function(t,e,n,i){return null!==(n=this.diagram)?n.computeMove(t,e,this.dragOptions,i):new pt},d.Object.defineProperties(Ln.prototype,{isCopyEnabled:{get:function(){return this.ob},set:function(t){this.ob=t}},copiesEffectiveCollection:{get:function(){return this.u},set:function(t){this.u=t}},dragOptions:{get:function(){return this.ia},set:function(t){this.ia=t}},isGridSnapEnabled:{get:function(){return this.dragOptions.isGridSnapEnabled},set:function(t){this.dragOptions.isGridSnapEnabled=t}},isComplexRoutingRealtime:{get:function(){return this.hb},set:function(t){this.hb=t}},isGridSnapRealtime:{get:function(){return this.dragOptions.isGridSnapRealtime},set:function(t){this.dragOptions.isGridSnapRealtime=t}},gridSnapCellSize:{get:function(){return this.dragOptions.gridSnapCellSize},set:function(t){this.dragOptions.gridSnapCellSize.D(t)||(t=t.J(),this.dragOptions.gridSnapCellSize=t)}},gridSnapCellSpot:{get:function(){return this.dragOptions.gridSnapCellSpot},set:function(t){this.dragOptions.gridSnapCellSpot.D(t)||(t=t.J(),this.dragOptions.gridSnapCellSpot=t)}},gridSnapOrigin:{get:function(){return this.dragOptions.gridSnapOrigin},set:function(t){this.dragOptions.gridSnapOrigin.D(t)||(t=t.J(),this.dragOptions.gridSnapOrigin=t)}},dragsLink:{get:function(){return this.dragOptions.dragsLink},set:function(t){this.dragOptions.dragsLink=t}},dragsTree:{get:function(){return this.dragOptions.dragsTree},set:function(t){this.dragOptions.dragsTree=t}},copyCursor:{get:function(){return this.F},set:function(t){this.F=t}},moveCursor:{get:function(){return this.Oc},set:function(t){this.Oc=t}},nodropCursor:{get:function(){return this.Pc},set:function(t){this.Pc=t}},currentPart:{get:function(){return this.V},set:function(t){this.V=t}},copiedParts:{get:function(){return this.o},set:function(t){this.o=t}},draggedParts:{get:function(){return this.Ha},set:function(t){this.Ha=t}},draggingParts:{get:function(){return null!==this.copiedParts?this.copiedParts.Lf():null!==this.draggedParts?this.draggedParts.Lf():this.te}},draggedLink:{get:function(){return this.diagram.draggedLink},set:function(t){this.diagram.draggedLink=t}},isDragOutStarted:{get:function(){return this.Hb},set:function(t){this.Hb=t}},startPoint:{get:function(){return this.Fr},set:function(t){this.Fr.D(t)||this.Fr.assign(t)}},delay:{get:function(){return this.Ik},set:function(t){this.Ik=t}}}),Ln.prototype.getDraggingSource=Ln.prototype.Az;var Yn=null,Xn=null;function qn(){wn.call(this),this.te=100,this.Ha=!1,this.u="pointer";var t=new xh,e=new pu;e.isPanelMain=!0,e.stroke="blue",t.add(e),(e=new pu).toArrow="Standard",e.fill="blue",e.stroke="blue",t.add(e),t.layerName="Tool",this.Ci=t,t=new qc,(e=new pu).portId="",e.figure="Rectangle",e.fill=null,e.stroke="magenta",e.strokeWidth=2,e.desiredSize=Pt,t.add(e),t.selectable=!1,t.layerName="Tool",this.Bi=t,this.j=e,t=new qc,(e=new pu).portId="",e.figure="Rectangle",e.fill=null,e.stroke="magenta",e.strokeWidth=2,e.desiredSize=Pt,t.add(e),t.selectable=!1,t.layerName="Tool",this.Di=t,this.o=e,this.Pc=this.Oc=this.ob=this.hb=this.Hb=null,this.ia=!0,this.hy=new ft,this.Of=this.gj=this.Pf=null}function Kn(t,e,n,i){if(e===n)return!0;var r=e.fromNode;return!(null===r||!r.isLinkLabel||(i.add(r),!Kn(t,r.labeledLink,n,i)))||!(null===(e=e.toNode)||!e.isLinkLabel||(i.add(e),!Kn(t,e.labeledLink,n,i)))}function Qn(t,e,n,i,r){if(e===n)return!0;if(null===e||null===n)return!1;for(var o=e.linksConnected;o.next();){var a=o.value;if(a!==i&&(!r||a.isTreeLink)&&a.toNode===e&&((a=a.fromNode)!==e&&Qn(t,a,n,i,r)))return!0}return!1}function Jn(t,e,n,i,r){if(n===i)return!0;if(null===n||null===i||e.contains(n))return!1;e.add(n);for(var o=n.linksConnected;o.next();){var a=o.value;if(a!==r&&a.toNode===n&&((a=a.fromNode)!==n&&Jn(t,e,a,i,r)))return!0}return!1}function $n(t,e,n,i,r){if(n===i)return!0;if(null===n||null===i||e.contains(n))return!1;e.add(n);for(var o=n.linksConnected;o.next();){var a=o.value;if(a!==r){var s=a.fromNode;if(a=a.toNode,(s=s===n?a:s)!==n&&$n(t,e,s,i,r))return!0}}return!1}function ti(){qn.call(this),this.name="Linking",this.V={},this.F=null,this.K=ei,this.Xd=null}Ln.className="DraggingTool",Sn=new K,O("draggingTool",(function(){return this.findTool("Dragging")}),(function(t){this.gb("Dragging",t,this.mouseMoveTools)})),bn.prototype.doCancel=function(){null!==Yn&&Yn.doCancel(),wn.prototype.doCancel.call(this)},h(qn,wn),qn.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},qn.prototype.copyPortProperties=function(t,e,n,i,r){if(null!==t&&null!==e&&null!==n&&null!==i){var o=e.Df(),a=Tt.alloc();a.width=e.naturalBounds.width*o,a.height=e.naturalBounds.height*o,i.desiredSize=a,Tt.free(a),r?(i.toSpot=e.toSpot,i.toEndSegmentLength=e.toEndSegmentLength):(i.fromSpot=e.fromSpot,i.fromEndSegmentLength=e.fromEndSegmentLength),n.locationSpot=re,o=pt.alloc(),n.location=e.ga(re,o),pt.free(o),i.angle=e.li(),null!==this.portTargeted&&this.portTargeted(t,e,n,i,r)}},qn.prototype.setNoTargetPortProperties=function(t,e,n){null!==e&&(e.desiredSize=Pt,e.fromSpot=$t,e.toSpot=$t),null!==t&&(t.location=this.diagram.lastInput.documentPoint),null!==this.portTargeted&&this.portTargeted(null,null,t,e,n)},qn.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},qn.prototype.doMouseMove=function(){if(this.isActive){var t=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),null!==this.targetPort&&this.targetPort.part instanceof qc){var e=this.targetPort.part;this.isForwards?this.copyPortProperties(e,this.targetPort,this.temporaryToNode,this.temporaryToPort,!0):this.copyPortProperties(e,this.targetPort,this.temporaryFromNode,this.temporaryFromPort,!1)}else this.isForwards?this.setNoTargetPortProperties(this.temporaryToNode,this.temporaryToPort,!0):this.setNoTargetPortProperties(this.temporaryFromNode,this.temporaryFromPort,!1);(t.allowHorizontalScroll||t.allowVerticalScroll)&&t.gs(t.lastInput.viewPoint)}},qn.prototype.findValidLinkablePort=function(t,e){if(null===t)return null;var n=t.part;if(!(n instanceof qc))return null;for(;null!==t;){var i=e?t.toLinkable:t.fromLinkable;if(!0===i&&(null!==t.portId||t instanceof qc)&&(e?this.isValidTo(n,t):this.isValidFrom(n,t)))return t;if(!1===i)break;t=t.panel}return null},qn.prototype.findTargetPort=function(t){var e=this.diagram,n=e.lastInput.documentPoint,i=this.portGravity;0>=i&&(i=.1);var r=this,o=e.og(n,i,(function(e){return r.findValidLinkablePort(e,t)}),null,!0);for(i=1/0,e=null,o=o.iterator;o.next();){var a=o.value,s=a.part;if(s instanceof qc){var l=a.ga(re,pt.alloc()),u=n.x-l.x,c=n.y-l.y;pt.free(l),(l=u*u+c*c)<i&&(null!==(u=this.validPortsCache.I(a))?u&&(e=a,i=l):t&&this.isValidLink(this.originalFromNode,this.originalFromPort,s,a)||!t&&this.isValidLink(s,a,this.originalToNode,this.originalToPort)?(this.validPortsCache.add(a,!0),e=a,i=l):this.validPortsCache.add(a,!1))}}return null!==e&&((n=e.part)instanceof qc&&(null===n.layer||n.layer.allowLink))?e:null},qn.prototype.isValidFrom=function(t,e){if(null===t||null===e)return this.isUnconnectedLinkValid;if(this.diagram.currentTool===this&&(null!==t.layer&&!t.layer.allowLink||!0!==e.fromLinkable))return!1;var n=e.fromMaxLinks;if(1/0>n){if(null!==this.originalLink&&t===this.originalFromNode&&e===this.originalFromPort)return!0;if(null===(e=e.portId)&&(e=""),t.Mo(e).count>=n)return!1}return!0},qn.prototype.isValidTo=function(t,e){if(null===t||null===e)return this.isUnconnectedLinkValid;if(this.diagram.currentTool===this&&(null!==t.layer&&!t.layer.allowLink||!0!==e.toLinkable))return!1;var n=e.toMaxLinks;if(1/0>n){if(null!==this.originalLink&&t===this.originalToNode&&e===this.originalToPort)return!0;if(null===(e=e.portId)&&(e=""),t.Sd(e).count>=n)return!1}return!0},qn.prototype.isInSameNode=function(t,e){return null!==t&&null!==e&&(t===e||(t=t.part,e=e.part,null!==t&&t===e))},qn.prototype.isLinked=function(t,e){if(null===t||null===e)return!1;var n=t.part;if(!(n instanceof qc))return!1;null===(t=t.portId)&&(t="");var i=e.part;if(!(i instanceof qc))return!1;for(null===(e=e.portId)&&(e=""),e=i.Sd(e);e.next();)if((i=e.value).fromNode===n&&i.fromPortId===t)return!0;return!1},qn.prototype.isValidLink=function(t,e,n,i){if(!this.isValidFrom(t,e)||!this.isValidTo(n,i)||!(null===e||null===i||(e.fromLinkableSelfNode&&i.toLinkableSelfNode||!this.isInSameNode(e,i))&&(e.fromLinkableDuplicates&&i.toLinkableDuplicates||!this.isLinked(e,i)))||null!==this.originalLink&&(null!==t&&this.isLabelDependentOnLink(t,this.originalLink)||null!==n&&this.isLabelDependentOnLink(n,this.originalLink))||null!==t&&null!==n&&(null===t.data&&null!==n.data||null!==t.data&&null===n.data)||!this.isValidCycle(t,n,this.originalLink))return!1;if(null!==t){var r=t.linkValidation;if(null!==r&&!r(t,e,n,i,this.originalLink))return!1}return!(null!==n&&null!==(r=n.linkValidation)&&!r(t,e,n,i,this.originalLink))&&(null===(r=this.linkValidation)||r(t,e,n,i,this.originalLink))},qn.prototype.isLabelDependentOnLink=function(t,e){if(null===t)return!1;var n=t.labeledLink;if(null===n)return!1;if(n===e)return!0;var i=new J;return i.add(t),Kn(this,n,e,i)},qn.prototype.isValidCycle=function(t,e,n){if(void 0===n&&(n=null),null===t||null===e)return this.isUnconnectedLinkValid;var i=this.diagram.validCycle;if(i!==Vo){if(i===Ko){if(null!==(i=n||this.temporaryLink)&&!i.isTreeLink)return!0;for(i=e.linksConnected;i.next();){var r=i.value;if(r!==n&&r.isTreeLink&&r.toNode===e)return!1}return!Qn(this,t,e,n,!0)}if(i===Qo){if(null!==(i=n||this.temporaryLink)&&!i.isTreeLink)return!0;for(i=t.linksConnected;i.next();)if((r=i.value)!==n&&r.isTreeLink&&r.fromNode===t)return!1;return!Qn(this,t,e,n,!0)}if(i===Yo)return t===e?t=!0:((i=new J).add(e),t=Jn(this,i,t,e,n)),!t;if(i===Xo)return!Qn(this,t,e,n,!1);if(i===qo)return t===e?t=!0:((i=new J).add(e),t=$n(this,i,t,e,n)),!t}return!0},d.Object.defineProperties(qn.prototype,{portGravity:{get:function(){return this.te},set:function(t){0<=t&&(this.te=t)}},isUnconnectedLinkValid:{get:function(){return this.Ha},set:function(t){this.Ha=t}},linkingCursor:{get:function(){return this.u},set:function(t){this.u=t}},temporaryLink:{get:function(){return this.Ci},set:function(t){this.Ci=t}},temporaryFromNode:{get:function(){return this.Bi},set:function(t){(this.Bi=t)&&(this.j=t.port)}},temporaryFromPort:{get:function(){return this.j},set:function(t){if(null!==this.j){var e=this.j.panel;if(null!==e){var n=e.O.indexOf(this.j);e.mb(n),e.Gb(n,t)}}this.j=t}},temporaryToNode:{get:function(){return this.Di},set:function(t){(this.Di=t)&&(this.o=t.port)}},temporaryToPort:{get:function(){return this.o},set:function(t){if(null!==this.o){var e=this.o.panel;if(null!==e){var n=e.O.indexOf(this.o);e.mb(n),e.Gb(n,t)}}this.o=t}},originalLink:{get:function(){return this.Hb},set:function(t){this.Hb=t}},originalFromNode:{get:function(){return this.hb},set:function(t){this.hb=t}},originalFromPort:{get:function(){return this.ob},set:function(t){this.ob=t}},originalToNode:{get:function(){return this.Oc},set:function(t){this.Oc=t}},originalToPort:{get:function(){return this.Pc},set:function(t){this.Pc=t}},isForwards:{get:function(){return this.ia},set:function(t){this.ia=t}},validPortsCache:{get:function(){return this.hy}},targetPort:{get:function(){return this.Pf},set:function(t){this.Pf=t}},linkValidation:{get:function(){return this.gj},set:function(t){this.gj=t}},portTargeted:{get:function(){return this.Of},set:function(t){this.Of=t}}}),qn.className="LinkingBaseTool",h(ti,qn),ti.prototype.canStart=function(){if(!this.isEnabled)return!1;var t=this.diagram;return!(t.isReadOnly||t.isModelReadOnly||!t.allowLink||!t.model.xs()||!t.lastInput.left||t.currentTool!==this&&!this.isBeyondDragSize())&&null!==this.findLinkablePort()},ti.prototype.findLinkablePort=function(){var t=this.diagram,e=this.startObject;if(null===e&&(e=t.ic(t.firstInput.documentPoint,null,null)),null===e)return null;if(!((t=e.part)instanceof qc))return null;var n=this.direction;if(n===ei||n===ni){var i=this.findValidLinkablePort(e,!1);if(null!==i||this.startObject===t&&(i=t.port,this.findValidLinkablePort(i,!1)))return this.isForwards=!0,i}return(n===ei||n===ii)&&(null!==(e=this.findValidLinkablePort(e,!0))||this.startObject===t&&(e=t.port,this.findValidLinkablePort(e,!0)))?(this.isForwards=!1,e):null},ti.prototype.doActivate=function(){var t=this.diagram,e=this.findLinkablePort();null===e?this.stopTool():(this.Ea(this.name),t.isMouseCaptured=!0,t.currentCursor=this.linkingCursor,this.isForwards?(null!==this.temporaryToNode&&(this.temporaryToNode.location=t.lastInput.documentPoint),this.originalFromPort=e,(e=this.originalFromPort.part)instanceof qc&&(this.originalFromNode=e),this.copyPortProperties(this.originalFromNode,this.originalFromPort,this.temporaryFromNode,this.temporaryFromPort,!1)):(null!==this.temporaryFromNode&&(this.temporaryFromNode.location=t.lastInput.documentPoint),this.originalToPort=e,(e=this.originalToPort.part)instanceof qc&&(this.originalToNode=e),this.copyPortProperties(this.originalToNode,this.originalToPort,this.temporaryToNode,this.temporaryToPort,!0)),t.add(this.temporaryFromNode),this.temporaryFromNode&&this.temporaryFromNode.Va(),t.add(this.temporaryToNode),this.temporaryToNode&&this.temporaryToNode.Va(),null!==this.temporaryLink&&(null!==this.temporaryFromNode&&(this.temporaryLink.fromNode=this.temporaryFromNode),null!==this.temporaryToNode&&(this.temporaryLink.toNode=this.temporaryToNode),this.temporaryLink.isTreeLink=this.isNewTreeLink(),this.temporaryLink.bb(),t.add(this.temporaryLink)),this.isActive=!0)},ti.prototype.doDeactivate=function(){this.isActive=!1;var t=this.diagram;t.remove(this.temporaryLink),t.remove(this.temporaryFromNode),t.remove(this.temporaryToNode),t.isMouseCaptured=!1,t.currentCursor="",this.stopTransaction()},ti.prototype.doStop=function(){qn.prototype.doStop.call(this),this.startObject=null},ti.prototype.doMouseUp=function(){if(this.isActive){var t=this.diagram,e=this.transactionResult=null,n=null,i=null,r=null,o=null;try{var a=this.targetPort=this.findTargetPort(this.isForwards);if(null!==a){var s=a.part;s instanceof qc&&(this.isForwards?(null!==this.originalFromNode&&(e=this.originalFromNode,n=this.originalFromPort),i=s,r=a):(e=s,n=a,null!==this.originalToNode&&(i=this.originalToNode,r=this.originalToPort)))}else this.isForwards?null!==this.originalFromNode&&this.isUnconnectedLinkValid&&(e=this.originalFromNode,n=this.originalFromPort):null!==this.originalToNode&&this.isUnconnectedLinkValid&&(i=this.originalToNode,r=this.originalToPort);null!==e||null!==i?null!==(o=this.insertLink(e,n,i,r))?(null===a&&(this.isForwards?o.defaultToPoint=t.lastInput.documentPoint:o.defaultFromPoint=t.lastInput.documentPoint),t.allowSelect&&(t.R("ChangingSelection",t.selection),t.clearSelection(!0),o.isSelected=!0),this.transactionResult=this.name,t.R("LinkDrawn",o)):this.doNoLink(e,n,i,r):this.isForwards?this.doNoLink(this.originalFromNode,this.originalFromPort,null,null):this.doNoLink(null,null,this.originalToNode,this.originalToPort)}finally{this.stopTool(),o&&t.allowSelect&&t.R("ChangedSelection",t.selection)}}},ti.prototype.isNewTreeLink=function(){var t=this.archetypeLinkData;if(null===t)return!0;if(t instanceof xh)return t.isTreeLink;var e=this.diagram;return null===e||(t=e.partManager.getLinkCategoryForData(t),null===(e=e.partManager.findLinkTemplateForCategory(t))||e.isTreeLink)},ti.prototype.insertLink=function(t,e,n,i){return this.diagram.partManager.insertLink(t,e,n,i)},ti.prototype.doNoLink=function(){},d.Object.defineProperties(ti.prototype,{archetypeLinkData:{get:function(){return this.V},set:function(t){this.V=t}},archetypeLabelNodeData:{get:function(){return this.F},set:function(t){this.F=t}},direction:{get:function(){return this.K},set:function(t){this.K=t}},startObject:{get:function(){return this.Xd},set:function(t){this.Xd=t}}});var ei=new G(ti,"Either",0),ni=new G(ti,"ForwardsOnly",0),ii=new G(ti,"BackwardsOnly",0);function ri(){qn.call(this),this.name="Relinking";var t=new pu;t.figure="Diamond",t.desiredSize=Ct,t.fill="lightblue",t.stroke="dodgerblue",t.cursor=this.linkingCursor,t.segmentIndex=0,this.V=t,(t=new pu).figure="Diamond",t.desiredSize=Ct,t.fill="lightblue",t.stroke="dodgerblue",t.cursor=this.linkingCursor,t.segmentIndex=-1,this.Xd=t,this.F=null,this.Ew=new Bt}function oi(t,e,n,i,r){null!==e?(t.copyPortProperties(e,n,t.temporaryFromNode,t.temporaryFromPort,!1),t.diagram.add(t.temporaryFromNode)):t.diagram.remove(t.temporaryFromNode),null!==i?(t.copyPortProperties(i,r,t.temporaryToNode,t.temporaryToPort,!0),t.diagram.add(t.temporaryToNode)):t.diagram.remove(t.temporaryToNode)}function ai(){wn.call(this),this.name="LinkReshaping";var t=new pu;t.figure="Rectangle",t.desiredSize=kt,t.fill="lightblue",t.stroke="dodgerblue",this.o=t,(t=new pu).figure="Diamond",t.desiredSize=Ct,t.fill="lightblue",t.stroke="dodgerblue",t.cursor="move",this.u=t,this.F=3,this.Ts=this.j=null,this.Fw=new pt,this.Yq=new K}function si(t,e,n,i,r,o){return o?Math.abs(e.y-n.y)<t.resegmentingDistance&&Math.abs(n.y-i.y)<t.resegmentingDistance&&Math.abs(i.y-r.y)<t.resegmentingDistance:Math.abs(e.x-n.x)<t.resegmentingDistance&&Math.abs(n.x-i.x)<t.resegmentingDistance&&Math.abs(i.x-r.x)<t.resegmentingDistance}ti.className="LinkingTool",ti.Either=ei,ti.ForwardsOnly=ni,ti.BackwardsOnly=ii,h(ri,qn),ri.prototype.updateAdornments=function(t){if(null!==t&&t instanceof xh){var e="RelinkFrom",n=null;if(t.isSelected&&!this.diagram.isReadOnly){var i=t.selectionObject;null!==i&&t.canRelinkFrom()&&t.actualBounds.w()&&t.isVisible()&&i.actualBounds.w()&&i.Ed()&&(null===(n=t.Pj(e))&&(n=this.makeAdornment(i,!1),t.bh(e,n)))}null===n&&t.Jf(e),e="RelinkTo",n=null,t.isSelected&&!this.diagram.isReadOnly&&(null!==(i=t.selectionObject)&&t.canRelinkTo()&&t.actualBounds.w()&&t.isVisible()&&i.actualBounds.w()&&i.Ed()&&(null===(n=t.Pj(e))?(n=this.makeAdornment(i,!0),t.bh(e,n)):n.v())),null===n&&t.Jf(e)}},ri.prototype.makeAdornment=function(t,e){var n=new Yc;return n.type=Ml.Link,null!==(e=e?this.toHandleArchetype:this.fromHandleArchetype)&&n.add(e.copy()),n.adornedObject=t,n},ri.prototype.canStart=function(){if(!this.isEnabled)return!1;var t=this.diagram;if(t.isReadOnly||t.isModelReadOnly||!t.allowRelink||!t.model.xs()||!t.lastInput.left)return!1;var e=this.findToolHandleAt(t.firstInput.documentPoint,"RelinkFrom");return null===e&&(e=this.findToolHandleAt(t.firstInput.documentPoint,"RelinkTo")),null!==e},ri.prototype.doActivate=function(){var t=this.diagram;if(null===this.originalLink){var e=this.handle;if(null===e&&(null===(e=this.findToolHandleAt(t.firstInput.documentPoint,"RelinkFrom"))&&(e=this.findToolHandleAt(t.firstInput.documentPoint,"RelinkTo"))),null===e)return;var n=e.part;if(!(n instanceof Yc&&n.adornedPart instanceof xh))return;this.handle=e,this.isForwards=null===n||"RelinkTo"===n.category,this.originalLink=n.adornedPart}this.Ea(this.name),t.isMouseCaptured=!0,t.currentCursor=this.linkingCursor,this.originalFromPort=this.originalLink.fromPort,this.originalFromNode=this.originalLink.fromNode,this.originalToPort=this.originalLink.toPort,this.originalToNode=this.originalLink.toNode,this.Ew.set(this.originalLink.actualBounds),null!==this.originalLink&&0<this.originalLink.pointsCount&&(null===this.originalLink.fromNode&&(null!==this.temporaryFromPort&&(this.temporaryFromPort.desiredSize=St),null!==this.temporaryFromNode&&(this.temporaryFromNode.location=this.originalLink.i(0))),null===this.originalLink.toNode&&(null!==this.temporaryToPort&&(this.temporaryToPort.desiredSize=St),null!==this.temporaryToNode&&(this.temporaryToNode.location=this.originalLink.i(this.originalLink.pointsCount-1)))),this.copyPortProperties(this.originalFromNode,this.originalFromPort,this.temporaryFromNode,this.temporaryFromPort,!1),this.copyPortProperties(this.originalToNode,this.originalToPort,this.temporaryToNode,this.temporaryToPort,!0),t.add(this.temporaryFromNode),t.add(this.temporaryToNode),null!==this.temporaryLink&&(null!==this.temporaryFromNode&&(this.temporaryLink.fromNode=this.temporaryFromNode),null!==this.temporaryToNode&&(this.temporaryLink.toNode=this.temporaryToNode),this.copyLinkProperties(this.originalLink,this.temporaryLink),this.temporaryLink.bb(),t.add(this.temporaryLink)),this.isActive=!0},ri.prototype.copyLinkProperties=function(t,e){if(null!==t&&null!==e){e.adjusting=t.adjusting,e.corner=t.corner;var n=t.curve;n!==Qh&&n!==Kh||(n=Xh),e.curve=n,e.curviness=t.curviness,e.isTreeLink=t.isTreeLink,e.points=t.points,e.routing=t.routing,e.smoothness=t.smoothness,e.fromSpot=t.fromSpot,e.fromEndSegmentLength=t.fromEndSegmentLength,e.fromShortLength=t.fromShortLength,e.toSpot=t.toSpot,e.toEndSegmentLength=t.toEndSegmentLength,e.toShortLength=t.toShortLength}},ri.prototype.doDeactivate=function(){this.isActive=!1;var t=this.diagram;t.remove(this.temporaryLink),t.remove(this.temporaryFromNode),t.remove(this.temporaryToNode),t.isMouseCaptured=!1,t.currentCursor="",this.stopTransaction()},ri.prototype.doStop=function(){qn.prototype.doStop.call(this),this.handle=null},ri.prototype.doMouseUp=function(){if(this.isActive){var t=this.diagram;this.transactionResult=null;var e=this.originalFromNode,n=this.originalFromPort,i=this.originalToNode,r=this.originalToPort,o=this.originalLink;try{if(this.targetPort=this.findTargetPort(this.isForwards),null!==this.targetPort){var a=this.targetPort.part;a instanceof qc&&(this.isForwards?(i=a,r=this.targetPort):(e=a,n=this.targetPort))}else this.isUnconnectedLinkValid?this.isForwards?r=i=null:n=e=null:o=null;null!==o?(this.reconnectLink(o,this.isForwards?i:e,this.isForwards?r:n,this.isForwards),null===this.targetPort&&(this.isForwards?o.defaultToPoint=t.lastInput.documentPoint:o.defaultFromPoint=t.lastInput.documentPoint,o.bb()),this.transactionResult=this.name,t.R("LinkRelinked",o,this.isForwards?this.originalToPort:this.originalFromPort)):this.doNoRelink(this.originalLink,this.isForwards),this.originalLink.Xo(this.Ew)}finally{this.stopTool()}}},ri.prototype.reconnectLink=function(t,e,n,i){return n=null!==n&&null!==n.portId?n.portId:"",i?(t.toNode=e,t.toPortId=n):(t.fromNode=e,t.fromPortId=n),!0},ri.prototype.doNoRelink=function(){},d.Object.defineProperties(ri.prototype,{fromHandleArchetype:{get:function(){return this.V},set:function(t){this.V=t}},toHandleArchetype:{get:function(){return this.Xd},set:function(t){this.Xd=t}},handle:{get:function(){return this.F},set:function(t){if(null!==t&&!(t.part instanceof Yc))throw Error("new handle is not in an Adornment: "+t);this.F=t}}}),ri.className="RelinkingTool",O("linkingTool",(function(){return this.findTool("Linking")}),(function(t){this.gb("Linking",t,this.mouseMoveTools)})),O("relinkingTool",(function(){return this.findTool("Relinking")}),(function(t){this.gb("Relinking",t,this.mouseDownTools)})),h(ai,wn),ai.prototype.Ru=function(t){return t&&0!==t.reshapingBehavior.value?t.reshapingBehavior:li},ai.prototype.om=function(t,e){t.reshapingBehavior=e},ai.prototype.updateAdornments=function(t){if(null!==t&&t instanceof xh){var e=null;if(t.isSelected&&!this.diagram.isReadOnly){var n=t.path;null!==n&&t.canReshape()&&t.actualBounds.w()&&t.isVisible()&&n.actualBounds.w()&&n.Ed()&&(null===(e=t.Pj(this.name))||e.Aw!==t.pointsCount||e.Uw!==t.resegmentable)&&(null!==(e=this.makeAdornment(n))&&(e.Aw=t.pointsCount,e.Uw=t.resegmentable,t.bh(this.name,e)))}null===e&&t.Jf(this.name)}},ai.prototype.makeAdornment=function(t){var e=t.part,n=e.pointsCount,i=e.isOrthogonal,r=null;if(null!==e.points&&1<n){(r=new Yc).type=Ml.Link,n=e.firstPickIndex;var o=e.lastPickIndex,a=i?1:0;if(e.resegmentable&&e.computeCurve()!==qh)for(var s=n+a;s<o-a;s++){var l=this.makeResegmentHandle(t,s);null!==l&&(l.segmentIndex=s,l.segmentFraction=.5,l.fromMaxLinks=999,r.add(l))}for(a=n+1;a<o;a++)if(null!==(s=this.makeHandle(t,a))){if(s.segmentIndex=a,a!==n)if(a===n+1&&i){l=e.i(n);var u=e.i(n+1);_e.B(l.x,u.x)&&_e.B(l.y,u.y)&&(u=e.i(n-1)),_e.B(l.x,u.x)?(this.om(s,ci),s.cursor="n-resize"):_e.B(l.y,u.y)&&(this.om(s,ui),s.cursor="w-resize")}else a===o-1&&i?(l=e.i(o-1),u=e.i(o),_e.B(l.x,u.x)&&_e.B(l.y,u.y)&&(l=e.i(o+1)),_e.B(l.x,u.x)?(this.om(s,ci),s.cursor="n-resize"):_e.B(l.y,u.y)&&(this.om(s,ui),s.cursor="w-resize")):a!==o&&(this.om(s,hi),s.cursor="move");r.add(s)}r.adornedObject=t}return r},ai.prototype.makeHandle=function(){var t=this.handleArchetype;return null===t?null:t.copy()},ai.prototype.makeResegmentHandle=function(){var t=this.midHandleArchetype;return null===t?null:t.copy()},ai.prototype.canStart=function(){if(!this.isEnabled)return!1;var t=this.diagram;return!(t.isReadOnly||!t.allowReshape||!t.lastInput.left)&&null!==this.findToolHandleAt(t.firstInput.documentPoint,this.name)},ai.prototype.doActivate=function(){var t=this.diagram;if(null===this.handle&&(this.handle=this.findToolHandleAt(t.firstInput.documentPoint,this.name)),null!==this.handle){var e=this.handle.part.adornedPart;if(e instanceof xh){if(this.Ts=e,t.isMouseCaptured=!0,this.Ea(this.name),e.resegmentable&&999===this.handle.fromMaxLinks){var n=e.points.copy(),i=this.getResegmentingPoint();if(n.Gb(this.handle.segmentIndex+1,i),e.isOrthogonal&&n.Gb(this.handle.segmentIndex+1,i),e.points=n,e.Wb(),e.updateAdornments(),this.handle=this.findToolHandleAt(t.firstInput.documentPoint,this.name),null===this.handle)return void this.doDeactivate()}this.Fw=e.i(this.handle.segmentIndex),this.Yq=e.points.copy(),this.isActive=!0}}},ai.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},ai.prototype.stopTransaction=function(){var t=this.diagram,e=wn.prototype.stopTransaction.call(this);return e&&null!==t.undoManager.transactionToUndo&&t.undoManager.transactionToUndo.ak(),e},ai.prototype.doCancel=function(){var t=this.adornedLink;null!==t&&(t.points=this.Yq),this.stopTool()},ai.prototype.getResegmentingPoint=function(){return this.handle.ga(re)},ai.prototype.doMouseMove=function(){var t=this.diagram;this.isActive&&(t=this.computeReshape(t.lastInput.documentPoint),this.reshape(t))},ai.prototype.doMouseUp=function(){var t=this.diagram;if(this.isActive){var e=this.computeReshape(t.lastInput.documentPoint);if(this.reshape(e),null!==(e=this.adornedLink)&&e.resegmentable){var n=this.handle.segmentIndex,i=e.i(n-1),r=e.i(n),o=e.i(n+1);if(e.isOrthogonal){if(n>e.firstPickIndex+1&&n<e.lastPickIndex-1){var a=e.i(n-2);if(Math.abs(i.x-r.x)<this.resegmentingDistance&&Math.abs(i.y-r.y)<this.resegmentingDistance&&(si(this,a,i,r,o,!0)||si(this,a,i,r,o,!1))){var s=e.points.copy();si(this,a,i,r,o,!0)?(s.cd(n-2,new pt(a.x,(o.y+a.y)/2)),s.cd(n+1,new pt(o.x,(o.y+a.y)/2))):(s.cd(n-2,new pt((o.x+a.x)/2,a.y)),s.cd(n+1,new pt((o.x+a.x)/2,o.y))),s.mb(n),s.mb(n-1),e.points=s,e.Wb()}else a=e.i(n+2),Math.abs(r.x-o.x)<this.resegmentingDistance&&Math.abs(r.y-o.y)<this.resegmentingDistance&&(si(this,i,r,o,a,!0)||si(this,i,r,o,a,!1))&&(s=e.points.copy(),si(this,i,r,o,a,!0)?(s.cd(n-1,new pt(i.x,(i.y+a.y)/2)),s.cd(n+2,new pt(a.x,(i.y+a.y)/2))):(s.cd(n-1,new pt((i.x+a.x)/2,i.y)),s.cd(n+2,new pt((i.x+a.x)/2,a.y))),s.mb(n+1),s.mb(n),e.points=s,e.Wb())}}else a=pt.alloc(),_e.qh(i.x,i.y,o.x,o.y,r.x,r.y,a)&&a.Bf(r)<this.resegmentingDistance*this.resegmentingDistance&&((i=e.points.copy()).mb(n),e.points=i,e.Wb()),pt.free(a)}t.Ya(),this.transactionResult=this.name,t.R("LinkReshaped",this.adornedLink,this.Yq)}this.stopTool()},ai.prototype.reshape=function(t){var e=this.adornedLink;e.uh();var n=this.handle.segmentIndex,i=this.Ru(this.handle);if(e.isOrthogonal)if(n===e.firstPickIndex+1)n=e.firstPickIndex+1,i===ci?(e.L(n,e.i(n-1).x,t.y),e.L(n+1,e.i(n+2).x,t.y)):i===ui&&(e.L(n,t.x,e.i(n-1).y),e.L(n+1,t.x,e.i(n+2).y));else if(n===e.lastPickIndex-1)n=e.lastPickIndex-1,i===ci?(e.L(n-1,e.i(n-2).x,t.y),e.L(n,e.i(n+1).x,t.y)):i===ui&&(e.L(n-1,t.x,e.i(n-2).y),e.L(n,t.x,e.i(n+1).y));else{i=n;var r=e.i(i),o=e.i(i-1),a=e.i(i+1);_e.B(o.x,r.x)&&_e.B(r.y,a.y)?(_e.B(o.x,e.i(i-2).x)&&!_e.B(o.y,e.i(i-2).y)?(e.m(i,t.x,o.y),n++,i++):e.L(i-1,t.x,o.y),_e.B(a.y,e.i(i+2).y)&&!_e.B(a.x,e.i(i+2).x)?e.m(i+1,a.x,t.y):e.L(i+1,a.x,t.y)):_e.B(o.y,r.y)&&_e.B(r.x,a.x)?(_e.B(o.y,e.i(i-2).y)&&!_e.B(o.x,e.i(i-2).x)?(e.m(i,o.x,t.y),n++,i++):e.L(i-1,o.x,t.y),_e.B(a.x,e.i(i+2).x)&&!_e.B(a.y,e.i(i+2).y)?e.m(i+1,t.x,a.y):e.L(i+1,t.x,a.y)):_e.B(o.x,r.x)&&_e.B(r.x,a.x)?(_e.B(o.x,e.i(i-2).x)&&!_e.B(o.y,e.i(i-2).y)?(e.m(i,t.x,o.y),n++,i++):e.L(i-1,t.x,o.y),_e.B(a.x,e.i(i+2).x)&&!_e.B(a.y,e.i(i+2).y)?e.m(i+1,t.x,a.y):e.L(i+1,t.x,a.y)):_e.B(o.y,r.y)&&_e.B(r.y,a.y)&&(_e.B(o.y,e.i(i-2).y)&&!_e.B(o.x,e.i(i-2).x)?(e.m(i,o.x,t.y),n++,i++):e.L(i-1,o.x,t.y),_e.B(a.y,e.i(i+2).y)&&!_e.B(a.x,e.i(i+2).x)?e.m(i+1,a.x,t.y):e.L(i+1,a.x,t.y)),e.L(n,t.x,t.y)}else e.L(n,t.x,t.y),i=e.fromNode,r=e.fromPort,null!==i&&(null!==(o=i.findVisibleNode())&&o!==i&&(r=(i=o).port)),1===n&&e.computeSpot(!0,r).Mc()&&(o=r.ga(re,pt.alloc()),i=e.getLinkPointFromPoint(i,r,o,t,!0,pt.alloc()),e.L(0,i.x,i.y),pt.free(o),pt.free(i)),i=e.toNode,r=e.toPort,null!==i&&(null!==(o=i.findVisibleNode())&&o!==i&&(r=(i=o).port)),n===e.pointsCount-2&&e.computeSpot(!1,r).Mc()&&(n=r.ga(re,pt.alloc()),t=e.getLinkPointFromPoint(i,r,n,t,!1,pt.alloc()),e.L(e.pointsCount-1,t.x,t.y),pt.free(n),pt.free(t));e.zf()},ai.prototype.computeReshape=function(t){var e=this.adornedLink,n=this.handle.segmentIndex;switch(this.Ru(this.handle)){case hi:return t;case ci:return new pt(e.i(n).x,t.y);case ui:return new pt(t.x,e.i(n).y);default:return e.i(n)}},d.Object.defineProperties(ai.prototype,{handleArchetype:{get:function(){return this.o},set:function(t){this.o=t}},midHandleArchetype:{get:function(){return this.u},set:function(t){this.u=t}},handle:{get:function(){return this.j},set:function(t){if(null!==t&&!(t.part instanceof Yc))throw Error("new handle is not in an Adornment: "+t);this.j=t}},adornedLink:{get:function(){return this.Ts}},resegmentingDistance:{get:function(){return this.F},set:function(t){this.F=t}},originalPoint:{get:function(){return this.Fw}},originalPoints:{get:function(){return this.Yq}}}),ai.prototype.setReshapingBehavior=ai.prototype.om,ai.prototype.getReshapingBehavior=ai.prototype.Ru;var li=new G(ai,"None",0),ui=new G(ai,"Horizontal",1),ci=new G(ai,"Vertical",2),hi=new G(ai,"All",3);function di(){wn.call(this),this.name="Resizing",this.o=new Tt(1,1).freeze(),this.j=new Tt(9999,9999).freeze(),this.yg=new Tt(NaN,NaN).freeze(),this.V=!1,this.ia=!0,this.ue=null;var t=new pu;t.alignmentFocus=re,t.figure="Rectangle",t.desiredSize=kt,t.fill="lightblue",t.stroke="dodgerblue",t.strokeWidth=1,t.cursor="pointer",this.F=t,this.u=null,this.Xq=new pt,this.Dw=new Tt,this.Tn=new pt,this.rt=new Tt(0,0),this.qt=new Tt(1/0,1/0),this.pt=new Tt(1,1)}function fi(){wn.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new pt,this.ue=null;var t=new pu;t.figure="Ellipse",t.desiredSize=Ct,t.fill="lightblue",t.stroke="dodgerblue",t.strokeWidth=1,t.cursor="pointer",this.o=t,this.j=null,this.Cw=0,this.kr=new pt(NaN,NaN),this.u=0,this.F=50}function pi(){wn.call(this),this.name="ClickSelecting"}function gi(){wn.call(this),this.name="Action",this.pk=null}function mi(){wn.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new pt(0,0)}function vi(){wn.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var t=new Sc;t.layerName="Tool",t.selectable=!1;var e=new pu;e.name="SHAPE",e.figure="Rectangle",e.fill=null,e.stroke="magenta",t.add(e),this.j=t}function yi(){wn.call(this),this.name="Panning",this.Xt=new pt,this.xy=new pt,this.xg=!1;var t=this;this.Kw=function(){var e=t.diagram;null!==e&&e.removeEventListener(m.document,"scroll",t.Kw,!1),t.stopTool()}}function wi(){this.F=this.u=this.j=this.o=null}function bi(t,e,n){this.text=t,this.hx=e,this.visible=n}function xi(){wn.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new pt,this.jt=null,this.Et=!1;var t=this;this.tu=function(){t.stopTool()}}function Si(t){return t.preventDefault(),!1}function Pi(t){var e=t.diagram;if(t.isActive){var n=t.currentContextMenu;if(null!==n){var i=null;n instanceof wi||null!==(i=e.ic(e.lastInput.documentPoint,null,null))&&i.rg(n)&&t.standardMouseClick(null,null),t.maybeStopTool(i)}}else t.canStart()&&(ki(t,!0),t.isActive||t.stopTool())}function ki(t,e,n){if(void 0===n&&(n=null),!t.Et&&(t.Et=!0,e&&t.standardMouseSelect(),e=t.standardMouseClick(),t.Et=!1,!e)){if(t.isActive=!0,e=Ci,null===n&&(n=t.findObjectWithContextMenu()),null!==n){var i=n.contextMenu;null!==i?(t.currentObject=n instanceof Ia?n:null,t.showContextMenu(i,t.currentObject)):null!==e&&t.showContextMenu(e,t.currentObject)}else null!==e&&t.showContextMenu(e,null);t.currentContextMenu instanceof Yc&&!t.currentContextMenu.visible&&t.stopTool()}}ai.className="LinkReshapingTool",ai.None=li,ai.Horizontal=ui,ai.Vertical=ci,ai.All=hi,O("linkReshapingTool",(function(){return this.findTool("LinkReshaping")}),(function(t){this.gb("LinkReshaping",t,this.mouseDownTools)})),h(di,wn),di.prototype.updateAdornments=function(t){if(!(null===t||t instanceof xh)){if(t.isSelected&&!this.diagram.isReadOnly){var e=t.resizeObject,n=t.Pj(this.name);if(null!==e&&t.canResize()&&t.actualBounds.w()&&t.isVisible()&&e.actualBounds.w()&&e.Ed()&&(null!==n&&n.adornedObject===e||(n=this.makeAdornment(e)),null!==n))return e=e.li(),zc(t)&&this.updateResizeHandles(n,e),void t.bh(this.name,n)}t.Jf(this.name)}},di.prototype.makeAdornment=function(t){var e=t.part.resizeAdornmentTemplate;if(null===e){(e=new Yc).type=Ml.Spot,e.locationSpot=re;var n=new bh;n.isPanelMain=!0,e.add(n),e.add(this.makeHandle(t,te)),e.add(this.makeHandle(t,ne)),e.add(this.makeHandle(t,le)),e.add(this.makeHandle(t,ae)),e.add(this.makeHandle(t,Le)),e.add(this.makeHandle(t,Ne)),e.add(this.makeHandle(t,je)),e.add(this.makeHandle(t,Te))}else if(Xl(e),null===(e=e.copy()))return null;return e.adornedObject=t,e},di.prototype.makeHandle=function(t,e){return null===(t=this.handleArchetype)?null:((t=t.copy()).alignment=e,t)},di.prototype.updateResizeHandles=function(t,e){if(null!==t)if(!t.alignment.Xb()&&("pointer"===t.cursor||0<t.cursor.indexOf("resize")))t:{var n=t.alignment;if(n.Mc()&&(n=re),0>=n.x)e=0>=n.y?e+225:1<=n.y?e+135:e+180;else if(1<=n.x)0>=n.y?e+=315:1<=n.y&&(e+=45);else if(0>=n.y)e+=270;else{if(!(1<=n.y))break t;e+=90}0>e?e+=360:360<=e&&(e-=360),t.cursor=22.5>e?"e-resize":67.5>e?"se-resize":112.5>e?"s-resize":157.5>e?"sw-resize":202.5>e?"w-resize":247.5>e?"nw-resize":292.5>e?"n-resize":337.5>e?"ne-resize":"e-resize"}else if(t instanceof Ml)for(t=t.elements;t.next();)this.updateResizeHandles(t.value,e)},di.prototype.canStart=function(){if(!this.isEnabled)return!1;var t=this.diagram;return!(t.isReadOnly||!t.allowResize||!t.lastInput.left)&&null!==this.findToolHandleAt(t.firstInput.documentPoint,this.name)},di.prototype.doActivate=function(){var t=this.diagram;null===this.handle&&(this.handle=this.findToolHandleAt(t.firstInput.documentPoint,this.name)),null!==this.handle&&(this.adornedObject=this.handle.part.adornedObject,null!==this.adornedObject&&(t.isMouseCaptured=!0,t.animationManager.Cc(),this.Ea(this.name),this.Xq.set(this.adornedObject.ga(this.handle.alignment.gv())),this.Tn.set(this.adornedObject.part.location),this.Dw.set(this.adornedObject.desiredSize),this.pt=this.computeCellSize(),this.rt=this.computeMinSize(),this.qt=this.computeMaxSize(),this.isActive=!0))},di.prototype.doDeactivate=function(){var t=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=t.isMouseCaptured=!1},di.prototype.stopTransaction=function(){var t=this.diagram,e=wn.prototype.stopTransaction.call(this);return e&&null!==t.undoManager.transactionToUndo&&t.undoManager.transactionToUndo.ak(),e},di.prototype.doCancel=function(){null!==this.adornedObject&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},di.prototype.doMouseMove=function(){var t=this.diagram;if(this.isActive){var e=this.rt,n=this.qt,i=this.pt,r=this.adornedObject.qs(t.lastInput.documentPoint,pt.alloc()),o=this.computeReshape();e=this.computeResize(r,this.handle.alignment,e,n,i,o),this.resize(e),t.bd(),pt.free(r)}},di.prototype.doMouseUp=function(){var t=this.diagram;if(this.isActive){var e=this.rt,n=this.qt,i=this.pt,r=this.adornedObject.qs(t.lastInput.documentPoint,pt.alloc()),o=this.computeReshape();e=this.computeResize(r,this.handle.alignment,e,n,i,o),this.resize(e),pt.free(r),t.Ya(),this.transactionResult=this.name,t.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},di.prototype.resize=function(t){var e=this.diagram,n=this.adornedObject;if(null!==n){if(n.desiredSize=t.size,(t=n.part).Va(),n=n.ga(this.handle.alignment.gv()),t instanceof gh){var i=new K;if(i.add(t),!this.dragsMembers&&null===t.placeholder){var r=new Pa;r.dragsMembers=!1}e.moveParts(i,this.oppositePoint.copy().re(n),!0,r)}else t.location=t.location.copy().re(n).add(this.oppositePoint);e.bd()}},di.prototype.computeResize=function(t,e,n,i,r,o){e.Mc()&&(e=re);var a=this.adornedObject.naturalBounds,s=a.x,l=a.y,u=a.x+a.width,c=a.y+a.height,h=1;if(!o){h=a.width;var d=a.height;0>=h&&(h=1),0>=d&&(d=1),h=d/h}return d=pt.alloc(),_e.No(t.x,t.y,s,l,r.width,r.height,d),t=a.copy(),0>=e.x?0>=e.y?(t.x=Math.max(d.x,u-i.width),t.x=Math.min(t.x,u-n.width),t.width=Math.max(u-t.x,n.width),t.y=Math.max(d.y,c-i.height),t.y=Math.min(t.y,c-n.height),t.height=Math.max(c-t.y,n.height),o||(1<=t.height/t.width?(t.height=Math.max(Math.min(h*t.width,i.height),n.height),t.width=t.height/h):(t.width=Math.max(Math.min(t.height/h,i.width),n.width),t.height=h*t.width),t.x=u-t.width,t.y=c-t.height)):1<=e.y?(t.x=Math.max(d.x,u-i.width),t.x=Math.min(t.x,u-n.width),t.width=Math.max(u-t.x,n.width),t.height=Math.max(Math.min(d.y-l,i.height),n.height),o||(1<=t.height/t.width?(t.height=Math.max(Math.min(h*t.width,i.height),n.height),t.width=t.height/h):(t.width=Math.max(Math.min(t.height/h,i.width),n.width),t.height=h*t.width),t.x=u-t.width)):(t.x=Math.max(d.x,u-i.width),t.x=Math.min(t.x,u-n.width),t.width=u-t.x,o||(t.height=Math.max(Math.min(h*t.width,i.height),n.height),t.width=t.height/h,t.y=l+.5*(c-l-t.height))):1<=e.x?0>=e.y?(t.width=Math.max(Math.min(d.x-s,i.width),n.width),t.y=Math.max(d.y,c-i.height),t.y=Math.min(t.y,c-n.height),t.height=Math.max(c-t.y,n.height),o||(1<=t.height/t.width?(t.height=Math.max(Math.min(h*t.width,i.height),n.height),t.width=t.height/h):(t.width=Math.max(Math.min(t.height/h,i.width),n.width),t.height=h*t.width),t.y=c-t.height)):1<=e.y?(t.width=Math.max(Math.min(d.x-s,i.width),n.width),t.height=Math.max(Math.min(d.y-l,i.height),n.height),o||(1<=t.height/t.width?(t.height=Math.max(Math.min(h*t.width,i.height),n.height),t.width=t.height/h):(t.width=Math.max(Math.min(t.height/h,i.width),n.width),t.height=h*t.width))):(t.width=Math.max(Math.min(d.x-s,i.width),n.width),o||(t.height=Math.max(Math.min(h*t.width,i.height),n.height),t.width=t.height/h,t.y=l+.5*(c-l-t.height))):0>=e.y?(t.y=Math.max(d.y,c-i.height),t.y=Math.min(t.y,c-n.height),t.height=c-t.y,o||(t.width=Math.max(Math.min(t.height/h,i.width),n.width),t.height=h*t.width,t.x=s+.5*(u-s-t.width))):1<=e.y&&(t.height=Math.max(Math.min(d.y-l,i.height),n.height),o||(t.width=Math.max(Math.min(t.height/h,i.width),n.width),t.height=h*t.width,t.x=s+.5*(u-s-t.width))),pt.free(d),t},di.prototype.computeReshape=function(){var t=da;return this.adornedObject instanceof pu&&(t=vu(this.adornedObject)),!(t===fa||this.diagram.lastInput.shift)},di.prototype.computeMinSize=function(){var t=this.adornedObject.minSize.copy(),e=this.minSize;return!isNaN(e.width)&&e.width>t.width&&(t.width=e.width),!isNaN(e.height)&&e.height>t.height&&(t.height=e.height),t},di.prototype.computeMaxSize=function(){var t=this.adornedObject.maxSize.copy(),e=this.maxSize;return!isNaN(e.width)&&e.width<t.width&&(t.width=e.width),!isNaN(e.height)&&e.height<t.height&&(t.height=e.height),t},di.prototype.computeCellSize=function(){var t=new Tt(NaN,NaN),e=this.adornedObject.part;return null!==e&&(e=e.resizeCellSize,!isNaN(e.width)&&0<e.width&&(t.width=e.width),!isNaN(e.height)&&0<e.height&&(t.height=e.height)),e=this.cellSize,isNaN(t.width)&&!isNaN(e.width)&&0<e.width&&(t.width=e.width),isNaN(t.height)&&!isNaN(e.height)&&0<e.height&&(t.height=e.height),e=this.diagram,(isNaN(t.width)||isNaN(t.height))&&e&&(null!==(e=e.grid)&&e.visible&&this.isGridSnapEnabled&&(e=e.gridCellSize,isNaN(t.width)&&!isNaN(e.width)&&0<e.width&&(t.width=e.width),isNaN(t.height)&&!isNaN(e.height)&&0<e.height&&(t.height=e.height))),(isNaN(t.width)||0===t.width||1/0===t.width)&&(t.width=1),(isNaN(t.height)||0===t.height||1/0===t.height)&&(t.height=1),t},d.Object.defineProperties(di.prototype,{handleArchetype:{get:function(){return this.F},set:function(t){this.F=t}},handle:{get:function(){return this.u},set:function(t){if(null!==t&&!(t.part instanceof Yc))throw Error("new handle is not in an Adornment: "+t);this.u=t}},adornedObject:{get:function(){return this.ue},set:function(t){if(null!==t&&t.part instanceof Yc)throw Error("new handle must not be in an Adornment: "+t);this.ue=t}},minSize:{get:function(){return this.o},set:function(t){if(!this.o.D(t)){var e=t.width;isNaN(e)&&(e=0),t=t.height,isNaN(t)&&(t=0),this.o.h(e,t)}}},maxSize:{get:function(){return this.j},set:function(t){if(!this.j.D(t)){var e=t.width;isNaN(e)&&(e=1/0),t=t.height,isNaN(t)&&(t=1/0),this.j.h(e,t)}}},cellSize:{get:function(){return this.yg},set:function(t){this.yg.D(t)||this.yg.assign(t)}},isGridSnapEnabled:{get:function(){return this.V},set:function(t){this.V=t}},dragsMembers:{get:function(){return this.ia},set:function(t){this.ia=t}},oppositePoint:{get:function(){return this.Xq},set:function(t){this.Xq.D(t)||this.Xq.assign(t)}},originalDesiredSize:{get:function(){return this.Dw}},originalLocation:{get:function(){return this.Tn}}}),di.className="ResizingTool",O("resizingTool",(function(){return this.findTool("Resizing")}),(function(t){this.gb("Resizing",t,this.mouseDownTools)})),h(fi,wn),fi.prototype.updateAdornments=function(t){if(null!==t){if(t.ph()){var e=t.rotateObject;if(e===t||e===t.path||e.isPanelMain)return}if(t.isSelected&&!this.diagram.isReadOnly&&(null!==(e=t.rotateObject)&&t.canRotate()&&t.actualBounds.w()&&t.isVisible()&&e.actualBounds.w()&&e.Ed())){var n=t.Pj(this.name);if(null!==n&&n.adornedObject===e||(n=this.makeAdornment(e)),null!==n)return n.angle=e.li(),null===n.placeholder&&(n.location=this.computeAdornmentLocation(e)),void t.bh(this.name,n)}t.Jf(this.name)}},fi.prototype.makeAdornment=function(t){var e=t.part.rotateAdornmentTemplate;if(null===e){(e=new Yc).type=Ml.Position,e.locationSpot=re;var n=this.handleArchetype;null!==n&&e.add(n.copy())}else if(Xl(e),null===(e=e.copy()))return null;return e.adornedObject=t,e},fi.prototype.canStart=function(){if(!this.isEnabled)return!1;var t=this.diagram;return!(t.isReadOnly||!t.allowRotate||!t.lastInput.left)&&null!==this.findToolHandleAt(t.firstInput.documentPoint,this.name)},fi.prototype.doActivate=function(){var t=this.diagram;if(null===this.adornedObject){if(null===this.handle&&(this.handle=this.findToolHandleAt(t.firstInput.documentPoint,this.name)),null===this.handle)return;this.adornedObject=this.handle.part.adornedObject}null!==this.adornedObject&&(t.isMouseCaptured=!0,t.delaysLayout=!0,this.Ea(this.name),this.Cw=this.adornedObject.angle,this.kr=this.computeRotationPoint(this.adornedObject),this.Tn=this.adornedObject.part.location.copy(),this.isActive=!0)},fi.prototype.computeRotationPoint=function(t){var e=t.part,n=e.locationObject;return e.rotationSpot.sb()?t.ga(e.rotationSpot):t===e||t===n?n.ga(e.locationSpot):t.ga(re)},fi.prototype.computeAdornmentLocation=function(t){var e=this.rotationPoint;e.w()||(e=this.computeRotationPoint(t)),e=t.qs(e);var n=this.handleAngle;0>n?n+=360:360<=n&&(n-=360),n=Math.round(45*Math.round(n/45));var i=this.handleDistance;return 0===n?e.x=t.naturalBounds.width+i:45===n?(e.x=t.naturalBounds.width+i,e.y=t.naturalBounds.height+i):90===n?e.y=t.naturalBounds.height+i:135===n?(e.x=-i,e.y=t.naturalBounds.height+i):180===n?e.x=-i:225===n?(e.x=-i,e.y=-i):270===n?e.y=-i:315===n&&(e.x=t.naturalBounds.width+i,e.y=-i),t.ga(e)},fi.prototype.doDeactivate=function(){var t=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new pt(NaN,NaN),this.isActive=t.isMouseCaptured=!1},fi.prototype.stopTransaction=function(){var t=this.diagram,e=wn.prototype.stopTransaction.call(this);return e&&null!==t.undoManager.transactionToUndo&&t.undoManager.transactionToUndo.ak(),e},fi.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},fi.prototype.doMouseMove=function(){var t=this.diagram;this.isActive&&(t=this.computeRotate(t.lastInput.documentPoint),this.rotate(t))},fi.prototype.doMouseUp=function(){var t=this.diagram;if(this.isActive){t.delaysLayout=!1;var e=this.computeRotate(t.lastInput.documentPoint);this.rotate(e),t.Ya(),this.transactionResult=this.name,t.R("PartRotated",this.adornedObject,this.originalAngle)}this.stopTool()},fi.prototype.rotate=function(t){var e=this.adornedObject;if(null!==e){e.angle=t,(e=e.part).Va();var n=e.locationObject,i=e.rotateObject;(n===i||n.rg(i))&&(n=this.Tn.copy(),e.location=n.re(this.rotationPoint).rotate(t-this.originalAngle).add(this.rotationPoint)),this.diagram.bd()}},fi.prototype.computeRotate=function(t){t=this.rotationPoint.ab(t)-this.handleAngle;var e=this.adornedObject.panel;null!==e&&(t-=e.li()),360<=t?t-=360:0>t&&(t+=360),e=Math.min(Math.abs(this.snapAngleMultiple),180);var n=Math.min(Math.abs(this.snapAngleEpsilon),e/2);return!this.diagram.lastInput.shift&&0<e&&0<n&&(t%e<n?t=Math.floor(t/e)*e:t%e>e-n&&(t=(Math.floor(t/e)+1)*e)),360<=t?t-=360:0>t&&(t+=360),t},d.Object.defineProperties(fi.prototype,{handleArchetype:{get:function(){return this.o},set:function(t){this.o=t}},handle:{get:function(){return this.j},set:function(t){if(null!==t&&!(t.part instanceof Yc))throw Error("new handle is not in an Adornment: "+t);this.j=t}},adornedObject:{get:function(){return this.ue},set:function(t){if(null!==t&&t.part instanceof Yc)throw Error("new handle must not be in an Adornment: "+t);this.ue=t}},snapAngleMultiple:{get:function(){return this.ia},set:function(t){this.ia=t}},snapAngleEpsilon:{get:function(){return this.V},set:function(t){this.V=t}},originalAngle:{get:function(){return this.Cw}},rotationPoint:{get:function(){return this.kr},set:function(t){this.kr=t.copy()}},handleAngle:{get:function(){return this.u},set:function(t){this.u=t}},handleDistance:{get:function(){return this.F},set:function(t){this.F=t}}}),fi.className="RotatingTool",O("rotatingTool",(function(){return this.findTool("Rotating")}),(function(t){this.gb("Rotating",t,this.mouseDownTools)})),h(pi,wn),pi.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},pi.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},pi.className="ClickSelectingTool",h(gi,wn),gi.prototype.canStart=function(){if(!this.isEnabled)return!1;var t=this.diagram,e=t.lastInput,n=t.ic(e.documentPoint,(function(t){for(;null!==t.panel&&!t.isActionable;)t=t.panel;return t}));return null!==n&&(!!n.isActionable&&(this.pk=n,t.Ck=t.ic(e.documentPoint,null,null),!0))},gi.prototype.doMouseDown=function(){if(this.isActive){var t=this.diagram.lastInput,e=this.pk;null!==e&&(t.targetObject=e,null!==e.actionDown&&e.actionDown(t,e))}else this.canStart()&&this.doActivate()},gi.prototype.doMouseMove=function(){if(this.isActive){var t=this.diagram.lastInput,e=this.pk;null!==e&&(t.targetObject=e,null!==e.actionMove&&e.actionMove(t,e))}},gi.prototype.doMouseUp=function(){if(this.isActive){var t=this.diagram.lastInput,e=this.pk;if(null===e)return;t.targetObject=e,null!==e.actionUp&&e.actionUp(t,e),this.standardMouseClick((function(t){for(;null!==t.panel&&(!t.isActionable||t!==e);)t=t.panel;return t}),(function(t){return t===e}))}this.stopTool()},gi.prototype.doCancel=function(){var t=this.diagram.lastInput,e=this.pk;null!==e&&(t.targetObject=e,null!==e.actionCancel&&e.actionCancel(t,e),this.stopTool())},gi.prototype.doStop=function(){this.pk=null},gi.className="ActionTool",h(mi,wn),mi.prototype.canStart=function(){if(!this.isEnabled||null===this.archetypeNodeData)return!1;var t=this.diagram;if(t.isReadOnly||t.isModelReadOnly||!t.allowInsert||!t.lastInput.left||this.isBeyondDragSize())return!1;if(this.isDoubleClick){if(1===t.lastInput.clickCount&&(this.mw=t.lastInput.viewPoint.copy()),2!==t.lastInput.clickCount||this.isBeyondDragSize(this.mw))return!1}else if(1!==t.lastInput.clickCount)return!1;return t.currentTool===this||null===t.Ol(t.lastInput.documentPoint,!0)},mi.prototype.doMouseUp=function(){var t=this.diagram;this.isActive&&this.insertPart(t.lastInput.documentPoint),this.stopTool()},mi.prototype.insertPart=function(t){var e=this.diagram,n=this.archetypeNodeData;if(null===n)return null;var i=null;try{if(e.R("ChangingSelection",e.selection),this.Ea(this.name),n instanceof Sc)n.Zc()&&(Xl(n),null!==(i=n.copy())&&e.add(i));else if(null!==n){var r=e.model.copyNodeData(n);C(r)&&(e.model.xf(r),i=e.Lc(r))}if(null!==i){var o=pt.allocAt(t.x,t.y);this.isGridSnapEnabled&&co(this.diagram,i,t,o),i.location=o,e.allowSelect&&(e.clearSelection(!0),i.isSelected=!0),pt.free(o)}e.Ya(),this.transactionResult=this.name,e.R("PartCreated",i)}finally{this.stopTransaction(),e.R("ChangedSelection",e.selection)}return i},d.Object.defineProperties(mi.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(t){this.Ri=t}},isDoubleClick:{get:function(){return this.o},set:function(t){this.o=t}},isGridSnapEnabled:{get:function(){return this.j},set:function(t){this.j=t}}}),mi.className="ClickCreatingTool",h(vi,wn),vi.prototype.canStart=function(){if(!this.isEnabled)return!1;var t=this.diagram;if(!t.allowSelect)return!1;var e=t.lastInput;return!(!e.left||t.currentTool!==this&&(!this.isBeyondDragSize()||e.timestamp-t.firstInput.timestamp<this.delay||null!==t.Ol(e.documentPoint,!0)))},vi.prototype.doActivate=function(){var t=this.diagram;this.isActive=!0,t.isMouseCaptured=!0,t.skipsUndoManager=!0,t.add(this.box),this.doMouseMove()},vi.prototype.doDeactivate=function(){var t=this.diagram;t.ug(),t.remove(this.box),t.skipsUndoManager=!1,this.isActive=t.isMouseCaptured=!1},vi.prototype.doMouseMove=function(){var t=this.diagram;if(this.isActive&&null!==this.box){var e=this.computeBoxBounds(),n=this.box.fb("SHAPE");null===n&&(n=this.box.Pb());var i=Tt.alloc().h(e.width,e.height);n.desiredSize=i,this.box.mm(e.x,e.y,!1),Tt.free(i),(t.allowHorizontalScroll||t.allowVerticalScroll)&&t.gs(t.lastInput.viewPoint)}},vi.prototype.doMouseUp=function(){if(this.isActive){var t=this.diagram;t.remove(this.box);try{t.currentCursor="wait",t.R("ChangingSelection",t.selection),this.selectInRect(this.computeBoxBounds()),t.R("ChangedSelection",t.selection)}finally{t.currentCursor=""}}this.stopTool()},vi.prototype.computeBoxBounds=function(){var t=this.diagram;return new Bt(t.firstInput.documentPoint,t.lastInput.documentPoint)},vi.prototype.selectInRect=function(t){var e=this.diagram,n=e.lastInput;if(t=e.ux(t,this.isPartialInclusion),F?n.meta:n.control)if(n.shift)for(t=t.iterator;t.next();)(e=t.value).isSelected&&(e.isSelected=!1);else for(t=t.iterator;t.next();)(e=t.value).isSelected=!e.isSelected;else if(n.shift)for(t=t.iterator;t.next();)(e=t.value).isSelected||(e.isSelected=!0);else{for(n=new K,e=e.selection.iterator;e.next();){var i=e.value;t.contains(i)||n.add(i)}for(e=n.iterator;e.next();)e.value.isSelected=!1;for(t=t.iterator;t.next();)(e=t.value).isSelected||(e.isSelected=!0)}},d.Object.defineProperties(vi.prototype,{delay:{get:function(){return this.Ik},set:function(t){this.Ik=t}},isPartialInclusion:{get:function(){return this.o},set:function(t){this.o=t}},box:{get:function(){return this.j},set:function(t){this.j=t}}}),vi.className="DragSelectingTool",h(yi,wn),yi.prototype.canStart=function(){if(!this.isEnabled)return!1;var t=this.diagram;return!(!t.allowHorizontalScroll&&!t.allowVerticalScroll||!t.lastInput.left||t.currentTool!==this&&!this.isBeyondDragSize())},yi.prototype.doActivate=function(){var t=this.diagram;this.xg?(t.lastInput.bubbles=!0,t.addEventListener(m.document,"scroll",this.Kw,!1)):(t.currentCursor="move",t.isMouseCaptured=!0,this.Xt.assign(t.position)),this.isActive=!0},yi.prototype.doDeactivate=function(){var t=this.diagram;t.currentCursor="",this.isActive=t.isMouseCaptured=!1},yi.prototype.doCancel=function(){var t=this.diagram;t.position=this.Xt,t.isMouseCaptured=!1,this.stopTool()},yi.prototype.doMouseMove=function(){this.move()},yi.prototype.doMouseUp=function(){this.move(),this.stopTool()},yi.prototype.move=function(){var t=this.diagram;if(this.isActive&&t)if(this.xg)t.lastInput.bubbles=!0;else{var e=t.position,n=t.firstInput.documentPoint,i=t.lastInput.documentPoint,r=e.x+n.x-i.x;n=e.y+n.y-i.y,t.allowHorizontalScroll||(r=e.x),t.allowVerticalScroll||(n=e.y),t.position=this.xy.h(r,n)}},d.Object.defineProperties(yi.prototype,{bubbles:{get:function(){return this.xg},set:function(t){this.xg=t}},originalPosition:{get:function(){return this.Xt}}}),yi.className="PanningTool",O("clickCreatingTool",(function(){return this.findTool("ClickCreating")}),(function(t){this.gb("ClickCreating",t,this.mouseUpTools)})),O("clickSelectingTool",(function(){return this.findTool("ClickSelecting")}),(function(t){this.gb("ClickSelecting",t,this.mouseUpTools)})),O("panningTool",(function(){return this.findTool("Panning")}),(function(t){this.gb("Panning",t,this.mouseMoveTools)})),O("dragSelectingTool",(function(){return this.findTool("DragSelecting")}),(function(t){this.gb("DragSelecting",t,this.mouseMoveTools)})),O("actionTool",(function(){return this.findTool("Action")}),(function(t){this.gb("Action",t,this.mouseDownTools)})),d.Object.defineProperties(wi.prototype,{mainElement:{get:function(){return this.u},set:function(t){this.u=t}},show:{get:function(){return this.o},set:function(t){this.o!==t&&(this.o=t)}},hide:{get:function(){return this.j},set:function(t){this.j!==t&&(this.j=t)}},valueFunction:{get:function(){return this.F},set:function(t){this.F=t}}}),wi.className="HTMLInfo",bi.className="ContextMenuButtonInfo",h(xi,wn),xi.prototype.canStart=function(){if(!this.isEnabled)return!1;var t=this.diagram;return!(this.isBeyondDragSize()||!t.lastInput.right||1<t.lastInput.clickCount)&&!!(t.lastInput.isTouchEvent&&null!==this.defaultTouchContextMenu||null!==this.findObjectWithContextMenu())},xi.prototype.doStart=function(){this.yw.set(this.diagram.firstInput.documentPoint)},xi.prototype.doStop=function(){this.hideContextMenu(),this.currentObject=null},xi.prototype.findObjectWithContextMenu=function(t){void 0===t&&(t=null);var e=this.diagram,n=e.lastInput,i=null;if(t instanceof Mr||(i=t instanceof Ia?t:e.ic(n.documentPoint,null,(function(t){return!t.layer.isTemporary}))),null!==i){for(t=i;null!==t;){if(null!==t.contextMenu)return t;t=t.panel}if(e.lastInput.isTouchEvent&&this.defaultTouchContextMenu)return i.part}else if(null!==e.contextMenu)return e;return null},xi.prototype.doActivate=function(){},xi.prototype.doMouseDown=function(){if(wn.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof Yc){var t=this.diagram.toolManager.findTool("Action");null!==t&&t.canStart()&&(t.doActivate(),t.doMouseDown(),t.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&Pi(this)},xi.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof Yc){var t=this.diagram.toolManager.findTool("Action");null!==t&&t.canStart()&&(t.doActivate(),t.doCancel(),t.doDeactivate())}Pi(this)},xi.prototype.maybeStopTool=function(){this.stopTool(),this.canStart()&&(this.diagram.currentTool=this,this.doMouseUp())},xi.prototype.doMouseMove=function(){var t=this.diagram.toolManager.findTool("Action");null!==t&&t.doMouseMove(),this.isActive&&this.diagram.toolManager.doMouseMove()},xi.prototype.showContextMenu=function(t,e){var n=this.diagram;if(t!==this.currentContextMenu&&this.hideContextMenu(),t instanceof Yc){t.layerName="Tool",t.selectable=!1,t.scale=1/n.scale,t.category=this.name,null!==t.placeholder&&(t.placeholder.scale=n.scale);var i=t.diagram;null!==i&&i!==n&&i.remove(t),n.add(t),null!==e?t.adornedObject=e:t.data=n.model,t.Va(),this.positionContextMenu(t,e)}else t instanceof wi&&t.show(e,n,this);this.currentContextMenu=t},xi.prototype.positionContextMenu=function(t){if(null===t.placeholder){var e=this.diagram,n=e.lastInput.documentPoint.copy(),i=t.measuredBounds,r=e.viewportBounds;e.lastInput.isTouchEvent&&(n.x-=i.width),n.x+i.width>r.right&&(n.x-=i.width+5/e.scale),n.x<r.x&&(n.x=r.x),n.y+i.height>r.bottom&&(n.y-=i.height+5/e.scale),n.y<r.y&&(n.y=r.y),t.position=n}},xi.prototype.hideContextMenu=function(){var t=this.diagram,e=this.currentContextMenu;null!==e&&(e instanceof Yc?(t.remove(e),null!==this.ht&&this.ht.Jf(e.category),e.data=null,e.adornedObject=null):e instanceof wi&&(null!==e.hide?e.hide(t,this):null!==e.mainElement&&(e.mainElement.style.display="none")),this.currentContextMenu=null,this.standardMouseOver())},xi.prototype.showDefaultContextMenu=function(){var t=this.diagram;null===this.jt&&(this.jt=function(t){var e=new K;return e.add(new bi("Copy",(function(t){t.commandHandler.copySelection()}),(function(t){return t.commandHandler.canCopySelection()}))),e.add(new bi("Cut",(function(t){t.commandHandler.cutSelection()}),(function(t){return t.commandHandler.canCutSelection()}))),e.add(new bi("Delete",(function(t){t.commandHandler.deleteSelection()}),(function(t){return t.commandHandler.canDeleteSelection()}))),e.add(new bi("Paste",(function(e){e.commandHandler.pasteSelection(t.mouseDownPoint)}),(function(e){return e.commandHandler.canPasteSelection(t.mouseDownPoint)}))),e.add(new bi("Select All",(function(t){t.commandHandler.selectAll()}),(function(t){return t.commandHandler.canSelectAll()}))),e.add(new bi("Undo",(function(t){t.commandHandler.undo()}),(function(t){return t.commandHandler.canUndo()}))),e.add(new bi("Redo",(function(t){t.commandHandler.redo()}),(function(t){return t.commandHandler.canRedo()}))),e.add(new bi("Scroll To Part",(function(t){t.commandHandler.scrollToPart()}),(function(t){return t.commandHandler.canScrollToPart()}))),e.add(new bi("Zoom To Fit",(function(t){t.commandHandler.zoomToFit()}),(function(t){return t.commandHandler.canZoomToFit()}))),e.add(new bi("Reset Zoom",(function(t){t.commandHandler.resetZoom()}),(function(t){return t.commandHandler.canResetZoom()}))),e.add(new bi("Group Selection",(function(t){t.commandHandler.groupSelection()}),(function(t){return t.commandHandler.canGroupSelection()}))),e.add(new bi("Ungroup Selection",(function(t){t.commandHandler.ungroupSelection()}),(function(t){return t.commandHandler.canUngroupSelection()}))),e.add(new bi("Edit Text",(function(t){t.commandHandler.editTextBlock()}),(function(t){return t.commandHandler.canEditTextBlock()}))),e}(this)),Ei.innerHTML="",Mi.addEventListener("pointerdown",this.tu,!1);var e=this,n=b("ul");n.className="goCXul",Ei.appendChild(n),n.innerHTML="";for(var i=this.jt.iterator;i.next();){var r=i.value,o=r.visible;if("function"==typeof r.hx&&("function"!=typeof o||o(t))){(o=b("li")).className="goCXli";var a=b("a");a.className="goCXa",a.href="#",a.ky=r.hx,a.addEventListener("pointerdown",(function(n){return this.ky(t),e.stopTool(),n.preventDefault(),!1}),!1),a.textContent=r.text,o.appendChild(a),n.appendChild(o)}}Ei.style.display="block",Mi.style.display="block"},xi.prototype.hideDefaultContextMenu=function(){if(null!==this.currentContextMenu&&this.currentContextMenu===Ci){Ei.style.display="none",Mi.style.display="none";var t=this.diagram;null!==t&&t.removeEventListener(Mi,"pointerdown",this.tu,!1),this.currentContextMenu=null}},d.Object.defineProperties(xi.prototype,{currentContextMenu:{get:function(){return this.j},set:function(t){this.j=t,this.ht=t instanceof Yc?t.adornedPart:null}},defaultTouchContextMenu:{get:function(){return!1===Ai&&null===Ci&&Go&&function(t){var e=new wi;e.show=function(t,e,n){n.showDefaultContextMenu()},e.hide=function(t,e){e.hideDefaultContextMenu()},Ci=e,t.tu=function(){t.stopTool()},e=b("div");var n=b("div");e.style.cssText="top: 0px;z-index:10002;position: fixed;display: none;text-align: center;left: 25%;width: 50%;background-color: #F5F5F5;padding: 16px;border: 16px solid #444;border-radius: 10px;margin-top: 10px",n.style.cssText="z-index:10001;position: fixed;display: none;top: 0;left: 0;width: 100%;height: 100%;background-color: black;opacity: 0.8;";var i=b("style");m.document.getElementsByTagName("head")[0].appendChild(i),i.sheet.insertRule(".goCXul { list-style: none; }",0),i.sheet.insertRule(".goCXli {font:700 1.5em Helvetica, Arial, sans-serif;position: relative;min-width: 60px; }",0),i.sheet.insertRule(".goCXa {color: #444;display: inline-block;padding: 4px;text-decoration: none;margin: 2px;border: 1px solid gray;border-radius: 10px; }",0),null!==(i=t.diagram)&&(i.addEventListener(e,"contextmenu",Si,!1),i.addEventListener(e,"selectstart",Si,!1),i.addEventListener(n,"contextmenu",Si,!1)),e.className="goCXforeground",n.className="goCXbackground",m.document.body&&(m.document.body.appendChild(e),m.document.body.appendChild(n)),Ei=e,Mi=n,Ai=!0}(this),Ci},set:function(t){null===t&&(Ai=!0),Ci=t}},currentObject:{get:function(){return this.o},set:function(t){this.o=t}},mouseDownPoint:{get:function(){return this.yw}}});var Ci=null,Ai=!1,Mi=null,Ei=null;function Li(){wn.call(this),this.name="TextEditing",this.Zh=new Au,this.ia=null,this.V=Di,this.vj=null,this.qa=Fi,this.u=1,this.F=!0,this.o=null,this.j=new wi,this.kt=null,function(t,e){if(Go){var n=b("textarea");t.kt=n,n.addEventListener("input",(function(){if(null!==t.textBlock){var e=t.Lx(this.value);this.style.width=20+e.measuredBounds.width*this.wA+"px",this.rows=e.lineCount}}),!1),n.addEventListener("keydown",(function(e){if(!e.isComposing&&null!==t.textBlock){var n=e.key;"Enter"===n?(!1===t.textBlock.isMultiline&&e.preventDefault(),t.acceptText(Bi)):"Tab"===n?(t.acceptText(Ii),e.preventDefault()):"Escape"===n&&(t.doCancel(),null!==t.diagram&&t.diagram.doFocus())}}),!1),n.addEventListener("focus",(function(){if(null!==t.currentTextEditor&&t.state!==Fi){var e=t.kt;t.qa===zi&&(t.qa=Gi),"function"==typeof e.select&&t.selectsTextOnActivate&&(e.select(),e.setSelectionRange(0,9999))}}),!1),n.addEventListener("blur",(function(){if(null!==t.currentTextEditor&&t.state!==Fi){var e=t.kt;"function"==typeof e.focus&&e.focus(),"function"==typeof e.select&&t.selectsTextOnActivate&&(e.select(),e.setSelectionRange(0,9999))}}),!1),e.valueFunction=function(){return n.value},e.mainElement=n,e.show=function(t,e,i){if(t instanceof Au&&i instanceof Li)if(i.state===Hi)n.style.border="3px solid red",n.focus();else{var r=t.ga(re),o=e.position,a=e.scale,s=t.Df()*a;s<i.minimumEditorScale&&(s=i.minimumEditorScale);var l=t.naturalBounds.width*s+6,u=t.naturalBounds.height*s+2,c=(r.x-o.x)*a;r=(r.y-o.y)*a,o=t.verticalAlignment,a=(t.lineHeight+t.spacingAbove+t.spacingBelow)*t.lineCount*s,u=o.y*u-o.y*a+o.offsetY-(.5*u-.5*a)-a/2,n.value=t.text,e.div.style.font=t.font,n.style.position="absolute",n.style.zIndex="100",n.style.font="inherit",n.style.fontSize=100*s+"%",n.style.lineHeight="normal",n.style.width=l+"px",n.style.left=(c-l/2|0)-1+"px",n.style.top=(r+u|0)-1+"px",n.style.textAlign=t.textAlign,n.style.margin="0",n.style.padding="1px",n.style.border="0",n.style.outline="none",n.style.whiteSpace="pre-wrap",n.style.overflow="hidden",n.rows=t.lineCount,n.wA=s,n.className="goTXarea",e.div.appendChild(n),n.focus(),i.selectsTextOnActivate&&(n.select(),n.setSelectionRange(0,9999))}},e.hide=function(t){t.div.removeChild(n)}}}(this,this.j)}function Ti(t){var e=t.textBlock,n=t.diagram,i=t.currentTextEditor;if(null!==e&&null!==i){var r=e.text,o="";null!==i.valueFunction&&(o=i.valueFunction()),t.isValidText(e,r,o)?(t.Ea(t.name),t.qa=_i,t.transactionResult=t.name,e.text=o,t.doSuccess(r,o),null!==n&&n.R("TextEdited",e,r),t.stopTransaction(),t.stopTool(),null!==n&&n.doFocus()):(t.qa=Hi,t.doError(r,o))}}xi.className="ContextMenuTool",O("contextMenuTool",(function(){return this.findTool("ContextMenu")}),(function(t){this.gb("ContextMenu",t,this.mouseUpTools)})),h(Li,wn),Li.prototype.canStart=function(){if(!this.isEnabled)return!1;var t=this.diagram;if(null===t||t.isReadOnly||Zi&&Zi!==this&&(Zi.acceptText(ji),Zi&&Zi!==this)||!t.lastInput.left||this.isBeyondDragSize())return!1;var e=t.ic(t.lastInput.documentPoint);return!!(null!==e&&e instanceof Au&&e.editable&&e.part.canEdit())&&!(null===(e=e.part)||this.starting===Di&&!e.isSelected||this.starting===Ri&&2>t.lastInput.clickCount)},Li.prototype.doStart=function(){Zi=this,null!==this.textBlock&&this.doActivate()},Li.prototype.doActivate=function(){if(!this.isActive){var t=this.diagram;if(null!==t){var e=this.textBlock;if(null===e&&(e=t.ic(t.lastInput.documentPoint)),null!==e&&e instanceof Au&&(this.textBlock=e,null!==e.part)){t.animationManager.Cc(),this.isActive=!0,this.qa=zi;var n=this.defaultTextEditor;null!==e.textEditor&&(n=e.textEditor),this.Zh=this.textBlock.copy();var i=new Bt(this.textBlock.ga(te),this.textBlock.ga(le));t.tv(i),n.show(e,t,this),this.currentTextEditor=n}}}},Li.prototype.doCancel=function(){this.stopTool()},Li.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},Li.prototype.doMouseDown=function(){this.isActive&&this.acceptText(ji)},Li.prototype.acceptText=function(t){switch(t){case ji:this.qa===_i?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():this.qa!==zi&&this.qa!==Hi&&this.qa!==Gi||(this.qa=Ui,Ti(this));break;case Ni:case Bi:case Ii:Bi===t&&!0===this.textBlock.isMultiline||this.qa!==zi&&this.qa!==Hi&&this.qa!==Gi||(this.qa=Ui,Ti(this))}},Li.prototype.doError=function(t,e){var n=this.textBlock;null!==n.errorFunction&&n.errorFunction(this,t,e),(t=this.currentTextEditor)&&t.show(n,this.diagram,this)},Li.prototype.doSuccess=function(t,e){var n=this.textBlock;null!==n.textEdited&&n.textEdited(n,t,e)},Li.prototype.doDeactivate=function(){var t=this.diagram;null!==t&&(this.qa=Fi,null!==this.currentTextEditor&&this.currentTextEditor.hide(t,this),this.textBlock=null,this.isActive=!1)},Li.prototype.doStop=function(){Zi=null},Li.prototype.isValidText=function(t,e,n){var i=this.textValidation;return!(null!==i&&!i(t,e,n))&&!(null!==(i=t.textValidation)&&!i(t,e,n))},Li.prototype.Lx=function(t){var e=this.Zh;return e.text=t,e.measure(this.textBlock.Ih,1/0),e},d.Object.defineProperties(Li.prototype,{textBlock:{get:function(){return this.ia},set:function(t){this.ia=t}},currentTextEditor:{get:function(){return this.o},set:function(t){this.o=t}},defaultTextEditor:{get:function(){return this.j},set:function(t){this.j=t}},starting:{get:function(){return this.V},set:function(t){this.V=t}},textValidation:{get:function(){return this.vj},set:function(t){this.vj=t}},minimumEditorScale:{get:function(){return this.u},set:function(t){this.u=t}},selectsTextOnActivate:{get:function(){return this.F},set:function(t){this.F=t}},state:{get:function(){return this.qa},set:function(t){this.qa!==t&&(this.qa=t)}}}),Li.prototype.measureTemporaryTextBlock=Li.prototype.Lx;var Ni=new G(Li,"LostFocus",0),ji=new G(Li,"MouseDown",1),Ii=new G(Li,"Tab",2),Bi=new G(Li,"Enter",3),Oi=new G(Li,"SingleClick",0),Di=new G(Li,"SingleClickSelected",1),Ri=new G(Li,"DoubleClick",2),Fi=new G(Li,"StateNone",0),zi=new G(Li,"StateActive",1),Gi=new G(Li,"StateEditing",2),Ui=new G(Li,"StateValidating",3),Hi=new G(Li,"StateInvalid",4),_i=new G(Li,"StateValidated",5),Zi=null;function Wi(t){rr||(nr(),rr=!0),this.H=wr,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=or,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new J,this.ce=new lr,this.ce.Yd=this,this.Ei=new J,this.pu=new J,this.Sr=new J,this.pr=new J,t&&Object.assign(this,t)}function Vi(t,e){t.Jd&&t.canStart(e)&&(t.Zd.add(e),t.defaultAnimation.isAnimating&&t.Cc(),Jr(t.H),t.zb=!0)}function Yi(t){if(t.Jd&&t.zb){var e=t.ce,n=t.H,i=t.Zd.contains("Model");i&&(t.Ok=!0,t.Pk===or?(e.isViewportUnconstrained=!0,e.vc.clear(),e.add(n,"position",n.position.copy().offset(0,-200),n.position),e.add(n,"opacity",0,1)):t.Pk===sr&&e.vc.clear(),t.Qw=!(t.Pk!==ar||!n.du.D(n.pa)),n.R("InitialAnimationStarting",t)),i&&!t.Gh||0===e.vc.count?(t.Zd.clear(),t.zb=!1,e.vc.clear(),ur(e,n),t.Ok=!1,n.N()):(t.Zd.clear(),n.kg=!1,i=e.vc.get(n),n.autoScale!==_o&&null!==i&&(delete i.start.scale,delete i.end.scale),m.requestAnimationFrame((function(){!1===t.zb||e.bc||(n.Gf("temporaryPixelRatio")&&jr(n),Br(n),t.zb=!1,e.start(),e.bc&&(Ki(t),n.Ya(),fr(e,0),Qr(n,!0),Qi(t),n.R("AnimationStarting",t)))})))}}function Xi(t){return t.Zd.contains("Trigger")&&1===t.Zd.count}function qi(t,e,n,i){t.isTicking||Xi(t)||e instanceof xh&&(null!==e.fromNode||null!==e.toNode)||t.ce.add(e,"position",n,i,!1)}function Ki(t){if(!t.vq){var e=t.H;t.Ow=e.skipsUndoManager,t.cw=e.skipsModelSourceBindings,e.skipsUndoManager=!0,e.skipsModelSourceBindings=!0,t.vq=!0}}function Qi(t){var e=t.H;e.skipsUndoManager=t.Ow,e.skipsModelSourceBindings=t.cw,t.vq=!1}function Ji(t,e,n){!t.zb||e.D(n)||Xi(t)||(t.H.pi||(e=n.copy()),cr(t.ce,t.H,"position",e,n))}function $i(t,e,n){e.fd&&(e.Tg=n,t.pr.add(e))}function tr(t,e){for(e=e.findLinksConnected();e.next();){var n=e.value;n.fd&&(n.Tg=n.points.copy(),t.pr.add(n))}}function er(t,e,n,i,r){null===t&&(t=[0,0,0,0]),null===e&&(e=[0,0,0,0]);var o=t[0],a=t[1],s=t[2];t=t[3];var l=e[0],u=e[1],c=e[2];return e=e[3],0===s||100===s?(o=l,a=u):0!==c&&100!==c||(l=o,u=a),180<Math.abs(l-o)&&(l>o?o+=360:l+=360),"hsla("+(o=r(n,o,l-o,i)%360)+", "+(a=r(n,a,u-a,i))+"%, "+(s=r(n,s,c-s,i))+"%, "+(n=r(n,t,e-t,i))+")"}function nr(){function t(t,e,n,i,r,o){t.position=new pt(i(r,e.x,n.x-e.x,o),i(r,e.y,n.y-e.y,o))}var e=new ft;e.add("position:diagram",t),e.add("position",t),e.add("position:part",(function(t,e,n,i,r,o){r<o?t.mm(i(r,e.x,n.x-e.x,o),i(r,e.y,n.y-e.y,o),!1):t.position=new pt(i(r,e.x,n.x-e.x,o),i(r,e.y,n.y-e.y,o))})),e.add("location",(function(t,e,n,i,r,o){r<o?t.mm(i(r,e.x,n.x-e.x,o),i(r,e.y,n.y-e.y,o),!0):t.location=new pt(i(r,e.x,n.x-e.x,o),i(r,e.y,n.y-e.y,o))})),e.add("position:placeholder",(function(t,e,n,i,r,o){r<o?t.mm(i(r,e.x,n.x-e.x,o),i(r,e.y,n.y-e.y,o),!1):t.position=new pt(i(r,e.x,n.x-e.x,o),i(r,e.y,n.y-e.y,o))})),e.add("position:nodeCollapse",(function(t,e,n,i,r,o){var a=t.actualBounds,s=n.actualBounds;n=s.x+s.width/2-a.width/2,a=s.y+s.height/2-a.height/2,r<o?t.mm(i(r,e.x,n-e.x,o),i(r,e.y,a-e.y,o),!1):t.position=new pt(i(r,e.x,n-e.x,o),i(r,e.y,a-e.y,o))})),e.add("desiredSize",(function(t,e,n,i,r,o){t.desiredSize=new Bt(i(r,e.width,n.width-e.width,o),i(r,e.height,n.height-e.height,o))})),e.add("width",(function(t,e,n,i,r,o){t.width=i(r,e,n-e,o)})),e.add("height",(function(t,e,n,i,r,o){t.height=i(r,e,n-e,o)})),e.add("fill",(function(t,e,n,i,r,o){t.fill=er(e,n,r,o,i)})),e.add("stroke",(function(t,e,n,i,r,o){t.stroke=er(e,n,r,o,i)})),e.add("strokeWidth",(function(t,e,n,i,r,o){t.strokeWidth=i(r,e,n-e,o)})),e.add("strokeDashOffset",(function(t,e,n,i,r,o){t.strokeDashOffset=i(r,e,n-e,o)})),e.add("background",(function(t,e,n,i,r,o){t.background=er(e,n,r,o,i)})),e.add("areaBackground",(function(t,e,n,i,r,o){t.areaBackground=er(e,n,r,o,i)})),e.add("opacity",(function(t,e,n,i,r,o){t.opacity=i(r,e,n-e,o)})),e.add("scale",(function(t,e,n,i,r,o){t.scale=i(r,e,n-e,o)})),e.add("angle",(function(t,e,n,i,r,o){t.angle=i(r,e,n-e,o)})),ir=e}Li.className="TextEditingTool",Li.LostFocus=Ni,Li.MouseDown=ji,Li.Tab=Ii,Li.Enter=Bi,Li.SingleClick=Oi,Li.SingleClickSelected=Di,Li.DoubleClick=Ri,Li.StateNone=Fi,Li.StateActive=zi,Li.StateEditing=Gi,Li.StateValidating=Ui,Li.StateInvalid=Hi,Li.StateValidated=_i,O("textEditingTool",(function(){return this.findTool("TextEditing")}),(function(t){this.gb("TextEditing",t,this.mouseUpTools)})),Wi.prototype.Xe=function(t){this.H=t},Wi.prototype.canStart=function(){return!0},(e=Wi.prototype).fv=function(t){return this.ce.fv(t)},e.Xu=function(t){return this.ce.Xu(t)},e.Cc=function(t){var e=this.ce;if(!0===this.zb&&(this.Ok=this.zb=!1,this.Zd.clear(),0<e.vc.count&&this.H.$b()),this.bc){if(e.Ml(!0),e.vc.clear(),ur(e,null),!0===t)for(t=this.Ei.Fa(),e=0;e<t.length;e++)t[e].Ml(!0)}else e.vc.clear(),ur(e,this.H)},e.Ml=function(t){t===this.defaultAnimation&&this.defaultAnimation.vc.clear(),this.Ei.remove(t),0===this.Ei.count&&(this.bc=!1,this.H.$b()),t===this.defaultAnimation&&(this.defaultAnimation.vc.clear(),this.H.R("AnimationFinished",this))},e.Cj=function(t,e){this.zb&&(this.Zd.contains("Expand Tree")||this.Zd.contains("Expand SubGraph"))&&(this.ce.Cj(t,e),tr(this,t))},e.Aj=function(t,e){this.zb&&(this.Zd.contains("Collapse Tree")||this.Zd.contains("Collapse SubGraph"))&&(this.ce.Aj(t,e),cr(this.ce,e,"position",e.position,e.position),tr(this,t))},d.Object.defineProperties(Wi.prototype,{animationReasons:{get:function(){return this.Zd}},isEnabled:{get:function(){return this.Jd},set:function(t){(this.Jd=t)&&this.Ei.each((function(t){t.isAnimating||1/0!==t.runCount||t.start()}))}},duration:{get:function(){return this.Dg},set:function(t){1>t&&P(t,">= 1",Wi,"duration"),this.Dg=t}},isAnimating:{get:function(){return this.bc}},isTicking:{get:function(){return this.vq}},isInitial:{get:function(){return this.Gh},set:function(t){this.Gh=t}},defaultAnimation:{get:function(){return this.ce}},activeAnimations:{get:function(){return this.Ei}},initialAnimationStyle:{get:function(){return this.Pk},set:function(t){this.Pk=t}}}),Wi.prototype.stopAnimation=Wi.prototype.Cc;var ir=null,rr=!1,or=new G(Wi,"Default",1),ar=new G(Wi,"AnimateLocations",2),sr=new G(Wi,"None",3);function lr(t){this.vu=this.Nw=this.Yd=this.H=null,this.Xk=this.bc=this.j=!1,this.cn=this.Qd=0,this.Lp=this.ot=pr,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=nt,this.vc=new ft,this.Tt=new ft,this.yl=new J,this.Ut=new J,this.dw=Jo,t&&Object.assign(this,t)}function ur(t,e){if(t.Tt.clear(),t.Wk=!1,t.au=0,t.Gd=NaN,0<t.yl.count&&t.yl.clear(),0<t.Ut.count&&t.Ut.clear(),null!==e)for(t=e.links;t.next();)t.value.Tg=null}function cr(t,e,n,i,r,o){var a=t.vc;if(e instanceof Mr&&"position"===n&&(n="position:diagram"),"fill"!==n&&"stroke"!==n&&"background"!==n&&"areaBackground"!==n||(Hs(i),_s(),i=[sl.j,sl.u,sl.o,sl.F],Hs(r),_s(),r=[sl.j,sl.u,sl.o,sl.F]),a.contains(e)){var s=a.I(e),l=s.start,u=s.end;void 0===l[n]&&(l[n]=hr(i)),u[n]=hr(r)}else u={},(l={})[n]=hr(i),u[n]=hr(r),s=l.position,e instanceof Ia&&s instanceof pt&&!s.w()&&e.diagram.animationManager.Zd.contains("Expand SubGraph")&&s.assign(u.position),s=new mr(l,u,o),a.add(e,s);(a=l[n])instanceof pt&&!a.w()&&a.assign(t.o),o&&0===n.indexOf("position:")&&e instanceof Sc?s.Ku.location=hr(e.location):o&&(s.Ku[n]=hr(i))}function hr(t){return t instanceof pt||t instanceof Tt?t.copy():t}function dr(t,e){if(!t.Xk||e){var n=t.Yd;if(!1!==t.bc){var i=+new Date,r=i>t.cn?t.Gd:i-t.Qd;e&&((r=t.gw)<t.Gd?(t.Qd=+new Date-r,t.cn=t.Qd+t.Gd):r=t.Gd),Ki(n),fr(t,r),Qr(t.H,!0),Qi(n),i>t.cn&&(t.ho&&!t.Wk?(t.Qd=+new Date,t.cn=t.Qd+t.Gd,t.Wk=!0):t.Ml(!1))}}}function fr(t,e){for(var n=t.Gd,i=t.vc.iterator,r=t.Wk;i.next();){var o=i.key;if(!(o instanceof Ia&&null===o.diagram)){var a=i.value,s=r?a.end:a.start;a=r?a.start:a.end;var l,u=ir;for(l in a)"position"===l&&(a["position:placeholder"]||a["position:nodeCollapse"])||null===u.get(l)||u.get(l)(o,s[l],a[l],t.Lp,e,n,t)}}}function pr(t,e,n,i){return 1>(t/=i/2)?n/2*t*t+e:-n/2*(--t*(t-2)-1)+e}function gr(t,e,n,i){return t===i?e+n:n*(1-Math.pow(2,-10*t/i))+e}function mr(t,e,n){this.start=t,this.end=e,this.Ku={},this.Hu=n,this.nv=!1}function vr(t,e,n){this.xd=null,this.rf=t,this.so=n||br,this.uk=null,void 0!==e&&(this.uk=e,void 0===n&&(this.so=xr))}Wi.className="AnimationManager",Wi.defineAnimationEffect=function(t,e){rr||(nr(),rr=!0),ir.add(t,e)},Wi.Default=or,Wi.AnimateLocations=ar,Wi.None=sr,lr.prototype.suspend=function(){this.Xk=!0},lr.prototype.advanceTo=function(t,e){e&&(this.Xk=!1),this.ho&&t>=this.Gd&&(this.Wk=!0,t-=this.Gd),this.gw=t,dr(this,!0),Ki(this.Yd),Qr(this.H),Qi(this.Yd),this.H.redraw()},(e=lr.prototype).start=function(){if(0===this.vc.count||this.bc)return this;for(var t=this.H,e=this.vc.iterator;e.next();){var n=e.key;null===t&&(n instanceof Mr?t=n:n instanceof Ia&&(t=n.diagram))}return null===t?this:(this.H=t,this.Yd=t.animationManager,!1===(e=this.Yd).isEnabled||(this.Gd=isNaN(this.Dg)?e.duration:this.Dg,this.Lp=this.ot,e.Ok&&e.Pk===or&&this===e.defaultAnimation&&(this.Lp=gr,this.Gd=isNaN(this.Dg)?600===e.duration?900:e.duration:this.Dg),this.dw=t.scrollMode,this.isViewportUnconstrained&&(t.sj=$o),Ki(e),this.yl.each((function(e){e.data=null,t.add(e)})),Qi(e),this.bc=!0,this.Qd=+new Date,this.cn=this.Qd+this.Gd,function(t,e){function n(){if(0<r.Sr.count&&(i.addAll(r.Sr),r.Sr.clear(),r.bc=!0),!1!==r.bc&&0!==i.count){r.pu.addAll(i);for(var t=r.pu.iterator;t.next();){var e=t.value;if(!1!==e.bc){t:if(0<e.yl.count)var o=!0;else{for(o=e.vc.iterator;o.next();){var a=o.key;if(a instanceof Ia&&null!==a.diagram||a instanceof Mr){o=!0;break t}}o=!1}o?dr(e,!1):e.Xk=!0}}r.pu.clear(),!1!==r.bc&&(Ki(r),Qr(r.H),Qi(r)),m.requestAnimationFrame(n)}}var i=t.Ei,r=t;t.bc?t.Sr.add(e):(t.bc=!0,i.add(e),m.requestAnimationFrame((function(){n()})))}(e,this)),this)},e.Iy=function(t,e){return t.Zc()?(this.yl.add(t),this.H=e,this):this},e.add=function(t,e,n,i,r){if("position"===e&&n.Xa(i))return this;if(null===this.H&&(t instanceof Mr?this.H=t:t instanceof Ia&&null!==t.diagram&&(this.H=t.diagram)),t instanceof Sc){if(!t.isAnimated)return this;"position"===e&&(e="position:part")}return cr(this,t,e,n,i,r),this},e.fv=function(t){return!!this.bc&&(null!==(t=this.vc.I(t))&&t.nv)},e.Xu=function(t){return!!this.bc&&(null!==(t=this.vc.I(t))&&(t.start.position||t.start.location))},e.stop=function(){return this.bc?(this.Ml(!0),this):this},e.Ml=function(t){if(null!==this.vu&&this.vu.jo.remove(this.Nw),this.bc){var e=this.H,n=this.Yd;this.Xk=this.bc=n.Ok=!1,Ki(n);for(var i=this.vc,r=this.yl.iterator;r.next();)e.remove(r.value);for(r=this.Ut.iterator;r.next();)r.value.v();r=this.ho,i=i.iterator;for(var o=ir;i.next();){var a,s=i.key,l=i.value,u=r?l.end:l.start,c=r?l.start:l.end,h=l.Ku;for(a in c)if(null!==o.get(a)){var d=a;!l.Hu||"position:nodeCollapse"!==d&&"position:placeholder"!==d||(d="position"),o.get(d)(s,u[a],void 0!==h[a]?h[a]:l.Hu?u[a]:c[a],this.Lp,this.Gd,this.Gd,this)}l.Hu&&void 0!==h.location&&s instanceof Sc&&(s.location=h.location),l.nv&&s instanceof Sc&&s.Zb(!1)}if(e.As.clear(),Ir(e,!1),e.Ya(),e.N(),Qr(e,!0),n.defaultAnimation===this){for(a=n.pr.iterator;a.next();)null!==(r=a.value).Tg&&(r.points=r.Tg,r.Tg=null);n.pr.clear()}Qr(e,!0),this.isViewportUnconstrained&&(e.scrollMode=this.dw),Qi(n),this.au++,!t&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),ur(this,null),n.Ml(this),e.$b())}},e.Cj=function(t,e){var n=e.actualBounds,i=null;if(e instanceof gh&&(i=e.placeholder),null!==i?(n=i.ga(te),i=i.padding,n.x+=i.left,n.y+=i.top,this.add(t,"position",n,t.position,!1)):this.add(t,"position",new pt(n.x+n.width/2,n.y+n.height/2),t.position,!1),this.add(t,"scale",.01,t.scale,!1),t instanceof gh)for(t=t.memberParts;t.next();)(i=t.value)instanceof qc&&this.Cj(i,e)},e.Aj=function(t,e){if(t.isVisible()){var n=null;if(e instanceof gh&&(n=e.placeholder),null!==n){var i=n.ga(te);n=n.padding,i.x+=n.left,i.y+=n.top,this.add(t,"position:placeholder",t.position,i,!0)}else this.add(t,"position:nodeCollapse",t.position,e,!0);if(this.add(t,"scale",t.scale,.01,!0),(i=this.vc).contains(t)&&(i.I(t).nv=!0),t instanceof gh)for(t=t.memberParts;t.next();)(i=t.value)instanceof qc&&this.Aj(i,e)}},e.Ez=function(t){var e=this.Tt.get(t);return null===e&&(e={},this.Tt.add(t,e)),e},d.Object.defineProperties(lr.prototype,{duration:{get:function(){return this.Dg},set:function(t){1>t&&P(t,">= 1",lr,"duration"),this.Dg=t}},reversible:{get:function(){return this.ho},set:function(t){this.ho=t}},runCount:{get:function(){return this.cu},set:function(t){0<t?this.cu=t:x("Animation.runCount value must be a positive integer.")}},finished:{get:function(){return this.dn},set:function(t){this.dn!==t&&(this.dn=t)}},easing:{get:function(){return this.ot},set:function(t){this.ot=t}},isViewportUnconstrained:{get:function(){return this.j},set:function(t){this.j=t}},isAnimating:{get:function(){return this.bc}}}),lr.prototype.getTemporaryState=lr.prototype.Ez,lr.prototype.stop=lr.prototype.stop,lr.prototype.add=lr.prototype.add,lr.prototype.addTemporaryPart=lr.prototype.Iy,lr.className="Animation",lr.EaseLinear=function(t,e,n,i){return n*t/i+e},lr.EaseInOutQuad=pr,lr.EaseInQuad=function(t,e,n,i){return n*(t/=i)*t+e},lr.EaseOutQuad=function(t,e,n,i){return-n*(t/=i)*(t-2)+e},lr.EaseInExpo=function(t,e,n,i){return 0===t?e:n*Math.pow(2,10*(t/i-1))+e},lr.EaseOutExpo=gr,mr.className="AnimationState",vr.prototype.copy=function(){var t=new vr(this.rf);t.so=this.so;var e=this.uk;if(null!==e){var n={};void 0!==e.duration&&(n.duration=e.duration),void 0!==e.finished&&(n.finished=e.finished),void 0!==e.easing&&(n.easing=e.easing),t.uk=n}return t},d.Object.defineProperties(vr.prototype,{propertyName:{get:function(){return this.rf},set:function(t){this.rf=t}},animationSettings:{get:function(){return this.uk},set:function(t){this.uk=t}},startCondition:{get:function(){return this.so},set:function(t){this.so=t}}});var yr,wr,br=new G(vr,"Default",1),xr=new G(vr,"Immediate",2),Sr=new G(vr,"Bundled",3);function Pr(t){$(this),this.H=null,this.Pa=new K,this.xa="",this.pb=1,this.o=!1,this.j=this.Uh=this.u=this.Oi=this.Ni=this.Mi=this.Li=this.Ji=this.Ki=this.Ii=this.Qi=this.Hi=this.Pi=this.Gi=this.Fi=!0,this.Zq=[],t&&Object.assign(this,t)}function kr(t,e){var n=1;return 1!==t.pb&&(n=e.globalAlpha,e.globalAlpha=n*t.pb),n}function Cr(t,e,n,i,r){if(t.visible&&0!==t.pb&&(r||!t.isTemporary)){var o=(r=t.Pa.s).length;if(0!==o){var a=kr(t,e),s=t.Zq;s.length=0;for(var l=n.scale,u=Bt.alloc(),c=0;c<o;c++){var h=r[c];i.contains(h)&&t.Oj(e,h,n,s,l,u,!1)}Bt.free(u),e.globalAlpha=a}}}function Ar(t,e,n){if(e=function(t,e,n){var i=n.zOrder;if(isNaN(i))return e;t=t.Pa;var r=t.count;if(1>=r)return e;if(0>e&&(e=t.indexOf(n)),0>e)return-1;for(var o=e-1,a=NaN;0<=o&&(a=t.M(o).zOrder,isNaN(a));)o--;for(var s=e+1,l=NaN;s<r&&(l=t.M(s).zOrder,isNaN(l));)s++;if(!isNaN(a)&&a>i)for(;;){if(-1===o||a<=i){if(++o===e)break;return t.mb(e),t.Gb(o,n),o}for(a=NaN;0<=--o&&(a=t.M(o).zOrder,isNaN(a)););}else if(!isNaN(l)&&l<i)for(;;){if(s===r||l>=i){if(--s===e)break;return t.mb(e),t.Gb(s,n),s}for(l=NaN;++s<r&&(l=t.M(s).zOrder,isNaN(l)););}return e}(t,e,n),n instanceof gh&&null!==n&&isNaN(n.zOrder)){if(0!==n.memberParts.count){for(var i=-1,r=t.Pa.s,o=r.length,a=0;a<o;a++){var s=r[a];if(s===n&&(e=a,0<=i))break;if(0>i&&s.containingGroup===n&&(i=a,0<=e))break}!(0>i)&&i<e&&((r=t.Pa).mb(e),r.Gb(i,n))}null!==(e=n.containingGroup)&&Ar(t,-1,e)}null!==n.svg&&n.svg.remove()}function Mr(t,e){if(sa||(function(){if(Go){var t=m.document.createElement("canvas"),e=t.getContext("2d"),n=D("7ca11abfd022028846");e[n]=D("398c3597c01238");for(var i=["5da73c80a36455d7038e4972187c3cae51fd22",v.Dx+"4ae6247590da4bb21c324ba3a84e385776",Ue.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",_e.za],r=1;5>r;r++)e[D("7ca11abfd7330390")](D(i[r-1]),10,15*r);for(e[n]=D("39f046ebb36e4b"),n=1;5>n;n++)e[D("7ca11abfd7330390")](D(i[n-1]),10,15*n);4===i.length&&"5"===i[0][0]&&"7"===i[3][0]||(Ue.prototype.Cd=Ue.prototype.Eu),aa=t}}(),sa=!0),$(this),wr=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,Go){var n=this,i=function(){n.removeEventListener(m.document,"DOMContentLoaded",i,!1),n.setRTL()};null!==m.document.body?this.setRTL():n.addEventListener(m.document,"DOMContentLoaded",i,!1)}this.ol=null,Fo.add("Model",Jd);var r=this;return this.Hb=function(t){var e=r.partManager;if(t.model===e.diagram.model&&e.diagram.aa){e.diagram.aa=!1;try{var n=t.change;""===t.modelChange&&n===fn&&e.updateDataBindings(t.object,t.propertyName)}finally{e.diagram.aa=!0}}},this.Oc=function(t){r.partManager.doModelChanged(t)},this.hu=this.ku=null,Er(this),this.model=Of(),this.Wg=!0,Or(this),this.layout=new Nd,this.Wg=!1,this.ck=this.ek=this.fk=this.dk=this.ui=this.aA=this.$j=this.Ov=null,this.hk=function(){},this.preventDefault=null,this.rn=!1,this.Yf=new la,void 0!==t&&("string"==typeof t||m.Element&&t instanceof Element?Nr(this,t):e=t),this.vb=!1,e&&this.nm(e),this}function Er(t){t.Yd=new Wi,t.Yd.Xe(t),t.Db=17,t.Gw=!1,t.tn=!1,t.bu="default",t.Wa=new K,t.pj=new ft,t.nl="default",t.Tx(),t.Sx(),t.pb=1,t.pa=new pt(NaN,NaN).freeze(),t.du=new pt(NaN,NaN),t.Ca=1,t.Pp=1,t.zt=new pt(NaN,NaN).freeze(),t.At=NaN,t.Ot=1e-4,t.Mt=100,t.Ab=new Ue,t.zu=new pt(NaN,NaN).freeze(),t.ut=new Bt(NaN,NaN,NaN,NaN).freeze(),t.rj=new Xt(0,0,0,0).freeze(),t.sj=Jo,t.nu=!1,t.Zt=null,t.fu=null,t.yh=_o,t.zk=ke,t.Fg=_o,t.pq=ke,t.yt=te,t.Bt=te,t.Fc=!0,t.pn=!1,t.De=new J,t.Eh=new ft,t.Xm=!0,t.vp=250,t.vk=-1,t.xp=new Xt(16,16,16,16).freeze(),t.kg=!1,t.Jk=!1,t.fn=!0,t.bq=new un,t.bq.diagram=t,t.Qg=new un,t.Qg.diagram=t,t.cj=new un,t.cj.diagram=t,t.zg=null,t.pf=null,t.qu=!1,function(t){function e(t){var e=t.toLowerCase(),r=new K;n.add(t,r),n.add(e,r),i.add(t,t),i.add(e,t)}var n=new ft,i=new ft;e("InitialAnimationStarting"),e("AnimationStarting"),e("AnimationFinished"),e("BackgroundSingleClicked"),e("BackgroundDoubleClicked"),e("BackgroundContextClicked"),e("ClipboardChanged"),e("ClipboardPasted"),e("DocumentBoundsChanged"),e("ExternalObjectsDropped"),e("GainedFocus"),e("InitialLayoutCompleted"),e("LayoutCompleted"),e("LinkDrawn"),e("LinkRelinked"),e("LinkReshaped"),e("LostFocus"),e("Modified"),e("ObjectSingleClicked"),e("ObjectDoubleClicked"),e("ObjectContextClicked"),e("PartCreated"),e("PartResized"),e("PartRotated"),e("SelectionMoved"),e("SelectionCopied"),e("SelectionDeleting"),e("SelectionDeleted"),e("SelectionGrouped"),e("SelectionUngrouped"),e("ChangingSelection"),e("ChangedSelection"),e("SubGraphCollapsed"),e("SubGraphExpanded"),e("TextEdited"),e("TreeCollapsed"),e("TreeExpanded"),e("ViewportBoundsChanged"),e("InvalidateDraw"),t.iw=n,t.hw=i}(t),t.ai=new J,t.Ht=!0,t.uu=ta,t.pw=!1,t.wu=Vo,t.it="auto",t.Op="auto",t.zh=null,t.Fh=null,t.Bh=null,t.Qh=null,t.Oh=null,t.Nh=null,t.Qt=null,t.Lh=null,t.xt=!1,t.Mh=null,t.Ph=null,t.$h=null,t.Ch=null,t.Rt=!1,t.Yt={},t.oj=[null,null],t.Wg=!1,t.Iw=!1,t.ou=!1,t.lt=!1,t.rw=!0,t.ld=!1,t.$i=!1,t.Tw=!0,t.Ce=-2,t.Og=new ft,t.Xn=new K,t.Gg=!1,t.Jd=!0,t.Us=!0,t.Fi=!0,t.Gi=!0,t.Vs=!1,t.Ws=!0,t.Pi=!0,t.Hi=!0,t.Qi=!0,t.Ys=!0,t.Ii=!0,t.Ki=!0,t.Ji=!0,t.Li=!0,t.Mi=!0,t.Ni=!0,t.Oi=!0,t.Zs=!0,t.at=!0,t.qw=!1,t.Vk=!1,t.mn=!0,t.nn=!0,t.Xs=!0,t.$s=!0,t.iu=16,t.mu=16,t.qr=!1,t.gu=!1,t.lu=0,t.ju=0,t.yb=new Xt(5).freeze(),t.Hw=(new J).freeze(),t.Nt=999999999,t.nw=(new J).freeze(),t.Zi=!0,t.Ee=!0,t.vd=!0,t.Be=!1,t.gf=!1,t.xh=!0,t.hf=!1,t.sy=new J,t.ow=new J,t.Xh=null,t.aw=new Tt(8,8),t.bw=999,t.Bw=1,t.Jw=0,t.fc={scale:1,position:new pt,bounds:new Bt,Py:new Tt,bA:new Tt,Oz:!1},t.fc.canvasSize=t.fc.Py,t.fc.newCanvasSize=t.fc.bA,t.fc.isScroll=!1,t.Rw=new Bt(NaN,NaN,NaN,NaN).freeze(),t.wo=new Tt(NaN,NaN).freeze(),t.Sp=new Bt(NaN,NaN,NaN,NaN).freeze(),t.It=!1,t.Lg=new ft;var e=new qc,n=new Au;n.bind(new Hf("text","",I)),e.add(n),t.ny=e,t.Lg.add("",e),e=new qc,(n=new Au).stroke="brown",n.bind(new Hf("text","",I)),e.add(n),t.Lg.add("Comment",e),(e=new qc).selectable=!1,e.avoidable=!1,(n=new pu).figure="Ellipse",n.fill="black",n.stroke=null,n.desiredSize=new Tt(3,3).ja(),e.add(n),t.Lg.add("LinkLabel",e),t.Yi=new ft,(e=new gh).selectionObjectName="GROUPPANEL",e.type=Ml.Vertical,(n=new Au).font="bold 12pt sans-serif",n.bind(new Hf("text","",I)),e.add(n),(n=new Ml(Ml.Auto)).name="GROUPPANEL";var i=new pu;i.figure="Rectangle",i.fill="rgba(128,128,128,0.2)",i.stroke="black",n.add(i),(i=new bh).padding=new Xt(5,5,5,5).ja(),n.add(i),e.add(n),t.ly=e,t.Yi.add("",e),t.Kh=new ft,e=new xh,(n=new pu).isPanelMain=!0,e.add(n),(n=new pu).toArrow="Standard",n.fill="black",n.stroke=null,n.strokeWidth=0,e.add(n),t.my=e,t.Kh.add("",e),e=new xh,(n=new pu).isPanelMain=!0,n.stroke="brown",e.add(n),t.Kh.add("Comment",e),(e=new Yc).type=Ml.Auto,(n=new pu).fill=null,n.stroke="dodgerblue",n.strokeWidth=3,e.add(n),(n=new bh).margin=new Xt(1.5,1.5,1.5,1.5).ja(),e.add(n),t.St=e,t.wt=e,(e=new Yc).type=Ml.Link,(n=new pu).isPanelMain=!0,n.fill=null,n.stroke="dodgerblue",n.strokeWidth=3,e.add(n),t.Kt=e,t.fe=null,t.mq=!1,t.Ck=null,t.partManager=new Jd,t.toolManager=new bn,t.toolManager.initializeStandardTools(),t.defaultTool=t.toolManager,t.currentTool=t.defaultTool,t.nt=null,t.Wm=new Pa,t.Vt=null,t.Wt=null,t.Mr=!1,t.commandHandler=Tr(),t.eq=null,t.fq=at,t.Pw=!1,t.Mb=1,t.Yh=null,t.Oq=1,t.Sq=0,t.zw=[0,0,0,0,0],t.Tq=0,t.yq=1,t.tw=0,t.uw=new pt,t.zy=500,t.wp=new pt,t.wq=!1}function Lr(t,e){t.animationManager.Cc(!0),t.Hw=(new J).freeze(),t.nw=(new J).freeze();var n=t.skipsUndoManager,i=null!==t.cc&&void 0!==t.cc;i&&(t.skipsUndoManager=!0);var r=null;null!==t.fe&&(null!==(r=t.fe.part)&&t.remove(r));var o=[],a=t.Wa.length;if(e){for(e=0;e<a;e++)for(var s=t.Wa.s[e].parts;s.next();){var l=s.value;l!==r&&null===l.data&&o.push(l)}for(e=0;e<o.length;e++)t.remove(o[e])}for(e=0;e<a;e++)t.Wa.s[e].clear();return t.partManager.clear(),t.De.clear(),t.Eh.clear(),t.ai.clear(),t.Ck=null,t.Xn.clear(),oc(),t.Og.clear(),z=[],null!==r&&(t.add(r),t.partManager.parts.remove(r)),i&&(t.skipsUndoManager=n),o}function Tr(){return null}function Nr(t,e){if(Go){if(null!=e||x("Diagram setup requires an argument DIV."),null!==t.Ka&&x("Diagram has already completed setup."),"string"==typeof e?t.Ka=m.document.getElementById(e):e instanceof HTMLDivElement?t.Ka=e:x("No DIV or DIV id supplied: "+e),null===t.Ka&&x("Invalid DIV id; could not get element with id: "+e),void 0!==t.Ka.H&&x("Invalid div id; div already has a Diagram associated with it."),!t.ol&&m.ResizeObserver){var n=y((function(){t.$b()}),250);t.ol=new m.ResizeObserver((function(){n()})),t.ol.observe(t.Ka)}"static"===m.getComputedStyle(t.Ka,null).position&&(t.Ka.style.position="relative");var i="rgba(2"+(e=5)+"5, 255, 255, 0)";e--,t.Ka.style["-webkit-tap-highlight-color"]=i,t.Ka.innerHTML="",t.Ka.H=t,t.Ka.goDiagram=t,t.Ka.go=m.go;var r=new js(t);if(void 0!==r.style&&(r.style.position="absolute",r.style.top="0px",r.style.left="0px","rtl"===m.getComputedStyle(t.Ka,null).getPropertyValue("direction")&&(t.tn=!0),r.style.zIndex="2",r.style.userSelect="none",r.style.MozUserSelect="none",r.style.touchAction="none",r.style.letterSpacing="normal !important",r.style.wordSpacing="normal !important"),t.ta=r,t.ib=r.context,i=t.ib,t.Mb=t.computePixelRatio(),t.viewSize.w()||(t.Aa=t.Ka.clientWidth||1,t.ya=t.Ka.clientHeight||1),ro(t,t.Aa,t.ya),t.Ka.insertBefore(r.Oa,t.Ka.firstChild),(r=new js(null)).width=1,r.height=1,t.jw=r,t.oy=r.context,Go){r=b("div");var o=b("div");r.style.position="absolute",r.style.overflow="auto",r.style.width=t.Aa+"px",r.style.height=t.ya+"px",r.style.zIndex="1",o.style.position="absolute",o.style.width="1px",o.style.height="1px",t.Ka.appendChild(r),r.appendChild(o),r.onscroll=Rr,r.addEventListener("pointerdown",Fr),r.H=t,r.uy=!0,r.vy=!0,t.ku=r,t.hu=o}t.hk=y((function(){t.Yh=null,t.N()}),300),t.Ov=y((function(){Br(t)}),250),t.preventDefault=function(t){return t.preventDefault(),!1},t.$j=function(e){if(t.isEnabled){var n=Zr(t,e,!0);n.bubbles=!0;var i=0,r=0;n.delta=0,void 0!==e.deltaX?(0!==e.deltaX&&(i=0<e.deltaX?1:-1),0!==e.deltaY&&(r=0<e.deltaY?1:-1),n.delta=Math.abs(e.deltaX)>Math.abs(e.deltaY)?-i:-r):void 0!==e.wheelDeltaX?(0!==e.wheelDeltaX&&(i=0<e.wheelDeltaX?-1:1),0!==e.wheelDeltaY&&(r=0<e.wheelDeltaY?-1:1),n.delta=Math.abs(e.wheelDeltaX)>Math.abs(e.wheelDeltaY)?-i:-r):void 0!==e.wheelDelta&&0!==e.wheelDelta&&(n.delta=0<e.wheelDelta?1:-1),t.doMouseWheel(),Yr(n,e)}},t.aA=function(e){t.isEnabled&&(t.Vk=!1,Zr(t,e,!0),(e=t.currentTool).cancelWaitAfter(),e.standardMouseOver())},t.ui=function(e){if(t.isEnabled){t.Vk=!0;var n=t.Yt;void 0===n[e.pointerId]&&(n[e.pointerId]=e);var i=!1;if(null===(n=t.oj)[0]||n[0].pointerId!==e.pointerId&&n[0].pointerType===e.pointerType)if(null!==n[1]&&n[1].pointerId===e.pointerId)n[1]=e,i=!0;else if(null===n[0])n[0]=e;else{if(null!==n[1])return void e.preventDefault();n[1]=e,i=!0}else n[0]=e;(n="touch"===e.pointerType||"pen"===e.pointerType)&&(t.qu=!1,t.wq=!0);var r=i;i=Vr(t,e,!0,!1,!0,r),Xr(t,e,i),i.targetDiagram=Wr(e,e.target),i.targetObject=null,r||i.clone(t.bq),r=t.uw,n=n?25:10,e.timeStamp-t.tw<t.zy&&!(Math.abs(r.x-e.screenX)>n||Math.abs(r.y-e.screenY)>n)?t.yq++:t.yq=1,i.clickCount=t.yq,t.tw=e.timeStamp,t.uw.sg(e.screenX,e.screenY),t.doMouseDown(),1===e.button?e.preventDefault():Yr(i,e)}},t.dk=function(e){if(t.isEnabled){t.Vk=!0;var n=t.oj;if(null===n[0]||n[0].pointerId!==e.pointerId&&n[0].pointerType===e.pointerType){if(null!==n[1]&&n[1].pointerId===e.pointerId)return void(n[1]=e);if(null!==n[0])return;n[0]=e}else n[0]=e;if(n[0].pointerId===e.pointerId){n=Vr(t,e,!1,!1,!1,null!==n[1]);var i=m.document.elementFromPoint(e.clientX,e.clientY)||null;null!==i&&void 0!==i.shadowRoot&&null!==i.shadowRoot&&(i=i.shadowRoot.elementFromPoint(e.clientX,e.clientY));var r=t,o=e;i&&i.H&&(o=e,r=i.H),n.targetDiagram=r,Xr(t,o,n),n.targetObject=null,t.doMouseMove(),Yr(n,e)}}},t.fk=function(e){if(t.isEnabled){t.Vk=!0;var n="touch"===e.pointerType||"pen"===e.pointerType,i=t.Yt;if(n&&t.qu)delete i[e.pointerId],e.preventDefault();else if(null===(i=t.oj)[0]||i[0].pointerId!==e.pointerId&&i[0].pointerType===e.pointerType)null!==i[1]&&i[1].pointerId===e.pointerId&&(i[1]=null);else{i[0]=null,i=Vr(t,e,!1,!0,!0,!1);var r=m.document.elementFromPoint(e.clientX,e.clientY)||null;null!==r&&void 0!==r.shadowRoot&&null!==r.shadowRoot&&(r=r.shadowRoot.elementFromPoint(e.clientX,e.clientY)),null!==r&&r.H instanceof Mr&&r.H!==t&&Xr(r.H,e,i),null===r&&(r=e.target),Xr(t,e,i),i.clickCount=t.yq,i.targetDiagram=Wr(e,r),i.targetObject=null,t.doMouseUp(),Yr(i,e),n&&(t.wq=!1)}}},t.ek=function(e){if(t.isEnabled){t.Vk=!1;var n=t.Yt;n[e.pointerId]&&delete n[e.pointerId],null!==(n=t.oj)[0]&&n[0].pointerId===e.pointerId&&(n[0]=null),null!==n[1]&&n[1].pointerId===e.pointerId&&(n[1]=null),"touch"!==e.pointerType&&"pen"!==e.pointerType&&((e=t.currentTool).cancelWaitAfter(),e.standardMouseOver())}},t.ck=function(e){var n=t.oj;null!==n[0]&&n[0].pointerId===e.pointerId?(n[0]=null,t.wq=!1):null!==n[1]&&n[1].pointerId===e.pointerId&&(n[1]=null)},t.Vp=i.Z["d"+xa[1]+xa[2]+"wI"+oa.slice(1,5)]["b"+Zf.slice(1,e)](i.Z,aa,e,e),i.Vc(!0),function(t){var e=t.ta.Oa;e instanceof HTMLCanvasElement||(e=t.div),t.addEventListener(e,"pointerdown",t.ui,!1),t.addEventListener(e,"pointermove",t.dk,!1),t.addEventListener(e,"pointerup",t.fk,!1),t.addEventListener(e,"pointerout",t.ek,!1),t.addEventListener(e,"pointercancel",t.ck,!1),t.addEventListener(e,"pointerenter",t.bz,!1),t.addEventListener(e,"pointerleave",t.cz,!1),t.addEventListener(e,"wheel",t.$j,!1),t.addEventListener(e,"keydown",t.Qz,!1),t.addEventListener(e,"keyup",t.Rz,!1),t.addEventListener(e,"blur",t.Ny,!1),t.addEventListener(e,"focus",t.Oy,!1),t.addEventListener(e,"selectstart",(function(t){return t.preventDefault(),!1}),!1),t.addEventListener(e,"contextmenu",(function(t){return t.preventDefault(),!1}),!1),t.addEventListener(m,"resize",t.Ov,!1)}(t),"svg"===t.nl&&(e=t.pj.get("svg"),t.Ka.appendChild(e.Oa),t.ib=e.context)}}function jr(t){30<t.Sq&&(t.Yh=1)}function Ir(t,e){null!==t.Yh&&(t.Yh=null,e&&t.hk(),Z&&Z.nx||(t.Sq=0,t.zw=[0,0,0,0,0],t.Tq=0))}function Br(t){if(null!==t.ta){var e=t.Ka;if(null!==e&&0!==e.clientWidth&&0!==e.clientHeight){t.Gw||t.setScrollWidth();var n=t.gf?t.Db:0,i=t.Be?t.Db:0,r=t.Mb;t.Mb=t.computePixelRatio(),t.Mb!==r&&(t.pn=!0,t.$b()),e.clientWidth===t.Aa+n&&e.clientHeight===t.ya+i||(t.Ee=!0,t.Fc=!0,null!==(e=t.layout)&&e.isViewportSized&&t.autoScale===_o&&(t.Jk=!0,e.C()),t.ld||t.$b())}}}function Or(t){var e=new Pr;e.name="Background",t.Al(e),(e=new Pr).name="",t.Al(e),(e=new Pr).name="Foreground",t.Al(e),(e=new Pr).name="Adornment",e.isTemporary=!0,e.isInDocumentBounds=!1,t.Al(e),(e=new Pr).name="Tool",e.isTemporary=!0,e.isInDocumentBounds=!0,t.Al(e),(e=new Pr).name="Grid",e.allowSelect=!1,e.pickable=!1,e.isTemporary=!0,e.isInDocumentBounds=!1,t.Ww(e,t.Qj("Background"))}function Dr(t){var e=new Ml(Ml.Grid);e.name="GRID";var n=new pu;return n.figure="LineH",n.stroke="lightgray",n.strokeWidth=.5,n.interval=1,e.add(n),(n=new pu).figure="LineH",n.stroke="gray",n.strokeWidth=.5,n.interval=5,e.add(n),(n=new pu).figure="LineH",n.stroke="gray",n.strokeWidth=1,n.interval=10,e.add(n),(n=new pu).figure="LineV",n.stroke="lightgray",n.strokeWidth=.5,n.interval=1,e.add(n),(n=new pu).figure="LineV",n.stroke="gray",n.strokeWidth=.5,n.interval=5,e.add(n),(n=new pu).figure="LineV",n.stroke="gray",n.strokeWidth=1,n.interval=10,e.add(n),(n=new Sc).add(e),n.layerName="Grid",n.zOrder=0,n.isInDocumentBounds=!1,n.isAnimated=!1,n.pickable=!1,n.locationObjectName="GRID",t.add(n),t.partManager.parts.remove(n),e.visible=!1,e}function Rr(){this.H.gu?this.H.gu=!1:this.H.isEnabled?this.H.kx(this):oo(this.H)}function Fr(t){this.H.isEnabled?(this.H.lu=t.target.scrollTop,this.H.ju=t.target.scrollLeft):oo(this.H)}function zr(t,e){if(t.fixedBounds.w())return e.assign(t.fixedBounds),e.Co(t.yb),e;for(var n=!0,i=t.Wa.s,r=i.length,o=0;o<r;o++){var a=i[o];if(a.visible&&a.isInDocumentBounds)for(var s=(a=a.Pa.s).length,l=0;l<s;l++){var u=a[l];u.isInDocumentBounds&&u.isVisible()&&((u=u.actualBounds).w()&&(n?(n=!1,e.assign(u)):e.ed(u)))}}return n&&e.h(0,0,0,0),e.Co(t.yb),e}function Gr(t,e){if((e||t.hf)&&!t.vb&&null!==t.ta&&t.documentBounds.w()){if(t.vb=!0,e){var n=t.initialPosition;if(n.w())return t.vb=!1,void(t.position=n);(n=pt.alloc()).xi(t.documentBounds,t.initialDocumentSpot);var i=t.viewportBounds;i=Bt.allocAt(0,0,i.width,i.height);var r=pt.alloc();r.xi(i,t.initialViewportSpot),r.h(n.x-r.x,n.y-r.y),t.position=r,Bt.free(i),pt.free(r),pt.free(n)}n=t.yh,e&&t.Fg!==_o&&(n=t.Fg);var o=n!==_o?Ur(t,n):t.scale;n=t.pa.x,i=t.pa.y,r=t.Aa/o;var a=t.ya/o,s=t.zk,l=t.pq;e&&!s.sb()&&(l.sb()||l.Xb())&&(s=l.Xb()?re:l),Hr(t,t.documentBounds,r,a,s,e),e=t.scale,t.scale=o,t.vb=!1,o=t.viewportBounds,_e.B(o.x,n)&&_e.B(o.y,i)&&_e.B(o.width,r)&&_e.B(o.height,a)||t.onViewportBoundsChanged(new Bt(n,i,r,a),o,e,!1)}}function Ur(t,e){var n=t.Pp;if(null===t.ta)return n;t.Va();var i=t.documentBounds;if(!i.w())return n;var r=i.width;i=i.height;var o=t.Aa+(t.gf?t.Db:0),a=t.ya+(t.Be?t.Db:0),s=o/r,l=a/i;return e===Zo?((e=Math.min(l,s))>n&&(e=n),e<t.minScale&&(e=t.minScale),e>t.maxScale&&(e=t.maxScale),e):e===Wo?((e=l>s?(a-t.Db)/i:(o-t.Db)/r)>n&&(e=n),e<t.minScale&&(e=t.minScale),e>t.maxScale&&(e=t.maxScale),e):t.scale}function Hr(t,e,n,i,r,o){var a=pt.allocAt(t.pa.x,t.pa.y),s=a.x,l=a.y;if(null!==t.eq){var u=pt.alloc();s=(u=t.eq.ga(te,u)).x-t.fq.x/t.scale,l=u.y-t.fq.y/t.scale,r=$t,pt.free(u)}(o||t.scrollMode===Jo)&&(r.sb()&&(n>e.width&&(s=e.x+(r.x*e.width+r.offsetX)-(r.x*n-r.offsetX)),i>e.height&&(l=e.y+(r.y*e.height+r.offsetY)-(r.y*i-r.offsetY))),r=t.rj,o=n-e.width,n<e.width+r.left+r.right?(s=Math.min(s+n/2,e.right+Math.max(o,r.right)-n/2),s=Math.max(s,e.left-Math.max(o,r.left)+n/2),s-=n/2):s>e.left?s=e.left:s<e.right-n&&(s=e.right-n),n=i-e.height,i<e.height+r.top+r.bottom?(l=Math.min(l+i/2,e.bottom+Math.max(n,r.bottom)-i/2),l=Math.max(l,e.top-Math.max(n,r.top)+i/2),l-=i/2):l>e.top?l=e.top:l<e.bottom-i&&(l=e.bottom-i)),a.x=isFinite(s)?s:-t.yb.left,a.y=isFinite(l)?l:-t.yb.top,null!==t.positionComputation&&(e=t.positionComputation(t,a),a.x=e.x,a.y=e.y),Ji(t.Yd,t.pa,a),t.pa.h(a.x,a.y),So(t),pt.free(a)}function _r(t,e,n,i){for(void 0===n&&(n=null),void 0===i&&(i=null),Jr(t),t=t.Wa.iteratorBackwards;t.next();){var r=t.value;if(r.visible&&!r.isTemporary&&null!==(r=r.ic(e,n,i)))return r}return null}function Zr(t,e,n){var i=t.Qg;return t.Qg=t.cj,t.cj=i,i.diagram=t,i.event=e,n?Xr(t,e,i):(i.viewPoint=t.Qg.viewPoint,i.documentPoint=t.Qg.documentPoint),t=0,e.ctrlKey&&(t+=1),e.altKey&&(t+=2),e.shiftKey&&(t+=4),e.metaKey&&(t+=8),i.modifiers=t,i.button=e.button,void 0!==e.buttons&&(i.buttons=e.buttons),F&&0===e.button&&e.ctrlKey&&(i.button=2),i.down=!1,i.up=!1,i.clickCount=1,i.delta=0,i.handled=!1,i.bubbles=!1,i.timestamp=e.timeStamp,i.isMultiTouch=!1,i.targetDiagram=Wr(e,e.target),i.targetObject=null,i}function Wr(t,e){return null===e?null:(e=e.H)?e:((e=t.path)||"function"!=typeof t.composedPath||(e=t.composedPath()),e&&e[0]&&e[0].H?e[0].H:null)}function Vr(t,e,n,i,r,o){var a=t.Qg;return t.Qg=t.cj,t.cj=a,a.diagram=t,a.clickCount=1,t=a.delta=0,e.ctrlKey&&(t+=1),e.altKey&&(t+=2),e.shiftKey&&(t+=4),e.metaKey&&(t+=8),a.modifiers=t,a.event=e,a.timestamp=e.timeStamp,a.button=e.button,a.buttons=e.buttons,F&&0===e.button&&e.ctrlKey&&(a.button=2),a.down=n,a.up=i,a.handled=!1,a.bubbles=r,a.isMultiTouch=o,a}function Yr(t,e){return!!t.bubbles||(void 0!==e.stopPropagation&&e.stopPropagation(),!1!==e.cancelable&&e.preventDefault(),e.cancelBubble=!0,!1)}function Xr(t,e,n){var i=t.ta,r=t.Aa,o=t.ya,a=0,s=0;null!==i&&(i=i.getBoundingClientRect(),a=e.clientX-r/i.width*i.left,s=e.clientY-o/i.height*i.top),n.viewPoint.h(a,s),null!==t.Ab?(e=pt.allocAt(a,s),t.Ab.Cd(e),n.documentPoint.assign(e),pt.free(e)):n.documentPoint.h(a,s)}function qr(t,e,n){if(null!==t.oj[0]){e=t.oj[e];var i=t.ta;null!==i&&(i=i.getBoundingClientRect(),n.h(e.clientX-t.Aa/i.width*i.left,e.clientY-t.ya/i.height*i.top))}}function Kr(t,e,n){!t.Ee||t.vb||t.animationManager.defaultAnimation.isAnimating||oo(t)||(e&&Jr(t),n&&Gr(t,!1))}function Qr(t,e){if(!t.ld&&(t.kg=!1,null!==t.Ka||t.wo.w())){t.ld=!0;var n=t.animationManager,i=t.Xn;if(!n.isAnimating&&0!==i.length){for(var r=i.s,o=r.length,a=0;a<o;a++){var s=r[a];ns(s,!1),s.v()}i.clear()}0<(i=t.ow).count&&(i.each((function(t){t.Nv()})),i.clear()),r=i=!1,n.defaultAnimation.isAnimating&&(r=!0,i=t.skipsUndoManager,t.skipsUndoManager=!0),n.zb||Br(t),Kr(t,!1,!0),null!==t.fe&&(t.fe.visible&&!t.mq&&(vo(t),t.mq=!0),!t.fe.visible&&t.mq&&(t.mq=!1)),Jr(t),o=!1,t.hf&&!t.xh||(t.hf?Ao(t,!t.Jk):(t.Ea("Initial Layout"),!1===n.isEnabled&&n.Cc(),Ao(t,!1)),o=!0),t.Jk=!1,Jr(t),t.ou||function(t){t.ld||Jr(t),t.Va()}(t),Kr(t,!0,!1),a=!1,o?((n=Bt.alloc()).assign(t.viewportBounds),t.hf||(a=t.hf=!0,t.skipsUndoManager||(t.undoManager.isPendingClear=!0),t.undoManager.isPendingUnmodified=!0,function(t){if(t.Fg!==_o)t.scale=Ur(t,t.Fg);else if(t.yh!==_o)t.scale=Ur(t,t.yh);else{var e=t.initialScale;isFinite(e)&&0<e&&(t.scale=e)}Gr(t,!0),e=t.Wa.s,t.Fd(e,e.length,t,t.viewportBounds),t.R("InitialLayoutCompleted"),t.du.assign(t.pa),vo(t)}(t)),t.R("LayoutCompleted"),Kr(t,!0,!1),Bt.free(n)):n.Ok&&n.Qw&&(t.Fg!==_o?t.scale=Ur(t,t.Fg):t.yh!==_o?t.scale=Ur(t,t.yh):(n=t.initialScale,isFinite(n)&&0<n&&(t.scale=n)),Gr(t,!0)),o&&a&&t.eb("Initial Layout"),Jr(t),e||t.gc(t.ib),r&&(t.skipsUndoManager=i),t.ld=!1}}function Jr(t){if(0!==t.De.count&&(t.ld||!t.animationManager.isTicking)){for(var e=0;23>e;e++){var n=t.De.iterator;if(null===n||0===t.De.count)break;t.De=new J,t.Nv(n,t.De)}t.nodes.each((function(t){t instanceof gh&&0!=(65536&t.U)!=!1&&(t.U=65536^t.U)}))}}function $r(t,e){for(var n=T(),i=T(),r=e.memberParts;r.next();){var o=r.value;o.isVisible()&&(o instanceof gh?(es(o)||is(o)||Dc(o))&&$r(t,o):o instanceof xh?o.fromNode===e||o.toNode===e?i.push(o):n.push(o):(o.measure(1/0,1/0),o.arrange()))}for(t=n.length,r=0;r<t;r++)(o=n[r]).measure(1/0,1/0),o.arrange();for(N(n),e.measure(1/0,1/0),e.arrange(),t=i.length,e=0;e<t;e++)(n=i[e]).measure(1/0,1/0),n.arrange();N(i)}function to(t,e,n,i,r,o,a,s,l,u){if(null!==t.Ka){null===t.ta&&x("No canvas specified"),void 0===a&&(a=null),void 0===s&&(s=null),void 0===l&&(l=!1),void 0===u&&(u=!1),io(t),t.ib.Vc(!0),t.vd=!0,t.$i=!0;var c=t.Ca;t.Ca=r;var h=t.Wa.s,d=h.length;try{var f=new Bt(o.x,o.y,i.width/r,i.height/r),p=f.copy();p.Co(n),vo(t,p),Jr(t),t.Fd(h,d,t,f),e.setTransform(1,0,0,1,0,0),e.clearRect(0,0,i.width,i.height),null!==s&&""!==s&&(e.fillStyle=s,e.ox(0,0,i.width,i.height));var g=t.Mb;e.scale(g,g);var m=Ue.alloc();m.reset(),m.translate(n.left,n.top),m.scale(r),0===o.x&&0===o.y||m.translate(-o.x,-o.y),e.setTransform(m.m11,m.m12,m.m21,m.m22,m.dx,m.dy),e.yc(),e instanceof ys&&ws(e,m.m11,m.m12,m.m21,m.m22,m.dx,m.dy),Ue.free(m),eo(t,e),e.globalAlpha=t.pb;var v=t.Qj("Grid");if(a){var y=new J,w=a.iterator;for(w.reset();w.next();){var b=w.value;b instanceof Sc&&(u||b.layer!==v)&&(b.Gj(),y.add(b))}for(u=0;u<d;u++)Cr(h[u],e,t,y,l);y.each((function(t){return t.Gj()}))}else for(y=0;y<d;y++){var S=h[y];S===v?u&&S.gc(e,t,!0):S.gc(e,t,l)}t.$i=!1,t.Yf&&ua(t.Yf,t)&&t.Vp()}finally{t.Ca=c,t.ib.Vc(!0),t.vd=!0,t.Fd(h,d,t,t.viewportBounds),vo(t),t.ib instanceof ys&&(t.ib.Nj.PA(),t.redraw())}}}function eo(t,e){null!==(t=t.Rg)&&(void 0!==t.imageSmoothingEnabled&&e.Wx(!!t.imageSmoothingEnabled),null!=(t=t.defaultFont)&&(e.font=t))}function no(t,e){var n,i=t instanceof Ml,r=t instanceof Mr;for(n in e){""===n&&x("Setting properties requires non-empty property names");var o=t,a=n;if(i||r){var s=n.indexOf(".");if(0<s){var l=n.substring(0,s);i?o=t.fb(l):null==(o=t[l])&&(o=t.toolManager[l]),C(o)?a=n.substr(s+1):x("Unable to find object named: "+l+" in "+t.toString()+" when trying to set property: "+n)}}if("_"!==a[0]&&!B(o,a)){if(r&&"ModelChanged"===a){t.Yw(e[a]);continue}if(r&&"Changed"===a){t.Pe(e[a]);continue}if(r&&B(t.toolManager,a))o=t.toolManager;else{if(r&&Eo(t,a)){t.Bj(a,e[a]);continue}if(t instanceof mf&&"Changed"===a){t.Pe(e[a]);continue}x('Trying to set undefined property "'+a+'" on object: '+o.toString())}}o[a]=e[n],"_"===a[0]&&o instanceof Ia&&o.Vw(a)}}function io(t){!1!==t.pn&&(t.pn=!1,ro(t,t.Aa,t.ya))}function ro(t,e,n){So(t);var i=t.Mb;t.ta.resize(e*i,n*i,e,n)&&(t.Fc=!0,t.ib.Vc(!0))}function oo(t){var e=t.ta;if(null===e||t.wo.w())return!0;var n=t.Aa,i=t.ya,r=t.Ka,o=!1,a=t.gf?t.Db:0,s=t.Be?t.Db:0,l=r.clientWidth||n+a,u=r.clientHeight||i+s,c=t.viewportBounds;r=c.x;var h=c.y,d=c.width,f=c.height;if(l===n+a&&u===i+s||(t.gf=!1,t.Be=!1,s=a=0,t.Aa=l,t.ya=u,o=t.pn=!0,So(t)),!t.hf||!t.viewportBounds.w())return!0;var p=t.ku,g=t.hu;if(t.Ee=!1,!(o||t.gf||t.Be||t.mn||t.nn))return!0;var m=t.documentBounds,v=0,y=0,w=0,b=0,x=c.width,S=c.height,P=t.rj;t.contentAlignment.sb()?(m.width>x&&(v=P.left,y=P.right),m.height>S&&(w=P.top,b=P.bottom)):(v=P.left,y=P.right,w=P.top,b=P.bottom);var k=m.width+v+y,C=m.height+w+b,A=k>l/(P=t.scale),M=C>u/P;if(!(o||t.gf||t.Be||A||M))return!0;v=m.x-v,l=c.x,y=m.right+y,u=c.right+a,w=m.y-w;var E=c.y;m=m.bottom+b,c=c.bottom+s;var L="1px";if(b="1px",t.scrollMode===Jo&&(A||M)&&(A&&t.hasHorizontalScrollbar&&t.allowHorizontalScroll&&(A=1,v+1<l&&(A=Math.max((l-v)*P+t.Aa,A)),y>u+1&&(A=Math.max((y-u)*P+t.Aa,A)),x+a+1<k&&(A=Math.max((k-x)*P+t.Aa,A)),L=A.toString()+"px"),M&&t.hasVerticalScrollbar&&t.allowVerticalScroll&&(A=1,w+1<E&&(A=Math.max((E-w)*P+t.ya,A)),m>c+1&&(A=Math.max((m-c)*P+t.ya,A)),S+s+1<C&&(A=Math.max((C-S)*P+t.ya,A)),b=A.toString()+"px")),M="1px"!==b,(A="1px"!==L)&&M||!A&&!M||(M&&(u-=t.Db),A&&(c-=t.Db),k<x+a||!t.hasHorizontalScrollbar||!t.allowHorizontalScroll||(a=1,v+1<l&&(a=Math.max((l-v)*P+t.Aa,a)),y>u+1&&(a=Math.max((y-u)*P+t.Aa,a)),x+1<k&&(a=Math.max((k-x)*P+t.Aa,a)),L=a.toString()+"px"),A="1px"!==L,a=t.ya,A!==t.Be&&(a=A?t.ya-t.Db:t.ya+t.Db),C<S+s||!t.hasVerticalScrollbar||!t.allowVerticalScroll||(s=1,w+1<E&&(s=Math.max((E-w)*P+a,s)),m>c+1&&(s=Math.max((m-c)*P+a,s)),S+1<C&&(s=Math.max((C-S)*P+a,s)),b=s.toString()+"px"),M="1px"!==b),t.qr&&A===t.Be&&M===t.gf)return n===t.Aa&&i===t.ya||t.bd(),!1;if(A!==t.Be&&(t.ya="1px"===L?t.ya+t.Db:Math.max(t.ya-t.Db,1),o=!0),t.Be=A,g.style.width=L,M!==t.gf&&(t.Aa="1px"===b?t.Aa+t.Db:Math.max(t.Aa-t.Db,1),o=!0,t.tn&&(s=pt.alloc(),M?(e.style.left=t.Db+"px",t.position=s.h(t.pa.x+t.Db/t.scale,t.pa.y)):(e.style.left="0px",t.position=s.h(t.pa.x-t.Db/t.scale,t.pa.y)),pt.free(s))),o&&So(t),t.gf=M,g.style.height=b,t.gu=!0,o&&(t.pn=!0),e=p.scrollLeft,t.hasHorizontalScrollbar&&t.allowHorizontalScroll&&(x+1<k?e=(t.position.x-v)*P:v+1<l?e=p.scrollWidth-p.clientWidth:y>u+1&&(e=t.position.x*P)),t.tn)switch(t.bu){case"negative":e=-(p.scrollWidth-e-p.clientWidth);break;case"reverse":e=p.scrollWidth-e-p.clientWidth}return p.scrollLeft=e,t.hasVerticalScrollbar&&t.allowVerticalScroll&&(S+1<C?p.scrollTop=(t.position.y-w)*P:w+1<E?p.scrollTop=p.scrollHeight-p.clientHeight:m>c+1&&(p.scrollTop=t.position.y*P)),l=t.Aa,u=t.ya,p.style.width=l+(t.gf?t.Db:0)+"px",p.style.height=u+(t.Be?t.Db:0)+"px",n===l&&i===u&&!t.animationManager.zb||(n=Bt.allocAt(r,h,d,f),t.onViewportBoundsChanged(n,t.viewportBounds,P,o),Bt.free(n),!1)}function ao(t,e,n){var i=e.layer;null!==i&&i.diagram===t&&(e.isSelected=!1,e.isHighlighted=!1,e.C(2),n&&e.Lj(),0<=(n=i.pc(-1,e,!1))&&t.cb(gn,"parts",i,e,null,n,null),null!==(t=e.layerChanged)&&t(e,i,null))}function so(t,e,n,i,r,o){if(!e.contains(n)&&(void 0===o&&(o=!1),!i||o||n.canMove()||n.canCopy()))if(void 0===r&&(r=uo(t)),n instanceof qc){if(e.add(n,t.Pd(r,n,n.location)),n instanceof gh&&(null!==n.placeholder||r.dragsMembers))for(o=n.memberParts;o.next();)so(t,e,o.value,i,r,r.groupsAlwaysMove);for(o=n.linksConnected;o.next();){var a=o.value;if(!e.contains(a)){var s=a.fromNode,l=a.toNode;null!==s&&e.contains(s)&&null!==l&&e.contains(l)&&so(t,e,a,i,r)}}if(r.dragsTree)for(n=n.Ou();n.next();)so(t,e,n.value,i,r)}else if(n instanceof xh)for(e.add(n,t.Pd(r,n)),n=n.labelNodes;n.next();)so(t,e,n.value,i,r);else n instanceof Yc||e.add(n,t.Pd(r,n,n.location))}function lo(t,e,n,i,r){if(null!==e&&0!==e.count){var o=pt.alloc(),a=pt.alloc();a.assign(n),isNaN(a.x)&&(a.x=0),isNaN(a.y)&&(a.y=0),(n=t.Mr)||ho(t,e);for(var s=T(),l=T(),u=e.iterator,c=pt.alloc();u.next();){var h=u.key,d=u.value;if(h.Zc()){var f=po(t,h,e);null!==f?s.push(new Sa(h,d,f)):r&&!h.canMove()||(f=d.point,o.assign(f),t.computeMove(h,o.add(a),i,c),h.location=c,void 0===d.shifted&&(d.shifted=new pt),d.shifted.assign(c.re(f)))}else u.key instanceof xh&&l.push(u.sa)}for(pt.free(c),r=s.length,u=0;u<r;u++)h=s[u],o.assign(h.info.point),void 0===h.Su.shifted&&(h.Su.shifted=new pt),h.node.location=o.add(h.Su.shifted);for(r=pt.alloc(),u=pt.alloc(),h=l.length,d=0;d<h;d++){var p=l[d];if((f=p.key)instanceof xh)if(f.suspendsRouting){f.Tg=null,c=f.fromNode;var g=f.toNode;if(null!==t.draggedLink&&i.dragsLink)if(g=p.value.point,null===f.dragComputation)e.add(f,t.Pd(i,f,a)),kh(f,a.x-g.x,a.y-g.y);else{p=pt.allocAt(0,0),(c=f.i(0))&&c.w()&&p.assign(c);var m=c=pt.alloc().assign(p).add(a);i.isGridSnapEnabled&&(i.isGridSnapRealtime||t.lastInput.up)&&co(t,f,c,m=pt.alloc(),i),c.assign(f.dragComputation(f,c,m)).re(p),e.add(f,t.Pd(i,f,c)),kh(f,c.x-g.x,c.y-g.y),pt.free(p),pt.free(c),m!==c&&pt.free(m)}else null!==c&&(r.assign(c.location),null!==(m=e.I(c))&&r.re(m.point)),null!==g&&(u.assign(g.location),null!==(m=e.I(g))&&u.re(m.point)),null!==c&&null!==g?r.Xa(u)?(c=p.value.point,(g=o).assign(r),g.re(c),e.add(f,t.Pd(i,f,r)),kh(f,g.x,g.y)):(f.suspendsRouting=!1,f.bb()):(p=p.value.point,c=null!==c?r:null!==g?u:a,e.add(f,t.Pd(i,f,c)),kh(f,c.x-p.x,c.y-p.y))}else null!==f.fromNode&&null!==f.toNode||(c=p.value.point,e.add(f,t.Pd(i,f,a)),kh(f,a.x-c.x,a.y-c.y))}pt.free(o),pt.free(a),pt.free(r),pt.free(u),N(s),N(l),n||(Jr(t),fo(t,e))}}function uo(t){var e=t.toolManager.findTool("Dragging");return null!==e?e.dragOptions:t.Wm}function co(t,e,n,i,r){if(void 0===r&&(r=uo(t)),i.assign(n),null!==e){var o=t.grid;t=(e=r.gridSnapCellSize).width,e=e.height;var a=r.gridSnapOrigin,s=a.x;if(a=a.y,r=r.gridSnapCellSpot,null!==o){var l=o.gridCellSize;isNaN(t)&&(t=l.width),isNaN(e)&&(e=l.height),o=o.gridOrigin,isNaN(s)&&(s=o.x),isNaN(a)&&(a=o.y)}(o=pt.allocAt(0,0)).yi(0,0,t,e,r),_e.No(n.x,n.y,s+o.x,a+o.y,t,e,i),pt.free(o)}}function ho(t,e){if(null!==e)for(t.Mr=!0,t=e.iterator;t.next();)(e=t.key)instanceof xh&&(e.suspendsRouting=!0)}function fo(t,e){if(null!==e){for(e=e.iterator;e.next();){var n=e.key;n instanceof xh&&(n.suspendsRouting=!1,Th(n)&&n.bb())}t.Mr=!1}}function po(t,e,n){if(null!==(e=e.containingGroup)){if(null!==(t=po(t,e,n)))return t;if(null!==(t=n.I(e)))return t}return null}function go(t,e,n){if(null!==e.diagram&&e.diagram!==t&&x("Cannot share a Layer with another Diagram: "+e+" of "+e.diagram),null===n?null!==e.diagram&&x("Cannot add an existing Layer to this Diagram again: "+e):(n.diagram!==t&&x("Existing Layer must be in this Diagram: "+n+" not in "+n.diagram),e===n&&x("Cannot move a Layer before or after itself: "+e)),e.diagram!==t){e=e.name,n=(t=t.Wa).count;for(var i=0;i<n;i++)t.M(i).name===e&&x("Cannot add Layer with the name '"+e+"'; a Layer with the same name is already present in this Diagram.")}}function mo(t,e,n){var i=t.animationManager;if(t.vb||t.ld)t.Ca=n,So(t),t.N(),t.Ee=!0,i.zb&&(Xi(i)||i.ce.add(i.H,"scale",e,t.Ca));else if(null===t.ta)t.Ca=n,So(t);else{t.vb=!0;var r=t.viewportBounds.copy(),o=t.Aa,a=t.ya,s=t.zoomPoint.x,l=t.zoomPoint.y,u=t.contentAlignment;isNaN(s)&&(u.$c()?u.Hf(ce)?s=0:u.Hf(he)&&(s=o-1):s=u.sb()?u.x*(o-1):o/2),isNaN(l)&&(u.$c()?u.Hf(ue)?l=0:u.Hf(de)&&(l=a-1):l=u.sb()?u.y*(a-1):a/2),null===t.scaleComputation||t.animationManager.defaultAnimation.isAnimating||(n=t.scaleComputation(t,n)),n<t.minScale&&(n=t.minScale),n>t.maxScale&&(n=t.maxScale),o=pt.allocAt(t.pa.x+s/e-s/n,t.pa.y+l/e-l/n),t.position=o,pt.free(o),t.Ca=n,So(t),t.vb=!1,t.onViewportBoundsChanged(r,t.viewportBounds,e,!1),Gr(t,!1),i.zb&&(Xi(i)||i.ce.add(i.H,"scale",e,t.Ca))}}function vo(t,e){var n=t.fe;if(null!==n&&n.visible){for(var i=Tt.alloc(),r=1,o=1,a=n.O.s,s=a.length,l=0;l<s;l++){var u=a[l],c=Math.abs(u.interval);2>c||(jl(u.figure)?o=o*c/_e.vx(o,c):r=r*c/_e.vx(r,c))}if(a=n.gridCellSize,i.h(o*a.width,r*a.height),void 0!==e)r=e.width,o=e.height,t=e.x,a=e.y;else{if(e=Bt.alloc(),t=t.viewportBounds,e.h(t.x,t.y,t.width,t.height),!e.w())return void Bt.free(e);r=e.width,o=e.height,t=e.x,a=e.y,Bt.free(e)}n.width=r+2*i.width,n.height=o+2*i.height,e=pt.alloc(),_e.No(t,a,0,0,i.width,i.height,e),e.offset(-i.width,-i.height),Tt.free(i),n.part.location=e,pt.free(e)}}function yo(t){var e=t.isModified;t.Tw!==e&&(t.Tw=e,t.R("Modified"))}function wo(t,e){for(var n=(e=e.O.s).length,i=0;i<n;i++)bo(t,e[i])}function bo(t,e){if(e instanceof rc){var n=e.element;if(null!==n&&n instanceof HTMLImageElement){n.Bg instanceof J&&n.Bg.add(t);var i=e.Eg;if(null!==i&&!0===i.sq&&null!==e.diagram&&e.diagram.Xn.add(e),n.hn)if(n=n.getAttribute("src")||"",null===(i=t.Og.I(n)))(i=[]).push(e),t.Og.add(n,i);else{for(t=0;t<i.length;t++)if(i[t]===e)return;i.push(e)}}}}function xo(t,e){if(e instanceof rc){var n=e.element;if(null!==n&&n instanceof HTMLImageElement&&n.hn){var i=n.getAttribute("src")||"",r=t.Og.I(i);if(null!==r)for(var o=0;o<r.length;o++)if(r[o]===e){r.splice(o,1),0===r.length&&(t.Og.remove(i),n.Fq&&n.removeEventListener("load",n.Fq),n.Yp&&n.removeEventListener("error",n.Yp),delete n.Fq,delete n.Yp,n.Bg instanceof J&&n.Bg.remove(t),oc(i));break}}}}function So(t){var e=t.pa,n=t.Ca;t.Rw.h(e.x,e.y,Math.max(t.Aa,0)/n,Math.max(t.ya,0)/n),t.vd=!0}function Po(t,e){t.Zi=!1;var n=t.Sp;n.D(e)||(n=n.copy(),t.Sp.assign(e),Gr(t,!1),t.R("DocumentBoundsChanged",void 0,n),t.Ee=!0,t.N())}function ko(t,e){for(var n=t.ai.iterator;n.next();)Co(t,n.value,e);t.layout&&(e?t.layout.isValidLayout=!1:t.layout.C())}function Co(t,e,n){if(null!==e){for(var i=e.gl.iterator;i.next();)Co(t,i.value,n);null!==e.layout&&(n?e.layout.isValidLayout=!1:e.layout.C())}}function Ao(t,e){if(t.xh&&!t.lt){var n=t.aa;t.aa=!0;var i=t.undoManager.transactionLevel,r=t.layout,o=t.animationManager;try{0===i&&(t.undoManager.isInternalTransaction=!0,t.Ea("Layout")),1>=i&&!o.defaultAnimation.isAnimating&&!o.zb&&(e||Vi(o,"Layout")),t.xh=!1;for(var a=t.ai.iterator;a.next();)Mo(t,a.value,e,i);r.isValidLayout||(!e||r.isRealtime||null===r.isRealtime||0===i?(r.doLayout(t),Jr(t),r.isValidLayout=!0):t.xh=!0)}finally{e=t.undoManager.isInternalTransaction,0===i&&(t.eb("Layout"),t.undoManager.isInternalTransaction=!1),!e||0!==i&&1!==i||Yi(o),t.aa=n}}}function Mo(t,e,n,i){if(null!==e){for(var r=e.gl.iterator;r.next();)Mo(t,r.value,n,i);null===(r=e.layout)||r.isValidLayout||(!n||r.isRealtime||0===i?(e.rh=!e.location.w(),r.doLayout(e),e.C(32),$r(t,e),r.isValidLayout=!0):t.xh=!0)}}function Eo(t,e){var n=t.hw.I(e);return null!==n?n:t.hw.I(e.toLowerCase())}function Lo(t,e){var n=t.iw.I(e);return null!==n||null!==(n=t.iw.I(e.toLowerCase()))?n:void x("Unknown DiagramEvent name: "+e)}function To(t){if(t.animationManager.isTicking)return!1;var e=t.currentTool;return e!==t.toolManager.findTool("Dragging")||(!t.Mr||e.isComplexRoutingRealtime)}function No(t,e,n,i){var r=t.Xh;if(null===r&&(t.Xh=r=new fd(t.avoidanceCellSize)),r.vs||r.group!==n||r.Yx!==i){if(r.Hx=Math.max(r.Os+1,Math.floor(t.avoidanceLimit/t.avoidanceCellSize.width)),r.Ix=Math.max(r.Os+1,Math.floor(t.avoidanceLimit/t.avoidanceCellSize.height)),null!==n&&(n=jo(t,n)),null===n){e=Bt.alloc(),t.computeOccupiedArea(e),e.Bc(100,100),r.initialize(e);for(var o=t.nodes;o.next();){var a=o.value,s=a.layer;null!==s&&s.visible&&!s.isTemporary&&Io(t,a,i,e)}Bt.free(e)}else{for(0<n.memberParts.count&&((e=t.computePartsBounds(n.memberParts,!1)).Bc(20,20),r.initialize(e)),e=Bt.alloc(),o=n.memberParts;o.next();)(a=o.value)instanceof qc&&Io(t,a,i,e);Bt.free(e)}r.group=n,r.Yx=i,r.vs=!1}else e&&md(r);return r}function jo(t,e){return e.avoidable&&!e.isLinkLabel?e:null!==e.containingGroup?jo(t,e.containingGroup):null}function Io(t,e,n,i){if(e!==n&&e.isVisible())if(e.avoidable&&!e.isLinkLabel){e=e.getAvoidableRect(i),t=t.Xh;var r=e.x,o=e.y;if(pd(t,r,o))for(n=(o-t.Od)/t.sc|0,i=Math.min((r+e.width-t.Nd)/t.rc|0,t.di),e=Math.min((o+e.height-t.Od)/t.sc|0,t.ei),r=(r-t.Nd)/t.rc|0;r<=i;r++)if((o=t.ac[r]).fill)o.fill(Sd,n,e+1);else for(var a=n;a<=e;a++)o[a]=Sd}else if(e instanceof gh)for(e=e.memberParts;e.next();)(r=e.value)instanceof qc&&Io(t,r,n,i)}function Bo(t,e){null===t.Xh||t.Xh.vs||void 0!==e&&(!e.avoidable||e.isLinkLabel)||(t.Xh.vs=!0)}function Oo(t){-1===t.vk&&(t.vk=w((function(){if(-1!==t.vk&&(t.ug(),null!==t.lastInput.event)){var e=t.computeAutoScrollPosition(t.wp);e.Xa(t.position)||(t.position=e,t.lastInput.documentPoint=t.Ps(t.wp),t.doMouseMove(),t.Zi=!0,e=Bt.alloc(),t.computeBounds(e),e.ed(t.documentBounds),Po(t,e),Bt.free(e),t.Fc=!0,t.bd(),Oo(t))}}),t.vp))}function Do(t,e,n){function i(){var t=+new Date;for(o=!0,a.reset();a.next();)if(!a.value[0].al){o=!1;break}o||t-u>l?e(n,r,s):m.requestAnimationFrame(i)}for(var r=n.callback,o=!0,a=t.Og.iterator;a.next();)if(!a.value[0].al){o=!1;break}if("function"!=typeof r||o)return e(n,r,t);var s=t,l=n.callbackTimeout||300,u=+new Date;return m.requestAnimationFrame((function(){i()})),null}function Ro(t,e,n,i){if(t.animationManager.Cc(),t.bd(),null===t.ta)return null;"object"!=typeof e&&x("properties argument must be an Object.");var r=e.size||null,o=e.scale||null;void 0!==e.scale&&isNaN(e.scale)&&(o="NaN");var a=e.maxSize;void 0===e.maxSize&&(a="SVG"===n?new Tt(1/0,1/0):new Tt(2e3,2e3));var s=e.position||null,l=e.parts||null,u=void 0===e.padding?1:e.padding,c=e.background||null,h=e.omitTemporary;void 0===h&&(h=!0);var d=e.document||document,f=e.elementFinished||null,p=e.showTemporary;void 0===p&&(p=!h),void 0===(e=e.showGrid)&&(e=p),null!==r&&isNaN(r.width)&&isNaN(r.height)&&(r=null),"number"==typeof u?u=new Xt(u):u instanceof Xt||x("MakeImage padding must be a Margin or a number."),u.left=Math.max(u.left,0),u.right=Math.max(u.right,0),u.top=Math.max(u.top,0),u.bottom=Math.max(u.bottom,0),t.ib.Vc(!0);var g=(h=new js(null,d,void 0,!0)).context;if(!(r||o||l||s))return h.width=t.Aa+Math.ceil(u.left+u.right),h.height=t.ya+Math.ceil(u.top+u.bottom),"SVG"===n?null===i?null:(i.resize(h.width,h.height,h.width,h.height),i.ownerDocument=d,i.hs=f,to(t,i.context,u,new Tt(h.width,h.height),t.Ca,t.pa,l,c,p,e),i.context):(t.Xm=!1,to(t,g,u,new Tt(h.width,h.height),t.Ca,t.pa,l,c,p,e),t.Xm=!0,h.context);var m=t.Pp,v=t.documentBounds.copy();if(v.Fv(t.yb),p)for(var y=t.Wa.s,w=y.length,b=0;b<w;b++){var S=y[b];if(S.visible&&S.isTemporary)for(var P=(S=S.Pa.s).length,k=0;k<P;k++){var C=S[k];C.isInDocumentBounds&&C.isVisible()&&((C=C.actualBounds).w()&&v.ed(C))}}if(y=new pt(v.x,v.y),null!==l){for(w=new Bt(0,0,0,0),b=!0,(S=l.iterator).reset();S.next();)(P=S.value)instanceof Sc&&(null!==(k=P.layer)&&!k.visible||null!==k&&!p&&k.isTemporary||!P.isVisible()||(P=P.actualBounds).w()&&(b?(b=!1,w.assign(P)):w.ed(P)));v.width=w.width,v.height=w.height,y.x=w.x,y.y=w.y}return null!==s&&s.w()&&(y=s,o||(o=m)),w=s=0,null!==u&&(s=u.left+u.right,w=u.top+u.bottom),b=S=0,null!==r&&(S=r.width,b=r.height,isFinite(S)&&(S=Math.max(0,S-s)),isFinite(b)&&(b=Math.max(0,b-w))),null!==r&&null!==o?("NaN"===o&&(o=m),r.w()?(r=S,v=b):isNaN(b)?(r=S,v=v.height*o):(r=v.width*o,v=b)):null!==r?r.w()?(o=Math.min(S/v.width,b/v.height),r=S,v=b):isNaN(b)?(o=S/v.width,r=S,v=v.height*o):(o=b/v.height,r=v.width*o,v=b):null!==o?"NaN"===o&&a.w()?(o=Math.min((a.width-s)/v.width,(a.height-w)/v.height))>m?(o=m,r=v.width,v=v.height):(r=a.width,v=a.height):(r=v.width*o,v=v.height*o):(o=m,r=v.width,v=v.height),null!==u?(r+=s,v+=w):u=new Xt(0),null!==a&&(m=a.width,a=a.height,isNaN(m)&&(m=2e3),isNaN(a)&&(a=2e3),isFinite(m)&&(r=Math.min(r,m)),isFinite(a)&&(v=Math.min(v,a))),h.width=Math.ceil(r),h.height=Math.ceil(v),"SVG"===n?null===i?null:(i.resize(h.width,h.height,h.width,h.height),i.ownerDocument=d,i.hs=f,to(t,i.context,u,new Tt(Math.ceil(r),Math.ceil(v)),o,y,l,c,p,e),i.context):(t.Xm=!1,to(t,g,u,new Tt(Math.ceil(r),Math.ceil(v)),o,y,l,c,p,e),t.Xm=!0,h.context)}vr.className="AnimationTrigger",vr.Default=br,vr.Immediate=xr,vr.Bundled=Sr,(e=Pr.prototype).clear=function(){for(var t=this.Pa,e=0;e<t.length;e++){var n=t.s[e];n.Ig=null,_a(n)}t.clear(),this.Zq.length=0},e.Xe=function(t){this.H=t},e.toString=function(t){void 0===t&&(t=0);var e='Layer "'+this.name+'"';if(0>=t)return e;for(var n=0,i=0,r=0,o=0,a=0,s=this.Pa.iterator;s.next();){var l=s.value;l instanceof gh?r++:l instanceof qc?i++:l instanceof xh?o++:l instanceof Yc?a++:n++}if(s="",0<n&&(s+=n+" Parts "),0<i&&(s+=i+" Nodes "),0<r&&(s+=r+" Groups "),0<o&&(s+=o+" Links "),0<a&&(s+=a+" Adornments "),1<t)for(t=this.Pa.iterator;t.next();)s+="\n "+(n=t.value).toString(),null!==(i=n.data)&&et(i)&&(s+=" #"+et(i)),n instanceof qc?s+=" "+I(i):n instanceof xh&&(s+=" "+I(n.fromNode)+" "+I(n.toNode));return e+" "+this.Pa.count+": "+s},e.ic=function(t,e,n){if(void 0===e&&(e=null),void 0===n&&(n=null),!1===this.Uh)return null;var i=!1;null!==this.diagram&&this.diagram.viewportBounds.ca(t)&&(i=!0);for(var r=pt.alloc(),o=this.Pa.s,a=o.length;a--;){var s=o[a];if((!0!==i||!1!==zc(s))&&s.isVisible()&&(r.assign(t),yt(r,s.oe),null!==(s=s.ic(r,e,n))&&(null!==e&&(s=e(s)),null!==s&&(null===n||n(s)))))return pt.free(r),s}return pt.free(r),null},e.ji=function(t,e,n,i){if(void 0===e&&(e=null),void 0===n&&(n=null),i instanceof K||i instanceof J||(i=new J),!1===this.Uh)return i;var r=!1;null!==this.diagram&&this.diagram.viewportBounds.ca(t)&&(r=!0);for(var o=pt.alloc(),a=this.Pa.s,s=a.length;s--;){var l=a[s];if((!0!==r||!1!==zc(l))&&l.isVisible()){o.assign(t),yt(o,l.oe);var u=l;l.ji(o,e,n,i)&&(null!==e&&(u=e(u)),null===u||null!==n&&!n(u)||i.add(u))}}return pt.free(o),i},e.Cf=function(t,e,n,i,r){if(void 0===e&&(e=null),void 0===n&&(n=null),void 0===i&&(i=!1),r instanceof K||r instanceof J||(r=new J),!1===this.Uh)return r;var o=!1;null!==this.diagram&&this.diagram.viewportBounds.Re(t)&&(o=!0);for(var a=this.Pa.s,s=a.length;s--;){var l=a[s];if((!0!==o||!1!==zc(l))&&l.isVisible()){var u=l;l.Cf(t,e,n,i,r)&&(null!==e&&(u=e(u)),null===u||null!==n&&!n(u)||r.add(u))}}return r},e.Nu=function(t,e,n,i,r,o,a){if(!1===this.Uh)return r;for(var s=this.Pa.s,l=s.length;l--;){var u=s[l];if((!0!==a||!1!==zc(u))&&o(u)&&u.isVisible()){var c=u;u.Cf(t,e,n,i,r)&&(null!==e&&(c=e(c)),null===c||null!==n&&!n(c)||r.add(c))}}return r},e.og=function(t,e,n,i,r,o){if(void 0===n&&(n=null),void 0===i&&(i=null),void 0===r&&(r=!0),!1!==r&&!0!==r&&((r instanceof K||r instanceof J)&&(o=r),r=!0),o instanceof K||o instanceof J||(o=new J),!1===this.Uh)return o;var a=!1;null!==this.diagram&&this.diagram.viewportBounds.ca(t)&&(a=!0);for(var s=pt.alloc(),l=pt.alloc(),u=this.Pa.s,c=u.length;c--;){var h=u[c];if((!0!==a||!1!==zc(h))&&h.isVisible()){s.assign(t),yt(s,h.oe),l.h(t.x+e,t.y),yt(l,h.oe);var d=h;h.og(s,l,n,i,r,o)&&(null!==n&&(d=n(d)),null===d||null!==i&&!i(d)||o.add(d))}}return pt.free(s),pt.free(l),o},e.Fd=function(t,e){if(this.visible){var n=this.Pa.s,i=n.length;if(0!==i){t=T();for(var r=T(),o=0;o<i;o++){var a=n[o];if(a.vw=o,a instanceof xh){if(!1===a.fd)continue}else if(a instanceof Yc&&null!==a.adornedPart)continue;var s=a.actualBounds;a.isVisible()&&Ut(s,e)?(a.Fd(!0),t.push(a)):(a.Fd(!1),null!==a.adornments&&0<a.adornments.count&&r.push(a))}for(e=0;e<t.length;e++)for(kc(n=t[e]),n=n.adornments;n.next();)(i=n.value).measure(1/0,1/0),i.arrange(),i.Fd(!0);for(e=0;e<r.length;e++)kc(r[e]);N(t),N(r)}}},e.gc=function(t,e,n){if(this.visible&&0!==this.pb&&(void 0===n&&(n=!0),n||!this.isTemporary)){var i=(n=this.Pa.s).length;if(0!==i){if(t.isTemporary)for(var r=0;r<i;r++)n[r].Gj();r=kr(this,t);var o=this.Zq;o.length=0;for(var a=e.scale,s=Bt.alloc(),l=0;l<i;l++)this.Oj(t,n[l],e,o,a,s,!0);if(Bt.free(s),t.isTemporary)for(e=0;e<i;e++)n[e].Gj();t.globalAlpha=r}}},e.Oj=function(t,e,n,i,r,o,a){if(a&&!zc(e))t.Hs(e);else{if(null!==i&&e instanceof xh&&(e.isOrthogonal&&i.push(e),!1===e.fd))return void t.Hs(e);for(a=!1,i=e.containingGroup;null!==i;)a?null!==i.tb&&o.Ex(i.tb):null!==i.tb&&(a=!0,o.assign(i.tb)),i=i.containingGroup;var s=e.actualBounds;if(i=!1,a&&e.isVisible()){if(!o.Yc(s))return void t.Hs(e);i=!o.Re(s)}i&&(t.save(),t instanceof ys?t.bk=o.copy():(t.beginPath(),t.rect(o.x,o.y,o.width,o.height),t.clip())),s.width*r>n.Oq||s.height*r>n.Oq?e.gc(t,n):(r=e.actualBounds,o=e.naturalBounds,0===r.width||0===r.height||isNaN(r.x)||isNaN(r.y)||!e.isVisible()||(n=e.transform,null!==e.areaBackground&&(Za(e,t,e.areaBackground,!0,!0,o,r),t.fillRect(r.x,r.y,r.width,r.height)),null===e.areaBackground&&null===e.background&&(Za(e,t,"rgba(0,0,0,0.3)",!0,!1,o,r),t.fillRect(r.x,r.y,r.width,r.height)),null!==e.background&&(t.transform(n.m11,n.m12,n.m21,n.m22,n.dx,n.dy),Za(e,t,e.background,!0,!1,o,r),t.fillRect(0,0,o.width/2,o.height/2),n.ws()||(e=1/(n.m11*n.m22-n.m12*n.m21),t.transform(n.m22*e,-n.m12*e,-n.m21*e,n.m11*e,e*(n.m21*n.dy-n.m22*n.dx),e*(n.m12*n.dx-n.m11*n.dy)))))),i&&(t.restore(),t.Vc(!0))}},e.g=function(t,e,n,i,r){var o=this.diagram;null!==o&&o.cb(fn,t,this,e,n,i,r)},e.oi=function(t,e,n){var i=this.Pa;if(e.Ig=this,null===this&&_a(e),t>=i.count)t=i.count;else if(i.M(t)===e)return-1;return i.Gb(t,e),e.Vo(n),null!==(i=this.diagram)&&(n?i.N():i.oi(e)),Ar(this,t,e),t},e.pc=function(t,e,n){if(!n&&e.layer!==this&&null!==e.layer)return e.layer.pc(t,e,n);var i=this.Pa;if(0>t||t>=i.length){if(0>(t=i.indexOf(e)))return-1}else if(i.M(t)!==e&&0>(t=i.indexOf(e)))return-1;return e.Wo(n),i.mb(t),null!==(i=this.diagram)&&(n?i.N():i.pc(e)),e.Ig=null,_a(e),t},d.Object.defineProperties(Pr.prototype,{parts:{get:function(){return this.Pa.iterator}},partsBackwards:{get:function(){return this.Pa.iteratorBackwards}},diagram:{get:function(){return this.H}},name:{get:function(){return this.xa},set:function(t){var e=this.xa;if(e!==t){var n=this.diagram;if(null!==n)for(""===e&&x("Cannot rename default Layer to: "+t),n=n.layers;n.next();)n.value.name===t&&x("Layer.name is already present in this diagram: "+t);for(this.xa=t,this.g("name",e,t),t=this.Pa.iterator;t.next();)t.value.layerName=this.xa}}},opacity:{get:function(){return this.pb},set:function(t){var e=this.pb;e!==t&&((0>t||1<t)&&P(t,"0 <= value <= 1",Pr,"opacity"),this.pb=t,this.g("opacity",e,t),null!==(t=this.diagram)&&t.N())}},isTemporary:{get:function(){return this.o},set:function(t){var e=this.o;e!==t&&((this.o=t)&&(this.isInDocumentBounds=!1),this.g("isTemporary",e,t))}},visible:{get:function(){return this.u},set:function(t){var e=this.u;if(e!==t){for(this.u=t,this.g("visible",e,t),e=this.Pa.iterator;e.next();)e.value.Zb(t);null!==(t=this.diagram)&&t.N()}}},pickable:{get:function(){return this.Uh},set:function(t){var e=this.Uh;e!==t&&(this.Uh=t,this.g("pickable",e,t))}},isInDocumentBounds:{get:function(){return this.j},set:function(t){this.j!==t&&(this.j=t,null!==this.diagram&&this.diagram.Ya())}},allowCopy:{get:function(){return this.Fi},set:function(t){var e=this.Fi;e!==t&&(this.Fi=t,this.g("allowCopy",e,t))}},allowDelete:{get:function(){return this.Gi},set:function(t){var e=this.Gi;e!==t&&(this.Gi=t,this.g("allowDelete",e,t))}},allowTextEdit:{get:function(){return this.Pi},set:function(t){var e=this.Pi;e!==t&&(this.Pi=t,this.g("allowTextEdit",e,t))}},allowGroup:{get:function(){return this.Hi},set:function(t){var e=this.Hi;e!==t&&(this.Hi=t,this.g("allowGroup",e,t))}},allowUngroup:{get:function(){return this.Qi},set:function(t){var e=this.Qi;e!==t&&(this.Qi=t,this.g("allowUngroup",e,t))}},allowLink:{get:function(){return this.Ii},set:function(t){var e=this.Ii;e!==t&&(this.Ii=t,this.g("allowLink",e,t))}},allowRelink:{get:function(){return this.Ki},set:function(t){var e=this.Ki;e!==t&&(this.Ki=t,this.g("allowRelink",e,t))}},allowMove:{get:function(){return this.Ji},set:function(t){var e=this.Ji;e!==t&&(this.Ji=t,this.g("allowMove",e,t))}},allowReshape:{get:function(){return this.Li},set:function(t){var e=this.Li;e!==t&&(this.Li=t,this.g("allowReshape",e,t))}},allowResize:{get:function(){return this.Mi},set:function(t){var e=this.Mi;e!==t&&(this.Mi=t,this.g("allowResize",e,t))}},allowRotate:{get:function(){return this.Ni},set:function(t){var e=this.Ni;e!==t&&(this.Ni=t,this.g("allowRotate",e,t))}},allowSelect:{get:function(){return this.Oi},set:function(t){var e=this.Oi;e!==t&&(this.Oi=t,this.g("allowSelect",e,t))}}}),Pr.prototype.findObjectsNear=Pr.prototype.og,Pr.prototype.findObjectsIn=Pr.prototype.Cf,Pr.prototype.findObjectsAt=Pr.prototype.ji,Pr.prototype.findObjectAt=Pr.prototype.ic,Pr.className="Layer",Mr.prototype.clear=function(){this.animationManager.Cc(),this.model.clear(),Uo=null,Ho="",Lr(this,!1),this.Xn.clear(),oc(),this.Og.clear(),this.Xh=null,this.Ya(),this.Va(),this.N()},Mr.prototype.reset=function(){this.clear(),this.vb=!0,Er(this),So(this),this.Wg=!0,Or(this),this.layout=new Nd,this.Wg=!1,this.model=Of(),this.model.undoManager=new vn,this.vb=this.rn=!1,this.N()},Mr.prototype.setRTL=function(t){null===(t=void 0===t?this.div:t)&&(t=m.document.body);var e=b("div");e.dir="rtl",e.style.cssText="font-size: 14px; width: 1px; height: 1px; position: absolute; top: -1000px; overflow: scroll;",e.textContent="A",t.appendChild(e);var n="reverse";0<e.scrollLeft?n="default":(e.scrollLeft=1,0===e.scrollLeft&&(n="negative")),t.removeChild(e),this.bu=n},Mr.prototype.setScrollWidth=function(t){null===(t=void 0===t?this.div:t)&&(t=m.document.body);var e=0;if(Go){var n=zo;e=yr,null===n&&((n=zo=b("p")).style.width="100%",n.style.height="200px",n.style.boxSizing="content-box",(e=yr=b("div")).style.position="absolute",e.style.visibility="hidden",e.style.width="200px",e.style.height="150px",e.style.boxSizing="content-box",e.appendChild(n)),e.style.overflow="hidden",t.appendChild(e);var i=n.offsetWidth;e.style.overflow="scroll",i===(n=n.offsetWidth)&&(n=e.clientWidth),t.removeChild(e),0!==(e=i-n)||F||(e=11)}this.Db=e,this.Gw=!0},Mr.prototype.qb=function(t){t.classType===Mr&&(this.autoScale=t)},Mr.prototype.toString=function(t){void 0===t&&(t=0);var e="";if(this.div&&this.div.id&&(e=this.div.id),e='Diagram "'+e+'"',0>=t)return e;for(var n=this.Wa.iterator;n.next();)e+="\n "+n.value.toString(t-1);return e},Mr.prototype.addEventListener=function(t,e,n,i){t.addEventListener(e,n,{capture:i,passive:!1})},Mr.prototype.removeEventListener=function(t,e,n,i){t.removeEventListener(e,n,{capture:i})},Mr.prototype.computePixelRatio=function(){return null!==this.Yh?this.Yh:m.devicePixelRatio||1},Mr.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},Mr.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},Mr.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},Mr.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},Mr.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},Mr.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},Mr.prototype.doFocus=function(){this.focus()},Mr.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var t=m.scrollX||m.pageXOffset,e=m.scrollY||m.pageYOffset;this.ta.focus(),m.scrollTo(t,e)}},Mr.prototype.Oy=function(){this.H.R("GainedFocus")},Mr.prototype.Ny=function(){this.H.R("LostFocus")},Mr.prototype.kx=function(t){if(null!==this.ta){var e=this.ku,n=this.hu;this.qr=!0;var i=this.documentBounds,r=this.viewportBounds,o=this.rj,a=i.x-o.left,s=i.y-o.top,l=i.width+o.left+o.right,u=i.height+o.top+o.bottom,c=i.right+o.right;o=i.bottom+o.bottom;var h=r.x;i=r.y;var d=r.width,f=r.height,p=r.right,g=r.bottom;r=this.scale;var m=t.scrollLeft;if(this.tn)switch(this.bu){case"negative":m=m+t.scrollWidth-t.clientWidth;break;case"reverse":m=t.scrollWidth-m-t.clientWidth}var v=m;d<l||f<u?(m=pt.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==v&&(m.x=v/r+a,this.ju=v),this.allowVerticalScroll&&this.lu!==t.scrollTop&&(m.y=t.scrollTop/r+s,this.lu=t.scrollTop),this.position=m,pt.free(m),this.Ee=this.qr=!1):(m=pt.alloc(),t.uy&&this.allowHorizontalScroll&&(a<h&&(this.position=m.h(v+a,this.position.y)),c>p&&(this.position=m.h(-(e.scrollWidth-this.Aa)+v-this.Aa/r+c,this.position.y))),t.vy&&this.allowVerticalScroll&&(s<i&&(this.position=m.h(this.position.x,t.scrollTop+s)),o>g&&(this.position=m.h(this.position.x,-(e.scrollHeight-this.ya)+t.scrollTop-this.ya/r+o))),pt.free(m),this.vd=!0,this.Ee=this.qr=!1,i=this.documentBounds,r=this.viewportBounds,c=i.right,p=r.right,o=i.bottom,g=r.bottom,a=i.x,h=r.x,s=i.y,i=r.y,d>=l&&a>=h&&c<=p&&(n.style.width="1px"),f>=u&&s>=i&&o<=g&&(n.style.height="1px"))}},Mr.prototype.computeBounds=function(t){return void 0===t&&(t=new Bt),Jr(this),zr(this,t)},Mr.prototype.computePartsBounds=function(t,e){void 0===e&&(e=!1);var n=null;if(A(t))for(var i=0;i<t.length;i++){var r=t[i];!e&&r instanceof xh||(r.Va(),null===n?n=r.actualBounds.copy():n.ed(r.actualBounds))}else for(t=t.iterator;t.next();)i=t.value,!e&&i instanceof xh||(i.Va(),null===n?n=i.actualBounds.copy():n.ed(i.actualBounds));return null===n?new Bt(NaN,NaN,0,0):n},Mr.prototype.zoomToFit=function(){var t=this.sj;this.sj=Jo,this.scale=Ur(this,Zo),t!==Jo&&(Gr(this,!1),Hr(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=t},(e=Mr.prototype).BA=function(t,e){void 0===e&&(e=Zo);var n=t.width,i=t.height;if(!(0===n||0===i||isNaN(n)&&isNaN(i))){var r=1;if(e===Zo||e===Wo)if(isNaN(n))r=this.viewportBounds.height*this.scale/i;else if(isNaN(i))r=this.viewportBounds.width*this.scale/n;else{r=this.Aa;var o=this.ya;r=e===Wo?o/i>r/n?(o-(this.Be?this.Db:0))/i:(r-(this.gf?this.Db:0))/n:Math.min(o/i,r/n)}this.scale=r,this.position=new pt(t.x,t.y)}},e.Jy=function(t,e){this.Va();var n=this.documentBounds,i=this.viewportBounds;this.position=new pt(n.x+(t.x*n.width+t.offsetX)-(e.x*i.width-e.offsetX),n.y+(t.y*n.height+t.offsetY)-(e.y*i.height-e.offsetY))},e.zz=function(t){if(t instanceof Ia){this.eq=t;var e=pt.alloc();this.fq=this.op(t.ga(te,e)),pt.free(e)}else this.eq=null,this.fq=at},e.Ol=function(t,e){if(void 0===e&&(e=!0),e){if((t=_r(this,t,(function(t){return t.part}),(function(t){return t.canSelect()})))instanceof Sc)return t}else if((t=_r(this,t,(function(t){return t.part})))instanceof Sc)return t;return null},e.ic=function(t,e,n){void 0===e&&(e=null),void 0===n&&(n=null),Jr(this);for(var i=this.Wa.iteratorBackwards;i.next();){var r=i.value;if(r.visible&&null!==(r=r.ic(t,e,n)))return r}return null},e.lz=function(t,e,n){return void 0===e&&(e=!0),function(t,e,n,i,r){for(void 0===n&&(n=null),void 0===i&&(i=null),r instanceof K||r instanceof J||(r=new J),Jr(t),t=t.Wa.iteratorBackwards;t.next();){var o=t.value;o.visible&&!o.isTemporary&&o.ji(e,n,i,r)}return r}(this,t,(function(t){return t.part}),e?function(t){return t instanceof Sc&&t.canSelect()}:null,n)},e.ji=function(t,e,n,i){void 0===e&&(e=null),void 0===n&&(n=null),i instanceof K||i instanceof J||(i=new J),Jr(this);for(var r=this.Wa.iteratorBackwards;r.next();){var o=r.value;o.visible&&o.ji(t,e,n,i)}return i},e.ux=function(t,e,n,i){return void 0===e&&(e=!1),void 0===n&&(n=!0),function(t,e,n,i,r){var o=null;for(void 0===o&&(o=null),void 0===n&&(n=null),void 0===i&&(i=!1),r instanceof K||r instanceof J||(r=new J),Jr(t),t=t.Wa.iteratorBackwards;t.next();){var a=t.value;a.visible&&!a.isTemporary&&a.Cf(e,o,n,i,r)}return r}(this,t,(function(t){return t instanceof Sc&&(!n||t.canSelect())}),e,i)},e.Cf=function(t,e,n,i,r){void 0===e&&(e=null),void 0===n&&(n=null),void 0===i&&(i=!1),r instanceof K||r instanceof J||(r=new J),Jr(this);for(var o=this.Wa.iteratorBackwards;o.next();){var a=o.value;a.visible&&a.Cf(t,e,n,i,r)}return r},e.Nu=function(t,e,n,i,r,o){var a=new J;Jr(this);for(var s=this.Wa.iteratorBackwards;s.next();){var l=s.value;l.visible&&l.Nu(t,e,n,i,a,r,o)}return a},e.mz=function(t,e,n,i,r){return void 0===n&&(n=!0),void 0===i&&(i=!0),function(t,e,n,i,r,o){var a=null;void 0===a&&(a=null),void 0===i&&(i=null),void 0===r&&(r=!0),!1!==r&&!0!==r&&((r instanceof K||r instanceof J)&&(o=r),r=!0);for(o instanceof K||o instanceof J||(o=new J),Jr(t),t=t.Wa.iteratorBackwards;t.next();){var s=t.value;s.visible&&!s.isTemporary&&s.og(e,n,a,i,r,o)}return o}(this,t,e,(function(t){return t instanceof Sc&&(!i||t.canSelect())}),n,r)},e.og=function(t,e,n,i,r,o){void 0===n&&(n=null),void 0===i&&(i=null),void 0===r&&(r=!0),!1!==r&&!0!==r&&((r instanceof K||r instanceof J)&&(o=r),r=!0),o instanceof K||o instanceof J||(o=new J),Jr(this);for(var a=this.Wa.iteratorBackwards;a.next();){var s=a.value;s.visible&&s.og(t,e,n,i,r,o)}return o},Mr.prototype.acceptEvent=function(t){return Zr(this,t,t instanceof MouseEvent)},Mr.prototype.Qz=function(t){var e=this.H;if(!this.H.isEnabled)return!1;var n=Zr(e,t,!1);switch(n.key=String.fromCharCode(t.which),n.down=!0,t.which){case 8:n.key="Backspace";break;case 33:n.key="PageUp";break;case 34:n.key="PageDown";break;case 35:n.key="End";break;case 36:n.key="Home";break;case 37:n.key="Left";break;case 38:n.key="Up";break;case 39:n.key="Right";break;case 40:n.key="Down";break;case 45:n.key="Insert";break;case 46:n.key="Del";break;case 48:n.key="0";break;case 187:case 61:case 107:n.key="Add";break;case 189:case 173:case 109:n.key="Subtract";break;case 27:n.key="Esc"}return e.doKeyDown(),Yr(n,t)},Mr.prototype.Rz=function(t){var e=this.H;if(!e.isEnabled)return!1;var n=Zr(e,t,!1);switch(n.key=String.fromCharCode(t.which),n.up=!0,t.which){case 8:n.key="Backspace";break;case 33:n.key="PageUp";break;case 34:n.key="PageDown";break;case 35:n.key="End";break;case 36:n.key="Home";break;case 37:n.key="Left";break;case 38:n.key="Up";break;case 39:n.key="Right";break;case 40:n.key="Down";break;case 45:n.key="Insert";break;case 46:n.key="Del"}return e.doKeyUp(),Yr(n,t)},Mr.prototype.bz=function(t){var e=this.H;if(!e.isEnabled)return!1;var n=Zr(e,t,!0);return null!==e.mouseEnter&&e.mouseEnter(n),e.currentTool.standardMouseOver(),Yr(n,t)},Mr.prototype.cz=function(t){var e=this.H;if(!e.isEnabled)return!1;var n=Zr(e,t,!0);return null!==e.mouseLeave&&e.mouseLeave(n),Yr(n,t)},Mr.prototype.getMouse=function(t){var e=this.ta;if(null===e)return new pt(0,0);var n=e.getBoundingClientRect();return e=t.clientX-this.Aa/n.width*n.left,t=t.clientY-this.ya/n.height*n.top,null!==this.Ab?yt(new pt(e,t),this.Ab):new pt(e,t)},Mr.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))},Mr.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},(e=Mr.prototype).Pz=function(){return this.kg},e.Xy=function(t){void 0===t&&(t=null);var e=this.animationManager,n=e.isEnabled;e.Cc(),e.isEnabled=!1,Qr(this),this.hf=!1,this.du=new pt(NaN,NaN),e.isEnabled=n,this.ld=!0;var i=this;null!==t&&w((function(){i.ld=!1,Vi(e,"Model"),t(i)}),1)},e.$b=function(t){if(void 0===t&&(t=!1),!0!==this.kg&&!(this.vb||!1===t&&this.ld)){this.kg=!0;var e=this;m.requestAnimationFrame((function(){e.kg&&e.bd()}))}},e.bd=function(){this.fn&&!this.kg||(this.fn&&(this.fn=!1),Qr(this))},e.Nv=function(t,e){for(t.reset();t.next();){var n=t.value;!n.Zc()||n instanceof gh||(n.si()?(n.measure(1/0,1/0),n.arrange()):e.add(n))}for(t.reset();t.next();)(n=t.value)instanceof gh&&n.isVisible()&&$r(this,n);for(t.reset();t.next();)(n=t.value)instanceof xh&&n.isVisible()&&(n.si()?(n.measure(1/0,1/0),n.arrange()):e.add(n));for(t.reset();t.next();)(n=t.value)instanceof Yc&&n.isVisible()&&(n.si()?(n.measure(1/0,1/0),n.arrange()):e.add(n))},e.Fd=function(t,e,n,i){if(this.vd||this.animationManager.isAnimating)for(var r=0;r<e;r++)t[r].Fd(n,i)},e.gc=function(t){if(null!==this.Ka)if(null===this.ta&&x("No canvas specified"),"svg"===this.nl){if(null!==this.Ka){var e=this.animationManager;if(!e.zb&&(!e.isAnimating||e.isTicking)){io(this);var n=this.Aa,i=this.ya;if(t.Gv.resize(n,i,n,i),i=(n=this.Wa.s).length,this.Fd(n,i,this,this.viewportBounds),this.Fc||e.isAnimating){e=this.pa;var r=this.Ca,o=Math.round(e.x*r)/r,a=Math.round(e.y*r)/r,s=this.Ab;for(s.reset(),1!==r&&s.scale(r),0===e.x&&0===e.y||s.translate(-o,-a),t.ti=null,ws(t,s.m11,s.m12,s.m21,s.m22,s.dx,s.dy),1!==this.pb&&(t.globalAlpha=this.pb),eo(this,t),e=this.Mb,this.ta.context.setTransform(e,0,0,e,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya),e=0;e<i;e++)n[e].gc(t,this);t=!1,this.Yf?ua(this.Yf,this)&&(t=this.Vp()):t=!0,t&&(Ue.prototype.Cd=Ue.prototype.Eu),this.Fc=this.vd=!1}}}}else t:if(o=this.animationManager,!o.zb&&(!o.isAnimating||o.isTicking)&&(n=new Date,io(this),"0"!==this.Ka.style.opacity)){if(i=t!==this.ib,r=(e=this.Wa.s).length,this.Fd(e,r,this,this.viewportBounds),i)t.Vc(!0),this.vd=!0;else if(!this.Fc&&!o.isAnimating)break t;(o=this.Ab).reset(),a=this.Mb,s=this.pa;var l=this.Ca,u=Math.round(s.x*l)/l,c=Math.round(s.y*l)/l;for(1!==l&&o.scale(l),0===s.x&&0===s.y||o.translate(-u,-c),t.setTransform(a,0,0,a,0,0),t.clearRect(0,0,this.Aa,this.ya),1!==this.pb&&(t.globalAlpha=this.pb),eo(this,t),s=0;s<r;s++)t.setTransform(a,0,0,a,0,0),t.transform(o.m11,o.m12,o.m21,o.m22,o.dx,o.dy),t.yc(),e[s].gc(t,this);if(e=!1,this.Yf?ua(this.Yf,this)&&(e=this.Vp()):e=!0,e&&(Ue.prototype.Cd=Ue.prototype.Eu),i?(this.ib.Vc(!0),this.vd=!0):this.Fc=this.vd=!1,e=+new Date-+n,i=Z&&Z.nx,n=this.zw,i||null===this.Yh){for(n[this.Tq]=e,this.Tq=(this.Tq+1)%n.length,r=e=0;r<n.length;r++)e+=n[r];this.Sq=e/n.length}if(1!==this.pb&&(t.globalAlpha=1),i)for(t.setTransform(1,0,0,1,0,0),i=0;i<n.length;i++)t.fillText(n[i].toString(),20,150+20*i)}},e.Gf=function(t){return this.Rg[t]},e.Xx=function(t,e){"minDrawingLength"===t&&(this.Oq=e),this.Rg[t]=e,this.redraw()},e.Tx=function(){this.Rg=new _,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!F&&!R,this.Rg.temporaryPixelRatio=!0,this.Rg.pictureRatioOptimization=!0,this.Oq=this.Rg.minDrawingLength=1},e.Ql=function(t){return this.on[t]},e.sA=function(t,e){this.on[t]=e},e.Sx=function(){this.on=new _,this.on.extraTouchArea=10,this.on.extraTouchThreshold=10,this.on.hasGestureZoom=!0},e.set=function(t){return Object.assign(this,t),this},e.Du=function(t){return this.nm(t)},e.nm=function(t){return no(this,t),this},e.bx=function(){if(0!==this.Eh.count&&!(1<this.undoManager.transactionLevel)){for(;0<this.Eh.count;){var t=this.Eh;for(this.Eh=new ft,t=t.iterator;t.next();){var e=t.key;e.Xo(t.value),e.qc()}}this.N()}},e.N=function(t){if(void 0===t)this.Fc=!0,this.$b();else{var e=this.viewportBounds;t.w()&&e.Yc(t)&&(this.Fc=!0,this.$b())}this.R("InvalidateDraw")},Mr.prototype.invalidateViewport=function(t,e){if(!0!==this.Fc)if(this.Fc=!0,"svg"===this.nl)this.bd();else{var n=!0===this.Gf("temporaryPixelRatio");if(!0===this.Gf("viewportOptimizations")&&this.scrollMode!==$o&&this.rj.hi(0,0,0,0)&&e.width===t.width&&e.height===t.height){var i=this.scale,r=Math.max(t.y,e.y),o=Math.min(t.y+t.height,e.y+e.height);if(0<Math.max(0,Math.min(t.x+t.width,e.x+e.width)-Math.max(t.x,e.x))*i&&0<Math.max(0,o-r)*i){if(!(this.ld||(this.kg=!1,null===this.Ka||(this.ld=!0,this.documentBounds.w()||(i=Bt.alloc(),Po(this,this.computeBounds(i)),Bt.free(i)),i=this.ta,null===i||i instanceof vs)))){var a=this.Mb;r=this.Aa*a;var s=this.ya*a,l=this.scale*a;o=Math.round(Math.round(e.x*l)-Math.round(t.x*l)),e=Math.round(Math.round(e.y*l)-Math.round(t.y*l)),l=this.jw,t=this.oy,l.width!==r&&(l.width=r),l.height!==s&&(l.height=s),t.clearRect(0,0,r,s),l=190*a;var u=70*a,c=Math.max(o,0),h=Math.max(e,0),d=Math.floor(r-c),f=Math.floor(s-h);t.drawImage(i.Oa,c,h,d,f,0,0,d,f),ua(this.Yf,this)&&t.clearRect(0,0,l,u),i=T(),t=T(),f=Math.abs(o),d=Math.abs(e);var p=0===c?0:r-f;c=pt.allocAt(p,0),f=pt.allocAt(f+p,s),t.push(new Bt(Math.min(c.x,f.x),Math.min(c.y,f.y),Math.abs(c.x-f.x),Math.abs(c.y-f.y)));var g=this.Ab;if(g.reset(),g.scale(a,a),1!==this.Ca&&g.scale(this.Ca),(0!==(a=this.pa).x||0!==a.y)&&isFinite(a.x)&&isFinite(a.y)&&g.translate(-a.x,-a.y),yt(c,g),yt(f,g),i.push(new Bt(Math.min(c.x,f.x),Math.min(c.y,f.y),Math.abs(c.x-f.x),Math.abs(c.y-f.y))),p=0===h?0:s-d,c.h(0,p),f.h(r,d+p),t.push(new Bt(Math.min(c.x,f.x),Math.min(c.y,f.y),Math.abs(c.x-f.x),Math.abs(c.y-f.y))),yt(c,g),yt(f,g),i.push(new Bt(Math.min(c.x,f.x),Math.min(c.y,f.y),Math.abs(c.x-f.x),Math.abs(c.y-f.y))),ua(this.Yf,this)&&(r=0<o?0:-o,s=0<e?0:-e,c.h(r,s),f.h(l+r,u+s),t.push(new Bt(Math.min(c.x,f.x),Math.min(c.y,f.y),Math.abs(c.x-f.x),Math.abs(c.y-f.y))),yt(c,g),yt(f,g),i.push(new Bt(Math.min(c.x,f.x),Math.min(c.y,f.y),Math.abs(c.x-f.x),Math.abs(c.y-f.y)))),pt.free(c),pt.free(f),Kr(this,!1,!0),null===this.Ka&&x("No div specified"),null===this.ta&&x("No canvas specified"),!this.animationManager.zb&&(r=this.ib,this.Fc)){for(io(this),s=this.Mb,r.setTransform(1,0,0,1,0,0),r.clearRect(0,0,this.Aa*s,this.ya*s),r.drawImage(this.jw.Oa,0<o?0:Math.round(-o),0<e?0:Math.round(-e)),o=this.pa,a=this.Ca,l=Math.round(o.x*a)/a,u=Math.round(o.y*a)/a,(e=this.Ab).reset(),1!==a&&e.scale(a),0===o.x&&0===o.y||e.translate(-l,-u),r.save(),r.beginPath(),o=t.length,a=0;a<o;a++)0!==(l=t[a]).width&&0!==l.height&&r.rect(Math.floor(l.x),Math.floor(l.y),Math.ceil(l.width),Math.ceil(l.height));for(r.clip(),r.setTransform(s,0,0,s,0,0),r.transform(e.m11,e.m12,e.m21,e.m22,e.dx,e.dy),r.yc(),o=(e=this.Wa.s).length,this.Fd(e,o,this,this.viewportBounds),eo(this,r),r.globalAlpha=this.pb,s=0;s<o;s++)if(l=i,(a=e[s]).visible&&0!==a.pb){u=kr(a,r),(h=a.Zq).length=0,c=this.scale,d=Bt.alloc(),g=(f=a.Pa.s).length,p=l.length;for(var m=0;m<g;m++){var v=f[m],y=Lc(v,v.actualBounds);t:{for(var w=2/c,b=4/c,S=0;S<p;S++){var P=l[S];if(0!==P.width&&0!==P.height&&y.Vu(P.x-w,P.y-w,P.width+b,P.height+b)){y=!0;break t}}y=!1}y&&a.Oj(r,v,this,h,c,d,!0)}Bt.free(d),r.globalAlpha=u}r.restore(),r.Vc(!0),this.Yf&&ua(this.Yf,this)&&this.Vp(),this.Fc=this.vd=!1,this.hk()}N(i),N(t),this.ld=!1}}else this.bd();n&&(jr(this),this.bd(),Ir(this,!0))}else n?(jr(this),this.bd(),Ir(this,!0)):this.bd()}},(e=Mr.prototype).add=function(t){var e=t.diagram;if(e!==this&&(null!==e&&x("Cannot add part "+t.toString()+" to "+this.toString()+". It is already a part of "+e.toString()),null===(e=this.Qj(t.layerName))&&(e=this.Qj("")),null===e&&x('Cannot add a Part when unable find a Layer named "'+t.layerName+'" and there is no default Layer'),t.layer!==e)){var n=e.oi(99999999,t,t.diagram===this);0<=n&&this.cb(pn,"parts",e,null,t,null,n),e.isTemporary||this.Ya(),t.C(1),null!==(n=t.layerChanged)&&n(t,null,e)}},e.oi=function(t){this.partManager.oi(t);var e=this;Bl(t,(function(t){wo(e,t)})),(t instanceof Yc||t instanceof gh&&null!==t.placeholder)&&t.v(),null!==t.data&&Bl(t,(function(t){rf(e.partManager,t)})),!0!==is(t)&&!0!==Dc(t)||this.De.add(t),Bc(t,!0,this),Zc(t)?(t.actualBounds.w()&&this.N(Lc(t,t.actualBounds)),this.Ya()):t.isVisible()&&t.actualBounds.w()&&this.N(Lc(t,t.actualBounds)),this.$b()},e.pc=function(t){t.Ej(),this.partManager.pc(t);var e=this;null!==t.data&&Bl(t,(function(t){of(e.partManager,t,e)})),this.De.remove(t),Zc(t)?(t.actualBounds.w()&&this.N(Lc(t,t.actualBounds)),this.Ya()):t.isVisible()&&t.actualBounds.w()&&this.N(Lc(t,t.actualBounds)),this.$b()},e.remove=function(t){ao(this,t,!0)},e.Is=function(t,e){if(void 0===e&&(e=!1),A(t))for(var n=t.length,i=0;i<n;i++){var r=t[i];e&&!r.canDelete()||this.remove(r)}else for((n=new J).addAll(t),t=n.iterator;t.next();)n=t.value,e&&!n.canDelete()||this.remove(n)},e.Kj=function(t,e,n){return void 0===n&&(n=!1),this.partManager.Kj(t,e,n)},Mr.prototype.moveParts=function(t,e,n,i){if(void 0===n&&(n=!1),void 0===i&&(i=uo(this)),null!==this.toolManager){var r=new ft;if(null!==t)if(A(t))for(var o=0;o<t.length;o++)so(this,r,t[o],n,i);else for(t=t.iterator;t.next();)so(this,r,t.value,n,i);else{for(t=this.parts;t.next();)so(this,r,t.value,n,i);for(t=this.nodes;t.next();)so(this,r,t.value,n,i);for(t=this.links;t.next();)so(this,r,t.value,n,i)}lo(this,r,e,i,n)}},Mr.prototype.computeMove=function(t,e,n,i){if(void 0===i&&(i=new pt),i.assign(e),null===t)return i;var r=e,o=n.isGridSnapEnabled;o&&(n.isGridSnapRealtime||this.lastInput.up)&&co(this,t,e,r=pt.alloc(),n),n=null!==t.dragComputation?t.dragComputation(t,e,r):r;var a=t.minLocation,s=a.x;isNaN(s)&&(s=o?Math.round(1e3*t.location.x)/1e3:t.location.x),a=a.y,isNaN(a)&&(a=o?Math.round(1e3*t.location.y)/1e3:t.location.y);var l=t.maxLocation,u=l.x;return isNaN(u)&&(u=o?Math.round(1e3*t.location.x)/1e3:t.location.x),l=l.y,isNaN(l)&&(l=o?Math.round(1e3*t.location.y)/1e3:t.location.y),i.h(Math.max(s,Math.min(n.x,u)),Math.max(a,Math.min(n.y,l))),r!==e&&pt.free(r),i},(e=Mr.prototype).Pd=function(t,e,n){if(void 0===n)return new ca(nt);var i=t.isGridSnapEnabled;return t.groupsSnapMembers||null===e.containingGroup||(i=!1),new ca(i?new pt(Math.round(1e3*n.x)/1e3,Math.round(1e3*n.y)/1e3):n.copy())},e.Al=function(t){go(this,t,null),t.Xe(this);var e=this.Wa,n=e.count-1;if(!t.isTemporary)for(;0<=n&&e.M(n).isTemporary;)n--;return e.Gb(n+1,t),null!==this.cc&&this.cb(pn,"layers",this,null,t,null,n+1),this.N(),this.Ya(),this},e.Ww=function(t,e){go(this,t,e),t.Xe(this);var n=this.Wa,i=n.indexOf(t);0<=i&&(n.remove(t),null!==this.cc&&this.cb(gn,"layers",this,t,null,i,null));var r,o=n.count;for(r=0;r<o;r++)if(n.M(r)===e){n.Gb(r,t);break}return null!==this.cc&&this.cb(pn,"layers",this,null,t,null,r),this.N(),0>i&&this.Ya(),this},e.Cy=function(t,e){go(this,t,e),t.Xe(this);var n=this.Wa,i=n.indexOf(t);0<=i&&(n.remove(t),null!==this.cc&&this.cb(gn,"layers",this,t,null,i,null));var r,o=n.count;for(r=0;r<o;r++)if(n.M(r)===e){n.Gb(r+1,t);break}return null!==this.cc&&this.cb(pn,"layers",this,null,t,null,r+1),this.N(),0>i&&this.Ya(),this},e.kA=function(t){if(t.diagram!==this&&x("Cannot remove a Layer from another Diagram: "+t+" of "+t.diagram),""!==t.name){var e=this.Wa,n=e.indexOf(t);if(e.remove(t)){for(e=t.Pa.copy().iterator;e.next();){var i=e.value,r=i.layerName;r!==t.name?i.layerName=r:i.layerName=""}null!==this.cc&&this.cb(gn,"layers",this,t,null,n,null),this.N(),this.Ya()}}},e.Qj=function(t){for(var e=this.layers;e.next();){var n=e.value;if(n.name===t)return n}return null},e.Yw=function(t){return null===this.pf&&(this.pf=new K),this.pf.add(t),this.model.Pe(t),this},e.mA=function(t){null!==this.pf&&(this.pf.remove(t),0===this.pf.count&&(this.pf=null)),this.model.ik(t)},e.Pe=function(t){return null===this.zg&&(this.zg=new K),this.zg.add(t),this},e.ik=function(t){null!==this.zg&&(this.zg.remove(t),0===this.zg.count&&(this.zg=null))},e.ds=function(t){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(t),t.change!==dn&&(this.isModified=!0),null!==this.zg)for(var e=this.zg,n=e.length,i=0;i<n;i++)e.M(i)(t)},e.cb=function(t,e,n,i,r,o,a){void 0===o&&(o=null),void 0===a&&(a=null);var s=new hn;s.diagram=this,s.change=t,s.propertyName=e,s.object=n,s.oldValue=i,s.oldParam=o,s.newValue=r,s.newParam=a,this.ds(s)},e.g=function(t,e,n,i,r){this.cb(fn,t,this,e,n,i,r)},Mr.prototype.changeState=function(t,e){if(null!==t&&t.diagram===this){var n=this.skipsModelSourceBindings;try{this.skipsModelSourceBindings=!0;var i=t.change;if(i===fn){var r=t.object;if(zf(r,t.propertyName,t.I(e)),r instanceof Ia){var o=r.part;null!==o&&o.Wb()}this.isModified=!0}else if(i===pn){var a=t.object,s=t.newParam,l=t.newValue;if(a instanceof Ml)if("number"==typeof s&&l instanceof Ia){e?a.pc(s):a.Gb(s,l);var u=a.part;null!==u&&u.Wb()}else"number"==typeof s&&l instanceof lu&&(l.isRow?Wl(a,s,e?void 0:l):Vl(a,s,e?void 0:l));else if(a instanceof Pr){var c=!0===t.oldParam;"number"==typeof s&&l instanceof Sc&&(e?(l.isSelected=!1,l.isHighlighted=!1,l.Wb(),a.pc(c?s:-1,l,c)):a.oi(s,l,c))}else a instanceof Mr?"number"==typeof s&&l instanceof Pr&&(e?this.Wa.mb(s):(l.Xe(this),this.Wa.Gb(s,l))):x("unknown ChangedEvent.Insert object: "+t.toString());this.isModified=!0}else if(i===gn){var h=t.object,d=t.oldParam,f=t.oldValue;if(h instanceof Ml)"number"==typeof d&&f instanceof Ia?e?h.Gb(d,f):h.pc(d):"number"==typeof d&&f instanceof lu&&(f.isRow?Wl(h,d,e?f:void 0):Vl(h,d,e?f:void 0));else if(h instanceof Pr){var p=!0===t.newParam;"number"==typeof d&&f instanceof Sc&&(e?0>h.Pa.indexOf(f)&&h.oi(d,f,p):(f.isSelected=!1,f.isHighlighted=!1,f.Wb(),h.pc(p?d:-1,f,p)))}else h instanceof Mr?"number"==typeof d&&f instanceof Pr&&(e?(f.Xe(this),this.Wa.Gb(d,f)):this.Wa.mb(d)):x("unknown ChangedEvent.Remove object: "+t.toString());this.isModified=!0}else i!==dn&&x("unknown ChangedEvent: "+t.toString())}finally{this.skipsModelSourceBindings=n}}},Mr.prototype.Ea=function(t){return this.undoManager.Ea(t)},Mr.prototype.eb=function(t){return this.undoManager.eb(t)},Mr.prototype.Kf=function(){return this.undoManager.Kf()},Mr.prototype.commit=function(t,e){void 0===e&&(e="");var n=this.skipsUndoManager;null===e&&(this.skipsUndoManager=!0,e=""),this.undoManager.Ea(e);var i=!1;try{t(this),i=!0}finally{i?this.undoManager.eb(e):this.undoManager.Kf(),this.skipsUndoManager=n}},Mr.prototype.updateAllTargetBindings=function(t){this.partManager.updateAllTargetBindings(t)},Mr.prototype.rp=function(){this.partManager.rp()},Mr.prototype.onViewportBoundsChanged=function(t,e,n,i){if(!t.D(e)){void 0===i&&(i=!1),i||(this.Ee=!0),this.vd=!0;var r=this.layout;null===r||!r.isViewportSized||this.autoScale!==_o||t.width===e.width&&t.height===e.height||r.C(),r=this.currentTool,!0===this.Vk&&r instanceof bn&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),xn(r,this)),this.vb||this.invalidateViewport(t,e),vo(this),this.fc.scale=n,this.fc.position.x=t.x,this.fc.position.y=t.y,this.fc.bounds.assign(t),this.fc.canvasSize.width=Math.round(t.width*n),this.fc.canvasSize.height=Math.round(t.height*n),this.fc.newCanvasSize.width=this.Aa,this.fc.newCanvasSize.height=this.ya,this.fc.isScroll=i,this.R("ViewportBoundsChanged",this.fc,t),this.isVirtualized&&this.links.each((function(t){t.isAvoiding&&t.actualBounds.Yc(e)&&t.bb()}))}},Mr.prototype.clearSelection=function(t){void 0===t&&(t=!1);var e=this.selection;if(0!==e.count){t||this.R("ChangingSelection",e);for(var n=e.Fa(),i=n.length,r=0;r<i;r++)n[r].isSelected=!1;e.ka(),e.clear(),e.freeze(),t||this.R("ChangedSelection",e)}},Mr.prototype.select=function(t){null!==t&&t.diagram===this&&(!t.isSelected||1<this.selection.count)&&(this.R("ChangingSelection",this.selection),this.clearSelection(!0),t.isSelected=!0,this.R("ChangedSelection",this.selection))},Mr.prototype.rA=function(t){if(this.R("ChangingSelection",this.selection),this.clearSelection(!0),A(t))for(var e=t.length,n=0;n<e;n++){var i=t[n];i instanceof Sc||x("Diagram.selectCollection given something that is not a Part: "+i),i.isSelected=!0}else for(t=t.iterator;t.next();)(e=t.value)instanceof Sc||x("Diagram.selectCollection given something that is not a Part: "+e),e.isSelected=!0;this.R("ChangedSelection",this.selection)},Mr.prototype.clearHighlighteds=function(){var t=this.highlighteds;if(0<t.count){for(var e=t.Fa(),n=e.length,i=0;i<n;i++)e[i].isHighlighted=!1;t.ka(),t.clear(),t.freeze()}},(e=Mr.prototype).Iz=function(t){null!==t&&t.diagram===this&&(!t.isHighlighted||1<this.highlighteds.count)&&(this.clearHighlighteds(),t.isHighlighted=!0)},e.Jz=function(t){t=(new J).addAll(t);for(var e=this.highlighteds.copy().hp(t).iterator;e.next();)e.value.isHighlighted=!1;for(t=t.iterator;t.next();)(e=t.value)instanceof Sc||x("Diagram.highlightCollection given something that is not a Part: "+e),e.isHighlighted=!0},e.scroll=function(t,e,n){void 0===n&&(n=1);var i="up"===e||"down"===e,r=0,o=pt.alloc();if("pixel"===t)r=n;else if("line"===t)r=n*(i?this.scrollVerticalLineChange:this.scrollHorizontalLineChange);else if("page"===t)t=i?this.viewportBounds.height:this.viewportBounds.width,0!==(t*=this.scale)&&(r=n*Math.max(t-(i?this.scrollVerticalLineChange:this.scrollHorizontalLineChange),0));else{if("document"===t)return r=this.documentBounds,n=this.viewportBounds,"up"===e?this.position=o.h(n.x,r.y):"left"===e?this.position=o.h(r.x,n.y):"down"===e?this.position=o.h(n.x,r.bottom-n.height):"right"===e&&(this.position=o.h(r.right-n.width,n.y)),void pt.free(o);x("scrolling unit must be 'pixel', 'line', 'page', or 'document', not: "+t)}r/=this.scale,n=this.position,"up"===e?this.position=o.h(n.x,n.y-r):"down"===e?this.position=o.h(n.x,n.y+r):"left"===e?this.position=o.h(n.x-r,n.y):"right"===e?this.position=o.h(n.x+r,n.y):x("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+e),pt.free(o)},e.tv=function(t){var e=this.viewportBounds;e.Re(t)||((t=t.center).x-=e.width/2,t.y-=e.height/2,this.position=t)},e.es=function(t){var e=this.viewportBounds;(t=t.center).x-=e.width/2,t.y-=e.height/2,this.position=t},e.op=function(t){var e=this.Ab;e.reset(),1!==this.Ca&&e.scale(this.Ca);var n=this.pa;return(0!==n.x||0!==n.y)&&isFinite(n.x)&&isFinite(n.y)&&e.translate(-n.x,-n.y),t.copy().transform(this.Ab)},e.zA=function(t){var e=this.Ab,n=t.x,i=t.y,r=n+t.width,o=i+t.height,a=e.m11,s=e.m12,l=e.m21,u=e.m22,c=e.dx,h=e.dy,d=n*a+i*l+c;e=n*s+i*u+h;var f=r*a+i*l+c;return t=r*s+i*u+h,i=n*a+o*l+c,n=n*s+o*u+h,a=r*a+o*l+c,r=r*s+o*u+h,o=Math.min(d,f),d=Math.max(d,f),f=Math.min(e,t),e=Math.max(e,t),o=Math.min(o,i),d=Math.max(d,i),f=Math.min(f,n),e=Math.max(e,n),o=Math.min(o,a),d=Math.max(d,a),new Bt(o,f=Math.min(f,r),d-o,(e=Math.max(e,r))-f)},e.Ps=function(t){var e=this.Ab;e.reset(),1!==this.Ca&&e.scale(this.Ca);var n=this.pa;return(0!==n.x||0!==n.y)&&isFinite(n.x)&&isFinite(n.y)&&e.translate(-n.x,-n.y),yt(t.copy(),this.Ab)},Mr.prototype.doModelChanged=function(t){var e=this;if(t.model===this.model){var n=t.change,i=t.propertyName;if(n===dn&&"S"===i[0])if("StartingFirstTransaction"===i){var r=this;(t=this.toolManager).mouseDownTools.each((function(t){return t.diagram=r})),t.mouseMoveTools.each((function(t){return t.diagram=r})),t.mouseUpTools.each((function(t){return t.diagram=r})),this.ld||this.hf||(this.Jk=!0,this.fn&&(this.kg=!0))}else"StartingUndo"===i||"StartingRedo"===i?((t=this.animationManager).defaultAnimation.isAnimating&&!this.skipsUndoManager&&t.Cc(),this.R("ChangingSelection",this.selection)):"StartedTransaction"===i&&((t=this.animationManager).defaultAnimation.isAnimating&&!this.skipsUndoManager&&t.Cc());else if(this.aa){this.aa=!1;try{if(""===t.modelChange&&n===dn){"FinishedUndo"!==i&&"FinishedRedo"!==i||(this.R("ChangedSelection",this.selection),Jr(this));var o=this.animationManager;"RolledBackTransaction"===i&&o.Cc(),this.bx(),this.Jk=!0,this.bd(),0!==this.undoManager.transactionLevel&&1!==this.undoManager.transactionLevel||Yi(o),"CommittedTransaction"===i&&this.undoManager.isJustDiscarded&&(this.Ce=Math.min(this.Ce,this.undoManager.historyIndex-1)),"CommittedTransaction"!==i&&"RolledBackTransaction"!==i||!this.undoManager.isPendingUnmodified||setTimeout((function(){e.isModified=!1}),1);var a=t.isTransactionFinished;if(a&&(yo(this),this.As.clear(),function(t){for(t=t.Ei.iterator;t.next();)t.value.Xk=!1}(this.animationManager)),!this.Rt&&a&&this.lastInput.targetDiagram){this.Rt=!0;var s=this;w((function(){s.currentTool.standardMouseOver(),s.Rt=!1}),10)}}}finally{this.aa=!0}}}},Mr.prototype.Wd=function(){this.partManager.Wd()},Mr.prototype.Aj=function(t,e){this.Yd.Aj(t,e)},Mr.prototype.Cj=function(t,e){this.Yd.Cj(t,e)},Mr.prototype.findPartForKey=function(t){return this.partManager.findPartForKey(t)},Mr.prototype.Vb=function(t){return this.partManager.Vb(t)},Mr.prototype.findLinkForKey=function(t){return this.partManager.findLinkForKey(t)},(e=Mr.prototype).Lc=function(t){return this.partManager.Lc(t)},e.ii=function(t){return this.partManager.ii(t)},e.Kc=function(t){return this.partManager.Kc(t)},e.ms=function(t){for(var e=[],n=0;n<arguments.length;++n)e[n]=arguments[n];return this.partManager.ms.apply(this.partManager,e instanceof Array?e:o(r(e)))},e.ls=function(t){for(var e=[],n=0;n<arguments.length;++n)e[n]=arguments[n];return this.partManager.ls.apply(this.partManager,e instanceof Array?e:o(r(e)))},e.Va=function(){if(this.Zi){var t=Bt.alloc();Po(this,this.computeBounds(t)),Bt.free(t)}},e.rz=function(){for(var t=new J,e=this.nodes;e.next();){var n=e.value;n.isTopLevel&&t.add(n)}for(e=this.links;e.next();)(n=e.value).isTopLevel&&t.add(n);return t.iterator},e.qz=function(){return this.ai.iterator},e.Uz=function(t){Jr(this),t&&ko(this,!0),this.ld?Ao(this,!1):(this.Jk=!0,Qr(this))},e.yz=function(){for(var t=new K,e=this.nodes;e.next();){var n=e.value;n.isTopLevel&&null===n.kh()&&t.add(n)}return t.iterator},e.Bj=function(t,e){return null!==(t=Lo(this,t))&&t.add(e),this},e.am=function(t,e){null!==(t=Lo(this,t))&&t.remove(e)},e.R=function(t,e,n){var i=Lo(this,t),r=new cn;if(r.diagram=this,null!==(t=Eo(this,t))&&(r.name=t),void 0!==e&&(r.subject=e),void 0!==n&&(r.parameter=n),1===(e=i.length))i.M(0)(r);else if(0!==e)for(i=i.Fa(),n=0;n<e;n++)(0,i[n])(r)},e.Yj=function(t,e){return No(this,!1,null,e||null).Yj(t.x,t.y,t.width,t.height)},Mr.prototype.computeOccupiedArea=function(t){return this.isVirtualized?this.viewportBounds.copy():this.Zi?zr(this,t):t.assign(this.documentBounds)},Mr.prototype.gs=function(t){this.wp.assign(t),this.computeAutoScrollPosition(this.wp).Xa(this.position)?this.ug():Oo(this)},Mr.prototype.ug=function(){-1!==this.vk&&(m.clearTimeout(this.vk),this.vk=-1)},Mr.prototype.computeAutoScrollPosition=function(t){var e=this.position,n=this.xp;if(0>=n.top&&0>=n.left&&0>=n.right&&0>=n.bottom)return e;var i=this.viewportBounds,r=this.scale;i=Bt.allocAt(0,0,i.width*r,i.height*r);var o=pt.allocAt(0,0);if(t.x>=i.x&&t.x<i.x+n.left&&this.allowHorizontalScroll){var a=Math.max(this.scrollHorizontalLineChange,1);a|=0,o.x-=a,t.x<i.x+n.left/2&&(o.x-=a),t.x<i.x+n.left/4&&(o.x-=4*a)}else t.x<=i.x+i.width&&t.x>i.x+i.width-n.right&&this.allowHorizontalScroll&&(a=Math.max(this.scrollHorizontalLineChange,1),a|=0,o.x+=a,t.x>i.x+i.width-n.right/2&&(o.x+=a),t.x>i.x+i.width-n.right/4&&(o.x+=4*a));return t.y>=i.y&&t.y<i.y+n.top&&this.allowVerticalScroll?(a=Math.max(this.scrollVerticalLineChange,1),a|=0,o.y-=a,t.y<i.y+n.top/2&&(o.y-=a),t.y<i.y+n.top/4&&(o.y-=4*a)):t.y<=i.y+i.height&&t.y>i.y+i.height-n.bottom&&this.allowVerticalScroll&&(a=Math.max(this.scrollVerticalLineChange,1),a|=0,o.y+=a,t.y>i.y+i.height-n.bottom/2&&(o.y+=a),t.y>i.y+i.height-n.bottom/4&&(o.y+=4*a)),o.Xa(nt)||(e=new pt(e.x+o.x/r,e.y+o.y/r)),Bt.free(i),pt.free(o),e},(e=Mr.prototype).Cs=function(){return null},e.av=function(){return null},e.bs=function(t,e){this.pj.add(t,e)},e.Fu=function(t){(this.Pw=t)||this.nodes.each((function(t){t instanceof gh&&(t.$p=null)}))},e.Wz=function(t){return Go?(void 0===t&&(t={}),t.returnType="Image",this.Jx(t)):null},e.Jx=function(t){return void 0===t&&(t={}),Do(this,this.Xz,t)},e.Xz=function(t,e,n){var i=Ro(n,t,"canvas",null);if(null===i)return null;var r=null;if(null!==(n=i.Z.canvas))switch(r=t.returnType,r=void 0===r?"string":r.toLowerCase(),r){case oa+"data":r=i.getImageData(0,0,n.width,n.height);break;case oa:(i=(t.document||document).createElement("img")).src=n.toDataURL(t.type,t.details),r=i;break;case"blob":return"function"!=typeof e&&x('Error: Diagram.makeImageData called with "returnType: toBlob", but no required "callback" function property defined.'),"function"==typeof n.toBlob?(n.toBlob(e,t.type,t.details),"toBlob"):(e(null),null);default:r=n.toDataURL(t.type,t.details)}return"function"==typeof e?(e(r),null):r},d.Object.defineProperties(Mr.prototype,{renderer:{get:function(){return this.nl},set:function(t){this instanceof Aa||(""===t&&(t="default"),(t=t.toLowerCase())!==this.nl&&(this.nl=t,"default"===t||"canvas"===t?(null!==(t=this.pj.get("svg"))&&t.Oa.remove(),this.ta&&(this.ib=this.ta.context)):"svg"===t?(this.pj.contains("svg")?t=this.pj.get("svg"):(t=new vs(this,m.document),this.bs("svg",t)),null!==this.div&&this.div.appendChild(t.Oa),this.ib=t.context,this.ta&&(this.ta.context.setTransform(this.Mb,0,0,this.Mb,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya))):"debug"!==t||this.pj.contains("SVG")||(t=new vs(this,m.document),this.bs("SVG",t),t.Oa.style.backgroundColor="whitesmoke",null!==this.div&&this.div.after(t.Oa)),this.hk()))}},div:{get:function(){return this.Ka},set:function(t){if(this.Ka!==t){var e=this.Ka;null!==e?(e.H=void 0,e.goDiagram=void 0,e.go=void 0,e.innerHTML="",null!==this.ta&&(e=this.ta.Oa,this.removeEventListener(e,"pointermove",this.dk,!1),this.removeEventListener(e,"pointerdown",this.ui,!1),this.removeEventListener(e,"pointerup",this.fk,!1),this.removeEventListener(e,"pointerout",this.ek,!1),this.removeEventListener(e,"pointercancel",this.ck,!1),this.ta.mx()),this.ol&&(this.ol.disconnect(),this.ol=null),null!==(e=this.toolManager)&&(e.mouseDownTools.each((function(t){t.cancelWaitAfter()})),e.mouseMoveTools.each((function(t){t.cancelWaitAfter()})),e.mouseUpTools.each((function(t){t.cancelWaitAfter()}))),e.cancelWaitAfter(),this.currentTool.doCancel(),this.ta=null,this.removeEventListener(m,"resize",this.Ov,!1),this.removeEventListener(m,"wheel",this.$j,!0),wr===this&&(wr=null)):null===this.ui&&(this.hf=!1),this.Ka=null,null!==t&&((e=t.H)&&(e.div=null),Nr(this,t),this.hk())}}},$w:{get:function(){return this.Sq}},pi:{get:function(){return this.hf}},draggedLink:{get:function(){return this.nt},set:function(t){this.nt!==t&&(this.nt=t,null!==t&&(this.Vt=t.fromPort,this.Wt=t.toPort))}},Mx:{get:function(){return this.Vt},set:function(t){this.Vt=t}},Nx:{get:function(){return this.Wt},set:function(t){this.Wt=t}},animationManager:{get:function(){return this.Yd}},undoManager:{get:function(){return this.cc.undoManager}},skipsUndoManager:{get:function(){return this.Wg},set:function(t){this.Wg=t,this.cc.skipsUndoManager=t}},delaysLayout:{get:function(){return this.lt},set:function(t){this.lt=t}},opacity:{get:function(){return this.pb},set:function(t){var e=this.pb;e!==t&&((0>t||1<t)&&P(t,"0 <= value <= 1",Mr,"opacity"),this.pb=t,this.g("opacity",e,t),this.N())}},validCycle:{get:function(){return this.wu},set:function(t){var e=this.wu;e!==t&&(this.wu=t,this.g("validCycle",e,t))}},layers:{get:function(){return this.Wa.iterator}},isModelReadOnly:{get:function(){var t=this.cc;return null!==t&&t.isReadOnly},set:function(t){var e=this.cc;null!==e&&(e.isReadOnly=t)}},isReadOnly:{get:function(){return this.Gg},set:function(t){var e=this.Gg;e!==t&&(this.Gg=t,this.g("isReadOnly",e,t))}},isEnabled:{get:function(){return this.Jd},set:function(t){var e=this.Jd;e!==t&&(this.Jd=t,this.g("isEnabled",e,t))}},allowClipboard:{get:function(){return this.Us},set:function(t){var e=this.Us;e!==t&&(this.Us=t,this.g("allowClipboard",e,t))}},allowCopy:{get:function(){return this.Fi},set:function(t){var e=this.Fi;e!==t&&(this.Fi=t,this.g("allowCopy",e,t))}},allowDelete:{get:function(){return this.Gi},set:function(t){var e=this.Gi;e!==t&&(this.Gi=t,this.g("allowDelete",e,t))}},allowDragOut:{get:function(){return this.Vs},set:function(t){var e=this.Vs;e!==t&&(this.Vs=t,this.g("allowDragOut",e,t))}},allowDrop:{get:function(){return this.Ws},set:function(t){var e=this.Ws;e!==t&&(this.Ws=t,this.g("allowDrop",e,t))}},allowTextEdit:{get:function(){return this.Pi},set:function(t){var e=this.Pi;e!==t&&(this.Pi=t,this.g("allowTextEdit",e,t))}},allowGroup:{get:function(){return this.Hi},set:function(t){var e=this.Hi;e!==t&&(this.Hi=t,this.g("allowGroup",e,t))}},allowUngroup:{get:function(){return this.Qi},set:function(t){var e=this.Qi;e!==t&&(this.Qi=t,this.g("allowUngroup",e,t))}},allowInsert:{get:function(){return this.Ys},set:function(t){var e=this.Ys;e!==t&&(this.Ys=t,this.g("allowInsert",e,t))}},allowLink:{get:function(){return this.Ii},set:function(t){var e=this.Ii;e!==t&&(this.Ii=t,this.g("allowLink",e,t))}},allowRelink:{get:function(){return this.Ki},set:function(t){var e=this.Ki;e!==t&&(this.Ki=t,this.g("allowRelink",e,t))}},allowMove:{get:function(){return this.Ji},set:function(t){var e=this.Ji;e!==t&&(this.Ji=t,this.g("allowMove",e,t))}},allowReshape:{get:function(){return this.Li},set:function(t){var e=this.Li;e!==t&&(this.Li=t,this.g("allowReshape",e,t))}},allowResize:{get:function(){return this.Mi},set:function(t){var e=this.Mi;e!==t&&(this.Mi=t,this.g("allowResize",e,t))}},allowRotate:{get:function(){return this.Ni},set:function(t){var e=this.Ni;e!==t&&(this.Ni=t,this.g("allowRotate",e,t))}},allowSelect:{get:function(){return this.Oi},set:function(t){var e=this.Oi;e!==t&&(this.Oi=t,this.g("allowSelect",e,t))}},allowUndo:{get:function(){return this.Zs},set:function(t){var e=this.Zs;e!==t&&(this.Zs=t,this.g("allowUndo",e,t))}},allowZoom:{get:function(){return this.at},set:function(t){var e=this.at;e!==t&&(this.at=t,this.g("allowZoom",e,t))}},hasVerticalScrollbar:{get:function(){return this.nn},set:function(t){var e=this.nn;e!==t&&(this.nn=t,this.Ee=!0,this.N(),this.g("hasVerticalScrollbar",e,t),Gr(this,!1))}},hasHorizontalScrollbar:{get:function(){return this.mn},set:function(t){var e=this.mn;e!==t&&(this.mn=t,this.Ee=!0,this.N(),this.g("hasHorizontalScrollbar",e,t),Gr(this,!1))}},allowHorizontalScroll:{get:function(){return this.Xs},set:function(t){var e=this.Xs;e!==t&&(this.Xs=t,this.g("allowHorizontalScroll",e,t),Gr(this,!1))}},allowVerticalScroll:{get:function(){return this.$s},set:function(t){var e=this.$s;e!==t&&(this.$s=t,this.g("allowVerticalScroll",e,t),Gr(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(t){var e=this.iu;e!==t&&(0>t&&P(t,">= 0",Mr,"scrollHorizontalLineChange"),this.iu=t,this.g("scrollHorizontalLineChange",e,t))}},scrollVerticalLineChange:{get:function(){return this.mu},set:function(t){var e=this.mu;e!==t&&(0>t&&P(t,">= 0",Mr,"scrollVerticalLineChange"),this.mu=t,this.g("scrollVerticalLineChange",e,t))}},lastInput:{get:function(){return this.cj},set:function(t){this.cj=t}},previousInput:{get:function(){return this.Qg},set:function(t){this.Qg=t}},firstInput:{get:function(){return this.bq},set:function(t){this.bq=t}},currentCursor:{get:function(){return this.it},set:function(t){if(""===t&&(t=this.Op),this.it!==t){var e=this.ta,n=this.Ka;if(null!==e&&null!==n){this.it=t;var i=e.style.cursor;e.style.cursor=t,n.style.cursor=t,e.style.cursor===i&&(e.style.cursor="-webkit-"+t,n.style.cursor="-webkit-"+t,e.style.cursor===i&&(e.style.cursor="-moz-"+t,n.style.cursor="-moz-"+t,e.style.cursor===i&&(e.style.cursor=t,n.style.cursor=t)))}}}},defaultCursor:{get:function(){return this.Op},set:function(t){""===t&&(t="auto");var e=this.Op;e!==t&&(this.Op=t,this.g("defaultCursor",e,t))}},click:{get:function(){return this.zh},set:function(t){var e=this.zh;e!==t&&(this.zh=t,this.g("click",e,t))}},doubleClick:{get:function(){return this.Fh},set:function(t){var e=this.Fh;e!==t&&(this.Fh=t,this.g("doubleClick",e,t))}},contextClick:{get:function(){return this.Bh},set:function(t){var e=this.Bh;e!==t&&(this.Bh=t,this.g("contextClick",e,t))}},mouseOver:{get:function(){return this.Qh},set:function(t){var e=this.Qh;e!==t&&(this.Qh=t,this.g("mouseOver",e,t))}},mouseHover:{get:function(){return this.Oh},set:function(t){var e=this.Oh;e!==t&&(this.Oh=t,this.g("mouseHover",e,t))}},mouseHold:{get:function(){return this.Nh},set:function(t){var e=this.Nh;e!==t&&(this.Nh=t,this.g("mouseHold",e,t))}},mouseDragOver:{get:function(){return this.Qt},set:function(t){var e=this.Qt;e!==t&&(this.Qt=t,this.g("mouseDragOver",e,t))}},mouseDrop:{get:function(){return this.Lh},set:function(t){var e=this.Lh;e!==t&&(this.Lh=t,this.g("mouseDrop",e,t))}},handlesDragDropForTopLevelParts:{get:function(){return this.xt},set:function(t){var e=this.xt;e!==t&&(this.xt=t,this.g("handlesDragDropForTopLevelParts",e,t))}},mouseEnter:{get:function(){return this.Mh},set:function(t){var e=this.Mh;e!==t&&(this.Mh=t,this.g("mouseEnter",e,t))}},mouseLeave:{get:function(){return this.Ph},set:function(t){var e=this.Ph;e!==t&&(this.Ph=t,this.g("mouseLeave",e,t))}},toolTip:{get:function(){return this.$h},set:function(t){var e=this.$h;e!==t&&(this.$h=t,this.g("toolTip",e,t))}},contextMenu:{get:function(){return this.Ch},set:function(t){var e=this.Ch;e!==t&&(this.Ch=t,this.g("contextMenu",e,t))}},commandHandler:{get:function(){return this.nb},set:function(t){this.nb!==t&&(this.nb=t,t.Xe(this))}},toolManager:{get:function(){return this.te},set:function(t){this.te!==t&&(this.te=t,t.diagram=this)}},defaultTool:{get:function(){return this.ob},set:function(t){var e=this.ob;e!==t&&(this.ob=t,t.diagram=this,this.currentTool===e&&(this.currentTool=t))}},currentTool:{get:function(){return this.hb},set:function(t){var e=this.hb;e&&(e.isActive&&e.doDeactivate(),e.cancelWaitAfter(),e.doStop()),null===t&&(t=this.defaultTool),null!==t&&(this.hb=t,t.diagram=this,t.doStart())}},selection:{get:function(){return this.Hw}},maxSelectionCount:{get:function(){return this.Nt},set:function(t){var e=this.Nt;if(e!==t)if(0<=t&&!isNaN(t)){if(this.Nt=t,this.g("maxSelectionCount",e,t),!this.undoManager.isUndoingRedoing&&0<(t=this.selection.count-t)){this.R("ChangingSelection",this.selection),e=this.selection.Fa();for(var n=0;n<t;n++)e[n].isSelected=!1;this.R("ChangedSelection",this.selection)}}else P(t,">= 0",Mr,"maxSelectionCount")}},nodeSelectionAdornmentTemplate:{get:function(){return this.St},set:function(t){var e=this.St;e!==t&&(this.St=t,this.g("nodeSelectionAdornmentTemplate",e,t))}},groupSelectionAdornmentTemplate:{get:function(){return this.wt},set:function(t){var e=this.wt;e!==t&&(this.wt=t,this.g("groupSelectionAdornmentTemplate",e,t))}},linkSelectionAdornmentTemplate:{get:function(){return this.Kt},set:function(t){var e=this.Kt;e!==t&&(this.Kt=t,this.g("linkSelectionAdornmentTemplate",e,t))}},highlighteds:{get:function(){return this.nw}},isModified:{get:function(){var t=this.undoManager;return t.isEnabled?null!==t.currentTransaction||this.rn&&this.Ce!==t.historyIndex:this.rn},set:function(t){if(this.rn!==t){this.rn=t;var e=this.undoManager;!t&&e.isEnabled&&(this.Ce=e.historyIndex),t||yo(this)}}},model:{get:function(){return this.cc},set:function(t){var e=this.cc;if(e!==t){this.currentTool.doCancel(),e&&e.undoManager!==t.undoManager&&e.undoManager.isInTransaction&&x("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var n=Lr(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var i=this.vb;this.vb=!0,Vi(this.animationManager,"Model"),e&&(null!==this.pf&&this.pf.each((function(t){return e.ik(t)})),e.ik(this.Oc)),this.cc=t,this.partManager=function(t){return null!==(t=Fo.get(t))?new t:new Jd}(this.cc.type);for(var r=0;r<n.length;r++)this.add(n[r]);t.Pe(this.Hb),this.partManager.addAllModeledParts(),t.ik(this.Hb),t.Pe(this.Oc),null!==this.pf&&this.pf.each((function(e){return t.Pe(e)})),this.vb=i,this.Ya(),this.vb||this.N(),e&&t.undoManager.copyProperties(e.undoManager)}}},aa:{get:function(){return this.rw},set:function(t){this.rw=t}},As:{get:function(){return this.sy}},skipsModelSourceBindings:{get:function(){return this.Iw},set:function(t){this.Iw=t}},Ns:{get:function(){return this.ou},set:function(t){this.ou=t}},nodeTemplate:{get:function(){return this.Lg.I("")},set:function(t){var e=this.Lg.I("");e!==t&&(this.Lg.add("",t),this.g("nodeTemplate",e,t),this.undoManager.isUndoingRedoing||this.Wd())}},nodeTemplateMap:{get:function(){return this.Lg},set:function(t){var e=this.Lg;e!==t&&(this.Lg=t,this.g("nodeTemplateMap",e,t),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplate:{get:function(){return this.Yi.I("")},set:function(t){var e=this.Yi.I("");e!==t&&(this.Yi.add("",t),this.g("groupTemplate",e,t),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplateMap:{get:function(){return this.Yi},set:function(t){var e=this.Yi;e!==t&&(this.Yi=t,this.g("groupTemplateMap",e,t),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplate:{get:function(){return this.Kh.I("")},set:function(t){var e=this.Kh.I("");e!==t&&(this.Kh.add("",t),this.g("linkTemplate",e,t),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplateMap:{get:function(){return this.Kh},set:function(t){var e=this.Kh;e!==t&&(this.Kh=t,this.g("linkTemplateMap",e,t),this.undoManager.isUndoingRedoing||this.Wd())}},isMouseCaptured:{get:function(){return this.qw},set:function(t){var e=this.ta;null!==e&&((e=e.Oa)instanceof SVGElement||(t?(this.lastInput.bubbles=!1,this.removeEventListener(e,"pointermove",this.dk,!1),this.removeEventListener(e,"pointerdown",this.ui,!1),this.removeEventListener(e,"pointerup",this.fk,!1),this.removeEventListener(e,"pointerout",this.ek,!1),this.removeEventListener(e,"pointercancel",this.ck,!1),this.addEventListener(m,"pointermove",this.dk,!0),this.addEventListener(m,"pointerdown",this.ui,!0),this.addEventListener(m,"pointerup",this.fk,!0),this.addEventListener(m,"pointerout",this.ek,!0),this.addEventListener(m,"pointercancel",this.ck,!0),this.removeEventListener(e,"wheel",this.$j,!1),this.addEventListener(m,"wheel",this.$j,!0),this.addEventListener(m,"selectstart",this.preventDefault,!1)):(this.removeEventListener(m,"pointermove",this.dk,!0),this.removeEventListener(m,"pointerdown",this.ui,!0),this.removeEventListener(m,"pointerup",this.fk,!0),this.removeEventListener(m,"pointerout",this.ek,!0),this.removeEventListener(m,"pointercancel",this.ck,!0),this.addEventListener(e,"pointermove",this.dk,!1),this.addEventListener(e,"pointerdown",this.ui,!1),this.addEventListener(e,"pointerup",this.fk,!1),this.addEventListener(e,"pointerout",this.ek,!1),this.addEventListener(e,"pointercancel",this.ck,!1),this.removeEventListener(m,"wheel",this.$j,!0),this.removeEventListener(m,"selectstart",this.preventDefault,!1),this.addEventListener(e,"wheel",this.$j,!1)),this.qw=t))}},position:{get:function(){return this.pa},set:function(t){var e=pt.alloc().assign(this.pa);if(!e.D(t)){var n=this.viewportBounds.copy();this.pa.assign(t),Ji(this.animationManager,e,this.pa),this.vb||null===this.ta&&!this.wo.w()?So(this):(this.vb=!0,t=this.scale,Hr(this,this.Sp,this.Aa/t,this.ya/t,this.zk,!1),this.vb=!1),this.vb||this.onViewportBoundsChanged(n,this.viewportBounds,this.Ca,!1)}pt.free(e)}},initialPosition:{get:function(){return this.zt},set:function(t){this.zt.D(t)||(this.zt=t.J())}},initialScale:{get:function(){return this.At},set:function(t){this.At!==t&&(this.At=t)}},grid:{get:function(){return null===this.fe&&(this.fe=Dr(this)),this.fe},set:function(t){var e=this.fe;if(e!==t){null===e&&(e=this.fe=Dr(this)),t.type!==Ml.Grid&&x("Diagram.grid must be a Panel of type Panel.Grid");var n=e.panel;null!==n&&n.remove(e),this.fe=t,t.name="GRID",null!==n&&n.add(t),vo(this),this.N(),this.g("grid",e,t)}}},viewportBounds:{get:function(){return this.Rw}},viewSize:{get:function(){return this.wo},set:function(t){var e=this.viewSize;e.D(t)||(this.wo=t=t.J(),this.ya=this.Aa=0,t.w()?(this.Aa=t.width,this.ya=t.height):null!==this.Ka&&(this.Aa=this.Ka.clientWidth||1,this.ya=this.Ka.clientHeight||1),So(this),this.Ya(),this.g("viewSize",e,t),this.redraw())}},fixedBounds:{get:function(){return this.ut},set:function(t){var e=this.ut;e.D(t)||(-1/0!==t.width&&1/0!==t.height&&-1/0!==t.height||x("fixedBounds width/height must not be Infinity"),this.ut=t=t.J(),this.Ya(),this.g("fixedBounds",e,t))}},scrollMargin:{get:function(){return this.rj},set:function(t){"number"==typeof t&&(t=new Xt(t));var e=this.rj;e.D(t)||(this.rj=t=t.J(),this.g("scrollMargin",e,t),this.hk())}},scrollMode:{get:function(){return this.sj},set:function(t){var e=this.sj;e!==t&&(this.sj=t,t===Jo&&Gr(this,!1),this.g("scrollMode",e,t),this.Ee=!0,this.N())}},scrollsPageOnFocus:{get:function(){return this.nu},set:function(t){var e=this.nu;e!==t&&(this.nu=t,this.g("scrollsPageOnFocus",e,t))}},positionComputation:{get:function(){return this.Zt},set:function(t){var e=this.Zt;e!==t&&(this.Zt=t,Gr(this,!1),this.g("positionComputation",e,t))}},scaleComputation:{get:function(){return this.fu},set:function(t){var e=this.fu;e!==t&&(this.fu=t,mo(this,this.scale,this.scale),this.g("scaleComputation",e,t))}},documentBounds:{get:function(){return this.Sp}},isVirtualized:{get:function(){return this.It},set:function(t){var e=this.It;e!==t&&(this.It=t,this.g("isVirtualized",e,t))}},scale:{get:function(){return this.Ca},set:function(t){var e=this.Ca;e!==t&&mo(this,e,t)}},defaultScale:{get:function(){return this.Pp},set:function(t){this.Pp=t}},autoScale:{get:function(){return this.yh},set:function(t){var e=this.yh;e!==t&&(this.yh=t,this.g("autoScale",e,t),t!==_o&&Gr(this,!1))}},initialAutoScale:{get:function(){return this.Fg},set:function(t){var e=this.Fg;e!==t&&(this.Fg=t,this.g("initialAutoScale",e,t))}},initialViewportSpot:{get:function(){return this.Bt},set:function(t){var e=this.Bt;e!==t&&(t.sb()||x("initialViewportSpot must be a specific Spot: "+t),this.Bt=t,this.g("initialViewportSpot",e,t))}},initialDocumentSpot:{get:function(){return this.yt},set:function(t){var e=this.yt;e!==t&&(t.sb()||x("initialViewportSpot must be a specific Spot: "+t),this.yt=t,this.g("initialDocumentSpot",e,t))}},minScale:{get:function(){return this.Ot},set:function(t){var e=this.Ot;e!==t&&(0<t?(this.Ot=t,this.g("minScale",e,t),t>this.scale&&(this.scale=t)):P(t,"> 0",Mr,"minScale"))}},maxScale:{get:function(){return this.Mt},set:function(t){var e=this.Mt;e!==t&&(0<t?(this.Mt=t,this.g("maxScale",e,t),t<this.scale&&(this.scale=t)):P(t,"> 0",Mr,"maxScale"))}},zoomPoint:{get:function(){return this.zu},set:function(t){this.zu.D(t)||(this.zu=t=t.J())}},contentAlignment:{get:function(){return this.zk},set:function(t){var e=this.zk;e.D(t)||(this.zk=t=t.J(),this.g("contentAlignment",e,t),Gr(this,!1))}},initialContentAlignment:{get:function(){return this.pq},set:function(t){var e=this.pq;e.D(t)||(this.pq=t=t.J(),this.g("initialContentAlignment",e,t))}},padding:{get:function(){return this.yb},set:function(t){"number"==typeof t&&(t=new Xt(t));var e=this.yb;e.D(t)||(this.yb=t=t.J(),this.Ya(),this.g("padding",e,t))}},partManager:{get:function(){return this.Pc},set:function(t){var e=this.Pc;e!==t&&(null!==t.diagram&&x("Cannot share PartManagers between Diagrams: "+t.toString()),e&&e.Xe(null),this.Pc=t,t.Xe(this))}},nodes:{get:function(){return this.partManager.nodes.iterator}},links:{get:function(){return this.partManager.links.iterator}},parts:{get:function(){return this.partManager.parts.iterator}},layout:{get:function(){return this.Sc},set:function(t){var e=this.Sc;e!==t&&(this.Sc=t,t.diagram=this,t.group=null,this.xh=!0,this.g("layout",e,t),this.$b())}},isTreePathToChildren:{get:function(){return this.Ht},set:function(t){var e=this.Ht;if(e!==t&&(this.Ht=t,this.g("isTreePathToChildren",e,t),!this.undoManager.isUndoingRedoing))for(t=this.nodes;t.next();)rh(t.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(t){var e=this.uu;e!==t&&(t!==ta&&t!==ea&&t!==na&&x("Unknown Diagram.treeCollapsePolicy: "+t),this.uu=t,this.g("treeCollapsePolicy",e,t))}},Ue:{get:function(){return this.pw},set:function(t){this.pw=t}},avoidanceCellSize:{get:function(){return this.aw},set:function(t){this.Xh=null,this.aw=new Tt(Math.max(1,t.width),Math.max(1,t.height))}},avoidanceLimit:{get:function(){return this.bw},set:function(t){this.bw=Math.max(1,t)}},autoScrollInterval:{get:function(){return this.vp},set:function(t){var e=this.vp;e!==t&&(this.vp=t,this.g("autoScrollInterval",e,t))}},autoScrollRegion:{get:function(){return this.xp},set:function(t){"number"==typeof t&&(t=new Xt(t));var e=this.xp;e.D(t)||(this.xp=t=t.J(),this.Ya(),this.g("autoScrollRegion",e,t))}}}),d.Object.defineProperties(Mr,{licenseKey:{get:function(){return ia.jc()},set:function(t){ia.add(t.replace(/\s/g,""))}},version:{get:function(){return ra}}}),Mr.prototype.makeImageData=Mr.prototype.Jx,Mr.prototype.makeImage=Mr.prototype.Wz,Mr.prototype.cacheGroupExternalLinks=Mr.prototype.Fu,Mr.prototype.addRenderer=Mr.prototype.bs,Mr.prototype.makeSVG=Mr.prototype.av,Mr.prototype.makeSvg=Mr.prototype.Cs,Mr.prototype.stopAutoScroll=Mr.prototype.ug,Mr.prototype.doAutoScroll=Mr.prototype.gs,Mr.prototype.isUnoccupied=Mr.prototype.Yj,Mr.prototype.raiseDiagramEvent=Mr.prototype.R,Mr.prototype.removeDiagramListener=Mr.prototype.am,Mr.prototype.addDiagramListener=Mr.prototype.Bj,Mr.prototype.findTreeRoots=Mr.prototype.yz,Mr.prototype.layoutDiagram=Mr.prototype.Uz,Mr.prototype.findTopLevelGroups=Mr.prototype.qz,Mr.prototype.findTopLevelNodesAndLinks=Mr.prototype.rz,Mr.prototype.ensureBounds=Mr.prototype.Va,Mr.prototype.findLinksByExample=Mr.prototype.ls,Mr.prototype.findNodesByExample=Mr.prototype.ms,Mr.prototype.findLinkForData=Mr.prototype.Kc,Mr.prototype.findNodeForData=Mr.prototype.ii,Mr.prototype.findPartForData=Mr.prototype.Lc,Mr.prototype.findLinkForKey=Mr.prototype.findLinkForKey,Mr.prototype.findNodeForKey=Mr.prototype.Vb,Mr.prototype.findPartForKey=Mr.prototype.findPartForKey,Mr.prototype.rebuildParts=Mr.prototype.Wd,Mr.prototype.transformViewToDoc=Mr.prototype.Ps,Mr.prototype.transformRectDocToView=Mr.prototype.zA,Mr.prototype.transformDocToView=Mr.prototype.op,Mr.prototype.centerRect=Mr.prototype.es,Mr.prototype.scrollToRect=Mr.prototype.tv,Mr.prototype.scroll=Mr.prototype.scroll,Mr.prototype.highlightCollection=Mr.prototype.Jz,Mr.prototype.highlight=Mr.prototype.Iz,Mr.prototype.selectCollection=Mr.prototype.rA,Mr.prototype.select=Mr.prototype.select,Mr.prototype.updateAllRelationshipsFromData=Mr.prototype.rp,Mr.prototype.updateAllTargetBindings=Mr.prototype.updateAllTargetBindings,Mr.prototype.commit=Mr.prototype.commit,Mr.prototype.rollbackTransaction=Mr.prototype.Kf,Mr.prototype.commitTransaction=Mr.prototype.eb,Mr.prototype.startTransaction=Mr.prototype.Ea,Mr.prototype.raiseChanged=Mr.prototype.g,Mr.prototype.raiseChangedEvent=Mr.prototype.cb,Mr.prototype.removeChangedListener=Mr.prototype.ik,Mr.prototype.addChangedListener=Mr.prototype.Pe,Mr.prototype.removeModelChangedListener=Mr.prototype.mA,Mr.prototype.addModelChangedListener=Mr.prototype.Yw,Mr.prototype.findLayer=Mr.prototype.Qj,Mr.prototype.removeLayer=Mr.prototype.kA,Mr.prototype.addLayerAfter=Mr.prototype.Cy,Mr.prototype.addLayerBefore=Mr.prototype.Ww,Mr.prototype.addLayer=Mr.prototype.Al,Mr.prototype.moveParts=Mr.prototype.moveParts,Mr.prototype.copyParts=Mr.prototype.Kj,Mr.prototype.removeParts=Mr.prototype.Is,Mr.prototype.remove=Mr.prototype.remove,Mr.prototype.add=Mr.prototype.add,Mr.prototype.clearDelayedGeometries=Mr.prototype.bx,Mr.prototype.setProperties=Mr.prototype.nm,Mr.prototype.attach=Mr.prototype.Du,Mr.prototype.set=Mr.prototype.set,Mr.prototype.resetInputOptions=Mr.prototype.Sx,Mr.prototype.setInputOption=Mr.prototype.sA,Mr.prototype.getInputOption=Mr.prototype.Ql,Mr.prototype.resetRenderingHints=Mr.prototype.Tx,Mr.prototype.setRenderingHint=Mr.prototype.Xx,Mr.prototype.getRenderingHint=Mr.prototype.Gf,Mr.prototype.maybeUpdate=Mr.prototype.bd,Mr.prototype.requestUpdate=Mr.prototype.$b,Mr.prototype.delayInitialization=Mr.prototype.Xy,Mr.prototype.isUpdateRequested=Mr.prototype.Pz,Mr.prototype.invalidateDocumentBounds=Mr.prototype.Ya,Mr.prototype.findObjectsNear=Mr.prototype.og,Mr.prototype.findPartsNear=Mr.prototype.mz,Mr.prototype.findObjectsIn=Mr.prototype.Cf,Mr.prototype.findPartsIn=Mr.prototype.ux,Mr.prototype.findObjectsAt=Mr.prototype.ji,Mr.prototype.findPartsAt=Mr.prototype.lz,Mr.prototype.findObjectAt=Mr.prototype.ic,Mr.prototype.findPartAt=Mr.prototype.Ol,Mr.prototype.focusObject=Mr.prototype.zz,Mr.prototype.alignDocument=Mr.prototype.Jy,Mr.prototype.zoomToRect=Mr.prototype.BA,Mr.prototype.zoomToFit=Mr.prototype.zoomToFit,Mr.prototype.diagramScroll=Mr.prototype.kx,Mr.prototype.focus=Mr.prototype.focus;var Fo=new ft,zo=null,Go=void 0!==m.document,Uo=null,Ho="",_o=new G(Mr,"None",0),Zo=new G(Mr,"Uniform",1),Wo=new G(Mr,"UniformToFill",2),Vo=new G(Mr,"CycleAll",10),Yo=new G(Mr,"CycleNotDirected",11),Xo=new G(Mr,"CycleNotDirectedFast",12),qo=new G(Mr,"CycleNotUndirected",13),Ko=new G(Mr,"CycleDestinationTree",14),Qo=new G(Mr,"CycleSourceTree",15),Jo=new G(Mr,"DocumentScroll",1),$o=new G(Mr,"InfiniteScroll",2),ta=new G(Mr,"TreeParentCollapsed",21),ea=new G(Mr,"AllParentsCollapsed",22),na=new G(Mr,"AnyParentsCollapsed",23),ia=new K,ra="2.3.10",oa="image",aa=null,sa=!1;function la(){this.wy=null,this.j="zz@orderNum","63ad05bbe23a1786468a4c741b6d2"===this._tk?this.Rc=this.j=!0:this.Rc=null}function ua(t,e){if(e.ib.setTransform(e.Mb,0,0,e.Mb,0,0),e.ib.yc(),null===t.Rc)t:{e="f";var n=m[D("76a715b2f73f148a")][D("72ba13b5")]||"";if(t.Rc=!0,Go){var i=Mr[D("76a115b6ed251eaf4692")];if(i)for(var r=ia.iterator;r.next()&&!(6>(i=D(i=r.value).split(D("39e9"))).length);){var o=D(i[1]).split(".");if("7da71ca0"!==i[4])break;var a=D(v[D("6cae19")]).split(".");if(o[0]>a[0]||o[0]===a[0]&&o[1]>=a[1]){var s=m[D("74a900bae4370f8b51")][D("6fbb13a1c2311e8a57")].toLowerCase();if(a=s[D("73a612b6fb191d")](D("3aad1ab6e022098b4dc4")),o=D(i[2]),-1<a&&(s=s[D("73a612b6fb191d")](o.toLowerCase()+"/"),t.Rc=!(-1<s&&s<a),!t.Rc))break;for(a=n[D("76ad18b4f73e")],s=n[D("73a612b6fb191d")](D("35e7"))+2;s<a;s++)e+=n[s];if(0>(a=e[D("73a612b6fb191d")](o))&&o!==D("7da71ca0ad381e90")&&(a=e[D("73a612b6fb191d")](D("76a715b2ef3e149757"))),0>a&&(a=e[D("73a612b6fb191d")](D("76a715b2ef3e149757"))),0>a&&(a=e[D("73a612b6fb191d")](D("2bfa41fdb3784bca12"))),0>a&&(a=n[D("73a612b6fb191d")](D("7baa19a6f76c1988428554"))),t.Rc=!(0<=a&&a<e[D("73a612b6fb191d")](D("35"))||-1===e[D("73a612b6fb191d")](D("35"))),!t.Rc)break;if(n[D("73a612b6fb191d")](D("7fb002b6ed25128b4da25b2e"))&&(t.Rc=!(-1<n[D("73a612b6fb191d")](o)),!t.Rc))break;if(-1<(s=(a=m[D("76a715b2f73f148a")][D("69ad17a1e03e")])[D("73a612b6fb191d")](D("7fb002b6ed25128b4da25b2e")))&&(t.Rc=!(a[D("73a612b6fb191d")](o)>s),!t.Rc))break;if("#"===o[0]){a=m.document.createElement("div");for(var l=i[0].replace(/[A-Za-z]/g,"");4>l.length;)l+="9";if(s=l,l=l.substr(l.length-4),i="",i+=["gsh","gsf"][parseInt(l.substr(0,1),10)%2],i+=["Header","Background","Display","Feedback"][parseInt(l.substr(0,1),10)%4],a[D("79a417a0f0181a8946")]=i,m.document[D("78a712aa")]){m.document[D("78a712aa")][D("7bb806b6ed32388c4a875b")](a),l=m.getComputedStyle(a).getPropertyValue(D("78a704b7e62456904c9b12701b6532a8"));var u=m.getComputedStyle(a).getPropertyValue(D("75b817b0ea2202"));if(m.document[D("78a712aa")][D("68ad1bbcf533388c4a875b")](a),l){if(a=m[D("77a902b0eb1b1e804a8a")],u==="0."+parseInt(s,10)%100||-1!==l.indexOf(parseInt(o[1]+o[2],16))&&-1!==l.indexOf(parseInt(o[3]+o[4],16))){t.Rc=!1;break}if(a&&a(D("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(i="."+i,o=0;o<document.styleSheets.length;o++)for(var c in a=document.styleSheets[o].rules||document.styleSheets[o].cssRules)if(i===a[c].selectorText){t.Rc=!1;break t}}}else t.Rc=null,t.Rc=!1}}}else{for(c=n[D("76ad18b4f73e")],r=n[D("73a612b6fb191d")](D("35e7"))+2;r<c;r++)e+=n[r];n=e[D("73a612b6fb191d")](D("7da71ca0ad381e90")),t.Rc=!(0<=n&&n<e[D("73a612b6fb191d")](D("35")))}}}return 0<t.Rc&&t!==t.wy}function ca(t){this.j=void 0===t?new pt:t,this.o=new pt}Mr.className="Diagram",Mr.fromDiv=function(t){var e=t;return"string"==typeof t&&(e=m.document.getElementById(t)),e instanceof HTMLDivElement&&e.H instanceof Mr?e.H:null},Mr.inherit=function(t,e){function n(){}if(Object.getPrototypeOf(t).prototype)throw Error("Used go.Diagram.inherit defining already defined class \n"+t);n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t},Mr.useDOM=function(t){Go=!!t&&void 0!==m.document},Mr.isUsingDOM=function(){return Go},Mr.None=_o,Mr.Uniform=Zo,Mr.UniformToFill=Wo,Mr.CycleAll=Vo,Mr.CycleNotDirected=Yo,Mr.CycleNotDirectedFast=Xo,Mr.CycleNotUndirected=qo,Mr.CycleDestinationTree=Ko,Mr.CycleSourceTree=Qo,Mr.DocumentScroll=Jo,Mr.InfiniteScroll=$o,Mr.TreeParentCollapsed=ta,Mr.AllParentsCollapsed=ea,Mr.AnyParentsCollapsed=na,la.className="DiagramHelper",d.Object.defineProperties(ca.prototype,{point:{get:function(){return this.j},set:function(t){this.j=t}},shifted:{get:function(){return this.o},set:function(t){this.o=t}}});var ha,da,fa,pa,ga,ma,va,ya,wa,ba,xa="DraggingInfo";function Sa(t,e,n){this.node=t,this.info=e,this.Su=n}function Pa(){this.reset()}function ka(t,e){if("string"==typeof t||m.Element&&t instanceof Element)var n=Mr.call(this,t)||this;else n=Mr.call(this)||this,e=t;return Ca(n),e&&n.nm(e),n}function Ca(t){t.allowDragOut=!0,t.allowMove=!1,t.isReadOnly=!0,t.contentAlignment=ee,t.layout=new Hd}function Aa(t,e){if("string"==typeof t||m.Element&&t instanceof Element)var n=Mr.call(this,t)||this;else n=Mr.call(this)||this,e=t;var i=n;n.animationManager.isEnabled=!1,n.vb=!0,n.V=null,n.mn=!1,n.nn=!1,n.F=!0,n.u=!0,n.ia=0,n.o=!1,n.ql=null,n.Xx("drawShadows",!1),t=new Sc;var r=new pu;return r.stroke="magenta",r.strokeWidth=2,r.fill="transparent",r.name="BOXSHAPE",t.selectable=!0,t.selectionAdorned=!1,t.selectionObjectName="BOXSHAPE",t.locationObjectName="BOXSHAPE",t.resizeObjectName="BOXSHAPE",t.cursor="move",t.add(r),n.j=t,n.allowCopy=!1,n.allowDelete=!1,n.allowSelect=!0,n.autoScrollRegion=new Xt(0,0,0,0),n.pa.h(0,0),n.toolManager.gb("Dragging",new La,n.toolManager.mouseMoveTools),n.click=function(){var t=i.observed;if(null!==t){var e=t.viewportBounds,n=i.lastInput.documentPoint;t.position=new pt(n.x-e.width/2,n.y-e.height/2)}},n.Pf=function(){i.Ya(),Ea(i)},n.Xd=function(){null!==i.observed&&(i.Ya(),i.N())},n.Ha=function(){1>i.updateDelay?i.N():i.o||(i.o=!0,setTimeout((function(){return i.redraw()}),i.updateDelay))},n.Of=function(){null!==i.observed&&Ea(i)},n.autoScale=Zo,n.vb=!1,e&&Object.assign(n,e),n}function Ma(t){var e=t.observed;if(null!==e){var n=t.drawsTemporaryLayers,i=t.drawsGrid&&n,r=e.grid;i&&null!==r&&r.visible&&!isNaN(r.width)&&!isNaN(r.height)&&(vo(e,r=Bt.alloc().assign(t.viewportBounds).ed(e.viewportBounds)),Bt.free(r),Jr(e));var o=t.Ab;o.reset(),1!==t.scale&&o.scale(t.scale),0===t.position.x&&0===t.position.y||o.translate(-t.position.x,-t.position.y),(r=t.ib).scale(t.Mb,t.Mb),r.transform(o.m11,o.m12,o.m21,o.m22,o.dx,o.dy),r.yc(),o=(e=e.Wa.s).length;for(var a=0;a<o;a++){var s=e[a],l=t;if(s.visible&&0!==s.opacity){var u=s.diagram.grid.part;if(!n&&s.isTemporary)i&&u.layer===s&&(s=kr(s,r),u.gc(r,l),r.globalAlpha=s);else{for(var c=kr(s,r),h=l.scale,d=Bt.alloc(),f=s.Pa.s,p=f.length,g=0;g<p;g++){var m=f[g];(i||m!==u)&&s.Oj(r,m,l,null,h,d,!1)}Bt.free(d),r.globalAlpha=c}}}}}function Ea(t){var e=t.box;if(null!==e){var n=t.observed;if(null!==n){t.Fc=!0,n=n.viewportBounds;var i=e.selectionObject,r=Tt.alloc();r.h(n.width,n.height),i.desiredSize=r,Tt.free(r),t=2/t.scale,i instanceof pu&&(i.strokeWidth=t),e.location=new pt(n.x-t/2,n.y-t/2),e.isSelected=!0}}}function La(){Ln.call(this),this.j=null}function Ta(){$(this),this.H=wr,this.Ha=this.u=this.o=!0,this.F=this.V=this.nb=this.ia=!1,this.ij=this.j=null,this.Hb=1.05,this.Jt=NaN,this.sw=null,this.Au=NaN,this.yu=Wt,this.hb=!0,this.cg=null,this.ob=200}function Na(t,e,n){if(e.isVisible())return n;if(e instanceof Yc)Na(t,e.adornedPart,n);else if(e instanceof xh){var i=e.fromNode;null!==i&&Na(t,i,n),null!==(e=e.toNode)&&Na(t,e,n)}else e instanceof qc&&(null!==(i=e.labeledLink)&&Na(t,i,n),null!==(i=e.pg())&&(i.isTreeExpanded||i.wasTreeExpanded||n.push(i),Na(t,i,n))),null!==(e=e.containingGroup)&&(e.isSubGraphExpanded||e.wasSubGraphExpanded||n.push(e),Na(t,e,n));return n}function ja(t){var e=T();for(t=t.iterator;t.next();){var n=t.value;n instanceof xh||e.push(n)}t=new J,n=e.length;for(var i=0;i<n;i++){for(var r=e[i],o=!0,a=0;a<n;a++)if(r.Td(e[a])){o=!1;break}o&&t.add(r)}return N(e),t}function Ia(){$(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new pt(NaN,NaN).freeze(),this.jd=Et,this.Ab=new Ue,this.wh=new Ue,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=Qt,this.uc=new Bt(NaN,NaN,NaN,NaN).freeze(),this.Ib=new Bt(NaN,NaN,NaN,NaN).freeze(),this.dc=new Bt(0,0,NaN,NaN).freeze(),this.ba=this.Yn=this.Zn=null,this.sk=this.Jb=ke,this.Ag=this.io=0,this.V=this.tb=this.Dh=this.A=this.Ua=null,this.Uc=!1,this.jo=this.Ng=null}function Ba(t){null===t.A?t.A=new ds:t.A.nc&&(t.A=t.A.copy())}function Oa(t,e,n){var i=t.ih();if(null!==i)for(var r=t.localBindings.iterator;r.next();){var o=r.value,a=null;if(null!==o.sourceName){if(null===(a=_f(o,i,t)))continue;o.sp(t,a,n,null)}else if(o.isToModel){var s=e.diagram;null===s||s.skipsModelSourceBindings||o.sp(t,s.model.modelData,n,i)}else{if(null===(s=i.data))continue;var l=e.diagram;null===l||l.skipsModelSourceBindings||o.sp(t,s,n,i)}a===t&&(null!==(s=i.ks(o.Ai))&&o.Mv(s,a,n))}}function Da(t,e,n,i){return!1!==t.pickable&&(i.multiply(t.transform),n?t.Yc(e,i):t.fh(e,i))}function Ra(t,e,n,i,r){if(t.Ib.h(e,n,i,r),!t.desiredSize.w()){var o=t.uc;e=(n=t.Kg).right+n.left;var a=n.top+n.bottom;switch(n=o.width+e,o=o.height+a,i+=e,r+=a,e=Ya(t,!0),n===i&&o===r&&(e=da),e){case da:(n>i||o>r)&&(ns(t,!0),t.measure(n>i?i:n,o>r?r:o,0,0));break;case ha:ns(t,!0),t.measure(i,r,0,0);break;case pa:ns(t,!0),t.measure(i,o,0,0);break;case ga:ns(t,!0),t.measure(n,r,0,0)}}}function Fa(t,e){return null!==e&&(Gl(e)&&(e=e.panel),0!=(512&e.l)||(e.type===Ml.Auto||e.type===Ml.Spot)&&e.Pb()!==t)}function za(t,e,n,i){Za(t,e,t.areaBackground,!0,!0,n,i),t.areaBackground instanceof Ds&&t.areaBackground.type===Js?(e.beginPath(),e.rect(i.x,i.y,i.width,i.height),e.ng(t.areaBackground)):e.fillRect(i.x,i.y,i.width,i.height)}function Ga(t,e,n,i){var r=t.kq(),o=n.x,a=n.y,s=n.width+r,l=n.height+r;Za(t,e,t.Ma,!0,!1,n,i),t.Ma instanceof Ds&&t.Ma.type===Js?(e.beginPath(),e.rect(o-r/2,a-r/2,s,l),e.ng(t.Ma)):e.fillRect(o-r/2,a-r/2,s,l)}function Ua(t,e,n){for(var i=e.O.s,r=i.length,o=-1,a=0;a<r;a++)if(i[a]===t){o=a;break}if(-1!==(t=o))if(0===t)e.svg.gd?e.svg.gd.after(n):e.svg.Ma?e.svg.Ma.after(n):e.type===Ml.Table?null!==(e=0!==(e=e.svg.getElementsByClassName("gojs-ts")).length?e[0]:null)&&e.after(n):e.svg.prepend(n);else{for(;0!==t&&!e.M(t-1).Ed();)t--;0===t?e.svg.prepend(n):null!==(t=e.M(t-1).svg)?t.after(n):e.svg.appendChild(n)}}function Ha(t,e){null!==(e=e.getAttribute("clip-path"))&&(null!==(t=t.svg.getElementById(e.split("#")[1].slice(0,-1)))&&t.remove())}function _a(t){if(null!==t.svg){var e=t.svg.innerHTML.match(/url\(#((CLIP|GRAD).+?)\)/g),n=t.svg.ownerDocument;if(null!==e)for(var i=(e=r(e)).next();!i.done;i=e.next())null!==(i=n.getElementById(i.value.split("#")[1].slice(0,-1)))&&i.remove();t.svg.remove()}}function Za(t,e,n,i,r,o,a){if(null!==n){var s=1,l=1;if("string"==typeof n)i?e.fillStyle=n:e.strokeStyle=n;else if(n.type===Ks)i?e.fillStyle=n.color:e.strokeStyle=n.color;else{var u=t.kq();if(s=o.width,l=o.height,r?(s=a.width,l=a.height):i||(s+=u,l+=u),(o=e instanceof Is)&&n.xe&&(n.type===$s||n.yk===s&&n.ft===l))var c=n.xe;else{var h=0,d=0,f=0,p=0,g=0,m=0;if(m=g=0,r?(g=a.x,m=a.y):i||(g-=u/2,m-=u/2),h=n.start.x*s+n.start.offsetX,d=n.start.y*l+n.start.offsetY,f=n.end.x*s+n.end.offsetX,p=n.end.y*l+n.end.offsetY,h+=g,f+=g,d+=m,p+=m,n.type===Qs)c=e.createLinearGradient(h,d,f,p);else if(n.type===Js)m=isNaN(n.endRadius)?Math.max(s,l)/2:n.endRadius,isNaN(n.startRadius)?(g=0,m=Math.max(s,l)/2):g=n.startRadius,c=e.createRadialGradient(h,d,g,f,p,m);else if(n.type===$s)try{c=e.createPattern(n.pattern,"repeat")}catch(t){c=null}if(n.type!==$s&&null!==(r=n.colorStops))for(r=r.iterator;r.next();)c.addColorStop(r.key,r.value);if(o&&(n.xe=c,null!==c&&(n.yk=s,n.ft=l),null===c&&n.type===$s&&-1!==n.yk)){n.yk=-1;var v=t.diagram;null!==v&&-1===n.yk&&w((function(){v.redraw()}),600)}}i?e.fillStyle=c:e.strokeStyle=c}}}function Wa(t){if(0!=(2048&t.l)==!0){var e=t.Ab;if(e.reset(),!t.Ib.w()||!t.uc.w())return void $a(t,!1);if(e.translate(t.Ib.x-t.uc.x,t.Ib.y-t.uc.y),1!==t.scale||0!==t.angle){var n=t.naturalBounds;t.no(e,n.x,n.y,n.width,n.height)}$a(t,!1),ts(t,!0)}0!=(4096&t.l)==!0&&(null===(e=t.panel)?(t.wh.set(t.Ab),t.Kk=t.scale,ts(t,!1)):null!==e.oe&&((n=t.wh).reset(),e.se()?n.multiply(e.wh):null!==e.panel&&n.multiply(e.panel.wh),n.multiply(t.Ab),t.Kk=t.scale*e.Kk,ts(t,!1)))}function Va(t){if(!is(t)){var e=t.panel;null!==e?e.v():t.Dd()&&(null!==(e=t.diagram)&&(e.De.add(t),t instanceof qc&&t.Bd(),e.$b())),rs(t,!0)}}function Ya(t,e){var n=t.stretch,i=t.panel;return null!==i&&i.type===Ml.Table?Xa(t,i.Fb(t.row),i.Eb(t.column),e):null!==i&&i.type===Ml.Auto&&i.Pb()===t?qa(t,ha,e):n===ma?null!==i?i.type===Ml.Spot&&i.Pb()===t?qa(t,ha,e):qa(t,(n=i.defaultStretch)===ma?da:n,e):qa(t,da,e):qa(t,n,e)}function Xa(t,e,n,i){var r=t.stretch;if(r!==ma)return qa(t,r,i);var o=r=null;switch(e.stretch){case ga:case ha:o=!0}switch(n.stretch){case pa:case ha:r=!0}return e=t.panel.defaultStretch,null===r&&(r=e===pa||e===ha),null===o&&(o=e===ga||e===ha),qa(t,!0===r&&!0===o?ha:!0===r?pa:!0===o?ga:da,i)}function qa(t,e,n){if(n)return e;if(e===da)return da;if((n=t.desiredSize).w())return da;if(t=t.angle,!isNaN(n.width))if(90!==t&&270!==t){if(e===pa)return da;if(e===ha)return ga}else{if(e===ga)return da;if(e===ha)return pa}if(!isNaN(n.height))if(90!==t&&270!==t){if(e===ga)return da;if(e===ha)return pa}else{if(e===pa)return da;if(e===ha)return ga}return e}function Ka(t,e){t.l=e?512|t.l:-513&t.l}function Qa(t){return 0!=(1024&t.l)}function Ja(t,e){t.l=e?1024|t.l:-1025&t.l}function $a(t,e){t.l=e?2048|t.l:-2049&t.l}function ts(t,e){t.l=e?4096|t.l:-4097&t.l}function es(t){return 0!=(8192&t.l)}function ns(t,e){t.l=e?8192|t.l:-8193&t.l}function is(t){return 0!=(16384&t.l)}function rs(t,e){t.l=e?16384|t.l:-16385&t.l}function os(t){var e=t.part;if(e instanceof qc&&(null!==t.portId||t===e.port)){var n=e.diagram;null===n||n.undoManager.isUndoingRedoing||$c(e,t)}}function as(t){var e=t.diagram;null===e||e.undoManager.isUndoingRedoing||(t instanceof Ml?t instanceof qc?t.Bd():t.qm(t,(function(t){os(t)})):os(t))}function ss(t,e){for(var n=1;n<arguments.length;++n);n=arguments;var i=null,r=null;if("function"==typeof t)r=t;else if("string"==typeof t){var o=hs.I(t);"function"==typeof o?C(i=o(n=M(arguments)))||x('GraphObject.make invoked object builder "'+t+'", but it did not return an Object'):r=m.go[t]}if(null===i&&(null!=r&&r.constructor||x("GraphObject.make requires a class function or GoJS class name or name of an object builder, not: "+t),i=new r),r=1,i instanceof Mr&&1<n.length){o=i;var a=n[1];("string"==typeof a||a instanceof HTMLDivElement)&&(Nr(o,a),r++)}for(;r<n.length;r++)void 0===(o=n[r])?x("Undefined value at argument "+r+" for object being constructed by GraphObject.make: "+i):ls(i,o);return i}function ls(t,e){if("string"==typeof e)if(t instanceof Au)t.text=e;else if(t instanceof pu)t.figure=e;else if(t instanceof rc)t.source=e;else if(t instanceof Ml)null!==(e=ou.I(e))&&(t.type=e);else if(t instanceof Ds){var n=U(Ds,e);null!==n?t.type=n:x("Unknown Brush type as an argument to GraphObject.make: "+e)}else t instanceof Ze?null!==(e=U(Ze,e))&&(t.type=e):t instanceof $e&&(null!==(e=U($e,e))&&(t.type=e));else if(e instanceof Ia)t instanceof Ml||x("A GraphObject can only be added to a Panel, not to: "+t),t.add(e);else if(e instanceof lu){var i;e.isRow&&"function"==typeof t.getRowDefinition?i=t.getRowDefinition(e.index):e.isRow||"function"!=typeof t.getColumnDefinition||(i=t.getColumnDefinition(e.index)),i instanceof lu?uu(i,e):x("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+t)}else if(e instanceof G)"function"==typeof t.qb&&t.qb(e);else if(e instanceof hl)t.type=e;else if(e instanceof Hf)t instanceof Ia||t instanceof lu?t.bind(e):x("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+t);else if(e instanceof vr)t instanceof Ia?t.Jv(e):x("An AnimationTrigger can only be applied to a GraphObject, not to: "+t);else if(e instanceof Je)t instanceof Ze&&t.type===Ze.o?t.figures.add(e):x("A PathFigure can only be added to a Path Geometry, not to: "+t);else if(e instanceof $e)t instanceof Je?t.segments.add(e):x("A PathSegment can only be added to a PathFigure, not to: "+t);else if(e instanceof Nd)t instanceof Mr||t instanceof gh?t.layout=e:x("A Layout can only be assigned to a Diagram or a Group, not to: "+t);else if(Array.isArray(e))for(n=0;n<e.length;n++)ls(t,e[n]);else if("object"==typeof e&&null!==e)if(t instanceof Ds){for(var r in n=new _,e)i=parseFloat(r),isNaN(i)?n[r]=e[r]:t.addColorStop(i,e[r]);no(t,n)}else if(t instanceof lu){for(n in void 0!==e.row?((null==(r=e.row)||1/0===r||isNaN(r)||0>r)&&x("Must specify non-negative integer row for RowColumnDefinition "+e+", not: "+r),t.isRow=!0,t.index=r):void 0!==e.column&&((null==(r=e.column)||1/0===r||isNaN(r)||0>r)&&x("Must specify non-negative integer column for RowColumnDefinition "+e+", not: "+r),t.isRow=!1,t.index=r),r=new _,e)"row"!==n&&"column"!==n&&(r[n]=e[n]);no(t,r)}else no(t,e);else x('Unknown initializer "'+e+'" for object being constructed by GraphObject.make: '+t)}function us(t,e){hs.add(t,e)}function cs(t,e,n){void 0===n&&(n=null);var i=t[1];if("function"==typeof n?n(i):"string"==typeof i)return t.splice(1,1),i;if(void 0===e)throw Error("no "+("function"==typeof n?"satisfactory":"string")+" argument for GraphObject builder "+t[0]);return e}ca.className="DraggingInfo",Sa.className="DraggingNodeInfoPair",Pa.prototype.reset=function(){this.isGridSnapEnabled=!1,this.isGridSnapRealtime=!0,this.gridSnapCellSize=new Tt(NaN,NaN).freeze(),this.gridSnapCellSpot=te,this.gridSnapOrigin=new pt(NaN,NaN).freeze(),this.groupsSnapMembers=this.dragsTree=this.dragsLink=!1,this.dragsMembers=this.groupsAlwaysMove=!0},Pa.className="DraggingOptions",h(ka,Mr),ka.prototype.reset=function(){Mr.prototype.reset.call(this),Ca(this)},ka.className="Palette",h(Aa,Mr),Aa.prototype.computePixelRatio=function(){return 1},Aa.prototype.redraw=function(){if(this.o&&1<=this.updateDelay){this.o=!1;var t=this.ta,e=this.ib;if(null!==t&&null!==e){if(io(this),null===this.ql){var n=new js(null);n.width=t.width,n.height=t.height,this.ql=n}try{this.ta=this.ql,this.ib=this.ta.context,this.ib.Vc(!0),this.ib.setTransform(1,0,0,1,0,0),this.ib.clearRect(0,0,this.ta.width,this.ta.height),Ma(this)}finally{this.ta=t,this.ib=e}}}Mr.prototype.redraw.call(this)},Aa.prototype.gc=function(){if(null===this.Ka&&x("No div specified"),null===this.ta&&x("No canvas specified"),!(this.ta instanceof vs)&&(kc(this.box),this.Fc)){var t=this.observed;if(null!==t&&!t.animationManager.defaultAnimation.isAnimating&&t.pi){io(this);var e=this.ta;(t=this.ib).Vc(!0),t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,e.width,e.height),1>this.updateDelay?Ma(this):null!==this.ql&&(t.drawImage(this.ql.Oa,0,0),(e=this.Ab).reset(),1!==this.scale&&e.scale(this.scale),0===this.position.x&&0===this.position.y||e.translate(-this.position.x,-this.position.y),t.scale(this.Mb,this.Mb),t.transform(e.m11,e.m12,e.m21,e.m22,e.dx,e.dy),t.yc());for(var n=(e=this.Wa.s).length,i=0;i<n;i++)e[i].gc(t,this);this.Fc=this.vd=!1}}},Aa.prototype.computeBounds=function(){var t=this.observed;if(null===t)return Wt;var e=t.documentBounds.copy();return e.ed(t.viewportBounds),e},Aa.prototype.invalidateViewport=function(){!0!==this.Fc&&(this.Fc=!0,this.$b())},Aa.prototype.onViewportBoundsChanged=function(t,e,n,i){this.vb||(this.vd=!0,this.N(),this.Ee=!0,this.Ya(),Ea(this),this.fc.scale=n,this.fc.position.x=t.x,this.fc.position.y=t.y,this.fc.bounds.assign(t),this.fc.Oz=i,this.R("ViewportBoundsChanged",this.fc,t))},d.Object.defineProperties(Aa.prototype,{observed:{get:function(){return this.V},set:function(t){var e=this.V;if(t instanceof Aa&&x("Overview.observed Diagram may not be an Overview itself: "+t),e!==t){if(null!==e&&(this.remove(this.box),e.am("ViewportBoundsChanged",this.Pf),e.am("DocumentBoundsChanged",this.Xd),e.am("InvalidateDraw",this.Ha),e.am("AnimationFinished",this.Of)),this.V=t,null!==t&&(t.Bj("ViewportBoundsChanged",this.Pf),t.Bj("DocumentBoundsChanged",this.Xd),t.Bj("InvalidateDraw",this.Ha),t.Bj("AnimationFinished",this.Of),this.add(this.box)),this.Ya(),null===t){this.ql=null;var n=this.ta,i=this.ib;n&&i&&(i.setTransform(1,0,0,1,0,0),i.clearRect(0,0,n.width,n.height))}else this.Ha(null),Ea(this),this.N();this.g("observed",e,t)}}},box:{get:function(){return this.j},set:function(t){var e=this.j;e!==t&&(this.j=t,this.remove(e),this.add(this.j),Ea(this),this.g("box",e,t))}},drawsTemporaryLayers:{get:function(){return this.F},set:function(t){this.F!==t&&(this.F=t,this.redraw())}},drawsGrid:{get:function(){return this.u},set:function(t){this.u!==t&&(this.u=t,this.redraw())}},updateDelay:{get:function(){return this.ia},set:function(t){0>t&&(t=0),this.ia!==t&&(this.ia=t)}}}),Aa.className="Overview",h(La,Ln),La.prototype.canStart=function(){if(!this.isEnabled)return!1;var t=this.diagram;if(null===t||!t.allowMove||!t.allowSelect)return!1;var e=t.observed;if(null===e)return!1;var n=t.lastInput;return!(!n.left||t.currentTool!==this&&(!this.isBeyondDragSize()||n.isTouchEvent&&n.timestamp-t.firstInput.timestamp<this.delay))&&(null===this.findDraggablePart()&&(n=e.viewportBounds,this.j=new pt(n.width/2,n.height/2),t=t.firstInput.documentPoint,e.position=new pt(t.x-this.j.x,t.y-this.j.y)),!0)},La.prototype.doActivate=function(){this.j=null,Ln.prototype.doActivate.call(this)},La.prototype.doUpdateCursor=function(){var t=this.diagram,e=t.box;null!==e&&e.cursor&&(t.currentCursor=e.cursor)},La.prototype.moveParts=function(){var t=this.diagram,e=t.observed;if(null!==e){var n=t.box;if(null!==n){if(null===this.j){var i=t.firstInput.documentPoint;n=n.location,this.j=new pt(i.x-n.x,i.y-n.y)}t=t.lastInput.documentPoint,e.position=new pt(t.x-this.j.x,t.y-this.j.y)}}},La.className="OverviewDraggingTool",Ta.prototype.toString=function(){return"CommandHandler"},Ta.prototype.Xe=function(t){this.H=t},Ta.prototype.doKeyDown=function(){var t=this.diagram,e=t.lastInput,n=F?e.meta:e.control,i=e.shift,r=e.alt,o=e.key;!n||"C"!==o&&"Insert"!==o?n&&"X"===o||i&&"Del"===o?this.canCutSelection()&&this.cutSelection():n&&"V"===o||i&&"Insert"===o?this.canPasteSelection()&&this.pasteSelection():n&&"Y"===o||r&&i&&"Backspace"===o?this.canRedo()&&this.redo():n&&"Z"===o||r&&"Backspace"===o?this.canUndo()&&this.undo():"Del"===o||"Backspace"===o?this.canDeleteSelection()&&this.deleteSelection():n&&"A"===o?this.canSelectAll()&&this.selectAll():"Esc"===o?this.canStopCommand()&&this.stopCommand():"Up"===o?t.allowVerticalScroll&&(n?t.scroll("pixel","up"):t.scroll("line","up")):"Down"===o?t.allowVerticalScroll&&(n?t.scroll("pixel","down"):t.scroll("line","down")):"Left"===o?t.allowHorizontalScroll&&(n?t.scroll("pixel","left"):t.scroll("line","left")):"Right"===o?t.allowHorizontalScroll&&(n?t.scroll("pixel","right"):t.scroll("line","right")):"PageUp"===o?i&&t.allowHorizontalScroll?t.scroll("page","left"):t.allowVerticalScroll&&t.scroll("page","up"):"PageDown"===o?i&&t.allowHorizontalScroll?t.scroll("page","right"):t.allowVerticalScroll&&t.scroll("page","down"):"Home"===o?n&&t.allowVerticalScroll?t.scroll("document","up"):!n&&t.allowHorizontalScroll&&t.scroll("document","left"):"End"===o?n&&t.allowVerticalScroll?t.scroll("document","down"):!n&&t.allowHorizontalScroll&&t.scroll("document","right"):" "===o?this.canScrollToPart()&&this.scrollToPart():"Subtract"===o?this.canDecreaseZoom()&&this.decreaseZoom():"Add"===o?this.canIncreaseZoom()&&this.increaseZoom():n&&"0"===o?this.canResetZoom()&&this.resetZoom():i&&"Z"===o?this.canZoomToFit()&&this.zoomToFit():n&&!i&&"G"===o?this.canGroupSelection()&&this.groupSelection():n&&i&&"G"===o?this.canUngroupSelection()&&this.ungroupSelection():"F2"===o||e.event&&"F2"===e.event.key?this.canEditTextBlock()&&this.editTextBlock():"ContextMenu"===o||e.event&&"ContextMenu"===e.event.key?this.canShowContextMenu()&&this.showContextMenu():e.bubbles=!0:this.canCopySelection()&&this.copySelection()},Ta.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},Ta.prototype.stopCommand=function(){var t=this.diagram,e=t.currentTool;e instanceof bn&&t.allowSelect&&t.clearSelection(),null!==e&&e.doCancel()},Ta.prototype.canStopCommand=function(){return!0},Ta.prototype.selectAll=function(){var t=this.diagram;t.N();try{t.currentCursor="wait",t.R("ChangingSelection",t.selection);for(var e=t.parts;e.next();)e.value.isSelected=!0;for(var n=t.nodes;n.next();)n.value.isSelected=!0;for(var i=t.links;i.next();)i.value.isSelected=!0}finally{t.R("ChangedSelection",t.selection),t.currentCursor=""}},Ta.prototype.canSelectAll=function(){return this.diagram.allowSelect},Ta.prototype.deleteSelection=function(){var t=this.diagram;try{t.currentCursor="wait",t.R("ChangingSelection",t.selection),t.Ea("Delete"),t.R("SelectionDeleting",t.selection);for(var e=new J,n=t.selection.iterator;n.next();)Wc(e,n.value,!0,this.deletesTree?1/0:0,!!this.deletesConnectedLinks&&null,(function(t){return t.canDelete()}));t.Is(e,!0),t.R("SelectionDeleted",e)}finally{t.eb("Delete"),t.R("ChangedSelection",t.selection),t.currentCursor=""}},Ta.prototype.canDeleteSelection=function(){var t=this.diagram;return!(t.isReadOnly||t.isModelReadOnly||!t.allowDelete||0===t.selection.count)},Ta.prototype.copySelection=function(){var t=this.diagram,e=new J;for(t=t.selection.iterator;t.next();)Wc(e,t.value,!0,this.copiesTree?1/0:0,this.copiesConnectedLinks,(function(t){return t.canCopy()}));this.copyToClipboard(e)},Ta.prototype.canCopySelection=function(){var t=this.diagram;return!(!t.allowCopy||!t.allowClipboard||0===t.selection.count)},Ta.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},Ta.prototype.canCutSelection=function(){var t=this.diagram;return!(t.isReadOnly||t.isModelReadOnly||!t.allowCopy||!t.allowDelete||!t.allowClipboard||0===t.selection.count)},Ta.prototype.copyToClipboard=function(t){var e=this.diagram,n=null;if(null===t)Uo=null,Ho="";else{n=e.model;var i=!1,r=!1,o=null;try{n.Tl()&&(i=n.Jj,n.Jj=this.copiesParentKey),n.Wj()&&(r=n.Ij,n.Ij=this.copiesGroupKey),o=e.Kj(t,null,!0)}finally{n.Tl()&&(n.Jj=i),n.Wj()&&(n.Ij=r),(n=new K).addAll(o),Uo=n,Ho=e.model.dataFormat}}e.R("ClipboardChanged",n)},Ta.prototype.pasteFromClipboard=function(){var t=new J,e=Uo;if(null===e)return t;var n=this.diagram;if(Ho!==n.model.dataFormat)return t;var i=n.model,r=!1,o=!1,a=null;try{i.Tl()&&(r=i.Jj,i.Jj=this.copiesParentKey),i.Wj()&&(o=i.Ij,i.Ij=this.copiesGroupKey),a=n.Kj(e,n,!1)}finally{for(i.Tl()&&(i.Jj=r),i.Wj()&&(i.Ij=o),e=a.iterator;e.next();)n=e.value,i=e.key,n.location.w()||(i.location.w()?n.location=i.location:!n.position.w()&&i.position.w()&&(n.position=i.position)),t.add(n)}return t},Ta.prototype.pasteSelection=function(t){void 0===t&&(t=null);var e=this.diagram;try{e.currentCursor="wait",e.R("ChangingSelection",e.selection),e.Ea("Paste");var n=this.pasteFromClipboard();0<n.count&&e.clearSelection(!0);for(var i=n.iterator;i.next();)i.value.isSelected=!0;if(null!==t){var r=e.computePartsBounds(e.selection);if(r.w())lo(e,this.computeEffectiveCollection(e.selection,e.Wm),new pt(t.x-r.centerX,t.y-r.centerY),e.Wm,!1)}e.R("ClipboardPasted",n)}finally{e.eb("Paste"),e.R("ChangedSelection",e.selection),e.currentCursor=""}},Ta.prototype.canPasteSelection=function(){var t=this.diagram;return!(t.isReadOnly||t.isModelReadOnly||!t.allowInsert||!t.allowClipboard||null===Uo||0===Uo.count||Ho!==t.model.dataFormat)},Ta.prototype.undo=function(){this.diagram.undoManager.undo()},Ta.prototype.canUndo=function(){var t=this.diagram;return!t.isReadOnly&&!t.isModelReadOnly&&(t.allowUndo&&t.undoManager.canUndo())},Ta.prototype.redo=function(){this.diagram.undoManager.redo()},Ta.prototype.canRedo=function(){var t=this.diagram;return!t.isReadOnly&&!t.isModelReadOnly&&(t.allowUndo&&t.undoManager.canRedo())},Ta.prototype.decreaseZoom=function(t){void 0===t&&(t=1/this.zoomFactor);var e=this.diagram;e.autoScale===_o&&((t=e.scale*t)<e.minScale||t>e.maxScale||(e.scale=t))},Ta.prototype.canDecreaseZoom=function(t){void 0===t&&(t=1/this.zoomFactor);var e=this.diagram;return e.autoScale===_o&&(!((t=e.scale*t)<e.minScale||t>e.maxScale)&&e.allowZoom)},Ta.prototype.increaseZoom=function(t){void 0===t&&(t=this.zoomFactor);var e=this.diagram;e.autoScale===_o&&((t=e.scale*t)<e.minScale||t>e.maxScale||(e.scale=t))},Ta.prototype.canIncreaseZoom=function(t){void 0===t&&(t=this.zoomFactor);var e=this.diagram;return e.autoScale===_o&&(!((t=e.scale*t)<e.minScale||t>e.maxScale)&&e.allowZoom)},Ta.prototype.resetZoom=function(t){void 0===t&&(t=this.defaultScale);var e=this.diagram;t<e.minScale||t>e.maxScale||(e.scale=t)},Ta.prototype.canResetZoom=function(t){void 0===t&&(t=this.defaultScale);var e=this.diagram;return!(t<e.minScale||t>e.maxScale)&&e.allowZoom},Ta.prototype.zoomToFit=function(){var t=this.diagram,e=t.animationManager;e.Cc(),t.redraw();var n=t.position,i=t.scale;Vi(e,"Zoom To Fit"),this.isZoomToFitRestoreEnabled&&i===this.Au&&!isNaN(this.Jt)&&t.documentBounds.D(this.yu)?(t.scale=this.Jt,t.position=this.sw,this.Au=NaN,this.yu=Wt):(this.Jt=i,this.sw=n.copy(),t.zoomToFit(),this.Au=t.scale,this.yu=t.documentBounds.copy()),Yi(e)},Ta.prototype.canZoomToFit=function(){return this.diagram.allowZoom},Ta.prototype.scrollToPart=function(t){void 0===t&&(t=null);var e=this.diagram;if(e.Va(),null===t){try{null!==this.cg&&(this.cg.next()?t=this.cg.value:this.cg=null)}catch(t){this.cg=null}null===t&&(0<e.highlighteds.count?this.cg=e.highlighteds.iterator:0<e.selection.count&&(this.cg=e.selection.iterator),null!==this.cg&&this.cg.next()&&(t=this.cg.value))}if(null!==t){var n=e.animationManager;Vi(n,"Scroll To Part");var i=this.scrollToPartPause;if(0<i){var r=Na(this,t,[t]);if(1===r.length)e.Ea(),e.es(t.actualBounds),e.eb("Scroll To Part");else{var o=function(){e.Ea();for(var t=r.pop();0<r.length&&t instanceof qc&&t.isTreeExpanded&&(!(t instanceof gh)||t.isSubGraphExpanded);)t=r.pop();0<r.length?(t instanceof Sc&&e.tv(t.actualBounds),t instanceof qc&&!t.isTreeExpanded&&(t.isTreeExpanded=!0),t instanceof gh&&!t.isSubGraphExpanded&&(t.isSubGraphExpanded=!0)):(t instanceof Sc&&e.es(t.actualBounds),e.am("LayoutCompleted",a)),e.eb("Scroll To Part")},a=function(){w(o,(n.isEnabled?n.duration:0)+i)};e.Bj("LayoutCompleted",a),o()}}else{var s=e.position.copy();e.es(t.actualBounds),s.Xa(e.position)&&n.Cc()}}},Ta.prototype.canScrollToPart=function(t){return void 0===t&&(t=null),(null===t||t instanceof Sc)&&((0!==(t=this.diagram).selection.count||0!==t.highlighteds.count)&&(t.allowHorizontalScroll&&t.allowVerticalScroll))},Ta.prototype.collapseTree=function(t){void 0===t&&(t=null);var e=this.diagram;try{e.Ea("Collapse Tree"),Vi(e.animationManager,"Collapse Tree");var n=new K;if(null!==t&&t.isTreeExpanded)t.collapseTree(),n.add(t);else if(null===t)for(var i=e.selection.iterator;i.next();){var r=i.value;r instanceof qc&&r.isTreeExpanded&&(r.collapseTree(),n.add(r))}e.R("TreeCollapsed",n)}finally{e.eb("Collapse Tree")}},Ta.prototype.canCollapseTree=function(t){void 0===t&&(t=null);var e=this.diagram;if(e.isReadOnly)return!1;if(null!==t){if(!(t instanceof qc&&t.isTreeExpanded))return!1;if(0<t.Qo().count)return!0}else for(t=e.selection.iterator;t.next();)if((e=t.value)instanceof qc&&e.isTreeExpanded&&0<e.Qo().count)return!0;return!1},Ta.prototype.expandTree=function(t){void 0===t&&(t=null);var e=this.diagram;try{e.Ea("Expand Tree"),Vi(e.animationManager,"Expand Tree");var n=new K;if(null===t||t.isTreeExpanded){if(null===t)for(var i=e.selection.iterator;i.next();){var r=i.value;r instanceof qc&&!r.isTreeExpanded&&(r.expandTree(),n.add(r))}}else t.expandTree(),n.add(t);e.R("TreeExpanded",n)}finally{e.eb("Expand Tree")}},Ta.prototype.canExpandTree=function(t){void 0===t&&(t=null);var e=this.diagram;if(e.isReadOnly)return!1;if(null!==t){if(!(t instanceof qc)||t.isTreeExpanded)return!1;if(0<t.Qo().count)return!0}else for(t=e.selection.iterator;t.next();)if((e=t.value)instanceof qc&&!e.isTreeExpanded&&0<e.Qo().count)return!0;return!1},Ta.prototype.groupSelection=function(){var t=this.diagram,e=t.model;if(e.Xj()){var n=this.archetypeGroupData;if(null!==n){var i=null;try{t.currentCursor="wait",t.R("ChangingSelection",t.selection),t.Ea("Group");for(var r=new K,o=t.selection.iterator;o.next();){var a=o.value;a.Zc()&&a.canGroup()&&r.add(a)}for(var s=new K,l=r.iterator;l.next();){var u=l.value;o=!1;for(var c=r.iterator;c.next();)if(u.Td(c.value)){o=!0;break}o||s.add(u)}if(0<s.count){var h=s.first().containingGroup;if(null!==h)for(;null!==h;){r=!1;for(var d=s.iterator;d.next();)if(!d.value.Td(h)){r=!0;break}if(!r)break;h=h.containingGroup}if(n instanceof gh)Xl(n),null!==(i=n.copy())&&t.add(i);else if(e.Yu(n)){var f=e.copyNodeData(n);C(f)&&(e.xf(f),i=t.ii(f))}if(null!==i){null!==h&&this.isValidMember(h,i)&&(i.containingGroup=h);for(var p=s.iterator;p.next();){var g=p.value;this.isValidMember(i,g)&&(g.containingGroup=i)}t.clearSelection(!0),i.isSelected=!0}}t.R("SelectionGrouped",i)}finally{t.eb("Group"),t.R("ChangedSelection",t.selection),t.currentCursor=""}}}},Ta.prototype.canGroupSelection=function(){var t=this.diagram;if(t.isReadOnly||t.isModelReadOnly||!t.allowInsert||!t.allowGroup||!t.model.Xj()||null===this.archetypeGroupData)return!1;for(t=t.selection.iterator;t.next();){var e=t.value;if(e.Zc()&&e.canGroup())return!0}return!1},Ta.prototype.isValidMember=function(t,e){if(null===e||t===e||e instanceof xh)return!1;if(null!==t){if(t===e||t.Td(e))return!1;var n=t.memberValidation;if(null!==n&&!n(t,e)||null===t.data&&null!==e.data||null!==t.data&&null===e.data)return!1}return null===(n=this.memberValidation)||n(t,e)},Ta.prototype.ungroupSelection=function(t){void 0===t&&(t=null);var e=this.diagram,n=e.model;if(n.Xj())try{e.currentCursor="wait",e.R("ChangingSelection",e.selection),e.Ea("Ungroup");var i=new K;if(null!==t)i.add(t);else for(var r=e.selection.iterator;r.next();){var o=r.value;o instanceof gh&&o.canUngroup()&&i.add(o)}var a=new K;if(0<i.count){e.clearSelection(!0);for(var s=i.iterator;s.next();){var l=s.value;l.expandSubGraph();var u=l.containingGroup,c=null!==u&&null!==u.data?n.wa(u.data):void 0;a.addAll(l.memberParts);for(var h=a.iterator;h.next();){var d=h.value;if(d.isSelected=!0,!(d instanceof xh)){var f=d.data;null!==f?n.mp(f,c):d.containingGroup=u}}e.remove(l)}}e.R("SelectionUngrouped",i,a)}finally{e.eb("Ungroup"),e.R("ChangedSelection",e.selection),e.currentCursor=""}},Ta.prototype.canUngroupSelection=function(t){void 0===t&&(t=null);var e=this.diagram;if(e.isReadOnly||e.isModelReadOnly||!e.allowDelete||!e.allowUngroup||!e.model.Xj())return!1;if(null!==t){if(!(t instanceof gh))return!1;if(t.canUngroup())return!0}else for(t=e.selection.iterator;t.next();)if((e=t.value)instanceof gh&&e.canUngroup())return!0;return!1},Ta.prototype.addTopLevelParts=function(t,e){var n=!0;for(t=ja(t).iterator;t.next();){var i=t.value;null!==i.containingGroup&&(!e||this.isValidMember(null,i)?i.containingGroup=null:n=!1)}return n},Ta.prototype.collapseSubGraph=function(t){void 0===t&&(t=null);var e=this.diagram;try{e.Ea("Collapse SubGraph"),Vi(e.animationManager,"Collapse SubGraph");var n=new K;if(null!==t&&t.isSubGraphExpanded)t.collapseSubGraph(),n.add(t);else if(null===t)for(var i=e.selection.iterator;i.next();){var r=i.value;r instanceof gh&&r.isSubGraphExpanded&&(r.collapseSubGraph(),n.add(r))}e.R("SubGraphCollapsed",n)}finally{e.eb("Collapse SubGraph")}},Ta.prototype.canCollapseSubGraph=function(t){void 0===t&&(t=null);var e=this.diagram;if(e.isReadOnly)return!1;if(null!==t)return!!(t instanceof gh&&t.isSubGraphExpanded);for(t=e.selection.iterator;t.next();)if((e=t.value)instanceof gh&&e.isSubGraphExpanded)return!0;return!1},Ta.prototype.expandSubGraph=function(t){void 0===t&&(t=null);var e=this.diagram;try{e.Ea("Expand SubGraph"),Vi(e.animationManager,"Expand SubGraph");var n=new K;if(null===t||t.isSubGraphExpanded){if(null===t)for(var i=e.selection.iterator;i.next();){var r=i.value;r instanceof gh&&!r.isSubGraphExpanded&&(r.expandSubGraph(),n.add(r))}}else t.expandSubGraph(),n.add(t);e.R("SubGraphExpanded",n)}finally{e.eb("Expand SubGraph")}},Ta.prototype.canExpandSubGraph=function(t){void 0===t&&(t=null);var e=this.diagram;if(e.isReadOnly)return!1;if(null!==t)return t instanceof gh&&!t.isSubGraphExpanded;for(t=e.selection.iterator;t.next();)if((e=t.value)instanceof gh&&!e.isSubGraphExpanded)return!0;return!1},Ta.prototype.editTextBlock=function(t){void 0===t&&(t=null);var e=this.diagram,n=e.toolManager.findTool("TextEditing");if(null!==n){if(null===t){t=null;for(var i=e.selection.iterator;i.next();){var r=i.value;if(r.canEdit()){t=r;break}}if(null===t)return;t=t.Nl((function(t){return t instanceof Au&&t.editable}))}null!==t&&(e.currentTool=null,n.textBlock=t,e.currentTool=n)}},Ta.prototype.canEditTextBlock=function(t){void 0===t&&(t=null);var e=this.diagram;if(e.isReadOnly||e.isModelReadOnly||!e.allowTextEdit||null===e.toolManager.findTool("TextEditing"))return!1;if(null!==t){if(!(t instanceof Au))return!1;if(null!==(t=t.part)&&t.canEdit())return!0}else for(e=e.selection.iterator;e.next();)if((t=e.value).canEdit()&&null!==(t=t.Nl((function(t){return t instanceof Au&&t.editable}))))return!0;return!1},Ta.prototype.showContextMenu=function(t){var e=this.diagram,n=e.toolManager.findTool("ContextMenu");if(null!==n&&(void 0===t&&(t=0<e.selection.count?e.selection.first():e),null!==(t=n.findObjectWithContextMenu(t)))){var i=e.lastInput,r=null;t instanceof Ia?r=t.ga(re):e.viewportBounds.ca(i.documentPoint)||(r=new pt((r=e.viewportBounds).x+r.width/2,r.y+r.height/2)),null!==r&&(i.viewPoint=e.op(r),i.documentPoint=r,i.left=!1,i.right=!0,i.up=!0),e.currentTool=n,ki(n,!1,t)}},Ta.prototype.canShowContextMenu=function(t){var e=this.diagram,n=e.toolManager.findTool("ContextMenu");return null!==n&&(void 0===t&&(t=0<e.selection.count?e.selection.first():e),null!==n.findObjectWithContextMenu(t))},Ta.prototype.computeEffectiveCollection=function(t,e){var n=this.diagram,i=n.toolManager.findTool("Dragging"),r=n.currentTool===i;if(void 0===e&&(e=r?i.dragOptions:n.Wm),i=new ft,null===t)return i;for(var o=t.iterator;o.next();)so(n,i,o.value,r,e);if(null!==n.draggedLink&&e.dragsLink)return i;for(o=t.iterator;o.next();)(t=o.value)instanceof xh&&(null===(e=t.fromNode)||i.contains(e)?null===(e=t.toNode)||i.contains(e)||i.remove(t):i.remove(t));return i},d.Object.defineProperties(Ta.prototype,{diagram:{get:function(){return this.H}},copiesClipboardData:{get:function(){return this.o},set:function(t){this.o=t}},copiesConnectedLinks:{get:function(){return this.u},set:function(t){this.u=t}},deletesConnectedLinks:{get:function(){return this.Ha},set:function(t){this.Ha=t}},copiesTree:{get:function(){return this.ia},set:function(t){this.ia=t}},deletesTree:{get:function(){return this.nb},set:function(t){this.nb=t}},copiesParentKey:{get:function(){return this.V},set:function(t){this.V=t}},copiesGroupKey:{get:function(){return this.F},set:function(t){this.F=t}},archetypeGroupData:{get:function(){return this.j},set:function(t){this.j=t}},memberValidation:{get:function(){return this.ij},set:function(t){this.ij=t}},defaultScale:{get:function(){return this.diagram.defaultScale},set:function(t){this.diagram.defaultScale=t}},zoomFactor:{get:function(){return this.Hb},set:function(t){1<t||x("zoomFactor must be larger than 1.0, not: "+t),this.Hb=t}},isZoomToFitRestoreEnabled:{get:function(){return this.hb},set:function(t){this.hb=t}},scrollToPartPause:{get:function(){return this.ob},set:function(t){this.ob=t}}}),Ta.className="CommandHandler",Tr=function(){return new Ta},Ia.prototype.cloneProtected=function(t){t.l=6144|this.l,t.pb=this.pb,t.bn=this.bn,t.Ma=this.Ma,t.pa.assign(this.pa),t.jd=this.jd.J(),null!==this.Lb?t.Lb=this.Lb.copy():t.Lb=null,t.Ca=this.Ca,t.Kb=this.Kb,t.Kg=this.Kg.J(),t.uc.assign(this.uc),t.Ib.assign(this.Ib),t.dc.assign(this.dc),t.Yn=this.Yn,null!==this.ba&&(t.ba=this.ba.copy()),t.Jb=this.Jb.J(),t.sk=this.sk.J(),t.io=this.io,t.Ag=this.Ag,null!==this.Ua&&(t.Ua=this.Ua.copy()),null!==this.A&&(t.A=this.A.nc?this.A:this.A.copy()),null!==this.Dh&&(t.Dh=M(this.Dh)),null!==this.tb&&(t.tb=this.tb.copy())},Ia.prototype.Vw=function(t){var e=this.Dh;if(A(e)){for(var n=0;n<e.length;n++)if(e[n]===t)return}else this.Dh=e=[];e.push(t)},Ia.prototype.Af=function(t){t.Zn=null,t.Ng=null,t.v()},Ia.prototype.clone=function(){var t=new this.constructor;if(this.cloneProtected(t),null!==this.Dh)for(var e=0;e<this.Dh.length;e++){var n=this.Dh[e];t[n]=this[n]}return t},Ia.prototype.copy=function(){return this.clone()},(e=Ia.prototype).qb=function(t){t.classType===xh?0===t.name.indexOf("Orient")?this.segmentOrientation=t:x("Unknown Link enum value for GraphObject.segmentOrientation property: "+t):t.classType===Ia&&(this.stretch=t)},e.toString=function(){return j(this.constructor)+"#"+et(this)},e.th=function(){null!==this.A&&(this.A.nc=!0)},e.Xc=function(){if(null===this.ba){var t=new ps;t.Xi=$t,t.yj=$t,t.Vi=10,t.wj=10,t.Wi=0,t.xj=0,this.ba=t}},e.cb=function(t,e,n,i,r,o,a){var s=this.part;if(null!==s&&(s.gk(t,e,n,i,r,o,a),n===this&&t===fn&&Qa(this)&&Oa(this,s,e),o=this.diagram,null===this.animationTriggers||null===o||!o.pi||o.undoManager.isUndoingRedoing||o.animationManager.Dm||null!==(t=this.animationTriggers.get(e))&&o.animationManager.isEnabled&&!o.animationManager.isTicking&&(null===this.jo&&(this.jo=new ft),a=0===o.undoManager.transactionLevel,t.startCondition===xr?a=!0:t.startCondition===Sr&&(a=!1),a?(function(t,e){null!==(t=t.uk)&&(t.duration&&(e.duration=t.duration),t.finished&&(e.finished=t.finished),t.easing&&(e.easing=t.easing))}(t,o=new lr),null!==(a=this.jo.get(t))&&a.stop(),this.jo.add(t,o),o.vu=this,o.Nw=t,o.add(this,e,i,r),o.start()):(Vi(o.animationManager,"Trigger"),o.animationManager.defaultAnimation.add(this,e,i,r))),this instanceof Ml&&n===s&&0!=(16777216&s.l)&&null!==s.data))for(i=(n=this.O.s).length,r=0;r<i;r++)(s=n[r])instanceof Ml&&Bl(s,(function(t){null!==t.data&&0!=(16777216&t.l)&&t.La(e)}))},e.ks=function(t){return this.bindingId===t?this:null},e.g=function(t,e,n){this.cb(fn,t,this,e,n)},e.Ge=function(t,e,n,i){var r=this.uc;if(r.h(t,e,n,i),1!==this.Ca||0!==this.Kb){null===this.Lb&&(this.Lb=new Ue);var o=this.Lb;o.reset(),this.no(o,t,e,n,i),o.pp(r)}},e.tx=function(t,e,n){if(!1===this.pickable)return!1;var i=this.naturalBounds;return e=t.Bf(e),n?wt(t.x,t.y,0,0,0,i.height)<=e||wt(t.x,t.y,0,i.height,i.width,i.height)<=e||wt(t.x,t.y,i.width,i.height,i.width,0)<=e||wt(t.x,t.y,i.width,0,0,0)<=e:t.zd(0,0)<=e&&t.zd(0,i.height)<=e&&t.zd(i.width,0)<=e&&t.zd(i.width,i.height)<=e},e.se=function(){return!0},e.ca=function(t){var e=pt.alloc();e.assign(t),this.transform.Ga(e);var n=this.actualBounds;if(!n.w())return pt.free(e),!1;var i=this.diagram;if(null!==i&&i.wq){var r=i.Ql("extraTouchThreshold"),o=i.Ql("extraTouchArea"),a=o/2,s=this.naturalBounds,l=1/(i=this.Df()*i.scale);if(s.width*i<r&&s.height*i<r)return t=_t(n.x-a*l,n.y-a*l,n.width+o*l,n.height+o*l,e.x,e.y),pt.free(e),t}return r=!1,(this instanceof Yc||this instanceof pu?_t(n.x-5,n.y-5,n.width+10,n.height+10,e.x,e.y):n.ca(e))&&(r=!(this.tb&&!this.tb.ca(e))&&(!(null===this.areaBackground||!n.ca(e))||(!(null===this.Ma||!this.dc.ca(t))||this.gh(t)))),pt.free(e),r},e.gh=function(t){var e=this.naturalBounds;return _t(0,0,e.width,e.height,t.x,t.y)},e.Re=function(t){if(0===this.angle)return this.actualBounds.Re(t);var e=this.naturalBounds;e=Bt.allocAt(0,0,e.width,e.height);var n=this.transform,i=!1,r=pt.allocAt(t.x,t.y);return e.ca(n.Cd(r))&&(r.h(t.x,t.bottom),e.ca(n.Cd(r))&&(r.h(t.right,t.bottom),e.ca(n.Cd(r))&&(r.h(t.right,t.y),e.ca(n.Cd(r))&&(i=!0)))),pt.free(r),Bt.free(e),i},e.fh=function(t,e){if(void 0===e)return t.Re(this.actualBounds);var n=this.naturalBounds,i=!1,r=pt.allocAt(0,0);return t.ca(e.Ga(r))&&(r.h(0,n.height),t.ca(e.Ga(r))&&(r.h(n.width,n.height),t.ca(e.Ga(r))&&(r.h(n.width,0),t.ca(e.Ga(r))&&(i=!0)))),pt.free(r),i},e.Yc=function(t,e){if(void 0===e&&(e=this.transform,0===this.angle))return t.Yc(this.actualBounds);var n=this.naturalBounds,i=pt.allocAt(0,0),r=pt.allocAt(0,n.height),o=pt.allocAt(n.width,n.height),a=pt.allocAt(n.width,0),s=!1;if(t.ca(e.Ga(i))||t.ca(e.Ga(r))||t.ca(e.Ga(o))||t.ca(e.Ga(a)))s=!0;else{n=Bt.allocAt(0,0,n.width,n.height);var l=pt.allocAt(t.x,t.y);n.ca(e.Cd(l))?s=!0:(l.h(t.x,t.bottom),n.ca(e.Cd(l))?s=!0:(l.h(t.right,t.bottom),n.ca(e.Cd(l))?s=!0:(l.h(t.right,t.y),n.ca(e.Cd(l))&&(s=!0)))),pt.free(l),Bt.free(n),!s&&(_e.us(t,i,r)||_e.us(t,r,o)||_e.us(t,o,a)||_e.us(t,a,i))&&(s=!0)}return pt.free(i),pt.free(r),pt.free(o),pt.free(a),s},e.ga=function(t,e){if(void 0===e&&(e=new pt),t instanceof De){var n=this.naturalBounds;e.h(t.x*n.width+t.offsetX,t.y*n.height+t.offsetY)}else e.set(t);return this.oe.Ga(e),e},e.mi=function(t){void 0===t&&(t=new Bt);var e=this.naturalBounds,n=this.oe,i=pt.allocAt(0,0).transform(n);return t.h(i.x,i.y,0,0),i.h(e.width,0).transform(n),Ht(t,i.x,i.y,0,0),i.h(e.width,e.height).transform(n),Ht(t,i.x,i.y,0,0),i.h(0,e.height).transform(n),Ht(t,i.x,i.y,0,0),pt.free(i),t},e.li=function(){var t=this.oe;return 1===t.m11&&0===t.m12?t=0:0>(t=180*Math.atan2(t.m12,t.m11)/Math.PI)&&(t+=360),t},e.Df=function(){if(0!=(4096&this.l)==!1)return this.Kk;var t=this.Ca;return null!==this.panel?t*this.panel.Df():t},e.qs=function(t,e){return void 0===e&&(e=new pt),e.assign(t),this.oe.Cd(e),e},e.rs=function(t,e,n){return this.Sj(t.x,t.y,e.x,e.y,n)},e.Sj=function(t,e,n,i,r){var o=this.transform,a=1/(o.m11*o.m22-o.m12*o.m21),s=o.m22*a,l=-o.m12*a,u=-o.m21*a,c=o.m11*a,h=a*(o.m21*o.dy-o.m22*o.dx),d=a*(o.m12*o.dx-o.m11*o.dy);return null!==this.areaBackground?(o=this.actualBounds,_e.Ff(o.left,o.top,o.right,o.bottom,t,e,n,i,r)):(a=t*s+e*u+h,t=t*l+e*c+d,e=n*s+i*u+h,n=n*l+i*c+d,r.h(0,0),i=this.naturalBounds,n=_e.Ff(0,0,i.width,i.height,a,t,e,n,r),r.transform(o),n)},Ia.prototype.measure=function(t,e,n,i){if(!1!==es(this)){var r=this.Kg,o=r.right+r.left;r=r.top+r.bottom,t=Math.max(t-o,0),e=Math.max(e-r,0),n=Math.max((n||0)-o,0),i=Math.max((i||0)-r,0),o=this.angle,r=this.desiredSize;var a=this.kq();90===o||270===o?(t=isFinite(r.height)?r.height+a:t,e=isFinite(r.width)?r.width+a:e):(t=isFinite(r.width)?r.width+a:t,e=isFinite(r.height)?r.height+a:e),r=n||0,a=i||0;var s=this instanceof Ml;switch(Ya(this,!0)){case da:a=r=0,s&&(e=t=1/0);break;case ha:isFinite(t)&&t>n&&(r=t),isFinite(e)&&e>i&&(a=e);break;case pa:isFinite(t)&&t>n&&(r=t),a=0,s&&(e=1/0);break;case ga:isFinite(e)&&e>i&&(a=e),r=0,s&&(t=1/0)}s=this.maxSize;var l=this.minSize;r>s.width&&l.width<s.width&&(r=s.width),a>s.height&&l.height<s.height&&(a=s.height),n=Math.max(r,l.width),i=Math.max(a,l.height),s.width<n&&(n=Math.min(l.width,n)),s.height<i&&(i=Math.min(l.height,i)),t=Math.min(s.width,t),e=Math.min(s.height,e),t=Math.max(n,t),e=Math.max(i,e),90!==o&&270!==o||(o=t,t=e,e=o,o=n,n=i,i=o),this.uc.ka(),this.Wl(t,e,n,i),this.uc.freeze(),this.uc.w()||x("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),ns(this,!1)}},Ia.prototype.Wl=function(){},Ia.prototype.Dd=function(){return!1},Ia.prototype.arrange=function(t,e,n,i,r){this.Uk();var o=Bt.alloc();o.assign(this.Ib),this.Ib.ka(),!1===is(this)?this.Ib.h(t,e,n,i):this.eh(t,e,n,i),this.Ib.freeze(),this.tb=void 0===r?null:r,n=!1,void 0!==r?n=!0:(null!==(r=this.panel)&&Gl(r)&&(r=r.panel),null!==r&&(r=r.dc,i=this.measuredBounds,null!==this.areaBackground&&(i=this.Ib),n=e+i.height,i=t+i.width,n=!(0<=t+.05&&i<=r.width+.05&&0<=e+.05&&n<=r.height+.05),this instanceof Au&&(t=this.naturalBounds,this.Lq>t.height||this.Cb>t.width))&&(n=!0)),this.l=n?256|this.l:-257&this.l,this.Ib.w()||x("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(o,this.Ib),rs(this,!1),Bt.free(o)},(e=Ia.prototype).eh=function(){},e.Xl=function(t,e){var n=this.part;null!==n&&null!==n.diagram&&(n.selectionObject!==this&&n.resizeObject!==this&&n.rotateObject!==this||Fc(n,!0),this.N(),Ft(t,e)||(n.oh(),this.Pn(n)))},e.Pn=function(t){null!==this.portId&&(Fc(t,!0),t instanceof qc&&$c(t,this))},e.gc=function(t,e){if(!function(t,e,n){if(!(e instanceof ys))return!1;if(!t.visible||0===t.opacity||t.Dd()&&!t.isVisible())return null!==t.svg&&null!==t.svg.parentNode&&t.svg.remove(),!0;var i=t.panel,r=t.nk(e);if(t.kk(e,n,r))return null!==t.svg.parentElement?(t.Dd()&&(e.ti=t.svg),!0):(t.Dd()?(null!==e.ti?e.ti.after(t.svg):e.Nj.prepend(t.svg),e.ti=t.svg):i&&Ua(t,i,t.svg),!0);if(t.Dd()&&t.isShadowed){var o=t.shadowOffset;e.Ev(o.x*n.scale*t.scale*n.Mb,o.y*n.scale*t.scale*n.Mb,t.shadowBlur),Ts(e),e.shadowColor=t.shadowColor}t instanceof Au&&(e.font=t.font),e.yd=null;var a=t.transform;o=t instanceof Ml;var s=t instanceof Ml&&Gl(t);0!=(4096&t.l)==!0&&Wa(t);var l=t.Ib;if(e.rb.ha=[1,0,0,1,0,0],e.o=!1,r&&(e.o=!0,o&&s?(Ms(e,1,0,0,1,0,0),t.svg=e.ad):o?(Ms(e,a.m11,a.m12,a.m21,a.m22,a.dx,a.dy),t.svg=e.ad):Ms(e,1,0,0,1,0,0)),r=t.naturalBounds,null!==t.areaBackground){var u=a.copy().Vj();e.rb.ha=[u.m11,u.m12,u.m21,u.m22,u.dx,u.dy],za(t,e,r,l),e.rb.ha=[1,0,0,1,0,0],e.yd.gd=e.ad,e.yd.prepend(e.ad)}return o||(e.rb.ha=[a.m11,a.m12,a.m21,a.m22,a.dx,a.dy]),null!==t.background&&(o?(s&&(e.rb.ha=[a.m11,a.m12,a.m21,a.m22,a.dx,a.dy]),Ga(t,e,r,l),s&&(e.rb.ha=[1,0,0,1,0,0])):(e.rb.ha=[a.m11,a.m12,a.m21,a.m22,a.dx,a.dy],Ga(t,e,r,l)),e.yd.Ma=e.ad,e.yd.prepend(e.ad)),a=e.yd,r=t.part,s=!1,r&&n.Gf("drawShadows")&&(s=r.isShadowed),e.clipInsteadOfFill&&(s=!1),t.Dd()&&s&&Ts(e),s&&!0===t.shadowVisible?Ts(e):s&&!1===t.shadowVisible&&Ls(e),r=t.panel,s&&Fa(t,r)&&null===t.shadowVisible&&Ls(e),e.Il&&(u=n.computePixelRatio(),u="drop-shadow("+e.shadowOffsetX/u+"px "+e.shadowOffsetY/u+"px "+e.shadowBlur/u/2+"px "+e.shadowColor+")",null!==t.background&&a.Ma.setAttributeNS(null,"filter",u),null!==t.areaBackground&&a.gd.setAttributeNS(null,"filter",u)),s&&(null!==t.Ma||null!==t.areaBackground||Fa(t,r))?(Ka(t,!0),null===t.shadowVisible&&Ls(e)):Ka(t,!1),r=s,t.hh(e,n),o&&e.nh.pop(),e.o&&e.nh.pop(),a=e.Gv.hs,s=o?t.svg:e.yd,u=t.svg,o||null===u||s===u||u.parentNode!==t.panel.svg?(t.svg=s,null!==a&&null===s&&(Es(e),e.nh.pop()),null===s||(t.$o(e,i,l,s),e.Il&&(n=n.computePixelRatio(),t.Dv(s,"drop-shadow("+e.shadowOffsetX/n+"px "+e.shadowOffsetY/n+"px "+e.shadowBlur/n/2+"px "+e.shadowColor+")")),r&&0!=(512&t.l)==!0&&Ts(e),t.Dd()&&Ls(e),n=t.Dd()?t.opacity*e.globalAlpha:t.opacity,1!==n&&s.setAttributeNS(null,"opacity",n.toString()),""!==t.filter&&s.setAttributeNS(null,"filter",t.filter),t.Dd()?(e.ti?e.ti.after(s):e.Nj.prepend(s),e.ti=s):null!==i&&Ua(t,i,s),null!==a&&a(t,s)),!0):(t.svg.replaceWith(s),t.svg=s,null!==s&&t.$o(e,i,l,s),Ha(e,u),!0)}(this,t,e)&&this.visible){var n=this.opacity;if(0!==n){var i=1;1!==n&&(i=t.globalAlpha,t.globalAlpha=i*n);var r="";""!==this.filter&&(r=t.filter,t.filter=this.filter);var o=this instanceof Ml&&Gl(this),a=this.Ib;if(o){var s=this.Ib,l=this.dc,u=this.areaBackground,c=this.Ma;null===u&&null===c||t.yc(),null!==u&&(Za(this,t,u,!0,!0,l,s),u instanceof Ds&&u.type===Js?(t.beginPath(),t.rect(s.x,s.y,s.width,s.height),t.ng(u)):t.fillRect(s.x,s.y,s.width,s.height)),null!==c&&(Za(this,t,c,!0,!1,l,s),c instanceof Ds&&c.type===Js?(t.beginPath(),t.rect(s.x,s.y,s.width,s.height),t.ng(c)):t.fillRect(s.x,s.y,s.width,s.height)),this.hh(t,e)}if(!o&&(o||0!==a.width&&0!==a.height&&!isNaN(a.x)&&!isNaN(a.y))){o=this.transform,s=this.panel,0!=(4096&this.l)==!0&&Wa(this),l=!1;var h,d=0;if((u=this.part)&&e.Gf("drawShadows")&&(l=u.isShadowed)&&(c=u.shadowOffset,d=Math.max(c.y,c.x)*e.scale*e.Mb),c=this.Dd(),!(h=e.$i||!c)){var f,p=this.naturalBounds,g=(h=this.wh).m11,m=h.m21,v=h.dx,y=h.m12,w=h.m22,b=h.dy,x=f=0;h=f*g+x*m+v;var S=f*y+x*w+b,P=(f=p.width+d)*g+(x=0)*m+v;f=f*y+x*w+b,x=Math.min(h,P);var k=Math.min(S,f),C=Math.max(h+0,P)-x,A=Math.max(S+0,f)-k;h=x,S=k,P=(f=p.width+d)*g+(x=p.height+d)*m+v,f=f*y+x*w+b,x=Math.min(h,P),k=Math.min(S,f),C=Math.max(h+C,P)-x,A=Math.max(S+A,f)-k,h=x,S=k,P=(f=0)*g+(x=p.height+d)*m+v,f=f*y+x*w+b,x=Math.min(h,P),k=Math.min(S,f),C=Math.max(h+C,P)-x,A=Math.max(S+A,f)-k,h=x,S=k,p=(d=e.viewportBounds).x,g=d.y,h=!(h>d.width+p||p>C+h||S>d.height+g||g>A+S)}if(h){if(h=0!=(256&this.l),t.clipInsteadOfFill&&(h=!1),this instanceof Au&&(t.font=this.font),h){if(S=s.se()?s.naturalBounds:s.actualBounds,C=Math.max(a.x,S.x),A=Math.max(a.y,S.y),d=Math.min(a.right,S.right)-C,p=Math.min(a.bottom,S.bottom)-A,null!==(g=this.tb)&&(C=g.x,A=g.y,d=g.width,p=g.height),C>a.width+a.x||a.x>S.width+S.x)return 1!==n&&(t.globalAlpha=i),void(""!==this.filter&&(t.filter=r));t.save(),t.beginPath(),t.rect(C,A,d,p),t.clip()}if(c){if(!u.isVisible())return 1!==n&&(t.globalAlpha=i),void(""!==this.filter&&(t.filter=r));l&&(S=u.shadowOffset,t.Ev(S.x*e.scale*this.scale*e.Mb,S.y*e.scale*this.scale*e.Mb,u.shadowBlur),Ts(t),t.shadowColor=u.shadowColor)}l&&!0===this.shadowVisible?Ts(t):l&&!1===this.shadowVisible&&Ls(t),u=this.naturalBounds,null!==this.areaBackground&&(t.yc(),za(this,t,u,a)),t.transform(o.m11,o.m12,o.m21,o.m22,o.dx,o.dy),l&&Fa(this,s)&&null===this.shadowVisible&&Ls(t),null!==this.Ma&&(t.yc(),Ga(this,t,u,a)),l&&(null!==this.Ma||null!==this.areaBackground||Fa(this,s))?(Ka(this,!0),null===this.shadowVisible&&Ls(t)):Ka(this,!1),this.hh(t,e),l&&0!=(512&this.l)==!0&&Ts(t),c&&l&&Ls(t),h&&(t.restore(),t.Vc(this instanceof Ml)),o.ws()||(e=1/(o.m11*o.m22-o.m12*o.m21),t.transform(o.m22*e,-o.m12*e,-o.m21*e,o.m11*e,e*(o.m21*o.dy-o.m22*o.dx),e*(o.m12*o.dx-o.m11*o.dy)))}}1!==n&&(t.globalAlpha=i),""!==this.filter&&(t.filter=r)}}},e.Dv=function(){},e.$o=function(t,e,n,i){var r=0!=(256&this.l);if(t.clipInsteadOfFill&&(r=!1),r){var o=e.se()?e.naturalBounds:e.actualBounds;e=Math.max(n.x,o.x),r=Math.max(n.y,o.y);var a=Math.min(n.right,o.right)-e;n=Math.min(n.bottom,o.bottom)-r,null!==(o=this.tb)&&(e=o.x,r=o.y,a=o.width,n=o.height);var s=null;null!==(o=i.getAttribute("clip-path"))&&(s=t.svg.getElementById(o.split("#")[1].slice(0,-1))),null===s?(o="CLIP"+st++,s=t.Ud("clipPath",{id:o}),e=t.Ud("rect",{x:e,y:r,width:a,height:n}),this instanceof Ml&&(r=this.transform.copy().Vj(),e.setAttribute("transform","matrix("+r.m11+", "+r.m12+", "+r.m21+", "+r.m22+", "+r.dx+", "+r.dy+")")),s.appendChild(e),t.svg.appendChild(s),i.setAttributeNS(null,"clip-path","url(#"+o+")")):((t=s.firstElementChild).setAttribute("x",e.toString()),t.setAttribute("y",r.toString()),t.setAttribute("width",a.toString()),t.setAttribute("height",n.toString()))}else i.removeAttributeNS(null,"clip-path"),Ha(t,i)},e.hh=function(){},e.lv=function(){this.Uc=!0},e.kk=function(t,e,n){if(this.Uc)return this.lv(),this.Uc=!1;if(null===(e=this.svg))return!1;if(!this.visible)return e.remove(),!1;if("g"!==e.nodeName&&n||"g"===e.nodeName&&!n)return!1;var i=this.transform,r=this instanceof Ml&&Gl(this);if(!(this instanceof Ml&&r))if(this instanceof rc){var o=this.bt;t.rb.ha=[i.m11,i.m12,i.m21,i.m22,i.dx,i.dy],null!==o&&bs(t,o[0],o[1],o[2],o[3],o[4],o[5],o[6],o[7]),n?e.lastElementChild.setAttributeNS(null,"transform",xs(t)):e.setAttributeNS(null,"transform",xs(t))}else if(!n||this instanceof Ml)e.setAttributeNS(null,"transform","matrix("+i.m11+", "+i.m12+", "+i.m21+", "+i.m22+", "+i.dx+", "+i.dy+")");else if(this instanceof pu){o=e.getElementsByTagName("path");for(var a=0;a<o.length;a++)o[a].setAttributeNS(null,"transform","matrix("+i.m11+", "+i.m12+", "+i.m21+", "+i.m22+", "+i.dx+", "+i.dy+")")}else e.lastElementChild.setAttributeNS(null,"transform","matrix("+i.m11+", "+i.m12+", "+i.m21+", "+i.m22+", "+i.dx+", "+i.dy+")");return 1===(o=this.Dd()?this.opacity*t.globalAlpha:this.opacity)?e.removeAttribute("opacity"):e.setAttributeNS(null,"opacity",o.toString()),t.rb.ha=[1,0,0,1,0,0],null===this.areaBackground&&void 0===e.gd||(o=e.gd,null===this.areaBackground?(e.gd.remove(),e.gd=void 0):(a=i.copy().Vj(),t.rb.ha=[a.m11,a.m12,a.m21,a.m22,a.dx,a.dy],za(this,t,this.naturalBounds,this.actualBounds),t.rb.ha=[1,0,0,1,0,0],e.gd?(null!==(a=e.gd.getAttribute("filter"))&&t.ad.setAttribute("filter",a),e.gd.replaceWith(t.ad)):e.prepend(t.ad),e.gd=t.ad),o&&Ns(t,o)),null===this.background&&void 0===e.Ma||(o=e.Ma,null===this.background?(Ns(t,e.Ma),e.Ma.remove(),e.Ma=void 0):((r||n&&!(this instanceof Ml))&&(t.rb.ha=[i.m11,i.m12,i.m21,i.m22,i.dx,i.dy]),Ga(this,t,this.naturalBounds,this.actualBounds),e.Ma?(Ns(t,e.Ma),null!==(n=e.Ma.getAttribute("filter"))&&t.ad.setAttribute("filter",n),e.Ma.replaceWith(t.ad)):e.prepend(t.ad),e.Ma=t.ad),o&&Ns(t,o)),this.$o(t,this.panel,this.actualBounds,e),!0},e.nk=function(t){if(null!==this.background||null!==this.areaBackground)return!0;var e=0!=(256&this.l);return t.clipInsteadOfFill&&(e=!1),!!e},e.rg=function(t){if(t instanceof Ml)t:{if(this!==t&&null!==t)for(var e=this.panel;null!==e;){if(e===t){t=!0;break t}e=e.panel}t=!1}else t=!1;return t},e.Ed=function(){if(!this.visible)return!1;var t=this.panel;return null===t||t.Ed()},e.If=function(){for(var t=this instanceof Ml?this:this.panel;null!==t&&t.isEnabled;)t=t.panel;return null===t},e.no=function(t,e,n,i,r){if(1!==this.Ca&&t.scale(this.Ca),0!==this.Kb){var o=pt.alloc();o.yi(e,n,i,r,re),t.rotate(this.Kb,o.x,o.y),pt.free(o)}},e.v=function(t){if(!es(this)){void 0===t&&(t=!1),ns(this,!0),rs(this,!0);var e=this.panel;null===e||t||e.v()}},e.Uj=function(){es(this)||(ns(this,!0),rs(this,!0))},e.Uk=function(){0!=(2048&this.l)==!1&&($a(this,!0),ts(this,!0))},e.Wu=function(){ts(this,!0)},e.N=function(){var t=this.part;null!==t&&t.N()},e.Gj=function(){this.svg=null},e.wi=function(t){this.Me=t,null!==this.svg&&this.svg.remove()},e.Av=function(){},e.zv=function(t){return this.pa=t,Va(this),!0},e.mm=function(t,e){this.pa.x===t&&this.pa.y===e||(this.pa.h(t,e),this.Uk())},e.kq=function(){return 0},e.bind=function(t,e,n,i){var r=null;return(r="string"==typeof t?new Hf(t,e,n,i):t).xd=this,null!==(t=this.ih())&&Yl(t)&&x("Cannot add a Binding to a template that has already been copied: "+r),null===this.localBindings&&(this.localBindings=new K),this.localBindings.add(r),this},e.set=function(t){return Object.assign(this,t),this},e.Du=function(t){return ls(this,t),this},e.apply=function(t){return t(this),this},e.nm=function(t){return no(this,t),this},e.pz=function(){return this.ih()},e.ih=function(){for(var t=this instanceof Ml?this:this.panel;null!==t;){if(null!==t.allBindings)return t;t=t.panel}return null},e.Jv=function(t){return t.xd=this,null===this.animationTriggers&&(this.animationTriggers=new ft),this.animationTriggers.add(t.propertyName,t),this},d.Object.defineProperties(Ia.prototype,{bindingId:{get:function(){return null!==this.A?this.A.zp:-1},set:function(t){this.bindingId!==t&&(null===this.A&&(this.A=new ds),this.A.zp=t)}},localBindings:{get:function(){return null!==this.A?this.A.te:null},set:function(t){this.localBindings!==t&&(null===this.A&&(this.A=new ds),this.A.te=t)}},srcBindings:{get:function(){return null!==this.A?this.A.wm:null},set:function(t){this.srcBindings!==t&&(null===this.A&&(this.A=new ds),this.A.wm=t)}},shadowVisible:{get:function(){return null!==this.A?this.A.Ci:null},set:function(t){var e=this.shadowVisible;e!==t&&(Ba(this),this.A.Ci=t,this.Uc=!0,this.N(),this.g("shadowVisible",e,t))}},enabledChanged:{get:function(){return null!==this.A?this.A.Hb:null},set:function(t){var e=this.enabledChanged;e!==t&&(Ba(this),this.A.Hb=t,this.g("enabledChanged",e,t))}},segmentOrientation:{get:function(){return null!==this.Ua?this.Ua.rr:Xh},set:function(t){var e=this.segmentOrientation;e!==t&&(null===this.Ua&&(this.Ua=new fs),this.Ua.rr=t,this.v(),this.g("segmentOrientation",e,t),t===Xh&&(this.angle=0))}},segmentIndex:{get:function(){return null!==this.Ua?this.Ua.u:-1/0},set:function(t){t=Math.round(t);var e=this.segmentIndex;e!==t&&(null===this.Ua&&(this.Ua=new fs),this.Ua.u=t,this.v(),this.g("segmentIndex",e,t))}},segmentFraction:{get:function(){return null!==this.Ua?this.Ua.o:0},set:function(t){isNaN(t)||0>t?t=0:1<t&&(t=1);var e=this.segmentFraction;e!==t&&(null===this.Ua&&(this.Ua=new fs),this.Ua.o=t,this.v(),this.g("segmentFraction",e,t))}},segmentOffset:{get:function(){return null!==this.Ua?this.Ua.F:nt},set:function(t){var e=this.segmentOffset;e.D(t)||(t=t.J(),null===this.Ua&&(this.Ua=new fs),this.Ua.F=t,this.v(),this.g("segmentOffset",e,t))}},stretch:{get:function(){return null!==this.A?this.A.hg:ma},set:function(t){var e=this.stretch;e!==t&&(Ba(this),this.A.hg=t,this.v(),this.g("stretch",e,t))}},name:{get:function(){return null!==this.A?this.A.xa:""},set:function(t){var e=this.name;e!==t&&(Ba(this),this.A.xa=t,null!==this.part&&(this.part.Rh=null),this.g("name",e,t))}},opacity:{get:function(){return this.pb},set:function(t){var e=this.pb;e!==t&&((0>t||1<t)&&P(t,"0 <= value <= 1",Ia,"opacity"),this.pb=t,this.g("opacity",e,t),t=this.diagram,e=this.part,null!==t&&null!==e&&t.N(Lc(e,e.actualBounds)))}},filter:{get:function(){return this.bn},set:function(t){var e=this.bn;e!==t&&(this.bn=t,this.Uc=!0,this.g("filter",e,t),t=this.diagram,e=this.part,null!==t&&null!==e&&t.N(Lc(e,e.actualBounds)))}},visible:{get:function(){return 0!=(1&this.l)},set:function(t){var e=0!=(1&this.l);e!==t&&(this.l^=1,this.g("visible",e,t),null!==(e=this.panel)?e.v():this.Dd()&&this.Zb(t),this.N(),as(this))}},pickable:{get:function(){return 0!=(2&this.l)},set:function(t){var e=0!=(2&this.l);e!==t&&(this.l^=2,this.g("pickable",e,t))}},fromLinkableDuplicates:{get:function(){return 0!=(4&this.l)},set:function(t){var e=0!=(4&this.l);e!==t&&(this.l^=4,this.g("fromLinkableDuplicates",e,t))}},fromLinkableSelfNode:{get:function(){return 0!=(8&this.l)},set:function(t){var e=0!=(8&this.l);e!==t&&(this.l^=8,this.g("fromLinkableSelfNode",e,t))}},toLinkableDuplicates:{get:function(){return 0!=(16&this.l)},set:function(t){var e=0!=(16&this.l);e!==t&&(this.l^=16,this.g("toLinkableDuplicates",e,t))}},toLinkableSelfNode:{get:function(){return 0!=(32&this.l)},set:function(t){var e=0!=(32&this.l);e!==t&&(this.l^=32,this.g("toLinkableSelfNode",e,t))}},isPanelMain:{get:function(){return 0!=(64&this.l)},set:function(t){var e=0!=(64&this.l);e!==t&&(this.l^=64,this.v(),this.g("isPanelMain",e,t))}},isActionable:{get:function(){return 0!=(128&this.l)},set:function(t){var e=0!=(128&this.l);e!==t&&(this.l^=128,this.g("isActionable",e,t))}},areaBackground:{get:function(){return null!==this.A?this.A.gd:null},set:function(t){var e=this.areaBackground;e!==t&&(null!==t&&Xs(t,"GraphObject.areaBackground"),t instanceof Ds&&t.freeze(),Ba(this),this.A.gd=t,this.N(),this.g("areaBackground",e,t))}},background:{get:function(){return this.Ma},set:function(t){var e=this.Ma;e!==t&&(null!==t&&Xs(t,"GraphObject.background"),t instanceof Ds&&t.freeze(),this.Ma=t,this.N(),this.g("background",e,t))}},part:{get:function(){if(this.Dd())return this;if(null!==this.Ng)return this.Ng;var t;for(t=this.panel;t;){if(t instanceof Sc)return this.Ng=t;t=t.panel}return null}},svg:{get:function(){return this.V},set:function(t){this.V=t}},panel:{get:function(){return this.Me}},layer:{get:function(){var t=this.part;return null!==t?t.layer:null}},diagram:{get:function(){var t=this.part;return null!==t?t.diagram:null}},position:{get:function(){return this.pa},set:function(t){var e=t.x,n=t.y,i=this.pa,r=i.x;i=i.y,(r===e||isNaN(r)&&isNaN(e))&&(i===n||isNaN(i)&&isNaN(n))?this.Av():(t=t.copy(),this.zv(t,r,i)&&this.g("position",new pt(r,i),t))}},actualBounds:{get:function(){return this.Ib}},scale:{get:function(){return this.Ca},set:function(t){var e=this.Ca;e!==t&&(0>=t&&x("GraphObject.scale for "+this+" must be greater than zero, not: "+t),this.Ca=t,this.v(),this.g("scale",e,t))}},angle:{get:function(){return this.Kb},set:function(t){var e=this.Kb;e!==t&&(0>(t%=360)&&(t+=360),e!==t&&(this.Kb=t,as(this),this.v(),this.g("angle",e,t)))}},desiredSize:{get:function(){return this.jd},set:function(t){var e=t.width,n=t.height,i=this.jd,r=i.width,o=i.height;(r===e||isNaN(r)&&isNaN(e))&&(o===n||isNaN(o)&&isNaN(n))||(this.jd=t=t.J(),this.v(),this instanceof pu&&this.qc(),this.g("desiredSize",i,t),Qa(this)&&(null!==(t=this.part)&&(Oa(this,t,"width"),Oa(this,t,"height"))))}},width:{get:function(){return this.jd.width},set:function(t){var e=this.jd.width;e===t||isNaN(e)&&isNaN(t)||(e=this.jd,this.jd=t=new Tt(t,this.jd.height).freeze(),this.v(),this instanceof pu&&this.qc(),this.g("desiredSize",e,t),Qa(this)&&(null!==(t=this.part)&&Oa(this,t,"width")))}},height:{get:function(){return this.jd.height},set:function(t){var e=this.jd.height;e===t||isNaN(e)&&isNaN(t)||(e=this.jd,this.jd=t=new Tt(this.jd.width,t).freeze(),this.v(),this instanceof pu&&this.qc(),this.g("desiredSize",e,t),Qa(this)&&(null!==(t=this.part)&&Oa(this,t,"height")))}},minSize:{get:function(){return null!==this.A?this.A.u:St},set:function(t){var e=this.minSize;e.D(t)||(t=t.copy(),isNaN(t.width)&&(t.width=0),isNaN(t.height)&&(t.height=0),t.freeze(),Ba(this),this.A.u=t,this.v(),this.g("minSize",e,t))}},maxSize:{get:function(){return null!==this.A?this.A.o:Mt},set:function(t){var e=this.maxSize;e.D(t)||(t=t.copy(),isNaN(t.width)&&(t.width=1/0),isNaN(t.height)&&(t.height=1/0),t.freeze(),Ba(this),this.A.o=t,this.v(),this.g("maxSize",e,t))}},measuredBounds:{get:function(){return this.uc}},naturalBounds:{get:function(){return this.dc}},margin:{get:function(){return this.Kg},set:function(t){"number"==typeof t&&(t=new Xt(t));var e=this.Kg;e.D(t)||(this.Kg=t=t.J(),this.v(),this.g("margin",e,t))}},transform:{get:function(){return 0!=(2048&this.l)==!0&&Wa(this),this.Ab}},oe:{get:function(){return 0!=(4096&this.l)==!0&&Wa(this),this.wh}},animationTriggers:{get:function(){return null!==this.A?this.A.hb:null},set:function(t){this.animationTriggers!==t&&(Ba(this),this.A.hb=t)}},reshapingBehavior:{get:function(){return null!==this.A?this.A.Pf:da},set:function(t){this.reshapingBehavior!==t&&(Ba(this),this.A.Pf=t)}},alignment:{get:function(){return this.Jb},set:function(t){var e=this.Jb;e.D(t)||(t.Mc()&&!t.Xb()&&x("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+t),this.Jb=t=t.J(),Va(this),this.g("alignment",e,t))}},column:{get:function(){return this.Ag},set:function(t){t=Math.round(t);var e=this.Ag;e!==t&&(0>t&&P(t,">= 0",Ia,"column"),this.Ag=t,this.v(),this.g("column",e,t),null!==this.svg&&this.svg.remove())}},columnSpan:{get:function(){return null!==this.A?this.A.ob:1},set:function(t){t=Math.round(t);var e=this.columnSpan;e!==t&&(1>t&&P(t,">= 1",Ia,"columnSpan"),Ba(this),this.A.ob=t,this.v(),this.g("columnSpan",e,t))}},row:{get:function(){return this.io},set:function(t){t=Math.round(t);var e=this.io;e!==t&&(0>t&&P(t,">= 0",Ia,"row"),this.io=t,this.v(),this.g("row",e,t),null!==this.svg&&this.svg.remove())}},rowSpan:{get:function(){return null!==this.A?this.A.Bi:1},set:function(t){t=Math.round(t);var e=this.rowSpan;e!==t&&(1>t&&P(t,">= 1",Ia,"rowSpan"),Ba(this),this.A.Bi=t,this.v(),this.g("rowSpan",e,t))}},spanAllocation:{get:function(){return null!==this.A?this.A.Di:null},set:function(t){var e=this.spanAllocation;e!==t&&(Ba(this),this.A.Di=t,this.v(),this.g("spanAllocation",e,t))}},alignmentFocus:{get:function(){return this.sk},set:function(t){var e=this.sk;e.D(t)||(this.sk=t=t.J(),this.v(),this.g("alignmentFocus",e,t))}},portId:{get:function(){return this.Yn},set:function(t){var e=this.Yn;if(e!==t){var n=this.part;null===n||n instanceof qc||x("Cannot set portID on a Link: "+t),null!==e&&null!==n&&sh(n,this),this.Yn=t,null!==t&&null!==n&&(n.Te=!0,ah(n,this)),this.g("portId",e,t)}}},toSpot:{get:function(){return null!==this.ba?this.ba.yj:$t},set:function(t){var e=this.toSpot;e.D(t)||(t=t.J(),this.Xc(),this.ba.yj=t,this.g("toSpot",e,t),os(this))}},toEndSegmentLength:{get:function(){return null!==this.ba?this.ba.wj:10},set:function(t){var e=this.toEndSegmentLength;e!==t&&(0>t&&P(t,">= 0",Ia,"toEndSegmentLength"),this.Xc(),this.ba.wj=t,this.g("toEndSegmentLength",e,t),os(this))}},toShortLength:{get:function(){return null!==this.ba?this.ba.xj:0},set:function(t){var e=this.toShortLength;e!==t&&(this.Xc(),this.ba.xj=t,this.g("toShortLength",e,t),os(this))}},toLinkable:{get:function(){return null!==this.ba?this.ba.Tr:null},set:function(t){var e=this.toLinkable;e!==t&&(this.Xc(),this.ba.Tr=t,this.g("toLinkable",e,t))}},toMaxLinks:{get:function(){return null!==this.ba?this.ba.Ur:1/0},set:function(t){var e=this.toMaxLinks;e!==t&&(0>t&&P(t,">= 0",Ia,"toMaxLinks"),this.Xc(),this.ba.Ur=t,this.g("toMaxLinks",e,t))}},fromSpot:{get:function(){return null!==this.ba?this.ba.Xi:$t},set:function(t){var e=this.fromSpot;e.D(t)||(t=t.J(),this.Xc(),this.ba.Xi=t,this.g("fromSpot",e,t),os(this))}},fromEndSegmentLength:{get:function(){return null!==this.ba?this.ba.Vi:10},set:function(t){var e=this.fromEndSegmentLength;e!==t&&(0>t&&P(t,">= 0",Ia,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=t,this.g("fromEndSegmentLength",e,t),os(this))}},fromShortLength:{get:function(){return null!==this.ba?this.ba.Wi:0},set:function(t){var e=this.fromShortLength;e!==t&&(this.Xc(),this.ba.Wi=t,this.g("fromShortLength",e,t),os(this))}},fromLinkable:{get:function(){return null!==this.ba?this.ba.hq:null},set:function(t){var e=this.fromLinkable;e!==t&&(this.Xc(),this.ba.hq=t,this.g("fromLinkable",e,t))}},fromMaxLinks:{get:function(){return null!==this.ba?this.ba.iq:1/0},set:function(t){var e=this.fromMaxLinks;e!==t&&(0>t&&P(t,">= 0",Ia,"fromMaxLinks"),this.Xc(),this.ba.iq=t,this.g("fromMaxLinks",e,t))}},cursor:{get:function(){return null!==this.A?this.A.j:""},set:function(t){var e=this.cursor;e!==t&&(Ba(this),this.A.j=t,this.g("cursor",e,t))}},click:{get:function(){return null!==this.A?this.A.zh:null},set:function(t){var e=this.click;e!==t&&(Ba(this),this.A.zh=t,this.g("click",e,t))}},doubleClick:{get:function(){return null!==this.A?this.A.Fh:null},set:function(t){var e=this.doubleClick;e!==t&&(Ba(this),this.A.Fh=t,this.g("doubleClick",e,t))}},contextClick:{get:function(){return null!==this.A?this.A.Bh:null},set:function(t){var e=this.contextClick;e!==t&&(Ba(this),this.A.Bh=t,this.g("contextClick",e,t))}},mouseEnter:{get:function(){return null!==this.A?this.A.Mh:null},set:function(t){var e=this.mouseEnter;e!==t&&(Ba(this),this.A.Mh=t,this.g("mouseEnter",e,t))}},mouseLeave:{get:function(){return null!==this.A?this.A.Ph:null},set:function(t){var e=this.mouseLeave;e!==t&&(Ba(this),this.A.Ph=t,this.g("mouseLeave",e,t))}},mouseOver:{get:function(){return null!==this.A?this.A.Qh:null},set:function(t){var e=this.mouseOver;e!==t&&(Ba(this),this.A.Qh=t,this.g("mouseOver",e,t))}},mouseHover:{get:function(){return null!==this.A?this.A.Oh:null},set:function(t){var e=this.mouseHover;e!==t&&(Ba(this),this.A.Oh=t,this.g("mouseHover",e,t))}},mouseHold:{get:function(){return null!==this.A?this.A.Nh:null},set:function(t){var e=this.mouseHold;e!==t&&(Ba(this),this.A.Nh=t,this.g("mouseHold",e,t))}},mouseDragEnter:{get:function(){return null!==this.A?this.A.Of:null},set:function(t){var e=this.mouseDragEnter;e!==t&&(Ba(this),this.A.Of=t,this.g("mouseDragEnter",e,t))}},mouseDragLeave:{get:function(){return null!==this.A?this.A.Xd:null},set:function(t){var e=this.mouseDragLeave;e!==t&&(Ba(this),this.A.Xd=t,this.g("mouseDragLeave",e,t))}},mouseDrop:{get:function(){return null!==this.A?this.A.Lh:null},set:function(t){var e=this.mouseDrop;e!==t&&(Ba(this),this.A.Lh=t,this.g("mouseDrop",e,t))}},actionDown:{get:function(){return null!==this.A?this.A.V:null},set:function(t){var e=this.actionDown;e!==t&&(Ba(this),this.A.V=t,this.g("actionDown",e,t))}},actionMove:{get:function(){return null!==this.A?this.A.ia:null},set:function(t){var e=this.actionMove;e!==t&&(Ba(this),this.A.ia=t,this.g("actionMove",e,t))}},actionUp:{get:function(){return null!==this.A?this.A.Ha:null},set:function(t){var e=this.actionUp;e!==t&&(Ba(this),this.A.Ha=t,this.g("actionUp",e,t))}},actionCancel:{get:function(){return null!==this.A?this.A.F:null},set:function(t){var e=this.actionCancel;e!==t&&(Ba(this),this.A.F=t,this.g("actionCancel",e,t))}},toolTip:{get:function(){return null!==this.A?this.A.$h:null},set:function(t){var e=this.toolTip;e!==t&&(Ba(this),this.A.$h=t,this.g("toolTip",e,t))}},contextMenu:{get:function(){return null!==this.A?this.A.Ch:null},set:function(t){var e=this.contextMenu;e!==t&&(Ba(this),this.A.Ch=t,this.g("contextMenu",e,t))}}}),Ia.prototype.trigger=Ia.prototype.Jv,Ia.prototype.findBindingPanel=Ia.prototype.ih,Ia.prototype.findTemplateBinder=Ia.prototype.pz,Ia.prototype.setProperties=Ia.prototype.nm,Ia.prototype.apply=Ia.prototype.apply,Ia.prototype.attach=Ia.prototype.Du,Ia.prototype.set=Ia.prototype.set,Ia.prototype.isEnabledObject=Ia.prototype.If,Ia.prototype.isVisibleObject=Ia.prototype.Ed,Ia.prototype.isContainedBy=Ia.prototype.rg,Ia.prototype.getNearestIntersectionPoint=Ia.prototype.rs,Ia.prototype.getLocalPoint=Ia.prototype.qs,Ia.prototype.getDocumentScale=Ia.prototype.Df,Ia.prototype.getDocumentAngle=Ia.prototype.li,Ia.prototype.getDocumentBounds=Ia.prototype.mi,Ia.prototype.getDocumentPoint=Ia.prototype.ga,Ia.prototype.intersectsRect=Ia.prototype.Yc,Ia.prototype.containedInRect=Ia.prototype.fh,Ia.prototype.containsRect=Ia.prototype.Re,Ia.prototype.containsPoint=Ia.prototype.ca,Ia.prototype.raiseChanged=Ia.prototype.g,Ia.prototype.raiseChangedEvent=Ia.prototype.cb,Ia.prototype.addCopyProperty=Ia.prototype.Vw;var hs=null;function ds(){this.nc=!1,this.xa="",this.zp=-1,this.nb=this.wm=this.te=null,this.j="",this.hb=this.Di=this.Hb=this.Ch=this.$h=this.F=this.Ha=this.ia=this.V=this.Lh=this.Xd=this.Of=this.Nh=this.Oh=this.Qh=this.Ph=this.Mh=this.Bh=this.Fh=this.zh=null,this.u=St,this.o=Mt,this.hg=ma,this.ob=this.Bi=1,this.Pf=da,this.Pc=this.Ci=this.gd=null,this.Oc="category"}function fs(){this.u=-1/0,this.o=0,this.F=nt,this.rr=Xh,this.j=this.V="None"}function ps(){this.yj=this.Xi=ke,this.xj=this.Wi=this.wj=this.Vi=NaN,this.Tr=this.hq=null,this.Ur=this.iq=1/0}function gs(){this.ha=[1,0,0,1,0,0]}function ms(t){this.type=t,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}function vs(t,e,n){this.ownerDocument=t=void 0===e?m.document:e,this.cA="http://www.w3.org/2000/svg",void 0!==t&&(this.Oa=this.Ud("svg",{width:"1px",height:"1px",viewBox:"0 0 1 1"}),this.style.display="block",this.style.letterSpacing="normal",this.style.wordSpacing="normal",this.Oa.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg"),this.Oa.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink")),this.hs=null,this.context=new ys(this,n)}function ys(t,e){this.Gv=t,this.svg=t.Oa,this.stack=[],this.nh=[],this.fillStyle="#000000",this.font="10px sans-serif",this.globalAlpha=1,this.lineCap="butt",this.lineDashOffset=0,this.lineJoin="miter",this.lineWidth=1,this.miterLimit=10,this.shadowBlur=0,this.shadowColor="rgba(0, 0, 0, 0)",this.shadowOffsetY=this.shadowOffsetX=0,this.Il=!1,this.strokeStyle="#000000",this.textAlign="start",this.clipInsteadOfFill=!1,this.Vg=this.Br=this.Ar=0,this.yd=this.ad=null,this.path=[],this.Yl={},this.Ct=!1,this.Yg=null,this.uj=0,this.rb=new gs,this.j=Es(this),this.Nj=Es(this,"gojs-diagram"),this.Hl=this.ti=null;var n=st++,i=this.Ud("clipPath",{id:"mainClip"+n});i.appendChild(this.Ud("rect",{x:0,y:0,width:t.width,height:t.height})),this.ww=i,this.svg.appendChild(this.j),this.j.appendChild(this.Nj),this.svg.appendChild(i),this.j.setAttributeNS(null,"clip-path","url(#mainClip"+n+")"),this.eA={},this.isTemporary=!!e,this.filter="",this.bk=null}function ws(t,e,n,i,r,o,a){void 0===t.Nj?Ms(t,e,n,i,r,o,a):t.Nj.setAttribute("transform","matrix("+e+", "+n+", "+i+", "+r+", "+o+", "+a+")")}function bs(t,e,n,i,r,o,a,s,l){i=s/i,r=l/r,0===o&&0===a||t.rb.translate(o,a),1===i&&1===r||t.rb.scale(i,r),0===e&&0===n||t.rb.translate(-e,-n)}function xs(t){return"matrix("+(t=t.rb.ha)[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+")"}function Ss(t,e,n,i){"fill"===e?Ps(t,n):"stroke"===e&&Cs(t,n),null!==i&&(t=i.ha,n.transform="matrix("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+")")}function Ps(t,e){t.fillStyle instanceof ms?e.fill=As(t,t.fillStyle,!0):/^rgba\(/.test(t.fillStyle)?(t=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(t.fillStyle),e.fill="rgb("+t[1]+","+t[2]+","+t[3]+")",e["fill-opacity"]=t[4]):e.fill=t.fillStyle}function ks(t,e,n){n=n?"fill":"stroke",t.fillStyle instanceof ms?e.setAttributeNS(null,"fill",As(t,t.fillStyle,!0)):/^rgba\(/.test(t.fillStyle)?(t=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(t.fillStyle),e.setAttributeNS(null,n,"rgb("+t[1]+","+t[2]+","+t[3]+")"),e.setAttributeNS(null,n+"-opacity",t[4])):e.setAttributeNS(null,n,t.fillStyle)}function Cs(t,e){if(t.strokeStyle instanceof ms)e.stroke=As(t,t.strokeStyle,!1);else if(/^rgba\(/.test(t.strokeStyle)){var n=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(t.strokeStyle);e.stroke="rgb("+n[1]+","+n[2]+","+n[3]+")",e["stroke-opacity"]=n[4]}else e.stroke=t.strokeStyle;e["stroke-width"]=t.lineWidth,e["stroke-linecap"]=t.lineCap,e["stroke-linejoin"]=t.lineJoin,e["stroke-miterlimit"]=t.miterLimit,t.Ct&&(e["stroke-dasharray"]=t.Yg.toString(),e["stroke-dashoffset"]=t.uj)}function As(t,e,n){var i="";if(null!==(i=null!==t.Hl?t.Hl.getAttribute(n?"fill":"stroke"):null)&&-1!==i.indexOf("GRAD")?(i=i.split("#")[1].slice(0,-1),null!==(n=t.svg.getElementById(i))&&n.remove()):i="GRAD"+st++,"linear"===e.type)n=t.Ud("linearGradient",{x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2,id:i,gradientUnits:"userSpaceOnUse"});else{if("radial"!==e.type)throw Error("invalid gradient");n=t.Ud("radialGradient",{x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2,r1:e.r1,r2:e.r2,id:i})}var r=e.gx;e=r.length;for(var o=[],a=0;a<e;a++){var s=r[a],l=s.color;s={offset:s.offset,"stop-color":l},/^rgba\(/.test(l)&&(l=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(l),s["stop-color"]="rgb("+l[1]+","+l[2]+","+l[3]+")",s["stop-opacity"]=l[4]),o.push(s)}for(o.sort((function(t,e){return t.offset>e.offset?1:-1})),r=0;r<e;r++)n.appendChild(t.Ud("stop",o[r]));return t.svg.appendChild(n),"url(#"+i+")"}function Ms(t,e,n,i,r,o,a){var s=new gs;s.ha=[e,n,i,r,o,a],Ss(t,"g",e={},s),s=t.addElement("g",e),t.nh.push(s)}function Es(t,e){var n={};return e&&(n.class=e),e=t.addElement("g",n),t.nh.push(e),e}function Ls(t){t.Il=!1,t.shadowOffsetX=0,t.shadowOffsetY=0,t.shadowBlur=0}function Ts(t){t.Il=!0,t.shadowOffsetX=t.Ar,t.shadowOffsetY=t.Br,t.shadowBlur=t.Vg}function Ns(t,e){null!==(e=e.getAttribute("fill"))&&(1!==(e=e.split("#")).length&&(null!==(e=t.svg.getElementById(e[1].slice(0,-1)))&&1===t.svg.innerHTML.match(new RegExp(e.id,"g")).length&&e.remove()))}function js(t,e,n,i){this.ownerDocument=e=void 0===e?m.document:e,this.hs=null,(e=e.createElement("canvas")).tabIndex=0,this.Oa=e,this.context=new Is(e,n,i),e.H=t}function Is(t,e,n){this.Z=t.getContext?t.getContext("2d",e):null,null===this.Z&&x("Browser does not support HTML Canvas Element"),this.ct=this.et=this.dt="",this.Hm=!1,this.Vg=this.Br=this.Ar=0,this.Il=!1,this.El=new Ue,this.isTemporary=!!n}Ia.className="GraphObject",hs=new ft,us("Button",(function(){function t(t,e){return null!==t.diagram.ic(t.documentPoint,(function(t){for(;null!==t.panel&&!t.isActionable;)t=t.panel;return t}),(function(t){return t===e}))}var e=ss(Ml,Ml.Auto,{isActionable:!0,enabledChanged:function(t,e){if(t instanceof Ml){var n=t.fb("ButtonBorder");null!==n&&(n.fill=e?t._buttonFillNormal:t._buttonFillDisabled)}},cursor:"pointer",_buttonFillNormal:"#F5F5F5",_buttonStrokeNormal:"#BDBDBD",_buttonFillOver:"#E0E0E0",_buttonStrokeOver:"#9E9E9E",_buttonFillPressed:"#BDBDBD",_buttonStrokePressed:"#9E9E9E",_buttonFillDisabled:"#E5E5E5"},ss(pu,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new De(0,0,2.76142374915397,2.761423749153969),spot2:new De(1,1,-2.76142374915397,-2.761423749153969),parameter1:2,parameter2:2,fill:"#F5F5F5",stroke:"#BDBDBD"}));return e.mouseEnter=function(t,e){if(e.If()&&e instanceof Ml&&(t=e.fb("ButtonBorder"))instanceof pu){var n=e._buttonFillOver;e._buttonFillNormal=t.fill,t.fill=n,n=e._buttonStrokeOver,e._buttonStrokeNormal=t.stroke,t.stroke=n}},e.mouseLeave=function(t,e){e.If()&&e instanceof Ml&&((t=e.fb("ButtonBorder"))instanceof pu&&(t.fill=e._buttonFillNormal,t.stroke=e._buttonStrokeNormal))},e.actionDown=function(t,e){if(e.If()&&e instanceof Ml&&null!==e._buttonFillPressed&&0===t.button){var n=e.fb("ButtonBorder");if(n instanceof pu){var i=(t=t.diagram).skipsUndoManager;t.skipsUndoManager=!0;var r=e._buttonFillPressed;e._buttonFillOver=n.fill,n.fill=r,r=e._buttonStrokePressed,e._buttonStrokeOver=n.stroke,n.stroke=r,t.skipsUndoManager=i}}},e.actionUp=function(e,n){if(n.If()&&n instanceof Ml&&null!==n._buttonFillPressed&&0===e.button){var i=n.fb("ButtonBorder");if(i instanceof pu){var r=e.diagram,o=r.skipsUndoManager;r.skipsUndoManager=!0,t(e,n)?(i.fill=n._buttonFillOver,i.stroke=n._buttonStrokeOver):(i.fill=n._buttonFillNormal,i.stroke=n._buttonStrokeNormal),r.skipsUndoManager=o}}},e.actionCancel=function(e,n){if(n.If()&&n instanceof Ml&&null!==n._buttonFillPressed){var i=n.fb("ButtonBorder");if(i instanceof pu){var r=e.diagram,o=r.skipsUndoManager;r.skipsUndoManager=!0,t(e,n)?(i.fill=n._buttonFillOver,i.stroke=n._buttonStrokeOver):(i.fill=n._buttonFillNormal,i.stroke=n._buttonStrokeNormal),r.skipsUndoManager=o}}},e.actionMove=function(e,n){if(n.If()&&n instanceof Ml&&null!==n._buttonFillPressed){var i=e.diagram;if(0===i.firstInput.button&&(i.currentTool.standardMouseOver(),t(e,n)&&(e=n.fb("ButtonBorder"))instanceof pu)){var r=i.skipsUndoManager;i.skipsUndoManager=!0;var o=n._buttonFillPressed;e.fill!==o&&(e.fill=o),o=n._buttonStrokePressed,e.stroke!==o&&(e.stroke=o),i.skipsUndoManager=r}}},e})),us("TreeExpanderButton",(function(){var t=ss("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},ss(pu,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Ct},new Hf("figure","isTreeExpanded",(function(t,e){return e=e.panel,t?e._treeExpandedFigure:e._treeCollapsedFigure})).cp()),{visible:!1},new Hf("visible","isTreeLeaf",(function(t){return!t})).cp());return t.click=function(t,e){if((e=e.part)instanceof Yc&&(e=e.adornedPart),e instanceof qc){var n=e.diagram;if(null!==n){if(n=n.commandHandler,e.isTreeExpanded){if(!n.canCollapseTree(e))return}else if(!n.canExpandTree(e))return;t.handled=!0,e.isTreeExpanded?n.collapseTree(e):n.expandTree(e)}}},t})),us("SubGraphExpanderButton",(function(){var t=ss("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},ss(pu,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Ct},new Hf("figure","isSubGraphExpanded",(function(t,e){return e=e.panel,t?e._subGraphExpandedFigure:e._subGraphCollapsedFigure})).cp()));return t.click=function(t,e){if((e=e.part)instanceof Yc&&(e=e.adornedPart),e instanceof gh){var n=e.diagram;if(null!==n){if(n=n.commandHandler,e.isSubGraphExpanded){if(!n.canCollapseSubGraph(e))return}else if(!n.canExpandSubGraph(e))return;t.handled=!0,e.isSubGraphExpanded?n.collapseSubGraph(e):n.expandSubGraph(e)}}},t})),us("ToolTip",(function(){return ss(Yc,Ml.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new pt(0,3),shadowBlur:5},ss(pu,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new De(0,0,4,6),spot2:new De(1,1,-4,-4)}))})),us("ContextMenu",(function(){return ss(Yc,Ml.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new pt(0,3),shadowBlur:5},new Hf("background","",(function(t){return null!==t.adornedPart&&null!==t.placeholder?null:"#F5F5F5"})))})),us("ContextMenuButton",(function(){var t=ss("Button");t.stretch=pa;var e=t.fb("ButtonBorder");return e instanceof pu&&(e.figure="Rectangle",e.strokeWidth=0,e.spot1=new De(0,0,2,3),e.spot2=new De(1,1,-2,-2)),t})),us("PanelExpanderButton",(function(t){var e=cs(t,"COLLAPSIBLE"),n=ss("Button",{_buttonExpandedFigure:"M0 0 M0 6 L4 2 8 6 M8 8",_buttonCollapsedFigure:"M0 0 M0 2 L4 6 8 2 M8 8",_buttonFillNormal:"rgba(0, 0, 0, 0)",_buttonStrokeNormal:null,_buttonFillOver:"rgba(0, 0, 0, .2)",_buttonStrokeOver:null,_buttonFillPressed:"rgba(0, 0, 0, .4)",_buttonStrokePressed:null},ss(pu,{name:"ButtonIcon",strokeWidth:2},new Hf("geometryString","visible",(function(t){return t?n._buttonExpandedFigure:n._buttonCollapsedFigure})).cp(e)));return(t=n.fb("ButtonBorder"))instanceof pu&&(t.stroke=null,t.fill="rgba(0, 0, 0, 0)"),n.click=function(t,n){var i=n.diagram;if(null!==i&&!i.isReadOnly){var r=n.ih();null===r&&(r=n.part),null!==r&&(null!==(n=r.fb(e))&&(t.handled=!0,i.Ea("Collapse/Expand Panel"),n.visible=!n.visible,i.eb("Collapse/Expand Panel")))}},n})),us("CheckBoxButton",(function(t){var e=cs(t);return(t=ss("Button",{desiredSize:new Tt(14,14)},ss(pu,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:ha,geometryStretch:fa,visible:!1},""!==e?new Hf("visible",e).Kx():[]))).click=function(t,n){if(n instanceof Ml){var i=t.diagram;if(!(null===i||i.isReadOnly||""!==e&&i.model.isReadOnly)){t.handled=!0;var r=n.fb("ButtonIcon");i.Ea("checkbox"),r.visible=!r.visible,"function"==typeof n._doClick&&n._doClick(t,n),i.eb("checkbox")}}},t})),us("CheckBox",(function(t){t=ss("CheckBoxButton",t=cs(t),{name:"Button",isActionable:!1,margin:new Xt(0,1,0,0)});var e=ss(Ml,"Horizontal",t,{isActionable:!0,cursor:t.cursor,margin:new Xt(1),_buttonFillNormal:t._buttonFillNormal,_buttonStrokeNormal:t._buttonStrokeNormal,_buttonFillOver:t._buttonFillOver,_buttonStrokeOver:t._buttonStrokeOver,_buttonFillPressed:t._buttonFillPressed,_buttonStrokePressed:t._buttonStrokePressed,_buttonFillDisabled:t._buttonFillDisabled,mouseEnter:t.mouseEnter,mouseLeave:t.mouseLeave,actionDown:t.actionDown,actionUp:t.actionUp,actionCancel:t.actionCancel,actionMove:t.actionMove,click:t.click,_buttonClick:t.click});return t.mouseEnter=null,t.mouseLeave=null,t.actionDown=null,t.actionUp=null,t.actionCancel=null,t.actionMove=null,t.click=null,e})),Ia.None=da=new G(Ia,"None",0),Ia.Default=ma=new G(Ia,"Default",0),Ia.Vertical=ga=new G(Ia,"Vertical",4),Ia.Horizontal=pa=new G(Ia,"Horizontal",5),Ia.Fill=ha=new G(Ia,"Fill",3),Ia.Uniform=fa=new G(Ia,"Uniform",1),Ia.UniformToFill=va=new G(Ia,"UniformToFill",2),Ia.FlipVertical=ya=new G(Ia,"FlipVertical",1),Ia.FlipHorizontal=wa=new G(Ia,"FlipHorizontal",2),Ia.FlipBoth=ba=new G(Ia,"FlipBoth",3),Ia.make=ss,Ia.getBuilders=function(){var t,e=new ft;for(t in hs)if(t!==t.toLowerCase()){var n=hs.I(t);"function"==typeof n&&e.add(t,n)}return e.freeze(),e},Ia.defineBuilder=us,Ia.build=function(t,e,n){for(var i=[],r=2;r<arguments.length;++r)i[r-2]=arguments[r];if("function"==typeof(r=hs.I(t))&&(i=r([t].concat(i)))instanceof Ia)return e&&i.set(e),i;x('GraphObject.build invoked object builder "'+t+'", but it did not return an Object')},Ia.takeBuilderArgument=cs,ds.prototype.copy=function(){var t=new ds;return t.xa=this.xa,t.zp=this.zp,t.te=this.te,t.nb=this.nb,t.j=this.j,t.zh=this.zh,t.Fh=this.Fh,t.Bh=this.Bh,t.Mh=this.Mh,t.Ph=this.Ph,t.Qh=this.Qh,t.Oh=this.Oh,t.Nh=this.Nh,t.Of=this.Of,t.Xd=this.Xd,t.Lh=this.Lh,t.V=this.V,t.ia=this.ia,t.Ha=this.Ha,t.F=this.F,t.$h=this.$h,t.Ch=this.Ch,t.Hb=this.Hb,t.Di=this.Di,t.hb=this.hb,t.u=this.u.J(),t.o=this.o.J(),t.hg=this.hg,t.Bi=this.Bi,t.ob=this.ob,t.Pf=this.Pf,t.gd=this.gd,t.Ci=this.Ci,t.Pc=this.Pc,t.Oc=this.Oc,t},fs.prototype.copy=function(){var t=new fs;return t.u=this.u,t.o=this.o,t.F=this.F.J(),t.rr=this.rr,t.V=this.V,t.j=this.j,t},fs.className="LinkElementSettings",ps.prototype.copy=function(){var t=new ps;return t.Xi=this.Xi.J(),t.yj=this.yj.J(),t.Vi=this.Vi,t.wj=this.wj,t.Wi=this.Wi,t.xj=this.xj,t.hq=this.hq,t.Tr=this.Tr,t.iq=this.iq,t.Ur=this.Ur,t},ps.className="LinkSettings",gs.prototype.copy=function(){var t=new gs;return t.ha[0]=this.ha[0],t.ha[1]=this.ha[1],t.ha[2]=this.ha[2],t.ha[3]=this.ha[3],t.ha[4]=this.ha[4],t.ha[5]=this.ha[5],t},gs.prototype.translate=function(t,e){this.ha[4]+=this.ha[0]*t+this.ha[2]*e,this.ha[5]+=this.ha[1]*t+this.ha[3]*e},gs.prototype.scale=function(t,e){this.ha[0]*=t,this.ha[1]*=t,this.ha[2]*=e,this.ha[3]*=e},gs.prototype.rotate=function(t,e,n){if(360<=t?t-=360:0>t&&(t+=360),0!==t){if(this.translate(e,n),90===t){t=0;var i=1}else 180===t?(t=-1,i=0):270===t?(t=0,i=-1):(i=t*Math.PI/180,t=Math.cos(i),i=Math.sin(i));var r=this.ha[1]*t+this.ha[3]*i,o=this.ha[0]*-i+this.ha[2]*t,a=this.ha[1]*-i+this.ha[3]*t;this.ha[0]=this.ha[0]*t+this.ha[2]*i,this.ha[1]=r,this.ha[2]=o,this.ha[3]=a,this.translate(-e,-n)}},gs.className="STransform",ms.prototype.addColorStop=function(t,e){this.gx.push({offset:t,color:e})},ms.className="SGradient",vs.prototype.resize=function(t,e,n,i){return(this.width!==t||this.height!==e)&&(this.width=t,this.height=e,this.style.width=n+"px",this.style.height=i+"px",this.Oa.setAttributeNS(null,"width",n+"px"),this.Oa.setAttributeNS(null,"height",i+"px"),this.Oa.setAttributeNS(null,"viewBox","0 0 "+n+" "+i),this.context.ww.firstElementChild.setAttributeNS(null,"width",n+"px"),this.context.ww.firstElementChild.setAttributeNS(null,"height",i+"px"),!0)},vs.prototype.Ud=function(t,e,n){if(t=this.ownerDocument.createElementNS(this.cA,t),C(e))for(var i in e)t.setAttributeNS("href"===i?"http://www.w3.org/1999/xlink":"",i,e[i]);return void 0!==n&&(t.textContent=n),t},vs.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},vs.prototype.focus=function(){this.Oa.focus()},vs.prototype.mx=function(){this.ownerDocument=null},d.Object.defineProperties(vs.prototype,{width:{get:function(){return this.Oa.width.baseVal.value},set:function(t){this.Oa.setAttribute("width",t+"px")}},height:{get:function(){return this.Oa.height.baseVal.value},set:function(t){this.Oa.setAttribute("height",t+"px")}},style:{get:function(){return this.Oa.style}}}),vs.className="SVGSurface",(e=ys.prototype).arc=function(t,e,n,i,r,o,a,s){var l=2*Math.PI,u=l-1e-6,c=n*Math.cos(i),h=n*Math.sin(i),d=t+c,f=e+h,p=o?0:1;i=o?i-r:r-i,(1e-6<Math.abs(a-d)||1e-6<Math.abs(s-f))&&this.path.push(["L",d,+f]),0>i&&(i=i%l+l),i>u?(this.path.push(["A",n,n,0,1,p,t-c,e-h]),this.path.push(["A",n,n,0,1,p,d,f])):1e-6<i&&this.path.push(["A",n,n,0,+(i>=Math.PI),p,t+n*Math.cos(r),e+n*Math.sin(r)])},e.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},e.Se=function(t){this.addPath(this.path,this.rb,t||0)},e.bezierCurveTo=function(t,e,n,i,r,o){this.path.push(["C",t,e,n,i,r,o])},e.clearRect=function(){},e.clip=function(){this.Yl.clipPath=!0},e.closePath=function(){this.path.push(["z"])},e.createLinearGradient=function(t,e,n,i){var r=new ms("linear");return r.x1=t,r.y1=e,r.x2=n,r.y2=i,r},e.createPattern=function(t){var e="";t instanceof HTMLCanvasElement&&(e=t.toDataURL()),t instanceof HTMLImageElement&&(e=t.getAttribute("src"));var n=this.eA;if(n[e])return"url(#"+n[e]+")";var i="PATTERN"+st++,r={x:0,y:0,width:t.width,height:t.height,href:e};return(t=this.Ud("pattern",{width:t.width,height:t.height,id:i,patternUnits:"userSpaceOnUse"})).appendChild(this.Ud(oa,r)),this.svg.appendChild(t),n[e]=i,"url(#"+i+")"},e.createRadialGradient=function(t,e,n,i,r,o){var a=new ms("radial");return a.x1=t,a.y1=e,a.r1=n,a.x2=i,a.y2=r,a.r2=o,a},e.drawImage=function(t,e,n,i,r,o,a,s,l){var u="";t instanceof HTMLCanvasElement&&(u=t.toDataURL()),t instanceof HTMLImageElement&&(u=t.getAttribute("src"));var c=t instanceof HTMLImageElement?t.naturalWidth:t.width;t=t instanceof HTMLImageElement?t.naturalHeight:t.height,void 0===i&&(o=e,a=n,s=i=c,l=r=t),bs(this,e,n,i=i||0,r=r||0,o||0,a||0,s=s||0,l=l||0),o={x:0,y:0,width:c||i,height:t||r,href:u},_e.$(i,s)&&_e.$(r,l)?-1===u.toLowerCase().indexOf(".svg")&&-1===u.toLowerCase().indexOf("data:image/svg")&&(o.preserveAspectRatio="xMidYMid slice"):o.preserveAspectRatio="none",0===e&&0===n&&i===c&&r===t||(i+=e,r+=n,o["clip-path"]="path('M "+e+","+n+" L "+i+" "+n+" L "+i+" "+r+" L "+e+" "+r+" z')"),Ss(this,oa,o,this.rb),this.addElement(oa,o)},e.fill=function(t){t&&(this.Yl["fill-rule"]="evenodd"),Ps(this,this.Yl)},e.ng=function(t,e){this.clipInsteadOfFill?this.clip():this.fill(e)},e.fillRect=function(t,e,n,i){Ss(this,"fill",t={x:(t=[t,e,n,i])[0],y:t[1],width:t[2],height:t[3]},this.rb),this.addElement("rect",t)},e.ox=function(t,e,n,i){Ss(this,"fill",t={x:t,y:e,width:n,height:i},this.rb),Ps(this,t),this.svg.prepend(this.Ud("rect",t))},e.fillText=function(t,e,n){t=[t,e,n],"left"===(e=this.textAlign)?e="start":"right"===e?e="end":"center"===e&&(e="middle"),Ss(this,"fill",e={x:t[1],y:t[2],style:"font: "+this.font,"text-anchor":e},this.rb),this.addElement("text",e,t[0])},e.lineTo=function(t,e){this.path.push(["L",t,e])},e.moveTo=function(t,e){this.path.push(["M",t,e])},e.quadraticCurveTo=function(t,e,n,i){this.path.push(["Q",t,e,n,i])},e.rect=function(t,e,n,i){this.path.push(["M",t,e],["L",t+n,e],["L",t+n,e+i],["L",t,e+i],["z"])},e.restore=function(){this.rb=this.stack.pop(),this.path=this.stack.pop();var t=this.stack.pop();this.fillStyle=t.fillStyle,this.font=t.font,this.globalAlpha=t.globalAlpha,this.lineCap=t.lineCap,this.lineDashOffset=t.lineDashOffset,this.lineJoin=t.lineJoin,this.lineWidth=t.lineWidth,this.miterLimit=t.miterLimit,this.shadowBlur=t.shadowBlur,this.shadowColor=t.shadowColor,this.shadowOffsetX=t.shadowOffsetX,this.shadowOffsetY=t.shadowOffsetY,this.strokeStyle=t.strokeStyle,this.textAlign=t.textAlign,this.bk=t.bk},e.save=function(){this.stack.push({fillStyle:this.fillStyle,font:this.font,globalAlpha:this.globalAlpha,lineCap:this.lineCap,lineDashOffset:this.lineDashOffset,lineJoin:this.lineJoin,lineWidth:this.lineWidth,miterLimit:this.miterLimit,shadowBlur:this.shadowBlur,shadowColor:this.shadowColor,shadowOffsetX:this.shadowOffsetX,shadowOffsetY:this.shadowOffsetY,strokeStyle:this.strokeStyle,textAlign:this.textAlign,bk:this.bk});for(var t=[],e=0;e<this.path.length;e++)t.push(this.path[e]);this.stack.push(t),this.stack.push(this.rb.copy())},e.setTransform=function(t,e,n,i,r,o){1===t&&0===e&&0===n&&1===i&&0===r&&0===o||Ms(this,t,e,n,i,r,o)},e.scale=function(t,e){this.rb.scale(t,e)},e.translate=function(t,e){this.rb.translate(t,e)},e.transform=function(){},e.yc=function(){},e.stroke=function(){Cs(this,this.Yl)},e.jk=function(){this.clipInsteadOfFill||this.stroke()},e.Ud=function(t,e,n){return this.Gv.Ud(t,e,n)},e.addElement=function(t,e,n){return t=this.Ud(t,e,n),null!==this.yd?this.yd.appendChild(t):this.yd=t,this.ad=t},e.addPath=function(t,e,n){for(var i=[],r=0;r<t.length;r++){var o=M(t[r]),a=[o.shift()];if("A"===a[0])a.push(o.shift()+","+o.shift(),o.shift(),o.shift()+","+o.shift(),o.shift()+","+o.shift());else for(;o.length;)a.push(o.shift()+","+o.shift());i.push(a.join(" "))}if(i=i.join(" "),(t=this.Yl).clipPath)0<this.nh.length&&this.nh[this.nh.length-1].setAttributeNS(null,"clip-path",'path("'+i+'")');else if(t.d=i,Ss(this,"",t,e),null!==this.Hl)if("g"!==(e=this.Hl).nodeName)for(var s in t)"transform"!==s&&e.setAttributeNS(null,s,t[s]);else for(var l in s=e.getElementsByTagName("path"),t)"transform"!==l&&s[n].setAttributeNS(null,l,t[l]);else this.addElement("path",t)},e.Ev=function(t,e,n){this.Ar=t,this.Br=e,this.Vg=n},e.js=function(t,e){this.Ct=!0,this.Yg=t,this.uj=e},e.fs=function(){this.Ct=!1},e.Vc=function(){},e.Wx=function(){},ys.prototype.rotate=function(t){this.rb.rotate(57.2958*t,0,0)},ys.prototype.getImageData=function(){return null},ys.prototype.measureText=function(){return null},ys.prototype.Hs=function(t){null!==t.svg&&t.svg.parentNode===this.Nj&&t.svg.remove()},ys.className="SVGContext",Mr.prototype.Cs=function(t){this.pj.contains("SVG")||this.bs("SVG",new vs(this,m.document));var e=new vs(this,m.document,!0);void 0===t&&(t=new _);var n=this;return Do(this,(function(t,i){return t=null!==(t=Ro(n,t,"SVG",e))?t.svg:null,"function"==typeof i?(i(t),null):t}),t)},Mr.prototype.makeSvg=Mr.prototype.Cs,Mr.prototype.av=function(t){return this.Cs(t)},Mr.prototype.makeSVG=Mr.prototype.av,js.prototype.resize=function(t,e,n,i){return(this.width!==t||this.height!==e)&&(this.width=t,this.height=e,this.style.width=n+"px",this.style.height=i+"px",!0)},js.prototype.toDataURL=function(t,e){return this.Oa.toDataURL(t,e)},js.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},js.prototype.focus=function(){this.Oa.focus()},js.prototype.mx=function(){this.ownerDocument=this.Oa.H=null},d.Object.defineProperties(js.prototype,{width:{get:function(){return this.Oa.width},set:function(t){this.Oa.width=t}},height:{get:function(){return this.Oa.height},set:function(t){this.Oa.height=t}},style:{get:function(){return this.Oa.style}}}),js.className="CanvasSurface",(e=Is.prototype).Wx=function(t){this.Z.imageSmoothingEnabled=t},e.arc=function(t,e,n,i,r,o){this.Z.arc(t,e,n,i,r,o)},e.beginPath=function(){this.Z.beginPath()},e.Se=function(){},e.bezierCurveTo=function(t,e,n,i,r,o){this.Z.bezierCurveTo(t,e,n,i,r,o)},e.clearRect=function(t,e,n,i){this.yc(),this.Z.clearRect(t,e,n,i)},e.clip=function(){this.Z.clip()},e.closePath=function(){this.Z.closePath()},e.createLinearGradient=function(t,e,n,i){return this.Z.createLinearGradient(t,e,n,i)},e.createPattern=function(t,e){return this.Z.createPattern(t,e)},e.createRadialGradient=function(t,e,n,i,r,o){return this.Z.createRadialGradient(t,e,n,i,r,o)},e.drawImage=function(t,e,n,i,r,o,a,s,l){void 0===i?this.Z.drawImage(t,e,n):this.Z.drawImage(t,e,n,i,r,o,a,s,l)},e.fill=function(t){this.Z.fill(t?"evenodd":"nonzero")},e.fillRect=function(t,e,n,i){this.Z.fillRect(t,e,n,i)},e.ox=function(t,e,n,i){this.Z.fillRect(t,e,n,i)},e.fillText=function(t,e,n){this.Z.fillText(t,e,n)},e.getImageData=function(t,e,n,i){return this.Z.getImageData(t,e,n,i)},e.lineTo=function(t,e){this.Z.lineTo(t,e)},e.measureText=function(t){return this.Z.measureText(t)},e.moveTo=function(t,e){this.Z.moveTo(t,e)},e.quadraticCurveTo=function(t,e,n,i){this.Z.quadraticCurveTo(t,e,n,i)},e.rect=function(t,e,n,i){this.Z.rect(t,e,n,i)},e.restore=function(){this.Z.restore()},e.save=function(){this.yc(),this.Z.save()},Is.prototype.rotate=function(t){this.El.rotate(57.2958*t,0,0)},(e=Is.prototype).setTransform=function(t,e,n,i,r,o){this.El.setTransform(t,e,n,i,r,o)},e.scale=function(t,e){this.El.scale(t,e)},e.translate=function(t,e){this.El.translate(t,e)},e.stroke=function(){this.Z.stroke()},e.transform=function(t,e,n,i,r,o){if(1!==t||0!==e||0!==n||1!==i||0!==r||0!==o){var a=this.El,s=a.m11*t+a.m21*e;t=a.m12*t+a.m22*e,e=a.m11*n+a.m21*i,n=a.m12*n+a.m22*i,a.dx=a.m11*r+a.m21*o+a.dx,a.dy=a.m12*r+a.m22*o+a.dy,a.m11=s,a.m12=t,a.m21=e,a.m22=n}},e.yc=function(){var t=this.El;this.Z.setTransform(t.m11,t.m12,t.m21,t.m22,t.dx,t.dy)},e.ng=function(t,e){if(t instanceof Ds&&t.type===Js){var n=t.yk;(t=t.ft)>n?(this.scale(n/t,1),this.translate((t-n)/2,0)):n>t&&(this.scale(1,t/n),this.translate(0,(n-t)/2)),this.Hm?this.clip():this.fill(e),t>n?(this.translate(-(t-n)/2,0),this.scale(1/(n/t),1)):n>t&&(this.translate(0,-(n-t)/2),this.scale(1,1/(t/n)))}else this.Hm?this.clip():this.fill(e)},e.jk=function(){this.Hm||this.stroke()},e.Ev=function(t,e,n){this.Ar=t,this.Br=e,this.Vg=n},e.js=function(t,e){var n=this.Z;void 0!==n.setLineDash&&(n.setLineDash(t),n.lineDashOffset=e)},e.fs=function(){var t=this.Z;void 0!==t.setLineDash&&(t.setLineDash(Bs),t.lineDashOffset=0)},e.Vc=function(t){t&&(this.dt=""),this.ct=this.et=""},e.Hs=function(){},d.Object.defineProperties(Is.prototype,{fillStyle:{get:function(){return this.Z.fillStyle},set:function(t){this.ct!==t&&(this.ct=this.Z.fillStyle=t)}},font:{get:function(){return this.Z.font},set:function(t){this.dt!==t&&(this.dt=this.Z.font=t)}},globalAlpha:{get:function(){return this.Z.globalAlpha},set:function(t){this.Z.globalAlpha=t}},lineCap:{get:function(){return this.Z.lineCap},set:function(t){this.Z.lineCap=t}},lineDashOffset:{get:function(){return this.Z.lineDashOffset},set:function(t){this.Z.lineDashOffset=t}},lineJoin:{get:function(){return this.Z.lineJoin},set:function(t){this.Z.lineJoin=t}},lineWidth:{get:function(){return this.Z.lineWidth},set:function(t){this.Z.lineWidth=t}},miterLimit:{get:function(){return this.Z.miterLimit},set:function(t){this.Z.miterLimit=t}},shadowBlur:{get:function(){return this.Z.shadowBlur},set:function(t){this.Z.shadowBlur=t}},shadowColor:{get:function(){return this.Z.shadowColor},set:function(t){this.Z.shadowColor=t}},shadowOffsetX:{get:function(){return this.Z.shadowOffsetX},set:function(t){this.Z.shadowOffsetX=t}},shadowOffsetY:{get:function(){return this.Z.shadowOffsetY},set:function(t){this.Z.shadowOffsetY=t}},strokeStyle:{get:function(){return this.Z.strokeStyle},set:function(t){this.et!==t&&(this.et=this.Z.strokeStyle=t)}},textAlign:{get:function(){return this.Z.textAlign},set:function(t){this.Z.textAlign=t}},imageSmoothingEnabled:{get:function(){return this.Z.imageSmoothingEnabled},set:function(t){this.Z.imageSmoothingEnabled=t}},filter:{get:function(){return this.Z.filter},set:function(t){this.Z.filter=""===t?"none":t}},clipInsteadOfFill:{get:function(){return this.Hm},set:function(t){this.Hm=t}}});var Bs=Object.freeze([]);function Os(){this.F=this.o=this.u=this.j=0}function Ds(t,e){cl||(qs(),cl=!0),$(this),this._isFrozen=!1,void 0===t?(this.na=Ks,this.xk="black"):"string"==typeof t?(this.na=Ks,this.xk=t):(this.na=t,this.xk="black"),(t=this.na)===Qs?(this.Qd=ee,this.Lk=se):this.Lk=this.Qd=t===Js?re:$t,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,e&&Object.assign(this,e)}function Rs(t,e,n){return e=void 0===e||"number"!=typeof e?.2:e,n=void 0===n?tl:n,Hs(t),Us(e,n)}function Fs(t,e,n){return e=void 0===e||"number"!=typeof e?.2:e,n=void 0===n?tl:n,Hs(t),Us(-e,n)}function zs(t,e,n){Hs(t),t=al.j;var i=al.u,r=al.o,o=al.F;return Hs(e),void 0===n&&(n=.5),"rgba("+Math.round((al.j-t)*n+t)+", "+Math.round((al.u-i)*n+i)+", "+Math.round((al.o-r)*n+r)+", "+Math.round((al.F-o)*n+o)+")"}function Gs(t){return!!t&&(t instanceof Ds?t.Gx():(Hs(t),128>(299*al.j+587*al.u+114*al.o)/1e3))}function Us(t,e){switch(e){case tl:e=100*Zs(al.j);var n=100*Zs(al.u),i=100*Zs(al.o);return ll.j=.4124564*e+.3575761*n+.1804375*i,ll.u=.2126729*e+.7151522*n+.072175*i,ll.o=.0193339*e+.119192*n+.9503041*i,ll.F=al.F,e=Vs(ll.j/rl[0]),n=Vs(ll.u/rl[1]),i=Vs(ll.o/rl[2]),ul.j=116*n-16,ul.u=500*(e-n),ul.o=200*(n-i),ul.F=ll.F,ul.j=Math.min(100,Math.max(0,ul.j+100*t)),e=(t=(ul.j+16)/116)-ul.o/200,ll.j=rl[0]*Ys(ul.u/500+t),ll.u=rl[1]*(ul.j>il*nl?Math.pow(t,3):ul.j/il),ll.o=rl[2]*Ys(e),ll.F=ul.F,t=-.969266*ll.j+1.8760108*ll.u+.041556*ll.o,e=.0556434*ll.j+-.2040259*ll.u+1.0572252*ll.o,al.j=255*Ws((3.2404542*ll.j+-1.5371385*ll.u+-.4985314*ll.o)/100),al.u=255*Ws(t/100),al.o=255*Ws(e/100),al.F=ll.F,al.j=Math.round(al.j),255<al.j?al.j=255:0>al.j&&(al.j=0),al.u=Math.round(al.u),255<al.u?al.u=255:0>al.u&&(al.u=0),al.o=Math.round(al.o),255<al.o?al.o=255:0>al.o&&(al.o=0),"rgba("+al.j+", "+al.u+", "+al.o+", "+al.F+")";case el:return _s(),sl.o=Math.min(100,Math.max(0,sl.o+100*t)),"hsla("+sl.j+", "+sl.u+"%, "+sl.o+"%, "+sl.F+")";default:x("Unknown color space: "+e)}}function Hs(t){cl||(qs(),cl=!0);var e=ol;if(null!==e){e.clearRect(0,0,1,1),e.fillStyle="#000000";var n=e.fillStyle;e.fillStyle=t,e.fillStyle!==n?(e.fillRect(0,0,1,1),t=e.getImageData(0,0,1,1).data,al.j=t[0],al.u=t[1],al.o=t[2],al.F=t[3]/255):(e.fillStyle="#FFFFFF",e.fillStyle=t,al.j=0,al.u=0,al.o=0,al.F=1)}}function _s(){var t=al.j/255,e=al.u/255,n=al.o/255,i=Math.max(t,e,n),r=Math.min(t,e,n),o=i-r;if(r=(i+r)/2,0===o)var a=t=0;else{switch(i){case t:a=(e-n)/o%6;break;case e:a=(n-t)/o+2;break;case n:a=(t-e)/o+4}0>(a*=60)&&(a+=360),t=o/(1-Math.abs(2*r-1))}sl.j=Math.round(a),sl.u=Math.round(100*t),sl.o=Math.round(100*r),sl.F=al.F}function Zs(t){return.04045>=(t/=255)?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Ws(t){return.0031308>=t?12.92*t:1.055*Math.pow(t,1/2.4)-.055}function Vs(t){return t>nl?Math.pow(t,1/3):(il*t+16)/116}function Ys(t){var e=t*t*t;return e>nl?e:(116*t-16)/il}function Xs(t,e){"string"!=typeof t&&(t instanceof Ds||x("Value for "+e+" must be a color string or a Brush, not "+t))}function qs(){ol=Go?new js(null,void 0,{willReadFrequently:!0}).context:null}Is.className="CanvasSurfaceContext",Os.className="ColorNumbers",Ds.prototype.copy=function(){var t=new Ds;return t.na=this.na,t.xk=this.xk,t.Qd=this.Qd.J(),t.Lk=this.Lk.J(),t.Gr=this.Gr,t.Xp=this.Xp,null!==this.we&&(t.we=this.we.copy()),t.cr=this.cr,t},(e=Ds.prototype).freeze=function(){return this._isFrozen=!0,null!==this.we&&this.we.freeze(),this},e.ka=function(){return Object.isFrozen(this)&&x("cannot thaw constant: "+this),this._isFrozen=!1,null!==this.we&&this.we.ka(),this},e.qb=function(t){t.classType===Ds&&(this.type=t)},e.toString=function(){var t="Brush(";if(this.type===Ks)t+=this.color;else if(t=this.type===Qs?t+"Linear ":this.type===Js?t+"Radial ":this.type===$s?t+"Pattern ":t+"(unknown) ",t+=this.start+" "+this.end,null!==this.colorStops)for(var e=this.colorStops.iterator;e.next();)t+=" "+e.key+":"+e.value;return t+")"},e.addColorStop=function(t,e){return this._isFrozen&&S(this),("number"!=typeof t||!isFinite(t)||1<t||0>t)&&P(t,"0 <= loc <= 1",Ds,"addColorStop:loc"),null===this.we&&(this.we=new ft),this.we.add(t,e),this.na===Ks&&(this.type=Qs),this.xe=null,this},e.Vz=function(t,e){if(this._isFrozen&&S(this),t=void 0===t||"number"!=typeof t?.2:t,e=void 0===e?tl:e,this.type===Ks)Hs(this.color),this.color=Us(t,e);else if((this.type===Qs||this.type===Js)&&null!==this.colorStops)for(var n=this.colorStops.iterator;n.next();)Hs(n.value),this.addColorStop(n.key,Us(t,e));return this},e.Wy=function(t,e){if(this._isFrozen&&S(this),t=void 0===t||"number"!=typeof t?.2:t,e=void 0===e?tl:e,this.type===Ks)Hs(this.color),this.color=Us(-t,e);else if((this.type===Qs||this.type===Js)&&null!==this.colorStops)for(var n=this.colorStops.iterator;n.next();)Hs(n.value),this.addColorStop(n.key,Us(-t,e));return this},e.Gx=function(){if(this.type===Ks)return Gs(this.color);if((this.type===Qs||this.type===Js)&&null!==this.colorStops){var t=this.colorStops;if(this.type===Js)return Gs(t.first().value);if(null!==t.get(.5))return Gs(t.get(.5));if(2===t.count)return Gs(zs((t=t.Fa())[0].value,t[1].value));for(var e=t.iterator,n=-1,i=-1,r=1,o=1;e.next();){var a=e.key,s=Math.abs(.5-e.key);r>o&&s<r?(n=a,r=s):o>=r&&s<o&&(i=a,o=s)}return n>i&&(o=n,n=i,i=o,o=r),r=i-n,Gs(zs(t.get(n),t.get(i),1-o/r))}return!1},d.Object.defineProperties(Ds.prototype,{type:{get:function(){return this.na},set:function(t){this._isFrozen&&S(this,t),this.na=t,this.start.Mc()&&(t===Qs?this.start=ee:t===Js&&(this.start=re)),this.end.Mc()&&(t===Qs?this.end=se:t===Js&&(this.end=re)),this.xe=null}},color:{get:function(){return this.xk},set:function(t){this._isFrozen&&S(this,t),this.xk=t,this.xe=null}},start:{get:function(){return this.Qd},set:function(t){this._isFrozen&&S(this,t),this.Qd=t.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(t){this._isFrozen&&S(this,t),this.Lk=t.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(t){this._isFrozen&&S(this,t),0>t&&P(t,">= zero",Ds,"startRadius"),this.Gr=t,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(t){this._isFrozen&&S(this,t),0>t&&P(t,">= zero",Ds,"endRadius"),this.Xp=t,this.xe=null}},colorStops:{get:function(){return this.we},set:function(t){this._isFrozen&&S(this,t),this.we=t,this.xe=null}},pattern:{get:function(){return this.cr},set:function(t){this._isFrozen&&S(this,t),this.cr=t,this.xe=null}}}),Ds.prototype.isDark=Ds.prototype.Gx,Ds.prototype.darkenBy=Ds.prototype.Wy,Ds.prototype.lightenBy=Ds.prototype.Vz,Ds.prototype.addColorStop=Ds.prototype.addColorStop;var Ks,Qs,Js,$s,tl,el,nl=216/24389,il=24389/27,rl=[95.047,100,108.883],ol=null,al=new Os,sl=new Os,ll=new Os,ul=new Os,cl=!1;function hl(){this.xa="Base"}function dl(){this.xa="Base"}function fl(){this.xa="Base"}function pl(){this.xa="Base"}function gl(){this.xa="Base"}function ml(t,e,n){var i=null;if(t instanceof Ml&&""!==t.$e&&((i=t.fb(t.$e))===t&&(i=null)),null!==i)for(n&&t.arrange(0,0,e.width,e.height),e.assign(i.actualBounds),i=i.panel;i!==t;)i.transform.pp(e),i=i.panel}function vl(){this.xa="Base"}function yl(){this.xa="Base",this.name="Table"}function wl(){this.xa="Base"}function bl(){this.xa="Base"}function xl(){this.xa="Base"}function Sl(){this.xa="Base"}function Pl(t,e,n,i){if(0>e)return t%e===n;if(t%e!==n)return!1;e=i.length;for(var r=0;r<e;r++)if(t%i[r]===n)return!1;return!0}function kl(){this.xa="Base"}function Cl(t,e,n,i){if(!1!==es(i)){var r=i.strokeWidth;0===r&&t instanceof Yc&&t.type===Ml.Link&&t.adornedObject instanceof pu&&(r=t.adornedObject.strokeWidth),r*=i.Ca,t instanceof xh&&null!==t.ua?(t=t.geometry.bounds,i.Ge(t.x-r/2,t.y-r/2,t.width+r,t.height+r)):t instanceof Yc&&null!==t.adornedPart.ua?(t=t.adornedPart.ua.bounds,i.Ge(t.x-r/2,t.y-r/2,t.width+r,t.height+r)):i.Ge(-r/2,-r/2,e+r,n+r),(r=i.desiredSize).w()||null===i.ua?i.dc.h(0,0,r.width,r.height):i.dc.assign(i.ua.bounds),ns(i,!1)}}function Al(){this.xa="Base"}function Ml(t,e){if(Ia.call(this),this.na=null,void 0===t)this.na=Ml.Position;else if("string"==typeof t){var n=ou.I(t);null!==n&&(this.na=n)}else t instanceof hl?this.na=t:t&&(this.na=Ml.Position,e=t);null===this.na&&x("Panel type not specified or PanelLayout not loaded: "+t),this.l=4194304|this.l|(this.na===Ml.Grid?1048576:0),this.O=new K,this.yb=Qt,this.Tm=ke,this.Uf=ma,this.$g=null,this.$e="",this.jg=new Bt(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=fa,this.jn=At,this.kn=nt,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,e&&Object.assign(this,e)}function El(t,e){e.lineCap="butt";var n=0<t.rowCount?t.rowDefs:null,i=0<t.columnCount?t.colDefs:null;null!==n&&Tl(t,e,!0,n,!0),null!==i&&Tl(t,e,!1,i,!0),null!==n&&Ll(t,e,!0,n),null!==i&&Ll(t,e,!1,i),null!==n&&Tl(t,e,!0,n,!1),null!==i&&Tl(t,e,!1,i,!1)}function Ll(t,e,n,i){for(var r=i.length,o=t.actualBounds,a=t.naturalBounds,s=!0,l=0;l<r;l++){var u=i[l];if(void 0!==u&&0!==u.actual)if(s)s=!1;else{if(n){if(u.position>a.height)continue}else if(u.position>a.width)continue;var c=u.separatorStrokeWidth;isNaN(c)&&(c=n?t.defaultRowSeparatorStrokeWidth:t.defaultColumnSeparatorStrokeWidth);var h=u.separatorStroke;if(null===h&&(h=n?t.defaultRowSeparatorStroke:t.defaultColumnSeparatorStroke),0!==c&&null!==h){Za(t,e,h,!1,!1,a,o),h=!1;var d=u.separatorDashArray;null===d&&(d=n?t.defaultRowSeparatorDashArray:t.defaultColumnSeparatorDashArray),null!==d&&(h=!0,e.js(d,0)),e.beginPath(),d=u.position+c,n?d>a.height&&(c-=d-a.height):d>a.width&&(c-=d-a.width),u=u.position+c/2,e.lineWidth=c,c=t.yb,n?(u+=c.top,d=a.width-c.right,e.moveTo(c.left,u),e.lineTo(d,u)):(u+=c.left,d=a.height-c.bottom,e.moveTo(u,c.top),e.lineTo(u,d)),e.stroke(),e.Se(),h&&e.fs()}}}}function Tl(t,e,n,i,r){for(var o=i.length,a=t.actualBounds,s=t.naturalBounds,l=Nl(t,!0),u=Nl(t,!1),c=0;c<o;c++){var h=i[c];if(void 0!==h&&null!==h.background&&h.coversSeparators!==r&&0!==h.actual){var d=n?a.height:a.width;if(!(h.position>d)){var f=h.Wc(),p=h.separatorStrokeWidth;isNaN(p)&&(p=n?t.defaultRowSeparatorStrokeWidth:t.defaultColumnSeparatorStrokeWidth);var g=h.separatorStroke;null===g&&(g=n?t.defaultRowSeparatorStroke:t.defaultColumnSeparatorStroke),null!==g&&h.index!==(n?l:u)||(p=0),f-=p,(p=h.position+p)+(f+=h.actual)>d&&(f=d-p),0>=f||(d=t.yb,Za(t,e,h.background,!0,!1,s,a),n?e.fillRect(d.left,p+d.top,a.width-(d.left+d.right),f):e.fillRect(p+d.left,d.top,f,a.height-(d.top+d.bottom)))}}}}function Nl(t,e){for(var n=e?t.rowCount:t.columnCount,i=0;i<n;i++){var r=e?t.rowDefs[i]:t.colDefs[i];if(void 0!==r)return r.index}return 0}function jl(t){return"LineV"===t||"BarV"===t}function Il(t){return null!==t.part?t.part.locationObject:null}function Bl(t,e){Ol(t,t,e)}function Ol(t,e,n){n(e);for(var i=(e=e.O.s).length,r=0;r<i;r++){var o=e[r];o instanceof Ml&&Ol(t,o,n)}}function Dl(t,e){Rl(t,t,e)}function Rl(t,e,n){if(n(e),e instanceof Ml)for(var i=(e=e.O.s).length,r=0;r<i;r++)Rl(t,e[r],n)}function Fl(t,e,n){if(n(e))return e;if(e instanceof Ml)for(var i=(e=e.O.s).length,r=0;r<i;r++){var o=Fl(t,e[r],n);if(null!==o)return o}return null}function zl(t){for(var e=(t=t.O.s).length,n=0,i=0;i<e;i++){var r=t[i];r instanceof Ml?n=Math.max(n,zl(r)):r instanceof pu&&(n=Math.max(n,r.ig/2*r.strokeMiterLimit*r.Df()))}return n}function Gl(t){return t.type===Ml.TableRow||t.type===Ml.TableColumn}function Ul(t,e,n,i){for(var r=t.O.s,o=r.length;o--;){var a=r[o];if(a.visible){var s=a.actualBounds,l=t.naturalBounds;s.x>l.width||s.y>l.height||0>s.x+s.width||0>s.y+s.height||(a instanceof Ml&&Ul(a,e,n,i),null!==e&&(a=e(a)),null===a||null!==n&&!n(a)||i.add(a))}}}function Hl(t){var e=null;return t instanceof pu&&((e=t.spot1)===ke&&(e=null),null!==(t=t.geometry)&&null===e&&(e=t.spot1)),null===e&&(e=te),e}function _l(t){var e=null;return t instanceof pu&&((e=t.spot2)===ke&&(e=null),null!==(t=t.geometry)&&null===e&&(e=t.spot2)),null===e&&(e=le),e}function Zl(t,e){t.l=e?16777216|t.l:-16777217&t.l}function Wl(t,e,n){var i=t.rowDefs;if(!(0>e)){if(i[e]=n instanceof lu?n:void 0,!n)for(e=i.length-1;0<=e&&void 0===i[e--];)i.length--;t.v()}}function Vl(t,e,n){var i=t.colDefs;if(!(0>e)){if(i[e]=n instanceof lu?n:void 0,!n)for(e=i.length-1;0<=e&&void 0===i[e--];)i.length--;t.v()}}function Yl(t){return null!==(t=t.allBindings)&&t._isFrozen}function Xl(t){var e=t.allBindings;if(null===e)null!==t.data&&x("Template cannot have .data be non-null: "+t),t.allBindings=e=new K;else if(e._isFrozen)return;var n=new K;Zl(t,!1),t.qm(t,(function(t,i){i.th();var r=i.localBindings;if(null!==r)for(Ja(i,!1),r=r.iterator;r.next();){var o=r.value;o.mode===Vf&&Ja(i,!0);var a=o.sourceName;null!==a&&("/"===a&&Zl(t,!0),null!==(a=_f(o,t,i))&&(n.add(a),null===a.srcBindings&&(a.srcBindings=new K),a.srcBindings.add(o))),e.add(o)}if(i instanceof Ml&&i.type===Ml.Table){if(0<i.rowCount)for(r=(t=i.rowDefs).length,o=0;o<r;o++)if(void 0!==(a=t[o])&&null!==a.be)for(var s=a.be.iterator;s.next();){var l=s.value;l.xd=a,l.to=2,l.wl=a.index,e.add(l)}if(0<i.columnCount)for(t=(i=i.colDefs).length,r=0;r<t;r++)if(void 0!==(o=i[r])&&null!==o.be)for(a=o.be.iterator;a.next();)(s=a.value).xd=o,s.to=1,s.wl=o.index,e.add(s)}}));for(var i=n.iterator;i.next();){var r=i.value;if(null!==r.srcBindings){Ja(r,!0);for(var o=r.srcBindings.iterator;o.next();){var a=o.value;null===r.localBindings&&(r.localBindings=new K),r.localBindings.add(a)}}r.srcBindings=null}for(i=e.iterator;i.next();)if(null!==(o=(r=i.value).xd)){r.xd=null;var s=r.targetProperty,l=s.indexOf(".");0<l&&o instanceof Ml&&(a=s.substring(0,l),s=s.substr(l+1),null!==(l=o.fb(a))?(o=l,r.targetProperty=s):k('Warning: unable to find GraphObject named "'+a+'" for Binding: '+r.toString())),o instanceof lu?(a=et(o.panel),r.Ai=void 0===a?-1:a,o.panel.bindingId=r.Ai):o instanceof Ia?(a=et(o),r.Ai=void 0===a?-1:a,o.bindingId=r.Ai):x("Unknown type of binding target: "+o)}e.freeze(),t instanceof Sc&&t.Zc()&&t.Va()}function ql(t){if(t.type===Ml.Spot||t.type===Ml.Auto)return Math.min(t.O.length,1);if(t.type===Ml.Link){for(var e=(t=t.O).length,n=0;n<e;n++){var i=t.M(n);if(!(i instanceof pu&&i.isPanelMain))break}return n}return t.type===Ml.Table&&0<t.O.length&&((t=t.O.M(0)).isPanelMain&&t instanceof Ml&&Gl(t))?1:0}function Kl(t,e){var n=ql(t);if(null===e||0===e.length)for(;t.O.length>n;)t.pc(t.O.length-1,!1);else if(t.O.length<=n){n=e.length;for(var i=0;i<n;i++)Ql(t,e[i],i,!0)}else{i=n;for(var r=0;r<e.length;r++,i++){var o=e[r],a=i<t.O.length?t.O.M(i):null;if(a instanceof Ml){if(a.data!==o){var s=$l(t,a.data),l=$l(t,o),u=l!==s;u||(s=tu(t,s),u=tu(t,l)!==s),u?(t.pc(i,!1),Ql(t,o,r,!1)):a.data=o}}else Ql(t,o,r,!1)}for(;i<t.O.length;)t.pc(i,!1);t.$g=null,Jl(t,n,0),es(t)||t.v(),t.graduatedIntervals=null,t.If()||eu(t,t,!1),null!==(e=t.part)&&(e.Rh=null,e.ag=NaN,t.Te&&e instanceof qc&&(e.Te=!0),e.Te&&e instanceof qc&&(e.wc=null))}}function Ql(t,e,n,i){if(!(null==e||0>n)){var r=$l(t,e);if(null!==(r=tu(t,r))){if(Xl(r),0!=(16777216&(r=r.copy()).l)){var o=t.ih();null!==o&&Zl(o,!0)}"object"==typeof e&&(null===t.ge&&(t.ge=new ft),t.ge.add(e,r)),o=n+ql(t),t.Gb(o,r),i&&(r.ub=e,Jl(t,o,n),r.ub=null),r.data=e}}}function Jl(t,e,n){for(t=t.O;e<t.length;){var i=t.M(e);if(i instanceof Ml){var r=e,o=n;i.type===Ml.TableRow?i.row=r:i.type===Ml.TableColumn&&(i.column=r),i.itemIndex=o}e++,n++}}function $l(t,e){if(null===e)return"";if("function"==typeof(t=t.itemCategoryProperty))t=t(e);else{if("string"!=typeof t||"object"!=typeof e)return"";if(""===t)return"";t=Ff(e,t)}return void 0===t?"":"string"==typeof t?t:void x("Panel.getCategoryForItemData found a non-string category for "+e+": "+t)}function tu(t,e){var n=t.itemTemplateMap,i=null;return null!==n&&(i=n.I(e)),null===i&&(null!==n&&(i=n.I("")),null===i&&(iu||(iu=!0,k('No item template Panel found for category "'+e+'" on '+t),k(" Using default item template."),t=new Ml,(e=new Au).bind(new Hf("text","",I)),t.add(e),ru=t),i=ru)),i}function eu(t,e,n){var i=e.enabledChanged;if(null!==i&&i(e,n),e instanceof Ml){i=(e=e.O.s).length;for(var r=0;r<i;r++){var o=e[r];n&&o instanceof Ml&&!o.isEnabled||eu(t,o,n)}}}function nu(t,e){e.name=t,ou.add(t,e)}Ds.className="Brush",Ds.Solid=Ks=new G(Ds,"Solid",0),Ds.Linear=Qs=new G(Ds,"Linear",1),Ds.Radial=Js=new G(Ds,"Radial",2),Ds.Pattern=$s=new G(Ds,"Pattern",4),Ds.Lab=tl=new G(Ds,"Lab",5),Ds.HSL=el=new G(Ds,"HSL",6),Ds.randomColor=function(t,e){void 0===t&&(t=128),void 0===e&&(e=Math.max(t,255));var n=Math.abs(e-t);e=Math.floor(t+Math.random()*n).toString(16);var i=Math.floor(t+Math.random()*n).toString(16);return t=Math.floor(t+Math.random()*n).toString(16),2>e.length&&(e="0"+e),2>i.length&&(i="0"+i),2>t.length&&(t="0"+t),"#"+e+i+t},Ds.isValidColor=function(t){if("black"===t)return!0;if(""===t)return!1;cl||(qs(),cl=!0);var e=ol;if(null===e)return!0;e.fillStyle="#000000";var n=e.fillStyle;return e.fillStyle=t,e.fillStyle!==n||(e.fillStyle="#FFFFFF",n=e.fillStyle,e.fillStyle=t,e.fillStyle!==n)},Ds.lighten=function(t){return Rs(t)},Ds.lightenBy=Rs,Ds.darken=function(t){return Fs(t)},Ds.darkenBy=Fs,Ds.mix=zs,Ds.isDark=Gs,hl.prototype.measure=function(){},hl.prototype.Yz=function(t,e,n,i,r){t.measure(e,n,i,r)},hl.prototype.arrange=function(){},hl.prototype.Ly=function(t,e,n,i,r,o){t.arrange(e,n,i,r,o)},hl.prototype.iA=function(t){t.Uj()},hl.prototype.gc=function(){},d.Object.defineProperties(hl.prototype,{name:{get:function(){return this.xa},set:function(t){this.xa=t}},classType:{get:function(){return Ml}}}),hl.prototype.remeasureObject=hl.prototype.iA,hl.prototype.arrangeElement=hl.prototype.Ly,hl.prototype.measureElement=hl.prototype.Yz,hl.className="PanelLayout",h(dl,hl),dl.prototype.measure=function(t,e,n,i,r,o,a){var s=i.length;t=Il(t);for(var l=0;l<s;l++){var u=i[l];if(u.visible||u===t){var c=u.margin,h=c.right+c.left;c=c.top+c.bottom,u.measure(e,n,o,a);var d=u.measuredBounds;h=Math.max(d.width+h,0),c=Math.max(d.height+c,0),d=u.position.x;var f=u.position.y;isFinite(d)||(d=0),isFinite(f)||(f=0),u instanceof pu&&u.isGeometryPositioned&&(d-=u=u.strokeWidth/2,f-=u),Ht(r,d,f,h,c)}}},dl.prototype.arrange=function(t,e,n){var i=e.length,r=t.padding;for(t=n.x-r.left,n=n.y-r.top,r=0;r<i;r++){var o=e[r],a=o.measuredBounds,s=o.margin,l=o.position.x,u=o.position.y;if(l=isNaN(l)?-t:l-t,u=isNaN(u)?-n:u-n,o instanceof pu&&o.isGeometryPositioned){var c=o.strokeWidth/2;l-=c,u-=c}o.visible&&o.arrange(l+s.left,u+s.top,a.width,a.height)}},h(fl,hl),fl.prototype.measure=function(t,e,n,i,r,o,a){var s=i.length;e=T(),o=Il(t);for(var l=0;l<s;l++){var u=i[l];if(u.visible||u===o){var c=Ya(u,!1);if(c!==da&&c!==pa)e.push(u);else{u.measure(1/0,n,0,a),c=u.margin,u=u.measuredBounds;var h=Math.max(u.height+c.top+c.bottom,0);r.width+=Math.max(u.width+c.right+c.left,0),r.height=Math.max(r.height,h)}}}for(i=e.length,t.desiredSize.height?n=Math.min(t.desiredSize.height,t.maxSize.height):0!==r.height&&(n=Math.min(r.height,t.maxSize.height)),t=0;t<i;t++)((l=e[t]).visible||l===o)&&(s=(c=l.margin).right+c.left,c=c.top+c.bottom,l.measure(1/0,n,0,a),l=l.measuredBounds,c=Math.max(l.height+c,0),r.width+=Math.max(l.width+s,0),r.height=Math.max(r.height,c));N(e)},fl.prototype.arrange=function(t,e,n){for(var i=e.length,r=t.padding,o=r.top,a=t.isOpposite,s=a?n.width:r.left,l=0;l<i;l++){var u=o,c=e[l];if(c.visible){var h=c.measuredBounds,d=c.margin,f=d.top+d.bottom,p=o+r.bottom,g=h.height,m=Ya(c,!1);(isNaN(c.desiredSize.height)&&m===ha||m===ga)&&(g=Math.max(n.height-f-p,0)),f=g+f+p,(p=c.alignment).Xb()&&(p=t.defaultAlignment),p.sb()||(p=re),a&&(s-=h.width+d.left+d.right),c.arrange(s+p.offsetX+d.left,u+p.offsetY+d.top+(n.height*p.y-f*p.y),h.width,g),a||(s+=h.width+d.left+d.right)}}},h(pl,hl),pl.prototype.measure=function(t,e,n,i,r,o){var a=i.length;n=T();for(var s=Il(t),l=0;l<a;l++){var u=i[l];if(u.visible||u===s){var c=Ya(u,!1);if(c!==da&&c!==ga)n.push(u);else{var h=u.margin;c=h.right+h.left,h=h.top+h.bottom,u.measure(e,1/0,o,0),u=u.measuredBounds,Ot(r,Math.max(r.width,Math.max(u.width+c,0)),r.height+Math.max(u.height+h,0))}}}if(0!==(i=n.length)){for(t.desiredSize.width?e=Math.min(t.desiredSize.width,t.maxSize.width):0!==r.width&&(e=Math.min(r.width,t.maxSize.width)),t=0;t<i;t++)((l=n[t]).visible||l===s)&&(a=(u=l.margin).right+u.left,u=u.top+u.bottom,l.measure(e,1/0,o,0),l=l.measuredBounds,u=Math.max(l.height+u,0),r.width=Math.max(r.width,Math.max(l.width+a,0)),r.height+=u);N(n)}},pl.prototype.arrange=function(t,e,n){for(var i=e.length,r=t.padding,o=r.left,a=t.isOpposite,s=a?n.height:r.top,l=0;l<i;l++){var u=o,c=e[l];if(c.visible){var h=c.measuredBounds,d=c.margin,f=d.left+d.right,p=o+r.right,g=h.width,m=Ya(c,!1);(isNaN(c.desiredSize.width)&&m===ha||m===pa)&&(g=Math.max(n.width-f-p,0)),f=g+f+p,(p=c.alignment).Xb()&&(p=t.defaultAlignment),p.sb()||(p=re),a&&(s-=h.height+d.bottom+d.top),c.arrange(u+p.offsetX+d.left+(n.width*p.x-f*p.x),s+p.offsetY+d.top,g,h.height),a||(s+=h.height+d.bottom+d.top)}}},h(gl,hl),gl.prototype.measure=function(t,e,n,i,r,o,a){var s=i.length,l=t.Pb(),u=l.margin,c=u.right+u.left,h=u.top+u.bottom;l.measure(e,n,o,a);var d=l.measuredBounds;o=d.width,a=d.height;var f=Math.max(o+c,0),p=Math.max(a+h,0),g=t.isClipping,m=Bt.allocAt(-u.left,-u.top,f,p),v=Bt.allocAt(0,0,o,a);ml(l,v,!0),o=v.width,a=v.height;for(var y=!0,w=Il(t),b=0;b<s;b++){var x=i[b];d=e;var S=n;if(x!==l&&(x.visible||x===w)){var P=(u=x.margin).left,k=u.top;switch(f=u.right+u.left,p=u.top+u.bottom,u=Ya(x,!1)){case ha:d=o,S=a,k=P=p=f=0;break;case pa:d=o,P=f=0;break;case ga:S=a,k=p=0}x.measure(d,S,0,0),d=x.measuredBounds,f=Math.max(d.width+f,0),p=Math.max(d.height+p,0),(u=x.alignment).Xb()&&(u=t.defaultAlignment),u.sb()||(u=re);var C=x.alignmentFocus;if(C.Xb()&&(C=re),S=null,x instanceof Ml&&""!==x.$e&&((S=x.fb(x.$e))===x&&(S=null)),P=v.x-P,k=v.y-k,null!==S){for(x.arrange(0,0,d.width,d.height),d=S.actualBounds,d=pt.allocAt(d.x+(C.x*d.width-C.offsetX),d.y+(C.y*d.height-C.offsetY)),S=S.panel;S!==x;)S.transform.Ga(d),S=S.panel;P+=u.x*o+u.offsetX-d.x,k+=u.y*a+u.offsetY-d.y,pt.free(d)}else P+=u.x*o+u.offsetX-(C.x*d.width+C.offsetX),k+=u.y*a+u.offsetY-(C.y*d.height+C.offsetY);y?(y=!1,r.h(P,k,f,p)):Ht(r,P,k,f,p)}}switch(y?r.assign(m):g?r.Uu(v.x,v.y,v.width,v.height):Ht(r,m.x,m.y,m.width,m.height),Bt.free(m),Bt.free(v),(u=l.stretch)===ma&&(u=Ya(l,!1)),u){case da:return;case ha:if(!isFinite(e)&&!isFinite(n))return;break;case pa:if(!isFinite(e))return;break;case ga:if(!isFinite(n))return}for(o=(d=l.measuredBounds).width,a=d.height,f=Math.max(o+c,0),p=Math.max(a+h,0),u=l.margin,ml(l,v=Bt.allocAt(-u.left,-u.top,f,p),!0),o=v.width,a=v.height,e=0;e<s;e++)(n=i[e])===l||!n.visible&&n!==w||(f=(u=n.margin).right+u.left,p=u.top+u.bottom,d=n.measuredBounds,f=Math.max(d.width+f,0),p=Math.max(d.height+p,0),(c=n.alignment).Xb()&&(c=t.defaultAlignment),c.sb()||(c=re),(n=n.alignmentFocus).Xb()&&(n=re),y?(y=!1,r.h(c.x*o+c.offsetX-(n.x*d.width+n.offsetX)-u.left,c.y*a+c.offsetY-(n.y*d.height+n.offsetY)-u.top,f,p)):Ht(r,c.x*o+c.offsetX-(n.x*d.width+n.offsetX)-u.left,c.y*a+c.offsetY-(n.y*d.height+n.offsetY)-u.top,f,p));y?r.assign(m):g?r.Uu(v.x,v.y,v.width,v.height):Ht(r,m.x,m.y,m.width,m.height),Bt.free(v)},gl.prototype.arrange=function(t,e,n){var i=e.length,r=t.Pb(),o=r.measuredBounds,a=o.width,s=o.height,l=t.padding;o=l.left,l=l.top;var u=o-n.x,c=l-n.y;for(r.arrange(u,c,a,s),ml(r,a=Bt.allocAt(0,0,a,s),!1),s=0;s<i;s++){var h=e[s];if(h!==r){var d=(u=h.measuredBounds).width,f=u.height;(c=h.alignment).Xb()&&(c=t.defaultAlignment),c.sb()||(c=re);var p=h.alignmentFocus;if(p.Xb()&&(p=re),u=null,h instanceof Ml&&""!==h.$e&&((u=h.fb(h.$e))===h&&(u=null)),null!==u){var g=u.actualBounds;for(p=pt.allocAt(g.x+(p.x*g.width-p.offsetX),g.y+(p.y*g.height-p.offsetY)),u=u.panel;u!==h;)u.transform.Ga(p),u=u.panel;u=c.x*a.width+c.offsetX-p.x,c=c.y*a.height+c.offsetY-p.y,pt.free(p)}else u=c.x*a.width+c.offsetX-(p.x*d+p.offsetX),c=c.y*a.height+c.offsetY-(p.y*f+p.offsetY);u+=a.x-n.x,c+=a.y-n.y,h.visible&&h.arrange(o+u,l+c,d,f)}}Bt.free(a)},h(vl,hl),vl.prototype.measure=function(t,e,n,i,r,o,a){var s=i.length,l=t.Pb(),u=l.margin,c=e,h=n,d=u.right+u.left,f=u.top+u.bottom;l.measure(e,n,o,a),u=l.measuredBounds;var p=0,g=null;l instanceof pu&&(p=(g=l).strokeWidth*g.scale);var m=Math.max(u.width+d,0);u=Math.max(u.height+f,0);var v=Hl(l),y=v.x*m+v.offsetX;v=v.y*u+v.offsetY;var w=_l(l),b=w.x*m+w.offsetX;for(w=w.y*u+w.offsetY,isFinite(e)&&(c=Math.max(Math.abs(y-b)-p,0)),isFinite(n)&&(h=Math.max(Math.abs(v-w)-p,0)),(p=Tt.alloc()).h(0,0),t=Il(t),w=0;w<s;w++)(v=i[w])===l||!v.visible&&v!==t||(m=(u=v.margin).right+u.left,y=u.top+u.bottom,v.measure(c,h,0,0),u=v.measuredBounds,m=Math.max(u.width+m,0),u=Math.max(u.height+y,0),p.h(Math.max(m,p.width),Math.max(u,p.height)));if(1===s)r.width=m,r.height=u,Tt.free(p);else{switch(v=Hl(l),s=i=0,(w=_l(l)).x!==v.x&&w.y!==v.y&&(i=p.width/Math.abs(w.x-v.x),s=p.height/Math.abs(w.y-v.y)),Tt.free(p),p=0,null!==g&&(p=g.strokeWidth*g.scale,vu(g)===fa&&(i=s=Math.max(i,s))),i+=Math.abs(v.offsetX)+Math.abs(w.offsetX)+p,s+=Math.abs(v.offsetY)+Math.abs(w.offsetY)+p,(g=l.stretch)===ma&&(g=Ya(l,!1)),g){case da:a=o=0;break;case ha:isFinite(e)&&(i=e),isFinite(n)&&(s=n);break;case pa:isFinite(e)&&(i=e),a=0;break;case ga:o=0,isFinite(n)&&(s=n)}l.Uj(),l.measure(i,s,o,a),r.width=l.measuredBounds.width+d,r.height=l.measuredBounds.height+f}},vl.prototype.arrange=function(t,e){var n=e.length,i=t.Pb(),r=i.measuredBounds,o=Bt.alloc();o.h(0,0,1,1);var a=i.margin,s=a.left;a=a.top;var l=t.padding,u=l.left;l=l.top,i.arrange(u+s,l+a,r.width,r.height);var c=Hl(i),h=_l(i),d=c.y*r.height+c.offsetY,f=h.x*r.width+h.offsetX;for(h=h.y*r.height+h.offsetY,o.x=c.x*r.width+c.offsetX,o.y=d,Ht(o,f,h,0,0),o.x+=s+u,o.y+=a+l,r=0;r<n;r++)(s=e[r])!==i&&(u=s.measuredBounds,a=s.margin,l=Math.max(u.width+a.right+a.left,0),c=Math.max(u.height+a.top+a.bottom,0),(d=s.alignment).Xb()&&(d=t.defaultAlignment),d.sb()||(d=re),l=o.width*d.x+d.offsetX-l*d.x+a.left+o.x,a=o.height*d.y+d.offsetY-c*d.y+a.top+o.y,s.visible&&(_t(o.x,o.y,o.width,o.height,l,a,u.width,u.height)?s.arrange(l,a,u.width,u.height):s.arrange(l,a,u.width,u.height,new Bt(o.x,o.y,o.width,o.height))));Bt.free(o)},h(yl,hl),yl.prototype.measure=function(t,e,n,i,r){for(var o=i.length,a=T(),s=T(),l=0;l<o;l++){var u=i[l],c=u instanceof Ml?u:null;if(null!==c&&Gl(c)&&u.visible){s.push(c);for(var h=c.O.s,d=h.length,f=0;f<d;f++){var p=h[f];c.type===Ml.TableRow?p.row=u.row:c.type===Ml.TableColumn&&(p.column=u.column),a.push(p)}}else a.push(u)}0===(o=a.length)&&(t.Fb(0),t.Eb(0));for(var g=[],m=0;m<o;m++){var v=a[m];v.visible&&(ns(v,!0),rs(v,!0),g[v.row]||(g[v.row]=[]),g[v.row][v.column]||(g[v.row][v.column]=[]),g[v.row][v.column].push(v))}N(a);var y=T(),w=T(),b=T(),x={count:0},S={count:0},P=e,k=n,C=t.rowDefs,A=t.colDefs,M=null;o=C.length;for(var E=0;E<o;E++)void 0!==(M=C[E])&&(M.actual=0);o=A.length;for(var L=0;L<o;L++)void 0!==(M=A[L])&&(M.actual=0);for(var j=g.length,I=0,B=0;B<j;B++)g[B]&&(I=Math.max(I,g[B].length));var O=Math.min(t.topIndex,j-1),D=Math.min(t.leftIndex,I-1),R=0;j=g.length;for(var F=Il(t),z=0;z<j;z++)if(g[z]){I=g[z].length;var G=t.Fb(z);G.actual=0;for(var U=G.oc=0;U<I;U++)if(g[z][U]){var H=t.Eb(U);void 0===y[U]&&(H.actual=0,H.oc=0,y[U]=!0);for(var _=g[z][U],Z=_.length,W=0;W<Z;W++){var V=_[W];if(V.visible||V===F){var Y=1<V.rowSpan||1<V.columnSpan;Y&&(z<O||U<D||w.push(V));var X=V.margin,q=X.right+X.left,K=X.top+X.bottom,Q=Xa(V,G,H,!1),J=V.desiredSize,$=!isNaN(J.height),tt=!isNaN(J.width)&&$;if(Y||Q===da||tt||z<O||U<D||(void 0!==x[U]||Q!==ha&&Q!==pa||(x[U]=-1,x.count++),void 0!==S[z]||Q!==ha&&Q!==ga||(S[z]=-1,S.count++),b.push(V)),V.measure(1/0,1/0,0,0),!(z<O||U<D)){var et=V.measuredBounds,nt=Math.max(et.width+q,0),it=Math.max(et.height+K,0);if(1===V.rowSpan&&(Q===da||Q===pa)){var rt=(M=t.Fb(z)).Wc();(R=Math.max(it-M.actual,0))+rt>k&&(R=Math.max(k-rt,0));var ot=0===M.oa;M.oc=M.oc+R,M.actual=M.oa+R,k=Math.max(k-(R+(ot?rt:0)),0)}if(1===V.columnSpan&&(Q===da||Q===ga)){var at=(M=t.Eb(U)).Wc();(R=Math.max(nt-M.actual,0))+at>P&&(R=Math.max(P-at,0));var st=0===M.oa;M.oc=M.oc+R,M.actual=M.oa+R,P=Math.max(P-(R+(st?at:0)),0)}Y&&V.Uj()}}}}}N(y);var lt=0,ut=0;o=t.columnCount;for(var ct=0;ct<o;ct++){var ht=A[ct];void 0!==ht&&(lt+=isNaN(ht.Hc)?ht.oc:ht.Hc,0!==ht.oc&&(lt+=ht.Wc()))}o=t.rowCount;for(var dt=0;dt<o;dt++){var ft=C[dt];void 0!==ft&&(ut+=isNaN(ft.Hc)?ft.oc:ft.Hc,0!==ft.oc&&(ut+=ft.Wc()))}P=Math.max(e-lt,0);var pt=k=Math.max(n-ut,0),gt=P;o=b.length;for(var mt=0;mt<o;mt++){var vt=b[mt],yt=t.Fb(vt.row),wt=t.Eb(vt.column),bt=vt.measuredBounds,xt=vt.margin,St=xt.right+xt.left,Pt=xt.top+xt.bottom;x[vt.column]=0===wt.oc&&void 0!==x[vt.column]?Math.max(bt.width+St,x[vt.column]):null,S[vt.row]=0===yt.oc&&void 0!==S[vt.row]?Math.max(bt.height+Pt,S[vt.row]):null}var kt,Ct=0,At=0;for(kt in S)"count"!==kt&&(Ct+=S[kt]);for(kt in x)"count"!==kt&&(At+=x[kt]);for(var Mt=Tt.alloc(),Et=0;Et<o;Et++){var Lt=b[Et];if(Lt.visible||Lt===F){var Nt=t.Fb(Lt.row),jt=t.Eb(Lt.column),It=0;isFinite(jt.width)?It=jt.width:(It=isFinite(P)&&null!==x[Lt.column]?0===At?jt.actual+P:x[Lt.column]/At*gt:null!==x[Lt.column]?P:jt.actual||P,It=Math.max(0,It-jt.Wc()));var Bt=0;switch(isFinite(Nt.height)?Bt=Nt.height:(Bt=isFinite(k)&&null!==S[Lt.row]?0===Ct?Nt.actual+k:S[Lt.row]/Ct*pt:null!==S[Lt.row]?k:Nt.actual||k,Bt=Math.max(0,Bt-Nt.Wc())),Mt.h(Math.max(jt.minimum,Math.min(It,jt.maximum)),Math.max(Nt.minimum,Math.min(Bt,Nt.maximum))),Q=Xa(Lt,Nt,jt,!1)){case pa:Mt.height=Math.max(Mt.height,Nt.actual+k);break;case ga:Mt.width=Math.max(Mt.width,jt.actual+P)}var Ot=Lt.margin,Dt=Ot.right+Ot.left,Rt=Ot.top+Ot.bottom;Lt.Uj(),Lt.measure(Mt.width,Mt.height,jt.minimum,Nt.minimum);var Ft=Lt.measuredBounds,zt=Math.max(Ft.width+Dt,0),Gt=Math.max(Ft.height+Rt,0);isFinite(P)&&(zt=Math.min(zt,Mt.width)),isFinite(k)&&(Gt=Math.min(Gt,Mt.height));var Ut=0;Ut=Nt.actual,Nt.actual=Math.max(Nt.actual,Gt),Nt.oc=Math.max(Nt.oc,Gt),R=Nt.actual-Ut,k=Math.max(k-R,0),null===S[Lt.row]&&(pt=Math.max(pt-R,0)),Ut=jt.actual,jt.actual=Math.max(jt.actual,zt),jt.oc=Math.max(jt.oc,zt),R=jt.actual-Ut,P=Math.max(P-R,0),null===x[Lt.column]&&(gt=Math.max(gt-R,0))}}N(b);var Ht=Tt.alloc(),_t=T(),Zt=T();if(0!==(o=w.length))for(var Wt=0;Wt<j;Wt++)if(g[Wt]){I=g[Wt].length;var Vt=t.Fb(Wt);_t[Wt]=Vt.actual;for(var Yt=0;Yt<I;Yt++)if(g[Wt][Yt]){var Xt=t.Eb(Yt);Zt[Yt]=Xt.actual}}for(var qt=0;qt<o;qt++){var Kt=w[qt];if(Kt.visible||Kt===F){var Qt=t.Fb(Kt.row),Jt=t.Eb(Kt.column);switch(Mt.h(Math.max(Jt.minimum,Math.min(e,Jt.maximum)),Math.max(Qt.minimum,Math.min(n,Qt.maximum))),Q=Xa(Kt,Qt,Jt,!1)){case ha:0!==Zt[Jt.index]&&(Mt.width=Math.min(Mt.width,Zt[Jt.index])),0!==_t[Qt.index]&&(Mt.height=Math.min(Mt.height,_t[Qt.index]));break;case pa:0!==Zt[Jt.index]&&(Mt.width=Math.min(Mt.width,Zt[Jt.index]));break;case ga:0!==_t[Qt.index]&&(Mt.height=Math.min(Mt.height,_t[Qt.index]))}isFinite(Jt.width)&&(Mt.width=Jt.width),isFinite(Qt.height)&&(Mt.height=Qt.height),Ht.h(0,0);for(var $t=Jt.minimum,te=Qt.minimum,ee=1;ee<Kt.rowSpan&&!(Kt.row+ee>=t.rowCount);ee++)M=t.Fb(Kt.row+ee),R=0,R=Q===ha||Q===ga?Math.max(M.minimum,0===_t[Kt.row+ee]?M.maximum:Math.min(_t[Kt.row+ee],M.maximum)):Math.max(M.minimum,isNaN(M.Hc)?M.maximum:Math.min(M.Hc,M.maximum)),Ht.height+=R,te+=M.minimum;for(var ne=1;ne<Kt.columnSpan&&!(Kt.column+ne>=t.columnCount);ne++)M=t.Eb(Kt.column+ne),R=0,R=Q===ha||Q===pa?Math.max(M.minimum,0===Zt[Kt.column+ne]?M.maximum:Math.min(Zt[Kt.column+ne],M.maximum)):Math.max(M.minimum,isNaN(M.Hc)?M.maximum:Math.min(M.Hc,M.maximum)),Ht.width+=R,$t+=M.minimum;Mt.width+=Ht.width,Mt.height+=Ht.height;var ie=Kt.margin,re=ie.right+ie.left,oe=ie.top+ie.bottom;Kt.measure(Mt.width,Mt.height,$t,te);for(var ae=Kt.measuredBounds,se=Math.max(ae.width+re,0),le=Math.max(ae.height+oe,0),ue=0,ce=0;ce<Kt.rowSpan&&!(Kt.row+ce>=t.rowCount);ce++)ue+=(M=t.Fb(Kt.row+ce)).total||0;if(ue<le){var he=le-ue,de=le-ue;if(null!==Kt.spanAllocation)for(var fe=Kt.spanAllocation,pe=0;pe<Kt.rowSpan&&!(0>=he)&&!(Kt.row+pe>=t.rowCount);pe++){var ge=(M=t.Fb(Kt.row+pe)).oa||0,me=fe(Kt,M,de);M.actual=Math.min(M.maximum,ge+me),M.oa!==ge&&(he-=M.oa-ge)}for(;0<he;){var ve=M.oa||0;if(isNaN(M.height)&&M.maximum>ve&&(M.actual=Math.min(M.maximum,ve+he),M.oa!==ve&&(he-=M.oa-ve)),0===M.index)break;M=t.Fb(M.index-1)}}for(var ye=0,we=0;we<Kt.columnSpan&&!(Kt.column+we>=t.columnCount);we++)ye+=(M=t.Eb(Kt.column+we)).total||0;if(ye<se){var be=se-ye,xe=se-ye;if(null!==Kt.spanAllocation)for(var Se=Kt.spanAllocation,Pe=0;Pe<Kt.columnSpan&&!(0>=be)&&!(Kt.column+Pe>=t.columnCount);Pe++){var ke=(M=t.Eb(Kt.column+Pe)).oa||0,Ce=Se(Kt,M,xe);M.actual=Math.min(M.maximum,ke+Ce),M.oa!==ke&&(be-=M.oa-ke)}for(;0<be;){var Ae=M.oa||0;if(isNaN(M.width)&&M.maximum>Ae&&(M.actual=Math.min(M.maximum,Ae+be),M.oa!==Ae&&(be-=M.oa-Ae)),0===M.index)break;M=t.Eb(M.index-1)}}}}N(w),Tt.free(Ht),Tt.free(Mt),void 0!==_t&&N(_t),void 0!==Zt&&N(Zt);var Me=0,Ee=0,Le=t.desiredSize,Te=t.maxSize;Q=Ya(t,!0);var Ne=ut=lt=0,je=0;o=t.columnCount;for(var Ie=0;Ie<o;Ie++)void 0!==A[Ie]&&(M=t.Eb(Ie),isFinite(M.width)?(Ne+=M.width,Ne+=M.Wc()):cu(M)===du?(Ne+=M.oa,Ne+=M.Wc()):0!==M.oa&&(lt+=M.oa,lt+=M.Wc()));Me=isFinite(Le.width)?Math.min(Le.width,Te.width):Q!==da&&isFinite(e)?e:lt,Me=Math.max(Me,t.minSize.width),Me=Math.max(Me-Ne,0);for(var Be=0===lt?1:Math.max(Me/lt,1),Oe=0;Oe<o;Oe++)void 0!==A[Oe]&&(M=t.Eb(Oe),isFinite(M.width)||cu(M)===du||(M.actual=M.oa*Be),M.position=r.width,0!==M.oa&&(r.width+=M.oa,r.width+=M.Wc()));o=t.rowCount;for(var De=0;De<o;De++)void 0!==C[De]&&(M=t.Fb(De),isFinite(M.height)?(je+=M.height,je+=M.Wc()):cu(M)===du?(je+=M.oa,je+=M.Wc()):0!==M.oa&&(ut+=M.oa,ut+=M.Wc()));Ee=isFinite(Le.height)?Math.min(Le.height,Te.height):Q!==da&&isFinite(n)?n:ut,Ee=Math.max(Ee,t.minSize.height),Ee=Math.max(Ee-je,0);for(var Re=0===ut?1:Math.max(Ee/ut,1),Fe=0;Fe<o;Fe++)void 0!==C[Fe]&&(M=t.Fb(Fe),isFinite(M.height)||cu(M)===du||(M.actual=M.oa*Re),M.position=r.height,0!==M.oa&&(r.height+=M.oa,r.height+=M.Wc()));o=s.length;for(var ze=0;ze<o;ze++){var Ge=s[ze],Ue=0,He=0;Ge.type===Ml.TableRow?(Ue=r.width,He=(M=t.Fb(Ge.row)).actual):(Ue=(M=t.Eb(Ge.column)).actual,He=r.height),Ge.measuredBounds.h(0,0,Ue,He),ns(Ge,!1)}N(s),t.inRowsCols=g},yl.prototype.arrange=function(t,e,n){var i=e.length,r=t.padding,o=r.left;r=r.top;var a=t.inRowsCols;if(null!==a){for(var s,l,u=a.length,c=0,h=0;h<u;h++)a[h]&&(c=Math.max(c,a[h].length));l=t.rowDefs,s=t.colDefs;var d=h=0,f=Math.min(t.topIndex,u-1);if(0<l.length){for(;f!==u&&(void 0===l[f]||0===l[f].oa);)f++;h=-l[f=Math.max(Math.min(f,u-1),0)].position}var p=Math.min(t.leftIndex,c-1);if(0<s.length){for(;p!==c&&(void 0===s[p]||0===s[p].oa);)p++;d=-s[p=Math.max(Math.min(p,c-1),0)].position}for(var g=0,m=0;g!==u&&void 0===l[g];)g++;for(;m!==u&&void 0===s[m];)m++;c=t.part,t.Fb(g),t.Eb(m);for(var v=0;v<e.length;v++){var y=e[v];if(y instanceof Ml&&y.visible&&Gl(y)){if(y.type===Ml.TableRow){s=t.Fb(y.row);var w=t.Eb(m)}else s=t.Fb(g),w=t.Eb(y.column);l=s.position+h+r,0!==s.oa&&(l+=s.Io(Math.max(g,f))),s=w.position+d+o,0!==w.oa&&(s+=w.Io(Math.max(m,p))),w=y.measuredBounds,y.Uk(),y.actualBounds.ka();var b=y.actualBounds,x=Bt.allocAt(b.x,b.y,b.width,b.height);b.x=y.type===Ml.TableRow?o:s,b.y=y.type===Ml.TableColumn?r:l,b.width=w.width,b.height=w.height,y.actualBounds.freeze(),rs(y,!1),Ft(x,b)||null===c||(c.oh(),y.Pn(c)),Bt.free(x)}}for(v=Tt.alloc(),y=0;y<u;y++)if(a[y])for(c=a[y].length,l=(w=t.Fb(y)).position+h+r,0!==w.oa&&(l+=w.Io(Math.max(g,f))),b=0;b<c;b++)if(a[y][b]){s=(x=t.Eb(b)).position+d+o,0!==x.oa&&(s+=x.Io(Math.max(m,p)));for(var S=a[y][b],P=S.length,k=0;k<P;k++){var C=S[k],A=C.measuredBounds;v.h(0,0);for(var M=1;M<C.rowSpan&&!(y+M>=t.rowCount);M++){var E=t.Fb(y+M);0!==E.oa&&(v.height+=E.total)}for(M=1;M<C.columnSpan&&!(b+M>=t.columnCount);M++)0!==(E=t.Eb(b+M)).oa&&(v.width+=E.total);var L=x.oa+v.width,T=w.oa+v.height;M=s,E=l;var N=L,j=T,I=s,B=l,O=L,D=T;s+L>n.width&&(O=Math.max(n.width-s,0)),l+T>n.height&&(D=Math.max(n.height-l,0));var R=C.alignment;if(R.Xb()){(R=t.defaultAlignment).sb()||(R=re);var F=R.x,z=R.y,G=R.offsetX;R=R.offsetY;var U=x.alignment,H=w.alignment;U.sb()&&(F=U.x,G=U.offsetX),H.sb()&&(z=H.y,R=H.offsetY)}else F=R.x,z=R.y,G=R.offsetX,R=R.offsetY;(isNaN(F)||isNaN(z))&&(z=F=.5,R=G=0),U=A.width,H=A.height;var _=C.margin,Z=_.left+_.right,W=_.top+_.bottom,V=Xa(C,w,x,!1);!isNaN(C.desiredSize.width)||V!==ha&&V!==pa||(U=Math.max(L-Z,0)),!isNaN(C.desiredSize.height)||V!==ha&&V!==ga||(H=Math.max(T-W,0)),L=C.maxSize,T=C.minSize,U=Math.min(L.width,U),H=Math.min(L.height,H),U=Math.max(T.width,U),L=(H=Math.max(T.height,H))+W,M+=N*F-(U+Z)*F+G+_.left,E+=j*z-L*z+R+_.top,C.visible&&(_t(I,B,O,D,M,E,A.width,A.height)?C.arrange(M,E,U,H):C.arrange(M,E,U,H,new Bt(I,B,O,D)))}}for(Tt.free(v),t=0;t<i;t++)null!==(o=(n=e[t])instanceof Ml?n:null)&&Gl(o)&&(o=n.actualBounds,n.naturalBounds.ka(),n.naturalBounds.h(0,0,o.width,o.height),n.naturalBounds.freeze())}},h(wl,hl),wl.prototype.measure=function(){},wl.prototype.arrange=function(){},h(bl,hl),bl.prototype.measure=function(){},bl.prototype.arrange=function(){},h(xl,hl),xl.prototype.measure=function(t,e,n,i,r,o,a){1<i.length&&x("Viewbox Panel cannot contain more than one GraphObject."),(i=i[0]).Ca=1,i.Uj(),i.measure(1/0,1/0,o,a);var s=i.measuredBounds,l=i.margin,u=l.right+l.left;if(l=l.top+l.bottom,isFinite(e)||isFinite(n)){var c=i.scale,h=s.width;s=s.height;var d=Math.max(e-u,0),f=Math.max(n-l,0),p=1;t.viewboxStretch===fa?0!==h&&0!==s&&(p=Math.min(d/h,f/s)):0!==h&&0!==s&&(p=Math.max(d/h,f/s)),0===p&&(p=1e-4),i.Ca*=p,c!==i.scale&&(ns(i,!0),i.measure(1/0,1/0,o,a))}s=i.measuredBounds,r.width=isFinite(e)?e:Math.max(s.width+u,0),r.height=isFinite(n)?n:Math.max(s.height+l,0)},xl.prototype.arrange=function(t,e,n){var i=(e=e[0]).measuredBounds,r=e.margin,o=Math.max(i.width+(r.right+r.left),0);r=Math.max(i.height+(r.top+r.bottom),0);var a=e.alignment;a.Xb()&&(a=t.defaultAlignment),a.sb()||(a=re),e.arrange(n.width*a.x-o*a.x+a.offsetX,n.height*a.y-r*a.y+a.offsetY,i.width,i.height)},h(Sl,hl),Sl.prototype.measure=function(){},Sl.prototype.arrange=function(){},Sl.prototype.gc=function(t,e,n){0>=(n=t.Df()*n.scale)&&(n=1);var i=t.gridCellSize,r=i.width;i=i.height;var o=t.naturalBounds,a=t.actualBounds,s=o.width,l=o.height,u=Math.ceil(s/r),c=Math.ceil(l/i),h=t.gridOrigin,d=h.x;h=h.y,e.save(),e.beginPath(),e.rect(0,0,s,l),e.clip(),e.Se();for(var f=[],p=t.O.s,g=p.length,m=0;m<g;m++){var v=p[m],y=[];if(f.push(y),v.visible){var w=v.interval;if(!(0>w)){v=jl(v.figure);for(var b=0;b<g;b++)if(b!==m){var x=p[b];x.visible&&jl(x.figure)===v&&((x=x.interval)>w&&y.push(x))}}}}for(g=(p=t.O.s).length,m=0;m<g;m++){var S=p[m];if(S.visible&&(y=S.interval||1,!(2>r*(v=Math.abs(y))*n))){if(w=S.segmentIndex,isFinite(w)&&!isNaN(w)||(w=0),0>w&&(w=v-Math.min(-w,v)),w=Math.round(w%v),b=1,1!==(v=S.opacity)){if(0===v)continue;b=e.globalAlpha,e.globalAlpha=b*v}x=f[m];var P=!1,k=S.strokeDashArray;if(null!==k&&(P=!0,e.js(k,S.strokeDashOffset)),"LineV"===S.figure&&null!==S.stroke&&0<S.strokeWidth){for(e.lineWidth=S.strokeWidth,Za(t,e,S.stroke,!1,!1,o,a),e.beginPath(),k=S=Math.floor((d-r)/r);k<=S+u;k++){var C=k*r+d;0<=C&&C<=s&&Pl(k,y,w,x)&&(e.moveTo(C,0),e.lineTo(C,l))}e.stroke(),e.Se()}else if("LineH"===S.figure&&null!==S.stroke&&0<S.strokeWidth){for(e.lineWidth=S.strokeWidth,Za(t,e,S.stroke,!1,!1,o,a),e.beginPath(),k=S=Math.floor((h-i)/i);k<=S+c;k++)0<=(C=k*i+h)&&C<=l&&Pl(k,y,w,x)&&(e.moveTo(0,C),e.lineTo(s,C));e.stroke(),e.Se()}else if("BarV"===S.figure&&null!==S.fill)for(Za(t,e,S.fill,!0,!1,o,a),S=S.width,isNaN(S)&&(S=r),C=k=Math.floor((d-r)/r);C<=k+u;C++){var A=C*r+d;0<=A+S&&A<=s&&Pl(C,y,w,x)&&e.fillRect(A,0,S,l)}else if("BarH"===S.figure&&null!==S.fill)for(Za(t,e,S.fill,!0,!1,o,a),S=S.height,isNaN(S)&&(S=i),C=k=Math.floor((h-i)/i);C<=k+c;C++)0<=(A=C*i+h)+S&&A<=l&&Pl(C,y,w,x)&&e.fillRect(0,A,s,S);P&&e.fs(),1!==v&&(e.globalAlpha=b)}}e.restore(),e.Vc(!1)},h(kl,hl),kl.prototype.measure=function(t,e,n,i,r){var o=i.length;if(t instanceof Yc||t instanceof xh){var a=null,s=null;if(t instanceof xh&&(a=t),t instanceof Yc&&(a=(s=t).adornedPart,null===t.j&&(t.j=[])),a instanceof xh){var l=a;if(0===o)Ot(t.naturalBounds,0,0),t.measuredBounds.h(0,0,0,0);else{var u=t instanceof Yc?null:a.path;e=a.routeBounds,(n=t.jg).h(0,0,e.width,e.height);var c=l.points,h=a.pointsCount;null!==s?s.Ul(!1):null!==a&&a.Ul(!1),s=e.width;var d=e.height,f=t.j;if(f.length=0,null!==u){Cl(t,s,d,u);var p=u.measuredBounds;n.ed(p),f.push(p)}p=Ue.alloc();for(var g=pt.alloc(),m=pt.alloc(),v=0;v<o;v++){var y=i[v];if(y!==u)if(y.isPanelMain&&y instanceof pu){Cl(t,s,d,y);var w=y.measuredBounds;n.ed(w),f.push(w)}else if(2>h)y.measure(1/0,1/0,0,0),w=y.measuredBounds,n.ed(w),f.push(w);else{var b=y.segmentIndex,x=y.segmentFraction,S=y.alignmentFocus;S.Mc()&&(S=re);var P=y.segmentOrientation,k=y.segmentOffset;if(isNaN(b)){var C=l.ua;w=T(),C.Qu(x,w);var A=pt.allocAt(w[0],w[1]);if(A.add(l.i(0)),C.type===Ze.j?A.offset(-C.startX,-C.startY):null!==(C=C.figures.first())&&A.offset(-C.startX,-C.startY),C=w[2],P!==Xh){var M=l.computeAngle(y,P,C);y.Kb=M}M=A.x-e.x;var E=A.y-e.y;pt.free(A),N(w)}else if(b<-h||b>=h)w=pt.alloc(),l.vg(),l.computeMidPoint(w),C=l.midAngle,P!==Xh&&(M=l.computeAngle(y,P,C),y.Kb=M),M=w.x-e.x,E=w.y-e.y,pt.free(w);else{if(M=0,0<=b?(E=c.M(b),w=b<h-1?c.M(b+1):E):(M=h+b,E=c.M(M),w=0<M?c.M(M-1):E),E.Xa(w)){0<=b?(C=0<b?c.M(b-1):E,M=b<h-2?c.M(b+2):w):(C=M<h-1?c.M(M+1):E,M=1<M?c.M(M-2):w),A=C.Bf(E);var L=w.Bf(M);C=A>L+10?0<=b?C.ab(E):E.ab(C):L>A+10?0<=b?w.ab(M):M.ab(w):0<=b?C.ab(M):M.ab(C)}else C=0<=b?E.ab(w):w.ab(E);P!==Xh&&(M=l.computeAngle(y,P,C),y.Kb=M),M=E.x+(w.x-E.x)*x-e.x,E=E.y+(w.y-E.y)*x-e.y}y.measure(1/0,1/0,0,0),w=y.measuredBounds,A=y.naturalBounds;var j=0;y instanceof pu&&(j=y.strokeWidth),L=A.width+j;var I=A.height+j;p.reset(),p.translate(-w.x,-w.y),p.scale(y.scale,y.scale),p.rotate(P===Xh?y.angle:C,L/2,I/2),P!==nd&&P!==ad||p.rotate(90,L/2,I/2),P!==id&&P!==sd||p.rotate(-90,L/2,I/2),P===ld&&(45<C&&135>C||225<C&&315>C)&&p.rotate(-C,L/2,I/2),A=new Bt(0,0,L,I),g.xi(A,S),p.Ga(g),S=-g.x+j/2*y.scale,y=-g.y+j/2*y.scale,m.assign(k),j=isNaN(k.x);var B=isNaN(k.y);if(j||B){L=L/2+3,I=I/2+3;var O=45<=C&&135>=C,D=225<=C&&315>=C;P===Xh&&(O||D)?(m.x=B?L:k.y,m.y=j?I:k.x,O?0<=b||isNaN(b)&&.5>x||!j||(m.y=-I):D&&((0<=b||isNaN(b)&&.5>x)&&j&&(m.y=-I),B&&(m.x=-L))):(j&&(m.x=0<=b||isNaN(b)&&.5>x?L:-L),B&&(m.y=-I),m.rotate(C))}else m.rotate(C);M+=m.x,E+=m.y,A.set(w),A.h(M+S,E+y,w.width,w.height),f.push(A),n.ed(A)}}if(null!==a)for(i=a.labelNodes;i.next();)i.value.measure(1/0,1/0);t.jg=n,t.position.h(e.x+n.x,e.y+n.y),Ot(r,n.width||0,n.height||0),Ue.free(p),pt.free(g),pt.free(m)}}}},kl.prototype.arrange=function(t,e){var n=e.length;if(t instanceof Yc||t instanceof xh){var i=t,r=null;t instanceof Yc&&(i=(r=t).adornedPart);var o=t instanceof Yc?null:i.path,a=t.j;if(0!==a.length){var s=0;if(null!==o&&s<a.length){var l=a[s];s++,o.arrange(l.x-t.jg.x,l.y-t.jg.y,l.width,l.height)}for(l=0;l<n;l++){var u=e[l];if(u!==o&&s<a.length){var c=a[s];s++,u.arrange(c.x-t.jg.x,c.y-t.jg.y,c.width,c.height)}}}if(2<=(n=(e=i.points).count)&&t instanceof xh)for(o=t.labelNodes;o.next();){var h=t;s=(a=o.value).segmentIndex,l=a.segmentFraction;var d=a.alignmentFocus;if(u=a.segmentOrientation,c=a.segmentOffset,isNaN(s)){var f=h.ua,p=T();f.Qu(l,p);var g=pt.allocAt(p[0],p[1]);g.add(h.i(0)),f.type===Ze.j||(f=f.figures.first()),g.offset(-f.startX,-f.startY),f=p[2],u!==Xh&&(h=h.computeAngle(a,u,f),a.angle=h),h=g.x;var m=g.y;pt.free(g),N(p)}else if(s<-n||s>=n)m=p=pt.alloc(),(f=h).vg(),f.computeMidPoint(m),f=h.midAngle,u!==Xh&&(h=h.computeAngle(a,u,f),a.angle=h),h=p.x,m=p.y,pt.free(p);else{if(g=0,0<=s?(p=e.s[s],m=s<n-1?e.s[s+1]:p):(g=n+s,p=e.s[g],m=0<g?e.s[g-1]:p),p.Xa(m)){0<=s?(f=0<s?e.s[s-1]:p,g=s<n-2?e.s[s+2]:m):(f=g<n-1?e.s[g+1]:p,g=1<g?e.s[g-2]:m);var v=f.Bf(p),y=m.Bf(g);f=v>y+10?0<=s?f.ab(p):p.ab(f):y>v+10?0<=s?m.ab(g):g.ab(m):0<=s?f.ab(g):g.ab(f)}else f=0<=s?p.ab(m):m.ab(p);u!==Xh&&(h=h.computeAngle(a,u,f),a.angle=h),h=p.x+(m.x-p.x)*l,m=p.y+(m.y-p.y)*l}if(d.ys())a.location=new pt(h,m);else{d.Mc()&&(d=re),(p=Ue.alloc()).reset(),p.scale(a.scale,a.scale),p.rotate(a.angle,0,0);var w=a.naturalBounds;g=Bt.allocAt(0,0,w.width,w.height),(v=pt.alloc()).xi(g,d),p.Ga(v),d=-v.x,y=-v.y;var b=w.width,x=w.height;(w=pt.alloc()).assign(c);var S=isNaN(c.x),P=isNaN(c.y);if(S||P){b=b/2+3,x=x/2+3;var k=45<=f&&135>=f,C=225<=f&&315>=f;u===Xh&&(k||C)?(w.x=P?b:c.y,w.y=S?x:c.x,k?0<=s||isNaN(s)&&.5>l||!S||(w.y=-x):C&&((0<=s||isNaN(s)&&.5>l)&&S&&(w.y=-x),P&&(w.x=-b))):(S&&(w.x=0<=s||isNaN(s)&&.5>l?b:-b),P&&(w.y=-x),w.rotate(f))}else w.rotate(f);h+=w.x,m+=w.y,p.pp(g),d+=g.x,y+=g.y,s=pt.allocAt(h+d,m+y),a.move(s),pt.free(s),pt.free(w),pt.free(v),Bt.free(g),Ue.free(p)}}null!==r?r.Ul(!1):i.Ul(!1),i=Ec(t),t.location.h(t.position.x+i.x,t.position.y+i.y),pt.free(i)}},h(Al,hl),Al.prototype.measure=function(t,e,n,i,r,o,a){var s=t.Pb();t.graduatedBounds=[];var l=s.margin,u=l.right+l.left,c=l.top+l.bottom;s.measure(e,n,o,a);var h=s.measuredBounds,d=new Bt(-l.left,-l.top,Math.max(h.width+u,0),Math.max(h.height+c,0));t.graduatedBounds.push(d),r.assign(d);for(var f=s.geometry,p=s.strokeWidth,g=f.flattenedSegments,m=f.flattenedLengths,v=f.flattenedTotalLength,y=g.length,w=0,b=0,x=T(),S=0;S<y;S++){var P=g[S],k=[];b=w=0;for(var C=P.length,A=0;A<C;A+=2){var M=P[A],E=P[A+1];if(0!==A){var L=180*Math.atan2(E-b,M-w)/Math.PI;0>L&&(L+=360),k.push(L)}w=M,b=E}x.push(k)}if(null===t.graduatedIntervals){for(var j=[],I=t.O.s,B=I.length,O=0;O<B;O++){var D=I[O],R=[];if(j.push(R),D.visible){var F=D.interval;if(!(0>F))for(var z=0;z<B;z++)if(z!==O){var G=I[z];if(G.visible&&D.constructor===G.constructor){var U=G.interval;U>F&&R.push(U)}}}}t.graduatedIntervals=j}var H=t.graduatedIntervals,_=t.O.s,Z=_.length,W=0,V=0,Y=v;t.graduatedMarks=[];for(var X,q=0;q<Z;q++){var K=_[q];if(X=[],K.visible&&K!==s){var Q=Math.abs(K.interval),J=t.graduatedTickUnit;if(!(2>J*Q*v/t.graduatedRange&&null===K.graduatedSkip)){var $=m[0][0],tt=0,et=0;V=v*K.graduatedStart-1e-4,Y=v*K.graduatedEnd+1e-4;var nt=J*Q,it=t.graduatedTickBase;if(it<t.graduatedMin){var rt=(t.graduatedMin-it)/nt;it+=(rt=0==rt%1?rt:Math.floor(rt+1))*nt}else it>t.graduatedMin+nt&&(it-=Math.floor((it-t.graduatedMin)/nt)*nt);for(var ot=H[q],at=it,st=1e-6*t.graduatedMax,lt=1;it<=t.graduatedMax+st;lt++){t:{for(var ut=ot.length,ct=0;ct<ut;ct++){var ht=(it-t.graduatedTickBase)%(ot[ct]*t.graduatedTickUnit),dt=1e-6*t.graduatedTickUnit;if(ht<dt&&ht>-dt){var ft=!1;break t}}ft=!0}if(ft&&(it>t.graduatedMax&&(it=t.graduatedMax),null===K.graduatedSkip||K instanceof Au&&!K.graduatedSkip(it,K)||K instanceof pu&&!K.graduatedSkip(it,K))&&((W=(it-t.graduatedMin)*v/t.graduatedRange)>v&&(W=v),V<=W&&W<=Y)){for(var gt=x[tt][et],mt=m[tt][et];tt<m.length;){for(;W>$&&et<m[tt].length-1;)et++,gt=x[tt][et],$+=mt=m[tt][et];if(W<=$)break;et=0,gt=x[++tt][et],$+=mt=m[tt][et]}var vt=g[tt],yt=vt[2*et],wt=vt[2*et+1],bt=(W-($-mt))/mt,xt=new pt(yt+(vt[2*et+2]-yt)*bt+p/2-f.bounds.x,wt+(vt[2*et+3]-wt)*bt+p/2-f.bounds.y);xt.scale(s.scale,s.scale);t:{var St=gt,Pt=x[tt];if(!(.5005>bt&&.4995<bt)){var kt=St;if(.5>bt?0<et?kt=Pt[et-1]:_e.$(vt[0],vt[vt.length-2])&&_e.$(vt[1],vt[vt.length-1])&&(kt=Pt[Pt.length-1]):.5<bt&&(et+1<Pt.length?kt=Pt[et+1]:_e.$(vt[0],vt[vt.length-2])&&_e.$(vt[1],vt[vt.length-1])&&(kt=Pt[0])),St!==kt){var Ct=Math.abs(St-kt);if(180<Ct&&(St<kt?St+=360:kt+=360,Ct=Math.abs(St-kt)),5e-4>bt||.9995<bt){gt=(St+kt)/2%360;break t}if(10>Ct){var At=1-Math.abs(.5-bt);gt=(St*At+kt*(1-At))%360;break t}}}gt=St}if(K instanceof Au){var Mt="";null!==K.graduatedFunction?Mt=null!=(Mt=K.graduatedFunction(it,K))?Mt.toString():"":Mt=(+it.toFixed(2)).toString(),""!==Mt&&X.push({$l:xt,angle:gt,text:Mt})}else X.push({$l:xt,angle:gt})}it=at+lt*nt}}}t.graduatedMarks.push(X)}N(x);var Et=t.graduatedMarks;if(null!==Et)for(var Lt=i.length,Tt=0;Tt<Lt;Tt++){var Nt=i[Tt],jt=Et[Tt];if(Nt.visible&&Nt!==s&&0!==jt.length){if(Nt instanceof pu){var It=t,Ot=r,Dt=Nt.alignmentFocus;Dt.Mc()&&(Dt=ee);var Rt=Nt.angle;Nt.Kb=0,Nt.measure(1/0,1/0,0,0),Nt.Kb=Rt;var Ft=Nt.measuredBounds,zt=Ft.width,Gt=Ft.height,Ut=Bt.allocAt(0,0,zt,Gt),_t=pt.alloc();_t.xi(Ut,Dt),Bt.free(Ut);for(var Zt=-_t.x,Wt=-_t.y,Vt=new Bt,Yt=jt.length,Xt=0;Xt<Yt;Xt++)for(var qt=jt[Xt],Kt=qt.$l.x,Qt=qt.$l.y,Jt=qt.angle,$t=0;4>$t;$t++){switch($t){case 0:_t.h(Zt,Wt);break;case 1:_t.h(Zt+zt,Wt);break;case 2:_t.h(Zt,Wt+Gt);break;case 3:_t.h(Zt+zt,Wt+Gt)}_t.rotate(Jt+Nt.angle),_t.offset(Kt,Qt),0===Xt&&0===$t?Vt.h(_t.x,_t.y,0,0):Vt.Ye(_t),_t.offset(-Kt,-Qt),_t.rotate(-Jt-Nt.angle)}pt.free(_t),null!==It.graduatedBounds&&It.graduatedBounds.push(Vt),Ht(Ot,Vt.x,Vt.y,Vt.width,Vt.height)}else if(Nt instanceof Au){var te=t,ne=r;null===te.temporaryTextBlock&&(te.temporaryTextBlock=new Au);var ie=te.temporaryTextBlock;Eu(ie,Nt);var re=Nt.alignmentFocus;re.Mc()&&(re=ee);for(var oe=Nt.segmentOrientation,ae=Nt.segmentOffset,se=new Bt,le=0,ue=0,ce=0,he=0,de=0,fe=jt.length,pe=0;pe<fe;pe++){var ge=jt[pe];le=ge.$l.x,ue=ge.$l.y,ce=ge.angle,de=he=Nt.angle,oe!==Xh&&(de=oe===ed||oe===od?ce+Nt.angle:ce,he=xh.computeAngle(oe,de)),ie.Kb=he,ie.text=ge.text||"",ie.measure(1/0,1/0,0,0);var me=ie.measuredBounds,ve=ie.naturalBounds,ye=ve.width,we=ve.height,be=Ue.alloc();be.reset(),be.translate(-me.x,-me.y),be.scale(ie.scale,ie.scale),be.rotate(de,ye/2,we/2),oe!==nd&&oe!==ad||be.rotate(90,ye/2,we/2),oe!==id&&oe!==sd||be.rotate(-90,ye/2,we/2),oe===ld&&(45<ce&&135>ce||225<ce&&315>ce)&&be.rotate(-ce,ye/2,we/2);var xe=Bt.allocAt(0,0,ye,we),Se=pt.alloc();Se.xi(xe,re),be.Ga(Se);var Pe=-Se.x,ke=-Se.y,Ce=pt.alloc();Ce.assign(ae),isNaN(Ce.x)&&(Ce.x=ye/2+3),isNaN(Ce.y)&&(Ce.y=-(we/2+3)),Ce.rotate(ce);var Ae=new Bt(le+=Ce.x+Pe,ue+=Ce.y+ke,me.width,me.height),Me=new Bt(me.x,me.y,me.width,me.height),Ee=new Bt(ve.x,ve.y,ve.width,ve.height);ge.Sz=he,ge.lineCount=ie.lineCount,ge.lines=[ie.Cb,ie.Ih,ie.df,ie.Le,ie.Qc,ie.Qb,ie.ze],ge.actualBounds=Ae,ge.measuredBounds=Me,ge.naturalBounds=Ee,0===pe?se.assign(Ae):se.ed(Ae),pt.free(Ce),pt.free(Se),Bt.free(xe),Ue.free(be)}null!==te.graduatedBounds&&te.graduatedBounds.push(se),Ht(ne,se.x,se.y,se.width,se.height)}ns(Nt,!1)}}},Al.prototype.arrange=function(t,e,n){if(null!==t.graduatedBounds){var i=t.Pb(),r=t.graduatedMarks;if(null!==r){var o=t.graduatedBounds,a=0,s=o[a];a++,null!==i&&i.arrange(s.x-n.x,s.y-n.y,s.width,s.height);for(var l=e.length,u=0;u<l;u++){var c=e[u];s=r[u],c.visible&&c!==i&&0!==s.length&&(s=o[a],a++,c.arrange(s.x-n.x,s.y-n.y,s.width,s.height))}t.graduatedBounds=null}}},Al.prototype.gc=function(t,e,n){var i=n.$i;n.$i=!0;var r=t.naturalBounds,o=r.width,a=r.height;r=e instanceof ys,e.save(),e.beginPath(),e.rect(-1,-1,o+1,a+1),e.clip(),e.Se(),(o=t.Pb()).gc(e,n),0>=(a=t.Df()*n.scale)&&(a=1);for(var s=o.actualBounds,l=t.O.s,u=t.graduatedMarks,c=l.length,h=0;h<c;h++){var d=l[h],f=u[h],p=f.length;if(d.visible&&d!==o&&0!==f.length)if(d instanceof pu){if(!(2>t.graduatedTickUnit*d.interval*o.geometry.flattenedTotalLength/t.graduatedRange*a&&null===d.graduatedSkip)){var g=d.measuredBounds,m=d.strokeWidth*d.scale,v=d.alignmentFocus;v.Mc()&&(v=ee);for(var y=0;y<p;y++){var w=f[y].$l,b=f[y].angle,x=v,S=d.Ab;S.reset(),S.translate(w.x+s.x,w.y+s.y),S.rotate(b+d.angle,0,0),S.translate(-g.width*x.x+x.offsetX+m/2,-g.height*x.y+x.offsetY+m/2),S.scale(d.scale,d.scale),$a(d,!1),d.wh.set(d.Ab),d.Kk=d.scale,ts(d,!1),d.gc(e,n),r&&(t.svg.appendChild(d.svg),d.svg=null),d.Ab.reset()}}}else if(d instanceof Au)for(null===t.temporaryTextBlock&&(t.temporaryTextBlock=new Au),Eu(g=t.temporaryTextBlock,d),m=0;m<p;m++)(v=f[m]).actualBounds&&v.measuredBounds&&v.naturalBounds&&(g.ec=v.text||"",g.Kb=v.Sz||0,g.Gc=v.lineCount||0,void 0!==(y=v.lines)&&(g.Cb=y[0],g.Ih=y[1],g.df=y[2],g.Le=y[3],g.Qc=y[4],g.Qb=y[5],g.ze=y[6]),v.naturalBounds&&(g.dc=v.naturalBounds),v.actualBounds&&(y=v.actualBounds,g.arrange(y.x,y.y,y.width,y.height)),y=v.actualBounds,g.arrange(y.x,y.y,y.width,y.height),w=v.measuredBounds,v=v.naturalBounds,(b=g.Ab).reset(),b.translate(y.x+s.x,y.y+s.y),b.translate(-w.x,-w.y),g.no(b,v.x,v.y,v.width,v.height),$a(g,!1),g.wh.set(g.Ab),g.Kk=g.scale,ts(g,!1),g.Ng=d.part,g.Me=d.panel,g.gc(e,n),g.Me=null,g.Ng=null,r&&(t.svg.appendChild(g.svg),g.svg=null))}n.$i=i,e.restore(),e.Vc(!0)},h(Ml,Ia),Ml.prototype.cloneProtected=function(t){Ia.prototype.cloneProtected.call(this,t),t.na=this.na,t.yb=this.yb.J(),t.Tm=this.Tm.J(),t.Uf=this.Uf,t.$e=this.$e,t.jg.assign(this.jg),null!==this.T&&(t.T=this.T.copy(t)),t.xo=this.xo,t.jn=this.jn.J(),t.kn=this.kn.J(),null!==this.ra&&(t.ra=this.ra.copy()),t.ub=this.ub,t.zn=this.zn,t.Hh=this.Hh},Ml.prototype.Af=function(t){Ia.prototype.Af.call(this,t),t.O=this.O;for(var e=t.O.s,n=e.length,i=0;i<n;i++)e[i].Me=t;t.$g=null},Ml.prototype.copy=function(){var t=Ia.prototype.copy.call(this);if(null!==t){for(var e=this.O.s,n=e.length,i=0;i<n;i++){var r=e[i].copy();r.wi(t),r.Ng=null;var o=t.O,a=o.count;if(o.Gb(a,r),null!==(o=t.part)){o.Rh=null,null!==r.portId&&o instanceof qc&&(o.Te=!0);var s=t.diagram;null!==s&&s.undoManager.isUndoingRedoing||o.cb(pn,"elements",t,null,r,null,a)}}return t}return null},(e=Ml.prototype).toString=function(){return"Panel("+this.type.name+")#"+et(this)},e.Pn=function(t){Ia.prototype.Pn.call(this,t);for(var e=this.O.s,n=e.length,i=0;i<n;i++)e[i].Pn(t)},e.hh=function(t,e){if(this.na===Ml.Grid)t.yc(),this.na.gc(this,t,e);else if(this.na===Ml.Graduated)t.yc(),this.na.gc(this,t,e);else{if(this.na===Ml.Table)if(t.yc(),t instanceof ys){var n=t.yd;t.yd=Es(t,"gojs-ts"),El(this,t),t.nh.pop(),t.yd=n}else El(this,t);(n=this.isClipping&&this.na===Ml.Spot)&&t.save();for(var i=this.Pb(),r=this.O.s,o=r.length,a=0;a<o;a++){var s=r[a];n&&s===i&&(t.clipInsteadOfFill=!0),s.gc(t,e),n&&s===i&&(t.clipInsteadOfFill=!1)}n&&(t.restore(),t.Vc(!0))}},e.lv=function(){for(var t=this.O.s,e=t.length,n=0;n<e;n++)t[n].lv();this.Uc=!0},e.kk=function(t,e,n){if(!Ia.prototype.kk.call(this,t,e,n))return!1;if(this.type===Ml.Table)null!==(n=0!==(n=this.svg.getElementsByClassName("gojs-ts")).length?n[0]:null)&&(n.innerHTML=""),t.yd=n,El(this,t),t.yd=null;else if(this.na===Ml.Grid||this.na===Ml.Graduated)return this.svg.innerHTML="",this.svg.remove(),!1;for(var i=(n=this.O.s).length,r=0;r<i;r++)n[r].gc(t,e);return!0},e.nk=function(){return!0},e.$o=function(t,e,n,i){if(!this.isClipping)if(this.Dd()&&null!==t.bk){t=t.bk,e=this.O.s;for(var r=0,o=0,a=0;a<e.length;a++)if(e[a].Ed()){var s=e[a].actualBounds;r=0===a?s.x:Math.min(s.x,r),o=0===a?s.y:Math.min(s.y,o)}i.setAttributeNS(null,"clip-path","path('M "+(t.x-n.x-r)+","+(t.y-n.y-o)+" l "+t.width+" 0 l 0 "+t.height+" l -"+t.width+" 0 z')")}else Ia.prototype.$o.call(this,t,e,n,i)},e.Sj=function(t,e,n,i,r){var o=this.se(),a=this.transform,s=1/(a.m11*a.m22-a.m12*a.m21),l=a.m22*s,u=-a.m12*s,c=-a.m21*s,h=a.m11*s,d=s*(a.m21*a.dy-a.m22*a.dx),f=s*(a.m12*a.dx-a.m11*a.dy);if(null!==this.areaBackground)return a=this.actualBounds,_e.Ff(a.left,a.top,a.right,a.bottom,t,e,n,i,r);if(null!==this.background)return o=t*l+e*c+d,s=t*u+e*h+f,t=n*l+i*c+d,l=n*u+i*h+f,r.h(0,0),n=this.naturalBounds,o=_e.Ff(0,0,n.width,n.height,o,s,t,l,r),r.transform(a),o;o||(l=1,c=u=0,h=1,f=d=0),s=t*l+e*c+d,t=t*u+e*h+f,l=n*l+i*c+d,n=n*u+i*h+f,r.h(l,n),i=(l-s)*(l-s)+(n-t)*(n-t),u=!1,f=(h=this.O.s).length,c=pt.alloc(),d=null,e=1/0;var p=null,g=this.isClipping&&this.na===Ml.Spot;g&&(p=pt.alloc(),(u=(d=this.Pb()).Sj(s,t,l,n,p))&&(e=(s-p.x)*(s-p.x)+(t-p.y)*(t-p.y)));for(var m=0;m<f;m++){var v=h[m];v.visible&&v!==d&&v.Sj(s,t,l,n,c)&&(u=!0,(v=(s-c.x)*(s-c.x)+(t-c.y)*(t-c.y))<i&&(i=v,r.set(c)))}return g&&(e>i&&r.set(p),pt.free(p)),pt.free(c),o&&r.transform(a),u},e.Gj=function(){for(var t=this.O.s,e=t.length,n=0;n<e;n++)t[n].Gj();Ia.prototype.Gj.call(this)},e.v=function(t){if(!es(this)){Ia.prototype.v.call(this,t),t=null,this.na!==Ml.Auto&&this.na!==Ml.Link||(t=this.Pb());for(var e=this.O.s,n=e.length,i=0;i<n;i++){var r=e[i];if((r===t||r.isPanelMain)&&r.v(!0),!r.desiredSize.w()){var o=Ya(r,!1);(r instanceof bh||r instanceof Ml||r instanceof Au||o!==da)&&r.v(!0)}}}},e.Uj=function(){if(!es(this)){ns(this,!0),rs(this,!0);for(var t=this.O.s,e=t.length,n=0;n<e;n++)t[n].Uj()}},e.Uk=function(){if(0!=(2048&this.l)==!1){$a(this,!0),ts(this,!0);for(var t=this.O.s,e=t.length,n=0;n<e;n++)t[n].Wu()}},e.Wu=function(){ts(this,!0);for(var t=this.O.s,e=t.length,n=0;n<e;n++)t[n].Wu()},e.Wl=function(t,e,n,i){var r=this.jg;r.h(0,0,0,0);var o=this.desiredSize,a=this.minSize;void 0===n&&(n=a.width,i=a.height),n=Math.max(n,a.width),i=Math.max(i,a.height);var s=this.maxSize;isNaN(o.width)||(t=Math.min(o.width,s.width)),isNaN(o.height)||(e=Math.min(o.height,s.height)),t=Math.max(n,t),e=Math.max(i,e);var l=this.yb;t=Math.max(t-l.left-l.right,0),e=Math.max(e-l.top-l.bottom,0);var u=this.O.s;0!==u.length&&this.na.measure(this,t,e,u,r,n,i),t=r.width+l.left+l.right,l=r.height+l.top+l.bottom,isFinite(o.width)&&(t=o.width),isFinite(o.height)&&(l=o.height),t=Math.min(s.width,t),l=Math.min(s.height,l),t=Math.max(a.width,t),l=Math.max(a.height,l),Ot(r,t=Math.max(n,t),l=Math.max(i,l)),Ot(this.naturalBounds,t,l),this.Ge(0,0,t,l)},e.Pb=function(){if(null===this.$g){var t=this.O.s,e=t.length;if(0===e)return null;for(var n=0;n<e;n++){var i=t[n];if(!0===i.isPanelMain)return this.$g=i}this.$g=t[0]}return this.$g},e.eh=function(t,e,n,i){var r=this.O.s;if(this.actualBounds.h(t,e,n,i),0!==r.length){if(!this.desiredSize.w()){t=Ya(this,!0);var o=this.measuredBounds;e=o.width,o=o.height;var a=this.Kg,s=a.left+a.right;switch(a=a.top+a.bottom,e===n&&o===i&&(t=da),t){case da:(e>n||o>i)&&(this.v(),this.measure(e>n?n:e,o>i?i:o,0,0));break;case ha:this.v(!0),this.measure(n+s,i+a,0,0);break;case pa:this.v(!0),this.measure(n+s,o+a,0,0);break;case ga:this.v(!0),this.measure(e+s,i+a,0,0)}}this.na.arrange(this,r,this.jg)}},e.gh=function(t){var e=this.naturalBounds,n=Il(this);if(_t(0,0,e.width,e.height,t.x,t.y)){for(var i=(e=this.O.s).length,r=pt.allocAt(0,0);i--;){var o=e[i];if((o.visible||o===n)&&(yt(r.set(t),o.transform),o.ca(r)))return pt.free(r),!0}return pt.free(r),null!==this.Ma||null!==this.areaBackground}return!1},e.ks=function(t){if(this.bindingId===t)return this;for(var e=this.O.s,n=e.length,i=0;i<n;i++){var r=e[i].ks(t);if(null!==r)return r}return null},e.qm=function(t,e){if(e(this,t),t instanceof Ml)for(var n=(t=t.O.s).length,i=0;i<n;i++)this.qm(t[i],e)},e.Nl=function(t){return Fl(this,this,t)},e.fb=function(t){if(this.name===t)return this;var e=this.O.s,n=e.length;null===this.Hh&&null===this.itemTemplateMap||(n=ql(this));for(var i=0;i<n;i++){var r=e[i];if(r instanceof Ml){var o=r.fb(t);if(null!==o)return o}if(r.name===t)return r}return null},e.se=function(){return!(this.type===Ml.TableRow||this.type===Ml.TableColumn)},e.ic=function(t,e,n){if(!1===this.pickable)return null;if(void 0===e&&(e=null),void 0===n&&(n=null),is(this))return null;var i=this.naturalBounds,r=1/this.Df(),o=this.se(),a=o?t:yt(pt.allocAt(t.x,t.y),this.transform),s=this.diagram,l=10,u=5;if(null!==s&&(u=(l=s.Ql("extraTouchArea"))/2),_t(-u*r,-u*r,i.width+l*r,i.height+l*r,a.x,a.y)){if(!this.isAtomic){var c=(r=this.O.s).length;if(s=pt.alloc(),u=(l=this.isClipping&&this.na===Ml.Spot)?this.Pb():null,l&&(u.se()?yt(s.set(t),u.transform):s.set(t),!u.ca(s)))return pt.free(s),o||pt.free(a),null;for(var h=Il(this);c--;){var d=r[c];if((d.visible||d===h)&&(d.se()?yt(s.set(t),d.transform):s.set(t),!l||d!==u)){var f=null;if(d instanceof Ml?f=d.ic(s,e,n):!0===d.pickable&&d.ca(s)&&(f=d),null!==f&&(null!==e&&(f=e(f)),null!==f&&(null===n||n(f))))return pt.free(s),o||pt.free(a),f}}pt.free(s)}return null===this.background&&null===this.areaBackground?(o||pt.free(a),null):(t=_t(0,0,i.width,i.height,a.x,a.y)?this:null,o||pt.free(a),t)}return o||pt.free(a),null},e.ji=function(t,e,n,i){if(!1===this.pickable)return!1;void 0===e&&(e=null),void 0===n&&(n=null);var r=this.naturalBounds,o=this.se(),a=o?t:yt(pt.allocAt(t.x,t.y),this.transform);if(r=_t(0,0,r.width,r.height,a.x,a.y),Gl(this)||r){if(!this.isAtomic){for(var s=this.O.s,l=s.length,u=pt.alloc(),c=Il(this);l--;){var h=s[l];if(h.visible||h===c){h.se()?yt(u.set(t),h.transform):u.set(t);var d=h;(null!==(h=h instanceof Ml?h:null)?h.ji(u,e,n,i):d.ca(u))&&!1!==d.pickable&&(null!==e&&(d=e(d)),null===d||null!==n&&!n(d)||i.add(d))}}pt.free(u)}return o||pt.free(a),r&&(null!==this.background||null!==this.areaBackground)}return o||pt.free(a),!1},e.Cf=function(t,e,n,i,r,o){if(!1===this.pickable)return!1;void 0===e&&(e=null),void 0===n&&(n=null);var a=o;if(void 0===o&&(a=Ue.alloc()).reset(),a.multiply(this.transform),this.fh(t,a))return Ul(this,e,n,r),void 0===o&&Ue.free(a),!0;if(this.Yc(t,a)){if(!this.isAtomic)for(var s=Il(this),l=this.O.s,u=l.length;u--;){var c=l[u];if(c.visible||c===s){var h=c.actualBounds,d=this.naturalBounds;h.x>d.width||h.y>d.height||0>h.x+h.width||0>h.y+h.height||(h=c,c=c instanceof Ml?c:null,(d=Ue.alloc()).set(a),(null!==c?c.Cf(t,e,n,i,r,d):Da(h,t,i,d))&&(null!==e&&(h=e(h)),null===h||null!==n&&!n(h)||r.add(h)),Ue.free(d))}}return void 0===o&&Ue.free(a),i}return void 0===o&&Ue.free(a),!1},e.og=function(t,e,n,i,r,o){if(!1===this.pickable)return!1;void 0===n&&(n=null),void 0===i&&(i=null);var a=this.naturalBounds,s=this.se(),l=s?t:yt(pt.allocAt(t.x,t.y),this.transform),u=s?e:yt(pt.allocAt(e.x,e.y),this.transform),c=l.Bf(u),h=0<l.x&&l.x<a.width&&0<l.y&&l.y<a.height||wt(l.x,l.y,0,0,0,a.height)<=c||wt(l.x,l.y,0,a.height,a.width,a.height)<=c||wt(l.x,l.y,a.width,a.height,a.width,0)<=c||wt(l.x,l.y,a.width,0,0,0)<=c;if(a=l.zd(0,0)<=c&&l.zd(0,a.height)<=c&&l.zd(a.width,0)<=c&&l.zd(a.width,a.height)<=c,s||(pt.free(l),pt.free(u)),h){if(!this.isAtomic){l=pt.alloc(),u=pt.alloc(),c=Il(this);for(var d=this.O.s,f=d.length;f--;){var p=d[f];if(p.visible||p===c){var g=p.actualBounds,m=this.naturalBounds;s&&(g.x>m.width||g.y>m.height||0>g.x+g.width||0>g.y+g.height)||(p.se()?(g=p.transform,yt(l.set(t),g),yt(u.set(e),g)):(l.set(t),u.set(e)),g=p,(null!==(p=p instanceof Ml?p:null)?p.og(l,u,n,i,r,o):g.tx(l,u,r))&&(null!==n&&(g=n(g)),null===g||null!==i&&!i(g)||o.add(g)))}}pt.free(l),pt.free(u)}return r?h:a}return!1},e.add=function(t){for(var e=[],n=0;n<arguments.length;++n)e[n]=arguments[n];for(n=0;n<e.length;n++)this.Gb(this.O.count,e[n]);return this},e.M=function(t){return this.O.M(t)},e.Gb=function(t,e){e instanceof Sc&&x("Cannot add a Part to a Panel: "+e+"; use a Panel instead"),(this===e||this.rg(e))&&(this===e&&x("Cannot make a Panel contain itself: "+this.toString()),x("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+e.toString()));var n=e.panel;if(null!==n&&n!==this&&x("Cannot add a GraphObject that already belongs to another Panel to this Panel: "+e.toString()+", already contained by "+n.toString()+", cannot be shared by this Panel: "+this.toString()),this.na!==Ml.Grid||e instanceof pu||x("Can only add Shapes to a Grid Panel, not: "+e),this.na!==Ml.Graduated||e instanceof pu||e instanceof Au||x("Can only add Shapes or TextBlocks to a Graduated Panel, not: "+e),e.wi(this),e.Ng=null,null!==this.itemArray){var i=e.data;null!==i&&"object"==typeof i&&(null===this.ge&&(this.ge=new ft),this.ge.add(i,e))}var r=this.O;if(i=-1,n===this){for(var o=-1,a=this.O.s,s=a.length,l=0;l<s;l++)if(a[l]===e){o=l;break}if(-1!==o){if(o===t||o+1>=r.count&&t>=r.count)return;r.mb(o),i=o}else x("element "+e.toString()+" has panel "+n.toString()+" but is not contained by it.")}(0>t||t>r.count)&&(t=r.count),r.Gb(t,e),(0===t||e.isPanelMain)&&(this.$g=null),es(this)||this.v(),e.v(!1),(null!==e.portId||e instanceof Ml&&!0===e.Te)&&(this.Te=!0),this.graduatedIntervals=null,this.If()||eu(this,e,!1),null!==(n=this.part)&&(n.Rh=null,n.ag=NaN,this.Te&&n instanceof qc&&(n.Te=!0),n.Te&&n instanceof qc&&(n.wc=null),null!==(r=this.diagram)&&r.undoManager.isUndoingRedoing||(-1!==i&&n.cb(gn,"elements",this,e,null,i,null),n.cb(pn,"elements",this,null,e,null,t)))},e.remove=function(t){for(var e=this.O.s,n=e.length,i=-1,r=0;r<n;r++)if(e[r]===t){i=r;break}-1!==i&&this.pc(i,!0)},e.mb=function(t){0<=t&&this.pc(t,!0)},e.pc=function(t,e){var n=this.O,i=n.M(t);if(i.Ng=null,i.wi(null),null!==this.ge){var r=i.data;"object"==typeof r&&this.ge.remove(r)}n.mb(t),ns(this,!1),this.v(),this.$g===i&&(this.$g=null),this.graduatedIntervals=null;var o=this.part;null!==o&&(o.Rh=null,o.ag=NaN,o.Wb(),o instanceof qc&&(i instanceof Ml?i.qm(i,(function(t,n){sh(o,n,e)})):sh(o,i,e)),null!==(n=this.diagram)&&n.undoManager.isUndoingRedoing||o.cb(gn,"elements",this,i,null,t,null))},e.Fb=function(t){0>t&&P(t,">= 0",Ml,"getRowDefinition:idx"),t=Math.round(t);var e=this.rowDefs;if(void 0===e[t]){var n=new lu;n.wi(this),n.isRow=!0,n.index=t,e[t]=n,this.cb(pn,"rowdefs",this,null,n,null,t)}return e[t]},e.oA=function(t){if(0>t&&P(t,">= 0",Ml,"removeRowDefinition:idx"),0!==this.rowCount){t=Math.round(t);var e=this.rowDefs,n=e[t];if(n){e[t]=void 0;for(var i=e.length-1;0<=i&&void 0===e[i--];)e.length--;this.cb(gn,"rowdefs",this,n,null,t,null),this.v()}}},e.Eb=function(t){0>t&&P(t,">= 0",Ml,"getColumnDefinition:idx"),t=Math.round(t);var e=this.colDefs;if(void 0===e[t]){var n=new lu;n.wi(this),n.isRow=!1,n.index=t,e[t]=n,this.cb(pn,"coldefs",this,null,n,null,t)}return e[t]},e.jA=function(t){if(0>t&&P(t,">= 0",Ml,"removeColumnDefinition:idx"),0!==this.columnCount){t=Math.round(t);var e=this.colDefs,n=e[t];if(n){e[t]=void 0;for(var i=e.length-1;0<=i&&void 0===e[i--];)e.length--;this.cb(gn,"coldefs",this,n,null,t,null),this.v()}}},e.Gy=function(t){var e=null;return t.isRow?e=this.Fb(t.index):t.isRow||(e=this.Eb(t.index)),e&&uu(e,t),this},e.Hy=function(t,e){return(t=this.Fb(t))&&uu(t,new lu(e)),this},e.By=function(t,e){return(t=this.Eb(t))&&uu(t,new lu(e)),this},e.nz=function(t){if(0>t||this.type!==Ml.Table||0===this.rowCount)return-1;for(var e=0,n=this.rowDefs,i=n.length,r=this.topIndex;r<i;r++){var o=n[r];if(void 0!==o&&t<(e+=o.total))break}return r},e.fz=function(t){if(0>t||this.type!==Ml.Table||0===this.columnCount)return-1;for(var e=0,n=this.colDefs,i=n.length,r=this.leftIndex;r<i;r++){var o=n[r];if(void 0!==o&&t<(e+=o.total))break}return r},e.Fz=function(t,e){if(void 0===e&&(e=new pt(NaN,NaN)),this.type!==Ml.Graduated)return e.h(NaN,NaN),e;t=Math.min(Math.max(t,this.graduatedMin),this.graduatedMax);var n=this.Pb();return n.geometry.Pu((t-this.graduatedMin)/this.graduatedRange,e),n.transform.Ga(e)},e.Gz=function(t){if(this.type!==Ml.Graduated)return NaN;var e=this.Pb();return e.transform.Cd(t),e.geometry.xx(t)*this.graduatedRange+this.graduatedMin},e.Uy=function(t){void 0===t&&(t=!1);var e=this.copy();return Dl(e,(function(t){t instanceof Ml&&(t.allBindings=null,t.ub=null);var e=t.localBindings;null!==e&&(t.localBindings=null,e.each((function(e){t.bind(e.copy())}))),null!==(e=t.animationTriggers)&&(t.animationTriggers=null,e.each((function(e){t.Jv(e.value.copy())})))})),t&&Xl(e),e},e.La=function(t){var e=this.allBindings;if(null!==e)for(void 0===t&&(t=""),e=e.iterator;e.next();){var n=e.value,i=n.sourceProperty;if((""===t||""===i||i===t)&&(i=n.targetProperty,null!==n.converter||""!==i)){i=this.data;var r=n.sourceName;if(null!==r){if(""===r)i=this;else if("/"===r)i=this;else if("."===r)i=this;else if(".."===r)i=this;else if(null===(i=this.fb(r)))continue}else if(n.isToModel){if(null===(i=this.diagram))continue;i=i.model.modelData}var o=this,a=n.Ai;if(-1!==a){if(null===(o=this.ks(a)))continue}else null!==n.xd&&(o=n.xd);if("/"===r?i=o.part:"."===r?i=o:".."===r&&(i=o.panel),0!==(r=n.to)){if(!(o instanceof Ml))continue;1===r?o=o.Eb(n.wl):2===r&&(o=o.Fb(n.wl))}void 0!==o&&n.Mv(o,i)}}},e.sx=function(t){return null==t||null===this.ge?null:this.ge.I(t)},e.mv=function(){for(var t=ql(this);this.O.length>t;)this.pc(this.O.length-1,!1);Kl(this,this.itemArray)},d.Object.defineProperties(Ml.prototype,{type:{get:function(){return this.na},set:function(t){var e=this.na;e!==t&&(this.na=t,this.isAtomic=this.na===Ml.Grid,this.v(),this.g("type",e,t))}},elements:{get:function(){return this.O.iterator}},naturalBounds:{get:function(){return this.dc}},padding:{get:function(){return this.yb},set:function(t){"number"==typeof t?(0>t&&P(t,">= 0",Ml,"padding"),t=new Xt(t)):(0>t.left&&P(t.left,">= 0",Ml,"padding:value.left"),0>t.right&&P(t.right,">= 0",Ml,"padding:value.right"),0>t.top&&P(t.top,">= 0",Ml,"padding:value.top"),0>t.bottom&&P(t.bottom,">= 0",Ml,"padding:value.bottom"));var e=this.yb;e.D(t)||(this.yb=t=t.J(),this.v(),this.g("padding",e,t))}},defaultAlignment:{get:function(){return this.Tm},set:function(t){var e=this.Tm;e.D(t)||(this.Tm=t=t.J(),this.v(),this.g("defaultAlignment",e,t))}},defaultStretch:{get:function(){return this.Uf},set:function(t){var e=this.Uf;e!==t&&(this.Uf=t,this.v(),this.g("defaultStretch",e,t))}},defaultSeparatorPadding:{get:function(){return null!==this.T?this.T.Qp:Qt},set:function(t){"number"==typeof t&&(t=new Xt(t));var e=this.defaultSeparatorPadding;e.D(t)||(t=t.J(),null===this.T&&(this.T=new su),this.T.Qp=t,this.v(),this.g("defaultSeparatorPadding",e,t))}},defaultRowSeparatorStroke:{get:function(){return null!==this.T?this.T.ia:null},set:function(t){var e=this.defaultRowSeparatorStroke;e!==t&&(null===t||"string"==typeof t||t instanceof Ds)&&(t instanceof Ds&&t.freeze(),null===this.T&&(this.T=new su),this.T.ia=t,this.N(),this.g("defaultRowSeparatorStroke",e,t))}},defaultRowSeparatorStrokeWidth:{get:function(){return null!==this.T?this.T.Ha:1},set:function(t){var e=this.defaultRowSeparatorStrokeWidth;e!==t&&isFinite(t)&&0<=t&&(null===this.T&&(this.T=new su),this.T.Ha=t,this.v(),this.g("defaultRowSeparatorStrokeWidth",e,t))}},defaultRowSeparatorDashArray:{get:function(){return null!==this.T?this.T.V:null},set:function(t){var e=this.defaultRowSeparatorDashArray;if(e!==t){if(null!==t){for(var n=t.length,i=0,r=0;r<n;r++){var o=t[r];"number"==typeof o&&0<=o&&isFinite(o)||x("defaultRowSeparatorDashArray value "+o+" at index "+r+" must be a positive number or zero."),i+=o}if(0===i){if(null===e)return;t=null}}null===this.T&&(this.T=new su),this.T.V=t,this.N(),this.g("defaultRowSeparatorDashArray",e,t)}}},defaultColumnSeparatorStroke:{get:function(){return null!==this.T?this.T.u:null},set:function(t){var e=this.defaultColumnSeparatorStroke;e!==t&&(null===t||"string"==typeof t||t instanceof Ds)&&(t instanceof Ds&&t.freeze(),null===this.T&&(this.T=new su),this.T.u=t,this.N(),this.g("defaultColumnSeparatorStroke",e,t))}},defaultColumnSeparatorStrokeWidth:{get:function(){return null!==this.T?this.T.F:1},set:function(t){var e=this.defaultColumnSeparatorStrokeWidth;e!==t&&isFinite(t)&&0<=t&&(null===this.T&&(this.T=new su),this.T.F=t,this.v(),this.g("defaultColumnSeparatorStrokeWidth",e,t))}},defaultColumnSeparatorDashArray:{get:function(){return null!==this.T?this.T.o:null},set:function(t){var e=this.defaultColumnSeparatorDashArray;if(e!==t){if(null!==t){for(var n=t.length,i=0,r=0;r<n;r++){var o=t[r];"number"==typeof o&&0<=o&&isFinite(o)||x("defaultColumnSeparatorDashArray value "+o+" at index "+r+" must be a positive number or zero."),i+=o}if(0===i){if(null===e)return;t=null}}null===this.T&&(this.T=new su),this.T.o=t,this.N(),this.g("defaultColumnSeparatorDashArray",e,t)}}},inRowsCols:{get:function(){return null!==this.T?this.T.nb:null},set:function(t){null===this.T&&(this.T=new su),this.T.nb=t}},viewboxStretch:{get:function(){return this.xo},set:function(t){var e=this.xo;e!==t&&(this.xo=t,this.v(),this.g("viewboxStretch",e,t))}},gridCellSize:{get:function(){return this.jn},set:function(t){var e=this.jn;if(!e.D(t)){t.w()&&0!==t.width&&0!==t.height||x("Invalid Panel.gridCellSize: "+t),this.jn=t.J();var n=this.diagram;null!==n&&this===n.grid&&vo(n),this.N(),this.g("gridCellSize",e,t)}}},gridOrigin:{get:function(){return this.kn},set:function(t){var e=this.kn;if(!e.D(t)){t.w()||x("Invalid Panel.gridOrigin: "+t),this.kn=t.J();var n=this.diagram;null!==n&&this===n.grid&&vo(n),this.N(),this.g("gridOrigin",e,t)}}},graduatedMin:{get:function(){return null!==this.ra?this.ra.lq:0},set:function(t){var e=this.graduatedMin;e!==t&&(null===this.ra&&(this.ra=new au),this.ra.lq=t,this.v(),this.g("graduatedMin",e,t),Qa(this)&&(null!==(t=this.part)&&Oa(this,t,"graduatedRange")))}},graduatedMax:{get:function(){return null!==this.ra?this.ra.F:100},set:function(t){var e=this.graduatedMax;e!==t&&(null===this.ra&&(this.ra=new au),this.ra.F=t,this.v(),this.g("graduatedMax",e,t),Qa(this)&&(null!==(t=this.part)&&Oa(this,t,"graduatedRange")))}},graduatedRange:{get:function(){return this.graduatedMax-this.graduatedMin}},graduatedTickUnit:{get:function(){return null!==this.ra?this.ra.ia:10},set:function(t){var e=this.graduatedTickUnit;e!==t&&0<t&&(null===this.ra&&(this.ra=new au),this.ra.ia=t,this.v(),this.g("graduatedTickUnit",e,t))}},graduatedTickBase:{get:function(){return null!==this.ra?this.ra.V:0},set:function(t){var e=this.graduatedTickBase;e!==t&&(null===this.ra&&(this.ra=new au),this.ra.V=t,this.v(),this.g("graduatedTickBase",e,t))}},graduatedMarks:{get:function(){return null!==this.ra?this.ra.u:null},set:function(t){null!==this.ra?this.ra.u=t:null!==t&&(this.ra=new au,this.ra.u=t)}},graduatedBounds:{get:function(){return null!==this.ra?this.ra.j:null},set:function(t){null!==this.ra?this.ra.j=t:null!==t&&(this.ra=new au,this.ra.j=t)}},graduatedIntervals:{get:function(){return null!==this.ra?this.ra.o:null},set:function(t){null!==this.ra?this.ra.o=t:null!==t&&(this.ra=new au,this.ra.o=t)}},temporaryTextBlock:{get:function(){return null!==this.ra?this.ra.Zh:null},set:function(t){null!==this.ra?this.ra.Zh=t:null!==t&&(this.ra=new au,this.ra.Zh=t)}},panelLayoutState:{get:function(){return this.F},set:function(t){this.F=t}},Te:{get:function(){return 0!=(8388608&this.l)},set:function(t){0!=(8388608&this.l)!==t&&(this.l^=8388608)}},rowDefs:{get:function(){return null===this.T&&(this.T=new su),this.T.Pc}},rowCount:{get:function(){return null===this.T?0:this.rowDefs.length}},colDefs:{get:function(){return null===this.T&&(this.T=new su),this.T.Oc}},columnCount:{get:function(){return null===this.T?0:this.colDefs.length}},rowSizing:{get:function(){return null!==this.T?this.T.ob:fu},set:function(t){var e=this.rowSizing;e!==t&&(null===this.T&&(this.T=new su),this.T.ob=t,this.v(),this.g("rowSizing",e,t))}},columnSizing:{get:function(){return null!==this.T?this.T.j:fu},set:function(t){var e=this.columnSizing;e!==t&&(null===this.T&&(this.T=new su),this.T.j=t,this.v(),this.g("columnSizing",e,t))}},topIndex:{get:function(){return null!==this.T?this.T.Hb:0},set:function(t){var e=this.topIndex;e!==t&&((!isFinite(t)||0>t)&&x("Panel.topIndex must be greater than zero and a real number, not: "+t),null===this.T&&(this.T=new su),this.T.Hb=t,this.v(),this.g("topIndex",e,t))}},leftIndex:{get:function(){return null!==this.T?this.T.hb:0},set:function(t){var e=this.leftIndex;e!==t&&((!isFinite(t)||0>t)&&x("Panel.leftIndex must be greater than zero and a real number, not: "+t),null===this.T&&(this.T=new su),this.T.hb=t,this.v(),this.g("leftIndex",e,t))}},data:{get:function(){return this.ub},set:function(t){var e=this.ub;if(e!==t){var n=this instanceof Sc&&!(this instanceof Yc);Xl(this),this.ub=t;var i=this.diagram;null!==i&&(n?(n=i.partManager,this instanceof xh?(null!==e&&n.bf.remove(e),null!==t&&n.bf.add(t,this)):this instanceof Sc&&(null!==e&&n.cf.remove(e),null!==t&&n.cf.add(t,this))):null!==(n=this.panel)&&null!==n.ge&&(null!==e&&n.ge.remove(e),null!==t&&n.ge.add(t,this))),this.g("data",e,t),null!==i&&i.undoManager.isUndoingRedoing||null!==t&&this.La()}}},itemIndex:{get:function(){return this.zn},set:function(t){var e=this.zn;e!==t&&(this.zn=t,this.g("itemIndex",e,t))}},allBindings:{get:function(){return null!==this.A?this.A.nb:null},set:function(t){this.localBindings!==t&&(null===this.A&&(this.A=new ds),this.A.nb=t)}},itemArray:{get:function(){return this.Hh},set:function(t){var e=this.Hh;if(e!==t||null!==t&&function(t,e){for(var n=(t=t.O.s).length,i=e.length,r=0,o=null;r<n&&!((o=t[r])instanceof Ml&&null!==o.data);)o=t[++r];if(n-r!==i)return!0;if(null===o)return 0<i;for(var a=0;r<n&&a<i;){if(!((o=t[r])instanceof Ml)||o.data!==e[a])return!0;r++,a++}return!1}(this,t)){var n=this.diagram;e!==t&&(null!==n&&null!==e&&of(n.partManager,this,n),this.Hh=t,null!==n&&null!==t&&rf(n.partManager,this)),this.g("itemArray",e,t),null!==n&&n.undoManager.isUndoingRedoing||Kl(this,t)}}},itemTemplate:{get:function(){return null===this.itemTemplateMap?null:this.itemTemplateMap.I("")},set:function(t){if(null===this.itemTemplateMap){if(null===t)return;this.itemTemplateMap=new ft}var e=this.itemTemplateMap.I("");e!==t&&((t instanceof Sc||t.isPanelMain)&&x("Panel.itemTemplate must not be a Part or be Panel.isPanelMain: "+t),this.itemTemplateMap.add("",t),this.g("itemTemplate",e,t),null!==(t=this.diagram)&&t.undoManager.isUndoingRedoing||this.mv())}},itemTemplateMap:{get:function(){return null!==this.A?this.A.Pc:null},set:function(t){var e=this.itemTemplateMap;if(e!==t){for(var n=t.iterator;n.next(););Ba(this),this.A.Pc=t,this.g("itemTemplateMap",e,t),null!==(t=this.diagram)&&t.undoManager.isUndoingRedoing||this.mv()}}},itemCategoryProperty:{get:function(){return null!==this.A?this.A.Oc:"category"},set:function(t){var e=this.itemCategoryProperty;e!==t&&(Ba(this),this.A.Oc=t,this.g("itemCategoryProperty",e,t))}},isAtomic:{get:function(){return 0!=(1048576&this.l)},set:function(t){var e=0!=(1048576&this.l);e!==t&&(this.l^=1048576,this.g("isAtomic",e,t))}},isClipping:{get:function(){return 0!=(2097152&this.l)},set:function(t){var e=0!=(2097152&this.l);e!==t&&(this.l^=2097152,this instanceof gh&&(this.tb=null),this.v(),this.g("isClipping",e,t))}},isOpposite:{get:function(){return 0!=(33554432&this.l)},set:function(t){var e=0!=(33554432&this.l);e!==t&&(this.l^=33554432,this.v(),this.g("isOpposite",e,t))}},isEnabled:{get:function(){return 0!=(4194304&this.l)},set:function(t){var e=0!=(4194304&this.l);if(e!==t){var n=null===this.panel||this.panel.If();this.l^=4194304,this.g("isEnabled",e,t),null!==(e=this.diagram)&&e.undoManager.isUndoingRedoing||n&&eu(this,this,t)}}},alignmentFocusName:{get:function(){return this.$e},set:function(t){var e=this.$e;e!==t&&(this.$e=t,this.v(),this.g("alignmentFocusName",e,t))}}}),d.Object.defineProperties(Ml,{Position:{get:function(){return ou.I("Position")}},Horizontal:{get:function(){return ou.I("Horizontal")}},Vertical:{get:function(){return ou.I("Vertical")}},Spot:{get:function(){return ou.I("Spot")}},Auto:{get:function(){return ou.I("Auto")}},Table:{get:function(){return ou.I("Table")}},Viewbox:{get:function(){return ou.I("Viewbox")}},TableRow:{get:function(){return ou.I("TableRow")}},TableColumn:{get:function(){return ou.I("TableColumn")}},Link:{get:function(){return ou.I("Link")}},Grid:{get:function(){return ou.I("Grid")}},Graduated:{get:function(){return ou.I("Graduated")}}}),Ml.prototype.rebuildItemElements=Ml.prototype.mv,Ml.prototype.findItemPanelForData=Ml.prototype.sx,Ml.prototype.updateTargetBindings=Ml.prototype.La,Ml.prototype.copyTemplate=Ml.prototype.Uy,Ml.prototype.graduatedValueForPoint=Ml.prototype.Gz,Ml.prototype.graduatedPointForValue=Ml.prototype.Fz,Ml.prototype.findColumnForLocalX=Ml.prototype.fz,Ml.prototype.findRowForLocalY=Ml.prototype.nz,Ml.prototype.addColumnDefinition=Ml.prototype.By,Ml.prototype.addRowDefinition=Ml.prototype.Hy,Ml.prototype.addRowColumnDefinition=Ml.prototype.Gy,Ml.prototype.removeColumnDefinition=Ml.prototype.jA,Ml.prototype.getColumnDefinition=Ml.prototype.Eb,Ml.prototype.removeRowDefinition=Ml.prototype.oA,Ml.prototype.getRowDefinition=Ml.prototype.Fb,Ml.prototype.removeAt=Ml.prototype.mb,Ml.prototype.remove=Ml.prototype.remove,Ml.prototype.insertAt=Ml.prototype.Gb,Ml.prototype.elt=Ml.prototype.M,Ml.prototype.add=Ml.prototype.add,Ml.prototype.findObject=Ml.prototype.fb,Ml.prototype.findInVisualTree=Ml.prototype.Nl,Ml.prototype.walkVisualTreeFrom=Ml.prototype.qm,Ml.prototype.findMainElement=Ml.prototype.Pb;var iu=!1,ru=null,ou=new ft;function au(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}function su(){this.Pc=[],this.Oc=[],this.j=this.ob=fu,this.hb=this.Hb=0,this.Qp=Qt,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}function lu(t){$(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=ke,this.pa=this.oc=this.oa=0,this.be=null,this.oo=hu,this.hg=ma,this.lo=this.dg=null,this.mo=NaN,this.Ma=this.tj=null,this.Pm=!1,t&&(Object.assign(this,t),void 0!==t.column?(this.isRow=!1,this.index=t.column):void 0!==t.row&&(this.isRow=!0,this.index=t.row))}function uu(t,e){e.isRow?t.height=e.height:t.width=e.width,t.minimum=e.minimum,t.maximum=e.maximum,t.alignment=e.alignment,t.stretch=e.stretch,t.sizing=e.sizing,t.dg=null===e.separatorPadding?null:e.separatorPadding.J(),t.separatorStroke=e.separatorStroke,t.separatorStrokeWidth=e.separatorStrokeWidth,t.tj=null,e.separatorDashArray&&(t.tj=M(e.separatorDashArray)),t.background=e.background,t.coversSeparators=e.coversSeparators,t.be=e.be}function cu(t){if(t.sizing===hu){var e=t.Me;return t.isRow?e.rowSizing:e.columnSizing}return t.sizing}Ml.className="Panel",Ml.definePanelLayout=nu,nu("Position",new dl),nu("Vertical",new pl),nu("Auto",new vl),nu("Link",new kl),au.prototype.copy=function(){var t=new au;return t.lq=this.lq,t.F=this.F,t.ia=this.ia,t.V=this.V,t.u=this.u,t.j=this.j,t.o=this.o,t.Zh=this.Zh,t},au.className="GradPanelSettings",su.prototype.copy=function(t){for(var e=new su,n=this.Pc,i=n.length,r=e.Pc,o=0;o<i;o++)if(void 0!==n[o]){var a=n[o].copy();a.wi(t),r[o]=a}for(i=(n=this.Oc).length,r=e.Oc,o=0;o<i;o++)void 0!==n[o]&&((a=n[o].copy()).wi(t),r[o]=a);return e.ob=this.ob,e.j=this.j,e.Hb=this.Hb,e.hb=this.hb,e.Qp=this.Qp.J(),e.Ha=this.Ha,e.ia=this.ia,e.V=this.V,e.F=this.F,e.u=this.u,e.o=this.o,e.nb=this.nb,e},su.className="TablePanelSettings",lu.prototype.copy=function(){var t=new lu;return t.uq=this.uq,t.Za=this.Za,t.Hc=this.Hc,t.jj=this.jj,t.hj=this.hj,t.Jb=this.Jb,t.oa=this.oa,t.oc=this.oc,t.pa=this.pa,t.hg=this.hg,t.oo=this.oo,null===this.dg?t.dg=null:t.dg=this.dg.J(),t.lo=this.lo,t.mo=this.mo,t.tj=null,null!==this.tj&&(t.separatorDashArray=M(this.separatorDashArray)),t.Ma=this.Ma,t.Pm=this.Pm,t.be=this.be,t},(e=lu.prototype).qb=function(t){t.classType===lu&&(this.sizing=t)},e.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+et(this)},e.wi=function(t){this.Me=t},e.Io=function(t){var e=0,n=this.Me;if(this.index!==t&&(null===(t=this.separatorStroke)&&null!==n&&(t=this.isRow?n.defaultRowSeparatorStroke:n.defaultColumnSeparatorStroke),null!==t&&(e=this.separatorStrokeWidth,isNaN(e)&&(e=null!==n?this.isRow?n.defaultRowSeparatorStrokeWidth:n.defaultColumnSeparatorStrokeWidth:0))),null===(t=this.dg)){if(null===n)return e;t=n.defaultSeparatorPadding}return e+(this.isRow?t.top:t.left)},e.Wc=function(){var t=0,e=this.Me,n=0,i=this.isRow;if(null!==e&&e.type===Ml.Table)for(var r=i?e.rowDefs.length:e.colDefs.length,o=0;o<r;o++){var a=i?e.rowDefs[o]:e.colDefs[o];if(void 0!==a&&0!==a.oa){n=a.index;break}}if(this.index!==n&&(null===(n=this.separatorStroke)&&null!==e&&(n=i?e.defaultRowSeparatorStroke:e.defaultColumnSeparatorStroke),null!==n&&(t=this.separatorStrokeWidth,isNaN(t)&&(t=null!==e?i?e.defaultRowSeparatorStrokeWidth:e.defaultColumnSeparatorStrokeWidth:0))),null===(i=this.dg)){if(null===e)return t;i=e.defaultSeparatorPadding}return t+(this.isRow?i.top+i.bottom:i.left+i.right)},e.Ob=function(t,e,n){var i=this.Me;if(null!==i&&(i.cb(fn,t,this,e,n,void 0,void 0),null!==this.be&&(null!==(e=i.diagram)&&!e.skipsModelSourceBindings&&(null!==(i=i.ih())&&null!==(e=i.data)))))for(n=this.be.iterator;n.next();)n.value.sp(this,e,t,i)},e.bind=function(t,e,n,i){var r=null;return(r="string"==typeof t?new Hf(t,e,n,i):t).xd=this,null!==(t=this.panel)&&(null!==(e=t.ih())&&Yl(e)&&x("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+r+" on "+t)),null===this.be&&(this.be=new K),this.be.add(r),this},d.Object.defineProperties(lu.prototype,{panel:{get:function(){return this.Me}},isRow:{get:function(){return this.uq},set:function(t){this.uq=t}},index:{get:function(){return this.Za},set:function(t){this.Za=t}},height:{get:function(){return this.Hc},set:function(t){var e=this.Hc;e!==t&&(0>t&&P(t,">= 0",lu,"height"),this.Hc=t,this.actual=this.oa,null!==this.panel&&this.panel.v(),this.Ob("height",e,t))}},width:{get:function(){return this.Hc},set:function(t){var e=this.Hc;e!==t&&(0>t&&P(t,">= 0",lu,"width"),this.Hc=t,this.actual=this.oa,null!==this.panel&&this.panel.v(),this.Ob("width",e,t))}},minimum:{get:function(){return this.jj},set:function(t){var e=this.jj;e!==t&&((0>t||!isFinite(t))&&P(t,">= 0",lu,"minimum"),this.jj=t,this.actual=this.oa,null!==this.panel&&this.panel.v(),this.Ob("minimum",e,t))}},maximum:{get:function(){return this.hj},set:function(t){var e=this.hj;e!==t&&(0>t&&P(t,">= 0",lu,"maximum"),this.hj=t,this.actual=this.oa,null!==this.panel&&this.panel.v(),this.Ob("maximum",e,t))}},alignment:{get:function(){return this.Jb},set:function(t){var e=this.Jb;e.D(t)||(this.Jb=t.J(),null!==this.panel&&this.panel.v(),this.Ob("alignment",e,t))}},stretch:{get:function(){return this.hg},set:function(t){var e=this.hg;e!==t&&(this.hg=t,null!==this.panel&&this.panel.v(),this.Ob("stretch",e,t))}},separatorPadding:{get:function(){return this.dg},set:function(t){"number"==typeof t&&(t=new Xt(t));var e=this.dg;null!==t&&null!==e&&e.D(t)||(null!==t&&(t=t.J()),this.dg=t,null!==this.panel&&this.panel.v(),this.Ob("separatorPadding",e,t))}},separatorStroke:{get:function(){return this.lo},set:function(t){var e=this.lo;e!==t&&(null!==t&&Xs(t,"RowColumnDefinition.separatorStroke"),t instanceof Ds&&t.freeze(),this.lo=t,null!==this.panel&&this.panel.v(),this.Ob("separatorStroke",e,t))}},separatorStrokeWidth:{get:function(){return this.mo},set:function(t){var e=this.mo;e!==t&&(this.mo=t,null!==this.panel&&this.panel.v(),this.Ob("separatorStrokeWidth",e,t))}},separatorDashArray:{get:function(){return this.tj},set:function(t){var e=this.tj;if(e!==t){if(null!==t){for(var n=t.length,i=0,r=0;r<n;r++){var o=t[r];"number"==typeof o&&0<=o&&isFinite(o)||x("separatorDashArray value "+o+" at index "+r+" must be a positive number or zero."),i+=o}if(0===i){if(null===e)return;t=null}}this.tj=t,null!==this.panel&&this.panel.N(),this.Ob("separatorDashArray",e,t)}}},background:{get:function(){return this.Ma},set:function(t){var e=this.Ma;e!==t&&(null!==t&&Xs(t,"RowColumnDefinition.background"),t instanceof Ds&&t.freeze(),this.Ma=t,null!==this.panel&&this.panel.N(),this.Ob("background",e,t))}},coversSeparators:{get:function(){return this.Pm},set:function(t){var e=this.Pm;e!==t&&(this.Pm=t,null!==this.panel&&this.panel.N(),this.Ob("coversSeparators",e,t))}},sizing:{get:function(){return this.oo},set:function(t){var e=this.oo;e!==t&&(this.oo=t,null!==this.panel&&this.panel.v(),this.Ob("sizing",e,t))}},actual:{get:function(){return this.oa},set:function(t){this.oa=isNaN(this.Hc)?Math.max(Math.min(this.hj,t),this.jj):Math.max(Math.min(this.hj,this.Hc),this.jj)}},measured:{get:function(){return this.oc},set:function(t){this.oc=t}},total:{get:function(){return this.oa+this.Wc()}},position:{get:function(){return this.pa},set:function(t){this.pa=t}}}),lu.prototype.computeEffectiveSpacing=lu.prototype.Wc,lu.prototype.computeEffectiveSpacingTop=lu.prototype.Io;var hu=new G(lu,"Default",0),du=new G(lu,"None",1),fu=new G(lu,"ProportionalExtra",2);function pu(t,e){Ia.call(this),this.Rd=this.ua=null,this.an="None",this.xc=this.Ui="black",this.ig=1,this.Na=this.Yg=null,this.Vn=this.Un=NaN,this.fa=null,"string"==typeof t?this.figure=t:t&&Object.assign(this,t),e&&Object.assign(this,e)}function gu(t){null===t.Na?t.Na=new Cu:t.Na.nc&&(t.Na=t.Na.copy())}function mu(t,e,n,i){var r=n.length;if(!(4>r)){var o=i.measuredBounds,a=Math.max(1,o.width);o=o.height;for(var s,l,u,c,h,d,f=n[0],p=n[1],g=0,m=T(),v=2;v<r;v+=2)0===(u=(s=n[v])-f)&&(u=.001),c=(f=(l=n[v+1])-p)/u,h=Math.atan2(f,u),d=Math.sqrt(u*u+f*f),m.push([u,h,c,d]),g+=d,f=s,p=l;f=n[0],p=n[1],u=i.measuredBounds.width,i instanceof pu&&(u-=i.strokeWidth),1>u&&(u=1),r=n=u,l=0!==(s=a/2),u=(d=m[v=0])[0],h=d[1],c=d[2],d=d[3];for(var y=0;.1<=g;){if(0===y&&(l?(r=n,r-=s,g-=s,l=!1):r=n,0===r&&(r=1)),r>g)return void N(m);r>d?(y=r-d,r=d):y=0;var w=Math.sqrt(r*r/(1+c*c));if(0>u&&(w=-w),f+=w,p+=c*w,t.translate(f,p),t.rotate(h),t.translate(-a/2,-o/2),0===y&&i.hh(t,e),t.translate(a/2,o/2),t.rotate(-h),t.translate(-f,-p),g-=r,d-=r,0!==y){if(++v===m.length)return void N(m);u=(d=m[v])[0],h=d[1],c=d[2],d=d[3],r=y}}N(m)}}function vu(t){var e=t.geometryStretch;return null!==t.Rd?e===ma?ha:e:e===ma?ku[t.figure].defaultStretch:e}function yu(t,e,n,i,r){return(e=(t=n.x-t)*t+(e=n.y-e)*e)<i?(r.x=n.x,r.y=n.y,e):i}function wu(t,e,n,i,r,o,a,s,l){if(_e.$(t,n)&&_e.$(e,i)||_e.$(r,a)&&_e.$(o,s))return!1;var u=!1,c=(r-a)*(e-i)-(o-s)*(t-n);return 0!==c&&(l.x=((r*s-o*a)*(t-n)-(r-a)*(t*i-e*n))/c,l.y=((r*s-o*a)*(e-i)-(o-s)*(t*i-e*n))/c,(t>n?t-n:n-t)<(e>i?e-i:i-e)?(t=e<i?e:i,e=e<i?i:e,(l.y>t||_e.$(l.y,t))&&(l.y<e||_e.$(l.y,e))&&(u=!0)):(e=t<n?t:n,t=t<n?n:t,(l.x>e||_e.$(l.x,e))&&(l.x<t||_e.$(l.x,t))&&(u=!0)),u)}function bu(t,e,n,i){if(!t.rs(e,n,i))return!1;t=e.x,e=e.y;var r=n.x,o=n.y;return n=i.x,i=i.y,t===r?(e<o?(t=e,e=o):t=o,i>=t&&i<=e):(t<r?(i=t,t=r):i=r,n>=i&&n<=t)}function xu(t){var e=t.diagram;null!==e&&e.undoManager.isUndoingRedoing||(t.segmentOrientation=ed,"None"!==t.toArrow?(t.segmentIndex=-1,t.alignmentFocus=Ne):"None"!==t.fromArrow&&(t.segmentIndex=0,t.alignmentFocus=new De(1-Ne.x,Ne.y)))}function Su(t){var e=Pu[t];if(void 0===e){var n=t.toLowerCase();if("none"===n)return"None";if(void 0===(e=Pu[n])){var i,r=null;for(i in _e.um)if(i.toLowerCase()===n){r=i;break}if(null!==r)return t=Ze.parse(_e.um[r],!1),Pu[r]=t,n!==r&&(Pu[n]=r),r}}return"string"==typeof e?e:e instanceof Ze?t:null}lu.className="RowColumnDefinition",lu.Default=hu,lu.None=du,lu.ProportionalExtra=fu,h(pu,Ia),pu.prototype.cloneProtected=function(t){Ia.prototype.cloneProtected.call(this,t),t.ua=this.ua,t.Rd=this.Rd,t.an=this.an,t.Ui=this.Ui,t.xc=this.xc,t.ig=this.ig,null!==this.Yg&&(t.Yg=M(this.Yg)),null!==this.Na&&(t.Na=this.Na.nc?this.Na:this.Na.copy()),t.Un=this.Un,t.Vn=this.Vn,null!==this.fa&&(t.fa=this.fa.copy())},(e=pu.prototype).th=function(){Ia.prototype.th.call(this),null!==this.Na&&(this.Na.nc=!0)},e.qb=function(t){t===da||t===fa||t===va||t===ma?this.geometryStretch=t:Ia.prototype.qb.call(this,t)},e.toString=function(){return"Shape("+("None"!==this.figure?this.figure:"None"!==this.toArrow?this.toArrow:this.fromArrow)+")#"+et(this)},e.hh=function(t,e){var n=this.xc,i=this.Ui;if(null!==n||null!==i){var r=this.ua;if(null!==r){t.yc();var o=this.actualBounds,a=this.naturalBounds;null!==i&&Za(this,t,i,!0,!1,a,o);var s=this.part,l=this.ig;if(null===n||0!==l||null===s||!this.isPanelMain&&s.Pb()!==this||(l=s.type===Ml.Link&&s instanceof Yc&&"Selection"===s.category&&s.adornedObject instanceof pu&&s.adornedPart.Pb()===s.adornedObject?s.adornedObject.strokeWidth:0),0===l&&(n=null),null!==n&&0!==l&&(Za(this,t,n,!1,!1,a,o),t.lineWidth=l,t.lineJoin=this.strokeJoin,t.lineCap=this.strokeCap,t.miterLimit=this.strokeMiterLimit),o=!1,s&&e.Gf("drawShadows")&&(o=s.isShadowed),!1===t.Il&&(o=!1),s=!0,null===n||null!==i&&"transparent"!==i||(s=!1),a=!1,null!==(l=this.strokeDashArray)&&(a=!0,t.js(l,this.strokeDashOffset)),r.type===Ze.j)t.beginPath(),t.moveTo(r.startX,r.startY),t.lineTo(r.endX,r.endY),null!==n&&t.jk(),t.Se();else if(r.type===Ze.u){var u=r.startX;l=r.startY;var c=r.endX,h=r.endY;r=Math.min(u,c);var d=Math.min(l,h);u=Math.abs(c-u),l=Math.abs(h-l),t.beginPath(),t.rect(r,d,u,l),null!==i&&t.ng(i),null!==n&&(s&&o&&Ls(t),t.jk(),s&&o&&Ts(t)),t.Se()}else if(r.type===Ze.F)u=r.startX,l=r.startY,c=r.endX,h=r.endY,r=Math.abs(c-u)/2,d=Math.abs(h-l)/2,u=Math.min(u,c)+r,l=Math.min(l,h)+d,t.beginPath(),t.moveTo(u,l-d),t.bezierCurveTo(u+_e.wg*r,l-d,u+r,l-_e.wg*d,u+r,l),t.bezierCurveTo(u+r,l+_e.wg*d,u+_e.wg*r,l+d,u,l+d),t.bezierCurveTo(u-_e.wg*r,l+d,u-r,l+_e.wg*d,u-r,l),t.bezierCurveTo(u-r,l-_e.wg*d,u-_e.wg*r,l-d,u,l-d),t.closePath(),null!==i&&t.ng(i),null!==n&&(s&&o&&Ls(t),t.jk(),s&&o&&Ts(t)),t.Se();else if(r.type===Ze.o)for(l=(r=r.figures).length,d=0;d<l;d++){u=r.s[d],t.beginPath(),t.moveTo(u.startX,u.startY),h=(c=u.segments.s).length;for(var f=null,p=0;p<h;p++){var g=c[p];switch(g.type){case nn:t.moveTo(g.endX,g.endY);break;case rn:t.lineTo(g.endX,g.endY);break;case on:t.bezierCurveTo(g.point1X,g.point1Y,g.point2X,g.point2Y,g.endX,g.endY);break;case an:t.quadraticCurveTo(g.point1X,g.point1Y,g.endX,g.endY);break;case sn:if(g.radiusX===g.radiusY){var m=Math.PI/180;t.arc(g.point1X,g.point1Y,g.radiusX,g.startAngle*m,(g.startAngle+g.sweepAngle)*m,0>g.sweepAngle,null!==f?f.endX:u.startX,null!==f?f.endY:u.startY)}else if(0===(m=(f=tn(g,u)).length))t.lineTo(g.centerX,g.centerY);else for(var v=0;v<m;v++){var y=f[v];0===v&&t.lineTo(y[0],y[1]),t.bezierCurveTo(y[2],y[3],y[4],y[5],y[6],y[7])}break;case ln:if(v=m=0,null!==f&&f.type===sn){if(0===(y=(f=tn(f,u)).length)){t.lineTo(g.endX,g.endY);break}null!==(f=f[y-1]||null)&&(m=f[6],v=f[7])}else m=null!==f?f.endX:u.startX,v=null!==f?f.endY:u.startY;if(0===(m=(f=en(g,u,m,v)).length)){t.lineTo(g.endX,g.endY);break}for(v=0;v<m;v++)y=f[v],t.bezierCurveTo(y[2],y[3],y[4],y[5],y[6],y[7]);break;default:x("Segment not of valid type: "+g.type)}g.isClosed&&t.closePath(),f=g}c=u.isFilled,o?u.isShadowed?(!0===c&&"transparent"!==i&&null!==i&&t.ng(i,u.isEvenOdd),null!==n&&(c&&s&&Ls(t),t.jk(),c&&s&&Ts(t))):(Ls(t),c&&"transparent"!==i&&null!==i&&t.ng(i,u.isEvenOdd),null!==n&&t.jk(),Ts(t)):(c&&null!==i&&t.ng(i,u.isEvenOdd),null!==n&&t.jk()),t.Se(d)}if(a&&t.fs(),null!==this.pathPattern){if((n=this.pathPattern).measure(1/0,1/0),i=n.measuredBounds,n.arrange(0,0,i.width,i.height),o=this.geometry,t.save(),t.beginPath(),i=T(),o.type===Ze.j)i.push(o.startX),i.push(o.startY),i.push(o.endX),i.push(o.endY),mu(t,e,i,n);else if(o.type===Ze.o)for(o=o.figures.iterator;o.next();){for(s=o.value,i.length=0,i.push(s.startX),i.push(s.startY),l=a=s.startX,d=r=s.startY,c=(u=s.segments.s).length,h=0;h<c;h++){switch((p=u[h]).type){case nn:mu(t,e,i,n),i.length=0,i.push(p.endX),i.push(p.endY),l=a=p.endX,d=r=p.endY;break;case rn:i.push(p.endX),i.push(p.endY),a=p.endX,r=p.endY;break;case on:_e.Qe(a,r,p.point1X,p.point1Y,p.point2X,p.point2Y,p.endX,p.endY,.5,i),a=p.endX,r=p.endY;break;case an:_e.ep(a,r,p.point1X,p.point1Y,p.endX,p.endY,.5,i),a=p.endX,r=p.endY;break;case sn:if(0===(f=(g=tn(p,s)).length)){i.push(p.centerX),i.push(p.centerY),a=p.centerX,r=p.centerY;break}for(m=0;m<f;m++)v=g[m],_e.Qe(a,r,v[2],v[3],v[4],v[5],v[6],v[7],.5,i),a=v[6],r=v[7];break;case ln:if(0===(f=(g=en(p,s,a,r)).length)){i.push(p.endX),i.push(p.endY),a=p.endX,r=p.endY;break}for(m=0;m<f;m++)v=g[m],_e.Qe(a,r,v[2],v[3],v[4],v[5],v[6],v[7],.5,i),a=v[6],r=v[7];break;default:x("Segment not of valid type: "+p.type)}p.isClosed&&(i.push(l),i.push(d),mu(t,e,i,n))}mu(t,e,i,n)}else if(o.type===Ze.u)i.push(o.startX),i.push(o.startY),i.push(o.endX),i.push(o.startY),i.push(o.endX),i.push(o.endY),i.push(o.startX),i.push(o.endY),i.push(o.startX),i.push(o.startY),mu(t,e,i,n);else if(o.type===Ze.F){if((r=new Je).startX=o.endX,r.startY=(o.startY+o.endY)/2,(a=new $e(sn)).startAngle=0,a.sweepAngle=360,a.centerX=(o.startX+o.endX)/2,a.centerY=(o.startY+o.endY)/2,a.radiusX=Math.abs(o.startX-o.endX)/2,a.radiusY=Math.abs(o.startY-o.endY)/2,r.add(a),0===(s=(o=tn(a,r)).length))i.push(a.centerX),i.push(a.centerY);else for(a=r.startX,r=r.startY,l=0;l<s;l++)d=o[l],_e.Qe(a,r,d[2],d[3],d[4],d[5],d[6],d[7],.5,i),a=d[6],r=d[7];mu(t,e,i,n)}N(i),t.restore(),t.Vc(!1)}}}},e.kk=function(t,e,n){return!(!Ia.prototype.kk.call(this,t,e,n)||null===this.xc&&null===this.Ui||null===this.ua||null!==this.pathPattern||this.geometry.figures.length!==this.svg.getElementsByTagName("path").length)&&(t.Hl=this.svg,this.hh(t,e),t.Hl=null,!0)},e.nk=function(t){return null!==this.geometry&&1<this.geometry.figures.length||null!==this.pathPattern||Ia.prototype.nk.call(this,t)},e.Dv=function(t,e){if("g"!==t.nodeName)t.setAttributeNS(null,"filter",e);else{t=t.getElementsByTagName("path");for(var n=0;n<t.length;n++)t[n].setAttributeNS(null,"filter",e)}},e.ga=function(t,e){if(void 0===e&&(e=new pt),t instanceof De){t.Mc()&&x("getDocumentPoint Spot must be a real, specific Spot, not: "+t.toString());var n=this.naturalBounds,i=this.strokeWidth;e.h(t.x*(n.width+i)-i/2+n.x+t.offsetX,t.y*(n.height+i)-i/2+n.y+t.offsetY)}else e.set(t);return this.oe.Ga(e),e},e.mi=function(t){void 0===t&&(t=new Bt);var e=this.naturalBounds,n=this.oe;e=Bt.allocAt(e.x,e.y,e.width,e.height);var i=this.strokeWidth;return e.Bc(i/2,i/2),i=pt.allocAt(e.x,e.y).transform(n),t.h(i.x,i.y,0,0),i.h(e.right,e.y).transform(n),Ht(t,i.x,i.y,0,0),i.h(e.right,e.bottom).transform(n),Ht(t,i.x,i.y,0,0),i.h(e.x,e.bottom).transform(n),Ht(t,i.x,i.y,0,0),Bt.free(e),pt.free(i),t},e.gh=function(t,e){var n=this.geometry;if(null===n||null===this.fill&&null===this.stroke)return!1;var i=n.bounds,r=this.strokeWidth/2;n.type!==Ze.j||e||(r+=2);var o=Bt.alloc();if(o.assign(i),o.Bc(r+2,r+2),!o.ca(t))return Bt.free(o),!1;if(i=r+1e-4,n.type===Ze.j)return null!==this.stroke&&(i=(n.endX-n.startX)*(t.x-n.startX)+(n.endY-n.startY)*(t.y-n.startY),!(0>(n.startX-n.endX)*(t.x-n.endX)+(n.startY-n.endY)*(t.y-n.endY)||0>i)&&(Bt.free(o),_e.Yb(n.startX,n.startY,n.endX,n.endY,r,t.x,t.y)));if(n.type===Ze.u){e=n.startX;var a=n.startY,s=n.endX;if(n=n.endY,o.x=Math.min(e,s),o.y=Math.min(a,n),o.width=Math.abs(s-e),o.height=Math.abs(n-a),null===this.fill){if(o.Bc(-i,-i),o.ca(t))return Bt.free(o),!1;o.Bc(i,i)}return null!==this.stroke&&o.Bc(r,r),t=o.ca(t),Bt.free(o),t}if(n.type===Ze.F){a=n.startX,r=n.startY,s=n.endX;var l=n.endY;if(n=Math.min(a,s),e=Math.min(r,l),a=Math.abs(s-a)/2,r=Math.abs(l-r)/2,n=t.x-(n+a),e=t.y-(e+r),null===this.fill){if(r-=i,0>=(a-=i)||0>=r||1>=n*n/(a*a)+e*e/(r*r))return Bt.free(o),!1;a+=i,r+=i}return null!==this.stroke&&(a+=i,r+=i),Bt.free(o),!(0>=a||0>=r)&&1>=n*n/(a*a)+e*e/(r*r)}if(n.type===Ze.o)return Bt.free(o),null===this.fill?qe(n,t.x,t.y,r):Ye(n,t,r,1<this.strokeWidth,e);x("Unknown Geometry type: "+n.type)},e.Wl=function(t,e,n,i){var r=this.desiredSize,o=this.ig;if(t=Math.max(t,0),e=Math.max(e,0),null!==this.Rd)var a=this.geometry.bounds;else{var s=this.figure,l=ku[s];if(void 0===l){var u=_e.Ze[s];"string"==typeof u&&(u=_e.Ze[u]),"function"==typeof u?(l=u(null,100,100),ku[s]=l):x("Unsupported Figure: "+s)}a=l.bounds}s=a.width,l=a.height,u=a.width;var c=a.height;switch(Ya(this,!0)){case da:i=n=0;break;case ha:u=Math.max(t-o,0),c=Math.max(e-o,0);break;case pa:u=Math.max(t-o,0),i=0;break;case ga:n=0,c=Math.max(e-o,0)}isFinite(r.width)&&(u=r.width),isFinite(r.height)&&(c=r.height);var h=this.maxSize,d=this.minSize;switch(n=Math.max(n-o,d.width),i=Math.max(i-o,d.height),u=Math.min(h.width,u),c=Math.min(h.height,c),u=isFinite(u)?Math.max(n,u):Math.max(s,n),c=isFinite(c)?Math.max(i,c):Math.max(l,i),n=vu(this)){case da:break;case ha:s=u,l=c;break;case fa:n=Math.min(u/s,c/l),isFinite(n)||(n=1),s*=n,l*=n;break;default:x(n+" is not a valid geometryStretch.")}null!==this.Rd?(0===s&&(s=.001),0===l&&(l=.001),i=s/(a=(n=null!==this.Rd?this.Rd:this.ua).bounds).width,a=l/a.height,isFinite(i)||(i=1),isFinite(a)||(a=1),this.ua=1===i&&1===a?n:n.copy().scale(i,a)):null!==this.ua&&_e.$(this.ua.Sk,t-o)&&_e.$(this.ua.Rk,e-o)||(this.ua=pu.makeGeometry(this,s,l)),a=this.ua.bounds,1/0===t||1/0===e?this.Ge(a.x-o/2,a.y-o/2,0===t&&0===s?0:a.width+o,0===e&&0===l?0:a.height+o):this.Ge(-o/2,-o/2,u+o,c+o),r.w()?(u=r.width,c=r.height,u=Math.min(h.width,u),c=Math.min(h.height,c),u=Math.max(d.width,u),c=Math.max(d.height,c),this.dc.h(0,0,u,c)):this.dc.assign(a)},e.eh=function(t,e,n,i){Ra(this,t,e,n,i)},e.rs=function(t,e,n){return this.Sj(t.x,t.y,e.x,e.y,n)},e.Sj=function(t,e,n,i,r){var o=this.transform,a=1/(o.m11*o.m22-o.m12*o.m21),s=o.m22*a,l=-o.m12*a,u=-o.m21*a,c=o.m11*a,h=a*(o.m21*o.dy-o.m22*o.dx),d=a*(o.m12*o.dx-o.m11*o.dy);o=t*s+e*u+h,a=t*l+e*c+d,s=n*s+i*u+h,l=n*l+i*c+d,h=this.ig/2,null===(u=this.ua)&&(this.measure(1/0,1/0),u=this.ua);var f=u.bounds;if(c=!1,u.type===Ze.j)if(1.5>=this.strokeWidth)c=_e.Ve(u.startX,u.startY,u.endX,u.endY,o,a,s,l,r);else{if(u.startX===u.endX?(i=h,c=0):(e=(u.endY-u.startY)/(u.endX-u.startX),i=(c=h/Math.sqrt(1+e*e))*e),e=T(),t=new pt,_e.Ve(u.startX+i,u.startY+c,u.endX+i,u.endY+c,o,a,s,l,t)&&e.push(t),t=new pt,_e.Ve(u.startX-i,u.startY-c,u.endX-i,u.endY-c,o,a,s,l,t)&&e.push(t),t=new pt,_e.Ve(u.startX+i,u.startY+c,u.startX-i,u.startY-c,o,a,s,l,t)&&e.push(t),t=new pt,_e.Ve(u.endX+i,u.endY+c,u.endX-i,u.endY-c,o,a,s,l,t)&&e.push(t),0===(s=e.length))return N(e),!1;for(c=!0,l=1/0,i=0;i<s;i++)(n=((t=e[i]).x-o)*(t.x-o)+(t.y-a)*(t.y-a))<l&&(l=n,r.x=t.x,r.y=t.y);N(e)}else if(u.type===Ze.u)c=_e.Ff(f.x-h,f.y-h,f.x+f.width+h,f.y+f.height+h,o,a,s,l,r);else if(u.type===Ze.F){t:if(0===(e=Bt.allocAt(f.x,f.y,f.width,f.height).Bc(h,h)).width)c=_e.Ve(e.x,e.y,e.x,e.y+e.height,o,a,s,l,r);else if(0===e.height)c=_e.Ve(e.x,e.y,e.x+e.width,e.y,o,a,s,l,r);else{if(t=e.width/2,u=e.height/2,i=e.x+t,c=e.y+u,n=9999,o!==s&&(n=(a-l)/(o-s)),9999>Math.abs(n)){if(0>t*t*n*n+u*u-(l=a-c-n*(o-i))*l){r.x=NaN,r.y=NaN,c=!1;break t}s=(-t*t*n*l+t*u*(h=Math.sqrt(t*t*n*n+u*u-l*l)))/(u*u+t*t*n*n)+i,t=(-t*t*n*l-t*u*h)/(u*u+t*t*n*n)+i,u=n*(s-i)+l+c,l=n*(t-i)+l+c,Math.abs((o-s)*(o-s))+Math.abs((a-u)*(a-u))<Math.abs((o-t)*(o-t))+Math.abs((a-l)*(a-l))?(r.x=s,r.y=u):(r.x=t,r.y=l)}else{if(s=u*u,0>(s-=s/(t*t)*(l=o-i)*l)){r.x=NaN,r.y=NaN,c=!1;break t}s=c+(l=Math.sqrt(s)),l=c-l,Math.abs(s-a)<Math.abs(l-a)?(r.x=o,r.y=s):(r.x=o,r.y=l)}c=!0}Bt.free(e)}else if(u.type===Ze.o){d=pt.alloc();var p=s-o,g=l-a,m=p*p+g*g,v=o,y=a;if(0<m&&f.contains(v,y)&&(d.x=v,d.y=y,this.ca(d)))for(0!==p&&.5>Math.abs(p)?(g*=.5/p,p=.5):0!==g&&.5>Math.abs(g)&&(p*=.5/g,g=.5),v-=p,y-=g;f.contains(v,y);)v-=p,y-=g;for(r.x=s,r.y=l,g=0;g<u.figures.count;g++)for(var w=u.figures.s[g],b=w.isFilled?v:o,S=w.isFilled?y:a,P=w.segments,k=f=w.startX,C=p=w.startY,A=0;A<P.count;A++){var M=P.s[A],E=M.type,L=M.endX,j=M.endY,I=!1;switch(E){case nn:k=L,C=j;break;case rn:I=wu(f,p,L,j,b,S,s,l,d);break;case on:I=_e.Eo(f,p,M.point1X,M.point1Y,M.point2X,M.point2Y,L,j,b,S,s,l,.6,d);break;case an:I=_e.Eo(f,p,f+2/3*(M.point1X-f),p+2/3*(M.point1Y-p),L+2/3*(M.point1X-L),j+2/3*(M.point1Y-j),L,j,b,S,s,l,.6,d);break;case sn:case ln:var B=(E=M.type===sn?tn(M,w):en(M,w,f,p)).length;if(0===B){I=wu(f,p,M.type===sn?M.centerX:M.endX,M.type===sn?M.centerY:M.endY,b,S,s,l,d);break}for(j=null,L=0;L<B;L++){if(j=E[L],0===L&&wu(f,p,j[0],j[1],b,S,s,l,d)){var O=yu(b,S,d,m,r);O<m&&(m=O,c=!0)}_e.Eo(j[0],j[1],j[2],j[3],j[4],j[5],j[6],j[7],b,S,s,l,.6,d)&&((O=yu(b,S,d,m,r))<m&&(m=O,c=!0))}L=j[6],j=j[7];break;default:x("Unknown Segment type: "+E)}f=L,p=j,I&&((I=yu(b,S,d,m,r))<m&&(m=I,c=!0)),M.isClosed&&(wu(f,p,L=k,j=C,b,S,s,l,d)&&((M=yu(b,S,d,m,r))<m&&(m=M,c=!0)))}o=n-t,a=i-e,0!==(s=Math.sqrt(o*o+a*a))&&(o/=s,a/=s),r.x-=o*h,r.y-=a*h,pt.free(d)}else x("Unknown Geometry type: "+u.type);return!!c&&(this.transform.Ga(r),!0)},e.fh=function(t,e){if(void 0===e)return t.Re(this.actualBounds);var n=this.ua;null===n&&(this.measure(1/0,1/0),n=this.ua),n=n.bounds;var i=this.strokeWidth/2,r=!1,o=pt.alloc();return o.h(n.x-i,n.y-i),t.ca(e.Ga(o))&&(o.h(n.x-i,n.bottom+i),t.ca(e.Ga(o))&&(o.h(n.right+i,n.bottom+i),t.ca(e.Ga(o))&&(o.h(n.right+i,n.y-i),t.ca(e.Ga(o))&&(r=!0)))),pt.free(o),r},e.Yc=function(t,e){if(this.fh(t,e)||void 0===e&&(e=this.transform,t.Re(this.actualBounds)))return!0;var n=Ue.alloc();n.set(e),n.Vj();var i=t.left,r=t.right,o=t.top;t=t.bottom;var a=pt.alloc();if(a.h(i,o),n.Ga(a),this.gh(a,!0))return pt.free(a),!0;if(a.h(r,o),n.Ga(a),this.gh(a,!0))return pt.free(a),!0;if(a.h(i,t),n.Ga(a),this.gh(a,!0))return pt.free(a),!0;if(a.h(r,t),n.Ga(a),this.gh(a,!0))return pt.free(a),!0;var s=pt.alloc(),l=pt.alloc();return n.set(e),n.bv(this.transform),n.Vj(),s.x=r,s.y=o,s.transform(n),a.x=i,a.y=o,a.transform(n),e=!1,bu(this,a,s,l)?e=!0:(a.x=r,a.y=t,a.transform(n),bu(this,a,s,l)?e=!0:(s.x=i,s.y=t,s.transform(n),bu(this,a,s,l)?e=!0:(a.x=i,a.y=o,a.transform(n),bu(this,a,s,l)&&(e=!0)))),pt.free(a),Ue.free(n),pt.free(s),pt.free(l),e},e.tx=function(t,e,n){function i(t,e){for(var n=t.length,i=0;i<n;i+=2)if(e.zd(t[i],t[i+1])>r)return!0;return!1}if(n&&null!==this.fill&&this.gh(t,!0))return!0;var r=t.Bf(e),o=r;if(1.5<this.strokeWidth&&(r=this.strokeWidth/2+Math.sqrt(r),r*=r),null===(e=this.ua)&&(this.measure(1/0,1/0),null===(e=this.ua)))return!1;if(!n){var a=e.bounds,s=a.x,l=a.y,u=a.x+a.width;if(a=a.y+a.height,bt(t.x,t.y,s,l)<=r&&bt(t.x,t.y,u,l)<=r&&bt(t.x,t.y,s,a)<=r&&bt(t.x,t.y,u,a)<=r)return!0}if(s=e.startX,l=e.startY,u=e.endX,a=e.endY,e.type===Ze.j){if(n=(s-u)*(t.x-u)+(l-a)*(t.y-a),wt(t.x,t.y,s,l,u,a)<=(0<=(u-s)*(t.x-s)+(a-l)*(t.y-l)&&0<=n?r:o))return!0}else{if(e.type===Ze.u)return e=!1,n&&(e=wt(t.x,t.y,s,l,s,a)<=r||wt(t.x,t.y,s,l,u,l)<=r||wt(t.x,t.y,u,l,u,a)<=r||wt(t.x,t.y,s,a,u,a)<=r),e;if(e.type===Ze.F){e=t.x-(s+u)/2,o=t.y-(l+a)/2;var c=Math.abs(u-s)/2,h=Math.abs(a-l)/2;if(0===c||0===h)return wt(t.x,t.y,s,l,u,a)<=r;if(!n)return!(bt(e,o,-c,0)>=r||bt(e,o,0,-h)>=r||bt(e,o,0,h)>=r||bt(e,o,c,0)>=r);if((t=_e.$y(c,h,e,o))*t<=r)return!0}else if(e.type===Ze.o){if(o=(u=e.bounds).x,s=u.y,l=u.x+u.width,u=u.y+u.height,t.x>l&&t.x<o&&t.y>u&&t.y<s&&wt(t.x,t.y,o,s,o,u)>r&&wt(t.x,t.y,o,s,l,s)>r&&wt(t.x,t.y,l,u,o,u)>r&&wt(t.x,t.y,l,u,l,s)>r)return!1;if(o=Math.sqrt(r),!n){for(n=e.figures,e=0;e<n.count;e++){if(a=(o=n.s[e]).startX,c=o.startY,t.zd(a,c)>r)return!1;for(l=(s=o.segments.s).length,u=0;u<l;u++)switch(h=s[u],h.type){case nn:case rn:if(a=h.endX,c=h.endY,t.zd(a,c)>r)return!1;break;case on:var d=T();if(_e.Qe(a,c,h.point1X,h.point1Y,h.point2X,h.point2Y,h.endX,h.endY,.8,d),a=i(d,t),N(d),a)return!1;if(a=h.endX,c=h.endY,t.zd(a,c)>r)return!1;break;case an:if(d=T(),_e.ep(a,c,h.point1X,h.point1Y,h.endX,h.endY,.8,d),a=i(d,t),N(d),a)return!1;if(a=h.endX,c=h.endY,t.zd(a,c)>r)return!1;break;case sn:case ln:var f=(d=h.type===sn?tn(h,o):en(h,o,a,c)).length;if(0===f){if(a=h.type===sn?h.centerX:h.endX,c=h.type===sn?h.centerY:h.endY,t.zd(a,c)>r)return!1;break}h=null;for(var p=T(),g=0;g<f;g++)if(h=d[g],p.length=0,_e.Qe(h[0],h[1],h[2],h[3],h[4],h[5],h[6],h[7],.8,p),i(p,t))return N(p),!1;N(p),null!==h&&(a=h[6],c=h[7]);break;default:x("Unknown Segment type: "+h.type)}}return!0}if(null===this.fill?qe(e,t.x,t.y,o):Ye(e,t,o,!0,!1))return!0}}return!1},e.qc=function(){this.ua=null},e.kq=function(){return this.ig},pu.makeGeometry=function(t,e,n){if("None"!==t.toArrow)var i=Pu[t.toArrow];else"None"!==t.fromArrow?i=Pu[t.fromArrow]:("string"==typeof(i=_e.Ze[t.figure])&&(i=_e.Ze[i]),void 0===i&&x("Unknown Shape.figure: "+t.figure),(i=i(t,e,n)).Sk=e,i.Rk=n);if(null===i){var r=_e.Ze.Rectangle;"function"==typeof r&&(i=r(t,e,n))}return i},d.Object.defineProperties(pu.prototype,{geometry:{get:function(){return null!==this.ua?this.ua:this.Rd},set:function(t){var e=this.ua,n=this.Rd;if(e!==t){this.Rd=this.ua=null!==t?t.freeze():null;var i=this.part;null!==i&&(i.ag=NaN),this.v(),this.g("geometry",e||n,t),Qa(this)&&(null!==(t=this.part)&&Oa(this,t,"geometryString"))}}},geometryString:{get:function(){return null===this.geometry?"":this.geometry.toString()},set:function(t){var e=(t=Ze.parse(t)).normalize();this.geometry=t,this.position=t=pt.allocAt(-e.x,-e.y),pt.free(t)}},isGeometryPositioned:{get:function(){return 0!=(1048576&this.l)},set:function(t){var e=0!=(1048576&this.l);e!==t&&(this.l^=1048576,this.v(),this.g("isGeometryPositioned",e,t))}},fill:{get:function(){return this.Ui},set:function(t){var e=this.Ui;e!==t&&(null!==t&&Xs(t,"Shape.fill"),t instanceof Ds&&t.freeze(),this.Ui=t,this.N(),this.g("fill",e,t))}},stroke:{get:function(){return this.xc},set:function(t){var e=this.xc;e!==t&&(null!==t&&Xs(t,"Shape.stroke"),t instanceof Ds&&t.freeze(),this.xc=t,this.N(),this.g("stroke",e,t))}},strokeWidth:{get:function(){return this.ig},set:function(t){var e=this.ig;if(e!==t)if(0<=t){this.ig=t,this.v();var n=this.part;null!==n&&(n.ag=NaN),this.g("strokeWidth",e,t)}else P(t,"value >= 0",pu,"strokeWidth:value")}},strokeCap:{get:function(){return null!==this.Na?this.Na.Hr:"butt"},set:function(t){var e=this.strokeCap;e!==t&&("string"!=typeof t||"butt"!==t&&"round"!==t&&"square"!==t?P(t,'"butt", "round", or "square"',pu,"strokeCap"):(gu(this),this.Na.Hr=t,this.N(),this.g("strokeCap",e,t)))}},strokeJoin:{get:function(){return null!==this.Na?this.Na.Ir:"miter"},set:function(t){var e=this.strokeJoin;e!==t&&("string"!=typeof t||"miter"!==t&&"bevel"!==t&&"round"!==t?P(t,'"miter", "bevel", or "round"',pu,"strokeJoin"):(gu(this),this.Na.Ir=t,this.N(),this.g("strokeJoin",e,t)))}},strokeMiterLimit:{get:function(){return null!==this.Na?this.Na.Jr:10},set:function(t){var e=this.strokeMiterLimit;if(e!==t&&1<=t){gu(this),this.Na.Jr=t,this.N();var n=this.part;null!==n&&(n.ag=NaN),this.g("strokeMiterLimit",e,t)}}},strokeDashArray:{get:function(){return this.Yg},set:function(t){var e=this.Yg;if(e!==t){if(null!==t){for(var n=t.length,i=0,r=0;r<n;r++){var o=t[r];0<=o&&isFinite(o)||x("strokeDashArray:value "+o+" at index "+r+" must be a positive number or zero."),i+=o}if(0===i){if(null===e)return;t=null}}this.Yg=t,this.N(),this.g("strokeDashArray",e,t)}}},strokeDashOffset:{get:function(){return null!==this.Na?this.Na.uj:0},set:function(t){var e=this.strokeDashOffset;e!==t&&0<=t&&(gu(this),this.Na.uj=t,this.N(),this.g("strokeDashOffset",e,t))}},figure:{get:function(){return this.an},set:function(t){var e=this.an;if(e!==t){var n=_e.Ze[t];"function"==typeof n?n=t:(n=_e.Ze[t.toLowerCase()])||x("Unknown Shape.figure: "+t),e!==n&&(null!==(t=this.part)&&(t.ag=NaN),this.an=n,this.Rd=null,this.qc(),this.v(),this.g("figure",e,n))}}},toArrow:{get:function(){return null!==this.Ua?this.Ua.V:"None"},set:function(t){var e=this.toArrow;if(!0===t?t="Standard":!1===t&&(t=""),e!==t){var n=Su(t);null===n?x("Unknown Shape.toArrow: "+t):e!==n&&(null===this.Ua&&(this.Ua=new fs),this.Ua.V=n,this.Rd=null,this.qc(),this.v(),xu(this),this.g("toArrow",e,n))}}},fromArrow:{get:function(){return null!==this.Ua?this.Ua.j:"None"},set:function(t){var e=this.fromArrow;if(!0===t?t="Standard":!1===t&&(t=""),e!==t){var n=Su(t);null===n?x("Unknown Shape.fromArrow: "+t):e!==n&&(null===this.Ua&&(this.Ua=new fs),this.Ua.j=n,this.Rd=null,this.qc(),this.v(),xu(this),this.g("fromArrow",e,n))}}},spot1:{get:function(){return null!==this.Na?this.Na.fg:ke},set:function(t){var e=this.spot1;e.D(t)||(t=t.J(),gu(this),this.Na.fg=t,this.v(),this.g("spot1",e,t))}},spot2:{get:function(){return null!==this.Na?this.Na.gg:ke},set:function(t){var e=this.spot2;e.D(t)||(t=t.J(),gu(this),this.Na.gg=t,this.v(),this.g("spot2",e,t))}},parameter1:{get:function(){return this.Un},set:function(t){var e=this.Un;e!==t&&(this.Un=t,this.qc(),this.v(),this.g("parameter1",e,t))}},parameter2:{get:function(){return this.Vn},set:function(t){var e=this.Vn;e!==t&&(this.Vn=t,this.qc(),this.v(),this.g("parameter2",e,t))}},naturalBounds:{get:function(){return this.dc}},pathPattern:{get:function(){return null!==this.Na?this.Na.br:null},set:function(t){var e=this.pathPattern;e!==t&&(gu(this),this.Na.br=t,this.N(),this.g("pathPattern",e,t))}},geometryStretch:{get:function(){return null!==this.Na?this.Na.jq:ma},set:function(t){var e=this.geometryStretch;e!==t&&(gu(this),this.Na.jq=t,this.v(),this.g("geometryStretch",e,t))}},interval:{get:function(){return null!==this.fa?this.fa.Tk:1},set:function(t){var e=this.interval;if(e!==(t=Math.round(t))&&0!==t&&isFinite(t)){null===this.fa&&(this.fa=new ic),this.fa.Tk=t;var n=this.diagram;null!==n&&this.panel===n.grid&&vo(n),this.v(),null!==(n=this.panel)&&(n.graduatedIntervals=null),this.g("interval",e,t)}}},graduatedStart:{get:function(){return null!==this.fa?this.fa.u:0},set:function(t){var e=this.graduatedStart;e!==t&&(0>t?t=0:1<t&&(t=1),null===this.fa&&(this.fa=new ic),this.fa.u=t,this.v(),this.g("graduatedStart",e,t))}},graduatedEnd:{get:function(){return null!==this.fa?this.fa.j:1},set:function(t){var e=this.graduatedEnd;e!==t&&(0>t?t=0:1<t&&(t=1),null===this.fa&&(this.fa=new ic),this.fa.j=t,this.v(),this.g("graduatedEnd",e,t))}},graduatedSkip:{get:function(){return null!==this.fa?this.fa.o:null},set:function(t){var e=this.graduatedSkip;e!==t&&(null===this.fa&&(this.fa=new ic),this.fa.o=t,this.v(),this.g("graduatedSkip",e,t))}}}),pu.prototype.intersectsRect=pu.prototype.Yc,pu.prototype.containedInRect=pu.prototype.fh,pu.prototype.getNearestIntersectionPoint=pu.prototype.rs,pu.prototype.getDocumentBounds=pu.prototype.mi,pu.prototype.getDocumentPoint=pu.prototype.ga;var Pu=new _,ku=new _;function Cu(){this.nc=!1,this.Hr="butt",this.Ir="miter",this.Jr=10,this.uj=0,this.br=null,this.jq=ma,this.gg=this.fg=ke}function Au(t,e){return Ia.call(this),ec||(tc=Go?new js(null).context:null,ec=!0),this.l|=2097152,this.ec="",this.xc="black",this.Ae="13px sans-serif",this.Lq=this.Cb=this.Gc=0,this.da=this.fa=this.Gm=null,this.Ih=0,this.df=null,this.Le=0,this.ze=this.Qb=this.Qc=null,"string"==typeof t?this.text=t:t&&Object.assign(this,t),e&&Object.assign(this,e),this}function Mu(t){null===t.da?t.da=new nc:t.da.nc&&(t.da=t.da.copy())}function Eu(t,e){t.l=6144|e.l,t.pb=e.opacity,t.Ma=e.background,t.areaBackground=e.areaBackground,t.jd=e.desiredSize.J(),t.minSize=e.minSize.J(),t.maxSize=e.maxSize.J(),null!==e.Lb?t.Lb=e.Lb.copy():t.Lb=null,t.Ca=e.scale,t.Kb=e.angle,t.stretch=e.stretch,t.Kg=e.margin.J(),t.Jb=e.alignment.J(),t.sk=e.alignmentFocus.J(),t.segmentFraction=e.segmentFraction,t.segmentOffset=e.segmentOffset.J(),t.segmentOrientation=e.segmentOrientation,null!==e.tb&&(t.tb=e.tb.copy()),t.shadowVisible=e.shadowVisible,t.ec=e.ec,t.xc=e.xc,t.Ae=e.Ae,null!==t.fa&&(t.fa=e.fa.copy()),null!==e.da&&(t.da=e.da.nc?e.da:e.da.copy()),t.Ih=e.Ih}function Lu(t,e,n){null===t.ze?(t.ze=e,t.Cb=n):(null!==t.Qb&&null!==t.Qc||(t.Qb=[],t.Qc=[],t.Qb.push(t.ze),t.Qc.push(t.Cb)),t.Qb.push(e),t.Qc.push(n),t.Qb.length>t.maxLines&&(t.l|=16777216))}function Tu(t,e,n,i){var r=t.formatting===Wu;r&&(e=e.trim());var o=0,a=t.Ae,s=t.spacingAbove+t.spacingBelow;s=Math.max(0,Iu(t)+s);var l=t.overflow===Zu?Bu(a):0;if(t.Gc>=t.maxLines)null!==i&&i.h(0,s);else if(a=e,t.wrap===zu){t.Le=1;var u=ju(e);if(0===l||u<=n)t.Cb=Math.max(t.Cb,u),Lu(t,e,t.Cb),null!==i&&i.h(u,s);else{for(u=ju((o=Nu(t,a))+(e=Nu(t,a=a.substr(o.length))));0<e.length&&u<=n;)u=(o+=e)+(e=Nu(t,a=a.substr(e.length))),r&&(u=u.trim()),u=ju(u);for(r&&(e=e.trim()),o+=e,n=Math.max(1,n-l);ju(o)>n&&1<o.length;)o=o.substr(0,o.length-1);t.l|=16777216;var c=ju(o+=Ju);t.Cb=c,Lu(t,o,c),null!==i&&i.h(c,s)}}else{for(l=0,0===a.length&&(l=1,Lu(t,a,0));0<a.length;){for(e=Nu(t,a),a=a.substr(e.length);ju(e)>n;){var h=1;for(u=ju(e.substr(0,h)),c=0;u<=n;)h++,c=u,u=ju(e.substr(0,h));if(1===h){var d=u;o=Math.max(o,u)}else d=c,o=Math.max(o,c);if(1>--h&&(h=1),Lu(t,e.substr(0,h),d),l++,e=e.substr(h),t.Gc+l>t.maxLines)break}for(u=ju(e+(c=Nu(t,a)));0<c.length&&u<=n;)u=(e+=c)+(c=Nu(t,a=a.substr(c.length))),r&&(u=u.trim()),u=ju(u);if(r&&(e=e.trim()),""!==e&&("­"===e[e.length-1]&&(e=e.substring(0,e.length-1)+""),0===c.length?(h=u,o=Math.max(o,u)):(h=c=ju(e),o=Math.max(o,c)),Lu(t,e,h),l++,t.Gc+l>t.maxLines))break}t.Le=Math.min(t.maxLines,l),t.Cb=Math.max(t.Cb,o),null!==i&&i.h(t.Cb,s*t.Le)}}function Nu(t,e){if(t.wrap===Hu)return e.substr(0,1);for(var n=e.length,i=0,r=Yu;i<n&&!r.test(e.charAt(i));)i++;for(t.formatting===Vu&&(n=Math.min(n,i+1));i<n&&r.test(e.charAt(i));)i++;return i>=e.length?e:e.substr(0,i)}function ju(t){return null===tc?8*t.length:tc.measureText(t).width}function Iu(t){if(null!==t.df)return t.df;var e=t.Ae;if(null===tc){var n=16;return t.df=n}return void 0!==Xu[e]&&5e3>qu?n=Xu[e]:(n=1.3*tc.measureText("M").width,Xu[e]=n,qu++),t.df=n}function Bu(t){if(null===tc)return 6;if(void 0!==Ku[t]&&5e3>Qu)var e=Ku[t];else e=tc.measureText(Ju).width,Ku[t]=e,Qu++;return e}function Ou(t,e){var n=t.ec.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),i=t.spacingAbove+t.spacingBelow;if(i=Math.max(0,Iu(t)+i),0===n.length)return t.Cb=0,t.Gc=1,i;if(!t.isMultiline){var r=n.indexOf("\n",0);0<=r&&(n=n.substr(0,r))}r=0;for(var o,a=t.Gc=0,s=!1;!s;){if(-1===(o=n.indexOf("\n",a))&&(o=n.length,s=!0),a<=o){if(a=n.substr(a,o-a),t.wrap!==zu){t.Le=0;var l=Tt.alloc();Tu(t,a,e,l),r+=l.height,Tt.free(l),t.Gc+=t.Le}else Tu(t,a,e,null),r+=i,t.Gc++;t.Gc===t.maxLines&&(s=!0)}a=o+1}return t.Lq=r}pu.className="Shape",pu.getFigureGenerators=function(){var t,e=new ft;for(t in _e.Ze)t!==t.toLowerCase()&&e.add(t,_e.Ze[t]);return e.freeze(),e},pu.defineFigureGenerator=function(t,e){var n=t.toLowerCase(),i=_e.Ze;i[t]=e,i[n]=t},pu.getArrowheadGeometries=function(){var t=new ft;for(i in _e.um)if(void 0===Pu[i]){var e=Ze.parse(_e.um[i],!1);Pu[i]=e,(e=i.toLowerCase())!==i&&(Pu[e]=i)}for(var n in Pu)if(n!==n.toLowerCase()){var i=Pu[n];i instanceof Ze&&t.add(n,i)}return t.freeze(),t},pu.defineArrowheadGeometry=function(t,e){var n=null;n="string"==typeof e?Ze.parse(e,!1):e,"none"!==(e=t.toLowerCase())&&t!==e||x("Shape.defineArrowheadGeometry name must not be empty or None or all-lower-case: "+t);var i=Pu;i[t]=n,i[e]=t},Cu.prototype.copy=function(){var t=new Cu;return t.Hr=this.Hr,t.Ir=this.Ir,t.Jr=this.Jr,t.uj=this.uj,t.br=this.br,t.jq=this.jq,t.fg=this.fg.J(),t.gg=this.gg.J(),t},h(Au,Ia),Au.prototype.cloneProtected=function(t){Ia.prototype.cloneProtected.call(this,t),t.ec=this.ec,t.xc=this.xc,t.Ae=this.Ae,t.Gc=this.Gc,t.Cb=this.Cb,t.Lq=this.Lq,t.Gm=this.Gm,null!==this.fa&&(t.fa=this.fa.copy()),null!==this.da&&(t.da=this.da.nc?this.da:this.da.copy()),t.Ih=this.Ih,t.df=this.df,t.Le=this.Le,t.Qc=this.Qc,t.Qb=this.Qb,t.ze=this.ze},(e=Au.prototype).th=function(){Ia.prototype.th.call(this),null!==this.da&&(this.da.nc=!0)},e.qb=function(t){t.classType===Au?this.wrap=t:Ia.prototype.qb.call(this,t)},e.toString=function(){return 22<this.ec.length?'TextBlock("'+this.ec.substring(0,20)+'"...)':'TextBlock("'+this.ec+'")'},e.v=function(){Ia.prototype.v.call(this)},e.hh=function(t,e){if(null!==this.xc&&0!==this.ec.length&&null!==this.Ae){var n=this.naturalBounds,i=this.actualBounds,r=n.width,o=n.height,a=Iu(this),s=t.textAlign=this.textAlign,l=e.tn;"start"===s?s=l?"right":"left":"end"===s&&(s=l?"left":"right"),l=this.isUnderline;var u=this.isStrikethrough;Za(this,t,this.xc,!0,!1,n,i),(l||u)&&Za(this,t,this.xc,!1,!1,n,i),i=0,n=!1;var c=this.oe,h=c.dx-(a*c.m21+c.dx);c=c.dy-(a*c.m22+c.dy);var d=e.scale;switch(8>(h*h+c*c)*d*d&&(n=!0),e.ib!==t&&(n=!1),e.ib instanceof ys&&(n=!1),!1===e.Gf("textGreeking")&&(n=!1),e=this.spacingAbove,h=this.spacingBelow,this.flip){case wa:t.translate(r,0),t.scale(-1,1);break;case ya:t.translate(0,o),t.scale(1,-1);break;case ba:t.translate(r,o),t.scale(-1,-1)}if(t.yc(),o>(d=(e+a+h)*(c=this.Gc))&&(i=(i=this.verticalAlignment).y*o-i.y*d+i.offsetY),1===c&&null!==this.ze)(h=this.Cb)>r&&(h=r),this.Oj(this.ze,t,0,i+e,r,a,h,n,s,l,u);else if(null!==this.Qc&&null!==this.Qb)for(d=0;d<c;d++){var f=this.Qc[d];f>r&&(f=r),i+=e,this.Oj(this.Qb[d],t,0,i,r,a,f,n,s,l,u),i+=a+h}switch(this.flip){case wa:t.scale(-1,1),t.translate(-r,0);break;case ya:t.scale(1,-1),t.translate(0,-o);break;case ba:t.scale(-1,-1),t.translate(-r,-o)}}},e.Oj=function(t,e,n,i,r,o,a,s,l,u,c){var h=0;if(s)"left"===l?h=0:"right"===l?h=r-a:"center"===l&&(h=(r-a)/2),e.fillRect(n+h,i+.25*o,a,1);else{if("left"===l?h=0:"right"===l?h=r:"center"===l&&(h=r/2),r=null!==Ru?Ru(this,o):.75*o,e.fillText(t,n+h,i+r),0===(t=o/20|0)&&(t=1),"right"===l?h-=a:"center"===l&&(h-=a/2),u){l=n+h,u=i+(s=null!==Fu?Fu(this,o):.8*o),r=n+h+a,s=i+s;var d=t;e.beginPath(),e.lineWidth=d,e.moveTo(l,u),e.lineTo(r,s),e.stroke(),e.Se(),e instanceof ys&&e.ad.classList.add("gojs-td")}c&&(c=i+o-o/2.2|0,0!=t%2&&(c+=.5),i=n+h,o=c,n=n+h+a,a=c,h=t,e.beginPath(),e.lineWidth=h,e.moveTo(i,o),e.lineTo(n,a),e.stroke(),e.Se(),e instanceof ys&&e.ad.classList.add("gojs-td"))}},e.kk=function(t,e,n){if(!Ia.prototype.kk.call(this,t,e,n))return!1;if(Za(this,t,this.xc,!0,!1,this.naturalBounds,this.actualBounds),n){if(0===this.svg.getElementsByTagName("text").length)return!0;for(e=this.svg.getElementsByClassName("gojs-td"),n=0;n<e.length;n++)ks(t,e[n],!1)}else(e=this.svg).innerHTML=this.text,ks(t,e,!0);return!0},e.nk=function(t){return!!(1<this.lineCount||this.isUnderline||this.isStrikethrough)||Ia.prototype.nk.call(this,t)},e.Dv=function(t,e){if("g"!==t.nodeName)t.setAttributeNS(null,"filter",e);else{t=t.getElementsByTagName("text");for(var n=0;n<t.length;n++)t[n].setAttributeNS(null,"filter",e)}},e.Wl=function(t,e,n,i){var r=this.Gc;this.Ih=t,this.l&=-16777217;var o,a=this.Ae;if(null!==tc&&$u!==a&&($u=tc.font=a),this.Cb=this.Le=0,this.ze=this.Qb=this.Qc=this.df=null,isNaN(this.desiredSize.width)){if(0===(a=this.ec.replace(/\r\n/g,"\n").replace(/\r/g,"\n")).length)a=8;else if(this.isMultiline){for(var s=o=0,l=!1;!l;){var u=a.indexOf("\n",s);-1===u&&(u=a.length,l=!0),s=a.substr(s,u-s),this.formatting===Wu&&(s=s.trim()),o=Math.max(o,ju(s)),s=u+1}a=o}else 0<=(o=a.indexOf("\n",0))&&(a=a.substr(0,o)),a=ju(a);a=Math.min(a,t/this.scale)}else a=this.desiredSize.width;if(null!==this.panel&&(a=Math.min(a,this.panel.maxSize.width)),o=Ou(this,a),l=o=isNaN(this.desiredSize.height)?Math.min(o,e/this.scale):this.desiredSize.height,0!==this.Cb&&null!==this.Qc&&null!==this.Qb&&this.overflow===Zu&&(e=this.Ae,e=this.overflow===Zu?Bu(e):0,u=this.spacingAbove+this.spacingBelow,u=Math.max(0,Iu(this)+u),!((l=Math.min(this.maxLines-1,Math.max(Math.floor(l/u+.01)-1,0)))+1>=this.Qb.length))){for(this.l|=16777216,u=this.Qb[l],e=Math.max(1,t-e);ju(u)>e&&1<u.length;)u=u.substr(0,u.length-1);e=ju(u+=Ju),this.Qb[l]=u,this.Qb=this.Qb.slice(0,l+1),this.Qc[l]=e,this.Qc=this.Qc.slice(0,l+1),this.Le=this.Qb.length,this.Cb=Math.max(this.Cb,e),this.Gc=this.Le,1===this.Gc&&(this.ze=this.Qb[0])}(this.wrap===Gu||isNaN(this.desiredSize.width))&&(a=isNaN(t)?this.Cb:Math.min(t,this.Cb)),a=Math.max(n,a),o=Math.max(i,o),Ot(this.dc,a,o),this.Ge(0,0,a,o),null!==this.svg&&r!==this.Gc&&(this.Uc=!0)},e.eh=function(t,e,n,i){Ra(this,t,e,n,i)},d.Object.defineProperties(Au.prototype,{font:{get:function(){return this.Ae},set:function(t){var e=this.Ae;e!==t&&(this.Ae=t,this.df=null,this.v(),this.g("font",e,t))}},text:{get:function(){return this.ec},set:function(t){var e=this.ec;e!==(t=null!=t?t.toString():"")&&(this.ec=t,this.v(),this.g("text",e,t),this.Uc=!0)}},textAlign:{get:function(){return null!==this.da?this.da.Or:"start"},set:function(t){var e=this.textAlign;e===t||"start"!==t&&"end"!==t&&"left"!==t&&"right"!==t&&"center"!==t||(Mu(this),this.da.Or=t,this.N(),this.g("textAlign",e,t))}},flip:{get:function(){return null!==this.da?this.da.Xf:da},set:function(t){var e=this.flip;e!==t&&(Mu(this),this.da.Xf=t,this.N(),this.g("flip",e,t))}},verticalAlignment:{get:function(){return null!==this.da?this.da.Yr:Me},set:function(t){var e=this.verticalAlignment;e.D(t)||(t=t.J(),Mu(this),this.da.Yr=t,Va(this),this.g("verticalAlignment",e,t))}},naturalBounds:{get:function(){if(!this.dc.w()){var t=Tt.alloc();Tu(this,this.ec,999999,t);var e=t.width;Tt.free(t),t=Ou(this,e);var n=this.desiredSize;isNaN(n.width)||(e=n.width),isNaN(n.height)||(t=n.height),Ot(this.dc,e,t)}return this.dc}},isMultiline:{get:function(){return 0!=(2097152&this.l)},set:function(t){var e=0!=(2097152&this.l);e!==t&&(this.l^=2097152,this.v(),this.g("isMultiline",e,t))}},isUnderline:{get:function(){return 0!=(4194304&this.l)},set:function(t){var e=0!=(4194304&this.l);e!==t&&(this.l^=4194304,this.Uc=!0,this.N(),this.g("isUnderline",e,t))}},isStrikethrough:{get:function(){return 0!=(8388608&this.l)},set:function(t){var e=0!=(8388608&this.l);e!==t&&(this.l^=8388608,this.Uc=!0,this.N(),this.g("isStrikethrough",e,t))}},wrap:{get:function(){return null!==this.da?this.da.$r:Uu},set:function(t){var e=this.wrap;e!==t&&(Mu(this),this.da.$r=t,this.v(),this.g("wrap",e,t))}},overflow:{get:function(){return null!==this.da?this.da.$q:_u},set:function(t){var e=this.overflow;e!==t&&(Mu(this),this.da.$q=t,this.v(),this.g("overflow",e,t))}},isOverflowed:{get:function(){return 0!=(16777216&this.l)}},stroke:{get:function(){return this.xc},set:function(t){var e=this.xc;e!==t&&(null!==t&&Xs(t,"TextBlock.stroke"),t instanceof Ds&&t.freeze(),this.xc=t,this.N(),this.g("stroke",e,t))}},lineCount:{get:function(){return this.Gc}},lineHeight:{get:function(){return Iu(this)}},editable:{get:function(){return 0!=(1048576&this.l)},set:function(t){var e=0!=(1048576&this.l);e!==t&&(this.l^=1048576,this.g("editable",e,t))}},textEditor:{get:function(){return null!==this.da?this.da.Qr:null},set:function(t){var e=this.textEditor;e!==t&&(Mu(this),this.da.Qr=t,this.g("textEditor",e,t))}},errorFunction:{get:function(){return null!==this.da?this.da.Hd:null},set:function(t){var e=this.errorFunction;e!==t&&(Mu(this),this.da.Hd=t,this.g("errorFunction",e,t))}},interval:{get:function(){return null!==this.fa?this.fa.Tk:1},set:function(t){var e=this.interval;if(e!==(t=Math.round(t))&&0!==t&&isFinite(t)){null===this.fa&&(this.fa=new ic),this.fa.Tk=t,this.v();var n=this.panel;null!==n&&(n.graduatedIntervals=null),this.g("interval",e,t)}}},graduatedStart:{get:function(){return null!==this.fa?this.fa.u:0},set:function(t){var e=this.graduatedStart;e!==t&&(0>t?t=0:1<t&&(t=1),null===this.fa&&(this.fa=new ic),this.fa.u=t,this.v(),this.g("graduatedStart",e,t))}},graduatedEnd:{get:function(){return null!==this.fa?this.fa.j:1},set:function(t){var e=this.graduatedEnd;e!==t&&(0>t?t=0:1<t&&(t=1),null===this.fa&&(this.fa=new ic),this.fa.j=t,this.v(),this.g("graduatedEnd",e,t))}},graduatedFunction:{get:function(){return null!==this.fa?this.fa.F:null},set:function(t){var e=this.graduatedFunction;e!==t&&(null===this.fa&&(this.fa=new ic),this.fa.F=t,this.v(),this.g("graduatedFunction",e,t))}},graduatedSkip:{get:function(){return null!==this.fa?this.fa.o:null},set:function(t){var e=this.graduatedSkip;e!==t&&(null===this.fa&&(this.fa=new ic),this.fa.o=t,this.v(),this.g("graduatedSkip",e,t))}},textValidation:{get:function(){return null!==this.da?this.da.vj:null},set:function(t){var e=this.textValidation;e!==t&&(Mu(this),this.da.vj=t,this.g("textValidation",e,t))}},textEdited:{get:function(){return null!==this.da?this.da.Pr:null},set:function(t){var e=this.textEdited;e!==t&&(Mu(this),this.da.Pr=t,this.g("textEdited",e,t))}},spacingAbove:{get:function(){return null!==this.da?this.da.Dr:0},set:function(t){var e=this.spacingAbove;e!==t&&(Mu(this),this.da.Dr=t,this.v(),this.g("spacingAbove",e,t))}},spacingBelow:{get:function(){return null!==this.da?this.da.Er:0},set:function(t){var e=this.spacingBelow;e!==t&&(Mu(this),this.da.Er=t,this.v(),this.g("spacingBelow",e,t))}},formatting:{get:function(){return null!==this.da?this.da.gq:Wu},set:function(t){var e=this.formatting;e!==t&&(Mu(this),this.da.gq=t,this.v(),this.g("formatting",e,t))}},maxLines:{get:function(){return null!==this.da?this.da.Jq:1/0},set:function(t){var e=this.maxLines;e!==t&&(0>=(t=Math.floor(t))&&P(t,"> 0",Au,"maxLines"),Mu(this),this.da.Jq=t,this.v(),this.g("maxLines",e,t))}},metrics:{get:function(){return{arrSize:null!==this.Qc?this.Qc:[this.Cb],arrText:null!==this.Qb?this.Qb:[this.ze],maxLineWidth:this.Cb,fontHeight:this.df}}},choices:{get:function(){return this.Gm},set:function(t){var e=this.Gm;e!==t&&(this.Gm=t,this.g("choices",e,t))}}});var Du,Ru=null,Fu=null,zu=new G(Au,"None",0),Gu=new G(Au,"WrapFit",1),Uu=new G(Au,"WrapDesiredSize",2),Hu=new G(Au,"WrapBreakAll",3),_u=new G(Au,"OverflowClip",0),Zu=new G(Au,"OverflowEllipsis",1),Wu=new G(Au,"FormatTrim",0),Vu=new G(Au,"FormatNone",0),Yu=/[ \u200b\u00ad]/,Xu=new _,qu=0,Ku=new _,Qu=0,Ju="...",$u="",tc=null,ec=!1;function nc(){this.nc=!1,this.Hd=null,this.Xf=da,this.gq=Wu,this.Jq=1/0,this.$q=_u,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=Me,this.$r=Uu}function ic(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}function rc(t,e){Ia.call(this),this.Eg=null,this.qo="",this.Xg=Vt,this.Nk=ha,this.Zg=this.Hd=null,this.Mk=re,this.Xf=da,this.vl=null,this.qn=!1,this.en=!0,this.al=!1,this.bt=this.rl=null,"string"==typeof t?this.source=t:t&&Object.assign(this,t),e&&Object.assign(this,e)}function oc(t){void 0===t&&(t=""),""!==t?Du[t]&&(delete Du[t],sc--):(Du=new _,sc=0)}function ac(t,e){e.qy||(e.Fq=function(n){e.sq=!0,e.ln=!1;var i=e.Bg.copy();if(null!=i){for(i=i.iterator;i.next();){var r=i.value;r.N();var o=e.getAttribute("src")||"",a=r.Og.I(o);if(null!==a)for(var s=a.length,l=0;l<s;l++)o=a[l],r.Xn.add(o),o.Uc=!0,r.$b(),e.hn&&(void 0===e.eu&&(e.eu=n),null!==o.Zg&&o.Zg(o,n))}e.Bg.clear()}t.desiredSize.w()||(ns(t,!1),t.v())},e.Yp=function(t){e.ln=t;var n=e.Bg.copy();if(null!=n){for(n=n.iterator;n.next();){var i=n.value,r=e.getAttribute("src")||"",o=i.Og.I(r);if(null!==o){i=o.length,r=T();for(var a=0;a<i;a++)r.push(o[a]);if(e.hn)for(a=0;a<i;a++)null!==(o=r[a]).Hd&&o.Hd(o,t);N(r)}}e.Bg.clear()}},e.addEventListener("load",e.Fq),e.addEventListener("error",e.Yp),e.qy=!0)}Au.className="TextBlock",nc.prototype.copy=function(){var t=new nc;return t.Hd=this.Hd,t.Xf=this.Xf,t.gq=this.gq,t.Jq=this.Jq,t.$q=this.$q,t.Dr=this.Dr,t.Er=this.Er,t.Or=this.Or,t.Pr=this.Pr,t.Qr=this.Qr,t.vj=this.vj,t.Yr=this.Yr,t.$r=this.$r,t},Au.getEllipsis=function(){return Ju},Au.setEllipsis=function(t){Ju=t,Ku=new _,Qu=0},Au.getBaseline=function(){return Ru},Au.setBaseline=function(t){Ru=t},Au.getUnderline=function(){return Fu},Au.setUnderline=function(t){Fu=t},Au.isValidFont=function(t){if(ec||(tc=Go?new js(null).context:null,ec=!0),null===tc)return!0;var e=tc.font;if(t===e||"10px sans-serif"===t)return!0;tc.font="10px sans-serif",tc.font=t;var n=tc.font;if("10px sans-serif"!==n)return tc.font=e,!0;tc.font="19px serif";var i=tc.font;return tc.font=t,n=tc.font,tc.font=e,n!==i},Au.FormatNone=Vu,Au.FormatTrim=Wu,Au.None=zu,Au.OverflowClip=_u,Au.OverflowEllipsis=Zu,Au.WrapBreakAll=Hu,Au.WrapDesiredSize=Uu,Au.WrapFit=Gu,ic.prototype.copy=function(){var t=new ic;return t.Tk=this.Tk,t.u=this.u,t.j=this.j,t.F=this.F,t.o=this.o,t},ic.className="GradElementSettings",h(rc,Ia),rc.prototype.cloneProtected=function(t){Ia.prototype.cloneProtected.call(this,t),t.qo=this.qo,t.element=this.Eg,t.Xg=this.Xg.J(),t.Nk=this.Nk,t.Xf=this.Xf,t.Hd=this.Hd,t.Zg=this.Zg,t.Mk=this.Mk.J(),t.en=this.en,t.rl=this.rl},rc.prototype.qb=function(t){t===da||t===fa||t===va?this.imageStretch=t:Ia.prototype.qb.call(this,t)},rc.prototype.toString=function(){return"Picture("+this.source+")#"+et(this)},rc.prototype.hA=function(){if(""!==this.source){oc(this.source);var t=this.source;this.source="",this.source=t}},rc.prototype.redraw=function(){this.N(),this.Uc=!0},rc.prototype.hh=function(t,e){var n=this.Eg;if(null!==n){var i=n.getAttribute("src");if(!(n instanceof HTMLImageElement&&(null===i||""===i)||n.ln instanceof Event&&t instanceof Is)){var r=t instanceof ys;i=this.naturalBounds;var o=0,a=0,s=this.qn,l=s?+n.width:n.naturalWidth;if(s=s?+n.height:n.naturalHeight,void 0===l&&n.videoWidth&&(l=n.videoWidth),void 0===s&&n.videoHeight&&(s=n.videoHeight),l=l||i.width,s=s||i.height,0!==l&&0!==s){var u=l,c=s;this.sourceRect.w()&&(o=this.Xg.x,a=this.Xg.y,l=this.Xg.width,s=this.Xg.height);var h=l,d=s,f=this.Nk,p=this.Mk;switch(f){case da:if(this.sourceRect.w())break;h>=i.width&&(o=o+p.offsetX+(h*p.x-i.width*p.x)),d>=i.height&&(a=a+p.offsetY+(d*p.y-i.height*p.y)),l=Math.min(i.width,h),s=Math.min(i.height,d);break;case ha:h=i.width,d=i.height;break;case fa:case va:f===fa?(h*=f=Math.min(i.height/d,i.width/h),d*=f):f===va&&(d*=f=Math.max(i.height/d,i.width/h),(h*=f)>=i.width&&(o=(o+p.offsetX+(h*p.x-i.width*p.x)/h)*l),d>=i.height&&(a=(a+p.offsetY+(d*p.y-i.height*p.y)/d)*s),l*=1/(h/i.width),s*=1/(d/i.height),h=i.width,d=i.height)}var g=h*(f=this.Df()*e.scale)*d*f,m=l*s/g,v=n.__goCache;f=null;var y=lc;if(!r){if(n.sq&&void 0!==v&&4<g&&m>y*y)for(null===v.gi&&(cc(v,4,u,c,n),cc(v,16,u,c,n)),u=(r=v.gi).length,c=0;c<u&&r[c].ratio*r[c].ratio<m;c++)f=r[c];if(!e.Xm){if(null===this.vl)if(null===this.Eg)this.vl=!1;else{r=new js(null).context;try{r.drawImage(this.Eg,0,0)}catch(t){this.en=!1}try{r.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(t){this.vl=!0}}if(this.vl)return}}switch(r=h<i.width?p.offsetX+(i.width*p.x-h*p.x):0,p=d<i.height?p.offsetY+(i.height*p.y-d*p.y):0,this.flip){case wa:t.translate(Math.min(i.width,h),0),t.scale(-1,1);break;case ya:t.translate(0,Math.min(i.height,d)),t.scale(1,-1);break;case ba:t.translate(Math.min(i.width,h),Math.min(i.height,d)),t.scale(-1,-1)}if(t.yc(),e.Gf("pictureRatioOptimization")&&!e.$i&&void 0!==v&&null!==f&&1!==f.ratio){t.save(),e=f.ratio;try{t.drawImage(f.source,o/e,a/e,Math.min(f.source.width,l/e),Math.min(f.source.height,s/e),r,p,Math.min(i.width,h),Math.min(i.height,d)),t instanceof ys&&(this.bt=[o/e,a/e,Math.min(f.source.width,l/e),Math.min(f.source.height,s/e),r,p,Math.min(i.width,h),Math.min(i.height,d)])}catch(t){this.en=!1}t.restore()}else try{t.drawImage(n,o,a,l,s,r,p,Math.min(i.width,h),Math.min(i.height,d)),t instanceof ys&&(this.bt=[o,a,l,s,r,p,Math.min(i.width,h),Math.min(i.height,d)])}catch(t){this.en=!1}switch(this.flip){case wa:t.scale(-1,1),t.translate(-Math.min(i.width,h),0);break;case ya:t.scale(1,-1),t.translate(0,-Math.min(i.height,d));break;case ba:t.scale(-1,-1),t.translate(-Math.min(i.width,h),-Math.min(i.height,d))}}}}},rc.prototype.Wl=function(t,e,n,i){var r=this.desiredSize,o=Ya(this,!0),a=this.Eg,s=this.qn,l=0,u=0;(s||!this.al&&a&&a.complete)&&(this.al=!0),null===a?(isFinite(r.width)||(t=0),isFinite(r.height)||(e=0)):(l=s?+a.width:a.naturalWidth,u=s?+a.height:a.naturalHeight),isFinite(r.width)||o===ha||o===pa?(isFinite(t)||(this.sourceRect.w()?t=this.sourceRect.width:null!==a&&(t=l)),n=0):null!==a&&!1!==this.al&&(t=this.sourceRect.w()?this.sourceRect.width:l),isFinite(r.height)||o===ha||o===ga?(isFinite(e)||(this.sourceRect.w()?e=this.sourceRect.height:null!==a&&(e=u)),i=0):null!==a&&!1!==this.al&&(e=this.sourceRect.w()?this.sourceRect.height:u),isFinite(r.width)&&(t=r.width),isFinite(r.height)&&(e=r.height),r=this.maxSize,o=this.minSize,n=Math.max(n||0,o.width),i=Math.max(i||0,o.height),t=Math.min(r.width,t),e=Math.min(r.height,e),t=Math.max(n,t),e=Math.max(i,e),null===a||a.complete||(isFinite(t)||(t=0),isFinite(e)||(e=0)),Ot(this.dc,t,e),this.Ge(0,0,t,e)},rc.prototype.eh=function(t,e,n,i){Ra(this,t,e,n,i)},d.Object.defineProperties(rc.prototype,{element:{get:function(){return this.Eg},set:function(t){var e=this.Eg;if(this.Uc=!0,e!==t){this.qn=t instanceof HTMLCanvasElement;var n=t instanceof HTMLImageElement;null===t||n||t instanceof HTMLVideoElement||this.qn||x("Picture.element must be an instance of Image, Canvas, or Video, not: "+t);var i=this.diagram;null!==i&&xo(i,this),this.Eg=t,null!==t&&n&&void 0===t.Bg&&(t.Bg=new J),null!==i&&n&&bo(i,this),null!==t&&(this.qn||!0===t.complete?(t.hn&&(t.ln instanceof Event&&null!==this.Hd?this.Hd(this,t.ln):!0===t.sq&&!t.ln&&null!==this.Zg&&t.eu&&this.Zg(this,t.eu)),t.sq=!0,this.desiredSize.w()||(ns(this,!1),this.v())):n&&ac(this,t)),this.g("element",e,t),this.N()}}},source:{get:function(){return this.qo},set:function(t){var e=this.qo;if(e!==t){this.Uc=!0,this.qo=t;var n=Du;if(Go){var i=null;if(void 0!==n[t])i=n[t];else if(""!==t){30<sc&&(oc(),n=Du),(i=b("img")).hn=!0,ac(this,i);var r=this.rl;null!==r&&(i.crossOrigin=r(this)),i.src=t,n[t]=i,sc++}this.element=i,null!==i&&void 0===i.__goCache&&(i.__goCache=new uc),this.v(),this.N()}this.g("source",e,t)}}},sourceCrossOrigin:{get:function(){return this.rl},set:function(t){if(this.rl!==t&&(this.rl=t,null!==this.element)){var e=this.element.getAttribute("src");null===t&&"string"==typeof e?this.element.crossOrigin=null:null!==t&&(this.element.crossOrigin=t(this)),this.element.src=e}}},sourceRect:{get:function(){return this.Xg},set:function(t){var e=this.Xg;e.D(t)||(this.Xg=t=t.J(),this.N(),this.g("sourceRect",e,t))}},imageStretch:{get:function(){return this.Nk},set:function(t){var e=this.Nk;e!==t&&(this.Nk=t,this.N(),this.g("imageStretch",e,t))}},flip:{get:function(){return this.Xf},set:function(t){var e=this.Xf;e!==t&&(this.Xf=t,this.N(),this.g("flip",e,t))}},imageAlignment:{get:function(){return this.Mk},set:function(t){var e=this.Mk;e.D(t)||(this.Mk=t=t.J(),this.N(),this.g("imageAlignment",e,t))}},errorFunction:{get:function(){return this.Hd},set:function(t){var e=this.Hd;e!==t&&(this.Hd=t,this.g("errorFunction",e,t))}},successFunction:{get:function(){return this.Zg},set:function(t){var e=this.Zg;e!==t&&(this.Zg=t,this.g("successFunction",e,t))}},naturalBounds:{get:function(){return this.dc}}}),rc.prototype.redraw=rc.prototype.redraw,rc.prototype.reloadSource=rc.prototype.hA;var sc=0,lc=4;function uc(){this.gi=null}function cc(t,e,n,i,r){null===t.gi&&(t.gi=[]);var o=new js(null),a=o.context,s=1/e;o.width=n/e,o.height=i/e,0!==o.width&&0!==o.height&&(e=new hc(o.Oa,e),n=1,0<t.gi.length&&(r=(n=t.gi[t.gi.length-1]).source,n=n.ratio),a.setTransform(s*n,0,0,s*n,0,0),a.yc(),a.drawImage(r,0,0),t.gi.push(e))}function hc(t,e){this.source=t,this.ratio=e}function dc(){this.os=new Ze,this.mc=null}function fc(t,e,n,i,r,o){t.mc=new Je,t.mc.startX=e,t.mc.startY=n,t.mc.isFilled=i,t.mc.isEvenOdd=o||!1,t.os.figures.add(t.mc),void 0!==r&&(t.mc.isShadowed=r)}function pc(t){var e=t.mc.segments.length;0<e&&t.mc.segments.M(e-1).close()}function gc(t,e,n,i,r,o,a){var s;void 0===s&&(s=!1);var l=new $e(on);l.point1X=e,l.point1Y=n,l.point2X=i,l.point2Y=r,l.endX=o,l.endY=a,s&&l.close(),t.mc.segments.add(l)}function mc(t,e,n,i,r){var o;void 0===o&&(o=!1);var a=new $e(an);a.point1X=e,a.point1Y=n,a.endX=i,a.endY=r,o&&a.close(),t.mc.segments.add(a)}function vc(t,e,n,i,r,o,a,s){var l;void 0===l&&(l=!1),e=new $e(ln,a,s,e,n,i,r,o),l&&e.close(),t.mc.segments.add(e)}function yc(t){var e=wc;return null!==e?(wc=null,e.reset(t),e):((e=new dc).reset(t),e)}rc.className="Picture",Du=new _,rc.clearCache=oc,uc.className="PictureCacheArray",hc.className="PictureCacheInstance",dc.prototype.reset=function(t){null!==t?(t.ka(),this.os=t,t.figures.clear()):this.os=new Ze,this.mc=null},dc.prototype.moveTo=function(t,e,n){void 0===n&&(n=!1);var i=new $e(nn);i.endX=t,i.endY=e,n&&i.close(),this.mc.segments.add(i)},dc.prototype.lineTo=function(t,e,n){void 0===n&&(n=!1);var i=new $e(rn);i.endX=t,i.endY=e,n&&i.close(),this.mc.segments.add(i)},dc.prototype.arcTo=function(t,e,n,i,r,o,a){void 0===o&&(o=0),void 0===a&&(a=!1);var s=new $e(sn);s.startAngle=t,s.sweepAngle=e,s.centerX=n,s.centerY=i,s.radiusX=r,s.radiusY=0!==o?o:r,a&&s.close(),this.mc.segments.add(s)};var wc=null;function bc(t,e){var n=t.toLowerCase(),i=_e.Ze;i[t]=e,i[n]=t}function xc(){this.nc=!1,this.tr=this.Kp=this.zq=null,this.vr="",this.fr=this.oq=this.ur=null,this.hr="",this.gr=Et,this.ir=null,this.jr="",this.lr=ke,this.Gq="",this.Hq=te,this.Pq=it,this.Kq=rt,this.Up=null,this.Cq=127,this.zr=ot,this.yr="gray",this.Vg=4}function Sc(t,e){void 0===t||t instanceof hl||"string"==typeof t?Ml.call(this,t):(Ml.call(this),t&&(e=t)),this.G=2408959,this.Tf="",this.P=null,this.Jg="",this.Qf=this.Ug=null,this.ec="",this.Ah=this.Ig=null,this.ke=new pt(NaN,NaN).freeze(),this.nf=null,this.Ao=NaN,this.vw=-1,this.py=new Bt,this.Rh=null,this.ag=NaN,e&&Object.assign(this,e)}function Pc(t){null===t.P?t.P=new xc:t.P.nc&&(t.P=t.P.copy())}function kc(t){0!=(16384&t.G)!=!1&&(t.updateAdornments(),t.G&=-16385)}function Cc(t){if(!1===Dc(t)){Rc(t,!0),t.Uk();var e=t.diagram;null!==e&&(e.De.add(t),e.$b())}}function Ac(t){if(t.G|=2097152,!1!==Dc(t)){var e=t.position,n=t.location;n.w()&&e.w()||Nc(t,e,n),n=t.Ib;var i=Bt.alloc().assign(n);n.ka(),n.x=e.x,n.y=e.y,n.freeze(),t.Xl(i,n),Bt.free(i),Rc(t,!1)}}function Mc(t,e,n,i){void 0===i&&(i=new pt),n=n.Mc()?re:n;var r=e.naturalBounds;if(i.h(r.width*n.x+n.offsetX,r.height*n.y+n.offsetY),null===e||e===t)return i;for(e.transform.Ga(i),e=e.panel;null!==e&&e!==t;)e.transform.Ga(i),e=e.panel;return null!==t.Lb&&t.Lb.Ga(i),i.offset(-t.uc.x,-t.uc.y),i}function Ec(t){var e=pt.alloc(),n=t.locationObject,i=n.naturalBounds,r=n instanceof pu?n.strokeWidth:0;if(e.yi(0,0,i.width+r,i.height+r,t.locationSpot),n!==t)for(e.offset(-r/2,-r/2),n.transform.Ga(e),n=n.panel;null!==n&&n!==t;)n.transform.Ga(e),n=n.panel;return null!==t.Lb&&t.Lb.Ga(e),e.offset(-t.uc.x,-t.uc.y),e}function Lc(t,e){var n=t.py;isNaN(t.ag)&&(t.ag=zl(t));var i=t.ag,r=2*i;if(!t.isShadowed)return n.h(e.x-1-i,e.y-1-i,e.width+2+r,e.height+2+r),n;i=e.x,r=e.y;var o=e.width;e=e.height;var a=t.shadowBlur;return o+=a,e+=a,i-=a/2,r-=a/2,0<(t=t.shadowOffset).x?o+=t.x:(i+=t.x,o-=t.x),0<t.y?e+=t.y:(r+=t.y,e-=t.y),n.h(i-1,r-1,o+2,e+2),n}function Tc(t,e,n,i,r){null===e||t instanceof Yc||(e=e.animationManager).zb&&qi(e,t,new pt(i,r),n)}function Nc(t,e,n){var i=Ec(t),r=t.diagram,o=n.w(),a=e.w();o&&a?0!=(2097152&t.G)?jc(t,e,n,r,i):Ic(t,e,n,r,i):o?jc(t,e,n,r,i):a&&Ic(t,e,n,r,i),t.G|=2097152,pt.free(i),t.Uk()}function jc(t,e,n,i,r){var o=e.x,a=e.y;e.h(n.x-r.x,n.y-r.y),null!==i&&((i=(n=i.animationManager).defaultAnimation.isAnimating)||!n.zb||t instanceof Yc||qi(n,t,new pt(o,a),e),i||e.x===o&&e.y===a||t.g("position",new pt(o,a),e.copy()))}function Ic(t,e,n,i,r){var o=n.copy();n.h(e.x+r.x,e.y+r.y),n.D(o)||null===i||t.g("location",o,n.copy())}function Bc(t,e,n){Fc(t,!1),t instanceof qc&&Bo(n,t),t.layer.isTemporary||e||n.Ya(),e=t.Ib;var i=n.viewportBounds;i.w()?zc(t)?(Ut(e,i)||t.Fd(!1),t.updateAdornments()):t.isVisible()&&e.Yc(i)?(t.Fd(!0),t.updateAdornments()):t.Wb():n.vd=!0}function Oc(t,e,n,i){e.constructor===t.constructor||Vc||(Vc=!0,k('Should not change the class of the Part when changing category from "'+n+'" to "'+i+'"'),k(" Old class: "+j(t.constructor)+", new class: "+j(e.constructor)+", part: "+t.toString())),t.Ej();var r=t.data;n=t.layerName;var o=t.isSelected,a=t.isHighlighted,s=!0,l=!0,u=!1;t instanceof qc&&(s=t.isTreeLeaf,l=t.isTreeExpanded,u=t.wasTreeExpanded),e.Af(t),e.cloneProtected(t),t.Tf=i,null!==t.svg&&(t.svg.remove(),t.svg=null,t.Uc=!0),t.v(),t.N(),i=!0,null!==(e=t.diagram)&&(i=e.skipsUndoManager,e.skipsUndoManager=!0),t.ub=r,t.G=o?4096|t.G:-4097&t.G,t.G=a?524288|t.G:-524289&t.G,t instanceof qc&&(t.U=s?4|t.U:-5&t.U,t.U=l?1|t.U:-2&t.U,t.U=u?2|t.U:-3&t.U),null!==r&&t.La(),(r=t.layerName)!==n&&(t.Jg=n,t.layerName=r),null!==e&&(e.skipsUndoManager=i),t.Zc()&&t.C(64)}function Dc(t){return 0!=(32768&t.G)}function Rc(t,e){t.G=e?32768|t.G:-32769&t.G}function Fc(t,e){t.G=e?65536|t.G:-65537&t.G}function zc(t){return 0!=(131072&t.G)}function Gc(t,e){t.G=e?1048576|t.G:-1048577&t.G}function Uc(t,e){var n=e.containingGroup;return null!==n?1+Uc(t,n):e instanceof qc&&null!==(e=e.labeledLink)?Uc(t,e):0}function Hc(t,e){var n=e.containingGroup;return null!==n||e instanceof qc&&null!==(n=e.labeledLink)?Hc(t,n):e}function _c(t,e,n){if(e===n||null===n)return!1;var i=e.containingGroup;return!(null===i||i!==n&&!_c(t,i,n))||e instanceof qc&&null!==(e=e.labeledLink)&&_c(t,e,n)}function Zc(t){return!!t.isVisible()&&(null===(t=t.layer)||!t.isTemporary)}function Wc(t,e,n,i,r,o){if(void 0===o&&(o=null),!(t.contains(e)||null!==o&&!o(e)||e instanceof Yc))if(t.add(e),e instanceof qc){if(n&&e instanceof gh)for(var a=e.memberParts;a.next();)Wc(t,a.value,n,i,r,o);if(!1!==r)for(a=e.linksConnected;a.next();){var s=a.value;if(!t.contains(s)){var l=s.fromNode,u=s.toNode;l=null===l||t.contains(l),u=null===u||t.contains(u),(r?l&&u:l||u)&&Wc(t,s,n,i,r,o)}}if(1<i)for(e=e.Ou();e.next();)Wc(t,e.value,n,i-1,r,o)}else if(e instanceof xh)for(e=e.labelNodes;e.next();)Wc(t,e.value,n,i,r,o)}dc.className="StreamGeometryContext",bc("Rectangle",(function(t,e,n){t="r"+e+","+n;var i=_e.Mf[t];return void 0!==i||((i=new Ze(Ze.u)).endX=e,i.endY=n,_e.Nf<_e.vm&&(_e.Mf[t]=i,_e.Nf++)),i})),bc("Square",(function(t,e,n){t="s"+e+","+n;var i=_e.Mf[t];return void 0!==i||((i=new Ze(Ze.u)).endX=e,i.endY=n,i.defaultStretch=fa,_e.Nf<_e.vm&&(_e.Mf[t]=i,_e.Nf++)),i})),bc("RoundedRectangle",(function(t,e,n){t=t?t.parameter1:NaN,(isNaN(t)||0>t)&&(t=5),t=Math.min(t,e/3);var i="rr"+e+","+n+","+(t=Math.min(t,n/3)),r=_e.Mf[i];if(void 0!==r)return r;var o=t*_e.wg;return r=(new Ze).add(new Je(t,0,!0).add(new $e(rn,e-t,0)).add(new $e(on,e,t,e-o,0,e,o)).add(new $e(rn,e,n-t)).add(new $e(on,e-t,n,e,n-o,e-o,n)).add(new $e(rn,t,n)).add(new $e(on,0,n-t,o,n,0,n-o)).add(new $e(rn,0,t)).add(new $e(on,t,0,0,o,o,0).close())),1<o&&(r.spot1=new De(0,0,o,o),r.spot2=new De(1,1,-o,-o)),_e.Nf<_e.vm&&(_e.Mf[i]=r,_e.Nf++),r})),bc("Border","RoundedRectangle"),bc("Ellipse",(function(t,e,n){t="e"+e+","+n;var i=_e.Mf[t];return void 0!==i||((i=new Ze(Ze.F)).endX=e,i.endY=n,i.spot1=Ie,i.spot2=Be,_e.Nf<_e.vm&&(_e.Mf[t]=i,_e.Nf++)),i})),bc("Circle",(function(t,e,n){t="c"+e+","+n;var i=_e.Mf[t];return void 0!==i||((i=new Ze(Ze.F)).endX=e,i.endY=n,i.spot1=Ie,i.spot2=Be,i.defaultStretch=fa,_e.Nf<_e.vm&&(_e.Mf[t]=i,_e.Nf++)),i})),bc("TriangleRight",(function(t,e,n){return(new Ze).add(new Je(0,0).add(new $e(rn,e,.5*n)).add(new $e(rn,0,n).close())).pm(0,.25,.5,.75)})),bc("TriangleDown",(function(t,e,n){return(new Ze).add(new Je(0,0).add(new $e(rn,e,0)).add(new $e(rn,.5*e,n).close())).pm(.25,0,.75,.5)})),bc("TriangleLeft",(function(t,e,n){return(new Ze).add(new Je(e,n).add(new $e(rn,0,.5*n)).add(new $e(rn,e,0).close())).pm(.5,.25,1,.75)})),bc("TriangleUp",(function(t,e,n){return(new Ze).add(new Je(e,n).add(new $e(rn,0,n)).add(new $e(rn,.5*e,0).close())).pm(.25,.5,.75,1)})),bc("Triangle","TriangleUp"),bc("Diamond",(function(t,e,n){return(new Ze).add(new Je(.5*e,0).add(new $e(rn,0,.5*n)).add(new $e(rn,.5*e,n)).add(new $e(rn,e,.5*n).close())).pm(.25,.25,.75,.75)})),bc("LineH",(function(t,e,n){return(t=new Ze(Ze.j)).startX=0,t.startY=n/2,t.endX=e,t.endY=n/2,t})),bc("LineV",(function(t,e,n){return(t=new Ze(Ze.j)).startX=e/2,t.startY=0,t.endX=e/2,t.endY=n,t})),bc("None","Rectangle"),bc("BarH","Rectangle"),bc("BarV","Rectangle"),bc("MinusLine","LineH"),bc("PlusLine",(function(t,e,n){return(new Ze).add(new Je(0,n/2,!1).add(new $e(rn,e,n/2)).add(new $e(nn,e/2,0)).add(new $e(rn,e/2,n)))})),bc("XLine",(function(t,e,n){return(new Ze).add(new Je(0,n,!1).add(new $e(rn,e,0)).add(new $e(nn,0,0)).add(new $e(rn,e,n)))})),bc("LineRight",(function(t,e,n){return(new Ze).add(new Je(.25*e,0,!1).add(new $e(rn,.75*e,.5*n)).add(new $e(rn,.25*e,n)))})),bc("LineDown",(function(t,e,n){return(new Ze).add(new Je(0,.25*n,!1).add(new $e(rn,.5*e,.75*n)).add(new $e(rn,e,.25*n)))})),bc("LineLeft",(function(t,e,n){return(new Ze).add(new Je(.75*e,0,!1).add(new $e(rn,.25*e,.5*n)).add(new $e(rn,.75*e,n)))})),bc("LineUp",(function(t,e,n){return(new Ze).add(new Je(0,.75*n,!1).add(new $e(rn,.5*e,.25*n)).add(new $e(rn,e,.75*n)))})),_e.um={"":"",Standard:"F1 m 0,0 l 8,4 -8,4 2,-4 z",Backward:"F1 m 8,0 l -2,4 2,4 -8,-4 z",Triangle:"F1 m 0,0 l 8,4.62 -8,4.62 z",BackwardTriangle:"F1 m 8,4 l 0,4 -8,-4 8,-4 0,4 z",Boomerang:"F1 m 0,0 l 8,4 -8,4 4,-4 -4,-4 z",BackwardBoomerang:"F1 m 8,0 l -8,4 8,4 -4,-4 4,-4 z",SidewaysV:"m 0,0 l 8,4 -8,4 0,-1 6,-3 -6,-3 0,-1 z",BackwardV:"m 8,0 l -8,4 8,4 0,-1 -6,-3 6,-3 0,-1 z",OpenTriangle:"m 0,0 l 8,4 -8,4",BackwardOpenTriangle:"m 8,0 l -8,4 8,4",OpenTriangleLine:"m 0,0 l 8,4 -8,4 m 8.5,0 l 0,-8",BackwardOpenTriangleLine:"m 8,0 l -8,4 8,4 m -8.5,0 l 0,-8",OpenTriangleTop:"m 0,0 l 8,4 m 0,4",BackwardOpenTriangleTop:"m 8,0 l -8,4 m 0,4",OpenTriangleBottom:"m 0,8 l 8,-4",BackwardOpenTriangleBottom:"m 0,4 l 8,4",HalfTriangleTop:"F1 m 0,0 l 0,4 8,0 z m 0,8",BackwardHalfTriangleTop:"F1 m 8,0 l 0,4 -8,0 z m 0,8",HalfTriangleBottom:"F1 m 0,4 l 0,4 8,-4 z",BackwardHalfTriangleBottom:"F1 m 8,4 l 0,4 -8,-4 z",ForwardSemiCircle:"m 4,0 b 270 180 0 4 4",BackwardSemiCircle:"m 4,8 b 90 180 0 -4 4",Feather:"m 0,0 l 3,4 -3,4",BackwardFeather:"m 3,0 l -3,4 3,4",DoubleFeathers:"m 0,0 l 3,4 -3,4 m 3,-8 l 3,4 -3,4",BackwardDoubleFeathers:"m 3,0 l -3,4 3,4 m 3,-8 l -3,4 3,4",TripleFeathers:"m 0,0 l 3,4 -3,4 m 3,-8 l 3,4 -3,4 m 3,-8 l 3,4 -3,4",BackwardTripleFeathers:"m 3,0 l -3,4 3,4 m 3,-8 l -3,4 3,4 m 3,-8 l -3,4 3,4",ForwardSlash:"m 0,8 l 5,-8",BackSlash:"m 0,0 l 5,8",DoubleForwardSlash:"m 0,8 l 4,-8 m -2,8 l 4,-8",DoubleBackSlash:"m 0,0 l 4,8 m -2,-8 l 4,8",TripleForwardSlash:"m 0,8 l 4,-8 m -2,8 l 4,-8 m -2,8 l 4,-8",TripleBackSlash:"m 0,0 l 4,8 m -2,-8 l 4,8 m -2,-8 l 4,8",Fork:"m 0,4 l 8,0 m -8,0 l 8,-4 m -8,4 l 8,4",BackwardFork:"m 8,4 l -8,0 m 8,0 l -8,-4 m 8,4 l -8,4",LineFork:"m 0,0 l 0,8 m 0,-4 l 8,0 m -8,0 l 8,-4 m -8,4 l 8,4",BackwardLineFork:"m 8,4 l -8,0 m 8,0 l -8,-4 m 8,4 l -8,4 m 8,-8 l 0,8",CircleFork:"F1 m 6,4 b 0 360 -3 0 3 z m 0,0 l 6,0 m -6,0 l 6,-4 m -6,4 l 6,4",BackwardCircleFork:"F1 m 0,4 l 6,0 m -6,-4 l 6,4 m -6,4 l 6,-4 m 6,0 b 0 360 -3 0 3",CircleLineFork:"F1 m 6,4 b 0 360 -3 0 3 z m 1,-4 l 0,8 m 0,-4 l 6,0 m -6,0 l 6,-4 m -6,4 l 6,4",BackwardCircleLineFork:"F1 m 0,4 l 6,0 m -6,-4 l 6,4 m -6,4 l 6,-4 m 0,-4 l 0,8 m 7,-4 b 0 360 -3 0 3",Circle:"F1 m 8,4 b 0 360 -4 0 4 z",Block:"F1 m 0,0 l 0,8 8,0 0,-8 z",StretchedDiamond:"F1 m 0,3 l 5,-3 5,3 -5,3 -5,-3 z",Diamond:"F1 m 0,4 l 4,-4 4,4 -4,4 -4,-4 z",Chevron:"F1 m 0,0 l 5,0 3,4 -3,4 -5,0 3,-4 -3,-4 z",StretchedChevron:"F1 m 0,0 l 8,0 3,4 -3,4 -8,0 3,-4 -3,-4 z",NormalArrow:"F1 m 0,2 l 4,0 0,-2 4,4 -4,4 0,-2 -4,0 z",X:"m 0,0 l 8,8 m 0,-8 l -8,8",TailedNormalArrow:"F1 m 0,0 l 2,0 1,2 3,0 0,-2 2,4 -2,4 0,-2 -3,0 -1,2 -2,0 1,-4 -1,-4 z",DoubleTriangle:"F1 m 0,0 l 4,4 -4,4 0,-8 z m 4,0 l 4,4 -4,4 0,-8 z",BigEndArrow:"F1 m 0,0 l 5,2 0,-2 3,4 -3,4 0,-2 -5,2 0,-8 z",ConcaveTailArrow:"F1 m 0,2 h 4 v -2 l 4,4 -4,4 v -2 h -4 l 2,-2 -2,-2 z",RoundedTriangle:"F1 m 0,1 a 1,1 0 0 1 1,-1 l 7,3 a 0.5,1 0 0 1 0,2 l -7,3 a 1,1 0 0 1 -1,-1 l 0,-6 z",SimpleArrow:"F1 m 1,2 l -1,-2 2,0 1,2 -1,2 -2,0 1,-2 5,0 0,-2 2,2 -2,2 0,-2 z",AccelerationArrow:"F1 m 0,0 l 0,8 0.2,0 0,-8 -0.2,0 z m 2,0 l 0,8 1,0 0,-8 -1,0 z m 3,0 l 2,0 2,4 -2,4 -2,0 0,-8 z",BoxArrow:"F1 m 0,0 l 4,0 0,2 2,0 0,-2 2,4 -2,4 0,-2 -2,0 0,2 -4,0 0,-8 z",TriangleLine:"F1 m 8,4 l -8,-4 0,8 8,-4 z m 0.5,4 l 0,-8",CircleEndedArrow:"F1 m 10,4 l -2,-3 0,2 -2,0 0,2 2,0 0,2 2,-3 z m -4,0 b 0 360 -3 0 3 z",DynamicWidthArrow:"F1 m 0,3 l 2,0 2,-1 2,-2 2,4 -2,4 -2,-2 -2,-1 -2,0 0,-2 z",EquilibriumArrow:"m 0,3 l 8,0 -3,-3 m 3,5 l -8,0 3,3",FastForward:"F1 m 0,0 l 3.5,4 0,-4 3.5,4 0,-4 1,0 0,8 -1,0 0,-4 -3.5,4 0,-4 -3.5,4 0,-8 z",Kite:"F1 m 0,4 l 2,-4 6,4 -6,4 -2,-4 z",HalfArrowTop:"F1 m 0,0 l 4,4 4,0 -8,-4 z m 0,8",HalfArrowBottom:"F1 m 0,8 l 4,-4 4,0 -8,4 z",OpposingDirectionDoubleArrow:"F1 m 0,4 l 2,-4 0,2 4,0 0,-2 2,4 -2,4 0,-2 -4,0 0,2 -2,-4 z",PartialDoubleTriangle:"F1 m 0,0 4,3 0,-3 4,4 -4,4 0,-3 -4,3 0,-8 z",LineCircle:"F1 m 0,0 l 0,8 m 7 -4 b 0 360 -3 0 3 z",DoubleLineCircle:"F1 m 0,0 l 0,8 m 2,-8 l 0,8 m 7 -4 b 0 360 -3 0 3 z",TripleLineCircle:"F1 m 0,0 l 0,8 m 2,-8 l 0,8 m 2,-8 l 0,8 m 7 -4 b 0 360 -3 0 3 z",CircleLine:"F1 m 6 4 b 0 360 -3 0 3 z m 1,-4 l 0,8",DiamondCircle:"F1 m 8,4 l -4,4 -4,-4 4,-4 4,4 m 8,0 b 0 360 -4 0 4 z",PlusCircle:"F1 m 8,4 b 0 360 -4 0 4 l -8 0 z m -4 -4 l 0 8",OpenRightTriangleTop:"m 8,0 l 0,4 -8,0 m 0,4",OpenRightTriangleBottom:"m 8,8 l 0,-4 -8,0",Line:"m 0,0 l 0,8",DoubleLine:"m 0,0 l 0,8 m 2,0 l 0,-8",TripleLine:"m 0,0 l 0,8 m 2,0 l 0,-8 m 2,0 l 0,8",PentagonArrow:"F1 m 8,4 l -4,-4 -4,0 0,8 4,0 4,-4 z"},xc.prototype.copy=function(){var t=new xc;return t.zq=this.zq,t.Kp=this.Kp,t.tr=this.tr,t.vr=this.vr,t.ur=this.ur,t.oq=this.oq,t.fr=this.fr,t.hr=this.hr,t.gr=this.gr.J(),t.ir=this.ir,t.jr=this.jr,t.lr=this.lr.J(),t.Gq=this.Gq,t.Hq=this.Hq.J(),t.Pq=this.Pq.J(),t.Kq=this.Kq.J(),t.Up=this.Up,t.Cq=this.Cq,t.zr=this.zr.J(),t.yr=this.yr,t.Vg=this.Vg,t},h(Sc,Ml),Sc.prototype.cloneProtected=function(t){Ml.prototype.cloneProtected.call(this,t),t.G=-4097&this.G|49152,t.Tf=this.Tf,null!==this.P&&(t.P=this.P.nc?this.P:this.P.copy()),t.Jg=this.Jg,t.Qf=null,t.ec=this.ec,t.ke.assign(this.ke),t.Ao=this.Ao},(e=Sc.prototype).Af=function(t){Ml.prototype.Af.call(this,t),t.oh(),t.Ug=null,t.nf=null,t.Rh=null},e.toString=function(){var t=j(this.constructor)+"#"+et(this);return null!==this.data&&(t+="("+I(this.data)+")"),t},e.th=function(){Ml.prototype.th.call(this),null!==this.P&&(this.P.nc=!0)},e.gk=function(t,e,n,i,r,o,a){var s=this.diagram;null!==s&&(t===pn&&"elements"===e?r instanceof Ml?Bl(r,(function(t){rf(s.partManager,t),wo(s,t)})):bo(s,r):t===gn&&"elements"===e&&(r instanceof Ml?Bl(r,(function(t){of(s.partManager,t,s)})):xo(s,r)),s.cb(t,e,n,i,r,o,a))},e.La=function(t){if(Ml.prototype.La.call(this,t),null!==this.data){for(var e=this.O.s,n=e.length,i=0;i<n;i++){var r=e[i];r instanceof Ml&&Bl(r,(function(t){null!==t.data&&t.La()}))}for(e=this.adornments;e.next();)e.value.La(t)}},Sc.prototype.updateRelationshipsFromData=function(){var t;null!==this.data&&(null===(t=this.diagram)||void 0===t||t.partManager.updateRelationshipsFromData(this))},Sc.prototype.Pj=function(t){var e=this.Qf;return null===e?null:e.I(t)},Sc.prototype.bh=function(t,e){if(null!==e){var n=null,i=this.Qf;if(null!==i&&(n=i.I(t)),n!==e){if(null!==n){var r=n.diagram;null!==r&&r.remove(n)}null===i&&(this.Qf=i=new ft),e.Tf!==t&&(e.category=t),i.add(t,e),null!==(t=this.diagram)&&(t.add(e),null!==(t=e.adornedObject)&&(null!==(t=t.ih())&&(e.data=t.data)))}}},Sc.prototype.Jf=function(t){var e=this.Qf;if(null!==e){var n=e.I(t);if(null!==n){var i=n.diagram;null!==i&&i.remove(n)}e.remove(t),0===e.count&&(this.Qf=null)}},Sc.prototype.Ej=function(){var t=this.Qf;if(null!==t){var e=T();for(t=t.iterator;t.next();)e.push(t.key);t=e.length;for(var n=0;n<t;n++)this.Jf(e[n]);N(e)}},Sc.prototype.updateAdornments=function(){var t=this.diagram;if(null!==t){for(var e=this.adornments;e.next();){var n=e.value;n.v(),n.placeholder&&n.placeholder.v()}t:{if(this.isSelected&&this.selectionAdorned&&(null!==(e=this.selectionObject)&&this.actualBounds.w()&&this.isVisible()&&e.Ed()&&e.actualBounds.w())){if(null===(n=this.Pj("Selection"))){if(null===(n=this.selectionAdornmentTemplate)&&(n=this.ph()?t.linkSelectionAdornmentTemplate:this instanceof gh?t.groupSelectionAdornmentTemplate:t.nodeSelectionAdornmentTemplate),!(n instanceof Yc))break t;Xl(n),null!==(n=n.copy())&&(this.ph()&&this.selectionObject===this.path&&(n.type=Ml.Link),n.adornedObject=e)}if(null!==n){n.type===Ml.Link&&n.v(),this.bh("Selection",n);break t}}this.Jf("Selection")}for(function(t,e){e.toolManager.mouseDownTools.each((function(e){e.isEnabled&&e.updateAdornments(t)})),e.toolManager.updateAdornments(t)}(this,t),e=this.adornments;e.next();)e.value.La()}},Sc.prototype.Wb=function(){var t=this.diagram;null!==t&&(t.vd=!0,0!=(16384&this.G)!=!0&&(this.G|=16384))},Sc.prototype.Ge=function(t,e,n,i){var r=this.uc;r.h(t,e,n,i),null===this.Lb&&(this.Lb=new Ue);var o=this.Lb;o.reset(),this.no(o,t,e,n,i),this.Lb=o,o.ws()||o.pp(r)},Sc.prototype.no=function(t,e,n,i,r){if(1!==this.Ca&&t.scale(this.Ca),0!==this.Kb){var o=re;this.locationSpot.sb()&&(o=this.locationSpot);var a=pt.alloc();if(this.locationObject!==this)for(n=(e=this.locationObject).naturalBounds,a.yi(n.x,n.y,n.width,n.height,o),null!==e.Lb&&e.Lb.Ga(a),a.offset(-e.measuredBounds.x,-e.measuredBounds.y),o=e.panel;null!==o&&o!==this;)null!==o.Lb&&o.Lb.Ga(a),a.offset(-o.measuredBounds.x,-o.measuredBounds.y),o=o.panel;else a.yi(e,n,i,r,o);t.rotate(this.Kb,a.x,a.y),pt.free(a)}},Sc.prototype.move=function(t,e){!0===e?this.location=t:this.position=t},Sc.prototype.moveTo=function(t,e,n){t=pt.allocAt(t,e),this.move(t,n),pt.free(t)},Sc.prototype.isVisible=function(){if(!this.visible)return!1;var t=this.layer;if(null!==t){if(!t.visible)return!1;if(null!==(t=t.diagram)&&t.animationManager.fv(this))return!0}return!!(null===(t=this.containingGroup)||t.isSubGraphExpanded&&t.isVisible())},Sc.prototype.Zb=function(t){var e=this.diagram;t?(this.C(4),this.Wb(),null!==e&&e.De.add(this)):(this.C(8),this.Ej()),this.oh(),null!==e&&(e.Ya(),e.N())},Sc.prototype.fb=function(t){if(this.name===t)return this;var e=this.Rh;if(null===e&&(this.Rh=e=new ft),null!==e.I(t))return e.I(t);var n=Ml.prototype.fb.call(this,t);return null!==n?(e.set(t,n),n):(e.set(t,null),null)},Sc.prototype.mi=function(t){return void 0===t&&(t=new Bt),t.assign(this.actualBounds)},Sc.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()},Sc.prototype.arrange=function(){if(!1===is(this))Ac(this);else{rs(this,!1);var t=this.Ib,e=Bt.alloc();e.assign(t);var n=zc(this);this.eh(0,0,this.uc.width,this.uc.height);var i=this.position;Nc(this,i,this.location),t.ka(),t.x=i.x,t.y=i.y,t.freeze(),this.Xl(e,t),e.D(t)?this.Fd(n):!this.Zc()||_e.B(e.width,t.width)&&_e.B(e.height,t.height)||0<=this.vw&&this.C(16),Bt.free(e),Rc(this,!1)}},(e=Sc.prototype).Xl=function(t,e){var n=this.diagram;if(null!==n){var i=!1;if(!1===n.Zi&&t.w()){var r=Bt.alloc();r.assign(n.documentBounds),r.Fv(n.padding),t.x>r.x&&t.y>r.y&&t.right<r.right&&t.bottom<r.bottom&&e.x>r.x&&e.y>r.y&&e.right<r.right&&e.bottom<r.bottom&&(i=!0),Bt.free(r)}0!=(65536&this.G)!=!0&&t.D(e)||Bc(this,i,n),n.N(),!t.w()&&!e.w()||Ft(t,e)||(this instanceof qc&&!n.undoManager.isUndoingRedoing&&this.Bd(),this.oh())}},e.zv=function(t,e,n){if(this.ph()||!t.w())return!1;var i=this.diagram;return null!==i&&Tc(this,i,t,e,n),this.pa=t,this.G&=-2097153,!this.ke.w()||null!==i&&!i.animationManager.isTicking&&i.undoManager.isUndoingRedoing||(i=this.ke,this.ke=new pt(i.x+(t.x-e),i.y+(t.y-n)),this.g("location",i,this.ke.copy())),!1===Dc(this)&&!1===is(this)&&(Cc(this),Ac(this)),!0},e.mm=function(t,e,n){var i=this.ke,r=this.pa;if(n){if(i.x===t&&i.y===e)return;Dc(this)||is(this)?r.h(NaN,NaN):r.h(r.x+t-i.x,r.y+e-i.y),i.h(t,e)}else{if(r.x===t&&r.y===e)return;i.h(i.x+t-r.x,i.y+e-r.y),r.h(t,e)}Cc(this)},e.Av=function(){this.G&=-2097153,Cc(this)},e.si=function(){return!0},e.Zc=function(){return!0},e.ph=function(){return!1},e.Dd=function(){return!0},Sc.prototype.canCopy=function(){if(!this.copyable)return!1;var t=this.layer;return null===t||!!t.allowCopy&&(null===(t=t.diagram)||!!t.allowCopy)},Sc.prototype.canDelete=function(){if(!this.deletable)return!1;var t=this.layer;return null===t||!!t.allowDelete&&(null===(t=t.diagram)||!!t.allowDelete)},Sc.prototype.canEdit=function(){if(!this.textEditable)return!1;var t=this.layer;return null===t||!!t.allowTextEdit&&(null===(t=t.diagram)||!!t.allowTextEdit)},Sc.prototype.canGroup=function(){if(!this.groupable)return!1;var t=this.layer;return null===t||!!t.allowGroup&&(null===(t=t.diagram)||!!t.allowGroup)},Sc.prototype.canMove=function(){if(!this.movable)return!1;var t=this.layer;return null===t||!!t.allowMove&&(null===(t=t.diagram)||!!t.allowMove)},Sc.prototype.canReshape=function(){if(!this.reshapable)return!1;var t=this.layer;return null===t||!!t.allowReshape&&(null===(t=t.diagram)||!!t.allowReshape)},Sc.prototype.canResize=function(){if(!this.resizable)return!1;var t=this.layer;return null===t||!!t.allowResize&&(null===(t=t.diagram)||!!t.allowResize)},Sc.prototype.canRotate=function(){if(!this.rotatable)return!1;var t=this.layer;return null===t||!!t.allowRotate&&(null===(t=t.diagram)||!!t.allowRotate)},Sc.prototype.canSelect=function(){if(!this.selectable)return!1;var t=this.layer;return null===t||!!t.allowSelect&&(null===(t=t.diagram)||!!t.allowSelect)},(e=Sc.prototype).Fd=function(t){this.G=t?131072|this.G:-131073&this.G},e.oh=function(){var t=this.containingGroup;null!==t&&(t.v(),null!==t.placeholder&&t.placeholder.v(),t.Bd())},e.N=function(){var t=this.diagram;null!==t&&!is(this)&&!Dc(this)&&this.isVisible()&&this.Ib.w()&&t.N(Lc(this,this.Ib))},e.v=function(){Ml.prototype.v.call(this);var t=this.diagram;null!==t&&(t.De.add(this),this instanceof qc&&null!==this.labeledLink&&Va(this.labeledLink),t.$b(!0))},e.Vo=function(t){t||null!==(t=this.Ah)&&mh(t,this)},e.Wo=function(t){t||null!==(t=this.Ah)&&vh(t,this)},e.Lj=function(){var t=this.data;if(null!==t){var e=this.diagram;null!==e&&(null!==(e=e.model)&&e.cm(t))}},e.oz=function(){return Uc(this,this)},e.sz=function(){return Hc(this,this)},e.Td=function(t){return t instanceof gh&&_c(this,this,t)},e.px=function(t){if(null===t)return null;if(this===t)return this.containingGroup;for(var e=this;null!==e;){if(e instanceof gh&&Gc(e,!0),e instanceof qc){var n=e.labeledLink;null!==n&&(e=n)}e=e.containingGroup}for(n=null,e=t;null!==e;){if(0!=(1048576&e.G)){n=e;break}e instanceof qc&&(null!==(t=e.labeledLink)&&(e=t)),e=e.containingGroup}for(e=this;null!==e;)e instanceof gh&&Gc(e,!1),e instanceof qc&&(null!==(t=e.labeledLink)&&(e=t)),e=e.containingGroup;return n},Sc.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var t=this.layer;return!(null!==t&&t.isTemporary||this instanceof qc&&this.isLinkLabel)},Sc.prototype.C=function(t){if(void 0===t&&(t=16777215),this.isLayoutPositioned&&0!=(t&this.layoutConditions)){var e=this.layer;null!==e&&e.isTemporary||this instanceof qc&&this.isLinkLabel?e=!1:e=null===(e=this.diagram)||!e.undoManager.isUndoingRedoing}else e=!1;if(e)if(null!==(e=this.Ah)){var n=e.layout;null!==n?n.C():e.C(t)}else null!==(t=this.diagram)&&(null!==(t=t.layout)&&t.C())},d.Object.defineProperties(Sc.prototype,{key:{get:function(){var t=this.diagram;if(null!==t)return t.model.wa(this.data)}},adornments:{get:function(){return null===this.Qf?V:this.Qf.iteratorValues}},layer:{get:function(){return this.Ig}},diagram:{get:function(){var t=this.Ig;return null==t?null:t.diagram}},layerName:{get:function(){return this.Jg},set:function(t){var e=this.Jg;if(e!==t){var n=this.diagram;if((null===n||null!==n.Qj(t)&&!n.partManager.addsToTemporaryLayer)&&(this.Jg=t,null!==n&&n.Ya(),this.g("layerName",e,t),null!==(e=this.layer)&&e.name!==t&&(null!==(n=e.diagram)&&(null!==(t=n.Qj(t))&&t!==e)))){var i=e.pc(-1,this,!0);if(0<=i&&n.cb(gn,"parts",e,this,null,i,!0),i=t.oi(99999999,this,!0),e.visible!==t.visible&&this.Zb(t.visible),0<=i&&n.cb(pn,"parts",t,null,this,!0,i),null!==(i=this.layerChanged)){var r=n.aa;n.aa=!0,i(this,e,t),n.aa=r}}}}},layerChanged:{get:function(){return null!==this.P?this.P.zq:null},set:function(t){var e=this.layerChanged;e!==t&&(Pc(this),this.P.zq=t,this.g("layerChanged",e,t))}},zOrder:{get:function(){return this.Ao},set:function(t){var e=this.Ao;if(e!==t){this.Ao=t;var n=this.layer;null!==n&&Ar(n,-1,this),this.g("zOrder",e,t),null!==(t=this.diagram)&&t.N()}}},locationObject:{get:function(){if(null===this.nf){var t=this.locationObjectName;""!==t?(t=this.fb(t),this.nf=null!==t?t:this):this instanceof Yc&&this.type!==Ml.Link&&null!==this.placeholder?this.nf=this.placeholder:this.nf=this}return this.nf.visible?this.nf:this}},minLocation:{get:function(){return null!==this.P?this.P.Pq:it},set:function(t){var e=this.minLocation;e.D(t)||(t=t.J(),Pc(this),this.P.Pq=t,this.g("minLocation",e,t))}},maxLocation:{get:function(){return null!==this.P?this.P.Kq:rt},set:function(t){var e=this.maxLocation;e.D(t)||(t=t.J(),Pc(this),this.P.Kq=t,this.g("maxLocation",e,t))}},locationObjectName:{get:function(){return null!==this.P?this.P.Gq:""},set:function(t){var e=this.locationObjectName;e!==t&&(Pc(this),this.P.Gq=t,this.nf=null,this.v(),this.g("locationObjectName",e,t))}},locationSpot:{get:function(){return null!==this.P?this.P.Hq:te},set:function(t){var e=this.locationSpot;e.D(t)||(t=t.J(),Pc(this),this.P.Hq=t,this.v(),this.g("locationSpot",e,t))}},location:{get:function(){return this.ke},set:function(t){var e=t.x,n=t.y,i=this.ke;if(!(i.x===e||isNaN(i.x)&&isNaN(e))||!(i.y===n||isNaN(i.y)&&isNaN(n))){if(e=t=t.copy(),this.ph())e=!1;else{if(this.ke=e,this.G|=2097152,!1===is(this)&&(Cc(this),(n=this.pa).w())){var r=this.diagram;if(null===r||r.animationManager.isTicking||!r.undoManager.isUndoingRedoing){var o=n.copy();n.h(n.x+(e.x-i.x),n.y+(e.y-i.y)),Tc(this,r,n,o.x,o.y),this.g("position",o,n.copy())}}e=!0}e&&this.g("location",i,t.copy())}}},category:{get:function(){return this.Tf},set:function(t){var e=this.Tf;if(e!==t){null!==this.svg&&(this.svg.remove(),this.Uc=!0);var n=this.diagram,i=this.data,r=null;if(null!==n&&null!==i&&!(this instanceof Yc)){var o=n.model.undoManager;o.isEnabled&&!o.isUndoingRedoing&&(r=this.clone()).O.addAll(this.O)}this.Tf=t,this.g("category",e,t),null===n||null===i||this instanceof Yc?this instanceof Yc&&(null!==(r=this.adornedPart)&&(null!==(t=r.Qf)&&t.remove(e),r.bh(this.category,this))):(o=n.model).undoManager.isUndoingRedoing||(this.ph()?(n.partManager.setLinkCategoryForData(i,t),null!==(n=n.partManager.findLinkTemplateForCategory(t))&&(Xl(n),null!==(n=n.copy())&&Oc(this,n,e,t))):(null!==o&&o.jm(i,t),null!==(n=tf(n.partManager,i,t))&&(Xl(n),null===(n=n.copy())||n instanceof xh||(i=this.location.copy(),Oc(this,n,e,t),this.location.w()||(this.location=i)))),null!==r&&((e=this.clone()).O.addAll(this.O),this.g("self",r,e)))}}},self:{get:function(){return this},set:function(t){Oc(this,t,this.category,t.category)}},copyable:{get:function(){return 0!=(1&this.G)},set:function(t){var e=0!=(1&this.G);e!==t&&(this.G^=1,this.g("copyable",e,t))}},deletable:{get:function(){return 0!=(2&this.G)},set:function(t){var e=0!=(2&this.G);e!==t&&(this.G^=2,this.g("deletable",e,t))}},textEditable:{get:function(){return 0!=(4&this.G)},set:function(t){var e=0!=(4&this.G);e!==t&&(this.G^=4,this.g("textEditable",e,t),this.Wb())}},groupable:{get:function(){return 0!=(8&this.G)},set:function(t){var e=0!=(8&this.G);e!==t&&(this.G^=8,this.g("groupable",e,t))}},movable:{get:function(){return 0!=(16&this.G)},set:function(t){var e=0!=(16&this.G);e!==t&&(this.G^=16,this.g("movable",e,t))}},selectionAdorned:{get:function(){return 0!=(32&this.G)},set:function(t){var e=0!=(32&this.G);e!==t&&(this.G^=32,this.g("selectionAdorned",e,t),this.Wb())}},isInDocumentBounds:{get:function(){return 0!=(64&this.G)},set:function(t){var e=0!=(64&this.G);if(e!==t){this.G^=64;var n=this.diagram;null!==n&&n.Ya(),this.g("isInDocumentBounds",e,t)}}},isLayoutPositioned:{get:function(){return 0!=(128&this.G)},set:function(t){var e=0!=(128&this.G);e!==t&&(this.G^=128,this.g("isLayoutPositioned",e,t),this.C(t?4:8))}},selectable:{get:function(){return 0!=(256&this.G)},set:function(t){var e=0!=(256&this.G);e!==t&&(this.G^=256,this.g("selectable",e,t),this.Wb())}},reshapable:{get:function(){return 0!=(512&this.G)},set:function(t){var e=0!=(512&this.G);e!==t&&(this.G^=512,this.g("reshapable",e,t),this.Wb())}},resizable:{get:function(){return 0!=(1024&this.G)},set:function(t){var e=0!=(1024&this.G);e!==t&&(this.G^=1024,this.g("resizable",e,t),this.Wb())}},rotatable:{get:function(){return 0!=(2048&this.G)},set:function(t){var e=0!=(2048&this.G);e!==t&&(this.G^=2048,this.g("rotatable",e,t),this.Wb())}},isSelected:{get:function(){return 0!=(4096&this.G)},set:function(t){var e=0!=(4096&this.G);if(e!==t){var n=this.diagram;if(!t||this.canSelect()&&!(null!==n&&n.selection.count>=n.maxSelectionCount)){this.G^=4096;var i=!1;if(null!==n){i=n.skipsUndoManager,n.skipsUndoManager=!0;var r=n.selection;r.ka(),t?r.add(this):r.remove(this),r.freeze()}this.g("isSelected",e,t),this.Wb(),null!==(t=this.selectionChanged)&&t(this),null!==n&&(n.$b(),n.skipsUndoManager=i)}}}},isHighlighted:{get:function(){return 0!=(524288&this.G)},set:function(t){var e=0!=(524288&this.G);if(e!==t){this.G^=524288;var n=this.diagram;null!==n&&((n=n.highlighteds).ka(),t?n.add(this):n.remove(this),n.freeze()),this.g("isHighlighted",e,t),this.N(),null!==(t=this.highlightedChanged)&&t(this)}}},isShadowed:{get:function(){return 0!=(8192&this.G)},set:function(t){var e=0!=(8192&this.G);e!==t&&(this.G^=8192,this.Uc=!0,this.g("isShadowed",e,t),this.N())}},isAnimated:{get:function(){return 0!=(262144&this.G)},set:function(t){var e=0!=(262144&this.G);e!==t&&(this.G^=262144,this.g("isAnimated",e,t))}},highlightedChanged:{get:function(){return null!==this.P?this.P.oq:null},set:function(t){var e=this.highlightedChanged;e!==t&&(Pc(this),this.P.oq=t,this.g("highlightedChanged",e,t))}},selectionObjectName:{get:function(){return null!==this.P?this.P.vr:""},set:function(t){var e=this.selectionObjectName;e!==t&&(Pc(this),this.P.vr=t,this.Ug=null,this.g("selectionObjectName",e,t))}},selectionAdornmentTemplate:{get:function(){return null!==this.P?this.P.tr:null},set:function(t){var e=this.selectionAdornmentTemplate;e!==t&&(Pc(this),this.P.tr=t,this.g("selectionAdornmentTemplate",e,t))}},selectionObject:{get:function(){if(null===this.Ug){var t=this.selectionObjectName;null!==t&&""!==t?(t=this.fb(t),this.Ug=null!==t?t:this):this instanceof xh?(t=this.path,this.Ug=null!==t?t:this):this.Ug=this}return this.Ug}},selectionChanged:{get:function(){return null!==this.P?this.P.ur:null},set:function(t){var e=this.selectionChanged;e!==t&&(Pc(this),this.P.ur=t,this.g("selectionChanged",e,t))}},resizeAdornmentTemplate:{get:function(){return null!==this.P?this.P.fr:null},set:function(t){var e=this.resizeAdornmentTemplate;e!==t&&(Pc(this),this.P.fr=t,this.g("resizeAdornmentTemplate",e,t))}},resizeObjectName:{get:function(){return null!==this.P?this.P.hr:""},set:function(t){var e=this.resizeObjectName;e!==t&&(Pc(this),this.P.hr=t,this.g("resizeObjectName",e,t))}},resizeObject:{get:function(){var t=this.resizeObjectName;return""!==t&&null!==(t=this.fb(t))?t:this}},resizeCellSize:{get:function(){return null!==this.P?this.P.gr:Et},set:function(t){var e=this.resizeCellSize;e.D(t)||(t=t.J(),Pc(this),this.P.gr=t,this.g("resizeCellSize",e,t))}},rotateAdornmentTemplate:{get:function(){return null!==this.P?this.P.ir:null},set:function(t){var e=this.rotateAdornmentTemplate;e!==t&&(Pc(this),this.P.ir=t,this.g("rotateAdornmentTemplate",e,t))}},rotateObjectName:{get:function(){return null!==this.P?this.P.jr:""},set:function(t){var e=this.rotateObjectName;e!==t&&(Pc(this),this.P.jr=t,this.g("rotateObjectName",e,t))}},rotateObject:{get:function(){var t=this.rotateObjectName;return""!==t&&null!==(t=this.fb(t))?t:this}},rotationSpot:{get:function(){return null!==this.P?this.P.lr:ke},set:function(t){var e=this.rotationSpot;e.D(t)||(t=t.J(),Pc(this),this.P.lr=t,this.g("rotationSpot",e,t))}},text:{get:function(){return this.ec},set:function(t){var e=this.ec;e!==t&&(this.ec=t,this.g("text",e,t))}},containingGroup:{get:function(){return this.Ah},set:function(t){if(this.Zc()){var e=this.Ah;if(e!==t){null===t||this!==t&&!t.Td(this)||(this===t&&x("Cannot make a Group a member of itself: "+this.toString()),x("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+t.toString())),this.C(2);var n=this.diagram;if(null!==e?vh(e,this):this instanceof gh&&null!==n&&n.ai.remove(this),this.Ah=t,null!==t?mh(t,this):this instanceof gh&&null!==n&&n.ai.add(this),this.C(1),null!==n&&n.aa){var i=this.data,r=n.model;if(null!==i&&r.Xj()){var o=r.wa(null!==t?t.data:null);r.mp(i,o)}}if(null!==(i=this.containingGroupChanged)&&(r=!0,null!==n&&(r=n.aa,n.aa=!0),i(this,e,t),null!==n&&(n.aa=r)),this instanceof gh)for(Wc(n=new J,this,!0,0,!0),n=n.iterator;n.next();)if((i=n.value)instanceof qc)for(i=i.linksConnected;i.next();)Sh(i.value);if(this instanceof qc){for(n=this.linksConnected;n.next();)Sh(n.value);null!==(n=this.labeledLink)&&Sh(n)}this.g("containingGroup",e,t),null!==t&&(null!==(e=t.layer)&&Ar(e,-1,t))}}else x("cannot set the Part.containingGroup of a Link or Adornment")}},containingGroupChanged:{get:function(){return null!==this.P?this.P.Kp:null},set:function(t){var e=this.containingGroupChanged;e!==t&&(Pc(this),this.P.Kp=t,this.g("containingGroupChanged",e,t))}},isTopLevel:{get:function(){return!(null!==this.containingGroup||this instanceof qc&&null!==this.labeledLink)}},layoutConditions:{get:function(){return null!==this.P?this.P.Cq:127},set:function(t){var e=this.layoutConditions;e!==t&&(Pc(this),this.P.Cq=t,this.g("layoutConditions",e,t))}},dragComputation:{get:function(){return null!==this.P?this.P.Up:null},set:function(t){var e=this.dragComputation;e!==t&&(Pc(this),this.P.Up=t,this.g("dragComputation",e,t))}},shadowOffset:{get:function(){return null!==this.P?this.P.zr:ot},set:function(t){var e=this.shadowOffset;e.D(t)||(t=t.J(),Pc(this),this.P.zr=t,this.N(),this.g("shadowOffset",e,t))}},shadowColor:{get:function(){return null!==this.P?this.P.yr:"gray"},set:function(t){var e=this.shadowColor;e!==t&&(Pc(this),this.P.yr=t,this.N(),this.g("shadowColor",e,t))}},shadowBlur:{get:function(){return null!==this.P?this.P.Vg:4},set:function(t){var e=this.shadowBlur;e!==t&&(Pc(this),this.P.Vg=t,this.N(),this.g("shadowBlur",e,t))}}}),Sc.prototype.invalidateLayout=Sc.prototype.C,Sc.prototype.findCommonContainingGroup=Sc.prototype.px,Sc.prototype.isMemberOf=Sc.prototype.Td,Sc.prototype.findTopLevelPart=Sc.prototype.sz,Sc.prototype.findSubGraphLevel=Sc.prototype.oz,Sc.prototype.ensureBounds=Sc.prototype.Va,Sc.prototype.getDocumentBounds=Sc.prototype.mi,Sc.prototype.findObject=Sc.prototype.fb,Sc.prototype.moveTo=Sc.prototype.moveTo,Sc.prototype.invalidateAdornments=Sc.prototype.Wb,Sc.prototype.clearAdornments=Sc.prototype.Ej,Sc.prototype.removeAdornment=Sc.prototype.Jf,Sc.prototype.addAdornment=Sc.prototype.bh,Sc.prototype.findAdornment=Sc.prototype.Pj,Sc.prototype.updateTargetBindings=Sc.prototype.La;var Vc=!1;function Yc(t,e){void 0===t||t instanceof hl||"string"==typeof t?Sc.call(this,t):(Sc.call(this),t&&(e=t)),this.G&=-257,this.Jg="Adornment",this.ue=null,this.Aw=0,this.Uw=!1,this.j=this.$a=null,e&&Object.assign(this,e)}function Xc(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=Jt,this.er=fh,this.Kr=this.ij=this.Nq=this.Mq=null}function qc(t,e){void 0===t||t instanceof hl||"string"==typeof t?Sc.call(this,t):(Sc.call(this),t&&(e=t)),this.U=13,this.Ba=null,this.jb=new K,this.wc=this.af=this.Yk=null,this.ci=!1,e&&Object.assign(this,e)}function Kc(t){null===t.Ba?t.Ba=new Xc:t.Ba.nc&&(t.Ba=t.Ba.copy())}function Qc(t,e){null!==e&&(null===t.af&&(t.af=new J),t.af.add(e))}function Jc(t,e,n,i){if(null===e||null===t.af)return null;for(var r=t.af.iterator;r.next();){var o=r.value;if(o.Ds===t&&o.cv===e&&o.Ox===n&&o.Px===i||o.Ds===e&&o.cv===t&&o.Ox===i&&o.Px===n)return o}return null}function $c(t,e){for(t=t.linksConnected;t.next();){var n=t.value;n.fromPort!==e&&n.toPort!==e||(th(n.fromPort),th(n.toPort),n.bb())}}function th(t){if(null!==t){var e=t.Zn;null!==e&&e.Sl(),null===(e=(t=t.part).containingGroup)||t.isVisible()||th(e.port)}}function eh(t,e,n,i){if(null!==e&&!n.has(e)){n.add(e);var r=!0,o=t.diagram;null!==o&&(r=o.isTreePathToChildren),e.linksConnected.each((function(o){o.isTreeLink?(r?o.fromNode===e:o.toNode===e)&&eh(t,r?o.toNode:o.fromNode,n,i):i.add(o)}))}}function nh(t,e,n){th(n);var i=t.jb.contains(e);if(i||t.jb.add(e),!i||e.fromNode===e.toNode){var r=t.linkConnected;if(null!==r){var o=!0,a=t.diagram;null!==a&&(o=a.aa,a.aa=!0),r(t,e,n),null!==a&&(a.aa=o)}}!i&&e.isTreeLink&&(n=e.fromNode,e=e.toNode,null!==n&&null!==e&&n!==e&&(i=!0,null!==(t=t.diagram)&&(i=t.isTreePathToChildren),o=i?n:e,(r=i?e:n).ci||(r.ci=o),!o.isTreeLeaf||null!==t&&t.undoManager.isUndoingRedoing||(i?n===o&&(o.isTreeLeaf=!1):e===o&&(o.isTreeLeaf=!1))))}function ih(t,e,n){th(n);var i=t.jb.remove(e),r=null;if(i||e.toNode===e.fromNode){var o=t.linkDisconnected;if(r=t.diagram,null!==o){var a=!0;null!==r&&(a=r.aa,r.aa=!0),o(t,e,n),null!==r&&(r.aa=a)}}i&&e.isTreeLink&&(n=!0,null!==r&&(n=r.isTreePathToChildren),t=n?e.toNode:e.fromNode,e=n?e.fromNode:e.toNode,null!==t&&(t.ci=!1),null===e||e.isTreeLeaf||(0===e.jb.count?(e.ci=null,null!==r&&r.undoManager.isUndoingRedoing||(e.isTreeLeaf=!0)):rh(e)))}function rh(t){if(t.ci=!1,0!==t.jb.count){var e=!0,n=t.diagram;if(null===n||!n.undoManager.isUndoingRedoing){for(null!==n&&(e=n.isTreePathToChildren),n=t.jb.iterator;n.next();){var i=n.value;if(i.isTreeLink)if(e){if(i.fromNode===t)return void(t.isTreeLeaf=!1)}else if(i.toNode===t)return void(t.isTreeLeaf=!1)}t.isTreeLeaf=!0}}}function oh(t){null===t.wc?t.wc=new ft:t.wc.clear(),t.qm(t,(function(t,e){ah(t,e)})),0===t.wc.count&&t.wc.add("",t)}function ah(t,e){var n=e.portId;null!==n&&null!==t.wc&&t.wc.add(n,e)}function sh(t,e,n){var i=e.portId;if(null!==i&&(null!==t.wc&&t.wc.remove(i),null!==(e=t.diagram)&&n)){for(n=null,t=t.findLinksConnected(i);t.next();)i=t.value,null===n&&(n=T()),n.push(i);if(null!==n){for(t=0;t<n.length;t++)e.remove(n[t]);N(n)}}}function lh(t,e){return null===(e=e.pg())?0:1+lh(t,e)}function uh(t,e,n,i,r,o,a){if(1<i)for(var s=n?t.Mo():t.Sd();s.next();){var l=s.value;l.isTreeLink&&(null===(l=l.To(t))||l===t||e.contains(l)||(e.add(l),uh(l,e,n,i-1,r,o,a)))}else ch(t,e,n,r,o,a)}function ch(t,e,n,i,r,o){for(var a=r===t||t.isTreeExpanded,s=n?t.Mo():t.Sd(),l={};s.next();){var u=s.value;if(u.isTreeLink&&(null!==(u=u.To(t))&&u!==t)){var c=e.contains(u);if(c||e.add(u),a){var h=n?u.Oo():u.Po();l.uv=t,h.all(function(t){return function(e){return e===t.uv||!e.isTreeExpanded}}(l))&&i.Aj(u,r),u.oh(),u.Zb(!1)}u.isTreeExpanded&&(u.wasTreeExpanded=u.isTreeExpanded,c||ch(u,e,n,i,r,o))}l={uv:l.uv}}t.isTreeExpanded=!1}function hh(t,e,n,i,r,o,a){for(var s=o!==t&&t.isTreeExpanded,l=n?t.Mo():t.Sd(),u={};l.next();){var c=l.value;if(c.isTreeLink&&(s||c.fd||c.bb(),null!==(c=c.To(t))&&c!==t&&!e.contains(c))){if(e.add(c),!s){c.Zb(!0),c.oh();var h=n?c.Oo():c.Po();u.vv=t,h.all(function(t){return function(e){return e===t.vv||!e.isTreeExpanded}}(u))&&r.Cj(c,o)}(2<i||c.wasTreeExpanded)&&(c.wasTreeExpanded=!1,hh(c,e,n,i-1,r,o,a))}u={vv:u.vv}}t.isTreeExpanded=!0}Sc.className="Part",Sc.LayoutNone=0,Sc.LayoutAdded=1,Sc.LayoutRemoved=2,Sc.LayoutShown=4,Sc.LayoutHidden=8,Sc.LayoutNodeSized=16,Sc.LayoutGroupLayout=32,Sc.LayoutNodeReplaced=64,Sc.LayoutStandard=127,Sc.LayoutAll=16777215,h(Yc,Sc),Yc.prototype.toString=function(){var t=this.adornedPart;return"Adornment("+this.category+")"+(null!==t?t.toString():"")},Yc.prototype.updateRelationshipsFromData=function(){},Yc.prototype.Ul=function(t){var e=this.adornedObject,n=null==e?void 0:e.part;if(n instanceof xh&&e instanceof pu){e=n.path,n.Ul(t),t=e.geometry,e=(n=this.O.s).length;for(var i=0;i<e;i++){var r=n[i];r.isPanelMain&&r instanceof pu&&(r.ua=t)}}},Yc.prototype.si=function(){var t=this.ue;return null===t||(null===(t=t.part)||!is(t))},Yc.prototype.Zc=function(){return!1},Yc.prototype.gk=function(t,e,n,i,r,o,a){if(t===pn&&"elements"===e){if(r instanceof bh)null===this.$a&&(this.$a=r);else if(r instanceof Ml){var s=r.Nl((function(t){return t instanceof bh}));s instanceof bh&&null===this.$a&&(this.$a=s)}}else t===gn&&"elements"===e&&null!==this.$a&&(i===this.$a||i instanceof Ml&&this.$a.rg(i))&&(this.$a=null);Sc.prototype.gk.call(this,t,e,n,i,r,o,a)},Yc.prototype.updateAdornments=function(){},Yc.prototype.Lj=function(){},d.Object.defineProperties(Yc.prototype,{placeholder:{get:function(){return this.$a}},adornedObject:{get:function(){return this.ue},set:function(t){var e=this.adornedPart,n=null;null!==t&&(n=t.part),null===e||null!==t&&e===n||e.Jf(this.category),this.ue=t,null!==n&&n.bh(this.category,this)}},adornedPart:{get:function(){var t=this.ue;return null!==t?t.part:null}},containingGroup:{get:function(){return null}}}),Yc.className="Adornment",Xc.prototype.copy=function(){var t=new Xc;return t.Dq=this.Dq,t.Eq=this.Eq,t.gj=this.gj,t.Vr=this.Vr,t.yp=this.yp.J(),t.er=this.er,t.Mq=this.Mq,t.Nq=this.Nq,t.ij=this.ij,t.Kr=this.Kr,t},h(qc,Sc),qc.prototype.cloneProtected=function(t){Sc.prototype.cloneProtected.call(this,t),t.U=this.U,null!==this.Ba&&(t.Ba=this.Ba.nc?this.Ba:this.Ba.copy())},(e=qc.prototype).Af=function(t){Sc.prototype.Af.call(this,t),t.Bd(),t.af=this.af,t.wc=null},e.th=function(){Sc.prototype.th.call(this),null!==this.Ba&&(this.Ba.nc=!0)},e.Lz=function(t,e,n){null==e&&(e=""),null==n&&(n=""),null!==(t=Jc(this,t,e,n))&&t.Sl()},e.gk=function(t,e,n,i,r,o,a){(t===pn&&"elements"===e||t===gn&&"elements"===e)&&(this.wc=null),Sc.prototype.gk.call(this,t,e,n,i,r,o,a)},e.Bd=function(t){for(var e=this.linksConnected;e.next();){var n=e.value;void 0!==t&&t.contains(n)||(th(n.fromPort),th(n.toPort),n.bb())}},e.si=function(){return!0},qc.prototype.getAvoidableRect=function(t){return t.set(this.actualBounds),t.Co(this.avoidableMargin),t},qc.prototype.findVisibleNode=function(){for(var t=this;null!==t&&!t.isVisible();)t=t.containingGroup;return t},qc.prototype.isVisible=function(){if(!Sc.prototype.isVisible.call(this))return!1;var t=!0,e=ta,n=this.diagram;if(null!==n&&(t=n.isTreePathToChildren,e=n.treeCollapsePolicy),e===ta){if(null!==(t=this.pg())&&!t.isTreeExpanded)return!1}else if(e===ea){if(0<(t=t?this.Oo():this.Po()).count&&t.all((function(t){return!t.isTreeExpanded})))return!1}else if(e===na&&(0<(t=t?this.Oo():this.Po()).count&&t.any((function(t){return!t.isTreeExpanded}))))return!1;return null===(t=this.labeledLink)||t.isVisible()},qc.prototype.Zb=function(t){Sc.prototype.Zb.call(this,t);for(var e=this.linksConnected;e.next();){var n=e.value;if(t&&null!==this.containingGroup){var i=n.To(this);null===i||i.Td(this.containingGroup)||n.bb()}n.Zb(t)}},qc.prototype.qx=function(){var t=new J,e=new J;return eh(this,this,t,e),e.iterator},qc.prototype.findLinksConnected=function(t){if(void 0===t&&(t=null),null===t)return this.jb.iterator;var e=new X(this.jb),n=this;return e.predicate=function(e){return e.fromNode===n&&e.fromPortId===t||e.toNode===n&&e.toPortId===t},e},(e=qc.prototype).Mo=function(t){void 0===t&&(t=null);var e=new X(this.jb),n=this;return e.predicate=function(e){return e.fromNode===n&&(null===t||e.fromPortId===t)},e},e.Sd=function(t){void 0===t&&(t=null);var e=new X(this.jb),n=this;return e.predicate=function(e){return e.toNode===n&&(null===t||e.toPortId===t)},e},e.Mu=function(t){void 0===t&&(t=null);for(var e=null,n=null,i=this.jb.iterator;i.next();){var r=i.value;r.fromNode===this?null!==t&&r.fromPortId!==t||(r=r.toNode,null!==e?e.add(r):null!==n&&n!==r?((e=new J).add(n),e.add(r)):n=r):r.toNode!==this||null!==t&&r.toPortId!==t||(r=r.fromNode,null!==e?e.add(r):null!==n&&n!==r?((e=new J).add(n),e.add(r)):n=r)}return null!==e?e.iterator:null!==n?new Y(n):V},e.Po=function(t){void 0===t&&(t=null);for(var e=null,n=null,i=this.jb.iterator;i.next();){var r=i.value;r.fromNode!==this||null!==t&&r.fromPortId!==t||(r=r.toNode,null!==e?e.add(r):null!==n&&n!==r?((e=new J).add(n),e.add(r)):n=r)}return null!==e?e.iterator:null!==n?new Y(n):V},e.Oo=function(t){void 0===t&&(t=null);for(var e=null,n=null,i=this.jb.iterator;i.next();){var r=i.value;r.toNode!==this||null!==t&&r.toPortId!==t||(r=r.fromNode,null!==e?e.add(r):null!==n&&n!==r?((e=new J).add(n),e.add(r)):n=r)}return null!==e?e.iterator:null!==n?new Y(n):V},e.jz=function(t,e,n){void 0===e&&(e=null),void 0===n&&(n=null);var i=new X(this.jb),r=this;return i.predicate=function(i){return!(i.fromNode!==r||i.toNode!==t||null!==e&&i.fromPortId!==e||null!==n&&i.toPortId!==n)||!(i.fromNode!==t||i.toNode!==r||null!==n&&i.fromPortId!==n||null!==e&&i.toPortId!==e)},i},e.kz=function(t,e,n){void 0===e&&(e=null),void 0===n&&(n=null);var i=new X(this.jb),r=this;return i.predicate=function(i){return!(i.fromNode!==r||i.toNode!==t||null!==e&&i.fromPortId!==e||null!==n&&i.toPortId!==n)},i},qc.prototype.updateRelationshipsFromData=function(){var t=this.diagram;null!==t&&t.partManager.updateRelationshipsFromData(this)},(e=qc.prototype).Vo=function(t){Sc.prototype.Vo.call(this,t),t||(rh(this),null!==(t=this.Yk)&&Ph(t,this))},e.Wo=function(t){Sc.prototype.Wo.call(this,t),t||null!==(t=this.Yk)&&null!==t.wd&&(t.wd.remove(this),t.v())},e.Lj=function(){if(0<this.jb.count){var t=this.diagram;if(null!==t)for(var e=null===t.commandHandler||t.commandHandler.deletesConnectedLinks,n=this.jb.copy().iterator;n.next();){var i=n.value;e?t.remove(i):(i.fromNode===this&&(i.fromNode=null),i.toNode===this&&(i.toNode=null))}}this.labeledLink=null,Sc.prototype.Lj.call(this)},e.ns=function(t){if(null===this.wc){if(""===t&&!1===this.Te)return this;oh(this)}var e=this.wc.I(t);return null!==e||""!==t&&null!==(e=this.wc.I(""))?e:this},e.Nz=function(t){if(null===t||t===this)return!1;var e=!0,n=this.diagram;if(null!==n&&(e=n.isTreePathToChildren),n=this,e)for(;n!==t;){e=null;for(var i=n.jb.iterator;i.next();){var r=i.value;if(r.isTreeLink&&((e=r.fromNode)!==n&&e!==this))break}if(e===this||null===e||e===n)return!1;n=e}else for(;n!==t;){for(e=null,i=n.jb.iterator;i.next()&&(!(r=i.value).isTreeLink||((e=r.toNode)===n||e===this)););if(e===this||null===e||e===n)return!1;n=e}return!0},e.xz=function(){var t=!0,e=this.diagram;if(null!==e&&(t=e.isTreePathToChildren),e=this,t)for(;;){t=null;for(var n=e.jb.iterator;n.next();){var i=n.value;if(i.isTreeLink&&((t=i.fromNode)!==e&&t!==this))break}if(t===this)return this;if(null===t||t===e)return e;e=t}else for(;;){for(t=null,n=e.jb.iterator;n.next()&&(!(i=n.value).isTreeLink||((t=i.toNode)===e||t===this)););if(t===this)return this;if(null===t||t===e)return e;e=t}},e.gz=function(t){if(null===t)return null;if(this===t)return this;for(var e=this;null!==e;)Gc(e,!0),e=e.pg();var n=null;for(e=t;null!==e;){if(0!=(1048576&e.G)){n=e;break}e=e.pg()}for(e=this;null!==e;)Gc(e,!1),e=e.pg();return n},e.kh=function(){var t=!0,e=this.diagram;if(null!==e&&(t=e.isTreePathToChildren),e=this.jb.iterator,t){for(;e.next();)if((t=e.value).isTreeLink&&t.fromNode!==this)return t}else for(;e.next();)if((t=e.value).isTreeLink&&t.toNode!==this)return t;return null},e.pg=function(){var t=this.ci;if(null===t)return null;if(t instanceof qc)return t;t=null===(t=this.diagram)||t.isTreePathToChildren;for(var e=this.jb.iterator;e.next();){var n=e.value;if(n.isTreeLink&&(n=t?n.fromNode:n.toNode)!==this)return this.ci=n}return this.ci=null},e.vz=function(){var t=new J;return function t(e,n){n.add(e);var i=e.kh();null!==i&&(n.add(i),null!==(e=e.pg())&&t(e,n))}(this,t),t},e.uz=function(){return lh(this,this)},e.Qo=function(){var t=!0,e=this.diagram;null!==e&&(t=e.isTreePathToChildren),e=new X(this.jb);var n=this;return e.predicate=t?function(t){return!(!t.isTreeLink||t.fromNode!==n)}:function(t){return!(!t.isTreeLink||t.toNode!==n)},e},e.Ou=function(){var t=!0,e=this.diagram;null!==e&&(t=e.isTreePathToChildren);var n=e=null,i=this.jb.iterator;if(t)for(;i.next();)(t=i.value).isTreeLink&&t.fromNode===this&&(t=t.toNode,null!==e?e.add(t):null!==n&&n!==t?((e=new K).add(n),e.add(t)):n=t);else for(;i.next();)(t=i.value).isTreeLink&&t.toNode===this&&(t=t.fromNode,null!==e?e.add(t):null!==n&&n!==t?((e=new K).add(n),e.add(t)):n=t);return null!==e?e.iterator:null!==n?new Y(n):V},e.wz=function(t){void 0===t&&(t=1/0);var e=new J;return Wc(e,this,!1,t,!0),e},qc.prototype.collapseTree=function(t){void 0===t&&(t=1),1>t&&(t=1);var e=this.diagram;if(null!==e&&!e.Ue){e.Ue=!0;var n=new J;n.add(this),uh(this,n,e.isTreePathToChildren,t,e,this,e.treeCollapsePolicy===ta),e.Ue=!1}},qc.prototype.expandTree=function(t){void 0===t&&(t=2),2>t&&(t=2);var e=this.diagram;if(null!==e&&!e.Ue){e.Ue=!0;var n=new J;n.add(this),hh(this,n,e.isTreePathToChildren,t,e,this,e.treeCollapsePolicy===ta),e.Ue=!1}},d.Object.defineProperties(qc.prototype,{portSpreading:{get:function(){return null!==this.Ba?this.Ba.er:fh},set:function(t){var e=this.portSpreading;e!==t&&(Kc(this),this.Ba.er=t,this.g("portSpreading",e,t),null!==(t=this.diagram)&&t.undoManager.isUndoingRedoing||this.Bd())}},avoidable:{get:function(){return 0!=(8&this.U)},set:function(t){var e=0!=(8&this.U);if(e!==t){this.U^=8;var n=this.diagram;null!==n&&Bo(n,this),this.g("avoidable",e,t)}}},avoidableMargin:{get:function(){return null!==this.Ba?this.Ba.yp:Jt},set:function(t){"number"==typeof t&&(t=new Xt(t));var e=this.avoidableMargin;if(!e.D(t)){t=t.J(),Kc(this),this.Ba.yp=t;var n=this.diagram;null!==n&&Bo(n,this),this.g("avoidableMargin",e,t)}}},linksConnected:{get:function(){return this.jb.iterator}},linkConnected:{get:function(){return null!==this.Ba?this.Ba.Dq:null},set:function(t){var e=this.linkConnected;e!==t&&(Kc(this),this.Ba.Dq=t,this.g("linkConnected",e,t))}},linkDisconnected:{get:function(){return null!==this.Ba?this.Ba.Eq:null},set:function(t){var e=this.linkDisconnected;e!==t&&(Kc(this),this.Ba.Eq=t,this.g("linkDisconnected",e,t))}},linkValidation:{get:function(){return null!==this.Ba?this.Ba.gj:null},set:function(t){var e=this.linkValidation;e!==t&&(Kc(this),this.Ba.gj=t,this.g("linkValidation",e,t))}},isLinkLabel:{get:function(){return null!==this.Yk}},labeledLink:{get:function(){return this.Yk},set:function(t){var e=this.Yk;if(e!==t){var n=this.diagram,i=this.data;if(null!==e){if(null!==e.wd&&(e.wd.remove(this),e.v()),null!==n&&null!==i&&!n.undoManager.isUndoingRedoing){var r=e.data,o=n.model;if(null!==r&&o.ri()){var a=o.wa(i);void 0!==a&&o.Qx(r,a)}}this.containingGroup=null}this.Yk=t,null!==t&&(Ph(t,this),null===n||null===i||n.undoManager.isUndoingRedoing||(r=t.data,n=n.model,null!==r&&n.ri()&&(void 0!==(i=n.wa(i))&&n.Bu(r,i))),this.containingGroup=t.containingGroup),Va(this),this.g("labeledLink",e,t)}}},port:{get:function(){return this.ns("")}},ports:{get:function(){return null===this.wc&&oh(this),this.wc.iteratorValues}},isTreeExpanded:{get:function(){return 0!=(1&this.U)},set:function(t){var e=0!=(1&this.U);if(e!==t){this.U^=1;var n=this.diagram;if(this.g("isTreeExpanded",e,t),null!==(e=this.treeExpandedChanged)){var i=!0;null!==n&&(i=n.aa,n.aa=!0),e(this),null!==n&&(n.aa=i)}null!==n&&n.undoManager.isUndoingRedoing?this.Zb(t):t?this.expandTree():this.collapseTree()}}},wasTreeExpanded:{get:function(){return 0!=(2&this.U)},set:function(t){var e=0!=(2&this.U);e!==t&&(this.U^=2,this.g("wasTreeExpanded",e,t))}},treeExpandedChanged:{get:function(){return null!==this.Ba?this.Ba.Vr:null},set:function(t){var e=this.treeExpandedChanged;e!==t&&(Kc(this),this.Ba.Vr=t,this.g("treeExpandedChanged",e,t))}},isTreeLeaf:{get:function(){return 0!=(4&this.U)},set:function(t){var e=0!=(4&this.U);e!==t&&(this.U^=4,this.g("isTreeLeaf",e,t))}}}),qc.prototype.expandTree=qc.prototype.expandTree,qc.prototype.collapseTree=qc.prototype.collapseTree,qc.prototype.findTreeParts=qc.prototype.wz,qc.prototype.findTreeChildrenNodes=qc.prototype.Ou,qc.prototype.findTreeChildrenLinks=qc.prototype.Qo,qc.prototype.findTreeLevel=qc.prototype.uz,qc.prototype.findTreeParentChain=qc.prototype.vz,qc.prototype.findTreeParentNode=qc.prototype.pg,qc.prototype.findTreeParentLink=qc.prototype.kh,qc.prototype.findCommonTreeParent=qc.prototype.gz,qc.prototype.findTreeRoot=qc.prototype.xz,qc.prototype.isInTreeOf=qc.prototype.Nz,qc.prototype.findPort=qc.prototype.ns,qc.prototype.findLinksTo=qc.prototype.kz,qc.prototype.findLinksBetween=qc.prototype.jz,qc.prototype.findNodesInto=qc.prototype.Oo,qc.prototype.findNodesOutOf=qc.prototype.Po,qc.prototype.findNodesConnected=qc.prototype.Mu,qc.prototype.findLinksInto=qc.prototype.Sd,qc.prototype.findLinksOutOf=qc.prototype.Mo,qc.prototype.findExternalTreeLinksConnected=qc.prototype.qx,qc.prototype.invalidateConnectedLinks=qc.prototype.Bd,qc.prototype.invalidateLinkBundle=qc.prototype.Lz;var dh=new G(qc,"SpreadingNone",10),fh=new G(qc,"SpreadingEvenly",11),ph=new G(qc,"SpreadingPacked",12);function gh(t,e){void 0===t||t instanceof hl||"string"==typeof t?qc.call(this,t):(qc.call(this),t&&(e=t)),this.U|=4608,this.Gn=new J,this.$a=null,this.Sc=new Nd,this.Sc.group=this,this.gl=new J,this.tb=this.$p=null,e&&Object.assign(this,e)}function mh(t,e){if(t.Gn.add(e)){e instanceof gh&&t.gl.add(e);var n=t.memberAdded;if(null!==n){var i=!0,r=t.diagram;null!==r&&(i=r.aa,r.aa=!0),n(t,e),null!==r&&(r.aa=i)}t.isVisible()&&t.isSubGraphExpanded||e.Zb(!1)}e instanceof xh&&!t.computesBoundsIncludingLinks||(null===(e=t.$a)&&(e=t),e.v())}function vh(t,e){if(t.Gn.remove(e)){e instanceof gh&&t.gl.remove(e);var n=t.memberRemoved;if(null!==n){var i=!0,r=t.diagram;null!==r&&(i=r.aa,r.aa=!0),n(t,e),null!==r&&(r.aa=i)}t.isVisible()&&t.isSubGraphExpanded||e.Zb(!0)}e instanceof xh&&!t.computesBoundsIncludingLinks||(null===(e=t.$a)&&(e=t),e.v())}function yh(t,e,n,i){for(var r=t.memberParts;r.next();){var o=r.value;if(o.Zb(!1),o instanceof gh&&o.isSubGraphExpanded&&(o.wasSubGraphExpanded=o.isSubGraphExpanded,yh(o,e,n,i)),o instanceof qc)o.Bd(e),n.Aj(o,i);else if(o instanceof xh)for(o=o.labelNodes;o.next();)o.value.Bd(e)}t.isSubGraphExpanded=!1}function wh(t,e,n,i){for(var r=t.memberParts;r.next();){var o=r.value;if(o.Zb(!0),o instanceof gh&&o.wasSubGraphExpanded&&(o.wasSubGraphExpanded=!1,wh(o,e,n,i)),o instanceof qc)o.Bd(e),n.Cj(o,i);else if(o instanceof xh)for(o=o.labelNodes;o.next();)o.value.Bd(e)}t.isSubGraphExpanded=!0}function bh(t){Ia.call(this),this.yb=Qt,this.ko=new Bt(NaN,NaN,NaN,NaN),t&&Object.assign(this,t)}function xh(t){Sc.call(this,Ml.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=Xh,this.Om=0,this.Qm=Xh,this.Rm=NaN,this.qj=Zh,this.po=.5,this.wd=null,this.Nb=(new K).freeze(),this.Tg=this.Mg=null,this.ml=new Bt,this.ua=new Ze,this.u=this.o=this.Sf=this.Wf=null,this.su=new pt,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],t&&Object.assign(this,t)}function Sh(t){var e=t.fromNode,n=t.toNode,i=null;if(i=null!==e?null!==n?e.px(n):e.containingGroup:null!==n?n.containingGroup:null,e=i,(n=t.Ah)!==e){null!==n&&vh(n,t),t.Ah=e,null!==e&&mh(e,t);var r=t.containingGroupChanged;if(null!==r){var o=!0,a=t.diagram;null!==a&&(o=a.aa,a.aa=!0),r(t,n,e),null!==a&&(a.aa=o)}!t.fd||t.Lw!==n&&t.Mw!==n||t.bb()}if(t.isLabeledLink)for(t=t.labelNodes;t.next();)t.value.containingGroup=i}function Ph(t,e){null===t.wd&&(t.wd=new J),t.wd.add(e),t.v()}function kh(t,e,n){if(0!==e||0!==n)if(0===t.pointsCount)t.defaultFromPoint&&t.defaultFromPoint.offset(e,n),t.defaultToPoint&&t.defaultToPoint.offset(e,n);else{for(var i=t.fd,r=new K,o=t.Nb.iterator;o.next();){var a=o.value;r.add(new pt(a.x+e,a.y+n).freeze())}r.freeze(),o=t.Nb,t.Nb=r,a=t.diagram,isNaN(e)||isNaN(n)||null!==a&&a.animationManager.zb?t.v():(t.ke.h(t.ke.x+e,t.ke.y+n),t.pa.h(t.pa.x+e,t.pa.y+n),Va(t)),i?Ch(t):(t.defaultFromPoint&&(t.defaultFromPoint=t.i(0)),t.defaultToPoint&&(t.defaultToPoint=t.i(t.pointsCount-1))),null!==a&&a.animationManager.zb&&$i(a.animationManager,t,r),t.g("points",o,r)}}function Ch(t){0===t.Nb.count?t.fd=!1:(t.fd=!0,t.cq=null,t.vt=NaN,t.defaultFromPoint=t.i(0),t.defaultToPoint=t.i(t.pointsCount-1),Fh(t,!1))}function Ah(t,e){return Math.abs(e.x-t.x)>Math.abs(e.y-t.y)?(e.x>=t.x?e.x=t.x+9e9:e.x=t.x-9e9,e.y=t.y):(e.y>=t.y?e.y=t.y+9e9:e.y=t.y-9e9,e.x=t.x),e}function Mh(t,e){var n=e.Zn;return null===n&&((n=new Md).port=e,n.node=e.part,e.Zn=n),Ld(n,t)}function Eh(t){return t===$t||.5===t.x&&.5===t.y}function Lh(t){return.5===t.x&&.5===t.y?t:re}function Th(t){if(null===t.diagram||!t.isAvoiding||!To(t.diagram))return!1;var e=t.points.s,n=e.length;if(4>n)return!1;t=No(t.diagram,!0,t.containingGroup,null);for(var i=1;i<n-2;i++){var r=e[i],o=e[i+1];if(!t.Yj(Math.min(r.x,o.x),Math.min(r.y,o.y),Math.abs(r.x-o.x),Math.abs(r.y-o.y)))return!0}return!1}function Nh(t,e,n,i,r,o,a){var s=e.Ho,l=e.Go,u=gd(e,n,i),c=n,h=i;for(0===r?c+=s:90===r?h+=l:180===r?c-=s:h-=l,r!==a&&u>Pd&&gd(e,c,h)!==u-1&&(gd(e,n-s,i)===u-1?(r=180,c=n-s,h=i):gd(e,n+s,i)===u-1?(r=0,c=n+s,h=i):gd(e,n,i-l)===u-1?(r=270,c=n,h=i-l):gd(e,n,i+l)===u-1&&(r=90,c=n,h=i+l));u>Pd&&gd(e,c,h)===u-1;)n=c,i=h,0===r?c+=s:90===r?h+=l:180===r?c-=s:h-=l,--u;o?u>Pd&&(180===r||0===r?n=Math.floor(n/s)*s+s/2:90!==r&&270!==r||(i=Math.floor(i/l)*l+l/2)):(n=Math.floor(n/s)*s+s/2,i=Math.floor(i/l)*l+l/2),u>Pd&&(o=r,a=n,c=i,0===r?(o=90,c+=l):90===r?(o=180,a-=s):180===r?(o=270,c-=l):270===r&&(o=0,a+=s),gd(e,a,c)===u-1?Nh(t,e,a,c,o,!1,o):(a=n,c=i,0===r?(o=270,c-=l):90===r?(o=0,a+=s):180===r?(o=90,c+=l):270===r&&(o=180,a-=s),gd(e,a,c)===u-1&&Nh(t,e,a,c,o,!1,o))),t.yf(n,i)}function jh(t,e,n,i){return t=n-t,isNaN(t)||1/0===t||-1/0===t?NaN:(0>t&&(t=-t),e=i-e,isNaN(e)||1/0===e||-1/0===e?NaN:(0>e&&(e=-e),_e.$(t,0)?e:_e.$(e,0)?t:Math.sqrt(t*t+e*e)))}function Ih(t,e,n,i){var r=t.pointsCount;if(2>r)return e;if(n){var o=t.i(1);if(n=o.x-i.x,o=o.y-i.y,0===(i=jh(e.x,e.y,n,o)))return e;r=2===r?.5*i:i,(t=t.computeShortLength(!0))>r&&(t=r),r=t*(o-e.y)/i,e.x+=t*(n-e.x)/i,e.y+=r}else{if(n=(o=t.i(r-2)).x-i.x,o=o.y-i.y,0===(i=jh(e.x,e.y,n,o)))return e;r=2===r?.5*i:i,(t=t.computeShortLength(!1))>r&&(t=r),r=t*(e.y-o)/i,e.x-=t*(e.x-n)/i,e.y-=r}return e}function Bh(t,e,n,i){for(var r=t.pointsCount,o=e;_e.$(e.x,o.x)&&_e.$(e.y,o.y);){if(n>=r)return r-1;o=t.i(n++)}if(!_e.$(e.x,o.x)&&!_e.$(e.y,o.y))return n-1;for(var a=o;_e.$(e.x,o.x)&&_e.$(o.x,a.x)&&(!i||(e.y>=o.y?o.y>=a.y:o.y<=a.y))||_e.$(e.y,o.y)&&_e.$(o.y,a.y)&&(!i||(e.x>=o.x?o.x>=a.x:o.x<=a.x));){if(n>=r)return r-1;a=t.i(n++)}return n-2}function Oh(t,e,n,i,r,o,a){if(!a&&Rh(t)){var s=(a=t.computeJumpLength())/2,l=[],u=0;if(t.isVisible()&&(u=function(t,e,n,i){var r=t.diagram;if(null===r||e.D(n))return 0;for(r=r.layers;r.next();){var o=r.value;if(null!==o&&o.visible)for(var a=(o=o.Pa.s).length,s=0;s<a;s++){var l=o[s];if(l instanceof xh){if(l===t)return 0<i.length&&i.sort((function(t,e){return t-e})),i.length;if(l.isVisible()&&Rh(l)){var u=l.routeBounds;u.w()&&t.routeBounds.Yc(u)&&!t.usesSamePort(l)&&(null!==(u=l.path)&&u.Ed()&&Dh(e,n,i,l))}}}}return 0<i.length&&i.sort((function(t,e){return t-e})),i.length}(t,r,o,l)),0<u)if(_e.B(r.y,o.y))if(r.x<o.x)for(var c=0;c<u;){var h=Math.max(r.x,Math.min(l[c++]-s,o.x-a));e.lineTo(h+n,o.y+i);for(var d=h+n,f=Math.min(h+a,o.x);c<u&&(h=l[c])<f+a;)c++,f=Math.min(h+s,o.x);h=o.y-a+i,f+=n;var p=o.y+i;t.curve===Kh?fc(e,f,p,!1):gc(e,d,h,f,h,f,p)}else for(--u;0<=u;){for(c=Math.min(r.x,Math.max(l[u--]+s,o.x+a)),e.lineTo(c+n,o.y+i),d=c+n,h=Math.max(c-a,o.x);0<=u&&(c=l[u])>h-a;)u--,h=Math.max(c-s,o.x);c=o.y-a+i,h+=n,f=o.y+i,t.curve===Kh?fc(e,h,f,!1):gc(e,d,c,h,c,h,f)}else if(_e.B(r.x,o.x))if(r.y<o.y)for(c=0;c<u;){for(h=Math.max(r.y,Math.min(l[c++]-s,o.y-a)),e.lineTo(o.x+n,h+i),d=h+i,h=Math.min(h+a,o.y);c<u&&(f=l[c])<h+a;)c++,h=Math.min(f+s,o.y);f=o.x-a+n,p=o.x+n,h+=i,t.curve===Kh?fc(e,p,h,!1):gc(e,f,d,f,h,p,h)}else for(--u;0<=u;){for(c=Math.min(r.y,Math.max(l[u--]+s,o.y+a)),e.lineTo(o.x+n,c+i),d=c+i,c=Math.max(c-a,o.y);0<=u&&(h=l[u])>c-a;)u--,c=Math.max(h-s,o.y);h=o.x-a+n,f=o.x+n,c+=i,t.curve===Kh?fc(e,f,c,!1):gc(e,h,d,h,c,f,c)}}e.lineTo(o.x+n,o.y+i)}function Dh(t,e,n,i){for(var r=_e.B(t.y,e.y),o=i.pointsCount,a=i.i(0),s=pt.alloc(),l=1;l<o;l++){var u=i.i(l);if(l<o-1){var c=i.i(l+1);if(a.y===u.y&&u.y===c.y){if(u.x>a.x&&c.x>=u.x||u.x<a.x&&c.x<=u.x)continue}else if(a.x===u.x&&u.x===c.x&&(u.y>a.y&&c.y>=u.y||u.y<a.y&&c.y<=u.y))continue}t:{c=t.x;var h=t.y,d=e.x,f=e.y,p=a.x;a=a.y;var g=u.x,m=u.y;if(_e.B(c,d)){if(!_e.B(h,f)&&_e.B(a,m)&&Math.min(h,f)<a&&Math.max(h,f)>a&&Math.min(p,g)<c&&Math.max(p,g)>c&&!_e.B(p,g)){s.x=c,s.y=a,c=!0;break t}}else if(_e.B(h,f)&&_e.B(p,g)&&Math.min(c,d)<p&&Math.max(c,d)>p&&Math.min(a,m)<h&&Math.max(a,m)>h&&!_e.B(a,m)){s.x=p,s.y=h,c=!0;break t}s.x=0,s.y=0,c=!1}c&&(r?n.push(s.x):n.push(s.y)),a=u}pt.free(s)}function Rh(t){return(t=t.curve)===Qh||t===Kh}function Fh(t,e){(e||Rh(t))&&(null===(e=t.diagram)||e.animationManager.isTicking||e.Eh.contains(t)||0===t.ml.width&&0===t.ml.height||e.Eh.add(t,t.ml.copy()))}function zh(t,e,n){if(null!==e&&e.lk&&e.fd&&Rh(e)){var i=e.routeBounds;i.w()&&(t.routeBounds.Yc(i)||n.Yc(i))&&(t.usesSamePort(e)||e.qc())}}function Gh(t){var e=t.ef;if(null!==e){var n=t.uf;if(null!==n&&isNaN(t.curviness)){for(var i=t.ff,r=t.vf,o=t=null,a=e.jb.s,s=a.length,l=0;l<s;l++){var u=a[l];(u.ef===e&&u.ff===i&&u.uf===n&&u.vf===r||u.ef===n&&u.ff===r&&u.uf===e&&u.vf===i)&&(null===o?o=u:(null===t&&(t=[]).push(o),t.push(u)))}if(null!==t){for(null===(o=Jc(e,n,i,r))&&(Qc(e,o=new dd(e,i,n,r)),Qc(n,o)),o.links=t,e=0;e<t.length;e++)t[e].Sf=o;o.Sl()}}}}function Uh(t){var e=t.Sf;null!==e&&isNaN(t.curviness)&&(t.Sf=null,0<=(t=e.links.indexOf(t))&&(L(e.links,t),e.Sl()))}qc.className="Node",qc.SpreadingNone=dh,qc.SpreadingEvenly=fh,qc.SpreadingPacked=ph,h(gh,qc),gh.prototype.cloneProtected=function(t){qc.prototype.cloneProtected.call(this,t),this.U=-32769&this.U;var e=t.Nl((function(t){return t instanceof bh}));t.$a=e instanceof bh?e:null,null!==this.Sc?(t.Sc=this.Sc.copy(),t.Sc.group=t):(null!==t.Sc&&(t.Sc.group=null),t.Sc=null),null!==this.tb&&(t.tb=this.tb.copy())},(e=gh.prototype).Af=function(t){qc.prototype.Af.call(this,t);var e=t.Rj();for(t=t.memberParts;t.next();){var n=t.value;if(n.v(),n.C(8),n.Ej(),n instanceof qc)n.Bd(e);else if(n instanceof xh)for(n=n.labelNodes;n.next();)n.value.Bd(e)}},e.gk=function(t,e,n,i,r,o,a){if(t===pn&&"elements"===e){if(r instanceof bh)null===this.$a?this.$a=r:this.$a!==r&&x("Cannot insert a second Placeholder into the visual tree of a Group.");else if(r instanceof Ml){var s=r.Nl((function(t){return t instanceof bh}));s instanceof bh&&(null===this.$a?this.$a=s:this.$a!==s&&x("Cannot insert a second Placeholder into the visual tree of a Group."))}}else t===gn&&"elements"===e&&null!==this.$a&&(i===this.$a||i instanceof Ml&&this.$a.rg(i))&&(this.$a=null);qc.prototype.gk.call(this,t,e,n,i,r,o,a)},e.Xl=function(t,e){qc.prototype.Xl.call(this,t,e),this.isClipping&&this.type!==Ml.Spot&&this.isSubGraphExpanded&&((t=this.resizeObject)instanceof Ml&&(t=t.Pb()),null===this.tb&&(this.tb=new Bt),t.mi(this.tb),t instanceof pu&&this.tb.Bc(-t.strokeWidth,-t.strokeWidth))},e.eh=function(t,e,n,i){this.nf=this.$a,qc.prototype.eh.call(this,t,e,n,i)},e.Va=function(){var t=this;t.isSubGraphExpanded&&this.memberParts.each((function(e){!t.computesBoundsIncludingLinks&&e instanceof xh||e.Va()})),qc.prototype.Va.call(this)},e.si=function(){if(!qc.prototype.si.call(this))return!1;for(var t=this.memberParts;t.next();){var e=t.value;if(e instanceof qc){if(e.isVisible()&&is(e))return!1}else if(e instanceof xh&&e.isVisible()&&is(e)&&e.fromNode!==this&&e.toNode!==this)return!1}return!0},e.Lj=function(){if(0<this.Gn.count){var t=this.diagram;if(null!==t)for(var e=this.Gn.copy().iterator;e.next();)t.remove(e.value)}qc.prototype.Lj.call(this)},gh.prototype.canAddMembers=function(t){var e=this.diagram;if(null===e)return!1;for(e=e.commandHandler,t=ja(t).iterator;t.next();)if(!e.isValidMember(this,t.value))return!1;return!0},gh.prototype.addMembers=function(t,e){var n=this.diagram;if(null===n)return!1;n=n.commandHandler;var i=!0;for(t=ja(t).iterator;t.next();){var r=t.value;!e||n.isValidMember(this,r)?r.containingGroup=this:i=!1}return i},gh.prototype.canUngroup=function(){if(!this.ungroupable)return!1;var t=this.layer;return!(null===t||!t.allowUngroup)&&!(null!==(t=t.diagram)&&!t.allowUngroup)},(e=gh.prototype).Bd=function(t){var e=0!=(65536&this.U);if(qc.prototype.Bd.call(this,t),!e)for(0!=(65536&this.U)!=!0&&(this.U=65536^this.U),e=this.Lu();e.next();){var n=e.value;if(void 0===t||!t.contains(n)){var i=n.fromNode;null!==i&&i!==this&&i.Td(this)&&!i.isVisible()?(th(n.fromPort),th(n.toPort),n.bb()):null!==(i=n.toNode)&&i!==this&&i.Td(this)&&!i.isVisible()&&(th(n.fromPort),th(n.toPort),n.bb())}}},e.Lu=function(){var t=null!==this.diagram&&this.diagram.Pw;if(t&&null!==this.$p)return this.$p.iterator;var e=this.Rj();e.add(this);for(var n=new J,i=e.iterator;i.next();){var r=i.value;if(r instanceof qc)for(r=r.linksConnected;r.next();){var o=r.value;e.contains(o)||n.add(o)}}return t&&(this.$p=n),n.iterator},e.iz=function(){var t=this.Rj();t.add(this);for(var e=new J,n=t.iterator;n.next();){var i=n.value;if(i instanceof qc)for(i=i.linksConnected;i.next();){var r=i.value,o=r.fromNode;null===o||t.contains(o)&&o!==this||e.add(o),null===(r=r.toNode)||t.contains(r)&&r!==this||e.add(r)}}return e.iterator},e.hz=function(){var t=new J;return function t(e,n){null!==e&&(n.add(e),t(e.containingGroup,n))}(this,t),t},e.Rj=function(){var t=new J;return Wc(t,this,!0,0,!0),t.remove(this),t},e.Zb=function(t){qc.prototype.Zb.call(this,t);for(var e=this.memberParts;e.next();)e.value.Zb(t)},gh.prototype.collapseSubGraph=function(){var t=this.diagram;null===t||t.Ue||(t.Ue=!0,yh(this,this.Rj(),t,this),t.Ue=!1)},gh.prototype.expandSubGraph=function(){var t=this.diagram;null===t||t.Ue||(t.Ue=!0,wh(this,this.Rj(),t,this),t.Ue=!1)},gh.prototype.move=function(t,e){void 0===e&&(e=!1);var n=e?this.location:this.position,i=n.x;n=n.y;var r=t.x,o=t.y;if(!(i===r||isNaN(i)&&isNaN(r))||!(n===o||isNaN(n)&&isNaN(o))){for(i=r-(isNaN(i)?0:i),n=o-(isNaN(n)?0:n),o=pt.alloc(),qc.prototype.move.call(this,t,e),t=new J,e=this.Rj().iterator;e.next();)(r=e.value)instanceof xh&&(r.suspendsRouting&&t.add(r),r.fd||r.fromNode!==this&&r.toNode!==this)&&(r.suspendsRouting=!0);for(e.reset();e.next();)if(!((r=e.value).ph()||r instanceof qc&&r.isLinkLabel)){var a=r.position,s=r.location;a.w()?(o.x=a.x+i,o.y=a.y+n,r.position=o):s.w()&&(o.x=s.x+i,o.y=s.y+n,r.location=o)}for(e.reset();e.next();)(r=e.value)instanceof xh&&(r.suspendsRouting=t.contains(r),r.fd||r.fromNode!==this&&r.toNode!==this)&&(a=r.position,o.x=a.x+i,o.y=a.y+n,o.w()?r.move(o):r.bb(),Th(r)&&r.bb());pt.free(o)}},d.Object.defineProperties(gh.prototype,{placeholder:{get:function(){return this.$a}},computesBoundsAfterDrag:{get:function(){return 0!=(2048&this.U)},set:function(t){var e=0!=(2048&this.U);e!==t&&(this.U^=2048,this.g("computesBoundsAfterDrag",e,t))}},computesBoundsIncludingLinks:{get:function(){return 0!=(4096&this.U)},set:function(t){var e=0!=(4096&this.U);e!==t&&(this.U^=4096,this.g("computesBoundsIncludingLinks",e,t))}},computesBoundsIncludingLocation:{get:function(){return 0!=(8192&this.U)},set:function(t){var e=0!=(8192&this.U);e!==t&&(this.U^=8192,this.g("computesBoundsIncludingLocation",e,t))}},handlesDragDropForMembers:{get:function(){return 0!=(16384&this.U)},set:function(t){var e=0!=(16384&this.U);e!==t&&(this.U^=16384,this.g("handlesDragDropForMembers",e,t))}},memberParts:{get:function(){return this.Gn.iterator}},layout:{get:function(){return this.Sc},set:function(t){var e=this.Sc;if(e!==t){null!==t&&null!==t.diagram&&t.diagram.layout===t&&x("A layout cannot be both the Diagram.layout and a Group.layout: "+t),null!==e&&(e.diagram=null,e.group=null),this.Sc=t;var n=this.diagram;null!==t&&(t.diagram=n,t.group=this),null!==n&&(n.xh=!0),this.g("layout",e,t),null!==n&&n.$b()}}},memberAdded:{get:function(){return null!==this.Ba?this.Ba.Mq:null},set:function(t){var e=this.memberAdded;e!==t&&(Kc(this),this.Ba.Mq=t,this.g("memberAdded",e,t))}},memberRemoved:{get:function(){return null!==this.Ba?this.Ba.Nq:null},set:function(t){var e=this.memberRemoved;e!==t&&(Kc(this),this.Ba.Nq=t,this.g("memberRemoved",e,t))}},memberValidation:{get:function(){return null!==this.Ba?this.Ba.ij:null},set:function(t){var e=this.memberValidation;e!==t&&(Kc(this),this.Ba.ij=t,this.g("memberValidation",e,t))}},ungroupable:{get:function(){return 0!=(256&this.U)},set:function(t){var e=0!=(256&this.U);e!==t&&(this.U^=256,this.g("ungroupable",e,t))}},isSubGraphExpanded:{get:function(){return 0!=(512&this.U)},set:function(t){var e=0!=(512&this.U);if(e!==t){this.U^=512;var n=this.diagram;if(this.g("isSubGraphExpanded",e,t),null!==(e=this.subGraphExpandedChanged)){var i=!0;null!==n&&(i=n.aa,n.aa=!0),e(this),null!==n&&(n.aa=i)}null!==n&&n.undoManager.isUndoingRedoing?(null!==this.$a&&this.$a.v(),this.memberParts.each((function(t){t.updateAdornments()}))):t?this.expandSubGraph():this.collapseSubGraph()}}},wasSubGraphExpanded:{get:function(){return 0!=(1024&this.U)},set:function(t){var e=0!=(1024&this.U);e!==t&&(this.U^=1024,this.g("wasSubGraphExpanded",e,t))}},subGraphExpandedChanged:{get:function(){return null!==this.Ba?this.Ba.Kr:null},set:function(t){var e=this.subGraphExpandedChanged;e!==t&&(Kc(this),this.Ba.Kr=t,this.g("subGraphExpandedChanged",e,t))}},rh:{get:function(){return 0!=(32768&this.U)},set:function(t){0!=(32768&this.U)!==t&&(this.U^=32768)}}}),gh.prototype.expandSubGraph=gh.prototype.expandSubGraph,gh.prototype.collapseSubGraph=gh.prototype.collapseSubGraph,gh.prototype.findSubGraphParts=gh.prototype.Rj,gh.prototype.findContainingGroupChain=gh.prototype.hz,gh.prototype.findExternalNodesConnected=gh.prototype.iz,gh.prototype.findExternalLinksConnected=gh.prototype.Lu,gh.prototype.ensureBounds=gh.prototype.Va,gh.className="Group",h(bh,Ia),bh.prototype.cloneProtected=function(t){Ia.prototype.cloneProtected.call(this,t),t.yb=this.yb.J(),t.ko=this.ko.copy()},bh.prototype.gh=function(t){if(null===this.background&&null===this.areaBackground)return!1;var e=this.naturalBounds;return _t(0,0,e.width,e.height,t.x,t.y)},bh.prototype.Wl=function(){var t=this.part;if(null!==t&&(t instanceof gh||t instanceof Yc)||x("Placeholder is not inside a Group or Adornment."),t instanceof gh){var e=this.computeBorder(this.ko),n=this.minSize,i=this.dc;for(Ot(i,(isFinite(n.width)?Math.max(n.width,e.width):e.width)||0,(isFinite(n.height)?Math.max(n.height,e.height):e.height)||0),this.Ge(0,0,i.width,i.height),i=t.memberParts,n=!1;i.next();)if(i.value.isVisible()){n=!0;break}i=t.diagram,!n||null===i||i.animationManager.Xu(t)||isNaN(e.x)||isNaN(e.y)||((n=pt.alloc()).xi(e,t.locationSpot),n.D(t.location)||(t.location=n),pt.free(n))}else{e=this.dc,i=(n=this.yb).left+n.right;var r=n.top+n.bottom,o=t.adornedObject;t.angle=o.li();var a=0;o instanceof pu&&(a=o.strokeWidth);var s=o.Df(),l=o.naturalBounds,u=(l.width+a)*s;a=(l.height+a)*s,t.type!==Ml.Link&&(s=o.ga("Selection"===t.category?te:t.locationSpot,pt.alloc()),t.location=s,pt.free(s)),isNaN(u)||isNaN(a)?(t=o.ga(te,pt.alloc()),(u=Bt.allocAt(t.x,t.y,0,0)).Ye(o.ga(le,t)),u.Ye(o.ga(ne,t)),u.Ye(o.ga(ae,t)),Ot(e,u.width+i||0,u.height+r||0),this.Ge(-n.left,-n.top,e.width,e.height),pt.free(t),Bt.free(u)):(Ot(e,u+i||0,a+r||0),this.Ge(-n.left,-n.top,e.width,e.height))}},bh.prototype.eh=function(t,e,n,i){this.actualBounds.h(t,e,n,i)},bh.prototype.computeBorder=function(t){var e=this.part,n=e.diagram,i=null===n||!n.animationManager.isAnimating;if(null!==n&&e instanceof gh&&!e.layer.isTemporary&&e.computesBoundsAfterDrag&&this.ko.w()){var r=n.toolManager.findTool("Dragging");if(r===n.currentTool&&null!==(n=r.computeBorder(e,this.ko,t)))return n}n=Bt.alloc(),r=this.computeMemberBounds(n);var o=this.yb;return e instanceof gh&&!e.isSubGraphExpanded?t.h(r.x-o.left,r.y-o.top,0,0):t.h(r.x-o.left,r.y-o.top,Math.max(r.width+o.left+o.right,0),Math.max(r.height+o.top+o.bottom,0)),Bt.free(n),i&&e instanceof gh&&e.computesBoundsIncludingLocation&&e.location.w()&&t.Ye(e.location),t},bh.prototype.computeMemberBounds=function(t){if(!(this.part instanceof gh))return t.h(0,0,0,0),t;for(var e=this.part,n=1/0,i=1/0,r=-1/0,o=-1/0,a=e.memberParts;a.next();){var s=a.value;if(s.isVisible()){if(s instanceof xh){if(!e.computesBoundsIncludingLinks)continue;if(es(s))continue;if(s.fromNode===e||s.toNode===e)continue}(s=s.actualBounds).left<n&&(n=s.left),s.top<i&&(i=s.top),s.right>r&&(r=s.right),s.bottom>o&&(o=s.bottom)}}return isFinite(n)&&isFinite(i)?t.h(n,i,r-n,o-i):(e=e.location,t.h(e.x,e.y,0,0)),t},d.Object.defineProperties(bh.prototype,{padding:{get:function(){return this.yb},set:function(t){"number"==typeof t&&(t=new Xt(t));var e=this.yb;e.D(t)||(this.yb=t=t.J(),this.g("padding",e,t),this.v())}}}),bh.className="Placeholder",h(xh,Sc),xh.prototype.cloneProtected=function(t){Sc.prototype.cloneProtected.call(this,t),t.Qa=-113&this.Qa,t.ff=this.ff,t.gn=this.gn,t.vf=this.vf,t.uo=this.uo,t.qk=this.qk,t.Om=this.Om,t.Qm=this.Qm,t.Rm=this.Rm,t.qj=this.qj,t.po=this.po,null!==this.ba&&(t.ba=this.ba.copy())},(e=xh.prototype).Af=function(t){Sc.prototype.Af.call(this,t),this.ff=t.ff,this.vf=t.vf,t.Mg=null,t.bb(),t.Sf=this.Sf;var e=t.fromPort;null!==e&&th(e),null!==(t=t.toPort)&&th(t)},e.qb=function(t){t.classType===xh?2==(2&t.value)?this.routing=t:t===qh||t===Kh||t===Qh?this.curve=t:t===Jh||t===$h||t===td?this.adjusting=t:t!==Zh&&t!==Xh&&x("Unknown Link enum value for a Link property: "+t):Sc.prototype.qb.call(this,t)},e.Xc=function(){null===this.ba&&(this.ba=new ps)},e.si=function(){var t=this.fromNode;if(null!==t){var e=t.findVisibleNode();if(null!==e&&(t=e),is(t)||Dc(t))return!1}return null===(t=this.toNode)||(null!==(e=t.findVisibleNode())&&(t=e),!is(t)&&!Dc(t))},e.zv=function(){return!1},e.Av=function(){},e.Zc=function(){return!1},xh.prototype.computeAngle=function(t,e,n){return xh.computeAngle(e,n)},xh.computeAngle=function(t,e){switch(t){default:case Xh:t=0;break;case ed:t=e;break;case nd:t=e+90;break;case id:t=e-90;break;case rd:t=e+180;break;case od:90<(t=_e.bp(e))&&270>t&&(t-=180);break;case ad:90<(t=_e.bp(e+90))&&270>t&&(t-=180);break;case sd:90<(t=_e.bp(e-90))&&270>t&&(t-=180);break;case ld:if(45<(t=_e.bp(e))&&135>t||225<t&&315>t)return 0;90<t&&270>t&&(t-=180)}return _e.bp(t)},(e=xh.prototype).oh=function(){var t=this.containingGroup;null!==t&&this.fromNode!==t&&this.toNode!==t&&t.computesBoundsIncludingLinks&&Sc.prototype.oh.call(this)},e.To=function(t){var e=this.fromNode;return t===e?this.toNode:e},e.Cz=function(t){var e=this.fromPort;return t===e?this.toPort:e},e.Vo=function(t){if(Sc.prototype.Vo.call(this,t),Rh(this)&&this.Xo(this.actualBounds),!t){var e=null;null!==(t=this.ef)&&nh(t,this,e=this.fromPort);var n=this.uf;if(null!==n){var i=this.toPort;n===t&&i===e||nh(n,this,i)}Gh(this)}},e.Wo=function(t){if(Sc.prototype.Wo.call(this,t),Rh(this)&&this.Xo(this.actualBounds),!t){var e=null;null!==(t=this.ef)&&ih(t,this,e=this.fromPort);var n=this.uf;if(null!==n){var i=this.toPort;n===t&&i===e||ih(n,this,i)}Uh(this)}},e.Lj=function(){if(this.fd=!0,null!==this.wd){var t=this.diagram;if(null!==t)for(var e=this.wd.copy().iterator;e.next();)t.remove(e.value)}null!==this.data&&(null!==(t=this.diagram)&&t.partManager.removeDataForLink(this))},xh.prototype.updateRelationshipsFromData=function(){if(null!==this.data){var t=this.diagram;null!==t&&t.partManager.updateRelationshipsFromData(this)}},xh.prototype.move=function(t,e){var n=e?this.location:this.position,i=n.x;isNaN(i)&&(i=0);var r=n.y;for(isNaN(r)&&(r=0),i=t.x-i,r=t.y-r,!0===e?Sc.prototype.move.call(this,t,!1):(t=pt.allocAt(n.x+i,n.y+r),Sc.prototype.move.call(this,t,!1),pt.free(t)),kh(this,i,r),t=this.labelNodes;t.next();)n=(e=t.value).position,e.moveTo(n.x+i,n.y+r)},xh.prototype.canRelinkFrom=function(){if(!this.relinkableFrom)return!1;var t=this.layer;return null===t||!!t.allowRelink&&!(null!==(t=t.diagram)&&!t.allowRelink)},xh.prototype.canRelinkTo=function(){if(!this.relinkableTo)return!1;var t=this.layer;return null===t||!!t.allowRelink&&!(null!==(t=t.diagram)&&!t.allowRelink)},xh.prototype.computeMidPoint=function(t){var e=this.pointsCount;if(0===e)return t.assign(at),t;if(1===e)return t.assign(this.i(0)),t;if(2===e){var n=this.i(0),i=this.i(1);return t.h((n.x+i.x)/2,(n.y+i.y)/2),t}if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===qh))return this.ua.Pu(.5,t),t.add(this.i(0)),n=this.ua.figures.first(),t.offset(-n.startX,-n.startY),t;if(this.computeCurve()===qh){if(3===e){n=this.i(0),i=this.i(1);var r=this.i(2);return _e.ax(n.x,n.y,i.x,i.y,i.x,i.y,r.x,r.y,t),t}if(n=3*((i=(e-1)/3|0)/2|0),1==i%2){i=this.i(n),r=this.i(n+1);var o=this.i(n+2);n=this.i(n+3),_e.ax(i.x,i.y,r.x,r.y,o.x,o.y,n.x,n.y,t)}else t.assign(this.i(n));return t}var a=this.flattenedLengths;for(n=this.flattenedTotalLength,r=o=i=0;i<n/2&&o<e&&!(i+(r=a[o])>n/2);)i+=r,o++;return e=this.i(o),o=this.i(o+1),1>Math.abs(e.x-o.x)?e.y>o.y?t.h(e.x,e.y-(n/2-i)):t.h(e.x,e.y+(n/2-i)):1>Math.abs(e.y-o.y)?e.x>o.x?t.h(e.x-(n/2-i),e.y):t.h(e.x+(n/2-i),e.y):(n=(n/2-i)/r,t.h(e.x+n*(o.x-e.x),e.y+n*(o.y-e.y))),t},xh.prototype.computeMidAngle=function(){var t=this.pointsCount;if(2>t)return NaN;if(2===t)return this.i(0).ab(this.i(1));if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===qh))return this.ua.wx(.5);if(this.computeCurve()===qh&&4<=t){var e=(t-1)/3|0,n=3*(e/2|0);if(1==e%2){n=Math.floor(n),t=this.i(n),e=this.i(n+1);var i=this.i(n+2);return n=this.i(n+3),_e.My(t.x,t.y,e.x,e.y,i.x,i.y,n.x,n.y)}if(0<n&&n+1<t)return this.i(n-1).ab(this.i(n+1))}e=this.flattenedLengths,i=this.flattenedTotalLength;var r,o=0;for(n=0;o<i/2&&n<t&&!(o+(r=e[n])>i/2);)o+=r,n++;if(e=this.i(n),i=this.i(n+1),1>Math.abs(e.x-i.x)&&1>Math.abs(e.y-i.y)){if(0<n&&n+2<t)return this.i(n-1).ab(this.i(n+2))}else{if(1>Math.abs(e.x-i.x))return e.y>i.y?270:90;if(1>Math.abs(e.y-i.y))return e.x>i.x?180:0}return e.ab(i)},(e=xh.prototype).i=function(t){return this.Nb.s[t]},e.dd=function(t,e){this.Nb.cd(t,e)},e.L=function(t,e,n){this.Nb.cd(t,new pt(e,n))},e.Kz=function(t,e){this.Nb.Gb(t,e)},e.m=function(t,e,n){this.Nb.Gb(t,new pt(e,n))},e.ne=function(t){this.Nb.add(t)},e.yf=function(t,e){this.Nb.add(new pt(t,e))},e.pv=function(t){this.Nb.mb(t)},e.Fj=function(){this.Nb.clear()},e.uh=function(){null===this.Mg&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},e.zf=function(){if(null!==this.Mg){for(var t=this.Mg,e=this.Nb,n=1/0,i=1/0,r=t.s,o=r.length,a=0;a<o;a++){var s=r[a];n=Math.min(s.x,n),i=Math.min(s.y,i)}s=a=1/0;for(var l=e.s,u=l.length,c=0;c<u;c++){var h=l[c];a=Math.min(h.x,a),s=Math.min(h.y,s),h.freeze()}if(e.freeze(),u===o){for(o=0;o<u;o++)if(c=r[o],h=l[o],c.x-n!=h.x-a||c.y-i!=h.y-s){this.qc();break}}else this.qc();this.Mg=null,null!==(n=this.diagram)&&n.animationManager.zb&&$i(n.animationManager,this,e),Ch(this),this.g("points",t,e)}},e.rv=function(){null!==this.Mg&&(this.Nb=this.Mg,this.Mg=null)},e.bb=function(){if(!this.suspendsRouting){var t=this.diagram;if(t){if(t.As.contains(this)||t.undoManager.isUndoingRedoing)return;if((t=t.animationManager).isTicking&&!t.isAnimating)return;null===this.Tg||t.isTicking||(this.Tg=null)}null!==(t=this.path)&&(this.fd=!1,this.v(),t.v())}},e.vg=function(){if(!this.fd&&!this.computingPoints){var t=!0;try{this.computingPoints=!0,this.uh(),t=this.computePoints()}catch(t){this.computingPoints=!1,this.rv()}finally{this.computingPoints=!1,t?this.zf():this.rv()}}},xh.prototype.computePoints=function(){if(null===this.diagram)return!1;var t=this.fromNode,e=null;if(null===t?(Hh||((Hh=new qc).desiredSize=St,Hh.Va()),this.defaultFromPoint&&(Hh.location=this.defaultFromPoint,Hh.Va(),e=t=Hh)):e=this.fromPort,null!==e&&!t.isVisible()){var n=t.findVisibleNode();null!==n&&n!==t?(t=n,e=n.port):t=n}if(this.Lw=t,null===t||!t.location.w())return!1;for(;!(null===e||e.actualBounds.w()&&e.Ed());)e=e.panel;if(null===e)return!1;var i=this.toNode,r=null;if(null===i?(_h||((_h=new qc).desiredSize=St,_h.Va()),this.defaultToPoint&&(_h.location=this.defaultToPoint,_h.Va(),r=i=_h)):r=this.toPort,null===r||i.isVisible()||(null!==(n=i.findVisibleNode())&&n!==i?(i=n,r=n.port):i=n),this.Mw=i,null===i||!i.location.w())return!1;for(;!(null===r||r.actualBounds.w()&&r.Ed());)r=r.panel;if(null===r)return!1;var o=this.pointsCount,a=this.computeSpot(!0,e);n=this.computeSpot(!1,r);var s=Eh(a),l=Eh(n),u=e===r&&null!==e,c=this.isOrthogonal,h=this.curve===qh;this.Wf=!(!u||c)&&(h=!0);var d=this.computeAdjusting()===Xh||u;if(!c&&!u&&s&&l){if(s=!1,!d&&3<=o&&(d=this.getLinkPoint(t,e,a,!0,!1,i,r),l=this.getLinkPoint(i,r,n,!1,!1,t,e),s=this.adjustPoints(0,d,o-1,l))&&(d=this.getLinkPoint(t,e,a,!0,!1,i,r),l=this.getLinkPoint(i,r,n,!1,!1,t,e),this.adjustPoints(0,d,o-1,l)),!s)if(this.Fj(),h){o=this.getLinkPoint(t,e,a,!0,!1,i,r),s=(d=this.getLinkPoint(i,r,n,!1,!1,t,e)).x-o.x,l=d.y-o.y,u=this.computeCurviness(),h=c=0;var f=o.x+s/3,p=o.y+l/3,g=f,m=p;_e.B(l,0)?m=0<s?m-u:m+u:(c=-s/l,h=Math.sqrt(u*u/(c*c+1)),0>u&&(h=-h),m=c*((g=(0>l?-1:1)*h+f)-f)+p);var v=f=o.x+2*s/3,y=p=o.y+2*l/3;_e.B(l,0)?y=0<s?y-u:y+u:y=c*((v=(0>l?-1:1)*h+f)-f)+p,this.Fj(),this.ne(o),this.yf(g,m),this.yf(v,y),this.ne(d),this.dd(0,this.getLinkPoint(t,e,a,!0,!1,i,r)),this.dd(3,this.getLinkPoint(i,r,n,!1,!1,t,e))}else o=i,d=r,i=this.getLinkPoint(t,e,a,!0,!1,o,d),r=this.getLinkPoint(o,d,n,!1,!1,t,e),this.hasCurviness()?(d=r.x-i.x,n=r.y-i.y,a=this.computeCurviness(),o=t=i.x+d/2,s=e=i.y+n/2,_e.B(n,0)?s=0<d?s-a:s+a:(d=-d/n,o=Math.sqrt(a*a/(d*d+1)),0>a&&(o=-o),s=d*((o=(0>n?-1:1)*o+t)-t)+e),this.ne(i),this.yf(o,s),this.ne(r)):(this.ne(i),this.ne(r),s=Bt.alloc(),e.mi(s),l=s.ca(r),d.mi(s),u=s.ca(i),(l||u)&&(a=e.ga(Lh(a),new pt),this.dd(0,this.getLinkPointFromPoint(t,e,a,r,!0,a)),n=d.ga(Lh(n),new pt),this.dd(1,this.getLinkPointFromPoint(o,d,n,i,!1,n))),Bt.free(s))}else{h=this.isAvoiding,d&&(c&&h||u)&&this.Fj();var w=u?this.computeCurviness():0;h=this.getLinkPoint(t,e,a,!0,c,i,r),f=g=p=0,(c||!s||u)&&(m=this.computeEndSegmentLength(t,e,a,!0),f=this.getLinkDirection(t,e,h,a,!0,c,i,r),u&&(s||a.D(n)||!c&&1===a.x+n.x&&1===a.y+n.y)&&(f-=c?90:30,0>w&&(f-=180)),0>f?f+=360:360<=f&&(f-=360),u&&(m+=Math.abs(w)*(c?1:2)),0===f?p=m:90===f?g=m:180===f?p=-m:270===f?g=-m:(p=m*Math.cos(f*Math.PI/180),g=m*Math.sin(f*Math.PI/180)),a.Mc()&&u&&(m=e.ga(re,pt.alloc()),v=pt.allocAt(m.x+1e3*p,m.y+1e3*g),this.getLinkPointFromPoint(t,e,m,v,!0,h),pt.free(m),pt.free(v))),m=this.getLinkPoint(i,r,n,!1,c,t,e);var b=y=v=0;if(c||!l||u){var x=this.computeEndSegmentLength(i,r,n,!1);b=this.getLinkDirection(i,r,m,n,!1,c,t,e),u&&(l||a.D(n)||!c&&1===a.x+n.x&&1===a.y+n.y)&&(b+=c?0:30,0>w&&(b+=180)),0>b?b+=360:360<=b&&(b-=360),u&&(x+=Math.abs(w)*(c?1:2)),0===b?v=x:90===b?y=x:180===b?v=-x:270===b?y=-x:(v=x*Math.cos(b*Math.PI/180),y=x*Math.sin(b*Math.PI/180)),n.Mc()&&u&&(n=r.ga(re,pt.alloc()),a=pt.allocAt(n.x+1e3*v,n.y+1e3*y),this.getLinkPointFromPoint(i,r,n,a,!1,m),pt.free(n),pt.free(a))}n=h,(c||!s||u)&&(n=new pt(h.x+p,h.y+g)),a=m,(c||!l||u)&&(a=new pt(m.x+v,m.y+y)),!d&&!c&&s&&3<o&&this.adjustPoints(0,h,o-2,a)?this.dd(o-1,m):!d&&!c&&l&&3<o&&this.adjustPoints(1,n,o-1,m)?this.dd(0,h):!d&&(c?6<=o:4<o)&&this.adjustPoints(1,n,o-2,a)?(this.dd(0,h),this.dd(o-1,m)):(this.Fj(),this.ne(h),(c||!s||u)&&this.ne(n),c&&this.addOrthoPoints(n,f,a,b,t,i),(c||!l||u)&&this.ne(a),this.ne(m))}return!0},xh.prototype.getLinkPointFromPoint=function(t,e,n,i,r,o){if(void 0===o&&(o=new pt),null===t||null===e)return o.assign(n),o;if(t.isVisible()||null!==(r=t.findVisibleNode())&&r!==t&&(e=r.port),t=null,null===(r=e.panel)||r.se()||(r=r.panel),null===r){r=i.x,i=i.y;var a=n.x;n=n.y}else{r=1/((t=r.oe).m11*t.m22-t.m12*t.m21),a=t.m22*r;var s=-t.m12*r,l=-t.m21*r,u=t.m11*r,c=r*(t.m21*t.dy-t.m22*t.dx),h=r*(t.m12*t.dx-t.m11*t.dy);r=i.x*a+i.y*l+c,i=i.x*s+i.y*u+h,a=n.x*a+n.y*l+c,n=n.x*s+n.y*u+h}return e.Sj(r,i,a,n,o),null!==t&&o.transform(t),o},xh.prototype.getLinkPoint=function(t,e,n,i,r,o,a,s){if(void 0===s&&(s=new pt),n.sb()&&!Eh(n))return e.ga(n,s),s;if(n.$c()){var l=Mh(this,e);if(null!==l){if(s.assign(l.Zo),r&&this.routing===Yh){var u=Mh(this,a);if(null!==u&&l.Gl<u.Gl){l=pt.alloc(),u=pt.alloc();var c=new Bt(e.ga(te,l),e.ga(le,u)),h=this.computeSpot(!i,a);t=this.getLinkPoint(o,a,h,!i,r,t,e,u),(n.Hf(ce)||n.Hf(he))&&t.y>=c.y&&t.y<=c.y+c.height?s.y=t.y:(n.Hf(ue)||n.Hf(de))&&t.x>=c.x&&t.x<=c.x+c.width&&(s.x=t.x),pt.free(l),pt.free(u)}}return s}}return n=e.ga(Lh(n),pt.alloc()),this.pointsCount>(r?6:2)?(a=i?this.i(1):this.i(this.pointsCount-2),r&&(a=Ah(n,a.copy()))):(l=this.computeSpot(!i,a),o=pt.alloc(),a=a.ga(Lh(l),o),r&&(a=Ah(n,a)),pt.free(o)),this.getLinkPointFromPoint(t,e,n,a,i,s),pt.free(n),s},xh.prototype.getLinkDirection=function(t,e,n,i,r,o,a,s){t:if(i.sb())var l=i.x>i.y?i.x>1-i.y?0:i.x<1-i.y?270:315:i.x<i.y?i.x>1-i.y?90:i.x<1-i.y?180:135:.5>i.x?225:.5<i.x?45:0;else{if(i.$c()&&null!==(l=Mh(this,e)))switch(l.Nc){case 1:l=270;break t;case 2:l=180;break t;default:case 4:l=0;break t;case 8:l=90;break t}l=e.ga(re,pt.alloc()),this.pointsCount>(o?6:2)?(s=r?this.i(1):this.i(this.pointsCount-2),s=o?Ah(l,s.copy()):n):(n=pt.alloc(),s=s.ga(re,n),pt.free(n)),n=Math.abs(s.x-l.x)>Math.abs(s.y-l.y)?s.x>=l.x?0:180:s.y>=l.y?90:270,pt.free(l),l=n}return i.Mc()&&a.Td(t)&&(360<=(l+=180)&&(l-=360)),Eh(i)||0===(t=e.li())||(45<=t&&135>t?l+=90:135<=t&&225>t?l+=180:225<=t&&315>t&&(l+=270),360<=l&&(l-=360)),l},xh.prototype.computeEndSegmentLength=function(t,e,n,i){return null!==e&&n.$c()&&null!==(t=Mh(this,e))?t.Ju:(t=i?this.fromEndSegmentLength:this.toEndSegmentLength,null!==e&&isNaN(t)&&(t=i?e.fromEndSegmentLength:e.toEndSegmentLength),isNaN(t)&&(t=10),t)},xh.prototype.computeSpot=function(t,e){return void 0===e&&(e=null),t?null===(t=e||this.fromPort)?t=re:((e=this.fromSpot).Xb()&&(e=t.fromSpot),t=e===ke?$t:e):null===(t=e||this.toPort)?t=re:((e=this.toSpot).Xb()&&(e=t.toSpot),t=e===ke?$t:e),t},xh.prototype.computeOtherPoint=function(t,e){return this.computeAdjusting()!==Xh&&4<this.pointsCount?this.computeMidPoint(new pt):null!==(t=null!==(t=e.Zn)?Ld(t,this):null)?t.Zo:e.ga(re)},xh.prototype.computeShortLength=function(t){if(t){if(t=this.fromShortLength,isNaN(t)){var e=this.fromPort;null!==e&&(t=e.fromShortLength)}return isNaN(t)?0:t}return t=this.toShortLength,isNaN(t)&&(null!==(e=this.toPort)&&(t=e.toShortLength)),isNaN(t)?0:t},xh.prototype.Cf=function(t,e,n,i,r,o){if(!1===this.pickable)return!1;void 0===e&&(e=null),void 0===n&&(n=null);var a=o;if(void 0===o&&(a=Ue.alloc()).reset(),a.multiply(this.transform),this.fh(t,a))return Ul(this,e,n,r),void 0===o&&Ue.free(a),!0;if(this.Yc(t,a)){var s=!1;if(!this.isAtomic)for(var l=this.O.s,u=l.length;u--;){var c=l[u];if(c.visible||c===this.locationObject){var h=c.actualBounds,d=this.naturalBounds;if(!(h.x>d.width||h.y>d.height||0>h.x+h.width||0>h.y+h.height)){if((h=Ue.alloc()).set(a),c instanceof Ml)s=c.Cf(t,e,n,i,r,h);else if(this.path===c){if(c instanceof pu)if(s=t,d=i,!1===c.pickable)s=!1;else if(h.multiply(c.transform),d)t:{var f=s,p=h;if(c.fh(f,p))s=!0;else{if(void 0===p&&(p=c.transform,f.Re(c.actualBounds))){s=!0;break t}s=f.left,d=f.right;var g=f.top;f=f.bottom;var m=pt.alloc(),v=pt.alloc(),y=pt.alloc(),w=Ue.alloc();w.set(p),w.bv(c.transform),w.Vj(),v.x=d,v.y=g,v.transform(w),m.x=s,m.y=g,m.transform(w),p=!1,bu(c,m,v,y)?p=!0:(m.x=d,m.y=f,m.transform(w),bu(c,m,v,y)?p=!0:(v.x=s,v.y=f,v.transform(w),bu(c,m,v,y)?p=!0:(m.x=s,m.y=g,m.transform(w),bu(c,m,v,y)&&(p=!0)))),Ue.free(w),pt.free(m),pt.free(v),pt.free(y),s=p}}else s=c.fh(s,h)}else s=Da(c,t,i,h);s&&(d=c,null!==e&&(d=e(c)),d&&(null===n||n(d))&&r.add(d)),Ue.free(h)}}}return void 0===o&&Ue.free(a),s||null!==this.background||null!==this.areaBackground}return void 0===o&&Ue.free(a),!1},xh.prototype.computeCurve=function(){if(null===this.Wf){var t=this.fromPort,e=this.isOrthogonal;this.Wf=null!==t&&t===this.toPort&&!e}return this.Wf?qh:this.curve},xh.prototype.computeCorner=function(){if(this.curve===qh)return 0;var t=this.corner;return(isNaN(t)||0>t)&&(t=10),t},xh.prototype.findMidLabel=function(){for(var t=this.path,e=this.O.s,n=e.length,i=0;i<n;i++){var r=e[i];if(r!==t&&!r.isPanelMain&&(-1/0===r.segmentIndex||isNaN(r.segmentIndex)))return r}for(t=this.labelNodes;t.next();)if(-1/0===(e=t.value).segmentIndex||isNaN(e.segmentIndex))return e;return null},xh.prototype.computeSpacing=function(){if(!this.isVisible())return 0;var t=cd;t=Math.max(t,this.computeThickness());var e=this.fromPort,n=this.toPort;if(null!==e&&null!==n){var i=this.findMidLabel();if(null!==i){var r=i.naturalBounds,o=i.margin,a=isNaN(r.width)?30:r.width*i.scale+o.left+o.right;r=isNaN(r.height)?14:r.height*i.scale+o.top+o.bottom,(i=i.segmentOrientation)===ed||i===od||i===rd?t=Math.max(t,r):i===id||i===sd||i===nd||i===ad?t=Math.max(t,a):(e=e.ga(re).ab(n.ga(re))/180*Math.PI,t=Math.max(t,Math.abs(Math.sin(e)*a)+Math.abs(Math.cos(e)*r)+1)),this.curve===qh&&(t*=1.333)}}return t},xh.prototype.arrangeBundledLinks=function(t,e){if(e)for(e=0;e<t.length;e++){var n=t[e];n.computeAdjusting()===Xh&&n.bb()}},xh.prototype.computeCurviness=function(){var t=this.curviness;if(isNaN(t)){t=ud;var e=this.Sf;if(null!==e){for(var n=T(),i=0,r=e.links,o=0;o<r.length;o++){var a=r[o].computeSpacing();n.push(a),i+=a}for(i=-i/2,o=0;o<r.length;o++){if(r[o]===this){t=i+n[o]/2;break}i+=n[o]}e.Ds===this.fromNode&&(t=-t),N(n)}}return t},xh.prototype.computeThickness=function(){if(!this.isVisible())return 0;var t=this.path;return null!==t?Math.max(t.strokeWidth,1):1},xh.prototype.hasCurviness=function(){return!isNaN(this.curviness)||null!==this.Sf},xh.prototype.adjustPoints=function(t,e,n,i){var r=this.computeAdjusting();if(this.isOrthogonal){if(r===$h)return!1;r===td&&(r=Jh)}switch(r){case $h:var o=this.i(t),a=this.i(n);if(!o.Xa(e)||!a.Xa(i)){r=o.x,o=o.y;var s=a.x-r,l=a.y-o,u=Math.sqrt(s*s+l*l);if(!_e.$(u,0)){if(_e.$(s,0))var c=0>l?-Math.PI/2:Math.PI/2;else c=Math.atan(l/Math.abs(s)),0>s&&(c=Math.PI-c);a=e.x;var h=e.y;s=i.x-a;var d=i.y-h;for(l=Math.sqrt(s*s+d*d),_e.$(s,0)?d=0>d?-Math.PI/2:Math.PI/2:(d=Math.atan(d/Math.abs(s)),0>s&&(d=Math.PI-d)),u=l/u,c=d-c,this.dd(t,e),t+=1;t<n;t++)s=(e=this.i(t)).x-r,l=e.y-o,e=Math.sqrt(s*s+l*l),_e.$(e,0)||(_e.$(s,0)?l=0>l?-Math.PI/2:Math.PI/2:(l=Math.atan(l/Math.abs(s)),0>s&&(l=Math.PI-l)),s=l+c,e*=u,this.L(t,a+e*Math.cos(s),h+e*Math.sin(s)));this.dd(n,i)}}return!0;case td:if(o=this.i(t),h=this.i(n),!o.Xa(e)||!h.Xa(i)){r=o.x,o=o.y,u=((a=h.x)-r)*(a-r)+((h=h.y)-o)*(h-o),s=e.x,c=e.y,l=i.x,d=i.y;var f=1;if(0!=l-s){var p=(d-c)/(l-s);f=Math.sqrt(1+1/(p*p))}else p=9e9;for(this.dd(t,e),t+=1;t<n;t++){var g=(e=this.i(t)).x,m=e.y,v=.5;0!==u&&(v=((r-g)*(r-a)+(o-m)*(o-h))/u);var y=r+v*(a-r),w=o+v*(h-o);e=Math.sqrt((g-y)*(g-y)+(m-w)*(m-w)),m<p*(g-y)+w&&(e=-e),0<p&&(e=-e),g=s+v*(l-s),v=c+v*(d-c),0!==p?(e=g+e/f,this.L(t,e,v-(e-g)/p)):this.L(t,g,v+e)}this.dd(n,i)}return!0;case Jh:return this.isOrthogonal&&(r=this.i(t),o=this.i(t+1),a=this.i(t+2),h=s=o.x,u=c=o.y,_e.B(r.y,o.y)?_e.B(o.x,a.x)?c=e.y:_e.B(o.y,a.y)&&(s=e.x):_e.B(r.x,o.x)&&(_e.B(o.y,a.y)?s=e.x:_e.B(o.x,a.x)&&(c=e.y)),this.L(t+1,s,c),r=this.i(n),o=this.i(n-1),a=this.i(n-2),l=s=o.x,d=c=o.y,_e.B(r.y,o.y)?_e.B(o.x,a.x)?c=i.y:_e.B(o.y,a.y)&&(s=i.x):_e.B(r.x,o.x)&&(_e.B(o.y,a.y)?s=i.x:_e.B(o.x,a.x)&&(c=i.y)),this.L(n-1,s,c),Th(this))?(this.L(t+1,h,u),this.L(n-1,l,d),n=!1):(this.dd(t,e),this.dd(n,i),n=!0),n;default:return!1}},xh.prototype.addOrthoPoints=function(t,e,n,i,r,o){0>e?e+=360:360<=e&&(e-=360),0>i?i+=360:360<=i&&(i-=360);var a=i;e=315<=e||45>e?0:45<=e&&135>e?90:135<=e&&225>e?180:270,i=315<=i||45>i?0:45<=i&&135>i?90:135<=i&&225>i?180:270;var s=r.actualBounds.copy(),l=o.actualBounds.copy();if(s.w()&&l.w()){s.Bc(hd,hd),l.Bc(hd,hd),s.Ye(t),l.Ye(n);var u=pt.alloc(),c=pt.alloc();0===e?n.x>t.x||270===i&&n.y<t.y&&l.right>t.x||90===i&&n.y>t.y&&l.right>t.x?(u.h(n.x,t.y),c.h(n.x,(t.y+n.y)/2),180===i?(u.x=this.computeMidOrthoPosition(t.x,t.y,n.x,n.y,!1),c.x=u.x,c.y=n.y):270===i&&n.y<t.y||90===i&&n.y>t.y?(u.x=t.x<l.left?this.computeMidOrthoPosition(t.x,t.y,l.left,n.y,!1):t.x<l.right&&(270===i&&t.y<l.top||90===i&&t.y>l.bottom)?this.computeMidOrthoPosition(t.x,t.y,n.x,n.y,!1):l.right,c.x=u.x,c.y=n.y):0===i&&t.x<l.left&&t.y>l.top&&t.y<l.bottom&&(u.x=t.x,u.y=t.y<n.y?Math.min(n.y,l.top):Math.max(n.y,l.bottom),c.y=u.y)):(u.h(t.x,n.y),c.h((t.x+n.x)/2,n.y),(180===i||90===i&&n.y<s.top||270===i&&n.y>s.bottom)&&(180===i&&(l.ca(t)||s.ca(n))?u.y=this.computeMidOrthoPosition(t.x,t.y,n.x,n.y,!0):n.y<t.y&&(180===i||90===i)?u.y=this.computeMidOrthoPosition(t.x,s.top,n.x,Math.max(n.y,l.bottom),!0):n.y>t.y&&(180===i||270===i)&&(u.y=this.computeMidOrthoPosition(t.x,s.bottom,n.x,Math.min(n.y,l.top),!0)),c.x=n.x,c.y=u.y),u.y>s.top&&u.y<s.bottom&&(n.x>=s.left&&n.x<=t.x||t.x<=l.right&&t.x>=n.x?90!==i&&270!==i||(u.h(Math.max((t.x+n.x)/2,t.x),t.y),c.h(u.x,n.y)):(u.y=270===i||(0===i||180===i)&&n.y<t.y?Math.min(n.y,0===i?s.top:Math.min(s.top,l.top)):Math.max(n.y,0===i?s.bottom:Math.max(s.bottom,l.bottom)),c.x=n.x,c.y=u.y))):180===e?n.x<t.x||270===i&&n.y<t.y&&l.left<t.x||90===i&&n.y>t.y&&l.left<t.x?(u.h(n.x,t.y),c.h(n.x,(t.y+n.y)/2),0===i?(u.x=this.computeMidOrthoPosition(t.x,t.y,n.x,n.y,!1),c.x=u.x,c.y=n.y):270===i&&n.y<t.y||90===i&&n.y>t.y?(u.x=t.x>l.right?this.computeMidOrthoPosition(t.x,t.y,l.right,n.y,!1):t.x>l.left&&(270===i&&t.y<l.top||90===i&&t.y>l.bottom)?this.computeMidOrthoPosition(t.x,t.y,n.x,n.y,!1):l.left,c.x=u.x,c.y=n.y):180===i&&t.x>l.right&&t.y>l.top&&t.y<l.bottom&&(u.x=t.x,u.y=t.y<n.y?Math.min(n.y,l.top):Math.max(n.y,l.bottom),c.y=u.y)):(u.h(t.x,n.y),c.h((t.x+n.x)/2,n.y),(0===i||90===i&&n.y<s.top||270===i&&n.y>s.bottom)&&(0===i&&(l.ca(t)||s.ca(n))?u.y=this.computeMidOrthoPosition(t.x,t.y,n.x,n.y,!0):n.y<t.y&&(0===i||90===i)?u.y=this.computeMidOrthoPosition(t.x,s.top,n.x,Math.max(n.y,l.bottom),!0):n.y>t.y&&(0===i||270===i)&&(u.y=this.computeMidOrthoPosition(t.x,s.bottom,n.x,Math.min(n.y,l.top),!0)),c.x=n.x,c.y=u.y),u.y>s.top&&u.y<s.bottom&&(n.x<=s.right&&n.x>=t.x||t.x>=l.left&&t.x<=n.x?90!==i&&270!==i||(u.h(Math.min((t.x+n.x)/2,t.x),t.y),c.h(u.x,n.y)):(u.y=270===i||(0===i||180===i)&&n.y<t.y?Math.min(n.y,180===i?s.top:Math.min(s.top,l.top)):Math.max(n.y,180===i?s.bottom:Math.max(s.bottom,l.bottom)),c.x=n.x,c.y=u.y))):90===e?n.y>t.y||180===i&&n.x<t.x&&l.bottom>t.y||0===i&&n.x>t.x&&l.bottom>t.y?(u.h(t.x,n.y),c.h((t.x+n.x)/2,n.y),270===i?(u.y=this.computeMidOrthoPosition(t.x,t.y,n.x,n.y,!0),c.x=n.x,c.y=u.y):180===i&&n.x<t.x||0===i&&n.x>t.x?(u.y=t.y<l.top?this.computeMidOrthoPosition(t.x,t.y,n.x,l.top,!0):t.y<l.bottom&&(180===i&&t.x<l.left||0===i&&t.x>l.right)?this.computeMidOrthoPosition(t.x,t.y,n.x,n.y,!0):l.bottom,c.x=n.x,c.y=u.y):90===i&&t.y<l.top&&t.x>l.left&&t.x<l.right&&(u.x=t.x<n.x?Math.min(n.x,l.left):Math.max(n.x,l.right),u.y=t.y,c.x=u.x)):(u.h(n.x,t.y),c.h(n.x,(t.y+n.y)/2),(270===i||0===i&&n.x<s.left||180===i&&n.x>s.right)&&(270===i&&(l.ca(t)||s.ca(n))?u.x=this.computeMidOrthoPosition(t.x,t.y,n.x,n.y,!1):n.x<t.x&&(270===i||0===i)?u.x=this.computeMidOrthoPosition(s.left,t.y,Math.max(n.x,l.right),n.y,!1):n.x>t.x&&(270===i||180===i)&&(u.x=this.computeMidOrthoPosition(s.right,t.y,Math.min(n.x,l.left),n.y,!1)),c.x=u.x,c.y=n.y),u.x>s.left&&u.x<s.right&&(n.y>=s.top&&n.y<=t.y||t.y<=l.bottom&&t.y>=n.y?0!==i&&180!==i||(u.h(t.x,Math.max((t.y+n.y)/2,t.y)),c.h(n.x,u.y)):(u.x=180===i||(90===i||270===i)&&n.x<t.x?Math.min(n.x,90===i?s.left:Math.min(s.left,l.left)):Math.max(n.x,90===i?s.right:Math.max(s.right,l.right)),c.x=u.x,c.y=n.y))):n.y<t.y||180===i&&n.x<t.x&&l.top<t.y||0===i&&n.x>t.x&&l.top<t.y?(u.h(t.x,n.y),c.h((t.x+n.x)/2,n.y),90===i?(u.y=this.computeMidOrthoPosition(t.x,t.y,n.x,n.y,!0),c.x=n.x,c.y=u.y):180===i&&n.x<t.x||0===i&&n.x>=t.x?(u.y=t.y>l.bottom?this.computeMidOrthoPosition(t.x,t.y,n.x,l.bottom,!0):t.y>l.top&&(180===i&&t.x<l.left||0===i&&t.x>l.right)?this.computeMidOrthoPosition(t.x,t.y,n.x,n.y,!0):l.top,c.x=n.x,c.y=u.y):270===i&&t.y>l.bottom&&t.x>l.left&&t.x<l.right&&(u.x=t.x<n.x?Math.min(n.x,l.left):Math.max(n.x,l.right),u.y=t.y,c.x=u.x)):(u.h(n.x,t.y),c.h(n.x,(t.y+n.y)/2),(90===i||0===i&&n.x<s.left||180===i&&n.x>s.right)&&(90===i&&(l.ca(t)||s.ca(n))?u.x=this.computeMidOrthoPosition(t.x,t.y,n.x,n.y,!1):n.x<t.x&&(90===i||0===i)?u.x=this.computeMidOrthoPosition(s.left,t.y,Math.max(n.x,l.right),n.y,!1):n.x>t.x&&(90===i||180===i)&&(u.x=this.computeMidOrthoPosition(s.right,t.y,Math.min(n.x,l.left),n.y,!1)),c.x=u.x,c.y=n.y),u.x>s.left&&u.x<s.right&&(n.y<=s.bottom&&n.y>=t.y||t.y>=l.top&&t.y<=n.y?0!==i&&180!==i||(u.h(t.x,Math.min((t.y+n.y)/2,t.y)),c.h(n.x,u.y)):(u.x=180===i||(90===i||270===i)&&n.x<t.x?Math.min(n.x,270===i?s.left:Math.min(s.left,l.left)):Math.max(n.x,270===i?s.right:Math.max(s.right,l.right)),c.x=u.x,c.y=n.y)));var h=n;if(this.isAvoiding){var d=this.diagram;if(null===d||r===o||this.layer.isTemporary||!To(d)||s.ca(h)&&!o.Td(r)||l.ca(t)&&!r.Td(o))e=!1;else{var f=No(d,!0,this.containingGroup,null);if(17!==this.segmentIndex&&f.Yj(Math.min(t.x,u.x),Math.min(t.y,u.y),Math.abs(t.x-u.x),Math.abs(t.y-u.y))&&f.Yj(Math.min(u.x,c.x),Math.min(u.y,c.y),Math.abs(u.x-c.x),Math.abs(u.y-c.y))&&f.Yj(Math.min(c.x,h.x),Math.min(c.y,h.y),Math.abs(c.x-h.x),Math.abs(c.y-h.y)))e=!1;else{r=t,o=h;var p=n=null;if(d.isVirtualized){(d=f.bounds.copy()).Bc(-f.Ho,-f.Go);var g=pt.alloc();pd(f,t.x,t.y)||(_e.Ff(d.x,d.y,d.x+d.width,d.y+d.height,t.x,t.y,u.x,u.y,g)?(n=t=g.copy(),e=g.ab(u)):_e.Ff(d.x,d.y,d.x+d.width,d.y+d.height,u.x,u.y,c.x,c.y,g)?(n=t=g.copy(),e=g.ab(c)):_e.Ff(d.x,d.y,d.x+d.width,d.y+d.height,c.x,c.y,h.x,h.y,g)&&(n=t=g.copy(),e=g.ab(h))),pd(f,h.x,h.y)||(_e.Ff(d.x,d.y,d.x+d.width,d.y+d.height,h.x,h.y,c.x,c.y,g)?(p=h=g.copy(),i=c.ab(g)):_e.Ff(d.x,d.y,d.x+d.width,d.y+d.height,c.x,c.y,u.x,u.y,g)?(p=h=g.copy(),i=u.ab(g)):_e.Ff(d.x,d.y,d.x+d.width,d.y+d.height,u.x,u.y,t.x,t.y,g)&&(p=h=g.copy(),i=t.ab(g))),pt.free(g)}(s=s.copy().ed(l)).Bc(f.Ho*f.Os,f.Go*f.Os),bd(f,t,e,h,i,s,!0),l=gd(f,h.x,h.y),!f.abort&&l>=kd&&(md(f),s.Bc(f.Ho*f.Hx,f.Go*f.Ix),bd(f,t,e,h,i,s,!1),l=gd(f,h.x,h.y)),!f.abort&&l<kd&&gd(f,h.x,h.y)!==Sd?(Nh(this,f,h.x,h.y,i,!0,a),s=this.i(2),4>this.pointsCount?(0===e||180===e?(s.x=t.x,s.y=h.y):(s.x=h.x,s.y=t.y),this.L(2,s.x,s.y),this.m(3,s.x,s.y)):(a=this.i(3),0===e||180===e?_e.B(s.x,a.x)?(s=0===e?Math.max(s.x,t.x):Math.min(s.x,t.x),this.L(2,s,t.y),this.L(3,s,a.y)):_e.B(s.y,a.y)?(Math.abs(t.y-s.y)<=f.Go/2&&(this.L(2,s.x,t.y),this.L(3,a.x,t.y)),this.m(2,s.x,t.y)):this.L(2,t.x,s.y):90!==e&&270!==e||(_e.B(s.y,a.y)?(s=90===e?Math.max(s.y,t.y):Math.min(s.y,t.y),this.L(2,t.x,s),this.L(3,a.x,s)):_e.B(s.x,a.x)?(Math.abs(t.x-s.x)<=f.Ho/2&&(this.L(2,t.x,s.y),this.L(3,t.x,a.y)),this.m(2,t.x,s.y)):this.L(2,s.x,t.y))),null!==n&&(t=this.i(1),a=this.i(2),t.x!==a.x&&t.y!==a.y?0===e||180===e?this.m(2,t.x,a.y):this.m(2,a.x,t.y):0===e||180===e?this.m(2,r.x,n.y):this.m(2,n.x,r.y)),null!==p&&(0===i||180===i?this.yf(o.x,p.y):this.yf(p.x,o.y)),e=!0):e=!1}}}else e=!1;e||(this.ne(u.copy()),this.ne(c.copy())),pt.free(u),pt.free(c)}},xh.prototype.computeMidOrthoPosition=function(t,e,n,i,r){var o=0;return!this.hasCurviness()||this.computeSpot(!0,this.fromPort).$c()||this.computeSpot(!1,this.toPort).$c()||(o=this.computeCurviness()),r?(e+i)/2+o:(t+n)/2+o},xh.prototype.ez=function(t){var e=t.x;t=t.y;for(var n=this.i(0),i=this.i(1),r=wt(e,t,n.x,n.y,i.x,i.y),o=0,a=1;a<this.pointsCount-1;a++){n=this.i(a+1);var s=wt(e,t,i.x,i.y,n.x,n.y);i=n,s<r&&(o=a,r=s)}return o},xh.prototype.qc=function(){this.lk=!1,this.v()},xh.prototype.Ul=function(t){if(!t){if(!1===this.fd)return;if(t=this.Pb(),this.lk&&(null===t||null!==t.geometry))return}if(2>this.pointsCount?this.lk=!0:this.ua=this.makeGeometry(),null!==(t=this.path)){t.ua=this.ua;for(var e=this.O.s,n=e.length,i=0;i<n;i++){var r=e[i];r!==t&&r.isPanelMain&&r instanceof pu&&(r.ua=this.ua)}}},xh.prototype.makeGeometry=function(){var t=this.ua,e=this.pointsCount,n=!1,i=this.diagram;null!==i&&Rh(this)&&i.Eh.contains(this)&&(0!==this.ml.width||0!==this.ml.height)&&(i.animationManager.isAnimating||i.currentTool!==i.toolManager)&&(n=!0);var r=this.i(0).copy(),o=r.copy();i=this.Nb.s;var a=this.computeCurve();if(a===qh&&3<=e&&!_e.$(this.smoothness,0))if(3===e){var s=this.i(1);i=Math.min(r.x,s.x);var l=Math.min(r.y,s.y);s=this.i(2),i=Math.min(i,s.x),l=Math.min(l,s.y)}else{if(this.isOrthogonal)for(l=0;l<e;l++)s=i[l],o.x=Math.min(s.x,o.x),o.y=Math.min(s.y,o.y);else for(i=3;i<e;i+=3)i+3>=e&&(i=e-1),l=this.i(i),o.x=Math.min(l.x,o.x),o.y=Math.min(l.y,o.y);i=o.x,l=o.y}else{for(l=0;l<e;l++)s=i[l],o.x=Math.min(s.x,o.x),o.y=Math.min(s.y,o.y);i=o.x,l=o.y}if(i-=this.su.x,l-=this.su.y,r.x-=i,r.y-=l,2!==e||Rh(this)){if(t.type=Ze.o,s=yc(t),0!==this.computeShortLength(!0)&&(r=Ih(this,r,!0,o)),fc(s,r.x,r.y,!1),a===qh&&3<=e&&!_e.$(this.smoothness,0))if(3===e)e=(n=this.i(1)).x-i,n=n.y-l,(r=this.i(2).copy()).x-=i,r.y-=l,0!==this.computeShortLength(!1)&&(r=Ih(this,r,!1,o)),gc(s,e,n,e,n,r.x,r.y);else if(this.isOrthogonal){e=pt.allocAt(i,l),(n=pt.alloc()).assign(this.i(1)),o=pt.allocAt(i,l),r=pt.allocAt(i,l),a=this.i(0);for(var u,c=this.smoothness/3,h=1;h<this.pointsCount-1;h++){var d=a,f=u=this.i(h),p=this.i(Bh(this,u,h,!1));if(!(_e.$(d.x,f.x)&&_e.$(f.x,p.x)||_e.$(d.y,f.y)&&_e.$(f.y,p.y))){var g=c;isNaN(g)&&(g=this.smoothness/3);var m=d.x;d=d.y;var v=f.x;f=f.y;var y=p.x;p=p.y;var w=g*jh(m,d,v,f);g*=jh(v,f,y,p),_e.$(d,f)&&_e.$(v,y)&&(v>m?p>f?(o.x=v-w,o.y=f-w,r.x=v+g,r.y=f+g):(o.x=v-w,o.y=f+w,r.x=v+g,r.y=f-g):p>f?(o.x=v+w,o.y=f-w,r.x=v-g,r.y=f+g):(o.x=v+w,o.y=f+w,r.x=v-g,r.y=f-g)),_e.$(m,v)&&_e.$(f,p)&&(f>d?(y>v?(o.x=v-w,o.y=f-w,r.x=v+g):(o.x=v+w,o.y=f-w,r.x=v-g),r.y=f+g):(y>v?(o.x=v-w,o.y=f+w,r.x=v+g):(o.x=v+w,o.y=f+w,r.x=v-g),r.y=f-g)),(_e.$(m,v)&&_e.$(v,y)||_e.$(d,f)&&_e.$(f,p))&&(m=.5*(m+y),d=.5*(d+p),o.x=m,o.y=d,r.x=m,r.y=d),(1===h||2===h&&_e.$(a.x,this.i(0).x)&&_e.$(a.y,this.i(0).y))&&(n.x=.5*(a.x+u.x),n.y=.5*(a.y+u.y)),gc(s,n.x-i,n.y-l,o.x-i,o.y-l,u.x-i,u.y-l),e.set(o),n.set(r),a=u}}u=a.x,a=a.y,c=this.i(this.pointsCount-1),0!==this.computeShortLength(!1)&&(c=Ih(this,c.copy(),!1,nt)),u=.5*(u+c.x),a=.5*(a+c.y),gc(s,r.x-i,r.y-l,u-i,a-l,c.x-i,c.y-l),pt.free(e),pt.free(n),pt.free(o),pt.free(r)}else for(n=3;n<e;n+=3)o=this.i(n-2),n+3>=e&&(n=e-1),r=this.i(n-1),a=this.i(n),n===e-1&&0!==this.computeShortLength(!1)&&(a=Ih(this,a.copy(),!1,nt)),gc(s,o.x-i,o.y-l,r.x-i,r.y-l,a.x-i,a.y-l);else{for((o=pt.alloc()).assign(this.i(0)),(r=pt.alloc()).assign(o),a=this.computeCorner(),h=1,u=0;h<e;){if(h=Bh(this,o,h,1<h),c=this.i(h),h>=e-1){if(o.D(c)){if(0===u)for(h=1;h<e;)r.assign(o),Oh(this,s,-i,-l,o,c=this.i(h++),n),o.assign(c)}else 0!==this.computeShortLength(!1)&&(c=Ih(this,c.copy(),!1,nt)),Oh(this,s,-i,-l,o,c,n);break}if(u=Bh(this,c,h+1,h<e-3),h=-i,m=-l,d=c,v=this.i(u),g=n,_e.B(o.y,d.y)&&_e.B(d.x,v.x))if(p=Math.min(a,Math.abs(d.x-r.x)/2),p=w=Math.min(p,Math.abs(v.y-d.y)/2),_e.B(p,0))Oh(this,s,h,m,o,d,g),o.assign(d);else{var b=d.x,x=d.y;f=b,y=x,b=d.x>o.x?d.x-p:d.x+p,y=v.y>d.y?d.y+w:d.y-w,Oh(this,s,h,m,o,v=pt.allocAt(b,x),g),pt.free(v),mc(s,d.x+h,d.y+m,f+h,y+m),o.h(f,y)}else _e.B(o.x,d.x)&&_e.B(d.y,v.y)?(p=Math.min(a,Math.abs(d.y-r.y)/2),p=w=Math.min(p,Math.abs(v.x-d.x)/2),_e.B(w,0)?(Oh(this,s,h,m,o,d,g),o.assign(d)):(f=b=d.x,y=x=d.y,x=d.y>o.y?d.y-p:d.y+p,f=v.x>d.x?d.x+w:d.x-w,Oh(this,s,h,m,o,v=pt.allocAt(b,x),g),pt.free(v),mc(s,d.x+h,d.y+m,f+h,y+m),o.h(f,y))):(Oh(this,s,h,m,o,d,g),o.assign(d));r.assign(c),h=u}pt.free(o)}wc=s}else(s=this.i(1).copy()).x-=i,s.y-=l,0!==this.computeShortLength(!0)&&(r=Ih(this,r,!0,o)),0!==this.computeShortLength(!1)&&(s=Ih(this,s,!1,o)),t.type=Ze.j,t.startX=r.x,t.startY=r.y,t.endX=s.x,t.endY=s.y;return this.lk=!0,t},xh.prototype.computeJumpLength=function(){return 10},xh.prototype.Xo=function(t){var e=this.layer;if(null!==e&&e.visible&&!e.isTemporary){var n=e.diagram;if(null!==n&&!n.animationManager.isTicking){var i=!1;for(n=n.layers;n.next();){var r=n.value;if(r.visible)if(r===e){i=!0;for(var o=!1,a=(r=r.Pa.s).length,s=0;s<a;s++){var l=r[s];l instanceof xh&&(l===this?o=!0:o&&zh(this,l,t))}}else if(i)for(r=(o=r.Pa.s).length,a=0;a<r;a++)(s=o[a])instanceof xh&&zh(this,s,t)}}}},xh.prototype.usesSamePort=function(t){var e=this.pointsCount,n=t.pointsCount;if(0<e&&0<n){var i=this.i(0),r=t.i(0);if(i.Xa(r))return!0;if(e=this.i(e-1),t=t.i(n-1),e.Xa(t)||i.Xa(t)||e.Xa(r))return!0}else if(this.fromNode===t.fromNode||this.toNode===t.toNode||this.fromNode===t.toNode||this.toNode===t.fromNode)return!0;return!1},xh.prototype.isVisible=function(){if(!Sc.prototype.isVisible.call(this))return!1;var t=this.containingGroup,e=!0,n=this.diagram;if(null!==n&&(e=n.isTreePathToChildren),null!==(n=this.fromNode)){if(this.isTreeLink&&e&&!n.isTreeExpanded)return!1;if(n===t)return!0;for(var i=n;null!==i;){if(i.labeledLink===this)return!0;i=i.containingGroup}if(null===(n=n.findVisibleNode())||n===t)return!1}if(null!==(n=this.toNode)){if(this.isTreeLink&&!e&&!n.isTreeExpanded)return!1;if(n===t)return!0;for(e=n;null!==e;){if(e.labeledLink===this)return!0;e=e.containingGroup}if(null===(e=n.findVisibleNode())||e===t)return!1}return!0},xh.prototype.Zb=function(t){if(Sc.prototype.Zb.call(this,t),t&&Fh(this,!1),null!==this.Sf&&this.Sf.Sl(),null!==this.wd)for(var e=this.wd.iterator;e.next();)e.value.Zb(t)},xh.prototype.computeAdjusting=function(){return this.isAvoiding&&null!==this.diagram&&this.diagram.animationManager.defaultAnimation.isAnimating?Jh:this.qk},xh.prototype.ph=function(){return!0},d.Object.defineProperties(xh.prototype,{fromNode:{get:function(){return this.ef},set:function(t){var e=this.ef;if(e!==t){var n=this.fromPort;null!==e&&(this.uf!==e&&ih(e,this,n),Uh(this),this.C(2)),this.ef=t,null!==t&&this.Zb(t.isVisible()),this.Wf=null,this.bb();var i=this.diagram;null!==i&&i.aa&&i.partManager.setFromNodeForLink(this,t,e);var r=this.fromPort,o=this.fromPortChanged;if(null!==o){var a=!0;null!==i&&(a=i.aa,i.aa=!0),o(this,n,r),null!==i&&(i.aa=a)}null!==t&&(this.uf!==t&&nh(t,this,r),Gh(this),this.C(1)),this.g("fromNode",e,t),Sh(this)}}},fromPortId:{get:function(){return this.ff},set:function(t){var e=this.ff;if(e!==t){var n=this.fromPort;null!==n&&th(n),Uh(this),this.ff=t;var i=this.fromPort;null!==i&&th(i);var r=this.diagram;if(null!==r){var o=this.data,a=r.model;null!==o&&a.ri()&&a.xv(o,t)}n!==i&&(this.Wf=null,this.bb(),null!==(o=this.fromPortChanged)&&(a=!0,null!==r&&(a=r.aa,r.aa=!0),o(this,n,i),null!==r&&(r.aa=a))),Gh(this),this.g("fromPortId",e,t)}}},fromPort:{get:function(){var t=this.ef;return null===t?null:t.ns(this.ff)}},fromPortChanged:{get:function(){return this.gn},set:function(t){var e=this.gn;e!==t&&(this.gn=t,this.g("fromPortChanged",e,t))}},toNode:{get:function(){return this.uf},set:function(t){var e=this.uf;if(e!==t){var n=this.toPort;null!==e&&(this.ef!==e&&ih(e,this,n),Uh(this),this.C(2)),this.uf=t,null!==t&&this.Zb(t.isVisible()),this.Wf=null,this.bb();var i=this.diagram;null!==i&&i.aa&&i.partManager.setToNodeForLink(this,t,e);var r=this.toPort,o=this.toPortChanged;if(null!==o){var a=!0;null!==i&&(a=i.aa,i.aa=!0),o(this,n,r),null!==i&&(i.aa=a)}null!==t&&(this.ef!==t&&nh(t,this,r),Gh(this),this.C(1)),this.g("toNode",e,t),Sh(this)}}},toPortId:{get:function(){return this.vf},set:function(t){var e=this.vf;if(e!==t){var n=this.toPort;null!==n&&th(n),Uh(this),this.vf=t;var i=this.toPort;null!==i&&th(i);var r=this.diagram;if(null!==r){var o=this.data,a=r.model;null!==o&&a.ri()&&a.Cv(o,t)}n!==i&&(this.Wf=null,this.bb(),null!==(o=this.toPortChanged)&&(a=!0,null!==r&&(a=r.aa,r.aa=!0),o(this,n,i),null!==r&&(r.aa=a))),Gh(this),this.g("toPortId",e,t)}}},toPort:{get:function(){var t=this.uf;return null===t?null:t.ns(this.vf)}},toPortChanged:{get:function(){return this.uo},set:function(t){var e=this.uo;e!==t&&(this.uo=t,this.g("toPortChanged",e,t))}},fromSpot:{get:function(){return null!==this.ba?this.ba.Xi:ke},set:function(t){var e=this.fromSpot;e.D(t)||(t=t.J(),this.Xc(),this.ba.Xi=t,this.g("fromSpot",e,t),(e.$c()||t.$c())&&null!==this.fromNode&&th(this.fromPort),this.bb())}},fromEndSegmentLength:{get:function(){return null!==this.ba?this.ba.Vi:NaN},set:function(t){var e=this.fromEndSegmentLength;e!==t&&(0>t&&P(t,">= 0",xh,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=t,this.g("fromEndSegmentLength",e,t),this.bb())}},fromShortLength:{get:function(){return null!==this.ba?this.ba.Wi:NaN},set:function(t){var e=this.fromShortLength;e!==t&&(this.Xc(),this.ba.Wi=t,this.qc(),this.g("fromShortLength",e,t))}},toSpot:{get:function(){return null!==this.ba?this.ba.yj:ke},set:function(t){var e=this.toSpot;e.D(t)||(t=t.J(),this.Xc(),this.ba.yj=t,this.g("toSpot",e,t),(e.$c()||t.$c())&&null!==this.toNode&&th(this.toPort),this.bb())}},toEndSegmentLength:{get:function(){return null!==this.ba?this.ba.wj:NaN},set:function(t){var e=this.toEndSegmentLength;e!==t&&(0>t&&P(t,">= 0",xh,"toEndSegmentLength"),this.Xc(),this.ba.wj=t,this.g("toEndSegmentLength",e,t),this.bb())}},toShortLength:{get:function(){return null!==this.ba?this.ba.xj:NaN},set:function(t){var e=this.toShortLength;e!==t&&(this.Xc(),this.ba.xj=t,this.qc(),this.g("toShortLength",e,t))}},isLabeledLink:{get:function(){return null!==this.wd&&0<this.wd.count}},labelNodes:{get:function(){return null===this.wd?V:this.wd.iterator}},relinkableFrom:{get:function(){return 0!=(1&this.Qa)},set:function(t){var e=0!=(1&this.Qa);e!==t&&(this.Qa^=1,this.g("relinkableFrom",e,t),this.Wb())}},relinkableTo:{get:function(){return 0!=(2&this.Qa)},set:function(t){var e=0!=(2&this.Qa);e!==t&&(this.Qa^=2,this.g("relinkableTo",e,t),this.Wb())}},resegmentable:{get:function(){return 0!=(4&this.Qa)},set:function(t){var e=0!=(4&this.Qa);e!==t&&(this.Qa^=4,this.g("resegmentable",e,t),this.Wb())}},isTreeLink:{get:function(){return 0!=(8&this.Qa)},set:function(t){var e=0!=(8&this.Qa);e!==t&&(this.Qa^=8,this.g("isTreeLink",e,t),null!==this.fromNode&&rh(this.fromNode),null!==this.toNode&&rh(this.toNode))}},path:{get:function(){var t=this.Pb();return t instanceof pu?t:null}},routeBounds:{get:function(){this.vg();var t=this.ml,e=1/0,n=1/0,i=this.pointsCount;if(0===i)t.h(NaN,NaN,0,0);else{if(1===i)i=this.i(0),e=Math.min(i.x,e),n=Math.min(i.y,n),t.h(i.x,i.y,0,0);else if(2===i){i=this.i(0);var r=this.i(1);e=Math.min(i.x,r.x),n=Math.min(i.y,r.y),t.h(i.x,i.y,0,0),t.Ye(r)}else if(this.computeCurve()===qh&&3<=i&&!this.isOrthogonal)if(e=(r=this.i(0)).x,n=r.y,t.h(e,n,0,0),3===i){i=this.i(1),e=Math.min(i.x,e),n=Math.min(i.y,n);var o=this.i(2);e=Math.min(o.x,e),n=Math.min(o.y,n),_e.Dl(r.x,r.y,i.x,i.y,i.x,i.y,o.x,o.y,.5,t)}else for(o=3;o<i;o+=3){var a=this.i(o-2);o+3>=i&&(o=i-1);var s=this.i(o-1),l=this.i(o);_e.Dl(r.x,r.y,a.x,a.y,s.x,s.y,l.x,l.y,.5,t),e=Math.min(l.x,e),n=Math.min(l.y,n),r=l}else for(r=this.i(0),o=this.i(1),e=Math.min(r.x,o.x),n=Math.min(r.y,o.y),t.h(r.x,r.y,0,0),t.Ye(o),r=2;r<i;r++)o=this.i(r),e=Math.min(o.x,e),n=Math.min(o.y,n),t.Ye(o);this.su.h(e-t.x,n-t.y)}return t}},midPoint:{get:function(){return this.vg(),this.computeMidPoint(new pt)}},midAngle:{get:function(){return this.vg(),this.computeMidAngle()}},flattenedLengths:{get:function(){if(null===this.cq){this.fd||Ch(this);for(var t=this.cq=[],e=this.pointsCount,n=0;n<e-1;n++){var i=this.i(n),r=this.i(n+1);_e.$(i.x,r.x)?0>(i=r.y-i.y)&&(i=-i):_e.$(i.y,r.y)?0>(i=r.x-i.x)&&(i=-i):i=Math.sqrt(i.Bf(r)),t.push(i)}}return this.cq}},flattenedTotalLength:{get:function(){var t=this.vt;if(isNaN(t)){for(var e=this.flattenedLengths,n=e.length,i=t=0;i<n;i++)t+=e[i];this.vt=t}return t}},points:{get:function(){return this.Nb},set:function(t){var e=this.Nb;if(e!==t){var n=null;if(Array.isArray(t)){var i=0==t.length%2;if(i)for(var r=0;r<t.length;r++)if("number"!=typeof t[r]||isNaN(t[r])){i=!1;break}if(i)for(n=new K,i=0;i<t.length/2;i++)r=new pt(t[2*i],t[2*i+1]).freeze(),n.add(r);else{for(i=!0,r=0;r<t.length;r++){var o=t[r];if(!C(o)||"number"!=typeof o.x||isNaN(o.x)||"number"!=typeof o.y||isNaN(o.y)){i=!1;break}}if(i)for(n=new K,i=0;i<t.length;i++)r=t[i],n.add(new pt(r.x,r.y).freeze())}}else if(t instanceof K)for(n=t.copy(),t=n.iterator;t.next();)t.value.freeze();else x("Link.points value is not an instance of List or Array: "+t);n.freeze(),this.Nb=n,this.qc(),Ch(this),null!==(t=this.diagram)&&(t.pi||t.undoManager.isUndoingRedoing||t.As.add(this),t.animationManager.zb&&$i(t.animationManager,this,n)),this.g("points",e,n)}}},pointsCount:{get:function(){return this.Nb.count}},fd:{get:function(){return 0!=(16&this.Qa)},set:function(t){0!=(16&this.Qa)!==t&&(this.Qa^=16)}},suspendsRouting:{get:function(){return 0!=(32&this.Qa)},set:function(t){0!=(32&this.Qa)!==t&&(this.Qa^=32)}},computingPoints:{get:function(){return 0!=(64&this.Qa)},set:function(t){0!=(64&this.Qa)!==t&&(this.Qa^=64)}},defaultFromPoint:{get:function(){return this.o},set:function(t){this.o=t.copy()}},defaultToPoint:{get:function(){return this.u},set:function(t){this.u=t.copy()}},isOrthogonal:{get:function(){return 2==(2&this.qj.value)}},isAvoiding:{get:function(){return 4==(4&this.qj.value)}},lk:{get:function(){return 0!=(128&this.Qa)},set:function(t){0!=(128&this.Qa)!==t&&(this.Qa^=128)}},geometry:{get:function(){if(!this.lk){if(this.vg(),2>this.pointsCount)return this.lk=!0,this.ua;this.ua=this.makeGeometry()}return this.ua}},firstPickIndex:{get:function(){return 2>=this.pointsCount?0:this.isOrthogonal||!Eh(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var t=this.pointsCount;return 0===t?0:2>=t?t-1:this.isOrthogonal||!Eh(this.computeSpot(!1))?t-2:t-1}},adjusting:{get:function(){return this.qk},set:function(t){var e=this.qk;e!==t&&(this.qk=t,this.g("adjusting",e,t))}},corner:{get:function(){return this.Om},set:function(t){var e=this.Om;e!==t&&(this.Om=t,this.qc(),this.g("corner",e,t))}},curve:{get:function(){return this.Qm},set:function(t){var e=this.Qm;e!==t&&(this.Qm=t,this.bb(),this.qc(),Fh(this,e===Kh||e===Qh||t===Kh||t===Qh),this.g("curve",e,t))}},curviness:{get:function(){return this.Rm},set:function(t){var e=this.Rm;e!==t&&(this.Rm=t,this.bb(),this.qc(),this.g("curviness",e,t))}},routing:{get:function(){return this.qj},set:function(t){var e=this.qj;e!==t&&(this.qj=t,this.Wf=null,this.bb(),Fh(this,2==(2&e.value)||2==(2&t.value)),this.g("routing",e,t))}},smoothness:{get:function(){return this.po},set:function(t){var e=this.po;e!==t&&(this.po=t,this.qc(),this.g("smoothness",e,t))}},key:{get:function(){var t=this.diagram;if(null!==t&&t.model.ri())return t.model.Ac(this.data)}}}),xh.prototype.invalidateOtherJumpOvers=xh.prototype.Xo,xh.prototype.findClosestSegment=xh.prototype.ez,xh.prototype.updateRoute=xh.prototype.vg,xh.prototype.invalidateRoute=xh.prototype.bb,xh.prototype.rollbackRoute=xh.prototype.rv,xh.prototype.commitRoute=xh.prototype.zf,xh.prototype.startRoute=xh.prototype.uh,xh.prototype.clearPoints=xh.prototype.Fj,xh.prototype.removePoint=xh.prototype.pv,xh.prototype.addPointAt=xh.prototype.yf,xh.prototype.addPoint=xh.prototype.ne,xh.prototype.insertPointAt=xh.prototype.m,xh.prototype.insertPoint=xh.prototype.Kz,xh.prototype.setPointAt=xh.prototype.L,xh.prototype.setPoint=xh.prototype.dd,xh.prototype.getPoint=xh.prototype.i,xh.prototype.getOtherPort=xh.prototype.Cz,xh.prototype.getOtherNode=xh.prototype.To;var Hh=null,_h=null,Zh=new G(xh,"Normal",1),Wh=new G(xh,"Orthogonal",2),Vh=new G(xh,"AvoidsNodes",6),Yh=new G(xh,"AvoidsNodesStraight",7),Xh=new G(xh,"None",0),qh=new G(xh,"Bezier",9),Kh=new G(xh,"JumpGap",10),Qh=new G(xh,"JumpOver",11),Jh=new G(xh,"End",17),$h=new G(xh,"Scale",18),td=new G(xh,"Stretch",19),ed=new G(xh,"OrientAlong",21),nd=new G(xh,"OrientPlus90",22),id=new G(xh,"OrientMinus90",23),rd=new G(xh,"OrientOpposite",24),od=new G(xh,"OrientUpright",25),ad=new G(xh,"OrientPlus90Upright",26),sd=new G(xh,"OrientMinus90Upright",27),ld=new G(xh,"OrientUpright45",28),ud=16,cd=14,hd=8;function dd(t,e,n,i){$(this),this.Fe=this.qq=!1,this.Ds=t,this.Ox=e,this.cv=n,this.Px=i,this.links=[]}function fd(t){$(this),this.Yx=this.group=null,this.vs=!0,this.abort=!1,this.Od=this.Nd=1,this.Fn=this.En=-1,this.rc=t.width,this.sc=t.height,this.ac=null,this.ei=this.di=0,this.Os=11,this.Ix=this.Hx=22}function pd(t,e,n){return t.Nd<=e&&e<=t.En&&t.Od<=n&&n<=t.Fn}function gd(t,e,n){return pd(t,e,n)?(e-=t.Nd,e/=t.rc,n-=t.Od,n/=t.sc,t.ac[0|e][0|n]):Cd}function md(t){if(null!==t.ac)for(var e=0;e<=t.di;e++)for(var n=t.ac[e],i=0;i<=t.ei;i++)n[i]>=Pd&&(n[i]=Cd)}function vd(t,e,n,i,r,o,a,s,l){if(!(e<o||e>a||n<s||n>l)){var u=0|e,c=0|n,h=t.ac[u][c];if(h>=Pd&&h<kd)for(r?c+=i:u+=i,h+=1;o<=u&&u<=a&&s<=c&&c<=l&&!(h>=t.ac[u][c]);)t.ac[u][c]=h,h+=1,r?c+=i:u+=i;if(u=r?c:u,r)if(0<i)for(n+=i;n<u;n+=i)vd(t,e,n,1,!r,o,a,s,l),vd(t,e,n,-1,!r,o,a,s,l);else for(n+=i;n>u;n+=i)vd(t,e,n,1,!r,o,a,s,l),vd(t,e,n,-1,!r,o,a,s,l);else if(0<i)for(e+=i;e<u;e+=i)vd(t,e,n,1,!r,o,a,s,l),vd(t,e,n,-1,!r,o,a,s,l);else for(e+=i;e>u;e+=i)vd(t,e,n,1,!r,o,a,s,l),vd(t,e,n,-1,!r,o,a,s,l)}}function yd(t,e,n,i,r,o,a,s,l){e|=0,n|=0;var u=Sd,c=Pd;for(t.ac[e][n]=c;u===Sd&&e>o&&e<a&&n>s&&n<l;)c+=1,t.ac[e][n]=c,r?n+=i:e+=i,u=t.ac[e][n]}function wd(t,e,n,i,r,o,a,s,l){e|=0,n|=0;var u=Sd,c=kd;for(t.ac[e][n]=c;u===Sd&&e>o&&e<a&&n>s&&n<l;)t.ac[e][n]=c,r?n+=i:e+=i,u=t.ac[e][n]}function bd(t,e,n,i,r,o,a){if(null!==t.ac){t.abort=!1;var s=e.x,l=e.y;if(pd(t,s,l)){s-=t.Nd,s/=t.rc,l-=t.Od,l/=t.sc;var u=i.x,c=i.y;if(pd(t,u,c))if(u-=t.Nd,u/=t.rc,c-=t.Od,c/=t.sc,1>=Math.abs(s-u)&&1>=Math.abs(l-c))t.abort=!0;else{var h=o.x;i=o.y,e=o.x+o.width;var d=o.y+o.height;h-=t.Nd,h/=t.rc,i-=t.Od,i/=t.sc,e-=t.Nd,e/=t.rc,d-=t.Od,d/=t.sc,o=Math.max(0,Math.min(t.di,0|h)),e=Math.min(t.di,Math.max(0,0|e)),h=Math.max(0,Math.min(t.ei,0|i)),d=Math.min(t.ei,Math.max(0,0|d)),l|=0,u|=0,c|=0;var f=0===n||90===n?1:-1;if(n=90===n||270===n,(i=t.ac)[s|=0][l]===Sd?(yd(t,s,l,f,n,o,e,h,d),yd(t,s,l,1,!n,o,e,h,d),yd(t,s,l,-1,!n,o,e,h,d)):yd(t,s,l,f,n,s,l,s,l),i[u][c]===Sd?(wd(t,u,c,0===r||90===r?1:-1,90===r||270===r,o,e,h,d),wd(t,u,c,1,!(90===r||270===r),o,e,h,d),wd(t,u,c,-1,!(90===r||270===r),o,e,h,d)):wd(t,u,c,f,n,u,c,u,c),n=T(),a&&xd(t,u,c,r,s,l,n))for(n[0]===u&&n[1]===c||(n.unshift(c),n.unshift(u)),n[n.length-2]===s&&n[n.length-1]===l||(n.push(s),n.push(l)),t=Pd,r=n[n.length-2],a=n[n.length-1],i[r][a]=t++,o=n.length-4;0<=o;o-=2)for(r=n[o+2],a=n[o+3],e=n[o],u=n[o+1];e>r?r++:e<r?r--:u>a?a++:u<a&&a--,i[r][a]=t++,r!==e||a!==u;);else vd(t,s,l,1,!1,o,e,h,d),vd(t,s,l,-1,!1,o,e,h,d),vd(t,s,l,1,!0,o,e,h,d),vd(t,s,l,-1,!0,o,e,h,d);N(n)}}}}function xd(t,e,n,i,r,o,a){for(var s=t.ac,l=e,u=n;;){if(l===r&&u===o)return!0;var c=l,h=u;if(0===i){if(!(c<r))break;c++}else if(90===i){if(!(h<o))break;h++}else if(180===i){if(!(c>r))break;c--}else{if(!(h>o))break;h--}var d=s[c][h];if(0===d||d===Ad)break;l=c,u=h}for(;;){if(c=i,h=l,d=u,0===i?d<o?(c=90,d++):d>o&&(c=270,d--):90===i?h<r?(c=0,h++):h>r&&(c=180,h--):180===i?d<o?(c=90,d++):d>o&&(c=270,d--):h<r?(c=0,h++):h>r&&(c=180,h--),h=s[h][d],c!==i&&0!==h&&h!==Ad){if(a.push(l),a.push(u),xd(t,l,u,c,r,o,a))return!0;a.pop(),a.pop()}if(s[l][u]=Ad,0===i){if(l===e)return!1;l--}else if(90===i){if(u===n)return!1;u--}else if(180===i){if(l===e)return!1;l++}else{if(u===n)return!1;u++}}}xh.className="Link",xh.Normal=Zh,xh.Orthogonal=Wh,xh.AvoidsNodes=Vh,xh.AvoidsNodesStraight=Yh,xh.None=Xh,xh.Bezier=qh,xh.JumpGap=Kh,xh.JumpOver=Qh,xh.End=Jh,xh.Scale=$h,xh.Stretch=td,xh.OrientAlong=ed,xh.OrientPlus90=nd,xh.OrientMinus90=id,xh.OrientOpposite=rd,xh.OrientUpright=od,xh.OrientPlus90Upright=ad,xh.OrientMinus90Upright=sd,xh.OrientUpright45=ld,xh.EndSegmentStep=8,xh.CurvinessStart=ud,xh.SpacingMin=cd,xh.OrthoShortCut=hd,dd.prototype.Sl=function(){if(!this.qq){var t=this.links;0<t.length&&(null!==(t=t[0].diagram)&&(t.ow.add(this),this.Fe=t.undoManager.isUndoingRedoing))}this.qq=!0},dd.prototype.Nv=function(){if(this.qq){this.qq=!1;var t=this.links;if(0<t.length){var e=t[0],n=e.diagram;n=null===n||n.pi&&!this.Fe,this.Fe=!1,e.arrangeBundledLinks(t,n),1===t.length&&(e.Sf=null,t.length=0)}0===t.length&&(t=this.Ds,null!==this&&null!==t.af&&t.af.remove(this),t=this.cv,null!==this&&null!==t.af&&t.af.remove(this))}},dd.className="LinkBundle",fd.prototype.initialize=function(t){if(!(0>=t.width||0>=t.height)){var e=t.y,n=t.x+t.width,i=t.y+t.height;if(this.Nd=Math.floor((t.x-this.rc)/this.rc)*this.rc,this.Od=Math.floor((e-this.sc)/this.sc)*this.sc,this.En=Math.ceil((n+2*this.rc)/this.rc)*this.rc,this.Fn=Math.ceil((i+2*this.sc)/this.sc)*this.sc,t=1+(0|Math.ceil((this.En-this.Nd)/this.rc)),e=1+(0|Math.ceil((this.Fn-this.Od)/this.sc)),null===this.ac||this.di<t-1||this.ei<e-1){for(n=[],i=0;i<=t;i++)n[i]=new Uint32Array(e);this.ac=n,this.di=t-1,this.ei=e-1}if(t=Cd,null!==this.ac)for(e=0;e<=this.di;e++)if((n=this.ac[e]).fill)n.fill(t);else for(i=0;i<=this.ei;i++)n[i]=t}},fd.prototype.Yj=function(t,e,n,i){if(t>this.En||t+n<this.Nd||e>this.Fn||e+i<this.Od)return!0;t=(t-this.Nd)/this.rc|0,e=(e-this.Od)/this.sc|0,n=Math.max(0,n)/this.rc+1|0;var r=Math.max(0,i)/this.sc+1|0;if(0>t&&(n+=t,t=0),0>e&&(r+=e,e=0),0>n||0>r)return!0;for(i=0|Math.min(t+n-1,this.di),n=0|Math.min(e+r-1,this.ei);t<=i;t++){r=this.ac[t];for(var o=e;o<=n;o++)if(r[o]===Sd)return!1}return!0},d.Object.defineProperties(fd.prototype,{bounds:{get:function(){return new Bt(this.Nd,this.Od,this.En-this.Nd,this.Fn-this.Od)}},Ho:{get:function(){return this.rc},set:function(t){0<t&&t!==this.rc&&(this.rc=t,this.initialize(this.bounds))}},Go:{get:function(){return this.sc},set:function(t){0<t&&t!==this.sc&&(this.sc=t,this.initialize(this.bounds))}}});var Sd=0,Pd=1,kd=999999,Cd=kd+1,Ad=kd+2;function Md(){$(this),this.port=this.node=null,this.pe=[],this.ap=!1}function Ed(t,e,n,i){switch(e=e.offsetY){case 8:return 90;case 2:return 180;case 1:return 270;case 4:return 0}switch(e){case 9:return 180<n?270:90;case 6:return 90<n&&270>=n?180:0}switch(t=180*Math.atan2(t.height,t.width)/Math.PI,e){case 3:return n>t&&n<=180+t?180:270;case 5:return n>180-t&&n<=360-t?270:0;case 12:return n>t&&n<=180+t?90:0;case 10:return n>180-t&&n<=360-t?180:90;case 7:return 90<n&&n<=180+t?180:n>180+t&&n<=360-t?270:0;case 13:return 180<n&&n<=360-t?270:n>t&&180>=n?90:0;case 14:return n>t&&n<=180-t?90:n>180-t&&270>=n?180:0;case 11:return n>180-t&&n<=180+t?180:n>180+t?270:90}return i&&15!==e&&(0>(n-=15)&&(n+=360)),n>t&&n<180-t?90:n>=180-t&&n<=180+t?180:n>180+t&&n<360-t?270:0}function Ld(t,e){var n=t.pe;if(0===n.length){t:if(!t.ap){n=t.ap,t.ap=!0;var i=null,r=t.node,o=r instanceof gh?r:null;if(null===o||o.isSubGraphExpanded)var a=r.isTreeExpanded?r.findLinksConnected(t.port.portId):r.qx();else{if(!o.actualBounds.w()){t.ap=n;break t}a=(i=o).Lu()}o=t.pe.length=0;var s=t.port.ga(te,pt.alloc()),l=t.port.ga(le,pt.alloc());for((r=Bt.allocAt(s.x,s.y,0,0)).Ye(l),pt.free(s),pt.free(l),s=pt.allocAt(r.x+r.width/2,r.y+r.height/2),l=t.port.li(),a=a.iterator;a.next();){var u=a.value;if(u.isVisible()&&u.fromPort!==u.toPort){var c=u.fromPort===t.port||null!==u.fromNode&&u.fromNode.Td(i),h=u.computeSpot(c,t.port);if(h.$c()&&null!==(c=c?u.toPort:u.fromPort)){var d=c.part;if(null!==d){var f=d.findVisibleNode();null!==f&&f!==d&&(c=(d=f).port),c=u.computeOtherPoint(d,c),d=s.ab(c),0>(d-=l)?d+=360:360<=d&&(d-=360),0===(h=Ed(r,h,d,u.isOrthogonal))?(h=4,180<d&&(d-=360)):90===h?(h=8,270<d&&(d-=360)):180===h?h=2:(h=1,90>d&&(d+=360)),void 0===(f=t.pe[o])?(f=new Td(u,d,h),t.pe[o]=f):(f.link=u,f.angle=d,f.Nc=h),f.hv.set(c),o++}}}}for(pt.free(s),t.pe.sort(Md.prototype.j),l=t.pe.length,i=-1,o=s=0;o<l;o++)void 0!==(a=t.pe[o])&&(a.Nc!==i&&(i=a.Nc,s=0),a.Uo=s,s++);for(i=-1,s=0,o=l-1;0<=o;o--)void 0!==(l=t.pe[o])&&(l.Nc!==i&&(i=l.Nc,s=l.Uo+1),l.Gl=s);if(o=t.pe,h=t.port,i=t.node.portSpreading,s=pt.alloc(),l=pt.alloc(),a=pt.alloc(),u=pt.alloc(),h.ga(te,s),h.ga(ne,l),h.ga(le,a),h.ga(ae,u),f=d=c=h=0,i===ph)for(var p=0;p<o.length;p++){var g=o[p];if(null!==g){var m=g.link.computeThickness();switch(g.Nc){case 8:d+=m;break;case 2:f+=m;break;case 1:h+=m;break;default:c+=m}}}var v=p=0,y=1,w=g=0;for(m=0;m<o.length;m++){var b=o[m];if(null!==b){if(p!==b.Nc){switch(p=b.Nc){case 8:var x=a;v=u;break;case 2:x=u,v=s;break;case 1:x=s,v=l;break;default:x=l,v=a}switch(g=v.x-x.x,w=v.y-x.y,p){case 8:d>Math.abs(g)?(y=Math.abs(g)/d,d=Math.abs(g)):y=1;break;case 2:f>Math.abs(w)?(y=Math.abs(w)/f,f=Math.abs(w)):y=1;break;case 1:h>Math.abs(g)?(y=Math.abs(g)/h,h=Math.abs(g)):y=1;break;default:c>Math.abs(w)?(y=Math.abs(w)/c,c=Math.abs(w)):y=1}v=0}var S=b.Zo;if(i===ph){switch(b=b.link.computeThickness(),b*=y,S.set(x),p){case 8:S.x=x.x+g/2+d/2-v-b/2;break;case 2:S.y=x.y+w/2+f/2-v-b/2;break;case 1:S.x=x.x+g/2-h/2+v+b/2;break;default:S.y=x.y+w/2-c/2+v+b/2}v+=b}else{var P=.5;i===fh&&(P=(b.Uo+1)/(b.Gl+1)),S.x=x.x+g*P,S.y=x.y+w*P}}}for(pt.free(s),pt.free(l),pt.free(a),pt.free(u),x=t.pe,o=0;o<x.length;o++)null!==(i=x[o])&&(i.Ju=t.computeEndSegmentLength(i));t.ap=n,Bt.free(r)}n=t.pe}for(t=0;t<n.length;t++)if(null!==(r=n[t])&&r.link===e)return r;return null}function Td(t,e,n){this.link=t,this.angle=e,this.Nc=n,this.hv=new pt,this.Gl=this.Uo=0,this.Zo=new pt,this.Ju=0}function Nd(t){$(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new pt(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,t&&Object.assign(this,t)}function jd(t,e,n,i,r,o,a,s){for(n=n.iterator;n.next();){var l=n.value;i&&!l.isTopLevel||null!==r&&!r(l)||!l.canLayout()||(o&&l instanceof qc?l.isLinkLabel||(l instanceof gh&&null===l.layout?jd(t,e,l.memberParts,!1,r,o,a,s):(Id(l),e.add(l))):a&&l instanceof xh?e.add(l):!s||!l.Zc()||l instanceof qc||(Id(l),e.add(l)))}}function Id(t){var e=t.actualBounds;(0===e.width||0===e.height||isNaN(e.width)||isNaN(e.height))&&t.Va()}function Bd(t){$(this),this.Sc=t,this.wf=new J,this.ye=new J,this.Es=new ft,this.zs=new ft}function Od(t,e){if(null===e)return!1;var n=t.wf.remove(e);return n&&(null!==(e=e.node)&&t.Es.remove(e)),n}function Dd(t,e){if(null!==e){t.ye.add(e);var n=e.link;null!==n&&null===t.Lo(n)&&t.zs.add(n,e),e.network=t}}function Rd(t,e){null!==e&&t.ye.remove(e)&&(null!==(e=e.link)&&t.zs.remove(e))}function Fd(t,e,n){if(null!==n&&n.network!==e){Od(t,n),e.dh(n);for(var i=n.sourceEdges;i.next();){var r=i.value;r.network!==e&&(Rd(t,r),Dd(e,r),Fd(t,e,r.fromVertex))}for(i=n.destinationEdges;i.next();)(n=i.value).network!==e&&(Rd(t,n),Dd(e,n),Fd(t,e,n.toVertex))}}function zd(t){$(this),this.ob=t,this.j=new Bt(0,0,10,10).freeze(),this.o=new pt(5,5).freeze(),this.Sh=this.ub=null,this.tg=new K,this.mg=new K}function Gd(t,e){return t=t.Sh,e=e.Sh,t?e?(t=t.text)<(e=e.text)?-1:t>e?1:0:1:null!==e?-1:0}function Ud(t){$(this),this.nb=t,this.qd=this.kd=this.$k=this.ub=null}function Hd(t){Nd.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new Tt(NaN,NaN).freeze(),this.tf=new Tt(10,10).freeze(),this.Jb=Wd,this.Rb=Vd,this.nd=Kd,this.hd=_d,t&&Object.assign(this,t)}function _d(t,e){return(t=t.text)<(e=e.text)?-1:t>e?1:0}fd.className="PositionArray",Md.prototype.toString=function(){for(var t=this.pe,e=this.node.toString()+" "+t.length.toString()+":",n=0;n<t.length;n++){var i=t[n];null!==i&&(e+="\n "+i.toString())}return e},Md.prototype.Sl=function(){this.pe.length=0},Md.prototype.j=function(t,e){return t===e?0:null===t?-1:null===e?1:t.Nc<e.Nc?-1:t.Nc>e.Nc?1:t.angle<e.angle?-1:t.angle>e.angle?1:0},Md.prototype.computeEndSegmentLength=function(t){var e=t.link,n=e.computeEndSegmentLength(this.node,this.port,$t,e.fromPort===this.port),i=t.Uo;if(0>i)return n;var r=t.Gl;if(1>=r||!e.isOrthogonal)return n;e=t.hv;var o=t.Zo;return 2!==t.Nc&&8!==t.Nc||(i=r-1-i),((t=2===t.Nc||4===t.Nc)?e.y<o.y:e.x<o.x)?n+8*i:(t?e.y===o.y:e.x===o.x)?n:n+8*(r-1-i)},Md.className="Knot",Td.prototype.toString=function(){return this.link.toString()+" "+this.angle.toString()+" "+this.Nc.toString()+":"+this.Uo.toString()+"/"+this.Gl.toString()+" "+this.Zo.toString()+" "+this.Ju.toString()+" "+this.hv.toString()},Td.className="LinkInfo",Nd.prototype.cloneProtected=function(t){t.sn=this.sn,t.Gh=this.Gh,t.yn=this.yn,t.Am.assign(this.Am),t.vn=this.vn,t.un=this.un,t.Em=this.Em,t.xn=!0},Nd.prototype.copy=function(){var t=new this.constructor;return this.cloneProtected(t),t},Nd.prototype.qb=function(){},Nd.prototype.toString=function(){var t=j(this.constructor);return t+="(",null!==this.group&&(t+=" in "+this.group),null!==this.diagram&&(t+=" for "+this.diagram),t+")"},Nd.prototype.C=function(){if(this.isValidLayout){var t=this.diagram;if(null!==t&&!t.undoManager.isUndoingRedoing){var e=t.animationManager;!e.isTicking&&(e.defaultAnimation.isAnimating&&e.Cc(),this.isOngoing&&t.pi||this.isInitial&&!t.pi)&&(this.isValidLayout=!1,t.$b())}}},Nd.prototype.createNetwork=function(){return new Bd(this)},Nd.prototype.makeNetwork=function(t){var e=this.createNetwork();return t instanceof Mr?(e.lg(t.nodes,!0),e.lg(t.links,!0)):t instanceof gh?e.lg(t.memberParts):e.lg(t.iterator),e},Nd.prototype.updateParts=function(){this.isValidLayout=!0;var t=this.diagram;if(null===t&&null!==this.network)for(var e=this.network.vertexes.iterator;e.next();){var n=e.value.node;if(null!==n&&null!==(t=n.diagram))break}try{null!==t&&t.Ea("Layout"),this.commitLayout()}finally{null!==t&&t.eb("Layout")}},Nd.prototype.commitLayout=function(){if(null!==this.network){for(var t=this.network.vertexes.iterator;t.next();)t.value.commit();if(this.isRouting)for(t=this.network.edges.iterator;t.next();)t.value.commit()}},Nd.prototype.doLayout=function(t){var e=new J;t instanceof Mr?(jd(this,e,t.nodes,!0,this.rh,!0,!1,!0),jd(this,e,t.parts,!0,this.rh,!0,!1,!0)):t instanceof gh?jd(this,e,t.memberParts,!1,this.rh,!0,!1,!0):e.addAll(t.iterator),0<e.count&&(null!==(t=this.diagram)&&t.Ea("Layout"),this.doMinimalNoNetworkLayout(e),null!==t&&t.eb("Layout")),this.isValidLayout=!0},Nd.prototype.doMinimalNoNetworkLayout=function(t){var e=Math.ceil(Math.sqrt(t.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var n=this.arrangementOrigin.x,i=n,r=this.arrangementOrigin.y,o=0,a=0;for(t=t.iterator;t.next();){var s=t.value;Id(s);var l=s.measuredBounds,u=l.width;l=l.height,s.moveTo(i,r),s instanceof gh&&(s.rh=!1),i+=Math.max(u,50)+20,a=Math.max(a,Math.max(l,50)),o>=e-1?(o=0,i=n,r+=a+20,a=0):o++}},Nd.prototype.doMinimalNetworkLayout=function(){var t=Math.ceil(Math.sqrt(this.network.vertexes.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);for(var e=this.arrangementOrigin.x,n=e,i=this.arrangementOrigin.y,r=0,o=0,a=this.network.vertexes.iterator;a.next();){var s=a.value.node;if(!(null===s||s instanceof xh)&&(Id(s),this.rh(s))){var l=s.measuredBounds,u=l.width;l=l.height,s.moveTo(n,i),s instanceof gh&&(s.rh=!1),n+=Math.max(u,50)+20,o=Math.max(o,Math.max(l,50)),r>=t-1?(r=0,n=e,i+=o+20,o=0):r++}}},Nd.prototype.rh=function(t){return!(t.location.w()&&!(t instanceof gh&&t.rh))},Nd.prototype.ni=function(t,e){var n=this.boundsComputation;return null!==n?(e||(e=new Bt),n(t,this,e)):e?(e.set(t.actualBounds),e):t.actualBounds},Nd.prototype.ex=function(t){var e=new J;return t instanceof Mr?(jd(this,e,t.nodes,!0,null,!0,!0,!0),jd(this,e,t.links,!0,null,!0,!0,!0),jd(this,e,t.parts,!0,null,!0,!0,!0)):jd(this,e,t instanceof gh?t.memberParts:t.iterator,!1,null,!0,!0,!0),e},Nd.prototype.initialOrigin=function(t){var e=this.group;if(null!==e){var n=e.position.copy();return(isNaN(n.x)||isNaN(n.y))&&n.set(t),null!==(e=e.placeholder)&&(n=e.ga(te),(isNaN(n.x)||isNaN(n.y))&&n.set(t),t=e.padding,n.x+=t.left,n.y+=t.top),n}return t},d.Object.defineProperties(Nd.prototype,{diagram:{get:function(){return this.H},set:function(t){this.H=t}},group:{get:function(){return this.o},set:function(t){this.o!==t&&(this.o=t,null!==t&&(this.H=t.diagram))}},isOngoing:{get:function(){return this.sn},set:function(t){this.sn!==t&&(this.sn=t)}},isInitial:{get:function(){return this.Gh},set:function(t){this.Gh=t,t||(this.xn=!0)}},isViewportSized:{get:function(){return this.yn},set:function(t){this.yn!==t&&(this.yn=t)&&this.C()}},isRouting:{get:function(){return this.vn},set:function(t){this.vn!==t&&(this.vn=t)}},isRealtime:{get:function(){return this.un},set:function(t){this.un!==t&&(this.un=t)}},isValidLayout:{get:function(){return this.xn},set:function(t){this.xn!==t&&(this.xn=t,t||null!==(t=this.diagram)&&(t.xh=!0))}},network:{get:function(){return this.j},set:function(t){this.j!==t&&(this.j=t,null!==t&&(t.layout=this))}},boundsComputation:{get:function(){return this.Em},set:function(t){this.Em!==t&&(this.Em=t,this.C())}},arrangementOrigin:{get:function(){return this.Am},set:function(t){this.Am.D(t)||(this.Am.assign(t),this.C())}}}),Nd.prototype.collectParts=Nd.prototype.ex,Nd.prototype.getLayoutBounds=Nd.prototype.ni,Nd.prototype.invalidateLayout=Nd.prototype.C,Nd.className="Layout",Bd.prototype.clear=function(){if(this.wf)for(var t=this.wf.iterator;t.next();)t.value.clear();if(this.ye)for(t=this.ye.iterator;t.next();)t.value.clear();this.wf=new J,this.ye=new J,this.Es=new ft,this.zs=new ft},Bd.prototype.toString=function(t){void 0===t&&(t=0);var e="LayoutNetwork"+(null!==this.layout?"("+this.layout.toString()+")":"");if(0>=t)return e;if(e+=" vertexes: "+this.wf.count+" edges: "+this.ye.count,1<t){for(var n=this.wf.iterator;n.next();)e+="\n "+n.value.toString(t-1);for(n=this.ye.iterator;n.next();)e+="\n "+n.value.toString(t-1)}return e},Bd.prototype.createVertex=function(){return new zd(this)},Bd.prototype.createEdge=function(){return new Ud(this)},Bd.prototype.lg=function(t,e,n){if(null!==t){for(void 0===e&&(e=!1),void 0===n&&(n=null),null===n&&(n=function(t){if(t instanceof qc)return!t.isLinkLabel;if(t instanceof xh){var e=t.fromNode;return null!==e&&!e.isLinkLabel&&(null!==(t=t.toNode)&&!t.isLinkLabel)}return!1}),t=t.iterator;t.next();){var i=t.value;if(i instanceof qc&&(!e||i.isTopLevel)&&i.canLayout()&&n(i))if(i instanceof gh&&null===i.layout)this.lg(i.memberParts,!1);else if(null===this.ki(i)){var r=this.createVertex();r.node=i,this.dh(r)}}for(t.reset();t.next();)if((i=t.value)instanceof xh&&(!e||i.isTopLevel)&&i.canLayout()&&n(i)&&null===this.Lo(i)){var o=i.fromNode;r=i.toNode,null!==o&&null!==r&&o!==r&&(o=this.findGroupVertex(o),r=this.findGroupVertex(r),null!==o&&null!==r&&this.Zj(o,r,i))}}},Bd.prototype.findGroupVertex=function(t){if(null===t)return null;var e=t.findVisibleNode();if(null===e)return null;if(null!==(t=this.ki(e)))return t;for(e=e.containingGroup;null!==e;){if(null!==(t=this.ki(e)))return t;e=e.containingGroup}return null},(e=Bd.prototype).dh=function(t){if(null!==t){this.wf.add(t);var e=t.node;null!==e&&this.Es.add(e,t),t.network=this}},e.Bl=function(t){if(null===t)return null;var e=this.ki(t);return null===e&&((e=this.createVertex()).node=t,this.dh(e)),e},e.Iu=function(t){if(null!==t&&Od(this,t)){for(var e=t.tg,n=e.count-1;0<=n;n--){var i=e.M(n);this.Mj(i)}for(t=(e=t.mg).count-1;0<=t;t--)n=e.M(t),this.Mj(n)}},e.Zy=function(t){null!==t&&(null!==(t=this.ki(t))&&this.Iu(t))},e.ki=function(t){return null===t?null:this.Es.I(t)},e.Bo=function(t){if(null!==t){Dd(this,t);var e=t.toVertex;null!==e&&e.Cl(t),null!==(e=t.fromVertex)&&e.zl(t)}},e.Dy=function(t){if(null===t)return null;var e=t.fromNode,n=t.toNode,i=this.Lo(t);return null===i?((i=this.createEdge()).link=t,null!==e&&(i.fromVertex=this.Bl(e)),null!==n&&(i.toVertex=this.Bl(n)),this.Bo(i)):(i.fromVertex=null!==e?this.Bl(e):null,i.toVertex=null!==n?this.Bl(n):null),i},e.Mj=function(t){if(null!==t){var e=t.toVertex;null!==e&&e.Kl(t),null!==(e=t.fromVertex)&&e.Jl(t),Rd(this,t)}},e.Yy=function(t){null!==t&&(null!==(t=this.Lo(t))&&this.Mj(t))},e.Lo=function(t){return null===t?null:this.zs.I(t)},e.Zj=function(t,e,n){if(null===t||null===e)return null;if(t.network===this&&e.network===this){var i=this.createEdge();return i.link=n,i.fromVertex=t,i.toVertex=e,this.Bo(i),i}return null},e.gm=function(t){if(null!==t){var e=t.fromVertex,n=t.toVertex;null!==e&&null!==n&&(e.Jl(t),n.Kl(t),t.gm(),e.Cl(t),n.zl(t))}},e.Ko=function(){for(var t=T(),e=this.ye.iterator;e.next();){var n=e.value;n.fromVertex===n.toVertex&&t.push(n)}for(e=t.length,n=0;n<e;n++)this.Mj(t[n]);N(t)},Bd.prototype.deleteArtificialVertexes=function(){for(var t=T(),e=this.wf.iterator;e.next();){var n=e.value;null===n.node&&null===n.data&&t.push(n)}for(n=t.length,e=0;e<n;e++)this.Iu(t[e]);for(e=T(),n=this.ye.iterator;n.next();){var i=n.value;null===i.link&&null===i.data&&e.push(i)}for(n=e.length,i=0;i<n;i++)this.Mj(e[i]);N(t),N(e)},Bd.prototype.Zx=function(t){void 0===t&&(t=!0),t&&(this.deleteArtificialVertexes(),function(t){for(var e=T(),n=t.ye.iterator;n.next();){var i=n.value;null!==i.fromVertex&&null!==i.toVertex||e.push(i)}for(n=e.length,i=0;i<n;i++)t.Mj(e[i]);N(e)}(this),this.Ko()),t=new K;for(var e=!0;e;){e=!1;for(var n=this.wf.iterator;n.next();){var i=n.value;if(0<i.tg.count||0<i.mg.count){e=this.layout.createNetwork(),t.add(e),Fd(this,e,i),e=!0;break}}}return t.sort((function(t,e){return null===t||null===e||t===e?0:e.vertexes.count-t.vertexes.count})),t},Bd.prototype.dz=function(){for(var t=new J,e=this.wf.iterator;e.next();)t.add(e.value.node);for(e=this.ye.iterator;e.next();)t.add(e.value.link);return t},d.Object.defineProperties(Bd.prototype,{layout:{get:function(){return this.Sc},set:function(t){null!==t&&(this.Sc=t)}},vertexes:{get:function(){return this.wf}},edges:{get:function(){return this.ye}}}),Bd.prototype.findAllParts=Bd.prototype.dz,Bd.prototype.splitIntoSubNetworks=Bd.prototype.Zx,Bd.prototype.deleteSelfEdges=Bd.prototype.Ko,Bd.prototype.reverseEdge=Bd.prototype.gm,Bd.prototype.linkVertexes=Bd.prototype.Zj,Bd.prototype.findEdge=Bd.prototype.Lo,Bd.prototype.deleteLink=Bd.prototype.Yy,Bd.prototype.deleteEdge=Bd.prototype.Mj,Bd.prototype.addLink=Bd.prototype.Dy,Bd.prototype.addEdge=Bd.prototype.Bo,Bd.prototype.findVertex=Bd.prototype.ki,Bd.prototype.deleteNode=Bd.prototype.Zy,Bd.prototype.deleteVertex=Bd.prototype.Iu,Bd.prototype.addNode=Bd.prototype.Bl,Bd.prototype.addVertex=Bd.prototype.dh,Bd.prototype.addParts=Bd.prototype.lg,Bd.className="LayoutNetwork",zd.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new K,this.mg=new K},zd.prototype.toString=function(t){void 0===t&&(t=0);var e="LayoutVertex#"+et(this);if(0<t&&(e+=null!==this.node?"("+this.node.toString()+")":"",1<t)){t="";for(var n=!0,i=this.tg.iterator;i.next();){var r=i.value;n?n=!1:t+=",",t+=r.toString(0)}for(r="",n=!0,i=this.mg.iterator;i.next();){n?n=!1:r+=",",r+=i.value.toString(0)}e+=" sources: "+t+" destinations: "+r}return e},zd.prototype.commit=function(){var t=this.ub;if(null!==t){var e=this.bounds,n=t.bounds;C(n)?(n.x=e.x,n.y=e.y,n.width=e.width,n.height=e.height):t.bounds=e.copy()}else if(null!==(t=this.node)){if(e=this.bounds,!(t instanceof gh)){n=Bt.alloc(),t.Va();var i=this.network.layout.ni(t,n),r=t.locationObject.ga(re);if(i.w()&&r.w())return t.moveTo(e.x+this.focusX-(r.x-i.x),e.y+this.focusY-(r.y-i.y)),void Bt.free(n);Bt.free(n)}t.moveTo(e.x,e.y)}},zd.prototype.Cl=function(t){null!==t&&(this.tg.contains(t)||this.tg.add(t))},zd.prototype.Kl=function(t){null!==t&&this.tg.remove(t)},zd.prototype.zl=function(t){null!==t&&(this.mg.contains(t)||this.mg.add(t))},zd.prototype.Jl=function(t){null!==t&&this.mg.remove(t)},d.Object.defineProperties(zd.prototype,{sourceEdgesArrayAccess:{get:function(){return this.tg._dataArray}},destinationEdgesArrayAccess:{get:function(){return this.mg._dataArray}},data:{get:function(){return this.ub},set:function(t){if(this.ub=t,null!==t&&t.bounds){var e=t.bounds;t=e.x;var n=e.y,i=e.width;e=e.height,this.o.h(i/2,e/2),this.j.h(t,n,i,e)}}},node:{get:function(){return this.Sh},set:function(t){if(this.Sh!==t){this.Sh=t,t.Va();var e=this.network.layout,n=Bt.alloc(),i=e.ni(t,n);e=i.x;var r=i.y,o=i.width;if(i=i.height,isNaN(e)&&(e=0),isNaN(r)&&(r=0),this.j.h(e,r,o,i),Bt.free(n),!(t instanceof gh)&&(t=t.locationObject.ga(re)).w())return void this.o.h(t.x-e,t.y-r);this.o.h(o/2,i/2)}}},bounds:{get:function(){return this.j},set:function(t){this.j.D(t)||this.j.assign(t)}},focus:{get:function(){return this.o},set:function(t){this.o.D(t)||this.o.assign(t)}},centerX:{get:function(){return this.j.x+this.o.x},set:function(t){var e=this.j;e.x+this.o.x!==t&&(e.ka(),e.x=t-this.o.x,e.freeze())}},centerY:{get:function(){return this.j.y+this.o.y},set:function(t){var e=this.j;e.y+this.o.y!==t&&(e.ka(),e.y=t-this.o.y,e.freeze())}},focusX:{get:function(){return this.o.x},set:function(t){var e=this.o;e.x!==t&&(e.ka(),e.x=t,e.freeze())}},focusY:{get:function(){return this.o.y},set:function(t){var e=this.o;e.y!==t&&(e.ka(),e.y=t,e.freeze())}},x:{get:function(){return this.j.x},set:function(t){var e=this.j;e.x!==t&&(e.ka(),e.x=t,e.freeze())}},y:{get:function(){return this.j.y},set:function(t){var e=this.j;e.y!==t&&(e.ka(),e.y=t,e.freeze())}},width:{get:function(){return this.j.width},set:function(t){var e=this.j;e.width!==t&&(e.ka(),e.width=t,e.freeze())}},height:{get:function(){return this.j.height},set:function(t){var e=this.j;e.height!==t&&(e.ka(),e.height=t,e.freeze())}},network:{get:function(){return this.ob},set:function(t){this.ob=t}},sourceVertexes:{get:function(){for(var t=new J,e=this.sourceEdges;e.next();)t.add(e.value.fromVertex);return t.iterator}},destinationVertexes:{get:function(){for(var t=new J,e=this.destinationEdges;e.next();)t.add(e.value.toVertex);return t.iterator}},vertexes:{get:function(){for(var t=new J,e=this.sourceEdges;e.next();)t.add(e.value.fromVertex);for(e=this.destinationEdges;e.next();)t.add(e.value.toVertex);return t.iterator}},sourceEdges:{get:function(){return this.tg.iterator}},destinationEdges:{get:function(){return this.mg.iterator}},edges:{get:function(){for(var t=new K,e=this.sourceEdges;e.next();)t.add(e.value);for(e=this.destinationEdges;e.next();)t.add(e.value);return t.iterator}},edgesCount:{get:function(){return this.tg.count+this.mg.count}}}),zd.prototype.deleteDestinationEdge=zd.prototype.Jl,zd.prototype.addDestinationEdge=zd.prototype.zl,zd.prototype.deleteSourceEdge=zd.prototype.Kl,zd.prototype.addSourceEdge=zd.prototype.Cl,zd.className="LayoutVertex",zd.standardComparer=Gd,zd.smartComparer=function(t,e){if(null!==t){if(null!==e){t=t.Sh;var n=e.Sh;if(null!==t){if(null!==n){for(e=t.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),t=n.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),n=0;n<e.length;n++)if(""!==t[n]&&void 0!==t[n]){var i=parseFloat(e[n]),r=parseFloat(t[n]);if(isNaN(i)){if(!isNaN(r))return 1;if(0!==e[n].localeCompare(t[n]))return e[n].localeCompare(t[n])}else{if(isNaN(r))return-1;if(0!=i-r)return i-r}}else if(""!==e[n])return 1;return""!==t[n]&&void 0!==t[n]?-1:0}return 1}return null!==n?-1:0}return 1}return null!==e?-1:0},Ud.prototype.clear=function(){this.qd=this.kd=this.$k=this.ub=null},Ud.prototype.toString=function(t){void 0===t&&(t=0);var e="LayoutEdge#"+et(this);return 0<t&&(e+=null!==this.$k?"("+this.$k.toString()+")":"",1<t&&(e+=" "+(this.kd?this.kd.toString():"null")+" --\x3e "+(this.qd?this.qd.toString():"null"))),e},Ud.prototype.gm=function(){var t=this.kd;this.kd=this.qd,this.qd=t},Ud.prototype.commit=function(){},Ud.prototype.Ax=function(t){return this.qd===t?this.kd:this.kd===t?this.qd:null},d.Object.defineProperties(Ud.prototype,{network:{get:function(){return this.nb},set:function(t){this.nb=t}},data:{get:function(){return this.ub},set:function(t){this.ub!==t&&(this.ub=t)}},link:{get:function(){return this.$k},set:function(t){this.$k!==t&&(this.$k=t)}},fromVertex:{get:function(){return this.kd},set:function(t){this.kd!==t&&(this.kd=t)}},toVertex:{get:function(){return this.qd},set:function(t){this.qd!==t&&(this.qd=t)}}}),Ud.prototype.getOtherVertex=Ud.prototype.Ax,Ud.className="LayoutEdge",h(Hd,Nd),Hd.prototype.cloneProtected=function(t){Nd.prototype.cloneProtected.call(this,t),t.zo=this.zo,t.yo=this.yo,t.yg.assign(this.yg),t.tf.assign(this.tf),t.Jb=this.Jb,t.Rb=this.Rb,t.nd=this.nd,t.hd=this.hd},Hd.prototype.qb=function(t){t.classType===Hd?t===Kd||t===Qd||t===Xd||t===qd?this.sorting=t:t===Vd||t===Yd?this.arrangement=t:t===Wd||t===Zd?this.alignment=t:x("Unknown enum value: "+t):Nd.prototype.qb.call(this,t)},Hd.prototype.doLayout=function(t){this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var e=this.ex(t);t=this.diagram;for(var n=e.copy().iterator;n.next();){var i=n.value;if(!i.ph()||null===i.fromNode&&null===i.toNode){if(i.Va(),i instanceof gh)for(i=i.memberParts;i.next();)e.remove(i.value)}else e.remove(i)}var r=e.Fa();if(0!==r.length){switch(this.sorting){case qd:r.reverse();break;case Kd:r.sort(this.comparer);break;case Qd:r.sort(this.comparer),r.reverse()}var o=this.wrappingColumn;isNaN(o)&&(o=0);var a=this.wrappingWidth;switch(isNaN(a)&&null!==t?(e=t.padding,a=Math.max(t.viewportBounds.width-e.left-e.right,0)):a=Math.max(this.wrappingWidth,0),0>=o&&0>=a&&(o=1),e=this.spacing.width,isFinite(e)||(e=0),n=this.spacing.height,isFinite(n)||(n=0),null!==t&&t.Ea("Layout"),i=[],this.alignment){case Zd:var s=e,l=n,u=Bt.alloc(),c=Math.max(this.cellSize.width,1);if(!isFinite(c))for(var h=c=0;h<r.length;h++){var d=this.ni(r[h],u);c=Math.max(c,d.width)}if(c=Math.max(c+s,1),h=Math.max(this.cellSize.height,1),!isFinite(h))for(d=h=0;d<r.length;d++){var f=this.ni(r[d],u);h=Math.max(h,f.height)}h=Math.max(h+l,1),d=this.arrangement;for(var p=f=this.arrangementOrigin.x,g=this.arrangementOrigin.y,m=0,v=0,y=0;y<r.length;y++){var w=r[y],b=this.ni(w,u),x=Math.ceil((b.width+s)/c)*c,S=Math.ceil((b.height+l)/h)*h;if(d===Yd)var P=Math.abs(p-b.width);else P=p+b.width;if((0<o&&m>o-1||0<a&&0<m&&P-f>a)&&(i.push(new Bt(0,g,a+s,v)),m=0,p=f,g+=v,v=0),v=Math.max(v,S),d===Yd)b=-b.width;else b=0;if(w.moveTo(p+b,g),d===Yd)p-=x;else p+=x;m++}i.push(new Bt(0,g,a+s,v)),Bt.free(u);break;case Wd:for(l=a,c=o,h=e,d=n,a=Bt.alloc(),f=Math.max(this.cellSize.width,1),o=g=u=0,s=pt.alloc(),p=0;p<r.length;p++)v=r[p],m=this.ni(v,a),v=Mc(v,v.locationObject,v.locationSpot,s),u=Math.max(u,v.x),g=Math.max(g,m.width-v.x),o=Math.max(o,v.y);if((p=this.arrangement)===Yd)u+=h;else g+=h;f=isFinite(f)?Math.max(f+h,1):Math.max(u+g,1);var k=v=this.arrangementOrigin.x;for(y=this.arrangementOrigin.y,g=0,l>=u&&(l-=u),u=w=0,x=Math.max(this.cellSize.height,1),b=o=0,S=!0,m=pt.alloc(),P=0;P<r.length;P++){var C=r[P],A=this.ni(C,a),M=Mc(C,C.locationObject,C.locationSpot,s);if(0<g)if(p===Yd)k=(k-v-(A.width-M.x))/f,k=(k=_e.$(Math.round(k),k)?Math.round(k):Math.floor(k))*f+v;else k=(k-v+M.x)/f,k=(k=_e.$(Math.round(k),k)?Math.round(k):Math.ceil(k))*f+v;else if(p===Yd)w=k+M.x+A.width;else w=k-M.x;if(p===Yd)var E=-(k+M.x)+w;else E=k+A.width-M.x-w;if(0<c&&g>c-1||0<l&&0<g&&E>l){for(i.push(new Bt(0,S?y-o:y,l+h,b+o+d)),k=0;k<g&&P!==g;k++){var L=Mc(E=r[P-g+k],E.locationObject,E.locationSpot,m);E.moveTo(E.position.x,E.position.y+o-L.y)}b+=d,y=S?y+b:y+(b+o),g=b=o=0,k=v,S=!1}if(k===v&&(u=p===Yd?Math.max(u,A.width-M.x):Math.min(u,-M.x)),o=Math.max(o,M.y),b=Math.max(b,A.height-M.y),isFinite(x)&&(b=Math.max(b,Math.max(A.height,x)-M.y)),S?C.moveTo(k-M.x,y-M.y):C.moveTo(k-M.x,y),p===Yd)k-=M.x+h;else k+=A.width-M.x+h;g++}if(i.push(new Bt(0,y,l+h,(S?b:b+o)+d)),r.length!==g)for(l=0;l<g;l++)h=Mc(c=r[r.length-g+l],c.locationObject,c.locationSpot,s),c.moveTo(c.position.x,c.position.y+o-h.y);if(pt.free(s),pt.free(m),p===Yd)for(r=0;r<i.length;r++)(o=i[r]).width+=u,o.x-=u;else for(r=0;r<i.length;r++)(o=i[r]).x>u&&(o.width+=o.x-u,o.x=u);Bt.free(a)}for(s=o=a=r=0;s<i.length;s++)l=i[s],r=Math.min(r,l.x),a=Math.min(a,l.y),o=Math.max(o,l.x+l.width);this.arrangement===Yd?this.commitLayers(i,new pt(r+e/2-(o+r),a-n/2)):this.commitLayers(i,new pt(r-e/2,a-n/2)),null!==t&&t.eb("Layout"),this.isValidLayout=!0}},Hd.prototype.commitLayers=function(){},d.Object.defineProperties(Hd.prototype,{wrappingWidth:{get:function(){return this.zo},set:function(t){this.zo!==t&&(0<t||isNaN(t))&&(this.zo=t,this.isViewportSized=isNaN(t),this.C())}},wrappingColumn:{get:function(){return this.yo},set:function(t){this.yo!==t&&(0<t||isNaN(t))&&(this.yo=t,this.C())}},cellSize:{get:function(){return this.yg},set:function(t){this.yg.D(t)||(this.yg.assign(t),this.C())}},spacing:{get:function(){return this.tf},set:function(t){this.tf.D(t)||(this.tf.assign(t),this.C())}},alignment:{get:function(){return this.Jb},set:function(t){this.Jb===t||t!==Wd&&t!==Zd||(this.Jb=t,this.C())}},arrangement:{get:function(){return this.Rb},set:function(t){this.Rb===t||t!==Vd&&t!==Yd||(this.Rb=t,this.C())}},sorting:{get:function(){return this.nd},set:function(t){this.nd===t||t!==Xd&&t!==qd&&t!==Kd&&t!==Qd||(this.nd=t,this.C())}},comparer:{get:function(){return this.hd},set:function(t){this.hd!==t&&(this.hd=t,this.C())}}});var Zd=new G(Hd,"Position",0),Wd=new G(Hd,"Location",1),Vd=new G(Hd,"LeftToRight",2),Yd=new G(Hd,"RightToLeft",3),Xd=new G(Hd,"Forward",4),qd=new G(Hd,"Reverse",5),Kd=new G(Hd,"Ascending",6),Qd=new G(Hd,"Descending",7);function Jd(){this.On=new J,this.Dn=new J,this.Pa=new J,this.cf=new ft,this.bf=new ft,this.aj=new ft,this.H=null,this.tp=!1}function $d(t,e,n){if(null!=e&&!t.diagram.undoManager.isUndoingRedoing&&!t.cf.contains(e)){void 0===n&&(n=!0);t:{if(null!=e&&!t.H.undoManager.isUndoingRedoing&&!t.cf.contains(e)){var i=t.Ro(e),r=tf(t,e,i);if(null!==r&&(Xl(r),null!==(r=r.copy()))){var o=t.diagram.skipsModelSourceBindings;t.diagram.skipsModelSourceBindings=!0,r.Tf=i,r.ub=e,t.tp&&(r.Jg="Tool"),t.diagram.add(r),r.ub=null,r.data=e,t.diagram.skipsModelSourceBindings=o,i=r;break t}}i=null}null!==i&&n&&t.resolveReferencesForData(e)}}function tf(t,e,n){var i=(t=t.H).model;return i.Xj()&&i.Yu(e)?null===(e=t.groupTemplateMap.I(n))&&(null===(e=t.groupTemplateMap.I(""))&&(lf||(lf=!0,k('No Group template found for category "'+n+'"'),k(" Using default group template")),e=t.ly)):null===(e=t.nodeTemplateMap.I(n))&&(null===(e=t.nodeTemplateMap.I(""))&&(sf||(sf=!0,k('No Node template found for category "'+n+'"'),k(" Using default node template")),e=t.ny)),e}function ef(t,e,n){for(var i in n){var r=e[i],o=n[i];if(A(o)){if(!A(r)||r.length<o.length)return!1;for(var a=0;a<r.length;a++){var s=o[a];if(void 0!==s&&!nf(t,r[a],s))return!1}}else if(!nf(t,r,o))return!1}return!0}function nf(t,e,n){if("function"==typeof n){if(!n(e))return!1}else if(n instanceof RegExp){if(!e||!n.test(e.toString()))return!1}else if(C(e)&&C(n)){if(!ef(t,e,n))return!1}else if(e!==n)return!1;return!0}function rf(t,e){var n=e.Hh;if(A(n)){var i=t.aj.I(n);if(null===i)(i=[]).push(e),t.aj.add(n,i);else{for(t=0;t<i.length;t++)if(i[t]===e)return;i.push(e)}}}function of(t,e,n){Bl(e,(function(t){for(var e=(t=t.O.s).length,i=0;i<e;i++)xo(n,t[i])}));var i=e.Hh;if(A(i)){var r=t.aj.I(i);if(null!==r)for(var o=0;o<r.length;o++)if(r[o]===e){r.splice(o,1),0===r.length&&t.aj.remove(i);break}}}function af(t,e,n,i,r){if(null===e||r&&!e.canCopy())return null;if(i.contains(e))return i.I(e);var o=t.copyPartData(e,n);if(!(o instanceof Sc))return null;if(o.isSelected=!1,o.isHighlighted=!1,i.add(e,o),e instanceof qc){for(var a=e.linksConnected;a.next();){var s=a.value;if(s.fromNode===e){var l=i.I(s);null!==l&&(l.fromNode=o)}s.toNode===e&&(null!==(s=i.I(s))&&(s.toNode=o))}if(e instanceof gh&&o instanceof gh)for(e=e.memberParts;e.next();)(a=af(t,e.value,n,i,r))instanceof xh||null===a||(a.containingGroup=o)}else if(e instanceof xh&&o instanceof xh)for(null!==(a=e.fromNode)&&(null!==(a=i.I(a))&&(o.fromNode=a)),null!==(a=e.toNode)&&(null!==(a=i.I(a))&&(o.toNode=a)),e=e.labelNodes;e.next();)null!==(a=af(t,e.value,n,i,r))&&a instanceof qc&&(a.labeledLink=o);return o}Hd.className="GridLayout",Hd.standardComparer=_d,Hd.smartComparer=function(t,e){if(null!==t){if(null!==e){t=t.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),e=e.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/);for(var n=0;n<t.length;n++)if(""!==e[n]&&void 0!==e[n]){var i=parseFloat(t[n]),r=parseFloat(e[n]);if(isNaN(i)){if(!isNaN(r))return 1;if(0!==t[n].localeCompare(e[n]))return t[n].localeCompare(e[n])}else{if(isNaN(r))return-1;if(0!=i-r)return i-r}}else if(""!==t[n])return 1;return""!==e[n]&&void 0!==e[n]?-1:0}return 1}return null!==e?-1:0},Hd.Position=Zd,Hd.Location=Wd,Hd.LeftToRight=Vd,Hd.RightToLeft=Yd,Hd.Forward=Xd,Hd.Reverse=qd,Hd.Ascending=Kd,Hd.Descending=Qd,(e=Jd.prototype).clear=function(){this.On.clear(),this.Dn.clear(),this.Pa.clear(),this.cf.clear(),this.bf.clear(),this.aj.clear()},e.Xe=function(t){this.H=t},e.oi=function(t){if(t instanceof qc){if(this.On.add(t),t instanceof gh){var e=t.containingGroup;null===e?this.H.ai.add(t):e.gl.add(t),null!==(e=t.layout)&&(e.diagram=this.H)}}else t instanceof xh?this.Dn.add(t):t instanceof Yc||this.Pa.add(t);null===(e=t.data)||t instanceof Yc||(t instanceof xh?this.bf.add(e,t):this.cf.add(e,t))},e.pc=function(t){if(t.Ej(),t instanceof qc){if(this.On.remove(t),t instanceof gh){var e=t.containingGroup;null===e?this.H.ai.remove(t):e.gl.remove(t),null!==(e=t.layout)&&(e.diagram=null)}}else t instanceof xh?this.Dn.remove(t):t instanceof Yc||this.Pa.remove(t);null===(e=t.data)||t instanceof Yc||(t instanceof xh?this.bf.remove(e):this.cf.remove(e))},e.Wd=function(){var t=this.H;if(null!==t){for(var e=t.nodeTemplateMap.iterator;e.next();){var n=e.value,i=e.key;(!n.Zc()||n instanceof gh)&&x('Invalid node template in Diagram.nodeTemplateMap: template for "'+i+'" must be a Node or a simple Part, not a Group or Link: '+n)}for(e=t.groupTemplateMap.iterator;e.next();)n=e.value,i=e.key,n instanceof gh||x('Invalid group template in Diagram.groupTemplateMap: template for "'+i+'" must be a Group, not a normal Node or Link: '+n);for(e=t.linkTemplateMap.iterator;e.next();)n=e.value,i=e.key,n instanceof xh||x('Invalid link template in Diagram.linkTemplateMap: template for "'+i+'" must be a Link, not a normal Node or simple Part: '+n);for(e=T(),n=t.selection.iterator;n.next();)(i=n.value.data)&&e.push(i);for(n=T(),t=t.highlighteds.iterator;t.next();)(i=t.value.data)&&n.push(i);for(t=T(),i=this.nodes.iterator;i.next();){var r=i.value;null!==r.data&&(t.push(r.data),t.push(r.location))}for(i=this.links.iterator;i.next();)null!==(r=i.value).data&&(t.push(r.data),t.push(r.location));for(i=this.parts.iterator;i.next();)null!==(r=i.value).data&&(t.push(r.data),t.push(r.location));for(this.removeAllModeledParts(),this.addAllModeledParts(),i=0;i<e.length;i++)null!==(r=this.Lc(e[i]))&&(r.isSelected=!0);for(i=0;i<n.length;i++)null!==(r=this.Lc(n[i]))&&(r.isHighlighted=!0);for(i=0;i<t.length;i+=2)null!==(r=this.Lc(t[i]))&&(r.location=t[i+1]);N(e),N(n),N(t)}},Jd.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},Jd.prototype.addModeledParts=function(t,e){var n=this,i=this.diagram.model;t.forEach((function(t){i.lb(t)&&$d(n,t,!1)})),t.forEach((function(t){i.lb(t)&&n.resolveReferencesForData(t)})),!1!==e&&ko(this.diagram,!1)},Jd.prototype.insertLink=function(){return null},Jd.prototype.resolveReferencesForData=function(){},Jd.prototype.Ro=function(t){return this.H.model.Ro(t)},Jd.prototype.getLinkCategoryForData=function(){return""},Jd.prototype.setLinkCategoryForData=function(){},Jd.prototype.setFromNodeForLink=function(){},Jd.prototype.setToNodeForLink=function(){},Jd.prototype.findLinkTemplateForCategory=function(t){var e=this.H,n=e.linkTemplateMap.I(t);return null===n&&(null===(n=e.linkTemplateMap.I(""))&&(uf||(uf=!0,k('No Link template found for category "'+t+'"'),k(" Using default link template")),n=e.my)),n},Jd.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},Jd.prototype.Gs=function(t){var e=this;t.forEach((function(t){e.ip(t)}))},Jd.prototype.ip=function(t){null!==(t=this.Lc(t))&&(ao(this.diagram,t,!1),this.unresolveReferencesForPart(t))},Jd.prototype.unresolveReferencesForPart=function(){},Jd.prototype.removeDataForLink=function(){},Jd.prototype.findPartForKey=function(t){return null==t?null:null!==(t=this.H.model.hc(t))?this.cf.I(t):null},Jd.prototype.Vb=function(t){return null==t||null===(t=this.H.model.hc(t))?null:(t=this.cf.I(t))instanceof qc?t:null},Jd.prototype.findLinkForKey=function(){return null},(e=Jd.prototype).Lc=function(t){if(null===t)return null;var e=this.cf.I(t);return null!==e?e:e=this.bf.I(t)},e.ii=function(t){return null===t?null:(t=this.cf.I(t))instanceof qc?t:null},e.Kc=function(t){return null===t?null:this.bf.I(t)},e.ms=function(t){for(var e=0;e<arguments.length;++e);e=new J;for(var n=this.On.iterator;n.next();){var i=n.value,r=i.data;if(null!==r)for(var o=0;o<arguments.length;o++){var a=arguments[o];if(C(a)&&ef(this,r,a)){e.add(i);break}}}return e.iterator},e.ls=function(t){for(var e=0;e<arguments.length;++e);e=new J;for(var n=this.Dn.iterator;n.next();){var i=n.value,r=i.data;if(null!==r)for(var o=0;o<arguments.length;o++){var a=arguments[o];if(C(a)&&ef(this,r,a)){e.add(i);break}}}return e.iterator},Jd.prototype.doModelChanged=function(t){if(this.H){var e=this.H;if(t.model===e.model){var n=t.change;if(e.doModelChanged(t),e.aa){e.aa=!1;try{var i=t.modelChange;if(""!==i)if(n===fn){if("nodeCategory"===i){var r=this.Lc(t.object),o=t.newValue;null!==r&&"string"==typeof o&&(r.category=o)}else"nodeDataArray"===i&&(this.Gs(t.oldValue),this.addModeledParts(t.newValue));e.isModified=!0}else if(n===pn){var a=t.newValue;"nodeDataArray"===i&&C(a)&&$d(this,a),e.isModified=!0}else if(n===gn){var s=t.oldValue;"nodeDataArray"===i&&C(s)&&this.ip(s),e.isModified=!0}else n===dn&&("SourceChanged"===i?null!==t.object?this.updateDataBindings(t.object,t.propertyName):(this.rp(),this.updateAllTargetBindings()):"ModelDisplaced"===i&&this.Wd());else if(n===fn){var l=t.propertyName,u=t.object;u===e.model?"nodeKeyProperty"!==l&&"nodeCategoryProperty"!==l||e.undoManager.isUndoingRedoing||this.Wd():this.updateDataBindings(u,l),e.isModified=!0}else if(n===pn||n===gn){var c=t.change===pn,h=c?t.newParam:t.oldParam,d=c?t.newValue:t.oldValue,f=this.aj.I(t.object);if(Array.isArray(f))for(t=0;t<f.length;t++){var p=f[t];if(c)Ql(p,d,h,!0);else if(!(0>h)){var g=h+ql(p);p.pc(g,!0),Jl(p,g,h)}}e.isModified=!0}}finally{e.aa=!0}}}}},Jd.prototype.updateAllTargetBindings=function(t){void 0===t&&(t="");for(var e=this.parts.iterator;e.next();)e.value.La(t);for(e=this.nodes.iterator;e.next();)e.value.La(t);for(e=this.links.iterator;e.next();)e.value.La(t)},Jd.prototype.rp=function(){for(var t=this.H.model,e=new J,n=t.nodeDataArray,i=0;i<n.length;i++)e.add(n[i]);var r=[];for(this.nodes.each((function(t){null===t.data||e.contains(t.data)||r.push(t.data)})),this.parts.each((function(t){null===t.data||e.contains(t.data)||r.push(t.data)})),r.forEach((function(e){Tf(t,e,!1)})),i=0;i<n.length;i++){var o=n[i];null===this.Lc(o)&&Lf(t,o,!1)}for(this.refreshDataBoundLinks(),n=this.parts.iterator;n.next();)n.value.updateRelationshipsFromData();for(n=this.nodes.iterator;n.next();)n.value.updateRelationshipsFromData();for(n=this.links.iterator;n.next();)n.value.updateRelationshipsFromData()},Jd.prototype.refreshDataBoundLinks=function(){},Jd.prototype.updateRelationshipsFromData=function(){},Jd.prototype.updateDataBindings=function(t,e){if("string"==typeof e){var n=this.Lc(t);if(null!==n)n.La(e);else{n=null;for(var i=this.aj.iterator;i.next();){for(var r=i.value,o=0;o<r.length;o++){var a=r[o].sx(t);null!==a&&(null===n&&(n=T()),n.push(a))}if(null!==n)break}if(null!==n){for(i=0;i<n.length;i++)n[i].La(e);N(n)}}t===this.diagram.model.modelData&&this.updateAllTargetBindings(e)}},Jd.prototype.Kj=function(t,e,n){void 0===n&&(n=!1);var i=new ft;if(A(t))for(var r=0;r<t.length;r++)af(this,t[r],e,i,n);else for(t=t.iterator;t.next();)af(this,t.value,e,i,n);if(null!==e){n=e.model,t=null!==(t=e.toolManager.findTool("Dragging"))?t.dragOptions.dragsLink:e.Wm.dragsLink,r=new J;for(var o=new ft,a=i.iterator;a.next();){var s=a.value;if(s instanceof xh)t||null!==s.fromNode&&null!==s.toNode||r.add(s);else if(s instanceof qc&&null!==s.data&&n.Tl()){var l=s,u=(s=a.key).pg();null!==u&&(null!==(u=i.I(u))?(n.qe(l.data,n.wa(u.data)),l=e.Kc(l.data),null!==(s=s.kh())&&null!==l&&o.add(s,l)):n.qe(l.data,void 0))}}if(0<r.count&&e.Is(r,!1),0<o.count)for(n=o.iterator;n.next();)i.add(n.key,n.value)}if(null!==e&&null!==this.H&&null!==(n=(e=e.model).afterCopyFunction)){var c=new ft;i.each((function(t){null!==t.key.data&&c.add(t.key.data,t.value.data)})),n(c,e,this.H.model)}for(e=i.iterator;e.next();)e.value.La();return i},Jd.prototype.copyPartData=function(t,e){var n=null,i=t.data;if(null!==i&&null!==e){var r=e.model;t instanceof xh||C(i=r.copyNodeData(i))&&(r.xf(i),n=e.Lc(i))}else Xl(t),null!==(n=t.copy())&&(r=this.H,null!==e?e.add(n):null!==i&&null!==r&&null!==r.commandHandler&&r.commandHandler.copiesClipboardData&&(e=r.model,r=null,n instanceof xh||(r=e.copyNodeData(i)),C(r)&&(n.data=r)));return n},d.Object.defineProperties(Jd.prototype,{nodes:{get:function(){return this.On}},links:{get:function(){return this.Dn}},parts:{get:function(){return this.Pa}},diagram:{get:function(){return this.H}},addsToTemporaryLayer:{get:function(){return this.tp},set:function(t){this.tp=t}}}),Jd.prototype.updateAllRelationshipsFromData=Jd.prototype.rp,Jd.prototype.findLinksByExample=Jd.prototype.ls,Jd.prototype.findNodesByExample=Jd.prototype.ms,Jd.prototype.findLinkForData=Jd.prototype.Kc,Jd.prototype.findNodeForData=Jd.prototype.ii,Jd.prototype.findPartForData=Jd.prototype.Lc,Jd.prototype.findNodeForKey=Jd.prototype.Vb,Jd.prototype.removeModeledPart=Jd.prototype.ip,Jd.prototype.removeModeledParts=Jd.prototype.Gs,Jd.prototype.rebuildParts=Jd.prototype.Wd;var sf=!1,lf=!1,uf=!1;function cf(t){Jd.apply(this,arguments)}function hf(t,e){e.forEach((function(e){df(t,e)})),ko(t.diagram,!1)}function df(t,e){if(null!=e&&!t.diagram.undoManager.isUndoingRedoing&&!t.bf.contains(e)){var n=t.getLinkCategoryForData(e),i=t.findLinkTemplateForCategory(n);if(null!==i){Xl(i);var r=i.copy();if(null!==r){i=t.diagram.skipsModelSourceBindings,t.diagram.skipsModelSourceBindings=!0,r.Tf=n,r.ub=e;var o=Qf(n=t.diagram.model,e,!0);""!==o&&(r.fromPortId=o),void 0!==(o=qf(n,e,!0))&&((o=t.Vb(o))instanceof qc&&(r.fromNode=o)),""!==(o=Qf(n,e,!1))&&(r.toPortId=o),void 0!==(o=qf(n,e,!1))&&((o=t.Vb(o))instanceof qc&&(r.toNode=o)),n=n.Ef(e),Array.isArray(n)&&n.forEach((function(e){null!==(e=t.Vb(e))&&(e.labeledLink=r)})),t.tp&&(r.Jg="Tool"),t.diagram.add(r),r.ub=null,r.data=e,t.diagram.skipsModelSourceBindings=i}}}}function ff(t,e){e.forEach((function(e){t.ip(e)}))}function pf(){Jd.apply(this,arguments),this.Sg=null}function gf(t,e,n){if(null!==e&&null!==n&&null===n.kh()){var i=t.diagram.toolManager.findTool("Linking"),r=e,o=n;if(t.diagram.isTreePathToChildren||(r=n,o=e),(null===i||!Qn(i,r,o,null,!0))&&(e=t.getLinkCategoryForData(n.data),null!==(i=t.findLinkTemplateForCategory(e))&&(Xl(i),null!==(i=i.copy())))){var a=t.diagram.skipsModelSourceBindings;t.diagram.skipsModelSourceBindings=!0,i.Tf=e,i.ub=n.data,i.fromNode=r,i.toNode=o,t.diagram.add(i),i.ub=null,i.data=n.data,t.diagram.skipsModelSourceBindings=a}}}function mf(t,e){this.kl=new J,this.il=new J,this.Wv=',\n "insertedNodeKeys": ',this.jy=',\n "modifiedNodeData": ',this.Yv=',\n "removedNodeKeys": ',this.vh=null,$(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new ft,this.Th="key",this.Bk=this.bl=null,this.Jm=this.Km=!1,this.Mm=!0,this.xm=null,this.lj="category",this.Vf=new ft,this.Lt=new K,this.Wg=!1,this.o=null,this.undoManager=new vn,void 0!==t&&(A(t)?this.nodeDataArray=t:e=t),e&&(Object.assign(this,e),t=e.Changed)&&(delete this.Changed,this.Pe(t))}function vf(t,e,n,i,r,o){function a(t,n){s?(void 0===t.__gohashid&&o.push(t),i.set(t,n)):(t=st++,i.set(t,n),r.set(t,e))}if(!C(e))return e;o||(o=[]);var s=Object.isExtensible(e);if(i||(i=new ft),s){var l=i.get(e);if(l)return l}else for(r||(r=new ft),l=r.iterator;l.next();){var u=l.key;if(l.value===e&&(u=i.get(u)))return u}if(Array.isArray(e)){a(e,l=[]);for(var c=0;c<e.length;c++)l.push(vf(t,e[c],!1,i,r,o))}else if(e instanceof pt||e instanceof Tt||e instanceof Bt||e instanceof Xt||e instanceof De)l=e.copy(),a(e,l);else{if(e instanceof Ds||e instanceof Ze||e instanceof G)return e;if(e instanceof K)l=(new K).addAll(vf(t,e.Fa(),!1,i,r,o)),a(e,l);else if(e instanceof J)l=(new J).addAll(vf(t,e.Fa(),!1,i,r,o)),a(e,l);else if(e instanceof ft)l=(new ft).addAll(vf(t,e.Fa(),!1,i,r,o)),a(e,l);else if(e instanceof Date)l=new Date(e.getTime()),a(e,l);else if(e instanceof RegExp)l=new RegExp(e),a(e,l),l.lastIndex=e.lastIndex;else if("function"==typeof e.copy)l=e.copy(),a(e,l);else for(c in a(e,l={}),e)"__gohashid"!==c&&(l[c]=vf(t,e[c],!1,i,r,o))}return n&&o.forEach((function(t){delete t.__gohashid})),l}function yf(t,e){C(e=e.modelData)&&(t.dm(e),t.modelData=e)}function wf(t,e){function n(t,e){if((e=e.part)&&t!==(e=e.data)){var n=i.get(t);null===n?((n=new J).add(e),i.add(t,n)):n.add(e)}}var i=t.vh;null===i&&(i=new ft,e.changes.each((function(t){if(null!==t.diagram){var e=t.change;e===fn?(t=t.object.panel)&&(e=t.data)&&n(e,t):e!==pn&&e!==gn||(e=(t=t.object).itemArray)&&n(e,t)}})),t.vh=i)}function bf(t,e){for(var n=new J,i=0;i<t.nodeDataArray.length;i++){var r=t.nodeDataArray[i];xf(t,e,r,r,n)}return n}function xf(t,e,n,i,r){if(Array.isArray(n))for(var o=0;o<n.length;o++){var a=n[o];if(a===e)return r.add(i),!0;if(xf(t,e,a,i,r))return!0}else if(C(n)&&Object.getPrototypeOf(n)===Object.prototype)for(o in n){if((a=n[o])===e)return r.add(i),!0;if(xf(t,e,a,i,r))return!0}return!1}function Sf(t,e,n){void 0===n&&(n=!1);var i=e.length;if(0>=i)return"[]";var r=new H;r.add("["),n&&1<i&&r.add("\n");for(var o=0;o<i;o++){var a=e[o];void 0!==a&&(0<o&&(r.add(","),n&&r.add("\n")),r.add(t.sm(a)))}return n&&1<i&&r.add("\n"),r.add("]"),r.toString()}function Pf(t,e){return void 0===e||"__gohashid"===t||"_"===t[0]||"function"==typeof e}function kf(t){return isNaN(t)?"NaN":1/0===t?"9e9999":-1/0===t?"-9e9999":t}function Cf(t,e){var n=e;if(n instanceof pt)e={class:"go.Point",x:kf(n.x),y:kf(n.y)};else if(n instanceof Tt)e={class:"go.Size",width:kf(n.width),height:kf(n.height)};else if(n instanceof Bt)e={class:"go.Rect",x:kf(n.x),y:kf(n.y),width:kf(n.width),height:kf(n.height)};else if(n instanceof Xt)e={class:"go.Margin",top:kf(n.top),right:kf(n.right),bottom:kf(n.bottom),left:kf(n.left)};else if(n instanceof De)e=n.sb()?{class:"go.Spot",x:kf(n.x),y:kf(n.y),offsetX:kf(n.offsetX),offsetY:kf(n.offsetY)}:{class:"go.Spot",enum:n.toString()};else if(n instanceof Ds){if(e={class:"go.Brush",type:n.type.name},n.type===Ks?e.color=n.color:n.type!==Qs&&n.type!==Js||(e.start=n.start,e.end=n.end,n.type===Js&&(0!==n.startRadius&&(e.startRadius=kf(n.startRadius)),isNaN(n.endRadius)||(e.endRadius=kf(n.endRadius)))),null!==n.colorStops){var i={};for(n=n.colorStops.iterator;n.next();)i[n.key]=n.value;e.colorStops=i}}else n instanceof Ze?(e={class:"go.Geometry",type:n.type.name},0!==n.startX&&(e.startX=kf(n.startX)),0!==n.startY&&(e.startY=kf(n.startY)),0!==n.endX&&(e.endX=kf(n.endX)),0!==n.endY&&(e.endY=kf(n.endY)),n.spot1.D(te)||(e.spot1=n.spot1),n.spot2.D(le)||(e.spot2=n.spot2),n.type===Ze.o&&(e.path=Ze.ia(n))):n instanceof G&&(e={class:"go.EnumValue",classType:Df(t,n.classType),name:n.name});for(var r in i="{",n=!0,e){var o=Ff(e,r);if(!Pf(r,o))if(n?n=!1:i+=",",i+=t.quote(r)+":","points"===r&&o instanceof K){var a="[";for(o=o.iterator;o.next();){var s=o.value;1<a.length&&(a+=","),a+=t.sm(s.x),a+=",",a+=t.sm(s.y)}i+=a+="]"}else i+=t.sm(o)}return i+"}"}function Af(t){return"number"==typeof t?t:"NaN"===t?NaN:"9e9999"===t?1/0:"-9e9999"===t?-1/0:parseFloat(t)}function Mf(t,e,n,i,r,o,a,s,l){void 0===s&&(s=null),void 0===l&&(l=null);var u=new hn;u.model=t,u.change=n,u.modelChange=e,u.propertyName=i,u.object=r,u.oldValue=o,u.oldParam=s,u.newValue=a,u.newParam=l,t.ds(u)}function Ef(t){return"number"==typeof t||"string"==typeof t}function Lf(t,e,n){var i=t.wa(e);void 0!==i&&t.kb.I(i)===e||(t.$u(e),void 0===(i=t.wa(e))&&x("Model.makeNodeDataKeyUnique failed on "+e+". Data not added to Model."),t.kb.add(i,e),i=null,n&&(i=t.Tc.length,E(t.Tc,i,e)),Mf(t,"nodeDataArray",pn,"nodeDataArray",t,null,e,null,i),t.fm(e),t.em(e))}function Tf(t,e,n){var i=t.wa(e);if(void 0!==i&&t.kb.remove(i),i=null,n){t:if(n=t.Tc,Array.isArray(n))i=n.indexOf(e);else{i=n.length;for(var r=0;r<i;r++)if(n[r]===e){i=r;break t}i=-1}if(0>i)return;L(t.Tc,i)}Mf(t,"nodeDataArray",gn,"nodeDataArray",t,e,null,i,null),t.qp(e)}function Nf(t,e,n){if(void 0!==e){var i=t.Vf.I(e);null===i&&(i=new J,t.Vf.add(e,i)),i.add(n)}}function jf(t,e,n){if(void 0!==e){var i=t.Vf.I(e);i instanceof J&&(null==n?t.Vf.remove(e):(i.remove(n),0===i.count&&t.Vf.remove(e)))}}function If(t,e){return void 0===e?null:(t=t.Vf.I(e))instanceof J?t:null}function Bf(t,e,n){if(t.copiesArrays&&Array.isArray(e)){var i=[];for(n=0;n<e.length;n++){var r=Bf(t,e[n],t.copiesArrayObjects);i.push(r)}return $(i),i}if(n&&C(e)){for(i in n=(n=e.constructor)?new n:{},r=t.copiesKey||"string"!=typeof t.nodeKeyProperty?null:t.nodeKeyProperty,e)if("__gohashid"===i)n.__gohashid=void 0;else if(i===r)n[r]=void 0;else{var o=Ff(e,i),a=Df(t,o);"GraphObject"===a||"Diagram"===a||"Layer"===a||"RowColumnDefinition"===a||"AnimationManager"===a||"Tool"===a||"CommandHandler"===a||"Layout"===a||"InputEvent"===a||"DiagramEvent"===a||o instanceof mf||o instanceof vn||o instanceof mn||o instanceof hn||(o=Bf(t,o,!1)),zf(n,i,o)}return $(n),n}return e instanceof pt||e instanceof Tt||e instanceof Bt||e instanceof De||e instanceof Xt?e.copy():e}function Of(){return new mf}function Df(t,e){if("function"==typeof e){if(e.className)return e.className;if(e.name)return e.name}else if("object"==typeof e&&null!==e&&e.constructor)return Df(t,e.constructor);return typeof e}function Rf(t){return Uf[t]?Uf[t]:void 0!==m.go&&m.go[t]?m.go[t]:null}function Ff(t,e){if(!t||!e)return null;try{if("function"==typeof e)var n=e(t);else"function"==typeof t.getAttribute?null===(n=t.getAttribute(e))&&(n=void 0):n=t[e]}catch(t){}return n}function zf(t,e,n){if(t&&e)try{"function"==typeof e?e(t,n):"function"==typeof t.setAttribute?t.setAttribute(e,n):t[e]=n}catch(t){}}Jd.className="PartManager",h(cf,Jd),cf.prototype.addAllModeledParts=function(){var t=this.diagram.model;this.addModeledParts(t.nodeDataArray),hf(this,t.linkDataArray)},cf.prototype.addModeledParts=function(t){for(Jd.prototype.addModeledParts.call(this,t,!1),t=this.links.iterator;t.next();)Sh(t.value);ko(this.diagram,!1)},cf.prototype.removeAllModeledParts=function(){var t=this.diagram.model;ff(this,t.linkDataArray),this.Gs(t.nodeDataArray)},cf.prototype.getLinkCategoryForData=function(t){return this.diagram.model.ps(t)},cf.prototype.setLinkCategoryForData=function(t,e){return this.diagram.model.lp(t,e)},cf.prototype.setFromNodeForLink=function(t,e){var n=this.diagram.model;n.wv(t.data,n.wa(null!==e?e.data:null))},cf.prototype.setToNodeForLink=function(t,e){var n=this.diagram.model;n.Bv(t.data,n.wa(null!==e?e.data:null))},cf.prototype.removeDataForLink=function(t){this.diagram.model.bm(t.data)},cf.prototype.findPartForKey=function(t){var e=Jd.prototype.findPartForKey.call(this,t);return null===e&&null!==(t=this.diagram.model.jh(t))?this.bf.I(t):e},cf.prototype.findLinkForKey=function(t){return null==t?null:null!==(t=this.diagram.model.jh(t))?this.bf.I(t):null},cf.prototype.doModelChanged=function(t){var e=this;if(Jd.prototype.doModelChanged.call(this,t),this.diagram){var n=this.diagram;if(t.model===n.model){var i=t.change;if(n.aa){n.aa=!1;try{var r=t.modelChange;if(""!==r){if(i===fn){if("linkFromKey"===r){var o=this.Kc(t.object);if(null!==o){var a=this.Vb(t.newValue);o.fromNode=a}}else if("linkToKey"===r){var s=this.Kc(t.object);if(null!==s){var l=this.Vb(t.newValue);s.toNode=l}}else if("linkFromPortId"===r){var u=this.Kc(t.object);if(null!==u){var c=t.newValue;"string"==typeof c&&(u.fromPortId=c)}}else if("linkToPortId"===r){var h=this.Kc(t.object);if(null!==h){var d=t.newValue;"string"==typeof d&&(h.toPortId=d)}}else if("nodeGroupKey"===r){var f=this.Lc(t.object);if(null!==f){var p=t.newValue;if(void 0!==p){var g=this.Vb(p);f.containingGroup=g instanceof gh?g:null}else f.containingGroup=null}}else if("linkLabelKeys"===r){var m=this.Kc(t.object);if(null!==m){var v=t.oldValue,y=t.newValue;Array.isArray(v)&&v.forEach((function(t){0<=y.indexOf(t)||null!==(t=e.Vb(t))&&(t.labeledLink=null)})),Array.isArray(y)&&y.forEach((function(t){null!==(t=e.Vb(t))&&(t.labeledLink=m)}))}}else if("linkCategory"===r){var w=this.Kc(t.object),b=t.newValue;null!==w&&"string"==typeof b&&(w.category=b)}else"linkDataArray"===r&&(ff(this,t.oldValue),hf(this,t.newValue));n.isModified=!0}else if(i===pn){var x=t.newValue;if("linkDataArray"===r&&"object"==typeof x&&null!==x)df(this,x);else if("linkLabelKeys"===r&&Ef(x)){var S=this.Kc(t.object),P=this.Vb(x);null!==S&&null!==P&&(P.labeledLink=S)}n.isModified=!0}else if(i===gn){var k=t.oldValue;if("linkDataArray"===r&&"object"==typeof k&&null!==k)this.ip(k);else if("linkLabelKeys"===r&&Ef(k)){var C=this.Vb(k);null!==C&&(C.labeledLink=null)}n.isModified=!0}}else if(i===fn){var A=t.propertyName;t.object!==n.model||"linkFromKeyProperty"!==A&&"linkToKeyProperty"!==A&&"linkFromPortIdProperty"!==A&&"linkToPortIdProperty"!==A&&"linkLabelKeysProperty"!==A&&"nodeIsGroupProperty"!==A&&"nodeGroupKeyProperty"!==A&&"linkCategoryProperty"!==A||n.undoManager.isUndoingRedoing||this.Wd(),n.isModified=!0}}finally{n.aa=!0}}}}},cf.prototype.refreshDataBoundLinks=function(){var t=this,e=this.diagram.model,n=new J,i=e.linkDataArray;i.forEach((function(t){n.add(t)}));var r=[];this.links.each((function(t){null===t.data||n.contains(t.data)||r.push(t.data)})),r.forEach((function(t){tp(e,t,!1)})),i.forEach((function(n){null===t.Kc(n)&&$f(e,n,!1)}))},cf.prototype.updateRelationshipsFromData=function(t){var e=t.data;if(null!==e){var n=t.diagram;if(null!==n){var i=n.model;if(t instanceof xh){var r=qf(i,e,!0);if(r=n.Vb(r),t.fromNode=r,r=qf(i,e,!1),r=n.Vb(r),t.toNode=r,0<(e=i.Ef(e)).length||0<t.labelNodes.count){if(1===e.length&&1===t.labelNodes.count){r=e[0];var o=t.labelNodes.first();if(i.wa(o.data)===r)return}r=(new J).addAll(e);var a=new J;t.labelNodes.each((function(t){null!==t.data&&(void 0!==(t=i.wa(t.data))&&a.add(t))})),(e=a.copy()).hp(r),(r=r.copy()).hp(a),(0<e.count||0<r.count)&&(e.each((function(e){null!==(e=n.Vb(e))&&e.labeledLink===t&&(e.labeledLink=null)})),r.each((function(e){null!==(e=n.Vb(e))&&e.labeledLink!==t&&(e.labeledLink=t)})))}}else!(t instanceof Yc)&&(e=i.lh(e),null===(e=n.findPartForKey(e))||e instanceof gh)&&(t.containingGroup=e)}}},cf.prototype.resolveReferencesForData=function(t){var e=this.diagram.model,n=e.wa(t);if(void 0!==n){var i=If(e,n),r=this.Lc(t);if(null!==i&&null!==r){i=i.iterator;for(var o={};i.next();){var a=i.value;e.lb(a)?r instanceof gh&&e.lh(a)===n&&(null!==(a=this.Lc(a))&&(a.containingGroup=r)):(o.link=this.Kc(a),null!==o.link&&r instanceof qc&&(qf(e,a,!0)===n&&(o.link.fromNode=r),qf(e,a,!1)===n&&(o.link.toNode=r),a=e.Ef(a),Array.isArray(a)&&a.some(function(t){return function(e){return e===n&&(r.labeledLink=t.link,!0)}}(o)))),o={link:o.link}}jf(e,n)}void 0!==(t=e.lh(t))&&((t=this.Vb(t))instanceof gh&&(r.containingGroup=t))}},cf.prototype.unresolveReferencesForPart=function(t){var e=this.diagram.model;if(t instanceof qc){var n=e.wa(t.data);if(void 0!==n){for(var i=t.linksConnected;i.next();)Nf(e,n,i.value.data);if(t.isLinkLabel&&(null!==(i=t.labeledLink)&&Nf(e,n,i.data)),t instanceof gh)for(t=t.memberParts;t.next();)i=t.value.data,e.lb(i)&&Nf(e,n,i)}}},cf.prototype.copyPartData=function(t,e){var n=Jd.prototype.copyPartData.call(this,t,e);if(t instanceof xh)if(null!==(t=t.data)&&null!==e){var i=e.model;"object"==typeof(t=i.Jo(t))&&null!==t&&(i.fi(t),n=e.Kc(t))}else null!==n&&(e=this.diagram,null!==t&&null!==e&&null!==e.commandHandler&&e.commandHandler.copiesClipboardData&&("object"==typeof(e=e.model.Jo(t))&&null!==e&&(n.data=e)));return n},cf.prototype.insertLink=function(t,e,n,i){var r=this.diagram,o=r.model,a=r.toolManager.findTool("Linking"),s="";if(null!==t&&(null===e&&(e=t),null===(s=e.portId)&&(s="")),e="",null!==n&&(null===i&&(i=n),null===(e=i.portId)&&(e="")),(i=a.archetypeLinkData)instanceof xh){if(Xl(i),null!==(o=i.copy()))return o.fromNode=t,o.fromPortId=s,o.toNode=n,o.toPortId=e,r.add(o),(t=a.archetypeLabelNodeData)instanceof qc&&(Xl(t),null!==(t=t.copy())&&(t.labeledLink=o,r.add(t))),o}else if(null!==i&&("object"==typeof(i=o.Jo(i))&&null!==i))return null!==t&&Kf(o,i,o.wa(t.data),!0),Jf(o,i,s,!0),null!==n&&Kf(o,i,o.wa(n.data),!1),Jf(o,i,e,!1),o.fi(i),null===(t=a.archetypeLabelNodeData)||t instanceof qc||"object"==typeof(t=o.copyNodeData(t))&&null!==t&&(o.xf(t),void 0!==(t=o.wa(t))&&o.Bu(i,t)),r.Kc(i);return null},cf.prototype.findLinkForKey=cf.prototype.findLinkForKey,cf.prototype.findPartForKey=cf.prototype.findPartForKey,cf.prototype.removeAllModeledParts=cf.prototype.removeAllModeledParts,cf.prototype.addModeledParts=cf.prototype.addModeledParts,cf.prototype.addAllModeledParts=cf.prototype.addAllModeledParts,cf.className="GraphLinksPartManager",h(pf,Jd),pf.prototype.getLinkCategoryForData=function(t){return this.diagram.model.ss(t)},pf.prototype.setLinkCategoryForData=function(t,e){this.diagram.model.Ms(t,e)},pf.prototype.setFromNodeForLink=function(t,e,n){var i=this.diagram.model;if(void 0===n&&(n=null),e=null!==e?e.data:null,this.diagram.isTreePathToChildren)i.qe(t.data,i.wa(e));else{var r=this.Sg;this.Sg=t,null!==n&&i.qe(n.data,void 0),i.qe(e,i.wa(null!==t.toNode?t.toNode.data:null)),this.Sg=r}},pf.prototype.setToNodeForLink=function(t,e,n){var i=this.diagram.model;if(void 0===n&&(n=null),e=null!==e?e.data:null,this.diagram.isTreePathToChildren){var r=this.Sg;this.Sg=t,null!==n&&i.qe(n.data,void 0),i.qe(e,i.wa(null!==t.fromNode?t.fromNode.data:null)),this.Sg=r}else i.qe(t.data,i.wa(e))},pf.prototype.removeDataForLink=function(t){this.diagram.model.qe(t.data,void 0)},pf.prototype.findLinkForKey=function(t){return null==t?null:null!==(t=this.diagram.model.hc(t))?this.bf.I(t):null},pf.prototype.doModelChanged=function(t){if(Jd.prototype.doModelChanged.call(this,t),this.diagram){var e=this.diagram;if(t.model===e.model){var n=t.change;if(e.aa){e.aa=!1;try{var i=t.modelChange;if(""!==i){if(n===fn){if("nodeParentKey"===i){var r=t.object,o=this.Vb(t.newValue),a=this.ii(r);if(null!==this.Sg)null!==o&&(this.Sg.data=r,this.Sg.category=this.getLinkCategoryForData(r));else if(null!==a){var s=a.kh();null!==s?null===o?e.remove(s):e.isTreePathToChildren?s.fromNode=o:s.toNode=o:gf(this,o,a)}}else if("parentLinkCategory"===i){var l=this.ii(t.object),u=t.newValue;if(null!==l&&"string"==typeof u){var c=l.kh();null!==c&&(c.category=u)}}e.isModified=!0}}else if(n===fn){var h=t.propertyName;t.object===e.model&&"nodeParentKeyProperty"===h&&(e.undoManager.isUndoingRedoing||this.Wd()),e.isModified=!0}}finally{e.aa=!0}}}}},pf.prototype.updateRelationshipsFromData=function(t){var e=t.data;if(null!==e){var n=t.diagram;if(null!==n){var i=n.model;t instanceof qc&&(e=i.mh(e),(e=n.Vb(e))!==(i=t.pg())&&(i=t.kh(),null!==e?null!==i?n.isTreePathToChildren?i.fromNode=e:i.toNode=e:gf(this,e,t):null!==i&&ao(n,i,!1)))}}},pf.prototype.updateDataBindings=function(t,e){Jd.prototype.updateDataBindings.call(this,t,e),"string"==typeof e&&null!==this.Lc(t)&&(null!==(t=this.Kc(t))&&t.La(e))},pf.prototype.resolveReferencesForData=function(t){var e=this.diagram.model,n=e.wa(t);if(void 0!==n){var i=If(e,n),r=this.Lc(t);if(null!==i&&null!==r){for(i=i.iterator;i.next();){var o=i.value;e.lb(o)&&r instanceof qc&&e.mh(o)===n&&gf(this,r,this.ii(o))}jf(e,n)}void 0!==(t=e.mh(t))&&r instanceof qc&&gf(this,t=this.Vb(t),r)}},pf.prototype.unresolveReferencesForPart=function(t){var e=this.diagram.model;if(t instanceof qc){var n=e.wa(t.data),i=this.Kc(t.data);if(null!==i){i.isSelected=!1,i.isHighlighted=!1;var r=i.layer;if(null!==r){var o=r.pc(-1,i,!1);0<=o&&this.diagram.cb(gn,"parts",r,i,null,o,null),null!==(o=i.layerChanged)&&o(i,r,null)}}for(i=this.diagram.isTreePathToChildren,t=t.linksConnected;t.next();)r=t.value,r=(i?r.toNode:r.fromNode).data,e.lb(r)&&Nf(e,n,r)}},pf.prototype.insertLink=function(t,e,n){e=this.diagram.model;var i=t,r=n;return this.diagram.isTreePathToChildren||(i=n,r=t),null!==i&&null!==r?(e.qe(r.data,e.wa(i.data)),r.kh()):null},pf.prototype.findLinkForKey=pf.prototype.findLinkForKey,pf.className="TreePartManager",mf.prototype.cloneProtected=function(t){t.xa=this.xa,t.Sm=this.Sm,t.Gg=this.Gg,t.Th=this.Th,t.bl=this.bl,t.Bk=this.Bk,t.Km=this.Km,t.Jm=this.Jm,t.Mm=this.Mm,t.xm=this.xm,t.lj=this.lj},mf.prototype.copy=function(){var t=new this.constructor;return this.cloneProtected(t),t},mf.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},mf.prototype.toString=function(t){if(void 0===t&&(t=0),1<t)return this.np();var e=(""!==this.name?this.name:"")+" Model";if(0<t){e+="\n node data:";for(var n=(t=this.nodeDataArray).length,i=0;i<n;i++){var r=t[i];e+=" "+this.wa(r)+":"+I(r)}}return e},mf.prototype.xA=function(t){t.change!==dn&&x("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+t.toString());var e=t.object;return t.isTransactionFinished&&e instanceof mn?(wf(this,e),t=this.Qv(e,"FinishedUndo"===t.propertyName),this.vh=null,t):null},mf.prototype.Qv=function(t,e){var n=this,i=!1,r=new J,o=new J,a=new J,s=this.vh;t.changes.each((function(t){t.model===n&&("nodeDataArray"===t.modelChange?t.change===pn?r.add(t.newValue):t.change===gn&&a.add(t.oldValue):n.lb(t.object)?o.add(t.object):t.change!==fn||n.modelData!==t.object&&"modelData"!==t.propertyName?null!==t.object&&(s&&s.contains(t.object)?s.get(t.object).each((function(t){n.lb(t)&&o.add(t)})):t.object instanceof mf||n.ri()&&n.Jc(t.object)||bf(n,t.object).each((function(t){o.add(t)}))):i=!0)}));var l=this.il;l.clear(),r.each((function(t){l.add(n.wa(t)),e||o.add(t)}));var u=this.kl;u.clear(),a.each((function(t){u.add(n.wa(t)),e&&o.add(t)})),t=n.cloneDeep(o.Fa());var c=null;return i&&(null===c&&(c={}),c.modelData=this.cloneDeep(this.modelData)),0<l.count&&(null===c&&(c={}),e?c.removedNodeKeys=l.Fa():c.insertedNodeKeys=l.Fa()),0<t.length&&(null===c&&(c={}),c.modifiedNodeData=t),0<u.count&&(null===c&&(c={}),e?c.insertedNodeKeys=u.Fa():c.removedNodeKeys=u.Fa()),u.clear(),l.clear(),c},mf.prototype.cloneDeep=function(t){return vf(this,t,!0)},(e=mf.prototype).quote=function(t){return JSON.stringify(t).replace(/[\u007F-\uFFFF]/g,(function(t){return"\\u"+("0000"+t.charCodeAt(0).toString(16)).substr(-4)}))},e.rm=function(){var t="";return""!==this.name&&(t+=',\n "name": '+this.quote(this.name)),""!==this.dataFormat&&(t+=',\n "dataFormat": '+this.quote(this.dataFormat)),this.isReadOnly&&(t+=',\n "isReadOnly": '+this.isReadOnly),"key"!==this.nodeKeyProperty&&"string"==typeof this.nodeKeyProperty&&(t+=',\n "nodeKeyProperty": '+this.quote(this.nodeKeyProperty)),this.copiesArrays&&(t+=',\n "copiesArrays": true'),this.copiesArrayObjects&&(t+=',\n "copiesArrayObjects": true'),this.copiesKey||(t+=',\n "copiesKey": false'),"category"!==this.nodeCategoryProperty&&"string"==typeof this.nodeCategoryProperty&&(t+=',\n "nodeCategoryProperty": '+this.quote(this.nodeCategoryProperty)),t},e.gp=function(t){t.name&&(this.name=t.name),t.dataFormat&&(this.dataFormat=t.dataFormat),t.isReadOnly&&(this.isReadOnly=!0),t.nodeKeyProperty&&(this.nodeKeyProperty=t.nodeKeyProperty),t.copiesArrays&&(this.copiesArrays=!0),t.copiesArrayObjects&&(this.copiesArrayObjects=!0),!1===t.copiesKey&&(this.copiesKey=!1),t.nodeCategoryProperty&&(this.nodeCategoryProperty=t.nodeCategoryProperty)},e.Rv=function(){var t,e=this.modelData,n=!1;for(t in e)if(!Pf(t,e[t])){n=!0;break}return e="",n&&(e=',\n "modelData": '+Cf(this,this.modelData)),e+',\n "nodeDataArray": '+Sf(this,this.nodeDataArray,!0)},e.kv=function(t){yf(this,t),A(t=t.nodeDataArray)&&(this.dm(t),this.nodeDataArray=t)},e.Pv=function(t,e){var n=this,i=!1,r=new J,o=new J,a=new J,s=this.vh;t.changes.each((function(t){t.model===n&&("nodeDataArray"===t.modelChange?t.change===pn?r.add(t.newValue):t.change===gn&&a.add(t.oldValue):n.lb(t.object)?o.add(t.object):t.change!==fn||n.modelData!==t.object&&"modelData"!==t.propertyName?null!==t.object&&(s&&s.contains(t.object)?s.get(t.object).each((function(t){n.lb(t)&&o.add(t)})):t.object instanceof mf||n.ri()&&n.Jc(t.object)||bf(n,t.object).each((function(t){o.add(t)}))):i=!0)}));var l=this.il;l.clear(),r.each((function(t){l.add(n.wa(t)),e||o.add(t)}));var u=this.kl;return u.clear(),a.each((function(t){u.add(n.wa(t)),e&&o.add(t)})),t="",i&&(t+=',\n "modelData": '+Cf(this,this.modelData)),0<l.count&&(t+=(e?this.Yv:this.Wv)+Sf(this,l.Fa(),!0)),0<o.count&&(t+=this.jy+Sf(this,o.Fa(),!0)),0<u.count&&(t+=(e?this.Wv:this.Yv)+Sf(this,u.Fa(),!0)),u.clear(),l.clear(),t},e.fp=function(t){(void 0!==t.name&&t.name!==this.name||void 0!==t.dataFormat&&t.dataFormat!==this.dataFormat||void 0!==t.isReadOnly&&t.isReadOnly!==this.isReadOnly||void 0!==t.nodeKeyProperty&&t.nodeKeyProperty!==this.nodeKeyProperty||void 0!==t.copiesArrays&&t.copiesArrays!==this.copiesArrays||void 0!==t.copiesArrayObjects&&t.copiesArrayObjects!==this.copiesArrayObjects||void 0!==t.copiesKey&&t.copiesKey!==this.copiesKey||void 0!==t.nodeCategoryProperty&&t.nodeCategoryProperty!==this.nodeCategoryProperty)&&x("applyIncrementalJson cannot change Model properties"),yf(this,t);var e=t.insertedNodeKeys,n=t.modifiedNodeData,i=new ft;if(Array.isArray(n))for(var r=0;r<n.length;r++){var o=n[r],a=this.wa(o);null!=a&&i.set(a,o)}if(Array.isArray(e))for(r=e.length,o=0;o<r;o++){a=e[o];var s=this.hc(a);null===s&&(s=(s=i.get(a))?s:this.copyNodeData({}),this.km(s,a),this.xf(s))}if(Array.isArray(n))for(e=n.length,i=0;i<e;i++)if(r=n[i],o=this.wa(r),null!==(o=this.hc(o))){for(var l in r)"__gohashid"===l||l===this.nodeKeyProperty||this.Wj()&&l===this.nodeIsGroupProperty||this.setDataProperty(o,l,r[l]);this.lm(r,o)}if(t=t.removedNodeKeys,Array.isArray(t))for(n=t.length,l=0;l<n;l++)null!==(e=this.hc(t[l]))&&this.cm(e)},e.$x=function(t,e){t.change!==dn&&x("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+t.toString());var n=t.object;return t.isTransactionFinished&&n instanceof mn?(void 0===e&&(e=Df(this,this)),wf(this,n),t=this.Pv(n,"FinishedUndo"===t.propertyName),this.vh=null,"2"===e?'{ "incremental": 2'+t+"}":'{ "class": '+this.quote(e)+', "incremental": 1'+this.rm()+t+"}"):'{ "incremental": 0 }'},e.yA=function(t,e){return this.$x(t,e)},e.np=function(t){return void 0===t&&(t=Df(this,this)),'{ "class": '+this.quote(t)+this.rm()+this.Rv()+"}"},e.toJSON=function(t){return this.np(t)},e.Zw=function(t){var e=null;if("string"==typeof t)try{e=m.JSON.parse(t)}catch(t){}else"object"==typeof t?e=t:x("Unable to modify a Model from: "+t);var n=e.incremental;"number"!=typeof n&&x("Unable to apply non-incremental changes to Model: "+t),0!==n&&(this.Ea("applyIncrementalJson"),this.fp(e),this.eb("applyIncrementalJson"))},e.Ky=function(t){return this.Zw(t)},mf.constructGraphLinksModel=function(){return new mf},(e=mf.prototype).dm=function(t){if(A(t))for(var e=t.length,n=0;n<e;n++){var i=t[n];if(C(i)){var r=n;i=this.dm(i),Array.isArray(t)?t[r]=i:x("Cannot replace an object in an HTMLCollection or NodeList at "+r)}}else if(C(t)){for(e in t)if(C(n=t[e])&&(n=this.dm(n),t[e]=n,"points"===e&&Array.isArray(n))){for(r=0==n.length%2,i=0;i<n.length;i++)if("number"!=typeof n[i]){r=!1;break}if(r){for(r=new K,i=0;i<n.length/2;i++)r.add(new pt(n[2*i],n[2*i+1]));r.freeze(),t[e]=r}}return function(t){if("object"!=typeof t)return t;var e=t.class||"";if("NaN"===e)return NaN;if("Date"===e)return new Date(t.value);if(0!==e.indexOf("go."))return t;e=e.substr(3);var n=t;if("Point"===e)n=new pt(Af(t.x),Af(t.y));else if("Size"===e)n=new Tt(Af(t.width),Af(t.height));else if("Rect"===e)n=new Bt(Af(t.x),Af(t.y),Af(t.width),Af(t.height));else if("Margin"===e)n=new Xt(Af(t.top),Af(t.right),Af(t.bottom),Af(t.left));else if("Spot"===e)n="string"==typeof t.enum?Fe(t.enum):new De(Af(t.x),Af(t.y),Af(t.offsetX),Af(t.offsetY));else if("Brush"===e){if((n=new Ds).type=U(Ds,t.type),"string"==typeof t.color&&(n.color=t.color),t.start instanceof De&&(n.start=t.start),t.end instanceof De&&(n.end=t.end),"number"==typeof t.startRadius&&(n.startRadius=Af(t.startRadius)),"number"==typeof t.endRadius&&(n.endRadius=Af(t.endRadius)),C(t=t.colorStops))for(var i in t)n.addColorStop(parseFloat(i),t[i])}else"Geometry"===e?(n=null,n="string"==typeof t.path?Ze.parse(t.path):new Ze,n.type=U(Ze,t.type),"number"==typeof t.startX&&(n.startX=Af(t.startX)),"number"==typeof t.startY&&(n.startY=Af(t.startY)),"number"==typeof t.endX&&(n.endX=Af(t.endX)),"number"==typeof t.endY&&(n.endY=Af(t.endY)),t.spot1 instanceof De&&(n.spot1=t.spot1),t.spot2 instanceof De&&(n.spot2=t.spot2)):"EnumValue"===e&&(i=t.classType,0===i.indexOf("go.")&&(i=i.substr(3)),i=Rf(i),"function"==typeof i&&(n=U(i,t.name)));return n}(t)}return t},e.sm=function(t){return void 0===t?"undefined":null===t?"null":!0===t?"true":!1===t?"false":"string"==typeof t?this.quote(t):"number"==typeof t?1/0===t?"9e9999":-1/0===t?"-9e9999":isNaN(t)?'{"class":"NaN"}':t.toString():t instanceof Date?'{"class":"Date", "value":"'+t.toJSON()+'"}':t instanceof Number?this.sm(t.valueOf()):A(t)?Sf(this,t):C(t)?Cf(this,t):"function"==typeof t?"null":t.toString()},e.Pe=function(t){return this.Lt.add(t),this},e.ik=function(t){this.Lt.remove(t)},e.ds=function(t){this.skipsUndoManager||this.undoManager.Tu(t);for(var e=this.Lt,n=e.length,i=0;i<n;i++)e.M(i)(t)},e.cb=function(t,e,n,i,r,o,a){Mf(this,"",t,e,n,i,r,o,a)},e.g=function(t,e,n,i,r){Mf(this,"",fn,t,this,e,n,i,r)},e.Fs=function(t,e,n,i,r,o){Mf(this,"",fn,e,t,n,i,r,o)},mf.prototype.changeState=function(t,e){if(null!==t&&t.model===this)if(t.change===fn){var n=t.object,i=t.propertyName,r=t.I(e);i===this.nodeKeyProperty&&this.lb(n)&&(void 0!==(e=t.I(!e))&&this.kb.remove(e),void 0!==r&&this.kb.add(r,n)),zf(n,i,r)}else t.change===pn?(n=t.newParam,"nodeDataArray"===t.modelChange?C(t=t.newValue)&&"number"==typeof n&&(i=this.wa(t),e?(this.Tc[n]===t&&L(this.Tc,n),void 0!==i&&this.kb.remove(i)):(this.Tc[n]!==t&&E(this.Tc,n,t),void 0!==i&&this.kb.add(i,t))):""===t.modelChange?((i=t.object)&&!A(i)&&t.propertyName&&(i=Ff(t.object,t.propertyName)),A(i)&&"number"==typeof n&&(t=t.newValue,e?L(i,n):E(i,n,t))):x("unknown ChangedEvent.Insert modelChange: "+t.toString())):t.change===gn?(n=t.oldParam,"nodeDataArray"===t.modelChange?C(t=t.oldValue)&&"number"==typeof n&&(i=this.wa(t),e?(this.Tc[n]!==t&&E(this.Tc,n,t),void 0!==i&&this.kb.add(i,t)):(this.Tc[n]===t&&L(this.Tc,n),void 0!==i&&this.kb.remove(i))):""===t.modelChange?((i=t.object)&&!A(i)&&t.propertyName&&(i=Ff(t.object,t.propertyName)),A(i)&&"number"==typeof n&&(t=t.oldValue,e?E(i,n,t):L(i,n))):x("unknown ChangedEvent.Remove modelChange: "+t.toString())):t.change!==dn&&x("unknown ChangedEvent: "+t.toString())},mf.prototype.Ea=function(t){return this.undoManager.Ea(t)},mf.prototype.eb=function(t){return this.undoManager.eb(t)},mf.prototype.Kf=function(){return this.undoManager.Kf()},mf.prototype.commit=function(t,e){void 0===e&&(e="");var n=this.skipsUndoManager;null===e&&(this.skipsUndoManager=!0,e=""),this.undoManager.Ea(e);var i=!1;try{t(this),i=!0}finally{i?this.undoManager.eb(e):this.undoManager.Kf(),this.skipsUndoManager=n}},(e=mf.prototype).La=function(t,e){void 0===e&&(e=""),Mf(this,"SourceChanged",dn,e,t,null,null)},e.wa=function(t){if(null!==t){var e=this.Th;if(""!==e&&void 0!==(e=Ff(t,e))){if(Ef(e))return e;x("Key value for node data "+t+" is not a number or a string: "+e)}}},e.km=function(t,e){if(null!==t){var n=this.Th;if(""!==n)if(this.lb(t)){var i=Ff(t,n);i!==e&&null===this.hc(e)&&(zf(t,n,e),void 0!==i&&this.kb.remove(i),this.kb.add(e,t),Mf(this,"nodeKey",fn,n,t,i,e),"string"==typeof n&&this.La(t,n),this.jp(i,e))}else zf(t,n,e)}},e.lb=function(t){var e=this.wa(t);return void 0!==e&&this.kb.I(e)===t},e.hc=function(t){return null===t&&x("Model.findNodeDataForKey:key must not be null"),void 0!==t&&Ef(t)?this.kb.I(t):null},e.$u=function(t){if(null!==t){var e=this.Th;if(""!==e){var n=this.wa(t);if(void 0===n||this.kb.contains(n)){var i=this.bl;if(null!==i&&(null!=(n=i(this,t))&&!this.kb.contains(n)))return void zf(t,e,n);if("string"==typeof n){for(i=2;this.kb.contains(n+i);)i++;zf(t,e,n+i)}else if(void 0===n||"number"==typeof n){for(n=-this.kb.count-1;this.kb.contains(n);)n--;zf(t,e,n)}}}}},e.xf=function(t){null!==t&&(tt(t),this.lb(t)||Lf(this,t,!0))},e.Fy=function(t){if(A(t))for(var e=t.length,n=0;n<e;n++)this.xf(t[n]);else for(t=t.iterator;t.next();)this.xf(t.value)},e.cm=function(t){null!==t&&Tf(this,t,!0)},e.nA=function(t){if(A(t))for(var e=t.length,n=0;n<e;n++)this.cm(t[n]);else for(t=t.iterator;t.next();)this.cm(t.value)},e.$z=function(t){if(t!==this.nodeDataArray&&A(t)){var e=this.kl;e.clear(),e.addAll(this.kb.iteratorKeys);var n=this.il;n.clear();for(var i=t.length,r=0;r<i;r++){var o=t[r],a=this.wa(o);if(void 0!==a){n.add(a);var s=this.hc(a);s!==o&&(null!==s?(this.Do(s,o),this.lm(o,s)):(o=this.cloneDeep(o),this.km(o,a),this.xf(o)))}else a=this.cloneDeep(o),this.xf(a),n.add(this.wa(a))}for(t=e.iterator;t.next();)i=t.value,n.contains(i)||(i=this.hc(i))&&this.cm(i);e.clear(),n.clear()}},e.jp=function(t,e){void 0!==e&&((t=If(this,t))instanceof J&&this.Vf.add(e,t))},e.Lv=function(){},e.fm=function(){},e.em=function(){},e.qp=function(){},e.Qy=function(t){void 0===t?this.Vf.clear():this.Vf.remove(t)},mf.prototype.copyNodeData=function(t){if(null===t)return null;var e=this.Bk;return C(t=null!==e?e(t,this):Bf(this,t,!0))&&$(t),t},mf.prototype.setDataProperty=function(t,e,n){if(this.lb(t)){if(e===this.nodeKeyProperty)return void this.km(t,n);if(e===this.nodeCategoryProperty)return void this.jm(t,n)}else!Gf&&t instanceof Ia&&(Gf=!0,k('Model.setDataProperty is modifying a GraphObject, "'+t.toString()+'"'),k(" Is that really your intent?"));var i=Ff(t,e);i!==n&&(zf(t,e,n),this.Fs(t,e,i,n))},(e=mf.prototype).set=function(t,e,n){this.setDataProperty(t,e,n)},e.Do=function(t,e){if(e){var n,i=this.lb(t);for(n in e)"__gohashid"===n||i&&n===this.nodeKeyProperty||this.setDataProperty(t,n,e[n])}},e.Ay=function(t,e){this.ts(t,-1,e)},e.ts=function(t,e,n){0>e&&(e=t.length),E(t,e,n),Mf(this,"",pn,"",t,null,n,null,e)},e.ov=function(t,e){void 0===e&&(e=-1),t===this.Tc&&x("Model.removeArrayItem should not be called on the Model.nodeDataArray"),-1===e&&(e=t.length-1);var n=t[e];L(t,e),Mf(this,"",gn,"",t,n,null,e,null)},e.Ro=function(t){if(null===t)return"";var e=this.lj;return""===e||void 0===(e=Ff(t,e))?"":"string"==typeof e?e:void x("getCategoryForNodeData found a non-string category for "+t+": "+e)},e.jm=function(t,e){if(null!==t){var n=this.lj;if(""!==n)if(this.lb(t)){var i=Ff(t,n);void 0===i&&(i=""),i!==e&&(zf(t,n,e),Mf(this,"nodeCategory",fn,n,t,i,e))}else zf(t,n,e)}},e.lm=function(t,e){this.jm(e,this.Ro(t))},e.Tl=function(){return!1},e.Wj=function(){return!1},e.ri=function(){return!1},e.xs=function(){return!1},e.Xj=function(){return!1},d.Object.defineProperties(mf.prototype,{name:{get:function(){return this.xa},set:function(t){var e=this.xa;e!==t&&(this.xa=t,this.g("name",e,t))}},dataFormat:{get:function(){return this.Sm},set:function(t){var e=this.Sm;e!==t&&(this.Sm=t,this.g("dataFormat",e,t))}},isReadOnly:{get:function(){return this.Gg},set:function(t){var e=this.Gg;e!==t&&(this.Gg=t,this.g("isReadOnly",e,t))}},modelData:{get:function(){return this.j},set:function(t){var e=this.j;e!==t&&(this.j=t,this.g("modelData",e,t),this.La(t))}},undoManager:{get:function(){return this.o},set:function(t){var e=this.o;e!==t&&(null!==e&&e.Rx(this),this.o=t,null!==t&&t.Xw(this))}},skipsUndoManager:{get:function(){return this.Wg},set:function(t){this.Wg=t}},nodeKeyProperty:{get:function(){return this.Th},set:function(t){var e=this.Th;e!==t&&(""===t&&x("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&x("Cannot set Model.nodeKeyProperty when there is existing node data"),this.Th=t,this.g("nodeKeyProperty",e,t))}},makeUniqueKeyFunction:{get:function(){return this.bl},set:function(t){var e=this.bl;e!==t&&(this.bl=t,this.g("makeUniqueKeyFunction",e,t))}},nodeDataArray:{get:function(){return this.Tc},set:function(t){var e=this.Tc;if(e!==t){this.kb.clear(),this.Lv();for(var n=t.length,i=0;i<n;i++){var r=t[i];C(r)||x("Model.nodeDataArray must only contain Objects, not: "+r),tt(r)}for(this.Tc=t,i=new K,r=0;r<n;r++){var o=t[r],a=this.wa(o);void 0===a||null!==this.kb.I(a)?i.add(o):this.kb.add(a,o)}for(i=i.iterator;i.next();)r=i.value,this.$u(r),void 0!==(o=this.wa(r))&&this.kb.add(o,r);for(Mf(this,"nodeDataArray",fn,"nodeDataArray",this,e,t),e=0;e<n;e++)i=t[e],this.fm(i),this.em(i);Array.isArray(t)||(this.isReadOnly=!0)}}},copyNodeDataFunction:{get:function(){return this.Bk},set:function(t){var e=this.Bk;e!==t&&(this.Bk=t,this.g("copyNodeDataFunction",e,t))}},copiesArrays:{get:function(){return this.Km},set:function(t){var e=this.Km;e!==t&&(this.Km=t,this.g("copiesArrays",e,t))}},copiesArrayObjects:{get:function(){return this.Jm},set:function(t){var e=this.Jm;e!==t&&(this.Jm=t,this.g("copiesArrayObjects",e,t))}},copiesKey:{get:function(){return this.Mm},set:function(t){var e=this.Mm;e!==t&&(this.Mm=t,this.g("copiesKey",e,t))}},afterCopyFunction:{get:function(){return this.xm},set:function(t){var e=this.xm;e!==t&&(this.xm=t,this.g("afterCopyFunction",e,t))}},nodeCategoryProperty:{get:function(){return this.lj},set:function(t){var e=this.lj;e!==t&&(this.lj=t,this.g("nodeCategoryProperty",e,t))}},type:{get:function(){return"Model"}}}),mf.prototype.setCategoryForNodeData=mf.prototype.jm,mf.prototype.getCategoryForNodeData=mf.prototype.Ro,mf.prototype.removeArrayItem=mf.prototype.ov,mf.prototype.insertArrayItem=mf.prototype.ts,mf.prototype.addArrayItem=mf.prototype.Ay,mf.prototype.assignAllDataProperties=mf.prototype.Do,mf.prototype.set=mf.prototype.set,mf.prototype.clearUnresolvedReferences=mf.prototype.Qy,mf.prototype.mergeNodeDataArray=mf.prototype.$z,mf.prototype.removeNodeDataCollection=mf.prototype.nA,mf.prototype.removeNodeData=mf.prototype.cm,mf.prototype.addNodeDataCollection=mf.prototype.Fy,mf.prototype.addNodeData=mf.prototype.xf,mf.prototype.makeNodeDataKeyUnique=mf.prototype.$u,mf.prototype.findNodeDataForKey=mf.prototype.hc,mf.prototype.containsNodeData=mf.prototype.lb,mf.prototype.setKeyForNodeData=mf.prototype.km,mf.prototype.getKeyForNodeData=mf.prototype.wa,mf.prototype.updateTargetBindings=mf.prototype.La,mf.prototype.commit=mf.prototype.commit,mf.prototype.rollbackTransaction=mf.prototype.Kf,mf.prototype.commitTransaction=mf.prototype.eb,mf.prototype.startTransaction=mf.prototype.Ea,mf.prototype.raiseDataChanged=mf.prototype.Fs,mf.prototype.raiseChanged=mf.prototype.g,mf.prototype.raiseChangedEvent=mf.prototype.cb,mf.prototype.removeChangedListener=mf.prototype.ik,mf.prototype.addChangedListener=mf.prototype.Pe,mf.prototype.writeJsonValue=mf.prototype.sm,mf.prototype.replaceJsonObjects=mf.prototype.dm,mf.prototype.applyIncrementalJSON=mf.prototype.Ky,mf.prototype.applyIncrementalJson=mf.prototype.Zw,mf.prototype.toJSON=mf.prototype.toJSON,mf.prototype.toJson=mf.prototype.np,mf.prototype.toIncrementalJSON=mf.prototype.yA,mf.prototype.toIncrementalJson=mf.prototype.$x,mf.prototype.toIncrementalData=mf.prototype.xA,mf.prototype.clear=mf.prototype.clear;var Gf=!1,Uf={};function Hf(t,e,n,i){$(this),this._isFrozen=!1,void 0===t&&(t=""),void 0===e&&(e=t),void 0===n&&(n=null),this.j=-1,this.xd=null,this.xl=t,this.wl=this.to=0,this.Cr=null,this.wn=!1,this.sl=e,this.Im=n,void 0===i?(this.el=Wf,this.wk=null):(this.el=Vf,this.wk=i),this.st=new J}function _f(t,e,n){return null===(t=t.sourceName)||""===t?e:"/"===t?n.part:"."===t?n:".."===t?n.panel:e.fb(t)}mf.className="Model",mf.fromJSON=mf.fromJson=function(t,e){void 0===e&&(e=null);var n=null;if("string"==typeof t)try{n=m.JSON.parse(t)}catch(t){}else"object"==typeof t?n=t:x("Unable to construct a Model from: "+t);if(null===e){t=null;var i=n.class;if("string"==typeof i)try{var r=null;0===i.indexOf("go.")?r=Rf(i=i.substr(3)):null===(r=Rf(i))&&(r=m[i]),"function"==typeof r&&(t=new r)}catch(t){}null===t||t instanceof mf?e=t:x("Unable to construct a Model of declared class: "+n.class)}return null===e&&(e=mf.constructGraphLinksModel()),e.gp(n),e.kv(n),e},mf.safePropertyValue=Ff,mf.safePropertySet=zf,Uf.Brush=Ds,Uf.ChangedEvent=hn,Uf.Geometry=Ze,Uf.Margin=Xt,Uf.Panel=Ml,Uf.Point=pt,Uf.Rect=Bt,Uf.Size=Tt,Uf.Spot=De,Uf.Transaction=mn,Uf.UndoManager=vn,Hf.prototype.copy=function(){var t=new Hf;return t.xl=this.xl,t.to=this.to,t.wl=this.wl,t.Cr=this.Cr,t.wn=this.wn,t.sl=this.sl,t.Im=this.Im,t.el=this.el,t.wk=this.wk,t},(e=Hf.prototype).qb=function(t){t.classType===Hf&&(this.mode=t)},e.toString=function(){return"Binding("+this.targetProperty+":"+this.sourceProperty+(-1!==this.Ai?" "+this.Ai:"")+" "+this.mode.name+")"},e.freeze=function(){return this._isFrozen=!0,this},e.ka=function(){return this._isFrozen=!1,this},e.Kx=function(t){return void 0===t&&(t=null),this.mode=Vf,this.backConverter=t,this},e.cp=function(t){return void 0===t&&(t=""),this.sourceName=t,this.isToModel=!1,this},e.dA=function(){return this.sourceName=null,this.isToModel=!0,this},e.Mv=function(t,e,n){var i=this.sl;if(void 0===n||""===i||i===n){n=this.xl;var r=this.Im;if(null===r&&""===n)k("Binding error: target property is the empty string: "+this.toString());else{var o=e;if(""!==i&&(o=Ff(e,i)),void 0!==o)if(null===r)""!==n&&zf(t,n,o);else try{if(""!==n)zf(t,n,r(o,t));else r(o,t)}catch(t){}}}},e.sp=function(t,e,n,i){if(this.el===Vf){var r=this.xl;if(void 0===n||r===n){n=this.sl;var o=this.wk,a=t;if(""!==r&&(a=Ff(t,r)),void 0!==a&&!this.st.contains(t))try{this.st.add(t);var s=null!==i?i.diagram:null,l=null!==s?s.model:null;if(null===o){if(""!==n)null!==l?l.setDataProperty(e,n,a):zf(e,n,a);else if(null!==l&&null!==i&&0<=i.itemIndex&&null!==i.panel&&Array.isArray(i.panel.itemArray)){var u=i.itemIndex,c=i.panel.itemArray;l.ov(c,u),l.ts(c,u,a)}}else try{if(""!==n){var h=o(a,e,l);null!==l?l.setDataProperty(e,n,h):zf(e,n,h)}else{var d=o(a,e,l);if(void 0!==d&&null!==l&&null!==i&&0<=i.itemIndex&&null!==i.panel&&Array.isArray(i.panel.itemArray)){var f=i.itemIndex,p=i.panel.itemArray;l.ov(p,f),l.ts(p,f,d)}}}catch(t){}}finally{this.st.remove(t)}}}},d.Object.defineProperties(Hf.prototype,{Ai:{get:function(){return this.j},set:function(t){this._isFrozen&&S(this),this.j=t}},targetProperty:{get:function(){return this.xl},set:function(t){this._isFrozen&&S(this),this.xl=t}},sourceName:{get:function(){return this.Cr},set:function(t){this._isFrozen&&S(this),this.Cr=t,null!==t&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(t){this._isFrozen&&S(this),this.wn=t}},sourceProperty:{get:function(){return this.sl},set:function(t){this._isFrozen&&S(this),this.sl=t}},converter:{get:function(){return this.Im},set:function(t){this._isFrozen&&S(this),this.Im=t}},backConverter:{get:function(){return this.wk},set:function(t){this._isFrozen&&S(this),this.wk=t}},mode:{get:function(){return this.el},set:function(t){this._isFrozen&&S(this),this.el=t}}}),Hf.prototype.updateSource=Hf.prototype.sp,Hf.prototype.updateTarget=Hf.prototype.Mv,Hf.prototype.ofModel=Hf.prototype.dA,Hf.prototype.ofObject=Hf.prototype.cp,Hf.prototype.makeTwoWay=Hf.prototype.Kx;var Zf="Binding",Wf=new G(Hf,"OneWay",1),Vf=new G(Hf,"TwoWay",2);function Yf(t,e,n){mf.call(this),this.Vv=',\n "insertedLinkKeys": ',this.iy=',\n "modifiedLinkData": ',this.Xv=',\n "removedLinkKeys": ',this.md=[],this.$f=new J,this.wb=new ft,this.Jh="",this.Ri=this.Ak=this.cl=null,this.lf="from",this.mf="to",this.fj=this.ej="",this.dj="category",this.je="",this.jl="isGroup",this.Je="group",this.Lm=!1,void 0!==e&&(this.linkDataArray=e),void 0!==t&&(A(t)?this.nodeDataArray=t:n=t),n&&(Object.assign(this,n),t=n.Changed)&&(delete this.Changed,this.Pe(t))}function Xf(t,e){for(var n=new J,i=0;i<t.linkDataArray.length;i++){var r=t.linkDataArray[i];xf(t,e,r,r,n)}return n}function qf(t,e,n){if(null!==e&&(""!==(t=n?t.lf:t.mf)&&void 0!==(t=Ff(e,t)))){if(Ef(t))return t;x((n?"FromKey":"ToKey")+" value for link data "+e+" is not a number or a string: "+t)}}function Kf(t,e,n,i){if(null===n&&(n=void 0),null!==e){var r=i?t.lf:t.mf;if(""!==r)if(n=t.Vl(n),t.Jc(e)){var o=Ff(e,r);o!==n&&(jf(t,o,e),zf(e,r,n),null===t.hc(n)&&Nf(t,n,e),Mf(t,i?"linkFromKey":"linkToKey",fn,r,e,o,n),"string"==typeof r&&t.La(e,r))}else zf(e,r,n)}}function Qf(t,e,n){return null===e||""===(t=n?t.ej:t.fj)||void 0===(e=Ff(e,t))?"":e}function Jf(t,e,n,i){if(null!==e){var r=i?t.ej:t.fj;if(""!==r)if(t.Jc(e)){var o=Ff(e,r);void 0===o&&(o=""),o!==n&&(zf(e,r,n),Mf(t,i?"linkFromPortId":"linkToPortId",fn,r,e,o,n),"string"==typeof r&&t.La(e,r))}else zf(e,r,n)}}function $f(t,e,n){if(""!==t.linkKeyProperty){var i=t.Ac(e);if(void 0!==i&&t.wb.I(i)===e)return;t.Bs(e),void 0===(i=t.Ac(e))&&x("GraphLinksModel.makeLinkDataKeyUnique failed on "+e+". Data not added to model."),t.wb.add(i,e)}t.$f.add(e),i=null,n&&(i=t.md.length,t.md.splice(i,0,e)),Mf(t,"linkDataArray",pn,"linkDataArray",t,null,e,null,i),ep(t,e)}function tp(t,e,n){t.$f.remove(e);var i=t.Ac(e);if(void 0!==i&&t.wb.remove(i),i=null,n){if(0>(i=t.md.indexOf(e)))return;t.md.splice(i,1)}if(Mf(t,"linkDataArray",gn,"linkDataArray",t,e,null,i,null),jf(t,n=qf(t,e,!0),e),jf(t,n=qf(t,e,!1),e),i=t.Ef(e),Array.isArray(i))for(var r=i.length,o=0;o<r;o++)jf(t,n=i[o],e)}function ep(t,e){var n=qf(t,e,!0);n=t.Vl(n),null===t.hc(n)&&Nf(t,n,e),n=qf(t,e,!1),n=t.Vl(n),null===t.hc(n)&&Nf(t,n,e);var i=t.Ef(e);if(Array.isArray(i))for(var r=i.length,o=0;o<r;o++)n=i[o],null===t.hc(n)&&Nf(t,n,e)}function np(t,e,n){t.lp(n,t.ps(e)),t.wv(n,t.yx(e)),t.Bv(n,t.Bx(e)),t.Ls(n,t.Ef(e)),t.xv(n,t.zx(e)),t.Cv(n,t.Cx(e))}Hf.className="Binding",Hf.parseEnum=function(t,e){return function(n){return null===(n=U(t,n))?e:n}},Hf.toString=I,Hf.OneWay=Wf,Hf.TwoWay=Vf,h(Yf,mf),Yf.constructGraphLinksModel=mf.constructGraphLinksModel,Yf.prototype.cloneProtected=function(t){mf.prototype.cloneProtected.call(this,t),t.Jh=this.Jh,t.cl=this.cl,t.Ak=this.Ak,t.lf=this.lf,t.mf=this.mf,t.ej=this.ej,t.fj=this.fj,t.dj=this.dj,t.je=this.je,t.jl=this.jl,t.Je=this.Je,t.Lm=this.Lm},(e=Yf.prototype).clear=function(){mf.prototype.clear.call(this),this.md=[],this.wb.clear(),this.$f.clear()},e.toString=function(t){if(void 0===t&&(t=0),2<=t)return this.np();var e=(""!==this.name?this.name:"")+" GraphLinksModel";if(0<t){e+="\n node data:";var n,i=(t=this.nodeDataArray).length;for(n=0;n<i;n++){var r=t[n];e+=" "+this.wa(r)+":"+I(r)}for(e+="\n link data:",i=(t=this.linkDataArray).length,n=0;n<i;n++)e+=" "+qf(this,r=t[n],!0)+"--\x3e"+qf(this,r,!1)}return e},e.Qv=function(t,e){""===this.linkKeyProperty&&x("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var n=mf.prototype.Qv.call(this,t,e),i=this,r=new J,o=new J,a=new J,s=this.vh;t.changes.each((function(t){t.model===i&&("linkDataArray"===t.modelChange?t.change===pn?r.add(t.newValue):t.change===gn&&a.add(t.oldValue):i.Jc(t.object)?o.add(t.object):null!==t.object&&(null!==t.object&&s&&s.contains(t.object)?s.get(t.object).each((function(t){i.Jc(t)&&o.add(t)})):t.object instanceof mf||i.lb(t.object)||Xf(i,t.object).each((function(t){o.add(t)}))))}));var l=this.il;l.clear(),r.each((function(t){l.add(i.Ac(t)),e||o.add(t)}));var u=this.kl;return u.clear(),a.each((function(t){u.add(i.Ac(t)),e&&o.add(t)})),t=i.cloneDeep(o.Fa()),0<l.count&&(null===n&&(n={}),e?n.removedLinkKeys=l.Fa():n.insertedLinkKeys=l.Fa()),0<t.length&&(null===n&&(n={}),n.modifiedLinkData=t),0<u.count&&(null===n&&(n={}),e?n.insertedLinkKeys=u.Fa():n.removedLinkKeys=u.Fa()),u.clear(),l.clear(),n},e.rm=function(){var t=mf.prototype.rm.call(this),e="";return"category"!==this.linkCategoryProperty&&"string"==typeof this.linkCategoryProperty&&(e+=',\n "linkCategoryProperty": '+this.quote(this.linkCategoryProperty)),""!==this.linkKeyProperty&&"string"==typeof this.linkKeyProperty&&(e+=',\n "linkKeyProperty": '+this.quote(this.linkKeyProperty)),"from"!==this.linkFromKeyProperty&&"string"==typeof this.linkFromKeyProperty&&(e+=',\n "linkFromKeyProperty": '+this.quote(this.linkFromKeyProperty)),"to"!==this.linkToKeyProperty&&"string"==typeof this.linkToKeyProperty&&(e+=',\n "linkToKeyProperty": '+this.quote(this.linkToKeyProperty)),""!==this.linkFromPortIdProperty&&"string"==typeof this.linkFromPortIdProperty&&(e+=',\n "linkFromPortIdProperty": '+this.quote(this.linkFromPortIdProperty)),""!==this.linkToPortIdProperty&&"string"==typeof this.linkToPortIdProperty&&(e+=',\n "linkToPortIdProperty": '+this.quote(this.linkToPortIdProperty)),""!==this.linkLabelKeysProperty&&"string"==typeof this.linkLabelKeysProperty&&(e+=',\n "linkLabelKeysProperty": '+this.quote(this.linkLabelKeysProperty)),"isGroup"!==this.nodeIsGroupProperty&&"string"==typeof this.nodeIsGroupProperty&&(e+=',\n "nodeIsGroupProperty": '+this.quote(this.nodeIsGroupProperty)),"group"!==this.nodeGroupKeyProperty&&"string"==typeof this.nodeGroupKeyProperty&&(e+=',\n "nodeGroupKeyProperty": '+this.quote(this.nodeGroupKeyProperty)),t+e},e.gp=function(t){mf.prototype.gp.call(this,t),t.linkKeyProperty&&(this.linkKeyProperty=t.linkKeyProperty),t.linkFromKeyProperty&&(this.linkFromKeyProperty=t.linkFromKeyProperty),t.linkToKeyProperty&&(this.linkToKeyProperty=t.linkToKeyProperty),t.linkFromPortIdProperty&&(this.linkFromPortIdProperty=t.linkFromPortIdProperty),t.linkToPortIdProperty&&(this.linkToPortIdProperty=t.linkToPortIdProperty),t.linkCategoryProperty&&(this.linkCategoryProperty=t.linkCategoryProperty),t.linkLabelKeysProperty&&(this.linkLabelKeysProperty=t.linkLabelKeysProperty),t.nodeIsGroupProperty&&(this.nodeIsGroupProperty=t.nodeIsGroupProperty),t.nodeGroupKeyProperty&&(this.nodeGroupKeyProperty=t.nodeGroupKeyProperty)},e.Rv=function(){return mf.prototype.Rv.call(this)+(',\n "linkDataArray": '+Sf(this,this.linkDataArray,!0))},e.kv=function(t){mf.prototype.kv.call(this,t),t=t.linkDataArray,Array.isArray(t)&&(this.dm(t),this.linkDataArray=t)},e.Pv=function(t,e){""===this.linkKeyProperty&&x("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var n=mf.prototype.Pv.call(this,t,e),i=this,r=new J,o=new J,a=new J,s=this.vh;t.changes.each((function(t){t.model===i&&("linkDataArray"===t.modelChange?t.change===pn?r.add(t.newValue):t.change===gn&&a.add(t.oldValue):i.Jc(t.object)?o.add(t.object):null!==t.object&&(null!==t.object&&s&&s.contains(t.object)?s.get(t.object).each((function(t){i.Jc(t)&&o.add(t)})):t.object instanceof mf||i.lb(t.object)||Xf(i,t.object).each((function(t){o.add(t)}))))}));var l=this.il;l.clear(),r.each((function(t){l.add(i.Ac(t)),e||o.add(t)}));var u=this.kl;return u.clear(),a.each((function(t){u.add(i.Ac(t)),e&&o.add(t)})),t=n,0<l.count&&(t+=(e?this.Xv:this.Vv)+Sf(this,l.Fa(),!0)),0<o.count&&(t+=this.iy+Sf(this,o.Fa(),!0)),0<u.count&&(t+=(e?this.Vv:this.Xv)+Sf(this,u.Fa(),!0)),u.clear(),l.clear(),t},e.fp=function(t){(void 0!==t.linkCategoryProperty&&t.linkCategoryProperty!==this.linkCategoryProperty||void 0!==t.linkKeyProperty&&t.linkKeyProperty!==this.linkKeyProperty||void 0!==t.linkFromKeyProperty&&t.linkFromKeyProperty!==this.linkFromKeyProperty||void 0!==t.linkToKeyProperty&&t.linkToKeyProperty!==this.linkToKeyProperty||void 0!==t.linkFromPortIdProperty&&t.linkFromPortIdProperty!==this.linkFromPortIdProperty||void 0!==t.linkToPortIdProperty&&t.linkToPortIdProperty!==this.linkToPortIdProperty||void 0!==t.linkLabelKeysProperty&&t.linkLabelKeysProperty!==this.linkLabelKeysProperty||void 0!==t.nodeIsGroupProperty&&t.nodeIsGroupProperty!==this.nodeIsGroupProperty||void 0!==t.nodeGroupKeyProperty&&t.nodeGroupKeyProperty!==this.nodeGroupKeyProperty)&&x("applyIncrementalJson cannot change Model properties"),mf.prototype.fp.call(this,t);var e=t.insertedLinkKeys;if(Array.isArray(e))for(var n=e.length,i=0;i<n;i++){var r=e[i],o=this.jh(r);null===o&&(o=this.Jo({}),this.Ks(o,r),this.fi(o))}if(e=t.modifiedLinkData,Array.isArray(e))for(n=e.length,i=0;i<n;i++)if(r=e[i],o=this.Ac(r),null!==(o=this.jh(o))){for(var a in r)"__gohashid"!==a&&a!==this.linkKeyProperty&&this.setDataProperty(o,a,r[a]);np(this,r,o)}if(t=t.removedLinkKeys,Array.isArray(t))for(a=t.length,e=0;e<a;e++)null!==(n=this.jh(t[e]))&&this.bm(n)},Yf.prototype.changeState=function(t,e){if(null!==t&&t.model===this){if(t.change===fn){var n=t.object,i=t.propertyName;if(i===this.linkKeyProperty&&this.Jc(n)){var r=t.I(e);return void 0!==(e=t.I(!e))&&this.wb.remove(e),void 0!==r&&this.wb.add(r,n),void zf(n,i,r)}}else if(t.change===pn){if(n=t.newParam,"linkDataArray"===t.modelChange)return void(C(t=t.newValue)&&"number"==typeof n&&(i=this.Ac(t),e?(this.$f.remove(t),this.md[n]===t&&this.md.splice(n,1),void 0!==i&&this.wb.remove(i)):(this.$f.add(t),this.md[n]!==t&&this.md.splice(n,0,t),void 0!==i&&this.wb.add(i,t))));if("linkLabelKeys"===t.modelChange)return i=this.Ef(t.object),void(Array.isArray(i)&&"number"==typeof n&&(e?(n=i.indexOf(t.newValue),0<=n&&i.splice(n,1)):0>i.indexOf(t.newValue)&&i.splice(n,0,t.newValue)))}else if(t.change===gn){if(n=t.oldParam,"linkDataArray"===t.modelChange)return void(C(t=t.oldValue)&&"number"==typeof n&&(i=this.Ac(t),e?(this.$f.add(t),this.md[n]!==t&&this.md.splice(n,0,t),void 0!==i&&this.wb.add(i,t)):(this.$f.remove(t),this.md[n]===t&&this.md.splice(n,1),void 0!==i&&this.wb.remove(i))));if("linkLabelKeys"===t.modelChange)return i=this.Ef(t.object),void(Array.isArray(i)&&"number"==typeof n&&(e?0>i.indexOf(t.newValue)&&i.splice(n,0,t.newValue):(n=i.indexOf(t.newValue),0<=n&&i.splice(n,1))))}mf.prototype.changeState.call(this,t,e)}},(e=Yf.prototype).Vl=function(t){if(void 0!==t){var e=this.Ri;if(null!==e){var n=this.hc(t);null===n&&(zf(n=this.copyNodeData(e),this.nodeKeyProperty,t),this.xf(n))}return t}},e.yx=function(t){return qf(this,t,!0)},e.wv=function(t,e){Kf(this,t,e,!0)},e.Bx=function(t){return qf(this,t,!1)},e.Bv=function(t,e){Kf(this,t,e,!1)},e.zx=function(t){return Qf(this,t,!0)},e.xv=function(t,e){Jf(this,t,e,!0)},e.Cx=function(t){return Qf(this,t,!1)},e.Cv=function(t,e){Jf(this,t,e,!1)},e.Ef=function(t){if(null===t)return ip;var e=this.je;return""===e||void 0===(t=Ff(t,e))?ip:t},e.Ls=function(t,e){if(null!==t){var n=this.je;if(""!==n)if(this.Jc(t)){var i=Ff(t,n);if(void 0===i&&(i=ip),i!==e){if(Array.isArray(i))for(var r=i.length,o=0;o<r;o++)jf(this,i[o],t);for(zf(t,n,e),r=e.length,o=0;o<r;o++){var a=e[o];null===this.hc(a)&&Nf(this,a,t)}Mf(this,"linkLabelKeys",fn,n,t,i,e),"string"==typeof n&&this.La(t,n)}}else zf(t,n,e)}},e.Bu=function(t,e){if(null!=e&&null!==t){var n=this.je;if(""!==n){var i=Ff(t,n);if(void 0===i)(n=[]).push(e),this.Ls(t,n);else if(Array.isArray(i)){var r=i.indexOf(e);0<=r||(r=i.length,i.push(e),this.Jc(t)&&(null===this.hc(e)&&Nf(this,e,t),Mf(this,"linkLabelKeys",pn,n,t,null,e,null,r)))}else x(n+" property is not an Array; cannot addLabelKeyForLinkData: "+t)}}},e.Qx=function(t,e){if(null!=e&&null!==t){var n=this.je;if(""!==n){var i=Ff(t,n);if(Array.isArray(i)){var r=i.indexOf(e);0>r||(i.splice(r,1),this.Jc(t)&&(jf(this,e,t),Mf(this,"linkLabelKeys",gn,n,t,e,null,r,null)))}else void 0!==i&&x(n+" property is not an Array; cannot removeLabelKeyforLinkData: "+t)}}},e.Ac=function(t){if(null!==t){var e=this.Jh;if(""!==e&&void 0!==(e=Ff(t,e))){if(Ef(e))return e;x("Key value for link data "+t+" is not a number or a string: "+e)}}},e.Ks=function(t,e){if(null!==t){var n=this.Jh;if(""!==n)if(this.Jc(t)){var i=Ff(t,n);i!==e&&null===this.jh(e)&&(zf(t,n,e),void 0!==i&&this.wb.remove(i),this.wb.add(e,t),Mf(this,"linkKey",fn,n,t,i,e),"string"==typeof n&&this.La(t,n))}else zf(t,n,e)}},e.jh=function(t){return null===t&&x("GraphLinksModel.findLinkDataForKey:key must not be null"),void 0!==t&&Ef(t)?this.wb.I(t):null},e.Bs=function(t){if(null!==t){var e=this.Jh;if(""!==e){var n=this.Ac(t);if(void 0===n||this.wb.contains(n)){var i=this.cl;if(null!==i&&(null!=(n=i(this,t))&&!this.wb.contains(n)))return void zf(t,e,n);if("string"==typeof n){for(i=2;this.wb.contains(n+i);)i++;zf(t,e,n+i)}else if(void 0===n||"number"==typeof n){for(n=-this.wb.count-1;this.wb.contains(n);)n--;zf(t,e,n)}}}}},e.Jc=function(t){return null!==t&&this.$f.contains(t)},e.fi=function(t){null!==t&&(tt(t),this.Jc(t)||$f(this,t,!0))},e.Ey=function(t){if(Array.isArray(t))for(var e=t.length,n=0;n<e;n++)this.fi(t[n]);else for(t=t.iterator;t.next();)this.fi(t.value)},e.bm=function(t){null!==t&&tp(this,t,!0)},e.lA=function(t){if(Array.isArray(t))for(var e=t.length,n=0;n<e;n++)this.bm(t[n]);else for(t=t.iterator;t.next();)this.bm(t.value)},e.Zz=function(t){if(""===this.linkKeyProperty&&x("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),t!==this.linkDataArray&&A(t)){var e=this.kl;e.clear(),e.addAll(this.wb.iteratorKeys);var n=this.il;n.clear();for(var i=t.length,r=0;r<i;r++){var o=t[r],a=this.Ac(o);if(void 0!==a){n.add(a);var s=this.jh(a);s!==o&&(null!==s?(this.Do(s,o),np(this,o,s)):(o=this.cloneDeep(o),this.Ks(o,a),this.fi(o)))}else a=this.cloneDeep(o),this.fi(a),n.add(this.Ac(a))}for(t=e.iterator;t.next();)i=t.value,n.contains(i)||(i=this.jh(i))&&this.bm(i);e.clear(),n.clear()}},e.Jo=function(t){if(null===t)return null;var e=this.Ak;return C(t=null!==e?e(t,this):Bf(this,t,!0))&&($(t),""!==this.lf&&zf(t,this.lf,void 0),""!==this.mf&&zf(t,this.mf,void 0),""!==this.je&&zf(t,this.je,[])),t},e.Yu=function(t){if(null===t)return!1;var e=this.jl;return""!==e&&!!Ff(t,e)},e.lh=function(t){if(null!==t){var e=this.Je;if(""!==e&&void 0!==(e=Ff(t,e))){if(Ef(e))return e;x("GroupKey value for node data "+t+" is not a number or a string: "+e)}}},e.mp=function(t,e){if(null===e&&(e=void 0),null!==t){var n=this.Je;if(""!==n)if(this.lb(t)){var i=Ff(t,n);i!==e&&(jf(this,i,t),zf(t,n,e),null===this.hc(e)&&Nf(this,e,t),Mf(this,"nodeGroupKey",fn,n,t,i,e),"string"==typeof n&&this.La(t,n))}else zf(t,n,e)}},Yf.prototype.copyNodeData=function(t){return null===t?null:(t=mf.prototype.copyNodeData.call(this,t),this.Ij||""===this.Je||void 0===Ff(t,this.Je)||zf(t,this.Je,void 0),t)},Yf.prototype.setDataProperty=function(t,e,n){if(this.lb(t)){if(e===this.nodeKeyProperty)return void this.km(t,n);if(e===this.nodeCategoryProperty)return void this.jm(t,n);if(e===this.nodeGroupKeyProperty)return void this.mp(t,n)}else if(this.Jc(t)){if(e===this.linkFromKeyProperty)return void Kf(this,t,n,!0);if(e===this.linkToKeyProperty)return void Kf(this,t,n,!1);if(e===this.linkFromPortIdProperty)return void Jf(this,t,n,!0);if(e===this.linkToPortIdProperty)return void Jf(this,t,n,!1);if(e===this.linkKeyProperty)return void this.Ks(t,n);if(e===this.linkCategoryProperty)return void this.lp(t,n);if(e===this.linkLabelKeysProperty)return void this.Ls(t,n)}var i=Ff(t,e);i!==n&&(zf(t,e,n),this.Fs(t,e,i,n))},(e=Yf.prototype).Do=function(t,e){if(e){var n,i=this.lb(t),r=this.Jc(t);for(n in e)"__gohashid"===n||i&&n===this.nodeKeyProperty||i&&n===this.nodeIsGroupProperty&&Ff(t,n)===e[n]||r&&n===this.linkKeyProperty||this.setDataProperty(t,n,e[n])}},e.jp=function(t,e){mf.prototype.jp.call(this,t,e);for(var n=this.kb.iterator;n.next();)this.qv(n.value,t,e);for(n=this.$f.iterator;n.next();){var i=n.value,r=t,o=e;if(qf(this,i,!0)===r){var a=this.lf;zf(i,a,o),Mf(this,"linkFromKey",fn,a,i,r,o),"string"==typeof a&&this.La(i,a)}if(qf(this,i,!1)===r&&(zf(i,a=this.mf,o),Mf(this,"linkToKey",fn,a,i,r,o),"string"==typeof a&&this.La(i,a)),a=this.Ef(i),Array.isArray(a))for(var s=a.length,l=this.je,u=0;u<s;u++)a[u]===r&&(a[u]=o,Mf(this,"linkLabelKeys",pn,l,i,r,o,u,u))}},e.qv=function(t,e,n){if(this.lh(t)===e){var i=this.Je;zf(t,i,n),Mf(this,"nodeGroupKey",fn,i,t,e,n),"string"==typeof i&&this.La(t,i)}},e.Lv=function(){mf.prototype.Lv.call(this);for(var t=this.linkDataArray,e=t.length,n=0;n<e;n++)ep(this,t[n])},e.fm=function(t){mf.prototype.fm.call(this,t);var e=If(this,t=this.wa(t));if(null!==e){var n=T();for(e=e.iterator;e.next();){var i=e.value;if(this.lb(i)){if(this.lh(i)===t){var r=this.Je;Mf(this,"nodeGroupKey",fn,r,i,t,t),"string"==typeof r&&this.La(i,r),n.push(i)}}else if(qf(this,i,!0)===t&&(r=this.lf,Mf(this,"linkFromKey",fn,r,i,t,t),"string"==typeof r&&this.La(i,r),n.push(i)),qf(this,i,!1)===t&&(r=this.mf,Mf(this,"linkToKey",fn,r,i,t,t),"string"==typeof r&&this.La(i,r),n.push(i)),r=this.Ef(i),Array.isArray(r))for(var o=r.length,a=this.je,s=0;s<o;s++)r[s]===t&&(Mf(this,"linkLabelKeys",pn,a,i,t,t,s,s),n.push(i))}for(e=0;e<n.length;e++)jf(this,t,n[e]);N(n)}},e.em=function(t){mf.prototype.em.call(this,t);var e=this.lh(t);null===this.hc(e)&&Nf(this,e,t)},e.qp=function(t){mf.prototype.qp.call(this,t),jf(this,this.lh(t),t)},e.ps=function(t){if(null===t)return"";var e=this.dj;return""===e||void 0===(e=Ff(t,e))?"":"string"==typeof e?e:void x("getCategoryForLinkData found a non-string category for "+t+": "+e)},Yf.prototype.getLinkCategoryForData=function(t){return this.ps(t)},Yf.prototype.lp=function(t,e){if(null!==t){var n=this.dj;if(""!==n)if(this.Jc(t)){var i=Ff(t,n);void 0===i&&(i=""),i!==e&&(zf(t,n,e),Mf(this,"linkCategory",fn,n,t,i,e),"string"==typeof n&&this.La(t,n))}else zf(t,n,e)}},Yf.prototype.setLinkCategoryForData=function(t,e){this.lp(t,e)},(e=Yf.prototype).lm=function(t,e){mf.prototype.lm.call(this,t,e),this.mp(e,this.lh(t))},e.Wj=function(){return!0},e.ri=function(){return!0},e.xs=function(){return!0},e.Xj=function(){return!0},d.Object.defineProperties(Yf.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(t){var e=this.Ri;e!==t&&(this.Ri=t,this.g("archetypeNodeData",e,t))}},linkFromKeyProperty:{get:function(){return this.lf},set:function(t){var e=this.lf;e!==t&&(this.lf=t,this.g("linkFromKeyProperty",e,t))}},linkToKeyProperty:{get:function(){return this.mf},set:function(t){var e=this.mf;e!==t&&(this.mf=t,this.g("linkToKeyProperty",e,t))}},linkFromPortIdProperty:{get:function(){return this.ej},set:function(t){var e=this.ej;e!==t&&(this.ej=t,this.g("linkFromPortIdProperty",e,t))}},linkToPortIdProperty:{get:function(){return this.fj},set:function(t){var e=this.fj;e!==t&&(this.fj=t,this.g("linkToPortIdProperty",e,t))}},linkLabelKeysProperty:{get:function(){return this.je},set:function(t){var e=this.je;e!==t&&(this.je=t,this.g("linkLabelKeysProperty",e,t))}},linkDataArray:{get:function(){return this.md},set:function(t){var e=this.md;if(e!==t){this.wb.clear();for(var n=t.length,i=0;i<n;i++){var r=t[i];C(r)||x("GraphLinksModel.linkDataArray must only contain Objects, not: "+r),tt(r)}if(this.md=t,""!==this.linkKeyProperty){for(i=new K,r=0;r<n;r++){var o=t[r],a=this.Ac(o);void 0===a||null!==this.wb.I(a)?i.add(o):this.wb.add(a,o)}for(i=i.iterator;i.next();)r=i.value,this.Bs(r),void 0!==(o=this.Ac(r))&&this.wb.add(o,r)}for(i=new J,r=0;r<n;r++)i.add(t[r]);for(this.$f=i,Mf(this,"linkDataArray",fn,"linkDataArray",this,e,t),e=0;e<n;e++)ep(this,t[e])}}},linkKeyProperty:{get:function(){return this.Jh},set:function(t){var e=this.Jh;if(e!==t){this.Jh=t,this.wb.clear();for(var n=this.linkDataArray.length,i=0;i<n;i++){var r=this.linkDataArray[i],o=this.Ac(r);void 0===o&&(this.Bs(r),o=this.Ac(r)),void 0!==o&&this.wb.add(o,r)}this.g("linkKeyProperty",e,t)}}},makeUniqueLinkKeyFunction:{get:function(){return this.cl},set:function(t){var e=this.cl;e!==t&&(this.cl=t,this.g("makeUniqueLinkKeyFunction",e,t))}},copyLinkDataFunction:{get:function(){return this.Ak},set:function(t){var e=this.Ak;e!==t&&(this.Ak=t,this.g("copyLinkDataFunction",e,t))}},nodeIsGroupProperty:{get:function(){return this.jl},set:function(t){var e=this.jl;e!==t&&(this.jl=t,this.g("nodeIsGroupProperty",e,t))}},nodeGroupKeyProperty:{get:function(){return this.Je},set:function(t){var e=this.Je;e!==t&&(this.Je=t,this.g("nodeGroupKeyProperty",e,t))}},Ij:{get:function(){return this.Lm},set:function(t){this.Lm!==t&&(this.Lm=t)}},linkCategoryProperty:{get:function(){return this.dj},set:function(t){var e=this.dj;e!==t&&(this.dj=t,this.g("linkCategoryProperty",e,t))}},type:{get:function(){return"GraphLinksModel"}}}),Yf.prototype.setCategoryForLinkData=Yf.prototype.lp,Yf.prototype.getCategoryForLinkData=Yf.prototype.ps,Yf.prototype.assignAllDataProperties=Yf.prototype.Do,Yf.prototype.setGroupKeyForNodeData=Yf.prototype.mp,Yf.prototype.getGroupKeyForNodeData=Yf.prototype.lh,Yf.prototype.isGroupForNodeData=Yf.prototype.Yu,Yf.prototype.copyLinkData=Yf.prototype.Jo,Yf.prototype.mergeLinkDataArray=Yf.prototype.Zz,Yf.prototype.removeLinkDataCollection=Yf.prototype.lA,Yf.prototype.removeLinkData=Yf.prototype.bm,Yf.prototype.addLinkDataCollection=Yf.prototype.Ey,Yf.prototype.addLinkData=Yf.prototype.fi,Yf.prototype.containsLinkData=Yf.prototype.Jc,Yf.prototype.makeLinkDataKeyUnique=Yf.prototype.Bs,Yf.prototype.findLinkDataForKey=Yf.prototype.jh,Yf.prototype.setKeyForLinkData=Yf.prototype.Ks,Yf.prototype.getKeyForLinkData=Yf.prototype.Ac,Yf.prototype.removeLabelKeyForLinkData=Yf.prototype.Qx,Yf.prototype.addLabelKeyForLinkData=Yf.prototype.Bu,Yf.prototype.setLabelKeysForLinkData=Yf.prototype.Ls,Yf.prototype.getLabelKeysForLinkData=Yf.prototype.Ef,Yf.prototype.setToPortIdForLinkData=Yf.prototype.Cv,Yf.prototype.getToPortIdForLinkData=Yf.prototype.Cx,Yf.prototype.setFromPortIdForLinkData=Yf.prototype.xv,Yf.prototype.getFromPortIdForLinkData=Yf.prototype.zx,Yf.prototype.setToKeyForLinkData=Yf.prototype.Bv,Yf.prototype.getToKeyForLinkData=Yf.prototype.Bx,Yf.prototype.setFromKeyForLinkData=Yf.prototype.wv,Yf.prototype.getFromKeyForLinkData=Yf.prototype.yx,Yf.prototype.clear=Yf.prototype.clear;var ip=Object.freeze([]);function rp(t,e){mf.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",void 0!==t&&(A(t)?this.nodeDataArray=t:e=t),e&&(Object.assign(this,e),t=e.Changed)&&(delete this.Changed,this.Pe(t))}function op(t){Nd.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=vp,this.Ti=0,this.Zv=new pt,this.Jp=this.me=0,this.Xr=new jp,this.gt=this.mj=0,this.ty=600,this.eo=NaN,this.Cm=1,this.ro=0,this.ul=360,this.Rb=vp,this.K=xp,this.nd=Lp,this.hd=Gd,this.tf=6,this.Nn=Tp,t&&Object.assign(this,t)}function ap(t,e,n,i,r){var o=t.Wp,a=t.lc;t=t.me,i=i*Math.PI/180,n=n*Math.PI/180;for(var s=e.length,l=0;l<s;l++){var u=i+(r===xp?l*n/(360<=o?s:s-1):-l*n/s),c=e.M(l),h=a*Math.tan(u)/t;h=Math.sqrt((a*a+t*t*h*h)/(1+h*h)),c.centerX=h*Math.cos(u),c.centerY=h*Math.sin(u),c.actualAngle=180*u/Math.PI}}function sp(t,e,n,i){var r=t.lc,o=t.me,a=t.Ti;n=n*Math.PI/180;for(var s=e.length,l=0;l<s;l++){var u=e.M(l),c=e.M(l===s-1?0:l+1),h=o*Math.sin(n);u.centerX=r*Math.cos(n),u.centerY=h,u.actualAngle=180*n/Math.PI,isNaN(u.diameter)&&Op(u,0),isNaN(c.diameter)&&Op(c,0),u=mp(t,r,o,i===xp?n:-n,(u.diameter+c.diameter)/2+a),n+=i===xp?u:-u}}function lp(t,e,n,i){var r=t.lc,o=t.me,a=t.Jp;n=n*Math.PI/180;for(var s=e.length,l=0;l<s;l++){var u=e.M(l);u.centerX=r*Math.cos(n),u.centerY=o*Math.sin(n),u.actualAngle=180*n/Math.PI,u=mp(t,r,o,i===xp?n:-n,a),n+=i===xp?u:-u}}function up(t,e,n,i,r){var o=t.Wp;if(t.mj=0,t.Xr=new jp,360>n){for(o=i+(r===xp?o:-o);0>o;)o+=360;180<(o%=360)&&(o-=360),o*=Math.PI/180,t.gt=o,hp(t,e,n,i,r)}else cp(t,e,n,i,r);t.Xr.commit(e)}function cp(t,e,n,i,r){var o=t.lc,a=t.Ti,s=t.Zm,l=o*Math.cos(i*Math.PI/180),u=t.me*Math.sin(i*Math.PI/180),c=e.Fa();if(3===c.length)c[0].centerX=o,c[0].centerY=0,c[1].centerX=c[0].centerX-c[0].width/2-c[1].width/2-a,c[1].y=c[0].y,c[2].centerX=(c[0].centerX+c[1].centerX)/2,c[2].y=c[0].y-c[2].height-a;else if(4===c.length)c[0].centerX=o,c[0].centerY=0,c[2].centerX=-c[0].centerX,c[2].centerY=c[0].centerY,c[1].centerX=0,c[1].y=Math.min(c[0].y,c[2].y)-c[1].height-a,c[3].centerX=0,c[3].y=Math.max(c[0].y+c[0].height+a,c[2].y+c[2].height+a);else{o=pt.alloc();for(var h=0;h<c.length&&(c[h].centerX=l,c[h].centerY=u,!(h>=c.length-1));h++)dp(t,l,u,c,h,r,o)||fp(t,l,u,c,h,r,o),l=o.x,u=o.y;if(pt.free(o),t.mj++,!(23<t.mj)){l=c[0].centerX,u=c[0].centerY,o=c[c.length-1].centerX,h=c[c.length-1].centerY;var d=Math.abs(l-o)-((c[0].width+c[c.length-1].width)/2+a),f=Math.abs(u-h)-((c[0].height+c[c.length-1].height)/2+a);a=0,1>Math.abs(f)?Math.abs(l-o)<(c[0].width+c[c.length-1].width)/2&&(a=0):a=0<f?f:1>Math.abs(d)?0:d,l=Math.abs(o)>Math.abs(h)?0<o!=u>h:0<h!=l<o,(l=r===xp?l:!l)&&(a=-Math.abs(a),a=Math.min(a,-c[c.length-1].width),a=Math.min(a,-c[c.length-1].height)),t.Xr.compare(a,c),1<Math.abs(a)&&(t.lc=8>t.mj?t.lc-a/(2*Math.PI):5>c.length&&10<a?t.lc/2:t.lc-(0<a?1.7:-2.3),t.me=t.lc*s,cp(t,e,n,i,r))}}}function hp(t,e,n,i,r){for(var o=t.lc,a=t.me,s=t.Zm,l=o*Math.cos(i*Math.PI/180),u=a*Math.sin(i*Math.PI/180),c=pt.alloc(),h=e.Fa(),d=0;d<h.length&&(h[d].centerX=l,h[d].centerY=u,!(d>=h.length-1));d++)dp(t,l,u,h,d,r,c)||fp(t,l,u,h,d,r,c),l=c.x,u=c.y;if(pt.free(c),t.mj++,!(23<t.mj)){if(l=Math.atan2(u,l),l=r===xp?t.gt-l:l-t.gt,o=(l=Math.abs(l)<Math.abs(l-2*Math.PI)?l:l-2*Math.PI)*(o+a)/2,a=t.Xr,Math.abs(o)<Math.abs(a.Pl))for(a.Pl=o,a.mk=[],a.tm=[],l=0;l<h.length;l++)a.mk[l]=h[l].bounds.x,a.tm[l]=h[l].bounds.y;1<Math.abs(o)&&(t.lc=8>t.mj?t.lc-o/(2*Math.PI):t.lc-(0<o?1.7:-2.3),t.me=t.lc*s,hp(t,e,n,i,r))}}function dp(t,e,n,i,r,o,a){var s=t.lc,l=t.me,u=0;t=(i[r].width+i[r+1].width)/2+t.Ti;var c=!1;if(0<=n!=(o===xp)){if((o=e+t)>s){if((o=e-t)<-s)return a.x=o,a.y=u,!1;c=!0}}else if((o=e-t)<-s){if((o=e+t)>s)return a.x=o,a.y=u,!1;c=!0}return u=Math.sqrt(1-Math.min(1,o*o/(s*s)))*l,0>n!==c&&(u=-u),Math.abs(n-u)>(i[r].height+i[r+1].height)/2?(a.x=o,a.y=u,!1):(a.x=o,a.y=u,!0)}function fp(t,e,n,i,r,o,a){var s=t.lc,l=t.me,u=0;if(t=(i[r].height+i[r+1].height)/2+t.Ti,i=!1,0<=e!=(o===xp)){if((o=n-t)<-l){if((o=n+t)>l)return a.x=u,void(a.y=o);i=!0}}else if((o=n+t)>l){if((o=n-t)<-l)return a.x=u,void(a.y=o);i=!0}u=Math.sqrt(1-Math.min(1,o*o/(l*l)))*s,0>e!==i&&(u=-u),a.x=u,a.y=o}function pp(t,e,n,i,r){var o=t.ty;if(.001>Math.abs(t.Zm-1))return void 0!==i&&void 0!==r?r*e:2*Math.PI*e;t=e>n?Math.sqrt(e*e-n*n)/e:Math.sqrt(n*n-e*e)/n;for(var a=0,s=void 0!==i&&void 0!==r?r/(o+1):Math.PI/(2*(o+1)),l=0,u=0;u<=o;u++){l=void 0!==i&&void 0!==r?i+u*r/o:u*Math.PI/(2*o);var c=Math.sin(l);a+=Math.sqrt(1-t*t*c*c)*s}return void 0!==i&&void 0!==r?(e>n?e:n)*a:4*(e>n?e:n)*a}function gp(t,e,n,i,r){return e/(void 0!==i&&void 0!==r?pp(t,1,n,i,r):pp(t,1,n))}function mp(t,e,n,i,r){if(.001>Math.abs(t.Zm-1))return r/e;var o=e>n?Math.sqrt(e*e-n*n)/e:Math.sqrt(n*n-e*e)/n,a=0;t=2*Math.PI/(700*t.network.vertexes.count),e>n&&(i+=Math.PI/2);for(var s=0;;s++){var l=Math.sin(i+s*t);if((a+=(e>n?e:n)*Math.sqrt(1-o*o*l*l)*t)>=r)return s*t}}Yf.className="GraphLinksModel",Uf.GraphLinksModel=Yf,mf.constructGraphLinksModel=mf.constructGraphLinksModel=function(){return new Yf},mf.initDiagramModel=Of=function(){return new Yf},h(rp,mf),rp.constructGraphLinksModel=mf.constructGraphLinksModel,rp.prototype.cloneProtected=function(t){mf.prototype.cloneProtected.call(this,t),t.Ke=this.Ke,t.Nm=this.Nm,t.nj=this.nj},(e=rp.prototype).toString=function(t){if(void 0===t&&(t=0),2<=t)return this.np();var e=(""!==this.name?this.name:"")+" TreeModel";if(0<t){e+="\n node data:";for(var n=(t=this.nodeDataArray).length,i=0;i<n;i++){var r=t[i];e+=" "+this.wa(r)+":"+I(r)}}return e},e.rm=function(){var t=mf.prototype.rm.call(this),e="";return"parent"!==this.nodeParentKeyProperty&&"string"==typeof this.nodeParentKeyProperty&&(e+=',\n "nodeParentKeyProperty": '+this.quote(this.nodeParentKeyProperty)),t+e},e.gp=function(t){mf.prototype.gp.call(this,t),t.nodeParentKeyProperty&&(this.nodeParentKeyProperty=t.nodeParentKeyProperty)},e.fp=function(t){void 0!==t.nodeParentKeyProperty&&t.nodeParentKeyProperty!==this.nodeParentKeyProperty&&x("applyIncrementalJson cannot change Model properties"),mf.prototype.fp.call(this,t)},e.Vl=function(t){return t},e.mh=function(t){if(null!==t){var e=this.Ke;if(""!==e&&void 0!==(e=Ff(t,e))){if(Ef(e))return e;x("ParentKey value for node data "+t+" is not a number or a string: "+e)}}},e.qe=function(t,e){if(null===e&&(e=void 0),null!==t){var n=this.Ke;if(""!==n)if(e=this.Vl(e),this.lb(t)){var i=Ff(t,n);i!==e&&(jf(this,i,t),zf(t,n,e),null===this.hc(e)&&Nf(this,e,t),Mf(this,"nodeParentKey",fn,n,t,i,e),"string"==typeof n&&this.La(t,n))}else zf(t,n,e)}},e.ss=function(t){if(null===t)return"";var e=this.nj;return""===e||void 0===(e=Ff(t,e))?"":"string"==typeof e?e:(x("getParentLinkCategoryForNodeData found a non-string category for "+t+": "+e),"")},rp.prototype.getLinkCategoryForData=function(t){return this.ss(t)},rp.prototype.Ms=function(t,e){if(null!==t){var n=this.nj;if(""!==n)if(this.lb(t)){var i=Ff(t,n);void 0===i&&(i=""),i!==e&&(zf(t,n,e),Mf(this,"parentLinkCategory",fn,n,t,i,e),"string"==typeof n&&this.La(t,n))}else zf(t,n,e)}},rp.prototype.setLinkCategoryForData=function(t,e){this.Ms(t,e)},rp.prototype.copyNodeData=function(t){return null===t?null:(t=mf.prototype.copyNodeData.call(this,t),this.Jj||""===this.Ke||void 0===Ff(t,this.Ke)||zf(t,this.Ke,void 0),t)},rp.prototype.setDataProperty=function(t,e,n){if(this.lb(t)){if(e===this.nodeKeyProperty)return void this.km(t,n);if(e===this.nodeCategoryProperty)return void this.jm(t,n);if(e===this.nodeParentKeyProperty)return void this.qe(t,n)}var i=Ff(t,e);i!==n&&(zf(t,e,n),this.Fs(t,e,i,n))},(e=rp.prototype).jp=function(t,e){mf.prototype.jp.call(this,t,e);for(var n=this.kb.iterator;n.next();)this.qv(n.value,t,e)},e.qv=function(t,e,n){if(this.mh(t)===e){var i=this.Ke;zf(t,i,n),Mf(this,"nodeParentKey",fn,i,t,e,n),"string"==typeof i&&this.La(t,i)}},e.fm=function(t){mf.prototype.fm.call(this,t);var e=If(this,t=this.wa(t));if(null!==e){var n=T();for(e=e.iterator;e.next();){var i=e.value;if(this.lb(i)&&this.mh(i)===t){var r=this.Ke;Mf(this,"nodeParentKey",fn,r,i,t,t),"string"==typeof r&&this.La(i,r),n.push(i)}}for(e=0;e<n.length;e++)jf(this,t,n[e]);N(n)}},e.em=function(t){mf.prototype.em.call(this,t);var e=this.mh(t);e=this.Vl(e),null===this.hc(e)&&Nf(this,e,t)},e.qp=function(t){mf.prototype.qp.call(this,t),jf(this,this.mh(t),t)},e.lm=function(t,e){mf.prototype.lm.call(this,t,e),this.Ms(e,this.ss(t)),this.qe(e,this.mh(t))},e.Tl=function(){return!0},e.xs=function(){return!0},d.Object.defineProperties(rp.prototype,{nodeParentKeyProperty:{get:function(){return this.Ke},set:function(t){var e=this.Ke;e!==t&&(this.Ke=t,this.g("nodeParentKeyProperty",e,t))}},Jj:{get:function(){return this.Nm},set:function(t){this.Nm!==t&&(this.Nm=t)}},parentLinkCategoryProperty:{get:function(){return this.nj},set:function(t){var e=this.nj;e!==t&&(this.nj=t,this.g("parentLinkCategoryProperty",e,t))}},linkCategoryProperty:{get:function(){return this.parentLinkCategoryProperty},set:function(t){this.parentLinkCategoryProperty=t}},type:{get:function(){return"TreeModel"}}}),rp.prototype.setParentLinkCategoryForNodeData=rp.prototype.Ms,rp.prototype.getParentLinkCategoryForNodeData=rp.prototype.ss,rp.prototype.setParentKeyForNodeData=rp.prototype.qe,rp.prototype.getParentKeyForNodeData=rp.prototype.mh,rp.className="TreeModel",Uf.TreeModel=rp,h(op,Nd),op.prototype.cloneProtected=function(t){Nd.prototype.cloneProtected.call(this,t),t.eo=this.eo,t.Cm=this.Cm,t.ro=this.ro,t.ul=this.ul,t.Rb=this.Rb,t.K=this.K,t.nd=this.nd,t.hd=this.hd,t.tf=this.tf,t.Nn=this.Nn},op.prototype.qb=function(t){t.classType===op?t===Mp||t===Ep||t===Cp||t===Ap||t===Lp?this.sorting=t:t===Pp||t===kp||t===xp||t===Sp?this.direction=t:t===wp||t===yp||t===vp||t===bp?this.arrangement=t:t!==Np&&t!==Tp||(this.nodeDiameterFormula=t):Nd.prototype.qb.call(this,t)},op.prototype.createNetwork=function(){return new Ip(this)},op.prototype.doLayout=function(t){if(null===this.network&&(this.network=this.makeNetwork(t)),this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin),1>=(t=this.network.vertexes).count)1===t.count&&((t=t.first()).centerX=0,t.centerY=0);else{var e=new K;e.addAll(t.iterator),t=new K;var n,i,r=new K,o=this.sort(e),a=this.Jp,s=this.arrangement,l=this.nodeDiameterFormula,u=this.radius;(!isFinite(u)||0>=u)&&(u=NaN);var c=this.aspectRatio;(!isFinite(c)||0>=c)&&(c=1);var h=this.startAngle;isFinite(h)||(h=0);var d=this.sweepAngle;if((!isFinite(d)||360<d||1>d)&&(d=360),e=this.spacing,isFinite(e)||(e=NaN),s===bp&&l===Np?s=vp:s===bp&&l!==Np&&(s=this.arrangement),(this.direction===Pp||this.direction===kp)&&this.sorting!==Lp){for(l=0;!(l>=o.length)&&(t.add(o.M(l)),!(l+1>=o.length));l+=2)r.add(o.M(l+1));this.direction===Pp?(this.arrangement===bp&&t.reverse(),(o=new K).addAll(t),o.addAll(r)):(this.arrangement===bp&&r.reverse(),(o=new K).addAll(r),o.addAll(t))}l=o.length;for(var f=i=n=0;f<o.length;f++){var p=h+d*i*(this.direction===xp?1:-1)/l,g=o.M(f).diameter;isNaN(g)&&(g=Op(o.M(f),p)),360>d&&(0===f||f===o.length-1)&&(g/=2),n+=g,i++}if(isNaN(u)||s===bp){if(isNaN(e)&&(e=6),s!==vp&&s!==bp){for(i=-1/0,a=0;a<l;a++)f=o.M(a),n=o.M(a===l-1?0:a+1),isNaN(f.diameter)&&Op(f,0),isNaN(n.diameter)&&Op(n,0),i=Math.max(i,(f.diameter+n.diameter)/2);a=i+e,u=s===wp?(i+e)/(2*Math.PI/l):gp(this,a*(360<=d?l:l-1),c,h*Math.PI/180,d*Math.PI/180)}else u=gp(this,n+(360<=d?l:l-1)*(s!==bp?e:1.6*e),c,h*Math.PI/180,d*Math.PI/180);i=u*c}else if(f=pp(this,u,i=u*c,h*Math.PI/180,d*Math.PI/180),isNaN(e))s!==vp&&s!==bp||(e=(f-n)/(360<=d?l:l-1));else if(s===vp||s===bp)(f=(f-n)/(360<=d?l:l-1))<e?i=(u=gp(this,n+e*(360<=d?l:l-1),c,h*Math.PI/180,d*Math.PI/180))*c:e=f;else{for(a=-1/0,n=0;n<l;n++)p=o.M(n),g=o.M(n===l-1?0:n+1),isNaN(p.diameter)&&Op(p,0),isNaN(g.diameter)&&Op(g,0),a=Math.max(a,(p.diameter+g.diameter)/2);(n=gp(this,(a+=e)*(360<=d?l:l-1),c,h*Math.PI/180,d*Math.PI/180))>u?i=(u=n)*c:a=f/(360<=d?l:l-1)}if(this.kw=s,this.lc=u,this.Zm=c,this.lw=h,this.Wp=d,this.Ti=e,this.me=i,this.Jp=a,e=o,o=this.kw,s=this.lc,u=this.lw,c=this.Wp,h=this.Ti,d=this.me,l=this.Jp,this.direction!==Pp&&this.direction!==kp||o!==bp)if(this.direction===Pp||this.direction===kp){switch(a=0,o){case yp:a=180*mp(this,s,d,u,l)/Math.PI;break;case vp:l=e=0,null!==(a=t.first())&&(e=Op(a,Math.PI/2)),null!==(a=r.first())&&(l=Op(a,Math.PI/2)),a=180*mp(this,s,d,u,h+(e+l)/2)/Math.PI;break;case wp:a=c/e.length}if(this.direction===Pp){switch(o){case yp:lp(this,t,u,Sp);break;case vp:sp(this,t,u,Sp);break;case wp:ap(this,t,c/2,u,Sp)}switch(o){case yp:lp(this,r,u+a,xp);break;case vp:sp(this,r,u+a,xp);break;case wp:ap(this,r,c/2,u+a,xp)}}else{switch(o){case yp:lp(this,r,u,Sp);break;case vp:sp(this,r,u,Sp);break;case wp:ap(this,r,c/2,u,Sp)}switch(o){case yp:lp(this,t,u+a,xp);break;case vp:sp(this,t,u+a,xp);break;case wp:ap(this,t,c/2,u+a,xp)}}}else switch(o){case yp:lp(this,e,u,this.direction);break;case vp:sp(this,e,u,this.direction);break;case wp:ap(this,e,c,u,this.direction);break;case bp:up(this,e,c,u,this.direction)}else up(this,e,c,u-c/2,xp)}this.updateParts(),this.network=null,this.isValidLayout=!0},op.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},op.prototype.commitNodes=function(){var t=null!==this.group&&null!==this.group.placeholder&&this.group.isSubGraphExpanded,e=t?this.group.location.copy():null,n=this.actualCenter;t?n=new pt(0,0):(n.x=this.arrangementOrigin.x+this.lc,n.y=this.arrangementOrigin.y+this.me);for(var i=this.network.vertexes.iterator;i.next();){var r=i.value;r.x+=n.x,r.y+=n.y,r.commit()}t&&(this.group.Va(),t=this.group.position.copy(),n=this.group.location.copy(),e=e.re(n.re(t)),this.group.move(e),this.Zv=e.re(t))},op.prototype.commitLinks=function(){for(var t=this.network.edges.iterator;t.next();)t.value.commit()},op.prototype.sort=function(t){switch(this.sorting){case Cp:break;case Ap:t.reverse();break;case Mp:t.sort(this.comparer);break;case Ep:t.sort(this.comparer),t.reverse();break;case Lp:return this.ak(function(t){for(var e=[],n=0;n<t.length;n++)e.push(0);n=new K;for(var i=0;i<t.length;i++){var r=-1,o=-1;if(0===i)for(var a=0;a<t.length;a++){var s=t.M(a).edgesCount;s>r&&(r=s,o=a)}else for(a=0;a<t.length;a++)(s=e[a])>r&&(r=s,o=a);for(n.add(t.M(o)),e[o]=-1,a=(o=t.M(o)).sourceEdges;a.next();)0>(r=t.indexOf(a.value.fromVertex))||0<=e[r]&&e[r]++;for(o=o.destinationEdges;o.next();)0>(r=t.indexOf(o.value.toVertex))||0<=e[r]&&e[r]++}return n}(t));default:x("Invalid sorting type.")}return t},op.prototype.ak=function(t){for(var e=[],n=0;n<t.length;n++){var i=t.M(n);e[n]=[];for(var r,o=i.destinationEdges;o.next();)(r=t.indexOf(o.value.toVertex))!==n&&0>e[n].indexOf(r)&&e[n].push(r);for(i=i.sourceEdges;i.next();)(r=t.indexOf(i.value.fromVertex))!==n&&0>e[n].indexOf(r)&&e[n].push(r)}for(o=[],n=0;n<e.length;n++)o[n]=0;n=[];var a=[],s=[];i=[],r=new K;for(var l=0,u=0;u<e.length;u++){var c=e[u].length;if(1===c)i.push(u);else if(0===c)r.add(t.M(u));else{if(0===l)n.push(u);else{for(var h=c=1/0,d=-1,f=[],p=0;p<n.length;p++)0>e[n[p]].indexOf(n[p===n.length-1?0:p+1])&&f.push(p===n.length-1?0:p+1);if(0===f.length)for(p=0;p<n.length;p++)f.push(p);for(p=0;p<f.length;p++){for(var g=f[p],m=e[u],v=0,y=0;y<a.length;y++){var w=o[a[y]],b=o[s[y]];if(w<b){var x=w;w=b}else x=b;if(x<g&&g<=w)for(b=0;b<m.length;b++){var S=m[b];0>n.indexOf(S)||x<o[S]&&o[S]<w||x===o[S]||w===o[S]||v++}else for(b=0;b<m.length;b++)S=m[b],0>n.indexOf(S)||x<o[S]&&o[S]<w&&x!==o[S]&&w!==o[S]&&v++}for(m=v,y=v=0;y<e[u].length;y++)0<=(x=n.indexOf(e[u][y]))&&(v+=(x=Math.abs(g-(x>=g?x+1:x)))<n.length+1-x?x:n.length+1-x);for(y=0;y<a.length;y++)(x=o[a[y]])>=g&&x++,(w=o[s[y]])>=g&&w++,x>w&&(b=w,w=x,x=b),w-x<(n.length+2)/2==(x<g&&g<=w)&&v++;(m<c||m===c&&v<h)&&(c=m,h=v,d=g)}for(n.splice(d,0,u),c=0;c<n.length;c++)o[n[c]]=c;for(c=0;c<e[u].length;c++)h=e[u][c],0<=n.indexOf(h)&&(a.push(u),s.push(h))}l++}}for(a=n.length;;){for(o=!0,s=0;s<i.length;s++)if(u=e[l=i[s]][0],0<=(c=n.indexOf(u))){for(d=h=0;d<e[u].length;d++)0>(f=n.indexOf(e[u][d]))||f===c||(h+=f<c!=(p=f>c?f-c:c-f)>a-p?1:-1);n.splice(0>h?c:c+1,0,l),i.splice(s,1),s--}else o=!1;if(o)break;n.push(i[0]),i.splice(0,1)}for(e=0;e<n.length;e++)r.add(t.M(n[e]));return r},d.Object.defineProperties(op.prototype,{radius:{get:function(){return this.eo},set:function(t){this.eo!==t&&(0<t||isNaN(t))&&(this.eo=t,this.C())}},aspectRatio:{get:function(){return this.Cm},set:function(t){this.Cm!==t&&0<t&&(this.Cm=t,this.C())}},startAngle:{get:function(){return this.ro},set:function(t){this.ro!==t&&(this.ro=t,this.C())}},sweepAngle:{get:function(){return this.ul},set:function(t){this.ul!==t&&(this.ul=0<t&&360>=t?t:360,this.C())}},arrangement:{get:function(){return this.Rb},set:function(t){this.Rb===t||t!==bp&&t!==vp&&t!==yp&&t!==wp||(this.Rb=t,this.C())}},direction:{get:function(){return this.K},set:function(t){this.K===t||t!==xp&&t!==Sp&&t!==Pp&&t!==kp||(this.K=t,this.C())}},sorting:{get:function(){return this.nd},set:function(t){this.nd===t||t!==Cp&&t!==Ap&&t!==Mp&&!Ep&&t!==Lp||(this.nd=t,this.C())}},comparer:{get:function(){return this.hd},set:function(t){this.hd!==t&&(this.hd=t,this.C())}},spacing:{get:function(){return this.tf},set:function(t){this.tf!==t&&(this.tf=t,this.C())}},nodeDiameterFormula:{get:function(){return this.Nn},set:function(t){this.Nn===t||t!==Tp&&t!==Np||(this.Nn=t,this.C())}},actualXRadius:{get:function(){return this.lc}},actualYRadius:{get:function(){return this.me}},actualSpacing:{get:function(){return this.Ti}},actualCenter:{get:function(){return this.Zv}}});var vp=new G(op,"ConstantSpacing",0),yp=new G(op,"ConstantDistance",1),wp=new G(op,"ConstantAngle",2),bp=new G(op,"Packed",3),xp=new G(op,"Clockwise",4),Sp=new G(op,"Counterclockwise",5),Pp=new G(op,"BidirectionalLeft",6),kp=new G(op,"BidirectionalRight",7),Cp=new G(op,"Forwards",8),Ap=new G(op,"Reverse",9),Mp=new G(op,"Ascending",10),Ep=new G(op,"Descending",11),Lp=new G(op,"Optimized",12),Tp=new G(op,"Pythagorean",13),Np=new G(op,"Circular",14);function jp(){this.Pl=-1/0,this.tm=this.mk=null}function Ip(t){Bd.call(this,t)}function Bp(t){zd.call(this,t),this.u=this.Si=NaN}function Op(t,e){var n=t.network;if(null===n)return NaN;if(null===(n=n.layout))return NaN;if(n.arrangement===bp)if(n.nodeDiameterFormula===Np)t.Si=Math.max(t.width,t.height);else{if(n=Math.abs(Math.sin(e)),e=Math.abs(Math.cos(e)),0===n)return t.width;if(0===e)return t.height;t.Si=Math.min(t.height/n,t.width/e)}else t.Si=n.nodeDiameterFormula===Np?Math.max(t.width,t.height):Math.sqrt(t.width*t.width+t.height*t.height);return t.Si}function Dp(t){Ud.call(this,t)}function Rp(t){Nd.call(this),this.ah=null,this.An=0,this.$d=new Tt(100,100).freeze(),this.Bm=!1,this.sf=!0,this.td=!1,this.dl=100,this.$m=1,this.Zf=1e3,this.In=10,this.fo=Math,this.Hk=.05,this.Gk=50,this.Ek=150,this.Fk=0,this.Vm=10,this.Um=5,t&&Object.assign(this,t)}function Fp(t,e,n){if(function(t,e){if(10<e||3>t.network.vertexes.count)return!1;for(t.ah=t.network.vertexes.Fa(),(t=t.ah).sort((function(t,e){return null===t||null===e||t===e?0:e.Vd-t.Vd})),e=t.length-1;0<=e&&1>=t[e].Vd;)e--;return 1<t.length-e}(t,e)){var i=t.Zf;t.Zf*=1+1/(e+1);var r=function(t,e){for(var n=t.network,i=new Wp(t),r=0;r<t.ah.length;r++){var o=t.ah[r];if(!(1<o.Vd))break;i.dh(o);var a=new Zp;a.Rs=o.Vd,a.Ss=o.width,a.Qs=o.height,a.Sv=o.focus.x,a.Tv=o.focus.y,null===o.We&&(o.We=new K),o.We.add(a),o.sv=o.We.count-1}for(o=n.edges.iterator;o.next();){var s=o.value;r=s.fromVertex,a=s.toVertex,r.network===i&&a.network===i?i.Bo(s):r.network===i?(null===(s=r.Hj)&&(s=new K,r.Hj=s),s.add(a),r.Vd--,r.sh+=a.sh):a.network===i&&(null===(s=a.Hj)&&(s=new K,a.Hj=s),s.add(r),a.Vd--,a.sh+=r.sh)}for(r=i.edges.iterator;r.next();)(o=r.value).length*=Math.max(1,_e.sqrt((o.fromVertex.sh+o.toVertex.sh)/(4*e+1)));for(e=i.vertexes.iterator;e.next();){var l=(r=e.value).Hj;if(null!==l&&0<l.count&&!(0>=(a=r.We.M(r.We.count-1).Rs-r.Vd))){for(var u=s=0,c=l.count-a;c<l.count;c++){var h=l.M(c),d=null;for(o=h.edges.iterator;o.next();){var f=o.value;if(f.Ax(h)===r){d=f;break}}null!==d&&(u+=d.length,s+=h.width*h.height)}o=r.centerX,l=r.centerY,c=r.width,h=r.height,d=r.focus,1>(f=c*h)&&(f=1),a=((s=_e.sqrt((s+f+u*u*4/(a*a))/f))-1)*c/2,s=(s-1)*h/2,r.bounds=new Bt(o-d.x-a,l-d.y-s,c+2*a,h+2*s),r.focus=new pt(d.x+a,d.y+s)}}return t.network=i,n}(t,e),o=Math.max(0,Math.max(Math.min(t.network.vertexes.count,n*(e+1)/11),10));for(t.maxIterations+=o,Fp(t,e+1,n),Hp(t,o),function(t,e){for(var n=t.network.vertexes.iterator;n.next();){var i=n.value;if(i.network=e,null!==i.We){var r=i.We.M(i.sv);i.Vd=r.Rs;var o=r.Sv,a=r.Tv;i.bounds=new Bt(i.centerX-o,i.centerY-a,r.Ss,r.Qs),i.focus=new pt(o,a),i.sv--}}for(n=t.network.edges.iterator;n.next();)n.value.network=e;t.network=e}(t,r),(e=r.vertexes.Fa()).sort((function(t,e){return null===t||null===e||t===e?0:e.Vd-t.Vd})),n=0;n<e.length;n++)zp(t,e[n]);t.Zf=i}}function zp(t,e){var n=e.Hj;if(null!==n&&0!==n.count){var i=e.centerX,r=e.centerY,o=e.width,a=e.height;null!==e.We&&0<e.We.count&&(o=(a=e.We.M(0)).Ss,a=a.Qs),o=_e.sqrt(o*o+a*a)/2;for(var s=!1,l=a=0,u=0,c=e.vertexes.iterator;c.next();){var h=c.value;1>=h.Vd?l++:(s=!0,u++,a+=Math.atan2(e.centerY-h.centerY,e.centerX-h.centerX))}if(0!==l)for(0<u&&(a/=u),u=e=0,e=s?2*Math.PI/(l+1):2*Math.PI/l,0==l%2&&(u=e/2),1<n.count&&n.sort((function(t,e){return null===t||null===e||t===e?0:e.width*e.height-t.width*t.height})),s=0==l%2?0:1,n=n.iterator;n.next();)if(!(1<(l=n.value).Vd||t.isFixed(l))){for(c=null,h=l.edges.iterator;h.next();){c=h.value;break}h=l.width;var d=l.height;h=_e.sqrt(h*h+d*d)/2,c=o+c.length+h,h=a+(e*(s/2>>1)+u)*(0==s%2?1:-1),l.centerX=i+c*Math.cos(h),l.centerY=r+c*Math.sin(h),s++}}}function Gp(t,e,n,i,r,o,a){var s=9e19,l=-1,u=0;t:for(;u<e;u++){var c=t[u],h=c.x-n,d=c.y-i;if((h=h*h+d*d)<s){for(d=u-1;0<=d;d--)if(t[d].y>c.y&&t[d].x-c.x<r+a.width)continue t;for(d=u+1;d<e;d++)if(t[d].x>c.x&&t[d].y-c.y<o+a.height)continue t;l=u,s=h}}return l}function Up(t,e){var n=t.bounds,i=n.x;t=n.y;var r=n.width;n=n.height;var o=e.bounds,a=o.x;e=o.y;var s=o.width;return o=o.height,i+r<a?t>e+o?(n=i+r-a,t=t-e-o,_e.sqrt(n*n+t*t)):t+n<e?(i=i+r-a,t=t+n-e,_e.sqrt(i*i+t*t)):a-(i+r):i>a+s?t>e+o?(n=i-a-s,t=t-e-o,_e.sqrt(n*n+t*t)):t+n<e?(i=i-a-s,t=t+n-e,_e.sqrt(i*i+t*t)):i-(a+s):t>e+o?t-(e+o):t+n<e?e-(t+n):.1}function Hp(t,e){for(t.ah=null,e=t.An+e;t.An<e&&(t.An++,_p(t)););t.ah=null}function _p(t){null===t.ah&&(t.ah=t.network.vertexes.Fa());var e=t.ah;if(0>=e.length)return!1;var n=e[0];n.forceX=0,n.forceY=0;for(var i=n.centerX,r=i,o=n=n.centerY,a=1;a<e.length;a++){var s=e[a];s.forceX=0,s.forceY=0;var l=s.centerX;s=s.centerY,i=Math.min(i,l),r=Math.max(r,l),n=Math.min(n,s),o=Math.max(o,s)}(r=r-i>o-n)?e.sort((function(t,e){return null===t||null===e||t===e?0:t.centerX-e.centerX})):e.sort((function(t,e){return null===t||null===e||t===e?0:t.centerY-e.centerY})),n=t.Zf;var u=i=s=0;for(o=0;o<e.length;o++){i=(a=e[o]).bounds,s=a.focus,l=i.x+s.x;var c=i.y+s.y;i=a.charge*t.electricalFieldX(l,c),u=a.charge*t.electricalFieldY(l,c),i+=a.mass*t.gravitationalFieldX(l,c),u+=a.mass*t.gravitationalFieldY(l,c),a.forceX+=i,a.forceY+=u;for(var h=o+1;h<e.length;h++){var d=e[h];if(d!==a){i=d.bounds,s=d.focus,u=i.x+s.x;var f=i.y+s.y;if(l-u>n||u-l>n){if(r)break}else if(c-f>n||f-c>n){if(!r)break}else{var p=Up(a,d);1>p?(null===(i=t.randomNumberGenerator)&&(t.randomNumberGenerator=i=new Xp),p=i.random(),s=i.random(),l>u?i=(1+(i=Math.abs(d.bounds.right-a.bounds.x)))*p:l<u?i=-(1+(i=Math.abs(d.bounds.x-a.bounds.right)))*p:i=(1+(i=Math.max(d.width,a.width)))*p-i/2,c>f?u=(1+(u=Math.abs(d.bounds.bottom-a.bounds.y)))*s:l<u?u=-(1+(u=Math.abs(d.bounds.y-a.bounds.bottom)))*s:u=(1+(u=Math.max(d.height,a.height)))*s-u/2):(i=(u-l)/p*(s=-a.charge*d.charge/(p*p)),u=(f-c)/p*s),a.forceX+=i,a.forceY+=u,d.forceX-=i,d.forceY-=u}}}}for(r=t.network.edges.iterator;r.next();)n=(s=r.value).fromVertex,o=s.toVertex,a=n.bounds,l=n.focus,i=a.x+l.x,a=a.y+l.y,c=o.bounds,h=o.focus,l=c.x+h.x,c=c.y+h.y,1>(h=Up(n,o))?(null===(h=t.randomNumberGenerator)&&(t.randomNumberGenerator=h=new Xp),s=h.random(),h=h.random(),i=(i>l?1:-1)*(1+(o.width>n.width?o.width:n.width))*s,u=(a>c?1:-1)*(1+(o.height>n.height?o.height:n.height))*h):(i=(l-i)/h*(s=s.stiffness*(h-s.length)),u=(c-a)/h*s),n.forceX+=i,n.forceY+=u,o.forceX-=i,o.forceY-=u;for(r=i=0;r<e.length;r++)n=e[r],t.isFixed(n)?t.moveFixedVertex(n):i=Math.max(i,t.moveVertex(n)||0);return i>t.epsilonDistance*t.epsilonDistance}function Zp(){this.Tv=this.Sv=this.Qs=this.Ss=this.Rs=0}function Wp(t){Bd.call(this,t)}function Vp(t){zd.call(this,t),this.ia=!1,this.Ha=this.u=NaN,this.sh=this.Vd=this.V=this.F=0,this.We=this.Hj=null,this.sv=0}function Yp(t){Ud.call(this,t),this.j=this.o=NaN}function Xp(){var t=0;void 0===t&&(t=42),this.seed=t,this.ay=48271,this.ey=2147483647,this.Q=44488.07041494893,this.gy=3399,this.by=1/2147483647,this.random()}function qp(t){Nd.call(this),this.kc=this.ie=25,this.K=0,this.Dk=jg,this.Zk=Og,this.Qk=Fg,this.bj=4,this.rk=Hg,this.bg=15,this.sf=!0,this.Cn=4,this.Ra=this.Iq=this.Ia=-1,this.Md=this.Hn=0,this.Ta=this.Kd=this.Ld=this.he=this.tc=null,this.Kn=0,this.Jn=this.kj=null,this.le=0,this.fl=null,this.Rf=new pt,this.He=[],this.He.length=100,this.xw=this.ve=0,t&&Object.assign(this,t)}function Kp(t){var e=t.fromVertex.node||t.fromVertex.data;return t=t.toVertex.node||t.toVertex.data,null===e&&null===t?8:null===e||null===t?4:1}function Qp(t){null===t.kj&&(t.kj=[]);for(var e=0,n=t.network.vertexes.iterator;n.next();){var i=n.value;t.kj[e]=i.layer,e++,t.kj[e]=i.column,e++,t.kj[e]=i.index,e++}return t.kj}function Jp(t,e){var n=0;for(t=t.network.vertexes.iterator;t.next();){var i=t.value;i.layer=e[n],n++,i.column=e[n],n++,i.index=e[n],n++}}function $p(t,e,n){var i=Tg(t,e),r=t.tc[e];(null===t.Jn||t.Jn.length<r*r)&&(t.Jn=[]);for(var o=t.Jn,a=0;a<r;a++){var s,l=0,u=i[a],c=u.near;if(null!==c&&c.layer===u.layer)if((u=c.index)>a)for(var h=a+1;h<u;h++){var d=i[h];d.near===c&&d.Dj===c.Dj||l++}else for(h=a-1;h>u;h--)(d=i[h]).near===c&&d.Dj===c.Dj||l++;if(0<=n)for(u=i[a].sourceEdgesArrayAccess,c=0;c<u.length;c++){var f=u[c];if(f.valid&&f.fromVertex.layer!==e)for(d=f.fromVertex.index,h=f.portToPos,f=f.portFromPos,s=c+1;s<u.length;s++){var p=u[s];if(p.valid&&p.fromVertex.layer!==e){var g=p.fromVertex.index,m=p.portToPos;p=p.portFromPos,h<m&&(d>g||d===g&&f>p)&&l++,m<h&&(g>d||g===d&&p>f)&&l++}}}if(0>=n)for(u=i[a].destinationEdgesArrayAccess,c=0;c<u.length;c++)if((f=u[c]).valid&&f.toVertex.layer!==e)for(d=f.toVertex.index,h=f.portToPos,f=f.portFromPos,s=c+1;s<u.length;s++)(p=u[s]).valid&&p.toVertex.layer!==e&&(g=p.toVertex.index,m=p.portToPos,f<(p=p.portFromPos)&&(d>g||d===g&&h>m)&&l++,p<f&&(g>d||g===d&&m>h)&&l++);for(o[a*r+a]=l,u=a+1;u<r;u++){var v=0,y=0;if(0<=n){l=i[a].sourceEdgesArrayAccess;var w=i[u].sourceEdgesArrayAccess;for(c=0;c<l.length;c++)if((f=l[c]).valid&&f.fromVertex.layer!==e)for(d=f.fromVertex.index,f=f.portFromPos,s=0;s<w.length;s++)(p=w[s]).valid&&p.fromVertex.layer!==e&&(g=p.fromVertex.index,p=p.portFromPos,(d<g||d===g&&f<p)&&y++,(g<d||g===d&&p<f)&&v++)}if(0>=n)for(l=i[a].destinationEdgesArrayAccess,w=i[u].destinationEdgesArrayAccess,c=0;c<l.length;c++)if((f=l[c]).valid&&f.toVertex.layer!==e)for(d=f.toVertex.index,h=f.portToPos,s=0;s<w.length;s++)(p=w[s]).valid&&p.toVertex.layer!==e&&(g=p.toVertex.index,m=p.portToPos,(d<g||d===g&&h<m)&&y++,(g<d||g===d&&m<h)&&v++);o[a*r+u]=v,o[u*r+a]=y}}return Ng(t,e,i),o}function tg(t){for(var e=0,n=0;n<=t.Ia;n++){for(var i=t,r=n,o=Tg(i,r),a=i.tc[r],s=0,l=0;l<a;l++){var u=o[l].destinationEdgesArrayAccess;if(null!==u)for(var c=0;c<u.length;c++){var h=u[c];if(h.valid&&h.toVertex.layer!==r){var d=h.fromVertex.column+h.portFromColOffset,f=h.toVertex.column+h.portToColOffset;s+=(Math.abs(d-f)+1)*Kp(h)}}}Ng(i,r,o),e+=s}return e}function eg(t,e,n){for(var i=Tg(t,e),r=t.tc[e],o=[],a=0;a<r;a++){var s=i[a],l=null;0>=n&&(l=s.sourceEdgesArrayAccess);var u=null;0<=n&&(u=s.destinationEdgesArrayAccess);var c=0,h=0,d=s.near;if(null!==d&&d.layer===s.layer&&(c+=d.column-1,h++),null!==l)for(d=0;d<l.length;d++){var f=(s=l[d]).fromVertex;s.valid&&!s.rev&&f.layer!==e&&(c+=f.column,h++)}if(null!==u)for(l=0;l<u.length;l++)d=(s=u[l]).toVertex,s.valid&&!s.rev&&d.layer!==e&&(c+=d.column,h++);o[a]=0===h?-1:c/h}return Ng(t,e,i),o}function ng(t,e,n){for(var i=Tg(t,e),r=t.tc[e],o=[],a=0;a<r;a++){var s=i[a],l=null;0>=n&&(l=s.sourceEdgesArrayAccess);var u=null;0<=n&&(u=s.destinationEdgesArrayAccess);var c=0,h=[],d=s.near;if(null!==d&&d.layer===s.layer&&(h[c]=d.column-1,c++),s=void 0,null!==l)for(d=0;d<l.length;d++){var f=(s=l[d]).fromVertex;s.valid&&!s.rev&&f.layer!==e&&(h[c]=f.column+s.portFromColOffset,c++)}if(null!==u)for(l=0;l<u.length;l++)d=(s=u[l]).toVertex,s.valid&&!s.rev&&d.layer!==e&&(h[c]=d.column+s.portToColOffset,c++);0===c?o[a]=-1:(h.sort((function(t,e){return t-e})),u=c>>1,o[a]=0!=(1&c)?h[u]:h[u-1]+h[u]>>1)}return Ng(t,e,i),o}function ig(t,e,n,i,r,o){if(e.component===i){if(e.component=n,r)for(var a=e.destinationEdges;a.next();){var s=a.value,l=s.toVertex,u=e.layer-l.layer;u===(s=t.linkMinLength(s))&&ig(t,l,n,i,r,o)}if(o)for(a=e.sourceEdges;a.next();)(u=(l=(s=a.value).fromVertex).layer-e.layer)===(s=t.linkMinLength(s))&&ig(t,l,n,i,r,o)}}function rg(t,e,n,i,r,o){if(e.component===i){if(e.component=n,r)for(var a=e.destinationEdges;a.next();)rg(t,a.value.toVertex,n,i,r,o);if(o)for(e=e.sourceEdges;e.next();)rg(t,e.value.fromVertex,n,i,r,o)}}function og(t){for(t=t.vertexes.iterator;t.next();){var e=t.value;if(e.valid)return e}return null}function ag(t){for(t=t.vertexes.iterator;t.next();){var e=t.value;if(e.valid){for(var n=!0,i=e.destinationEdges;i.next();)if(i.value.toVertex.valid){n=!1;break}if(n)return e}}return null}function sg(t){for(t=t.vertexes.iterator;t.next();){var e=t.value;if(e.valid){for(var n=!0,i=e.sourceEdges;i.next();)if(i.value.fromVertex.valid){n=!1;break}if(n)return e}}return null}function lg(t,e){e.Ll=t.Kn,t.Kn++;for(var n=e.destinationEdges;n.next();){var i=n.value,r=i.toVertex;-1===r.Ll&&(i.forest=!0,lg(t,r))}e.finish=t.Kn,t.Kn++}function ug(t){for(var e=t.network.vertexes.iterator;e.next();){var n=cg(t,e.value);t.Ia=Math.max(n,t.Ia)}}function cg(t,e){var n=0;if(-1===e.layer){for(var i=e.destinationEdges;i.next();){var r=i.value,o=r.toVertex;r=t.linkMinLength(r),n=Math.max(n,cg(t,o)+r)}e.layer=n}else n=e.layer;return n}function hg(t,e){var n=0;if(-1===e.layer){for(var i=e.sourceEdges;i.next();){var r=i.value,o=r.fromVertex;r=t.linkMinLength(r),n=Math.max(n,hg(t,o)+r)}e.layer=n}else n=e.layer;return n}function dg(t,e){if(!e.valid){e.valid=!0;for(var n=e.destinationEdges;n.next();)dg(t,n.value.toVertex);for(n=t.network.vertexes.iterator;n.next();)n.value.component=-1;for(var i=e.sourceEdgesArrayAccess,r=i.length,o=0;o<r;o++){var a=i[o],s=a.fromVertex,l=a.toVertex;a=t.linkMinLength(a),s.layer-l.layer>a&&ig(t,s,0,-1,!0,!1)}for(ig(t,e,1,-1,!0,!0);0!==e.component;){for(o=0,i=1/0,s=0,l=null,a=t.network.vertexes.iterator;a.next();){var u=a.value;if(1===u.component){var c=0,h=!1,d=u.sourceEdgesArrayAccess;r=d.length;for(var f=0;f<r;f++){var p=d[f],g=p.fromVertex;c+=1,1!==g.component&&(o+=1,g=g.layer-u.layer,p=t.linkMinLength(p),i=Math.min(i,g-p))}for(r=(d=u.destinationEdgesArrayAccess).length,f=0;f<r;f++)--c,1!==(p=d[f].toVertex).component?--o:h=!0;(null===l||c<s)&&!h&&(l=u,s=c)}}if(0<o){for(n.reset();n.next();)1===(r=n.value).component&&(r.layer+=i);e.component=0}else l.component=0}for(n=t.network.vertexes.iterator;n.next();)n.value.component=-1;for(ig(t,e,1,-1,!0,!1);0!==e.component;){for(i=0,r=1/0,o=0,s=null,l=t.network.vertexes.iterator;l.next();)if(1===(a=l.value).component){for(u=0,c=!1,h=(d=a.sourceEdgesArrayAccess).length,f=0;f<h;f++)u+=1,1!==(p=d[f].fromVertex).component?i+=1:c=!0;for(h=(d=a.destinationEdgesArrayAccess).length,f=0;f<h;f++)--u,1!==(g=(p=d[f]).toVertex).component&&(--i,g=a.layer-g.layer,p=t.linkMinLength(p),r=Math.min(r,g-p));(null===s||u>o)&&!c&&(s=a,o=u)}if(0>i){for(n.reset();n.next();)1===(i=n.value).component&&(i.layer-=r);e.component=0}else s.component=0}}}function fg(t,e,n){return 90===t.K?n&&!e.rev||!n&&e.rev?270:90:180===t.K?n&&!e.rev||!n&&e.rev?0:180:270===t.K?n&&!e.rev||!n&&e.rev?90:270:n&&!e.rev||!n&&e.rev?180:0}function pg(t,e){var n=e.layer;for(e.index=t.tc[n],t.tc[n]++,e=e.destinationEdgesArrayAccess,n=!0;n;){n=!1;for(var i=0;i<e.length-1;i++){var r=e[i],o=e[i+1];r.portFromColOffset>o.portFromColOffset&&(n=!0,e[i]=o,e[i+1]=r)}}for(n=0;n<e.length;n++)(i=e[n]).valid&&(-1===(i=i.toVertex).index&&pg(t,i))}function gg(t,e){var n=e.layer;e.index=t.tc[n],t.tc[n]++,e=e.sourceEdgesArrayAccess;for(var i=!0;i;)for(i=!1,n=0;n<e.length-1;n++){var r=e[n],o=e[n+1];r.portToColOffset>o.portToColOffset&&(i=!0,e[n]=o,e[n+1]=r)}for(n=0;n<e.length;n++)(i=e[n]).valid&&(-1===(i=i.fromVertex).index&&gg(t,i))}function mg(t,e,n){var i=Tg(t,e),r=t.tc[e],o=ng(t,e,n),a=eg(t,e,n);for(n=0;n<r;n++)-1===a[n]&&(a[n]=i[n].column),-1===o[n]&&(o[n]=i[n].column);for(var s,l=!0;l;)for(l=!1,n=0;n<r-1;n++)(o[n+1]<o[n]||o[n+1]===o[n]&&a[n+1]<a[n])&&(l=!0,s=o[n],o[n]=o[n+1],o[n+1]=s,s=a[n],a[n]=a[n+1],a[n+1]=s,s=i[n],i[n]=i[n+1],i[n+1]=s);for(n=o=0;n<r;n++)(s=i[n]).index=n,o+=t.nodeMinColumnSpace(s,!0),s.column=o,o+=1,o+=t.nodeMinColumnSpace(s,!1);Ng(t,e,i)}function vg(t,e,n){var i,r=Tg(t,e),o=t.tc[e];n=$p(t,e,n);var a=[];for(i=0;i<o;i++)a[i]=-1;var s=[];for(i=0;i<o;i++)s[i]=-1;for(var l=!1,u=!0;u;)for(u=!1,i=0;i<o-1;i++){var c=n[r[i].index*o+r[i+1].index],h=n[r[i+1].index*o+r[i].index],d=0,f=0,p=r[i].column,g=r[i+1].column,m=t.nodeMinColumnSpace(r[i],!0),v=t.nodeMinColumnSpace(r[i],!1),y=t.nodeMinColumnSpace(r[i+1],!0),w=t.nodeMinColumnSpace(r[i+1],!1);m=p-m+y,v=g-v+w;var b=r[i].sourceEdges.iterator;for(b.reset();b.next();)if(w=(y=b.value).fromVertex,y.valid&&w.layer===e){for(y=0;r[y]!==w;)y++;y<i&&(d+=2*(i-y),f+=2*(i+1-y)),y===i+1&&(d+=1),y>i+1&&(d+=4*(y-i),f+=4*(y-(i+1)))}for((b=r[i].destinationEdges.iterator).reset();b.next();)if(w=(y=b.value).toVertex,y.valid&&w.layer===e){for(y=0;r[y]!==w;)y++;y===i+1&&(f+=1)}for((b=r[i+1].sourceEdges.iterator).reset();b.next();)if(w=(y=b.value).fromVertex,y.valid&&w.layer===e){for(y=0;r[y]!==w;)y++;y<i&&(d+=2*(i+1-y),f+=2*(i-y)),y===i&&(f+=1),y>i+1&&(d+=4*(y-(i+1)),f+=4*(y-i))}for((b=r[i+1].destinationEdges.iterator).reset();b.next();)if(w=(y=b.value).toVertex,y.valid&&w.layer===e){for(y=0;r[y]!==w;)y++;y===i&&(d+=1)}y=w=0,b=a[r[i].index];var x=s[r[i].index],S=a[r[i+1].index],P=s[r[i+1].index];-1!==b&&(w+=Math.abs(b-p),y+=Math.abs(b-v)),-1!==x&&(w+=Math.abs(x-p),y+=Math.abs(x-v)),-1!==S&&(w+=Math.abs(S-g),y+=Math.abs(S-m)),-1!==P&&(w+=Math.abs(P-g),y+=Math.abs(P-m)),(f<d-.5||f===d&&h<c-.5||f===d&&h===c&&y<w-.5)&&(u=l=!0,r[i].column=v,r[i+1].column=m,c=r[i],r[i]=r[i+1],r[i+1]=c)}for(i=0;i<o;i++)r[i].index=i;return Ng(t,e,r),l}function yg(t,e,n){for(var i=!1;wg(t,e,n);)i=!0;return i}function wg(t,e,n){var i,r=Tg(t,e),o=t.tc[e],a=eg(t,e,-1);if(0<n)for(i=0;i<o;i++)a[i]=-1;var s=eg(t,e,1);if(0>n)for(i=0;i<o;i++)s[i]=-1;for(var l=!1,u=!0;u;)for(u=!1,i=0;i<o;i++){var c=r[i].column,h=t.nodeMinColumnSpace(r[i],!0),d=t.nodeMinColumnSpace(r[i],!1),f=0;f=0>i-1||c-r[i-1].column-1>h+t.nodeMinColumnSpace(r[i-1],!1)?c-1:c,h=i+1>=o||r[i+1].column-c-1>d+t.nodeMinColumnSpace(r[i+1],!0)?c+1:c;var p=d=0,g=0;if(0>=n)for(var m=r[i].sourceEdges.iterator;m.next();){var v=m.value,y=v.fromVertex;if(v.valid&&y.layer!==e){var w=Kp(v),b=v.portFromColOffset;v=v.portToColOffset,y=y.column,d+=(Math.abs(c+v-(y+b))+1)*w,p+=(Math.abs(f+v-(y+b))+1)*w,g+=(Math.abs(h+v-(y+b))+1)*w}}if(0<=n)for(m=r[i].destinationEdges.iterator;m.next();)y=(v=m.value).toVertex,v.valid&&y.layer!==e&&(w=Kp(v),b=v.portFromColOffset,v=v.portToColOffset,y=y.column,d+=(Math.abs(c+b-(y+v))+1)*w,p+=(Math.abs(f+b-(y+v))+1)*w,g+=(Math.abs(h+b-(y+v))+1)*w);v=b=w=0,m=a[r[i].index],y=s[r[i].index],-1!==m&&(w+=Math.abs(m-c),b+=Math.abs(m-f),v+=Math.abs(m-h)),-1!==y&&(w+=Math.abs(y-c),b+=Math.abs(y-f),v+=Math.abs(y-h)),p<d||p===d&&b<w?(u=l=!0,r[i].column=f):(g<d||g===d&&v<w)&&(u=l=!0,r[i].column=h)}return Ng(t,e,r),t.normalize(),l}function bg(t,e,n){var i=Tg(t,e),r=t.tc[e],o=ng(t,e,n),a=[];for(n=0;n<r;n++)a[n]=o[n];for(o=!0;o;)for(o=!1,n=0;n<r;n++){var s=i[n].column,l=t.nodeMinColumnSpace(i[n],!0),u=t.nodeMinColumnSpace(i[n],!1),c=0;if(-1===a[n])if(0===n&&n===r-1)c=s;else if(0===n){var h=i[n+1].column;c=h-s===u+t.nodeMinColumnSpace(i[n+1],!0)?s-1:s}else n===r-1?c=s-(h=i[n-1].column)===l+t.nodeMinColumnSpace(i[n-1],!1)?s+1:s:c=((l=(h=i[n-1].column)+t.nodeMinColumnSpace(i[n-1],!1)+l+1)+(u=(h=i[n+1].column)-t.nodeMinColumnSpace(i[n+1],!0)-u-1))/2|0;else 0===n&&n===r-1?c=a[n]:0===n?(u=(h=i[n+1].column)-t.nodeMinColumnSpace(i[n+1],!0)-u-1,c=Math.min(a[n],u)):n===r-1?(l=(h=i[n-1].column)+t.nodeMinColumnSpace(i[n-1],!1)+l+1,c=Math.max(a[n],l)):(l=(h=i[n-1].column)+t.nodeMinColumnSpace(i[n-1],!1)+l+1,u=(h=i[n+1].column)-t.nodeMinColumnSpace(i[n+1],!0)-u-1,l<a[n]&&a[n]<u?c=a[n]:l>=a[n]?c=l:u<=a[n]&&(c=u));c!==s&&(o=!0,i[n].column=c)}Ng(t,e,i),t.normalize()}function xg(t,e){for(var n=!0,i=t.network.vertexes.iterator;i.next();){var r=i.value,o=t.nodeMinColumnSpace(r,!0),a=t.nodeMinColumnSpace(r,!1);if(r.column-o<=e&&r.column+a>=e){n=!1;break}}if(t=!1,n)for(i.reset();i.next();)(n=i.value).column>e&&(--n.column,t=!0);return t}function Sg(t,e){var n,i=e+1,r=[],o=[];for(n=0;n<=t.Ia;n++)r[n]=!1,o[n]=!1;for(var a=t.network.vertexes.iterator;a.next();){var s=(n=a.value).column-t.nodeMinColumnSpace(n,!0),l=n.column+t.nodeMinColumnSpace(n,!1);s<=e&&l>=e&&(r[n.layer]=!0),s<=i&&l>=i&&(o[n.layer]=!0)}for(s=!0,i=!1,n=0;n<=t.Ia;n++)s=s&&!(r[n]&&o[n]);if(s)for(a.reset();a.next();)(t=a.value).column>e&&(--t.column,i=!0);return i}function Pg(t,e){for(var n=0;n<=t.Ra;n++)for(;xg(t,n););for(t.normalize(),n=0;n<t.Ra;n++)for(;Sg(t,n););var i;if(t.normalize(),0<e)for(n=0;n<=t.Ra;n++){var r=Qp(t),o=tg(t);for(i=o+1;o<i;){i=o,kg(t,n,1);var a=tg(t);a>o?Jp(t,r):a<o&&(o=a,r=Qp(t))}}if(0>e)for(n=t.Ra;0<=n;n--)for(r=Qp(t),i=(o=tg(t))+1;o<i;)i=o,kg(t,n,-1),(a=tg(t))>o?Jp(t,r):a<o&&(o=a,r=Qp(t));t.normalize()}function kg(t,e,n){t.le=0;for(var i=t.network.vertexes.iterator;i.next();)i.value.component=-1;if(0<n)for(i.reset();i.next();){var r=i.value;r.column-t.nodeMinColumnSpace(r,!0)<=e&&(r.component=t.le)}if(0>n)for(i.reset();i.next();)(r=i.value).column+t.nodeMinColumnSpace(r,!1)>=e&&(r.component=t.le);for(t.le++,i.reset();i.next();)-1===(e=i.value).component&&(rg(t,e,t.le,-1,!0,!0),t.le++);var o;for(e=[],o=0;o<t.le*t.le;o++)e[o]=!1;for(r=[],o=0;o<(t.Ia+1)*(t.Ra+1);o++)r[o]=-1;for(i.reset();i.next();)for(var a=(o=i.value).layer,s=Math.max(0,o.column-t.nodeMinColumnSpace(o,!0)),l=Math.min(t.Ra,o.column+t.nodeMinColumnSpace(o,!1));s<=l;s++)r[a*(t.Ra+1)+s]=o.component;for(o=0;o<=t.Ia;o++){if(0<n)for(a=0;a<t.Ra;a++)-1!==r[o*(t.Ra+1)+a]&&-1!==r[o*(t.Ra+1)+a+1]&&r[o*(t.Ra+1)+a]!==r[o*(t.Ra+1)+a+1]&&(e[r[o*(t.Ra+1)+a]*t.le+r[o*(t.Ra+1)+a+1]]=!0);if(0>n)for(a=t.Ra;0<a;a--)-1!==r[o*(t.Ra+1)+a]&&-1!==r[o*(t.Ra+1)+a-1]&&r[o*(t.Ra+1)+a]!==r[o*(t.Ra+1)+a-1]&&(e[r[o*(t.Ra+1)+a]*t.le+r[o*(t.Ra+1)+a-1]]=!0)}for(r=[],o=0;o<t.le;o++)r[o]=!0;for((a=[]).push(0);0!==a.length;)if(l=a[a.length-1],a.pop(),r[l])for(r[l]=!1,o=0;o<t.le;o++)e[l*t.le+o]&&a.splice(0,0,o);if(0<n)for(i.reset();i.next();)r[(t=i.value).component]&&--t.column;if(0>n)for(i.reset();i.next();)r[(n=i.value).component]&&(n.column+=1)}function Cg(t,e,n,i){for(var o=90===t.K||270===t.K,a=r(e),s=a.next();!s.done;s=a.next()){var l=r(s.value);for(s=l.next();!s.done;s=l.next())(s=s.value).sd=s,s.shift=1/0,s.zc=NaN,s.qg=0}for(s=90===t.K||270===t.K,l=(a=r(e)).next();!l.done;l=a.next())for(var u=(l=r(l.value)).next();!u.done;u=l.next())if((u=u.value).root===u){for(var c=0,h=u;h.align!==u;){var d=h.align,f=s?h.width:h.height,p=s?d.width:d.height;if(n){var g=qg(h,d),m=g.portFromPos,v=g.portToPos;null!==g.link&&(h.node&&h.node!==g.link.fromNode&&(m=s?h.focusX:h.focusY),d.node&&d.node!==g.link.toNode&&(v=s?d.focusX:d.focusY))}else m=(g=qg(d,h)).portToPos,v=g.portFromPos,null!==g.link&&(h.node&&h.node!==g.link.toNode&&(m=s?h.focusX:h.focusY),d.node&&d.node!==g.link.fromNode&&(v=s?d.focusX:d.focusY));f=i?h.qg+(f-m)-(p-v):h.qg+m-v,d.qg=f,c=Math.min(c,f),h=h.align}h=u;do{h.qg=h.qg-c,h=h.align}while(h!==u)}for(s=(n=r(e)).next();!s.done;s=n.next())for(s=(a=r(s.value)).next();!s.done;s=a.next())(s=s.value).root===s&&Ag(t,s,e);for(n=0;n<e.length;n++)if(!(0>=e[n].length)&&(s=e[n][0]).sd===s){1/0===s.sd.shift&&(s.sd.shift=0),s=n,l=0;do{for(a=e[s][l];a.align!==a.root;)s++,0<(a=a.align).vi&&((l=Mg(a,e)).sd.shift=Math.min(l.sd.shift,a.sd.shift+a.zc+a.qg-(l.zc+l.qg+(o?l.width:l.height)+t.columnSpacing)));l=a.vi+1}while(s<e.length&&l<e[s].length&&a.sd===e[s][l].sd)}for(t=new ft,s=(e=r(e)).next();!s.done;s=e.next())for(s=(n=r(s.value)).next();!s.done;s=n.next())(s=s.value).zc=s.zc+s.sd.shift+s.qg,a=o?s.width:s.height,t.add(s,i?-s.zc-a:s.zc);return t}function Ag(t,e,n){if(isNaN(e.zc)){e.zc=0;var i=e;do{if(0<i.vi){var r=Mg(i,n),o=r.root;Ag(t,o,n),e.sd===e&&(e.sd=o.sd);var a=90===t.K||270===t.K?r.width:r.height;e.sd===o.sd&&(e.zc=Math.max(e.zc,o.zc+r.qg+a-i.qg+t.columnSpacing))}i=i.align}while(i!==e);for(;i.align!==e;)(i=i.align).zc=e.zc,i.sd=e.sd}}function Mg(t,e){var n=t.Tz;return 1>(t=t.vi)&&x("Could not determine previous vertex in layer"),e[n][t-1]}function Eg(t,e,n,i,r){if(!e||0===e.count)return n[r]=0,i[r]=0,1/0;var o=1/0,a=-1/0;return e.each((function(e){var n=e.key;e=e.value,n=90===t.K||270===t.K?n.width:n.height,e<o&&(o=e),e+n>a&&(a=e+n)})),n[r]=o,i[r]=a,a-o}function Lg(t,e){return 270===t.K?e?Le:je:90===t.K?e?je:Le:180===t.K?e?Te:Ne:e?Ne:Te}function Tg(t,e){var n=t.tc[e];if(n>=t.He.length){for(var i=[],r=0;r<t.He.length;r++)i[r]=t.He[r];t.He=i}for(void 0===t.He[n]||null===t.He[n]?i=[]:(i=t.He[n],t.He[n]=null),t=t.fl[e],e=0;e<t.length;e++)i[(n=t[e]).index]=n;return i}function Ng(t,e,n){t.He[t.tc[e]]=n}op.className="CircularLayout",op.ConstantSpacing=vp,op.ConstantDistance=yp,op.ConstantAngle=wp,op.Packed=bp,op.Clockwise=xp,op.Counterclockwise=Sp,op.BidirectionalLeft=Pp,op.BidirectionalRight=kp,op.Forwards=Cp,op.Reverse=Ap,op.Ascending=Mp,op.Descending=Ep,op.Optimized=Lp,op.Pythagorean=Tp,op.Circular=Np,jp.prototype.compare=function(t,e){if(0<t&&0>this.Pl||Math.abs(t)<Math.abs(this.Pl)&&!(0>t&&0<this.Pl))for(this.Pl=t,this.mk=[],this.tm=[],t=0;t<e.length;t++)this.mk[t]=e[t].bounds.x,this.tm[t]=e[t].bounds.y},jp.prototype.commit=function(t){if(null!==this.mk&&null!==this.tm)for(var e=0;e<this.mk.length;e++){var n=t.M(e);n.x=this.mk[e],n.y=this.tm[e]}},jp.className="VertexArrangement",h(Ip,Bd),Ip.prototype.createVertex=function(){return new Bp(this)},Ip.prototype.createEdge=function(){return new Dp(this)},Ip.className="CircularNetwork",h(Bp,zd),d.Object.defineProperties(Bp.prototype,{diameter:{get:function(){return this.Si},set:function(t){this.Si!==t&&(this.Si=t)}},actualAngle:{get:function(){return this.u},set:function(t){this.u!==t&&(this.u=t)}}}),Bp.className="CircularVertex",h(Dp,Ud),Dp.className="CircularEdge",h(Rp,Nd),Rp.prototype.cloneProtected=function(t){Nd.prototype.cloneProtected.call(this,t),t.$d.assign(this.$d),t.Bm=this.Bm,t.sf=this.sf,t.td=this.td,t.dl=this.dl,t.$m=this.$m,t.Zf=this.Zf,t.In=this.In,t.fo=this.fo,t.Hk=this.Hk,t.Gk=this.Gk,t.Ek=this.Ek,t.Fk=this.Fk,t.Vm=this.Vm,t.Um=this.Um},Rp.prototype.createNetwork=function(){return new Wp(this)},Rp.prototype.doLayout=function(t){if(null===this.network&&(this.network=this.makeNetwork(t)),t=this.maxIterations,0<this.network.vertexes.count){this.network.Ko();for(var e=this.network.vertexes.iterator;e.next();){var n=e.value;n.charge=this.electricalCharge(n),n.mass=this.gravitationalMass(n)}for(e=this.network.edges.iterator;e.next();)(n=e.value).stiffness=this.springStiffness(n),n.length=this.springLength(n);if(this.Cu(),this.An=0,this.needsClusterLayout()){for(var i=(n=(e=this.network).Zx()).iterator;i.next();){this.network=i.value;for(var r=this.network.vertexes.iterator;r.next();){var o=r.value;o.Vd=o.vertexes.count,o.sh=1,o.Hj=null,o.We=null}Fp(this,0,t)}this.network=e;var a=i=n.iterator;i=this.arrangementSpacing;var s=a.count,l=!0;o=r=0;for(var u=T(),c=0;c<s+e.vertexes.count+2;c++)u[c]=null;s=0,a.reset();for(var h=Bt.alloc();a.next();)if(c=a.value,this.computeBounds(c,h),l)l=!1,r=h.x+h.width/2,o=h.y+h.height/2,u[0]=new pt(h.x+h.width+i.width,h.y),u[1]=new pt(h.x,h.y+h.height+i.height),s=2;else{var d=Gp(u,s,r,o,h.width,h.height,i),f=u[d],p=new pt(f.x+h.width+i.width,f.y),g=new pt(f.x,f.y+h.height+i.height);for(d+1<s&&u.splice(d+1,0,null),u[d]=p,u[d+1]=g,s++,d=f.x-h.x,f=f.y-h.y,c=c.vertexes.iterator;c.next();)(p=c.value).centerX+=d,p.centerY+=f}for(Bt.free(h),c=e.vertexes.iterator;c.next();)d=(a=c.value).bounds,2>s?(r=d.x+d.width/2,o=d.y+d.height/2,u[0]=new pt(d.x+d.width+i.width,d.y),u[1]=new pt(d.x,d.y+d.height+i.height),s=2):(f=new pt((h=u[l=Gp(u,s,r,o,d.width,d.height,i)]).x+d.width+i.width,h.y),d=new pt(h.x,h.y+d.height+i.height),l+1<s&&u.splice(l+1,0,null),u[l]=f,u[l+1]=d,s++,a.centerX=h.x+a.width/2,a.centerY=h.y+a.height/2);for(N(u),i=n.iterator;i.next();){for(r=(n=i.value).vertexes.iterator;r.next();)e.dh(r.value);for(n=n.edges.iterator;n.next();)e.Bo(n.value)}}Hp(this,t),this.updateParts()}this.dl=t,this.network=null,this.isValidLayout=!0},Rp.prototype.needsClusterLayout=function(){if(3>this.network.vertexes.count)return!1;for(var t=0,e=0,n=this.network.vertexes.first().bounds,i=this.network.vertexes.iterator;i.next();){if(i.value.bounds.Yc(n)&&2<++t)return!0;if(10<e)break;e++}return!1},Rp.prototype.computeBounds=function(t,e){var n=!0;for(t=t.vertexes.iterator;t.next();){var i=t.value;n?(n=!1,e.set(i.bounds)):e.ed(i.bounds)}return e},Rp.prototype.Cu=function(){if(this.comments)for(var t=this.network.vertexes.iterator;t.next();)this.addComments(t.value)},Rp.prototype.addComments=function(t){var e=t.node;if(null!==e)for(e=e.Mu();e.next();){var n=e.value;if("Comment"===n.category&&n.isVisible()){var i=this.network.ki(n);null===i&&(i=this.network.Bl(n)),i.charge=this.defaultCommentElectricalCharge,n=null;for(var r=i.destinationEdges;r.next();){var o=r.value;if(o.toVertex===t){n=o;break}}if(null===n)for(r=i.sourceEdges;r.next();)if((o=r.value).fromVertex===t){n=o;break}null===n&&(n=this.network.Zj(t,i,null)),n.length=this.defaultCommentSpringLength}}},Rp.prototype.moveVertex=function(t){var e=t.forceX,n=t.forceY,i=this.moveLimit;return e<-i?e=-i:e>i&&(e=i),n<-i?n=-i:n>i&&(n=i),t.centerX+=e,t.centerY+=n,e*e+n*n},Rp.prototype.moveFixedVertex=function(){},Rp.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},Rp.prototype.yv=function(){if(this.setsPortSpots)for(var t=this.network.edges.iterator;t.next();){var e=t.value.link;null!==e&&(e.fromSpot=ke,e.toSpot=ke)}},Rp.prototype.commitNodes=function(){var t=0,e=0;if(this.arrangesToOrigin){var n=Bt.alloc();this.computeBounds(this.network,n),t=(e=this.arrangementOrigin).x-n.x,e=e.y-n.y,Bt.free(n)}n=Bt.alloc();for(var i=this.network.vertexes.iterator;i.next();){var r=i.value;0===t&&0===e||(n.assign(r.bounds),n.x+=t,n.y+=e,r.bounds=n),r.commit()}Bt.free(n)},Rp.prototype.commitLinks=function(){for(var t=this.network.edges.iterator;t.next();)t.value.commit()},Rp.prototype.springStiffness=function(t){return t=t.stiffness,isNaN(t)?this.Hk:t},Rp.prototype.springLength=function(t){return t=t.length,isNaN(t)?this.Gk:t},Rp.prototype.electricalCharge=function(t){return t=t.charge,isNaN(t)?this.Ek:t},Rp.prototype.electricalFieldX=function(){return 0},Rp.prototype.electricalFieldY=function(){return 0},Rp.prototype.gravitationalMass=function(t){return t=t.mass,isNaN(t)?this.Fk:t},Rp.prototype.gravitationalFieldX=function(){return 0},Rp.prototype.gravitationalFieldY=function(){return 0},Rp.prototype.isFixed=function(t){return t.isFixed},d.Object.defineProperties(Rp.prototype,{currentIteration:{get:function(){return this.An}},arrangementSpacing:{get:function(){return this.$d},set:function(t){this.$d.D(t)||(this.$d.assign(t),this.C())}},arrangesToOrigin:{get:function(){return this.Bm},set:function(t){this.Bm!==t&&(this.Bm=t,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(t){this.sf!==t&&(this.sf=t,this.C())}},comments:{get:function(){return this.td},set:function(t){this.td!==t&&(this.td=t,this.C())}},maxIterations:{get:function(){return this.dl},set:function(t){this.dl!==t&&0<=t&&(this.dl=t,this.C())}},epsilonDistance:{get:function(){return this.$m},set:function(t){this.$m!==t&&0<t&&(this.$m=t,this.C())}},infinityDistance:{get:function(){return this.Zf},set:function(t){this.Zf!==t&&1<t&&(this.Zf=t,this.C())}},moveLimit:{get:function(){return this.In},set:function(t){this.In!==t&&1<t&&(this.In=t,this.C())}},randomNumberGenerator:{get:function(){return this.fo},set:function(t){this.fo!==t&&(null!==t&&"function"!=typeof t.random&&x('ForceDirectedLayout.randomNumberGenerator must have a "random()" function on it: '+t),this.fo=t)}},defaultSpringStiffness:{get:function(){return this.Hk},set:function(t){this.Hk!==t&&(this.Hk=t,this.C())}},defaultSpringLength:{get:function(){return this.Gk},set:function(t){this.Gk!==t&&(this.Gk=t,this.C())}},defaultElectricalCharge:{get:function(){return this.Ek},set:function(t){this.Ek!==t&&(this.Ek=t,this.C())}},defaultGravitationalMass:{get:function(){return this.Fk},set:function(t){this.Fk!==t&&(this.Fk=t,this.C())}},defaultCommentSpringLength:{get:function(){return this.Vm},set:function(t){this.Vm!==t&&(this.Vm=t,this.C())}},defaultCommentElectricalCharge:{get:function(){return this.Um},set:function(t){this.Um!==t&&(this.Um=t,this.C())}}}),Rp.className="ForceDirectedLayout",Zp.className="ForceDirectedSubnet",h(Wp,Bd),Wp.prototype.createVertex=function(){return new Vp(this)},Wp.prototype.createEdge=function(){return new Yp(this)},Wp.className="ForceDirectedNetwork",h(Vp,zd),d.Object.defineProperties(Vp.prototype,{isFixed:{get:function(){return this.ia},set:function(t){this.ia!==t&&(this.ia=t)}},charge:{get:function(){return this.u},set:function(t){this.u!==t&&(this.u=t)}},mass:{get:function(){return this.Ha},set:function(t){this.Ha!==t&&(this.Ha=t)}},forceX:{get:function(){return this.F},set:function(t){this.F!==t&&(this.F=t)}},forceY:{get:function(){return this.V},set:function(t){this.V!==t&&(this.V=t)}}}),Vp.className="ForceDirectedVertex",h(Yp,Ud),d.Object.defineProperties(Yp.prototype,{stiffness:{get:function(){return this.o},set:function(t){this.o!==t&&(this.o=t)}},length:{get:function(){return this.j},set:function(t){this.j!==t&&(this.j=t)}}}),Yp.className="ForceDirectedEdge",Xp.prototype.random=function(){var t=this.seed%this.Q*this.ay-this.seed/this.Q*this.gy;return this.seed=0<t?t:t+this.ey,this.seed*this.by},Xp.className="RandomNumberGenerator",h(qp,Nd),qp.prototype.cloneProtected=function(t){Nd.prototype.cloneProtected.call(this,t),t.ie=this.ie,t.kc=this.kc,t.K=this.K,t.Dk=this.Dk,t.Zk=this.Zk,t.Qk=this.Qk,t.bj=this.bj,t.rk=this.rk,t.bg=this.bg,t.sf=this.sf,t.Cn=this.Cn,t.ve=this.ve},qp.prototype.qb=function(t){t.classType===qp?0===t.name.indexOf("Aggressive")?this.aggressiveOption=t:0===t.name.indexOf("Cycle")?this.cycleRemoveOption=t:0===t.name.indexOf("Init")?this.initializeOption=t:0===t.name.indexOf("Layer")?this.layeringOption=t:x("Unknown enum value: "+t):Nd.prototype.qb.call(this,t)},qp.prototype.createNetwork=function(){return new Vg(this)},qp.prototype.doLayout=function(t){for(null===this.network&&(this.network=this.makeNetwork(t)),this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin),this.Iq=-1,this.Md=this.Hn=0,this.fl=this.Jn=this.kj=null,t=0;t<this.He.length;t++)this.He[t]=null;if(0<this.network.vertexes.count){for(this.network.Ko(),this.cycleRemoveOption!==Bg&&this.removeCycles(),t=this.network.vertexes.iterator;t.next();)t.value.layer=-1;for(this.Ia=-1,this.assignLayers(),t.reset();t.next();)this.Ia=Math.max(this.Ia,t.value.layer);this.cycleRemoveOption===Bg&&this.removeCycles();for(var e=[],n=(t=this.network).edges.iterator;n.next();){var i=n.value;i.valid=!1,e.push(i)}for(n=0;n<e.length;n++){var r=(i=e[n]).fromVertex,o=i.toVertex;if(!(i.valid||(null===r.node&&null===r.data||null===o.node&&null===o.data)&&r.layer===o.layer)){var a=0,s=0,l=0,u=0;if(null!==i.link){if(null===(s=i.link))continue;var c=r.node;if(a=o.node,null===c||null===a)continue;var h=s.fromNode;l=s.toNode;for(var d=s.fromPort;null!==d&&!d.Ed();)d=d.panel;for(s=s.toPort;null!==s&&!s.Ed();)s=s.panel;if(i.rev){u=h;var f=d;h=l,d=s,l=u,s=f}var p=r.focus;u=o.focus;var g=i.rev?o.bounds:r.bounds;f=pt.alloc(),c!==h?g.w()&&h.isVisible()?h.actualBounds.w()?(Mc(h,d,re,f),f.x+=h.actualBounds.x-g.x,f.y+=h.actualBounds.y-g.y):(Mc(h,d,re,f),f.w()||f.assign(p)):f.assign(p):g.w()?(Mc(h,d,re,f),f.w()||f.assign(p)):f.assign(p),h=i.rev?r.bounds:o.bounds,c=pt.alloc(),a!==l?h.w()&&l.isVisible()?l.actualBounds.w()?(Mc(l,s,re,c),c.x+=l.actualBounds.x-h.x,c.y+=l.actualBounds.y-h.y):(Mc(l,s,re,c),c.w()||c.assign(u)):c.assign(u):h.w()?(Mc(l,s,re,c),c.w()||c.assign(u)):c.assign(u),90===this.K||270===this.K?(a=Math.round((f.x-p.x)/this.kc),l=f.x,s=Math.round((c.x-u.x)/this.kc),u=c.x):(a=Math.round((f.y-p.y)/this.kc),l=f.y,s=Math.round((c.y-u.y)/this.kc),u=c.y),pt.free(f),pt.free(c),i.portFromColOffset=a,i.portFromPos=l,i.portToColOffset=s,i.portToPos=u}else i.portFromColOffset=0,i.portFromPos=0,i.portToColOffset=0,i.portToPos=0;if(f=r.layer,c=o.layer,h=0,null!==(g=i.link)){var m=g.fromPort,v=g.toPort;if(null!==m&&null!==v){var y=g.fromNode;if(d=g.toNode,null!==y&&null!==d){var w=Lg(this,!0),b=Lg(this,!1),x=this.setsPortSpots?w:g.computeSpot(!0,m);p=this.setsPortSpots?b:g.computeSpot(!1,v);var S=g.isOrthogonal;x.$c()&&x.Hf(b)&&p.$c()&&p.Hf(w)?h=0:(w=g.getLinkPoint(y,m,x,!0,S,d,v,pt.alloc()),b=g.getLinkDirection(y,m,w,x,!0,S,d,v),pt.free(w),x.ys()||b!==fg(this,i,!0)?this.setsPortSpots&&null!==y&&1===y.ports.count&&i.rev&&(h+=1):h+=1,x=g.getLinkPoint(d,v,p,!1,S,y,m,pt.alloc()),g=g.getLinkDirection(d,v,x,p,!1,S,y,m),pt.free(x),p.ys()||g!==fg(this,i,!1)?this.setsPortSpots&&null!==d&&1===d.ports.count&&i.rev&&(h+=2):h+=2)}}}if(h=1===(d=h)||3===d,(d=2===d||3===d)&&((p=t.createVertex()).node=null,p.Dj=1,p.layer=f,p.near=r,t.dh(p),(r=t.Zj(r,p,i.link)).valid=!1,r.rev=i.rev,r.portFromColOffset=a,r.portToColOffset=0,r.portFromPos=l,r.portToPos=0,r=p),g=1,h&&g--,f-c>g&&0<f){for(i.valid=!1,(p=t.createVertex()).node=null,p.Dj=2,p.layer=f-1,t.dh(p),(r=t.Zj(r,p,i.link)).valid=!0,r.rev=i.rev,r.portFromColOffset=d?0:a,r.portToColOffset=0,r.portFromPos=d?0:l,r.portToPos=0,r=p,f--;f-c>g&&0<f;)(p=t.createVertex()).node=null,p.Dj=3,p.layer=f-1,t.dh(p),(r=t.Zj(r,p,i.link)).valid=!0,r.rev=i.rev,r.portFromColOffset=0,r.portToColOffset=0,r.portFromPos=0,r.portToPos=0,r=p,f--;(r=t.Zj(p,o,i.link)).valid=!h,h&&(p.near=o),r.rev=i.rev,r.portFromColOffset=0,r.portToColOffset=s,r.portFromPos=0,r.portToPos=u}else i.valid=!0}}for(t=this.tc=[],e=0;e<=this.Ia;e++)t[e]=0;for(e=this.network.vertexes.iterator;e.next();)e.value.index=-1;for(this.initializeIndices(),this.Iq=-1,n=this.Md=this.Hn=0;n<=this.Ia;n++)t[n]>t[this.Md]&&(this.Iq=t[n]-1,this.Md=n),t[n]<t[this.Hn]&&(this.Hn=n);for(this.fl=[],n=0;n<t.length;n++)this.fl[n]=[];for(e.reset();e.next();)t=e.value,this.fl[t.layer][t.index]=t;for(this.Ra=-1,t=0;t<=this.Ia;t++){for(e=Tg(this,t),n=0,i=this.tc[t],o=0;o<i;o++)r=e[o],n+=this.nodeMinColumnSpace(r,!0),r.column=n,n+=1,n+=this.nodeMinColumnSpace(r,!1);this.Ra=Math.max(this.Ra,n-1),Ng(this,t,e)}this.reduceCrossings(),this.straightenAndPack(),this.updateParts()}this.network=null,this.isValidLayout=!0},qp.prototype.linkMinLength=function(){return 1},qp.prototype.nodeMinLayerSpace=function(t,e){return null===t.node&&null===t.data?0:90===this.K||270===this.K?e?t.focus.y+10:t.bounds.height-t.focus.y+10:e?t.focus.x+10:t.bounds.width-t.focus.x+10},qp.prototype.nodeMinColumnSpace=function(t,e){if(null===t.node&&null===t.data)return 0;var n=e?t.ev:t.dv;return null!==n?n:90===(n=this.K)||270===n?e?t.ev=t.focus.x/this.kc+1|0:t.dv=(t.bounds.width-t.focus.x)/this.kc+1|0:e?t.ev=t.focus.y/this.kc+1|0:t.dv=(t.bounds.height-t.focus.y)/this.kc+1|0},qp.prototype.countCrossings=function(){for(var t=0,e=0;e<=this.Ia;e++)for(var n=$p(this,e,1),i=this.tc[e],r=0;r<i;r++)for(var o=r;o<i;o++)t+=n[r*i+o];return t},qp.prototype.normalize=function(){var t=1/0;this.Ra=-1;for(var e=this.network.vertexes.iterator;e.next();){var n=e.value;t=Math.min(t,n.column-this.nodeMinColumnSpace(n,!0)),this.Ra=Math.max(this.Ra,n.column+this.nodeMinColumnSpace(n,!1))}for(e.reset();e.next();)e.value.column-=t;this.Ra-=t},qp.prototype.removeCycles=function(){for(var t=this.network.edges.iterator;t.next();)t.value.rev=!1;switch(this.Dk){default:case Ig:var e=0,n=(t=this.network).vertexes.count-1,i=[];i.length=n+1;for(var r=t.vertexes.iterator;r.next();)r.value.valid=!0;for(;null!==og(t);){for(r=ag(t);null!==r;)i[n]=r,n--,r.valid=!1,r=ag(t);for(r=sg(t);null!==r;)i[e]=r,e++,r.valid=!1,r=sg(t);r=null;for(var o=0,a=this.network.vertexes.iterator;a.next();){var s=a.value;if(s.valid){for(var l=0,u=s.destinationEdges;u.next();)u.value.toVertex.valid&&l++;u=0;for(var c=s.sourceEdges;c.next();)c.value.fromVertex.valid&&u++;(null===r||o<l-u)&&(r=s,o=l-u)}}null!==r&&(i[e]=r,e++,r.valid=!1)}for(e=0;e<t.vertexes.count;e++)i[e].index=e;for(i=t.edges.iterator;i.next();)(e=i.value).fromVertex.index>e.toVertex.index&&(t.gm(e),e.rev=!0);break;case jg:for(i=this.network.vertexes.iterator;i.next();)(t=i.value).Ll=-1,t.finish=-1;for(t=this.network.edges.iterator;t.next();)t.value.forest=!1;for(this.Kn=0,i.reset();i.next();)0===(e=i.value).sourceEdges.count&&lg(this,e);for(i.reset();i.next();)-1===(e=i.value).Ll&&lg(this,e);for(t.reset();t.next();)(i=t.value).forest||(n=(e=i.fromVertex).finish,o=(r=i.toVertex).finish,r.Ll<e.Ll&&n<o&&(this.network.gm(i),i.rev=!0));break;case Bg:for(e=(t=this.network).vertexes.iterator,i=1/0;e.next();)i=Math.min(i,e.value.layer);if(1/0>i){if(0>i)for(e.reset();e.next();)e.value.layer-=i;for(i=[],e.reset();e.next();)void 0===(r=i[(n=e.value).layer])?i[n.layer]=[n]:r.push(n);for(n=e=0;n<i.length;n++)if((r=i[n])&&0!==r.length){if(0<n)for(o=0;o<r.length;o++)r[o].layer-=e}else e++;for(i=t.edges.iterator;i.next();)(e=i.value).fromVertex.layer<e.toVertex.layer&&(t.gm(e),e.rev=!0)}}},qp.prototype.assignLayers=function(){switch(this.Zk){case Dg:ug(this);break;case Rg:for(var t,e=this.network.vertexes.iterator;e.next();)t=hg(this,e.value),this.Ia=Math.max(t,this.Ia);for(e.reset();e.next();)(t=e.value).layer=this.Ia-t.layer;break;default:for(ug(this),e=this.network.vertexes.iterator;e.next();)e.value.valid=!1;for(e.reset();e.next();)0===(t=e.value).sourceEdges.count&&dg(this,t);for(t=1/0,e.reset();e.next();)t=Math.min(t,e.value.layer);for(this.Ia=-1,e.reset();e.next();){var n=e.value;n.layer-=t,this.Ia=Math.max(this.Ia,n.layer)}}},qp.prototype.initializeIndices=function(){switch(this.Qk){default:case Gg:for(var t=this.network.vertexes.iterator;t.next();){var e=t.value,n=e.layer;e.index=this.tc[n],this.tc[n]++}break;case Fg:for(t=this.network.vertexes.iterator,e=this.Ia;0<=e;e--)for(t.reset();t.next();)(n=t.value).layer===e&&-1===n.index&&pg(this,n);break;case zg:for(t=this.network.vertexes.iterator,e=0;e<=this.Ia;e++)for(t.reset();t.next();)(n=t.value).layer===e&&-1===n.index&&gg(this,n)}},qp.prototype.reduceCrossings=function(){var t,e,n,i,r,o=this.countCrossings(),a=Qp(this);for(t=0;t<this.bj;t++){for(e=0;e<=this.Ia;e++)mg(this,e,1),vg(this,e,1);var s=this.countCrossings();for(s<o&&(o=s,a=Qp(this)),e=this.Ia;0<=e;e--)mg(this,e,-1),vg(this,e,-1);(s=this.countCrossings())<o&&(o=s,a=Qp(this))}for(Jp(this,a),t=0;t<this.bj;t++){for(e=0;e<=this.Ia;e++)mg(this,e,0),vg(this,e,0);for((s=this.countCrossings())<o&&(o=s,a=Qp(this)),e=this.Ia;0<=e;e--)mg(this,e,0),vg(this,e,0);(s=this.countCrossings())<o&&(o=s,a=Qp(this))}switch(Jp(this,a),this.rk){case Ug:break;case _g:for(r=o+1;(e=this.countCrossings())<r;)for(r=e,t=this.Ia;0<=t;t--)for(i=0;i<=t;i++){for(n=!0;n;)for(n=!1,e=t;e>=i;e--)n=vg(this,e,-1)||n;for((s=this.countCrossings())>=o?Jp(this,a):(o=s,a=Qp(this)),n=!0;n;)for(n=!1,e=t;e>=i;e--)n=vg(this,e,1)||n;for((s=this.countCrossings())>=o?Jp(this,a):(o=s,a=Qp(this)),n=!0;n;)for(n=!1,e=i;e<=t;e++)n=vg(this,e,1)||n;for(s>=o?Jp(this,a):(o=s,a=Qp(this)),n=!0;n;)for(n=!1,e=i;e<=t;e++)n=vg(this,e,-1)||n;for(s>=o?Jp(this,a):(o=s,a=Qp(this)),n=!0;n;)for(n=!1,e=t;e>=i;e--)n=vg(this,e,0)||n;for(s>=o?Jp(this,a):(o=s,a=Qp(this)),n=!0;n;)for(n=!1,e=i;e<=t;e++)n=vg(this,e,0)||n;s>=o?Jp(this,a):(o=s,a=Qp(this))}break;default:for(t=this.Ia,i=0,r=o+1;(e=this.countCrossings())<r;){for(r=e,n=!0;n;)for(n=!1,e=t;e>=i;e--)n=vg(this,e,-1)||n;for((s=this.countCrossings())>=o?Jp(this,a):(o=s,a=Qp(this)),n=!0;n;)for(n=!1,e=t;e>=i;e--)n=vg(this,e,1)||n;for((s=this.countCrossings())>=o?Jp(this,a):(o=s,a=Qp(this)),n=!0;n;)for(n=!1,e=i;e<=t;e++)n=vg(this,e,1)||n;for(s>=o?Jp(this,a):(o=s,a=Qp(this)),n=!0;n;)for(n=!1,e=i;e<=t;e++)n=vg(this,e,-1)||n;for(s>=o?Jp(this,a):(o=s,a=Qp(this)),n=!0;n;)for(n=!1,e=t;e>=i;e--)n=vg(this,e,0)||n;for(s>=o?Jp(this,a):(o=s,a=Qp(this)),n=!0;n;)for(n=!1,e=i;e<=t;e++)n=vg(this,e,0)||n;s>=o?Jp(this,a):(o=s,a=Qp(this))}}Jp(this,a)},qp.prototype.straightenAndPack=function(){if(0===this.ve){var t=0!=(1&this.bg),e=0!=(this.bg&Zg);if(1e3<this.network.edges.count&&e&&(t=!1),t){var n=[];for(e=0;e<=this.Ia;e++)n[e]=0;for(var i,o=this.network.vertexes.iterator;o.next();){var a=o.value;e=a.layer,i=a.column,a=this.nodeMinColumnSpace(a,!1),n[e]=Math.max(n[e],i+a)}for(o.reset();o.next();)e=(a=o.value).layer,i=a.column,a.column=(8*(this.Ra-n[e])>>1)+8*i;this.Ra*=8}if(0!=(2&this.bg))for(n=!0;n;){for(n=!1,e=this.Md+1;e<=this.Ia;e++)n=yg(this,e,1)||n;for(e=this.Md-1;0<=e;e--)n=yg(this,e,-1)||n;n=yg(this,this.Md,0)||n}if(0!=(4&this.bg)){for(e=this.Md+1;e<=this.Ia;e++)bg(this,e,1);for(e=this.Md-1;0<=e;e--)bg(this,e,-1);bg(this,this.Md,0)}if(t&&(Pg(this,-1),Pg(this,1)),0!=(2&this.bg))for(n=!0;n;){for(n=!1,n=yg(this,this.Md,0)||n,e=this.Md+1;e<=this.Ia;e++)n=yg(this,e,0)||n;for(e=this.Md-1;0<=e;e--)n=yg(this,e,0)||n}}else!function(t){for(var e=T(),n=t.fl.length,i=0;i<=n;i++)e[i]=[];for(i=t.network.vertexes.iterator;i.next();){var o=i.value;e[n-o.layer][o.index]=o}n=new J,function(t,e){for(var n=t.length,i=1;i<n-1;i++)for(var o=0,a=0,s=t[i],l=t[i+1],u=0;a<l.length;u++){var c=l[u];t:{if(null===c.node){var h=Kg(c);if(0<h.length){h=null===h[0].node;break t}}h=!1}var d=h;if(u===l.length-1||d){for(h=s.length-1,d&&(h=Kg(c)[0].index);a<=u;){if(!(c=l[a]).bo){d=[];for(var f=r(c.sourceEdgesArrayAccess),p=f.next();!p.done;p=f.next())(p=p.value).valid&&d.push(p);c.bo=d}for(d=(c=r(c.bo)).next();!d.done;d=c.next())((f=(d=d.value).fromVertex.index)<o||f>h)&&e.add(d);a++}o=h}}}(e,n);var a=null,s=null,l=null,u=null,c=0!=(1&t.ve),h=0!=(2&t.ve),d=0!=(4&t.ve),f=0!=(8&t.ve);for(c&&(t.verticalAlignment(e,n,!0),a=Cg(t,e,!0,!1)),e.reverse(),d&&(t.verticalAlignment(e,n,!1),l=Cg(t,e,!1,!1)),i=r(e),o=i.next();!o.done;o=i.next())o.value.reverse();f&&(t.verticalAlignment(e,n,!1),u=Cg(t,e,!1,!0)),e.reverse(),h&&(t.verticalAlignment(e,n,!0),s=Cg(t,e,!0,!0)),N(e),t.u(a,s,l,u),t.network.vertexes.each((function(t){var e=T();c&&e.push(a.get(t)),h&&e.push(s.get(t)),d&&e.push(l.get(t)),f&&e.push(u.get(t)),e.sort((function(t,e){return t-e}));var n=e.length;n=(e[Math.floor((n-1)/2)]+e[Math.ceil((n-1)/2)])/2,N(e),t.zc=n}))}(this)},qp.prototype.verticalAlignment=function(t,e,n){!function(t){for(var e=0;e<t.length;e++)for(var n=t[e],i=0;i<n.length;i++){var r=n[i];r.root=r,r.align=r,r.Tz=e,r.vi=i}}(t);for(var i=(t=r(t)).next();!i.done;i=t.next())for(var o=-1,a=(i=r(i.value)).next();!a.done;a=i.next()){a=a.value;var s=n?Kg(a):Qg(a),l=s.length;if(0<l){s.sort((function(t,e){return t.vi-e.vi}));var u=(l-1)/2;for(l=Math.floor(u),u=Math.ceil(u);l<=u;l++)if(a.align===a){var c,h=s[l];c=n?qg(h,a):qg(a,h),!e.contains(c)&&o<h.vi&&(h.align=a,a.root=h.root,a.align=h.root,o=h.vi)}}}},qp.prototype.u=function(t){for(var e=[],n=0;n<arguments.length;++n)e[n]=arguments[n];n=-1;for(var i=T(),r=T(),o=1/0,a=0;4>a;a++)if(e[a]){var s=Eg(this,e[a],i,r,a);s<o&&(n=a,o=s)}for(o={},a=0;4>a;o={delta:o.delta},a++)e[a]&&(o.delta=0===a||2===a?i[n]-i[a]:r[n]-r[a],0!==o.delta&&e[a].each(function(t){return function(e){e.value+=t.delta}}(o)));N(i),N(r)},qp.prototype.commitLayout=function(){if(this.setsPortSpots)for(var t=Lg(this,!0),e=Lg(this,!1),n=this.network.edges.iterator;n.next();){var i=n.value.link;null!==i&&(i.fromSpot=t,i.toSpot=e)}this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},qp.prototype.commitNodes=function(){this.he=[],this.Ld=[],this.Kd=[],this.Ta=[];for(var t=0;t<=this.Ia;t++)this.he[t]=0,this.Ld[t]=0,this.Kd[t]=0,this.Ta[t]=0;for(t=this.network.vertexes.iterator;t.next();){var e=t.value,n=e.layer;this.he[n]=Math.max(this.he[n],this.nodeMinLayerSpace(e,!0)),this.Ld[n]=Math.max(this.Ld[n],this.nodeMinLayerSpace(e,!1))}e=0,n=this.ie;for(var i=0;i<=this.Ia;i++){var r=n;0>=this.he[i]+this.Ld[i]&&(r=0),0<i&&(e+=r/2),90===this.K||0===this.K?(e+=this.Ld[i],this.Kd[i]=e,e+=this.he[i]):(e+=this.he[i],this.Kd[i]=e,e+=this.Ld[i]),i<this.Ia&&(e+=r/2),this.Ta[i]=e}for(n=e,e=this.arrangementOrigin,i=0;i<=this.Ia;i++)270===this.K?this.Kd[i]=e.y+this.Kd[i]:90===this.K?(this.Kd[i]=e.y+n-this.Kd[i],this.Ta[i]=n-this.Ta[i]):180===this.K?this.Kd[i]=e.x+this.Kd[i]:(this.Kd[i]=e.x+n-this.Kd[i],this.Ta[i]=n-this.Ta[i]);n=0!==this.ve,t.reset(),i=270===this.K||90===this.K;for(var o=1/0,a=r=1/0,s=-1/0;t.next();){var l=t.value,u=l.layer,c=0|l.column;i?(a=e.x+this.kc*c,u=this.Kd[u]):(a=this.Kd[u],u=e.y+this.kc*c),l.centerX=a,l.centerY=u,n&&isFinite(l.zc)&&(i?l.node?l.x=e.x+l.zc:l.centerX=e.x+l.zc:l.node?l.y=e.y+l.zc:l.centerY=e.y+l.zc),o=Math.min(l.x,o),r=Math.min(l.y,r),i?(a=o,s=Math.max(s,l.bounds.right)):(a=r,s=Math.max(s,l.bounds.bottom))}for(this.xw=s-a,o=e.x-o,e=e.y-r,this.Rf=new pt(n&&i?0:o,n&&!i?0:e),t.reset();t.next();)(n=t.value).x+=o,n.y+=e,n.commit()},qp.prototype.Gu=function(){for(var t=0,e=this.ie,n=0;n<=this.Ia;n++)t+=this.he[n],t+=this.Ld[n];t+=this.Ia*e,e=[],n=0!==this.ve?this.xw:this.kc*this.Ra;for(var i=this.maxLayer;0<=i;i--)270===this.K?0===i?e.push(new Bt(0,0,n,Math.abs(this.Ta[0]))):e.push(new Bt(0,this.Ta[i-1],n,Math.abs(this.Ta[i-1]-this.Ta[i]))):90===this.K?0===i?e.push(new Bt(0,this.Ta[0],n,Math.abs(this.Ta[0]-t))):e.push(new Bt(0,this.Ta[i],n,Math.abs(this.Ta[i-1]-this.Ta[i]))):180===this.K?0===i?e.push(new Bt(0,0,Math.abs(this.Ta[0]),n)):e.push(new Bt(this.Ta[i-1],0,Math.abs(this.Ta[i-1]-this.Ta[i]),n)):0===i?e.push(new Bt(this.Ta[0],0,Math.abs(this.Ta[0]-t),n)):e.push(new Bt(this.Ta[i],0,Math.abs(this.Ta[i-1]-this.Ta[i]),n));this.commitLayers(e,this.Rf)},qp.prototype.commitLayers=function(){},qp.prototype.commitLinks=function(){for(var t,e=this.network.edges.iterator;e.next();)null!==(t=e.value.link)&&(t.uh(),t.Fj(),t.zf());for(e.reset();e.next();)null!==(t=e.value.link)&&t.vg();for(e.reset();e.next();){var n=e.value;if(null!==(t=n.link)){t.uh();var i=t,r=i.fromNode,o=i.toNode,a=i.fromPort,s=i.toPort;if(null!==r){var l=r.findVisibleNode();null!==l&&l!==r&&(r=l,a=l.port)}null!==o&&(null!==(l=o.findVisibleNode())&&l!==o&&(o=l,s=l.port));var u=t.computeSpot(!0,a);l=t.computeSpot(!1,s);var c=n.fromVertex,h=n.toVertex;if(n.valid)t.curve===qh&&4===t.pointsCount&&(c.column===h.column&&0===this.alignOption?(n=t.getLinkPoint(r,a,u,!0,!1,o,s),s=t.getLinkPoint(o,s,l,!1,!1,r,a),n.w()||n.set(r.actualBounds.center),s.w()||s.set(o.actualBounds.center),t.Fj(),t.yf(n.x,n.y),t.yf((2*n.x+s.x)/3,(2*n.y+s.y)/3),t.yf((n.x+2*s.x)/3,(n.y+2*s.y)/3),t.yf(s.x,s.y)):(n=i=!1,null!==a&&u===$t&&(i=!0),null!==s&&l===$t&&(n=!0),(i||n)&&(l=null,i&&((l=t.getLinkPointFromPoint(r,a,a.ga(re),t.i(3),!0)).w()||l.set(r.actualBounds.center),t.L(0,l.x,l.y)),r=null,n&&((r=t.getLinkPointFromPoint(o,s,s.ga(re),t.i(0),!1)).w()||r.set(o.actualBounds.center),t.L(3,r.x,r.y)),l&&(o=t.i(2),t.L(1,(2*l.x+o.x)/3,(2*l.y+o.y)/3)),r&&(o=t.i(1),t.L(2,(2*r.x+o.x)/3,(2*r.y+o.y)/3))))),t.zf();else if(c.layer===h.layer)t.zf();else{var d=!1,f=!1,p=this.ie,g=t.firstPickIndex+1;if(t.isOrthogonal){f=!0;var m=t.pointsCount;4<m&&t.points.removeRange(2,m-3)}else if(t.curve===qh)d=!0,4<(m=t.pointsCount)&&t.points.removeRange(2,m-3),4===m&&(g=2);else{m=t.pointsCount;var v=u===$t,y=l===$t;2<m&&v&&y?t.points.removeRange(1,m-2):3<m&&v&&!y?t.points.removeRange(1,m-3):3<m&&!v&&y?t.points.removeRange(2,m-2):4<m&&!v&&!y&&t.points.removeRange(2,m-3)}if(n.rev){for(;null!==h&&c!==h;){var w=m=null;for(v=h.sourceEdges.iterator;v.next()&&((y=v.value).link!==n.link||(m=y.fromVertex,w=y.toVertex,null!==m.node)););if(null===m)break;if(m!==c){v=t.i(g-1).x,y=t.i(g-1).y;var b=m.centerX,x=m.centerY;if(f)180===this.K||0===this.K?g===t.firstPickIndex+1?(t.m(g++,v,y),t.m(g++,v,x)):(null!==w?w.centerY:y)!==x&&(w=this.Ta[m.layer-1]+this.Rf.x,t.m(g++,w,y),t.m(g++,w,x)):g===t.firstPickIndex+1?(t.m(g++,v,y),t.m(g++,b,y)):(null!==w?w.centerX:v)!==b&&(w=this.Ta[m.layer-1]+this.Rf.y,t.m(g++,v,w),t.m(g++,b,w));else if(g===t.firstPickIndex+1){w=Math.max(10,this.he[h.layer]);var S=Math.max(10,this.Ld[h.layer]);if(d)180===this.K?b<=h.bounds.x?(h=h.bounds.x,t.m(g++,h-w,x),t.m(g++,h,x),t.m(g++,h+S,x)):(t.m(g++,b-w,x),t.m(g++,b,x),t.m(g++,b+S,x)):90===this.K?x>=h.bounds.bottom?(h=h.bounds.y+h.bounds.height,t.m(g++,b,h+S),t.m(g++,b,h),t.m(g++,b,h-w)):(t.m(g++,b,x+S),t.m(g++,b,x),t.m(g++,b,x-w)):270===this.K?x<=h.bounds.y?(h=h.bounds.y,t.m(g++,b,h-w),t.m(g++,b,h),t.m(g++,b,h+S)):(t.m(g++,b,x-w),t.m(g++,b,x),t.m(g++,b,x+S)):0===this.K&&(b>=h.bounds.right?(h=h.bounds.x+h.bounds.width,t.m(g++,h+S,x),t.m(g++,h,x),t.m(g++,h-w,x)):(t.m(g++,b+S,x),t.m(g++,b,x),t.m(g++,b-w,x)));else{t.m(g++,v,y);var P=0;180===this.K||0===this.K?((180===this.K?b>=h.bounds.right:b<=h.bounds.x)&&(P=(0===this.K?-w:S)/2),t.m(g++,v+P,x)):((270===this.K?x>=h.bounds.bottom:x<=h.bounds.y)&&(P=(90===this.K?-w:S)/2),t.m(g++,b,y+P)),t.m(g++,b,x)}}else w=Math.max(10,this.he[m.layer]),S=Math.max(10,this.Ld[m.layer]),d?180===this.K?(t.m(g++,b-w-p,x),t.m(g++,Math.min(b-w+p/2,b),x),t.m(g++,b,x),t.m(g++,b,x),t.m(g++,Math.max(b+S-p/2,b),x),t.m(g++,b+S+p,x)):90===this.K?(t.m(g++,b,x+S+p),t.m(g++,b,Math.max(x+S-p/2,x)),t.m(g++,b,x),t.m(g++,b,x),t.m(g++,b,Math.min(x-w+p/2,x)),t.m(g++,b,x-w-p)):270===this.K?(t.m(g++,b,x-w-p),t.m(g++,b,Math.min(x-w+p/2,x)),t.m(g++,b,x),t.m(g++,b,x),t.m(g++,b,Math.max(x+S-p/2,x)),t.m(g++,b,x+S+p)):(t.m(g++,b+S+p,x),t.m(g++,Math.max(b+S-p/2,b),x),t.m(g++,b,x),t.m(g++,b,x),t.m(g++,Math.min(b-w+p/2,b),x),t.m(g++,b-w-p,x)):t.m(g++,b,x)}h=m}(null===s||u!==$t||f)&&(v=t.i(g-1).x,y=t.i(g-1).y,b=t.i(g).x,x=t.i(g).y,f?(p=this.Ld[c.layer],180===this.K||0===this.K?((f=y)>=c.bounds.y&&f<=c.bounds.bottom&&(180===this.K?b>=c.bounds.x:b<=c.bounds.right)&&(h=c.centerX+(180===this.K?-p:p),f=f<c.bounds.y+c.bounds.height/2?c.bounds.y-this.kc/2:c.bounds.bottom+this.kc/2,t.m(g++,h,y),t.m(g++,h,f)),t.m(g++,b,f)):((f=v)>=c.bounds.x&&f<=c.bounds.right&&(270===this.K?x>=c.bounds.y:x<=c.bounds.bottom)&&(h=c.centerY+(270===this.K?-p:p),f=f<c.bounds.x+c.bounds.width/2?c.bounds.x-this.kc/2:c.bounds.right+this.kc/2,t.m(g++,v,h),t.m(g++,f,h)),t.m(g++,f,x)),t.m(g++,b,x)):d?(w=Math.max(10,this.he[c.layer]),S=Math.max(10,this.Ld[c.layer]),180===this.K&&b>=c.bounds.x?(h=c.bounds.x+c.bounds.width,t.L(g-2,h,y),t.L(g-1,h+S,y)):90===this.K&&x<=c.bounds.bottom?(h=c.bounds.y,t.L(g-2,v,h),t.L(g-1,v,h-w)):270===this.K&&x>=c.bounds.y?(h=c.bounds.y+c.bounds.height,t.L(g-2,v,h),t.L(g-1,v,h+S)):0===this.K&&b<=c.bounds.right&&(h=c.bounds.x,t.L(g-2,h,y),t.L(g-1,h-w,y))):(w=Math.max(10,this.he[c.layer]),S=Math.max(10,this.Ld[c.layer]),f=0,180===this.K||0===this.K?((180===this.K?b<=c.bounds.x:b>=c.bounds.right)&&(f=(0===this.K?S:-w)/2),t.m(g++,b+f,y)):((270===this.K?x<=c.bounds.y:x>=c.bounds.bottom)&&(f=(90===this.K?S:-w)/2),t.m(g++,v,x+f)),t.m(g++,b,x)))}else{for(;null!==c&&c!==h;){for(w=m=null,c=c.destinationEdges.iterator;c.next()&&((v=c.value).link!==n.link||(m=v.toVertex,null!==(w=v.fromVertex).node&&(w=null),null!==m.node)););if(null===m)break;m!==h&&(v=t.i(g-1).x,y=t.i(g-1).y,b=m.centerX,x=m.centerY,f?180===this.K||0===this.K?(null!==w?w.centerY:y)!==x&&(w=this.Ta[m.layer]+this.Rf.x,g===t.firstPickIndex+1&&(w=0===this.K?Math.max(w,v):Math.min(w,v)),t.m(g++,w,y),t.m(g++,w,x)):(null!==w?w.centerX:v)!==b&&(w=this.Ta[m.layer]+this.Rf.y,g===t.firstPickIndex+1&&(w=90===this.K?Math.max(w,y):Math.min(w,y)),t.m(g++,v,w),t.m(g++,b,w)):(w=Math.max(10,this.he[m.layer]),S=Math.max(10,this.Ld[m.layer]),d?180===this.K?(t.m(g++,b+S+p,x),t.m(g++,Math.max(b+S-p/2,b),x),t.m(g++,b,x),t.m(g++,b,x),t.m(g++,Math.min(b-w+p/2,b),x),t.m(g++,b-w-p,x)):90===this.K?(t.m(g++,b,x-w-p),t.m(g++,b,Math.min(x-w+p/2,x)),t.m(g++,b,x),t.m(g++,b,x),t.m(g++,b,Math.max(x+S-p/2,x)),t.m(g++,b,x+S+p)):270===this.K?(t.m(g++,b,x+S+p),t.m(g++,b,Math.max(x+S-p/2,x)),t.m(g++,b,x),t.m(g++,b,x),t.m(g++,b,Math.min(x-w+p/2,x)),t.m(g++,b,x-w-p)):(t.m(g++,b-w-p,x),t.m(g++,Math.min(b-w+p/2,b),x),t.m(g++,b,x),t.m(g++,b,x),t.m(g++,Math.max(b+S-p/2,b),x),t.m(g++,b+S+p,x)):180===this.K?(t.m(g++,b+S,x),t.m(g++,b-w,x)):90===this.K?(t.m(g++,b,x-w),t.m(g++,b,x+S)):270===this.K?(t.m(g++,b,x+S),t.m(g++,b,x-w)):(t.m(g++,b-w,x),t.m(g++,b+S,x)))),c=m}f&&(v=t.i(g-1).x,y=t.i(g-1).y,b=t.i(g).x,x=t.i(g).y,180===this.K||0===this.K?y!==x&&(w=0===this.K?Math.min(Math.max((b+v)/2,this.Ta[h.layer]+this.Rf.x),b):Math.max(Math.min((b+v)/2,this.Ta[h.layer]+this.Rf.x),b),t.m(g++,w,y),t.m(g++,w,x)):v!==b&&(w=90===this.K?Math.min(Math.max((x+y)/2,this.Ta[h.layer]+this.Rf.y),x):Math.max(Math.min((x+y)/2,this.Ta[h.layer]+this.Rf.y),x),t.m(g++,v,w),t.m(g++,b,w)))}null!==i&&d&&4<=t.pointsCount&&(null!==a&&(a=u===$t?t.getLinkPointFromPoint(r,a,a.ga(re),t.i(3),!0):t.i(0),u===$t&&(u=t.i(2),i=t.i(3),90===this.direction||270===this.direction?(t.L(1,(a.x+u.x)/2,u.y),t.L(2,i.x,(u.y+i.y)/2)):(t.L(1,u.x,(a.y+u.y)/2),t.L(2,(u.x+i.x)/2,i.y))),a.w()||a.set(r.actualBounds.center),t.L(0,a.x,a.y)),null!==s&&(r=l===$t?t.getLinkPointFromPoint(o,s,s.ga(re),t.i(t.pointsCount-4),!1):t.i(t.pointsCount-1),l===$t&&(s=t.i(t.pointsCount-3),l=t.i(t.pointsCount-4),90===this.direction||270===this.direction?(t.L(t.pointsCount-2,(r.x+s.x)/2,s.y),t.L(t.pointsCount-2,l.x,(s.y+l.y)/2)):(t.L(t.pointsCount-2,s.x,(r.y+s.y)/2),t.L(t.pointsCount-3,(s.x+l.x)/2,l.y))),r.w()||r.set(o.actualBounds.center),t.L(t.pointsCount-1,r.x,r.y))),t.zf(),n.commit()}}}this.avoidOrthogonalOverlaps()},qp.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var t=new K,e=this.network.edges.iterator;e.next();){var n=e.value.link;null!==n&&n.isOrthogonal&&!t.contains(n)&&t.add(n)}if(0<t.count)if(90===this.K||270===this.K){for(e=0,n=[],t=t.iterator;t.next();){var i=t.value;if(null!==i&&i.isOrthogonal)for(var r=2;r<i.pointsCount-3;r++){var o=i.i(r),a=i.i(r+1);if(this.B(o.y,a.y)&&!this.B(o.x,a.x)){var s=new Wg;s.layer=Math.floor(o.y/2);var l=i.i(0),u=i.i(i.pointsCount-1);if(s.first=l.x*l.x+l.y,s.jc=u.x*u.x+u.y,s.rd=Math.min(o.x,a.x),s.Ic=Math.max(o.x,a.x),s.index=r,s.link=i,r+2<i.pointsCount){l=i.i(r-1),u=i.i(r+2);var c=0;l.y<o.y?c=u.y<o.y?3:o.x<a.x?2:1:l.y>o.y&&(c=u.y>o.y?0:a.x<o.x?2:1),s.j=c}n.push(s)}}}if(1<n.length)for(n.sort(this.Vx),t=0;t<n.length;){for(o=n[t].layer,i=t+1;i<n.length&&n[i].layer===o;)i++;if(1<i-t)for(o=t;o<i;){for(a=n[o].Ic,r=t+1;r<i&&n[r].rd<a;)a=Math.max(a,n[r].Ic),r++;if(1<(a=r-o)){for(this.zi(n,this.Js,o,o+a),c=1,s=n[o].jc,l=o;l<r;l++)(u=n[l]).jc!==s&&(c++,s=u.jc);this.zi(n,this.Ux,o,o+a);var h=1;for(s=n[o].first,l=o;l<r;l++)(u=n[l]).first!==s&&(h++,s=u.first);for(l=!0,u=h,c<h?(l=!1,u=c,s=n[o].jc,this.zi(n,this.Js,o,o+a)):s=n[o].first,c=0,h=o;h<r;h++){var d=n[h];(l?d.first:d.jc)!==s&&(c++,s=l?d.first:d.jc);var f=d.link;o=f.i(d.index),a=f.i(d.index+1);var p=this.linkSpacing*(c-(u-1)/2);e++,f.uh(),f.L(d.index,o.x,o.y+p),f.L(d.index+1,a.x,a.y+p),f.zf()}}o=r}t=i}}else{for(e=0,n=[],t=t.iterator;t.next();)if(null!==(i=t.value)&&i.isOrthogonal)for(r=2;r<i.pointsCount-3;r++)o=i.i(r),a=i.i(r+1),this.B(o.x,a.x)&&!this.B(o.y,a.y)&&((s=new Wg).layer=Math.floor(o.x/2),l=i.i(0),u=i.i(i.pointsCount-1),s.first=l.x+l.y*l.y,s.jc=u.x+u.y*u.y,s.rd=Math.min(o.y,a.y),s.Ic=Math.max(o.y,a.y),s.index=r,s.link=i,r+2<i.pointsCount&&(l=i.i(r-1),u=i.i(r+2),c=0,l.x<o.x?c=u.x<o.x?3:o.y<a.y?2:1:l.x>o.x&&(c=u.x>o.x?0:a.y<o.y?2:1),s.j=c),n.push(s));if(1<n.length)for(n.sort(this.Vx),t=0;t<n.length;){for(o=n[t].layer,i=t+1;i<n.length&&n[i].layer===o;)i++;if(1<i-t)for(o=t;o<i;){for(a=n[o].Ic,r=t+1;r<i&&n[r].rd<a;)a=Math.max(a,n[r].Ic),r++;if(1<(a=r-o)){for(this.zi(n,this.Js,o,o+a),c=1,s=n[o].jc,l=o;l<r;l++)(u=n[l]).jc!==s&&(c++,s=u.jc);for(this.zi(n,this.Ux,o,o+a),h=1,s=n[o].first,l=o;l<r;l++)(u=n[l]).first!==s&&(h++,s=u.first);for(l=!0,u=h,c<h?(l=!1,u=c,s=n[o].jc,this.zi(n,this.Js,o,o+a)):s=n[o].first,c=0,h=o;h<r;h++)d=n[h],(l?d.first:d.jc)!==s&&(c++,s=l?d.first:d.jc),o=(f=d.link).i(d.index),a=f.i(d.index+1),p=this.linkSpacing*(c-(u-1)/2),e++,f.uh(),f.L(d.index,o.x+p,o.y),f.L(d.index+1,a.x+p,a.y),f.zf()}o=r}t=i}}}},(e=qp.prototype).Vx=function(t,e){return t instanceof Wg&&e instanceof Wg&&t!==e?t.layer<e.layer?-1:t.layer>e.layer?1:t.rd<e.rd?-1:t.rd>e.rd?1:t.Ic<e.Ic?-1:t.Ic>e.Ic?1:0:0},e.Ux=function(t,e){return t instanceof Wg&&e instanceof Wg&&t!==e?t.first<e.first?-1:t.first>e.first||t.j<e.j?1:t.j>e.j||t.rd<e.rd?-1:t.rd>e.rd?1:t.Ic<e.Ic?-1:t.Ic>e.Ic?1:0:0},e.Js=function(t,e){return t instanceof Wg&&e instanceof Wg&&t!==e?t.jc<e.jc?-1:t.jc>e.jc||t.j<e.j?1:t.j>e.j||t.rd<e.rd?-1:t.rd>e.rd?1:t.Ic<e.Ic?-1:t.Ic>e.Ic?1:0:0},e.B=function(t,e){return-1<(t-=e)&&1>t},e.zi=function(t,e,n,i){var r=t.length,o=i-n;if(!(1>=o))if((0>n||n>=r-1)&&x("not in range 0 <= from < length: "+n),2===o)0<e(i=t[n],r=t[n+1])&&(t[n]=r,t[n+1]=i);else if(0===n)if(i>=r)t.sort(e);else for((n=t.slice(0,i)).sort(e),e=0;e<i;e++)t[e]=n[e];else if(i>=r)for((i=t.slice(n)).sort(e),e=n;e<r;e++)t[e]=i[e-n];else for((r=t.slice(n,i)).sort(e),e=n;e<i;e++)t[e]=r[e-n]},d.Object.defineProperties(qp.prototype,{layerSpacing:{get:function(){return this.ie},set:function(t){this.ie!==t&&0<=t&&(this.ie=t,this.C())}},columnSpacing:{get:function(){return this.kc},set:function(t){this.kc!==t&&0<t&&(this.kc=t,this.C())}},direction:{get:function(){return this.K},set:function(t){this.K!==t&&(0===t||90===t||180===t||270===t?(this.K=t,this.C()):x("LayeredDigraphLayout.direction must be 0, 90, 180, or 270"))}},cycleRemoveOption:{get:function(){return this.Dk},set:function(t){this.Dk===t||t!==Ig&&t!==jg&&t!==Bg||(this.Dk=t,this.C())}},layeringOption:{get:function(){return this.Zk},set:function(t){this.Zk===t||t!==Og&&t!==Dg&&t!==Rg||(this.Zk=t,this.C())}},initializeOption:{get:function(){return this.Qk},set:function(t){this.Qk===t||t!==Fg&&t!==zg&&t!==Gg||(this.Qk=t,this.C())}},iterations:{get:function(){return this.bj},set:function(t){this.bj!==t&&0<=t&&(this.bj=t,this.C())}},aggressiveOption:{get:function(){return this.rk},set:function(t){this.rk===t||t!==Ug&&t!==Hg&&t!==_g||(this.rk=t,this.C())}},packOption:{get:function(){return this.bg},set:function(t){this.bg!==t&&0<=t&&8>t&&(this.bg=t,this.C())}},alignOption:{get:function(){return this.ve},set:function(t){this.ve!==t&&0<=t&&16>t&&(this.ve=t,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(t){this.sf!==t&&(this.sf=t,this.C())}},linkSpacing:{get:function(){return this.Cn},set:function(t){this.Cn!==t&&0<=t&&(this.Cn=t,this.C())}},maxLayer:{get:function(){return this.Ia}},maxIndex:{get:function(){return this.Iq}},maxColumn:{get:function(){return this.Ra}},minIndexLayer:{get:function(){return this.Hn}},maxIndexLayer:{get:function(){return this.Md}}});var jg=new G(qp,"CycleDepthFirst",0),Ig=new G(qp,"CycleGreedy",1),Bg=new G(qp,"CycleFromLayers",2),Og=new G(qp,"LayerOptimalLinkLength",0),Dg=new G(qp,"LayerLongestPathSink",1),Rg=new G(qp,"LayerLongestPathSource",2),Fg=new G(qp,"InitDepthFirstOut",0),zg=new G(qp,"InitDepthFirstIn",1),Gg=new G(qp,"InitNaive",2),Ug=new G(qp,"AggressiveNone",0),Hg=new G(qp,"AggressiveLess",1),_g=new G(qp,"AggressiveMore",2),Zg=8;function Wg(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}function Vg(t){Bd.call(this,t)}function Yg(t){zd.call(this,t),this.$n=this.bo=this.ao=this.co=null,this.Za=this.Ag=this.Ig=-1,this.u=NaN,this.F=null,this.valid=!1,this.finish=this.Ll=NaN,this.Dj=0,this.dv=this.ev=null}function Xg(t,e){return t.index-e.index}function qg(t,e){if(!t.$n){for(var n=[],i=r(t.destinationEdgesArrayAccess),o=i.next();!o.done;o=i.next())(o=o.value).valid&&n.push(o);t.$n=n}for(n=(t=r(t.$n)).next();!n.done;n=t.next())if((n=n.value).toVertex===e)return n;x("Unable to find destination edge to given vertex")}function Kg(t){if(!t.co){for(var e=[],n=r(t.sourceEdgesArrayAccess),i=n.next();!i.done;i=n.next())(i=i.value).valid&&e.push(i.fromVertex);e.sort(Xg),t.co=e}return t.co}function Qg(t){if(!t.ao){for(var e=[],n=r(t.destinationEdgesArrayAccess),i=n.next();!i.done;i=n.next())(i=i.value).valid&&e.push(i.toVertex);e.sort(Xg),t.ao=e}return t.ao}function Jg(t){Ud.call(this,t),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}function $g(t){Nd.call(this),this.Ub=new J,this.Wn=Mm,this.ud=Em,this.vo=Zm,this.Bq=Qm,this.$v=[],this.td=!0,this.Rb=Xm,this.$d=new Tt(10,10).freeze();var e=new tv(this);this.W=new ev(e),this.Y=new ev(e),this.ru=[],t&&Object.assign(this,t)}function tm(t){var e=new J;for(t=t.iterator;t.next();){var n=t.value;n.initialized||e.add(n)}return e}function em(t,e){var n=999999,i=null;for(e=e.iterator;e.next();){var r=e.value;switch(t.ud){case Em:r.sourceEdges.count<n&&(n=r.sourceEdges.count,i=r);break;case Lm:r.destinationEdges.count<n&&(n=r.destinationEdges.count,i=r);break;default:x("Unhandled path value "+t.ud.toString())}}return i}function nm(t,e){if(null!==e){switch(t.ud){case Em:if(0<e.destinationEdges.count){for(var n=new K,i=e.destinationVertexes;i.next();){var r=i.value;im(t,e,r)&&n.add(r)}0<n.count&&(e.children=n.Fa())}break;case Lm:if(0<e.sourceEdges.count){for(n=new K,i=e.sourceVertexes;i.next();)im(t,e,r=i.value)&&n.add(r);0<n.count&&(e.children=n.Fa())}break;default:x("Unhandled path value"+t.ud.toString())}for(i=(n=e.children).length,r=0;r<i;r++){var o=n[r];o.initialized=!0,o.level=e.level+1,o.parent=e,t.Ub.remove(o)}for(e=0;e<i;e++)nm(t,n[e])}}function im(t,e,n){if(n.initialized){if(null===e)var i=!1;else{for(i=e.parent;null!==i&&i!==n;)i=i.parent;i=i===n}if(i||n.level>e.level)return!1;t.removeChild(n.parent,n)}return!0}function rm(t,e){if(null!==e){t.initializeTreeVertexValues(e),e.alignment===zm&&t.sortTreeVertexChildren(e);for(var n=0,i=e.childrenCount,r=0,o=e.children,a=o.length,s=0;s<a;s++){var l=o[s];rm(t,l),n+=l.descendantCount+1,i=Math.max(i,l.maxChildrenCount),r=Math.max(r,l.maxGenerationCount)}e.descendantCount=n,e.maxChildrenCount=i,e.maxGenerationCount=0<i?r+1:0}}function om(t,e){if(null!==e){t.assignTreeVertexValues(e);for(var n=(e=e.children).length,i=0;i<n;i++)om(t,e[i])}}function am(t,e){if(null!==e){e.alignment!==zm&&t.sortTreeVertexChildren(e);for(var n=(e=e.children).length,i=0;i<n;i++)am(t,e[i])}}function sm(t){return t===Fm||t===zm||t===Gm||t===Um}function lm(t){return t===Fm||t===zm}function um(t){var e=t.parent;if(null!==e){var n=e.alignment;if(sm(n)){if(lm(n)){for(e=e.children,n=0;n<e.length&&t!==e[n];)n++;return 0==n%2}if(n===Gm)return!0}}return!1}function cm(t,e){if(0===e.childrenCount){var n=!1,i=0;null!==e.parent&&(i=e.parent.angle,n=sm(n=e.parent.alignment));var r=um(e);e.S.h(0,0),e.Da.h(e.width,e.height),null===e.parent||null===e.comments||(180!==i&&270!==i||n)&&!r?e.la.h(0,0):180===i&&!n||(90===i||270===i)&&r?e.la.h(e.width-2*e.focus.x,0):e.la.h(0,e.height-2*e.focus.y)}else{n=90===(i=Am(e))||270===i;for(var o=0,a=(r=e.children).length,s=0;s<a;s++){var l=r[s];o=Math.max(o,n?l.Da.width:l.Da.height)}var u=e.alignment,c=u===Dm,h=u===Rm;s=sm(u);var d=Math.max(0,e.breadthLimit);l=t.computeLayerSpacing(e);var f=e.nodeSpacing,p=t.computeNodeIndent(e),g=c||h?0:p/2,m=e.rowSpacing,v=0;(c||h||e.hm||e.im&&1===e.maxGenerationCount)&&(v=Math.max(0,e.rowIndent)),c=e.width;var y=e.height,w=0,b=0,x=0,S=0,P=0,k=0,C=0,A=0,M=0,E=0;if(s&&!lm(u)&&135<i&&r.reverse(),lm(u))if(1<a)for(var L=0;L<a;L++){var T=r[L],N=T.Da;0==L%2&&L!==a-1?M=Math.max(M,(n?N.width:N.height)+t.computeBusNodeSpacing(T)-f):0!=L%2&&(E=Math.max(E,(n?N.width:N.height)+t.computeBusNodeSpacing(T)-f))}else 1===a&&(M=n?r[0].Da.width:r[0].Da.height);if(s)switch(u){case Fm:case zm:M=(b=135>i?hm(t,e,r,M,w,b):dm(t,e,r,M,w,b)).x,w=b.width,b=b.height;break;case Gm:for(d=0;d<a;d++)x=(g=r[d]).Da,E=0===C?0:m,n?(g.S.h(o-x.width,P+E),w=Math.max(w,x.width),b=Math.max(b,P+E+x.height),P+=E+x.height):(g.S.h(S+E,o-x.height),w=Math.max(w,S+E+x.width),b=Math.max(b,x.height),S+=E+x.width),C++;break;case Um:for(o=0;o<a;o++)g=(d=r[o]).Da,x=0===C?0:m,n?(d.S.h(f/2+e.focus.x,P+x),w=Math.max(w,g.width),b=Math.max(b,P+x+g.height),P+=x+g.height):(d.S.h(S+x,f/2+e.focus.y),w=Math.max(w,S+x+g.width),b=Math.max(b,g.height),S+=x+g.width),C++}else for(E=0;E<a;E++)T=(L=r[E]).Da,n?(0<d&&0<C&&S+f+T.width>d&&(S<o&&vm(e,u,o-S,0,A,E-1),k++,C=0,A=E,x=b,S=0,P=135<i?-b-m:b+m),N=0===C?g:f,wm(t,L,0,P),L.S.h(S+N,P),w=Math.max(w,S+N+T.width),b=Math.max(b,x+(0===k?0:m)+T.height),S+=N+T.width):(0<d&&0<C&&P+f+T.height>d&&(P<o&&vm(e,u,0,o-P,A,E-1),k++,C=0,A=E,x=w,P=0,S=135<i?-w-m:w+m),N=0===C?g:f,wm(t,L,S,0),L.S.h(S,P+N),b=Math.max(b,P+N+T.height),w=Math.max(w,x+(0===k?0:m)+T.width),P+=N+T.height),C++;switch(0<k&&(n?(b+=Math.max(0,l),S<w&&vm(e,u,w-S,0,A,a-1),0<v&&(h||ym(e,v,0,0,a-1),w+=v)):(w+=Math.max(0,l),P<b&&vm(e,u,0,b-P,A,a-1),0<v&&(h||ym(e,0,v,0,a-1),b+=v))),v=h=0,u){case Bm:n?h+=w/2-e.focus.x-p/2:v+=b/2-e.focus.y-p/2;break;case Om:0<k?n?h+=w/2-e.focus.x-p/2:v+=b/2-e.focus.y-p/2:n?h+=(t=r[0].S.x+r[0].la.x)+(r[a-1].S.x+r[a-1].la.x+2*r[a-1].focus.x-t)/2-e.focus.x-p/2:v+=(t=r[0].S.y+r[0].la.y)+(r[a-1].S.y+r[a-1].la.y+2*r[a-1].focus.y-t)/2-e.focus.y-p/2;break;case Dm:n?(h-=p,w+=p):(v-=p,b+=p);break;case Rm:n?(h+=w-e.width+p,w+=p):(v+=b-e.height+p,b+=p);break;case Fm:case zm:n?h+=1<a?M+f/2-e.focus.x:r[0].focus.x-e.focus.x+r[0].la.x:v+=1<a?M+f/2-e.focus.y:r[0].focus.y-e.focus.y+r[0].la.y;break;case Gm:n?h+=w+f/2-e.focus.x:v+=b+f/2-e.focus.y;break;case Um:break;default:h=(t=t.customAlignment(e,h,v,w,b))[0],v=t[1],w=t[2],b=t[3]}for(t=0;t<a;t++)p=r[t],n?p.S.h(p.S.x+p.la.x-h,p.S.y+(135<i?(s?-b:-p.Da.height)+p.la.y-l:y+l+p.la.y)):p.S.h(p.S.x+(135<i?(s?-w:-p.Da.width)+p.la.x-l:c+l+p.la.x),p.S.y+p.la.y-v);n?(w=pm(e,w,h),0>h&&(h=0),135<i&&(v+=b+l),b=Math.max(Math.max(b,y),b+y+l)):(135<i&&(h+=w+l),w=Math.max(Math.max(w,c),w+c+l),b=gm(e,b,v),0>v&&(v=0)),e.la.h(h,v),e.Da.h(w,b)}}function hm(t,e,n,i,r,o){var a=n.length;if(0===a)return new Bt(i,0,r,o);if(1===a)return new Bt(i,0,r=(e=n[0]).Da.width,o=e.Da.height);for(var s=e.nodeSpacing,l=e.rowSpacing,u=90===Am(e),c=0,h=0,d=0,f=0;f<a;f++)if(!(0!=f%2||1<a&&f===a-1)){var p=n[f],g=p.Da,m=0===c?0:l;if(u){var v=t.computeBusNodeSpacing(p)-s;p.S.h(i-(g.width+v),d+m),r=Math.max(r,g.width+v),o=Math.max(o,d+m+g.height),d+=m+g.height}else v=t.computeBusNodeSpacing(p)-s,p.S.h(h+m,i-(g.height+v)),o=Math.max(o,g.height+v),r=Math.max(r,h+m+g.width),h+=m+g.width;c++}for(c=0,p=h,f=d,u?(h=i+s,d=0):(h=0,d=i+s),g=0;g<a;g++)if(0!=g%2){v=(m=n[g]).Da;var y=0===c?0:l;if(u){var w=t.computeBusNodeSpacing(m)-s;m.S.h(h+w,d+y),r=Math.max(r,h+v.width+w),o=Math.max(o,d+y+v.height),d+=y+v.height}else w=t.computeBusNodeSpacing(m)-s,m.S.h(h+y,d+w),r=Math.max(r,h+y+v.width),o=Math.max(o,d+v.height+w),h+=y+v.width;c++}return 1<a&&1==a%2&&(a=(n=n[a-1]).Da,t=t.computeBusLastRowSpacing(n,u?Math.max(Math.abs(f),Math.abs(d)):Math.max(Math.abs(p),Math.abs(h))),u?(n.S.h(i+s/2-n.focus.x-n.la.x,o+t),u=i+s/2-n.focus.x-n.la.x,r=Math.max(r,u+a.width),0>u&&(r-=u),o=Math.max(o,Math.max(f,d)+t+a.height),0>n.S.x&&(i=fm(e,n.S.x,!1,i,s))):(n.S.h(r+t,i+s/2-n.focus.y-n.la.y),r=Math.max(r,Math.max(p,h)+t+a.width),d=i+s/2-n.focus.y-n.la.y,o=Math.max(o,d+a.height),0>d&&(o-=d),0>n.S.y&&(i=fm(e,n.S.y,!0,i,s)))),new Bt(i,0,r,o)}function dm(t,e,n,i,r,o){var a=n.length;if(0===a)return new Bt(i,0,r,o);if(1===a)return new Bt(i,0,r=(n=n[0]).Da.width,o=n.Da.height);for(var s=e.nodeSpacing,l=e.rowSpacing,u=270===Am(e),c=0,h=0,d=0,f=0;f<a;f++)if(!(0!=f%2||1<a&&f===a-1)){var p=n[f],g=p.Da,m=0===c?0:l;if(u){var v=t.computeBusNodeSpacing(p)-s;d-=m+g.height,p.S.h(i-(g.width+v),d),r=Math.max(r,g.width+v),o=Math.max(o,Math.abs(d))}else v=t.computeBusNodeSpacing(p)-s,h-=m+g.width,p.S.h(h,i-(g.height+v)),o=Math.max(o,g.height+v),r=Math.max(r,Math.abs(h));c++}for(c=0,p=h,f=d,u?(h=i+s,d=0):(h=0,d=i+s),g=0;g<a;g++)if(0!=g%2){v=(m=n[g]).Da;var y=0===c?0:l;if(u){var w=t.computeBusNodeSpacing(m)-s;d-=y+v.height,m.S.h(h+w,d),r=Math.max(r,h+v.width+w),o=Math.max(o,Math.abs(d))}else w=t.computeBusNodeSpacing(m)-s,h-=y+v.width,m.S.h(h,d+w),o=Math.max(o,d+v.height+w),r=Math.max(r,Math.abs(h));c++}for(1<a&&1==a%2&&(c=(l=n[a-1]).Da,t=t.computeBusLastRowSpacing(l,u?Math.max(Math.abs(f),Math.abs(d)):Math.max(Math.abs(p),Math.abs(h))),u?(l.S.h(i+s/2-l.focus.x-l.la.x,-o-c.height-t),h=i+s/2-l.focus.x-l.la.x,r=Math.max(r,h+c.width),0>h&&(r-=h),o=Math.max(o,Math.abs(Math.min(f,d))+t+c.height),0>l.S.x&&(i=fm(e,l.S.x,!1,i,s))):(l.S.h(-r-c.width-t,i+s/2-l.focus.y-l.la.y),r=Math.max(r,Math.abs(Math.min(p,h))+t+c.width),d=i+s/2-l.focus.y-l.la.y,o=Math.max(o,d+c.height),0>d&&(o-=d),0>l.S.y&&(i=fm(e,l.S.y,!0,i,s)))),e=0;e<a;e++)s=n[e],u?s.S.h(s.S.x,s.S.y+o):s.S.h(s.S.x+r,s.S.y);return new Bt(i,0,r,o)}function fm(t,e,n,i,r){for(var o=(t=t.children).length,a=0;a<o;a++)n?t[a].S.h(t[a].S.x,t[a].S.y-e):t[a].S.h(t[a].S.x-e,t[a].S.y);return e=t[o-1],Math.max(i,n?e.la.y+e.focus.y-r/2:e.la.x+e.focus.x-r/2)}function pm(t,e,n){switch(t.alignment){case Om:case Bm:return n+t.width>e&&(e=n+t.width),0>n&&(e-=n),e;case Dm:return t.width>e?t.width:e;case Rm:return 2*t.focus.x>e?t.width:e+t.width-2*t.focus.x;case Fm:case zm:return Math.max(t.width,Math.max(e,n+t.width)-Math.min(0,n));case Gm:return t.width-t.focus.x+t.nodeSpacing/2+e;case Um:return Math.max(t.width,t.focus.x+t.nodeSpacing/2+e);default:return e}}function gm(t,e,n){switch(t.alignment){case Om:case Bm:return n+t.height>e&&(e=n+t.height),0>n&&(e-=n),e;case Dm:return t.height>e?t.height:e;case Rm:return 2*t.focus.y>e?t.height:e+t.height-2*t.focus.y;case Fm:case zm:return Math.max(t.height,Math.max(e,n+t.height)-Math.min(0,n));case Gm:return t.height-t.focus.y+t.nodeSpacing/2+e;case Um:return Math.max(t.height,t.focus.y+t.nodeSpacing/2+e);default:return e}}function mm(t,e,n){switch(t){case Bm:case Om:e/=2,n/=2;break;case Dm:n=e=0;break;case Rm:break;default:x("Unhandled alignment value "+t.toString())}return new pt(e,n)}function vm(t,e,n,i,r,o){ym(t,(e=mm(e,n,i)).x,e.y,r,o)}function ym(t,e,n,i,r){if(0!==e||0!==n)for(t=t.children;i<=r;i++){var o=t[i].S;o.x+=e,o.y+=n}}function wm(t,e,n,i){var r=e.parent;switch(t.ud){case Em:for(t=e.sourceEdges;t.next();)(e=t.value).fromVertex===r&&e.relativePoint.h(n,i);break;case Lm:for(t=e.destinationEdges;t.next();)(e=t.value).toVertex===r&&e.relativePoint.h(n,i);break;default:x("Unhandled path value "+t.ud.toString())}}function bm(t,e,n){for(var i=0;i<t.length;i++){var r=t[i];r.x+=e,r.y+=n}}function xm(t,e,n,i,r,o,a,s){var l=Am(e),u=90===l||270===l,c=e.nodeSpacing;e=i;var h=r;i=o;var d=a,f=n.Yo,p=n.kp;a=n.Da;var g=u?Math.max(d,a.height):Math.max(i,a.width);if(null!==f&&l===Am(n)||(f=Sm(t,2),p=Sm(t,2),u?(f[0].h(0,0),f[1].h(0,a.height),p[0].h(a.width,0),p[1].h(p[0].x,f[1].y)):(f[0].h(0,0),f[1].h(a.width,0),p[0].h(0,a.height),p[1].h(f[1].x,p[0].y))),u){if(d=9999999,!(null===h||2>h.length||null===f||2>f.length))for(r=n=0;n<h.length&&r<f.length;){o=h[n];var m=f[r];l=m.x,u=m.y,l+=i;var v=o;n+1<h.length&&(v=h[n+1]);var y=m;m=y.x,y=y.y,r+1<f.length&&(m=(y=f[r+1]).x,y=y.y,m+=i);var w=d;o.y===u?w=l-o.x:o.y>u&&o.y<y?w=l+(o.y-u)/(y-u)*(m-l)-o.x:u>o.y&&u<v.y&&(w=l-(o.x+(u-o.y)/(v.y-o.y)*(v.x-o.x))),w<d&&(d=w),v.y<=o.y?n++:y<=u?r++:(v.y<=y&&n++,y<=v.y&&r++)}if(d=i-d,n=f,r=d+=c,null===e||2>e.length||null===n||2>n.length)i=null;else{for(c=Sm(t,e.length+n.length),i=o=l=0;o<n.length&&n[o].y<e[0].y;)u=n[o++],c[i++].h(u.x+r,u.y);for(;l<e.length;)u=e[l++],c[i++].h(u.x,u.y);for(l=e[e.length-1].y;o<n.length&&n[o].y<=l;)o++;for(;o<n.length&&n[o].y>l;)u=n[o++],c[i++].h(u.x+r,u.y);for(n=Sm(t,i),l=0;l<i;l++)n[l].assign(c[l]);Pm(t,c),i=n}if(o=p,l=d,null===h||2>h.length||null===o||2>o.length)r=null;else{for(c=Sm(t,h.length+o.length),r=u=n=0;n<h.length&&h[n].y<o[0].y;)v=h[n++],c[r++].h(v.x,v.y);for(;u<o.length;)v=o[u++],c[r++].h(v.x+l,v.y);for(o=o[o.length-1].y;n<h.length&&h[n].y<=o;)n++;for(;n<h.length&&h[n].y>o;)l=h[n++],c[r++].h(l.x,l.y);for(o=Sm(t,r),n=0;n<r;n++)o[n].assign(c[n]);Pm(t,c),r=o}return o=Math.max(0,d)+a.width,a=g,Pm(t,e),Pm(t,f),Pm(t,h),Pm(t,p),s[0]=i,s[1]=r,new Bt(d,0,o,a)}if(i=9999999,!(null===h||2>h.length||null===f||2>f.length))for(r=n=0;n<h.length&&r<f.length;)o=h[n],l=(m=f[r]).x,u=m.y,u+=d,v=o,n+1<h.length&&(v=h[n+1]),m=(y=m).x,y=y.y,r+1<f.length&&(m=(y=f[r+1]).x,y=y.y,y+=d),w=i,o.x===l?w=u-o.y:o.x>l&&o.x<m?w=u+(o.x-l)/(m-l)*(y-u)-o.y:l>o.x&&l<v.x&&(w=u-(o.y+(l-o.x)/(v.x-o.x)*(v.y-o.y))),w<i&&(i=w),v.x<=o.x?n++:m<=l?r++:(v.x<=m&&n++,m<=v.x&&r++);if(d-=i,n=f,r=d+=c,null===e||2>e.length||null===n||2>n.length)i=null;else{for(c=Sm(t,e.length+n.length),i=o=l=0;o<n.length&&n[o].x<e[0].x;)u=n[o++],c[i++].h(u.x,u.y+r);for(;l<e.length;)u=e[l++],c[i++].h(u.x,u.y);for(l=e[e.length-1].x;o<n.length&&n[o].x<=l;)o++;for(;o<n.length&&n[o].x>l;)u=n[o++],c[i++].h(u.x,u.y+r);for(n=Sm(t,i),l=0;l<i;l++)n[l].assign(c[l]);Pm(t,c),i=n}if(o=p,l=d,null===h||2>h.length||null===o||2>o.length)r=null;else{for(c=Sm(t,h.length+o.length),r=u=n=0;n<h.length&&h[n].x<o[0].x;)v=h[n++],c[r++].h(v.x,v.y);for(;u<o.length;)v=o[u++],c[r++].h(v.x,v.y+l);for(o=o[o.length-1].x;n<h.length&&h[n].x<=o;)n++;for(;n<h.length&&h[n].x>o;)l=h[n++],c[r++].h(l.x,l.y);for(o=Sm(t,r),n=0;n<r;n++)o[n].assign(c[n]);Pm(t,c),r=o}return o=g,a=Math.max(0,d)+a.height,Pm(t,e),Pm(t,f),Pm(t,h),Pm(t,p),s[0]=i,s[1]=r,new Bt(d,0,o,a)}function Sm(t,e){if(void 0!==(t=t.ru[e])&&void 0!==(t=t.pop()))return t;t=[];for(var n=0;n<e;n++)t[n]=new pt;return t}function Pm(t,e){var n=e.length,i=t.ru[n];void 0===i&&(i=[],t.ru[n]=i),i.push(e)}function km(t,e,n,i){if(null!==e){e.x=n,e.y=i;for(var r=(e=e.children).length,o=0;o<r;o++){var a=e[o];km(t,a,n+a.S.x,i+a.S.y)}}}function Cm(t,e){if(null!==e){t.setPortSpots(e);for(var n=(e=e.children).length,i=0;i<n;i++)Cm(t,e[i])}}function Am(t){return 45>=(t=t.angle)?0:135>=t?90:225>=t?180:315>=t?270:0}qp.className="LayeredDigraphLayout",qp.CycleDepthFirst=jg,qp.CycleGreedy=Ig,qp.CycleFromLayers=Bg,qp.LayerOptimalLinkLength=Og,qp.LayerLongestPathSink=Dg,qp.LayerLongestPathSource=Rg,qp.InitDepthFirstOut=Fg,qp.InitDepthFirstIn=zg,qp.InitNaive=Gg,qp.AggressiveNone=Ug,qp.AggressiveLess=Hg,qp.AggressiveMore=_g,qp.PackNone=0,qp.PackExpand=1,qp.PackStraighten=2,qp.PackMedian=4,qp.PackAll=15,qp.AlignNone=0,qp.AlignUpperLeft=1,qp.AlignUpperRight=2,qp.AlignLowerLeft=4,qp.AlignLowerRight=8,qp.AlignAll=15,Wg.className="SegInfo",h(Vg,Bd),Vg.prototype.createVertex=function(){return new Yg(this)},Vg.prototype.createEdge=function(){return new Jg(this)},Vg.className="LayeredDigraphNetwork",h(Yg,zd),Yg.prototype.Cl=function(t){zd.prototype.Cl.call(this,t),this.bo=this.co=null},Yg.prototype.Kl=function(t){zd.prototype.Kl.call(this,t),this.bo=this.co=null},Yg.prototype.zl=function(t){zd.prototype.zl.call(this,t),this.$n=this.ao=null},Yg.prototype.Jl=function(t){zd.prototype.Jl.call(this,t),this.$n=this.ao=null},d.Object.defineProperties(Yg.prototype,{layer:{get:function(){return this.Ig},set:function(t){this.Ig!==t&&(this.Ig=t)}},column:{get:function(){return this.Ag},set:function(t){this.Ag!==t&&(this.Ag=t)}},index:{get:function(){return this.Za},set:function(t){this.Za!==t&&(this.Za=t)}},component:{get:function(){return this.u},set:function(t){this.u!==t&&(this.u=t)}},near:{get:function(){return this.F},set:function(t){this.F!==t&&(this.F=t)}}}),Yg.prototype.deleteDestinationEdge=Yg.prototype.Jl,Yg.prototype.addDestinationEdge=Yg.prototype.zl,Yg.prototype.deleteSourceEdge=Yg.prototype.Kl,Yg.prototype.addSourceEdge=Yg.prototype.Cl,Yg.className="LayeredDigraphVertex",h(Jg,Ud),d.Object.defineProperties(Jg.prototype,{fromVertex:{get:function(){return this.kd},set:function(t){this.kd!==t&&(this.kd=t)}},toVertex:{get:function(){return this.qd},set:function(t){this.qd!==t&&(this.qd=t)}},valid:{get:function(){return this.Ha},set:function(t){this.Ha!==t&&(this.Ha=t)}},rev:{get:function(){return this.ia},set:function(t){this.ia!==t&&(this.ia=t)}},forest:{get:function(){return this.j},set:function(t){this.j!==t&&(this.j=t)}},portFromPos:{get:function(){return this.u},set:function(t){this.u!==t&&(this.u=t)}},portToPos:{get:function(){return this.V},set:function(t){this.V!==t&&(this.V=t)}},portFromColOffset:{get:function(){return this.o},set:function(t){this.o!==t&&(this.o=t)}},portToColOffset:{get:function(){return this.F},set:function(t){this.F!==t&&(this.F=t)}}}),Jg.className="LayeredDigraphEdge",h($g,Nd),$g.prototype.cloneProtected=function(t){Nd.prototype.cloneProtected.call(this,t),t.Wn=this.Wn,t.vo=this.vo,t.Bq=this.Bq,t.td=this.td,t.Rb=this.Rb,t.$d.assign(this.$d),t.W.copyInheritedPropertiesFrom(this.W),t.Y.copyInheritedPropertiesFrom(this.Y)},$g.prototype.qb=function(t){t.classType===$g?0===t.name.indexOf("Alignment")?this.alignment=t:0===t.name.indexOf("Arrangement")?this.arrangement=t:0===t.name.indexOf("Compaction")?this.compaction=t:0===t.name.indexOf("Path")?this.path=t:0===t.name.indexOf("Sorting")?this.sorting=t:0===t.name.indexOf("Style")?this.treeStyle=t:x("Unknown enum value: "+t):Nd.prototype.qb.call(this,t)},$g.prototype.createNetwork=function(){return new tv(this)},$g.prototype.makeNetwork=function(t){function e(t){if(t instanceof qc)return!t.isLinkLabel&&"Comment"!==t.category;if(t instanceof xh){var e=t.fromNode;return null!==e&&!e.isLinkLabel&&"Comment"!==e.category&&(null!==(t=t.toNode)&&!t.isLinkLabel&&"Comment"!==t.category)}return!1}var n=this.createNetwork();return t instanceof Mr?(n.lg(t.nodes,!0,e),n.lg(t.links,!0,e)):t instanceof gh?n.lg(t.memberParts,!1,e):n.lg(t.iterator,!1,e),n},$g.prototype.doLayout=function(t){null===this.network&&(this.network=this.makeNetwork(t)),this.arrangement!==Km&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var e=this.diagram;if(null===e&&t instanceof Mr&&(e=t),this.path===Mm&&null!==e?this.ud=e.isTreePathToChildren?Em:Lm:this.ud=this.path===Mm?Em:this.path,0<this.network.vertexes.count){for(this.network.Ko(),t=this.network.vertexes.iterator;t.next();)(e=t.value).initialized=!1,e.level=0,e.parent=null,e.children=[];if(0<this.Ub.count){for(t=new J,e=this.Ub.iterator;e.next();){var n=e.value;n instanceof qc?null!==(n=this.network.ki(n))&&t.add(n):n instanceof ev&&t.add(n)}this.Ub=t}for(0===this.Ub.count&&this.findRoots(),t=this.Ub.copy().iterator;t.next();)(e=t.value).initialized||(e.initialized=!0,nm(this,e));for(e=this.network.vertexes,t=null;0<(t=tm(e)).count;)null!==(e=em(this,t))&&this.Ub.add(e),e.initialized=!0,nm(this,e),e=t;for(t=this.Ub.iterator;t.next();)(e=t.value)instanceof ev&&rm(this,e);for(t=this.Ub.iterator;t.next();)(e=t.value)instanceof ev&&om(this,e);for(t=this.Ub.iterator;t.next();)(e=t.value)instanceof ev&&am(this,e);if(this.Cu(),this.layerStyle===$m){for(t=[],e=this.network.vertexes.iterator;e.next();){var i=(n=e.value).parent;null===i&&(i=n),i=0===i.angle||180===i.angle;var r=t[n.level];void 0===r&&(r=0),t[n.level]=Math.max(r,i?n.width:n.height)}for(e=0;e<t.length;e++)void 0===t[e]&&(t[e]=0);for(this.$v=t,e=this.network.vertexes.iterator;e.next();)null===(i=(n=e.value).parent)&&(i=n),0===i.angle||180===i.angle?(180===i.angle&&(n.focusX+=t[n.level]-n.width),n.width=t[n.level]):(270===i.angle&&(n.focusY+=t[n.level]-n.height),n.height=t[n.level])}else if(this.layerStyle===Jm)for(t=this.network.vertexes.iterator;t.next();){for(n=0===(e=t.value).angle||180===e.angle,i=-1,r=0;r<e.children.length;r++){var o=e.children[r];i=Math.max(i,n?o.width:o.height)}if(0<=i)for(r=0;r<e.children.length;r++)o=e.children[r],n?(180===e.angle&&(o.focusX+=i-o.width),o.width=i):(270===e.angle&&(o.focusY+=i-o.height),o.height=i)}for(t=this.Ub.iterator;t.next();)(e=t.value)instanceof ev&&this.layoutTree(e);this.arrangeTrees(),this.updateParts()}this.network=null,this.Ub=new J,this.isValidLayout=!0},$g.prototype.findRoots=function(){for(var t=this.network.vertexes,e=t.iterator;e.next();){var n=e.value;switch(this.ud){case Em:0===n.sourceEdges.count&&this.Ub.add(n);break;case Lm:0===n.destinationEdges.count&&this.Ub.add(n);break;default:x("Unhandled path value "+this.ud.toString())}}0===this.Ub.count&&(null!==(t=em(this,t))&&this.Ub.add(t))},$g.prototype.removeChild=function(t,e){if(null!==t&&null!==e){for(var n=t.children,i=0,r=0;r<n.length;r++)n[r]===e&&i++;if(0<i){i=Array(n.length-i);for(var o=r=0;o<n.length;o++)n[o]!==e&&(i[r++]=n[o]);t.children=i}}},$g.prototype.initializeTreeVertexValues=function(t){if(t.copyInheritedPropertiesFrom(function(t,e){switch(t.vo){default:case Zm:return null!==e.parent?e.parent:t.W;case Ym:return null===e.parent?t.W:null===e.parent.parent?t.Y:e.parent;case Vm:return null!==e.parent?null!==e.parent.parent?e.parent.parent:t.Y:t.W;case Wm:var n=!0;if(0===e.childrenCount)n=!1;else for(var i=e.children,r=i.length,o=0;o<r;o++)if(0<i[o].childrenCount){n=!1;break}return n&&null!==e.parent?t.Y:null!==e.parent?e.parent:t.W}}(this,t)),null!==t.parent&&t.parent.alignment===zm){for(var e=t.angle,n=t.parent.children,i=0;i<n.length&&t!==n[i];)i++;0==i%2?i!==n.length-1&&(e=90===e?180:180===e?270:270===e?180:270):e=90===e?0:180===e?90:270===e?0:90,t.angle=e}t.initialized=!0},$g.prototype.assignTreeVertexValues=function(){},$g.prototype.sortTreeVertexChildren=function(t){switch(t.sorting){case Tm:break;case Nm:t.children.reverse();break;case jm:t.children.sort(t.comparer);break;case Im:t.children.sort(t.comparer),t.children.reverse();break;default:x("Unhandled sorting value "+t.sorting.toString())}},$g.prototype.Cu=function(){if(this.comments)for(var t=this.network.vertexes.iterator;t.next();)this.addComments(t.value)},$g.prototype.addComments=function(t){var e=t.angle,n=t.parent,i=0,r=!1;null!==n&&(i=n.angle,r=sm(r=n.alignment)),e=90===e||270===e,i=90===i||270===i,n=0===t.childrenCount;var o=0,a=0,s=0,l=t.commentSpacing;if(null!==t.node)for(var u=t.node.Mu();u.next();){var c=u.value;"Comment"===c.category&&c.canLayout()&&(null===t.comments&&(t.comments=[]),t.comments.push(c),c.Va(),c=c.measuredBounds,e&&!n||!r&&!i&&n||r&&i&&n?(o=Math.max(o,c.width),a+=c.height+Math.abs(s)):(o+=c.width+Math.abs(s),a=Math.max(a,c.height)),s=l)}null!==t.comments&&(e&&!n||!r&&!i&&n||r&&i&&n?(o+=Math.abs(t.commentMargin),a=Math.max(0,a-t.height)):(a+=Math.abs(t.commentMargin),o=Math.max(0,o-t.width)),r=Bt.allocAt(0,0,t.bounds.width+o,t.bounds.height+a),t.bounds=r,Bt.free(r))},$g.prototype.layoutComments=function(t){if(null!==t.comments){var e=t.node.measuredBounds,n=t.parent,i=t.angle,r=0,o=!1;null!==n&&(r=n.angle,o=sm(o=n.alignment)),i=90===i||270===i,n=90===r||270===r;for(var a=0===t.childrenCount,s=um(t),l=0,u=t.comments,c=u.length,h=pt.alloc(),d=0;d<c;d++){var f=u[d],p=f.measuredBounds;if(i&&!a||!o&&!n&&a||o&&n&&a){if(135<r&&!o||n&&s)if(0<=t.commentMargin)for(h.h(t.bounds.x-t.commentMargin-p.width,t.bounds.y+l),f.move(h),f=f.Sd();f.next();){var g=f.value;g.fromSpot=Te,g.toSpot=Ne}else for(h.h(t.bounds.x+2*t.focus.x-t.commentMargin,t.bounds.y+l),f.move(h),f=f.Sd();f.next();)(g=f.value).fromSpot=Ne,g.toSpot=Te;else if(0<=t.commentMargin)for(h.h(t.bounds.x+2*t.focus.x+t.commentMargin,t.bounds.y+l),f.move(h),f=f.Sd();f.next();)(g=f.value).fromSpot=Ne,g.toSpot=Te;else for(h.h(t.bounds.x+t.commentMargin-p.width,t.bounds.y+l),f.move(h),f=f.Sd();f.next();)(g=f.value).fromSpot=Te,g.toSpot=Ne;l=0<=t.commentSpacing?l+(p.height+t.commentSpacing):l+(t.commentSpacing-p.height)}else{if(135<r&&!o||!n&&s)if(0<=t.commentMargin)for(h.h(t.bounds.x+l,t.bounds.y-t.commentMargin-p.height),f.move(h),f=f.Sd();f.next();)(g=f.value).fromSpot=Le,g.toSpot=je;else for(h.h(t.bounds.x+l,t.bounds.y+2*t.focus.y-t.commentMargin),f.move(h),f=f.Sd();f.next();)(g=f.value).fromSpot=je,g.toSpot=Le;else if(0<=t.commentMargin)for(h.h(t.bounds.x+l,t.bounds.y+2*t.focus.y+t.commentMargin),f.move(h),f=f.Sd();f.next();)(g=f.value).fromSpot=je,g.toSpot=Le;else for(h.h(t.bounds.x+l,t.bounds.y+t.commentMargin-p.height),f.move(h),f=f.Sd();f.next();)(g=f.value).fromSpot=Le,g.toSpot=je;l=0<=t.commentSpacing?l+(p.width+t.commentSpacing):l+(t.commentSpacing-p.width)}}if(pt.free(h),e=l-t.commentSpacing-(i?e.height:e.width),this.ud===Em)for(t=t.destinationEdges;t.next();)null===(r=t.value.link)||r.isAvoiding||(r.fromEndSegmentLength=0<e?e:NaN);else for(t=t.sourceEdges;t.next();)null===(r=t.value.link)||r.isAvoiding||(r.toEndSegmentLength=0<e?e:NaN)}},$g.prototype.layoutTree=function(t){if(null!==t){for(var e=t.children,n=e.length,i=0;i<n;i++)this.layoutTree(e[i]);switch(t.compaction){case Hm:cm(this,t);break;case _m:if(t.alignment===zm)cm(this,t);else if(0===t.childrenCount)n=!1,e=0,null!==(i=t.parent)&&(e=i.angle,n=sm(n=i.alignment)),i=um(t),t.S.h(0,0),t.Da.h(t.width,t.height),null===t.parent||null===t.comments||(180!==e&&270!==e||n)&&!i?t.la.h(0,0):180===e&&!n||(90===e||270===e)&&i?t.la.h(t.width-2*t.focus.x,0):t.la.h(0,t.height-2*t.focus.y),t.Yo=null,t.kp=null;else{var r=Am(t);e=90===r||270===r;var o=0,a=t.children,s=a.length;for(n=0;n<s;n++)i=a[n],o=Math.max(o,e?i.Da.width:i.Da.height);var l=t.alignment;i=l===Dm;var u=l===Rm,c=sm(l),h=Math.max(0,t.breadthLimit);n=this.computeLayerSpacing(t);var d=t.nodeSpacing,f=this.computeNodeIndent(t),p=t.rowSpacing,g=0;(i||u||t.hm||t.im&&1===t.maxGenerationCount)&&(g=Math.max(0,t.rowIndent)),i=t.width;var m=t.height,v=0,y=0,w=0,b=null,S=null,P=0,k=0,C=0,A=0,M=0,E=0,L=0,j=0;if(c&&!lm(l)&&135<r&&a.reverse(),lm(l))if(1<s)for(var I=0;I<s;I++)0==I%2&&I!==s-1&&(j=Math.max(j,e?a[I].Da.width:a[I].Da.height));else 1===s&&(j=e?a[0].Da.width:a[0].Da.height);if(c){switch(l){case Fm:j=(y=135>r?hm(this,t,a,j,v,y):dm(this,t,a,j,v,y)).x,v=y.width,y=y.height;break;case Gm:for(b=0;b<s;b++)h=(S=a[b]).Da,w=0===E?0:p,e?(S.S.h(o-h.width,A+w),v=Math.max(v,h.width),y=Math.max(y,A+w+h.height),A+=w+h.height):(S.S.h(C+w,o-h.height),v=Math.max(v,C+w+h.width),y=Math.max(y,h.height),C+=w+h.width),E++;break;case Um:for(b=0;b<s;b++)o=(S=a[b]).Da,h=0===E?0:p,e?(S.S.h(d/2+t.focus.x,A+h),v=Math.max(v,o.width),y=Math.max(y,A+h+o.height),A+=h+o.height):(S.S.h(C+h,d/2+t.focus.y),v=Math.max(v,C+h+o.width),y=Math.max(y,o.height),C+=h+o.width),E++}b=Sm(this,2),S=Sm(this,2),e?(b[0].h(0,0),b[1].h(0,y),S[0].h(v,0)):(b[0].h(0,0),b[1].h(v,0),S[0].h(0,y)),S[1].h(v,y)}else for(I=0;I<s;I++){var B=a[I],O=B.Da;if(e){0<h&&0<E&&C+d+O.width>h&&(C<o&&vm(t,l,o-C,0,L,I-1),M++,E=0,L=I,w=y,C=0,A=135<r?-y-p:y+p),wm(this,B,0,A);var D=0;if(0===E)b=B.Yo,S=B.kp,P=O.width,k=O.height,(null===b||null===S||r!==Am(B))&&(b=Sm(this,2),S=Sm(this,2),b[0].h(0,0),b[1].h(0,k),S[0].h(P,0),S[1].h(P,k));else{var R=T();D=(k=xm(this,t,B,b,S,P,k,R)).x,b=R[0],S=R[1],P=k.width,k=k.height,N(R),C<O.width&&0>D&&(ym(t,-D,0,L,I-1),bm(b,-D,0),bm(S,-D,0),D=0)}B.S.h(D,A),v=Math.max(v,P),y=Math.max(y,w+(0===M?0:p)+O.height),C=P}else 0<h&&0<E&&A+d+O.height>h&&(A<o&&vm(t,l,0,o-A,L,I-1),M++,E=0,L=I,w=v,A=0,C=135<r?-v-p:v+p),wm(this,B,C,0),D=0,0===E?(b=B.Yo,S=B.kp,P=O.width,k=O.height,(null===b||null===S||r!==Am(B))&&(b=Sm(this,2),S=Sm(this,2),b[0].h(0,0),b[1].h(P,0),S[0].h(0,k),S[1].h(P,k))):(D=(k=xm(this,t,B,b,S,P,k,R=T())).x,b=R[0],S=R[1],P=k.width,k=k.height,N(R),A<O.height&&0>D&&(ym(t,0,-D,L,I-1),bm(b,0,-D),bm(S,0,-D),D=0)),B.S.h(C,D),y=Math.max(y,k),v=Math.max(v,w+(0===M?0:p)+O.width),A=k;E++}switch(0<M&&(e?(y+=Math.max(0,n),C<v&&vm(t,l,v-C,0,L,s-1),0<g&&(u||ym(t,g,0,0,s-1),v+=g)):(v+=Math.max(0,n),A<y&&vm(t,l,0,y-A,L,s-1),0<g&&(u||ym(t,0,g,0,s-1),y+=g))),g=u=0,l){case Bm:e?u+=v/2-t.focus.x-f/2:g+=y/2-t.focus.y-f/2;break;case Om:0<M?e?u+=v/2-t.focus.x-f/2:g+=y/2-t.focus.y-f/2:e?u+=(j=a[0].S.x+a[0].la.x)+(a[s-1].S.x+a[s-1].la.x+2*a[s-1].focus.x-j)/2-t.focus.x-f/2:g+=(j=a[0].S.y+a[0].la.y)+(a[s-1].S.y+a[s-1].la.y+2*a[s-1].focus.y-j)/2-t.focus.y-f/2;break;case Dm:e?(u-=f,v+=f):(g-=f,y+=f);break;case Rm:e?(u+=v-t.width+f,v+=f):(g+=y-t.height+f,y+=f);break;case Fm:e?u+=1<s?j+d/2-t.focus.x:a[0].focus.x-t.focus.x+a[0].la.x:g+=1<s?j+d/2-t.focus.y:a[0].focus.y-t.focus.y+a[0].la.y;break;case Gm:e?u+=v+d/2-t.focus.x:g+=y+d/2-t.focus.y;break;case Um:break;default:u=(y=this.customAlignment(t,u,g,v,y))[0],g=y[1],v=y[2],y=y[3]}for(f=0;f<s;f++)j=a[f],e?j.S.h(j.S.x+j.la.x-u,j.S.y+(135<r?(c?-y:-j.Da.height)+j.la.y-n:m+n+j.la.y)):j.S.h(j.S.x+(135<r?(c?-v:-j.Da.width)+j.la.x-n:i+n+j.la.x),j.S.y+j.la.y-g);if(s=a=0,c?e?(v=pm(t,v,u),0>u&&(u=0),135<r&&(g+=y+n),y+=m+n,l===Um&&(a+=d/2+t.focus.x),s+=m+n):(135<r&&(u+=v+n),v+=i+n,y=gm(t,y,g),0>g&&(g=0),l===Um&&(s+=d/2+t.focus.y),a+=i+n):e?(null===t.comments?i>v&&(a=(v=mm(l,i-v,0)).x,s=v.y,v=i,u=0):v=pm(t,v,u),0>u&&(a-=u,u=0),135<r&&(g+=y+n),y=Math.max(Math.max(y,m),y+m+n),s+=m+n):(135<r&&(u+=v+n),v=Math.max(Math.max(v,i),v+i+n),null===t.comments?m>y&&(a=(y=mm(l,0,m-y)).x,s=y.y,y=m,g=0):y=gm(t,y,g),0>g&&(s-=g,g=0),a+=i+n),0<M)r=Sm(this,4),M=Sm(this,4),e?(r[2].h(0,m+n),r[3].h(r[2].x,y),M[2].h(v,r[2].y),M[3].h(M[2].x,r[3].y)):(r[2].h(i+n,0),r[3].h(v,r[2].y),M[2].h(r[2].x,y),M[3].h(r[3].x,M[2].y));else{for(r=Sm(this,b.length+2),M=Sm(this,S.length+2),l=0;l<b.length;l++)c=b[l],r[l+2].h(c.x+a,c.y+s);for(l=0;l<S.length;l++)c=S[l],M[l+2].h(c.x+a,c.y+s)}e?(r[0].h(u,0),r[1].h(r[0].x,m),r[2].y<r[1].y&&(r[2].x>r[0].x?r[2].assign(r[1]):r[1].assign(r[2])),r[3].y<r[2].y&&(r[3].x>r[0].x?r[3].assign(r[2]):r[2].assign(r[3])),M[0].h(u+i,0),M[1].h(M[0].x,m),M[2].y<M[1].y&&(M[2].x<M[0].x?M[2].assign(M[1]):M[1].assign(M[2])),M[3].y<M[2].y&&(M[3].x<M[0].x?M[3].assign(M[2]):M[2].assign(M[3])),r[2].y-=n/2,M[2].y-=n/2):(r[0].h(0,g),r[1].h(i,r[0].y),r[2].x<r[1].x&&(r[2].y>r[0].y?r[2].assign(r[1]):r[1].assign(r[2])),r[3].x<r[2].x&&(r[3].y>r[0].y?r[3].assign(r[2]):r[2].assign(r[3])),M[0].h(0,g+m),M[1].h(i,M[0].y),M[2].x<M[1].x&&(M[2].y<M[0].y?M[2].assign(M[1]):M[1].assign(M[2])),M[3].x<M[2].x&&(M[3].y<M[0].y?M[3].assign(M[2]):M[2].assign(M[3])),r[2].x-=n/2,M[2].x-=n/2),Pm(this,b),Pm(this,S),t.Yo=r,t.kp=M,t.la.h(u,g),t.Da.h(v,y)}break;default:x("Unhandled compaction value "+t.compaction.toString())}}},$g.prototype.customAlignment=function(t,e,n,i,r){return[e,n,i,r]},$g.prototype.computeBusNodeSpacing=function(t){return null===t.parent?0:t.parent.nodeSpacing},$g.prototype.computeBusLastRowSpacing=function(t){return null===t.parent?0:t.parent.rowSpacing},$g.prototype.arrangeTrees=function(){if(this.Rb===Km)for(var t=this.Ub.iterator;t.next();){var e=t.value;if(e instanceof ev){var n=e.node;if(null!==n){var i=n.position;n=i.x,i=i.y,isFinite(n)||(n=0),isFinite(i)||(i=0),km(this,e,n,i)}}}else{for(t=[],e=this.Ub.iterator;e.next();)(n=e.value)instanceof ev&&t.push(n);switch(this.sorting){case Tm:break;case Nm:t.reverse();break;case jm:t.sort(this.comparer);break;case Im:t.sort(this.comparer),t.reverse();break;default:x("Unhandled sorting value "+this.sorting.toString())}for(e=(n=this.arrangementOrigin).x,n=n.y,i=0;i<t.length;i++){var r=t[i];switch(km(this,r,e+r.la.x,n+r.la.y),this.Rb){case Xm:n+=r.Da.height+this.$d.height;break;case qm:e+=r.Da.width+this.$d.width;break;default:x("Unhandled arrangement value "+this.Rb.toString())}}}},$g.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},$g.prototype.commitNodes=function(){for(var t=this.network.vertexes.iterator;t.next();)t.value.commit();for(t.reset();t.next();)this.layoutComments(t.value)},$g.prototype.Gu=function(){if(this.layerStyle===$m){for(var t=this.$v,e=[],n=null,i=this.network.vertexes.iterator;i.next();){var r=i.value;null===n?n=r.bounds.copy():n.ed(r.bounds);var o=e[r.level];o=void 0===o?this.computeLayerSpacing(r):Math.max(o,this.computeLayerSpacing(r)),e[r.level]=o}for(i=0;i<e.length;i++)void 0===e[i]&&(e[i]=0);if(90===this.angle||270===this.angle?(n.Bc(this.nodeSpacing/2,this.layerSpacing),i=new pt(-this.nodeSpacing/2,-this.layerSpacing/2)):(n.Bc(this.layerSpacing,this.nodeSpacing/2),i=new pt(-this.layerSpacing/2,-this.nodeSpacing/2)),r=[],n=90===this.angle||270===this.angle?n.width:n.height,o=0,180===this.angle||270===this.angle)for(var a=0;a<t.length;a++)o+=t[a]+e[a];for(a=0;a<t.length;a++){var s=t[a]+e[a];270===this.angle?(o-=s,r.push(new Bt(0,o,n,s))):90===this.angle?(r.push(new Bt(0,o,n,s)),o+=s):180===this.angle?(o-=s,r.push(new Bt(o,0,s,n))):(r.push(new Bt(o,0,s,n)),o+=s)}this.commitLayers(r,i)}},$g.prototype.commitLayers=function(){},$g.prototype.commitLinks=function(){for(var t=this.network.edges.iterator;t.next();)t.value.commit()},$g.prototype.yv=function(){for(var t=this.Ub.iterator;t.next();){var e=t.value;e instanceof ev&&Cm(this,e)}},$g.prototype.setPortSpots=function(t){var e=t.alignment;if(sm(e)){var n=this.ud===Em,i=Am(t);switch(i){case 0:var r=Ne;break;case 90:r=je;break;case 180:r=Te;break;default:r=Le}var o=t.children,a=o.length;switch(e){case Fm:case zm:for(e=0;e<a;e++){var s=o[e];if(null!==(s=(n?s.sourceEdges:s.destinationEdges).first())&&null!==(s=s.link)){var l=90===i||270===i?Te:Le;if(1===a||e===a-1&&1==a%2)switch(i){case 0:l=Te;break;case 90:l=Le;break;case 180:l=Ne;break;default:l=je}else 0==e%2&&(l=90===i||270===i?Ne:je);n?(t.setsPortSpot&&(s.fromSpot=r),t.setsChildPortSpot&&(s.toSpot=l)):(t.setsPortSpot&&(s.fromSpot=l),t.setsChildPortSpot&&(s.toSpot=r))}}break;case Gm:for(i=90===i||270===i?Ne:je,o=n?t.destinationEdges:t.sourceEdges;o.next();)null!==(a=o.value.link)&&(n?(t.setsPortSpot&&(a.fromSpot=r),t.setsChildPortSpot&&(a.toSpot=i)):(t.setsPortSpot&&(a.fromSpot=i),t.setsChildPortSpot&&(a.toSpot=r)));break;case Um:for(i=90===i||270===i?Te:Le,o=n?t.destinationEdges:t.sourceEdges;o.next();)null!==(a=o.value.link)&&(n?(t.setsPortSpot&&(a.fromSpot=r),t.setsChildPortSpot&&(a.toSpot=i)):(t.setsPortSpot&&(a.fromSpot=i),t.setsChildPortSpot&&(a.toSpot=r)))}}else if(n=Am(t),this.ud===Em){for(r=t.destinationEdges;r.next();)if(null!==(i=r.value.link)){if(t.setsPortSpot)if(t.portSpot.Xb())switch(n){case 0:i.fromSpot=Ne;break;case 90:i.fromSpot=je;break;case 180:i.fromSpot=Te;break;default:i.fromSpot=Le}else i.fromSpot=t.portSpot;if(t.setsChildPortSpot)if(t.childPortSpot.Xb())switch(n){case 0:i.toSpot=Te;break;case 90:i.toSpot=Le;break;case 180:i.toSpot=Ne;break;default:i.toSpot=je}else i.toSpot=t.childPortSpot}}else for(r=t.sourceEdges;r.next();)if(null!==(i=r.value.link)){if(t.setsPortSpot)if(t.portSpot.Xb())switch(n){case 0:i.toSpot=Ne;break;case 90:i.toSpot=je;break;case 180:i.toSpot=Te;break;default:i.toSpot=Le}else i.toSpot=t.portSpot;if(t.setsChildPortSpot)if(t.childPortSpot.Xb())switch(n){case 0:i.fromSpot=Te;break;case 90:i.fromSpot=Le;break;case 180:i.fromSpot=Ne;break;default:i.fromSpot=je}else i.fromSpot=t.childPortSpot}},$g.prototype.computeLayerSpacing=function(t){var e=Am(t);e=90===e||270===e;var n=t.layerSpacing;if(0<t.layerSpacingParentOverlap){var i=Math.min(1,t.layerSpacingParentOverlap);n-=e?t.height*i:t.width*i}return n<(e?-t.height:-t.width)&&(n=e?-t.height:-t.width),n},$g.prototype.computeNodeIndent=function(t){var e=Am(t),n=t.nodeIndent;if(0<t.nodeIndentPastParent){var i=Math.min(1,t.nodeIndentPastParent);n+=90===e||270===e?t.width*i:t.height*i}return Math.max(0,n)},d.Object.defineProperties($g.prototype,{roots:{get:function(){return this.Ub},set:function(t){this.Ub!==t&&(this.Ub=t,this.C())}},path:{get:function(){return this.Wn},set:function(t){this.Wn!==t&&(this.Wn=t,this.C())}},treeStyle:{get:function(){return this.vo},set:function(t){this.Rb===t||t!==Zm&&t!==Vm&&t!==Wm&&t!==Ym||(this.vo=t,this.C())}},layerStyle:{get:function(){return this.Bq},set:function(t){this.Rb===t||t!==Qm&&t!==Jm&&t!==$m||(this.Bq=t,this.C())}},comments:{get:function(){return this.td},set:function(t){this.td!==t&&(this.td=t,this.C())}},arrangement:{get:function(){return this.Rb},set:function(t){this.Rb===t||t!==Xm&&t!==qm&&t!==Km||(this.Rb=t,this.C())}},arrangementSpacing:{get:function(){return this.$d},set:function(t){this.$d.D(t)||(this.$d.assign(t),this.C())}},rootDefaults:{get:function(){return this.W},set:function(t){this.W!==t&&(this.W=t,this.C())}},alternateDefaults:{get:function(){return this.Y},set:function(t){this.Y!==t&&(this.Y=t,this.C())}},sorting:{get:function(){return this.W.sorting},set:function(t){this.W.sorting===t||t!==Tm&&t!==Nm&&t!==jm&&!Im||(this.W.sorting=t,this.C())}},comparer:{get:function(){return this.W.comparer},set:function(t){this.W.comparer!==t&&(this.W.comparer=t,this.C())}},angle:{get:function(){return this.W.angle},set:function(t){this.W.angle!==t&&(0===t||90===t||180===t||270===t?(this.W.angle=t,this.C()):x("TreeLayout.angle must be 0, 90, 180, or 270"))}},alignment:{get:function(){return this.W.alignment},set:function(t){this.W.alignment!==t&&(this.W.alignment=t,this.C())}},nodeIndent:{get:function(){return this.W.nodeIndent},set:function(t){this.W.nodeIndent!==t&&0<=t&&(this.W.nodeIndent=t,this.C())}},nodeIndentPastParent:{get:function(){return this.W.nodeIndentPastParent},set:function(t){this.W.nodeIndentPastParent!==t&&0<=t&&1>=t&&(this.W.nodeIndentPastParent=t,this.C())}},nodeSpacing:{get:function(){return this.W.nodeSpacing},set:function(t){this.W.nodeSpacing!==t&&(this.W.nodeSpacing=t,this.C())}},layerSpacing:{get:function(){return this.W.layerSpacing},set:function(t){this.W.layerSpacing!==t&&(this.W.layerSpacing=t,this.C())}},layerSpacingParentOverlap:{get:function(){return this.W.layerSpacingParentOverlap},set:function(t){this.W.layerSpacingParentOverlap!==t&&0<=t&&1>=t&&(this.W.layerSpacingParentOverlap=t,this.C())}},compaction:{get:function(){return this.W.compaction},set:function(t){this.W.compaction===t||t!==Hm&&t!==_m||(this.W.compaction=t,this.C())}},breadthLimit:{get:function(){return this.W.breadthLimit},set:function(t){this.W.breadthLimit!==t&&0<=t&&(this.W.breadthLimit=t,this.C())}},rowSpacing:{get:function(){return this.W.rowSpacing},set:function(t){this.W.rowSpacing!==t&&(this.W.rowSpacing=t,this.C())}},rowIndent:{get:function(){return this.W.rowIndent},set:function(t){this.W.rowIndent!==t&&0<=t&&(this.W.rowIndent=t,this.C())}},commentSpacing:{get:function(){return this.W.commentSpacing},set:function(t){this.W.commentSpacing!==t&&(this.W.commentSpacing=t,this.C())}},commentMargin:{get:function(){return this.W.commentMargin},set:function(t){this.W.commentMargin!==t&&(this.W.commentMargin=t,this.C())}},setsPortSpot:{get:function(){return this.W.setsPortSpot},set:function(t){this.W.setsPortSpot!==t&&(this.W.setsPortSpot=t,this.C())}},portSpot:{get:function(){return this.W.portSpot},set:function(t){this.W.portSpot.D(t)||(this.W.portSpot=t,this.C())}},setsChildPortSpot:{get:function(){return this.W.setsChildPortSpot},set:function(t){this.W.setsChildPortSpot!==t&&(this.W.setsChildPortSpot=t,this.C())}},childPortSpot:{get:function(){return this.W.childPortSpot},set:function(t){this.W.childPortSpot.D(t)||(this.W.childPortSpot=t,this.C())}},alternateSorting:{get:function(){return this.Y.sorting},set:function(t){this.Y.sorting===t||t!==Tm&&t!==Nm&&t!==jm&&!Im||(this.Y.sorting=t,this.C())}},alternateComparer:{get:function(){return this.Y.comparer},set:function(t){this.Y.comparer!==t&&(this.Y.comparer=t,this.C())}},alternateAngle:{get:function(){return this.Y.angle},set:function(t){this.Y.angle===t||0!==t&&90!==t&&180!==t&&270!==t||(this.Y.angle=t,this.C())}},alternateAlignment:{get:function(){return this.Y.alignment},set:function(t){this.Y.alignment!==t&&(this.Y.alignment=t,this.C())}},alternateNodeIndent:{get:function(){return this.Y.nodeIndent},set:function(t){this.Y.nodeIndent!==t&&0<=t&&(this.Y.nodeIndent=t,this.C())}},alternateNodeIndentPastParent:{get:function(){return this.Y.nodeIndentPastParent},set:function(t){this.Y.nodeIndentPastParent!==t&&0<=t&&1>=t&&(this.Y.nodeIndentPastParent=t,this.C())}},alternateNodeSpacing:{get:function(){return this.Y.nodeSpacing},set:function(t){this.Y.nodeSpacing!==t&&(this.Y.nodeSpacing=t,this.C())}},alternateLayerSpacing:{get:function(){return this.Y.layerSpacing},set:function(t){this.Y.layerSpacing!==t&&(this.Y.layerSpacing=t,this.C())}},alternateLayerSpacingParentOverlap:{get:function(){return this.Y.layerSpacingParentOverlap},set:function(t){this.Y.layerSpacingParentOverlap!==t&&0<=t&&1>=t&&(this.Y.layerSpacingParentOverlap=t,this.C())}},alternateCompaction:{get:function(){return this.Y.compaction},set:function(t){this.Y.compaction===t||t!==Hm&&t!==_m||(this.Y.compaction=t,this.C())}},alternateBreadthLimit:{get:function(){return this.Y.breadthLimit},set:function(t){this.Y.breadthLimit!==t&&0<=t&&(this.Y.breadthLimit=t,this.C())}},alternateRowSpacing:{get:function(){return this.Y.rowSpacing},set:function(t){this.Y.rowSpacing!==t&&(this.Y.rowSpacing=t,this.C())}},alternateRowIndent:{get:function(){return this.Y.rowIndent},set:function(t){this.Y.rowIndent!==t&&0<=t&&(this.Y.rowIndent=t,this.C())}},alternateCommentSpacing:{get:function(){return this.Y.commentSpacing},set:function(t){this.Y.commentSpacing!==t&&(this.Y.commentSpacing=t,this.C())}},alternateCommentMargin:{get:function(){return this.Y.commentMargin},set:function(t){this.Y.commentMargin!==t&&(this.Y.commentMargin=t,this.C())}},alternateSetsPortSpot:{get:function(){return this.Y.setsPortSpot},set:function(t){this.Y.setsPortSpot!==t&&(this.Y.setsPortSpot=t,this.C())}},alternatePortSpot:{get:function(){return this.Y.portSpot},set:function(t){this.Y.portSpot.D(t)||(this.Y.portSpot=t,this.C())}},alternateSetsChildPortSpot:{get:function(){return this.Y.setsChildPortSpot},set:function(t){this.Y.setsChildPortSpot!==t&&(this.Y.setsChildPortSpot=t,this.C())}},alternateChildPortSpot:{get:function(){return this.Y.childPortSpot},set:function(t){this.Y.childPortSpot.D(t)||(this.Y.childPortSpot=t,this.C())}}});var Mm=new G($g,"PathDefault",-1),Em=new G($g,"PathDestination",0),Lm=new G($g,"PathSource",1),Tm=new G($g,"SortingForwards",10),Nm=new G($g,"SortingReverse",11),jm=new G($g,"SortingAscending",12),Im=new G($g,"SortingDescending",13),Bm=new G($g,"AlignmentCenterSubtrees",20),Om=new G($g,"AlignmentCenterChildren",21),Dm=new G($g,"AlignmentStart",22),Rm=new G($g,"AlignmentEnd",23),Fm=new G($g,"AlignmentBus",24),zm=new G($g,"AlignmentBusBranching",25),Gm=new G($g,"AlignmentTopLeftBus",26),Um=new G($g,"AlignmentBottomRightBus",27),Hm=new G($g,"CompactionNone",30),_m=new G($g,"CompactionBlock",31),Zm=new G($g,"StyleLayered",40),Wm=new G($g,"StyleLastParents",41),Vm=new G($g,"StyleAlternating",42),Ym=new G($g,"StyleRootOnly",43),Xm=new G($g,"ArrangementVertical",50),qm=new G($g,"ArrangementHorizontal",51),Km=new G($g,"ArrangementFixedRoots",52),Qm=new G($g,"LayerIndividual",60),Jm=new G($g,"LayerSiblings",61),$m=new G($g,"LayerUniform",62);function tv(t){Bd.call(this,t)}function ev(t){zd.call(this,t),this.V=!1,this.hb=null,this.u=[],this.nb=this.Ha=this.F=this.ia=0,this.td=null,this.S=new pt(0,0),this.Da=new Tt(0,0),this.la=new pt(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=Tm,this.hd=Gd,this.Kb=0,this.Jb=Om,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=_m,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=ke,this.wr=!0,this.Dp=ke}function nv(t){Ud.call(this,t),this.$t=new pt(0,0)}$g.className="TreeLayout",$g.PathDefault=Mm,$g.PathDestination=Em,$g.PathSource=Lm,$g.SortingForwards=Tm,$g.SortingReverse=Nm,$g.SortingAscending=jm,$g.SortingDescending=Im,$g.AlignmentCenterSubtrees=Bm,$g.AlignmentCenterChildren=Om,$g.AlignmentStart=Dm,$g.AlignmentEnd=Rm,$g.AlignmentBus=Fm,$g.AlignmentBusBranching=zm,$g.AlignmentTopLeftBus=Gm,$g.AlignmentBottomRightBus=Um,$g.CompactionNone=Hm,$g.CompactionBlock=_m,$g.StyleLayered=Zm,$g.StyleLastParents=Wm,$g.StyleAlternating=Vm,$g.StyleRootOnly=Ym,$g.ArrangementVertical=Xm,$g.ArrangementHorizontal=qm,$g.ArrangementFixedRoots=Km,$g.LayerIndividual=Qm,$g.LayerSiblings=Jm,$g.LayerUniform=$m,h(tv,Bd),tv.prototype.createVertex=function(){return new ev(this)},tv.prototype.createEdge=function(){return new nv(this)},tv.className="TreeNetwork",h(ev,zd),ev.prototype.copyInheritedPropertiesFrom=function(t){null!==t&&(this.nd=t.sorting,this.hd=t.comparer,this.Kb=t.angle,this.Jb=t.alignment,this.Uq=t.nodeIndent,this.Vq=t.nodeIndentPastParent,this.Wq=t.nodeSpacing,this.ie=t.layerSpacing,this.Aq=t.layerSpacingParentOverlap,this.Hp=t.compaction,this.Ap=t.breadthLimit,this.nr=t.rowSpacing,this.mr=t.rowIndent,this.Gp=t.commentSpacing,this.Fp=t.commentMargin,this.xr=t.setsPortSpot,this.dr=t.portSpot,this.wr=t.setsChildPortSpot,this.Dp=t.childPortSpot)},d.Object.defineProperties(ev.prototype,{initialized:{get:function(){return this.V},set:function(t){this.V!==t&&(this.V=t)}},parent:{get:function(){return this.hb},set:function(t){this.hb!==t&&(this.hb=t)}},children:{get:function(){return this.u},set:function(t){if(this.u!==t){if(null!==t)for(var e=t.length,n=0;n<e;n++);this.u=t}}},level:{get:function(){return this.ia},set:function(t){this.ia!==t&&(this.ia=t)}},descendantCount:{get:function(){return this.F},set:function(t){this.F!==t&&(this.F=t)}},maxChildrenCount:{get:function(){return this.Ha},set:function(t){this.Ha!==t&&(this.Ha=t)}},maxGenerationCount:{get:function(){return this.nb},set:function(t){this.nb!==t&&(this.nb=t)}},comments:{get:function(){return this.td},set:function(t){if(this.td!==t){if(null!==t)for(var e=t.length,n=0;n<e;n++);this.td=t}}},sorting:{get:function(){return this.nd},set:function(t){this.nd!==t&&(this.nd=t)}},comparer:{get:function(){return this.hd},set:function(t){this.hd!==t&&(this.hd=t)}},angle:{get:function(){return this.Kb},set:function(t){this.Kb!==t&&(this.Kb=t)}},alignment:{get:function(){return this.Jb},set:function(t){this.Jb!==t&&(this.Jb=t)}},nodeIndent:{get:function(){return this.Uq},set:function(t){this.Uq!==t&&(this.Uq=t)}},nodeIndentPastParent:{get:function(){return this.Vq},set:function(t){this.Vq!==t&&(this.Vq=t)}},nodeSpacing:{get:function(){return this.Wq},set:function(t){this.Wq!==t&&(this.Wq=t)}},layerSpacing:{get:function(){return this.ie},set:function(t){this.ie!==t&&(this.ie=t)}},layerSpacingParentOverlap:{get:function(){return this.Aq},set:function(t){this.Aq!==t&&(this.Aq=t)}},compaction:{get:function(){return this.Hp},set:function(t){this.Hp!==t&&(this.Hp=t)}},breadthLimit:{get:function(){return this.Ap},set:function(t){this.Ap!==t&&(this.Ap=t)}},rowSpacing:{get:function(){return this.nr},set:function(t){this.nr!==t&&(this.nr=t)}},rowIndent:{get:function(){return this.mr},set:function(t){this.mr!==t&&(this.mr=t)}},commentSpacing:{get:function(){return this.Gp},set:function(t){this.Gp!==t&&(this.Gp=t)}},commentMargin:{get:function(){return this.Fp},set:function(t){this.Fp!==t&&(this.Fp=t)}},setsPortSpot:{get:function(){return this.xr},set:function(t){this.xr!==t&&(this.xr=t)}},portSpot:{get:function(){return this.dr},set:function(t){this.dr.D(t)||(this.dr=t)}},setsChildPortSpot:{get:function(){return this.wr},set:function(t){this.wr!==t&&(this.wr=t)}},childPortSpot:{get:function(){return this.Dp},set:function(t){this.Dp.D(t)||(this.Dp=t)}},childrenCount:{get:function(){return this.children.length}},relativePosition:{get:function(){return this.S},set:function(t){this.S.set(t)}},subtreeSize:{get:function(){return this.Da},set:function(t){this.Da.set(t)}},subtreeOffset:{get:function(){return this.la},set:function(t){this.la.set(t)}}}),ev.className="TreeVertex",h(nv,Ud),nv.prototype.commit=function(){var t=this.link;if(null!==t&&!t.isAvoiding){var e=this.network.layout,n=null,i=null;switch(e.ud){case Em:n=this.fromVertex,i=this.toVertex;break;case Lm:n=this.toVertex,i=this.fromVertex;break;default:x("Unhandled path value "+e.ud.toString())}if(null!==n&&null!==i){var r=this.$t;if(0!==r.x||0!==r.y||n.qA){i=n.bounds;var o=Am(n),a=e.computeLayerSpacing(n),s=n.rowSpacing;t.vg();var l,u=t.curve===qh,c=t.isOrthogonal;if(t.uh(),c||u){for(l=2;4<t.pointsCount;)t.pv(2);var h=t.i(1),d=t.i(2)}else{for(l=1;3<t.pointsCount;)t.pv(1);h=t.i(0),d=t.i(t.pointsCount-1)}var f=t.i(t.pointsCount-1);0===o?(n.alignment===Rm?(o=i.bottom+r.y,0===r.y&&h.y>f.y+n.rowIndent&&(o=Math.min(o,Math.max(h.y,o-e.computeNodeIndent(n))))):n.alignment===Dm?(o=i.top+r.y,0===r.y&&h.y<f.y-n.rowIndent&&(o=Math.max(o,Math.min(h.y,o+e.computeNodeIndent(n))))):o=n.hm||n.im&&1===n.maxGenerationCount?i.top-n.la.y+r.y:i.y+i.height/2+r.y,u?(t.m(l,h.x,o),l++,t.m(l,i.right+a,o),l++,t.m(l,i.right+a+(r.x-s)/3,o),l++,t.m(l,i.right+a+2*(r.x-s)/3,o),l++,t.m(l,i.right+a+(r.x-s),o),l++,t.m(l,d.x,o)):(c&&(t.m(l,i.right+a/2,h.y),l++),t.m(l,i.right+a/2,o),l++,t.m(l,i.right+a+r.x-(c?s/2:s),o),l++,c&&t.m(l,t.i(l-1).x,d.y))):90===o?(n.alignment===Rm?(o=i.right+r.x,0===r.x&&h.x>f.x+n.rowIndent&&(o=Math.min(o,Math.max(h.x,o-e.computeNodeIndent(n))))):n.alignment===Dm?(o=i.left+r.x,0===r.x&&h.x<f.x-n.rowIndent&&(o=Math.max(o,Math.min(h.x,o+e.computeNodeIndent(n))))):o=n.hm||n.im&&1===n.maxGenerationCount?i.left-n.la.x+r.x:i.x+i.width/2+r.x,u?(t.m(l,o,h.y),l++,t.m(l,o,i.bottom+a),l++,t.m(l,o,i.bottom+a+(r.y-s)/3),l++,t.m(l,o,i.bottom+a+2*(r.y-s)/3),l++,t.m(l,o,i.bottom+a+(r.y-s)),l++,t.m(l,o,d.y)):(c&&(t.m(l,h.x,i.bottom+a/2),l++),t.m(l,o,i.bottom+a/2),l++,t.m(l,o,i.bottom+a+r.y-(c?s/2:s)),l++,c&&t.m(l,d.x,t.i(l-1).y))):180===o?(n.alignment===Rm?(o=i.bottom+r.y,0===r.y&&h.y>f.y+n.rowIndent&&(o=Math.min(o,Math.max(h.y,o-e.computeNodeIndent(n))))):n.alignment===Dm?(o=i.top+r.y,0===r.y&&h.y<f.y-n.rowIndent&&(o=Math.max(o,Math.min(h.y,o+e.computeNodeIndent(n))))):o=n.hm||n.im&&1===n.maxGenerationCount?i.top-n.la.y+r.y:i.y+i.height/2+r.y,u?(t.m(l,h.x,o),l++,t.m(l,i.left-a,o),l++,t.m(l,i.left-a+(r.x+s)/3,o),l++,t.m(l,i.left-a+2*(r.x+s)/3,o),l++,t.m(l,i.left-a+(r.x+s),o),l++,t.m(l,d.x,o)):(c&&(t.m(l,i.left-a/2,h.y),l++),t.m(l,i.left-a/2,o),l++,t.m(l,i.left-a+r.x+(c?s/2:s),o),l++,c&&t.m(l,t.i(l-1).x,d.y))):270===o?(n.alignment===Rm?(o=i.right+r.x,0===r.x&&h.x>f.x+n.rowIndent&&(o=Math.min(o,Math.max(h.x,o-e.computeNodeIndent(n))))):n.alignment===Dm?(o=i.left+r.x,0===r.x&&h.x<f.x-n.rowIndent&&(o=Math.max(o,Math.min(h.x,o+e.computeNodeIndent(n))))):o=n.hm||n.im&&1===n.maxGenerationCount?i.left-n.la.x+r.x:i.x+i.width/2+r.x,u?(t.m(l,o,h.y),l++,t.m(l,o,i.top-a),l++,t.m(l,o,i.top-a+(r.y+s)/3),l++,t.m(l,o,i.top-a+2*(r.y+s)/3),l++,t.m(l,o,i.top-a+(r.y+s)),l++,t.m(l,o,d.y)):(c&&(t.m(l,h.x,i.top-a/2),l++),t.m(l,o,i.top-a/2),l++,t.m(l,o,i.top-a+r.y+(c?s/2:s)),l++,c&&t.m(l,d.x,t.i(l-1).y))):x("Invalid angle "+o),t.zf()}else r=i,t=this.link,i=this.network.layout,(e=Am(n))!==Am(r)&&(a=i.computeLayerSpacing(n),s=n.bounds,n=r.bounds,0===e&&n.left-s.right<a+1||90===e&&n.top-s.bottom<a+1||180===e&&s.left-n.right<a+1||270===e&&s.top-n.bottom<a+1||(t.vg(),n=t.curve===qh,r=t.isOrthogonal,i=sm(this.fromVertex.alignment),t.uh(),0===e?(e=s.right+a/2,n?4===t.pointsCount&&(n=t.i(3).y,t.L(1,e-20,t.i(1).y),t.m(2,e-20,n),t.m(3,e,n),t.m(4,e+20,n),t.L(5,t.i(5).x,n)):r?i?t.L(3,t.i(2).x,t.i(4).y):6===t.pointsCount&&(t.L(2,e,t.i(2).y),t.L(3,e,t.i(3).y)):4===t.pointsCount?t.m(2,e,t.i(2).y):3===t.pointsCount?t.L(1,e,t.i(2).y):2===t.pointsCount&&t.m(1,e,t.i(1).y)):90===e?(e=s.bottom+a/2,n?4===t.pointsCount&&(n=t.i(3).x,t.L(1,t.i(1).x,e-20),t.m(2,n,e-20),t.m(3,n,e),t.m(4,n,e+20),t.L(5,n,t.i(5).y)):r?i?t.L(3,t.i(2).x,t.i(4).y):6===t.pointsCount&&(t.L(2,t.i(2).x,e),t.L(3,t.i(3).x,e)):4===t.pointsCount?t.m(2,t.i(2).x,e):3===t.pointsCount?t.L(1,t.i(2).x,e):2===t.pointsCount&&t.m(1,t.i(1).x,e)):180===e?(e=s.left-a/2,n?4===t.pointsCount&&(n=t.i(3).y,t.L(1,e+20,t.i(1).y),t.m(2,e+20,n),t.m(3,e,n),t.m(4,e-20,n),t.L(5,t.i(5).x,n)):r?i?t.L(3,t.i(2).x,t.i(4).y):6===t.pointsCount&&(t.L(2,e,t.i(2).y),t.L(3,e,t.i(3).y)):4===t.pointsCount?t.m(2,e,t.i(2).y):3===t.pointsCount?t.L(1,e,t.i(2).y):2===t.pointsCount&&t.m(1,e,t.i(1).y)):270===e&&(e=s.top-a/2,n?4===t.pointsCount&&(n=t.i(3).x,t.L(1,t.i(1).x,e+20),t.m(2,n,e+20),t.m(3,n,e),t.m(4,n,e-20),t.L(5,n,t.i(5).y)):r?i?t.L(3,t.i(2).x,t.i(4).y):6===t.pointsCount&&(t.L(2,t.i(2).x,e),t.L(3,t.i(3).x,e)):4===t.pointsCount?t.m(2,t.i(2).x,e):3===t.pointsCount?t.L(1,t.i(2).x,e):2===t.pointsCount&&t.m(1,t.i(1).x,e)),t.zf()))}}},d.Object.defineProperties(nv.prototype,{fromVertex:{get:function(){return this.kd},set:function(t){this.kd!==t&&(this.kd=t)}},toVertex:{get:function(){return this.qd},set:function(t){this.qd!==t&&(this.qd=t)}},relativePoint:{get:function(){return this.$t},set:function(t){this.$t.set(t)}}}),nv.className="TreeEdge",bn.prototype.initializeStandardTools=function(){this.gb("Action",new gi,this.mouseDownTools),this.gb("Relinking",new ri,this.mouseDownTools),this.gb("LinkReshaping",new ai,this.mouseDownTools),this.gb("Rotating",new fi,this.mouseDownTools),this.gb("Resizing",new di,this.mouseDownTools),this.gb("Linking",new ti,this.mouseMoveTools),this.gb("Dragging",new Ln,this.mouseMoveTools),this.gb("DragSelecting",new vi,this.mouseMoveTools),this.gb("Panning",new yi,this.mouseMoveTools),this.gb("ContextMenu",new xi,this.mouseUpTools),this.gb("TextEditing",new Li,this.mouseUpTools),this.gb("ClickCreating",new mi,this.mouseUpTools),this.gb("ClickSelecting",new pi,this.mouseUpTools)},nu("Horizontal",new fl),nu("Spot",new gl),nu("Table",new yl),nu("Viewbox",new xl),nu("TableRow",new wl),nu("TableColumn",new bl),nu("Graduated",new Al),nu("Grid",new Sl),Fo.add("GraphLinksModel",cf),Fo.add("TreeModel",pf);var iv=m.go,rv={get licenseKey(){return Mr.licenseKey},set licenseKey(t){Mr.licenseKey=t},get version(){return Mr.version},Group:gh,EnumValue:G,List:K,Set:J,Map:ft,Point:pt,Size:Tt,Rect:Bt,Margin:Xt,Spot:De,Geometry:Ze,PathFigure:Je,PathSegment:$e,InputEvent:un,DiagramEvent:cn,ChangedEvent:hn,Model:mf,GraphLinksModel:Yf,TreeModel:rp,Binding:Hf,Transaction:mn,UndoManager:vn,CommandHandler:Ta,Tool:wn,DraggingTool:Ln,DraggingInfo:ca,DraggingOptions:Pa,LinkingBaseTool:qn,LinkingTool:ti,RelinkingTool:ri,LinkReshapingTool:ai,ResizingTool:di,RotatingTool:fi,ClickSelectingTool:pi,ActionTool:gi,ClickCreatingTool:mi,HTMLInfo:wi,ContextMenuTool:xi,DragSelectingTool:vi,PanningTool:yi,TextEditingTool:Li,ToolManager:bn,Animation:lr,AnimationManager:Wi,AnimationTrigger:vr,Layer:Pr,Diagram:Mr,Palette:ka,Overview:Aa,Brush:Ds,GraphObject:Ia,Panel:Ml,RowColumnDefinition:lu,Shape:pu,TextBlock:Au,Picture:rc,Part:Sc,Adornment:Yc,Node:qc,Link:xh,Placeholder:bh,Layout:Nd,LayoutNetwork:Bd,LayoutVertex:zd,LayoutEdge:Ud,GridLayout:Hd,PanelLayout:hl,CircularLayout:op,CircularNetwork:Ip,CircularVertex:Bp,CircularEdge:Dp,ForceDirectedLayout:Rp,ForceDirectedNetwork:Wp,ForceDirectedVertex:Vp,ForceDirectedEdge:Yp,LayeredDigraphLayout:qp,LayeredDigraphNetwork:Vg,LayeredDigraphVertex:Yg,LayeredDigraphEdge:Jg,TreeLayout:$g,TreeNetwork:tv,TreeVertex:ev,TreeEdge:nv};"object"==typeof iv&&iv.version&&k("WARNING: a `go` object on the root object is already defined. "+("Debug"in iv?"debug ":"")+"version: "+iv.version+", replaced with version: "+rv.version),Mr.prototype.go=rv,m.go=rv,"object"==typeof t.exports&&(t.exports=void 0!==n.g?n.g.go:self.go)}();void 0!==n.g?n.g.go:self.go;const i=void 0!==n.g?n.g.go:self.go,r=i.Group,o=(i.EnumValue,i.List,i.Set,i.Map,i.Point),a=i.Size,s=(i.Rect,i.Margin),l=i.Spot,u=(i.Geometry,i.PathFigure,i.PathSegment,i.InputEvent,i.DiagramEvent,i.ChangedEvent,i.Model,i.GraphLinksModel),c=(i.TreeModel,i.Binding),h=(i.Transaction,i.UndoManager,i.CommandHandler,i.Tool,i.DraggingTool,i.DraggingInfo,i.LinkingBaseTool,i.LinkingTool,i.RelinkingTool,i.LinkReshapingTool,i.ResizingTool,i.RotatingTool,i.ClickSelectingTool,i.ActionTool,i.ClickCreatingTool,i.HTMLInfo,i.ContextMenuTool,i.DragSelectingTool,i.PanningTool,i.TextEditingTool,i.ToolManager,i.Animation,i.AnimationManager,i.AnimationTrigger,i.Layer,i.Diagram),d=i.Palette,f=(i.Overview,i.Brush,i.GraphObject),p=i.Panel,g=(i.RowColumnDefinition,i.Shape),m=i.TextBlock,v=(i.TextBlockMetrics,i.Picture,i.Part,i.Adornment),y=i.Node,w=i.Link,b=i.Placeholder;i.Layout,i.LayoutNetwork,i.LayoutVertex,i.LayoutEdge,i.GridLayout,i.PanelLayout,i.CircularLayout,i.CircularNetwork,i.CircularVertex,i.CircularEdge,i.ForceDirectedLayout,i.ForceDirectedNetwork,i.ForceDirectedVertex,i.ForceDirectedEdge,i.LayeredDigraphLayout,i.LayeredDigraphNetwork,i.LayeredDigraphVertex,i.LayeredDigraphEdge,i.TreeLayout,i.TreeNetwork,i.TreeVertex,i.TreeEdge,i.version},24334:function(t,e,n){var i,r;r="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:this,t.exports=function(n){"use strict";var r,o=(n=n||{}).Base64,a="2.6.4",s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=function(t){for(var e={},n=0,i=t.length;n<i;n++)e[t.charAt(n)]=n;return e}(s),u=String.fromCharCode,c=function(t){if(t.length<2)return(e=t.charCodeAt(0))<128?t:e<2048?u(192|e>>>6)+u(128|63&e):u(224|e>>>12&15)+u(128|e>>>6&63)+u(128|63&e);var e=65536+1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320);return u(240|e>>>18&7)+u(128|e>>>12&63)+u(128|e>>>6&63)+u(128|63&e)},h=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,d=function(t){return t.replace(h,c)},f=function(t){var e=[0,2,1][t.length%3],n=t.charCodeAt(0)<<16|(t.length>1?t.charCodeAt(1):0)<<8|(t.length>2?t.charCodeAt(2):0);return[s.charAt(n>>>18),s.charAt(n>>>12&63),e>=2?"=":s.charAt(n>>>6&63),e>=1?"=":s.charAt(63&n)].join("")},p=n.btoa&&"function"==typeof n.btoa?function(t){return n.btoa(t)}:function(t){if(t.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return t.replace(/[\s\S]{1,3}/g,f)},g=function(t){return p(d(String(t)))},m=function(t){return t.replace(/[+\/]/g,(function(t){return"+"==t?"-":"_"})).replace(/=/g,"")},v=function(t,e){return e?m(g(t)):g(t)},y=function(t){return v(t,!0)};n.Uint8Array&&(r=function(t,e){for(var n="",i=0,r=t.length;i<r;i+=3){var o=t[i],a=t[i+1],l=t[i+2],u=o<<16|a<<8|l;n+=s.charAt(u>>>18)+s.charAt(u>>>12&63)+(void 0!==a?s.charAt(u>>>6&63):"=")+(void 0!==l?s.charAt(63&u):"=")}return e?m(n):n});var w,b=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,x=function(t){switch(t.length){case 4:var e=((7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3))-65536;return u(55296+(e>>>10))+u(56320+(1023&e));case 3:return u((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return u((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},S=function(t){return t.replace(b,x)},P=function(t){var e=t.length,n=e%4,i=(e>0?l[t.charAt(0)]<<18:0)|(e>1?l[t.charAt(1)]<<12:0)|(e>2?l[t.charAt(2)]<<6:0)|(e>3?l[t.charAt(3)]:0),r=[u(i>>>16),u(i>>>8&255),u(255&i)];return r.length-=[0,0,2,1][n],r.join("")},k=n.atob&&"function"==typeof n.atob?function(t){return n.atob(t)}:function(t){return t.replace(/\S{1,4}/g,P)},C=function(t){return k(String(t).replace(/[^A-Za-z0-9\+\/]/g,""))},A=function(t){return S(k(t))},M=function(t){return String(t).replace(/[-_]/g,(function(t){return"-"==t?"+":"/"})).replace(/[^A-Za-z0-9\+\/]/g,"")},E=function(t){return A(M(t))};n.Uint8Array&&(w=function(t){return Uint8Array.from(C(M(t)),(function(t){return t.charCodeAt(0)}))});var L=function(){var t=n.Base64;return n.Base64=o,t};if(n.Base64={VERSION:a,atob:C,btoa:p,fromBase64:E,toBase64:v,utob:d,encode:v,encodeURI:y,btou:S,decode:E,noConflict:L,fromUint8Array:r,toUint8Array:w},"function"==typeof Object.defineProperty){var T=function(t){return{value:t,enumerable:!1,writable:!0,configurable:!0}};n.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",T((function(){return E(this)}))),Object.defineProperty(String.prototype,"toBase64",T((function(t){return v(this,t)}))),Object.defineProperty(String.prototype,"toBase64URI",T((function(){return v(this,!0)})))}}return n.Meteor&&(Base64=n.Base64),t.exports?t.exports.Base64=n.Base64:void 0===(i=function(){return n.Base64}.apply(e,[]))||(t.exports=i),{Base64:n.Base64}}(r)},31561:function(t,e,n){"use strict";n.d(e,{Z:function(){return S}});var i=n(14809),r=n(4635),o=n(50298),a=n(62646),s=n(35593),l=n(92310),u=n.n(l),c=n(8654),h=n(59301),d=n(10228),f=n(16089),p=d.Z.ESC,g=d.Z.TAB;var m=(0,h.forwardRef)((function(t,e){var n=t.overlay,i=t.arrow,r=t.prefixCls,o=(0,h.useMemo)((function(){return"function"==typeof n?n():n}),[n]),a=(0,c.sQ)(e,null==o?void 0:o.ref);return h.createElement(h.Fragment,null,i&&h.createElement("div",{className:"".concat(r,"-arrow")}),h.cloneElement(o,{ref:(0,c.Yr)(o)?a:void 0}))})),v={adjustX:1,adjustY:1},y=[0,0],w={topLeft:{points:["bl","tl"],overflow:v,offset:[0,-4],targetOffset:y},top:{points:["bc","tc"],overflow:v,offset:[0,-4],targetOffset:y},topRight:{points:["br","tr"],overflow:v,offset:[0,-4],targetOffset:y},bottomLeft:{points:["tl","bl"],overflow:v,offset:[0,4],targetOffset:y},bottom:{points:["tc","bc"],overflow:v,offset:[0,4],targetOffset:y},bottomRight:{points:["tr","br"],overflow:v,offset:[0,4],targetOffset:y}},b=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function x(t,e){var n,l=t.arrow,d=void 0!==l&&l,v=t.prefixCls,y=void 0===v?"rc-dropdown":v,x=t.transitionName,S=t.animation,P=t.align,k=t.placement,C=void 0===k?"bottomLeft":k,A=t.placements,M=void 0===A?w:A,E=t.getPopupContainer,L=t.showAction,T=t.hideAction,N=t.overlayClassName,j=t.overlayStyle,I=t.visible,B=t.trigger,O=void 0===B?["hover"]:B,D=t.autoFocus,R=t.overlay,F=t.children,z=t.onVisibleChange,G=(0,a.Z)(t,b),U=h.useState(),H=(0,o.Z)(U,2),_=H[0],Z=H[1],W="visible"in t?I:_,V=h.useRef(null),Y=h.useRef(null),X=h.useRef(null);h.useImperativeHandle(e,(function(){return V.current}));var q=function(t){Z(t),null==z||z(t)};!function(t){var e=t.visible,n=t.triggerRef,i=t.onVisibleChange,r=t.autoFocus,o=t.overlayRef,a=h.useRef(!1),s=function(){var t,r;e&&(null===(t=n.current)||void 0===t||null===(r=t.focus)||void 0===r||r.call(t),null==i||i(!1))},l=function(){var t;return!(null===(t=o.current)||void 0===t||!t.focus||(o.current.focus(),a.current=!0,0))},u=function(t){switch(t.keyCode){case p:s();break;case g:var e=!1;a.current||(e=l()),e?t.preventDefault():s()}};h.useEffect((function(){return e?(window.addEventListener("keydown",u),r&&(0,f.Z)(l,3),function(){window.removeEventListener("keydown",u),a.current=!1}):function(){a.current=!1}}),[e])}({visible:W,triggerRef:X,onVisibleChange:q,autoFocus:D,overlayRef:Y});var K,Q,J,$=function(){return h.createElement(m,{ref:Y,overlay:R,prefixCls:y,arrow:d})},tt=h.cloneElement(F,{className:u()(null===(n=F.props)||void 0===n?void 0:n.className,W&&(K=t.openClassName,void 0!==K?K:"".concat(y,"-open"))),ref:(0,c.Yr)(F)?(0,c.sQ)(X,F.ref):void 0}),et=T;return et||-1===O.indexOf("contextMenu")||(et=["click"]),h.createElement(s.Z,(0,i.Z)({builtinPlacements:M},G,{prefixCls:y,ref:V,popupClassName:u()(N,(0,r.Z)({},"".concat(y,"-show-arrow"),d)),popupStyle:j,action:O,showAction:L,hideAction:et,popupPlacement:C,popupAlign:P,popupTransitionName:x,popupAnimation:S,popupVisible:W,stretch:(Q=t.minOverlayWidthMatchTrigger,J=t.alignPoint,("minOverlayWidthMatchTrigger"in t?Q:!J)?"minWidth":""),popup:"function"==typeof R?$:$(),onPopupVisibleChange:q,onPopupClick:function(e){var n=t.onOverlayClick;Z(!1),n&&n(e)},getPopupContainer:E}),tt)}var S=h.forwardRef(x)},93681:function(t,e,n){"use strict";n.d(e,{Q:function(){return h},Z:function(){return y}});var i=n(14809),r=n(20439),o=n(4635),a=n(93664),s=n(92310),l=n.n(s),u=n(59301),c=n(5643),h=function(t){var e,n,s=t.inputElement,h=t.prefixCls,d=t.prefix,f=t.suffix,p=t.addonBefore,g=t.addonAfter,m=t.className,v=t.style,y=t.disabled,w=t.readOnly,b=t.focused,x=t.triggerFocus,S=t.allowClear,P=t.value,k=t.handleReset,C=t.hidden,A=t.classes,M=t.classNames,E=t.dataAttrs,L=t.styles,T=t.components,N=(null==T?void 0:T.affixWrapper)||"span",j=(null==T?void 0:T.groupWrapper)||"span",I=(null==T?void 0:T.wrapper)||"span",B=(null==T?void 0:T.groupAddon)||"span",O=(0,u.useRef)(null),D=(0,u.cloneElement)(s,{value:P,hidden:C,className:l()(null===(e=s.props)||void 0===e?void 0:e.className,!(0,c.X3)(t)&&!(0,c.He)(t)&&m)||null,style:(0,r.Z)((0,r.Z)({},null===(n=s.props)||void 0===n?void 0:n.style),(0,c.X3)(t)||(0,c.He)(t)?{}:v)});if((0,c.X3)(t)){var R,F="".concat(h,"-affix-wrapper"),z=l()(F,(R={},(0,o.Z)(R,"".concat(F,"-disabled"),y),(0,o.Z)(R,"".concat(F,"-focused"),b),(0,o.Z)(R,"".concat(F,"-readonly"),w),(0,o.Z)(R,"".concat(F,"-input-with-clear-btn"),f&&S&&P),R),!(0,c.He)(t)&&m,null==A?void 0:A.affixWrapper,null==M?void 0:M.affixWrapper),G=(f||S)&&u.createElement("span",{className:l()("".concat(h,"-suffix"),null==M?void 0:M.suffix),style:null==L?void 0:L.suffix},function(){var t;if(!S)return null;var e=!y&&!w&&P,n="".concat(h,"-clear-icon"),i="object"===(0,a.Z)(S)&&null!=S&&S.clearIcon?S.clearIcon:"✖";return u.createElement("span",{onClick:k,onMouseDown:function(t){return t.preventDefault()},className:l()(n,(t={},(0,o.Z)(t,"".concat(n,"-hidden"),!e),(0,o.Z)(t,"".concat(n,"-has-suffix"),!!f),t)),role:"button",tabIndex:-1},i)}(),f);D=u.createElement(N,(0,i.Z)({className:z,style:(0,r.Z)((0,r.Z)({},(0,c.He)(t)?void 0:v),null==L?void 0:L.affixWrapper),hidden:!(0,c.He)(t)&&C,onClick:function(t){var e;null!==(e=O.current)&&void 0!==e&&e.contains(t.target)&&(null==x||x())}},null==E?void 0:E.affixWrapper,{ref:O}),d&&u.createElement("span",{className:l()("".concat(h,"-prefix"),null==M?void 0:M.prefix),style:null==L?void 0:L.prefix},d),(0,u.cloneElement)(s,{value:P,hidden:null}),G)}if((0,c.He)(t)){var U="".concat(h,"-group"),H="".concat(U,"-addon"),_=l()("".concat(h,"-wrapper"),U,null==A?void 0:A.wrapper),Z=l()("".concat(h,"-group-wrapper"),m,null==A?void 0:A.group);return u.createElement(j,{className:Z,style:v,hidden:C},u.createElement(I,{className:_},p&&u.createElement(B,{className:H},p),(0,u.cloneElement)(D,{hidden:null}),g&&u.createElement(B,{className:H},g)))}return D},d=n(95190),f=n(50298),p=n(62646),g=n(18929),m=n(2738),v=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],y=(0,u.forwardRef)((function(t,e){var n=t.autoComplete,s=t.onChange,y=t.onFocus,w=t.onBlur,b=t.onPressEnter,x=t.onKeyDown,S=t.prefixCls,P=void 0===S?"rc-input":S,k=t.disabled,C=t.htmlSize,A=t.className,M=t.maxLength,E=t.suffix,L=t.showCount,T=t.type,N=void 0===T?"text":T,j=t.classes,I=t.classNames,B=t.styles,O=(0,p.Z)(t,v),D=(0,g.Z)(t.defaultValue,{value:t.value}),R=(0,f.Z)(D,2),F=R[0],z=R[1],G=(0,u.useState)(!1),U=(0,f.Z)(G,2),H=U[0],_=U[1],Z=(0,u.useRef)(null),W=function(t){Z.current&&(0,c.nH)(Z.current,t)};(0,u.useImperativeHandle)(e,(function(){return{focus:W,blur:function(){var t;null===(t=Z.current)||void 0===t||t.blur()},setSelectionRange:function(t,e,n){var i;null===(i=Z.current)||void 0===i||i.setSelectionRange(t,e,n)},select:function(){var t;null===(t=Z.current)||void 0===t||t.select()},input:Z.current}})),(0,u.useEffect)((function(){_((function(t){return(!t||!k)&&t}))}),[k]);var V,Y=function(e){void 0===t.value&&z(e.target.value),Z.current&&(0,c.rJ)(Z.current,e,s)},X=function(t){b&&"Enter"===t.key&&b(t),null==x||x(t)},q=function(t){_(!0),null==y||y(t)},K=function(t){_(!1),null==w||w(t)};return u.createElement(h,(0,i.Z)({},O,{prefixCls:P,className:A,inputElement:(V=(0,m.Z)(t,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]),u.createElement("input",(0,i.Z)({autoComplete:n},V,{onChange:Y,onFocus:q,onBlur:K,onKeyDown:X,className:l()(P,(0,o.Z)({},"".concat(P,"-disabled"),k),null==I?void 0:I.input),style:null==B?void 0:B.input,ref:Z,size:C,type:N}))),handleReset:function(t){z(""),W(),Z.current&&(0,c.rJ)(Z.current,t,s)},value:(0,c.D7)(F),focused:H,triggerFocus:W,suffix:function(){var t=Number(M)>0;if(E||L){var e=(0,c.D7)(F),n=(0,d.Z)(e).length,i="object"===(0,a.Z)(L)?L.formatter({value:e,count:n,maxLength:M}):"".concat(n).concat(t?" / ".concat(M):"");return u.createElement(u.Fragment,null,!!L&&u.createElement("span",{className:l()("".concat(P,"-show-count-suffix"),(0,o.Z)({},"".concat(P,"-show-count-has-suffix"),!!E),null==I?void 0:I.count),style:(0,r.Z)({},null==B?void 0:B.count)},i),E)}return null}(),disabled:k,classes:j,classNames:I,styles:B}))}))},5643:function(t,e,n){"use strict";function i(t){return!(!t.addonBefore&&!t.addonAfter)}function r(t){return!!(t.prefix||t.suffix||t.allowClear)}function o(t,e,n,i){if(n){var r=e;if("click"===e.type){var o=t.cloneNode(!0);return r=Object.create(e,{target:{value:o},currentTarget:{value:o}}),o.value="",void n(r)}if(void 0!==i)return r=Object.create(e,{target:{value:t},currentTarget:{value:t}}),t.value=i,void n(r);n(r)}}function a(t,e){if(t){t.focus(e);var n=(e||{}).cursor;if(n){var i=t.value.length;switch(n){case"start":t.setSelectionRange(0,0);break;case"end":t.setSelectionRange(i,i);break;default:t.setSelectionRange(0,i)}}}}function s(t){return null==t?"":String(t)}n.d(e,{D7:function(){return s},He:function(){return i},X3:function(){return r},nH:function(){return a},rJ:function(){return o}})},15285:function(t,e,n){"use strict";n.d(e,{iz:function(){return Zt},ck:function(){return wt},BW:function(){return _t},sN:function(){return wt},Wd:function(){return Ft},ZP:function(){return Jt},Xl:function(){return E}});var i=n(14809),r=n(4635),o=n(20439),a=n(95190),s=n(50298),l=n(62646),u=n(92310),c=n.n(u),h=n(11780),d=n(18929),f=n(13697),p=n(48736),g=n(59301),m=n(4676),v=g.createContext(null);function y(t,e){return void 0===t?null:"".concat(t,"-").concat(e)}function w(t){return y(g.useContext(v),t)}var b=n(80547),x=["children","locked"],S=g.createContext(null);function P(t){var e=t.children,n=t.locked,i=(0,l.Z)(t,x),r=g.useContext(S),a=(0,b.Z)((function(){return t=r,e=i,n=(0,o.Z)({},t),Object.keys(e).forEach((function(t){var i=e[t];void 0!==i&&(n[t]=i)})),n;var t,e,n}),[r,i],(function(t,e){return!(n||t[0]===e[0]&&(0,f.Z)(t[1],e[1],!0))}));return g.createElement(S.Provider,{value:a},e)}var k=[],C=g.createContext(null);function A(){return g.useContext(C)}var M=g.createContext(k);function E(t){var e=g.useContext(M);return g.useMemo((function(){return void 0!==t?[].concat((0,a.Z)(e),[t]):e}),[e,t])}var L=g.createContext(null),T=g.createContext({}),N=n(29194);function j(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if((0,N.Z)(t)){var n=t.nodeName.toLowerCase(),i=["input","select","textarea","button"].includes(n)||t.isContentEditable||"a"===n&&!!t.getAttribute("href"),r=t.getAttribute("tabindex"),o=Number(r),a=null;return r&&!Number.isNaN(o)?a=o:i&&null===a&&(a=0),i&&t.disabled&&(a=null),null!==a&&(a>=0||e&&a<0)}return!1}function I(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(0,a.Z)(t.querySelectorAll("*")).filter((function(t){return j(t,e)}));return j(t,e)&&n.unshift(t),n}var B=n(10228),O=n(16089),D=B.Z.LEFT,R=B.Z.RIGHT,F=B.Z.UP,z=B.Z.DOWN,G=B.Z.ENTER,U=B.Z.ESC,H=B.Z.HOME,_=B.Z.END,Z=[F,z,D,R];function W(t,e){return I(t,!0).filter((function(t){return e.has(t)}))}function V(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!t)return null;var r=W(t,e),o=r.length,a=r.findIndex((function(t){return n===t}));return i<0?-1===a?a=o-1:a-=1:i>0&&(a+=1),r[a=(a+o)%o]}var Y=function(t,e){var n=new Set,i=new Map,r=new Map;return t.forEach((function(t){var o=document.querySelector("[data-menu-id='".concat(y(e,t),"']"));o&&(n.add(o),r.set(o,t),i.set(t,o))})),{elements:n,key2element:i,element2key:r}};function X(t,e,n,i,o,a,s,l,u,c){var h=g.useRef(),d=g.useRef();d.current=e;var f=function(){O.Z.cancel(h.current)};return g.useEffect((function(){return function(){f()}}),[]),function(p){var g=p.which;if([].concat(Z,[G,U,H,_]).includes(g)){var m=a(),v=Y(m,i),y=v,w=y.elements,b=y.key2element,x=y.element2key,S=function(t,e){for(var n=t||document.activeElement;n;){if(e.has(n))return n;n=n.parentElement}return null}(b.get(e),w),P=x.get(S),k=function(t,e,n,i){var o,a,s,l,u="prev",c="next",h="children",d="parent";if("inline"===t&&i===G)return{inlineTrigger:!0};var f=(o={},(0,r.Z)(o,F,u),(0,r.Z)(o,z,c),o),p=(a={},(0,r.Z)(a,D,n?c:u),(0,r.Z)(a,R,n?u:c),(0,r.Z)(a,z,h),(0,r.Z)(a,G,h),a),g=(s={},(0,r.Z)(s,F,u),(0,r.Z)(s,z,c),(0,r.Z)(s,G,h),(0,r.Z)(s,U,d),(0,r.Z)(s,D,n?h:d),(0,r.Z)(s,R,n?d:h),s);switch(null===(l={inline:f,horizontal:p,vertical:g,inlineSub:f,horizontalSub:g,verticalSub:g}["".concat(t).concat(e?"":"Sub")])||void 0===l?void 0:l[i]){case u:return{offset:-1,sibling:!0};case c:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case h:return{offset:1,sibling:!1};default:return null}}(t,1===s(P,!0).length,n,g);if(!k&&g!==H&&g!==_)return;(Z.includes(g)||[H,_].includes(g))&&p.preventDefault();var C=function(t){if(t){var e=t,n=t.querySelector("a");null!=n&&n.getAttribute("href")&&(e=n);var i=x.get(t);l(i),f(),h.current=(0,O.Z)((function(){d.current===i&&e.focus()}))}};if([H,_].includes(g)||k.sibling||!S){var A,M,E=W(A=S&&"inline"!==t?function(t){for(var e=t;e;){if(e.getAttribute("data-menu-list"))return e;e=e.parentElement}return null}(S):o.current,w);M=g===H?E[0]:g===_?E[E.length-1]:V(A,w,S,k.offset),C(M)}else if(k.inlineTrigger)u(P);else if(k.offset>0)u(P,!0),f(),h.current=(0,O.Z)((function(){v=Y(m,i);var t=S.getAttribute("aria-controls"),e=V(document.getElementById(t),v.elements);C(e)}),5);else if(k.offset<0){var L=s(P,!0),T=L[L.length-2],N=b.get(T);u(T,!1),C(N)}}null==c||c(p)}}var q="__RC_UTIL_PATH_SPLIT__",K=function(t){return t.join(q)},Q="rc-menu-more";function J(){var t=g.useState({}),e=(0,s.Z)(t,2)[1],n=(0,g.useRef)(new Map),i=(0,g.useRef)(new Map),r=g.useState([]),o=(0,s.Z)(r,2),l=o[0],u=o[1],c=(0,g.useRef)(0),h=(0,g.useRef)(!1),d=(0,g.useCallback)((function(t,r){var o=K(r);i.current.set(o,t),n.current.set(t,o),c.current+=1;var a,s=c.current;a=function(){s===c.current&&(h.current||e({}))},Promise.resolve().then(a)}),[]),f=(0,g.useCallback)((function(t,e){var r=K(e);i.current.delete(r),n.current.delete(t)}),[]),p=(0,g.useCallback)((function(t){u(t)}),[]),m=(0,g.useCallback)((function(t,e){var i=n.current.get(t)||"",r=i.split(q);return e&&l.includes(r[0])&&r.unshift(Q),r}),[l]),v=(0,g.useCallback)((function(t,e){return t.some((function(t){return m(t,!0).includes(e)}))}),[m]),y=(0,g.useCallback)((function(t){var e="".concat(n.current.get(t)).concat(q),r=new Set;return(0,a.Z)(i.current.keys()).forEach((function(t){t.startsWith(e)&&r.add(i.current.get(t))})),r}),[]);return g.useEffect((function(){return function(){h.current=!0}}),[]),{registerPath:d,unregisterPath:f,refreshOverflowKeys:p,isSubPathKey:v,getKeyPath:m,getKeys:function(){var t=(0,a.Z)(n.current.keys());return l.length&&t.push(Q),t},getSubPathKeys:y}}function $(t){var e=g.useRef(t);e.current=t;var n=g.useCallback((function(){for(var t,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return null===(t=e.current)||void 0===t?void 0:t.call.apply(t,[e].concat(i))}),[]);return t?n:void 0}var tt=Math.random().toFixed(5).toString().slice(2),et=0;var nt=n(99153),it=n(84851),rt=n(19257),ot=n(54941),at=n(2738),st=n(8654);function lt(t,e,n,i){var r=g.useContext(S),o=r.activeKey,a=r.onActive,s=r.onInactive,l={active:o===t};return e||(l.onMouseEnter=function(e){null==n||n({key:t,domEvent:e}),a(t)},l.onMouseLeave=function(e){null==i||i({key:t,domEvent:e}),s(t)}),l}function ut(t){var e=g.useContext(S),n=e.mode,i=e.rtl,r=e.inlineIndent;if("inline"!==n)return null;return i?{paddingRight:t*r}:{paddingLeft:t*r}}function ct(t){var e,n=t.icon,i=t.props,r=t.children;return null===n||!1===n?null:("function"==typeof n?e=g.createElement(n,(0,o.Z)({},i)):"boolean"!=typeof n&&(e=n),e||r||null)}var ht=["item"];function dt(t){var e=t.item,n=(0,l.Z)(t,ht);return Object.defineProperty(n,"item",{get:function(){return(0,p.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),e}}),n}var ft=["title","attribute","elementRef"],pt=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],gt=["active"],mt=function(t){(0,rt.Z)(n,t);var e=(0,ot.Z)(n);function n(){return(0,nt.Z)(this,n),e.apply(this,arguments)}return(0,it.Z)(n,[{key:"render",value:function(){var t=this.props,e=t.title,n=t.attribute,r=t.elementRef,o=(0,l.Z)(t,ft),a=(0,at.Z)(o,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,p.ZP)(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),g.createElement(h.Z.Item,(0,i.Z)({},n,{title:"string"==typeof e?e:void 0},a,{ref:r}))}}]),n}(g.Component),vt=g.forwardRef((function(t,e){var n,s=t.style,u=t.className,h=t.eventKey,d=(t.warnKey,t.disabled),f=t.itemIcon,p=t.children,m=t.role,v=t.onMouseEnter,y=t.onMouseLeave,b=t.onClick,x=t.onKeyDown,P=t.onFocus,k=(0,l.Z)(t,pt),C=w(h),A=g.useContext(S),M=A.prefixCls,L=A.onItemClick,N=A.disabled,j=A.overflowDisabled,I=A.itemIcon,O=A.selectedKeys,D=A.onActive,R=g.useContext(T)._internalRenderMenuItem,F="".concat(M,"-item"),z=g.useRef(),G=g.useRef(),U=N||d,H=(0,st.x1)(e,G),_=E(h);var Z=function(t){return{key:h,keyPath:(0,a.Z)(_).reverse(),item:z.current,domEvent:t}},W=f||I,V=lt(h,U,v,y),Y=V.active,X=(0,l.Z)(V,gt),q=O.includes(h),K=ut(_.length),Q={};"option"===t.role&&(Q["aria-selected"]=q);var J=g.createElement(mt,(0,i.Z)({ref:z,elementRef:H,role:null===m?"none":m||"menuitem",tabIndex:d?null:-1,"data-menu-id":j&&C?null:C},k,X,Q,{component:"li","aria-disabled":d,style:(0,o.Z)((0,o.Z)({},K),s),className:c()(F,(n={},(0,r.Z)(n,"".concat(F,"-active"),Y),(0,r.Z)(n,"".concat(F,"-selected"),q),(0,r.Z)(n,"".concat(F,"-disabled"),U),n),u),onClick:function(t){if(!U){var e=Z(t);null==b||b(dt(e)),L(e)}},onKeyDown:function(t){if(null==x||x(t),t.which===B.Z.ENTER){var e=Z(t);null==b||b(dt(e)),L(e)}},onFocus:function(t){D(h),null==P||P(t)}}),p,g.createElement(ct,{props:(0,o.Z)((0,o.Z)({},t),{},{isSelected:q}),icon:W}));return R&&(J=R(J,t,{selected:q})),J}));function yt(t,e){var n=t.eventKey,r=A(),o=E(n);return g.useEffect((function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o)}}),[o]),r?null:g.createElement(vt,(0,i.Z)({},t,{ref:e}))}var wt=g.forwardRef(yt),bt=["className","children"],xt=function(t,e){var n=t.className,r=t.children,o=(0,l.Z)(t,bt),a=g.useContext(S),s=a.prefixCls,u=a.mode,h=a.rtl;return g.createElement("ul",(0,i.Z)({className:c()(s,h&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat("inline"===u?"inline":"vertical"),n),role:"menu"},o,{"data-menu-list":!0,ref:e}),r)},St=g.forwardRef(xt);St.displayName="SubMenuList";var Pt=St,kt=n(11592);function Ct(t,e){return(0,kt.Z)(t).map((function(t,n){if(g.isValidElement(t)){var i,r,o=t.key,s=null!==(i=null===(r=t.props)||void 0===r?void 0:r.eventKey)&&void 0!==i?i:o;null==s&&(s="tmp_key-".concat([].concat((0,a.Z)(e),[n]).join("-")));var l={key:s,eventKey:s};return g.cloneElement(t,l)}return t}))}var At=n(35593),Mt={adjustX:1,adjustY:1},Et={topLeft:{points:["bl","tl"],overflow:Mt},topRight:{points:["br","tr"],overflow:Mt},bottomLeft:{points:["tl","bl"],overflow:Mt},bottomRight:{points:["tr","br"],overflow:Mt},leftTop:{points:["tr","tl"],overflow:Mt},leftBottom:{points:["br","bl"],overflow:Mt},rightTop:{points:["tl","tr"],overflow:Mt},rightBottom:{points:["bl","br"],overflow:Mt}},Lt={topLeft:{points:["bl","tl"],overflow:Mt},topRight:{points:["br","tr"],overflow:Mt},bottomLeft:{points:["tl","bl"],overflow:Mt},bottomRight:{points:["tr","br"],overflow:Mt},rightTop:{points:["tr","tl"],overflow:Mt},rightBottom:{points:["br","bl"],overflow:Mt},leftTop:{points:["tl","tr"],overflow:Mt},leftBottom:{points:["bl","br"],overflow:Mt}};function Tt(t,e,n){return e||(n?n[t]||n.other:void 0)}var Nt={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function jt(t){var e=t.prefixCls,n=t.visible,i=t.children,a=t.popup,l=t.popupStyle,u=t.popupClassName,h=t.popupOffset,d=t.disabled,f=t.mode,p=t.onVisibleChange,m=g.useContext(S),v=m.getPopupContainer,y=m.rtl,w=m.subMenuOpenDelay,b=m.subMenuCloseDelay,x=m.builtinPlacements,P=m.triggerSubMenuAction,k=m.forceSubMenuRender,C=m.rootClassName,A=m.motion,M=m.defaultMotions,E=g.useState(!1),L=(0,s.Z)(E,2),T=L[0],N=L[1],j=y?(0,o.Z)((0,o.Z)({},Lt),x):(0,o.Z)((0,o.Z)({},Et),x),I=Nt[f],B=Tt(f,A,M),D=g.useRef(B);"inline"!==f&&(D.current=B);var R=(0,o.Z)((0,o.Z)({},D.current),{},{leavedClassName:"".concat(e,"-hidden"),removeOnLeave:!1,motionAppear:!0}),F=g.useRef();return g.useEffect((function(){return F.current=(0,O.Z)((function(){N(n)})),function(){O.Z.cancel(F.current)}}),[n]),g.createElement(At.Z,{prefixCls:e,popupClassName:c()("".concat(e,"-popup"),(0,r.Z)({},"".concat(e,"-rtl"),y),u,C),stretch:"horizontal"===f?"minWidth":null,getPopupContainer:v,builtinPlacements:j,popupPlacement:I,popupVisible:T,popup:a,popupStyle:l,popupAlign:h&&{offset:h},action:d?[]:[P],mouseEnterDelay:w,mouseLeaveDelay:b,onPopupVisibleChange:p,forceRender:k,popupMotion:R,fresh:!0},i)}var It=n(77900);function Bt(t){var e=t.id,n=t.open,r=t.keyPath,a=t.children,l="inline",u=g.useContext(S),c=u.prefixCls,h=u.forceSubMenuRender,d=u.motion,f=u.defaultMotions,p=u.mode,m=g.useRef(!1);m.current=p===l;var v=g.useState(!m.current),y=(0,s.Z)(v,2),w=y[0],b=y[1],x=!!m.current&&n;g.useEffect((function(){m.current&&b(!1)}),[p]);var k=(0,o.Z)({},Tt(l,d,f));r.length>1&&(k.motionAppear=!1);var C=k.onVisibleChanged;return k.onVisibleChanged=function(t){return m.current||t||b(!0),null==C?void 0:C(t)},w?null:g.createElement(P,{mode:l,locked:!m.current},g.createElement(It.ZP,(0,i.Z)({visible:x},k,{forceRender:h,removeOnLeave:!1,leavedClassName:"".concat(c,"-hidden")}),(function(t){var n=t.className,i=t.style;return g.createElement(Pt,{id:e,className:n,style:i},a)})))}var Ot=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Dt=["active"],Rt=function(t){var e,n=t.style,a=t.className,u=t.title,d=t.eventKey,f=(t.warnKey,t.disabled),p=t.internalPopupClose,m=t.children,v=t.itemIcon,y=t.expandIcon,b=t.popupClassName,x=t.popupOffset,k=t.popupStyle,C=t.onClick,A=t.onMouseEnter,M=t.onMouseLeave,N=t.onTitleClick,j=t.onTitleMouseEnter,I=t.onTitleMouseLeave,B=(0,l.Z)(t,Ot),O=w(d),D=g.useContext(S),R=D.prefixCls,F=D.mode,z=D.openKeys,G=D.disabled,U=D.overflowDisabled,H=D.activeKey,_=D.selectedKeys,Z=D.itemIcon,W=D.expandIcon,V=D.onItemClick,Y=D.onOpenChange,X=D.onActive,q=g.useContext(T)._internalRenderSubMenuItem,K=g.useContext(L).isSubPathKey,Q=E(),J="".concat(R,"-submenu"),tt=G||f,et=g.useRef(),nt=g.useRef();var it=null!=v?v:Z,rt=null!=y?y:W,ot=z.includes(d),at=!U&&ot,st=K(_,d),ht=lt(d,tt,j,I),ft=ht.active,pt=(0,l.Z)(ht,Dt),gt=g.useState(!1),mt=(0,s.Z)(gt,2),vt=mt[0],yt=mt[1],wt=function(t){tt||yt(t)},bt=g.useMemo((function(){return ft||"inline"!==F&&(vt||K([H],d))}),[F,ft,H,vt,d,K]),xt=ut(Q.length),St=$((function(t){null==C||C(dt(t)),V(t)})),kt=O&&"".concat(O,"-popup"),Ct=g.createElement("div",(0,i.Z)({role:"menuitem",style:xt,className:"".concat(J,"-title"),tabIndex:tt?null:-1,ref:et,title:"string"==typeof u?u:null,"data-menu-id":U&&O?null:O,"aria-expanded":at,"aria-haspopup":!0,"aria-controls":kt,"aria-disabled":tt,onClick:function(t){tt||(null==N||N({key:d,domEvent:t}),"inline"===F&&Y(d,!ot))},onFocus:function(){X(d)}},pt),u,g.createElement(ct,{icon:"horizontal"!==F?rt:void 0,props:(0,o.Z)((0,o.Z)({},t),{},{isOpen:at,isSubMenu:!0})},g.createElement("i",{className:"".concat(J,"-arrow")}))),At=g.useRef(F);if("inline"!==F&&Q.length>1?At.current="vertical":At.current=F,!U){var Mt=At.current;Ct=g.createElement(jt,{mode:Mt,prefixCls:J,visible:!p&&at&&"inline"!==F,popupClassName:b,popupOffset:x,popupStyle:k,popup:g.createElement(P,{mode:"horizontal"===Mt?"vertical":Mt},g.createElement(Pt,{id:kt,ref:nt},m)),disabled:tt,onVisibleChange:function(t){"inline"!==F&&Y(d,t)}},Ct)}var Et=g.createElement(h.Z.Item,(0,i.Z)({role:"none"},B,{component:"li",style:n,className:c()(J,"".concat(J,"-").concat(F),a,(e={},(0,r.Z)(e,"".concat(J,"-open"),at),(0,r.Z)(e,"".concat(J,"-active"),bt),(0,r.Z)(e,"".concat(J,"-selected"),st),(0,r.Z)(e,"".concat(J,"-disabled"),tt),e)),onMouseEnter:function(t){wt(!0),null==A||A({key:d,domEvent:t})},onMouseLeave:function(t){wt(!1),null==M||M({key:d,domEvent:t})}}),Ct,!U&&g.createElement(Bt,{id:kt,open:at,keyPath:Q},m));return q&&(Et=q(Et,t,{selected:st,active:bt,open:at,disabled:tt})),g.createElement(P,{onItemClick:St,mode:"horizontal"===F?"vertical":F,itemIcon:it,expandIcon:rt},Et)};function Ft(t){var e,n=t.eventKey,i=t.children,r=E(n),o=Ct(i,r),a=A();return g.useEffect((function(){if(a)return a.registerPath(n,r),function(){a.unregisterPath(n,r)}}),[r]),e=a?o:g.createElement(Rt,t,o),g.createElement(M.Provider,{value:r},e)}var zt=n(93664),Gt=["className","title","eventKey","children"],Ut=["children"],Ht=function(t){var e=t.className,n=t.title,r=(t.eventKey,t.children),o=(0,l.Z)(t,Gt),a=g.useContext(S).prefixCls,s="".concat(a,"-item-group");return g.createElement("li",(0,i.Z)({role:"presentation"},o,{onClick:function(t){return t.stopPropagation()},className:c()(s,e)}),g.createElement("div",{role:"presentation",className:"".concat(s,"-title"),title:"string"==typeof n?n:void 0},n),g.createElement("ul",{role:"group",className:"".concat(s,"-list")},r))};function _t(t){var e=t.children,n=(0,l.Z)(t,Ut),i=Ct(e,E(n.eventKey));return A()?i:g.createElement(Ht,(0,at.Z)(n,["warnKey"]),i)}function Zt(t){var e=t.className,n=t.style,i=g.useContext(S).prefixCls;return A()?null:g.createElement("li",{role:"separator",className:c()("".concat(i,"-item-divider"),e),style:n})}var Wt=["label","children","key","type"];function Vt(t){return(t||[]).map((function(t,e){if(t&&"object"===(0,zt.Z)(t)){var n=t,r=n.label,o=n.children,a=n.key,s=n.type,u=(0,l.Z)(n,Wt),c=null!=a?a:"tmp-".concat(e);return o||"group"===s?"group"===s?g.createElement(_t,(0,i.Z)({key:c},u,{title:r}),Vt(o)):g.createElement(Ft,(0,i.Z)({key:c},u,{title:r}),Vt(o)):"divider"===s?g.createElement(Zt,(0,i.Z)({key:c},u)):g.createElement(wt,(0,i.Z)({key:c},u),r)}return null})).filter((function(t){return t}))}function Yt(t,e,n){var i=t;return e&&(i=Vt(e)),Ct(i,n)}var Xt=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],qt=[],Kt=g.forwardRef((function(t,e){var n,u,p=t,y=p.prefixCls,w=void 0===y?"rc-menu":y,b=p.rootClassName,x=p.style,S=p.className,k=p.tabIndex,A=void 0===k?0:k,M=p.items,E=p.children,N=p.direction,j=p.id,I=p.mode,B=void 0===I?"vertical":I,O=p.inlineCollapsed,D=p.disabled,R=p.disabledOverflow,F=p.subMenuOpenDelay,z=void 0===F?.1:F,G=p.subMenuCloseDelay,U=void 0===G?.1:G,H=p.forceSubMenuRender,_=p.defaultOpenKeys,Z=p.openKeys,V=p.activeKey,q=p.defaultActiveFirst,K=p.selectable,nt=void 0===K||K,it=p.multiple,rt=void 0!==it&&it,ot=p.defaultSelectedKeys,at=p.selectedKeys,st=p.onSelect,lt=p.onDeselect,ut=p.inlineIndent,ct=void 0===ut?24:ut,ht=p.motion,ft=p.defaultMotions,pt=p.triggerSubMenuAction,gt=void 0===pt?"hover":pt,mt=p.builtinPlacements,vt=p.itemIcon,yt=p.expandIcon,bt=p.overflowedIndicator,xt=void 0===bt?"...":bt,St=p.overflowedIndicatorPopupClassName,Pt=p.getPopupContainer,kt=p.onClick,Ct=p.onOpenChange,At=p.onKeyDown,Mt=(p.openAnimation,p.openTransitionName,p._internalRenderMenuItem),Et=p._internalRenderSubMenuItem,Lt=(0,l.Z)(p,Xt),Tt=g.useMemo((function(){return Yt(E,M,qt)}),[E,M]),Nt=g.useState(!1),jt=(0,s.Z)(Nt,2),It=jt[0],Bt=jt[1],Ot=g.useRef(),Dt=function(t){var e=(0,d.Z)(t,{value:t}),n=(0,s.Z)(e,2),i=n[0],r=n[1];return g.useEffect((function(){et+=1;var t="".concat(tt,"-").concat(et);r("rc-menu-uuid-".concat(t))}),[]),i}(j),Rt="rtl"===N;var zt=(0,d.Z)(_,{value:Z,postState:function(t){return t||qt}}),Gt=(0,s.Z)(zt,2),Ut=Gt[0],Ht=Gt[1],_t=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];function n(){Ht(t),null==Ct||Ct(t)}e?(0,m.flushSync)(n):n()},Zt=g.useState(Ut),Wt=(0,s.Z)(Zt,2),Vt=Wt[0],Kt=Wt[1],Qt=g.useRef(!1),Jt=g.useMemo((function(){return"inline"!==B&&"vertical"!==B||!O?[B,!1]:["vertical",O]}),[B,O]),$t=(0,s.Z)(Jt,2),te=$t[0],ee=$t[1],ne="inline"===te,ie=g.useState(te),re=(0,s.Z)(ie,2),oe=re[0],ae=re[1],se=g.useState(ee),le=(0,s.Z)(se,2),ue=le[0],ce=le[1];g.useEffect((function(){ae(te),ce(ee),Qt.current&&(ne?Ht(Vt):_t(qt))}),[te,ee]);var he=g.useState(0),de=(0,s.Z)(he,2),fe=de[0],pe=de[1],ge=fe>=Tt.length-1||"horizontal"!==oe||R;g.useEffect((function(){ne&&Kt(Ut)}),[Ut]),g.useEffect((function(){return Qt.current=!0,function(){Qt.current=!1}}),[]);var me=J(),ve=me.registerPath,ye=me.unregisterPath,we=me.refreshOverflowKeys,be=me.isSubPathKey,xe=me.getKeyPath,Se=me.getKeys,Pe=me.getSubPathKeys,ke=g.useMemo((function(){return{registerPath:ve,unregisterPath:ye}}),[ve,ye]),Ce=g.useMemo((function(){return{isSubPathKey:be}}),[be]);g.useEffect((function(){we(ge?qt:Tt.slice(fe+1).map((function(t){return t.key})))}),[fe,ge]);var Ae=(0,d.Z)(V||q&&(null===(n=Tt[0])||void 0===n?void 0:n.key),{value:V}),Me=(0,s.Z)(Ae,2),Ee=Me[0],Le=Me[1],Te=$((function(t){Le(t)})),Ne=$((function(){Le(void 0)}));(0,g.useImperativeHandle)(e,(function(){return{list:Ot.current,focus:function(t){var e,n,i=Se(),r=Y(i,Dt),o=r.elements,a=r.key2element,s=r.element2key,l=W(Ot.current,o),u=null!=Ee?Ee:l[0]?s.get(l[0]):null===(e=Tt.find((function(t){return!t.props.disabled})))||void 0===e?void 0:e.key,c=a.get(u);u&&c&&(null==c||null===(n=c.focus)||void 0===n||n.call(c,t))}}}));var je=(0,d.Z)(ot||[],{value:at,postState:function(t){return Array.isArray(t)?t:null==t?qt:[t]}}),Ie=(0,s.Z)(je,2),Be=Ie[0],Oe=Ie[1],De=$((function(t){null==kt||kt(dt(t)),function(t){if(nt){var e,n=t.key,i=Be.includes(n);e=rt?i?Be.filter((function(t){return t!==n})):[].concat((0,a.Z)(Be),[n]):[n],Oe(e);var r=(0,o.Z)((0,o.Z)({},t),{},{selectedKeys:e});i?null==lt||lt(r):null==st||st(r)}!rt&&Ut.length&&"inline"!==oe&&_t(qt)}(t)})),Re=$((function(t,e){var n=Ut.filter((function(e){return e!==t}));if(e)n.push(t);else if("inline"!==oe){var i=Pe(t);n=n.filter((function(t){return!i.has(t)}))}(0,f.Z)(Ut,n,!0)||_t(n,!0)})),Fe=X(oe,Ee,Rt,Dt,Ot,Se,xe,Le,(function(t,e){var n=null!=e?e:!Ut.includes(t);Re(t,n)}),At);g.useEffect((function(){Bt(!0)}),[]);var ze=g.useMemo((function(){return{_internalRenderMenuItem:Mt,_internalRenderSubMenuItem:Et}}),[Mt,Et]),Ge="horizontal"!==oe||R?Tt:Tt.map((function(t,e){return g.createElement(P,{key:t.key,overflowDisabled:e>fe},t)})),Ue=g.createElement(h.Z,(0,i.Z)({id:j,ref:Ot,prefixCls:"".concat(w,"-overflow"),component:"ul",itemComponent:wt,className:c()(w,"".concat(w,"-root"),"".concat(w,"-").concat(oe),S,(u={},(0,r.Z)(u,"".concat(w,"-inline-collapsed"),ue),(0,r.Z)(u,"".concat(w,"-rtl"),Rt),u),b),dir:N,style:x,role:"menu",tabIndex:A,data:Ge,renderRawItem:function(t){return t},renderRawRest:function(t){var e=t.length,n=e?Tt.slice(-e):null;return g.createElement(Ft,{eventKey:Q,title:xt,disabled:ge,internalPopupClose:0===e,popupClassName:St},n)},maxCount:"horizontal"!==oe||R?h.Z.INVALIDATE:h.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(t){pe(t)},onKeyDown:Fe},Lt));return g.createElement(T.Provider,{value:ze},g.createElement(v.Provider,{value:Dt},g.createElement(P,{prefixCls:w,rootClassName:b,mode:oe,openKeys:Ut,rtl:Rt,disabled:D,motion:It?ht:null,defaultMotions:It?ft:null,activeKey:Ee,onActive:Te,onInactive:Ne,selectedKeys:Be,inlineIndent:ct,subMenuOpenDelay:z,subMenuCloseDelay:U,forceSubMenuRender:H,builtinPlacements:mt,triggerSubMenuAction:gt,getPopupContainer:Pt,itemIcon:vt,expandIcon:yt,onItemClick:De,onOpenChange:Re},g.createElement(L.Provider,{value:Ce},Ue),g.createElement("div",{style:{display:"none"},"aria-hidden":!0},g.createElement(C.Provider,{value:ke},Tt)))))})),Qt=Kt;Qt.Item=wt,Qt.SubMenu=Ft,Qt.ItemGroup=_t,Qt.Divider=Zt;var Jt=Qt},11780:function(t,e,n){"use strict";n.d(e,{Z:function(){return O}});var i=n(14809),r=n(20439),o=n(50298),a=n(62646),s=n(59301),l=n(92310),u=n.n(l),c=n(29301),h=n(34280),d=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],f=void 0;function p(t,e){var n=t.prefixCls,o=t.invalidate,l=t.item,h=t.renderItem,p=t.responsive,g=t.responsiveDisabled,m=t.registerSize,v=t.itemKey,y=t.className,w=t.style,b=t.children,x=t.display,S=t.order,P=t.component,k=void 0===P?"div":P,C=(0,a.Z)(t,d),A=p&&!x;function M(t){m(v,t)}s.useEffect((function(){return function(){M(null)}}),[]);var E,L=h&&l!==f?h(l,{index:S}):b;o||(E={opacity:A?0:1,height:A?0:f,overflowY:A?"hidden":f,order:p?S:f,pointerEvents:A?"none":f,position:A?"absolute":f});var T={};A&&(T["aria-hidden"]=!0);var N=s.createElement(k,(0,i.Z)({className:u()(!o&&n,y),style:(0,r.Z)((0,r.Z)({},E),w)},T,C,{ref:e}),L);return p&&(N=s.createElement(c.Z,{onResize:function(t){M(t.offsetWidth)},disabled:g},N)),N}var g=s.forwardRef(p);g.displayName="Item";var m=g,v=n(6089),y=n(4676),w=n(16089);function b(){var t=s.useRef(null);return function(e){t.current||(t.current=[],function(t){if("undefined"==typeof MessageChannel)(0,w.Z)(t);else{var e=new MessageChannel;e.port1.onmessage=function(){return t()},e.port2.postMessage(void 0)}}((function(){(0,y.unstable_batchedUpdates)((function(){t.current.forEach((function(t){t()})),t.current=null}))}))),t.current.push(e)}}function x(t,e){var n=s.useState(e),i=(0,o.Z)(n,2),r=i[0],a=i[1];return[r,(0,v.Z)((function(e){t((function(){a(e)}))}))]}var S=s.createContext(null),P=["component"],k=["className"],C=["className"],A=function(t,e){var n=s.useContext(S);if(!n){var r=t.component,o=void 0===r?"div":r,l=(0,a.Z)(t,P);return s.createElement(o,(0,i.Z)({},l,{ref:e}))}var c=n.className,h=(0,a.Z)(n,k),d=t.className,f=(0,a.Z)(t,C);return s.createElement(S.Provider,{value:null},s.createElement(m,(0,i.Z)({ref:e,className:u()(c,d)},h,f)))},M=s.forwardRef(A);M.displayName="RawItem";var E=M,L=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],T="responsive",N="invalidate";function j(t){return"+ ".concat(t.length," ...")}function I(t,e){var n=t.prefixCls,l=void 0===n?"rc-overflow":n,d=t.data,f=void 0===d?[]:d,p=t.renderItem,g=t.renderRawItem,v=t.itemKey,y=t.itemWidth,w=void 0===y?10:y,P=t.ssr,k=t.style,C=t.className,A=t.maxCount,M=t.renderRest,E=t.renderRawRest,I=t.suffix,B=t.component,O=void 0===B?"div":B,D=t.itemComponent,R=t.onVisibleChange,F=(0,a.Z)(t,L),z="full"===P,G=b(),U=x(G,null),H=(0,o.Z)(U,2),_=H[0],Z=H[1],W=_||0,V=x(G,new Map),Y=(0,o.Z)(V,2),X=Y[0],q=Y[1],K=x(G,0),Q=(0,o.Z)(K,2),J=Q[0],$=Q[1],tt=x(G,0),et=(0,o.Z)(tt,2),nt=et[0],it=et[1],rt=x(G,0),ot=(0,o.Z)(rt,2),at=ot[0],st=ot[1],lt=(0,s.useState)(null),ut=(0,o.Z)(lt,2),ct=ut[0],ht=ut[1],dt=(0,s.useState)(null),ft=(0,o.Z)(dt,2),pt=ft[0],gt=ft[1],mt=s.useMemo((function(){return null===pt&&z?Number.MAX_SAFE_INTEGER:pt||0}),[pt,_]),vt=(0,s.useState)(!1),yt=(0,o.Z)(vt,2),wt=yt[0],bt=yt[1],xt="".concat(l,"-item"),St=Math.max(J,nt),Pt=A===T,kt=f.length&&Pt,Ct=A===N,At=kt||"number"==typeof A&&f.length>A,Mt=(0,s.useMemo)((function(){var t=f;return kt?t=null===_&&z?f:f.slice(0,Math.min(f.length,W/w)):"number"==typeof A&&(t=f.slice(0,A)),t}),[f,w,_,A,kt]),Et=(0,s.useMemo)((function(){return kt?f.slice(mt+1):f.slice(Mt.length)}),[f,Mt,kt,mt]),Lt=(0,s.useCallback)((function(t,e){var n;return"function"==typeof v?v(t):null!==(n=v&&(null==t?void 0:t[v]))&&void 0!==n?n:e}),[v]),Tt=(0,s.useCallback)(p||function(t){return t},[p]);function Nt(t,e,n){(pt!==t||void 0!==e&&e!==ct)&&(gt(t),n||(bt(t<f.length-1),null==R||R(t)),void 0!==e&&ht(e))}function jt(t,e){q((function(n){var i=new Map(n);return null===e?i.delete(t):i.set(t,e),i}))}function It(t){return X.get(Lt(Mt[t],t))}(0,h.Z)((function(){if(W&&"number"==typeof St&&Mt){var t=at,e=Mt.length,n=e-1;if(!e)return void Nt(0,null);for(var i=0;i<e;i+=1){var r=It(i);if(z&&(r=r||0),void 0===r){Nt(i-1,void 0,!0);break}if(t+=r,0===n&&t<=W||i===n-1&&t+It(n)<=W){Nt(n,null);break}if(t+St>W){Nt(i-1,t-r-at+nt);break}}I&&It(0)+at>W&&ht(null)}}),[W,X,nt,at,Lt,Mt]);var Bt=wt&&!!Et.length,Ot={};null!==ct&&kt&&(Ot={position:"absolute",left:ct,top:0});var Dt={prefixCls:xt,responsive:kt,component:D,invalidate:Ct},Rt=g?function(t,e){var n=Lt(t,e);return s.createElement(S.Provider,{key:n,value:(0,r.Z)((0,r.Z)({},Dt),{},{order:e,item:t,itemKey:n,registerSize:jt,display:e<=mt})},g(t,e))}:function(t,e){var n=Lt(t,e);return s.createElement(m,(0,i.Z)({},Dt,{order:e,key:n,item:t,renderItem:Tt,itemKey:n,registerSize:jt,display:e<=mt}))},Ft={order:Bt?mt:Number.MAX_SAFE_INTEGER,className:"".concat(xt,"-rest"),registerSize:function(t,e){it(e),$(nt)},display:Bt},zt=M||j,Gt=E?s.createElement(S.Provider,{value:(0,r.Z)((0,r.Z)({},Dt),Ft)},E(Et)):s.createElement(m,(0,i.Z)({},Dt,Ft),"function"==typeof zt?zt(Et):zt),Ut=s.createElement(O,(0,i.Z)({className:u()(!Ct&&l,C),style:k,ref:e},F),Mt.map(Rt),At?Gt:null,I&&s.createElement(m,(0,i.Z)({},Dt,{responsive:Pt,responsiveDisabled:!kt,order:mt,className:"".concat(xt,"-suffix"),registerSize:function(t,e){st(e)},display:!0,style:Ot}),I));return Pt?s.createElement(c.Z,{onResize:function(t,e){Z(e.clientWidth)},disabled:!kt},Ut):Ut}var B=s.forwardRef(I);B.displayName="Overflow",B.Item=E,B.RESPONSIVE=T,B.INVALIDATE=N;var O=B},29301:function(t,e,n){"use strict";n.d(e,{Z:function(){return P}});var i=n(14809),r=n(59301),o=n(11592),a=(n(48736),n(20439)),s=n(93664),l=n(76846),u=n(8654),c=r.createContext(null);var h=n(76374),d=new Map;var f=new h.Z((function(t){t.forEach((function(t){var e,n=t.target;null===(e=d.get(n))||void 0===e||e.forEach((function(t){return t(n)}))}))}));var p=n(99153),g=n(84851),m=n(19257),v=n(54941),y=function(t){(0,m.Z)(n,t);var e=(0,v.Z)(n);function n(){return(0,p.Z)(this,n),e.apply(this,arguments)}return(0,g.Z)(n,[{key:"render",value:function(){return this.props.children}}]),n}(r.Component);function w(t,e){var n=t.children,i=t.disabled,o=r.useRef(null),h=r.useRef(null),p=r.useContext(c),g="function"==typeof n,m=g?n(o):n,v=r.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),w=!g&&r.isValidElement(m)&&(0,u.Yr)(m),b=w?(0,u.C4)(m):null,x=(0,u.x1)(b,o),S=function(){var t;return(0,l.ZP)(o.current)||(o.current&&"object"===(0,s.Z)(o.current)?(0,l.ZP)(null===(t=o.current)||void 0===t?void 0:t.nativeElement):null)||(0,l.ZP)(h.current)};r.useImperativeHandle(e,(function(){return S()}));var P=r.useRef(t);P.current=t;var k=r.useCallback((function(t){var e=P.current,n=e.onResize,i=e.data,r=t.getBoundingClientRect(),o=r.width,s=r.height,l=t.offsetWidth,u=t.offsetHeight,c=Math.floor(o),h=Math.floor(s);if(v.current.width!==c||v.current.height!==h||v.current.offsetWidth!==l||v.current.offsetHeight!==u){var d={width:c,height:h,offsetWidth:l,offsetHeight:u};v.current=d;var f=l===Math.round(o)?o:l,g=u===Math.round(s)?s:u,m=(0,a.Z)((0,a.Z)({},d),{},{offsetWidth:f,offsetHeight:g});null==p||p(m,t,i),n&&Promise.resolve().then((function(){n(m,t)}))}}),[]);return r.useEffect((function(){var t,e,n=S();return n&&!i&&(t=n,e=k,d.has(t)||(d.set(t,new Set),f.observe(t)),d.get(t).add(e)),function(){return function(t,e){d.has(t)&&(d.get(t).delete(e),d.get(t).size||(f.unobserve(t),d.delete(t)))}(n,k)}}),[o.current,i]),r.createElement(y,{ref:h},w?r.cloneElement(m,{ref:x}):m)}var b=r.forwardRef(w);function x(t,e){var n=t.children;return("function"==typeof n?[n]:(0,o.Z)(n)).map((function(n,o){var a=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(o);return r.createElement(b,(0,i.Z)({},t,{key:a,ref:0===o?e:void 0}),n)}))}var S=r.forwardRef(x);S.Collection=function(t){var e=t.children,n=t.onBatchResize,i=r.useRef(0),o=r.useRef([]),a=r.useContext(c),s=r.useCallback((function(t,e,r){i.current+=1;var s=i.current;o.current.push({size:t,element:e,data:r}),Promise.resolve().then((function(){s===i.current&&(null==n||n(o.current),o.current=[])})),null==a||a(t,e,r)}),[n,a]);return r.createElement(c.Provider,{value:s},e)};var P=S},55477:function(t,e,n){"use strict";n.d(e,{G:function(){return p},Z:function(){return v}});var i=n(14809),r=n(20439),o=n(62646),a=n(35593),s=n(59301),l={shiftX:64,adjustY:1},u={adjustX:1,shiftY:!0},c=[0,0],h={left:{points:["cr","cl"],overflow:u,offset:[-4,0],targetOffset:c},right:{points:["cl","cr"],overflow:u,offset:[4,0],targetOffset:c},top:{points:["bc","tc"],overflow:l,offset:[0,-4],targetOffset:c},bottom:{points:["tc","bc"],overflow:l,offset:[0,4],targetOffset:c},topLeft:{points:["bl","tl"],overflow:l,offset:[0,-4],targetOffset:c},leftTop:{points:["tr","tl"],overflow:u,offset:[-4,0],targetOffset:c},topRight:{points:["br","tr"],overflow:l,offset:[0,-4],targetOffset:c},rightTop:{points:["tl","tr"],overflow:u,offset:[4,0],targetOffset:c},bottomRight:{points:["tr","br"],overflow:l,offset:[0,4],targetOffset:c},rightBottom:{points:["bl","br"],overflow:u,offset:[4,0],targetOffset:c},bottomLeft:{points:["tl","bl"],overflow:l,offset:[0,4],targetOffset:c},leftBottom:{points:["br","bl"],overflow:u,offset:[-4,0],targetOffset:c}},d=n(92310),f=n.n(d);function p(t){var e=t.children,n=t.prefixCls,i=t.id,r=t.overlayInnerStyle,o=t.className,a=t.style;return s.createElement("div",{className:f()("".concat(n,"-content"),o),style:a},s.createElement("div",{className:"".concat(n,"-inner"),id:i,role:"tooltip",style:r},"function"==typeof e?e():e))}var g=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],m=function(t,e){var n=t.overlayClassName,l=t.trigger,u=void 0===l?["hover"]:l,c=t.mouseEnterDelay,d=void 0===c?0:c,f=t.mouseLeaveDelay,m=void 0===f?.1:f,v=t.overlayStyle,y=t.prefixCls,w=void 0===y?"rc-tooltip":y,b=t.children,x=t.onVisibleChange,S=t.afterVisibleChange,P=t.transitionName,k=t.animation,C=t.motion,A=t.placement,M=void 0===A?"right":A,E=t.align,L=void 0===E?{}:E,T=t.destroyTooltipOnHide,N=void 0!==T&&T,j=t.defaultVisible,I=t.getTooltipContainer,B=t.overlayInnerStyle,O=(t.arrowContent,t.overlay),D=t.id,R=t.showArrow,F=void 0===R||R,z=(0,o.Z)(t,g),G=(0,s.useRef)(null);(0,s.useImperativeHandle)(e,(function(){return G.current}));var U=(0,r.Z)({},z);"visible"in t&&(U.popupVisible=t.visible);return s.createElement(a.Z,(0,i.Z)({popupClassName:n,prefixCls:w,popup:function(){return s.createElement(p,{key:"content",prefixCls:w,id:D,overlayInnerStyle:B},O)},action:u,builtinPlacements:h,popupPlacement:M,ref:G,popupAlign:L,getPopupContainer:I,onPopupVisibleChange:x,afterPopupVisibleChange:S,popupTransitionName:P,popupAnimation:k,popupMotion:C,defaultPopupVisible:j,autoDestroy:N,mouseLeaveDelay:m,popupStyle:v,mouseEnterDelay:d,arrow:F},U),b)},v=(0,s.forwardRef)(m)},8224:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});var i=n(4676);function r(t,e,n,r){var o=i.unstable_batchedUpdates?function(t){i.unstable_batchedUpdates(n,t)}:n;return null!=t&&t.addEventListener&&t.addEventListener(e,o,r),{remove:function(){null!=t&&t.removeEventListener&&t.removeEventListener(e,o,r)}}}},55468:function(t,e,n){"use strict";n.d(e,{g1:function(){return i},os:function(){return r}});function i(){return{width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}function r(t){var e=t.getBoundingClientRect(),n=document.documentElement;return{left:e.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:e.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}},24514:function(t,e,n){"use strict";n.d(e,{G:function(){return o}});var i=n(47273),r=function(t){if((0,i.Z)()&&window.document.documentElement){var e=Array.isArray(t)?t:[t],n=window.document.documentElement;return e.some((function(t){return t in n.style}))}return!1};function o(t,e){return Array.isArray(t)||void 0===e?r(t):function(t,e){if(!r(t))return!1;var n=document.createElement("div"),i=n.style[t];return n.style[t]=e,n.style[t]!==i}(t,e)}},49658:function(t,e){"use strict";e.Z=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var t=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==t?void 0:t.substr(0,4))}},83145:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CopyToClipboard=void 0;var i=o(n(59301)),r=o(n(25769));function o(t){return t&&t.__esModule?t:{default:t}}function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function l(t,e){if(null==t)return{};var n,i,r=function(t,e){if(null==t)return{};var n,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)n=o[i],e.indexOf(n)>=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)n=o[i],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function h(t,e){return!e||"object"!==a(e)&&"function"!=typeof e?f(t):e}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function p(t,e){return p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},p(t,e)}function g(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var m=function(t){function e(){var t,n;u(this,e);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return g(f(n=h(this,(t=d(e)).call.apply(t,[this].concat(a)))),"onClick",(function(t){var e=n.props,o=e.text,a=e.onCopy,s=e.children,l=e.options,u=i.default.Children.only(s),c=(0,r.default)(o,l);a&&a(o,c),u&&u.props&&"function"==typeof u.props.onClick&&u.props.onClick(t)})),n}var n,o,a;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e)}(e,t),n=e,o=[{key:"render",value:function(){var t=this.props,e=(t.text,t.onCopy,t.options,t.children),n=l(t,["text","onCopy","options","children"]),r=i.default.Children.only(e);return i.default.cloneElement(r,function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(n,!0).forEach((function(e){g(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},n,{onClick:this.onClick}))}}],o&&c(n.prototype,o),a&&c(n,a),e}(i.default.PureComponent);e.CopyToClipboard=m,g(m,"defaultProps",{onCopy:void 0,options:void 0})},56102:function(t,e,n){"use strict";var i=n(83145).CopyToClipboard;i.CopyToClipboard=i,t.exports=i},2637:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return c.default}}),e.default=void 0;var i=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=f(e);if(n&&n.has(t))return n.get(t);var i={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var a=r?Object.getOwnPropertyDescriptor(t,o):null;a&&(a.get||a.set)?Object.defineProperty(i,o,a):i[o]=t[o]}i.default=t,n&&n.set(t,i);return i}(n(59301)),r=d(n(12708)),o=d(n(4676)),a=d(n(57780)),s=n(13957),l=n(60976),u=n(36641),c=d(n(80486)),h=d(n(94187));function d(t){return t&&t.__esModule?t:{default:t}}function f(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(f=function(t){return t?n:e})(t)}function p(){return p=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},p.apply(this,arguments)}function g(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class m extends i.Component{static getDerivedStateFromProps(t,e){let{position:n}=t,{prevPropsPosition:i}=e;return!n||i&&n.x===i.x&&n.y===i.y?null:((0,h.default)("Draggable: getDerivedStateFromProps %j",{position:n,prevPropsPosition:i}),{x:n.x,y:n.y,prevPropsPosition:{...n}})}constructor(t){super(t),g(this,"onDragStart",((t,e)=>{(0,h.default)("Draggable: onDragStart: %j",e);if(!1===this.props.onStart(t,(0,l.createDraggableData)(this,e)))return!1;this.setState({dragging:!0,dragged:!0})})),g(this,"onDrag",((t,e)=>{if(!this.state.dragging)return!1;(0,h.default)("Draggable: onDrag: %j",e);const n=(0,l.createDraggableData)(this,e),i={x:n.x,y:n.y,slackX:0,slackY:0};if(this.props.bounds){const{x:t,y:e}=i;i.x+=this.state.slackX,i.y+=this.state.slackY;const[r,o]=(0,l.getBoundPosition)(this,i.x,i.y);i.x=r,i.y=o,i.slackX=this.state.slackX+(t-i.x),i.slackY=this.state.slackY+(e-i.y),n.x=i.x,n.y=i.y,n.deltaX=i.x-this.state.x,n.deltaY=i.y-this.state.y}if(!1===this.props.onDrag(t,n))return!1;this.setState(i)})),g(this,"onDragStop",((t,e)=>{if(!this.state.dragging)return!1;if(!1===this.props.onStop(t,(0,l.createDraggableData)(this,e)))return!1;(0,h.default)("Draggable: onDragStop: %j",e);const n={dragging:!1,slackX:0,slackY:0};if(Boolean(this.props.position)){const{x:t,y:e}=this.props.position;n.x=t,n.y=e}this.setState(n)})),this.state={dragging:!1,dragged:!1,x:t.position?t.position.x:t.defaultPosition.x,y:t.position?t.position.y:t.defaultPosition.y,prevPropsPosition:{...t.position},slackX:0,slackY:0,isElementSVG:!1},!t.position||t.onDrag||t.onStop||console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){void 0!==window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var t,e;return null!==(t=null===(e=this.props)||void 0===e||null===(e=e.nodeRef)||void 0===e?void 0:e.current)&&void 0!==t?t:o.default.findDOMNode(this)}render(){const{axis:t,bounds:e,children:n,defaultPosition:r,defaultClassName:o,defaultClassNameDragging:u,defaultClassNameDragged:h,position:d,positionOffset:f,scale:g,...m}=this.props;let v={},y=null;const w=!Boolean(d)||this.state.dragging,b=d||r,x={x:(0,l.canDragX)(this)&&w?this.state.x:b.x,y:(0,l.canDragY)(this)&&w?this.state.y:b.y};this.state.isElementSVG?y=(0,s.createSVGTransform)(x,f):v=(0,s.createCSSTransform)(x,f);const S=(0,a.default)(n.props.className||"",o,{[u]:this.state.dragging,[h]:this.state.dragged});return i.createElement(c.default,p({},m,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),i.cloneElement(i.Children.only(n),{className:S,style:{...n.props.style,...v},transform:y}))}}e.default=m,g(m,"displayName","Draggable"),g(m,"propTypes",{...c.default.propTypes,axis:r.default.oneOf(["both","x","y","none"]),bounds:r.default.oneOfType([r.default.shape({left:r.default.number,right:r.default.number,top:r.default.number,bottom:r.default.number}),r.default.string,r.default.oneOf([!1])]),defaultClassName:r.default.string,defaultClassNameDragging:r.default.string,defaultClassNameDragged:r.default.string,defaultPosition:r.default.shape({x:r.default.number,y:r.default.number}),positionOffset:r.default.shape({x:r.default.oneOfType([r.default.number,r.default.string]),y:r.default.oneOfType([r.default.number,r.default.string])}),position:r.default.shape({x:r.default.number,y:r.default.number}),className:u.dontSetMe,style:u.dontSetMe,transform:u.dontSetMe}),g(m,"defaultProps",{...c.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})},80486:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=h(e);if(n&&n.has(t))return n.get(t);var i={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var a=r?Object.getOwnPropertyDescriptor(t,o):null;a&&(a.get||a.set)?Object.defineProperty(i,o,a):i[o]=t[o]}i.default=t,n&&n.set(t,i);return i}(n(59301)),r=c(n(12708)),o=c(n(4676)),a=n(13957),s=n(60976),l=n(36641),u=c(n(94187));function c(t){return t&&t.__esModule?t:{default:t}}function h(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(h=function(t){return t?n:e})(t)}function d(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const f={start:"touchstart",move:"touchmove",stop:"touchend"},p={start:"mousedown",move:"mousemove",stop:"mouseup"};let g=p;class m extends i.Component{constructor(){super(...arguments),d(this,"dragging",!1),d(this,"lastX",NaN),d(this,"lastY",NaN),d(this,"touchIdentifier",null),d(this,"mounted",!1),d(this,"handleDragStart",(t=>{if(this.props.onMouseDown(t),!this.props.allowAnyClick&&"number"==typeof t.button&&0!==t.button)return!1;const e=this.findDOMNode();if(!e||!e.ownerDocument||!e.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:n}=e;if(this.props.disabled||!(t.target instanceof n.defaultView.Node)||this.props.handle&&!(0,a.matchesSelectorAndParentsTo)(t.target,this.props.handle,e)||this.props.cancel&&(0,a.matchesSelectorAndParentsTo)(t.target,this.props.cancel,e))return;"touchstart"===t.type&&t.preventDefault();const i=(0,a.getTouchIdentifier)(t);this.touchIdentifier=i;const r=(0,s.getControlPosition)(t,i,this);if(null==r)return;const{x:o,y:l}=r,c=(0,s.createCoreData)(this,o,l);(0,u.default)("DraggableCore: handleDragStart: %j",c),(0,u.default)("calling",this.props.onStart);!1!==this.props.onStart(t,c)&&!1!==this.mounted&&(this.props.enableUserSelectHack&&(0,a.addUserSelectStyles)(n),this.dragging=!0,this.lastX=o,this.lastY=l,(0,a.addEvent)(n,g.move,this.handleDrag),(0,a.addEvent)(n,g.stop,this.handleDragStop))})),d(this,"handleDrag",(t=>{const e=(0,s.getControlPosition)(t,this.touchIdentifier,this);if(null==e)return;let{x:n,y:i}=e;if(Array.isArray(this.props.grid)){let t=n-this.lastX,e=i-this.lastY;if([t,e]=(0,s.snapToGrid)(this.props.grid,t,e),!t&&!e)return;n=this.lastX+t,i=this.lastY+e}const r=(0,s.createCoreData)(this,n,i);(0,u.default)("DraggableCore: handleDrag: %j",r);if(!1!==this.props.onDrag(t,r)&&!1!==this.mounted)this.lastX=n,this.lastY=i;else try{this.handleDragStop(new MouseEvent("mouseup"))}catch(t){const e=document.createEvent("MouseEvents");e.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(e)}})),d(this,"handleDragStop",(t=>{if(!this.dragging)return;const e=(0,s.getControlPosition)(t,this.touchIdentifier,this);if(null==e)return;let{x:n,y:i}=e;if(Array.isArray(this.props.grid)){let t=n-this.lastX||0,e=i-this.lastY||0;[t,e]=(0,s.snapToGrid)(this.props.grid,t,e),n=this.lastX+t,i=this.lastY+e}const r=(0,s.createCoreData)(this,n,i);if(!1===this.props.onStop(t,r)||!1===this.mounted)return!1;const o=this.findDOMNode();o&&this.props.enableUserSelectHack&&(0,a.removeUserSelectStyles)(o.ownerDocument),(0,u.default)("DraggableCore: handleDragStop: %j",r),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,o&&((0,u.default)("DraggableCore: Removing handlers"),(0,a.removeEvent)(o.ownerDocument,g.move,this.handleDrag),(0,a.removeEvent)(o.ownerDocument,g.stop,this.handleDragStop))})),d(this,"onMouseDown",(t=>(g=p,this.handleDragStart(t)))),d(this,"onMouseUp",(t=>(g=p,this.handleDragStop(t)))),d(this,"onTouchStart",(t=>(g=f,this.handleDragStart(t)))),d(this,"onTouchEnd",(t=>(g=f,this.handleDragStop(t))))}componentDidMount(){this.mounted=!0;const t=this.findDOMNode();t&&(0,a.addEvent)(t,f.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const t=this.findDOMNode();if(t){const{ownerDocument:e}=t;(0,a.removeEvent)(e,p.move,this.handleDrag),(0,a.removeEvent)(e,f.move,this.handleDrag),(0,a.removeEvent)(e,p.stop,this.handleDragStop),(0,a.removeEvent)(e,f.stop,this.handleDragStop),(0,a.removeEvent)(t,f.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,a.removeUserSelectStyles)(e)}}findDOMNode(){var t,e;return null!==(t=this.props)&&void 0!==t&&t.nodeRef?null===(e=this.props)||void 0===e||null===(e=e.nodeRef)||void 0===e?void 0:e.current:o.default.findDOMNode(this)}render(){return i.cloneElement(i.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}e.default=m,d(m,"displayName","DraggableCore"),d(m,"propTypes",{allowAnyClick:r.default.bool,children:r.default.node.isRequired,disabled:r.default.bool,enableUserSelectHack:r.default.bool,offsetParent:function(t,e){if(t[e]&&1!==t[e].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:r.default.arrayOf(r.default.number),handle:r.default.string,cancel:r.default.string,nodeRef:r.default.object,onStart:r.default.func,onDrag:r.default.func,onStop:r.default.func,onMouseDown:r.default.func,scale:r.default.number,className:l.dontSetMe,style:l.dontSetMe,transform:l.dontSetMe}),d(m,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},12911:function(t,e,n){"use strict";const{default:i,DraggableCore:r}=n(2637);t.exports=i,t.exports.default=i,t.exports.DraggableCore=r},13957:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.addClassName=u,e.addEvent=function(t,e,n,i){if(!t)return;const r={capture:!0,...i};t.addEventListener?t.addEventListener(e,n,r):t.attachEvent?t.attachEvent("on"+e,n):t["on"+e]=n},e.addUserSelectStyles=function(t){if(!t)return;let e=t.getElementById("react-draggable-style-el");e||(e=t.createElement("style"),e.type="text/css",e.id="react-draggable-style-el",e.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",e.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",t.getElementsByTagName("head")[0].appendChild(e));t.body&&u(t.body,"react-draggable-transparent-selection")},e.createCSSTransform=function(t,e){const n=l(t,e,"px");return{[(0,r.browserPrefixToKey)("transform",r.default)]:n}},e.createSVGTransform=function(t,e){return l(t,e,"")},e.getTouch=function(t,e){return t.targetTouches&&(0,i.findInArray)(t.targetTouches,(t=>e===t.identifier))||t.changedTouches&&(0,i.findInArray)(t.changedTouches,(t=>e===t.identifier))},e.getTouchIdentifier=function(t){if(t.targetTouches&&t.targetTouches[0])return t.targetTouches[0].identifier;if(t.changedTouches&&t.changedTouches[0])return t.changedTouches[0].identifier},e.getTranslation=l,e.innerHeight=function(t){let e=t.clientHeight;const n=t.ownerDocument.defaultView.getComputedStyle(t);return e-=(0,i.int)(n.paddingTop),e-=(0,i.int)(n.paddingBottom),e},e.innerWidth=function(t){let e=t.clientWidth;const n=t.ownerDocument.defaultView.getComputedStyle(t);return e-=(0,i.int)(n.paddingLeft),e-=(0,i.int)(n.paddingRight),e},e.matchesSelector=s,e.matchesSelectorAndParentsTo=function(t,e,n){let i=t;do{if(s(i,e))return!0;if(i===n)return!1;i=i.parentNode}while(i);return!1},e.offsetXYFromParent=function(t,e,n){const i=e===e.ownerDocument.body?{left:0,top:0}:e.getBoundingClientRect(),r=(t.clientX+e.scrollLeft-i.left)/n,o=(t.clientY+e.scrollTop-i.top)/n;return{x:r,y:o}},e.outerHeight=function(t){let e=t.clientHeight;const n=t.ownerDocument.defaultView.getComputedStyle(t);return e+=(0,i.int)(n.borderTopWidth),e+=(0,i.int)(n.borderBottomWidth),e},e.outerWidth=function(t){let e=t.clientWidth;const n=t.ownerDocument.defaultView.getComputedStyle(t);return e+=(0,i.int)(n.borderLeftWidth),e+=(0,i.int)(n.borderRightWidth),e},e.removeClassName=c,e.removeEvent=function(t,e,n,i){if(!t)return;const r={capture:!0,...i};t.removeEventListener?t.removeEventListener(e,n,r):t.detachEvent?t.detachEvent("on"+e,n):t["on"+e]=null},e.removeUserSelectStyles=function(t){if(!t)return;try{if(t.body&&c(t.body,"react-draggable-transparent-selection"),t.selection)t.selection.empty();else{const e=(t.defaultView||window).getSelection();e&&"Caret"!==e.type&&e.removeAllRanges()}}catch(t){}};var i=n(36641),r=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=o(e);if(n&&n.has(t))return n.get(t);var i={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var s=r?Object.getOwnPropertyDescriptor(t,a):null;s&&(s.get||s.set)?Object.defineProperty(i,a,s):i[a]=t[a]}i.default=t,n&&n.set(t,i);return i}(n(32092));function o(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(o=function(t){return t?n:e})(t)}let a="";function s(t,e){return a||(a=(0,i.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],(function(e){return(0,i.isFunction)(t[e])}))),!!(0,i.isFunction)(t[a])&&t[a](e)}function l(t,e,n){let{x:i,y:r}=t,o="translate(".concat(i).concat(n,",").concat(r).concat(n,")");if(e){const t="".concat("string"==typeof e.x?e.x:e.x+n),i="".concat("string"==typeof e.y?e.y:e.y+n);o="translate(".concat(t,", ").concat(i,")")+o}return o}function u(t,e){t.classList?t.classList.add(e):t.className.match(new RegExp("(?:^|\\s)".concat(e,"(?!\\S)")))||(t.className+=" ".concat(e))}function c(t,e){t.classList?t.classList.remove(e):t.className=t.className.replace(new RegExp("(?:^|\\s)".concat(e,"(?!\\S)"),"g"),"")}},32092:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.browserPrefixToKey=r,e.browserPrefixToStyle=function(t,e){return e?"-".concat(e.toLowerCase(),"-").concat(t):t},e.default=void 0,e.getPrefix=i;const n=["Moz","Webkit","O","ms"];function i(){var t;let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window)return"";const i=null===(t=window.document)||void 0===t||null===(t=t.documentElement)||void 0===t?void 0:t.style;if(!i)return"";if(e in i)return"";for(let t=0;t<n.length;t++)if(r(e,n[t])in i)return n[t];return""}function r(t,e){return e?"".concat(e).concat(function(t){let e="",n=!0;for(let i=0;i<t.length;i++)n?(e+=t[i].toUpperCase(),n=!1):"-"===t[i]?n=!0:e+=t[i];return e}(t)):t}e.default=i()},94187:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){0}},60976:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.canDragX=function(t){return"both"===t.props.axis||"x"===t.props.axis},e.canDragY=function(t){return"both"===t.props.axis||"y"===t.props.axis},e.createCoreData=function(t,e,n){const r=!(0,i.isNum)(t.lastX),a=o(t);return r?{node:a,deltaX:0,deltaY:0,lastX:e,lastY:n,x:e,y:n}:{node:a,deltaX:e-t.lastX,deltaY:n-t.lastY,lastX:t.lastX,lastY:t.lastY,x:e,y:n}},e.createDraggableData=function(t,e){const n=t.props.scale;return{node:e.node,x:t.state.x+e.deltaX/n,y:t.state.y+e.deltaY/n,deltaX:e.deltaX/n,deltaY:e.deltaY/n,lastX:t.state.x,lastY:t.state.y}},e.getBoundPosition=function(t,e,n){if(!t.props.bounds)return[e,n];let{bounds:a}=t.props;a="string"==typeof a?a:function(t){return{left:t.left,top:t.top,right:t.right,bottom:t.bottom}}(a);const s=o(t);if("string"==typeof a){const{ownerDocument:t}=s,e=t.defaultView;let n;if(n="parent"===a?s.parentNode:t.querySelector(a),!(n instanceof e.HTMLElement))throw new Error('Bounds selector "'+a+'" could not find an element.');const o=n,l=e.getComputedStyle(s),u=e.getComputedStyle(o);a={left:-s.offsetLeft+(0,i.int)(u.paddingLeft)+(0,i.int)(l.marginLeft),top:-s.offsetTop+(0,i.int)(u.paddingTop)+(0,i.int)(l.marginTop),right:(0,r.innerWidth)(o)-(0,r.outerWidth)(s)-s.offsetLeft+(0,i.int)(u.paddingRight)-(0,i.int)(l.marginRight),bottom:(0,r.innerHeight)(o)-(0,r.outerHeight)(s)-s.offsetTop+(0,i.int)(u.paddingBottom)-(0,i.int)(l.marginBottom)}}(0,i.isNum)(a.right)&&(e=Math.min(e,a.right));(0,i.isNum)(a.bottom)&&(n=Math.min(n,a.bottom));(0,i.isNum)(a.left)&&(e=Math.max(e,a.left));(0,i.isNum)(a.top)&&(n=Math.max(n,a.top));return[e,n]},e.getControlPosition=function(t,e,n){const i="number"==typeof e?(0,r.getTouch)(t,e):null;if("number"==typeof e&&!i)return null;const a=o(n),s=n.props.offsetParent||a.offsetParent||a.ownerDocument.body;return(0,r.offsetXYFromParent)(i||t,s,n.props.scale)},e.snapToGrid=function(t,e,n){const i=Math.round(e/t[0])*t[0],r=Math.round(n/t[1])*t[1];return[i,r]};var i=n(36641),r=n(13957);function o(t){const e=t.findDOMNode();if(!e)throw new Error("<DraggableCore>: Unmounted during event!");return e}},36641:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.dontSetMe=function(t,e,n){if(t[e])return new Error("Invalid prop ".concat(e," passed to ").concat(n," - do not set this, set it on the child."))},e.findInArray=function(t,e){for(let n=0,i=t.length;n<i;n++)if(e.apply(e,[t[n],n,t]))return t[n]},e.int=function(t){return parseInt(t,10)},e.isFunction=function(t){return"function"==typeof t||"[object Function]"===Object.prototype.toString.call(t)},e.isNum=function(t){return"number"==typeof t&&!isNaN(t)}},51581:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=n(59301),o=s(r),a=s(n(12708));function s(t){return t&&t.__esModule?t:{default:t}}var l=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.scrollListener=n.scrollListener.bind(n),n.eventListenerOptions=n.eventListenerOptions.bind(n),n.mousewheelListener=n.mousewheelListener.bind(n),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var t=this.getParentElement(this.scrollComponent);t.scrollTop=t.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var t=!1,e={get passive(){t=!0}};try{document.addEventListener("test",null,e),document.removeEventListener("test",null,e)}catch(t){}return t}},{key:"eventListenerOptions",value:function(){var t=this.props.useCapture;return this.isPassiveSupported()&&(t={useCapture:this.props.useCapture,passive:!0}),t}},{key:"setDefaultLoader",value:function(t){this.defaultLoader=t}},{key:"detachMousewheelListener",value:function(){var t=window;!1===this.props.useWindow&&(t=this.scrollComponent.parentNode),t.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var t=window;!1===this.props.useWindow&&(t=this.getParentElement(this.scrollComponent)),t.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(t){var e=this.props.getScrollParent&&this.props.getScrollParent();return null!=e?e:t&&t.parentNode}},{key:"filterProps",value:function(t){return t}},{key:"attachScrollListener",value:function(){var t=this.getParentElement(this.scrollComponent);if(this.props.hasMore&&t){var e=window;!1===this.props.useWindow&&(e=t),e.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),e.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),e.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}}},{key:"mousewheelListener",value:function(t){1!==t.deltaY||this.isPassiveSupported()||t.preventDefault()}},{key:"scrollListener",value:function(){var t=this.scrollComponent,e=window,n=this.getParentElement(t),i=void 0;if(this.props.useWindow){var r=document.documentElement||document.body.parentNode||document.body,o=void 0!==e.pageYOffset?e.pageYOffset:r.scrollTop;i=this.props.isReverse?o:this.calculateOffset(t,o)}else i=this.props.isReverse?n.scrollTop:t.scrollHeight-n.scrollTop-n.clientHeight;i<Number(this.props.threshold)&&t&&null!==t.offsetParent&&(this.detachScrollListener(),this.beforeScrollHeight=n.scrollHeight,this.beforeScrollTop=n.scrollTop,"function"==typeof this.props.loadMore&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(t,e){return t?this.calculateTopPosition(t)+(t.offsetHeight-e-window.innerHeight):0}},{key:"calculateTopPosition",value:function(t){return t?t.offsetTop+this.calculateTopPosition(t.offsetParent):0}},{key:"render",value:function(){var t=this,e=this.filterProps(this.props),n=e.children,i=e.element,r=e.hasMore,a=(e.initialLoad,e.isReverse),s=e.loader,l=(e.loadMore,e.pageStart,e.ref),u=(e.threshold,e.useCapture,e.useWindow,e.getScrollParent,function(t,e){var n={};for(var i in t)e.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}(e,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]));u.ref=function(e){t.scrollComponent=e,l&&l(e)};var c=[n];return r&&(s?a?c.unshift(s):c.push(s):this.defaultLoader&&(a?c.unshift(this.defaultLoader):c.push(this.defaultLoader))),o.default.createElement(i,u,c)}}]),e}(r.Component);l.propTypes={children:a.default.node.isRequired,element:a.default.node,hasMore:a.default.bool,initialLoad:a.default.bool,isReverse:a.default.bool,loader:a.default.node,loadMore:a.default.func.isRequired,pageStart:a.default.number,ref:a.default.func,getScrollParent:a.default.func,threshold:a.default.number,useCapture:a.default.bool,useWindow:a.default.bool},l.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},e.default=l,t.exports=e.default},26724:function(t,e,n){t.exports=n(51581)},80010:function(t,e,n){"use strict";e.__esModule=!0,e.default=void 0;var i,r=(i=n(59301))&&i.__esModule?i:{default:i},o=n(12911),a=n(73638),s=n(6217);function l(){return l=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},l.apply(this,arguments)}function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){d(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function h(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var f=function(t){var e,n;function i(){for(var e,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return d(h(e=t.call.apply(t,[this].concat(i))||this),"state",void 0),d(h(e),"lastHandleRect",null),d(h(e),"slack",null),e}n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var s=i.prototype;return s.componentWillUnmount=function(){this.resetData()},s.lockAspectRatio=function(t,e,n){return[t=(e=t/n)*n,e]},s.resetData=function(){this.lastHandleRect=this.slack=null},s.runConstraints=function(t,e){var n=[this.props.minConstraints,this.props.maxConstraints],i=n[0],r=n[1];if(!i&&!r)return[t,e];if(this.props.lockAspectRatio)if(e===this.props.height){var o=this.props.width/this.props.height;t=(e=t/o)*o}else{var a=this.props.height/this.props.width;e=(t=e/a)*a}var s=t,l=e,u=this.slack||[0,0],c=u[0],h=u[1];return t+=c,e+=h,i&&(t=Math.max(i[0],t),e=Math.max(i[1],e)),r&&(t=Math.min(r[0],t),e=Math.min(r[1],e)),this.slack=[c+(s-t),h+(l-e)],[t,e]},s.resizeHandler=function(t,e){var n=this;return function(i,r){var o=r.node,a=r.deltaX,s=r.deltaY;"onResizeStart"===t&&n.resetData();var l=("both"===n.props.axis||"x"===n.props.axis)&&"n"!==e&&"s"!==e,u=("both"===n.props.axis||"y"===n.props.axis)&&"e"!==e&&"w"!==e;if(l||u){var c=e[0],h=e[e.length-1],d=o.getBoundingClientRect();if(null!=n.lastHandleRect){if("w"===h)a+=d.left-n.lastHandleRect.left;if("n"===c)s+=d.top-n.lastHandleRect.top}n.lastHandleRect=d,"w"===h&&(a=-a),"n"===c&&(s=-s);var f=n.props.width+(l?a/n.props.transformScale:0),p=n.props.height+(u?s/n.props.transformScale:0),g=n.runConstraints(f,p);f=g[0],p=g[1];var m=f!==n.props.width||p!==n.props.height,v="function"==typeof n.props[t]?n.props[t]:null;v&&!("onResize"===t&&!m)&&("function"==typeof i.persist&&i.persist(),v(i,{node:o,size:{width:f,height:p},handle:e})),"onResizeStop"===t&&n.resetData()}}},s.renderResizeHandle=function(t){var e=this.props.handle;return e?"function"==typeof e?e(t):e:r.default.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+t})},s.render=function(){var t=this,e=this.props,n=e.children,i=e.className,s=e.draggableOpts,u=(e.width,e.height,e.handle,e.handleSize,e.lockAspectRatio,e.axis,e.minConstraints,e.maxConstraints,e.onResize,e.onResizeStop,e.onResizeStart,e.resizeHandles),h=(e.transformScale,function(t,e){if(null==t)return{};var n,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)n=o[i],e.indexOf(n)>=0||(r[n]=t[n]);return r}(e,["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"]));return(0,a.cloneElement)(n,c(c({},h),{},{className:(i?i+" ":"")+"react-resizable",children:[].concat(n.props.children,u.map((function(e){return r.default.createElement(o.DraggableCore,l({},s,{key:"resizableHandle-"+e,onStop:t.resizeHandler("onResizeStop",e),onStart:t.resizeHandler("onResizeStart",e),onDrag:t.resizeHandler("onResize",e)}),t.renderResizeHandle(e))})))}))},i}(r.default.Component);e.default=f,d(f,"propTypes",s.resizableProps),d(f,"defaultProps",{handleSize:[20,20],lockAspectRatio:!1,axis:"both",minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1})},60842:function(t,e,n){"use strict";e.default=void 0;var i=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var e=l();if(e&&e.has(t))return e.get(t);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var o=i?Object.getOwnPropertyDescriptor(t,r):null;o&&(o.get||o.set)?Object.defineProperty(n,r,o):n[r]=t[r]}n.default=t,e&&e.set(t,n);return n}(n(59301)),r=s(n(12708)),o=s(n(80010)),a=n(6217);function s(t){return t&&t.__esModule?t:{default:t}}function l(){if("function"!=typeof WeakMap)return null;var t=new WeakMap;return l=function(){return t},t}function u(){return u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},u.apply(this,arguments)}function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){f(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function f(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var p=function(t){var e,n;function r(){for(var e,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return f(d(e=t.call.apply(t,[this].concat(i))||this),"state",{width:e.props.width,height:e.props.height,propsWidth:e.props.width,propsHeight:e.props.height}),f(d(e),"onResize",(function(t,n){var i=n.size;e.props.onResize?(t.persist&&t.persist(),e.setState(i,(function(){return e.props.onResize&&e.props.onResize(t,n)}))):e.setState(i)})),e}return n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,r.getDerivedStateFromProps=function(t,e){return e.propsWidth!==t.width||e.propsHeight!==t.height?{width:t.width,height:t.height,propsWidth:t.width,propsHeight:t.height}:null},r.prototype.render=function(){var t=this.props,e=t.handle,n=t.handleSize,r=(t.onResize,t.onResizeStart),a=t.onResizeStop,s=t.draggableOpts,l=t.minConstraints,c=t.maxConstraints,d=t.lockAspectRatio,f=t.axis,p=(t.width,t.height,t.resizeHandles),g=t.style,m=t.transformScale,v=function(t,e){if(null==t)return{};var n,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)n=o[i],e.indexOf(n)>=0||(r[n]=t[n]);return r}(t,["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"]);return i.createElement(o.default,{axis:f,draggableOpts:s,handle:e,handleSize:n,height:this.state.height,lockAspectRatio:d,maxConstraints:c,minConstraints:l,onResizeStart:r,onResize:this.onResize,onResizeStop:a,resizeHandles:p,transformScale:m,width:this.state.width},i.createElement("div",u({},v,{style:h(h({},g),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},r}(i.Component);e.default=p,f(p,"propTypes",h(h({},a.resizableProps),{},{children:r.default.element}))},6217:function(t,e,n){"use strict";e.__esModule=!0,e.resizableProps=void 0;var i,r=(i=n(12708))&&i.__esModule?i:{default:i};n(12911);var o={axis:r.default.oneOf(["both","x","y","none"]),className:r.default.string,children:r.default.element.isRequired,draggableOpts:r.default.shape({allowAnyClick:r.default.bool,cancel:r.default.string,children:r.default.node,disabled:r.default.bool,enableUserSelectHack:r.default.bool,offsetParent:r.default.node,grid:r.default.arrayOf(r.default.number),handle:r.default.string,nodeRef:r.default.object,onStart:r.default.func,onDrag:r.default.func,onStop:r.default.func,onMouseDown:r.default.func,scale:r.default.number}),height:r.default.number.isRequired,handle:r.default.oneOfType([r.default.node,r.default.func]),handleSize:r.default.arrayOf(r.default.number),lockAspectRatio:r.default.bool,maxConstraints:r.default.arrayOf(r.default.number),minConstraints:r.default.arrayOf(r.default.number),onResizeStop:r.default.func,onResizeStart:r.default.func,onResize:r.default.func,resizeHandles:r.default.arrayOf(r.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:r.default.number,width:r.default.number.isRequired};e.resizableProps=o},73638:function(t,e,n){"use strict";e.__esModule=!0,e.cloneElement=function(t,e){e.style&&t.props.style&&(e.style=a(a({},t.props.style),e.style));e.className&&t.props.className&&(e.className=t.props.className+" "+e.className);return r.default.cloneElement(t,e)};var i,r=(i=n(59301))&&i.__esModule?i:{default:i};function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},9221:function(t,e,n){"use strict";t.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},t.exports.Resizable=n(80010).default,t.exports.ResizableBox=n(60842).default},76374:function(t,e,n){"use strict";var i=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some((function(t,i){return t[0]===e&&(n=i,!0)})),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),i=this.__entries__[n];return i&&i[1]},e.prototype.set=function(e,n){var i=t(this.__entries__,e);~i?this.__entries__[i][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,i=t(n,e);~i&&n.splice(i,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,i=this.__entries__;n<i.length;n++){var r=i[n];t.call(e,r[1],r[0])}},e}()}(),r="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,o=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),a="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(o):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)};var s=["top","right","bottom","left","width","height","size","weight"],l="undefined"!=typeof MutationObserver,u=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t,e){var n=!1,i=!1,r=0;function o(){n&&(n=!1,t()),i&&l()}function s(){a(o)}function l(){var t=Date.now();if(n){if(t-r<2)return;i=!0}else n=!0,i=!1,setTimeout(s,e);r=t}return l}(this.refresh.bind(this),20)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},t.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;s.some((function(t){return!!~n.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),c=function(t,e){for(var n=0,i=Object.keys(e);n<i.length;n++){var r=i[n];Object.defineProperty(t,r,{value:e[r],enumerable:!1,writable:!1,configurable:!0})}return t},h=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||o},d=y(0,0,0,0);function f(t){return parseFloat(t)||0}function p(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce((function(e,n){return e+f(t["border-"+n+"-width"])}),0)}function g(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return d;var i=h(t).getComputedStyle(t),r=function(t){for(var e={},n=0,i=["top","right","bottom","left"];n<i.length;n++){var r=i[n],o=t["padding-"+r];e[r]=f(o)}return e}(i),o=r.left+r.right,a=r.top+r.bottom,s=f(i.width),l=f(i.height);if("border-box"===i.boxSizing&&(Math.round(s+o)!==e&&(s-=p(i,"left","right")+o),Math.round(l+a)!==n&&(l-=p(i,"top","bottom")+a)),!function(t){return t===h(t).document.documentElement}(t)){var u=Math.round(s+o)-e,c=Math.round(l+a)-n;1!==Math.abs(u)&&(s-=u),1!==Math.abs(c)&&(l-=c)}return y(r.left,r.top,s,l)}var m="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof h(t).SVGGraphicsElement}:function(t){return t instanceof h(t).SVGElement&&"function"==typeof t.getBBox};function v(t){return r?m(t)?function(t){var e=t.getBBox();return y(0,0,e.width,e.height)}(t):g(t):d}function y(t,e,n,i){return{x:t,y:e,width:n,height:i}}var w=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=y(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=v(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),b=function(t,e){var n,i,r,o,a,s,l,u=(i=(n=e).x,r=n.y,o=n.width,a=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(s.prototype),c(l,{x:i,y:r,width:o,height:a,top:r,right:i+o,bottom:a+r,left:i}),l);c(this,{target:t,contentRect:u})},x=function(){function t(t,e,n){if(this.activeObservations_=[],this.observations_=new i,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=n}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof h(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new w(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof h(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(e){e.isActive()&&t.activeObservations_.push(e)}))},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map((function(t){return new b(t.target,t.broadcastRect())}));this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),S="undefined"!=typeof WeakMap?new WeakMap:new i,P=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=u.getInstance(),i=new x(e,n,this);S.set(this,i)};["observe","unobserve","disconnect"].forEach((function(t){P.prototype[t]=function(){var e;return(e=S.get(this))[t].apply(e,arguments)}}));var k=void 0!==o.ResizeObserver?o.ResizeObserver:P;e.Z=k},98040:function(t){t.exports=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var e=document.activeElement,n=[],i=0;i<t.rangeCount;i++)n.push(t.getRangeAt(i));switch(e.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":e.blur();break;default:e=null}return t.removeAllRanges(),function(){"Caret"===t.type&&t.removeAllRanges(),t.rangeCount||n.forEach((function(e){t.addRange(e)})),e&&e.focus()}}},82059:function(t){var e=arguments[3],n=arguments[4],i=arguments[5],r=JSON.stringify;t.exports=function(t,o){for(var a,s=Object.keys(i),l=0,u=s.length;l<u;l++){var c=s[l],h=i[c].exports;if(h===t||h&&h.default===t){a=c;break}}if(!a){a=Math.floor(Math.pow(16,8)*Math.random()).toString(16);var d={};for(l=0,u=s.length;l<u;l++){d[c=s[l]]=c}n[a]=["function(require,module,exports){"+t+"(self); }",d]}var f=Math.floor(Math.pow(16,8)*Math.random()).toString(16),p={};p[a]=a,n[f]=["function(require,module,exports){var f = require("+r(a)+");(f.default ? f.default : f)(self);}",p];var g={};!function t(e){for(var i in g[e]=!0,n[e][1]){var r=n[e][1][i];g[r]||t(r)}}(f);var m="("+e+")({"+Object.keys(g).map((function(t){return r(t)+":["+n[t][0]+","+r(n[t][1])+"]"})).join(",")+"},{},["+r(f)+"])",v=window.URL||window.webkitURL||window.mozURL||window.msURL,y=new Blob([m],{type:"text/javascript"});if(o&&o.bare)return y;var w=v.createObjectURL(y),b=new Worker(w);return b.objectURL=w,b}},32637:function(t,e,n){"use strict";t.exports=n.p+"static/AssistantCode3.a8740efb.jpeg"},67836:function(t){"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOQAAACACAYAAAAbMsXBAAAAAXNSR0IArs4c6QAAIABJREFUeF7MvQm4pVdZJvr+ez7zfE7V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vOHmhoPtnbzN5nSmdnpyFcgWqU8+Z7h88bYZCxXIYdsGMxfbRnj7kvsLhBKIMAy2233XaRmSsbgjpSU6spuRO182SL8jO9ykj1Ki8D8piY6lpC+uTyQnndXcMYvex4SzgYUDQa6be6Bex4rWnrWQtYC1yuBdi6FYupMRDypAcD3kg04j3gdnsexbN22u4115pEtEgk8jmXW9dLmhqL6WKi58s9O3u8tYC1gLWAtYC1gLWAsYDLpRZJFbGo3vF4PM8uWZL7Rk/T/H8NJdD6oyIQsgAAAABJRU5ErkJggg=="},48739:function(t){"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOQAAACACAYAAAAbMsXBAAAAAXNSR0IArs4c6QAAIABJREFUeF7kvXeYbOldHvieylXdXZ3DjXMnaaTJIwmjhLHRrggLiLiENc+u17vGCNj1Cjb4efaxsfnHj9de82iFiWuwSQsCBZKE9QgJJCOBpJFmJGY04c7c3Llvx4qn6qzeXzj11enqvmEu2Ng1alXfrlMnfN/3/sL7C1+E23xdWk3ubefwdvTxuijCSQAnE+AkEozf5in/s/paLgeUS0C7PfzYUaT/TpLB38O/+e/ZweLxR332FzawvEe7X7+G/zP9yH/JvstDZr6fOUbOFekl+Gz8SXJAlADdHtDvAr0+EPeBPn84BgA4tvwp8Nj8X9jT64kj7EfANQDXkgTXkMNny3184OxidP52rpwZzuNP8dRKsnBpCz+Ui/CtY0U8PFUGSvnBYMmz39IZb+eW/9P4ThaQo4Aow8lFeAzYws/8979UcI4CGu87+HtioFJJE8yfrZW4B+wcAMtbwO6BAmlmEliaAqoV/Xf6NZ7Lzx38zlMRkDxXj2Dlu/2bn+XzQC4CcnzP2T3Y9+V0d3jdRsAXAbwPNbz7volo7WZX7U3dxtpaMv7UDn7k2S38aBxqwAQo54CxIjBZAqoFYLoCVApARAkVAXkOwk1d5WZv+T+N4wSQZaDTHmjDO70o/rJHitN8SBgkwBAgM3jcbwKffwHYbwFn5oH6uGo7gnN5AzizAJxbBKoU/kWgUDCt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gYApEjYIQdOVZ2pyFgCBgChoAhsMsQMMLeZdBbxYaAIWAIGAKGQOQIGGFHjpXdaQgYAoaAIWAI7DIEjLB3GfRWsSFgCBgChoAhEDkCRtiRY2V3GgKGgCFgCBgCuwwBI+xdBr1VbAgYAoaAIWAIRI6AEXbkWNmdhoAhYAgYAobALkPACHuXQW8VGwKGgCFgCBgCkSNghB05VnanIWAIGAKGgCGwyxAwwt5l0FvFhoAhYAgYAoZA5Ah0i7B5uKSkRKWlperbt6/Wr1+v/fbbz50qVVVVpY0bNyojI0P19fVOopiYGA0cOFCrVq1yp08tWbJERx11lKKiotwz/jSqdevWqaKiQuPHj9/SkpUrVyopKUkNDQ3iyEl+cnNzlZaW9pnW+lOuvqInckbe+3anIWAIGAKGQI9BoFuEvWbNGt18882OeK+44go9+OCDuvzyy3XwwQersLBQr7/+umbPnq3hw4crPj5eb775pj744AOdcsopjnAXL16siRMnKjExUb///e+Vk5Oj1atX6+qrr3bk/u1vf1vHHnusA/OSSy7RtddeqylTprhyx44dqwMPPFA33njjVmA//GqFKupalZEcpVMPTtPT06t19hHp7qhOuwwBQ8AQMAQMgZ6KQLcIe968eTr99NNVVlamK6+8UrNnf6y0tFT95je/0V/+8hfNnz/fRdpjxozR3Llzdeihh+qII47QVVddpcMPP9yR+bBhwxyh88zf//53/elPf9I//vEPDRo0SBdddJFGjhyp888/35F3VlaWxo0b5z5raWlxUTr3hF9/eLJU15+Zraq6kP71UoXqGkK66pReysmI6al9ZHIbAoaAIWAIGALqFmE/99xzmjNnjpv6JkqeOXOm+vTp46Lgt956S7/4xS/cdPnQoUMFuR922GG66667dPHFFzuyhdAhZp65++67NX36dEf+TKMTQT/88MM65phj3D1E1yeccIJWrFihc845R/fee6/uueceDRgwYGvCfqJUl52cpX++UK76xladfWSGMlOjlZESbd1tCBgChoAhYAj0WAS6RdgfffSRI0/IdcKECRoyZIhee+01FykzrZ2ZmekItl+/fnr77be3kC7T39XV1Zo5833tt9++Djym0iH03/3ud47AiaI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QMAUPAEDAEjgkBI+xjgs9uNgQMAUPAEDAEygeBkoSd0bZNLGd3R5fPo+0phoAhYAgYAoaAIVBaBHJycrI2bMwrZpX46taJMdFBQQH1S3uzXWcIGAKGgCFgCBgC5YNAVlbOtk2b87ICli3bN6pe/cihsTHhtrerfLC3pxgChoAhYAgYAqVGYNfuzJTkvb4xAStXpvULCdWHzZtVg7CDSl2DXWgIGAKGgCFgCBgCJxoB/48/pqX4fAFX8u5ay5enfFu/fmRC9ephDU70k61+Q8AQMAQMAUPAECgdAmlp+T9t25azoW3b2L6OsFeuTG9WVOybkdC0akBERHB86aqxqwwBQ8AQMAQMAUPgRCGQm+vbs2FjRnFgQHDPpKRq6x1h7yftlLOLios/rVcvqqBqleC6xcXFNj1+okbB6jUEDAFDwBAwBI6AQEBAgD8j07dj+/bs0MCAgMuSkmKnc+kBwj4QaRf5Xw8JVVKVKoFBUZFBOYGBqi4V25YvEy1DwBAwBAwBQ+CEIRCQVVSktOwcf2RmZpG/sEArAwODbiay9h55EGH/O9pO6+f3+68ICNTZkuoVF6vKCWujVWwIGAKGgCFgCJzmCAQEKFPS9uIiTQ8KCvo4Kan6tEMh+T/L6b3uZqg3LQAAAABJRU5ErkJggg=="},20828:function(t,e,n){"use strict";t.exports=n.p+"static/spzl.d740a1f1.png"},4575:function(t){"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAewAAAESCAYAAAA/suYJAAAAAXNSR0IArs4c6QAAIABJREFUeF7svQd0Xdl1Jbh/wP8IHznnSBKBIJgA5kxWVlWpSqqyJI+mPe1xe7XTuD3jWW0trVJ3ey1Js9oejUe217gtt0eWrFQ5F3MmmJETkXNO/wP4+HFmHxAUVYkPrCqSIM6txQLw8d679+5779nnnPtwtwkfU+rrJw/4g4EXEAzuNpmQHgwi8uOu088UAUVAEVAEFAFF4LMjYDLBGQyiDybTaYvJ/MuSkphjH36q6fYP6uunCgIB/3+zWk0lCYmhFkeEbdZuN8eYTHB89uboExQBRUARU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NBUl5gmZKNaF7pUruWcUY8m8ZJb81P/VKgU+6m+OQNGMoJDR32TQrbT5yzVLKZbLmilVr6lcYbleUQZ9BToLeVWMtFdKyUsst0I1sXMRiZdNqHZikEIe8EplBodq/IP3jzE18f2boXJbBvc6Owk3FfhvVPk9YeDc7rHekEHeelDtEnH4KVIeMAaRN9plYdeb2YMOSs/fguGUwFY/G5ss8Oymp8y9ZjbDUP7PYjCt04kHERjWM840IrZZYkUWWxj5ugg3Nzd4auZl/uryNO86uIff+NAHWVpep6+/Sl+1wNWZG0zsGMWlxI0bC3SaLTbbhr33TnLvoQnOn5tjfX2N+bkFOtI6b0VMyjA2Nq7d+s1WW72IzFoM3JRACvaiAC4lGL/FcmOZjeEpilNH1UMJTMwM8lXIaZXMjcZ9WTlCPGOSlUKyFE4OPXsceXluxi9VAxXI3IOs4smMwZP6Zm6Q6gHztipJfGlIoEM5s8ezxE4vns1WlcStGrvmPFbvpkEKz7fKgb11PvwT41qffVNtQntTOS/mrWUehxOllP8+NWFmvpf3+X8AsMxlyvOU+pIAAAAASUVORK5CYII="},20614:function(t){"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAB6hJREFUWEfNmE9sXFcVxr9z3/xxbNeO4zhJoUr/4UI3sOoGQaUKKBUQELBi12UrgUTV4qGlhagFSqBQJBawYQMLFoAqCCCIiiqVBUhdIJAqVLutQlDkxnEcO4n/zLx596Dv3HvfvBmPkwxkESsv7817d+79zXfOd86dEdzkf3KT8+GagC++qo8q8CURzAOopQ+k0F2fTSDovx+m5/+90bySrqguAfKjx+6XH19NpKsCvviqfs+rPnG1CdLCw1CuKzoiLzx+v3xlr7F7An7/Zb3H1/RfULghUvUkqc6gEVekKlm/hH3jTV7vMrn38Q/L4jDIPQFPvKKPQH2UPwaplKuqlwYYu9UfzOEh350aEPdo6wH5yUiA3365WHDAiesK08Cg/rCHh1WsQREVaD310ey7IwNCNQI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W/baPzujkBs/3GG8BLJ+37SsDmJxbZrWMfRIcAXWRW28KE7y/HWUBqP/2Xcq5sMo5BMubroZ0CFyIJqRfNBm2rJvWaB/Kxl0TN5oJufHYsva7FiR065Ool8WJ1WOeA6ybwYZVjl8nij++ImC3fdHMHOw+Po7kuZBd2LIR7B8So4NhlSEiy/a9I1UxhFbS5L7IT4V+t8sZKIevJAt+9N/K08iOX9Z5SGZDh99EA1XM7ilAfLg5XCwjqBmxYH8cKhCV3oiUQ2hkivS/o3hmVIbvH89i4YyIJGgoRlrfLo3Dl0I5n/xmSX313HkifeOee2//s9D9A1xyy0l2AFsAyo9LJp4tbfBAkQV3WNZ+5l63nnGPWXUB2jrGgOaG05YWmrtb0qQvfkTAdSSlm9A+me3UedaMrJAroM65ppXIbx7vJj1rhq1OSjBuVzD4jVM82I95sHyytTLqhulrkseeWp+Qqhrm+R622btheCXvnaKWfPX4+nW1gThnO8ned1vFDIs79IXWVVMzb5kLqj99p6v8ln23PW+gyoznriVW1kyQKxmogOF4JGj5xydh08mV7AczFkBpbt98LAlKiCFUvHsVE0fzPNR6ZjysQZ8XdQVlH+BPF6UU4k7j+XR63ehhodn8OFoHJkDJvfOZdel0iRZZKc2G5i17SiBRiFp5z9JsOz30W68yiymaTKfjfxMG5OuJuqCFOivko8FrZpW+GtuoYo8z/RZgCBSZgmu5zNnslGFr9+gYiGSr3gpT3yf3zXB/ThPvtvcdmA/hcfxA2skG20kgAAAABJRU5ErkJggg=="},1426:function(t){"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAB71JREFUWEetmHuMXFUdx7+/e+69c2d3u7LbAltoqxgFYuQPRd02VqE8qtvKBglgwiMWCVi1ECmPtZYWiOFR/gFCIMaA0aAhRDSGmNq0Qi3blK5B7La7bXGrUgiwgED6mJ2ZnTn3mN85587cmbkz91a4m82dmXvOuZ/z/T3O7xwCgAdG1SJP4T7HwZBSqp9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XX21iL/MbEFZLROlDBb5G68w0RZVe68Fnd+XwQdnK2p06u1waZKCPJiugGxdqI8la6VH/YgkeiEDal9kAO1rjSaN5hadSgz0YWdqwVaV6ok3/quuL1fSslv757WNvAnuGlhNrairpdFruAuc3IsnUwGVUucdnVHPvXcEvWlHMs2I8cFrhYI1n3U106WWmqwPonY+M5wKyP2lVCOFEn56rIhe3sAn+mOCgNEmvkkgY8nYm2ubfT6FcIGeAEe7fHt4lNVwrKQMca1SOAuAl7XfCbarEB+/OfXjt/8BCBvCrQ2Hui4AAAAASUVORK5CYII="},70521:function(t){"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAYAAACoYAD2AAAAAXNSR0IArs4c6QAAB+dJREFUWEfNmGuMHWUZx//PO+fsrVuwu8XQwlqK2hg3XFq8VEtCGvnQGiXxkopgjH5AJLFqA4nRmOg3v3lB4gclsSAlsQbbhADGmiwYEyEWW2jZxtRQpKXtXgq7e3b37Dnv5THPe5kz5+zZS3ebwCSTmXNm5p3f+3+u7xBWsd37q+nPgPBLBj5MhJfA/MCB764dXsWQbR+llQ741Ucqg+TUywTuLIxxvmz14P596yZWOm6751YMee+vZx4G897WQUnRfU98Z82j7w3Ih2d+D/A35kEyHnzie70/f09Afu2RygPs6DctMFpZvuUP+9aeetchf7C/MlhnOjJTw4aZegPnqm46Zl3PJ397P+l3FfJnh2ZuMwZ/AXg9iEylSj+yDtt7O90XSxmgSP1Z93d/5ac7yVwp0MsKnEf/OrtDO36GGVcTUDdUumfvrs6nDh7kbGxt9UkC7xEwRXSwb6r7nj17yF4J0GVDHv7n3J014w4DvAZEVYb60t23dz2XIIaGuHSxVD2oiL8QQQ98+dPdXycit1rQZUG+8NrcXdrwH5m5i4CKZrpr99bu51tffvQolydK1acA/jxAUMSP7by555tExKsBXRLy5Jna3dq6xxlcJsI71pZ2f2xLx0sLvfTZ09x5LdUOAW633FMq0e9u2tR1/2pAc0hm3qgd9jiHHQB64QAmrK1r+yl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4fH2JO4RtWvw76rZt9nAPzpgqtYs1GiQZsiEtMfrkgFa4cB9huu1vrSv+/uvPH54SwaZcb+hC6voAmzyUMLYc5njGJWSX9e47vuVirLq6cqNu6DALTWp+w9mL3z0X+yhVzDMpy1sGmyy1rXblxnw+aBkD60VI8PMtOSz1r1iqOPqlmPHe/cv/cQ7j3wZRaPEWh7G7Gn25xU/OmC25tYWKuecqpyXKshS836kMOjKkCtdfrNUnbn/77GDUeOYW1H69HhdjfzK4rfgnbPawjHhzDFI8u1GPvSGM/G4ZDjt1E5xnADOA1AMmrshN+Pd4A54U2/l+HfAaqMPEeswBKaAAAAAElFTkSuQmCC"},45787:function(t){"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAACPVJREFUWEetmAmQFOUVx/+vu+eendlhLygWkCCSkjOCciShCrIgUAhiSjmCWqiJSSWahKgs4ailQIEqQ21iifEoyyIhahJiuBRCBEMgRwkLxGiywopSLKxEdtl7d45+8fU3PTM7w24PFl3V1dPTr7/v1/93fd2EPLbNh/h+NnkDmMvzMI8CdJh0WrZiGp3Pw75PE3IaYOMhvpES5n8AGE62Pa/THysrtAXXdk+udQpw5Zt8c9iLhWCMgQZPLIYLa2bSQ5sO8j0wzde/wEQXKiv0gU/s4kmRANbK/bqO+s5u1LAbL1ZNo3g+Y1qAVfv5saAXm4lYs2/qiqJ+VYVWvukgL4Fpbs9nsCybS5UVelnlbl5YEubXMq/FE3S6qQVzNs2nM07jUtVenhsIYBfAlOnvrhjVr55B5Rvfji8mpt84DXSV6w2VFfqAFTt5UXGYX5Xr9vgMIBanD35aQSOdxqX1+8waj5u/kmmoBtCaV8+kwk1/4dEU51PM7BivWTH458oKbcbKXfxwJGj+Ul3LRASudGj3PjWXft0XJD15IBHXNejZRgTiS6006md30gebD/IaZl4DZpfTEyev10HT5ldOp/fX70+85NLxYA++pFHCxLpVM/SqPgGfOmCaBKUOQ7RLb90x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KCf/ye7zIFocwubP3VxFRNY3DKdVfN6CMvPo+kZs/e8FnhJLQLO6R0YoCqCtouVuI5m1opxmJUt7pABbk3Ad6YfMG8HZkJkHtXRgQ30j5l/pQDjzhV0SRUDs3U4IrwscCuCjkBfVmobnZQ2YOdN1U9AelJndAGY2d+CRpnaM7YqiJBoXRVUW213C70Y84MHZgA/7XTq2EpF8qM/ZrjtgBqgk3CjTxMRoAreYJgYww6VpaDc01LkMHP28GZ0gorN9+eb/uGVBH2ZkwEYAAAAASUVORK5CYII="},4811:function(t,e,n){var i=n(22652);function r(){return"undefined"!=typeof Reflect&&Reflect.get?(t.exports=r=Reflect.get.bind(),t.exports.__esModule=!0,t.exports.default=t.exports):(t.exports=r=function(t,e,n){var r=i(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},t.exports.__esModule=!0,t.exports.default=t.exports),r.apply(this,arguments)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},22652:function(t,e,n){var i=n(34577);t.exports=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=i(t)););return t},t.exports.__esModule=!0,t.exports.default=t.exports}}]);