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__Classrooms__Lists__Progr...

1181 lines
2.3 MiB

!(function(){var lw=Object.defineProperty,uw=Object.defineProperties;var hw=Object.getOwnPropertyDescriptors;var ev=Object.getOwnPropertySymbols;var wx=Object.prototype.hasOwnProperty,Px=Object.prototype.propertyIsEnumerable;var Qy=Math.pow,xx=(Jn,pi,Dt)=>pi in Jn?lw(Jn,pi,{enumerable:!0,configurable:!0,writable:!0,value:Dt}):Jn[pi]=Dt,Do=(Jn,pi)=>{for(var Dt in pi||(pi={}))wx.call(pi,Dt)&&xx(Jn,Dt,pi[Dt]);if(ev)for(var Dt of ev(pi))Px.call(pi,Dt)&&xx(Jn,Dt,pi[Dt]);return Jn},Za=(Jn,pi)=>uw(Jn,hw(pi));var nv=(Jn,pi)=>{var Dt={};for(var yt in Jn)wx.call(Jn,yt)&&pi.indexOf(yt)<0&&(Dt[yt]=Jn[yt]);if(Jn!=null&&ev)for(var yt of ev(Jn))pi.indexOf(yt)<0&&Px.call(Jn,yt)&&(Dt[yt]=Jn[yt]);return Dt};var Cx=(Jn,pi,Dt)=>new Promise((yt,te)=>{var re=jt=>{try{be(Dt.next(jt))}catch(ge){te(ge)}},Fe=jt=>{try{be(Dt.throw(jt))}catch(ge){te(ge)}},be=jt=>jt.done?yt(jt.value):Promise.resolve(jt.value).then(re,Fe);be((Dt=Dt.apply(Jn,pi)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[4030],{87954:function(Jn,pi,Dt){"use strict";Dt.d(pi,{LB:function(){return Mi},g4:function(){return en},VK:function(){return mn},Cj:function(){return Ar},O1:function(){return cr},Zj:function(){return Hi}});var yt=Dt(59301),te=Dt(4676),re=Dt(35241);const Fe={display:"none"};function be(Zt){let{id:Gt,value:he}=Zt;return yt.createElement("div",{id:Gt,style:Fe},he)}function jt(Zt){let{id:Gt,announcement:he,ariaLiveType:Be="assertive"}=Zt;const rn={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return yt.createElement("div",{id:Gt,style:rn,role:"status","aria-live":Be,"aria-atomic":!0},he)}function ge(){const[Zt,Gt]=(0,yt.useState)("");return{announce:(0,yt.useCallback)(Be=>{Be!=null&&Gt(Be)},[]),announcement:Zt}}const Ze=(0,yt.createContext)(null);function Ce(Zt){const Gt=(0,yt.useContext)(Ze);(0,yt.useEffect)(()=>{if(!Gt)throw new Error("useDndMonitor must be used within a children of <DndContext>");return Gt(Zt)},[Zt,Gt])}function Mt(){const[Zt]=(0,yt.useState)(()=>new Set),Gt=(0,yt.useCallback)(Be=>(Zt.add(Be),()=>Zt.delete(Be)),[Zt]);return[(0,yt.useCallback)(Be=>{let{type:rn,event:ie}=Be;Zt.forEach(ke=>{var He;return(He=ke[rn])==null?void 0:He.call(ke,ie)})},[Zt]),Gt]}const Re={draggable:`
To pick up a draggable item, press the space bar.
While dragging, use the arrow keys to move the item.
Press space again to drop the item in its new position, or press escape to cancel.
`},Yt={onDragStart(Zt){let{active:Gt}=Zt;return"Picked up draggable item "+Gt.id+"."},onDragOver(Zt){let{active:Gt,over:he}=Zt;return he?"Draggable item "+Gt.id+" was moved over droppable area "+he.id+".":"Draggable item "+Gt.id+" is no longer over a droppable area."},onDragEnd(Zt){let{active:Gt,over:he}=Zt;return he?"Draggable item "+Gt.id+" was dropped over droppable area "+he.id:"Draggable item "+Gt.id+" was dropped."},onDragCancel(Zt){let{active:Gt}=Zt;return"Dragging was cancelled. Draggable item "+Gt.id+" was dropped."}};function We(Zt){let{announcements:Gt=Yt,container:he,hiddenTextDescribedById:Be,screenReaderInstructions:rn=Re}=Zt;const{announce:ie,announcement:ke}=ge(),He=(0,re.Ld)("DndLiveRegion"),[_e,hn]=(0,yt.useState)(!1);if((0,yt.useEffect)(()=>{hn(!0)},[]),Ce((0,yt.useMemo)(()=>({onDragStart(Et){let{active:qt}=Et;ie(Gt.onDragStart({active:qt}))},onDragMove(Et){let{active:qt,over:zt}=Et;Gt.onDragMove&&ie(Gt.onDragMove({active:qt,over:zt}))},onDragOver(Et){let{active:qt,over:zt}=Et;ie(Gt.onDragOver({active:qt,over:zt}))},onDragEnd(Et){let{active:qt,over:zt}=Et;ie(Gt.onDragEnd({active:qt,over:zt}))},onDragCancel(Et){let{active:qt,over:zt}=Et;ie(Gt.onDragCancel({active:qt,over:zt}))}}),[ie,Gt])),!_e)return null;const mi=yt.createElement(yt.Fragment,null,yt.createElement(be,{id:Be,value:rn.draggable}),yt.createElement(jt,{id:He,announcement:ke}));return he?(0,te.createPortal)(mi,he):mi}var Nt;(function(Zt){Zt.DragStart="dragStart",Zt.DragMove="dragMove",Zt.DragEnd="dragEnd",Zt.DragCancel="dragCancel",Zt.DragOver="dragOver",Zt.RegisterDroppable="registerDroppable",Zt.SetDroppableDisabled="setDroppableDisabled",Zt.UnregisterDroppable="unregisterDroppable"})(Nt||(Nt={}));function nt(){}function et(Zt,Gt){return useMemo(()=>({sensor:Zt,options:Gt!=null?Gt:{}}),[Zt,Gt])}function dt(){for(var Zt=arguments.length,Gt=new Array(Zt),he=0;he<Zt;he++)Gt[he]=arguments[he];return useMemo(()=>[...Gt].filter(Be=>Be!=null),[...Gt])}const lt=Object.freeze({x:0,y:0});function gt(Zt,Gt){return Math.sqrt(Math.pow(Zt.x-Gt.x,2)+Math.pow(Zt.y-Gt.y,2))}function mt(Zt,Gt){const he=getEventCoordinates(Zt);if(!he)return"0 0";const Be={x:(he.x-Gt.left)/Gt.width*100,y:(he.y-Gt.top)/Gt.height*100};return Be.x+"% "+Be.y+"%"}function St(Zt,Gt){let{data:{value:he}}=Zt,{data:{value:Be}}=Gt;return he-Be}function bt(Zt,Gt){let{data:{value:he}}=Zt,{data:{value:Be}}=Gt;return Be-he}function It(Zt){let{left:Gt,top:he,height:Be,width:rn}=Zt;return[{x:Gt,y:he},{x:Gt+rn,y:he},{x:Gt,y:he+Be},{x:Gt+rn,y:he+Be}]}function Ht(Zt,Gt){if(!Zt||Zt.length===0)return null;const[he]=Zt;return Gt?he[Gt]:he}function se(Zt,Gt,he){return Gt===void 0&&(Gt=Zt.left),he===void 0&&(he=Zt.top),{x:Gt+Zt.width*.5,y:he+Zt.height*.5}}const Vt=Zt=>{let{collisionRect:Gt,droppableRects:he,droppableContainers:Be}=Zt;const rn=se(Gt,Gt.left,Gt.top),ie=[];for(const ke of Be){const{id:He}=ke,_e=he.get(He);if(_e){const hn=gt(se(_e),rn);ie.push({id:He,data:{droppableContainer:ke,value:hn}})}}return ie.sort(St)},Jt=Zt=>{let{collisionRect:Gt,droppableRects:he,droppableContainers:Be}=Zt;const rn=It(Gt),ie=[];for(const ke of Be){const{id:He}=ke,_e=he.get(He);if(_e){const hn=It(_e),mi=rn.reduce((qt,zt,ae)=>qt+gt(hn[ae],zt),0),Et=Number((mi/4).toFixed(4));ie.push({id:He,data:{droppableContainer:ke,value:Et}})}}return ie.sort(St)};function Ee(Zt,Gt){const he=Math.max(Gt.top,Zt.top),Be=Math.max(Gt.left,Zt.left),rn=Math.min(Gt.left+Gt.width,Zt.left+Zt.width),ie=Math.min(Gt.top+Gt.height,Zt.top+Zt.height),ke=rn-Be,He=ie-he;if(Be<rn&&he<ie){const _e=Gt.width*Gt.height,hn=Zt.width*Zt.height,mi=ke*He,Et=mi/(_e+hn-mi);return Number(Et.toFixed(4))}return 0}const we=Zt=>{let{collisionRect:Gt,droppableRects:he,droppableContainers:Be}=Zt;const rn=[];for(const ie of Be){const{id:ke}=ie,He=he.get(ke);if(He){const _e=Ee(He,Gt);_e>0&&rn.push({id:ke,data:{droppableContainer:ie,value:_e}})}}return rn.sort(bt)};function De(Zt,Gt){const{top:he,left:Be,bottom:rn,right:ie}=Gt;return he<=Zt.y&&Zt.y<=rn&&Be<=Zt.x&&Zt.x<=ie}const Le=Zt=>{let{droppableContainers:Gt,droppableRects:he,pointerCoordinates:Be}=Zt;if(!Be)return[];const rn=[];for(const ie of Gt){const{id:ke}=ie,He=he.get(ke);if(He&&De(Be,He)){const hn=It(He).reduce((Et,qt)=>Et+gt(Be,qt),0),mi=Number((hn/4).toFixed(4));rn.push({id:ke,data:{droppableContainer:ie,value:mi}})}}return rn.sort(St)};function sn(Zt,Gt,he){return Za(Do({},Zt),{scaleX:Gt&&he?Gt.width/he.width:1,scaleY:Gt&&he?Gt.height/he.height:1})}function Fn(Zt,Gt){return Zt&&Gt?{x:Zt.left-Gt.left,y:Zt.top-Gt.top}:lt}function fn(Zt){return function(he){for(var Be=arguments.length,rn=new Array(Be>1?Be-1:0),ie=1;ie<Be;ie++)rn[ie-1]=arguments[ie];return rn.reduce((ke,He)=>Za(Do({},ke),{top:ke.top+Zt*He.y,bottom:ke.bottom+Zt*He.y,left:ke.left+Zt*He.x,right:ke.right+Zt*He.x}),Do({},he))}}const Ge=fn(1);function an(Zt){if(Zt.startsWith("matrix3d(")){const Gt=Zt.slice(9,-1).split(/, /);return{x:+Gt[12],y:+Gt[13],scaleX:+Gt[0],scaleY:+Gt[5]}}else if(Zt.startsWith("matrix(")){const Gt=Zt.slice(7,-1).split(/, /);return{x:+Gt[4],y:+Gt[5],scaleX:+Gt[0],scaleY:+Gt[3]}}return null}function Se(Zt,Gt,he){const Be=an(Gt);if(!Be)return Zt;const{scaleX:rn,scaleY:ie,x:ke,y:He}=Be,_e=Zt.left-ke-(1-rn)*parseFloat(he),hn=Zt.top-He-(1-ie)*parseFloat(he.slice(he.indexOf(" ")+1)),mi=rn?Zt.width/rn:Zt.width,Et=ie?Zt.height/ie:Zt.height;return{width:mi,height:Et,top:hn,right:_e+mi,bottom:hn+Et,left:_e}}const Qt={ignoreTransform:!1};function mn(Zt,Gt){Gt===void 0&&(Gt=Qt);let he=Zt.getBoundingClientRect();if(Gt.ignoreTransform){const{transform:hn,transformOrigin:mi}=(0,re.Jj)(Zt).getComputedStyle(Zt);hn&&(he=Se(he,hn,mi))}const{top:Be,left:rn,width:ie,height:ke,bottom:He,right:_e}=he;return{top:Be,left:rn,width:ie,height:ke,bottom:He,right:_e}}function ii(Zt){return mn(Zt,{ignoreTransform:!0})}function jn(Zt){const Gt=Zt.innerWidth,he=Zt.innerHeight;return{top:0,left:0,right:Gt,bottom:he,width:Gt,height:he}}function ln(Zt,Gt){return Gt===void 0&&(Gt=(0,re.Jj)(Zt).getComputedStyle(Zt)),Gt.position==="fixed"}function qn(Zt,Gt){Gt===void 0&&(Gt=(0,re.Jj)(Zt).getComputedStyle(Zt));const he=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(rn=>{const ie=Gt[rn];return typeof ie=="string"?he.test(ie):!1})}function Dn(Zt,Gt){const he=[];function Be(rn){if(Gt!=null&&he.length>=Gt||!rn)return he;if((0,re.qk)(rn)&&rn.scrollingElement!=null&&!he.includes(rn.scrollingElement))return he.push(rn.scrollingElement),he;if(!(0,re.Re)(rn)||(0,re.vZ)(rn)||he.includes(rn))return he;const ie=(0,re.Jj)(Zt).getComputedStyle(rn);return rn!==Zt&&qn(rn,ie)&&he.push(rn),ln(rn,ie)?he:Be(rn.parentNode)}return Zt?Be(Zt):he}function fi(Zt){const[Gt]=Dn(Zt,1);return Gt!=null?Gt:null}function Ve(Zt){return!re.Nq||!Zt?null:(0,re.FJ)(Zt)?Zt:(0,re.UG)(Zt)?(0,re.qk)(Zt)||Zt===(0,re.r3)(Zt).scrollingElement?window:(0,re.Re)(Zt)?Zt:null:null}function On(Zt){return(0,re.FJ)(Zt)?Zt.scrollX:Zt.scrollLeft}function Pe(Zt){return(0,re.FJ)(Zt)?Zt.scrollY:Zt.scrollTop}function Ai(Zt){return{x:On(Zt),y:Pe(Zt)}}var Xn;(function(Zt){Zt[Zt.Forward=1]="Forward",Zt[Zt.Backward=-1]="Backward"})(Xn||(Xn={}));function Rt(Zt){return!re.Nq||!Zt?!1:Zt===document.scrollingElement}function At(Zt){const Gt={x:0,y:0},he=Rt(Zt)?{height:window.innerHeight,width:window.innerWidth}:{height:Zt.clientHeight,width:Zt.clientWidth},Be={x:Zt.scrollWidth-he.width,y:Zt.scrollHeight-he.height},rn=Zt.scrollTop<=Gt.y,ie=Zt.scrollLeft<=Gt.x,ke=Zt.scrollTop>=Be.y,He=Zt.scrollLeft>=Be.x;return{isTop:rn,isLeft:ie,isBottom:ke,isRight:He,maxScroll:Be,minScroll:Gt}}const wt={x:.2,y:.2};function Tt(Zt,Gt,he,Be,rn){let{top:ie,left:ke,right:He,bottom:_e}=he;Be===void 0&&(Be=10),rn===void 0&&(rn=wt);const{isTop:hn,isBottom:mi,isLeft:Et,isRight:qt}=At(Zt),zt={x:0,y:0},ae={x:0,y:0},de={height:Gt.height*rn.y,width:Gt.width*rn.x};return!hn&&ie<=Gt.top+de.height?(zt.y=Xn.Backward,ae.y=Be*Math.abs((Gt.top+de.height-ie)/de.height)):!mi&&_e>=Gt.bottom-de.height&&(zt.y=Xn.Forward,ae.y=Be*Math.abs((Gt.bottom-de.height-_e)/de.height)),!qt&&He>=Gt.right-de.width?(zt.x=Xn.Forward,ae.x=Be*Math.abs((Gt.right-de.width-He)/de.width)):!Et&&ke<=Gt.left+de.width&&(zt.x=Xn.Backward,ae.x=Be*Math.abs((Gt.left+de.width-ke)/de.width)),{direction:zt,speed:ae}}function Kt(Zt){if(Zt===document.scrollingElement){const{innerWidth:ie,innerHeight:ke}=window;return{top:0,left:0,right:ie,bottom:ke,width:ie,height:ke}}const{top:Gt,left:he,right:Be,bottom:rn}=Zt.getBoundingClientRect();return{top:Gt,left:he,right:Be,bottom:rn,width:Zt.clientWidth,height:Zt.clientHeight}}function kt(Zt){return Zt.reduce((Gt,he)=>(0,re.IH)(Gt,Ai(he)),lt)}function $t(Zt){return Zt.reduce((Gt,he)=>Gt+On(he),0)}function un(Zt){return Zt.reduce((Gt,he)=>Gt+Pe(he),0)}function Ie(Zt,Gt){if(Gt===void 0&&(Gt=mn),!Zt)return;const{top:he,left:Be,bottom:rn,right:ie}=Gt(Zt);fi(Zt)&&(rn<=0||ie<=0||he>=window.innerHeight||Be>=window.innerWidth)&&Zt.scrollIntoView({block:"center",inline:"center"})}const Ue=[["x",["left","right"],$t],["y",["top","bottom"],un]];class ne{constructor(Gt,he){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const Be=Dn(he),rn=kt(Be);this.rect=Do({},Gt),this.width=Gt.width,this.height=Gt.height;for(const[ie,ke,He]of Ue)for(const _e of ke)Object.defineProperty(this,_e,{get:()=>{const hn=He(Be),mi=rn[ie]-hn;return this.rect[_e]+mi},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Oe{constructor(Gt){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(he=>{var Be;return(Be=this.target)==null?void 0:Be.removeEventListener(...he)})},this.target=Gt}add(Gt,he,Be){var rn;(rn=this.target)==null||rn.addEventListener(Gt,he,Be),this.listeners.push([Gt,he,Be])}}function Ne(Zt){const{EventTarget:Gt}=(0,re.Jj)(Zt);return Zt instanceof Gt?Zt:(0,re.r3)(Zt)}function Xe(Zt,Gt){const he=Math.abs(Zt.x),Be=Math.abs(Zt.y);return typeof Gt=="number"?Math.sqrt(Qy(he,2)+Qy(Be,2))>Gt:"x"in Gt&&"y"in Gt?he>Gt.x&&Be>Gt.y:"x"in Gt?he>Gt.x:"y"in Gt?Be>Gt.y:!1}var En;(function(Zt){Zt.Click="click",Zt.DragStart="dragstart",Zt.Keydown="keydown",Zt.ContextMenu="contextmenu",Zt.Resize="resize",Zt.SelectionChange="selectionchange",Zt.VisibilityChange="visibilitychange"})(En||(En={}));function In(Zt){Zt.preventDefault()}function An(Zt){Zt.stopPropagation()}var en;(function(Zt){Zt.Space="Space",Zt.Down="ArrowDown",Zt.Right="ArrowRight",Zt.Left="ArrowLeft",Zt.Up="ArrowUp",Zt.Esc="Escape",Zt.Enter="Enter",Zt.Tab="Tab"})(en||(en={}));const ze={start:[en.Space,en.Enter],cancel:[en.Esc],end:[en.Space,en.Enter,en.Tab]},qe=(Zt,Gt)=>{let{currentCoordinates:he}=Gt;switch(Zt.code){case en.Right:return Za(Do({},he),{x:he.x+25});case en.Left:return Za(Do({},he),{x:he.x-25});case en.Down:return Za(Do({},he),{y:he.y+25});case en.Up:return Za(Do({},he),{y:he.y-25})}};class pn{constructor(Gt){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=Gt;const{event:{target:he}}=Gt;this.props=Gt,this.listeners=new Oe((0,re.r3)(he)),this.windowListeners=new Oe((0,re.Jj)(he)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(En.Resize,this.handleCancel),this.windowListeners.add(En.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(En.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:Gt,onStart:he}=this.props,Be=Gt.node.current;Be&&Ie(Be),he(lt)}handleKeyDown(Gt){if((0,re.vd)(Gt)){const{active:he,context:Be,options:rn}=this.props,{keyboardCodes:ie=ze,coordinateGetter:ke=qe,scrollBehavior:He="smooth"}=rn,{code:_e}=Gt;if(ie.end.includes(_e)){this.handleEnd(Gt);return}if(ie.cancel.includes(_e)){this.handleCancel(Gt);return}const{collisionRect:hn}=Be.current,mi=hn?{x:hn.left,y:hn.top}:lt;this.referenceCoordinates||(this.referenceCoordinates=mi);const Et=ke(Gt,{active:he,context:Be.current,currentCoordinates:mi});if(Et){const qt=(0,re.$X)(Et,mi),zt={x:0,y:0},{scrollableAncestors:ae}=Be.current;for(const de of ae){const je=Gt.code,{isTop:Ye,isRight:tn,isLeft:Ln,isBottom:Bn,maxScroll:Pn,minScroll:ri}=At(de),Si=Kt(de),ue={x:Math.min(je===en.Right?Si.right-Si.width/2:Si.right,Math.max(je===en.Right?Si.left:Si.left+Si.width/2,Et.x)),y:Math.min(je===en.Down?Si.bottom-Si.height/2:Si.bottom,Math.max(je===en.Down?Si.top:Si.top+Si.height/2,Et.y))},Un=je===en.Right&&!tn||je===en.Left&&!Ln,si=je===en.Down&&!Bn||je===en.Up&&!Ye;if(Un&&ue.x!==Et.x){const zn=de.scrollLeft+qt.x,ci=je===en.Right&&zn<=Pn.x||je===en.Left&&zn>=ri.x;if(ci&&!qt.y){de.scrollTo({left:zn,behavior:He});return}ci?zt.x=de.scrollLeft-zn:zt.x=je===en.Right?de.scrollLeft-Pn.x:de.scrollLeft-ri.x,zt.x&&de.scrollBy({left:-zt.x,behavior:He});break}else if(si&&ue.y!==Et.y){const zn=de.scrollTop+qt.y,ci=je===en.Down&&zn<=Pn.y||je===en.Up&&zn>=ri.y;if(ci&&!qt.x){de.scrollTo({top:zn,behavior:He});return}ci?zt.y=de.scrollTop-zn:zt.y=je===en.Down?de.scrollTop-Pn.y:de.scrollTop-ri.y,zt.y&&de.scrollBy({top:-zt.y,behavior:He});break}}this.handleMove(Gt,(0,re.IH)((0,re.$X)(Et,this.referenceCoordinates),zt))}}}handleMove(Gt,he){const{onMove:Be}=this.props;Gt.preventDefault(),Be(he)}handleEnd(Gt){const{onEnd:he}=this.props;Gt.preventDefault(),this.detach(),he()}handleCancel(Gt){const{onCancel:he}=this.props;Gt.preventDefault(),this.detach(),he()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}pn.activators=[{eventName:"onKeyDown",handler:(Zt,Gt,he)=>{let{keyboardCodes:Be=ze,onActivation:rn}=Gt,{active:ie}=he;const{code:ke}=Zt.nativeEvent;if(Be.start.includes(ke)){const He=ie.activatorNode.current;return He&&Zt.target!==He?!1:(Zt.preventDefault(),rn==null||rn({event:Zt.nativeEvent}),!0)}return!1}}];function bn(Zt){return!!(Zt&&"distance"in Zt)}function Yn(Zt){return!!(Zt&&"delay"in Zt)}class ti{constructor(Gt,he,Be){var rn;Be===void 0&&(Be=Ne(Gt.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=Gt,this.events=he;const{event:ie}=Gt,{target:ke}=ie;this.props=Gt,this.events=he,this.document=(0,re.r3)(ke),this.documentListeners=new Oe(this.document),this.listeners=new Oe(Be),this.windowListeners=new Oe((0,re.Jj)(ke)),this.initialCoordinates=(rn=(0,re.DC)(ie))!=null?rn:lt,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:Gt,props:{options:{activationConstraint:he,bypassActivationConstraint:Be}}}=this;if(this.listeners.add(Gt.move.name,this.handleMove,{passive:!1}),this.listeners.add(Gt.end.name,this.handleEnd),Gt.cancel&&this.listeners.add(Gt.cancel.name,this.handleCancel),this.windowListeners.add(En.Resize,this.handleCancel),this.windowListeners.add(En.DragStart,In),this.windowListeners.add(En.VisibilityChange,this.handleCancel),this.windowListeners.add(En.ContextMenu,In),this.documentListeners.add(En.Keydown,this.handleKeydown),he){if(Be!=null&&Be({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Yn(he)){this.timeoutId=setTimeout(this.handleStart,he.delay),this.handlePending(he);return}if(bn(he)){this.handlePending(he);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(Gt,he){const{active:Be,onPending:rn}=this.props;rn(Be,Gt,this.initialCoordinates,he)}handleStart(){const{initialCoordinates:Gt}=this,{onStart:he}=this.props;Gt&&(this.activated=!0,this.documentListeners.add(En.Click,An,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(En.SelectionChange,this.removeTextSelection),he(Gt))}handleMove(Gt){var he;const{activated:Be,initialCoordinates:rn,props:ie}=this,{onMove:ke,options:{activationConstraint:He}}=ie;if(!rn)return;const _e=(he=(0,re.DC)(Gt))!=null?he:lt,hn=(0,re.$X)(rn,_e);if(!Be&&He){if(bn(He)){if(He.tolerance!=null&&Xe(hn,He.tolerance))return this.handleCancel();if(Xe(hn,He.distance))return this.handleStart()}if(Yn(He)&&Xe(hn,He.tolerance))return this.handleCancel();this.handlePending(He,hn);return}Gt.cancelable&&Gt.preventDefault(),ke(_e)}handleEnd(){const{onAbort:Gt,onEnd:he}=this.props;this.detach(),this.activated||Gt(this.props.active),he()}handleCancel(){const{onAbort:Gt,onCancel:he}=this.props;this.detach(),this.activated||Gt(this.props.active),he()}handleKeydown(Gt){Gt.code===en.Esc&&this.handleCancel()}removeTextSelection(){var Gt;(Gt=this.document.getSelection())==null||Gt.removeAllRanges()}}const yi={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class vn extends ti{constructor(Gt){const{event:he}=Gt,Be=(0,re.r3)(he.target);super(Gt,yi,Be)}}vn.activators=[{eventName:"onPointerDown",handler:(Zt,Gt)=>{let{nativeEvent:he}=Zt,{onActivation:Be}=Gt;return!he.isPrimary||he.button!==0?!1:(Be==null||Be({event:he}),!0)}}];const Pi={move:{name:"mousemove"},end:{name:"mouseup"}};var Ki;(function(Zt){Zt[Zt.RightClick=2]="RightClick"})(Ki||(Ki={}));class pr extends ti{constructor(Gt){super(Gt,Pi,(0,re.r3)(Gt.event.target))}}pr.activators=[{eventName:"onMouseDown",handler:(Zt,Gt)=>{let{nativeEvent:he}=Zt,{onActivation:Be}=Gt;return he.button===Ki.RightClick?!1:(Be==null||Be({event:he}),!0)}}];const or={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class ir extends ti{constructor(Gt){super(Gt,or)}static setup(){return window.addEventListener(or.move.name,Gt,{capture:!1,passive:!1}),function(){window.removeEventListener(or.move.name,Gt)};function Gt(){}}}ir.activators=[{eventName:"onTouchStart",handler:(Zt,Gt)=>{let{nativeEvent:he}=Zt,{onActivation:Be}=Gt;const{touches:rn}=he;return rn.length>1?!1:(Be==null||Be({event:he}),!0)}}];var vr;(function(Zt){Zt[Zt.Pointer=0]="Pointer",Zt[Zt.DraggableRect=1]="DraggableRect"})(vr||(vr={}));var ur;(function(Zt){Zt[Zt.TreeOrder=0]="TreeOrder",Zt[Zt.ReversedTreeOrder=1]="ReversedTreeOrder"})(ur||(ur={}));function hr(Zt){let{acceleration:Gt,activator:he=vr.Pointer,canScroll:Be,draggingRect:rn,enabled:ie,interval:ke=5,order:He=ur.TreeOrder,pointerCoordinates:_e,scrollableAncestors:hn,scrollableAncestorRects:mi,delta:Et,threshold:qt}=Zt;const zt=xr({delta:Et,disabled:!ie}),[ae,de]=(0,re.Yz)(),je=(0,yt.useRef)({x:0,y:0}),Ye=(0,yt.useRef)({x:0,y:0}),tn=(0,yt.useMemo)(()=>{switch(he){case vr.Pointer:return _e?{top:_e.y,bottom:_e.y,left:_e.x,right:_e.x}:null;case vr.DraggableRect:return rn}},[he,rn,_e]),Ln=(0,yt.useRef)(null),Bn=(0,yt.useCallback)(()=>{const ri=Ln.current;if(!ri)return;const Si=je.current.x*Ye.current.x,ue=je.current.y*Ye.current.y;ri.scrollBy(Si,ue)},[]),Pn=(0,yt.useMemo)(()=>He===ur.TreeOrder?[...hn].reverse():hn,[He,hn]);(0,yt.useEffect)(()=>{if(!ie||!hn.length||!tn){de();return}for(const ri of Pn){if((Be==null?void 0:Be(ri))===!1)continue;const Si=hn.indexOf(ri),ue=mi[Si];if(!ue)continue;const{direction:Un,speed:si}=Tt(ri,ue,tn,Gt,qt);for(const zn of["x","y"])zt[zn][Un[zn]]||(si[zn]=0,Un[zn]=0);if(si.x>0||si.y>0){de(),Ln.current=ri,ae(Bn,ke),je.current=si,Ye.current=Un;return}}je.current={x:0,y:0},Ye.current={x:0,y:0},de()},[Gt,Bn,Be,de,ie,ke,JSON.stringify(tn),JSON.stringify(zt),ae,hn,Pn,mi,JSON.stringify(qt)])}const Ji={x:{[Xn.Backward]:!1,[Xn.Forward]:!1},y:{[Xn.Backward]:!1,[Xn.Forward]:!1}};function xr(Zt){let{delta:Gt,disabled:he}=Zt;const Be=(0,re.D9)(Gt);return(0,re.Gj)(rn=>{if(he||!Be||!rn)return Ji;const ie={x:Math.sign(Gt.x-Be.x),y:Math.sign(Gt.y-Be.y)};return{x:{[Xn.Backward]:rn.x[Xn.Backward]||ie.x===-1,[Xn.Forward]:rn.x[Xn.Forward]||ie.x===1},y:{[Xn.Backward]:rn.y[Xn.Backward]||ie.y===-1,[Xn.Forward]:rn.y[Xn.Forward]||ie.y===1}}},[he,Gt,Be])}function Ct(Zt,Gt){const he=Gt!=null?Zt.get(Gt):void 0,Be=he?he.node.current:null;return(0,re.Gj)(rn=>{var ie;return Gt==null?null:(ie=Be!=null?Be:rn)!=null?ie:null},[Be,Gt])}function yn(Zt,Gt){return(0,yt.useMemo)(()=>Zt.reduce((he,Be)=>{const{sensor:rn}=Be,ie=rn.activators.map(ke=>({eventName:ke.eventName,handler:Gt(ke.handler,Be)}));return[...he,...ie]},[]),[Zt,Gt])}var Zn;(function(Zt){Zt[Zt.Always=0]="Always",Zt[Zt.BeforeDragging=1]="BeforeDragging",Zt[Zt.WhileDragging=2]="WhileDragging"})(Zn||(Zn={}));var dr;(function(Zt){Zt.Optimized="optimized"})(dr||(dr={}));const sr=new Map;function Oi(Zt,Gt){let{dragging:he,dependencies:Be,config:rn}=Gt;const[ie,ke]=(0,yt.useState)(null),{frequency:He,measure:_e,strategy:hn}=rn,mi=(0,yt.useRef)(Zt),Et=je(),qt=(0,re.Ey)(Et),zt=(0,yt.useCallback)(function(Ye){Ye===void 0&&(Ye=[]),!qt.current&&ke(tn=>tn===null?Ye:tn.concat(Ye.filter(Ln=>!tn.includes(Ln))))},[qt]),ae=(0,yt.useRef)(null),de=(0,re.Gj)(Ye=>{if(Et&&!he)return sr;if(!Ye||Ye===sr||mi.current!==Zt||ie!=null){const tn=new Map;for(let Ln of Zt){if(!Ln)continue;if(ie&&ie.length>0&&!ie.includes(Ln.id)&&Ln.rect.current){tn.set(Ln.id,Ln.rect.current);continue}const Bn=Ln.node.current,Pn=Bn?new ne(_e(Bn),Bn):null;Ln.rect.current=Pn,Pn&&tn.set(Ln.id,Pn)}return tn}return Ye},[Zt,ie,he,Et,_e]);return(0,yt.useEffect)(()=>{mi.current=Zt},[Zt]),(0,yt.useEffect)(()=>{Et||zt()},[he,Et]),(0,yt.useEffect)(()=>{ie&&ie.length>0&&ke(null)},[JSON.stringify(ie)]),(0,yt.useEffect)(()=>{Et||typeof He!="number"||ae.current!==null||(ae.current=setTimeout(()=>{zt(),ae.current=null},He))},[He,Et,zt,...Be]),{droppableRects:de,measureDroppableContainers:zt,measuringScheduled:ie!=null};function je(){switch(hn){case Zn.Always:return!1;case Zn.BeforeDragging:return he;default:return!he}}}function Nn(Zt,Gt){return(0,re.Gj)(he=>Zt?he||(typeof Gt=="function"?Gt(Zt):Zt):null,[Gt,Zt])}function Cn(Zt,Gt){return Nn(Zt,Gt)}function kn(Zt){let{callback:Gt,disabled:he}=Zt;const Be=(0,re.zX)(Gt),rn=(0,yt.useMemo)(()=>{if(he||typeof window=="undefined"||typeof window.MutationObserver=="undefined")return;const{MutationObserver:ie}=window;return new ie(Be)},[Be,he]);return(0,yt.useEffect)(()=>()=>rn==null?void 0:rn.disconnect(),[rn]),rn}function ve(Zt){let{callback:Gt,disabled:he}=Zt;const Be=(0,re.zX)(Gt),rn=(0,yt.useMemo)(()=>{if(he||typeof window=="undefined"||typeof window.ResizeObserver=="undefined")return;const{ResizeObserver:ie}=window;return new ie(Be)},[he]);return(0,yt.useEffect)(()=>()=>rn==null?void 0:rn.disconnect(),[rn]),rn}function ye(Zt){return new ne(mn(Zt),Zt)}function xe(Zt,Gt,he){Gt===void 0&&(Gt=ye);const[Be,rn]=(0,yt.useState)(null);function ie(){rn(_e=>{if(!Zt)return null;if(Zt.isConnected===!1){var hn;return(hn=_e!=null?_e:he)!=null?hn:null}const mi=Gt(Zt);return JSON.stringify(_e)===JSON.stringify(mi)?_e:mi})}const ke=kn({callback(_e){if(Zt)for(const hn of _e){const{type:mi,target:Et}=hn;if(mi==="childList"&&Et instanceof HTMLElement&&Et.contains(Zt)){ie();break}}}}),He=ve({callback:ie});return(0,re.LI)(()=>{ie(),Zt?(He==null||He.observe(Zt),ke==null||ke.observe(document.body,{childList:!0,subtree:!0})):(He==null||He.disconnect(),ke==null||ke.disconnect())},[Zt]),Be}function Kn(Zt){const Gt=Nn(Zt);return Fn(Zt,Gt)}const $n=[];function ui(Zt){const Gt=(0,yt.useRef)(Zt),he=(0,re.Gj)(Be=>Zt?Be&&Be!==$n&&Zt&&Gt.current&&Zt.parentNode===Gt.current.parentNode?Be:Dn(Zt):$n,[Zt]);return(0,yt.useEffect)(()=>{Gt.current=Zt},[Zt]),he}function Sn(Zt){const[Gt,he]=(0,yt.useState)(null),Be=(0,yt.useRef)(Zt),rn=(0,yt.useCallback)(ie=>{const ke=Ve(ie.target);ke&&he(He=>He?(He.set(ke,Ai(ke)),new Map(He)):null)},[]);return(0,yt.useEffect)(()=>{const ie=Be.current;if(Zt!==ie){ke(ie);const He=Zt.map(_e=>{const hn=Ve(_e);return hn?(hn.addEventListener("scroll",rn,{passive:!0}),[hn,Ai(hn)]):null}).filter(_e=>_e!=null);he(He.length?new Map(He):null),Be.current=Zt}return()=>{ke(Zt),ke(ie)};function ke(He){He.forEach(_e=>{const hn=Ve(_e);hn==null||hn.removeEventListener("scroll",rn)})}},[rn,Zt]),(0,yt.useMemo)(()=>Zt.length?Gt?Array.from(Gt.values()).reduce((ie,ke)=>(0,re.IH)(ie,ke),lt):kt(Zt):lt,[Zt,Gt])}function oi(Zt,Gt){Gt===void 0&&(Gt=[]);const he=(0,yt.useRef)(null);return(0,yt.useEffect)(()=>{he.current=null},Gt),(0,yt.useEffect)(()=>{const Be=Zt!==lt;Be&&!he.current&&(he.current=Zt),!Be&&he.current&&(he.current=null)},[Zt]),he.current?(0,re.$X)(Zt,he.current):lt}function fe(Zt){(0,yt.useEffect)(()=>{if(!re.Nq)return;const Gt=Zt.map(he=>{let{sensor:Be}=he;return Be.setup==null?void 0:Be.setup()});return()=>{for(const he of Gt)he==null||he()}},Zt.map(Gt=>{let{sensor:he}=Gt;return he}))}function Te(Zt,Gt){return(0,yt.useMemo)(()=>Zt.reduce((he,Be)=>{let{eventName:rn,handler:ie}=Be;return he[rn]=ke=>{ie(ke,Gt)},he},{}),[Zt,Gt])}function hi(Zt){return(0,yt.useMemo)(()=>Zt?jn(Zt):null,[Zt])}const ee=[];function nn(Zt,Gt){Gt===void 0&&(Gt=mn);const[he]=Zt,Be=hi(he?(0,re.Jj)(he):null),[rn,ie]=(0,yt.useState)(ee);function ke(){ie(()=>Zt.length?Zt.map(_e=>Rt(_e)?Be:new ne(Gt(_e),_e)):ee)}const He=ve({callback:ke});return(0,re.LI)(()=>{He==null||He.disconnect(),ke(),Zt.forEach(_e=>He==null?void 0:He.observe(_e))},[Zt]),rn}function Vn(Zt){if(!Zt)return null;if(Zt.children.length>1)return Zt;const Gt=Zt.children[0];return(0,re.Re)(Gt)?Gt:Zt}function _n(Zt){let{measure:Gt}=Zt;const[he,Be]=(0,yt.useState)(null),rn=(0,yt.useCallback)(hn=>{for(const{target:mi}of hn)if((0,re.Re)(mi)){Be(Et=>{const qt=Gt(mi);return Et?Za(Do({},Et),{width:qt.width,height:qt.height}):qt});break}},[Gt]),ie=ve({callback:rn}),ke=(0,yt.useCallback)(hn=>{const mi=Vn(hn);ie==null||ie.disconnect(),mi&&(ie==null||ie.observe(mi)),Be(mi?Gt(mi):null)},[Gt,ie]),[He,_e]=(0,re.wm)(ke);return(0,yt.useMemo)(()=>({nodeRef:He,rect:he,setRef:_e}),[he,He,_e])}const Ke=[{sensor:vn,options:{}},{sensor:pn,options:{}}],Gn={current:{}},ai={draggable:{measure:ii},droppable:{measure:ii,strategy:Zn.WhileDragging,frequency:dr.Optimized},dragOverlay:{measure:mn}};class ni extends Map{get(Gt){var he;return Gt!=null&&(he=super.get(Gt))!=null?he:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(Gt=>{let{disabled:he}=Gt;return!he})}getNodeFor(Gt){var he,Be;return(he=(Be=this.get(Gt))==null?void 0:Be.node.current)!=null?he:void 0}}const ki={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new ni,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:nt},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:ai,measureDroppableContainers:nt,windowRect:null,measuringScheduled:!1},xi={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:nt,draggableNodes:new Map,over:null,measureDroppableContainers:nt},gi=(0,yt.createContext)(xi),Li=(0,yt.createContext)(ki);function Zi(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new ni}}}function tr(Zt,Gt){switch(Gt.type){case Nt.DragStart:return Za(Do({},Zt),{draggable:Za(Do({},Zt.draggable),{initialCoordinates:Gt.initialCoordinates,active:Gt.active})});case Nt.DragMove:return Zt.draggable.active==null?Zt:Za(Do({},Zt),{draggable:Za(Do({},Zt.draggable),{translate:{x:Gt.coordinates.x-Zt.draggable.initialCoordinates.x,y:Gt.coordinates.y-Zt.draggable.initialCoordinates.y}})});case Nt.DragEnd:case Nt.DragCancel:return Za(Do({},Zt),{draggable:Za(Do({},Zt.draggable),{active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}})});case Nt.RegisterDroppable:{const{element:he}=Gt,{id:Be}=he,rn=new ni(Zt.droppable.containers);return rn.set(Be,he),Za(Do({},Zt),{droppable:Za(Do({},Zt.droppable),{containers:rn})})}case Nt.SetDroppableDisabled:{const{id:he,key:Be,disabled:rn}=Gt,ie=Zt.droppable.containers.get(he);if(!ie||Be!==ie.key)return Zt;const ke=new ni(Zt.droppable.containers);return ke.set(he,Za(Do({},ie),{disabled:rn})),Za(Do({},Zt),{droppable:Za(Do({},Zt.droppable),{containers:ke})})}case Nt.UnregisterDroppable:{const{id:he,key:Be}=Gt,rn=Zt.droppable.containers.get(he);if(!rn||Be!==rn.key)return Zt;const ie=new ni(Zt.droppable.containers);return ie.delete(he),Za(Do({},Zt),{droppable:Za(Do({},Zt.droppable),{containers:ie})})}default:return Zt}}function zi(Zt){let{disabled:Gt}=Zt;const{active:he,activatorEvent:Be,draggableNodes:rn}=(0,yt.useContext)(gi),ie=(0,re.D9)(Be),ke=(0,re.D9)(he==null?void 0:he.id);return(0,yt.useEffect)(()=>{if(!Gt&&!Be&&ie&&ke!=null){if(!(0,re.vd)(ie)||document.activeElement===ie.target)return;const He=rn.get(ke);if(!He)return;const{activatorNode:_e,node:hn}=He;if(!_e.current&&!hn.current)return;requestAnimationFrame(()=>{for(const mi of[_e.current,hn.current]){if(!mi)continue;const Et=(0,re.so)(mi);if(Et){Et.focus();break}}})}},[Be,Gt,rn,ke,ie]),null}function wn(Zt,Gt){let rn=Gt,{transform:he}=rn,Be=nv(rn,["transform"]);return Zt!=null&&Zt.length?Zt.reduce((ie,ke)=>ke(Do({transform:ie},Be)),he):he}function Rr(Zt){return(0,yt.useMemo)(()=>({draggable:Do(Do({},ai.draggable),Zt==null?void 0:Zt.draggable),droppable:Do(Do({},ai.droppable),Zt==null?void 0:Zt.droppable),dragOverlay:Do(Do({},ai.dragOverlay),Zt==null?void 0:Zt.dragOverlay)}),[Zt==null?void 0:Zt.draggable,Zt==null?void 0:Zt.droppable,Zt==null?void 0:Zt.dragOverlay])}function Lr(Zt){let{activeNode:Gt,measure:he,initialRect:Be,config:rn=!0}=Zt;const ie=(0,yt.useRef)(!1),{x:ke,y:He}=typeof rn=="boolean"?{x:rn,y:rn}:rn;(0,re.LI)(()=>{if(!ke&&!He||!Gt){ie.current=!1;return}if(ie.current||!Be)return;const hn=Gt==null?void 0:Gt.node.current;if(!hn||hn.isConnected===!1)return;const mi=he(hn),Et=Fn(mi,Be);if(ke||(Et.x=0),He||(Et.y=0),ie.current=!0,Math.abs(Et.x)>0||Math.abs(Et.y)>0){const qt=fi(hn);qt&&qt.scrollBy({top:Et.y,left:Et.x})}},[Gt,ke,He,Be,he])}const Hr=(0,yt.createContext)(Za(Do({},lt),{scaleX:1,scaleY:1}));var dn;(function(Zt){Zt[Zt.Uninitialized=0]="Uninitialized",Zt[Zt.Initializing=1]="Initializing",Zt[Zt.Initialized=2]="Initialized"})(dn||(dn={}));const Mi=(0,yt.memo)(function(Gt){var he,Be,rn,ie;let Go=Gt,{id:ke,accessibility:He,autoScroll:_e=!0,children:hn,sensors:mi=Ke,collisionDetection:Et=we,measuring:qt,modifiers:zt}=Go,ae=nv(Go,["id","accessibility","autoScroll","children","sensors","collisionDetection","measuring","modifiers"]);const de=(0,yt.useReducer)(tr,void 0,Zi),[je,Ye]=de,[tn,Ln]=Mt(),[Bn,Pn]=(0,yt.useState)(dn.Uninitialized),ri=Bn===dn.Initialized,{draggable:{active:Si,nodes:ue,translate:Un},droppable:{containers:si}}=je,zn=Si!=null?ue.get(Si):null,ci=(0,yt.useRef)({initial:null,translated:null}),vi=(0,yt.useMemo)(()=>{var br;return Si!=null?{id:Si,data:(br=zn==null?void 0:zn.data)!=null?br:Gn,rect:ci}:null},[Si,zn]),Ti=(0,yt.useRef)(null),[Fi,Ii]=(0,yt.useState)(null),[Bi,gr]=(0,yt.useState)(null),Fr=(0,re.Ey)(ae,Object.values(ae)),zr=(0,re.Ld)("DndDescribedBy",ke),Zr=(0,yt.useMemo)(()=>si.getEnabled(),[si]),Di=Rr(qt),{droppableRects:wr,measureDroppableContainers:Cr,measuringScheduled:Ir}=Oi(Zr,{dragging:ri,dependencies:[Un.x,Un.y],config:Di.droppable}),Gi=Ct(ue,Si),nr=(0,yt.useMemo)(()=>Bi?(0,re.DC)(Bi):null,[Bi]),Mn=vo(),_i=Cn(Gi,Di.draggable.measure);Lr({activeNode:Si!=null?ue.get(Si):null,config:Mn.layoutShiftCompensation,initialRect:_i,measure:Di.draggable.measure});const ar=xe(Gi,Di.draggable.measure,_i),Dr=xe(Gi?Gi.parentElement:null),Br=(0,yt.useRef)({activatorEvent:null,active:null,activeNode:Gi,collisionRect:null,collisions:null,droppableRects:wr,draggableNodes:ue,draggingNode:null,draggingNodeRect:null,droppableContainers:si,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Pr=si.getNodeFor((he=Br.current.over)==null?void 0:he.id),Ri=_n({measure:Di.dragOverlay.measure}),kr=(Be=Ri.nodeRef.current)!=null?Be:Gi,Yr=ri?(rn=Ri.rect)!=null?rn:ar:null,Jr=!!(Ri.nodeRef.current&&Ri.rect),jr=Kn(Jr?null:ar),so=hi(kr?(0,re.Jj)(kr):null),_r=ui(ri?Pr!=null?Pr:Gi:null),Vr=nn(_r),fo=wn(zt,{transform:{x:Un.x-jr.x,y:Un.y-jr.y,scaleX:1,scaleY:1},activatorEvent:Bi,active:vi,activeNodeRect:ar,containerNodeRect:Dr,draggingNodeRect:Yr,over:Br.current.over,overlayNodeRect:Ri.rect,scrollableAncestors:_r,scrollableAncestorRects:Vr,windowRect:so}),Ao=nr?(0,re.IH)(nr,Un):null,Jo=Sn(_r),ro=oi(Jo),na=oi(Jo,[ar]),mo=(0,re.IH)(fo,ro),ra=Yr?Ge(Yr,fo):null,Po=vi&&ra?Et({active:vi,collisionRect:ra,droppableRects:wr,droppableContainers:Zr,pointerCoordinates:Ao}):null,Vo=Ht(Po,"id"),[jo,Yo]=(0,yt.useState)(null),Bo=Jr?fo:(0,re.IH)(fo,na),bo=sn(Bo,(ie=jo==null?void 0:jo.rect)!=null?ie:null,ar),oa=(0,yt.useRef)(null),ya=(0,yt.useCallback)((br,Ur)=>{let{sensor:fr,options:Mr}=Ur;if(Ti.current==null)return;const $r=ue.get(Ti.current);if(!$r)return;const yr=br.nativeEvent,Ei=new fr({active:Ti.current,activeNode:$r,event:yr,options:Mr,context:Br,onAbort(me){if(!ue.get(me))return;const{onDragAbort:pa}=Fr.current,Sa={id:me};pa==null||pa(Sa),tn({type:"onDragAbort",event:Sa})},onPending(me,Wn,pa,Sa){if(!ue.get(me))return;const{onDragPending:xa}=Fr.current,Ta={id:me,constraint:Wn,initialCoordinates:pa,offset:Sa};xa==null||xa(Ta),tn({type:"onDragPending",event:Ta})},onStart(me){const Wn=Ti.current;if(Wn==null)return;const pa=ue.get(Wn);if(!pa)return;const{onDragStart:Sa}=Fr.current,sa={activatorEvent:yr,active:{id:Wn,data:pa.data,rect:ci}};(0,te.unstable_batchedUpdates)(()=>{Sa==null||Sa(sa),Pn(dn.Initializing),Ye({type:Nt.DragStart,initialCoordinates:me,active:Wn}),tn({type:"onDragStart",event:sa}),Ii(oa.current),gr(yr)})},onMove(me){Ye({type:Nt.DragMove,coordinates:me})},onEnd:Qo(Nt.DragEnd),onCancel:Qo(Nt.DragCancel)});oa.current=Ei;function Qo(me){return function(){return Cx(this,null,function*(){const{active:pa,collisions:Sa,over:sa,scrollAdjustedTranslate:xa}=Br.current;let Ta=null;if(pa&&xa){const{cancelDrop:Ra}=Fr.current;Ta={activatorEvent:yr,active:pa,collisions:Sa,delta:xa,over:sa},me===Nt.DragEnd&&typeof Ra=="function"&&(yield Promise.resolve(Ra(Ta)))&&(me=Nt.DragCancel)}Ti.current=null,(0,te.unstable_batchedUpdates)(()=>{Ye({type:me}),Pn(dn.Uninitialized),Yo(null),Ii(null),gr(null),oa.current=null;const Ra=me===Nt.DragEnd?"onDragEnd":"onDragCancel";if(Ta){const hs=Fr.current[Ra];hs==null||hs(Ta),tn({type:Ra,event:Ta})}})})}}},[ue]),Wo=(0,yt.useCallback)((br,Ur)=>(fr,Mr)=>{const $r=fr.nativeEvent,yr=ue.get(Mr);if(Ti.current!==null||!yr||$r.dndKit||$r.defaultPrevented)return;const Ei={active:yr};br(fr,Ur.options,Ei)===!0&&($r.dndKit={capturedBy:Ur.sensor},Ti.current=Mr,ya(fr,Ur))},[ue,ya]),Ba=yn(mi,Wo);fe(mi),(0,re.LI)(()=>{ar&&Bn===dn.Initializing&&Pn(dn.Initialized)},[ar,Bn]),(0,yt.useEffect)(()=>{const{onDragMove:br}=Fr.current,{active:Ur,activatorEvent:fr,collisions:Mr,over:$r}=Br.current;if(!Ur||!fr)return;const yr={active:Ur,activatorEvent:fr,collisions:Mr,delta:{x:mo.x,y:mo.y},over:$r};(0,te.unstable_batchedUpdates)(()=>{br==null||br(yr),tn({type:"onDragMove",event:yr})})},[mo.x,mo.y]),(0,yt.useEffect)(()=>{const{active:br,activatorEvent:Ur,collisions:fr,droppableContainers:Mr,scrollAdjustedTranslate:$r}=Br.current;if(!br||Ti.current==null||!Ur||!$r)return;const{onDragOver:yr}=Fr.current,Ei=Mr.get(Vo),Qo=Ei&&Ei.rect.current?{id:Ei.id,rect:Ei.rect.current,data:Ei.data,disabled:Ei.disabled}:null,me={active:br,activatorEvent:Ur,collisions:fr,delta:{x:$r.x,y:$r.y},over:Qo};(0,te.unstable_batchedUpdates)(()=>{Yo(Qo),yr==null||yr(me),tn({type:"onDragOver",event:me})})},[Vo]),(0,re.LI)(()=>{Br.current={activatorEvent:Bi,active:vi,activeNode:Gi,collisionRect:ra,collisions:Po,droppableRects:wr,draggableNodes:ue,draggingNode:kr,draggingNodeRect:Yr,droppableContainers:si,over:jo,scrollableAncestors:_r,scrollAdjustedTranslate:mo},ci.current={initial:Yr,translated:ra}},[vi,Gi,Po,ra,ue,kr,Yr,wr,si,jo,_r,mo]),hr(Za(Do({},Mn),{delta:Un,draggingRect:ra,pointerCoordinates:Ao,scrollableAncestors:_r,scrollableAncestorRects:Vr}));const Fo=(0,yt.useMemo)(()=>({active:vi,activeNode:Gi,activeNodeRect:ar,activatorEvent:Bi,collisions:Po,containerNodeRect:Dr,dragOverlay:Ri,draggableNodes:ue,droppableContainers:si,droppableRects:wr,over:jo,measureDroppableContainers:Cr,scrollableAncestors:_r,scrollableAncestorRects:Vr,measuringConfiguration:Di,measuringScheduled:Ir,windowRect:so}),[vi,Gi,ar,Bi,Po,Dr,Ri,ue,si,wr,jo,Cr,_r,Vr,Di,Ir,so]),yo=(0,yt.useMemo)(()=>({activatorEvent:Bi,activators:Ba,active:vi,activeNodeRect:ar,ariaDescribedById:{draggable:zr},dispatch:Ye,draggableNodes:ue,over:jo,measureDroppableContainers:Cr}),[Bi,Ba,vi,ar,Ye,zr,ue,jo,Cr]);return yt.createElement(Ze.Provider,{value:Ln},yt.createElement(gi.Provider,{value:yo},yt.createElement(Li.Provider,{value:Fo},yt.createElement(Hr.Provider,{value:bo},hn)),yt.createElement(zi,{disabled:(He==null?void 0:He.restoreFocus)===!1})),yt.createElement(We,Za(Do({},He),{hiddenTextDescribedById:zr})));function vo(){const br=(Fi==null?void 0:Fi.autoScrollEnabled)===!1,Ur=typeof _e=="object"?_e.enabled===!1:_e===!1,fr=ri&&!br&&!Ur;return typeof _e=="object"?Za(Do({},_e),{enabled:fr}):{enabled:fr}}}),Vi=(0,yt.createContext)(null),Qi="button",qi="Draggable";function cr(Zt){let{id:Gt,data:he,disabled:Be=!1,attributes:rn}=Zt;const ie=(0,re.Ld)(qi),{activators:ke,activatorEvent:He,active:_e,activeNodeRect:hn,ariaDescribedById:mi,draggableNodes:Et,over:qt}=(0,yt.useContext)(gi),{role:zt=Qi,roleDescription:ae="draggable",tabIndex:de=0}=rn!=null?rn:{},je=(_e==null?void 0:_e.id)===Gt,Ye=(0,yt.useContext)(je?Hr:Vi),[tn,Ln]=(0,re.wm)(),[Bn,Pn]=(0,re.wm)(),ri=Te(ke,Gt),Si=(0,re.Ey)(he);(0,re.LI)(()=>(Et.set(Gt,{id:Gt,key:ie,node:tn,activatorNode:Bn,data:Si}),()=>{const Un=Et.get(Gt);Un&&Un.key===ie&&Et.delete(Gt)}),[Et,Gt]);const ue=(0,yt.useMemo)(()=>({role:zt,tabIndex:de,"aria-disabled":Be,"aria-pressed":je&&zt===Qi?!0:void 0,"aria-roledescription":ae,"aria-describedby":mi.draggable}),[Be,zt,de,je,ae,mi.draggable]);return{active:_e,activatorEvent:He,activeNodeRect:hn,attributes:ue,isDragging:je,listeners:Be?void 0:ri,node:tn,over:qt,setNodeRef:Ln,setActivatorNodeRef:Pn,transform:Ye}}function Ar(){return(0,yt.useContext)(Li)}const ji="Droppable",er={timeout:25};function Hi(Zt){let{data:Gt,disabled:he=!1,id:Be,resizeObserverConfig:rn}=Zt;const ie=(0,re.Ld)(ji),{active:ke,dispatch:He,over:_e,measureDroppableContainers:hn}=(0,yt.useContext)(gi),mi=(0,yt.useRef)({disabled:he}),Et=(0,yt.useRef)(!1),qt=(0,yt.useRef)(null),zt=(0,yt.useRef)(null),{disabled:ae,updateMeasurementsFor:de,timeout:je}=Do(Do({},er),rn),Ye=(0,re.Ey)(de!=null?de:Be),tn=(0,yt.useCallback)(()=>{if(!Et.current){Et.current=!0;return}zt.current!=null&&clearTimeout(zt.current),zt.current=setTimeout(()=>{hn(Array.isArray(Ye.current)?Ye.current:[Ye.current]),zt.current=null},je)},[je]),Ln=ve({callback:tn,disabled:ae||!ke}),Bn=(0,yt.useCallback)((ue,Un)=>{Ln&&(Un&&(Ln.unobserve(Un),Et.current=!1),ue&&Ln.observe(ue))},[Ln]),[Pn,ri]=(0,re.wm)(Bn),Si=(0,re.Ey)(Gt);return(0,yt.useEffect)(()=>{!Ln||!Pn.current||(Ln.disconnect(),Et.current=!1,Ln.observe(Pn.current))},[Pn,Ln]),(0,yt.useEffect)(()=>(He({type:Nt.RegisterDroppable,element:{id:Be,key:ie,disabled:he,node:Pn,rect:qt,data:Si}}),()=>He({type:Nt.UnregisterDroppable,key:ie,id:Be})),[Be]),(0,yt.useEffect)(()=>{he!==mi.current.disabled&&(He({type:Nt.SetDroppableDisabled,id:Be,key:ie,disabled:he}),mi.current.disabled=he)},[Be,ie,he,He]),{active:ke,rect:qt,isOver:(_e==null?void 0:_e.id)===Be,node:Pn,over:_e,setNodeRef:ri}}function cn(Zt){let{animation:Gt,children:he}=Zt;const[Be,rn]=useState(null),[ie,ke]=useState(null),He=usePrevious(he);return!he&&!Be&&He&&rn(He),useIsomorphicLayoutEffect(()=>{if(!ie)return;const _e=Be==null?void 0:Be.key,hn=Be==null?void 0:Be.props.id;if(_e==null||hn==null){rn(null);return}Promise.resolve(Gt(hn,ie)).then(()=>{rn(null)})},[Gt,Be,ie]),React.createElement(React.Fragment,null,he,Be?cloneElement(Be,{ref:ke}):null)}const lr={x:0,y:0,scaleX:1,scaleY:1};function xn(Zt){let{children:Gt}=Zt;return React.createElement(gi.Provider,{value:xi},React.createElement(Hr.Provider,{value:lr},Gt))}const wi={position:"fixed",touchAction:"none"},Xi=Zt=>isKeyboardEvent(Zt)?"transform 250ms ease":void 0,Sr=null,qr={duration:250,easing:"ease",keyframes:Zt=>{let{transform:{initial:Gt,final:he}}=Zt;return[{transform:re.ux.Transform.toString(Gt)},{transform:re.ux.Transform.toString(he)}]},sideEffects:(Zt=>Gt=>{let{active:he,dragOverlay:Be}=Gt;const rn={},{styles:ie,className:ke}=Zt;if(ie!=null&&ie.active)for(const[He,_e]of Object.entries(ie.active))_e!==void 0&&(rn[He]=he.node.style.getPropertyValue(He),he.node.style.setProperty(He,_e));if(ie!=null&&ie.dragOverlay)for(const[He,_e]of Object.entries(ie.dragOverlay))_e!==void 0&&Be.node.style.setProperty(He,_e);return ke!=null&&ke.active&&he.node.classList.add(ke.active),ke!=null&&ke.dragOverlay&&Be.node.classList.add(ke.dragOverlay),function(){for(const[_e,hn]of Object.entries(rn))he.node.style.setProperty(_e,hn);ke!=null&&ke.active&&he.node.classList.remove(ke.active)}})({styles:{active:{opacity:"0"}}})};function io(Zt){let{config:Gt,draggableNodes:he,droppableContainers:Be,measuringConfiguration:rn}=Zt;return useEvent((ie,ke)=>{if(Gt===null)return;const He=he.get(ie);if(!He)return;const _e=He.node.current;if(!_e)return;const hn=Vn(ke);if(!hn)return;const{transform:mi}=getWindow(ke).getComputedStyle(ke),Et=an(mi);if(!Et)return;const qt=typeof Gt=="function"?Gt:$e(Gt);return Ie(_e,rn.draggable.measure),qt({active:{id:ie,data:He.data,node:_e,rect:rn.draggable.measure(_e)},draggableNodes:he,dragOverlay:{node:ke,rect:rn.dragOverlay.measure(hn)},droppableContainers:Be,measuringConfiguration:rn,transform:Et})})}function $e(Zt){const{duration:Gt,easing:he,sideEffects:Be,keyframes:rn}=Do(Do({},qr),Zt);return ie=>{let tn=ie,{active:ke,dragOverlay:He,transform:_e}=tn,hn=nv(tn,["active","dragOverlay","transform"]);if(!Gt)return;const mi={x:He.rect.left-ke.rect.left,y:He.rect.top-ke.rect.top},Et={scaleX:_e.scaleX!==1?ke.rect.width*_e.scaleX/He.rect.width:1,scaleY:_e.scaleY!==1?ke.rect.height*_e.scaleY/He.rect.height:1},qt=Do({x:_e.x-mi.x,y:_e.y-mi.y},Et),zt=rn(Za(Do({},hn),{active:ke,dragOverlay:He,transform:{initial:_e,final:qt}})),[ae]=zt,de=zt[zt.length-1];if(JSON.stringify(ae)===JSON.stringify(de))return;const je=Be==null?void 0:Be(Do({active:ke,dragOverlay:He},hn)),Ye=He.node.animate(zt,{duration:Gt,easing:he,fill:"forwards"});return new Promise(Ln=>{Ye.onfinish=()=>{je==null||je(),Ln()}})}}let Rn=0;function on(Zt){return useMemo(()=>{if(Zt!=null)return Rn++,Rn},[Zt])}const Bt=null},18257:function(Jn,pi,Dt){"use strict";Dt.d(pi,{DL:function(){return ge}});var yt=Dt(35241);function te(Mt){return Re=>{let{transform:Yt}=Re;return Za(Do({},Yt),{x:Math.ceil(Yt.x/Mt)*Mt,y:Math.ceil(Yt.y/Mt)*Mt})}}const re=Mt=>{let{transform:Re}=Mt;return Za(Do({},Re),{y:0})};function Fe(Mt,Re,Yt){const We=Do({},Mt);return Re.top+Mt.y<=Yt.top?We.y=Yt.top-Re.top:Re.bottom+Mt.y>=Yt.top+Yt.height&&(We.y=Yt.top+Yt.height-Re.bottom),Re.left+Mt.x<=Yt.left?We.x=Yt.left-Re.left:Re.right+Mt.x>=Yt.left+Yt.width&&(We.x=Yt.left+Yt.width-Re.right),We}const be=Mt=>{let{containerNodeRect:Re,draggingNodeRect:Yt,transform:We}=Mt;return!Yt||!Re?We:Fe(We,Yt,Re)},jt=Mt=>{let{draggingNodeRect:Re,transform:Yt,scrollableAncestorRects:We}=Mt;const Nt=We[0];return!Re||!Nt?Yt:Fe(Yt,Re,Nt)},ge=Mt=>{let{transform:Re}=Mt;return Za(Do({},Re),{x:0})},Ze=Mt=>{let{transform:Re,draggingNodeRect:Yt,windowRect:We}=Mt;return!Yt||!We?Re:Fe(Re,Yt,We)},Ce=Mt=>{let{activatorEvent:Re,draggingNodeRect:Yt,transform:We}=Mt;if(Yt&&Re){const Nt=getEventCoordinates(Re);if(!Nt)return We;const nt=Nt.x-Yt.left,et=Nt.y-Yt.top;return Za(Do({},We),{x:We.x+nt-Yt.width/2,y:We.y+et-Yt.height/2})}return We}},19719:function(Jn,pi,Dt){"use strict";Dt.d(pi,{Fo:function(){return mt},Rp:function(){return Fe},nB:function(){return Ee},qw:function(){return et}});var yt=Dt(59301),te=Dt(87954),re=Dt(35241);function Fe(Ge,an,Se){const Qt=Ge.slice();return Qt.splice(Se<0?Qt.length+Se:Se,0,Qt.splice(an,1)[0]),Qt}function be(Ge,an,Se){const Qt=Ge.slice();return Qt[an]=Ge[Se],Qt[Se]=Ge[an],Qt}function jt(Ge,an){return Ge.reduce((Se,Qt,mn)=>{const ii=an.get(Qt);return ii&&(Se[mn]=ii),Se},Array(Ge.length))}function ge(Ge){return Ge!==null&&Ge>=0}function Ze(Ge,an){if(Ge===an)return!0;if(Ge.length!==an.length)return!1;for(let Se=0;Se<Ge.length;Se++)if(Ge[Se]!==an[Se])return!1;return!0}function Ce(Ge){return typeof Ge=="boolean"?{draggable:Ge,droppable:Ge}:Ge}const Mt={scaleX:1,scaleY:1},Re=Ge=>{var an;let{rects:Se,activeNodeRect:Qt,activeIndex:mn,overIndex:ii,index:jn}=Ge;const ln=(an=Se[mn])!=null?an:Qt;if(!ln)return null;const qn=Yt(Se,jn,mn);if(jn===mn){const Dn=Se[ii];return Dn?Do({x:mn<ii?Dn.left+Dn.width-(ln.left+ln.width):Dn.left-ln.left,y:0},Mt):null}return jn>mn&&jn<=ii?Do({x:-ln.width-qn,y:0},Mt):jn<mn&&jn>=ii?Do({x:ln.width+qn,y:0},Mt):Do({x:0,y:0},Mt)};function Yt(Ge,an,Se){const Qt=Ge[an],mn=Ge[an-1],ii=Ge[an+1];return!Qt||!mn&&!ii?0:Se<an?mn?Qt.left-(mn.left+mn.width):ii.left-(Qt.left+Qt.width):ii?ii.left-(Qt.left+Qt.width):Qt.left-(mn.left+mn.width)}const We=Ge=>{let{rects:an,activeIndex:Se,overIndex:Qt,index:mn}=Ge;const ii=Fe(an,Qt,Se),jn=an[mn],ln=ii[mn];return!ln||!jn?null:{x:ln.left-jn.left,y:ln.top-jn.top,scaleX:ln.width/jn.width,scaleY:ln.height/jn.height}},Nt=Ge=>{let{activeIndex:an,index:Se,rects:Qt,overIndex:mn}=Ge,ii,jn;return Se===an&&(ii=Qt[Se],jn=Qt[mn]),Se===mn&&(ii=Qt[Se],jn=Qt[an]),!jn||!ii?null:{x:jn.left-ii.left,y:jn.top-ii.top,scaleX:jn.width/ii.width,scaleY:jn.height/ii.height}},nt={scaleX:1,scaleY:1},et=Ge=>{var an;let{activeIndex:Se,activeNodeRect:Qt,index:mn,rects:ii,overIndex:jn}=Ge;const ln=(an=ii[Se])!=null?an:Qt;if(!ln)return null;if(mn===Se){const Dn=ii[jn];return Dn?Do({x:0,y:Se<jn?Dn.top+Dn.height-(ln.top+ln.height):Dn.top-ln.top},nt):null}const qn=dt(ii,mn,Se);return mn>Se&&mn<=jn?Do({x:0,y:-ln.height-qn},nt):mn<Se&&mn>=jn?Do({x:0,y:ln.height+qn},nt):Do({x:0,y:0},nt)};function dt(Ge,an,Se){const Qt=Ge[an],mn=Ge[an-1],ii=Ge[an+1];return Qt?Se<an?mn?Qt.top-(mn.top+mn.height):ii?ii.top-(Qt.top+Qt.height):0:ii?ii.top-(Qt.top+Qt.height):mn?Qt.top-(mn.top+mn.height):0:0}const lt="Sortable",gt=yt.createContext({activeIndex:-1,containerId:lt,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:We,disabled:{draggable:!1,droppable:!1}});function mt(Ge){let{children:an,id:Se,items:Qt,strategy:mn=We,disabled:ii=!1}=Ge;const{active:jn,dragOverlay:ln,droppableRects:qn,over:Dn,measureDroppableContainers:fi}=(0,te.Cj)(),Ve=(0,re.Ld)(lt,Se),On=ln.rect!==null,Pe=(0,yt.useMemo)(()=>Qt.map($t=>typeof $t=="object"&&"id"in $t?$t.id:$t),[Qt]),Ai=jn!=null,Xn=jn?Pe.indexOf(jn.id):-1,Rt=Dn?Pe.indexOf(Dn.id):-1,At=(0,yt.useRef)(Pe),wt=!Ze(Pe,At.current),Tt=Rt!==-1&&Xn===-1||wt,Kt=Ce(ii);(0,re.LI)(()=>{wt&&Ai&&fi(Pe)},[wt,Pe,Ai,fi]),(0,yt.useEffect)(()=>{At.current=Pe},[Pe]);const kt=(0,yt.useMemo)(()=>({activeIndex:Xn,containerId:Ve,disabled:Kt,disableTransforms:Tt,items:Pe,overIndex:Rt,useDragOverlay:On,sortedRects:jt(Pe,qn),strategy:mn}),[Xn,Ve,Kt.draggable,Kt.droppable,Tt,Pe,Rt,qn,On,mn]);return yt.createElement(gt.Provider,{value:kt},an)}const St=Ge=>{let{id:an,items:Se,activeIndex:Qt,overIndex:mn}=Ge;return Fe(Se,Qt,mn).indexOf(an)},bt=Ge=>{let{containerId:an,isSorting:Se,wasDragging:Qt,index:mn,items:ii,newIndex:jn,previousItems:ln,previousContainerId:qn,transition:Dn}=Ge;return!Dn||!Qt||ln!==ii&&mn===jn?!1:Se?!0:jn!==mn&&an===qn},It={duration:200,easing:"ease"},Ht="transform",se=re.ux.Transition.toString({property:Ht,duration:0,easing:"linear"}),Vt={roleDescription:"sortable"};function Jt(Ge){let{disabled:an,index:Se,node:Qt,rect:mn}=Ge;const[ii,jn]=(0,yt.useState)(null),ln=(0,yt.useRef)(Se);return(0,re.LI)(()=>{if(!an&&Se!==ln.current&&Qt.current){const qn=mn.current;if(qn){const Dn=(0,te.VK)(Qt.current,{ignoreTransform:!0}),fi={x:qn.left-Dn.left,y:qn.top-Dn.top,scaleX:qn.width/Dn.width,scaleY:qn.height/Dn.height};(fi.x||fi.y)&&jn(fi)}}Se!==ln.current&&(ln.current=Se)},[an,Se,Qt,mn]),(0,yt.useEffect)(()=>{ii&&jn(null)},[ii]),ii}function Ee(Ge){let{animateLayoutChanges:an=bt,attributes:Se,disabled:Qt,data:mn,getNewIndex:ii=St,id:jn,strategy:ln,resizeObserverConfig:qn,transition:Dn=It}=Ge;const{items:fi,containerId:Ve,activeIndex:On,disabled:Pe,disableTransforms:Ai,sortedRects:Xn,overIndex:Rt,useDragOverlay:At,strategy:wt}=(0,yt.useContext)(gt),Tt=we(Qt,Pe),Kt=fi.indexOf(jn),kt=(0,yt.useMemo)(()=>Do({sortable:{containerId:Ve,index:Kt,items:fi}},mn),[Ve,mn,Kt,fi]),$t=(0,yt.useMemo)(()=>fi.slice(fi.indexOf(jn)),[fi,jn]),{rect:un,node:Ie,isOver:Ue,setNodeRef:ne}=(0,te.Zj)({id:jn,data:kt,disabled:Tt.droppable,resizeObserverConfig:Do({updateMeasurementsFor:$t},qn)}),{active:Oe,activatorEvent:Ne,activeNodeRect:Xe,attributes:En,setNodeRef:In,listeners:An,isDragging:en,over:ze,setActivatorNodeRef:qe,transform:pn}=(0,te.O1)({id:jn,data:kt,attributes:Do(Do({},Vt),Se),disabled:Tt.draggable}),bn=(0,re.HB)(ne,In),Yn=!!Oe,ti=Yn&&!Ai&&ge(On)&&ge(Rt),yi=!At&&en,vn=yi&&ti?pn:null,Pi=ln!=null?ln:wt,Ki=ti?vn!=null?vn:Pi({rects:Xn,activeNodeRect:Xe,activeIndex:On,overIndex:Rt,index:Kt}):null,pr=ge(On)&&ge(Rt)?ii({id:jn,items:fi,activeIndex:On,overIndex:Rt}):Kt,or=Oe==null?void 0:Oe.id,ir=(0,yt.useRef)({activeId:or,items:fi,newIndex:pr,containerId:Ve}),vr=fi!==ir.current.items,ur=an({active:Oe,containerId:Ve,isDragging:en,isSorting:Yn,id:jn,index:Kt,items:fi,newIndex:ir.current.newIndex,previousItems:ir.current.items,previousContainerId:ir.current.containerId,transition:Dn,wasDragging:ir.current.activeId!=null}),hr=Jt({disabled:!ur,index:Kt,node:Ie,rect:un});return(0,yt.useEffect)(()=>{Yn&&ir.current.newIndex!==pr&&(ir.current.newIndex=pr),Ve!==ir.current.containerId&&(ir.current.containerId=Ve),fi!==ir.current.items&&(ir.current.items=fi)},[Yn,pr,Ve,fi]),(0,yt.useEffect)(()=>{if(or===ir.current.activeId)return;if(or&&!ir.current.activeId){ir.current.activeId=or;return}const xr=setTimeout(()=>{ir.current.activeId=or},50);return()=>clearTimeout(xr)},[or]),{active:Oe,activeIndex:On,attributes:En,data:kt,rect:un,index:Kt,newIndex:pr,items:fi,isOver:Ue,isSorting:Yn,isDragging:en,listeners:An,node:Ie,overIndex:Rt,over:ze,setNodeRef:bn,setActivatorNodeRef:qe,setDroppableNodeRef:ne,setDraggableNodeRef:In,transform:hr!=null?hr:Ki,transition:Ji()};function Ji(){if(hr||vr&&ir.current.newIndex===Kt)return se;if(!(yi&&!(0,re.vd)(Ne)||!Dn)&&(Yn||ur))return re.ux.Transition.toString(Za(Do({},Dn),{property:Ht}))}}function we(Ge,an){var Se,Qt;return typeof Ge=="boolean"?{draggable:Ge,droppable:!1}:{draggable:(Se=Ge==null?void 0:Ge.draggable)!=null?Se:an.draggable,droppable:(Qt=Ge==null?void 0:Ge.droppable)!=null?Qt:an.droppable}}function De(Ge){if(!Ge)return!1;const an=Ge.data.current;return!!(an&&"sortable"in an&&typeof an.sortable=="object"&&"containerId"in an.sortable&&"items"in an.sortable&&"index"in an.sortable)}const Le=[te.g4.Down,te.g4.Right,te.g4.Up,te.g4.Left],sn=(Ge,an)=>{let{context:{active:Se,collisionRect:Qt,droppableRects:mn,droppableContainers:ii,over:jn,scrollableAncestors:ln}}=an;if(Le.includes(Ge.code)){if(Ge.preventDefault(),!Se||!Qt)return;const qn=[];ii.getEnabled().forEach(Ve=>{if(!Ve||Ve!=null&&Ve.disabled)return;const On=mn.get(Ve.id);if(On)switch(Ge.code){case KeyboardCode.Down:Qt.top<On.top&&qn.push(Ve);break;case KeyboardCode.Up:Qt.top>On.top&&qn.push(Ve);break;case KeyboardCode.Left:Qt.left>On.left&&qn.push(Ve);break;case KeyboardCode.Right:Qt.left<On.left&&qn.push(Ve);break}});const Dn=closestCorners({active:Se,collisionRect:Qt,droppableRects:mn,droppableContainers:qn,pointerCoordinates:null});let fi=getFirstCollision(Dn,"id");if(fi===(jn==null?void 0:jn.id)&&Dn.length>1&&(fi=Dn[1].id),fi!=null){const Ve=ii.get(Se.id),On=ii.get(fi),Pe=On?mn.get(On.id):null,Ai=On==null?void 0:On.node.current;if(Ai&&Pe&&Ve&&On){const Rt=getScrollableAncestors(Ai).some(($t,un)=>ln[un]!==$t),At=Fn(Ve,On),wt=fn(Ve,On),Tt=Rt||!At?{x:0,y:0}:{x:wt?Qt.width-Pe.width:0,y:wt?Qt.height-Pe.height:0},Kt={x:Pe.left,y:Pe.top};return Tt.x&&Tt.y?Kt:subtract(Kt,Tt)}}}};function Fn(Ge,an){return!De(Ge)||!De(an)?!1:Ge.data.current.sortable.containerId===an.data.current.sortable.containerId}function fn(Ge,an){return!De(Ge)||!De(an)||!Fn(Ge,an)?!1:Ge.data.current.sortable.index<an.data.current.sortable.index}},35241:function(Jn,pi,Dt){"use strict";Dt.d(pi,{$X:function(){return bt},D9:function(){return dt},DC:function(){return Vt},Ey:function(){return Nt},FJ:function(){return Fe},Gj:function(){return nt},HB:function(){return te},IH:function(){return St},Jj:function(){return jt},LI:function(){return Re},Ld:function(){return gt},Nq:function(){return re},Re:function(){return Ze},UG:function(){return be},Yz:function(){return We},qk:function(){return ge},r3:function(){return Mt},so:function(){return we},ux:function(){return Jt},vZ:function(){return Ce},vd:function(){return Ht},wm:function(){return et},zX:function(){return Yt}});var yt=Dt(59301);function te(){for(var De=arguments.length,Le=new Array(De),sn=0;sn<De;sn++)Le[sn]=arguments[sn];return(0,yt.useMemo)(()=>Fn=>{Le.forEach(fn=>fn(Fn))},Le)}const re=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined";function Fe(De){const Le=Object.prototype.toString.call(De);return Le==="[object Window]"||Le==="[object global]"}function be(De){return"nodeType"in De}function jt(De){var Le,sn;return De?Fe(De)?De:be(De)&&(Le=(sn=De.ownerDocument)==null?void 0:sn.defaultView)!=null?Le:window:window}function ge(De){const{Document:Le}=jt(De);return De instanceof Le}function Ze(De){return Fe(De)?!1:De instanceof jt(De).HTMLElement}function Ce(De){return De instanceof jt(De).SVGElement}function Mt(De){return De?Fe(De)?De.document:be(De)?ge(De)?De:Ze(De)||Ce(De)?De.ownerDocument:document:document:document}const Re=re?yt.useLayoutEffect:yt.useEffect;function Yt(De){const Le=(0,yt.useRef)(De);return Re(()=>{Le.current=De}),(0,yt.useCallback)(function(){for(var sn=arguments.length,Fn=new Array(sn),fn=0;fn<sn;fn++)Fn[fn]=arguments[fn];return Le.current==null?void 0:Le.current(...Fn)},[])}function We(){const De=(0,yt.useRef)(null),Le=(0,yt.useCallback)((Fn,fn)=>{De.current=setInterval(Fn,fn)},[]),sn=(0,yt.useCallback)(()=>{De.current!==null&&(clearInterval(De.current),De.current=null)},[]);return[Le,sn]}function Nt(De,Le){Le===void 0&&(Le=[De]);const sn=(0,yt.useRef)(De);return Re(()=>{sn.current!==De&&(sn.current=De)},Le),sn}function nt(De,Le){const sn=(0,yt.useRef)();return(0,yt.useMemo)(()=>{const Fn=De(sn.current);return sn.current=Fn,Fn},[...Le])}function et(De){const Le=Yt(De),sn=(0,yt.useRef)(null),Fn=(0,yt.useCallback)(fn=>{fn!==sn.current&&(Le==null||Le(fn,sn.current)),sn.current=fn},[]);return[sn,Fn]}function dt(De){const Le=(0,yt.useRef)();return(0,yt.useEffect)(()=>{Le.current=De},[De]),Le.current}let lt={};function gt(De,Le){return(0,yt.useMemo)(()=>{if(Le)return Le;const sn=lt[De]==null?0:lt[De]+1;return lt[De]=sn,De+"-"+sn},[De,Le])}function mt(De){return function(Le){for(var sn=arguments.length,Fn=new Array(sn>1?sn-1:0),fn=1;fn<sn;fn++)Fn[fn-1]=arguments[fn];return Fn.reduce((Ge,an)=>{const Se=Object.entries(an);for(const[Qt,mn]of Se){const ii=Ge[Qt];ii!=null&&(Ge[Qt]=ii+De*mn)}return Ge},Do({},Le))}}const St=mt(1),bt=mt(-1);function It(De){return"clientX"in De&&"clientY"in De}function Ht(De){if(!De)return!1;const{KeyboardEvent:Le}=jt(De.target);return Le&&De instanceof Le}function se(De){if(!De)return!1;const{TouchEvent:Le}=jt(De.target);return Le&&De instanceof Le}function Vt(De){if(se(De)){if(De.touches&&De.touches.length){const{clientX:Le,clientY:sn}=De.touches[0];return{x:Le,y:sn}}else if(De.changedTouches&&De.changedTouches.length){const{clientX:Le,clientY:sn}=De.changedTouches[0];return{x:Le,y:sn}}}return It(De)?{x:De.clientX,y:De.clientY}:null}const Jt=Object.freeze({Translate:{toString(De){if(!De)return;const{x:Le,y:sn}=De;return"translate3d("+(Le?Math.round(Le):0)+"px, "+(sn?Math.round(sn):0)+"px, 0)"}},Scale:{toString(De){if(!De)return;const{scaleX:Le,scaleY:sn}=De;return"scaleX("+Le+") scaleY("+sn+")"}},Transform:{toString(De){if(De)return[Jt.Translate.toString(De),Jt.Scale.toString(De)].join(" ")}},Transition:{toString(De){let{property:Le,duration:sn,easing:Fn}=De;return Le+" "+sn+"ms "+Fn}}}),Ee="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function we(De){return De.matches(Ee)?De:De.querySelector(Ee)}},39060:function(){"use strict"},76596:function(){"use strict"},25346:function(Jn,pi){"use strict";pi.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},59514:function(Jn,pi){"use strict";pi.Z={flex_box_center:"flex_box_center___IBr6x",flex_space_between:"flex_space_between___n2Iz0",flex_box_vertical_center:"flex_box_vertical_center___1umwO",flex_box_center_end:"flex_box_center_end___SRZYb",flex_box_column:"flex_box_column___b90Da",form:"form___V3fAH",title_icon:"title_icon____uDZy",title:"title___RxKwK",content:"content___vFT5m",pubColSty:"pubColSty___dfLkL",selectSty:"selectSty____Wuek",borderSty:"borderSty___EuFYV",delSty:"delSty___AdEeI",delBorder:"delBorder___vcTJc",copHover:"copHover___JVVXI",multiple_select:"multiple_select___ZMPhl",work_checkbox_group:"work_checkbox_group___sGLxY"}},79751:function(Jn,pi,Dt){"use strict";var yt=Dt(59301),te=Object.defineProperty,re=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,be=Object.prototype.propertyIsEnumerable,jt=(Ce,Mt,Re)=>Mt in Ce?te(Ce,Mt,{enumerable:!0,configurable:!0,writable:!0,value:Re}):Ce[Mt]=Re,ge=(Ce,Mt)=>{for(var Re in Mt||(Mt={}))Fe.call(Mt,Re)&&jt(Ce,Re,Mt[Re]);if(re)for(var Re of re(Mt))be.call(Mt,Re)&&jt(Ce,Re,Mt[Re]);return Ce};const Ze=Ce=>React.createElement("svg",ge({className:"jiangxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},Ce),React.createElement("path",{d:"M365.714 73.143H1024v73.143H365.714zm0 292.571H1024v73.143H365.714zm0 292.572H1024v73.143H365.714zm0 292.571H1024V1024H365.714v-73.143z",fill:"#98BDF7"}),React.createElement("path",{d:"m248.686 803.182-65.829 75.922V658.286h-73.143v220.818l-65.828-75.995L0 851.383 146.286 1024 292.57 851.53z",fill:"#145DFF"}),React.createElement("path",{d:"M146.286 0 0 158.72l43.886 55.223 65.828-75.922v227.693h73.143V138.021l65.829 75.922 43.885-55.223z",fill:"#98BDF7"}));pi.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Im0yNDguNjg2IDgwMy4xODItNjUuODI5IDc1LjkyMlY2NTguMjg2aC03My4xNDN2MjIwLjgxOGwtNjUuODI4LTc1Ljk5NUwwIDg1MS4zODMgMTQ2LjI4NiAxMDI0IDI5Mi41NyA4NTEuNTN6IiBmaWxsPSIjMTQ1REZGIi8+PHBhdGggZD0iTTE0Ni4yODYgMCAwIDE1OC43Mmw0My44ODYgNTUuMjIzIDY1LjgyOC03NS45MjJ2MjI3LjY5M2g3My4xNDNWMTM4LjAyMWw2NS44MjkgNzUuOTIyIDQzLjg4NS01NS4yMjN6IiBmaWxsPSIjOThCREY3Ii8+PC9zdmc+"},94890:function(Jn,pi,Dt){"use strict";var yt=Dt(59301),te=Object.defineProperty,re=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,be=Object.prototype.propertyIsEnumerable,jt=(Ce,Mt,Re)=>Mt in Ce?te(Ce,Mt,{enumerable:!0,configurable:!0,writable:!0,value:Re}):Ce[Mt]=Re,ge=(Ce,Mt)=>{for(var Re in Mt||(Mt={}))Fe.call(Mt,Re)&&jt(Ce,Re,Mt[Re]);if(re)for(var Re of re(Mt))be.call(Mt,Re)&&jt(Ce,Re,Mt[Re]);return Ce};const Ze=Ce=>React.createElement("svg",ge({className:"shengxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},Ce),React.createElement("path",{d:"M365.714 73.143H1024v73.143H365.714zm0 292.571H1024v73.143H365.714zm0 292.572H1024v73.143H365.714zm0 292.571H1024V1024H365.714v-73.143zM248.686 803.182l-65.829 75.922V658.286h-73.143v220.818l-65.828-75.995L0 851.383 146.286 1024 292.57 851.53z",fill:"#98BDF7"}),React.createElement("path",{d:"M146.286 0 0 158.72l43.886 55.223 65.828-75.922v227.693h73.143V138.021l65.829 75.922 43.885-55.223z",fill:"#145DFF"}));pi.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzek0yNDguNjg2IDgwMy4xODJsLTY1LjgyOSA3NS45MjJWNjU4LjI4NmgtNzMuMTQzdjIyMC44MThsLTY1LjgyOC03NS45OTVMMCA4NTEuMzgzIDE0Ni4yODYgMTAyNCAyOTIuNTcgODUxLjUzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Ik0xNDYuMjg2IDAgMCAxNTguNzJsNDMuODg2IDU1LjIyMyA2NS44MjgtNzUuOTIydjIyNy42OTNoNzMuMTQzVjEzOC4wMjFsNjUuODI5IDc1LjkyMiA0My44ODUtNTUuMjIzeiIgZmlsbD0iIzE0NURGRiIvPjwvc3ZnPg=="},74042:function(){"use strict";function Jn(Nt,nt,et,dt){et===void 0&&(et=0),dt===void 0&&(dt=1/0),this._name=Nt,this._defaultValue=nt,this._minimum=et,this._maximum=dt}Object.defineProperty(Jn.prototype,"name",{get:function(){return this._name},set:function(Nt){if(typeof Nt!="string"||Nt==="")throw new Error("Shape name must be a valid string.");this._name=Nt}}),Object.defineProperty(Jn.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(Nt){if(typeof Nt!="number"||isNaN(Nt))throw new Error("The default value must be a real number, not: "+Nt);this._defaultValue=Nt}}),Object.defineProperty(Jn.prototype,"minimum",{get:function(){return this._minimum},set:function(Nt){if(typeof Nt!="number"||isNaN(Nt))throw new Error("Minimum must be a real number, not: "+Nt);this._minimum=Nt}}),Object.defineProperty(Jn.prototype,"maximum",{get:function(){return this._maximum},set:function(Nt){if(typeof Nt!="number"||isNaN(Nt))throw new Error("Maximum must be a real number, not: "+Nt);this._maximum=Nt}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(Nt,nt){var et=go.Shape._FigureParameters[Nt];return et?et[nt]:null},go.Shape.setFigureParameter=function(Nt,nt,et){if(!(et instanceof Jn))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+et);if(et.defaultValue<et.minimum||et.defaultValue>et.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+et.defaultValue);var dt=go.Shape._FigureParameters[Nt];dt||(dt=[],go.Shape._FigureParameters[Nt]=dt),dt[nt]=et};var pi=[];function Dt(Nt,nt){var et=pi.pop();return et===void 0?new go.Point(Nt,nt):(et.x=Nt,et.y=nt,et)}function yt(){var Nt=pi.pop();return Nt===void 0?new go.Point:Nt}function te(Nt){pi.push(Nt)}function re(Nt,nt,et,dt,lt,gt,mt,St,bt){bt||(bt=new go.Point);var It=Nt-et,Ht=lt-mt,se=NaN,Vt=NaN;if(It===0)if(Ht===0)Nt===et&&(se=Nt,Vt=nt);else{var Jt=(gt-St)/Ht,Ee=gt-Jt*lt;se=Nt,Vt=Jt*se+Ee}else if(Ht===0){var we=(nt-dt)/It,De=nt-we*Nt;se=lt,Vt=we*se+De}else{var we=(nt-dt)/It,Jt=(gt-St)/Ht,De=nt-we*Nt,Ee=gt-Jt*lt;se=(Ee-De)/(we-Jt),Vt=we*se+De}return bt.x=se,bt.y=Vt,bt}function Fe(Nt,nt,et,dt,lt,gt,mt,St,bt,It,Ht,se,Vt,Jt){var Ee=1-bt,we=bt,De=Nt*Ee+et*we,Le=nt*Ee+dt*we,sn=et*Ee+lt*we,Fn=dt*Ee+gt*we,fn=lt*Ee+mt*we,Ge=gt*Ee+St*we,an=De*Ee+sn*we,Se=Le*Ee+Fn*we,Qt=sn*Ee+fn*we,mn=Fn*Ee+Ge*we,ii=an*Ee+Qt*we,jn=Se*Ee+mn*we;It.x=De,It.y=Le,Ht.x=an,Ht.y=Se,se.x=ii,se.y=jn,Vt.x=Qt,Vt.y=mn,Jt.x=fn,Jt.y=Ge}var be=new go.Spot(.156,.156),jt=new go.Spot(.844,.844),ge=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Jn("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(Nt,nt,et){var dt=Nt?Nt.parameter1:NaN;(isNaN(dt)||dt<0)&&(dt=5),dt=Math.min(dt,nt/3),dt=Math.min(dt,et/3);var lt=dt*ge,gt=new go.Geometry().add(new go.PathFigure(dt,0,!0).add(new go.PathSegment(go.PathSegment.Line,nt-dt,0)).add(new go.PathSegment(go.PathSegment.Bezier,nt,dt,nt-lt,0,nt,lt)).add(new go.PathSegment(go.PathSegment.Line,nt,et-dt)).add(new go.PathSegment(go.PathSegment.Bezier,nt-dt,et,nt,et-lt,nt-lt,et)).add(new go.PathSegment(go.PathSegment.Line,dt,et)).add(new go.PathSegment(go.PathSegment.Bezier,0,et-dt,lt,et,0,et-lt)).add(new go.PathSegment(go.PathSegment.Line,0,dt)).add(new go.PathSegment(go.PathSegment.Bezier,dt,0,0,lt,lt,0).close()));return lt>1&&(gt.spot1=new go.Spot(0,0,lt,lt),gt.spot2=new go.Spot(1,1,-lt,-lt)),gt}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(Nt,nt,et){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)).add(new go.PathSegment(go.PathSegment.Line,0,et).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(Nt,nt,et){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,nt,0)).add(new go.PathSegment(go.PathSegment.Line,.5*nt,et).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(Nt,nt,et){return new go.Geometry().add(new go.PathFigure(nt,et).add(new go.PathSegment(go.PathSegment.Line,0,.5*et)).add(new go.PathSegment(go.PathSegment.Line,nt,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(Nt,nt,et){return new go.Geometry().add(new go.PathFigure(nt,et).add(new go.PathSegment(go.PathSegment.Line,0,et)).add(new go.PathSegment(go.PathSegment.Line,.5*nt,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(Nt,nt,et){return new go.Geometry().add(new go.PathFigure(.5*nt,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*et)).add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)).add(new go.PathSegment(go.PathSegment.Line,nt,.5*et).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(Nt,nt,et){var dt=new go.Geometry(go.Geometry.Line);return dt.startX=0,dt.startY=et/2,dt.endX=nt,dt.endY=et/2,dt}),go.Shape.defineFigureGenerator("LineV",function(Nt,nt,et){var dt=new go.Geometry(go.Geometry.Line);return dt.startX=nt/2,dt.startY=0,dt.endX=nt/2,dt.endY=et,dt}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(Nt,nt,et){return new go.Geometry().add(new go.PathFigure(0,et/2,!1).add(new go.PathSegment(go.PathSegment.Line,nt,et/2)).add(new go.PathSegment(go.PathSegment.Move,nt/2,0)).add(new go.PathSegment(go.PathSegment.Line,nt/2,et)))}),go.Shape.defineFigureGenerator("XLine",function(Nt,nt,et){return new go.Geometry().add(new go.PathFigure(0,et,!1).add(new go.PathSegment(go.PathSegment.Line,nt,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,nt,et)))}),go.Shape.defineFigureGenerator("LineRight",function(Nt,nt,et){return new go.Geometry().add(new go.PathFigure(.25*nt,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*nt,.5*et)).add(new go.PathSegment(go.PathSegment.Line,.25*nt,et)))}),go.Shape.defineFigureGenerator("LineDown",function(Nt,nt,et){return new go.Geometry().add(new go.PathFigure(0,.25*et,!1).add(new go.PathSegment(go.PathSegment.Line,.5*nt,.75*et)).add(new go.PathSegment(go.PathSegment.Line,nt,.25*et)))}),go.Shape.defineFigureGenerator("LineLeft",function(Nt,nt,et){return new go.Geometry().add(new go.PathFigure(.75*nt,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*nt,.5*et)).add(new go.PathSegment(go.PathSegment.Line,.75*nt,et)))}),go.Shape.defineFigureGenerator("LineUp",function(Nt,nt,et){return new go.Geometry().add(new go.PathFigure(0,.75*et,!1).add(new go.PathSegment(go.PathSegment.Line,.5*nt,.25*et)).add(new go.PathSegment(go.PathSegment.Line,nt,.75*et)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(Nt,nt,et){var dt=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(dt*nt,(1-dt)*et,!1).add(new go.PathSegment(go.PathSegment.Line,(1-dt)*nt,dt*et)).add(new go.PathSegment(go.PathSegment.Move,dt*nt,dt*et)).add(new go.PathSegment(go.PathSegment.Line,(1-dt)*nt,(1-dt)*et)).add(new go.PathSegment(go.PathSegment.Move,0,et/2)).add(new go.PathSegment(go.PathSegment.Line,nt,et/2)).add(new go.PathSegment(go.PathSegment.Move,nt/2,0)).add(new go.PathSegment(go.PathSegment.Line,nt/2,et)))}),go.Shape.defineFigureGenerator("CircleLine",function(Nt,nt,et){var dt=nt/2,lt=new go.Geometry().add(new go.PathFigure(nt,nt/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,dt,dt,dt,dt).close()));return lt.spot1=be,lt.spot2=jt,lt.defaultStretch=go.GraphObject.Uniform,lt}),go.Shape.defineFigureGenerator("Line1",function(Nt,nt,et){var dt=new go.Geometry(go.Geometry.Line);return dt.startX=0,dt.startY=0,dt.endX=nt,dt.endY=et,dt}),go.Shape.defineFigureGenerator("Line2",function(Nt,nt,et){var dt=new go.Geometry(go.Geometry.Line);return dt.startX=nt,dt.startY=0,dt.endX=0,dt.endY=et,dt}),go.Shape.defineFigureGenerator("Curve1",function(Nt,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,nt,et,ge*nt,0,nt,(1-ge)*et)))}),go.Shape.defineFigureGenerator("Curve2",function(Nt,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,nt,et,0,ge*et,(1-ge)*nt,et)))}),go.Shape.defineFigureGenerator("Curve3",function(Nt,nt,et){return new go.Geometry().add(new go.PathFigure(nt,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,et,nt,ge*et,ge*nt,et)))}),go.Shape.defineFigureGenerator("Curve4",function(Nt,nt,et){return new go.Geometry().add(new go.PathFigure(nt,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,et,(1-ge)*nt,0,0,(1-ge)*et)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(Nt,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,nt,et)).add(new go.PathSegment(go.PathSegment.Line,0,et).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(Nt,nt,et){return new go.Geometry().add(new go.PathFigure(nt,0,!0).add(new go.PathSegment(go.PathSegment.Line,nt,et)).add(new go.PathSegment(go.PathSegment.Line,0,et).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(Nt,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,nt,0)).add(new go.PathSegment(go.PathSegment.Line,0,et).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(Nt,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,nt,0)).add(new go.PathSegment(go.PathSegment.Line,nt,et).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new Jn("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(Nt,nt,et){var dt=Nt?Nt.parameter1:NaN;isNaN(dt)?dt=.1:dt<-1?dt=-1:dt>1&&(dt=1);var lt=Math.abs(dt)*nt;if(dt===0){var gt=new go.Geometry(go.Geometry.Rectangle);return gt.startX=0,gt.startY=0,gt.endX=nt,gt.endY=et,gt}else{var gt=new go.Geometry;return dt>0?gt.add(new go.PathFigure(lt,0).add(new go.PathSegment(go.PathSegment.Line,nt,0)).add(new go.PathSegment(go.PathSegment.Line,nt-lt,et)).add(new go.PathSegment(go.PathSegment.Line,0,et).close())):gt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,nt-lt,0)).add(new go.PathSegment(go.PathSegment.Line,nt,et)).add(new go.PathSegment(go.PathSegment.Line,lt,et).close())),lt<nt/2&&gt.setSpots(lt/nt,0,(nt-lt)/nt,1),gt}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new Jn("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(Nt,nt,et){var dt=Nt?Nt.parameter1:NaN;isNaN(dt)?dt=10:dt<-nt?dt=-nt:dt>nt&&(dt=nt);var lt=Math.abs(dt);if(dt===0){var gt=new go.Geometry(go.Geometry.Rectangle);return gt.startX=0,gt.startY=0,gt.endX=nt,gt.endY=et,gt}else{var gt=new go.Geometry;return dt>0?gt.add(new go.PathFigure(lt,0).add(new go.PathSegment(go.PathSegment.Line,nt,0)).add(new go.PathSegment(go.PathSegment.Line,nt-lt,et)).add(new go.PathSegment(go.PathSegment.Line,0,et).close())):gt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,nt-lt,0)).add(new go.PathSegment(go.PathSegment.Line,nt,et)).add(new go.PathSegment(go.PathSegment.Line,lt,et).close())),lt<nt/2&&gt.setSpots(lt/nt,0,(nt-lt)/nt,1),gt}}),go.Shape.setFigureParameter("Trapezoid1",0,new Jn("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(Nt,nt,et){var dt=Nt?Nt.parameter1:NaN;isNaN(dt)?dt=.2:dt<.5?dt=-.5:dt>.5&&(dt=.5);var lt=Math.abs(dt)*nt;if(dt===0){var gt=new go.Geometry(go.Geometry.Rectangle);return gt.startX=0,gt.startY=0,gt.endX=nt,gt.endY=et,gt}else{var gt=new go.Geometry;return dt>0?gt.add(new go.PathFigure(lt,0).add(new go.PathSegment(go.PathSegment.Line,nt-lt,0)).add(new go.PathSegment(go.PathSegment.Line,nt,et)).add(new go.PathSegment(go.PathSegment.Line,0,et).close())):gt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,nt,0)).add(new go.PathSegment(go.PathSegment.Line,nt-lt,et)).add(new go.PathSegment(go.PathSegment.Line,lt,et).close())),lt<nt/2&&gt.setSpots(lt/nt,0,(nt-lt)/nt,1),gt}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new Jn("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(Nt,nt,et){var dt=Nt?Nt.parameter1:NaN;isNaN(dt)?dt=20:dt<-nt?dt=-nt/2:dt>nt&&(dt=nt/2);var lt=Math.abs(dt);if(dt===0){var gt=new go.Geometry(go.Geometry.Rectangle);return gt.startX=0,gt.startY=0,gt.endX=nt,gt.endY=et,gt}else{var gt=new go.Geometry;return dt>0?gt.add(new go.PathFigure(lt,0).add(new go.PathSegment(go.PathSegment.Line,nt-lt,0)).add(new go.PathSegment(go.PathSegment.Line,nt,et)).add(new go.PathSegment(go.PathSegment.Line,0,et).close())):gt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,nt,0)).add(new go.PathSegment(go.PathSegment.Line,nt-lt,et)).add(new go.PathSegment(go.PathSegment.Line,lt,et).close())),lt<nt/2&&gt.setSpots(lt/nt,0,(nt-lt)/nt,1),gt}}),go.Shape.setFigureParameter("ManualOperation",0,new Jn("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(Nt,nt,et){var dt=Nt?Nt.parameter1:NaN;isNaN(dt)?dt=10:dt<-nt?dt=-nt/2:dt>nt&&(dt=nt/2);var lt=Math.abs(dt);if(dt===0){var gt=new go.Geometry(go.Geometry.Rectangle);return gt.startX=0,gt.startY=0,gt.endX=nt,gt.endY=et,gt}else{var gt=new go.Geometry;return dt>0?gt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,nt,0)).add(new go.PathSegment(go.PathSegment.Line,nt-lt,et)).add(new go.PathSegment(go.PathSegment.Line,lt,et).close())):gt.add(new go.PathFigure(lt,0).add(new go.PathSegment(go.PathSegment.Line,nt-lt,0)).add(new go.PathSegment(go.PathSegment.Line,nt,et)).add(new go.PathSegment(go.PathSegment.Line,0,et).close())),lt<nt/2&&gt.setSpots(lt/nt,0,(nt-lt)/nt,1),gt}});var Ze=[];function Ce(){var Nt=Ze.pop();return Nt===void 0?[]:Nt}function Mt(Nt){Nt.length=0,Ze.push(Nt)}function Re(Nt){for(var nt=Ce(),et=.5,dt=.5,lt=Math.PI*1.5,gt=0,mt=0;mt<Nt;mt++)gt=2*Math.PI/Nt*mt+lt,nt[mt]=new go.Point(dt+et*Math.cos(gt),dt+et*Math.sin(gt));return nt.push(nt[0]),nt}function Yt(Nt){var nt=We(Nt),et=Ce();et[0]=nt[0];for(var dt=1,lt=1;dt<nt.length;dt+=2,lt+=3)et[lt]=nt[dt],et[lt+1]=nt[dt],et[lt+2]=nt[dt+1];return Mt(nt),et}function We(Nt){for(var nt=Re(Nt),et=Ce(),dt=Math.floor(nt.length/2),lt=nt.length-1,gt=Nt%2===0?2:1,mt=0;mt<lt;mt++){var St=nt[mt],bt=nt[mt+1],It=nt[(dt+mt-1)%lt],Ht=nt[(dt+mt+gt)%lt];et[mt*2]=St,et[mt*2+1]=re(St.x,St.y,It.x,It.y,bt.x,bt.y,Ht.x,Ht.y,new go.Point)}return et[et.length]=et[0],Mt(nt),et}go.Shape.defineFigureGenerator("Pentagon",function(Nt,nt,et){var dt=Re(5),lt=new go.Geometry,gt=new go.PathFigure(dt[0].x*nt,dt[0].y*et,!0);lt.add(gt);for(var mt=1;mt<5;mt++)gt.add(new go.PathSegment(go.PathSegment.Line,dt[mt].x*nt,dt[mt].y*et));return gt.add(new go.PathSegment(go.PathSegment.Line,dt[0].x*nt,dt[0].y*et).close()),Mt(dt),lt.spot1=new go.Spot(.2,.22),lt.spot2=new go.Spot(.8,.9),lt}),go.Shape.defineFigureGenerator("Hexagon",function(Nt,nt,et){var dt=Re(6),lt=new go.Geometry,gt=new go.PathFigure(dt[0].x*nt,dt[0].y*et,!0);lt.add(gt);for(var mt=1;mt<6;mt++)gt.add(new go.PathSegment(go.PathSegment.Line,dt[mt].x*nt,dt[mt].y*et));return gt.add(new go.PathSegment(go.PathSegment.Line,dt[0].x*nt,dt[0].y*et).close()),Mt(dt),lt.spot1=new go.Spot(.07,.25),lt.spot2=new go.Spot(.93,.75),lt}),go.Shape.defineFigureGenerator("Heptagon",function(Nt,nt,et){var dt=Re(7),lt=new go.Geometry,gt=new go.PathFigure(dt[0].x*nt,dt[0].y*et,!0);lt.add(gt);for(var mt=1;mt<7;mt++)gt.add(new go.PathSegment(go.PathSegment.Line,dt[mt].x*nt,dt[mt].y*et));return gt.add(new go.PathSegment(go.PathSegment.Line,dt[0].x*nt,dt[0].y*et).close()),Mt(dt),lt.spot1=new go.Spot(.2,.15),lt.spot2=new go.Spot(.8,.85),lt}),go.Shape.defineFigureGenerator("Octagon",function(Nt,nt,et){var dt=Re(8),lt=new go.Geometry,gt=new go.PathFigure(dt[0].x*nt,dt[0].y*et,!0);lt.add(gt);for(var mt=1;mt<8;mt++)gt.add(new go.PathSegment(go.PathSegment.Line,dt[mt].x*nt,dt[mt].y*et));return gt.add(new go.PathSegment(go.PathSegment.Line,dt[0].x*nt,dt[0].y*et).close()),Mt(dt),lt.spot1=new go.Spot(.15,.15),lt.spot2=new go.Spot(.85,.85),lt}),go.Shape.defineFigureGenerator("Nonagon",function(Nt,nt,et){var dt=Re(9),lt=new go.Geometry,gt=new go.PathFigure(dt[0].x*nt,dt[0].y*et,!0);lt.add(gt);for(var mt=1;mt<9;mt++)gt.add(new go.PathSegment(go.PathSegment.Line,dt[mt].x*nt,dt[mt].y*et));return gt.add(new go.PathSegment(go.PathSegment.Line,dt[0].x*nt,dt[0].y*et).close()),Mt(dt),lt.spot1=new go.Spot(.17,.13),lt.spot2=new go.Spot(.82,.82),lt}),go.Shape.defineFigureGenerator("Decagon",function(Nt,nt,et){var dt=Re(10),lt=new go.Geometry,gt=new go.PathFigure(dt[0].x*nt,dt[0].y*et,!0);lt.add(gt);for(var mt=1;mt<10;mt++)gt.add(new go.PathSegment(go.PathSegment.Line,dt[mt].x*nt,dt[mt].y*et));return gt.add(new go.PathSegment(go.PathSegment.Line,dt[0].x*nt,dt[0].y*et).close()),Mt(dt),lt.spot1=new go.Spot(.16,.16),lt.spot2=new go.Spot(.84,.84),lt}),go.Shape.defineFigureGenerator("Dodecagon",function(Nt,nt,et){var dt=Re(12),lt=new go.Geometry,gt=new go.PathFigure(dt[0].x*nt,dt[0].y*et,!0);lt.add(gt);for(var mt=1;mt<12;mt++)gt.add(new go.PathSegment(go.PathSegment.Line,dt[mt].x*nt,dt[mt].y*et));return gt.add(new go.PathSegment(go.PathSegment.Line,dt[0].x*nt,dt[0].y*et).close()),Mt(dt),lt.spot1=new go.Spot(.16,.16),lt.spot2=new go.Spot(.84,.84),lt}),go.Shape.defineFigureGenerator("FivePointedStar",function(Nt,nt,et){var dt=We(5),lt=new go.Geometry,gt=new go.PathFigure(dt[0].x*nt,dt[0].y*et,!0);lt.add(gt);for(var mt=1;mt<10;mt++)gt.add(new go.PathSegment(go.PathSegment.Line,dt[mt].x*nt,dt[mt].y*et));return gt.add(new go.PathSegment(go.PathSegment.Line,dt[0].x*nt,dt[0].y*et).close()),Mt(dt),lt.spot1=new go.Spot(.266,.333),lt.spot2=new go.Spot(.733,.733),lt}),go.Shape.defineFigureGenerator("SixPointedStar",function(Nt,nt,et){var dt=We(6),lt=new go.Geometry,gt=new go.PathFigure(dt[0].x*nt,dt[0].y*et,!0);lt.add(gt);for(var mt=1;mt<12;mt++)gt.add(new go.PathSegment(go.PathSegment.Line,dt[mt].x*nt,dt[mt].y*et));return gt.add(new go.PathSegment(go.PathSegment.Line,dt[0].x*nt,dt[0].y*et).close()),Mt(dt),lt.spot1=new go.Spot(.17,.25),lt.spot2=new go.Spot(.83,.75),lt}),go.Shape.defineFigureGenerator("SevenPointedStar",function(Nt,nt,et){var dt=We(7),lt=new go.Geometry,gt=new go.PathFigure(dt[0].x*nt,dt[0].y*et,!0);lt.add(gt);for(var mt=1;mt<14;mt++)gt.add(new go.PathSegment(go.PathSegment.Line,dt[mt].x*nt,dt[mt].y*et));return gt.add(new go.PathSegment(go.PathSegment.Line,dt[0].x*nt,dt[0].y*et).close()),Mt(dt),lt.spot1=new go.Spot(.222,.277),lt.spot2=new go.Spot(.777,.666),lt}),go.Shape.defineFigureGenerator("EightPointedStar",function(Nt,nt,et){var dt=We(8),lt=new go.Geometry,gt=new go.PathFigure(dt[0].x*nt,dt[0].y*et,!0);lt.add(gt);for(var mt=1;mt<16;mt++)gt.add(new go.PathSegment(go.PathSegment.Line,dt[mt].x*nt,dt[mt].y*et));return gt.add(new go.PathSegment(go.PathSegment.Line,dt[0].x*nt,dt[0].y*et).close()),Mt(dt),lt.spot1=new go.Spot(.25,.25),lt.spot2=new go.Spot(.75,.75),lt}),go.Shape.defineFigureGenerator("NinePointedStar",function(Nt,nt,et){var dt=We(9),lt=new go.Geometry,gt=new go.PathFigure(dt[0].x*nt,dt[0].y*et,!0);lt.add(gt);for(var mt=1;mt<18;mt++)gt.add(new go.PathSegment(go.PathSegment.Line,dt[mt].x*nt,dt[mt].y*et));return gt.add(new go.PathSegment(go.PathSegment.Line,dt[0].x*nt,dt[0].y*et).close()),Mt(dt),lt.spot1=new go.Spot(.222,.277),lt.spot2=new go.Spot(.777,.666),lt}),go.Shape.defineFigureGenerator("TenPointedStar",function(Nt,nt,et){var dt=We(10),lt=new go.Geometry,gt=new go.PathFigure(dt[0].x*nt,dt[0].y*et,!0);lt.add(gt);for(var mt=1;mt<20;mt++)gt.add(new go.PathSegment(go.PathSegment.Line,dt[mt].x*nt,dt[mt].y*et));return gt.add(new go.PathSegment(go.PathSegment.Line,dt[0].x*nt,dt[0].y*et).close()),Mt(dt),lt.spot1=new go.Spot(.281,.261),lt.spot2=new go.Spot(.723,.748),lt}),go.Shape.defineFigureGenerator("FivePointedBurst",function(Nt,nt,et){var dt=Yt(5),lt=new go.Geometry,gt=new go.PathFigure(dt[0].x*nt,dt[0].y*et,!0);lt.add(gt);for(var mt=1;mt<dt.length;mt+=3)gt.add(new go.PathSegment(go.PathSegment.Bezier,dt[mt+2].x*nt,dt[mt+2].y*et,dt[mt].x*nt,dt[mt].y*et,dt[mt+1].x*nt,dt[mt+1].y*et));return gt.segments.last().close(),Mt(dt),lt.spot1=new go.Spot(.222,.277),lt.spot2=new go.Spot(.777,.777),lt}),go.Shape.defineFigureGenerator("SixPointedBurst",function(Nt,nt,et){var dt=Yt(6),lt=new go.Geometry,gt=new go.PathFigure(dt[0].x*nt,dt[0].y*et,!0);lt.add(gt);for(var mt=1;mt<dt.length;mt+=3)gt.add(new go.PathSegment(go.PathSegment.Bezier,dt[mt+2].x*nt,dt[mt+2].y*et,dt[mt].x*nt,dt[mt].y*et,dt[mt+1].x*nt,dt[mt+1].y*et));return gt.segments.last().close(),Mt(dt),lt.spot1=new go.Spot(.17,.222),lt.spot2=new go.Spot(.833,.777),lt}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(Nt,nt,et){var dt=Yt(7),lt=new go.Geometry,gt=new go.PathFigure(dt[0].x*nt,dt[0].y*et,!0);lt.add(gt);for(var mt=1;mt<dt.length;mt+=3)gt.add(new go.PathSegment(go.PathSegment.Bezier,dt[mt+2].x*nt,dt[mt+2].y*et,dt[mt].x*nt,dt[mt].y*et,dt[mt+1].x*nt,dt[mt+1].y*et));return gt.segments.last().close(),Mt(dt),lt.spot1=new go.Spot(.222,.222),lt.spot2=new go.Spot(.777,.777),lt}),go.Shape.defineFigureGenerator("EightPointedBurst",function(Nt,nt,et){var dt=Yt(8),lt=new go.Geometry,gt=new go.PathFigure(dt[0].x*nt,dt[0].y*et,!0);lt.add(gt);for(var mt=1;mt<dt.length;mt+=3)gt.add(new go.PathSegment(go.PathSegment.Bezier,dt[mt+2].x*nt,dt[mt+2].y*et,dt[mt].x*nt,dt[mt].y*et,dt[mt+1].x*nt,dt[mt+1].y*et));return gt.segments.last().close(),Mt(dt),lt.spot1=new go.Spot(.222,.222),lt.spot2=new go.Spot(.777,.777),lt}),go.Shape.defineFigureGenerator("NinePointedBurst",function(Nt,nt,et){var dt=Yt(9),lt=new go.Geometry,gt=new go.PathFigure(dt[0].x*nt,dt[0].y*et,!0);lt.add(gt);for(var mt=1;mt<dt.length;mt+=3)gt.add(new go.PathSegment(go.PathSegment.Bezier,dt[mt+2].x*nt,dt[mt+2].y*et,dt[mt].x*nt,dt[mt].y*et,dt[mt+1].x*nt,dt[mt+1].y*et));return gt.segments.last().close(),Mt(dt),lt.spot1=new go.Spot(.222,.222),lt.spot2=new go.Spot(.777,.777),lt}),go.Shape.defineFigureGenerator("TenPointedBurst",function(Nt,nt,et){var dt=Yt(10),lt=new go.Geometry,gt=new go.PathFigure(dt[0].x*nt,dt[0].y*et,!0);lt.add(gt);for(var mt=1;mt<dt.length;mt+=3)gt.add(new go.PathSegment(go.PathSegment.Bezier,dt[mt+2].x*nt,dt[mt+2].y*et,dt[mt].x*nt,dt[mt].y*et,dt[mt+1].x*nt,dt[mt+1].y*et));return gt.segments.last().close(),Mt(dt),lt.spot1=new go.Spot(.222,.222),lt.spot2=new go.Spot(.777,.777),lt}),go.Shape.setFigureParameter("FramedRectangle",0,new Jn("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Jn("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(Nt,nt,et){var dt=Nt?Nt.parameter1:NaN,lt=Nt?Nt.parameter2:NaN;isNaN(dt)&&(dt=8),isNaN(lt)&&(lt=8);var gt=new go.Geometry,mt=new go.PathFigure(0,0,!0);return gt.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),mt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),mt.add(new go.PathSegment(go.PathSegment.Line,0,et).close()),dt<nt/2&&lt<et/2&&(mt.add(new go.PathSegment(go.PathSegment.Move,dt,lt)),mt.add(new go.PathSegment(go.PathSegment.Line,dt,et-lt)),mt.add(new go.PathSegment(go.PathSegment.Line,nt-dt,et-lt)),mt.add(new go.PathSegment(go.PathSegment.Line,nt-dt,lt).close())),gt.setSpots(0,0,1,1,dt,lt,-dt,-lt),gt}),go.Shape.setFigureParameter("Ring",0,new Jn("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(Nt,nt,et){var dt=Nt?Nt.parameter1:NaN;(isNaN(dt)||dt<0)&&(dt=8);var lt=nt/2,gt=new go.Geometry,mt=new go.PathFigure(nt,nt/2,!0);gt.add(mt),mt.add(new go.PathSegment(go.PathSegment.Arc,0,360,lt,lt,lt,lt).close());var St=Math.max(lt-dt,0);return St>0&&(mt.add(new go.PathSegment(go.PathSegment.Move,nt/2+St,nt/2)),mt.add(new go.PathSegment(go.PathSegment.Arc,0,-360,lt,lt,St,St).close())),gt.spot1=be,gt.spot2=jt,gt.defaultStretch=go.GraphObject.Uniform,gt}),go.Shape.defineFigureGenerator("Cloud",function(Nt,nt,et){return new go.Geometry().add(new go.PathFigure(.08034461*nt,.1944299*et,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*nt,.05349299*et,-.09239631*nt,.07836421*et,.1406031*nt,-.0542823*et)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*nt,.074219*et,.2450511*nt,-.00697547*et,.3776197*nt,-.01112067*et)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*nt,.07004196*et,.4539471*nt,0,.6066018*nt,-.02526587*et)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*nt,.08370865*et,.6914277*nt,-.01904177*et,.8921095*nt,-.01220843*et)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*nt,.3194596*et,1.036446*nt,.04105738*et,1.020377*nt,.3022052*et)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*nt,.562044*et,1.04448*nt,.360238*et,.992256*nt,.5219009*et)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*nt,.8217117*et,1.032337*nt,.5771781*et,1.018411*nt,.8120651*et)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*nt,.9156953*et,1.028411*nt,.9571472*et,.8556702*nt,1.052487*et)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*nt,.9310455*et,.7431877*nt,1.009325*et,.5624123*nt,1.021761*et)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*nt,.9344623*et,.4820677*nt,1.031761*et,.3030112*nt,1.002796*et)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*nt,.870098*et,.2329994*nt,1.01518*et,.03213784*nt,1.01518*et)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*nt,.6545475*et,-.02812061*nt,.9032597*et,-.01205169*nt,.6835638*et)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*nt,.4265613*et,-.01812061*nt,.6089503*et,-.00606892*nt,.4555777*et)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*nt,.1944299*et,-.01606892*nt,.3892545*et,-.01205169*nt,.1944299*et))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(Nt,nt,et){var dt=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(dt*nt,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-dt)*nt,0)).add(new go.PathSegment(go.PathSegment.Line,nt,dt*et)).add(new go.PathSegment(go.PathSegment.Line,nt,(1-dt)*et)).add(new go.PathSegment(go.PathSegment.Line,(1-dt)*nt,et)).add(new go.PathSegment(go.PathSegment.Line,dt*nt,et)).add(new go.PathSegment(go.PathSegment.Line,0,(1-dt)*et)).add(new go.PathSegment(go.PathSegment.Line,0,dt*et).close())).setSpots(dt/2,dt/2,1-dt/2,1-dt/2)}),go.Shape.setFigureParameter("Pie",0,new Jn("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Jn("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(Nt,nt,et){var dt=Nt?Nt.parameter1:NaN,lt=Nt?Nt.parameter2:NaN;isNaN(dt)&&(dt=0),isNaN(lt)&&(lt=315);var gt=dt%360;gt<0&&(gt+=360);var mt=lt%360,St=Math.min(nt,et)/2;return new go.Geometry().add(new go.PathFigure(St,St).add(new go.PathSegment(go.PathSegment.Arc,gt,mt,St,St,St,St).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(Nt,nt,et){var dt=ge/Math.SQRT2*.5,lt=Math.SQRT2/2,gt=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(nt,et,!0).add(new go.PathSegment(go.PathSegment.Bezier,lt*nt,gt*et,nt,(1-dt)*et,(lt+dt)*nt,(gt+dt)*et)).add(new go.PathSegment(go.PathSegment.Line,0,et).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Jn("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(Nt,nt,et){var dt=Nt?Nt.parameter1:NaN;(isNaN(dt)||dt<0)&&(dt=30);var lt=Math.min(dt,nt)/2,gt=nt/2,mt=et/2;return new go.Geometry().add(new go.PathFigure(gt-lt,0,!0).add(new go.PathSegment(go.PathSegment.Line,gt+lt,0)).add(new go.PathSegment(go.PathSegment.Line,gt+lt,mt-lt)).add(new go.PathSegment(go.PathSegment.Line,nt,mt-lt)).add(new go.PathSegment(go.PathSegment.Line,nt,mt+lt)).add(new go.PathSegment(go.PathSegment.Line,gt+lt,mt+lt)).add(new go.PathSegment(go.PathSegment.Line,gt+lt,et)).add(new go.PathSegment(go.PathSegment.Line,gt-lt,et)).add(new go.PathSegment(go.PathSegment.Line,gt-lt,mt+lt)).add(new go.PathSegment(go.PathSegment.Line,0,mt+lt)).add(new go.PathSegment(go.PathSegment.Line,0,mt-lt)).add(new go.PathSegment(go.PathSegment.Line,gt-lt,mt-lt).close()))}),go.Shape.setFigureParameter("ThinCross",0,new Jn("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(Nt,nt,et){var dt=Nt?Nt.parameter1:NaN;(isNaN(dt)||dt<0)&&(dt=10);var lt=Math.min(dt,nt)/2,gt=nt/2,mt=et/2;return new go.Geometry().add(new go.PathFigure(gt-lt,0,!0).add(new go.PathSegment(go.PathSegment.Line,gt+lt,0)).add(new go.PathSegment(go.PathSegment.Line,gt+lt,mt-lt)).add(new go.PathSegment(go.PathSegment.Line,nt,mt-lt)).add(new go.PathSegment(go.PathSegment.Line,nt,mt+lt)).add(new go.PathSegment(go.PathSegment.Line,gt+lt,mt+lt)).add(new go.PathSegment(go.PathSegment.Line,gt+lt,et)).add(new go.PathSegment(go.PathSegment.Line,gt-lt,et)).add(new go.PathSegment(go.PathSegment.Line,gt-lt,mt+lt)).add(new go.PathSegment(go.PathSegment.Line,0,mt+lt)).add(new go.PathSegment(go.PathSegment.Line,0,mt-lt)).add(new go.PathSegment(go.PathSegment.Line,gt-lt,mt-lt).close()))}),go.Shape.setFigureParameter("ThickX",0,new Jn("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(Nt,nt,et){var dt=Nt?Nt.parameter1:NaN;if((isNaN(dt)||dt<0)&&(dt=30),nt===0||et===0){var lt=new go.Geometry(go.Geometry.Rectangle);return lt.startX=0,lt.startY=0,lt.endX=nt,lt.endY=et,lt}else{var gt=nt/2,mt=et/2,St=Math.atan2(et,nt),bt=dt-Math.min(Math.cos(St)*dt/2,gt),It=dt-Math.min(Math.sin(St)*dt/2,mt),lt=new go.Geometry,Ht=new go.PathFigure(bt,0,!0);return lt.add(Ht),Ht.add(new go.PathSegment(go.PathSegment.Line,gt,.2*et)),Ht.add(new go.PathSegment(go.PathSegment.Line,nt-bt,0)),Ht.add(new go.PathSegment(go.PathSegment.Line,nt,It)),Ht.add(new go.PathSegment(go.PathSegment.Line,.8*nt,mt)),Ht.add(new go.PathSegment(go.PathSegment.Line,nt,et-It)),Ht.add(new go.PathSegment(go.PathSegment.Line,nt-bt,et)),Ht.add(new go.PathSegment(go.PathSegment.Line,gt,.8*et)),Ht.add(new go.PathSegment(go.PathSegment.Line,bt,et)),Ht.add(new go.PathSegment(go.PathSegment.Line,0,et-It)),Ht.add(new go.PathSegment(go.PathSegment.Line,.2*nt,mt)),Ht.add(new go.PathSegment(go.PathSegment.Line,0,It).close()),lt}}),go.Shape.setFigureParameter("ThinX",0,new Jn("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(Nt,nt,et){var dt=Nt?Nt.parameter1:NaN;(isNaN(dt)||dt<0)&&(dt=10);var lt=new go.Geometry,gt=new go.PathFigure(.1*nt,0,!0);return lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.4*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,0)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,.1*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,.5*et)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,.9*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,et)),gt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.6*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,.9*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,.5*et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,.1*et).close()),lt}),go.Shape.setFigureParameter("SquareIBeam",0,new Jn("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(Nt,nt,et){var dt=Nt?Nt.parameter1:NaN;isNaN(dt)&&(dt=.2);var lt=new go.Geometry,gt=new go.PathFigure(0,0,!0);return lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,dt*et)),gt.add(new go.PathSegment(go.PathSegment.Line,(.5+dt/2)*nt,dt*et)),gt.add(new go.PathSegment(go.PathSegment.Line,(.5+dt/2)*nt,(1-dt)*et)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,(1-dt)*et)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,(1-dt)*et)),gt.add(new go.PathSegment(go.PathSegment.Line,(.5-dt/2)*nt,(1-dt)*et)),gt.add(new go.PathSegment(go.PathSegment.Line,(.5-dt/2)*nt,dt*et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,dt*et).close()),lt}),go.Shape.setFigureParameter("RoundedIBeam",0,new Jn("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(Nt,nt,et){var dt=Nt?Nt.parameter1:NaN;isNaN(dt)&&(dt=.5);var lt=new go.Geometry,gt=new go.PathFigure(0,0,!0);return lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),gt.add(new go.PathSegment(go.PathSegment.Bezier,nt,et,Math.abs(1-dt)*nt,.25*et,Math.abs(1-dt)*nt,.75*et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,et)),gt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,dt*nt,.75*et,dt*nt,.25*et).close()),lt}),go.Shape.defineFigureGenerator("HalfEllipse",function(Nt,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,nt,.5*et,ge*nt,0,nt,(.5-ge/2)*et)).add(new go.PathSegment(go.PathSegment.Bezier,0,et,nt,(.5+ge/2)*et,ge*nt,et).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(Nt,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,et,nt,0,nt,et)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*nt,.75*et,.5*nt,.25*et).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(Nt,nt,et){return new go.Geometry().add(new go.PathFigure(.5*nt,et,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*et,.1*nt,.8*et,0,.5*et)).add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.3*et,0,0,.45*nt,0)).add(new go.PathSegment(go.PathSegment.Bezier,nt,.3*et,.55*nt,0,nt,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,et,nt,.5*et,.9*nt,.8*et).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(Nt,nt,et){return new go.Geometry().add(new go.PathFigure(.5*nt,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*nt,.01*et)).add(new go.PathSegment(go.PathSegment.Bezier,nt,.5*et,.6*nt,.2*et,nt,.25*et)).add(new go.PathSegment(go.PathSegment.Bezier,.55*nt,.7*et,nt,.8*et,.6*nt,.8*et)).add(new go.PathSegment(go.PathSegment.Bezier,.75*nt,et,.5*nt,.75*et,.55*nt,.95*et)).add(new go.PathSegment(go.PathSegment.Line,.25*nt,et)).add(new go.PathSegment(go.PathSegment.Bezier,.45*nt,.7*et,.45*nt,.95*et,.5*nt,.75*et)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*et,.4*nt,.8*et,0,.8*et)).add(new go.PathSegment(go.PathSegment.Bezier,.49*nt,.01*et,0,.25*et,.4*nt,.2*et).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(.4*nt,.6*et,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,.15*nt,et,.5*nt,.75*et,.45*nt,.95*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.85*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.6*nt,.6*et,.55*nt,.95*et,.5*nt,.75*et));var gt=.2,mt=.3,St=0,bt=gt*ge;return lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+mt)*nt,(.5+gt+St)*et,(.5-gt+mt)*nt,(.5+bt+St)*et,(.5-bt+mt)*nt,(.5+gt+St)*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+gt+mt)*nt,(.5+St)*et,(.5+bt+mt)*nt,(.5+gt+St)*et,(.5+gt+mt)*nt,(.5+bt+St)*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+mt)*nt,(.5-gt+St)*et,(1-.5+gt+mt)*nt,(.5-bt+St)*et,(.5+bt+mt)*nt,(.5-gt+St)*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.65*nt,.36771243*et,(.5-bt+mt)*nt,(.5-gt+St)*et,(.5-gt+mt+.05)*nt,(.5-bt+St-.02)*et)),gt=.2,mt=0,St=-.3,bt=gt*ge,lt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+gt+mt)*nt,(.5+St)*et,(.5+bt+mt)*nt,(.5+gt+St)*et,(.5+gt+mt)*nt,(.5+bt+St)*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+mt)*nt,(.5-gt+St)*et,(1-.5+gt+mt)*nt,(.5-bt+St)*et,(.5+bt+mt)*nt,(.5-gt+St)*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-gt+mt)*nt,(.5+St)*et,(.5-bt+mt)*nt,(.5-gt+St)*et,(.5-gt+mt)*nt,(.5-bt+St)*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-bt+mt)*nt,(.5+gt+St)*et,(.5-gt+mt)*nt,(.5+bt+St)*et,(.5-bt+mt)*nt,(.5+gt+St)*et)),gt=.2,mt=-.3,St=0,bt=gt*ge,lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+mt)*nt,(.5-gt+St)*et,(1-.5+gt+mt-.05)*nt,(.5-bt+St-.02)*et,(.5+bt+mt)*nt,(.5-gt+St)*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-gt+mt)*nt,(.5+St)*et,(.5-bt+mt)*nt,(.5-gt+St)*et,(.5-gt+mt)*nt,(.5-bt+St)*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+mt)*nt,(.5+gt+St)*et,(.5-gt+mt)*nt,(.5+bt+St)*et,(.5-bt+mt)*nt,(.5+gt+St)*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.4*nt,.6*et,(.5+bt+mt)*nt,(.5+gt+St)*et,(.5+gt+mt)*nt,(.5+bt+St)*et).close()),dt.setSpots(.06,.33,.93,.68),dt}),go.Shape.defineFigureGenerator("YinYang",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(nt*.5,0,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Arc,270,180,nt*.5,nt*.5,nt*.5,nt*.5)),lt.add(new go.PathSegment(go.PathSegment.Arc,90,-180,nt*.5,nt*.75,nt*.25,nt*.25)),lt.add(new go.PathSegment(go.PathSegment.Arc,90,180,nt*.5,nt*.25,nt*.25,nt*.25));var gt=.1,mt=.5,St=.25;return lt.add(new go.PathSegment(go.PathSegment.Move,(mt+gt)*nt,St*et)),lt.add(new go.PathSegment(go.PathSegment.Arc,0,-360,nt*mt,et*St,gt*nt,gt*nt).close()),lt=new go.PathFigure(nt*.5,0,!1),dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Arc,270,-180,nt*.5,nt*.5,nt*.5,nt*.5)),St=.75,lt=new go.PathFigure((mt+gt)*nt,St*et,!0),dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Arc,0,360,nt*mt,et*St,gt*nt,gt*nt).close()),dt.defaultStretch=go.GraphObject.Uniform,dt}),go.Shape.defineFigureGenerator("Peace",function(Nt,nt,et){var dt=.8535533905932737,lt=.5*nt,gt=.5*et;return new go.Geometry().add(new go.PathFigure(lt,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,lt,gt,lt,gt)).add(new go.PathSegment(go.PathSegment.Line,lt,et)).add(new go.PathSegment(go.PathSegment.Move,lt,gt)).add(new go.PathSegment(go.PathSegment.Line,(1-dt)*nt,dt*et)).add(new go.PathSegment(go.PathSegment.Move,lt,gt)).add(new go.PathSegment(go.PathSegment.Line,dt*nt,dt*et)))}),go.Shape.defineFigureGenerator("NotAllowed",function(Nt,nt,et){var dt=new go.Geometry,lt=ge*.5,gt=.5,mt=.5,St=.5,bt=new go.PathFigure(mt*nt,(St-gt)*et);dt.add(bt),bt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-gt)*nt,St*et,(mt-lt)*nt,(St-gt)*et,(mt-gt)*nt,(St-lt)*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St+gt)*et,(mt-gt)*nt,(St+lt)*et,(mt-lt)*nt,(St+gt)*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*nt,St*et,(mt+lt)*nt,(St+gt)*et,(mt+gt)*nt,(St+lt)*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St-gt)*et,(mt+gt)*nt,(St-lt)*et,(mt+lt)*nt,(St-gt)*et)),gt=.4,lt=ge*.4;var It=yt(),Ht=yt(),se=yt(),Vt=yt();Fe(mt,St-gt,mt+lt,St-gt,mt+gt,St-lt,mt+gt,St,.42,It,Ht,se,Vt,Vt);var Jt=yt(),Ee=yt(),we=yt();Fe(mt,St-gt,mt+lt,St-gt,mt+gt,St-lt,mt+gt,St,.58,Vt,Vt,we,Jt,Ee);var De=yt(),Le=yt(),sn=yt();Fe(mt,St+gt,mt-lt,St+gt,mt-gt,St+lt,mt-gt,St,.42,De,Le,sn,Vt,Vt);var Fn=yt(),fn=yt(),Ge=yt();return Fe(mt,St+gt,mt-lt,St+gt,mt-gt,St+lt,mt-gt,St,.58,Vt,Vt,Ge,Fn,fn),bt.add(new go.PathSegment(go.PathSegment.Move,Ge.x*nt,Ge.y*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-gt)*nt,St*et,Fn.x*nt,Fn.y*et,fn.x*nt,fn.y*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St-gt)*et,(mt-gt)*nt,(St-lt)*et,(mt-lt)*nt,(St-gt)*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,se.x*nt,se.y*et,It.x*nt,It.y*et,Ht.x*nt,Ht.y*et)),bt.add(new go.PathSegment(go.PathSegment.Line,Ge.x*nt,Ge.y*et).close()),bt.add(new go.PathSegment(go.PathSegment.Move,sn.x*nt,sn.y*et)),bt.add(new go.PathSegment(go.PathSegment.Line,we.x*nt,we.y*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*nt,St*et,Jt.x*nt,Jt.y*et,Ee.x*nt,Ee.y*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St+gt)*et,(mt+gt)*nt,(St+lt)*et,(mt+lt)*nt,(St+gt)*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,sn.x*nt,sn.y*et,De.x*nt,De.y*et,Le.x*nt,Le.y*et).close()),te(It),te(Ht),te(se),te(Vt),te(Jt),te(Ee),te(we),te(De),te(Le),te(sn),te(Fn),te(fn),te(Ge),dt.defaultStretch=go.GraphObject.Uniform,dt}),go.Shape.defineFigureGenerator("Fragile",function(Nt,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*nt,0)).add(new go.PathSegment(go.PathSegment.Line,.2*nt,.15*et)).add(new go.PathSegment(go.PathSegment.Line,.3*nt,.25*et)).add(new go.PathSegment(go.PathSegment.Line,.29*nt,.33*et)).add(new go.PathSegment(go.PathSegment.Line,.35*nt,.25*et)).add(new go.PathSegment(go.PathSegment.Line,.3*nt,.15*et)).add(new go.PathSegment(go.PathSegment.Line,.4*nt,0)).add(new go.PathSegment(go.PathSegment.Line,nt,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*nt,.5*et,nt,.25*et,.75*nt,.5*et)).add(new go.PathSegment(go.PathSegment.Line,.55*nt,.9*et)).add(new go.PathSegment(go.PathSegment.Line,.7*nt,.9*et)).add(new go.PathSegment(go.PathSegment.Line,.7*nt,et)).add(new go.PathSegment(go.PathSegment.Line,.3*nt,et)).add(new go.PathSegment(go.PathSegment.Line,.3*nt,.9*et)).add(new go.PathSegment(go.PathSegment.Line,.45*nt,.9*et)).add(new go.PathSegment(go.PathSegment.Line,.45*nt,.5*et)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*nt,.5*et,0,.25*et).close()))}),go.Shape.setFigureParameter("HourGlass",0,new Jn("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(Nt,nt,et){var dt=Nt?Nt.parameter1:NaN;(isNaN(dt)||dt<0)&&(dt=30),dt>nt&&(dt=nt);var lt=(nt-dt)/2,gt=lt+dt;return new go.Geometry().add(new go.PathFigure(gt,.5*et).add(new go.PathSegment(go.PathSegment.Line,nt,et)).add(new go.PathSegment(go.PathSegment.Line,0,et)).add(new go.PathSegment(go.PathSegment.Line,lt,.5*et)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,nt,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(Nt,nt,et){return new go.Geometry().add(new go.PathFigure(0,.55*et).add(new go.PathSegment(go.PathSegment.Line,.6*nt,0)).add(new go.PathSegment(go.PathSegment.Line,.3*nt,.45*et)).add(new go.PathSegment(go.PathSegment.Line,nt,.45*et)).add(new go.PathSegment(go.PathSegment.Line,.4*nt,et)).add(new go.PathSegment(go.PathSegment.Line,.7*nt,.55*et).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(Nt,nt,et){var dt=new go.Geometry,lt=ge*.4,gt=.4,mt=.5,St=.5,bt=yt(),It=yt(),Ht=yt(),se=yt(),Vt=new go.PathFigure((mt-gt)*nt,St*et,!1);dt.add(Vt),Vt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St-gt)*et,(mt-gt)*nt,(St-lt)*et,(mt-lt)*nt,(St-gt)*et)),Fe(mt,St-gt,mt+lt,St-gt,mt+gt,St-lt,mt+gt,St,.44,Ht,se,It,bt,bt),Vt.add(new go.PathSegment(go.PathSegment.Bezier,It.x*nt,It.y*et,Ht.x*nt,Ht.y*et,se.x*nt,se.y*et));var Jt=Dt(It.x,It.y);Fe(mt,St-gt,mt+lt,St-gt,mt+gt,St-lt,mt+gt,St,.56,bt,bt,It,Ht,se);var Ee=Dt(It.x,It.y);Vt.add(new go.PathSegment(go.PathSegment.Line,(Jt.x*.1+.95*.9)*nt,Jt.y*.1*et)),Vt.add(new go.PathSegment(go.PathSegment.Line,.85*nt,Jt.y*.1*et)),Vt.add(new go.PathSegment(go.PathSegment.Line,.85*nt,0)),Vt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),Vt.add(new go.PathSegment(go.PathSegment.Line,nt,.15*et)),Vt.add(new go.PathSegment(go.PathSegment.Line,(Ee.x*.1+.9)*nt,.15*et)),Vt.add(new go.PathSegment(go.PathSegment.Line,(Ee.x*.1+.9)*nt,(Ee.y*.1+.05*.9)*et)),Vt.add(new go.PathSegment(go.PathSegment.Line,Ee.x*nt,Ee.y*et)),Vt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*nt,St*et,Ht.x*nt,Ht.y*et,se.x*nt,se.y*et)),Vt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St+gt)*et,(mt+gt)*nt,(St+lt)*et,(mt+lt)*nt,(St+gt)*et)),Vt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-gt)*nt,St*et,(mt-lt)*nt,(St+gt)*et,(mt-gt)*nt,(St+lt)*et)),gt=.35,lt=ge*.35;var we=new go.PathFigure(mt*nt,(St-gt)*et,!1);dt.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,(mt-gt)*nt,St*et,(mt-lt)*nt,(St-gt)*et,(mt-gt)*nt,(St-lt)*et)),we.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St+gt)*et,(mt-gt)*nt,(St+lt)*et,(mt-lt)*nt,(St+gt)*et)),we.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*nt,St*et,(mt+lt)*nt,(St+gt)*et,(mt+gt)*nt,(St+lt)*et)),we.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St-gt)*et,(mt+gt)*nt,(St-lt)*et,(mt+lt)*nt,(St-gt)*et));var De=new go.PathFigure((mt-gt)*nt,St*et,!1);return dt.add(De),te(bt),te(It),te(Ht),te(se),te(Jt),te(Ee),dt.spot1=new go.Spot(.202,.257),dt.spot2=new go.Spot(.792,.739),dt.defaultStretch=go.GraphObject.Uniform,dt}),go.Shape.defineFigureGenerator("GenderFemale",function(Nt,nt,et){var dt=new go.Geometry,lt=.375,gt=0,mt=-.125,St=lt*ge,bt=new go.PathFigure((.525+gt)*nt,(.5+lt+mt)*et,!1);dt.add(bt),bt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+lt+gt)*nt,(.5+mt)*et,(.5+St+gt)*nt,(.5+lt+mt)*et,(.5+lt+gt)*nt,(.5+St+mt)*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+gt)*nt,(.5-lt+mt)*et,(1-.5+lt+gt)*nt,(.5-St+mt)*et,(.5+St+gt)*nt,(.5-lt+mt)*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-lt+gt)*nt,(.5+mt)*et,(.5-St+gt)*nt,(.5-lt+mt)*et,(.5-lt+gt)*nt,(.5-St+mt)*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,(.475+gt)*nt,(.5+lt+mt)*et,(.5-lt+gt)*nt,(.5+St+mt)*et,(.5-St+gt)*nt,(.5+lt+mt)*et)),bt.add(new go.PathSegment(go.PathSegment.Line,.475*nt,.85*et)),bt.add(new go.PathSegment(go.PathSegment.Line,.425*nt,.85*et)),bt.add(new go.PathSegment(go.PathSegment.Line,.425*nt,.9*et)),bt.add(new go.PathSegment(go.PathSegment.Line,.475*nt,.9*et)),bt.add(new go.PathSegment(go.PathSegment.Line,.475*nt,et)),bt.add(new go.PathSegment(go.PathSegment.Line,.525*nt,et)),bt.add(new go.PathSegment(go.PathSegment.Line,.525*nt,.9*et)),bt.add(new go.PathSegment(go.PathSegment.Line,.575*nt,.9*et)),bt.add(new go.PathSegment(go.PathSegment.Line,.575*nt,.85*et)),bt.add(new go.PathSegment(go.PathSegment.Line,.525*nt,.85*et).close()),lt=.325,gt=0,mt=-.125,St=lt*ge;var bt=new go.PathFigure((1-.5+lt+gt)*nt,(.5+mt)*et,!1);dt.add(bt),bt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+gt)*nt,(.5+lt+mt)*et,(.5+lt+gt)*nt,(.5+St+mt)*et,(.5+St+gt)*nt,(.5+lt+mt)*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-lt+gt)*nt,(.5+mt)*et,(.5-St+gt)*nt,(.5+lt+mt)*et,(.5-lt+gt)*nt,(.5+St+mt)*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+gt)*nt,(.5-lt+mt)*et,(.5-lt+gt)*nt,(.5-St+mt)*et,(.5-St+gt)*nt,(.5-lt+mt)*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+lt+gt)*nt,(.5+mt)*et,(.5+St+gt)*nt,(.5-lt+mt)*et,(1-.5+lt+gt)*nt,(.5-St+mt)*et));var bt=new go.PathFigure((.525+gt)*nt,(.5+lt+mt)*et,!1);return dt.add(bt),dt.spot1=new go.Spot(.232,.136),dt.spot2=new go.Spot(.682,.611),dt.defaultStretch=go.GraphObject.Uniform,dt}),go.Shape.defineFigureGenerator("LogicImplies",function(Nt,nt,et){var dt=Nt?Nt.parameter1:NaN;return isNaN(dt)&&(dt=.2),new go.Geometry().add(new go.PathFigure((1-dt)*nt,0,!1).add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)).add(new go.PathSegment(go.PathSegment.Line,(1-dt)*nt,et)).add(new go.PathSegment(go.PathSegment.Move,0,.5*et)).add(new go.PathSegment(go.PathSegment.Line,nt,.5*et))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(Nt,nt,et){var dt=Nt?Nt.parameter1:NaN;return isNaN(dt)&&(dt=.2),new go.Geometry().add(new go.PathFigure((1-dt)*nt,0,!1).add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)).add(new go.PathSegment(go.PathSegment.Line,(1-dt)*nt,et)).add(new go.PathSegment(go.PathSegment.Move,0,.5*et)).add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)).add(new go.PathSegment(go.PathSegment.Move,dt*nt,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*et)).add(new go.PathSegment(go.PathSegment.Line,dt*nt,et))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(Nt,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,nt,0)).add(new go.PathSegment(go.PathSegment.Line,nt,et)))}),go.Shape.defineFigureGenerator("LogicAnd",function(Nt,nt,et){return new go.Geometry().add(new go.PathFigure(0,et,!1).add(new go.PathSegment(go.PathSegment.Line,.5*nt,0)).add(new go.PathSegment(go.PathSegment.Line,nt,et))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(Nt,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)).add(new go.PathSegment(go.PathSegment.Line,nt,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(Nt,nt,et){var dt=new go.Geometry().add(new go.PathFigure(.5*nt,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)).add(new go.PathSegment(go.PathSegment.Move,0,.5*et)).add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*nt,.5*et,.5*nt,.5*et)));return dt.defaultStretch=go.GraphObject.Uniform,dt}),go.Shape.defineFigureGenerator("LogicTruth",function(Nt,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,nt,0)).add(new go.PathSegment(go.PathSegment.Move,.5*nt,0)).add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(Nt,nt,et){return new go.Geometry().add(new go.PathFigure(0,et,!1).add(new go.PathSegment(go.PathSegment.Line,nt,et)).add(new go.PathSegment(go.PathSegment.Move,.5*nt,et)).add(new go.PathSegment(go.PathSegment.Line,.5*nt,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(Nt,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,nt,0)).add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)).add(new go.PathSegment(go.PathSegment.Line,0,.5*et)).add(new go.PathSegment(go.PathSegment.Move,nt,.5*et)).add(new go.PathSegment(go.PathSegment.Line,nt,et)).add(new go.PathSegment(go.PathSegment.Line,0,et)))}),go.Shape.defineFigureGenerator("LogicForAll",function(Nt,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)).add(new go.PathSegment(go.PathSegment.Line,nt,0)).add(new go.PathSegment(go.PathSegment.Move,.25*nt,.5*et)).add(new go.PathSegment(go.PathSegment.Line,.75*nt,.5*et))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(Nt,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,nt,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*et)).add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)).add(new go.PathSegment(go.PathSegment.Move,0,et)).add(new go.PathSegment(go.PathSegment.Line,nt,et))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(Nt,nt,et){var dt=.5;return new go.Geometry().add(new go.PathFigure(0,et,!1).add(new go.PathSegment(go.PathSegment.Line,0,dt*et)).add(new go.PathSegment(go.PathSegment.Arc,180,180,dt*nt,dt*et,dt*nt,dt*et)).add(new go.PathSegment(go.PathSegment.Line,nt,et))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(Nt,nt,et){var dt=.5;return new go.Geometry().add(new go.PathFigure(nt,0,!1).add(new go.PathSegment(go.PathSegment.Line,nt,dt*et)).add(new go.PathSegment(go.PathSegment.Arc,0,180,dt*nt,dt*et,dt*nt,dt*et)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new Jn("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Jn("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(Nt,nt,et){var dt=Nt?Nt.parameter1:NaN;isNaN(dt)&&(dt=.3);var lt=Nt?Nt.parameter2:NaN;isNaN(lt)&&(lt=.3);var gt=(1-dt)*nt,mt=(.5-lt/2)*et,St=(.5+lt/2)*et,bt=new go.Geometry,It=new go.PathFigure(0,mt,!0);bt.add(It),It.add(new go.PathSegment(go.PathSegment.Line,gt,mt)),It.add(new go.PathSegment(go.PathSegment.Line,gt,0)),It.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),It.add(new go.PathSegment(go.PathSegment.Line,gt,et)),It.add(new go.PathSegment(go.PathSegment.Line,gt,St)),It.add(new go.PathSegment(go.PathSegment.Line,0,St).close()),bt.spot1=new go.Spot(0,mt/et);var Ht=re(0,St/et,1,St/et,gt/nt,1,1,.5,yt());return bt.spot2=new go.Spot(Ht.x,Ht.y),te(Ht),bt}),go.Shape.setFigureParameter("Arrow2",0,new Jn("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Jn("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(Nt,nt,et){var dt=Nt?Nt.parameter1:NaN;isNaN(dt)&&(dt=30),dt>nt&&(dt=nt);var lt=Nt?Nt.parameter2:NaN;isNaN(lt)&&(lt=30),lt=Math.min(lt,et/2);var gt=nt-dt,mt=(et-lt)/2,St=mt+lt,bt=new go.Geometry,It=new go.PathFigure(0,mt,!0);bt.add(It),It.add(new go.PathSegment(go.PathSegment.Line,gt,mt)),It.add(new go.PathSegment(go.PathSegment.Line,gt,0)),It.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),It.add(new go.PathSegment(go.PathSegment.Line,gt,et)),It.add(new go.PathSegment(go.PathSegment.Line,gt,St)),It.add(new go.PathSegment(go.PathSegment.Line,0,St).close()),bt.spot1=new go.Spot(0,mt/et);var Ht=re(0,St/et,1,St/et,gt/nt,1,1,.5,yt());return bt.spot2=new go.Spot(Ht.x,Ht.y),te(Ht),bt}),go.Shape.defineFigureGenerator("Chevron",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(0,0,!0);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.5*et).close()),dt}),go.Shape.defineFigureGenerator("DoubleArrow",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(0,0,!0);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,.214*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,1*nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,1*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,.786*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,1*et).close()),dt}),go.Shape.setFigureParameter("DoubleEndArrow",0,new Jn("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(Nt,nt,et){var dt=Nt?Nt.parameter1:NaN;isNaN(dt)&&(dt=.3);var lt=(.5-dt/2)*et,gt=(.5+dt/2)*et,mt=new go.Geometry,St=new go.PathFigure(nt,.5*et,!0);mt.add(St),St.add(new go.PathSegment(go.PathSegment.Line,.7*nt,et)),St.add(new go.PathSegment(go.PathSegment.Line,.7*nt,gt)),St.add(new go.PathSegment(go.PathSegment.Line,.3*nt,gt)),St.add(new go.PathSegment(go.PathSegment.Line,.3*nt,et)),St.add(new go.PathSegment(go.PathSegment.Line,0,.5*et)),St.add(new go.PathSegment(go.PathSegment.Line,.3*nt,0)),St.add(new go.PathSegment(go.PathSegment.Line,.3*nt,lt)),St.add(new go.PathSegment(go.PathSegment.Line,.7*nt,lt)),St.add(new go.PathSegment(go.PathSegment.Line,.7*nt,0).close());var bt=re(0,.5,.3,0,0,lt/et,.1,lt/et,yt());return mt.spot1=new go.Spot(bt.x,bt.y),bt=re(.7,1,1,.5,0,gt/et,1,gt/et,bt),mt.spot2=new go.Spot(bt.x,bt.y),te(bt),mt}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Jn("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Jn("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(Nt,nt,et){var dt=Nt?Nt.parameter1:NaN;isNaN(dt)&&(dt=40);var lt=Nt?Nt.parameter2:NaN;isNaN(lt)&&(lt=100);var gt=(et-dt)/2,mt=gt+dt,St=(et-lt)/2,bt=St+lt;(dt>et||lt>et)&&(lt>dt?(dt=dt*et/lt,gt=(et-dt)/2,mt=gt+dt,St=0,bt=et):(gt=0,mt=et,St=0,bt=et));var It=new go.Geometry,Ht=new go.PathFigure(nt,.5*et,!0);It.add(Ht),Ht.add(new go.PathSegment(go.PathSegment.Line,.7*nt,bt)),Ht.add(new go.PathSegment(go.PathSegment.Line,.7*nt,mt)),Ht.add(new go.PathSegment(go.PathSegment.Line,.3*nt,mt)),Ht.add(new go.PathSegment(go.PathSegment.Line,.3*nt,bt)),Ht.add(new go.PathSegment(go.PathSegment.Line,0,.5*et)),Ht.add(new go.PathSegment(go.PathSegment.Line,.3*nt,St)),Ht.add(new go.PathSegment(go.PathSegment.Line,.3*nt,gt)),Ht.add(new go.PathSegment(go.PathSegment.Line,.7*nt,gt)),Ht.add(new go.PathSegment(go.PathSegment.Line,.7*nt,St).close());var se=re(0,.5,.3,St/et,0,gt/et,1,gt/et,yt());return It.spot1=new go.Spot(se.x,se.y),se=re(.7,bt/et,1,.5,0,mt/et,1,mt/et,se),It.spot2=new go.Spot(se.x,se.y),te(se),It}),go.Shape.setFigureParameter("IBeamArrow",0,new Jn("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(Nt,nt,et){var dt=Nt?Nt.parameter1:NaN;isNaN(dt)&&(dt=.3);var lt=(.5-dt/2)*et,gt=(.5+dt/2)*et,mt=new go.Geometry,St=new go.PathFigure(nt,.5*et,!0);mt.add(St),St.add(new go.PathSegment(go.PathSegment.Line,.7*nt,et)),St.add(new go.PathSegment(go.PathSegment.Line,.7*nt,gt)),St.add(new go.PathSegment(go.PathSegment.Line,.2*nt,gt)),St.add(new go.PathSegment(go.PathSegment.Line,.2*nt,et)),St.add(new go.PathSegment(go.PathSegment.Line,0,et)),St.add(new go.PathSegment(go.PathSegment.Line,0,0)),St.add(new go.PathSegment(go.PathSegment.Line,.2*nt,0)),St.add(new go.PathSegment(go.PathSegment.Line,.2*nt,lt)),St.add(new go.PathSegment(go.PathSegment.Line,.7*nt,lt)),St.add(new go.PathSegment(go.PathSegment.Line,.7*nt,0).close()),mt.spot1=new go.Spot(0,lt/et);var bt=re(.7,1,1,.5,0,gt/et,1,gt/et,yt());return mt.spot2=new go.Spot(bt.x,bt.y),te(bt),mt}),go.Shape.setFigureParameter("IBeamArrow2",0,new Jn("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Jn("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(Nt,nt,et){var dt=Nt?Nt.parameter1:NaN;isNaN(dt)&&(dt=40);var lt=Nt?Nt.parameter2:NaN;isNaN(lt)&&(lt=100);var gt=(et-dt)/2,mt=gt+dt,St=(et-lt)/2,bt=St+lt;(dt>et||lt>et)&&(lt>dt?(dt=dt*et/lt,gt=(et-dt)/2,mt=gt+dt,St=0,bt=et):(gt=0,mt=et,St=0,bt=et));var It=new go.Geometry,Ht=new go.PathFigure(nt,.5*et,!0);It.add(Ht),Ht.add(new go.PathSegment(go.PathSegment.Line,.7*nt,bt)),Ht.add(new go.PathSegment(go.PathSegment.Line,.7*nt,mt)),Ht.add(new go.PathSegment(go.PathSegment.Line,.2*nt,mt)),Ht.add(new go.PathSegment(go.PathSegment.Line,.2*nt,bt)),Ht.add(new go.PathSegment(go.PathSegment.Line,0,bt)),Ht.add(new go.PathSegment(go.PathSegment.Line,0,St)),Ht.add(new go.PathSegment(go.PathSegment.Line,.2*nt,St)),Ht.add(new go.PathSegment(go.PathSegment.Line,.2*nt,gt)),Ht.add(new go.PathSegment(go.PathSegment.Line,.7*nt,gt)),Ht.add(new go.PathSegment(go.PathSegment.Line,.7*nt,St).close()),It.spot1=new go.Spot(0,gt/et);var se=re(.7,bt/et,1,.5,0,mt/et,1,mt/et,yt());return It.spot2=new go.Spot(se.x,se.y),te(se),It}),go.Shape.setFigureParameter("Pointer",0,new Jn("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(Nt,nt,et){var dt=Nt?Nt.parameter1:NaN;isNaN(dt)&&(dt=.1);var lt=new go.Geometry,gt=new go.PathFigure(nt,.5*et,!0);lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,0,et)),gt.add(new go.PathSegment(go.PathSegment.Line,dt*nt,.5*et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),lt.spot1=new go.Spot(dt,.35);var mt=re(.2,.65,1,.65,0,1,1,.5,yt());return lt.spot2=new go.Spot(mt.x,mt.y),te(mt),lt}),go.Shape.setFigureParameter("RoundedPointer",0,new Jn("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(Nt,nt,et){var dt=Nt?Nt.parameter1:NaN;isNaN(dt)&&(dt=.3);var lt=new go.Geometry,gt=new go.PathFigure(nt,.5*et,!0);lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,0,et)),gt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,dt*nt,.75*et,dt*nt,.25*et).close()),lt.spot1=new go.Spot(dt,.35);var mt=re(0,.65,1,.65,0,1,1,.5,yt());return lt.spot2=new go.Spot(mt.x,mt.y),te(mt),lt}),go.Shape.setFigureParameter("SplitEndArrow",0,new Jn("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(Nt,nt,et){var dt=Nt?Nt.parameter1:NaN;isNaN(dt)&&(dt=.4);var lt=(.5-dt/2)*et,gt=(.5+dt/2)*et,mt=new go.Geometry,St=new go.PathFigure(nt,.5*et,!0);mt.add(St),St.add(new go.PathSegment(go.PathSegment.Line,.7*nt,et)),St.add(new go.PathSegment(go.PathSegment.Line,.7*nt,gt)),St.add(new go.PathSegment(go.PathSegment.Line,0,gt)),St.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.5*et)),St.add(new go.PathSegment(go.PathSegment.Line,0,lt)),St.add(new go.PathSegment(go.PathSegment.Line,.7*nt,lt)),St.add(new go.PathSegment(go.PathSegment.Line,.7*nt,0).close()),mt.spot1=new go.Spot(.2,.3);var bt=re(.7,1,1,.5,0,gt/et,1,gt/et,yt());return mt.spot2=new go.Spot(bt.x,bt.y),te(bt),mt}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Jn("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(Nt,nt,et){var dt=Nt?Nt.parameter1:NaN;isNaN(dt)&&(dt=50);var lt=(et-dt)/2,gt=lt+dt;dt>et&&(lt=0,gt=et);var mt=new go.Geometry,St=new go.PathFigure(nt,.5*et,!0);mt.add(St),St.add(new go.PathSegment(go.PathSegment.Line,.7*nt,et)),St.add(new go.PathSegment(go.PathSegment.Line,.7*nt,gt)),St.add(new go.PathSegment(go.PathSegment.Line,0,gt)),St.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.5*et)),St.add(new go.PathSegment(go.PathSegment.Line,0,lt)),St.add(new go.PathSegment(go.PathSegment.Line,.7*nt,lt)),St.add(new go.PathSegment(go.PathSegment.Line,.7*nt,0).close()),mt.spot1=new go.Spot(.2,lt/et);var bt=re(.7,1,1,.5,0,gt/et,1,gt/et,yt());return mt.spot2=new go.Spot(bt.x,bt.y),te(bt),mt}),go.Shape.setFigureParameter("SquareArrow",0,new Jn("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(Nt,nt,et){var dt=Nt?Nt.parameter1:NaN;isNaN(dt)&&(dt=.7);var lt=new go.Geometry,gt=new go.PathFigure(nt,.5*et,!0);return lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,dt*nt,et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,0)),gt.add(new go.PathSegment(go.PathSegment.Line,dt*nt,0).close()),lt.spot1=go.Spot.TopLeft,lt.spot2=new go.Spot(dt,1),lt}),go.Shape.defineFigureGenerator("Cone1",function(Nt,nt,et){var dt=new go.Geometry,lt=ge*.5,gt=ge*.1,mt=new go.PathFigure(0,.9*et,!0);return dt.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,0)),mt.add(new go.PathSegment(go.PathSegment.Line,nt,.9*et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,et,nt,(.9+gt)*et,(.5+lt)*nt,et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*et,(.5-lt)*nt,et,0,(.9+gt)*et).close()),dt.spot1=new go.Spot(.25,.5),dt.spot2=new go.Spot(.75,.97),dt}),go.Shape.defineFigureGenerator("Cone2",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(0,.9*et,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.9*et,(1-.85/.9)*nt,et,.85/.9*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.9*et).close());var gt=new go.PathFigure(0,.9*et,!1);return dt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.9*et,(1-.85/.9)*nt,.8*et,.85/.9*nt,.8*et)),dt.spot1=new go.Spot(.25,.5),dt.spot2=new go.Spot(.75,.82),dt}),go.Shape.defineFigureGenerator("Cube1",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(.5*nt,et,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.85*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.15*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.15*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.85*et).close());var gt=new go.PathFigure(.5*nt,et,!1);return dt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.3*et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,.15*et)),gt.add(new go.PathSegment(go.PathSegment.Move,.5*nt,.3*et)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,.15*et)),dt.spot1=new go.Spot(0,.3),dt.spot2=new go.Spot(.5,.85),dt}),go.Shape.defineFigureGenerator("Cube2",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(0,.3*et,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.7*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,0).close());var gt=new go.PathFigure(0,.3*et,!1);return dt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,.3*et)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),gt.add(new go.PathSegment(go.PathSegment.Move,.7*nt,.3*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,et)),dt.spot1=new go.Spot(0,.3),dt.spot2=new go.Spot(.7,1),dt}),go.Shape.defineFigureGenerator("Cylinder1",function(Nt,nt,et){var dt=Nt?Nt.parameter1:NaN;isNaN(dt)&&(dt=5),dt=Math.min(dt,et/3);var lt=new go.Geometry,gt=ge*.5,mt=new go.PathFigure(0,dt,!0);lt.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,0,0,ge*dt,(.5-gt)*nt,0)),mt.add(new go.PathSegment(go.PathSegment.Bezier,1*nt,dt,(.5+gt)*nt,0,1*nt,ge*dt)),mt.add(new go.PathSegment(go.PathSegment.Line,nt,et-dt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,1*et,1*nt,et-ge*dt,(.5+gt)*nt,1*et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,et-dt,(.5-gt)*nt,1*et,0,et-ge*dt)),mt.add(new go.PathSegment(go.PathSegment.Line,0,dt));var St=new go.PathFigure(nt,dt,!1);return lt.add(St),St.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,2*dt,1*nt,2*dt-ge*dt,(.5+gt)*nt,2*dt)),St.add(new go.PathSegment(go.PathSegment.Bezier,0,dt,(.5-gt)*nt,2*dt,0,2*dt-ge*dt)),lt.spot1=new go.Spot(0,0,0,2*dt),lt.spot2=new go.Spot(1,1),lt}),go.Shape.defineFigureGenerator("Cylinder2",function(Nt,nt,et){var dt=Nt?Nt.parameter1:NaN;isNaN(dt)&&(dt=5),dt=Math.min(dt,et/3);var lt=new go.Geometry,gt=ge*.5,mt=new go.PathFigure(0,et-dt,!0);lt.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,0,dt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,0,0,ge*dt,(.5-gt)*nt,0)),mt.add(new go.PathSegment(go.PathSegment.Bezier,nt,dt,(.5+gt)*nt,0,nt,ge*dt)),mt.add(new go.PathSegment(go.PathSegment.Line,nt,et-dt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,et,nt,et-ge*dt,(.5+gt)*nt,et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,et-dt,(.5-gt)*nt,et,0,et-ge*dt));var St=new go.PathFigure(0,et-dt,!1);return lt.add(St),St.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,et-2*dt,0,et-dt-ge*dt,(.5-gt)*nt,et-2*dt)),St.add(new go.PathSegment(go.PathSegment.Bezier,nt,et-dt,(.5+gt)*nt,et-2*dt,nt,et-dt-ge*dt)),lt.spot1=new go.Spot(0,0),lt.spot2=new go.Spot(1,1,0,-2*dt),lt}),go.Shape.defineFigureGenerator("Cylinder3",function(Nt,nt,et){var dt=Nt?Nt.parameter1:NaN;isNaN(dt)&&(dt=5),dt=Math.min(dt,nt/3);var lt=new go.Geometry,gt=ge*.5,mt=new go.PathFigure(dt,0,!0);lt.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,nt-dt,0)),mt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.5*et,nt-ge*dt,0,nt,(.5-gt)*et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,nt-dt,et,nt,(.5+gt)*et,nt-ge*dt,et)),mt.add(new go.PathSegment(go.PathSegment.Line,dt,et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*et,ge*dt,et,0,(.5+gt)*et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,dt,0,0,(.5-gt)*et,ge*dt,0));var St=new go.PathFigure(dt,0,!1);return lt.add(St),St.add(new go.PathSegment(go.PathSegment.Bezier,2*dt,.5*et,dt+ge*dt,0,2*dt,(.5-gt)*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,dt,et,2*dt,(.5+gt)*et,dt+ge*dt,et)),lt.spot1=new go.Spot(0,0,2*dt,0),lt.spot2=new go.Spot(1,1),lt}),go.Shape.defineFigureGenerator("Cylinder4",function(Nt,nt,et){var dt=Nt?Nt.parameter1:NaN;isNaN(dt)&&(dt=5),dt=Math.min(dt,nt/3);var lt=new go.Geometry,gt=ge*.5,mt=new go.PathFigure(nt-dt,0,!0);lt.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.5*et,nt-ge*dt,0,nt,(.5-gt)*et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,nt-dt,et,nt,(.5+gt)*et,nt-ge*dt,et)),mt.add(new go.PathSegment(go.PathSegment.Line,dt,et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*et,ge*dt,et,0,(.5+gt)*et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,dt,0,0,(.5-gt)*et,ge*dt,0)),mt.add(new go.PathSegment(go.PathSegment.Line,nt-dt,0));var St=new go.PathFigure(nt-dt,0,!1);return lt.add(St),St.add(new go.PathSegment(go.PathSegment.Bezier,nt-2*dt,.5*et,nt-dt-ge*dt,0,nt-2*dt,(.5-gt)*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,nt-dt,et,nt-2*dt,(.5+gt)*et,nt-dt-ge*dt,et)),lt.spot1=new go.Spot(0,0),lt.spot2=new go.Spot(1,1,-2*dt,0),lt}),go.Shape.defineFigureGenerator("Prism1",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(.25*nt,.25*et,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et).close());var gt=new go.PathFigure(.25*nt,.25*et,!1);return dt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),dt.spot1=new go.Spot(.408,.172),dt.spot2=new go.Spot(.833,.662),dt}),go.Shape.defineFigureGenerator("Prism2",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(0,.25*et,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.25*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,.75*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et).close());var gt=new go.PathFigure(0,et,!1);return dt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.25*nt,.5*et)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,.25*et)),gt.add(new go.PathSegment(go.PathSegment.Move,0,.25*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.25*nt,.5*et)),dt.spot1=new go.Spot(.25,.5),dt.spot2=new go.Spot(.75,.75),dt}),go.Shape.defineFigureGenerator("Pyramid1",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(.5*nt,0,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.75*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.75*et).close());var gt=new go.PathFigure(.5*nt,0,!1);return dt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),dt.spot1=new go.Spot(.25,.367),dt.spot2=new go.Spot(.75,.875),dt}),go.Shape.defineFigureGenerator("Pyramid2",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(.5*nt,0,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.85*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.85*et).close());var gt=new go.PathFigure(.5*nt,0,!1);return dt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.7*et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,.85*et)),gt.add(new go.PathSegment(go.PathSegment.Move,.5*nt,.7*et)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,.85*et)),dt.spot1=new go.Spot(.25,.367),dt.spot2=new go.Spot(.75,.875),dt}),go.Shape.defineFigureGenerator("Actor",function(Nt,nt,et){var dt=new go.Geometry,lt=.2,gt=.1,mt=ge*lt,St=ge*gt,bt=.5,It=.1,Ht=new go.PathFigure(bt*nt,(It+gt)*et,!0);dt.add(Ht),Ht.add(new go.PathSegment(go.PathSegment.Bezier,(bt-lt)*nt,It*et,(bt-mt)*nt,(It+gt)*et,(bt-lt)*nt,(It+St)*et)),Ht.add(new go.PathSegment(go.PathSegment.Bezier,bt*nt,(It-gt)*et,(bt-lt)*nt,(It-St)*et,(bt-mt)*nt,(It-gt)*et)),Ht.add(new go.PathSegment(go.PathSegment.Bezier,(bt+lt)*nt,It*et,(bt+mt)*nt,(It-gt)*et,(bt+lt)*nt,(It-St)*et)),Ht.add(new go.PathSegment(go.PathSegment.Bezier,bt*nt,(It+gt)*et,(bt+lt)*nt,(It+St)*et,(bt+mt)*nt,(It+gt)*et));var se=.05,Vt=ge*se;bt=.05,It=.25;var Jt=new go.PathFigure(.5*nt,.2*et,!0);return dt.add(Jt),Jt.add(new go.PathSegment(go.PathSegment.Line,.95*nt,.2*et)),bt=.95,It=.25,Jt.add(new go.PathSegment(go.PathSegment.Bezier,(bt+se)*nt,It*et,(bt+Vt)*nt,(It-se)*et,(bt+se)*nt,(It-Vt)*et)),Jt.add(new go.PathSegment(go.PathSegment.Line,nt,.6*et)),Jt.add(new go.PathSegment(go.PathSegment.Line,.85*nt,.6*et)),Jt.add(new go.PathSegment(go.PathSegment.Line,.85*nt,.35*et)),se=.025,Vt=ge*se,bt=.825,It=.35,Jt.add(new go.PathSegment(go.PathSegment.Bezier,bt*nt,(It-se)*et,(bt+se)*nt,(It-Vt)*et,(bt+Vt)*nt,(It-se)*et)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,(bt-se)*nt,It*et,(bt-Vt)*nt,(It-se)*et,(bt-se)*nt,(It-Vt)*et)),Jt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,et)),Jt.add(new go.PathSegment(go.PathSegment.Line,.55*nt,et)),Jt.add(new go.PathSegment(go.PathSegment.Line,.55*nt,.7*et)),se=.05,Vt=ge*se,bt=.5,It=.7,Jt.add(new go.PathSegment(go.PathSegment.Bezier,bt*nt,(It-se)*et,(bt+se)*nt,(It-Vt)*et,(bt+Vt)*nt,(It-se)*et)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,(bt-se)*nt,It*et,(bt-Vt)*nt,(It-se)*et,(bt-se)*nt,(It-Vt)*et)),Jt.add(new go.PathSegment(go.PathSegment.Line,.45*nt,et)),Jt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,et)),Jt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.35*et)),se=.025,Vt=ge*se,bt=.175,It=.35,Jt.add(new go.PathSegment(go.PathSegment.Bezier,bt*nt,(It-se)*et,(bt+se)*nt,(It-Vt)*et,(bt+Vt)*nt,(It-se)*et)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,(bt-se)*nt,It*et,(bt-Vt)*nt,(It-se)*et,(bt-se)*nt,(It-Vt)*et)),Jt.add(new go.PathSegment(go.PathSegment.Line,.15*nt,.6*et)),Jt.add(new go.PathSegment(go.PathSegment.Line,0,.6*et)),Jt.add(new go.PathSegment(go.PathSegment.Line,0,.25*et)),se=.05,Vt=ge*se,bt=.05,It=.25,Jt.add(new go.PathSegment(go.PathSegment.Bezier,bt*nt,(It-se)*et,(bt-se)*nt,(It-Vt)*et,(bt-Vt)*nt,(It-se)*et)),Jt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.2*et)),dt.spot1=new go.Spot(.2,.2),dt.spot2=new go.Spot(.8,.65),dt}),go.Shape.setFigureParameter("Card",0,new Jn("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(Nt,nt,et){var dt=Nt?Nt.parameter1:NaN;isNaN(dt)&&(dt=.2);var lt=new go.Geometry,gt=new go.PathFigure(nt,0,!0);return lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,dt*et)),gt.add(new go.PathSegment(go.PathSegment.Line,dt*nt,0).close()),lt.spot1=new go.Spot(0,dt),lt.spot2=go.Spot.BottomRight,lt}),go.Shape.defineFigureGenerator("Collate",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(.5*nt,.5*et,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.5*et));var gt=new go.PathFigure(.5*nt,.5*et,!0);return dt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,et)),gt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.5*et)),dt.spot1=new go.Spot(.25,0),dt.spot2=new go.Spot(.75,.25),dt}),go.Shape.defineFigureGenerator("CreateRequest",function(Nt,nt,et){var dt=new go.Geometry,lt=Nt?Nt.parameter1:NaN;isNaN(lt)&&(lt=.1);var gt=new go.PathFigure(0,0,!0);dt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,et).close());var mt=new go.PathFigure(0,lt*et,!1);return dt.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,nt,lt*et)),mt.add(new go.PathSegment(go.PathSegment.Move,0,(1-lt)*et)),mt.add(new go.PathSegment(go.PathSegment.Line,nt,(1-lt)*et)),dt}),go.Shape.defineFigureGenerator("Database",function(Nt,nt,et){var dt=new go.Geometry,lt=ge*.5,gt=ge*.1,mt=new go.PathFigure(nt,.1*et,!0);dt.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,nt,.9*et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,et,nt,(.9+gt)*et,(.5+lt)*nt,et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*et,(.5-lt)*nt,et,0,(.9+gt)*et)),mt.add(new go.PathSegment(go.PathSegment.Line,0,.1*et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,0,0,(.1-gt)*et,(.5-lt)*nt,0)),mt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.1*et,(.5+lt)*nt,0,nt,(.1-gt)*et));var St=new go.PathFigure(nt,.1*et,!1);return dt.add(St),St.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.2*et,nt,(.1+gt)*et,(.5+lt)*nt,.2*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*et,(.5-lt)*nt,.2*et,0,(.1+gt)*et)),St.add(new go.PathSegment(go.PathSegment.Move,nt,.2*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.3*et,nt,(.2+gt)*et,(.5+lt)*nt,.3*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*et,(.5-lt)*nt,.3*et,0,(.2+gt)*et)),St.add(new go.PathSegment(go.PathSegment.Move,nt,.3*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.4*et,nt,(.3+gt)*et,(.5+lt)*nt,.4*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*et,(.5-lt)*nt,.4*et,0,(.3+gt)*et)),dt.spot1=new go.Spot(0,.4),dt.spot2=new go.Spot(1,.9),dt}),go.Shape.defineFigureGenerator("DataStorage",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(0,0,!0);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.75*nt,et,nt,0,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*nt,.9*et,.25*nt,.1*et).close()),dt.spot1=new go.Spot(.226,0),dt.spot2=new go.Spot(.81,1),dt}),go.Shape.defineFigureGenerator("DiskStorage",function(Nt,nt,et){var dt=new go.Geometry,lt=ge*.5,gt=ge*.1,mt=new go.PathFigure(nt,.1*et,!0);dt.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,nt,.9*et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,et,nt,(.9+gt)*et,(.5+lt)*nt,et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*et,(.5-lt)*nt,et,0,(.9+gt)*et)),mt.add(new go.PathSegment(go.PathSegment.Line,0,.1*et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,0,0,(.1-gt)*et,(.5-lt)*nt,0)),mt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.1*et,(.5+lt)*nt,0,nt,(.1-gt)*et));var St=new go.PathFigure(nt,.1*et,!1);return dt.add(St),St.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.2*et,nt,(.1+gt)*et,(.5+lt)*nt,.2*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*et,(.5-lt)*nt,.2*et,0,(.1+gt)*et)),St.add(new go.PathSegment(go.PathSegment.Move,nt,.2*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.3*et,nt,(.2+gt)*et,(.5+lt)*nt,.3*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*et,(.5-lt)*nt,.3*et,0,(.2+gt)*et)),dt.spot1=new go.Spot(0,.3),dt.spot2=new go.Spot(1,.9),dt}),go.Shape.defineFigureGenerator("Display",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(.25*nt,0,!0);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.75*nt,et,nt,0,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.25*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.5*et).close()),dt.spot1=new go.Spot(.25,0),dt.spot2=new go.Spot(.75,1),dt}),go.Shape.defineFigureGenerator("DividedEvent",function(Nt,nt,et){var dt=new go.Geometry,lt=Nt?Nt.parameter1:NaN;isNaN(lt)?lt=.2:lt<.15&&(lt=.15);var gt=ge*.2,mt=new go.PathFigure(0,.2*et,!0);dt.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,.2*nt,0,0,(.2-gt)*et,(.2-gt)*nt,0)),mt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,0)),mt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.2*et,(.8+gt)*nt,0,nt,(.2-gt)*et)),mt.add(new go.PathSegment(go.PathSegment.Line,nt,.8*et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,.8*nt,et,nt,(.8+gt)*et,(.8+gt)*nt,et)),mt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*et,(.2-gt)*nt,et,0,(.8+gt)*et)),mt.add(new go.PathSegment(go.PathSegment.Line,0,.2*et));var St=new go.PathFigure(0,lt*et,!1);return dt.add(St),St.add(new go.PathSegment(go.PathSegment.Line,nt,lt*et)),dt}),go.Shape.defineFigureGenerator("DividedProcess",function(Nt,nt,et){var dt=new go.Geometry,lt=Nt?Nt.parameter1:NaN;(isNaN(lt)||lt<.1)&&(lt=.1);var gt=new go.PathFigure(0,0,!0);dt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,et).close());var mt=new go.PathFigure(0,lt*et,!1);return dt.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,nt,lt*et)),dt}),go.Shape.defineFigureGenerator("Document",function(Nt,nt,et){var dt=new go.Geometry;et=et/.8;var lt=new go.PathFigure(0,.7*et,!0);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.7*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*et,.5*nt,.4*et,.5*nt,et).close()),dt.spot1=go.Spot.TopLeft,dt.spot2=new go.Spot(1,.6),dt}),go.Shape.defineFigureGenerator("ExternalOrganization",function(Nt,nt,et){var dt=new go.Geometry,lt=Nt?Nt.parameter1:NaN;(isNaN(lt)||lt<.2)&&(lt=.2);var gt=new go.PathFigure(0,0,!0);dt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,et).close());var mt=new go.PathFigure(lt*nt,0,!1);return dt.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,0,lt*et)),mt.add(new go.PathSegment(go.PathSegment.Move,nt,lt*et)),mt.add(new go.PathSegment(go.PathSegment.Line,(1-lt)*nt,0)),mt.add(new go.PathSegment(go.PathSegment.Move,0,(1-lt)*et)),mt.add(new go.PathSegment(go.PathSegment.Line,lt*nt,et)),mt.add(new go.PathSegment(go.PathSegment.Move,(1-lt)*nt,et)),mt.add(new go.PathSegment(go.PathSegment.Line,nt,(1-lt)*et)),dt}),go.Shape.defineFigureGenerator("ExternalProcess",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(.5*nt,0,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.5*et).close());var gt=new go.PathFigure(.1*nt,.4*et,!1);return dt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,.6*et)),gt.add(new go.PathSegment(go.PathSegment.Move,.9*nt,.6*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.4*et)),gt.add(new go.PathSegment(go.PathSegment.Move,.6*nt,.1*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,.1*et)),gt.add(new go.PathSegment(go.PathSegment.Move,.4*nt,.9*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,.9*et)),dt.spot1=new go.Spot(.25,.25),dt.spot2=new go.Spot(.75,.75),dt}),go.Shape.defineFigureGenerator("File",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(0,0,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.25*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et).close());var gt=new go.PathFigure(.75*nt,0,!1);return dt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,.25*et)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,.25*et)),dt.spot1=new go.Spot(0,.25),dt.spot2=go.Spot.BottomRight,dt}),go.Shape.defineFigureGenerator("Interrupt",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(nt,.5*et,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et));var gt=new go.PathFigure(nt,.5*et,!1);dt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt,et));var mt=new go.PathFigure(nt,.5*et,!1);return dt.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),dt.spot1=new go.Spot(0,.25),dt.spot2=new go.Spot(.5,.75),dt}),go.Shape.defineFigureGenerator("InternalStorage",function(Nt,nt,et){var dt=new go.Geometry,lt=Nt?Nt.parameter1:NaN,gt=Nt?Nt.parameter2:NaN;isNaN(lt)&&(lt=.1),isNaN(gt)&&(gt=.1);var mt=new go.PathFigure(0,0,!0);dt.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),mt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),mt.add(new go.PathSegment(go.PathSegment.Line,0,et).close());var St=new go.PathFigure(lt*nt,0,!1);return dt.add(St),St.add(new go.PathSegment(go.PathSegment.Line,lt*nt,et)),St.add(new go.PathSegment(go.PathSegment.Move,0,gt*et)),St.add(new go.PathSegment(go.PathSegment.Line,nt,gt*et)),dt}),go.Shape.defineFigureGenerator("Junction",function(Nt,nt,et){var dt=new go.Geometry,lt=1/Math.SQRT2,gt=(1-1/Math.SQRT2)/2,mt=ge*.5,St=.5,bt=new go.PathFigure(nt,St*et,!0);dt.add(bt),bt.add(new go.PathSegment(go.PathSegment.Bezier,St*nt,et,nt,(St+mt)*et,(St+mt)*nt,et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,0,St*et,(St-mt)*nt,et,0,(St+mt)*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,St*nt,0,0,(St-mt)*et,(St-mt)*nt,0)),bt.add(new go.PathSegment(go.PathSegment.Bezier,nt,St*et,(St+mt)*nt,0,nt,(St-mt)*et));var It=new go.PathFigure((gt+lt)*nt,(gt+lt)*et,!1);return dt.add(It),It.add(new go.PathSegment(go.PathSegment.Line,gt*nt,gt*et)),It.add(new go.PathSegment(go.PathSegment.Move,gt*nt,(gt+lt)*et)),It.add(new go.PathSegment(go.PathSegment.Line,(gt+lt)*nt,gt*et)),dt}),go.Shape.defineFigureGenerator("LinedDocument",function(Nt,nt,et){var dt=new go.Geometry;et=et/.8;var lt=new go.PathFigure(0,.7*et,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.7*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*et,.5*nt,.4*et,.5*nt,et).close());var gt=new go.PathFigure(.1*nt,0,!1);return dt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,.75*et)),dt.spot1=new go.Spot(.1,0),dt.spot2=new go.Spot(1,.6),dt}),go.Shape.defineFigureGenerator("LoopLimit",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(0,et,!0);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,.25*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.25*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.25*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et).close()),dt.spot1=new go.Spot(0,.25),dt.spot2=go.Spot.BottomRight,dt}),go.Shape.defineFigureGenerator("MagneticTape",function(Nt,nt,et){var dt=new go.Geometry,lt=ge*.5,gt=.5,mt=new go.PathFigure(.5*nt,et,!0);return dt.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,gt*et,(gt-lt)*nt,et,0,(gt+lt)*et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,gt*nt,0,0,(gt-lt)*et,(gt-lt)*nt,0)),mt.add(new go.PathSegment(go.PathSegment.Bezier,nt,gt*et,(gt+lt)*nt,0,nt,(gt-lt)*et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(gt+.1)*nt,.9*et,nt,(gt+lt)*et,(gt+lt)*nt,.9*et)),mt.add(new go.PathSegment(go.PathSegment.Line,nt,.9*et)),mt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),mt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),dt.spot1=new go.Spot(.15,.15),dt.spot2=new go.Spot(.85,.8),dt}),go.Shape.defineFigureGenerator("ManualInput",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(nt,0,!0);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.25*et).close()),dt.spot1=new go.Spot(0,.25),dt.spot2=go.Spot.BottomRight,dt}),go.Shape.defineFigureGenerator("MessageFromUser",function(Nt,nt,et){var dt=new go.Geometry,lt=Nt?Nt.parameter1:NaN;isNaN(lt)&&(lt=.7);var gt=new go.PathFigure(0,0,!0);return dt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),gt.add(new go.PathSegment(go.PathSegment.Line,lt*nt,.5*et)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,et).close()),dt.spot1=go.Spot.TopLeft,dt}),go.Shape.defineFigureGenerator("MicroformProcessing",function(Nt,nt,et){var dt=new go.Geometry,lt=Nt?Nt.parameter1:NaN;isNaN(lt)&&(lt=.25);var gt=new go.PathFigure(0,0,!0);return dt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,lt*et)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),gt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,(1-lt)*et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,et).close()),dt}),go.Shape.defineFigureGenerator("MicroformRecording",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(0,0,!0);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,.25*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.15*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.85*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,.75*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et).close()),dt.spot1=new go.Spot(0,.25),dt.spot2=new go.Spot(1,.75),dt}),go.Shape.defineFigureGenerator("MultiDocument",function(Nt,nt,et){var dt=new go.Geometry;et=et/.8;var lt=new go.PathFigure(nt,0,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.9*nt,.44*et,.96*nt,.47*et,.93*nt,.45*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.6*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.8*nt,.54*et,.86*nt,.57*et,.83*nt,.55*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.7*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*et,.4*nt,.4*et,.4*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.2*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,.2*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,.1*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.1*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,0).close());var gt=new go.PathFigure(.1*nt,.2*et,!1);return dt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.2*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.54*et)),gt.add(new go.PathSegment(go.PathSegment.Move,.2*nt,.1*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.1*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.44*et)),dt.spot1=new go.Spot(0,.25),dt.spot2=new go.Spot(.8,.77),dt}),go.Shape.defineFigureGenerator("MultiProcess",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(.1*nt,.1*et,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.1*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.9*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.9*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.2*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,.2*et).close());var gt=new go.PathFigure(.2*nt,.1*et,!1);return dt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.1*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.8*et)),gt.add(new go.PathSegment(go.PathSegment.Move,.1*nt,.2*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.2*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.9*et)),dt.spot1=new go.Spot(0,.2),dt.spot2=new go.Spot(.8,1),dt}),go.Shape.defineFigureGenerator("OfflineStorage",function(Nt,nt,et){var dt=new go.Geometry,lt=Nt?Nt.parameter1:NaN;isNaN(lt)&&(lt=.1);var gt=1-lt,mt=new go.PathFigure(0,0,!0);dt.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),mt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et).close());var St=new go.PathFigure(.5*lt*nt,lt*et,!1);return dt.add(St),St.add(new go.PathSegment(go.PathSegment.Line,(1-.5*lt)*nt,lt*et)),dt}),go.Shape.defineFigureGenerator("OffPageConnector",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(0,0,!0);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et).close()),dt.spot1=go.Spot.TopLeft,dt.spot2=new go.Spot(.75,1),dt}),go.Shape.defineFigureGenerator("Or",function(Nt,nt,et){var dt=new go.Geometry,lt=ge*.5,gt=.5,mt=new go.PathFigure(nt,gt*et,!0);dt.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,gt*nt,et,nt,(gt+lt)*et,(gt+lt)*nt,et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,gt*et,(gt-lt)*nt,et,0,(gt+lt)*et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,gt*nt,0,0,(gt-lt)*et,(gt-lt)*nt,0)),mt.add(new go.PathSegment(go.PathSegment.Bezier,nt,gt*et,(gt+lt)*nt,0,nt,(gt-lt)*et));var St=new go.PathFigure(nt,.5*et,!1);return dt.add(St),St.add(new go.PathSegment(go.PathSegment.Line,0,.5*et)),St.add(new go.PathSegment(go.PathSegment.Move,.5*nt,et)),St.add(new go.PathSegment(go.PathSegment.Line,.5*nt,0)),dt}),go.Shape.defineFigureGenerator("PaperTape",function(Nt,nt,et){var dt=new go.Geometry;et=et/.8;var lt=new go.PathFigure(0,.7*et,!0);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,.3*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.3*et,.5*nt,.6*et,.5*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.7*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*et,.5*nt,.4*et,.5*nt,et).close()),dt.spot1=new go.Spot(0,.49),dt.spot2=new go.Spot(1,.75),dt}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(Nt,nt,et){var dt=new go.Geometry,lt=Nt?Nt.parameter1:NaN,gt=Nt?Nt.parameter2:NaN;isNaN(lt)&&(lt=.1),isNaN(gt)&&(gt=.3);var mt=new go.PathFigure(0,0,!0);return dt.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),mt.add(new go.PathSegment(go.PathSegment.Line,(1-gt)*nt,.5*et)),mt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),mt.add(new go.PathSegment(go.PathSegment.Line,0,et).close()),dt}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(Nt,nt,et){var dt=new go.Geometry,lt=Nt?Nt.parameter1:NaN,gt=Nt?Nt.parameter2:NaN;isNaN(lt)&&(lt=.1),isNaN(gt)&&(gt=.3);var mt=new go.PathFigure(0,0,!0);return dt.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,(1-gt)*nt,0)),mt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),mt.add(new go.PathSegment(go.PathSegment.Line,(1-gt)*nt,et)),mt.add(new go.PathSegment(go.PathSegment.Line,0,et).close()),dt}),go.Shape.defineFigureGenerator("Procedure",function(Nt,nt,et){var dt=new go.Geometry,lt=Nt?Nt.parameter1:NaN;isNaN(lt)&&(lt=.1);var gt=new go.PathFigure(0,0,!0);dt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,et).close());var mt=new go.PathFigure((1-lt)*nt,0,!1);return dt.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,(1-lt)*nt,et)),mt.add(new go.PathSegment(go.PathSegment.Move,lt*nt,0)),mt.add(new go.PathSegment(go.PathSegment.Line,lt*nt,et)),dt}),go.Shape.defineFigureGenerator("Process",function(Nt,nt,et){var dt=new go.Geometry,lt=Nt?Nt.parameter1:NaN;isNaN(lt)&&(lt=.1);var gt=new go.PathFigure(0,0,!0);dt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,et).close());var mt=new go.PathFigure(lt*nt,0,!1);return dt.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,lt*nt,et)),dt.spot2=go.Spot.BottomRight,dt}),go.Shape.defineFigureGenerator("Sort",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(.5*nt,0,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.5*et).close());var gt=new go.PathFigure(0,.5*et,!1);return dt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),dt.spot1=new go.Spot(.25,.25),dt.spot2=new go.Spot(.75,.5),dt}),go.Shape.defineFigureGenerator("Start",function(Nt,nt,et){var dt=new go.Geometry,lt=Nt?Nt.parameter1:NaN;isNaN(lt)&&(lt=.25);var gt=new go.PathFigure(lt*nt,0,!0);dt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*nt,.5*et,.25*nt,.5*et)),gt.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*nt,.5*et,.25*nt,.5*et));var mt=new go.PathFigure(lt*nt,0,!1);return dt.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,lt*nt,et)),mt.add(new go.PathSegment(go.PathSegment.Move,(1-lt)*nt,0)),mt.add(new go.PathSegment(go.PathSegment.Line,(1-lt)*nt,et)),dt.spot1=new go.Spot(lt,0),dt.spot2=new go.Spot(1-lt,1),dt}),go.Shape.defineFigureGenerator("Terminator",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(.25*nt,0,!0);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*nt,.5*et,.25*nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*nt,.5*et,.25*nt,.5*et)),dt.spot1=new go.Spot(.23,0),dt.spot2=new go.Spot(.77,1),dt}),go.Shape.defineFigureGenerator("TransmittalTape",function(Nt,nt,et){var dt=new go.Geometry,lt=Nt?Nt.parameter1:NaN;isNaN(lt)&&(lt=.1);var gt=new go.PathFigure(0,0,!0);return dt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),gt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,(1-lt)*et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,(1-lt)*et).close()),dt.spot1=go.Spot.TopLeft,dt}),go.Shape.defineFigureGenerator("AndGate",function(Nt,nt,et){var dt=new go.Geometry,lt=ge*.5,gt=new go.PathFigure(0,0,!0);return dt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,0)),gt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.5*et,(.5+lt)*nt,0,nt,(.5-lt)*et)),gt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,et,nt,(.5+lt)*et,(.5+lt)*nt,et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,et).close()),dt.spot1=go.Spot.TopLeft,dt.spot2=new go.Spot(.55,1),dt}),go.Shape.defineFigureGenerator("Buffer",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(0,0,!0);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et).close()),dt.spot1=new go.Spot(0,.25),dt.spot2=new go.Spot(.5,.75),dt}),go.Shape.defineFigureGenerator("Clock",function(Nt,nt,et){var dt=new go.Geometry,lt=ge*.5,gt=.5,mt=new go.PathFigure(nt,gt*et,!0);dt.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,gt*nt,et,nt,(gt+lt)*et,(gt+lt)*nt,et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,gt*et,(gt-lt)*nt,et,0,(gt+lt)*et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,gt*nt,0,0,(gt-lt)*et,(gt-lt)*nt,0)),mt.add(new go.PathSegment(go.PathSegment.Bezier,nt,gt*et,(gt+lt)*nt,0,nt,(gt-lt)*et));var St=new go.PathFigure(nt,gt*et,!1);dt.add(St),St.add(new go.PathSegment(go.PathSegment.Line,nt,gt*et));var bt=new go.PathFigure(.8*nt,.75*et,!1);return dt.add(bt),bt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.25*et)),bt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,.25*et)),bt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,.75*et)),bt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,.75*et)),bt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,.25*et)),bt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.25*et)),bt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.75*et)),dt}),go.Shape.defineFigureGenerator("Ground",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(.5*nt,0,!1);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.4*et)),lt.add(new go.PathSegment(go.PathSegment.Move,.2*nt,.6*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.6*et)),lt.add(new go.PathSegment(go.PathSegment.Move,.3*nt,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Move,.4*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,et)),dt}),go.Shape.defineFigureGenerator("Inverter",function(Nt,nt,et){var dt=new go.Geometry,lt=ge*.1,gt=.1,mt=.9,St=.5,bt=new go.PathFigure(.8*nt,.5*et,!0);dt.add(bt),bt.add(new go.PathSegment(go.PathSegment.Line,0,et)),bt.add(new go.PathSegment(go.PathSegment.Line,0,0)),bt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.5*et));var It=new go.PathFigure((mt+gt)*nt,St*et,!0);return dt.add(It),It.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St+gt)*et,(mt+gt)*nt,(St+lt)*et,(mt+lt)*nt,(St+gt)*et)),It.add(new go.PathSegment(go.PathSegment.Bezier,(mt-gt)*nt,St*et,(mt-lt)*nt,(St+gt)*et,(mt-gt)*nt,(St+lt)*et)),It.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St-gt)*et,(mt-gt)*nt,(St-lt)*et,(mt-lt)*nt,(St-gt)*et)),It.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*nt,St*et,(mt+lt)*nt,(St-gt)*et,(mt+gt)*nt,(St-lt)*et)),dt.spot1=new go.Spot(0,.25),dt.spot2=new go.Spot(.4,.75),dt}),go.Shape.defineFigureGenerator("NandGate",function(Nt,nt,et){var dt=new go.Geometry,lt=ge*.5,gt=ge*.4,mt=ge*.1,St=.1,bt=.9,It=.5,Ht=new go.PathFigure(.8*nt,.5*et,!0);dt.add(Ht),Ht.add(new go.PathSegment(go.PathSegment.Bezier,.4*nt,et,.8*nt,(.5+gt)*et,(.4+lt)*nt,et)),Ht.add(new go.PathSegment(go.PathSegment.Line,0,et)),Ht.add(new go.PathSegment(go.PathSegment.Line,0,0)),Ht.add(new go.PathSegment(go.PathSegment.Line,.4*nt,0)),Ht.add(new go.PathSegment(go.PathSegment.Bezier,.8*nt,.5*et,(.4+lt)*nt,0,.8*nt,(.5-gt)*et));var se=new go.PathFigure((bt+St)*nt,It*et,!0);return dt.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,bt*nt,(It+St)*et,(bt+St)*nt,(It+mt)*et,(bt+mt)*nt,(It+St)*et)),se.add(new go.PathSegment(go.PathSegment.Bezier,(bt-St)*nt,It*et,(bt-mt)*nt,(It+St)*et,(bt-St)*nt,(It+mt)*et)),se.add(new go.PathSegment(go.PathSegment.Bezier,bt*nt,(It-St)*et,(bt-St)*nt,(It-mt)*et,(bt-mt)*nt,(It-St)*et)),se.add(new go.PathSegment(go.PathSegment.Bezier,(bt+St)*nt,It*et,(bt+mt)*nt,(It-St)*et,(bt+St)*nt,(It-mt)*et)),dt.spot1=new go.Spot(0,.05),dt.spot2=new go.Spot(.55,.95),dt}),go.Shape.defineFigureGenerator("NorGate",function(Nt,nt,et){var dt=new go.Geometry,lt=.5,gt=ge*lt,mt=0,St=.5,bt=new go.PathFigure(.8*nt,.5*et,!0);dt.add(bt),bt.add(new go.PathSegment(go.PathSegment.Bezier,0,et,.7*nt,(St+gt)*et,(mt+gt)*nt,(St+lt)*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*nt,.75*et,.25*nt,.25*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,.8*nt,.5*et,(mt+gt)*nt,(St-lt)*et,.7*nt,(St-gt)*et)),lt=.1,gt=ge*.1,mt=.9,St=.5;var It=new go.PathFigure((mt-lt)*nt,St*et,!0);return dt.add(It),It.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St-lt)*et,(mt-lt)*nt,(St-gt)*et,(mt-gt)*nt,(St-lt)*et)),It.add(new go.PathSegment(go.PathSegment.Bezier,(mt+lt)*nt,St*et,(mt+gt)*nt,(St-lt)*et,(mt+lt)*nt,(St-gt)*et)),It.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St+lt)*et,(mt+lt)*nt,(St+gt)*et,(mt+gt)*nt,(St+lt)*et)),It.add(new go.PathSegment(go.PathSegment.Bezier,(mt-lt)*nt,St*et,(mt-gt)*nt,(St+lt)*et,(mt-lt)*nt,(St+gt)*et)),dt.spot1=new go.Spot(.2,.25),dt.spot2=new go.Spot(.6,.75),dt}),go.Shape.defineFigureGenerator("OrGate",function(Nt,nt,et){var dt=new go.Geometry,lt=.5,gt=ge*lt,mt=0,St=.5,bt=new go.PathFigure(0,0,!0);return dt.add(bt),bt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.5*et,(mt+gt+gt)*nt,(St-lt)*et,.8*nt,(St-gt)*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,0,et,.8*nt,(St+gt)*et,(mt+gt+gt)*nt,(St+lt)*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*nt,.75*et,.25*nt,.25*et).close()),dt.spot1=new go.Spot(.2,.25),dt.spot2=new go.Spot(.75,.75),dt}),go.Shape.defineFigureGenerator("XnorGate",function(Nt,nt,et){var dt=new go.Geometry,lt=.5,gt=ge*lt,mt=.2,St=.5,bt=new go.PathFigure(.1*nt,0,!1);dt.add(bt),bt.add(new go.PathSegment(go.PathSegment.Bezier,.1*nt,et,.35*nt,.25*et,.35*nt,.75*et));var It=new go.PathFigure(.8*nt,.5*et,!0);dt.add(It),It.add(new go.PathSegment(go.PathSegment.Bezier,.2*nt,et,.7*nt,(St+gt)*et,(mt+gt)*nt,(St+lt)*et)),It.add(new go.PathSegment(go.PathSegment.Bezier,.2*nt,0,.45*nt,.75*et,.45*nt,.25*et)),It.add(new go.PathSegment(go.PathSegment.Bezier,.8*nt,.5*et,(mt+gt)*nt,(St-lt)*et,.7*nt,(St-gt)*et)),lt=.1,gt=ge*.1,mt=.9,St=.5;var Ht=new go.PathFigure((mt-lt)*nt,St*et,!0);return dt.add(Ht),Ht.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St-lt)*et,(mt-lt)*nt,(St-gt)*et,(mt-gt)*nt,(St-lt)*et)),Ht.add(new go.PathSegment(go.PathSegment.Bezier,(mt+lt)*nt,St*et,(mt+gt)*nt,(St-lt)*et,(mt+lt)*nt,(St-gt)*et)),Ht.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St+lt)*et,(mt+lt)*nt,(St+gt)*et,(mt+gt)*nt,(St+lt)*et)),Ht.add(new go.PathSegment(go.PathSegment.Bezier,(mt-lt)*nt,St*et,(mt-gt)*nt,(St+lt)*et,(mt-lt)*nt,(St+gt)*et)),dt.spot1=new go.Spot(.4,.25),dt.spot2=new go.Spot(.65,.75),dt}),go.Shape.defineFigureGenerator("XorGate",function(Nt,nt,et){var dt=new go.Geometry,lt=.5,gt=ge*lt,mt=.2,St=.5,bt=new go.PathFigure(.1*nt,0,!1);dt.add(bt),bt.add(new go.PathSegment(go.PathSegment.Bezier,.1*nt,et,.35*nt,.25*et,.35*nt,.75*et));var It=new go.PathFigure(.2*nt,0,!0);return dt.add(It),It.add(new go.PathSegment(go.PathSegment.Bezier,nt,.5*et,(mt+gt)*nt,(St-lt)*et,.9*nt,(St-gt)*et)),It.add(new go.PathSegment(go.PathSegment.Bezier,.2*nt,et,.9*nt,(St+gt)*et,(mt+gt)*nt,(St+lt)*et)),It.add(new go.PathSegment(go.PathSegment.Bezier,.2*nt,0,.45*nt,.75*et,.45*nt,.25*et).close()),dt.spot1=new go.Spot(.4,.25),dt.spot2=new go.Spot(.8,.75),dt}),go.Shape.defineFigureGenerator("Capacitor",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(0,0,!1);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Move,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),dt}),go.Shape.defineFigureGenerator("Resistor",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(0,.5*et,!1);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,.5*et)),dt}),go.Shape.defineFigureGenerator("Inductor",function(Nt,nt,et){var dt=new go.Geometry,lt=ge*.1,gt=.1,mt=.1,St=.5,bt=new go.PathFigure((mt-lt*.5)*nt,et,!1);return dt.add(bt),bt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*nt,0,(mt-lt)*nt,et,(mt-gt)*nt,0)),mt=.3,bt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,et,(mt+gt)*nt,0,(mt+lt)*nt,et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*nt,0,(mt-lt)*nt,et,(mt-gt)*nt,0)),mt=.5,bt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,et,(mt+gt)*nt,0,(mt+lt)*nt,et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*nt,0,(mt-lt)*nt,et,(mt-gt)*nt,0)),mt=.7,bt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,et,(mt+gt)*nt,0,(mt+lt)*nt,et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*nt,0,(mt-lt)*nt,et,(mt-gt)*nt,0)),mt=.9,bt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+lt*.5)*nt,et,(mt+gt)*nt,0,(mt+lt)*nt,et)),dt}),go.Shape.defineFigureGenerator("ACvoltageSource",function(Nt,nt,et){var dt=new go.Geometry,lt=ge*.5,gt=.5,mt=.5,St=.5,bt=new go.PathFigure((mt-gt)*nt,St*et,!1);return dt.add(bt),bt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St-gt)*et,(mt-gt)*nt,(St-lt)*et,(mt-lt)*nt,(St-gt)*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*nt,St*et,(mt+lt)*nt,(St-gt)*et,(mt+gt)*nt,(St-lt)*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St+gt)*et,(mt+gt)*nt,(St+lt)*et,(mt+lt)*nt,(St+gt)*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-gt)*nt,St*et,(mt-lt)*nt,(St+gt)*et,(mt-gt)*nt,(St+lt)*et)),bt.add(new go.PathSegment(go.PathSegment.Move,(mt-gt+.1)*nt,St*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt-.1)*nt,St*et,mt*nt,(St-gt)*et,mt*nt,(St+gt)*et)),dt}),go.Shape.defineFigureGenerator("DCvoltageSource",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(0,.75*et,!1);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,.25*et)),lt.add(new go.PathSegment(go.PathSegment.Move,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),dt}),go.Shape.defineFigureGenerator("Diode",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(nt,0,!1);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),dt.spot1=new go.Spot(0,.25),dt.spot2=new go.Spot(.5,.75),dt}),go.Shape.defineFigureGenerator("Wifi",function(Nt,nt,et){var dt=new go.Geometry,lt=nt,gt=et;nt=nt*.38,et=et*.6;var mt=ge*.8,St=.8,bt=0,It=.5,Ht=(lt-nt)/2,se=(gt-et)/2,Vt=new go.PathFigure(bt*nt+Ht,(It+St)*et+se,!0);dt.add(Vt),Vt.add(new go.PathSegment(go.PathSegment.Bezier,(bt-St)*nt+Ht,It*et+se,(bt-mt)*nt+Ht,(It+St)*et+se,(bt-St)*nt+Ht,(It+mt)*et+se)),Vt.add(new go.PathSegment(go.PathSegment.Bezier,bt*nt+Ht,(It-St)*et+se,(bt-St)*nt+Ht,(It-mt)*et+se,(bt-mt)*nt+Ht,(It-St)*et+se)),Vt.add(new go.PathSegment(go.PathSegment.Bezier,(bt-St+mt*.5)*nt+Ht,It*et+se,bt*nt+Ht,(It-St)*et+se,(bt-St+mt*.5)*nt+Ht,(It-mt)*et+se)),Vt.add(new go.PathSegment(go.PathSegment.Bezier,bt*nt+Ht,(It+St)*et+se,(bt-St+mt*.5)*nt+Ht,(It+mt)*et+se,bt*nt+Ht,(It+St)*et+se).close()),mt=ge*.4,St=.4,bt=.2,It=.5;var Jt=new go.PathFigure(bt*nt+Ht,(It+St)*et+se,!0);dt.add(Jt),Jt.add(new go.PathSegment(go.PathSegment.Bezier,(bt-St)*nt+Ht,It*et+se,(bt-mt)*nt+Ht,(It+St)*et+se,(bt-St)*nt+Ht,(It+mt)*et+se)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,bt*nt+Ht,(It-St)*et+se,(bt-St)*nt+Ht,(It-mt)*et+se,(bt-mt)*nt+Ht,(It-St)*et+se)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,(bt-St+mt*.5)*nt+Ht,It*et+se,bt*nt+Ht,(It-St)*et+se,(bt-St+mt*.5)*nt+Ht,(It-mt)*et+se)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,bt*nt+Ht,(It+St)*et+se,(bt-St+mt*.5)*nt+Ht,(It+mt)*et+se,bt*nt+Ht,(It+St)*et+se).close()),mt=ge*.2,St=.2,bt=.5,It=.5;var Ee=new go.PathFigure((bt-St)*nt+Ht,It*et+se,!0);dt.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,bt*nt+Ht,(It-St)*et+se,(bt-St)*nt+Ht,(It-mt)*et+se,(bt-mt)*nt+Ht,(It-St)*et+se)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(bt+St)*nt+Ht,It*et+se,(bt+mt)*nt+Ht,(It-St)*et+se,(bt+St)*nt+Ht,(It-mt)*et+se)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,bt*nt+Ht,(It+St)*et+se,(bt+St)*nt+Ht,(It+mt)*et+se,(bt+mt)*nt+Ht,(It+St)*et+se)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(bt-St)*nt+Ht,It*et+se,(bt-mt)*nt+Ht,(It+St)*et+se,(bt-St)*nt+Ht,(It+mt)*et+se)),mt=ge*.4,St=.4,bt=.8,It=.5;var we=new go.PathFigure(bt*nt+Ht,(It-St)*et+se,!0);dt.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,(bt+St)*nt+Ht,It*et+se,(bt+mt)*nt+Ht,(It-St)*et+se,(bt+St)*nt+Ht,(It-mt)*et+se)),we.add(new go.PathSegment(go.PathSegment.Bezier,bt*nt+Ht,(It+St)*et+se,(bt+St)*nt+Ht,(It+mt)*et+se,(bt+mt)*nt+Ht,(It+St)*et+se)),we.add(new go.PathSegment(go.PathSegment.Bezier,(bt+St-mt*.5)*nt+Ht,It*et+se,bt*nt+Ht,(It+St)*et+se,(bt+St-mt*.5)*nt+Ht,(It+mt)*et+se)),we.add(new go.PathSegment(go.PathSegment.Bezier,bt*nt+Ht,(It-St)*et+se,(bt+St-mt*.5)*nt+Ht,(It-mt)*et+se,bt*nt+Ht,(It-St)*et+se).close()),mt=ge*.8,St=.8,bt=1,It=.5;var De=new go.PathFigure(bt*nt+Ht,(It-St)*et+se,!0);return dt.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,(bt+St)*nt+Ht,It*et+se,(bt+mt)*nt+Ht,(It-St)*et+se,(bt+St)*nt+Ht,(It-mt)*et+se)),De.add(new go.PathSegment(go.PathSegment.Bezier,bt*nt+Ht,(It+St)*et+se,(bt+St)*nt+Ht,(It+mt)*et+se,(bt+mt)*nt+Ht,(It+St)*et+se)),De.add(new go.PathSegment(go.PathSegment.Bezier,(bt+St-mt*.5)*nt+Ht,It*et+se,bt*nt+Ht,(It+St)*et+se,(bt+St-mt*.5)*nt+Ht,(It+mt)*et+se)),De.add(new go.PathSegment(go.PathSegment.Bezier,bt*nt+Ht,(It-St)*et+se,(bt+St-mt*.5)*nt+Ht,(It-mt)*et+se,bt*nt+Ht,(It-St)*et+se).close()),dt}),go.Shape.defineFigureGenerator("Email",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(0,0,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var gt=new go.PathFigure(0,0,!1);return dt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.6*et)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),gt.add(new go.PathSegment(go.PathSegment.Move,0,et)),gt.add(new go.PathSegment(go.PathSegment.Line,.45*nt,.54*et)),gt.add(new go.PathSegment(go.PathSegment.Move,nt,et)),gt.add(new go.PathSegment(go.PathSegment.Line,.55*nt,.54*et)),dt}),go.Shape.defineFigureGenerator("Ethernet",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(.35*nt,0,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.65*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.65*nt,.4*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.35*nt,.4*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.35*nt,0).close());var gt=new go.PathFigure(.1*nt,et,!0,!0);dt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,et)),gt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,.6*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,.6*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,et).close());var mt=new go.PathFigure(.6*nt,et,!0,!0);dt.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,et)),mt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.6*et)),mt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,.6*et)),mt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,et).close());var St=new go.PathFigure(0,.5*et,!1);return dt.add(St),St.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),St.add(new go.PathSegment(go.PathSegment.Move,.5*nt,.5*et)),St.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.4*et)),St.add(new go.PathSegment(go.PathSegment.Move,.75*nt,.5*et)),St.add(new go.PathSegment(go.PathSegment.Line,.75*nt,.6*et)),St.add(new go.PathSegment(go.PathSegment.Move,.25*nt,.5*et)),St.add(new go.PathSegment(go.PathSegment.Line,.25*nt,.6*et)),dt}),go.Shape.defineFigureGenerator("Power",function(Nt,nt,et){var dt=new go.Geometry,lt=ge*.4,gt=.4,mt=.5,St=.5,bt=yt(),It=yt(),Ht=yt(),se=yt();Fe(mt,St-gt,mt+lt,St-gt,mt+gt,St-lt,mt+gt,St,.5,bt,bt,It,Ht,se);var Vt=Dt(It.x,It.y),Jt=new go.PathFigure(It.x*nt,It.y*et,!0);dt.add(Jt),Jt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*nt,St*et,Ht.x*nt,Ht.y*et,se.x*nt,se.y*et)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St+gt)*et,(mt+gt)*nt,(St+lt)*et,(mt+lt)*nt,(St+gt)*et)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-gt)*nt,St*et,(mt-lt)*nt,(St+gt)*et,(mt-gt)*nt,(St+lt)*et)),Fe(mt-gt,St,mt-gt,St-lt,mt-lt,St-gt,mt,St-gt,.5,Ht,se,It,bt,bt),Jt.add(new go.PathSegment(go.PathSegment.Bezier,It.x*nt,It.y*et,Ht.x*nt,Ht.y*et,se.x*nt,se.y*et)),lt=ge*.3,gt=.3,Fe(mt-gt,St,mt-gt,St-lt,mt-lt,St-gt,mt,St-gt,.5,Ht,se,It,bt,bt),Jt.add(new go.PathSegment(go.PathSegment.Line,It.x*nt,It.y*et)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-gt)*nt,St*et,se.x*nt,se.y*et,Ht.x*nt,Ht.y*et)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St+gt)*et,(mt-gt)*nt,(St+lt)*et,(mt-lt)*nt,(St+gt)*et)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*nt,St*et,(mt+lt)*nt,(St+gt)*et,(mt+gt)*nt,(St+lt)*et)),Fe(mt,St-gt,mt+lt,St-gt,mt+gt,St-lt,mt+gt,St,.5,bt,bt,It,Ht,se),Jt.add(new go.PathSegment(go.PathSegment.Bezier,It.x*nt,It.y*et,se.x*nt,se.y*et,Ht.x*nt,Ht.y*et).close());var Jt=new go.PathFigure(.45*nt,0,!0);return dt.add(Jt),Jt.add(new go.PathSegment(go.PathSegment.Line,.45*nt,.5*et)),Jt.add(new go.PathSegment(go.PathSegment.Line,.55*nt,.5*et)),Jt.add(new go.PathSegment(go.PathSegment.Line,.55*nt,0).close()),te(bt),te(It),te(Ht),te(se),te(Vt),dt.spot1=new go.Spot(.25,.45),dt.spot2=new go.Spot(.75,.8),dt}),go.Shape.defineFigureGenerator("Fallout",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(0,et/2,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Arc,180,360,nt/2,et/2,nt/2,et/2));function gt(mt,St,bt){mt.add(new go.PathSegment(go.PathSegment.Move,(.3+St)*nt,(.8+bt)*et)),mt.add(new go.PathSegment(go.PathSegment.Line,(.5+St)*nt,(.5+bt)*et)),mt.add(new go.PathSegment(go.PathSegment.Line,(.1+St)*nt,(.5+bt)*et)),mt.add(new go.PathSegment(go.PathSegment.Line,(.3+St)*nt,(.8+bt)*et).close())}return gt(lt,0,0),gt(lt,.4,0),gt(lt,.2,-.3),dt}),go.Shape.defineFigureGenerator("IrritationHazard",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(.2*nt,0,!0);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.3*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.2*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.7*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.2*et).close()),dt.spot1=new go.Spot(.3,.3),dt.spot2=new go.Spot(.7,.7),dt}),go.Shape.defineFigureGenerator("ElectricalHazard",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(.37*nt,0,!0);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.11*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.77*nt,.04*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.33*nt,.49*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.37*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.63*nt,.86*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.77*nt,.91*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.34*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.34*nt,.78*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.44*nt,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.65*nt,.56*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.68*et).close()),dt}),go.Shape.defineFigureGenerator("FireHazard",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(.1*nt,et,!0);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,.29*nt,0,-.25*nt,.63*et,.45*nt,.44*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.51*nt,.42*et,.48*nt,.17*et,.54*nt,.35*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.59*nt,.18*et,.59*nt,.29*et,.58*nt,.28*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.75*nt,.6*et,.8*nt,.34*et,.88*nt,.43*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.88*nt,.31*et,.87*nt,.48*et,.88*nt,.43*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.9*nt,et,1.17*nt,.76*et,.82*nt,.8*et).close()),dt.spot1=new go.Spot(.07,.445),dt.spot2=new go.Spot(.884,.958),dt}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(Nt,nt,et){var dt=new go.Geometry,lt=.5,gt=0,mt=0,St=lt*ge,bt=.4*Math.SQRT2/2+.5,It=.5-.5*Math.SQRT2/2,Ht=1,se=.5,Vt=.5,Jt=0,Ee=new go.PathFigure(bt*nt,(1-It)*et,!1);return dt.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,Ht*nt,se*et,Ht*nt,.7*et,Ht*nt,se*et)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(Vt+gt)*nt,(Jt+gt)*et,(.5+lt+gt)*nt,(.5-St+gt)*et,(.5+St+gt)*nt,(.5-lt+gt)*et)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(.5-lt+gt)*nt,(.5+mt)*et,(.5-St+gt)*nt,(.5-lt+mt)*et,(.5-lt+gt)*nt,(.5-St+mt)*et)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(.35+gt)*nt,.9*et,(.5-lt+gt)*nt,(.5+St+mt)*et,(.5-St+gt)*nt,.9*et)),Ee.add(new go.PathSegment(go.PathSegment.Move,(.25+gt)*nt,.8*et)),Ee.add(new go.PathSegment(go.PathSegment.Line,(.35+gt)*nt,.9*et)),Ee.add(new go.PathSegment(go.PathSegment.Line,(.2+gt)*nt,.95*et)),dt}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(0,0,!1);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Move,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),dt}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(0,0,!1);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Move,0,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Move,0,et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),dt}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(0,0,!1);dt.add(lt);var gt=new go.PathFigure(nt,et,!1);dt.add(gt);var mt=new go.PathFigure(0,.5*et,!1);return dt.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.5*et,.2*nt,.35*et,.3*nt,.35*et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.5*et,.7*nt,.65*et,.8*nt,.65*et)),dt}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(0,.5*et,!0);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et).close()),dt}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(0,.2*et,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.2*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.8*et).close());var lt=new go.PathFigure(0,.2*et,!1);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.2*et)),dt}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(.7*nt,et,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.3*nt,0,.6*nt,.5*et,0,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.7*nt,et,.4*nt,.5*et,nt,.5*et).close());var gt=new go.PathFigure(.45*nt,.73*et,!1);return dt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,.73*et)),gt.add(new go.PathSegment(go.PathSegment.Move,.38*nt,.5*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.63*nt,.5*et)),gt.add(new go.PathSegment(go.PathSegment.Move,.31*nt,.27*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.56*nt,.27*et)),dt}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(0,0,!1);dt.add(lt);var gt=new go.PathFigure(.335*nt,(1-.555)*et,!0);dt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.335*nt,(1-.405)*et)),gt.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*nt,(1-.405)*et)),gt.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*nt,(1-.555)*et)),gt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.68*et,(1-.12)*nt,.46*et,(1-.02)*nt,.54*et)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,.68*et)),gt.add(new go.PathSegment(go.PathSegment.Bezier,.335*nt,(1-.555)*et,.02*nt,.54*et,.12*nt,.46*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.365*nt,(1-.595)*et));var mt=.5-.285,St=.5,bt=mt,It=Math.PI/4,Ht=4*(1-Math.cos(It))/(3*Math.sin(It)),se=Ht*.5,Vt=mt,Jt=mt,Ee=Ht*Vt,we=Ht*Jt;gt.add(new go.PathSegment(go.PathSegment.Bezier,(St-Vt)*nt,bt*et,(St-(Ee+Vt)/2)*nt,(bt+(Jt+we)/2)*et,(St-Vt)*nt,(bt+we)*et)),gt.add(new go.PathSegment(go.PathSegment.Bezier,St*nt,(bt-Jt)*et,(St-Vt)*nt,(bt-we)*et,(St-Ee)*nt,(bt-Jt)*et)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(St+Vt)*nt,bt*et,(St+Ee)*nt,(bt-Jt)*et,(St+Vt)*nt,(bt-we)*et)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*nt,(1-.595)*et,(St+Vt)*nt,(bt+we)*et,(St+(Ee+Vt)/2)*nt,(bt+(Jt+we)/2)*et)),gt.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*nt,(1-.595)*et)),gt.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*nt,(1-.555)*et)),gt.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*nt,(1-.405)*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.335*nt,(1-.405)*et));var De=new go.PathFigure(.2*nt,et,!1);dt.add(De),De.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.8*et));var Le=new go.PathFigure(.8*nt,et,!1);return dt.add(Le),Le.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.8*et)),dt}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(.1*nt,0,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,et).close());var gt=new go.PathFigure(.2*nt,.2*et,!1);return dt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.2*et)),gt.add(new go.PathSegment(go.PathSegment.Move,.2*nt,.4*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.4*et)),gt.add(new go.PathSegment(go.PathSegment.Move,.2*nt,.6*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.6*et)),gt.add(new go.PathSegment(go.PathSegment.Move,.2*nt,.8*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.8*et)),dt}),go.Shape.defineFigureGenerator("BpmnEventError",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(0,et,!0);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.33*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.66*nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.66*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.33*nt,.5*et).close()),dt}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(0,0,!1);dt.add(lt);var gt=new go.PathFigure(nt,et,!1);dt.add(gt);var mt=new go.PathFigure(.1*nt,et,!0);return dt.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,0)),mt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,et)),mt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.5*et).close()),dt}),go.Shape.defineFigureGenerator("Caution",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(.05*nt,et,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,.1*nt,.8*et,0,et,0,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.45*nt,.1*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.55*nt,.1*et,.5*nt,0,.5*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.95*nt,.9*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.9*nt,et,nt,et,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.05*nt,et));var gt=.05;return lt.add(new go.PathSegment(go.PathSegment.Move,(.5-gt)*nt,.875*et)),lt.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*nt,.875*et,gt*nt,gt*et)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*nt,.75*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.325*et,.575*nt,.725*et,.625*nt,.375*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.75*et,.375*nt,.375*et,.425*nt,.725*et)),dt}),go.Shape.defineFigureGenerator("Recycle",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(.45*nt,.95*et,!1);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.95*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.185*nt,.85*et,.17*nt,.95*et,.15*nt,.9*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.235*nt,.75*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,.625*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.35*nt,.65*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.275*nt,.45*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.05*nt,.45*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.05*nt,.575*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.1875*nt,.95*et,0,.675*et,0,.7*et)),lt.add(new go.PathSegment(go.PathSegment.Move,.45*nt,.95*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.45*nt,.775*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.22*nt,.775*et));var gt=new go.PathFigure(.475*nt,.2*et,!1);dt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,.4*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.225*nt,.3*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.275*nt,.175*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.325*nt,.05*et)),gt.add(new go.PathSegment(go.PathSegment.Bezier,.4*nt,.05*et,.35*nt,0,.375*nt,0)),gt.add(new go.PathSegment(go.PathSegment.Line,.575*nt,.375*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.525*nt,.4*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,.475*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.85*nt,.315*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.32*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.65*nt,.05*et)),gt.add(new go.PathSegment(go.PathSegment.Bezier,.575*nt,0,.65*nt,.05*et,.625*nt,0)),gt.add(new go.PathSegment(go.PathSegment.Line,.38*nt,.0105*et));var mt=new go.PathFigure(.675*nt,.575*et,!1);return dt.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,.875*nt,.525*et)),mt.add(new go.PathSegment(go.PathSegment.Line,nt,.775*et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,.85*nt,.95*et,nt,.8*et,nt,.85*et)),mt.add(new go.PathSegment(go.PathSegment.Line,.65*nt,.95*et)),mt.add(new go.PathSegment(go.PathSegment.Line,.65*nt,et)),mt.add(new go.PathSegment(go.PathSegment.Line,.55*nt,.85*et)),mt.add(new go.PathSegment(go.PathSegment.Line,.65*nt,.725*et)),mt.add(new go.PathSegment(go.PathSegment.Line,.65*nt,.775*et)),mt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,.775*et)),mt.add(new go.PathSegment(go.PathSegment.Line,nt,.775*et)),mt.add(new go.PathSegment(go.PathSegment.Move,.675*nt,.575*et)),mt.add(new go.PathSegment(go.PathSegment.Line,.775*nt,.775*et)),dt}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(Nt,nt,et){var dt=new go.Geometry,lt=.5,gt=ge*.5,mt=new go.PathFigure(nt,lt*et,!0);dt.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,lt*nt,et,nt,(lt+gt)*et,(lt+gt)*nt,et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,lt*et,(lt-gt)*nt,et,0,(lt+gt)*et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,lt*nt,0,0,(lt-gt)*et,(lt-gt)*nt,0)),mt.add(new go.PathSegment(go.PathSegment.Bezier,nt,lt*et,(lt+gt)*nt,0,nt,(lt-gt)*et));var St=new go.PathFigure(lt*nt,0,!1);return dt.add(St),St.add(new go.PathSegment(go.PathSegment.Line,lt*nt,.15*et)),St.add(new go.PathSegment(go.PathSegment.Move,lt*nt,et)),St.add(new go.PathSegment(go.PathSegment.Line,lt*nt,.85*et)),St.add(new go.PathSegment(go.PathSegment.Move,0,lt*et)),St.add(new go.PathSegment(go.PathSegment.Line,.15*nt,lt*et)),St.add(new go.PathSegment(go.PathSegment.Move,nt,lt*et)),St.add(new go.PathSegment(go.PathSegment.Line,.85*nt,lt*et)),St.add(new go.PathSegment(go.PathSegment.Move,lt*nt,lt*et)),St.add(new go.PathSegment(go.PathSegment.Line,.58*nt,.1*et)),St.add(new go.PathSegment(go.PathSegment.Move,lt*nt,lt*et)),St.add(new go.PathSegment(go.PathSegment.Line,.78*nt,.54*et)),dt}),go.Shape.defineFigureGenerator("Package",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(0,.15*et,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.15*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et).close());var gt=new go.PathFigure(0,.15*et,!0);return dt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,0,0)),gt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,0)),gt.add(new go.PathSegment(go.PathSegment.Line,.65*nt,.15*et).close()),dt.spot1=new go.Spot(0,.1),dt.spot2=new go.Spot(1,1),dt}),go.Shape.defineFigureGenerator("Class",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(0,0,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var gt=new go.PathFigure(0,.2*et,!1);dt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt,.2*et).close());var mt=new go.PathFigure(0,.5*et,!1);return dt.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et).close()),dt}),go.Shape.defineFigureGenerator("Component",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(nt,et,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.15*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.15*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et).close());var gt=new go.PathFigure(0,.2*et,!0);dt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.45*nt,.2*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.45*nt,.4*et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,.4*et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,.2*et).close());var mt=new go.PathFigure(0,.6*et,!0);return dt.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,.45*nt,.6*et)),mt.add(new go.PathSegment(go.PathSegment.Line,.45*nt,.8*et)),mt.add(new go.PathSegment(go.PathSegment.Line,0,.8*et)),mt.add(new go.PathSegment(go.PathSegment.Line,0,.6*et).close()),dt}),go.Shape.defineFigureGenerator("Boat Shipment",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(.15*nt,.6*et,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.15*nt,.6*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.6*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.15*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.85*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.6*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.85*nt,.6*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.15*nt,.6*et));var gt=new go.PathFigure(.15*nt,.6*et,!1);return dt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.85*nt,.6*et)),dt}),go.Shape.defineFigureGenerator("Customer/Supplier",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(nt,et,!0);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.66*nt,.33*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.66*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.33*nt,.33*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.33*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.33*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et).close()),dt}),go.Shape.defineFigureGenerator("Workcell",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(0,et,!0);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.65*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.65*nt,.4*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.35*nt,.4*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.35*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et).close()),dt}),go.Shape.defineFigureGenerator("Supermarket",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(0,0,!1);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.33*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.33*et)),lt.add(new go.PathSegment(go.PathSegment.Move,nt,.33*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.66*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.66*et)),lt.add(new go.PathSegment(go.PathSegment.Move,nt,.66*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),dt}),go.Shape.defineFigureGenerator("TruckShipment",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(0,0,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var gt=new go.PathFigure(nt,.8*et,!0);dt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt,.4*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,.4*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,.8*et)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,.8*et).close());var mt=.1,St=ge*.1,bt=.2,It=.9,Ht=new go.PathFigure((bt-mt)*nt,It*et,!0);dt.add(Ht),Ht.add(new go.PathSegment(go.PathSegment.Bezier,bt*nt,(It-mt)*et,(bt-mt)*nt,(It-St)*et,(bt-St)*nt,(It-mt)*et)),Ht.add(new go.PathSegment(go.PathSegment.Bezier,(bt+mt)*nt,It*et,(bt+St)*nt,(It-mt)*et,(bt+mt)*nt,(It-St)*et)),Ht.add(new go.PathSegment(go.PathSegment.Bezier,bt*nt,(It+mt)*et,(bt+mt)*nt,(It+St)*et,(bt+St)*nt,(It+mt)*et)),Ht.add(new go.PathSegment(go.PathSegment.Bezier,(bt-mt)*nt,It*et,(bt-St)*nt,(It+mt)*et,(bt-mt)*nt,(It+St)*et).close()),mt=.1,St=ge*.1,bt=.8,It=.9;var se=new go.PathFigure((bt-mt)*nt,It*et,!0);return dt.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,bt*nt,(It-mt)*et,(bt-mt)*nt,(It-St)*et,(bt-St)*nt,(It-mt)*et)),se.add(new go.PathSegment(go.PathSegment.Bezier,(bt+mt)*nt,It*et,(bt+St)*nt,(It-mt)*et,(bt+mt)*nt,(It-St)*et)),se.add(new go.PathSegment(go.PathSegment.Bezier,bt*nt,(It+mt)*et,(bt+mt)*nt,(It+St)*et,(bt+St)*nt,(It+mt)*et)),se.add(new go.PathSegment(go.PathSegment.Bezier,(bt-mt)*nt,It*et,(bt-St)*nt,(It+mt)*et,(bt-mt)*nt,(It+St)*et).close()),dt}),go.Shape.defineFigureGenerator("KanbanPost",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(.2*nt,0,!1);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,et)),dt}),go.Shape.defineFigureGenerator("Forklift",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(0,0,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0));var gt=new go.PathFigure(0,.5*et,!0);dt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,0,.8*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.8*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.5*et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,.5*et));var mt=new go.PathFigure(.5*nt,.8*et,!0);dt.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.1*et)),mt.add(new go.PathSegment(go.PathSegment.Line,.55*nt,.1*et)),mt.add(new go.PathSegment(go.PathSegment.Line,.55*nt,.8*et)),mt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.8*et));var St=new go.PathFigure(.5*nt,.7*et,!1);dt.add(St),St.add(new go.PathSegment(go.PathSegment.Line,nt,.7*et));var bt=.1,It=ge*.1,Ht=.1,se=.9,Vt=new go.PathFigure((Ht-bt)*nt,se*et,!0);dt.add(Vt),Vt.add(new go.PathSegment(go.PathSegment.Bezier,Ht*nt,(se-bt)*et,(Ht-bt)*nt,(se-It)*et,(Ht-It)*nt,(se-bt)*et)),Vt.add(new go.PathSegment(go.PathSegment.Bezier,(Ht+bt)*nt,se*et,(Ht+It)*nt,(se-bt)*et,(Ht+bt)*nt,(se-It)*et)),Vt.add(new go.PathSegment(go.PathSegment.Bezier,Ht*nt,(se+bt)*et,(Ht+bt)*nt,(se+It)*et,(Ht+It)*nt,(se+bt)*et)),Vt.add(new go.PathSegment(go.PathSegment.Bezier,(Ht-bt)*nt,se*et,(Ht-It)*nt,(se+bt)*et,(Ht-bt)*nt,(se+It)*et)),bt=.1,It=ge*.1,Ht=.4,se=.9;var Jt=new go.PathFigure((Ht-bt)*nt,se*et,!0);return dt.add(Jt),Jt.add(new go.PathSegment(go.PathSegment.Bezier,Ht*nt,(se-bt)*et,(Ht-bt)*nt,(se-It)*et,(Ht-It)*nt,(se-bt)*et)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,(Ht+bt)*nt,se*et,(Ht+It)*nt,(se-bt)*et,(Ht+bt)*nt,(se-It)*et)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,Ht*nt,(se+bt)*et,(Ht+bt)*nt,(se+It)*et,(Ht+It)*nt,(se+bt)*et)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,(Ht-bt)*nt,se*et,(Ht-It)*nt,(se+bt)*et,(Ht-bt)*nt,(se+It)*et)),dt}),go.Shape.defineFigureGenerator("RailShipment",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(.1*nt,.4*et,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.45*nt,.4*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.45*nt,.9*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,.9*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,.4*et).close());var gt=new go.PathFigure(.45*nt,.7*et,!1);dt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.55*nt,.7*et));var mt=new go.PathFigure(.55*nt,.4*et,!0);dt.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.4*et)),mt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.9*et)),mt.add(new go.PathSegment(go.PathSegment.Line,.55*nt,.9*et)),mt.add(new go.PathSegment(go.PathSegment.Line,.55*nt,.4*et).close());var Ht=.05,se=ge*.05,Vt=.175,Jt=.95,St=new go.PathFigure((Vt-Ht)*nt,Jt*et,!0);dt.add(St),St.add(new go.PathSegment(go.PathSegment.Bezier,Vt*nt,(Jt-Ht)*et,(Vt-Ht)*nt,(Jt-se)*et,(Vt-se)*nt,(Jt-Ht)*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,(Vt+Ht)*nt,Jt*et,(Vt+se)*nt,(Jt-Ht)*et,(Vt+Ht)*nt,(Jt-se)*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,Vt*nt,(Jt+Ht)*et,(Vt+Ht)*nt,(Jt+se)*et,(Vt+se)*nt,(Jt+Ht)*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,(Vt-Ht)*nt,Jt*et,(Vt-se)*nt,(Jt+Ht)*et,(Vt-Ht)*nt,(Jt+se)*et));var Ht=.05,se=ge*.05,Vt=.375,Jt=.95,bt=new go.PathFigure((Vt-Ht)*nt,Jt*et,!0);dt.add(bt),bt.add(new go.PathSegment(go.PathSegment.Bezier,Vt*nt,(Jt-Ht)*et,(Vt-Ht)*nt,(Jt-se)*et,(Vt-se)*nt,(Jt-Ht)*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,(Vt+Ht)*nt,Jt*et,(Vt+se)*nt,(Jt-Ht)*et,(Vt+Ht)*nt,(Jt-se)*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,Vt*nt,(Jt+Ht)*et,(Vt+Ht)*nt,(Jt+se)*et,(Vt+se)*nt,(Jt+Ht)*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,(Vt-Ht)*nt,Jt*et,(Vt-se)*nt,(Jt+Ht)*et,(Vt-Ht)*nt,(Jt+se)*et));var Ht=.05,se=ge*.05,Vt=.625,Jt=.95,It=new go.PathFigure((Vt-Ht)*nt,Jt*et,!0);dt.add(It),It.add(new go.PathSegment(go.PathSegment.Bezier,Vt*nt,(Jt-Ht)*et,(Vt-Ht)*nt,(Jt-se)*et,(Vt-se)*nt,(Jt-Ht)*et)),It.add(new go.PathSegment(go.PathSegment.Bezier,(Vt+Ht)*nt,Jt*et,(Vt+se)*nt,(Jt-Ht)*et,(Vt+Ht)*nt,(Jt-se)*et)),It.add(new go.PathSegment(go.PathSegment.Bezier,Vt*nt,(Jt+Ht)*et,(Vt+Ht)*nt,(Jt+se)*et,(Vt+se)*nt,(Jt+Ht)*et)),It.add(new go.PathSegment(go.PathSegment.Bezier,(Vt-Ht)*nt,Jt*et,(Vt-se)*nt,(Jt+Ht)*et,(Vt-Ht)*nt,(Jt+se)*et));var Ht=.05,se=ge*.05,Vt=.825,Jt=.95,Ee=new go.PathFigure((Vt-Ht)*nt,Jt*et,!0);dt.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,Vt*nt,(Jt-Ht)*et,(Vt-Ht)*nt,(Jt-se)*et,(Vt-se)*nt,(Jt-Ht)*et)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(Vt+Ht)*nt,Jt*et,(Vt+se)*nt,(Jt-Ht)*et,(Vt+Ht)*nt,(Jt-se)*et)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,Vt*nt,(Jt+Ht)*et,(Vt+Ht)*nt,(Jt+se)*et,(Vt+se)*nt,(Jt+Ht)*et)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(Vt-Ht)*nt,Jt*et,(Vt-se)*nt,(Jt+Ht)*et,(Vt-Ht)*nt,(Jt+se)*et).close());var we=new go.PathFigure(0,et,!1);return dt.add(we),we.add(new go.PathSegment(go.PathSegment.Line,nt,et).close()),dt}),go.Shape.defineFigureGenerator("Warehouse",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(0,0,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var gt=new go.PathFigure(0,.2*et,!1);dt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt,.2*et).close());var mt=new go.PathFigure(.15*nt,et,!0);dt.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,.15*nt,.5*et)),mt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,.5*et)),mt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,et)),mt.add(new go.PathSegment(go.PathSegment.Line,.15*nt,et).close());var St=.05,bt=ge*.05,It=.35,Ht=.775,se=new go.PathFigure((It-St)*nt,Ht*et,!0);return dt.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,It*nt,(Ht-St)*et,(It-St)*nt,(Ht-bt)*et,(It-bt)*nt,(Ht-St)*et)),se.add(new go.PathSegment(go.PathSegment.Bezier,(It+St)*nt,Ht*et,(It+bt)*nt,(Ht-St)*et,(It+St)*nt,(Ht-bt)*et)),se.add(new go.PathSegment(go.PathSegment.Bezier,It*nt,(Ht+St)*et,(It+St)*nt,(Ht+bt)*et,(It+bt)*nt,(Ht+St)*et)),se.add(new go.PathSegment(go.PathSegment.Bezier,(It-St)*nt,Ht*et,(It-bt)*nt,(Ht+St)*et,(It-St)*nt,(Ht+bt)*et).close()),dt}),go.Shape.defineFigureGenerator("ControlCenter",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(0,et,!0);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Move,.1*nt,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.8*et).close()),dt}),go.Shape.defineFigureGenerator("Bluetooth",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(0,.75*et,!1);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,.75*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.25*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.75*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.25*et)),dt}),go.Shape.defineFigureGenerator("Bookmark",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(0,0,!0);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.6*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Move,.2*nt,.2*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.2*et)),lt.add(new go.PathSegment(go.PathSegment.Move,.2*nt,.4*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.4*et)),dt}),go.Shape.defineFigureGenerator("Bookmark",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(0,0,!0);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.6*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Move,.2*nt,.2*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.2*et)),lt.add(new go.PathSegment(go.PathSegment.Move,.2*nt,.4*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.4*et)),dt}),go.Shape.defineFigureGenerator("Globe",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(.5*nt,0,!1);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Move,0,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.5*et,.75*nt,0,nt,.25*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,et,nt,.75*et,.75*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*et,.25*nt,et,0,.75*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,0,0,.25*et,.25*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,et,.15*nt,.25*et,.15*nt,.75*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,0,.85*nt,.75*et,.85*nt,.25*et)),lt.add(new go.PathSegment(go.PathSegment.Move,.1675*nt,.15*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.8325*nt,.15*et,.35*nt,.3*et,.65*nt,.3*et)),lt.add(new go.PathSegment(go.PathSegment.Move,.1675*nt,.85*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.8325*nt,.85*et,.35*nt,.7*et,.65*nt,.7*et)),dt}),go.Shape.defineFigureGenerator("Wave",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(0,.25*et,!1);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,.3*nt,.25*et,.1*nt,0,.2*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.7*nt,.25*et,.425*nt,.5*et,.575*nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.25*et,.8*nt,0,.9*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.75*et)),lt.add(new go.PathSegment(go.PathSegment.Move,0,.25*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.75*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.3*nt,.75*et,.1*nt,.5*et,.2*nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.7*nt,.75*et,.425*nt,et,.575*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.75*et,.8*nt,.5*et,.9*nt,.5*et)),dt}),go.Shape.defineFigureGenerator("Operator",function(Nt,nt,et){var dt=new go.Geometry,lt=.3,gt=ge*.3,mt=.5,St=.7,bt=new go.PathFigure((mt-lt)*nt,St*et,!0);dt.add(bt),bt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St-lt)*et,(mt-lt)*nt,(St-gt)*et,(mt-gt)*nt,(St-lt)*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+lt)*nt,St*et,(mt+gt)*nt,(St-lt)*et,(mt+lt)*nt,(St-gt)*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St+lt)*et,(mt+lt)*nt,(St+gt)*et,(mt+gt)*nt,(St+lt)*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-lt)*nt,St*et,(mt-gt)*nt,(St+lt)*et,(mt-lt)*nt,(St+gt)*et));var It=new go.PathFigure(0,.7*et,!1);return dt.add(It),It.add(new go.PathSegment(go.PathSegment.Bezier,nt,.7*et,0,0,nt,0)),dt}),go.Shape.defineFigureGenerator("TripleFanBlades",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(.5*nt,0,!0);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.65*et,.65*nt,.3*et,.65*nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,0,.35*nt,.5*et,.35*nt,.3*et)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*nt,.65*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,et,.3*nt,.6*et,.1*nt,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.65*et,.2*nt,et,.35*nt,.95*et)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*nt,.65*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,nt,et,.7*nt,.6*et,.9*nt,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.65*et,.8*nt,et,.65*nt,.95*et)),dt}),go.Shape.defineFigureGenerator("CentrifugalPump",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(nt,0,!0);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*et,0,.075*et,0,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.4*nt,et,0,et,.4*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.8*nt,.4*et,.8*nt,et,.85*nt,.6*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.4*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),dt}),go.Shape.defineFigureGenerator("Battery",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(0,et,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,.1*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.1*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Move,.4*nt,.1*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,.1*et));var gt=new go.PathFigure(0,.6*et,!1);return dt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Move,0,.4*et)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,.4*et)),dt}),go.Shape.defineFigureGenerator("Delete",function(Nt,nt,et){var dt=new go.Geometry,lt=.5,gt=ge*.5,mt=.5,St=.5,bt=new go.PathFigure((mt-lt)*nt,St*et,!0);dt.add(bt),bt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St-lt)*et,(mt-lt)*nt,(St-gt)*et,(mt-gt)*nt,(St-lt)*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+lt)*nt,St*et,(mt+gt)*nt,(St-lt)*et,(mt+lt)*nt,(St-gt)*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St+lt)*et,(mt+lt)*nt,(St+gt)*et,(mt+gt)*nt,(St+lt)*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-lt)*nt,St*et,(mt-gt)*nt,(St+lt)*et,(mt-lt)*nt,(St+gt)*et));var It=new go.PathFigure(.15*nt,.5*et,!1);return dt.add(It),It.add(new go.PathSegment(go.PathSegment.Line,.85*nt,.5*et)),dt}),go.Shape.defineFigureGenerator("Flag",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(0,.1*et,!0);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Move,0,.1*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.1*et,.15*nt,0,.35*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.1*et,.65*nt,.2*et,.85*nt,.2*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.5*et,.85*nt,.6*et,.65*nt,.6*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*et,.35*nt,.4*et,.15*nt,.4*et).close()),dt}),go.Shape.defineFigureGenerator("Help",function(Nt,nt,et){var dt=new go.Geometry,lt=.5,gt=ge*.5,mt=.5,St=.5,bt=new go.PathFigure((mt-lt)*nt,St*et,!1);dt.add(bt),bt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St-lt)*et,(mt-lt)*nt,(St-gt)*et,(mt-gt)*nt,(St-lt)*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+lt)*nt,St*et,(mt+gt)*nt,(St-lt)*et,(mt+lt)*nt,(St-gt)*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St+lt)*et,(mt+lt)*nt,(St+gt)*et,(mt+gt)*nt,(St+lt)*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-lt)*nt,St*et,(mt-gt)*nt,(St+lt)*et,(mt-lt)*nt,(St+gt)*et).close()),lt=.05,gt=ge*.05,mt=.5,St=.8;var It=new go.PathFigure((mt-lt)*nt,St*et,!1);return dt.add(It),It.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St-lt)*et,(mt-lt)*nt,(St-gt)*et,(mt-gt)*nt,(St-lt)*et)),It.add(new go.PathSegment(go.PathSegment.Bezier,(mt+lt)*nt,St*et,(mt+gt)*nt,(St-lt)*et,(mt+lt)*nt,(St-gt)*et)),It.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St+lt)*et,(mt+lt)*nt,(St+gt)*et,(mt+gt)*nt,(St+lt)*et)),It.add(new go.PathSegment(go.PathSegment.Bezier,(mt-lt)*nt,St*et,(mt-gt)*nt,(St+lt)*et,(mt-lt)*nt,(St+gt)*et).close()),It.add(new go.PathSegment(go.PathSegment.Move,.5*nt,.7*et)),It.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.5*et)),It.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.2*et,.75*nt,.475*et,.75*nt,.225*et)),It.add(new go.PathSegment(go.PathSegment.Bezier,.3*nt,.35*et,.4*nt,.2*et,.3*nt,.25*et)),dt}),go.Shape.defineFigureGenerator("Location",function(Nt,nt,et){return new go.Geometry().add(new go.PathFigure(.5*nt,et,!0).add(new go.PathSegment(go.PathSegment.Line,.75*nt,.5*et)).add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,0,.975*nt,.025*et,.5*nt,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*nt,.5*et,.5*nt,0,.025*nt,.025*et).close()).add(new go.PathSegment(go.PathSegment.Move,.5*nt,.2*et)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*nt,.3*et,.1*nt,.1*et).close()))}),go.Shape.defineFigureGenerator("Lock",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(0,.5*et,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.5*et));var gt=new go.PathFigure(.2*nt,.5*et,!1);return dt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Move,.2*nt,.5*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.3*et)),gt.add(new go.PathSegment(go.PathSegment.Bezier,.8*nt,.3*et,.25*nt,0,.75*nt,0)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.5*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.3*et)),dt}),go.Shape.defineFigureGenerator("Unlocked",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(0,.5*et,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.5*et));var gt=new go.PathFigure(.2*nt,.5*et,!1);return dt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Move,.2*nt,.5*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.3*et)),gt.add(new go.PathSegment(go.PathSegment.Bezier,.8*nt,.3*et,.25*nt,0,.75*nt,0)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.35*et)),dt}),go.Shape.defineFigureGenerator("Gear",function(Nt,nt,et){return new go.Geometry().add(new go.PathFigure(.9375*nt,.56246875*et,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*nt,.4375*et)).add(new go.PathSegment(go.PathSegment.Line,.80621875*nt,.4375*et)).add(new go.PathSegment(go.PathSegment.Bezier,.763*nt,.3316875*et,.79840625*nt,.39915625*et,.7834375*nt,.3635*et)).add(new go.PathSegment(go.PathSegment.Line,.8566875*nt,.23796875*et)).add(new go.PathSegment(go.PathSegment.Line,.76825*nt,.14959375*et)).add(new go.PathSegment(go.PathSegment.Line,.67596875*nt,.24184375*et)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*nt,.19378125*et,.64228125*nt,.2188125*et,.603875*nt,.2021875*et)).add(new go.PathSegment(go.PathSegment.Line,.5625*nt,.0625*et)).add(new go.PathSegment(go.PathSegment.Line,.4375*nt,.0625*et)).add(new go.PathSegment(go.PathSegment.Line,.4375*nt,.19378125*et)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*nt,.239375*et,.39759375*nt,.20190625*et,.36053125*nt,.2176875*et)).add(new go.PathSegment(go.PathSegment.Line,.2379375*nt,.14959375*et)).add(new go.PathSegment(go.PathSegment.Line,.14953125*nt,.2379375*et)).add(new go.PathSegment(go.PathSegment.Line,.23934375*nt,.3278125*et)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*nt,.4375*et,.21765625*nt,.36059375*et,.201875*nt,.397625*et)).add(new go.PathSegment(go.PathSegment.Line,.0625*nt,.4375*et)).add(new go.PathSegment(go.PathSegment.Line,.0625*nt,.5625*et)).add(new go.PathSegment(go.PathSegment.Line,.1938125*nt,.5625*et)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*nt,.67596875*et,.20221875*nt,.603875*et,.21884375*nt,.64228125*et)).add(new go.PathSegment(go.PathSegment.Line,.1495625*nt,.76825*et)).add(new go.PathSegment(go.PathSegment.Line,.238*nt,.8566875*et)).add(new go.PathSegment(go.PathSegment.Line,.3316875*nt,.76296875*et)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*nt,.80621875*et,.36353125*nt,.78340625*et,.3991875*nt,.79840625*et)).add(new go.PathSegment(go.PathSegment.Line,.43753125*nt,.9375*et)).add(new go.PathSegment(go.PathSegment.Line,.5625*nt,.9375*et)).add(new go.PathSegment(go.PathSegment.Line,.5625*nt,.80621875*et)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*nt,.760625*et,.602375*nt,.79809375*et,.63946875*nt,.78234375*et)).add(new go.PathSegment(go.PathSegment.Line,.76828125*nt,.8566875*et)).add(new go.PathSegment(go.PathSegment.Line,.85671875*nt,.76825*et)).add(new go.PathSegment(go.PathSegment.Line,.76065625*nt,.67221875*et)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*nt,.56246875*et,.78234375*nt,.63940625*et,.798125*nt,.602375*et)).add(new go.PathSegment(go.PathSegment.Line,.9375*nt,.56246875*et).close()).add(new go.PathSegment(go.PathSegment.Move,.5*nt,.6*et)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*nt,.5*et,.1*nt,.1*et).close()))}),go.Shape.defineFigureGenerator("Hand",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(0,.5*et,!0);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,.1*nt,.3*et,0,.375*et,.05*nt,.325*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.45*nt,.075*et,.3*nt,.225*et,.4*nt,.175*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.525*nt,.075*et,.46*nt,.05*et,.525*nt,.05*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.3*nt,.4*et,.525*nt,.275*et,.475*nt,.325*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.4*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.9*nt,.55*et,nt,.4*et,nt,.55*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.425*nt,.55*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,.55*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.6*nt,.7*et,.675*nt,.55*et,.675*nt,.7*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,.7*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.575*nt,.7*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.575*nt,.85*et,.65*nt,.7*et,.65*nt,.85*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,.85*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.525*nt,.85*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.535*nt,et,.61*nt,.85*et,.61*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*et,.435*nt,et,0,et).close()),dt}),go.Shape.defineFigureGenerator("Map",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(0,.2*et,!0);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.25*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.2*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.2*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.25*nt,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et).close()),lt.add(new go.PathSegment(go.PathSegment.Move,.25*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.25*nt,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*nt,.2*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Move,.75*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,.8*et)),dt}),go.Shape.defineFigureGenerator("Eject",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(0,et,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et*.7)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et*.7).close());var gt=new go.PathFigure(0,et*.6,!0);return dt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt,.6*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,0).close()),dt}),go.Shape.defineFigureGenerator("Pencil",function(Nt,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*nt,.1*et)).add(new go.PathSegment(go.PathSegment.Line,nt,.9*et)).add(new go.PathSegment(go.PathSegment.Line,.9*nt,et)).add(new go.PathSegment(go.PathSegment.Line,.1*nt,.2*et).close()))}),go.Shape.defineFigureGenerator("Building",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(nt*1,et*1,!1);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et*.85)),lt.add(new go.PathSegment(go.PathSegment.Line,.046*nt,et*.85)),lt.add(new go.PathSegment(go.PathSegment.Line,.046*nt,et*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et*.3)),lt.add(new go.PathSegment(go.PathSegment.Line,.046*nt,et*.3)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et*0)),lt.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*nt,et*.3)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et*.3)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*nt,et*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*nt,et*.85)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et*.85).close());var gt=new go.PathFigure(.126*nt,.85*et,!1);dt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.126*nt,.45*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.322*nt,.45*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.322*nt,.85*et).close());var mt=new go.PathFigure(.402*nt,.85*et,!1);dt.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,.402*nt,.45*et)),mt.add(new go.PathSegment(go.PathSegment.Line,.598*nt,.45*et)),mt.add(new go.PathSegment(go.PathSegment.Line,.598*nt,.85*et).close());var St=new go.PathFigure(.678*nt,.85*et,!1);dt.add(St),St.add(new go.PathSegment(go.PathSegment.Line,.678*nt,.45*et)),St.add(new go.PathSegment(go.PathSegment.Line,.874*nt,.45*et)),St.add(new go.PathSegment(go.PathSegment.Line,.874*nt,.85*et).close());var bt=new go.PathFigure(.5*nt,.1*et,!1);return dt.add(bt),bt.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*nt,.3*et)),bt.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*nt,.3*et).close()),dt}),go.Shape.defineFigureGenerator("Staircase",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(0,et*1,!0);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.2,et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.2,et*.8)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.4,et*.8)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.4,et*.6)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.6,et*.6)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.6,et*.4)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.8,et*.4)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.8,et*.2)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*.2)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*.15)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.75,et*.15)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.75,et*.35)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.55,et*.35)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.55,et*.55)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.35,et*.55)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.35,et*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.15,et*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.15,et*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et*.95).close()),dt}),go.Shape.defineFigureGenerator("5Bars",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(0,et*1,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.184,et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.184,et*(1-.184)).close());var gt=new go.PathFigure(nt*.204,et,!0);dt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.204,et*(1-.184))),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.388,et*(1-.184*2))),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.388,et*1).close());var mt=new go.PathFigure(nt*.408,et,!0);dt.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.408,et*(1-.184*2))),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.592,et*(1-.184*3))),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.592,et*1).close());var St=new go.PathFigure(nt*.612,et,!0);dt.add(St),St.add(new go.PathSegment(go.PathSegment.Line,nt*.612,et*(1-.184*3))),St.add(new go.PathSegment(go.PathSegment.Line,nt*.796,et*(1-.184*4))),St.add(new go.PathSegment(go.PathSegment.Line,nt*.796,et*1).close());var bt=new go.PathFigure(nt*.816,et,!0);return dt.add(bt),bt.add(new go.PathSegment(go.PathSegment.Line,nt*.816,et*(1-.184*4))),bt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*(1-.184*5))),bt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*1).close()),dt}),go.Shape.defineFigureGenerator("PC",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(0,0,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.3,et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.3,0).close());var gt=new go.PathFigure(nt*.055,.07*et,!0);dt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.245,et*.07)),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.245,et*.1)),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.055,et*.1).close());var mt=new go.PathFigure(nt*.055,.13*et,!0);dt.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.245,et*.13)),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.245,et*.16)),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.055,et*.16).close());var St=new go.PathFigure(nt*.055,.18*et,!0);dt.add(St),St.add(new go.PathSegment(go.PathSegment.Line,nt*.245,et*.18)),St.add(new go.PathSegment(go.PathSegment.Line,nt*.245,et*.21)),St.add(new go.PathSegment(go.PathSegment.Line,nt*.055,et*.21).close());var bt=new go.PathFigure(nt*1,0,!0);return dt.add(bt),bt.add(new go.PathSegment(go.PathSegment.Line,nt*.4,0)),bt.add(new go.PathSegment(go.PathSegment.Line,nt*.4,et*.65)),bt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*.65).close()),dt}),go.Shape.defineFigureGenerator("Plane",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(.55*nt,et,!0);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.6*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,.7*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,.475*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.35*nt,.525*et,0,.4*et,.225*nt,.45*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,.475*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.15*nt,.35*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.325*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,.325*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.85*nt,.1*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.9*nt,.2*et,.975*nt,0,nt,.08*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,.45*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,.95*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.55*nt,et).close()),dt}),go.Shape.defineFigureGenerator("Key",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(nt*1,et*.5,!0);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.9,.4*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.5,.4*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.5,.35*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.45,.35*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.3,.2*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.15,.2*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.35*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.65*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.15,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.3,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.45,.65*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.5,.65*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.5,.6*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.6,.6*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.65,.55*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.7,.6*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.75,.55*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.8,.6*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.85,.575*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.9,.6*et).close()),lt.add(new go.PathSegment(go.PathSegment.Move,.17*nt,.425*et)),lt.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*nt,.5*et,.075*nt,.075*et).close()),dt}),go.Shape.defineFigureGenerator("FilmTape",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(0,0,!1);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Arc,270,180,nt*0,nt*.3,nt*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.08,et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.08,et*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*1),et*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*1),et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*2),et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*2),et*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*3),et*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*3),et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*4),et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*4),et*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*5),et*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*5),et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*6),et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*6),et*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*7),et*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*7),et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*8),et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*8),et*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*9),et*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*9),et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*10),et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*10),et*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*11),et*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*11),et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*12),et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*12),et*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*13),et*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*13),et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*14),et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*14),et*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*15),et*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*15),et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*1));var gt=new go.PathFigure(0,0,!1);dt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*0)),gt.add(new go.PathSegment(go.PathSegment.Arc,270,-180,nt*1,nt*.3,nt*.055)),gt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*1));var mt=new go.PathFigure(nt*.11,et*.1,!1);dt.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,nt*(.11+.24133333*1+.028*0),et*.1)),mt.add(new go.PathSegment(go.PathSegment.Line,nt*(.11+.24133333*1+.028*0),et*.8)),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.11,et*.8).close());var St=new go.PathFigure(nt*(.11+.24133333*1+.028*1),et*.1,!1);dt.add(St),St.add(new go.PathSegment(go.PathSegment.Line,nt*(.11+.24133333*2+.028*1),et*.1)),St.add(new go.PathSegment(go.PathSegment.Line,nt*(.11+.24133333*2+.028*1),et*.8)),St.add(new go.PathSegment(go.PathSegment.Line,nt*(.11+.24133333*1+.028*1),et*.8).close());var bt=new go.PathFigure(nt*(.11+.24133333*2+.028*2),et*.1,!1);return dt.add(bt),bt.add(new go.PathSegment(go.PathSegment.Line,nt*(.11+.24133333*3+.028*2),et*.1)),bt.add(new go.PathSegment(go.PathSegment.Line,nt*(.11+.24133333*3+.028*2),et*.8)),bt.add(new go.PathSegment(go.PathSegment.Line,nt*(.11+.24133333*2+.028*2),et*.8).close()),dt}),go.Shape.defineFigureGenerator("FloppyDisk",function(Nt,nt,et){var dt=new go.Geometry,lt=8,gt=lt*ge,mt=new go.PathFigure(lt,0,!1);dt.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.86,0)),mt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*.14)),mt.add(new go.PathSegment(go.PathSegment.Line,nt,et-lt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,nt-lt,et,nt,et-gt,nt-gt,et)),mt.add(new go.PathSegment(go.PathSegment.Line,lt,et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,et-lt,gt,et,0,et-gt)),mt.add(new go.PathSegment(go.PathSegment.Line,0,lt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,lt,0,0,gt,gt,0).close());var St=new go.PathFigure(nt*.83,0,!1);dt.add(St),St.add(new go.PathSegment(go.PathSegment.Line,nt*.83,et*.3)),St.add(new go.PathSegment(go.PathSegment.Line,nt*.17,et*.3)),St.add(new go.PathSegment(go.PathSegment.Line,nt*.17,et*0).close());var bt=new go.PathFigure(nt*.83,et*1,!1);dt.add(bt),bt.add(new go.PathSegment(go.PathSegment.Line,nt*.83,et*.5)),bt.add(new go.PathSegment(go.PathSegment.Line,nt*.17,et*.5)),bt.add(new go.PathSegment(go.PathSegment.Line,nt*.17,et*1).close());var It=new go.PathFigure(nt*.78,et*.05,!1);return dt.add(It),It.add(new go.PathSegment(go.PathSegment.Line,nt*.66,et*.05)),It.add(new go.PathSegment(go.PathSegment.Line,nt*.66,et*.25)),It.add(new go.PathSegment(go.PathSegment.Line,nt*.78,et*.25).close()),dt}),go.Shape.defineFigureGenerator("SpeechBubble",function(Nt,nt,et){var dt=Nt?Nt.parameter1:NaN;(isNaN(dt)||dt<0)&&(dt=15),dt=Math.min(dt,nt/3),dt=Math.min(dt,et/3);var lt=dt*ge,gt=et*.8,mt=new go.Geometry,St=new go.PathFigure(dt,0,!0);return mt.add(St),St.add(new go.PathSegment(go.PathSegment.Line,nt-dt,0)),St.add(new go.PathSegment(go.PathSegment.Bezier,nt,dt,nt-lt,0,nt,lt)),St.add(new go.PathSegment(go.PathSegment.Line,nt,gt-dt)),St.add(new go.PathSegment(go.PathSegment.Bezier,nt-dt,gt,nt,gt-lt,nt-lt,gt)),St.add(new go.PathSegment(go.PathSegment.Line,nt*.7,gt)),St.add(new go.PathSegment(go.PathSegment.Line,nt*.7,et)),St.add(new go.PathSegment(go.PathSegment.Line,nt*.55,gt)),St.add(new go.PathSegment(go.PathSegment.Line,dt,gt)),St.add(new go.PathSegment(go.PathSegment.Bezier,0,gt-dt,lt,gt,0,gt-lt)),St.add(new go.PathSegment(go.PathSegment.Line,0,dt)),St.add(new go.PathSegment(go.PathSegment.Bezier,dt,0,0,lt,lt,0).close()),lt>1?(mt.spot1=new go.Spot(0,0,lt,lt),mt.spot2=new go.Spot(1,.8,-lt,-lt)):(mt.spot1=go.Spot.TopLeft,mt.spot2=new go.Spot(1,.8)),mt}),go.Shape.defineFigureGenerator("Repeat",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(nt*0,et*.45,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.25,et*0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.5,et*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.3,et*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.3,et*.9)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.6,et*.9)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.65,et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.2,et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.2,et*.45).close());var gt=new go.PathFigure(nt*1,et*.55,!0);return dt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.75,et*1)),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.5,et*.55)),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.7,et*.55)),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.7,et*.1)),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.4,et*.1)),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.35,et*0)),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.8,et*0)),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.8,et*.55).close()),dt}),go.Shape.defineFigureGenerator("Windows",function(Nt,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,nt,0)).add(new go.PathSegment(go.PathSegment.Line,nt,et)).add(new go.PathSegment(go.PathSegment.Line,0,et).close()).add(new go.PathSegment(go.PathSegment.Move,.4*nt,.4*et)).add(new go.PathSegment(go.PathSegment.Line,.4*nt,.8*et)).add(new go.PathSegment(go.PathSegment.Line,.9*nt,.8*et)).add(new go.PathSegment(go.PathSegment.Line,.9*nt,.4*et).close()).add(new go.PathSegment(go.PathSegment.Move,.2*nt,.1*et)).add(new go.PathSegment(go.PathSegment.Line,.2*nt,.6*et)).add(new go.PathSegment(go.PathSegment.Line,.7*nt,.6*et)).add(new go.PathSegment(go.PathSegment.Line,.7*nt,.1*et).close()).add(new go.PathSegment(go.PathSegment.Move,.1*nt,.6*et)).add(new go.PathSegment(go.PathSegment.Line,.1*nt,.9*et)).add(new go.PathSegment(go.PathSegment.Line,.5*nt,.9*et)).add(new go.PathSegment(go.PathSegment.Line,.5*nt,.6*et).close()))}),go.Shape.defineFigureGenerator("Terminal",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(nt*0,et*.1,!1);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*.1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*.9)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*0,et*.9).close());var gt=new go.PathFigure(nt*.1,et*.2,!0);dt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.1,et*.25)),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.22,et*.285)),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.1,et*.32)),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.1,et*.37)),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.275,et*.32)),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.275,et*.25).close());var mt=new go.PathFigure(nt*.28,et*.37,!0);return dt.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.45,et*.37)),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.45,et*.41)),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.28,et*.41).close()),dt}),go.Shape.defineFigureGenerator("Beaker",function(Nt,nt,et){var dt=new go.Geometry,lt=15,gt=lt*ge,mt=new go.PathFigure(nt*.62,et*.475,!0);return dt.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,nt,et-lt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,nt-lt,et,nt,et-gt,nt-gt,et)),mt.add(new go.PathSegment(go.PathSegment.Line,lt,et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,et-lt,gt,et,0,et-gt)),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.38,et*.475)),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.38,et*.03)),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.36,et*0)),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.64,et*0)),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.62,et*.03).close()),gt>1?(dt.spot1=new go.Spot(0,0,gt,gt),dt.spot2=new go.Spot(1,1,-gt,-gt)):(dt.spot1=go.Spot.TopLeft,dt.spot2=go.Spot.BottomRight),dt}),go.Shape.defineFigureGenerator("Download",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(nt*0,et*1,!0);dt.add(lt);var gt=.1/.3;lt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*(1-gt))),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.8,et*0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.66,et*0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.66,et*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.755,et*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.93,et*(1-gt))),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.64,et*(1-gt))),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.61,et*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.5,et*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.39,et*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.36,et*(1-gt))),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.07,et*(1-gt))),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(1-.755),et*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(1-.66),et*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(1-.66),et*0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(1-.8),et*0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*0,et*(1-gt)).close());var mt=new go.PathFigure(nt*.4,et*0,!0);return dt.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.4,et*.44)),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.26,et*.44)),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.5,et*.66)),mt.add(new go.PathSegment(go.PathSegment.Line,nt*(1-.26),et*.44)),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.6,et*.44)),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.6,et*0).close()),dt}),go.Shape.defineFigureGenerator("Bin",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(nt*0,et*1,!0);dt.add(lt);var gt=.1/.3;return lt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*(1-gt))),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.8,et*0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.66,et*0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.66,et*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.755,et*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.93,et*(1-gt))),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.64,et*(1-gt))),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.61,et*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.5,et*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.39,et*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.36,et*(1-gt))),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.07,et*(1-gt))),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(1-.755),et*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(1-.66),et*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(1-.66),et*0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(1-.8),et*0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*0,et*(1-gt)).close()),dt}),go.Shape.defineFigureGenerator("Upload",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(nt*0,et*1,!0);dt.add(lt);var gt=.1/.3;lt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*(1-gt))),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.8,et*0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.66,et*0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.66,et*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.755,et*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.93,et*(1-gt))),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.64,et*(1-gt))),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.61,et*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.5,et*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.39,et*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.36,et*(1-gt))),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.07,et*(1-gt))),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(1-.755),et*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(1-.66),et*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(1-.66),et*0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(1-.8),et*0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*0,et*(1-gt)).close());var mt=new go.PathFigure(nt*.5,et*0,!0);return dt.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.26,et*.25)),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.4,et*.25)),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.4,et*.63)),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.6,et*.63)),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.6,et*.25)),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.74,et*.25).close()),dt}),go.Shape.defineFigureGenerator("EmptyDrink",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(nt*.15,et*0,!1);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.85,et*0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.7,et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.3,et*1).close()),dt}),go.Shape.defineFigureGenerator("Drink",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(nt*.15,et*0,!1);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.85,et*0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.7,et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.3,et*1).close());var gt=new go.PathFigure(nt*.235,et*.28,!0);return dt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.765,et*.28)),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.655,et*.97)),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.345,et*.97).close()),dt}),go.Shape.defineFigureGenerator("4Arrows",function(Nt,nt,et){var dt=new go.Geometry,lt=new go.PathFigure(nt*.5,et*0,!0);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.65,et*.25)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.55,et*.25)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.55,et*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.75,et*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.75,et*.35)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*.5)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.75,et*.65)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.75,et*.55)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.55,et*.55)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.55,et*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.65,et*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.5,et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.35,et*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.45,et*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.45,et*.55)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.25,et*.55)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.25,et*.65)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*0,et*.5)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.25,et*.35)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.25,et*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.45,et*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.45,et*.25)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.35,et*.25).close()),dt}),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")},84072:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var Jn={},pi="5.0",Dt={},yt=null,te=!1,re=!1,Fe=null,be=!1,jt=null,ge=null,Ze=0;Ze<arguments.length;Ze++){var Ce=arguments[Ze];if(Ce!==null)switch(typeof Ce){case"number":pi=Ce.toFixed(1);break;case"string":Ce.match(new RegExp("^[0-9]\\.[0-9]+$"))?pi=Ce:Fe=Ce;break;case"object":typeof Ce.is3D!="undefined"?yt=Ce:Dt=Ce;break;case"boolean":te=Ce,re=!0;break}}yt===null&&(yt={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},Dt.material_id!==void 0&&!re&&(te=!0)),Fe!==null&&Dt.id===void 0&&(Dt.id=Fe);var Mt="",Re="",Yt=!1,We=null,Nt=null,nt=null,et=!1,dt=null,lt=null,gt=null,mt=null,St=null;Dt.height!==void 0&&(Dt.height=Math.round(Dt.height)),Dt.width!==void 0&&(Dt.width=Math.round(Dt.width));var bt=function(ln){return parseFloat(ln)>4?parseFloat(ln):5};Jn.setHTML5Codebase=function(ln,qn){ge=ln,mn(ln,qn)},Jn.setJavaCodebase=Jn.setJavaCodebaseVersion=Jn.isCompiledInstalled=Jn.setPreCompiledScriptPath=Jn.setPreCompiledResourcePath=function(){},Jn.setHTML5CodebaseVersion=function(ln,qn){var Dn=parseFloat(ln);if(Dn!==NaN&&Dn<5){console.log("The GeoGebra HTML5 codebase version "+Dn+" is deprecated. Using version latest instead.");return}jt=ln,Qt(ln,qn)},Jn.getHTML5CodebaseVersion=function(){return Nt},Jn.getParameters=function(){return Dt},Jn.setFontsCSSURL=function(ln){mt=ln},Jn.setGiacJSURL=function(ln){},Jn.setJNLPFile=function(ln){Mt=ln},Jn.setJNLPBaseDir=function(ln){},Jn.inject=function(){function ln(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var qn="auto",Dn=Dt.id,fi,Ve=!1,On=0;On<arguments.length;On++){var Pe=arguments[On];typeof Pe=="string"?(Pe=Pe.toLowerCase(),Pe.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?qn=Pe:Dn=arguments[On]):typeof Pe=="boolean"?Ve=Pe:Pe instanceof HTMLElement&&(fi=Pe)}Ai();function Ai(){if(!be){setTimeout(Ai,200);return}qn=an(qn);var Xn=fi||document.getElementById(Dn);if(!Xn){console.log("possibly bug on ajax loading? ");return}if(Jn.removeExistingApplet(Xn,!1),Dt.width===void 0&&Xn.clientWidth&&(Dt.width=Xn.clientWidth),Dt.height===void 0&&Xn.clientHeight&&(Dt.height=Xn.clientHeight),!(Dt.width&&Dt.height)&&qn==="html5"&&(delete Dt.width,delete Dt.height),We=qn,qn==="screenshot")Le(Xn,Dt);else{var Rt=!1;Dt.hasOwnProperty("playButton")&&Dt.playButton||Dt.hasOwnProperty("clickToLoad")&&Dt.clickToLoad?Rt=!0:Dt.hasOwnProperty("playButtonAutoDecide")&&Dt.playButtonAutoDecide&&(Rt=(!It()||ln())&&Ht()),Rt?(We="screenshot",Fn(Xn,Dt,Ve,qn)):De(Xn,Dt,Ve)}}};function It(){try{return window.self!==window.top}catch(ln){return!0}}function Ht(){return Dt.hasOwnProperty("screenshotGenerator")&&Dt.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Jn.getViews=function(){return yt},Jn.isJavaInstalled=function(){return!1};var se=function(ln){var qn=function(On){var Pe=JSON.parse(On),Ai=function(At){return At.type=="G"||At.type=="E"},Xn=Pe.elements?Pe.elements.filter(Ai)[0]:Pe;if(!Xn||!Xn.url){Dn();return}Dt.fileName=Xn.url,Vt(Xn.settings||{}),yt.is3D=!0;var Rt="https://www.geogebra.org/images/";Jn.setPreviewImage(dt||Xn.previewUrl,Rt+"GeoGebra_loading.png",Rt+"applet_play.png"),ln()},Dn=function(){Dt.onError&&Dt.onError(),ii("Error: Fetching material (id "+Dt.material_id+") failed.",Dt)},fi=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Ve="/materials/"+Dt.material_id+"?scope=basic";Jt("https://"+fi+"/api/proxy.php?path="+encodeURIComponent(Ve),qn,Dn)};function Vt(ln){var qn=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Dn){ln[Dn]=!!ln[Dn]}),qn.forEach(function(Dn){Dt[Dn]===void 0&&ln[Dn]!==void 0&&(Dt[Dn]=ln[Dn])}),Dt.showToolBarHelp===void 0&&(Dt.showToolBarHelp=Dt.showToolBar)}function Jt(ln,qn,Dn){var fi=new XMLHttpRequest;fi.open("GET",ln),fi.onload=function(){qn(fi.responseText)},fi.onerror=Dn,fi.send()}Jn.isHTML5Installed=function(){return!0},Jn.getLoadedAppletType=function(){return We},Jn.setPreviewImage=function(ln,qn,Dn){dt=ln,lt=qn,gt=Dn},Jn.removeExistingApplet=function(ln,qn){var Dn;typeof ln=="string"&&(ln=document.getElementById(ln)),We=null;var fi=null;for(Dn=0;Dn<ln.childNodes.length;Dn++){var Ve=ln.childNodes[Dn],On=Ve.className;On==="applet_screenshot"?qn?(Ve.style.display="block",We="screenshot"):Ve.style.display="none":On!=="applet_scaler prerender"&&(ln.removeChild(Ve),fi=On&&On.indexOf("appletParameters")!=-1?Ve.id:null,Dn--)}var Pe=Dt.id!==void 0?Dt.id:fi,Ai=window[Pe];Ai&&typeof Ai.getBase64=="function"&&(Ai.remove(),window[Pe]=null)},Jn.refreshHitPoints=function(){if(bt(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var ln=Jn.getAppletObject();return ln&&typeof ln.recalculateEnvironments=="function"?(ln.recalculateEnvironments(),!0):!1},Jn.startAnimation=function(){var ln=Jn.getAppletObject();return ln&&typeof ln.startAnimation=="function"?(ln.startAnimation(),!0):!1},Jn.stopAnimation=function(){var ln=Jn.getAppletObject();return ln&&typeof ln.stopAnimation=="function"?(ln.stopAnimation(),!0):!1},Jn.getAppletObject=function(){var ln=Dt.id!==void 0?Dt.id:"ggbApplet";return window[ln]},Jn.resize=function(){};var Ee=function(ln,qn,Dn){var fi=document.createElement("param");fi.setAttribute("name",qn),fi.setAttribute("value",Dn),ln.appendChild(fi)},we=function(ln){return ln&&ln!=="false"},De=function(ln,qn,Dn){bt(Nt)<=4.2&&(Dn=!0);var fi=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Nt||ggbHTML5LoadedCodebaseIsWebSimple&&!et)&&(fi=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Ve=document.createElement("div");Ve.classList.add("appletParameters","notranslate");var On=qn.width,Pe=qn.height;if(qn.disableAutoScale=qn.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():qn.disableAutoScale,qn.width!==void 0)if(bt(Nt)<=4.4)we(qn.showToolBar)&&(qn.height-=7),we(qn.showAlgebraInput)&&(qn.height-=37),qn.width<605&&we(qn.showToolBar)&&(qn.width=605,On=605);else{var Ai=100;(we(qn.showToolBar)||we(qn.showMenuBar))&&(qn.hasOwnProperty("customToolBar")&&(qn.customToolbar=qn.customToolBar),Ai=we(qn.showMenuBar)?245:155),On<Ai&&(qn.width=Ai,On=Ai)}Ve.style.border="none",Ve.style.display="inline-block";for(var Xn in qn)qn.hasOwnProperty(Xn)&&Xn!=="appletOnLoad"&&Ve.setAttribute("data-param-"+Xn,qn[Xn]);mt&&Ve.setAttribute("data-param-fontscssurl",mt),Jn.resize=function(){GGBAppletUtils.responsiveResize(ln,qn)},window.addEventListener("resize",function(Ne){Jn.resize()});var Rt=typeof qn.appletOnLoad=="function"?qn.appletOnLoad:function(){};if(!Dn&&qn.width!==void 0){qn.hasOwnProperty("showSplash")||Ve.setAttribute("data-param-showSplash","false");var At=ln.querySelector(".applet_scaler.prerender"),wt=At!==null;if(wt)var Tt=At.querySelector(".ggb_preview");else{var Tt=Ge(On,Pe,qn.borderColor,!1);At=document.createElement("div"),At.className="applet_scaler",At.style.position="relative",At.style.display="block",At.style.width=On+"px",At.style.height=Pe+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(At,"66%"),bt(Nt)>=5?(qn.appletOnLoad=function(Ne){var Xe=ln.querySelector(".ggb_preview");Xe&&Xe.parentNode.removeChild(Xe),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(At),window.GGBT_wsf_view&&$(window).trigger("resize"),Rt(Ne)},wt||At.appendChild(Tt)):Ve.appendChild(Tt),At.appendChild(Ve),wt||ln.appendChild(At),setTimeout(function(){Jn.resize()},1)}else{var Kt=document.createElement("div");Kt.className="applet_scaler",Kt.style.position="relative",Kt.style.display="block",Kt.appendChild(Ve),ln.appendChild(Kt),qn.appletOnLoad=function(Ne){Jn.resize(),Rt(Ne)}}function kt(Ne,Xe){Xe&&typeof Xe.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Ne,Xe.appletOnLoad):renderGGBElement(Ne),ii("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Xe)}function $t(Ne,Xe){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Ne,params:Xe}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(En){kt(En.article,En.params)}),html5AppletsToProcess=null)},bt(Nt)<5&&(Ne.className+=" geogebraweb")):kt(Ne,Xe)}if(fi){scriptLoadStarted=!0;for(var un=0;un<Ve.childNodes.length;un++){var Ie=Ve.childNodes[un].tagName;Ie==="TABLE"&&(Ve.removeChild(Ve.childNodes[un]),un--)}if(ggbHTML5LoadedScript!==null){var Ue=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Ue!=null&&Ue.parentNode.removeChild(Ue)}var ne=document.createElement("script"),Oe=function(){$t(Ve,qn)};ne.src=Re+nt,ggbHTML5LoadedCodebaseIsWebSimple=et,ggbHTML5LoadedCodebaseVersion=Nt,ggbHTML5LoadedScript=ne.src,ii("GeoGebra HTML5 codebase loaded: '"+Re+"'.",qn),!ge&&(!jt||jt=="5.0")?(et?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Oe()):Re.requirejs?__webpack_require__.e(822).then(function(){var Ne=[__webpack_require__(20822)];Oe.apply(null,Ne)}.bind(this)).catch(__webpack_require__.oe):(ne.onload=Oe,ln.appendChild(ne))}else $t(Ve,qn);qn.height=Pe,qn.width=On},Le=function(ln,qn,Dn){var fi=Ge(qn.width,qn.height,qn.borderColor,Dn),Ve=document.createElement("div");Ve.style.position="relative",Ve.style.display="block",Ve.style.width=qn.width+"px",Ve.style.height=qn.height+"px",Ve.className="applet_screenshot applet_scaler"+(Dn?" applet_screenshot_play":""),Ve.appendChild(fi);var On=GGBAppletUtils.getScale(qn,ln,Dn);Dn?(ln.appendChild(fn()),window.GGBT_wsf_view||(ln.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Ve,"66%"),ln.appendChild(Ve),On!==1&&!isNaN(On)&&(GGBAppletUtils.scaleElement(Ve,On),Ve.style.width=qn.width+"px",Ve.style.height=qn.height+"px",Ve.parentNode.style.width=qn.width*On+"px",Ve.parentNode.style.height=qn.height*On+"px"),Jn.resize=function(){sn(ln,fi,Ve,Dn)},window.addEventListener("resize",function(Pe){Jn.resize()}),Jn.resize()};function sn(ln,qn,Dn,fi){if(ln.contains(qn)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ln.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(ln)}var Ve=GGBAppletUtils.getScale(Dt,ln,fi);Dn.parentNode!==null&&(!isNaN(Ve)&&Ve!==1?(GGBAppletUtils.scaleElement(Dn,Ve),Dn.parentNode.style.width=Dt.width*Ve+"px",Dn.parentNode.style.height=Dt.height*Ve+"px"):(GGBAppletUtils.scaleElement(Dn,1),Dn.parentNode.style.width=Dt.width+"px",Dn.parentNode.style.height=Dt.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(ln),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Jn.onExitFullscreen=function(ln,qn){qn.appendChild(ln)};var Fn=function(ln,qn,Dn,fi){Le(ln,qn,!0);for(var Ve=function(){var Ai=[];for(Pe=0;Pe<ln.childNodes.length;Pe++)Ai.push(ln.childNodes[Pe]);if(window.GGBT_wsf_view){var Xn=window.GGBT_wsf_view.renderFullScreen(ln,qn.id),Rt=document.getElementById("fullscreencontainer"),At=jQuery(ln).find(".fullscreencontent");At.length>0?(Xn.remove(),At.attr("id","fullscreencontent").show(),jQuery(Rt).append(At),window.dispatchEvent(new Event("resize"))):De(Xn,qn,!1),window.GGBT_wsf_view.launchFullScreen(Rt)}else We=fi,De(ln,qn,!1);if(!window.GGBT_wsf_view)for(Pe=0;Pe<Ai.length;Pe++)ln.removeChild(Ai[Pe])},On=ln.getElementsByClassName("ggb_preview_play"),Pe=0;Pe<On.length;Pe++)On[Pe].addEventListener("click",Ve,!1),On[Pe].addEventListener("ontouchstart",Ve,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(ln),Ht()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},fn=function(){var ln=document.createElement("div");if(ln.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var qn='.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");}',Dn=document.createElement("style");Dn.styleSheet?Dn.styleSheet.cssText=qn:Dn.appendChild(document.createTextNode(qn)),document.getElementsByTagName("head")[0].appendChild(Dn)}return ln},Ge=function(ln,qn,Dn,fi){var Ve=document.createElement("div");Ve.className="ggb_preview",Ve.style.position="absolute",Ve.style.zIndex="90",Ve.style.width=ln-2+"px",Ve.style.height=qn-2+"px",Ve.style.top="0px",Ve.style.left="0px",Ve.style.overflow="hidden",Ve.style.backgroundColor="white";var On="lightgrey";Dn!==void 0&&(Dn==="none"?On="transparent":On=Dn),Ve.style.border="1px solid "+On;var Pe=document.createElement("img");if(Pe.style.position="relative",Pe.style.zIndex="1000",Pe.style.top="-1px",Pe.style.left="-1px",dt!==null&&Pe.setAttribute("src",dt),Pe.style.opacity=.7,lt!==null){var Ai,Xn,Rt;if(!fi){Ai=document.createElement("img"),Ai.style.position="absolute",Ai.style.zIndex="1001",Ai.style.opacity=1,Pe.style.opacity=.3,Xn=360,Xn>ln/4*3&&(Xn=ln/4*3),Rt=Xn/5.8,Ai.setAttribute("src",lt),Ai.setAttribute("width",Xn),Ai.setAttribute("height",Rt);var At=(ln-Xn)/2,wt=(qn-Rt)/2;Ai.style.left=At+"px",Ai.style.top=wt+"px",Ve.appendChild(Ai)}}return Ve.appendChild(Pe),Ve},an=function(ln){return ln=ln.toLowerCase(),ln==="html5"||ln==="screenshot"?ln:"html5"},Se=["web","webSimple","web3d","tablet","tablet3d","phone"],Qt=function(ln,qn){if(Nt=ln,qn){mn(Nt,!0);return}var Dn=!te;if(Dn){var fi=bt(Nt);!isNaN(fi)&&fi<4.4&&(Dn=!1)}var Ve,On;window.location.protocol.substr(0,4)==="http"?Ve=window.location.protocol:Ve="http:";var Pe=Nt.indexOf("//");Pe>0?On=Nt:Pe===0?On=Ve+Nt:On="https://www.geogebra.org/apps/5.2.814.0/";for(var Ai in Se)if(Nt.slice(Se[Ai].length*-1)===Se[Ai]||Nt.slice((Se[Ai].length+1)*-1)===Se[Ai]+"/"){mn(On,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Dn&&!yt.is3D&&!yt.AV&&!yt.SV&&!yt.CV&&!yt.EV2&&!yt.CP&&!yt.PC&&!yt.DA&&!yt.FI&&!yt.PV&&!we(Dt.showToolBar)&&!we(Dt.showMenuBar)&&!we(Dt.showAlgebraInput)&&!we(Dt.enableRightClick)&&(!Dt.appName||Dt.appName=="classic")?On+="webSimple/":On+="web3d/",mn(On,!1)},mn=function(ln,qn){if(ln.requirejs){Re=ln;return}ln.slice(-1)!=="/"&&(ln+="/"),Re=ln,qn===null&&(qn=ln.indexOf("http")===-1),Yt=qn,nt="web.nocache.js",et=!1;var Dn=Re.split("/");Dn.length>1&&(!qn&&Dn[Dn.length-2]==="webSimple"?(nt="webSimple.nocache.js",et=!0):Se.indexOf(Dn[Dn.length-2])>=0&&(nt=Dn[Dn.length-2]+".nocache.js")),Dn=ln.split("/"),Nt=Dn[Dn.length-3],Nt.substr(0,4)==="test"?Nt=Nt.substr(4,1)+"."+Nt.substr(5,1):(Nt.substr(0,3)==="war"||Nt.substr(0,4)==="beta")&&(Nt="5.0");var fi=parseFloat(Nt);fi!==NaN&&fi<5&&ln.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+fi+" is deprecated. Using version latest instead."),Qt("5.0",qn))},ii=function(ln,qn){window.console&&window.console.log&&(!qn||typeof qn.showLogging=="undefined"||qn.showLogging&&qn.showLogging!=="false")&&console.log(ln)};Dt.material_id!==void 0?se(jn):jn();function jn(){var ln=pi;jt!==null?ln=jt:parseFloat(ln)<5&&(ln="5.0"),Qt(ln,!1),ge!==null&&mn(ge,Yt),be=!0}return Jn},GGBAppletUtils=function(){"use strict";function Jn(){return window.GGBT_wsf_edit!==void 0}function pi(be,jt){jt!=1?(be.style.transformOrigin="0% 0% 0px",be.style.webkitTransformOrigin="0% 0% 0px",be.style.transform="scale("+jt+","+jt+")",be.style.webkitTransform="scale("+jt+","+jt+")",be.style.maxWidth="initial",be.querySelector(".ggb_preview")!==null&&(be.querySelector(".ggb_preview").style.maxWidth="initial"),be.querySelectorAll(".ggb_preview img")[0]!==void 0&&(be.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),be.querySelectorAll(".ggb_preview img")[1]!==void 0&&(be.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(be.style.transform="none",be.style.webkitTransform="none")}function Dt(be,jt,ge,Ze,Ce,Mt){var Re=null;if(Mt!=null&&Mt!="")for(var Yt=be.parentNode;Yt!=null;)if((" "+Yt.className+" ").indexOf(" "+Mt+" ")>-1){Re=Yt;break}else Yt=Yt.parentNode;var We=0,Nt=0,nt=0,et=0,dt=0,lt=0,gt=0;if(Re)We=Re.offsetWidth,Nt=Math.max(Ze?Re.offsetWidth:0,Re.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(We=Math.min(window.innerWidth,document.documentElement.clientWidth),Nt=Math.min(window.innerHeight,document.documentElement.clientHeight),nt=We):(We=window.innerWidth,Nt=window.innerHeight,nt=window.innerWidth),be){var mt=be.getBoundingClientRect();mt.left>0&&mt.left<=We&&(Ce===void 0||!Ce)&&(document.dir==="rtl"?(dt=We-mt.width-mt.left,lt=nt<=480?10:30):(lt=mt.left,dt=nt<=480?10:30),et=lt+dt)}if(be&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var St=be.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(et=40,gt=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(et=0,gt=40)}}return be&&((ge===void 0||!ge)&&jt>0&&jt+et<We?We=jt:We-=et,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ge===void 0||!ge)&&(Nt-=gt)),{width:We,height:Nt}}function yt(be,jt,ge,Ze,Ce){if(be.isScreenshoGenerator)return 1;var Mt=Ze!==void 0&&Ze,Re=be.noScaleMargin!=null&&be.noScaleMargin,Yt=function(St){return St&&St!=="false"},We=Yt(be.autoHeight),Nt=Dt(jt,be.width,ge,We,Mt&&window.GGBT_wsf_view||Re,Ce),nt=parseInt(Nt.width),et=be.width,dt=be.height;if(et===void 0){var lt=jt.querySelector(".appletParameters");lt&&(et=lt.offsetWidth,dt=lt.offsetHeight)}var gt=nt/et,mt=Mt?1:Nt.height/dt;return ge!==void 0&&!ge&&(gt=Math.min(1,gt),mt=Math.min(1,mt)),Math.min(gt,mt)}function te(be,jt,ge){var Ze=1,Ce,Mt=!1;if(be.hasOwnProperty("allowUpscale")&&(Mt=be.allowUpscale),be.hasOwnProperty("scale")&&(Ze=parseFloat(be.scale),(isNaN(Ze)||Ze===null||Ze===0)&&(Ze=1),Ze>1&&(Mt=!0)),jt&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Mt=!0),!(be.hasOwnProperty("disableAutoScale")&&be.disableAutoScale))Ce=yt(be,jt,Mt,ge,be.scaleContainerClass);else return Ze;return Mt&&(!be.hasOwnProperty("scale")||Ze===1)?Ce:Math.min(Ze,Ce)}function re(be){var jt=Math.min(window.innerWidth,document.documentElement.clientWidth),ge=Math.min(window.innerHeight,document.documentElement.clientHeight),Ze=be.getBoundingClientRect(),Ce=(jt-Ze.width)/2,Mt=(ge-Ze.height)/2;Mt<0&&(Mt=0),be.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ce<40?be.style.left="40px":be.style.left=Ce+"px",be.style.top=Mt+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Mt<40?be.style.top="40px":be.style.top=Mt+"px",be.style.left=Ce+"px")}function Fe(be,jt){var ge=be.querySelector(".appletParameters");if(ge){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(jt.id!==ge.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(be)}if(ge.parentElement&&/fullscreen/.test(ge.parentElement.className))return;var Ze=te(jt,be);Jn()&&ge.setAttribute("data-param-scale",Ze);for(var Ce=null,Mt=0;Mt<be.childNodes.length;Mt++)if(be.childNodes[Mt].className!==void 0&&be.childNodes[Mt].className.match(/^applet_scaler/)){Ce=be.childNodes[Mt];break}if(Ce!==null&&Ce.querySelector(".noscale")!==null)return;var Re=jt.id!==void 0?jt.id:"ggbApplet",Yt=window[Re];(Yt==null||!Yt.recalculateEnvironments)&&Ce!==null&&!Ce.className.match(/fullscreen/)&&(Ce.parentNode.style.transform="",!isNaN(Ze)&&Ze!==1?(Ce.parentNode.style.width=jt.width*Ze+"px",Ce.parentNode.style.height=jt.height*Ze+"px",pi(Ce,Ze)):(pi(Ce,1),Ce.parentNode.style.width=jt.width+"px",Ce.parentNode.style.height=jt.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&re(be),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(ge).parents(".content-added-content"))}}return{responsiveResize:Fe,isFlexibleWorksheetEditor:Jn,positionCenter:re,getScale:te,scaleElement:pi}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(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 Jn=n.location.search;return Jn.indexOf(J)!=-1||Jn.indexOf(K)!=-1}function q(Jn,pi){}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||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(Jn){var pi=s[L].bindings;s[L].bindings=function(){for(var Dt=pi?pi():{},yt=Jn[webModule.__softPermutationId],te=O;te<yt.length;te++){var re=yt[te];Dt[re[O]]=re[P]}return Dt}};var t;function u(){return v(),t}function v(){if(!t){var Jn=o.createElement(Q);if(Jn.id=L,Jn.style.cssText=R+S,Jn.tabIndex=-1,o.body.appendChild(Jn),t=Jn.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var pi=document.compatMode==U?V:W;t.write(pi+X),t.close()}}}function w(Jn){function pi(yt){function te(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var re=te();if(re){yt();return}function Fe(){if(!re){if(!te())return;re=!0,yt(),o.removeEventListener&&o.removeEventListener(Z,Fe,!1),be&&clearInterval(be)}}o.addEventListener&&o.addEventListener(Z,Fe,!1);var be=setInterval(function(){Fe()},$)}function Dt(yt){var te=u(),re=te.body,Fe=te.createElement(_);Fe.language=ab,Fe.crossOrigin=W,Fe.src=yt,webModule.__errFn&&(Fe.onerror=function(){webModule.__errFn(L,new Error(bb+yt))}),re.appendChild(Fe)}pi(function(){Dt(Jn)})}webModule.__startLoadingFragment=function(Jn){return C(Jn)},webModule.__installRunAsyncCode=function(Jn){var pi=u(),Dt=pi.body,yt=pi.createElement(_);yt.language=ab,yt.text=Jn,Dt.appendChild(yt),Dt.removeChild(yt)};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(Jn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Jn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Jn){var pi=c[Jn];return pi==null?null:pi},r=d,webModule.__errFn=e}function B(){function Jn(be){var jt=be.lastIndexOf(rb);jt==-1&&(jt=be.length);var ge=be.indexOf(sb);ge==-1&&(ge=be.length);var Ze=be.lastIndexOf(tb,Math.min(ge,jt));return Ze>=O?be.substring(O,Ze+P):W}function pi(be){if(!be.match(/^\w+:\/\//)){var jt=o.createElement(ub);jt.src=be+vb,be=Jn(jt.src)}return be}function Dt(){var be=__gwt_getMetaProperty(wb);return be!=null?be:W}function yt(){for(var be=o.getElementsByTagName(_),jt=O;jt<be.length;++jt)if(be[jt].src.indexOf(xb)!=-1)return Jn(be[jt].src);return W}function te(){var be=o.getElementsByTagName(yb);return be.length>O?be[be.length-P].href:W}function re(){var be=o.location;return be.href==be.protocol+zb+be.host+be.pathname+be.search+be.hash}var Fe=Dt();return Fe==W&&(Fe=yt()),Fe==W&&(Fe=te()),Fe==W&&re()&&(Fe=Jn(o.location.href)),Fe=pi(Fe),Fe}function C(Jn){return Jn.match(/^\//)||Jn.match(/^[a-zA-Z]+:\/\//)?Jn:webModule.__moduleBase+Jn}function D(){var Jn=[],pi=O,Dt=[],yt=[];function te(be){var jt=yt[be](),ge=Dt[be];if(jt in ge)return jt;var Ze=[];for(var Ce in ge)Ze[ge[Ce]]=Ce;throw r&&r(be,Ze,jt),null}if(__gwt_isKnownPropertyValue=function(be,jt){return jt in Dt[be]},webModule.__getPropMap=function(){var be={};for(var jt in Dt)Dt.hasOwnProperty(jt)&&(be[jt]=te(jt));return be},webModule.__computePropValue=te,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var re;try{re=Cb;var Fe=re.indexOf(Db);Fe!=-1&&(pi=parseInt(re.substring(Fe+P),$),re=re.substring(O,Fe))}catch(be){}return webModule.__softPermutationId=pi,C(re+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},77665:function(Jn,pi,Dt){"use strict";Dt.d(pi,{Ax:function(){return Fe},Ds:function(){return be},KI:function(){return ge},SI:function(){return re},f1:function(){return te}});var yt=Dt(13952);function te(Ze){let Ce=!0;if(Ze.length>0){for(let Mt=0;Mt<Ze.length;Mt++)if(Ze[Mt].compile_success==0||!Ze[Mt].compile_success){Ce=!1;break}}else Ce=!1;return Ce}function re(Ze,Ce=""){let Mt=[];for(let Re=0;Re<Ze.length;Re++){let Yt=Ze[Re],We=Ce?`${Ce}/${Yt.name}`:`${Yt.name}`;Mt.push({title:Yt.name,type:Yt.type,isLeaf:Yt.type!=="tree",key:We})}return Mt}function Fe(Ze,Ce,Mt){for(let Re=0;Re<Ze.length;Re++){let Yt=Ze[Re];if(Yt.key===Ce){Yt.children=Mt;break}Yt.children&&Fe(Yt.children,Ce,Mt)}return Ze}function be(Ze,Ce,Mt){let Re;return function(){let Yt=this,We=arguments,Nt=function(){Re=null,Mt||Ze.apply(Yt,We)},nt=Mt&&!Re;clearTimeout(Re),Re=setTimeout(Nt,Ce),nt&&Ze.apply(Yt,We)}}const jt=!0,ge=yt.Z.API_SERVER},89837:function(Jn,pi,Dt){"use strict";Dt.d(pi,{Z:function(){return Re}});var yt=Dt(59301),te={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},re=Dt(92310),Fe=Dt.n(re),be=Dt(29787),jt=Dt(2859),ge=Dt(52430),Ze=Dt(89299),Ce=(Yt,We,Nt)=>new Promise((nt,et)=>{var dt=mt=>{try{gt(Nt.next(mt))}catch(St){et(St)}},lt=mt=>{try{gt(Nt.throw(mt))}catch(St){et(St)}},gt=mt=>mt.done?nt(mt.value):Promise.resolve(mt.value).then(dt,lt);gt((Nt=Nt.apply(Yt,We)).next())}),Re=({data:Yt,className:We,fullWidth:Nt,style:nt={},onClose:et,onOk:dt,showFullTools:lt,noAssociationId:gt})=>{const mt=(0,yt.useRef)(null),St=(0,yt.useRef)(null),bt=(0,yt.useRef)(null),It=(0,yt.useRef)(null),[Ht,se]=(0,yt.useState)(!1),[Vt,Jt]=(0,yt.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,yt.useEffect)(()=>(bt.current||(bt.current=document.createElement("style"),document.head.appendChild(bt.current)),Yt!=null&&Yt.visible?(document.body.setAttribute("data-custom","y-hidden"),bt.current.innerHTML=" html { overflow-y: hidden; }",Yt!=null&&Yt.src&&Ee()):(document.body.removeAttribute("data-custom"),bt.current&&(document.head.removeChild(bt.current),bt.current=null)),()=>{document.body.removeAttribute("data-custom"),bt.current&&(document.head.removeChild(bt.current),bt.current=null)}),[Yt==null?void 0:Yt.visible]);const Ee=()=>Ce(void 0,null,function*(){se(!0),Jt("\u6B63\u5728\u52A0\u8F7D\u4E2D");const sn=yield(0,Ze.ZJ)(Yt==null?void 0:Yt.src);mt.current.src="",mt.current.src=sn,mt.current.onload=function(){Le()},se(!1),Jt("")}),we=sn=>Ce(void 0,null,function*(){se(!0),Jt("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Fn=yield(0,ge.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Yt.title,file:sn.dataUrl}});Fn!=null&&Fn.id&&!gt?(yield(0,ge.ZP)(`/api/attachments/${Yt.id}/add_subitem.json`,{method:"post",body:{subitem_id:Fn==null?void 0:Fn.id,settings:JSON.stringify(sn.state)}})).status===0&&dt():Fn!=null&&Fn.id&&dt(Fn),se(!1),Jt("")}),De=()=>{const sn=document.querySelector('a[href="https://markerjs.com/"]');sn&&sn.parentNode&&(sn.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(fn=>{const Ge=document.querySelector(fn.name);Ge&&Ge.setAttribute("title",fn.title)})},Le=()=>{St.current=new jt.hP(mt.current),St.current.targetRoot=It.current,St.current.addEventListener("render",we),St.current.addEventListener("beforeclose",et),lt&&(St.current.availableMarkerTypes=St.current.ALL_MARKER_TYPES,St.current.uiStyleSettings.redoButtonVisible=!0,St.current.uiStyleSettings.notesButtonVisible=!0,St.current.uiStyleSettings.zoomButtonVisible=!0,St.current.uiStyleSettings.zoomOutButtonVisible=!0,St.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=St.current.uiStyleSettings,St.current.show(),Yt!=null&&Yt.snapshotData&&St.current.restoreState(Yt.snapshotData),setTimeout(()=>{window.scrollTo(0,0),De()},300)};return yt.createElement(yt.Fragment,null,(Yt==null?void 0:Yt.visible)&&yt.createElement(be.Z,{spinning:Ht,tip:Vt,style:{position:"absolute",width:"100vw"}},yt.createElement("div",{ref:It,className:Fe()(te.imageDimensions,We,Nt?te.fullWidth:""),style:nt},yt.createElement("img",{className:te.img,ref:mt}))))}},53267:function(Jn,pi,Dt){"use strict";var yt=Dt(59301),te=Dt(77019),re=Dt(5269),Fe=Dt(20554),be=Dt(99571),jt=Dt(98573),ge=Dt(25346),Ze=Dt(48136),Ce=Dt(59301);const Mt=(0,yt.forwardRef)(({callback:Re,showSaveButton:Yt,value:We=""},Nt)=>{const nt=(0,yt.useRef)(),et=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],dt=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
x=a + r\\text{cos}\\theta \\ \r
y=b + r\\text{sin}\\theta \r
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\left\\{\\begin{matrix} \r
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
\\end{matrix}\\right. \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
a \\perp \\alpha \\ \r
b \\perp \\alpha \r
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
a \\parallel \\partial ,b \\parallel \\partial \r
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
a \\perp m,a \\perp n \r
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
a^{2}+b^{2}=c^{2} \r
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
a,b \\in R^{+} \\ \r
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
a,b \\in R \\ \r
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
P \\left( \\emptyset \\right) =0 \\\\ \r
P \\left( S \\right) =1 \r
\\end{array}`},{value:`\\begin{array}{c} \r
\\forall A \\in S \\\\ \r
P \\left( A \\right) \\ge 0 \r
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
\\end{array}`},{value:`\\begin{array}{c} \r
P_{n}=n! \\\\ \r
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
\\end{array}`}]}]}],lt=St=>{nt.current.setValue(nt.current.getValue()+" "+St.value+" ")},gt=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Ce.createElement(te.Z,{className:ge.Z.lists,gutter:[10,10]},et.map((St,bt)=>Ce.createElement(re.Z,{flex:"110px",className:ge.Z.item},Ce.createElement("div",null,Ce.createElement(jt.Z,{value:`$$${St.value}$$`}),St.name),Ce.createElement("div",{className:ge.Z.children},St.children.map((It,Ht)=>Ce.createElement("div",{key:Ht},Ce.createElement("h1",null,It.name),Ce.createElement(te.Z,{gutter:[10,10]},It.data.map((se,Vt)=>Ce.createElement(re.Z,{key:Vt,onClick:()=>lt(se),className:ge.Z.diamond},Ce.createElement(jt.Z,{value:"`$$"+se.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Ce.createElement(te.Z,{className:ge.Z.lists,gutter:[10,10]},dt.map((St,bt)=>Ce.createElement(re.Z,{flex:"110px",className:ge.Z.item},Ce.createElement("div",null,Ce.createElement(jt.Z,{value:"`$$"+St.value+"$$`"}),St.name),Ce.createElement("div",{className:ge.Z.children},St.children.map((It,Ht)=>Ce.createElement("div",{key:Ht},It.name&&Ce.createElement("h1",null,It.name),Ce.createElement(te.Z,{gutter:[10,10]},It.data.map((se,Vt)=>Ce.createElement(re.Z,{key:Vt,onClick:()=>lt(se),className:ge.Z.diamond},Ce.createElement(jt.Z,{value:"`$$"+se.value+"$$`"}))))))))))}],mt=()=>{var St=document.createElement("div");St.innerHTML=nt.current.getValue();var bt=St.innerText;return Re&&Re(bt),bt};return(0,yt.useImperativeHandle)(Nt,()=>({getData:mt})),Ce.createElement("div",{className:ge.Z.mathWrap},Ce.createElement(Fe.default,{defaultActiveKey:"1",items:gt}),Ce.createElement("math-field",{locale:"zh_cn",className:ge.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:nt,style:{width:800,marginTop:30,fontSize:18}},We||""),Yt&&Ce.createElement("div",{className:ge.Z.button},Ce.createElement(be.ZP,{size:"large",onClick:mt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});pi.Z=Mt},63604:function(Jn,pi,Dt){"use strict";var yt=Dt(59301),te=Dt(93314),re=Dt(99571),Fe=Object.defineProperty,be=Object.defineProperties,jt=Object.getOwnPropertyDescriptors,ge=Object.getOwnPropertySymbols,Ze=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,Mt=(Nt,nt,et)=>nt in Nt?Fe(Nt,nt,{enumerable:!0,configurable:!0,writable:!0,value:et}):Nt[nt]=et,Re=(Nt,nt)=>{for(var et in nt||(nt={}))Ze.call(nt,et)&&Mt(Nt,et,nt[et]);if(ge)for(var et of ge(nt))Ce.call(nt,et)&&Mt(Nt,et,nt[et]);return Nt},Yt=(Nt,nt)=>be(Nt,jt(nt));const We=({img:Nt,buttonProps:nt={},styles:et={},customText:dt,ButtonText:lt,ButtonClick:gt,Buttonclass:mt,ButtonTwo:St,imgStyles:bt,loading:It=!1,className:Ht=""})=>yt.createElement("section",{className:`tc animated fadeIn ${Ht}`,style:Re({color:"#999",margin:"100px auto",visibility:It?"hidden":"visible"},et)},yt.createElement("img",{src:Nt||te,style:Yt(Re({},bt),{pointerEvents:"none",userSelect:"none"})}),yt.createElement("p",{className:"mt20 font14"},dt||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),lt&&yt.createElement(re.ZP,Re({className:mt,onClick:gt},nt),lt),St&&St);pi.Z=We},69098:function(Jn,pi,Dt){"use strict";Dt.d(pi,{Q:function(){return jt}});var yt=Dt(59301),te=Dt(82326),re=Dt(47889),Fe=Dt(71051),be=Dt(59301),jt=(Ze=>(Ze[Ze.Number=1]="Number",Ze[Ze.Percent=2]="Percent",Ze))(jt||{});const ge=({value:Ze,onChange:Ce,disabled:Mt,hidePercentOption:Re=!1,percentType:Yt="select"})=>{const We=(0,yt.useMemo)(()=>Re?1:2,[Re]),[Nt,nt]=(0,yt.useState)(We);console.log(Nt);const et=lt=>Ze.type===1?`${lt}\u5206`:`${lt}%`,dt=(0,yt.useCallback)(lt=>{if(Nt===1){const gt=lt.replace("\u5206","");return isNaN(parseInt(gt,10))?0:gt}else return lt.replace("%","")},[Nt]);return(0,yt.useEffect)(()=>{nt(Ze.type)},[Ze]),be.createElement("div",{style:{display:"flex",alignItems:"center"}},Yt=="select"&&be.createElement(te.default,{size:"large",onChange:lt=>{nt(lt),Ce({type:lt,inputValue:lt===1?5:20})},value:Nt||We,style:{width:100},options:Re?[{label:"\u5206\u503C",value:1}]:[{label:"\u767E\u5206\u6BD4",value:2},{label:"\u5206\u503C",value:1}],disabled:Mt}),Yt=="radio"&&be.createElement(re.ZP.Group,{size:"large",onChange:lt=>{const gt=lt.target.value;nt(gt),Ce({type:gt,inputValue:gt===1?5:20})},value:Nt||We,disabled:Mt},!Re&&be.createElement(re.ZP,{value:2,style:{marginRight:"50px"}},"\u767E\u5206\u6BD4\u6263\u5206"),be.createElement(re.ZP,{value:1},"\u56FA\u5B9A\u5206\u503C")),Yt=="radio"&&be.createElement("div",{style:{marginRight:"10px",color:"#000000"}},Ze.type==2?"\u6263\u9664\u8865\u4EA4\u9636\u6BB5\u5F97\u5206\u7684":"\u6263\u9664\u603B\u6210\u7EE9\u7684"),be.createElement(Fe.Z,{size:"large",disabled:Mt,value:Ze.inputValue,style:{width:"120px"},parser:dt,addonAfter:Ze.type===1?"\u5206":"%",max:Nt===2?100:Number.MAX_SAFE_INTEGER,min:0,precision:0,onChange:lt=>{Ce({type:Nt,inputValue:lt})}}),Yt=="radio"&&Ze.type==2&&be.createElement("div",{style:{marginLeft:"10px",color:"#000000"}},"\u5206\u6570"))};pi.Z=ge},23416:function(Jn,pi,Dt){"use strict";Dt.d(pi,{Z:function(){return mt}});var yt=Dt(59301),te={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},re=Dt(99571),Fe=Dt(70557),be=Dt(58531),jt=Dt(25399),ge=Dt(89299),Ze=Dt(68606),Ce=Dt(63604),Mt=Dt(13952),Re=Dt(59669),Yt=Dt(59301),We=Object.defineProperty,Nt=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,dt=(St,bt,It)=>bt in St?We(St,bt,{enumerable:!0,configurable:!0,writable:!0,value:It}):St[bt]=It,lt=(St,bt)=>{for(var It in bt||(bt={}))nt.call(bt,It)&&dt(St,It,bt[It]);if(Nt)for(var It of Nt(bt))et.call(bt,It)&&dt(St,It,bt[It]);return St},gt=(St,bt,It)=>new Promise((Ht,se)=>{var Vt=we=>{try{Ee(It.next(we))}catch(De){se(De)}},Jt=we=>{try{Ee(It.throw(we))}catch(De){se(De)}},Ee=we=>we.done?Ht(we.value):Promise.resolve(we.value).then(Vt,Jt);Ee((It=It.apply(St,bt)).next())}),mt=({editOffice:St="view",data:bt,theme:It,type:Ht,filename:se,monacoEditor:Vt,className:Jt,style:Ee,close:we,onClose:De,hasMask:Le,disabledDownload:sn,onImgDimensions:Fn,showNodata:fn,recordInfo:Ge})=>{const[an,Se]=(0,yt.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Qt,mn]=(0,yt.useState)(""),[ii,jn]=(0,yt.useState)(),ln=window.ENV==="build"?"/react/build":"",qn=location.host.startsWith("localhost")?Mt.Z.PROXY_SERVER:Mt.Z.API_SERVER,fi=10*(1024*1024),Ve=(0,yt.useRef)();bt!=null&&bt.startsWith("/api")&&Ht!=="txt"&&(bt=Mt.Z.API_SERVER+bt);const On=Rt=>Rt.substring(Rt.lastIndexOf("/")+1).split(".").pop();se&&Vt&&(Vt.filename=se),(0,yt.useEffect)(()=>{var Rt,At;const wt=(At=(Rt=document.cookie)==null?void 0:Rt.replace(/\s/g,""))==null?void 0:At.split(";");wt==null||wt.map(Tt=>{let Kt=Tt.split("=");Kt[0]==="_educoder_session"&&mn(Kt[1])})},[]),(0,yt.useEffect)(()=>{Ht==="office"&&(bt.indexOf("bigfilescdn.")>-1||bt.indexOf("bigfiles1")>-1?jn({url:bt,fileType:On(bt),model:bt.indexOf("model=edit")?"edit":"view"}):Pe())},[Ht,bt]);const Pe=()=>gt(void 0,null,function*(){console.log("data:",bt);let Rt=bt;bt.startsWith("http")||(Rt=location.origin+Rt);let At=new URL(Rt).pathname.split("/").pop();const wt=yield(0,Ze.gJ)({attachment_id:At});wt.url=qn+wt.url,jn(wt)}),Ai=()=>{if(bt.startsWith("http")||bt.startsWith("blob:")){Xn();return}(0,ge.Sv)(se||"educoder",bt,se)},Xn=()=>{Ge&&(0,Re.fc)({id:Ge==null?void 0:Ge.id,watch_type:1,course_id:Ge==null?void 0:Ge.course_id}),(0,ge.Nd)(se||"educoder",decodeURIComponent(bt))};return Yt.createElement("div",{style:lt({},Ee||{}),className:`${Le&&te.bgBlack} ${Ht?te.wrp:"hide"}`},we&&Yt.createElement("div",{className:te.close,ref:Ve},!!Fn&&Yt.createElement(jt.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Ve.current},Yt.createElement("span",{onClick:()=>{De(),Fn()}},Yt.createElement("i",{className:"icon-yulanpizhu"}))),!sn&&Yt.createElement(jt.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Ve.current},Yt.createElement("span",{onClick:Xn},Yt.createElement("i",{className:"icon-quxiaozhiding"}))),Yt.createElement(jt.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Ve.current},Yt.createElement("span",{className:"",onClick:De},Yt.createElement("i",{className:"icon-guanbi1"})))),Yt.createElement("div",{className:`${te[Jt]} ${Jt} ${te.monaco} ${Ht==="txt"?"show":"hide"}`},Ht==="txt"&&Yt.createElement(Yt.Fragment,null,Yt.createElement(be.ZP,lt({},Vt)))),Ht==="audio"&&Yt.createElement("audio",{src:`${(bt==null?void 0:bt.indexOf("http://"))>-1||(bt==null?void 0:bt.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${bt}`,autoPlay:!0}),Ht==="video"&&Yt.createElement(Yt.Fragment,null,(bt==null?void 0:bt.indexOf("http"))>-1?Yt.createElement("video",{controls:!0,src:`${bt}`,autoPlay:!0}):Yt.createElement("video",{controls:!0,src:`data:video/mp4;base64,${bt}`,autoPlay:!0})),Ht==="office"&&ii&&Yt.createElement("iframe",{src:`${ln}/office.html?key=${ii.key}&url=${btoa(ii.url)}&callbackUrl=${qn+(ii.callbackUrl||"")}&fileType=${ii.fileType}&title=${ii.title||""}&model=${St}&officeServer=${Mt.Z.ONLYOFFICE}&disabledDownload=${!!sn}`}),Ht==="html"&&Yt.createElement("iframe",{src:bt+"&disposition=inline"}),Ht==="pdf"&&Yt.createElement("iframe",{src:`${ln}/js/pdfview/index.html?filename=${se||"educoder.pdf"}&url=${encodeURIComponent(bt)}&disabledDownload=${!!sn}`}),Ht==="image"&&Yt.createElement("img",{src:`${(bt==null?void 0:bt.indexOf("http://"))>-1||(bt==null?void 0:bt.indexOf("https://"))>-1?"":"data:image/png;base64,"}${bt}`}),(Ht==="other"||Ht==="download")&&Yt.createElement(Yt.Fragment,null,fn?Yt.createElement(Ce.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:Yt.createElement(re.ZP,{icon:Yt.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Ai,disabled:sn},"\u4E0B\u8F7D")}):Yt.createElement(re.ZP,{type:"primary",size:"middle",onClick:Ai,disabled:sn},Yt.createElement(Fe.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},98573:function(Jn,pi,Dt){"use strict";Dt.d(pi,{z:function(){return Ht},Z:function(){return se}});var yt=Dt(59301),te=Dt(14752),re=Dt(48421),Fe=Dt(64018),be=Dt(79710),jt=Dt(13952),ge=Dt(89299),Ze=Dt(15342),Ce=Dt(1012),Mt=Dt(23416),Re=Dt(59301),We=({html:Vt})=>{const Jt=(0,yt.useRef)(null),Ee=(0,yt.useRef)(null),we=`.markdown-body p {
margin: 0 0 16px 0 !important;
line-height: 28px;
white-space: pre-wrap;
}
ol,
ul,
li {
list-style-type: none
}
ol,
ul,
dl {
margin-bottom: 0px;
}
.markdown-body {
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
color: #333;
overflow: hidden;
font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "\u534E\u6587\u7EC6\u9ED1", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "\u5B8B\u4F53", Heiti, "\u9ED1\u4F53", sans-serif;
word-break: break-word;
font-size: 16px;
line-height: 1.6;
white-space: normal;
word-wrap: break-word;
position: relative;
}
.markdown-body ul>li {
list-style-type: disc;
}
.markdown-body ol>li {
list-style-type: decimal;
}
.markdown-body a {
background: transparent;
}
.markdown-body a:active,
.markdown-body a:hover {
outline: 0;
}
.markdown-body strong {
font-weight: bold;
}
.markdown-body h1 {
font-size: 2em;
margin: 0.67em 0;
}
.markdown-body img {
border: 0;
}
.markdown-body hr {
-moz-box-sizing: content-box;
box-sizing: content-box;
height: 0;
}
.markdown-body pre {
overflow: auto;
}
.markdown-body code,
.markdown-body kbd,
.markdown-body pre {
font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace;
font-size: 1em;
}
.markdown-body input {
color: inherit;
font: inherit;
margin: 0;
}
.markdown-body html input[disabled] {
cursor: default;
}
.markdown-body input {
line-height: normal;
}
.markdown-body input[type="checkbox"] {
-moz-box-sizing: border-box;
box-sizing: border-box;
padding: 0;
}
.markdown-body table {
border-collapse: collapse;
border-spacing: 0;
}
.markdown-body td,
.markdown-body th {
padding: 0;
}
.markdown-body * {
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.markdown-body input {
font: 13px/1.4 Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
}
.markdown-body a {
color: #4183c4;
text-decoration: none;
}
.markdown-body a:hover,
.markdown-body a:active {
text-decoration: underline;
}
.markdown-body hr {
height: 0;
margin: 15px 0;
overflow: hidden;
background: transparent;
border: 0;
border-bottom: 1px solid #ddd;
}
.markdown-body hr:before {
display: table;
content: "";
}
.markdown-body hr:after {
display: table;
clear: both;
content: "";
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
margin-top: 15px;
margin-bottom: 15px;
line-height: 1.1;
}
.markdown-body h1 {
font-size: 30px;
}
.markdown-body h2 {
font-size: 21px;
}
.markdown-body h3 {
font-size: 16px;
}
.markdown-body h4 {
font-size: 14px;
}
.markdown-body h5 {
font-size: 12px;
}
.markdown-body h6 {
font-size: 11px;
}
.markdown-body blockquote {
margin: 0;
}
.markdown-body ul,
.markdown-body ol {
padding: 0;
margin-top: 0;
margin-bottom: 0;
}
ul.linenums,
ol.linenums {
padding: 16px 0 0 36px !important;
}
.markdown-body ul,
.markdown-body ol {
padding-left: 2em;
}
.markdown-body ol ol,
.markdown-body ul ol {
list-style-type: lower-roman;
}
.markdown-body ul ul ol,
.markdown-body ul ol ol,
.markdown-body ol ul ol,
.markdown-body ol ol ol {
list-style-type: lower-alpha;
}
.markdown-body dd {
margin-left: 0;
}
.markdown-body code {
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
font-size: 12px;
}
.markdown-body pre {
margin-top: 0;
margin-bottom: 0;
font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
}
.markdown-body .octicon {
font: normal normal 16px octicons-anchor;
line-height: 1;
display: inline-block;
text-decoration: none;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.markdown-body .octicon-link:before {
content: '\f05c';
}
.markdown-body>*:first-child {
margin-top: 0 !important;
}
.markdown-body>*:last-child {
margin-bottom: 0 !important;
}
.markdown-body .anchor {
position: absolute;
top: 0;
left: 0;
display: block;
padding-right: 6px;
padding-left: 30px;
margin-left: -30px;
}
.markdown-body .anchor:focus {
outline: none;
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
position: relative;
margin-top: 1em;
margin-bottom: 16px;
font-weight: bold;
line-height: 1.4;
}
.markdown-body h1 .octicon-link,
.markdown-body h2 .octicon-link,
.markdown-body h3 .octicon-link,
.markdown-body h4 .octicon-link,
.markdown-body h5 .octicon-link,
.markdown-body h6 .octicon-link {
display: none;
color: #000;
vertical-align: middle;
}
.markdown-body h1:hover .anchor,
.markdown-body h2:hover .anchor,
.markdown-body h3:hover .anchor,
.markdown-body h4:hover .anchor,
.markdown-body h5:hover .anchor,
.markdown-body h6:hover .anchor {
padding-left: 8px;
margin-left: -30px;
text-decoration: none;
}
.markdown-body h1:hover .anchor .octicon-link,
.markdown-body h2:hover .anchor .octicon-link,
.markdown-body h3:hover .anchor .octicon-link,
.markdown-body h4:hover .anchor .octicon-link,
.markdown-body h5:hover .anchor .octicon-link,
.markdown-body h6:hover .anchor .octicon-link {
display: inline-block;
}
.markdown-body h1 {
padding-bottom: 0.3em;
font-size: 2.25em;
line-height: 1.2;
border-bottom: 1px solid #eee;
}
.markdown-body h1 .anchor {
line-height: 1;
}
.markdown-body h2 {
padding-bottom: 0.3em;
font-size: 1.75em;
line-height: 1.225;
border-bottom: 1px solid #eee;
}
.markdown-body h2 .anchor {
line-height: 1;
}
.markdown-body h3 {
font-size: 1.5em;
line-height: 1.43;
}
.markdown-body h3 .anchor {
line-height: 1.2;
}
.markdown-body h4 {
font-size: 1.25em;
}
.markdown-body h4 .anchor {
line-height: 1.2;
}
.markdown-body h5 {
font-size: 1em;
}
.markdown-body h5 .anchor {
line-height: 1.1;
}
.markdown-body h6 {
font-size: 1em;
color: #777;
}
.markdown-body h6 .anchor {
line-height: 1.1;
}
.markdown-body p,
.markdown-body blockquote,
.markdown-body ul,
.markdown-body ol,
.markdown-body dl,
.markdown-body table,
.markdown-body pre {
margin-top: 0;
margin-bottom: 16px;
}
.markdown-body ul ul,
.markdown-body ul ol,
.markdown-body ol ol,
.markdown-body ol ul {
margin-top: 0;
margin-bottom: 0;
}
.markdown-body li>p {
margin-top: 16px;
}
.markdown-body dl {
padding: 0;
}
.markdown-body dl dt {
padding: 0;
margin-top: 16px;
font-size: 1em;
font-style: italic;
font-weight: bold;
}
.markdown-body dl dd {
padding: 0 16px;
margin-bottom: 16px;
}
.markdown-body blockquote {
padding: 0 15px;
color: #777;
border-left: 4px solid #ddd;
}
.markdown-body blockquote> :first-child {
margin-top: 0;
}
.markdown-body blockquote> :last-child {
margin-bottom: 0;
}
.markdown-body table {
display: block;
width: 100%;
overflow: auto;
word-break: normal;
word-break: keep-all;
}
.markdown-body table th {
font-weight: bold;
text-align: revert;
}
.markdown-body table th,
.markdown-body table td {
padding: 6px 13px;
border: 1px solid #ddd;
}
.markdown-body table tr {
background-color: #fff;
border-top: 1px solid #ccc;
}
.markdown-body table tr:nth-child(2n) {
background-color: #f8f8f8;
}
.markdown-body img {
max-width: 100%;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.markdown-body code {
padding: 0;
padding-top: 0.2em;
padding-bottom: 0.2em;
margin: 0;
font-size: 85%;
background-color: rgba(0, 0, 0, 0.04);
border-radius: 3px;
}
.markdown-body code:has(.katex) {
background-color: transparent;
}
.markdown-body code:before,
.markdown-body code:after {
letter-spacing: -0.2em;
content: "\\00a0";
}
.markdown-body pre>code {
padding: 0;
margin: 0;
font-size: 100%;
word-break: normal;
white-space: pre;
background: transparent;
border: 0;
}
.markdown-body .highlight {
margin-bottom: 16px;
}
.markdown-body .highlight pre,
.markdown-body pre {
padding: 16px;
overflow: auto;
font-size: 85%;
line-height: 1.45;
background-color: #f7f7f7;
border-radius: 3px;
}
.markdown-body .highlight pre {
margin-bottom: 0;
word-break: normal;
}
.markdown-body pre {
word-wrap: normal;
}
.markdown-body pre code {
display: inline;
max-width: initial;
padding: 0;
margin: 0;
overflow: initial;
line-height: inherit;
word-wrap: normal;
background-color: transparent;
border: 0;
}
.markdown-body pre code:before,
.markdown-body pre code:after {
content: normal;
}
.markdown-body kbd {
display: inline-block;
padding: 3px 5px;
font-size: 11px;
line-height: 10px;
color: #555;
vertical-align: middle;
background-color: #fcfcfc;
border: solid 1px #ccc;
border-bottom-color: #bbb;
border-radius: 3px;
box-shadow: inset 0 -1px 0 #bbb;
}
.markdown-body .pl-c {
color: #969896;
}
.markdown-body .pl-c1,
.markdown-body .pl-mdh,
.markdown-body .pl-mm,
.markdown-body .pl-mp,
.markdown-body .pl-mr,
.markdown-body .pl-s1 .pl-v,
.markdown-body .pl-s3,
.markdown-body .pl-sc,
.markdown-body .pl-sv {
color: #0086b3;
}
.markdown-body .pl-e,
.markdown-body .pl-en {
color: #795da3;
}
.markdown-body .pl-s1 .pl-s2,
.markdown-body .pl-smi,
.markdown-body .pl-smp,
.markdown-body .pl-stj,
.markdown-body .pl-vo,
.markdown-body .pl-vpf {
color: #333;
}
.markdown-body .pl-ent {
color: #63a35c;
}
.markdown-body .pl-k,
.markdown-body .pl-s,
.markdown-body .pl-st {
color: #a71d5d;
}
.markdown-body .pl-pds,
.markdown-body .pl-s1,
.markdown-body .pl-s1 .pl-pse .pl-s2,
.markdown-body .pl-sr,
.markdown-body .pl-sr .pl-cce,
.markdown-body .pl-sr .pl-sra,
.markdown-body .pl-sr .pl-sre,
.markdown-body .pl-src {
color: #df5000;
}
.markdown-body .pl-mo,
.markdown-body .pl-v {
color: #1d3e81;
}
.markdown-body .pl-id {
color: #b52a1d;
}
.markdown-body .pl-ii {
background-color: #b52a1d;
color: #f8f8f8;
}
.markdown-body .pl-sr .pl-cce {
color: #63a35c;
font-weight: bold;
}
.markdown-body .pl-ml {
color: #693a17;
}
.markdown-body .pl-mh,
.markdown-body .pl-mh .pl-en,
.markdown-body .pl-ms {
color: #1d3e81;
font-weight: bold;
}
.markdown-body .pl-mq {
color: #008080;
}
.markdown-body .pl-mi {
color: #333;
font-style: italic;
}
.markdown-body .pl-mb {
color: #333;
font-weight: bold;
}
.markdown-body .pl-md,
.markdown-body .pl-mdhf {
background-color: #ffecec;
color: #bd2c00;
}
.markdown-body .pl-mdht,
.markdown-body .pl-mi1 {
background-color: #eaffea;
color: #55a532;
}
.markdown-body .pl-mdr {
color: #795da3;
font-weight: bold;
}
.markdown-body kbd {
display: inline-block;
padding: 3px 5px;
font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;
line-height: 10px;
color: #555;
vertical-align: middle;
background-color: #fcfcfc;
border: solid 1px #ccc;
border-bottom-color: #bbb;
border-radius: 3px;
box-shadow: inset 0 -1px 0 #bbb;
}
.markdown-body .task-list-item {
list-style-type: none;
}
.markdown-body .task-list-item+.task-list-item {
margin-top: 3px;
}
.markdown-body .task-list-item input {
float: left;
margin: 0.3em 0 0.25em -1.6em;
vertical-align: middle;
}
.markdown-body :checked+.radio-label {
z-index: 1;
position: relative;
border-color: #4183c4;
}
/*! Pretty printing styles. Used with prettify.js. */
/* SPAN elements with the classes below are added by prettyprint. */
.pln {
color: #000
}
/* plain text */
@media screen {
.str {
color: #080
}
/* string content */
.kwd {
color: #008
}
/* a keyword */
.com {
color: #800
}
/* a comment */
.typ {
color: #606
}
/* a type name */
.lit {
color: #066
}
/* a literal value */
/* punctuation, lisp open bracket, lisp close bracket */
.pun,
.opn,
.clo {
color: #660
}
.tag {
color: #008
}
/* a markup tag name */
.atn {
color: #606
}
/* a markup attribute name */
.atv {
color: #080
}
/* a markup attribute value */
.dec,
.var {
color: #606
}
/* a declaration; a variable name */
.fun {
color: red
}
/* a function name */
}
/* Use higher contrast and text-weight for printable form. */
@media print,
projection {
.str {
color: #060
}
.kwd {
color: #006;
font-weight: bold
}
.com {
color: #600;
font-style: italic
}
.typ {
color: #404;
font-weight: bold
}
.lit {
color: #044
}
.pun,
.opn,
.clo {
color: #440
}
.tag {
color: #006;
font-weight: bold
}
.atn {
color: #404
}
.atv {
color: #060
}
}
/* Put a border around prettyprinted code snippets. */
pre.prettyprint {
padding: 2px;
/* border: 1px solid #888 */
}
/* Specify class=linenums on a pre to get line numbering */
ol.linenums {
margin-top: 0;
margin-bottom: 0
}
/* IE indents via margin-left */
li.L0,
li.L1,
li.L2,
li.L3,
li.L5,
li.L6,
li.L7,
li.L8 {
list-style-type: none
}
/* Alternate shading for lines */
li.L1,
li.L3,
li.L5,
li.L7,
li.L9 {
background: #eee
}
.markdown-body p,
.markdown-body blockquote,
.markdown-body ul,
.markdown-body ol,
.markdown-body dl,
.markdown-body table,
.markdown-body pre {
margin-top: 0;
margin-bottom: 16px;
}`;return(0,yt.useEffect)(()=>{const De=Jt.current.attachShadow({mode:"open"});Ee.current=document.createElement("div"),Ee.current.className="markdown-body",Ee.current.innerHTML=Vt,De.appendChild(Ee.current);const Le=document.createElement("style");return Le.textContent=we,De.appendChild(Le),()=>{De.innerHTML=""}},[]),(0,yt.useEffect)(()=>{Ee.current&&(Ee.current.innerHTML=Vt)},[Vt]),Re.createElement("div",{ref:Jt})},Nt=Object.defineProperty,nt=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,dt=Object.prototype.propertyIsEnumerable,lt=(Vt,Jt,Ee)=>Jt in Vt?Nt(Vt,Jt,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):Vt[Jt]=Ee,gt=(Vt,Jt)=>{for(var Ee in Jt||(Jt={}))et.call(Jt,Ee)&&lt(Vt,Ee,Jt[Ee]);if(nt)for(var Ee of nt(Jt))dt.call(Jt,Ee)&&lt(Vt,Ee,Jt[Ee]);return Vt};const mt="@\u2581\u2581@",St="@\u2581@",bt=/<pre[^>]*>/g;function It(Vt){let Jt=document.createElement("div");return Jt.innerHTML=Vt,Jt.childNodes.length===0?"":Jt.childNodes[0].nodeValue}const Ht=(Vt,Jt)=>{Vt=Vt||"";const Ee=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,we=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,De=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Le=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Jt?Vt.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(Ee,(sn,Fn,fn,Ge,an,Se,Qt)=>{const mn=Fn||Ge||Se,ii=fn||an||Qt||"?";return jt.Z.API_SERVER+"/api/attachments/"+mn+ii+"&t="+(0,ge.Jn)(mn,Date.now())+(sn.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(Vt=Vt.replace(Le,(sn,Fn,fn,Ge,an,Se,Qt)=>{const mn=Fn||Ge||Se,ii=fn||an||Qt||"?";return jt.Z.API_SERVER+"/attachments/download/"+mn+ii+"&t="+(0,ge.Jn)(mn,Date.now())+(sn.indexOf(")")>-1?")":"&")}).replace(Ee,(sn,Fn,fn,Ge,an,Se,Qt)=>{const mn=Fn||Ge||Se,ii=fn||an||Qt||"?";return jt.Z.API_SERVER+"/api/attachments/"+mn+ii+"&t="+(0,ge.Jn)(mn,Date.now())+(sn.indexOf(")")>-1?")":"&")}).replace(we,(sn,Fn,fn,Ge,an)=>{const Se=Fn||Ge,Qt=fn||an||"";return'"'+jt.Z.API_SERVER+"/api/attachments/"+Se+Qt+Se+Qt+"&t="+(0,ge.Jn)(Se,Date.now())}).replace(De,(sn,Fn,fn,Ge,an)=>{const Se=Fn||Ge,Qt=fn||an||"";return"("+jt.Z.API_SERVER+"/files/uploads/"+Se+Qt+Se+Qt+"&t="+(0,ge.Jn)(Se,Date.now())}).replaceAll('src="(','src="').replaceAll("src='(",'src="').replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
`),Vt)};var se=({value:Vt="",className:Jt,showTextOnly:Ee,showLines:we,style:De={},stylesPrev:Le={},highlightKeywords:sn,showProgramFill:Fn,isProgramFill:fn,disabledFill:Ge=!1,programFillValue:an,onFillChange:Se=ii=>{},onFillBlur:Qt=()=>{},onFillFocus:mn=()=>{}})=>{let ii=String(Vt);const[jn,ln]=(0,yt.useState)(""),[qn,Dn]=(0,yt.useState)("office"),[fi,Ve]=(0,yt.useState)([]),On=(0,yt.useRef)("a"+(0,Ce.Z)()),Pe={},Ai=(ne,Oe,Ne)=>{const Xe=document.createElement(ne===St?"input":"textarea");Xe.style.width="100%",Xe.style.height=ne===St?"40px":"151px",Xe.rows=5,Xe.spellcheck=!1,Xe.name="edu-program-fill",Xe.placeholder="\u8BF7\u8F93\u5165",Xe.dataset.id=Oe;const En=Object.keys(Pe).length;return Pe[En]=Xe,`<span class="edu-program-fill-wrap ${ne===St?"":"show"}" style="width:${ne===St?"400px":"100%"}" title=${Ne||""}><span>${Xe.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function Xn(ne){return ne=ne.replace(/!\[.*?\]\(.*?\)/g,""),ne=ne.replace(/\[.*?\]\(.*?\)/g,""),ne=ne.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),ne=ne.replace(/<embed.*?>/g,""),ne=ne.replace(/<img.*?>/g,""),ne=ne.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),ne=ne.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),ne=ne.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),ne=ne.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),ne}const Rt=ne=>ne.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(Oe,Ne){let Xe=Ne.replace(/(\n|\r)/g,"").split("}"),En=[];return Xe.map(In=>{In!=""&&En.push(`.${On.current} ${In}`)}),`<style>${En.join("}")}</style>`}),At=(0,yt.useMemo)(()=>{try{const Xe=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,En=/\"\/api\/attachments\/|\"\/attachments\/download\//g,In=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,An=/\(\/attachments\/download\//g;ii=ii.replace(An,"("+jt.Z.API_SERVER+"/attachments/download/").replace(Xe,"("+jt.Z.API_SERVER+"/api/attachments/").replace(En,'"'+jt.Z.API_SERVER+"/api/attachments/").replace(In,'"'+jt.Z.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
`)}catch(Xe){}if(Fn){let Xe=-1;return ii=ii.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function(En,In,An){var en;return++Xe,Ai(En,Xe,(en=an==null?void 0:an[Xe])==null?void 0:en.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${Rt(ii||"")}</pre>`}let ne=Rt(ii);ne=(0,re.ZP)(ne);const Oe=(0,re.ez)();ii.match(/\[TOC\]/)&&(ne=ne.replace("<p>[TOC]</p>",(0,re.Qv)()),(0,re.Iy)()),ne=ne.replace(/(__special_katext_id_\d+__)/g,(Xe,En)=>{const{type:In,expression:An}=Oe[En];return(0,Ze.renderToString)(It(An)||"",{displayMode:In==="block",throwOnError:!1,output:"html"})}),ne=ne.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,re.AL)();const Ne=document.createElement("div");if(Ne.innerHTML=ne,Ee)return Ne.innerText;if(sn){const Xe=sn.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return kt(Ne,Xe),Ne.innerHTML}return setTimeout(()=>Ie(),500),Ne.innerHTML},[ii,sn]);(0,yt.useEffect)(()=>{$t.current&&$t.current.querySelectorAll(["input","textarea"]).forEach(Oe=>{Oe.oninput=wt,Oe.onblur=Tt,Oe.onfocus=Kt})},[fi]),(0,yt.useEffect)(()=>{var ne,Oe,Ne,Xe,En;if(an!=null&&an.length)try{const In=$t.current.querySelectorAll(".edu-program-fill-score"),An=$t.current.querySelectorAll('[name="edu-program-fill"]');for(const[en,ze]of An.entries())ze.value=((ne=an==null?void 0:an[en])==null?void 0:ne.value)||"",((Oe=an==null?void 0:an[en])==null?void 0:Oe.type)==="warning"?ze.className="program-fill-warning":((Ne=an==null?void 0:an[en])==null?void 0:Ne.type)==="success"?ze.className="program-fill-success":ze.className="";for(const[en,ze]of In.entries())ze.innerHTML=(Xe=an==null?void 0:an[en])!=null&&Xe.score?`${(En=an==null?void 0:an[en])==null?void 0:En.score}\u5206`:"";Ve(an)}catch(In){console.log(In,"error")}},[an]);const wt=ne=>{fi[ne.target.dataset.id]=fi[ne.target.dataset.id]||{},fi[ne.target.dataset.id].value=ne.target.value,Ve([...fi]),Se(fi,ne.target.dataset.id)},Tt=ne=>{fi[ne.target.dataset.id]=fi[ne.target.dataset.id]||{},fi[ne.target.dataset.id].value=ne.target.value,Ve([...fi]),Qt(fi,ne.target.dataset.id)},Kt=ne=>{fi[ne.target.dataset.id]=fi[ne.target.dataset.id]||{},fi[ne.target.dataset.id].value=ne.target.value,Ve([...fi]),mn(fi,ne.target.dataset.id)};function kt(ne,Oe){return ne.childNodes.forEach(Ne=>{var Xe;if(Ne.childNodes.length>0)kt(Ne,Oe);else if(Ne.nodeName!=="IMG")if(Ne.innerHTML)Ne.innerHTML=(Xe=Ne.innerHTML)==null?void 0:Xe.replace(new RegExp(Oe,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const En=document.createElement("span");En.innerHTML=Ne.textContent.replace(new RegExp(Oe,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Ne.replaceWith(En)}})}const $t=(0,yt.useRef)();re.jb.WebkitLineClamp=we,we&&(De=gt(gt({},De),re.jb));function un(ne){let Oe=ne.target;if(Oe.tagName.toUpperCase()==="A"){let Ne=Oe.getAttribute("href");if(Ne.indexOf("office")>-1)ne.preventDefault(),ln(Ne),Dn("office");else if(Ne.indexOf("application/pdf")>-1)ne.preventDefault(),ln(Ne),Dn("pdf");else if(Ne.indexOf("text/html")>-1)ne.preventDefault(),ln(Ne),Dn("html");else if(Ne.startsWith("#")){ne.preventDefault();let Xe=document.getElementById(Ne.replace("#",""));Xe&&Xe.scrollIntoView(!0)}}}const Ie=()=>{var ne;const Oe=(ne=$t.current)==null?void 0:ne.querySelectorAll("video");Oe==null||Oe.forEach(Ne=>{if(Ne.oncontextmenu=()=>!1,Ne.src.indexOf(".m3u8")>-1&&!Ne.canPlayType("application/vnd.apple.mpegurl")){if(be.ZP.isSupported()){var Xe=new be.ZP;Xe.loadSource(Ne.src),Xe.attachMedia(Ne)}}})};(0,yt.useEffect)(()=>{if($t.current&&At&&At.match(bt)&&window.PR.prettyPrint(),$t.current)return $t.current.addEventListener("click",un),()=>{var ne;(ne=$t.current)==null||ne.removeEventListener("click",un),(0,re.AL)(),(0,re.Iy)()}},[At,$t.current,un]),(0,yt.useEffect)(()=>{var ne;const Oe=Ne=>{Ne.preventDefault(),Ne.clipboardData.setData("text",window.getSelection().toString())};return(ne=$t.current)==null||ne.addEventListener("copy",Oe),()=>{var Ne;(Ne=$t.current)==null||Ne.removeEventListener("copy",Oe)}},[$t.current]);const Ue=ne=>/<style[\s\S]*?>/i.test(ne||"");return yt.createElement(yt.Fragment,null,Ee&&yt.createElement("div",{ref:$t},At),!Ee&&!Ue(At)&&yt.createElement("div",{ref:$t,style:gt({},De),className:`${Jt||""} ${Ge?"disabled-fill":""} markdown-body ${On.current}`,dangerouslySetInnerHTML:{__html:At}}),!Ee&&Ue(At)&&yt.createElement(We,{html:At}),yt.createElement(Mt.Z,{close:!0,data:jn,type:jn!=null&&jn.length?qn:"",style:gt({},Le),onClose:()=>ln("")}))}},67702:function(Jn,pi,Dt){"use strict";Dt.d(pi,{Z:function(){return Ze}});var yt=Dt(59301),te={flex_box_center:"flex_box_center___rQJfc",flex_space_between:"flex_space_between___MDW24",flex_box_vertical_center:"flex_box_vertical_center___RZbAv",flex_box_center_end:"flex_box_center_end___ILhJA",flex_box_column:"flex_box_column___Fmij7",orangeColor:"orangeColor___U5vU6",redColor:"redColor___qYa6X",statustitle:"statustitle___pTBLm",statusbody:"statusbody___qUPQx",flex:"flex___VtL45"},re=Dt(62957),Fe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAPCAYAAADUFP50AAAAAXNSR0IArs4c6QAAAUFJREFUOE+V0ktKw1AUxvH/rVqIxT4wkgwEUSmK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t){We(lt)}},nt=dt=>{try{et(Re.throw(dt))}catch(lt){We(lt)}},et=dt=>dt.done?Yt(dt.value):Promise.resolve(dt.value).then(Nt,nt);et((Re=Re.apply(Ce,Mt)).next())}),Ze=({type:Ce,resdata:Mt,onok:Re,oktext:Yt,okloading:We})=>{const[Nt,nt]=(0,yt.useState)(!1),{can_copy_list:et,can_copy_num:dt,challenge_type:lt,course_data_list:gt,no_copy_list:mt,no_copy_num:St,no_use_list:bt,no_use_num:It,repeat_shixun_num:Ht,student_count:se,total_num:Vt,use_num:Jt}=Mt;let Ee=dt>0||Ce==="exercise";(0,yt.useEffect)(()=>{(Mt==null?void 0:Mt.student_count)>0&&nt(!0)},[Mt]),console.log("---11",We),(0,yt.useEffect)(()=>{We||nt(!1)},[We]);const we=()=>{if(Ce==="exercise"&&lt===1)return yt.createElement(yt.Fragment,null,"\u8BFE\u5802\u5185\u6709",yt.createElement("span",{className:te.orangeColor},se),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",yt.createElement("span",{className:te.orangeColor},Jt),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",yt.createElement("span",{className:te.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u4F5C\u7B54\u5DF2\u6311\u6218\u8FC7\u7684\u5B9E\u8BAD\u9898\u3002"));if(Ce==="exercise"&&lt===2)return yt.createElement(yt.Fragment,null,"\u8BFE\u5802\u5185\u6709",yt.createElement("span",{className:te.orangeColor},se),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",yt.createElement("span",{className:te.orangeColor},Jt),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",yt.createElement("span",{className:te.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Ce==="shixun"&&lt===1)return yt.createElement(yt.Fragment,null,"\u8BFE\u5802\u5185\u6709",yt.createElement("span",{className:te.orangeColor},se),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C",yt.createElement("span",{className:te.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Ce==="shixun"&&lt===2)return yt.createElement(yt.Fragment,null,"\u8BFE\u5802\u5185\u6709",yt.createElement("span",{className:te.orangeColor},se),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",yt.createElement("span",{className:te.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Ce==="subject"&&lt===1)return yt.createElement(yt.Fragment,null,"\u8BFE\u5802\u5185\u6709",yt.createElement("span",{className:te.orangeColor},se),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",yt.createElement("span",{className:te.orangeColor},Jt),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",yt.createElement("span",{className:te.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Ce==="subject"&&lt===2)return yt.createElement(yt.Fragment,null,"\u8BFE\u5802\u5185\u6709 ",yt.createElement("span",{className:te.orangeColor},se)," \u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u6311\u6218\u8FC7\u5176\u4E2D\u7684 ",yt.createElement("span",{className:te.orangeColor},Jt)," \u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",yt.createElement("span",{className:te.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Ce==="exercisepush")return yt.createElement(yt.Fragment,null,"\u8BFE\u5802\u5185\u6709",yt.createElement("span",{className:te.orangeColor},se),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BD5\u5377\u4E2D\u7684",yt.createElement("span",{className:te.orangeColor},Jt),"\u4E2A\u5B9E\u8DF5\u9879\u76EE \uFF0C",yt.createElement("span",{className:te.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u5728\u5F53\u524D\u8003\u8BD5\u4E2D\u8FDB\u884C\u4F5C\u7B54\u3002"));if(Ce==="shixunpush"&&lt===1)return yt.createElement(yt.Fragment,null,"\u8BFE\u5802\u5185\u6709",yt.createElement("span",{className:te.orangeColor},se),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",yt.createElement("span",{className:te.orangeColor},Jt),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",yt.createElement("span",{className:te.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Ce==="shixunpush"&&lt===2)return yt.createElement(yt.Fragment,null,"\u8BFE\u5802\u5185\u6709",yt.createElement("span",{className:te.orangeColor},se),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7",yt.createElement("span",{className:te.orangeColor},Jt),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",yt.createElement("span",{className:te.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"))},De=()=>{if(Ce==="exercise"||Ce==="subject"||Ce==="exercisepush"||Ce==="shixunpush")return yt.createElement("div",{style:{marginTop:20}},St>0&&yt.createElement("div",null,yt.createElement("span",{className:te.flex},yt.createElement("img",{src:be,style:{width:14}}),yt.createElement("span",{className:te.statustitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),yt.createElement("div",{className:te.statusbody},Ce==="exercise"&&yt.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",yt.createElement("span",{className:te.redColor},"\u4EE5\u4E0B\u8BD5\u9898\u5C06\u4E0D\u4F1A\u88AB\u53D1\u9001\u81F3\u8BFE\u5802\u4E2D\u3002"),"\u60A8\u4E5F\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),(Ce==="subject"||Ce==="exercisepush")&&yt.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",Ee&&yt.createElement("span",{className:te.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),Ce==="shixunpush"&&yt.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",Ee&&yt.createElement("span",{className:te.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u5EFA\u8BAE\u60A8\u91CD\u65B0\u9009\u62E9\u5B9E\u8DF5\u9879\u76EE\u518D\u53D1\u5E03\u4F5C\u4E1A\uFF0C\u4E5F\u53EF\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),yt.createElement("div",null,mt==null?void 0:mt.map((Le,sn)=>yt.createElement("a",{href:`/shixuns/${Le.identifier}/challenges`,target:"_blank"},"\u300A",Le==null?void 0:Le.name,"\u300B",sn+1!==St&&"\u3001"))))),dt>0&&yt.createElement("div",{style:{marginTop:20}},yt.createElement("span",{className:te.flex},yt.createElement("img",{src:Fe,style:{width:14}}),yt.createElement("span",{className:te.statustitle},"\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),yt.createElement("div",{className:te.statusbody},Ce==="exercise"&&yt.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u8BD5\u5377\u4E2D\u7684\u539F\u8BD5\u9898\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),(Ce==="subject"||Ce==="exercisepush")&&yt.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),Ce==="shixunpush"&&yt.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u5F53\u524D\u4F5C\u4E1A\u4E2D\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),yt.createElement("div",null,et==null?void 0:et.map((Le,sn)=>yt.createElement("a",{href:`/shixuns/${Le.identifier}/challenges`,target:"_blank"},"\u300A",Le==null?void 0:Le.name,"\u300B",sn+1!==dt&&"\u3001"))))));if(Ce==="shixun")return yt.createElement("div",{style:{marginTop:20}},dt>0?"\u8BE5\u9879\u76EE\u652F\u6301\u590D\u5236\uFF0C\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002":"\u8BE5\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236\uFF0C\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002")};return yt.createElement(re.default,{open:Nt,onCancel:()=>{nt(!1)},cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",width:700,centered:!0,cancelButtonProps:{style:{display:!Ee&&"none"}},zIndex:1003,confirmLoading:We,okText:Ee?Yt:"\u6211\u77E5\u9053\u4E86",onOk:()=>jt(void 0,null,function*(){Ee?yield Re([...et,...bt]):nt(!1)})},yt.createElement("div",{style:{maxHeight:600,overflow:"auto"}},we(),De()))}},41539:function(Jn,pi,Dt){"use strict";Dt.d(pi,{h:function(){return St}});var yt=Dt(59301),te=Dt(82326),re=Dt(28284),Fe=Dt(99571),be=Dt(89780),jt=Dt.n(be),ge=Dt(39060),Ze=Dt(76596),Ce=Object.defineProperty,Mt=Object.defineProperties,Re=Object.getOwnPropertyDescriptors,Yt=Object.getOwnPropertySymbols,We=Object.prototype.hasOwnProperty,Nt=Object.prototype.propertyIsEnumerable,nt=(bt,It,Ht)=>It in bt?Ce(bt,It,{enumerable:!0,configurable:!0,writable:!0,value:Ht}):bt[It]=Ht,et=(bt,It)=>{for(var Ht in It||(It={}))We.call(It,Ht)&&nt(bt,Ht,It[Ht]);if(Yt)for(var Ht of Yt(It))Nt.call(It,Ht)&&nt(bt,Ht,It[Ht]);return bt},dt=(bt,It)=>Mt(bt,Re(It));const lt=te.default.Option,gt={labelCol:{span:4},wrapperCol:{span:20}},mt={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"]};pi.Z=({callback:bt,onCancel:It})=>{const[Ht,se]=(0,yt.useState)("python");function Vt(Ee){se(mt[Ee][1])}function Jt(Ee){bt(Ee)}return yt.createElement(re.default,dt(et({},gt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Jt,style:{width:500}}),yt.createElement(re.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},yt.createElement(te.default,{getPopupContainer:Ee=>Ee.parentNode,onChange:Vt},Object.keys(mt).map(Ee=>yt.createElement(lt,{key:Ee,value:Ee},mt[Ee][0])))),yt.createElement(re.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},yt.createElement(St,{mode:Ht})),yt.createElement("div",{className:"flex-container flex-end"},yt.createElement(Fe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),yt.createElement(Fe.ZP,{type:"ghost",onClick:It},"\u53D6\u6D88")))};function St({value:bt,onChange:It,mode:Ht,options:se={}}){const Vt=(0,yt.useRef)(),[Jt,Ee]=(0,yt.useState)();return(0,yt.useEffect)(()=>{if(Jt){let we=function(De){const Le=De.getValue();It&&It(Le)};return Jt.on("change",we),()=>{Jt.off("change",we)}}},[Jt,It]),(0,yt.useEffect)(()=>{Jt&&Jt.setOption("mode",Ht)},[Jt,Ht]),(0,yt.useEffect)(()=>{Jt&&(bt!==Jt.getValue()||bt==="")&&setTimeout(()=>{Jt.setValue(bt||"")},300)},[Jt,bt]),(0,yt.useEffect)(()=>{if(Vt.current&&!Jt){const we=jt().fromTextArea(Vt.current,et({mode:Ht,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},se));Ee(we)}},[Vt.current,Jt]),yt.createElement("div",{className:"my-codemirror-container"},yt.createElement("textarea",{ref:Vt}))}},4213:function(Jn,pi,Dt){"use strict";Dt.d(pi,{Z:function(){return kn}});var yt=Dt(59301),te=Dt(89780),re=Dt.n(te),Fe=Dt(76374),be=Dt(39060),jt=Dt(6313),ge=Dt(25717),Ze=Dt(99498),Ce=Dt(25419),Mt=Dt(67549),Re=Dt(98573),Yt=({value:ve="",className:ye,showTextOnly:xe,showLines:Kn,style:$n={}})=>{const ui=(0,yt.useMemo)(()=>"",[ve]);return yt.createElement(yt.Fragment,null,yt.createElement("div",{dangerouslySetInnerHTML:{__html:ui}}))},We=Dt(59301),Nt=Object.defineProperty,nt=Object.defineProperties,et=Object.getOwnPropertyDescriptors,dt=Object.getOwnPropertySymbols,lt=Object.prototype.hasOwnProperty,gt=Object.prototype.propertyIsEnumerable,mt=(ve,ye,xe)=>ye in ve?Nt(ve,ye,{enumerable:!0,configurable:!0,writable:!0,value:xe}):ve[ye]=xe,St=(ve,ye)=>{for(var xe in ye||(ye={}))lt.call(ye,xe)&&mt(ve,xe,ye[xe]);if(dt)for(var xe of dt(ye))gt.call(ye,xe)&&mt(ve,xe,ye[xe]);return ve},bt=(ve,ye)=>nt(ve,et(ye));let It=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function Ht({onActionCallback:ve,title:ye,icon:xe,actionName:Kn,className:$n="",children:ui}){function Sn(){ve(Kn)}return We.createElement("a",{title:ye,className:$n,onClick:Sn},We.createElement("i",{className:`${xe}`}),ui)}var se=({watch:ve,showNullButton:ye,showNullProgramButton:xe,onActionCallback:Kn,fullScreen:$n,insertTemp:ui,hidetoolBar:Sn,extraUse:oi})=>{const fe=[...It,{title:`${ve?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${ve?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return We.createElement("ul",{className:"markdown-toolbar-container"},!Sn&&fe.map((Te,hi)=>We.createElement("li",{key:hi},Te.actionName?We.createElement(Ht,bt(St({},Te),{onActionCallback:Kn})):We.createElement("span",{className:"v-line"}))),ye?We.createElement("li",null,We.createElement(Ht,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Kn},We.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,xe?We.createElement(We.Fragment,null,We.createElement("li",null,We.createElement(Ht,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Kn},We.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),We.createElement("li",null,We.createElement(Ht,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Kn},We.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,ui&&We.createElement("li",null,We.createElement(Ht,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${ui}`,onActionCallback:Kn},We.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),oi&&We.createElement("li",null,oi),We.createElement("li",{className:"btn-full-screen"},We.createElement(Ht,{icon:`${$n?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:$n?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Kn})))},Vt=Dt(51498),Jt=Dt(28284),Ee=Dt(37568),we=Dt(99571),De=Object.defineProperty,Le=Object.defineProperties,sn=Object.getOwnPropertyDescriptors,Fn=Object.getOwnPropertySymbols,fn=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,an=(ve,ye,xe)=>ye in ve?De(ve,ye,{enumerable:!0,configurable:!0,writable:!0,value:xe}):ve[ye]=xe,Se=(ve,ye)=>{for(var xe in ye||(ye={}))fn.call(ye,xe)&&an(ve,xe,ye[xe]);if(Fn)for(var xe of Fn(ye))Ge.call(ye,xe)&&an(ve,xe,ye[xe]);return ve},Qt=(ve,ye)=>Le(ve,sn(ye));const mn={labelCol:{span:4},wrapperCol:{span:20}};var ii=({callback:ve,onCancel:ye})=>{function xe(Kn){ve(Kn)}return yt.createElement(Jt.default,Qt(Se({},mn),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:xe,style:{width:500}}),yt.createElement(Jt.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},yt.createElement(Ee.default,null)),yt.createElement(Jt.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},yt.createElement(Ee.default,null)),yt.createElement("div",{className:"flex-container flex-end"},yt.createElement(we.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),yt.createElement(we.ZP,{type:"ghost",onClick:ye},"\u53D6\u6D88")))},jn=Dt(41539),ln=Dt(35944),qn=Dt(62957),Dn=Dt(77019),fi=Dt(89837),Ve=Dt(59301),On=({callback:ve,onCancel:ye})=>{const xe=document.createElement("canvas"),Kn=xe.getContext("2d");xe.width=1e3,xe.height=800,Kn.fillStyle="#ffffff",Kn.fillRect(0,0,xe.width,xe.height);const $n=xe.toDataURL("image/png");return Ve.createElement(qn.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Ve.createElement(Dn.Z,{style:{height:"100vh"}},Ve.createElement(fi.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:$n,visible:!0,title:String(Date.now())},onOk:ui=>{ve({src:ui.url})},onClose:ye})))},Pe=Dt(12378);function Ai(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Ai,go.CommandHandler),Ai.prototype.canAlignSelection=function(){var ve=this.diagram;return!(ve===null||ve.isReadOnly||ve.isModelReadOnly||ve.selection.count<2)},Ai.prototype.alignLeft=function(){var ve=this.diagram;ve.startTransaction("aligning left");var ye=1/0;ve.selection.each(function(xe){xe instanceof go.Link||(ye=Math.min(xe.position.x,ye))}),ve.selection.each(function(xe){xe instanceof go.Link||xe.move(new go.Point(ye,xe.position.y))}),ve.commitTransaction("aligning left")},Ai.prototype.alignRight=function(){var ve=this.diagram;ve.startTransaction("aligning right");var ye=-1/0;ve.selection.each(function(xe){if(!(xe instanceof go.Link)){var Kn=xe.actualBounds.x+xe.actualBounds.width;ye=Math.max(Kn,ye)}}),ve.selection.each(function(xe){xe instanceof go.Link||xe.move(new go.Point(ye-xe.actualBounds.width,xe.position.y))}),ve.commitTransaction("aligning right")},Ai.prototype.alignTop=function(){var ve=this.diagram;ve.startTransaction("alignTop");var ye=1/0;ve.selection.each(function(xe){xe instanceof go.Link||(ye=Math.min(xe.position.y,ye))}),ve.selection.each(function(xe){xe instanceof go.Link||xe.move(new go.Point(xe.position.x,ye))}),ve.commitTransaction("alignTop")},Ai.prototype.alignBottom=function(){var ve=this.diagram;ve.startTransaction("aligning bottom");var ye=-1/0;ve.selection.each(function(xe){if(!(xe instanceof go.Link)){var Kn=xe.actualBounds.y+xe.actualBounds.height;ye=Math.max(Kn,ye)}}),ve.selection.each(function(xe){xe instanceof go.Link||xe.move(new go.Point(xe.actualBounds.x,ye-xe.actualBounds.height))}),ve.commitTransaction("aligning bottom")},Ai.prototype.alignCenterX=function(){var ve=this.diagram,ye=ve.selection.first();if(ye){ve.startTransaction("aligning Center X");var xe=ye.actualBounds.x+ye.actualBounds.width/2;ve.selection.each(function(Kn){Kn instanceof go.Link||Kn.move(new go.Point(xe-Kn.actualBounds.width/2,Kn.actualBounds.y))}),ve.commitTransaction("aligning Center X")}},Ai.prototype.alignCenterY=function(){var ve=this.diagram,ye=ve.selection.first();if(ye){ve.startTransaction("aligning Center Y");var xe=ye.actualBounds.y+ye.actualBounds.height/2;ve.selection.each(function(Kn){Kn instanceof go.Link||Kn.move(new go.Point(Kn.actualBounds.x,xe-Kn.actualBounds.height/2))}),ve.commitTransaction("aligning Center Y")}},Ai.prototype.alignColumn=function(ve){var ye=this.diagram;ye.startTransaction("align Column"),ve===void 0&&(ve=0),ve=parseFloat(ve);var xe=new Array;ye.selection.each(function(oi){oi instanceof go.Link||xe.push(oi)});for(var Kn=0;Kn<xe.length-1;Kn++){var $n=xe[Kn],ui=$n.actualBounds.y+$n.actualBounds.height+ve,Sn=xe[Kn+1];Sn.move(new go.Point($n.actualBounds.x,ui))}ye.commitTransaction("align Column")},Ai.prototype.alignRow=function(ve){ve===void 0&&(ve=0),ve=parseFloat(ve);var ye=this.diagram;ye.startTransaction("align Row");var xe=new Array;ye.selection.each(function(oi){oi instanceof go.Link||xe.push(oi)});for(var Kn=0;Kn<xe.length-1;Kn++){var $n=xe[Kn],ui=$n.actualBounds.x+$n.actualBounds.width+ve,Sn=xe[Kn+1];Sn.move(new go.Point(ui,$n.actualBounds.y))}ye.commitTransaction("align Row")},Ai.prototype.canRotate=function(ve){var ye=this.diagram;return!(ye===null||ye.isReadOnly||ye.isModelReadOnly||ye.selection.count<1)},Ai.prototype.rotate=function(ve){ve===void 0&&(ve=90);var ye=this.diagram;ye.startTransaction("rotate "+ve.toString());var ye=this.diagram;ye.selection.each(function(xe){xe instanceof go.Link||xe instanceof go.Group||(xe.angle+=ve)}),ye.commitTransaction("rotate "+ve.toString())},Ai.prototype.pullToFront=function(){var ve=this.diagram;ve.startTransaction("pullToFront");var ye=new go.Map;ve.selection.each(function(xe){ye.set(xe.layer,0)}),ye.iteratorKeys.each(function(xe){var Kn=0;xe.parts.each(function($n){if(!$n.isSelected){var ui=$n.zOrder;isNaN(ui)?$n.zOrder=0:Kn=Math.max(Kn,ui)}}),ye.set(xe,Kn)}),ve.selection.each(function(xe){Ai._assignZOrder(xe,ye.get(xe.layer)+1)}),ve.commitTransaction("pullToFront")},Ai.prototype.pushToBack=function(){var ve=this.diagram;ve.startTransaction("pushToBack");var ye=new go.Map;ve.selection.each(function(xe){ye.set(xe.layer,0)}),ye.iteratorKeys.each(function(xe){var Kn=0;xe.parts.each(function($n){if(!$n.isSelected){var ui=$n.zOrder;isNaN(ui)?$n.zOrder=0:Kn=Math.min(Kn,ui)}}),ye.set(xe,Kn)}),ve.selection.each(function(xe){Ai._assignZOrder(xe,ye.get(xe.layer)-1-Ai._findGroupDepth(xe))}),ve.commitTransaction("pushToBack")},Ai._assignZOrder=function(ve,ye,xe){xe===void 0&&(xe=ve),ve.layer===xe.layer&&(ve.zOrder=ye),ve instanceof go.Group&&ve.memberParts.each(function(Kn){Ai._assignZOrder(Kn,ye+1,xe)})},Ai._findGroupDepth=function(ve){if(ve instanceof go.Group){var ye=0;return ve.memberParts.each(function(xe){ye=Math.max(ye,Ai._findGroupDepth(xe))}),ye+1}else return 0},Ai.prototype.doKeyDown=function(){var ve=this.diagram;if(ve!==null){var ye=ve.lastInput;if(ye.key==="Up"||ye.key==="Down"||ye.key==="Left"||ye.key==="Right"){var xe=this.arrowKeyBehavior;if(xe==="none")return;if(xe==="select"){this._arrowKeySelect();return}else if(xe==="move"){this._arrowKeyMove();return}else if(xe==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Ai.prototype._getAllParts=function(){var ve=new Array;return this.diagram.nodes.each(function(ye){ve.push(ye)}),this.diagram.parts.each(function(ye){ve.push(ye)}),ve},Ai.prototype._arrowKeyMove=function(){var ve=this.diagram,ye=ve.lastInput,xe=0,Kn=0;if(ye.control||ye.meta)xe=1,Kn=1;else if(ve.grid!==null){var $n=ve.grid.gridCellSize;Kn=$n.width,xe=$n.height}ve.startTransaction("arrowKeyMove"),ve.selection.each(function(ui){ye.key==="Up"?ui.move(new go.Point(ui.actualBounds.x,ui.actualBounds.y-xe)):ye.key==="Down"?ui.move(new go.Point(ui.actualBounds.x,ui.actualBounds.y+xe)):ye.key==="Left"?ui.move(new go.Point(ui.actualBounds.x-Kn,ui.actualBounds.y)):ye.key==="Right"&&ui.move(new go.Point(ui.actualBounds.x+Kn,ui.actualBounds.y))}),ve.commitTransaction("arrowKeyMove")},Ai.prototype._arrowKeySelect=function(){var ve=this.diagram,ye=ve.lastInput,xe=null;ye.key==="Up"?xe=this._findNearestPartTowards(270):ye.key==="Down"?xe=this._findNearestPartTowards(90):ye.key==="Left"?xe=this._findNearestPartTowards(180):ye.key==="Right"&&(xe=this._findNearestPartTowards(0)),xe!==null&&(ye.shift?xe.isSelected=!0:ye.control||ye.meta?xe.isSelected=!xe.isSelected:ve.select(xe))},Ai.prototype._findNearestPartTowards=function(ve){var ye=this.diagram.selection.first();if(ye===null)return null;for(var xe=ye.actualBounds.center,Kn=this._getAllParts(),$n=1/0,ui=ye,Sn=0;Sn<Kn.length;Sn++){var oi=Kn[Sn];if(oi!==ye&&oi.canSelect()){var fe=oi.actualBounds.center,Te=xe.directionPoint(fe),hi=this._angleCloseness(Te,ve);if(hi<=45){var ee=xe.distanceSquaredPoint(fe);ee*=1+Math.sin(hi*Math.PI/180),ee<$n&&($n=ee,ui=oi)}}}return ui},Ai.prototype._angleCloseness=function(ve,ye){return Math.min(Math.abs(ye-ve),Math.min(Math.abs(ye+360-ve),Math.abs(ye-360-ve)))},Ai.prototype._arrowKeyTree=function(){var ve=this.diagram,ye=ve.selection.first();if(ye instanceof go.Node){var xe=ve.lastInput;if(xe.key==="Right"){if(!ye.isTreeLeaf)if(!ye.isTreeExpanded)ve.commandHandler.canExpandTree(ye)&&ve.commandHandler.expandTree(ye);else{var Kn=this._sortTreeChildrenByY(ye).first();Kn!==null&&ve.select(Kn)}}else if(xe.key==="Left")if(!ye.isTreeLeaf&&ye.isTreeExpanded)ve.commandHandler.canCollapseTree(ye)&&ve.commandHandler.collapseTree(ye);else{var $n=ye.findTreeParentNode();$n!==null&&ve.select($n)}else if(xe.key==="Up"){var $n=ye.findTreeParentNode();if($n!==null){var ui=this._sortTreeChildrenByY($n),Sn=ui.indexOf(ye);if(Sn>0){for(var oi=ui.elt(Sn-1);oi!==null&&oi.isTreeExpanded&&!oi.isTreeLeaf;){var fe=this._sortTreeChildrenByY(oi);oi=fe.last()}oi!==null&&ve.select(oi)}else ve.select($n)}}else if(xe.key==="Down")if(ye.isTreeExpanded&&!ye.isTreeLeaf){var Kn=this._sortTreeChildrenByY(ye).first();Kn!==null&&ve.select(Kn)}else for(;ye!==null;){var $n=ye.findTreeParentNode();if($n===null)break;var ui=this._sortTreeChildrenByY($n),Sn=ui.indexOf(ye);if(Sn<ui.length-1){ve.select(ui.elt(Sn+1));break}else ye=$n}var Te=ve.selection.first();Te!==null&&ve.scrollToRect(Te.actualBounds)}},Ai.prototype._sortTreeChildrenByY=function(ve){var ye=new go.List().addAll(ve.findTreeChildrenNodes());return ye.sort(function(xe,Kn){var $n=xe.location,ui=Kn.location;return $n.y<ui.y?-1:$n.y>ui.y?1:$n.x<ui.x?-1:$n.x>ui.x?1:0}),ye},Ai.prototype.copyToClipboard=function(ve){go.CommandHandler.prototype.copyToClipboard.call(this,ve),this._lastPasteOffset.set(this.pasteOffset)},Ai.prototype.pasteFromClipboard=function(){var ve=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(ve,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),ve},Object.defineProperty(Ai.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(ve){if(ve!=="move"&&ve!=="select"&&ve!=="scroll"&&ve!=="tree"&&ve!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+ve);this._arrowKeyBehavior=ve}}),Object.defineProperty(Ai.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(ve){if(!(ve instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+ve);this._pasteOffset.set(ve)}});var Xn=Ai,Rt=Dt(74042),At=Dt(5269),wt=Dt(52430),Tt={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Kt=Dt(64681),kt=Dt(59301),$t=(ve,ye,xe)=>new Promise((Kn,$n)=>{var ui=fe=>{try{oi(xe.next(fe))}catch(Te){$n(Te)}},Sn=fe=>{try{oi(xe.throw(fe))}catch(Te){$n(Te)}},oi=fe=>fe.done?Kn(fe.value):Promise.resolve(fe.value).then(ui,Sn);oi((xe=xe.apply(ve,ye)).next())});function un({onCancel:ve,callback:ye}){let xe=(0,yt.useRef)(),Kn=(0,yt.useRef)(),$n=(0,yt.useRef)(),ui=(0,yt.useRef)(!1);const Sn=(0,yt.useRef)(!1),[oi,fe]=(0,yt.useState)(0);function Te(){const ee=Pe.bx.make,nn={red:"#ff3333",blue:"#3358ff",green:"#25ad23",magenta:"#d533ff",purple:"#7d33ff",orange:"#ff6233",brown:"#8e571e",white:"#ffffff",black:"#000000",beige:"#fffcd5",extralightblue:"#d5ebff",extralightred:"#f2dfe0",lightblue:"#a5d2fa",lightgray:"#cccccc",lightgreen:"#b3e6b3",lightred:"#fcbbbd"};xe.current=new Pe.S0(Kn.current,{padding:20,grid:ee(Pe.s_,"Grid",ee(Pe.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),ee(Pe.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Mi=>{var Vi=Mi.diagram.commandHandler.addTopLevelParts(Mi.diagram.selection,!0);Vi||Mi.diagram.currentTool.doCancel()},commandHandler:ee(Xn),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Mi=>{var Vi=Mi.subject;Vi.location=Vi.location.copy().snapToGridPoint(Mi.diagram.grid.gridOrigin,Mi.diagram.grid.gridCellSize),setTimeout(()=>{Mi.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Mi=>{var Vi=Mi.subject;setTimeout(()=>{Mi.diagram.commandHandler.editTextBlock()})},LinkRelinked:Mi=>{var Vi=Mi.parameter.part;Vi.invalidateConnectedLinks();var Qi=Mi.subject;Mi.diagram.toolManager.linkingTool.isForwards?Qi.toNode.invalidateConnectedLinks():Qi.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),xe.current.nodeTemplate=ee(Pe.NB,"Auto",{locationSpot:Pe.z6.Center,locationObjectName:"SHAPE",desiredSize:new Pe.$u(120,60),minSize:new Pe.$u(40,40),resizable:!0,resizeCellSize:new Pe.$u(10,10),rotatable:!0},new Pe.KX("location","loc",Pe.E9.parse).makeTwoWay(Pe.E9.stringify),new Pe.KX("desiredSize","size",Pe.$u.parse).makeTwoWay(Pe.$u.stringify),ee(Pe.bn,{name:"SHAPE",fill:nn.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Pe.z6.AllSides,toSpot:Pe.z6.AllSides},new Pe.KX("figure"),new Pe.KX("fill"),new Pe.KX("stroke","borderColor"),new Pe.KX("strokeWidth","thickness"),new Pe.KX("strokeDashArray","dash")),ee(Pe.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),ee(Pe.al,{margin:1,textAlign:"center",overflow:Pe.al.OverflowEllipsis,editable:!0},new Pe.KX("text").makeTwoWay(),new Pe.KX("stroke","color"))),xe.current.nodeTemplate.toolTip=ee("ToolTip",ee(Pe.s_,"Vertical",{maxSize:new Pe.$u(200,NaN)},ee(Pe.al,{font:"bold 10pt sans-serif",textAlign:"center"},new Pe.KX("text")),ee(Pe.al,{font:"10pt sans-serif",textAlign:"center"},new Pe.KX("text","details"))));function Vn(Mi,Vi){var Qi=(qi,cr)=>{qi.handled=!0,qi.diagram.model.commit(Ar=>{var ji=cr.part.adornedPart,er=new Pe.E9().setRectSpot(ji.actualBounds,Mi);er.subtract(ji.location),er.scale(2,2),er.x+=Math.sign(er.x)*130,er.y+=Math.sign(er.y)*130,er.add(ji.location),er.snapToGridPoint(qi.diagram.grid.gridOrigin,qi.diagram.grid.gridCellSize);var Hi=Ar.copyNodeData(ji.data);Ar.setGroupKeyForNodeData(Hi,Ar.getGroupKeyForNodeData(ji.data)),Ar.addNodeData(Hi);var cn={from:ji.key,to:Ar.getKeyForNodeData(Hi)};Ar.addLinkData(cn);var lr=qi.diagram.findNodeForData(Hi);lr.location=er,qi.diagram.select(lr),setTimeout(()=>{qi.diagram.commandHandler.editTextBlock()},20)})};return ee(Pe.bn,{figure:Vi,alignment:Mi,alignmentFocus:Mi.opposite(),width:Mi.equals(Pe.z6.Top)||Mi.equals(Pe.z6.Bottom)?25:18,height:Mi.equals(Pe.z6.Top)||Mi.equals(Pe.z6.Bottom)?18:25,fill:"orange",stroke:nn.white,strokeWidth:4,mouseEnter:(qi,cr)=>cr.fill="dodgerblue",mouseLeave:(qi,cr)=>cr.fill="orange",isActionable:!0,click:Qi,contextClick:Qi})}function _n(Mi){return ee(Pe.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:(Vi,Qi)=>Qi.fill="dodgerblue",mouseLeave:(Vi,Qi)=>Qi.fill="orange",click:(Vi,Qi)=>{Vi.diagram.commandHandler.showContextMenu(Qi.part.adornedPart)}},Mi||{})}xe.current.nodeTemplate.selectionAdornmentTemplate=ee(Pe.uz,"Spot",ee(Pe.Vm,{padding:10}),Vn(Pe.z6.Top,"TriangleUp"),Vn(Pe.z6.Left,"TriangleLeft"),Vn(Pe.z6.Right,"TriangleRight"),Vn(Pe.z6.Bottom,"TriangleDown"),_n({alignment:new Pe.z6(.75,0)}));function Ke(Mi,Vi){return(Qi,qi)=>{Qi.handled=!0,Qi.diagram.model.commit(cr=>{cr.set(qi.part.adornedPart.data,Mi,Vi)})}}function Gn(Mi,Vi){return Vi||(Vi="color"),ee(Pe.bn,{width:16,height:16,stroke:"lightgray",fill:Mi,margin:1,background:"transparent",mouseEnter:(Qi,qi)=>qi.stroke="dodgerblue",mouseLeave:(Qi,qi)=>qi.stroke="lightgray",click:Ke(Vi,Mi),contextClick:Ke(Vi,Mi)})}function ai(){return[ee("ContextMenuButton",ee(Pe.s_,"Horizontal",Gn(nn.white,"fill"),Gn(nn.beige,"fill"),Gn(nn.extralightblue,"fill"),Gn(nn.extralightred,"fill"))),ee("ContextMenuButton",ee(Pe.s_,"Horizontal",Gn(nn.lightgray,"fill"),Gn(nn.lightgreen,"fill"),Gn(nn.lightblue,"fill"),Gn(nn.lightred,"fill")))]}function ni(){return[ee("ContextMenuButton",ee(Pe.s_,"Horizontal",Gn(nn.black),Gn(nn.green),Gn(nn.blue),Gn(nn.red))),ee("ContextMenuButton",ee(Pe.s_,"Horizontal",Gn(nn.white),Gn(nn.magenta),Gn(nn.purple),Gn(nn.orange)))]}function ki(Mi,Vi){return Vi||(Vi="thickness"),ee(Pe.bn,"LineH",{width:16,height:16,strokeWidth:Mi,margin:1,background:"transparent",mouseEnter:(Qi,qi)=>qi.background="dodgerblue",mouseLeave:(Qi,qi)=>qi.background="transparent",click:Ke(Vi,Mi),contextClick:Ke(Vi,Mi)})}function xi(Mi,Vi){return Vi||(Vi="dash"),ee(Pe.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Mi,margin:1,background:"transparent",mouseEnter:(Qi,qi)=>qi.background="dodgerblue",mouseLeave:(Qi,qi)=>qi.background="transparent",click:Ke(Vi,Mi),contextClick:Ke(Vi,Mi)})}function gi(){return[ee("ContextMenuButton",ee(Pe.s_,"Horizontal",ki(1),ki(2),ki(3),ki(4))),ee("ContextMenuButton",ee(Pe.s_,"Horizontal",xi(null),xi([2,4]),xi([4,4])))]}function Li(Mi,Vi){return Vi||(Vi="figure"),ee(Pe.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Mi,margin:1,background:"transparent",mouseEnter:(Qi,qi)=>qi.fill="dodgerblue",mouseLeave:(Qi,qi)=>qi.fill="lightgray",click:Ke(Vi,Mi),contextClick:Ke(Vi,Mi)})}xe.current.nodeTemplate.contextMenu=ee("ContextMenu",ee("ContextMenuButton",ee(Pe.s_,"Horizontal",Li("Rectangle"),Li("RoundedRectangle"),Li("Ellipse"),Li("Diamond"))),ee("ContextMenuButton",ee(Pe.s_,"Horizontal",Li("Parallelogram2"),Li("ManualOperation"),Li("Procedure"),Li("Cylinder1"))),ee("ContextMenuButton",ee(Pe.s_,"Horizontal",Li("Terminator"),Li("CreateRequest"),Li("Document"),Li("TriangleDown"))),ai(),ni(),gi()),xe.current.groupTemplate=ee(Pe.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:Pe.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Mi,Vi)=>{var Qi=Vi.addMembers(Vi.diagram.selection,!0);Qi||Vi.diagram.currentTool.doCancel()},avoidable:!1},new Pe.KX("location","loc",Pe.E9.parse).makeTwoWay(Pe.E9.stringify),ee(Pe.s_,"Auto",{name:"BODY"},ee(Pe.bn,{parameter1:10,fill:nn.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Pe.z6.AllSides,toSpot:Pe.z6.AllSides},new Pe.KX("fill"),new Pe.KX("stroke","color"),new Pe.KX("strokeWidth","thickness"),new Pe.KX("strokeDashArray","dash")),ee(Pe.Vm,{background:"transparent",margin:20})),ee(Pe.al,{alignment:Pe.z6.Top,alignmentFocus:Pe.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new Pe.KX("text"),new Pe.KX("stroke","color"))),xe.current.groupTemplate.selectionAdornmentTemplate=ee(Pe.uz,"Spot",ee(Pe.s_,"Auto",ee(Pe.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),ee(Pe.Vm,{margin:1.5})),_n({alignment:Pe.z6.TopRight,alignmentFocus:Pe.z6.BottomRight})),xe.current.groupTemplate.contextMenu=ee("ContextMenu",ai(),ni(),gi()),xe.current.linkTemplate=ee(Pe.rU,{layerName:"Foreground",routing:Pe.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new Pe.KX("fromSpot","fromSpot",Pe.z6.parse),new Pe.KX("toSpot","toSpot",Pe.z6.parse),new Pe.KX("fromShortLength","dir",Mi=>Mi>=1?10:0),new Pe.KX("toShortLength","dir",Mi=>Mi>=1?10:0),new Pe.KX("points").makeTwoWay(),ee(Pe.bn,{strokeWidth:2},new Pe.KX("stroke","color"),new Pe.KX("strokeWidth","thickness"),new Pe.KX("strokeDashArray","dash")),ee(Pe.bn,{segmentIndex:0,segmentOffset:new Pe.E9(15,0),segmentOrientation:Pe.rU.OrientAlong,alignmentFocus:Pe.z6.Right,figure:"circle",width:10,strokeWidth:0},new Pe.KX("fill","color"),new Pe.KX("visible","dir",Mi=>Mi===1)),ee(Pe.bn,{segmentIndex:-1,segmentOffset:new Pe.E9(-10,6),segmentOrientation:Pe.rU.OrientPlus90,alignmentFocus:Pe.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Pe.KX("fill","color"),new Pe.KX("visible","dir",Mi=>Mi>=1),new Pe.KX("width","thickness",Mi=>7+3*Mi),new Pe.KX("height","thickness",Mi=>7+3*Mi),new Pe.KX("segmentOffset","thickness",Mi=>new Pe.E9(-15,4+1.5*Mi))),ee(Pe.bn,{segmentIndex:0,segmentOffset:new Pe.E9(15,-6),segmentOrientation:Pe.rU.OrientMinus90,alignmentFocus:Pe.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Pe.KX("fill","color"),new Pe.KX("visible","dir",Mi=>Mi===2),new Pe.KX("width","thickness",Mi=>7+3*Mi),new Pe.KX("height","thickness",Mi=>7+3*Mi),new Pe.KX("segmentOffset","thickness",Mi=>new Pe.E9(-15,4+1.5*Mi))),ee(Pe.al,{alignmentFocus:new Pe.z6(0,1,-4,0),editable:!0},new Pe.KX("text").makeTwoWay(),new Pe.KX("stroke","color"))),xe.current.linkTemplate.selectionAdornmentTemplate=ee(Pe.uz,ee(Pe.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Zi(2)},new Pe.KX("pathPattern","thickness",Zi)),_n({alignmentFocus:new Pe.z6(0,0,-6,-4)}));function Zi(Mi){return ee(Pe.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Mi+4).toString()+" H3"})}function tr(Mi){var Vi="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Mi===0?Vi="M0 0 M16 16 M0 8 L16 8":Mi===2&&(Vi="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),ee(Pe.bn,{geometryString:Vi,margin:2,background:"transparent",mouseEnter:(Qi,qi)=>qi.background="dodgerblue",mouseLeave:(Qi,qi)=>qi.background="transparent",click:Ke("dir",Mi),contextClick:Ke("dir",Mi)})}function zi(Mi){var Vi=(Qi,qi)=>{Qi.handled=!0,Qi.diagram.model.commit(cr=>{var Ar=qi.part.adornedPart;cr.set(Ar.data,Mi?"toSpot":"fromSpot",Pe.z6.stringify(Pe.z6.AllSides)),(Mi?Ar.toNode:Ar.fromNode).invalidateConnectedLinks()})};return ee(Pe.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Qi,qi)=>qi.background="dodgerblue",mouseLeave:(Qi,qi)=>qi.background="transparent",click:Vi,contextClick:Vi})}function wn(Mi,Vi){var Qi=0,qi=Pe.z6.RightSide;Mi.equals(Pe.z6.Top)?(Qi=270,qi=Pe.z6.TopSide):Mi.equals(Pe.z6.Left)?(Qi=180,qi=Pe.z6.LeftSide):Mi.equals(Pe.z6.Bottom)&&(Qi=90,qi=Pe.z6.BottomSide),Vi||(Qi-=180);var cr=(Ar,ji)=>{Ar.handled=!0,Ar.diagram.model.commit(er=>{var Hi=ji.part.adornedPart;er.set(Hi.data,Vi?"toSpot":"fromSpot",Pe.z6.stringify(qi)),(Vi?Hi.toNode:Hi.fromNode).invalidateConnectedLinks()})};return ee(Pe.bn,{alignment:Mi,alignmentFocus:Mi.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Qi,background:"transparent",mouseEnter:(Ar,ji)=>ji.background="dodgerblue",mouseLeave:(Ar,ji)=>ji.background="transparent",click:cr,contextClick:cr})}xe.current.linkTemplate.contextMenu=ee("ContextMenu",ni(),gi(),ee("ContextMenuButton",ee(Pe.s_,"Horizontal",tr(0),tr(1),tr(2))),ee("ContextMenuButton",ee(Pe.s_,"Horizontal",ee(Pe.s_,"Spot",zi(!1),wn(Pe.z6.Top,!1),wn(Pe.z6.Left,!1),wn(Pe.z6.Right,!1),wn(Pe.z6.Bottom,!1)),ee(Pe.s_,"Spot",{margin:new Pe.Zt(0,0,0,2)},zi(!0),wn(Pe.z6.Top,!0),wn(Pe.z6.Left,!0),wn(Pe.z6.Right,!0),wn(Pe.z6.Bottom,!0)))));const Rr=`{ "class": "GraphLinksModel",
"nodeDataArray": [
{"text":"Find Problem","key":-9,"loc":"-20 -140","color":"#3358ff","fill":"white","figure":"Procedure","thickness":3},
{"text":"What do we want?","key":-10,"loc":"-65 -324.305","group":-16,"figure":"Ellipse","fill":"white"},
{"text":"What do our users want?","key":-11,"loc":"105 -334.305","group":-20,"figure":"Ellipse","fill":"#ffffff","color":"black"},
{"text":"Meetings","key":-12,"loc":"-65 -444.305","group":-16,"figure":"TriangleDown","fill":"#ffffff"},
{"text":"Reviews","key":-13,"loc":"105 -454.305","group":-20,"figure":"TriangleDown","fill":"#ffffff","color":"black"},
{"text":"Can we solve it?","key":-14,"loc":"190 -140","color":"#7d33ff","fill":"#ffffff","figure":"Diamond","size":"140 80","thickness":3},
{"isGroup":true,"text":"Internal","key":-16,"loc":"-65 -384.305","fill":"#d5ebff","dash":null,"thickness":1,"group":-22},
{"isGroup":true,"text":"External","key":-20,"loc":"105 -394.305","fill":"#d5ebff","dash":null,"thickness":1,"group":-22},
{"isGroup":true,"text":"Sources","key":-22,"loc":"20 -400","fill":"#a5d2fa","dash":[4,4],"color":"#3358ff"}
],
"linkDataArray": [
{"from":-12,"to":-10,"points":[-65,-414.305,-65,-404.305,-65,-384.305,-65,-384.305,-65,-364.305,-65,-354.305],"dash":null,"dir":1},
{"from":-13,"to":-11,"points":[105,-424.305,105,-414.305,105,-394.305,105,-394.305,105,-374.305,105,-364.305],"dash":null,"color":"#000000","dir":1},
{"from":-10,"to":-9,"points":[-65,-294.305,-65,-284.305,-65,-232.1525,-40,-232.1525,-40,-180,-40,-170],"dir":2,"dash":[4,4]},
{"from":-11,"to":-9,"points":[105,-304.305,105,-294.305,105,-237.1525,0,-237.1525,0,-180,0,-170],"dash":[4,4],"dir":2},
{"from":-9,"to":-14,"points":[40,-150,58,-150,80,-150,80,-153.33333333333331,102,-153.33333333333331,120,-153.33333333333331],"dir":1,"color":"#3358ff"},
{"from":-14,"to":-9,"points":[190,-100,190,-90,-20,-90,-20,-95,-20,-100,-20,-110],"fromSpot":"BottomSide","toSpot":"BottomSide","text":"No","color":"#ff3333","thickness":2,"dir":1},
{"from":-9,"to":-14,"points":[40,-130,58,-130,80,-130,80,-126.66666666666666,102,-126.66666666666666,120,-126.66666666666666]}
]}`;var Lr=["Rectangle","Square","RoundedRectangle","Border","Ellipse","Circle","TriangleRight","TriangleDown","TriangleLeft","TriangleUp","Triangle","Diamond","LineH","LineV","None","BarH","BarV","MinusLine","PlusLine","XLine","LineRight","LineDown","LineLeft","LineUp"];function Hr(Mi){return console.log("shapeName:",Mi),Lr.indexOf(Mi)>=0}var dn=new Pe.YI($n.current,{maxSelectionCount:1,linkTemplate:ee(Pe.rU,{locationSpot:Pe.z6.Center,selectionAdornmentTemplate:ee(Pe.uz,"Link",{locationSpot:Pe.z6.Center},ee(Pe.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),ee(Pe.bn,{toArrow:"Standard",stroke:null}))},{routing:Pe.rU.AvoidsNodes,curve:Pe.rU.JumpOver,corner:5,toShortLength:4},new Pe.KX("points"),ee(Pe.bn,{isPanelMain:!0,strokeWidth:2}),ee(Pe.bn,{toArrow:"Standard",stroke:null})),model:new Pe.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...Pe.bn.getFigureGenerators().toArray().map(Mi=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Mi.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return xe.current.addDiagramListener("TextEdited",function(Mi){var Vi;const Qi=Mi.subject.part;var qi=(Vi=document.activeElement)==null?void 0:Vi.value;typeof qi=="string"&&qi.trim()===""&&xe.current.model.commit(function(cr){cr.set(Qi.data,"text","\u672A\u547D\u540D"),xe.current.commandHandler.stopCommand()},"increment")}),dn.nodeTemplate=ee(Pe.NB,"Auto",{locationSpot:Pe.z6.Center},new Pe.KX("location","location",Pe.E9.parse).makeTwoWay(Pe.E9.stringify),ee(Pe.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 Pe.KX("stroke").makeTwoWay(),new Pe.KX("fill").makeTwoWay(),new Pe.KX("figure")),ee(Pe.al,{margin:new Pe.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new Pe.$u(16,16),maxSize:new Pe.$u(10,NaN),textAlign:"center",editable:!0},new Pe.KX("key").makeTwoWay())),setTimeout(()=>{xe.current.grid=ee(Pe.s_,"Grid",ee(Pe.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),ee(Pe.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),xe.current.grid.visible=!0,xe.current.grid.gridCellStroke="darkgray",xe.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=xe.current,xe.current}const hi=()=>$t(this,null,function*(){var ee,nn=xe.current.makeImage();const Vn=yield(0,wt.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:nn.src,file_data:JSON.stringify({login:(ee=(0,Kt.eY)())==null?void 0:ee.login,data:JSON.parse(xe.current.model.toJson())})}});ye({src:Vn.url})});return(0,yt.useEffect)(()=>(setTimeout(()=>{Te()},500),fe(oi+1),()=>{xe.current=null}),[]),kt.createElement("div",{ref:Sn,className:"body-overflow-initial"},kt.createElement(qn.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!oi,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:kt.createElement(Dn.Z,null,kt.createElement(At.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),kt.createElement(At.Z,{onClick:()=>{var ee,nn,Vn=xe.current.selection.first();if(ui.current=!ui.current,document.activeElement&&Vn){let _n=(nn=(ee=document.activeElement)==null?void 0:ee.value)==null?void 0:nn.trim();typeof _n=="string"&&xe.current.model.commit(function(Ke){Ke.set(Vn.data,"text",_n||"\u672A\u547D\u540D"),xe.current.commandHandler.stopCommand()},"increment")}fe(oi+1)}},kt.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:ve},kt.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative",display:ui.current?"none":"block"},className:Tt.flowChartWrp},kt.createElement("div",{style:{display:"flex",height:"100%"}},kt.createElement("div",{style:{width:"300px",height:"100%"}},kt.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),kt.createElement("div",{style:{height:"calc(100% - 50px)"},className:Tt.myPaletteDiv,ref:$n})),kt.createElement("div",{style:{flex:1,position:"relative"}},kt.createElement("div",{ref:Kn,style:{height:"80vh"}}))),kt.createElement("div",{className:"tr"},kt.createElement(we.ZP,{size:"large",onClick:hi,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var Ie=un,Ue=Dt(47889),ne=Dt(71051);const Oe=Ue.ZP.Group,Ne={margin:"0 8px"};var Xe=({callback:ve,onCancel:ye})=>{function xe(Kn){ve(Kn)}return yt.createElement(Jt.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:xe},yt.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},yt.createElement("span",{style:Ne},"\u5355\u5143\u683C\u6570\uFF1A"),yt.createElement("span",{style:Ne},"\u884C\u6570"),yt.createElement(Jt.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},yt.createElement(ne.Z,null)),yt.createElement("span",{style:Ne},"\u5217\u6570"),yt.createElement(Jt.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},yt.createElement(ne.Z,null))),yt.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},yt.createElement("span",{style:Ne},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),yt.createElement(Jt.default.Item,{name:"align"},yt.createElement(Oe,null,yt.createElement(Ue.ZP,{value:"default"},yt.createElement("i",{className:"fa fa-align-justify"})),yt.createElement(Ue.ZP,{value:"left"},yt.createElement("i",{className:"fa fa-align-left"})),yt.createElement(Ue.ZP,{value:"center"},yt.createElement("i",{className:"fa fa-align-center"})),yt.createElement(Ue.ZP,{value:"right"},yt.createElement("i",{className:"fa fa-align-right"}))))),yt.createElement("div",{className:"flex-container flex-end"},yt.createElement(we.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),yt.createElement(we.ZP,{type:"ghost",onClick:ye},"\u53D6\u6D88")))},En=Dt(71411),In=Dt(84072),An=Dt.n(In),ze=(0,yt.forwardRef)(({use3d:ve,width:ye,height:xe,callback:Kn,showSaveButton:$n},ui)=>{const Sn=(0,yt.useRef)(),oi=(0,yt.useRef)(),[fe,Te]=(0,yt.useState)(!1),hi=(0,yt.useRef)({id:Sn,appName:"graphing",width:ye||1e3,height:xe||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,yt.useEffect)(()=>{oi.current=new(An())(hi.current,!0),window.onload=function(){oi.current.inject("applet_container")}},[]);const ee=()=>{var nn=window.ggbApplet.getPNGBase64(1,!0,72);return Kn&&Kn(nn),nn};return(0,yt.useEffect)(()=>{hi.current.appName=fe?"3D":"graphing",oi.current.inject("applet_container")},[fe]),(0,yt.useEffect)(()=>{Te(ve)},[ve]),(0,yt.useImperativeHandle)(ui,()=>({getImgData:ee})),yt.createElement(yt.Fragment,null,yt.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Sn}),yt.createElement(Dn.Z,{align:"middle"},yt.createElement(At.Z,{flex:1},yt.createElement(En.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:fe,onChange:nn=>Te(nn)})),yt.createElement(At.Z,null,yt.createElement(we.ZP,{size:"large",onClick:ee,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),qe=Dt(53267),pn=Dt(6767);const bn="link",Yn="upload-image",ti="add-flowchart",yi="draw-image",vn="add-flowchart",Pi="code-block",Ki="add-table",pr="------------",or={default:pr,left:`:${pr}`,center:`:${pr}:`,right:`${pr}:`};var ir=Dt(47458);function vr(){}let ur=0;const hr=1e4,Ji="\u2581",xr="@\u2581\u2581@",Ct="@\u2581@",yn=`
**\u6A21\u677F\u6807\u9898**
\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`,Zn=["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 dr(ve){return/^\d+$/.test(ve)?`${ve}px`:ve}const Oi=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Nn={[Oi+"-B"]:"bold",[Oi+"-I"]:"italic"},Cn={[bn]:"\u6DFB\u52A0\u94FE\u63A5",[Pi]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Yn]:"\u6DFB\u52A0\u56FE\u7247",[yi]:"\u6DFB\u52A0\u753B\u56FE",[ti]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Ki]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var kn=({defaultValue:ve="",onChange:ye,width:xe="100%",height:Kn=400,miniToolbar:$n=!1,isFocus:ui=!1,watch:Sn,insertTemp:oi,mode:fe="markdown",id:Te="markdown-editor-id",showResizeBar:hi=!1,noStorage:ee=!1,showNullButton:nn=!1,showNullProgramButton:Vn=!1,hidetoolBar:_n=!1,fullScreen:Ke=!1,onBlur:Gn,onCMBeforeChange:ai,onFullScreen:ni,className:ki="",disablePaste:xi=!1,disabled:gi=!1,disabledFill:Li=!1,placeholder:Zi="",values:tr="",extraUse:zi})=>{const[wn,Rr]=(0,yt.useState)(null),[Lr,Hr]=(0,yt.useState)(ve),[dn,Mi]=(0,yt.useState)(Sn),[Vi,Qi]=(0,yt.useState)(Ke),[qi,cr]=(0,yt.useState)(""),[Ar,ji]=(0,yt.useState)(0),[er,Hi]=(0,yt.useState)(Kn),[cn,lr]=(0,yt.useState)(!1),[xn,wi]=(0,yt.useState)(0),[Xi,Sr]=(0,yt.useState)(0),ao=(0,yt.useRef)(),co=(0,yt.useRef)(),qr=(0,yt.useRef)(),io=(0,yt.useRef)();(0,yt.useEffect)(()=>{const Et=window.scrollY||window.pageYOffset;Hr(tr),wn==null||wn.setValue(tr),window.scrollTo(0,Et)},[tr]),(0,yt.useEffect)(()=>{ni==null||ni(Vi)},[Vi]),(0,yt.useEffect)(()=>{if(ao.current){let Et=function(zt,ae){var de;if(xi){ae.preventDefault();return}const je=ae.clipboardData;if(je){const Ye=je.types.toString(),tn=je.items;if(Ye==="Files"||je.types.indexOf("Files")>-1){if(ae.preventDefault(),fe=="stex")return;try{let Ln=tn[1];((de=tn[0])==null?void 0:de.kind)==="file"&&(Ln=tn[0]);const Bn=Ln.getAsFile(),Pn=Bn.name.split(".").pop();(0,ln.I)(Bn,ri=>{var Si,ue,Un;ri.id?((Si=Bn==null?void 0:Bn.type)==null?void 0:Si.indexOf("image"))>-1?qt.replaceSelection(`<img width="100%" src="/api/attachments/${ri.id}?type=${ri.content_type})" alt="" />`):((ue=Bn==null?void 0:Bn.type)==null?void 0:ue.indexOf("video"))>-1?qt.replaceSelection(`<video width="100%" controls src="/api/attachments/${ri.id}"></video>`):((Un=Bn==null?void 0:Bn.type)==null?void 0:Un.indexOf("pdf"))>-1?qt.replaceSelection(`<a href="/api/attachments/${ri.id}?type=${Bn.type}&disposition=inline" target="_blank">${Bn.name}</a>`):Zn.includes(Pn)?qt.replaceSelection(`<a href="/api/attachments/${ri.id}?type=office&disposition=inline" target="_blank">${Bn.name}</a>`):qt.replaceSelection(`[${Bn.name}](/api/attachments/${ri.id}?type=${ri.content_type})`):(ri==null?void 0:ri.status)===401&&(document.location.href="/user/login")})}catch(Ln){pn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const qt=re().fromTextArea(ao.current,{mode:fe,lineNumbers:!$n,lineWrapping:!0,value:ve,autoCloseTags:!0,autoCloseBrackets:!0});return qt.on("keyup",function(zt,ae){ae.keyCode===8&&(zt.getValue()==""?qt.setOption("placeholder",Zi):qt.setOption("placeholder",null))}),qt.on("keydown",function(zt,ae){if(ae.keyCode===8){var de=Rn(zt);de&&ae.preventDefault()}}),ui&&qt.focus(),qt.on("paste",Et),gi&&qt.on("beforeChange",function(zt,ae){(ae.origin==="paste"||ae.origin==="+input")&&ae.cancel()}),Rr(qt),()=>{qt.off("paste",Et)}}},[]);const $e=(0,yt.useCallback)(()=>{if(co.current)try{}catch(Et){console.log(Et,"---- to set md editor body height")}},[er,co,Vi]);(0,yt.useEffect)(()=>{function Et(){let qt=new Fe.Z(zt=>{for(let ae of zt)(ae.target.offsetHeight>0||ae.target.offsetWidth>0)&&($e(),wn.setSize("100%","100%"),wn.refresh())});return qt.observe(ao.current.parentElement),qt}if(wn){const qt=Et();return()=>{var zt,ae;(zt=ao.current)!=null&&zt.parentElement&&qt.unobserve((ae=ao.current)==null?void 0:ae.parentElement)}}},[wn,$e]),(0,yt.useEffect)(()=>{if(wn){let Et=[];for(const[qt,zt]of Object.entries(Nn)){let ae={[qt]:()=>{on(zt)}};Et.push(ae),wn.addKeyMap(ae)}return()=>{for(let qt of Et)wn.removeKeyMap(qt)}}},[wn]),(0,yt.useEffect)(()=>{Ke!==Vi&&Qi(Ke)},[Ke]),(0,ir.Z)(()=>{if(!ee&&Ar>0){let Et=new Date().getTime(),qt=window.sessionStorage.getItem(Te);Et>=Ar+hr&&(!qt||qt!==Lr)&&(window.sessionStorage.setItem(Te,Lr),lr(!0))}},hr),(0,yt.useEffect)(()=>{Mi(Sn)},[wn,Sn]),(0,yt.useEffect)(()=>{wn&&ui&&wn.focus()},[wn,ui]),(0,yt.useEffect)(()=>{if(dn&&wn){let Et=function(zt){let ae=zt.target;if(io.current){let de=ae.scrollTop/ae.scrollHeight;io.current.scrollTop=io.current.scrollHeight*de}};const qt=wn.getScrollerElement();return qt.addEventListener("scroll",Et),()=>{qt.removeEventListener("scroll",Et)}}},[wn,dn]),(0,yt.useEffect)(()=>{if(wn&&ai){let Et=function(qt,zt){ai(qt,zt)};return wn.on("beforeChange",Et),()=>{wn.off("beforeChange",Et)}}},[wn,ai]),(0,yt.useEffect)(()=>{if(wn&&Gn){let Et=function(){Gn(wn.getValue())};return wn.on("blur",Et),()=>{wn.off("blur",Et)}}},[wn,Gn]);function Rn(Et,qt){var zt=Et.getDoc(),ae=zt.getCursor(),de=zt.getLine(ae.line),je=de.charAt(ae.ch-1),Ye=de.lastIndexOf("@\u2581@",ae.ch),tn=de.lastIndexOf("@\u2581\u2581@",ae.ch),Ln=Ye>tn?Ye:tn,Bn=Ye>tn?3:4;if(xr.indexOf(je)===-1)return null;if(console.log("change1:",qt,Et,de,ae,Ln,Ye,tn,je),Ln>=0&&ae.ch-Ln<5){var Pn=Ln+Bn;return zt.replaceRange("",{line:ae.line,ch:Ln},{line:ae.line,ch:Pn}),{line:ae.line,ch:Pn}}return null}(0,yt.useEffect)(()=>{if(wn){let Et=function(qt,zt){const ae=qt.getValue();Hr(ae),ji(new Date().getTime()),qt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),ye&&(Vn?ye(ae,ke(ae)):ye(ae))};return wn.on("change",Et),()=>{wn.off("change",Et)}}},[wn,ye]),(0,yt.useEffect)(()=>{if(wn)if(ve==null)wn.setValue(""),Hr("");else{const Et=window.scrollY||window.pageYOffset;ve!==wn.getValue()&&(wn.setValue(ve),Hr(ve),wn.setCursor(gi?1:wn.lineCount(),0),window.scrollTo(0,Et))}},[wn,ve]);const on=(0,yt.useCallback)(Et=>{const qt=wn.getCursor(),zt=wn.getSelection();let ae=zt.split(`
`);switch(Et){case"bold":return wn.replaceSelection("**"+zt+"**"),zt===""&&wn.setCursor(qt.line,qt.ch+2),wn.focus();case"italic":return wn.replaceSelection("*"+zt+"*"),zt===""&&wn.setCursor(qt.line,qt.ch+1),wn.focus();case"code":return wn.replaceSelection("`"+zt+"`"),zt===""&&wn.setCursor(qt.line,qt.ch+1),wn.focus();case"inline-latex":return cr("inline-latex"),wn.focus();case"latex":return wn.replaceSelection("```latex\n"+zt+"\n```"),wn.setCursor(qt.line+1,zt.length+1),wn.focus();case"line-break":return wn.replaceSelection(`<br/>
`),wn.focus();case"list-ul":return zt===""?wn.replaceSelection("- "+zt):wn.replaceSelection(ae.map(de=>de===""?"":`- ${de}`).join(`
`)),wn.focus();case"list-ol":return zt===""?wn.replaceSelection("1. "+zt):wn.replaceSelection(ae.map((de,je)=>de===""?"":`${je+1}. ${de}`).join(`
`)),wn.focus();case"add-null-ch":return zt===""&&wn.setCursor(qt.line,qt.ch),wn.replaceSelection(Ji),wn.focus();case"add-signal":return zt===""&&wn.setCursor(qt.line,qt.ch),wn.replaceSelection(Ct),wn.focus();case"add-multiple":return zt===""&&wn.setCursor(qt.line,qt.ch),wn.replaceSelection(xr),wn.focus();case"inster-template-1":return zt===""&&wn.setCursor(qt.line,qt.ch),wn.replaceSelection(yn),wn.focus();case"eraser":return wn.setValue(""),wn.focus();case"trigger-watch":return Mi(!dn),wn.focus();case"trigger-full-screen":return Qi(!Vi),wn.focus();case bn:cr(bn);return;case Pi:cr(Pi);return;case Yn:cr(Yn);return;case yi:cr(yi);return;case"maths-latex":cr("maths-latex");return;case ti:cr(ti);return;case Ki:cr(Ki);return;default:throw new Error}},[wn,dn,Vi]),Bt=(0,yt.useCallback)((Et,qt)=>{var zt,ae,de,je,Ye,tn;switch(cr(""),qi){case bn:const{title:Si,link:ue}=Et;return wn.replaceSelection(`[${Si}](${ue})`),wn.focus();case Pi:const{language:Un,content:si}=Et;return wn.replaceSelection(["```"+Un,si,"```"].join(`
`)),wn.focus();case"maths-latex":for(var Ln=atob(Et),Bn=new Uint8Array(Ln.length),Pn=0;Pn<Ln.length;Pn++)Bn[Pn]=Ln.charCodeAt(Pn);var ri=new Blob([Bn],{type:"image/png"});(0,ln.I)(ri,Fr=>{Fr.id?wn.replaceSelection(`![,](/api/attachments/${Fr.id}?type=${Fr.content_type})`):(Fr==null?void 0:Fr.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":wn.replaceSelection("`$$"+Et+"$$`");break;case Yn:case yi:case vn:const{src:zn,alt:ci}=Et,vi=qt,Ti=(de=(ae=(zt=vi==null?void 0:vi.name)==null?void 0:zt.split("."))==null?void 0:ae.pop)==null?void 0:de.call(ae);return((je=vi==null?void 0:vi.type)==null?void 0:je.indexOf("image"))>-1||!(vi!=null&&vi.type)?vi!=null&&vi.align||vi!=null&&vi.width?wn.replaceSelection(`<p style="text-align:${vi.align||"initial"}"><img width="${vi.width?vi.width+"%":"initial"}" src="${zn}" alt="${ci||""}" /></p>`):wn.replaceSelection(`<img width="100%" src="${zn}" alt="${ci||""}" />`):((Ye=vi==null?void 0:vi.type)==null?void 0:Ye.indexOf("video"))>-1?wn.replaceSelection(`<video width="100%" controls src="${zn}"></video>`):((tn=vi==null?void 0:vi.type)==null?void 0:tn.indexOf("pdf"))>-1?wn.replaceSelection(`<a href="${zn}?type=${vi.type}&disposition=inline" target="_blank">${vi.name}</a>`):Zn.includes(Ti)?wn.replaceSelection(`<a href="${zn}?type=office&disposition=inline" target="_blank">${vi.name}</a>`):wn.replaceSelection(`[${vi.name}](${zn})`),wn.focus();case Ki:const{row:Fi,col:Ii,align:Bi}=Et;let gr=`
`;for(let Fr=0;Fr<Fi;Fr++){let zr=[],Zr=[];for(let Di=0;Di<Ii;Di++)Fr===1&&Zr.push(or[Bi]),zr.push(" ");Fr===1&&(gr+=`| ${Zr.join(" | ")} |
`),gr+=`| ${zr.join(Ii===1?"":" | ")} |
`}return wn.replaceSelection(gr+`
`),wn.focus();default:throw new Error}},[wn,qi]),Zt=(0,yt.useMemo)(()=>{switch(qi){case bn:return yt.createElement(ii,{callback:Bt,onCancel:Gt});case Pi:return yt.createElement(jn.Z,{callback:Bt,onCancel:Gt});case Yn:return yt.createElement(ln.Z,{callback:Bt,onCancel:Gt});case ti:return yt.createElement(Ie,{callback:Bt,onCancel:Gt});case Ki:return yt.createElement(Xe,{callback:Bt,onCancel:Gt});case"maths-latex":return yt.createElement(ze,{showSaveButton:!0,callback:Bt});case"inline-latex":return yt.createElement(qe.Z,{showSaveButton:!0,callback:Bt});default:return null}},[qi]);function Gt(){cr("")}(0,yt.useEffect)(()=>{if(qr.current){let Et=function(Ye){de=!0,je=Ye.pageY},qt=function(){de=!1},zt=function(Ye){if(de){let tn=Ye.pageY-je;tn<0&&(tn=0),tn>300&&(tn=300);let Ln=Kn+tn+"px";Hi(Ln)}},ae=qr.current,de=!1,je=0;return ae.addEventListener("mousedown",Et),document.addEventListener("mousemove",zt),document.addEventListener("mouseup",qt),()=>{ae.removeEventListener("mousedown",Et),document.removeEventListener("mousemove",zt),document.removeEventListener("mouseup",qt)}}},[wn,qr]),(0,yt.useEffect)(()=>{Hi(Kn)},[Kn]);const he=dr(xe),Be=dr(er),rn={width:he,height:Be},ie=(0,yt.useMemo)(()=>{if(Ar){let Et=new Date(Ar),qt=Et.getHours(),zt=Et.getMinutes(),ae=Et.getSeconds();return qt=qt<10?"0"+qt:qt,zt=zt<10?"0"+zt:zt,ae=ae<10?"0"+ae:ae,`${qt}:${zt}:${ae}`}return 0},[Ar]),ke=Et=>{const qt=[];if(Vn){let zt=-1;Et=Et.replace(/(@▁▁@|@▁@)/g,function(ae,de,je){qt.push({multiLine:ae!==Ct})})}return qt};function He(){window.sessionStorage.removeItem(Te),lr(!1),ji(0)}function _e(){lr(!1),ji(0),wn.setValue(window.sessionStorage.getItem(Te))}(0,yt.useEffect)(()=>{Cn[qi]&&qi!==yi&&qi!==ti&&setTimeout(()=>{const Et=document.getElementsByClassName("markdown-popup-form")[0],qt=window.innerWidth/2-Et.offsetWidth/2,zt=window.innerHeight/2-Et.offsetHeight/2;wi(qt),Sr(zt)},0)},[qi]);const hn=Et=>{Et.preventDefault();const qt=Et.clientX-xn,zt=Et.clientY-Xi;document.body.onmousemove=ae=>{let de=ae.clientX-qt,je=ae.clientY-zt;const Ye=document.getElementsByClassName("markdown-popup-form")[0],tn=window.innerWidth-Ye.offsetWidth,Ln=window.innerHeight-Ye.offsetHeight;de=Math.max(0,Math.min(de,tn)),je=Math.max(0,Math.min(je,Ln)),mi(ae.clientX,ae.clientY,qt,zt)&&(wi(de),Sr(je))},document.body.onmouseup=function(){document.body.onmousemove=null}},mi=(Et,qt,zt,ae)=>{const de=document.body.clientHeight,je=document.body.clientWidth;return Et<20&&zt>Et||Et>je-20&&zt<Et||qt<20&&ae>qt||qt>de-20&&ae<qt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return yt.createElement(yt.Fragment,null,yt.createElement("div",{className:"markdown-editor-wrapper",ref:co},yt.createElement("div",{className:`markdown-editor-container ${ki} ${dn?"on-preview":""} ${$n?"mini":""} ${Vi?"full-screen":""}`,style:rn},yt.createElement(se,{insertTemp:oi,watch:dn,fullScreen:Vi,showNullButton:nn,showNullProgramButton:Vn,onActionCallback:on,hidetoolBar:_n,extraUse:zi}),yt.createElement("div",{className:"markdown-editor-body"},yt.createElement("div",{className:"codemirror-container"},yt.createElement("textarea",{ref:ao,placeholder:Zi})),dn?yt.createElement("div",{ref:io,className:"preview-container"},fe==="stex"&&yt.createElement(Yt,{value:Lr}),fe!=="stex"&&yt.createElement(Re.Z,{disabledFill:Li,showProgramFill:Vn,value:Lr})):null))),hi?yt.createElement("a",{ref:qr,className:"editor-resize"}):null,qi===yi&&yt.createElement(On,{callback:Bt,onCancel:Gt}),qi===ti&&yt.createElement(Ie,{callback:Bt,onCancel:Gt}),yt.createElement(Vt.Z,null,Cn[qi]&&qi!==yi&&qi!==ti?yt.createElement(qn.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:xn,top:Xi},title:yt.createElement("div",{style:{cursor:"move"},onMouseDown:hn},Cn[qi]),open:!0,onCancel:Gt,footer:null,destroyOnClose:!0,width:qi===ti?"1200px":null,height:qi===ti?"80vh":null,className:"markdown-popup-form"},Zt):null))}},35944:function(Jn,pi,Dt){"use strict";Dt.d(pi,{Z:function(){return It},I:function(){return se}});var yt=Dt(28284),te=Dt(6767),re=Dt(37568),Fe=Dt(77736),be=Dt(71051),jt=Dt(47889),ge=Dt(99571),Ze=Dt(77665),Ce=Dt(59301),Mt=Dt(59301),Re=Object.defineProperty,Yt=Object.defineProperties,We=Object.getOwnPropertyDescriptors,Nt=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,dt=(Vt,Jt,Ee)=>Jt in Vt?Re(Vt,Jt,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):Vt[Jt]=Ee,lt=(Vt,Jt)=>{for(var Ee in Jt||(Jt={}))nt.call(Jt,Ee)&&dt(Vt,Ee,Jt[Ee]);if(Nt)for(var Ee of Nt(Jt))et.call(Jt,Ee)&&dt(Vt,Ee,Jt[Ee]);return Vt},gt=(Vt,Jt)=>Yt(Vt,We(Jt));const{useForm:mt}=yt.default,St={width:280,marginRight:10},bt={labelCol:{span:5},wrapperCol:{span:19}};var It=({callback:Vt,onCancel:Jt})=>{const[Ee]=mt();let we=(0,Ce.useRef)();function De(Fn){we.current.width=Ee.getFieldValue("width"),we.current.align=Ee.getFieldValue("align"),Vt(Fn,we.current)}function Le(Fn,fn){if(Fn.status===-1){te.ZP.error(Fn.message);return}Ee.setFieldsValue({src:`/api/attachments/${Fn.id}`,type:fn.type})}function sn(Fn){let fn=Fn.target.files[0];we.current=fn,se(fn,Le)}return Mt.createElement(yt.default,gt(lt({form:Ee},bt),{className:"upload-image-panel",onFinish:De,style:{width:470,overflow:"hidden"}}),Mt.createElement(yt.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Mt.createElement("div",{className:"flex-container"},Mt.createElement(yt.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},Mt.createElement(re.default,{style:St})),Mt.createElement(Ht,{onFileChange:sn}))),Mt.createElement(yt.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Mt.createElement(re.default,{style:{width:264}})),Mt.createElement(yt.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Mt.createElement(Fe.Z,null,Mt.createElement(yt.default.Item,{name:"width",style:{margin:0}},Mt.createElement(be.Z,{style:{width:264}})),Mt.createElement("span",{className:"ml8"},"%"))),Mt.createElement(yt.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Mt.createElement(jt.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),Mt.createElement("aside",null,Mt.createElement(yt.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Mt.createElement(ge.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Mt.createElement(ge.ZP,{type:"default",onClick:Jt},"\u53D6\u6D88"))))};function Ht({onFileChange:Vt}){return Mt.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Mt.createElement("input",{type:"file",onChange:Vt}))}function se(Vt,Jt){if(!Vt)throw new String("\u6CA1\u6709\u6587\u4EF6");let Ee=new FormData;Ee.append("editormd-image-file",Vt),Ee.append("file_param_name","editormd-image-file"),Ee.append("byxhr","true");var we=new window.XMLHttpRequest;we.withCredentials=!0,we.addEventListener("load",function(De){Jt(JSON.parse(De.target.responseText),Vt)},!1),we.addEventListener("error",function(De){console.error(De)},!1),we.open("POST",`${Ze.KI}/api/attachments.json`),we.send(Ee)}},51498:function(Jn,pi,Dt){"use strict";Dt.d(pi,{Z:function(){return re}});var yt=Dt(59301),te=Dt(4676);class re extends yt.Component{constructor(be){super(be);const jt=window.document;this.node=jt.createElement("div"),jt.body.appendChild(this.node)}render(){const{children:be}=this.props;return(0,te.createPortal)(be,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},58531:function(Jn,pi,Dt){"use strict";Dt.d(pi,{SV:function(){return un},ZP:function(){return $t}});var yt=Dt(59301),te=Dt(76374);const re={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},Fe={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(`
`)},{label:"System.out.println",content:["System.out.println($0)"].join(`
`)},{label:"System.out.print",content:["System.out.print($0)"].join(`
`)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},be={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
`)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(`
`)},{label:"if",content:["if () {"," $0","}"].join(`
`)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(`
`)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(`
`)},{label:"using namespace std;",content:["using namespace std;"].join(`
`)},{label:"include <iostream>",content:["#include <iostream>"].join(`
`)},{label:"include <vector>",content:["#include <vector>"].join(`
`)},{label:"include <cstdio>",content:["#include <cstdio>"].join(`
`)},{label:"include <cstring>",content:["#include <cstring>"].join(`
`)},{label:"include <sstream>",content:["#include <sstream>"].join(`
`)},{label:"include <fstream>",content:["#include <fstream>"].join(`
`)},{label:"include <map>",content:["#include <map>"].join(`
`)},{label:"include <string>",content:["#include <string>"].join(`
`)},{label:"include <cmath>",content:["#include <cmath>"].join(`
`)}]},jt={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(`
`)}]},ge={keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],quickKey:[{label:"println",content:["println($0)"].join(`
`)}]};var Ze=Dt(53184),Ce=Dt.n(Ze),Mt=Object.defineProperty,Re=Object.defineProperties,Yt=Object.getOwnPropertyDescriptors,We=Object.getOwnPropertySymbols,Nt=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable,et=(Ie,Ue,ne)=>Ue in Ie?Mt(Ie,Ue,{enumerable:!0,configurable:!0,writable:!0,value:ne}):Ie[Ue]=ne,dt=(Ie,Ue)=>{for(var ne in Ue||(Ue={}))Nt.call(Ue,ne)&&et(Ie,ne,Ue[ne]);if(We)for(var ne of We(Ue))nt.call(Ue,ne)&&et(Ie,ne,Ue[ne]);return Ie},lt=(Ie,Ue)=>Re(Ie,Yt(Ue)),gt=(Ie,Ue,ne)=>new Promise((Oe,Ne)=>{var Xe=An=>{try{In(ne.next(An))}catch(en){Ne(en)}},En=An=>{try{In(ne.throw(An))}catch(en){Ne(en)}},In=An=>An.done?Oe(An.value):Promise.resolve(An.value).then(Xe,En);In((ne=ne.apply(Ie,Ue)).next())});const mt={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},St=(Ie,Ue)=>Ue.map(ne=>({label:ne,kind:Ie.languages.CompletionItemKind.Keyword,insertText:ne})),bt=Ie=>Object.keys(mt.tables).map(Ue=>({label:Ue,kind:Ie.languages.CompletionItemKind.Variable,insertText:Ue})),It=(Ie,Ue)=>{const ne=mt.tables[Ie];return ne?ne.map(Oe=>({label:Oe,kind:Ue.languages.CompletionItemKind.Field,insertText:Oe})):[]};function Ht(Ie,Ue,ne,Oe,Ne){let Xe=Ue.getWordUntilPosition(ne),En={startLineNumber:ne.lineNumber,endLineNumber:ne.lineNumber,startColumn:Xe.startColumn,endColumn:Xe.endColumn},In=Oe.map(An=>({label:An,kind:Ie.languages.CompletionItemKind.Keyword,insertText:An,insertTextRules:Ie.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:En}));return Ne.map(An=>{In.push(lt(dt({},An),{range:En}))}),In}var se=Ie=>{mt.languages.map(Ne=>(Ie.languages.registerDocumentFormattingEditProvider(Ne,{provideDocumentFormattingEdits(Xe,En,In){return gt(this,null,function*(){const An=Ce()(Xe.getValue(),{indent_size:"2",indent_char:" ",max_preserve_newlines:"2",preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:"0",indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1});return[{range:Xe.getFullModelRange(),text:An}]})}}),Ne));const Ue=be.quickKey.map(Ne=>({label:Ne.label,kind:Ie.languages.CompletionItemKind.Method,insertText:Ne.content,insertTextRules:Ie.languages.CompletionItemInsertTextRule.InsertAsSnippet})),ne=jt.quickKey.map(Ne=>({label:Ne.label,kind:Ie.languages.CompletionItemKind.Method,insertText:Ne.content,insertTextRules:Ie.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Oe=Fe.quickKey.map(Ne=>({label:Ne.label,kind:Ie.languages.CompletionItemKind.Method,insertText:Ne.content,insertTextRules:Ie.languages.CompletionItemInsertTextRule.InsertAsSnippet}));Ie.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(Ne,Xe){var En=Ne.getWordUntilPosition(Xe),In={startLineNumber:Xe.lineNumber,endLineNumber:Xe.lineNumber,startColumn:En.startColumn,endColumn:En.endColumn},An=Ne.getLineContent(Xe.lineNumber).substring(En.startColumn-2,En.endColumn);return{suggestions:[...be.keywords.map(en=>({label:en,kind:Ie.languages.CompletionItemKind.Function,documentation:en,insertText:en,insertTextRules:Ie.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:In})),...be.quickKey.map(en=>({label:en.label,kind:Ie.languages.CompletionItemKind.Function,documentation:en.content,insertText:An.startsWith("#")?en.content.replace(/#/,""):en.content,insertTextRules:Ie.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:In}))]}}}),Ie.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(Ne,Xe){var En=Ne.getWordUntilPosition(Xe),In={startLineNumber:Xe.lineNumber,endLineNumber:Xe.lineNumber,startColumn:En.startColumn,endColumn:En.endColumn};return{suggestions:[...re.keywords.map(An=>({label:An,kind:Ie.languages.CompletionItemKind.Function,documentation:An,insertText:An,insertTextRules:Ie.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:In}))]}}}),Ie.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(Ne,Xe){var En=Ne.getWordUntilPosition(Xe),In={startLineNumber:Xe.lineNumber,endLineNumber:Xe.lineNumber,startColumn:En.startColumn,endColumn:En.endColumn},An=Ne.getLineContent(Xe.lineNumber).substring(En.startColumn-2,En.endColumn);return{suggestions:[...Fe.keywords.map(en=>({label:en,kind:Ie.languages.CompletionItemKind.Function,documentation:en,insertText:en,insertTextRules:Ie.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:In})),...Fe.quickKey.map(en=>({label:en.label,kind:Ie.languages.CompletionItemKind.Function,documentation:en.content,insertText:An.startsWith("#")?en.content.replace(/#/,""):en.content,insertTextRules:Ie.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:In}))]}}}),Ie.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(Ne,Xe){var En=Ne.getWordUntilPosition(Xe),In={startLineNumber:Xe.lineNumber,endLineNumber:Xe.lineNumber,startColumn:En.startColumn,endColumn:En.endColumn},An=Ne.getLineContent(Xe.lineNumber).substring(En.startColumn-2,En.endColumn);return{suggestions:[...ge.keywords.map(en=>({label:en,kind:Ie.languages.CompletionItemKind.Function,documentation:en,insertText:en,insertTextRules:Ie.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:In})),...ge.quickKey.map(en=>({label:en.label,kind:Ie.languages.CompletionItemKind.Function,documentation:en.content,insertText:An.startsWith("#")?en.content.replace(/#/,""):en.content,insertTextRules:Ie.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:In}))]}}}),Ie.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(Ne,Xe){var En=Ne.getWordUntilPosition(Xe),In={startLineNumber:Xe.lineNumber,endLineNumber:Xe.lineNumber,startColumn:En.startColumn,endColumn:En.endColumn},An=Ne.getLineContent(Xe.lineNumber).substring(En.startColumn-2,En.endColumn);return{suggestions:[...jt.keywords.map(en=>({label:en,kind:Ie.languages.CompletionItemKind.Function,documentation:en,insertText:en,insertTextRules:Ie.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:In})),...jt.quickKey.map(en=>({label:en.label,kind:Ie.languages.CompletionItemKind.Function,documentation:en.content,insertText:An.startsWith("#")?en.content.replace(/#/,""):en.content,insertTextRules:Ie.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:In}))]}}})};const Vt="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Jt=Object.defineProperty,Ee=(Ie,Ue,ne)=>Ue in Ie?Jt(Ie,Ue,{enumerable:!0,configurable:!0,writable:!0,value:ne}):Ie[Ue]=ne,we=(Ie,Ue,ne)=>Ee(Ie,typeof Ue!="symbol"?Ue+"":Ue,ne);const De=class Ex{constructor(Ue,ne,Oe){this.placeholder=Ue,this.editor=ne,this.monaco=Oe,ne.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return Ex.ID}getDomNode(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.style.width="max-content",this.domNode.textContent=this.placeholder,this.domNode.style.fontStyle="initial",this.domNode.style.color="#D7D7D7",this.domNode.style.pointerEvents="none",this.editor.applyFontInfo(this.domNode)),this.domNode}getPosition(){return{position:{lineNumber:1,column:1},preference:[this.monaco.editor.ContentWidgetPositionPreference.EXACT]}}dispose(){this.editor.removeContentWidget(this)}};we(De,"ID","editor.widget.placeholderHint");var sn=De,Fn=Dt(96236),fn=Dt(6767),Ge=Dt(25399),an=Dt(89392),Se=Dt(41312),Qt=Dt(56102),mn=Object.defineProperty,ii=Object.defineProperties,jn=Object.getOwnPropertyDescriptors,ln=Object.getOwnPropertySymbols,qn=Object.prototype.hasOwnProperty,Dn=Object.prototype.propertyIsEnumerable,fi=(Ie,Ue,ne)=>Ue in Ie?mn(Ie,Ue,{enumerable:!0,configurable:!0,writable:!0,value:ne}):Ie[Ue]=ne,Ve=(Ie,Ue)=>{for(var ne in Ue||(Ue={}))qn.call(Ue,ne)&&fi(Ie,ne,Ue[ne]);if(ln)for(var ne of ln(Ue))Dn.call(Ue,ne)&&fi(Ie,ne,Ue[ne]);return Ie},On=(Ie,Ue)=>ii(Ie,jn(Ue)),Pe=(Ie,Ue)=>{var ne={};for(var Oe in Ie)qn.call(Ie,Oe)&&Ue.indexOf(Oe)<0&&(ne[Oe]=Ie[Oe]);if(Ie!=null&&ln)for(var Oe of ln(Ie))Ue.indexOf(Oe)<0&&Dn.call(Ie,Oe)&&(ne[Oe]=Ie[Oe]);return ne},Ai=(Ie,Ue,ne)=>new Promise((Oe,Ne)=>{var Xe=An=>{try{In(ne.next(An))}catch(en){Ne(en)}},En=An=>{try{In(ne.throw(An))}catch(en){Ne(en)}},In=An=>An.done?Oe(An.value):Promise.resolve(An.value).then(Xe,En);In((ne=ne.apply(Ie,Ue)).next())});function Xn(Ie){return/^\d+$/.test(Ie)?`${Ie}px`:Ie}function Rt(){}let At=!1;const wt={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python",Scala:"scale",solidity:"sol"};function Tt(Ie=[]){let Ue=Ie;if(Array.isArray(Ie)){for(let ne=0;ne<Ie.length;ne++){let Oe=wt[Ie[ne]];if(Oe)return Oe}return Ue[0]}return wt[Ue]||Ue}let Kt=null;const kt=()=>Ai(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(Ie){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",Ie)}});var $t=Ie=>{var Ue=Ie,{width:ne="100%",height:Oe="100%",value:Ne,language:Xe="javascript",style:En={},options:In={},overrideServices:An={},theme:en="vs-dark",onEditBlur:ze,isCopy:qe=!1,onSave:pn,autoHeight:bn=!1,forbidCopy:Yn=!1,onChange:ti=Rt,editorDidMount:yi=Rt,onFocus:vn=Rt,onBreakPoint:Pi=Rt,breakPointValue:Ki=[],filename:pr="educoder.txt",errorLine:or,errorContent:ir="",highlightLine:vr,openBreakPoint:ur=!1,placeholder:hr="",showMiniMap:Ji=!0}=Ue,xr=Pe(Ue,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder","showMiniMap"]);const Ct=(0,yt.useRef)(),yn=(0,yt.useRef)({}),Zn=(0,yt.useRef)(),dr=(0,yt.useRef)(),sr=(0,yt.useRef)([]),Oi=(0,yt.useRef)(!1),Nn=(0,yt.useRef)(),Cn=(0,yt.useRef)(),kn=(0,yt.useRef)(!1),[ve,ye]=(0,yt.useState)(!1);function xe(){let ai;return Ct.current&&(ai=new te.Z(ni=>{for(let ki of ni)(ki.target.offsetHeight>0||ki.target.offsetWidth>0)&&yn.current.instance.layout()}),ai.observe(Ct.current)),ai}function Kn(){fn.ZP.warning({content:decodeURIComponent(Vt),key:"monaco-editor-tip"})}const $n=()=>{let ai=yn.current.instance;if(Ne!=null&&ai&&ve){const ni=ai.getModel();ni&&Ne!==ni.getValue()&&(At=!0,ni.setValue(Ne),ai.layout(),At=!1)}};(0,yt.useEffect)(()=>{const ai=Se.Z.subscribe("formatDocument",ni=>{var ki;let xi=yn.current.instance;(ki=xi==null?void 0:xi.getAction)==null||ki.call(xi,"editor.action.formatDocument").run()});return window.updateMonacoValue=ni=>{ti(ni)},ai},[]),(0,yt.useEffect)(()=>{var ai;let ni=yn.current.instance;dr.current&&clearTimeout(dr.current),dr.current=setTimeout(()=>{$n()},500),Ne&&(Ne!=null&&Ne.length)&&((ai=ni==null?void 0:ni.updateOptions)==null||ai.call(ni,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Ne.split(/\r\n|\r|\n/g).length))+3,5)}))},[Ne,ve,yn.current]),(0,yt.useEffect)(()=>{if(or&&yn.current&&yn.current.instance){let ni=yn.current.instance;ni.changeViewZones(function(ki){var xi=document.createElement("div");xi.style.padding="10px 20px",xi.style.width="calc(100% - 20px)",xi.className="my-error-line-wrp",xi.innerHTML=ir,ki.addZone({afterLineNumber:or||11,heightInLines:3,domNode:xi})});var ai={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};ni.addOverlayWidget(ai),ni.revealPositionInCenter({lineNumber:20,column:1})}},[or,yn.current,ve]);const ui=(ai="",ni)=>{if(!ai||ai.trim()==="")return!0;const xi=yn.current.instance.getModel().getLineTokens(ni);let gi=!1;for(let Li=0;Li<2;Li++)xi.getStandardTokenType(Li)===1&&(gi=!0);return gi};(0,yt.useEffect)(()=>{var ai;const ni=(ai=yn.current)==null?void 0:ai.instance;if(ni&&ve&&Yn){const ki=ni.onDidBlurEditorWidget(()=>{kn.current=!1}),xi=ni.onDidFocusEditorText(()=>{kn.current=!0});return()=>{ki.dispose(),xi.dispose()}}},[yn.current,ve,Yn]),(0,yt.useEffect)(()=>{var ai;if((ai=yn.current)!=null&&ai.instance&&ve&&ur){let ni=yn.current.instance,ki=ni.getModel();if(!ki)return;(()=>{var Mi;let Vi=[],Qi=[];const qi=ki.getAllDecorations();for(let Ar of qi)Ar.options.className==="highlighted-line"&&(Vi.push((Mi=Ar==null?void 0:Ar.range)==null?void 0:Mi.startLineNumber),Qi.push(Ar==null?void 0:Ar.id));if(vr===Vi[0])return;ki.deltaDecorations(Qi,[]);const cr=ki.getLineCount();vr&&vr<=cr&&(ni.deltaDecorations([],[{range:new Kt.Range(vr,1,vr,ki.getLineMaxColumn(vr)),options:{isWholeLine:!0,className:"highlighted-line"}}]),ni.revealLineInCenter(vr))})();const gi=(Mi=!1)=>{var Vi;let Qi=[],qi=[];const cr=ki.getAllDecorations();for(let Ar of cr)Ar.options.linesDecorationsClassName==="breakpoints-select"&&(Qi.push((Vi=Ar==null?void 0:Ar.range)==null?void 0:Vi.startLineNumber),qi.push(Ar==null?void 0:Ar.id));if(Mi)return{lines:Qi,ids:qi};Pi(Qi)},Li=Mi=>Ai(void 0,null,function*(){let Vi={range:new Kt.Range(Mi,1,Mi,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield ki.deltaDecorations([],[Vi]),gi()}),Zi=Mi=>Ai(void 0,null,function*(){let Vi=[];const Qi=ni.getLineDecorations(Mi);for(let qi of Qi)qi.options.linesDecorationsClassName==="breakpoints-select"&&Vi.push(qi.id);yield ki.deltaDecorations(Vi,[]),gi()}),tr=Mi=>{let Vi=ni.getLineDecorations(Mi);for(let Qi of Vi)if(Qi.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,an.isEqual)(Ki,gi(!0).lines)){ki.deltaDecorations(gi(!0).ids,[]);const Mi=Ki.map(Vi=>({range:new Kt.Range(Vi,1,Vi,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));ki.deltaDecorations([],Mi)}const zi=ni.onDidChangeModelContent(Mi=>{let Vi=ni.getPosition();if(Vi){let Qi=Vi.lineNumber;clearTimeout(Cn.current),Cn.current=setTimeout(()=>{ui(ki.getLineContent(Qi),Qi)?Zi(Qi):tr(Qi)?(Zi(Qi),Li(Qi)):gi()},100)}}),wn=ni.onMouseDown(Mi=>{var Vi,Qi,qi;if(Mi.target.detail&&((qi=(Qi=(Vi=Mi.target)==null?void 0:Vi.element)==null?void 0:Qi.className)!=null&&qi.includes("line-numbers"))){let cr=Mi.target.position.lineNumber;if(ui(ki.getLineContent(cr),cr))return;tr(cr)?Zi(cr):Li(cr)}}),Rr=Mi=>{let Vi={range:new Kt.Range(Mi,1,Mi,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};sr.current=ni.deltaDecorations(sr.current,[Vi])},Lr=()=>{sr.current=ni.deltaDecorations(sr.current,[])},Hr=ni.onMouseMove(Mi=>{var Vi,Qi,qi;if(Lr(),Mi.target.detail&&((qi=(Qi=(Vi=Mi.target)==null?void 0:Vi.element)==null?void 0:Qi.className)!=null&&qi.includes("line-numbers"))){let cr=Mi.target.position.lineNumber;if(ui(ki.getLineContent(cr),cr))return;Rr(cr)}}),dn=ni.onMouseLeave(()=>{Lr()});return()=>{zi.dispose(),wn.dispose(),Hr.dispose(),dn.dispose()}}},[yn.current,ve,Ki,vr,ur,Xe]),(0,yt.useEffect)(()=>{var ai;(ai=yn.current)!=null&&ai.instance&&ur&&yn.current.instance.setPosition({lineNumber:0,column:0})},[vr]);function Sn(){let ai=yn.current.instance;if(ai){const ni=ai.getSelection(),ki=yn.current.pastePos||{},xi=new Kt.Range(ki.startLineNumber||ni.endLineNumber,ki.startColumn||ni.endColumn,ki.endLineNumber||ni.endLineNumber,ki.endColumn||ni.endColumn);setTimeout(()=>{ai.executeEdits("",[{range:xi,text:""}])},300)}}function oi(ai){(window.navigator.platform.match("Mac")?ai.metaKey:ai.ctrlKey)&&ai.keyCode==83&&(ai.preventDefault(),pn())}const fe=()=>{if(bn&&yn.current.instance){const ai=yn.current.instance.getContentHeight();Ke(ai<Oe?Oe:ai)}else Ke(Oe)};function Te(ai){var ni=document.createEvent("MouseEvents");ni.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),ai.dispatchEvent(ni)}const hi=ai=>{if(!kn.current)return;const{keyCode:ni,ctrlKey:ki,metaKey:xi,target:gi,type:Li}=ai;return(Li==="paste"||(ni===67||ni===86)&&(xi||ki))&&gi.nodeName==="TEXTAREA"&&(Kn(),ai.preventDefault()),!1};function ee(ai,ni){var ki=window.URL||window.webkitURL||window,xi=new Blob([ni]),gi=document.createElementNS("http://www.w3.org/1999/xhtml","a");gi.href=ki.createObjectURL(xi),gi.download=ai,Te(gi)}(0,yt.useEffect)(()=>{fe()},[fe]),(0,yt.useEffect)(()=>{Ct.current&&!ve&&Promise.all([Dt.e(8909),Dt.e(503)]).then(Dt.bind(Dt,71448)).then(ai=>{try{Kt=ai,yn.current.instance=Kt.editor.create(Ct.current,{value:Ne,language:Tt(Xe),theme:en,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:Ji||!1}},An);const ni=yn.current.instance;let gi=[...Fn.BH._menuItems].find(zi=>zi[0]._debugName=="EditorContext")[1],Li=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Zi=(zi,wn)=>{var Rr,Lr;let Hr=zi._first;do wn.includes((Lr=(Rr=Hr.element)==null?void 0:Rr.command)==null?void 0:Lr.id)&&zi._remove(Hr);while(Hr=Hr.next)};if(yi(ni,Kt),setTimeout(()=>{fe(),yn.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{ee(pr||"educoder.txt",ni.getValue())}})},500),yn.current.subscription=ni.onDidChangeModelContent(zi=>{Oi.current?clearTimeout(Nn.current):(fe(),ti(ni.getValue(),zi)),Nn.current=setTimeout(()=>{Oi.current=!1},500)}),window.Monaco||se(Kt,Tt(Xe)),Yn&&(Zi(gi,Li),Ct.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",hi),window.removeEventListener("paste",hi),window.addEventListener("keydown",hi),window.addEventListener("paste",hi)),window.Monaco=Kt,ze&&ni.onDidBlurEditorWidget(()=>{ze(ni.getValue())}),vn&&ni.onDidFocusEditorText(()=>{Yn&&kt(),vn(ni.getValue())}),Yn){kt();try{ni.onDidPaste(zi=>{const wn=ni.getSelection(),Rr=yn.current.pastePos||{},Lr=new Kt.Range(Rr.startLineNumber||wn.endLineNumber,Rr.startColumn||wn.endColumn,Rr.endLineNumber||wn.endLineNumber,Rr.endColumn||wn.endColumn);ni.executeEdits("",[{range:zi.range,text:""}])})}catch(zi){}}let tr=xe();return hr&&typeof hr=="string"&&new sn(hr,ni,Kt),ye(!0),()=>{const zi=yn.current.instance;zi.dispose();const wn=zi.getModel();wn&&wn.dispose(),yn.current.subscription&&yn.current.subscription.dispose(),tr.unobserve(Ct.current)}}catch(ni){}})},[]),(0,yt.useEffect)(()=>{if(yn.current.instance&&ve)return document.addEventListener("keydown",oi,!1),()=>{document.removeEventListener("keydown",oi)}},[pn,ve]),(0,yt.useEffect)(()=>{let ai=yn.current.instance;if(ai&&ve){let ni=Tt(Xe);Kt.editor.setModelLanguage(ai.getModel(),ni)}},[Xe,ve]),(0,yt.useEffect)(()=>{yn.current.instance&&ve&&Kt.editor.setTheme(en)},[en,ve]),(0,yt.useEffect)(()=>{let ai=yn.current.instance;Zn.current=In,ai&&ve&&(ai.updateOptions(Ve({},In)),setTimeout(()=>{ai.getModel().updateOptions(Ve({},In))},200))},[JSON.stringify(In),ve]),(0,yt.useEffect)(()=>{let ai=yn.current.instance;ai&&ve&&ai.layout()},[ne,Oe,ve]);const[nn,Vn]=(0,yt.useState)(Xn(ne)),[_n,Ke]=(0,yt.useState)(Xn(Oe)),Gn=On(Ve({},En),{width:nn,height:_n,position:"relative"});return yt.createElement("div",{className:"my-monaco-editor",ref:Ct,style:Gn},qe&&yt.createElement(Qt.CopyToClipboard,{text:Ne,onCopy:()=>fn.ZP.success("\u590D\u5236\u6210\u529F")},yt.createElement(Ge.Z,{title:"\u590D\u5236\u4EE3\u7801"},yt.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},yt.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function un({width:Ie="100%",height:Ue="100%",original:ne,modified:Oe,language:Ne,options:Xe={}}){const En=(0,yt.useRef)(),[In,An]=(0,yt.useState)(null);function en(bn){let Yn;return En.current&&(Yn=new te.Z(ti=>{for(let yi of ti)(yi.target.offsetHeight>0||yi.target.offsetWidth>0)&&bn.layout()}),Yn.observe(En.current)),Yn}(0,yt.useEffect)(()=>(En.current&&Promise.all([Dt.e(8909),Dt.e(9404)]).then(Dt.bind(Dt,2550)).then(bn=>{Kt=bn;const Yn=Kt.editor.createDiffEditor(En.current,On(Ve({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},Xe),{wordWrap:!0}));An(Yn);let ti=en(Yn);return()=>{Yn.dispose();const yi=Yn.getModel();yi&&yi.dispose(),ti.unobserve(En.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,yt.useEffect)(()=>{In&&In.setModel({original:Kt.editor.createModel(ne,Ne),modified:Kt.editor.createModel(Oe,Ne)})},[ne,Oe,Ne,In]);const ze=Xn(Ie),qe=Xn(Ue),pn={width:ze,height:qe};return yt.createElement("div",{className:"my-diff-editor",ref:En,style:pn})}},38776:function(Jn,pi,Dt){"use strict";Dt.d(pi,{jL:function(){return be},w9:function(){return qn},QD:function(){return Yn},cQ:function(){return Qt},op:function(){return An},O5:function(){return Nn},_b:function(){return pr},t7:function(){return lt},Gi:function(){return Ai},YG:function(){return On},qp:function(){return Re},vr:function(){return vn},qE:function(){return qe},Je:function(){return St},wb:function(){return Fn},cq:function(){return Kt},tp:function(){return Nt}});var yt=Dt(59301),te={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},re="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6BZurjsRSe2SogjhNwMZIngbZbqgXom8N26/KjV3femB7ebRxfE3DbRnW/k8c3LQvv5yCjOFVVqhgCyNnJmAhoxyOFasz1OeCM2lLTJryI4BQQUn1RAhI24Lc1dBjc2K6Nnv2edfP+sLvIvergxqb0vpHA1fk8lre9xBZpZsYKU9sMYiDvAHKaqU4HuANcZrIpcILiezRdo7z0aUw3BoJYI4gELAeI/bjZmBq9+PGNd5x/+unHua8U4KsKbriujxUSV9gW+rwg9WPTfpHgpEgUQgAFJwU6LSDwjSxA8F2jslSBBJaZKwVGJRv1pSAJLyQ8qlwLOA4Q1us31Z58+OTj3rX/E68E3qsGbmhK/6Nt40oIFMJwZ5URFh/cZoGgHQKODeSsaUEiA5iSy6IqYRnfmPq66YojPILbYbqpGXuhRhRrFPMSUaP+6OTAtuPff8ze97xceK8KuJGG/oBl4XsaKMTTsiwDKVXZjm1qsgRBU84TXi5VXqo24/syP5ce2xEg0gBDe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ent:Kn})=>yt.createElement("div",{className:te.banner},yt.createElement("div",{className:te.content},yt.createElement("aside",null,yt.createElement("p",null,yt.createElement("b",null,ye),yt.createElement("span",null,xe)),Cn.length>0&&yt.createElement("div",{className:te.btns},Cn.map(($n,ui)=>yt.createElement("div",{key:ui,onClick:$n.click},$n.name,$n.sign?yt.createElement("img",{src:re,width:39}):null))),Kn),kn&&yt.createElement("img",{style:{marginTop:33,marginRight:38},src:kn,width:ve}))),jt={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},ge=Dt(92310),Ze=Dt.n(ge),Ce=Dt(89392),Re=({dataSource:Cn=[],value:kn,onChange:ve,onTitleChange:ye,className:xe,title:Kn,titleWidth:$n=41,style:ui={},fontColor:Sn="#6A7283",showCount:oi})=>{const[fe,Te]=(0,yt.useState)(0),[hi,ee]=(0,yt.useState)(!1),nn=(0,yt.useRef)(null),Vn=(0,yt.useRef)(null);return(0,yt.useEffect)(()=>{var _n;Cn.length!==0&&(((_n=nn==null?void 0:nn.current)==null?void 0:_n.clientHeight)>97?Te(1):Te(0)),Cn.length===0&&Te(0),ee(!1)},[Cn]),yt.createElement("div",{className:Ze()(jt.row,xe),style:ui},yt.createElement("div",{onClick:(0,Ce.throttle)(()=>ye==null?void 0:ye(),2e3),style:{width:$n,marginTop:hi?12:4},className:`${jt.title} ${ye?"current":""}`},Kn),yt.createElement("div",{className:hi?`${jt.tagsWrap} ${jt.tagsBorderWrap}`:jt.tagsWrap},yt.createElement("div",{className:jt.bar,ref:Vn,style:fe>0?{height:fe===1?97:"auto",overflow:fe===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},yt.createElement("div",{className:jt.tag,ref:nn},Cn==null?void 0:Cn.map(_n=>yt.createElement("span",{onClick:()=>ve(_n.id),key:_n.id,style:{color:Sn},className:kn===_n.id?jt.active:""},yt.createElement("span",{title:_n.name,className:jt.name},_n.name),!!oi&&yt.createElement("span",{className:jt.num},_n.count))))),!!fe&&yt.createElement(yt.Fragment,null,fe===1?yt.createElement("div",{onClick:()=>{var _n;Te(2),((_n=nn==null?void 0:nn.current)==null?void 0:_n.clientHeight)>245?ee(!0):ee(!1)},className:jt.action},"\u5C55\u5F00",yt.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):yt.createElement("div",{onClick:()=>{Vn.current.scrollTop=0,Te(1),ee(!1)},className:jt.action},"\u6536\u8D77",yt.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},Yt={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},Nt=({dataSource:Cn=[],value:kn,onChange:ve,className:ye,style:xe={}})=>yt.createElement("div",{style:xe,className:Ze()(Yt.tabs,ye)},Cn.map(Kn=>yt.createElement("span",{onClick:()=>ve(Kn.id),className:kn===Kn.id?Yt.active:"",key:Kn.id},Kn.name))),nt={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},et=Dt(37568),lt=({dataSource:Cn=[],value:kn="",onChange:ve,onInputChange:ye=()=>{},className:xe,style:Kn={},placeholder:$n,allowClear:ui=!1})=>{var Sn;const[oi,fe]=(0,yt.useState)(""),[Te,hi]=(0,yt.useState)("");(0,yt.useEffect)(()=>{var Vn;let _n=kn;(Vn=JSON.stringify(kn))!=null&&Vn.includes("{")&&(fe(kn.id),_n=kn.value||"");try{hi(decodeURIComponent(_n||""))}catch(Ke){hi(decodeURIComponent(_n||""))}},[kn]);const ee=()=>{ve(encodeURIComponent(Te),oi||null)},nn=Vn=>{Vn!==oi&&(fe(Vn),ve(encodeURIComponent(Te),Vn))};return yt.createElement("div",{className:Ze()(nt.input,xe),style:Kn},!!Cn.length&&yt.createElement("div",{className:nt.dropdown},yt.createElement("div",{className:nt.text},(Sn=Cn.find(Vn=>Vn.id===oi))==null?void 0:Sn.name,yt.createElement("i",{className:"iconfont icon-zhankai4"}),yt.createElement("b",{className:nt.b1}),yt.createElement("b",{className:nt.b2})),yt.createElement("div",{className:nt.menu},Cn.map((Vn,_n)=>yt.createElement("div",{key:_n,onClick:()=>nn(Vn.id)},Vn.name)))),yt.createElement(et.default,{onPressEnter:ee,value:Te,onChange:Vn=>{hi(Vn.target.value),ye(encodeURIComponent(Vn.target.value),oi||null)},bordered:!1,placeholder:$n}),yt.createElement("i",{onClick:ee,className:"iconfont icon-sousuo9 font14 pl10 current"}))},gt={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},St=({value:Cn,onChange:kn,className:ve,total:ye,pageSize:xe,style:Kn={}})=>{const $n=Cn<2,ui=Cn>=Math.ceil(ye/xe);return ye<=xe?yt.createElement(yt.Fragment,null):yt.createElement("div",{className:Ze()(gt.quickPager,ve),style:Kn},yt.createElement("div",{onClick:()=>{$n||kn(Cn-1,"prev")},className:$n?gt.disabled:""},"\u4E0A\u4E00\u9875"),yt.createElement("div",{onClick:()=>{ui||kn(Cn+1,"next")},className:ui?gt.disabled:""},"\u4E0B\u4E00\u9875"))},bt={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},It=Dt(29787),Ht=Dt(25399),se=Dt(58018),Vt=Dt(13952),Jt=Dt(89299),Ee=Dt(96908),we=Dt(57177),De=Dt(81378),Le=Dt(63604),Fn=({className:Cn,dataSource:kn=[],col:ve=4,right:ye,bottom:xe=23,precision:Kn=0,wrapWidth:$n=1200,trackEventItems:ui,loading:Sn})=>{const oi=Math.floor(($n-(ve-1)*ye)/ve);return yt.createElement(It.Z,{spinning:Sn},yt.createElement("div",{className:Ze()(bt.list,Cn)},!!kn.length&&kn.map((fe,Te)=>{const{name:hi,id:ee,identifier:nn,power:Vn,cover_image_id:_n,pic:Ke}=fe;return yt.createElement("div",{className:bt.wrap,key:ee,style:{width:oi,marginRight:(1+Te)%ve===0?0:ye+Kn,marginBottom:xe}},yt.createElement("a",{target:"_blank",href:`/shixuns/${nn}/challenges`,className:bt.li,onClick:Gn=>{Gn.preventDefault(),ui&&(0,Jt.L9)([ui]),Vn&&(0,Jt.xg)(`/shixuns/${nn}/challenges`)}},yt.createElement("div",{className:bt.img},yt.createElement("img",{className:bt.cover,src:`${Ke}`}),fe.is_jupyter&&yt.createElement("img",{className:bt.sign,src:Ee}),fe.is_jupyter_lab&&yt.createElement("img",{className:bt.sign,src:we}),fe.is_unity_3d&&yt.createElement("img",{className:bt.sign,src:De})),yt.createElement("div",{className:bt.name},yt.createElement(Ht.Z,{title:hi||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},yt.createElement("span",{className:bt.e},hi||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),yt.createElement("div",{className:bt.tags},yt.createElement(Ht.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},yt.createElement("span",null,yt.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),yt.createElement("span",null,fe.challenges_count))),!!fe.myshixuns_count&&yt.createElement(Ht.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},yt.createElement("span",null,yt.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),yt.createElement("span",null,fe.myshixuns_count))),yt.createElement(Ht.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},yt.createElement("span",null,yt.createElement("span",null,fe.level))),yt.createElement("div",{className:bt.rate},yt.createElement(se.Z,{allowHalf:!0,disabled:!0,defaultValue:fe.score_info}),yt.createElement("span",null,"\xA0",fe.score_info?`${fe.score_info}\u5206`:"5\u5206")))),!Vn&&yt.createElement("div",{className:bt.lockWrap},yt.createElement("img",{src:`${Vt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),yt.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!kn.length&&yt.createElement(Le.Z,null)))},fn={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf"},Ge=Dt(64681),an=Dt(59301),Qt=({className:Cn,dataSource:kn=[],col:ve=4,right:ye,bottom:xe=23,precision:Kn=0,wrapWidth:$n=1200,trackEventItems:ui,loading:Sn,onRemove:oi=()=>{},isCurrent:fe=!0,showAlias:Te=!1})=>{const hi=Math.floor(($n-(ve-1)*ye)/ve),ee=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}];return an.createElement(It.Z,{spinning:Sn},an.createElement("div",{className:Ze()(fn.list,Cn)},!!(kn!=null&&kn.length)&&(kn==null?void 0:kn.map((nn,Vn)=>{var _n;const{name:Ke,id:Gn,identifier:ai,featured:ni,school_name:ki,image_url:xi,excellent:gi,is_plan:Li}=nn;return an.createElement("div",{key:Gn,className:fn.wrap,style:{width:hi,marginRight:(1+Vn)%ve===0?0:ye+Kn,marginBottom:xe}},an.createElement("a",{className:fn.li,onClick:Zi=>{Zi.preventDefault(),Zi.stopPropagation(),ui&&(0,Jt.L9)([ui]),(0,Jt.xg)(`/paths/${ai}`)}},an.createElement("div",{className:fn.img},an.createElement("img",{className:fn.cover,src:`${xi}`}),fe&&(0,Ge.bg)()&&(nn==null?void 0:nn.studying)&&an.createElement("div",{className:`${fn.movebq} user-path-items`,onClick:Zi=>{Zi.stopPropagation(),oi(nn)}},an.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),an.createElement("span",{className:"c-red"},"\u79FB\u9664")),(_n=nn==null?void 0:nn.subject_tags)==null?void 0:_n.map((Zi,tr)=>{var zi,wn;if(tr===0){const Lr=(zi=ee.find(Hr=>Hr.name==Zi))==null?void 0:zi.swimg;return an.createElement("img",{className:fn.sign,src:Lr,style:{left:"-4px"}})}const Rr=(wn=ee.find(Lr=>Lr.name==Zi))==null?void 0:wn.ptimg;return an.createElement("img",{className:fn.sign,src:Rr,style:{left:`${48+52*(tr-1)+2*tr}px`}})}),an.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(nn==null?void 0:nn.excellent)&&an.createElement("div",{className:fn.bq},"\u5F00\u653E\u8BFE\u7A0B"))),an.createElement("div",{className:fn.name},an.createElement(Ht.Z,{title:Te&&(nn!=null&&nn.excellent_alias_name)?an.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${Ke}`,an.createElement("br",null),an.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${nn==null?void 0:nn.excellent_alias_name}`)):Ke},an.createElement("span",{className:fn.e},Te&&(nn==null?void 0:nn.excellent_alias_name)||Ke))),an.createElement(Ht.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${ki}`},an.createElement("div",{className:fn.unit},an.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),ki)),an.createElement("div",{className:fn.tags},an.createElement("div",null,an.createElement(Ht.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},an.createElement("span",null,an.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),an.createElement("span",null,nn.stages_count))),an.createElement(Ht.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},an.createElement("span",null,an.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),an.createElement("span",null,nn.members_count)))))))})),!kn.length&&an.createElement(Le.Z,null)))},mn={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},ii="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1OxYCPcAKX0rHI4+0+2wv7l9xgHPFyrs9j78A5l/sxQRXrE2ix5SiLyZj7v+s2BgArBjA+XzpzR7oq8x880ouQK/7JqKnFfiziUT0iV731aj9ZQeYmYez+fJXiOguZl72/ldkkYmYmb+eSkT+lIjOLOcYlm2BBcx8sfoJz+O/BHhkOSe5evqiaaXoTxIx55tExMsxrmUBOJ/njVVUvgvmW5djUq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wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",jn=Dt(59301),qn=({className:Cn,dataSource:kn=[],col:ve=4,right:ye,bottom:xe=23,precision:Kn=0,wrapWidth:$n=1200,trackEventItems:ui,loading:Sn,handleVery:oi=()=>!0})=>{const fe=Math.floor(($n-(ve-1)*ye)/ve);return jn.createElement(It.Z,{spinning:Sn},jn.createElement("div",{className:Ze()(mn.list,Cn)},!!kn.length&&kn.map((Te,hi)=>{const{subject_identifier:ee,id:nn,identifier:Vn,power:_n}=Te,Ke=Te.is_public!=0&&Te.is_public;return jn.createElement("div",{className:mn.wrap,key:nn,style:{width:fe,marginRight:(1+hi)%ve===0?0:ye+Kn,marginBottom:xe}},jn.createElement("a",{className:mn.li,onClick:Gn=>{Gn.preventDefault(),oi(Te==null?void 0:Te.first_category_url)&&(ui&&(0,Jt.L9)([ui]),(0,Jt.xg)(Te.first_category_url))}},jn.createElement("div",{className:mn.top},jn.createElement(Ht.Z,{title:Te.name},jn.createElement("div",{className:mn.name},Te.name)),jn.createElement("img",{className:mn.img,src:Vt.Z.IMG_SERVER+"/images/"+Te.avatar_url}),jn.createElement("div",{className:mn.text,title:Te.creator},Te.creator),ee&&jn.createElement("div",{className:mn.btns},jn.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),jn.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Ke&&jn.createElement("div",{className:mn.sign},"\u516C\u5F00")),jn.createElement("div",{className:mn.bottom},Te.visits>0&&jn.createElement(Ht.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},jn.createElement("span",null,jn.createElement("i",{className:"iconfont icon-liulanyan"}),jn.createElement("span",null,Te.visits))),Te.course_members_count>0&&jn.createElement(Ht.Z,{title:"\u6210\u5458",placement:"bottom"},jn.createElement("span",null,jn.createElement("i",{className:"iconfont icon-chengyuan"}),Te.course_members_count)),Te.tasks_count>0&&jn.createElement(Ht.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},jn.createElement("span",null,jn.createElement("i",{className:"iconfont icon-zuoye"}),Te.tasks_count)),Te.is_end?jn.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):jn.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Te.is_accessible&&jn.createElement("div",{className:mn.lockWrap},jn.createElement("img",{src:`${Vt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),jn.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!kn.length&&jn.createElement(Le.Z,null)))},Dn={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},fi=Dt(44993),On=({dataSource:Cn=[],value:kn,onChange:ve,className:ye,style:xe={},tabBarExtraContent:Kn})=>yt.createElement("div",{className:Ze()(Dn.tabs,ye),style:xe},yt.createElement("div",{className:Dn.tabsWrap},Cn.map(($n,ui)=>!($n!=null&&$n.hide)&&yt.createElement("aside",{className:Dn.tab,onClick:()=>{ve($n.id),$n.link&&fi.history.push($n.link)},key:ui},yt.createElement("div",{className:kn===$n.id?Dn.active:""},$n.name),($n==null?void 0:$n.resetCount)==null&&($n==null?void 0:$n.total)!==void 0&&yt.createElement("span",null,"\uFF08",$n==null?void 0:$n.total,"\uFF09"),($n==null?void 0:$n.resetCount)!==void 0&&($n==null?void 0:$n.total)!==void 0&&yt.createElement(Ht.Z,{title:($n==null?void 0:$n.tip)!=null?$n==null?void 0:$n.tip:""},yt.createElement("span",{style:{color:"#9096A3"}},"\uFF08",yt.createElement("span",{style:{color:"#000"}},$n==null?void 0:$n.resetCount),"/",yt.createElement("span",null,$n==null?void 0:$n.total),"\uFF09"))))),yt.createElement("div",{className:Dn.tabBar},Kn)),Ai=({className:Cn,style:kn={},children:ve})=>yt.createElement("div",{className:Ze()(Cn),style:kn},ve),Xn={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},Rt=Dt(75727),At=Dt(93041);const wt=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var Kt=({sortValue:Cn,dropValue:kn,className:ve,onSort:ye,onDrop:xe,dataSource:Kn=wt})=>{var $n;return yt.createElement("div",{className:Ze()(Xn.orderWrap,ve)},yt.createElement(Rt.Z,{dropdownRender:()=>yt.createElement(At.default,null,Kn.map((ui,Sn)=>yt.createElement(At.default.Item,{key:Sn,onClick:()=>xe(ui.id)},ui.name)))},yt.createElement("span",{className:Xn.orderTextWrap},($n=Kn.find(ui=>kn===ui.id))==null?void 0:$n.name)),yt.createElement("span",{className:Xn.orderIconWrap},yt.createElement("span",{className:Xn.orderAsc},yt.createElement("i",{className:Cn==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Xn.cursorPointer} ${Xn.active}`:`iconfont icon-sanjiaoxing-up font12 ${Xn.cursorPointer}`,onClick:()=>ye(Cn==="asc"?"desc":"asc")})),yt.createElement("span",{className:Xn.orderDesc},yt.createElement("i",{className:Cn==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Xn.cursorPointer} ${Xn.active}`:`iconfont icon-sanjiaoxing-down font12 ${Xn.cursorPointer}`,onClick:()=>ye(Cn==="asc"?"desc":"asc")}))))},kt={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},$t=Dt(99571),un=Object.defineProperty,Ie=Object.getOwnPropertySymbols,Ue=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,Oe=(Cn,kn,ve)=>kn in Cn?un(Cn,kn,{enumerable:!0,configurable:!0,writable:!0,value:ve}):Cn[kn]=ve,Ne=(Cn,kn)=>{for(var ve in kn||(kn={}))Ue.call(kn,ve)&&Oe(Cn,ve,kn[ve]);if(Ie)for(var ve of Ie(kn))ne.call(kn,ve)&&Oe(Cn,ve,kn[ve]);return Cn},Xe=(Cn,kn)=>{var ve={};for(var ye in Cn)Ue.call(Cn,ye)&&kn.indexOf(ye)<0&&(ve[ye]=Cn[ye]);if(Cn!=null&&Ie)for(var ye of Ie(Cn))kn.indexOf(ye)<0&&ne.call(Cn,ye)&&(ve[ye]=Cn[ye]);return ve},En=(Cn,kn,ve)=>new Promise((ye,xe)=>{var Kn=Sn=>{try{ui(ve.next(Sn))}catch(oi){xe(oi)}},$n=Sn=>{try{ui(ve.throw(Sn))}catch(oi){xe(oi)}},ui=Sn=>Sn.done?ye(Sn.value):Promise.resolve(Sn.value).then(Kn,$n);ui((ve=ve.apply(Cn,kn)).next())}),An=Cn=>{var kn=Cn,{className:ve,style:ye,children:xe,loading:Kn=!1,openLoading:$n,onClick:ui=()=>{},size:Sn="middle",shape:oi="round"}=kn,fe=Xe(kn,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Te,hi]=(0,yt.useState)(!1);return yt.createElement($t.ZP,Ne({onClick:(0,Ce.throttle)(ee=>En(void 0,null,function*(){$n&&hi(!0);try{yield ui(ee)}catch(nn){console.log("error",nn)}$n&&hi(!1)}),2e3,{leading:!0,trailing:!1}),className:Ze()(kt.btn,kt[`${Sn}-${oi}`],ve),style:ye,size:Sn,shape:oi,loading:Te||Kn},fe),xe)},en={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},qe=({className:Cn,style:kn,children:ve=null,onClick:ye,title:xe})=>yt.createElement("div",{className:Ze()(en.head,Cn),style:kn},yt.createElement("span",{className:"primary-hover",onClick:ye},yt.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),yt.createElement("b",{title:xe},xe),yt.createElement("div",{className:en.node},ve)),pn={flex_box_center:"flex_box_center___AlHuF",flex_space_between:"flex_space_between___vN2LW",flex_box_vertical_center:"flex_box_vertical_center___Ac7D2",flex_box_center_end:"flex_box_center_end___y38I7",flex_box_column:"flex_box_column___iQE6P",btns:"btns___sNgTb",confirm:"confirm___Ozirl",cancel:"cancel___aiq1I"},Yn=({confirmShow:Cn=!0,confirmTitle:kn,confirmClick:ve,cancelShow:ye=!0,cancelTitle:xe,cancelClick:Kn,className:$n,style:ui,confirmLoading:Sn=!1})=>yt.createElement("div",{className:Ze()(pn.btns,$n),style:ui},Cn&&yt.createElement($t.ZP,{loading:Sn,onClick:ve,type:"primary",className:pn.confirm},kn),ye&&yt.createElement($t.ZP,{onClick:Kn,className:pn.cancel},xe)),ti={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},vn=({className:Cn,style:kn={},LeftContent:ve,children:ye,RightContent:xe})=>yt.createElement("div",{className:Ze()(ti.fixedBottom,Cn),style:kn},yt.createElement("div",{className:ti.wrap},yt.createElement("div",{className:ti.left},ve),yt.createElement("div",{className:ti.center},ye),yt.createElement("div",{className:ti.right},xe))),Pi={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},pr=({className:Cn,style:kn={},dataSource:ve=[]})=>yt.createElement("div",{className:Ze()(Pi.crumbs,Cn),style:kn},ve.map((ye,xe)=>xe<ve.length-1?yt.createElement(yt.Fragment,{key:xe},ye.path||ye.onClick?yt.createElement("span",{className:Pi.hover,onClick:ye!=null&&ye.onClick?ye.onClick:()=>fi.history.push(ye.path)},ye.name):yt.createElement("span",null,ye.name),yt.createElement("span",null,"\xA0",">","\xA0")):yt.createElement("span",{key:xe,style:{color:"#5F6368"}},ye.name))),or=Dt(11938),ir=Object.defineProperty,vr=Object.defineProperties,ur=Object.getOwnPropertyDescriptors,hr=Object.getOwnPropertySymbols,Ji=Object.prototype.hasOwnProperty,xr=Object.prototype.propertyIsEnumerable,Ct=(Cn,kn,ve)=>kn in Cn?ir(Cn,kn,{enumerable:!0,configurable:!0,writable:!0,value:ve}):Cn[kn]=ve,yn=(Cn,kn)=>{for(var ve in kn||(kn={}))Ji.call(kn,ve)&&Ct(Cn,ve,kn[ve]);if(hr)for(var ve of hr(kn))xr.call(kn,ve)&&Ct(Cn,ve,kn[ve]);return Cn},Zn=(Cn,kn)=>vr(Cn,ur(kn)),dr=(Cn,kn)=>{var ve={};for(var ye in Cn)Ji.call(Cn,ye)&&kn.indexOf(ye)<0&&(ve[ye]=Cn[ye]);if(Cn!=null&&hr)for(var ye of hr(Cn))kn.indexOf(ye)<0&&xr.call(Cn,ye)&&(ve[ye]=Cn[ye]);return ve};const{Countdown:sr}=or.default;var Nn=Cn=>{var kn=Cn,{onChange:ve}=kn,ye=dr(kn,["onChange"]);const[xe,Kn]=(0,yt.useState)(null);(0,yt.useEffect)(()=>{typeof xe=="number"&&xe>=0&&ve(xe)},[xe]);const $n=ui=>{const Sn=Math.floor(ui/1e3);Kn(Sn)};return yt.createElement(sr,Zn(yn({},ye),{onChange:$n}))}},47458:function(Jn,pi,Dt){"use strict";Dt.d(pi,{Z:function(){return te}});var yt=Dt(59301);function te(re,Fe){const be=(0,yt.useRef)();(0,yt.useEffect)(()=>{be.current=re}),(0,yt.useEffect)(()=>{function jt(){be.current()}if(Fe!==null){let ge=setInterval(jt,Fe);return()=>clearInterval(ge)}},[Fe])}},1006:function(Jn,pi,Dt){"use strict";Dt.r(pi),Dt.d(pi,{default:function(){return Oi}});var yt=Dt(59301),te={card:"card___c4ypw",head:"head___d2Dfo",element:"element___PyfcV",collaborator:"collaborator___o6MF4",btn:"btn___CF6mw",delSty:"delSty___Wm5pj",delBorder:"delBorder___IVg2Z",copHover:"copHover___rNmmw",wrap:"wrap___feope",center:"center___uU09V",tip:"tip___yCX57",title:"title___OpV1r",content:"content___XU4yH",fixedBtns:"fixedBtns___ItSdd"},re=Dt(92310),Fe=Dt.n(re),be=Dt(38776),jt=Dt(4213),ge=Dt(77019),Ze=Dt(99571),Ce=Dt(62957),Mt=Dt(37568),Re=Dt(54172),Yt=Dt(28284),We=Dt(25399),Nt=Dt(71051),nt=Dt(6767),et=Dt(29787),dt=Dt(62673),lt=Dt(47889),gt=Dt(16326),mt=Dt(89299),St=Dt(44993),bt=Dt(56082),It=Dt(87954),Ht=Dt(18257),se=Dt(19719),Vt=Dt(35241),Jt=Dt(63604),Ee=Object.defineProperty,we=Object.defineProperties,De=Object.getOwnPropertyDescriptors,Le=Object.getOwnPropertySymbols,sn=Object.prototype.hasOwnProperty,Fn=Object.prototype.propertyIsEnumerable,fn=(Nn,Cn,kn)=>Cn in Nn?Ee(Nn,Cn,{enumerable:!0,configurable:!0,writable:!0,value:kn}):Nn[Cn]=kn,Ge=(Nn,Cn)=>{for(var kn in Cn||(Cn={}))sn.call(Cn,kn)&&fn(Nn,kn,Cn[kn]);if(Le)for(var kn of Le(Cn))Fn.call(Cn,kn)&&fn(Nn,kn,Cn[kn]);return Nn},an=(Nn,Cn)=>we(Nn,De(Cn));const Se=yt.createContext({}),Qt=()=>{const{setActivatorNodeRef:Nn,listeners:Cn}=(0,yt.useContext)(Se);return yt.createElement(Ze.ZP,Ge({type:"text",size:"small",icon:yt.createElement(We.Z,{title:"\u53EF\u9F20\u6807\u62D6\u62FD\u8FDB\u884C\u8BD5\u9898\u6392\u5E8F\uFF0C\u5B66\u751F\u7AEF\u5C06\u6309\u7167\u6B64\u6392\u5E8F\u5C55\u793A"},yt.createElement(bt.Z,null)),style:{cursor:"move"},ref:Nn},Cn))},mn=Nn=>{const{attributes:Cn,listeners:kn,setNodeRef:ve,setActivatorNodeRef:ye,transform:xe,transition:Kn,isDragging:$n}=(0,se.nB)({id:Nn["data-row-key"]}),ui=Ge(an(Ge({},Nn.style),{transform:Vt.ux.Translate.toString(xe),transition:Kn}),$n?{position:"relative",zIndex:99}:{}),Sn=(0,yt.useMemo)(()=>({setActivatorNodeRef:ye,listeners:kn}),[ye,kn]);return yt.createElement(Se.Provider,{value:Sn},yt.createElement("tr",Ge(an(Ge({},Nn),{ref:ve,style:ui}),Cn)))};var jn=({columns:Nn,dataSource:Cn,setDataSource:kn,loading:ve})=>{const ye=({active:xe,over:Kn})=>{xe.id!==(Kn==null?void 0:Kn.id)&&kn($n=>{const ui=$n.findIndex(oi=>oi.id===(xe==null?void 0:xe.id)),Sn=$n.findIndex(oi=>oi.id===(Kn==null?void 0:Kn.id));return(0,se.Rp)($n,ui,Sn)})};return yt.createElement(It.LB,{modifiers:[Ht.DL],onDragEnd:ye},yt.createElement(se.Fo,{items:Cn.map(xe=>xe.id),strategy:se.qw},yt.createElement(Re.default,{pagination:!1,scroll:{y:400},rowKey:"id",loading:ve,locale:{emptyText:yt.createElement(Jt.Z,{styles:{margin:"80px auto"},customText:yt.createElement("span",null,"\u8FD8\u6CA1\u6709\u8BD5\u9898\uFF0C\u8BF7\u4ECE",yt.createElement("span",{style:{color:"#CA7720"}},"\u53F3\u4E0A\u89D2\u64CD\u4F5C\u6309\u94AE"),"\u8FDB\u884C\u6DFB\u52A0\uFF5E")})},dataSource:Cn,components:{body:{row:mn}},columns:[{key:"sort",align:"center",width:80,render:()=>yt.createElement(Qt,null)},...Nn],size:"middle"})))},ln=Dt(20554),qn=Dt(17149),Dn=Dt(82326),fi=Dt(69219),Ve=Dt(13747),On=Dt(52430),Pe={flex_box_center:"flex_box_center___Iqqr9",flex_space_between:"flex_space_between___y0uZc",flex_box_vertical_center:"flex_box_vertical_center___akeKA",flex_box_center_end:"flex_box_center_end___DEJG9",flex_box_column:"flex_box_column___pgYr1",scoremodal:"scoremodal___PYXCN",selectWrapper:"selectWrapper___RNoPX",selectWrappers:"selectWrappers___fUTXA",allqingchu:"allqingchu___k6Qgb",title:"title___AAfdA",score:"score___oYtrM",close:"close___i8V3V",content:"content___JpTOI",items:"items___je5K0",bottom:"bottom___jjylc",yes:"yes___Wh4La",no:"no___fIya2",titlecount:"titlecount___pZQaF",add:"add___hT0xx",search:"search___WBmWG",searchIcon:"searchIcon___LgZF_",tabWrap:"tabWrap___lGZ3A",previewModal:"previewModal___jPoO2"},Ai=Dt(12353),Xn={flex_box_center:"flex_box_center____Tkex",flex_space_between:"flex_space_between___EZnYm",flex_box_vertical_center:"flex_box_vertical_center___e6Uyw",flex_box_center_end:"flex_box_center_end___FubGu",flex_box_column:"flex_box_column___ibm4g",warp:"warp___IgClr",shixunbutton:"shixunbutton___DTP9s",redio:"redio___wfYmJ",redioitem:"redioitem___Lx8l8",redioitemyes:"redioitemyes___KKsIv",title:"title___GXJmE",titleyes:"titleyes___yYOlS",yestag:"yestag___WQlWV",qcount:"qcount___QpuQ9",score:"score___WkTL9",qtitle:"qtitle___TQM3w",checkbox:"checkbox___XWcyb",checkboxitem:"checkboxitem___eUzWD",checkboxitemyes:"checkboxitemyes___LOyRE",bottom:"bottom___IKM1j",bottomitem:"bottomitem___TaUK6",left:"left___szEjt",right:"right___XEuVG",completion:"completion___bVp0S",content:"content___R3KZ7",items:"items___DCx2v",simple:"simple___GPeTT",shixun:"shixun___hhixj",combination:"combination___toZnZ",program:"program___alaBk"},Rt=Dt(98573),At=Dt(24334);const wt=["A\uFF0E","B\uFF0E","C\uFF0E","D\uFF0E","E\uFF0E","F\uFF0E","G\uFF0E","H\uFF0E","I\uFF0E","J\uFF0E","K\uFF0E","L\uFF0E","M\uFF0E","N\uFF0E","O\uFF0E","P\uFF0E","Q\uFF0E","R\uFF0E","S\uFF0E","T\uFF0E","U\uFF0E","V\uFF0E","W\uFF0E","X\uFF0E","Y\uFF0E","Z\uFF0E"];var Kt=({qitem:Nn})=>{var Cn,kn,ve,ye,xe,Kn,$n,ui,Sn,oi;return yt.createElement("div",{className:Xn.warp},yt.createElement("div",{className:Xn.mainPart},yt.createElement("div",{className:Xn.qcount},(Nn==null?void 0:Nn.question_type)===8&&yt.createElement(Rt.Z,{className:Xn.content,showProgramFill:!0,value:(Cn=Nn==null?void 0:Nn.program_attr)==null?void 0:Cn.description}),(Nn==null?void 0:Nn.question_type)!=8&&yt.createElement(Rt.Z,{className:Xn.qtitle,value:(Nn==null?void 0:Nn.name)||(Nn==null?void 0:Nn.title)})),((Nn==null?void 0:Nn.question_type)===0||(Nn==null?void 0:Nn.question_type)===2)&&yt.createElement("div",null,(kn=Nn==null?void 0:Nn.choices)==null?void 0:kn.map((fe,Te)=>yt.createElement("div",{className:Xn.redio},!(fe!=null&&fe.is_answer)&&yt.createElement("span",{className:Xn.redioitem}),(fe==null?void 0:fe.is_answer)&&yt.createElement("i",{className:`${Xn.redioitemyes} icon-duigou1`}),yt.createElement(Rt.Z,{className:fe!=null&&fe.is_answer?Xn.titleyes:Xn.title,value:wt[Te]+(fe==null?void 0:fe.choice_text)}),(fe==null?void 0:fe.is_answer)&&yt.createElement("div",{className:Xn.yestag},"\u6B63\u786E\u7B54\u6848")))),(Nn==null?void 0:Nn.question_type)===1&&yt.createElement("div",null,(ve=Nn==null?void 0:Nn.choices)==null?void 0:ve.map((fe,Te)=>yt.createElement("div",{className:Xn.checkbox},!(fe!=null&&fe.is_answer)&&yt.createElement("span",{className:Xn.checkboxitem}),(fe==null?void 0:fe.is_answer)&&yt.createElement("i",{className:`${Xn.checkboxitemyes} icon-duigou1`}),yt.createElement(Rt.Z,{className:fe!=null&&fe.is_answer?Xn.titleyes:Xn.title,value:wt[Te]+(fe==null?void 0:fe.choice_text)}),(fe==null?void 0:fe.is_answer)&&yt.createElement("div",{className:Xn.yestag},"\u6B63\u786E\u7B54\u6848")))),(Nn==null?void 0:Nn.question_type)===3&&yt.createElement("div",{className:Xn.completion},(ye=Nn==null?void 0:Nn.standard_answer)==null?void 0:ye.map((fe,Te)=>{var hi;return yt.createElement("div",{style:{display:"flex"}},yt.createElement("span",{className:Xn.title},"\u586B\u7A7A\u9879",Te+1),yt.createElement("div",{className:Xn.content},(hi=fe==null?void 0:fe.answer_text)==null?void 0:hi.map((ee,nn)=>yt.createElement("div",{className:Xn.items},ee))))})),(Nn==null?void 0:Nn.question_type)===4&&yt.createElement("div",{className:Xn.simple},yt.createElement("div",{className:Xn.title},"\u53C2\u8003\u7B54\u6848"),yt.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(xe=Nn==null?void 0:Nn.answer_texts)!=null&&xe[0]?yt.createElement(Rt.Z,{className:Xn.content,value:(Kn=Nn==null?void 0:Nn.answer_texts)==null?void 0:Kn[0]}):yt.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),(Nn==null?void 0:Nn.question_type)===5&&(($n=Nn==null?void 0:Nn.challenge_names)==null?void 0:$n.map((fe,Te)=>yt.createElement("div",{className:Xn.shixun},yt.createElement("span",{className:Xn.qtitle},yt.createElement("span",{style:{marginRight:10}},"\u7B2C",(0,mt.EM)(Te+1),"\u9898"),fe)))),(Nn==null?void 0:Nn.question_type)===6&&yt.createElement("div",{className:Xn.program},yt.createElement(Rt.Z,{className:Xn.content,value:((ui=Nn==null?void 0:Nn.program_attr)==null?void 0:ui.description)||"- -"})),(Nn==null?void 0:Nn.question_type)===7&&((Sn=Nn==null?void 0:Nn.sub_item_banks)==null?void 0:Sn.map((fe,Te)=>{var hi,ee,nn,Vn,_n;return yt.createElement("div",null,yt.createElement("div",{className:Xn.combination},yt.createElement("span",{className:Xn.qtitle},fe==null?void 0:fe.name)),yt.createElement("div",{className:Xn.warp,style:{padding:"0px",paddingTop:20}},yt.createElement("div",null,((fe==null?void 0:fe.item_type)=="SINGLE"||(fe==null?void 0:fe.item_type)=="JUDGMENT")&&((hi=fe==null?void 0:fe.choices)==null?void 0:hi.map((Ke,Gn)=>yt.createElement("div",{className:Xn.redio},!(Ke!=null&&Ke.is_answer)&&yt.createElement("span",{className:Xn.redioitem}),(Ke==null?void 0:Ke.is_answer)&&yt.createElement("i",{className:`${Xn.redioitemyes} icon-duigou1`}),yt.createElement(Rt.Z,{className:Ke!=null&&Ke.is_answer?Xn.titleyes:Xn.title,value:wt[Gn]+(Ke==null?void 0:Ke.choice_text)}),(Ke==null?void 0:Ke.is_answer)&&yt.createElement("div",{className:Xn.yestag},"\u6B63\u786E\u7B54\u6848")))),(fe==null?void 0:fe.item_type)=="MULTIPLE"&&((ee=fe==null?void 0:fe.choices)==null?void 0:ee.map((Ke,Gn)=>yt.createElement("div",{className:Xn.checkbox},!(Ke!=null&&Ke.is_answer)&&yt.createElement("span",{className:Xn.checkboxitem}),(Ke==null?void 0:Ke.is_answer)&&yt.createElement("i",{className:`${Xn.checkboxitemyes} icon-duigou1`}),yt.createElement(Rt.Z,{className:Ke!=null&&Ke.is_answer?Xn.titleyes:Xn.title,value:wt[Gn]+(Ke==null?void 0:Ke.choice_text)}),(Ke==null?void 0:Ke.is_answer)&&yt.createElement("div",{className:Xn.yestag},"\u6B63\u786E\u7B54\u6848")))),(fe==null?void 0:fe.item_type)=="COMPLETION"&&yt.createElement("div",{className:Xn.completion},(nn=fe==null?void 0:fe.standard_answer)==null?void 0:nn.map((Ke,Gn)=>{var ai;return yt.createElement("div",{style:{display:"flex"}},yt.createElement("span",{className:Xn.title},"\u586B\u7A7A\u9879",Gn+1),yt.createElement("div",{className:Xn.content},(ai=Ke==null?void 0:Ke.answer_text)==null?void 0:ai.map((ni,ki)=>yt.createElement("div",{className:Xn.items},ni))))})),(fe==null?void 0:fe.item_type)=="SUBJECTIVE"&&yt.createElement("div",{className:Xn.simple},yt.createElement("div",{className:Xn.title},"\u53C2\u8003\u7B54\u6848"),yt.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(Vn=fe==null?void 0:fe.answer_texts)!=null&&Vn[0]?yt.createElement(Rt.Z,{className:Xn.content,value:(_n=fe==null?void 0:fe.answer_texts)==null?void 0:_n[0]}):yt.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))))))})),(Nn==null?void 0:Nn.question_type)===8&&yt.createElement("div",null,yt.createElement(Rt.Z,{disabledFill:!0,className:Xn.content,showProgramFill:!0,value:At.Base64.decode(((oi=Nn==null?void 0:Nn.program_attr)==null?void 0:oi.code)||"")})),(Nn==null?void 0:Nn.question_type)===5&&yt.createElement("div",{style:{background:"#F6F7F9",padding:"0px 20px",height:46,lineHeight:"46px",marginTop:40,display:"flex",alignItems:"center"}},yt.createElement("div",{style:{flex:1,alignItems:"center",display:"flex"}},yt.createElement("div",{style:{marginRight:30}},yt.createElement("span",{style:{marginRight:10}},"\u521B\u5EFA\u8005"),yt.createElement("span",{style:{color:"#000000"}},(Nn==null?void 0:Nn.author_name)||"- -")),yt.createElement("div",{style:{marginRight:30}},yt.createElement("span",{style:{marginRight:10}},"\u6240\u5C5E\u5355\u4F4D"),yt.createElement("span",{style:{color:"#000000"}},(Nn==null?void 0:Nn.author_school_name)||"- -")),yt.createElement("div",{style:{marginRight:30}},yt.createElement("span",{style:{marginRight:10}},"\u5B66\u4E60\u4EBA\u6570"),yt.createElement("span",{style:{color:"#000000"}},(Nn==null?void 0:Nn.study_count)||"0"))),yt.createElement("a",{className:Xn.shixunbutton,href:`/shixuns/${Nn==null?void 0:Nn.identifier}/challenges?exercise=true`,target:"_blank"},yt.createElement("i",{onClick:()=>{},style:{marginRight:20},className:"iconfont icon-shixunkecheng mr5 "}),"\u5B9E\u8BAD\u8BE6\u60C5"))),((Nn==null?void 0:Nn.question_type)<=4||[6,8].includes(Nn==null?void 0:Nn.question_type))&&yt.createElement("div",{className:Xn.bottom},yt.createElement("div",{className:Xn.bottomitem},yt.createElement("span",{className:Xn.left},"\u89E3\u6790"),yt.createElement("span",{className:Xn.right},Nn!=null&&Nn.analysis?yt.createElement(Rt.Z,{value:Nn==null?void 0:Nn.analysis}):yt.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),yt.createElement("div",{className:Xn.bottomitem},yt.createElement("span",{className:Xn.left},"\u96BE\u5EA6"),yt.createElement("span",{className:Xn.right},(Nn==null?void 0:Nn.difficulty)===1?"\u7B80\u5355":(Nn==null?void 0:Nn.difficulty)===2?"\u9002\u4E2D":"\u56F0\u96BE")),yt.createElement("div",{className:Xn.bottomitem},yt.createElement("span",{className:Xn.left},"\u77E5\u8BC6\u70B9"),yt.createElement("span",{className:Xn.right},Nn!=null&&Nn.tag_discipline?Nn==null?void 0:Nn.tag_discipline:yt.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~")))))},kt=Dt(94890),$t=Dt(79751),un=Dt(88387),Ie=Dt(61485),Ue=Dt(59301),ne=Object.defineProperty,Oe=Object.defineProperties,Ne=Object.getOwnPropertyDescriptors,Xe=Object.getOwnPropertySymbols,En=Object.prototype.hasOwnProperty,In=Object.prototype.propertyIsEnumerable,An=(Nn,Cn,kn)=>Cn in Nn?ne(Nn,Cn,{enumerable:!0,configurable:!0,writable:!0,value:kn}):Nn[Cn]=kn,en=(Nn,Cn)=>{for(var kn in Cn||(Cn={}))En.call(Cn,kn)&&An(Nn,kn,Cn[kn]);if(Xe)for(var kn of Xe(Cn))In.call(Cn,kn)&&An(Nn,kn,Cn[kn]);return Nn},ze=(Nn,Cn)=>Oe(Nn,Ne(Cn)),qe=(Nn,Cn,kn)=>new Promise((ve,ye)=>{var xe=ui=>{try{$n(kn.next(ui))}catch(Sn){ye(Sn)}},Kn=ui=>{try{$n(kn.throw(ui))}catch(Sn){ye(Sn)}},$n=ui=>ui.done?ve(ui.value):Promise.resolve(ui.value).then(xe,Kn);$n((kn=kn.apply(Nn,Cn)).next())});const pn=({setScoreShow:Nn,ScoreShow:Cn,onOk:kn,isshixuns:ve,isloadings:ye,dispatch:xe,selectedIds:Kn,user:$n,virtualId:ui,shixunsDetail:Sn})=>{var oi;let[fe,Te]=(0,yt.useState)({type:"0",page:1,per_page:10,updated_at:"",quotes:"",item_type:"PROGRAM"}),[hi,ee]=(0,yt.useState)([]),[nn,Vn]=(0,yt.useState)([]),[_n,Ke]=(0,yt.useState)([]),[Gn,ai]=(0,yt.useState)([]);const[ni,ki]=(0,yt.useState)(!1),[xi]=Yt.default.useForm(),[gi,Li]=(0,yt.useState)(),[Zi,tr]=(0,yt.useState)(!1);let[zi,wn]=(0,yt.useState)(ve);const[Rr,Lr]=(0,yt.useState)([]),[Hr,dn]=(0,yt.useState)(0),[Mi,Vi]=(0,yt.useState)(!0),[Qi,qi]=(0,yt.useState)([]),[cr,Ar]=(0,yt.useState)([]),ji=[{name:"\u5168\u90E8",value:"",question_type:0},{name:"\u5355\u9009\u9898",value:"SINGLE",question_type:0},{name:"\u591A\u9009\u9898",value:"MULTIPLE",question_type:1},{name:"\u5224\u65AD\u9898",value:"JUDGMENT",question_type:2},{name:"\u586B\u7A7A\u9898",value:"COMPLETION",question_type:3},{name:"\u7B80\u7B54\u9898",value:"SUBJECTIVE",question_type:4},{name:"\u5B9E\u8BAD\u9898",value:"SHIXUN",question_type:5},{name:"\u7F16\u7A0B\u9898",value:"PROGRAM",question_type:6},{name:"\u7EC4\u5408\u9898",value:"COMBINATION",question_type:7},{name:"\u7A0B\u5E8F\u586B\u7A7A\u9898",value:"BPROGRAM",question_type:8}],[er,Hi]=(0,yt.useState)([]),cn=(0,yt.useRef)(new Set),lr=(0,yt.useRef)(new Set),xn=(0,yt.useRef)(1),wi=[{name:"\u7B80\u5355",value:1},{name:"\u9002\u4E2D",value:2},{name:"\u56F0\u96BE",value:3}],Xi=[{name:"\u521D\u7EA7",value:1},{name:"\u4E2D\u7EA7",value:2},{name:"\u4E2D\u9AD8\u7EA7",value:3},{name:"\u9AD8\u7EA7",value:4}],Sr=[{name:"\u672A\u53D1\u5E03",value:"unpublish"},{name:"\u9759\u9ED8\u53D1\u5E03",value:"silent_publish"},{name:"\u516C\u5F00\u53D1\u5E03",value:"public_publish"}],[ao,co]=(0,yt.useState)(!1),qr=()=>{xi.resetFields(),zi=!1,wn(!1),co(!1),xi.submit()};(0,yt.useEffect)(()=>{Cn&&(xi.setFieldsValue({item_type:"",courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,teach_group_id:null}),Mi&&zi&&(xi.setFieldsValue({item_type:"SHIXUN"}),fe.item_type="SHIXUN",Te(en({},fe)),Vi(!1)),fe.type="0",Vn(Kn),Ke(Kn),lr.current=new Set(Kn),io(fe),$e(),Rn({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}),on())},[Cn]),console.log(nn,_n,"listitems"),(0,yt.useEffect)(()=>{Hr>0&&setTimeout(()=>{dn(0)},2e3)},[Hr]);function io(ie){return qe(this,null,function*(){var ke,He,_e;if(ki(!0),Te(en({},ie)),(_n==null?void 0:_n.length)<=0&&ie.type==="5"){ai([]),ki(!1);return}let hn=ie.type==="5"?_n==null?void 0:_n.filter(zt=>!Rr.includes(zt)):null,mi=ie.type==="5"?_n==null?void 0:_n.filter(zt=>Rr.includes(zt)):null;xn.current=xn.current+1;const Et=xn.current;let qt=yield(0,On.ZP)("/api/item_banks.json",{method:"get",params:ze(en({},ie),{discipline_id:((ke=ie==null?void 0:ie.courseid)==null?void 0:ke[0])||null,sub_discipline_id:((He=ie==null?void 0:ie.courseid)==null?void 0:He[1])||null,ids:hn,shixun_ids:mi,include_shixuns:!0,group_id:((_e=ie.group_id)==null?void 0:_e.map(zt=>zt==null?void 0:zt.value))||null,keyword:ie.keyword?encodeURIComponent(ie.keyword):ie.keyword,type:ie.type==="5"?null:ie.type,clazz:ie.type==="3"?"ItemBanksGroup":null})});xn.current===Et&&(ai(qt),ki(!1))})}function $e(){return qe(this,null,function*(){let ie=yield(0,On.ZP)("/api/disciplines.json",{method:"get",params:{source:"question",group_id:0,group_type:fe.type==="5"?null:fe.type,clazz:"ItemBanksGroup"}});ee((0,Ai.L)(ie==null?void 0:ie.disciplines))})}function Rn(ie){return qe(this,null,function*(){var ke;let He=yield(0,On.ZP)("/api/item_banks_groups/for_problemset.json",{method:"post",body:ie}),_e=[{title:"\u6839\u76EE\u5F55",id:0,pid:0,value:0,key:0,isLeaf:!1,children:(ke=He==null?void 0:He.data)==null?void 0:ke.map(hn=>({title:hn.name,id:hn.id,pid:hn.id,value:hn.id,key:hn.id,isLeaf:!hn.have_child}))}];qi(_e)})}function on(){return qe(this,null,function*(){let ie=yield(0,un.Dm)({});(ie==null?void 0:ie.status)===0&&Ar(ie==null?void 0:ie.groups)})}function Bt(ie){return qe(this,null,function*(){var ke,He,_e,hn;ki(!0);let mi=(ke=ie.list)==null?void 0:ke.filter(zt=>!Rr.includes(zt)),Et=(He=ie.list)==null?void 0:He.filter(zt=>Rr.includes(zt));if(mi.length===0&&Et.length===0){ki(!1),ai([]);return}let qt=yield(0,On.ZP)("/api/item_banks.json",{method:"get",params:ze(en({},ie),{discipline_id:((_e=ie==null?void 0:ie.courseid)==null?void 0:_e[0])||null,sub_discipline_id:((hn=ie==null?void 0:ie.courseid)==null?void 0:hn[1])||null,ids:mi,shixun_ids:Et,type:ie.type==="5"?null:ie.type,clazz:ie.type==="3"?"ItemBanksGroup":null})});ki(!1),ai(qt)})}const Zt=ie=>qe(void 0,null,function*(){const ke=yield xe({type:"shixunsDetail/release",payload:{id:ie}});let He=ke==null?void 0:ke.tag_position,_e=(ke==null?void 0:ke.evaluation_set_position)||[],hn=ke.status;return hn===0?(nt.ZP.success("\u53D1\u5E03\u6210\u529F"),io(fe),!0):(hn===2?nt.ZP.error(`\u7B2C${_e.join(",")}\u5173\u5C1A\u672A\u5B8C\u6210\uFF0C\u65E0\u6CD5\u7533\u8BF7\u53D1\u5E03`):hn===3?nt.ZP.error(`\u6BCF\u4E00\u4E2A\u5173\u5361\u81F3\u5C11\u9700\u8981\u4E00\u4E2A\u6280\u80FD\u6807\u7B7E, \u7B2C${He.join(",")}\u5173\u5C1A\u672A\u8BBE\u7F6E\u6280\u80FD\u6807\u7B7E\uFF0C\u8BF7\u8865\u5145`):nt.ZP.error("\u5C1A\u672A\u521B\u5EFA\u4EFB\u52A1\u7684\u5B9E\u8BAD\uFF0C\u4E0D\u80FD\u7533\u8BF7\u53D1\u5E03"),!1)}),Gt=ie=>(ie==null?void 0:ie.shixun_tag_num)===1?"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528\uFF0C\u8BF7\u5148\u8FDB\u884C\u53D1\u5E03":"",he=()=>ni?"\u6682\u65E0\u6570\u636E":fe.type==="3"&&!(cr!=null&&cr.length)?Ue.createElement("span",null,"\u4F60\u8FD8\u672A\u52A0\u5165\u6559\u7814\u56E2\u961F\uFF0C\u8BF7\u5148 ",Ue.createElement("span",{onClick:()=>{var ie;return(0,mt.xg)(`/users/${(ie=$n==null?void 0:$n.userInfo)==null?void 0:ie.login}/teach-group`)},style:{color:"#3061D0",cursor:"pointer"}},"\u65B0\u521B\u5EFA\u6559\u7814\u56E2\u961F")):fe.type==="0"&&(Gn==null?void 0:Gn.items_count)===0&&!(fe!=null&&fe.tag_discipline_id)&&!(fe!=null&&fe.difficulty)&&!(fe!=null&&fe.keyword)&&!(fe!=null&&fe.group_id)&&!(fe!=null&&fe.difficulty)?Ue.createElement("span",null,"\u4F60\u8FD8\u672A\u521B\u5EFA\u8FC7\u7F16\u7A0B\u9898\uFF0C\u8BF7\u5148 ",Ue.createElement("span",{onClick:()=>{(0,mt.xg)(`/problems/newcreate?&pageId=${ui}`),Nn(!1)},style:{color:"#3061D0",cursor:"pointer"}},"\u521B\u5EFA\u7F16\u7A0B\u9898")):"\u6682\u65E0\u6570\u636E",Be=(ie,ke,He)=>ie.map(_e=>_e.key===ke?en(en({},_e),He):_e.children?ze(en({},_e),{children:Be(_e.children,ke,He)}):_e),rn=ie=>qe(void 0,null,function*(){const{key:ke}=ie;let He=fe.type;const _e=yield(0,un.ex)({page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",group_id:Math.abs(ke),type:He}),{data:hn,total_count:mi}=_e||{};mi>0&&qi(Et=>Be(Et,ke,{children:hn.map(qt=>({title:qt.name,id:qt.id,pid:qt.id,value:qt.id,key:qt.id,isLeaf:!qt.have_child}))}))});return Ue.createElement("div",null,Ue.createElement(Ce.default,{title:!1,footer:!1,open:Cn,width:1200,centered:!0,className:Pe.scoremodal,onCancel:()=>{Nn(!1)}},Ue.createElement("div",{style:{display:"flex",alignItems:"center"}},Ue.createElement("div",{className:Pe.title},"\u9009\u62E9\u7F16\u7A0B\u9898")),Ue.createElement(ln.default,{className:Pe.tabWrap,activeKey:fe.type,onChange:ie=>{ie==="3"?(fe.show_all_share=!0,Rn({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"3"})):fe.show_all_share=null,ie==="0"&&Rn({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}),fe.type=ie,fe.page=1,fe.updated_at="",fe.quotes="",fe.courseid="",fe.tag_discipline_id=null,fe.difficulty=null,fe.keyword=null,fe.group_id=null,fe.teach_group_id=null,xi.setFieldsValue({courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,group_id:[],teach_group_id:null}),(fe==null?void 0:fe.item_type)==="SHIXUN"&&fe.type!=="5"&&(zi=!0,wn(!0)),co(!1),fe.type==="5"&&(zi=!1,wn(!1)),Te(en({},fe)),io(en({},fe)),$e()},items:[{label:"\u6211\u521B\u5EFA\u7684",key:"0"},{label:"\u56E2\u961F\u5171\u4EAB",key:"3"},{label:"\u516C\u5171",key:"1"},{label:Ue.createElement("div",null,"\u5DF2\u9009",_n.length>0&&Ue.createElement("span",{className:Pe.titlecount},_n.length),Hr>0&&Ue.createElement("span",{className:Pe.add},"+",Hr)),key:"5"}]}),Ue.createElement(Yt.default,{layout:"inline",form:xi,onValuesChange:(ie,ke)=>{const He=Object.values(ke).some(hn=>hn!==null&&hn!==""&&hn!==void 0),_e=ke.keyword==="";if(co(He||!_e),fe.page=1,(ke==null?void 0:ke.item_type)==="SHIXUN"){if(fe.type==="5"?wn(!1):wn(!0),ie.keyword||ie.keyword==="")return;xi.submit()}else{if(ie!=null&&ie.courseid&&xi.setFieldsValue({tag_discipline_id:""}),wn(!1),ie.keyword||ie.keyword==="")return;xi.submit()}},onFinish:ie=>{var ke;fe.type==="3"&&(!ie.group_id||((ke=ie==null?void 0:ie.group_id)==null?void 0:ke.length)===0)?fe.show_all_share=!0:fe.show_all_share=null,Te(en(en({},fe),ie)),io(en(en({},fe),ie))}},Ue.createElement(Yt.default.Item,{name:"courseid"},Ue.createElement(qn.Z,{className:Pe.selectWrapper,style:{width:160},size:"middle",placeholder:"\u65B9\u5411&\u8BFE\u7A0B",options:hi})),!zi&&Ue.createElement(Yt.default.Item,{name:"tag_discipline_id"},Ue.createElement(Dn.default,{className:Pe.selectWrapper,placeholder:"\u77E5\u8BC6\u70B9",style:{width:160},size:"middle",allowClear:!0},(oi=Gn==null?void 0:Gn.tag_disciplines)==null?void 0:oi.map(ie=>Ue.createElement(Dn.default.Option,{key:ie.id},ie.name)))),Ue.createElement(Yt.default.Item,{name:zi?"diff":"difficulty"},Ue.createElement(Dn.default,{className:Pe.selectWrapper,placeholder:"\u96BE\u5EA6",style:{width:118},size:"middle",allowClear:!0},!zi&&wi.map(ie=>Ue.createElement(Dn.default.Option,{key:ie.value},ie.name)),zi&&Xi.map(ie=>Ue.createElement(Dn.default.Option,{key:ie.value},ie.name)))),zi&&Ue.createElement(Yt.default.Item,{name:"shixun_publish_status"},Ue.createElement(Dn.default,{className:Pe.selectWrapper,placeholder:"\u5168\u90E8\u72B6\u6001",style:{width:118},size:"middle",allowClear:!0},Sr.map(ie=>Ue.createElement(Dn.default.Option,{key:ie.value},ie.name)))),fe.type==="3"&&!zi&&Ue.createElement(Yt.default.Item,{name:"teach_group_id"},Ue.createElement(Dn.default,{className:Pe.selectWrapper,placeholder:"\u56E2\u961F",style:{width:118},size:"middle",showSearch:!0,allowClear:!0,filterOption:(ie,ke)=>(console.log("---",ie,ke),ke.children.toUpperCase().indexOf(ie.toUpperCase())!==-1)},cr==null?void 0:cr.map(ie=>Ue.createElement(Dn.default.Option,{key:ie.group_id},ie.name)))),(fe.type==="3"||fe.type==="0")&&!zi&&Ue.createElement(Yt.default.Item,{name:"group_id"},Ue.createElement(fi.default,{treeDataSimpleMode:!0,style:{width:118},className:Pe.selectWrappers,multiple:!0,allowClear:!0,showSearch:!0,filterTreeNode:(ie,ke)=>ke.title.toUpperCase().indexOf(ie.toUpperCase())!==-1,dropdownStyle:{maxHeight:400,width:500,overflow:"auto"},placeholder:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939",treeCheckStrictly:!0,loadData:rn,treeDefaultExpandedKeys:[0],maxTagCount:0,treeCheckable:!0,treeData:Qi})),ao&&Ue.createElement("span",{className:Pe.allqingchu,onClick:qr},Ue.createElement("i",{className:"iconfont icon-guanbi4"}),Ue.createElement("span",null,"\u6E05\u9664\u7B5B\u9009\u6761\u4EF6")),Ue.createElement(Yt.default.Item,{style:{flex:"0 0 auto",marginRight:0,marginLeft:"auto"},name:"keyword"},Ue.createElement(Mt.default.Search,{className:Pe.search,placeholder:"\u8BF7\u8F93\u5165\u8BD5\u9898\u7F16\u53F7\u6216\u5173\u952E\u8BCD\u641C\u7D22",allowClear:!0,suffix:Ue.createElement("i",{className:`iconfont icon-sousuo9 font14 ${Pe.searchIcon}`,onClick:()=>xi.submit()}),onSearch:ie=>{xi.submit()}}))),Ue.createElement("div",{style:{background:"#F6F7F9",display:"flex",alignItems:"center",marginTop:18,height:40,paddingLeft:10,paddingRight:20}},Ue.createElement("div",{onClick:()=>{fe.updated_at==="asc"?fe.updated_at="desc":fe.updated_at="asc",Te(ze(en({},fe),{page:1})),io(ze(en({},fe),{page:1}))}}," ",fe.updated_at?Ue.createElement("img",{src:fe.updated_at==="asc"?kt.Z:$t.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):Ue.createElement("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"\u6309\u66F4\u65B0\u65F6\u95F4\u6392\u5E8F"),Ue.createElement("div",{onClick:()=>{fe.quotes==="asc"?fe.quotes="desc":fe.quotes="asc",Te(ze(en({},fe),{page:1})),io(ze(en({},fe),{page:1}))},style:{marginLeft:20}}," ",fe.quotes?Ue.createElement("img",{src:fe.quotes==="asc"?kt.Z:$t.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):Ue.createElement("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"\u6309\u4F7F\u7528\u6B21\u6570\u6392\u5E8F")),Ue.createElement(Re.default,{style:{marginTop:2,marginBottom:20},scroll:{y:260},dataSource:(Gn==null?void 0:Gn.items)||(Gn==null?void 0:Gn.shixun_list),pagination:!1,locale:{emptyText:Ue.createElement(Jt.Z,{styles:{margin:"18px auto"},customText:he()})},loading:ni,rowKey:ie=>ie.id,rowSelection:{type:"checkbox",selectedRowKeys:nn,getCheckboxProps:ie=>({disabled:ie.shixun_tag_num===1}),onSelect(ie,ke,He){if(ke)zi&&Lr([...Rr,ie.id]),Vn([...nn,ie.id]),Hi([...er,ie]),ie.identifier?cn.current.add(ie.id):lr.current.add(ie.id),dn(1),Ke([..._n,ie.id]);else{const _e=er.filter(Et=>Et.id!==ie.id);Hi(_e);const hn=_e.map(Et=>Et.id);Vn([...hn]),ie.identifier?cn.current.delete(ie.id):lr.current.delete(ie.id);let mi=_n.filter(Et=>Et!==ie.id);if(Ke(mi),zi){let Et=Rr.filter(qt=>qt!==ie.id);Lr([...Et])}if(fe.type==="5"){Bt(ze(en({},fe),{list:[...mi]}));return}}},onSelectAll(ie,ke,He){if(ie){const _e=He.map(hn=>hn.id);zi&&Lr([...Rr,..._e]),Hi([...er,...He]),Vn([...nn,..._e]),Ke([..._n,..._e]);for(const hn of He)hn.identifier?cn.current.add(hn.id):lr.current.add(hn.id)}else{const _e=He.map(Et=>Et.id),hn=nn.filter(Et=>!_e.some(qt=>qt===Et)),mi=er.filter(Et=>!_e.some(qt=>qt===Et.id));if(Hi(mi),Vn([...hn]),Ke([...hn]),zi){let Et=Rr.filter(qt=>!_e.some(zt=>zt===qt.id));Lr([...Et])}fe.type==="5"&&Bt(ze(en({},fe),{list:[...hn]}));for(const Et of _e)Et.identifier?cn.current.delete(Et):lr.current.delete(Et)}}},columns:[{title:"\u8BD5\u9898\u7F16\u53F7",dataIndex:"id",key:"id",width:110,render:(ie,ke,He)=>{const _e=`No.${ie}`;return Ue.createElement(We.Z,{title:_e},Ue.createElement("span",null,_e))}},{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",width:zi?"30%":"60%",key:"name",render:(ie,ke,He)=>{var _e;return Ue.createElement(We.Z,{title:Gt(ke)},Ue.createElement("span",null,Ue.createElement(Rt.Z,{key:1,showLines:1,showTextOnly:!0,value:zi||ke!=null&&ke.challenge_names?ke!=null&&ke.title||ie===null?"--":ie:(ke==null?void 0:ke.item_type)=="BPROGRAM"?(_e=ke==null?void 0:ke.program_attr)==null?void 0:_e.description:ie})))}},{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_discipline",key:"tag_discipline",ellipsis:!0,width:150,render:(ie,ke,He)=>Ue.createElement(We.Z,{title:ie},Ue.createElement("span",null,ie||"- -"))},{title:"\u521B\u5EFA\u8005",dataIndex:"author_name",key:"author_name",hidden:!zi,render:(ie,ke,He)=>{var _e;return Ue.createElement(We.Z,{title:Gt(ke)},Ue.createElement("span",null,ie?(_e=ie==null?void 0:ie.split("\u3001"))==null?void 0:_e[0]:"- -"))}},{title:"\u6240\u5C5E\u5355\u4F4D",dataIndex:"author_school_name",key:"author_school_name",hidden:!zi,render:(ie,ke,He)=>Ue.createElement(We.Z,{title:Gt(ke)},Ue.createElement("span",null,ie||"- -"))},{title:"\u96BE\u5EA6",dataIndex:"difficulty",key:"difficulty",width:50,render:(ie,ke,He)=>{var _e,hn,mi,Et;return Ue.createElement(We.Z,{title:Gt(ke)},Ue.createElement("div",null,zi||ke!=null&&ke.challenge_names?(ke==null?void 0:ke.level)||((hn=(_e=wi==null?void 0:wi.filter(qt=>qt.value===ie))==null?void 0:_e[0])==null?void 0:hn.name):(Et=(mi=wi==null?void 0:wi.filter(qt=>qt.value===ie))==null?void 0:mi[0])==null?void 0:Et.name))}},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",hidden:!zi,render:(ie,ke,He)=>Ue.createElement(We.Z,{title:Gt(ke)},Ue.createElement("div",null,ie||"- -"))},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"quotes",key:"quotes",width:74,render:(ie,ke,He)=>Ue.createElement(We.Z,{title:Gt(ke)},Ue.createElement("div",null,zi||ke!=null&&ke.challenge_names?(ke==null?void 0:ke.study_count)||(ke==null?void 0:ke.stu_num):ie))},{title:Ue.createElement("span",null,"\u53D1\u5E03\u72B6\u6001 ",Ue.createElement(We.Z,{title:"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528"},Ue.createElement(Ie.Z,null))),dataIndex:"shixun_tag_num_name",key:"shixun_tag_num_name",hidden:!zi,render:(ie,ke,He)=>Ue.createElement(We.Z,{title:Gt(ke)},Ue.createElement("div",null,ie||"- -"))},{title:"\u64CD\u4F5C",dataIndex:"id",key:"item_type",width:50,align:"right",render:(ie,ke,He)=>Ue.createElement(We.Z,{title:Gt(ke)},Ue.createElement("div",{style:{flex:1,textAlign:"start"}},Ue.createElement("a",{onClick:()=>{var _e,hn;Li(ze(en({},ke),{question_type:zi||ke!=null&&ke.challenge_names?5:(hn=(_e=ji==null?void 0:ji.filter(mi=>mi.value===(ke==null?void 0:ke.item_type)))==null?void 0:_e[0])==null?void 0:hn.question_type})),tr(!0)}},"\u67E5\u770B"),(ke==null?void 0:ke.shixun_tag_num)===1&&Ue.createElement("a",{style:{marginLeft:10},onClick:()=>{Ce.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,width:400,content:Ue.createElement("div",null,"\u662F\u5426\u786E\u5B9A\u53D1\u5E03",Ue.createElement("span",{style:{cursor:"pointer",color:"#3061D0"},onClick:()=>{window.open(`/shixuns/${ke==null?void 0:ke.identifier}/challenges`)}},(ke==null?void 0:ke.shixun_name)||"--"),"\uFF1F"),onOk:()=>qe(void 0,null,function*(){if(!Zt(ke==null?void 0:ke.identifier))return new Promise((_e,hn)=>{hn()})})})}},"\u53D1\u5E03")))}].filter(ie=>!ie.hidden)}),Ue.createElement(Ve.Z,{current:fe.page,total:(Gn==null?void 0:Gn.items_count)||(Gn==null?void 0:Gn.shixuns_count),style:{marginBottom:20},defaultPageSize:fe.per_page,hideOnSinglePage:!(Gn!=null&&Gn.items_count),showTotal:ie=>Ue.createElement("span",null,"\u5171\xA0",Ue.createElement("span",{style:{color:"#165DFF"}},ie),"\xA0\u6761\u6570\u636E"),pageSize:fe.per_page,onChange:(ie,ke)=>{fe.page=ie,fe.per_page=ke,Te(en({},fe)),io(en({},fe))}}),Ue.createElement("div",{className:Pe.bottom},Ue.createElement(Ze.ZP,{className:Pe.no,onClick:()=>{Nn(!1)}},"\u53D6\u6D88"),Ue.createElement(Ze.ZP,{loading:ye,style:{width:ye&&75},className:Pe.yes,onClick:()=>qe(void 0,null,function*(){if((_n==null?void 0:_n.length)<=0){nt.ZP.info("\u5F53\u524D\u6682\u672A\u9009\u62E9\u6570\u636E");return}kn([...lr.current],[...cn.current],!0,_n==null?void 0:_n.length)})},"\u786E\u8BA4"))),Ue.createElement(Ce.default,{open:Zi,title:"\u9898\u76EE\u8BE6\u60C5",footer:!1,className:Pe.previewModal,width:1e3,centered:!0,onCancel:()=>{tr(!1)},onOk:()=>{tr(!1)}},Ue.createElement(Kt,{qitem:gi})))};var bn=(0,St.connect)(({shixunsDetail:Nn,user:Cn})=>({shixunsDetail:Nn,user:Cn}))(pn),Yn=Dt(18722),ti=Dt(61186),yi=Dt.n(ti),vn=Dt(59301),Pi=Object.defineProperty,Ki=Object.defineProperties,pr=Object.getOwnPropertyDescriptors,or=Object.getOwnPropertySymbols,ir=Object.prototype.hasOwnProperty,vr=Object.prototype.propertyIsEnumerable,ur=(Nn,Cn,kn)=>Cn in Nn?Pi(Nn,Cn,{enumerable:!0,configurable:!0,writable:!0,value:kn}):Nn[Cn]=kn,hr=(Nn,Cn)=>{for(var kn in Cn||(Cn={}))ir.call(Cn,kn)&&ur(Nn,kn,Cn[kn]);if(or)for(var kn of or(Cn))vr.call(Cn,kn)&&ur(Nn,kn,Cn[kn]);return Nn},Ji=(Nn,Cn)=>Ki(Nn,pr(Cn)),xr=(Nn,Cn)=>{var kn={};for(var ve in Nn)ir.call(Nn,ve)&&Cn.indexOf(ve)<0&&(kn[ve]=Nn[ve]);if(Nn!=null&&or)for(var ve of or(Nn))Cn.indexOf(ve)<0&&vr.call(Nn,ve)&&(kn[ve]=Nn[ve]);return kn},Ct=(Nn,Cn,kn)=>new Promise((ve,ye)=>{var xe=ui=>{try{$n(kn.next(ui))}catch(Sn){ye(Sn)}},Kn=ui=>{try{$n(kn.throw(ui))}catch(Sn){ye(Sn)}},$n=ui=>ui.done?ve(ui.value):Promise.resolve(ui.value).then(xe,Kn);$n((kn=kn.apply(Nn,Cn)).next())});const yn=({title:Nn,icon:Cn,className:kn,style:ve,children:ye})=>vn.createElement("div",{className:Fe()(te.card,kn),style:ve},vn.createElement("div",{className:te.head},vn.createElement("i",{className:Cn}),vn.createElement("b",null,Nn)),vn.createElement("div",{className:te.element},ye)),Zn=Nn=>{var Cn=Nn,{value:kn,onChange:ve}=Cn,ye=xr(Cn,["value","onChange"]);return vn.createElement(jt.Z,Ji(hr({},ye),{defaultValue:kn,onChange:ve}))},dr=({value:Nn=[],onChange:Cn,params:kn,className:ve})=>{const[ye,xe]=(0,yt.useState)(!1),[Kn,$n]=(0,yt.useState)([]),[ui,Sn]=(0,yt.useState)(""),[oi,fe]=(0,yt.useState)([]),[Te,hi]=(0,yt.useState)("");(0,yt.useEffect)(()=>{ee()},[]);function ee(){return Ct(this,null,function*(){let nn=yield(0,On.ZP)(`/api/courses/${kn==null?void 0:kn.coursesId}/teachers`,{method:"get",params:{homework_id:kn.categoryId,limit:1e3}});fe((nn==null?void 0:nn.teacher_list)||[])})}return vn.createElement(yt.Fragment,null,vn.createElement("div",{className:Fe()(te.collaborator,ve)},Nn==null?void 0:Nn.map(nn=>vn.createElement(ge.Z,{align:"middle",className:`${te.btn} ${Te==(nn==null?void 0:nn.user_id)?te.delBorder:""}`,key:nn.user_id},vn.createElement("span",{className:"c-grey-333"},nn==null?void 0:nn.name),vn.createElement("span",{className:`iconfont icon-guanbi11 current ml20 c-grey-ccc ${te.delSty}`,onMouseEnter:()=>{hi(nn==null?void 0:nn.user_id)},onMouseLeave:()=>{hi("")},onClick:()=>{const Vn=Nn.filter(_n=>_n.user_id!==nn.user_id);$n(Vn.map(_n=>_n.user_id)),Cn(Vn)}}))),vn.createElement(Ze.ZP,{className:te.copHover,style:{height:38,padding:"6px 15px"},type:"primary",ghost:!0,onClick:()=>xe(!0)},"\u6DFB\u52A0\u534F\u4F5C\u8005")),vn.createElement(Ce.default,{title:"\u6DFB\u52A0\u534F\u4F5C\u8005",open:ye,onCancel:()=>xe(!1),onOk:()=>{const nn=oi.filter(Vn=>Kn.includes(Vn.user_id));Cn(nn),xe(!1)},afterClose:()=>{Sn("")}},vn.createElement(ge.Z,{align:"middle"},vn.createElement("label",null,"\u59D3\u540D\uFF1A"),vn.createElement(Mt.default.Search,{value:ui,size:"middle",style:{flex:1},onChange:nn=>Sn(nn.target.value)})),vn.createElement(Re.default,{style:{marginTop:10,height:300,overflow:"auto"},rowSelection:{type:"checkbox",onChange:nn=>{$n(nn)},selectedRowKeys:Kn,getCheckboxProps:nn=>({disabled:nn.is_collaborator})},pagination:!1,rowKey:"user_id",size:"middle",dataSource:oi.filter(nn=>nn.name.includes(ui)),columns:[{title:"\u59D3\u540D",dataIndex:"name"},{title:"\u89D2\u8272",dataIndex:"role"}]})))};var Oi=()=>{var Nn;const Cn=(0,St.useParams)(),kn=(0,St.useDispatch)(),[ve]=Yt.default.useForm(),ye=Yt.default.useWatch("hack_score_settings",ve),xe=Yt.default.useWatch("open_code",ve),Kn=Yt.default.useWatch("rank_forbidden",ve),$n=Yt.default.useWatch("hack_analysis",ve),ui=Yt.default.useWatch("hack_answer",ve),[Sn,oi]=(0,yt.useState)([]),[fe,Te]=(0,yt.useState)({}),[hi,ee]=(0,yt.useState)({course_end_date:null,manage_all_group:!0,send_type:0,can_publish:!0,difficult_settings:[],difficult_count:[],unified_setting:!0}),[nn,Vn]=(0,yt.useState)(!0),[_n,Ke]=(0,yt.useState)(!1),[Gn,ai]=(0,yt.useState)(!1),[ni,ki]=(0,yt.useState)({}),[xi,gi]=(0,yt.useState)(!1),[Li,Zi]=(0,yt.useState)(!1),tr=(0,yt.useRef)(!1),zi=(0,yt.useRef)(String(Math.random()).slice(-6)),wn=(Nn=window.location.pathname)==null?void 0:Nn.includes("add");(0,yt.useEffect)(()=>(window.addEventListener("visibilitychange",Rr),()=>{window.removeEventListener("visibilitychange",Rr)}),[Sn,ni]),(0,yt.useEffect)(()=>(kn({type:"globalSetting/footerToggle",payload:!1}),()=>{kn({type:"globalSetting/footerToggle",payload:!0})}),[]),(0,yt.useEffect)(()=>{Sn.length&&ye!==void 0&&Qi()},[ye,JSON.stringify(Sn==null?void 0:Sn.map(ji=>ji.id+ji.hack_score))]),(0,yt.useEffect)(()=>{Lr(),wn?Vn(!1):Hr()},[]);const Rr=()=>Ct(void 0,null,function*(){var ji;if(document.visibilityState==="visible"){Zi(!0);let er=Sn.map(lr=>lr.id),Hi=localStorage.getItem(zi.current);Hi&&(Hi=JSON.parse(Hi),Hi=Array.isArray(Hi)?Hi:[],er=[...er,...Hi],localStorage.removeItem(zi.current));const cn=yield(0,On.ZP)("/api/item_banks.json",{method:"get",params:{hack_item_bank_ids:er.length?er:-1,homework_common_id:wn?null:ni==null?void 0:ni.homework_id}});if(cn!=null&&cn.items){const lr=(ji=cn==null?void 0:cn.items)==null?void 0:ji.map(xn=>{const wi=Sn.find(Xi=>Xi.id===xn.id);return wi?Ji(hr({},xn),{hack_score:wi.hack_score}):xn});oi(lr)}Zi(!1)}}),Lr=()=>Ct(void 0,null,function*(){const ji=yield(0,On.ZP)(`/api/courses/${Cn.coursesId}/homework_commons/new.json`,{method:"get",params:{category:Cn==null?void 0:Cn.categoryId,type:5}});ji!=null&&ji.course_name&&Te(ji)}),Hr=()=>Ct(void 0,null,function*(){var ji,er;const Hi=yield(0,On.ZP)(`/api/homework_commons/${Cn==null?void 0:Cn.categoryId}/edit_hack.json`,{method:"get"});if((Hi==null?void 0:Hi.status)===0){const cn=(ji=Hi==null?void 0:Hi.collaborators_data)==null?void 0:ji.map(xn=>({user_id:xn.id,name:xn.real_name}));ve.setFieldsValue(Ji(hr({},Hi),{user_ids:cn,rank_forbidden_start:Hi!=null&&Hi.rank_forbidden_start?yi()(Hi==null?void 0:Hi.rank_forbidden_start):"",rank_forbidden_end:Hi!=null&&Hi.rank_forbidden_end?yi()(Hi==null?void 0:Hi.rank_forbidden_end):""}));const lr=(er=Hi==null?void 0:Hi.items)==null?void 0:er.map((xn,wi)=>{var Xi,Sr;return Ji(hr({},xn),{hack_score:(Sr=(Xi=Hi==null?void 0:Hi.hack_settings)==null?void 0:Xi[wi])==null?void 0:Sr.hack_score})});oi(lr||[]),ki(hr({},Hi))}Vn(!1)}),dn=()=>{let ji=`/classrooms/${Cn==null?void 0:Cn.coursesId}/program_homework`;return wn||(ji=`/classrooms/${Cn==null?void 0:Cn.coursesId}/program_homework/${Cn==null?void 0:Cn.categoryId}/detail`),ji},Mi=[{name:(fe==null?void 0:fe.course_name)||"",path:`/classrooms/${fe==null?void 0:fe.course_id}/program_homework`},{name:wn?"\u7F16\u7A0B\u4F5C\u4E1A":ni==null?void 0:ni.name,path:dn()},{name:(wn?"\u65B0\u5EFA":"\u7F16\u8F91")+"\u7F16\u7A0B\u4F5C\u4E1A"}],Vi=[{title:"\u5E8F\u53F7",dataIndex:"index",width:80,render:(ji,er,Hi)=>Hi+1},{title:"\u6807\u9898",dataIndex:"name",ellipsis:!0,render:ji=>vn.createElement(We.Z,{placement:"topLeft",title:ji},vn.createElement("span",null,ji||"--"))},{title:"\u5206\u503C",dataIndex:"hack_score",render:(ji,er,Hi)=>vn.createElement(Nt.Z,{disabled:ye!==2,size:"middle",min:0,precision:1,addonAfter:"\u5206",value:ji,onChange:cn=>{Sn[Hi].hack_score=cn;const lr=Sn.reduce((xn,wi)=>xn+Number(wi.hack_score||0),0);ve.setFieldsValue({total_score:lr.toFixed(2)}),oi([...Sn])}})},{title:"\u96BE\u5EA6",dataIndex:"difficulty",align:"center",width:90,render:ji=>vn.createElement("span",null,ji===1?"\u7B80\u5355":ji===2?"\u4E2D\u7B49":"\u56F0\u96BE")},{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_discipline",render:ji=>vn.createElement(We.Z,{placement:"topLeft",title:ji},vn.createElement("span",{style:{backgroundColor:"#ECFAF5",color:"#1B8565",overflow:"hidden",textOverflow:"ellipsis",padding:"2px 6px"}},ji||"--"))},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"quotes"},{title:"\u64CD\u4F5C",dataIndex:"action",width:146,render:(ji,er)=>vn.createElement("span",null,vn.createElement("span",{onClick:()=>Ct(void 0,null,function*(){var Hi;kn({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u521D\u59CB\u5316\uFF0C\u8BF7\u7A0D\u540E..."}});let cn=yield(0,On.ZP)(`/api/problems/${(Hi=er==null?void 0:er.program_attr)==null?void 0:Hi.identifier}/start.json`,{method:"get"});(cn==null?void 0:cn.status)===0&&(0,mt.xg)(`/myproblems/${cn==null?void 0:cn.identifier}?type=1&pageId=edit&backUrl=${dn()}`),kn({type:"globalSetting/setGlobalLoading",payload:{show:!1}})}),className:"c-light-primary current"},"\u4F53\u9A8C"),vn.createElement("span",{onClick:()=>{var Hi;return(0,mt.xg)(`/problems/newedit/${(Hi=er==null?void 0:er.program_attr)==null?void 0:Hi.identifier}?type=1&pageId=edit&backUrl=${window.location.pathname}`)},className:"c-light-primary current mr20 ml20"},"\u7F16\u8F91"),vn.createElement("span",{onClick:()=>{const Hi=Sn.filter(cn=>cn.id!==er.id);oi(Hi),nt.ZP.success("\u5220\u9664\u6210\u529F")},className:"current",style:{color:"#E30000"}},"\u5220\u9664"))}],Qi=()=>{const ji=[...Sn],er=ve.getFieldValue("total_score"),Hi=ji==null?void 0:ji.length;let cn=0,lr;switch(ye){case 0:const xn=(er/Hi).toFixed(2);ji.map(($e,Rn)=>{cn=Rn,$e.hack_score=xn>0?xn:0}),lr=(er-xn*(Hi-1)).toFixed(2),ji[cn].hack_score=lr>0?lr:0;break;case 1:const wi=[0,1,3,6];let Xi=0;const Sr=ji.filter($e=>$e.difficulty===1).length*wi[1],ao=ji.filter($e=>$e.difficulty===2).length*wi[2],co=ji.filter($e=>$e.difficulty===3).length*wi[3],qr=er/(Sr+ao+co);ji.map(($e,Rn)=>{cn=Rn,$e.hack_score=(wi[$e.difficulty]*qr).toFixed(2),Xi=Xi+Number($e.hack_score)});let io=ji[cn].hack_score;lr=(er-Xi+Number(io)).toFixed(2),ji[cn].hack_score=lr>0?lr:0;break}oi(ji)},qi=ji=>{tr.current=ji,ve.submit()},cr=ji=>Ct(void 0,null,function*(){var er;if(!Sn.length){nt.ZP.error("\u672A\u8BBE\u7F6E\u7F16\u7A0B\u9898\uFF0C\u8BF7\u6DFB\u52A0\u7F16\u7A0B\u9898"),ve.scrollToField("hack_score_settings",{behavior:"smooth",block:"center"});return}gi(!0);const Hi=[],cn=Sn.map(wi=>(Hi.push(wi.hack_id),{hack_id:wi.hack_id,hack_name:wi.name,hack_score:wi.hack_score,difficult:wi.difficulty})),lr=(er=ji==null?void 0:ji.user_ids)==null?void 0:er.map(wi=>wi.user_id),xn=yield(0,On.ZP)(`/api/courses/${Cn.coursesId}/homework_commons/create_hack_homework.json`,{method:"post",body:Ji(hr({},ji),{category:wn?Number(Cn==null?void 0:Cn.categoryId):null,homework_id:wn?null:ni==null?void 0:ni.homework_id,hack_settings:cn,user_ids:lr,hack_ids:Hi})});if((xn==null?void 0:xn.status)===0)if(nt.ZP.success("\u4FDD\u5B58\u6210\u529F"),tr.current){const wi=hr({},xn);ee(wi),kn({type:"classroomList/setActionTabs",payload:{key:"\u7ACB\u5373\u53D1\u5E03",selectArrs:[xn==null?void 0:xn.id],selectArrsAll:[wi],params:Cn,detail:!0,type:2,manage_all_group:wi==null?void 0:wi.manage_all_group}})}else St.history.push(`/classrooms/${Cn.coursesId}/program_homework/${xn==null?void 0:xn.id}/detail`);gi(!1)}),Ar=ji=>Ct(void 0,null,function*(){if(!ji.length){nt.ZP.warning("\u8BF7\u9009\u62E9\u7F16\u7A0B\u9898");return}if(ji.length>200){nt.ZP.warning("\u7F16\u7A0B\u9898\u6570\u91CF\u4E0D\u5F97\u8D85\u8FC7200\u9053");return}const er=[],Hi=Sn.map(xn=>{var wi;return(wi=xn.program_attr)==null?void 0:wi.origin_item_bank_id}),cn=[];ji.forEach(xn=>{if(Hi.includes(xn)){const wi=Sn.find(Xi=>{var Sr;return((Sr=Xi.program_attr)==null?void 0:Sr.origin_item_bank_id)===xn});cn.push(wi)}else er.push(xn)}),ai(!0);const lr=yield(0,On.ZP)("/api/problems/copy_item_banks.json",{method:"post",body:{ids:er}});if(lr!=null&&lr.items){const xn=[...cn,...lr==null?void 0:lr.items];if(ye===2){const wi=xn.reduce((Xi,Sr)=>Xi+Number(Sr.hack_score||0),0);ve.setFieldsValue({total_score:wi.toFixed(2)})}oi(xn),Ke(!1)}ai(!1)});return vn.createElement("div",{className:te.wrap},vn.createElement(et.Z,{spinning:nn},vn.createElement("div",{className:te.center},vn.createElement(be._b,{dataSource:Mi,className:"mb20"}),vn.createElement(Yt.default,{form:ve,preserve:!1,onValuesChange:ji=>{"total_score"in ji&&Qi()},onFinishFailed:ji=>Ct(void 0,null,function*(){var er,Hi;nt.ZP.error(ji.errorFields[0].errors[0]),ve.scrollToField((Hi=(er=ji==null?void 0:ji.errorFields)==null?void 0:er[0])==null?void 0:Hi.name,{behavior:"smooth",block:"center"})}),onFinish:cr,colon:!1,size:"large"},vn.createElement(yn,{className:"mb20",title:"\u57FA\u672C\u4FE1\u606F",icon:"iconfont icon-jibenxinxi2"},vn.createElement(Yt.default.Item,{label:"\u4F5C\u4E1A\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u540D\u79F0"},{whitespace:!0,message:"\u4F5C\u4E1A\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"}]},vn.createElement(Mt.default,{placeholder:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u540D\u79F0",showCount:!0,maxLength:60})),vn.createElement(Yt.default.Item,{labelCol:{flex:"81px"},label:"\u4F5C\u4E1A\u8BF4\u660E",name:"description",initialValue:"",rules:[{max:5e4,message:"\u4F5C\u4E1A\u8BF4\u660E\u6700\u5927\u9650\u523650000\u4E2A\u5B57\u7B26"}]},vn.createElement(Zn,{placeholder:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u8BF4\u660E\uFF0C\u6700\u5927\u9650\u523650000\u4E2A\u5B57\u7B26",watch:!0}))),vn.createElement(yn,{className:"mb20",title:"\u9898\u76EE\u8BBE\u7F6E",icon:"iconfont icon-timushezhi"},vn.createElement(Yt.default.Item,{label:"\u8BD5\u9898\u7F16\u7A0B\u8BED\u8A00",name:"languages",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BD5\u9898\u7F16\u7A0B\u8BED\u8A00"}]},vn.createElement(dt.default.Group,null,vn.createElement(dt.default,{value:"c"},"C\u8BED\u8A00"),vn.createElement(dt.default,{value:"c++"},"C++\u8BED\u8A00"),vn.createElement(dt.default,{value:"java"},"Java\u8BED\u8A00"),vn.createElement(dt.default,{value:"python"},"Python\u8BED\u8A00"))),vn.createElement(ge.Z,{align:"middle"},vn.createElement(Yt.default.Item,{label:"\u603B\u5206\u503C",name:"total_score",rules:[{required:!0,message:"\u603B\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A"}],initialValue:100},vn.createElement(Nt.Z,{precision:1,disabled:ye===2,min:0,style:{width:223},addonAfter:"\u5206"})),vn.createElement(Yt.default.Item,{label:"\u6D4B\u8BC4\u5355\u6B21\u62A5\u9519\u589E\u52A0\u65F6\u957F",name:"punish_time",initialValue:0,style:{marginLeft:40}},vn.createElement(Nt.Z,{min:0,style:{width:223},addonAfter:"\u5206\u949F"}))),vn.createElement(Yt.default.Item,{label:"\u8BD5\u9898\u5206\u503C",name:"hack_score_settings",initialValue:0},vn.createElement(lt.ZP.Group,null,vn.createElement(lt.ZP,{value:0},"\u5747\u5206\u6BD4\u4F8B"),vn.createElement(lt.ZP,{style:{margin:"0 40px"},value:1},"\u96BE\u6613\u5EA6"),vn.createElement(lt.ZP,{value:2},"\u81EA\u5B9A\u4E49\u5206\u503C"))),vn.createElement(ge.Z,{align:"middle"},vn.createElement("span",null,"\u9898\u76EE\u5217\u8868"),vn.createElement(Ze.ZP,{onClick:()=>Ke(!0),style:{marginLeft:"auto",width:110},type:"primary",ghost:!0},"\u9009\u62E9\u7F16\u7A0B\u9898"),vn.createElement(Ze.ZP,{onClick:()=>(0,mt.xg)(`/problems/newcreate?pageId=${zi.current}`),style:{marginLeft:20,width:110},type:"primary"},"\u65B0\u589E\u7F16\u7A0B\u9898")),vn.createElement("div",{className:te.tip},vn.createElement("i",{className:"iconfont icon-tishi12 mr5 font14"}),"\u63D0\u793A\uFF1A\u53EF\u4EE5\u70B9\u51FB\u201C\u7F16\u8F91\u201D\u5BF9\u8BE5\u8BD5\u9898\u7684\u6D4B\u8BD5\u7528\u4F8B/\u521D\u59CB\u4EE3\u7801\u8FDB\u884C\u4FEE\u6539\uFF0C\u4FEE\u6539\u7684\u5185\u5BB9\u5E76\u4E0D\u4F1A\u540C\u6B65\u5230\u8BD5\u9898\u5E93"),vn.createElement(Yt.default.Item,{name:"hack_settings",className:"mb0",initialValue:[]},vn.createElement(jn,{dataSource:Sn,setDataSource:oi,columns:Vi,loading:Li}))),vn.createElement(yn,{style:{marginBottom:100},title:"\u4F5C\u4E1A\u8BBE\u7F6E",icon:"iconfont icon-zuoyeshezhi"},vn.createElement("div",{className:te.title},"\u6392\u884C\u699C\u65F6\u95F4\u540D\u6B21\u89C4\u5219"),vn.createElement("div",{className:`${te.content} mb30`},vn.createElement(Yt.default.Item,{name:"hack_rank_rule",noStyle:!0,initialValue:0},vn.createElement(lt.ZP.Group,null,vn.createElement(lt.ZP,{value:0},vn.createElement("span",{className:"c-black"},"\u8017\u65F6\u65F6\u957F\u4F18\u5148"),vn.createElement("span",{className:"c-grey-666 font14"},"\uFF08\u540C\u6210\u7EE9\uFF0C\u8017\u65F6\u8D8A\u77ED\u540D\u6B21\u8D8A\u524D\uFF09")),vn.createElement(lt.ZP,{style:{marginLeft:40},value:1},vn.createElement("span",{className:"c-black"},"\u5B8C\u6210\u65F6\u95F4\u70B9\u4F18\u5148"),vn.createElement("span",{className:"c-grey-666 font14"},"\uFF08\u540C\u6210\u7EE9\uFF0C\u5B8C\u6210\u65F6\u95F4\u8D8A\u65E9\u540D\u6B21\u8D8A\u524D\uFF09"))))),vn.createElement("div",{className:`${te.title} mt30`},"\u5B66\u751F\u5B9E\u9A8C\u62A5\u544A\u4EE3\u7801\u5C55\u793A\u8BBE\u7F6E"),vn.createElement("div",{className:te.content},vn.createElement(Yt.default.Item,{name:"show_late_code",noStyle:!0,valuePropName:"checked",initialValue:!0},vn.createElement(dt.default,null,vn.createElement("span",{className:"c-black"},"\u5C55\u793A\u6240\u6709\u8BC4\u6D4B\u4EE3\u7801"),vn.createElement("span",{className:"c-grey-666 ml10"},"\uFF08\u52FE\u9009\u540E\uFF0C\u5C55\u793A\u6240\u6709\u8BC4\u6D4B\u4EE3\u7801\uFF0C\u5426\u5219\u53EA\u5C55\u793A\u5728\u4F5C\u4E1A\u65F6\u95F4\u8303\u56F4\u5185\u63D0\u4EA4\u7684\u4EE3\u7801\uFF09")))),vn.createElement("div",{className:`${te.title} mt30`},"\u516C\u5F00\u8BBE\u7F6E"),vn.createElement("div",{className:te.content},vn.createElement(Yt.default.Item,{name:"score_open",valuePropName:"checked",className:"mb0",initialValue:!1},vn.createElement(dt.default,null,vn.createElement("span",{className:"c-black"},"\u516C\u5F00\u6210\u7EE9"),vn.createElement("span",{className:"c-grey-666 ml10"},"\uFF08\u52FE\u9009\u540E\u5B66\u751F\u5728\u4F5C\u4E1A\u622A\u6B62/\u8865\u4EA4\u7ED3\u675F\u540E\uFF0C\u53EF\u67E5\u770B\u5176\u4ED6\u5B66\u751F\u7684\u6210\u7EE9\uFF09"))),vn.createElement(Yt.default.Item,{name:"open_code",valuePropName:"checked",className:"mb0",initialValue:!1},vn.createElement(dt.default,null,vn.createElement("span",{className:"c-black"},"\u516C\u5F00\u4EE3\u7801"),vn.createElement("span",{className:"c-grey-666 ml10"},"\uFF08\u8BBE\u7F6E\u5B66\u751F\u53EF\u5728\u6392\u884C\u699C\u4E2D\u67E5\u770B\u4ED6\u4EBA\u8BD5\u9898\u901A\u8FC7\u4EE3\u7801\u8BE6\u60C5\uFF09"))),!!xe&&vn.createElement(Yt.default.Item,{name:"open_code_type",className:"mb0 ml25",initialValue:1},vn.createElement(lt.ZP.Group,null,vn.createElement(lt.ZP,{value:1},"\u4F5C\u4E1A\u7ED3\u675F\u540E"),vn.createElement(lt.ZP,{style:{marginLeft:60},value:0},"\u4EFB\u610F\u65F6\u95F4"))),vn.createElement(Yt.default.Item,{name:"rank_forbidden",valuePropName:"checked",className:"mb0",initialValue:!1},vn.createElement(dt.default,null,vn.createElement("span",{className:"c-black"},"\u5F00\u542F\u5C01\u699C"),vn.createElement("span",{className:"c-grey-666 ml10"},"\uFF08\u8BBE\u7F6E\u5B66\u751F\u4E0D\u53EF\u67E5\u770B\u6392\u884C\u699C\u4FE1\u606F\u7684\u65F6\u95F4\u6BB5\uFF09"))),!!Kn&&vn.createElement(ge.Z,{align:"middle",className:"ml25"},vn.createElement(Yt.default.Item,{label:"\u5F00\u59CB\u65F6\u95F4",name:"rank_forbidden_start",initialValue:"",rules:[{required:!0,message:"\u5C01\u699C\u5F00\u59CB\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A"}],className:"mb0"},vn.createElement(gt.default,{style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4",showTime:{format:"HH:mm"},allowClear:!1,format:"YYYY-MM-DD HH:mm",disabledDate:mt.Q8,disabledTime:mt.d0})),vn.createElement(Yt.default.Item,{label:"\u622A\u6B62\u65F6\u95F4",name:"rank_forbidden_end",style:{marginLeft:40},initialValue:"",rules:[{required:!0,message:"\u5C01\u699C\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A"}],className:"mb0"},vn.createElement(gt.default,{style:{width:170},allowClear:!1,placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm"},format:"YYYY-MM-DD HH:mm",disabledDate:mt.Q8,disabledTime:mt.d0}))),vn.createElement(Yt.default.Item,{name:"hack_analysis",valuePropName:"checked",className:"mb0",initialValue:!1},vn.createElement(dt.default,null,vn.createElement("span",{className:"c-black"},"\u516C\u5F00\u89E3\u6790"),vn.createElement("span",{className:"c-grey-666 ml10"},"\uFF08\u8BBE\u7F6E\u5B66\u751F\u5728\u5B9E\u9A8C\u9875\u9762\u67E5\u770B\u8BD5\u9898\u89E3\u6790\uFF09"))),!!$n&&vn.createElement(Yt.default.Item,{name:"hack_analysis_type",className:"mb0 ml25",initialValue:2},vn.createElement(lt.ZP.Group,null,vn.createElement(lt.ZP,{value:2},"\u4F5C\u4E1A\u7ED3\u675F\u540E"),vn.createElement(lt.ZP,{value:0,style:{marginLeft:60}},"\u4EFB\u610F\u65F6\u95F4"),vn.createElement(lt.ZP,{style:{marginLeft:60},value:1},"\u5B66\u751F\u901A\u8FC7\u7B54\u9898\u540E/\u672A\u901A\u8FC7\u7684\u5B66\u751F\u4F5C\u4E1A\u622A\u6B62\u540E"))),vn.createElement(Yt.default.Item,{name:"hack_answer",valuePropName:"checked",className:"mb0",initialValue:!1},vn.createElement(dt.default,null,vn.createElement("span",{className:"c-black"},"\u516C\u5F00\u7B54\u6848"),vn.createElement("span",{className:"c-grey-666 ml10"},"\uFF08\u8BBE\u7F6E\u5B66\u751F\u5728\u5B9E\u9A8C\u9875\u9762\u67E5\u770B\u8BD5\u9898\u7B54\u6848\uFF09"))),!!ui&&vn.createElement(Yt.default.Item,{name:"hack_answer_type",className:"mb0 ml25",initialValue:1},vn.createElement(lt.ZP.Group,null,vn.createElement(lt.ZP,{value:1},"\u4F5C\u4E1A\u7ED3\u675F\u540E"),vn.createElement(lt.ZP,{value:0,style:{marginLeft:60}},"\u4EFB\u610F\u65F6\u95F4")))),vn.createElement("div",{className:`${te.title} mt30`},"\u534F\u4F5C\u8BBE\u7F6E"),vn.createElement(Yt.default.Item,{name:"user_ids",noStyle:!0,initialValue:[]},vn.createElement(dr,{params:Cn}))))),vn.createElement("div",{className:te.fixedBtns},vn.createElement(ge.Z,{align:"middle",className:te.center},vn.createElement(Ze.ZP,{onClick:()=>St.history.push(dn()),style:{padding:"6px 15px"},type:"primary",ghost:!0},"\u53D6\u6D88"),vn.createElement(Ze.ZP,{loading:xi&&!tr.current,disabled:xi&&tr.current,onClick:()=>qi(!1),style:{marginLeft:"auto",marginRight:20,padding:"6px 40px"},type:"primary",ghost:!0},"\u4FDD\u5B58\u4F5C\u4E1A"),vn.createElement(Ze.ZP,{loading:xi&&tr.current,disabled:xi&&!tr.current,onClick:()=>qi(!0),style:{padding:"6px 19px"},type:"primary"},"\u4FDD\u5B58\u5E76\u53D1\u5E03\u4F5C\u4E1A")))),vn.createElement(bn,{setScoreShow:Ke,isshixuns:!1,ScoreShow:_n,virtualId:zi.current,isloadings:Gn,onOk:Ar,selectedIds:Sn.map(ji=>{var er;return(er=ji.program_attr)==null?void 0:er.origin_item_bank_id})||[]}),vn.createElement(Yn.Z,{courseEndTime:hi==null?void 0:hi.course_end_date,onWindowBack:()=>{window.location.href=`/classrooms/${Cn==null?void 0:Cn.coursesId}/program_homework/${hi==null?void 0:hi.id}/detail`}}))}},18722:function(Jn,pi,Dt){"use strict";var yt=Dt(59301),te=Dt(28284),re=Dt(6767),Fe=Dt(62957),be=Dt(77019),jt=Dt(47889),ge=Dt(71051),Ze=Dt(5269),Ce=Dt(16326),Mt=Dt(62673),Re=Dt(61186),Yt=Dt.n(Re),We=Dt(52430),Nt=Dt(64681),nt=Dt(89299),et=Dt(44993),dt=Dt(54483),lt=Dt(54877),gt=Dt(69782),mt=Dt(59301),St=Object.defineProperty,bt=Object.defineProperties,It=Object.getOwnPropertyDescriptors,Ht=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,Vt=Object.prototype.propertyIsEnumerable,Jt=(Fn,fn,Ge)=>fn in Fn?St(Fn,fn,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):Fn[fn]=Ge,Ee=(Fn,fn)=>{for(var Ge in fn||(fn={}))se.call(fn,Ge)&&Jt(Fn,Ge,fn[Ge]);if(Ht)for(var Ge of Ht(fn))Vt.call(fn,Ge)&&Jt(Fn,Ge,fn[Ge]);return Fn},we=(Fn,fn)=>bt(Fn,It(fn)),De=(Fn,fn)=>{var Ge={};for(var an in Fn)se.call(Fn,an)&&fn.indexOf(an)<0&&(Ge[an]=Fn[an]);if(Fn!=null&&Ht)for(var an of Ht(Fn))fn.indexOf(an)<0&&Vt.call(Fn,an)&&(Ge[an]=Fn[an]);return Ge},Le=(Fn,fn,Ge)=>new Promise((an,Se)=>{var Qt=jn=>{try{ii(Ge.next(jn))}catch(ln){Se(ln)}},mn=jn=>{try{ii(Ge.throw(jn))}catch(ln){Se(ln)}},ii=jn=>jn.done?an(jn.value):Promise.resolve(jn.value).then(Qt,mn);ii((Ge=Ge.apply(Fn,fn)).next())});const sn=Fn=>{var fn=Fn,{classroomList:Ge,dispatch:an,courseEndTime:Se,onWindowBack:Qt}=fn,mn=De(fn,["classroomList","dispatch","courseEndTime","onWindowBack"]),ii,jn,ln,qn,Dn,fi,Ve,On,Pe,Ai,Xn,Rt,At,wt,Tt,Kt,kt,$t,un,Ie,Ue,ne,Oe,Ne,Xe,En,In,An,en,ze,qe,pn,bn,Yn,ti,yi,vn,Pi,Ki;const pr=(0,et.useParams)(),[or]=te.default.useForm(),[ir,vr]=(0,yt.useState)(1),[ur,hr]=(0,yt.useState)([]),[Ji,xr]=(0,yt.useState)(0),[Ct,yn]=(0,yt.useState)(2e3),[Zn,dr]=(0,yt.useState)(!0),[sr,Oi]=(0,yt.useState)(!1),[Nn,Cn]=(0,yt.useState)(!1),[kn,ve]=(0,yt.useState)([]),[ye,xe]=(0,yt.useState)(!0),[Kn,$n]=(0,yt.useState)(!((ln=(jn=(ii=Ge.actionTabs)==null?void 0:ii.selectArrsAll)==null?void 0:jn[0])!=null&&ln.send_type));let[ui,Sn]=(0,yt.useState)([0,0,0]);(0,yt.useEffect)(()=>{var _n,Ke,Gn,ai,ni,ki,xi,gi,Li,Zi,tr,zi,wn;if(Ge.actionTabs.key==="\u7ACB\u5373\u53D1\u5E03")if(hi(),(Gn=(Ke=(_n=Ge.actionTabs)==null?void 0:_n.selectArrsAll)==null?void 0:Ke[0])!=null&&Gn.can_publish?Sn([...(Li=(gi=(xi=Ge.actionTabs)==null?void 0:xi.selectArrsAll)==null?void 0:gi[0])==null?void 0:Li.difficult_count]):Sn([...(ki=(ni=(ai=Ge.actionTabs)==null?void 0:ai.selectArrsAll)==null?void 0:ni[0])==null?void 0:ki.difficult_settings]),$n(!((zi=(tr=(Zi=Ge.actionTabs)==null?void 0:Zi.selectArrsAll)==null?void 0:tr[0])!=null&&zi.send_type)),oi(),Ge.actionTabs.type===2){const Rr=(wn=Ge.actionTabs.selectArrsAll)==null?void 0:wn[0];xe(Rr.unified_setting)}else xe(!1)},[Ge.actionTabs]),(0,yt.useEffect)(()=>{if(sr){if(Nn)return;an({type:"classroomList/setActionTabs",payload:{}}),(0,Nt.GJ)()?(an({type:"classroomList/getClassroomTeacherCommonList",payload:we(Ee({},Ge.actionTabs.params),{type:1})}),an({type:"shixunHomeworks/getWorkList",payload:Ee({},pr)})):an({type:"classroomList/getClassroomCommonList",payload:Ee({},Ge.actionTabs.params)})}},[sr]);const oi=_n=>Le(void 0,null,function*(){dr(!0);const Ke=yield(0,lt.c_)(we(Ee({},pr),{page:_n||ir,limit:2e4,homework_id:Ge.actionTabs.type===1?"":Ge.actionTabs.selectArrs[0]}));Ke==null||Ke.course_groups.map((Gn,ai)=>{Gn.key=Gn.id,Gn.title=Gn.name,Gn.disabled=Gn.is_published}),Ke&&(hr([...Ke==null?void 0:Ke.course_groups]),xr(Ke==null?void 0:Ke.course_groups_count),dr(!1),_n||or.setFieldsValue({publish_time:Yt()(Yt()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm")),end_time:Yt()(Yt()(new Date).add(7,"days").format("YYYY-MM-DD HH:mm"))}))}),fe=()=>{(0,Nt.GJ)()?Ge.actionTabs.detail?(an({type:"shixunHomeworks/setActionTabs",payload:{}}),an({type:"shixunHomeworks/getWorkList",payload:Ee({},pr)}),an({type:"shixunHomeworks/getWorkSetting",payload:Ee({},pr)})):an({type:"classroomList/getClassroomTeacherCommonList",payload:we(Ee({},Ge.actionTabs.params),{type:5,category:Ge.actionTabs.params.categoryId})}):an({type:"classroomList/getClassroomCommonList",payload:Ee({},Ge.actionTabs.params)})},Te=()=>Le(void 0,null,function*(){var _n,Ke;if((0,Nt.Rm)()&&!((_n=Ge.AssistantObject.hack)!=null&&_n.can_publish)){re.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),Vn(!1);return}const Gn=Ee({},or.getFieldsValue());if(Gn.end_time<=Gn.publish_time){re.ZP.info("\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u5927\u4E8E\u6216\u7B49\u4E8E\u53D1\u5E03\u65F6\u95F4"),Vn(!1);return}if((kn==null?void 0:kn.length)<=0&&!ye&&ur.length>0){re.ZP.info("\u53D1\u5E03\u73ED\u7EA7\u4E0D\u80FD\u4E3A\u7A7A"),Vn(!1);return}if(ui.reduce((ki,xi)=>ki+xi)===0&&!Kn){re.ZP.info("\u7B80\u5355\u9002\u4E2D\u56F0\u96BE\u9898\u6570\u76F8\u52A0\u4E0D\u80FD\u4E3A0"),Vn(!1);return}let ai={homework_ids:[...Ge.actionTabs.selectArrs],group_ids:kn.length>0?kn.map(ki=>ki.id):(Ke=Ge.detailCommonHomeworksList)==null?void 0:Ke.course_groups,end_time:Yt()(Gn.end_time).format("YYYY-MM-DD HH:mm"),publish_time:Yt()(Gn.publish_time).format("YYYY-MM-DD HH:mm"),difficult_settings:ui==null?void 0:ui.map(ki=>ki),send_type:Kn?"0":"1",unified_setting:!kn.length};if(Vn(!0),(yield(0,We.ZP)(`/api/courses/${pr.coursesId}/homework_commons/publish_with_homework_list_position.json`,{method:"post",body:Ee({},ai)})).status===0){if(Vn(!1),(0,nt.L9)(["\u6559\u5B66\u8BFE\u5802","\u56FE\u6587\u4F5C\u4E1A","\u7ACB\u5373\u53D1\u5E03"]),re.ZP.success("\u53D1\u5E03\u6210\u529F"),an({type:"classroomList/setActionTabs",payload:{key:"\u6E05\u9664\u9009\u62E9\u6570\u636E"}}),Qt){Qt();return}mn.onCallback&&mn.onCallback(),fe(),localStorage.getItem("Noviceguide")==="0"||an({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:13,text:mt.createElement("div",null,"\u6700\u540E\uFF0C\u54B1\u4EEC\u7ED9\u6559\u5B66\u8BFE\u5802\u6DFB\u52A0\u4E00\u540D\u5B66\u751F~\u70B9\u51FB\u201C\u6DFB\u52A0\u5B66\u751F\u201D\uFF0C\u5728\u5F39\u7A97\u9875\u9762\u4E2D\u8F93\u5165\u5E76\u641C\u7D22\u5B66\u751F\u59D3\u540D\uFF0C\u70B9\u51FB\u201C\u786E\u5B9A\u201D\u5C31\u53EF\u4EE5\u4E3A\u60A8\u7684\u8BFE\u5802\u6DFB\u52A0\u7B2C\u4E00\u4F4D\u5B66\u751F\u5566~")}})}else Vn(!1)}),hi=()=>{vr(1),hr([]),ve([])},ee=Ji>ir*Ct,[nn,Vn]=(0,yt.useState)(!1);return mt.createElement(Fe.default,{width:600,confirmLoading:nn,centered:!0,title:"\u53D1\u5E03\u4F5C\u4E1A",open:Ge.actionTabs.key==="\u7ACB\u5373\u53D1\u5E03",okText:"\u53D1\u5E03\u4F5C\u4E1A",cancelText:"\u6682\u4E0D\u53D1\u5E03",onOk:Te,onCancel:()=>{if(hi(),an({type:"classroomList/setActionTabs",payload:{}}),Qt){Qt();return}fe()}},mt.createElement("p",{className:"tc"},"\u5B66\u751F\u5C06\u7ACB\u5373\u6536\u5230\u4F5C\u4E1A",mt.createElement("br",null),'\u672C\u64CD\u4F5C\u53EA\u5BF9"\u672A\u53D1\u5E03"\u7684\u4F5C\u4E1A\u6709\u6548'),ur&&mt.createElement(te.default,{form:or},mt.createElement("div",{style:{paddingLeft:0}},Ge.actionTabs.type===2&&mt.createElement(be.Z,{style:{marginBottom:"10px"}},mt.createElement("span",{className:"mr5"},"\u8BD5\u9898\u53D1\u9001:"),mt.createElement(jt.ZP.Group,{value:Kn,disabled:!((fi=(Dn=(qn=Ge.actionTabs)==null?void 0:qn.selectArrsAll)==null?void 0:Dn[0])!=null&&fi.can_publish),onChange:_n=>{$n(_n.target.value)}},mt.createElement(jt.ZP,{value:!0},"\u5168\u90E8\u56FA\u5B9A\u8BD5\u9898"),mt.createElement(jt.ZP,{className:"ml20",value:!1},"\u968F\u673A\u62BD\u53D6"))),!Kn&&mt.createElement(be.Z,{style:{marginBottom:"10px"}},mt.createElement("span",{style:{marginRight:65}}),mt.createElement("span",null,"\u7B80\u5355\u9898\u6570 ",mt.createElement(ge.Z,{value:ui[0],onChange:_n=>{ui[0]=_n,Sn([...ui])},min:0,disabled:!((Pe=(On=(Ve=Ge.actionTabs)==null?void 0:Ve.selectArrsAll)==null?void 0:On[0])!=null&&Pe.can_publish),placeholder:`\u6700\u5927${(At=(Rt=(Xn=(Ai=Ge.actionTabs)==null?void 0:Ai.selectArrsAll)==null?void 0:Xn[0])==null?void 0:Rt.difficult_count)==null?void 0:At[0]}`,max:(kt=(Kt=(Tt=(wt=Ge.actionTabs)==null?void 0:wt.selectArrsAll)==null?void 0:Tt[0])==null?void 0:Kt.difficult_count)==null?void 0:kt[0],style:{width:60}})),mt.createElement("span",{style:{margin:"0px 40px"}},"\u9002\u4E2D\u9898\u6570 ",mt.createElement(ge.Z,{value:ui[1],onChange:_n=>{ui[1]=_n,Sn([...ui])},min:0,disabled:!((Ie=(un=($t=Ge.actionTabs)==null?void 0:$t.selectArrsAll)==null?void 0:un[0])!=null&&Ie.can_publish),max:(Ne=(Oe=(ne=(Ue=Ge.actionTabs)==null?void 0:Ue.selectArrsAll)==null?void 0:ne[0])==null?void 0:Oe.difficult_count)==null?void 0:Ne[1],placeholder:`\u6700\u5927${(An=(In=(En=(Xe=Ge.actionTabs)==null?void 0:Xe.selectArrsAll)==null?void 0:En[0])==null?void 0:In.difficult_count)==null?void 0:An[1]}`,style:{width:60}})),mt.createElement("span",null,"\u56F0\u96BE\u9898\u6570 ",mt.createElement(ge.Z,{value:ui[2],onChange:_n=>{ui[2]=_n,Sn([...ui])},min:0,disabled:!((qe=(ze=(en=Ge.actionTabs)==null?void 0:en.selectArrsAll)==null?void 0:ze[0])!=null&&qe.can_publish),placeholder:`\u6700\u5927${(ti=(Yn=(bn=(pn=Ge.actionTabs)==null?void 0:pn.selectArrsAll)==null?void 0:bn[0])==null?void 0:Yn.difficult_count)==null?void 0:ti[2]}`,max:(Ki=(Pi=(vn=(yi=Ge.actionTabs)==null?void 0:yi.selectArrsAll)==null?void 0:vn[0])==null?void 0:Pi.difficult_count)==null?void 0:Ki[2],style:{width:60}}))),mt.createElement(be.Z,{className:"mt30",align:"middle"},mt.createElement(Ze.Z,null,mt.createElement(te.default.Item,{name:"publish_time",label:"\u53D1\u5E03\u65F6\u95F4"},mt.createElement(Ce.default,{style:{width:170,marginRight:"25px"},disabledDate:_n=>(0,gt.Q8)(_n,Se),disabledTime:_n=>(0,gt.d0)(_n),placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:Yt()((0,nt.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1}))),mt.createElement(Ze.Z,{className:"ml20"},mt.createElement(te.default.Item,{name:"end_time",label:"\u622A\u6B62\u65F6\u95F4"},mt.createElement(Ce.default,{style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:Yt()((0,nt.U6)(),"HH:mm")},disabledDate:_n=>(0,gt.Q8)(_n,Se,or.getFieldValue("publish_time")),disabledTime:_n=>(0,gt.d0)(_n,or.getFieldValue("publish_time")),format:"YYYY-MM-DD HH:mm",allowClear:!1})))),Ge.actionTabs.type===2&&mt.createElement(be.Z,{style:{marginBottom:"10px"}},mt.createElement("span",{className:"mr5"},"\u53D1\u5E03\u8BBE\u7F6E:"),mt.createElement(jt.ZP.Group,{value:ye,onChange:_n=>{xe(_n.target.value),ve([])}},mt.createElement(jt.ZP,{value:!0,disabled:!Ge.actionTabs.manage_all_group},"\u7EDF\u4E00\u53D1\u5E03"),mt.createElement(jt.ZP,{className:"ml20",disabled:ur.length<=0,value:!1},"\u5206\u73ED\u53D1\u5E03"))),ur.length<=0&&Ge.actionTabs.type===2&&mt.createElement("span",{style:{marginLeft:"65px",color:"rgba(0, 0, 0, 0.25)"}},'\u8BFE\u5802\u65E0\u5206\u73ED\uFF0C\u4EC5\u652F\u6301\u9009\u62E9\u201C\u7EDF\u4E00\u53D1\u5E03"')),(Ge.actionTabs.type===1||!ye)&&ur.length>0&&mt.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"}},mt.createElement("span",{style:{flex:1}},mt.createElement(Mt.default,{checked:kn.length===ur.length,onChange:_n=>{kn.length===ur.length?ve([]):ve(ur.filter(Ke=>!Ke.is_published))}},"\u5168\u9009")," "),mt.createElement("span",{style:{width:16}}),mt.createElement("span",{style:{flex:1}},"\u5DF2\u9009\u62E9",kn.length||0,"\u4E2A\u5206\u73ED")),(Ge.actionTabs.type===1||!ye)&&ur.length>0&&mt.createElement(dt.Z,{data:ur,selectedRowKeys:kn,setSelectedRowKeys:ve})))};pi.Z=(0,et.connect)(({classroomList:Fn})=>({classroomList:Fn}))(sn)},69782:function(Jn,pi,Dt){"use strict";Dt.d(pi,{Q8:function(){return Qt},d0:function(){return mn},w6:function(){return Se}});var yt=Dt(59301),te=Dt(16326),re=Dt(82326),Fe=Dt(6767),be=Dt(62957),jt=Dt(47889),ge=Dt(77019),Ze=Dt(5269),Ce=Dt(25399),Mt=Dt(62673),Re=Dt(99571),Yt=Dt(61186),We=Dt.n(Yt),Nt=Dt(64681),nt=Dt(52430),et=Dt(89392),dt=Dt.n(et),lt=Dt(89299),gt=Dt(59514),mt=Dt(44993),St=Dt(69098),bt=Dt(2686),It=Dt(80954),Ht=Dt(67702),se=Dt(84698),Vt=Dt(59301),Jt=Object.defineProperty,Ee=Object.defineProperties,we=Object.getOwnPropertyDescriptors,De=Object.getOwnPropertySymbols,Le=Object.prototype.hasOwnProperty,sn=Object.prototype.propertyIsEnumerable,Fn=(Dn,fi,Ve)=>fi in Dn?Jt(Dn,fi,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):Dn[fi]=Ve,fn=(Dn,fi)=>{for(var Ve in fi||(fi={}))Le.call(fi,Ve)&&Fn(Dn,Ve,fi[Ve]);if(De)for(var Ve of De(fi))sn.call(fi,Ve)&&Fn(Dn,Ve,fi[Ve]);return Dn},Ge=(Dn,fi)=>Ee(Dn,we(fi)),an=(Dn,fi,Ve)=>new Promise((On,Pe)=>{var Ai=At=>{try{Rt(Ve.next(At))}catch(wt){Pe(wt)}},Xn=At=>{try{Rt(Ve.throw(At))}catch(wt){Pe(wt)}},Rt=At=>At.done?On(At.value):Promise.resolve(At.value).then(Ai,Xn);Rt((Ve=Ve.apply(Dn,fi)).next())});function Se(Dn,fi){const Ve=[];for(let On=Dn;On<fi;On++)Ve.push(On);return Ve}const Qt=(Dn,fi,Ve)=>{const On=Dn<We()().startOf("day"),Pe=Dn>We()(fi).endOf("day"),Ai=Dn<We()(Ve).startOf("day");return fi?Ve?We()()<=We()(Ve)?Ai||Pe:On||Pe:Dn&&On||Pe:Ve&&We()()<=We()(Ve)?Ai:On},mn=(Dn,fi)=>{const Ve=parseInt(We()(Dn).format("HH")),On=parseInt(We()().format("HH")),Pe=parseInt(We()().format("mm"));if(!Dn)return{disabledHours:()=>Se(0,On),disabledMinutes:()=>Se(0,Pe)};if(fi){const Ai=parseInt(We()(fi).format("HH")),Xn=parseInt(We()(fi).format("mm"));return We()(Dn).isSame(We()(fi),"day")?{disabledHours:()=>Se(0,Ai),disabledMinutes:()=>Ve<=Ai?Se(0,Xn):[]}:void 0}if(We()(Dn).isSame(We()(),"day"))return{disabledHours:()=>Se(0,On),disabledMinutes:()=>We()(Dn).isSame(We()(),"hour")&&Ve<=On?Se(0,Pe):[]}},ii=(Dn,fi)=>Dn==null?void 0:Dn.map(Ve=>{var On;return(On=fi==null?void 0:fi.find(Pe=>Pe.value===Ve))==null?void 0:On.id}),{RangePicker:jn}=te.default,{Option:ln}=re.default,qn=({shixunHomeworks:Dn,loading:fi,dispatch:Ve,classroomList:On,user:Pe})=>{var Ai,Xn,Rt,At,wt,Tt,Kt,kt,$t;const un=(0,mt.useParams)(),{workSetting:Ie,workList:Ue,shixunWorkList:ne,headerInfo:Oe,changeData:Ne}=Dn,[Xe,En]=(0,yt.useState)(!1),[In,An]=(0,yt.useState)(!1);let[en,ze]=(0,yt.useState)([]),[qe,pn]=(0,yt.useState)([]),[bn,Yn]=(0,yt.useState)({unified_setting:!1,publish_time:"",end_time:"",allow_late:!1,unified_late:!0,late_time:"",late_penalty:0,penalty_type:St.Q.Percent,challenge_settings:[],work_efficiency:!1,shixun_evaluation:"",answer_open_evaluation:!1,answer_public:!1,score_open:!1,comment_public:!0,total_score:"",eff_score:0,action_analysis:!1,work_end_forbid_evaluate:!1});const[ti,yi]=(0,yt.useState)({}),[vn,Pi]=(0,yt.useState)({});(0,yt.useEffect)(()=>()=>{ze([])},[]),(0,yt.useEffect)(()=>{En(!(0,Nt.GJ)())},[(0,Nt.GJ)()]);const Ki=()=>{Ve({type:"shixunHomeworks/getWorkSetting",payload:fn({},un)})};(0,yt.useEffect)(()=>{if(!(Ie!=null&&Ie.course_id))return;Object.keys(bn).map(function(Zn){bn[Zn]=Ie[Zn]}),(!bn.allow_late||!bn.unified_late)&&(bn.late_penalty=20,bn.penalty_type=St.Q.Percent),bn.unified_setting||(bn.unified_late=!1,bn.unified_anonymous_comment=!1,bn.unified_anonymous_appeal=!1),en=JSON.parse(JSON.stringify(Ie.group_settings.map(Zn=>Ge(fn({},Zn),{group_name:[Zn.group_name]})).filter(Zn=>Zn.publish_time!==null))),qe=JSON.parse(JSON.stringify(Ie.allow_late_settings.map(Zn=>Ge(fn({},Zn),{group_name:[Zn.group_name]})).filter(Zn=>Zn.late_time!==null))),Yn(fn({},bn));const yn=(0,lt.QE)((en==null?void 0:en.length)>0?en:[]);ze([...yn]),(qe==null?void 0:qe.length)<=0?pn([{penalty_type:St.Q.Percent,late_penalty:20}]):pn([...qe])},[Ie]);const pr=()=>an(void 0,null,function*(){var yn,Zn;if(((yn=Pe==null?void 0:Pe.userInfo)==null?void 0:yn.user_status)===2){(0,bt.Rd)();return}const dr=JSON.parse(JSON.stringify(bn));if(dr.challenge_settings.filter(Oi=>!Oi.hide),dr.categoryId=un.categoryId,(Zn=dr.challenge_settings)!=null&&Zn.every(Oi=>!Oi.checked)){Fe.ZP.warning("\u5173\u5361\u4E0D\u80FD\u5168\u90E8\u8BBE\u7F6E\u4E3A\u53EF\u4E0D\u505A");return}if(console.log(en),!bn.unified_setting)en=en==null?void 0:en.map(Oi=>{var Nn;if(!Oi.publish_time||!Oi.end_time)throw Fe.ZP.error("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!Oi.group_name)throw Fe.ZP.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return Oi.group_name=typeof(Oi==null?void 0:Oi.group_name)=="string"?[Oi==null?void 0:Oi.group_name]:Oi==null?void 0:Oi.group_name,Oi.group_id=(Nn=Ie.group_settings)==null?void 0:Nn.filter(Cn=>{var kn;return(kn=Oi==null?void 0:Oi.group_name)==null?void 0:kn.includes(Cn.group_name)}).map(Cn=>Cn.group_id||Cn.id).toString().split(","),Oi});else if(!bn.publish_time||!bn.end_time)throw Fe.ZP.error("\u53D1\u5E03\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A"),new String("\u53D1\u5E03\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A");if(dr.group_settings=en,bn.allow_late)if(bn.unified_late){if(bn.late_penalty===null||bn.late_penalty===void 0||bn.late_penalty<0||bn.late_penalty>100)throw Fe.ZP.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!bn.late_time)throw Fe.ZP.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574")}else qe=qe==null?void 0:qe.map(Oi=>{var Nn,Cn;if(Oi.late_penalty===null||Oi.late_penalty===void 0||Oi.late_penalty<0||Oi.late_penalty>100)throw Fe.ZP.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!Oi.late_time)throw Fe.ZP.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!Oi.group_name)throw Fe.ZP.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return Oi.group_name=typeof(Oi==null?void 0:Oi.group_name)=="string"?[Oi==null?void 0:Oi.group_name]:Oi==null?void 0:Oi.group_name,Oi.group_id=(Cn=(Nn=Oi==null?void 0:Oi.group_name)==null?void 0:Nn.map(kn=>{var ve,ye;let xe=(ye=(ve=Ie.group_settings)==null?void 0:ve.filter(Kn=>(Kn==null?void 0:Kn.group_name)===kn))==null?void 0:ye[0];return xe==null?void 0:xe.group_id}))==null?void 0:Cn.toString().split(","),Oi}),dr.allow_late_settings=qe;let sr=yield(0,se.Tr)({homework_common_ids:[parseInt(un.categoryId)],course_id:un.coursesId,type:"homework_common"});(sr==null?void 0:sr.student_count)===0?or(dr):(Pi(dr),yi(sr))}),or=yn=>{var Zn;if(yn.total_score===null){Fe.ZP.warning("\u603B\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A");return}if(yn!=null&&yn.work_efficiency&&yn.eff_score===null){Fe.ZP.warning("\u6548\u7387\u5206\u4E0D\u80FD\u4E3A\u7A7A");return}const dr=yn.challenge_settings.reduce((Nn,Cn)=>Nn+Number(Cn.challenge_score),0);if((dr==null?void 0:dr.toFixed(10))!==((Zn=yn.total_score-yn.eff_score)==null?void 0:Zn.toFixed(10))){Fe.ZP.warning(`\u6548\u7387\u5206\u52A0\u5173\u5361\u4EFB\u52A1\u603B\u5206\u5FC5\u987B\u7B49\u4E8E\u603B\u5206\u503C\uFF1A${yn.total_score}\u5206`);return}const sr={shixun_evaluation:yn.shixun_evaluation,challenge_settings:yn.challenge_settings};let Oi=()=>{var Nn;const Cn=()=>an(void 0,null,function*(){An(!0),(yield(0,nt.ZP)(`/api/homework_commons/${un.categoryId}/publish_setting.json`,{method:"post",body:fn({},yn)})).status===0&&(Fe.ZP.success("\u66F4\u65B0\u6210\u529F"),Ki(),Ve({type:"shixunHomeworks/getShixunWorkHeadInfo",payload:fn({},un)})),An(!1)});!(0,et.isEqual)(Ne,sr)&&!((Nn=Oe==null?void 0:Oe.homework_status)!=null&&Nn.includes("\u672A\u53D1\u5E03"))?be.default.confirm({title:"\u66F4\u65B0\u6210\u7EE9",content:"\u60A8\u6539\u52A8\u4E86\u672C\u6B21\u4F5C\u4E1A\u7684\u5173\u5361\u5F97\u5206\u8BBE\u7F6E\uFF0C\u8FD9\u53EF\u80FD\u5BFC\u81F4\u5DF2\u5B8C\u6210\u4F5C\u4E1A\u7684\u5B66\u751F\u7684\u6210\u7EE9\u4EA7\u751F\u9519\u8BEF\u3002\u70B9\u51FB\u201C\u786E\u5B9A\u201D\u6309\u94AE\u5C06\u4FDD\u5B58\u6700\u65B0\u8BBE\u7F6E\u5E76\u6309\u6700\u65B0\u8BBE\u7F6E\u66F4\u65B0\u5168\u73ED\u6210\u7EE9\u3002",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:Cn}):Cn()};Ie!=null&&Ie.high_resources_consume&&!(Ie!=null&&Ie.high_resources_consume_permission)?Ve({type:"classroomList/setActionTabs",payload:{key:"\u6388\u6743\u4F7F\u7528",id:un.coursesId,type:"shixun",type_id:un.categoryId,name:Ie.homework_name,fn:()=>{Oi()}}}):Oi()},ir=(yn,Zn,dr="group_id")=>{var sr;return Zn?Zn.find(Oi=>Oi[dr]===yn):(sr=Ie==null?void 0:Ie.group_settings)==null?void 0:sr.find(Oi=>Oi.group_id[0]===yn)},vr=(Ie==null?void 0:Ie.allow_late)||(Ie==null?void 0:Ie.anonymous_comment),ur=yn=>{var Zn,dr;const sr=ir(yn,Ie==null?void 0:Ie.allow_late_settings,"id"),Oi=ir(yn,Ie==null?void 0:Ie.anonymous_comment_settings),Nn=ir(yn);return(Ie==null?void 0:Ie.allow_late)&&sr&&We()(sr==null?void 0:sr.late_time)<=We()()||(Ie==null?void 0:Ie.anonymous_comment)&&Oi&&(Oi==null?void 0:Oi.evaluation_start)!==null||((dr=(We()(Nn==null?void 0:Nn.end_time)<=We()()&&((Zn=Ie==null?void 0:Ie.allow_late_settings)==null?void 0:Zn.filter(Cn=>Cn.group_id.includes(yn))))[0])==null?void 0:dr.late_time)!=null},hr=(0,yt.useMemo)(()=>(Ie==null?void 0:Ie.allow_late)||(Ie==null?void 0:Ie.all_group_late),[Ie,Oe]),Ji=Ie==null?void 0:Ie.anonymous_comment,xr=yn=>{if(!yn)return!1;const Zn=ir(yn,Ie==null?void 0:Ie.anonymous_comment_settings);return(Ie==null?void 0:Ie.anonymous_comment)&&Zn&&(Zn==null?void 0:Zn.evaluation_start)!==null},Ct=(yn,Zn)=>{var dr,sr,Oi,Nn,Cn;yn!=null&&yn.group_id||(yn.group_id=ii(yn==null?void 0:yn.group_name,Ie==null?void 0:Ie.group_settings)),Ve({type:"classroomList/setActionTabs",payload:{key:"\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",data:yn,index:Zn,rangePickerDisabled:(sr=(dr=yn==null?void 0:yn.group_id)==null?void 0:dr[0])!=null&&sr.publish_time?Xe||(We()()<=We()((Nn=ir((Oi=yn==null?void 0:yn.group_id)==null?void 0:Oi[0]))==null?void 0:Nn.publish_time)?!1:[!0,ur((Cn=yn==null?void 0:yn.group_id)==null?void 0:Cn[0])]):!1,disabledDate:Ie==null?void 0:Ie.course_end_date}})};return Vt.createElement("section",{className:gt.Z.form},Vt.createElement("div",{className:gt.Z.title},"\u4F5C\u4E1A\u53D1\u5E03",Vt.createElement("span",{className:"c-grey-666 font14",style:{fontWeight:400}},"\uFF08\u4F5C\u4E1A\u4E00\u65E6\u53D1\u5E03\u540E\u4E0D\u53EF\u53D8\u66F4\u8BD5\u9898\u53D1\u5E03\u6A21\u5F0F\uFF09")),Vt.createElement("div",null,Vt.createElement("div",{style:{background:"#F6F7F9",padding:"13px 30px",display:"flex",alignItems:"center"}},Vt.createElement(jt.ZP.Group,{disabled:Xe||!((Ai=Oe==null?void 0:Oe.homework_status)!=null&&Ai.includes("\u672A\u53D1\u5E03"))||(0,Nt.Rm)()&&!((Xn=On.AssistantObject.practice)!=null&&Xn.can_publish),value:bn.unified_setting,onChange:yn=>{var Zn;if(!((Zn=Oe==null?void 0:Oe.homework_status)!=null&&Zn.includes("\u672A\u53D1\u5E03"))){Fe.ZP.error("\u5DF2\u53D1\u5E03\uFF0C\u4E0D\u80FD\u518D\u4FEE\u6539\u7EDF\u4E00\u8BBE\u7F6E");return}if(bn.unified_setting=!bn.unified_setting,bn.unified_setting||(bn.unified_late=!1,pn([{late_penalty:5}])),Yn(Object.assign({},bn)),bn.unified_setting===!1&&en==""){ze(en.concat({}));return}bn.unified_setting&&(ze([]),pn([{late_penalty:5}]))}},Vt.createElement(jt.ZP,{value:!0,disabled:Xe||!(Ie!=null&&Ie.manage_all_group),style:{marginRight:"50px"}},"\u7EDF\u4E00\u53D1\u5E03"),Vt.createElement(jt.ZP,{disabled:Xe||!((Rt=Ie==null?void 0:Ie.group_settings)!=null&&Rt.length),value:!1},"\u5206\u73ED\u53D1\u5E03")),((At=Ie==null?void 0:Ie.group_settings)==null?void 0:At.length)===0&&Vt.createElement("div",{style:{color:"rgba(0, 0, 0, 0.25)",height:"22px"}},"\uFF08\u672C\u8BFE\u5802\u65E0\u5206\u73ED\uFF0C\u4EC5\u652F\u6301\u9009\u62E9\u201C\u7EDF\u4E00\u53D1\u5E03\u201C\uFF09")),bn.unified_setting&&Vt.createElement("div",{style:{display:"flex",color:"#666666",background:"#F6F7F9",padding:"5px 30px",height:"50px",marginTop:"1px"}},Vt.createElement(ge.Z,{align:"middle"},Vt.createElement(Ze.Z,{style:{marginLeft:"23px"}},"\u53D1\u5E03\u65F6\u95F4"),Vt.createElement(Ze.Z,{className:"ml10"},Vt.createElement(te.default,{size:"large",disabled:Xe||!((wt=Oe==null?void 0:Oe.homework_status)!=null&&wt.includes("\u672A\u53D1\u5E03")||(Tt=Oe==null?void 0:Oe.homework_status)!=null&&Tt.includes("\u672A\u5F00\u59CB"))||(0,Nt.Rm)()&&!((Kt=On.AssistantObject.practice)!=null&&Kt.can_publish),style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm"},allowClear:!1,format:"YYYY-MM-DD HH:mm",disabledDate:yn=>Qt(yn,Ie==null?void 0:Ie.course_end_date),disabledTime:yn=>mn(yn),value:bn.publish_time?We()(bn.publish_time):"",onChange:(yn,Zn)=>{bn.publish_time=Zn,(bn.end_time==""||!bn.end_time)&&bn.unified_setting&&(bn.end_time=We()(yn).add(7,"days").format("YYYY-MM-DD HH:mm:ss")),Yn(Object.assign({},bn))}}))),Vt.createElement(ge.Z,{align:"middle",className:"pl30"},Vt.createElement(Ze.Z,null,"\u622A\u6B62\u65F6\u95F4"),Vt.createElement(Ze.Z,{className:"ml10"},Vt.createElement(te.default,{size:"large",style:{width:170},allowClear:!1,placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:We()((0,lt.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:(Ie==null?void 0:Ie.allow_late)&&(Ie==null?void 0:Ie.homework_status.includes("\u5DF2\u622A\u6B62"))||Xe||(Ie==null?void 0:Ie.allow_late)&&We()()>=We()(Ie==null?void 0:Ie.end_time)||(0,Nt.Rm)()&&!((kt=On.AssistantObject.practice)!=null&&kt.can_publish),disabledDate:yn=>Qt(yn,Ie==null?void 0:Ie.course_end_date,bn.publish_time),disabledTime:yn=>mn(yn,bn.publish_time),value:bn.end_time?We()(bn.end_time):"",onChange:(yn,Zn)=>{bn.end_time=Zn,Yn(Object.assign({},bn))}})))),!bn.unified_setting&&(en==null?void 0:en.length)>0&&Vt.createElement(ge.Z,{style:{display:"flex",color:"#666666",background:"#F6F7F9",padding:"5px 30px",marginTop:"1px"}},en&&en.map(function(yn,Zn){var dr,sr,Oi,Nn,Cn,kn,ve;return Vt.createElement(Ze.Z,{span:24,key:Zn},Vt.createElement(ge.Z,{gutter:[8,16],style:{display:"flex",alignItems:"center",marginBottom:Zn==(en==null?void 0:en.length)-1?"0px":"10px"}},Vt.createElement("div",{style:{minWidth:85,marginRight:"15px",textAlign:"right"}},"\u53D1\u5E03\u89C4\u5219",Zn+1),Vt.createElement(re.default,{disabled:Xe||((dr=Oe==null?void 0:Oe.homework_status)!=null&&dr.includes("\u672A\u53D1\u5E03")&&yn.id||We()()<We()(yn==null?void 0:yn.publish_time)?!1:!!(yn!=null&&yn.publish_time))||(0,Nt.Rm)()&&!((sr=On.AssistantObject.practice)!=null&&sr.can_publish),mode:"multiple",className:gt.Z.multiple_select,style:{width:"250px"},value:yn.group_name,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",onChange:ye=>{var xe;if((0,Nt.Rm)()&&!((xe=On.AssistantObject.practice)!=null&&xe.can_publish)){Fe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}en[Zn].group_name=ye,en[Zn].group_id=yn.group_id;const Kn=(0,et.flattenDeep)(en.map(ui=>ui.group_name)),$n=qe.map(ui=>{let Sn=(ui==null?void 0:ui.group_name)||[];return Ge(fn({},ui),{group_name:(0,et.remove)(Sn,oi=>Kn.includes(oi))})});pn($n),ze(en.slice())},maxTagCount:4,maxTagPlaceholder:ye=>Vt.createElement("div",{style:{cursor:"pointer"},onClick:()=>Ct(yn,Zn)},"+",ye==null?void 0:ye.length)},Ie.group_settings&&Ie.group_settings.map(function(ye){if(!en.map(Kn=>Kn.group_name).flat().includes(ye.group_name))return Vt.createElement(ln,{value:ye.group_name,key:ye.id},ye.group_name)})),Vt.createElement("div",{className:"ml20"},Vt.createElement(jn,{size:"large",ranges:{\u6B64\u523B:[yn.publish_time?We()(yn.publish_time):We()(),We()()]},allowClear:!1,disabled:Xe||(We()()<=We()((Nn=ir((Oi=yn==null?void 0:yn.group_id)==null?void 0:Oi[0]))==null?void 0:Nn.publish_time)?!1:[!0,ur((Cn=yn==null?void 0:yn.group_id)==null?void 0:Cn[0])]),style:{width:605},placeholder:["\u53D1\u5E03\u65F6\u95F4\uFF08\u5B66\u751F\u6536\u5230\u4F5C\u4E1A\u65F6\u95F4\uFF09","\u622A\u6B62\u65F6\u95F4\uFF08\u5B66\u751F\u201C\u6309\u65F6\u201D\u63D0\u4EA4\u4F5C\u54C1\u65F6\u95F4\u622A\u70B9\uFF09"],disabledDate:ye=>Qt(ye,Ie==null?void 0:Ie.course_end_date),disabledTime:ye=>mn(ye),showTime:{showNow:!0,format:"HH:mm",defaultValue:[We()((0,lt.U6)(),"HH:mm"),We()((0,lt.U6)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:[yn.publish_time?We()(yn.publish_time):void 0,yn.end_time?We()(yn.end_time):void 0],onChange:(ye,xe)=>{var Kn;if((0,Nt.Rm)()&&!((Kn=On.AssistantObject.practice)!=null&&Kn.can_publish)){Fe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}en[Zn].publish_time=xe[0],!yn.end_time&&xe[0]?en[Zn].end_time=We()(xe[0]).add(7,"days"):en[Zn].end_time=xe[1],ze([...en])},onCalendarChange:(ye,xe,Kn)=>{if(xe!=null&&xe[0]&&!xe[1]){const $n=We()(xe[0]).add(7,"days");en[Zn].publish_time=xe[0],en[Zn].end_time=$n,ze([...en])}}})),!Xe&&Vt.createElement("div",{style:{display:"flex",width:"50px"}},((kn=yn==null?void 0:yn.group_id)==null?void 0:kn.length)>1&&Vt.createElement(Ce.Z,{title:"\u89C4\u5219\u62C6\u5206"},Vt.createElement("i",{className:"iconfont icon-chaifen ml10",style:{cursor:"pointer",color:"#3061d0"},onClick:()=>Ct(yn,Zn)})),en.length<((ve=Ie==null?void 0:Ie.group_settings)==null?void 0:ve.length)&&Vt.createElement("i",{className:"iconfont icon-zengjia1 ml10 mr10",style:{cursor:"pointer",color:"#00B187"},onClick:()=>{var ye;if((0,Nt.Rm)()&&!((ye=On.AssistantObject.practice)!=null&&ye.can_publish)){Fe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}ze(en.concat({}))}}),((yn==null?void 0:yn.publish_time)&&We()()<We()(yn==null?void 0:yn.publish_time)||!(yn!=null&&yn.publish_time))&&Zn!=0&&Vt.createElement("i",{className:"iconfont icon-shanjian1",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{const ye=(0,et.cloneDeep)(qe);ye.forEach((xe,Kn)=>{xe.group_name&&(xe.group_name=xe.group_name.filter($n=>{var ui;return!((ui=en[Zn].group_name)!=null&&ui.includes($n))}))}),en=en.filter((xe,Kn)=>Zn!==Kn),pn(ye),ze(en.slice()),setTimeout(()=>ze(en.slice()),10)}}))))}))),Vt.createElement(ge.Z,null,Vt.createElement(Ze.Z,null,Vt.createElement("div",{className:gt.Z.title,style:{marginTop:"30px"}},"\u8865\u4EA4\u8BBE\u7F6E",Vt.createElement("span",{className:"c-grey-666 font14",style:{fontWeight:400}},"\uFF08\u53EF\u5BF9\u5728\u4F5C\u4E1A\u53D1\u5E03\u65F6\u95F4\u8303\u56F4\u5185\u672A\u5B8C\u6210\u4F5C\u4E1A\u7684\u5B66\u751F\uFF0C\u5EF6\u957F\u65F6\u95F4\u8FDB\u884C\u8865\u4EA4\uFF09"))),Vt.createElement(Ze.Z,{span:24,style:{background:"#F6F7F9",padding:"13px 30px",display:"flex",alignItems:"center"}},Vt.createElement(Mt.default,{checked:bn.allow_late,disabled:Xe||hr,onChange:yn=>{var Zn;if((0,Nt.Rm)()&&!((Zn=On.AssistantObject.practice)!=null&&Zn.can_late)){Fe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}yn.target.checked&&be.default.warning({title:"\u5F00\u542F\u8865\u4EA4\u63D0\u793A",centered:!0,width:480,content:Vt.createElement("div",{style:{padding:10,background:"#f5f6f9"}},Vt.createElement("div",null,"1.\u5F00\u542F\u8865\u4EA4\u540E\u4E0D\u53EF\u5173\u95ED\uFF0C\u8865\u4EA4\u65B9\u5F0F\u63D0\u4EA4\u4FDD\u5B58\u540E\u4E0D\u53EF\u4FEE\u6539\uFF1B"),Vt.createElement("div",null,"2.\u8865\u4EA4\u622A\u6B62\u65F6\u95F4\u5FC5\u987B\u665A\u4E8E\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\uFF1B"),Vt.createElement("div",null,"3.\u73ED\u7EA7\u9636\u6BB5\u8FDB\u5165\u201C\u8865\u4EA4\u4E2D\u201D\u5219\u4E0D\u53EF\u53D8\u66F4\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\u3002"))}),bn.allow_late=!bn.allow_late,qe==""&&pn([{late_penalty:5}]),Yn(Object.assign({},bn))}},Vt.createElement("strong",null,"\u5F00\u542F\u8865\u4EA4")))),(bn==null?void 0:bn.allow_late)&&Vt.createElement("div",{style:{background:"#F6F7F9",padding:"10px 30px",marginTop:"1px",color:"#666666"}},Vt.createElement("div",{style:{display:"flex"}},Vt.createElement("div",{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u65B9\u5F0F"),Vt.createElement(jt.ZP.Group,{style:{marginLeft:"20px"},disabled:Xe||(Ie==null?void 0:Ie.anonymous_comment)||(Ie==null?void 0:Ie.allow_late),value:bn.unified_late,onChange:yn=>{var Zn;if((0,Nt.Rm)()&&!((Zn=On.AssistantObject.practice)!=null&&Zn.can_late)){Fe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}bn.unified_late=yn.target.value,qe==""&&!yn.target.value&&pn([{penalty_type:St.Q.Percent,late_penalty:20}]),Yn(fn({},bn))}},(bn==null?void 0:bn.unified_setting)&&Vt.createElement(jt.ZP,{value:!0,disabled:!(Ie!=null&&Ie.manage_all_group),style:{marginRight:"50px"}},"\u7EDF\u4E00\u8865\u4EA4"),(($t=Ie==null?void 0:Ie.group_settings)==null?void 0:$t.length)>0&&Vt.createElement(jt.ZP,{value:!1},"\u5206\u73ED\u8865\u4EA4"))),bn!=null&&bn.unified_late?Vt.createElement(Vt.Fragment,null,Vt.createElement(ge.Z,{align:"middle",style:{marginTop:"10px"}},Vt.createElement(Ze.Z,{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u6263\u5206"),Vt.createElement(Ze.Z,{className:"ml20"},Vt.createElement(St.Z,{disabled:Xe||Ji,value:{type:bn.penalty_type,inputValue:bn.late_penalty},onChange:yn=>{var Zn;if((0,Nt.Rm)()&&!((Zn=On.AssistantObject.practice)!=null&&Zn.can_late)){Fe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Yn(Ge(fn({},bn),{late_penalty:yn.inputValue,penalty_type:yn.type}))}})),Vt.createElement(Ze.Z,{flex:"1",className:"ml5"},Vt.createElement("span",{className:"c-grey-c ml10"},bn.penalty_type===St.Q.Number?"(\u8865\u4EA4\u65F6\u6309\u7167\u5B66\u751F\u603B\u6210\u7EE9\u6263\u5206)":"(\u5B66\u751F\u6700\u7EC8\u5F97\u5206=\u8865\u4EA4\u524D\u5F97\u5206+\u8865\u4EA4\u9636\u6BB5\u589E\u52A0\u7684\u5206\u503C*\uFF08100%-\u767E\u5206\u6BD4%\uFF09)"))),Vt.createElement(ge.Z,{align:"middle",style:{marginTop:"15px"}},Vt.createElement(Ze.Z,{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4"),Vt.createElement(Ze.Z,{className:"ml20"},Vt.createElement(te.default,{size:"large",allowClear:!1,style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:We()((0,lt.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:Xe||Ji,value:bn.late_time?We()(bn.late_time):"",disabledDate:yn=>Qt(yn,Ie==null?void 0:Ie.course_end_date),onChange:(yn,Zn)=>{var dr;if((0,Nt.Rm)()&&!((dr=On.AssistantObject.practice)!=null&&dr.can_late)){Fe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}bn.late_time=Zn,Yn(Object.assign({},bn))}})))):qe.map(function(yn,Zn){var dr;return Vt.createElement(Ze.Z,{span:24,key:Zn},Vt.createElement(ge.Z,{style:{display:"flex",alignItems:"center",marginTop:"10px"}},Vt.createElement("div",{style:{width:"85px",marginLeft:"27px",textAlign:"right"}},"\u8865\u4EA4\u89C4\u5219",Zn+1),Vt.createElement(re.default,{disabled:Xe||!((dr=Oe==null?void 0:Oe.homework_status)!=null&&dr.includes("\u672A\u53D1\u5E03"))&&yn.id||(Ie==null?void 0:Ie.anonymous_comment),mode:"multiple",className:gt.Z.multiple_select,style:{width:"212px",marginLeft:"18px"},value:typeof yn.group_name=="string"?[yn.group_name]:yn.group_name,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",onChange:sr=>{var Oi;if((0,Nt.Rm)()&&!((Oi=On.AssistantObject.practice)!=null&&Oi.can_late)){Fe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}qe[Zn].group_name=sr,qe[Zn].group_id=yn.group_id,pn(qe.slice())}},Ie.group_settings&&Ie.group_settings.map(function(sr){const Oi=qe.map(Cn=>Cn.group_name).flat(),Nn=en.map(Cn=>Cn.group_name).flat();if(bn!=null&&bn.unified_setting){if(!Oi.includes(sr.group_name))return Vt.createElement(ln,{value:sr.group_name,key:sr.id},sr.group_name)}else if(Nn.includes(sr.group_name)&&!Oi.includes(sr.group_name))return Vt.createElement(ln,{value:sr.group_name,key:sr.id},sr.group_name)})),Vt.createElement("div",{className:"ml20 mr10"},"\u8865\u4EA4\u6263\u5206"),Vt.createElement(St.Z,{disabled:Xe||xr(yn.id),value:{type:yn.penalty_type,inputValue:yn.late_penalty},onChange:sr=>{var Oi;if((0,Nt.Rm)()&&!((Oi=On.AssistantObject.practice)!=null&&Oi.can_late)){Fe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}qe[Zn].late_penalty=sr.inputValue,qe[Zn].penalty_type=sr.type,pn([...qe])}}),Vt.createElement("div",{className:"ml20 mr10"},"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4"),Vt.createElement(te.default,{size:"large",disabled:Xe||xr(yn.id),style:{width:225},showTime:{format:"HH:mm",defaultValue:We()((0,lt.U6)(),"HH:mm")},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",disabledDate:sr=>Qt(sr,Ie==null?void 0:Ie.course_end_date),format:"YYYY-MM-DD HH:mm",value:yn!=null&&yn.late_time?We()(yn.late_time):void 0,onChange:(sr,Oi)=>{var Nn;if((0,Nt.Rm)()&&!((Nn=On.AssistantObject.practice)!=null&&Nn.can_late)){Fe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}qe[Zn].late_time=Oi,pn([...qe])}}),!Xe&&Vt.createElement("div",{style:{display:"flex",width:"50px"}},Vt.createElement("i",{className:"iconfont icon-zengjia1 ml10 mr10",style:{cursor:"pointer",color:"#00B187"},onClick:()=>{var sr;if((0,Nt.Rm)()&&!((sr=On.AssistantObject.practice)!=null&&sr.can_late)){Fe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}pn(qe.concat({penalty_type:St.Q.Percent,late_penalty:20}))}}),Zn>0&&!yn.id&&Vt.createElement("i",{className:"iconfont icon-shanjian1",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{var sr;if((0,Nt.Rm)()&&!((sr=On.AssistantObject.practice)!=null&&sr.can_late)){Fe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}qe=qe.filter((Oi,Nn)=>Zn!==Nn),pn(qe.slice()),setTimeout(()=>pn(qe.slice()),10)}}))))})),!Xe&&Vt.createElement(Vt.Fragment,null,Vt.createElement(Re.ZP,{type:"primary",size:"large",loading:In,style:{width:"138px",marginTop:"30px"},onClick:()=>pr()},"\u4FDD\u5B58")),Vt.createElement(It.Z,{onConfirm:(yn,Zn)=>{en.splice(yn,0,...Zn),en.splice(yn+Zn.length,1);const dr=(0,lt.QE)([...en]);ze([...dr])}}),Vt.createElement(Ht.Z,{resdata:ti,type:"shixun",okloading:In,oktext:(ti==null?void 0:ti.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:yn=>an(void 0,null,function*(){An(!0);let Zn=yield(0,nt.ZP)(`/api/courses/${un.coursesId}/batch_copy_shixuns.json`,{method:"post",body:{type:"homework_common",ids:[parseInt(un.categoryId)]}});An(!1),(Zn==null?void 0:Zn.status)===0&&or(vn)})}))};pi.ZP=(0,mt.connect)(({shixunHomeworks:Dn,classroomList:fi,loading:Ve,user:On})=>({shixunHomeworks:Dn,classroomList:fi,loading:Ve.effects,user:On}))(qn)},54483:function(Jn,pi,Dt){"use strict";Dt.d(pi,{Z:function(){return Mt}});var yt=Dt(59301),te=Dt(37568),re=Dt(62673),Fe=Dt(77019),be={leftdiv:"leftdiv___aBzsX",listClass:"listClass___bxIEW",spantitle:"spantitle___v_Vc4",rightdiv:"rightdiv___xWu4M"},jt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAbVJREFUOE+Nk79rFUEUhb+zE4OFwUD+CyGKKQQbSaMikQQ7C1tBBIsUQaJvl2Fn/cWDpAiIYJsi7YOIaCUWFoKKRhG0sbEzEImFGnev7G6yyXsxeU5159yZb87l3hG9q2WLiBO79FIwXpLp0s6cwITnQCMWrGDM43jdBckZQ0wTMdrong2R2Bxm0/98sZ8ozdcOEm5hjOC41u9Olc9ZQKySclOVkNhljCmCzjeAJM/4FbW5p+8k5tlggTtarfKxLSM6pHq4BTiL0SboaAOIi284jeP1nti+ApMEvdoEvEPMkOpJDZi1IwzwgqDh/wSsYZwk08ca4O0Qua3zW8OV5crmHg6u22EGbQ2nIbx+1IC6rrK+cYJW9gXEVrbxGUEj5bltQGJvgBapHu0LSGwCyEh1vBsQWwd4TNCDPg6uAOcImuoFlL1dJ9WNPg5uYwwRVM3MzhJmKIpjZK6e9bj4jNNpvL4QFx9wuoDXJ1r5IlH0llTtXgcXwa4SolObnYnwKnbFcfEcdJ+gpW6AtzFynuIop/Fn053u4CA5yzjO4FV9tu0Syl2S38WiSWBgD8AfoEPQ7Fb+LwIiyhxWwe2KAAAAAElFTkSuQmCC",ge=Dt(63604),Ze=(Re,Yt,We)=>new Promise((Nt,nt)=>{var et=gt=>{try{lt(We.next(gt))}catch(mt){nt(mt)}},dt=gt=>{try{lt(We.throw(gt))}catch(mt){nt(mt)}},lt=gt=>gt.done?Nt(gt.value):Promise.resolve(gt.value).then(et,dt);lt((We=We.apply(Re,Yt)).next())}),Mt=({data:Re,value:Yt=[],handleChangePage:We,className:Nt="",setSelectedRowKeys:nt,selectedRowKeys:et,onChange:dt=()=>{}})=>{const[lt,gt]=(0,yt.useState)([]),[mt,St]=(0,yt.useState)([]),[bt,It]=(0,yt.useState)([]);let[Ht,se]=(0,yt.useState)(1),[Vt,Jt]=(0,yt.useState)();return(0,yt.useEffect)(()=>{gt(Re),St([]),It([])},[Re]),(0,yt.useEffect)(()=>{nt&&(St(et),It(et))},[et]),yt.createElement("div",{className:`flex justify-between w-full ${Nt}`},yt.createElement("div",{className:be.leftdiv},yt.createElement(te.default.Search,{size:"middle",style:{marginBottom:"10rem"},onChange:Ee=>Ze(void 0,null,function*(){gt(Re.filter(we=>{var De;return(De=we==null?void 0:we.name)==null?void 0:De.includes(Ee.target.value)}))}),placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),lt.length===0&&yt.createElement(ge.Z,{styles:{margin:"70rem auto"},customText:"\u6682\u65E0\u5206\u73ED"}),yt.createElement("div",{style:{height:"85%",overflow:"auto",overflowX:"hidden"}},yt.createElement(re.default.Group,{value:mt.map(Ee=>`${Ee.id}`),onChange:Ee=>{nt(lt.filter(we=>Ee.includes(`${we.id}`)))},style:{marginTop:"10px",flexDirection:"column"}},lt.map((Ee,we)=>yt.createElement(Fe.Z,{key:Ee.id,style:{marginTop:"10rem",lineHeight:"24rem",display:"flex",width:"200rem"}},yt.createElement(re.default,{style:{display:"flex",height:"24px",alignItems:"center"},disabled:Ee.is_published,value:`${Ee.id}`},yt.createElement("div",{className:be.listClass},yt.createElement("span",{className:be.spantitle,style:{width:Ee.is_published?"108px":"170px"}},Ee.name),Ee.is_published&&yt.createElement("span",{style:{width:"52px",height:"24px",background:"#B8B8B8",borderRadius:"13px",color:"white",lineHeight:"24px",textAlign:"center",display:"inline-block"}},"\u5DF2\u53D1\u5E03")))))))),yt.createElement("div",{className:be.rightdiv},yt.createElement(te.default.Search,{onChange:Ee=>{It(mt.filter(we=>we.name.includes(Ee.target.value)))},size:"middle",placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),bt.length===0&&yt.createElement(ge.Z,{imgStyles:{width:"200rem"},styles:{margin:"70rem auto"},customText:"\u6682\u672A\u9009\u62E9\u5206\u73ED"}),bt.length>0&&yt.createElement("div",{style:{marginTop:"10px",height:"85%",overflow:"hidden",position:"relative"}},yt.createElement("div",{style:{overflowX:"hidden",overflowY:"scroll",position:"absolute",left:0,top:0,right:-17,bottom:0}},bt.map((Ee,we)=>yt.createElement("div",{className:"flex justify-between item-center",style:{marginTop:"10rem"},key:Ee.id},yt.createElement("div",{className:"multi_ellipsis1 flex-1 minW-0",style:{margin:"0 5rem"}},Ee.name),yt.createElement("img",{src:jt,className:"current",style:{height:"16rem",marginRight:"17rem"},onClick:()=>{nt(mt.filter(De=>`${De.id}`!=`${Ee.id}`))}})))))))}},80954:function(Jn,pi,Dt){"use strict";Dt.d(pi,{Z:function(){return dt}});var yt=Dt(59301),te=Dt(44993),re=Dt(16326),Fe=Dt(62957),be=Dt(37568),jt=Dt(6767),ge=Dt(77019),Ze=Dt(5269),Ce={title_tooltip:"title_tooltip___LLdrn",multiple_select:"multiple_select___kDXUm",modal_con:"modal_con___ERnkW"},Mt=Dt(61186),Re=Dt.n(Mt),Yt=Dt(89299),We=Dt(63604),Nt=Dt(59301);const{RangePicker:nt}=re.default,et=({dispatch:lt,classroomList:gt,onConfirm:mt})=>{const[St,bt]=(0,yt.useState)([]),[It,Ht]=(0,yt.useState)([]),[se,Vt]=(0,yt.useState)(""),[Jt,Ee]=(0,yt.useState)([!1,!1]);(0,yt.useEffect)(()=>{var Le,sn,Fn,fn;if(gt.actionTabs.key==="\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206"){console.log((Le=gt.actionTabs)==null?void 0:Le.rangePickerDisabled),(sn=gt.actionTabs)!=null&&sn.rangePickerDisabled?Ee((Fn=gt.actionTabs)==null?void 0:Fn.rangePickerDisabled):Ee([!1,!1]);let Ge=gt.actionTabs.data,an=(fn=Ge==null?void 0:Ge.group_name)==null?void 0:fn.map((Se,Qt)=>{var mn;return{group_id:Ge==null?void 0:Ge.group_id[Qt],group_name:Ge==null?void 0:Ge.group_name[Qt],is_admin:Ge==null?void 0:Ge.is_admin,end_time:Ge==null?void 0:Ge.end_time,publish_time:Array.isArray(Ge==null?void 0:Ge.publish_time)?(mn=Ge==null?void 0:Ge.publish_time)==null?void 0:mn[0]:Ge==null?void 0:Ge.publish_time}});an&&(bt([...an]),Ht([...an]))}},[gt.actionTabs]);const we=()=>{lt({type:"classroomList/setActionTabs",payload:{}}),Vt("")},De=Le=>{if(Le){const sn=It==null?void 0:It.filter(Fn=>{var fn,Ge;return(Ge=(fn=Fn==null?void 0:Fn.group_name)==null?void 0:fn.toLowerCase())==null?void 0:Ge.includes(Le==null?void 0:Le.toLowerCase())});bt(sn)}else bt(It)};return Nt.createElement(Fe.default,{width:980,title:Nt.createElement("div",{style:{fontWeight:"bold",display:"flex"}},Nt.createElement("div",null,"\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",Nt.createElement("span",{className:Ce.title_tooltip},"\uFF08\u5F53\u5206\u73ED\u53D1\u5E03\u65F6\u95F4\u548C\u622A\u6B62\u65F6\u95F4\u4E0D\u76F8\u540C\u65F6\u5019\uFF0C\u73ED\u7EA7\u81EA\u52A8\u62C6\u5206\u51FA\u53BB\u65B0\u8D77\u89C4\u5219\uFF09")),Nt.createElement(be.default.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22",style:{width:220,marginLeft:"60px"},value:se,onChange:Le=>{Vt(Le.target.value.trim()),De(Le.target.value.trim())}})),centered:!0,maskClosable:!1,open:gt.actionTabs.key==="\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",onCancel:()=>we(),onOk:()=>{var Le;if(It.some(Fn=>!Fn.end_time||!Fn.publish_time)){jt.ZP.warning("\u8BF7\u5C06\u5217\u8868\u6570\u636E\u4E2D\u7684\u53D1\u5E03\u65F6\u95F4\u548C\u622A\u6B62\u65F6\u95F4\u8865\u5145\u5B8C\u6574\uFF01");return}mt((Le=gt.actionTabs)==null?void 0:Le.index,It),we()}},Nt.createElement("div",{className:Ce.modal_con},Nt.createElement(ge.Z,{style:{display:"flex",color:"#666666",padding:"5px",marginTop:"1px"}},(St==null?void 0:St.length)>0?St.map(function(Le,sn){return Nt.createElement(Ze.Z,{span:24,key:sn},Nt.createElement(ge.Z,{gutter:[8,16],style:{display:"flex",alignItems:"center",marginBottom:sn==(St==null?void 0:St.length)-1?"0px":"10px"}},Nt.createElement("div",{className:Ce.multiple_select,title:Le==null?void 0:Le.group_name},Le==null?void 0:Le.group_name),Nt.createElement("div",{className:"ml20"},Nt.createElement(nt,{size:"large",allowClear:!1,disabled:Jt,style:{width:600},placeholder:["\u53D1\u5E03\u65F6\u95F4\uFF08\u5B66\u751F\u6536\u5230\u4F5C\u4E1A\u65F6\u95F4\uFF09","\u622A\u6B62\u65F6\u95F4\uFF08\u5B66\u751F\u201C\u6309\u65F6\u201D\u63D0\u4EA4\u4F5C\u54C1\u65F6\u95F4\u622A\u70B9\uFF09"],disabledDate:Fn=>{var fn;return(0,Yt.Q8)(Fn,(fn=gt.actionTabs)==null?void 0:fn.disabledDate)},disabledTime:Fn=>(0,Yt.d0)(Fn),showTime:{showNow:!0,format:"HH:mm",defaultValue:[Re()((0,Yt.U6)(),"HH:mm"),Re()((0,Yt.U6)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:(Le==null?void 0:Le.publish_time)&&[Re()(Le==null?void 0:Le.publish_time),Le!=null&&Le.end_time?Re()(Le==null?void 0:Le.end_time):void 0],onChange:(Fn,fn)=>{St[sn].publish_time=fn[0],St[sn].end_time=fn[1],bt([...St]),It.forEach(Ge=>{Ge.group_id===(Le==null?void 0:Le.group_id)&&(Ge.publish_time=fn[0],Ge.end_time=fn[1])}),Ht([...It])},onCalendarChange:(Fn,fn,Ge)=>{if(fn!=null&&fn[0]&&!fn[1]){const an=Re()(fn[0]).add(7,"days");St[sn].publish_time=fn[0],St[sn].end_time=an,bt([...St]),It.forEach(Se=>{Se.group_id===(Le==null?void 0:Le.group_id)&&(Se.publish_time=fn[0],Se.end_time=an)}),Ht([...It])}}})),Jt[0]?Nt.createElement("i",{className:"iconfont icon-shanjian1 ml15",style:{color:"#E30000",opacity:"0.2",cursor:"not-allowed"}}):Nt.createElement("i",{className:"iconfont icon-shanjian1 ml15",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{St.splice(sn,1),bt([...St]),It.forEach((Fn,fn)=>{Fn.group_id===(Le==null?void 0:Le.group_id)&&It.splice(fn,1)}),Ht([...It])}})))}):Nt.createElement(We.Z,null))))};var dt=(0,te.connect)(({classroomList:lt})=>({classroomList:lt}))(et)},48421:function(Jn,pi,Dt){"use strict";Dt.d(pi,{AL:function(){return St},Iy:function(){return Re},Qv:function(){return Nt},ez:function(){return mt},jb:function(){return Yt}});var yt=Dt(32834),te=Dt.n(yt),re=Dt(11690),Fe=Dt.n(re);let be=1;function jt(Vt,Jt){const Ee=Vt.match(/^(\s+)(?:```)/);if(Ee===null)return Jt;const we=Ee[1];return Jt.split(`
`).map(De=>{const Le=De.match(/^\s+/);if(Le===null)return De;const[sn]=Le;return sn.length>=we.length?De.slice(we.length):De}).join(`
`)}let ge=[],Ze=["<ul>"];const Ce=new(te()).Renderer,Mt=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function Re(){ge.length=0,Ze=["<ul>"]}const Yt={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function We(Vt,Jt,Ee,we){if(Jt>=Vt.length||Vt[Jt].level<=Ee)return Jt;var De=Vt[Jt];we.push("<li><a href='#"+be+De.anchor+"'>"+De.text+"</a>"),Jt++;var Le=[];return Jt=We(Vt,Jt,De.level,Le),Le.length>0&&(we.push("<ul>"),Le.forEach(function(sn){we.push(sn)}),we.push("</ul>")),we.push("</li>"),Jt=We(Vt,Jt,Ee,we),Jt}function Nt(){return We(ge,0,0,Ze),Ze.push("</ul>"),Ze.join("")}const nt={heading(Vt){const Jt=Mt.exec(Vt);if(be+=1,Jt)return{type:"heading",raw:Jt[0],depth:Jt[1].length,text:Jt[2]}},fences(Vt){const Jt=this.rules.block.fences.exec(Vt);if(Jt){const Ee=Jt[0];let we=jt(Ee,Jt[3]||"");const De=Jt[2]?Jt[2].trim():Jt[2];if(["latex","katex","math"].indexOf(De)>=0){const Le=lt(),sn=we;we=Le,gt[Le]={type:"block",expression:sn}}return{type:"code",raw:Ee,lang:De,text:we}}}},et=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let dt=0;const lt=()=>`__special_katext_id_${dt++}__`;let gt={};function mt(){return gt}function St(){dt=0,gt={}}function bt(Vt){return Vt=Vt.replace(et,(Jt,Ee)=>{const we=lt();return gt[we]={type:"inline",expression:Ee},we}),Vt}const It=Ce.listitem;Ce.listitem=function(Vt){return It(bt(Vt))};const Ht=Ce.paragraph;Ce.paragraph=function(Vt){return Ht(bt(Vt))};const se=Ce.tablecell;Ce.tablecell=function(Vt,Jt){return se(bt(Vt),Jt)},Ce.code=function(Vt,Jt,Ee){const we=(Jt||"").match(/\S*/)[0];return we?["latex","katex","math"].indexOf(we)>=0?`<p class='editormd-tex'>${Vt}</p>`:`<pre class="prettyprint linenums"><code class="language-${Jt}">${Ee?Vt:(0,re.escape)(Vt,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+(Ee?Vt:(0,re.escape)(Vt,!0))+"</code></pre>"},Ce.heading=function(Vt,Jt,Ee){let we=this.options.headerPrefix+Ee.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return ge.push({anchor:we,level:Jt,text:Vt}),"<h"+Jt+' id="'+be+we+'">'+Vt+"</h"+Jt+">"},te().setOptions({silent:!0,gfm:!0,pedantic:!1}),te().use({tokenizer:nt,renderer:Ce}),pi.ZP=te()},2686:function(Jn,pi,Dt){"use strict";Dt.d(pi,{rX:function(){return bt},pW:function(){return It},gy:function(){return Ht},xY:function(){return St},O5:function(){return mt},hs:function(){return et},tJ:function(){return Nt},o1:function(){return nt},Rd:function(){return gt}});var yt=Dt(44993),te=Dt(62957),re=Dt(37285),Fe=Dt(6767),be=Dt(64681),jt=Dt(89299),ge=Dt(87169),Ze=Dt(25510),Ce="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAIAAAAP3aGbAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAABcRAAAXEQHKJvM/AAAouElEQVR42u3de5gU1Z038HOq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AAgAwEFgCQkcewBioPvlsxAMK2u/gunHPB5OJWjJ+wbeSKs1u3YnHqRT5whAUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIMFutYefOnRUVFVa3ctWqVStXrjT4ZtsqK+RE5Ql7K1BpvAtHmdhWI8S2QhcWDWswG1gVFRVVVVVWtCxbOBy2ehMA4H44JQQAMhBYAEAGAgsAyEBgAQAZCCwAIMOSSShM3tFsaWkp+J1HZx+RN75O23pkRWEGk5wdEWJFN0023mTdEWfH9xjvZl5whAUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIsGRYg7NIP99vRd+tKDlg2zutYLxJzk7/Ydv+dOEcKwPBERYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgowiHNYzk4QJWPEzvwm7mZEVlBZP1Epwd65CTbSMYLBq5giMsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQIYlwxpaWlrMLG5yBgrbSvfbVnKASsED25j8iE2u0/jiJsc6uLBWhLPrZBYFVsHnvAEAYDglBABCEFgAQAYCCwDIQGABABlmL7qvWrUqHA5b3cotW7bYszsAwM24FXeIbUPl0XPbahsY76ZtU3W48+64ma0bZ9tnZFtdB9tKoQwEp4QAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjDyGNQAAOAtHWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjP8Prqme11Be/zoAAAAASUVORK5CYII=",Mt=Dt.p+"static/newqrcode.a8740efb.png",Re=Dt(32637),Yt=Dt(59301),We=(se,Vt,Jt)=>new Promise((Ee,we)=>{var De=Fn=>{try{sn(Jt.next(Fn))}catch(fn){we(fn)}},Le=Fn=>{try{sn(Jt.throw(Fn))}catch(fn){we(fn)}},sn=Fn=>Fn.done?Ee(Fn.value):Promise.resolve(Fn.value).then(De,Le);sn((Jt=Jt.apply(se,Vt)).next())});const Nt=(se,Vt=!1,Jt=!1,Ee="",we=!1)=>!!(nt(se)&&dt(se,Vt,Jt,Ee,we)),nt=se=>(0,be.bg)()?!0:(se({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1),et=se=>{var Vt,Jt,Ee;const{user:we}=(0,yt.getDvaApp)()._store.getState();(0,be.bg)()&&!((Jt=(Vt=we==null?void 0:we.userInfo)==null?void 0:Vt.course)!=null&&Jt.course_public)&&!((Ee=we==null?void 0:we.userInfo)!=null&&Ee.profile_completed)&&se({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:"/account/profile/edit",isCurrentPage:!0}})},dt=(se,Vt=!1,Jt=!0,Ee="",we=!1)=>{var De;const{user:Le}=(0,yt.getDvaApp)()._store.getState();return(De=Le.userInfo)!=null&&De.profile_completed?!0:(Jt?se({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:Ee,isCurrentPage:we}}):te.default.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:"\u60A8\u9700\u8981\u53BB\u5B8C\u5584\u60A8\u7684\u4E2A\u4EBA\u8D44\u6599\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD",okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:()=>{(0,jt.xg)("/account/profile/edit"),lt()}}),!1)},lt=()=>{te.default.success({title:"\u63D0\u793A",width:430,closable:!0,centered:!0,content:"\u5DF2\u5B8C\u5584\u4E2A\u4EBA\u8D44\u6599\uFF1F\u8BF7\u5237\u65B0\u9875\u9762",okText:"\u7ACB\u5373\u5237\u65B0",icon:null,onOk:()=>{location.reload()}})},gt=()=>{te.default.warning({title:"\u63D0\u793A",icon:null,width:400,content:Yt.createElement("div",{style:{textAlign:"center"}},Yt.createElement("div",{style:{color:"#191919",fontSize:14,marginBottom:15,textAlign:"left"}},"\u8001\u5E08\u60A8\u597D\uFF0C\u60A8\u7684\u8BFE\u5802\u8BD5\u7528\u671F\u5DF2\u7ED3\u675F\uFF0C\u76F8\u5173\u529F\u80FD\u88AB\u9650\u5236\u3002 \u5982\u9700\u7EE7\u7EED\u4F7F\u7528\uFF0C\u8BF7\u5C3D\u5FEB\u5BF9\u63A5\u4EBA\u5DE5\u652F\u6301\uFF01"),Yt.createElement("img",{style:{border:"1px solid #D8E3E9",width:190,height:180},src:Re}),Yt.createElement("div",{style:{color:"#666666",fontSize:14,marginTop:15}},"\u6DFB\u52A0\u5BA2\u670D\u4EBA\u5458\u5FAE\u4FE1\uFF0C\u83B7\u5F97\u66F4\u591A\u652F\u6301"))})},mt=()=>{var se;const{user:Vt}=(0,yt.getDvaApp)()._store.getState();return(se=Vt.userInfo)!=null&&se.professional_certification?!0:(te.default.confirm({title:"\u63D0\u793A",centered:!0,content:Yt.createElement("div",{className:"tc"},"\u60A8\u9700\u8981\u53BB\u5B8C\u6210\u60A8\u7684\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:()=>{(0,jt.xg)("/account/certification")}}),!1)},St=()=>(0,be.V9)()?!0:(te.default.warning({centered:!0,width:530,title:"\u63D0\u793A",content:Yt.createElement("div",{className:"tc",style:{marginLeft:-38}},Yt.createElement("p",null,"\u626B\u7801\u52A0\u5934\u6B4C\u52A9\u6559\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650"),Yt.createElement("img",{src:Mt,width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1),bt=(se,Vt)=>se?!0:(te.default.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:Yt.createElement("div",null,Yt.createElement("p",null,Vt||"\u8BE5\u5B9E\u8DF5\u8D44\u6E90\u9700\u6388\u6743\u540E\u624D\u53EF\u4F7F\u7528\u3002 \u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650\u3002"),Yt.createElement("div",{style:{marginLeft:"110px"}},Yt.createElement("img",{src:Ce,width:200}),Yt.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:()=>{(0,jt.xg)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1),It=se=>{te.default.info({title:"\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425",icon:null,width:615,centered:!0,content:Yt.createElement("div",null,Yt.createElement("div",null,Yt.createElement("p",{style:{color:"#191919",fontWeight:400,fontSize:14}},"\u201C\u4FDD\u5B58\u5B9E\u9A8C\u4E34\u65F6\u6570\u636E\u201D\u529F\u80FD\u4E3A\u4ED8\u8D39\u529F\u80FD\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425\u8FDB\u884C\u5F00\u901A\u3002"),Yt.createElement(re.Z,null),Yt.createElement("p",{style:{color:"#666666",fontSize:12}}," ",Yt.createElement("span",{style:{display:"inline-flex",width:14,height:14,borderRadius:2,background:"#F3F3F3",justifyContent:"center",color:"#666666",fontSize:12,lineHeight:"14px",marginRight:8}},"1")," \u56E0\u5E73\u53F0\u7684\u5B9E\u9A8C\u6570\u636E\u50A8\u5B58\u5BB9\u91CF\u548C\u6210\u672C\u6D88\u8017\u8F83\u5927\uFF0C\u5B9E\u8DF5\u9879\u76EE\u9ED8\u8BA4\u4FDD\u5B58\u5B9E\u9A8C\u73AF\u5883\u4E2D\u4E34\u65F6\u6570\u636E ",Yt.createElement("a",null,se),"\u5929\u3002"),Yt.createElement("p",{style:{color:"#666666",fontSize:12}}," ",Yt.createElement("span",{style:{display:"inline-flex",width:14,height:14,borderRadius:2,background:"#F3F3F3",justifyContent:"center",color:"#666666",fontSize:12,lineHeight:"14px",marginRight:8}},"2"),"\u82E5\u60A8\u9700\u8981\u4E2A\u6027\u5316\u7684\u6570\u636E\u4FDD\u5B58\u5468\u671F\u670D\u52A1\uFF0C\u6211\u4EEC\u53EF\u4EE5\u63D0\u4F9B\u76F8\u5173\u6280\u672F\u652F\u6301\uFF0C\u5E76\u6839\u636E\u60A8\u7684\u9700\u6C42\u6536\u53D6\u5B9A\u5236\u8D39\u7528\u3002")),Yt.createElement("div",{style:{textAlign:"center",marginTop:30}},Yt.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:Ze,alt:"\u4E8C\u7EF4\u7801",width:160})))})},Ht=(se,Vt="")=>{const{shixunsDetail:{detail:Jt}}=(0,yt.getDvaApp)()._store.getState();if((Jt==null?void 0:Jt.public)===2||(Jt==null?void 0:Jt.public)===1||(Jt==null?void 0:Jt.shixun_status)===3){let Ee="";return(Jt==null?void 0:Jt.public)===2&&(Ee="\u5DF2\u516C\u5F00"),(Jt==null?void 0:Jt.public)===1&&(Ee="\u5F85\u5BA1\u6838"),(Jt==null?void 0:Jt.shixun_status)===3&&(Ee="\u5DF2\u5173\u95ED"),te.default.info({centered:!0,icon:Yt.createElement(ge.Z,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:Yt.createElement("div",{className:"tc",style:{marginLeft:-38}},Yt.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},Yt.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",Ee,"\uFF0C",Vt,"\u3002"),Yt.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),Yt.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:Ze,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0}return(Jt==null?void 0:Jt.shixun_status)===2?(te.default.confirm({centered:!0,icon:Yt.createElement(ge.Z,null),title:"\u63D0\u793A",content:Yt.createElement("div",null,Yt.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",Vt,"\u3002"),Yt.createElement("br",null),Yt.createElement("span",null,"\u5982\u6709\u9700\u8981\uFF0C\u60A8\u53EF\u4EE5\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u518D\u8FDB\u884C\u64CD\u4F5C\u3002")),okText:"\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:()=>{te.default.confirm({width:440,centered:!0,icon:Yt.createElement(ge.Z,{style:{color:"#faad14"}}),title:"\u63D0\u793A",content:"\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u5B66\u5458\u5C06\u65E0\u6CD5\u8FDB\u884C\u7EC3\u4E60\u3002\u662F\u5426\u786E\u8BA4\u64A4\u9500\u53D1\u5E03\uFF1F",okText:"\u786E\u5B9A\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:()=>We(void 0,null,function*(){(yield se({type:"shixunsDetail/cancelRelease",payload:{id:Jt==null?void 0:Jt.identifier}})).status!==401&&(Fe.ZP.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),se({type:"shixunsDetail/getShixunsDetail",payload:{id:Jt==null?void 0:Jt.identifier}}),se({type:"practiceSetting/getCommonData",payload:{id:Jt==null?void 0:Jt.identifier}}))})})}}),!0):!1}},99498:function(Jn,pi,Dt){(function(yt){yt(Dt(89780))})(function(yt){yt.defineOption("placeholder","",function(Ze,Ce,Mt){var Re=Mt&&Mt!=yt.Init;if(Ce&&!Re)Ze.on("blur",be),Ze.on("change",jt),Ze.on("swapDoc",jt),yt.on(Ze.getInputField(),"compositionupdate",Ze.state.placeholderCompose=function(){Fe(Ze)}),jt(Ze);else if(!Ce&&Re){Ze.off("blur",be),Ze.off("change",jt),Ze.off("swapDoc",jt),yt.off(Ze.getInputField(),"compositionupdate",Ze.state.placeholderCompose),te(Ze);var Yt=Ze.getWrapperElement();Yt.className=Yt.className.replace(" CodeMirror-empty","")}Ce&&!Ze.hasFocus()&&be(Ze)});function te(Ze){Ze.state.placeholder&&(Ze.state.placeholder.parentNode.removeChild(Ze.state.placeholder),Ze.state.placeholder=null)}function re(Ze){te(Ze);var Ce=Ze.state.placeholder=document.createElement("pre");Ce.style.cssText="height: 0; overflow: visible",Ce.style.direction=Ze.getOption("direction"),Ce.className="CodeMirror-placeholder CodeMirror-line-like";var Mt=Ze.getOption("placeholder");typeof Mt=="string"&&(Mt=document.createTextNode(Mt)),Ce.appendChild(Mt),Ze.display.lineSpace.insertBefore(Ce,Ze.display.lineSpace.firstChild)}function Fe(Ze){setTimeout(function(){var Ce=!1,Mt=Ze.getInputField();Mt.nodeName=="TEXTAREA"?Ce=!Mt.value:Ze.lineCount()==1&&(Ce=!/[^\u200b]/.test(Mt.querySelector(".CodeMirror-line").textContent)),Ce?re(Ze):te(Ze)},20)}function be(Ze){ge(Ze)&&re(Ze)}function jt(Ze){var Ce=Ze.getWrapperElement(),Mt=ge(Ze);Ce.className=Ce.className.replace(" CodeMirror-empty","")+(Mt?" CodeMirror-empty":""),Mt?re(Ze):te(Ze)}function ge(Ze){return Ze.lineCount()===1&&Ze.getLine(0)===""}})},25717:function(Jn,pi,Dt){(function(yt){yt(Dt(89780))})(function(yt){var te={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},re=yt.Pos;yt.defineOption("autoCloseBrackets",!1,function(nt,et,dt){dt&&dt!=yt.Init&&(nt.removeKeyMap(be),nt.state.closeBrackets=null),et&&(jt(Fe(et,"pairs")),nt.state.closeBrackets=et,nt.addKeyMap(be))});function Fe(nt,et){return et=="pairs"&&typeof nt=="string"?nt:typeof nt=="object"&&nt[et]!=null?nt[et]:te[et]}var be={Backspace:Ce,Enter:Mt};function jt(nt){for(var et=0;et<nt.length;et++){var dt=nt.charAt(et),lt="'"+dt+"'";be[lt]||(be[lt]=ge(dt))}}jt(te.pairs+"`");function ge(nt){return function(et){return Yt(et,nt)}}function Ze(nt){var et=nt.state.closeBrackets;if(!et||et.override)return et;var dt=nt.getModeAt(nt.getCursor());return dt.closeBrackets||et}function Ce(nt){var et=Ze(nt);if(!et||nt.getOption("disableInput"))return yt.Pass;for(var dt=Fe(et,"pairs"),lt=nt.listSelections(),gt=0;gt<lt.length;gt++){if(!lt[gt].empty())return yt.Pass;var mt=We(nt,lt[gt].head);if(!mt||dt.indexOf(mt)%2!=0)return yt.Pass}for(var gt=lt.length-1;gt>=0;gt--){var St=lt[gt].head;nt.replaceRange("",re(St.line,St.ch-1),re(St.line,St.ch+1),"+delete")}}function Mt(nt){var et=Ze(nt),dt=et&&Fe(et,"explode");if(!dt||nt.getOption("disableInput"))return yt.Pass;for(var lt=nt.listSelections(),gt=0;gt<lt.length;gt++){if(!lt[gt].empty())return yt.Pass;var mt=We(nt,lt[gt].head);if(!mt||dt.indexOf(mt)%2!=0)return yt.Pass}nt.operation(function(){var St=nt.lineSeparator()||`
`;nt.replaceSelection(St+St,null),nt.execCommand("goCharLeft"),lt=nt.listSelections();for(var bt=0;bt<lt.length;bt++){var It=lt[bt].head.line;nt.indentLine(It,null,!0),nt.indentLine(It+1,null,!0)}})}function Re(nt){var et=yt.cmpPos(nt.anchor,nt.head)>0;return{anchor:new re(nt.anchor.line,nt.anchor.ch+(et?-1:1)),head:new re(nt.head.line,nt.head.ch+(et?1:-1))}}function Yt(nt,et){var dt=Ze(nt);if(!dt||nt.getOption("disableInput"))return yt.Pass;var lt=Fe(dt,"pairs"),gt=lt.indexOf(et);if(gt==-1)return yt.Pass;for(var mt=Fe(dt,"closeBefore"),St=Fe(dt,"triples"),bt=lt.charAt(gt+1)==et,It=nt.listSelections(),Ht=gt%2==0,se,Vt=0;Vt<It.length;Vt++){var Jt=It[Vt],Ee=Jt.head,we,De=nt.getRange(Ee,re(Ee.line,Ee.ch+1));if(Ht&&!Jt.empty())we="surround";else if((bt||!Ht)&&De==et)bt&&Nt(nt,Ee)?we="both":St.indexOf(et)>=0&&nt.getRange(Ee,re(Ee.line,Ee.ch+3))==et+et+et?we="skipThree":we="skip";else if(bt&&Ee.ch>1&&St.indexOf(et)>=0&&nt.getRange(re(Ee.line,Ee.ch-2),Ee)==et+et){if(Ee.ch>2&&/\bstring/.test(nt.getTokenTypeAt(re(Ee.line,Ee.ch-2))))return yt.Pass;we="addFour"}else if(bt){var Le=Ee.ch==0?" ":nt.getRange(re(Ee.line,Ee.ch-1),Ee);if(!yt.isWordChar(De)&&Le!=et&&!yt.isWordChar(Le))we="both";else return yt.Pass}else if(Ht&&(De.length===0||/\s/.test(De)||mt.indexOf(De)>-1))we="both";else return yt.Pass;if(!se)se=we;else if(se!=we)return yt.Pass}var sn=gt%2?lt.charAt(gt-1):et,Fn=gt%2?et:lt.charAt(gt+1);nt.operation(function(){if(se=="skip")nt.execCommand("goCharRight");else if(se=="skipThree")for(var fn=0;fn<3;fn++)nt.execCommand("goCharRight");else if(se=="surround"){for(var Ge=nt.getSelections(),fn=0;fn<Ge.length;fn++)Ge[fn]=sn+Ge[fn]+Fn;nt.replaceSelections(Ge,"around"),Ge=nt.listSelections().slice();for(var fn=0;fn<Ge.length;fn++)Ge[fn]=Re(Ge[fn]);nt.setSelections(Ge)}else se=="both"?(nt.replaceSelection(sn+Fn,null),nt.triggerElectric(sn+Fn),nt.execCommand("goCharLeft")):se=="addFour"&&(nt.replaceSelection(sn+sn+sn+sn,"before"),nt.execCommand("goCharRight"))})}function We(nt,et){var dt=nt.getRange(re(et.line,et.ch-1),re(et.line,et.ch+1));return dt.length==2?dt:null}function Nt(nt,et){var dt=nt.getTokenAt(re(et.line,et.ch+1));return/\bstring/.test(dt.type)&&dt.start==et.ch&&(et.ch==0||!/\bstring/.test(nt.getTokenTypeAt(et)))}})},6313:function(Jn,pi,Dt){(function(yt){yt(Dt(89780),Dt(32855))})(function(yt){yt.defineOption("autoCloseTags",!1,function(Ce,Mt,Re){if(Re!=yt.Init&&Re&&Ce.removeKeyMap("autoCloseTags"),!!Mt){var Yt={name:"autoCloseTags"};(typeof Mt!="object"||Mt.whenClosing!==!1)&&(Yt["'/'"]=function(We){return jt(We)}),(typeof Mt!="object"||Mt.whenOpening!==!1)&&(Yt["'>'"]=function(We){return Fe(We)}),Ce.addKeyMap(Yt)}});var te=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],re=["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 Fe(Ce){if(Ce.getOption("disableInput"))return yt.Pass;for(var Mt=Ce.listSelections(),Re=[],Yt=Ce.getOption("autoCloseTags"),We=0;We<Mt.length;We++){if(!Mt[We].empty())return yt.Pass;var Nt=Mt[We].head,nt=Ce.getTokenAt(Nt),et=yt.innerMode(Ce.getMode(),nt.state),dt=et.state,lt=et.mode.xmlCurrentTag&&et.mode.xmlCurrentTag(dt),gt=lt&&lt.name;if(!gt)return yt.Pass;var mt=et.mode.configuration=="html",St=typeof Yt=="object"&&Yt.dontCloseTags||mt&&te,bt=typeof Yt=="object"&&Yt.indentTags||mt&&re;nt.end>Nt.ch&&(gt=gt.slice(0,gt.length-nt.end+Nt.ch));var It=gt.toLowerCase();if(!gt||nt.type=="string"&&(nt.end!=Nt.ch||!/[\"\']/.test(nt.string.charAt(nt.string.length-1))||nt.string.length==1)||nt.type=="tag"&&lt.close||nt.string.indexOf("/")==Nt.ch-nt.start-1||St&&ge(St,It)>-1||Ze(Ce,et.mode.xmlCurrentContext&&et.mode.xmlCurrentContext(dt)||[],gt,Nt,!0))return yt.Pass;var Ht=typeof Yt=="object"&&Yt.emptyTags;if(Ht&&ge(Ht,gt)>-1){Re[We]={text:"/>",newPos:yt.Pos(Nt.line,Nt.ch+2)};continue}var se=bt&&ge(bt,It)>-1;Re[We]={indent:se,text:">"+(se?`
`:"")+"</"+gt+">",newPos:se?yt.Pos(Nt.line+1,0):yt.Pos(Nt.line,Nt.ch+1)}}for(var Vt=typeof Yt=="object"&&Yt.dontIndentOnAutoClose,We=Mt.length-1;We>=0;We--){var Jt=Re[We];Ce.replaceRange(Jt.text,Mt[We].head,Mt[We].anchor,"+insert");var Ee=Ce.listSelections().slice(0);Ee[We]={head:Jt.newPos,anchor:Jt.newPos},Ce.setSelections(Ee),!Vt&&Jt.indent&&(Ce.indentLine(Jt.newPos.line,null,!0),Ce.indentLine(Jt.newPos.line+1,null,!0))}}function be(Ce,Mt){for(var Re=Ce.listSelections(),Yt=[],We=Mt?"/":"</",Nt=Ce.getOption("autoCloseTags"),nt=typeof Nt=="object"&&Nt.dontIndentOnSlash,et=0;et<Re.length;et++){if(!Re[et].empty())return yt.Pass;var dt=Re[et].head,lt=Ce.getTokenAt(dt),gt=yt.innerMode(Ce.getMode(),lt.state),mt=gt.state;if(Mt&&(lt.type=="string"||lt.string.charAt(0)!="<"||lt.start!=dt.ch-1))return yt.Pass;var St,bt=gt.mode.name!="xml"&&Ce.getMode().name=="htmlmixed";if(bt&&gt.mode.name=="javascript")St=We+"script";else if(bt&&gt.mode.name=="css")St=We+"style";else{var It=gt.mode.xmlCurrentContext&&gt.mode.xmlCurrentContext(mt);if(!It||It.length&&Ze(Ce,It,It[It.length-1],dt))return yt.Pass;St=We+It[It.length-1]}Ce.getLine(dt.line).charAt(lt.end)!=">"&&(St+=">"),Yt[et]=St}if(Ce.replaceSelections(Yt),Re=Ce.listSelections(),!nt)for(var et=0;et<Re.length;et++)(et==Re.length-1||Re[et].head.line<Re[et+1].head.line)&&Ce.indentLine(Re[et].head.line)}function jt(Ce){return Ce.getOption("disableInput")?yt.Pass:be(Ce,!0)}yt.commands.closeTag=function(Ce){return be(Ce)};function ge(Ce,Mt){if(Ce.indexOf)return Ce.indexOf(Mt);for(var Re=0,Yt=Ce.length;Re<Yt;++Re)if(Ce[Re]==Mt)return Re;return-1}function Ze(Ce,Mt,Re,Yt,We){if(!yt.scanForClosingTag)return!1;var Nt=Math.min(Ce.lastLine()+1,Yt.line+500),nt=yt.scanForClosingTag(Ce,Yt,null,Nt);if(!nt||nt.tag!=Re)return!1;for(var et=We?1:0,dt=Mt.length-1;dt>=0&&Mt[dt]==Re;dt--)++et;Yt=nt.to;for(var dt=1;dt<et;dt++){var lt=yt.scanForClosingTag(Ce,Yt,null,Nt);if(!lt||lt.tag!=Re)return!1;Yt=lt.to}return!0}})},32855:function(Jn,pi,Dt){(function(yt){yt(Dt(89780))})(function(yt){"use strict";var te=yt.Pos;function re(dt,lt){return dt.line-lt.line||dt.ch-lt.ch}var Fe="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",be=Fe+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",jt=new RegExp("<(/?)(["+Fe+"]["+be+"]*)","g");function ge(dt,lt,gt,mt){this.line=lt,this.ch=gt,this.cm=dt,this.text=dt.getLine(lt),this.min=mt?Math.max(mt.from,dt.firstLine()):dt.firstLine(),this.max=mt?Math.min(mt.to-1,dt.lastLine()):dt.lastLine()}function Ze(dt,lt){var gt=dt.cm.getTokenTypeAt(te(dt.line,lt));return gt&&/\btag\b/.test(gt)}function Ce(dt){if(!(dt.line>=dt.max))return dt.ch=0,dt.text=dt.cm.getLine(++dt.line),!0}function Mt(dt){if(!(dt.line<=dt.min))return dt.text=dt.cm.getLine(--dt.line),dt.ch=dt.text.length,!0}function Re(dt){for(;;){var lt=dt.text.indexOf(">",dt.ch);if(lt==-1){if(Ce(dt))continue;return}if(!Ze(dt,lt+1)){dt.ch=lt+1;continue}var gt=dt.text.lastIndexOf("/",lt),mt=gt>-1&&!/\S/.test(dt.text.slice(gt+1,lt));return dt.ch=lt+1,mt?"selfClose":"regular"}}function Yt(dt){for(;;){var lt=dt.ch?dt.text.lastIndexOf("<",dt.ch-1):-1;if(lt==-1){if(Mt(dt))continue;return}if(!Ze(dt,lt+1)){dt.ch=lt;continue}jt.lastIndex=lt,dt.ch=lt;var gt=jt.exec(dt.text);if(gt&&gt.index==lt)return gt}}function We(dt){for(;;){jt.lastIndex=dt.ch;var lt=jt.exec(dt.text);if(!lt){if(Ce(dt))continue;return}if(!Ze(dt,lt.index+1)){dt.ch=lt.index+1;continue}return dt.ch=lt.index+lt[0].length,lt}}function Nt(dt){for(;;){var lt=dt.ch?dt.text.lastIndexOf(">",dt.ch-1):-1;if(lt==-1){if(Mt(dt))continue;return}if(!Ze(dt,lt+1)){dt.ch=lt;continue}var gt=dt.text.lastIndexOf("/",lt),mt=gt>-1&&!/\S/.test(dt.text.slice(gt+1,lt));return dt.ch=lt+1,mt?"selfClose":"regular"}}function nt(dt,lt){for(var gt=[];;){var mt=We(dt),St,bt=dt.line,It=dt.ch-(mt?mt[0].length:0);if(!mt||!(St=Re(dt)))return;if(St!="selfClose")if(mt[1]){for(var Ht=gt.length-1;Ht>=0;--Ht)if(gt[Ht]==mt[2]){gt.length=Ht;break}if(Ht<0&&(!lt||lt==mt[2]))return{tag:mt[2],from:te(bt,It),to:te(dt.line,dt.ch)}}else gt.push(mt[2])}}function et(dt,lt){for(var gt=[];;){var mt=Nt(dt);if(!mt)return;if(mt=="selfClose"){Yt(dt);continue}var St=dt.line,bt=dt.ch,It=Yt(dt);if(!It)return;if(It[1])gt.push(It[2]);else{for(var Ht=gt.length-1;Ht>=0;--Ht)if(gt[Ht]==It[2]){gt.length=Ht;break}if(Ht<0&&(!lt||lt==It[2]))return{tag:It[2],from:te(dt.line,dt.ch),to:te(St,bt)}}}}yt.registerHelper("fold","xml",function(dt,lt){for(var gt=new ge(dt,lt.line,0);;){var mt=We(gt);if(!mt||gt.line!=lt.line)return;var St=Re(gt);if(!St)return;if(!mt[1]&&St!="selfClose"){var bt=te(gt.line,gt.ch),It=nt(gt,mt[2]);return It&&re(It.from,bt)>0?{from:bt,to:It.from}:null}}}),yt.findMatchingTag=function(dt,lt,gt){var mt=new ge(dt,lt.line,lt.ch,gt);if(!(mt.text.indexOf(">")==-1&&mt.text.indexOf("<")==-1)){var St=Re(mt),bt=St&&te(mt.line,mt.ch),It=St&&Yt(mt);if(!(!St||!It||re(mt,lt)>0)){var Ht={from:te(mt.line,mt.ch),to:bt,tag:It[2]};return St=="selfClose"?{open:Ht,close:null,at:"open"}:It[1]?{open:et(mt,It[2]),close:Ht,at:"close"}:(mt=new ge(dt,bt.line,bt.ch,gt),{open:Ht,close:nt(mt,It[2]),at:"open"})}}},yt.findEnclosingTag=function(dt,lt,gt,mt){for(var St=new ge(dt,lt.line,lt.ch,gt);;){var bt=et(St,mt);if(!bt)break;var It=new ge(dt,lt.line,lt.ch,gt),Ht=nt(It,bt.tag);if(Ht)return{open:bt,close:Ht}}},yt.scanForClosingTag=function(dt,lt,gt,mt){var St=new ge(dt,lt.line,lt.ch,mt?{from:0,to:mt}:null);return nt(St,gt)}})},89780:function(Jn){(function(pi,Dt){Jn.exports=Dt()})(this,function(){"use strict";var pi=navigator.userAgent,Dt=navigator.platform,yt=/gecko\/\d/i.test(pi),te=/MSIE \d/.test(pi),re=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(pi),Fe=/Edge\/(\d+)/.exec(pi),be=te||re||Fe,jt=be&&(te?document.documentMode||6:+(Fe||re)[1]),ge=!Fe&&/WebKit\//.test(pi),Ze=ge&&/Qt\/\d+\.\d+/.test(pi),Ce=!Fe&&/Chrome\//.test(pi),Mt=/Opera\//.test(pi),Re=/Apple Computer/.test(navigator.vendor),Yt=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(pi),We=/PhantomJS/.test(pi),Nt=!Fe&&/AppleWebKit/.test(pi)&&/Mobile\/\w+/.test(pi),nt=/Android/.test(pi),et=Nt||nt||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(pi),dt=Nt||/Mac/.test(Dt),lt=/\bCrOS\b/.test(pi),gt=/win/i.test(Dt),mt=Mt&&pi.match(/Version\/(\d*\.\d*)/);mt&&(mt=Number(mt[1])),mt&&mt>=15&&(Mt=!1,ge=!0);var St=dt&&(Ze||Mt&&(mt==null||mt<12.11)),bt=yt||be&&jt>=9;function It(it){return new RegExp("(^|\\s)"+it+"(?:$|\\s)\\s*")}var Ht=function(it,at){var ct=it.className,ht=It(at).exec(ct);if(ht){var pt=ct.slice(ht.index+ht[0].length);it.className=ct.slice(0,ht.index)+(pt?ht[1]+pt:"")}};function se(it){for(var at=it.childNodes.length;at>0;--at)it.removeChild(it.firstChild);return it}function Vt(it,at){return se(it).appendChild(at)}function Jt(it,at,ct,ht){var pt=document.createElement(it);if(ct&&(pt.className=ct),ht&&(pt.style.cssText=ht),typeof at=="string")pt.appendChild(document.createTextNode(at));else if(at)for(var Lt=0;Lt<at.length;++Lt)pt.appendChild(at[Lt]);return pt}function Ee(it,at,ct,ht){var pt=Jt(it,at,ct,ht);return pt.setAttribute("role","presentation"),pt}var we;document.createRange?we=function(it,at,ct,ht){var pt=document.createRange();return pt.setEnd(ht||it,ct),pt.setStart(it,at),pt}:we=function(it,at,ct){var ht=document.body.createTextRange();try{ht.moveToElementText(it.parentNode)}catch(pt){return ht}return ht.collapse(!0),ht.moveEnd("character",ct),ht.moveStart("character",at),ht};function De(it,at){if(at.nodeType==3&&(at=at.parentNode),it.contains)return it.contains(at);do if(at.nodeType==11&&(at=at.host),at==it)return!0;while(at=at.parentNode)}function Le(){var it;try{it=document.activeElement}catch(at){it=document.body||null}for(;it&&it.shadowRoot&&it.shadowRoot.activeElement;)it=it.shadowRoot.activeElement;return it}function sn(it,at){var ct=it.className;It(at).test(ct)||(it.className+=(ct?" ":"")+at)}function Fn(it,at){for(var ct=it.split(" "),ht=0;ht<ct.length;ht++)ct[ht]&&!It(ct[ht]).test(at)&&(at+=" "+ct[ht]);return at}var fn=function(it){it.select()};Nt?fn=function(it){it.selectionStart=0,it.selectionEnd=it.value.length}:be&&(fn=function(it){try{it.select()}catch(at){}});function Ge(it){var at=Array.prototype.slice.call(arguments,1);return function(){return it.apply(null,at)}}function an(it,at,ct){at||(at={});for(var ht in it)it.hasOwnProperty(ht)&&(ct!==!1||!at.hasOwnProperty(ht))&&(at[ht]=it[ht]);return at}function Se(it,at,ct,ht,pt){at==null&&(at=it.search(/[^\s\u00a0]/),at==-1&&(at=it.length));for(var Lt=ht||0,Ot=pt||0;;){var _t=it.indexOf(" ",Lt);if(_t<0||_t>=at)return Ot+(at-Lt);Ot+=_t-Lt,Ot+=ct-Ot%ct,Lt=_t+1}}var Qt=function(){this.id=null,this.f=null,this.time=0,this.handler=Ge(this.onTimeout,this)};Qt.prototype.onTimeout=function(it){it.id=0,it.time<=+new Date?it.f():setTimeout(it.handler,it.time-+new Date)},Qt.prototype.set=function(it,at){this.f=at;var ct=+new Date+it;(!this.id||ct<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,it),this.time=ct)};function mn(it,at){for(var ct=0;ct<it.length;++ct)if(it[ct]==at)return ct;return-1}var ii=50,jn={toString:function(){return"CodeMirror.Pass"}},ln={scroll:!1},qn={origin:"*mouse"},Dn={origin:"+move"};function fi(it,at,ct){for(var ht=0,pt=0;;){var Lt=it.indexOf(" ",ht);Lt==-1&&(Lt=it.length);var Ot=Lt-ht;if(Lt==it.length||pt+Ot>=at)return ht+Math.min(Ot,at-pt);if(pt+=Lt-ht,pt+=ct-pt%ct,ht=Lt+1,pt>=at)return ht}}var Ve=[""];function On(it){for(;Ve.length<=it;)Ve.push(Pe(Ve)+" ");return Ve[it]}function Pe(it){return it[it.length-1]}function Ai(it,at){for(var ct=[],ht=0;ht<it.length;ht++)ct[ht]=at(it[ht],ht);return ct}function Xn(it,at,ct){for(var ht=0,pt=ct(at);ht<it.length&&ct(it[ht])<=pt;)ht++;it.splice(ht,0,at)}function Rt(){}function At(it,at){var ct;return Object.create?ct=Object.create(it):(Rt.prototype=it,ct=new Rt),at&&an(at,ct),ct}var wt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Tt(it){return/\w/.test(it)||it>"\x80"&&(it.toUpperCase()!=it.toLowerCase()||wt.test(it))}function Kt(it,at){return at?at.source.indexOf("\\w")>-1&&Tt(it)?!0:at.test(it):Tt(it)}function kt(it){for(var at in it)if(it.hasOwnProperty(at)&&it[at])return!1;return!0}var $t=/[\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 un(it){return it.charCodeAt(0)>=768&&$t.test(it)}function Ie(it,at,ct){for(;(ct<0?at>0:at<it.length)&&un(it.charAt(at));)at+=ct;return at}function Ue(it,at,ct){for(var ht=at>ct?-1:1;;){if(at==ct)return at;var pt=(at+ct)/2,Lt=ht<0?Math.ceil(pt):Math.floor(pt);if(Lt==at)return it(Lt)?at:ct;it(Lt)?ct=Lt:at=Lt+ht}}function ne(it,at,ct,ht){if(!it)return ht(at,ct,"ltr",0);for(var pt=!1,Lt=0;Lt<it.length;++Lt){var Ot=it[Lt];(Ot.from<ct&&Ot.to>at||at==ct&&Ot.to==at)&&(ht(Math.max(Ot.from,at),Math.min(Ot.to,ct),Ot.level==1?"rtl":"ltr",Lt),pt=!0)}pt||ht(at,ct,"ltr")}var Oe=null;function Ne(it,at,ct){var ht;Oe=null;for(var pt=0;pt<it.length;++pt){var Lt=it[pt];if(Lt.from<at&&Lt.to>at)return pt;Lt.to==at&&(Lt.from!=Lt.to&&ct=="before"?ht=pt:Oe=pt),Lt.from==at&&(Lt.from!=Lt.to&&ct!="before"?ht=pt:Oe=pt)}return ht!=null?ht:Oe}var Xe=function(){var it="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",at="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ct(pe){return pe<=247?it.charAt(pe):1424<=pe&&pe<=1524?"R":1536<=pe&&pe<=1785?at.charAt(pe-1536):1774<=pe&&pe<=2220?"r":8192<=pe&&pe<=8203?"w":pe==8204?"b":"L"}var ht=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,pt=/[stwN]/,Lt=/[LRr]/,Ot=/[Lb1n]/,_t=/[1n]/;function Ut(pe,gn,Me){this.level=pe,this.from=gn,this.to=Me}return function(pe,gn){var Me=gn=="ltr"?"L":"R";if(pe.length==0||gn=="ltr"&&!ht.test(pe))return!1;for(var Qn=pe.length,Hn=[],Yi=0;Yi<Qn;++Yi)Hn.push(ct(pe.charCodeAt(Yi)));for(var $i=0,mr=Me;$i<Qn;++$i){var Or=Hn[$i];Or=="m"?Hn[$i]=mr:mr=Or}for(var to=0,Kr=Me;to<Qn;++to){var oo=Hn[to];oo=="1"&&Kr=="r"?Hn[to]="n":Lt.test(oo)&&(Kr=oo,oo=="r"&&(Hn[to]="R"))}for(var ko=1,Gr=Hn[0];ko<Qn-1;++ko){var _o=Hn[ko];_o=="+"&&Gr=="1"&&Hn[ko+1]=="1"?Hn[ko]="1":_o==","&&Gr==Hn[ko+1]&&(Gr=="1"||Gr=="n")&&(Hn[ko]=Gr),Gr=_o}for(var ja=0;ja<Qn;++ja){var Ss=Hn[ja];if(Ss==",")Hn[ja]="N";else if(Ss=="%"){var _a=void 0;for(_a=ja+1;_a<Qn&&Hn[_a]=="%";++_a);for(var ul=ja&&Hn[ja-1]=="!"||_a<Qn&&Hn[_a]=="1"?"1":"N",Ys=ja;Ys<_a;++Ys)Hn[Ys]=ul;ja=_a-1}}for(var ps=0,Pl=Me;ps<Qn;++ps){var Rs=Hn[ps];Pl=="L"&&Rs=="1"?Hn[ps]="L":Lt.test(Rs)&&(Pl=Rs)}for(var ms=0;ms<Qn;++ms)if(pt.test(Hn[ms])){var fa=void 0;for(fa=ms+1;fa<Qn&&pt.test(Hn[fa]);++fa);for(var qa=(ms?Hn[ms-1]:Me)=="L",As=(fa<Qn?Hn[fa]:Me)=="L",zs=qa==As?qa?"L":"R":Me,su=ms;su<fa;++su)Hn[su]=zs;ms=fa-1}for(var Ja=[],Jl,is=0;is<Qn;)if(Ot.test(Hn[is])){var Bc=is;for(++is;is<Qn&&Ot.test(Hn[is]);++is);Ja.push(new Ut(0,Bc,is))}else{var Rl=is,Cl=Ja.length,hl=gn=="rtl"?1:0;for(++is;is<Qn&&Hn[is]!="L";++is);for(var Fa=Rl;Fa<is;)if(_t.test(Hn[Fa])){Rl<Fa&&(Ja.splice(Cl,0,new Ut(1,Rl,Fa)),Cl+=hl);var Ls=Fa;for(++Fa;Fa<is&&_t.test(Hn[Fa]);++Fa);Ja.splice(Cl,0,new Ut(2,Ls,Fa)),Cl+=hl,Rl=Fa}else++Fa;Rl<is&&Ja.splice(Cl,0,new Ut(1,Rl,is))}return gn=="ltr"&&(Ja[0].level==1&&(Jl=pe.match(/^\s+/))&&(Ja[0].from=Jl[0].length,Ja.unshift(new Ut(0,0,Jl[0].length))),Pe(Ja).level==1&&(Jl=pe.match(/\s+$/))&&(Pe(Ja).to-=Jl[0].length,Ja.push(new Ut(0,Qn-Jl[0].length,Qn)))),gn=="rtl"?Ja.reverse():Ja}}();function En(it,at){var ct=it.order;return ct==null&&(ct=it.order=Xe(it.text,at)),ct}var In=[],An=function(it,at,ct){if(it.addEventListener)it.addEventListener(at,ct,!1);else if(it.attachEvent)it.attachEvent("on"+at,ct);else{var ht=it._handlers||(it._handlers={});ht[at]=(ht[at]||In).concat(ct)}};function en(it,at){return it._handlers&&it._handlers[at]||In}function ze(it,at,ct){if(it.removeEventListener)it.removeEventListener(at,ct,!1);else if(it.detachEvent)it.detachEvent("on"+at,ct);else{var ht=it._handlers,pt=ht&&ht[at];if(pt){var Lt=mn(pt,ct);Lt>-1&&(ht[at]=pt.slice(0,Lt).concat(pt.slice(Lt+1)))}}}function qe(it,at){var ct=en(it,at);if(ct.length)for(var ht=Array.prototype.slice.call(arguments,2),pt=0;pt<ct.length;++pt)ct[pt].apply(null,ht)}function pn(it,at,ct){return typeof at=="string"&&(at={type:at,preventDefault:function(){this.defaultPrevented=!0}}),qe(it,ct||at.type,it,at),Pi(at)||at.codemirrorIgnore}function bn(it){var at=it._handlers&&it._handlers.cursorActivity;if(at)for(var ct=it.curOp.cursorActivityHandlers||(it.curOp.cursorActivityHandlers=[]),ht=0;ht<at.length;++ht)mn(ct,at[ht])==-1&&ct.push(at[ht])}function Yn(it,at){return en(it,at).length>0}function ti(it){it.prototype.on=function(at,ct){An(this,at,ct)},it.prototype.off=function(at,ct){ze(this,at,ct)}}function yi(it){it.preventDefault?it.preventDefault():it.returnValue=!1}function vn(it){it.stopPropagation?it.stopPropagation():it.cancelBubble=!0}function Pi(it){return it.defaultPrevented!=null?it.defaultPrevented:it.returnValue==!1}function Ki(it){yi(it),vn(it)}function pr(it){return it.target||it.srcElement}function or(it){var at=it.which;return at==null&&(it.button&1?at=1:it.button&2?at=3:it.button&4&&(at=2)),dt&&it.ctrlKey&&at==1&&(at=3),at}var ir=function(){if(be&&jt<9)return!1;var it=Jt("div");return"draggable"in it||"dragDrop"in it}(),vr;function ur(it){if(vr==null){var at=Jt("span","\u200B");Vt(it,Jt("span",[at,document.createTextNode("x")])),it.firstChild.offsetHeight!=0&&(vr=at.offsetWidth<=1&&at.offsetHeight>2&&!(be&&jt<8))}var ct=vr?Jt("span","\u200B"):Jt("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ct.setAttribute("cm-text",""),ct}var hr;function Ji(it){if(hr!=null)return hr;var at=Vt(it,document.createTextNode("A\u062EA")),ct=we(at,0,1).getBoundingClientRect(),ht=we(at,1,2).getBoundingClientRect();return se(it),!ct||ct.left==ct.right?!1:hr=ht.right-ct.right<3}var xr=`
b`.split(/\n/).length!=3?function(it){for(var at=0,ct=[],ht=it.length;at<=ht;){var pt=it.indexOf(`
`,at);pt==-1&&(pt=it.length);var Lt=it.slice(at,it.charAt(pt-1)=="\r"?pt-1:pt),Ot=Lt.indexOf("\r");Ot!=-1?(ct.push(Lt.slice(0,Ot)),at+=Ot+1):(ct.push(Lt),at=pt+1)}return ct}:function(it){return it.split(/\r\n?|\n/)},Ct=window.getSelection?function(it){try{return it.selectionStart!=it.selectionEnd}catch(at){return!1}}:function(it){var at;try{at=it.ownerDocument.selection.createRange()}catch(ct){}return!at||at.parentElement()!=it?!1:at.compareEndPoints("StartToEnd",at)!=0},yn=function(){var it=Jt("div");return"oncopy"in it?!0:(it.setAttribute("oncopy","return;"),typeof it.oncopy=="function")}(),Zn=null;function dr(it){if(Zn!=null)return Zn;var at=Vt(it,Jt("span","x")),ct=at.getBoundingClientRect(),ht=we(at,0,1).getBoundingClientRect();return Zn=Math.abs(ct.left-ht.left)>1}var sr={},Oi={};function Nn(it,at){arguments.length>2&&(at.dependencies=Array.prototype.slice.call(arguments,2)),sr[it]=at}function Cn(it,at){Oi[it]=at}function kn(it){if(typeof it=="string"&&Oi.hasOwnProperty(it))it=Oi[it];else if(it&&typeof it.name=="string"&&Oi.hasOwnProperty(it.name)){var at=Oi[it.name];typeof at=="string"&&(at={name:at}),it=At(at,it),it.name=at.name}else{if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(it))return kn("application/xml");if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(it))return kn("application/json")}return typeof it=="string"?{name:it}:it||{name:"null"}}function ve(it,at){at=kn(at);var ct=sr[at.name];if(!ct)return ve(it,"text/plain");var ht=ct(it,at);if(ye.hasOwnProperty(at.name)){var pt=ye[at.name];for(var Lt in pt)pt.hasOwnProperty(Lt)&&(ht.hasOwnProperty(Lt)&&(ht["_"+Lt]=ht[Lt]),ht[Lt]=pt[Lt])}if(ht.name=at.name,at.helperType&&(ht.helperType=at.helperType),at.modeProps)for(var Ot in at.modeProps)ht[Ot]=at.modeProps[Ot];return ht}var ye={};function xe(it,at){var ct=ye.hasOwnProperty(it)?ye[it]:ye[it]={};an(at,ct)}function Kn(it,at){if(at===!0)return at;if(it.copyState)return it.copyState(at);var ct={};for(var ht in at){var pt=at[ht];pt instanceof Array&&(pt=pt.concat([])),ct[ht]=pt}return ct}function $n(it,at){for(var ct;it.innerMode&&(ct=it.innerMode(at),!(!ct||ct.mode==it));)at=ct.state,it=ct.mode;return ct||{mode:it,state:at}}function ui(it,at,ct){return it.startState?it.startState(at,ct):!0}var Sn=function(it,at,ct){this.pos=this.start=0,this.string=it,this.tabSize=at||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=ct};Sn.prototype.eol=function(){return this.pos>=this.string.length},Sn.prototype.sol=function(){return this.pos==this.lineStart},Sn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Sn.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Sn.prototype.eat=function(it){var at=this.string.charAt(this.pos),ct;if(typeof it=="string"?ct=at==it:ct=at&&(it.test?it.test(at):it(at)),ct)return++this.pos,at},Sn.prototype.eatWhile=function(it){for(var at=this.pos;this.eat(it););return this.pos>at},Sn.prototype.eatSpace=function(){for(var it=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>it},Sn.prototype.skipToEnd=function(){this.pos=this.string.length},Sn.prototype.skipTo=function(it){var at=this.string.indexOf(it,this.pos);if(at>-1)return this.pos=at,!0},Sn.prototype.backUp=function(it){this.pos-=it},Sn.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Se(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Se(this.string,this.lineStart,this.tabSize):0)},Sn.prototype.indentation=function(){return Se(this.string,null,this.tabSize)-(this.lineStart?Se(this.string,this.lineStart,this.tabSize):0)},Sn.prototype.match=function(it,at,ct){if(typeof it=="string"){var ht=function(Ot){return ct?Ot.toLowerCase():Ot},pt=this.string.substr(this.pos,it.length);if(ht(pt)==ht(it))return at!==!1&&(this.pos+=it.length),!0}else{var Lt=this.string.slice(this.pos).match(it);return Lt&&Lt.index>0?null:(Lt&&at!==!1&&(this.pos+=Lt[0].length),Lt)}},Sn.prototype.current=function(){return this.string.slice(this.start,this.pos)},Sn.prototype.hideFirstChars=function(it,at){this.lineStart+=it;try{return at()}finally{this.lineStart-=it}},Sn.prototype.lookAhead=function(it){var at=this.lineOracle;return at&&at.lookAhead(it)},Sn.prototype.baseToken=function(){var it=this.lineOracle;return it&&it.baseToken(this.pos)};function oi(it,at){if(at-=it.first,at<0||at>=it.size)throw new Error("There is no line "+(at+it.first)+" in the document.");for(var ct=it;!ct.lines;)for(var ht=0;;++ht){var pt=ct.children[ht],Lt=pt.chunkSize();if(at<Lt){ct=pt;break}at-=Lt}return ct.lines[at]}function fe(it,at,ct){var ht=[],pt=at.line;return it.iter(at.line,ct.line+1,function(Lt){var Ot=Lt.text;pt==ct.line&&(Ot=Ot.slice(0,ct.ch)),pt==at.line&&(Ot=Ot.slice(at.ch)),ht.push(Ot),++pt}),ht}function Te(it,at,ct){var ht=[];return it.iter(at,ct,function(pt){ht.push(pt.text)}),ht}function hi(it,at){var ct=at-it.height;if(ct)for(var ht=it;ht;ht=ht.parent)ht.height+=ct}function ee(it){if(it.parent==null)return null;for(var at=it.parent,ct=mn(at.lines,it),ht=at.parent;ht;at=ht,ht=ht.parent)for(var pt=0;ht.children[pt]!=at;++pt)ct+=ht.children[pt].chunkSize();return ct+at.first}function nn(it,at){var ct=it.first;t:do{for(var ht=0;ht<it.children.length;++ht){var pt=it.children[ht],Lt=pt.height;if(at<Lt){it=pt;continue t}at-=Lt,ct+=pt.chunkSize()}return ct}while(!it.lines);for(var Ot=0;Ot<it.lines.length;++Ot){var _t=it.lines[Ot],Ut=_t.height;if(at<Ut)break;at-=Ut}return ct+Ot}function Vn(it,at){return at>=it.first&&at<it.first+it.size}function _n(it,at){return String(it.lineNumberFormatter(at+it.firstLineNumber))}function Ke(it,at,ct){if(ct===void 0&&(ct=null),!(this instanceof Ke))return new Ke(it,at,ct);this.line=it,this.ch=at,this.sticky=ct}function Gn(it,at){return it.line-at.line||it.ch-at.ch}function ai(it,at){return it.sticky==at.sticky&&Gn(it,at)==0}function ni(it){return Ke(it.line,it.ch)}function ki(it,at){return Gn(it,at)<0?at:it}function xi(it,at){return Gn(it,at)<0?it:at}function gi(it,at){return Math.max(it.first,Math.min(at,it.first+it.size-1))}function Li(it,at){if(at.line<it.first)return Ke(it.first,0);var ct=it.first+it.size-1;return at.line>ct?Ke(ct,oi(it,ct).text.length):Zi(at,oi(it,at.line).text.length)}function Zi(it,at){var ct=it.ch;return ct==null||ct>at?Ke(it.line,at):ct<0?Ke(it.line,0):it}function tr(it,at){for(var ct=[],ht=0;ht<at.length;ht++)ct[ht]=Li(it,at[ht]);return ct}var zi=function(it,at){this.state=it,this.lookAhead=at},wn=function(it,at,ct,ht){this.state=at,this.doc=it,this.line=ct,this.maxLookAhead=ht||0,this.baseTokens=null,this.baseTokenPos=1};wn.prototype.lookAhead=function(it){var at=this.doc.getLine(this.line+it);return at!=null&&it>this.maxLookAhead&&(this.maxLookAhead=it),at},wn.prototype.baseToken=function(it){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=it;)this.baseTokenPos+=2;var at=this.baseTokens[this.baseTokenPos+1];return{type:at&&at.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-it}},wn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},wn.fromSaved=function(it,at,ct){return at instanceof zi?new wn(it,Kn(it.mode,at.state),ct,at.lookAhead):new wn(it,Kn(it.mode,at),ct)},wn.prototype.save=function(it){var at=it!==!1?Kn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new zi(at,this.maxLookAhead):at};function Rr(it,at,ct,ht){var pt=[it.state.modeGen],Lt={};Ar(it,at.text,it.doc.mode,ct,function(pe,gn){return pt.push(pe,gn)},Lt,ht);for(var Ot=ct.state,_t=function(pe){ct.baseTokens=pt;var gn=it.state.overlays[pe],Me=1,Qn=0;ct.state=!0,Ar(it,at.text,gn.mode,ct,function(Hn,Yi){for(var $i=Me;Qn<Hn;){var mr=pt[Me];mr>Hn&&pt.splice(Me,1,Hn,pt[Me+1],mr),Me+=2,Qn=Math.min(Hn,mr)}if(Yi)if(gn.opaque)pt.splice($i,Me-$i,Hn,"overlay "+Yi),Me=$i+2;else for(;$i<Me;$i+=2){var Or=pt[$i+1];pt[$i+1]=(Or?Or+" ":"")+"overlay "+Yi}},Lt),ct.state=Ot,ct.baseTokens=null,ct.baseTokenPos=1},Ut=0;Ut<it.state.overlays.length;++Ut)_t(Ut);return{styles:pt,classes:Lt.bgClass||Lt.textClass?Lt:null}}function Lr(it,at,ct){if(!at.styles||at.styles[0]!=it.state.modeGen){var ht=Hr(it,ee(at)),pt=at.text.length>it.options.maxHighlightLength&&Kn(it.doc.mode,ht.state),Lt=Rr(it,at,ht);pt&&(ht.state=pt),at.stateAfter=ht.save(!pt),at.styles=Lt.styles,Lt.classes?at.styleClasses=Lt.classes:at.styleClasses&&(at.styleClasses=null),ct===it.doc.highlightFrontier&&(it.doc.modeFrontier=Math.max(it.doc.modeFrontier,++it.doc.highlightFrontier))}return at.styles}function Hr(it,at,ct){var ht=it.doc,pt=it.display;if(!ht.mode.startState)return new wn(ht,!0,at);var Lt=ji(it,at,ct),Ot=Lt>ht.first&&oi(ht,Lt-1).stateAfter,_t=Ot?wn.fromSaved(ht,Ot,Lt):new wn(ht,ui(ht.mode),Lt);return ht.iter(Lt,at,function(Ut){dn(it,Ut.text,_t);var pe=_t.line;Ut.stateAfter=pe==at-1||pe%5==0||pe>=pt.viewFrom&&pe<pt.viewTo?_t.save():null,_t.nextLine()}),ct&&(ht.modeFrontier=_t.line),_t}function dn(it,at,ct,ht){var pt=it.doc.mode,Lt=new Sn(at,it.options.tabSize,ct);for(Lt.start=Lt.pos=ht||0,at==""&&Mi(pt,ct.state);!Lt.eol();)Vi(pt,Lt,ct.state),Lt.start=Lt.pos}function Mi(it,at){if(it.blankLine)return it.blankLine(at);if(it.innerMode){var ct=$n(it,at);if(ct.mode.blankLine)return ct.mode.blankLine(ct.state)}}function Vi(it,at,ct,ht){for(var pt=0;pt<10;pt++){ht&&(ht[0]=$n(it,ct).mode);var Lt=it.token(at,ct);if(at.pos>at.start)return Lt}throw new Error("Mode "+it.name+" failed to advance stream.")}var Qi=function(it,at,ct){this.start=it.start,this.end=it.pos,this.string=it.current(),this.type=at||null,this.state=ct};function qi(it,at,ct,ht){var pt=it.doc,Lt=pt.mode,Ot;at=Li(pt,at);var _t=oi(pt,at.line),Ut=Hr(it,at.line,ct),pe=new Sn(_t.text,it.options.tabSize,Ut),gn;for(ht&&(gn=[]);(ht||pe.pos<at.ch)&&!pe.eol();)pe.start=pe.pos,Ot=Vi(Lt,pe,Ut.state),ht&&gn.push(new Qi(pe,Ot,Kn(pt.mode,Ut.state)));return ht?gn:new Qi(pe,Ot,Ut.state)}function cr(it,at){if(it)for(;;){var ct=it.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!ct)break;it=it.slice(0,ct.index)+it.slice(ct.index+ct[0].length);var ht=ct[1]?"bgClass":"textClass";at[ht]==null?at[ht]=ct[2]:new RegExp("(?:^|\\s)"+ct[2]+"(?:$|\\s)").test(at[ht])||(at[ht]+=" "+ct[2])}return it}function Ar(it,at,ct,ht,pt,Lt,Ot){var _t=ct.flattenSpans;_t==null&&(_t=it.options.flattenSpans);var Ut=0,pe=null,gn=new Sn(at,it.options.tabSize,ht),Me,Qn=it.options.addModeClass&&[null];for(at==""&&cr(Mi(ct,ht.state),Lt);!gn.eol();){if(gn.pos>it.options.maxHighlightLength?(_t=!1,Ot&&dn(it,at,ht,gn.pos),gn.pos=at.length,Me=null):Me=cr(Vi(ct,gn,ht.state,Qn),Lt),Qn){var Hn=Qn[0].name;Hn&&(Me="m-"+(Me?Hn+" "+Me:Hn))}if(!_t||pe!=Me){for(;Ut<gn.start;)Ut=Math.min(gn.start,Ut+5e3),pt(Ut,pe);pe=Me}gn.start=gn.pos}for(;Ut<gn.pos;){var Yi=Math.min(gn.pos,Ut+5e3);pt(Yi,pe),Ut=Yi}}function ji(it,at,ct){for(var ht,pt,Lt=it.doc,Ot=ct?-1:at-(it.doc.mode.innerMode?1e3:100),_t=at;_t>Ot;--_t){if(_t<=Lt.first)return Lt.first;var Ut=oi(Lt,_t-1),pe=Ut.stateAfter;if(pe&&(!ct||_t+(pe instanceof zi?pe.lookAhead:0)<=Lt.modeFrontier))return _t;var gn=Se(Ut.text,null,it.options.tabSize);(pt==null||ht>gn)&&(pt=_t-1,ht=gn)}return pt}function er(it,at){if(it.modeFrontier=Math.min(it.modeFrontier,at),!(it.highlightFrontier<at-10)){for(var ct=it.first,ht=at-1;ht>ct;ht--){var pt=oi(it,ht).stateAfter;if(pt&&(!(pt instanceof zi)||ht+pt.lookAhead<at)){ct=ht+1;break}}it.highlightFrontier=Math.min(it.highlightFrontier,ct)}}var Hi=!1,cn=!1;function lr(){Hi=!0}function xn(){cn=!0}function wi(it,at,ct){this.marker=it,this.from=at,this.to=ct}function Xi(it,at){if(it)for(var ct=0;ct<it.length;++ct){var ht=it[ct];if(ht.marker==at)return ht}}function Sr(it,at){for(var ct,ht=0;ht<it.length;++ht)it[ht]!=at&&(ct||(ct=[])).push(it[ht]);return ct}function ao(it,at){it.markedSpans=it.markedSpans?it.markedSpans.concat([at]):[at],at.marker.attachLine(it)}function co(it,at,ct){var ht;if(it)for(var pt=0;pt<it.length;++pt){var Lt=it[pt],Ot=Lt.marker,_t=Lt.from==null||(Ot.inclusiveLeft?Lt.from<=at:Lt.from<at);if(_t||Lt.from==at&&Ot.type=="bookmark"&&(!ct||!Lt.marker.insertLeft)){var Ut=Lt.to==null||(Ot.inclusiveRight?Lt.to>=at:Lt.to>at);(ht||(ht=[])).push(new wi(Ot,Lt.from,Ut?null:Lt.to))}}return ht}function qr(it,at,ct){var ht;if(it)for(var pt=0;pt<it.length;++pt){var Lt=it[pt],Ot=Lt.marker,_t=Lt.to==null||(Ot.inclusiveRight?Lt.to>=at:Lt.to>at);if(_t||Lt.from==at&&Ot.type=="bookmark"&&(!ct||Lt.marker.insertLeft)){var Ut=Lt.from==null||(Ot.inclusiveLeft?Lt.from<=at:Lt.from<at);(ht||(ht=[])).push(new wi(Ot,Ut?null:Lt.from-at,Lt.to==null?null:Lt.to-at))}}return ht}function io(it,at){if(at.full)return null;var ct=Vn(it,at.from.line)&&oi(it,at.from.line).markedSpans,ht=Vn(it,at.to.line)&&oi(it,at.to.line).markedSpans;if(!ct&&!ht)return null;var pt=at.from.ch,Lt=at.to.ch,Ot=Gn(at.from,at.to)==0,_t=co(ct,pt,Ot),Ut=qr(ht,Lt,Ot),pe=at.text.length==1,gn=Pe(at.text).length+(pe?pt:0);if(_t)for(var Me=0;Me<_t.length;++Me){var Qn=_t[Me];if(Qn.to==null){var Hn=Xi(Ut,Qn.marker);Hn?pe&&(Qn.to=Hn.to==null?null:Hn.to+gn):Qn.to=pt}}if(Ut)for(var Yi=0;Yi<Ut.length;++Yi){var $i=Ut[Yi];if($i.to!=null&&($i.to+=gn),$i.from==null){var mr=Xi(_t,$i.marker);mr||($i.from=gn,pe&&(_t||(_t=[])).push($i))}else $i.from+=gn,pe&&(_t||(_t=[])).push($i)}_t&&(_t=$e(_t)),Ut&&Ut!=_t&&(Ut=$e(Ut));var Or=[_t];if(!pe){var to=at.text.length-2,Kr;if(to>0&&_t)for(var oo=0;oo<_t.length;++oo)_t[oo].to==null&&(Kr||(Kr=[])).push(new wi(_t[oo].marker,null,null));for(var ko=0;ko<to;++ko)Or.push(Kr);Or.push(Ut)}return Or}function $e(it){for(var at=0;at<it.length;++at){var ct=it[at];ct.from!=null&&ct.from==ct.to&&ct.marker.clearWhenEmpty!==!1&&it.splice(at--,1)}return it.length?it:null}function Rn(it,at,ct){var ht=null;if(it.iter(at.line,ct.line+1,function(Hn){if(Hn.markedSpans)for(var Yi=0;Yi<Hn.markedSpans.length;++Yi){var $i=Hn.markedSpans[Yi].marker;$i.readOnly&&(!ht||mn(ht,$i)==-1)&&(ht||(ht=[])).push($i)}}),!ht)return null;for(var pt=[{from:at,to:ct}],Lt=0;Lt<ht.length;++Lt)for(var Ot=ht[Lt],_t=Ot.find(0),Ut=0;Ut<pt.length;++Ut){var pe=pt[Ut];if(!(Gn(pe.to,_t.from)<0||Gn(pe.from,_t.to)>0)){var gn=[Ut,1],Me=Gn(pe.from,_t.from),Qn=Gn(pe.to,_t.to);(Me<0||!Ot.inclusiveLeft&&!Me)&&gn.push({from:pe.from,to:_t.from}),(Qn>0||!Ot.inclusiveRight&&!Qn)&&gn.push({from:_t.to,to:pe.to}),pt.splice.apply(pt,gn),Ut+=gn.length-3}}return pt}function on(it){var at=it.markedSpans;if(at){for(var ct=0;ct<at.length;++ct)at[ct].marker.detachLine(it);it.markedSpans=null}}function Bt(it,at){if(at){for(var ct=0;ct<at.length;++ct)at[ct].marker.attachLine(it);it.markedSpans=at}}function Zt(it){return it.inclusiveLeft?-1:0}function Gt(it){return it.inclusiveRight?1:0}function he(it,at){var ct=it.lines.length-at.lines.length;if(ct!=0)return ct;var ht=it.find(),pt=at.find(),Lt=Gn(ht.from,pt.from)||Zt(it)-Zt(at);if(Lt)return-Lt;var Ot=Gn(ht.to,pt.to)||Gt(it)-Gt(at);return Ot||at.id-it.id}function Be(it,at){var ct=cn&&it.markedSpans,ht;if(ct)for(var pt=void 0,Lt=0;Lt<ct.length;++Lt)pt=ct[Lt],pt.marker.collapsed&&(at?pt.from:pt.to)==null&&(!ht||he(ht,pt.marker)<0)&&(ht=pt.marker);return ht}function rn(it){return Be(it,!0)}function ie(it){return Be(it,!1)}function ke(it,at){var ct=cn&&it.markedSpans,ht;if(ct)for(var pt=0;pt<ct.length;++pt){var Lt=ct[pt];Lt.marker.collapsed&&(Lt.from==null||Lt.from<at)&&(Lt.to==null||Lt.to>at)&&(!ht||he(ht,Lt.marker)<0)&&(ht=Lt.marker)}return ht}function He(it,at,ct,ht,pt){var Lt=oi(it,at),Ot=cn&&Lt.markedSpans;if(Ot)for(var _t=0;_t<Ot.length;++_t){var Ut=Ot[_t];if(Ut.marker.collapsed){var pe=Ut.marker.find(0),gn=Gn(pe.from,ct)||Zt(Ut.marker)-Zt(pt),Me=Gn(pe.to,ht)||Gt(Ut.marker)-Gt(pt);if(!(gn>=0&&Me<=0||gn<=0&&Me>=0)&&(gn<=0&&(Ut.marker.inclusiveRight&&pt.inclusiveLeft?Gn(pe.to,ct)>=0:Gn(pe.to,ct)>0)||gn>=0&&(Ut.marker.inclusiveRight&&pt.inclusiveLeft?Gn(pe.from,ht)<=0:Gn(pe.from,ht)<0)))return!0}}}function _e(it){for(var at;at=rn(it);)it=at.find(-1,!0).line;return it}function hn(it){for(var at;at=ie(it);)it=at.find(1,!0).line;return it}function mi(it){for(var at,ct;at=ie(it);)it=at.find(1,!0).line,(ct||(ct=[])).push(it);return ct}function Et(it,at){var ct=oi(it,at),ht=_e(ct);return ct==ht?at:ee(ht)}function qt(it,at){if(at>it.lastLine())return at;var ct=oi(it,at),ht;if(!zt(it,ct))return at;for(;ht=ie(ct);)ct=ht.find(1,!0).line;return ee(ct)+1}function zt(it,at){var ct=cn&&at.markedSpans;if(ct){for(var ht=void 0,pt=0;pt<ct.length;++pt)if(ht=ct[pt],!!ht.marker.collapsed){if(ht.from==null)return!0;if(!ht.marker.widgetNode&&ht.from==0&&ht.marker.inclusiveLeft&&ae(it,at,ht))return!0}}}function ae(it,at,ct){if(ct.to==null){var ht=ct.marker.find(1,!0);return ae(it,ht.line,Xi(ht.line.markedSpans,ct.marker))}if(ct.marker.inclusiveRight&&ct.to==at.text.length)return!0;for(var pt=void 0,Lt=0;Lt<at.markedSpans.length;++Lt)if(pt=at.markedSpans[Lt],pt.marker.collapsed&&!pt.marker.widgetNode&&pt.from==ct.to&&(pt.to==null||pt.to!=ct.from)&&(pt.marker.inclusiveLeft||ct.marker.inclusiveRight)&&ae(it,at,pt))return!0}function de(it){it=_e(it);for(var at=0,ct=it.parent,ht=0;ht<ct.lines.length;++ht){var pt=ct.lines[ht];if(pt==it)break;at+=pt.height}for(var Lt=ct.parent;Lt;ct=Lt,Lt=ct.parent)for(var Ot=0;Ot<Lt.children.length;++Ot){var _t=Lt.children[Ot];if(_t==ct)break;at+=_t.height}return at}function je(it){if(it.height==0)return 0;for(var at=it.text.length,ct,ht=it;ct=rn(ht);){var pt=ct.find(0,!0);ht=pt.from.line,at+=pt.from.ch-pt.to.ch}for(ht=it;ct=ie(ht);){var Lt=ct.find(0,!0);at-=ht.text.length-Lt.from.ch,ht=Lt.to.line,at+=ht.text.length-Lt.to.ch}return at}function Ye(it){var at=it.display,ct=it.doc;at.maxLine=oi(ct,ct.first),at.maxLineLength=je(at.maxLine),at.maxLineChanged=!0,ct.iter(function(ht){var pt=je(ht);pt>at.maxLineLength&&(at.maxLineLength=pt,at.maxLine=ht)})}var tn=function(it,at,ct){this.text=it,Bt(this,at),this.height=ct?ct(this):1};tn.prototype.lineNo=function(){return ee(this)},ti(tn);function Ln(it,at,ct,ht){it.text=at,it.stateAfter&&(it.stateAfter=null),it.styles&&(it.styles=null),it.order!=null&&(it.order=null),on(it),Bt(it,ct);var pt=ht?ht(it):1;pt!=it.height&&hi(it,pt)}function Bn(it){it.parent=null,on(it)}var Pn={},ri={};function Si(it,at){if(!it||/^\s*$/.test(it))return null;var ct=at.addModeClass?ri:Pn;return ct[it]||(ct[it]=it.replace(/\S+/g,"cm-$&"))}function ue(it,at){var ct=Ee("span",null,null,ge?"padding-right: .1px":null),ht={pre:Ee("pre",[ct],"CodeMirror-line"),content:ct,col:0,pos:0,cm:it,trailingSpace:!1,splitSpaces:it.getOption("lineWrapping")};at.measure={};for(var pt=0;pt<=(at.rest?at.rest.length:0);pt++){var Lt=pt?at.rest[pt-1]:at.line,Ot=void 0;ht.pos=0,ht.addToken=si,Ji(it.display.measure)&&(Ot=En(Lt,it.doc.direction))&&(ht.addToken=ci(ht.addToken,Ot)),ht.map=[];var _t=at!=it.display.externalMeasured&&ee(Lt);Ti(Lt,ht,Lr(it,Lt,_t)),Lt.styleClasses&&(Lt.styleClasses.bgClass&&(ht.bgClass=Fn(Lt.styleClasses.bgClass,ht.bgClass||"")),Lt.styleClasses.textClass&&(ht.textClass=Fn(Lt.styleClasses.textClass,ht.textClass||""))),ht.map.length==0&&ht.map.push(0,0,ht.content.appendChild(ur(it.display.measure))),pt==0?(at.measure.map=ht.map,at.measure.cache={}):((at.measure.maps||(at.measure.maps=[])).push(ht.map),(at.measure.caches||(at.measure.caches=[])).push({}))}if(ge){var Ut=ht.content.lastChild;(/\bcm-tab\b/.test(Ut.className)||Ut.querySelector&&Ut.querySelector(".cm-tab"))&&(ht.content.className="cm-tab-wrap-hack")}return qe(it,"renderLine",it,at.line,ht.pre),ht.pre.className&&(ht.textClass=Fn(ht.pre.className,ht.textClass||"")),ht}function Un(it){var at=Jt("span","\u2022","cm-invalidchar");return at.title="\\u"+it.charCodeAt(0).toString(16),at.setAttribute("aria-label",at.title),at}function si(it,at,ct,ht,pt,Lt,Ot){if(at){var _t=it.splitSpaces?zn(at,it.trailingSpace):at,Ut=it.cm.state.specialChars,pe=!1,gn;if(!Ut.test(at))it.col+=at.length,gn=document.createTextNode(_t),it.map.push(it.pos,it.pos+at.length,gn),be&&jt<9&&(pe=!0),it.pos+=at.length;else{gn=document.createDocumentFragment();for(var Me=0;;){Ut.lastIndex=Me;var Qn=Ut.exec(at),Hn=Qn?Qn.index-Me:at.length-Me;if(Hn){var Yi=document.createTextNode(_t.slice(Me,Me+Hn));be&&jt<9?gn.appendChild(Jt("span",[Yi])):gn.appendChild(Yi),it.map.push(it.pos,it.pos+Hn,Yi),it.col+=Hn,it.pos+=Hn}if(!Qn)break;Me+=Hn+1;var $i=void 0;if(Qn[0]==" "){var mr=it.cm.options.tabSize,Or=mr-it.col%mr;$i=gn.appendChild(Jt("span",On(Or),"cm-tab")),$i.setAttribute("role","presentation"),$i.setAttribute("cm-text"," "),it.col+=Or}else Qn[0]=="\r"||Qn[0]==`
`?($i=gn.appendChild(Jt("span",Qn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),$i.setAttribute("cm-text",Qn[0]),it.col+=1):($i=it.cm.options.specialCharPlaceholder(Qn[0]),$i.setAttribute("cm-text",Qn[0]),be&&jt<9?gn.appendChild(Jt("span",[$i])):gn.appendChild($i),it.col+=1);it.map.push(it.pos,it.pos+1,$i),it.pos++}}if(it.trailingSpace=_t.charCodeAt(at.length-1)==32,ct||ht||pt||pe||Lt||Ot){var to=ct||"";ht&&(to+=ht),pt&&(to+=pt);var Kr=Jt("span",[gn],to,Lt);if(Ot)for(var oo in Ot)Ot.hasOwnProperty(oo)&&oo!="style"&&oo!="class"&&Kr.setAttribute(oo,Ot[oo]);return it.content.appendChild(Kr)}it.content.appendChild(gn)}}function zn(it,at){if(it.length>1&&!/ /.test(it))return it;for(var ct=at,ht="",pt=0;pt<it.length;pt++){var Lt=it.charAt(pt);Lt==" "&&ct&&(pt==it.length-1||it.charCodeAt(pt+1)==32)&&(Lt="\xA0"),ht+=Lt,ct=Lt==" "}return ht}function ci(it,at){return function(ct,ht,pt,Lt,Ot,_t,Ut){pt=pt?pt+" cm-force-border":"cm-force-border";for(var pe=ct.pos,gn=pe+ht.length;;){for(var Me=void 0,Qn=0;Qn<at.length&&(Me=at[Qn],!(Me.to>pe&&Me.from<=pe));Qn++);if(Me.to>=gn)return it(ct,ht,pt,Lt,Ot,_t,Ut);it(ct,ht.slice(0,Me.to-pe),pt,Lt,null,_t,Ut),Lt=null,ht=ht.slice(Me.to-pe),pe=Me.to}}}function vi(it,at,ct,ht){var pt=!ht&&ct.widgetNode;pt&&it.map.push(it.pos,it.pos+at,pt),!ht&&it.cm.display.input.needsContentAttribute&&(pt||(pt=it.content.appendChild(document.createElement("span"))),pt.setAttribute("cm-marker",ct.id)),pt&&(it.cm.display.input.setUneditable(pt),it.content.appendChild(pt)),it.pos+=at,it.trailingSpace=!1}function Ti(it,at,ct){var ht=it.markedSpans,pt=it.text,Lt=0;if(!ht){for(var Ot=1;Ot<ct.length;Ot+=2)at.addToken(at,pt.slice(Lt,Lt=ct[Ot]),Si(ct[Ot+1],at.cm.options));return}for(var _t=pt.length,Ut=0,pe=1,gn="",Me,Qn,Hn=0,Yi,$i,mr,Or,to;;){if(Hn==Ut){Yi=$i=mr=Qn="",to=null,Or=null,Hn=1/0;for(var Kr=[],oo=void 0,ko=0;ko<ht.length;++ko){var Gr=ht[ko],_o=Gr.marker;if(_o.type=="bookmark"&&Gr.from==Ut&&_o.widgetNode)Kr.push(_o);else if(Gr.from<=Ut&&(Gr.to==null||Gr.to>Ut||_o.collapsed&&Gr.to==Ut&&Gr.from==Ut)){if(Gr.to!=null&&Gr.to!=Ut&&Hn>Gr.to&&(Hn=Gr.to,$i=""),_o.className&&(Yi+=" "+_o.className),_o.css&&(Qn=(Qn?Qn+";":"")+_o.css),_o.startStyle&&Gr.from==Ut&&(mr+=" "+_o.startStyle),_o.endStyle&&Gr.to==Hn&&(oo||(oo=[])).push(_o.endStyle,Gr.to),_o.title&&((to||(to={})).title=_o.title),_o.attributes)for(var ja in _o.attributes)(to||(to={}))[ja]=_o.attributes[ja];_o.collapsed&&(!Or||he(Or.marker,_o)<0)&&(Or=Gr)}else Gr.from>Ut&&Hn>Gr.from&&(Hn=Gr.from)}if(oo)for(var Ss=0;Ss<oo.length;Ss+=2)oo[Ss+1]==Hn&&($i+=" "+oo[Ss]);if(!Or||Or.from==Ut)for(var _a=0;_a<Kr.length;++_a)vi(at,0,Kr[_a]);if(Or&&(Or.from||0)==Ut){if(vi(at,(Or.to==null?_t+1:Or.to)-Ut,Or.marker,Or.from==null),Or.to==null)return;Or.to==Ut&&(Or=!1)}}if(Ut>=_t)break;for(var ul=Math.min(_t,Hn);;){if(gn){var Ys=Ut+gn.length;if(!Or){var ps=Ys>ul?gn.slice(0,ul-Ut):gn;at.addToken(at,ps,Me?Me+Yi:Yi,mr,Ut+ps.length==Hn?$i:"",Qn,to)}if(Ys>=ul){gn=gn.slice(ul-Ut),Ut=ul;break}Ut=Ys,mr=""}gn=pt.slice(Lt,Lt=ct[pe++]),Me=Si(ct[pe++],at.cm.options)}}}function Fi(it,at,ct){this.line=at,this.rest=mi(at),this.size=this.rest?ee(Pe(this.rest))-ct+1:1,this.node=this.text=null,this.hidden=zt(it,at)}function Ii(it,at,ct){for(var ht=[],pt,Lt=at;Lt<ct;Lt=pt){var Ot=new Fi(it.doc,oi(it.doc,Lt),Lt);pt=Lt+Ot.size,ht.push(Ot)}return ht}var Bi=null;function gr(it){Bi?Bi.ops.push(it):it.ownsGroup=Bi={ops:[it],delayedCallbacks:[]}}function Fr(it){var at=it.delayedCallbacks,ct=0;do{for(;ct<at.length;ct++)at[ct].call(null);for(var ht=0;ht<it.ops.length;ht++){var pt=it.ops[ht];if(pt.cursorActivityHandlers)for(;pt.cursorActivityCalled<pt.cursorActivityHandlers.length;)pt.cursorActivityHandlers[pt.cursorActivityCalled++].call(null,pt.cm)}}while(ct<at.length)}function zr(it,at){var ct=it.ownsGroup;if(ct)try{Fr(ct)}finally{Bi=null,at(ct)}}var Zr=null;function Di(it,at){var ct=en(it,at);if(ct.length){var ht=Array.prototype.slice.call(arguments,2),pt;Bi?pt=Bi.delayedCallbacks:Zr?pt=Zr:(pt=Zr=[],setTimeout(wr,0));for(var Lt=function(_t){pt.push(function(){return ct[_t].apply(null,ht)})},Ot=0;Ot<ct.length;++Ot)Lt(Ot)}}function wr(){var it=Zr;Zr=null;for(var at=0;at<it.length;++at)it[at]()}function Cr(it,at,ct,ht){for(var pt=0;pt<at.changes.length;pt++){var Lt=at.changes[pt];Lt=="text"?Mn(it,at):Lt=="gutter"?ar(it,at,ct,ht):Lt=="class"?_i(it,at):Lt=="widget"&&Dr(it,at,ht)}at.changes=null}function Ir(it){return it.node==it.text&&(it.node=Jt("div",null,null,"position: relative"),it.text.parentNode&&it.text.parentNode.replaceChild(it.node,it.text),it.node.appendChild(it.text),be&&jt<8&&(it.node.style.zIndex=2)),it.node}function Gi(it,at){var ct=at.bgClass?at.bgClass+" "+(at.line.bgClass||""):at.line.bgClass;if(ct&&(ct+=" CodeMirror-linebackground"),at.background)ct?at.background.className=ct:(at.background.parentNode.removeChild(at.background),at.background=null);else if(ct){var ht=Ir(at);at.background=ht.insertBefore(Jt("div",null,ct),ht.firstChild),it.display.input.setUneditable(at.background)}}function nr(it,at){var ct=it.display.externalMeasured;return ct&&ct.line==at.line?(it.display.externalMeasured=null,at.measure=ct.measure,ct.built):ue(it,at)}function Mn(it,at){var ct=at.text.className,ht=nr(it,at);at.text==at.node&&(at.node=ht.pre),at.text.parentNode.replaceChild(ht.pre,at.text),at.text=ht.pre,ht.bgClass!=at.bgClass||ht.textClass!=at.textClass?(at.bgClass=ht.bgClass,at.textClass=ht.textClass,_i(it,at)):ct&&(at.text.className=ct)}function _i(it,at){Gi(it,at),at.line.wrapClass?Ir(at).className=at.line.wrapClass:at.node!=at.text&&(at.node.className="");var ct=at.textClass?at.textClass+" "+(at.line.textClass||""):at.line.textClass;at.text.className=ct||""}function ar(it,at,ct,ht){if(at.gutter&&(at.node.removeChild(at.gutter),at.gutter=null),at.gutterBackground&&(at.node.removeChild(at.gutterBackground),at.gutterBackground=null),at.line.gutterClass){var pt=Ir(at);at.gutterBackground=Jt("div",null,"CodeMirror-gutter-background "+at.line.gutterClass,"left: "+(it.options.fixedGutter?ht.fixedPos:-ht.gutterTotalWidth)+"px; width: "+ht.gutterTotalWidth+"px"),it.display.input.setUneditable(at.gutterBackground),pt.insertBefore(at.gutterBackground,at.text)}var Lt=at.line.gutterMarkers;if(it.options.lineNumbers||Lt){var Ot=Ir(at),_t=at.gutter=Jt("div",null,"CodeMirror-gutter-wrapper","left: "+(it.options.fixedGutter?ht.fixedPos:-ht.gutterTotalWidth)+"px");if(it.display.input.setUneditable(_t),Ot.insertBefore(_t,at.text),at.line.gutterClass&&(_t.className+=" "+at.line.gutterClass),it.options.lineNumbers&&(!Lt||!Lt["CodeMirror-linenumbers"])&&(at.lineNumber=_t.appendChild(Jt("div",_n(it.options,ct),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+ht.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+it.display.lineNumInnerWidth+"px"))),Lt)for(var Ut=0;Ut<it.display.gutterSpecs.length;++Ut){var pe=it.display.gutterSpecs[Ut].className,gn=Lt.hasOwnProperty(pe)&&Lt[pe];gn&&_t.appendChild(Jt("div",[gn],"CodeMirror-gutter-elt","left: "+ht.gutterLeft[pe]+"px; width: "+ht.gutterWidth[pe]+"px"))}}}function Dr(it,at,ct){at.alignable&&(at.alignable=null);for(var ht=It("CodeMirror-linewidget"),pt=at.node.firstChild,Lt=void 0;pt;pt=Lt)Lt=pt.nextSibling,ht.test(pt.className)&&at.node.removeChild(pt);Pr(it,at,ct)}function Br(it,at,ct,ht){var pt=nr(it,at);return at.text=at.node=pt.pre,pt.bgClass&&(at.bgClass=pt.bgClass),pt.textClass&&(at.textClass=pt.textClass),_i(it,at),ar(it,at,ct,ht),Pr(it,at,ht),at.node}function Pr(it,at,ct){if(Ri(it,at.line,at,ct,!0),at.rest)for(var ht=0;ht<at.rest.length;ht++)Ri(it,at.rest[ht],at,ct,!1)}function Ri(it,at,ct,ht,pt){if(at.widgets)for(var Lt=Ir(ct),Ot=0,_t=at.widgets;Ot<_t.length;++Ot){var Ut=_t[Ot],pe=Jt("div",[Ut.node],"CodeMirror-linewidget"+(Ut.className?" "+Ut.className:""));Ut.handleMouseEvents||pe.setAttribute("cm-ignore-events","true"),kr(Ut,pe,ct,ht),it.display.input.setUneditable(pe),pt&&Ut.above?Lt.insertBefore(pe,ct.gutter||ct.text):Lt.appendChild(pe),Di(Ut,"redraw")}}function kr(it,at,ct,ht){if(it.noHScroll){(ct.alignable||(ct.alignable=[])).push(at);var pt=ht.wrapperWidth;at.style.left=ht.fixedPos+"px",it.coverGutter||(pt-=ht.gutterTotalWidth,at.style.paddingLeft=ht.gutterTotalWidth+"px"),at.style.width=pt+"px"}it.coverGutter&&(at.style.zIndex=5,at.style.position="relative",it.noHScroll||(at.style.marginLeft=-ht.gutterTotalWidth+"px"))}function Yr(it){if(it.height!=null)return it.height;var at=it.doc.cm;if(!at)return 0;if(!De(document.body,it.node)){var ct="position: relative;";it.coverGutter&&(ct+="margin-left: -"+at.display.gutters.offsetWidth+"px;"),it.noHScroll&&(ct+="width: "+at.display.wrapper.clientWidth+"px;"),Vt(at.display.measure,Jt("div",[it.node],null,ct))}return it.height=it.node.parentNode.offsetHeight}function Jr(it,at){for(var ct=pr(at);ct!=it.wrapper;ct=ct.parentNode)if(!ct||ct.nodeType==1&&ct.getAttribute("cm-ignore-events")=="true"||ct.parentNode==it.sizer&&ct!=it.mover)return!0}function jr(it){return it.lineSpace.offsetTop}function so(it){return it.mover.offsetHeight-it.lineSpace.offsetHeight}function _r(it){if(it.cachedPaddingH)return it.cachedPaddingH;var at=Vt(it.measure,Jt("pre","x","CodeMirror-line-like")),ct=window.getComputedStyle?window.getComputedStyle(at):at.currentStyle,ht={left:parseInt(ct.paddingLeft),right:parseInt(ct.paddingRight)};return!isNaN(ht.left)&&!isNaN(ht.right)&&(it.cachedPaddingH=ht),ht}function Vr(it){return ii-it.display.nativeBarWidth}function fo(it){return it.display.scroller.clientWidth-Vr(it)-it.display.barWidth}function Ao(it){return it.display.scroller.clientHeight-Vr(it)-it.display.barHeight}function Jo(it,at,ct){var ht=it.options.lineWrapping,pt=ht&&fo(it);if(!at.measure.heights||ht&&at.measure.width!=pt){var Lt=at.measure.heights=[];if(ht){at.measure.width=pt;for(var Ot=at.text.firstChild.getClientRects(),_t=0;_t<Ot.length-1;_t++){var Ut=Ot[_t],pe=Ot[_t+1];Math.abs(Ut.bottom-pe.bottom)>2&&Lt.push((Ut.bottom+pe.top)/2-ct.top)}}Lt.push(ct.bottom-ct.top)}}function ro(it,at,ct){if(it.line==at)return{map:it.measure.map,cache:it.measure.cache};for(var ht=0;ht<it.rest.length;ht++)if(it.rest[ht]==at)return{map:it.measure.maps[ht],cache:it.measure.caches[ht]};for(var pt=0;pt<it.rest.length;pt++)if(ee(it.rest[pt])>ct)return{map:it.measure.maps[pt],cache:it.measure.caches[pt],before:!0}}function na(it,at){at=_e(at);var ct=ee(at),ht=it.display.externalMeasured=new Fi(it.doc,at,ct);ht.lineN=ct;var pt=ht.built=ue(it,ht);return ht.text=pt.pre,Vt(it.display.lineMeasure,pt.pre),ht}function mo(it,at,ct,ht){return Vo(it,Po(it,at),ct,ht)}function ra(it,at){if(at>=it.display.viewFrom&&at<it.display.viewTo)return it.display.view[es(it,at)];var ct=it.display.externalMeasured;if(ct&&at>=ct.lineN&&at<ct.lineN+ct.size)return ct}function Po(it,at){var ct=ee(at),ht=ra(it,ct);ht&&!ht.text?ht=null:ht&&ht.changes&&(Cr(it,ht,ct,Ra(it)),it.curOp.forceUpdate=!0),ht||(ht=na(it,at));var pt=ro(ht,at,ct);return{line:at,view:ht,rect:null,map:pt.map,cache:pt.cache,before:pt.before,hasHeights:!1}}function Vo(it,at,ct,ht,pt){at.before&&(ct=-1);var Lt=ct+(ht||""),Ot;return at.cache.hasOwnProperty(Lt)?Ot=at.cache[Lt]:(at.rect||(at.rect=at.view.text.getBoundingClientRect()),at.hasHeights||(Jo(it,at.view,at.rect),at.hasHeights=!0),Ot=bo(it,at,ct,ht),Ot.bogus||(at.cache[Lt]=Ot)),{left:Ot.left,right:Ot.right,top:pt?Ot.rtop:Ot.top,bottom:pt?Ot.rbottom:Ot.bottom}}var jo={left:0,right:0,top:0,bottom:0};function Yo(it,at,ct){for(var ht,pt,Lt,Ot,_t,Ut,pe=0;pe<it.length;pe+=3)if(_t=it[pe],Ut=it[pe+1],at<_t?(pt=0,Lt=1,Ot="left"):at<Ut?(pt=at-_t,Lt=pt+1):(pe==it.length-3||at==Ut&&it[pe+3]>at)&&(Lt=Ut-_t,pt=Lt-1,at>=Ut&&(Ot="right")),pt!=null){if(ht=it[pe+2],_t==Ut&&ct==(ht.insertLeft?"left":"right")&&(Ot=ct),ct=="left"&&pt==0)for(;pe&&it[pe-2]==it[pe-3]&&it[pe-1].insertLeft;)ht=it[(pe-=3)+2],Ot="left";if(ct=="right"&&pt==Ut-_t)for(;pe<it.length-3&&it[pe+3]==it[pe+4]&&!it[pe+5].insertLeft;)ht=it[(pe+=3)+2],Ot="right";break}return{node:ht,start:pt,end:Lt,collapse:Ot,coverStart:_t,coverEnd:Ut}}function Bo(it,at){var ct=jo;if(at=="left")for(var ht=0;ht<it.length&&(ct=it[ht]).left==ct.right;ht++);else for(var pt=it.length-1;pt>=0&&(ct=it[pt]).left==ct.right;pt--);return ct}function bo(it,at,ct,ht){var pt=Yo(at.map,ct,ht),Lt=pt.node,Ot=pt.start,_t=pt.end,Ut=pt.collapse,pe;if(Lt.nodeType==3){for(var gn=0;gn<4;gn++){for(;Ot&&un(at.line.text.charAt(pt.coverStart+Ot));)--Ot;for(;pt.coverStart+_t<pt.coverEnd&&un(at.line.text.charAt(pt.coverStart+_t));)++_t;if(be&&jt<9&&Ot==0&&_t==pt.coverEnd-pt.coverStart?pe=Lt.parentNode.getBoundingClientRect():pe=Bo(we(Lt,Ot,_t).getClientRects(),ht),pe.left||pe.right||Ot==0)break;_t=Ot,Ot=Ot-1,Ut="right"}be&&jt<11&&(pe=oa(it.display.measure,pe))}else{Ot>0&&(Ut=ht="right");var Me;it.options.lineWrapping&&(Me=Lt.getClientRects()).length>1?pe=Me[ht=="right"?Me.length-1:0]:pe=Lt.getBoundingClientRect()}if(be&&jt<9&&!Ot&&(!pe||!pe.left&&!pe.right)){var Qn=Lt.parentNode.getClientRects()[0];Qn?pe={left:Qn.left,right:Qn.left+Ta(it.display),top:Qn.top,bottom:Qn.bottom}:pe=jo}for(var Hn=pe.top-at.rect.top,Yi=pe.bottom-at.rect.top,$i=(Hn+Yi)/2,mr=at.view.measure.heights,Or=0;Or<mr.length-1&&!($i<mr[Or]);Or++);var to=Or?mr[Or-1]:0,Kr=mr[Or],oo={left:(Ut=="right"?pe.right:pe.left)-at.rect.left,right:(Ut=="left"?pe.left:pe.right)-at.rect.left,top:to,bottom:Kr};return!pe.left&&!pe.right&&(oo.bogus=!0),it.options.singleCursorHeightPerLine||(oo.rtop=Hn,oo.rbottom=Yi),oo}function oa(it,at){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!dr(it))return at;var ct=screen.logicalXDPI/screen.deviceXDPI,ht=screen.logicalYDPI/screen.deviceYDPI;return{left:at.left*ct,right:at.right*ct,top:at.top*ht,bottom:at.bottom*ht}}function ya(it){if(it.measure&&(it.measure.cache={},it.measure.heights=null,it.rest))for(var at=0;at<it.rest.length;at++)it.measure.caches[at]={}}function Wo(it){it.display.externalMeasure=null,se(it.display.lineMeasure);for(var at=0;at<it.display.view.length;at++)ya(it.display.view[at])}function Ba(it){Wo(it),it.display.cachedCharWidth=it.display.cachedTextHeight=it.display.cachedPaddingH=null,it.options.lineWrapping||(it.display.maxLineChanged=!0),it.display.lineNumChars=null}function Fo(){return Ce&&nt?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function yo(){return Ce&&nt?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function vo(it){var at=0;if(it.widgets)for(var ct=0;ct<it.widgets.length;++ct)it.widgets[ct].above&&(at+=Yr(it.widgets[ct]));return at}function Go(it,at,ct,ht,pt){if(!pt){var Lt=vo(at);ct.top+=Lt,ct.bottom+=Lt}if(ht=="line")return ct;ht||(ht="local");var Ot=de(at);if(ht=="local"?Ot+=jr(it.display):Ot-=it.display.viewOffset,ht=="page"||ht=="window"){var _t=it.display.lineSpace.getBoundingClientRect();Ot+=_t.top+(ht=="window"?0:yo());var Ut=_t.left+(ht=="window"?0:Fo());ct.left+=Ut,ct.right+=Ut}return ct.top+=Ot,ct.bottom+=Ot,ct}function br(it,at,ct){if(ct=="div")return at;var ht=at.left,pt=at.top;if(ct=="page")ht-=Fo(),pt-=yo();else if(ct=="local"||!ct){var Lt=it.display.sizer.getBoundingClientRect();ht+=Lt.left,pt+=Lt.top}var Ot=it.display.lineSpace.getBoundingClientRect();return{left:ht-Ot.left,top:pt-Ot.top}}function Ur(it,at,ct,ht,pt){return ht||(ht=oi(it.doc,at.line)),Go(it,ht,mo(it,ht,at.ch,pt),ct)}function fr(it,at,ct,ht,pt,Lt){ht=ht||oi(it.doc,at.line),pt||(pt=Po(it,ht));function Ot(Yi,$i){var mr=Vo(it,pt,Yi,$i?"right":"left",Lt);return $i?mr.left=mr.right:mr.right=mr.left,Go(it,ht,mr,ct)}var _t=En(ht,it.doc.direction),Ut=at.ch,pe=at.sticky;if(Ut>=ht.text.length?(Ut=ht.text.length,pe="before"):Ut<=0&&(Ut=0,pe="after"),!_t)return Ot(pe=="before"?Ut-1:Ut,pe=="before");function gn(Yi,$i,mr){var Or=_t[$i],to=Or.level==1;return Ot(mr?Yi-1:Yi,to!=mr)}var Me=Ne(_t,Ut,pe),Qn=Oe,Hn=gn(Ut,Me,pe=="before");return Qn!=null&&(Hn.other=gn(Ut,Qn,pe!="before")),Hn}function Mr(it,at){var ct=0;at=Li(it.doc,at),it.options.lineWrapping||(ct=Ta(it.display)*at.ch);var ht=oi(it.doc,at.line),pt=de(ht)+jr(it.display);return{left:ct,right:ct,top:pt,bottom:pt+ht.height}}function $r(it,at,ct,ht,pt){var Lt=Ke(it,at,ct);return Lt.xRel=pt,ht&&(Lt.outside=ht),Lt}function yr(it,at,ct){var ht=it.doc;if(ct+=it.display.viewOffset,ct<0)return $r(ht.first,0,null,-1,-1);var pt=nn(ht,ct),Lt=ht.first+ht.size-1;if(pt>Lt)return $r(ht.first+ht.size-1,oi(ht,Lt).text.length,null,1,1);at<0&&(at=0);for(var Ot=oi(ht,pt);;){var _t=Wn(it,Ot,pt,at,ct),Ut=ke(Ot,_t.ch+(_t.xRel>0||_t.outside>0?1:0));if(!Ut)return _t;var pe=Ut.find(1);if(pe.line==pt)return pe;Ot=oi(ht,pt=pe.line)}}function Ei(it,at,ct,ht){ht-=vo(at);var pt=at.text.length,Lt=Ue(function(Ot){return Vo(it,ct,Ot-1).bottom<=ht},pt,0);return pt=Ue(function(Ot){return Vo(it,ct,Ot).top>ht},Lt,pt),{begin:Lt,end:pt}}function Qo(it,at,ct,ht){ct||(ct=Po(it,at));var pt=Go(it,at,Vo(it,ct,ht),"line").top;return Ei(it,at,ct,pt)}function me(it,at,ct,ht){return it.bottom<=ct?!1:it.top>ct?!0:(ht?it.left:it.right)>at}function Wn(it,at,ct,ht,pt){pt-=de(at);var Lt=Po(it,at),Ot=vo(at),_t=0,Ut=at.text.length,pe=!0,gn=En(at,it.doc.direction);if(gn){var Me=(it.options.lineWrapping?Sa:pa)(it,at,ct,Lt,gn,ht,pt);pe=Me.level!=1,_t=pe?Me.from:Me.to-1,Ut=pe?Me.to:Me.from-1}var Qn=null,Hn=null,Yi=Ue(function(ko){var Gr=Vo(it,Lt,ko);return Gr.top+=Ot,Gr.bottom+=Ot,me(Gr,ht,pt,!1)?(Gr.top<=pt&&Gr.left<=ht&&(Qn=ko,Hn=Gr),!0):!1},_t,Ut),$i,mr,Or=!1;if(Hn){var to=ht-Hn.left<Hn.right-ht,Kr=to==pe;Yi=Qn+(Kr?0:1),mr=Kr?"after":"before",$i=to?Hn.left:Hn.right}else{!pe&&(Yi==Ut||Yi==_t)&&Yi++,mr=Yi==0?"after":Yi==at.text.length?"before":Vo(it,Lt,Yi-(pe?1:0)).bottom+Ot<=pt==pe?"after":"before";var oo=fr(it,Ke(ct,Yi,mr),"line",at,Lt);$i=oo.left,Or=pt<oo.top?-1:pt>=oo.bottom?1:0}return Yi=Ie(at.text,Yi,1),$r(ct,Yi,mr,Or,ht-$i)}function pa(it,at,ct,ht,pt,Lt,Ot){var _t=Ue(function(Me){var Qn=pt[Me],Hn=Qn.level!=1;return me(fr(it,Ke(ct,Hn?Qn.to:Qn.from,Hn?"before":"after"),"line",at,ht),Lt,Ot,!0)},0,pt.length-1),Ut=pt[_t];if(_t>0){var pe=Ut.level!=1,gn=fr(it,Ke(ct,pe?Ut.from:Ut.to,pe?"after":"before"),"line",at,ht);me(gn,Lt,Ot,!0)&&gn.top>Ot&&(Ut=pt[_t-1])}return Ut}function Sa(it,at,ct,ht,pt,Lt,Ot){var _t=Ei(it,at,ht,Ot),Ut=_t.begin,pe=_t.end;/\s/.test(at.text.charAt(pe-1))&&pe--;for(var gn=null,Me=null,Qn=0;Qn<pt.length;Qn++){var Hn=pt[Qn];if(!(Hn.from>=pe||Hn.to<=Ut)){var Yi=Hn.level!=1,$i=Vo(it,ht,Yi?Math.min(pe,Hn.to)-1:Math.max(Ut,Hn.from)).right,mr=$i<Lt?Lt-$i+1e9:$i-Lt;(!gn||Me>mr)&&(gn=Hn,Me=mr)}}return gn||(gn=pt[pt.length-1]),gn.from<Ut&&(gn={from:Ut,to:gn.to,level:gn.level}),gn.to>pe&&(gn={from:gn.from,to:pe,level:gn.level}),gn}var sa;function xa(it){if(it.cachedTextHeight!=null)return it.cachedTextHeight;if(sa==null){sa=Jt("pre",null,"CodeMirror-line-like");for(var at=0;at<49;++at)sa.appendChild(document.createTextNode("x")),sa.appendChild(Jt("br"));sa.appendChild(document.createTextNode("x"))}Vt(it.measure,sa);var ct=sa.offsetHeight/50;return ct>3&&(it.cachedTextHeight=ct),se(it.measure),ct||1}function Ta(it){if(it.cachedCharWidth!=null)return it.cachedCharWidth;var at=Jt("span","xxxxxxxxxx"),ct=Jt("pre",[at],"CodeMirror-line-like");Vt(it.measure,ct);var ht=at.getBoundingClientRect(),pt=(ht.right-ht.left)/10;return pt>2&&(it.cachedCharWidth=pt),pt||10}function Ra(it){for(var at=it.display,ct={},ht={},pt=at.gutters.clientLeft,Lt=at.gutters.firstChild,Ot=0;Lt;Lt=Lt.nextSibling,++Ot){var _t=it.display.gutterSpecs[Ot].className;ct[_t]=Lt.offsetLeft+Lt.clientLeft+pt,ht[_t]=Lt.clientWidth}return{fixedPos:hs(at),gutterTotalWidth:at.gutters.offsetWidth,gutterLeft:ct,gutterWidth:ht,wrapperWidth:at.wrapper.clientWidth}}function hs(it){return it.scroller.getBoundingClientRect().left-it.sizer.getBoundingClientRect().left}function ua(it){var at=xa(it.display),ct=it.options.lineWrapping,ht=ct&&Math.max(5,it.display.scroller.clientWidth/Ta(it.display)-3);return function(pt){if(zt(it.doc,pt))return 0;var Lt=0;if(pt.widgets)for(var Ot=0;Ot<pt.widgets.length;Ot++)pt.widgets[Ot].height&&(Lt+=pt.widgets[Ot].height);return ct?Lt+(Math.ceil(pt.text.length/ht)||1)*at:Lt+at}}function Qr(it){var at=it.doc,ct=ua(it);at.iter(function(ht){var pt=ct(ht);pt!=ht.height&&hi(ht,pt)})}function Ya(it,at,ct,ht){var pt=it.display;if(!ct&&pr(at).getAttribute("cm-not-content")=="true")return null;var Lt,Ot,_t=pt.lineSpace.getBoundingClientRect();try{Lt=at.clientX-_t.left,Ot=at.clientY-_t.top}catch(Me){return null}var Ut=yr(it,Lt,Ot),pe;if(ht&&Ut.xRel>0&&(pe=oi(it.doc,Ut.line).text).length==Ut.ch){var gn=Se(pe,pe.length,it.options.tabSize)-pe.length;Ut=Ke(Ut.line,Math.max(0,Math.round((Lt-_r(it.display).left)/Ta(it.display))-gn))}return Ut}function es(it,at){if(at>=it.display.viewTo||(at-=it.display.viewFrom,at<0))return null;for(var ct=it.display.view,ht=0;ht<ct.length;ht++)if(at-=ct[ht].size,at<0)return ht}function ha(it,at,ct,ht){at==null&&(at=it.doc.first),ct==null&&(ct=it.doc.first+it.doc.size),ht||(ht=0);var pt=it.display;if(ht&&ct<pt.viewTo&&(pt.updateLineNumbers==null||pt.updateLineNumbers>at)&&(pt.updateLineNumbers=at),it.curOp.viewChanged=!0,at>=pt.viewTo)cn&&Et(it.doc,at)<pt.viewTo&&ma(it);else if(ct<=pt.viewFrom)cn&&qt(it.doc,ct+ht)>pt.viewFrom?ma(it):(pt.viewFrom+=ht,pt.viewTo+=ht);else if(at<=pt.viewFrom&&ct>=pt.viewTo)ma(it);else if(at<=pt.viewFrom){var Lt=ds(it,ct,ct+ht,1);Lt?(pt.view=pt.view.slice(Lt.index),pt.viewFrom=Lt.lineN,pt.viewTo+=ht):ma(it)}else if(ct>=pt.viewTo){var Ot=ds(it,at,at,-1);Ot?(pt.view=pt.view.slice(0,Ot.index),pt.viewTo=Ot.lineN):ma(it)}else{var _t=ds(it,at,at,-1),Ut=ds(it,ct,ct+ht,1);_t&&Ut?(pt.view=pt.view.slice(0,_t.index).concat(Ii(it,_t.lineN,Ut.lineN)).concat(pt.view.slice(Ut.index)),pt.viewTo+=ht):ma(it)}var pe=pt.externalMeasured;pe&&(ct<pe.lineN?pe.lineN+=ht:at<pe.lineN+pe.size&&(pt.externalMeasured=null))}function So(it,at,ct){it.curOp.viewChanged=!0;var ht=it.display,pt=it.display.externalMeasured;if(pt&&at>=pt.lineN&&at<pt.lineN+pt.size&&(ht.externalMeasured=null),!(at<ht.viewFrom||at>=ht.viewTo)){var Lt=ht.view[es(it,at)];if(Lt.node!=null){var Ot=Lt.changes||(Lt.changes=[]);mn(Ot,ct)==-1&&Ot.push(ct)}}}function ma(it){it.display.viewFrom=it.display.viewTo=it.doc.first,it.display.view=[],it.display.viewOffset=0}function ds(it,at,ct,ht){var pt=es(it,at),Lt,Ot=it.display.view;if(!cn||ct==it.doc.first+it.doc.size)return{index:pt,lineN:ct};for(var _t=it.display.viewFrom,Ut=0;Ut<pt;Ut++)_t+=Ot[Ut].size;if(_t!=at){if(ht>0){if(pt==Ot.length-1)return null;Lt=_t+Ot[pt].size-at,pt++}else Lt=_t-at;at+=Lt,ct+=Lt}for(;Et(it.doc,ct)!=ct;){if(pt==(ht<0?0:Ot.length-1))return null;ct+=ht*Ot[pt-(ht<0?1:0)].size,pt+=ht}return{index:pt,lineN:ct}}function la(it,at,ct){var ht=it.display,pt=ht.view;pt.length==0||at>=ht.viewTo||ct<=ht.viewFrom?(ht.view=Ii(it,at,ct),ht.viewFrom=at):(ht.viewFrom>at?ht.view=Ii(it,at,ht.viewFrom).concat(ht.view):ht.viewFrom<at&&(ht.view=ht.view.slice(es(it,at))),ht.viewFrom=at,ht.viewTo<ct?ht.view=ht.view.concat(Ii(it,ht.viewTo,ct)):ht.viewTo>ct&&(ht.view=ht.view.slice(0,es(it,ct)))),ht.viewTo=ct}function cs(it){for(var at=it.display.view,ct=0,ht=0;ht<at.length;ht++){var pt=at[ht];!pt.hidden&&(!pt.node||pt.changes)&&++ct}return ct}function za(it){it.display.input.showSelection(it.display.input.prepareSelection())}function Dl(it,at){at===void 0&&(at=!0);for(var ct=it.doc,ht={},pt=ht.cursors=document.createDocumentFragment(),Lt=ht.selection=document.createDocumentFragment(),Ot=0;Ot<ct.sel.ranges.length;Ot++)if(!(!at&&Ot==ct.sel.primIndex)){var _t=ct.sel.ranges[Ot];if(!(_t.from().line>=it.display.viewTo||_t.to().line<it.display.viewFrom)){var Ut=_t.empty();(Ut||it.options.showCursorWhenSelecting)&&Ho(it,_t.head,pt),Ut||To(it,_t,Lt)}}return ht}function Ho(it,at,ct){var ht=fr(it,at,"div",null,null,!it.options.singleCursorHeightPerLine),pt=ct.appendChild(Jt("div","\xA0","CodeMirror-cursor"));if(pt.style.left=ht.left+"px",pt.style.top=ht.top+"px",pt.style.height=Math.max(0,ht.bottom-ht.top)*it.options.cursorHeight+"px",ht.other){var Lt=ct.appendChild(Jt("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));Lt.style.display="",Lt.style.left=ht.other.left+"px",Lt.style.top=ht.other.top+"px",Lt.style.height=(ht.other.bottom-ht.other.top)*.85+"px"}}function Ma(it,at){return it.top-at.top||it.left-at.left}function To(it,at,ct){var ht=it.display,pt=it.doc,Lt=document.createDocumentFragment(),Ot=_r(it.display),_t=Ot.left,Ut=Math.max(ht.sizerWidth,fo(it)-ht.sizer.offsetLeft)-Ot.right,pe=pt.direction=="ltr";function gn(Kr,oo,ko,Gr){oo<0&&(oo=0),oo=Math.round(oo),Gr=Math.round(Gr),Lt.appendChild(Jt("div",null,"CodeMirror-selected","position: absolute; left: "+Kr+`px;
top: `+oo+"px; width: "+(ko==null?Ut-Kr:ko)+`px;
height: `+(Gr-oo)+"px"))}function Me(Kr,oo,ko){var Gr=oi(pt,Kr),_o=Gr.text.length,ja,Ss;function _a(ps,Pl){return Ur(it,Ke(Kr,ps),"div",Gr,Pl)}function ul(ps,Pl,Rs){var ms=Qo(it,Gr,null,ps),fa=Pl=="ltr"==(Rs=="after")?"left":"right",qa=Rs=="after"?ms.begin:ms.end-(/\s/.test(Gr.text.charAt(ms.end-1))?2:1);return _a(qa,fa)[fa]}var Ys=En(Gr,pt.direction);return ne(Ys,oo||0,ko==null?_o:ko,function(ps,Pl,Rs,ms){var fa=Rs=="ltr",qa=_a(ps,fa?"left":"right"),As=_a(Pl-1,fa?"right":"left"),zs=oo==null&&ps==0,su=ko==null&&Pl==_o,Ja=ms==0,Jl=!Ys||ms==Ys.length-1;if(As.top-qa.top<=3){var is=(pe?zs:su)&&Ja,Bc=(pe?su:zs)&&Jl,Rl=is?_t:(fa?qa:As).left,Cl=Bc?Ut:(fa?As:qa).right;gn(Rl,qa.top,Cl-Rl,qa.bottom)}else{var hl,Fa,Ls,Ru;fa?(hl=pe&&zs&&Ja?_t:qa.left,Fa=pe?Ut:ul(ps,Rs,"before"),Ls=pe?_t:ul(Pl,Rs,"after"),Ru=pe&&su&&Jl?Ut:As.right):(hl=pe?ul(ps,Rs,"before"):_t,Fa=!pe&&zs&&Ja?Ut:qa.right,Ls=!pe&&su&&Jl?_t:As.left,Ru=pe?ul(Pl,Rs,"after"):Ut),gn(hl,qa.top,Fa-hl,qa.bottom),qa.bottom<As.top&&gn(_t,qa.bottom,null,As.top),gn(Ls,As.top,Ru-Ls,As.bottom)}(!ja||Ma(qa,ja)<0)&&(ja=qa),Ma(As,ja)<0&&(ja=As),(!Ss||Ma(qa,Ss)<0)&&(Ss=qa),Ma(As,Ss)<0&&(Ss=As)}),{start:ja,end:Ss}}var Qn=at.from(),Hn=at.to();if(Qn.line==Hn.line)Me(Qn.line,Qn.ch,Hn.ch);else{var Yi=oi(pt,Qn.line),$i=oi(pt,Hn.line),mr=_e(Yi)==_e($i),Or=Me(Qn.line,Qn.ch,mr?Yi.text.length+1:null).end,to=Me(Hn.line,mr?0:null,Hn.ch).start;mr&&(Or.top<to.top-2?(gn(Or.right,Or.top,null,Or.bottom),gn(_t,to.top,to.left,to.bottom)):gn(Or.right,Or.top,to.left-Or.right,Or.bottom)),Or.bottom<to.top&&gn(_t,Or.bottom,null,to.top)}ct.appendChild(Lt)}function $o(it){if(it.state.focused){var at=it.display;clearInterval(at.blinker);var ct=!0;at.cursorDiv.style.visibility="",it.options.cursorBlinkRate>0?at.blinker=setInterval(function(){it.hasFocus()||pl(it),at.cursorDiv.style.visibility=(ct=!ct)?"":"hidden"},it.options.cursorBlinkRate):it.options.cursorBlinkRate<0&&(at.cursorDiv.style.visibility="hidden")}}function ca(it){it.state.focused||(it.display.input.focus(),qo(it))}function va(it){it.state.delayingBlurEvent=!0,setTimeout(function(){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1,pl(it))},100)}function qo(it,at){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1),it.options.readOnly!="nocursor"&&(it.state.focused||(qe(it,"focus",it,at),it.state.focused=!0,sn(it.display.wrapper,"CodeMirror-focused"),!it.curOp&&it.display.selForContextMenu!=it.doc.sel&&(it.display.input.reset(),ge&&setTimeout(function(){return it.display.input.reset(!0)},20)),it.display.input.receivedFocus()),$o(it))}function pl(it,at){it.state.delayingBlurEvent||(it.state.focused&&(qe(it,"blur",it,at),it.state.focused=!1,Ht(it.display.wrapper,"CodeMirror-focused")),clearInterval(it.display.blinker),setTimeout(function(){it.state.focused||(it.display.shift=!1)},150))}function eo(it){for(var at=it.display,ct=at.lineDiv.offsetTop,ht=0;ht<at.view.length;ht++){var pt=at.view[ht],Lt=it.options.lineWrapping,Ot=void 0,_t=0;if(!pt.hidden){if(be&&jt<8){var Ut=pt.node.offsetTop+pt.node.offsetHeight;Ot=Ut-ct,ct=Ut}else{var pe=pt.node.getBoundingClientRect();Ot=pe.bottom-pe.top,!Lt&&pt.text.firstChild&&(_t=pt.text.firstChild.getBoundingClientRect().right-pe.left-1)}var gn=pt.line.height-Ot;if((gn>.005||gn<-.005)&&(hi(pt.line,Ot),vu(pt.line),pt.rest))for(var Me=0;Me<pt.rest.length;Me++)vu(pt.rest[Me]);if(_t>it.display.sizerWidth){var Qn=Math.ceil(_t/Ta(it.display));Qn>it.display.maxLineLength&&(it.display.maxLineLength=Qn,it.display.maxLine=pt.line,it.display.maxLineChanged=!0)}}}}function vu(it){if(it.widgets)for(var at=0;at<it.widgets.length;++at){var ct=it.widgets[at],ht=ct.node.parentNode;ht&&(ct.height=ht.offsetHeight)}}function Lo(it,at,ct){var ht=ct&&ct.top!=null?Math.max(0,ct.top):it.scroller.scrollTop;ht=Math.floor(ht-jr(it));var pt=ct&&ct.bottom!=null?ct.bottom:ht+it.wrapper.clientHeight,Lt=nn(at,ht),Ot=nn(at,pt);if(ct&&ct.ensure){var _t=ct.ensure.from.line,Ut=ct.ensure.to.line;_t<Lt?(Lt=_t,Ot=nn(at,de(oi(at,_t))+it.wrapper.clientHeight)):Math.min(Ut,at.lastLine())>=Ot&&(Lt=nn(at,de(oi(at,Ut))-it.wrapper.clientHeight),Ot=Ut)}return{from:Lt,to:Math.max(Ot,Lt+1)}}function Kl(it,at){if(!pn(it,"scrollCursorIntoView")){var ct=it.display,ht=ct.sizer.getBoundingClientRect(),pt=null;if(at.top+ht.top<0?pt=!0:at.bottom+ht.top>(window.innerHeight||document.documentElement.clientHeight)&&(pt=!1),pt!=null&&!We){var Lt=Jt("div","\u200B",null,`position: absolute;
top: `+(at.top-ct.viewOffset-jr(it.display))+`px;
height: `+(at.bottom-at.top+Vr(it)+ct.barHeight)+`px;
left: `+at.left+"px; width: "+Math.max(2,at.right-at.left)+"px;");it.display.lineSpace.appendChild(Lt),Lt.scrollIntoView(pt),it.display.lineSpace.removeChild(Lt)}}}function qs(it,at,ct,ht){ht==null&&(ht=0);var pt;!it.options.lineWrapping&&at==ct&&(at=at.ch?Ke(at.line,at.sticky=="before"?at.ch-1:at.ch,"after"):at,ct=at.sticky=="before"?Ke(at.line,at.ch+1,"before"):at);for(var Lt=0;Lt<5;Lt++){var Ot=!1,_t=fr(it,at),Ut=!ct||ct==at?_t:fr(it,ct);pt={left:Math.min(_t.left,Ut.left),top:Math.min(_t.top,Ut.top)-ht,right:Math.max(_t.left,Ut.left),bottom:Math.max(_t.bottom,Ut.bottom)+ht};var pe=yu(it,pt),gn=it.doc.scrollTop,Me=it.doc.scrollLeft;if(pe.scrollTop!=null&&(ml(it,pe.scrollTop),Math.abs(it.doc.scrollTop-gn)>1&&(Ot=!0)),pe.scrollLeft!=null&&(vl(it,pe.scrollLeft),Math.abs(it.doc.scrollLeft-Me)>1&&(Ot=!0)),!Ot)break}return pt}function Nl(it,at){var ct=yu(it,at);ct.scrollTop!=null&&ml(it,ct.scrollTop),ct.scrollLeft!=null&&vl(it,ct.scrollLeft)}function yu(it,at){var ct=it.display,ht=xa(it.display);at.top<0&&(at.top=0);var pt=it.curOp&&it.curOp.scrollTop!=null?it.curOp.scrollTop:ct.scroller.scrollTop,Lt=Ao(it),Ot={};at.bottom-at.top>Lt&&(at.bottom=at.top+Lt);var _t=it.doc.height+so(ct),Ut=at.top<ht,pe=at.bottom>_t-ht;if(at.top<pt)Ot.scrollTop=Ut?0:at.top;else if(at.bottom>pt+Lt){var gn=Math.min(at.top,(pe?_t:at.bottom)-Lt);gn!=pt&&(Ot.scrollTop=gn)}var Me=it.options.fixedGutter?0:ct.gutters.offsetWidth,Qn=it.curOp&&it.curOp.scrollLeft!=null?it.curOp.scrollLeft:ct.scroller.scrollLeft-Me,Hn=fo(it)-ct.gutters.offsetWidth,Yi=at.right-at.left>Hn;return Yi&&(at.right=at.left+Hn),at.left<10?Ot.scrollLeft=0:at.left<Qn?Ot.scrollLeft=Math.max(0,at.left+Me-(Yi?0:10)):at.right>Hn+Qn-3&&(Ot.scrollLeft=at.right+(Yi?0:10)-Hn),Ot}function Su(it,at){at!=null&&(Gs(it),it.curOp.scrollTop=(it.curOp.scrollTop==null?it.doc.scrollTop:it.curOp.scrollTop)+at)}function Vs(it){Gs(it);var at=it.getCursor();it.curOp.scrollToPos={from:at,to:at,margin:it.options.cursorScrollMargin}}function Yl(it,at,ct){(at!=null||ct!=null)&&Gs(it),at!=null&&(it.curOp.scrollLeft=at),ct!=null&&(it.curOp.scrollTop=ct)}function Uo(it,at){Gs(it),it.curOp.scrollToPos=at}function Gs(it){var at=it.curOp.scrollToPos;if(at){it.curOp.scrollToPos=null;var ct=Mr(it,at.from),ht=Mr(it,at.to);xu(it,ct,ht,at.margin)}}function xu(it,at,ct,ht){var pt=yu(it,{left:Math.min(at.left,ct.left),top:Math.min(at.top,ct.top)-ht,right:Math.max(at.right,ct.right),bottom:Math.max(at.bottom,ct.bottom)+ht});Yl(it,pt.scrollLeft,pt.scrollTop)}function ml(it,at){Math.abs(it.doc.scrollTop-at)<2||(yt||ph(it,{top:at}),Nu(it,at,!0),yt&&ph(it),rs(it,100))}function Nu(it,at,ct){at=Math.max(0,Math.min(it.display.scroller.scrollHeight-it.display.scroller.clientHeight,at)),!(it.display.scroller.scrollTop==at&&!ct)&&(it.doc.scrollTop=at,it.display.scrollbars.setScrollTop(at),it.display.scroller.scrollTop!=at&&(it.display.scroller.scrollTop=at))}function vl(it,at,ct,ht){at=Math.max(0,Math.min(at,it.display.scroller.scrollWidth-it.display.scroller.clientWidth)),!((ct?at==it.doc.scrollLeft:Math.abs(it.doc.scrollLeft-at)<2)&&!ht)&&(it.doc.scrollLeft=at,of(it),it.display.scroller.scrollLeft!=at&&(it.display.scroller.scrollLeft=at),it.display.scrollbars.setScrollLeft(at))}function No(it){var at=it.display,ct=at.gutters.offsetWidth,ht=Math.round(it.doc.height+so(it.display));return{clientHeight:at.scroller.clientHeight,viewHeight:at.wrapper.clientHeight,scrollWidth:at.scroller.scrollWidth,clientWidth:at.scroller.clientWidth,viewWidth:at.wrapper.clientWidth,barLeft:it.options.fixedGutter?ct:0,docHeight:ht,scrollHeight:ht+Vr(it)+at.barHeight,nativeBarWidth:at.nativeBarWidth,gutterWidth:ct}}var Ko=function(it,at,ct){this.cm=ct;var ht=this.vert=Jt("div",[Jt("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),pt=this.horiz=Jt("div",[Jt("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");ht.tabIndex=pt.tabIndex=-1,it(ht),it(pt),An(ht,"scroll",function(){ht.clientHeight&&at(ht.scrollTop,"vertical")}),An(pt,"scroll",function(){pt.clientWidth&&at(pt.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,be&&jt<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ko.prototype.update=function(it){var at=it.scrollWidth>it.clientWidth+1,ct=it.scrollHeight>it.clientHeight+1,ht=it.nativeBarWidth;if(ct){this.vert.style.display="block",this.vert.style.bottom=at?ht+"px":"0";var pt=it.viewHeight-(at?ht:0);this.vert.firstChild.style.height=Math.max(0,it.scrollHeight-it.clientHeight+pt)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(at){this.horiz.style.display="block",this.horiz.style.right=ct?ht+"px":"0",this.horiz.style.left=it.barLeft+"px";var Lt=it.viewWidth-it.barLeft-(ct?ht:0);this.horiz.firstChild.style.width=Math.max(0,it.scrollWidth-it.clientWidth+Lt)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&it.clientHeight>0&&(ht==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:ct?ht:0,bottom:at?ht:0}},Ko.prototype.setScrollLeft=function(it){this.horiz.scrollLeft!=it&&(this.horiz.scrollLeft=it),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ko.prototype.setScrollTop=function(it){this.vert.scrollTop!=it&&(this.vert.scrollTop=it),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ko.prototype.zeroWidthHack=function(){var it=dt&&!Yt?"12px":"18px";this.horiz.style.height=this.vert.style.width=it,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Qt,this.disableVert=new Qt},Ko.prototype.enableZeroWidthBar=function(it,at,ct){it.style.pointerEvents="auto";function ht(){var pt=it.getBoundingClientRect(),Lt=ct=="vert"?document.elementFromPoint(pt.right-1,(pt.top+pt.bottom)/2):document.elementFromPoint((pt.right+pt.left)/2,pt.bottom-1);Lt!=it?it.style.pointerEvents="none":at.set(1e3,ht)}at.set(1e3,ht)},Ko.prototype.clear=function(){var it=this.horiz.parentNode;it.removeChild(this.horiz),it.removeChild(this.vert)};var ba=function(){};ba.prototype.update=function(){return{bottom:0,right:0}},ba.prototype.setScrollLeft=function(){},ba.prototype.setScrollTop=function(){},ba.prototype.clear=function(){};function ns(it,at){at||(at=No(it));var ct=it.display.barWidth,ht=it.display.barHeight;Qa(it,at);for(var pt=0;pt<4&&ct!=it.display.barWidth||ht!=it.display.barHeight;pt++)ct!=it.display.barWidth&&it.options.lineWrapping&&eo(it),Qa(it,No(it)),ct=it.display.barWidth,ht=it.display.barHeight}function Qa(it,at){var ct=it.display,ht=ct.scrollbars.update(at);ct.sizer.style.paddingRight=(ct.barWidth=ht.right)+"px",ct.sizer.style.paddingBottom=(ct.barHeight=ht.bottom)+"px",ct.heightForcer.style.borderBottom=ht.bottom+"px solid transparent",ht.right&&ht.bottom?(ct.scrollbarFiller.style.display="block",ct.scrollbarFiller.style.height=ht.bottom+"px",ct.scrollbarFiller.style.width=ht.right+"px"):ct.scrollbarFiller.style.display="",ht.bottom&&it.options.coverGutterNextToScrollbar&&it.options.fixedGutter?(ct.gutterFiller.style.display="block",ct.gutterFiller.style.height=ht.bottom+"px",ct.gutterFiller.style.width=at.gutterWidth+"px"):ct.gutterFiller.style.display=""}var Bl={native:Ko,null:ba};function yl(it){it.display.scrollbars&&(it.display.scrollbars.clear(),it.display.scrollbars.addClass&&Ht(it.display.wrapper,it.display.scrollbars.addClass)),it.display.scrollbars=new Bl[it.options.scrollbarStyle](function(at){it.display.wrapper.insertBefore(at,it.display.scrollbarFiller),An(at,"mousedown",function(){it.state.focused&&setTimeout(function(){return it.display.input.focus()},0)}),at.setAttribute("cm-not-content","true")},function(at,ct){ct=="horizontal"?vl(it,at):ml(it,at)},it),it.display.scrollbars.addClass&&sn(it.display.wrapper,it.display.scrollbars.addClass)}var Oo=0;function xo(it){it.curOp={cm:it,viewChanged:!1,startHeight:it.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:++Oo},gr(it.curOp)}function Ua(it){var at=it.curOp;at&&zr(at,function(ct){for(var ht=0;ht<ct.ops.length;ht++)ct.ops[ht].cm.curOp=null;ou(ct)})}function ou(it){for(var at=it.ops,ct=0;ct<at.length;ct++)Dd(at[ct]);for(var ht=0;ht<at.length;ht++)cg(at[ht]);for(var pt=0;pt<at.length;pt++)nf(at[pt]);for(var Lt=0;Lt<at.length;Lt++)Va(at[Lt]);for(var Ot=0;Ot<at.length;Ot++)Qu(at[Ot])}function Dd(it){var at=it.cm,ct=at.display;Vp(at),it.updateMaxLine&&Ye(at),it.mustUpdate=it.viewChanged||it.forceUpdate||it.scrollTop!=null||it.scrollToPos&&(it.scrollToPos.from.line<ct.viewFrom||it.scrollToPos.to.line>=ct.viewTo)||ct.maxLineChanged&&at.options.lineWrapping,it.update=it.mustUpdate&&new Xh(at,it.mustUpdate&&{top:it.scrollTop,ensure:it.scrollToPos},it.forceUpdate)}function cg(it){it.updatedDisplay=it.mustUpdate&&rf(it.cm,it.update)}function nf(it){var at=it.cm,ct=at.display;it.updatedDisplay&&eo(at),it.barMeasure=No(at),ct.maxLineChanged&&!at.options.lineWrapping&&(it.adjustWidthTo=mo(at,ct.maxLine,ct.maxLine.text.length).left+3,at.display.sizerWidth=it.adjustWidthTo,it.barMeasure.scrollWidth=Math.max(ct.scroller.clientWidth,ct.sizer.offsetLeft+it.adjustWidthTo+Vr(at)+at.display.barWidth),it.maxScrollLeft=Math.max(0,ct.sizer.offsetLeft+it.adjustWidthTo-fo(at))),(it.updatedDisplay||it.selectionChanged)&&(it.preparedSelection=ct.input.prepareSelection())}function Va(it){var at=it.cm;it.adjustWidthTo!=null&&(at.display.sizer.style.minWidth=it.adjustWidthTo+"px",it.maxScrollLeft<at.doc.scrollLeft&&vl(at,Math.min(at.display.scroller.scrollLeft,it.maxScrollLeft),!0),at.display.maxLineChanged=!1);var ct=it.focus&&it.focus==Le();it.preparedSelection&&at.display.input.showSelection(it.preparedSelection,ct),(it.updatedDisplay||it.startHeight!=at.doc.height)&&ns(at,it.barMeasure),it.updatedDisplay&&vh(at,it.barMeasure),it.selectionChanged&&$o(at),at.state.focused&&it.updateInput&&at.display.input.reset(it.typing),ct&&ca(it.cm)}function Qu(it){var at=it.cm,ct=at.display,ht=at.doc;if(it.updatedDisplay&&Pa(at,it.update),ct.wheelStartX!=null&&(it.scrollTop!=null||it.scrollLeft!=null||it.scrollToPos)&&(ct.wheelStartX=ct.wheelStartY=null),it.scrollTop!=null&&Nu(at,it.scrollTop,it.forceScroll),it.scrollLeft!=null&&vl(at,it.scrollLeft,!0,!0),it.scrollToPos){var pt=qs(at,Li(ht,it.scrollToPos.from),Li(ht,it.scrollToPos.to),it.scrollToPos.margin);Kl(at,pt)}var Lt=it.maybeHiddenMarkers,Ot=it.maybeUnhiddenMarkers;if(Lt)for(var _t=0;_t<Lt.length;++_t)Lt[_t].lines.length||qe(Lt[_t],"hide");if(Ot)for(var Ut=0;Ut<Ot.length;++Ut)Ot[Ut].lines.length&&qe(Ot[Ut],"unhide");ct.wrapper.offsetHeight&&(ht.scrollTop=at.display.scroller.scrollTop),it.changeObjs&&qe(at,"changes",at,it.changeObjs),it.update&&it.update.finish()}function lo(it,at){if(it.curOp)return at();xo(it);try{return at()}finally{Ua(it)}}function po(it,at){return function(){if(it.curOp)return at.apply(it,arguments);xo(it);try{return at.apply(it,arguments)}finally{Ua(it)}}}function Mo(it){return function(){if(this.curOp)return it.apply(this,arguments);xo(this);try{return it.apply(this,arguments)}finally{Ua(this)}}}function ia(it){return function(){var at=this.cm;if(!at||at.curOp)return it.apply(this,arguments);xo(at);try{return it.apply(this,arguments)}finally{Ua(at)}}}function rs(it,at){it.doc.highlightFrontier<it.display.viewTo&&it.state.highlight.set(at,Ge(fs,it))}function fs(it){var at=it.doc;if(!(at.highlightFrontier>=it.display.viewTo)){var ct=+new Date+it.options.workTime,ht=Hr(it,at.highlightFrontier),pt=[];at.iter(ht.line,Math.min(at.first+at.size,it.display.viewTo+500),function(Lt){if(ht.line>=it.display.viewFrom){var Ot=Lt.styles,_t=Lt.text.length>it.options.maxHighlightLength?Kn(at.mode,ht.state):null,Ut=Rr(it,Lt,ht,!0);_t&&(ht.state=_t),Lt.styles=Ut.styles;var pe=Lt.styleClasses,gn=Ut.classes;gn?Lt.styleClasses=gn:pe&&(Lt.styleClasses=null);for(var Me=!Ot||Ot.length!=Lt.styles.length||pe!=gn&&(!pe||!gn||pe.bgClass!=gn.bgClass||pe.textClass!=gn.textClass),Qn=0;!Me&&Qn<Ot.length;++Qn)Me=Ot[Qn]!=Lt.styles[Qn];Me&&pt.push(ht.line),Lt.stateAfter=ht.save(),ht.nextLine()}else Lt.text.length<=it.options.maxHighlightLength&&dn(it,Lt.text,ht),Lt.stateAfter=ht.line%5==0?ht.save():null,ht.nextLine();if(+new Date>ct)return rs(it,it.options.workDelay),!0}),at.highlightFrontier=ht.line,at.modeFrontier=Math.max(at.modeFrontier,ht.line),pt.length&&lo(it,function(){for(var Lt=0;Lt<pt.length;Lt++)So(it,pt[Lt],"text")})}}var Xh=function(it,at,ct){var ht=it.display;this.viewport=at,this.visible=Lo(ht,it.doc,at),this.editorIsHidden=!ht.wrapper.offsetWidth,this.wrapperHeight=ht.wrapper.clientHeight,this.wrapperWidth=ht.wrapper.clientWidth,this.oldDisplayWidth=fo(it),this.force=ct,this.dims=Ra(it),this.events=[]};Xh.prototype.signal=function(it,at){Yn(it,at)&&this.events.push(arguments)},Xh.prototype.finish=function(){for(var it=0;it<this.events.length;it++)qe.apply(null,this.events[it])};function Vp(it){var at=it.display;!at.scrollbarsClipped&&at.scroller.offsetWidth&&(at.nativeBarWidth=at.scroller.offsetWidth-at.scroller.clientWidth,at.heightForcer.style.height=Vr(it)+"px",at.sizer.style.marginBottom=-at.nativeBarWidth+"px",at.sizer.style.borderRightWidth=Vr(it)+"px",at.scrollbarsClipped=!0)}function Gp(it){if(it.hasFocus())return null;var at=Le();if(!at||!De(it.display.lineDiv,at))return null;var ct={activeElt:at};if(window.getSelection){var ht=window.getSelection();ht.anchorNode&&ht.extend&&De(it.display.lineDiv,ht.anchorNode)&&(ct.anchorNode=ht.anchorNode,ct.anchorOffset=ht.anchorOffset,ct.focusNode=ht.focusNode,ct.focusOffset=ht.focusOffset)}return ct}function sl(it){if(!(!it||!it.activeElt||it.activeElt==Le())&&(it.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(it.activeElt.nodeName)&&it.anchorNode&&De(document.body,it.anchorNode)&&De(document.body,it.focusNode))){var at=window.getSelection(),ct=document.createRange();ct.setEnd(it.anchorNode,it.anchorOffset),ct.collapse(!1),at.removeAllRanges(),at.addRange(ct),at.extend(it.focusNode,it.focusOffset)}}function rf(it,at){var ct=it.display,ht=it.doc;if(at.editorIsHidden)return ma(it),!1;if(!at.force&&at.visible.from>=ct.viewFrom&&at.visible.to<=ct.viewTo&&(ct.updateLineNumbers==null||ct.updateLineNumbers>=ct.viewTo)&&ct.renderedView==ct.view&&cs(it)==0)return!1;us(it)&&(ma(it),at.dims=Ra(it));var pt=ht.first+ht.size,Lt=Math.max(at.visible.from-it.options.viewportMargin,ht.first),Ot=Math.min(pt,at.visible.to+it.options.viewportMargin);ct.viewFrom<Lt&&Lt-ct.viewFrom<20&&(Lt=Math.max(ht.first,ct.viewFrom)),ct.viewTo>Ot&&ct.viewTo-Ot<20&&(Ot=Math.min(pt,ct.viewTo)),cn&&(Lt=Et(it.doc,Lt),Ot=qt(it.doc,Ot));var _t=Lt!=ct.viewFrom||Ot!=ct.viewTo||ct.lastWrapHeight!=at.wrapperHeight||ct.lastWrapWidth!=at.wrapperWidth;la(it,Lt,Ot),ct.viewOffset=de(oi(it.doc,ct.viewFrom)),it.display.mover.style.top=ct.viewOffset+"px";var Ut=cs(it);if(!_t&&Ut==0&&!at.force&&ct.renderedView==ct.view&&(ct.updateLineNumbers==null||ct.updateLineNumbers>=ct.viewTo))return!1;var pe=Gp(it);return Ut>4&&(ct.lineDiv.style.display="none"),fg(it,ct.updateLineNumbers,at.dims),Ut>4&&(ct.lineDiv.style.display=""),ct.renderedView=ct.view,sl(pe),se(ct.cursorDiv),se(ct.selectionDiv),ct.gutters.style.height=ct.sizer.style.minHeight=0,_t&&(ct.lastWrapHeight=at.wrapperHeight,ct.lastWrapWidth=at.wrapperWidth,rs(it,400)),ct.updateLineNumbers=null,!0}function Pa(it,at){for(var ct=at.viewport,ht=!0;;ht=!1){if(!ht||!it.options.lineWrapping||at.oldDisplayWidth==fo(it)){if(ct&&ct.top!=null&&(ct={top:Math.min(it.doc.height+so(it.display)-Ao(it),ct.top)}),at.visible=Lo(it.display,it.doc,ct),at.visible.from>=it.display.viewFrom&&at.visible.to<=it.display.viewTo)break}else ht&&(at.visible=Lo(it.display,it.doc,ct));if(!rf(it,at))break;eo(it);var pt=No(it);za(it),ns(it,pt),vh(it,pt),at.force=!1}at.signal(it,"update",it),(it.display.viewFrom!=it.display.reportedViewFrom||it.display.viewTo!=it.display.reportedViewTo)&&(at.signal(it,"viewportChange",it,it.display.viewFrom,it.display.viewTo),it.display.reportedViewFrom=it.display.viewFrom,it.display.reportedViewTo=it.display.viewTo)}function ph(it,at){var ct=new Xh(it,at);if(rf(it,ct)){eo(it),Pa(it,ct);var ht=No(it);za(it),ns(it,ht),vh(it,ht),ct.finish()}}function fg(it,at,ct){var ht=it.display,pt=it.options.lineNumbers,Lt=ht.lineDiv,Ot=Lt.firstChild;function _t(Yi){var $i=Yi.nextSibling;return ge&&dt&&it.display.currentWheelTarget==Yi?Yi.style.display="none":Yi.parentNode.removeChild(Yi),$i}for(var Ut=ht.view,pe=ht.viewFrom,gn=0;gn<Ut.length;gn++){var Me=Ut[gn];if(!Me.hidden)if(!Me.node||Me.node.parentNode!=Lt){var Qn=Br(it,Me,pe,ct);Lt.insertBefore(Qn,Ot)}else{for(;Ot!=Me.node;)Ot=_t(Ot);var Hn=pt&&at!=null&&at<=pe&&Me.lineNumber;Me.changes&&(mn(Me.changes,"gutter")>-1&&(Hn=!1),Cr(it,Me,pe,ct)),Hn&&(se(Me.lineNumber),Me.lineNumber.appendChild(document.createTextNode(_n(it.options,pe)))),Ot=Me.node.nextSibling}pe+=Me.size}for(;Ot;)Ot=_t(Ot)}function mh(it){var at=it.gutters.offsetWidth;it.sizer.style.marginLeft=at+"px"}function vh(it,at){it.display.sizer.style.minHeight=at.docHeight+"px",it.display.heightForcer.style.top=at.docHeight+"px",it.display.gutters.style.height=at.docHeight+it.display.barHeight+Vr(it)+"px"}function of(it){var at=it.display,ct=at.view;if(!(!at.alignWidgets&&(!at.gutters.firstChild||!it.options.fixedGutter))){for(var ht=hs(at)-at.scroller.scrollLeft+it.doc.scrollLeft,pt=at.gutters.offsetWidth,Lt=ht+"px",Ot=0;Ot<ct.length;Ot++)if(!ct[Ot].hidden){it.options.fixedGutter&&(ct[Ot].gutter&&(ct[Ot].gutter.style.left=Lt),ct[Ot].gutterBackground&&(ct[Ot].gutterBackground.style.left=Lt));var _t=ct[Ot].alignable;if(_t)for(var Ut=0;Ut<_t.length;Ut++)_t[Ut].style.left=Lt}it.options.fixedGutter&&(at.gutters.style.left=ht+pt+"px")}}function us(it){if(!it.options.lineNumbers)return!1;var at=it.doc,ct=_n(it.options,at.first+at.size-1),ht=it.display;if(ct.length!=ht.lineNumChars){var pt=ht.measure.appendChild(Jt("div",[Jt("div",ct)],"CodeMirror-linenumber CodeMirror-gutter-elt")),Lt=pt.firstChild.offsetWidth,Ot=pt.offsetWidth-Lt;return ht.lineGutter.style.width="",ht.lineNumInnerWidth=Math.max(Lt,ht.lineGutter.offsetWidth-Ot)+1,ht.lineNumWidth=ht.lineNumInnerWidth+Ot,ht.lineNumChars=ht.lineNumInnerWidth?ct.length:-1,ht.lineGutter.style.width=ht.lineNumWidth+"px",mh(it.display),!0}return!1}function Cs(it,at){for(var ct=[],ht=!1,pt=0;pt<it.length;pt++){var Lt=it[pt],Ot=null;if(typeof Lt!="string"&&(Ot=Lt.style,Lt=Lt.className),Lt=="CodeMirror-linenumbers")if(at)ht=!0;else continue;ct.push({className:Lt,style:Ot})}return at&&!ht&&ct.push({className:"CodeMirror-linenumbers",style:null}),ct}function _h(it){var at=it.gutters,ct=it.gutterSpecs;se(at),it.lineGutter=null;for(var ht=0;ht<ct.length;++ht){var pt=ct[ht],Lt=pt.className,Ot=pt.style,_t=at.appendChild(Jt("div",null,"CodeMirror-gutter "+Lt));Ot&&(_t.style.cssText=Ot),Lt=="CodeMirror-linenumbers"&&(it.lineGutter=_t,_t.style.width=(it.lineNumWidth||1)+"px")}at.style.display=ct.length?"":"none",mh(it)}function Tl(it){_h(it.display),ha(it),of(it)}function yh(it,at,ct,ht){var pt=this;this.input=ct,pt.scrollbarFiller=Jt("div",null,"CodeMirror-scrollbar-filler"),pt.scrollbarFiller.setAttribute("cm-not-content","true"),pt.gutterFiller=Jt("div",null,"CodeMirror-gutter-filler"),pt.gutterFiller.setAttribute("cm-not-content","true"),pt.lineDiv=Ee("div",null,"CodeMirror-code"),pt.selectionDiv=Jt("div",null,null,"position: relative; z-index: 1"),pt.cursorDiv=Jt("div",null,"CodeMirror-cursors"),pt.measure=Jt("div",null,"CodeMirror-measure"),pt.lineMeasure=Jt("div",null,"CodeMirror-measure"),pt.lineSpace=Ee("div",[pt.measure,pt.lineMeasure,pt.selectionDiv,pt.cursorDiv,pt.lineDiv],null,"position: relative; outline: none");var Lt=Ee("div",[pt.lineSpace],"CodeMirror-lines");pt.mover=Jt("div",[Lt],null,"position: relative"),pt.sizer=Jt("div",[pt.mover],"CodeMirror-sizer"),pt.sizerWidth=null,pt.heightForcer=Jt("div",null,null,"position: absolute; height: "+ii+"px; width: 1px;"),pt.gutters=Jt("div",null,"CodeMirror-gutters"),pt.lineGutter=null,pt.scroller=Jt("div",[pt.sizer,pt.heightForcer,pt.gutters],"CodeMirror-scroll"),pt.scroller.setAttribute("tabIndex","-1"),pt.wrapper=Jt("div",[pt.scrollbarFiller,pt.gutterFiller,pt.scroller],"CodeMirror"),be&&jt<8&&(pt.gutters.style.zIndex=-1,pt.scroller.style.paddingRight=0),!ge&&!(yt&&et)&&(pt.scroller.draggable=!0),it&&(it.appendChild?it.appendChild(pt.wrapper):it(pt.wrapper)),pt.viewFrom=pt.viewTo=at.first,pt.reportedViewFrom=pt.reportedViewTo=at.first,pt.view=[],pt.renderedView=null,pt.externalMeasured=null,pt.viewOffset=0,pt.lastWrapHeight=pt.lastWrapWidth=0,pt.updateLineNumbers=null,pt.nativeBarWidth=pt.barHeight=pt.barWidth=0,pt.scrollbarsClipped=!1,pt.lineNumWidth=pt.lineNumInnerWidth=pt.lineNumChars=null,pt.alignWidgets=!1,pt.cachedCharWidth=pt.cachedTextHeight=pt.cachedPaddingH=null,pt.maxLine=null,pt.maxLineLength=0,pt.maxLineChanged=!1,pt.wheelDX=pt.wheelDY=pt.wheelStartX=pt.wheelStartY=null,pt.shift=!1,pt.selForContextMenu=null,pt.activeTouch=null,pt.gutterSpecs=Cs(ht.gutters,ht.lineNumbers),_h(pt),ct.init(pt)}var Sl=0,os=null;be?os=-.53:yt?os=15:Ce?os=-.7:Re&&(os=-1/3);function wu(it){var at=it.wheelDeltaX,ct=it.wheelDeltaY;return at==null&&it.detail&&it.axis==it.HORIZONTAL_AXIS&&(at=it.detail),ct==null&&it.detail&&it.axis==it.VERTICAL_AXIS?ct=it.detail:ct==null&&(ct=it.wheelDelta),{x:at,y:ct}}function Ol(it){var at=wu(it);return at.x*=os,at.y*=os,at}function Es(it,at){var ct=wu(at),ht=ct.x,pt=ct.y,Lt=it.display,Ot=Lt.scroller,_t=Ot.scrollWidth>Ot.clientWidth,Ut=Ot.scrollHeight>Ot.clientHeight;if(ht&&_t||pt&&Ut){if(pt&&dt&&ge){t:for(var pe=at.target,gn=Lt.view;pe!=Ot;pe=pe.parentNode)for(var Me=0;Me<gn.length;Me++)if(gn[Me].node==pe){it.display.currentWheelTarget=pe;break t}}if(ht&&!yt&&!Mt&&os!=null){pt&&Ut&&ml(it,Math.max(0,Ot.scrollTop+pt*os)),vl(it,Math.max(0,Ot.scrollLeft+ht*os)),(!pt||pt&&Ut)&&yi(at),Lt.wheelStartX=null;return}if(pt&&os!=null){var Qn=pt*os,Hn=it.doc.scrollTop,Yi=Hn+Lt.wrapper.clientHeight;Qn<0?Hn=Math.max(0,Hn+Qn-50):Yi=Math.min(it.doc.height,Yi+Qn+50),ph(it,{top:Hn,bottom:Yi})}Sl<20&&(Lt.wheelStartX==null?(Lt.wheelStartX=Ot.scrollLeft,Lt.wheelStartY=Ot.scrollTop,Lt.wheelDX=ht,Lt.wheelDY=pt,setTimeout(function(){if(Lt.wheelStartX!=null){var $i=Ot.scrollLeft-Lt.wheelStartX,mr=Ot.scrollTop-Lt.wheelStartY,Or=mr&&Lt.wheelDY&&mr/Lt.wheelDY||$i&&Lt.wheelDX&&$i/Lt.wheelDX;Lt.wheelStartX=Lt.wheelStartY=null,Or&&(os=(os*Sl+Or)/(Sl+1),++Sl)}},200)):(Lt.wheelDX+=ht,Lt.wheelDY+=pt))}}var Ul=function(it,at){this.ranges=it,this.primIndex=at};Ul.prototype.primary=function(){return this.ranges[this.primIndex]},Ul.prototype.equals=function(it){if(it==this)return!0;if(it.primIndex!=this.primIndex||it.ranges.length!=this.ranges.length)return!1;for(var at=0;at<this.ranges.length;at++){var ct=this.ranges[at],ht=it.ranges[at];if(!ai(ct.anchor,ht.anchor)||!ai(ct.head,ht.head))return!1}return!0},Ul.prototype.deepCopy=function(){for(var it=[],at=0;at<this.ranges.length;at++)it[at]=new Ca(ni(this.ranges[at].anchor),ni(this.ranges[at].head));return new Ul(it,this.primIndex)},Ul.prototype.somethingSelected=function(){for(var it=0;it<this.ranges.length;it++)if(!this.ranges[it].empty())return!0;return!1},Ul.prototype.contains=function(it,at){at||(at=it);for(var ct=0;ct<this.ranges.length;ct++){var ht=this.ranges[ct];if(Gn(at,ht.from())>=0&&Gn(it,ht.to())<=0)return ct}return-1};var Ca=function(it,at){this.anchor=it,this.head=at};Ca.prototype.from=function(){return xi(this.anchor,this.head)},Ca.prototype.to=function(){return ki(this.anchor,this.head)},Ca.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function au(it,at,ct){var ht=it&&it.options.selectionsMayTouch,pt=at[ct];at.sort(function(Qn,Hn){return Gn(Qn.from(),Hn.from())}),ct=mn(at,pt);for(var Lt=1;Lt<at.length;Lt++){var Ot=at[Lt],_t=at[Lt-1],Ut=Gn(_t.to(),Ot.from());if(ht&&!Ot.empty()?Ut>0:Ut>=0){var pe=xi(_t.from(),Ot.from()),gn=ki(_t.to(),Ot.to()),Me=_t.empty()?Ot.from()==Ot.head:_t.from()==_t.head;Lt<=ct&&--ct,at.splice(--Lt,2,new Ca(Me?gn:pe,Me?pe:gn))}}return new Ul(at,ct)}function qu(it,at){return new Ul([new Ca(it,at||it)],0)}function Sh(it){return it.text?Ke(it.from.line+it.text.length-1,Pe(it.text).length+(it.text.length==1?it.from.ch:0)):it.to}function Jh(it,at){if(Gn(it,at.from)<0)return it;if(Gn(it,at.to)<=0)return Sh(at);var ct=it.line+at.text.length-(at.to.line-at.from.line)-1,ht=it.ch;return it.line==at.to.line&&(ht+=Sh(at).ch-at.to.ch),Ke(ct,ht)}function cc(it,at){for(var ct=[],ht=0;ht<it.sel.ranges.length;ht++){var pt=it.sel.ranges[ht];ct.push(new Ca(Jh(pt.anchor,at),Jh(pt.head,at)))}return au(it.cm,ct,it.sel.primIndex)}function Nd(it,at,ct){return it.line==at.line?Ke(ct.line,it.ch-at.ch+ct.ch):Ke(ct.line+(it.line-at.line),it.ch)}function fc(it,at,ct){for(var ht=[],pt=Ke(it.first,0),Lt=pt,Ot=0;Ot<at.length;Ot++){var _t=at[Ot],Ut=Nd(_t.from,pt,Lt),pe=Nd(Sh(_t),pt,Lt);if(pt=_t.to,Lt=pe,ct=="around"){var gn=it.sel.ranges[Ot],Me=Gn(gn.head,gn.anchor)<0;ht[Ot]=new Ca(Me?pe:Ut,Me?Ut:pe)}else ht[Ot]=new Ca(Ut,Ut)}return new Ul(ht,it.sel.primIndex)}function Xo(it){it.doc.mode=ve(it.options,it.doc.modeOption),gc(it)}function gc(it){it.doc.iter(function(at){at.stateAfter&&(at.stateAfter=null),at.styles&&(at.styles=null)}),it.doc.modeFrontier=it.doc.highlightFrontier=it.doc.first,rs(it,100),it.state.modeGen++,it.curOp&&ha(it)}function gg(it,at){return at.from.ch==0&&at.to.ch==0&&Pe(at.text)==""&&(!it.cm||it.cm.options.wholeLineUpdateBefore)}function af(it,at,ct,ht){function pt(to){return ct?ct[to]:null}function Lt(to,Kr,oo){Ln(to,Kr,oo,ht),Di(to,"change",to,at)}function Ot(to,Kr){for(var oo=[],ko=to;ko<Kr;++ko)oo.push(new tn(pe[ko],pt(ko),ht));return oo}var _t=at.from,Ut=at.to,pe=at.text,gn=oi(it,_t.line),Me=oi(it,Ut.line),Qn=Pe(pe),Hn=pt(pe.length-1),Yi=Ut.line-_t.line;if(at.full)it.insert(0,Ot(0,pe.length)),it.remove(pe.length,it.size-pe.length);else if(gg(it,at)){var $i=Ot(0,pe.length-1);Lt(Me,Me.text,Hn),Yi&&it.remove(_t.line,Yi),$i.length&&it.insert(_t.line,$i)}else if(gn==Me)if(pe.length==1)Lt(gn,gn.text.slice(0,_t.ch)+Qn+gn.text.slice(Ut.ch),Hn);else{var mr=Ot(1,pe.length-1);mr.push(new tn(Qn+gn.text.slice(Ut.ch),Hn,ht)),Lt(gn,gn.text.slice(0,_t.ch)+pe[0],pt(0)),it.insert(_t.line+1,mr)}else if(pe.length==1)Lt(gn,gn.text.slice(0,_t.ch)+pe[0]+Me.text.slice(Ut.ch),pt(0)),it.remove(_t.line+1,Yi);else{Lt(gn,gn.text.slice(0,_t.ch)+pe[0],pt(0)),Lt(Me,Qn+Me.text.slice(Ut.ch),Hn);var Or=Ot(1,pe.length-1);Yi>1&&it.remove(_t.line+1,Yi-1),it.insert(_t.line+1,Or)}Di(it,"change",it,at)}function Pu(it,at,ct){function ht(pt,Lt,Ot){if(pt.linked)for(var _t=0;_t<pt.linked.length;++_t){var Ut=pt.linked[_t];if(Ut.doc!=Lt){var pe=Ot&&Ut.sharedHist;ct&&!pe||(at(Ut.doc,pe),ht(Ut.doc,pt,pe))}}}ht(it,null,!0)}function sf(it,at){if(at.cm)throw new Error("This document is already in use.");it.doc=at,at.cm=it,Qr(it),Xo(it),pc(it),it.options.lineWrapping||Ye(it),it.options.mode=at.modeOption,ha(it)}function pc(it){(it.doc.direction=="rtl"?sn:Ht)(it.display.lineDiv,"CodeMirror-rtl")}function iv(it){lo(it,function(){pc(it),ha(it)})}function Bd(it){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=it||1}function lf(it,at){var ct={from:ni(at.from),to:Sh(at),text:fe(it,at.from,at.to)};return xh(it,ct,at.from.line,at.to.line+1),Pu(it,function(ht){return xh(ht,ct,at.from.line,at.to.line+1)},!0),ct}function Td(it){for(;it.length;){var at=Pe(it);if(at.ranges)it.pop();else break}}function mc(it,at){if(at)return Td(it.done),Pe(it.done);if(it.done.length&&!Pe(it.done).ranges)return Pe(it.done);if(it.done.length>1&&!it.done[it.done.length-2].ranges)return it.done.pop(),Pe(it.done)}function vc(it,at,ct,ht){var pt=it.history;pt.undone.length=0;var Lt=+new Date,Ot,_t;if((pt.lastOp==ht||pt.lastOrigin==at.origin&&at.origin&&(at.origin.charAt(0)=="+"&&pt.lastModTime>Lt-(it.cm?it.cm.options.historyEventDelay:500)||at.origin.charAt(0)=="*"))&&(Ot=mc(pt,pt.lastOp==ht)))_t=Pe(Ot.changes),Gn(at.from,at.to)==0&&Gn(at.from,_t.to)==0?_t.to=Sh(at):Ot.changes.push(lf(it,at));else{var Ut=Pe(pt.done);for((!Ut||!Ut.ranges)&&Od(it.sel,pt.done),Ot={changes:[lf(it,at)],generation:pt.generation},pt.done.push(Ot);pt.done.length>pt.undoDepth;)pt.done.shift(),pt.done[0].ranges||pt.done.shift()}pt.done.push(ct),pt.generation=++pt.maxGeneration,pt.lastModTime=pt.lastSelTime=Lt,pt.lastOp=pt.lastSelOp=ht,pt.lastOrigin=pt.lastSelOrigin=at.origin,_t||qe(it,"historyAdded")}function pg(it,at,ct,ht){var pt=at.charAt(0);return pt=="*"||pt=="+"&&ct.ranges.length==ht.ranges.length&&ct.somethingSelected()==ht.somethingSelected()&&new Date-it.history.lastSelTime<=(it.cm?it.cm.options.historyEventDelay:500)}function yc(it,at,ct,ht){var pt=it.history,Lt=ht&&ht.origin;ct==pt.lastSelOp||Lt&&pt.lastSelOrigin==Lt&&(pt.lastModTime==pt.lastSelTime&&pt.lastOrigin==Lt||pg(it,Lt,Pe(pt.done),at))?pt.done[pt.done.length-1]=at:Od(at,pt.done),pt.lastSelTime=+new Date,pt.lastSelOrigin=Lt,pt.lastSelOp=ct,ht&&ht.clearRedo!==!1&&Td(pt.undone)}function Od(it,at){var ct=Pe(at);ct&&ct.ranges&&ct.equals(it)||at.push(it)}function xh(it,at,ct,ht){var pt=at["spans_"+it.id],Lt=0;it.iter(Math.max(it.first,ct),Math.min(it.first+it.size,ht),function(Ot){Ot.markedSpans&&((pt||(pt=at["spans_"+it.id]={}))[Lt]=Ot.markedSpans),++Lt})}function $s(it){if(!it)return null;for(var at,ct=0;ct<it.length;++ct)it[ct].marker.explicitlyCleared?at||(at=it.slice(0,ct)):at&&at.push(it[ct]);return at?at.length?at:null:it}function Bu(it,at){var ct=at["spans_"+it.id];if(!ct)return null;for(var ht=[],pt=0;pt<at.text.length;++pt)ht.push($s(ct[pt]));return ht}function uf(it,at){var ct=Bu(it,at),ht=io(it,at);if(!ct)return ht;if(!ht)return ct;for(var pt=0;pt<ct.length;++pt){var Lt=ct[pt],Ot=ht[pt];if(Lt&&Ot)t:for(var _t=0;_t<Ot.length;++_t){for(var Ut=Ot[_t],pe=0;pe<Lt.length;++pe)if(Lt[pe].marker==Ut.marker)continue t;Lt.push(Ut)}else Ot&&(ct[pt]=Ot)}return ct}function $u(it,at,ct){for(var ht=[],pt=0;pt<it.length;++pt){var Lt=it[pt];if(Lt.ranges){ht.push(ct?Ul.prototype.deepCopy.call(Lt):Lt);continue}var Ot=Lt.changes,_t=[];ht.push({changes:_t});for(var Ut=0;Ut<Ot.length;++Ut){var pe=Ot[Ut],gn=void 0;if(_t.push({from:pe.from,to:pe.to,text:pe.text}),at)for(var Me in pe)(gn=Me.match(/^spans_(\d+)$/))&&mn(at,Number(gn[1]))>-1&&(Pe(_t)[Me]=pe[Me],delete pe[Me])}}return ht}function hf(it,at,ct,ht){if(ht){var pt=it.anchor;if(ct){var Lt=Gn(at,pt)<0;Lt!=Gn(ct,pt)<0?(pt=at,at=ct):Lt!=Gn(at,ct)<0&&(at=ct)}return new Ca(pt,at)}else return new Ca(ct||at,at)}function df(it,at,ct,ht,pt){pt==null&&(pt=it.cm&&(it.cm.display.shift||it.extend)),Ks(it,new Ul([hf(it.sel.primary(),at,ct,pt)],0),ht)}function Kp(it,at,ct){for(var ht=[],pt=it.cm&&(it.cm.display.shift||it.extend),Lt=0;Lt<it.sel.ranges.length;Lt++)ht[Lt]=hf(it.sel.ranges[Lt],at[Lt],null,pt);var Ot=au(it.cm,ht,it.sel.primIndex);Ks(it,Ot,ct)}function wh(it,at,ct,ht){var pt=it.sel.ranges.slice(0);pt[at]=ct,Ks(it,au(it.cm,pt,it.sel.primIndex),ht)}function Qh(it,at,ct,ht){Ks(it,qu(at,ct),ht)}function Yp(it,at,ct){var ht={ranges:at.ranges,update:function(pt){this.ranges=[];for(var Lt=0;Lt<pt.length;Lt++)this.ranges[Lt]=new Ca(Li(it,pt[Lt].anchor),Li(it,pt[Lt].head))},origin:ct&&ct.origin};return qe(it,"beforeSelectionChange",it,ht),it.cm&&qe(it.cm,"beforeSelectionChange",it.cm,ht),ht.ranges!=at.ranges?au(it.cm,ht.ranges,ht.ranges.length-1):at}function cf(it,at,ct){var ht=it.history.done,pt=Pe(ht);pt&&pt.ranges?(ht[ht.length-1]=at,qh(it,at,ct)):Ks(it,at,ct)}function Ks(it,at,ct){qh(it,at,ct),yc(it,it.sel,it.cm?it.cm.curOp.id:NaN,ct)}function qh(it,at,ct){(Yn(it,"beforeSelectionChange")||it.cm&&Yn(it.cm,"beforeSelectionChange"))&&(at=Yp(it,at,ct));var ht=ct&&ct.bias||(Gn(at.primary().head,it.sel.primary().head)<0?-1:1);mg(it,xc(it,at,ht,!0)),!(ct&&ct.scroll===!1)&&it.cm&&Vs(it.cm)}function mg(it,at){at.equals(it.sel)||(it.sel=at,it.cm&&(it.cm.curOp.updateInput=1,it.cm.curOp.selectionChanged=!0,bn(it.cm)),Di(it,"cursorActivity",it))}function Sc(it){mg(it,xc(it,it.sel,null,!1))}function xc(it,at,ct,ht){for(var pt,Lt=0;Lt<at.ranges.length;Lt++){var Ot=at.ranges[Lt],_t=at.ranges.length==it.sel.ranges.length&&it.sel.ranges[Lt],Ut=wc(it,Ot.anchor,_t&&_t.anchor,ct,ht),pe=wc(it,Ot.head,_t&&_t.head,ct,ht);(pt||Ut!=Ot.anchor||pe!=Ot.head)&&(pt||(pt=at.ranges.slice(0,Lt)),pt[Lt]=new Ca(Ut,pe))}return pt?au(it.cm,pt,at.primIndex):at}function th(it,at,ct,ht,pt){var Lt=oi(it,at.line);if(Lt.markedSpans)for(var Ot=0;Ot<Lt.markedSpans.length;++Ot){var _t=Lt.markedSpans[Ot],Ut=_t.marker,pe="selectLeft"in Ut?!Ut.selectLeft:Ut.inclusiveLeft,gn="selectRight"in Ut?!Ut.selectRight:Ut.inclusiveRight;if((_t.from==null||(pe?_t.from<=at.ch:_t.from<at.ch))&&(_t.to==null||(gn?_t.to>=at.ch:_t.to>at.ch))){if(pt&&(qe(Ut,"beforeCursorEnter"),Ut.explicitlyCleared))if(Lt.markedSpans){--Ot;continue}else break;if(!Ut.atomic)continue;if(ct){var Me=Ut.find(ht<0?1:-1),Qn=void 0;if((ht<0?gn:pe)&&(Me=vg(it,Me,-ht,Me&&Me.line==at.line?Lt:null)),Me&&Me.line==at.line&&(Qn=Gn(Me,ct))&&(ht<0?Qn<0:Qn>0))return th(it,Me,at,ht,pt)}var Hn=Ut.find(ht<0?-1:1);return(ht<0?pe:gn)&&(Hn=vg(it,Hn,ht,Hn.line==at.line?Lt:null)),Hn?th(it,Hn,at,ht,pt):null}}return at}function wc(it,at,ct,ht,pt){var Lt=ht||1,Ot=th(it,at,ct,Lt,pt)||!pt&&th(it,at,ct,Lt,!0)||th(it,at,ct,-Lt,pt)||!pt&&th(it,at,ct,-Lt,!0);return Ot||(it.cantEdit=!0,Ke(it.first,0))}function vg(it,at,ct,ht){return ct<0&&at.ch==0?at.line>it.first?Li(it,Ke(at.line-1)):null:ct>0&&at.ch==(ht||oi(it,at.line)).text.length?at.line<it.first+it.size-1?Ke(at.line+1,0):null:new Ke(at.line,at.ch+ct)}function as(it){it.setSelection(Ke(it.firstLine(),0),Ke(it.lastLine()),ln)}function Pc(it,at,ct){var ht={canceled:!1,from:at.from,to:at.to,text:at.text,origin:at.origin,cancel:function(){return ht.canceled=!0}};return ct&&(ht.update=function(pt,Lt,Ot,_t){pt&&(ht.from=Li(it,pt)),Lt&&(ht.to=Li(it,Lt)),Ot&&(ht.text=Ot),_t!==void 0&&(ht.origin=_t)}),qe(it,"beforeChange",it,ht),it.cm&&qe(it.cm,"beforeChange",it.cm,ht),ht.canceled?(it.cm&&(it.cm.curOp.updateInput=2),null):{from:ht.from,to:ht.to,text:ht.text,origin:ht.origin}}function Ph(it,at,ct){if(it.cm){if(!it.cm.curOp)return po(it.cm,Ph)(it,at,ct);if(it.cm.state.suppressEdits)return}if(!((Yn(it,"beforeChange")||it.cm&&Yn(it.cm,"beforeChange"))&&(at=Pc(it,at,!0),!at))){var ht=Hi&&!ct&&Rn(it,at.from,at.to);if(ht)for(var pt=ht.length-1;pt>=0;--pt)$h(it,{from:ht[pt].from,to:ht[pt].to,text:pt?[""]:at.text,origin:at.origin});else $h(it,at)}}function $h(it,at){if(!(at.text.length==1&&at.text[0]==""&&Gn(at.from,at.to)==0)){var ct=cc(it,at);vc(it,at,ct,it.cm?it.cm.curOp.id:NaN),Id(it,at,ct,io(it,at));var ht=[];Pu(it,function(pt,Lt){!Lt&&mn(ht,pt.history)==-1&&(Sg(pt.history,at),ht.push(pt.history)),Id(pt,at,null,io(pt,at))})}}function Cc(it,at,ct){var ht=it.cm&&it.cm.state.suppressEdits;if(!(ht&&!ct)){for(var pt=it.history,Lt,Ot=it.sel,_t=at=="undo"?pt.done:pt.undone,Ut=at=="undo"?pt.undone:pt.done,pe=0;pe<_t.length&&(Lt=_t[pe],!(ct?Lt.ranges&&!Lt.equals(it.sel):!Lt.ranges));pe++);if(pe!=_t.length){for(pt.lastOrigin=pt.lastSelOrigin=null;;)if(Lt=_t.pop(),Lt.ranges){if(Od(Lt,Ut),ct&&!Lt.equals(it.sel)){Ks(it,Lt,{clearRedo:!1});return}Ot=Lt}else if(ht){_t.push(Lt);return}else break;var gn=[];Od(Ot,Ut),Ut.push({changes:gn,generation:pt.generation}),pt.generation=Lt.generation||++pt.maxGeneration;for(var Me=Yn(it,"beforeChange")||it.cm&&Yn(it.cm,"beforeChange"),Qn=function($i){var mr=Lt.changes[$i];if(mr.origin=at,Me&&!Pc(it,mr,!1))return _t.length=0,{};gn.push(lf(it,mr));var Or=$i?cc(it,mr):Pe(_t);Id(it,mr,Or,uf(it,mr)),!$i&&it.cm&&it.cm.scrollIntoView({from:mr.from,to:Sh(mr)});var to=[];Pu(it,function(Kr,oo){!oo&&mn(to,Kr.history)==-1&&(Sg(Kr.history,mr),to.push(Kr.history)),Id(Kr,mr,null,uf(Kr,mr))})},Hn=Lt.changes.length-1;Hn>=0;--Hn){var Yi=Qn(Hn);if(Yi)return Yi.v}}}}function yg(it,at){if(at!=0&&(it.first+=at,it.sel=new Ul(Ai(it.sel.ranges,function(pt){return new Ca(Ke(pt.anchor.line+at,pt.anchor.ch),Ke(pt.head.line+at,pt.head.ch))}),it.sel.primIndex),it.cm)){ha(it.cm,it.first,it.first-at,at);for(var ct=it.cm.display,ht=ct.viewFrom;ht<ct.viewTo;ht++)So(it.cm,ht,"gutter")}}function Id(it,at,ct,ht){if(it.cm&&!it.cm.curOp)return po(it.cm,Id)(it,at,ct,ht);if(at.to.line<it.first){yg(it,at.text.length-1-(at.to.line-at.from.line));return}if(!(at.from.line>it.lastLine())){if(at.from.line<it.first){var pt=at.text.length-1-(it.first-at.from.line);yg(it,pt),at={from:Ke(it.first,0),to:Ke(at.to.line+pt,at.to.ch),text:[Pe(at.text)],origin:at.origin}}var Lt=it.lastLine();at.to.line>Lt&&(at={from:at.from,to:Ke(Lt,oi(it,Lt).text.length),text:[at.text[0]],origin:at.origin}),at.removed=fe(it,at.from,at.to),ct||(ct=cc(it,at)),it.cm?Up(it.cm,at,ht):af(it,at,ht),qh(it,ct,ln),it.cantEdit&&wc(it,Ke(it.firstLine(),0))&&(it.cantEdit=!1)}}function Up(it,at,ct){var ht=it.doc,pt=it.display,Lt=at.from,Ot=at.to,_t=!1,Ut=Lt.line;it.options.lineWrapping||(Ut=ee(_e(oi(ht,Lt.line))),ht.iter(Ut,Ot.line+1,function(Hn){if(Hn==pt.maxLine)return _t=!0,!0})),ht.sel.contains(at.from,at.to)>-1&&bn(it),af(ht,at,ct,ua(it)),it.options.lineWrapping||(ht.iter(Ut,Lt.line+at.text.length,function(Hn){var Yi=je(Hn);Yi>pt.maxLineLength&&(pt.maxLine=Hn,pt.maxLineLength=Yi,pt.maxLineChanged=!0,_t=!1)}),_t&&(it.curOp.updateMaxLine=!0)),er(ht,Lt.line),rs(it,400);var pe=at.text.length-(Ot.line-Lt.line)-1;at.full?ha(it):Lt.line==Ot.line&&at.text.length==1&&!gg(it.doc,at)?So(it,Lt.line,"text"):ha(it,Lt.line,Ot.line+1,pe);var gn=Yn(it,"changes"),Me=Yn(it,"change");if(Me||gn){var Qn={from:Lt,to:Ot,text:at.text,removed:at.removed,origin:at.origin};Me&&Di(it,"change",it,Qn),gn&&(it.curOp.changeObjs||(it.curOp.changeObjs=[])).push(Qn)}it.display.selForContextMenu=null}function td(it,at,ct,ht,pt){var Lt;ht||(ht=ct),Gn(ht,ct)<0&&(Lt=[ht,ct],ct=Lt[0],ht=Lt[1]),typeof at=="string"&&(at=it.splitLines(at)),Ph(it,{from:ct,to:ht,text:at,origin:pt})}function Xl(it,at,ct,ht){ct<it.line?it.line+=ht:at<it.line&&(it.line=at,it.ch=0)}function Xp(it,at,ct,ht){for(var pt=0;pt<it.length;++pt){var Lt=it[pt],Ot=!0;if(Lt.ranges){Lt.copied||(Lt=it[pt]=Lt.deepCopy(),Lt.copied=!0);for(var _t=0;_t<Lt.ranges.length;_t++)Xl(Lt.ranges[_t].anchor,at,ct,ht),Xl(Lt.ranges[_t].head,at,ct,ht);continue}for(var Ut=0;Ut<Lt.changes.length;++Ut){var pe=Lt.changes[Ut];if(ct<pe.from.line)pe.from=Ke(pe.from.line+ht,pe.from.ch),pe.to=Ke(pe.to.line+ht,pe.to.ch);else if(at<=pe.to.line){Ot=!1;break}}Ot||(it.splice(0,pt+1),pt=0)}}function Sg(it,at){var ct=at.from.line,ht=at.to.line,pt=at.text.length-(ht-ct)-1;Xp(it.done,ct,ht,pt),Xp(it.undone,ct,ht,pt)}function ed(it,at,ct,ht){var pt=at,Lt=at;return typeof at=="number"?Lt=oi(it,gi(it,at)):pt=ee(at),pt==null?null:(ht(Lt,pt)&&it.cm&&So(it.cm,pt,ct),Lt)}function Rd(it){this.lines=it,this.parent=null;for(var at=0,ct=0;ct<it.length;++ct)it[ct].parent=this,at+=it[ct].height;this.height=at}Rd.prototype={chunkSize:function(){return this.lines.length},removeInner:function(it,at){for(var ct=it,ht=it+at;ct<ht;++ct){var pt=this.lines[ct];this.height-=pt.height,Bn(pt),Di(pt,"delete")}this.lines.splice(it,at)},collapse:function(it){it.push.apply(it,this.lines)},insertInner:function(it,at,ct){this.height+=ct,this.lines=this.lines.slice(0,it).concat(at).concat(this.lines.slice(it));for(var ht=0;ht<at.length;++ht)at[ht].parent=this},iterN:function(it,at,ct){for(var ht=it+at;it<ht;++it)if(ct(this.lines[it]))return!0}};function Xa(it){this.children=it;for(var at=0,ct=0,ht=0;ht<it.length;++ht){var pt=it[ht];at+=pt.chunkSize(),ct+=pt.height,pt.parent=this}this.size=at,this.height=ct,this.parent=null}Xa.prototype={chunkSize:function(){return this.size},removeInner:function(it,at){this.size-=at;for(var ct=0;ct<this.children.length;++ct){var ht=this.children[ct],pt=ht.chunkSize();if(it<pt){var Lt=Math.min(at,pt-it),Ot=ht.height;if(ht.removeInner(it,Lt),this.height-=Ot-ht.height,pt==Lt&&(this.children.splice(ct--,1),ht.parent=null),(at-=Lt)==0)break;it=0}else it-=pt}if(this.size-at<25&&(this.children.length>1||!(this.children[0]instanceof Rd))){var _t=[];this.collapse(_t),this.children=[new Rd(_t)],this.children[0].parent=this}},collapse:function(it){for(var at=0;at<this.children.length;++at)this.children[at].collapse(it)},insertInner:function(it,at,ct){this.size+=at.length,this.height+=ct;for(var ht=0;ht<this.children.length;++ht){var pt=this.children[ht],Lt=pt.chunkSize();if(it<=Lt){if(pt.insertInner(it,at,ct),pt.lines&&pt.lines.length>50){for(var Ot=pt.lines.length%25+25,_t=Ot;_t<pt.lines.length;){var Ut=new Rd(pt.lines.slice(_t,_t+=25));pt.height-=Ut.height,this.children.splice(++ht,0,Ut),Ut.parent=this}pt.lines=pt.lines.slice(0,Ot),this.maybeSpill()}break}it-=Lt}},maybeSpill:function(){if(!(this.children.length<=10)){var it=this;do{var at=it.children.splice(it.children.length-5,5),ct=new Xa(at);if(it.parent){it.size-=ct.size,it.height-=ct.height;var pt=mn(it.parent.children,it);it.parent.children.splice(pt+1,0,ct)}else{var ht=new Xa(it.children);ht.parent=it,it.children=[ht,ct],it=ht}ct.parent=it.parent}while(it.children.length>10);it.parent.maybeSpill()}},iterN:function(it,at,ct){for(var ht=0;ht<this.children.length;++ht){var pt=this.children[ht],Lt=pt.chunkSize();if(it<Lt){var Ot=Math.min(at,Lt-it);if(pt.iterN(it,Ot,ct))return!0;if((at-=Ot)==0)break;it=0}else it-=Lt}}};var eh=function(it,at,ct){if(ct)for(var ht in ct)ct.hasOwnProperty(ht)&&(this[ht]=ct[ht]);this.doc=it,this.node=at};eh.prototype.clear=function(){var it=this.doc.cm,at=this.line.widgets,ct=this.line,ht=ee(ct);if(!(ht==null||!at)){for(var pt=0;pt<at.length;++pt)at[pt]==this&&at.splice(pt--,1);at.length||(ct.widgets=null);var Lt=Yr(this);hi(ct,Math.max(0,ct.height-Lt)),it&&(lo(it,function(){_p(it,ct,-Lt),So(it,ht,"widget")}),Di(it,"lineWidgetCleared",it,this,ht))}},eh.prototype.changed=function(){var it=this,at=this.height,ct=this.doc.cm,ht=this.line;this.height=null;var pt=Yr(this)-at;pt&&(zt(this.doc,ht)||hi(ht,ht.height+pt),ct&&lo(ct,function(){ct.curOp.forceUpdate=!0,_p(ct,ht,pt),Di(ct,"lineWidgetChanged",ct,it,ee(ht))}))},ti(eh);function _p(it,at,ct){de(at)<(it.curOp&&it.curOp.scrollTop||it.doc.scrollTop)&&Su(it,ct)}function ff(it,at,ct,ht){var pt=new eh(it,ct,ht),Lt=it.cm;return Lt&&pt.noHScroll&&(Lt.display.alignWidgets=!0),ed(it,at,"widget",function(Ot){var _t=Ot.widgets||(Ot.widgets=[]);if(pt.insertAt==null?_t.push(pt):_t.splice(Math.min(_t.length-1,Math.max(0,pt.insertAt)),0,pt),pt.line=Ot,Lt&&!zt(it,Ot)){var Ut=de(Ot)<it.scrollTop;hi(Ot,Ot.height+Yr(pt)),Ut&&Su(Lt,pt.height),Lt.curOp.forceUpdate=!0}return!0}),Lt&&Di(Lt,"lineWidgetAdded",Lt,pt,typeof at=="number"?at:ee(at)),pt}var Jp=0,Qe=function(it,at){this.lines=[],this.type=at,this.doc=it,this.id=++Jp};Qe.prototype.clear=function(){if(!this.explicitlyCleared){var it=this.doc.cm,at=it&&!it.curOp;if(at&&xo(it),Yn(this,"clear")){var ct=this.find();ct&&Di(this,"clear",ct.from,ct.to)}for(var ht=null,pt=null,Lt=0;Lt<this.lines.length;++Lt){var Ot=this.lines[Lt],_t=Xi(Ot.markedSpans,this);it&&!this.collapsed?So(it,ee(Ot),"text"):it&&(_t.to!=null&&(pt=ee(Ot)),_t.from!=null&&(ht=ee(Ot))),Ot.markedSpans=Sr(Ot.markedSpans,_t),_t.from==null&&this.collapsed&&!zt(this.doc,Ot)&&it&&hi(Ot,xa(it.display))}if(it&&this.collapsed&&!it.options.lineWrapping)for(var Ut=0;Ut<this.lines.length;++Ut){var pe=_e(this.lines[Ut]),gn=je(pe);gn>it.display.maxLineLength&&(it.display.maxLine=pe,it.display.maxLineLength=gn,it.display.maxLineChanged=!0)}ht!=null&&it&&this.collapsed&&ha(it,ht,pt+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,it&&Sc(it.doc)),it&&Di(it,"markerCleared",it,this,ht,pt),at&&Ua(it),this.parent&&this.parent.clear()}},Qe.prototype.find=function(it,at){it==null&&this.type=="bookmark"&&(it=1);for(var ct,ht,pt=0;pt<this.lines.length;++pt){var Lt=this.lines[pt],Ot=Xi(Lt.markedSpans,this);if(Ot.from!=null&&(ct=Ke(at?Lt:ee(Lt),Ot.from),it==-1))return ct;if(Ot.to!=null&&(ht=Ke(at?Lt:ee(Lt),Ot.to),it==1))return ht}return ct&&{from:ct,to:ht}},Qe.prototype.changed=function(){var it=this,at=this.find(-1,!0),ct=this,ht=this.doc.cm;!at||!ht||lo(ht,function(){var pt=at.line,Lt=ee(at.line),Ot=ra(ht,Lt);if(Ot&&(ya(Ot),ht.curOp.selectionChanged=ht.curOp.forceUpdate=!0),ht.curOp.updateMaxLine=!0,!zt(ct.doc,pt)&&ct.height!=null){var _t=ct.height;ct.height=null;var Ut=Yr(ct)-_t;Ut&&hi(pt,pt.height+Ut)}Di(ht,"markerChanged",ht,it)})},Qe.prototype.attachLine=function(it){if(!this.lines.length&&this.doc.cm){var at=this.doc.cm.curOp;(!at.maybeHiddenMarkers||mn(at.maybeHiddenMarkers,this)==-1)&&(at.maybeUnhiddenMarkers||(at.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(it)},Qe.prototype.detachLine=function(it){if(this.lines.splice(mn(this.lines,it),1),!this.lines.length&&this.doc.cm){var at=this.doc.cm.curOp;(at.maybeHiddenMarkers||(at.maybeHiddenMarkers=[])).push(this)}},ti(Qe);function nd(it,at,ct,ht,pt){if(ht&&ht.shared)return Qp(it,at,ct,ht,pt);if(it.cm&&!it.cm.curOp)return po(it.cm,nd)(it,at,ct,ht,pt);var Lt=new Qe(it,pt),Ot=Gn(at,ct);if(ht&&an(ht,Lt,!1),Ot>0||Ot==0&&Lt.clearWhenEmpty!==!1)return Lt;if(Lt.replacedWith&&(Lt.collapsed=!0,Lt.widgetNode=Ee("span",[Lt.replacedWith],"CodeMirror-widget"),ht.handleMouseEvents||Lt.widgetNode.setAttribute("cm-ignore-events","true"),ht.insertLeft&&(Lt.widgetNode.insertLeft=!0)),Lt.collapsed){if(He(it,at.line,at,ct,Lt)||at.line!=ct.line&&He(it,ct.line,at,ct,Lt))throw new Error("Inserting collapsed marker partially overlapping an existing one");xn()}Lt.addToHistory&&vc(it,{from:at,to:ct,origin:"markText"},it.sel,NaN);var _t=at.line,Ut=it.cm,pe;if(it.iter(_t,ct.line+1,function(Me){Ut&&Lt.collapsed&&!Ut.options.lineWrapping&&_e(Me)==Ut.display.maxLine&&(pe=!0),Lt.collapsed&&_t!=at.line&&hi(Me,0),ao(Me,new wi(Lt,_t==at.line?at.ch:null,_t==ct.line?ct.ch:null)),++_t}),Lt.collapsed&&it.iter(at.line,ct.line+1,function(Me){zt(it,Me)&&hi(Me,0)}),Lt.clearOnEnter&&An(Lt,"beforeCursorEnter",function(){return Lt.clear()}),Lt.readOnly&&(lr(),(it.history.done.length||it.history.undone.length)&&it.clearHistory()),Lt.collapsed&&(Lt.id=++Jp,Lt.atomic=!0),Ut){if(pe&&(Ut.curOp.updateMaxLine=!0),Lt.collapsed)ha(Ut,at.line,ct.line+1);else if(Lt.className||Lt.startStyle||Lt.endStyle||Lt.css||Lt.attributes||Lt.title)for(var gn=at.line;gn<=ct.line;gn++)So(Ut,gn,"text");Lt.atomic&&Sc(Ut.doc),Di(Ut,"markerAdded",Ut,Lt)}return Lt}var Tu=function(it,at){this.markers=it,this.primary=at;for(var ct=0;ct<it.length;++ct)it[ct].parent=this};Tu.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var it=0;it<this.markers.length;++it)this.markers[it].clear();Di(this,"clear")}},Tu.prototype.find=function(it,at){return this.primary.find(it,at)},ti(Tu);function Qp(it,at,ct,ht,pt){ht=an(ht),ht.shared=!1;var Lt=[nd(it,at,ct,ht,pt)],Ot=Lt[0],_t=ht.widgetNode;return Pu(it,function(Ut){_t&&(ht.widgetNode=_t.cloneNode(!0)),Lt.push(nd(Ut,Li(Ut,at),Li(Ut,ct),ht,pt));for(var pe=0;pe<Ut.linked.length;++pe)if(Ut.linked[pe].isParent)return;Ot=Pe(Lt)}),new Tu(Lt,Ot)}function xg(it){return it.findMarks(Ke(it.first,0),it.clipPos(Ke(it.lastLine())),function(at){return at.parent})}function qp(it,at){for(var ct=0;ct<at.length;ct++){var ht=at[ct],pt=ht.find(),Lt=it.clipPos(pt.from),Ot=it.clipPos(pt.to);if(Gn(Lt,Ot)){var _t=nd(it,Lt,Ot,ht.primary,ht.primary.type);ht.markers.push(_t),_t.parent=ht}}}function wg(it){for(var at=function(ht){var pt=it[ht],Lt=[pt.primary.doc];Pu(pt.primary.doc,function(Ut){return Lt.push(Ut)});for(var Ot=0;Ot<pt.markers.length;Ot++){var _t=pt.markers[Ot];mn(Lt,_t.doc)==-1&&(_t.parent=null,pt.markers.splice(Ot--,1))}},ct=0;ct<it.length;ct++)at(ct)}var rv=0,Is=function(it,at,ct,ht,pt){if(!(this instanceof Is))return new Is(it,at,ct,ht,pt);ct==null&&(ct=0),Xa.call(this,[new Rd([new tn("",null)])]),this.first=ct,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=ct;var Lt=Ke(ct,0);this.sel=qu(Lt),this.history=new Bd(null),this.id=++rv,this.modeOption=at,this.lineSep=ht,this.direction=pt=="rtl"?"rtl":"ltr",this.extend=!1,typeof it=="string"&&(it=this.splitLines(it)),af(this,{from:Lt,to:Lt,text:it}),Ks(this,qu(Lt),ln)};Is.prototype=At(Xa.prototype,{constructor:Is,iter:function(it,at,ct){ct?this.iterN(it-this.first,at-it,ct):this.iterN(this.first,this.first+this.size,it)},insert:function(it,at){for(var ct=0,ht=0;ht<at.length;++ht)ct+=at[ht].height;this.insertInner(it-this.first,at,ct)},remove:function(it,at){this.removeInner(it-this.first,at)},getValue:function(it){var at=Te(this,this.first,this.first+this.size);return it===!1?at:at.join(it||this.lineSeparator())},setValue:ia(function(it){var at=Ke(this.first,0),ct=this.first+this.size-1;Ph(this,{from:at,to:Ke(ct,oi(this,ct).text.length),text:this.splitLines(it),origin:"setValue",full:!0},!0),this.cm&&Yl(this.cm,0,0),Ks(this,qu(at),ln)}),replaceRange:function(it,at,ct,ht){at=Li(this,at),ct=ct?Li(this,ct):at,td(this,it,at,ct,ht)},getRange:function(it,at,ct){var ht=fe(this,Li(this,it),Li(this,at));return ct===!1?ht:ht.join(ct||this.lineSeparator())},getLine:function(it){var at=this.getLineHandle(it);return at&&at.text},getLineHandle:function(it){if(Vn(this,it))return oi(this,it)},getLineNumber:function(it){return ee(it)},getLineHandleVisualStart:function(it){return typeof it=="number"&&(it=oi(this,it)),_e(it)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(it){return Li(this,it)},getCursor:function(it){var at=this.sel.primary(),ct;return it==null||it=="head"?ct=at.head:it=="anchor"?ct=at.anchor:it=="end"||it=="to"||it===!1?ct=at.to():ct=at.from(),ct},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:ia(function(it,at,ct){Qh(this,Li(this,typeof it=="number"?Ke(it,at||0):it),null,ct)}),setSelection:ia(function(it,at,ct){Qh(this,Li(this,it),Li(this,at||it),ct)}),extendSelection:ia(function(it,at,ct){df(this,Li(this,it),at&&Li(this,at),ct)}),extendSelections:ia(function(it,at){Kp(this,tr(this,it),at)}),extendSelectionsBy:ia(function(it,at){var ct=Ai(this.sel.ranges,it);Kp(this,tr(this,ct),at)}),setSelections:ia(function(it,at,ct){if(it.length){for(var ht=[],pt=0;pt<it.length;pt++)ht[pt]=new Ca(Li(this,it[pt].anchor),Li(this,it[pt].head));at==null&&(at=Math.min(it.length-1,this.sel.primIndex)),Ks(this,au(this.cm,ht,at),ct)}}),addSelection:ia(function(it,at,ct){var ht=this.sel.ranges.slice(0);ht.push(new Ca(Li(this,it),Li(this,at||it))),Ks(this,au(this.cm,ht,ht.length-1),ct)}),getSelection:function(it){for(var at=this.sel.ranges,ct,ht=0;ht<at.length;ht++){var pt=fe(this,at[ht].from(),at[ht].to());ct=ct?ct.concat(pt):pt}return it===!1?ct:ct.join(it||this.lineSeparator())},getSelections:function(it){for(var at=[],ct=this.sel.ranges,ht=0;ht<ct.length;ht++){var pt=fe(this,ct[ht].from(),ct[ht].to());it!==!1&&(pt=pt.join(it||this.lineSeparator())),at[ht]=pt}return at},replaceSelection:function(it,at,ct){for(var ht=[],pt=0;pt<this.sel.ranges.length;pt++)ht[pt]=it;this.replaceSelections(ht,at,ct||"+input")},replaceSelections:ia(function(it,at,ct){for(var ht=[],pt=this.sel,Lt=0;Lt<pt.ranges.length;Lt++){var Ot=pt.ranges[Lt];ht[Lt]={from:Ot.from(),to:Ot.to(),text:this.splitLines(it[Lt]),origin:ct}}for(var _t=at&&at!="end"&&fc(this,ht,at),Ut=ht.length-1;Ut>=0;Ut--)Ph(this,ht[Ut]);_t?cf(this,_t):this.cm&&Vs(this.cm)}),undo:ia(function(){Cc(this,"undo")}),redo:ia(function(){Cc(this,"redo")}),undoSelection:ia(function(){Cc(this,"undo",!0)}),redoSelection:ia(function(){Cc(this,"redo",!0)}),setExtending:function(it){this.extend=it},getExtending:function(){return this.extend},historySize:function(){for(var it=this.history,at=0,ct=0,ht=0;ht<it.done.length;ht++)it.done[ht].ranges||++at;for(var pt=0;pt<it.undone.length;pt++)it.undone[pt].ranges||++ct;return{undo:at,redo:ct}},clearHistory:function(){var it=this;this.history=new Bd(this.history.maxGeneration),Pu(this,function(at){return at.history=it.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(it){return it&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(it){return this.history.generation==(it||this.cleanGeneration)},getHistory:function(){return{done:$u(this.history.done),undone:$u(this.history.undone)}},setHistory:function(it){var at=this.history=new Bd(this.history.maxGeneration);at.done=$u(it.done.slice(0),null,!0),at.undone=$u(it.undone.slice(0),null,!0)},setGutterMarker:ia(function(it,at,ct){return ed(this,it,"gutter",function(ht){var pt=ht.gutterMarkers||(ht.gutterMarkers={});return pt[at]=ct,!ct&&kt(pt)&&(ht.gutterMarkers=null),!0})}),clearGutter:ia(function(it){var at=this;this.iter(function(ct){ct.gutterMarkers&&ct.gutterMarkers[it]&&ed(at,ct,"gutter",function(){return ct.gutterMarkers[it]=null,kt(ct.gutterMarkers)&&(ct.gutterMarkers=null),!0})})}),lineInfo:function(it){var at;if(typeof it=="number"){if(!Vn(this,it)||(at=it,it=oi(this,it),!it))return null}else if(at=ee(it),at==null)return null;return{line:at,handle:it,text:it.text,gutterMarkers:it.gutterMarkers,textClass:it.textClass,bgClass:it.bgClass,wrapClass:it.wrapClass,widgets:it.widgets}},addLineClass:ia(function(it,at,ct){return ed(this,it,at=="gutter"?"gutter":"class",function(ht){var pt=at=="text"?"textClass":at=="background"?"bgClass":at=="gutter"?"gutterClass":"wrapClass";if(!ht[pt])ht[pt]=ct;else{if(It(ct).test(ht[pt]))return!1;ht[pt]+=" "+ct}return!0})}),removeLineClass:ia(function(it,at,ct){return ed(this,it,at=="gutter"?"gutter":"class",function(ht){var pt=at=="text"?"textClass":at=="background"?"bgClass":at=="gutter"?"gutterClass":"wrapClass",Lt=ht[pt];if(Lt)if(ct==null)ht[pt]=null;else{var Ot=Lt.match(It(ct));if(!Ot)return!1;var _t=Ot.index+Ot[0].length;ht[pt]=Lt.slice(0,Ot.index)+(!Ot.index||_t==Lt.length?"":" ")+Lt.slice(_t)||null}else return!1;return!0})}),addLineWidget:ia(function(it,at,ct){return ff(this,it,at,ct)}),removeLineWidget:function(it){it.clear()},markText:function(it,at,ct){return nd(this,Li(this,it),Li(this,at),ct,ct&&ct.type||"range")},setBookmark:function(it,at){var ct={replacedWith:at&&(at.nodeType==null?at.widget:at),insertLeft:at&&at.insertLeft,clearWhenEmpty:!1,shared:at&&at.shared,handleMouseEvents:at&&at.handleMouseEvents};return it=Li(this,it),nd(this,it,it,ct,"bookmark")},findMarksAt:function(it){it=Li(this,it);var at=[],ct=oi(this,it.line).markedSpans;if(ct)for(var ht=0;ht<ct.length;++ht){var pt=ct[ht];(pt.from==null||pt.from<=it.ch)&&(pt.to==null||pt.to>=it.ch)&&at.push(pt.marker.parent||pt.marker)}return at},findMarks:function(it,at,ct){it=Li(this,it),at=Li(this,at);var ht=[],pt=it.line;return this.iter(it.line,at.line+1,function(Lt){var Ot=Lt.markedSpans;if(Ot)for(var _t=0;_t<Ot.length;_t++){var Ut=Ot[_t];!(Ut.to!=null&&pt==it.line&&it.ch>=Ut.to||Ut.from==null&&pt!=it.line||Ut.from!=null&&pt==at.line&&Ut.from>=at.ch)&&(!ct||ct(Ut.marker))&&ht.push(Ut.marker.parent||Ut.marker)}++pt}),ht},getAllMarks:function(){var it=[];return this.iter(function(at){var ct=at.markedSpans;if(ct)for(var ht=0;ht<ct.length;++ht)ct[ht].from!=null&&it.push(ct[ht].marker)}),it},posFromIndex:function(it){var at,ct=this.first,ht=this.lineSeparator().length;return this.iter(function(pt){var Lt=pt.text.length+ht;if(Lt>it)return at=it,!0;it-=Lt,++ct}),Li(this,Ke(ct,at))},indexFromPos:function(it){it=Li(this,it);var at=it.ch;if(it.line<this.first||it.ch<0)return 0;var ct=this.lineSeparator().length;return this.iter(this.first,it.line,function(ht){at+=ht.text.length+ct}),at},copy:function(it){var at=new Is(Te(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return at.scrollTop=this.scrollTop,at.scrollLeft=this.scrollLeft,at.sel=this.sel,at.extend=!1,it&&(at.history.undoDepth=this.history.undoDepth,at.setHistory(this.getHistory())),at},linkedDoc:function(it){it||(it={});var at=this.first,ct=this.first+this.size;it.from!=null&&it.from>at&&(at=it.from),it.to!=null&&it.to<ct&&(ct=it.to);var ht=new Is(Te(this,at,ct),it.mode||this.modeOption,at,this.lineSep,this.direction);return it.sharedHist&&(ht.history=this.history),(this.linked||(this.linked=[])).push({doc:ht,sharedHist:it.sharedHist}),ht.linked=[{doc:this,isParent:!0,sharedHist:it.sharedHist}],qp(ht,xg(this)),ht},unlinkDoc:function(it){if(it instanceof da&&(it=it.doc),this.linked)for(var at=0;at<this.linked.length;++at){var ct=this.linked[at];if(ct.doc==it){this.linked.splice(at,1),it.unlinkDoc(this),wg(xg(this));break}}if(it.history==this.history){var ht=[it.id];Pu(it,function(pt){return ht.push(pt.id)},!0),it.history=new Bd(null),it.history.done=$u(this.history.done,ht),it.history.undone=$u(this.history.undone,ht)}},iterLinkedDocs:function(it){Pu(this,it)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(it){return this.lineSep?it.split(this.lineSep):xr(it)},lineSeparator:function(){return this.lineSep||`
`},setDirection:ia(function(it){it!="rtl"&&(it="ltr"),it!=this.direction&&(this.direction=it,this.iter(function(at){return at.order=null}),this.cm&&iv(this.cm))})}),Is.prototype.eachLine=Is.prototype.iter;var Ec=0;function Pg(it){var at=this;if(em(at),!(pn(at,it)||Jr(at.display,it))){yi(it),be&&(Ec=+new Date);var ct=Ya(at,it,!0),ht=it.dataTransfer.files;if(!(!ct||at.isReadOnly()))if(ht&&ht.length&&window.FileReader&&window.File)for(var pt=ht.length,Lt=Array(pt),Ot=0,_t=function(){++Ot==pt&&po(at,function(){ct=Li(at.doc,ct);var Hn={from:ct,to:ct,text:at.doc.splitLines(Lt.filter(function(Yi){return Yi!=null}).join(at.doc.lineSeparator())),origin:"paste"};Ph(at.doc,Hn),cf(at.doc,qu(Li(at.doc,ct),Li(at.doc,Sh(Hn))))})()},Ut=function(Hn,Yi){if(at.options.allowDropFileTypes&&mn(at.options.allowDropFileTypes,Hn.type)==-1){_t();return}var $i=new FileReader;$i.onerror=function(){return _t()},$i.onload=function(){var mr=$i.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(mr)){_t();return}Lt[Yi]=mr,_t()},$i.readAsText(Hn)},pe=0;pe<ht.length;pe++)Ut(ht[pe],pe);else{if(at.state.draggingText&&at.doc.sel.contains(ct)>-1){at.state.draggingText(it),setTimeout(function(){return at.display.input.focus()},20);return}try{var gn=it.dataTransfer.getData("Text");if(gn){var Me;if(at.state.draggingText&&!at.state.draggingText.copy&&(Me=at.listSelections()),qh(at.doc,qu(ct,ct)),Me)for(var Qn=0;Qn<Me.length;++Qn)td(at.doc,"",Me[Qn].anchor,Me[Qn].head,"drag");at.replaceSelection(gn,"around","paste"),at.display.input.focus()}}catch(Hn){}}}}function $p(it,at){if(be&&(!it.state.draggingText||+new Date-Ec<100)){Ki(at);return}if(!(pn(it,at)||Jr(it.display,at))&&(at.dataTransfer.setData("Text",it.getSelection()),at.dataTransfer.effectAllowed="copyMove",at.dataTransfer.setDragImage&&!Re)){var ct=Jt("img",null,null,"position: fixed; left: 0; top: 0;");ct.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",Mt&&(ct.width=ct.height=1,it.display.wrapper.appendChild(ct),ct._top=ct.offsetTop),at.dataTransfer.setDragImage(ct,0,0),Mt&&ct.parentNode.removeChild(ct)}}function tm(it,at){var ct=Ya(it,at);if(ct){var ht=document.createDocumentFragment();Ho(it,ct,ht),it.display.dragCursor||(it.display.dragCursor=Jt("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),it.display.lineSpace.insertBefore(it.display.dragCursor,it.display.cursorDiv)),Vt(it.display.dragCursor,ht)}}function em(it){it.display.dragCursor&&(it.display.lineSpace.removeChild(it.display.dragCursor),it.display.dragCursor=null)}function nm(it){if(document.getElementsByClassName){for(var at=document.getElementsByClassName("CodeMirror"),ct=[],ht=0;ht<at.length;ht++){var pt=at[ht].CodeMirror;pt&&ct.push(pt)}ct.length&&ct[0].operation(function(){for(var Lt=0;Lt<ct.length;Lt++)it(ct[Lt])})}}var Cg=!1;function Il(){Cg||(zd(),Cg=!0)}function zd(){var it;An(window,"resize",function(){it==null&&(it=setTimeout(function(){it=null,nm(Eg)},100))}),An(window,"blur",function(){return nm(pl)})}function Eg(it){var at=it.display;at.cachedCharWidth=at.cachedTextHeight=at.cachedPaddingH=null,at.scrollbarsClipped=!1,it.setSize()}for(var Ou={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"},Ac=0;Ac<10;Ac++)Ou[Ac+48]=Ou[Ac+96]=String(Ac);for(var gf=65;gf<=90;gf++)Ou[gf]=String.fromCharCode(gf);for(var Lc=1;Lc<=12;Lc++)Ou[Lc+111]=Ou[Lc+63235]="F"+Lc;var xl={};xl.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"},xl.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"},xl.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"},xl.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"]},xl.default=dt?xl.macDefault:xl.pcDefault;function Ag(it){var at=it.split(/-(?!$)/);it=at[at.length-1];for(var ct,ht,pt,Lt,Ot=0;Ot<at.length-1;Ot++){var _t=at[Ot];if(/^(cmd|meta|m)$/i.test(_t))Lt=!0;else if(/^a(lt)?$/i.test(_t))ct=!0;else if(/^(c|ctrl|control)$/i.test(_t))ht=!0;else if(/^s(hift)?$/i.test(_t))pt=!0;else throw new Error("Unrecognized modifier name: "+_t)}return ct&&(it="Alt-"+it),ht&&(it="Ctrl-"+it),Lt&&(it="Cmd-"+it),pt&&(it="Shift-"+it),it}function Lg(it){var at={};for(var ct in it)if(it.hasOwnProperty(ct)){var ht=it[ct];if(/^(name|fallthrough|(de|at)tach)$/.test(ct))continue;if(ht=="..."){delete it[ct];continue}for(var pt=Ai(ct.split(" "),Ag),Lt=0;Lt<pt.length;Lt++){var Ot=void 0,_t=void 0;Lt==pt.length-1?(_t=pt.join(" "),Ot=ht):(_t=pt.slice(0,Lt+1).join(" "),Ot="...");var Ut=at[_t];if(!Ut)at[_t]=Ot;else if(Ut!=Ot)throw new Error("Inconsistent bindings for "+_t)}delete it[ct]}for(var pe in at)it[pe]=at[pe];return it}function _l(it,at,ct,ht){at=id(at);var pt=at.call?at.call(it,ht):at[it];if(pt===!1)return"nothing";if(pt==="...")return"multi";if(pt!=null&&ct(pt))return"handled";if(at.fallthrough){if(Object.prototype.toString.call(at.fallthrough)!="[object Array]")return _l(it,at.fallthrough,ct,ht);for(var Lt=0;Lt<at.fallthrough.length;Lt++){var Ot=_l(it,at.fallthrough[Lt],ct,ht);if(Ot)return Ot}}}function jd(it){var at=typeof it=="string"?it:Ou[it.keyCode];return at=="Ctrl"||at=="Alt"||at=="Shift"||at=="Mod"}function bg(it,at,ct){var ht=it;return at.altKey&&ht!="Alt"&&(it="Alt-"+it),(St?at.metaKey:at.ctrlKey)&&ht!="Ctrl"&&(it="Ctrl-"+it),(St?at.ctrlKey:at.metaKey)&&ht!="Mod"&&(it="Cmd-"+it),!ct&&at.shiftKey&&ht!="Shift"&&(it="Shift-"+it),it}function im(it,at){if(Mt&&it.keyCode==34&&it.char)return!1;var ct=Ou[it.keyCode];return ct==null||it.altGraphKey?!1:(it.keyCode==3&&it.code&&(ct=it.code),bg(ct,it,at))}function id(it){return typeof it=="string"?xl[it]:it}function wl(it,at){for(var ct=it.doc.sel.ranges,ht=[],pt=0;pt<ct.length;pt++){for(var Lt=at(ct[pt]);ht.length&&Gn(Lt.from,Pe(ht).to)<=0;){var Ot=ht.pop();if(Gn(Ot.from,Lt.from)<0){Lt.from=Ot.from;break}}ht.push(Lt)}lo(it,function(){for(var _t=ht.length-1;_t>=0;_t--)td(it.doc,"",ht[_t].from,ht[_t].to,"+delete");Vs(it)})}function Mg(it,at,ct){var ht=Ie(it.text,at+ct,ct);return ht<0||ht>it.text.length?null:ht}function ss(it,at,ct){var ht=Mg(it,at.ch,ct);return ht==null?null:new Ke(at.line,ht,ct<0?"after":"before")}function bc(it,at,ct,ht,pt){if(it){at.doc.direction=="rtl"&&(pt=-pt);var Lt=En(ct,at.doc.direction);if(Lt){var Ot=pt<0?Pe(Lt):Lt[0],_t=pt<0==(Ot.level==1),Ut=_t?"after":"before",pe;if(Ot.level>0||at.doc.direction=="rtl"){var gn=Po(at,ct);pe=pt<0?ct.text.length-1:0;var Me=Vo(at,gn,pe).top;pe=Ue(function(Qn){return Vo(at,gn,Qn).top==Me},pt<0==(Ot.level==1)?Ot.from:Ot.to-1,pe),Ut=="before"&&(pe=Mg(ct,pe,1))}else pe=pt<0?Ot.to:Ot.from;return new Ke(ht,pe,Ut)}}return new Ke(ht,pt<0?ct.text.length:0,pt<0?"before":"after")}function pf(it,at,ct,ht){var pt=En(at,it.doc.direction);if(!pt)return ss(at,ct,ht);ct.ch>=at.text.length?(ct.ch=at.text.length,ct.sticky="before"):ct.ch<=0&&(ct.ch=0,ct.sticky="after");var Lt=Ne(pt,ct.ch,ct.sticky),Ot=pt[Lt];if(it.doc.direction=="ltr"&&Ot.level%2==0&&(ht>0?Ot.to>ct.ch:Ot.from<ct.ch))return ss(at,ct,ht);var _t=function(Or,to){return Mg(at,Or instanceof Ke?Or.ch:Or,to)},Ut,pe=function(Or){return it.options.lineWrapping?(Ut=Ut||Po(it,at),Qo(it,at,Ut,Or)):{begin:0,end:at.text.length}},gn=pe(ct.sticky=="before"?_t(ct,-1):ct.ch);if(it.doc.direction=="rtl"||Ot.level==1){var Me=Ot.level==1==ht<0,Qn=_t(ct,Me?1:-1);if(Qn!=null&&(Me?Qn<=Ot.to&&Qn<=gn.end:Qn>=Ot.from&&Qn>=gn.begin)){var Hn=Me?"before":"after";return new Ke(ct.line,Qn,Hn)}}var Yi=function(Or,to,Kr){for(var oo=function(ja,Ss){return Ss?new Ke(ct.line,_t(ja,1),"before"):new Ke(ct.line,ja,"after")};Or>=0&&Or<pt.length;Or+=to){var ko=pt[Or],Gr=to>0==(ko.level!=1),_o=Gr?Kr.begin:_t(Kr.end,-1);if(ko.from<=_o&&_o<ko.to||(_o=Gr?ko.from:_t(ko.to,-1),Kr.begin<=_o&&_o<Kr.end))return oo(_o,Gr)}},$i=Yi(Lt+ht,ht,gn);if($i)return $i;var mr=ht>0?gn.end:_t(gn.begin,-1);return mr!=null&&!(ht>0&&mr==at.text.length)&&($i=Yi(ht>0?0:pt.length-1,ht,pe(mr)),$i)?$i:null}var Ch={selectAll:as,singleSelection:function(it){return it.setSelection(it.getCursor("anchor"),it.getCursor("head"),ln)},killLine:function(it){return wl(it,function(at){if(at.empty()){var ct=oi(it.doc,at.head.line).text.length;return at.head.ch==ct&&at.head.line<it.lastLine()?{from:at.head,to:Ke(at.head.line+1,0)}:{from:at.head,to:Ke(at.head.line,ct)}}else return{from:at.from(),to:at.to()}})},deleteLine:function(it){return wl(it,function(at){return{from:Ke(at.from().line,0),to:Li(it.doc,Ke(at.to().line+1,0))}})},delLineLeft:function(it){return wl(it,function(at){return{from:Ke(at.from().line,0),to:at.from()}})},delWrappedLineLeft:function(it){return wl(it,function(at){var ct=it.charCoords(at.head,"div").top+5,ht=it.coordsChar({left:0,top:ct},"div");return{from:ht,to:at.from()}})},delWrappedLineRight:function(it){return wl(it,function(at){var ct=it.charCoords(at.head,"div").top+5,ht=it.coordsChar({left:it.display.lineDiv.offsetWidth+100,top:ct},"div");return{from:at.from(),to:ht}})},undo:function(it){return it.undo()},redo:function(it){return it.redo()},undoSelection:function(it){return it.undoSelection()},redoSelection:function(it){return it.redoSelection()},goDocStart:function(it){return it.extendSelection(Ke(it.firstLine(),0))},goDocEnd:function(it){return it.extendSelection(Ke(it.lastLine()))},goLineStart:function(it){return it.extendSelectionsBy(function(at){return Wd(it,at.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(it){return it.extendSelectionsBy(function(at){return kg(it,at.head)},{origin:"+move",bias:1})},goLineEnd:function(it){return it.extendSelectionsBy(function(at){return Hd(it,at.head.line)},{origin:"+move",bias:-1})},goLineRight:function(it){return it.extendSelectionsBy(function(at){var ct=it.cursorCoords(at.head,"div").top+5;return it.coordsChar({left:it.display.lineDiv.offsetWidth+100,top:ct},"div")},Dn)},goLineLeft:function(it){return it.extendSelectionsBy(function(at){var ct=it.cursorCoords(at.head,"div").top+5;return it.coordsChar({left:0,top:ct},"div")},Dn)},goLineLeftSmart:function(it){return it.extendSelectionsBy(function(at){var ct=it.cursorCoords(at.head,"div").top+5,ht=it.coordsChar({left:0,top:ct},"div");return ht.ch<it.getLine(ht.line).search(/\S/)?kg(it,at.head):ht},Dn)},goLineUp:function(it){return it.moveV(-1,"line")},goLineDown:function(it){return it.moveV(1,"line")},goPageUp:function(it){return it.moveV(-1,"page")},goPageDown:function(it){return it.moveV(1,"page")},goCharLeft:function(it){return it.moveH(-1,"char")},goCharRight:function(it){return it.moveH(1,"char")},goColumnLeft:function(it){return it.moveH(-1,"column")},goColumnRight:function(it){return it.moveH(1,"column")},goWordLeft:function(it){return it.moveH(-1,"word")},goGroupRight:function(it){return it.moveH(1,"group")},goGroupLeft:function(it){return it.moveH(-1,"group")},goWordRight:function(it){return it.moveH(1,"word")},delCharBefore:function(it){return it.deleteH(-1,"codepoint")},delCharAfter:function(it){return it.deleteH(1,"char")},delWordBefore:function(it){return it.deleteH(-1,"word")},delWordAfter:function(it){return it.deleteH(1,"word")},delGroupBefore:function(it){return it.deleteH(-1,"group")},delGroupAfter:function(it){return it.deleteH(1,"group")},indentAuto:function(it){return it.indentSelection("smart")},indentMore:function(it){return it.indentSelection("add")},indentLess:function(it){return it.indentSelection("subtract")},insertTab:function(it){return it.replaceSelection(" ")},insertSoftTab:function(it){for(var at=[],ct=it.listSelections(),ht=it.options.tabSize,pt=0;pt<ct.length;pt++){var Lt=ct[pt].from(),Ot=Se(it.getLine(Lt.line),Lt.ch,ht);at.push(On(ht-Ot%ht))}it.replaceSelections(at)},defaultTab:function(it){it.somethingSelected()?it.indentSelection("add"):it.execCommand("insertTab")},transposeChars:function(it){return lo(it,function(){for(var at=it.listSelections(),ct=[],ht=0;ht<at.length;ht++)if(at[ht].empty()){var pt=at[ht].head,Lt=oi(it.doc,pt.line).text;if(Lt){if(pt.ch==Lt.length&&(pt=new Ke(pt.line,pt.ch-1)),pt.ch>0)pt=new Ke(pt.line,pt.ch+1),it.replaceRange(Lt.charAt(pt.ch-1)+Lt.charAt(pt.ch-2),Ke(pt.line,pt.ch-2),pt,"+transpose");else if(pt.line>it.doc.first){var Ot=oi(it.doc,pt.line-1).text;Ot&&(pt=new Ke(pt.line,1),it.replaceRange(Lt.charAt(0)+it.doc.lineSeparator()+Ot.charAt(Ot.length-1),Ke(pt.line-1,Ot.length-1),pt,"+transpose"))}}ct.push(new Ca(pt,pt))}it.setSelections(ct)})},newlineAndIndent:function(it){return lo(it,function(){for(var at=it.listSelections(),ct=at.length-1;ct>=0;ct--)it.replaceRange(it.doc.lineSeparator(),at[ct].anchor,at[ct].head,"+input");at=it.listSelections();for(var ht=0;ht<at.length;ht++)it.indentLine(at[ht].from().line,null,!0);Vs(it)})},openLine:function(it){return it.replaceSelection(`
`,"start")},toggleOverwrite:function(it){return it.toggleOverwrite()}};function Wd(it,at){var ct=oi(it.doc,at),ht=_e(ct);return ht!=ct&&(at=ee(ht)),bc(!0,it,ht,at,1)}function Hd(it,at){var ct=oi(it.doc,at),ht=hn(ct);return ht!=ct&&(at=ee(ht)),bc(!0,it,ct,at,-1)}function kg(it,at){var ct=Wd(it,at.line),ht=oi(it.doc,ct.line),pt=En(ht,it.doc.direction);if(!pt||pt[0].level==0){var Lt=Math.max(ct.ch,ht.text.search(/\S/)),Ot=at.line==ct.line&&at.ch<=Lt&&at.ch;return Ke(ct.line,Ot?0:Lt,ct.sticky)}return ct}function Zd(it,at,ct){if(typeof at=="string"&&(at=Ch[at],!at))return!1;it.display.input.ensurePolled();var ht=it.display.shift,pt=!1;try{it.isReadOnly()&&(it.state.suppressEdits=!0),ct&&(it.display.shift=!1),pt=at(it)!=jn}finally{it.display.shift=ht,it.state.suppressEdits=!1}return pt}function Fg(it,at,ct){for(var ht=0;ht<it.state.keyMaps.length;ht++){var pt=_l(at,it.state.keyMaps[ht],ct,it);if(pt)return pt}return it.options.extraKeys&&_l(at,it.options.extraKeys,ct,it)||_l(at,it.options.keyMap,ct,it)}var Iu=new Qt;function rd(it,at,ct,ht){var pt=it.state.keySeq;if(pt){if(jd(at))return"handled";if(/\'$/.test(at)?it.state.keySeq=null:Iu.set(50,function(){it.state.keySeq==pt&&(it.state.keySeq=null,it.display.input.reset())}),mf(it,pt+" "+at,ct,ht))return!0}return mf(it,at,ct,ht)}function mf(it,at,ct,ht){var pt=Fg(it,at,ht);return pt=="multi"&&(it.state.keySeq=at),pt=="handled"&&Di(it,"keyHandled",it,at,ct),(pt=="handled"||pt=="multi")&&(yi(ct),$o(it)),!!pt}function vf(it,at){var ct=im(at,!0);return ct?at.shiftKey&&!it.state.keySeq?rd(it,"Shift-"+ct,at,function(ht){return Zd(it,ht,!0)})||rd(it,ct,at,function(ht){if(typeof ht=="string"?/^go[A-Z]/.test(ht):ht.motion)return Zd(it,ht)}):rd(it,ct,at,function(ht){return Zd(it,ht)}):!1}function yf(it,at,ct){return rd(it,"'"+ct+"'",at,function(ht){return Zd(it,ht,!0)})}var od=null;function Dg(it){var at=this;if(!(it.target&&it.target!=at.display.input.getField())&&(at.curOp.focus=Le(),!pn(at,it))){be&&jt<11&&it.keyCode==27&&(it.returnValue=!1);var ct=it.keyCode;at.display.shift=ct==16||it.shiftKey;var ht=vf(at,it);Mt&&(od=ht?ct:null,!ht&&ct==88&&!yn&&(dt?it.metaKey:it.ctrlKey)&&at.replaceSelection("",null,"cut")),yt&&!dt&&!ht&&ct==46&&it.shiftKey&&!it.ctrlKey&&document.execCommand&&document.execCommand("cut"),ct==18&&!/\bCodeMirror-crosshair\b/.test(at.display.lineDiv.className)&&Ng(at)}}function Ng(it){var at=it.display.lineDiv;sn(at,"CodeMirror-crosshair");function ct(ht){(ht.keyCode==18||!ht.altKey)&&(Ht(at,"CodeMirror-crosshair"),ze(document,"keyup",ct),ze(document,"mouseover",ct))}An(document,"keyup",ct),An(document,"mouseover",ct)}function Bg(it){it.keyCode==16&&(this.doc.sel.shift=!1),pn(this,it)}function Cu(it){var at=this;if(!(it.target&&it.target!=at.display.input.getField())&&!(Jr(at.display,it)||pn(at,it)||it.ctrlKey&&!it.altKey||dt&&it.metaKey)){var ct=it.keyCode,ht=it.charCode;if(Mt&&ct==od){od=null,yi(it);return}if(!(Mt&&(!it.which||it.which<10)&&vf(at,it))){var pt=String.fromCharCode(ht==null?ct:ht);pt!="\b"&&(yf(at,it,pt)||at.display.input.onKeyPress(it))}}}var rm=400,Tg=function(it,at,ct){this.time=it,this.pos=at,this.button=ct};Tg.prototype.compare=function(it,at,ct){return this.time+rm>it&&Gn(at,this.pos)==0&&ct==this.button};var Vd,ad;function Og(it,at){var ct=+new Date;return ad&&ad.compare(ct,it,at)?(Vd=ad=null,"triple"):Vd&&Vd.compare(ct,it,at)?(ad=new Tg(ct,it,at),Vd=null,"double"):(Vd=new Tg(ct,it,at),ad=null,"single")}function Eu(it){var at=this,ct=at.display;if(!(pn(at,it)||ct.activeTouch&&ct.input.supportsTouch())){if(ct.input.ensurePolled(),ct.shift=it.shiftKey,Jr(ct,it)){ge||(ct.scroller.draggable=!1,setTimeout(function(){return ct.scroller.draggable=!0},100));return}if(!wf(at,it)){var ht=Ya(at,it),pt=or(it),Lt=ht?Og(ht,pt):"single";window.focus(),pt==1&&at.state.selectingText&&at.state.selectingText(it),!(ht&&Ig(at,pt,ht,Lt,it))&&(pt==1?ht?om(at,ht,Lt,it):pr(it)==ct.scroller&&yi(it):pt==2?(ht&&df(at.doc,ht),setTimeout(function(){return ct.input.focus()},20)):pt==3&&(bt?at.display.input.onContextMenu(it):va(at)))}}}function Ig(it,at,ct,ht,pt){var Lt="Click";return ht=="double"?Lt="Double"+Lt:ht=="triple"&&(Lt="Triple"+Lt),Lt=(at==1?"Left":at==2?"Middle":"Right")+Lt,rd(it,bg(Lt,pt),pt,function(Ot){if(typeof Ot=="string"&&(Ot=Ch[Ot]),!Ot)return!1;var _t=!1;try{it.isReadOnly()&&(it.state.suppressEdits=!0),_t=Ot(it,ct)!=jn}finally{it.state.suppressEdits=!1}return _t})}function Sf(it,at,ct){var ht=it.getOption("configureMouse"),pt=ht?ht(it,at,ct):{};if(pt.unit==null){var Lt=lt?ct.shiftKey&&ct.metaKey:ct.altKey;pt.unit=Lt?"rectangle":at=="single"?"char":at=="double"?"word":"line"}return(pt.extend==null||it.doc.extend)&&(pt.extend=it.doc.extend||ct.shiftKey),pt.addNew==null&&(pt.addNew=dt?ct.metaKey:ct.ctrlKey),pt.moveOnDrag==null&&(pt.moveOnDrag=!(dt?ct.altKey:ct.ctrlKey)),pt}function om(it,at,ct,ht){be?setTimeout(Ge(ca,it),0):it.curOp.focus=Le();var pt=Sf(it,ct,ht),Lt=it.doc.sel,Ot;it.options.dragDrop&&ir&&!it.isReadOnly()&&ct=="single"&&(Ot=Lt.contains(at))>-1&&(Gn((Ot=Lt.ranges[Ot]).from(),at)<0||at.xRel>0)&&(Gn(Ot.to(),at)>0||at.xRel<0)?Rg(it,ht,at,pt):ov(it,ht,at,pt)}function Rg(it,at,ct,ht){var pt=it.display,Lt=!1,Ot=po(it,function(pe){ge&&(pt.scroller.draggable=!1),it.state.draggingText=!1,ze(pt.wrapper.ownerDocument,"mouseup",Ot),ze(pt.wrapper.ownerDocument,"mousemove",_t),ze(pt.scroller,"dragstart",Ut),ze(pt.scroller,"drop",Ot),Lt||(yi(pe),ht.addNew||df(it.doc,ct,null,null,ht.extend),ge&&!Re||be&&jt==9?setTimeout(function(){pt.wrapper.ownerDocument.body.focus({preventScroll:!0}),pt.input.focus()},20):pt.input.focus())}),_t=function(pe){Lt=Lt||Math.abs(at.clientX-pe.clientX)+Math.abs(at.clientY-pe.clientY)>=10},Ut=function(){return Lt=!0};ge&&(pt.scroller.draggable=!0),it.state.draggingText=Ot,Ot.copy=!ht.moveOnDrag,pt.scroller.dragDrop&&pt.scroller.dragDrop(),An(pt.wrapper.ownerDocument,"mouseup",Ot),An(pt.wrapper.ownerDocument,"mousemove",_t),An(pt.scroller,"dragstart",Ut),An(pt.scroller,"drop",Ot),va(it),setTimeout(function(){return pt.input.focus()},20)}function zg(it,at,ct){if(ct=="char")return new Ca(at,at);if(ct=="word")return it.findWordAt(at);if(ct=="line")return new Ca(Ke(at.line,0),Li(it.doc,Ke(at.line+1,0)));var ht=ct(it,at);return new Ca(ht.from,ht.to)}function ov(it,at,ct,ht){var pt=it.display,Lt=it.doc;yi(at);var Ot,_t,Ut=Lt.sel,pe=Ut.ranges;if(ht.addNew&&!ht.extend?(_t=Lt.sel.contains(ct),_t>-1?Ot=pe[_t]:Ot=new Ca(ct,ct)):(Ot=Lt.sel.primary(),_t=Lt.sel.primIndex),ht.unit=="rectangle")ht.addNew||(Ot=new Ca(ct,ct)),ct=Ya(it,at,!0,!0),_t=-1;else{var gn=zg(it,ct,ht.unit);ht.extend?Ot=hf(Ot,gn.anchor,gn.head,ht.extend):Ot=gn}ht.addNew?_t==-1?(_t=pe.length,Ks(Lt,au(it,pe.concat([Ot]),_t),{scroll:!1,origin:"*mouse"})):pe.length>1&&pe[_t].empty()&&ht.unit=="char"&&!ht.extend?(Ks(Lt,au(it,pe.slice(0,_t).concat(pe.slice(_t+1)),0),{scroll:!1,origin:"*mouse"}),Ut=Lt.sel):wh(Lt,_t,Ot,qn):(_t=0,Ks(Lt,new Ul([Ot],0),qn),Ut=Lt.sel);var Me=ct;function Qn(Kr){if(Gn(Me,Kr)!=0)if(Me=Kr,ht.unit=="rectangle"){for(var oo=[],ko=it.options.tabSize,Gr=Se(oi(Lt,ct.line).text,ct.ch,ko),_o=Se(oi(Lt,Kr.line).text,Kr.ch,ko),ja=Math.min(Gr,_o),Ss=Math.max(Gr,_o),_a=Math.min(ct.line,Kr.line),ul=Math.min(it.lastLine(),Math.max(ct.line,Kr.line));_a<=ul;_a++){var Ys=oi(Lt,_a).text,ps=fi(Ys,ja,ko);ja==Ss?oo.push(new Ca(Ke(_a,ps),Ke(_a,ps))):Ys.length>ps&&oo.push(new Ca(Ke(_a,ps),Ke(_a,fi(Ys,Ss,ko))))}oo.length||oo.push(new Ca(ct,ct)),Ks(Lt,au(it,Ut.ranges.slice(0,_t).concat(oo),_t),{origin:"*mouse",scroll:!1}),it.scrollIntoView(Kr)}else{var Pl=Ot,Rs=zg(it,Kr,ht.unit),ms=Pl.anchor,fa;Gn(Rs.anchor,ms)>0?(fa=Rs.head,ms=xi(Pl.from(),Rs.anchor)):(fa=Rs.anchor,ms=ki(Pl.to(),Rs.head));var qa=Ut.ranges.slice(0);qa[_t]=am(it,new Ca(Li(Lt,ms),fa)),Ks(Lt,au(it,qa,_t),qn)}}var Hn=pt.wrapper.getBoundingClientRect(),Yi=0;function $i(Kr){var oo=++Yi,ko=Ya(it,Kr,!0,ht.unit=="rectangle");if(ko)if(Gn(ko,Me)!=0){it.curOp.focus=Le(),Qn(ko);var Gr=Lo(pt,Lt);(ko.line>=Gr.to||ko.line<Gr.from)&&setTimeout(po(it,function(){Yi==oo&&$i(Kr)}),150)}else{var _o=Kr.clientY<Hn.top?-20:Kr.clientY>Hn.bottom?20:0;_o&&setTimeout(po(it,function(){Yi==oo&&(pt.scroller.scrollTop+=_o,$i(Kr))}),50)}}function mr(Kr){it.state.selectingText=!1,Yi=1/0,Kr&&(yi(Kr),pt.input.focus()),ze(pt.wrapper.ownerDocument,"mousemove",Or),ze(pt.wrapper.ownerDocument,"mouseup",to),Lt.history.lastSelOrigin=null}var Or=po(it,function(Kr){Kr.buttons===0||!or(Kr)?mr(Kr):$i(Kr)}),to=po(it,mr);it.state.selectingText=to,An(pt.wrapper.ownerDocument,"mousemove",Or),An(pt.wrapper.ownerDocument,"mouseup",to)}function am(it,at){var ct=at.anchor,ht=at.head,pt=oi(it.doc,ct.line);if(Gn(ct,ht)==0&&ct.sticky==ht.sticky)return at;var Lt=En(pt);if(!Lt)return at;var Ot=Ne(Lt,ct.ch,ct.sticky),_t=Lt[Ot];if(_t.from!=ct.ch&&_t.to!=ct.ch)return at;var Ut=Ot+(_t.from==ct.ch==(_t.level!=1)?0:1);if(Ut==0||Ut==Lt.length)return at;var pe;if(ht.line!=ct.line)pe=(ht.line-ct.line)*(it.doc.direction=="ltr"?1:-1)>0;else{var gn=Ne(Lt,ht.ch,ht.sticky),Me=gn-Ot||(ht.ch-ct.ch)*(_t.level==1?-1:1);gn==Ut-1||gn==Ut?pe=Me<0:pe=Me>0}var Qn=Lt[Ut+(pe?-1:0)],Hn=pe==(Qn.level==1),Yi=Hn?Qn.from:Qn.to,$i=Hn?"after":"before";return ct.ch==Yi&&ct.sticky==$i?at:new Ca(new Ke(ct.line,Yi,$i),ht)}function xf(it,at,ct,ht){var pt,Lt;if(at.touches)pt=at.touches[0].clientX,Lt=at.touches[0].clientY;else try{pt=at.clientX,Lt=at.clientY}catch(Qn){return!1}if(pt>=Math.floor(it.display.gutters.getBoundingClientRect().right))return!1;ht&&yi(at);var Ot=it.display,_t=Ot.lineDiv.getBoundingClientRect();if(Lt>_t.bottom||!Yn(it,ct))return Pi(at);Lt-=_t.top-Ot.viewOffset;for(var Ut=0;Ut<it.display.gutterSpecs.length;++Ut){var pe=Ot.gutters.childNodes[Ut];if(pe&&pe.getBoundingClientRect().right>=pt){var gn=nn(it.doc,Lt),Me=it.display.gutterSpecs[Ut];return qe(it,ct,it,gn,Me.className,at),Pi(at)}}}function wf(it,at){return xf(it,at,"gutterClick",!0)}function Pf(it,at){Jr(it.display,at)||sm(it,at)||pn(it,at,"contextmenu")||bt||it.display.input.onContextMenu(at)}function sm(it,at){return Yn(it,"gutterContextMenu")?xf(it,at,"gutterContextMenu",!1):!1}function Cf(it){it.display.wrapper.className=it.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+it.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Ba(it)}var Eh={toString:function(){return"CodeMirror.Init"}},jg={},Mc={};function lm(it){var at=it.optionHandlers;function ct(ht,pt,Lt,Ot){it.defaults[ht]=pt,Lt&&(at[ht]=Ot?function(_t,Ut,pe){pe!=Eh&&Lt(_t,Ut,pe)}:Lt)}it.defineOption=ct,it.Init=Eh,ct("value","",function(ht,pt){return ht.setValue(pt)},!0),ct("mode",null,function(ht,pt){ht.doc.modeOption=pt,Xo(ht)},!0),ct("indentUnit",2,Xo,!0),ct("indentWithTabs",!1),ct("smartIndent",!0),ct("tabSize",4,function(ht){gc(ht),Ba(ht),ha(ht)},!0),ct("lineSeparator",null,function(ht,pt){if(ht.doc.lineSep=pt,!!pt){var Lt=[],Ot=ht.doc.first;ht.doc.iter(function(Ut){for(var pe=0;;){var gn=Ut.text.indexOf(pt,pe);if(gn==-1)break;pe=gn+pt.length,Lt.push(Ke(Ot,gn))}Ot++});for(var _t=Lt.length-1;_t>=0;_t--)td(ht.doc,pt,Lt[_t],Ke(Lt[_t].line,Lt[_t].ch+pt.length))}}),ct("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(ht,pt,Lt){ht.state.specialChars=new RegExp(pt.source+(pt.test(" ")?"":"| "),"g"),Lt!=Eh&&ht.refresh()}),ct("specialCharPlaceholder",Un,function(ht){return ht.refresh()},!0),ct("electricChars",!0),ct("inputStyle",et?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ct("spellcheck",!1,function(ht,pt){return ht.getInputField().spellcheck=pt},!0),ct("autocorrect",!1,function(ht,pt){return ht.getInputField().autocorrect=pt},!0),ct("autocapitalize",!1,function(ht,pt){return ht.getInputField().autocapitalize=pt},!0),ct("rtlMoveVisually",!gt),ct("wholeLineUpdateBefore",!0),ct("theme","default",function(ht){Cf(ht),Tl(ht)},!0),ct("keyMap","default",function(ht,pt,Lt){var Ot=id(pt),_t=Lt!=Eh&&id(Lt);_t&&_t.detach&&_t.detach(ht,Ot),Ot.attach&&Ot.attach(ht,_t||null)}),ct("extraKeys",null),ct("configureMouse",null),ct("lineWrapping",!1,um,!0),ct("gutters",[],function(ht,pt){ht.display.gutterSpecs=Cs(pt,ht.options.lineNumbers),Tl(ht)},!0),ct("fixedGutter",!0,function(ht,pt){ht.display.gutters.style.left=pt?hs(ht.display)+"px":"0",ht.refresh()},!0),ct("coverGutterNextToScrollbar",!1,function(ht){return ns(ht)},!0),ct("scrollbarStyle","native",function(ht){yl(ht),ns(ht),ht.display.scrollbars.setScrollTop(ht.doc.scrollTop),ht.display.scrollbars.setScrollLeft(ht.doc.scrollLeft)},!0),ct("lineNumbers",!1,function(ht,pt){ht.display.gutterSpecs=Cs(ht.options.gutters,pt),Tl(ht)},!0),ct("firstLineNumber",1,Tl,!0),ct("lineNumberFormatter",function(ht){return ht},Tl,!0),ct("showCursorWhenSelecting",!1,za,!0),ct("resetSelectionOnContextMenu",!0),ct("lineWiseCopyCut",!0),ct("pasteLinesPerSelection",!0),ct("selectionsMayTouch",!1),ct("readOnly",!1,function(ht,pt){pt=="nocursor"&&(pl(ht),ht.display.input.blur()),ht.display.input.readOnlyChanged(pt)}),ct("screenReaderLabel",null,function(ht,pt){pt=pt===""?null:pt,ht.display.input.screenReaderLabelChanged(pt)}),ct("disableInput",!1,function(ht,pt){pt||ht.display.input.reset()},!0),ct("dragDrop",!0,Ef),ct("allowDropFileTypes",null),ct("cursorBlinkRate",530),ct("cursorScrollMargin",0),ct("cursorHeight",1,za,!0),ct("singleCursorHeightPerLine",!0,za,!0),ct("workTime",100),ct("workDelay",100),ct("flattenSpans",!0,gc,!0),ct("addModeClass",!1,gc,!0),ct("pollInterval",100),ct("undoDepth",200,function(ht,pt){return ht.doc.history.undoDepth=pt}),ct("historyEventDelay",1250),ct("viewportMargin",10,function(ht){return ht.refresh()},!0),ct("maxHighlightLength",1e4,gc,!0),ct("moveInputWithCursor",!0,function(ht,pt){pt||ht.display.input.resetPosition()}),ct("tabindex",null,function(ht,pt){return ht.display.input.getField().tabIndex=pt||""}),ct("autofocus",null),ct("direction","ltr",function(ht,pt){return ht.doc.setDirection(pt)},!0),ct("phrases",null)}function Ef(it,at,ct){var ht=ct&&ct!=Eh;if(!at!=!ht){var pt=it.display.dragFunctions,Lt=at?An:ze;Lt(it.display.scroller,"dragstart",pt.start),Lt(it.display.scroller,"dragenter",pt.enter),Lt(it.display.scroller,"dragover",pt.over),Lt(it.display.scroller,"dragleave",pt.leave),Lt(it.display.scroller,"drop",pt.drop)}}function um(it){it.options.lineWrapping?(sn(it.display.wrapper,"CodeMirror-wrap"),it.display.sizer.style.minWidth="",it.display.sizerWidth=null):(Ht(it.display.wrapper,"CodeMirror-wrap"),Ye(it)),Qr(it),ha(it),Ba(it),setTimeout(function(){return ns(it)},100)}function da(it,at){var ct=this;if(!(this instanceof da))return new da(it,at);this.options=at=at?an(at):{},an(jg,at,!1);var ht=at.value;typeof ht=="string"?ht=new Is(ht,at.mode,null,at.lineSeparator,at.direction):at.mode&&(ht.modeOption=at.mode),this.doc=ht;var pt=new da.inputStyles[at.inputStyle](this),Lt=this.display=new yh(it,ht,pt,at);Lt.wrapper.CodeMirror=this,Cf(this),at.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),yl(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 Qt,keySeq:null,specialChars:null},at.autofocus&&!et&&Lt.input.focus(),be&&jt<11&&setTimeout(function(){return ct.display.input.reset(!0)},20),Gd(this),Il(),xo(this),this.curOp.forceUpdate=!0,sf(this,ht),at.autofocus&&!et||this.hasFocus()?setTimeout(function(){ct.hasFocus()&&!ct.state.focused&&qo(ct)},20):pl(this);for(var Ot in Mc)Mc.hasOwnProperty(Ot)&&Mc[Ot](this,at[Ot],Eh);us(this),at.finishInit&&at.finishInit(this);for(var _t=0;_t<sd.length;++_t)sd[_t](this);Ua(this),ge&&at.lineWrapping&&getComputedStyle(Lt.lineDiv).textRendering=="optimizelegibility"&&(Lt.lineDiv.style.textRendering="auto")}da.defaults=jg,da.optionHandlers=Mc;function Gd(it){var at=it.display;An(at.scroller,"mousedown",po(it,Eu)),be&&jt<11?An(at.scroller,"dblclick",po(it,function(Ut){if(!pn(it,Ut)){var pe=Ya(it,Ut);if(!(!pe||wf(it,Ut)||Jr(it.display,Ut))){yi(Ut);var gn=it.findWordAt(pe);df(it.doc,gn.anchor,gn.head)}}})):An(at.scroller,"dblclick",function(Ut){return pn(it,Ut)||yi(Ut)}),An(at.scroller,"contextmenu",function(Ut){return Pf(it,Ut)}),An(at.input.getField(),"contextmenu",function(Ut){at.scroller.contains(Ut.target)||Pf(it,Ut)});var ct,ht={end:0};function pt(){at.activeTouch&&(ct=setTimeout(function(){return at.activeTouch=null},1e3),ht=at.activeTouch,ht.end=+new Date)}function Lt(Ut){if(Ut.touches.length!=1)return!1;var pe=Ut.touches[0];return pe.radiusX<=1&&pe.radiusY<=1}function Ot(Ut,pe){if(pe.left==null)return!0;var gn=pe.left-Ut.left,Me=pe.top-Ut.top;return gn*gn+Me*Me>20*20}An(at.scroller,"touchstart",function(Ut){if(!pn(it,Ut)&&!Lt(Ut)&&!wf(it,Ut)){at.input.ensurePolled(),clearTimeout(ct);var pe=+new Date;at.activeTouch={start:pe,moved:!1,prev:pe-ht.end<=300?ht:null},Ut.touches.length==1&&(at.activeTouch.left=Ut.touches[0].pageX,at.activeTouch.top=Ut.touches[0].pageY)}}),An(at.scroller,"touchmove",function(){at.activeTouch&&(at.activeTouch.moved=!0)}),An(at.scroller,"touchend",function(Ut){var pe=at.activeTouch;if(pe&&!Jr(at,Ut)&&pe.left!=null&&!pe.moved&&new Date-pe.start<300){var gn=it.coordsChar(at.activeTouch,"page"),Me;!pe.prev||Ot(pe,pe.prev)?Me=new Ca(gn,gn):!pe.prev.prev||Ot(pe,pe.prev.prev)?Me=it.findWordAt(gn):Me=new Ca(Ke(gn.line,0),Li(it.doc,Ke(gn.line+1,0))),it.setSelection(Me.anchor,Me.head),it.focus(),yi(Ut)}pt()}),An(at.scroller,"touchcancel",pt),An(at.scroller,"scroll",function(){at.scroller.clientHeight&&(ml(it,at.scroller.scrollTop),vl(it,at.scroller.scrollLeft,!0),qe(it,"scroll",it))}),An(at.scroller,"mousewheel",function(Ut){return Es(it,Ut)}),An(at.scroller,"DOMMouseScroll",function(Ut){return Es(it,Ut)}),An(at.wrapper,"scroll",function(){return at.wrapper.scrollTop=at.wrapper.scrollLeft=0}),at.dragFunctions={enter:function(Ut){pn(it,Ut)||Ki(Ut)},over:function(Ut){pn(it,Ut)||(tm(it,Ut),Ki(Ut))},start:function(Ut){return $p(it,Ut)},drop:po(it,Pg),leave:function(Ut){pn(it,Ut)||em(it)}};var _t=at.input.getField();An(_t,"keyup",function(Ut){return Bg.call(it,Ut)}),An(_t,"keydown",po(it,Dg)),An(_t,"keypress",po(it,Cu)),An(_t,"focus",function(Ut){return qo(it,Ut)}),An(_t,"blur",function(Ut){return pl(it,Ut)})}var sd=[];da.defineInitHook=function(it){return sd.push(it)};function ys(it,at,ct,ht){var pt=it.doc,Lt;ct==null&&(ct="add"),ct=="smart"&&(pt.mode.indent?Lt=Hr(it,at).state:ct="prev");var Ot=it.options.tabSize,_t=oi(pt,at),Ut=Se(_t.text,null,Ot);_t.stateAfter&&(_t.stateAfter=null);var pe=_t.text.match(/^\s*/)[0],gn;if(!ht&&!/\S/.test(_t.text))gn=0,ct="not";else if(ct=="smart"&&(gn=pt.mode.indent(Lt,_t.text.slice(pe.length),_t.text),gn==jn||gn>150)){if(!ht)return;ct="prev"}ct=="prev"?at>pt.first?gn=Se(oi(pt,at-1).text,null,Ot):gn=0:ct=="add"?gn=Ut+it.options.indentUnit:ct=="subtract"?gn=Ut-it.options.indentUnit:typeof ct=="number"&&(gn=Ut+ct),gn=Math.max(0,gn);var Me="",Qn=0;if(it.options.indentWithTabs)for(var Hn=Math.floor(gn/Ot);Hn;--Hn)Qn+=Ot,Me+=" ";if(Qn<gn&&(Me+=On(gn-Qn)),Me!=pe)return td(pt,Me,Ke(at,0),Ke(at,pe.length),"+input"),_t.stateAfter=null,!0;for(var Yi=0;Yi<pt.sel.ranges.length;Yi++){var $i=pt.sel.ranges[Yi];if($i.head.line==at&&$i.head.ch<pe.length){var mr=Ke(at,pe.length);wh(pt,Yi,new Ca(mr,mr));break}}}var ll=null;function ld(it){ll=it}function kc(it,at,ct,ht,pt){var Lt=it.doc;it.display.shift=!1,ht||(ht=Lt.sel);var Ot=+new Date-200,_t=pt=="paste"||it.state.pasteIncoming>Ot,Ut=xr(at),pe=null;if(_t&&ht.ranges.length>1)if(ll&&ll.text.join(`
`)==at){if(ht.ranges.length%ll.text.length==0){pe=[];for(var gn=0;gn<ll.text.length;gn++)pe.push(Lt.splitLines(ll.text[gn]))}}else Ut.length==ht.ranges.length&&it.options.pasteLinesPerSelection&&(pe=Ai(Ut,function(Or){return[Or]}));for(var Me=it.curOp.updateInput,Qn=ht.ranges.length-1;Qn>=0;Qn--){var Hn=ht.ranges[Qn],Yi=Hn.from(),$i=Hn.to();Hn.empty()&&(ct&&ct>0?Yi=Ke(Yi.line,Yi.ch-ct):it.state.overwrite&&!_t?$i=Ke($i.line,Math.min(oi(Lt,$i.line).text.length,$i.ch+Pe(Ut).length)):_t&&ll&&ll.lineWise&&ll.text.join(`
`)==Ut.join(`
`)&&(Yi=$i=Ke(Yi.line,0)));var mr={from:Yi,to:$i,text:pe?pe[Qn%pe.length]:Ut,origin:pt||(_t?"paste":it.state.cutIncoming>Ot?"cut":"+input")};Ph(it.doc,mr),Di(it,"inputRead",it,mr)}at&&!_t&&Hg(it,at),Vs(it),it.curOp.updateInput<2&&(it.curOp.updateInput=Me),it.curOp.typing=!0,it.state.pasteIncoming=it.state.cutIncoming=-1}function Wg(it,at){var ct=it.clipboardData&&it.clipboardData.getData("Text");if(ct)return it.preventDefault(),!at.isReadOnly()&&!at.options.disableInput&&lo(at,function(){return kc(at,ct,0,null,"paste")}),!0}function Hg(it,at){if(!(!it.options.electricChars||!it.options.smartIndent))for(var ct=it.doc.sel,ht=ct.ranges.length-1;ht>=0;ht--){var pt=ct.ranges[ht];if(!(pt.head.ch>100||ht&&ct.ranges[ht-1].head.line==pt.head.line)){var Lt=it.getModeAt(pt.head),Ot=!1;if(Lt.electricChars){for(var _t=0;_t<Lt.electricChars.length;_t++)if(at.indexOf(Lt.electricChars.charAt(_t))>-1){Ot=ys(it,pt.head.line,"smart");break}}else Lt.electricInput&&Lt.electricInput.test(oi(it.doc,pt.head.line).text.slice(0,pt.head.ch))&&(Ot=ys(it,pt.head.line,"smart"));Ot&&Di(it,"electricInput",it,pt.head.line)}}}function Zg(it){for(var at=[],ct=[],ht=0;ht<it.doc.sel.ranges.length;ht++){var pt=it.doc.sel.ranges[ht].head.line,Lt={anchor:Ke(pt,0),head:Ke(pt+1,0)};ct.push(Lt),at.push(it.getRange(Lt.anchor,Lt.head))}return{text:at,ranges:ct}}function Vg(it,at,ct,ht){it.setAttribute("autocorrect",ct?"":"off"),it.setAttribute("autocapitalize",ht?"":"off"),it.setAttribute("spellcheck",!!at)}function Gg(){var it=Jt("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),at=Jt("div",[it],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return ge?it.style.width="1000px":it.setAttribute("wrap","off"),Nt&&(it.style.border="1px solid black"),Vg(it),at}function Ah(it){var at=it.optionHandlers,ct=it.helpers={};it.prototype={constructor:it,focus:function(){window.focus(),this.display.input.focus()},setOption:function(ht,pt){var Lt=this.options,Ot=Lt[ht];Lt[ht]==pt&&ht!="mode"||(Lt[ht]=pt,at.hasOwnProperty(ht)&&po(this,at[ht])(this,pt,Ot),qe(this,"optionChange",this,ht))},getOption:function(ht){return this.options[ht]},getDoc:function(){return this.doc},addKeyMap:function(ht,pt){this.state.keyMaps[pt?"push":"unshift"](id(ht))},removeKeyMap:function(ht){for(var pt=this.state.keyMaps,Lt=0;Lt<pt.length;++Lt)if(pt[Lt]==ht||pt[Lt].name==ht)return pt.splice(Lt,1),!0},addOverlay:Mo(function(ht,pt){var Lt=ht.token?ht:it.getMode(this.options,ht);if(Lt.startState)throw new Error("Overlays may not be stateful.");Xn(this.state.overlays,{mode:Lt,modeSpec:ht,opaque:pt&&pt.opaque,priority:pt&&pt.priority||0},function(Ot){return Ot.priority}),this.state.modeGen++,ha(this)}),removeOverlay:Mo(function(ht){for(var pt=this.state.overlays,Lt=0;Lt<pt.length;++Lt){var Ot=pt[Lt].modeSpec;if(Ot==ht||typeof ht=="string"&&Ot.name==ht){pt.splice(Lt,1),this.state.modeGen++,ha(this);return}}}),indentLine:Mo(function(ht,pt,Lt){typeof pt!="string"&&typeof pt!="number"&&(pt==null?pt=this.options.smartIndent?"smart":"prev":pt=pt?"add":"subtract"),Vn(this.doc,ht)&&ys(this,ht,pt,Lt)}),indentSelection:Mo(function(ht){for(var pt=this.doc.sel.ranges,Lt=-1,Ot=0;Ot<pt.length;Ot++){var _t=pt[Ot];if(_t.empty())_t.head.line>Lt&&(ys(this,_t.head.line,ht,!0),Lt=_t.head.line,Ot==this.doc.sel.primIndex&&Vs(this));else{var Ut=_t.from(),pe=_t.to(),gn=Math.max(Lt,Ut.line);Lt=Math.min(this.lastLine(),pe.line-(pe.ch?0:1))+1;for(var Me=gn;Me<Lt;++Me)ys(this,Me,ht);var Qn=this.doc.sel.ranges;Ut.ch==0&&pt.length==Qn.length&&Qn[Ot].from().ch>0&&wh(this.doc,Ot,new Ca(Ut,Qn[Ot].to()),ln)}}}),getTokenAt:function(ht,pt){return qi(this,ht,pt)},getLineTokens:function(ht,pt){return qi(this,Ke(ht),pt,!0)},getTokenTypeAt:function(ht){ht=Li(this.doc,ht);var pt=Lr(this,oi(this.doc,ht.line)),Lt=0,Ot=(pt.length-1)/2,_t=ht.ch,Ut;if(_t==0)Ut=pt[2];else for(;;){var pe=Lt+Ot>>1;if((pe?pt[pe*2-1]:0)>=_t)Ot=pe;else if(pt[pe*2+1]<_t)Lt=pe+1;else{Ut=pt[pe*2+2];break}}var gn=Ut?Ut.indexOf("overlay "):-1;return gn<0?Ut:gn==0?null:Ut.slice(0,gn-1)},getModeAt:function(ht){var pt=this.doc.mode;return pt.innerMode?it.innerMode(pt,this.getTokenAt(ht).state).mode:pt},getHelper:function(ht,pt){return this.getHelpers(ht,pt)[0]},getHelpers:function(ht,pt){var Lt=[];if(!ct.hasOwnProperty(pt))return Lt;var Ot=ct[pt],_t=this.getModeAt(ht);if(typeof _t[pt]=="string")Ot[_t[pt]]&&Lt.push(Ot[_t[pt]]);else if(_t[pt])for(var Ut=0;Ut<_t[pt].length;Ut++){var pe=Ot[_t[pt][Ut]];pe&&Lt.push(pe)}else _t.helperType&&Ot[_t.helperType]?Lt.push(Ot[_t.helperType]):Ot[_t.name]&&Lt.push(Ot[_t.name]);for(var gn=0;gn<Ot._global.length;gn++){var Me=Ot._global[gn];Me.pred(_t,this)&&mn(Lt,Me.val)==-1&&Lt.push(Me.val)}return Lt},getStateAfter:function(ht,pt){var Lt=this.doc;return ht=gi(Lt,ht==null?Lt.first+Lt.size-1:ht),Hr(this,ht+1,pt).state},cursorCoords:function(ht,pt){var Lt,Ot=this.doc.sel.primary();return ht==null?Lt=Ot.head:typeof ht=="object"?Lt=Li(this.doc,ht):Lt=ht?Ot.from():Ot.to(),fr(this,Lt,pt||"page")},charCoords:function(ht,pt){return Ur(this,Li(this.doc,ht),pt||"page")},coordsChar:function(ht,pt){return ht=br(this,ht,pt||"page"),yr(this,ht.left,ht.top)},lineAtHeight:function(ht,pt){return ht=br(this,{top:ht,left:0},pt||"page").top,nn(this.doc,ht+this.display.viewOffset)},heightAtLine:function(ht,pt,Lt){var Ot=!1,_t;if(typeof ht=="number"){var Ut=this.doc.first+this.doc.size-1;ht<this.doc.first?ht=this.doc.first:ht>Ut&&(ht=Ut,Ot=!0),_t=oi(this.doc,ht)}else _t=ht;return Go(this,_t,{top:0,left:0},pt||"page",Lt||Ot).top+(Ot?this.doc.height-de(_t):0)},defaultTextHeight:function(){return xa(this.display)},defaultCharWidth:function(){return Ta(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(ht,pt,Lt,Ot,_t){var Ut=this.display;ht=fr(this,Li(this.doc,ht));var pe=ht.bottom,gn=ht.left;if(pt.style.position="absolute",pt.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(pt),Ut.sizer.appendChild(pt),Ot=="over")pe=ht.top;else if(Ot=="above"||Ot=="near"){var Me=Math.max(Ut.wrapper.clientHeight,this.doc.height),Qn=Math.max(Ut.sizer.clientWidth,Ut.lineSpace.clientWidth);(Ot=="above"||ht.bottom+pt.offsetHeight>Me)&&ht.top>pt.offsetHeight?pe=ht.top-pt.offsetHeight:ht.bottom+pt.offsetHeight<=Me&&(pe=ht.bottom),gn+pt.offsetWidth>Qn&&(gn=Qn-pt.offsetWidth)}pt.style.top=pe+"px",pt.style.left=pt.style.right="",_t=="right"?(gn=Ut.sizer.clientWidth-pt.offsetWidth,pt.style.right="0px"):(_t=="left"?gn=0:_t=="middle"&&(gn=(Ut.sizer.clientWidth-pt.offsetWidth)/2),pt.style.left=gn+"px"),Lt&&Nl(this,{left:gn,top:pe,right:gn+pt.offsetWidth,bottom:pe+pt.offsetHeight})},triggerOnKeyDown:Mo(Dg),triggerOnKeyPress:Mo(Cu),triggerOnKeyUp:Bg,triggerOnMouseDown:Mo(Eu),execCommand:function(ht){if(Ch.hasOwnProperty(ht))return Ch[ht].call(null,this)},triggerElectric:Mo(function(ht){Hg(this,ht)}),findPosH:function(ht,pt,Lt,Ot){var _t=1;pt<0&&(_t=-1,pt=-pt);for(var Ut=Li(this.doc,ht),pe=0;pe<pt&&(Ut=Fc(this.doc,Ut,_t,Lt,Ot),!Ut.hitSide);++pe);return Ut},moveH:Mo(function(ht,pt){var Lt=this;this.extendSelectionsBy(function(Ot){return Lt.display.shift||Lt.doc.extend||Ot.empty()?Fc(Lt.doc,Ot.head,ht,pt,Lt.options.rtlMoveVisually):ht<0?Ot.from():Ot.to()},Dn)}),deleteH:Mo(function(ht,pt){var Lt=this.doc.sel,Ot=this.doc;Lt.somethingSelected()?Ot.replaceSelection("",null,"+delete"):wl(this,function(_t){var Ut=Fc(Ot,_t.head,ht,pt,!1);return ht<0?{from:Ut,to:_t.head}:{from:_t.head,to:Ut}})}),findPosV:function(ht,pt,Lt,Ot){var _t=1,Ut=Ot;pt<0&&(_t=-1,pt=-pt);for(var pe=Li(this.doc,ht),gn=0;gn<pt;++gn){var Me=fr(this,pe,"div");if(Ut==null?Ut=Me.left:Me.left=Ut,pe=Lh(this,Me,_t,Lt),pe.hitSide)break}return pe},moveV:Mo(function(ht,pt){var Lt=this,Ot=this.doc,_t=[],Ut=!this.display.shift&&!Ot.extend&&Ot.sel.somethingSelected();if(Ot.extendSelectionsBy(function(gn){if(Ut)return ht<0?gn.from():gn.to();var Me=fr(Lt,gn.head,"div");gn.goalColumn!=null&&(Me.left=gn.goalColumn),_t.push(Me.left);var Qn=Lh(Lt,Me,ht,pt);return pt=="page"&&gn==Ot.sel.primary()&&Su(Lt,Ur(Lt,Qn,"div").top-Me.top),Qn},Dn),_t.length)for(var pe=0;pe<Ot.sel.ranges.length;pe++)Ot.sel.ranges[pe].goalColumn=_t[pe]}),findWordAt:function(ht){var pt=this.doc,Lt=oi(pt,ht.line).text,Ot=ht.ch,_t=ht.ch;if(Lt){var Ut=this.getHelper(ht,"wordChars");(ht.sticky=="before"||_t==Lt.length)&&Ot?--Ot:++_t;for(var pe=Lt.charAt(Ot),gn=Kt(pe,Ut)?function(Me){return Kt(Me,Ut)}:/\s/.test(pe)?function(Me){return/\s/.test(Me)}:function(Me){return!/\s/.test(Me)&&!Kt(Me)};Ot>0&&gn(Lt.charAt(Ot-1));)--Ot;for(;_t<Lt.length&&gn(Lt.charAt(_t));)++_t}return new Ca(Ke(ht.line,Ot),Ke(ht.line,_t))},toggleOverwrite:function(ht){ht!=null&&ht==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?sn(this.display.cursorDiv,"CodeMirror-overwrite"):Ht(this.display.cursorDiv,"CodeMirror-overwrite"),qe(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Le()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Mo(function(ht,pt){Yl(this,ht,pt)}),getScrollInfo:function(){var ht=this.display.scroller;return{left:ht.scrollLeft,top:ht.scrollTop,height:ht.scrollHeight-Vr(this)-this.display.barHeight,width:ht.scrollWidth-Vr(this)-this.display.barWidth,clientHeight:Ao(this),clientWidth:fo(this)}},scrollIntoView:Mo(function(ht,pt){ht==null?(ht={from:this.doc.sel.primary().head,to:null},pt==null&&(pt=this.options.cursorScrollMargin)):typeof ht=="number"?ht={from:Ke(ht,0),to:null}:ht.from==null&&(ht={from:ht,to:null}),ht.to||(ht.to=ht.from),ht.margin=pt||0,ht.from.line!=null?Uo(this,ht):xu(this,ht.from,ht.to,ht.margin)}),setSize:Mo(function(ht,pt){var Lt=this,Ot=function(Ut){return typeof Ut=="number"||/^\d+$/.test(String(Ut))?Ut+"px":Ut};ht!=null&&(this.display.wrapper.style.width=Ot(ht)),pt!=null&&(this.display.wrapper.style.height=Ot(pt)),this.options.lineWrapping&&Wo(this);var _t=this.display.viewFrom;this.doc.iter(_t,this.display.viewTo,function(Ut){if(Ut.widgets){for(var pe=0;pe<Ut.widgets.length;pe++)if(Ut.widgets[pe].noHScroll){So(Lt,_t,"widget");break}}++_t}),this.curOp.forceUpdate=!0,qe(this,"refresh",this)}),operation:function(ht){return lo(this,ht)},startOperation:function(){return xo(this)},endOperation:function(){return Ua(this)},refresh:Mo(function(){var ht=this.display.cachedTextHeight;ha(this),this.curOp.forceUpdate=!0,Ba(this),Yl(this,this.doc.scrollLeft,this.doc.scrollTop),mh(this.display),(ht==null||Math.abs(ht-xa(this.display))>.5||this.options.lineWrapping)&&Qr(this),qe(this,"refresh",this)}),swapDoc:Mo(function(ht){var pt=this.doc;return pt.cm=null,this.state.selectingText&&this.state.selectingText(),sf(this,ht),Ba(this),this.display.input.reset(),Yl(this,ht.scrollLeft,ht.scrollTop),this.curOp.forceScroll=!0,Di(this,"swapDoc",this,pt),pt}),phrase:function(ht){var pt=this.options.phrases;return pt&&Object.prototype.hasOwnProperty.call(pt,ht)?pt[ht]:ht},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}},ti(it),it.registerHelper=function(ht,pt,Lt){ct.hasOwnProperty(ht)||(ct[ht]=it[ht]={_global:[]}),ct[ht][pt]=Lt},it.registerGlobalHelper=function(ht,pt,Lt,Ot){it.registerHelper(ht,pt,Ot),ct[ht]._global.push({pred:Lt,val:Ot})}}function Fc(it,at,ct,ht,pt){var Lt=at,Ot=ct,_t=oi(it,at.line),Ut=pt&&it.direction=="rtl"?-ct:ct;function pe(){var to=at.line+Ut;return to<it.first||to>=it.first+it.size?!1:(at=new Ke(to,at.ch,at.sticky),_t=oi(it,to))}function gn(to){var Kr;if(ht=="codepoint"){var oo=_t.text.charCodeAt(at.ch+(ht>0?0:-1));isNaN(oo)?Kr=null:Kr=new Ke(at.line,Math.max(0,Math.min(_t.text.length,at.ch+ct*(oo>=55296&&oo<56320?2:1))),-ct)}else pt?Kr=pf(it.cm,_t,at,ct):Kr=ss(_t,at,ct);if(Kr==null)if(!to&&pe())at=bc(pt,it.cm,_t,at.line,Ut);else return!1;else at=Kr;return!0}if(ht=="char"||ht=="codepoint")gn();else if(ht=="column")gn(!0);else if(ht=="word"||ht=="group")for(var Me=null,Qn=ht=="group",Hn=it.cm&&it.cm.getHelper(at,"wordChars"),Yi=!0;!(ct<0&&!gn(!Yi));Yi=!1){var $i=_t.text.charAt(at.ch)||`
`,mr=Kt($i,Hn)?"w":Qn&&$i==`
`?"n":!Qn||/\s/.test($i)?null:"p";if(Qn&&!Yi&&!mr&&(mr="s"),Me&&Me!=mr){ct<0&&(ct=1,gn(),at.sticky="after");break}if(mr&&(Me=mr),ct>0&&!gn(!Yi))break}var Or=wc(it,at,Lt,Ot,!0);return ai(Lt,Or)&&(Or.hitSide=!0),Or}function Lh(it,at,ct,ht){var pt=it.doc,Lt=at.left,Ot;if(ht=="page"){var _t=Math.min(it.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Ut=Math.max(_t-.5*xa(it.display),3);Ot=(ct>0?at.bottom:at.top)+ct*Ut}else ht=="line"&&(Ot=ct>0?at.bottom+3:at.top-3);for(var pe;pe=yr(it,Lt,Ot),!!pe.outside;){if(ct<0?Ot<=0:Ot>=pt.height){pe.hitSide=!0;break}Ot+=ct*5}return pe}var ka=function(it){this.cm=it,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Qt,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};ka.prototype.init=function(it){var at=this,ct=this,ht=ct.cm,pt=ct.div=it.lineDiv;Vg(pt,ht.options.spellcheck,ht.options.autocorrect,ht.options.autocapitalize);function Lt(_t){for(var Ut=_t.target;Ut;Ut=Ut.parentNode){if(Ut==pt)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Ut.className))break}return!1}An(pt,"paste",function(_t){!Lt(_t)||pn(ht,_t)||Wg(_t,ht)||jt<=11&&setTimeout(po(ht,function(){return at.updateFromDOM()}),20)}),An(pt,"compositionstart",function(_t){at.composing={data:_t.data,done:!1}}),An(pt,"compositionupdate",function(_t){at.composing||(at.composing={data:_t.data,done:!1})}),An(pt,"compositionend",function(_t){at.composing&&(_t.data!=at.composing.data&&at.readFromDOMSoon(),at.composing.done=!0)}),An(pt,"touchstart",function(){return ct.forceCompositionEnd()}),An(pt,"input",function(){at.composing||at.readFromDOMSoon()});function Ot(_t){if(!(!Lt(_t)||pn(ht,_t))){if(ht.somethingSelected())ld({lineWise:!1,text:ht.getSelections()}),_t.type=="cut"&&ht.replaceSelection("",null,"cut");else if(ht.options.lineWiseCopyCut){var Ut=Zg(ht);ld({lineWise:!0,text:Ut.text}),_t.type=="cut"&&ht.operation(function(){ht.setSelections(Ut.ranges,0,ln),ht.replaceSelection("",null,"cut")})}else return;if(_t.clipboardData){_t.clipboardData.clearData();var pe=ll.text.join(`
`);if(_t.clipboardData.setData("Text",pe),_t.clipboardData.getData("Text")==pe){_t.preventDefault();return}}var gn=Gg(),Me=gn.firstChild;ht.display.lineSpace.insertBefore(gn,ht.display.lineSpace.firstChild),Me.value=ll.text.join(`
`);var Qn=document.activeElement;fn(Me),setTimeout(function(){ht.display.lineSpace.removeChild(gn),Qn.focus(),Qn==pt&&ct.showPrimarySelection()},50)}}An(pt,"copy",Ot),An(pt,"cut",Ot)},ka.prototype.screenReaderLabelChanged=function(it){it?this.div.setAttribute("aria-label",it):this.div.removeAttribute("aria-label")},ka.prototype.prepareSelection=function(){var it=Dl(this.cm,!1);return it.focus=document.activeElement==this.div,it},ka.prototype.showSelection=function(it,at){!it||!this.cm.display.view.length||((it.focus||at)&&this.showPrimarySelection(),this.showMultipleSelections(it))},ka.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},ka.prototype.showPrimarySelection=function(){var it=this.getSelection(),at=this.cm,ct=at.doc.sel.primary(),ht=ct.from(),pt=ct.to();if(at.display.viewTo==at.display.viewFrom||ht.line>=at.display.viewTo||pt.line<at.display.viewFrom){it.removeAllRanges();return}var Lt=Dc(at,it.anchorNode,it.anchorOffset),Ot=Dc(at,it.focusNode,it.focusOffset);if(!(Lt&&!Lt.bad&&Ot&&!Ot.bad&&Gn(xi(Lt,Ot),ht)==0&&Gn(ki(Lt,Ot),pt)==0)){var _t=at.display.view,Ut=ht.line>=at.display.viewFrom&&Af(at,ht)||{node:_t[0].measure.map[2],offset:0},pe=pt.line<at.display.viewTo&&Af(at,pt);if(!pe){var gn=_t[_t.length-1].measure,Me=gn.maps?gn.maps[gn.maps.length-1]:gn.map;pe={node:Me[Me.length-1],offset:Me[Me.length-2]-Me[Me.length-3]}}if(!Ut||!pe){it.removeAllRanges();return}var Qn=it.rangeCount&&it.getRangeAt(0),Hn;try{Hn=we(Ut.node,Ut.offset,pe.offset,pe.node)}catch(Yi){}Hn&&(!yt&&at.state.focused?(it.collapse(Ut.node,Ut.offset),Hn.collapsed||(it.removeAllRanges(),it.addRange(Hn))):(it.removeAllRanges(),it.addRange(Hn)),Qn&&it.anchorNode==null?it.addRange(Qn):yt&&this.startGracePeriod()),this.rememberSelection()}},ka.prototype.startGracePeriod=function(){var it=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){it.gracePeriod=!1,it.selectionChanged()&&it.cm.operation(function(){return it.cm.curOp.selectionChanged=!0})},20)},ka.prototype.showMultipleSelections=function(it){Vt(this.cm.display.cursorDiv,it.cursors),Vt(this.cm.display.selectionDiv,it.selection)},ka.prototype.rememberSelection=function(){var it=this.getSelection();this.lastAnchorNode=it.anchorNode,this.lastAnchorOffset=it.anchorOffset,this.lastFocusNode=it.focusNode,this.lastFocusOffset=it.focusOffset},ka.prototype.selectionInEditor=function(){var it=this.getSelection();if(!it.rangeCount)return!1;var at=it.getRangeAt(0).commonAncestorContainer;return De(this.div,at)},ka.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},ka.prototype.blur=function(){this.div.blur()},ka.prototype.getField=function(){return this.div},ka.prototype.supportsTouch=function(){return!0},ka.prototype.receivedFocus=function(){var it=this;this.selectionInEditor()?this.pollSelection():lo(this.cm,function(){return it.cm.curOp.selectionChanged=!0});function at(){it.cm.state.focused&&(it.pollSelection(),it.polling.set(it.cm.options.pollInterval,at))}this.polling.set(this.cm.options.pollInterval,at)},ka.prototype.selectionChanged=function(){var it=this.getSelection();return it.anchorNode!=this.lastAnchorNode||it.anchorOffset!=this.lastAnchorOffset||it.focusNode!=this.lastFocusNode||it.focusOffset!=this.lastFocusOffset},ka.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var it=this.getSelection(),at=this.cm;if(nt&&Ce&&this.cm.display.gutterSpecs.length&&Kg(it.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var ct=Dc(at,it.anchorNode,it.anchorOffset),ht=Dc(at,it.focusNode,it.focusOffset);ct&&ht&&lo(at,function(){Ks(at.doc,qu(ct,ht),ln),(ct.bad||ht.bad)&&(at.curOp.selectionChanged=!0)})}}},ka.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var it=this.cm,at=it.display,ct=it.doc.sel.primary(),ht=ct.from(),pt=ct.to();if(ht.ch==0&&ht.line>it.firstLine()&&(ht=Ke(ht.line-1,oi(it.doc,ht.line-1).length)),pt.ch==oi(it.doc,pt.line).text.length&&pt.line<it.lastLine()&&(pt=Ke(pt.line+1,0)),ht.line<at.viewFrom||pt.line>at.viewTo-1)return!1;var Lt,Ot,_t;ht.line==at.viewFrom||(Lt=es(it,ht.line))==0?(Ot=ee(at.view[0].line),_t=at.view[0].node):(Ot=ee(at.view[Lt].line),_t=at.view[Lt-1].node.nextSibling);var Ut=es(it,pt.line),pe,gn;if(Ut==at.view.length-1?(pe=at.viewTo-1,gn=at.lineDiv.lastChild):(pe=ee(at.view[Ut+1].line)-1,gn=at.view[Ut+1].node.previousSibling),!_t)return!1;for(var Me=it.doc.splitLines(Yd(it,_t,gn,Ot,pe)),Qn=fe(it.doc,Ke(Ot,0),Ke(pe,oi(it.doc,pe).text.length));Me.length>1&&Qn.length>1;)if(Pe(Me)==Pe(Qn))Me.pop(),Qn.pop(),pe--;else if(Me[0]==Qn[0])Me.shift(),Qn.shift(),Ot++;else break;for(var Hn=0,Yi=0,$i=Me[0],mr=Qn[0],Or=Math.min($i.length,mr.length);Hn<Or&&$i.charCodeAt(Hn)==mr.charCodeAt(Hn);)++Hn;for(var to=Pe(Me),Kr=Pe(Qn),oo=Math.min(to.length-(Me.length==1?Hn:0),Kr.length-(Qn.length==1?Hn:0));Yi<oo&&to.charCodeAt(to.length-Yi-1)==Kr.charCodeAt(Kr.length-Yi-1);)++Yi;if(Me.length==1&&Qn.length==1&&Ot==ht.line)for(;Hn&&Hn>ht.ch&&to.charCodeAt(to.length-Yi-1)==Kr.charCodeAt(Kr.length-Yi-1);)Hn--,Yi++;Me[Me.length-1]=to.slice(0,to.length-Yi).replace(/^\u200b+/,""),Me[0]=Me[0].slice(Hn).replace(/\u200b+$/,"");var ko=Ke(Ot,Hn),Gr=Ke(pe,Qn.length?Pe(Qn).length-Yi:0);if(Me.length>1||Me[0]||Gn(ko,Gr))return td(it.doc,Me,ko,Gr,"+input"),!0},ka.prototype.ensurePolled=function(){this.forceCompositionEnd()},ka.prototype.reset=function(){this.forceCompositionEnd()},ka.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},ka.prototype.readFromDOMSoon=function(){var it=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(it.readDOMTimeout=null,it.composing)if(it.composing.done)it.composing=null;else return;it.updateFromDOM()},80))},ka.prototype.updateFromDOM=function(){var it=this;(this.cm.isReadOnly()||!this.pollContent())&&lo(this.cm,function(){return ha(it.cm)})},ka.prototype.setUneditable=function(it){it.contentEditable="false"},ka.prototype.onKeyPress=function(it){it.charCode==0||this.composing||(it.preventDefault(),this.cm.isReadOnly()||po(this.cm,kc)(this.cm,String.fromCharCode(it.charCode==null?it.keyCode:it.charCode),0))},ka.prototype.readOnlyChanged=function(it){this.div.contentEditable=String(it!="nocursor")},ka.prototype.onContextMenu=function(){},ka.prototype.resetPosition=function(){},ka.prototype.needsContentAttribute=!0;function Af(it,at){var ct=ra(it,at.line);if(!ct||ct.hidden)return null;var ht=oi(it.doc,at.line),pt=ro(ct,ht,at.line),Lt=En(ht,it.doc.direction),Ot="left";if(Lt){var _t=Ne(Lt,at.ch);Ot=_t%2?"right":"left"}var Ut=Yo(pt.map,at.ch,Ot);return Ut.offset=Ut.collapse=="right"?Ut.end:Ut.start,Ut}function Kg(it){for(var at=it;at;at=at.parentNode)if(/CodeMirror-gutter-wrapper/.test(at.className))return!0;return!1}function Kd(it,at){return at&&(it.bad=!0),it}function Yd(it,at,ct,ht,pt){var Lt="",Ot=!1,_t=it.doc.lineSeparator(),Ut=!1;function pe(Hn){return function(Yi){return Yi.id==Hn}}function gn(){Ot&&(Lt+=_t,Ut&&(Lt+=_t),Ot=Ut=!1)}function Me(Hn){Hn&&(gn(),Lt+=Hn)}function Qn(Hn){if(Hn.nodeType==1){var Yi=Hn.getAttribute("cm-text");if(Yi){Me(Yi);return}var $i=Hn.getAttribute("cm-marker"),mr;if($i){var Or=it.findMarks(Ke(ht,0),Ke(pt+1,0),pe(+$i));Or.length&&(mr=Or[0].find(0))&&Me(fe(it.doc,mr.from,mr.to).join(_t));return}if(Hn.getAttribute("contenteditable")=="false")return;var to=/^(pre|div|p|li|table|br)$/i.test(Hn.nodeName);if(!/^br$/i.test(Hn.nodeName)&&Hn.textContent.length==0)return;to&&gn();for(var Kr=0;Kr<Hn.childNodes.length;Kr++)Qn(Hn.childNodes[Kr]);/^(pre|p)$/i.test(Hn.nodeName)&&(Ut=!0),to&&(Ot=!0)}else Hn.nodeType==3&&Me(Hn.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Qn(at),at!=ct;)at=at.nextSibling,Ut=!1;return Lt}function Dc(it,at,ct){var ht;if(at==it.display.lineDiv){if(ht=it.display.lineDiv.childNodes[ct],!ht)return Kd(it.clipPos(Ke(it.display.viewTo-1)),!0);at=null,ct=0}else for(ht=at;;ht=ht.parentNode){if(!ht||ht==it.display.lineDiv)return null;if(ht.parentNode&&ht.parentNode==it.display.lineDiv)break}for(var pt=0;pt<it.display.view.length;pt++){var Lt=it.display.view[pt];if(Lt.node==ht)return hm(Lt,at,ct)}}function hm(it,at,ct){var ht=it.text.firstChild,pt=!1;if(!at||!De(ht,at))return Kd(Ke(ee(it.line),0),!0);if(at==ht&&(pt=!0,at=ht.childNodes[ct],ct=0,!at)){var Lt=it.rest?Pe(it.rest):it.line;return Kd(Ke(ee(Lt),Lt.text.length),pt)}var Ot=at.nodeType==3?at:null,_t=at;for(!Ot&&at.childNodes.length==1&&at.firstChild.nodeType==3&&(Ot=at.firstChild,ct&&(ct=Ot.nodeValue.length));_t.parentNode!=ht;)_t=_t.parentNode;var Ut=it.measure,pe=Ut.maps;function gn(mr,Or,to){for(var Kr=-1;Kr<(pe?pe.length:0);Kr++)for(var oo=Kr<0?Ut.map:pe[Kr],ko=0;ko<oo.length;ko+=3){var Gr=oo[ko+2];if(Gr==mr||Gr==Or){var _o=ee(Kr<0?it.line:it.rest[Kr]),ja=oo[ko]+to;return(to<0||Gr!=mr)&&(ja=oo[ko+(to?1:0)]),Ke(_o,ja)}}}var Me=gn(Ot,_t,ct);if(Me)return Kd(Me,pt);for(var Qn=_t.nextSibling,Hn=Ot?Ot.nodeValue.length-ct:0;Qn;Qn=Qn.nextSibling){if(Me=gn(Qn,Qn.firstChild,0),Me)return Kd(Ke(Me.line,Me.ch-Hn),pt);Hn+=Qn.textContent.length}for(var Yi=_t.previousSibling,$i=ct;Yi;Yi=Yi.previousSibling){if(Me=gn(Yi,Yi.firstChild,-1),Me)return Kd(Ke(Me.line,Me.ch+$i),pt);$i+=Yi.textContent.length}}var gs=function(it){this.cm=it,this.prevInput="",this.pollingFast=!1,this.polling=new Qt,this.hasSelection=!1,this.composing=null};gs.prototype.init=function(it){var at=this,ct=this,ht=this.cm;this.createField(it);var pt=this.textarea;it.wrapper.insertBefore(this.wrapper,it.wrapper.firstChild),Nt&&(pt.style.width="0px"),An(pt,"input",function(){be&&jt>=9&&at.hasSelection&&(at.hasSelection=null),ct.poll()}),An(pt,"paste",function(Ot){pn(ht,Ot)||Wg(Ot,ht)||(ht.state.pasteIncoming=+new Date,ct.fastPoll())});function Lt(Ot){if(!pn(ht,Ot)){if(ht.somethingSelected())ld({lineWise:!1,text:ht.getSelections()});else if(ht.options.lineWiseCopyCut){var _t=Zg(ht);ld({lineWise:!0,text:_t.text}),Ot.type=="cut"?ht.setSelections(_t.ranges,null,ln):(ct.prevInput="",pt.value=_t.text.join(`
`),fn(pt))}else return;Ot.type=="cut"&&(ht.state.cutIncoming=+new Date)}}An(pt,"cut",Lt),An(pt,"copy",Lt),An(it.scroller,"paste",function(Ot){if(!(Jr(it,Ot)||pn(ht,Ot))){if(!pt.dispatchEvent){ht.state.pasteIncoming=+new Date,ct.focus();return}var _t=new Event("paste");_t.clipboardData=Ot.clipboardData,pt.dispatchEvent(_t)}}),An(it.lineSpace,"selectstart",function(Ot){Jr(it,Ot)||yi(Ot)}),An(pt,"compositionstart",function(){var Ot=ht.getCursor("from");ct.composing&&ct.composing.range.clear(),ct.composing={start:Ot,range:ht.markText(Ot,ht.getCursor("to"),{className:"CodeMirror-composing"})}}),An(pt,"compositionend",function(){ct.composing&&(ct.poll(),ct.composing.range.clear(),ct.composing=null)})},gs.prototype.createField=function(it){this.wrapper=Gg(),this.textarea=this.wrapper.firstChild},gs.prototype.screenReaderLabelChanged=function(it){it?this.textarea.setAttribute("aria-label",it):this.textarea.removeAttribute("aria-label")},gs.prototype.prepareSelection=function(){var it=this.cm,at=it.display,ct=it.doc,ht=Dl(it);if(it.options.moveInputWithCursor){var pt=fr(it,ct.sel.primary().head,"div"),Lt=at.wrapper.getBoundingClientRect(),Ot=at.lineDiv.getBoundingClientRect();ht.teTop=Math.max(0,Math.min(at.wrapper.clientHeight-10,pt.top+Ot.top-Lt.top)),ht.teLeft=Math.max(0,Math.min(at.wrapper.clientWidth-10,pt.left+Ot.left-Lt.left))}return ht},gs.prototype.showSelection=function(it){var at=this.cm,ct=at.display;Vt(ct.cursorDiv,it.cursors),Vt(ct.selectionDiv,it.selection),it.teTop!=null&&(this.wrapper.style.top=it.teTop+"px",this.wrapper.style.left=it.teLeft+"px")},gs.prototype.reset=function(it){if(!(this.contextMenuPending||this.composing)){var at=this.cm;if(at.somethingSelected()){this.prevInput="";var ct=at.getSelection();this.textarea.value=ct,at.state.focused&&fn(this.textarea),be&&jt>=9&&(this.hasSelection=ct)}else it||(this.prevInput=this.textarea.value="",be&&jt>=9&&(this.hasSelection=null))}},gs.prototype.getField=function(){return this.textarea},gs.prototype.supportsTouch=function(){return!1},gs.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!et||Le()!=this.textarea))try{this.textarea.focus()}catch(it){}},gs.prototype.blur=function(){this.textarea.blur()},gs.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},gs.prototype.receivedFocus=function(){this.slowPoll()},gs.prototype.slowPoll=function(){var it=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){it.poll(),it.cm.state.focused&&it.slowPoll()})},gs.prototype.fastPoll=function(){var it=!1,at=this;at.pollingFast=!0;function ct(){var ht=at.poll();!ht&&!it?(it=!0,at.polling.set(60,ct)):(at.pollingFast=!1,at.slowPoll())}at.polling.set(20,ct)},gs.prototype.poll=function(){var it=this,at=this.cm,ct=this.textarea,ht=this.prevInput;if(this.contextMenuPending||!at.state.focused||Ct(ct)&&!ht&&!this.composing||at.isReadOnly()||at.options.disableInput||at.state.keySeq)return!1;var pt=ct.value;if(pt==ht&&!at.somethingSelected())return!1;if(be&&jt>=9&&this.hasSelection===pt||dt&&/[\uf700-\uf7ff]/.test(pt))return at.display.input.reset(),!1;if(at.doc.sel==at.display.selForContextMenu){var Lt=pt.charCodeAt(0);if(Lt==8203&&!ht&&(ht="\u200B"),Lt==8666)return this.reset(),this.cm.execCommand("undo")}for(var Ot=0,_t=Math.min(ht.length,pt.length);Ot<_t&&ht.charCodeAt(Ot)==pt.charCodeAt(Ot);)++Ot;return lo(at,function(){kc(at,pt.slice(Ot),ht.length-Ot,null,it.composing?"*compose":null),pt.length>1e3||pt.indexOf(`
`)>-1?ct.value=it.prevInput="":it.prevInput=pt,it.composing&&(it.composing.range.clear(),it.composing.range=at.markText(it.composing.start,at.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},gs.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},gs.prototype.onKeyPress=function(){be&&jt>=9&&(this.hasSelection=null),this.fastPoll()},gs.prototype.onContextMenu=function(it){var at=this,ct=at.cm,ht=ct.display,pt=at.textarea;at.contextMenuPending&&at.contextMenuPending();var Lt=Ya(ct,it),Ot=ht.scroller.scrollTop;if(!Lt||Mt)return;var _t=ct.options.resetSelectionOnContextMenu;_t&&ct.doc.sel.contains(Lt)==-1&&po(ct,Ks)(ct.doc,qu(Lt),ln);var Ut=pt.style.cssText,pe=at.wrapper.style.cssText,gn=at.wrapper.offsetParent.getBoundingClientRect();at.wrapper.style.cssText="position: static",pt.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(it.clientY-gn.top-5)+"px; left: "+(it.clientX-gn.left-5)+`px;
z-index: 1000; background: `+(be?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Me;ge&&(Me=window.scrollY),ht.input.focus(),ge&&window.scrollTo(null,Me),ht.input.reset(),ct.somethingSelected()||(pt.value=at.prevInput=" "),at.contextMenuPending=Hn,ht.selForContextMenu=ct.doc.sel,clearTimeout(ht.detectingSelectAll);function Qn(){if(pt.selectionStart!=null){var $i=ct.somethingSelected(),mr="\u200B"+($i?pt.value:"");pt.value="\u21DA",pt.value=mr,at.prevInput=$i?"":"\u200B",pt.selectionStart=1,pt.selectionEnd=mr.length,ht.selForContextMenu=ct.doc.sel}}function Hn(){if(at.contextMenuPending==Hn&&(at.contextMenuPending=!1,at.wrapper.style.cssText=pe,pt.style.cssText=Ut,be&&jt<9&&ht.scrollbars.setScrollTop(ht.scroller.scrollTop=Ot),pt.selectionStart!=null)){(!be||be&&jt<9)&&Qn();var $i=0,mr=function(){ht.selForContextMenu==ct.doc.sel&&pt.selectionStart==0&&pt.selectionEnd>0&&at.prevInput=="\u200B"?po(ct,as)(ct):$i++<10?ht.detectingSelectAll=setTimeout(mr,500):(ht.selForContextMenu=null,ht.input.reset())};ht.detectingSelectAll=setTimeout(mr,200)}}if(be&&jt>=9&&Qn(),bt){Ki(it);var Yi=function(){ze(window,"mouseup",Yi),setTimeout(Hn,20)};An(window,"mouseup",Yi)}else setTimeout(Hn,50)},gs.prototype.readOnlyChanged=function(it){it||this.reset(),this.textarea.disabled=it=="nocursor",this.textarea.readOnly=!!it},gs.prototype.setUneditable=function(){},gs.prototype.needsContentAttribute=!1;function dm(it,at){if(at=at?an(at):{},at.value=it.value,!at.tabindex&&it.tabIndex&&(at.tabindex=it.tabIndex),!at.placeholder&&it.placeholder&&(at.placeholder=it.placeholder),at.autofocus==null){var ct=Le();at.autofocus=ct==it||it.getAttribute("autofocus")!=null&&ct==document.body}function ht(){it.value=_t.getValue()}var pt;if(it.form&&(An(it.form,"submit",ht),!at.leaveSubmitMethodAlone)){var Lt=it.form;pt=Lt.submit;try{var Ot=Lt.submit=function(){ht(),Lt.submit=pt,Lt.submit(),Lt.submit=Ot}}catch(Ut){}}at.finishInit=function(Ut){Ut.save=ht,Ut.getTextArea=function(){return it},Ut.toTextArea=function(){Ut.toTextArea=isNaN,ht(),it.parentNode.removeChild(Ut.getWrapperElement()),it.style.display="",it.form&&(ze(it.form,"submit",ht),!at.leaveSubmitMethodAlone&&typeof it.form.submit=="function"&&(it.form.submit=pt))}},it.style.display="none";var _t=da(function(Ut){return it.parentNode.insertBefore(Ut,it.nextSibling)},at);return _t}function Ud(it){it.off=ze,it.on=An,it.wheelEventPixels=Ol,it.Doc=Is,it.splitLines=xr,it.countColumn=Se,it.findColumn=fi,it.isWordChar=Tt,it.Pass=jn,it.signal=qe,it.Line=tn,it.changeEnd=Sh,it.scrollbarModel=Bl,it.Pos=Ke,it.cmpPos=Gn,it.modes=sr,it.mimeModes=Oi,it.resolveMode=kn,it.getMode=ve,it.modeExtensions=ye,it.extendMode=xe,it.copyState=Kn,it.startState=ui,it.innerMode=$n,it.commands=Ch,it.keyMap=xl,it.keyName=im,it.isModifierKey=jd,it.lookupKey=_l,it.normalizeKeyMap=Lg,it.StringStream=Sn,it.SharedTextMarker=Tu,it.TextMarker=Qe,it.LineWidget=eh,it.e_preventDefault=yi,it.e_stopPropagation=vn,it.e_stop=Ki,it.addClass=sn,it.contains=De,it.rmClass=Ht,it.keyNames=Ou}lm(da),Ah(da);var nh="iter insert remove copy getEditor constructor".split(" ");for(var Nc in Is.prototype)Is.prototype.hasOwnProperty(Nc)&&mn(nh,Nc)<0&&(da.prototype[Nc]=function(it){return function(){return it.apply(this.doc,arguments)}}(Is.prototype[Nc]));return ti(Is),da.inputStyles={textarea:gs,contenteditable:ka},da.defineMode=function(it){!da.defaults.mode&&it!="null"&&(da.defaults.mode=it),Nn.apply(this,arguments)},da.defineMIME=Cn,da.defineMode("null",function(){return{token:function(it){return it.skipToEnd()}}}),da.defineMIME("text/plain","null"),da.defineExtension=function(it,at){da.prototype[it]=at},da.defineDocExtension=function(it,at){Is.prototype[it]=at},da.fromTextArea=dm,Ud(da),da.version="5.58.2",da})},25419:function(Jn,pi,Dt){(function(yt){yt(Dt(89780),Dt(15525),Dt(98101))})(function(yt){"use strict";yt.defineMode("markdown",function(te,re){var Fe=yt.getMode(te,"text/html"),be=Fe.name=="null";function jt(Se){if(yt.findModeByName){var Qt=yt.findModeByName(Se);Qt&&(Se=Qt.mime||Qt.mimes[0])}var mn=yt.getMode(te,Se);return mn.name=="null"?null:mn}re.highlightFormatting===void 0&&(re.highlightFormatting=!1),re.maxBlockquoteDepth===void 0&&(re.maxBlockquoteDepth=0),re.taskLists===void 0&&(re.taskLists=!1),re.strikethrough===void 0&&(re.strikethrough=!1),re.emoji===void 0&&(re.emoji=!1),re.fencedCodeBlockHighlighting===void 0&&(re.fencedCodeBlockHighlighting=!0),re.fencedCodeBlockDefaultMode===void 0&&(re.fencedCodeBlockDefaultMode="text/plain"),re.xml===void 0&&(re.xml=!0),re.tokenTypeOverrides===void 0&&(re.tokenTypeOverrides={});var ge={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 Ze in ge)ge.hasOwnProperty(Ze)&&re.tokenTypeOverrides[Ze]&&(ge[Ze]=re.tokenTypeOverrides[Ze]);var Ce=/^([*\-_])(?:\s*\1){2,}\s*$/,Mt=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,Re=/^\[(x| )\](?=\s)/i,Yt=re.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,We=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Nt=/^[^#!\[\]*_\\<>` "'(~:]+/,nt=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,et=/^\s*\[[^\]]+?\]:.*$/,dt=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,lt=" ";function gt(Se,Qt,mn){return Qt.f=Qt.inline=mn,mn(Se,Qt)}function mt(Se,Qt,mn){return Qt.f=Qt.block=mn,mn(Se,Qt)}function St(Se){return!Se||!/\S/.test(Se.string)}function bt(Se){if(Se.linkTitle=!1,Se.linkHref=!1,Se.linkText=!1,Se.em=!1,Se.strong=!1,Se.strikethrough=!1,Se.quote=0,Se.indentedCode=!1,Se.f==Ht){var Qt=be;if(!Qt){var mn=yt.innerMode(Fe,Se.htmlState);Qt=mn.mode.name=="xml"&&mn.state.tagStart===null&&!mn.state.context&&mn.state.tokenize.isInText}Qt&&(Se.f=Ee,Se.block=It,Se.htmlState=null)}return Se.trailingSpace=0,Se.trailingSpaceNewLine=!1,Se.prevLine=Se.thisLine,Se.thisLine={stream:null},null}function It(Se,Qt){var mn=Se.column()===Qt.indentation,ii=St(Qt.prevLine.stream),jn=Qt.indentedCode,ln=Qt.prevLine.hr,qn=Qt.list!==!1,Dn=(Qt.listStack[Qt.listStack.length-1]||0)+3;Qt.indentedCode=!1;var fi=Qt.indentation;if(Qt.indentationDiff===null&&(Qt.indentationDiff=Qt.indentation,qn)){for(Qt.list=null;fi<Qt.listStack[Qt.listStack.length-1];)Qt.listStack.pop(),Qt.listStack.length?Qt.indentation=Qt.listStack[Qt.listStack.length-1]:Qt.list=!1;Qt.list!==!1&&(Qt.indentationDiff=fi-Qt.listStack[Qt.listStack.length-1])}var Ve=!ii&&!ln&&!Qt.prevLine.header&&(!qn||!jn)&&!Qt.prevLine.fencedCodeEnd,On=(Qt.list===!1||ln||ii)&&Qt.indentation<=Dn&&Se.match(Ce),Pe=null;if(Qt.indentationDiff>=4&&(jn||Qt.prevLine.fencedCodeEnd||Qt.prevLine.header||ii))return Se.skipToEnd(),Qt.indentedCode=!0,ge.code;if(Se.eatSpace())return null;if(mn&&Qt.indentation<=Dn&&(Pe=Se.match(Yt))&&Pe[1].length<=6)return Qt.quote=0,Qt.header=Pe[1].length,Qt.thisLine.header=!0,re.highlightFormatting&&(Qt.formatting="header"),Qt.f=Qt.inline,Vt(Qt);if(Qt.indentation<=Dn&&Se.eat(">"))return Qt.quote=mn?1:Qt.quote+1,re.highlightFormatting&&(Qt.formatting="quote"),Se.eatSpace(),Vt(Qt);if(!On&&!Qt.setext&&mn&&Qt.indentation<=Dn&&(Pe=Se.match(Mt))){var Ai=Pe[1]?"ol":"ul";return Qt.indentation=fi+Se.current().length,Qt.list=!0,Qt.quote=0,Qt.listStack.push(Qt.indentation),Qt.em=!1,Qt.strong=!1,Qt.code=!1,Qt.strikethrough=!1,re.taskLists&&Se.match(Re,!1)&&(Qt.taskList=!0),Qt.f=Qt.inline,re.highlightFormatting&&(Qt.formatting=["list","list-"+Ai]),Vt(Qt)}else{if(mn&&Qt.indentation<=Dn&&(Pe=Se.match(nt,!0)))return Qt.quote=0,Qt.fencedEndRE=new RegExp(Pe[1]+"+ *$"),Qt.localMode=re.fencedCodeBlockHighlighting&&jt(Pe[2]||re.fencedCodeBlockDefaultMode),Qt.localMode&&(Qt.localState=yt.startState(Qt.localMode)),Qt.f=Qt.block=se,re.highlightFormatting&&(Qt.formatting="code-block"),Qt.code=-1,Vt(Qt);if(Qt.setext||(!Ve||!qn)&&!Qt.quote&&Qt.list===!1&&!Qt.code&&!On&&!et.test(Se.string)&&(Pe=Se.lookAhead(1))&&(Pe=Pe.match(We)))return Qt.setext?(Qt.header=Qt.setext,Qt.setext=0,Se.skipToEnd(),re.highlightFormatting&&(Qt.formatting="header")):(Qt.header=Pe[0].charAt(0)=="="?1:2,Qt.setext=Qt.header),Qt.thisLine.header=!0,Qt.f=Qt.inline,Vt(Qt);if(On)return Se.skipToEnd(),Qt.hr=!0,Qt.thisLine.hr=!0,ge.hr;if(Se.peek()==="[")return gt(Se,Qt,Fn)}return gt(Se,Qt,Qt.inline)}function Ht(Se,Qt){var mn=Fe.token(Se,Qt.htmlState);if(!be){var ii=yt.innerMode(Fe,Qt.htmlState);(ii.mode.name=="xml"&&ii.state.tagStart===null&&!ii.state.context&&ii.state.tokenize.isInText||Qt.md_inside&&Se.current().indexOf(">")>-1)&&(Qt.f=Ee,Qt.block=It,Qt.htmlState=null)}return mn}function se(Se,Qt){var mn=Qt.listStack[Qt.listStack.length-1]||0,ii=Qt.indentation<mn,jn=mn+3;if(Qt.fencedEndRE&&Qt.indentation<=jn&&(ii||Se.match(Qt.fencedEndRE))){re.highlightFormatting&&(Qt.formatting="code-block");var ln;return ii||(ln=Vt(Qt)),Qt.localMode=Qt.localState=null,Qt.block=It,Qt.f=Ee,Qt.fencedEndRE=null,Qt.code=0,Qt.thisLine.fencedCodeEnd=!0,ii?mt(Se,Qt,Qt.block):ln}else return Qt.localMode?Qt.localMode.token(Se,Qt.localState):(Se.skipToEnd(),ge.code)}function Vt(Se){var Qt=[];if(Se.formatting){Qt.push(ge.formatting),typeof Se.formatting=="string"&&(Se.formatting=[Se.formatting]);for(var mn=0;mn<Se.formatting.length;mn++)Qt.push(ge.formatting+"-"+Se.formatting[mn]),Se.formatting[mn]==="header"&&Qt.push(ge.formatting+"-"+Se.formatting[mn]+"-"+Se.header),Se.formatting[mn]==="quote"&&(!re.maxBlockquoteDepth||re.maxBlockquoteDepth>=Se.quote?Qt.push(ge.formatting+"-"+Se.formatting[mn]+"-"+Se.quote):Qt.push("error"))}if(Se.taskOpen)return Qt.push("meta"),Qt.length?Qt.join(" "):null;if(Se.taskClosed)return Qt.push("property"),Qt.length?Qt.join(" "):null;if(Se.linkHref?Qt.push(ge.linkHref,"url"):(Se.strong&&Qt.push(ge.strong),Se.em&&Qt.push(ge.em),Se.strikethrough&&Qt.push(ge.strikethrough),Se.emoji&&Qt.push(ge.emoji),Se.linkText&&Qt.push(ge.linkText),Se.code&&Qt.push(ge.code),Se.image&&Qt.push(ge.image),Se.imageAltText&&Qt.push(ge.imageAltText,"link"),Se.imageMarker&&Qt.push(ge.imageMarker)),Se.header&&Qt.push(ge.header,ge.header+"-"+Se.header),Se.quote&&(Qt.push(ge.quote),!re.maxBlockquoteDepth||re.maxBlockquoteDepth>=Se.quote?Qt.push(ge.quote+"-"+Se.quote):Qt.push(ge.quote+"-"+re.maxBlockquoteDepth)),Se.list!==!1){var ii=(Se.listStack.length-1)%3;ii?ii===1?Qt.push(ge.list2):Qt.push(ge.list3):Qt.push(ge.list1)}return Se.trailingSpaceNewLine?Qt.push("trailing-space-new-line"):Se.trailingSpace&&Qt.push("trailing-space-"+(Se.trailingSpace%2?"a":"b")),Qt.length?Qt.join(" "):null}function Jt(Se,Qt){if(Se.match(Nt,!0))return Vt(Qt)}function Ee(Se,Qt){var mn=Qt.text(Se,Qt);if(typeof mn!="undefined")return mn;if(Qt.list)return Qt.list=null,Vt(Qt);if(Qt.taskList){var ii=Se.match(Re,!0)[1]===" ";return ii?Qt.taskOpen=!0:Qt.taskClosed=!0,re.highlightFormatting&&(Qt.formatting="task"),Qt.taskList=!1,Vt(Qt)}if(Qt.taskOpen=!1,Qt.taskClosed=!1,Qt.header&&Se.match(/^#+$/,!0))return re.highlightFormatting&&(Qt.formatting="header"),Vt(Qt);var jn=Se.next();if(Qt.linkTitle){Qt.linkTitle=!1;var ln=jn;jn==="("&&(ln=")"),ln=(ln+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var qn="^\\s*(?:[^"+ln+"\\\\]+|\\\\\\\\|\\\\.)"+ln;if(Se.match(new RegExp(qn),!0))return ge.linkHref}if(jn==="`"){var Dn=Qt.formatting;re.highlightFormatting&&(Qt.formatting="code"),Se.eatWhile("`");var fi=Se.current().length;if(Qt.code==0&&(!Qt.quote||fi==1))return Qt.code=fi,Vt(Qt);if(fi==Qt.code){var Ve=Vt(Qt);return Qt.code=0,Ve}else return Qt.formatting=Dn,Vt(Qt)}else if(Qt.code)return Vt(Qt);if(jn==="\\"&&(Se.next(),re.highlightFormatting)){var On=Vt(Qt),Pe=ge.formatting+"-escape";return On?On+" "+Pe:Pe}if(jn==="!"&&Se.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return Qt.imageMarker=!0,Qt.image=!0,re.highlightFormatting&&(Qt.formatting="image"),Vt(Qt);if(jn==="["&&Qt.imageMarker&&Se.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return Qt.imageMarker=!1,Qt.imageAltText=!0,re.highlightFormatting&&(Qt.formatting="image"),Vt(Qt);if(jn==="]"&&Qt.imageAltText){re.highlightFormatting&&(Qt.formatting="image");var On=Vt(Qt);return Qt.imageAltText=!1,Qt.image=!1,Qt.inline=Qt.f=De,On}if(jn==="["&&!Qt.image)return Qt.linkText&&Se.match(/^.*?\]/)||(Qt.linkText=!0,re.highlightFormatting&&(Qt.formatting="link")),Vt(Qt);if(jn==="]"&&Qt.linkText){re.highlightFormatting&&(Qt.formatting="link");var On=Vt(Qt);return Qt.linkText=!1,Qt.inline=Qt.f=Se.match(/\(.*?\)| ?\[.*?\]/,!1)?De:Ee,On}if(jn==="<"&&Se.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){Qt.f=Qt.inline=we,re.highlightFormatting&&(Qt.formatting="link");var On=Vt(Qt);return On?On+=" ":On="",On+ge.linkInline}if(jn==="<"&&Se.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){Qt.f=Qt.inline=we,re.highlightFormatting&&(Qt.formatting="link");var On=Vt(Qt);return On?On+=" ":On="",On+ge.linkEmail}if(re.xml&&jn==="<"&&Se.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Ai=Se.string.indexOf(">",Se.pos);if(Ai!=-1){var Xn=Se.string.substring(Se.start,Ai);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Xn)&&(Qt.md_inside=!0)}return Se.backUp(1),Qt.htmlState=yt.startState(Fe),mt(Se,Qt,Ht)}if(re.xml&&jn==="<"&&Se.match(/^\/\w*?>/))return Qt.md_inside=!1,"tag";if(jn==="*"||jn==="_"){for(var Rt=1,At=Se.pos==1?" ":Se.string.charAt(Se.pos-2);Rt<3&&Se.eat(jn);)Rt++;var wt=Se.peek()||" ",Tt=!/\s/.test(wt)&&(!dt.test(wt)||/\s/.test(At)||dt.test(At)),Kt=!/\s/.test(At)&&(!dt.test(At)||/\s/.test(wt)||dt.test(wt)),kt=null,$t=null;if(Rt%2&&(!Qt.em&&Tt&&(jn==="*"||!Kt||dt.test(At))?kt=!0:Qt.em==jn&&Kt&&(jn==="*"||!Tt||dt.test(wt))&&(kt=!1)),Rt>1&&(!Qt.strong&&Tt&&(jn==="*"||!Kt||dt.test(At))?$t=!0:Qt.strong==jn&&Kt&&(jn==="*"||!Tt||dt.test(wt))&&($t=!1)),$t!=null||kt!=null){re.highlightFormatting&&(Qt.formatting=kt==null?"strong":$t==null?"em":"strong em"),kt===!0&&(Qt.em=jn),$t===!0&&(Qt.strong=jn);var Ve=Vt(Qt);return kt===!1&&(Qt.em=!1),$t===!1&&(Qt.strong=!1),Ve}}else if(jn===" "&&(Se.eat("*")||Se.eat("_"))){if(Se.peek()===" ")return Vt(Qt);Se.backUp(1)}if(re.strikethrough){if(jn==="~"&&Se.eatWhile(jn)){if(Qt.strikethrough){re.highlightFormatting&&(Qt.formatting="strikethrough");var Ve=Vt(Qt);return Qt.strikethrough=!1,Ve}else if(Se.match(/^[^\s]/,!1))return Qt.strikethrough=!0,re.highlightFormatting&&(Qt.formatting="strikethrough"),Vt(Qt)}else if(jn===" "&&Se.match(/^~~/,!0)){if(Se.peek()===" ")return Vt(Qt);Se.backUp(2)}}if(re.emoji&&jn===":"&&Se.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){Qt.emoji=!0,re.highlightFormatting&&(Qt.formatting="emoji");var un=Vt(Qt);return Qt.emoji=!1,un}return jn===" "&&(Se.match(/^ +$/,!1)?Qt.trailingSpace++:Qt.trailingSpace&&(Qt.trailingSpaceNewLine=!0)),Vt(Qt)}function we(Se,Qt){var mn=Se.next();if(mn===">"){Qt.f=Qt.inline=Ee,re.highlightFormatting&&(Qt.formatting="link");var ii=Vt(Qt);return ii?ii+=" ":ii="",ii+ge.linkInline}return Se.match(/^[^>]+/,!0),ge.linkInline}function De(Se,Qt){if(Se.eatSpace())return null;var mn=Se.next();return mn==="("||mn==="["?(Qt.f=Qt.inline=sn(mn==="("?")":"]"),re.highlightFormatting&&(Qt.formatting="link-string"),Qt.linkHref=!0,Vt(Qt)):"error"}var Le={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function sn(Se){return function(Qt,mn){var ii=Qt.next();if(ii===Se){mn.f=mn.inline=Ee,re.highlightFormatting&&(mn.formatting="link-string");var jn=Vt(mn);return mn.linkHref=!1,jn}return Qt.match(Le[Se]),mn.linkHref=!0,Vt(mn)}}function Fn(Se,Qt){return Se.match(/^([^\]\\]|\\.)*\]:/,!1)?(Qt.f=fn,Se.next(),re.highlightFormatting&&(Qt.formatting="link"),Qt.linkText=!0,Vt(Qt)):gt(Se,Qt,Ee)}function fn(Se,Qt){if(Se.match(/^\]:/,!0)){Qt.f=Qt.inline=Ge,re.highlightFormatting&&(Qt.formatting="link");var mn=Vt(Qt);return Qt.linkText=!1,mn}return Se.match(/^([^\]\\]|\\.)+/,!0),ge.linkText}function Ge(Se,Qt){return Se.eatSpace()?null:(Se.match(/^[^\s]+/,!0),Se.peek()===void 0?Qt.linkTitle=!0:Se.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),Qt.f=Qt.inline=Ee,ge.linkHref+" url")}var an={startState:function(){return{f:It,prevLine:{stream:null},thisLine:{stream:null},block:It,htmlState:null,indentation:0,inline:Ee,text:Jt,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(Se){return{f:Se.f,prevLine:Se.prevLine,thisLine:Se.thisLine,block:Se.block,htmlState:Se.htmlState&&yt.copyState(Fe,Se.htmlState),indentation:Se.indentation,localMode:Se.localMode,localState:Se.localMode?yt.copyState(Se.localMode,Se.localState):null,inline:Se.inline,text:Se.text,formatting:!1,linkText:Se.linkText,linkTitle:Se.linkTitle,linkHref:Se.linkHref,code:Se.code,em:Se.em,strong:Se.strong,strikethrough:Se.strikethrough,emoji:Se.emoji,header:Se.header,setext:Se.setext,hr:Se.hr,taskList:Se.taskList,list:Se.list,listStack:Se.listStack.slice(0),quote:Se.quote,indentedCode:Se.indentedCode,trailingSpace:Se.trailingSpace,trailingSpaceNewLine:Se.trailingSpaceNewLine,md_inside:Se.md_inside,fencedEndRE:Se.fencedEndRE}},token:function(Se,Qt){if(Qt.formatting=!1,Se!=Qt.thisLine.stream){if(Qt.header=0,Qt.hr=!1,Se.match(/^\s*$/,!0))return bt(Qt),null;if(Qt.prevLine=Qt.thisLine,Qt.thisLine={stream:Se},Qt.taskList=!1,Qt.trailingSpace=0,Qt.trailingSpaceNewLine=!1,!Qt.localState&&(Qt.f=Qt.block,Qt.f!=Ht)){var mn=Se.match(/^\s*/,!0)[0].replace(/\t/g,lt).length;if(Qt.indentation=mn,Qt.indentationDiff=null,mn>0)return null}}return Qt.f(Se,Qt)},innerMode:function(Se){return Se.block==Ht?{state:Se.htmlState,mode:Fe}:Se.localState?{state:Se.localState,mode:Se.localMode}:{state:Se,mode:an}},indent:function(Se,Qt,mn){return Se.block==Ht&&Fe.indent?Fe.indent(Se.htmlState,Qt,mn):Se.localState&&Se.localMode.indent?Se.localMode.indent(Se.localState,Qt,mn):yt.Pass},blankLine:bt,getType:Vt,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return an},"xml"),yt.defineMIME("text/markdown","markdown"),yt.defineMIME("text/x-markdown","markdown")})},98101:function(Jn,pi,Dt){(function(yt){yt(Dt(89780))})(function(yt){"use strict";yt.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 te=0;te<yt.modeInfo.length;te++){var re=yt.modeInfo[te];re.mimes&&(re.mime=re.mimes[0])}yt.findModeByMIME=function(Fe){Fe=Fe.toLowerCase();for(var be=0;be<yt.modeInfo.length;be++){var jt=yt.modeInfo[be];if(jt.mime==Fe)return jt;if(jt.mimes){for(var ge=0;ge<jt.mimes.length;ge++)if(jt.mimes[ge]==Fe)return jt}}if(/\+xml$/.test(Fe))return yt.findModeByMIME("application/xml");if(/\+json$/.test(Fe))return yt.findModeByMIME("application/json")},yt.findModeByExtension=function(Fe){Fe=Fe.toLowerCase();for(var be=0;be<yt.modeInfo.length;be++){var jt=yt.modeInfo[be];if(jt.ext){for(var ge=0;ge<jt.ext.length;ge++)if(jt.ext[ge]==Fe)return jt}}},yt.findModeByFileName=function(Fe){for(var be=0;be<yt.modeInfo.length;be++){var jt=yt.modeInfo[be];if(jt.file&&jt.file.test(Fe))return jt}var ge=Fe.lastIndexOf("."),Ze=ge>-1&&Fe.substring(ge+1,Fe.length);if(Ze)return yt.findModeByExtension(Ze)},yt.findModeByName=function(Fe){Fe=Fe.toLowerCase();for(var be=0;be<yt.modeInfo.length;be++){var jt=yt.modeInfo[be];if(jt.name.toLowerCase()==Fe)return jt;if(jt.alias){for(var ge=0;ge<jt.alias.length;ge++)if(jt.alias[ge].toLowerCase()==Fe)return jt}}}})},67549:function(Jn,pi,Dt){(function(yt){yt(Dt(89780))})(function(yt){"use strict";yt.defineMode("stex",function(te,re){"use strict";function Fe(Nt,nt){Nt.cmdState.push(nt)}function be(Nt){return Nt.cmdState.length>0?Nt.cmdState[Nt.cmdState.length-1]:null}function jt(Nt){var nt=Nt.cmdState.pop();nt&&nt.closeBracket()}function ge(Nt){for(var nt=Nt.cmdState,et=nt.length-1;et>=0;et--){var dt=nt[et];if(dt.name!="DEFAULT")return dt}return{styleIdentifier:function(){return null}}}function Ze(Nt,nt,et){return function(){this.name=Nt,this.bracketNo=0,this.style=nt,this.styles=et,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Ce={};Ce.importmodule=Ze("importmodule","tag",["string","builtin"]),Ce.documentclass=Ze("documentclass","tag",["","atom"]),Ce.usepackage=Ze("usepackage","tag",["atom"]),Ce.begin=Ze("begin","tag",["atom"]),Ce.end=Ze("end","tag",["atom"]),Ce.label=Ze("label","tag",["atom"]),Ce.ref=Ze("ref","tag",["atom"]),Ce.eqref=Ze("eqref","tag",["atom"]),Ce.cite=Ze("cite","tag",["atom"]),Ce.bibitem=Ze("bibitem","tag",["atom"]),Ce.Bibitem=Ze("Bibitem","tag",["atom"]),Ce.RBibitem=Ze("RBibitem","tag",["atom"]),Ce.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function Mt(Nt,nt){Nt.f=nt}function Re(Nt,nt){var et;if(Nt.match(/^\\[a-zA-Z@]+/)){var dt=Nt.current().slice(1);return et=Ce.hasOwnProperty(dt)?Ce[dt]:Ce.DEFAULT,et=new et,Fe(nt,et),Mt(nt,We),et.style}if(Nt.match(/^\\[$&%#{}_]/)||Nt.match(/^\\[,;!\/\\]/))return"tag";if(Nt.match("\\["))return Mt(nt,function(gt,mt){return Yt(gt,mt,"\\]")}),"keyword";if(Nt.match("\\("))return Mt(nt,function(gt,mt){return Yt(gt,mt,"\\)")}),"keyword";if(Nt.match("$$"))return Mt(nt,function(gt,mt){return Yt(gt,mt,"$$")}),"keyword";if(Nt.match("$"))return Mt(nt,function(gt,mt){return Yt(gt,mt,"$")}),"keyword";var lt=Nt.next();if(lt=="%")return Nt.skipToEnd(),"comment";if(lt=="}"||lt=="]"){if(et=be(nt),et)et.closeBracket(lt),Mt(nt,We);else return"error";return"bracket"}else return lt=="{"||lt=="["?(et=Ce.DEFAULT,et=new et,Fe(nt,et),"bracket"):/\d/.test(lt)?(Nt.eatWhile(/[\w.%]/),"atom"):(Nt.eatWhile(/[\w\-_]/),et=ge(nt),et.name=="begin"&&(et.argument=Nt.current()),et.styleIdentifier())}function Yt(Nt,nt,et){if(Nt.eatSpace())return null;if(et&&Nt.match(et))return Mt(nt,Re),"keyword";if(Nt.match(/^\\[a-zA-Z@]+/))return"tag";if(Nt.match(/^[a-zA-Z]+/))return"variable-2";if(Nt.match(/^\\[$&%#{}_]/)||Nt.match(/^\\[,;!\/]/)||Nt.match(/^[\^_&]/))return"tag";if(Nt.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Nt.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var dt=Nt.next();return dt=="{"||dt=="}"||dt=="["||dt=="]"||dt=="("||dt==")"?"bracket":dt=="%"?(Nt.skipToEnd(),"comment"):"error"}function We(Nt,nt){var et=Nt.peek(),dt;return et=="{"||et=="["?(dt=be(nt),dt.openBracket(et),Nt.eat(et),Mt(nt,Re),"bracket"):/[ \t\r]/.test(et)?(Nt.eat(et),null):(Mt(nt,Re),jt(nt),Re(Nt,nt))}return{startState:function(){var Nt=re.inMathMode?function(nt,et){return Yt(nt,et)}:Re;return{cmdState:[],f:Nt}},copyState:function(Nt){return{cmdState:Nt.cmdState.slice(),f:Nt.f}},token:function(Nt,nt){return nt.f(Nt,nt)},blankLine:function(Nt){Nt.f=Re,Nt.cmdState.length=0},lineComment:"%"}}),yt.defineMIME("text/x-stex","stex"),yt.defineMIME("text/x-latex","stex")})},15525:function(Jn,pi,Dt){(function(yt){yt(Dt(89780))})(function(yt){"use strict";var te={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},re={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};yt.defineMode("xml",function(Fe,be){var jt=Fe.indentUnit,ge={},Ze=be.htmlMode?te:re;for(var Ce in Ze)ge[Ce]=Ze[Ce];for(var Ce in be)ge[Ce]=be[Ce];var Mt,Re;function Yt(we,De){function Le(fn){return De.tokenize=fn,fn(we,De)}var sn=we.next();if(sn=="<")return we.eat("!")?we.eat("[")?we.match("CDATA[")?Le(nt("atom","]]>")):null:we.match("--")?Le(nt("comment","-->")):we.match("DOCTYPE",!0,!0)?(we.eatWhile(/[\w\._\-]/),Le(et(1))):null:we.eat("?")?(we.eatWhile(/[\w\._\-]/),De.tokenize=nt("meta","?>"),"meta"):(Mt=we.eat("/")?"closeTag":"openTag",De.tokenize=We,"tag bracket");if(sn=="&"){var Fn;return we.eat("#")?we.eat("x")?Fn=we.eatWhile(/[a-fA-F\d]/)&&we.eat(";"):Fn=we.eatWhile(/[\d]/)&&we.eat(";"):Fn=we.eatWhile(/[\w\.\-:]/)&&we.eat(";"),Fn?"atom":"error"}else return we.eatWhile(/[^&<]/),null}Yt.isInText=!0;function We(we,De){var Le=we.next();if(Le==">"||Le=="/"&&we.eat(">"))return De.tokenize=Yt,Mt=Le==">"?"endTag":"selfcloseTag","tag bracket";if(Le=="=")return Mt="equals",null;if(Le=="<"){De.tokenize=Yt,De.state=mt,De.tagName=De.tagStart=null;var sn=De.tokenize(we,De);return sn?sn+" tag error":"tag error"}else return/[\'\"]/.test(Le)?(De.tokenize=Nt(Le),De.stringStartCol=we.column(),De.tokenize(we,De)):(we.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Nt(we){var De=function(Le,sn){for(;!Le.eol();)if(Le.next()==we){sn.tokenize=We;break}return"string"};return De.isInAttribute=!0,De}function nt(we,De){return function(Le,sn){for(;!Le.eol();){if(Le.match(De)){sn.tokenize=Yt;break}Le.next()}return we}}function et(we){return function(De,Le){for(var sn;(sn=De.next())!=null;){if(sn=="<")return Le.tokenize=et(we+1),Le.tokenize(De,Le);if(sn==">")if(we==1){Le.tokenize=Yt;break}else return Le.tokenize=et(we-1),Le.tokenize(De,Le)}return"meta"}}function dt(we,De,Le){this.prev=we.context,this.tagName=De,this.indent=we.indented,this.startOfLine=Le,(ge.doNotIndent.hasOwnProperty(De)||we.context&&we.context.noIndent)&&(this.noIndent=!0)}function lt(we){we.context&&(we.context=we.context.prev)}function gt(we,De){for(var Le;;){if(!we.context||(Le=we.context.tagName,!ge.contextGrabbers.hasOwnProperty(Le)||!ge.contextGrabbers[Le].hasOwnProperty(De)))return;lt(we)}}function mt(we,De,Le){return we=="openTag"?(Le.tagStart=De.column(),St):we=="closeTag"?bt:mt}function St(we,De,Le){return we=="word"?(Le.tagName=De.current(),Re="tag",se):ge.allowMissingTagName&&we=="endTag"?(Re="tag bracket",se(we,De,Le)):(Re="error",St)}function bt(we,De,Le){if(we=="word"){var sn=De.current();return Le.context&&Le.context.tagName!=sn&&ge.implicitlyClosed.hasOwnProperty(Le.context.tagName)&&lt(Le),Le.context&&Le.context.tagName==sn||ge.matchClosing===!1?(Re="tag",It):(Re="tag error",Ht)}else return ge.allowMissingTagName&&we=="endTag"?(Re="tag bracket",It(we,De,Le)):(Re="error",Ht)}function It(we,De,Le){return we!="endTag"?(Re="error",It):(lt(Le),mt)}function Ht(we,De,Le){return Re="error",It(we,De,Le)}function se(we,De,Le){if(we=="word")return Re="attribute",Vt;if(we=="endTag"||we=="selfcloseTag"){var sn=Le.tagName,Fn=Le.tagStart;return Le.tagName=Le.tagStart=null,we=="selfcloseTag"||ge.autoSelfClosers.hasOwnProperty(sn)?gt(Le,sn):(gt(Le,sn),Le.context=new dt(Le,sn,Fn==Le.indented)),mt}return Re="error",se}function Vt(we,De,Le){return we=="equals"?Jt:(ge.allowMissing||(Re="error"),se(we,De,Le))}function Jt(we,De,Le){return we=="string"?Ee:we=="word"&&ge.allowUnquoted?(Re="string",se):(Re="error",se(we,De,Le))}function Ee(we,De,Le){return we=="string"?Ee:se(we,De,Le)}return{startState:function(we){var De={tokenize:Yt,state:mt,indented:we||0,tagName:null,tagStart:null,context:null};return we!=null&&(De.baseIndent=we),De},token:function(we,De){if(!De.tagName&&we.sol()&&(De.indented=we.indentation()),we.eatSpace())return null;Mt=null;var Le=De.tokenize(we,De);return(Le||Mt)&&Le!="comment"&&(Re=null,De.state=De.state(Mt||Le,we,De),Re&&(Le=Re=="error"?Le+" error":Re)),Le},indent:function(we,De,Le){var sn=we.context;if(we.tokenize.isInAttribute)return we.tagStart==we.indented?we.stringStartCol+1:we.indented+jt;if(sn&&sn.noIndent)return yt.Pass;if(we.tokenize!=We&&we.tokenize!=Yt)return Le?Le.match(/^(\s*)/)[0].length:0;if(we.tagName)return ge.multilineTagIndentPastTag!==!1?we.tagStart+we.tagName.length+2:we.tagStart+jt*(ge.multilineTagIndentFactor||1);if(ge.alignCDATA&&/<!\[CDATA\[/.test(De))return 0;var Fn=De&&/^<(\/)?([\w_:\.-]*)/.exec(De);if(Fn&&Fn[1])for(;sn;)if(sn.tagName==Fn[2]){sn=sn.prev;break}else if(ge.implicitlyClosed.hasOwnProperty(sn.tagName))sn=sn.prev;else break;else if(Fn)for(;sn;){var fn=ge.contextGrabbers[sn.tagName];if(fn&&fn.hasOwnProperty(Fn[2]))sn=sn.prev;else break}for(;sn&&sn.prev&&!sn.startOfLine;)sn=sn.prev;return sn?sn.indent+jt:we.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:ge.htmlMode?"html":"xml",helperType:ge.htmlMode?"html":"xml",skipAttribute:function(we){we.state==Jt&&(we.state=se)},xmlCurrentTag:function(we){return we.tagName?{name:we.tagName,close:we.type=="closeTag"}:null},xmlCurrentContext:function(we){for(var De=[],Le=we.context;Le;Le=Le.prev)Le.tagName&&De.push(Le.tagName);return De.reverse()}}}),yt.defineMIME("text/xml","xml"),yt.defineMIME("application/xml","xml"),yt.mimeModes.hasOwnProperty("text/html")||yt.defineMIME("text/html",{name:"xml",htmlMode:!0})})},12378:function(Jn,pi,Dt){"use strict";Dt.d(pi,{$u:function(){return Ce},BD:function(){return Rt},E9:function(){return Ze},FF:function(){return vr},FJ:function(){return mt},Hn:function(){return gt},KX:function(){return bt},NB:function(){return ne},S0:function(){return Pe},UL:function(){return Mt},Vk:function(){return lt},Vm:function(){return Ne},YI:function(){return Ai},ZA:function(){return re},Zt:function(){return Re},al:function(){return kt},bn:function(){return Kt},bx:function(){return At},g2:function(){return Xn},h1:function(){return Jt},hD:function(){return ti},l4:function(){return jt},rU:function(){return Oe},s_:function(){return wt},uz:function(){return Ue},z6:function(){return Yt}}),Jn=Dt.hmd(Jn),function(){var Ct;function yn(a){var y=0;return function(){return y<a.length?{done:!1,value:a[y++]}:{done:!0}}}function Zn(a){var y=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];return y?y.call(a):{next:yn(a)}}function dr(a){for(var y,x=[];!(y=a.next()).done;)x.push(y.value);return x}var sr=typeof Object.create=="function"?Object.create:function(a){function y(){}return y.prototype=a,new y},Oi;if(typeof Object.setPrototypeOf=="function")Oi=Object.setPrototypeOf;else{var Nn;t:{var Cn={a:!0},kn={};try{kn.__proto__=Cn,Nn=kn.a;break t}catch(a){}Nn=!1}Oi=Nn?function(a,y){if(a.__proto__=y,a.__proto__!==y)throw new TypeError(a+" is not extensible");return a}:null}var ve=Oi;function ye(a,y){if(a.prototype=sr(y.prototype),a.prototype.constructor=a,ve)ve(a,y);else for(var x in y)if(x!="prototype")if(Object.defineProperties){var E=Object.getOwnPropertyDescriptor(y,x);E&&Object.defineProperty(a,x,E)}else a[x]=y[x];a.QA=y.prototype}var xe=typeof Dt.g!="undefined"&&Dt.g!=null?Dt.g:self,Kn=typeof Object.assign=="function"?Object.assign:function(a,y){for(var x=1;x<arguments.length;x++){var E=arguments[x];if(E)for(var b in E)Object.prototype.hasOwnProperty.call(E,b)&&(a[b]=E[b])}return a},$n=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,y,x){a!=Array.prototype&&a!=Object.prototype&&(a[y]=x.value)};function ui(a,y){if(y){var x=xe;a=a.split(".");for(var E=0;E<a.length-1;E++){var b=a[E];b in x||(x[b]={}),x=x[b]}a=a[a.length-1],E=x[a],y=y(E),y!=E&&y!=null&&$n(x,a,{writable:!0,value:y})}}ui("Object.assign",function(a){return a||Kn}),ui("Array.prototype.fill",function(a){return a||function(y,x,E){var b=this.length||0;for(0>x&&(x=Math.max(0,b+x)),(E==null||E>b)&&(E=b),E=Number(E),0>E&&(E=Math.max(0,b+E)),x=Number(x||0);x<E;x++)this[x]=y;return this}});var Sn=typeof globalThis=="object"&&globalThis||typeof Dt.g=="object"&&Dt.g.global===Dt.g&&Dt.g||typeof self=="object"&&self.self===self&&self||{};Sn.requestAnimationFrame===void 0&&(Sn.setImmediate===void 0?Sn.requestAnimationFrame=function(a){Sn.setTimeout(a,0)}:Sn.requestAnimationFrame=Sn.setImmediate);function oi(){}function fe(a,y){var x=-1;return function(){var E=this,b=arguments;x!==-1&&Sn.clearTimeout(x),x=Te(function(){x=-1,a.apply(E,b)},y)}}function Te(a,y){return Sn.setTimeout(a,y)}function hi(a){return Sn.document.createElement(a)}function ee(a){throw Error(a)}function nn(a,y){a="The object is frozen, so its properties cannot be set: "+a.toString(),y!==void 0&&(a+=" to value: "+y),ee(a)}function Vn(a,y,x,E){x=x===null?"*":typeof x=="string"?x:typeof x=="function"&&typeof x.className=="string"?x.className:"",E!==void 0&&(x+="."+E),ee(x+" is not in the range "+y+": "+a)}function _n(a){Sn.console&&Sn.console.log(a)}function Ke(a){return typeof a=="object"&&a!==null}function Gn(a){return Array.isArray(a)||Sn.NodeList&&a instanceof Sn.NodeList||Sn.HTMLCollection&&a instanceof Sn.HTMLCollection}function ai(a){return Array.prototype.slice.call(a)}function ni(a,y,x){Array.isArray(a)?y>=a.length?a.push(x):a.splice(y,0,x):ee("Cannot insert an object into an HTMLCollection or NodeList: "+x+" at "+y)}function ki(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):ee("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function xi(){var a=Hr.pop();return a===void 0?[]:a}function gi(a){a.length=0,Hr.push(a)}function Li(a){if(typeof a=="function"){if(a.className)return a.className;if(a.name)return a.name;var y=a.toString();if(y=y.substring(9,y.indexOf("(")).trim(),y!=="")return a._className=y}else if(Ke(a)&&a.constructor)return Li(a.constructor);return typeof a}function Zi(a){var y=a;return Ke(a)&&(a.text?y=a.text:a.name?y=a.name:a.key!==void 0?y=a.key:a.id!==void 0?y=a.id:a.constructor===Object&&(a.Text?y=a.Text:a.Name?y=a.Name:a.Key!==void 0?y=a.Key:a.Id!==void 0?y=a.Id:a.ID!==void 0&&(y=a.ID))),y===void 0?"undefined":y===null?"null":y.toString()}function tr(a,y){if(a.hasOwnProperty(y))return!0;for(a=Object.getPrototypeOf(a);a&&a!==Function;){if(a.hasOwnProperty(y))return!0;var x=a.CA;if(x&&x[y])return!0;a=Object.getPrototypeOf(a)}return!1}function zi(a,y,x){Object.defineProperty(Lo.prototype,a,{get:y,set:x})}function wn(a){for(var y=[],x=0;256>x;x++)y["0123456789abcdef".charAt(x>>4)+"0123456789abcdef".charAt(x&15)]=String.fromCharCode(x);a.length%2&&(a="0"+a),x=[];for(var E=0,b=0;b<a.length;b+=2)x[E++]=y[a.substr(b,2)];for(a=x.join(""),a=a===""?"0":a,y=[],x=0;256>x;x++)y[x]=x;for(x=E=0;256>x;x++)E=(E+y[x]+119)%256,b=y[x],y[x]=y[E],y[E]=b;E=x=0;for(var z="",tt=0;tt<a.length;tt++)x=(x+1)%256,E=(E+y[x])%256,b=y[x],y[x]=y[E],y[E]=b,z+=String.fromCharCode(a.charCodeAt(tt)^y[(y[x]+y[E])%256]);return z.indexOf("GoJS 2.1 evaluation")>-1||z.indexOf("\xA9 1998-2021 Northwoods Software")>-1||z.indexOf("Not for distribution or production use")>-1||z.indexOf("gojs.net")>-1?"":z}var Rr=Sn.navigator!==void 0&&0<Sn.navigator.userAgent.indexOf("Trident/7"),Lr=Sn.navigator!==void 0&&Sn.navigator.platform!==void 0&&Sn.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,Hr=[];Object.freeze([]),oi.className="Util",oi.Dx="32ab5ff3b26f42dc0ed90f21472913b5",oi.adym="gojs.net",oi.vfo="28e645fdb266",oi.className="Util";function dn(a,y,x){wi(this),this.j=a,this.xa=y,this.o=x}dn.prototype.toString=function(){return"EnumValue."+this.xa};function Mi(a,y){return y==null||y===""?null:a[y]}xe.Object.defineProperties(dn.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),dn.className="EnumValue";function Vi(){this.ew=[]}Vi.prototype.toString=function(){return this.ew.join("")},Vi.prototype.add=function(a){a!==""&&this.ew.push(a)},Vi.className="StringBuilder";function Qi(){}Qi.className="PropertyCollection";var qi={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(a){Sn.console&&Sn.console.log(a)},HA:function(a,y,x,E){a.strokeStyle="red",a.fillStyle="red",a.font="8px sans-serif",a.beginPath(),a.moveTo(-10,0),a.lineTo(10,0),a.moveTo(0,-10),a.lineTo(0,10),a.stroke(),a.setTransform(1,0,0,1,0,0),a.scale(x,x),a.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),a.lineWidth=2,a.beginPath(),a.moveTo(E.left,E.top+20),a.lineTo(E.left,E.top),a.lineTo(E.left+20,E.top),a.moveTo(E.right,E.bottom-20),a.lineTo(E.right,E.bottom),a.lineTo(E.right-20,E.bottom),a.stroke(),a.fillText("DB: "+Math.round(E.x)+", "+Math.round(E.y)+", "+Math.round(E.width)+", "+Math.round(E.height),E.left,E.top-5)},DA:function(a){var y={},x;for(x in a){if(y.x=x,y.x!=="licenseKey"){var E=a[y.x];if(E.prototype!==void 0){y.Zl=Object.getOwnPropertyNames(E.prototype);for(var b={Tj:0};b.Tj<y.Zl.length;b={Tj:b.Tj},b.Tj++){var z=Object.getOwnPropertyDescriptor(E.prototype,y.Zl[b.Tj]);z.get!==void 0&&z.set===void 0&&Object.defineProperty(E.prototype,y.Zl[b.Tj],{set:function(tt,rt){return function(){throw Error("Property "+tt.Zl[rt.Tj]+" of "+tt.x+" is read-only.")}}(y,b)})}}}y={Zl:y.Zl,x:y.x}}}};function cr(){}cr.prototype.reset=function(){},cr.prototype.next=function(){return!1},cr.prototype.Ad=function(){return!1},cr.prototype.first=function(){return null},cr.prototype.any=function(){return!1},cr.prototype.all=function(){return!0},cr.prototype.each=function(){return this},cr.prototype.map=function(){return this},cr.prototype.filter=function(){return this},cr.prototype.de=function(){},cr.prototype.toString=function(){return"EmptyIterator"},xe.Object.defineProperties(cr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),cr.prototype.first=cr.prototype.first,cr.prototype.hasNext=cr.prototype.Ad,cr.prototype.next=cr.prototype.next,cr.prototype.reset=cr.prototype.reset;var Ar=null;cr.className="EmptyIterator",Ar=new cr;function ji(a){this.key=-1,this.value=a}ji.prototype.reset=function(){this.key=-1},ji.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},ji.prototype.Ad=function(){return this.next()},ji.prototype.first=function(){return this.key=0,this.value},ji.prototype.any=function(a){return this.key=-1,a(this.value)},ji.prototype.all=function(a){return this.key=-1,a(this.value)},ji.prototype.each=function(a){return this.key=-1,a(this.value),this},ji.prototype.map=function(a){return new ji(a(this.value))},ji.prototype.filter=function(a){return a(this.value)?new ji(this.value):Ar},ji.prototype.de=function(){this.value=null},ji.prototype.toString=function(){return"SingletonIterator("+this.value+")"},xe.Object.defineProperties(ji.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),ji.prototype.first=ji.prototype.first,ji.prototype.hasNext=ji.prototype.Ad,ji.prototype.next=ji.prototype.next,ji.prototype.reset=ji.prototype.reset,ji.className="SingletonIterator";function er(a){this.Bb=a,this.qf=null,a.Sa=null,this.qa=a.Ja,this.Za=-1}er.prototype.reset=function(){var a=this.Bb;a.Sa=null,this.qa=a.Ja,this.Za=-1},er.prototype.next=function(){var a=this.Bb;if(a.Ja!==this.qa&&0>this.key)return!1;a=a.s;var y=a.length,x=++this.Za,E=this.qf;if(E!==null)for(;x<y;){var b=a[x];if(E(b))return this.key=this.Za=x,this.value=b,!0;x++}else{if(x<y)return this.key=x,this.value=a[x],!0;this.de()}return!1},er.prototype.Ad=function(){return this.next()},er.prototype.first=function(){var a=this.Bb;this.qa=a.Ja,this.Za=0,a=a.s;var y=a.length,x=this.qf;if(x!==null){for(var E=0;E<y;){var b=a[E];if(x(b))return this.key=this.Za=E,this.value=b;E++}return null}return 0<y?(a=a[0],this.key=0,this.value=a):null},er.prototype.any=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,E=this.qf,b=0;b<x;b++){var z=y[b];if((E===null||E(z))&&a(z))return!0}return!1},er.prototype.all=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,E=this.qf,b=0;b<x;b++){var z=y[b];if((E===null||E(z))&&!a(z))return!1}return!0},er.prototype.each=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,E=this.qf,b=0;b<x;b++){var z=y[b];(E===null||E(z))&&a(z)}return this},er.prototype.map=function(a){var y=this.Bb;y.Sa=null,this.Za=-1;var x=[];y=y.s;for(var E=y.length,b=this.qf,z=0;z<E;z++){var tt=y[z];(b===null||b(tt))&&x.push(a(tt))}return a=new cn,a.s=x,a.xb(),a.iterator},er.prototype.filter=function(a){var y=this.Bb;y.Sa=null,this.Za=-1;var x=[];y=y.s;for(var E=y.length,b=this.qf,z=0;z<E;z++){var tt=y[z];(b===null||b(tt))&&a(tt)&&x.push(tt)}return a=new cn,a.s=x,a.xb(),a.iterator},er.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},er.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},xe.Object.defineProperties(er.prototype,{iterator:{get:function(){return this}},predicate:{get:function(){return this.qf},set:function(a){this.qf=a}},count:{get:function(){var a=this.qf;if(a!==null){for(var y=0,x=this.Bb.s,E=x.length,b=0;b<E;b++)a(x[b])&&y++;return y}return this.Bb.s.length}}}),er.prototype.first=er.prototype.first,er.prototype.hasNext=er.prototype.Ad,er.prototype.next=er.prototype.next,er.prototype.reset=er.prototype.reset,er.className="ListIterator";function Hi(a){this.Bb=a,a.Hg=null,this.qa=a.Ja,this.Za=a.s.length}Hi.prototype.reset=function(){var a=this.Bb;a.Hg=null,this.qa=a.Ja,this.Za=a.s.length},Hi.prototype.next=function(){var a=this.Bb;if(a.Ja!==this.qa&&0>this.key)return!1;var y=--this.Za;return 0<=y?(this.key=y,this.value=a.s[y],!0):(this.de(),!1)},Hi.prototype.Ad=function(){return this.next()},Hi.prototype.first=function(){var a=this.Bb;this.qa=a.Ja;var y=a.s;return this.Za=a=y.length-1,0<=a?(y=y[a],this.key=a,this.value=y):null},Hi.prototype.any=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)if(a(y[x]))return!0;return!1},Hi.prototype.all=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)if(!a(y[x]))return!1;return!0},Hi.prototype.each=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)a(y[x]);return this},Hi.prototype.map=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var E=y.length;for(this.Za=E,--E;0<=E;E--)x.push(a(y[E]));return a=new cn,a.s=x,a.xb(),a.iterator},Hi.prototype.filter=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var E=y.length;for(this.Za=E,--E;0<=E;E--){var b=y[E];a(b)&&x.push(b)}return a=new cn,a.s=x,a.xb(),a.iterator},Hi.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},Hi.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},xe.Object.defineProperties(Hi.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),Hi.prototype.first=Hi.prototype.first,Hi.prototype.hasNext=Hi.prototype.Ad,Hi.prototype.next=Hi.prototype.next,Hi.prototype.reset=Hi.prototype.reset,Hi.className="ListIteratorBackwards";function cn(a){wi(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&ee("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Ct=cn.prototype,Ct.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Ct.freeze=function(){return this._isFrozen=!0,this},Ct.ka=function(){return this._isFrozen=!1,this},Ct.toString=function(){return"List()#"+Sr(this)},Ct.add=function(a){return a===null?this:(this._isFrozen&&nn(this,a),this.s.push(a),this.xb(),this)},Ct.push=function(a){this.add(a)},Ct.addAll=function(a){if(a===null)return this;this._isFrozen&&nn(this);var y=this.s;if(Gn(a))for(var x=a.length,E=0;E<x;E++)y.push(a[E]);else for(a=a.iterator;a.next();)y.push(a.value);return this.xb(),this},Ct.clear=function(){this._isFrozen&&nn(this),this.s.length=0,this.xb()},Ct.contains=function(a){return a===null?!1:this.s.indexOf(a)!==-1},Ct.has=function(a){return this.contains(a)},Ct.indexOf=function(a){return a===null?-1:this.s.indexOf(a)},Ct.M=function(a){var y=this.s;return(0>a||a>=y.length)&&Vn(a,"0 <= i < length",cn,"elt:i"),y[a]},Ct.get=function(a){return this.M(a)},Ct.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&Vn(a,"0 <= i < length",cn,"setElt:i"),this._isFrozen&&nn(this,a),x[a]=y},Ct.set=function(a,y){this.cd(a,y)},Ct.first=function(){var a=this.s;return a.length===0?null:a[0]},Ct.jc=function(){var a=this.s,y=a.length;return 0<y?a[y-1]:null},Ct.pop=function(){this._isFrozen&&nn(this);var a=this.s;return 0<a.length?a.pop():null},cn.prototype.any=function(a){for(var y=this.s,x=y.length,E=0;E<x;E++)if(a(y[E]))return!0;return!1},cn.prototype.all=function(a){for(var y=this.s,x=y.length,E=0;E<x;E++)if(!a(y[E]))return!1;return!0},cn.prototype.each=function(a){for(var y=this.s,x=y.length,E=0;E<x;E++)a(y[E]);return this},cn.prototype.map=function(a){for(var y=new cn,x=[],E=this.s,b=E.length,z=0;z<b;z++)x.push(a(E[z]));return y.s=x,y.xb(),y},cn.prototype.filter=function(a){for(var y=new cn,x=[],E=this.s,b=E.length,z=0;z<b;z++){var tt=E[z];a(tt)&&x.push(tt)}return y.s=x,y.xb(),y},Ct=cn.prototype,Ct.Gb=function(a,y){0>a&&Vn(a,">= 0",cn,"insertAt:i"),this._isFrozen&&nn(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},Ct.remove=function(a){if(a===null)return!1;this._isFrozen&&nn(this,a);var y=this.s;return a=y.indexOf(a),a===-1?!1:(a===y.length-1?y.pop():y.splice(a,1),this.xb(),!0)},Ct.delete=function(a){return this.remove(a)},Ct.mb=function(a){var y=this.s;(0>a||a>=y.length)&&Vn(a,"0 <= i < length",cn,"removeAt:i"),this._isFrozen&&nn(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},Ct.removeRange=function(a,y){var x=this.s,E=x.length;if(0>a)a=0;else if(a>=E)return this;if(0>y)return this;if(y>=E&&(y=E-1),a>y)return this;this._isFrozen&&nn(this);for(var b=a,z=y+1;z<E;)x[b++]=x[z++];return x.length=E-(y-a+1),this.xb(),this},cn.prototype.copy=function(){var a=new cn,y=this.s;return 0<y.length&&(a.s=Array.prototype.slice.call(y)),a},Ct=cn.prototype,Ct.Fa=function(){for(var a=this.s,y=this.count,x=Array(y),E=0;E<y;E++)x[E]=a[E];return x},Ct.Iv=function(){for(var a=new xn,y=this.s,x=this.count,E=0;E<x;E++)a.add(y[E]);return a},Ct.sort=function(a){return this._isFrozen&&nn(this),this.s.sort(a),this.xb(),this},Ct.zi=function(a,y,x){var E=this.s,b=E.length;y===void 0&&(y=0),x===void 0&&(x=b),this._isFrozen&&nn(this);var z=x-y;if(1>=z)return this;if((0>y||y>=b-1)&&Vn(y,"0 <= from < length",cn,"sortRange:from"),z===2)return x=E[y],b=E[y+1],0<a(x,b)&&(E[y]=b,E[y+1]=x,this.xb()),this;if(y===0)if(x>=b)E.sort(a);else for(y=E.slice(0,x),y.sort(a),a=0;a<x;a++)E[a]=y[a];else if(x>=b)for(x=E.slice(y),x.sort(a),a=y;a<b;a++)E[a]=x[a-y];else for(b=E.slice(y,x),b.sort(a),a=y;a<x;a++)E[a]=b[a-y];return this.xb(),this},Ct.reverse=function(){return this._isFrozen&&nn(this),this.s.reverse(),this.xb(),this},xe.Object.defineProperties(cn.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 Ar;var a=this.Sa;return a!==null?(a.reset(),a):new er(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return Ar;var a=this.Hg;return a!==null?(a.reset(),a):new Hi(this)}}}),cn.prototype.reverse=cn.prototype.reverse,cn.prototype.sortRange=cn.prototype.zi,cn.prototype.sort=cn.prototype.sort,cn.prototype.toSet=cn.prototype.Iv,cn.prototype.toArray=cn.prototype.Fa,cn.prototype.removeRange=cn.prototype.removeRange,cn.prototype.removeAt=cn.prototype.mb,cn.prototype.delete=cn.prototype.delete,cn.prototype.remove=cn.prototype.remove,cn.prototype.insertAt=cn.prototype.Gb,cn.prototype.pop=cn.prototype.pop,cn.prototype.last=cn.prototype.jc,cn.prototype.first=cn.prototype.first,cn.prototype.set=cn.prototype.set,cn.prototype.setElt=cn.prototype.cd,cn.prototype.get=cn.prototype.get,cn.prototype.elt=cn.prototype.M,cn.prototype.indexOf=cn.prototype.indexOf,cn.prototype.has=cn.prototype.has,cn.prototype.contains=cn.prototype.contains,cn.prototype.clear=cn.prototype.clear,cn.prototype.addAll=cn.prototype.addAll,cn.prototype.push=cn.prototype.push,cn.prototype.add=cn.prototype.add,cn.prototype.thaw=cn.prototype.ka,cn.prototype.freeze=cn.prototype.freeze,cn.className="List";function lr(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}lr.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},lr.prototype.next=function(){var a=this.eg;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=y.value,this.key=y.key,!0):(this.de(),!1)},lr.prototype.Ad=function(){return this.next()},lr.prototype.first=function(){var a=this.eg;if(this.qa=a.Ja,a=a.ea,a!==null){this.sa=a;var y=a.value;return this.key=a.key,this.value=y}return null},lr.prototype.any=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},lr.prototype.all=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},lr.prototype.each=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;)a(y.value),y=y.va;return this},lr.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new cn;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},lr.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new cn;for(y=y.ea;y!==null;){var E=y.value;a(E)&&x.add(E),y=y.va}return x.iterator},lr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},lr.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},xe.Object.defineProperties(lr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),lr.prototype.first=lr.prototype.first,lr.prototype.hasNext=lr.prototype.Ad,lr.prototype.next=lr.prototype.next,lr.prototype.reset=lr.prototype.reset,lr.className="SetIterator";function xn(a){wi(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&ee("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Ct=xn.prototype,Ct.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Ct.freeze=function(){return this._isFrozen=!0,this},Ct.ka=function(){return this._isFrozen=!1,this},Ct.toString=function(){return"Set()#"+Sr(this)},Ct.add=function(a){if(a===null)return this;this._isFrozen&&nn(this,a);var y=a;return Ke(a)&&(y=Xi(a)),this.Tb[y]===void 0&&(this.Sb++,a=new $e(a,a),this.Tb[y]=a,y=this.kf,y===null?this.ea=a:(a.ll=y,y.va=a),this.kf=a,this.xb()),this},Ct.addAll=function(a){if(a===null)return this;if(this._isFrozen&&nn(this),Gn(a))for(var y=a.length,x=0;x<y;x++)this.add(a[x]);else for(a=a.iterator;a.next();)this.add(a.value);return this},Ct.contains=function(a){if(a===null)return!1;var y=a;return Ke(a)&&(y=Sr(a),y===void 0)?!1:this.Tb[y]!==void 0},Ct.has=function(a){return this.contains(a)},Ct.Sy=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(!this.contains(a.value))return!1;return!0},Ct.Ty=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(this.contains(a.value))return!0;return!1},Ct.first=function(){var a=this.ea;return a===null?null:a.value},xn.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},xn.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},xn.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y.value),y=y.va;return this},xn.prototype.map=function(a){for(var y=new xn,x=this.ea;x!==null;)y.add(a(x.value)),x=x.va;return y},xn.prototype.filter=function(a){for(var y=new xn,x=this.ea;x!==null;){var E=x.value;a(E)&&y.add(E),x=x.va}return y},Ct=xn.prototype,Ct.remove=function(a){if(a===null)return!1;this._isFrozen&&nn(this,a);var y=a;if(Ke(a)&&(y=Sr(a),y===void 0)||(a=this.Tb[y],a===void 0))return!1;var x=a.va,E=a.ll;return x!==null&&(x.ll=E),E!==null&&(E.va=x),this.ea===a&&(this.ea=x),this.kf===a&&(this.kf=E),delete this.Tb[y],this.Sb--,this.xb(),!0},Ct.delete=function(a){return this.remove(a)},Ct.hp=function(a){if(a===null)return this;if(this._isFrozen&&nn(this),Gn(a))for(var y=a.length,x=0;x<y;x++)this.remove(a[x]);else for(a=a.iterator;a.next();)this.remove(a.value);return this},Ct.pA=function(a){if(a===null||this.count===0)return this;this._isFrozen&&nn(this);var y=new xn;y.addAll(a),a=[];for(var x=this.iterator;x.next();){var E=x.value;y.contains(E)||a.push(E)}return this.hp(a),this},Ct.clear=function(){this._isFrozen&&nn(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.kf=this.ea=null,this.xb()},xn.prototype.copy=function(){var a=new xn,y=this.Tb,x;for(x in y)a.add(y[x].value);return a},xn.prototype.Fa=function(){var a=Array(this.Sb),y=this.Tb,x=0,E;for(E in y)a[x]=y[E].value,x++;return a},xn.prototype.Hv=function(){var a=new cn,y=this.Tb,x;for(x in y)a.add(y[x].value);return a};function wi(a){a.__gohashid=ao++}function Xi(a){var y=a.__gohashid;return y===void 0&&(y=ao++,a.__gohashid=y),y}function Sr(a){return a.__gohashid}xe.Object.defineProperties(xn.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return Ar;var a=this.Sa;return a!==null?(a.reset(),a):new lr(this)}}}),xn.prototype.toList=xn.prototype.Hv,xn.prototype.toArray=xn.prototype.Fa,xn.prototype.clear=xn.prototype.clear,xn.prototype.retainAll=xn.prototype.pA,xn.prototype.removeAll=xn.prototype.hp,xn.prototype.delete=xn.prototype.delete,xn.prototype.remove=xn.prototype.remove,xn.prototype.first=xn.prototype.first,xn.prototype.containsAny=xn.prototype.Ty,xn.prototype.containsAll=xn.prototype.Sy,xn.prototype.has=xn.prototype.has,xn.prototype.contains=xn.prototype.contains,xn.prototype.addAll=xn.prototype.addAll,xn.prototype.add=xn.prototype.add,xn.prototype.thaw=xn.prototype.ka,xn.prototype.freeze=xn.prototype.freeze;var ao=1;xn.className="Set",xn.uniqueHash=wi,xn.hashIdUnique=Xi,xn.hashId=Sr;function co(a){this.ma=a,this.qa=a.Ja,this.sa=null}co.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},co.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=this.key=a=y.key,!0):(this.de(),!1)},co.prototype.Ad=function(){return this.next()},co.prototype.first=function(){var a=this.ma;return this.qa=a.Ja,a=a.ea,a!==null?(this.sa=a,this.value=this.key=a=a.key):null},co.prototype.any=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},co.prototype.all=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},co.prototype.each=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;)a(y.key),y=y.va;return this},co.prototype.map=function(a){var y=this.ma;this.sa=null;var x=new cn;for(y=y.ea;y!==null;)x.add(a(y.key)),y=y.va;return x.iterator},co.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new cn;for(y=y.ea;y!==null;){var E=y.key;a(E)&&x.add(E),y=y.va}return x.iterator},co.prototype.de=function(){this.value=this.key=null,this.qa=-1},co.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},xe.Object.defineProperties(co.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),co.prototype.first=co.prototype.first,co.prototype.hasNext=co.prototype.Ad,co.prototype.next=co.prototype.next,co.prototype.reset=co.prototype.reset,co.className="MapKeySetIterator";function qr(a){xn.call(this),wi(this),this._isFrozen=!0,this.ma=a}ye(qr,xn),Ct=qr.prototype,Ct.freeze=function(){return this},Ct.ka=function(){return this},Ct.toString=function(){return"MapKeySet("+this.ma.toString()+")"},Ct.add=function(){ee("This Set is read-only: "+this.toString())},Ct.contains=function(a){return this.ma.contains(a)},Ct.has=function(a){return this.contains(a)},Ct.remove=function(){ee("This Set is read-only: "+this.toString())},Ct.delete=function(a){return this.remove(a)},Ct.clear=function(){ee("This Set is read-only: "+this.toString())},Ct.first=function(){var a=this.ma.ea;return a!==null?a.key:null},qr.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},qr.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},qr.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},qr.prototype.map=function(a){for(var y=new xn,x=this.ma.ea;x!==null;)y.add(a(x.key)),x=x.va;return y},qr.prototype.filter=function(a){for(var y=new xn,x=this.ma.ea;x!==null;){var E=x.key;a(E)&&y.add(E),x=x.va}return y},qr.prototype.copy=function(){return new qr(this.ma)},qr.prototype.Iv=function(){var a=new xn,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},qr.prototype.Fa=function(){var a=this.ma.Tb,y=Array(this.ma.Sb),x=0,E;for(E in a)y[x]=a[E].key,x++;return y},qr.prototype.Hv=function(){var a=new cn,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},xe.Object.defineProperties(qr.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?Ar:new co(this.ma)}}}),qr.prototype.toList=qr.prototype.Hv,qr.prototype.toArray=qr.prototype.Fa,qr.prototype.toSet=qr.prototype.Iv,qr.prototype.first=qr.prototype.first,qr.prototype.clear=qr.prototype.clear,qr.prototype.delete=qr.prototype.delete,qr.prototype.remove=qr.prototype.remove,qr.prototype.has=qr.prototype.has,qr.prototype.contains=qr.prototype.contains,qr.prototype.add=qr.prototype.add,qr.prototype.thaw=qr.prototype.ka,qr.prototype.freeze=qr.prototype.freeze,qr.className="MapKeySet";function io(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}io.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},io.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=y.value,this.key=y.key,!0):(this.de(),!1)},io.prototype.Ad=function(){return this.next()},io.prototype.first=function(){var a=this.ma;if(this.qa=a.Ja,a=a.ea,a!==null){this.sa=a;var y=a.value;return this.key=a.key,this.value=y}return null},io.prototype.any=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},io.prototype.all=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},io.prototype.each=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;)a(y.value),y=y.va;return this},io.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var x=new cn;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},io.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var x=new cn;for(y=y.ea;y!==null;){var E=y.value;a(E)&&x.add(E),y=y.va}return x.iterator},io.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},io.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},xe.Object.defineProperties(io.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),io.prototype.first=io.prototype.first,io.prototype.hasNext=io.prototype.Ad,io.prototype.next=io.prototype.next,io.prototype.reset=io.prototype.reset,io.className="MapValueSetIterator";function $e(a,y){this.key=a,this.value=y,this.ll=this.va=null}$e.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},$e.className="KeyValuePair";function Rn(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}Rn.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},Rn.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.key=y.key,this.value=y.value,!0):(this.de(),!1)},Rn.prototype.Ad=function(){return this.next()},Rn.prototype.first=function(){var a=this.ma;return this.qa=a.Ja,a=a.ea,a!==null?(this.sa=a,this.key=a.key,this.value=a.value,a):null},Rn.prototype.any=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},Rn.prototype.all=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},Rn.prototype.each=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;)a(y),y=y.va;return this},Rn.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new cn;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},Rn.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new cn;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},Rn.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},Rn.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},xe.Object.defineProperties(Rn.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Rn.prototype.first=Rn.prototype.first,Rn.prototype.hasNext=Rn.prototype.Ad,Rn.prototype.next=Rn.prototype.next,Rn.prototype.reset=Rn.prototype.reset,Rn.className="MapIterator";function on(a){wi(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.jf=this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&ee("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Ct=on.prototype,Ct.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Ct.freeze=function(){return this._isFrozen=!0,this},Ct.ka=function(){return this._isFrozen=!1,this},Ct.toString=function(){return"Map()#"+Sr(this)},Ct.add=function(a,y){this._isFrozen&&nn(this,a);var x=a;Ke(a)&&(x=Xi(a));var E=this.Tb[x];return E===void 0?(this.Sb++,a=new $e(a,y),this.Tb[x]=a,x=this.kf,x===null?this.ea=a:(a.ll=x,x.va=a),this.kf=a,this.xb()):E.value=y,this},Ct.set=function(a,y){return this.add(a,y)},Ct.addAll=function(a){if(a===null)return this;if(Gn(a))for(var y=a.length,x=0;x<y;x++){var E=a[x];this.add(E.key,E.value)}else if(a instanceof on)for(a=a.iterator;a.next();)this.add(a.key,a.value);else for(a=a.iterator;a.next();)y=a.value,this.add(y.key,y.value);return this},Ct.first=function(){return this.ea},on.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},on.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},on.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y),y=y.va;return this},on.prototype.map=function(a){for(var y=new on,x=this.ea;x!==null;)y.add(x.key,a(x)),x=x.va;return y},on.prototype.filter=function(a){for(var y=new on,x=this.ea;x!==null;)a(x)&&y.add(x.key,x.value),x=x.va;return y},Ct=on.prototype,Ct.contains=function(a){var y=a;return Ke(a)&&(y=Sr(a),y===void 0)?!1:this.Tb[y]!==void 0},Ct.has=function(a){return this.contains(a)},Ct.I=function(a){var y=a;return Ke(a)&&(y=Sr(a),y===void 0)?null:(a=this.Tb[y],a===void 0?null:a.value)},Ct.get=function(a){return this.I(a)},Ct.remove=function(a){if(a===null)return!1;this._isFrozen&&nn(this,a);var y=a;if(Ke(a)&&(y=Sr(a),y===void 0)||(a=this.Tb[y],a===void 0))return!1;var x=a.va,E=a.ll;return x!==null&&(x.ll=E),E!==null&&(E.va=x),this.ea===a&&(this.ea=x),this.kf===a&&(this.kf=E),delete this.Tb[y],this.Sb--,this.xb(),!0},Ct.delete=function(a){return this.remove(a)},Ct.clear=function(){this._isFrozen&&nn(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.jf!==null&&this.jf.reset(),this.kf=this.ea=null,this.xb()},on.prototype.copy=function(){var a=new on,y=this.Tb,x;for(x in y){var E=y[x];a.add(E.key,E.value)}return a},on.prototype.Fa=function(){var a=this.Tb,y=Array(this.Sb),x=0,E;for(E in a){var b=a[E];y[x]=new $e(b.key,b.value),x++}return y},on.prototype.Lf=function(){return new qr(this)},xe.Object.defineProperties(on.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return Ar;var a=this.Sa;return a!==null?(a.reset(),a):new Rn(this)}},iteratorKeys:{get:function(){return 0>=this.count?Ar:new co(this)}},iteratorValues:{get:function(){if(0>=this.count)return Ar;var a=this.jf;return a!==null?(a.reset(),a):new io(this)}}}),on.prototype.toKeySet=on.prototype.Lf,on.prototype.toArray=on.prototype.Fa,on.prototype.clear=on.prototype.clear,on.prototype.delete=on.prototype.delete,on.prototype.remove=on.prototype.remove,on.prototype.get=on.prototype.get,on.prototype.getValue=on.prototype.I,on.prototype.has=on.prototype.has,on.prototype.contains=on.prototype.contains,on.prototype.first=on.prototype.first,on.prototype.addAll=on.prototype.addAll,on.prototype.set=on.prototype.set,on.prototype.add=on.prototype.add,on.prototype.thaw=on.prototype.ka,on.prototype.freeze=on.prototype.freeze,on.className="Map";function Bt(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):ee("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var Zt,Gt,he,Be,rn;Bt.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},Bt.prototype.h=function(a,y){return this.x=a,this.y=y,this},Bt.prototype.sg=function(a,y){return this.x=a,this.y=y,this},Bt.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},Bt.prototype.copy=function(){var a=new Bt;return a.x=this.x,a.y=this.y,a},Ct=Bt.prototype,Ct.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ct.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ct.freeze=function(){return this._isFrozen=!0,this},Ct.ka=function(){return Object.isFrozen(this)&&ee("cannot thaw constant: "+this),this._isFrozen=!1,this};function ie(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;return(E=a[y++])&&(b=parseFloat(E)),new Bt(x,b)}return new Bt}function ke(a){return a.x.toString()+" "+a.y.toString()}Ct.toString=function(){return"Point("+this.x+","+this.y+")"},Ct.D=function(a){return a instanceof Bt?this.x===a.x&&this.y===a.y:!1},Ct.hi=function(a,y){return this.x===a&&this.y===y},Ct.Xa=function(a){return me.B(this.x,a.x)&&me.B(this.y,a.y)},Ct.add=function(a){return this.x+=a.x,this.y+=a.y,this},Ct.re=function(a){return this.x-=a.x,this.y-=a.y,this},Ct.offset=function(a,y){return this.x+=a,this.y+=y,this},Bt.prototype.rotate=function(a){if(a===0)return this;var y=this.x,x=this.y;if(y===0&&x===0)return this;if(360<=a?a-=360:0>a&&(a+=360),a===90){a=0;var E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));return this.x=a*y-E*x,this.y=E*y+a*x,this},Ct=Bt.prototype,Ct.scale=function(a,y){return this.x*=a,this.y*=y,this},Ct.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},Ct.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},Ct.normalize=function(){var a=this.x,y=this.y,x=Math.sqrt(a*a+y*y);return 0<x&&(this.x=a/x,this.y=y/x),this},Ct.ab=function(a){return He(a.x-this.x,a.y-this.y)},Ct.direction=function(a,y){return He(a-this.x,y-this.y)};function He(a,y){if(a===0)return 0<y?90:0>y?270:0;if(y===0)return 0<a?0:180;if(isNaN(a)||isNaN(y))return 0;var x=180*Math.atan(Math.abs(y/a))/Math.PI;return 0>a?x=0>y?x+180:180-x:0>y&&(x=360-x),x}Ct.Ry=function(a,y){return me.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},Ct.fA=function(a,y,x,E){return me.qh(a,y,x,E,this.x,this.y,this),this},Ct.gA=function(a,y){return me.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},Ct.uA=function(a,y,x,E){return me.No(this.x,this.y,a,y,x,E,this),this},Ct.vA=function(a,y){return me.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},Ct.xi=function(a,y){return this.x=a.x+y.x*a.width+y.offsetX,this.y=a.y+y.y*a.height+y.offsetY,this},Ct.yi=function(a,y,x,E,b){return this.x=a+b.x*x+b.offsetX,this.y=y+b.y*E+b.offsetY,this},Ct.transform=function(a){return a.Ga(this),this};function _e(a,y){return y.Cd(a),a}function hn(a,y,x,E,b,z){var tt=b-x,rt=z-E,ot=tt*tt+rt*rt;x-=a,E-=y;var st=-x*tt-E*rt;return 0>=st||st>=ot?(tt=b-a,rt=z-y,Math.min(x*x+E*E,tt*tt+rt*rt)):(a=tt*E-rt*x,a*a/ot)}function mi(a,y,x,E){return a=x-a,y=E-y,a*a+y*y}function Et(a,y,x,E){return a=x-a,y=E-y,a===0?0<y?90:0>y?270:0:y===0?0<a?0:180:isNaN(a)||isNaN(y)?0:(E=180*Math.atan(Math.abs(y/a))/Math.PI,0>a?E=0>y?E+180:180-E:0>y&&(E=360-E),E)}Ct.w=function(){return isFinite(this.x)&&isFinite(this.y)},Bt.alloc=function(){var a=qt.pop();return a===void 0?new Bt:a},Bt.allocAt=function(a,y){var x=qt.pop();return x===void 0?new Bt(a,y):(x.x=a,x.y=y,x)},Bt.free=function(a){qt.push(a)},Bt.prototype.isReal=Bt.prototype.w,Bt.prototype.setSpot=Bt.prototype.yi,Bt.prototype.setRectSpot=Bt.prototype.xi,Bt.prototype.snapToGridPoint=Bt.prototype.vA,Bt.prototype.snapToGrid=Bt.prototype.uA,Bt.prototype.projectOntoLineSegmentPoint=Bt.prototype.gA,Bt.prototype.projectOntoLineSegment=Bt.prototype.fA,Bt.intersectingLineSegments=function(a,y,x,E,b,z,tt,rt){return me.Rl(a,y,x,E,b,z,tt,rt)},Bt.prototype.compareWithLineSegmentPoint=Bt.prototype.Ry,Bt.compareWithLineSegment=function(a,y,x,E,b,z){return me.Fl(a,y,x,E,b,z)},Bt.prototype.direction=Bt.prototype.direction,Bt.prototype.directionPoint=Bt.prototype.ab,Bt.prototype.normalize=Bt.prototype.normalize,Bt.prototype.distanceSquared=Bt.prototype.zd,Bt.prototype.distanceSquaredPoint=Bt.prototype.Bf,Bt.prototype.scale=Bt.prototype.scale,Bt.prototype.rotate=Bt.prototype.rotate,Bt.prototype.offset=Bt.prototype.offset,Bt.prototype.subtract=Bt.prototype.re,Bt.prototype.add=Bt.prototype.add,Bt.prototype.equalsApprox=Bt.prototype.Xa,Bt.prototype.equalTo=Bt.prototype.hi,Bt.prototype.equals=Bt.prototype.D,Bt.prototype.set=Bt.prototype.set,Bt.prototype.setTo=Bt.prototype.sg;var qt=[];Bt.className="Point",Bt.parse=ie,Bt.stringify=ke,Bt.distanceLineSegmentSquared=hn,Bt.distanceSquared=mi,Bt.direction=Et,Bt.Origin=Zt=new Bt(0,0).ja(),Bt.InfiniteTopLeft=Gt=new Bt(-1/0,-1/0).ja(),Bt.InfiniteBottomRight=he=new Bt(1/0,1/0).ja(),Bt.SixPoint=Be=new Bt(6,6).ja(),Bt.NoPoint=rn=new Bt(NaN,NaN).ja(),Bt.parse=ie,Bt.stringify=ke,Bt.distanceLineSegmentSquared=hn,Bt.distanceSquared=mi,Bt.direction=Et;function zt(a,y){a===void 0?this.height=this.width=0:typeof a=="number"&&(0<=a||isNaN(a))&&typeof y=="number"&&(0<=y||isNaN(y))?(this.width=a,this.height=y):ee("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var ae,de,je,Ye,tn,Ln,Bn;zt.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},zt.prototype.h=function(a,y){return this.width=a,this.height=y,this},zt.prototype.sg=function(a,y){return this.width=a,this.height=y,this},zt.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},zt.prototype.copy=function(){var a=new zt;return a.width=this.width,a.height=this.height,a},Ct=zt.prototype,Ct.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ct.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ct.freeze=function(){return this._isFrozen=!0,this},Ct.ka=function(){return Object.isFrozen(this)&&ee("cannot thaw constant: "+this),this._isFrozen=!1,this};function Pn(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;return(E=a[y++])&&(b=parseFloat(E)),new zt(x,b)}return new zt}function ri(a){return a.width.toString()+" "+a.height.toString()}Ct.toString=function(){return"Size("+this.width+","+this.height+")"},Ct.D=function(a){return a instanceof zt?this.width===a.width&&this.height===a.height:!1},Ct.hi=function(a,y){return this.width===a&&this.height===y},Ct.Xa=function(a){return me.B(this.width,a.width)&&me.B(this.height,a.height)},Ct.Bc=function(a,y){return a=this.width+a,this.width=0<=a?a:0,y=this.height+y,this.height=0<=y?y:0,this},Ct.w=function(){return isFinite(this.width)&&isFinite(this.height)},zt.alloc=function(){var a=Si.pop();return a===void 0?new zt:a},zt.free=function(a){Si.push(a)},zt.prototype.isReal=zt.prototype.w,zt.prototype.inflate=zt.prototype.Bc,zt.prototype.equalsApprox=zt.prototype.Xa,zt.prototype.equalTo=zt.prototype.hi,zt.prototype.equals=zt.prototype.D,zt.prototype.set=zt.prototype.set,zt.prototype.setTo=zt.prototype.sg;var Si=[];zt.className="Size",zt.parse=Pn,zt.stringify=ri,zt.ZeroSize=ae=new zt(0,0).ja(),zt.OneSize=de=new zt(1,1).ja(),zt.SixSize=je=new zt(6,6).ja(),zt.EightSize=Ye=new zt(8,8).ja(),zt.TenSize=tn=new zt(10,10).ja(),zt.InfiniteSize=Ln=new zt(1/0,1/0).ja(),zt.NoSize=Bn=new zt(NaN,NaN).ja(),zt.parse=Pn,zt.stringify=ri;function ue(a,y,x,E){a===void 0?this.height=this.width=this.y=this.x=0:typeof a=="number"&&typeof y=="number"&&typeof x=="number"&&(0<=x||isNaN(x))&&typeof E=="number"&&(0<=E||isNaN(E))?(this.x=a,this.y=y,this.width=x,this.height=E):a instanceof Bt?(x=a.x,a=a.y,y instanceof Bt?(E=y.x,y=y.y,this.x=Math.min(x,E),this.y=Math.min(a,y),this.width=Math.abs(x-E),this.height=Math.abs(a-y)):y instanceof zt?(this.x=x,this.y=a,this.width=y.width,this.height=y.height):ee("Incorrect second argument supplied to Rect constructor "+y)):ee("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+E),this._isFrozen=!1}Ct=ue.prototype,Ct.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Ct.h=function(a,y,x,E){return this.x=a,this.y=y,this.width=x,this.height=E,this};function Un(a,y,x){a.width=y,a.height=x}Ct.sg=function(a,y,x,E){return this.x=a,this.y=y,this.width=x,this.height=E,this},Ct.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Ct.dd=function(a){return this.x=a.x,this.y=a.y,this},Ct.tA=function(a){return this.width=a.width,this.height=a.height,this},ue.prototype.copy=function(){var a=new ue;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},Ct=ue.prototype,Ct.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ct.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ct.freeze=function(){return this._isFrozen=!0,this},Ct.ka=function(){return Object.isFrozen(this)&&ee("cannot thaw constant: "+this),this._isFrozen=!1,this};function si(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;(E=a[y++])&&(b=parseFloat(E));for(var z=0;a[y]==="";)y++;(E=a[y++])&&(z=parseFloat(E));for(var tt=0;a[y]==="";)y++;return(E=a[y++])&&(tt=parseFloat(E)),new ue(x,b,z,tt)}return new ue}function zn(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}Ct.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},Ct.D=function(a){return a instanceof ue?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},Ct.hi=function(a,y,x,E){return this.x===a&&this.y===y&&this.width===x&&this.height===E},Ct.Xa=function(a){return me.B(this.x,a.x)&&me.B(this.y,a.y)&&me.B(this.width,a.width)&&me.B(this.height,a.height)};function ci(a,y){return me.$(a.x,y.x)&&me.$(a.y,y.y)&&me.$(a.width,y.width)&&me.$(a.height,y.height)}Ct.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},Ct.Re=function(a){return this.x<=a.x&&a.x+a.width<=this.x+this.width&&this.y<=a.y&&a.y+a.height<=this.y+this.height},Ct.contains=function(a,y,x,E){return x===void 0&&(x=0),E===void 0&&(E=0),this.x<=a&&a+x<=this.x+this.width&&this.y<=y&&y+E<=this.y+this.height},Ct.offset=function(a,y){return this.x+=a,this.y+=y,this},Ct.Bc=function(a,y){return vi(this,y,a,y,a)},Ct.Co=function(a){return vi(this,a.top,a.right,a.bottom,a.left)},Ct.Fv=function(a){return vi(this,-a.top,-a.right,-a.bottom,-a.left)},Ct.Hz=function(a,y,x,E){return vi(this,a,y,x,E)};function vi(a,y,x,E,b){var z=a.width;return x+b<=-z?(a.x+=z/2,a.width=0):(a.x-=b,a.width+=x+b),x=a.height,y+E<=-x?(a.y+=x/2,a.height=0):(a.y-=y,a.height+=y+E),a}Ct.Ex=function(a){return Ti(this,a.x,a.y,a.width,a.height)},Ct.Uu=function(a,y,x,E){return Ti(this,a,y,x,E)};function Ti(a,y,x,E,b){var z=Math.max(a.x,y),tt=Math.max(a.y,x);return y=Math.min(a.x+a.width,y+E),x=Math.min(a.y+a.height,x+b),a.x=z,a.y=tt,a.width=Math.max(0,y-z),a.height=Math.max(0,x-tt),a}Ct.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},Ct.Vu=function(a,y,x,E){var b=this.width,z=this.x;return b!==1/0&&x!==1/0&&(b+=z,x+=a,isNaN(x)||isNaN(b)||z>x||a>b)?!1:(a=this.height,x=this.y,!(a!==1/0&&E!==1/0&&(a+=x,E+=y,isNaN(E)||isNaN(a)||x>E||y>a)))};function Fi(a,y){var x=a.width,E=a.x,b=y.x-10;return E>y.width+10+10+b||b>x+E?!1:(x=a.height,a=a.y,E=y.y-10,!(a>y.height+10+10+E||E>x+a))}Ct.Ye=function(a){return Ii(this,a.x,a.y,0,0)},Ct.ed=function(a){return Ii(this,a.x,a.y,a.width,a.height)},Ct.Kv=function(a,y,x,E){return x===void 0&&(x=0),E===void 0&&(E=0),Ii(this,a,y,x,E)};function Ii(a,y,x,E,b){var z=Math.min(a.x,y),tt=Math.min(a.y,x);return y=Math.max(a.x+a.width,y+E),x=Math.max(a.y+a.height,x+b),a.x=z,a.y=tt,a.width=y-z,a.height=x-tt,a}Ct.yi=function(a,y,x){return this.x=a-x.offsetX-x.x*this.width,this.y=y-x.offsetY-x.y*this.height,this};function Bi(a,y,x,E,b,z,tt,rt){return tt===void 0&&(tt=0),rt===void 0&&(rt=0),a<=b&&b+tt<=a+x&&y<=z&&z+rt<=y+E}function gr(a,y,x,E,b,z,tt,rt){return a>tt+b||b>x+a?!1:!(y>rt+z||z>E+y)}Ct.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},Ct.Mz=function(){return this.width===0&&this.height===0},ue.alloc=function(){var a=Zr.pop();return a===void 0?new ue:a},ue.allocAt=function(a,y,x,E){var b=Zr.pop();return b===void 0?new ue(a,y,x,E):b.h(a,y,x,E)},ue.free=function(a){Zr.push(a)},xe.Object.defineProperties(ue.prototype,{left:{get:function(){return this.x},set:function(a){this.x=a}},top:{get:function(){return this.y},set:function(a){this.y=a}},right:{get:function(){return this.x+this.width},set:function(a){this.x+=a-(this.x+this.width)}},bottom:{get:function(){return this.y+this.height},set:function(a){this.y+=a-(this.y+this.height)}},position:{get:function(){return new Bt(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new zt(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new Bt(this.x+this.width/2,this.y+this.height/2)},set:function(a){this.x=a.x-this.width/2,this.y=a.y-this.height/2}},centerX:{get:function(){return this.x+this.width/2},set:function(a){this.x=a-this.width/2}},centerY:{get:function(){return this.y+this.height/2},set:function(a){this.y=a-this.height/2}}}),ue.prototype.isEmpty=ue.prototype.Mz,ue.prototype.isReal=ue.prototype.w,ue.intersectsLineSegment=function(a,y,x,E,b,z,tt,rt){return me.Fx(a,y,x,E,b,z,tt,rt)},ue.prototype.setSpot=ue.prototype.yi,ue.prototype.union=ue.prototype.Kv,ue.prototype.unionRect=ue.prototype.ed,ue.prototype.unionPoint=ue.prototype.Ye,ue.prototype.intersects=ue.prototype.Vu,ue.prototype.intersectsRect=ue.prototype.Yc,ue.prototype.intersect=ue.prototype.Uu,ue.prototype.intersectRect=ue.prototype.Ex,ue.prototype.grow=ue.prototype.Hz,ue.prototype.subtractMargin=ue.prototype.Fv,ue.prototype.addMargin=ue.prototype.Co,ue.prototype.inflate=ue.prototype.Bc,ue.prototype.offset=ue.prototype.offset,ue.prototype.contains=ue.prototype.contains,ue.prototype.containsRect=ue.prototype.Re,ue.prototype.containsPoint=ue.prototype.ca,ue.prototype.equalsApprox=ue.prototype.Xa,ue.prototype.equalTo=ue.prototype.hi,ue.prototype.equals=ue.prototype.D,ue.prototype.setSize=ue.prototype.tA,ue.prototype.setPoint=ue.prototype.dd,ue.prototype.set=ue.prototype.set,ue.prototype.setTo=ue.prototype.sg;var Fr=null,zr=null,Zr=[];ue.className="Rect",ue.parse=si,ue.stringify=zn,ue.contains=Bi,ue.intersects=gr,ue.ZeroRect=Fr=new ue(0,0,0,0).ja(),ue.NoRect=zr=new ue(NaN,NaN,NaN,NaN).ja(),ue.parse=si,ue.stringify=zn,ue.contains=Bi,ue.intersects=gr;function Di(a,y,x,E){a===void 0?this.left=this.bottom=this.right=this.top=0:y===void 0?this.left=this.bottom=this.right=this.top=a:x===void 0?(this.top=a,this.right=y,this.bottom=a,this.left=y):E!==void 0?(this.top=a,this.right=y,this.bottom=x,this.left=E):ee("Invalid arguments to Margin constructor: "+a+", "+y+", "+x+", "+E),this._isFrozen=!1}Di.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Di.prototype.sg=function(a,y,x,E){return this.top=a,this.right=y,this.bottom=x,this.left=E,this},Di.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Di.prototype.copy=function(){var a=new Di;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},Ct=Di.prototype,Ct.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ct.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ct.freeze=function(){return this._isFrozen=!0,this},Ct.ka=function(){return Object.isFrozen(this)&&ee("cannot thaw constant: "+this),this._isFrozen=!1,this};function wr(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=NaN;a[y]==="";)y++;var E=a[y++];if(E&&(x=parseFloat(E)),isNaN(x))return new Di;for(var b=NaN;a[y]==="";)y++;if((E=a[y++])&&(b=parseFloat(E)),isNaN(b))return new Di(x);for(var z=NaN;a[y]==="";)y++;if((E=a[y++])&&(z=parseFloat(E)),isNaN(z))return new Di(x,b);for(var tt=NaN;a[y]==="";)y++;return(E=a[y++])&&(tt=parseFloat(E)),isNaN(tt)?new Di(x,b):new Di(x,b,z,tt)}return new Di}function Cr(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}Ct.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},Ct.D=function(a){return a instanceof Di?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},Ct.hi=function(a,y,x,E){return this.top===a&&this.right===y&&this.bottom===x&&this.left===E},Ct.Xa=function(a){return me.B(this.top,a.top)&&me.B(this.right,a.right)&&me.B(this.bottom,a.bottom)&&me.B(this.left,a.left)},Ct.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},Di.alloc=function(){var a=nr.pop();return a===void 0?new Di:a},Di.free=function(a){nr.push(a)},Di.prototype.isReal=Di.prototype.w,Di.prototype.equalsApprox=Di.prototype.Xa,Di.prototype.equalTo=Di.prototype.hi,Di.prototype.equals=Di.prototype.D,Di.prototype.set=Di.prototype.set,Di.prototype.setTo=Di.prototype.sg;var Ir=null,Gi=null,nr=[];Di.className="Margin",Di.parse=wr,Di.stringify=Cr,Di.ZeroMargin=Ir=new Di(0,0,0,0).ja(),Di.TwoMargin=Gi=new Di(2,2,2,2).ja(),Di.parse=wr,Di.stringify=Cr;function Mn(a,y,x,E){a===void 0?this.offsetY=this.offsetX=this.y=this.x=0:(y===void 0&&(y=0),x===void 0&&(x=0),E===void 0&&(E=0),this.x=a,this.y=y,this.offsetX=x,this.offsetY=E),this._isFrozen=!1}var _i,ar,Dr,Br,Pr,Ri,kr,Yr,Jr,jr,so,_r,Vr,fo,Ao,Jo,ro,na,mo,ra,Po,Vo,jo,Yo,Bo,bo,oa,ya,Wo,Ba,Fo,yo,vo,Go,br,Ur;Mn.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},Mn.prototype.sg=function(a,y,x,E){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=E,this},Mn.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},Mn.prototype.copy=function(){var a=new Mn;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},Ct=Mn.prototype,Ct.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ct.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ct.freeze=function(){return this._isFrozen=!0,this},Ct.ka=function(){return Object.isFrozen(this)&&ee("cannot thaw constant: "+this),this._isFrozen=!1,this};function fr(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function Mr(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return _i;if(a==="TopLeft")return ar;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return Dr;if(a==="TopRight")return Br;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return Pr;if(a==="Center")return Ri;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return kr;if(a==="BottomLeft")return Yr;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return Jr;if(a==="BottomRight")return jr;if(a==="TopSide")return so;if(a==="LeftSide")return _r;if(a==="RightSide")return Vr;if(a==="BottomSide")return fo;if(a==="TopBottomSides")return Ao;if(a==="LeftRightSides")return Jo;if(a==="TopLeftSides")return ro;if(a==="TopRightSides")return na;if(a==="BottomLeftSides")return mo;if(a==="BottomRightSides")return ra;if(a==="NotTopSide")return Po;if(a==="NotLeftSide")return Vo;if(a==="NotRightSide")return jo;if(a==="NotBottomSide")return Yo;if(a==="AllSides")return Bo;if(a==="Default")return bo;a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E!==void 0&&0<E.length&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;E=a[y++],E!==void 0&&0<E.length&&(b=parseFloat(E));for(var z=0;a[y]==="";)y++;E=a[y++],E!==void 0&&0<E.length&&(z=parseFloat(E));for(var tt=0;a[y]==="";)y++;return E=a[y++],E!==void 0&&0<E.length&&(tt=parseFloat(E)),new Mn(x,b,z,tt)}return new Mn}function $r(a){return a.sb()?a.x.toString()+" "+a.y.toString()+" "+a.offsetX.toString()+" "+a.offsetY.toString():a.toString()}Ct.toString=function(){return this.sb()?this.offsetX===0&&this.offsetY===0?"Spot("+this.x+","+this.y+")":"Spot("+this.x+","+this.y+","+this.offsetX+","+this.offsetY+")":this.D(_i)?"None":this.D(ar)?"TopLeft":this.D(Dr)?"Top":this.D(Br)?"TopRight":this.D(Pr)?"Left":this.D(Ri)?"Center":this.D(kr)?"Right":this.D(Yr)?"BottomLeft":this.D(Jr)?"Bottom":this.D(jr)?"BottomRight":this.D(so)?"TopSide":this.D(_r)?"LeftSide":this.D(Vr)?"RightSide":this.D(fo)?"BottomSide":this.D(Ao)?"TopBottomSides":this.D(Jo)?"LeftRightSides":this.D(ro)?"TopLeftSides":this.D(na)?"TopRightSides":this.D(mo)?"BottomLeftSides":this.D(ra)?"BottomRightSides":this.D(Po)?"NotTopSide":this.D(Vo)?"NotLeftSide":this.D(jo)?"NotRightSide":this.D(Yo)?"NotBottomSide":this.D(Bo)?"AllSides":this.D(bo)?"Default":"None"},Ct.D=function(a){return a instanceof Mn?(this.x===a.x||isNaN(this.x)&&isNaN(a.x))&&(this.y===a.y||isNaN(this.y)&&isNaN(a.y))&&this.offsetX===a.offsetX&&this.offsetY===a.offsetY:!1},Ct.gv=function(){return new Mn(.5-(this.x-.5),.5-(this.y-.5),-this.offsetX,-this.offsetY)},Ct.Hf=function(a){if(!this.$c())return!1;if(!a.$c())if(a.D(oa))a=_r;else if(a.D(ya))a=Vr;else if(a.D(Wo))a=so;else if(a.D(Ba))a=fo;else return!1;return a=a.offsetY,(this.offsetY&a)===a},Ct.sb=function(){return!isNaN(this.x)&&!isNaN(this.y)},Ct.Mc=function(){return isNaN(this.x)||isNaN(this.y)},Ct.$c=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===1&&this.offsetY!==0},Ct.ys=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===0&&this.offsetY===0},Ct.Xb=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===-1&&this.offsetY===0},Mn.alloc=function(){var a=yr.pop();return a===void 0?new Mn:a},Mn.free=function(a){yr.push(a)},Mn.prototype.isDefault=Mn.prototype.Xb,Mn.prototype.isNone=Mn.prototype.ys,Mn.prototype.isSide=Mn.prototype.$c,Mn.prototype.isNoSpot=Mn.prototype.Mc,Mn.prototype.isSpot=Mn.prototype.sb,Mn.prototype.includesSide=Mn.prototype.Hf,Mn.prototype.opposite=Mn.prototype.gv,Mn.prototype.equals=Mn.prototype.D,Mn.prototype.set=Mn.prototype.set,Mn.prototype.setTo=Mn.prototype.sg;var yr=[];Mn.className="Spot",Mn.parse=Mr,Mn.stringify=$r,Mn.None=_i=fr(new Mn(0,0,0,0),0).ja(),Mn.Default=bo=fr(new Mn(0,0,-1,0),-1).ja(),Mn.TopLeft=ar=new Mn(0,0,0,0).ja(),Mn.TopCenter=Dr=new Mn(.5,0,0,0).ja(),Mn.TopRight=Br=new Mn(1,0,0,0).ja(),Mn.LeftCenter=Pr=new Mn(0,.5,0,0).ja(),Mn.Center=Ri=new Mn(.5,.5,0,0).ja(),Mn.RightCenter=kr=new Mn(1,.5,0,0).ja(),Mn.BottomLeft=Yr=new Mn(0,1,0,0).ja(),Mn.BottomCenter=Jr=new Mn(.5,1,0,0).ja(),Mn.BottomRight=jr=new Mn(1,1,0,0).ja(),Mn.MiddleTop=Fo=Dr,Mn.MiddleLeft=yo=Pr,Mn.MiddleRight=vo=kr,Mn.MiddleBottom=Go=Jr,Mn.Top=Wo=Dr,Mn.Left=oa=Pr,Mn.Right=ya=kr,Mn.Bottom=Ba=Jr,Mn.TopSide=so=fr(new Mn(0,0,1,1),1).ja(),Mn.LeftSide=_r=fr(new Mn(0,0,1,2),1).ja(),Mn.RightSide=Vr=fr(new Mn(0,0,1,4),1).ja(),Mn.BottomSide=fo=fr(new Mn(0,0,1,8),1).ja(),Mn.TopBottomSides=Ao=fr(new Mn(0,0,1,9),1).ja(),Mn.LeftRightSides=Jo=fr(new Mn(0,0,1,6),1).ja(),Mn.TopLeftSides=ro=fr(new Mn(0,0,1,3),1).ja(),Mn.TopRightSides=na=fr(new Mn(0,0,1,5),1).ja(),Mn.BottomLeftSides=mo=fr(new Mn(0,0,1,10),1).ja(),Mn.BottomRightSides=ra=fr(new Mn(0,0,1,12),1).ja(),Mn.NotTopSide=Po=fr(new Mn(0,0,1,14),1).ja(),Mn.NotLeftSide=Vo=fr(new Mn(0,0,1,13),1).ja(),Mn.NotRightSide=jo=fr(new Mn(0,0,1,11),1).ja(),Mn.NotBottomSide=Yo=fr(new Mn(0,0,1,7),1).ja(),Mn.AllSides=Bo=fr(new Mn(0,0,1,15),1).ja(),br=new Mn(.156,.156).ja(),Ur=new Mn(.844,.844).ja(),Mn.parse=Mr,Mn.stringify=$r;function Ei(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}Ei.prototype.set=function(a){return this.m11=a.m11,this.m12=a.m12,this.m21=a.m21,this.m22=a.m22,this.dx=a.dx,this.dy=a.dy,this},Ei.prototype.setTransform=function(a,y,x,E,b,z){return this.m11=a,this.m12=y,this.m21=x,this.m22=E,this.dx=b,this.dy=z,this},Ei.prototype.copy=function(){var a=new Ei;return a.m11=this.m11,a.m12=this.m12,a.m21=this.m21,a.m22=this.m22,a.dx=this.dx,a.dy=this.dy,a},Ei.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},Ei.prototype.D=function(a){return this.m11===a.m11&&this.m12===a.m12&&this.m21===a.m21&&this.m22===a.m22&&this.dx===a.dx&&this.dy===a.dy},Ei.prototype.ws=function(){return this.dx===0&&this.dy===0&&this.m11===1&&this.m12===0&&this.m21===0&&this.m22===1},Ei.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},Ei.prototype.multiply=function(a){var y=this.m11*a.m11+this.m21*a.m12,x=this.m12*a.m11+this.m22*a.m12,E=this.m11*a.m21+this.m21*a.m22,b=this.m12*a.m21+this.m22*a.m22;return this.dx=this.m11*a.dx+this.m21*a.dy+this.dx,this.dy=this.m12*a.dx+this.m22*a.dy+this.dy,this.m11=y,this.m12=x,this.m21=E,this.m22=b,this},Ei.prototype.bv=function(a){var y=1/(a.m11*a.m22-a.m12*a.m21),x=a.m22*y,E=-a.m12*y,b=-a.m21*y,z=a.m11*y,tt=y*(a.m21*a.dy-a.m22*a.dx);return a=y*(a.m12*a.dx-a.m11*a.dy),y=this.m11*x+this.m21*E,x=this.m12*x+this.m22*E,E=this.m11*b+this.m21*z,b=this.m12*b+this.m22*z,this.dx=this.m11*tt+this.m21*a+this.dx,this.dy=this.m12*tt+this.m22*a+this.dy,this.m11=y,this.m12=x,this.m21=E,this.m22=b,this},Ei.prototype.Vj=function(){var a=1/(this.m11*this.m22-this.m12*this.m21),y=-this.m12*a,x=-this.m21*a,E=this.m11*a,b=a*(this.m21*this.dy-this.m22*this.dx),z=a*(this.m12*this.dx-this.m11*this.dy);return this.m11=this.m22*a,this.m12=y,this.m21=x,this.m22=E,this.dx=b,this.dy=z,this},Ei.prototype.rotate=function(a,y,x){if(360<=a?a-=360:0>a&&(a+=360),a===0)return this;if(this.translate(y,x),a===90){a=0;var E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));var b=this.m12*a+this.m22*E,z=this.m11*-E+this.m21*a,tt=this.m12*-E+this.m22*a;return this.m11=this.m11*a+this.m21*E,this.m12=b,this.m21=z,this.m22=tt,this.translate(-y,-x),this},Ct=Ei.prototype,Ct.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},Ct.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},Ct.Ga=function(a){var y=a.x,x=a.y;return a.h(y*this.m11+x*this.m21+this.dx,y*this.m12+x*this.m22+this.dy)},Ct.Cd=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=a.x,E=a.y;return a.h(x*this.m22*y+E*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+E*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},Ct.Eu=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=1.25*a.x,E=1.2*a.y;return a.h(x*this.m22*y+E*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+E*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},Ct.pp=function(a){var y=a.x,x=a.y,E=y+a.width,b=x+a.height,z=this.m11,tt=this.m12,rt=this.m21,ot=this.m22,st=this.dx,ut=this.dy,ft=y*z+x*rt+st,vt=y*tt+x*ot+ut,xt=E*z+x*rt+st,Pt=E*tt+x*ot+ut;return x=y*z+b*rt+st,y=y*tt+b*ot+ut,z=E*z+b*rt+st,E=E*tt+b*ot+ut,b=Math.min(ft,xt),ft=Math.max(ft,xt),xt=Math.min(vt,Pt),vt=Math.max(vt,Pt),b=Math.min(b,x),ft=Math.max(ft,x),xt=Math.min(xt,y),vt=Math.max(vt,y),b=Math.min(b,z),ft=Math.max(ft,z),xt=Math.min(xt,E),vt=Math.max(vt,E),a.h(b,xt,ft-b,vt-xt),a},Ei.alloc=function(){var a=Qo.pop();return a===void 0?new Ei:a},Ei.free=function(a){Qo.push(a)},Ei.prototype.transformRect=Ei.prototype.pp,Ei.prototype.transformPoint=Ei.prototype.Ga,Ei.prototype.scale=Ei.prototype.scale,Ei.prototype.translate=Ei.prototype.translate,Ei.prototype.rotate=Ei.prototype.rotate,Ei.prototype.invert=Ei.prototype.Vj,Ei.prototype.multiplyInverted=Ei.prototype.bv,Ei.prototype.multiply=Ei.prototype.multiply,Ei.prototype.reset=Ei.prototype.reset,Ei.prototype.isIdentity=Ei.prototype.ws,Ei.prototype.equals=Ei.prototype.D,Ei.prototype.setTransform=Ei.prototype.setTransform,Ei.prototype.set=Ei.prototype.set;var Qo=[];Ei.className="Transform",Ei.xF="54a702f3e53909c447824c6706603faf4c";var me={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=me.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);me.Uv=y}return 1>a?(x=1/a,2e3>=x?1/y[x|0]:Math.sqrt(a)):2e3>=a?y[a|0]:Math.sqrt(a)},B:function(a,y){return a-=y,.5>a&&-.5<a},$:function(a,y){return a-=y,5e-8>a&&-5e-8<a},Yb:function(a,y,x,E,b,z,tt){if(0>=b&&(b=1e-6),a<x)var rt=a,ot=x;else rt=x,ot=a;if(y<E)var st=y,ut=E;else st=E,ut=y;if(a===x)return st<=tt&&tt<=ut&&a-b<=z&&z<=a+b;if(y===E)return rt<=z&&z<=ot&&y-b<=tt&&tt<=y+b;if(ot+=b,rt-=b,rt<=z&&z<=ot&&(ut+=b,st-=b,st<=tt&&tt<=ut))if(ot-rt>ut-st)if(a-x>b||x-a>b){if(z=(E-y)/(x-a)*(z-a)+y,z-b<=tt&&tt<=z+b)return!0}else return!0;else if(y-E>b||E-y>b){if(tt=(x-a)/(E-y)*(tt-y)+a,tt-b<=z&&z<=tt+b)return!0}else return!0;return!1},cs:function(a,y,x,E,b,z,tt,rt,ot,st,ut,ft){if(me.Yb(a,y,tt,rt,ft,x,E)&&me.Yb(a,y,tt,rt,ft,b,z))return me.Yb(a,y,tt,rt,ft,st,ut);var vt=(a+x)/2,xt=(y+E)/2,Pt=(x+b)/2,Ft=(E+z)/2;b=(b+tt)/2,z=(z+rt)/2,E=(vt+Pt)/2,x=(xt+Ft)/2,Pt=(Pt+b)/2,Ft=(Ft+z)/2;var Xt=(E+Pt)/2,Wt=(x+Ft)/2;return me.cs(a,y,vt,xt,E,x,Xt,Wt,ot,st,ut,ft)||me.cs(Xt,Wt,Pt,Ft,b,z,tt,rt,ot,st,ut,ft)},ax:function(a,y,x,E,b,z,tt,rt,ot){var st=(x+b)/2,ut=(E+z)/2;return ot.h((((a+x)/2+st)/2+(st+(b+tt)/2)/2)/2,(((y+E)/2+ut)/2+(ut+(z+rt)/2)/2)/2),ot},My:function(a,y,x,E,b,z,tt,rt){var ot=(x+b)/2,st=(E+z)/2;return Et(((a+x)/2+ot)/2,((y+E)/2+st)/2,(ot+(b+tt)/2)/2,(st+(z+rt)/2)/2)},Dl:function(a,y,x,E,b,z,tt,rt,ot,st){if(me.Yb(a,y,tt,rt,ot,x,E)&&me.Yb(a,y,tt,rt,ot,b,z))Ii(st,a,y,0,0),Ii(st,tt,rt,0,0);else{var ut=(a+x)/2,ft=(y+E)/2,vt=(x+b)/2,xt=(E+z)/2;b=(b+tt)/2,z=(z+rt)/2,E=(ut+vt)/2,x=(ft+xt)/2,vt=(vt+b)/2,xt=(xt+z)/2;var Pt=(E+vt)/2,Ft=(x+xt)/2;me.Dl(a,y,ut,ft,E,x,Pt,Ft,ot,st),me.Dl(Pt,Ft,vt,xt,b,z,tt,rt,ot,st)}return st},Qe:function(a,y,x,E,b,z,tt,rt,ot,st){if(me.Yb(a,y,tt,rt,ot,x,E)&&me.Yb(a,y,tt,rt,ot,b,z))st.length===0&&(st.push(a),st.push(y)),st.push(tt),st.push(rt);else{var ut=(a+x)/2,ft=(y+E)/2,vt=(x+b)/2,xt=(E+z)/2;b=(b+tt)/2,z=(z+rt)/2,E=(ut+vt)/2,x=(ft+xt)/2,vt=(vt+b)/2,xt=(xt+z)/2;var Pt=(E+vt)/2,Ft=(x+xt)/2;me.Qe(a,y,ut,ft,E,x,Pt,Ft,ot,st),me.Qe(Pt,Ft,vt,xt,b,z,tt,rt,ot,st)}return st},jv:function(a,y,x,E,b,z,tt,rt,ot,st){if(me.Yb(a,y,b,z,st,x,E))return me.Yb(a,y,b,z,st,rt,ot);var ut=(a+x)/2,ft=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var vt=(ut+x)/2,xt=(ft+E)/2;return me.jv(a,y,ut,ft,vt,xt,tt,rt,ot,st)||me.jv(vt,xt,x,E,b,z,tt,rt,ot,st)},OA:function(a,y,x,E,b,z,tt){return tt.h(((a+x)/2+(x+b)/2)/2,((y+E)/2+(E+z)/2)/2),tt},iv:function(a,y,x,E,b,z,tt,rt){if(me.Yb(a,y,b,z,tt,x,E))Ii(rt,a,y,0,0),Ii(rt,b,z,0,0);else{var ot=(a+x)/2,st=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var ut=(ot+x)/2,ft=(st+E)/2;me.iv(a,y,ot,st,ut,ft,tt,rt),me.iv(ut,ft,x,E,b,z,tt,rt)}return rt},ep:function(a,y,x,E,b,z,tt,rt){if(me.Yb(a,y,b,z,tt,x,E))rt.length===0&&(rt.push(a),rt.push(y)),rt.push(b),rt.push(z);else{var ot=(a+x)/2,st=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var ut=(ot+x)/2,ft=(st+E)/2;me.ep(a,y,ot,st,ut,ft,tt,rt),me.ep(ut,ft,x,E,b,z,tt,rt)}return rt},Eo:function(a,y,x,E,b,z,tt,rt,ot,st,ut,ft,vt,xt){if(me.Yb(a,y,tt,rt,vt,x,E)&&me.Yb(a,y,tt,rt,vt,b,z))return!me.Rl(a,y,tt,rt,ot,st,ut,ft)||(vt=(a-tt)*(st-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)/2,E=(Pt+Xt)/2,x=(Ft+Wt)/2,Xt=(Xt+b)/2,Wt=(Wt+z)/2;var oe=(E+Xt)/2,le=(x+Wt)/2;xt+=me.Fo(a,y,Pt,Ft,E,x,oe,le,ot,st,ut,ft,vt),xt+=me.Fo(oe,le,Xt,Wt,b,z,tt,rt,ot,st,ut,ft,vt)}return xt},qh:function(a,y,x,E,b,z,tt){return me.$(a,x)?(y<E?(x=y,y=E):x=E,z<x?(tt.h(a,x),!1):z>y?(tt.h(a,y),!1):(tt.h(a,z),!0)):me.$(y,E)?(a<x?(E=a,a=x):E=x,b<E?(tt.h(E,y),!1):b>a?(tt.h(a,y),!1):(tt.h(b,y),!0)):(b=((a-b)*(a-x)+(y-z)*(y-E))/((x-a)*(x-a)+(E-y)*(E-y)),-5e-6>b?(tt.h(a,y),!1):1.000005<b?(tt.h(x,E),!1):(tt.h(a+b*(x-a),y+b*(E-y)),!0))},Ve:function(a,y,x,E,b,z,tt,rt,ot){return me.B(a,x)&&me.B(y,E)?(ot.h(a,y),!1):me.$(b,tt)?me.$(a,x)?(me.qh(a,y,x,E,b,z,ot),!1):me.qh(a,y,x,E,b,(E-y)/(x-a)*(b-a)+y,ot):(rt=(rt-z)/(tt-b),me.$(a,x)?(x=rt*(a-b)+z,y<E?(b=y,y=E):b=E,x<b?(ot.h(a,b),!1):x>y?(ot.h(a,y),!1):(ot.h(a,x),!0)):(tt=(E-y)/(x-a),me.$(rt,tt)?(me.qh(a,y,x,E,b,z,ot),!1):(b=(tt*a-rt*b+z-y)/(tt-rt),me.$(tt,0)?(a<x?(E=a,a=x):E=x,b<E?(ot.h(E,y),!1):b>a?(ot.h(a,y),!1):(ot.h(b,y),!0)):me.qh(a,y,x,E,b,tt*(b-a)+y,ot))))},MA:function(a,y,x,E,b){return me.Ve(x.x,x.y,E.x,E.y,a.x,a.y,y.x,y.y,b)},KA:function(a,y,x,E,b,z,tt,rt,ot,st){function ut(Xt,Wt){var oe=(Xt-a)*(Xt-a)+(Wt-y)*(Wt-y);oe<ft&&(ft=oe,ot.h(Xt,Wt))}var ft=1/0;ut(ot.x,ot.y);var vt=0,xt=0,Pt=0,Ft=0;if(b<tt?(vt=b,xt=tt):(vt=tt,xt=b),z<rt?(Pt=b,Ft=tt):(Pt=tt,Ft=b),vt=(xt-vt)/2+st,st=(Ft-Pt)/2+st,b=(b+tt)/2,z=(z+rt)/2,vt===0||st===0)return ot;if(.5>(x>a?x-a:a-x)){if(vt=1-(x-b)*(x-b)/(vt*vt),0>vt)return ot;vt=Math.sqrt(vt),E=-st*vt+z,ut(x,st*vt+z),ut(x,E)}else{if(x=(E-y)/(x-a),E=1/(vt*vt)+x*x/(st*st),rt=2*x*(y-x*a)/(st*st)-2*x*z/(st*st)-2*b/(vt*vt),vt=rt*rt-4*E*(2*x*a*z/(st*st)-2*y*z/(st*st)+z*z/(st*st)+b*b/(vt*vt)-1+(y-x*a)*(y-x*a)/(st*st)),0>vt)return ot;vt=Math.sqrt(vt),st=(-rt+vt)/(2*E),ut(st,x*st-x*a+y),vt=(-rt-vt)/(2*E),ut(vt,x*vt-x*a+y)}return ot},Ff:function(a,y,x,E,b,z,tt,rt,ot){var st=1e21,ut=a,ft=y;if(me.Ve(a,y,a,E,b,z,tt,rt,ot)){var vt=(ot.x-b)*(ot.x-b)+(ot.y-z)*(ot.y-z);vt<st&&(st=vt,ut=ot.x,ft=ot.y)}return me.Ve(x,y,x,E,b,z,tt,rt,ot)&&(vt=(ot.x-b)*(ot.x-b)+(ot.y-z)*(ot.y-z),vt<st&&(st=vt,ut=ot.x,ft=ot.y)),me.Ve(a,y,x,y,b,z,tt,rt,ot)&&(y=(ot.x-b)*(ot.x-b)+(ot.y-z)*(ot.y-z),y<st&&(st=y,ut=ot.x,ft=ot.y)),me.Ve(a,E,x,E,b,z,tt,rt,ot)&&(a=(ot.x-b)*(ot.x-b)+(ot.y-z)*(ot.y-z),a<st&&(st=a,ut=ot.x,ft=ot.y)),ot.h(ut,ft),1e21>st},us:function(a,y,x){return me.Fx(a.x,a.y,a.width,a.height,y.x,y.y,x.x,x.y)},Fx:function(a,y,x,E,b,z,tt,rt){var ot=a+x,st=y+E;return b===tt?(z<rt?(tt=z,z=rt):tt=rt,a<=b&&b<=ot&&tt<=st&&z>=y):z===rt?(b<tt?(rt=b,b=tt):rt=tt,y<=z&&z<=st&&rt<=ot&&b>=a):!!(Bi(a,y,x,E,b,z)||Bi(a,y,x,E,tt,rt)||me.Rl(a,y,ot,y,b,z,tt,rt)||me.Rl(ot,y,ot,st,b,z,tt,rt)||me.Rl(ot,st,a,st,b,z,tt,rt)||me.Rl(a,st,a,y,b,z,tt,rt))},Rl:function(a,y,x,E,b,z,tt,rt){return a===x&&y===E&&b===tt&&z===rt?a===b&&y===z:0>=me.Fl(a,y,x,E,b,z)*me.Fl(a,y,x,E,tt,rt)&&0>=me.Fl(b,z,tt,rt,a,y)*me.Fl(b,z,tt,rt,x,E)},Fl:function(a,y,x,E,b,z){return x-=a,E-=y,a=b-a,y=z-y,z=a*E-y*x,z===0&&(z=a*x+y*E,0<z&&(z=(a-x)*x+(y-E)*E,0>z&&(z=0))),z},bp:function(a){return 0>a&&(a+=360),360<=a&&(a-=360),a},jx:function(a,y,x,E,b,z){var tt=Math.PI;z||(E*=tt/180,b*=tt/180);var rt=E>b?-1:1;z=[];var ot=tt/2,st=E;if(E=Math.min(2*tt,Math.abs(b-E)),1e-5>E)return ot=st+rt*Math.min(E,ot),rt=a+x*Math.cos(st),st=y+x*Math.sin(st),a+=x*Math.cos(ot),y+=x*Math.sin(ot),x=(rt+a)/2,ot=(st+y)/2,z.push([rt,st,x,ot,x,ot,a,y]),z;for(;1e-5<E;)b=st+rt*Math.min(E,ot),z.push(me.Vy(x,st,b,a,y)),E-=Math.abs(b-st),st=b;return z},Vy:function(a,y,x,E,b){var z=(x-y)/2,tt=a*Math.cos(z),rt=a*Math.sin(z),ot=-rt,st=tt*tt+ot*ot,ut=st+tt*tt+ot*rt;return st=4/3*(Math.sqrt(2*st*ut)-ut)/(tt*rt-ot*tt),rt=tt-st*ot,tt=ot+st*tt,ot=-tt,st=z+y,z=Math.cos(st),st=Math.sin(st),[E+a*Math.cos(y),b+a*Math.sin(y),E+rt*z-tt*st,b+rt*st+tt*z,E+rt*z-ot*st,b+rt*st+ot*z,E+a*Math.cos(x),b+a*Math.sin(x)]},No:function(a,y,x,E,b,z,tt){x=Math.floor((a-x)/b)*b+x,E=Math.floor((y-E)/z)*z+E;var rt=x;return x+b-a<b/2&&(rt=x+b),a=E,E+z-y<z/2&&(a=E+z),tt.h(rt,a),tt},vx:function(a,y){var x=Math.max(a,y);a=Math.min(a,y);var E;do y=x%a,x=E=a,a=y;while(0<y);return E},$y:function(a,y,x,E){var b=0>x,z=0>E;if(a<y)var tt=1,rt=0;else tt=0,rt=1;var ot=tt===0?a:y,st=tt===0?x:E;return(tt===0?b:z)&&(st=-st),tt=rt,x=tt===0?x:E,(tt===0?b:z)&&(x=-x),me.az(ot,tt===0?a:y,st,x,0,0)},az:function(a,y,x,E,b,z){if(0<E)if(0<x){b=a*a,z=y*y,a*=x;var tt=y*E,rt=-z+tt,ot=-z+Math.sqrt(a*a+tt*tt);y=rt;for(var st=0;9999999999>st&&(y=.5*(rt+ot),!(y===rt||y===ot));++st){var ut=a/(y+b),ft=tt/(y+z);if(ut=ut*ut+ft*ft-1,0<ut)rt=y;else if(0>ut)ot=y;else break}x=b*x/(y+b)-x,E=z*E/(y+z)-E,x=Math.sqrt(x*x+E*E)}else x=Math.abs(E-y);else E=a*a-y*y,z=a*x,z<E?(E=z/E,z=y*Math.sqrt(Math.abs(1-E*E)),x=a*E-x,x=Math.sqrt(x*x+z*z)):x=Math.abs(x-a);return x},Ze:new Qi,um:new Qi,Mf:new Qi,Nf:0,vm:100};me.za=me.AA;function Wn(a){wi(this),this.l=2,a===void 0&&(a=Wn.o),this.na=a,this.Ec=this.Dc=this.pd=this.od=0,a===Wn.o?this.ee=new cn:(Wn.V===null&&(Wn.V=new cn().freeze()),this.ee=Wn.V),this.aq=this.ee.Ja,this.Ip=new ue().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=ar,this.gg=jr,this.Rk=this.Sk=NaN,this.Uf=Qn}Wn.prototype.copy=function(){var a=new Wn;if(a.l=this.l&-2,a.na=this.na,a.od=this.od,a.pd=this.pd,a.Dc=this.Dc,a.Ec=this.Ec,this.na===Wn.o){for(var y=this.ee.s,x=a.ee,E=0;E<y.length;E++)x.add(y[E].copy());a.ee=x}else a.ee=this.ee;return a.aq=this.aq,a.Ip.assign(this.Ip),a.tk=this.tk,a.ym=this.ym,a.zm=this.zm,a.fg=this.fg.J(),a.gg=this.gg.J(),a.Sk=this.Sk,a.Rk=this.Rk,a.Uf=this.Uf,a},Wn.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},Wn.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==Wn.o)return this;var a=this.figures;a.freeze(),a=a.s;for(var y=a.length,x=0;x<y;x++)a[x].freeze();return this},Wn.prototype.ka=function(){if(Object.isFrozen(this)&&ee("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==Wn.o)return this;var a=this.figures;a.ka(),a=a.s;for(var y=a.length,x=0;x<y;x++)a[x].ka();return this},Wn.prototype.Xa=function(a){if(!(a instanceof Wn))return!1;if(this.type!==a.type)return this.type===Wn.j&&a.type===Wn.o?pa(this,a):a.type===Wn.j&&this.type===Wn.o?pa(a,this):!1;if(this.type===Wn.o){var y=this.figures.s;a=a.figures.s;var x=y.length;if(x!==a.length)return!1;for(var E=0;E<x;E++)if(!y[E].Xa(a[E]))return!1;return!0}return me.B(this.startX,a.startX)&&me.B(this.startY,a.startY)&&me.B(this.endX,a.endX)&&me.B(this.endY,a.endY)};function pa(a,y){return a.type!==Wn.j||y.type!==Wn.o?!1:!!(y.figures.count===1&&(y=y.figures.M(0),y.segments.count===1&&me.B(a.startX,y.startX)&&me.B(a.startY,y.startY)&&(y=y.segments.M(0),y.type===So&&me.B(a.endX,y.endX)&&me.B(a.endY,y.endY))))}Wn.ia=function(a){return a.toString()},Wn.prototype.qb=function(a){a.classType===Wn&&(this.type=a)},Wn.prototype.toString=function(a){switch(a===void 0&&(a=-1),this.type){case Wn.j:return 0>a?"M"+this.startX.toString()+" "+this.startY.toString()+"L"+this.endX.toString()+" "+this.endY.toString():"M"+this.startX.toFixed(a)+" "+this.startY.toFixed(a)+"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);case Wn.u:var y=new ue(this.startX,this.startY,0,0);return y.Kv(this.endX,this.endY,0,0),0>a?"M"+y.x.toString()+" "+y.y.toString()+"H"+y.right.toString()+"V"+y.bottom.toString()+"H"+y.left.toString()+"z":"M"+y.x.toFixed(a)+" "+y.y.toFixed(a)+"H"+y.right.toFixed(a)+"V"+y.bottom.toFixed(a)+"H"+y.left.toFixed(a)+"z";case Wn.F:if(y=new ue(this.startX,this.startY,0,0),y.Kv(this.endX,this.endY,0,0),0>a)return a=y.left.toString()+" "+(y.y+y.height/2).toString(),"M"+a+"A"+(y.width/2).toString()+" "+(y.height/2).toString()+" 0 0 1 "+(y.right.toString()+" "+(y.y+y.height/2).toString())+"A"+(y.width/2).toString()+" "+(y.height/2).toString()+" 0 0 1 "+a;var x=y.left.toFixed(a)+" "+(y.y+y.height/2).toFixed(a);return"M"+x+"A"+(y.width/2).toFixed(a)+" "+(y.height/2).toFixed(a)+" 0 0 1 "+(y.right.toFixed(a)+" "+(y.y+y.height/2).toFixed(a))+"A"+(y.width/2).toFixed(a)+" "+(y.height/2).toFixed(a)+" 0 0 1 "+x;case Wn.o:y="",x=this.figures.s;for(var E=x.length,b=0;b<E;b++){var z=x[b];0<b&&(y+=" x "),z.isFilled&&(y+="F "),y+=z.toString(a)}return y;default:return this.type.toString()}},Wn.nb=function(a){a=a.split(/[Xx]/);for(var y=a.length,x="",E=0;E<y;E++){var b=a[E];x=b.match(/[Ff]/)!==null?E===0?x+b:x+("X"+(b[0]===" "?"":" ")+b):x+((E===0?"":"X ")+"F"+(b[0]===" "?"":" ")+b)}return x},Wn.parse=function(a,y){function x(){return Ft>=ce-1?!0:st[Ft+1].match(Ae)!==null}function E(){return Ft++,st[Ft]}function b(Nr){var Er=parseFloat(E()),ho=parseFloat(E());Xt===Xt.toLowerCase()&&(Er=le.x+Er,ho=le.y+ho),Nr.h(Er,ho)}function z(){return b(le),le}function tt(){return b(oe),oe}function rt(){var Nr=Wt.toLowerCase();return Nr!=="c"&&Nr!=="s"&&Nr!=="q"&&Nr!=="t"?le:new Bt(2*le.x-oe.x,2*le.y-oe.y)}y===void 0&&(y=!1);var ot=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm;a=a.replace(/,/gm," "),a=a.replace(ot,"$1 $2"),a=a.replace(ot,"$1 $2"),a=a.replace(/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([^s])/gm,"$1 $2"),a=a.replace(/([^s])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm,"$1 $2"),a=a.replace(/([0-9])([+\-])/gm,"$1 $2"),a=a.replace(/[\s\r\t\n]+/gm," "),a=a.replace(/^\s+|\s+$/g,"");var st=a.split(" ");for(a=0;a<st.length;a++){var ut=st[a];if(ut.match(/(\.[0-9]*)(\.)/gm)!==null){ot=xi();for(var ft="",vt=!1,xt=0;xt<ut.length;xt++){var Pt=ut[xt];Pt!=="."||vt?Pt==="."?(ot.push(ft),ft="."):ft+=Pt:(vt=!0,ft+=Pt)}for(ot.push(ft),st.splice(a,1),ut=0;ut<ot.length;ut++)st.splice(a+ut,0,ot[ut]);a+=ot.length-1,gi(ot)}}var Ft=-1,Xt="",Wt="";ot=new Bt(0,0);var oe=new Bt(0,0),le=new Bt(0,0),ce=st.length;a=O1(null),vt=ft=ut=!1,xt=!0,Pt=null;for(var Ae=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(Ft>=ce-1);)if(Wt=Xt,Xt=E(),Xt!=="")switch(Xt.toUpperCase()){case"X":xt=!0,ft=ut=!1;break;case"M":for(Pt=z(),a.mc===null||xt===!0?(jf(a,Pt.x,Pt.y,ut,!ft,vt),xt=!1):a.moveTo(Pt.x,Pt.y),ot.assign(le);!x();)Pt=z(),a.lineTo(Pt.x,Pt.y);break;case"L":for(;!x();)Pt=z(),a.lineTo(Pt.x,Pt.y);break;case"H":for(;!x();)le=new Bt((Xt===Xt.toLowerCase()?le.x:0)+parseFloat(E()),le.y),a.lineTo(le.x,le.y);break;case"V":for(;!x();)le=new Bt(le.x,(Xt===Xt.toLowerCase()?le.y:0)+parseFloat(E())),a.lineTo(le.x,le.y);break;case"C":for(;!x();){Pt=new Bt,b(Pt);var Je=tt(),Ci=z();Fh(a,Pt.x,Pt.y,Je.x,Je.y,Ci.x,Ci.y)}break;case"S":for(;!x();)Pt=rt(),Je=tt(),Ci=z(),Fh(a,Pt.x,Pt.y,Je.x,Je.y,Ci.x,Ci.y);break;case"Q":for(;!x();)Pt=tt(),Je=z(),Hm(a,Pt.x,Pt.y,Je.x,Je.y);break;case"T":for(;!x();)oe=Pt=rt(),Je=z(),Hm(a,Pt.x,Pt.y,Je.x,Je.y);break;case"B":for(;!x();){Pt=parseFloat(E()),Je=parseFloat(E()),Ci=parseFloat(E());var Wi=parseFloat(E()),Ni=parseFloat(E()),li=Ni,Tn=!1;x()||(li=parseFloat(E()),x()||(Tn=parseFloat(E())!==0)),Xt===Xt.toLowerCase()&&(Ci+=le.x,Wi+=le.y),a.arcTo(Pt,Je,Ci,Wi,Ni,li,Tn)}break;case"A":for(;!x();)Pt=Math.abs(parseFloat(E())),Je=Math.abs(parseFloat(E())),Ci=parseFloat(E()),Ni=Wi=!1,Tn=li=0,li=E(),li.length===1?(Wi=!!parseFloat(li),Ni=!!parseFloat(E()),li=parseFloat(E())):li.length===2?(Wi=!!parseFloat(li[0]),Ni=!!parseFloat(li[1]),li=parseFloat(E())):(Wi=!!parseFloat(li[0]),Ni=!!parseFloat(li[1]),li=parseFloat(li.slice(2))),Tn=parseFloat(E()),Xt===Xt.toLowerCase()&&(li=le.x+li,Tn=le.y+Tn),le.h(li,Tn),Dx(a,Pt,Je,Ci,Wi,Ni,li,Tn);break;case"Z":Fx(a),le.assign(ot);break;case"F":for(Pt="",Je=1;st[Ft+Je];)if(st[Ft+Je]==="0")vt=!0,Je++;else if(st[Ft+Je].match(/[Uu]/)!==null)Je++;else if(st[Ft+Je].match(Ae)===null)Je++;else{Pt=st[Ft+Je];break}Pt.match(/[Mm]/)?ut=!0:0<a.mc.segments.length&&(a.mc.isFilled=!0);break;case"U":for(Pt="",Je=1;st[Ft+Je];)if(st[Ft+Je].match(/[Ff]/)!==null)Je++;else if(st[Ft+Je].match(Ae)===null)Je++;else{Pt=st[Ft+Je];break}Pt.match(/[Mm]/)?ft=!0:a.mc.isShadowed=!1}if(ot=a.os,Zm=a,y)for(y=ot.figures.iterator;y.next();)y.value.isFilled=!0;return ot},Wn.Ha=function(a,y){for(var x=a.length,E=Bt.alloc(),b=0;b<x;b++){var z=a[b];E.x=z[0],E.y=z[1],y.Ga(E),z[0]=E.x,z[1]=E.y,E.x=z[2],E.y=z[3],y.Ga(E),z[2]=E.x,z[3]=E.y,E.x=z[4],E.y=z[5],y.Ga(E),z[4]=E.x,z[5]=E.y,E.x=z[6],E.y=z[7],y.Ga(E),z[6]=E.x,z[7]=E.y}Bt.free(E)},Wn.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===Wn.o){if(this.aq!==this.figures.Ja)return!0;for(var a=this.figures.s,y=a.length,x=0;x<y;x++)if(a[x].Zu())return!0}return!1},Wn.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===Wn.o){this.aq=this.figures.Ja;for(var a=this.figures.s,y=a.length,x=0;x<y;x++){var E=a[x];E._isInvalidBounds=!1;var b=E.segments;E.sr=b.Ja,E=b.s,b=E.length;for(var z=0;z<b;z++){var tt=E[z];tt._isInvalidBounds=!1,tt.ae=null}}}a=this.Ip,a.ka(),isNaN(this.Sk)||isNaN(this.Rk)?a.h(0,0,0,0):a.h(0,0,this.Sk,this.Rk),Sa(this,a,!1),Ii(a,0,0,0,0),a.freeze()},Wn.prototype.ix=function(){var a=new ue;return Sa(this,a,!0),a};function Sa(a,y,x){switch(a.type){case Wn.j:case Wn.u:case Wn.F:x?y.h(a.od,a.pd,0,0):Ii(y,a.od,a.pd,0,0),Ii(y,a.Dc,a.Ec,0,0);break;case Wn.o:var E=a.figures;a=E.s,E=E.length;for(var b=0;b<E;b++){var z=a[b];x&&b===0?y.h(z.startX,z.startY,0,0):Ii(y,z.startX,z.startY,0,0);for(var tt=z.segments.s,rt=tt.length,ot=z.startX,st=z.startY,ut=0;ut<rt;ut++){var ft=tt[ut];switch(ft.type){case So:case ha:ot=ft.endX,st=ft.endY,Ii(y,ot,st,0,0);break;case ma:me.Dl(ot,st,ft.point1X,ft.point1Y,ft.point2X,ft.point2Y,ft.endX,ft.endY,.5,y),ot=ft.endX,st=ft.endY;break;case ds:me.iv(ot,st,ft.point1X,ft.point1Y,ft.endX,ft.endY,.5,y),ot=ft.endX,st=ft.endY;break;case la:case cs:var vt=ft.type===la?Ya(ft,z):es(ft,z,ot,st),xt=vt.length;if(xt===0){ot=ft.type===la?ft.centerX:ft.endX,st=ft.type===la?ft.centerY:ft.endY,Ii(y,ot,st,0,0);break}ft=null;for(var Pt=0;Pt<xt;Pt++)ft=vt[Pt],me.Dl(ft[0],ft[1],ft[2],ft[3],ft[4],ft[5],ft[6],ft[7],.5,y);ft!==null&&(ot=ft[6],st=ft[7]);break;default:ee("Unknown Segment type: "+ft.type)}}}break;default:ee("Unknown Geometry type: "+a.type)}}Wn.prototype.normalize=function(){this._isFrozen&&nn(this);var a=this.ix();return this.offset(-a.x,-a.y),new Bt(-a.x,-a.y)},Wn.prototype.offset=function(a,y){return this._isFrozen&&nn(this),this.transform(1,0,0,1,a,y),this},Wn.prototype.scale=function(a,y){return this._isFrozen&&nn(this),this.transform(a,0,0,y,0,0),this},Wn.prototype.rotate=function(a,y,x){this._isFrozen&&nn(this),y===void 0&&(y=0),x===void 0&&(x=0);var E=Ei.alloc();return E.reset(),E.rotate(a,y,x),this.transform(E.m11,E.m12,E.m21,E.m22,E.dx,E.dy),Ei.free(E),this},Ct=Wn.prototype,Ct.transform=function(a,y,x,E,b,z){switch(this.type){case Wn.j:case Wn.u:case Wn.F:var tt=this.od,rt=this.pd;this.od=tt*a+rt*x+b,this.pd=tt*y+rt*E+z,tt=this.Dc,rt=this.Ec,this.Dc=tt*a+rt*x+b,this.Ec=tt*y+rt*E+z;break;case Wn.o:for(var ot=this.figures.s,st=ot.length,ut=0;ut<st;ut++){var ft=ot[ut];tt=ft.startX,rt=ft.startY,ft.startX=tt*a+rt*x+b,ft.startY=tt*y+rt*E+z,ft=ft.segments.s;for(var vt=ft.length,xt=0;xt<vt;xt++){var Pt=ft[xt];switch(Pt.type){case So:case ha:tt=Pt.endX,rt=Pt.endY,Pt.endX=tt*a+rt*x+b,Pt.endY=tt*y+rt*E+z;break;case ma:tt=Pt.point1X,rt=Pt.point1Y,Pt.point1X=tt*a+rt*x+b,Pt.point1Y=tt*y+rt*E+z,tt=Pt.point2X,rt=Pt.point2Y,Pt.point2X=tt*a+rt*x+b,Pt.point2Y=tt*y+rt*E+z,tt=Pt.endX,rt=Pt.endY,Pt.endX=tt*a+rt*x+b,Pt.endY=tt*y+rt*E+z;break;case ds:tt=Pt.point1X,rt=Pt.point1Y,Pt.point1X=tt*a+rt*x+b,Pt.point1Y=tt*y+rt*E+z,tt=Pt.endX,rt=Pt.endY,Pt.endX=tt*a+rt*x+b,Pt.endY=tt*y+rt*E+z;break;case la:tt=Pt.centerX,rt=Pt.centerY,Pt.centerX=tt*a+rt*x+b,Pt.centerY=tt*y+rt*E+z,y!==0&&(tt=180*Math.atan2(y,a)/Math.PI,0>tt&&(tt+=360),Pt.startAngle+=tt),0>a&&(Pt.startAngle=180-Pt.startAngle,Pt.sweepAngle=-Pt.sweepAngle),0>E&&(Pt.startAngle=-Pt.startAngle,Pt.sweepAngle=-Pt.sweepAngle),Pt.radiusX*=Math.sqrt(a*a+x*x),Pt.radiusY!==void 0&&(Pt.radiusY*=Math.sqrt(y*y+E*E));break;case cs:if(tt=Pt.endX,rt=Pt.endY,Pt.endX=tt*a+rt*x+b,Pt.endY=tt*y+rt*E+z,Pt.radiusX===0||Pt.radiusY===0)break;y!==0&&(tt=180*Math.atan2(y,a)/Math.PI,0>tt&&(tt+=360),Pt.xAxisRotation+=tt),0>a&&(Pt.xAxisRotation=180-Pt.xAxisRotation,Pt.isClockwiseArc=!Pt.isClockwiseArc),0>E&&(Pt.xAxisRotation=-Pt.xAxisRotation,Pt.isClockwiseArc=!Pt.isClockwiseArc),Pt.radiusX*=Math.sqrt(a*a+x*x),Pt.radiusY*=Math.sqrt(y*y+E*E);break;default:ee("Unknown Segment type: "+Pt.type)}}}}return this._isInvalidBounds=!0,this},Ct.ca=function(a,y){y===void 0&&(y=0);var x=this.od,E=this.pd,b=this.Dc,z=this.Ec;switch(this.type){case Wn.j:return me.Yb(x,E,b,z,y,a.x,a.y);case Wn.u:var tt=ue.allocAt(Math.min(x,b)-y,Math.min(E,z)-y,Math.abs(b-x)+2*y,Math.abs(z-E)+2*y);return a=tt.ca(a),ue.free(tt),a;case Wn.F:tt=Math.min(x,b)-y;var rt=Math.min(E,z)-y;return x=(Math.abs(b-x)+2*y)/2,y=(Math.abs(z-E)+2*y)/2,0>=x||0>=y?!1:(tt=a.x-(tt+x),rt=a.y-(rt+y),1>=tt*tt/(x*x)+rt*rt/(y*y));case Wn.o:return sa(this,a,y,!0,!1);default:return!1}};function sa(a,y,x,E,b){var z=y.x;y=y.y;for(var tt=a.bounds.x-20,rt=0,ot,st,ut,ft,vt=a.figures.s,xt=vt.length,Pt=0;Pt<xt;Pt++){var Ft=vt[Pt],Xt=!Ft.isEvenOdd;if(Ft.isFilled){if(E&&Ft.ca(z,y,x))return!0;var Wt=Ft.segments;ot=Ft.startX,st=Ft.startY;for(var oe=ot,le=st,ce=Wt.s,Ae=0;Ae<=Wt.length;Ae++){var Je=void 0;if(Ae!==Wt.length){Je=ce[Ae];var Ci=Je.type;a=Je.endX,ft=Je.endY}else Ci=So,a=oe,ft=le;switch(Ci){case ha:if(oe=xa(z,y,tt,y,ot,st,oe,le),isNaN(oe))return!0;rt+=oe,oe=a,le=ft;break;case So:if(ot=xa(z,y,tt,y,ot,st,a,ft),isNaN(ot))return!0;rt+=ot;break;case ma:ut=me.Fo(ot,st,Je.point1X,Je.point1Y,Je.point2X,Je.point2Y,a,ft,tt,y,z,y,.5),rt+=ut;break;case ds:ut=me.Fo(ot,st,(ot+2*Je.point1X)/3,(st+2*Je.point1Y)/3,(2*Je.point1X+a)/3,(2*Je.point1Y+ft)/3,a,ft,tt,y,z,y,.5),rt+=ut;break;case la:case cs:Ci=Je.type===la?Ya(Je,Ft):es(Je,Ft,ot,st);var Wi=Ci.length;if(Wi===0){if(ot=xa(z,y,tt,y,ot,st,Je.type===la?Je.centerX:Je.endX,Je.type===la?Je.centerY:Je.endY),isNaN(ot))return!0;rt+=ot;break}Je=null;for(var Ni=0;Ni<Wi;Ni++){if(Je=Ci[Ni],Ni===0){if(ut=xa(z,y,tt,y,ot,st,Je[0],Je[1]),isNaN(ut))return!0;rt+=ut}ut=me.Fo(Je[0],Je[1],Je[2],Je[3],Je[4],Je[5],Je[6],Je[7],tt,y,z,y,.5),rt+=ut}Je!==null&&(a=Je[6],ft=Je[7]);break;default:ee("Unknown Segment type: "+Je.type)}ot=a,st=ft}if(Xt){if(rt!==0)return!0}else if(rt%2!==0)return!0;rt=0}else if(Ft.ca(z,y,b?x:x+2))return!0}return!1}function xa(a,y,x,E,b,z,tt,rt){if(me.Yb(b,z,tt,rt,.05,a,y))return NaN;var ot=(a-x)*(z-rt);if(ot===0)return 0;var st=((a*E-y*x)*(b-tt)-(a-x)*(b*rt-z*tt))/ot;if(y=(a*E-y*x)*(z-rt)/ot,st>=a)return 0;if((b>tt?b-tt:tt-b)<(z>rt?z-rt:rt-z)){if(z<rt){if(y<z||y>rt)return 0}else if(y<rt||y>z)return 0}else if(b<tt){if(st<b||st>tt)return 0}else if(st<tt||st>b)return 0;return 0<ot?1:-1}function Ta(a,y,x,E){a=a.figures.s;for(var b=a.length,z=0;z<b;z++)if(a[z].ca(y,x,E))return!0;return!1}Ct.Pu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=new Bt),this.type===Wn.j)return y.h(this.startX+a*(this.endX-this.startX),this.startY+a*(this.endY-this.startY)),y;for(var x=this.flattenedSegments,E=this.flattenedLengths,b=x.length,z=this.flattenedTotalLength*a,tt=0,rt=0;rt<b;rt++){var ot=E[rt],st=ot.length;for(a=0;a<st;a++){var ut=ot[a];if(tt+ut>=z)return E=z-tt,E=ut===0?0:E/ut,x=x[rt],rt=x[2*a],b=x[2*a+1],y.h(rt+(x[2*a+2]-rt)*E,b+(x[2*a+3]-b)*E),y;tt+=ut}}return y},Ct.wx=function(a){if(0>a?a=0:1<a&&(a=1),this.type===Wn.j)return 180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI;for(var y=this.flattenedSegments,x=this.flattenedLengths,E=y.length,b=this.flattenedTotalLength*a,z=0,tt=0;tt<E;tt++){var rt=x[tt],ot=rt.length;for(a=0;a<ot;a++){var st=rt[a];if(z+st>=b)return b=y[tt],y=b[2*a],x=b[2*a+1],E=b[2*a+2],a=b[2*a+3],1>Math.abs(E-y)&&1>Math.abs(a-x)?0:1>Math.abs(E-y)?0<=a-x?90:270:1>Math.abs(a-x)?0<=E-y?0:180:180*Math.atan2(a-x,E-y)/Math.PI;z+=st}}return NaN},Ct.Qu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=[]),y.length=3,this.type===Wn.j)return y[0]=this.startX+a*(this.endX-this.startX),y[1]=this.startY+a*(this.endY-this.startY),y[2]=180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI,y;for(var x=this.flattenedSegments,E=this.flattenedLengths,b=x.length,z=this.flattenedTotalLength*a,tt=0,rt=0;rt<b;rt++){var ot=E[rt],st=ot.length;for(a=0;a<st;a++){var ut=ot[a];if(tt+ut>=z)return E=z-tt,E=ut===0?0:E/ut,ut=x[rt],x=ut[2*a],rt=ut[2*a+1],b=ut[2*a+2],a=ut[2*a+3],y[0]=x+(b-x)*E,y[1]=rt+(a-rt)*E,y[2]=1>Math.abs(b-x)&&1>Math.abs(a-rt)?0:1>Math.abs(b-x)?0<=a-rt?90:270:1>Math.abs(a-rt)?0<=b-x?0:180:180*Math.atan2(a-rt,b-x)/Math.PI,y;tt+=ut}}return y},Ct.xx=function(a){if(this.type===Wn.j){var y=this.startX,x=this.startY,E=this.endX,b=this.endY;if(y!==E||x!==b){var z=a.x;if(a=a.y,y===E){if(x<b){var tt=x;E=b}else tt=b,E=x;return a<=tt?tt===x?0:1:a>=E?E===x?0:1:Math.abs(a-x)/(E-tt)}if(x===b)return y<E?tt=y:(tt=E,E=y),z<=tt?tt===y?0:1:z>=E?E===y?0:1:Math.abs(z-y)/(E-tt);tt=(E-y)*(E-y)+(b-x)*(b-x);var rt=Bt.alloc();return me.qh(y,x,E,b,z,a,rt),a=rt.x,z=rt.y,Bt.free(rt),Math.sqrt(((a-y)*(a-y)+(z-x)*(z-x))/tt)}}else if(this.type===Wn.u){tt=this.startX,rt=this.startY;var ot=this.endX;if(b=this.endY,tt!==ot||rt!==b){y=ot-tt,x=b-rt,z=2*y+2*x,E=a.x,a=a.y,E=Math.min(Math.max(E,tt),ot),a=Math.min(Math.max(a,rt),b),tt=Math.abs(E-tt),ot=Math.abs(E-ot),rt=Math.abs(a-rt),b=Math.abs(a-b);var st=Math.min(tt,ot,rt,b);if(st===rt)return E/z;if(st===ot)return(y+a)/z;if(st===b)return(2*y+x-E)/z;if(st===tt)return(2*y+2*x-a)/z}}else{y=this.flattenedSegments,x=this.flattenedLengths,z=this.flattenedTotalLength,E=Bt.alloc(),b=1/0,rt=tt=0,ot=y.length;for(var ut=st=0,ft=0;ft<ot;ft++)for(var vt=y[ft],xt=x[ft],Pt=vt.length,Ft=0;Ft<Pt;Ft+=2){var Xt=vt[Ft],Wt=vt[Ft+1];if(Ft!==0){me.qh(st,ut,Xt,Wt,a.x,a.y,E);var oe=(E.x-a.x)*(E.x-a.x)+(E.y-a.y)*(E.y-a.y);oe<b&&(b=oe,tt=rt,tt+=Math.sqrt((E.x-st)*(E.x-st)+(E.y-ut)*(E.y-ut))),rt+=xt[(Ft-2)/2]}st=Xt,ut=Wt}return Bt.free(E),a=tt/z,0>a?0:1<a?1:a}return 0};function Ra(a){if(a.tk===null){var y=a.tk=[],x=a.ym=[],E=[],b=[];if(a.type===Wn.j)E.push(a.startX),E.push(a.startY),E.push(a.endX),E.push(a.endY),y.push(E),b.push(Math.sqrt((a.startX-a.endX)*(a.startX-a.endX)+(a.startY-a.endY)*(a.startY-a.endY))),x.push(b);else if(a.type===Wn.u)E.push(a.startX),E.push(a.startY),E.push(a.endX),E.push(a.startY),E.push(a.endX),E.push(a.endY),E.push(a.startX),E.push(a.endY),E.push(a.startX),E.push(a.startY),y.push(E),b.push(Math.abs(a.startX-a.endX)),b.push(Math.abs(a.startY-a.endY)),b.push(Math.abs(a.startX-a.endX)),b.push(Math.abs(a.startY-a.endY)),x.push(b);else if(a.type===Wn.F){var z=new ua;z.startX=a.endX,z.startY=(a.startY+a.endY)/2;var tt=new Qr(la);if(tt.startAngle=0,tt.sweepAngle=360,tt.centerX=(a.startX+a.endX)/2,tt.centerY=(a.startY+a.endY)/2,tt.radiusX=Math.abs(a.startX-a.endX)/2,tt.radiusY=Math.abs(a.startY-a.endY)/2,z.add(tt),a=Ya(tt,z),b=a.length,b===0)E.push(tt.centerX),E.push(tt.centerY);else{tt=z.startX,z=z.startY;for(var rt=0;rt<b;rt++){var ot=a[rt];me.Qe(tt,z,ot[2],ot[3],ot[4],ot[5],ot[6],ot[7],.5,E),tt=ot[6],z=ot[7]}}y.push(E),x.push(hs(E))}else for(a=a.figures.iterator;a.next();){b=a.value,E=[],E.push(b.startX),E.push(b.startY),tt=b.startX,z=b.startY,rt=tt,ot=z;for(var st=b.segments.s,ut=st.length,ft=0;ft<ut;ft++){var vt=st[ft];switch(vt.type){case ha:4<=E.length&&(y.push(E),x.push(hs(E))),E=[],E.push(vt.endX),E.push(vt.endY),tt=vt.endX,z=vt.endY,rt=tt,ot=z;break;case So:E.push(vt.endX),E.push(vt.endY),tt=vt.endX,z=vt.endY;break;case ma:me.Qe(tt,z,vt.point1X,vt.point1Y,vt.point2X,vt.point2Y,vt.endX,vt.endY,.5,E),tt=vt.endX,z=vt.endY;break;case ds:me.ep(tt,z,vt.point1X,vt.point1Y,vt.endX,vt.endY,.5,E),tt=vt.endX,z=vt.endY;break;case la:var xt=Ya(vt,b),Pt=xt.length;if(Pt===0){E.push(vt.centerX),E.push(vt.centerY),tt=vt.centerX,z=vt.centerY;break}for(var Ft=0;Ft<Pt;Ft++){var Xt=xt[Ft];me.Qe(tt,z,Xt[2],Xt[3],Xt[4],Xt[5],Xt[6],Xt[7],.5,E),tt=Xt[6],z=Xt[7]}break;case cs:if(xt=es(vt,b,tt,z),Pt=xt.length,Ft=vt.endX,Xt=vt.endY,Pt===0){E.push(Ft),E.push(Xt),tt=Ft,z=Xt;break}for(Ft=0;Ft<Pt;Ft++)Xt=xt[Ft],me.Qe(tt,z,Xt[2],Xt[3],Xt[4],Xt[5],Xt[6],Xt[7],.5,E),tt=Xt[6],z=Xt[7];break;default:ee("Segment not of valid type: "+vt.type)}vt.isClosed&&(E.push(rt),E.push(ot))}4<=E.length&&(y.push(E),x.push(hs(E)))}}}function hs(a){for(var y=[],x=0,E=0,b=a.length,z=0;z<b;z+=2){var tt=a[z],rt=a[z+1];z!==0&&y.push(Math.sqrt(mi(x,E,tt,rt))),x=tt,E=rt}return y}Ct.add=function(a){return this.ee.add(a),this},Ct.pm=function(a,y,x,E,b,z,tt,rt){return this._isFrozen&&nn(this),this.fg=new Mn(a,y,b,z).freeze(),this.gg=new Mn(x,E,tt,rt).freeze(),this},xe.Object.defineProperties(Wn.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(a){this.l=a?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(a){this.l=a?this.l|2:this.l&-3}},flattenedSegments:{get:function(){return Ra(this),this.tk}},flattenedLengths:{get:function(){return Ra(this),this.ym}},flattenedTotalLength:{get:function(){var a=this.zm;if(isNaN(a)){if(this.type===Wn.j){a=Math.abs(this.endX-this.startX);var y=Math.abs(this.endY-this.startY);a=Math.sqrt(a*a+y*y)}else if(this.type===Wn.u)a=2*Math.abs(this.endX-this.startX)+2*Math.abs(this.endY-this.startY);else{y=this.flattenedLengths;for(var x=y.length,E=a=0;E<x;E++)for(var b=y[E],z=b.length,tt=0;tt<z;tt++)a+=b[tt]}this.zm=a}return a}},type:{get:function(){return this.na},set:function(a){this.na!==a&&(this._isFrozen&&nn(this,a),this.na=a,a===Wn.o?this.ee=new cn:(Wn.V===null&&(Wn.V=new cn().freeze()),this.ee=Wn.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(a){this.od!==a&&(this._isFrozen&&nn(this,a),this.od=a,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(a){this.pd!==a&&(this._isFrozen&&nn(this,a),this.pd=a,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(a){this.Dc!==a&&(this._isFrozen&&nn(this,a),this.Dc=a,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(a){this.Ec!==a&&(this._isFrozen&&nn(this,a),this.Ec=a,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(a){this.ee!==a&&(this._isFrozen&&nn(this,a),this.ee=a,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(a){this._isFrozen&&nn(this,a),this.fg=a.J()}},spot2:{get:function(){return this.gg},set:function(a){this._isFrozen&&nn(this,a),this.gg=a.J()}},defaultStretch:{get:function(){return this.Uf},set:function(a){this._isFrozen&&nn(this,a),this.Uf=a}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),Wn.prototype.setSpots=Wn.prototype.pm,Wn.prototype.add=Wn.prototype.add,Wn.prototype.getFractionForPoint=Wn.prototype.xx,Wn.prototype.getPointAndAngleAlongPath=Wn.prototype.Qu,Wn.prototype.getAngleAlongPath=Wn.prototype.wx,Wn.prototype.getPointAlongPath=Wn.prototype.Pu,Wn.prototype.containsPoint=Wn.prototype.ca,Wn.prototype.transform=Wn.prototype.transform,Wn.prototype.rotate=Wn.prototype.rotate,Wn.prototype.scale=Wn.prototype.scale,Wn.prototype.offset=Wn.prototype.offset,Wn.prototype.normalize=Wn.prototype.normalize,Wn.prototype.computeBoundsWithoutOrigin=Wn.prototype.ix,Wn.prototype.equalsApprox=Wn.prototype.Xa,Wn.className="Geometry",Wn.j=new dn(Wn,"Line",0),Wn.u=new dn(Wn,"Rectangle",1),Wn.F=new dn(Wn,"Ellipse",2),Wn.o=new dn(Wn,"Path",3),Wn.V=null,Wn.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",Wn.className="Geometry",Wn.stringify=Wn.ia,Wn.fillPath=Wn.nb,Wn.parse=Wn.parse,Wn.Line=Wn.j,Wn.Rectangle=Wn.u,Wn.Ellipse=Wn.F,Wn.Path=Wn.o;function ua(a,y,x,E,b){wi(this),x===void 0&&(x=!0),E===void 0&&(E=!0),b===void 0&&(b=!1),this.l=2|(x?4:0)|(E?8:0)|(b?16:0),a!==void 0?this.od=a:this.od=0,y!==void 0?this.pd=y:this.pd=0,this.pl=new cn,this.sr=this.pl.Ja,this.fw=null}ua.prototype.copy=function(){var a=new ua;a.l=this.l&-2,a.od=this.od,a.pd=this.pd;for(var y=this.pl.s,x=y.length,E=a.pl,b=0;b<x;b++){var z=y[b].copy();E.add(z)}return a.sr=this.sr,a.fw=this.fw,a},Ct=ua.prototype,Ct.Xa=function(a){if(!(a instanceof ua&&me.B(this.startX,a.startX)&&me.B(this.startY,a.startY)))return!1;var y=this.segments.s;a=a.segments.s;var x=y.length;if(x!==a.length)return!1;for(var E=0;E<x;E++)if(!y[E].Xa(a[E]))return!1;return!0},Ct.toString=function(a){a===void 0&&(a=-1);for(var y=0>a?"M"+this.startX.toString()+" "+this.startY.toString():"M"+this.startX.toFixed(a)+" "+this.startY.toFixed(a),x=this.segments.s,E=x.length,b=0;b<E;b++)y+=" "+x[b].toString(a);return y},Ct.freeze=function(){this._isFrozen=!0;var a=this.segments;a.freeze();var y=a.s;a=a.length;for(var x=0;x<a;x++)y[x].freeze();return this},Ct.ka=function(){this._isFrozen=!1;var a=this.segments;a.ka(),a=a.s;for(var y=a.length,x=0;x<y;x++)a[x].ka();return this},Ct.Zu=function(){if(this._isInvalidBounds)return!0;var a=this.segments;if(this.sr!==a.Ja)return!0;a=a.s;for(var y=a.length,x=0;x<y;x++)if(a[x]._isInvalidBounds)return!0;return!1},Ct.add=function(a){return this.pl.add(a),this},Ct.ca=function(a,y,x){for(var E=this.startX,b=this.startY,z=E,tt=b,rt=this.segments.s,ot=rt.length,st=0;st<ot;st++){var ut=rt[st];switch(ut.type){case ha:z=ut.endX,tt=ut.endY,E=ut.endX,b=ut.endY;break;case So:if(me.Yb(E,b,ut.endX,ut.endY,x,a,y))return!0;E=ut.endX,b=ut.endY;break;case ma:if(me.cs(E,b,ut.point1X,ut.point1Y,ut.point2X,ut.point2Y,ut.endX,ut.endY,.5,a,y,x))return!0;E=ut.endX,b=ut.endY;break;case ds:if(me.jv(E,b,ut.point1X,ut.point1Y,ut.endX,ut.endY,.5,a,y,x))return!0;E=ut.endX,b=ut.endY;break;case la:case cs:var ft=ut.type===la?Ya(ut,this):es(ut,this,E,b),vt=ft.length,xt=ut.type===la?ut.centerX:ut.endX,Pt=ut.type===la?ut.centerY:ut.endY;if(vt===0){if(me.Yb(E,b,xt,Pt,x,a,y))return!0;E=xt,b=Pt;break}for(xt=null,Pt=0;Pt<vt;Pt++)if(xt=ft[Pt],Pt===0&&me.Yb(E,b,xt[0],xt[1],x,a,y)||me.cs(xt[0],xt[1],xt[2],xt[3],xt[4],xt[5],xt[6],xt[7],.5,a,y,x))return!0;xt!==null&&(E=xt[6],b=xt[7]);break;default:ee("Unknown Segment type: "+ut.type)}if(ut.isClosed&&(E!==z||b!==tt)&&me.Yb(E,b,z,tt,x,a,y))return!0}return!1},xe.Object.defineProperties(ua.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(a){this.l=a?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(a){this.l=a?this.l|2:this.l&-3}},isFilled:{get:function(){return(this.l&4)!==0},set:function(a){this._isFrozen&&nn(this,a),this.l=a?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(a){this._isFrozen&&nn(this,a),this.l=a?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&nn(this,a),this.l=a?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(a){this._isFrozen&&nn(this,a),this.od=a,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(a){this._isFrozen&&nn(this,a),this.pd=a,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(a){this._isFrozen&&nn(this,a),this.pl=a,this._isInvalidBounds=!0}}}),ua.prototype.add=ua.prototype.add,ua.prototype.equalsApprox=ua.prototype.Xa,ua.className="PathFigure";function Qr(a,y,x,E,b,z,tt,rt){wi(this),a===void 0&&(a=So),this.na=a,this.l=2,y!==void 0?this.Dc=y:this.Dc=0,x!==void 0?this.Ec=x:this.Ec=0,E===void 0&&(E=0),b===void 0&&(b=0),z===void 0&&(z=0),tt===void 0&&(tt=0),a===cs?(a=z%360,0>a&&(a+=360),this.Ne=a,this.Vh=0,this.Wh=Math.max(E,0),this.Pg=Math.max(b,0),typeof tt=="boolean"?tt&&(this.isLargeArc=!0):typeof tt=="number"&&tt&&(this.isLargeArc=!0),rt&&(this.isClockwiseArc=!0)):(this.Ne=E,this.Vh=b,a===la&&(z=Math.max(z,0)),this.Wh=z,typeof tt=="number"?(a===la&&(tt=Math.max(tt,0)),this.Pg=tt):this.Pg=0),this.ae=null}Qr.prototype.copy=function(){var a=new Qr;return a.na=this.na,a.l=this.l&-2,a.Dc=this.Dc,a.Ec=this.Ec,a.Ne=this.Ne,a.Vh=this.Vh,a.Wh=this.Wh,a.Pg=this.Pg,a},Ct=Qr.prototype,Ct.Xa=function(a){if(!(a instanceof Qr)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case ha:case So:return me.B(this.endX,a.endX)&&me.B(this.endY,a.endY);case ma:return me.B(this.endX,a.endX)&&me.B(this.endY,a.endY)&&me.B(this.point1X,a.point1X)&&me.B(this.point1Y,a.point1Y)&&me.B(this.point2X,a.point2X)&&me.B(this.point2Y,a.point2Y);case ds:return me.B(this.endX,a.endX)&&me.B(this.endY,a.endY)&&me.B(this.point1X,a.point1X)&&me.B(this.point1Y,a.point1Y);case la:return me.B(this.startAngle,a.startAngle)&&me.B(this.sweepAngle,a.sweepAngle)&&me.B(this.centerX,a.centerX)&&me.B(this.centerY,a.centerY)&&me.B(this.radiusX,a.radiusX)&&me.B(this.radiusY,a.radiusY);case cs:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&me.B(this.xAxisRotation,a.xAxisRotation)&&me.B(this.endX,a.endX)&&me.B(this.endY,a.endY)&&me.B(this.radiusX,a.radiusX)&&me.B(this.radiusY,a.radiusY);default:return!1}},Ct.qb=function(a){a.classType===Qr&&(this.type=a)},Ct.toString=function(a){switch(a===void 0&&(a=-1),this.type){case ha:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case So:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case ma:a=0>a?"C"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.point2X.toString()+" "+this.point2Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"C"+this.point1X.toFixed(a)+" "+this.point1Y.toFixed(a)+" "+this.point2X.toFixed(a)+" "+this.point2Y.toFixed(a)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case ds:a=0>a?"Q"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"Q"+this.point1X.toFixed(a)+" "+this.point1Y.toFixed(a)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case la:a=0>a?"B"+this.startAngle.toString()+" "+this.sweepAngle.toString()+" "+this.centerX.toString()+" "+this.centerY.toString()+" "+this.radiusX.toString()+" "+this.radiusY.toString():"B"+this.startAngle.toFixed(a)+" "+this.sweepAngle.toFixed(a)+" "+this.centerX.toFixed(a)+" "+this.centerY.toFixed(a)+" "+this.radiusX.toFixed(a)+" "+this.radiusY.toFixed(a);break;case cs:a=0>a?"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(a)+" "+this.radiusY.toFixed(a)+" "+this.xAxisRotation.toFixed(a)+" "+(this.isLargeArc?1:0)+" "+(this.isClockwiseArc?1:0)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;default:a=this.type.toString()}return a+(this.isClosed?"z":"")},Ct.freeze=function(){return this._isFrozen=!0,this},Ct.ka=function(){return this._isFrozen=!1,this},Ct.close=function(){return this.isClosed=!0,this};function Ya(a,y){if(a.ae!==null&&y._isInvalidBounds===!1)return a.ae;var x=a.radiusX,E=a.radiusY;if(E===void 0&&(E=x),x===0||E===0)return a.ae=[],a.ae;y=a.Ne;var b=a.Vh,z=me.jx(0,0,x<E?x:E,a.startAngle,a.startAngle+a.sweepAngle,!1);if(x!==E){var tt=Ei.alloc();tt.reset(),x<E?tt.scale(1,E/x):tt.scale(x/E,1),Wn.Ha(z,tt),Ei.free(tt)}for(x=z.length,E=0;E<x;E++)tt=z[E],tt[0]+=y,tt[1]+=b,tt[2]+=y,tt[3]+=b,tt[4]+=y,tt[5]+=b,tt[6]+=y,tt[7]+=b;return a.ae=z,a.ae}function es(a,y,x,E){function b(Ft,Xt,Wt,oe){return(Ft*oe<Xt*Wt?-1:1)*Math.acos((Ft*Wt+Xt*oe)/(Math.sqrt(Ft*Ft+Xt*Xt)*Math.sqrt(Wt*Wt+oe*oe)))}if(a.ae!==null&&y._isInvalidBounds===!1)return a.ae;if(a.radiusX===0||a.radiusY===0)return a.ae=[],a.ae;y=a.Wh;var z=a.Pg;y===0&&(y=1e-4),z===0&&(z=1e-4);var tt=Math.PI/180*a.Ne,rt=a.isLargeArc,ot=a.isClockwiseArc,st=a.Dc,ut=a.Ec,ft=Math.cos(tt),vt=Math.sin(tt),xt=ft*(x-st)/2+vt*(E-ut)/2;tt=-vt*(x-st)/2+ft*(E-ut)/2;var Pt=xt*xt/(y*y)+tt*tt/(z*z);return 1<Pt&&(y*=Math.sqrt(Pt),z*=Math.sqrt(Pt)),Pt=(rt===ot?-1:1)*Math.sqrt((y*y*z*z-y*y*tt*tt-z*z*xt*xt)/(y*y*tt*tt+z*z*xt*xt)),isNaN(Pt)&&(Pt=0),rt=Pt*y*tt/z,Pt=Pt*-z*xt/y,isNaN(rt)&&(rt=0),isNaN(Pt)&&(Pt=0),x=(x+st)/2+ft*rt-vt*Pt,E=(E+ut)/2+vt*rt+ft*Pt,ut=b(1,0,(xt-rt)/y,(tt-Pt)/z),ft=(xt-rt)/y,st=(tt-Pt)/z,xt=(-xt-rt)/y,rt=(-tt-Pt)/z,tt=b(ft,st,xt,rt),xt=(ft*xt+st*rt)/(Math.sqrt(ft*ft+st*st)*Math.sqrt(xt*xt+rt*rt)),-1>=xt?tt=Math.PI:1<=xt&&(tt=0),!ot&&0<tt&&(tt-=2*Math.PI),ot&&0>tt&&(tt+=2*Math.PI),ot=y>z?1:y/z,xt=y>z?z/y:1,y=me.jx(0,0,y>z?y:z,ut,ut+tt,!0),z=Ei.alloc(),z.reset(),z.translate(x,E),z.rotate(a.Ne,0,0),z.scale(ot,xt),Wn.Ha(y,z),Ei.free(z),a.ae=y,a.ae}xe.Object.defineProperties(Qr.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(a){this.l=a?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(a){this.l=a?this.l|2:this.l&-3}},isClosed:{get:function(){return(this.l&8)!==0},set:function(a){this.isClosed!==a&&(this.l=a?this.l|8:this.l&-9,this._isInvalidBounds=!0)}},type:{get:function(){return this.na},set:function(a){this._isFrozen&&nn(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&nn(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&nn(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&nn(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&nn(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&nn(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&nn(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&nn(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&nn(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&Vn(a,">= zero",Qr,"radiusX"),this._isFrozen&&nn(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&Vn(a,">= zero",Qr,"radiusY"),this._isFrozen&&nn(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&nn(this,a),a%=360,0>a&&(a+=360),this.Dc=a,this._isInvalidBounds=!0}},sweepAngle:{get:function(){return this.Ec},set:function(a){this._isFrozen&&nn(this,a),360<a&&(a=360),-360>a&&(a=-360),this.Ec=a,this._isInvalidBounds=!0}},isClockwiseArc:{get:function(){return(this.l&4)!==0},set:function(a){this._isFrozen&&nn(this,a),this.l=a?this.l|4:this.l&-5,this._isInvalidBounds=!0}},isLargeArc:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&nn(this,a),this.l=a?this.l|16:this.l&-17,this._isInvalidBounds=!0}},xAxisRotation:{get:function(){return this.Ne},set:function(a){this._isFrozen&&nn(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),Qr.prototype.equalsApprox=Qr.prototype.Xa;var ha=new dn(Qr,"Move",0),So=new dn(Qr,"Line",1),ma=new dn(Qr,"Bezier",2),ds=new dn(Qr,"QuadraticBezier",3),la=new dn(Qr,"Arc",4),cs=new dn(Qr,"SvgArc",4);Qr.className="PathSegment",Qr.Move=ha,Qr.Line=So,Qr.Bezier=ma,Qr.QuadraticBezier=ds,Qr.Arc=la,Qr.SvgArc=cs;function za(){this.H=null,this.xu=new Bt(0,0).freeze(),this.mt=new Bt(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}za.prototype.copy=function(){var a=new za;return this.clone(a)},za.prototype.clone=function(a){return a.H=this.H,a.xu.assign(this.viewPoint),a.mt.assign(this.documentPoint),a.Rq=this.Rq,a.Bp=this.Bp,a.Cp=this.Cp,a.xq=this.xq,a.Tp=this.Tp,a.Wr=this.Wr,a.Ep=this.Ep,a.Rp=this.Rp,a.tq=this.tq,a.nq=this.nq,a.xg=this.xg,a.Zp=this.Zp,a.Rr=this.Rr,a.Nr=this.Nr,a.xd=this.xd,a},za.prototype.toString=function(){var a="^";return this.modifiers!==0&&(a+="M:"+this.modifiers),this.button!==0&&(a+="B:"+this.button),this.key!==""&&(a+="K:"+this.key),this.clickCount!==0&&(a+="C:"+this.clickCount),this.delta!==0&&(a+="D:"+this.delta),this.handled&&(a+="h"),this.bubbles&&(a+="b"),this.documentPoint!==null&&(a+="@"+this.documentPoint.toString()),a},za.prototype.So=function(a,y){var x=this.diagram;return x===null||bg(x,a,y),y},za.prototype.Bz=function(a,y){var x=this.diagram;return x===null||(bg(x,a,y),y.assign(x.Ps(y))),y},xe.Object.defineProperties(za.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},viewPoint:{get:function(){return this.xu},set:function(a){this.xu.assign(a)}},documentPoint:{get:function(){return this.mt},set:function(a){this.mt.assign(a)}},modifiers:{get:function(){return this.Rq},set:function(a){this.Rq=a}},button:{get:function(){return this.Bp},set:function(a){if(this.Bp=a,this.event===null)switch(a){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(a){this.Cp=a}},key:{get:function(){return this.xq},set:function(a){this.xq=a}},down:{get:function(){return this.Tp},set:function(a){this.Tp=a}},up:{get:function(){return this.Wr},set:function(a){this.Wr=a}},clickCount:{get:function(){return this.Ep},set:function(a){this.Ep=a}},delta:{get:function(){return this.Rp},set:function(a){this.Rp=a}},isMultiTouch:{get:function(){return this.tq},set:function(a){this.tq=a}},handled:{get:function(){return this.nq},set:function(a){this.nq=a}},bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},event:{get:function(){return this.Zp},set:function(a){this.Zp=a}},isTouchEvent:{get:function(){var a=this.event;return a===null?!1:a.pointerType==="touch"||a.pointerType==="pen"}},timestamp:{get:function(){return this.Rr},set:function(a){this.Rr=a}},targetDiagram:{get:function(){return this.Nr},set:function(a){this.Nr=a}},targetObject:{get:function(){return this.xd},set:function(a){this.xd=a}},control:{get:function(){return(this.modifiers&1)!==0},set:function(a){this.modifiers=a?this.modifiers|1:this.modifiers&-2}},shift:{get:function(){return(this.modifiers&4)!==0},set:function(a){this.modifiers=a?this.modifiers|4:this.modifiers&-5}},alt:{get:function(){return(this.modifiers&2)!==0},set:function(a){this.modifiers=a?this.modifiers|2:this.modifiers&-3}},meta:{get:function(){return(this.modifiers&8)!==0},set:function(a){this.modifiers=a?this.modifiers|8:this.modifiers&-9}},left:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&1)!==0:this.button===0},set:function(a){this.buttons=a?this.buttons|1:this.buttons&-2}},right:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&2)!==0:this.button===2},set:function(a){this.buttons=a?this.buttons|2:this.buttons&-3}},middle:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&4)!==0:this.button===1},set:function(a){this.buttons=a?this.buttons|4:this.buttons&-5}}}),za.prototype.getMultiTouchDocumentPoint=za.prototype.Bz,za.prototype.getMultiTouchViewPoint=za.prototype.So,za.className="InputEvent";function Dl(){this.H=null,this.xa="",this.ar=this.Lr=null}Dl.prototype.copy=function(){var a=new Dl;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},Dl.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},xe.Object.defineProperties(Dl.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},subject:{get:function(){return this.Lr},set:function(a){this.Lr=a}},parameter:{get:function(){return this.ar},set:function(a){this.ar=a}}}),Dl.className="DiagramEvent";function Ho(){this.Fm=To,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}Ho.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},Ho.prototype.copy=function(){var a=new Ho;a.Fm=this.Fm,a.Qq=this.Qq,a.rf=this.rf,a.cc=this.cc,a.H=this.H,a.Qn=this.Qn;var y=this.Sn;return a.Sn=Ke(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=Ke(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=Ke(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=Ke(y)&&typeof y.J=="function"?y.J():y,a},Ho.prototype.qb=function(a){a.classType===Ho&&(this.change=a)},Ho.prototype.toString=function(){var a="";return a=this.change===Ma?a+"* ":this.change===To?a+(this.model!==null?"!m":"!d"):a+((this.model!==null?"!m":"!d")+this.change),this.propertyName&&typeof this.propertyName=="string"&&(a+=" "+this.propertyName),this.modelChange&&this.modelChange!==this.propertyName&&(a+=" "+this.modelChange),a+=": ",this.change===Ma?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=Zi(this.object)),this.oldValue!==null&&(a+=" old: "+Zi(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+Zi(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},Ho.prototype.I=function(a){return a?this.oldValue:this.newValue},Ho.prototype.Dz=function(a){return a?this.oldParam:this.newParam},Ho.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},Ho.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},Ho.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},Ho.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},xe.Object.defineProperties(Ho.prototype,{model:{get:function(){return this.cc},set:function(a){this.cc=a}},diagram:{get:function(){return this.H},set:function(a){this.H=a}},change:{get:function(){return this.Fm},set:function(a){this.Fm=a}},modelChange:{get:function(){return this.Qq},set:function(a){this.Qq=a}},propertyName:{get:function(){return this.rf},set:function(a){this.rf=a}},isTransactionFinished:{get:function(){return this.Fm===Ma&&(this.rf==="CommittedTransaction"||this.rf==="FinishedUndo"||this.rf==="FinishedRedo")}},object:{get:function(){return this.Qn},set:function(a){this.Qn=a}},oldValue:{get:function(){return this.Sn},set:function(a){this.Sn=a}},oldParam:{get:function(){return this.Rn},set:function(a){this.Rn=a}},newValue:{get:function(){return this.Mn},set:function(a){this.Mn=a}},newParam:{get:function(){return this.Ln},set:function(a){this.Ln=a}}}),Ho.prototype.redo=Ho.prototype.redo,Ho.prototype.canRedo=Ho.prototype.canRedo,Ho.prototype.undo=Ho.prototype.undo,Ho.prototype.canUndo=Ho.prototype.canUndo,Ho.prototype.getParam=Ho.prototype.Dz,Ho.prototype.getValue=Ho.prototype.I,Ho.prototype.clear=Ho.prototype.clear;var Ma=new dn(Ho,"Transaction",-1),To=new dn(Ho,"Property",0),$o=new dn(Ho,"Insert",1),ca=new dn(Ho,"Remove",2);Ho.className="ChangedEvent",Ho.Transaction=Ma,Ho.Property=To,Ho.Insert=$o,Ho.Remove=ca;function va(){this.o=new cn().freeze(),this.xa="",this.j=!1}va.prototype.toString=function(a){var y="Transaction: "+this.name+" "+this.changes.count.toString()+(this.isComplete?"":", incomplete");if(a!==void 0&&0<a){a=this.changes.count;for(var x=0;x<a;x++){var E=this.changes.M(x);E!==null&&(y+=`
`+E.toString())}}return y},va.prototype.clear=function(){var a=this.changes;a.ka();for(var y=a.count-1;0<=y;y--){var x=a.M(y);x!==null&&x.clear()}a.clear(),a.freeze()},va.prototype.canUndo=function(){return this.isComplete},va.prototype.undo=function(){if(this.canUndo())for(var a=this.changes.count-1;0<=a;a--){var y=this.changes.M(a);y!==null&&y.undo()}},va.prototype.canRedo=function(){return this.isComplete},va.prototype.redo=function(){if(this.canRedo())for(var a=this.changes.count,y=0;y<a;y++){var x=this.changes.M(y);x!==null&&x.redo()}},va.prototype.ak=function(){if(this.isComplete){var a=this.changes;a.ka();for(var y=new on,x=0;x<a.count;x++){var E=a.M(x);if(E!==null&&E.change===To&&E.object){var b=y.get(E.object);b||(b=new on,y.set(E.object,b));var z=b.get(E.propertyName);z===null?b.set(E.propertyName,-1):(0<z&&a.cd(z,null),b.set(E.propertyName,x))}}for(x=y=0;x<a.count;x++)E=a.M(x),E!==null&&(x>y&&a.cd(y,E),y++);for(;a.length>y;)a.pop();a.freeze()}},xe.Object.defineProperties(va.prototype,{changes:{get:function(){return this.o}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},isComplete:{get:function(){return this.j},set:function(a){this.j=a}}}),va.prototype.optimize=va.prototype.ak,va.prototype.redo=va.prototype.redo,va.prototype.canRedo=va.prototype.canRedo,va.prototype.undo=va.prototype.undo,va.prototype.canUndo=va.prototype.canUndo,va.prototype.clear=va.prototype.clear,va.className="Transaction";function qo(){this.Pt=new xn,this.Jd=!1,this.u=new cn().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new cn().freeze(),this.hl=new cn,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}qo.prototype.toString=function(a){var y="UndoManager "+this.historyIndex+"<"+this.history.count+"<="+this.maxHistoryLength;y+="[";for(var x=this.nestedTransactionNames.count,E=0;E<x;E++)0<E&&(y+=" "),y+=this.nestedTransactionNames.M(E);if(y+="]",a!==void 0&&0<a)for(x=this.history.count,E=0;E<x;E++)y+=`
`+this.history.M(E).toString(a-1);return y},qo.prototype.clear=function(){var a=this.history;a.ka();for(var y=a.count-1;0<=y;y--){var x=a.M(y);x!==null&&x.clear()}a.clear(),this.Ce=-1,a.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},qo.prototype.copyProperties=function(a){this.isEnabled=a.isEnabled,this.maxHistoryLength=a.maxHistoryLength,this.checksTransactionLevel=a.checksTransactionLevel},Ct=qo.prototype,Ct.Xw=function(a){this.Pt.add(a)},Ct.Rx=function(a){this.Pt.remove(a)},Ct.Ea=function(a){if(a===void 0&&(a=""),a===null&&(a=""),this.isUndoingRedoing)return!1;this.tt===!0&&(this.tt=!1,this.bi++,this.isInternalTransaction||this.Ob("StartingFirstTransaction",a,this.currentTransaction),0<this.bi&&this.bi--),this.isEnabled&&(this.Ie.ka(),this.Ie.add(a),this.Ie.freeze(),this.currentTransaction===null?this.hl.add(0):this.hl.add(this.currentTransaction.changes.count)),this.bi++;var y=this.transactionLevel===1;return y&&(this.isInternalTransaction||this.Ob("StartedTransaction",a,this.currentTransaction)),y},Ct.eb=function(a){return a===void 0&&(a=""),pl(this,!0,a)},Ct.Kf=function(){return pl(this,!1,"")};function pl(a,y,x){if(a.isUndoingRedoing)return!1;a.checksTransactionLevel&&1>a.transactionLevel&&_n("Ending transaction without having started a transaction: "+x);var E=a.transactionLevel===1,b=a.currentTransaction;E&&y&&(a.isInternalTransaction||a.Ob("CommittingTransaction",x,b));var z=0;if(0<a.transactionLevel&&(a.bi--,a.isEnabled)){var tt=a.Ie.count;0<tt&&(x===""&&(x=a.Ie.M(0)),a.Ie.ka(),a.Ie.mb(tt-1),a.Ie.freeze()),tt=a.hl.count,0<tt&&(z=a.hl.M(tt-1),a.hl.mb(tt-1))}if(E){if(y)a.rq=!1,b===null&&x!==""&&(b=a.currentTransaction),a.isEnabled&&b!==null&&(b.isComplete||(b.isComplete=!0,b.name=x),a.lx(),y=a.history,y.ka(),E=a.maxHistoryLength,0<=E&&(E===0?y.clear():y.count>=E&&(z=y.M(0),z!==null&&z.clear(),y.mb(0),a.Ce--)),E===0||y.count!==0&&y.get(y.count-1)===b||(y.add(b),a.Ce++),y.freeze()),a.isInternalTransaction||a.Ob("CommittedTransaction",x,b);else{a.Fe=!0;try{a.isEnabled&&b!==null&&(b.isComplete=!0,b.undo())}finally{a.isInternalTransaction||a.Ob("RolledBackTransaction",x,b),a.Fe=!1}b!==null&&b.clear()}return a.Np=null,a.isPendingClear&&a.clear(),a.isPendingClear=!1,a.isPendingUnmodified=!1,!0}if(a.isEnabled&&!y&&b!==null){for(a=z,x=b.changes,b=x.count-1;b>=a;b--)y=x.M(b),y!==null&&y.undo(),x.ka(),x.mb(b);x.freeze()}return!1}Ct.lx=function(){if(!this.isUndoingRedoing&&this.canRedo()){var a=this.history;a.ka();for(var y=a.count-1;y>this.historyIndex;y--){var x=a.M(y);x!==null&&x.clear(),a.mb(y),this.rq=!0}a.freeze()}},qo.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToUndo;return!!(a!==null&&a.canUndo())},qo.prototype.undo=function(){if(this.canUndo()){var a=this.transactionToUndo;try{this.Fe=!0,this.Ob("StartingUndo","Undo",a),this.Ce--,a.undo()}catch(y){_n("undo error: "+y.toString())}finally{this.Ob("FinishedUndo","Undo",a),this.Fe=!1}}},qo.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToRedo;return!!(a!==null&&a.canRedo())},qo.prototype.redo=function(){if(this.canRedo()){var a=this.transactionToRedo;try{this.Fe=!0,this.Ob("StartingRedo","Redo",a),this.Ce++,a.redo()}catch(y){_n("redo error: "+y.toString())}finally{this.Ob("FinishedRedo","Redo",a),this.Fe=!1}}},qo.prototype.Ob=function(a,y,x){x===void 0&&(x=null);var E=new Ho;for(E.change=Ma,E.propertyName=a,E.object=x,E.oldValue=y,a=this.models;a.next();)y=a.value,E.model=y,y.ds(E)},qo.prototype.Tu=function(a){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(a)){var y=this.currentTransaction;y===null&&(this.Np=y=new va);var x=a.copy();y=y.changes,y.ka(),y.add(x),y.freeze(),this.checksTransactionLevel&&0>=this.transactionLevel&&!this.tt&&(a=a.diagram,a!==null&&a.pi===!1||_n("Change not within a transaction: "+x.toString()))}},qo.prototype.skipsEvent=function(a){if(a===null||0>a.change.value)return!0;if(a=a.object,a===null)return!1;if(a.layer!==void 0){if(a=a.layer,a!==null&&a.isTemporary)return!0}else if(a.isTemporary)return!0;return!1},xe.Object.defineProperties(qo.prototype,{models:{get:function(){return this.Pt.iterator}},isEnabled:{get:function(){return this.Jd},set:function(a){this.Jd=a}},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(a){this.o=a}},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(a){this.j=a}},nestedTransactionNames:{get:function(){return this.Ie}},isPendingClear:{get:function(){return this.Ft},set:function(a){this.Ft=a}},isPendingUnmodified:{get:function(){return this.Gt},set:function(a){this.Gt=a}},isInternalTransaction:{get:function(){return this.Dt},set:function(a){this.Dt=a}},isJustDiscarded:{get:function(){return this.rq}}}),qo.prototype.handleChanged=qo.prototype.Tu,qo.prototype.redo=qo.prototype.redo,qo.prototype.undo=qo.prototype.undo,qo.prototype.canUndo=qo.prototype.canUndo,qo.prototype.discardHistoryAfterIndex=qo.prototype.lx,qo.prototype.rollbackTransaction=qo.prototype.Kf,qo.prototype.commitTransaction=qo.prototype.eb,qo.prototype.startTransaction=qo.prototype.Ea,qo.prototype.removeModel=qo.prototype.Rx,qo.prototype.addModel=qo.prototype.Xw,qo.prototype.clear=qo.prototype.clear,qo.className="UndoManager";function eo(){wi(this),this.H=Tu,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new za,this.Zr=-1}eo.prototype.toString=function(){return this.name!==""?this.name+" Tool":Li(this.constructor)},eo.prototype.updateAdornments=function(){},eo.prototype.canStart=function(){return this.isEnabled},eo.prototype.doStart=function(){},eo.prototype.doActivate=function(){this.isActive=!0},eo.prototype.doDeactivate=function(){this.isActive=!1},eo.prototype.doStop=function(){},eo.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},eo.prototype.stopTool=function(){var a=this.diagram;a.currentTool===this&&(a.currentTool=null,a.currentCursor="")},eo.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},eo.prototype.doMouseMove=function(){},eo.prototype.doMouseUp=function(){this.stopTool()},eo.prototype.doMouseWheel=function(){},eo.prototype.canStartMultiTouch=function(){return!0},eo.prototype.standardPinchZoomStart=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,Bt.allocAt(NaN,NaN)),E=y.So(1,Bt.allocAt(NaN,NaN));if(x.w()&&E.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){a.Bw=a.scale;var b=E.x-x.x,z=E.y-x.y;a.Jw=Math.sqrt(b*b+z*z),y.bubbles=!1}Bt.free(x),Bt.free(E)},eo.prototype.standardPinchZoomMove=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,Bt.allocAt(NaN,NaN)),E=y.So(1,Bt.allocAt(NaN,NaN));if(x.w()&&E.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){var b=E.x-x.x,z=E.y-x.y;z=Math.sqrt(b*b+z*z)/a.Jw,b=new Bt((Math.min(E.x,x.x)+Math.max(E.x,x.x))/2,(Math.min(E.y,x.y)+Math.max(E.y,x.y))/2),z*=a.Bw;var tt=a.commandHandler;if(z!==a.scale&&tt.canResetZoom(z)){var rt=a.zoomPoint;a.zoomPoint=b,tt.resetZoom(z),a.zoomPoint=rt}y.bubbles=!1}Bt.free(x),Bt.free(E)},eo.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},eo.prototype.doKeyUp=function(){},eo.prototype.Ea=function(a){return a===void 0&&(a=this.name),this.transactionResult=null,this.diagram.Ea(a)},eo.prototype.stopTransaction=function(){var a=this.diagram;return this.transactionResult===null?a.Kf():a.eb(this.transactionResult)},eo.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.lastInput,x=a.Ol(y.documentPoint,!1);if(x!==null){if(Lr?y.meta:y.control){for(a.R("ChangingSelection",a.selection),y=x;y!==null&&!y.canSelect();)y=y.containingGroup;y!==null&&(y.isSelected=!y.isSelected),a.R("ChangedSelection",a.selection)}else if(y.shift){if(!x.isSelected){for(a.R("ChangingSelection",a.selection),y=x;y!==null&&!y.canSelect();)y=y.containingGroup;y!==null&&(y.isSelected=!0),a.R("ChangedSelection",a.selection)}}else if(!x.isSelected){for(y=x;y!==null&&!y.canSelect();)y=y.containingGroup;y!==null&&a.select(y)}}else!y.left||(Lr?y.meta:y.control)||y.shift||a.clearSelection()}},eo.prototype.standardMouseClick=function(a,y){a===void 0&&(a=null),y===void 0&&(y=function(b){return!b.layer.isTemporary});var x=this.diagram,E=x.lastInput;return a=x.ic(E.documentPoint,a,y),E.targetObject=a,vu(a,E,x),E.handled};function vu(a,y,x){if(y.handled=!1,a===null||a.If()){var E=0;y.left?E=y.clickCount===1?1:y.clickCount===2?2:1:y.right&&y.clickCount===1&&(E=3);var b="ObjectSingleClicked";if(a!==null){switch(E){case 1:b="ObjectSingleClicked";break;case 2:b="ObjectDoubleClicked";break;case 3:b="ObjectContextClicked"}E!==0&&x.R(b,a)}else{switch(E){case 1:b="BackgroundSingleClicked";break;case 2:b="BackgroundDoubleClicked";break;case 3:b="BackgroundContextClicked"}E!==0&&x.R(b)}if(a!==null)for(;a!==null;){switch(x=null,E){case 1:x=a.click;break;case 2:x=a.doubleClick?a.doubleClick:a.click;break;case 3:x=a.contextClick}if(x!==null&&(x(y,a),y.handled))break;a=a.panel}else{switch(a=null,E){case 1:a=x.click;break;case 2:a=x.doubleClick?x.doubleClick:x.click;break;case 3:a=x.contextClick}a!==null&&a(y)}}}eo.prototype.standardMouseOver=function(){var a=this.diagram,y=a.lastInput;if(a.animationManager.zb!==!0){var x=a.skipsUndoManager;a.skipsUndoManager=!0;var E=a.viewportBounds.ca(y.documentPoint)?a.ic(y.documentPoint,null,null):null;!y.event||y.event.type!=="pointercancel"&&y.event.type!=="pointerout"||(E=null),y.targetObject=E;var b=!1;if(E!==a.Ck){var z=a.Ck,tt=z;for(a.Ck=E,this.doCurrentObjectChanged(z,E),y.handled=!1;z!==null;){var rt=z.mouseLeave;if(rt!==null&&(E===z||E!==null&&E.rg(z)||(rt(y,z,E),b=!0,y.handled)))break;z=z.panel}for(z=tt,y.handled=!1;E!==null&&(tt=E.mouseEnter,!(tt!==null&&(z===E||z!==null&&z.rg(E)||(tt(y,E,z),b=!0,y.handled))));)E=E.panel;E=a.Ck}if(E!==null){for(z=E,tt="";z!==null&&(tt=z.cursor,tt==="");)z=z.panel;for(a.currentCursor=tt,y.handled=!1,z=E;z!==null&&(E=z.mouseOver,!(E!==null&&(E(y,z),b=!0,y.handled)));)z=z.panel}else this.doUpdateCursor(null),E=a.mouseOver,E!==null&&(E(y),b=!0);b&&a.$b(),a.skipsUndoManager=x}},eo.prototype.doUpdateCursor=function(){var a=this.diagram;a&&(a.currentCursor="")},eo.prototype.doCurrentObjectChanged=function(){},eo.prototype.standardMouseWheel=function(){var a=this.diagram,y=a.lastInput,x=y.delta;if(x!==0&&a.documentBounds.w()){var E=a.commandHandler,b=a.toolManager.mouseWheelBehavior;if(E!==null&&(b===Nl&&!y.shift||b===qs&&y.control))(0<x?E.canIncreaseZoom():E.canDecreaseZoom())&&(b=a.zoomPoint,a.zoomPoint=y.viewPoint,0<x?E.increaseZoom():E.decreaseZoom(),a.zoomPoint=b),y.bubbles=!1;else if(b===Nl&&y.shift||b===qs&&!y.control){E=a.position.copy();var z=y.event;b=z.deltaMode;var tt=z.deltaX;z=z.deltaY;var rt="pixel";if(tt===0&&z===0||y.shift)!y.shift&&a.allowVerticalScroll?(x=3*x*a.scrollVerticalLineChange,a.scroll(rt,0<x?"up":"down",Math.abs(x))):y.shift&&a.allowHorizontalScroll&&(x=3*x*a.scrollHorizontalLineChange,a.scroll(rt,0<x?"left":"right",Math.abs(x)));else{switch(b){case 0:rt="pixel";break;case 1:rt="line";break;case 2:rt="page"}tt!==0&&a.allowHorizontalScroll&&(tt*=a.scrollHorizontalLineChange/16,a.scroll(rt,0<tt?"right":"left",Math.abs(tt))),z!==0&&a.allowVerticalScroll&&(z*=a.scrollVerticalLineChange/16,a.scroll(rt,0<z?"down":"up",Math.abs(z)))}this.doWheelChange(a,E,y)}}},eo.prototype.doWheelChange=function(a,y,x){a.position.D(y)&&x.event.wheelDeltaX===0||(x.bubbles=!1)},eo.prototype.standardWaitAfter=function(a,y){y===void 0&&(y=this.diagram.lastInput),this.cancelWaitAfter();var x=this,E=y.clone(this.yy);this.Zr=Te(function(){x.doWaitAfter(E)},a)},eo.prototype.cancelWaitAfter=function(){this.Zr!==-1&&Sn.clearTimeout(this.Zr),this.Zr=-1},eo.prototype.doWaitAfter=function(){},eo.prototype.findToolHandleAt=function(a,y){return a=this.diagram.ic(a,function(x){for(;x!==null&&!(x.panel instanceof uo);)x=x.panel;return x}),a===null?null:a.part.category===y?a:null},eo.prototype.isBeyondDragSize=function(a,y){var x=this.diagram;a===void 0&&(a=x.firstInput.viewPoint),y===void 0&&(y=x.lastInput.viewPoint);var E=x.toolManager.dragSize,b=E.width;return E=E.height,x.firstInput.isTouchEvent&&(b+=6,E+=6),Math.abs(y.x-a.x)>b||Math.abs(y.y-a.y)>E},xe.Object.defineProperties(eo.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof Qe&&(this.H=a)}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},isEnabled:{get:function(){return this.Jd},set:function(a){this.Jd=a}},isActive:{get:function(){return this.nb},set:function(a){this.nb=a}},transactionResult:{get:function(){return this.wm},set:function(a){this.wm=a}}}),eo.prototype.startTransaction=eo.prototype.Ea,eo.className="Tool";function Lo(){eo.call(this),this.name="ToolManager",this.hb=new cn,this.ob=new cn,this.Hb=new cn,this.F=this.V=850,this.o=new zt(2,2).ja(),this.Ha=5e3,this.ia=qs,this.u=Su,this.Mp=this.j=null,this.zj=-1}ye(Lo,eo),Lo.prototype.initializeStandardTools=function(){},Lo.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof uo&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},Lo.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===Vs&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===Yl){y.bubbles=!0;return}if(this.gestureBehavior===Vs)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomStart();return}}for(var x=this.mouseDownTools.length,E=0;E<x;E++){var b=this.mouseDownTools.M(E);if(b.diagram=this.diagram,b.canStart()){a.doFocus(),a.currentTool=b,a.currentTool===b&&(b.isActive||b.doActivate(),b.doMouseDown());return}}a.lastInput.button===1&&(this.mouseWheelBehavior===qs?this.mouseWheelBehavior=Nl:this.mouseWheelBehavior===Nl&&(this.mouseWheelBehavior=qs)),this.doActivate(),this.standardWaitAfter(this.holdDelay,y)},Lo.prototype.doMouseMove=function(){var a=this.diagram,y=a.lastInput;if(y.isMultiTouch){if(this.gestureBehavior===Yl){y.bubbles=!0;return}if(this.gestureBehavior===Vs)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomMove();return}}if(this.isActive)for(var x=this.mouseMoveTools.length,E=0;E<x;E++){var b=this.mouseMoveTools.M(E);if(b.diagram=this.diagram,b.canStart()){a.doFocus(),a.currentTool=b,a.currentTool===b&&(b.isActive||b.doActivate(),b.doMouseMove());return}}Kl(this,a),a=y.event,a===null||a.type!=="pointermove"&&a.cancelable||(y.bubbles=!0)};function Kl(a,y){a.standardMouseOver(),a.isBeyondDragSize()&&a.standardWaitAfter(a.isActive?a.holdDelay:a.hoverDelay,y.lastInput)}Lo.prototype.doCurrentObjectChanged=function(a,y){a=this.currentToolTip,a===null||y!==null&&a instanceof uo&&(y===a||y.rg(a))||this.hideToolTip()},Lo.prototype.doWaitAfter=function(a){var y=this.diagram;y.ta!==null&&(this.doMouseHover(),this.isActive||this.doToolTip(),a.isTouchEvent&&!y.lastInput.handled&&(a=a.copy(),a.button=2,a.buttons=2,y.lastInput=a,y.qu=!0,y.doMouseUp()))},Lo.prototype.doMouseHover=function(){var a=this.diagram,y=a.lastInput;y.targetObject===null&&(y.targetObject=a.ic(y.documentPoint,null,null));var x=y.targetObject;if(x!==null)for(y.handled=!1;x!==null&&(a=this.isActive?x.mouseHold:x.mouseHover,!(a!==null&&(a(y,x),y.handled)));)x=x.panel;else x=this.isActive?a.mouseHold:a.mouseHover,x!==null&&x(y)},Lo.prototype.doToolTip=function(){var a=this.diagram,y=a.lastInput;if(y.targetObject===null&&(y.targetObject=a.ic(y.documentPoint,null,null)),y=y.targetObject,y!==null){if(a=this.currentToolTip,!(a instanceof uo)||y!==a&&!y.rg(a)){for(;y!==null;){if(a=y.toolTip,a!==null){this.showToolTip(a,y);return}y=y.panel}this.hideToolTip()}}else y=a.toolTip,y!==null?this.showToolTip(y,null):this.hideToolTip()},Lo.prototype.showToolTip=function(a,y){var x=this.diagram;if(a!==this.currentToolTip&&this.hideToolTip(),a instanceof uo){a.layerName="Tool",a.selectable=!1,a.scale=1/x.scale,a.category="ToolTip",a.placeholder!==null&&(a.placeholder.scale=x.scale);var E=a.diagram;E!==null&&E!==x&&E.remove(a),x.add(a),y!==null?a.adornedObject=y:a.data=x.model,a.Va(),this.positionToolTip(a,y)}else a instanceof wu&&a!==this.currentToolTip&&a.show(y,x,this);if(this.currentToolTip=a,this.zj!==-1&&(Sn.clearTimeout(this.zj),this.zj=-1),a=this.toolTipDuration,0<a&&a!==1/0){var b=this;this.zj=Te(function(){b.hideToolTip()},a)}},Lo.prototype.positionToolTip=function(a){if(a.placeholder===null){var y=this.diagram,x=y.lastInput.documentPoint.copy(),E=a.measuredBounds,b=y.viewportBounds;y.lastInput.isTouchEvent&&(x.x-=E.width),x.x+E.width>b.right&&(x.x-=E.width+5/y.scale),x.x<b.x&&(x.x=b.x),x.y=x.y+20/y.scale+E.height>b.bottom?x.y-(E.height+5/y.scale):x.y+20/y.scale,x.y<b.y&&(x.y=b.y),a.position=x}},Lo.prototype.hideToolTip=function(){this.zj!==-1&&(Sn.clearTimeout(this.zj),this.zj=-1);var a=this.diagram,y=this.currentToolTip;y!==null&&(y instanceof uo?(a.remove(y),this.Mp!==null&&this.Mp.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof wu&&y.hide!==null&&y.hide(a,this),this.currentToolTip=null)},Lo.prototype.doMouseUp=function(){this.cancelWaitAfter();var a=this.diagram;if(this.isActive)for(var y=this.mouseUpTools.length,x=0;x<y;x++){var E=this.mouseUpTools.M(x);if(E.diagram=this.diagram,E.canStart()){a.doFocus(),a.currentTool=E,a.currentTool===E&&(E.isActive||E.doActivate(),E.doMouseUp());return}}a.doFocus(),this.doDeactivate()},Lo.prototype.doMouseWheel=function(){this.standardMouseWheel()},Lo.prototype.doKeyDown=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyDown()},Lo.prototype.doKeyUp=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyUp()},Lo.prototype.findTool=function(a){for(var y=this.mouseDownTools.length,x=0;x<y;x++){var E=this.mouseDownTools.M(x);if(E.name===a)return E}for(y=this.mouseMoveTools.length,x=0;x<y;x++)if(E=this.mouseMoveTools.M(x),E.name===a)return E;for(y=this.mouseUpTools.length,x=0;x<y;x++)if(E=this.mouseUpTools.M(x),E.name===a)return E;return null},Lo.prototype.replaceTool=function(a,y){y!==null&&(y.diagram=this.diagram);for(var x=this.mouseDownTools.length,E=0;E<x;E++){var b=this.mouseDownTools.M(E);if(b.name===a)return y!==null?this.mouseDownTools.cd(E,y):this.mouseDownTools.mb(E),b}for(x=this.mouseMoveTools.length,E=0;E<x;E++)if(b=this.mouseMoveTools.M(E),b.name===a)return y!==null?this.mouseMoveTools.cd(E,y):this.mouseMoveTools.mb(E),b;for(x=this.mouseUpTools.length,E=0;E<x;E++)if(b=this.mouseUpTools.M(E),b.name===a)return y!==null?this.mouseUpTools.cd(E,y):this.mouseUpTools.mb(E),b;return null},Lo.prototype.gb=function(a,y,x){y!==null&&(y.name=a,y.diagram=this.diagram),this.findTool(a)?this.replaceTool(a,y):y!==null&&x.add(y)},xe.Object.defineProperties(Lo.prototype,{mouseWheelBehavior:{get:function(){return this.ia},set:function(a){this.ia=a}},gestureBehavior:{get:function(){return this.u},set:function(a){this.u=a}},currentToolTip:{get:function(){return this.j},set:function(a){this.j=a,this.Mp=a!==null&&a instanceof uo?a.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(a){this.V=a}},holdDelay:{get:function(){return this.F},set:function(a){this.F=a}},dragSize:{get:function(){return this.o},set:function(a){this.o=a.J()}},toolTipDuration:{get:function(){return this.Ha},set:function(a){this.Ha=a}}}),Lo.prototype.replaceStandardTool=Lo.prototype.gb;var qs=new dn(Lo,"WheelScroll",0),Nl=new dn(Lo,"WheelZoom",1),yu=new dn(Lo,"WheelNone",2),Su=new dn(Lo,"GestureZoom",3),Vs=new dn(Lo,"GestureCancel",4),Yl=new dn(Lo,"GestureNone",5);Lo.className="ToolManager",Lo.WheelScroll=qs,Lo.WheelZoom=Nl,Lo.WheelNone=yu,Lo.GestureZoom=Su,Lo.GestureCancel=Vs,Lo.GestureNone=Yl;function Uo(){eo.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 Bt(NaN,NaN),this.Fr=new Bt,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new xn().freeze(),this.ia=new at,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var Gs;ye(Uo,eo),Uo.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a.isReadOnly&&!a.allowDragOut||!a.allowMove&&!a.allowCopy&&!a.allowDragOut||!a.allowSelect)return!1;var y=a.lastInput;return!y.left||a.currentTool!==this&&(!this.isBeyondDragSize()||y.isTouchEvent&&y.timestamp-a.firstInput.timestamp<this.Ik)?!1:this.findDraggablePart()!==null},Uo.prototype.findDraggablePart=function(){var a=this.diagram;if(a=a.Ol(a.firstInput.documentPoint,!1),a===null)return null;for(;a!==null&&!a.canSelect();)a=a.containingGroup;return a!==null&&(a.canMove()||a.canCopy())?a:null},Uo.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.Ol(a.firstInput.documentPoint,!1);if(y!==null){for(;y!==null&&!y.canSelect();)y=y.containingGroup;this.currentPart=y,this.currentPart===null||this.currentPart.isSelected||(a.R("ChangingSelection",a.selection),y=a.lastInput,(Lr?y.meta:y.control)||y.shift||a.clearSelection(!0),this.currentPart.isSelected=!0,a.R("ChangedSelection",a.selection))}}},Uo.prototype.doActivate=function(){var a=this.diagram;this.Bn=null,this.currentPart===null&&this.standardMouseSelect();var y=this.currentPart;y!==null&&(y.canMove()||y.canCopy())&&(a.Fu(!0),Va=null,this.isActive=!0,this.tl.set(a.position),xu(this,a.selection),this.Cg.length=0,a.animationManager.Cc(),this.draggedParts=this.computeEffectiveCollection(a.selection,this.dragOptions),this.Sw=this.diagram.layout.isRealtime,this.diagram.layout.isRealtime=!1,a.Ns=!0,a.Gf("temporaryPixelRatio")===!0&&30<a.$w&&Is(a),yf(a,this.draggedParts),this.Ea("Drag"),this.startPoint=a.firstInput.documentPoint,a.isMouseCaptured=!0,a.allowDragOut&&(this.isDragOutStarted=!0,this.Ym=!1,Va=this,Qu=this.diagram,this.doSimulatedDragOut()))};function xu(a,y){if(a.dragsLink){var x=a.diagram;x.allowRelink&&(x.model.Wj()&&y.count===1&&y.first()instanceof di?(a.draggedLink=y.first(),a.draggedLink.canRelinkFrom()&&a.draggedLink.canRelinkTo()&&a.draggedLink.Ej(),a.Oe=x.toolManager.findTool("Relinking"),a.Oe===null&&(a.Oe=new sl,a.Oe.diagram=x),a.Oe.originalLink=a.draggedLink):(a.draggedLink=null,a.Oe=null))}}Uo.prototype.computeEffectiveCollection=function(a,y){return this.diagram.commandHandler.computeEffectiveCollection(a,y)},Uo.prototype.Pd=function(a){return a===void 0?new nh(Zt):this.isGridSnapEnabled?new nh(new Bt(Math.round(1e3*a.x)/1e3,Math.round(1e3*a.y)/1e3)):new nh(a.copy())},Uo.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;if(this.diagram.layout.isRealtime=this.Sw,a.Fu(!1),a.ug(),ml(this),od(a,this.draggedParts),this.draggedParts=this.currentPart=this.Bn=null,this.Ym=this.isDragOutStarted=!1,0<Gs.count){for(var y=Gs,x=y.length,E=0;E<x;E++){var b=y.M(E);Ko(b),No(b),ml(b),b.diagram.ug()}y.clear()}Ko(this),this.tl.h(NaN,NaN),Qu!==null&&(Qu.currentCursor=""),Va=Qu=null,No(this),a.isMouseCaptured=!1,a.currentCursor="",a.Ns=!1,this.stopTransaction(),Ec(a,!0)},Uo.prototype.stopTransaction=function(){var a=this.diagram,y=eo.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y};function ml(a){var y=a.diagram,x=y.skipsUndoManager;y.skipsUndoManager=!0,Bl(a,y.lastInput,null),y.skipsUndoManager=x,a.Cg.length=0}function Nu(){var a=Va;No(a),ns(a);var y=a.diagram;a.tl.w()&&(y.position=a.tl),y.ug()}Uo.prototype.doCancel=function(){No(this),ns(this);var a=this.diagram;this.tl.w()&&(a.position=this.tl),this.stopTool()},Uo.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput;this.isActive&&(y.key==="Esc"?this.doCancel():y.key!==a.previousInput.key&&this.doMouseMove())},Uo.prototype.doKeyUp=function(){this.isActive&&this.doMouseMove()};function vl(a,y){if(a.copiedParts===null){var x=a.diagram;if((!y||!x.isReadOnly&&!x.isModelReadOnly)&&a.draggedParts!==null){var E=x.undoManager;for(E.isEnabled&&E.isInTransaction?E.currentTransaction!==null&&0<E.currentTransaction.changes.count&&(x.undoManager.Kf(),x.Ea("Drag")):ns(a),x.skipsUndoManager=!y,x.partManager.addsToTemporaryLayer=!y,a.startPoint=x.firstInput.documentPoint,y=a.copiesEffectiveCollection?a.draggedParts.Lf():x.selection,y=x.Kj(y,x,!0),x=new on,E=a.draggedParts.iterator;E.next();){var b=E.key;if(b.Zc()&&b.canCopy()){var z=y.I(b);z!==null&&(z.location=b.location,z.Va(),x.add(z,a.Pd(z.location)))}}for(y=y.iterator;y.next();)E=y.value,E instanceof di&&E.canCopy()&&x.add(E,a.Pd());a.copiedParts=x,xu(a,x.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Bh(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}function No(a){var y=a.diagram;if(a.copiedParts!==null){if(y.Is(a.copiedParts.Lf(),!1),a.copiedParts=null,a.draggedParts!==null)for(var x=a.draggedParts.iterator;x.next();)x.key instanceof di&&(x.value.point=new Bt(0,0));a.doUpdateCursor(null)}y.skipsUndoManager=!1,y.partManager.addsToTemporaryLayer=!1,a.startPoint=y.firstInput.documentPoint}function Ko(a){if(a.draggedLink!==null){if(a.dragsLink&&a.Oe!==null){var y=a.Oe;y.diagram.remove(y.temporaryFromNode),y.diagram.remove(y.temporaryToNode),a.Oe.originalLink=null}a.draggedLink=null,a.Oe=null}}function ba(a,y,x){var E=a.diagram,b=a.startPoint,z=Bt.alloc();z.assign(E.lastInput.documentPoint),a.moveParts(y,z.re(b),x),Bt.free(z),E.Gf("temporaryPixelRatio")===!0&&E.Yh===null&&30<E.$w&&(Is(E),E.hk())}Uo.prototype.moveParts=function(a,y,x){x===void 0&&(x=!1);var E=this.diagram;E!==null&&rd(E,a,y,this.dragOptions,x)};function ns(a){if(a.draggedParts!==null){for(var y=a.diagram,x=a.draggedParts.iterator;x.next();){var E=x.key;E.Zc()&&(E.location=x.value.point)}for(x=a.draggedParts.iterator;x.next();)if(E=x.key,E instanceof di&&E.suspendsRouting){var b=x.value.point;a.draggedParts.add(E,a.Pd()),Bh(E,-b.x,-b.y)}y.bd()}}function Qa(a,y){var x=a.diagram;a.dragsLink&&(a.draggedLink!==null&&(a.draggedLink.fromNode=null,a.draggedLink.toNode=null),xo(a,!1));var E=a.findDragOverObject(y),b=x.lastInput;b.targetObject=E,a.doUpdateCursor(E);var z=x.skipsUndoManager,tt=!1;try{if(x.skipsUndoManager=!0,tt=Bl(a,b,E),!a.isActive&&Va===null)return;var rt=E!==null?E.part:null;if(rt===null||x.handlesDragDropForTopLevelParts&&rt.isTopLevel&&!(rt instanceof Tr)){var ot=x.mouseDragOver;ot!==null&&(ot(b),tt=!0)}if(!a.isActive&&Va===null||(a.doDragOver(y,E),!a.isActive&&Va===null))return}finally{x.skipsUndoManager=z,tt&&x.bd()}a.Bn=E,x.isReadOnly||!x.allowMove&&!x.allowCopy||!x.allowHorizontalScroll&&!x.allowVerticalScroll||x.gs(b.viewPoint)}Uo.prototype.findDragOverObject=function(a){var y=this;return Ou(this.diagram,a,null,function(x){return x===null?x=!0:(x=x.part,x=!!(x===null||x instanceof uo||x.layer.isTemporary||y.draggedParts&&y.draggedParts.contains(x)||y.copiedParts&&y.copiedParts.contains(x))),!x})},Uo.prototype.doUpdateCursor=function(a){var y=this.diagram;(a===null||this.Bn!==a)&&(!this.diagram.currentTool.isActive||this.mayCopy()?y.currentCursor=this.copyCursor:this.mayMove()?y.currentCursor=this.moveCursor:this.mayDragOut()&&(y.currentCursor=this.nodropCursor))};function Bl(a,y,x){var E=!1,b=a.Cg.length,z=0<b?a.Cg[0]:null;if(x===z)return!1;y.handled=!1;for(var tt=0;tt<b;tt++){var rt=a.Cg[tt],ot=rt.mouseDragLeave;if(ot!==null&&(ot(y,rt,x),E=!0,y.handled))break}if(a.Cg.length=0,!a.isActive&&Va===null||x===null)return E;for(y.handled=!1,b=x;b!==null;)a.Cg.push(b),b=yl(b);for(b=a.Cg.length,x=0;x<b&&(tt=a.Cg[x],rt=tt.mouseDragEnter,rt===null||(rt(y,tt,z),E=!0,!y.handled));x++);return E}function yl(a){var y=a.panel;return y!==null?y:a instanceof rr&&!(a instanceof Tr)&&(a=a.containingGroup,a!==null&&a.handlesDragDropForMembers)?a:null}function Oo(a,y,x){var E=a.Oe;if(E===null)return null;var b=a.diagram.og(y,E.portGravity,function(st){return E.findValidLinkablePort(st,x)});a=Bt.alloc();var z=1/0,tt=null;for(b=b.iterator;b.next();){var rt=b.value;if(rt.part!==null){var ot=rt.ga(Ri,a);ot=y.Bf(ot),ot<z&&(tt=rt,z=ot)}}return Bt.free(a),tt}function xo(a,y){var x=a.draggedLink;if(x!==null&&!(2>x.pointsCount)){var E=a.diagram;if(!E.isReadOnly){var b=a.Oe;if(b!==null){var z=null,tt=null;x.fromNode===null&&(z=Oo(a,x.i(0),!1),z!==null&&(tt=z.part));var rt=null,ot=null;x.toNode===null&&(rt=Oo(a,x.i(x.pointsCount-1),!0),rt!==null&&(ot=rt.part)),b.isValidLink(tt,z,ot,rt)?y?(x.defaultFromPoint=x.i(0),x.defaultToPoint=x.i(x.pointsCount-1),x.suspendsRouting=!1,x.fromNode=tt,z!==null&&(x.fromPortId=z.portId),x.toNode=ot,rt!==null&&(x.toPortId=rt.portId),x.fromPort!==E.Mx&&E.R("LinkRelinked",x,E.Mx),x.toPort!==E.Nx&&E.R("LinkRelinked",x,E.Nx)):rf(b,tt,z,ot,rt):rf(b,null,null,null,null)}}}}Uo.prototype.doDragOver=function(){};function Ua(a,y){var x=a.diagram;a.dragsLink&&xo(a,!0),ml(a);var E=a.findDragOverObject(y),b=x.lastInput;if(b.targetObject=E,E!==null){b.handled=!1;for(var z=E;z!==null;){var tt=z.mouseDrop;if(tt!==null&&(tt(b,z),b.handled))break;ou(a,b,z),z=yl(z)}}else z=x.mouseDrop,z!==null&&z(b);if(a.isActive||Va!==null){for(b=(a.copiedParts||a.draggedParts).iterator;b.next();)z=b.key,z instanceof bi&&z.linksConnected.each(function(rt){rt.suspendsRouting=!1});if(a.doDropOnto(y,E),a.isActive||Va!==null){for(a=ue.alloc(),y=x.selection.iterator;y.next();)E=y.value,E instanceof bi&&Dd(x,E,a);ue.free(a)}}}function ou(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof Tr||(x=a.mouseDrop,x!==null&&x(y))}function Dd(a,y,x){var E=!1;if(x=y.getAvoidableRect(x),a.viewportBounds.Re(x)&&(E=!0),a=a.Nu(x,function(b){return b.part},function(b){return b instanceof di},!0,function(b){return b instanceof di},E),a.count!==0)for(a=a.iterator;a.next();)x=a.value,!x.Td(y)&&x.isAvoiding&&x.bb()}Uo.prototype.doDropOnto=function(){},Uo.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram,y=a.lastInput;this.simulatedMouseMove(y.event,y.documentPoint,y.targetDiagram)||this.currentPart===null||this.draggedParts===null||(this.mayCopy()?(vl(this,!1),yf(a,this.copiedParts),ba(this,this.copiedParts,!1),od(a,this.copiedParts)):this.mayMove()?(No(this),ba(this,this.draggedParts,!0)):this.mayDragOut()?(vl(this,!1),ba(this,this.copiedParts,!1)):No(this),Qa(this,a.lastInput.documentPoint))}},Uo.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=a.lastInput;if(!this.simulatedMouseUp(y.event,y.documentPoint,y.targetDiagram)){y=!1;var x=this.mayCopy();if(x&&this.copiedParts!==null?(No(this),vl(this,!0),yf(a,this.copiedParts),ba(this,this.copiedParts,!1),od(a,this.copiedParts),this.copiedParts!==null&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(b){b.isSelected=!0}))):(y=!0,No(this),this.mayMove()&&(ba(this,this.draggedParts,!0),Qa(this,a.lastInput.documentPoint))),this.Ym=!0,Ua(this,a.lastInput.documentPoint),this.isActive){var E=x?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&cg(this),a.Ya(),od(a,this.draggedParts),this.transactionResult=x?"Copy":"Move",a.R(x?"SelectionCopied":"SelectionMoved",E)}this.stopTool(),x&&a.R("ChangedSelection",a.selection)}}},Uo.prototype.simulatedMouseMove=function(a,y,x){if(Va===null)return!1;var E=Va.diagram;x instanceof Qe||(x=null);var b=Qu;return x!==b&&(b!==null&&b!==E&&(b.ug(),Va.isDragOutStarted=!1,b=b.toolManager.findTool("Dragging"),b!==null&&b.doSimulatedDragLeave()),Qu=x,x!==null&&x!==E&&(Nu(),b=x.toolManager.findTool("Dragging"),b!==null&&(Gs.contains(b)||Gs.add(b),b.doSimulatedDragEnter())),this.doUpdateCursor(null)),x===null||x===E||!x.allowDrop||x.isReadOnly||!x.allowInsert?!1:(E=x.toolManager.findTool("Dragging"),E!==null&&(a!==null&&(a.targetTouches!==void 0&&(0<a.targetTouches.length?a=a.targetTouches[0]:0<a.changedTouches.length&&(a=a.changedTouches[0])),y=x.getMouse(a)),x.lastInput.documentPoint=y,x.lastInput.viewPoint=x.op(y),x.lastInput.down=!1,x.lastInput.up=!1,E.doSimulatedDragOver()),!0)},Uo.prototype.simulatedMouseUp=function(a,y,x){if(Va===null)return!1;var E=Qu,b=Va.diagram;if(x===null)return Va.doCancel(),!0;if(x!==E){var z=E.toolManager.findTool("Dragging");if(E!==null&&E!==b&&z!==null)return E.ug(),Va.isDragOutStarted=!1,z.doSimulatedDragLeave(),!1;Qu=x,E=x.toolManager.findTool("Dragging"),E!==null&&(Nu(),Gs.contains(E)||Gs.add(E),E.doSimulatedDragEnter())}return x!==this.diagram?(a!==null?(a.targetTouches!==void 0&&(0<a.targetTouches.length?a=a.targetTouches[0]:0<a.changedTouches.length&&(a=a.changedTouches[0])),y=x.getMouse(a)):y===null&&(y=new Bt),x.lastInput.documentPoint=y,x.lastInput.viewPoint=x.op(y),x.lastInput.down=!1,x.lastInput.up=!0,a=x.toolManager.findTool("Dragging"),a!==null&&a.doSimulatedDrop(),a=Va,a!==null&&(x=a.mayCopy(),a.transactionResult=x?"Copy":"Move",a.stopTool()),!0):!1};function cg(a){if(a.draggedParts!==null)for(var y=a.draggedParts.iterator;y.next();){var x=y.key;x instanceof bi&&(x=x.containingGroup,x===null||x.placeholder===null||a.draggedParts.contains(x)||x.placeholder.v())}}Uo.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowCopy||(Lr?!a.lastInput.alt:!a.lastInput.control))return!1;for(a=a.selection.iterator;a.next();)if(a.value.canCopy())return!0;return!!(this.draggedLink!==null&&this.dragsLink&&this.draggedLink.canCopy())},Uo.prototype.mayDragOut=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(!a.allowDragOut||!a.allowCopy||a.allowMove)return!1;for(a=a.selection.iterator;a.next();)if(a.value.canCopy())return!0;return!!(this.draggedLink!==null&&this.dragsLink&&this.draggedLink.canCopy())},Uo.prototype.mayMove=function(){var a=this.diagram;if(a.isReadOnly||!a.allowMove)return!1;for(a=a.selection.iterator;a.next();)if(a.value.canMove())return!0;return!!(this.draggedLink!==null&&this.dragsLink&&this.draggedLink.canMove())},Uo.prototype.computeBorder=function(a,y,x){return this.Ym||this.draggedParts===null||this.draggedParts.contains(a)?null:x.assign(y)},Uo.prototype.Az=function(){return Va},Uo.prototype.mayDragIn=function(){var a=this.diagram;if(!a.allowDrop||a.isReadOnly||a.isModelReadOnly||!a.allowInsert)return!1;var y=Va;return!(y===null||y.diagram.model.dataFormat!==a.model.dataFormat)},Uo.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var a=this.diagram;a.animationManager.Cc(),wl(a),a.animationManager.Cc(),a=Va,a!==null&&(a.diagram.Ns=!1),this.doUpdateCursor(null)}},Uo.prototype.doSimulatedDragLeave=function(){var a=Va;a!==null&&a.doSimulatedDragOut(),this.doCancel()},Uo.prototype.doSimulatedDragOver=function(){var a=this.diagram;a.animationManager.Dm=!0;var y=Va;if(y!==null&&y.draggedParts!==null){if(!this.mayDragIn())return;nf(this,y.draggedParts.Lf(),!1,a.firstInput),ba(this,this.copiedParts,!1),Qa(this,a.lastInput.documentPoint)}a.animationManager.Dm=!1},Uo.prototype.doSimulatedDrop=function(){var a=this.diagram,y=Va;if(y!==null){var x=y.diagram;if(y.Ym=!0,No(this),!this.mayDragIn())return;a.animationManager.Dm=!0,a.R("ChangingSelection",a.selection),this.Ea("Drop"),nf(this,y.draggedParts.Lf(),!0,a.lastInput),ba(this,this.copiedParts,!1);var E=new xn;this.copiedParts!==null&&(a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(b){b.isSelected=!0,E.add(b)})),Ua(this,a.lastInput.documentPoint),a.Ya(),this.copiedParts!==null&&(this.transactionResult="ExternalCopy"),this.copiedParts=null,a.doFocus(),a.R("ExternalObjectsDropped",E,x),this.stopTransaction(),a.R("ChangedSelection",a.selection)}a.animationManager.Dm=!1};function nf(a,y,x,E){if(a.copiedParts===null){var b=a.diagram;if(!b.isReadOnly&&!b.isModelReadOnly){b.skipsUndoManager=!x,b.partManager.addsToTemporaryLayer=!x,a.startPoint=E.documentPoint,x=b.Kj(y,b,!0);var z=ue.alloc();b=E=1/0;for(var tt=-1/0,rt=-1/0,ot=y.iterator;ot.next();){var st=ot.value;if(st.isVisible()){var ut=st.location;st=ut.x,ut=ut.y,isNaN(st)||isNaN(ut)||(st<E&&(E=st),ut<b&&(b=ut),st>tt&&(tt=st),ut>rt&&(rt=ut))}}for(E===1/0?z.h(0,0,0,0):z.h(E,b,tt-E,rt-b),E=z.x+z.width/2,b=z.y+z.height/2,ue.free(z),z=a.Fr,tt=new on,rt=Bt.alloc(),ot=y.iterator;ot.next();)st=ot.value,st instanceof di&&st.canCopy()&&(ut=x.I(st),ut!==null&&(ut.points=st.points,Bh(ut,z.x-E,z.y-b),ut.suspendsRouting=!0,tt.add(ut,a.Pd())));for(y=y.iterator;y.next();)st=y.value,st.Zc()&&st.canCopy()&&(ot=x.I(st),ot!==null&&(st=st.location,rt.h(z.x-(E-st.x),z.y-(b-st.y)),ot.location=rt,ot.Va(),tt.add(ot,a.Pd(rt))));Bt.free(rt),a.copiedParts=tt,xu(a,tt.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Bh(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}Uo.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},Uo.prototype.computeMove=function(a,y,x,E){return x=this.diagram,x!==null?x.computeMove(a,y,this.dragOptions,E):new Bt},xe.Object.defineProperties(Uo.prototype,{isCopyEnabled:{get:function(){return this.ob},set:function(a){this.ob=a}},copiesEffectiveCollection:{get:function(){return this.u},set:function(a){this.u=a}},dragOptions:{get:function(){return this.ia},set:function(a){this.ia=a}},isGridSnapEnabled:{get:function(){return this.dragOptions.isGridSnapEnabled},set:function(a){this.dragOptions.isGridSnapEnabled=a}},isComplexRoutingRealtime:{get:function(){return this.hb},set:function(a){this.hb=a}},isGridSnapRealtime:{get:function(){return this.dragOptions.isGridSnapRealtime},set:function(a){this.dragOptions.isGridSnapRealtime=a}},gridSnapCellSize:{get:function(){return this.dragOptions.gridSnapCellSize},set:function(a){this.dragOptions.gridSnapCellSize.D(a)||(a=a.J(),this.dragOptions.gridSnapCellSize=a)}},gridSnapCellSpot:{get:function(){return this.dragOptions.gridSnapCellSpot},set:function(a){this.dragOptions.gridSnapCellSpot.D(a)||(a=a.J(),this.dragOptions.gridSnapCellSpot=a)}},gridSnapOrigin:{get:function(){return this.dragOptions.gridSnapOrigin},set:function(a){this.dragOptions.gridSnapOrigin.D(a)||(a=a.J(),this.dragOptions.gridSnapOrigin=a)}},dragsLink:{get:function(){return this.dragOptions.dragsLink},set:function(a){this.dragOptions.dragsLink=a}},dragsTree:{get:function(){return this.dragOptions.dragsTree},set:function(a){this.dragOptions.dragsTree=a}},copyCursor:{get:function(){return this.F},set:function(a){this.F=a}},moveCursor:{get:function(){return this.Oc},set:function(a){this.Oc=a}},nodropCursor:{get:function(){return this.Pc},set:function(a){this.Pc=a}},currentPart:{get:function(){return this.V},set:function(a){this.V=a}},copiedParts:{get:function(){return this.o},set:function(a){this.o=a}},draggedParts:{get:function(){return this.Ha},set:function(a){this.Ha=a}},draggingParts:{get:function(){return this.copiedParts!==null?this.copiedParts.Lf():this.draggedParts!==null?this.draggedParts.Lf():this.te}},draggedLink:{get:function(){return this.diagram.draggedLink},set:function(a){this.diagram.draggedLink=a}},isDragOutStarted:{get:function(){return this.Hb},set:function(a){this.Hb=a}},startPoint:{get:function(){return this.Fr},set:function(a){this.Fr.D(a)||this.Fr.assign(a)}},delay:{get:function(){return this.Ik},set:function(a){this.Ik=a}}}),Uo.prototype.getDraggingSource=Uo.prototype.Az;var Va=null,Qu=null;Uo.className="DraggingTool",Gs=new cn,zi("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),Lo.prototype.doCancel=function(){Va!==null&&Va.doCancel(),eo.prototype.doCancel.call(this)};function lo(){eo.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new di,y=new Wr;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new Wr,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new bi,y=new Wr,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=de,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new bi,y=new Wr,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=de,a.add(y),a.selectable=!1,a.layerName="Tool",this.Di=a,this.o=y,this.Pc=this.Oc=this.ob=this.hb=this.Hb=null,this.ia=!0,this.hy=new on,this.Of=this.gj=this.Pf=null}ye(lo,eo),lo.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},lo.prototype.copyPortProperties=function(a,y,x,E,b){if(a!==null&&y!==null&&x!==null&&E!==null){var z=y.Df(),tt=zt.alloc();tt.width=y.naturalBounds.width*z,tt.height=y.naturalBounds.height*z,E.desiredSize=tt,zt.free(tt),b?(E.toSpot=y.toSpot,E.toEndSegmentLength=y.toEndSegmentLength):(E.fromSpot=y.fromSpot,E.fromEndSegmentLength=y.fromEndSegmentLength),x.locationSpot=Ri,z=Bt.alloc(),x.location=y.ga(Ri,z),Bt.free(z),E.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,E,b)}},lo.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=de,y.fromSpot=_i,y.toSpot=_i),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},lo.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},lo.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof bi){var y=this.targetPort.part;this.isForwards?this.copyPortProperties(y,this.targetPort,this.temporaryToNode,this.temporaryToPort,!0):this.copyPortProperties(y,this.targetPort,this.temporaryFromNode,this.temporaryFromPort,!1)}else this.isForwards?this.setNoTargetPortProperties(this.temporaryToNode,this.temporaryToPort,!0):this.setNoTargetPortProperties(this.temporaryFromNode,this.temporaryFromPort,!1);(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},lo.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof bi))return null;for(;a!==null;){var E=y?a.toLinkable:a.fromLinkable;if(E===!0&&(a.portId!==null||a instanceof bi)&&(y?this.isValidTo(x,a):this.isValidFrom(x,a)))return a;if(E===!1)break;a=a.panel}return null},lo.prototype.findTargetPort=function(a){var y=this.diagram,x=y.lastInput.documentPoint,E=this.portGravity;0>=E&&(E=.1);var b=this,z=y.og(x,E,function(ft){return b.findValidLinkablePort(ft,a)},null,!0);for(E=1/0,y=null,z=z.iterator;z.next();){var tt=z.value,rt=tt.part;if(rt instanceof bi){var ot=tt.ga(Ri,Bt.alloc()),st=x.x-ot.x,ut=x.y-ot.y;Bt.free(ot),ot=st*st+ut*ut,ot<E&&(st=this.validPortsCache.I(tt),st!==null?st&&(y=tt,E=ot):a&&this.isValidLink(this.originalFromNode,this.originalFromPort,rt,tt)||!a&&this.isValidLink(rt,tt,this.originalToNode,this.originalToPort)?(this.validPortsCache.add(tt,!0),y=tt,E=ot):this.validPortsCache.add(tt,!1))}}return y!==null&&(x=y.part,x instanceof bi&&(x.layer===null||x.layer.allowLink))?y:null},lo.prototype.isValidFrom=function(a,y){if(a===null||y===null)return this.isUnconnectedLinkValid;if(this.diagram.currentTool===this&&(a.layer!==null&&!a.layer.allowLink||y.fromLinkable!==!0))return!1;var x=y.fromMaxLinks;if(1/0>x){if(this.originalLink!==null&&a===this.originalFromNode&&y===this.originalFromPort)return!0;if(y=y.portId,y===null&&(y=""),a.Mo(y).count>=x)return!1}return!0},lo.prototype.isValidTo=function(a,y){if(a===null||y===null)return this.isUnconnectedLinkValid;if(this.diagram.currentTool===this&&(a.layer!==null&&!a.layer.allowLink||y.toLinkable!==!0))return!1;var x=y.toMaxLinks;if(1/0>x){if(this.originalLink!==null&&a===this.originalToNode&&y===this.originalToPort)return!0;if(y=y.portId,y===null&&(y=""),a.Sd(y).count>=x)return!1}return!0},lo.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},lo.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof bi))return!1;a=a.portId,a===null&&(a="");var E=y.part;if(!(E instanceof bi))return!1;for(y=y.portId,y===null&&(y=""),y=E.Sd(y);y.next();)if(E=y.value,E.fromNode===x&&E.fromPortId===a)return!0;return!1},lo.prototype.isValidLink=function(a,y,x,E){if(!this.isValidFrom(a,y)||!this.isValidTo(x,E)||!(y===null||E===null||(y.fromLinkableSelfNode&&E.toLinkableSelfNode||!this.isInSameNode(y,E))&&(y.fromLinkableDuplicates&&E.toLinkableDuplicates||!this.isLinked(y,E)))||this.originalLink!==null&&(a!==null&&this.isLabelDependentOnLink(a,this.originalLink)||x!==null&&this.isLabelDependentOnLink(x,this.originalLink))||a!==null&&x!==null&&(a.data===null&&x.data!==null||a.data!==null&&x.data===null)||!this.isValidCycle(a,x,this.originalLink))return!1;if(a!==null){var b=a.linkValidation;if(b!==null&&!b(a,y,x,E,this.originalLink))return!1}return x!==null&&(b=x.linkValidation,b!==null&&!b(a,y,x,E,this.originalLink))?!1:(b=this.linkValidation,b!==null?b(a,y,x,E,this.originalLink):!0)},lo.prototype.isLabelDependentOnLink=function(a,y){if(a===null)return!1;var x=a.labeledLink;if(x===null)return!1;if(x===y)return!0;var E=new xn;return E.add(a),po(this,x,y,E)};function po(a,y,x,E){if(y===x)return!0;var b=y.fromNode;return b!==null&&b.isLinkLabel&&(E.add(b),po(a,b.labeledLink,x,E))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(E.add(y),po(a,y.labeledLink,x,E))))}lo.prototype.isValidCycle=function(a,y,x){if(x===void 0&&(x=null),a===null||y===null)return this.isUnconnectedLinkValid;var E=this.diagram.validCycle;if(E!==kc){if(E===Vg){if(E=x||this.temporaryLink,E!==null&&!E.isTreeLink)return!0;for(E=y.linksConnected;E.next();){var b=E.value;if(b!==x&&b.isTreeLink&&b.toNode===y)return!1}return!Mo(this,a,y,x,!0)}if(E===Gg){if(E=x||this.temporaryLink,E!==null&&!E.isTreeLink)return!0;for(E=a.linksConnected;E.next();)if(b=E.value,b!==x&&b.isTreeLink&&b.fromNode===a)return!1;return!Mo(this,a,y,x,!0)}if(E===Wg)return a===y?a=!0:(E=new xn,E.add(y),a=ia(this,E,a,y,x)),!a;if(E===Hg)return!Mo(this,a,y,x,!1);if(E===Zg)return a===y?a=!0:(E=new xn,E.add(y),a=rs(this,E,a,y,x)),!a}return!0};function Mo(a,y,x,E,b){if(y===x)return!0;if(y===null||x===null)return!1;for(var z=y.linksConnected;z.next();){var tt=z.value;if(tt!==E&&(!b||tt.isTreeLink)&&tt.toNode===y&&(tt=tt.fromNode,tt!==y&&Mo(a,tt,x,E,b)))return!0}return!1}function ia(a,y,x,E,b){if(x===E)return!0;if(x===null||E===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var tt=z.value;if(tt!==b&&tt.toNode===x&&(tt=tt.fromNode,tt!==x&&ia(a,y,tt,E,b)))return!0}return!1}function rs(a,y,x,E,b){if(x===E)return!0;if(x===null||E===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var tt=z.value;if(tt!==b){var rt=tt.fromNode;if(tt=tt.toNode,rt=rt===x?tt:rt,rt!==x&&rs(a,y,rt,E,b))return!0}}return!1}xe.Object.defineProperties(lo.prototype,{portGravity:{get:function(){return this.te},set:function(a){0<=a&&(this.te=a)}},isUnconnectedLinkValid:{get:function(){return this.Ha},set:function(a){this.Ha=a}},linkingCursor:{get:function(){return this.u},set:function(a){this.u=a}},temporaryLink:{get:function(){return this.Ci},set:function(a){this.Ci=a}},temporaryFromNode:{get:function(){return this.Bi},set:function(a){(this.Bi=a)&&(this.j=a.port)}},temporaryFromPort:{get:function(){return this.j},set:function(a){if(this.j!==null){var y=this.j.panel;if(y!==null){var x=y.O.indexOf(this.j);y.mb(x),y.Gb(x,a)}}this.j=a}},temporaryToNode:{get:function(){return this.Di},set:function(a){(this.Di=a)&&(this.o=a.port)}},temporaryToPort:{get:function(){return this.o},set:function(a){if(this.o!==null){var y=this.o.panel;if(y!==null){var x=y.O.indexOf(this.o);y.mb(x),y.Gb(x,a)}}this.o=a}},originalLink:{get:function(){return this.Hb},set:function(a){this.Hb=a}},originalFromNode:{get:function(){return this.hb},set:function(a){this.hb=a}},originalFromPort:{get:function(){return this.ob},set:function(a){this.ob=a}},originalToNode:{get:function(){return this.Oc},set:function(a){this.Oc=a}},originalToPort:{get:function(){return this.Pc},set:function(a){this.Pc=a}},isForwards:{get:function(){return this.ia},set:function(a){this.ia=a}},validPortsCache:{get:function(){return this.hy}},targetPort:{get:function(){return this.Pf},set:function(a){this.Pf=a}},linkValidation:{get:function(){return this.gj},set:function(a){this.gj=a}},portTargeted:{get:function(){return this.Of},set:function(a){this.Of=a}}}),lo.className="LinkingBaseTool";function fs(){lo.call(this),this.name="Linking",this.V={},this.F=null,this.K=Xh,this.Xd=null}ye(fs,lo),fs.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return a.isReadOnly||a.isModelReadOnly||!a.allowLink||!a.model.xs()||!a.lastInput.left||a.currentTool!==this&&!this.isBeyondDragSize()?!1:this.findLinkablePort()!==null},fs.prototype.findLinkablePort=function(){var a=this.diagram,y=this.startObject;if(y===null&&(y=a.ic(a.firstInput.documentPoint,null,null)),y===null||(a=y.part,!(a instanceof bi)))return null;var x=this.direction;if(x===Xh||x===Vp){var E=this.findValidLinkablePort(y,!1);if(E!==null||this.startObject===a&&(E=a.port,this.findValidLinkablePort(E,!1)))return this.isForwards=!0,E}return(x===Xh||x===Gp)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},fs.prototype.doActivate=function(){var a=this.diagram,y=this.findLinkablePort();y===null?this.stopTool():(this.Ea(this.name),a.isMouseCaptured=!0,a.currentCursor=this.linkingCursor,this.isForwards?(this.temporaryToNode!==null&&(this.temporaryToNode.location=a.lastInput.documentPoint),this.originalFromPort=y,y=this.originalFromPort.part,y instanceof bi&&(this.originalFromNode=y),this.copyPortProperties(this.originalFromNode,this.originalFromPort,this.temporaryFromNode,this.temporaryFromPort,!1)):(this.temporaryFromNode!==null&&(this.temporaryFromNode.location=a.lastInput.documentPoint),this.originalToPort=y,y=this.originalToPort.part,y instanceof bi&&(this.originalToNode=y),this.copyPortProperties(this.originalToNode,this.originalToPort,this.temporaryToNode,this.temporaryToPort,!0)),a.add(this.temporaryFromNode),this.temporaryFromNode&&this.temporaryFromNode.Va(),a.add(this.temporaryToNode),this.temporaryToNode&&this.temporaryToNode.Va(),this.temporaryLink!==null&&(this.temporaryFromNode!==null&&(this.temporaryLink.fromNode=this.temporaryFromNode),this.temporaryToNode!==null&&(this.temporaryLink.toNode=this.temporaryToNode),this.temporaryLink.isTreeLink=this.isNewTreeLink(),this.temporaryLink.bb(),a.add(this.temporaryLink)),this.isActive=!0)},fs.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;a.remove(this.temporaryLink),a.remove(this.temporaryFromNode),a.remove(this.temporaryToNode),a.isMouseCaptured=!1,a.currentCursor="",this.stopTransaction()},fs.prototype.doStop=function(){lo.prototype.doStop.call(this),this.startObject=null},fs.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=this.transactionResult=null,x=null,E=null,b=null,z=null;try{var tt=this.targetPort=this.findTargetPort(this.isForwards);if(tt!==null){var rt=tt.part;rt instanceof bi&&(this.isForwards?(this.originalFromNode!==null&&(y=this.originalFromNode,x=this.originalFromPort),E=rt,b=tt):(y=rt,x=tt,this.originalToNode!==null&&(E=this.originalToNode,b=this.originalToPort)))}else this.isForwards?this.originalFromNode!==null&&this.isUnconnectedLinkValid&&(y=this.originalFromNode,x=this.originalFromPort):this.originalToNode!==null&&this.isUnconnectedLinkValid&&(E=this.originalToNode,b=this.originalToPort);y!==null||E!==null?(z=this.insertLink(y,x,E,b),z!==null?(tt===null&&(this.isForwards?z.defaultToPoint=a.lastInput.documentPoint:z.defaultFromPoint=a.lastInput.documentPoint),a.allowSelect&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),z.isSelected=!0),this.transactionResult=this.name,a.R("LinkDrawn",z)):this.doNoLink(y,x,E,b)):this.isForwards?this.doNoLink(this.originalFromNode,this.originalFromPort,null,null):this.doNoLink(null,null,this.originalToNode,this.originalToPort)}finally{this.stopTool(),z&&a.allowSelect&&a.R("ChangedSelection",a.selection)}}},fs.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof di)return a.isTreeLink;var y=this.diagram;return y===null?!0:(a=y.partManager.getLinkCategoryForData(a),y=y.partManager.findLinkTemplateForCategory(a),y!==null?y.isTreeLink:!0)},fs.prototype.insertLink=function(a,y,x,E){return this.diagram.partManager.insertLink(a,y,x,E)},fs.prototype.doNoLink=function(){},xe.Object.defineProperties(fs.prototype,{archetypeLinkData:{get:function(){return this.V},set:function(a){this.V=a}},archetypeLabelNodeData:{get:function(){return this.F},set:function(a){this.F=a}},direction:{get:function(){return this.K},set:function(a){this.K=a}},startObject:{get:function(){return this.Xd},set:function(a){this.Xd=a}}});var Xh=new dn(fs,"Either",0),Vp=new dn(fs,"ForwardsOnly",0),Gp=new dn(fs,"BackwardsOnly",0);fs.className="LinkingTool",fs.Either=Xh,fs.ForwardsOnly=Vp,fs.BackwardsOnly=Gp;function sl(){lo.call(this),this.name="Relinking";var a=new Wr;a.figure="Diamond",a.desiredSize=Ye,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new Wr,a.figure="Diamond",a.desiredSize=Ye,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new ue}ye(sl,lo),sl.prototype.updateAdornments=function(a){if(a!==null&&a instanceof di){var y="RelinkFrom",x=null;if(a.isSelected&&!this.diagram.isReadOnly){var E=a.selectionObject;E!==null&&a.canRelinkFrom()&&a.actualBounds.w()&&a.isVisible()&&E.actualBounds.w()&&E.Ed()&&(x=a.Pj(y),x===null&&(x=this.makeAdornment(E,!1),a.bh(y,x)))}x===null&&a.Jf(y),y="RelinkTo",x=null,a.isSelected&&!this.diagram.isReadOnly&&(E=a.selectionObject,E!==null&&a.canRelinkTo()&&a.actualBounds.w()&&a.isVisible()&&E.actualBounds.w()&&E.Ed()&&(x=a.Pj(y),x===null?(x=this.makeAdornment(E,!0),a.bh(y,x)):x.v())),x===null&&a.Jf(y)}},sl.prototype.makeAdornment=function(a,y){var x=new uo;return x.type=ei.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},sl.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowRelink||!a.model.xs()||!a.lastInput.left)return!1;var y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkFrom");return y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkTo")),y!==null},sl.prototype.doActivate=function(){var a=this.diagram;if(this.originalLink===null){var y=this.handle;if(y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkFrom"),y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkTo"))),y===null)return;var x=y.part;if(!(x instanceof uo&&x.adornedPart instanceof di))return;this.handle=y,this.isForwards=x===null||x.category==="RelinkTo",this.originalLink=x.adornedPart}this.Ea(this.name),a.isMouseCaptured=!0,a.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),this.originalLink!==null&&0<this.originalLink.pointsCount&&(this.originalLink.fromNode===null&&(this.temporaryFromPort!==null&&(this.temporaryFromPort.desiredSize=ae),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=ae),this.temporaryToNode!==null&&(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),a.add(this.temporaryFromNode),a.add(this.temporaryToNode),this.temporaryLink!==null&&(this.temporaryFromNode!==null&&(this.temporaryLink.fromNode=this.temporaryFromNode),this.temporaryToNode!==null&&(this.temporaryLink.toNode=this.temporaryToNode),this.copyLinkProperties(this.originalLink,this.temporaryLink),this.temporaryLink.bb(),a.add(this.temporaryLink)),this.isActive=!0},sl.prototype.copyLinkProperties=function(a,y){if(a!==null&&y!==null){y.adjusting=a.adjusting,y.corner=a.corner;var x=a.curve;(x===Zf||x===Th)&&(x=ks),y.curve=x,y.curviness=a.curviness,y.isTreeLink=a.isTreeLink,y.points=a.points,y.routing=a.routing,y.smoothness=a.smoothness,y.fromSpot=a.fromSpot,y.fromEndSegmentLength=a.fromEndSegmentLength,y.fromShortLength=a.fromShortLength,y.toSpot=a.toSpot,y.toEndSegmentLength=a.toEndSegmentLength,y.toShortLength=a.toShortLength}},sl.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;a.remove(this.temporaryLink),a.remove(this.temporaryFromNode),a.remove(this.temporaryToNode),a.isMouseCaptured=!1,a.currentCursor="",this.stopTransaction()},sl.prototype.doStop=function(){lo.prototype.doStop.call(this),this.handle=null},sl.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram;this.transactionResult=null;var y=this.originalFromNode,x=this.originalFromPort,E=this.originalToNode,b=this.originalToPort,z=this.originalLink;try{if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null){var tt=this.targetPort.part;tt instanceof bi&&(this.isForwards?(E=tt,b=this.targetPort):(y=tt,x=this.targetPort))}else this.isUnconnectedLinkValid?this.isForwards?b=E=null:x=y=null:z=null;z!==null?(this.reconnectLink(z,this.isForwards?E:y,this.isForwards?b:x,this.isForwards),this.targetPort===null&&(this.isForwards?z.defaultToPoint=a.lastInput.documentPoint:z.defaultFromPoint=a.lastInput.documentPoint,z.bb()),this.transactionResult=this.name,a.R("LinkRelinked",z,this.isForwards?this.originalToPort:this.originalFromPort)):this.doNoRelink(this.originalLink,this.isForwards),this.originalLink.Xo(this.Ew)}finally{this.stopTool()}}},sl.prototype.reconnectLink=function(a,y,x,E){return x=x!==null&&x.portId!==null?x.portId:"",E?(a.toNode=y,a.toPortId=x):(a.fromNode=y,a.fromPortId=x),!0},sl.prototype.doNoRelink=function(){};function rf(a,y,x,E,b){y!==null?(a.copyPortProperties(y,x,a.temporaryFromNode,a.temporaryFromPort,!1),a.diagram.add(a.temporaryFromNode)):a.diagram.remove(a.temporaryFromNode),E!==null?(a.copyPortProperties(E,b,a.temporaryToNode,a.temporaryToPort,!0),a.diagram.add(a.temporaryToNode)):a.diagram.remove(a.temporaryToNode)}xe.Object.defineProperties(sl.prototype,{fromHandleArchetype:{get:function(){return this.V},set:function(a){this.V=a}},toHandleArchetype:{get:function(){return this.Xd},set:function(a){this.Xd=a}},handle:{get:function(){return this.F},set:function(a){if(a!==null&&!(a.part instanceof uo))throw Error("new handle is not in an Adornment: "+a);this.F=a}}}),sl.className="RelinkingTool",zi("linkingTool",function(){return this.findTool("Linking")},function(a){this.gb("Linking",a,this.mouseMoveTools)}),zi("relinkingTool",function(){return this.findTool("Relinking")},function(a){this.gb("Relinking",a,this.mouseDownTools)});function Pa(){eo.call(this),this.name="LinkReshaping";var a=new Wr;a.figure="Rectangle",a.desiredSize=je,a.fill="lightblue",a.stroke="dodgerblue",this.o=a,a=new Wr,a.figure="Diamond",a.desiredSize=Ye,a.fill="lightblue",a.stroke="dodgerblue",a.cursor="move",this.u=a,this.F=3,this.Ts=this.j=null,this.Fw=new Bt,this.Yq=new cn}ye(Pa,eo),Pa.prototype.Ru=function(a){return a&&a.reshapingBehavior.value!==0?a.reshapingBehavior:fg},Pa.prototype.om=function(a,y){a.reshapingBehavior=y},Pa.prototype.updateAdornments=function(a){if(a!==null&&a instanceof di){var y=null;if(a.isSelected&&!this.diagram.isReadOnly){var x=a.path;x!==null&&a.canReshape()&&a.actualBounds.w()&&a.isVisible()&&x.actualBounds.w()&&x.Ed()&&(y=a.Pj(this.name),y===null||y.Aw!==a.pointsCount||y.Uw!==a.resegmentable)&&(y=this.makeAdornment(x),y!==null&&(y.Aw=a.pointsCount,y.Uw=a.resegmentable,a.bh(this.name,y)))}y===null&&a.Jf(this.name)}},Pa.prototype.makeAdornment=function(a){var y=a.part,x=y.pointsCount,E=y.isOrthogonal,b=null;if(y.points!==null&&1<x){b=new uo,b.type=ei.Link,x=y.firstPickIndex;var z=y.lastPickIndex,tt=E?1:0;if(y.resegmentable&&y.computeCurve()!==cl)for(var rt=x+tt;rt<z-tt;rt++){var ot=this.makeResegmentHandle(a,rt);ot!==null&&(ot.segmentIndex=rt,ot.segmentFraction=.5,ot.fromMaxLinks=999,b.add(ot))}for(tt=x+1;tt<z;tt++)if(rt=this.makeHandle(a,tt),rt!==null){if(rt.segmentIndex=tt,tt!==x)if(tt===x+1&&E){ot=y.i(x);var st=y.i(x+1);me.B(ot.x,st.x)&&me.B(ot.y,st.y)&&(st=y.i(x-1)),me.B(ot.x,st.x)?(this.om(rt,vh),rt.cursor="n-resize"):me.B(ot.y,st.y)&&(this.om(rt,mh),rt.cursor="w-resize")}else tt===z-1&&E?(ot=y.i(z-1),st=y.i(z),me.B(ot.x,st.x)&&me.B(ot.y,st.y)&&(ot=y.i(z+1)),me.B(ot.x,st.x)?(this.om(rt,vh),rt.cursor="n-resize"):me.B(ot.y,st.y)&&(this.om(rt,mh),rt.cursor="w-resize")):tt!==z&&(this.om(rt,of),rt.cursor="move");b.add(rt)}b.adornedObject=a}return b},Pa.prototype.makeHandle=function(){var a=this.handleArchetype;return a===null?null:a.copy()},Pa.prototype.makeResegmentHandle=function(){var a=this.midHandleArchetype;return a===null?null:a.copy()},Pa.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!a.isReadOnly&&a.allowReshape&&a.lastInput.left?this.findToolHandleAt(a.firstInput.documentPoint,this.name)!==null:!1},Pa.prototype.doActivate=function(){var a=this.diagram;if(this.handle===null&&(this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name)),this.handle!==null){var y=this.handle.part.adornedPart;if(y instanceof di){if(this.Ts=y,a.isMouseCaptured=!0,this.Ea(this.name),y.resegmentable&&this.handle.fromMaxLinks===999){var x=y.points.copy(),E=this.getResegmentingPoint();if(x.Gb(this.handle.segmentIndex+1,E),y.isOrthogonal&&x.Gb(this.handle.segmentIndex+1,E),y.points=x,y.Wb(),y.updateAdornments(),this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name),this.handle===null){this.doDeactivate();return}}this.Fw=y.i(this.handle.segmentIndex),this.Yq=y.points.copy(),this.isActive=!0}}},Pa.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},Pa.prototype.stopTransaction=function(){var a=this.diagram,y=eo.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Pa.prototype.doCancel=function(){var a=this.adornedLink;a!==null&&(a.points=this.Yq),this.stopTool()},Pa.prototype.getResegmentingPoint=function(){return this.handle.ga(Ri)},Pa.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeReshape(a.lastInput.documentPoint),this.reshape(a))},Pa.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.computeReshape(a.lastInput.documentPoint);if(this.reshape(y),y=this.adornedLink,y!==null&&y.resegmentable){var x=this.handle.segmentIndex,E=y.i(x-1),b=y.i(x),z=y.i(x+1);if(y.isOrthogonal){if(x>y.firstPickIndex+1&&x<y.lastPickIndex-1){var tt=y.i(x-2);if(Math.abs(E.x-b.x)<this.resegmentingDistance&&Math.abs(E.y-b.y)<this.resegmentingDistance&&(ph(this,tt,E,b,z,!0)||ph(this,tt,E,b,z,!1))){var rt=y.points.copy();ph(this,tt,E,b,z,!0)?(rt.cd(x-2,new Bt(tt.x,(z.y+tt.y)/2)),rt.cd(x+1,new Bt(z.x,(z.y+tt.y)/2))):(rt.cd(x-2,new Bt((z.x+tt.x)/2,tt.y)),rt.cd(x+1,new Bt((z.x+tt.x)/2,z.y))),rt.mb(x),rt.mb(x-1),y.points=rt,y.Wb()}else tt=y.i(x+2),Math.abs(b.x-z.x)<this.resegmentingDistance&&Math.abs(b.y-z.y)<this.resegmentingDistance&&(ph(this,E,b,z,tt,!0)||ph(this,E,b,z,tt,!1))&&(rt=y.points.copy(),ph(this,E,b,z,tt,!0)?(rt.cd(x-1,new Bt(E.x,(E.y+tt.y)/2)),rt.cd(x+2,new Bt(tt.x,(E.y+tt.y)/2))):(rt.cd(x-1,new Bt((E.x+tt.x)/2,E.y)),rt.cd(x+2,new Bt((E.x+tt.x)/2,tt.y))),rt.mb(x+1),rt.mb(x),y.points=rt,y.Wb())}}else tt=Bt.alloc(),me.qh(E.x,E.y,z.x,z.y,b.x,b.y,tt)&&tt.Bf(b)<this.resegmentingDistance*this.resegmentingDistance&&(E=y.points.copy(),E.mb(x),y.points=E,y.Wb()),Bt.free(tt)}a.Ya(),this.transactionResult=this.name,a.R("LinkReshaped",this.adornedLink,this.Yq)}this.stopTool()};function ph(a,y,x,E,b,z){return z?Math.abs(y.y-x.y)<a.resegmentingDistance&&Math.abs(x.y-E.y)<a.resegmentingDistance&&Math.abs(E.y-b.y)<a.resegmentingDistance:Math.abs(y.x-x.x)<a.resegmentingDistance&&Math.abs(x.x-E.x)<a.resegmentingDistance&&Math.abs(E.x-b.x)<a.resegmentingDistance}Pa.prototype.reshape=function(a){var y=this.adornedLink;y.uh();var x=this.handle.segmentIndex,E=this.Ru(this.handle);if(y.isOrthogonal)if(x===y.firstPickIndex+1)x=y.firstPickIndex+1,E===vh?(y.L(x,y.i(x-1).x,a.y),y.L(x+1,y.i(x+2).x,a.y)):E===mh&&(y.L(x,a.x,y.i(x-1).y),y.L(x+1,a.x,y.i(x+2).y));else if(x===y.lastPickIndex-1)x=y.lastPickIndex-1,E===vh?(y.L(x-1,y.i(x-2).x,a.y),y.L(x,y.i(x+1).x,a.y)):E===mh&&(y.L(x-1,a.x,y.i(x-2).y),y.L(x,a.x,y.i(x+1).y));else{E=x;var b=y.i(E),z=y.i(E-1),tt=y.i(E+1);me.B(z.x,b.x)&&me.B(b.y,tt.y)?(me.B(z.x,y.i(E-2).x)&&!me.B(z.y,y.i(E-2).y)?(y.m(E,a.x,z.y),x++,E++):y.L(E-1,a.x,z.y),me.B(tt.y,y.i(E+2).y)&&!me.B(tt.x,y.i(E+2).x)?y.m(E+1,tt.x,a.y):y.L(E+1,tt.x,a.y)):me.B(z.y,b.y)&&me.B(b.x,tt.x)?(me.B(z.y,y.i(E-2).y)&&!me.B(z.x,y.i(E-2).x)?(y.m(E,z.x,a.y),x++,E++):y.L(E-1,z.x,a.y),me.B(tt.x,y.i(E+2).x)&&!me.B(tt.y,y.i(E+2).y)?y.m(E+1,a.x,tt.y):y.L(E+1,a.x,tt.y)):me.B(z.x,b.x)&&me.B(b.x,tt.x)?(me.B(z.x,y.i(E-2).x)&&!me.B(z.y,y.i(E-2).y)?(y.m(E,a.x,z.y),x++,E++):y.L(E-1,a.x,z.y),me.B(tt.x,y.i(E+2).x)&&!me.B(tt.y,y.i(E+2).y)?y.m(E+1,a.x,tt.y):y.L(E+1,a.x,tt.y)):me.B(z.y,b.y)&&me.B(b.y,tt.y)&&(me.B(z.y,y.i(E-2).y)&&!me.B(z.x,y.i(E-2).x)?(y.m(E,z.x,a.y),x++,E++):y.L(E-1,z.x,a.y),me.B(tt.y,y.i(E+2).y)&&!me.B(tt.x,y.i(E+2).x)?y.m(E+1,tt.x,a.y):y.L(E+1,tt.x,a.y)),y.L(x,a.x,a.y)}else y.L(x,a.x,a.y),E=y.fromNode,b=y.fromPort,E!==null&&(z=E.findVisibleNode(),z!==null&&z!==E&&(E=z,b=E.port)),x===1&&y.computeSpot(!0,b).Mc()&&(z=b.ga(Ri,Bt.alloc()),E=y.getLinkPointFromPoint(E,b,z,a,!0,Bt.alloc()),y.L(0,E.x,E.y),Bt.free(z),Bt.free(E)),E=y.toNode,b=y.toPort,E!==null&&(z=E.findVisibleNode(),z!==null&&z!==E&&(E=z,b=E.port)),x===y.pointsCount-2&&y.computeSpot(!1,b).Mc()&&(x=b.ga(Ri,Bt.alloc()),a=y.getLinkPointFromPoint(E,b,x,a,!1,Bt.alloc()),y.L(y.pointsCount-1,a.x,a.y),Bt.free(x),Bt.free(a));y.zf()},Pa.prototype.computeReshape=function(a){var y=this.adornedLink,x=this.handle.segmentIndex;switch(this.Ru(this.handle)){case of:return a;case vh:return new Bt(y.i(x).x,a.y);case mh:return new Bt(a.x,y.i(x).y);default:case fg:return y.i(x)}},xe.Object.defineProperties(Pa.prototype,{handleArchetype:{get:function(){return this.o},set:function(a){this.o=a}},midHandleArchetype:{get:function(){return this.u},set:function(a){this.u=a}},handle:{get:function(){return this.j},set:function(a){if(a!==null&&!(a.part instanceof uo))throw Error("new handle is not in an Adornment: "+a);this.j=a}},adornedLink:{get:function(){return this.Ts}},resegmentingDistance:{get:function(){return this.F},set:function(a){this.F=a}},originalPoint:{get:function(){return this.Fw}},originalPoints:{get:function(){return this.Yq}}}),Pa.prototype.setReshapingBehavior=Pa.prototype.om,Pa.prototype.getReshapingBehavior=Pa.prototype.Ru;var fg=new dn(Pa,"None",0),mh=new dn(Pa,"Horizontal",1),vh=new dn(Pa,"Vertical",2),of=new dn(Pa,"All",3);Pa.className="LinkReshapingTool",Pa.None=fg,Pa.Horizontal=mh,Pa.Vertical=vh,Pa.All=of,zi("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(a){this.gb("LinkReshaping",a,this.mouseDownTools)});function us(){eo.call(this),this.name="Resizing",this.o=new zt(1,1).freeze(),this.j=new zt(9999,9999).freeze(),this.yg=new zt(NaN,NaN).freeze(),this.V=!1,this.ia=!0,this.ue=null;var a=new Wr;a.alignmentFocus=Ri,a.figure="Rectangle",a.desiredSize=je,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.F=a,this.u=null,this.Xq=new Bt,this.Dw=new zt,this.Tn=new Bt,this.rt=new zt(0,0),this.qt=new zt(1/0,1/0),this.pt=new zt(1,1)}ye(us,eo),us.prototype.updateAdornments=function(a){if(!(a===null||a instanceof di)){if(a.isSelected&&!this.diagram.isReadOnly){var y=a.resizeObject,x=a.Pj(this.name);if(y!==null&&a.canResize()&&a.actualBounds.w()&&a.isVisible()&&y.actualBounds.w()&&y.Ed()&&((x===null||x.adornedObject!==y)&&(x=this.makeAdornment(y)),x!==null)){y=y.li(),dd(a)&&this.updateResizeHandles(x,y),a.bh(this.name,x);return}}a.Jf(this.name)}},us.prototype.makeAdornment=function(a){var y=a.part.resizeAdornmentTemplate;if(y===null){y=new uo,y.type=ei.Spot,y.locationSpot=Ri;var x=new Ms;x.isPanelMain=!0,y.add(x),y.add(this.makeHandle(a,ar)),y.add(this.makeHandle(a,Br)),y.add(this.makeHandle(a,jr)),y.add(this.makeHandle(a,Yr)),y.add(this.makeHandle(a,Fo)),y.add(this.makeHandle(a,vo)),y.add(this.makeHandle(a,Go)),y.add(this.makeHandle(a,yo))}else if(jl(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},us.prototype.makeHandle=function(a,y){return a=this.handleArchetype,a===null?null:(a=a.copy(),a.alignment=y,a)},us.prototype.updateResizeHandles=function(a,y){if(a!==null){if(!a.alignment.Xb()&&(a.cursor==="pointer"||0<a.cursor.indexOf("resize")))t:{var x=a.alignment;if(x.Mc()&&(x=Ri),0>=x.x)y=0>=x.y?y+225:1<=x.y?y+135:y+180;else if(1<=x.x)0>=x.y?y+=315:1<=x.y&&(y+=45);else if(0>=x.y)y+=270;else if(1<=x.y)y+=90;else break t;0>y?y+=360:360<=y&&(y-=360),a.cursor=22.5>y?"e-resize":67.5>y?"se-resize":112.5>y?"s-resize":157.5>y?"sw-resize":202.5>y?"w-resize":247.5>y?"nw-resize":292.5>y?"n-resize":337.5>y?"ne-resize":"e-resize"}else if(a instanceof ei)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},us.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!a.isReadOnly&&a.allowResize&&a.lastInput.left?this.findToolHandleAt(a.firstInput.documentPoint,this.name)!==null:!1},us.prototype.doActivate=function(){var a=this.diagram;this.handle===null&&(this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name)),this.handle!==null&&(this.adornedObject=this.handle.part.adornedObject,this.adornedObject!==null&&(a.isMouseCaptured=!0,a.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))},us.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},us.prototype.stopTransaction=function(){var a=this.diagram,y=eo.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},us.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},us.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,E=this.pt,b=this.adornedObject.qs(a.lastInput.documentPoint,Bt.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,x,E,z),this.resize(y),a.bd(),Bt.free(b)}},us.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,E=this.pt,b=this.adornedObject.qs(a.lastInput.documentPoint,Bt.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,x,E,z),this.resize(y),Bt.free(b),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},us.prototype.resize=function(a){var y=this.diagram,x=this.adornedObject;if(x!==null){if(x.desiredSize=a.size,a=x.part,a.Va(),x=x.ga(this.handle.alignment.gv()),a instanceof Tr){var E=new cn;if(E.add(a),!this.dragsMembers&&a.placeholder===null){var b=new at;b.dragsMembers=!1}y.moveParts(E,this.oppositePoint.copy().re(x),!0,b)}else a.location=a.location.copy().re(x).add(this.oppositePoint);y.bd()}},us.prototype.computeResize=function(a,y,x,E,b,z){y.Mc()&&(y=Ri);var tt=this.adornedObject.naturalBounds,rt=tt.x,ot=tt.y,st=tt.x+tt.width,ut=tt.y+tt.height,ft=1;if(!z){ft=tt.width;var vt=tt.height;0>=ft&&(ft=1),0>=vt&&(vt=1),ft=vt/ft}return vt=Bt.alloc(),me.No(a.x,a.y,rt,ot,b.width,b.height,vt),a=tt.copy(),0>=y.x?0>=y.y?(a.x=Math.max(vt.x,st-E.width),a.x=Math.min(a.x,st-x.width),a.width=Math.max(st-a.x,x.width),a.y=Math.max(vt.y,ut-E.height),a.y=Math.min(a.y,ut-x.height),a.height=Math.max(ut-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ft*a.width,E.height),x.height),a.width=a.height/ft):(a.width=Math.max(Math.min(a.height/ft,E.width),x.width),a.height=ft*a.width),a.x=st-a.width,a.y=ut-a.height)):1<=y.y?(a.x=Math.max(vt.x,st-E.width),a.x=Math.min(a.x,st-x.width),a.width=Math.max(st-a.x,x.width),a.height=Math.max(Math.min(vt.y-ot,E.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ft*a.width,E.height),x.height),a.width=a.height/ft):(a.width=Math.max(Math.min(a.height/ft,E.width),x.width),a.height=ft*a.width),a.x=st-a.width)):(a.x=Math.max(vt.x,st-E.width),a.x=Math.min(a.x,st-x.width),a.width=st-a.x,z||(a.height=Math.max(Math.min(ft*a.width,E.height),x.height),a.width=a.height/ft,a.y=ot+.5*(ut-ot-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(vt.x-rt,E.width),x.width),a.y=Math.max(vt.y,ut-E.height),a.y=Math.min(a.y,ut-x.height),a.height=Math.max(ut-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ft*a.width,E.height),x.height),a.width=a.height/ft):(a.width=Math.max(Math.min(a.height/ft,E.width),x.width),a.height=ft*a.width),a.y=ut-a.height)):1<=y.y?(a.width=Math.max(Math.min(vt.x-rt,E.width),x.width),a.height=Math.max(Math.min(vt.y-ot,E.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ft*a.width,E.height),x.height),a.width=a.height/ft):(a.width=Math.max(Math.min(a.height/ft,E.width),x.width),a.height=ft*a.width))):(a.width=Math.max(Math.min(vt.x-rt,E.width),x.width),z||(a.height=Math.max(Math.min(ft*a.width,E.height),x.height),a.width=a.height/ft,a.y=ot+.5*(ut-ot-a.height))):0>=y.y?(a.y=Math.max(vt.y,ut-E.height),a.y=Math.min(a.y,ut-x.height),a.height=ut-a.y,z||(a.width=Math.max(Math.min(a.height/ft,E.width),x.width),a.height=ft*a.width,a.x=rt+.5*(st-rt-a.width))):1<=y.y&&(a.height=Math.max(Math.min(vt.y-ot,E.height),x.height),z||(a.width=Math.max(Math.min(a.height/ft,E.width),x.width),a.height=ft*a.width,a.x=rt+.5*(st-rt-a.width))),Bt.free(vt),a},us.prototype.computeReshape=function(){var a=Hn;return this.adornedObject instanceof Wr&&(a=Mv(this.adornedObject)),!(a===Yi||this.diagram.lastInput.shift)},us.prototype.computeMinSize=function(){var a=this.adornedObject.minSize.copy(),y=this.minSize;return!isNaN(y.width)&&y.width>a.width&&(a.width=y.width),!isNaN(y.height)&&y.height>a.height&&(a.height=y.height),a},us.prototype.computeMaxSize=function(){var a=this.adornedObject.maxSize.copy(),y=this.maxSize;return!isNaN(y.width)&&y.width<a.width&&(a.width=y.width),!isNaN(y.height)&&y.height<a.height&&(a.height=y.height),a},us.prototype.computeCellSize=function(){var a=new zt(NaN,NaN),y=this.adornedObject.part;return y!==null&&(y=y.resizeCellSize,!isNaN(y.width)&&0<y.width&&(a.width=y.width),!isNaN(y.height)&&0<y.height&&(a.height=y.height)),y=this.cellSize,isNaN(a.width)&&!isNaN(y.width)&&0<y.width&&(a.width=y.width),isNaN(a.height)&&!isNaN(y.height)&&0<y.height&&(a.height=y.height),y=this.diagram,(isNaN(a.width)||isNaN(a.height))&&y&&(y=y.grid,y!==null&&y.visible&&this.isGridSnapEnabled&&(y=y.gridCellSize,isNaN(a.width)&&!isNaN(y.width)&&0<y.width&&(a.width=y.width),isNaN(a.height)&&!isNaN(y.height)&&0<y.height&&(a.height=y.height))),(isNaN(a.width)||a.width===0||a.width===1/0)&&(a.width=1),(isNaN(a.height)||a.height===0||a.height===1/0)&&(a.height=1),a},xe.Object.defineProperties(us.prototype,{handleArchetype:{get:function(){return this.F},set:function(a){this.F=a}},handle:{get:function(){return this.u},set:function(a){if(a!==null&&!(a.part instanceof uo))throw Error("new handle is not in an Adornment: "+a);this.u=a}},adornedObject:{get:function(){return this.ue},set:function(a){if(a!==null&&a.part instanceof uo)throw Error("new handle must not be in an Adornment: "+a);this.ue=a}},minSize:{get:function(){return this.o},set:function(a){if(!this.o.D(a)){var y=a.width;isNaN(y)&&(y=0),a=a.height,isNaN(a)&&(a=0),this.o.h(y,a)}}},maxSize:{get:function(){return this.j},set:function(a){if(!this.j.D(a)){var y=a.width;isNaN(y)&&(y=1/0),a=a.height,isNaN(a)&&(a=1/0),this.j.h(y,a)}}},cellSize:{get:function(){return this.yg},set:function(a){this.yg.D(a)||this.yg.assign(a)}},isGridSnapEnabled:{get:function(){return this.V},set:function(a){this.V=a}},dragsMembers:{get:function(){return this.ia},set:function(a){this.ia=a}},oppositePoint:{get:function(){return this.Xq},set:function(a){this.Xq.D(a)||this.Xq.assign(a)}},originalDesiredSize:{get:function(){return this.Dw}},originalLocation:{get:function(){return this.Tn}}}),us.className="ResizingTool",zi("resizingTool",function(){return this.findTool("Resizing")},function(a){this.gb("Resizing",a,this.mouseDownTools)});function Cs(){eo.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new Bt,this.ue=null;var a=new Wr;a.figure="Ellipse",a.desiredSize=Ye,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.o=a,this.j=null,this.Cw=0,this.kr=new Bt(NaN,NaN),this.u=0,this.F=50}ye(Cs,eo),Cs.prototype.updateAdornments=function(a){if(a!==null){if(a.ph()){var y=a.rotateObject;if(y===a||y===a.path||y.isPanelMain)return}if(a.isSelected&&!this.diagram.isReadOnly&&(y=a.rotateObject,y!==null&&a.canRotate()&&a.actualBounds.w()&&a.isVisible()&&y.actualBounds.w()&&y.Ed())){var x=a.Pj(this.name);if((x===null||x.adornedObject!==y)&&(x=this.makeAdornment(y)),x!==null){x.angle=y.li(),x.placeholder===null&&(x.location=this.computeAdornmentLocation(y)),a.bh(this.name,x);return}}a.Jf(this.name)}},Cs.prototype.makeAdornment=function(a){var y=a.part.rotateAdornmentTemplate;if(y===null){y=new uo,y.type=ei.Position,y.locationSpot=Ri;var x=this.handleArchetype;x!==null&&y.add(x.copy())}else if(jl(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},Cs.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!a.isReadOnly&&a.allowRotate&&a.lastInput.left?this.findToolHandleAt(a.firstInput.documentPoint,this.name)!==null:!1},Cs.prototype.doActivate=function(){var a=this.diagram;if(this.adornedObject===null){if(this.handle===null&&(this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name)),this.handle===null)return;this.adornedObject=this.handle.part.adornedObject}this.adornedObject!==null&&(a.isMouseCaptured=!0,a.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)},Cs.prototype.computeRotationPoint=function(a){var y=a.part,x=y.locationObject;return y.rotationSpot.sb()?a.ga(y.rotationSpot):a===y||a===x?x.ga(y.locationSpot):a.ga(Ri)},Cs.prototype.computeAdornmentLocation=function(a){var y=this.rotationPoint;y.w()||(y=this.computeRotationPoint(a)),y=a.qs(y);var x=this.handleAngle;0>x?x+=360:360<=x&&(x-=360),x=Math.round(45*Math.round(x/45));var E=this.handleDistance;return x===0?y.x=a.naturalBounds.width+E:x===45?(y.x=a.naturalBounds.width+E,y.y=a.naturalBounds.height+E):x===90?y.y=a.naturalBounds.height+E:x===135?(y.x=-E,y.y=a.naturalBounds.height+E):x===180?y.x=-E:x===225?(y.x=-E,y.y=-E):x===270?y.y=-E:x===315&&(y.x=a.naturalBounds.width+E,y.y=-E),a.ga(y)},Cs.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new Bt(NaN,NaN),this.isActive=a.isMouseCaptured=!1},Cs.prototype.stopTransaction=function(){var a=this.diagram,y=eo.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Cs.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},Cs.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},Cs.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){a.delaysLayout=!1;var y=this.computeRotate(a.lastInput.documentPoint);this.rotate(y),a.Ya(),this.transactionResult=this.name,a.R("PartRotated",this.adornedObject,this.originalAngle)}this.stopTool()},Cs.prototype.rotate=function(a){var y=this.adornedObject;if(y!==null){y.angle=a,y=y.part,y.Va();var x=y.locationObject,E=y.rotateObject;(x===E||x.rg(E))&&(x=this.Tn.copy(),y.location=x.re(this.rotationPoint).rotate(a-this.originalAngle).add(this.rotationPoint)),this.diagram.bd()}},Cs.prototype.computeRotate=function(a){a=this.rotationPoint.ab(a)-this.handleAngle;var y=this.adornedObject.panel;y!==null&&(a-=y.li()),360<=a?a-=360:0>a&&(a+=360),y=Math.min(Math.abs(this.snapAngleMultiple),180);var x=Math.min(Math.abs(this.snapAngleEpsilon),y/2);return!this.diagram.lastInput.shift&&0<y&&0<x&&(a%y<x?a=Math.floor(a/y)*y:a%y>y-x&&(a=(Math.floor(a/y)+1)*y)),360<=a?a-=360:0>a&&(a+=360),a},xe.Object.defineProperties(Cs.prototype,{handleArchetype:{get:function(){return this.o},set:function(a){this.o=a}},handle:{get:function(){return this.j},set:function(a){if(a!==null&&!(a.part instanceof uo))throw Error("new handle is not in an Adornment: "+a);this.j=a}},adornedObject:{get:function(){return this.ue},set:function(a){if(a!==null&&a.part instanceof uo)throw Error("new handle must not be in an Adornment: "+a);this.ue=a}},snapAngleMultiple:{get:function(){return this.ia},set:function(a){this.ia=a}},snapAngleEpsilon:{get:function(){return this.V},set:function(a){this.V=a}},originalAngle:{get:function(){return this.Cw}},rotationPoint:{get:function(){return this.kr},set:function(a){this.kr=a.copy()}},handleAngle:{get:function(){return this.u},set:function(a){this.u=a}},handleDistance:{get:function(){return this.F},set:function(a){this.F=a}}}),Cs.className="RotatingTool",zi("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function _h(){eo.call(this),this.name="ClickSelecting"}ye(_h,eo),_h.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},_h.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},_h.className="ClickSelectingTool";function Tl(){eo.call(this),this.name="Action",this.pk=null}ye(Tl,eo),Tl.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram,y=a.lastInput,x=a.ic(y.documentPoint,function(E){for(;E.panel!==null&&!E.isActionable;)E=E.panel;return E});return x!==null&&x.isActionable?(this.pk=x,a.Ck=a.ic(y.documentPoint,null,null),!0):!1},Tl.prototype.doMouseDown=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionDown!==null&&y.actionDown(a,y))}else this.canStart()&&this.doActivate()},Tl.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionMove!==null&&y.actionMove(a,y))}},Tl.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;if(y===null)return;a.targetObject=y,y.actionUp!==null&&y.actionUp(a,y),this.standardMouseClick(function(x){for(;x.panel!==null&&(!x.isActionable||x!==y);)x=x.panel;return x},function(x){return x===y})}this.stopTool()},Tl.prototype.doCancel=function(){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionCancel!==null&&y.actionCancel(a,y),this.stopTool())},Tl.prototype.doStop=function(){this.pk=null},Tl.className="ActionTool";function yh(){eo.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new Bt(0,0)}ye(yh,eo),yh.prototype.canStart=function(){if(!this.isEnabled||this.archetypeNodeData===null)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.lastInput.left||this.isBeyondDragSize())return!1;if(this.isDoubleClick){if(a.lastInput.clickCount===1&&(this.mw=a.lastInput.viewPoint.copy()),a.lastInput.clickCount!==2||this.isBeyondDragSize(this.mw))return!1}else if(a.lastInput.clickCount!==1)return!1;return!(a.currentTool!==this&&a.Ol(a.lastInput.documentPoint,!0)!==null)},yh.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},yh.prototype.insertPart=function(a){var y=this.diagram,x=this.archetypeNodeData;if(x===null)return null;var E=null;try{if(y.R("ChangingSelection",y.selection),this.Ea(this.name),x instanceof rr)x.Zc()&&(jl(x),E=x.copy(),E!==null&&y.add(E));else if(x!==null){var b=y.model.copyNodeData(x);Ke(b)&&(y.model.xf(b),E=y.Lc(b))}if(E!==null){var z=Bt.allocAt(a.x,a.y);this.isGridSnapEnabled&&vf(this.diagram,E,a,z),E.location=z,y.allowSelect&&(y.clearSelection(!0),E.isSelected=!0),Bt.free(z)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",E)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return E},xe.Object.defineProperties(yh.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(a){this.Ri=a}},isDoubleClick:{get:function(){return this.o},set:function(a){this.o=a}},isGridSnapEnabled:{get:function(){return this.j},set:function(a){this.j=a}}}),yh.className="ClickCreatingTool";function Sl(){eo.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new rr;a.layerName="Tool",a.selectable=!1;var y=new Wr;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}ye(Sl,eo),Sl.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(!a.allowSelect)return!1;var y=a.lastInput;return!(!y.left||a.currentTool!==this&&(!this.isBeyondDragSize()||y.timestamp-a.firstInput.timestamp<this.delay||a.Ol(y.documentPoint,!0)!==null))},Sl.prototype.doActivate=function(){var a=this.diagram;this.isActive=!0,a.isMouseCaptured=!0,a.skipsUndoManager=!0,a.add(this.box),this.doMouseMove()},Sl.prototype.doDeactivate=function(){var a=this.diagram;a.ug(),a.remove(this.box),a.skipsUndoManager=!1,this.isActive=a.isMouseCaptured=!1},Sl.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive&&this.box!==null){var y=this.computeBoxBounds(),x=this.box.fb("SHAPE");x===null&&(x=this.box.Pb());var E=zt.alloc().h(y.width,y.height);x.desiredSize=E,this.box.mm(y.x,y.y,!1),zt.free(E),(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},Sl.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram;a.remove(this.box);try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),this.selectInRect(this.computeBoxBounds()),a.R("ChangedSelection",a.selection)}finally{a.currentCursor=""}}this.stopTool()},Sl.prototype.computeBoxBounds=function(){var a=this.diagram;return new ue(a.firstInput.documentPoint,a.lastInput.documentPoint)},Sl.prototype.selectInRect=function(a){var y=this.diagram,x=y.lastInput;if(a=y.ux(a,this.isPartialInclusion),Lr?x.meta:x.control)if(x.shift)for(a=a.iterator;a.next();)y=a.value,y.isSelected&&(y.isSelected=!1);else for(a=a.iterator;a.next();)y=a.value,y.isSelected=!y.isSelected;else if(x.shift)for(a=a.iterator;a.next();)y=a.value,y.isSelected||(y.isSelected=!0);else{for(x=new cn,y=y.selection.iterator;y.next();){var E=y.value;a.contains(E)||x.add(E)}for(y=x.iterator;y.next();)y.value.isSelected=!1;for(a=a.iterator;a.next();)y=a.value,y.isSelected||(y.isSelected=!0)}},xe.Object.defineProperties(Sl.prototype,{delay:{get:function(){return this.Ik},set:function(a){this.Ik=a}},isPartialInclusion:{get:function(){return this.o},set:function(a){this.o=a}},box:{get:function(){return this.j},set:function(a){this.j=a}}}),Sl.className="DragSelectingTool";function os(){eo.call(this),this.name="Panning",this.Xt=new Bt,this.xy=new Bt,this.xg=!1;var a=this;this.Kw=function(){var y=a.diagram;y!==null&&y.removeEventListener(Sn.document,"scroll",a.Kw,!1),a.stopTool()}}ye(os,eo),os.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!(!a.allowHorizontalScroll&&!a.allowVerticalScroll||!a.lastInput.left||a.currentTool!==this&&!this.isBeyondDragSize())},os.prototype.doActivate=function(){var a=this.diagram;this.xg?(a.lastInput.bubbles=!0,a.addEventListener(Sn.document,"scroll",this.Kw,!1)):(a.currentCursor="move",a.isMouseCaptured=!0,this.Xt.assign(a.position)),this.isActive=!0},os.prototype.doDeactivate=function(){var a=this.diagram;a.currentCursor="",this.isActive=a.isMouseCaptured=!1},os.prototype.doCancel=function(){var a=this.diagram;a.position=this.Xt,a.isMouseCaptured=!1,this.stopTool()},os.prototype.doMouseMove=function(){this.move()},os.prototype.doMouseUp=function(){this.move(),this.stopTool()},os.prototype.move=function(){var a=this.diagram;if(this.isActive&&a)if(this.xg)a.lastInput.bubbles=!0;else{var y=a.position,x=a.firstInput.documentPoint,E=a.lastInput.documentPoint,b=y.x+x.x-E.x;x=y.y+x.y-E.y,a.allowHorizontalScroll||(b=y.x),a.allowVerticalScroll||(x=y.y),a.position=this.xy.h(b,x)}},xe.Object.defineProperties(os.prototype,{bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},originalPosition:{get:function(){return this.Xt}}}),os.className="PanningTool",zi("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(a){this.gb("ClickCreating",a,this.mouseUpTools)}),zi("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(a){this.gb("ClickSelecting",a,this.mouseUpTools)}),zi("panningTool",function(){return this.findTool("Panning")},function(a){this.gb("Panning",a,this.mouseMoveTools)}),zi("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(a){this.gb("DragSelecting",a,this.mouseMoveTools)}),zi("actionTool",function(){return this.findTool("Action")},function(a){this.gb("Action",a,this.mouseDownTools)});function wu(){this.F=this.u=this.j=this.o=null}xe.Object.defineProperties(wu.prototype,{mainElement:{get:function(){return this.u},set:function(a){this.u=a}},show:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a)}},hide:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a)}},valueFunction:{get:function(){return this.F},set:function(a){this.F=a}}}),wu.className="HTMLInfo";function Ol(a,y,x){this.text=a,this.hx=y,this.visible=x}Ol.className="ContextMenuButtonInfo";function Es(){eo.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new Bt,this.jt=null,this.Et=!1;var a=this;this.tu=function(){a.stopTool()}}ye(Es,eo);function Ul(a){var y=new wu;y.show=function(b,z,tt){tt.showDefaultContextMenu()},y.hide=function(b,z){z.hideDefaultContextMenu()},Jh=y,a.tu=function(){a.stopTool()},y=hi("div");var x=hi("div");y.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",x.style.cssText="z-index:10001;position: fixed;display: none;top: 0;left: 0;width: 100%;height: 100%;background-color: black;opacity: 0.8;";var E=hi("style");Sn.document.getElementsByTagName("head")[0].appendChild(E),E.sheet.insertRule(".goCXul { list-style: none; }",0),E.sheet.insertRule(".goCXli {font:700 1.5em Helvetica, Arial, sans-serif;position: relative;min-width: 60px; }",0),E.sheet.insertRule(".goCXa {color: #444;display: inline-block;padding: 4px;text-decoration: none;margin: 2px;border: 1px solid gray;border-radius: 10px; }",0),E=a.diagram,E!==null&&(E.addEventListener(y,"contextmenu",Ca,!1),E.addEventListener(y,"selectstart",Ca,!1),E.addEventListener(x,"contextmenu",Ca,!1)),y.className="goCXforeground",x.className="goCXbackground",Sn.document.body&&(Sn.document.body.appendChild(y),Sn.document.body.appendChild(x)),fc=y,Nd=x,cc=!0}function Ca(a){return a.preventDefault(),!1}Es.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return this.isBeyondDragSize()||!a.lastInput.right||1<a.lastInput.clickCount?!1:!!(a.lastInput.isTouchEvent&&this.defaultTouchContextMenu!==null||this.findObjectWithContextMenu()!==null)},Es.prototype.doStart=function(){this.yw.set(this.diagram.firstInput.documentPoint)},Es.prototype.doStop=function(){this.hideContextMenu(),this.currentObject=null},Es.prototype.findObjectWithContextMenu=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.lastInput,E=null;if(a instanceof Qe||(a instanceof Me?E=a:E=y.ic(x.documentPoint,null,function(b){return!b.layer.isTemporary})),E!==null){for(a=E;a!==null;){if(a.contextMenu!==null)return a;a=a.panel}if(y.lastInput.isTouchEvent&&this.defaultTouchContextMenu)return E.part}else if(y.contextMenu!==null)return y;return null},Es.prototype.doActivate=function(){},Es.prototype.doMouseDown=function(){if(eo.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof uo){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doMouseDown(),a.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&au(this)},Es.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof uo){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doCancel(),a.doDeactivate())}au(this)};function au(a){var y=a.diagram;if(a.isActive){var x=a.currentContextMenu;if(x!==null){var E=null;x instanceof wu||(E=y.ic(y.lastInput.documentPoint,null,null),E!==null&&E.rg(x)&&a.standardMouseClick(null,null)),a.maybeStopTool(E)}}else a.canStart()&&(qu(a,!0),a.isActive||a.stopTool())}Es.prototype.maybeStopTool=function(){this.stopTool(),this.canStart()&&(this.diagram.currentTool=this,this.doMouseUp())};function qu(a,y,x){if(x===void 0&&(x=null),!a.Et&&(a.Et=!0,y&&a.standardMouseSelect(),y=a.standardMouseClick(),a.Et=!1,!y)){if(a.isActive=!0,y=Jh,x===null&&(x=a.findObjectWithContextMenu()),x!==null){var E=x.contextMenu;E!==null?(a.currentObject=x instanceof Me?x:null,a.showContextMenu(E,a.currentObject)):y!==null&&a.showContextMenu(y,a.currentObject)}else y!==null&&a.showContextMenu(y,null);a.currentContextMenu instanceof uo&&!a.currentContextMenu.visible&&a.stopTool()}}Es.prototype.doMouseMove=function(){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.doMouseMove(),this.isActive&&this.diagram.toolManager.doMouseMove()},Es.prototype.showContextMenu=function(a,y){var x=this.diagram;if(a!==this.currentContextMenu&&this.hideContextMenu(),a instanceof uo){a.layerName="Tool",a.selectable=!1,a.scale=1/x.scale,a.category=this.name,a.placeholder!==null&&(a.placeholder.scale=x.scale);var E=a.diagram;E!==null&&E!==x&&E.remove(a),x.add(a),y!==null?a.adornedObject=y:a.data=x.model,a.Va(),this.positionContextMenu(a,y)}else a instanceof wu&&a.show(y,x,this);this.currentContextMenu=a},Es.prototype.positionContextMenu=function(a){if(a.placeholder===null){var y=this.diagram,x=y.lastInput.documentPoint.copy(),E=a.measuredBounds,b=y.viewportBounds;y.lastInput.isTouchEvent&&(x.x-=E.width),x.x+E.width>b.right&&(x.x-=E.width+5/y.scale),x.x<b.x&&(x.x=b.x),x.y+E.height>b.bottom&&(x.y-=E.height+5/y.scale),x.y<b.y&&(x.y=b.y),a.position=x}},Es.prototype.hideContextMenu=function(){var a=this.diagram,y=this.currentContextMenu;y!==null&&(y instanceof uo?(a.remove(y),this.ht!==null&&this.ht.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof wu&&(y.hide!==null?y.hide(a,this):y.mainElement!==null&&(y.mainElement.style.display="none")),this.currentContextMenu=null,this.standardMouseOver())};function Sh(a){var y=new cn;return y.add(new Ol("Copy",function(x){x.commandHandler.copySelection()},function(x){return x.commandHandler.canCopySelection()})),y.add(new Ol("Cut",function(x){x.commandHandler.cutSelection()},function(x){return x.commandHandler.canCutSelection()})),y.add(new Ol("Delete",function(x){x.commandHandler.deleteSelection()},function(x){return x.commandHandler.canDeleteSelection()})),y.add(new Ol("Paste",function(x){x.commandHandler.pasteSelection(a.mouseDownPoint)},function(x){return x.commandHandler.canPasteSelection(a.mouseDownPoint)})),y.add(new Ol("Select All",function(x){x.commandHandler.selectAll()},function(x){return x.commandHandler.canSelectAll()})),y.add(new Ol("Undo",function(x){x.commandHandler.undo()},function(x){return x.commandHandler.canUndo()})),y.add(new Ol("Redo",function(x){x.commandHandler.redo()},function(x){return x.commandHandler.canRedo()})),y.add(new Ol("Scroll To Part",function(x){x.commandHandler.scrollToPart()},function(x){return x.commandHandler.canScrollToPart()})),y.add(new Ol("Zoom To Fit",function(x){x.commandHandler.zoomToFit()},function(x){return x.commandHandler.canZoomToFit()})),y.add(new Ol("Reset Zoom",function(x){x.commandHandler.resetZoom()},function(x){return x.commandHandler.canResetZoom()})),y.add(new Ol("Group Selection",function(x){x.commandHandler.groupSelection()},function(x){return x.commandHandler.canGroupSelection()})),y.add(new Ol("Ungroup Selection",function(x){x.commandHandler.ungroupSelection()},function(x){return x.commandHandler.canUngroupSelection()})),y.add(new Ol("Edit Text",function(x){x.commandHandler.editTextBlock()},function(x){return x.commandHandler.canEditTextBlock()})),y}Es.prototype.showDefaultContextMenu=function(){var a=this.diagram;this.jt===null&&(this.jt=Sh(this)),fc.innerHTML="",Nd.addEventListener("pointerdown",this.tu,!1);var y=this,x=hi("ul");x.className="goCXul",fc.appendChild(x),x.innerHTML="";for(var E=this.jt.iterator;E.next();){var b=E.value,z=b.visible;if(typeof b.hx=="function"&&(typeof z!="function"||z(a))){z=hi("li"),z.className="goCXli";var tt=hi("a");tt.className="goCXa",tt.href="#",tt.ky=b.hx,tt.addEventListener("pointerdown",function(rt){return this.ky(a),y.stopTool(),rt.preventDefault(),!1},!1),tt.textContent=b.text,z.appendChild(tt),x.appendChild(z)}}fc.style.display="block",Nd.style.display="block"},Es.prototype.hideDefaultContextMenu=function(){if(this.currentContextMenu!==null&&this.currentContextMenu===Jh){fc.style.display="none",Nd.style.display="none";var a=this.diagram;a!==null&&a.removeEventListener(Nd,"pointerdown",this.tu,!1),this.currentContextMenu=null}},xe.Object.defineProperties(Es.prototype,{currentContextMenu:{get:function(){return this.j},set:function(a){this.j=a,this.ht=a instanceof uo?a.adornedPart:null}},defaultTouchContextMenu:{get:function(){return cc===!1&&Jh===null&&da&&Ul(this),Jh},set:function(a){a===null&&(cc=!0),Jh=a}},currentObject:{get:function(){return this.o},set:function(a){this.o=a}},mouseDownPoint:{get:function(){return this.yw}}});var Jh=null,cc=!1,Nd=null,fc=null;Es.className="ContextMenuTool",zi("contextMenuTool",function(){return this.findTool("ContextMenu")},function(a){this.gb("ContextMenu",a,this.mouseUpTools)});function Xo(){eo.call(this),this.name="TextEditing",this.Zh=new Ro,this.ia=null,this.V=Bd,this.vj=null,this.qa=Td,this.u=1,this.F=!0,this.o=null,this.j=new wu,this.kt=null,gc(this,this.j)}ye(Xo,eo);function gc(a,y){if(da){var x=hi("textarea");a.kt=x,x.addEventListener("input",function(){if(a.textBlock!==null){var E=a.Lx(this.value);this.style.width=20+E.measuredBounds.width*this.wA+"px",this.rows=E.lineCount}},!1),x.addEventListener("keydown",function(E){if(!E.isComposing&&a.textBlock!==null){var b=E.key;b==="Enter"?(a.textBlock.isMultiline===!1&&E.preventDefault(),a.acceptText(pc)):b==="Tab"?(a.acceptText(sf),E.preventDefault()):b==="Escape"&&(a.doCancel(),a.diagram!==null&&a.diagram.doFocus())}},!1),x.addEventListener("focus",function(){if(a.currentTextEditor!==null&&a.state!==Td){var E=a.kt;a.qa===mc&&(a.qa=vc),typeof E.select=="function"&&a.selectsTextOnActivate&&(E.select(),E.setSelectionRange(0,9999))}},!1),x.addEventListener("blur",function(){if(a.currentTextEditor!==null&&a.state!==Td){var E=a.kt;typeof E.focus=="function"&&E.focus(),typeof E.select=="function"&&a.selectsTextOnActivate&&(E.select(),E.setSelectionRange(0,9999))}},!1),y.valueFunction=function(){return x.value},y.mainElement=x,y.show=function(E,b,z){if(E instanceof Ro&&z instanceof Xo)if(z.state===yc)x.style.border="3px solid red",x.focus();else{var tt=E.ga(Ri),rt=b.position,ot=b.scale,st=E.Df()*ot;st<z.minimumEditorScale&&(st=z.minimumEditorScale);var ut=E.naturalBounds.width*st+6,ft=E.naturalBounds.height*st+2,vt=(tt.x-rt.x)*ot;tt=(tt.y-rt.y)*ot,rt=E.verticalAlignment,ot=(E.lineHeight+E.spacingAbove+E.spacingBelow)*E.lineCount*st,ft=rt.y*ft-rt.y*ot+rt.offsetY-(.5*ft-.5*ot)-ot/2,x.value=E.text,b.div.style.font=E.font,x.style.position="absolute",x.style.zIndex="100",x.style.font="inherit",x.style.fontSize=100*st+"%",x.style.lineHeight="normal",x.style.width=ut+"px",x.style.left=(vt-ut/2|0)-1+"px",x.style.top=(tt+ft|0)-1+"px",x.style.textAlign=E.textAlign,x.style.margin="0",x.style.padding="1px",x.style.border="0",x.style.outline="none",x.style.whiteSpace="pre-wrap",x.style.overflow="hidden",x.rows=E.lineCount,x.wA=st,x.className="goTXarea",b.div.appendChild(x),x.focus(),z.selectsTextOnActivate&&(x.select(),x.setSelectionRange(0,9999))}},y.hide=function(E){E.div.removeChild(x)}}}Xo.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||a.isReadOnly||xh&&xh!==this&&(xh.acceptText(Pu),xh&&xh!==this)||!a.lastInput.left||this.isBeyondDragSize())return!1;var y=a.ic(a.lastInput.documentPoint);return y!==null&&y instanceof Ro&&y.editable&&y.part.canEdit()?(y=y.part,!(y===null||this.starting===Bd&&!y.isSelected||this.starting===lf&&2>a.lastInput.clickCount)):!1},Xo.prototype.doStart=function(){xh=this,this.textBlock!==null&&this.doActivate()},Xo.prototype.doActivate=function(){if(!this.isActive){var a=this.diagram;if(a!==null){var y=this.textBlock;if(y===null&&(y=a.ic(a.lastInput.documentPoint)),y!==null&&y instanceof Ro&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=mc;var x=this.defaultTextEditor;y.textEditor!==null&&(x=y.textEditor),this.Zh=this.textBlock.copy();var E=new ue(this.textBlock.ga(ar),this.textBlock.ga(jr));a.tv(E),x.show(y,a,this),this.currentTextEditor=x}}}},Xo.prototype.doCancel=function(){this.stopTool()},Xo.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},Xo.prototype.doMouseDown=function(){this.isActive&&this.acceptText(Pu)},Xo.prototype.acceptText=function(a){switch(a){case Pu:this.qa===Od?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===mc||this.qa===yc||this.qa===vc)&&(this.qa=pg,gg(this));break;case af:case pc:case sf:(pc!==a||this.textBlock.isMultiline!==!0)&&(this.qa===mc||this.qa===yc||this.qa===vc)&&(this.qa=pg,gg(this))}};function gg(a){var y=a.textBlock,x=a.diagram,E=a.currentTextEditor;if(y!==null&&E!==null){var b=y.text,z="";E.valueFunction!==null&&(z=E.valueFunction()),a.isValidText(y,b,z)?(a.Ea(a.name),a.qa=Od,a.transactionResult=a.name,y.text=z,a.doSuccess(b,z),x!==null&&x.R("TextEdited",y,b),a.stopTransaction(),a.stopTool(),x!==null&&x.doFocus()):(a.qa=yc,a.doError(b,z))}}Xo.prototype.doError=function(a,y){var x=this.textBlock;x.errorFunction!==null&&x.errorFunction(this,a,y),(a=this.currentTextEditor)&&a.show(x,this.diagram,this)},Xo.prototype.doSuccess=function(a,y){var x=this.textBlock;x.textEdited!==null&&x.textEdited(x,a,y)},Xo.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=Td,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},Xo.prototype.doStop=function(){xh=null},Xo.prototype.isValidText=function(a,y,x){var E=this.textValidation;return E!==null&&!E(a,y,x)?!1:(E=a.textValidation,!!(E===null||E(a,y,x)))},Xo.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},xe.Object.defineProperties(Xo.prototype,{textBlock:{get:function(){return this.ia},set:function(a){this.ia=a}},currentTextEditor:{get:function(){return this.o},set:function(a){this.o=a}},defaultTextEditor:{get:function(){return this.j},set:function(a){this.j=a}},starting:{get:function(){return this.V},set:function(a){this.V=a}},textValidation:{get:function(){return this.vj},set:function(a){this.vj=a}},minimumEditorScale:{get:function(){return this.u},set:function(a){this.u=a}},selectsTextOnActivate:{get:function(){return this.F},set:function(a){this.F=a}},state:{get:function(){return this.qa},set:function(a){this.qa!==a&&(this.qa=a)}}}),Xo.prototype.measureTemporaryTextBlock=Xo.prototype.Lx;var af=new dn(Xo,"LostFocus",0),Pu=new dn(Xo,"MouseDown",1),sf=new dn(Xo,"Tab",2),pc=new dn(Xo,"Enter",3),iv=new dn(Xo,"SingleClick",0),Bd=new dn(Xo,"SingleClickSelected",1),lf=new dn(Xo,"DoubleClick",2),Td=new dn(Xo,"StateNone",0),mc=new dn(Xo,"StateActive",1),vc=new dn(Xo,"StateEditing",2),pg=new dn(Xo,"StateValidating",3),yc=new dn(Xo,"StateInvalid",4),Od=new dn(Xo,"StateValidated",5),xh=null;Xo.className="TextEditingTool",Xo.LostFocus=af,Xo.MouseDown=Pu,Xo.Tab=sf,Xo.Enter=pc,Xo.SingleClick=iv,Xo.SingleClickSelected=Bd,Xo.DoubleClick=lf,Xo.StateNone=Td,Xo.StateActive=mc,Xo.StateEditing=vc,Xo.StateValidating=pg,Xo.StateInvalid=yc,Xo.StateValidated=Od,zi("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function $s(a){xc||(mg(),xc=!0),this.H=Tu,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=th,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new xn,this.ce=new as,this.ce.Yd=this,this.Ei=new xn,this.pu=new xn,this.Sr=new xn,this.pr=new xn,a&&Object.assign(this,a)}$s.prototype.Xe=function(a){this.H=a},$s.prototype.canStart=function(){return!0};function Bu(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),ss(a.H),a.zb=!0)}function uf(a){if(a.Jd&&a.zb){var y=a.ce,x=a.H,E=a.Zd.contains("Model");E&&(a.Ok=!0,a.Pk===th?(y.isViewportUnconstrained=!0,y.vc.clear(),y.add(x,"position",x.position.copy().offset(0,-200),x.position),y.add(x,"opacity",0,1)):a.Pk===vg&&y.vc.clear(),a.Qw=!!(a.Pk===wc&&x.du.D(x.pa)),x.R("InitialAnimationStarting",a)),E&&!a.Gh||y.vc.count===0?(a.Zd.clear(),a.zb=!1,y.vc.clear(),Pc(y,x),a.Ok=!1,x.N()):(a.Zd.clear(),x.kg=!1,E=y.vc.get(x),x.autoScale!==ys&&E!==null&&(delete E.start.scale,delete E.end.scale),Sn.requestAnimationFrame(function(){a.zb===!1||y.bc||(x.Gf("temporaryPixelRatio")&&Is(x),Pg(x),a.zb=!1,y.start(),y.bc&&(wh(a),x.Ya(),yg(y,0),wl(x,!0),Qh(a),x.R("AnimationStarting",a)))}))}}function $u(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function hf(a,y,x,E){a.isTicking||$u(a)||y instanceof di&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,E,!1)}Ct=$s.prototype,Ct.fv=function(a){return this.ce.fv(a)},Ct.Xu=function(a){return this.ce.Xu(a)};function df(a,y){function x(){if(0<b.Sr.count&&(E.addAll(b.Sr),b.Sr.clear(),b.bc=!0),b.bc!==!1&&E.count!==0){b.pu.addAll(E);for(var z=b.pu.iterator;z.next();){var tt=z.value;if(tt.bc!==!1){t:if(0<tt.yl.count)var rt=!0;else{for(rt=tt.vc.iterator;rt.next();){var ot=rt.key;if(ot instanceof Me&&ot.diagram!==null||ot instanceof Qe){rt=!0;break t}}rt=!1}rt?Cc(tt,!1):tt.Xk=!0}}b.pu.clear(),b.bc!==!1&&(wh(b),wl(b.H),Qh(b)),Sn.requestAnimationFrame(x)}}var E=a.Ei,b=a;a.bc?a.Sr.add(y):(a.bc=!0,E.add(y),Sn.requestAnimationFrame(function(){x()}))}function Kp(a){for(a=a.Ei.iterator;a.next();)a.value.Xk=!1}function wh(a){if(!a.vq){var y=a.H;a.Ow=y.skipsUndoManager,a.cw=y.skipsModelSourceBindings,y.skipsUndoManager=!0,y.skipsModelSourceBindings=!0,a.vq=!0}}function Qh(a){var y=a.H;y.skipsUndoManager=a.Ow,y.skipsModelSourceBindings=a.cw,a.vq=!1}Ct.Cc=function(a){var y=this.ce;if(this.zb===!0&&(this.Ok=this.zb=!1,this.Zd.clear(),0<y.vc.count&&this.H.$b()),this.bc){if(y.Ml(!0),y.vc.clear(),Pc(y,null),a===!0)for(a=this.Ei.Fa(),y=0;y<a.length;y++)a[y].Ml(!0)}else y.vc.clear(),Pc(y,this.H)},Ct.Ml=function(a){a===this.defaultAnimation&&this.defaultAnimation.vc.clear(),this.Ei.remove(a),this.Ei.count===0&&(this.bc=!1,this.H.$b()),a===this.defaultAnimation&&(this.defaultAnimation.vc.clear(),this.H.R("AnimationFinished",this))},Ct.Cj=function(a,y){this.zb&&(this.Zd.contains("Expand Tree")||this.Zd.contains("Expand SubGraph"))&&(this.ce.Cj(a,y),Ks(this,a))},Ct.Aj=function(a,y){this.zb&&(this.Zd.contains("Collapse Tree")||this.Zd.contains("Collapse SubGraph"))&&(this.ce.Aj(a,y),Ph(this.ce,y,"position",y.position,y.position),Ks(this,a))};function Yp(a,y,x){!a.zb||y.D(x)||$u(a)||(a.H.pi||(y=x.copy()),Ph(a.ce,a.H,"position",y,x))}function cf(a,y,x){y.fd&&(y.Tg=x,a.pr.add(y))}function Ks(a,y){for(y=y.findLinksConnected();y.next();){var x=y.value;x.fd&&(x.Tg=x.points.copy(),a.pr.add(x))}}function qh(a,y,x,E,b){a===null&&(a=[0,0,0,0]),y===null&&(y=[0,0,0,0]);var z=a[0],tt=a[1],rt=a[2];a=a[3];var ot=y[0],st=y[1],ut=y[2];return y=y[3],rt===0||rt===100?(z=ot,tt=st):(ut===0||ut===100)&&(ot=z,st=tt),180<Math.abs(ot-z)&&(ot>z?z+=360:ot+=360),z=b(x,z,ot-z,E)%360,tt=b(x,tt,st-tt,E),rt=b(x,rt,ut-rt,E),x=b(x,a,y-a,E),"hsla("+z+", "+tt+"%, "+rt+"%, "+x+")"}function mg(){function a(x,E,b,z,tt,rt){x.position=new Bt(z(tt,E.x,b.x-E.x,rt),z(tt,E.y,b.y-E.y,rt))}var y=new on;y.add("position:diagram",a),y.add("position",a),y.add("position:part",function(x,E,b,z,tt,rt){tt<rt?x.mm(z(tt,E.x,b.x-E.x,rt),z(tt,E.y,b.y-E.y,rt),!1):x.position=new Bt(z(tt,E.x,b.x-E.x,rt),z(tt,E.y,b.y-E.y,rt))}),y.add("location",function(x,E,b,z,tt,rt){tt<rt?x.mm(z(tt,E.x,b.x-E.x,rt),z(tt,E.y,b.y-E.y,rt),!0):x.location=new Bt(z(tt,E.x,b.x-E.x,rt),z(tt,E.y,b.y-E.y,rt))}),y.add("position:placeholder",function(x,E,b,z,tt,rt){tt<rt?x.mm(z(tt,E.x,b.x-E.x,rt),z(tt,E.y,b.y-E.y,rt),!1):x.position=new Bt(z(tt,E.x,b.x-E.x,rt),z(tt,E.y,b.y-E.y,rt))}),y.add("position:nodeCollapse",function(x,E,b,z,tt,rt){var ot=x.actualBounds,st=b.actualBounds;b=st.x+st.width/2-ot.width/2,ot=st.y+st.height/2-ot.height/2,tt<rt?x.mm(z(tt,E.x,b-E.x,rt),z(tt,E.y,ot-E.y,rt),!1):x.position=new Bt(z(tt,E.x,b-E.x,rt),z(tt,E.y,ot-E.y,rt))}),y.add("desiredSize",function(x,E,b,z,tt,rt){x.desiredSize=new ue(z(tt,E.width,b.width-E.width,rt),z(tt,E.height,b.height-E.height,rt))}),y.add("width",function(x,E,b,z,tt,rt){x.width=z(tt,E,b-E,rt)}),y.add("height",function(x,E,b,z,tt,rt){x.height=z(tt,E,b-E,rt)}),y.add("fill",function(x,E,b,z,tt,rt){x.fill=qh(E,b,tt,rt,z)}),y.add("stroke",function(x,E,b,z,tt,rt){x.stroke=qh(E,b,tt,rt,z)}),y.add("strokeWidth",function(x,E,b,z,tt,rt){x.strokeWidth=z(tt,E,b-E,rt)}),y.add("strokeDashOffset",function(x,E,b,z,tt,rt){x.strokeDashOffset=z(tt,E,b-E,rt)}),y.add("background",function(x,E,b,z,tt,rt){x.background=qh(E,b,tt,rt,z)}),y.add("areaBackground",function(x,E,b,z,tt,rt){x.areaBackground=qh(E,b,tt,rt,z)}),y.add("opacity",function(x,E,b,z,tt,rt){x.opacity=z(tt,E,b-E,rt)}),y.add("scale",function(x,E,b,z,tt,rt){x.scale=z(tt,E,b-E,rt)}),y.add("angle",function(x,E,b,z,tt,rt){x.angle=z(tt,E,b-E,rt)}),Sc=y}xe.Object.defineProperties($s.prototype,{animationReasons:{get:function(){return this.Zd}},isEnabled:{get:function(){return this.Jd},set:function(a){(this.Jd=a)&&this.Ei.each(function(y){y.isAnimating||y.runCount!==1/0||y.start()})}},duration:{get:function(){return this.Dg},set:function(a){1>a&&Vn(a,">= 1",$s,"duration"),this.Dg=a}},isAnimating:{get:function(){return this.bc}},isTicking:{get:function(){return this.vq}},isInitial:{get:function(){return this.Gh},set:function(a){this.Gh=a}},defaultAnimation:{get:function(){return this.ce}},activeAnimations:{get:function(){return this.Ei}},initialAnimationStyle:{get:function(){return this.Pk},set:function(a){this.Pk=a}}}),$s.prototype.stopAnimation=$s.prototype.Cc;var Sc=null,xc=!1,th=new dn($s,"Default",1),wc=new dn($s,"AnimateLocations",2),vg=new dn($s,"None",3);$s.className="AnimationManager",$s.defineAnimationEffect=function(a,y){xc||(mg(),xc=!0),Sc.add(a,y)},$s.Default=th,$s.AnimateLocations=wc,$s.None=vg;function as(a){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=Id,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=Zt,this.vc=new on,this.Tt=new on,this.yl=new xn,this.Ut=new xn,this.dw=Ah,a&&Object.assign(this,a)}as.prototype.suspend=function(){this.Xk=!0},as.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,Cc(this,!0),wh(this.Yd),wl(this.H),Qh(this.Yd),this.H.redraw()};function Pc(a,y){if(a.Tt.clear(),a.Wk=!1,a.au=0,a.Gd=NaN,0<a.yl.count&&a.yl.clear(),0<a.Ut.count&&a.Ut.clear(),y!==null)for(a=y.links;a.next();)a.value.Tg=null}Ct=as.prototype,Ct.start=function(){if(this.vc.count===0||this.bc)return this;for(var a=this.H,y=this.vc.iterator;y.next();){var x=y.key;a===null&&(x instanceof Qe?a=x:x instanceof Me&&(a=x.diagram))}if(a!==null)this.H=a,this.Yd=a.animationManager;else return this;return y=this.Yd,y.isEnabled===!1?this:(this.Gd=isNaN(this.Dg)?y.duration:this.Dg,this.Lp=this.ot,y.Ok&&y.Pk===th&&this===y.defaultAnimation&&(this.Lp=Up,this.Gd=isNaN(this.Dg)?y.duration===600?900:y.duration:this.Dg),this.dw=a.scrollMode,this.isViewportUnconstrained&&(a.sj=Fc),wh(y),this.yl.each(function(E){E.data=null,a.add(E)}),Qh(y),this.bc=!0,this.Qd=+new Date,this.cn=this.Qd+this.Gd,df(y,this),this)},Ct.Iy=function(a,y){return a.Zc()?(this.yl.add(a),this.H=y,this):this},Ct.add=function(a,y,x,E,b){if(y==="position"&&x.Xa(E))return this;if(this.H===null&&(a instanceof Qe?this.H=a:a instanceof Me&&a.diagram!==null&&(this.H=a.diagram)),a instanceof rr){if(!a.isAnimated)return this;y==="position"&&(y="position:part")}return Ph(this,a,y,x,E,b),this};function Ph(a,y,x,E,b,z){var tt=a.vc;if(y instanceof Qe&&x==="position"&&(x="position:diagram"),(x==="fill"||x==="stroke"||x==="background"||x==="areaBackground")&&(rh(E),hv(),E=[dl.j,dl.u,dl.o,dl.F],rh(b),hv(),b=[dl.j,dl.u,dl.o,dl.F]),tt.contains(y)){var rt=tt.I(y),ot=rt.start,st=rt.end;ot[x]===void 0&&(ot[x]=$h(E)),st[x]=$h(b)}else ot={},st={},ot[x]=$h(E),st[x]=$h(b),rt=ot.position,y instanceof Me&&rt instanceof Bt&&!rt.w()&&y.diagram.animationManager.Zd.contains("Expand SubGraph")&&rt.assign(st.position),rt=new td(ot,st,z),tt.add(y,rt);tt=ot[x],tt instanceof Bt&&!tt.w()&&tt.assign(a.o),z&&x.indexOf("position:")===0&&y instanceof rr?rt.Ku.location=$h(y.location):z&&(rt.Ku[x]=$h(E))}function $h(a){return a instanceof Bt||a instanceof zt?a.copy():a}Ct.fv=function(a){return this.bc?(a=this.vc.I(a),a!==null&&a.nv):!1},Ct.Xu=function(a){return this.bc?(a=this.vc.I(a),a!==null&&(a.start.position||a.start.location)):!1};function Cc(a,y){if(!a.Xk||y){var x=a.Yd;if(a.bc!==!1){var E=+new Date,b=E>a.cn?a.Gd:E-a.Qd;y&&(b=a.gw,b<a.Gd?(a.Qd=+new Date-b,a.cn=a.Qd+a.Gd):b=a.Gd),wh(x),yg(a,b),wl(a.H,!0),Qh(x),E>a.cn&&(a.ho&&!a.Wk?(a.Qd=+new Date,a.cn=a.Qd+a.Gd,a.Wk=!0):a.Ml(!1))}}}function yg(a,y){for(var x=a.Gd,E=a.vc.iterator,b=a.Wk;E.next();){var z=E.key;if(!(z instanceof Me&&z.diagram===null)){var tt=E.value,rt=b?tt.end:tt.start;tt=b?tt.start:tt.end;var ot=Sc,st;for(st in tt)st==="position"&&(tt["position:placeholder"]||tt["position:nodeCollapse"])||ot.get(st)===null||ot.get(st)(z,rt[st],tt[st],a.Lp,y,x,a)}}}Ct.stop=function(){return this.bc?(this.Ml(!0),this):this},Ct.Ml=function(a){if(this.vu!==null&&this.vu.jo.remove(this.Nw),this.bc){var y=this.H,x=this.Yd;this.Xk=this.bc=x.Ok=!1,wh(x);for(var E=this.vc,b=this.yl.iterator;b.next();)y.remove(b.value);for(b=this.Ut.iterator;b.next();)b.value.v();b=this.ho,E=E.iterator;for(var z=Sc;E.next();){var tt=E.key,rt=E.value,ot=b?rt.end:rt.start,st=b?rt.start:rt.end,ut=rt.Ku,ft;for(ft in st)if(z.get(ft)!==null){var vt=ft;!rt.Hu||vt!=="position:nodeCollapse"&&vt!=="position:placeholder"||(vt="position"),z.get(vt)(tt,ot[ft],ut[ft]!==void 0?ut[ft]:rt.Hu?ot[ft]:st[ft],this.Lp,this.Gd,this.Gd,this)}rt.Hu&&ut.location!==void 0&&tt instanceof rr&&(tt.location=ut.location),rt.nv&&tt instanceof rr&&tt.Zb(!1)}if(y.As.clear(),Ec(y,!1),y.Ya(),y.N(),wl(y,!0),x.defaultAnimation===this){for(ft=x.pr.iterator;ft.next();)b=ft.value,b.Tg!==null&&(b.points=b.Tg,b.Tg=null);x.pr.clear()}wl(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),Qh(x),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),Pc(this,null),x.Ml(this),y.$b())}},Ct.Cj=function(a,y){var x=y.actualBounds,E=null;if(y instanceof Tr&&(E=y.placeholder),E!==null?(x=E.ga(ar),E=E.padding,x.x+=E.left,x.y+=E.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new Bt(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof Tr)for(a=a.memberParts;a.next();)E=a.value,E instanceof bi&&this.Cj(E,y)},Ct.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof Tr&&(x=y.placeholder),x!==null){var E=x.ga(ar);x=x.padding,E.x+=x.left,E.y+=x.top,this.add(a,"position:placeholder",a.position,E,!0)}else this.add(a,"position:nodeCollapse",a.position,y,!0);if(this.add(a,"scale",a.scale,.01,!0),E=this.vc,E.contains(a)&&(E.I(a).nv=!0),a instanceof Tr)for(a=a.memberParts;a.next();)E=a.value,E instanceof bi&&this.Aj(E,y)}},Ct.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},xe.Object.defineProperties(as.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&Vn(a,">= 1",as,"duration"),this.Dg=a}},reversible:{get:function(){return this.ho},set:function(a){this.ho=a}},runCount:{get:function(){return this.cu},set:function(a){0<a?this.cu=a:ee("Animation.runCount value must be a positive integer.")}},finished:{get:function(){return this.dn},set:function(a){this.dn!==a&&(this.dn=a)}},easing:{get:function(){return this.ot},set:function(a){this.ot=a}},isViewportUnconstrained:{get:function(){return this.j},set:function(a){this.j=a}},isAnimating:{get:function(){return this.bc}}}),as.prototype.getTemporaryState=as.prototype.Ez,as.prototype.stop=as.prototype.stop,as.prototype.add=as.prototype.add,as.prototype.addTemporaryPart=as.prototype.Iy;function Id(a,y,x,E){return a/=E/2,1>a?x/2*a*a+y:-x/2*(--a*(a-2)-1)+y}function Up(a,y,x,E){return a===E?y+x:x*(-Math.pow(2,-10*a/E)+1)+y}as.className="Animation",as.EaseLinear=function(a,y,x,E){return x*a/E+y},as.EaseInOutQuad=Id,as.EaseInQuad=function(a,y,x,E){return x*(a/=E)*a+y},as.EaseOutQuad=function(a,y,x,E){return-x*(a/=E)*(a-2)+y},as.EaseInExpo=function(a,y,x,E){return a===0?y:x*Math.pow(2,10*(a/E-1))+y},as.EaseOutExpo=Up;function td(a,y,x){this.start=a,this.end=y,this.Ku={},this.Hu=x,this.nv=!1}td.className="AnimationState";function Xl(a,y,x){this.xd=null,this.rf=a,this.so=x||Sg,this.uk=null,y!==void 0&&(this.uk=y,x===void 0&&(this.so=ed))}Xl.prototype.copy=function(){var a=new Xl(this.rf);a.so=this.so;var y=this.uk;if(y!==null){var x={};y.duration!==void 0&&(x.duration=y.duration),y.finished!==void 0&&(x.finished=y.finished),y.easing!==void 0&&(x.easing=y.easing),a.uk=x}return a};function Xp(a,y){a=a.uk,a!==null&&(a.duration&&(y.duration=a.duration),a.finished&&(y.finished=a.finished),a.easing&&(y.easing=a.easing))}xe.Object.defineProperties(Xl.prototype,{propertyName:{get:function(){return this.rf},set:function(a){this.rf=a}},animationSettings:{get:function(){return this.uk},set:function(a){this.uk=a}},startCondition:{get:function(){return this.so},set:function(a){this.so=a}}});var Sg=new dn(Xl,"Default",1),ed=new dn(Xl,"Immediate",2),Rd=new dn(Xl,"Bundled",3);Xl.className="AnimationTrigger",Xl.Default=Sg,Xl.Immediate=ed,Xl.Bundled=Rd;function Xa(a){wi(this),this.H=null,this.Pa=new cn,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=[],a&&Object.assign(this,a)}Ct=Xa.prototype,Ct.clear=function(){for(var a=this.Pa,y=0;y<a.length;y++){var x=a.s[y];x.Ig=null,ms(x)}a.clear(),this.Zq.length=0},Ct.Xe=function(a){this.H=a},Ct.toString=function(a){a===void 0&&(a=0);var y='Layer "'+this.name+'"';if(0>=a)return y;for(var x=0,E=0,b=0,z=0,tt=0,rt=this.Pa.iterator;rt.next();){var ot=rt.value;ot instanceof Tr?b++:ot instanceof bi?E++:ot instanceof di?z++:ot instanceof uo?tt++:x++}if(rt="",0<x&&(rt+=x+" Parts "),0<E&&(rt+=E+" Nodes "),0<b&&(rt+=b+" Groups "),0<z&&(rt+=z+" Links "),0<tt&&(rt+=tt+" Adornments "),1<a)for(a=this.Pa.iterator;a.next();)x=a.value,rt+=`
`+x.toString(),E=x.data,E!==null&&Sr(E)&&(rt+=" #"+Sr(E)),x instanceof bi?rt+=" "+Zi(E):x instanceof di&&(rt+=" "+Zi(x.fromNode)+" "+Zi(x.toNode));return y+" "+this.Pa.count+": "+rt},Ct.ic=function(a,y,x){if(y===void 0&&(y=null),x===void 0&&(x=null),this.Uh===!1)return null;var E=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(E=!0);for(var b=Bt.alloc(),z=this.Pa.s,tt=z.length;tt--;){var rt=z[tt];if((E!==!0||dd(rt)!==!1)&&rt.isVisible()&&(b.assign(a),_e(b,rt.oe),rt=rt.ic(b,y,x),rt!==null&&(y!==null&&(rt=y(rt)),rt!==null&&(x===null||x(rt)))))return Bt.free(b),rt}return Bt.free(b),null},Ct.ji=function(a,y,x,E){if(y===void 0&&(y=null),x===void 0&&(x=null),E instanceof cn||E instanceof xn||(E=new xn),this.Uh===!1)return E;var b=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(b=!0);for(var z=Bt.alloc(),tt=this.Pa.s,rt=tt.length;rt--;){var ot=tt[rt];if((b!==!0||dd(ot)!==!1)&&ot.isVisible()){z.assign(a),_e(z,ot.oe);var st=ot;ot.ji(z,y,x,E)&&(y!==null&&(st=y(st)),st===null||x!==null&&!x(st)||E.add(st))}}return Bt.free(z),E},Ct.Cf=function(a,y,x,E,b){if(y===void 0&&(y=null),x===void 0&&(x=null),E===void 0&&(E=!1),b instanceof cn||b instanceof xn||(b=new xn),this.Uh===!1)return b;var z=!1;this.diagram!==null&&this.diagram.viewportBounds.Re(a)&&(z=!0);for(var tt=this.Pa.s,rt=tt.length;rt--;){var ot=tt[rt];if((z!==!0||dd(ot)!==!1)&&ot.isVisible()){var st=ot;ot.Cf(a,y,x,E,b)&&(y!==null&&(st=y(st)),st===null||x!==null&&!x(st)||b.add(st))}}return b},Ct.Nu=function(a,y,x,E,b,z,tt){if(this.Uh===!1)return b;for(var rt=this.Pa.s,ot=rt.length;ot--;){var st=rt[ot];if((tt!==!0||dd(st)!==!1)&&z(st)&&st.isVisible()){var ut=st;st.Cf(a,y,x,E,b)&&(y!==null&&(ut=y(ut)),ut===null||x!==null&&!x(ut)||b.add(ut))}}return b},Ct.og=function(a,y,x,E,b,z){if(x===void 0&&(x=null),E===void 0&&(E=null),b===void 0&&(b=!0),b!==!1&&b!==!0&&((b instanceof cn||b instanceof xn)&&(z=b),b=!0),z instanceof cn||z instanceof xn||(z=new xn),this.Uh===!1)return z;var tt=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(tt=!0);for(var rt=Bt.alloc(),ot=Bt.alloc(),st=this.Pa.s,ut=st.length;ut--;){var ft=st[ut];if((tt!==!0||dd(ft)!==!1)&&ft.isVisible()){rt.assign(a),_e(rt,ft.oe),ot.h(a.x+y,a.y),_e(ot,ft.oe);var vt=ft;ft.og(rt,ot,x,E,b,z)&&(x!==null&&(vt=x(vt)),vt===null||E!==null&&!E(vt)||z.add(vt))}}return Bt.free(rt),Bt.free(ot),z},Ct.Fd=function(a,y){if(this.visible){var x=this.Pa.s,E=x.length;if(E!==0){a=xi();for(var b=xi(),z=0;z<E;z++){var tt=x[z];if(tt.vw=z,tt instanceof di){if(tt.fd===!1)continue}else if(tt instanceof uo&&tt.adornedPart!==null)continue;var rt=tt.actualBounds;tt.isVisible()&&Fi(rt,y)?(tt.Fd(!0),a.push(tt)):(tt.Fd(!1),tt.adornments!==null&&0<tt.adornments.count&&b.push(tt))}for(y=0;y<a.length;y++)for(x=a[y],jv(x),x=x.adornments;x.next();)E=x.value,E.measure(1/0,1/0),E.arrange(),E.Fd(!0);for(y=0;y<b.length;y++)jv(b[y]);gi(a),gi(b)}}};function eh(a,y){var x=1;return a.pb!==1&&(x=y.globalAlpha,y.globalAlpha=x*a.pb),x}Ct.gc=function(a,y,x){if(this.visible&&this.pb!==0&&(x===void 0&&(x=!0),x||!this.isTemporary)){x=this.Pa.s;var E=x.length;if(E!==0){if(a.isTemporary)for(var b=0;b<E;b++)x[b].Gj();b=eh(this,a);var z=this.Zq;z.length=0;for(var tt=y.scale,rt=ue.alloc(),ot=0;ot<E;ot++)this.Oj(a,x[ot],y,z,tt,rt,!0);if(ue.free(rt),a.isTemporary)for(y=0;y<E;y++)x[y].Gj();a.globalAlpha=b}}};function _p(a,y,x,E,b){if(a.visible&&a.pb!==0&&(b||!a.isTemporary)){b=a.Pa.s;var z=b.length;if(z!==0){var tt=eh(a,y),rt=a.Zq;rt.length=0;for(var ot=x.scale,st=ue.alloc(),ut=0;ut<z;ut++){var ft=b[ut];E.contains(ft)&&a.Oj(y,ft,x,rt,ot,st,!1)}ue.free(st),y.globalAlpha=tt}}}Ct.Oj=function(a,y,x,E,b,z,tt){if(tt&&!dd(y))a.Hs(y);else{if(E!==null&&y instanceof di&&(y.isOrthogonal&&E.push(y),y.fd===!1)){a.Hs(y);return}for(tt=!1,E=y.containingGroup;E!==null;)tt?E.tb!==null&&z.Ex(E.tb):E.tb!==null&&(tt=!0,z.assign(E.tb)),E=E.containingGroup;var rt=y.actualBounds;if(E=!1,tt&&y.isVisible()){if(!z.Yc(rt)){a.Hs(y);return}E=!z.Re(rt)}E&&(a.save(),a instanceof tl?a.bk=z.copy():(a.beginPath(),a.rect(z.x,z.y,z.width,z.height),a.clip())),rt.width*b>x.Oq||rt.height*b>x.Oq?y.gc(a,x):(b=y.actualBounds,z=y.naturalBounds,b.width===0||b.height===0||isNaN(b.x)||isNaN(b.y)||!y.isVisible()||(x=y.transform,y.areaBackground!==null&&(fa(y,a,y.areaBackground,!0,!0,z,b),a.fillRect(b.x,b.y,b.width,b.height)),y.areaBackground===null&&y.background===null&&(fa(y,a,"rgba(0,0,0,0.3)",!0,!1,z,b),a.fillRect(b.x,b.y,b.width,b.height)),y.background!==null&&(a.transform(x.m11,x.m12,x.m21,x.m22,x.dx,x.dy),fa(y,a,y.background,!0,!1,z,b),a.fillRect(0,0,z.width/2,z.height/2),x.ws()||(y=1/(x.m11*x.m22-x.m12*x.m21),a.transform(x.m22*y,-x.m12*y,-x.m21*y,x.m11*y,y*(x.m21*x.dy-x.m22*x.dx),y*(x.m12*x.dx-x.m11*x.dy)))))),E&&(a.restore(),a.Vc(!0))}},Ct.g=function(a,y,x,E,b){var z=this.diagram;z!==null&&z.cb(To,a,this,y,x,E,b)},Ct.oi=function(a,y,x){var E=this.Pa;if(y.Ig=this,this===null&&ms(y),a>=E.count)a=E.count;else if(E.M(a)===y)return-1;return E.Gb(a,y),y.Vo(x),E=this.diagram,E!==null&&(x?E.N():E.oi(y)),ff(this,a,y),a},Ct.pc=function(a,y,x){if(!x&&y.layer!==this&&y.layer!==null)return y.layer.pc(a,y,x);var E=this.Pa;if(0>a||a>=E.length){if(a=E.indexOf(y),0>a)return-1}else if(E.M(a)!==y&&(a=E.indexOf(y),0>a))return-1;return y.Wo(x),E.mb(a),E=this.diagram,E!==null&&(x?E.N():E.pc(y)),y.Ig=null,ms(y),a};function ff(a,y,x){if(y=Jp(a,y,x),x instanceof Tr&&x!==null&&isNaN(x.zOrder)){if(x.memberParts.count!==0){for(var E=-1,b=a.Pa.s,z=b.length,tt=0;tt<z;tt++){var rt=b[tt];if(rt===x&&(y=tt,0<=E)||0>E&&rt.containingGroup===x&&(E=tt,0<=y))break}!(0>E)&&E<y&&(b=a.Pa,b.mb(y),b.Gb(E,x))}y=x.containingGroup,y!==null&&ff(a,-1,y)}x.svg!==null&&x.svg.remove()}function Jp(a,y,x){var E=x.zOrder;if(isNaN(E))return y;a=a.Pa;var b=a.count;if(1>=b)return y;if(0>y&&(y=a.indexOf(x)),0>y)return-1;for(var z=y-1,tt=NaN;0<=z&&(tt=a.M(z).zOrder,!!isNaN(tt));)z--;for(var rt=y+1,ot=NaN;rt<b&&(ot=a.M(rt).zOrder,!!isNaN(ot));)rt++;if(!isNaN(tt)&&tt>E)for(;;){if(z===-1||tt<=E){if(z++,z===y)break;return a.mb(y),a.Gb(z,x),z}for(tt=NaN;0<=--z&&(tt=a.M(z).zOrder,isNaN(tt)););}else if(!isNaN(ot)&&ot<E)for(;;){if(rt===b||ot>=E){if(rt--,rt===y)break;return a.mb(y),a.Gb(rt,x),rt}for(ot=NaN;++rt<b&&(ot=a.M(rt).zOrder,isNaN(ot)););}return y}xe.Object.defineProperties(Xa.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(a){var y=this.xa;if(y!==a){var x=this.diagram;if(x!==null)for(y===""&&ee("Cannot rename default Layer to: "+a),x=x.layers;x.next();)x.value.name===a&&ee("Layer.name is already present in this diagram: "+a);for(this.xa=a,this.g("name",y,a),a=this.Pa.iterator;a.next();)a.value.layerName=this.xa}}},opacity:{get:function(){return this.pb},set:function(a){var y=this.pb;y!==a&&((0>a||1<a)&&Vn(a,"0 <= value <= 1",Xa,"opacity"),this.pb=a,this.g("opacity",y,a),a=this.diagram,a!==null&&a.N())}},isTemporary:{get:function(){return this.o},set:function(a){var y=this.o;y!==a&&((this.o=a)&&(this.isInDocumentBounds=!1),this.g("isTemporary",y,a))}},visible:{get:function(){return this.u},set:function(a){var y=this.u;if(y!==a){for(this.u=a,this.g("visible",y,a),y=this.Pa.iterator;y.next();)y.value.Zb(a);a=this.diagram,a!==null&&a.N()}}},pickable:{get:function(){return this.Uh},set:function(a){var y=this.Uh;y!==a&&(this.Uh=a,this.g("pickable",y,a))}},isInDocumentBounds:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a,this.diagram!==null&&this.diagram.Ya())}},allowCopy:{get:function(){return this.Fi},set:function(a){var y=this.Fi;y!==a&&(this.Fi=a,this.g("allowCopy",y,a))}},allowDelete:{get:function(){return this.Gi},set:function(a){var y=this.Gi;y!==a&&(this.Gi=a,this.g("allowDelete",y,a))}},allowTextEdit:{get:function(){return this.Pi},set:function(a){var y=this.Pi;y!==a&&(this.Pi=a,this.g("allowTextEdit",y,a))}},allowGroup:{get:function(){return this.Hi},set:function(a){var y=this.Hi;y!==a&&(this.Hi=a,this.g("allowGroup",y,a))}},allowUngroup:{get:function(){return this.Qi},set:function(a){var y=this.Qi;y!==a&&(this.Qi=a,this.g("allowUngroup",y,a))}},allowLink:{get:function(){return this.Ii},set:function(a){var y=this.Ii;y!==a&&(this.Ii=a,this.g("allowLink",y,a))}},allowRelink:{get:function(){return this.Ki},set:function(a){var y=this.Ki;y!==a&&(this.Ki=a,this.g("allowRelink",y,a))}},allowMove:{get:function(){return this.Ji},set:function(a){var y=this.Ji;y!==a&&(this.Ji=a,this.g("allowMove",y,a))}},allowReshape:{get:function(){return this.Li},set:function(a){var y=this.Li;y!==a&&(this.Li=a,this.g("allowReshape",y,a))}},allowResize:{get:function(){return this.Mi},set:function(a){var y=this.Mi;y!==a&&(this.Mi=a,this.g("allowResize",y,a))}},allowRotate:{get:function(){return this.Ni},set:function(a){var y=this.Ni;y!==a&&(this.Ni=a,this.g("allowRotate",y,a))}},allowSelect:{get:function(){return this.Oi},set:function(a){var y=this.Oi;y!==a&&(this.Oi=a,this.g("allowSelect",y,a))}}}),Xa.prototype.findObjectsNear=Xa.prototype.og,Xa.prototype.findObjectsIn=Xa.prototype.Cf,Xa.prototype.findObjectsAt=Xa.prototype.ji,Xa.prototype.findObjectAt=Xa.prototype.ic,Xa.className="Layer";function Qe(a,y){if(hm||(gs(),hm=!0),wi(this),Tu=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,da){var x=this,E=function(){x.removeEventListener(Sn.document,"DOMContentLoaded",E,!1),x.setRTL()};Sn.document.body!==null?this.setRTL():x.addEventListener(Sn.document,"DOMContentLoaded",E,!1)}this.ol=null,Ef.add("Model",Co);var b=this;return this.Hb=function(z){var tt=b.partManager;if(z.model===tt.diagram.model&&tt.diagram.aa){tt.diagram.aa=!1;try{var rt=z.change;z.modelChange===""&&rt===To&&tt.updateDataBindings(z.object,z.propertyName)}finally{tt.diagram.aa=!0}}},this.Oc=function(z){b.partManager.doModelChanged(z)},this.hu=this.ku=null,Qp(this),this.model=gy(),this.Wg=!0,$p(this),this.layout=new ea,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 dm,a!==void 0&&(typeof a=="string"||Sn.Element&&a instanceof Element?wg(this,a):y=a),this.vb=!1,y&&this.nm(y),this}var nd,Tu;function Qp(a){a.Yd=new $s,a.Yd.Xe(a),a.Db=17,a.Gw=!1,a.tn=!1,a.bu="default",a.Wa=new cn,a.pj=new on,a.nl="default",a.Tx(),a.Sx(),a.pb=1,a.pa=new Bt(NaN,NaN).freeze(),a.du=new Bt(NaN,NaN),a.Ca=1,a.Pp=1,a.zt=new Bt(NaN,NaN).freeze(),a.At=NaN,a.Ot=1e-4,a.Mt=100,a.Ab=new Ei,a.zu=new Bt(NaN,NaN).freeze(),a.ut=new ue(NaN,NaN,NaN,NaN).freeze(),a.rj=new Di(0,0,0,0).freeze(),a.sj=Ah,a.nu=!1,a.Zt=null,a.fu=null,a.yh=ys,a.zk=bo,a.Fg=ys,a.pq=bo,a.yt=ar,a.Bt=ar,a.Fc=!0,a.pn=!1,a.De=new xn,a.Eh=new on,a.Xm=!0,a.vp=250,a.vk=-1,a.xp=new Di(16,16,16,16).freeze(),a.kg=!1,a.Jk=!1,a.fn=!0,a.bq=new za,a.bq.diagram=a,a.Qg=new za,a.Qg.diagram=a,a.cj=new za,a.cj.diagram=a,a.zg=null,a.pf=null,a.qu=!1,ov(a),a.ai=new xn,a.Ht=!0,a.uu=Lh,a.pw=!1,a.wu=kc,a.it="auto",a.Op="auto",a.zh=null,a.Fh=null,a.Bh=null,a.Qh=null,a.Oh=null,a.Nh=null,a.Qt=null,a.Lh=null,a.xt=!1,a.Mh=null,a.Ph=null,a.$h=null,a.Ch=null,a.Rt=!1,a.Yt={},a.oj=[null,null],a.Wg=!1,a.Iw=!1,a.ou=!1,a.lt=!1,a.rw=!0,a.ld=!1,a.$i=!1,a.Tw=!0,a.Ce=-2,a.Og=new on,a.Xn=new cn,a.Gg=!1,a.Jd=!0,a.Us=!0,a.Fi=!0,a.Gi=!0,a.Vs=!1,a.Ws=!0,a.Pi=!0,a.Hi=!0,a.Qi=!0,a.Ys=!0,a.Ii=!0,a.Ki=!0,a.Ji=!0,a.Li=!0,a.Mi=!0,a.Ni=!0,a.Oi=!0,a.Zs=!0,a.at=!0,a.qw=!1,a.Vk=!1,a.mn=!0,a.nn=!0,a.Xs=!0,a.$s=!0,a.iu=16,a.mu=16,a.qr=!1,a.gu=!1,a.lu=0,a.ju=0,a.yb=new Di(5).freeze(),a.Hw=new xn().freeze(),a.Nt=999999999,a.nw=new xn().freeze(),a.Zi=!0,a.Ee=!0,a.vd=!0,a.Be=!1,a.gf=!1,a.xh=!0,a.hf=!1,a.sy=new xn,a.ow=new xn,a.Xh=null,a.aw=new zt(8,8),a.bw=999,a.Bw=1,a.Jw=0,a.fc={scale:1,position:new Bt,bounds:new ue,Py:new zt,bA:new zt,Oz:!1},a.fc.canvasSize=a.fc.Py,a.fc.newCanvasSize=a.fc.bA,a.fc.isScroll=!1,a.Rw=new ue(NaN,NaN,NaN,NaN).freeze(),a.wo=new zt(NaN,NaN).freeze(),a.Sp=new ue(NaN,NaN,NaN,NaN).freeze(),a.It=!1,a.Lg=new on;var y=new bi,x=new Ro;x.bind(new Ea("text","",Zi)),y.add(x),a.ny=y,a.Lg.add("",y),y=new bi,x=new Ro,x.stroke="brown",x.bind(new Ea("text","",Zi)),y.add(x),a.Lg.add("Comment",y),y=new bi,y.selectable=!1,y.avoidable=!1,x=new Wr,x.figure="Ellipse",x.fill="black",x.stroke=null,x.desiredSize=new zt(3,3).ja(),y.add(x),a.Lg.add("LinkLabel",y),a.Yi=new on,y=new Tr,y.selectionObjectName="GROUPPANEL",y.type=ei.Vertical,x=new Ro,x.font="bold 12pt sans-serif",x.bind(new Ea("text","",Zi)),y.add(x),x=new ei(ei.Auto),x.name="GROUPPANEL";var E=new Wr;E.figure="Rectangle",E.fill="rgba(128,128,128,0.2)",E.stroke="black",x.add(E),E=new Ms,E.padding=new Di(5,5,5,5).ja(),x.add(E),y.add(x),a.ly=y,a.Yi.add("",y),a.Kh=new on,y=new di,x=new Wr,x.isPanelMain=!0,y.add(x),x=new Wr,x.toArrow="Standard",x.fill="black",x.stroke=null,x.strokeWidth=0,y.add(x),a.my=y,a.Kh.add("",y),y=new di,x=new Wr,x.isPanelMain=!0,x.stroke="brown",y.add(x),a.Kh.add("Comment",y),y=new uo,y.type=ei.Auto,x=new Wr,x.fill=null,x.stroke="dodgerblue",x.strokeWidth=3,y.add(x),x=new Ms,x.margin=new Di(1.5,1.5,1.5,1.5).ja(),y.add(x),a.St=y,a.wt=y,y=new uo,y.type=ei.Link,x=new Wr,x.isPanelMain=!0,x.fill=null,x.stroke="dodgerblue",x.strokeWidth=3,y.add(x),a.Kt=y,a.fe=null,a.mq=!1,a.Ck=null,a.partManager=new Co,a.toolManager=new Lo,a.toolManager.initializeStandardTools(),a.defaultTool=a.toolManager,a.currentTool=a.defaultTool,a.nt=null,a.Wm=new at,a.Vt=null,a.Wt=null,a.Mr=!1,a.commandHandler=qp(),a.eq=null,a.fq=rn,a.Pw=!1,a.Mb=1,a.Yh=null,a.Oq=1,a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0,a.yq=1,a.tw=0,a.uw=new Bt,a.zy=500,a.wp=new Bt,a.wq=!1}Qe.prototype.clear=function(){this.animationManager.Cc(),this.model.clear(),Gd=null,sd="",xg(this,!1),this.Xn.clear(),Rf(),this.Og.clear(),this.Xh=null,this.Ya(),this.Va(),this.N()};function xg(a,y){a.animationManager.Cc(!0),a.Hw=new xn().freeze(),a.nw=new xn().freeze();var x=a.skipsUndoManager,E=a.cc!==null&&a.cc!==void 0;E&&(a.skipsUndoManager=!0);var b=null;a.fe!==null&&(b=a.fe.part,b!==null&&a.remove(b));var z=[],tt=a.Wa.length;if(y){for(y=0;y<tt;y++)for(var rt=a.Wa.s[y].parts;rt.next();){var ot=rt.value;ot!==b&&ot.data===null&&z.push(ot)}for(y=0;y<z.length;y++)a.remove(z[y])}for(y=0;y<tt;y++)a.Wa.s[y].clear();return a.partManager.clear(),a.De.clear(),a.Eh.clear(),a.ai.clear(),a.Ck=null,a.Xn.clear(),Rf(),a.Og.clear(),Hr=[],b!==null&&(a.add(b),a.partManager.parts.remove(b)),E&&(a.skipsUndoManager=x),z}function qp(){return null}Qe.prototype.reset=function(){this.clear(),this.vb=!0,Qp(this),Eu(this),this.Wg=!0,$p(this),this.layout=new ea,this.Wg=!1,this.model=gy(),this.model.undoManager=new qo,this.vb=this.rn=!1,this.N()},Qe.prototype.setRTL=function(a){a=a===void 0?this.div:a,a===null&&(a=Sn.document.body);var y=hi("div");y.dir="rtl",y.style.cssText="font-size: 14px; width: 1px; height: 1px; position: absolute; top: -1000px; overflow: scroll;",y.textContent="A",a.appendChild(y);var x="reverse";0<y.scrollLeft?x="default":(y.scrollLeft=1,y.scrollLeft===0&&(x="negative")),a.removeChild(y),this.bu=x},Qe.prototype.setScrollWidth=function(a){a=a===void 0?this.div:a,a===null&&(a=Sn.document.body);var y=0;if(da){var x=um;y=nd,x===null&&(x=um=hi("p"),x.style.width="100%",x.style.height="200px",x.style.boxSizing="content-box",y=nd=hi("div"),y.style.position="absolute",y.style.visibility="hidden",y.style.width="200px",y.style.height="150px",y.style.boxSizing="content-box",y.appendChild(x)),y.style.overflow="hidden",a.appendChild(y);var E=x.offsetWidth;y.style.overflow="scroll",x=x.offsetWidth,E===x&&(x=y.clientWidth),a.removeChild(y),y=E-x,y!==0||Lr||(y=11)}this.Db=y,this.Gw=!0},Qe.prototype.qb=function(a){a.classType===Qe&&(this.autoScale=a)},Qe.prototype.toString=function(a){a===void 0&&(a=0);var y="";if(this.div&&this.div.id&&(y=this.div.id),y='Diagram "'+y+'"',0>=a)return y;for(var x=this.Wa.iterator;x.next();)y+=`
`+x.value.toString(a-1);return y};function wg(a,y){if(da){if(y!=null||ee("Diagram setup requires an argument DIV."),a.Ka!==null&&ee("Diagram has already completed setup."),typeof y=="string"?a.Ka=Sn.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:ee("No DIV or DIV id supplied: "+y),a.Ka===null&&ee("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&ee("Invalid div id; div already has a Diagram associated with it."),!a.ol&&Sn.ResizeObserver){var x=fe(function(){a.$b()},250);a.ol=new Sn.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}Sn.getComputedStyle(a.Ka,null).position==="static"&&(a.Ka.style.position="relative"),y=5;var E="rgba(2"+y+"5, 255, 255, 0)";y--,a.Ka.style["-webkit-tap-highlight-color"]=E,a.Ka.innerHTML="",a.Ka.H=a,a.Ka.goDiagram=a,a.Ka.go=Sn.go;var b=new zl(a);if(b.style!==void 0&&(b.style.position="absolute",b.style.top="0px",b.style.left="0px",Sn.getComputedStyle(a.Ka,null).getPropertyValue("direction")==="rtl"&&(a.tn=!0),b.style.zIndex="2",b.style.userSelect="none",b.style.MozUserSelect="none",b.style.touchAction="none",b.style.letterSpacing="normal !important",b.style.wordSpacing="normal !important"),a.ta=b,a.ib=b.context,E=a.ib,a.Mb=a.computePixelRatio(),a.viewSize.w()||(a.Aa=a.Ka.clientWidth||1,a.ya=a.Ka.clientHeight||1),kg(a,a.Aa,a.ya),a.Ka.insertBefore(b.Oa,a.Ka.firstChild),b=new zl(null),b.width=1,b.height=1,a.jw=b,a.oy=b.context,da){b=hi("div");var z=hi("div");b.style.position="absolute",b.style.overflow="auto",b.style.width=a.Aa+"px",b.style.height=a.ya+"px",b.style.zIndex="1",z.style.position="absolute",z.style.width="1px",z.style.height="1px",a.Ka.appendChild(b),b.appendChild(z),b.onscroll=em,b.addEventListener("pointerdown",nm),b.H=a,b.uy=!0,b.vy=!0,a.ku=b,a.hu=z}a.hk=fe(function(){a.Yh=null,a.N()},300),a.Ov=fe(function(){Pg(a)},250),a.preventDefault=function(tt){return tt.preventDefault(),!1},a.$j=function(tt){if(a.isEnabled){var rt=xl(a,tt,!0);rt.bubbles=!0;var ot=0,st=0;rt.delta=0,tt.deltaX!==void 0?(tt.deltaX!==0&&(ot=0<tt.deltaX?1:-1),tt.deltaY!==0&&(st=0<tt.deltaY?1:-1),rt.delta=Math.abs(tt.deltaX)>Math.abs(tt.deltaY)?-ot:-st):tt.wheelDeltaX!==void 0?(tt.wheelDeltaX!==0&&(ot=0<tt.wheelDeltaX?-1:1),tt.wheelDeltaY!==0&&(st=0<tt.wheelDeltaY?-1:1),rt.delta=Math.abs(tt.wheelDeltaX)>Math.abs(tt.wheelDeltaY)?-ot:-st):tt.wheelDelta!==void 0&&tt.wheelDelta!==0&&(rt.delta=0<tt.wheelDelta?1:-1),a.doMouseWheel(),_l(rt,tt)}},a.aA=function(tt){a.isEnabled&&(a.Vk=!1,xl(a,tt,!0),tt=a.currentTool,tt.cancelWaitAfter(),tt.standardMouseOver())},a.ui=function(tt){if(a.isEnabled){a.Vk=!0;var rt=a.Yt;rt[tt.pointerId]===void 0&&(rt[tt.pointerId]=tt),rt=a.oj;var ot=!1;if(rt[0]===null||rt[0].pointerId!==tt.pointerId&&rt[0].pointerType===tt.pointerType)if(rt[1]!==null&&rt[1].pointerId===tt.pointerId)rt[1]=tt,ot=!0;else if(rt[0]===null)rt[0]=tt;else if(rt[1]===null)rt[1]=tt,ot=!0;else{tt.preventDefault();return}else rt[0]=tt;(rt=tt.pointerType==="touch"||tt.pointerType==="pen")&&(a.qu=!1,a.wq=!0);var st=ot;ot=Lg(a,tt,!0,!1,!0,st),jd(a,tt,ot),ot.targetDiagram=Ag(tt,tt.target),ot.targetObject=null,st||ot.clone(a.bq),st=a.uw,rt=rt?25:10,tt.timeStamp-a.tw<a.zy&&!(Math.abs(st.x-tt.screenX)>rt||Math.abs(st.y-tt.screenY)>rt)?a.yq++:a.yq=1,ot.clickCount=a.yq,a.tw=tt.timeStamp,a.uw.sg(tt.screenX,tt.screenY),a.doMouseDown(),tt.button===1?tt.preventDefault():_l(ot,tt)}},a.dk=function(tt){if(a.isEnabled){a.Vk=!0;var rt=a.oj;if(rt[0]===null||rt[0].pointerId!==tt.pointerId&&rt[0].pointerType===tt.pointerType){if(rt[1]!==null&&rt[1].pointerId===tt.pointerId){rt[1]=tt;return}if(rt[0]===null)rt[0]=tt;else return}else rt[0]=tt;if(rt[0].pointerId===tt.pointerId){rt=Lg(a,tt,!1,!1,!1,rt[1]!==null);var ot=Sn.document.elementFromPoint(tt.clientX,tt.clientY)||null;ot!==null&&ot.shadowRoot!==void 0&&ot.shadowRoot!==null&&(ot=ot.shadowRoot.elementFromPoint(tt.clientX,tt.clientY));var st=a,ut=tt;ot&&ot.H&&(ut=tt,st=ot.H),rt.targetDiagram=st,jd(a,ut,rt),rt.targetObject=null,a.doMouseMove(),_l(rt,tt)}}},a.fk=function(tt){if(a.isEnabled){a.Vk=!0;var rt=tt.pointerType==="touch"||tt.pointerType==="pen",ot=a.Yt;if(rt&&a.qu)delete ot[tt.pointerId],tt.preventDefault();else if(ot=a.oj,ot[0]===null||ot[0].pointerId!==tt.pointerId&&ot[0].pointerType===tt.pointerType)ot[1]!==null&&ot[1].pointerId===tt.pointerId&&(ot[1]=null);else{ot[0]=null,ot=Lg(a,tt,!1,!0,!0,!1);var st=Sn.document.elementFromPoint(tt.clientX,tt.clientY)||null;st!==null&&st.shadowRoot!==void 0&&st.shadowRoot!==null&&(st=st.shadowRoot.elementFromPoint(tt.clientX,tt.clientY)),st!==null&&st.H instanceof Qe&&st.H!==a&&jd(st.H,tt,ot),st===null&&(st=tt.target),jd(a,tt,ot),ot.clickCount=a.yq,ot.targetDiagram=Ag(tt,st),ot.targetObject=null,a.doMouseUp(),_l(ot,tt),rt&&(a.wq=!1)}}},a.ek=function(tt){if(a.isEnabled){a.Vk=!1;var rt=a.Yt;rt[tt.pointerId]&&delete rt[tt.pointerId],rt=a.oj,rt[0]!==null&&rt[0].pointerId===tt.pointerId&&(rt[0]=null),rt[1]!==null&&rt[1].pointerId===tt.pointerId&&(rt[1]=null),tt.pointerType!=="touch"&&tt.pointerType!=="pen"&&(tt=a.currentTool,tt.cancelWaitAfter(),tt.standardMouseOver())}},a.ck=function(tt){var rt=a.oj;rt[0]!==null&&rt[0].pointerId===tt.pointerId?(rt[0]=null,a.wq=!1):rt[1]!==null&&rt[1].pointerId===tt.pointerId&&(rt[1]=null)},a.Vp=E.Z["d"+Nc[1]+Nc[2]+"wI"+Yd.slice(1,5)]["b"+Hx.slice(1,y)](E.Z,Dc,y,y),E.Vc(!0),rv(a),a.nl==="svg"&&(y=a.pj.get("svg"),a.Ka.appendChild(y.Oa),a.ib=y.context)}}Qe.prototype.addEventListener=function(a,y,x,E){a.addEventListener(y,x,{capture:E,passive:!1})},Qe.prototype.removeEventListener=function(a,y,x,E){a.removeEventListener(y,x,{capture:E})};function rv(a){var y=a.ta.Oa;y instanceof HTMLCanvasElement||(y=a.div),a.addEventListener(y,"pointerdown",a.ui,!1),a.addEventListener(y,"pointermove",a.dk,!1),a.addEventListener(y,"pointerup",a.fk,!1),a.addEventListener(y,"pointerout",a.ek,!1),a.addEventListener(y,"pointercancel",a.ck,!1),a.addEventListener(y,"pointerenter",a.bz,!1),a.addEventListener(y,"pointerleave",a.cz,!1),a.addEventListener(y,"wheel",a.$j,!1),a.addEventListener(y,"keydown",a.Qz,!1),a.addEventListener(y,"keyup",a.Rz,!1),a.addEventListener(y,"blur",a.Ny,!1),a.addEventListener(y,"focus",a.Oy,!1),a.addEventListener(y,"selectstart",function(x){return x.preventDefault(),!1},!1),a.addEventListener(y,"contextmenu",function(x){return x.preventDefault(),!1},!1),a.addEventListener(Sn,"resize",a.Ov,!1)}function Is(a){30<a.Sq&&(a.Yh=1)}function Ec(a,y){a.Yh!==null&&(a.Yh=null,y&&a.hk(),qi&&qi.nx||(a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0))}Qe.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:Sn.devicePixelRatio||1},Qe.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},Qe.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},Qe.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},Qe.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},Qe.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},Qe.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},Qe.prototype.doFocus=function(){this.focus()},Qe.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var a=Sn.scrollX||Sn.pageXOffset,y=Sn.scrollY||Sn.pageYOffset;this.ta.focus(),Sn.scrollTo(a,y)}},Qe.prototype.Oy=function(){this.H.R("GainedFocus")},Qe.prototype.Ny=function(){this.H.R("LostFocus")};function Pg(a){if(a.ta!==null){var y=a.Ka;if(y!==null&&y.clientWidth!==0&&y.clientHeight!==0){a.Gw||a.setScrollWidth();var x=a.gf?a.Db:0,E=a.Be?a.Db:0,b=a.Mb;a.Mb=a.computePixelRatio(),a.Mb!==b&&(a.pn=!0,a.$b()),(y.clientWidth!==a.Aa+x||y.clientHeight!==a.ya+E)&&(a.Ee=!0,a.Fc=!0,y=a.layout,y!==null&&y.isViewportSized&&a.autoScale===ys&&(a.Jk=!0,y.C()),a.ld||a.$b())}}}function $p(a){var y=new Xa;y.name="Background",a.Al(y),y=new Xa,y.name="",a.Al(y),y=new Xa,y.name="Foreground",a.Al(y),y=new Xa,y.name="Adornment",y.isTemporary=!0,y.isInDocumentBounds=!1,a.Al(y),y=new Xa,y.name="Tool",y.isTemporary=!0,y.isInDocumentBounds=!0,a.Al(y),y=new Xa,y.name="Grid",y.allowSelect=!1,y.pickable=!1,y.isTemporary=!0,y.isInDocumentBounds=!1,a.Ww(y,a.Qj("Background"))}function tm(a){var y=new ei(ei.Grid);y.name="GRID";var x=new Wr;return x.figure="LineH",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new Wr,x.figure="LineH",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new Wr,x.figure="LineH",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new Wr,x.figure="LineV",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new Wr,x.figure="LineV",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new Wr,x.figure="LineV",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new rr,x.add(y),x.layerName="Grid",x.zOrder=0,x.isInDocumentBounds=!1,x.isAnimated=!1,x.pickable=!1,x.locationObjectName="GRID",a.add(x),a.partManager.parts.remove(x),y.visible=!1,y}function em(){this.H.gu?this.H.gu=!1:this.H.isEnabled?this.H.kx(this):Zd(this.H)}function nm(a){this.H.isEnabled?(this.H.lu=a.target.scrollTop,this.H.ju=a.target.scrollLeft):Zd(this.H)}Qe.prototype.kx=function(a){if(this.ta!==null){var y=this.ku,x=this.hu;this.qr=!0;var E=this.documentBounds,b=this.viewportBounds,z=this.rj,tt=E.x-z.left,rt=E.y-z.top,ot=E.width+z.left+z.right,st=E.height+z.top+z.bottom,ut=E.right+z.right;z=E.bottom+z.bottom;var ft=b.x;E=b.y;var vt=b.width,xt=b.height,Pt=b.right,Ft=b.bottom;b=this.scale;var Xt=a.scrollLeft;if(this.tn)switch(this.bu){case"negative":Xt=Xt+a.scrollWidth-a.clientWidth;break;case"reverse":Xt=a.scrollWidth-Xt-a.clientWidth}var Wt=Xt;vt<ot||xt<st?(Xt=Bt.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==Wt&&(Xt.x=Wt/b+tt,this.ju=Wt),this.allowVerticalScroll&&this.lu!==a.scrollTop&&(Xt.y=a.scrollTop/b+rt,this.lu=a.scrollTop),this.position=Xt,Bt.free(Xt),this.Ee=this.qr=!1):(Xt=Bt.alloc(),a.uy&&this.allowHorizontalScroll&&(tt<ft&&(this.position=Xt.h(Wt+tt,this.position.y)),ut>Pt&&(this.position=Xt.h(-(y.scrollWidth-this.Aa)+Wt-this.Aa/b+ut,this.position.y))),a.vy&&this.allowVerticalScroll&&(rt<E&&(this.position=Xt.h(this.position.x,a.scrollTop+rt)),z>Ft&&(this.position=Xt.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/b+z))),Bt.free(Xt),this.vd=!0,this.Ee=this.qr=!1,E=this.documentBounds,b=this.viewportBounds,ut=E.right,Pt=b.right,z=E.bottom,Ft=b.bottom,tt=E.x,ft=b.x,rt=E.y,E=b.y,vt>=ot&&tt>=ft&&ut<=Pt&&(x.style.width="1px"),xt>=st&&rt>=E&&z<=Ft&&(x.style.height="1px"))}},Qe.prototype.computeBounds=function(a){return a===void 0&&(a=new ue),ss(this),Cg(this,a)};function Cg(a,y){if(a.fixedBounds.w())return y.assign(a.fixedBounds),y.Co(a.yb),y;for(var x=!0,E=a.Wa.s,b=E.length,z=0;z<b;z++){var tt=E[z];if(tt.visible&&tt.isInDocumentBounds){tt=tt.Pa.s;for(var rt=tt.length,ot=0;ot<rt;ot++){var st=tt[ot];st.isInDocumentBounds&&st.isVisible()&&(st=st.actualBounds,st.w()&&(x?(x=!1,y.assign(st)):y.ed(st)))}}}return x&&y.h(0,0,0,0),y.Co(a.yb),y}Qe.prototype.computePartsBounds=function(a,y){y===void 0&&(y=!1);var x=null;if(Gn(a))for(var E=0;E<a.length;E++){var b=a[E];!y&&b instanceof di||(b.Va(),x===null?x=b.actualBounds.copy():x.ed(b.actualBounds))}else for(a=a.iterator;a.next();)E=a.value,!y&&E instanceof di||(E.Va(),x===null?x=E.actualBounds.copy():x.ed(E.actualBounds));return x===null?new ue(NaN,NaN,0,0):x};function Il(a,y){if((y||a.hf)&&!a.vb&&a.ta!==null&&a.documentBounds.w()){if(a.vb=!0,y){var x=a.initialPosition;if(x.w()){a.vb=!1,a.position=x;return}x=Bt.alloc(),x.xi(a.documentBounds,a.initialDocumentSpot);var E=a.viewportBounds;E=ue.allocAt(0,0,E.width,E.height);var b=Bt.alloc();b.xi(E,a.initialViewportSpot),b.h(x.x-b.x,x.y-b.y),a.position=b,ue.free(E),Bt.free(b),Bt.free(x)}x=a.yh,y&&a.Fg!==ys&&(x=a.Fg);var z=x!==ys?zd(a,x):a.scale;x=a.pa.x,E=a.pa.y,b=a.Aa/z;var tt=a.ya/z,rt=a.zk,ot=a.pq;y&&!rt.sb()&&(ot.sb()||ot.Xb())&&(rt=ot.Xb()?Ri:ot),Eg(a,a.documentBounds,b,tt,rt,y),y=a.scale,a.scale=z,a.vb=!1,z=a.viewportBounds,me.B(z.x,x)&&me.B(z.y,E)&&me.B(z.width,b)&&me.B(z.height,tt)||a.onViewportBoundsChanged(new ue(x,E,b,tt),z,y,!1)}}function zd(a,y){var x=a.Pp;if(a.ta===null)return x;a.Va();var E=a.documentBounds;if(!E.w())return x;var b=E.width;E=E.height;var z=a.Aa+(a.gf?a.Db:0),tt=a.ya+(a.Be?a.Db:0),rt=z/b,ot=tt/E;return y===ll?(y=Math.min(ot,rt),y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):y===ld?(y=ot>rt?(tt-a.Db)/E:(z-a.Db)/b,y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):a.scale}Qe.prototype.zoomToFit=function(){var a=this.sj;this.sj=Ah,this.scale=zd(this,ll),a!==Ah&&(Il(this,!1),Eg(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},Ct=Qe.prototype,Ct.BA=function(a,y){y===void 0&&(y=ll);var x=a.width,E=a.height;if(!(x===0||E===0||isNaN(x)&&isNaN(E))){var b=1;if(y===ll||y===ld)if(isNaN(x))b=this.viewportBounds.height*this.scale/E;else if(isNaN(E))b=this.viewportBounds.width*this.scale/x;else{b=this.Aa;var z=this.ya;b=y===ld?z/E>b/x?(z-(this.Be?this.Db:0))/E:(b-(this.gf?this.Db:0))/x:Math.min(z/E,b/x)}this.scale=b,this.position=new Bt(a.x,a.y)}},Ct.Jy=function(a,y){this.Va();var x=this.documentBounds,E=this.viewportBounds;this.position=new Bt(x.x+(a.x*x.width+a.offsetX)-(y.x*E.width-y.offsetX),x.y+(a.y*x.height+a.offsetY)-(y.y*E.height-y.offsetY))},Ct.zz=function(a){if(a instanceof Me){this.eq=a;var y=Bt.alloc();this.fq=this.op(a.ga(ar,y)),Bt.free(y)}else this.eq=null,this.fq=rn};function Eg(a,y,x,E,b,z){var tt=Bt.allocAt(a.pa.x,a.pa.y),rt=tt.x,ot=tt.y;if(a.eq!==null){var st=Bt.alloc();st=a.eq.ga(ar,st),rt=st.x-a.fq.x/a.scale,ot=st.y-a.fq.y/a.scale,b=_i,Bt.free(st)}(z||a.scrollMode===Ah)&&(b.sb()&&(x>y.width&&(rt=y.x+(b.x*y.width+b.offsetX)-(b.x*x-b.offsetX)),E>y.height&&(ot=y.y+(b.y*y.height+b.offsetY)-(b.y*E-b.offsetY))),b=a.rj,z=x-y.width,x<y.width+b.left+b.right?(rt=Math.min(rt+x/2,y.right+Math.max(z,b.right)-x/2),rt=Math.max(rt,y.left-Math.max(z,b.left)+x/2),rt-=x/2):rt>y.left?rt=y.left:rt<y.right-x&&(rt=y.right-x),x=E-y.height,E<y.height+b.top+b.bottom?(ot=Math.min(ot+E/2,y.bottom+Math.max(x,b.bottom)-E/2),ot=Math.max(ot,y.top-Math.max(x,b.top)+E/2),ot-=E/2):ot>y.top?ot=y.top:ot<y.bottom-E&&(ot=y.bottom-E)),tt.x=isFinite(rt)?rt:-a.yb.left,tt.y=isFinite(ot)?ot:-a.yb.top,a.positionComputation!==null&&(y=a.positionComputation(a,tt),tt.x=y.x,tt.y=y.y),Yp(a.Yd,a.pa,tt),a.pa.h(tt.x,tt.y),Eu(a),Bt.free(tt)}Ct.Ol=function(a,y){if(y===void 0&&(y=!0),y){if(a=Ou(this,a,function(x){return x.part},function(x){return x.canSelect()}),a instanceof rr)return a}else if(a=Ou(this,a,function(x){return x.part}),a instanceof rr)return a;return null},Ct.ic=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null),ss(this);for(var E=this.Wa.iteratorBackwards;E.next();){var b=E.value;if(b.visible&&(b=b.ic(a,y,x),b!==null))return b}return null};function Ou(a,y,x,E){for(x===void 0&&(x=null),E===void 0&&(E=null),ss(a),a=a.Wa.iteratorBackwards;a.next();){var b=a.value;if(b.visible&&!b.isTemporary&&(b=b.ic(y,x,E),b!==null))return b}return null}Ct.lz=function(a,y,x){return y===void 0&&(y=!0),Ac(this,a,function(E){return E.part},y?function(E){return E instanceof rr&&E.canSelect()}:null,x)};function Ac(a,y,x,E,b){for(x===void 0&&(x=null),E===void 0&&(E=null),b instanceof cn||b instanceof xn||(b=new xn),ss(a),a=a.Wa.iteratorBackwards;a.next();){var z=a.value;z.visible&&!z.isTemporary&&z.ji(y,x,E,b)}return b}Ct.ji=function(a,y,x,E){y===void 0&&(y=null),x===void 0&&(x=null),E instanceof cn||E instanceof xn||(E=new xn),ss(this);for(var b=this.Wa.iteratorBackwards;b.next();){var z=b.value;z.visible&&z.ji(a,y,x,E)}return E},Ct.ux=function(a,y,x,E){return y===void 0&&(y=!1),x===void 0&&(x=!0),gf(this,a,function(b){return b instanceof rr&&(!x||b.canSelect())},y,E)},Ct.Cf=function(a,y,x,E,b){y===void 0&&(y=null),x===void 0&&(x=null),E===void 0&&(E=!1),b instanceof cn||b instanceof xn||(b=new xn),ss(this);for(var z=this.Wa.iteratorBackwards;z.next();){var tt=z.value;tt.visible&&tt.Cf(a,y,x,E,b)}return b},Ct.Nu=function(a,y,x,E,b,z){var tt=new xn;ss(this);for(var rt=this.Wa.iteratorBackwards;rt.next();){var ot=rt.value;ot.visible&&ot.Nu(a,y,x,E,tt,b,z)}return tt};function gf(a,y,x,E,b){var z=null;for(z===void 0&&(z=null),x===void 0&&(x=null),E===void 0&&(E=!1),b instanceof cn||b instanceof xn||(b=new xn),ss(a),a=a.Wa.iteratorBackwards;a.next();){var tt=a.value;tt.visible&&!tt.isTemporary&&tt.Cf(y,z,x,E,b)}return b}Ct.mz=function(a,y,x,E,b){return x===void 0&&(x=!0),E===void 0&&(E=!0),Lc(this,a,y,function(z){return z instanceof rr&&(!E||z.canSelect())},x,b)},Ct.og=function(a,y,x,E,b,z){x===void 0&&(x=null),E===void 0&&(E=null),b===void 0&&(b=!0),b!==!1&&b!==!0&&((b instanceof cn||b instanceof xn)&&(z=b),b=!0),z instanceof cn||z instanceof xn||(z=new xn),ss(this);for(var tt=this.Wa.iteratorBackwards;tt.next();){var rt=tt.value;rt.visible&&rt.og(a,y,x,E,b,z)}return z};function Lc(a,y,x,E,b,z){var tt=null;for(tt===void 0&&(tt=null),E===void 0&&(E=null),b===void 0&&(b=!0),b!==!1&&b!==!0&&((b instanceof cn||b instanceof xn)&&(z=b),b=!0),z instanceof cn||z instanceof xn||(z=new xn),ss(a),a=a.Wa.iteratorBackwards;a.next();){var rt=a.value;rt.visible&&!rt.isTemporary&&rt.og(y,x,tt,E,b,z)}return z}Qe.prototype.acceptEvent=function(a){return xl(this,a,a instanceof MouseEvent)};function xl(a,y,x){var E=a.Qg;return a.Qg=a.cj,a.cj=E,E.diagram=a,E.event=y,x?jd(a,y,E):(E.viewPoint=a.Qg.viewPoint,E.documentPoint=a.Qg.documentPoint),a=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),E.modifiers=a,E.button=y.button,y.buttons!==void 0&&(E.buttons=y.buttons),Lr&&y.button===0&&y.ctrlKey&&(E.button=2),E.down=!1,E.up=!1,E.clickCount=1,E.delta=0,E.handled=!1,E.bubbles=!1,E.timestamp=y.timeStamp,E.isMultiTouch=!1,E.targetDiagram=Ag(y,y.target),E.targetObject=null,E}function Ag(a,y){return y===null?null:(y=y.H)?y:((y=a.path)||typeof a.composedPath!="function"||(y=a.composedPath()),y&&y[0]&&y[0].H?y[0].H:null)}function Lg(a,y,x,E,b,z){var tt=a.Qg;return a.Qg=a.cj,a.cj=tt,tt.diagram=a,tt.clickCount=1,a=tt.delta=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),tt.modifiers=a,tt.event=y,tt.timestamp=y.timeStamp,tt.button=y.button,tt.buttons=y.buttons,Lr&&y.button===0&&y.ctrlKey&&(tt.button=2),tt.down=x,tt.up=E,tt.handled=!1,tt.bubbles=b,tt.isMultiTouch=z,tt}function _l(a,y){return a.bubbles?!0:(y.stopPropagation!==void 0&&y.stopPropagation(),y.cancelable!==!1&&y.preventDefault(),y.cancelBubble=!0,!1)}Qe.prototype.Qz=function(a){var y=this.H;if(!this.H.isEnabled)return!1;var x=xl(y,a,!1);switch(x.key=String.fromCharCode(a.which),x.down=!0,a.which){case 8:x.key="Backspace";break;case 33:x.key="PageUp";break;case 34:x.key="PageDown";break;case 35:x.key="End";break;case 36:x.key="Home";break;case 37:x.key="Left";break;case 38:x.key="Up";break;case 39:x.key="Right";break;case 40:x.key="Down";break;case 45:x.key="Insert";break;case 46:x.key="Del";break;case 48:x.key="0";break;case 187:case 61:case 107:x.key="Add";break;case 189:case 173:case 109:x.key="Subtract";break;case 27:x.key="Esc"}return y.doKeyDown(),_l(x,a)},Qe.prototype.Rz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=xl(y,a,!1);switch(x.key=String.fromCharCode(a.which),x.up=!0,a.which){case 8:x.key="Backspace";break;case 33:x.key="PageUp";break;case 34:x.key="PageDown";break;case 35:x.key="End";break;case 36:x.key="Home";break;case 37:x.key="Left";break;case 38:x.key="Up";break;case 39:x.key="Right";break;case 40:x.key="Down";break;case 45:x.key="Insert";break;case 46:x.key="Del"}return y.doKeyUp(),_l(x,a)},Qe.prototype.bz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=xl(y,a,!0);return y.mouseEnter!==null&&y.mouseEnter(x),y.currentTool.standardMouseOver(),_l(x,a)},Qe.prototype.cz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=xl(y,a,!0);return y.mouseLeave!==null&&y.mouseLeave(x),_l(x,a)},Qe.prototype.getMouse=function(a){var y=this.ta;if(y===null)return new Bt(0,0);var x=y.getBoundingClientRect();return y=a.clientX-this.Aa/x.width*x.left,a=a.clientY-this.ya/x.height*x.top,this.Ab!==null?_e(new Bt(y,a),this.Ab):new Bt(y,a)};function jd(a,y,x){var E=a.ta,b=a.Aa,z=a.ya,tt=0,rt=0;E!==null&&(E=E.getBoundingClientRect(),tt=y.clientX-b/E.width*E.left,rt=y.clientY-z/E.height*E.top),x.viewPoint.h(tt,rt),a.Ab!==null?(y=Bt.allocAt(tt,rt),a.Ab.Cd(y),x.documentPoint.assign(y),Bt.free(y)):x.documentPoint.h(tt,rt)}function bg(a,y,x){if(a.oj[0]!==null){y=a.oj[y];var E=a.ta;E!==null&&(E=E.getBoundingClientRect(),x.h(y.clientX-a.Aa/E.width*E.left,y.clientY-a.ya/E.height*E.top))}}Qe.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function im(a){a.ld||ss(a),a.Va()}Qe.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},Ct=Qe.prototype,Ct.Pz=function(){return this.kg},Ct.Xy=function(a){a===void 0&&(a=null);var y=this.animationManager,x=y.isEnabled;y.Cc(),y.isEnabled=!1,wl(this),this.hf=!1,this.du=new Bt(NaN,NaN),y.isEnabled=x,this.ld=!0;var E=this;a!==null&&Te(function(){E.ld=!1,Bu(y,"Model"),a(E)},1)},Ct.$b=function(a){if(a===void 0&&(a=!1),this.kg!==!0&&!(this.vb||a===!1&&this.ld)){this.kg=!0;var y=this;Sn.requestAnimationFrame(function(){y.kg&&y.bd()})}},Ct.bd=function(){(!this.fn||this.kg)&&(this.fn&&(this.fn=!1),wl(this))};function id(a,y,x){!a.Ee||a.vb||a.animationManager.defaultAnimation.isAnimating||Zd(a)||(y&&ss(a),x&&Il(a,!1))}function wl(a,y){if(!a.ld&&(a.kg=!1,a.Ka!==null||a.wo.w())){a.ld=!0;var x=a.animationManager,E=a.Xn;if(!x.isAnimating&&E.length!==0){for(var b=E.s,z=b.length,tt=0;tt<z;tt++){var rt=b[tt];Fa(rt,!1),rt.v()}E.clear()}E=a.ow,0<E.count&&(E.each(function(ot){ot.Nv()}),E.clear()),b=E=!1,x.defaultAnimation.isAnimating&&(b=!0,E=a.skipsUndoManager,a.skipsUndoManager=!0),x.zb||Pg(a),id(a,!1,!0),a.fe!==null&&(a.fe.visible&&!a.mq&&(Cu(a),a.mq=!0),!a.fe.visible&&a.mq&&(a.mq=!1)),ss(a),z=!1,(!a.hf||a.xh)&&(a.hf?Rg(a,!a.Jk):(a.Ea("Initial Layout"),x.isEnabled===!1&&x.Cc(),Rg(a,!1)),z=!0),a.Jk=!1,ss(a),a.ou||im(a),id(a,!0,!1),tt=!1,z?(x=ue.alloc(),x.assign(a.viewportBounds),a.hf||(tt=a.hf=!0,a.skipsUndoManager||(a.undoManager.isPendingClear=!0),a.undoManager.isPendingUnmodified=!0,Mg(a)),a.R("LayoutCompleted"),id(a,!0,!1),ue.free(x)):x.Ok&&x.Qw&&(a.Fg!==ys?a.scale=zd(a,a.Fg):a.yh!==ys?a.scale=zd(a,a.yh):(x=a.initialScale,isFinite(x)&&0<x&&(a.scale=x)),Il(a,!0)),z&&tt&&a.eb("Initial Layout"),ss(a),y||a.gc(a.ib),b&&(a.skipsUndoManager=E),a.ld=!1}}function Mg(a){if(a.Fg!==ys)a.scale=zd(a,a.Fg);else if(a.yh!==ys)a.scale=zd(a,a.yh);else{var y=a.initialScale;isFinite(y)&&0<y&&(a.scale=y)}Il(a,!0),y=a.Wa.s,a.Fd(y,y.length,a,a.viewportBounds),a.R("InitialLayoutCompleted"),a.du.assign(a.pa),Cu(a)}function ss(a){if(a.De.count!==0&&(a.ld||!a.animationManager.isTicking)){for(var y=0;23>y;y++){var x=a.De.iterator;if(x===null||a.De.count===0)break;a.De=new xn,a.Nv(x,a.De)}a.nodes.each(function(E){E instanceof Tr&&E.U&65536&&(E.U=E.U^65536)})}}Ct.Nv=function(a,y){for(a.reset();a.next();){var x=a.value;!x.Zc()||x instanceof Tr||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof Tr&&x.isVisible()&&bc(this,x);for(a.reset();a.next();)x=a.value,x instanceof di&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x));for(a.reset();a.next();)x=a.value,x instanceof uo&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function bc(a,y){for(var x=xi(),E=xi(),b=y.memberParts;b.next();){var z=b.value;z.isVisible()&&(z instanceof Tr?(hl(z)||Ls(z)||hd(z))&&bc(a,z):z instanceof di?z.fromNode===y||z.toNode===y?E.push(z):x.push(z):(z.measure(1/0,1/0),z.arrange()))}for(a=x.length,b=0;b<a;b++)z=x[b],z.measure(1/0,1/0),z.arrange();for(gi(x),y.measure(1/0,1/0),y.arrange(),a=E.length,y=0;y<a;y++)x=E[y],x.measure(1/0,1/0),x.arrange();gi(E)}Ct.Fd=function(a,y,x,E){if(this.vd||this.animationManager.isAnimating)for(var b=0;b<y;b++)a[b].Fd(x,E)},Ct.gc=function(a){if(this.Ka!==null){if(this.ta===null&&ee("No canvas specified"),this.nl==="svg"){if(this.Ka!==null){var y=this.animationManager;if(!y.zb&&(!y.isAnimating||y.isTicking)){Hd(this);var x=this.Aa,E=this.ya;if(a.Gv.resize(x,E,x,E),x=this.Wa.s,E=x.length,this.Fd(x,E,this,this.viewportBounds),this.Fc||y.isAnimating){y=this.pa;var b=this.Ca,z=Math.round(y.x*b)/b,tt=Math.round(y.y*b)/b,rt=this.Ab;for(rt.reset(),b!==1&&rt.scale(b),y.x===0&&y.y===0||rt.translate(-z,-tt),a.ti=null,$y(a,rt.m11,rt.m12,rt.m21,rt.m22,rt.dx,rt.dy),this.pb!==1&&(a.globalAlpha=this.pb),Ch(this,a),y=this.Mb,this.ta.context.setTransform(y,0,0,y,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya),y=0;y<E;y++)x[y].gc(a,this);a=!1,this.Yf?Ud(this.Yf,this)&&(a=this.Vp()):a=!0,a&&(Ei.prototype.Cd=Ei.prototype.Eu),this.Fc=this.vd=!1}}}}else t:if(z=this.animationManager,!z.zb&&(!z.isAnimating||z.isTicking)&&(x=new Date,Hd(this),this.Ka.style.opacity!=="0")){if(E=a!==this.ib,y=this.Wa.s,b=y.length,this.Fd(y,b,this,this.viewportBounds),E)a.Vc(!0),this.vd=!0;else if(!this.Fc&&!z.isAnimating)break t;z=this.Ab,z.reset(),tt=this.Mb,rt=this.pa;var ot=this.Ca,st=Math.round(rt.x*ot)/ot,ut=Math.round(rt.y*ot)/ot;for(ot!==1&&z.scale(ot),rt.x===0&&rt.y===0||z.translate(-st,-ut),a.setTransform(tt,0,0,tt,0,0),a.clearRect(0,0,this.Aa,this.ya),this.pb!==1&&(a.globalAlpha=this.pb),Ch(this,a),rt=0;rt<b;rt++)a.setTransform(tt,0,0,tt,0,0),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),a.yc(),y[rt].gc(a,this);if(y=!1,this.Yf?Ud(this.Yf,this)&&(y=this.Vp()):y=!0,y&&(Ei.prototype.Cd=Ei.prototype.Eu),E?(this.ib.Vc(!0),this.vd=!0):this.Fc=this.vd=!1,y=+new Date-+x,E=qi&&qi.nx,x=this.zw,E||this.Yh===null){for(x[this.Tq]=y,this.Tq=(this.Tq+1)%x.length,b=y=0;b<x.length;b++)y+=x[b];this.Sq=y/x.length}if(this.pb!==1&&(a.globalAlpha=1),E)for(a.setTransform(1,0,0,1,0,0),E=0;E<x.length;E++)a.fillText(x[E].toString(),20,150+ +(20*E))}}};function pf(a,y,x,E,b,z,tt,rt,ot,st){if(a.Ka!==null){a.ta===null&&ee("No canvas specified"),tt===void 0&&(tt=null),rt===void 0&&(rt=null),ot===void 0&&(ot=!1),st===void 0&&(st=!1),Hd(a),a.ib.Vc(!0),a.vd=!0,a.$i=!0;var ut=a.Ca;a.Ca=b;var ft=a.Wa.s,vt=ft.length;try{var xt=new ue(z.x,z.y,E.width/b,E.height/b),Pt=xt.copy();Pt.Co(x),Cu(a,Pt),ss(a),a.Fd(ft,vt,a,xt),y.setTransform(1,0,0,1,0,0),y.clearRect(0,0,E.width,E.height),rt!==null&&rt!==""&&(y.fillStyle=rt,y.ox(0,0,E.width,E.height));var Ft=a.Mb;y.scale(Ft,Ft);var Xt=Ei.alloc();Xt.reset(),Xt.translate(x.left,x.top),Xt.scale(b),z.x===0&&z.y===0||Xt.translate(-z.x,-z.y),y.setTransform(Xt.m11,Xt.m12,Xt.m21,Xt.m22,Xt.dx,Xt.dy),y.yc(),y instanceof tl&&$y(y,Xt.m11,Xt.m12,Xt.m21,Xt.m22,Xt.dx,Xt.dy),Ei.free(Xt),Ch(a,y),y.globalAlpha=a.pb;var Wt=a.Qj("Grid");if(tt){var oe=new xn,le=tt.iterator;for(le.reset();le.next();){var ce=le.value;ce instanceof rr&&(st||ce.layer!==Wt)&&(ce.Gj(),oe.add(ce))}for(st=0;st<vt;st++)_p(ft[st],y,a,oe,ot);oe.each(function(Je){return Je.Gj()})}else for(oe=0;oe<vt;oe++){var Ae=ft[oe];Ae===Wt?st&&Ae.gc(y,a,!0):Ae.gc(y,a,ot)}a.$i=!1,a.Yf&&Ud(a.Yf,a)&&a.Vp()}finally{a.Ca=ut,a.ib.Vc(!0),a.vd=!0,a.Fd(ft,vt,a,a.viewportBounds),Cu(a),a.ib instanceof tl&&(a.ib.Nj.PA(),a.redraw())}}}Ct.Gf=function(a){return this.Rg[a]},Ct.Xx=function(a,y){a==="minDrawingLength"&&(this.Oq=y),this.Rg[a]=y,this.redraw()},Ct.Tx=function(){this.Rg=new Qi,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(Lr||Rr),this.Rg.temporaryPixelRatio=!0,this.Rg.pictureRatioOptimization=!0,this.Oq=this.Rg.minDrawingLength=1};function Ch(a,y){a=a.Rg,a!==null&&(a.imageSmoothingEnabled!==void 0&&y.Wx(!!a.imageSmoothingEnabled),a=a.defaultFont,a!=null&&(y.font=a))}Ct.Ql=function(a){return this.on[a]},Ct.sA=function(a,y){this.on[a]=y},Ct.Sx=function(){this.on=new Qi,this.on.extraTouchArea=10,this.on.extraTouchThreshold=10,this.on.hasGestureZoom=!0},Ct.set=function(a){return Object.assign(this,a),this},Ct.Du=function(a){return this.nm(a)},Ct.nm=function(a){return Wd(this,a),this};function Wd(a,y){var x=a instanceof ei,E=a instanceof Qe,b;for(b in y){b===""&&ee("Setting properties requires non-empty property names");var z=a,tt=b;if(x||E){var rt=b.indexOf(".");if(0<rt){var ot=b.substring(0,rt);x?z=a.fb(ot):(z=a[ot],z==null&&(z=a.toolManager[ot])),Ke(z)?tt=b.substr(rt+1):ee("Unable to find object named: "+ot+" in "+a.toString()+" when trying to set property: "+b)}}if(tt[0]!=="_"&&!tr(z,tt))if(E&&tt==="ModelChanged"){a.Yw(y[tt]);continue}else if(E&&tt==="Changed"){a.Pe(y[tt]);continue}else if(E&&tr(a.toolManager,tt))z=a.toolManager;else if(E&&am(a,tt)){a.Bj(tt,y[tt]);continue}else if(a instanceof Ui&&tt==="Changed"){a.Pe(y[tt]);continue}else ee('Trying to set undefined property "'+tt+'" on object: '+z.toString());z[tt]=y[b],tt[0]==="_"&&z instanceof Me&&z.Vw(tt)}}Ct.bx=function(){if(this.Eh.count!==0&&!(1<this.undoManager.transactionLevel)){for(;0<this.Eh.count;){var a=this.Eh;for(this.Eh=new on,a=a.iterator;a.next();){var y=a.key;y.Xo(a.value),y.qc()}}this.N()}},Ct.N=function(a){if(a===void 0)this.Fc=!0,this.$b();else{var y=this.viewportBounds;a.w()&&y.Yc(a)&&(this.Fc=!0,this.$b())}this.R("InvalidateDraw")},Qe.prototype.invalidateViewport=function(a,y){if(this.Fc!==!0)if(this.Fc=!0,this.nl==="svg")this.bd();else{var x=this.Gf("temporaryPixelRatio")===!0;if(this.Gf("viewportOptimizations")===!0&&this.scrollMode!==Fc&&this.rj.hi(0,0,0,0)&&y.width===a.width&&y.height===a.height){var E=this.scale,b=Math.max(a.y,y.y),z=Math.min(a.y+a.height,y.y+y.height);if(0<Math.max(0,Math.min(a.x+a.width,y.x+y.width)-Math.max(a.x,y.x))*E&&0<Math.max(0,z-b)*E){if(!(this.ld||(this.kg=!1,this.Ka===null||(this.ld=!0,this.documentBounds.w()||(E=ue.alloc(),Ig(this,this.computeBounds(E)),ue.free(E)),E=this.ta,E===null||E instanceof Au)))){var tt=this.Mb;b=this.Aa*tt;var rt=this.ya*tt,ot=this.scale*tt;z=Math.round(Math.round(y.x*ot)-Math.round(a.x*ot)),y=Math.round(Math.round(y.y*ot)-Math.round(a.y*ot)),ot=this.jw,a=this.oy,ot.width!==b&&(ot.width=b),ot.height!==rt&&(ot.height=rt),a.clearRect(0,0,b,rt),ot=190*tt;var st=70*tt,ut=Math.max(z,0),ft=Math.max(y,0),vt=Math.floor(b-ut),xt=Math.floor(rt-ft);a.drawImage(E.Oa,ut,ft,vt,xt,0,0,vt,xt),Ud(this.Yf,this)&&a.clearRect(0,0,ot,st),E=xi(),a=xi(),xt=Math.abs(z),vt=Math.abs(y);var Pt=ut===0?0:b-xt;ut=Bt.allocAt(Pt,0),xt=Bt.allocAt(xt+Pt,rt),a.push(new ue(Math.min(ut.x,xt.x),Math.min(ut.y,xt.y),Math.abs(ut.x-xt.x),Math.abs(ut.y-xt.y)));var Ft=this.Ab;if(Ft.reset(),Ft.scale(tt,tt),this.Ca!==1&&Ft.scale(this.Ca),tt=this.pa,(tt.x!==0||tt.y!==0)&&isFinite(tt.x)&&isFinite(tt.y)&&Ft.translate(-tt.x,-tt.y),_e(ut,Ft),_e(xt,Ft),E.push(new ue(Math.min(ut.x,xt.x),Math.min(ut.y,xt.y),Math.abs(ut.x-xt.x),Math.abs(ut.y-xt.y))),Pt=ft===0?0:rt-vt,ut.h(0,Pt),xt.h(b,vt+Pt),a.push(new ue(Math.min(ut.x,xt.x),Math.min(ut.y,xt.y),Math.abs(ut.x-xt.x),Math.abs(ut.y-xt.y))),_e(ut,Ft),_e(xt,Ft),E.push(new ue(Math.min(ut.x,xt.x),Math.min(ut.y,xt.y),Math.abs(ut.x-xt.x),Math.abs(ut.y-xt.y))),Ud(this.Yf,this)&&(b=0<z?0:-z,rt=0<y?0:-y,ut.h(b,rt),xt.h(ot+b,st+rt),a.push(new ue(Math.min(ut.x,xt.x),Math.min(ut.y,xt.y),Math.abs(ut.x-xt.x),Math.abs(ut.y-xt.y))),_e(ut,Ft),_e(xt,Ft),E.push(new ue(Math.min(ut.x,xt.x),Math.min(ut.y,xt.y),Math.abs(ut.x-xt.x),Math.abs(ut.y-xt.y)))),Bt.free(ut),Bt.free(xt),id(this,!1,!0),this.Ka===null&&ee("No div specified"),this.ta===null&&ee("No canvas specified"),!this.animationManager.zb&&(b=this.ib,this.Fc)){for(Hd(this),rt=this.Mb,b.setTransform(1,0,0,1,0,0),b.clearRect(0,0,this.Aa*rt,this.ya*rt),b.drawImage(this.jw.Oa,0<z?0:Math.round(-z),0<y?0:Math.round(-y)),z=this.pa,tt=this.Ca,ot=Math.round(z.x*tt)/tt,st=Math.round(z.y*tt)/tt,y=this.Ab,y.reset(),tt!==1&&y.scale(tt),z.x===0&&z.y===0||y.translate(-ot,-st),b.save(),b.beginPath(),z=a.length,tt=0;tt<z;tt++)ot=a[tt],ot.width!==0&&ot.height!==0&&b.rect(Math.floor(ot.x),Math.floor(ot.y),Math.ceil(ot.width),Math.ceil(ot.height));for(b.clip(),b.setTransform(rt,0,0,rt,0,0),b.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),b.yc(),y=this.Wa.s,z=y.length,this.Fd(y,z,this,this.viewportBounds),Ch(this,b),b.globalAlpha=this.pb,rt=0;rt<z;rt++)if(tt=y[rt],ot=E,tt.visible&&tt.pb!==0){st=eh(tt,b),ft=tt.Zq,ft.length=0,ut=this.scale,vt=ue.alloc(),xt=tt.Pa.s,Ft=xt.length,Pt=ot.length;for(var Xt=0;Xt<Ft;Xt++){var Wt=xt[Xt],oe=tc(Wt,Wt.actualBounds);t:{for(var le=2/ut,ce=4/ut,Ae=0;Ae<Pt;Ae++){var Je=ot[Ae];if(Je.width!==0&&Je.height!==0&&oe.Vu(Je.x-le,Je.y-le,Je.width+ce,Je.height+ce)){oe=!0;break t}}oe=!1}oe&&tt.Oj(b,Wt,this,ft,ut,vt,!0)}ue.free(vt),b.globalAlpha=st}b.restore(),b.Vc(!0),this.Yf&&Ud(this.Yf,this)&&this.Vp(),this.Fc=this.vd=!1,this.hk()}gi(E),gi(a),this.ld=!1}}else this.bd();x&&(Is(this),this.bd(),Ec(this,!0))}else x?(Is(this),this.bd(),Ec(this,!0)):this.bd()}};function Hd(a){a.pn!==!1&&(a.pn=!1,kg(a,a.Aa,a.ya))}function kg(a,y,x){Eu(a);var E=a.Mb;a.ta.resize(y*E,x*E,y,x)&&(a.Fc=!0,a.ib.Vc(!0))}function Zd(a){var y=a.ta;if(y===null||a.wo.w())return!0;var x=a.Aa,E=a.ya,b=a.Ka,z=!1,tt=a.gf?a.Db:0,rt=a.Be?a.Db:0,ot=b.clientWidth||x+tt,st=b.clientHeight||E+rt,ut=a.viewportBounds;b=ut.x;var ft=ut.y,vt=ut.width,xt=ut.height;if((ot!==x+tt||st!==E+rt)&&(a.gf=!1,a.Be=!1,rt=tt=0,a.Aa=ot,a.ya=st,z=a.pn=!0,Eu(a)),!a.hf||!a.viewportBounds.w())return!0;var Pt=a.ku,Ft=a.hu;if(a.Ee=!1,!(z||a.gf||a.Be||a.mn||a.nn))return!0;var Xt=a.documentBounds,Wt=0,oe=0,le=0,ce=0,Ae=ut.width,Je=ut.height,Ci=a.rj;a.contentAlignment.sb()?(Xt.width>Ae&&(Wt=Ci.left,oe=Ci.right),Xt.height>Je&&(le=Ci.top,ce=Ci.bottom)):(Wt=Ci.left,oe=Ci.right,le=Ci.top,ce=Ci.bottom);var Wi=Xt.width+Wt+oe,Ni=Xt.height+le+ce;Ci=a.scale;var li=Wi>ot/Ci,Tn=Ni>st/Ci;if(!(z||a.gf||a.Be||li||Tn))return!0;Wt=Xt.x-Wt,ot=ut.x,oe=Xt.right+oe,st=ut.right+tt,le=Xt.y-le;var Nr=ut.y;Xt=Xt.bottom+ce,ut=ut.bottom+rt;var Er="1px";if(ce="1px",a.scrollMode===Ah&&(li||Tn)&&(li&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(li=1,Wt+1<ot&&(li=Math.max((ot-Wt)*Ci+a.Aa,li)),oe>st+1&&(li=Math.max((oe-st)*Ci+a.Aa,li)),Ae+tt+1<Wi&&(li=Math.max((Wi-Ae)*Ci+a.Aa,li)),Er=li.toString()+"px"),Tn&&a.hasVerticalScrollbar&&a.allowVerticalScroll&&(li=1,le+1<Nr&&(li=Math.max((Nr-le)*Ci+a.ya,li)),Xt>ut+1&&(li=Math.max((Xt-ut)*Ci+a.ya,li)),Je+rt+1<Ni&&(li=Math.max((Ni-Je)*Ci+a.ya,li)),ce=li.toString()+"px")),li=Er!=="1px",Tn=ce!=="1px",li&&Tn||!li&&!Tn||(Tn&&(st-=a.Db),li&&(ut-=a.Db),Wi<Ae+tt||!a.hasHorizontalScrollbar||!a.allowHorizontalScroll||(tt=1,Wt+1<ot&&(tt=Math.max((ot-Wt)*Ci+a.Aa,tt)),oe>st+1&&(tt=Math.max((oe-st)*Ci+a.Aa,tt)),Ae+1<Wi&&(tt=Math.max((Wi-Ae)*Ci+a.Aa,tt)),Er=tt.toString()+"px"),li=Er!=="1px",tt=a.ya,li!==a.Be&&(tt=li?a.ya-a.Db:a.ya+a.Db),Ni<Je+rt||!a.hasVerticalScrollbar||!a.allowVerticalScroll||(rt=1,le+1<Nr&&(rt=Math.max((Nr-le)*Ci+tt,rt)),Xt>ut+1&&(rt=Math.max((Xt-ut)*Ci+tt,rt)),Je+1<Ni&&(rt=Math.max((Ni-Je)*Ci+tt,rt)),ce=rt.toString()+"px"),Tn=ce!=="1px"),a.qr&&li===a.Be&&Tn===a.gf)return x===a.Aa&&E===a.ya||a.bd(),!1;if(li!==a.Be&&(Er==="1px"?a.ya=a.ya+a.Db:a.ya=Math.max(a.ya-a.Db,1),z=!0),a.Be=li,Ft.style.width=Er,Tn!==a.gf&&(ce==="1px"?a.Aa=a.Aa+a.Db:a.Aa=Math.max(a.Aa-a.Db,1),z=!0,a.tn&&(rt=Bt.alloc(),Tn?(y.style.left=a.Db+"px",a.position=rt.h(a.pa.x+a.Db/a.scale,a.pa.y)):(y.style.left="0px",a.position=rt.h(a.pa.x-a.Db/a.scale,a.pa.y)),Bt.free(rt))),z&&Eu(a),a.gf=Tn,Ft.style.height=ce,a.gu=!0,z&&(a.pn=!0),y=Pt.scrollLeft,a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Ae+1<Wi?y=(a.position.x-Wt)*Ci:Wt+1<ot?y=Pt.scrollWidth-Pt.clientWidth:oe>st+1&&(y=a.position.x*Ci)),a.tn)switch(a.bu){case"negative":y=-(Pt.scrollWidth-y-Pt.clientWidth);break;case"reverse":y=Pt.scrollWidth-y-Pt.clientWidth}return Pt.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(Je+1<Ni?Pt.scrollTop=(a.position.y-le)*Ci:le+1<Nr?Pt.scrollTop=Pt.scrollHeight-Pt.clientHeight:Xt>ut+1&&(Pt.scrollTop=a.position.y*Ci)),ot=a.Aa,st=a.ya,Pt.style.width=ot+(a.gf?a.Db:0)+"px",Pt.style.height=st+(a.Be?a.Db:0)+"px",x!==ot||E!==st||a.animationManager.zb?(x=ue.allocAt(b,ft,vt,xt),a.onViewportBoundsChanged(x,a.viewportBounds,Ci,z),ue.free(x),!1):!0}Ct=Qe.prototype,Ct.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&ee("Cannot add part "+a.toString()+" to "+this.toString()+". It is already a part of "+y.toString()),y=this.Qj(a.layerName),y===null&&(y=this.Qj("")),y===null&&ee('Cannot add a Part when unable find a Layer named "'+a.layerName+'" and there is no default Layer'),a.layer!==y)){var x=y.oi(99999999,a,a.diagram===this);0<=x&&this.cb($o,"parts",y,null,a,null,x),y.isTemporary||this.Ya(),a.C(1),x=a.layerChanged,x!==null&&x(a,null,y)}},Ct.oi=function(a){this.partManager.oi(a);var y=this;Qd(a,function(x){Vd(y,x)}),(a instanceof uo||a instanceof Tr&&a.placeholder!==null)&&a.v(),a.data!==null&&Qd(a,function(x){dy(y.partManager,x)}),Ls(a)!==!0&&hd(a)!==!0||this.De.add(a),Z1(a,!0,this),G1(a)?(a.actualBounds.w()&&this.N(tc(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(tc(a,a.actualBounds)),this.$b()},Ct.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&Qd(a,function(x){cy(y.partManager,x,y)}),this.De.remove(a),G1(a)?(a.actualBounds.w()&&this.N(tc(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(tc(a,a.actualBounds)),this.$b()},Ct.remove=function(a){Fg(this,a,!0)};function Fg(a,y,x){var E=y.layer;E!==null&&E.diagram===a&&(y.isSelected=!1,y.isHighlighted=!1,y.C(2),x&&y.Lj(),x=E.pc(-1,y,!1),0<=x&&a.cb(ca,"parts",E,y,null,x,null),a=y.layerChanged,a!==null&&a(y,E,null))}Ct.Is=function(a,y){if(y===void 0&&(y=!1),Gn(a))for(var x=a.length,E=0;E<x;E++){var b=a[E];y&&!b.canDelete()||this.remove(b)}else for(x=new xn,x.addAll(a),a=x.iterator;a.next();)x=a.value,y&&!x.canDelete()||this.remove(x)},Ct.Kj=function(a,y,x){return x===void 0&&(x=!1),this.partManager.Kj(a,y,x)},Qe.prototype.moveParts=function(a,y,x,E){if(x===void 0&&(x=!1),E===void 0&&(E=mf(this)),this.toolManager!==null){var b=new on;if(a!==null)if(Gn(a))for(var z=0;z<a.length;z++)Iu(this,b,a[z],x,E);else for(a=a.iterator;a.next();)Iu(this,b,a.value,x,E);else{for(a=this.parts;a.next();)Iu(this,b,a.value,x,E);for(a=this.nodes;a.next();)Iu(this,b,a.value,x,E);for(a=this.links;a.next();)Iu(this,b,a.value,x,E)}rd(this,b,y,E,x)}};function Iu(a,y,x,E,b,z){if(!y.contains(x)&&(z===void 0&&(z=!1),!E||z||x.canMove()||x.canCopy()))if(b===void 0&&(b=mf(a)),x instanceof bi){if(y.add(x,a.Pd(b,x,x.location)),x instanceof Tr&&(x.placeholder!==null||b.dragsMembers))for(z=x.memberParts;z.next();)Iu(a,y,z.value,E,b,b.groupsAlwaysMove);for(z=x.linksConnected;z.next();){var tt=z.value;if(!y.contains(tt)){var rt=tt.fromNode,ot=tt.toNode;rt!==null&&y.contains(rt)&&ot!==null&&y.contains(ot)&&Iu(a,y,tt,E,b)}}if(b.dragsTree)for(x=x.Ou();x.next();)Iu(a,y,x.value,E,b)}else if(x instanceof di)for(y.add(x,a.Pd(b,x)),x=x.labelNodes;x.next();)Iu(a,y,x.value,E,b);else x instanceof uo||y.add(x,a.Pd(b,x,x.location))}function rd(a,y,x,E,b){if(y!==null&&y.count!==0){var z=Bt.alloc(),tt=Bt.alloc();tt.assign(x),isNaN(tt.x)&&(tt.x=0),isNaN(tt.y)&&(tt.y=0),(x=a.Mr)||yf(a,y);for(var rt=xi(),ot=xi(),st=y.iterator,ut=Bt.alloc();st.next();){var ft=st.key,vt=st.value;if(ft.Zc()){var xt=Dg(a,ft,y);xt!==null?rt.push(new it(ft,vt,xt)):(!b||ft.canMove())&&(xt=vt.point,z.assign(xt),a.computeMove(ft,z.add(tt),E,ut),ft.location=ut,vt.shifted===void 0&&(vt.shifted=new Bt),vt.shifted.assign(ut.re(xt)))}else st.key instanceof di&&ot.push(st.sa)}for(Bt.free(ut),b=rt.length,st=0;st<b;st++)ft=rt[st],z.assign(ft.info.point),ft.Su.shifted===void 0&&(ft.Su.shifted=new Bt),ft.node.location=z.add(ft.Su.shifted);for(b=Bt.alloc(),st=Bt.alloc(),ft=ot.length,vt=0;vt<ft;vt++){var Pt=ot[vt];if(xt=Pt.key,xt instanceof di)if(xt.suspendsRouting){xt.Tg=null,ut=xt.fromNode;var Ft=xt.toNode;if(a.draggedLink!==null&&E.dragsLink)if(Ft=Pt.value.point,xt.dragComputation===null)y.add(xt,a.Pd(E,xt,tt)),Bh(xt,tt.x-Ft.x,tt.y-Ft.y);else{Pt=Bt.allocAt(0,0),(ut=xt.i(0))&&ut.w()&&Pt.assign(ut);var Xt=ut=Bt.alloc().assign(Pt).add(tt);E.isGridSnapEnabled&&(E.isGridSnapRealtime||a.lastInput.up)&&(Xt=Bt.alloc(),vf(a,xt,ut,Xt,E)),ut.assign(xt.dragComputation(xt,ut,Xt)).re(Pt),y.add(xt,a.Pd(E,xt,ut)),Bh(xt,ut.x-Ft.x,ut.y-Ft.y),Bt.free(Pt),Bt.free(ut),Xt!==ut&&Bt.free(Xt)}else ut!==null&&(b.assign(ut.location),Xt=y.I(ut),Xt!==null&&b.re(Xt.point)),Ft!==null&&(st.assign(Ft.location),Xt=y.I(Ft),Xt!==null&&st.re(Xt.point)),ut!==null&&Ft!==null?b.Xa(st)?(ut=Pt.value.point,Ft=z,Ft.assign(b),Ft.re(ut),y.add(xt,a.Pd(E,xt,b)),Bh(xt,Ft.x,Ft.y)):(xt.suspendsRouting=!1,xt.bb()):(Pt=Pt.value.point,ut=ut!==null?b:Ft!==null?st:tt,y.add(xt,a.Pd(E,xt,ut)),Bh(xt,ut.x-Pt.x,ut.y-Pt.y))}else(xt.fromNode===null||xt.toNode===null)&&(ut=Pt.value.point,y.add(xt,a.Pd(E,xt,tt)),Bh(xt,tt.x-ut.x,tt.y-ut.y))}Bt.free(z),Bt.free(tt),Bt.free(b),Bt.free(st),gi(rt),gi(ot),x||(ss(a),od(a,y))}}Qe.prototype.computeMove=function(a,y,x,E){if(E===void 0&&(E=new Bt),E.assign(y),a===null)return E;var b=y,z=x.isGridSnapEnabled;z&&(x.isGridSnapRealtime||this.lastInput.up)&&(b=Bt.alloc(),vf(this,a,y,b,x)),x=a.dragComputation!==null?a.dragComputation(a,y,b):b;var tt=a.minLocation,rt=tt.x;isNaN(rt)&&(rt=z?Math.round(1e3*a.location.x)/1e3:a.location.x),tt=tt.y,isNaN(tt)&&(tt=z?Math.round(1e3*a.location.y)/1e3:a.location.y);var ot=a.maxLocation,st=ot.x;return isNaN(st)&&(st=z?Math.round(1e3*a.location.x)/1e3:a.location.x),ot=ot.y,isNaN(ot)&&(ot=z?Math.round(1e3*a.location.y)/1e3:a.location.y),E.h(Math.max(rt,Math.min(x.x,st)),Math.max(tt,Math.min(x.y,ot))),b!==y&&Bt.free(b),E};function mf(a){var y=a.toolManager.findTool("Dragging");return y!==null?y.dragOptions:a.Wm}function vf(a,y,x,E,b){if(b===void 0&&(b=mf(a)),E.assign(x),y!==null){var z=a.grid;y=b.gridSnapCellSize,a=y.width,y=y.height;var tt=b.gridSnapOrigin,rt=tt.x;if(tt=tt.y,b=b.gridSnapCellSpot,z!==null){var ot=z.gridCellSize;isNaN(a)&&(a=ot.width),isNaN(y)&&(y=ot.height),z=z.gridOrigin,isNaN(rt)&&(rt=z.x),isNaN(tt)&&(tt=z.y)}z=Bt.allocAt(0,0),z.yi(0,0,a,y,b),me.No(x.x,x.y,rt+z.x,tt+z.y,a,y,E),Bt.free(z)}}function yf(a,y){if(y!==null)for(a.Mr=!0,a=y.iterator;a.next();)y=a.key,y instanceof di&&(y.suspendsRouting=!0)}function od(a,y){if(y!==null){for(y=y.iterator;y.next();){var x=y.key;x instanceof di&&(x.suspendsRouting=!1,Qv(x)&&x.bb())}a.Mr=!1}}function Dg(a,y,x){return y=y.containingGroup,y!==null&&(a=Dg(a,y,x),a!==null||(a=x.I(y),a!==null))?a:null}Ct=Qe.prototype,Ct.Pd=function(a,y,x){if(x===void 0)return new nh(Zt);var E=a.isGridSnapEnabled;return a.groupsSnapMembers||y.containingGroup===null||(E=!1),E?new nh(new Bt(Math.round(1e3*x.x)/1e3,Math.round(1e3*x.y)/1e3)):new nh(x.copy())};function Ng(a,y,x){if(y.diagram!==null&&y.diagram!==a&&ee("Cannot share a Layer with another Diagram: "+y+" of "+y.diagram),x===null?y.diagram!==null&&ee("Cannot add an existing Layer to this Diagram again: "+y):(x.diagram!==a&&ee("Existing Layer must be in this Diagram: "+x+" not in "+x.diagram),y===x&&ee("Cannot move a Layer before or after itself: "+y)),y.diagram!==a){y=y.name,a=a.Wa,x=a.count;for(var E=0;E<x;E++)a.M(E).name===y&&ee("Cannot add Layer with the name '"+y+"'; a Layer with the same name is already present in this Diagram.")}}Ct.Al=function(a){Ng(this,a,null),a.Xe(this);var y=this.Wa,x=y.count-1;if(!a.isTemporary)for(;0<=x&&y.M(x).isTemporary;)x--;return y.Gb(x+1,a),this.cc!==null&&this.cb($o,"layers",this,null,a,null,x+1),this.N(),this.Ya(),this},Ct.Ww=function(a,y){Ng(this,a,y),a.Xe(this);var x=this.Wa,E=x.indexOf(a);0<=E&&(x.remove(a),this.cc!==null&&this.cb(ca,"layers",this,a,null,E,null));var b=x.count,z;for(z=0;z<b;z++)if(x.M(z)===y){x.Gb(z,a);break}return this.cc!==null&&this.cb($o,"layers",this,null,a,null,z),this.N(),0>E&&this.Ya(),this},Ct.Cy=function(a,y){Ng(this,a,y),a.Xe(this);var x=this.Wa,E=x.indexOf(a);0<=E&&(x.remove(a),this.cc!==null&&this.cb(ca,"layers",this,a,null,E,null));var b=x.count,z;for(z=0;z<b;z++)if(x.M(z)===y){x.Gb(z+1,a);break}return this.cc!==null&&this.cb($o,"layers",this,null,a,null,z+1),this.N(),0>E&&this.Ya(),this},Ct.kA=function(a){if(a.diagram!==this&&ee("Cannot remove a Layer from another Diagram: "+a+" of "+a.diagram),a.name!==""){var y=this.Wa,x=y.indexOf(a);if(y.remove(a)){for(y=a.Pa.copy().iterator;y.next();){var E=y.value,b=E.layerName;b!==a.name?E.layerName=b:E.layerName=""}this.cc!==null&&this.cb(ca,"layers",this,a,null,x,null),this.N(),this.Ya()}}},Ct.Qj=function(a){for(var y=this.layers;y.next();){var x=y.value;if(x.name===a)return x}return null},Ct.Yw=function(a){return this.pf===null&&(this.pf=new cn),this.pf.add(a),this.model.Pe(a),this},Ct.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},Ct.Pe=function(a){return this.zg===null&&(this.zg=new cn),this.zg.add(a),this},Ct.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},Ct.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==Ma&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,x=y.length,E=0;E<x;E++)y.M(E)(a)},Ct.cb=function(a,y,x,E,b,z,tt){z===void 0&&(z=null),tt===void 0&&(tt=null);var rt=new Ho;rt.diagram=this,rt.change=a,rt.propertyName=y,rt.object=x,rt.oldValue=E,rt.oldParam=z,rt.newValue=b,rt.newParam=tt,this.ds(rt)},Ct.g=function(a,y,x,E,b){this.cb(To,a,this,y,x,E,b)},Qe.prototype.changeState=function(a,y){if(a!==null&&a.diagram===this){var x=this.skipsModelSourceBindings;try{this.skipsModelSourceBindings=!0;var E=a.change;if(E===To){var b=a.object;if(ta(b,a.propertyName,a.I(y)),b instanceof Me){var z=b.part;z!==null&&z.Wb()}this.isModified=!0}else if(E===$o){var tt=a.object,rt=a.newParam,ot=a.newValue;if(tt instanceof ei)if(typeof rt=="number"&&ot instanceof Me){y?tt.pc(rt):tt.Gb(rt,ot);var st=tt.part;st!==null&&st.Wb()}else typeof rt=="number"&&ot instanceof Da&&(ot.isRow?p1(tt,rt,y?void 0:ot):m1(tt,rt,y?void 0:ot));else if(tt instanceof Xa){var ut=a.oldParam===!0;typeof rt=="number"&&ot instanceof rr&&(y?(ot.isSelected=!1,ot.isHighlighted=!1,ot.Wb(),tt.pc(ut?rt:-1,ot,ut)):tt.oi(rt,ot,ut))}else tt instanceof Qe?typeof rt=="number"&&ot instanceof Xa&&(y?this.Wa.mb(rt):(ot.Xe(this),this.Wa.Gb(rt,ot))):ee("unknown ChangedEvent.Insert object: "+a.toString());this.isModified=!0}else if(E===ca){var ft=a.object,vt=a.oldParam,xt=a.oldValue;if(ft instanceof ei)typeof vt=="number"&&xt instanceof Me?y?ft.Gb(vt,xt):ft.pc(vt):typeof vt=="number"&&xt instanceof Da&&(xt.isRow?p1(ft,vt,y?xt:void 0):m1(ft,vt,y?xt:void 0));else if(ft instanceof Xa){var Pt=a.newParam===!0;typeof vt=="number"&&xt instanceof rr&&(y?0>ft.Pa.indexOf(xt)&&ft.oi(vt,xt,Pt):(xt.isSelected=!1,xt.isHighlighted=!1,xt.Wb(),ft.pc(Pt?vt:-1,xt,Pt)))}else ft instanceof Qe?typeof vt=="number"&&xt instanceof Xa&&(y?(xt.Xe(this),this.Wa.Gb(vt,xt)):this.Wa.mb(vt)):ee("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else E!==Ma&&ee("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},Qe.prototype.Ea=function(a){return this.undoManager.Ea(a)},Qe.prototype.eb=function(a){return this.undoManager.eb(a)},Qe.prototype.Kf=function(){return this.undoManager.Kf()},Qe.prototype.commit=function(a,y){y===void 0&&(y="");var x=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var E=!1;try{a(this),E=!0}finally{E?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=x}},Qe.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},Qe.prototype.rp=function(){this.partManager.rp()};function Bg(a,y,x){var E=a.animationManager;if(a.vb||a.ld)a.Ca=x,Eu(a),a.N(),a.Ee=!0,E.zb&&($u(E)||E.ce.add(E.H,"scale",y,a.Ca));else if(a.ta===null)a.Ca=x,Eu(a);else{a.vb=!0;var b=a.viewportBounds.copy(),z=a.Aa,tt=a.ya,rt=a.zoomPoint.x,ot=a.zoomPoint.y,st=a.contentAlignment;isNaN(rt)&&(st.$c()?st.Hf(_r)?rt=0:st.Hf(Vr)&&(rt=z-1):rt=st.sb()?st.x*(z-1):z/2),isNaN(ot)&&(st.$c()?st.Hf(so)?ot=0:st.Hf(fo)&&(ot=tt-1):ot=st.sb()?st.y*(tt-1):tt/2),a.scaleComputation===null||a.animationManager.defaultAnimation.isAnimating||(x=a.scaleComputation(a,x)),x<a.minScale&&(x=a.minScale),x>a.maxScale&&(x=a.maxScale),z=Bt.allocAt(a.pa.x+rt/y-rt/x,a.pa.y+ot/y-ot/x),a.position=z,Bt.free(z),a.Ca=x,Eu(a),a.vb=!1,a.onViewportBoundsChanged(b,a.viewportBounds,y,!1),Il(a,!1),E.zb&&($u(E)||E.ce.add(E.H,"scale",y,a.Ca))}}Qe.prototype.onViewportBoundsChanged=function(a,y,x,E){if(!a.D(y)){E===void 0&&(E=!1),E||(this.Ee=!0),this.vd=!0;var b=this.layout;b===null||!b.isViewportSized||this.autoScale!==ys||a.width===y.width&&a.height===y.height||b.C(),b=this.currentTool,this.Vk===!0&&b instanceof Lo&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),Kl(b,this)),this.vb||this.invalidateViewport(a,y),Cu(this),this.fc.scale=x,this.fc.position.x=a.x,this.fc.position.y=a.y,this.fc.bounds.assign(a),this.fc.canvasSize.width=Math.round(a.width*x),this.fc.canvasSize.height=Math.round(a.height*x),this.fc.newCanvasSize.width=this.Aa,this.fc.newCanvasSize.height=this.ya,this.fc.isScroll=E,this.R("ViewportBoundsChanged",this.fc,a),this.isVirtualized&&this.links.each(function(z){z.isAvoiding&&z.actualBounds.Yc(y)&&z.bb()})}};function Cu(a,y){var x=a.fe;if(x!==null&&x.visible){for(var E=zt.alloc(),b=1,z=1,tt=x.O.s,rt=tt.length,ot=0;ot<rt;ot++){var st=tt[ot],ut=Math.abs(st.interval);2>ut||(Sv(st.figure)?z=z*ut/me.vx(z,ut):b=b*ut/me.vx(b,ut))}if(tt=x.gridCellSize,E.h(z*tt.width,b*tt.height),y!==void 0)b=y.width,z=y.height,a=y.x,tt=y.y;else{if(y=ue.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){ue.free(y);return}b=y.width,z=y.height,a=y.x,tt=y.y,ue.free(y)}x.width=b+2*E.width,x.height=z+2*E.height,y=Bt.alloc(),me.No(a,tt,0,0,E.width,E.height,y),y.offset(-E.width,-E.height),zt.free(E),x.part.location=y,Bt.free(y)}}Qe.prototype.clearSelection=function(a){a===void 0&&(a=!1);var y=this.selection;if(y.count!==0){a||this.R("ChangingSelection",y);for(var x=y.Fa(),E=x.length,b=0;b<E;b++)x[b].isSelected=!1;y.ka(),y.clear(),y.freeze(),a||this.R("ChangedSelection",y)}},Qe.prototype.select=function(a){a!==null&&a.diagram===this&&(!a.isSelected||1<this.selection.count)&&(this.R("ChangingSelection",this.selection),this.clearSelection(!0),a.isSelected=!0,this.R("ChangedSelection",this.selection))},Qe.prototype.rA=function(a){if(this.R("ChangingSelection",this.selection),this.clearSelection(!0),Gn(a))for(var y=a.length,x=0;x<y;x++){var E=a[x];E instanceof rr||ee("Diagram.selectCollection given something that is not a Part: "+E),E.isSelected=!0}else for(a=a.iterator;a.next();)y=a.value,y instanceof rr||ee("Diagram.selectCollection given something that is not a Part: "+y),y.isSelected=!0;this.R("ChangedSelection",this.selection)},Qe.prototype.clearHighlighteds=function(){var a=this.highlighteds;if(0<a.count){for(var y=a.Fa(),x=y.length,E=0;E<x;E++)y[E].isHighlighted=!1;a.ka(),a.clear(),a.freeze()}},Ct=Qe.prototype,Ct.Iz=function(a){a!==null&&a.diagram===this&&(!a.isHighlighted||1<this.highlighteds.count)&&(this.clearHighlighteds(),a.isHighlighted=!0)},Ct.Jz=function(a){a=new xn().addAll(a);for(var y=this.highlighteds.copy().hp(a).iterator;y.next();)y.value.isHighlighted=!1;for(a=a.iterator;a.next();)y=a.value,y instanceof rr||ee("Diagram.highlightCollection given something that is not a Part: "+y),y.isHighlighted=!0},Ct.scroll=function(a,y,x){x===void 0&&(x=1);var E=y==="up"||y==="down",b=0,z=Bt.alloc();if(a==="pixel")b=x;else if(a==="line")b=x*(E?this.scrollVerticalLineChange:this.scrollHorizontalLineChange);else if(a==="page")a=E?this.viewportBounds.height:this.viewportBounds.width,a*=this.scale,a!==0&&(b=x*Math.max(a-(E?this.scrollVerticalLineChange:this.scrollHorizontalLineChange),0));else{if(a==="document"){b=this.documentBounds,x=this.viewportBounds,y==="up"?this.position=z.h(x.x,b.y):y==="left"?this.position=z.h(b.x,x.y):y==="down"?this.position=z.h(x.x,b.bottom-x.height):y==="right"&&(this.position=z.h(b.right-x.width,x.y)),Bt.free(z);return}ee("scrolling unit must be 'pixel', 'line', 'page', or 'document', not: "+a)}b/=this.scale,x=this.position,y==="up"?this.position=z.h(x.x,x.y-b):y==="down"?this.position=z.h(x.x,x.y+b):y==="left"?this.position=z.h(x.x-b,x.y):y==="right"?this.position=z.h(x.x+b,x.y):ee("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+y),Bt.free(z)},Ct.tv=function(a){var y=this.viewportBounds;y.Re(a)||(a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a)},Ct.es=function(a){var y=this.viewportBounds;a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a},Ct.op=function(a){var y=this.Ab;y.reset(),this.Ca!==1&&y.scale(this.Ca);var x=this.pa;return(x.x!==0||x.y!==0)&&isFinite(x.x)&&isFinite(x.y)&&y.translate(-x.x,-x.y),a.copy().transform(this.Ab)},Ct.zA=function(a){var y=this.Ab,x=a.x,E=a.y,b=x+a.width,z=E+a.height,tt=y.m11,rt=y.m12,ot=y.m21,st=y.m22,ut=y.dx,ft=y.dy,vt=x*tt+E*ot+ut;y=x*rt+E*st+ft;var xt=b*tt+E*ot+ut;return a=b*rt+E*st+ft,E=x*tt+z*ot+ut,x=x*rt+z*st+ft,tt=b*tt+z*ot+ut,b=b*rt+z*st+ft,z=Math.min(vt,xt),vt=Math.max(vt,xt),xt=Math.min(y,a),y=Math.max(y,a),z=Math.min(z,E),vt=Math.max(vt,E),xt=Math.min(xt,x),y=Math.max(y,x),z=Math.min(z,tt),vt=Math.max(vt,tt),xt=Math.min(xt,b),y=Math.max(y,b),new ue(z,xt,vt-z,y-xt)},Ct.Ps=function(a){var y=this.Ab;y.reset(),this.Ca!==1&&y.scale(this.Ca);var x=this.pa;return(x.x!==0||x.y!==0)&&isFinite(x.x)&&isFinite(x.y)&&y.translate(-x.x,-x.y),_e(a.copy(),this.Ab)};function rm(a){var y=a.isModified;a.Tw!==y&&(a.Tw=y,a.R("Modified"))}function Tg(a){return a=Ef.get(a),a!==null?new a:new Co}Qe.prototype.doModelChanged=function(a){var y=this;if(a.model===this.model){var x=a.change,E=a.propertyName;if(x===Ma&&E[0]==="S")if(E==="StartingFirstTransaction"){var b=this;a=this.toolManager,a.mouseDownTools.each(function(ot){return ot.diagram=b}),a.mouseMoveTools.each(function(ot){return ot.diagram=b}),a.mouseUpTools.each(function(ot){return ot.diagram=b}),this.ld||this.hf||(this.Jk=!0,this.fn&&(this.kg=!0))}else E==="StartingUndo"||E==="StartingRedo"?(a=this.animationManager,a.defaultAnimation.isAnimating&&!this.skipsUndoManager&&a.Cc(),this.R("ChangingSelection",this.selection)):E==="StartedTransaction"&&(a=this.animationManager,a.defaultAnimation.isAnimating&&!this.skipsUndoManager&&a.Cc());else if(this.aa){this.aa=!1;try{if(a.modelChange===""&&x===Ma){(E==="FinishedUndo"||E==="FinishedRedo")&&(this.R("ChangedSelection",this.selection),ss(this));var z=this.animationManager;E==="RolledBackTransaction"&&z.Cc(),this.bx(),this.Jk=!0,this.bd(),this.undoManager.transactionLevel!==0&&this.undoManager.transactionLevel!==1||uf(z),E==="CommittedTransaction"&&this.undoManager.isJustDiscarded&&(this.Ce=Math.min(this.Ce,this.undoManager.historyIndex-1)),E!=="CommittedTransaction"&&E!=="RolledBackTransaction"||!this.undoManager.isPendingUnmodified||setTimeout(function(){y.isModified=!1},1);var tt=a.isTransactionFinished;if(tt&&(rm(this),this.As.clear(),Kp(this.animationManager)),!this.Rt&&tt&&this.lastInput.targetDiagram){this.Rt=!0;var rt=this;Te(function(){rt.currentTool.standardMouseOver(),rt.Rt=!1},10)}}}finally{this.aa=!0}}}};function Vd(a,y){y=y.O.s;for(var x=y.length,E=0;E<x;E++)ad(a,y[E])}function ad(a,y){if(y instanceof Ws){var x=y.element;if(x!==null&&x instanceof HTMLImageElement){x.Bg instanceof xn&&x.Bg.add(a);var E=y.Eg;if(E!==null&&E.sq===!0&&y.diagram!==null&&y.diagram.Xn.add(y),x.hn)if(x=x.getAttribute("src")||"",E=a.Og.I(x),E===null)E=[],E.push(y),a.Og.add(x,E);else{for(a=0;a<E.length;a++)if(E[a]===y)return;E.push(y)}}}}function Og(a,y){if(y instanceof Ws){var x=y.element;if(x!==null&&x instanceof HTMLImageElement&&x.hn){var E=x.getAttribute("src")||"",b=a.Og.I(E);if(b!==null){for(var z=0;z<b.length;z++)if(b[z]===y){b.splice(z,1),b.length===0&&(a.Og.remove(E),x.Fq&&x.removeEventListener("load",x.Fq),x.Yp&&x.removeEventListener("error",x.Yp),delete x.Fq,delete x.Yp,x.Bg instanceof xn&&x.Bg.remove(a),Rf(E));break}}}}}Qe.prototype.Wd=function(){this.partManager.Wd()},Qe.prototype.Aj=function(a,y){this.Yd.Aj(a,y)},Qe.prototype.Cj=function(a,y){this.Yd.Cj(a,y)},Qe.prototype.findPartForKey=function(a){return this.partManager.findPartForKey(a)},Qe.prototype.Vb=function(a){return this.partManager.Vb(a)},Qe.prototype.findLinkForKey=function(a){return this.partManager.findLinkForKey(a)},Ct=Qe.prototype,Ct.Lc=function(a){return this.partManager.Lc(a)},Ct.ii=function(a){return this.partManager.ii(a)},Ct.Kc=function(a){return this.partManager.Kc(a)},Ct.ms=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];return this.partManager.ms.apply(this.partManager,y instanceof Array?y:dr(Zn(y)))},Ct.ls=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];return this.partManager.ls.apply(this.partManager,y instanceof Array?y:dr(Zn(y)))};function Eu(a){var y=a.pa,x=a.Ca;a.Rw.h(y.x,y.y,Math.max(a.Aa,0)/x,Math.max(a.ya,0)/x),a.vd=!0}function Ig(a,y){a.Zi=!1;var x=a.Sp;x.D(y)||(x=x.copy(),a.Sp.assign(y),Il(a,!1),a.R("DocumentBoundsChanged",void 0,x),a.Ee=!0,a.N())}Ct.Va=function(){if(this.Zi){var a=ue.alloc();Ig(this,this.computeBounds(a)),ue.free(a)}},Ct.rz=function(){for(var a=new xn,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&a.add(x)}for(y=this.links;y.next();)x=y.value,x.isTopLevel&&a.add(x);return a.iterator},Ct.qz=function(){return this.ai.iterator},Ct.Uz=function(a){ss(this),a&&Sf(this,!0),this.ld?Rg(this,!1):(this.Jk=!0,wl(this))};function Sf(a,y){for(var x=a.ai.iterator;x.next();)om(a,x.value,y);a.layout&&(y?a.layout.isValidLayout=!1:a.layout.C())}function om(a,y,x){if(y!==null){for(var E=y.gl.iterator;E.next();)om(a,E.value,x);y.layout!==null&&(x?y.layout.isValidLayout=!1:y.layout.C())}}function Rg(a,y){if(a.xh&&!a.lt){var x=a.aa;a.aa=!0;var E=a.undoManager.transactionLevel,b=a.layout,z=a.animationManager;try{E===0&&(a.undoManager.isInternalTransaction=!0,a.Ea("Layout")),1>=E&&!z.defaultAnimation.isAnimating&&!z.zb&&(y||Bu(z,"Layout")),a.xh=!1;for(var tt=a.ai.iterator;tt.next();)zg(a,tt.value,y,E);b.isValidLayout||(!y||b.isRealtime||b.isRealtime===null||E===0?(b.doLayout(a),ss(a),b.isValidLayout=!0):a.xh=!0)}finally{y=a.undoManager.isInternalTransaction,E===0&&(a.eb("Layout"),a.undoManager.isInternalTransaction=!1),!y||E!==0&&E!==1||uf(z),a.aa=x}}}function zg(a,y,x,E){if(y!==null){for(var b=y.gl.iterator;b.next();)zg(a,b.value,x,E);b=y.layout,b===null||b.isValidLayout||(!x||b.isRealtime||E===0?(y.rh=!y.location.w(),b.doLayout(y),y.C(32),bc(a,y),b.isValidLayout=!0):a.xh=!0)}}Ct.yz=function(){for(var a=new cn,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&x.kh()===null&&a.add(x)}return a.iterator};function ov(a){function y(b){var z=b.toLowerCase(),tt=new cn;x.add(b,tt),x.add(z,tt),E.add(b,b),E.add(z,b)}var x=new on,E=new on;y("InitialAnimationStarting"),y("AnimationStarting"),y("AnimationFinished"),y("BackgroundSingleClicked"),y("BackgroundDoubleClicked"),y("BackgroundContextClicked"),y("ClipboardChanged"),y("ClipboardPasted"),y("DocumentBoundsChanged"),y("ExternalObjectsDropped"),y("GainedFocus"),y("InitialLayoutCompleted"),y("LayoutCompleted"),y("LinkDrawn"),y("LinkRelinked"),y("LinkReshaped"),y("LostFocus"),y("Modified"),y("ObjectSingleClicked"),y("ObjectDoubleClicked"),y("ObjectContextClicked"),y("PartCreated"),y("PartResized"),y("PartRotated"),y("SelectionMoved"),y("SelectionCopied"),y("SelectionDeleting"),y("SelectionDeleted"),y("SelectionGrouped"),y("SelectionUngrouped"),y("ChangingSelection"),y("ChangedSelection"),y("SubGraphCollapsed"),y("SubGraphExpanded"),y("TextEdited"),y("TreeCollapsed"),y("TreeExpanded"),y("ViewportBoundsChanged"),y("InvalidateDraw"),a.iw=x,a.hw=E}function am(a,y){var x=a.hw.I(y);return x!==null?x:a.hw.I(y.toLowerCase())}function xf(a,y){var x=a.iw.I(y);if(x!==null||(x=a.iw.I(y.toLowerCase()),x!==null))return x;ee("Unknown DiagramEvent name: "+y)}Ct.Bj=function(a,y){return a=xf(this,a),a!==null&&a.add(y),this},Ct.am=function(a,y){a=xf(this,a),a!==null&&a.remove(y)},Ct.R=function(a,y,x){var E=xf(this,a),b=new Dl;if(b.diagram=this,a=am(this,a),a!==null&&(b.name=a),y!==void 0&&(b.subject=y),x!==void 0&&(b.parameter=x),y=E.length,y===1)E.M(0)(b);else if(y!==0)for(E=E.Fa(),x=0;x<y;x++)(0,E[x])(b)};function wf(a){if(a.animationManager.isTicking)return!1;var y=a.currentTool;return y===a.toolManager.findTool("Dragging")?!a.Mr||y.isComplexRoutingRealtime:!0}Ct.Yj=function(a,y){return Pf(this,!1,null,y||null).Yj(a.x,a.y,a.width,a.height)},Qe.prototype.computeOccupiedArea=function(a){return this.isVirtualized?this.viewportBounds.copy():this.Zi?Cg(this,a):a.assign(this.documentBounds)};function Pf(a,y,x,E){var b=a.Xh;if(b===null&&(a.Xh=b=new fp(a.avoidanceCellSize)),b.vs||b.group!==x||b.Yx!==E){if(b.Hx=Math.max(b.Os+1,Math.floor(a.avoidanceLimit/a.avoidanceCellSize.width)),b.Ix=Math.max(b.Os+1,Math.floor(a.avoidanceLimit/a.avoidanceCellSize.height)),x!==null&&(x=sm(a,x)),x===null){y=ue.alloc(),a.computeOccupiedArea(y),y.Bc(100,100),b.initialize(y);for(var z=a.nodes;z.next();){var tt=z.value,rt=tt.layer;rt!==null&&rt.visible&&!rt.isTemporary&&Cf(a,tt,E,y)}ue.free(y)}else{for(0<x.memberParts.count&&(y=a.computePartsBounds(x.memberParts,!1),y.Bc(20,20),b.initialize(y)),y=ue.alloc(),z=x.memberParts;z.next();)tt=z.value,tt instanceof bi&&Cf(a,tt,E,y);ue.free(y)}b.group=x,b.Yx=E,b.vs=!1}else y&&uS(b);return b}function sm(a,y){return y.avoidable&&!y.isLinkLabel?y:y.containingGroup!==null?sm(a,y.containingGroup):null}function Cf(a,y,x,E){if(y!==x&&y.isVisible()){if(y.avoidable&&!y.isLinkLabel){y=y.getAvoidableRect(E),a=a.Xh;var b=y.x,z=y.y;if(Vf(a,b,z))for(x=(z-a.Od)/a.sc|0,E=Math.min((b+y.width-a.Nd)/a.rc|0,a.di),y=Math.min((z+y.height-a.Od)/a.sc|0,a.ei),b=(b-a.Nd)/a.rc|0;b<=E;b++)if(z=a.ac[b],z.fill)z.fill(Oh,x,y+1);else for(var tt=x;tt<=y;tt++)z[tt]=Oh}else if(y instanceof Tr)for(y=y.memberParts;y.next();)b=y.value,b instanceof bi&&Cf(a,b,x,E)}}function Eh(a,y){a.Xh===null||a.Xh.vs||y!==void 0&&(!y.avoidable||y.isLinkLabel)||(a.Xh.vs=!0)}Qe.prototype.gs=function(a){this.wp.assign(a),this.computeAutoScrollPosition(this.wp).Xa(this.position)?this.ug():jg(this)};function jg(a){a.vk===-1&&(a.vk=Te(function(){if(a.vk!==-1&&(a.ug(),a.lastInput.event!==null)){var y=a.computeAutoScrollPosition(a.wp);y.Xa(a.position)||(a.position=y,a.lastInput.documentPoint=a.Ps(a.wp),a.doMouseMove(),a.Zi=!0,y=ue.alloc(),a.computeBounds(y),y.ed(a.documentBounds),Ig(a,y),ue.free(y),a.Fc=!0,a.bd(),jg(a))}},a.vp))}Qe.prototype.ug=function(){this.vk!==-1&&(Sn.clearTimeout(this.vk),this.vk=-1)},Qe.prototype.computeAutoScrollPosition=function(a){var y=this.position,x=this.xp;if(0>=x.top&&0>=x.left&&0>=x.right&&0>=x.bottom)return y;var E=this.viewportBounds,b=this.scale;E=ue.allocAt(0,0,E.width*b,E.height*b);var z=Bt.allocAt(0,0);if(a.x>=E.x&&a.x<E.x+x.left&&this.allowHorizontalScroll){var tt=Math.max(this.scrollHorizontalLineChange,1);tt|=0,z.x-=tt,a.x<E.x+x.left/2&&(z.x-=tt),a.x<E.x+x.left/4&&(z.x-=4*tt)}else a.x<=E.x+E.width&&a.x>E.x+E.width-x.right&&this.allowHorizontalScroll&&(tt=Math.max(this.scrollHorizontalLineChange,1),tt|=0,z.x+=tt,a.x>E.x+E.width-x.right/2&&(z.x+=tt),a.x>E.x+E.width-x.right/4&&(z.x+=4*tt));return a.y>=E.y&&a.y<E.y+x.top&&this.allowVerticalScroll?(tt=Math.max(this.scrollVerticalLineChange,1),tt|=0,z.y-=tt,a.y<E.y+x.top/2&&(z.y-=tt),a.y<E.y+x.top/4&&(z.y-=4*tt)):a.y<=E.y+E.height&&a.y>E.y+E.height-x.bottom&&this.allowVerticalScroll&&(tt=Math.max(this.scrollVerticalLineChange,1),tt|=0,z.y+=tt,a.y>E.y+E.height-x.bottom/2&&(z.y+=tt),a.y>E.y+E.height-x.bottom/4&&(z.y+=4*tt)),z.Xa(Zt)||(y=new Bt(y.x+z.x/b,y.y+z.y/b)),ue.free(E),Bt.free(z),y},Ct=Qe.prototype,Ct.Cs=function(){return null},Ct.av=function(){return null},Ct.bs=function(a,y){this.pj.add(a,y)},Ct.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof Tr&&(y.$p=null)})};function Mc(a,y,x){function E(){var ut=+new Date;for(z=!0,tt.reset();tt.next();)if(!tt.value[0].al){z=!1;break}z||ut-st>ot?y(x,b,rt):Sn.requestAnimationFrame(E)}for(var b=x.callback,z=!0,tt=a.Og.iterator;tt.next();)if(!tt.value[0].al){z=!1;break}if(typeof b!="function"||z)return y(x,b,a);var rt=a,ot=x.callbackTimeout||300,st=+new Date;return Sn.requestAnimationFrame(function(){E()}),null}Ct.Wz=function(a){return da?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},Ct.Jx=function(a){return a===void 0&&(a={}),Mc(this,this.Xz,a)},Ct.Xz=function(a,y,x){var E=lm(x,a,"canvas",null);if(E===null)return null;x=E.Z.canvas;var b=null;if(x!==null)switch(b=a.returnType,b===void 0?b="string":b=b.toLowerCase(),b){case Yd+"data":b=E.getImageData(0,0,x.width,x.height);break;case Yd:E=(a.document||document).createElement("img"),E.src=x.toDataURL(a.type,a.details),b=E;break;case"blob":return typeof y!="function"&&ee('Error: Diagram.makeImageData called with "returnType: toBlob", but no required "callback" function property defined.'),typeof x.toBlob=="function"?(x.toBlob(y,a.type,a.details),"toBlob"):(y(null),null);default:b=x.toDataURL(a.type,a.details)}return typeof y=="function"?(y(b),null):b};function lm(a,y,x,E){if(a.animationManager.Cc(),a.bd(),a.ta===null)return null;typeof y!="object"&&ee("properties argument must be an Object.");var b=y.size||null,z=y.scale||null;y.scale!==void 0&&isNaN(y.scale)&&(z="NaN");var tt=y.maxSize;y.maxSize===void 0&&(tt=x==="SVG"?new zt(1/0,1/0):new zt(2e3,2e3));var rt=y.position||null,ot=y.parts||null,st=y.padding===void 0?1:y.padding,ut=y.background||null,ft=y.omitTemporary;ft===void 0&&(ft=!0);var vt=y.document||document,xt=y.elementFinished||null,Pt=y.showTemporary;Pt===void 0&&(Pt=!ft),y=y.showGrid,y===void 0&&(y=Pt),b!==null&&isNaN(b.width)&&isNaN(b.height)&&(b=null),typeof st=="number"?st=new Di(st):st instanceof Di||ee("MakeImage padding must be a Margin or a number."),st.left=Math.max(st.left,0),st.right=Math.max(st.right,0),st.top=Math.max(st.top,0),st.bottom=Math.max(st.bottom,0),a.ib.Vc(!0),ft=new zl(null,vt,void 0,!0);var Ft=ft.context;if(!(b||z||ot||rt))return ft.width=a.Aa+Math.ceil(st.left+st.right),ft.height=a.ya+Math.ceil(st.top+st.bottom),x==="SVG"?E===null?null:(E.resize(ft.width,ft.height,ft.width,ft.height),E.ownerDocument=vt,E.hs=xt,pf(a,E.context,st,new zt(ft.width,ft.height),a.Ca,a.pa,ot,ut,Pt,y),E.context):(a.Xm=!1,pf(a,Ft,st,new zt(ft.width,ft.height),a.Ca,a.pa,ot,ut,Pt,y),a.Xm=!0,ft.context);var Xt=a.Pp,Wt=a.documentBounds.copy();if(Wt.Fv(a.yb),Pt)for(var oe=a.Wa.s,le=oe.length,ce=0;ce<le;ce++){var Ae=oe[ce];if(Ae.visible&&Ae.isTemporary){Ae=Ae.Pa.s;for(var Je=Ae.length,Ci=0;Ci<Je;Ci++){var Wi=Ae[Ci];Wi.isInDocumentBounds&&Wi.isVisible()&&(Wi=Wi.actualBounds,Wi.w()&&Wt.ed(Wi))}}}if(oe=new Bt(Wt.x,Wt.y),ot!==null){for(le=new ue(0,0,0,0),ce=!0,Ae=ot.iterator,Ae.reset();Ae.next();)Je=Ae.value,Je instanceof rr&&(Ci=Je.layer,Ci!==null&&!Ci.visible||Ci!==null&&!Pt&&Ci.isTemporary||!Je.isVisible()||(Je=Je.actualBounds,Je.w()&&(ce?(ce=!1,le.assign(Je)):le.ed(Je))));Wt.width=le.width,Wt.height=le.height,oe.x=le.x,oe.y=le.y}return rt!==null&&rt.w()&&(oe=rt,z||(z=Xt)),le=rt=0,st!==null&&(rt=st.left+st.right,le=st.top+st.bottom),ce=Ae=0,b!==null&&(Ae=b.width,ce=b.height,isFinite(Ae)&&(Ae=Math.max(0,Ae-rt)),isFinite(ce)&&(ce=Math.max(0,ce-le))),b!==null&&z!==null?(z==="NaN"&&(z=Xt),b.w()?(b=Ae,Wt=ce):isNaN(ce)?(b=Ae,Wt=Wt.height*z):(b=Wt.width*z,Wt=ce)):b!==null?b.w()?(z=Math.min(Ae/Wt.width,ce/Wt.height),b=Ae,Wt=ce):isNaN(ce)?(z=Ae/Wt.width,b=Ae,Wt=Wt.height*z):(z=ce/Wt.height,b=Wt.width*z,Wt=ce):z!==null?z==="NaN"&&tt.w()?(z=Math.min((tt.width-rt)/Wt.width,(tt.height-le)/Wt.height),z>Xt?(z=Xt,b=Wt.width,Wt=Wt.height):(b=tt.width,Wt=tt.height)):(b=Wt.width*z,Wt=Wt.height*z):(z=Xt,b=Wt.width,Wt=Wt.height),st!==null?(b+=rt,Wt+=le):st=new Di(0),tt!==null&&(Xt=tt.width,tt=tt.height,isNaN(Xt)&&(Xt=2e3),isNaN(tt)&&(tt=2e3),isFinite(Xt)&&(b=Math.min(b,Xt)),isFinite(tt)&&(Wt=Math.min(Wt,tt))),ft.width=Math.ceil(b),ft.height=Math.ceil(Wt),x==="SVG"?E===null?null:(E.resize(ft.width,ft.height,ft.width,ft.height),E.ownerDocument=vt,E.hs=xt,pf(a,E.context,st,new zt(Math.ceil(b),Math.ceil(Wt)),z,oe,ot,ut,Pt,y),E.context):(a.Xm=!1,pf(a,Ft,st,new zt(Math.ceil(b),Math.ceil(Wt)),z,oe,ot,ut,Pt,y),a.Xm=!0,ft.context)}xe.Object.defineProperties(Qe.prototype,{renderer:{get:function(){return this.nl},set:function(a){this instanceof pt||(a===""&&(a="default"),a=a.toLowerCase(),a!==this.nl&&(this.nl=a,a==="default"||a==="canvas"?(a=this.pj.get("svg"),a!==null&&a.Oa.remove(),this.ta&&(this.ib=this.ta.context)):a==="svg"?(this.pj.contains("svg")?a=this.pj.get("svg"):(a=new Au(this,Sn.document),this.bs("svg",a)),this.div!==null&&this.div.appendChild(a.Oa),this.ib=a.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))):a!=="debug"||this.pj.contains("SVG")||(a=new Au(this,Sn.document),this.bs("SVG",a),a.Oa.style.backgroundColor="whitesmoke",this.div!==null&&this.div.after(a.Oa)),this.hk()))}},div:{get:function(){return this.Ka},set:function(a){if(this.Ka!==a){var y=this.Ka;y!==null?(y.H=void 0,y.goDiagram=void 0,y.go=void 0,y.innerHTML="",this.ta!==null&&(y=this.ta.Oa,this.removeEventListener(y,"pointermove",this.dk,!1),this.removeEventListener(y,"pointerdown",this.ui,!1),this.removeEventListener(y,"pointerup",this.fk,!1),this.removeEventListener(y,"pointerout",this.ek,!1),this.removeEventListener(y,"pointercancel",this.ck,!1),this.ta.mx()),this.ol&&(this.ol.disconnect(),this.ol=null),y=this.toolManager,y!==null&&(y.mouseDownTools.each(function(x){x.cancelWaitAfter()}),y.mouseMoveTools.each(function(x){x.cancelWaitAfter()}),y.mouseUpTools.each(function(x){x.cancelWaitAfter()})),y.cancelWaitAfter(),this.currentTool.doCancel(),this.ta=null,this.removeEventListener(Sn,"resize",this.Ov,!1),this.removeEventListener(Sn,"wheel",this.$j,!0),Tu===this&&(Tu=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),wg(this,a),this.hk())}}},$w:{get:function(){return this.Sq}},pi:{get:function(){return this.hf}},draggedLink:{get:function(){return this.nt},set:function(a){this.nt!==a&&(this.nt=a,a!==null&&(this.Vt=a.fromPort,this.Wt=a.toPort))}},Mx:{get:function(){return this.Vt},set:function(a){this.Vt=a}},Nx:{get:function(){return this.Wt},set:function(a){this.Wt=a}},animationManager:{get:function(){return this.Yd}},undoManager:{get:function(){return this.cc.undoManager}},skipsUndoManager:{get:function(){return this.Wg},set:function(a){this.Wg=a,this.cc.skipsUndoManager=a}},delaysLayout:{get:function(){return this.lt},set:function(a){this.lt=a}},opacity:{get:function(){return this.pb},set:function(a){var y=this.pb;y!==a&&((0>a||1<a)&&Vn(a,"0 <= value <= 1",Qe,"opacity"),this.pb=a,this.g("opacity",y,a),this.N())}},validCycle:{get:function(){return this.wu},set:function(a){var y=this.wu;y!==a&&(this.wu=a,this.g("validCycle",y,a))}},layers:{get:function(){return this.Wa.iterator}},isModelReadOnly:{get:function(){var a=this.cc;return a===null?!1:a.isReadOnly},set:function(a){var y=this.cc;y!==null&&(y.isReadOnly=a)}},isReadOnly:{get:function(){return this.Gg},set:function(a){var y=this.Gg;y!==a&&(this.Gg=a,this.g("isReadOnly",y,a))}},isEnabled:{get:function(){return this.Jd},set:function(a){var y=this.Jd;y!==a&&(this.Jd=a,this.g("isEnabled",y,a))}},allowClipboard:{get:function(){return this.Us},set:function(a){var y=this.Us;y!==a&&(this.Us=a,this.g("allowClipboard",y,a))}},allowCopy:{get:function(){return this.Fi},set:function(a){var y=this.Fi;y!==a&&(this.Fi=a,this.g("allowCopy",y,a))}},allowDelete:{get:function(){return this.Gi},set:function(a){var y=this.Gi;y!==a&&(this.Gi=a,this.g("allowDelete",y,a))}},allowDragOut:{get:function(){return this.Vs},set:function(a){var y=this.Vs;y!==a&&(this.Vs=a,this.g("allowDragOut",y,a))}},allowDrop:{get:function(){return this.Ws},set:function(a){var y=this.Ws;y!==a&&(this.Ws=a,this.g("allowDrop",y,a))}},allowTextEdit:{get:function(){return this.Pi},set:function(a){var y=this.Pi;y!==a&&(this.Pi=a,this.g("allowTextEdit",y,a))}},allowGroup:{get:function(){return this.Hi},set:function(a){var y=this.Hi;y!==a&&(this.Hi=a,this.g("allowGroup",y,a))}},allowUngroup:{get:function(){return this.Qi},set:function(a){var y=this.Qi;y!==a&&(this.Qi=a,this.g("allowUngroup",y,a))}},allowInsert:{get:function(){return this.Ys},set:function(a){var y=this.Ys;y!==a&&(this.Ys=a,this.g("allowInsert",y,a))}},allowLink:{get:function(){return this.Ii},set:function(a){var y=this.Ii;y!==a&&(this.Ii=a,this.g("allowLink",y,a))}},allowRelink:{get:function(){return this.Ki},set:function(a){var y=this.Ki;y!==a&&(this.Ki=a,this.g("allowRelink",y,a))}},allowMove:{get:function(){return this.Ji},set:function(a){var y=this.Ji;y!==a&&(this.Ji=a,this.g("allowMove",y,a))}},allowReshape:{get:function(){return this.Li},set:function(a){var y=this.Li;y!==a&&(this.Li=a,this.g("allowReshape",y,a))}},allowResize:{get:function(){return this.Mi},set:function(a){var y=this.Mi;y!==a&&(this.Mi=a,this.g("allowResize",y,a))}},allowRotate:{get:function(){return this.Ni},set:function(a){var y=this.Ni;y!==a&&(this.Ni=a,this.g("allowRotate",y,a))}},allowSelect:{get:function(){return this.Oi},set:function(a){var y=this.Oi;y!==a&&(this.Oi=a,this.g("allowSelect",y,a))}},allowUndo:{get:function(){return this.Zs},set:function(a){var y=this.Zs;y!==a&&(this.Zs=a,this.g("allowUndo",y,a))}},allowZoom:{get:function(){return this.at},set:function(a){var y=this.at;y!==a&&(this.at=a,this.g("allowZoom",y,a))}},hasVerticalScrollbar:{get:function(){return this.nn},set:function(a){var y=this.nn;y!==a&&(this.nn=a,this.Ee=!0,this.N(),this.g("hasVerticalScrollbar",y,a),Il(this,!1))}},hasHorizontalScrollbar:{get:function(){return this.mn},set:function(a){var y=this.mn;y!==a&&(this.mn=a,this.Ee=!0,this.N(),this.g("hasHorizontalScrollbar",y,a),Il(this,!1))}},allowHorizontalScroll:{get:function(){return this.Xs},set:function(a){var y=this.Xs;y!==a&&(this.Xs=a,this.g("allowHorizontalScroll",y,a),Il(this,!1))}},allowVerticalScroll:{get:function(){return this.$s},set:function(a){var y=this.$s;y!==a&&(this.$s=a,this.g("allowVerticalScroll",y,a),Il(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(a){var y=this.iu;y!==a&&(0>a&&Vn(a,">= 0",Qe,"scrollHorizontalLineChange"),this.iu=a,this.g("scrollHorizontalLineChange",y,a))}},scrollVerticalLineChange:{get:function(){return this.mu},set:function(a){var y=this.mu;y!==a&&(0>a&&Vn(a,">= 0",Qe,"scrollVerticalLineChange"),this.mu=a,this.g("scrollVerticalLineChange",y,a))}},lastInput:{get:function(){return this.cj},set:function(a){this.cj=a}},previousInput:{get:function(){return this.Qg},set:function(a){this.Qg=a}},firstInput:{get:function(){return this.bq},set:function(a){this.bq=a}},currentCursor:{get:function(){return this.it},set:function(a){if(a===""&&(a=this.Op),this.it!==a){var y=this.ta,x=this.Ka;if(y!==null&&x!==null){this.it=a;var E=y.style.cursor;y.style.cursor=a,x.style.cursor=a,y.style.cursor===E&&(y.style.cursor="-webkit-"+a,x.style.cursor="-webkit-"+a,y.style.cursor===E&&(y.style.cursor="-moz-"+a,x.style.cursor="-moz-"+a,y.style.cursor===E&&(y.style.cursor=a,x.style.cursor=a)))}}}},defaultCursor:{get:function(){return this.Op},set:function(a){a===""&&(a="auto");var y=this.Op;y!==a&&(this.Op=a,this.g("defaultCursor",y,a))}},click:{get:function(){return this.zh},set:function(a){var y=this.zh;y!==a&&(this.zh=a,this.g("click",y,a))}},doubleClick:{get:function(){return this.Fh},set:function(a){var y=this.Fh;y!==a&&(this.Fh=a,this.g("doubleClick",y,a))}},contextClick:{get:function(){return this.Bh},set:function(a){var y=this.Bh;y!==a&&(this.Bh=a,this.g("contextClick",y,a))}},mouseOver:{get:function(){return this.Qh},set:function(a){var y=this.Qh;y!==a&&(this.Qh=a,this.g("mouseOver",y,a))}},mouseHover:{get:function(){return this.Oh},set:function(a){var y=this.Oh;y!==a&&(this.Oh=a,this.g("mouseHover",y,a))}},mouseHold:{get:function(){return this.Nh},set:function(a){var y=this.Nh;y!==a&&(this.Nh=a,this.g("mouseHold",y,a))}},mouseDragOver:{get:function(){return this.Qt},set:function(a){var y=this.Qt;y!==a&&(this.Qt=a,this.g("mouseDragOver",y,a))}},mouseDrop:{get:function(){return this.Lh},set:function(a){var y=this.Lh;y!==a&&(this.Lh=a,this.g("mouseDrop",y,a))}},handlesDragDropForTopLevelParts:{get:function(){return this.xt},set:function(a){var y=this.xt;y!==a&&(this.xt=a,this.g("handlesDragDropForTopLevelParts",y,a))}},mouseEnter:{get:function(){return this.Mh},set:function(a){var y=this.Mh;y!==a&&(this.Mh=a,this.g("mouseEnter",y,a))}},mouseLeave:{get:function(){return this.Ph},set:function(a){var y=this.Ph;y!==a&&(this.Ph=a,this.g("mouseLeave",y,a))}},toolTip:{get:function(){return this.$h},set:function(a){var y=this.$h;y!==a&&(this.$h=a,this.g("toolTip",y,a))}},contextMenu:{get:function(){return this.Ch},set:function(a){var y=this.Ch;y!==a&&(this.Ch=a,this.g("contextMenu",y,a))}},commandHandler:{get:function(){return this.nb},set:function(a){this.nb!==a&&(this.nb=a,a.Xe(this))}},toolManager:{get:function(){return this.te},set:function(a){this.te!==a&&(this.te=a,a.diagram=this)}},defaultTool:{get:function(){return this.ob},set:function(a){var y=this.ob;y!==a&&(this.ob=a,a.diagram=this,this.currentTool===y&&(this.currentTool=a))}},currentTool:{get:function(){return this.hb},set:function(a){var y=this.hb;y&&(y.isActive&&y.doDeactivate(),y.cancelWaitAfter(),y.doStop()),a===null&&(a=this.defaultTool),a!==null&&(this.hb=a,a.diagram=this,a.doStart())}},selection:{get:function(){return this.Hw}},maxSelectionCount:{get:function(){return this.Nt},set:function(a){var y=this.Nt;if(y!==a)if(0<=a&&!isNaN(a)){if(this.Nt=a,this.g("maxSelectionCount",y,a),!this.undoManager.isUndoingRedoing&&(a=this.selection.count-a,0<a)){this.R("ChangingSelection",this.selection),y=this.selection.Fa();for(var x=0;x<a;x++)y[x].isSelected=!1;this.R("ChangedSelection",this.selection)}}else Vn(a,">= 0",Qe,"maxSelectionCount")}},nodeSelectionAdornmentTemplate:{get:function(){return this.St},set:function(a){var y=this.St;y!==a&&(this.St=a,this.g("nodeSelectionAdornmentTemplate",y,a))}},groupSelectionAdornmentTemplate:{get:function(){return this.wt},set:function(a){var y=this.wt;y!==a&&(this.wt=a,this.g("groupSelectionAdornmentTemplate",y,a))}},linkSelectionAdornmentTemplate:{get:function(){return this.Kt},set:function(a){var y=this.Kt;y!==a&&(this.Kt=a,this.g("linkSelectionAdornmentTemplate",y,a))}},highlighteds:{get:function(){return this.nw}},isModified:{get:function(){var a=this.undoManager;return a.isEnabled?a.currentTransaction!==null?!0:this.rn&&this.Ce!==a.historyIndex:this.rn},set:function(a){if(this.rn!==a){this.rn=a;var y=this.undoManager;!a&&y.isEnabled&&(this.Ce=y.historyIndex),a||rm(this)}}},model:{get:function(){return this.cc},set:function(a){var y=this.cc;if(y!==a){this.currentTool.doCancel(),y&&y.undoManager!==a.undoManager&&y.undoManager.isInTransaction&&ee("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var x=xg(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var E=this.vb;this.vb=!0,Bu(this.animationManager,"Model"),y&&(this.pf!==null&&this.pf.each(function(z){return y.ik(z)}),y.ik(this.Oc)),this.cc=a,this.partManager=Tg(this.cc.type);for(var b=0;b<x.length;b++)this.add(x[b]);a.Pe(this.Hb),this.partManager.addAllModeledParts(),a.ik(this.Hb),a.Pe(this.Oc),this.pf!==null&&this.pf.each(function(z){return a.Pe(z)}),this.vb=E,this.Ya(),this.vb||this.N(),y&&a.undoManager.copyProperties(y.undoManager)}}},aa:{get:function(){return this.rw},set:function(a){this.rw=a}},As:{get:function(){return this.sy}},skipsModelSourceBindings:{get:function(){return this.Iw},set:function(a){this.Iw=a}},Ns:{get:function(){return this.ou},set:function(a){this.ou=a}},nodeTemplate:{get:function(){return this.Lg.I("")},set:function(a){var y=this.Lg.I("");y!==a&&(this.Lg.add("",a),this.g("nodeTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},nodeTemplateMap:{get:function(){return this.Lg},set:function(a){var y=this.Lg;y!==a&&(this.Lg=a,this.g("nodeTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplate:{get:function(){return this.Yi.I("")},set:function(a){var y=this.Yi.I("");y!==a&&(this.Yi.add("",a),this.g("groupTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplateMap:{get:function(){return this.Yi},set:function(a){var y=this.Yi;y!==a&&(this.Yi=a,this.g("groupTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplate:{get:function(){return this.Kh.I("")},set:function(a){var y=this.Kh.I("");y!==a&&(this.Kh.add("",a),this.g("linkTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplateMap:{get:function(){return this.Kh},set:function(a){var y=this.Kh;y!==a&&(this.Kh=a,this.g("linkTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},isMouseCaptured:{get:function(){return this.qw},set:function(a){var y=this.ta;y!==null&&(y=y.Oa,y instanceof SVGElement||(a?(this.lastInput.bubbles=!1,this.removeEventListener(y,"pointermove",this.dk,!1),this.removeEventListener(y,"pointerdown",this.ui,!1),this.removeEventListener(y,"pointerup",this.fk,!1),this.removeEventListener(y,"pointerout",this.ek,!1),this.removeEventListener(y,"pointercancel",this.ck,!1),this.addEventListener(Sn,"pointermove",this.dk,!0),this.addEventListener(Sn,"pointerdown",this.ui,!0),this.addEventListener(Sn,"pointerup",this.fk,!0),this.addEventListener(Sn,"pointerout",this.ek,!0),this.addEventListener(Sn,"pointercancel",this.ck,!0),this.removeEventListener(y,"wheel",this.$j,!1),this.addEventListener(Sn,"wheel",this.$j,!0),this.addEventListener(Sn,"selectstart",this.preventDefault,!1)):(this.removeEventListener(Sn,"pointermove",this.dk,!0),this.removeEventListener(Sn,"pointerdown",this.ui,!0),this.removeEventListener(Sn,"pointerup",this.fk,!0),this.removeEventListener(Sn,"pointerout",this.ek,!0),this.removeEventListener(Sn,"pointercancel",this.ck,!0),this.addEventListener(y,"pointermove",this.dk,!1),this.addEventListener(y,"pointerdown",this.ui,!1),this.addEventListener(y,"pointerup",this.fk,!1),this.addEventListener(y,"pointerout",this.ek,!1),this.addEventListener(y,"pointercancel",this.ck,!1),this.removeEventListener(Sn,"wheel",this.$j,!0),this.removeEventListener(Sn,"selectstart",this.preventDefault,!1),this.addEventListener(y,"wheel",this.$j,!1)),this.qw=a))}},position:{get:function(){return this.pa},set:function(a){var y=Bt.alloc().assign(this.pa);if(!y.D(a)){var x=this.viewportBounds.copy();this.pa.assign(a),Yp(this.animationManager,y,this.pa),this.vb||this.ta===null&&!this.wo.w()?Eu(this):(this.vb=!0,a=this.scale,Eg(this,this.Sp,this.Aa/a,this.ya/a,this.zk,!1),this.vb=!1),this.vb||this.onViewportBoundsChanged(x,this.viewportBounds,this.Ca,!1)}Bt.free(y)}},initialPosition:{get:function(){return this.zt},set:function(a){this.zt.D(a)||(this.zt=a.J())}},initialScale:{get:function(){return this.At},set:function(a){this.At!==a&&(this.At=a)}},grid:{get:function(){return this.fe===null&&(this.fe=tm(this)),this.fe},set:function(a){var y=this.fe;if(y!==a){y===null&&(y=this.fe=tm(this)),a.type!==ei.Grid&&ee("Diagram.grid must be a Panel of type Panel.Grid");var x=y.panel;x!==null&&x.remove(y),this.fe=a,a.name="GRID",x!==null&&x.add(a),Cu(this),this.N(),this.g("grid",y,a)}}},viewportBounds:{get:function(){return this.Rw}},viewSize:{get:function(){return this.wo},set:function(a){var y=this.viewSize;y.D(a)||(this.wo=a=a.J(),this.ya=this.Aa=0,a.w()?(this.Aa=a.width,this.ya=a.height):this.Ka!==null&&(this.Aa=this.Ka.clientWidth||1,this.ya=this.Ka.clientHeight||1),Eu(this),this.Ya(),this.g("viewSize",y,a),this.redraw())}},fixedBounds:{get:function(){return this.ut},set:function(a){var y=this.ut;y.D(a)||(a.width!==-1/0&&a.height!==1/0&&a.height!==-1/0||ee("fixedBounds width/height must not be Infinity"),this.ut=a=a.J(),this.Ya(),this.g("fixedBounds",y,a))}},scrollMargin:{get:function(){return this.rj},set:function(a){typeof a=="number"&&(a=new Di(a));var y=this.rj;y.D(a)||(this.rj=a=a.J(),this.g("scrollMargin",y,a),this.hk())}},scrollMode:{get:function(){return this.sj},set:function(a){var y=this.sj;y!==a&&(this.sj=a,a===Ah&&Il(this,!1),this.g("scrollMode",y,a),this.Ee=!0,this.N())}},scrollsPageOnFocus:{get:function(){return this.nu},set:function(a){var y=this.nu;y!==a&&(this.nu=a,this.g("scrollsPageOnFocus",y,a))}},positionComputation:{get:function(){return this.Zt},set:function(a){var y=this.Zt;y!==a&&(this.Zt=a,Il(this,!1),this.g("positionComputation",y,a))}},scaleComputation:{get:function(){return this.fu},set:function(a){var y=this.fu;y!==a&&(this.fu=a,Bg(this,this.scale,this.scale),this.g("scaleComputation",y,a))}},documentBounds:{get:function(){return this.Sp}},isVirtualized:{get:function(){return this.It},set:function(a){var y=this.It;y!==a&&(this.It=a,this.g("isVirtualized",y,a))}},scale:{get:function(){return this.Ca},set:function(a){var y=this.Ca;y!==a&&Bg(this,y,a)}},defaultScale:{get:function(){return this.Pp},set:function(a){this.Pp=a}},autoScale:{get:function(){return this.yh},set:function(a){var y=this.yh;y!==a&&(this.yh=a,this.g("autoScale",y,a),a!==ys&&Il(this,!1))}},initialAutoScale:{get:function(){return this.Fg},set:function(a){var y=this.Fg;y!==a&&(this.Fg=a,this.g("initialAutoScale",y,a))}},initialViewportSpot:{get:function(){return this.Bt},set:function(a){var y=this.Bt;y!==a&&(a.sb()||ee("initialViewportSpot must be a specific Spot: "+a),this.Bt=a,this.g("initialViewportSpot",y,a))}},initialDocumentSpot:{get:function(){return this.yt},set:function(a){var y=this.yt;y!==a&&(a.sb()||ee("initialViewportSpot must be a specific Spot: "+a),this.yt=a,this.g("initialDocumentSpot",y,a))}},minScale:{get:function(){return this.Ot},set:function(a){var y=this.Ot;y!==a&&(0<a?(this.Ot=a,this.g("minScale",y,a),a>this.scale&&(this.scale=a)):Vn(a,"> 0",Qe,"minScale"))}},maxScale:{get:function(){return this.Mt},set:function(a){var y=this.Mt;y!==a&&(0<a?(this.Mt=a,this.g("maxScale",y,a),a<this.scale&&(this.scale=a)):Vn(a,"> 0",Qe,"maxScale"))}},zoomPoint:{get:function(){return this.zu},set:function(a){this.zu.D(a)||(this.zu=a=a.J())}},contentAlignment:{get:function(){return this.zk},set:function(a){var y=this.zk;y.D(a)||(this.zk=a=a.J(),this.g("contentAlignment",y,a),Il(this,!1))}},initialContentAlignment:{get:function(){return this.pq},set:function(a){var y=this.pq;y.D(a)||(this.pq=a=a.J(),this.g("initialContentAlignment",y,a))}},padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new Di(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.Ya(),this.g("padding",y,a))}},partManager:{get:function(){return this.Pc},set:function(a){var y=this.Pc;y!==a&&(a.diagram!==null&&ee("Cannot share PartManagers between Diagrams: "+a.toString()),y&&y.Xe(null),this.Pc=a,a.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(a){var y=this.Sc;y!==a&&(this.Sc=a,a.diagram=this,a.group=null,this.xh=!0,this.g("layout",y,a),this.$b())}},isTreePathToChildren:{get:function(){return this.Ht},set:function(a){var y=this.Ht;if(y!==a&&(this.Ht=a,this.g("isTreePathToChildren",y,a),!this.undoManager.isUndoingRedoing))for(a=this.nodes;a.next();)ip(a.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(a){var y=this.uu;y!==a&&(a!==Lh&&a!==ka&&a!==Af&&ee("Unknown Diagram.treeCollapsePolicy: "+a),this.uu=a,this.g("treeCollapsePolicy",y,a))}},Ue:{get:function(){return this.pw},set:function(a){this.pw=a}},avoidanceCellSize:{get:function(){return this.aw},set:function(a){this.Xh=null,this.aw=new zt(Math.max(1,a.width),Math.max(1,a.height))}},avoidanceLimit:{get:function(){return this.bw},set:function(a){this.bw=Math.max(1,a)}},autoScrollInterval:{get:function(){return this.vp},set:function(a){var y=this.vp;y!==a&&(this.vp=a,this.g("autoScrollInterval",y,a))}},autoScrollRegion:{get:function(){return this.xp},set:function(a){typeof a=="number"&&(a=new Di(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),xe.Object.defineProperties(Qe,{licenseKey:{get:function(){return Kg.jc()},set:function(a){Kg.add(a.replace(/\s/g,""))}},version:{get:function(){return Kd}}}),Qe.prototype.makeImageData=Qe.prototype.Jx,Qe.prototype.makeImage=Qe.prototype.Wz,Qe.prototype.cacheGroupExternalLinks=Qe.prototype.Fu,Qe.prototype.addRenderer=Qe.prototype.bs,Qe.prototype.makeSVG=Qe.prototype.av,Qe.prototype.makeSvg=Qe.prototype.Cs,Qe.prototype.stopAutoScroll=Qe.prototype.ug,Qe.prototype.doAutoScroll=Qe.prototype.gs,Qe.prototype.isUnoccupied=Qe.prototype.Yj,Qe.prototype.raiseDiagramEvent=Qe.prototype.R,Qe.prototype.removeDiagramListener=Qe.prototype.am,Qe.prototype.addDiagramListener=Qe.prototype.Bj,Qe.prototype.findTreeRoots=Qe.prototype.yz,Qe.prototype.layoutDiagram=Qe.prototype.Uz,Qe.prototype.findTopLevelGroups=Qe.prototype.qz,Qe.prototype.findTopLevelNodesAndLinks=Qe.prototype.rz,Qe.prototype.ensureBounds=Qe.prototype.Va,Qe.prototype.findLinksByExample=Qe.prototype.ls,Qe.prototype.findNodesByExample=Qe.prototype.ms,Qe.prototype.findLinkForData=Qe.prototype.Kc,Qe.prototype.findNodeForData=Qe.prototype.ii,Qe.prototype.findPartForData=Qe.prototype.Lc,Qe.prototype.findLinkForKey=Qe.prototype.findLinkForKey,Qe.prototype.findNodeForKey=Qe.prototype.Vb,Qe.prototype.findPartForKey=Qe.prototype.findPartForKey,Qe.prototype.rebuildParts=Qe.prototype.Wd,Qe.prototype.transformViewToDoc=Qe.prototype.Ps,Qe.prototype.transformRectDocToView=Qe.prototype.zA,Qe.prototype.transformDocToView=Qe.prototype.op,Qe.prototype.centerRect=Qe.prototype.es,Qe.prototype.scrollToRect=Qe.prototype.tv,Qe.prototype.scroll=Qe.prototype.scroll,Qe.prototype.highlightCollection=Qe.prototype.Jz,Qe.prototype.highlight=Qe.prototype.Iz,Qe.prototype.selectCollection=Qe.prototype.rA,Qe.prototype.select=Qe.prototype.select,Qe.prototype.updateAllRelationshipsFromData=Qe.prototype.rp,Qe.prototype.updateAllTargetBindings=Qe.prototype.updateAllTargetBindings,Qe.prototype.commit=Qe.prototype.commit,Qe.prototype.rollbackTransaction=Qe.prototype.Kf,Qe.prototype.commitTransaction=Qe.prototype.eb,Qe.prototype.startTransaction=Qe.prototype.Ea,Qe.prototype.raiseChanged=Qe.prototype.g,Qe.prototype.raiseChangedEvent=Qe.prototype.cb,Qe.prototype.removeChangedListener=Qe.prototype.ik,Qe.prototype.addChangedListener=Qe.prototype.Pe,Qe.prototype.removeModelChangedListener=Qe.prototype.mA,Qe.prototype.addModelChangedListener=Qe.prototype.Yw,Qe.prototype.findLayer=Qe.prototype.Qj,Qe.prototype.removeLayer=Qe.prototype.kA,Qe.prototype.addLayerAfter=Qe.prototype.Cy,Qe.prototype.addLayerBefore=Qe.prototype.Ww,Qe.prototype.addLayer=Qe.prototype.Al,Qe.prototype.moveParts=Qe.prototype.moveParts,Qe.prototype.copyParts=Qe.prototype.Kj,Qe.prototype.removeParts=Qe.prototype.Is,Qe.prototype.remove=Qe.prototype.remove,Qe.prototype.add=Qe.prototype.add,Qe.prototype.clearDelayedGeometries=Qe.prototype.bx,Qe.prototype.setProperties=Qe.prototype.nm,Qe.prototype.attach=Qe.prototype.Du,Qe.prototype.set=Qe.prototype.set,Qe.prototype.resetInputOptions=Qe.prototype.Sx,Qe.prototype.setInputOption=Qe.prototype.sA,Qe.prototype.getInputOption=Qe.prototype.Ql,Qe.prototype.resetRenderingHints=Qe.prototype.Tx,Qe.prototype.setRenderingHint=Qe.prototype.Xx,Qe.prototype.getRenderingHint=Qe.prototype.Gf,Qe.prototype.maybeUpdate=Qe.prototype.bd,Qe.prototype.requestUpdate=Qe.prototype.$b,Qe.prototype.delayInitialization=Qe.prototype.Xy,Qe.prototype.isUpdateRequested=Qe.prototype.Pz,Qe.prototype.invalidateDocumentBounds=Qe.prototype.Ya,Qe.prototype.findObjectsNear=Qe.prototype.og,Qe.prototype.findPartsNear=Qe.prototype.mz,Qe.prototype.findObjectsIn=Qe.prototype.Cf,Qe.prototype.findPartsIn=Qe.prototype.ux,Qe.prototype.findObjectsAt=Qe.prototype.ji,Qe.prototype.findPartsAt=Qe.prototype.lz,Qe.prototype.findObjectAt=Qe.prototype.ic,Qe.prototype.findPartAt=Qe.prototype.Ol,Qe.prototype.focusObject=Qe.prototype.zz,Qe.prototype.alignDocument=Qe.prototype.Jy,Qe.prototype.zoomToRect=Qe.prototype.BA,Qe.prototype.zoomToFit=Qe.prototype.zoomToFit,Qe.prototype.diagramScroll=Qe.prototype.kx,Qe.prototype.focus=Qe.prototype.focus;var Ef=new on,um=null,da=Sn.document!==void 0,Gd=null,sd="",ys=new dn(Qe,"None",0),ll=new dn(Qe,"Uniform",1),ld=new dn(Qe,"UniformToFill",2),kc=new dn(Qe,"CycleAll",10),Wg=new dn(Qe,"CycleNotDirected",11),Hg=new dn(Qe,"CycleNotDirectedFast",12),Zg=new dn(Qe,"CycleNotUndirected",13),Vg=new dn(Qe,"CycleDestinationTree",14),Gg=new dn(Qe,"CycleSourceTree",15),Ah=new dn(Qe,"DocumentScroll",1),Fc=new dn(Qe,"InfiniteScroll",2),Lh=new dn(Qe,"TreeParentCollapsed",21),ka=new dn(Qe,"AllParentsCollapsed",22),Af=new dn(Qe,"AnyParentsCollapsed",23),Kg=new cn,Kd="2.3.10",Yd="image",Dc=null,hm=!1;function gs(){if(da){var a=Sn.document.createElement("canvas"),y=a.getContext("2d"),x=wn("7ca11abfd022028846");y[x]=wn("398c3597c01238");for(var E=["5da73c80a36455d7038e4972187c3cae51fd22",oi.Dx+"4ae6247590da4bb21c324ba3a84e385776",Ei.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",me.za],b=1;5>b;b++)y[wn("7ca11abfd7330390")](wn(E[b-1]),10,15*b);for(y[x]=wn("39f046ebb36e4b"),x=1;5>x;x++)y[wn("7ca11abfd7330390")](wn(E[x-1]),10,15*x);(E.length!==4||E[0][0]!=="5"||E[3][0]!=="7")&&(Ei.prototype.Cd=Ei.prototype.Eu),Dc=a}}Qe.className="Diagram",Qe.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=Sn.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof Qe?y.H:null},Qe.inherit=function(a,y){function x(){}if(Object.getPrototypeOf(a).prototype)throw Error(`Used go.Diagram.inherit defining already defined class
`+a);x.prototype=y.prototype,a.prototype=new x,a.prototype.constructor=a},Qe.useDOM=function(a){da=a?Sn.document!==void 0:!1},Qe.isUsingDOM=function(){return da},Qe.None=ys,Qe.Uniform=ll,Qe.UniformToFill=ld,Qe.CycleAll=kc,Qe.CycleNotDirected=Wg,Qe.CycleNotDirectedFast=Hg,Qe.CycleNotUndirected=Zg,Qe.CycleDestinationTree=Vg,Qe.CycleSourceTree=Gg,Qe.DocumentScroll=Ah,Qe.InfiniteScroll=Fc,Qe.TreeParentCollapsed=Lh,Qe.AllParentsCollapsed=ka,Qe.AnyParentsCollapsed=Af;function dm(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function Ud(a,y){if(y.ib.setTransform(y.Mb,0,0,y.Mb,0,0),y.ib.yc(),a.Rc===null)t:{y="f";var x=Sn[wn("76a715b2f73f148a")][wn("72ba13b5")]||"";if(a.Rc=!0,da){var E=Qe[wn("76a115b6ed251eaf4692")];if(E)for(var b=Kg.iterator;b.next()&&(E=b.value,E=wn(E).split(wn("39e9")),!(6>E.length));){var z=wn(E[1]).split(".");if(E[4]!=="7da71ca0")break;var tt=wn(oi[wn("6cae19")]).split(".");if(z[0]>tt[0]||z[0]===tt[0]&&z[1]>=tt[1]){var rt=Sn[wn("74a900bae4370f8b51")][wn("6fbb13a1c2311e8a57")].toLowerCase();if(tt=rt[wn("73a612b6fb191d")](wn("3aad1ab6e022098b4dc4")),z=wn(E[2]),-1<tt&&(rt=rt[wn("73a612b6fb191d")](z.toLowerCase()+"/"),a.Rc=!(-1<rt&&rt<tt),!a.Rc))break;for(tt=x[wn("76ad18b4f73e")],rt=x[wn("73a612b6fb191d")](wn("35e7"))+2;rt<tt;rt++)y+=x[rt];if(tt=y[wn("73a612b6fb191d")](z),0>tt&&z!==wn("7da71ca0ad381e90")&&(tt=y[wn("73a612b6fb191d")](wn("76a715b2ef3e149757"))),0>tt&&(tt=y[wn("73a612b6fb191d")](wn("76a715b2ef3e149757"))),0>tt&&(tt=y[wn("73a612b6fb191d")](wn("2bfa41fdb3784bca12"))),0>tt&&(tt=x[wn("73a612b6fb191d")](wn("7baa19a6f76c1988428554"))),a.Rc=!(0<=tt&&tt<y[wn("73a612b6fb191d")](wn("35"))||y[wn("73a612b6fb191d")](wn("35"))===-1),!a.Rc||x[wn("73a612b6fb191d")](wn("7fb002b6ed25128b4da25b2e"))&&(a.Rc=!(-1<x[wn("73a612b6fb191d")](z)),!a.Rc)||(tt=Sn[wn("76a715b2f73f148a")][wn("69ad17a1e03e")],rt=tt[wn("73a612b6fb191d")](wn("7fb002b6ed25128b4da25b2e")),-1<rt&&(a.Rc=!(tt[wn("73a612b6fb191d")](z)>rt),!a.Rc)))break;if(z[0]==="#"){tt=Sn.document.createElement("div");for(var ot=E[0].replace(/[A-Za-z]/g,"");4>ot.length;)ot+="9";if(rt=ot,ot=ot.substr(ot.length-4),E="",E+=["gsh","gsf"][parseInt(ot.substr(0,1),10)%2],E+=["Header","Background","Display","Feedback"][parseInt(ot.substr(0,1),10)%4],tt[wn("79a417a0f0181a8946")]=E,Sn.document[wn("78a712aa")]){Sn.document[wn("78a712aa")][wn("7bb806b6ed32388c4a875b")](tt),ot=Sn.getComputedStyle(tt).getPropertyValue(wn("78a704b7e62456904c9b12701b6532a8"));var st=Sn.getComputedStyle(tt).getPropertyValue(wn("75b817b0ea2202"));if(Sn.document[wn("78a712aa")][wn("68ad1bbcf533388c4a875b")](tt),ot){if(tt=Sn[wn("77a902b0eb1b1e804a8a")],st==="0."+parseInt(rt,10)%100||ot.indexOf(parseInt(z[1]+z[2],16))!==-1&&ot.indexOf(parseInt(z[3]+z[4],16))!==-1){a.Rc=!1;break}else if(tt&&tt(wn("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(E="."+E,z=0;z<document.styleSheets.length;z++){tt=document.styleSheets[z].rules||document.styleSheets[z].cssRules;for(var ut in tt)if(E===tt[ut].selectorText){a.Rc=!1;break t}}}}else a.Rc=null,a.Rc=!1}}}else{for(ut=x[wn("76ad18b4f73e")],b=x[wn("73a612b6fb191d")](wn("35e7"))+2;b<ut;b++)y+=x[b];x=y[wn("73a612b6fb191d")](wn("7da71ca0ad381e90")),a.Rc=!(0<=x&&x<y[wn("73a612b6fb191d")](wn("35")))}}}return 0<a.Rc&&a!==a.wy}dm.className="DiagramHelper";function nh(a){this.j=a===void 0?new Bt:a,this.o=new Bt}xe.Object.defineProperties(nh.prototype,{point:{get:function(){return this.j},set:function(a){this.j=a}},shifted:{get:function(){return this.o},set:function(a){this.o=a}}});var Nc="DraggingInfo";nh.className="DraggingInfo";function it(a,y,x){this.node=a,this.info=y,this.Su=x}it.className="DraggingNodeInfoPair";function at(){this.reset()}at.prototype.reset=function(){this.isGridSnapEnabled=!1,this.isGridSnapRealtime=!0,this.gridSnapCellSize=new zt(NaN,NaN).freeze(),this.gridSnapCellSpot=ar,this.gridSnapOrigin=new Bt(NaN,NaN).freeze(),this.groupsSnapMembers=this.dragsTree=this.dragsLink=!1,this.dragsMembers=this.groupsAlwaysMove=!0},at.className="DraggingOptions";function ct(a,y){if(typeof a=="string"||Sn.Element&&a instanceof Element)var x=Qe.call(this,a)||this;else x=Qe.call(this)||this,y=a;return ht(x),y&&x.nm(y),x}ye(ct,Qe);function ht(a){a.allowDragOut=!0,a.allowMove=!1,a.isReadOnly=!0,a.contentAlignment=Dr,a.layout=new $a}ct.prototype.reset=function(){Qe.prototype.reset.call(this),ht(this)},ct.className="Palette";function pt(a,y){if(typeof a=="string"||Sn.Element&&a instanceof Element)var x=Qe.call(this,a)||this;else x=Qe.call(this)||this,y=a;var E=x;x.animationManager.isEnabled=!1,x.vb=!0,x.V=null,x.mn=!1,x.nn=!1,x.F=!0,x.u=!0,x.ia=0,x.o=!1,x.ql=null,x.Xx("drawShadows",!1),a=new rr;var b=new Wr;return b.stroke="magenta",b.strokeWidth=2,b.fill="transparent",b.name="BOXSHAPE",a.selectable=!0,a.selectionAdorned=!1,a.selectionObjectName="BOXSHAPE",a.locationObjectName="BOXSHAPE",a.resizeObjectName="BOXSHAPE",a.cursor="move",a.add(b),x.j=a,x.allowCopy=!1,x.allowDelete=!1,x.allowSelect=!0,x.autoScrollRegion=new Di(0,0,0,0),x.pa.h(0,0),x.toolManager.gb("Dragging",new _t,x.toolManager.mouseMoveTools),x.click=function(){var z=E.observed;if(z!==null){var tt=z.viewportBounds,rt=E.lastInput.documentPoint;z.position=new Bt(rt.x-tt.width/2,rt.y-tt.height/2)}},x.Pf=function(){E.Ya(),Ot(E)},x.Xd=function(){E.observed!==null&&(E.Ya(),E.N())},x.Ha=function(){1>E.updateDelay?E.N():E.o||(E.o=!0,setTimeout(function(){return E.redraw()},E.updateDelay))},x.Of=function(){E.observed!==null&&Ot(E)},x.autoScale=ll,x.vb=!1,y&&Object.assign(x,y),x}ye(pt,Qe),pt.prototype.computePixelRatio=function(){return 1},pt.prototype.redraw=function(){if(this.o&&1<=this.updateDelay){this.o=!1;var a=this.ta,y=this.ib;if(a!==null&&y!==null){if(Hd(this),this.ql===null){var x=new zl(null);x.width=a.width,x.height=a.height,this.ql=x}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),Lt(this)}finally{this.ta=a,this.ib=y}}}Qe.prototype.redraw.call(this)},pt.prototype.gc=function(){if(this.Ka===null&&ee("No div specified"),this.ta===null&&ee("No canvas specified"),!(this.ta instanceof Au)&&(jv(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){Hd(this);var y=this.ta;a=this.ib,a.Vc(!0),a.setTransform(1,0,0,1,0,0),a.clearRect(0,0,y.width,y.height),1>this.updateDelay?Lt(this):this.ql!==null&&(a.drawImage(this.ql.Oa,0,0),y=this.Ab,y.reset(),this.scale!==1&&y.scale(this.scale),this.position.x===0&&this.position.y===0||y.translate(-this.position.x,-this.position.y),a.scale(this.Mb,this.Mb),a.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),a.yc()),y=this.Wa.s;for(var x=y.length,E=0;E<x;E++)y[E].gc(a,this);this.Fc=this.vd=!1}}};function Lt(a){var y=a.observed;if(y!==null){var x=a.drawsTemporaryLayers,E=a.drawsGrid&&x,b=y.grid;E&&b!==null&&b.visible&&!isNaN(b.width)&&!isNaN(b.height)&&(b=ue.alloc().assign(a.viewportBounds).ed(y.viewportBounds),Cu(y,b),ue.free(b),ss(y));var z=a.Ab;z.reset(),a.scale!==1&&z.scale(a.scale),a.position.x===0&&a.position.y===0||z.translate(-a.position.x,-a.position.y),b=a.ib,b.scale(a.Mb,a.Mb),b.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),b.yc(),y=y.Wa.s,z=y.length;for(var tt=0;tt<z;tt++){var rt=y[tt],ot=a;if(rt.visible&&rt.opacity!==0){var st=rt.diagram.grid.part;if(!x&&rt.isTemporary)E&&st.layer===rt&&(rt=eh(rt,b),st.gc(b,ot),b.globalAlpha=rt);else{for(var ut=eh(rt,b),ft=ot.scale,vt=ue.alloc(),xt=rt.Pa.s,Pt=xt.length,Ft=0;Ft<Pt;Ft++){var Xt=xt[Ft];(E||Xt!==st)&&rt.Oj(b,Xt,ot,null,ft,vt,!1)}ue.free(vt),b.globalAlpha=ut}}}}}function Ot(a){var y=a.box;if(y!==null){var x=a.observed;if(x!==null){a.Fc=!0,x=x.viewportBounds;var E=y.selectionObject,b=zt.alloc();b.h(x.width,x.height),E.desiredSize=b,zt.free(b),a=2/a.scale,E instanceof Wr&&(E.strokeWidth=a),y.location=new Bt(x.x-a/2,x.y-a/2),y.isSelected=!0}}}pt.prototype.computeBounds=function(){var a=this.observed;if(a===null)return Fr;var y=a.documentBounds.copy();return y.ed(a.viewportBounds),y},pt.prototype.invalidateViewport=function(){this.Fc!==!0&&(this.Fc=!0,this.$b())},pt.prototype.onViewportBoundsChanged=function(a,y,x,E){this.vb||(this.vd=!0,this.N(),this.Ee=!0,this.Ya(),Ot(this),this.fc.scale=x,this.fc.position.x=a.x,this.fc.position.y=a.y,this.fc.bounds.assign(a),this.fc.Oz=E,this.R("ViewportBoundsChanged",this.fc,a))},xe.Object.defineProperties(pt.prototype,{observed:{get:function(){return this.V},set:function(a){var y=this.V;if(a instanceof pt&&ee("Overview.observed Diagram may not be an Overview itself: "+a),y!==a){if(y!==null&&(this.remove(this.box),y.am("ViewportBoundsChanged",this.Pf),y.am("DocumentBoundsChanged",this.Xd),y.am("InvalidateDraw",this.Ha),y.am("AnimationFinished",this.Of)),this.V=a,a!==null&&(a.Bj("ViewportBoundsChanged",this.Pf),a.Bj("DocumentBoundsChanged",this.Xd),a.Bj("InvalidateDraw",this.Ha),a.Bj("AnimationFinished",this.Of),this.add(this.box)),this.Ya(),a===null){this.ql=null;var x=this.ta,E=this.ib;x&&E&&(E.setTransform(1,0,0,1,0,0),E.clearRect(0,0,x.width,x.height))}else this.Ha(null),Ot(this),this.N();this.g("observed",y,a)}}},box:{get:function(){return this.j},set:function(a){var y=this.j;y!==a&&(this.j=a,this.remove(y),this.add(this.j),Ot(this),this.g("box",y,a))}},drawsTemporaryLayers:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a,this.redraw())}},drawsGrid:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a,this.redraw())}},updateDelay:{get:function(){return this.ia},set:function(a){0>a&&(a=0),this.ia!==a&&(this.ia=a)}}}),pt.className="Overview";function _t(){Uo.call(this),this.j=null}ye(_t,Uo),_t.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||!a.allowMove||!a.allowSelect)return!1;var y=a.observed;if(y===null)return!1;var x=a.lastInput;return!x.left||a.currentTool!==this&&(!this.isBeyondDragSize()||x.isTouchEvent&&x.timestamp-a.firstInput.timestamp<this.delay)?!1:(this.findDraggablePart()===null&&(x=y.viewportBounds,this.j=new Bt(x.width/2,x.height/2),a=a.firstInput.documentPoint,y.position=new Bt(a.x-this.j.x,a.y-this.j.y)),!0)},_t.prototype.doActivate=function(){this.j=null,Uo.prototype.doActivate.call(this)},_t.prototype.doUpdateCursor=function(){var a=this.diagram,y=a.box;y!==null&&y.cursor&&(a.currentCursor=y.cursor)},_t.prototype.moveParts=function(){var a=this.diagram,y=a.observed;if(y!==null){var x=a.box;if(x!==null){if(this.j===null){var E=a.firstInput.documentPoint;x=x.location,this.j=new Bt(E.x-x.x,E.y-x.y)}a=a.lastInput.documentPoint,y.position=new Bt(a.x-this.j.x,a.y-this.j.y)}}},_t.className="OverviewDraggingTool";function Ut(){wi(this),this.H=Tu,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=Fr,this.hb=!0,this.cg=null,this.ob=200}Ut.prototype.toString=function(){return"CommandHandler"},Ut.prototype.Xe=function(a){this.H=a},Ut.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput,x=Lr?y.meta:y.control,E=y.shift,b=y.alt,z=y.key;!x||z!=="C"&&z!=="Insert"?x&&z==="X"||E&&z==="Del"?this.canCutSelection()&&this.cutSelection():x&&z==="V"||E&&z==="Insert"?this.canPasteSelection()&&this.pasteSelection():x&&z==="Y"||b&&E&&z==="Backspace"?this.canRedo()&&this.redo():x&&z==="Z"||b&&z==="Backspace"?this.canUndo()&&this.undo():z==="Del"||z==="Backspace"?this.canDeleteSelection()&&this.deleteSelection():x&&z==="A"?this.canSelectAll()&&this.selectAll():z==="Esc"?this.canStopCommand()&&this.stopCommand():z==="Up"?a.allowVerticalScroll&&(x?a.scroll("pixel","up"):a.scroll("line","up")):z==="Down"?a.allowVerticalScroll&&(x?a.scroll("pixel","down"):a.scroll("line","down")):z==="Left"?a.allowHorizontalScroll&&(x?a.scroll("pixel","left"):a.scroll("line","left")):z==="Right"?a.allowHorizontalScroll&&(x?a.scroll("pixel","right"):a.scroll("line","right")):z==="PageUp"?E&&a.allowHorizontalScroll?a.scroll("page","left"):a.allowVerticalScroll&&a.scroll("page","up"):z==="PageDown"?E&&a.allowHorizontalScroll?a.scroll("page","right"):a.allowVerticalScroll&&a.scroll("page","down"):z==="Home"?x&&a.allowVerticalScroll?a.scroll("document","up"):!x&&a.allowHorizontalScroll&&a.scroll("document","left"):z==="End"?x&&a.allowVerticalScroll?a.scroll("document","down"):!x&&a.allowHorizontalScroll&&a.scroll("document","right"):z===" "?this.canScrollToPart()&&this.scrollToPart():z==="Subtract"?this.canDecreaseZoom()&&this.decreaseZoom():z==="Add"?this.canIncreaseZoom()&&this.increaseZoom():x&&z==="0"?this.canResetZoom()&&this.resetZoom():E&&z==="Z"?this.canZoomToFit()&&this.zoomToFit():x&&!E&&z==="G"?this.canGroupSelection()&&this.groupSelection():x&&E&&z==="G"?this.canUngroupSelection()&&this.ungroupSelection():z==="F2"||y.event&&y.event.key==="F2"?this.canEditTextBlock()&&this.editTextBlock():z==="ContextMenu"||y.event&&y.event.key==="ContextMenu"?this.canShowContextMenu()&&this.showContextMenu():y.bubbles=!0:this.canCopySelection()&&this.copySelection()},Ut.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},Ut.prototype.stopCommand=function(){var a=this.diagram,y=a.currentTool;y instanceof Lo&&a.allowSelect&&a.clearSelection(),y!==null&&y.doCancel()},Ut.prototype.canStopCommand=function(){return!0},Ut.prototype.selectAll=function(){var a=this.diagram;a.N();try{a.currentCursor="wait",a.R("ChangingSelection",a.selection);for(var y=a.parts;y.next();)y.value.isSelected=!0;for(var x=a.nodes;x.next();)x.value.isSelected=!0;for(var E=a.links;E.next();)E.value.isSelected=!0}finally{a.R("ChangedSelection",a.selection),a.currentCursor=""}},Ut.prototype.canSelectAll=function(){return this.diagram.allowSelect},Ut.prototype.deleteSelection=function(){var a=this.diagram;try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),a.Ea("Delete"),a.R("SelectionDeleting",a.selection);for(var y=new xn,x=a.selection.iterator;x.next();)cd(y,x.value,!0,this.deletesTree?1/0:0,this.deletesConnectedLinks?null:!1,function(E){return E.canDelete()});a.Is(y,!0),a.R("SelectionDeleted",y)}finally{a.eb("Delete"),a.R("ChangedSelection",a.selection),a.currentCursor=""}},Ut.prototype.canDeleteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowDelete||a.selection.count===0)},Ut.prototype.copySelection=function(){var a=this.diagram,y=new xn;for(a=a.selection.iterator;a.next();)cd(y,a.value,!0,this.copiesTree?1/0:0,this.copiesConnectedLinks,function(x){return x.canCopy()});this.copyToClipboard(y)},Ut.prototype.canCopySelection=function(){var a=this.diagram;return!!(a.allowCopy&&a.allowClipboard&&a.selection.count!==0)},Ut.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},Ut.prototype.canCutSelection=function(){var a=this.diagram;return!!(!a.isReadOnly&&!a.isModelReadOnly&&a.allowCopy&&a.allowDelete&&a.allowClipboard&&a.selection.count!==0)},Ut.prototype.copyToClipboard=function(a){var y=this.diagram,x=null;if(a===null)Gd=null,sd="";else{x=y.model;var E=!1,b=!1,z=null;try{x.Tl()&&(E=x.Jj,x.Jj=this.copiesParentKey),x.Wj()&&(b=x.Ij,x.Ij=this.copiesGroupKey),z=y.Kj(a,null,!0)}finally{x.Tl()&&(x.Jj=E),x.Wj()&&(x.Ij=b),x=new cn,x.addAll(z),Gd=x,sd=y.model.dataFormat}}y.R("ClipboardChanged",x)},Ut.prototype.pasteFromClipboard=function(){var a=new xn,y=Gd;if(y===null)return a;var x=this.diagram;if(sd!==x.model.dataFormat)return a;var E=x.model,b=!1,z=!1,tt=null;try{E.Tl()&&(b=E.Jj,E.Jj=this.copiesParentKey),E.Wj()&&(z=E.Ij,E.Ij=this.copiesGroupKey),tt=x.Kj(y,x,!1)}finally{for(E.Tl()&&(E.Jj=b),E.Wj()&&(E.Ij=z),y=tt.iterator;y.next();)x=y.value,E=y.key,x.location.w()||(E.location.w()?x.location=E.location:!x.position.w()&&E.position.w()&&(x.position=E.position)),a.add(x)}return a},Ut.prototype.pasteSelection=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.currentCursor="wait",y.R("ChangingSelection",y.selection),y.Ea("Paste");var x=this.pasteFromClipboard();0<x.count&&y.clearSelection(!0);for(var E=x.iterator;E.next();)E.value.isSelected=!0;if(a!==null){var b=y.computePartsBounds(y.selection);if(b.w()){var z=this.computeEffectiveCollection(y.selection,y.Wm);rd(y,z,new Bt(a.x-b.centerX,a.y-b.centerY),y.Wm,!1)}}y.R("ClipboardPasted",x)}finally{y.eb("Paste"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},Ut.prototype.canPasteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowClipboard||Gd===null||Gd.count===0||sd!==a.model.dataFormat)},Ut.prototype.undo=function(){this.diagram.undoManager.undo()},Ut.prototype.canUndo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canUndo()},Ut.prototype.redo=function(){this.diagram.undoManager.redo()},Ut.prototype.canRedo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canRedo()},Ut.prototype.decreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;y.autoScale===ys&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},Ut.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==ys?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},Ut.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===ys&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},Ut.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==ys?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},Ut.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;a<y.minScale||a>y.maxScale||(y.scale=a)},Ut.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return a<y.minScale||a>y.maxScale?!1:y.allowZoom},Ut.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var x=a.position,E=a.scale;Bu(y,"Zoom To Fit"),this.isZoomToFitRestoreEnabled&&E===this.Au&&!isNaN(this.Jt)&&a.documentBounds.D(this.yu)?(a.scale=this.Jt,a.position=this.sw,this.Au=NaN,this.yu=Fr):(this.Jt=E,this.sw=x.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),uf(y)},Ut.prototype.canZoomToFit=function(){return this.diagram.allowZoom},Ut.prototype.scrollToPart=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.Va(),a===null){try{this.cg!==null&&(this.cg.next()?a=this.cg.value:this.cg=null)}catch(ot){this.cg=null}a===null&&(0<y.highlighteds.count?this.cg=y.highlighteds.iterator:0<y.selection.count&&(this.cg=y.selection.iterator),this.cg!==null&&this.cg.next()&&(a=this.cg.value))}if(a!==null){var x=y.animationManager;Bu(x,"Scroll To Part");var E=this.scrollToPartPause;if(0<E){var b=pe(this,a,[a]);if(b.length===1)y.Ea(),y.es(a.actualBounds),y.eb("Scroll To Part");else{var z=function(){y.Ea();for(var ot=b.pop();0<b.length&&ot instanceof bi&&ot.isTreeExpanded&&(!(ot instanceof Tr)||ot.isSubGraphExpanded);)ot=b.pop();0<b.length?(ot instanceof rr&&y.tv(ot.actualBounds),ot instanceof bi&&!ot.isTreeExpanded&&(ot.isTreeExpanded=!0),ot instanceof Tr&&!ot.isSubGraphExpanded&&(ot.isSubGraphExpanded=!0)):(ot instanceof rr&&y.es(ot.actualBounds),y.am("LayoutCompleted",tt)),y.eb("Scroll To Part")},tt=function(){Te(z,(x.isEnabled?x.duration:0)+E)};y.Bj("LayoutCompleted",tt),z()}}else{var rt=y.position.copy();y.es(a.actualBounds),rt.Xa(y.position)&&x.Cc()}}};function pe(a,y,x){if(y.isVisible())return x;if(y instanceof uo)pe(a,y.adornedPart,x);else if(y instanceof di){var E=y.fromNode;E!==null&&pe(a,E,x),y=y.toNode,y!==null&&pe(a,y,x)}else y instanceof bi&&(E=y.labeledLink,E!==null&&pe(a,E,x),E=y.pg(),E!==null&&(E.isTreeExpanded||E.wasTreeExpanded||x.push(E),pe(a,E,x))),y=y.containingGroup,y!==null&&(y.isSubGraphExpanded||y.wasSubGraphExpanded||x.push(y),pe(a,y,x));return x}Ut.prototype.canScrollToPart=function(a){return a===void 0&&(a=null),a!==null&&!(a instanceof rr)?!1:(a=this.diagram,a.selection.count===0&&a.highlighteds.count===0?!1:a.allowHorizontalScroll&&a.allowVerticalScroll)},Ut.prototype.collapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse Tree"),Bu(y.animationManager,"Collapse Tree");var x=new cn;if(a!==null&&a.isTreeExpanded)a.collapseTree(),x.add(a);else if(a===null)for(var E=y.selection.iterator;E.next();){var b=E.value;b instanceof bi&&b.isTreeExpanded&&(b.collapseTree(),x.add(b))}y.R("TreeCollapsed",x)}finally{y.eb("Collapse Tree")}},Ut.prototype.canCollapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof bi&&a.isTreeExpanded))return!1;if(0<a.Qo().count)return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof bi&&y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},Ut.prototype.expandTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand Tree"),Bu(y.animationManager,"Expand Tree");var x=new cn;if(a!==null&&!a.isTreeExpanded)a.expandTree(),x.add(a);else if(a===null)for(var E=y.selection.iterator;E.next();){var b=E.value;b instanceof bi&&!b.isTreeExpanded&&(b.expandTree(),x.add(b))}y.R("TreeExpanded",x)}finally{y.eb("Expand Tree")}},Ut.prototype.canExpandTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof bi)||a.isTreeExpanded)return!1;if(0<a.Qo().count)return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof bi&&!y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},Ut.prototype.groupSelection=function(){var a=this.diagram,y=a.model;if(y.Xj()){var x=this.archetypeGroupData;if(x!==null){var E=null;try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),a.Ea("Group");for(var b=new cn,z=a.selection.iterator;z.next();){var tt=z.value;tt.Zc()&&tt.canGroup()&&b.add(tt)}for(var rt=new cn,ot=b.iterator;ot.next();){var st=ot.value;z=!1;for(var ut=b.iterator;ut.next();)if(st.Td(ut.value)){z=!0;break}z||rt.add(st)}if(0<rt.count){var ft=rt.first().containingGroup;if(ft!==null)for(;ft!==null;){b=!1;for(var vt=rt.iterator;vt.next();)if(!vt.value.Td(ft)){b=!0;break}if(b)ft=ft.containingGroup;else break}if(x instanceof Tr)jl(x),E=x.copy(),E!==null&&a.add(E);else if(y.Yu(x)){var xt=y.copyNodeData(x);Ke(xt)&&(y.xf(xt),E=a.ii(xt))}if(E!==null){ft!==null&&this.isValidMember(ft,E)&&(E.containingGroup=ft);for(var Pt=rt.iterator;Pt.next();){var Ft=Pt.value;this.isValidMember(E,Ft)&&(Ft.containingGroup=E)}a.clearSelection(!0),E.isSelected=!0}}a.R("SelectionGrouped",E)}finally{a.eb("Group"),a.R("ChangedSelection",a.selection),a.currentCursor=""}}}},Ut.prototype.canGroupSelection=function(){var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowGroup||!a.model.Xj()||this.archetypeGroupData===null)return!1;for(a=a.selection.iterator;a.next();){var y=a.value;if(y.Zc()&&y.canGroup())return!0}return!1};function gn(a){var y=xi();for(a=a.iterator;a.next();){var x=a.value;x instanceof di||y.push(x)}a=new xn,x=y.length;for(var E=0;E<x;E++){for(var b=y[E],z=!0,tt=0;tt<x;tt++)if(b.Td(y[tt])){z=!1;break}z&&a.add(b)}return gi(y),a}Ut.prototype.isValidMember=function(a,y){if(y===null||a===y||y instanceof di)return!1;if(a!==null){if(a===y||a.Td(y))return!1;var x=a.memberValidation;if(x!==null&&!x(a,y)||a.data===null&&y.data!==null||a.data!==null&&y.data===null)return!1}return x=this.memberValidation,x!==null?x(a,y):!0},Ut.prototype.ungroupSelection=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.model;if(x.Xj())try{y.currentCursor="wait",y.R("ChangingSelection",y.selection),y.Ea("Ungroup");var E=new cn;if(a!==null)E.add(a);else for(var b=y.selection.iterator;b.next();){var z=b.value;z instanceof Tr&&z.canUngroup()&&E.add(z)}var tt=new cn;if(0<E.count){y.clearSelection(!0);for(var rt=E.iterator;rt.next();){var ot=rt.value;ot.expandSubGraph();var st=ot.containingGroup,ut=st!==null&&st.data!==null?x.wa(st.data):void 0;tt.addAll(ot.memberParts);for(var ft=tt.iterator;ft.next();){var vt=ft.value;if(vt.isSelected=!0,!(vt instanceof di)){var xt=vt.data;xt!==null?x.mp(xt,ut):vt.containingGroup=st}}y.remove(ot)}}y.R("SelectionUngrouped",E,tt)}finally{y.eb("Ungroup"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},Ut.prototype.canUngroupSelection=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly||y.isModelReadOnly||!y.allowDelete||!y.allowUngroup||!y.model.Xj())return!1;if(a!==null){if(!(a instanceof Tr))return!1;if(a.canUngroup())return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Tr&&y.canUngroup())return!0;return!1},Ut.prototype.addTopLevelParts=function(a,y){var x=!0;for(a=gn(a).iterator;a.next();){var E=a.value;E.containingGroup!==null&&(!y||this.isValidMember(null,E)?E.containingGroup=null:x=!1)}return x},Ut.prototype.collapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse SubGraph"),Bu(y.animationManager,"Collapse SubGraph");var x=new cn;if(a!==null&&a.isSubGraphExpanded)a.collapseSubGraph(),x.add(a);else if(a===null)for(var E=y.selection.iterator;E.next();){var b=E.value;b instanceof Tr&&b.isSubGraphExpanded&&(b.collapseSubGraph(),x.add(b))}y.R("SubGraphCollapsed",x)}finally{y.eb("Collapse SubGraph")}},Ut.prototype.canCollapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return!!(a instanceof Tr&&a.isSubGraphExpanded);for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Tr&&y.isSubGraphExpanded)return!0;return!1},Ut.prototype.expandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand SubGraph"),Bu(y.animationManager,"Expand SubGraph");var x=new cn;if(a!==null&&!a.isSubGraphExpanded)a.expandSubGraph(),x.add(a);else if(a===null)for(var E=y.selection.iterator;E.next();){var b=E.value;b instanceof Tr&&!b.isSubGraphExpanded&&(b.expandSubGraph(),x.add(b))}y.R("SubGraphExpanded",x)}finally{y.eb("Expand SubGraph")}},Ut.prototype.canExpandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return a instanceof Tr&&!a.isSubGraphExpanded;for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Tr&&!y.isSubGraphExpanded)return!0;return!1},Ut.prototype.editTextBlock=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.toolManager.findTool("TextEditing");if(x!==null){if(a===null){a=null;for(var E=y.selection.iterator;E.next();){var b=E.value;if(b.canEdit()){a=b;break}}if(a===null)return;a=a.Nl(function(z){return z instanceof Ro&&z.editable})}a!==null&&(y.currentTool=null,x.textBlock=a,y.currentTool=x)}},Ut.prototype.canEditTextBlock=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly||y.isModelReadOnly||!y.allowTextEdit||y.toolManager.findTool("TextEditing")===null)return!1;if(a!==null){if(!(a instanceof Ro))return!1;if(a=a.part,a!==null&&a.canEdit())return!0}else for(y=y.selection.iterator;y.next();)if(a=y.value,a.canEdit()&&(a=a.Nl(function(x){return x instanceof Ro&&x.editable}),a!==null))return!0;return!1},Ut.prototype.showContextMenu=function(a){var y=this.diagram,x=y.toolManager.findTool("ContextMenu");if(x!==null&&(a===void 0&&(a=0<y.selection.count?y.selection.first():y),a=x.findObjectWithContextMenu(a),a!==null)){var E=y.lastInput,b=null;a instanceof Me?b=a.ga(Ri):y.viewportBounds.ca(E.documentPoint)||(b=y.viewportBounds,b=new Bt(b.x+b.width/2,b.y+b.height/2)),b!==null&&(E.viewPoint=y.op(b),E.documentPoint=b,E.left=!1,E.right=!0,E.up=!0),y.currentTool=x,qu(x,!1,a)}},Ut.prototype.canShowContextMenu=function(a){var y=this.diagram,x=y.toolManager.findTool("ContextMenu");return x===null?!1:(a===void 0&&(a=0<y.selection.count?y.selection.first():y),x.findObjectWithContextMenu(a)!==null)},Ut.prototype.computeEffectiveCollection=function(a,y){var x=this.diagram,E=x.toolManager.findTool("Dragging"),b=x.currentTool===E;if(y===void 0&&(y=b?E.dragOptions:x.Wm),E=new on,a===null)return E;for(var z=a.iterator;z.next();)Iu(x,E,z.value,b,y);if(x.draggedLink!==null&&y.dragsLink)return E;for(z=a.iterator;z.next();)a=z.value,a instanceof di&&(y=a.fromNode,y===null||E.contains(y)?(y=a.toNode,y===null||E.contains(y)||E.remove(a)):E.remove(a));return E},xe.Object.defineProperties(Ut.prototype,{diagram:{get:function(){return this.H}},copiesClipboardData:{get:function(){return this.o},set:function(a){this.o=a}},copiesConnectedLinks:{get:function(){return this.u},set:function(a){this.u=a}},deletesConnectedLinks:{get:function(){return this.Ha},set:function(a){this.Ha=a}},copiesTree:{get:function(){return this.ia},set:function(a){this.ia=a}},deletesTree:{get:function(){return this.nb},set:function(a){this.nb=a}},copiesParentKey:{get:function(){return this.V},set:function(a){this.V=a}},copiesGroupKey:{get:function(){return this.F},set:function(a){this.F=a}},archetypeGroupData:{get:function(){return this.j},set:function(a){this.j=a}},memberValidation:{get:function(){return this.ij},set:function(a){this.ij=a}},defaultScale:{get:function(){return this.diagram.defaultScale},set:function(a){this.diagram.defaultScale=a}},zoomFactor:{get:function(){return this.Hb},set:function(a){1<a||ee("zoomFactor must be larger than 1.0, not: "+a),this.Hb=a}},isZoomToFitRestoreEnabled:{get:function(){return this.hb},set:function(a){this.hb=a}},scrollToPartPause:{get:function(){return this.ob},set:function(a){this.ob=a}}}),Ut.className="CommandHandler",qp=function(){return new Ut};function Me(){wi(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new Bt(NaN,NaN).freeze(),this.jd=Bn,this.Ab=new Ei,this.wh=new Ei,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=Ir,this.uc=new ue(NaN,NaN,NaN,NaN).freeze(),this.Ib=new ue(NaN,NaN,NaN,NaN).freeze(),this.dc=new ue(0,0,NaN,NaN).freeze(),this.ba=this.Yn=this.Zn=null,this.sk=this.Jb=bo,this.Ag=this.io=0,this.V=this.tb=this.Dh=this.A=this.Ua=null,this.Uc=!1,this.jo=this.Ng=null}var Qn,Hn,Yi,$i,mr,Or,to,Kr,oo,ko;Me.prototype.cloneProtected=function(a){a.l=this.l|6144,a.pb=this.pb,a.bn=this.bn,a.Ma=this.Ma,a.pa.assign(this.pa),a.jd=this.jd.J(),this.Lb!==null?a.Lb=this.Lb.copy():a.Lb=null,a.Ca=this.Ca,a.Kb=this.Kb,a.Kg=this.Kg.J(),a.uc.assign(this.uc),a.Ib.assign(this.Ib),a.dc.assign(this.dc),a.Yn=this.Yn,this.ba!==null&&(a.ba=this.ba.copy()),a.Jb=this.Jb.J(),a.sk=this.sk.J(),a.io=this.io,a.Ag=this.Ag,this.Ua!==null&&(a.Ua=this.Ua.copy()),this.A!==null&&(a.A=this.A.nc?this.A:this.A.copy()),this.Dh!==null&&(a.Dh=ai(this.Dh)),this.tb!==null&&(a.tb=this.tb.copy())},Me.prototype.Vw=function(a){var y=this.Dh;if(Gn(y)){for(var x=0;x<y.length;x++)if(y[x]===a)return}else this.Dh=y=[];y.push(a)},Me.prototype.Af=function(a){a.Zn=null,a.Ng=null,a.v()},Me.prototype.clone=function(){var a=new this.constructor;if(this.cloneProtected(a),this.Dh!==null)for(var y=0;y<this.Dh.length;y++){var x=this.Dh[y];a[x]=this[x]}return a},Me.prototype.copy=function(){return this.clone()},Ct=Me.prototype,Ct.qb=function(a){a.classType===di?a.name.indexOf("Orient")===0?this.segmentOrientation=a:ee("Unknown Link enum value for GraphObject.segmentOrientation property: "+a):a.classType===Me&&(this.stretch=a)},Ct.toString=function(){return Li(this.constructor)+"#"+Sr(this)},Ct.th=function(){this.A!==null&&(this.A.nc=!0)};function Gr(a){a.A===null?a.A=new Tc:a.A.nc&&(a.A=a.A.copy())}Ct.Xc=function(){if(this.ba===null){var a=new Yg;a.Xi=_i,a.yj=_i,a.Vi=10,a.wj=10,a.Wi=0,a.xj=0,this.ba=a}},Ct.cb=function(a,y,x,E,b,z,tt){var rt=this.part;if(rt!==null&&(rt.gk(a,y,x,E,b,z,tt),x===this&&a===To&&is(this)&&_o(this,rt,y),z=this.diagram,this.animationTriggers===null||z===null||!z.pi||z.undoManager.isUndoingRedoing||z.animationManager.Dm||(a=this.animationTriggers.get(y),a!==null&&z.animationManager.isEnabled&&!z.animationManager.isTicking&&(this.jo===null&&(this.jo=new on),tt=z.undoManager.transactionLevel===0,a.startCondition===ed?tt=!0:a.startCondition===Rd&&(tt=!1),tt?(z=new as,Xp(a,z),tt=this.jo.get(a),tt!==null&&tt.stop(),this.jo.add(a,z),z.vu=this,z.Nw=a,z.add(this,y,E,b),z.start()):(Bu(z.animationManager,"Trigger"),z.animationManager.defaultAnimation.add(this,y,E,b)))),this instanceof ei&&x===rt&&(rt.l&16777216)!==0&&rt.data!==null))for(x=this.O.s,E=x.length,b=0;b<E;b++)rt=x[b],rt instanceof ei&&Qd(rt,function(ot){ot.data!==null&&ot.l&16777216&&ot.La(y)})};function _o(a,y,x){var E=a.ih();if(E!==null)for(var b=a.localBindings.iterator;b.next();){var z=b.value,tt=null;if(z.sourceName!==null){if(tt=DS(z,E,a),tt===null)continue;z.sp(a,tt,x,null)}else if(z.isToModel){var rt=y.diagram;rt===null||rt.skipsModelSourceBindings||z.sp(a,rt.model.modelData,x,E)}else{if(rt=E.data,rt===null)continue;var ot=y.diagram;ot===null||ot.skipsModelSourceBindings||z.sp(a,rt,x,E)}tt===a&&(rt=E.ks(z.Ai),rt!==null&&z.Mv(rt,tt,x))}}Ct.ks=function(a){return this.bindingId===a?this:null},Ct.g=function(a,y,x){this.cb(To,a,this,y,x)},Ct.Ge=function(a,y,x,E){var b=this.uc;if(b.h(a,y,x,E),this.Ca!==1||this.Kb!==0){this.Lb===null&&(this.Lb=new Ei);var z=this.Lb;z.reset(),this.no(z,a,y,x,E),z.pp(b)}};function ja(a,y,x,E){return a.pickable===!1?!1:(E.multiply(a.transform),x?a.Yc(y,E):a.fh(y,E))}Ct.tx=function(a,y,x){if(this.pickable===!1)return!1;var E=this.naturalBounds;return y=a.Bf(y),x?hn(a.x,a.y,0,0,0,E.height)<=y||hn(a.x,a.y,0,E.height,E.width,E.height)<=y||hn(a.x,a.y,E.width,E.height,E.width,0)<=y||hn(a.x,a.y,E.width,0,0,0)<=y:a.zd(0,0)<=y&&a.zd(0,E.height)<=y&&a.zd(E.width,0)<=y&&a.zd(E.width,E.height)<=y},Ct.se=function(){return!0},Ct.ca=function(a){var y=Bt.alloc();y.assign(a),this.transform.Ga(y);var x=this.actualBounds;if(!x.w())return Bt.free(y),!1;var E=this.diagram;if(E!==null&&E.wq){var b=E.Ql("extraTouchThreshold"),z=E.Ql("extraTouchArea"),tt=z/2,rt=this.naturalBounds;E=this.Df()*E.scale;var ot=1/E;if(rt.width*E<b&&rt.height*E<b)return a=Bi(x.x-tt*ot,x.y-tt*ot,x.width+z*ot,x.height+z*ot,y.x,y.y),Bt.free(y),a}return b=!1,(this instanceof uo||this instanceof Wr?Bi(x.x-5,x.y-5,x.width+10,x.height+10,y.x,y.y):x.ca(y))&&(this.tb&&!this.tb.ca(y)?b=!1:this.areaBackground!==null&&x.ca(y)||this.Ma!==null&&this.dc.ca(a)?b=!0:b=this.gh(a)),Bt.free(y),b},Ct.gh=function(a){var y=this.naturalBounds;return Bi(0,0,y.width,y.height,a.x,a.y)},Ct.Re=function(a){if(this.angle===0)return this.actualBounds.Re(a);var y=this.naturalBounds;y=ue.allocAt(0,0,y.width,y.height);var x=this.transform,E=!1,b=Bt.allocAt(a.x,a.y);return y.ca(x.Cd(b))&&(b.h(a.x,a.bottom),y.ca(x.Cd(b))&&(b.h(a.right,a.bottom),y.ca(x.Cd(b))&&(b.h(a.right,a.y),y.ca(x.Cd(b))&&(E=!0)))),Bt.free(b),ue.free(y),E},Ct.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.naturalBounds,E=!1,b=Bt.allocAt(0,0);return a.ca(y.Ga(b))&&(b.h(0,x.height),a.ca(y.Ga(b))&&(b.h(x.width,x.height),a.ca(y.Ga(b))&&(b.h(x.width,0),a.ca(y.Ga(b))&&(E=!0)))),Bt.free(b),E},Ct.Yc=function(a,y){if(y===void 0&&(y=this.transform,this.angle===0))return a.Yc(this.actualBounds);var x=this.naturalBounds,E=Bt.allocAt(0,0),b=Bt.allocAt(0,x.height),z=Bt.allocAt(x.width,x.height),tt=Bt.allocAt(x.width,0),rt=!1;if(a.ca(y.Ga(E))||a.ca(y.Ga(b))||a.ca(y.Ga(z))||a.ca(y.Ga(tt)))rt=!0;else{x=ue.allocAt(0,0,x.width,x.height);var ot=Bt.allocAt(a.x,a.y);x.ca(y.Cd(ot))?rt=!0:(ot.h(a.x,a.bottom),x.ca(y.Cd(ot))?rt=!0:(ot.h(a.right,a.bottom),x.ca(y.Cd(ot))?rt=!0:(ot.h(a.right,a.y),x.ca(y.Cd(ot))&&(rt=!0)))),Bt.free(ot),ue.free(x),!rt&&(me.us(a,E,b)||me.us(a,b,z)||me.us(a,z,tt)||me.us(a,tt,E))&&(rt=!0)}return Bt.free(E),Bt.free(b),Bt.free(z),Bt.free(tt),rt},Ct.ga=function(a,y){if(y===void 0&&(y=new Bt),a instanceof Mn){var x=this.naturalBounds;y.h(a.x*x.width+a.offsetX,a.y*x.height+a.offsetY)}else y.set(a);return this.oe.Ga(y),y},Ct.mi=function(a){a===void 0&&(a=new ue);var y=this.naturalBounds,x=this.oe,E=Bt.allocAt(0,0).transform(x);return a.h(E.x,E.y,0,0),E.h(y.width,0).transform(x),Ii(a,E.x,E.y,0,0),E.h(y.width,y.height).transform(x),Ii(a,E.x,E.y,0,0),E.h(0,y.height).transform(x),Ii(a,E.x,E.y,0,0),Bt.free(E),a},Ct.li=function(){var a=this.oe;return a.m11===1&&a.m12===0?a=0:(a=180*Math.atan2(a.m12,a.m11)/Math.PI,0>a&&(a+=360)),a},Ct.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},Ct.qs=function(a,y){return y===void 0&&(y=new Bt),y.assign(a),this.oe.Cd(y),y},Ct.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},Ct.Sj=function(a,y,x,E,b){var z=this.transform,tt=1/(z.m11*z.m22-z.m12*z.m21),rt=z.m22*tt,ot=-z.m12*tt,st=-z.m21*tt,ut=z.m11*tt,ft=tt*(z.m21*z.dy-z.m22*z.dx),vt=tt*(z.m12*z.dx-z.m11*z.dy);return this.areaBackground!==null?(z=this.actualBounds,me.Ff(z.left,z.top,z.right,z.bottom,a,y,x,E,b)):(tt=a*rt+y*st+ft,a=a*ot+y*ut+vt,y=x*rt+E*st+ft,x=x*ot+E*ut+vt,b.h(0,0),E=this.naturalBounds,x=me.Ff(0,0,E.width,E.height,tt,a,y,x,b),b.transform(z),x)},Me.prototype.measure=function(a,y,x,E){if(hl(this)!==!1){var b=this.Kg,z=b.right+b.left;b=b.top+b.bottom,a=Math.max(a-z,0),y=Math.max(y-b,0),x=Math.max((x||0)-z,0),E=Math.max((E||0)-b,0),z=this.angle,b=this.desiredSize;var tt=this.kq();z===90||z===270?(a=isFinite(b.height)?b.height+tt:a,y=isFinite(b.width)?b.width+tt:y):(a=isFinite(b.width)?b.width+tt:a,y=isFinite(b.height)?b.height+tt:y),b=x||0,tt=E||0;var rt=this instanceof ei;switch(zs(this,!0)){case Hn:tt=b=0,rt&&(y=a=1/0);break;case Qn:isFinite(a)&&a>x&&(b=a),isFinite(y)&&y>E&&(tt=y);break;case $i:isFinite(a)&&a>x&&(b=a),tt=0,rt&&(y=1/0);break;case mr:isFinite(y)&&y>E&&(tt=y),b=0,rt&&(a=1/0)}rt=this.maxSize;var ot=this.minSize;b>rt.width&&ot.width<rt.width&&(b=rt.width),tt>rt.height&&ot.height<rt.height&&(tt=rt.height),x=Math.max(b,ot.width),E=Math.max(tt,ot.height),rt.width<x&&(x=Math.min(ot.width,x)),rt.height<E&&(E=Math.min(ot.height,E)),a=Math.min(rt.width,a),y=Math.min(rt.height,y),a=Math.max(x,a),y=Math.max(E,y),(z===90||z===270)&&(z=a,a=y,y=z,z=x,x=E,E=z),this.uc.ka(),this.Wl(a,y,x,E),this.uc.freeze(),this.uc.w()||ee("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),Fa(this,!1)}},Me.prototype.Wl=function(){},Me.prototype.Dd=function(){return!1},Me.prototype.arrange=function(a,y,x,E,b){this.Uk();var z=ue.alloc();z.assign(this.Ib),this.Ib.ka(),Ls(this)===!1?this.Ib.h(a,y,x,E):this.eh(a,y,x,E),this.Ib.freeze(),b===void 0?this.tb=null:this.tb=b,x=!1,b!==void 0?x=!0:(b=this.panel,b!==null&&kh(b)&&(b=b.panel),b!==null&&(b=b.dc,E=this.measuredBounds,this.areaBackground!==null&&(E=this.Ib),x=y+E.height,E=a+E.width,x=!(0<=a+.05&&E<=b.width+.05&&0<=y+.05&&x<=b.height+.05),this instanceof Ro&&(a=this.naturalBounds,this.Lq>a.height||this.Cb>a.width))&&(x=!0)),this.l=x?this.l|256:this.l&-257,this.Ib.w()||ee("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(z,this.Ib),Ru(this,!1),ue.free(z)},Ct=Me.prototype,Ct.eh=function(){};function Ss(a,y,x,E,b){if(a.Ib.h(y,x,E,b),!a.desiredSize.w()){var z=a.uc;x=a.Kg,y=x.right+x.left;var tt=x.top+x.bottom;switch(x=z.width+y,z=z.height+tt,E+=y,b+=tt,y=zs(a,!0),x===E&&z===b&&(y=Hn),y){case Hn:(x>E||z>b)&&(Fa(a,!0),a.measure(x>E?E:x,z>b?b:z,0,0));break;case Qn:Fa(a,!0),a.measure(E,b,0,0);break;case $i:Fa(a,!0),a.measure(E,z,0,0);break;case mr:Fa(a,!0),a.measure(x,b,0,0)}}}Ct.Xl=function(a,y){var x=this.part;x!==null&&x.diagram!==null&&(x.selectionObject!==this&&x.resizeObject!==this&&x.rotateObject!==this||Zv(x,!0),this.N(),ci(a,y)||(x.oh(),this.Pn(x)))},Ct.Pn=function(a){this.portId!==null&&(Zv(a,!0),a instanceof bi&&X1(a,this))},Ct.gc=function(a,y){if(!Pl(this,a,y)&&this.visible){var x=this.opacity;if(x!==0){var E=1;x!==1&&(E=a.globalAlpha,a.globalAlpha=E*x);var b="";this.filter!==""&&(b=a.filter,a.filter=this.filter);var z=this instanceof ei&&kh(this),tt=this.Ib;if(z){var rt=this.Ib,ot=this.dc,st=this.areaBackground,ut=this.Ma;st===null&&ut===null||a.yc(),st!==null&&(fa(this,a,st,!0,!0,ot,rt),st instanceof wo&&st.type===Al?(a.beginPath(),a.rect(rt.x,rt.y,rt.width,rt.height),a.ng(st)):a.fillRect(rt.x,rt.y,rt.width,rt.height)),ut!==null&&(fa(this,a,ut,!0,!1,ot,rt),ut instanceof wo&&ut.type===Al?(a.beginPath(),a.rect(rt.x,rt.y,rt.width,rt.height),a.ng(ut)):a.fillRect(rt.x,rt.y,rt.width,rt.height)),this.hh(a,y)}if(!z&&(z||tt.width!==0&&tt.height!==0&&!isNaN(tt.x)&&!isNaN(tt.y))){z=this.transform,rt=this.panel,this.l&4096&&qa(this),st=this.part,ot=!1;var ft=0;st&&y.Gf("drawShadows")&&(ot=st.isShadowed)&&(ut=st.shadowOffset,ft=Math.max(ut.y,ut.x)*y.scale*y.Mb),ut=this.Dd();var vt;if(!(vt=y.$i||!ut)){var xt=this.naturalBounds;vt=this.wh;var Pt=vt.m11,Ft=vt.m21,Xt=vt.dx,Wt=vt.m12,oe=vt.m22,le=vt.dy,ce,Ae=ce=0;vt=ce*Pt+Ae*Ft+Xt;var Je=ce*Wt+Ae*oe+le;ce=xt.width+ft,Ae=0;var Ci=ce*Pt+Ae*Ft+Xt;ce=ce*Wt+Ae*oe+le,Ae=Math.min(vt,Ci);var Wi=Math.min(Je,ce),Ni=Math.max(vt+0,Ci)-Ae,li=Math.max(Je+0,ce)-Wi;vt=Ae,Je=Wi,ce=xt.width+ft,Ae=xt.height+ft,Ci=ce*Pt+Ae*Ft+Xt,ce=ce*Wt+Ae*oe+le,Ae=Math.min(vt,Ci),Wi=Math.min(Je,ce),Ni=Math.max(vt+Ni,Ci)-Ae,li=Math.max(Je+li,ce)-Wi,vt=Ae,Je=Wi,ce=0,Ae=xt.height+ft,Ci=ce*Pt+Ae*Ft+Xt,ce=ce*Wt+Ae*oe+le,Ae=Math.min(vt,Ci),Wi=Math.min(Je,ce),Ni=Math.max(vt+Ni,Ci)-Ae,li=Math.max(Je+li,ce)-Wi,vt=Ae,Je=Wi,ft=y.viewportBounds,xt=ft.x,Pt=ft.y,vt=!(vt>ft.width+xt||xt>Ni+vt||Je>ft.height+Pt||Pt>li+Je)}if(vt){if(vt=(this.l&256)!==0,a.clipInsteadOfFill&&(vt=!1),this instanceof Ro&&(a.font=this.font),vt){if(Je=rt.se()?rt.naturalBounds:rt.actualBounds,Ni=Math.max(tt.x,Je.x),li=Math.max(tt.y,Je.y),ft=Math.min(tt.right,Je.right)-Ni,xt=Math.min(tt.bottom,Je.bottom)-li,Pt=this.tb,Pt!==null&&(Ni=Pt.x,li=Pt.y,ft=Pt.width,xt=Pt.height),Ni>tt.width+tt.x||tt.x>Je.width+Je.x){x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b);return}a.save(),a.beginPath(),a.rect(Ni,li,ft,xt),a.clip()}if(ut){if(!st.isVisible()){x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b);return}ot&&(Je=st.shadowOffset,a.Ev(Je.x*y.scale*this.scale*y.Mb,Je.y*y.scale*this.scale*y.Mb,st.shadowBlur),ih(a),a.shadowColor=st.shadowColor)}ot&&this.shadowVisible===!0?ih(a):ot&&this.shadowVisible===!1&&zu(a),st=this.naturalBounds,this.areaBackground!==null&&(a.yc(),ul(this,a,st,tt)),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),ot&&_a(this,rt)&&this.shadowVisible===null&&zu(a),this.Ma!==null&&(a.yc(),Ys(this,a,st,tt)),ot&&(this.Ma!==null||this.areaBackground!==null||_a(this,rt))?(Jl(this,!0),this.shadowVisible===null&&zu(a)):Jl(this,!1),this.hh(a,y),ot&&this.l&512&&ih(a),ut&&ot&&zu(a),vt&&(a.restore(),a.Vc(this instanceof ei)),z.ws()||(y=1/(z.m11*z.m22-z.m12*z.m21),a.transform(z.m22*y,-z.m12*y,-z.m21*y,z.m11*y,y*(z.m21*z.dy-z.m22*z.dx),y*(z.m12*z.dx-z.m11*z.dy)))}}x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b)}}};function _a(a,y){return y===null?!1:(kh(y)&&(y=y.panel),(y.l&512)!==0||(y.type===ei.Auto||y.type===ei.Spot)&&y.Pb()!==a)}Ct.Dv=function(){};function ul(a,y,x,E){fa(a,y,a.areaBackground,!0,!0,x,E),a.areaBackground instanceof wo&&a.areaBackground.type===Al?(y.beginPath(),y.rect(E.x,E.y,E.width,E.height),y.ng(a.areaBackground)):y.fillRect(E.x,E.y,E.width,E.height)}function Ys(a,y,x,E){var b=a.kq(),z=x.x,tt=x.y,rt=x.width+b,ot=x.height+b;fa(a,y,a.Ma,!0,!1,x,E),a.Ma instanceof wo&&a.Ma.type===Al?(y.beginPath(),y.rect(z-b/2,tt-b/2,rt,ot),y.ng(a.Ma)):y.fillRect(z-b/2,tt-b/2,rt,ot)}function ps(a,y,x){for(var E=y.O.s,b=E.length,z=-1,tt=0;tt<b;tt++)if(E[tt]===a){z=tt;break}if(a=z,a!==-1)if(a===0)y.svg.gd?y.svg.gd.after(x):y.svg.Ma?y.svg.Ma.after(x):y.type===ei.Table?(y=y.svg.getElementsByClassName("gojs-ts"),y=y.length!==0?y[0]:null,y!==null&&y.after(x)):y.svg.prepend(x);else{for(;a!==0&&!y.M(a-1).Ed();)a--;a===0?y.svg.prepend(x):(a=y.M(a-1).svg,a!==null?a.after(x):y.svg.appendChild(x))}}function Pl(a,y,x){if(!(y instanceof tl))return!1;if(!a.visible||a.opacity===0||a.Dd()&&!a.isVisible())return a.svg!==null&&a.svg.parentNode!==null&&a.svg.remove(),!0;var E=a.panel,b=a.nk(y);if(a.kk(y,x,b))return a.svg.parentElement!==null?(a.Dd()&&(y.ti=a.svg),!0):(a.Dd()?(y.ti!==null?y.ti.after(a.svg):y.Nj.prepend(a.svg),y.ti=a.svg):E&&ps(a,E,a.svg),!0);if(a.Dd()&&a.isShadowed){var z=a.shadowOffset;y.Ev(z.x*x.scale*a.scale*x.Mb,z.y*x.scale*a.scale*x.Mb,a.shadowBlur),ih(y),y.shadowColor=a.shadowColor}a instanceof Ro&&(y.font=a.font),y.yd=null;var tt=a.transform;z=a instanceof ei;var rt=a instanceof ei?kh(a):!1;a.l&4096&&qa(a);var ot=a.Ib;if(y.rb.ha=[1,0,0,1,0,0],y.o=!1,b&&(y.o=!0,z&&rt?(Ug(y,1,0,0,1,0,0),a.svg=y.ad):z?(Ug(y,tt.m11,tt.m12,tt.m21,tt.m22,tt.dx,tt.dy),a.svg=y.ad):Ug(y,1,0,0,1,0,0)),b=a.naturalBounds,a.areaBackground!==null){var st=tt.copy().Vj();y.rb.ha=[st.m11,st.m12,st.m21,st.m22,st.dx,st.dy],ul(a,y,b,ot),y.rb.ha=[1,0,0,1,0,0],y.yd.gd=y.ad,y.yd.prepend(y.ad)}return z||(y.rb.ha=[tt.m11,tt.m12,tt.m21,tt.m22,tt.dx,tt.dy]),a.background!==null&&(z?(rt&&(y.rb.ha=[tt.m11,tt.m12,tt.m21,tt.m22,tt.dx,tt.dy]),Ys(a,y,b,ot),rt&&(y.rb.ha=[1,0,0,1,0,0])):(y.rb.ha=[tt.m11,tt.m12,tt.m21,tt.m22,tt.dx,tt.dy],Ys(a,y,b,ot)),y.yd.Ma=y.ad,y.yd.prepend(y.ad)),tt=y.yd,b=a.part,rt=!1,b&&x.Gf("drawShadows")&&(rt=b.isShadowed),y.clipInsteadOfFill&&(rt=!1),a.Dd()&&rt&&ih(y),rt&&a.shadowVisible===!0?ih(y):rt&&a.shadowVisible===!1&&zu(y),b=a.panel,rt&&_a(a,b)&&a.shadowVisible===null&&zu(y),y.Il&&(st=x.computePixelRatio(),st="drop-shadow("+y.shadowOffsetX/st+"px "+y.shadowOffsetY/st+"px "+y.shadowBlur/st/2+"px "+y.shadowColor+")",a.background!==null&&tt.Ma.setAttributeNS(null,"filter",st),a.areaBackground!==null&&tt.gd.setAttributeNS(null,"filter",st)),rt&&(a.Ma!==null||a.areaBackground!==null||_a(a,b))?(Jl(a,!0),a.shadowVisible===null&&zu(y)):Jl(a,!1),b=rt,a.hh(y,x),z&&y.nh.pop(),y.o&&y.nh.pop(),tt=y.Gv.hs,rt=z?a.svg:y.yd,st=a.svg,!z&&st!==null&&rt!==st&&st.parentNode===a.panel.svg?(a.svg.replaceWith(rt),a.svg=rt,rt!==null&&a.$o(y,E,ot,rt),Rs(y,st),!0):(a.svg=rt,tt!==null&&rt===null&&(fm(y),y.nh.pop()),rt===null||(a.$o(y,E,ot,rt),y.Il&&(x=x.computePixelRatio(),a.Dv(rt,"drop-shadow("+y.shadowOffsetX/x+"px "+y.shadowOffsetY/x+"px "+y.shadowBlur/x/2+"px "+y.shadowColor+")")),b&&a.l&512&&ih(y),a.Dd()&&zu(y),x=a.Dd()?a.opacity*y.globalAlpha:a.opacity,x!==1&&rt.setAttributeNS(null,"opacity",x.toString()),a.filter!==""&&rt.setAttributeNS(null,"filter",a.filter),a.Dd()?(y.ti?y.ti.after(rt):y.Nj.prepend(rt),y.ti=rt):E!==null&&ps(a,E,rt),tt!==null&&tt(a,rt)),!0)}Ct.$o=function(a,y,x,E){var b=(this.l&256)!==0;if(a.clipInsteadOfFill&&(b=!1),b){var z=y.se()?y.naturalBounds:y.actualBounds;y=Math.max(x.x,z.x),b=Math.max(x.y,z.y);var tt=Math.min(x.right,z.right)-y;x=Math.min(x.bottom,z.bottom)-b,z=this.tb,z!==null&&(y=z.x,b=z.y,tt=z.width,x=z.height),z=E.getAttribute("clip-path");var rt=null;z!==null&&(rt=a.svg.getElementById(z.split("#")[1].slice(0,-1))),rt===null?(z="CLIP"+ao++,rt=a.Ud("clipPath",{id:z}),y=a.Ud("rect",{x:y,y:b,width:tt,height:x}),this instanceof ei&&(b=this.transform.copy().Vj(),y.setAttribute("transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")")),rt.appendChild(y),a.svg.appendChild(rt),E.setAttributeNS(null,"clip-path","url(#"+z+")")):(a=rt.firstElementChild,a.setAttribute("x",y.toString()),a.setAttribute("y",b.toString()),a.setAttribute("width",tt.toString()),a.setAttribute("height",x.toString()))}else E.removeAttributeNS(null,"clip-path"),Rs(a,E)};function Rs(a,y){y=y.getAttribute("clip-path"),y!==null&&(a=a.svg.getElementById(y.split("#")[1].slice(0,-1)),a!==null&&a.remove())}function ms(a){if(a.svg!==null){var y=a.svg.innerHTML.match(/url\(#((CLIP|GRAD).+?)\)/g),x=a.svg.ownerDocument;if(y!==null){y=Zn(y);for(var E=y.next();!E.done;E=y.next())E=x.getElementById(E.value.split("#")[1].slice(0,-1)),E!==null&&E.remove()}a.svg.remove()}}Ct.hh=function(){},Ct.lv=function(){this.Uc=!0},Ct.kk=function(a,y,x){if(this.Uc)return this.lv(),this.Uc=!1;if(y=this.svg,y===null)return!1;if(!this.visible)return y.remove(),!1;if(y.nodeName!=="g"&&x||y.nodeName==="g"&&!x)return!1;var E=this.transform,b=this instanceof ei?kh(this):!1;if(!(this instanceof ei&&b))if(this instanceof Ws){var z=this.bt;a.rb.ha=[E.m11,E.m12,E.m21,E.m22,E.dx,E.dy],z!==null&&t1(a,z[0],z[1],z[2],z[3],z[4],z[5],z[6],z[7]),x?y.lastElementChild.setAttributeNS(null,"transform",e1(a)):y.setAttributeNS(null,"transform",e1(a))}else if(!x||this instanceof ei)y.setAttributeNS(null,"transform","matrix("+E.m11+", "+E.m12+", "+E.m21+", "+E.m22+", "+E.dx+", "+E.dy+")");else if(this instanceof Wr){z=y.getElementsByTagName("path");for(var tt=0;tt<z.length;tt++)z[tt].setAttributeNS(null,"transform","matrix("+E.m11+", "+E.m12+", "+E.m21+", "+E.m22+", "+E.dx+", "+E.dy+")")}else y.lastElementChild.setAttributeNS(null,"transform","matrix("+E.m11+", "+E.m12+", "+E.m21+", "+E.m22+", "+E.dx+", "+E.dy+")");return z=this.Dd()?this.opacity*a.globalAlpha:this.opacity,z===1?y.removeAttribute("opacity"):y.setAttributeNS(null,"opacity",z.toString()),a.rb.ha=[1,0,0,1,0,0],(this.areaBackground!==null||y.gd!==void 0)&&(z=y.gd,this.areaBackground===null?(y.gd.remove(),y.gd=void 0):(tt=E.copy().Vj(),a.rb.ha=[tt.m11,tt.m12,tt.m21,tt.m22,tt.dx,tt.dy],ul(this,a,this.naturalBounds,this.actualBounds),a.rb.ha=[1,0,0,1,0,0],y.gd?(tt=y.gd.getAttribute("filter"),tt!==null&&a.ad.setAttribute("filter",tt),y.gd.replaceWith(a.ad)):y.prepend(a.ad),y.gd=a.ad),z&&gm(a,z)),(this.background!==null||y.Ma!==void 0)&&(z=y.Ma,this.background===null?(gm(a,y.Ma),y.Ma.remove(),y.Ma=void 0):((b||x&&!(this instanceof ei))&&(a.rb.ha=[E.m11,E.m12,E.m21,E.m22,E.dx,E.dy]),Ys(this,a,this.naturalBounds,this.actualBounds),y.Ma?(gm(a,y.Ma),x=y.Ma.getAttribute("filter"),x!==null&&a.ad.setAttribute("filter",x),y.Ma.replaceWith(a.ad)):y.prepend(a.ad),y.Ma=a.ad),z&&gm(a,z)),this.$o(a,this.panel,this.actualBounds,y),!0},Ct.nk=function(a){if(this.background!==null||this.areaBackground!==null)return!0;var y=(this.l&256)!==0;return a.clipInsteadOfFill&&(y=!1),!!y};function fa(a,y,x,E,b,z,tt){if(x!==null){var rt=1,ot=1;if(typeof x=="string")E?y.fillStyle=x:y.strokeStyle=x;else if(x.type===Mh)E?y.fillStyle=x.color:y.strokeStyle=x.color;else{var st=a.kq();if(rt=z.width,ot=z.height,b?(rt=tt.width,ot=tt.height):E||(rt+=st,ot+=st),(z=y instanceof Jd)&&x.xe&&(x.type===Nf||x.yk===rt&&x.ft===ot))var ut=x.xe;else{var ft=0,vt=0,xt=0,Pt=0,Ft=0,Xt=0;if(Xt=Ft=0,b?(Ft=tt.x,Xt=tt.y):E||(Ft-=st/2,Xt-=st/2),ft=x.start.x*rt+x.start.offsetX,vt=x.start.y*ot+x.start.offsetY,xt=x.end.x*rt+x.end.offsetX,Pt=x.end.y*ot+x.end.offsetY,ft+=Ft,xt+=Ft,vt+=Xt,Pt+=Xt,x.type===oh)ut=y.createLinearGradient(ft,vt,xt,Pt);else if(x.type===Al)Xt=isNaN(x.endRadius)?Math.max(rt,ot)/2:x.endRadius,isNaN(x.startRadius)?(Ft=0,Xt=Math.max(rt,ot)/2):Ft=x.startRadius,ut=y.createRadialGradient(ft,vt,Ft,xt,Pt,Xt);else if(x.type===Nf)try{ut=y.createPattern(x.pattern,"repeat")}catch(oe){ut=null}if(x.type!==Nf&&(b=x.colorStops,b!==null))for(b=b.iterator;b.next();)ut.addColorStop(b.key,b.value);if(z&&(x.xe=ut,ut!==null&&(x.yk=rt,x.ft=ot),ut===null&&x.type===Nf&&x.yk!==-1)){x.yk=-1;var Wt=a.diagram;Wt!==null&&x.yk===-1&&Te(function(){Wt.redraw()},600)}}E?y.fillStyle=ut:y.strokeStyle=ut}}}Ct.rg=function(a){if(a instanceof ei)t:{if(this!==a&&a!==null)for(var y=this.panel;y!==null;){if(y===a){a=!0;break t}y=y.panel}a=!1}else a=!1;return a},Ct.Ed=function(){if(!this.visible)return!1;var a=this.panel;return a!==null?a.Ed():!0},Ct.If=function(){for(var a=this instanceof ei?this:this.panel;a!==null&&a.isEnabled;)a=a.panel;return a===null};function qa(a){if(a.l&2048){var y=a.Ab;if(y.reset(),!a.Ib.w()||!a.uc.w()){Rl(a,!1);return}if(y.translate(a.Ib.x-a.uc.x,a.Ib.y-a.uc.y),a.scale!==1||a.angle!==0){var x=a.naturalBounds;a.no(y,x.x,x.y,x.width,x.height)}Rl(a,!1),Cl(a,!0)}a.l&4096&&(y=a.panel,y===null?(a.wh.set(a.Ab),a.Kk=a.scale,Cl(a,!1)):y.oe!==null&&(x=a.wh,x.reset(),y.se()?x.multiply(y.wh):y.panel!==null&&x.multiply(y.panel.wh),x.multiply(a.Ab),a.Kk=a.scale*y.Kk,Cl(a,!1)))}Ct.no=function(a,y,x,E,b){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=Bt.alloc();z.yi(y,x,E,b,Ri),a.rotate(this.Kb,z.x,z.y),Bt.free(z)}},Ct.v=function(a){if(!hl(this)){a===void 0&&(a=!1),Fa(this,!0),Ru(this,!0);var y=this.panel;y===null||a||y.v()}},Ct.Uj=function(){hl(this)||(Fa(this,!0),Ru(this,!0))};function As(a){if(!Ls(a)){var y=a.panel;y!==null?y.v():a.Dd()&&(y=a.diagram,y!==null&&(y.De.add(a),a instanceof bi&&a.Bd(),y.$b())),Ru(a,!0)}}Ct.Uk=function(){!(this.l&2048)&&(Rl(this,!0),Cl(this,!0))},Ct.Wu=function(){Cl(this,!0)},Ct.N=function(){var a=this.part;a!==null&&a.N()};function zs(a,y){var x=a.stretch,E=a.panel;return E!==null&&E.type===ei.Table?su(a,E.Fb(a.row),E.Eb(a.column),y):E!==null&&E.type===ei.Auto&&E.Pb()===a?Ja(a,Qn,y):x===Or?E!==null?E.type===ei.Spot&&E.Pb()===a?Ja(a,Qn,y):(x=E.defaultStretch,x===Or?Ja(a,Hn,y):Ja(a,x,y)):Ja(a,Hn,y):Ja(a,x,y)}function su(a,y,x,E){var b=a.stretch;if(b!==Or)return Ja(a,b,E);var z=b=null;switch(y.stretch){case mr:z=!0;break;case Qn:z=!0}switch(x.stretch){case $i:b=!0;break;case Qn:b=!0}return y=a.panel.defaultStretch,b===null&&(b=y===$i||y===Qn),z===null&&(z=y===mr||y===Qn),b===!0&&z===!0?Ja(a,Qn,E):b===!0?Ja(a,$i,E):z===!0?Ja(a,mr,E):Ja(a,Hn,E)}function Ja(a,y,x){if(x)return y;if(y===Hn||(x=a.desiredSize,x.w()))return Hn;if(a=a.angle,!isNaN(x.width))if(a!==90&&a!==270){if(y===$i)return Hn;if(y===Qn)return mr}else{if(y===mr)return Hn;if(y===Qn)return $i}if(!isNaN(x.height))if(a!==90&&a!==270){if(y===mr)return Hn;if(y===Qn)return $i}else{if(y===$i)return Hn;if(y===Qn)return mr}return y}function Jl(a,y){a.l=y?a.l|512:a.l&-513}function is(a){return(a.l&1024)!==0}function Bc(a,y){a.l=y?a.l|1024:a.l&-1025}function Rl(a,y){a.l=y?a.l|2048:a.l&-2049}function Cl(a,y){a.l=y?a.l|4096:a.l&-4097}function hl(a){return(a.l&8192)!==0}function Fa(a,y){a.l=y?a.l|8192:a.l&-8193}function Ls(a){return(a.l&16384)!==0}function Ru(a,y){a.l=y?a.l|16384:a.l&-16385}Ct.Gj=function(){this.svg=null},Ct.wi=function(a){this.Me=a,this.svg!==null&&this.svg.remove()},Ct.Av=function(){},Ct.zv=function(a){return this.pa=a,As(this),!0},Ct.mm=function(a,y){(this.pa.x!==a||this.pa.y!==y)&&(this.pa.h(a,y),this.Uk())},Ct.kq=function(){return 0};function Xd(a){var y=a.part;if(y instanceof bi&&(a.portId!==null||a===y.port)){var x=y.diagram;x===null||x.undoManager.isUndoingRedoing||X1(y,a)}}function qy(a){var y=a.diagram;y===null||y.undoManager.isUndoingRedoing||(a instanceof ei?a instanceof bi?a.Bd():a.qm(a,function(x){Xd(x)}):Xd(a))}Ct.bind=function(a,y,x,E){var b=null;return typeof a=="string"?b=new Ea(a,y,x,E):b=a,b.xd=this,a=this.ih(),a!==null&&v1(a)&&ee("Cannot add a Binding to a template that has already been copied: "+b),this.localBindings===null&&(this.localBindings=new cn),this.localBindings.add(b),this},Ct.set=function(a){return Object.assign(this,a),this},Ct.Du=function(a){return av(this,a),this},Ct.apply=function(a){return a(this),this},Ct.nm=function(a){return Wd(this,a),this},Ct.pz=function(){return this.ih()},Ct.ih=function(){for(var a=this instanceof ei?this:this.panel;a!==null;){if(a.allBindings!==null)return a;a=a.panel}return null},Ct.Jv=function(a){return a.xd=this,this.animationTriggers===null&&(this.animationTriggers=new on),this.animationTriggers.add(a.propertyName,a),this};function El(a,y){for(var x=1;x<arguments.length;++x);x=arguments;var E=null,b=null;if(typeof a=="function")b=a;else if(typeof a=="string"){var z=Lf.I(a);typeof z=="function"?(x=ai(arguments),E=z(x),Ke(E)||ee('GraphObject.make invoked object builder "'+a+'", but it did not return an Object')):b=Sn.go[a]}if(E===null&&(b!=null&&b.constructor||ee("GraphObject.make requires a class function or GoJS class name or name of an object builder, not: "+a),E=new b),b=1,E instanceof Qe&&1<x.length){z=E;var tt=x[1];(typeof tt=="string"||tt instanceof HTMLDivElement)&&(wg(z,tt),b++)}for(;b<x.length;b++)z=x[b],z===void 0?ee("Undefined value at argument "+b+" for object being constructed by GraphObject.make: "+E):av(E,z);return E}function av(a,y){if(typeof y=="string")if(a instanceof Ro)a.text=y;else if(a instanceof Wr)a.figure=y;else if(a instanceof Ws)a.source=y;else if(a instanceof ei)y=Ql.I(y),y!==null&&(a.type=y);else if(a instanceof wo){var x=Mi(wo,y);x!==null?a.type=x:ee("Unknown Brush type as an argument to GraphObject.make: "+y)}else a instanceof Wn?(y=Mi(Wn,y),y!==null&&(a.type=y)):a instanceof Qr&&(y=Mi(Qr,y),y!==null&&(a.type=y));else if(y instanceof Me)a instanceof ei||ee("A GraphObject can only be added to a Panel, not to: "+a),a.add(y);else if(y instanceof Da){var E;y.isRow&&typeof a.getRowDefinition=="function"?E=a.getRowDefinition(y.index):y.isRow||typeof a.getColumnDefinition!="function"||(E=a.getColumnDefinition(y.index)),E instanceof Da?Fm(E,y):ee("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+a)}else if(y instanceof dn)typeof a.qb=="function"&&a.qb(y);else if(y instanceof Oa)a.type=y;else if(y instanceof Ea)a instanceof Me||a instanceof Da?a.bind(y):ee("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+a);else if(y instanceof Xl)a instanceof Me?a.Jv(y):ee("An AnimationTrigger can only be applied to a GraphObject, not to: "+a);else if(y instanceof ua)a instanceof Wn&&a.type===Wn.o?a.figures.add(y):ee("A PathFigure can only be added to a Path Geometry, not to: "+a);else if(y instanceof Qr)a instanceof ua?a.segments.add(y):ee("A PathSegment can only be added to a PathFigure, not to: "+a);else if(y instanceof ea)a instanceof Qe||a instanceof Tr?a.layout=y:ee("A Layout can only be assigned to a Diagram or a Group, not to: "+a);else if(Array.isArray(y))for(x=0;x<y.length;x++)av(a,y[x]);else if(typeof y=="object"&&y!==null)if(a instanceof wo){x=new Qi;for(var b in y)E=parseFloat(b),isNaN(E)?x[b]=y[b]:a.addColorStop(E,y[b]);Wd(a,x)}else if(a instanceof Da){y.row!==void 0?(b=y.row,(b==null||b===1/0||isNaN(b)||0>b)&&ee("Must specify non-negative integer row for RowColumnDefinition "+y+", not: "+b),a.isRow=!0,a.index=b):y.column!==void 0&&(b=y.column,(b==null||b===1/0||isNaN(b)||0>b)&&ee("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+b),a.isRow=!1,a.index=b),b=new Qi;for(x in y)x!=="row"&&x!=="column"&&(b[x]=y[x]);Wd(a,b)}else Wd(a,y);else ee('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function bh(a,y){Lf.add(a,y)}function cm(a,y,x){x===void 0&&(x=null);var E=a[1];if(typeof x=="function"?x(E):typeof E=="string")return a.splice(1,1),E;if(y===void 0)throw Error("no "+(typeof x=="function"?"satisfactory":"string")+" argument for GraphObject builder "+a[0]);return y}xe.Object.defineProperties(Me.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(a){this.bindingId!==a&&(this.A===null&&(this.A=new Tc),this.A.zp=a)}},localBindings:{get:function(){return this.A!==null?this.A.te:null},set:function(a){this.localBindings!==a&&(this.A===null&&(this.A=new Tc),this.A.te=a)}},srcBindings:{get:function(){return this.A!==null?this.A.wm:null},set:function(a){this.srcBindings!==a&&(this.A===null&&(this.A=new Tc),this.A.wm=a)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(a){var y=this.shadowVisible;y!==a&&(Gr(this),this.A.Ci=a,this.Uc=!0,this.N(),this.g("shadowVisible",y,a))}},enabledChanged:{get:function(){return this.A!==null?this.A.Hb:null},set:function(a){var y=this.enabledChanged;y!==a&&(Gr(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:ks},set:function(a){var y=this.segmentOrientation;y!==a&&(this.Ua===null&&(this.Ua=new ud),this.Ua.rr=a,this.v(),this.g("segmentOrientation",y,a),a===ks&&(this.angle=0))}},segmentIndex:{get:function(){return this.Ua!==null?this.Ua.u:-1/0},set:function(a){a=Math.round(a);var y=this.segmentIndex;y!==a&&(this.Ua===null&&(this.Ua=new ud),this.Ua.u=a,this.v(),this.g("segmentIndex",y,a))}},segmentFraction:{get:function(){return this.Ua!==null?this.Ua.o:0},set:function(a){isNaN(a)||0>a?a=0:1<a&&(a=1);var y=this.segmentFraction;y!==a&&(this.Ua===null&&(this.Ua=new ud),this.Ua.o=a,this.v(),this.g("segmentFraction",y,a))}},segmentOffset:{get:function(){return this.Ua!==null?this.Ua.F:Zt},set:function(a){var y=this.segmentOffset;y.D(a)||(a=a.J(),this.Ua===null&&(this.Ua=new ud),this.Ua.F=a,this.v(),this.g("segmentOffset",y,a))}},stretch:{get:function(){return this.A!==null?this.A.hg:Or},set:function(a){var y=this.stretch;y!==a&&(Gr(this),this.A.hg=a,this.v(),this.g("stretch",y,a))}},name:{get:function(){return this.A!==null?this.A.xa:""},set:function(a){var y=this.name;y!==a&&(Gr(this),this.A.xa=a,this.part!==null&&(this.part.Rh=null),this.g("name",y,a))}},opacity:{get:function(){return this.pb},set:function(a){var y=this.pb;y!==a&&((0>a||1<a)&&Vn(a,"0 <= value <= 1",Me,"opacity"),this.pb=a,this.g("opacity",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N(tc(y,y.actualBounds)))}},filter:{get:function(){return this.bn},set:function(a){var y=this.bn;y!==a&&(this.bn=a,this.Uc=!0,this.g("filter",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N(tc(y,y.actualBounds)))}},visible:{get:function(){return(this.l&1)!==0},set:function(a){var y=(this.l&1)!==0;y!==a&&(this.l^=1,this.g("visible",y,a),y=this.panel,y!==null?y.v():this.Dd()&&this.Zb(a),this.N(),qy(this))}},pickable:{get:function(){return(this.l&2)!==0},set:function(a){var y=(this.l&2)!==0;y!==a&&(this.l^=2,this.g("pickable",y,a))}},fromLinkableDuplicates:{get:function(){return(this.l&4)!==0},set:function(a){var y=(this.l&4)!==0;y!==a&&(this.l^=4,this.g("fromLinkableDuplicates",y,a))}},fromLinkableSelfNode:{get:function(){return(this.l&8)!==0},set:function(a){var y=(this.l&8)!==0;y!==a&&(this.l^=8,this.g("fromLinkableSelfNode",y,a))}},toLinkableDuplicates:{get:function(){return(this.l&16)!==0},set:function(a){var y=(this.l&16)!==0;y!==a&&(this.l^=16,this.g("toLinkableDuplicates",y,a))}},toLinkableSelfNode:{get:function(){return(this.l&32)!==0},set:function(a){var y=(this.l&32)!==0;y!==a&&(this.l^=32,this.g("toLinkableSelfNode",y,a))}},isPanelMain:{get:function(){return(this.l&64)!==0},set:function(a){var y=(this.l&64)!==0;y!==a&&(this.l^=64,this.v(),this.g("isPanelMain",y,a))}},isActionable:{get:function(){return(this.l&128)!==0},set:function(a){var y=(this.l&128)!==0;y!==a&&(this.l^=128,this.g("isActionable",y,a))}},areaBackground:{get:function(){return this.A!==null?this.A.gd:null},set:function(a){var y=this.areaBackground;y!==a&&(a!==null&&Ic(a,"GraphObject.areaBackground"),a instanceof wo&&a.freeze(),Gr(this),this.A.gd=a,this.N(),this.g("areaBackground",y,a))}},background:{get:function(){return this.Ma},set:function(a){var y=this.Ma;y!==a&&(a!==null&&Ic(a,"GraphObject.background"),a instanceof wo&&a.freeze(),this.Ma=a,this.N(),this.g("background",y,a))}},part:{get:function(){if(this.Dd())return this;if(this.Ng!==null)return this.Ng;var a;for(a=this.panel;a;){if(a instanceof rr)return this.Ng=a;a=a.panel}return null}},svg:{get:function(){return this.V},set:function(a){this.V=a}},panel:{get:function(){return this.Me}},layer:{get:function(){var a=this.part;return a!==null?a.layer:null}},diagram:{get:function(){var a=this.part;return a!==null?a.diagram:null}},position:{get:function(){return this.pa},set:function(a){var y=a.x,x=a.y,E=this.pa,b=E.x;E=E.y,(b===y||isNaN(b)&&isNaN(y))&&(E===x||isNaN(E)&&isNaN(x))?this.Av():(a=a.copy(),this.zv(a,b,E)&&this.g("position",new Bt(b,E),a))}},actualBounds:{get:function(){return this.Ib}},scale:{get:function(){return this.Ca},set:function(a){var y=this.Ca;y!==a&&(0>=a&&ee("GraphObject.scale for "+this+" must be greater than zero, not: "+a),this.Ca=a,this.v(),this.g("scale",y,a))}},angle:{get:function(){return this.Kb},set:function(a){var y=this.Kb;y!==a&&(a%=360,0>a&&(a+=360),y!==a&&(this.Kb=a,qy(this),this.v(),this.g("angle",y,a)))}},desiredSize:{get:function(){return this.jd},set:function(a){var y=a.width,x=a.height,E=this.jd,b=E.width,z=E.height;(b===y||isNaN(b)&&isNaN(y))&&(z===x||isNaN(z)&&isNaN(x))||(this.jd=a=a.J(),this.v(),this instanceof Wr&&this.qc(),this.g("desiredSize",E,a),is(this)&&(a=this.part,a!==null&&(_o(this,a,"width"),_o(this,a,"height"))))}},width:{get:function(){return this.jd.width},set:function(a){var y=this.jd.width;y===a||isNaN(y)&&isNaN(a)||(y=this.jd,this.jd=a=new zt(a,this.jd.height).freeze(),this.v(),this instanceof Wr&&this.qc(),this.g("desiredSize",y,a),is(this)&&(a=this.part,a!==null&&_o(this,a,"width")))}},height:{get:function(){return this.jd.height},set:function(a){var y=this.jd.height;y===a||isNaN(y)&&isNaN(a)||(y=this.jd,this.jd=a=new zt(this.jd.width,a).freeze(),this.v(),this instanceof Wr&&this.qc(),this.g("desiredSize",y,a),is(this)&&(a=this.part,a!==null&&_o(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:ae},set:function(a){var y=this.minSize;y.D(a)||(a=a.copy(),isNaN(a.width)&&(a.width=0),isNaN(a.height)&&(a.height=0),a.freeze(),Gr(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:Ln},set:function(a){var y=this.maxSize;y.D(a)||(a=a.copy(),isNaN(a.width)&&(a.width=1/0),isNaN(a.height)&&(a.height=1/0),a.freeze(),Gr(this),this.A.o=a,this.v(),this.g("maxSize",y,a))}},measuredBounds:{get:function(){return this.uc}},naturalBounds:{get:function(){return this.dc}},margin:{get:function(){return this.Kg},set:function(a){typeof a=="number"&&(a=new Di(a));var y=this.Kg;y.D(a)||(this.Kg=a=a.J(),this.v(),this.g("margin",y,a))}},transform:{get:function(){return this.l&2048&&qa(this),this.Ab}},oe:{get:function(){return this.l&4096&&qa(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&(Gr(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:Hn},set:function(a){this.reshapingBehavior!==a&&(Gr(this),this.A.Pf=a)}},alignment:{get:function(){return this.Jb},set:function(a){var y=this.Jb;y.D(a)||(a.Mc()&&!a.Xb()&&ee("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),As(this),this.g("alignment",y,a))}},column:{get:function(){return this.Ag},set:function(a){a=Math.round(a);var y=this.Ag;y!==a&&(0>a&&Vn(a,">= 0",Me,"column"),this.Ag=a,this.v(),this.g("column",y,a),this.svg!==null&&this.svg.remove())}},columnSpan:{get:function(){return this.A!==null?this.A.ob:1},set:function(a){a=Math.round(a);var y=this.columnSpan;y!==a&&(1>a&&Vn(a,">= 1",Me,"columnSpan"),Gr(this),this.A.ob=a,this.v(),this.g("columnSpan",y,a))}},row:{get:function(){return this.io},set:function(a){a=Math.round(a);var y=this.io;y!==a&&(0>a&&Vn(a,">= 0",Me,"row"),this.io=a,this.v(),this.g("row",y,a),this.svg!==null&&this.svg.remove())}},rowSpan:{get:function(){return this.A!==null?this.A.Bi:1},set:function(a){a=Math.round(a);var y=this.rowSpan;y!==a&&(1>a&&Vn(a,">= 1",Me,"rowSpan"),Gr(this),this.A.Bi=a,this.v(),this.g("rowSpan",y,a))}},spanAllocation:{get:function(){return this.A!==null?this.A.Di:null},set:function(a){var y=this.spanAllocation;y!==a&&(Gr(this),this.A.Di=a,this.v(),this.g("spanAllocation",y,a))}},alignmentFocus:{get:function(){return this.sk},set:function(a){var y=this.sk;y.D(a)||(this.sk=a=a.J(),this.v(),this.g("alignmentFocus",y,a))}},portId:{get:function(){return this.Yn},set:function(a){var y=this.Yn;if(y!==a){var x=this.part;x===null||x instanceof bi||ee("Cannot set portID on a Link: "+a),y!==null&&x!==null&&Yv(x,this),this.Yn=a,a!==null&&x!==null&&(x.Te=!0,Q1(x,this)),this.g("portId",y,a)}}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:_i},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),Xd(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&Vn(a,">= 0",Me,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),Xd(this))}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:0},set:function(a){var y=this.toShortLength;y!==a&&(this.Xc(),this.ba.xj=a,this.g("toShortLength",y,a),Xd(this))}},toLinkable:{get:function(){return this.ba!==null?this.ba.Tr:null},set:function(a){var y=this.toLinkable;y!==a&&(this.Xc(),this.ba.Tr=a,this.g("toLinkable",y,a))}},toMaxLinks:{get:function(){return this.ba!==null?this.ba.Ur:1/0},set:function(a){var y=this.toMaxLinks;y!==a&&(0>a&&Vn(a,">= 0",Me,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:_i},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),Xd(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&Vn(a,">= 0",Me,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),Xd(this))}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:0},set:function(a){var y=this.fromShortLength;y!==a&&(this.Xc(),this.ba.Wi=a,this.g("fromShortLength",y,a),Xd(this))}},fromLinkable:{get:function(){return this.ba!==null?this.ba.hq:null},set:function(a){var y=this.fromLinkable;y!==a&&(this.Xc(),this.ba.hq=a,this.g("fromLinkable",y,a))}},fromMaxLinks:{get:function(){return this.ba!==null?this.ba.iq:1/0},set:function(a){var y=this.fromMaxLinks;y!==a&&(0>a&&Vn(a,">= 0",Me,"fromMaxLinks"),this.Xc(),this.ba.iq=a,this.g("fromMaxLinks",y,a))}},cursor:{get:function(){return this.A!==null?this.A.j:""},set:function(a){var y=this.cursor;y!==a&&(Gr(this),this.A.j=a,this.g("cursor",y,a))}},click:{get:function(){return this.A!==null?this.A.zh:null},set:function(a){var y=this.click;y!==a&&(Gr(this),this.A.zh=a,this.g("click",y,a))}},doubleClick:{get:function(){return this.A!==null?this.A.Fh:null},set:function(a){var y=this.doubleClick;y!==a&&(Gr(this),this.A.Fh=a,this.g("doubleClick",y,a))}},contextClick:{get:function(){return this.A!==null?this.A.Bh:null},set:function(a){var y=this.contextClick;y!==a&&(Gr(this),this.A.Bh=a,this.g("contextClick",y,a))}},mouseEnter:{get:function(){return this.A!==null?this.A.Mh:null},set:function(a){var y=this.mouseEnter;y!==a&&(Gr(this),this.A.Mh=a,this.g("mouseEnter",y,a))}},mouseLeave:{get:function(){return this.A!==null?this.A.Ph:null},set:function(a){var y=this.mouseLeave;y!==a&&(Gr(this),this.A.Ph=a,this.g("mouseLeave",y,a))}},mouseOver:{get:function(){return this.A!==null?this.A.Qh:null},set:function(a){var y=this.mouseOver;y!==a&&(Gr(this),this.A.Qh=a,this.g("mouseOver",y,a))}},mouseHover:{get:function(){return this.A!==null?this.A.Oh:null},set:function(a){var y=this.mouseHover;y!==a&&(Gr(this),this.A.Oh=a,this.g("mouseHover",y,a))}},mouseHold:{get:function(){return this.A!==null?this.A.Nh:null},set:function(a){var y=this.mouseHold;y!==a&&(Gr(this),this.A.Nh=a,this.g("mouseHold",y,a))}},mouseDragEnter:{get:function(){return this.A!==null?this.A.Of:null},set:function(a){var y=this.mouseDragEnter;y!==a&&(Gr(this),this.A.Of=a,this.g("mouseDragEnter",y,a))}},mouseDragLeave:{get:function(){return this.A!==null?this.A.Xd:null},set:function(a){var y=this.mouseDragLeave;y!==a&&(Gr(this),this.A.Xd=a,this.g("mouseDragLeave",y,a))}},mouseDrop:{get:function(){return this.A!==null?this.A.Lh:null},set:function(a){var y=this.mouseDrop;y!==a&&(Gr(this),this.A.Lh=a,this.g("mouseDrop",y,a))}},actionDown:{get:function(){return this.A!==null?this.A.V:null},set:function(a){var y=this.actionDown;y!==a&&(Gr(this),this.A.V=a,this.g("actionDown",y,a))}},actionMove:{get:function(){return this.A!==null?this.A.ia:null},set:function(a){var y=this.actionMove;y!==a&&(Gr(this),this.A.ia=a,this.g("actionMove",y,a))}},actionUp:{get:function(){return this.A!==null?this.A.Ha:null},set:function(a){var y=this.actionUp;y!==a&&(Gr(this),this.A.Ha=a,this.g("actionUp",y,a))}},actionCancel:{get:function(){return this.A!==null?this.A.F:null},set:function(a){var y=this.actionCancel;y!==a&&(Gr(this),this.A.F=a,this.g("actionCancel",y,a))}},toolTip:{get:function(){return this.A!==null?this.A.$h:null},set:function(a){var y=this.toolTip;y!==a&&(Gr(this),this.A.$h=a,this.g("toolTip",y,a))}},contextMenu:{get:function(){return this.A!==null?this.A.Ch:null},set:function(a){var y=this.contextMenu;y!==a&&(Gr(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),Me.prototype.trigger=Me.prototype.Jv,Me.prototype.findBindingPanel=Me.prototype.ih,Me.prototype.findTemplateBinder=Me.prototype.pz,Me.prototype.setProperties=Me.prototype.nm,Me.prototype.apply=Me.prototype.apply,Me.prototype.attach=Me.prototype.Du,Me.prototype.set=Me.prototype.set,Me.prototype.isEnabledObject=Me.prototype.If,Me.prototype.isVisibleObject=Me.prototype.Ed,Me.prototype.isContainedBy=Me.prototype.rg,Me.prototype.getNearestIntersectionPoint=Me.prototype.rs,Me.prototype.getLocalPoint=Me.prototype.qs,Me.prototype.getDocumentScale=Me.prototype.Df,Me.prototype.getDocumentAngle=Me.prototype.li,Me.prototype.getDocumentBounds=Me.prototype.mi,Me.prototype.getDocumentPoint=Me.prototype.ga,Me.prototype.intersectsRect=Me.prototype.Yc,Me.prototype.containedInRect=Me.prototype.fh,Me.prototype.containsRect=Me.prototype.Re,Me.prototype.containsPoint=Me.prototype.ca,Me.prototype.raiseChanged=Me.prototype.g,Me.prototype.raiseChangedEvent=Me.prototype.cb,Me.prototype.addCopyProperty=Me.prototype.Vw;var Lf=null;Me.className="GraphObject",Lf=new on,bh("Button",function(){function a(x,E){return x.diagram.ic(x.documentPoint,function(b){for(;b.panel!==null&&!b.isActionable;)b=b.panel;return b},function(b){return b===E})!==null}var y=El(ei,ei.Auto,{isActionable:!0,enabledChanged:function(x,E){if(x instanceof ei){var b=x.fb("ButtonBorder");b!==null&&(b.fill=E?x._buttonFillNormal:x._buttonFillDisabled)}},cursor:"pointer",_buttonFillNormal:"#F5F5F5",_buttonStrokeNormal:"#BDBDBD",_buttonFillOver:"#E0E0E0",_buttonStrokeOver:"#9E9E9E",_buttonFillPressed:"#BDBDBD",_buttonStrokePressed:"#9E9E9E",_buttonFillDisabled:"#E5E5E5"},El(Wr,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new Mn(0,0,2.76142374915397,2.761423749153969),spot2:new Mn(1,1,-2.76142374915397,-2.761423749153969),parameter1:2,parameter2:2,fill:"#F5F5F5",stroke:"#BDBDBD"}));return y.mouseEnter=function(x,E){if(E.If()&&E instanceof ei&&(x=E.fb("ButtonBorder"),x instanceof Wr)){var b=E._buttonFillOver;E._buttonFillNormal=x.fill,x.fill=b,b=E._buttonStrokeOver,E._buttonStrokeNormal=x.stroke,x.stroke=b}},y.mouseLeave=function(x,E){E.If()&&E instanceof ei&&(x=E.fb("ButtonBorder"),x instanceof Wr&&(x.fill=E._buttonFillNormal,x.stroke=E._buttonStrokeNormal))},y.actionDown=function(x,E){if(E.If()&&E instanceof ei&&E._buttonFillPressed!==null&&x.button===0){var b=E.fb("ButtonBorder");if(b instanceof Wr){x=x.diagram;var z=x.skipsUndoManager;x.skipsUndoManager=!0;var tt=E._buttonFillPressed;E._buttonFillOver=b.fill,b.fill=tt,tt=E._buttonStrokePressed,E._buttonStrokeOver=b.stroke,b.stroke=tt,x.skipsUndoManager=z}}},y.actionUp=function(x,E){if(E.If()&&E instanceof ei&&E._buttonFillPressed!==null&&x.button===0){var b=E.fb("ButtonBorder");if(b instanceof Wr){var z=x.diagram,tt=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,E)?(b.fill=E._buttonFillOver,b.stroke=E._buttonStrokeOver):(b.fill=E._buttonFillNormal,b.stroke=E._buttonStrokeNormal),z.skipsUndoManager=tt}}},y.actionCancel=function(x,E){if(E.If()&&E instanceof ei&&E._buttonFillPressed!==null){var b=E.fb("ButtonBorder");if(b instanceof Wr){var z=x.diagram,tt=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,E)?(b.fill=E._buttonFillOver,b.stroke=E._buttonStrokeOver):(b.fill=E._buttonFillNormal,b.stroke=E._buttonStrokeNormal),z.skipsUndoManager=tt}}},y.actionMove=function(x,E){if(E.If()&&E instanceof ei&&E._buttonFillPressed!==null){var b=x.diagram;if(b.firstInput.button===0&&(b.currentTool.standardMouseOver(),a(x,E)&&(x=E.fb("ButtonBorder"),x instanceof Wr))){var z=b.skipsUndoManager;b.skipsUndoManager=!0;var tt=E._buttonFillPressed;x.fill!==tt&&(x.fill=tt),tt=E._buttonStrokePressed,x.stroke!==tt&&(x.stroke=tt),b.skipsUndoManager=z}}},y}),bh("TreeExpanderButton",function(){var a=El("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},El(Wr,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Ye},new Ea("figure","isTreeExpanded",function(y,x){return x=x.panel,y?x._treeExpandedFigure:x._treeCollapsedFigure}).cp()),{visible:!1},new Ea("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,x){if(x=x.part,x instanceof uo&&(x=x.adornedPart),x instanceof bi){var E=x.diagram;if(E!==null){if(E=E.commandHandler,x.isTreeExpanded){if(!E.canCollapseTree(x))return}else if(!E.canExpandTree(x))return;y.handled=!0,x.isTreeExpanded?E.collapseTree(x):E.expandTree(x)}}},a}),bh("SubGraphExpanderButton",function(){var a=El("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},El(Wr,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Ye},new Ea("figure","isSubGraphExpanded",function(y,x){return x=x.panel,y?x._subGraphExpandedFigure:x._subGraphCollapsedFigure}).cp()));return a.click=function(y,x){if(x=x.part,x instanceof uo&&(x=x.adornedPart),x instanceof Tr){var E=x.diagram;if(E!==null){if(E=E.commandHandler,x.isSubGraphExpanded){if(!E.canCollapseSubGraph(x))return}else if(!E.canExpandSubGraph(x))return;y.handled=!0,x.isSubGraphExpanded?E.collapseSubGraph(x):E.expandSubGraph(x)}}},a}),bh("ToolTip",function(){return El(uo,ei.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Bt(0,3),shadowBlur:5},El(Wr,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new Mn(0,0,4,6),spot2:new Mn(1,1,-4,-4)}))}),bh("ContextMenu",function(){return El(uo,ei.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Bt(0,3),shadowBlur:5},new Ea("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),bh("ContextMenuButton",function(){var a=El("Button");a.stretch=$i;var y=a.fb("ButtonBorder");return y instanceof Wr&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new Mn(0,0,2,3),y.spot2=new Mn(1,1,-2,-2)),a}),bh("PanelExpanderButton",function(a){var y=cm(a,"COLLAPSIBLE"),x=El("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},El(Wr,{name:"ButtonIcon",strokeWidth:2},new Ea("geometryString","visible",function(E){return E?x._buttonExpandedFigure:x._buttonCollapsedFigure}).cp(y)));return a=x.fb("ButtonBorder"),a instanceof Wr&&(a.stroke=null,a.fill="rgba(0, 0, 0, 0)"),x.click=function(E,b){var z=b.diagram;if(z!==null&&!z.isReadOnly){var tt=b.ih();tt===null&&(tt=b.part),tt!==null&&(b=tt.fb(y),b!==null&&(E.handled=!0,z.Ea("Collapse/Expand Panel"),b.visible=!b.visible,z.eb("Collapse/Expand Panel")))}},x}),bh("CheckBoxButton",function(a){var y=cm(a);return a=El("Button",{desiredSize:new zt(14,14)},El(Wr,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:Qn,geometryStretch:Yi,visible:!1},y!==""?new Ea("visible",y).Kx():[])),a.click=function(x,E){if(E instanceof ei){var b=x.diagram;if(!(b===null||b.isReadOnly||y!==""&&b.model.isReadOnly)){x.handled=!0;var z=E.fb("ButtonIcon");b.Ea("checkbox"),z.visible=!z.visible,typeof E._doClick=="function"&&E._doClick(x,E),b.eb("checkbox")}}},a}),bh("CheckBox",function(a){a=cm(a),a=El("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new Di(0,1,0,0)});var y=El(ei,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new Di(1),_buttonFillNormal:a._buttonFillNormal,_buttonStrokeNormal:a._buttonStrokeNormal,_buttonFillOver:a._buttonFillOver,_buttonStrokeOver:a._buttonStrokeOver,_buttonFillPressed:a._buttonFillPressed,_buttonStrokePressed:a._buttonStrokePressed,_buttonFillDisabled:a._buttonFillDisabled,mouseEnter:a.mouseEnter,mouseLeave:a.mouseLeave,actionDown:a.actionDown,actionUp:a.actionUp,actionCancel:a.actionCancel,actionMove:a.actionMove,click:a.click,_buttonClick:a.click});return a.mouseEnter=null,a.mouseLeave=null,a.actionDown=null,a.actionUp=null,a.actionCancel=null,a.actionMove=null,a.click=null,y}),Me.None=Hn=new dn(Me,"None",0),Me.Default=Or=new dn(Me,"Default",0),Me.Vertical=mr=new dn(Me,"Vertical",4),Me.Horizontal=$i=new dn(Me,"Horizontal",5),Me.Fill=Qn=new dn(Me,"Fill",3),Me.Uniform=Yi=new dn(Me,"Uniform",1),Me.UniformToFill=to=new dn(Me,"UniformToFill",2),Me.FlipVertical=Kr=new dn(Me,"FlipVertical",1),Me.FlipHorizontal=oo=new dn(Me,"FlipHorizontal",2),Me.FlipBoth=ko=new dn(Me,"FlipBoth",3),Me.make=El,Me.getBuilders=function(){var a=new on,y;for(y in Lf)if(y!==y.toLowerCase()){var x=Lf.I(y);typeof x=="function"&&a.add(y,x)}return a.freeze(),a},Me.defineBuilder=bh,Me.build=function(a,y,x){for(var E=[],b=2;b<arguments.length;++b)E[b-2]=arguments[b];if(b=Lf.I(a),typeof b=="function"&&(E=b([a].concat(E)),E instanceof Me))return y&&E.set(y),E;ee('GraphObject.build invoked object builder "'+a+'", but it did not return an Object')},Me.takeBuilderArgument=cm;function Tc(){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=ae,this.o=Ln,this.hg=Or,this.ob=this.Bi=1,this.Pf=Hn,this.Pc=this.Ci=this.gd=null,this.Oc="category"}Tc.prototype.copy=function(){var a=new Tc;return a.xa=this.xa,a.zp=this.zp,a.te=this.te,a.nb=this.nb,a.j=this.j,a.zh=this.zh,a.Fh=this.Fh,a.Bh=this.Bh,a.Mh=this.Mh,a.Ph=this.Ph,a.Qh=this.Qh,a.Oh=this.Oh,a.Nh=this.Nh,a.Of=this.Of,a.Xd=this.Xd,a.Lh=this.Lh,a.V=this.V,a.ia=this.ia,a.Ha=this.Ha,a.F=this.F,a.$h=this.$h,a.Ch=this.Ch,a.Hb=this.Hb,a.Di=this.Di,a.hb=this.hb,a.u=this.u.J(),a.o=this.o.J(),a.hg=this.hg,a.Bi=this.Bi,a.ob=this.ob,a.Pf=this.Pf,a.gd=this.gd,a.Ci=this.Ci,a.Pc=this.Pc,a.Oc=this.Oc,a};function ud(){this.u=-1/0,this.o=0,this.F=Zt,this.rr=ks,this.j=this.V="None"}ud.prototype.copy=function(){var a=new ud;return a.u=this.u,a.o=this.o,a.F=this.F.J(),a.rr=this.rr,a.V=this.V,a.j=this.j,a},ud.className="LinkElementSettings";function Yg(){this.yj=this.Xi=bo,this.xj=this.Wi=this.wj=this.Vi=NaN,this.Tr=this.hq=null,this.Ur=this.iq=1/0}Yg.prototype.copy=function(){var a=new Yg;return a.Xi=this.Xi.J(),a.yj=this.yj.J(),a.Vi=this.Vi,a.wj=this.wj,a.Wi=this.Wi,a.xj=this.xj,a.hq=this.hq,a.Tr=this.Tr,a.iq=this.iq,a.Ur=this.Ur,a},Yg.className="LinkSettings";function _d(){this.ha=[1,0,0,1,0,0]}_d.prototype.copy=function(){var a=new _d;return a.ha[0]=this.ha[0],a.ha[1]=this.ha[1],a.ha[2]=this.ha[2],a.ha[3]=this.ha[3],a.ha[4]=this.ha[4],a.ha[5]=this.ha[5],a},_d.prototype.translate=function(a,y){this.ha[4]+=this.ha[0]*a+this.ha[2]*y,this.ha[5]+=this.ha[1]*a+this.ha[3]*y},_d.prototype.scale=function(a,y){this.ha[0]*=a,this.ha[1]*=a,this.ha[2]*=y,this.ha[3]*=y},_d.prototype.rotate=function(a,y,x){if(360<=a?a-=360:0>a&&(a+=360),a!==0){if(this.translate(y,x),a===90){a=0;var E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));var b=this.ha[1]*a+this.ha[3]*E,z=this.ha[0]*-E+this.ha[2]*a,tt=this.ha[1]*-E+this.ha[3]*a;this.ha[0]=this.ha[0]*a+this.ha[2]*E,this.ha[1]=b,this.ha[2]=z,this.ha[3]=tt,this.translate(-y,-x)}},_d.className="STransform";function Oc(a){this.type=a,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}Oc.prototype.addColorStop=function(a,y){this.gx.push({offset:a,color:y})},Oc.className="SGradient";function Au(a,y,x){this.ownerDocument=a=y===void 0?Sn.document:y,this.cA="http://www.w3.org/2000/svg",a!==void 0&&(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 tl(this,x)}Au.prototype.resize=function(a,y,x,E){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=x+"px",this.style.height=E+"px",this.Oa.setAttributeNS(null,"width",x+"px"),this.Oa.setAttributeNS(null,"height",E+"px"),this.Oa.setAttributeNS(null,"viewBox","0 0 "+x+" "+E),this.context.ww.firstElementChild.setAttributeNS(null,"width",x+"px"),this.context.ww.firstElementChild.setAttributeNS(null,"height",E+"px"),!0):!1},Au.prototype.Ud=function(a,y,x){if(a=this.ownerDocument.createElementNS(this.cA,a),Ke(y))for(var E in y)a.setAttributeNS(E==="href"?"http://www.w3.org/1999/xlink":"",E,y[E]);return x!==void 0&&(a.textContent=x),a},Au.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Au.prototype.focus=function(){this.Oa.focus()},Au.prototype.mx=function(){this.ownerDocument=null},xe.Object.defineProperties(Au.prototype,{width:{get:function(){return this.Oa.width.baseVal.value},set:function(a){this.Oa.setAttribute("width",a+"px")}},height:{get:function(){return this.Oa.height.baseVal.value},set:function(a){this.Oa.setAttribute("height",a+"px")}},style:{get:function(){return this.Oa.style}}}),Au.className="SVGSurface";function tl(a,y){this.Gv=a,this.svg=a.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 _d,this.j=fm(this),this.Nj=fm(this,"gojs-diagram"),this.Hl=this.ti=null;var x=ao++,E=this.Ud("clipPath",{id:"mainClip"+x});E.appendChild(this.Ud("rect",{x:0,y:0,width:a.width,height:a.height})),this.ww=E,this.svg.appendChild(this.j),this.j.appendChild(this.Nj),this.svg.appendChild(E),this.j.setAttributeNS(null,"clip-path","url(#mainClip"+x+")"),this.eA={},this.isTemporary=!!y,this.filter="",this.bk=null}function $y(a,y,x,E,b,z,tt){a.Nj===void 0?Ug(a,y,x,E,b,z,tt):a.Nj.setAttribute("transform","matrix("+y+", "+x+", "+E+", "+b+", "+z+", "+tt+")")}Ct=tl.prototype,Ct.arc=function(a,y,x,E,b,z,tt,rt){var ot=2*Math.PI,st=ot-1e-6,ut=x*Math.cos(E),ft=x*Math.sin(E),vt=a+ut,xt=y+ft,Pt=z?0:1;E=z?E-b:b-E,(1e-6<Math.abs(tt-vt)||1e-6<Math.abs(rt-xt))&&this.path.push(["L",vt,+xt]),0>E&&(E=E%ot+ot),E>st?(this.path.push(["A",x,x,0,1,Pt,a-ut,y-ft]),this.path.push(["A",x,x,0,1,Pt,vt,xt])):1e-6<E&&this.path.push(["A",x,x,0,+(E>=Math.PI),Pt,a+x*Math.cos(b),y+x*Math.sin(b)])},Ct.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},Ct.Se=function(a){this.addPath(this.path,this.rb,a||0)},Ct.bezierCurveTo=function(a,y,x,E,b,z){this.path.push(["C",a,y,x,E,b,z])},Ct.clearRect=function(){},Ct.clip=function(){this.Yl.clipPath=!0},Ct.closePath=function(){this.path.push(["z"])},Ct.createLinearGradient=function(a,y,x,E){var b=new Oc("linear");return b.x1=a,b.y1=y,b.x2=x,b.y2=E,b},Ct.createPattern=function(a){var y="";a instanceof HTMLCanvasElement&&(y=a.toDataURL()),a instanceof HTMLImageElement&&(y=a.getAttribute("src"));var x=this.eA;if(x[y])return"url(#"+x[y]+")";var E="PATTERN"+ao++,b={x:0,y:0,width:a.width,height:a.height,href:y};return a=this.Ud("pattern",{width:a.width,height:a.height,id:E,patternUnits:"userSpaceOnUse"}),a.appendChild(this.Ud(Yd,b)),this.svg.appendChild(a),x[y]=E,"url(#"+E+")"},Ct.createRadialGradient=function(a,y,x,E,b,z){var tt=new Oc("radial");return tt.x1=a,tt.y1=y,tt.r1=x,tt.x2=E,tt.y2=b,tt.r2=z,tt};function t1(a,y,x,E,b,z,tt,rt,ot){E=rt/E,b=ot/b,z===0&&tt===0||a.rb.translate(z,tt),E===1&&b===1||a.rb.scale(E,b),y===0&&x===0||a.rb.translate(-y,-x)}Ct.drawImage=function(a,y,x,E,b,z,tt,rt,ot){var st="";a instanceof HTMLCanvasElement&&(st=a.toDataURL()),a instanceof HTMLImageElement&&(st=a.getAttribute("src"));var ut=a instanceof HTMLImageElement?a.naturalWidth:a.width;a=a instanceof HTMLImageElement?a.naturalHeight:a.height,E===void 0&&(z=y,tt=x,rt=E=ut,ot=b=a),E=E||0,b=b||0,rt=rt||0,ot=ot||0,t1(this,y,x,E,b,z||0,tt||0,rt,ot),z={x:0,y:0,width:ut||E,height:a||b,href:st},me.$(E,rt)&&me.$(b,ot)?st.toLowerCase().indexOf(".svg")===-1&&st.toLowerCase().indexOf("data:image/svg")===-1&&(z.preserveAspectRatio="xMidYMid slice"):z.preserveAspectRatio="none",(y!==0||x!==0||E!==ut||b!==a)&&(E+=y,b+=x,z["clip-path"]="path('M "+y+","+x+" L "+E+" "+x+" L "+E+" "+b+" L "+y+" "+b+" z')"),bf(this,Yd,z,this.rb),this.addElement(Yd,z)},Ct.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),sv(this,this.Yl)},Ct.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},Ct.fillRect=function(a,y,x,E){a=[a,y,x,E],a={x:a[0],y:a[1],width:a[2],height:a[3]},bf(this,"fill",a,this.rb),this.addElement("rect",a)},Ct.ox=function(a,y,x,E){a={x:a,y,width:x,height:E},bf(this,"fill",a,this.rb),sv(this,a),this.svg.prepend(this.Ud("rect",a))},Ct.fillText=function(a,y,x){a=[a,y,x],y=this.textAlign,y==="left"?y="start":y==="right"?y="end":y==="center"&&(y="middle"),y={x:a[1],y:a[2],style:"font: "+this.font,"text-anchor":y},bf(this,"fill",y,this.rb),this.addElement("text",y,a[0])},Ct.lineTo=function(a,y){this.path.push(["L",a,y])},Ct.moveTo=function(a,y){this.path.push(["M",a,y])},Ct.quadraticCurveTo=function(a,y,x,E){this.path.push(["Q",a,y,x,E])},Ct.rect=function(a,y,x,E){this.path.push(["M",a,y],["L",a+x,y],["L",a+x,y+E],["L",a,y+E],["z"])},Ct.restore=function(){this.rb=this.stack.pop(),this.path=this.stack.pop();var a=this.stack.pop();this.fillStyle=a.fillStyle,this.font=a.font,this.globalAlpha=a.globalAlpha,this.lineCap=a.lineCap,this.lineDashOffset=a.lineDashOffset,this.lineJoin=a.lineJoin,this.lineWidth=a.lineWidth,this.miterLimit=a.miterLimit,this.shadowBlur=a.shadowBlur,this.shadowColor=a.shadowColor,this.shadowOffsetX=a.shadowOffsetX,this.shadowOffsetY=a.shadowOffsetY,this.strokeStyle=a.strokeStyle,this.textAlign=a.textAlign,this.bk=a.bk},Ct.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 a=[],y=0;y<this.path.length;y++)a.push(this.path[y]);this.stack.push(a),this.stack.push(this.rb.copy())},Ct.setTransform=function(a,y,x,E,b,z){a===1&&y===0&&x===0&&E===1&&b===0&&z===0||Ug(this,a,y,x,E,b,z)};function e1(a){return a=a.rb.ha,"matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")"}Ct.scale=function(a,y){this.rb.scale(a,y)},Ct.translate=function(a,y){this.rb.translate(a,y)},Ct.transform=function(){},Ct.yc=function(){},Ct.stroke=function(){i1(this,this.Yl)},Ct.jk=function(){this.clipInsteadOfFill||this.stroke()},Ct.Ud=function(a,y,x){return this.Gv.Ud(a,y,x)},Ct.addElement=function(a,y,x){return a=this.Ud(a,y,x),this.yd!==null?this.yd.appendChild(a):this.yd=a,this.ad=a};function bf(a,y,x,E){y==="fill"?sv(a,x):y==="stroke"&&i1(a,x),E!==null&&(a=E.ha,x.transform="matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")")}function sv(a,y){a.fillStyle instanceof Oc?y.fill=lv(a,a.fillStyle,!0):/^rgba\(/.test(a.fillStyle)?(a=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.fillStyle),y.fill="rgb("+a[1]+","+a[2]+","+a[3]+")",y["fill-opacity"]=a[4]):y.fill=a.fillStyle}function n1(a,y,x){x=x?"fill":"stroke",a.fillStyle instanceof Oc?y.setAttributeNS(null,"fill",lv(a,a.fillStyle,!0)):/^rgba\(/.test(a.fillStyle)?(a=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.fillStyle),y.setAttributeNS(null,x,"rgb("+a[1]+","+a[2]+","+a[3]+")"),y.setAttributeNS(null,x+"-opacity",a[4])):y.setAttributeNS(null,x,a.fillStyle)}function i1(a,y){if(a.strokeStyle instanceof Oc)y.stroke=lv(a,a.strokeStyle,!1);else if(/^rgba\(/.test(a.strokeStyle)){var x=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.strokeStyle);y.stroke="rgb("+x[1]+","+x[2]+","+x[3]+")",y["stroke-opacity"]=x[4]}else y.stroke=a.strokeStyle;y["stroke-width"]=a.lineWidth,y["stroke-linecap"]=a.lineCap,y["stroke-linejoin"]=a.lineJoin,y["stroke-miterlimit"]=a.miterLimit,a.Ct&&(y["stroke-dasharray"]=a.Yg.toString(),y["stroke-dashoffset"]=a.uj)}function lv(a,y,x){var E="";if(E=a.Hl!==null?a.Hl.getAttribute(x?"fill":"stroke"):null,E!==null&&E.indexOf("GRAD")!==-1?(E=E.split("#")[1].slice(0,-1),x=a.svg.getElementById(E),x!==null&&x.remove()):E="GRAD"+ao++,y.type==="linear")x=a.Ud("linearGradient",{x1:y.x1,x2:y.x2,y1:y.y1,y2:y.y2,id:E,gradientUnits:"userSpaceOnUse"});else if(y.type==="radial")x=a.Ud("radialGradient",{x1:y.x1,x2:y.x2,y1:y.y1,y2:y.y2,r1:y.r1,r2:y.r2,id:E});else throw Error("invalid gradient");var b=y.gx;y=b.length;for(var z=[],tt=0;tt<y;tt++){var rt=b[tt],ot=rt.color;rt={offset:rt.offset,"stop-color":ot},/^rgba\(/.test(ot)&&(ot=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(ot),rt["stop-color"]="rgb("+ot[1]+","+ot[2]+","+ot[3]+")",rt["stop-opacity"]=ot[4]),z.push(rt)}for(z.sort(function(st,ut){return st.offset>ut.offset?1:-1}),b=0;b<y;b++)x.appendChild(a.Ud("stop",z[b]));return a.svg.appendChild(x),"url(#"+E+")"}Ct.addPath=function(a,y,x){for(var E=[],b=0;b<a.length;b++){var z=ai(a[b]),tt=[z.shift()];if(tt[0]==="A")tt.push(z.shift()+","+z.shift(),z.shift(),z.shift()+","+z.shift(),z.shift()+","+z.shift());else for(;z.length;)tt.push(z.shift()+","+z.shift());E.push(tt.join(" "))}if(E=E.join(" "),a=this.Yl,a.clipPath)0<this.nh.length&&this.nh[this.nh.length-1].setAttributeNS(null,"clip-path",'path("'+E+'")');else if(a.d=E,bf(this,"",a,y),this.Hl!==null)if(y=this.Hl,y.nodeName!=="g")for(var rt in a)rt!=="transform"&&y.setAttributeNS(null,rt,a[rt]);else{rt=y.getElementsByTagName("path");for(var ot in a)ot!=="transform"&&rt[x].setAttributeNS(null,ot,a[ot])}else this.addElement("path",a)};function Ug(a,y,x,E,b,z,tt){var rt=new _d;rt.ha=[y,x,E,b,z,tt],y={},bf(a,"g",y,rt),rt=a.addElement("g",y),a.nh.push(rt)}function fm(a,y){var x={};return y&&(x.class=y),y=a.addElement("g",x),a.nh.push(y),y}Ct.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x};function zu(a){a.Il=!1,a.shadowOffsetX=0,a.shadowOffsetY=0,a.shadowBlur=0}function ih(a){a.Il=!0,a.shadowOffsetX=a.Ar,a.shadowOffsetY=a.Br,a.shadowBlur=a.Vg}Ct.js=function(a,y){this.Ct=!0,this.Yg=a,this.uj=y},Ct.fs=function(){this.Ct=!1},Ct.Vc=function(){},Ct.Wx=function(){},tl.prototype.rotate=function(a){this.rb.rotate(57.2958*a,0,0)},tl.prototype.getImageData=function(){return null},tl.prototype.measureText=function(){return null};function gm(a,y){y=y.getAttribute("fill"),y!==null&&(y=y.split("#"),y.length!==1&&(y=a.svg.getElementById(y[1].slice(0,-1)),y!==null&&a.svg.innerHTML.match(new RegExp(y.id,"g")).length===1&&y.remove()))}tl.prototype.Hs=function(a){a.svg!==null&&a.svg.parentNode===this.Nj&&a.svg.remove()},tl.className="SVGContext",Qe.prototype.Cs=function(a){this.pj.contains("SVG")||this.bs("SVG",new Au(this,Sn.document));var y=new Au(this,Sn.document,!0);a===void 0&&(a=new Qi);var x=this;return Mc(this,function(E,b){return E=lm(x,E,"SVG",y),E=E!==null?E.svg:null,typeof b=="function"?(b(E),null):E},a)},Qe.prototype.makeSvg=Qe.prototype.Cs,Qe.prototype.av=function(a){return this.Cs(a)},Qe.prototype.makeSVG=Qe.prototype.av;function zl(a,y,x,E){this.ownerDocument=y=y===void 0?Sn.document:y,this.hs=null,y=y.createElement("canvas"),y.tabIndex=0,this.Oa=y,this.context=new Jd(y,x,E),y.H=a}zl.prototype.resize=function(a,y,x,E){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=x+"px",this.style.height=E+"px",!0):!1},zl.prototype.toDataURL=function(a,y){return this.Oa.toDataURL(a,y)},zl.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},zl.prototype.focus=function(){this.Oa.focus()},zl.prototype.mx=function(){this.ownerDocument=this.Oa.H=null},xe.Object.defineProperties(zl.prototype,{width:{get:function(){return this.Oa.width},set:function(a){this.Oa.width=a}},height:{get:function(){return this.Oa.height},set:function(a){this.Oa.height=a}},style:{get:function(){return this.Oa.style}}}),zl.className="CanvasSurface";function Jd(a,y,x){this.Z=a.getContext?a.getContext("2d",y):null,this.Z===null&&ee("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 Ei,this.isTemporary=!!x}Ct=Jd.prototype,Ct.Wx=function(a){this.Z.imageSmoothingEnabled=a},Ct.arc=function(a,y,x,E,b,z){this.Z.arc(a,y,x,E,b,z)},Ct.beginPath=function(){this.Z.beginPath()},Ct.Se=function(){},Ct.bezierCurveTo=function(a,y,x,E,b,z){this.Z.bezierCurveTo(a,y,x,E,b,z)},Ct.clearRect=function(a,y,x,E){this.yc(),this.Z.clearRect(a,y,x,E)},Ct.clip=function(){this.Z.clip()},Ct.closePath=function(){this.Z.closePath()},Ct.createLinearGradient=function(a,y,x,E){return this.Z.createLinearGradient(a,y,x,E)},Ct.createPattern=function(a,y){return this.Z.createPattern(a,y)},Ct.createRadialGradient=function(a,y,x,E,b,z){return this.Z.createRadialGradient(a,y,x,E,b,z)},Ct.drawImage=function(a,y,x,E,b,z,tt,rt,ot){E===void 0?this.Z.drawImage(a,y,x):this.Z.drawImage(a,y,x,E,b,z,tt,rt,ot)},Ct.fill=function(a){this.Z.fill(a?"evenodd":"nonzero")},Ct.fillRect=function(a,y,x,E){this.Z.fillRect(a,y,x,E)},Ct.ox=function(a,y,x,E){this.Z.fillRect(a,y,x,E)},Ct.fillText=function(a,y,x){this.Z.fillText(a,y,x)},Ct.getImageData=function(a,y,x,E){return this.Z.getImageData(a,y,x,E)},Ct.lineTo=function(a,y){this.Z.lineTo(a,y)},Ct.measureText=function(a){return this.Z.measureText(a)},Ct.moveTo=function(a,y){this.Z.moveTo(a,y)},Ct.quadraticCurveTo=function(a,y,x,E){this.Z.quadraticCurveTo(a,y,x,E)},Ct.rect=function(a,y,x,E){this.Z.rect(a,y,x,E)},Ct.restore=function(){this.Z.restore()},Ct.save=function(){this.yc(),this.Z.save()},Jd.prototype.rotate=function(a){this.El.rotate(57.2958*a,0,0)},Ct=Jd.prototype,Ct.setTransform=function(a,y,x,E,b,z){this.El.setTransform(a,y,x,E,b,z)},Ct.scale=function(a,y){this.El.scale(a,y)},Ct.translate=function(a,y){this.El.translate(a,y)},Ct.stroke=function(){this.Z.stroke()},Ct.transform=function(a,y,x,E,b,z){if(a!==1||y!==0||x!==0||E!==1||b!==0||z!==0){var tt=this.El,rt=tt.m11*a+tt.m21*y;a=tt.m12*a+tt.m22*y,y=tt.m11*x+tt.m21*E,x=tt.m12*x+tt.m22*E,tt.dx=tt.m11*b+tt.m21*z+tt.dx,tt.dy=tt.m12*b+tt.m22*z+tt.dy,tt.m11=rt,tt.m12=a,tt.m21=y,tt.m22=x}},Ct.yc=function(){var a=this.El;this.Z.setTransform(a.m11,a.m12,a.m21,a.m22,a.dx,a.dy)},Ct.ng=function(a,y){if(a instanceof wo&&a.type===Al){var x=a.yk;a=a.ft,a>x?(this.scale(x/a,1),this.translate((a-x)/2,0)):x>a&&(this.scale(1,a/x),this.translate(0,(x-a)/2)),this.Hm?this.clip():this.fill(y),a>x?(this.translate(-(a-x)/2,0),this.scale(1/(x/a),1)):x>a&&(this.translate(0,-(x-a)/2),this.scale(1,1/(a/x)))}else this.Hm?this.clip():this.fill(y)},Ct.jk=function(){this.Hm||this.stroke()},Ct.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},Ct.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},Ct.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(Ax),a.lineDashOffset=0)},Ct.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},Ct.Hs=function(){},xe.Object.defineProperties(Jd.prototype,{fillStyle:{get:function(){return this.Z.fillStyle},set:function(a){this.ct!==a&&(this.ct=this.Z.fillStyle=a)}},font:{get:function(){return this.Z.font},set:function(a){this.dt!==a&&(this.dt=this.Z.font=a)}},globalAlpha:{get:function(){return this.Z.globalAlpha},set:function(a){this.Z.globalAlpha=a}},lineCap:{get:function(){return this.Z.lineCap},set:function(a){this.Z.lineCap=a}},lineDashOffset:{get:function(){return this.Z.lineDashOffset},set:function(a){this.Z.lineDashOffset=a}},lineJoin:{get:function(){return this.Z.lineJoin},set:function(a){this.Z.lineJoin=a}},lineWidth:{get:function(){return this.Z.lineWidth},set:function(a){this.Z.lineWidth=a}},miterLimit:{get:function(){return this.Z.miterLimit},set:function(a){this.Z.miterLimit=a}},shadowBlur:{get:function(){return this.Z.shadowBlur},set:function(a){this.Z.shadowBlur=a}},shadowColor:{get:function(){return this.Z.shadowColor},set:function(a){this.Z.shadowColor=a}},shadowOffsetX:{get:function(){return this.Z.shadowOffsetX},set:function(a){this.Z.shadowOffsetX=a}},shadowOffsetY:{get:function(){return this.Z.shadowOffsetY},set:function(a){this.Z.shadowOffsetY=a}},strokeStyle:{get:function(){return this.Z.strokeStyle},set:function(a){this.et!==a&&(this.et=this.Z.strokeStyle=a)}},textAlign:{get:function(){return this.Z.textAlign},set:function(a){this.Z.textAlign=a}},imageSmoothingEnabled:{get:function(){return this.Z.imageSmoothingEnabled},set:function(a){this.Z.imageSmoothingEnabled=a}},filter:{get:function(){return this.Z.filter},set:function(a){this.Z.filter=a===""?"none":a}},clipInsteadOfFill:{get:function(){return this.Hm},set:function(a){this.Hm=a}}});var Ax=Object.freeze([]);Jd.className="CanvasSurfaceContext";function Xg(){this.F=this.o=this.u=this.j=0}Xg.className="ColorNumbers";function wo(a,y){Df||(gv(),Df=!0),wi(this),this._isFrozen=!1,a===void 0?(this.na=Mh,this.xk="black"):typeof a=="string"?(this.na=Mh,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===oh?(this.Qd=Dr,this.Lk=Jr):this.Lk=a===Al?this.Qd=Ri:this.Qd=_i,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}wo.prototype.copy=function(){var a=new wo;return a.na=this.na,a.xk=this.xk,a.Qd=this.Qd.J(),a.Lk=this.Lk.J(),a.Gr=this.Gr,a.Xp=this.Xp,this.we!==null&&(a.we=this.we.copy()),a.cr=this.cr,a},Ct=wo.prototype,Ct.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},Ct.ka=function(){return Object.isFrozen(this)&&ee("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},Ct.qb=function(a){a.classType===wo&&(this.type=a)},Ct.toString=function(){var a="Brush(";if(this.type===Mh)a+=this.color;else if(a=this.type===oh?a+"Linear ":this.type===Al?a+"Radial ":this.type===Nf?a+"Pattern ":a+"(unknown) ",a+=this.start+" "+this.end,this.colorStops!==null)for(var y=this.colorStops.iterator;y.next();)a+=" "+y.key+":"+y.value;return a+")"},Ct.addColorStop=function(a,y){return this._isFrozen&&nn(this),(typeof a!="number"||!isFinite(a)||1<a||0>a)&&Vn(a,"0 <= loc <= 1",wo,"addColorStop:loc"),this.we===null&&(this.we=new on),this.we.add(a,y),this.na===Mh&&(this.type=oh),this.xe=null,this},Ct.Vz=function(a,y){if(this._isFrozen&&nn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Bf:y,this.type===Mh)rh(this.color),this.color=kf(a,y);else if((this.type===oh||this.type===Al)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)rh(x.value),this.addColorStop(x.key,kf(a,y));return this};function r1(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?Bf:x,rh(a),kf(y,x)}Ct.Wy=function(a,y){if(this._isFrozen&&nn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Bf:y,this.type===Mh)rh(this.color),this.color=kf(-a,y);else if((this.type===oh||this.type===Al)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)rh(x.value),this.addColorStop(x.key,kf(-a,y));return this};function o1(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?Bf:x,rh(a),kf(-y,x)}function uv(a,y,x){rh(a),a=Zo.j;var E=Zo.u,b=Zo.o,z=Zo.F;return rh(y),x===void 0&&(x=.5),"rgba("+Math.round((Zo.j-a)*x+a)+", "+Math.round((Zo.u-E)*x+E)+", "+Math.round((Zo.o-b)*x+b)+", "+Math.round((Zo.F-z)*x+z)+")"}Ct.Gx=function(){if(this.type===Mh)return Mf(this.color);if((this.type===oh||this.type===Al)&&this.colorStops!==null){var a=this.colorStops;if(this.type===Al)return Mf(a.first().value);if(a.get(.5)!==null)return Mf(a.get(.5));if(a.count===2)return a=a.Fa(),Mf(uv(a[0].value,a[1].value));for(var y=a.iterator,x=-1,E=-1,b=1,z=1;y.next();){var tt=y.key,rt=Math.abs(.5-y.key);b>z&&rt<b?(x=tt,b=rt):z>=b&&rt<z&&(E=tt,z=rt)}return x>E&&(z=x,x=E,E=z,z=b),b=E-x,Mf(uv(a.get(x),a.get(E),1-z/b))}return!1};function Mf(a){return a?a instanceof wo?a.Gx():(rh(a),128>(299*Zo.j+587*Zo.u+114*Zo.o)/1e3):!1}function kf(a,y){switch(y){case Bf:y=100*dv(Zo.j);var x=100*dv(Zo.u),E=100*dv(Zo.o);return bs.j=.4124564*y+.3575761*x+.1804375*E,bs.u=.2126729*y+.7151522*x+.072175*E,bs.o=.0193339*y+.119192*x+.9503041*E,bs.F=Zo.F,y=fv(bs.j/Ff[0]),x=fv(bs.u/Ff[1]),E=fv(bs.o/Ff[2]),ju.j=116*x-16,ju.u=500*(y-x),ju.o=200*(x-E),ju.F=bs.F,ju.j=Math.min(100,Math.max(0,ju.j+100*a)),a=(ju.j+16)/116,y=a-ju.o/200,bs.j=Ff[0]*a1(ju.u/500+a),bs.u=Ff[1]*(ju.j>pm*pv?Math.pow(a,3):ju.j/pm),bs.o=Ff[2]*a1(y),bs.F=ju.F,a=-.969266*bs.j+1.8760108*bs.u+.041556*bs.o,y=.0556434*bs.j+-.2040259*bs.u+1.0572252*bs.o,Zo.j=255*cv((3.2404542*bs.j+-1.5371385*bs.u+-.4985314*bs.o)/100),Zo.u=255*cv(a/100),Zo.o=255*cv(y/100),Zo.F=bs.F,Zo.j=Math.round(Zo.j),255<Zo.j?Zo.j=255:0>Zo.j&&(Zo.j=0),Zo.u=Math.round(Zo.u),255<Zo.u?Zo.u=255:0>Zo.u&&(Zo.u=0),Zo.o=Math.round(Zo.o),255<Zo.o?Zo.o=255:0>Zo.o&&(Zo.o=0),"rgba("+Zo.j+", "+Zo.u+", "+Zo.o+", "+Zo.F+")";case s1:return hv(),dl.o=Math.min(100,Math.max(0,dl.o+100*a)),"hsla("+dl.j+", "+dl.u+"%, "+dl.o+"%, "+dl.F+")";default:ee("Unknown color space: "+y)}}function rh(a){Df||(gv(),Df=!0);var y=mv;if(y!==null){y.clearRect(0,0,1,1),y.fillStyle="#000000";var x=y.fillStyle;y.fillStyle=a,y.fillStyle!==x?(y.fillRect(0,0,1,1),a=y.getImageData(0,0,1,1).data,Zo.j=a[0],Zo.u=a[1],Zo.o=a[2],Zo.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,Zo.j=0,Zo.u=0,Zo.o=0,Zo.F=1)}}function hv(){var a=Zo.j/255,y=Zo.u/255,x=Zo.o/255,E=Math.max(a,y,x),b=Math.min(a,y,x),z=E-b;if(b=(E+b)/2,z===0)var tt=a=0;else{switch(E){case a:tt=(y-x)/z%6;break;case y:tt=(x-a)/z+2;break;case x:tt=(a-y)/z+4}tt*=60,0>tt&&(tt+=360),a=z/(1-Math.abs(2*b-1))}dl.j=Math.round(tt),dl.u=Math.round(100*a),dl.o=Math.round(100*b),dl.F=Zo.F}function dv(a){return a/=255,.04045>=a?a/12.92:Math.pow((a+.055)/1.055,2.4)}function cv(a){return .0031308>=a?12.92*a:1.055*Math.pow(a,1/2.4)-.055}function fv(a){return a>pv?Math.pow(a,1/3):(pm*a+16)/116}function a1(a){var y=a*a*a;return y>pv?y:(116*a-16)/pm}function Ic(a,y){typeof a!="string"&&(a instanceof wo||ee("Value for "+y+" must be a color string or a Brush, not "+a))}function gv(){mv=da?new zl(null,void 0,{willReadFrequently:!0}).context:null}xe.Object.defineProperties(wo.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&nn(this,a),this.na=a,this.start.Mc()&&(a===oh?this.start=Dr:a===Al&&(this.start=Ri)),this.end.Mc()&&(a===oh?this.end=Jr:a===Al&&(this.end=Ri)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&nn(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&nn(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&nn(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&nn(this,a),0>a&&Vn(a,">= zero",wo,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&nn(this,a),0>a&&Vn(a,">= zero",wo,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&nn(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&nn(this,a),this.cr=a,this.xe=null}}}),wo.prototype.isDark=wo.prototype.Gx,wo.prototype.darkenBy=wo.prototype.Wy,wo.prototype.lightenBy=wo.prototype.Vz,wo.prototype.addColorStop=wo.prototype.addColorStop;var pv=216/24389,pm=24389/27,Ff=[95.047,100,108.883],mv=null,Zo=new Xg,dl=new Xg,bs=new Xg,ju=new Xg,Df=!1;wo.className="Brush";var Mh;wo.Solid=Mh=new dn(wo,"Solid",0);var oh;wo.Linear=oh=new dn(wo,"Linear",1);var Al;wo.Radial=Al=new dn(wo,"Radial",2);var Nf;wo.Pattern=Nf=new dn(wo,"Pattern",4);var Bf;wo.Lab=Bf=new dn(wo,"Lab",5);var s1;wo.HSL=s1=new dn(wo,"HSL",6),wo.randomColor=function(a,y){a===void 0&&(a=128),y===void 0&&(y=Math.max(a,255));var x=Math.abs(y-a);y=Math.floor(a+Math.random()*x).toString(16);var E=Math.floor(a+Math.random()*x).toString(16);return a=Math.floor(a+Math.random()*x).toString(16),2>y.length&&(y="0"+y),2>E.length&&(E="0"+E),2>a.length&&(a="0"+a),"#"+y+E+a},wo.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;Df||(gv(),Df=!0);var y=mv;if(y===null)return!0;y.fillStyle="#000000";var x=y.fillStyle;return y.fillStyle=a,y.fillStyle!==x?!0:(y.fillStyle="#FFFFFF",x=y.fillStyle,y.fillStyle=a,y.fillStyle!==x)},wo.lighten=function(a){return r1(a)},wo.lightenBy=r1,wo.darken=function(a){return o1(a)},wo.darkenBy=o1,wo.mix=uv,wo.isDark=Mf;function Oa(){this.xa="Base"}Oa.prototype.measure=function(){},Oa.prototype.Yz=function(a,y,x,E,b){a.measure(y,x,E,b)},Oa.prototype.arrange=function(){},Oa.prototype.Ly=function(a,y,x,E,b,z){a.arrange(y,x,E,b,z)},Oa.prototype.iA=function(a){a.Uj()},Oa.prototype.gc=function(){},xe.Object.defineProperties(Oa.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return ei}}}),Oa.prototype.remeasureObject=Oa.prototype.iA,Oa.prototype.arrangeElement=Oa.prototype.Ly,Oa.prototype.measureElement=Oa.prototype.Yz,Oa.className="PanelLayout";function mm(){this.xa="Base"}ye(mm,Oa),mm.prototype.measure=function(a,y,x,E,b,z,tt){var rt=E.length;a=ah(a);for(var ot=0;ot<rt;ot++){var st=E[ot];if(st.visible||st===a){var ut=st.margin,ft=ut.right+ut.left;ut=ut.top+ut.bottom,st.measure(y,x,z,tt);var vt=st.measuredBounds;ft=Math.max(vt.width+ft,0),ut=Math.max(vt.height+ut,0),vt=st.position.x;var xt=st.position.y;isFinite(vt)||(vt=0),isFinite(xt)||(xt=0),st instanceof Wr&&st.isGeometryPositioned&&(st=st.strokeWidth/2,vt-=st,xt-=st),Ii(b,vt,xt,ft,ut)}}},mm.prototype.arrange=function(a,y,x){var E=y.length,b=a.padding;for(a=x.x-b.left,x=x.y-b.top,b=0;b<E;b++){var z=y[b],tt=z.measuredBounds,rt=z.margin,ot=z.position.x,st=z.position.y;if(ot=isNaN(ot)?-a:ot-a,st=isNaN(st)?-x:st-x,z instanceof Wr&&z.isGeometryPositioned){var ut=z.strokeWidth/2;ot-=ut,st-=ut}z.visible&&z.arrange(ot+rt.left,st+rt.top,tt.width,tt.height)}};function vm(){this.xa="Base"}ye(vm,Oa),vm.prototype.measure=function(a,y,x,E,b,z,tt){var rt=E.length;y=xi(),z=ah(a);for(var ot=0;ot<rt;ot++){var st=E[ot];if(st.visible||st===z){var ut=zs(st,!1);if(ut!==Hn&&ut!==$i)y.push(st);else{st.measure(1/0,x,0,tt),ut=st.margin,st=st.measuredBounds;var ft=Math.max(st.height+ut.top+ut.bottom,0);b.width+=Math.max(st.width+ut.right+ut.left,0),b.height=Math.max(b.height,ft)}}}for(E=y.length,a.desiredSize.height?x=Math.min(a.desiredSize.height,a.maxSize.height):b.height!==0&&(x=Math.min(b.height,a.maxSize.height)),a=0;a<E;a++)ot=y[a],(ot.visible||ot===z)&&(ut=ot.margin,rt=ut.right+ut.left,ut=ut.top+ut.bottom,ot.measure(1/0,x,0,tt),ot=ot.measuredBounds,ut=Math.max(ot.height+ut,0),b.width+=Math.max(ot.width+rt,0),b.height=Math.max(b.height,ut));gi(y)},vm.prototype.arrange=function(a,y,x){for(var E=y.length,b=a.padding,z=b.top,tt=a.isOpposite,rt=tt?x.width:b.left,ot=0;ot<E;ot++){var st=z,ut=y[ot];if(ut.visible){var ft=ut.measuredBounds,vt=ut.margin,xt=vt.top+vt.bottom,Pt=z+b.bottom,Ft=ft.height,Xt=zs(ut,!1);(isNaN(ut.desiredSize.height)&&Xt===Qn||Xt===mr)&&(Ft=Math.max(x.height-xt-Pt,0)),xt=Ft+xt+Pt,Pt=ut.alignment,Pt.Xb()&&(Pt=a.defaultAlignment),Pt.sb()||(Pt=Ri),tt&&(rt-=ft.width+vt.left+vt.right),ut.arrange(rt+Pt.offsetX+vt.left,st+Pt.offsetY+vt.top+(x.height*Pt.y-xt*Pt.y),ft.width,Ft),tt||(rt+=ft.width+vt.left+vt.right)}}};function ym(){this.xa="Base"}ye(ym,Oa),ym.prototype.measure=function(a,y,x,E,b,z){var tt=E.length;x=xi();for(var rt=ah(a),ot=0;ot<tt;ot++){var st=E[ot];if(st.visible||st===rt){var ut=zs(st,!1);if(ut!==Hn&&ut!==mr)x.push(st);else{var ft=st.margin;ut=ft.right+ft.left,ft=ft.top+ft.bottom,st.measure(y,1/0,z,0),st=st.measuredBounds,Un(b,Math.max(b.width,Math.max(st.width+ut,0)),b.height+Math.max(st.height+ft,0))}}}if(E=x.length,E!==0){for(a.desiredSize.width?y=Math.min(a.desiredSize.width,a.maxSize.width):b.width!==0&&(y=Math.min(b.width,a.maxSize.width)),a=0;a<E;a++)ot=x[a],(ot.visible||ot===rt)&&(st=ot.margin,tt=st.right+st.left,st=st.top+st.bottom,ot.measure(y,1/0,z,0),ot=ot.measuredBounds,st=Math.max(ot.height+st,0),b.width=Math.max(b.width,Math.max(ot.width+tt,0)),b.height+=st);gi(x)}},ym.prototype.arrange=function(a,y,x){for(var E=y.length,b=a.padding,z=b.left,tt=a.isOpposite,rt=tt?x.height:b.top,ot=0;ot<E;ot++){var st=z,ut=y[ot];if(ut.visible){var ft=ut.measuredBounds,vt=ut.margin,xt=vt.left+vt.right,Pt=z+b.right,Ft=ft.width,Xt=zs(ut,!1);(isNaN(ut.desiredSize.width)&&Xt===Qn||Xt===$i)&&(Ft=Math.max(x.width-xt-Pt,0)),xt=Ft+xt+Pt,Pt=ut.alignment,Pt.Xb()&&(Pt=a.defaultAlignment),Pt.sb()||(Pt=Ri),tt&&(rt-=ft.height+vt.bottom+vt.top),ut.arrange(st+Pt.offsetX+vt.left+(x.width*Pt.x-xt*Pt.x),rt+Pt.offsetY+vt.top,Ft,ft.height),tt||(rt+=ft.height+vt.bottom+vt.top)}}};function Sm(){this.xa="Base"}ye(Sm,Oa),Sm.prototype.measure=function(a,y,x,E,b,z,tt){var rt=E.length,ot=a.Pb(),st=ot.margin,ut=st.right+st.left,ft=st.top+st.bottom;ot.measure(y,x,z,tt);var vt=ot.measuredBounds;z=vt.width,tt=vt.height;var xt=Math.max(z+ut,0),Pt=Math.max(tt+ft,0),Ft=a.isClipping,Xt=ue.allocAt(-st.left,-st.top,xt,Pt),Wt=ue.allocAt(0,0,z,tt);vv(ot,Wt,!0),z=Wt.width,tt=Wt.height;for(var oe=!0,le=ah(a),ce=0;ce<rt;ce++){var Ae=E[ce];vt=y;var Je=x;if(Ae!==ot&&(Ae.visible||Ae===le)){st=Ae.margin;var Ci=st.left,Wi=st.top;switch(xt=st.right+st.left,Pt=st.top+st.bottom,st=zs(Ae,!1),st){case Qn:vt=z,Je=tt,Wi=Ci=Pt=xt=0;break;case $i:vt=z,Ci=xt=0;break;case mr:Je=tt,Wi=Pt=0}Ae.measure(vt,Je,0,0),vt=Ae.measuredBounds,xt=Math.max(vt.width+xt,0),Pt=Math.max(vt.height+Pt,0),st=Ae.alignment,st.Xb()&&(st=a.defaultAlignment),st.sb()||(st=Ri);var Ni=Ae.alignmentFocus;if(Ni.Xb()&&(Ni=Ri),Je=null,Ae instanceof ei&&Ae.$e!==""&&(Je=Ae.fb(Ae.$e),Je===Ae&&(Je=null)),Ci=Wt.x-Ci,Wi=Wt.y-Wi,Je!==null){for(Ae.arrange(0,0,vt.width,vt.height),vt=Je.actualBounds,vt=Bt.allocAt(vt.x+(Ni.x*vt.width-Ni.offsetX),vt.y+(Ni.y*vt.height-Ni.offsetY)),Je=Je.panel;Je!==Ae;)Je.transform.Ga(vt),Je=Je.panel;Ci+=st.x*z+st.offsetX-vt.x,Wi+=st.y*tt+st.offsetY-vt.y,Bt.free(vt)}else Ci+=st.x*z+st.offsetX-(Ni.x*vt.width+Ni.offsetX),Wi+=st.y*tt+st.offsetY-(Ni.y*vt.height+Ni.offsetY);oe?(oe=!1,b.h(Ci,Wi,xt,Pt)):Ii(b,Ci,Wi,xt,Pt)}}switch(oe?b.assign(Xt):Ft?b.Uu(Wt.x,Wt.y,Wt.width,Wt.height):Ii(b,Xt.x,Xt.y,Xt.width,Xt.height),ue.free(Xt),ue.free(Wt),st=ot.stretch,st===Or&&(st=zs(ot,!1)),st){case Hn:return;case Qn:if(!isFinite(y)&&!isFinite(x))return;break;case $i:if(!isFinite(y))return;break;case mr:if(!isFinite(x))return}for(vt=ot.measuredBounds,z=vt.width,tt=vt.height,xt=Math.max(z+ut,0),Pt=Math.max(tt+ft,0),st=ot.margin,Wt=ue.allocAt(-st.left,-st.top,xt,Pt),vv(ot,Wt,!0),z=Wt.width,tt=Wt.height,y=0;y<rt;y++)x=E[y],x===ot||!x.visible&&x!==le||(st=x.margin,xt=st.right+st.left,Pt=st.top+st.bottom,vt=x.measuredBounds,xt=Math.max(vt.width+xt,0),Pt=Math.max(vt.height+Pt,0),ut=x.alignment,ut.Xb()&&(ut=a.defaultAlignment),ut.sb()||(ut=Ri),x=x.alignmentFocus,x.Xb()&&(x=Ri),oe?(oe=!1,b.h(ut.x*z+ut.offsetX-(x.x*vt.width+x.offsetX)-st.left,ut.y*tt+ut.offsetY-(x.y*vt.height+x.offsetY)-st.top,xt,Pt)):Ii(b,ut.x*z+ut.offsetX-(x.x*vt.width+x.offsetX)-st.left,ut.y*tt+ut.offsetY-(x.y*vt.height+x.offsetY)-st.top,xt,Pt));oe?b.assign(Xt):Ft?b.Uu(Wt.x,Wt.y,Wt.width,Wt.height):Ii(b,Xt.x,Xt.y,Xt.width,Xt.height),ue.free(Wt)},Sm.prototype.arrange=function(a,y,x){var E=y.length,b=a.Pb(),z=b.measuredBounds,tt=z.width,rt=z.height,ot=a.padding;z=ot.left,ot=ot.top;var st=z-x.x,ut=ot-x.y;for(b.arrange(st,ut,tt,rt),tt=ue.allocAt(0,0,tt,rt),vv(b,tt,!1),rt=0;rt<E;rt++){var ft=y[rt];if(ft!==b){st=ft.measuredBounds;var vt=st.width,xt=st.height;ut=ft.alignment,ut.Xb()&&(ut=a.defaultAlignment),ut.sb()||(ut=Ri);var Pt=ft.alignmentFocus;if(Pt.Xb()&&(Pt=Ri),st=null,ft instanceof ei&&ft.$e!==""&&(st=ft.fb(ft.$e),st===ft&&(st=null)),st!==null){var Ft=st.actualBounds;for(Pt=Bt.allocAt(Ft.x+(Pt.x*Ft.width-Pt.offsetX),Ft.y+(Pt.y*Ft.height-Pt.offsetY)),st=st.panel;st!==ft;)st.transform.Ga(Pt),st=st.panel;st=ut.x*tt.width+ut.offsetX-Pt.x,ut=ut.y*tt.height+ut.offsetY-Pt.y,Bt.free(Pt)}else st=ut.x*tt.width+ut.offsetX-(Pt.x*vt+Pt.offsetX),ut=ut.y*tt.height+ut.offsetY-(Pt.y*xt+Pt.offsetY);st+=tt.x-x.x,ut+=tt.y-x.y,ft.visible&&ft.arrange(z+st,ot+ut,vt,xt)}}ue.free(tt)};function vv(a,y,x){var E=null;if(a instanceof ei&&a.$e!==""&&(E=a.fb(a.$e),E===a&&(E=null)),E!==null)for(x&&a.arrange(0,0,y.width,y.height),y.assign(E.actualBounds),E=E.panel;E!==a;)E.transform.pp(y),E=E.panel}function xm(){this.xa="Base"}ye(xm,Oa),xm.prototype.measure=function(a,y,x,E,b,z,tt){var rt=E.length,ot=a.Pb(),st=ot.margin,ut=y,ft=x,vt=st.right+st.left,xt=st.top+st.bottom;ot.measure(y,x,z,tt),st=ot.measuredBounds;var Pt=0,Ft=null;ot instanceof Wr&&(Ft=ot,Pt=Ft.strokeWidth*Ft.scale);var Xt=Math.max(st.width+vt,0);st=Math.max(st.height+xt,0);var Wt=wv(ot),oe=Wt.x*Xt+Wt.offsetX;Wt=Wt.y*st+Wt.offsetY;var le=Pv(ot),ce=le.x*Xt+le.offsetX;for(le=le.y*st+le.offsetY,isFinite(y)&&(ut=Math.max(Math.abs(oe-ce)-Pt,0)),isFinite(x)&&(ft=Math.max(Math.abs(Wt-le)-Pt,0)),Pt=zt.alloc(),Pt.h(0,0),a=ah(a),le=0;le<rt;le++)Wt=E[le],Wt===ot||!Wt.visible&&Wt!==a||(st=Wt.margin,Xt=st.right+st.left,oe=st.top+st.bottom,Wt.measure(ut,ft,0,0),st=Wt.measuredBounds,Xt=Math.max(st.width+Xt,0),st=Math.max(st.height+oe,0),Pt.h(Math.max(Xt,Pt.width),Math.max(st,Pt.height)));if(rt===1)b.width=Xt,b.height=st,zt.free(Pt);else{switch(Wt=wv(ot),le=Pv(ot),rt=E=0,le.x!==Wt.x&&le.y!==Wt.y&&(E=Pt.width/Math.abs(le.x-Wt.x),rt=Pt.height/Math.abs(le.y-Wt.y)),zt.free(Pt),Pt=0,Ft!==null&&(Pt=Ft.strokeWidth*Ft.scale,Mv(Ft)===Yi&&(E=rt=Math.max(E,rt))),E+=Math.abs(Wt.offsetX)+Math.abs(le.offsetX)+Pt,rt+=Math.abs(Wt.offsetY)+Math.abs(le.offsetY)+Pt,Ft=ot.stretch,Ft===Or&&(Ft=zs(ot,!1)),Ft){case Hn:tt=z=0;break;case Qn:isFinite(y)&&(E=y),isFinite(x)&&(rt=x);break;case $i:isFinite(y)&&(E=y),tt=0;break;case mr:z=0,isFinite(x)&&(rt=x)}ot.Uj(),ot.measure(E,rt,z,tt),b.width=ot.measuredBounds.width+vt,b.height=ot.measuredBounds.height+xt}},xm.prototype.arrange=function(a,y){var x=y.length,E=a.Pb(),b=E.measuredBounds,z=ue.alloc();z.h(0,0,1,1);var tt=E.margin,rt=tt.left;tt=tt.top;var ot=a.padding,st=ot.left;ot=ot.top,E.arrange(st+rt,ot+tt,b.width,b.height);var ut=wv(E),ft=Pv(E),vt=ut.y*b.height+ut.offsetY,xt=ft.x*b.width+ft.offsetX;for(ft=ft.y*b.height+ft.offsetY,z.x=ut.x*b.width+ut.offsetX,z.y=vt,Ii(z,xt,ft,0,0),z.x+=rt+st,z.y+=tt+ot,b=0;b<x;b++)rt=y[b],rt!==E&&(st=rt.measuredBounds,tt=rt.margin,ot=Math.max(st.width+tt.right+tt.left,0),ut=Math.max(st.height+tt.top+tt.bottom,0),vt=rt.alignment,vt.Xb()&&(vt=a.defaultAlignment),vt.sb()||(vt=Ri),ot=z.width*vt.x+vt.offsetX-ot*vt.x+tt.left+z.x,tt=z.height*vt.y+vt.offsetY-ut*vt.y+tt.top+z.y,rt.visible&&(Bi(z.x,z.y,z.width,z.height,ot,tt,st.width,st.height)?rt.arrange(ot,tt,st.width,st.height):rt.arrange(ot,tt,st.width,st.height,new ue(z.x,z.y,z.width,z.height))));ue.free(z)};function wm(){this.xa="Base",this.name="Table"}ye(wm,Oa),wm.prototype.measure=function(a,y,x,E,b){for(var z=E.length,tt=xi(),rt=xi(),ot=0;ot<z;ot++){var st=E[ot],ut=st instanceof ei?st:null;if(ut!==null&&kh(ut)&&st.visible){rt.push(ut);for(var ft=ut.O.s,vt=ft.length,xt=0;xt<vt;xt++){var Pt=ft[xt];ut.type===ei.TableRow?Pt.row=st.row:ut.type===ei.TableColumn&&(Pt.column=st.column),tt.push(Pt)}}else tt.push(st)}z=tt.length,z===0&&(a.Fb(0),a.Eb(0));for(var Ft=[],Xt=0;Xt<z;Xt++){var Wt=tt[Xt];Wt.visible&&(Fa(Wt,!0),Ru(Wt,!0),Ft[Wt.row]||(Ft[Wt.row]=[]),Ft[Wt.row][Wt.column]||(Ft[Wt.row][Wt.column]=[]),Ft[Wt.row][Wt.column].push(Wt))}gi(tt);var oe=xi(),le=xi(),ce=xi(),Ae={count:0},Je={count:0},Ci=y,Wi=x,Ni=a.rowDefs,li=a.colDefs,Tn=null;z=Ni.length;for(var Nr=0;Nr<z;Nr++)Tn=Ni[Nr],Tn!==void 0&&(Tn.actual=0);z=li.length;for(var Er=0;Er<z;Er++)Tn=li[Er],Tn!==void 0&&(Tn.actual=0);for(var ho=Ft.length,Io=0,Wa=0;Wa<ho;Wa++)Ft[Wa]&&(Io=Math.max(Io,Ft[Wa].length));var Ka=Math.min(a.topIndex,ho-1),xs=Math.min(a.leftIndex,Io-1),Ha=0;ho=Ft.length;for(var jh=ah(a),Aa=0;Aa<ho;Aa++)if(Ft[Aa]){Io=Ft[Aa].length;var cu=a.Fb(Aa);cu.actual=0;for(var ws=cu.oc=0;ws<Io;ws++)if(Ft[Aa][ws]){var Wh=a.Eb(ws);oe[ws]===void 0&&(Wh.actual=0,Wh.oc=0,oe[ws]=!0);for(var gl=Ft[Aa][ws],Zl=gl.length,il=0;il<Zl;il++){var Xs=gl[il];if(Xs.visible||Xs===jh){var Cd=1<Xs.rowSpan||1<Xs.columnSpan;Cd&&(Aa<Ka||ws<xs||le.push(Xs));var fu=Xs.margin,ng=fu.right+fu.left,rl=fu.top+fu.bottom,Ps=su(Xs,cu,Wh,!1),Op=Xs.desiredSize,Xc=!isNaN(Op.height),Mu=!isNaN(Op.width)&&Xc;if(Cd||Ps===Hn||Mu||Aa<Ka||ws<xs||(Ae[ws]!==void 0||Ps!==Qn&&Ps!==$i||(Ae[ws]=-1,Ae.count++),Je[Aa]!==void 0||Ps!==Qn&&Ps!==mr||(Je[Aa]=-1,Je.count++),ce.push(Xs)),Xs.measure(1/0,1/0,0,0),!(Aa<Ka||ws<xs)){var _s=Xs.measuredBounds,oc=Math.max(_s.width+ng,0),ol=Math.max(_s.height+rl,0);if(Xs.rowSpan===1&&(Ps===Hn||Ps===$i)){Tn=a.Fb(Aa);var Ed=Tn.Wc();Ha=Math.max(ol-Tn.actual,0),Ha+Ed>Wi&&(Ha=Math.max(Wi-Ed,0));var G0=Tn.oa===0;Tn.oc=Tn.oc+Ha,Tn.actual=Tn.oa+Ha,Wi=Math.max(Wi-(Ha+(G0?Ed:0)),0)}if(Xs.columnSpan===1&&(Ps===Hn||Ps===mr)){Tn=a.Eb(ws);var Ip=Tn.Wc();Ha=Math.max(oc-Tn.actual,0),Ha+Ip>Ci&&(Ha=Math.max(Ci-Ip,0));var Gy=Tn.oa===0;Tn.oc=Tn.oc+Ha,Tn.actual=Tn.oa+Ha,Ci=Math.max(Ci-(Ha+(Gy?Ip:0)),0)}Cd&&Xs.Uj()}}}}}gi(oe);var Xu=0,uh=0;z=a.columnCount;for(var _c=0;_c<z;_c++){var Ad=li[_c];Ad!==void 0&&(Xu+=isNaN(Ad.Hc)?Ad.oc:Ad.Hc,Ad.oc!==0&&(Xu+=Ad.Wc()))}z=a.rowCount;for(var ig=0;ig<z;ig++){var Ld=Ni[ig];Ld!==void 0&&(uh+=isNaN(Ld.Hc)?Ld.oc:Ld.Hc,Ld.oc!==0&&(uh+=Ld.Wc()))}Ci=Math.max(y-Xu,0);var _u=Wi=Math.max(x-uh,0),Hh=Ci;z=ce.length;for(var Js=0;Js<z;Js++){var ku=ce[Js],K0=a.Fb(ku.row),hh=a.Eb(ku.column),rg=ku.measuredBounds,gu=ku.margin,ac=gu.right+gu.left,Fu=gu.top+gu.bottom;Ae[ku.column]=hh.oc===0&&Ae[ku.column]!==void 0?Math.max(rg.width+ac,Ae[ku.column]):null,Je[ku.row]=K0.oc===0&&Je[ku.row]!==void 0?Math.max(rg.height+Fu,Je[ku.row]):null}var Jc=0,og=0,iu;for(iu in Je)iu!=="count"&&(Jc+=Je[iu]);for(iu in Ae)iu!=="count"&&(og+=Ae[iu]);for(var ts=zt.alloc(),Rp=0;Rp<z;Rp++){var Ts=ce[Rp];if(Ts.visible||Ts===jh){var La=a.Fb(Ts.row),Os=a.Eb(Ts.column),dh=0;isFinite(Os.width)?dh=Os.width:(isFinite(Ci)&&Ae[Ts.column]!==null?og===0?dh=Os.actual+Ci:dh=Ae[Ts.column]/og*Hh:Ae[Ts.column]!==null?dh=Ci:dh=Os.actual||Ci,dh=Math.max(0,dh-Os.Wc()));var Zh=0;switch(isFinite(La.height)?Zh=La.height:(isFinite(Wi)&&Je[Ts.row]!==null?Jc===0?Zh=La.actual+Wi:Zh=Je[Ts.row]/Jc*_u:Je[Ts.row]!==null?Zh=Wi:Zh=La.actual||Wi,Zh=Math.max(0,Zh-La.Wc())),ts.h(Math.max(Os.minimum,Math.min(dh,Os.maximum)),Math.max(La.minimum,Math.min(Zh,La.maximum))),Ps=su(Ts,La,Os,!1),Ps){case $i:ts.height=Math.max(ts.height,La.actual+Wi);break;case mr:ts.width=Math.max(ts.width,Os.actual+Ci)}var sc=Ts.margin,Ky=sc.right+sc.left,Y0=sc.top+sc.bottom;Ts.Uj(),Ts.measure(ts.width,ts.height,Os.minimum,La.minimum);var ag=Ts.measuredBounds,lc=Math.max(ag.width+Ky,0),Qc=Math.max(ag.height+Y0,0);isFinite(Ci)&&(lc=Math.min(lc,ts.width)),isFinite(Wi)&&(Qc=Math.min(Qc,ts.height));var Qs=0;Qs=La.actual,La.actual=Math.max(La.actual,Qc),La.oc=Math.max(La.oc,Qc),Ha=La.actual-Qs,Wi=Math.max(Wi-Ha,0),Je[Ts.row]===null&&(_u=Math.max(_u-Ha,0)),Qs=Os.actual,Os.actual=Math.max(Os.actual,lc),Os.oc=Math.max(Os.oc,lc),Ha=Os.actual-Qs,Ci=Math.max(Ci-Ha,0),Ae[Ts.column]===null&&(Hh=Math.max(Hh-Ha,0))}}gi(ce);var ch=zt.alloc(),pu=xi(),Fl=xi();if(z=le.length,z!==0){for(var bd=0;bd<ho;bd++)if(Ft[bd]){Io=Ft[bd].length;var sg=a.Fb(bd);pu[bd]=sg.actual;for(var Md=0;Md<Io;Md++)if(Ft[bd][Md]){var U0=a.Eb(Md);Fl[Md]=U0.actual}}}for(var lg=0;lg<z;lg++){var ga=le[lg];if(ga.visible||ga===jh){var ru=a.Fb(ga.row),Vl=a.Eb(ga.column);switch(ts.h(Math.max(Vl.minimum,Math.min(y,Vl.maximum)),Math.max(ru.minimum,Math.min(x,ru.maximum))),Ps=su(ga,ru,Vl,!1),Ps){case Qn:Fl[Vl.index]!==0&&(ts.width=Math.min(ts.width,Fl[Vl.index])),pu[ru.index]!==0&&(ts.height=Math.min(ts.height,pu[ru.index]));break;case $i:Fl[Vl.index]!==0&&(ts.width=Math.min(ts.width,Fl[Vl.index]));break;case mr:pu[ru.index]!==0&&(ts.height=Math.min(ts.height,pu[ru.index]))}isFinite(Vl.width)&&(ts.width=Vl.width),isFinite(ru.height)&&(ts.height=ru.height),ch.h(0,0);for(var X0=Vl.minimum,al=ru.minimum,Vh=1;Vh<ga.rowSpan&&!(ga.row+Vh>=a.rowCount);Vh++)Tn=a.Fb(ga.row+Vh),Ha=0,Ha=Ps===Qn||Ps===mr?Math.max(Tn.minimum,pu[ga.row+Vh]===0?Tn.maximum:Math.min(pu[ga.row+Vh],Tn.maximum)):Math.max(Tn.minimum,isNaN(Tn.Hc)?Tn.maximum:Math.min(Tn.Hc,Tn.maximum)),ch.height+=Ha,al+=Tn.minimum;for(var Gl=1;Gl<ga.columnSpan&&!(ga.column+Gl>=a.columnCount);Gl++)Tn=a.Eb(ga.column+Gl),Ha=0,Ha=Ps===Qn||Ps===$i?Math.max(Tn.minimum,Fl[ga.column+Gl]===0?Tn.maximum:Math.min(Fl[ga.column+Gl],Tn.maximum)):Math.max(Tn.minimum,isNaN(Tn.Hc)?Tn.maximum:Math.min(Tn.Hc,Tn.maximum)),ch.width+=Ha,X0+=Tn.minimum;ts.width+=ch.width,ts.height+=ch.height;var ug=ga.margin,kd=ug.right+ug.left,zp=ug.top+ug.bottom;ga.measure(ts.width,ts.height,X0,al);for(var hg=ga.measuredBounds,Du=Math.max(hg.width+kd,0),uc=Math.max(hg.height+zp,0),Fd=0,dg=0;dg<ga.rowSpan&&!(ga.row+dg>=a.rowCount);dg++)Tn=a.Fb(ga.row+dg),Fd+=Tn.total||0;if(Fd<uc){var Gh=uc-Fd,Ju=uc-Fd;if(ga.spanAllocation!==null)for(var Kh=ga.spanAllocation,fh=0;fh<ga.rowSpan&&!(0>=Gh)&&!(ga.row+fh>=a.rowCount);fh++){Tn=a.Fb(ga.row+fh);var Yh=Tn.oa||0,hc=Kh(ga,Tn,Ju);Tn.actual=Math.min(Tn.maximum,Yh+hc),Tn.oa!==Yh&&(Gh-=Tn.oa-Yh)}for(;0<Gh;){var mu=Tn.oa||0;if(isNaN(Tn.height)&&Tn.maximum>mu&&(Tn.actual=Math.min(Tn.maximum,mu+Gh),Tn.oa!==mu&&(Gh-=Tn.oa-mu)),Tn.index===0)break;Tn=a.Fb(Tn.index-1)}}for(var qc=0,Uh=0;Uh<ga.columnSpan&&!(ga.column+Uh>=a.columnCount);Uh++)Tn=a.Eb(ga.column+Uh),qc+=Tn.total||0;if(qc<Du){var $c=Du-qc,Yy=Du-qc;if(ga.spanAllocation!==null)for(var gh=ga.spanAllocation,dc=0;dc<ga.columnSpan&&!(0>=$c)&&!(ga.column+dc>=a.columnCount);dc++){Tn=a.Eb(ga.column+dc);var jp=Tn.oa||0,Uy=gh(ga,Tn,Yy);Tn.actual=Math.min(Tn.maximum,jp+Uy),Tn.oa!==jp&&($c-=Tn.oa-jp)}for(;0<$c;){var _0=Tn.oa||0;if(isNaN(Tn.width)&&Tn.maximum>_0&&(Tn.actual=Math.min(Tn.maximum,_0+$c),Tn.oa!==_0&&($c-=Tn.oa-_0)),Tn.index===0)break;Tn=a.Eb(Tn.index-1)}}}}gi(le),zt.free(ch),zt.free(ts),pu!==void 0&&gi(pu),Fl!==void 0&&gi(Fl);var tf=0,ef=0,J0=a.desiredSize,Sx=a.maxSize;Ps=zs(a,!0);var Wp=uh=Xu=0,Hp=0;z=a.columnCount;for(var Q0=0;Q0<z;Q0++)li[Q0]!==void 0&&(Tn=a.Eb(Q0),isFinite(Tn.width)?(Wp+=Tn.width,Wp+=Tn.Wc()):Dm(Tn)===qg?(Wp+=Tn.oa,Wp+=Tn.Wc()):Tn.oa!==0&&(Xu+=Tn.oa,Xu+=Tn.Wc()));isFinite(J0.width)?tf=Math.min(J0.width,Sx.width):tf=Ps!==Hn&&isFinite(y)?y:Xu,tf=Math.max(tf,a.minSize.width),tf=Math.max(tf-Wp,0);for(var aw=Xu===0?1:Math.max(tf/Xu,1),q0=0;q0<z;q0++)li[q0]!==void 0&&(Tn=a.Eb(q0),isFinite(Tn.width)||Dm(Tn)===qg||(Tn.actual=Tn.oa*aw),Tn.position=b.width,Tn.oa!==0&&(b.width+=Tn.oa,b.width+=Tn.Wc()));z=a.rowCount;for(var $0=0;$0<z;$0++)Ni[$0]!==void 0&&(Tn=a.Fb($0),isFinite(Tn.height)?(Hp+=Tn.height,Hp+=Tn.Wc()):Dm(Tn)===qg?(Hp+=Tn.oa,Hp+=Tn.Wc()):Tn.oa!==0&&(uh+=Tn.oa,uh+=Tn.Wc()));isFinite(J0.height)?ef=Math.min(J0.height,Sx.height):ef=Ps!==Hn&&isFinite(x)?x:uh,ef=Math.max(ef,a.minSize.height),ef=Math.max(ef-Hp,0);for(var sw=uh===0?1:Math.max(ef/uh,1),tv=0;tv<z;tv++)Ni[tv]!==void 0&&(Tn=a.Fb(tv),isFinite(Tn.height)||Dm(Tn)===qg||(Tn.actual=Tn.oa*sw),Tn.position=b.height,Tn.oa!==0&&(b.height+=Tn.oa,b.height+=Tn.Wc()));z=rt.length;for(var Xy=0;Xy<z;Xy++){var Zp=rt[Xy],_y=0,Jy=0;Zp.type===ei.TableRow?(_y=b.width,Tn=a.Fb(Zp.row),Jy=Tn.actual):(Tn=a.Eb(Zp.column),_y=Tn.actual,Jy=b.height),Zp.measuredBounds.h(0,0,_y,Jy),Fa(Zp,!1)}gi(rt),a.inRowsCols=Ft},wm.prototype.arrange=function(a,y,x){var E=y.length,b=a.padding,z=b.left;b=b.top;var tt=a.inRowsCols;if(tt!==null){for(var rt,ot,st=tt.length,ut=0,ft=0;ft<st;ft++)tt[ft]&&(ut=Math.max(ut,tt[ft].length));ot=a.rowDefs,rt=a.colDefs;var vt=ft=0,xt=Math.min(a.topIndex,st-1);if(0<ot.length){for(;xt!==st&&(ot[xt]===void 0||ot[xt].oa===0);)xt++;xt=Math.max(Math.min(xt,st-1),0),ft=-ot[xt].position}var Pt=Math.min(a.leftIndex,ut-1);if(0<rt.length){for(;Pt!==ut&&(rt[Pt]===void 0||rt[Pt].oa===0);)Pt++;Pt=Math.max(Math.min(Pt,ut-1),0),vt=-rt[Pt].position}for(var Ft=0,Xt=0;Ft!==st&&ot[Ft]===void 0;)Ft++;for(;Xt!==st&&rt[Xt]===void 0;)Xt++;ut=a.part,a.Fb(Ft),a.Eb(Xt);for(var Wt=0;Wt<y.length;Wt++){var oe=y[Wt];if(oe instanceof ei&&oe.visible&&kh(oe)){if(oe.type===ei.TableRow){rt=a.Fb(oe.row);var le=a.Eb(Xt)}else rt=a.Fb(Ft),le=a.Eb(oe.column);ot=rt.position+ft+b,rt.oa!==0&&(ot+=rt.Io(Math.max(Ft,xt))),rt=le.position+vt+z,le.oa!==0&&(rt+=le.Io(Math.max(Xt,Pt))),le=oe.measuredBounds,oe.Uk(),oe.actualBounds.ka();var ce=oe.actualBounds,Ae=ue.allocAt(ce.x,ce.y,ce.width,ce.height);ce.x=oe.type===ei.TableRow?z:rt,ce.y=oe.type===ei.TableColumn?b:ot,ce.width=le.width,ce.height=le.height,oe.actualBounds.freeze(),Ru(oe,!1),ci(Ae,ce)||ut===null||(ut.oh(),oe.Pn(ut)),ue.free(Ae)}}for(Wt=zt.alloc(),oe=0;oe<st;oe++)if(tt[oe]){for(ut=tt[oe].length,le=a.Fb(oe),ot=le.position+ft+b,le.oa!==0&&(ot+=le.Io(Math.max(Ft,xt))),ce=0;ce<ut;ce++)if(tt[oe][ce]){Ae=a.Eb(ce),rt=Ae.position+vt+z,Ae.oa!==0&&(rt+=Ae.Io(Math.max(Xt,Pt)));for(var Je=tt[oe][ce],Ci=Je.length,Wi=0;Wi<Ci;Wi++){var Ni=Je[Wi],li=Ni.measuredBounds;Wt.h(0,0);for(var Tn=1;Tn<Ni.rowSpan&&!(oe+Tn>=a.rowCount);Tn++){var Nr=a.Fb(oe+Tn);Nr.oa!==0&&(Wt.height+=Nr.total)}for(Tn=1;Tn<Ni.columnSpan&&!(ce+Tn>=a.columnCount);Tn++)Nr=a.Eb(ce+Tn),Nr.oa!==0&&(Wt.width+=Nr.total);var Er=Ae.oa+Wt.width,ho=le.oa+Wt.height;Tn=rt,Nr=ot;var Io=Er,Wa=ho,Ka=rt,xs=ot,Ha=Er,jh=ho;rt+Er>x.width&&(Ha=Math.max(x.width-rt,0)),ot+ho>x.height&&(jh=Math.max(x.height-ot,0));var Aa=Ni.alignment;if(Aa.Xb()){Aa=a.defaultAlignment,Aa.sb()||(Aa=Ri);var cu=Aa.x,ws=Aa.y,Wh=Aa.offsetX;Aa=Aa.offsetY;var gl=Ae.alignment,Zl=le.alignment;gl.sb()&&(cu=gl.x,Wh=gl.offsetX),Zl.sb()&&(ws=Zl.y,Aa=Zl.offsetY)}else cu=Aa.x,ws=Aa.y,Wh=Aa.offsetX,Aa=Aa.offsetY;(isNaN(cu)||isNaN(ws))&&(ws=cu=.5,Aa=Wh=0),gl=li.width,Zl=li.height;var il=Ni.margin,Xs=il.left+il.right,Cd=il.top+il.bottom,fu=su(Ni,le,Ae,!1);!isNaN(Ni.desiredSize.width)||fu!==Qn&&fu!==$i||(gl=Math.max(Er-Xs,0)),!isNaN(Ni.desiredSize.height)||fu!==Qn&&fu!==mr||(Zl=Math.max(ho-Cd,0)),Er=Ni.maxSize,ho=Ni.minSize,gl=Math.min(Er.width,gl),Zl=Math.min(Er.height,Zl),gl=Math.max(ho.width,gl),Zl=Math.max(ho.height,Zl),Er=Zl+Cd,Tn+=Io*cu-(gl+Xs)*cu+Wh+il.left,Nr+=Wa*ws-Er*ws+Aa+il.top,Ni.visible&&(Bi(Ka,xs,Ha,jh,Tn,Nr,li.width,li.height)?Ni.arrange(Tn,Nr,gl,Zl):Ni.arrange(Tn,Nr,gl,Zl,new ue(Ka,xs,Ha,jh)))}}}for(zt.free(Wt),a=0;a<E;a++)x=y[a],z=x instanceof ei?x:null,z!==null&&kh(z)&&(z=x.actualBounds,x.naturalBounds.ka(),x.naturalBounds.h(0,0,z.width,z.height),x.naturalBounds.freeze())}};function Pm(){this.xa="Base"}ye(Pm,Oa),Pm.prototype.measure=function(){},Pm.prototype.arrange=function(){};function Cm(){this.xa="Base"}ye(Cm,Oa),Cm.prototype.measure=function(){},Cm.prototype.arrange=function(){};function Em(){this.xa="Base"}ye(Em,Oa),Em.prototype.measure=function(a,y,x,E,b,z,tt){1<E.length&&ee("Viewbox Panel cannot contain more than one GraphObject."),E=E[0],E.Ca=1,E.Uj(),E.measure(1/0,1/0,z,tt);var rt=E.measuredBounds,ot=E.margin,st=ot.right+ot.left;if(ot=ot.top+ot.bottom,isFinite(y)||isFinite(x)){var ut=E.scale,ft=rt.width;rt=rt.height;var vt=Math.max(y-st,0),xt=Math.max(x-ot,0),Pt=1;a.viewboxStretch===Yi?ft!==0&&rt!==0&&(Pt=Math.min(vt/ft,xt/rt)):ft!==0&&rt!==0&&(Pt=Math.max(vt/ft,xt/rt)),Pt===0&&(Pt=1e-4),E.Ca*=Pt,ut!==E.scale&&(Fa(E,!0),E.measure(1/0,1/0,z,tt))}rt=E.measuredBounds,b.width=isFinite(y)?y:Math.max(rt.width+st,0),b.height=isFinite(x)?x:Math.max(rt.height+ot,0)},Em.prototype.arrange=function(a,y,x){y=y[0];var E=y.measuredBounds,b=y.margin,z=Math.max(E.width+(b.right+b.left),0);b=Math.max(E.height+(b.top+b.bottom),0);var tt=y.alignment;tt.Xb()&&(tt=a.defaultAlignment),tt.sb()||(tt=Ri),y.arrange(x.width*tt.x-z*tt.x+tt.offsetX,x.height*tt.y-b*tt.y+tt.offsetY,E.width,E.height)};function _g(){this.xa="Base"}ye(_g,Oa),_g.prototype.measure=function(){},_g.prototype.arrange=function(){},_g.prototype.gc=function(a,y,x){x=a.Df()*x.scale,0>=x&&(x=1);var E=a.gridCellSize,b=E.width;E=E.height;var z=a.naturalBounds,tt=a.actualBounds,rt=z.width,ot=z.height,st=Math.ceil(rt/b),ut=Math.ceil(ot/E),ft=a.gridOrigin,vt=ft.x;ft=ft.y,y.save(),y.beginPath(),y.rect(0,0,rt,ot),y.clip(),y.Se();for(var xt=[],Pt=a.O.s,Ft=Pt.length,Xt=0;Xt<Ft;Xt++){var Wt=Pt[Xt],oe=[];if(xt.push(oe),Wt.visible){var le=Wt.interval;if(!(0>le)){Wt=Sv(Wt.figure);for(var ce=0;ce<Ft;ce++)if(ce!==Xt){var Ae=Pt[ce];Ae.visible&&Sv(Ae.figure)===Wt&&(Ae=Ae.interval,Ae>le&&oe.push(Ae))}}}}for(Pt=a.O.s,Ft=Pt.length,Xt=0;Xt<Ft;Xt++){var Je=Pt[Xt];if(Je.visible&&(oe=Je.interval||1,Wt=Math.abs(oe),!(2>b*Wt*x))){if(le=Je.segmentIndex,(!isFinite(le)||isNaN(le))&&(le=0),0>le&&(le=Wt-Math.min(-le,Wt)),le=Math.round(le%Wt),Wt=Je.opacity,ce=1,Wt!==1){if(Wt===0)continue;ce=y.globalAlpha,y.globalAlpha=ce*Wt}Ae=xt[Xt];var Ci=!1,Wi=Je.strokeDashArray;if(Wi!==null&&(Ci=!0,y.js(Wi,Je.strokeDashOffset)),Je.figure==="LineV"&&Je.stroke!==null&&0<Je.strokeWidth){for(y.lineWidth=Je.strokeWidth,fa(a,y,Je.stroke,!1,!1,z,tt),y.beginPath(),Wi=Je=Math.floor((vt-b)/b);Wi<=Je+st;Wi++){var Ni=Wi*b+vt;0<=Ni&&Ni<=rt&&Am(Wi,oe,le,Ae)&&(y.moveTo(Ni,0),y.lineTo(Ni,ot))}y.stroke(),y.Se()}else if(Je.figure==="LineH"&&Je.stroke!==null&&0<Je.strokeWidth){for(y.lineWidth=Je.strokeWidth,fa(a,y,Je.stroke,!1,!1,z,tt),y.beginPath(),Wi=Je=Math.floor((ft-E)/E);Wi<=Je+ut;Wi++)Ni=Wi*E+ft,0<=Ni&&Ni<=ot&&Am(Wi,oe,le,Ae)&&(y.moveTo(0,Ni),y.lineTo(rt,Ni));y.stroke(),y.Se()}else if(Je.figure==="BarV"&&Je.fill!==null)for(fa(a,y,Je.fill,!0,!1,z,tt),Je=Je.width,isNaN(Je)&&(Je=b),Ni=Wi=Math.floor((vt-b)/b);Ni<=Wi+st;Ni++){var li=Ni*b+vt;0<=li+Je&&li<=rt&&Am(Ni,oe,le,Ae)&&y.fillRect(li,0,Je,ot)}else if(Je.figure==="BarH"&&Je.fill!==null)for(fa(a,y,Je.fill,!0,!1,z,tt),Je=Je.height,isNaN(Je)&&(Je=E),Ni=Wi=Math.floor((ft-E)/E);Ni<=Wi+ut;Ni++)li=Ni*E+ft,0<=li+Je&&li<=ot&&Am(Ni,oe,le,Ae)&&y.fillRect(0,li,rt,Je);Ci&&y.fs(),Wt!==1&&(y.globalAlpha=ce)}}y.restore(),y.Vc(!1)};function Am(a,y,x,E){if(0>y)return a%y===x;if(a%y!==x)return!1;y=E.length;for(var b=0;b<y;b++)if(a%E[b]===x)return!1;return!0}function Lm(){this.xa="Base"}ye(Lm,Oa),Lm.prototype.measure=function(a,y,x,E,b){var z=E.length;if(a instanceof uo||a instanceof di){var tt=null,rt=null;if(a instanceof di&&(tt=a),a instanceof uo&&(rt=a,tt=rt.adornedPart,a.j===null&&(a.j=[])),tt instanceof di){var ot=tt;if(z===0)Un(a.naturalBounds,0,0),a.measuredBounds.h(0,0,0,0);else{var st=a instanceof uo?null:tt.path;y=tt.routeBounds,x=a.jg,x.h(0,0,y.width,y.height);var ut=ot.points,ft=tt.pointsCount;rt!==null?rt.Ul(!1):tt!==null&&tt.Ul(!1),rt=y.width;var vt=y.height,xt=a.j;if(xt.length=0,st!==null){l1(a,rt,vt,st);var Pt=st.measuredBounds;x.ed(Pt),xt.push(Pt)}Pt=Ei.alloc();for(var Ft=Bt.alloc(),Xt=Bt.alloc(),Wt=0;Wt<z;Wt++){var oe=E[Wt];if(oe!==st)if(oe.isPanelMain&&oe instanceof Wr){l1(a,rt,vt,oe);var le=oe.measuredBounds;x.ed(le),xt.push(le)}else if(2>ft)oe.measure(1/0,1/0,0,0),le=oe.measuredBounds,x.ed(le),xt.push(le);else{var ce=oe.segmentIndex,Ae=oe.segmentFraction,Je=oe.alignmentFocus;Je.Mc()&&(Je=Ri);var Ci=oe.segmentOrientation,Wi=oe.segmentOffset;if(isNaN(ce)){var Ni=ot.ua;le=xi(),Ni.Qu(Ae,le);var li=Bt.allocAt(le[0],le[1]);if(li.add(ot.i(0)),Ni.type===Wn.j?li.offset(-Ni.startX,-Ni.startY):(Ni=Ni.figures.first(),Ni!==null&&li.offset(-Ni.startX,-Ni.startY)),Ni=le[2],Ci!==ks){var Tn=ot.computeAngle(oe,Ci,Ni);oe.Kb=Tn}Tn=li.x-y.x;var Nr=li.y-y.y;Bt.free(li),gi(le)}else if(ce<-ft||ce>=ft)le=Bt.alloc(),ot.vg(),ot.computeMidPoint(le),Ni=ot.midAngle,Ci!==ks&&(Tn=ot.computeAngle(oe,Ci,Ni),oe.Kb=Tn),Tn=le.x-y.x,Nr=le.y-y.y,Bt.free(le);else{if(Tn=0,0<=ce?(Nr=ut.M(ce),le=ce<ft-1?ut.M(ce+1):Nr):(Tn=ft+ce,Nr=ut.M(Tn),le=0<Tn?ut.M(Tn-1):Nr),Nr.Xa(le)){0<=ce?(Ni=0<ce?ut.M(ce-1):Nr,Tn=ce<ft-2?ut.M(ce+2):le):(Ni=Tn<ft-1?ut.M(Tn+1):Nr,Tn=1<Tn?ut.M(Tn-2):le),li=Ni.Bf(Nr);var Er=le.Bf(Tn);Ni=li>Er+10?0<=ce?Ni.ab(Nr):Nr.ab(Ni):Er>li+10?0<=ce?le.ab(Tn):Tn.ab(le):0<=ce?Ni.ab(Tn):Tn.ab(Ni)}else Ni=0<=ce?Nr.ab(le):le.ab(Nr);Ci!==ks&&(Tn=ot.computeAngle(oe,Ci,Ni),oe.Kb=Tn),Tn=Nr.x+(le.x-Nr.x)*Ae-y.x,Nr=Nr.y+(le.y-Nr.y)*Ae-y.y}oe.measure(1/0,1/0,0,0),le=oe.measuredBounds,li=oe.naturalBounds;var ho=0;oe instanceof Wr&&(ho=oe.strokeWidth),Er=li.width+ho;var Io=li.height+ho;Pt.reset(),Pt.translate(-le.x,-le.y),Pt.scale(oe.scale,oe.scale),Pt.rotate(Ci===ks?oe.angle:Ni,Er/2,Io/2),Ci!==lp&&Ci!==hp||Pt.rotate(90,Er/2,Io/2),Ci!==up&&Ci!==dp||Pt.rotate(-90,Er/2,Io/2),Ci===n0&&(45<Ni&&135>Ni||225<Ni&&315>Ni)&&Pt.rotate(-Ni,Er/2,Io/2),li=new ue(0,0,Er,Io),Ft.xi(li,Je),Pt.Ga(Ft),Je=-Ft.x+ho/2*oe.scale,oe=-Ft.y+ho/2*oe.scale,Xt.assign(Wi),ho=isNaN(Wi.x);var Wa=isNaN(Wi.y);if(ho||Wa){Er=Er/2+3,Io=Io/2+3;var Ka=45<=Ni&&135>=Ni,xs=225<=Ni&&315>=Ni;Ci===ks&&(Ka||xs)?(Xt.x=Wa?Er:Wi.y,Xt.y=ho?Io:Wi.x,Ka?0<=ce||isNaN(ce)&&.5>Ae||!ho||(Xt.y=-Io):xs&&((0<=ce||isNaN(ce)&&.5>Ae)&&ho&&(Xt.y=-Io),Wa&&(Xt.x=-Er))):(ho&&(Xt.x=0<=ce||isNaN(ce)&&.5>Ae?Er:-Er),Wa&&(Xt.y=-Io),Xt.rotate(Ni))}else Xt.rotate(Ni);Tn+=Xt.x,Nr+=Xt.y,li.set(le),li.h(Tn+Je,Nr+oe,le.width,le.height),xt.push(li),x.ed(li)}}if(tt!==null)for(E=tt.labelNodes;E.next();)E.value.measure(1/0,1/0);a.jg=x,a.position.h(y.x+x.x,y.y+x.y),Un(b,x.width||0,x.height||0),Ei.free(Pt),Bt.free(Ft),Bt.free(Xt)}}}},Lm.prototype.arrange=function(a,y){var x=y.length;if(a instanceof uo||a instanceof di){var E=a,b=null;a instanceof uo&&(b=a,E=b.adornedPart);var z=a instanceof uo?null:E.path,tt=a.j;if(tt.length!==0){var rt=0;if(z!==null&&rt<tt.length){var ot=tt[rt];rt++,z.arrange(ot.x-a.jg.x,ot.y-a.jg.y,ot.width,ot.height)}for(ot=0;ot<x;ot++){var st=y[ot];if(st!==z&&rt<tt.length){var ut=tt[rt];rt++,st.arrange(ut.x-a.jg.x,ut.y-a.jg.y,ut.width,ut.height)}}}if(y=E.points,x=y.count,2<=x&&a instanceof di)for(z=a.labelNodes;z.next();){var ft=a;tt=z.value,rt=tt.segmentIndex,ot=tt.segmentFraction;var vt=tt.alignmentFocus;if(st=tt.segmentOrientation,ut=tt.segmentOffset,isNaN(rt)){var xt=ft.ua,Pt=xi();xt.Qu(ot,Pt);var Ft=Bt.allocAt(Pt[0],Pt[1]);Ft.add(ft.i(0)),xt.type===Wn.j||(xt=xt.figures.first()),Ft.offset(-xt.startX,-xt.startY),xt=Pt[2],st!==ks&&(ft=ft.computeAngle(tt,st,xt),tt.angle=ft),ft=Ft.x;var Xt=Ft.y;Bt.free(Ft),gi(Pt)}else if(rt<-x||rt>=x)Pt=Bt.alloc(),xt=ft,Xt=Pt,xt.vg(),xt.computeMidPoint(Xt),xt=ft.midAngle,st!==ks&&(ft=ft.computeAngle(tt,st,xt),tt.angle=ft),ft=Pt.x,Xt=Pt.y,Bt.free(Pt);else{if(Ft=0,0<=rt?(Pt=y.s[rt],Xt=rt<x-1?y.s[rt+1]:Pt):(Ft=x+rt,Pt=y.s[Ft],Xt=0<Ft?y.s[Ft-1]:Pt),Pt.Xa(Xt)){0<=rt?(xt=0<rt?y.s[rt-1]:Pt,Ft=rt<x-2?y.s[rt+2]:Xt):(xt=Ft<x-1?y.s[Ft+1]:Pt,Ft=1<Ft?y.s[Ft-2]:Xt);var Wt=xt.Bf(Pt),oe=Xt.Bf(Ft);xt=Wt>oe+10?0<=rt?xt.ab(Pt):Pt.ab(xt):oe>Wt+10?0<=rt?Xt.ab(Ft):Ft.ab(Xt):0<=rt?xt.ab(Ft):Ft.ab(xt)}else xt=0<=rt?Pt.ab(Xt):Xt.ab(Pt);st!==ks&&(ft=ft.computeAngle(tt,st,xt),tt.angle=ft),ft=Pt.x+(Xt.x-Pt.x)*ot,Xt=Pt.y+(Xt.y-Pt.y)*ot}if(vt.ys())tt.location=new Bt(ft,Xt);else{vt.Mc()&&(vt=Ri),Pt=Ei.alloc(),Pt.reset(),Pt.scale(tt.scale,tt.scale),Pt.rotate(tt.angle,0,0);var le=tt.naturalBounds;Ft=ue.allocAt(0,0,le.width,le.height),Wt=Bt.alloc(),Wt.xi(Ft,vt),Pt.Ga(Wt),vt=-Wt.x,oe=-Wt.y;var ce=le.width,Ae=le.height;le=Bt.alloc(),le.assign(ut);var Je=isNaN(ut.x),Ci=isNaN(ut.y);if(Je||Ci){ce=ce/2+3,Ae=Ae/2+3;var Wi=45<=xt&&135>=xt,Ni=225<=xt&&315>=xt;st===ks&&(Wi||Ni)?(le.x=Ci?ce:ut.y,le.y=Je?Ae:ut.x,Wi?0<=rt||isNaN(rt)&&.5>ot||!Je||(le.y=-Ae):Ni&&((0<=rt||isNaN(rt)&&.5>ot)&&Je&&(le.y=-Ae),Ci&&(le.x=-ce))):(Je&&(le.x=0<=rt||isNaN(rt)&&.5>ot?ce:-ce),Ci&&(le.y=-Ae),le.rotate(xt))}else le.rotate(xt);ft+=le.x,Xt+=le.y,Pt.pp(Ft),vt+=Ft.x,oe+=Ft.y,rt=Bt.allocAt(ft+vt,Xt+oe),tt.move(rt),Bt.free(rt),Bt.free(le),Bt.free(Wt),ue.free(Ft),Ei.free(Pt)}}b!==null?b.Ul(!1):E.Ul(!1),E=R1(a),a.location.h(a.position.x+E.x,a.position.y+E.y),Bt.free(E)}};function l1(a,y,x,E){if(hl(E)!==!1){var b=E.strokeWidth;b===0&&a instanceof uo&&a.type===ei.Link&&a.adornedObject instanceof Wr&&(b=a.adornedObject.strokeWidth),b*=E.Ca,a instanceof di&&a.ua!==null?(a=a.geometry.bounds,E.Ge(a.x-b/2,a.y-b/2,a.width+b,a.height+b)):a instanceof uo&&a.adornedPart.ua!==null?(a=a.adornedPart.ua.bounds,E.Ge(a.x-b/2,a.y-b/2,a.width+b,a.height+b)):E.Ge(-(b/2),-(b/2),y+b,x+b),b=E.desiredSize,b.w()||E.ua===null?E.dc.h(0,0,b.width,b.height):E.dc.assign(E.ua.bounds),Fa(E,!1)}}function Jg(){this.xa="Base"}ye(Jg,Oa),Jg.prototype.measure=function(a,y,x,E,b,z,tt){var rt=a.Pb();a.graduatedBounds=[];var ot=rt.margin,st=ot.right+ot.left,ut=ot.top+ot.bottom;rt.measure(y,x,z,tt);var ft=rt.measuredBounds,vt=new ue(-ot.left,-ot.top,Math.max(ft.width+st,0),Math.max(ft.height+ut,0));a.graduatedBounds.push(vt),b.assign(vt);for(var xt=rt.geometry,Pt=rt.strokeWidth,Ft=xt.flattenedSegments,Xt=xt.flattenedLengths,Wt=xt.flattenedTotalLength,oe=Ft.length,le=0,ce=0,Ae=xi(),Je=0;Je<oe;Je++){var Ci=Ft[Je],Wi=[];ce=le=0;for(var Ni=Ci.length,li=0;li<Ni;li+=2){var Tn=Ci[li],Nr=Ci[li+1];if(li!==0){var Er=180*Math.atan2(Nr-ce,Tn-le)/Math.PI;0>Er&&(Er+=360),Wi.push(Er)}le=Tn,ce=Nr}Ae.push(Wi)}if(a.graduatedIntervals===null){for(var ho=[],Io=a.O.s,Wa=Io.length,Ka=0;Ka<Wa;Ka++){var xs=Io[Ka],Ha=[];if(ho.push(Ha),xs.visible){var jh=xs.interval;if(!(0>jh)){for(var Aa=0;Aa<Wa;Aa++)if(Aa!==Ka){var cu=Io[Aa];if(cu.visible&&xs.constructor===cu.constructor){var ws=cu.interval;ws>jh&&Ha.push(ws)}}}}}a.graduatedIntervals=ho}var Wh=a.graduatedIntervals,gl=a.O.s,Zl=gl.length,il=0,Xs=0,Cd=Wt;a.graduatedMarks=[];for(var fu,ng=0;ng<Zl;ng++){var rl=gl[ng];if(fu=[],rl.visible&&rl!==rt){var Ps=Math.abs(rl.interval),Op=a.graduatedTickUnit;if(!(2>Op*Ps*Wt/a.graduatedRange&&rl.graduatedSkip===null)){var Xc=Xt[0][0],Mu=0,_s=0;Xs=Wt*rl.graduatedStart-1e-4,Cd=Wt*rl.graduatedEnd+1e-4;var oc=Op*Ps,ol=a.graduatedTickBase;if(ol<a.graduatedMin){var Ed=(a.graduatedMin-ol)/oc;Ed=Ed%1===0?Ed:Math.floor(Ed+1),ol+=Ed*oc}else ol>a.graduatedMin+oc&&(ol-=Math.floor((ol-a.graduatedMin)/oc)*oc);for(var G0=Wh[ng],Ip=ol,Gy=1e-6*a.graduatedMax,Xu=1;ol<=a.graduatedMax+Gy;Xu++){t:{for(var uh=G0.length,_c=0;_c<uh;_c++){var Ad=(ol-a.graduatedTickBase)%(G0[_c]*a.graduatedTickUnit),ig=1e-6*a.graduatedTickUnit;if(Ad<ig&&Ad>-ig){var Ld=!1;break t}}Ld=!0}if(Ld&&(ol>a.graduatedMax&&(ol=a.graduatedMax),rl.graduatedSkip===null||rl instanceof Ro&&!rl.graduatedSkip(ol,rl)||rl instanceof Wr&&!rl.graduatedSkip(ol,rl))&&(il=(ol-a.graduatedMin)*Wt/a.graduatedRange,il>Wt&&(il=Wt),Xs<=il&&il<=Cd)){for(var _u=Ae[Mu][_s],Hh=Xt[Mu][_s];Mu<Xt.length;){for(;il>Xc&&_s<Xt[Mu].length-1;)_s++,_u=Ae[Mu][_s],Hh=Xt[Mu][_s],Xc+=Hh;if(il<=Xc)break;Mu++,_s=0,_u=Ae[Mu][_s],Hh=Xt[Mu][_s],Xc+=Hh}var Js=Ft[Mu],ku=Js[2*_s],K0=Js[2*_s+1],hh=(il-(Xc-Hh))/Hh,rg=new Bt(ku+(Js[2*_s+2]-ku)*hh+Pt/2-xt.bounds.x,K0+(Js[2*_s+3]-K0)*hh+Pt/2-xt.bounds.y);rg.scale(rt.scale,rt.scale);t:{var gu=_u,ac=Ae[Mu];if(!(.5005>hh&&.4995<hh)){var Fu=gu;if(.5>hh?0<_s?Fu=ac[_s-1]:me.$(Js[0],Js[Js.length-2])&&me.$(Js[1],Js[Js.length-1])&&(Fu=ac[ac.length-1]):.5<hh&&(_s+1<ac.length?Fu=ac[_s+1]:me.$(Js[0],Js[Js.length-2])&&me.$(Js[1],Js[Js.length-1])&&(Fu=ac[0])),gu!==Fu){var Jc=Math.abs(gu-Fu);if(180<Jc&&(gu<Fu?gu+=360:Fu+=360,Jc=Math.abs(gu-Fu)),5e-4>hh||.9995<hh){_u=(gu+Fu)/2%360;break t}if(10>Jc){var og=1-Math.abs(.5-hh);_u=(gu*og+Fu*(1-og))%360;break t}}}_u=gu}if(rl instanceof Ro){var iu="";rl.graduatedFunction!==null?(iu=rl.graduatedFunction(ol,rl),iu=iu!=null?iu.toString():""):iu=(+ol.toFixed(2)).toString(),iu!==""&&fu.push({$l:rg,angle:_u,text:iu})}else fu.push({$l:rg,angle:_u})}ol=Ip+Xu*oc}}}a.graduatedMarks.push(fu)}gi(Ae);var ts=a.graduatedMarks;if(ts!==null)for(var Rp=E.length,Ts=0;Ts<Rp;Ts++){var La=E[Ts],Os=ts[Ts];if(La.visible&&La!==rt&&Os.length!==0){if(La instanceof Wr){var dh=a,Zh=b,sc=La.alignmentFocus;sc.Mc()&&(sc=Dr);var Ky=La.angle;La.Kb=0,La.measure(1/0,1/0,0,0),La.Kb=Ky;var Y0=La.measuredBounds,ag=Y0.width,lc=Y0.height,Qc=ue.allocAt(0,0,ag,lc),Qs=Bt.alloc();Qs.xi(Qc,sc),ue.free(Qc);for(var ch=-Qs.x,pu=-Qs.y,Fl=new ue,bd=Os.length,sg=0;sg<bd;sg++)for(var Md=Os[sg],U0=Md.$l.x,lg=Md.$l.y,ga=Md.angle,ru=0;4>ru;ru++){switch(ru){case 0:Qs.h(ch,pu);break;case 1:Qs.h(ch+ag,pu);break;case 2:Qs.h(ch,pu+lc);break;case 3:Qs.h(ch+ag,pu+lc)}Qs.rotate(ga+La.angle),Qs.offset(U0,lg),sg===0&&ru===0?Fl.h(Qs.x,Qs.y,0,0):Fl.Ye(Qs),Qs.offset(-U0,-lg),Qs.rotate(-ga-La.angle)}Bt.free(Qs),dh.graduatedBounds!==null&&dh.graduatedBounds.push(Fl),Ii(Zh,Fl.x,Fl.y,Fl.width,Fl.height)}else if(La instanceof Ro){var Vl=a,X0=b;Vl.temporaryTextBlock===null&&(Vl.temporaryTextBlock=new Ro);var al=Vl.temporaryTextBlock;C1(al,La);var Vh=La.alignmentFocus;Vh.Mc()&&(Vh=Dr);for(var Gl=La.segmentOrientation,ug=La.segmentOffset,kd=new ue,zp=0,hg=0,Du=0,uc=0,Fd=0,dg=Os.length,Gh=0;Gh<dg;Gh++){var Ju=Os[Gh];zp=Ju.$l.x,hg=Ju.$l.y,Du=Ju.angle,Fd=uc=La.angle,Gl!==ks&&(Fd=Gl===sp||Gl===e0?Du+La.angle:Du,uc=di.computeAngle(Gl,Fd)),al.Kb=uc,al.text=Ju.text||"",al.measure(1/0,1/0,0,0);var Kh=al.measuredBounds,fh=al.naturalBounds,Yh=fh.width,hc=fh.height,mu=Ei.alloc();mu.reset(),mu.translate(-Kh.x,-Kh.y),mu.scale(al.scale,al.scale),mu.rotate(Fd,Yh/2,hc/2),Gl!==lp&&Gl!==hp||mu.rotate(90,Yh/2,hc/2),Gl!==up&&Gl!==dp||mu.rotate(-90,Yh/2,hc/2),Gl===n0&&(45<Du&&135>Du||225<Du&&315>Du)&&mu.rotate(-Du,Yh/2,hc/2);var qc=ue.allocAt(0,0,Yh,hc),Uh=Bt.alloc();Uh.xi(qc,Vh),mu.Ga(Uh);var $c=-Uh.x,Yy=-Uh.y,gh=Bt.alloc();gh.assign(ug),isNaN(gh.x)&&(gh.x=Yh/2+3),isNaN(gh.y)&&(gh.y=-(hc/2+3)),gh.rotate(Du),zp+=gh.x+$c,hg+=gh.y+Yy;var dc=new ue(zp,hg,Kh.width,Kh.height),jp=new ue(Kh.x,Kh.y,Kh.width,Kh.height),Uy=new ue(fh.x,fh.y,fh.width,fh.height);Ju.Sz=uc,Ju.lineCount=al.lineCount,Ju.lines=[al.Cb,al.Ih,al.df,al.Le,al.Qc,al.Qb,al.ze],Ju.actualBounds=dc,Ju.measuredBounds=jp,Ju.naturalBounds=Uy,Gh===0?kd.assign(dc):kd.ed(dc),Bt.free(gh),Bt.free(Uh),ue.free(qc),Ei.free(mu)}Vl.graduatedBounds!==null&&Vl.graduatedBounds.push(kd),Ii(X0,kd.x,kd.y,kd.width,kd.height)}Fa(La,!1)}}},Jg.prototype.arrange=function(a,y,x){if(a.graduatedBounds!==null){var E=a.Pb(),b=a.graduatedMarks;if(b!==null){var z=a.graduatedBounds,tt=0,rt=z[tt];tt++,E!==null&&E.arrange(rt.x-x.x,rt.y-x.y,rt.width,rt.height);for(var ot=y.length,st=0;st<ot;st++){var ut=y[st];rt=b[st],ut.visible&&ut!==E&&rt.length!==0&&(rt=z[tt],tt++,ut.arrange(rt.x-x.x,rt.y-x.y,rt.width,rt.height))}a.graduatedBounds=null}}},Jg.prototype.gc=function(a,y,x){var E=x.$i;x.$i=!0;var b=a.naturalBounds,z=b.width,tt=b.height;b=y instanceof tl,y.save(),y.beginPath(),y.rect(-1,-1,z+1,tt+1),y.clip(),y.Se(),z=a.Pb(),z.gc(y,x),tt=a.Df()*x.scale,0>=tt&&(tt=1);for(var rt=z.actualBounds,ot=a.O.s,st=a.graduatedMarks,ut=ot.length,ft=0;ft<ut;ft++){var vt=ot[ft],xt=st[ft],Pt=xt.length;if(vt.visible&&vt!==z&&xt.length!==0){if(vt instanceof Wr){if(!(2>a.graduatedTickUnit*vt.interval*z.geometry.flattenedTotalLength/a.graduatedRange*tt&&vt.graduatedSkip===null)){var Ft=vt.measuredBounds,Xt=vt.strokeWidth*vt.scale,Wt=vt.alignmentFocus;Wt.Mc()&&(Wt=Dr);for(var oe=0;oe<Pt;oe++){var le=xt[oe].$l,ce=xt[oe].angle,Ae=Wt,Je=vt.Ab;Je.reset(),Je.translate(le.x+rt.x,le.y+rt.y),Je.rotate(ce+vt.angle,0,0),Je.translate(-Ft.width*Ae.x+Ae.offsetX+Xt/2,-Ft.height*Ae.y+Ae.offsetY+Xt/2),Je.scale(vt.scale,vt.scale),Rl(vt,!1),vt.wh.set(vt.Ab),vt.Kk=vt.scale,Cl(vt,!1),vt.gc(y,x),b&&(a.svg.appendChild(vt.svg),vt.svg=null),vt.Ab.reset()}}}else if(vt instanceof Ro)for(a.temporaryTextBlock===null&&(a.temporaryTextBlock=new Ro),Ft=a.temporaryTextBlock,C1(Ft,vt),Xt=0;Xt<Pt;Xt++)Wt=xt[Xt],Wt.actualBounds&&Wt.measuredBounds&&Wt.naturalBounds&&(Ft.ec=Wt.text||"",Ft.Kb=Wt.Sz||0,Ft.Gc=Wt.lineCount||0,oe=Wt.lines,oe!==void 0&&(Ft.Cb=oe[0],Ft.Ih=oe[1],Ft.df=oe[2],Ft.Le=oe[3],Ft.Qc=oe[4],Ft.Qb=oe[5],Ft.ze=oe[6]),Wt.naturalBounds&&(Ft.dc=Wt.naturalBounds),Wt.actualBounds&&(oe=Wt.actualBounds,Ft.arrange(oe.x,oe.y,oe.width,oe.height)),oe=Wt.actualBounds,Ft.arrange(oe.x,oe.y,oe.width,oe.height),le=Wt.measuredBounds,Wt=Wt.naturalBounds,ce=Ft.Ab,ce.reset(),ce.translate(oe.x+rt.x,oe.y+rt.y),ce.translate(-le.x,-le.y),Ft.no(ce,Wt.x,Wt.y,Wt.width,Wt.height),Rl(Ft,!1),Ft.wh.set(Ft.Ab),Ft.Kk=Ft.scale,Cl(Ft,!1),Ft.Ng=vt.part,Ft.Me=vt.panel,Ft.gc(y,x),Ft.Me=null,Ft.Ng=null,b&&(a.svg.appendChild(Ft.svg),Ft.svg=null))}}x.$i=E,y.restore(),y.Vc(!0)};function ei(a,y){if(Me.call(this),this.na=null,a===void 0)this.na=ei.Position;else if(typeof a=="string"){var x=Ql.I(a);x!==null&&(this.na=x)}else a instanceof Oa?this.na=a:a&&(this.na=ei.Position,y=a);this.na===null&&ee("Panel type not specified or PanelLayout not loaded: "+a),this.l=this.l|4194304|(this.na===ei.Grid?1048576:0),this.O=new cn,this.yb=Ir,this.Tm=bo,this.Uf=Or,this.$g=null,this.$e="",this.jg=new ue(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=Yi,this.jn=tn,this.kn=Zt,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,y&&Object.assign(this,y)}ye(ei,Me),ei.prototype.cloneProtected=function(a){Me.prototype.cloneProtected.call(this,a),a.na=this.na,a.yb=this.yb.J(),a.Tm=this.Tm.J(),a.Uf=this.Uf,a.$e=this.$e,a.jg.assign(this.jg),this.T!==null&&(a.T=this.T.copy(a)),a.xo=this.xo,a.jn=this.jn.J(),a.kn=this.kn.J(),this.ra!==null&&(a.ra=this.ra.copy()),a.ub=this.ub,a.zn=this.zn,a.Hh=this.Hh},ei.prototype.Af=function(a){Me.prototype.Af.call(this,a),a.O=this.O;for(var y=a.O.s,x=y.length,E=0;E<x;E++)y[E].Me=a;a.$g=null},ei.prototype.copy=function(){var a=Me.prototype.copy.call(this);if(a!==null){for(var y=this.O.s,x=y.length,E=0;E<x;E++){var b=y[E].copy();b.wi(a),b.Ng=null;var z=a.O,tt=z.count;if(z.Gb(tt,b),z=a.part,z!==null){z.Rh=null,b.portId!==null&&z instanceof bi&&(z.Te=!0);var rt=a.diagram;rt!==null&&rt.undoManager.isUndoingRedoing||z.cb($o,"elements",a,null,b,null,tt)}}return a}return null},Ct=ei.prototype,Ct.toString=function(){return"Panel("+this.type.name+")#"+Sr(this)},Ct.Pn=function(a){Me.prototype.Pn.call(this,a);for(var y=this.O.s,x=y.length,E=0;E<x;E++)y[E].Pn(a)},Ct.hh=function(a,y){if(this.na===ei.Grid)a.yc(),this.na.gc(this,a,y);else if(this.na===ei.Graduated)a.yc(),this.na.gc(this,a,y);else{if(this.na===ei.Table)if(a.yc(),a instanceof tl){var x=a.yd;a.yd=fm(a,"gojs-ts"),yv(this,a),a.nh.pop(),a.yd=x}else yv(this,a);(x=this.isClipping&&this.na===ei.Spot)&&a.save();for(var E=this.Pb(),b=this.O.s,z=b.length,tt=0;tt<z;tt++){var rt=b[tt];x&&rt===E&&(a.clipInsteadOfFill=!0),rt.gc(a,y),x&&rt===E&&(a.clipInsteadOfFill=!1)}x&&(a.restore(),a.Vc(!0))}};function yv(a,y){y.lineCap="butt";var x=0<a.rowCount?a.rowDefs:null,E=0<a.columnCount?a.colDefs:null;x!==null&&bm(a,y,!0,x,!0),E!==null&&bm(a,y,!1,E,!0),x!==null&&u1(a,y,!0,x),E!==null&&u1(a,y,!1,E),x!==null&&bm(a,y,!0,x,!1),E!==null&&bm(a,y,!1,E,!1)}function u1(a,y,x,E){for(var b=E.length,z=a.actualBounds,tt=a.naturalBounds,rt=!0,ot=0;ot<b;ot++){var st=E[ot];if(st!==void 0&&st.actual!==0)if(rt)rt=!1;else{if(x){if(st.position>tt.height)continue}else if(st.position>tt.width)continue;var ut=st.separatorStrokeWidth;isNaN(ut)&&(ut=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var ft=st.separatorStroke;if(ft===null&&(ft=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),ut!==0&&ft!==null){fa(a,y,ft,!1,!1,tt,z),ft=!1;var vt=st.separatorDashArray;vt===null&&(vt=x?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),vt!==null&&(ft=!0,y.js(vt,0)),y.beginPath(),vt=st.position+ut,x?vt>tt.height&&(ut-=vt-tt.height):vt>tt.width&&(ut-=vt-tt.width),st=st.position+ut/2,y.lineWidth=ut,ut=a.yb,x?(st+=ut.top,vt=tt.width-ut.right,y.moveTo(ut.left,st),y.lineTo(vt,st)):(st+=ut.left,vt=tt.height-ut.bottom,y.moveTo(st,ut.top),y.lineTo(st,vt)),y.stroke(),y.Se(),ft&&y.fs()}}}}function bm(a,y,x,E,b){for(var z=E.length,tt=a.actualBounds,rt=a.naturalBounds,ot=h1(a,!0),st=h1(a,!1),ut=0;ut<z;ut++){var ft=E[ut];if(ft!==void 0&&ft.background!==null&&ft.coversSeparators!==b&&ft.actual!==0){var vt=x?tt.height:tt.width;if(!(ft.position>vt)){var xt=ft.Wc(),Pt=ft.separatorStrokeWidth;isNaN(Pt)&&(Pt=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var Ft=ft.separatorStroke;Ft===null&&(Ft=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(Ft===null||ft.index===(x?ot:st))&&(Pt=0),xt-=Pt,Pt=ft.position+Pt,xt+=ft.actual,Pt+xt>vt&&(xt=vt-Pt),0>=xt||(vt=a.yb,fa(a,y,ft.background,!0,!1,rt,tt),x?y.fillRect(vt.left,Pt+vt.top,tt.width-(vt.left+vt.right),xt):y.fillRect(Pt+vt.left,vt.top,xt,tt.height-(vt.top+vt.bottom)))}}}}function h1(a,y){for(var x=y?a.rowCount:a.columnCount,E=0;E<x;E++){var b=y?a.rowDefs[E]:a.colDefs[E];if(b!==void 0)return b.index}return 0}function Sv(a){return a==="LineV"||a==="BarV"}Ct.lv=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].lv();this.Uc=!0},Ct.kk=function(a,y,x){if(!Me.prototype.kk.call(this,a,y,x))return!1;if(this.type===ei.Table)x=this.svg.getElementsByClassName("gojs-ts"),x=x.length!==0?x[0]:null,x!==null&&(x.innerHTML=""),a.yd=x,yv(this,a),a.yd=null;else if(this.na===ei.Grid||this.na===ei.Graduated)return this.svg.innerHTML="",this.svg.remove(),!1;x=this.O.s;for(var E=x.length,b=0;b<E;b++)x[b].gc(a,y);return!0},Ct.nk=function(){return!0},Ct.$o=function(a,y,x,E){if(!this.isClipping)if(this.Dd()&&a.bk!==null){a=a.bk,y=this.O.s;for(var b=0,z=0,tt=0;tt<y.length;tt++)if(y[tt].Ed()){var rt=y[tt].actualBounds;b=tt===0?rt.x:Math.min(rt.x,b),z=tt===0?rt.y:Math.min(rt.y,z)}E.setAttributeNS(null,"clip-path","path('M "+(a.x-x.x-b)+","+(a.y-x.y-z)+" l "+a.width+" 0 l 0 "+a.height+" l -"+a.width+" 0 z')")}else Me.prototype.$o.call(this,a,y,x,E)},Ct.Sj=function(a,y,x,E,b){var z=this.se(),tt=this.transform,rt=1/(tt.m11*tt.m22-tt.m12*tt.m21),ot=tt.m22*rt,st=-tt.m12*rt,ut=-tt.m21*rt,ft=tt.m11*rt,vt=rt*(tt.m21*tt.dy-tt.m22*tt.dx),xt=rt*(tt.m12*tt.dx-tt.m11*tt.dy);if(this.areaBackground!==null)return tt=this.actualBounds,me.Ff(tt.left,tt.top,tt.right,tt.bottom,a,y,x,E,b);if(this.background!==null)return z=a*ot+y*ut+vt,rt=a*st+y*ft+xt,a=x*ot+E*ut+vt,ot=x*st+E*ft+xt,b.h(0,0),x=this.naturalBounds,z=me.Ff(0,0,x.width,x.height,z,rt,a,ot,b),b.transform(tt),z;z||(ot=1,ut=st=0,ft=1,xt=vt=0),rt=a*ot+y*ut+vt,a=a*st+y*ft+xt,ot=x*ot+E*ut+vt,x=x*st+E*ft+xt,b.h(ot,x),E=(ot-rt)*(ot-rt)+(x-a)*(x-a),st=!1,ft=this.O.s,xt=ft.length,ut=Bt.alloc(),vt=null,y=1/0;var Pt=null,Ft=this.isClipping&&this.na===ei.Spot;Ft&&(Pt=Bt.alloc(),vt=this.Pb(),(st=vt.Sj(rt,a,ot,x,Pt))&&(y=(rt-Pt.x)*(rt-Pt.x)+(a-Pt.y)*(a-Pt.y)));for(var Xt=0;Xt<xt;Xt++){var Wt=ft[Xt];Wt.visible&&Wt!==vt&&Wt.Sj(rt,a,ot,x,ut)&&(st=!0,Wt=(rt-ut.x)*(rt-ut.x)+(a-ut.y)*(a-ut.y),Wt<E&&(E=Wt,b.set(ut)))}return Ft&&(y>E&&b.set(Pt),Bt.free(Pt)),Bt.free(ut),z&&b.transform(tt),st},Ct.Gj=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Gj();Me.prototype.Gj.call(this)},Ct.v=function(a){if(!hl(this)){Me.prototype.v.call(this,a),a=null,(this.na===ei.Auto||this.na===ei.Link)&&(a=this.Pb());for(var y=this.O.s,x=y.length,E=0;E<x;E++){var b=y[E];if((b===a||b.isPanelMain)&&b.v(!0),!b.desiredSize.w()){var z=zs(b,!1);(b instanceof Ms||b instanceof ei||b instanceof Ro||z!==Hn)&&b.v(!0)}}}},Ct.Uj=function(){if(!hl(this)){Fa(this,!0),Ru(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Uj()}},Ct.Uk=function(){if(!(this.l&2048)){Rl(this,!0),Cl(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()}},Ct.Wu=function(){Cl(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()},Ct.Wl=function(a,y,x,E){var b=this.jg;b.h(0,0,0,0);var z=this.desiredSize,tt=this.minSize;x===void 0&&(x=tt.width,E=tt.height),x=Math.max(x,tt.width),E=Math.max(E,tt.height);var rt=this.maxSize;isNaN(z.width)||(a=Math.min(z.width,rt.width)),isNaN(z.height)||(y=Math.min(z.height,rt.height)),a=Math.max(x,a),y=Math.max(E,y);var ot=this.yb;a=Math.max(a-ot.left-ot.right,0),y=Math.max(y-ot.top-ot.bottom,0);var st=this.O.s;st.length!==0&&this.na.measure(this,a,y,st,b,x,E),a=b.width+ot.left+ot.right,ot=b.height+ot.top+ot.bottom,isFinite(z.width)&&(a=z.width),isFinite(z.height)&&(ot=z.height),a=Math.min(rt.width,a),ot=Math.min(rt.height,ot),a=Math.max(tt.width,a),ot=Math.max(tt.height,ot),a=Math.max(x,a),ot=Math.max(E,ot),Un(b,a,ot),Un(this.naturalBounds,a,ot),this.Ge(0,0,a,ot)},Ct.Pb=function(){if(this.$g===null){var a=this.O.s,y=a.length;if(y===0)return null;for(var x=0;x<y;x++){var E=a[x];if(E.isPanelMain===!0)return this.$g=E}this.$g=a[0]}return this.$g};function ah(a){return a.part!==null?a.part.locationObject:null}Ct.eh=function(a,y,x,E){var b=this.O.s;if(this.actualBounds.h(a,y,x,E),b.length!==0){if(!this.desiredSize.w()){a=zs(this,!0);var z=this.measuredBounds;y=z.width,z=z.height;var tt=this.Kg,rt=tt.left+tt.right;switch(tt=tt.top+tt.bottom,y===x&&z===E&&(a=Hn),a){case Hn:(y>x||z>E)&&(this.v(),this.measure(y>x?x:y,z>E?E:z,0,0));break;case Qn:this.v(!0),this.measure(x+rt,E+tt,0,0);break;case $i:this.v(!0),this.measure(x+rt,z+tt,0,0);break;case mr:this.v(!0),this.measure(y+rt,E+tt,0,0)}}this.na.arrange(this,b,this.jg)}},Ct.gh=function(a){var y=this.naturalBounds,x=ah(this);if(Bi(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var E=y.length,b=Bt.allocAt(0,0);E--;){var z=y[E];if((z.visible||z===x)&&(_e(b.set(a),z.transform),z.ca(b)))return Bt.free(b),!0}return Bt.free(b),!(this.Ma===null&&this.areaBackground===null)}return!1},Ct.ks=function(a){if(this.bindingId===a)return this;for(var y=this.O.s,x=y.length,E=0;E<x;E++){var b=y[E].ks(a);if(b!==null)return b}return null},Ct.qm=function(a,y){if(y(this,a),a instanceof ei){a=a.O.s;for(var x=a.length,E=0;E<x;E++)this.qm(a[E],y)}};function Qd(a,y){d1(a,a,y)}function d1(a,y,x){x(y),y=y.O.s;for(var E=y.length,b=0;b<E;b++){var z=y[b];z instanceof ei&&d1(a,z,x)}}function Lx(a,y){c1(a,a,y)}function c1(a,y,x){if(x(y),y instanceof ei){y=y.O.s;for(var E=y.length,b=0;b<E;b++)c1(a,y[b],x)}}Ct.Nl=function(a){return f1(this,this,a)};function f1(a,y,x){if(x(y))return y;if(y instanceof ei){y=y.O.s;for(var E=y.length,b=0;b<E;b++){var z=f1(a,y[b],x);if(z!==null)return z}}return null}Ct.fb=function(a){if(this.name===a)return this;var y=this.O.s,x=y.length;this.Hh===null&&this.itemTemplateMap===null||(x=Qg(this));for(var E=0;E<x;E++){var b=y[E];if(b instanceof ei){var z=b.fb(a);if(z!==null)return z}if(b.name===a)return b}return null};function g1(a){a=a.O.s;for(var y=a.length,x=0,E=0;E<y;E++){var b=a[E];b instanceof ei?x=Math.max(x,g1(b)):b instanceof Wr&&(x=Math.max(x,b.ig/2*b.strokeMiterLimit*b.Df()))}return x}Ct.se=function(){return!(this.type===ei.TableRow||this.type===ei.TableColumn)};function kh(a){return a.type===ei.TableRow||a.type===ei.TableColumn}Ct.ic=function(a,y,x){if(this.pickable===!1||(y===void 0&&(y=null),x===void 0&&(x=null),Ls(this)))return null;var E=this.naturalBounds,b=1/this.Df(),z=this.se(),tt=z?a:_e(Bt.allocAt(a.x,a.y),this.transform),rt=this.diagram,ot=10,st=5;if(rt!==null&&(ot=rt.Ql("extraTouchArea"),st=ot/2),Bi(-(st*b),-(st*b),E.width+ot*b,E.height+ot*b,tt.x,tt.y)){if(!this.isAtomic){b=this.O.s;var ut=b.length;if(rt=Bt.alloc(),st=(ot=this.isClipping&&this.na===ei.Spot)?this.Pb():null,ot&&(st.se()?_e(rt.set(a),st.transform):rt.set(a),!st.ca(rt)))return Bt.free(rt),z||Bt.free(tt),null;for(var ft=ah(this);ut--;){var vt=b[ut];if((vt.visible||vt===ft)&&(vt.se()?_e(rt.set(a),vt.transform):rt.set(a),!ot||vt!==st)){var xt=null;if(vt instanceof ei?xt=vt.ic(rt,y,x):vt.pickable===!0&&vt.ca(rt)&&(xt=vt),xt!==null&&(y!==null&&(xt=y(xt)),xt!==null&&(x===null||x(xt))))return Bt.free(rt),z||Bt.free(tt),xt}}Bt.free(rt)}return this.background===null&&this.areaBackground===null?(z||Bt.free(tt),null):(a=Bi(0,0,E.width,E.height,tt.x,tt.y)?this:null,z||Bt.free(tt),a)}return z||Bt.free(tt),null},Ct.ji=function(a,y,x,E){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var b=this.naturalBounds,z=this.se(),tt=z?a:_e(Bt.allocAt(a.x,a.y),this.transform);if(b=Bi(0,0,b.width,b.height,tt.x,tt.y),kh(this)||b){if(!this.isAtomic){for(var rt=this.O.s,ot=rt.length,st=Bt.alloc(),ut=ah(this);ot--;){var ft=rt[ot];if(ft.visible||ft===ut){ft.se()?_e(st.set(a),ft.transform):st.set(a);var vt=ft;ft=ft instanceof ei?ft:null,(ft!==null?ft.ji(st,y,x,E):vt.ca(st))&&vt.pickable!==!1&&(y!==null&&(vt=y(vt)),vt===null||x!==null&&!x(vt)||E.add(vt))}}Bt.free(st)}return z||Bt.free(tt),b&&(this.background!==null||this.areaBackground!==null)}return z||Bt.free(tt),!1},Ct.Cf=function(a,y,x,E,b,z){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var tt=z;if(z===void 0&&(tt=Ei.alloc(),tt.reset()),tt.multiply(this.transform),this.fh(a,tt))return xv(this,y,x,b),z===void 0&&Ei.free(tt),!0;if(this.Yc(a,tt)){if(!this.isAtomic)for(var rt=ah(this),ot=this.O.s,st=ot.length;st--;){var ut=ot[st];if(ut.visible||ut===rt){var ft=ut.actualBounds,vt=this.naturalBounds;ft.x>vt.width||ft.y>vt.height||0>ft.x+ft.width||0>ft.y+ft.height||(ft=ut,ut=ut instanceof ei?ut:null,vt=Ei.alloc(),vt.set(tt),(ut!==null?ut.Cf(a,y,x,E,b,vt):ja(ft,a,E,vt))&&(y!==null&&(ft=y(ft)),ft===null||x!==null&&!x(ft)||b.add(ft)),Ei.free(vt))}}return z===void 0&&Ei.free(tt),E}return z===void 0&&Ei.free(tt),!1};function xv(a,y,x,E){for(var b=a.O.s,z=b.length;z--;){var tt=b[z];if(tt.visible){var rt=tt.actualBounds,ot=a.naturalBounds;rt.x>ot.width||rt.y>ot.height||0>rt.x+rt.width||0>rt.y+rt.height||(tt instanceof ei&&xv(tt,y,x,E),y!==null&&(tt=y(tt)),tt===null||x!==null&&!x(tt)||E.add(tt))}}}Ct.og=function(a,y,x,E,b,z){if(this.pickable===!1)return!1;x===void 0&&(x=null),E===void 0&&(E=null);var tt=this.naturalBounds,rt=this.se(),ot=rt?a:_e(Bt.allocAt(a.x,a.y),this.transform),st=rt?y:_e(Bt.allocAt(y.x,y.y),this.transform),ut=ot.Bf(st),ft=0<ot.x&&ot.x<tt.width&&0<ot.y&&ot.y<tt.height||hn(ot.x,ot.y,0,0,0,tt.height)<=ut||hn(ot.x,ot.y,0,tt.height,tt.width,tt.height)<=ut||hn(ot.x,ot.y,tt.width,tt.height,tt.width,0)<=ut||hn(ot.x,ot.y,tt.width,0,0,0)<=ut;if(tt=ot.zd(0,0)<=ut&&ot.zd(0,tt.height)<=ut&&ot.zd(tt.width,0)<=ut&&ot.zd(tt.width,tt.height)<=ut,rt||(Bt.free(ot),Bt.free(st)),ft){if(!this.isAtomic){ot=Bt.alloc(),st=Bt.alloc(),ut=ah(this);for(var vt=this.O.s,xt=vt.length;xt--;){var Pt=vt[xt];if(Pt.visible||Pt===ut){var Ft=Pt.actualBounds,Xt=this.naturalBounds;(!rt||!(Ft.x>Xt.width||Ft.y>Xt.height||0>Ft.x+Ft.width||0>Ft.y+Ft.height))&&(Pt.se()?(Ft=Pt.transform,_e(ot.set(a),Ft),_e(st.set(y),Ft)):(ot.set(a),st.set(y)),Ft=Pt,Pt=Pt instanceof ei?Pt:null,(Pt!==null?Pt.og(ot,st,x,E,b,z):Ft.tx(ot,st,b))&&(x!==null&&(Ft=x(Ft)),Ft===null||E!==null&&!E(Ft)||z.add(Ft)))}}Bt.free(ot),Bt.free(st)}return b?ft:tt}return!1};function wv(a){var y=null;return a instanceof Wr&&(y=a.spot1,y===bo&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=ar),y}function Pv(a){var y=null;return a instanceof Wr&&(y=a.spot2,y===bo&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=jr),y}Ct.add=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];for(x=0;x<y.length;x++)this.Gb(this.O.count,y[x]);return this},Ct.M=function(a){return this.O.M(a)},Ct.Gb=function(a,y){y instanceof rr&&ee("Cannot add a Part to a Panel: "+y+"; use a Panel instead"),(this===y||this.rg(y))&&(this===y&&ee("Cannot make a Panel contain itself: "+this.toString()),ee("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+y.toString()));var x=y.panel;if(x!==null&&x!==this&&ee("Cannot add a GraphObject that already belongs to another Panel to this Panel: "+y.toString()+", already contained by "+x.toString()+", cannot be shared by this Panel: "+this.toString()),this.na!==ei.Grid||y instanceof Wr||ee("Can only add Shapes to a Grid Panel, not: "+y),this.na!==ei.Graduated||y instanceof Wr||y instanceof Ro||ee("Can only add Shapes or TextBlocks to a Graduated Panel, not: "+y),y.wi(this),y.Ng=null,this.itemArray!==null){var E=y.data;E!==null&&typeof E=="object"&&(this.ge===null&&(this.ge=new on),this.ge.add(E,y))}var b=this.O;if(E=-1,x===this){for(var z=-1,tt=this.O.s,rt=tt.length,ot=0;ot<rt;ot++)if(tt[ot]===y){z=ot;break}if(z!==-1){if(z===a||z+1>=b.count&&a>=b.count)return;b.mb(z),E=z}else ee("element "+y.toString()+" has panel "+x.toString()+" but is not contained by it.")}(0>a||a>b.count)&&(a=b.count),b.Gb(a,y),(a===0||y.isPanelMain)&&(this.$g=null),hl(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof ei&&y.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||km(this,y,!1),x=this.part,x!==null&&(x.Rh=null,x.ag=NaN,this.Te&&x instanceof bi&&(x.Te=!0),x.Te&&x instanceof bi&&(x.wc=null),b=this.diagram,b!==null&&b.undoManager.isUndoingRedoing||(E!==-1&&x.cb(ca,"elements",this,y,null,E,null),x.cb($o,"elements",this,null,y,null,a)))};function Cv(a,y){a.l=y?a.l|16777216:a.l&-16777217}Ct.remove=function(a){for(var y=this.O.s,x=y.length,E=-1,b=0;b<x;b++)if(y[b]===a){E=b;break}E!==-1&&this.pc(E,!0)},Ct.mb=function(a){0<=a&&this.pc(a,!0)},Ct.pc=function(a,y){var x=this.O,E=x.M(a);if(E.Ng=null,E.wi(null),this.ge!==null){var b=E.data;typeof b=="object"&&this.ge.remove(b)}x.mb(a),Fa(this,!1),this.v(),this.$g===E&&(this.$g=null),this.graduatedIntervals=null;var z=this.part;z!==null&&(z.Rh=null,z.ag=NaN,z.Wb(),z instanceof bi&&(E instanceof ei?E.qm(E,function(tt,rt){Yv(z,rt,y)}):Yv(z,E,y)),x=this.diagram,x!==null&&x.undoManager.isUndoingRedoing||z.cb(ca,"elements",this,E,null,a,null))},Ct.Fb=function(a){0>a&&Vn(a,">= 0",ei,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new Da;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb($o,"rowdefs",this,null,x,null,a)}return y[a]},Ct.oA=function(a){if(0>a&&Vn(a,">= 0",ei,"removeRowDefinition:idx"),this.rowCount!==0){a=Math.round(a);var y=this.rowDefs,x=y[a];if(x){y[a]=void 0;for(var E=y.length-1;0<=E&&y[E--]===void 0;)y.length--;this.cb(ca,"rowdefs",this,x,null,a,null),this.v()}}};function p1(a,y,x){var E=a.rowDefs;if(!(0>y)){if(E[y]=x instanceof Da?x:void 0,!x)for(y=E.length-1;0<=y&&E[y--]===void 0;)E.length--;a.v()}}Ct.Eb=function(a){0>a&&Vn(a,">= 0",ei,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new Da;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb($o,"coldefs",this,null,x,null,a)}return y[a]},Ct.jA=function(a){if(0>a&&Vn(a,">= 0",ei,"removeColumnDefinition:idx"),this.columnCount!==0){a=Math.round(a);var y=this.colDefs,x=y[a];if(x){y[a]=void 0;for(var E=y.length-1;0<=E&&y[E--]===void 0;)y.length--;this.cb(ca,"coldefs",this,x,null,a,null),this.v()}}};function m1(a,y,x){var E=a.colDefs;if(!(0>y)){if(E[y]=x instanceof Da?x:void 0,!x)for(y=E.length-1;0<=y&&E[y--]===void 0;)E.length--;a.v()}}Ct.Gy=function(a){var y=null;return a.isRow?y=this.Fb(a.index):a.isRow||(y=this.Eb(a.index)),y&&Fm(y,a),this},Ct.Hy=function(a,y){return(a=this.Fb(a))&&Fm(a,new Da(y)),this},Ct.By=function(a,y){return(a=this.Eb(a))&&Fm(a,new Da(y)),this},Ct.nz=function(a){if(0>a||this.type!==ei.Table||this.rowCount===0)return-1;for(var y=0,x=this.rowDefs,E=x.length,b=this.topIndex;b<E;b++){var z=x[b];if(z!==void 0&&(y+=z.total,a<y))break}return b},Ct.fz=function(a){if(0>a||this.type!==ei.Table||this.columnCount===0)return-1;for(var y=0,x=this.colDefs,E=x.length,b=this.leftIndex;b<E;b++){var z=x[b];if(z!==void 0&&(y+=z.total,a<y))break}return b},Ct.Fz=function(a,y){if(y===void 0&&(y=new Bt(NaN,NaN)),this.type!==ei.Graduated)return y.h(NaN,NaN),y;a=Math.min(Math.max(a,this.graduatedMin),this.graduatedMax);var x=this.Pb();return x.geometry.Pu((a-this.graduatedMin)/this.graduatedRange,y),x.transform.Ga(y)},Ct.Gz=function(a){if(this.type!==ei.Graduated)return NaN;var y=this.Pb();return y.transform.Cd(a),y.geometry.xx(a)*this.graduatedRange+this.graduatedMin};function v1(a){return a=a.allBindings,a!==null&&a._isFrozen}function jl(a){var y=a.allBindings;if(y===null)a.data!==null&&ee("Template cannot have .data be non-null: "+a),a.allBindings=y=new cn;else if(y._isFrozen)return;var x=new cn;Cv(a,!1),a.qm(a,function(st,ut){ut.th();var ft=ut.localBindings;if(ft!==null)for(Bc(ut,!1),ft=ft.iterator;ft.next();){var vt=ft.value;vt.mode===Sp&&Bc(ut,!0);var xt=vt.sourceName;xt!==null&&(xt==="/"&&Cv(st,!0),xt=DS(vt,st,ut),xt!==null&&(x.add(xt),xt.srcBindings===null&&(xt.srcBindings=new cn),xt.srcBindings.add(vt))),y.add(vt)}if(ut instanceof ei&&ut.type===ei.Table){if(0<ut.rowCount){for(st=ut.rowDefs,ft=st.length,vt=0;vt<ft;vt++)if(xt=st[vt],xt!==void 0&&xt.be!==null)for(var Pt=xt.be.iterator;Pt.next();){var Ft=Pt.value;Ft.xd=xt,Ft.to=2,Ft.wl=xt.index,y.add(Ft)}}if(0<ut.columnCount){for(ut=ut.colDefs,st=ut.length,ft=0;ft<st;ft++)if(vt=ut[ft],vt!==void 0&&vt.be!==null)for(xt=vt.be.iterator;xt.next();)Pt=xt.value,Pt.xd=vt,Pt.to=1,Pt.wl=vt.index,y.add(Pt)}}});for(var E=x.iterator;E.next();){var b=E.value;if(b.srcBindings!==null){Bc(b,!0);for(var z=b.srcBindings.iterator;z.next();){var tt=z.value;b.localBindings===null&&(b.localBindings=new cn),b.localBindings.add(tt)}}b.srcBindings=null}for(E=y.iterator;E.next();)if(b=E.value,z=b.xd,z!==null){b.xd=null;var rt=b.targetProperty,ot=rt.indexOf(".");0<ot&&z instanceof ei&&(tt=rt.substring(0,ot),rt=rt.substr(ot+1),ot=z.fb(tt),ot!==null?(z=ot,b.targetProperty=rt):_n('Warning: unable to find GraphObject named "'+tt+'" for Binding: '+b.toString())),z instanceof Da?(tt=Sr(z.panel),b.Ai=tt===void 0?-1:tt,z.panel.bindingId=b.Ai):z instanceof Me?(tt=Sr(z),b.Ai=tt===void 0?-1:tt,z.bindingId=b.Ai):ee("Unknown type of binding target: "+z)}y.freeze(),a instanceof rr&&a.Zc()&&a.Va()}Ct.Uy=function(a){a===void 0&&(a=!1);var y=this.copy();return Lx(y,function(x){x instanceof ei&&(x.allBindings=null,x.ub=null);var E=x.localBindings;E!==null&&(x.localBindings=null,E.each(function(b){x.bind(b.copy())})),E=x.animationTriggers,E!==null&&(x.animationTriggers=null,E.each(function(b){x.Jv(b.value.copy())}))}),a&&jl(y),y},Ct.La=function(a){var y=this.allBindings;if(y!==null)for(a===void 0&&(a=""),y=y.iterator;y.next();){var x=y.value,E=x.sourceProperty;if((a===""||E===""||E===a)&&(E=x.targetProperty,x.converter!==null||E!=="")){E=this.data;var b=x.sourceName;if(b!==null){if(b==="")E=this;else if(b==="/")E=this;else if(b===".")E=this;else if(b==="..")E=this;else if(E=this.fb(b),E===null)continue}else if(x.isToModel)if(E=this.diagram,E!==null)E=E.model.modelData;else continue;var z=this,tt=x.Ai;if(tt!==-1){if(z=this.ks(tt),z===null)continue}else x.xd!==null&&(z=x.xd);if(b==="/"?E=z.part:b==="."?E=z:b===".."&&(E=z.panel),b=x.to,b!==0){if(!(z instanceof ei))continue;b===1?z=z.Eb(x.wl):b===2&&(z=z.Fb(x.wl))}z!==void 0&&x.Mv(z,E)}}},Ct.sx=function(a){return a==null||this.ge===null?null:this.ge.I(a)};function bx(a,y){a=a.O.s;for(var x=a.length,E=y.length,b=0,z=null;b<x&&(z=a[b],!(z instanceof ei&&z.data!==null));)b++,z=a[b];if(x-b!==E)return!0;if(z===null)return 0<E;for(var tt=0;b<x&&tt<E;){if(z=a[b],!(z instanceof ei)||z.data!==y[tt])return!0;b++,tt++}return!1}function Qg(a){if(a.type===ei.Spot||a.type===ei.Auto)return Math.min(a.O.length,1);if(a.type===ei.Link){a=a.O;for(var y=a.length,x=0;x<y;x++){var E=a.M(x);if(!(E instanceof Wr&&E.isPanelMain))break}return x}return a.type===ei.Table&&0<a.O.length&&(a=a.O.M(0),a.isPanelMain&&a instanceof ei&&kh(a))?1:0}Ct.mv=function(){for(var a=Qg(this);this.O.length>a;)this.pc(this.O.length-1,!1);y1(this,this.itemArray)};function y1(a,y){var x=Qg(a);if(y===null||y.length===0)for(;a.O.length>x;)a.pc(a.O.length-1,!1);else if(a.O.length<=x){x=y.length;for(var E=0;E<x;E++)Mm(a,y[E],E,!0)}else{E=x;for(var b=0;b<y.length;b++,E++){var z=y[b],tt=E<a.O.length?a.O.M(E):null;if(tt instanceof ei){if(tt.data!==z){var rt=Av(a,tt.data),ot=Av(a,z),st=ot!==rt;st||(rt=Lv(a,rt),st=Lv(a,ot)!==rt),st?(a.pc(E,!1),Mm(a,z,b,!1)):tt.data=z}}else Mm(a,z,b,!1)}for(;E<a.O.length;)a.pc(E,!1);a.$g=null,Ev(a,x,0),hl(a)||a.v(),a.graduatedIntervals=null,a.If()||km(a,a,!1),y=a.part,y!==null&&(y.Rh=null,y.ag=NaN,a.Te&&y instanceof bi&&(y.Te=!0),y.Te&&y instanceof bi&&(y.wc=null))}}function Mm(a,y,x,E){if(!(y==null||0>x)){var b=Av(a,y);if(b=Lv(a,b),b!==null){if(jl(b),b=b.copy(),b.l&16777216){var z=a.ih();z!==null&&Cv(z,!0)}typeof y=="object"&&(a.ge===null&&(a.ge=new on),a.ge.add(y,b)),z=x+Qg(a),a.Gb(z,b),E&&(b.ub=y,Ev(a,z,x),b.ub=null),b.data=y}}}function Ev(a,y,x){for(a=a.O;y<a.length;){var E=a.M(y);if(E instanceof ei){var b=y,z=x;E.type===ei.TableRow?E.row=b:E.type===ei.TableColumn&&(E.column=b),E.itemIndex=z}y++,x++}}function Av(a,y){if(y===null)return"";if(a=a.itemCategoryProperty,typeof a=="function")a=a(y);else if(typeof a=="string"&&typeof y=="object"){if(a==="")return"";a=wa(y,a)}else return"";if(a===void 0)return"";if(typeof a=="string")return a;ee("Panel.getCategoryForItemData found a non-string category for "+y+": "+a)}function Lv(a,y){var x=a.itemTemplateMap,E=null;return x!==null&&(E=x.I(y)),E===null&&(x!==null&&(E=x.I("")),E===null&&(S1||(S1=!0,_n('No item template Panel found for category "'+y+'" on '+a),_n(" Using default item template."),a=new ei,y=new Ro,y.bind(new Ea("text","",Zi)),a.add(y),x1=a),E=x1)),E}function km(a,y,x){var E=y.enabledChanged;if(E!==null&&E(y,x),y instanceof ei){y=y.O.s,E=y.length;for(var b=0;b<E;b++){var z=y[b];x&&z instanceof ei&&!z.isEnabled||km(a,z,x)}}}function Lu(a,y){y.name=a,Ql.add(a,y)}xe.Object.defineProperties(ei.prototype,{type:{get:function(){return this.na},set:function(a){var y=this.na;y!==a&&(this.na=a,this.isAtomic=this.na===ei.Grid,this.v(),this.g("type",y,a))}},elements:{get:function(){return this.O.iterator}},naturalBounds:{get:function(){return this.dc}},padding:{get:function(){return this.yb},set:function(a){typeof a=="number"?(0>a&&Vn(a,">= 0",ei,"padding"),a=new Di(a)):(0>a.left&&Vn(a.left,">= 0",ei,"padding:value.left"),0>a.right&&Vn(a.right,">= 0",ei,"padding:value.right"),0>a.top&&Vn(a.top,">= 0",ei,"padding:value.top"),0>a.bottom&&Vn(a.bottom,">= 0",ei,"padding:value.bottom"));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.v(),this.g("padding",y,a))}},defaultAlignment:{get:function(){return this.Tm},set:function(a){var y=this.Tm;y.D(a)||(this.Tm=a=a.J(),this.v(),this.g("defaultAlignment",y,a))}},defaultStretch:{get:function(){return this.Uf},set:function(a){var y=this.Uf;y!==a&&(this.Uf=a,this.v(),this.g("defaultStretch",y,a))}},defaultSeparatorPadding:{get:function(){return this.T!==null?this.T.Qp:Ir},set:function(a){typeof a=="number"&&(a=new Di(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new Ll),this.T.Qp=a,this.v(),this.g("defaultSeparatorPadding",y,a))}},defaultRowSeparatorStroke:{get:function(){return this.T!==null?this.T.ia:null},set:function(a){var y=this.defaultRowSeparatorStroke;y!==a&&(a===null||typeof a=="string"||a instanceof wo)&&(a instanceof wo&&a.freeze(),this.T===null&&(this.T=new Ll),this.T.ia=a,this.N(),this.g("defaultRowSeparatorStroke",y,a))}},defaultRowSeparatorStrokeWidth:{get:function(){return this.T!==null?this.T.Ha:1},set:function(a){var y=this.defaultRowSeparatorStrokeWidth;y!==a&&isFinite(a)&&0<=a&&(this.T===null&&(this.T=new Ll),this.T.Ha=a,this.v(),this.g("defaultRowSeparatorStrokeWidth",y,a))}},defaultRowSeparatorDashArray:{get:function(){return this.T!==null?this.T.V:null},set:function(a){var y=this.defaultRowSeparatorDashArray;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;b<x;b++){var z=a[b];typeof z=="number"&&0<=z&&isFinite(z)||ee("defaultRowSeparatorDashArray value "+z+" at index "+b+" must be a positive number or zero."),E+=z}if(E===0){if(y===null)return;a=null}}this.T===null&&(this.T=new Ll),this.T.V=a,this.N(),this.g("defaultRowSeparatorDashArray",y,a)}}},defaultColumnSeparatorStroke:{get:function(){return this.T!==null?this.T.u:null},set:function(a){var y=this.defaultColumnSeparatorStroke;y!==a&&(a===null||typeof a=="string"||a instanceof wo)&&(a instanceof wo&&a.freeze(),this.T===null&&(this.T=new Ll),this.T.u=a,this.N(),this.g("defaultColumnSeparatorStroke",y,a))}},defaultColumnSeparatorStrokeWidth:{get:function(){return this.T!==null?this.T.F:1},set:function(a){var y=this.defaultColumnSeparatorStrokeWidth;y!==a&&isFinite(a)&&0<=a&&(this.T===null&&(this.T=new Ll),this.T.F=a,this.v(),this.g("defaultColumnSeparatorStrokeWidth",y,a))}},defaultColumnSeparatorDashArray:{get:function(){return this.T!==null?this.T.o:null},set:function(a){var y=this.defaultColumnSeparatorDashArray;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;b<x;b++){var z=a[b];typeof z=="number"&&0<=z&&isFinite(z)||ee("defaultColumnSeparatorDashArray value "+z+" at index "+b+" must be a positive number or zero."),E+=z}if(E===0){if(y===null)return;a=null}}this.T===null&&(this.T=new Ll),this.T.o=a,this.N(),this.g("defaultColumnSeparatorDashArray",y,a)}}},inRowsCols:{get:function(){return this.T!==null?this.T.nb:null},set:function(a){this.T===null&&(this.T=new Ll),this.T.nb=a}},viewboxStretch:{get:function(){return this.xo},set:function(a){var y=this.xo;y!==a&&(this.xo=a,this.v(),this.g("viewboxStretch",y,a))}},gridCellSize:{get:function(){return this.jn},set:function(a){var y=this.jn;if(!y.D(a)){a.w()&&a.width!==0&&a.height!==0||ee("Invalid Panel.gridCellSize: "+a),this.jn=a.J();var x=this.diagram;x!==null&&this===x.grid&&Cu(x),this.N(),this.g("gridCellSize",y,a)}}},gridOrigin:{get:function(){return this.kn},set:function(a){var y=this.kn;if(!y.D(a)){a.w()||ee("Invalid Panel.gridOrigin: "+a),this.kn=a.J();var x=this.diagram;x!==null&&this===x.grid&&Cu(x),this.N(),this.g("gridOrigin",y,a)}}},graduatedMin:{get:function(){return this.ra!==null?this.ra.lq:0},set:function(a){var y=this.graduatedMin;y!==a&&(this.ra===null&&(this.ra=new sh),this.ra.lq=a,this.v(),this.g("graduatedMin",y,a),is(this)&&(a=this.part,a!==null&&_o(this,a,"graduatedRange")))}},graduatedMax:{get:function(){return this.ra!==null?this.ra.F:100},set:function(a){var y=this.graduatedMax;y!==a&&(this.ra===null&&(this.ra=new sh),this.ra.F=a,this.v(),this.g("graduatedMax",y,a),is(this)&&(a=this.part,a!==null&&_o(this,a,"graduatedRange")))}},graduatedRange:{get:function(){return this.graduatedMax-this.graduatedMin}},graduatedTickUnit:{get:function(){return this.ra!==null?this.ra.ia:10},set:function(a){var y=this.graduatedTickUnit;y!==a&&0<a&&(this.ra===null&&(this.ra=new sh),this.ra.ia=a,this.v(),this.g("graduatedTickUnit",y,a))}},graduatedTickBase:{get:function(){return this.ra!==null?this.ra.V:0},set:function(a){var y=this.graduatedTickBase;y!==a&&(this.ra===null&&(this.ra=new sh),this.ra.V=a,this.v(),this.g("graduatedTickBase",y,a))}},graduatedMarks:{get:function(){return this.ra!==null?this.ra.u:null},set:function(a){this.ra!==null?this.ra.u=a:a!==null&&(this.ra=new sh,this.ra.u=a)}},graduatedBounds:{get:function(){return this.ra!==null?this.ra.j:null},set:function(a){this.ra!==null?this.ra.j=a:a!==null&&(this.ra=new sh,this.ra.j=a)}},graduatedIntervals:{get:function(){return this.ra!==null?this.ra.o:null},set:function(a){this.ra!==null?this.ra.o=a:a!==null&&(this.ra=new sh,this.ra.o=a)}},temporaryTextBlock:{get:function(){return this.ra!==null?this.ra.Zh:null},set:function(a){this.ra!==null?this.ra.Zh=a:a!==null&&(this.ra=new sh,this.ra.Zh=a)}},panelLayoutState:{get:function(){return this.F},set:function(a){this.F=a}},Te:{get:function(){return(this.l&8388608)!==0},set:function(a){(this.l&8388608)!==0!==a&&(this.l^=8388608)}},rowDefs:{get:function(){return this.T===null&&(this.T=new Ll),this.T.Pc}},rowCount:{get:function(){return this.T===null?0:this.rowDefs.length}},colDefs:{get:function(){return this.T===null&&(this.T=new Ll),this.T.Oc}},columnCount:{get:function(){return this.T===null?0:this.colDefs.length}},rowSizing:{get:function(){return this.T!==null?this.T.ob:Nm},set:function(a){var y=this.rowSizing;y!==a&&(this.T===null&&(this.T=new Ll),this.T.ob=a,this.v(),this.g("rowSizing",y,a))}},columnSizing:{get:function(){return this.T!==null?this.T.j:Nm},set:function(a){var y=this.columnSizing;y!==a&&(this.T===null&&(this.T=new Ll),this.T.j=a,this.v(),this.g("columnSizing",y,a))}},topIndex:{get:function(){return this.T!==null?this.T.Hb:0},set:function(a){var y=this.topIndex;y!==a&&((!isFinite(a)||0>a)&&ee("Panel.topIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new Ll),this.T.Hb=a,this.v(),this.g("topIndex",y,a))}},leftIndex:{get:function(){return this.T!==null?this.T.hb:0},set:function(a){var y=this.leftIndex;y!==a&&((!isFinite(a)||0>a)&&ee("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new Ll),this.T.hb=a,this.v(),this.g("leftIndex",y,a))}},data:{get:function(){return this.ub},set:function(a){var y=this.ub;if(y!==a){var x=this instanceof rr&&!(this instanceof uo);jl(this),this.ub=a;var E=this.diagram;E!==null&&(x?(x=E.partManager,this instanceof di?(y!==null&&x.bf.remove(y),a!==null&&x.bf.add(a,this)):this instanceof rr&&(y!==null&&x.cf.remove(y),a!==null&&x.cf.add(a,this))):(x=this.panel,x!==null&&x.ge!==null&&(y!==null&&x.ge.remove(y),a!==null&&x.ge.add(a,this)))),this.g("data",y,a),E!==null&&E.undoManager.isUndoingRedoing||a!==null&&this.La()}}},itemIndex:{get:function(){return this.zn},set:function(a){var y=this.zn;y!==a&&(this.zn=a,this.g("itemIndex",y,a))}},allBindings:{get:function(){return this.A!==null?this.A.nb:null},set:function(a){this.localBindings!==a&&(this.A===null&&(this.A=new Tc),this.A.nb=a)}},itemArray:{get:function(){return this.Hh},set:function(a){var y=this.Hh;if(y!==a||a!==null&&bx(this,a)){var x=this.diagram;y!==a&&(x!==null&&y!==null&&cy(x.partManager,this,x),this.Hh=a,x!==null&&a!==null&&dy(x.partManager,this)),this.g("itemArray",y,a),x!==null&&x.undoManager.isUndoingRedoing||y1(this,a)}}},itemTemplate:{get:function(){return this.itemTemplateMap===null?null:this.itemTemplateMap.I("")},set:function(a){if(this.itemTemplateMap===null){if(a===null)return;this.itemTemplateMap=new on}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof rr||a.isPanelMain)&&ee("Panel.itemTemplate must not be a Part or be Panel.isPanelMain: "+a),this.itemTemplateMap.add("",a),this.g("itemTemplate",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.mv())}},itemTemplateMap:{get:function(){return this.A!==null?this.A.Pc:null},set:function(a){var y=this.itemTemplateMap;if(y!==a){for(var x=a.iterator;x.next(););Gr(this),this.A.Pc=a,this.g("itemTemplateMap",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.mv()}}},itemCategoryProperty:{get:function(){return this.A!==null?this.A.Oc:"category"},set:function(a){var y=this.itemCategoryProperty;y!==a&&(Gr(this),this.A.Oc=a,this.g("itemCategoryProperty",y,a))}},isAtomic:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.g("isAtomic",y,a))}},isClipping:{get:function(){return(this.l&2097152)!==0},set:function(a){var y=(this.l&2097152)!==0;y!==a&&(this.l^=2097152,this instanceof Tr&&(this.tb=null),this.v(),this.g("isClipping",y,a))}},isOpposite:{get:function(){return(this.l&33554432)!==0},set:function(a){var y=(this.l&33554432)!==0;y!==a&&(this.l^=33554432,this.v(),this.g("isOpposite",y,a))}},isEnabled:{get:function(){return(this.l&4194304)!==0},set:function(a){var y=(this.l&4194304)!==0;if(y!==a){var x=this.panel===null||this.panel.If();this.l^=4194304,this.g("isEnabled",y,a),y=this.diagram,y!==null&&y.undoManager.isUndoingRedoing||x&&km(this,this,a)}}},alignmentFocusName:{get:function(){return this.$e},set:function(a){var y=this.$e;y!==a&&(this.$e=a,this.v(),this.g("alignmentFocusName",y,a))}}}),xe.Object.defineProperties(ei,{Position:{get:function(){return Ql.I("Position")}},Horizontal:{get:function(){return Ql.I("Horizontal")}},Vertical:{get:function(){return Ql.I("Vertical")}},Spot:{get:function(){return Ql.I("Spot")}},Auto:{get:function(){return Ql.I("Auto")}},Table:{get:function(){return Ql.I("Table")}},Viewbox:{get:function(){return Ql.I("Viewbox")}},TableRow:{get:function(){return Ql.I("TableRow")}},TableColumn:{get:function(){return Ql.I("TableColumn")}},Link:{get:function(){return Ql.I("Link")}},Grid:{get:function(){return Ql.I("Grid")}},Graduated:{get:function(){return Ql.I("Graduated")}}}),ei.prototype.rebuildItemElements=ei.prototype.mv,ei.prototype.findItemPanelForData=ei.prototype.sx,ei.prototype.updateTargetBindings=ei.prototype.La,ei.prototype.copyTemplate=ei.prototype.Uy,ei.prototype.graduatedValueForPoint=ei.prototype.Gz,ei.prototype.graduatedPointForValue=ei.prototype.Fz,ei.prototype.findColumnForLocalX=ei.prototype.fz,ei.prototype.findRowForLocalY=ei.prototype.nz,ei.prototype.addColumnDefinition=ei.prototype.By,ei.prototype.addRowDefinition=ei.prototype.Hy,ei.prototype.addRowColumnDefinition=ei.prototype.Gy,ei.prototype.removeColumnDefinition=ei.prototype.jA,ei.prototype.getColumnDefinition=ei.prototype.Eb,ei.prototype.removeRowDefinition=ei.prototype.oA,ei.prototype.getRowDefinition=ei.prototype.Fb,ei.prototype.removeAt=ei.prototype.mb,ei.prototype.remove=ei.prototype.remove,ei.prototype.insertAt=ei.prototype.Gb,ei.prototype.elt=ei.prototype.M,ei.prototype.add=ei.prototype.add,ei.prototype.findObject=ei.prototype.fb,ei.prototype.findInVisualTree=ei.prototype.Nl,ei.prototype.walkVisualTreeFrom=ei.prototype.qm,ei.prototype.findMainElement=ei.prototype.Pb;var S1=!1,x1=null,Ql=new on;ei.className="Panel",ei.definePanelLayout=Lu,Lu("Position",new mm),Lu("Vertical",new ym),Lu("Auto",new xm),Lu("Link",new Lm);function sh(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}sh.prototype.copy=function(){var a=new sh;return a.lq=this.lq,a.F=this.F,a.ia=this.ia,a.V=this.V,a.u=this.u,a.j=this.j,a.o=this.o,a.Zh=this.Zh,a},sh.className="GradPanelSettings";function Ll(){this.Pc=[],this.Oc=[],this.j=this.ob=Nm,this.hb=this.Hb=0,this.Qp=Ir,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}Ll.prototype.copy=function(a){for(var y=new Ll,x=this.Pc,E=x.length,b=y.Pc,z=0;z<E;z++)if(x[z]!==void 0){var tt=x[z].copy();tt.wi(a),b[z]=tt}for(x=this.Oc,E=x.length,b=y.Oc,z=0;z<E;z++)x[z]!==void 0&&(tt=x[z].copy(),tt.wi(a),b[z]=tt);return y.ob=this.ob,y.j=this.j,y.Hb=this.Hb,y.hb=this.hb,y.Qp=this.Qp.J(),y.Ha=this.Ha,y.ia=this.ia,y.V=this.V,y.F=this.F,y.u=this.u,y.o=this.o,y.nb=this.nb,y},Ll.className="TablePanelSettings";function Da(a){wi(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=bo,this.pa=this.oc=this.oa=0,this.be=null,this.oo=bv,this.hg=Or,this.lo=this.dg=null,this.mo=NaN,this.Ma=this.tj=null,this.Pm=!1,a&&(Object.assign(this,a),a.column!==void 0?(this.isRow=!1,this.index=a.column):a.row!==void 0&&(this.isRow=!0,this.index=a.row))}Da.prototype.copy=function(){var a=new Da;return a.uq=this.uq,a.Za=this.Za,a.Hc=this.Hc,a.jj=this.jj,a.hj=this.hj,a.Jb=this.Jb,a.oa=this.oa,a.oc=this.oc,a.pa=this.pa,a.hg=this.hg,a.oo=this.oo,this.dg===null?a.dg=null:a.dg=this.dg.J(),a.lo=this.lo,a.mo=this.mo,a.tj=null,this.tj!==null&&(a.separatorDashArray=ai(this.separatorDashArray)),a.Ma=this.Ma,a.Pm=this.Pm,a.be=this.be,a};function Fm(a,y){y.isRow?a.height=y.height:a.width=y.width,a.minimum=y.minimum,a.maximum=y.maximum,a.alignment=y.alignment,a.stretch=y.stretch,a.sizing=y.sizing,a.dg=y.separatorPadding===null?null:y.separatorPadding.J(),a.separatorStroke=y.separatorStroke,a.separatorStrokeWidth=y.separatorStrokeWidth,a.tj=null,y.separatorDashArray&&(a.tj=ai(y.separatorDashArray)),a.background=y.background,a.coversSeparators=y.coversSeparators,a.be=y.be}Ct=Da.prototype,Ct.qb=function(a){a.classType===Da&&(this.sizing=a)},Ct.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+Sr(this)},Ct.wi=function(a){this.Me=a},Ct.Io=function(a){var y=0,x=this.Me;if(this.index!==a&&(a=this.separatorStroke,a===null&&x!==null&&(a=this.isRow?x.defaultRowSeparatorStroke:x.defaultColumnSeparatorStroke),a!==null&&(y=this.separatorStrokeWidth,isNaN(y)&&(x!==null?y=this.isRow?x.defaultRowSeparatorStrokeWidth:x.defaultColumnSeparatorStrokeWidth:y=0))),a=this.dg,a===null)if(x!==null)a=x.defaultSeparatorPadding;else return y;return y+(this.isRow?a.top:a.left)},Ct.Wc=function(){var a=0,y=this.Me,x=0,E=this.isRow;if(y!==null&&y.type===ei.Table)for(var b=E?y.rowDefs.length:y.colDefs.length,z=0;z<b;z++){var tt=E?y.rowDefs[z]:y.colDefs[z];if(tt!==void 0&&tt.oa!==0){x=tt.index;break}}if(this.index!==x&&(x=this.separatorStroke,x===null&&y!==null&&(x=E?y.defaultRowSeparatorStroke:y.defaultColumnSeparatorStroke),x!==null&&(a=this.separatorStrokeWidth,isNaN(a)&&(y!==null?a=E?y.defaultRowSeparatorStrokeWidth:y.defaultColumnSeparatorStrokeWidth:a=0))),E=this.dg,E===null)if(y!==null)E=y.defaultSeparatorPadding;else return a;return a+(this.isRow?E.top+E.bottom:E.left+E.right)},Ct.Ob=function(a,y,x){var E=this.Me;if(E!==null&&(E.cb(To,a,this,y,x,void 0,void 0),this.be!==null&&(y=E.diagram,y!==null&&!y.skipsModelSourceBindings&&(E=E.ih(),E!==null&&(y=E.data,y!==null)))))for(x=this.be.iterator;x.next();)x.value.sp(this,y,a,E)};function Dm(a){if(a.sizing===bv){var y=a.Me;return a.isRow?y.rowSizing:y.columnSizing}return a.sizing}Ct.bind=function(a,y,x,E){var b=null;return typeof a=="string"?b=new Ea(a,y,x,E):b=a,b.xd=this,a=this.panel,a!==null&&(y=a.ih(),y!==null&&v1(y)&&ee("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+b+" on "+a)),this.be===null&&(this.be=new cn),this.be.add(b),this},xe.Object.defineProperties(Da.prototype,{panel:{get:function(){return this.Me}},isRow:{get:function(){return this.uq},set:function(a){this.uq=a}},index:{get:function(){return this.Za},set:function(a){this.Za=a}},height:{get:function(){return this.Hc},set:function(a){var y=this.Hc;y!==a&&(0>a&&Vn(a,">= 0",Da,"height"),this.Hc=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("height",y,a))}},width:{get:function(){return this.Hc},set:function(a){var y=this.Hc;y!==a&&(0>a&&Vn(a,">= 0",Da,"width"),this.Hc=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("width",y,a))}},minimum:{get:function(){return this.jj},set:function(a){var y=this.jj;y!==a&&((0>a||!isFinite(a))&&Vn(a,">= 0",Da,"minimum"),this.jj=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("minimum",y,a))}},maximum:{get:function(){return this.hj},set:function(a){var y=this.hj;y!==a&&(0>a&&Vn(a,">= 0",Da,"maximum"),this.hj=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("maximum",y,a))}},alignment:{get:function(){return this.Jb},set:function(a){var y=this.Jb;y.D(a)||(this.Jb=a.J(),this.panel!==null&&this.panel.v(),this.Ob("alignment",y,a))}},stretch:{get:function(){return this.hg},set:function(a){var y=this.hg;y!==a&&(this.hg=a,this.panel!==null&&this.panel.v(),this.Ob("stretch",y,a))}},separatorPadding:{get:function(){return this.dg},set:function(a){typeof a=="number"&&(a=new Di(a));var y=this.dg;a!==null&&y!==null&&y.D(a)||(a!==null&&(a=a.J()),this.dg=a,this.panel!==null&&this.panel.v(),this.Ob("separatorPadding",y,a))}},separatorStroke:{get:function(){return this.lo},set:function(a){var y=this.lo;y!==a&&(a!==null&&Ic(a,"RowColumnDefinition.separatorStroke"),a instanceof wo&&a.freeze(),this.lo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStroke",y,a))}},separatorStrokeWidth:{get:function(){return this.mo},set:function(a){var y=this.mo;y!==a&&(this.mo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStrokeWidth",y,a))}},separatorDashArray:{get:function(){return this.tj},set:function(a){var y=this.tj;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;b<x;b++){var z=a[b];typeof z=="number"&&0<=z&&isFinite(z)||ee("separatorDashArray value "+z+" at index "+b+" must be a positive number or zero."),E+=z}if(E===0){if(y===null)return;a=null}}this.tj=a,this.panel!==null&&this.panel.N(),this.Ob("separatorDashArray",y,a)}}},background:{get:function(){return this.Ma},set:function(a){var y=this.Ma;y!==a&&(a!==null&&Ic(a,"RowColumnDefinition.background"),a instanceof wo&&a.freeze(),this.Ma=a,this.panel!==null&&this.panel.N(),this.Ob("background",y,a))}},coversSeparators:{get:function(){return this.Pm},set:function(a){var y=this.Pm;y!==a&&(this.Pm=a,this.panel!==null&&this.panel.N(),this.Ob("coversSeparators",y,a))}},sizing:{get:function(){return this.oo},set:function(a){var y=this.oo;y!==a&&(this.oo=a,this.panel!==null&&this.panel.v(),this.Ob("sizing",y,a))}},actual:{get:function(){return this.oa},set:function(a){this.oa=isNaN(this.Hc)?Math.max(Math.min(this.hj,a),this.jj):Math.max(Math.min(this.hj,this.Hc),this.jj)}},measured:{get:function(){return this.oc},set:function(a){this.oc=a}},total:{get:function(){return this.oa+this.Wc()}},position:{get:function(){return this.pa},set:function(a){this.pa=a}}}),Da.prototype.computeEffectiveSpacing=Da.prototype.Wc,Da.prototype.computeEffectiveSpacingTop=Da.prototype.Io;var bv=new dn(Da,"Default",0),qg=new dn(Da,"None",1),Nm=new dn(Da,"ProportionalExtra",2);Da.className="RowColumnDefinition",Da.Default=bv,Da.None=qg,Da.ProportionalExtra=Nm;function Wr(a,y){Me.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,typeof a=="string"?this.figure=a:a&&Object.assign(this,a),y&&Object.assign(this,y)}ye(Wr,Me),Wr.prototype.cloneProtected=function(a){Me.prototype.cloneProtected.call(this,a),a.ua=this.ua,a.Rd=this.Rd,a.an=this.an,a.Ui=this.Ui,a.xc=this.xc,a.ig=this.ig,this.Yg!==null&&(a.Yg=ai(this.Yg)),this.Na!==null&&(a.Na=this.Na.nc?this.Na:this.Na.copy()),a.Un=this.Un,a.Vn=this.Vn,this.fa!==null&&(a.fa=this.fa.copy())};function qd(a){a.Na===null?a.Na=new Fv:a.Na.nc&&(a.Na=a.Na.copy())}Ct=Wr.prototype,Ct.th=function(){Me.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},Ct.qb=function(a){a===Hn||a===Yi||a===to||a===Or?this.geometryStretch=a:Me.prototype.qb.call(this,a)},Ct.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+Sr(this)};function Tf(a,y,x,E){var b=x.length;if(!(4>b)){var z=E.measuredBounds,tt=Math.max(1,z.width);z=z.height;for(var rt=x[0],ot=x[1],st,ut,ft,vt,xt,Pt,Ft=0,Xt=xi(),Wt=2;Wt<b;Wt+=2)st=x[Wt],ut=x[Wt+1],ft=st-rt,rt=ut-ot,ft===0&&(ft=.001),vt=rt/ft,xt=Math.atan2(rt,ft),Pt=Math.sqrt(ft*ft+rt*rt),Xt.push([ft,xt,vt,Pt]),Ft+=Pt,rt=st,ot=ut;rt=x[0],ot=x[1],ft=E.measuredBounds.width,E instanceof Wr&&(ft-=E.strokeWidth),1>ft&&(ft=1),b=x=ft,st=tt/2,ut=st!==0,Wt=0,Pt=Xt[Wt],ft=Pt[0],xt=Pt[1],vt=Pt[2],Pt=Pt[3];for(var oe=0;.1<=Ft;){if(oe===0&&(ut?(b=x,b-=st,Ft-=st,ut=!1):b=x,b===0&&(b=1)),b>Ft){gi(Xt);return}b>Pt?(oe=b-Pt,b=Pt):oe=0;var le=Math.sqrt(b*b/(1+vt*vt));if(0>ft&&(le=-le),rt+=le,ot+=vt*le,a.translate(rt,ot),a.rotate(xt),a.translate(-(tt/2),-(z/2)),oe===0&&E.hh(a,y),a.translate(tt/2,z/2),a.rotate(-xt),a.translate(-rt,-ot),Ft-=b,Pt-=b,oe!==0){if(Wt++,Wt===Xt.length){gi(Xt);return}Pt=Xt[Wt],ft=Pt[0],xt=Pt[1],vt=Pt[2],Pt=Pt[3],b=oe}}gi(Xt)}}Ct.hh=function(a,y){var x=this.xc,E=this.Ui;if(x!==null||E!==null){var b=this.ua;if(b!==null){a.yc();var z=this.actualBounds,tt=this.naturalBounds;E!==null&&fa(this,a,E,!0,!1,tt,z);var rt=this.part,ot=this.ig;if(x===null||ot!==0||rt===null||!this.isPanelMain&&rt.Pb()!==this||(ot=rt.type===ei.Link&&rt instanceof uo&&rt.category==="Selection"&&rt.adornedObject instanceof Wr&&rt.adornedPart.Pb()===rt.adornedObject?rt.adornedObject.strokeWidth:0),ot===0&&(x=null),x!==null&&ot!==0&&(fa(this,a,x,!1,!1,tt,z),a.lineWidth=ot,a.lineJoin=this.strokeJoin,a.lineCap=this.strokeCap,a.miterLimit=this.strokeMiterLimit),z=!1,rt&&y.Gf("drawShadows")&&(z=rt.isShadowed),a.Il===!1&&(z=!1),rt=!0,x===null||E!==null&&E!=="transparent"||(rt=!1),tt=!1,ot=this.strokeDashArray,ot!==null&&(tt=!0,a.js(ot,this.strokeDashOffset)),b.type===Wn.j)a.beginPath(),a.moveTo(b.startX,b.startY),a.lineTo(b.endX,b.endY),x!==null&&a.jk(),a.Se();else if(b.type===Wn.u){var st=b.startX;ot=b.startY;var ut=b.endX,ft=b.endY;b=Math.min(st,ut);var vt=Math.min(ot,ft);st=Math.abs(ut-st),ot=Math.abs(ft-ot),a.beginPath(),a.rect(b,vt,st,ot),E!==null&&a.ng(E),x!==null&&(rt&&z&&zu(a),a.jk(),rt&&z&&ih(a)),a.Se()}else if(b.type===Wn.F)st=b.startX,ot=b.startY,ut=b.endX,ft=b.endY,b=Math.abs(ut-st)/2,vt=Math.abs(ft-ot)/2,st=Math.min(st,ut)+b,ot=Math.min(ot,ft)+vt,a.beginPath(),a.moveTo(st,ot-vt),a.bezierCurveTo(st+me.wg*b,ot-vt,st+b,ot-me.wg*vt,st+b,ot),a.bezierCurveTo(st+b,ot+me.wg*vt,st+me.wg*b,ot+vt,st,ot+vt),a.bezierCurveTo(st-me.wg*b,ot+vt,st-b,ot+me.wg*vt,st-b,ot),a.bezierCurveTo(st-b,ot-me.wg*vt,st-me.wg*b,ot-vt,st,ot-vt),a.closePath(),E!==null&&a.ng(E),x!==null&&(rt&&z&&zu(a),a.jk(),rt&&z&&ih(a)),a.Se();else if(b.type===Wn.o)for(b=b.figures,ot=b.length,vt=0;vt<ot;vt++){st=b.s[vt],a.beginPath(),a.moveTo(st.startX,st.startY),ut=st.segments.s,ft=ut.length;for(var xt=null,Pt=0;Pt<ft;Pt++){var Ft=ut[Pt];switch(Ft.type){case ha:a.moveTo(Ft.endX,Ft.endY);break;case So:a.lineTo(Ft.endX,Ft.endY);break;case ma:a.bezierCurveTo(Ft.point1X,Ft.point1Y,Ft.point2X,Ft.point2Y,Ft.endX,Ft.endY);break;case ds:a.quadraticCurveTo(Ft.point1X,Ft.point1Y,Ft.endX,Ft.endY);break;case la:if(Ft.radiusX===Ft.radiusY){var Xt=Math.PI/180;a.arc(Ft.point1X,Ft.point1Y,Ft.radiusX,Ft.startAngle*Xt,(Ft.startAngle+Ft.sweepAngle)*Xt,0>Ft.sweepAngle,xt!==null?xt.endX:st.startX,xt!==null?xt.endY:st.startY)}else if(xt=Ya(Ft,st),Xt=xt.length,Xt===0)a.lineTo(Ft.centerX,Ft.centerY);else for(var Wt=0;Wt<Xt;Wt++){var oe=xt[Wt];Wt===0&&a.lineTo(oe[0],oe[1]),a.bezierCurveTo(oe[2],oe[3],oe[4],oe[5],oe[6],oe[7])}break;case cs:if(Wt=Xt=0,xt!==null&&xt.type===la){if(xt=Ya(xt,st),oe=xt.length,oe===0){a.lineTo(Ft.endX,Ft.endY);break}xt=xt[oe-1]||null,xt!==null&&(Xt=xt[6],Wt=xt[7])}else Xt=xt!==null?xt.endX:st.startX,Wt=xt!==null?xt.endY:st.startY;if(xt=es(Ft,st,Xt,Wt),Xt=xt.length,Xt===0){a.lineTo(Ft.endX,Ft.endY);break}for(Wt=0;Wt<Xt;Wt++)oe=xt[Wt],a.bezierCurveTo(oe[2],oe[3],oe[4],oe[5],oe[6],oe[7]);break;default:ee("Segment not of valid type: "+Ft.type)}Ft.isClosed&&a.closePath(),xt=Ft}ut=st.isFilled,z?st.isShadowed?(ut===!0&&E!=="transparent"&&E!==null&&a.ng(E,st.isEvenOdd),x!==null&&(ut&&rt&&zu(a),a.jk(),ut&&rt&&ih(a))):(zu(a),ut&&E!=="transparent"&&E!==null&&a.ng(E,st.isEvenOdd),x!==null&&a.jk(),ih(a)):(ut&&E!==null&&a.ng(E,st.isEvenOdd),x!==null&&a.jk()),a.Se(vt)}if(tt&&a.fs(),this.pathPattern!==null){if(x=this.pathPattern,x.measure(1/0,1/0),E=x.measuredBounds,x.arrange(0,0,E.width,E.height),z=this.geometry,a.save(),a.beginPath(),E=xi(),z.type===Wn.j)E.push(z.startX),E.push(z.startY),E.push(z.endX),E.push(z.endY),Tf(a,y,E,x);else if(z.type===Wn.o)for(z=z.figures.iterator;z.next();){for(rt=z.value,E.length=0,E.push(rt.startX),E.push(rt.startY),tt=rt.startX,b=rt.startY,ot=tt,vt=b,st=rt.segments.s,ut=st.length,ft=0;ft<ut;ft++){switch(Pt=st[ft],Pt.type){case ha:Tf(a,y,E,x),E.length=0,E.push(Pt.endX),E.push(Pt.endY),tt=Pt.endX,b=Pt.endY,ot=tt,vt=b;break;case So:E.push(Pt.endX),E.push(Pt.endY),tt=Pt.endX,b=Pt.endY;break;case ma:me.Qe(tt,b,Pt.point1X,Pt.point1Y,Pt.point2X,Pt.point2Y,Pt.endX,Pt.endY,.5,E),tt=Pt.endX,b=Pt.endY;break;case ds:me.ep(tt,b,Pt.point1X,Pt.point1Y,Pt.endX,Pt.endY,.5,E),tt=Pt.endX,b=Pt.endY;break;case la:if(Ft=Ya(Pt,rt),xt=Ft.length,xt===0){E.push(Pt.centerX),E.push(Pt.centerY),tt=Pt.centerX,b=Pt.centerY;break}for(Xt=0;Xt<xt;Xt++)Wt=Ft[Xt],me.Qe(tt,b,Wt[2],Wt[3],Wt[4],Wt[5],Wt[6],Wt[7],.5,E),tt=Wt[6],b=Wt[7];break;case cs:if(Ft=es(Pt,rt,tt,b),xt=Ft.length,xt===0){E.push(Pt.endX),E.push(Pt.endY),tt=Pt.endX,b=Pt.endY;break}for(Xt=0;Xt<xt;Xt++)Wt=Ft[Xt],me.Qe(tt,b,Wt[2],Wt[3],Wt[4],Wt[5],Wt[6],Wt[7],.5,E),tt=Wt[6],b=Wt[7];break;default:ee("Segment not of valid type: "+Pt.type)}Pt.isClosed&&(E.push(ot),E.push(vt),Tf(a,y,E,x))}Tf(a,y,E,x)}else if(z.type===Wn.u)E.push(z.startX),E.push(z.startY),E.push(z.endX),E.push(z.startY),E.push(z.endX),E.push(z.endY),E.push(z.startX),E.push(z.endY),E.push(z.startX),E.push(z.startY),Tf(a,y,E,x);else if(z.type===Wn.F){if(b=new ua,b.startX=z.endX,b.startY=(z.startY+z.endY)/2,tt=new Qr(la),tt.startAngle=0,tt.sweepAngle=360,tt.centerX=(z.startX+z.endX)/2,tt.centerY=(z.startY+z.endY)/2,tt.radiusX=Math.abs(z.startX-z.endX)/2,tt.radiusY=Math.abs(z.startY-z.endY)/2,b.add(tt),z=Ya(tt,b),rt=z.length,rt===0)E.push(tt.centerX),E.push(tt.centerY);else for(tt=b.startX,b=b.startY,ot=0;ot<rt;ot++)vt=z[ot],me.Qe(tt,b,vt[2],vt[3],vt[4],vt[5],vt[6],vt[7],.5,E),tt=vt[6],b=vt[7];Tf(a,y,E,x)}gi(E),a.restore(),a.Vc(!1)}}}},Ct.kk=function(a,y,x){return!Me.prototype.kk.call(this,a,y,x)||this.xc===null&&this.Ui===null||this.ua===null||this.pathPattern!==null||this.geometry.figures.length!==this.svg.getElementsByTagName("path").length?!1:(a.Hl=this.svg,this.hh(a,y),a.Hl=null,!0)},Ct.nk=function(a){return this.geometry!==null&&1<this.geometry.figures.length||this.pathPattern!==null?!0:Me.prototype.nk.call(this,a)},Ct.Dv=function(a,y){if(a.nodeName!=="g")a.setAttributeNS(null,"filter",y);else{a=a.getElementsByTagName("path");for(var x=0;x<a.length;x++)a[x].setAttributeNS(null,"filter",y)}},Ct.ga=function(a,y){if(y===void 0&&(y=new Bt),a instanceof Mn){a.Mc()&&ee("getDocumentPoint Spot must be a real, specific Spot, not: "+a.toString());var x=this.naturalBounds,E=this.strokeWidth;y.h(a.x*(x.width+E)-E/2+x.x+a.offsetX,a.y*(x.height+E)-E/2+x.y+a.offsetY)}else y.set(a);return this.oe.Ga(y),y},Ct.mi=function(a){a===void 0&&(a=new ue);var y=this.naturalBounds,x=this.oe;y=ue.allocAt(y.x,y.y,y.width,y.height);var E=this.strokeWidth;return y.Bc(E/2,E/2),E=Bt.allocAt(y.x,y.y).transform(x),a.h(E.x,E.y,0,0),E.h(y.right,y.y).transform(x),Ii(a,E.x,E.y,0,0),E.h(y.right,y.bottom).transform(x),Ii(a,E.x,E.y,0,0),E.h(y.x,y.bottom).transform(x),Ii(a,E.x,E.y,0,0),ue.free(y),Bt.free(E),a},Ct.gh=function(a,y){var x=this.geometry;if(x===null||this.fill===null&&this.stroke===null)return!1;var E=x.bounds,b=this.strokeWidth/2;x.type!==Wn.j||y||(b+=2);var z=ue.alloc();if(z.assign(E),z.Bc(b+2,b+2),!z.ca(a))return ue.free(z),!1;if(E=b+1e-4,x.type===Wn.j)return this.stroke===null||(E=(x.endX-x.startX)*(a.x-x.startX)+(x.endY-x.startY)*(a.y-x.startY),0>(x.startX-x.endX)*(a.x-x.endX)+(x.startY-x.endY)*(a.y-x.endY)||0>E)?!1:(ue.free(z),me.Yb(x.startX,x.startY,x.endX,x.endY,b,a.x,a.y));if(x.type===Wn.u){y=x.startX;var tt=x.startY,rt=x.endX;if(x=x.endY,z.x=Math.min(y,rt),z.y=Math.min(tt,x),z.width=Math.abs(rt-y),z.height=Math.abs(x-tt),this.fill===null){if(z.Bc(-E,-E),z.ca(a))return ue.free(z),!1;z.Bc(E,E)}return this.stroke!==null&&z.Bc(b,b),a=z.ca(a),ue.free(z),a}if(x.type===Wn.F){tt=x.startX,b=x.startY,rt=x.endX;var ot=x.endY;if(x=Math.min(tt,rt),y=Math.min(b,ot),tt=Math.abs(rt-tt)/2,b=Math.abs(ot-b)/2,x=a.x-(x+tt),y=a.y-(y+b),this.fill===null){if(tt-=E,b-=E,0>=tt||0>=b||1>=x*x/(tt*tt)+y*y/(b*b))return ue.free(z),!1;tt+=E,b+=E}return this.stroke!==null&&(tt+=E,b+=E),ue.free(z),0>=tt||0>=b?!1:1>=x*x/(tt*tt)+y*y/(b*b)}if(x.type===Wn.o)return ue.free(z),this.fill===null?Ta(x,a.x,a.y,b):sa(x,a,b,1<this.strokeWidth,y);ee("Unknown Geometry type: "+x.type)},Ct.Wl=function(a,y,x,E){var b=this.desiredSize,z=this.ig;if(a=Math.max(a,0),y=Math.max(y,0),this.Rd!==null)var tt=this.geometry.bounds;else{var rt=this.figure,ot=kv[rt];if(ot===void 0){var st=me.Ze[rt];typeof st=="string"&&(st=me.Ze[st]),typeof st=="function"?(ot=st(null,100,100),kv[rt]=ot):ee("Unsupported Figure: "+rt)}tt=ot.bounds}rt=tt.width,ot=tt.height,st=tt.width;var ut=tt.height;switch(zs(this,!0)){case Hn:E=x=0;break;case Qn:st=Math.max(a-z,0),ut=Math.max(y-z,0);break;case $i:st=Math.max(a-z,0),E=0;break;case mr:x=0,ut=Math.max(y-z,0)}isFinite(b.width)&&(st=b.width),isFinite(b.height)&&(ut=b.height);var ft=this.maxSize,vt=this.minSize;switch(x=Math.max(x-z,vt.width),E=Math.max(E-z,vt.height),st=Math.min(ft.width,st),ut=Math.min(ft.height,ut),st=isFinite(st)?Math.max(x,st):Math.max(rt,x),ut=isFinite(ut)?Math.max(E,ut):Math.max(ot,E),x=Mv(this),x){case Hn:break;case Qn:rt=st,ot=ut;break;case Yi:x=Math.min(st/rt,ut/ot),isFinite(x)||(x=1),rt*=x,ot*=x;break;default:ee(x+" is not a valid geometryStretch.")}this.Rd!==null?(rt===0&&(rt=.001),ot===0&&(ot=.001),x=this.Rd!==null?this.Rd:this.ua,tt=x.bounds,E=rt/tt.width,tt=ot/tt.height,isFinite(E)||(E=1),isFinite(tt)||(tt=1),this.ua=E===1&&tt===1?x:x.copy().scale(E,tt)):this.ua!==null&&me.$(this.ua.Sk,a-z)&&me.$(this.ua.Rk,y-z)||(this.ua=Wr.makeGeometry(this,rt,ot)),tt=this.ua.bounds,a===1/0||y===1/0?this.Ge(tt.x-z/2,tt.y-z/2,a===0&&rt===0?0:tt.width+z,y===0&&ot===0?0:tt.height+z):this.Ge(-(z/2),-(z/2),st+z,ut+z),b.w()?(st=b.width,ut=b.height,st=Math.min(ft.width,st),ut=Math.min(ft.height,ut),st=Math.max(vt.width,st),ut=Math.max(vt.height,ut),this.dc.h(0,0,st,ut)):this.dc.assign(tt)};function Mv(a){var y=a.geometryStretch;return a.Rd!==null?y===Or?Qn:y:y===Or?kv[a.figure].defaultStretch:y}Ct.eh=function(a,y,x,E){Ss(this,a,y,x,E)},Ct.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},Ct.Sj=function(a,y,x,E,b){var z=this.transform,tt=1/(z.m11*z.m22-z.m12*z.m21),rt=z.m22*tt,ot=-z.m12*tt,st=-z.m21*tt,ut=z.m11*tt,ft=tt*(z.m21*z.dy-z.m22*z.dx),vt=tt*(z.m12*z.dx-z.m11*z.dy);z=a*rt+y*st+ft,tt=a*ot+y*ut+vt,rt=x*rt+E*st+ft,ot=x*ot+E*ut+vt,ft=this.ig/2,st=this.ua,st===null&&(this.measure(1/0,1/0),st=this.ua);var xt=st.bounds;if(ut=!1,st.type===Wn.j)if(1.5>=this.strokeWidth)ut=me.Ve(st.startX,st.startY,st.endX,st.endY,z,tt,rt,ot,b);else{if(st.startX===st.endX?(E=ft,ut=0):(y=(st.endY-st.startY)/(st.endX-st.startX),ut=ft/Math.sqrt(1+y*y),E=ut*y),y=xi(),a=new Bt,me.Ve(st.startX+E,st.startY+ut,st.endX+E,st.endY+ut,z,tt,rt,ot,a)&&y.push(a),a=new Bt,me.Ve(st.startX-E,st.startY-ut,st.endX-E,st.endY-ut,z,tt,rt,ot,a)&&y.push(a),a=new Bt,me.Ve(st.startX+E,st.startY+ut,st.startX-E,st.startY-ut,z,tt,rt,ot,a)&&y.push(a),a=new Bt,me.Ve(st.endX+E,st.endY+ut,st.endX-E,st.endY-ut,z,tt,rt,ot,a)&&y.push(a),rt=y.length,rt===0)return gi(y),!1;for(ut=!0,ot=1/0,E=0;E<rt;E++)a=y[E],x=(a.x-z)*(a.x-z)+(a.y-tt)*(a.y-tt),x<ot&&(ot=x,b.x=a.x,b.y=a.y);gi(y)}else if(st.type===Wn.u)ut=me.Ff(xt.x-ft,xt.y-ft,xt.x+xt.width+ft,xt.y+xt.height+ft,z,tt,rt,ot,b);else if(st.type===Wn.F){y=ue.allocAt(xt.x,xt.y,xt.width,xt.height).Bc(ft,ft);t:if(y.width===0)ut=me.Ve(y.x,y.y,y.x,y.y+y.height,z,tt,rt,ot,b);else if(y.height===0)ut=me.Ve(y.x,y.y,y.x+y.width,y.y,z,tt,rt,ot,b);else{if(a=y.width/2,st=y.height/2,E=y.x+a,ut=y.y+st,x=9999,z!==rt&&(x=(tt-ot)/(z-rt)),9999>Math.abs(x)){if(ot=tt-ut-x*(z-E),0>a*a*x*x+st*st-ot*ot){b.x=NaN,b.y=NaN,ut=!1;break t}ft=Math.sqrt(a*a*x*x+st*st-ot*ot),rt=(-(a*a*x*ot)+a*st*ft)/(st*st+a*a*x*x)+E,a=(-(a*a*x*ot)-a*st*ft)/(st*st+a*a*x*x)+E,st=x*(rt-E)+ot+ut,ot=x*(a-E)+ot+ut,Math.abs((z-rt)*(z-rt))+Math.abs((tt-st)*(tt-st))<Math.abs((z-a)*(z-a))+Math.abs((tt-ot)*(tt-ot))?(b.x=rt,b.y=st):(b.x=a,b.y=ot)}else{if(rt=st*st,ot=z-E,rt-=rt/(a*a)*ot*ot,0>rt){b.x=NaN,b.y=NaN,ut=!1;break t}ot=Math.sqrt(rt),rt=ut+ot,ot=ut-ot,Math.abs(rt-tt)<Math.abs(ot-tt)?(b.x=z,b.y=rt):(b.x=z,b.y=ot)}ut=!0}ue.free(y)}else if(st.type===Wn.o){vt=Bt.alloc();var Pt=rt-z,Ft=ot-tt,Xt=Pt*Pt+Ft*Ft,Wt=z,oe=tt;if(0<Xt&&xt.contains(Wt,oe)&&(vt.x=Wt,vt.y=oe,this.ca(vt)))for(Pt!==0&&.5>Math.abs(Pt)?(Ft*=.5/Pt,Pt=.5):Ft!==0&&.5>Math.abs(Ft)&&(Pt*=.5/Ft,Ft=.5),Wt-=Pt,oe-=Ft;xt.contains(Wt,oe);)Wt-=Pt,oe-=Ft;for(b.x=rt,b.y=ot,Ft=0;Ft<st.figures.count;Ft++){var le=st.figures.s[Ft],ce=le.isFilled?Wt:z,Ae=le.isFilled?oe:tt,Je=le.segments;xt=le.startX,Pt=le.startY;for(var Ci=xt,Wi=Pt,Ni=0;Ni<Je.count;Ni++){var li=Je.s[Ni],Tn=li.type,Nr=li.endX,Er=li.endY,ho=!1;switch(Tn){case ha:Ci=Nr,Wi=Er;break;case So:ho=Tm(xt,Pt,Nr,Er,ce,Ae,rt,ot,vt);break;case ma:ho=me.Eo(xt,Pt,li.point1X,li.point1Y,li.point2X,li.point2Y,Nr,Er,ce,Ae,rt,ot,.6,vt);break;case ds:ho=me.Eo(xt,Pt,xt+2/3*(li.point1X-xt),Pt+2/3*(li.point1Y-Pt),Nr+2/3*(li.point1X-Nr),Er+2/3*(li.point1Y-Er),Nr,Er,ce,Ae,rt,ot,.6,vt);break;case la:case cs:Tn=li.type===la?Ya(li,le):es(li,le,xt,Pt);var Io=Tn.length;if(Io===0){ho=Tm(xt,Pt,li.type===la?li.centerX:li.endX,li.type===la?li.centerY:li.endY,ce,Ae,rt,ot,vt);break}for(Er=null,Nr=0;Nr<Io;Nr++){if(Er=Tn[Nr],Nr===0&&Tm(xt,Pt,Er[0],Er[1],ce,Ae,rt,ot,vt)){var Wa=Bm(ce,Ae,vt,Xt,b);Wa<Xt&&(Xt=Wa,ut=!0)}me.Eo(Er[0],Er[1],Er[2],Er[3],Er[4],Er[5],Er[6],Er[7],ce,Ae,rt,ot,.6,vt)&&(Wa=Bm(ce,Ae,vt,Xt,b),Wa<Xt&&(Xt=Wa,ut=!0))}Nr=Er[6],Er=Er[7];break;default:ee("Unknown Segment type: "+Tn)}xt=Nr,Pt=Er,ho&&(ho=Bm(ce,Ae,vt,Xt,b),ho<Xt&&(Xt=ho,ut=!0)),li.isClosed&&(Nr=Ci,Er=Wi,Tm(xt,Pt,Nr,Er,ce,Ae,rt,ot,vt)&&(li=Bm(ce,Ae,vt,Xt,b),li<Xt&&(Xt=li,ut=!0)))}}z=x-a,tt=E-y,rt=Math.sqrt(z*z+tt*tt),rt!==0&&(z/=rt,tt/=rt),b.x-=z*ft,b.y-=tt*ft,Bt.free(vt)}else ee("Unknown Geometry type: "+st.type);return ut?(this.transform.Ga(b),!0):!1};function Bm(a,y,x,E,b){return a=x.x-a,y=x.y-y,y=a*a+y*y,y<E?(b.x=x.x,b.y=x.y,y):E}function Tm(a,y,x,E,b,z,tt,rt,ot){if(me.$(a,x)&&me.$(y,E)||me.$(b,tt)&&me.$(z,rt))return!1;var st=!1,ut=(b-tt)*(y-E)-(z-rt)*(a-x);return ut===0?!1:(ot.x=((b*rt-z*tt)*(a-x)-(b-tt)*(a*E-y*x))/ut,ot.y=((b*rt-z*tt)*(y-E)-(z-rt)*(a*E-y*x))/ut,(a>x?a-x:x-a)<(y>E?y-E:E-y)?(a=y<E?y:E,y=y<E?E:y,(ot.y>a||me.$(ot.y,a))&&(ot.y<y||me.$(ot.y,y))&&(st=!0)):(y=a<x?a:x,a=a<x?x:a,(ot.x>y||me.$(ot.x,y))&&(ot.x<a||me.$(ot.x,a))&&(st=!0)),st)}Ct.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.ua;x===null&&(this.measure(1/0,1/0),x=this.ua),x=x.bounds;var E=this.strokeWidth/2,b=!1,z=Bt.alloc();return z.h(x.x-E,x.y-E),a.ca(y.Ga(z))&&(z.h(x.x-E,x.bottom+E),a.ca(y.Ga(z))&&(z.h(x.right+E,x.bottom+E),a.ca(y.Ga(z))&&(z.h(x.right+E,x.y-E),a.ca(y.Ga(z))&&(b=!0)))),Bt.free(z),b},Ct.Yc=function(a,y){if(this.fh(a,y)||y===void 0&&(y=this.transform,a.Re(this.actualBounds)))return!0;var x=Ei.alloc();x.set(y),x.Vj();var E=a.left,b=a.right,z=a.top;a=a.bottom;var tt=Bt.alloc();if(tt.h(E,z),x.Ga(tt),this.gh(tt,!0)||(tt.h(b,z),x.Ga(tt),this.gh(tt,!0))||(tt.h(E,a),x.Ga(tt),this.gh(tt,!0))||(tt.h(b,a),x.Ga(tt),this.gh(tt,!0)))return Bt.free(tt),!0;var rt=Bt.alloc(),ot=Bt.alloc();return x.set(y),x.bv(this.transform),x.Vj(),rt.x=b,rt.y=z,rt.transform(x),tt.x=E,tt.y=z,tt.transform(x),y=!1,$d(this,tt,rt,ot)?y=!0:(tt.x=b,tt.y=a,tt.transform(x),$d(this,tt,rt,ot)?y=!0:(rt.x=E,rt.y=a,rt.transform(x),$d(this,tt,rt,ot)?y=!0:(tt.x=E,tt.y=z,tt.transform(x),$d(this,tt,rt,ot)&&(y=!0)))),Bt.free(tt),Ei.free(x),Bt.free(rt),Bt.free(ot),y};function $d(a,y,x,E){if(!a.rs(y,x,E))return!1;a=y.x,y=y.y;var b=x.x,z=x.y;return x=E.x,E=E.y,a===b?(y<z?(a=y,y=z):a=z,E>=a&&E<=y):(a<b?(E=a,a=b):E=b,x>=E&&x<=a)}Ct.tx=function(a,y,x){function E(Xt,Wt){for(var oe=Xt.length,le=0;le<oe;le+=2)if(Wt.zd(Xt[le],Xt[le+1])>b)return!0;return!1}if(x&&this.fill!==null&&this.gh(a,!0))return!0;var b=a.Bf(y),z=b;if(1.5<this.strokeWidth&&(b=this.strokeWidth/2+Math.sqrt(b),b*=b),y=this.ua,y===null&&(this.measure(1/0,1/0),y=this.ua,y===null))return!1;if(!x){var tt=y.bounds,rt=tt.x,ot=tt.y,st=tt.x+tt.width;if(tt=tt.y+tt.height,mi(a.x,a.y,rt,ot)<=b&&mi(a.x,a.y,st,ot)<=b&&mi(a.x,a.y,rt,tt)<=b&&mi(a.x,a.y,st,tt)<=b)return!0}if(rt=y.startX,ot=y.startY,st=y.endX,tt=y.endY,y.type===Wn.j){if(x=(rt-st)*(a.x-st)+(ot-tt)*(a.y-tt),hn(a.x,a.y,rt,ot,st,tt)<=(0<=(st-rt)*(a.x-rt)+(tt-ot)*(a.y-ot)&&0<=x?b:z))return!0}else{if(y.type===Wn.u)return y=!1,x&&(y=hn(a.x,a.y,rt,ot,rt,tt)<=b||hn(a.x,a.y,rt,ot,st,ot)<=b||hn(a.x,a.y,st,ot,st,tt)<=b||hn(a.x,a.y,rt,tt,st,tt)<=b),y;if(y.type===Wn.F){y=a.x-(rt+st)/2,z=a.y-(ot+tt)/2;var ut=Math.abs(st-rt)/2,ft=Math.abs(tt-ot)/2;if(ut===0||ft===0)return hn(a.x,a.y,rt,ot,st,tt)<=b;if(x){if(a=me.$y(ut,ft,y,z),a*a<=b)return!0}else return!(mi(y,z,-ut,0)>=b||mi(y,z,0,-ft)>=b||mi(y,z,0,ft)>=b||mi(y,z,ut,0)>=b)}else if(y.type===Wn.o){if(st=y.bounds,z=st.x,rt=st.y,ot=st.x+st.width,st=st.y+st.height,a.x>ot&&a.x<z&&a.y>st&&a.y<rt&&hn(a.x,a.y,z,rt,z,st)>b&&hn(a.x,a.y,z,rt,ot,rt)>b&&hn(a.x,a.y,ot,st,z,st)>b&&hn(a.x,a.y,ot,st,ot,rt)>b)return!1;if(z=Math.sqrt(b),x){if(this.fill===null?Ta(y,a.x,a.y,z):sa(y,a,z,!0,!1))return!0}else{for(x=y.figures,y=0;y<x.count;y++){if(z=x.s[y],tt=z.startX,ut=z.startY,a.zd(tt,ut)>b)return!1;for(rt=z.segments.s,ot=rt.length,st=0;st<ot;st++)switch(ft=rt[st],ft.type){case ha:case So:if(tt=ft.endX,ut=ft.endY,a.zd(tt,ut)>b)return!1;break;case ma:var vt=xi();if(me.Qe(tt,ut,ft.point1X,ft.point1Y,ft.point2X,ft.point2Y,ft.endX,ft.endY,.8,vt),tt=E(vt,a),gi(vt),tt||(tt=ft.endX,ut=ft.endY,a.zd(tt,ut)>b))return!1;break;case ds:if(vt=xi(),me.ep(tt,ut,ft.point1X,ft.point1Y,ft.endX,ft.endY,.8,vt),tt=E(vt,a),gi(vt),tt||(tt=ft.endX,ut=ft.endY,a.zd(tt,ut)>b))return!1;break;case la:case cs:vt=ft.type===la?Ya(ft,z):es(ft,z,tt,ut);var xt=vt.length;if(xt===0){if(tt=ft.type===la?ft.centerX:ft.endX,ut=ft.type===la?ft.centerY:ft.endY,a.zd(tt,ut)>b)return!1;break}ft=null;for(var Pt=xi(),Ft=0;Ft<xt;Ft++)if(ft=vt[Ft],Pt.length=0,me.Qe(ft[0],ft[1],ft[2],ft[3],ft[4],ft[5],ft[6],ft[7],.8,Pt),E(Pt,a))return gi(Pt),!1;gi(Pt),ft!==null&&(tt=ft[6],ut=ft[7]);break;default:ee("Unknown Segment type: "+ft.type)}}return!0}}}return!1},Ct.qc=function(){this.ua=null},Ct.kq=function(){return this.ig};function w1(a){var y=a.diagram;y!==null&&y.undoManager.isUndoingRedoing||(a.segmentOrientation=sp,a.toArrow!=="None"?(a.segmentIndex=-1,a.alignmentFocus=vo):a.fromArrow!=="None"&&(a.segmentIndex=0,a.alignmentFocus=new Mn(1-vo.x,vo.y)))}Wr.makeGeometry=function(a,y,x){if(a.toArrow!=="None")var E=Wu[a.toArrow];else a.fromArrow!=="None"?E=Wu[a.fromArrow]:(E=me.Ze[a.figure],typeof E=="string"&&(E=me.Ze[E]),E===void 0&&ee("Unknown Shape.figure: "+a.figure),E=E(a,y,x),E.Sk=y,E.Rk=x);if(E===null){var b=me.Ze.Rectangle;typeof b=="function"&&(E=b(a,y,x))}return E};function P1(a){var y=Wu[a];if(y===void 0){var x=a.toLowerCase();if(x==="none")return"None";if(y=Wu[x],y===void 0){var E=null,b;for(b in me.um)if(b.toLowerCase()===x){E=b;break}if(E!==null)return a=Wn.parse(me.um[E],!1),Wu[E]=a,x!==E&&(Wu[x]=E),E}}return typeof y=="string"?y:y instanceof Wn?a:null}xe.Object.defineProperties(Wr.prototype,{geometry:{get:function(){return this.ua!==null?this.ua:this.Rd},set:function(a){var y=this.ua,x=this.Rd;if(y!==a){a!==null?this.Rd=this.ua=a.freeze():this.Rd=this.ua=null;var E=this.part;E!==null&&(E.ag=NaN),this.v(),this.g("geometry",y||x,a),is(this)&&(a=this.part,a!==null&&_o(this,a,"geometryString"))}}},geometryString:{get:function(){return this.geometry===null?"":this.geometry.toString()},set:function(a){a=Wn.parse(a);var y=a.normalize();this.geometry=a,this.position=a=Bt.allocAt(-y.x,-y.y),Bt.free(a)}},isGeometryPositioned:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.v(),this.g("isGeometryPositioned",y,a))}},fill:{get:function(){return this.Ui},set:function(a){var y=this.Ui;y!==a&&(a!==null&&Ic(a,"Shape.fill"),a instanceof wo&&a.freeze(),this.Ui=a,this.N(),this.g("fill",y,a))}},stroke:{get:function(){return this.xc},set:function(a){var y=this.xc;y!==a&&(a!==null&&Ic(a,"Shape.stroke"),a instanceof wo&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},strokeWidth:{get:function(){return this.ig},set:function(a){var y=this.ig;if(y!==a)if(0<=a){this.ig=a,this.v();var x=this.part;x!==null&&(x.ag=NaN),this.g("strokeWidth",y,a)}else Vn(a,"value >= 0",Wr,"strokeWidth:value")}},strokeCap:{get:function(){return this.Na!==null?this.Na.Hr:"butt"},set:function(a){var y=this.strokeCap;y!==a&&(typeof a!="string"||a!=="butt"&&a!=="round"&&a!=="square"?Vn(a,'"butt", "round", or "square"',Wr,"strokeCap"):(qd(this),this.Na.Hr=a,this.N(),this.g("strokeCap",y,a)))}},strokeJoin:{get:function(){return this.Na!==null?this.Na.Ir:"miter"},set:function(a){var y=this.strokeJoin;y!==a&&(typeof a!="string"||a!=="miter"&&a!=="bevel"&&a!=="round"?Vn(a,'"miter", "bevel", or "round"',Wr,"strokeJoin"):(qd(this),this.Na.Ir=a,this.N(),this.g("strokeJoin",y,a)))}},strokeMiterLimit:{get:function(){return this.Na!==null?this.Na.Jr:10},set:function(a){var y=this.strokeMiterLimit;if(y!==a&&1<=a){qd(this),this.Na.Jr=a,this.N();var x=this.part;x!==null&&(x.ag=NaN),this.g("strokeMiterLimit",y,a)}}},strokeDashArray:{get:function(){return this.Yg},set:function(a){var y=this.Yg;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;b<x;b++){var z=a[b];0<=z&&isFinite(z)||ee("strokeDashArray:value "+z+" at index "+b+" must be a positive number or zero."),E+=z}if(E===0){if(y===null)return;a=null}}this.Yg=a,this.N(),this.g("strokeDashArray",y,a)}}},strokeDashOffset:{get:function(){return this.Na!==null?this.Na.uj:0},set:function(a){var y=this.strokeDashOffset;y!==a&&0<=a&&(qd(this),this.Na.uj=a,this.N(),this.g("strokeDashOffset",y,a))}},figure:{get:function(){return this.an},set:function(a){var y=this.an;if(y!==a){var x=me.Ze[a];typeof x=="function"?x=a:(x=me.Ze[a.toLowerCase()])||ee("Unknown Shape.figure: "+a),y!==x&&(a=this.part,a!==null&&(a.ag=NaN),this.an=x,this.Rd=null,this.qc(),this.v(),this.g("figure",y,x))}}},toArrow:{get:function(){return this.Ua!==null?this.Ua.V:"None"},set:function(a){var y=this.toArrow;if(a===!0?a="Standard":a===!1&&(a=""),y!==a){var x=P1(a);x===null?ee("Unknown Shape.toArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new ud),this.Ua.V=x,this.Rd=null,this.qc(),this.v(),w1(this),this.g("toArrow",y,x))}}},fromArrow:{get:function(){return this.Ua!==null?this.Ua.j:"None"},set:function(a){var y=this.fromArrow;if(a===!0?a="Standard":a===!1&&(a=""),y!==a){var x=P1(a);x===null?ee("Unknown Shape.fromArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new ud),this.Ua.j=x,this.Rd=null,this.qc(),this.v(),w1(this),this.g("fromArrow",y,x))}}},spot1:{get:function(){return this.Na!==null?this.Na.fg:bo},set:function(a){var y=this.spot1;y.D(a)||(a=a.J(),qd(this),this.Na.fg=a,this.v(),this.g("spot1",y,a))}},spot2:{get:function(){return this.Na!==null?this.Na.gg:bo},set:function(a){var y=this.spot2;y.D(a)||(a=a.J(),qd(this),this.Na.gg=a,this.v(),this.g("spot2",y,a))}},parameter1:{get:function(){return this.Un},set:function(a){var y=this.Un;y!==a&&(this.Un=a,this.qc(),this.v(),this.g("parameter1",y,a))}},parameter2:{get:function(){return this.Vn},set:function(a){var y=this.Vn;y!==a&&(this.Vn=a,this.qc(),this.v(),this.g("parameter2",y,a))}},naturalBounds:{get:function(){return this.dc}},pathPattern:{get:function(){return this.Na!==null?this.Na.br:null},set:function(a){var y=this.pathPattern;y!==a&&(qd(this),this.Na.br=a,this.N(),this.g("pathPattern",y,a))}},geometryStretch:{get:function(){return this.Na!==null?this.Na.jq:Or},set:function(a){var y=this.geometryStretch;y!==a&&(qd(this),this.Na.jq=a,this.v(),this.g("geometryStretch",y,a))}},interval:{get:function(){return this.fa!==null?this.fa.Tk:1},set:function(a){var y=this.interval;if(a=Math.round(a),y!==a&&a!==0&&isFinite(a)){this.fa===null&&(this.fa=new Hu),this.fa.Tk=a;var x=this.diagram;x!==null&&this.panel===x.grid&&Cu(x),this.v(),x=this.panel,x!==null&&(x.graduatedIntervals=null),this.g("interval",y,a)}}},graduatedStart:{get:function(){return this.fa!==null?this.fa.u:0},set:function(a){var y=this.graduatedStart;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new Hu),this.fa.u=a,this.v(),this.g("graduatedStart",y,a))}},graduatedEnd:{get:function(){return this.fa!==null?this.fa.j:1},set:function(a){var y=this.graduatedEnd;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new Hu),this.fa.j=a,this.v(),this.g("graduatedEnd",y,a))}},graduatedSkip:{get:function(){return this.fa!==null?this.fa.o:null},set:function(a){var y=this.graduatedSkip;y!==a&&(this.fa===null&&(this.fa=new Hu),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}}}),Wr.prototype.intersectsRect=Wr.prototype.Yc,Wr.prototype.containedInRect=Wr.prototype.fh,Wr.prototype.getNearestIntersectionPoint=Wr.prototype.rs,Wr.prototype.getDocumentBounds=Wr.prototype.mi,Wr.prototype.getDocumentPoint=Wr.prototype.ga;var Wu=new Qi,kv=new Qi;Wr.className="Shape",Wr.getFigureGenerators=function(){var a=new on,y;for(y in me.Ze)y!==y.toLowerCase()&&a.add(y,me.Ze[y]);return a.freeze(),a},Wr.defineFigureGenerator=function(a,y){var x=a.toLowerCase(),E=me.Ze;E[a]=y,E[x]=a},Wr.getArrowheadGeometries=function(){var a=new on;for(E in me.um)if(Wu[E]===void 0){var y=Wn.parse(me.um[E],!1);Wu[E]=y,y=E.toLowerCase(),y!==E&&(Wu[y]=E)}for(var x in Wu)if(x!==x.toLowerCase()){var E=Wu[x];E instanceof Wn&&a.add(x,E)}return a.freeze(),a},Wr.defineArrowheadGeometry=function(a,y){var x=null;typeof y=="string"?x=Wn.parse(y,!1):x=y,y=a.toLowerCase(),y!=="none"&&a!==y||ee("Shape.defineArrowheadGeometry name must not be empty or None or all-lower-case: "+a);var E=Wu;E[a]=x,E[y]=a};function Fv(){this.nc=!1,this.Hr="butt",this.Ir="miter",this.Jr=10,this.uj=0,this.br=null,this.jq=Or,this.gg=this.fg=bo}Fv.prototype.copy=function(){var a=new Fv;return a.Hr=this.Hr,a.Ir=this.Ir,a.Jr=this.Jr,a.uj=this.uj,a.br=this.br,a.jq=this.jq,a.fg=this.fg.J(),a.gg=this.gg.J(),a};function Ro(a,y){return Me.call(this),jm||(js=da?new zl(null).context:null,jm=!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,typeof a=="string"?this.text=a:a&&Object.assign(this,a),y&&Object.assign(this,y),this}ye(Ro,Me),Ro.prototype.cloneProtected=function(a){Me.prototype.cloneProtected.call(this,a),a.ec=this.ec,a.xc=this.xc,a.Ae=this.Ae,a.Gc=this.Gc,a.Cb=this.Cb,a.Lq=this.Lq,a.Gm=this.Gm,this.fa!==null&&(a.fa=this.fa.copy()),this.da!==null&&(a.da=this.da.nc?this.da:this.da.copy()),a.Ih=this.Ih,a.df=this.df,a.Le=this.Le,a.Qc=this.Qc,a.Qb=this.Qb,a.ze=this.ze};function bu(a){a.da===null?a.da=new Rv:a.da.nc&&(a.da=a.da.copy())}Ct=Ro.prototype,Ct.th=function(){Me.prototype.th.call(this),this.da!==null&&(this.da.nc=!0)};function C1(a,y){a.l=y.l|6144,a.pb=y.opacity,a.Ma=y.background,a.areaBackground=y.areaBackground,a.jd=y.desiredSize.J(),a.minSize=y.minSize.J(),a.maxSize=y.maxSize.J(),y.Lb!==null?a.Lb=y.Lb.copy():a.Lb=null,a.Ca=y.scale,a.Kb=y.angle,a.stretch=y.stretch,a.Kg=y.margin.J(),a.Jb=y.alignment.J(),a.sk=y.alignmentFocus.J(),a.segmentFraction=y.segmentFraction,a.segmentOffset=y.segmentOffset.J(),a.segmentOrientation=y.segmentOrientation,y.tb!==null&&(a.tb=y.tb.copy()),a.shadowVisible=y.shadowVisible,a.ec=y.ec,a.xc=y.xc,a.Ae=y.Ae,a.fa!==null&&(a.fa=y.fa.copy()),y.da!==null&&(a.da=y.da.nc?y.da:y.da.copy()),a.Ih=y.Ih}Ct.qb=function(a){a.classType===Ro?this.wrap=a:Me.prototype.qb.call(this,a)},Ct.toString=function(){return 22<this.ec.length?'TextBlock("'+this.ec.substring(0,20)+'"...)':'TextBlock("'+this.ec+'")'},Ct.v=function(){Me.prototype.v.call(this)},Ct.hh=function(a,y){if(this.xc!==null&&this.ec.length!==0&&this.Ae!==null){var x=this.naturalBounds,E=this.actualBounds,b=x.width,z=x.height,tt=tp(this),rt=a.textAlign=this.textAlign,ot=y.tn;rt==="start"?rt=ot?"right":"left":rt==="end"&&(rt=ot?"left":"right"),ot=this.isUnderline;var st=this.isStrikethrough;fa(this,a,this.xc,!0,!1,x,E),(ot||st)&&fa(this,a,this.xc,!1,!1,x,E),E=0,x=!1;var ut=this.oe,ft=ut.dx-(tt*ut.m21+ut.dx);ut=ut.dy-(tt*ut.m22+ut.dy);var vt=y.scale;switch(8>(ft*ft+ut*ut)*vt*vt&&(x=!0),y.ib!==a&&(x=!1),y.ib instanceof tl&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,ft=this.spacingBelow,this.flip){case oo:a.translate(b,0),a.scale(-1,1);break;case Kr:a.translate(0,z),a.scale(1,-1);break;case ko:a.translate(b,z),a.scale(-1,-1)}if(a.yc(),ut=this.Gc,vt=(y+tt+ft)*ut,z>vt&&(E=this.verticalAlignment,E=E.y*z-E.y*vt+E.offsetY),ut===1&&this.ze!==null)ft=this.Cb,ft>b&&(ft=b),this.Oj(this.ze,a,0,E+y,b,tt,ft,x,rt,ot,st);else if(this.Qc!==null&&this.Qb!==null)for(vt=0;vt<ut;vt++){var xt=this.Qc[vt];xt>b&&(xt=b),E+=y,this.Oj(this.Qb[vt],a,0,E,b,tt,xt,x,rt,ot,st),E+=tt+ft}switch(this.flip){case oo:a.scale(-1,1),a.translate(-b,0);break;case Kr:a.scale(1,-1),a.translate(0,-z);break;case ko:a.scale(-1,-1),a.translate(-b,-z)}}},Ct.Oj=function(a,y,x,E,b,z,tt,rt,ot,st,ut){var ft=0;if(rt)ot==="left"?ft=0:ot==="right"?ft=b-tt:ot==="center"&&(ft=(b-tt)/2),y.fillRect(x+ft,E+.25*z,tt,1);else{if(ot==="left"?ft=0:ot==="right"?ft=b:ot==="center"&&(ft=b/2),b=Om!==null?Om(this,z):.75*z,y.fillText(a,x+ft,E+b),a=z/20|0,a===0&&(a=1),ot==="right"?ft-=tt:ot==="center"&&(ft-=tt/2),st){rt=Im!==null?Im(this,z):.8*z,ot=x+ft,st=E+rt,b=x+ft+tt,rt=E+rt;var vt=a;y.beginPath(),y.lineWidth=vt,y.moveTo(ot,st),y.lineTo(b,rt),y.stroke(),y.Se(),y instanceof tl&&y.ad.classList.add("gojs-td")}ut&&(ut=E+z-z/2.2|0,a%2!==0&&(ut+=.5),E=x+ft,z=ut,x=x+ft+tt,tt=ut,ft=a,y.beginPath(),y.lineWidth=ft,y.moveTo(E,z),y.lineTo(x,tt),y.stroke(),y.Se(),y instanceof tl&&y.ad.classList.add("gojs-td"))}},Ct.kk=function(a,y,x){if(!Me.prototype.kk.call(this,a,y,x))return!1;if(fa(this,a,this.xc,!0,!1,this.naturalBounds,this.actualBounds),x){if(this.svg.getElementsByTagName("text").length===0)return!0;for(y=this.svg.getElementsByClassName("gojs-td"),x=0;x<y.length;x++)n1(a,y[x],!1)}else y=this.svg,y.innerHTML=this.text,n1(a,y,!0);return!0},Ct.nk=function(a){return 1<this.lineCount||this.isUnderline||this.isStrikethrough?!0:Me.prototype.nk.call(this,a)},Ct.Dv=function(a,y){if(a.nodeName!=="g")a.setAttributeNS(null,"filter",y);else{a=a.getElementsByTagName("text");for(var x=0;x<a.length;x++)a[x].setAttributeNS(null,"filter",y)}},Ct.Wl=function(a,y,x,E){var b=this.Gc;this.Ih=a,this.l&=-16777217;var z=this.Ae;js!==null&&F1!==z&&(F1=js.font=z),this.Cb=this.Le=0,this.ze=this.Qb=this.Qc=this.df=null;var tt;if(isNaN(this.desiredSize.width)){if(z=this.ec.replace(/\r\n/g,`
`).replace(/\r/g,`
`),z.length===0)z=8;else if(this.isMultiline){for(var rt=tt=0,ot=!1;!ot;){var st=z.indexOf(`
`,rt);st===-1&&(st=z.length,ot=!0),rt=z.substr(rt,st-rt),this.formatting===ep&&(rt=rt.trim()),tt=Math.max(tt,ql(rt)),rt=st+1}z=tt}else tt=z.indexOf(`
`,0),0<=tt&&(z=z.substr(0,tt)),z=ql(z);z=Math.min(z,a/this.scale)}else z=this.desiredSize.width;if(this.panel!==null&&(z=Math.min(z,this.panel.maxSize.width)),tt=A1(this,z),isNaN(this.desiredSize.height)?tt=Math.min(tt,y/this.scale):tt=this.desiredSize.height,ot=tt,this.Cb!==0&&this.Qc!==null&&this.Qb!==null&&this.overflow===Rm&&(y=this.Ae,y=this.overflow===Rm?E1(y):0,st=this.spacingAbove+this.spacingBelow,st=Math.max(0,tp(this)+st),ot=Math.min(this.maxLines-1,Math.max(Math.floor(ot/st+.01)-1,0)),!(ot+1>=this.Qb.length))){for(this.l|=16777216,st=this.Qb[ot],y=Math.max(1,a-y);ql(st)>y&&1<st.length;)st=st.substr(0,st.length-1);st+=np,y=ql(st),this.Qb[ot]=st,this.Qb=this.Qb.slice(0,ot+1),this.Qc[ot]=y,this.Qc=this.Qc.slice(0,ot+1),this.Le=this.Qb.length,this.Cb=Math.max(this.Cb,y),this.Gc=this.Le,this.Gc===1&&(this.ze=this.Qb[0])}(this.wrap===L1||isNaN(this.desiredSize.width))&&(z=isNaN(a)?this.Cb:Math.min(a,this.Cb)),z=Math.max(x,z),tt=Math.max(E,tt),Un(this.dc,z,tt),this.Ge(0,0,z,tt),this.svg!==null&&b!==this.Gc&&(this.Uc=!0)},Ct.eh=function(a,y,x,E){Ss(this,a,y,x,E)};function $g(a,y,x){a.ze===null?(a.ze=y,a.Cb=x):((a.Qb===null||a.Qc===null)&&(a.Qb=[],a.Qc=[],a.Qb.push(a.ze),a.Qc.push(a.Cb)),a.Qb.push(y),a.Qc.push(x),a.Qb.length>a.maxLines&&(a.l|=16777216))}function Dv(a,y,x,E){var b=a.formatting===ep;b&&(y=y.trim());var z=0,tt=a.Ae,rt=a.spacingAbove+a.spacingBelow;rt=Math.max(0,tp(a)+rt);var ot=a.overflow===Rm?E1(tt):0;if(a.Gc>=a.maxLines)E!==null&&E.h(0,rt);else if(tt=y,a.wrap===Nv){a.Le=1;var st=ql(y);if(ot===0||st<=x)a.Cb=Math.max(a.Cb,st),$g(a,y,a.Cb),E!==null&&E.h(st,rt);else{for(z=Of(a,tt),tt=tt.substr(z.length),y=Of(a,tt),st=ql(z+y);0<y.length&&st<=x;)z+=y,tt=tt.substr(y.length),y=Of(a,tt),st=z+y,b&&(st=st.trim()),st=ql(st);for(b&&(y=y.trim()),z+=y,x=Math.max(1,x-ot);ql(z)>x&&1<z.length;)z=z.substr(0,z.length-1);a.l|=16777216,z+=np;var ut=ql(z);a.Cb=ut,$g(a,z,ut),E!==null&&E.h(ut,rt)}}else{for(ot=0,tt.length===0&&(ot=1,$g(a,tt,0));0<tt.length;){for(y=Of(a,tt),tt=tt.substr(y.length);ql(y)>x;){var ft=1;for(st=ql(y.substr(0,ft)),ut=0;st<=x;)ft++,ut=st,st=ql(y.substr(0,ft));if(ft===1){var vt=st;z=Math.max(z,st)}else vt=ut,z=Math.max(z,ut);if(ft--,1>ft&&(ft=1),$g(a,y.substr(0,ft),vt),ot++,y=y.substr(ft),a.Gc+ot>a.maxLines)break}for(ut=Of(a,tt),st=ql(y+ut);0<ut.length&&st<=x;)y+=ut,tt=tt.substr(ut.length),ut=Of(a,tt),st=y+ut,b&&(st=st.trim()),st=ql(st);if(b&&(y=y.trim()),y!==""&&(y[y.length-1]==="\xAD"&&(y=y.substring(0,y.length-1)+"\u2010"),ut.length===0?(ft=st,z=Math.max(z,st)):(ft=ut=ql(y),z=Math.max(z,ut)),$g(a,y,ft),ot++,a.Gc+ot>a.maxLines))break}a.Le=Math.min(a.maxLines,ot),a.Cb=Math.max(a.Cb,z),E!==null&&E.h(a.Cb,rt*a.Le)}}function Of(a,y){if(a.wrap===b1)return y.substr(0,1);for(var x=y.length,E=0,b=Mx;E<x&&!b.test(y.charAt(E));)E++;for(a.formatting===M1&&(x=Math.min(x,E+1));E<x&&b.test(y.charAt(E));)E++;return E>=y.length?y:y.substr(0,E)}function ql(a){return js===null?8*a.length:js.measureText(a).width}function tp(a){if(a.df!==null)return a.df;var y=a.Ae;if(js===null){var x=16;return a.df=x}return Ov[y]!==void 0&&5e3>k1?x=Ov[y]:(x=1.3*js.measureText("M").width,Ov[y]=x,k1++),a.df=x}function E1(a){if(js===null)return 6;if(zm[a]!==void 0&&5e3>Iv)var y=zm[a];else y=js.measureText(np).width,zm[a]=y,Iv++;return y}function A1(a,y){var x=a.ec.replace(/\r\n/g,`
`).replace(/\r/g,`
`),E=a.spacingAbove+a.spacingBelow;if(E=Math.max(0,tp(a)+E),x.length===0)return a.Cb=0,a.Gc=1,E;if(!a.isMultiline){var b=x.indexOf(`
`,0);0<=b&&(x=x.substr(0,b))}b=0;for(var z=a.Gc=0,tt,rt=!1;!rt;){if(tt=x.indexOf(`
`,z),tt===-1&&(tt=x.length,rt=!0),z<=tt){if(z=x.substr(z,tt-z),a.wrap!==Nv){a.Le=0;var ot=zt.alloc();Dv(a,z,y,ot),b+=ot.height,zt.free(ot),a.Gc+=a.Le}else Dv(a,z,y,null),b+=E,a.Gc++;a.Gc===a.maxLines&&(rt=!0)}z=tt+1}return a.Lq=b}xe.Object.defineProperties(Ro.prototype,{font:{get:function(){return this.Ae},set:function(a){var y=this.Ae;y!==a&&(this.Ae=a,this.df=null,this.v(),this.g("font",y,a))}},text:{get:function(){return this.ec},set:function(a){var y=this.ec;a!=null?a=a.toString():a="",y!==a&&(this.ec=a,this.v(),this.g("text",y,a),this.Uc=!0)}},textAlign:{get:function(){return this.da!==null?this.da.Or:"start"},set:function(a){var y=this.textAlign;y===a||a!=="start"&&a!=="end"&&a!=="left"&&a!=="right"&&a!=="center"||(bu(this),this.da.Or=a,this.N(),this.g("textAlign",y,a))}},flip:{get:function(){return this.da!==null?this.da.Xf:Hn},set:function(a){var y=this.flip;y!==a&&(bu(this),this.da.Xf=a,this.N(),this.g("flip",y,a))}},verticalAlignment:{get:function(){return this.da!==null?this.da.Yr:Wo},set:function(a){var y=this.verticalAlignment;y.D(a)||(a=a.J(),bu(this),this.da.Yr=a,As(this),this.g("verticalAlignment",y,a))}},naturalBounds:{get:function(){if(!this.dc.w()){var a=zt.alloc();Dv(this,this.ec,999999,a);var y=a.width;zt.free(a),a=A1(this,y);var x=this.desiredSize;isNaN(x.width)||(y=x.width),isNaN(x.height)||(a=x.height),Un(this.dc,y,a)}return this.dc}},isMultiline:{get:function(){return(this.l&2097152)!==0},set:function(a){var y=(this.l&2097152)!==0;y!==a&&(this.l^=2097152,this.v(),this.g("isMultiline",y,a))}},isUnderline:{get:function(){return(this.l&4194304)!==0},set:function(a){var y=(this.l&4194304)!==0;y!==a&&(this.l^=4194304,this.Uc=!0,this.N(),this.g("isUnderline",y,a))}},isStrikethrough:{get:function(){return(this.l&8388608)!==0},set:function(a){var y=(this.l&8388608)!==0;y!==a&&(this.l^=8388608,this.Uc=!0,this.N(),this.g("isStrikethrough",y,a))}},wrap:{get:function(){return this.da!==null?this.da.$r:Bv},set:function(a){var y=this.wrap;y!==a&&(bu(this),this.da.$r=a,this.v(),this.g("wrap",y,a))}},overflow:{get:function(){return this.da!==null?this.da.$q:Tv},set:function(a){var y=this.overflow;y!==a&&(bu(this),this.da.$q=a,this.v(),this.g("overflow",y,a))}},isOverflowed:{get:function(){return(this.l&16777216)!==0}},stroke:{get:function(){return this.xc},set:function(a){var y=this.xc;y!==a&&(a!==null&&Ic(a,"TextBlock.stroke"),a instanceof wo&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},lineCount:{get:function(){return this.Gc}},lineHeight:{get:function(){return tp(this)}},editable:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.g("editable",y,a))}},textEditor:{get:function(){return this.da!==null?this.da.Qr:null},set:function(a){var y=this.textEditor;y!==a&&(bu(this),this.da.Qr=a,this.g("textEditor",y,a))}},errorFunction:{get:function(){return this.da!==null?this.da.Hd:null},set:function(a){var y=this.errorFunction;y!==a&&(bu(this),this.da.Hd=a,this.g("errorFunction",y,a))}},interval:{get:function(){return this.fa!==null?this.fa.Tk:1},set:function(a){var y=this.interval;if(a=Math.round(a),y!==a&&a!==0&&isFinite(a)){this.fa===null&&(this.fa=new Hu),this.fa.Tk=a,this.v();var x=this.panel;x!==null&&(x.graduatedIntervals=null),this.g("interval",y,a)}}},graduatedStart:{get:function(){return this.fa!==null?this.fa.u:0},set:function(a){var y=this.graduatedStart;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new Hu),this.fa.u=a,this.v(),this.g("graduatedStart",y,a))}},graduatedEnd:{get:function(){return this.fa!==null?this.fa.j:1},set:function(a){var y=this.graduatedEnd;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new Hu),this.fa.j=a,this.v(),this.g("graduatedEnd",y,a))}},graduatedFunction:{get:function(){return this.fa!==null?this.fa.F:null},set:function(a){var y=this.graduatedFunction;y!==a&&(this.fa===null&&(this.fa=new Hu),this.fa.F=a,this.v(),this.g("graduatedFunction",y,a))}},graduatedSkip:{get:function(){return this.fa!==null?this.fa.o:null},set:function(a){var y=this.graduatedSkip;y!==a&&(this.fa===null&&(this.fa=new Hu),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}},textValidation:{get:function(){return this.da!==null?this.da.vj:null},set:function(a){var y=this.textValidation;y!==a&&(bu(this),this.da.vj=a,this.g("textValidation",y,a))}},textEdited:{get:function(){return this.da!==null?this.da.Pr:null},set:function(a){var y=this.textEdited;y!==a&&(bu(this),this.da.Pr=a,this.g("textEdited",y,a))}},spacingAbove:{get:function(){return this.da!==null?this.da.Dr:0},set:function(a){var y=this.spacingAbove;y!==a&&(bu(this),this.da.Dr=a,this.v(),this.g("spacingAbove",y,a))}},spacingBelow:{get:function(){return this.da!==null?this.da.Er:0},set:function(a){var y=this.spacingBelow;y!==a&&(bu(this),this.da.Er=a,this.v(),this.g("spacingBelow",y,a))}},formatting:{get:function(){return this.da!==null?this.da.gq:ep},set:function(a){var y=this.formatting;y!==a&&(bu(this),this.da.gq=a,this.v(),this.g("formatting",y,a))}},maxLines:{get:function(){return this.da!==null?this.da.Jq:1/0},set:function(a){var y=this.maxLines;y!==a&&(a=Math.floor(a),0>=a&&Vn(a,"> 0",Ro,"maxLines"),bu(this),this.da.Jq=a,this.v(),this.g("maxLines",y,a))}},metrics:{get:function(){return{arrSize:this.Qc!==null?this.Qc:[this.Cb],arrText:this.Qb!==null?this.Qb:[this.ze],maxLineWidth:this.Cb,fontHeight:this.df}}},choices:{get:function(){return this.Gm},set:function(a){var y=this.Gm;y!==a&&(this.Gm=a,this.g("choices",y,a))}}});var Om=null,Im=null,Nv=new dn(Ro,"None",0),L1=new dn(Ro,"WrapFit",1),Bv=new dn(Ro,"WrapDesiredSize",2),b1=new dn(Ro,"WrapBreakAll",3),Tv=new dn(Ro,"OverflowClip",0),Rm=new dn(Ro,"OverflowEllipsis",1),ep=new dn(Ro,"FormatTrim",0),M1=new dn(Ro,"FormatNone",0),Mx=/[ \u200b\u00ad]/,Ov=new Qi,k1=0,zm=new Qi,Iv=0,np="...",F1="",js=null,jm=!1;Ro.className="TextBlock";function Rv(){this.nc=!1,this.Hd=null,this.Xf=Hn,this.gq=ep,this.Jq=1/0,this.$q=Tv,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=Wo,this.$r=Bv}Rv.prototype.copy=function(){var a=new Rv;return a.Hd=this.Hd,a.Xf=this.Xf,a.gq=this.gq,a.Jq=this.Jq,a.$q=this.$q,a.Dr=this.Dr,a.Er=this.Er,a.Or=this.Or,a.Pr=this.Pr,a.Qr=this.Qr,a.vj=this.vj,a.Yr=this.Yr,a.$r=this.$r,a},Ro.getEllipsis=function(){return np},Ro.setEllipsis=function(a){np=a,zm=new Qi,Iv=0},Ro.getBaseline=function(){return Om},Ro.setBaseline=function(a){Om=a},Ro.getUnderline=function(){return Im},Ro.setUnderline=function(a){Im=a},Ro.isValidFont=function(a){if(jm||(js=da?new zl(null).context:null,jm=!0),js===null)return!0;var y=js.font;if(a===y||a==="10px sans-serif")return!0;js.font="10px sans-serif",js.font=a;var x=js.font;if(x!=="10px sans-serif")return js.font=y,!0;js.font="19px serif";var E=js.font;return js.font=a,x=js.font,js.font=y,x!==E},Ro.FormatNone=M1,Ro.FormatTrim=ep,Ro.None=Nv,Ro.OverflowClip=Tv,Ro.OverflowEllipsis=Rm,Ro.WrapBreakAll=b1,Ro.WrapDesiredSize=Bv,Ro.WrapFit=L1;function Hu(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}Hu.prototype.copy=function(){var a=new Hu;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},Hu.className="GradElementSettings";function Ws(a,y){Me.call(this),this.Eg=null,this.qo="",this.Xg=zr,this.Nk=Qn,this.Zg=this.Hd=null,this.Mk=Ri,this.Xf=Hn,this.vl=null,this.qn=!1,this.en=!0,this.al=!1,this.bt=this.rl=null,typeof a=="string"?this.source=a:a&&Object.assign(this,a),y&&Object.assign(this,y)}var If;ye(Ws,Me),Ws.prototype.cloneProtected=function(a){Me.prototype.cloneProtected.call(this,a),a.qo=this.qo,a.element=this.Eg,a.Xg=this.Xg.J(),a.Nk=this.Nk,a.Xf=this.Xf,a.Hd=this.Hd,a.Zg=this.Zg,a.Mk=this.Mk.J(),a.en=this.en,a.rl=this.rl},Ws.prototype.qb=function(a){a===Hn||a===Yi||a===to?this.imageStretch=a:Me.prototype.qb.call(this,a)},Ws.prototype.toString=function(){return"Picture("+this.source+")#"+Sr(this)};function Rf(a){a===void 0&&(a=""),a!==""?If[a]&&(delete If[a],Wm--):(If=new Qi,Wm=0)}function D1(a,y){y.qy||(y.Fq=function(x){y.sq=!0,y.ln=!1;var E=y.Bg.copy();if(E!=null){for(E=E.iterator;E.next();){var b=E.value;b.N();var z=y.getAttribute("src")||"",tt=b.Og.I(z);if(tt!==null)for(var rt=tt.length,ot=0;ot<rt;ot++)z=tt[ot],b.Xn.add(z),z.Uc=!0,b.$b(),y.hn&&(y.eu===void 0&&(y.eu=x),z.Zg!==null&&z.Zg(z,x))}y.Bg.clear()}a.desiredSize.w()||(Fa(a,!1),a.v())},y.Yp=function(x){y.ln=x;var E=y.Bg.copy();if(E!=null){for(E=E.iterator;E.next();){var b=E.value,z=y.getAttribute("src")||"",tt=b.Og.I(z);if(tt!==null){b=tt.length,z=xi();for(var rt=0;rt<b;rt++)z.push(tt[rt]);if(y.hn)for(rt=0;rt<b;rt++)tt=z[rt],tt.Hd!==null&&tt.Hd(tt,x);gi(z)}}y.Bg.clear()}},y.addEventListener("load",y.Fq),y.addEventListener("error",y.Yp),y.qy=!0)}Ws.prototype.hA=function(){if(this.source!==""){Rf(this.source);var a=this.source;this.source="",this.source=a}},Ws.prototype.redraw=function(){this.N(),this.Uc=!0},Ws.prototype.hh=function(a,y){var x=this.Eg;if(x!==null){var E=x.getAttribute("src");if(!(x instanceof HTMLImageElement&&(E===null||E==="")||x.ln instanceof Event&&a instanceof Jd)){var b=a instanceof tl;E=this.naturalBounds;var z=0,tt=0,rt=this.qn,ot=rt?+x.width:x.naturalWidth;if(rt=rt?+x.height:x.naturalHeight,ot===void 0&&x.videoWidth&&(ot=x.videoWidth),rt===void 0&&x.videoHeight&&(rt=x.videoHeight),ot=ot||E.width,rt=rt||E.height,ot!==0&&rt!==0){var st=ot,ut=rt;this.sourceRect.w()&&(z=this.Xg.x,tt=this.Xg.y,ot=this.Xg.width,rt=this.Xg.height);var ft=ot,vt=rt,xt=this.Nk,Pt=this.Mk;switch(xt){case Hn:if(this.sourceRect.w())break;ft>=E.width&&(z=z+Pt.offsetX+(ft*Pt.x-E.width*Pt.x)),vt>=E.height&&(tt=tt+Pt.offsetY+(vt*Pt.y-E.height*Pt.y)),ot=Math.min(E.width,ft),rt=Math.min(E.height,vt);break;case Qn:ft=E.width,vt=E.height;break;case Yi:case to:xt===Yi?(xt=Math.min(E.height/vt,E.width/ft),ft*=xt,vt*=xt):xt===to&&(xt=Math.max(E.height/vt,E.width/ft),ft*=xt,vt*=xt,ft>=E.width&&(z=(z+Pt.offsetX+(ft*Pt.x-E.width*Pt.x)/ft)*ot),vt>=E.height&&(tt=(tt+Pt.offsetY+(vt*Pt.y-E.height*Pt.y)/vt)*rt),ot*=1/(ft/E.width),rt*=1/(vt/E.height),ft=E.width,vt=E.height)}xt=this.Df()*y.scale;var Ft=ft*xt*vt*xt,Xt=ot*rt/Ft,Wt=x.__goCache;xt=null;var oe=kx;if(!b){if(x.sq&&Wt!==void 0&&4<Ft&&Xt>oe*oe)for(Wt.gi===null&&(B1(Wt,4,st,ut,x),B1(Wt,16,st,ut,x)),b=Wt.gi,st=b.length,ut=0;ut<st&&b[ut].ratio*b[ut].ratio<Xt;ut++)xt=b[ut];if(!y.Xm){if(this.vl===null)if(this.Eg===null)this.vl=!1;else{b=new zl(null).context;try{b.drawImage(this.Eg,0,0)}catch(le){this.en=!1}try{b.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(le){this.vl=!0}}if(this.vl)return}}switch(b=ft<E.width?Pt.offsetX+(E.width*Pt.x-ft*Pt.x):0,Pt=vt<E.height?Pt.offsetY+(E.height*Pt.y-vt*Pt.y):0,this.flip){case oo:a.translate(Math.min(E.width,ft),0),a.scale(-1,1);break;case Kr:a.translate(0,Math.min(E.height,vt)),a.scale(1,-1);break;case ko:a.translate(Math.min(E.width,ft),Math.min(E.height,vt)),a.scale(-1,-1)}if(a.yc(),y.Gf("pictureRatioOptimization")&&!y.$i&&Wt!==void 0&&xt!==null&&xt.ratio!==1){a.save(),y=xt.ratio;try{a.drawImage(xt.source,z/y,tt/y,Math.min(xt.source.width,ot/y),Math.min(xt.source.height,rt/y),b,Pt,Math.min(E.width,ft),Math.min(E.height,vt)),a instanceof tl&&(this.bt=[z/y,tt/y,Math.min(xt.source.width,ot/y),Math.min(xt.source.height,rt/y),b,Pt,Math.min(E.width,ft),Math.min(E.height,vt)])}catch(le){this.en=!1}a.restore()}else try{a.drawImage(x,z,tt,ot,rt,b,Pt,Math.min(E.width,ft),Math.min(E.height,vt)),a instanceof tl&&(this.bt=[z,tt,ot,rt,b,Pt,Math.min(E.width,ft),Math.min(E.height,vt)])}catch(le){this.en=!1}switch(this.flip){case oo:a.scale(-1,1),a.translate(-Math.min(E.width,ft),0);break;case Kr:a.scale(1,-1),a.translate(0,-Math.min(E.height,vt));break;case ko:a.scale(-1,-1),a.translate(-Math.min(E.width,ft),-Math.min(E.height,vt))}}}}},Ws.prototype.Wl=function(a,y,x,E){var b=this.desiredSize,z=zs(this,!0),tt=this.Eg,rt=this.qn,ot=0,st=0;(rt||!this.al&&tt&&tt.complete)&&(this.al=!0),tt===null?(isFinite(b.width)||(a=0),isFinite(b.height)||(y=0)):(ot=rt?+tt.width:tt.naturalWidth,st=rt?+tt.height:tt.naturalHeight),isFinite(b.width)||z===Qn||z===$i?(isFinite(a)||(this.sourceRect.w()?a=this.sourceRect.width:tt!==null&&(a=ot)),x=0):tt!==null&&this.al!==!1&&(a=this.sourceRect.w()?this.sourceRect.width:ot),isFinite(b.height)||z===Qn||z===mr?(isFinite(y)||(this.sourceRect.w()?y=this.sourceRect.height:tt!==null&&(y=st)),E=0):tt!==null&&this.al!==!1&&(y=this.sourceRect.w()?this.sourceRect.height:st),isFinite(b.width)&&(a=b.width),isFinite(b.height)&&(y=b.height),b=this.maxSize,z=this.minSize,x=Math.max(x||0,z.width),E=Math.max(E||0,z.height),a=Math.min(b.width,a),y=Math.min(b.height,y),a=Math.max(x,a),y=Math.max(E,y),tt===null||tt.complete||(isFinite(a)||(a=0),isFinite(y)||(y=0)),Un(this.dc,a,y),this.Ge(0,0,a,y)},Ws.prototype.eh=function(a,y,x,E){Ss(this,a,y,x,E)},xe.Object.defineProperties(Ws.prototype,{element:{get:function(){return this.Eg},set:function(a){var y=this.Eg;if(this.Uc=!0,y!==a){this.qn=a instanceof HTMLCanvasElement;var x=a instanceof HTMLImageElement;a===null||x||a instanceof HTMLVideoElement||this.qn||ee("Picture.element must be an instance of Image, Canvas, or Video, not: "+a);var E=this.diagram;E!==null&&Og(E,this),this.Eg=a,a!==null&&x&&a.Bg===void 0&&(a.Bg=new xn),E!==null&&x&&ad(E,this),a!==null&&(this.qn||a.complete===!0?(a.hn&&(a.ln instanceof Event&&this.Hd!==null?this.Hd(this,a.ln):a.sq===!0&&!a.ln&&this.Zg!==null&&a.eu&&this.Zg(this,a.eu)),a.sq=!0,this.desiredSize.w()||(Fa(this,!1),this.v())):x&&D1(this,a)),this.g("element",y,a),this.N()}}},source:{get:function(){return this.qo},set:function(a){var y=this.qo;if(y!==a){this.Uc=!0,this.qo=a;var x=If;if(da){var E=null;if(x[a]!==void 0)E=x[a];else if(a!==""){30<Wm&&(Rf(),x=If),E=hi("img"),E.hn=!0,D1(this,E);var b=this.rl;b!==null&&(E.crossOrigin=b(this)),E.src=a,x[a]=E,Wm++}this.element=E,E!==null&&E.__goCache===void 0&&(E.__goCache=new N1),this.v(),this.N()}this.g("source",y,a)}}},sourceCrossOrigin:{get:function(){return this.rl},set:function(a){if(this.rl!==a&&(this.rl=a,this.element!==null)){var y=this.element.getAttribute("src");a===null&&typeof y=="string"?this.element.crossOrigin=null:a!==null&&(this.element.crossOrigin=a(this)),this.element.src=y}}},sourceRect:{get:function(){return this.Xg},set:function(a){var y=this.Xg;y.D(a)||(this.Xg=a=a.J(),this.N(),this.g("sourceRect",y,a))}},imageStretch:{get:function(){return this.Nk},set:function(a){var y=this.Nk;y!==a&&(this.Nk=a,this.N(),this.g("imageStretch",y,a))}},flip:{get:function(){return this.Xf},set:function(a){var y=this.Xf;y!==a&&(this.Xf=a,this.N(),this.g("flip",y,a))}},imageAlignment:{get:function(){return this.Mk},set:function(a){var y=this.Mk;y.D(a)||(this.Mk=a=a.J(),this.N(),this.g("imageAlignment",y,a))}},errorFunction:{get:function(){return this.Hd},set:function(a){var y=this.Hd;y!==a&&(this.Hd=a,this.g("errorFunction",y,a))}},successFunction:{get:function(){return this.Zg},set:function(a){var y=this.Zg;y!==a&&(this.Zg=a,this.g("successFunction",y,a))}},naturalBounds:{get:function(){return this.dc}}}),Ws.prototype.redraw=Ws.prototype.redraw,Ws.prototype.reloadSource=Ws.prototype.hA;var Wm=0,kx=4;Ws.className="Picture",If=new Qi,Ws.clearCache=Rf;function N1(){this.gi=null}function B1(a,y,x,E,b){a.gi===null&&(a.gi=[]);var z=new zl(null),tt=z.context,rt=1/y;z.width=x/y,z.height=E/y,z.width!==0&&z.height!==0&&(y=new T1(z.Oa,y),x=1,0<a.gi.length&&(x=a.gi[a.gi.length-1],b=x.source,x=x.ratio),tt.setTransform(rt*x,0,0,rt*x,0,0),tt.yc(),tt.drawImage(b,0,0),a.gi.push(y))}N1.className="PictureCacheArray";function T1(a,y){this.source=a,this.ratio=y}T1.className="PictureCacheInstance";function zf(){this.os=new Wn,this.mc=null}zf.prototype.reset=function(a){a!==null?(a.ka(),this.os=a,a.figures.clear()):this.os=new Wn,this.mc=null};function jf(a,y,x,E,b,z){a.mc=new ua,a.mc.startX=y,a.mc.startY=x,a.mc.isFilled=E,a.mc.isEvenOdd=z||!1,a.os.figures.add(a.mc),b!==void 0&&(a.mc.isShadowed=b)}function Fx(a){var y=a.mc.segments.length;0<y&&a.mc.segments.M(y-1).close()}zf.prototype.moveTo=function(a,y,x){x===void 0&&(x=!1);var E=new Qr(ha);E.endX=a,E.endY=y,x&&E.close(),this.mc.segments.add(E)},zf.prototype.lineTo=function(a,y,x){x===void 0&&(x=!1);var E=new Qr(So);E.endX=a,E.endY=y,x&&E.close(),this.mc.segments.add(E)};function Fh(a,y,x,E,b,z,tt){var rt;rt===void 0&&(rt=!1);var ot=new Qr(ma);ot.point1X=y,ot.point1Y=x,ot.point2X=E,ot.point2Y=b,ot.endX=z,ot.endY=tt,rt&&ot.close(),a.mc.segments.add(ot)}function Hm(a,y,x,E,b){var z;z===void 0&&(z=!1);var tt=new Qr(ds);tt.point1X=y,tt.point1Y=x,tt.endX=E,tt.endY=b,z&&tt.close(),a.mc.segments.add(tt)}zf.prototype.arcTo=function(a,y,x,E,b,z,tt){z===void 0&&(z=0),tt===void 0&&(tt=!1);var rt=new Qr(la);rt.startAngle=a,rt.sweepAngle=y,rt.centerX=x,rt.centerY=E,rt.radiusX=b,rt.radiusY=z!==0?z:b,tt&&rt.close(),this.mc.segments.add(rt)};function Dx(a,y,x,E,b,z,tt,rt){var ot;ot===void 0&&(ot=!1),y=new Qr(cs,tt,rt,y,x,E,b,z),ot&&y.close(),a.mc.segments.add(y)}function O1(a){var y=Zm;return y!==null?(Zm=null,y.reset(a),y):(y=new zf,y.reset(a),y)}var Zm=null;zf.className="StreamGeometryContext";function vs(a,y){var x=a.toLowerCase(),E=me.Ze;E[a]=y,E[x]=a}vs("Rectangle",function(a,y,x){a="r"+y+","+x;var E=me.Mf[a];return E!==void 0||(E=new Wn(Wn.u),E.endX=y,E.endY=x,me.Nf<me.vm&&(me.Mf[a]=E,me.Nf++)),E}),vs("Square",function(a,y,x){a="s"+y+","+x;var E=me.Mf[a];return E!==void 0||(E=new Wn(Wn.u),E.endX=y,E.endY=x,E.defaultStretch=Yi,me.Nf<me.vm&&(me.Mf[a]=E,me.Nf++)),E}),vs("RoundedRectangle",function(a,y,x){a=a?a.parameter1:NaN,(isNaN(a)||0>a)&&(a=5),a=Math.min(a,y/3),a=Math.min(a,x/3);var E="rr"+y+","+x+","+a,b=me.Mf[E];if(b!==void 0)return b;var z=a*me.wg;return b=new Wn().add(new ua(a,0,!0).add(new Qr(So,y-a,0)).add(new Qr(ma,y,a,y-z,0,y,z)).add(new Qr(So,y,x-a)).add(new Qr(ma,y-a,x,y,x-z,y-z,x)).add(new Qr(So,a,x)).add(new Qr(ma,0,x-a,z,x,0,x-z)).add(new Qr(So,0,a)).add(new Qr(ma,a,0,0,z,z,0).close())),1<z&&(b.spot1=new Mn(0,0,z,z),b.spot2=new Mn(1,1,-z,-z)),me.Nf<me.vm&&(me.Mf[E]=b,me.Nf++),b}),vs("Border","RoundedRectangle"),vs("Ellipse",function(a,y,x){a="e"+y+","+x;var E=me.Mf[a];return E!==void 0||(E=new Wn(Wn.F),E.endX=y,E.endY=x,E.spot1=br,E.spot2=Ur,me.Nf<me.vm&&(me.Mf[a]=E,me.Nf++)),E}),vs("Circle",function(a,y,x){a="c"+y+","+x;var E=me.Mf[a];return E!==void 0||(E=new Wn(Wn.F),E.endX=y,E.endY=x,E.spot1=br,E.spot2=Ur,E.defaultStretch=Yi,me.Nf<me.vm&&(me.Mf[a]=E,me.Nf++)),E}),vs("TriangleRight",function(a,y,x){return new Wn().add(new ua(0,0).add(new Qr(So,y,.5*x)).add(new Qr(So,0,x).close())).pm(0,.25,.5,.75)}),vs("TriangleDown",function(a,y,x){return new Wn().add(new ua(0,0).add(new Qr(So,y,0)).add(new Qr(So,.5*y,x).close())).pm(.25,0,.75,.5)}),vs("TriangleLeft",function(a,y,x){return new Wn().add(new ua(y,x).add(new Qr(So,0,.5*x)).add(new Qr(So,y,0).close())).pm(.5,.25,1,.75)}),vs("TriangleUp",function(a,y,x){return new Wn().add(new ua(y,x).add(new Qr(So,0,x)).add(new Qr(So,.5*y,0).close())).pm(.25,.5,.75,1)}),vs("Triangle","TriangleUp"),vs("Diamond",function(a,y,x){return new Wn().add(new ua(.5*y,0).add(new Qr(So,0,.5*x)).add(new Qr(So,.5*y,x)).add(new Qr(So,y,.5*x).close())).pm(.25,.25,.75,.75)}),vs("LineH",function(a,y,x){return a=new Wn(Wn.j),a.startX=0,a.startY=x/2,a.endX=y,a.endY=x/2,a}),vs("LineV",function(a,y,x){return a=new Wn(Wn.j),a.startX=y/2,a.startY=0,a.endX=y/2,a.endY=x,a}),vs("None","Rectangle"),vs("BarH","Rectangle"),vs("BarV","Rectangle"),vs("MinusLine","LineH"),vs("PlusLine",function(a,y,x){return new Wn().add(new ua(0,x/2,!1).add(new Qr(So,y,x/2)).add(new Qr(ha,y/2,0)).add(new Qr(So,y/2,x)))}),vs("XLine",function(a,y,x){return new Wn().add(new ua(0,x,!1).add(new Qr(So,y,0)).add(new Qr(ha,0,0)).add(new Qr(So,y,x)))}),vs("LineRight",function(a,y,x){return new Wn().add(new ua(.25*y,0,!1).add(new Qr(So,.75*y,.5*x)).add(new Qr(So,.25*y,x)))}),vs("LineDown",function(a,y,x){return new Wn().add(new ua(0,.25*x,!1).add(new Qr(So,.5*y,.75*x)).add(new Qr(So,y,.25*x)))}),vs("LineLeft",function(a,y,x){return new Wn().add(new ua(.75*y,0,!1).add(new Qr(So,.25*y,.5*x)).add(new Qr(So,.75*y,x)))}),vs("LineUp",function(a,y,x){return new Wn().add(new ua(0,.75*x,!1).add(new Qr(So,.5*y,.25*x)).add(new Qr(So,y,.75*x)))}),me.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"};function zv(){this.nc=!1,this.tr=this.Kp=this.zq=null,this.vr="",this.fr=this.oq=this.ur=null,this.hr="",this.gr=Bn,this.ir=null,this.jr="",this.lr=bo,this.Gq="",this.Hq=ar,this.Pq=Gt,this.Kq=he,this.Up=null,this.Cq=127,this.zr=Be,this.yr="gray",this.Vg=4}zv.prototype.copy=function(){var a=new zv;return a.zq=this.zq,a.Kp=this.Kp,a.tr=this.tr,a.vr=this.vr,a.ur=this.ur,a.oq=this.oq,a.fr=this.fr,a.hr=this.hr,a.gr=this.gr.J(),a.ir=this.ir,a.jr=this.jr,a.lr=this.lr.J(),a.Gq=this.Gq,a.Hq=this.Hq.J(),a.Pq=this.Pq.J(),a.Kq=this.Kq.J(),a.Up=this.Up,a.Cq=this.Cq,a.zr=this.zr.J(),a.yr=this.yr,a.Vg=this.Vg,a};function rr(a,y){a===void 0||a instanceof Oa||typeof a=="string"?ei.call(this,a):(ei.call(this),a&&(y=a)),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 Bt(NaN,NaN).freeze(),this.nf=null,this.Ao=NaN,this.vw=-1,this.py=new ue,this.Rh=null,this.ag=NaN,y&&Object.assign(this,y)}ye(rr,ei),rr.prototype.cloneProtected=function(a){ei.prototype.cloneProtected.call(this,a),a.G=this.G&-4097|49152,a.Tf=this.Tf,this.P!==null&&(a.P=this.P.nc?this.P:this.P.copy()),a.Jg=this.Jg,a.Qf=null,a.ec=this.ec,a.ke.assign(this.ke),a.Ao=this.Ao},Ct=rr.prototype,Ct.Af=function(a){ei.prototype.Af.call(this,a),a.oh(),a.Ug=null,a.nf=null,a.Rh=null},Ct.toString=function(){var a=Li(this.constructor)+"#"+Sr(this);return this.data!==null&&(a+="("+Zi(this.data)+")"),a};function Hs(a){a.P===null?a.P=new zv:a.P.nc&&(a.P=a.P.copy())}Ct.th=function(){ei.prototype.th.call(this),this.P!==null&&(this.P.nc=!0)},Ct.gk=function(a,y,x,E,b,z,tt){var rt=this.diagram;rt!==null&&(a===$o&&y==="elements"?b instanceof ei?Qd(b,function(ot){dy(rt.partManager,ot),Vd(rt,ot)}):ad(rt,b):a===ca&&y==="elements"&&(b instanceof ei?Qd(b,function(ot){cy(rt.partManager,ot,rt)}):Og(rt,b)),rt.cb(a,y,x,E,b,z,tt))},Ct.La=function(a){if(ei.prototype.La.call(this,a),this.data!==null){for(var y=this.O.s,x=y.length,E=0;E<x;E++){var b=y[E];b instanceof ei&&Qd(b,function(z){z.data!==null&&z.La()})}for(y=this.adornments;y.next();)y.value.La(a)}},rr.prototype.updateRelationshipsFromData=function(){var a;this.data!==null&&((a=this.diagram)===null||a===void 0||a.partManager.updateRelationshipsFromData(this))},rr.prototype.Pj=function(a){var y=this.Qf;return y===null?null:y.I(a)},rr.prototype.bh=function(a,y){if(y!==null){var x=null,E=this.Qf;if(E!==null&&(x=E.I(a)),x!==y){if(x!==null){var b=x.diagram;b!==null&&b.remove(x)}E===null&&(this.Qf=E=new on),y.Tf!==a&&(y.category=a),E.add(a,y),a=this.diagram,a!==null&&(a.add(y),a=y.adornedObject,a!==null&&(a=a.ih(),a!==null&&(y.data=a.data)))}}},rr.prototype.Jf=function(a){var y=this.Qf;if(y!==null){var x=y.I(a);if(x!==null){var E=x.diagram;E!==null&&E.remove(x)}y.remove(a),y.count===0&&(this.Qf=null)}},rr.prototype.Ej=function(){var a=this.Qf;if(a!==null){var y=xi();for(a=a.iterator;a.next();)y.push(a.key);a=y.length;for(var x=0;x<a;x++)this.Jf(y[x]);gi(y)}},rr.prototype.updateAdornments=function(){var a=this.diagram;if(a!==null){for(var y=this.adornments;y.next();){var x=y.value;x.v(),x.placeholder&&x.placeholder.v()}t:{if(this.isSelected&&this.selectionAdorned&&(y=this.selectionObject,y!==null&&this.actualBounds.w()&&this.isVisible()&&y.Ed()&&y.actualBounds.w())){if(x=this.Pj("Selection"),x===null){if(x=this.selectionAdornmentTemplate,x===null&&(x=this.ph()?a.linkSelectionAdornmentTemplate:this instanceof Tr?a.groupSelectionAdornmentTemplate:a.nodeSelectionAdornmentTemplate),!(x instanceof uo))break t;jl(x),x=x.copy(),x!==null&&(this.ph()&&this.selectionObject===this.path&&(x.type=ei.Link),x.adornedObject=y)}if(x!==null){x.type===ei.Link&&x.v(),this.bh("Selection",x);break t}}this.Jf("Selection")}for(Nx(this,a),y=this.adornments;y.next();)y.value.La()}},rr.prototype.Wb=function(){var a=this.diagram;a!==null&&(a.vd=!0,!(this.G&16384)&&(this.G|=16384))};function jv(a){a.G&16384&&(a.updateAdornments(),a.G&=-16385)}function Nx(a,y){y.toolManager.mouseDownTools.each(function(x){x.isEnabled&&x.updateAdornments(a)}),y.toolManager.updateAdornments(a)}function Vm(a){if(hd(a)===!1){Hv(a,!0),a.Uk();var y=a.diagram;y!==null&&(y.De.add(a),y.$b())}}function I1(a){if(a.G|=2097152,hd(a)!==!1){var y=a.position,x=a.location;x.w()&&y.w()||j1(a,y,x),x=a.Ib;var E=ue.alloc().assign(x);x.ka(),x.x=y.x,x.y=y.y,x.freeze(),a.Xl(E,x),ue.free(E),Hv(a,!1)}}rr.prototype.Ge=function(a,y,x,E){var b=this.uc;b.h(a,y,x,E),this.Lb===null&&(this.Lb=new Ei);var z=this.Lb;z.reset(),this.no(z,a,y,x,E),this.Lb=z,z.ws()||z.pp(b)},rr.prototype.no=function(a,y,x,E,b){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=Ri;this.locationSpot.sb()&&(z=this.locationSpot);var tt=Bt.alloc();if(this.locationObject!==this)for(y=this.locationObject,x=y.naturalBounds,tt.yi(x.x,x.y,x.width,x.height,z),y.Lb!==null&&y.Lb.Ga(tt),tt.offset(-y.measuredBounds.x,-y.measuredBounds.y),z=y.panel;z!==null&&z!==this;)z.Lb!==null&&z.Lb.Ga(tt),tt.offset(-z.measuredBounds.x,-z.measuredBounds.y),z=z.panel;else tt.yi(y,x,E,b,z);a.rotate(this.Kb,tt.x,tt.y),Bt.free(tt)}},rr.prototype.move=function(a,y){y===!0?this.location=a:this.position=a},rr.prototype.moveTo=function(a,y,x){a=Bt.allocAt(a,y),this.move(a,x),Bt.free(a)},rr.prototype.isVisible=function(){if(!this.visible)return!1;var a=this.layer;if(a!==null){if(!a.visible)return!1;if(a=a.diagram,a!==null&&a.animationManager.fv(this))return!0}return a=this.containingGroup,!!(a===null||a.isSubGraphExpanded&&a.isVisible())},rr.prototype.Zb=function(a){var y=this.diagram;a?(this.C(4),this.Wb(),y!==null&&y.De.add(this)):(this.C(8),this.Ej()),this.oh(),y!==null&&(y.Ya(),y.N())},rr.prototype.fb=function(a){if(this.name===a)return this;var y=this.Rh;if(y===null&&(this.Rh=y=new on),y.I(a)!==null)return y.I(a);var x=ei.prototype.fb.call(this,a);return x!==null?(y.set(a,x),x):(y.set(a,null),null)};function Dh(a,y,x,E){E===void 0&&(E=new Bt),x=x.Mc()?Ri:x;var b=y.naturalBounds;if(E.h(b.width*x.x+x.offsetX,b.height*x.y+x.offsetY),y===null||y===a)return E;for(y.transform.Ga(E),y=y.panel;y!==null&&y!==a;)y.transform.Ga(E),y=y.panel;return a.Lb!==null&&a.Lb.Ga(E),E.offset(-a.uc.x,-a.uc.y),E}rr.prototype.mi=function(a){return a===void 0&&(a=new ue),a.assign(this.actualBounds)},rr.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function R1(a){var y=Bt.alloc(),x=a.locationObject,E=x.naturalBounds,b=x instanceof Wr?x.strokeWidth:0;if(y.yi(0,0,E.width+b,E.height+b,a.locationSpot),x!==a)for(y.offset(-b/2,-b/2),x.transform.Ga(y),x=x.panel;x!==null&&x!==a;)x.transform.Ga(y),x=x.panel;return a.Lb!==null&&a.Lb.Ga(y),y.offset(-a.uc.x,-a.uc.y),y}function tc(a,y){var x=a.py;isNaN(a.ag)&&(a.ag=g1(a));var E=a.ag,b=2*E;if(!a.isShadowed)return x.h(y.x-1-E,y.y-1-E,y.width+2+b,y.height+2+b),x;E=y.x,b=y.y;var z=y.width;y=y.height;var tt=a.shadowBlur;return a=a.shadowOffset,z+=tt,y+=tt,E-=tt/2,b-=tt/2,0<a.x?z+=a.x:(E+=a.x,z-=a.x),0<a.y?y+=a.y:(b+=a.y,y-=a.y),x.h(E-1,b-1,z+2,y+2),x}rr.prototype.arrange=function(){if(Ls(this)===!1)I1(this);else{Ru(this,!1);var a=this.Ib,y=ue.alloc();y.assign(a);var x=dd(this);this.eh(0,0,this.uc.width,this.uc.height);var E=this.position;j1(this,E,this.location),a.ka(),a.x=E.x,a.y=E.y,a.freeze(),this.Xl(y,a),y.D(a)?this.Fd(x):!this.Zc()||me.B(y.width,a.width)&&me.B(y.height,a.height)||0<=this.vw&&this.C(16),ue.free(y),Hv(this,!1)}},Ct=rr.prototype,Ct.Xl=function(a,y){var x=this.diagram;if(x!==null){var E=!1;if(x.Zi===!1&&a.w()){var b=ue.alloc();b.assign(x.documentBounds),b.Fv(x.padding),a.x>b.x&&a.y>b.y&&a.right<b.right&&a.bottom<b.bottom&&y.x>b.x&&y.y>b.y&&y.right<b.right&&y.bottom<b.bottom&&(E=!0),ue.free(b)}!(this.G&65536)&&a.D(y)||Z1(this,E,x),x.N(),!a.w()&&!y.w()||ci(a,y)||(this instanceof bi&&!x.undoManager.isUndoingRedoing&&this.Bd(),this.oh())}},Ct.zv=function(a,y,x){if(this.ph()||!a.w())return!1;var E=this.diagram;return E!==null&&z1(this,E,a,y,x),this.pa=a,this.G&=-2097153,!this.ke.w()||E!==null&&!E.animationManager.isTicking&&E.undoManager.isUndoingRedoing||(E=this.ke,this.ke=new Bt(E.x+(a.x-y),E.y+(a.y-x)),this.g("location",E,this.ke.copy())),hd(this)===!1&&Ls(this)===!1&&(Vm(this),I1(this)),!0};function z1(a,y,x,E,b){y===null||a instanceof uo||(y=y.animationManager,y.zb&&hf(y,a,new Bt(E,b),x))}Ct.mm=function(a,y,x){var E=this.ke,b=this.pa;if(x){if(E.x===a&&E.y===y)return;hd(this)||Ls(this)?b.h(NaN,NaN):b.h(b.x+a-E.x,b.y+y-E.y),E.h(a,y)}else{if(b.x===a&&b.y===y)return;E.h(E.x+a-b.x,E.y+y-b.y),b.h(a,y)}Vm(this)},Ct.Av=function(){this.G&=-2097153,Vm(this)};function j1(a,y,x){var E=R1(a),b=a.diagram,z=x.w(),tt=y.w();z&&tt?a.G&2097152?W1(a,y,x,b,E):H1(a,y,x,b,E):z?W1(a,y,x,b,E):tt&&H1(a,y,x,b,E),a.G|=2097152,Bt.free(E),a.Uk()}function W1(a,y,x,E,b){var z=y.x,tt=y.y;y.h(x.x-b.x,x.y-b.y),E!==null&&(x=E.animationManager,(E=x.defaultAnimation.isAnimating)||!x.zb||a instanceof uo||hf(x,a,new Bt(z,tt),y),E||y.x===z&&y.y===tt||a.g("position",new Bt(z,tt),y.copy()))}function H1(a,y,x,E,b){var z=x.copy();x.h(y.x+b.x,y.y+b.y),x.D(z)||E===null||a.g("location",z,x.copy())}function Z1(a,y,x){Zv(a,!1),a instanceof bi&&Eh(x,a),a.layer.isTemporary||y||x.Ya(),y=a.Ib;var E=x.viewportBounds;E.w()?dd(a)?(Fi(y,E)||a.Fd(!1),a.updateAdornments()):a.isVisible()&&y.Yc(E)?(a.Fd(!0),a.updateAdornments()):a.Wb():x.vd=!0}Ct.si=function(){return!0},Ct.Zc=function(){return!0},Ct.ph=function(){return!1},Ct.Dd=function(){return!0};function Wv(a,y,x,E){y.constructor===a.constructor||K1||(K1=!0,_n('Should not change the class of the Part when changing category from "'+x+'" to "'+E+'"'),_n(" Old class: "+Li(a.constructor)+", new class: "+Li(y.constructor)+", part: "+a.toString())),a.Ej();var b=a.data;x=a.layerName;var z=a.isSelected,tt=a.isHighlighted,rt=!0,ot=!0,st=!1;a instanceof bi&&(rt=a.isTreeLeaf,ot=a.isTreeExpanded,st=a.wasTreeExpanded),y.Af(a),y.cloneProtected(a),a.Tf=E,a.svg!==null&&(a.svg.remove(),a.svg=null,a.Uc=!0),a.v(),a.N(),y=a.diagram,E=!0,y!==null&&(E=y.skipsUndoManager,y.skipsUndoManager=!0),a.ub=b,a.G=z?a.G|4096:a.G&-4097,a.G=tt?a.G|524288:a.G&-524289,a instanceof bi&&(a.U=rt?a.U|4:a.U&-5,a.U=ot?a.U|1:a.U&-2,a.U=st?a.U|2:a.U&-3),b!==null&&a.La(),b=a.layerName,b!==x&&(a.Jg=x,a.layerName=b),y!==null&&(y.skipsUndoManager=E),a.Zc()&&a.C(64)}rr.prototype.canCopy=function(){if(!this.copyable)return!1;var a=this.layer;return a===null?!0:a.allowCopy?(a=a.diagram,a===null?!0:!!a.allowCopy):!1},rr.prototype.canDelete=function(){if(!this.deletable)return!1;var a=this.layer;return a===null?!0:a.allowDelete?(a=a.diagram,a===null?!0:!!a.allowDelete):!1},rr.prototype.canEdit=function(){if(!this.textEditable)return!1;var a=this.layer;return a===null?!0:a.allowTextEdit?(a=a.diagram,a===null?!0:!!a.allowTextEdit):!1},rr.prototype.canGroup=function(){if(!this.groupable)return!1;var a=this.layer;return a===null?!0:a.allowGroup?(a=a.diagram,a===null?!0:!!a.allowGroup):!1},rr.prototype.canMove=function(){if(!this.movable)return!1;var a=this.layer;return a===null?!0:a.allowMove?(a=a.diagram,a===null?!0:!!a.allowMove):!1},rr.prototype.canReshape=function(){if(!this.reshapable)return!1;var a=this.layer;return a===null?!0:a.allowReshape?(a=a.diagram,a===null?!0:!!a.allowReshape):!1},rr.prototype.canResize=function(){if(!this.resizable)return!1;var a=this.layer;return a===null?!0:a.allowResize?(a=a.diagram,a===null?!0:!!a.allowResize):!1},rr.prototype.canRotate=function(){if(!this.rotatable)return!1;var a=this.layer;return a===null?!0:a.allowRotate?(a=a.diagram,a===null?!0:!!a.allowRotate):!1},rr.prototype.canSelect=function(){if(!this.selectable)return!1;var a=this.layer;return a===null?!0:a.allowSelect?(a=a.diagram,a===null?!0:!!a.allowSelect):!1};function hd(a){return(a.G&32768)!==0}function Hv(a,y){a.G=y?a.G|32768:a.G&-32769}function Zv(a,y){a.G=y?a.G|65536:a.G&-65537}function dd(a){return(a.G&131072)!==0}Ct=rr.prototype,Ct.Fd=function(a){this.G=a?this.G|131072:this.G&-131073};function Gm(a,y){a.G=y?a.G|1048576:a.G&-1048577}Ct.oh=function(){var a=this.containingGroup;a!==null&&(a.v(),a.placeholder!==null&&a.placeholder.v(),a.Bd())},Ct.N=function(){var a=this.diagram;a!==null&&!Ls(this)&&!hd(this)&&this.isVisible()&&this.Ib.w()&&a.N(tc(this,this.Ib))},Ct.v=function(){ei.prototype.v.call(this);var a=this.diagram;a!==null&&(a.De.add(this),this instanceof bi&&this.labeledLink!==null&&As(this.labeledLink),a.$b(!0))},Ct.Vo=function(a){a||(a=this.Ah,a!==null&&Xv(a,this))},Ct.Wo=function(a){a||(a=this.Ah,a!==null&&_v(a,this))},Ct.Lj=function(){var a=this.data;if(a!==null){var y=this.diagram;y!==null&&(y=y.model,y!==null&&y.cm(a))}},Ct.oz=function(){return Vv(this,this)};function Vv(a,y){var x=y.containingGroup;return x!==null?1+Vv(a,x):y instanceof bi&&(y=y.labeledLink,y!==null)?Vv(a,y):0}Ct.sz=function(){return V1(this,this)};function V1(a,y){var x=y.containingGroup;return x!==null||y instanceof bi&&(x=y.labeledLink,x!==null)?V1(a,x):y}Ct.Td=function(a){return a instanceof Tr?Gv(this,this,a):!1};function Gv(a,y,x){if(y===x||x===null)return!1;var E=y.containingGroup;return E===null||E!==x&&!Gv(a,E,x)?y instanceof bi&&(y=y.labeledLink,y!==null)?Gv(a,y,x):!1:!0}Ct.px=function(a){if(a===null)return null;if(this===a)return this.containingGroup;for(var y=this;y!==null;){if(y instanceof Tr&&Gm(y,!0),y instanceof bi){var x=y.labeledLink;x!==null&&(y=x)}y=y.containingGroup}for(x=null,y=a;y!==null;){if(y.G&1048576){x=y;break}y instanceof bi&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup}for(y=this;y!==null;)y instanceof Tr&&Gm(y,!1),y instanceof bi&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup;return x},rr.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var a=this.layer;return!(a!==null&&a.isTemporary||this instanceof bi&&this.isLinkLabel)},rr.prototype.C=function(a){if(a===void 0&&(a=16777215),this.isLayoutPositioned&&a&this.layoutConditions){var y=this.layer;y!==null&&y.isTemporary||this instanceof bi&&this.isLinkLabel?y=!1:(y=this.diagram,y=!(y!==null&&y.undoManager.isUndoingRedoing))}else y=!1;if(y)if(y=this.Ah,y!==null){var x=y.layout;x!==null?x.C():y.C(a)}else a=this.diagram,a!==null&&(a=a.layout,a!==null&&a.C())};function G1(a){return a.isVisible()?(a=a.layer,!(a!==null&&a.isTemporary)):!1}function cd(a,y,x,E,b,z){if(z===void 0&&(z=null),!(a.contains(y)||z!==null&&!z(y)||y instanceof uo)){if(a.add(y),y instanceof bi){if(x&&y instanceof Tr)for(var tt=y.memberParts;tt.next();)cd(a,tt.value,x,E,b,z);if(b!==!1)for(tt=y.linksConnected;tt.next();){var rt=tt.value;if(!a.contains(rt)){var ot=rt.fromNode,st=rt.toNode;ot=ot===null||a.contains(ot),st=st===null||a.contains(st),(b?ot&&st:ot||st)&&cd(a,rt,x,E,b,z)}}if(1<E)for(y=y.Ou();y.next();)cd(a,y.value,x,E-1,b,z)}else if(y instanceof di)for(y=y.labelNodes;y.next();)cd(a,y.value,x,E,b,z)}}xe.Object.defineProperties(rr.prototype,{key:{get:function(){var a=this.diagram;if(a!==null)return a.model.wa(this.data)}},adornments:{get:function(){return this.Qf===null?Ar:this.Qf.iteratorValues}},layer:{get:function(){return this.Ig}},diagram:{get:function(){var a=this.Ig;return a==null?null:a.diagram}},layerName:{get:function(){return this.Jg},set:function(a){var y=this.Jg;if(y!==a){var x=this.diagram;if((x===null||x.Qj(a)!==null&&!x.partManager.addsToTemporaryLayer)&&(this.Jg=a,x!==null&&x.Ya(),this.g("layerName",y,a),y=this.layer,y!==null&&y.name!==a&&(x=y.diagram,x!==null&&(a=x.Qj(a),a!==null&&a!==y)))){var E=y.pc(-1,this,!0);if(0<=E&&x.cb(ca,"parts",y,this,null,E,!0),E=a.oi(99999999,this,!0),y.visible!==a.visible&&this.Zb(a.visible),0<=E&&x.cb($o,"parts",a,null,this,!0,E),E=this.layerChanged,E!==null){var b=x.aa;x.aa=!0,E(this,y,a),x.aa=b}}}}},layerChanged:{get:function(){return this.P!==null?this.P.zq:null},set:function(a){var y=this.layerChanged;y!==a&&(Hs(this),this.P.zq=a,this.g("layerChanged",y,a))}},zOrder:{get:function(){return this.Ao},set:function(a){var y=this.Ao;if(y!==a){this.Ao=a;var x=this.layer;x!==null&&ff(x,-1,this),this.g("zOrder",y,a),a=this.diagram,a!==null&&a.N()}}},locationObject:{get:function(){if(this.nf===null){var a=this.locationObjectName;a!==""?(a=this.fb(a),a!==null?this.nf=a:this.nf=this):this instanceof uo?this.type!==ei.Link&&this.placeholder!==null?this.nf=this.placeholder:this.nf=this:this.nf=this}return this.nf.visible?this.nf:this}},minLocation:{get:function(){return this.P!==null?this.P.Pq:Gt},set:function(a){var y=this.minLocation;y.D(a)||(a=a.J(),Hs(this),this.P.Pq=a,this.g("minLocation",y,a))}},maxLocation:{get:function(){return this.P!==null?this.P.Kq:he},set:function(a){var y=this.maxLocation;y.D(a)||(a=a.J(),Hs(this),this.P.Kq=a,this.g("maxLocation",y,a))}},locationObjectName:{get:function(){return this.P!==null?this.P.Gq:""},set:function(a){var y=this.locationObjectName;y!==a&&(Hs(this),this.P.Gq=a,this.nf=null,this.v(),this.g("locationObjectName",y,a))}},locationSpot:{get:function(){return this.P!==null?this.P.Hq:ar},set:function(a){var y=this.locationSpot;y.D(a)||(a=a.J(),Hs(this),this.P.Hq=a,this.v(),this.g("locationSpot",y,a))}},location:{get:function(){return this.ke},set:function(a){var y=a.x,x=a.y,E=this.ke;if(!(E.x===y||isNaN(E.x)&&isNaN(y))||!(E.y===x||isNaN(E.y)&&isNaN(x))){if(a=a.copy(),y=a,this.ph())y=!1;else{if(this.ke=y,this.G|=2097152,Ls(this)===!1&&(Vm(this),x=this.pa,x.w())){var b=this.diagram;if(b===null||b.animationManager.isTicking||!b.undoManager.isUndoingRedoing){var z=x.copy();x.h(x.x+(y.x-E.x),x.y+(y.y-E.y)),z1(this,b,x,z.x,z.y),this.g("position",z,x.copy())}}y=!0}y&&this.g("location",E,a.copy())}}},category:{get:function(){return this.Tf},set:function(a){var y=this.Tf;if(y!==a){this.svg!==null&&(this.svg.remove(),this.Uc=!0);var x=this.diagram,E=this.data,b=null;if(x!==null&&E!==null&&!(this instanceof uo)){var z=x.model.undoManager;z.isEnabled&&!z.isUndoingRedoing&&(b=this.clone(),b.O.addAll(this.O))}this.Tf=a,this.g("category",y,a),x===null||E===null||this instanceof uo?this instanceof uo&&(b=this.adornedPart,b!==null&&(a=b.Qf,a!==null&&a.remove(y),b.bh(this.category,this))):(z=x.model,z.undoManager.isUndoingRedoing||(this.ph()?(x.partManager.setLinkCategoryForData(E,a),x=x.partManager.findLinkTemplateForCategory(a),x!==null&&(jl(x),x=x.copy(),x!==null&&Wv(this,x,y,a))):(z!==null&&z.jm(E,a),x=mS(x.partManager,E,a),x!==null&&(jl(x),x=x.copy(),x===null||x instanceof di||(E=this.location.copy(),Wv(this,x,y,a),this.location.w()||(this.location=E)))),b!==null&&(y=this.clone(),y.O.addAll(this.O),this.g("self",b,y))))}}},self:{get:function(){return this},set:function(a){Wv(this,a,this.category,a.category)}},copyable:{get:function(){return(this.G&1)!==0},set:function(a){var y=(this.G&1)!==0;y!==a&&(this.G^=1,this.g("copyable",y,a))}},deletable:{get:function(){return(this.G&2)!==0},set:function(a){var y=(this.G&2)!==0;y!==a&&(this.G^=2,this.g("deletable",y,a))}},textEditable:{get:function(){return(this.G&4)!==0},set:function(a){var y=(this.G&4)!==0;y!==a&&(this.G^=4,this.g("textEditable",y,a),this.Wb())}},groupable:{get:function(){return(this.G&8)!==0},set:function(a){var y=(this.G&8)!==0;y!==a&&(this.G^=8,this.g("groupable",y,a))}},movable:{get:function(){return(this.G&16)!==0},set:function(a){var y=(this.G&16)!==0;y!==a&&(this.G^=16,this.g("movable",y,a))}},selectionAdorned:{get:function(){return(this.G&32)!==0},set:function(a){var y=(this.G&32)!==0;y!==a&&(this.G^=32,this.g("selectionAdorned",y,a),this.Wb())}},isInDocumentBounds:{get:function(){return(this.G&64)!==0},set:function(a){var y=(this.G&64)!==0;if(y!==a){this.G^=64;var x=this.diagram;x!==null&&x.Ya(),this.g("isInDocumentBounds",y,a)}}},isLayoutPositioned:{get:function(){return(this.G&128)!==0},set:function(a){var y=(this.G&128)!==0;y!==a&&(this.G^=128,this.g("isLayoutPositioned",y,a),this.C(a?4:8))}},selectable:{get:function(){return(this.G&256)!==0},set:function(a){var y=(this.G&256)!==0;y!==a&&(this.G^=256,this.g("selectable",y,a),this.Wb())}},reshapable:{get:function(){return(this.G&512)!==0},set:function(a){var y=(this.G&512)!==0;y!==a&&(this.G^=512,this.g("reshapable",y,a),this.Wb())}},resizable:{get:function(){return(this.G&1024)!==0},set:function(a){var y=(this.G&1024)!==0;y!==a&&(this.G^=1024,this.g("resizable",y,a),this.Wb())}},rotatable:{get:function(){return(this.G&2048)!==0},set:function(a){var y=(this.G&2048)!==0;y!==a&&(this.G^=2048,this.g("rotatable",y,a),this.Wb())}},isSelected:{get:function(){return(this.G&4096)!==0},set:function(a){var y=(this.G&4096)!==0;if(y!==a){var x=this.diagram;if(!a||this.canSelect()&&!(x!==null&&x.selection.count>=x.maxSelectionCount)){this.G^=4096;var E=!1;if(x!==null){E=x.skipsUndoManager,x.skipsUndoManager=!0;var b=x.selection;b.ka(),a?b.add(this):b.remove(this),b.freeze()}this.g("isSelected",y,a),this.Wb(),a=this.selectionChanged,a!==null&&a(this),x!==null&&(x.$b(),x.skipsUndoManager=E)}}}},isHighlighted:{get:function(){return(this.G&524288)!==0},set:function(a){var y=(this.G&524288)!==0;if(y!==a){this.G^=524288;var x=this.diagram;x!==null&&(x=x.highlighteds,x.ka(),a?x.add(this):x.remove(this),x.freeze()),this.g("isHighlighted",y,a),this.N(),a=this.highlightedChanged,a!==null&&a(this)}}},isShadowed:{get:function(){return(this.G&8192)!==0},set:function(a){var y=(this.G&8192)!==0;y!==a&&(this.G^=8192,this.Uc=!0,this.g("isShadowed",y,a),this.N())}},isAnimated:{get:function(){return(this.G&262144)!==0},set:function(a){var y=(this.G&262144)!==0;y!==a&&(this.G^=262144,this.g("isAnimated",y,a))}},highlightedChanged:{get:function(){return this.P!==null?this.P.oq:null},set:function(a){var y=this.highlightedChanged;y!==a&&(Hs(this),this.P.oq=a,this.g("highlightedChanged",y,a))}},selectionObjectName:{get:function(){return this.P!==null?this.P.vr:""},set:function(a){var y=this.selectionObjectName;y!==a&&(Hs(this),this.P.vr=a,this.Ug=null,this.g("selectionObjectName",y,a))}},selectionAdornmentTemplate:{get:function(){return this.P!==null?this.P.tr:null},set:function(a){var y=this.selectionAdornmentTemplate;y!==a&&(Hs(this),this.P.tr=a,this.g("selectionAdornmentTemplate",y,a))}},selectionObject:{get:function(){if(this.Ug===null){var a=this.selectionObjectName;a!==null&&a!==""?(a=this.fb(a),a!==null?this.Ug=a:this.Ug=this):this instanceof di?(a=this.path,a!==null?this.Ug=a:this.Ug=this):this.Ug=this}return this.Ug}},selectionChanged:{get:function(){return this.P!==null?this.P.ur:null},set:function(a){var y=this.selectionChanged;y!==a&&(Hs(this),this.P.ur=a,this.g("selectionChanged",y,a))}},resizeAdornmentTemplate:{get:function(){return this.P!==null?this.P.fr:null},set:function(a){var y=this.resizeAdornmentTemplate;y!==a&&(Hs(this),this.P.fr=a,this.g("resizeAdornmentTemplate",y,a))}},resizeObjectName:{get:function(){return this.P!==null?this.P.hr:""},set:function(a){var y=this.resizeObjectName;y!==a&&(Hs(this),this.P.hr=a,this.g("resizeObjectName",y,a))}},resizeObject:{get:function(){var a=this.resizeObjectName;return a!==""&&(a=this.fb(a),a!==null)?a:this}},resizeCellSize:{get:function(){return this.P!==null?this.P.gr:Bn},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),Hs(this),this.P.gr=a,this.g("resizeCellSize",y,a))}},rotateAdornmentTemplate:{get:function(){return this.P!==null?this.P.ir:null},set:function(a){var y=this.rotateAdornmentTemplate;y!==a&&(Hs(this),this.P.ir=a,this.g("rotateAdornmentTemplate",y,a))}},rotateObjectName:{get:function(){return this.P!==null?this.P.jr:""},set:function(a){var y=this.rotateObjectName;y!==a&&(Hs(this),this.P.jr=a,this.g("rotateObjectName",y,a))}},rotateObject:{get:function(){var a=this.rotateObjectName;return a!==""&&(a=this.fb(a),a!==null)?a:this}},rotationSpot:{get:function(){return this.P!==null?this.P.lr:bo},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),Hs(this),this.P.lr=a,this.g("rotationSpot",y,a))}},text:{get:function(){return this.ec},set:function(a){var y=this.ec;y!==a&&(this.ec=a,this.g("text",y,a))}},containingGroup:{get:function(){return this.Ah},set:function(a){if(this.Zc()){var y=this.Ah;if(y!==a){a===null||this!==a&&!a.Td(this)||(this===a&&ee("Cannot make a Group a member of itself: "+this.toString()),ee("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+a.toString())),this.C(2);var x=this.diagram;if(y!==null?_v(y,this):this instanceof Tr&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?Xv(a,this):this instanceof Tr&&x!==null&&x.ai.add(this),this.C(1),x!==null&&x.aa){var E=this.data,b=x.model;if(E!==null&&b.Xj()){var z=b.wa(a!==null?a.data:null);b.mp(E,z)}}if(E=this.containingGroupChanged,E!==null&&(b=!0,x!==null&&(b=x.aa,x.aa=!0),E(this,y,a),x!==null&&(x.aa=b)),this instanceof Tr){for(x=new xn,cd(x,this,!0,0,!0),x=x.iterator;x.next();)if(E=x.value,E instanceof bi)for(E=E.linksConnected;E.next();)Wf(E.value)}if(this instanceof bi){for(x=this.linksConnected;x.next();)Wf(x.value);x=this.labeledLink,x!==null&&Wf(x)}this.g("containingGroup",y,a),a!==null&&(y=a.layer,y!==null&&ff(y,-1,a))}}else ee("cannot set the Part.containingGroup of a Link or Adornment")}},containingGroupChanged:{get:function(){return this.P!==null?this.P.Kp:null},set:function(a){var y=this.containingGroupChanged;y!==a&&(Hs(this),this.P.Kp=a,this.g("containingGroupChanged",y,a))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof bi&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(a){var y=this.layoutConditions;y!==a&&(Hs(this),this.P.Cq=a,this.g("layoutConditions",y,a))}},dragComputation:{get:function(){return this.P!==null?this.P.Up:null},set:function(a){var y=this.dragComputation;y!==a&&(Hs(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:Be},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),Hs(this),this.P.zr=a,this.N(),this.g("shadowOffset",y,a))}},shadowColor:{get:function(){return this.P!==null?this.P.yr:"gray"},set:function(a){var y=this.shadowColor;y!==a&&(Hs(this),this.P.yr=a,this.N(),this.g("shadowColor",y,a))}},shadowBlur:{get:function(){return this.P!==null?this.P.Vg:4},set:function(a){var y=this.shadowBlur;y!==a&&(Hs(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),rr.prototype.invalidateLayout=rr.prototype.C,rr.prototype.findCommonContainingGroup=rr.prototype.px,rr.prototype.isMemberOf=rr.prototype.Td,rr.prototype.findTopLevelPart=rr.prototype.sz,rr.prototype.findSubGraphLevel=rr.prototype.oz,rr.prototype.ensureBounds=rr.prototype.Va,rr.prototype.getDocumentBounds=rr.prototype.mi,rr.prototype.findObject=rr.prototype.fb,rr.prototype.moveTo=rr.prototype.moveTo,rr.prototype.invalidateAdornments=rr.prototype.Wb,rr.prototype.clearAdornments=rr.prototype.Ej,rr.prototype.removeAdornment=rr.prototype.Jf,rr.prototype.addAdornment=rr.prototype.bh,rr.prototype.findAdornment=rr.prototype.Pj,rr.prototype.updateTargetBindings=rr.prototype.La;var K1=!1;rr.className="Part",rr.LayoutNone=0,rr.LayoutAdded=1,rr.LayoutRemoved=2,rr.LayoutShown=4,rr.LayoutHidden=8,rr.LayoutNodeSized=16,rr.LayoutGroupLayout=32,rr.LayoutNodeReplaced=64,rr.LayoutStandard=127,rr.LayoutAll=16777215;function uo(a,y){a===void 0||a instanceof Oa||typeof a=="string"?rr.call(this,a):(rr.call(this),a&&(y=a)),this.G&=-257,this.Jg="Adornment",this.ue=null,this.Aw=0,this.Uw=!1,this.j=this.$a=null,y&&Object.assign(this,y)}ye(uo,rr),uo.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},uo.prototype.updateRelationshipsFromData=function(){},uo.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof di&&y instanceof Wr){y=x.path,x.Ul(a),a=y.geometry,x=this.O.s,y=x.length;for(var E=0;E<y;E++){var b=x[E];b.isPanelMain&&b instanceof Wr&&(b.ua=a)}}},uo.prototype.si=function(){var a=this.ue;return a===null?!0:(a=a.part,a===null||!Ls(a))},uo.prototype.Zc=function(){return!1},uo.prototype.gk=function(a,y,x,E,b,z,tt){if(a===$o&&y==="elements"){if(b instanceof Ms)this.$a===null&&(this.$a=b);else if(b instanceof ei){var rt=b.Nl(function(ot){return ot instanceof Ms});rt instanceof Ms&&this.$a===null&&(this.$a=rt)}}else a===ca&&y==="elements"&&this.$a!==null&&(E===this.$a?this.$a=null:E instanceof ei&&this.$a.rg(E)&&(this.$a=null));rr.prototype.gk.call(this,a,y,x,E,b,z,tt)},uo.prototype.updateAdornments=function(){},uo.prototype.Lj=function(){},xe.Object.defineProperties(uo.prototype,{placeholder:{get:function(){return this.$a}},adornedObject:{get:function(){return this.ue},set:function(a){var y=this.adornedPart,x=null;a!==null&&(x=a.part),y===null||a!==null&&y===x||y.Jf(this.category),this.ue=a,x!==null&&x.bh(this.category,this)}},adornedPart:{get:function(){var a=this.ue;return a!==null?a.part:null}},containingGroup:{get:function(){return null}}}),uo.className="Adornment";function Kv(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=Gi,this.er=Um,this.Kr=this.ij=this.Nq=this.Mq=null}Kv.prototype.copy=function(){var a=new Kv;return a.Dq=this.Dq,a.Eq=this.Eq,a.gj=this.gj,a.Vr=this.Vr,a.yp=this.yp.J(),a.er=this.er,a.Mq=this.Mq,a.Nq=this.Nq,a.ij=this.ij,a.Kr=this.Kr,a};function bi(a,y){a===void 0||a instanceof Oa||typeof a=="string"?rr.call(this,a):(rr.call(this),a&&(y=a)),this.U=13,this.Ba=null,this.jb=new cn,this.wc=this.af=this.Yk=null,this.ci=!1,y&&Object.assign(this,y)}ye(bi,rr),bi.prototype.cloneProtected=function(a){rr.prototype.cloneProtected.call(this,a),a.U=this.U,this.Ba!==null&&(a.Ba=this.Ba.nc?this.Ba:this.Ba.copy())},Ct=bi.prototype,Ct.Af=function(a){rr.prototype.Af.call(this,a),a.Bd(),a.af=this.af,a.wc=null};function Nh(a){a.Ba===null?a.Ba=new Kv:a.Ba.nc&&(a.Ba=a.Ba.copy())}Ct.th=function(){rr.prototype.th.call(this),this.Ba!==null&&(this.Ba.nc=!0)};function Y1(a,y){y!==null&&(a.af===null&&(a.af=new xn),a.af.add(y))}function U1(a,y,x,E){if(y===null||a.af===null)return null;for(var b=a.af.iterator;b.next();){var z=b.value;if(z.Ds===a&&z.cv===y&&z.Ox===x&&z.Px===E||z.Ds===y&&z.cv===a&&z.Ox===E&&z.Px===x)return z}return null}Ct.Lz=function(a,y,x){y==null&&(y=""),x==null&&(x=""),a=U1(this,a,y,x),a!==null&&a.Sl()},Ct.gk=function(a,y,x,E,b,z,tt){a===$o&&y==="elements"?this.wc=null:a===ca&&y==="elements"&&(this.wc=null),rr.prototype.gk.call(this,a,y,x,E,b,z,tt)},Ct.Bd=function(a){for(var y=this.linksConnected;y.next();){var x=y.value;a!==void 0&&a.contains(x)||(el(x.fromPort),el(x.toPort),x.bb())}};function X1(a,y){for(a=a.linksConnected;a.next();){var x=a.value;(x.fromPort===y||x.toPort===y)&&(el(x.fromPort),el(x.toPort),x.bb())}}function el(a){if(a!==null){var y=a.Zn;y!==null&&y.Sl(),a=a.part,y=a.containingGroup,y===null||a.isVisible()||el(y.port)}}Ct.si=function(){return!0},bi.prototype.getAvoidableRect=function(a){return a.set(this.actualBounds),a.Co(this.avoidableMargin),a},bi.prototype.findVisibleNode=function(){for(var a=this;a!==null&&!a.isVisible();)a=a.containingGroup;return a},bi.prototype.isVisible=function(){if(!rr.prototype.isVisible.call(this))return!1;var a=!0,y=Lh,x=this.diagram;if(x!==null&&(a=x.isTreePathToChildren,y=x.treeCollapsePolicy),y===Lh){if(a=this.pg(),a!==null&&!a.isTreeExpanded)return!1}else if(y===ka){if(a=a?this.Oo():this.Po(),0<a.count&&a.all(function(E){return!E.isTreeExpanded}))return!1}else if(y===Af&&(a=a?this.Oo():this.Po(),0<a.count&&a.any(function(E){return!E.isTreeExpanded})))return!1;return a=this.labeledLink,a!==null?a.isVisible():!0},bi.prototype.Zb=function(a){rr.prototype.Zb.call(this,a);for(var y=this.linksConnected;y.next();){var x=y.value;if(a&&this.containingGroup!==null){var E=x.To(this);E===null||E.Td(this.containingGroup)||x.bb()}x.Zb(a)}},bi.prototype.qx=function(){var a=new xn,y=new xn;return _1(this,this,a,y),y.iterator};function _1(a,y,x,E){if(y!==null&&!x.has(y)){x.add(y);var b=!0,z=a.diagram;z!==null&&(b=z.isTreePathToChildren),y.linksConnected.each(function(tt){tt.isTreeLink?(b?tt.fromNode===y:tt.toNode===y)&&_1(a,b?tt.toNode:tt.fromNode,x,E):E.add(tt)})}}bi.prototype.findLinksConnected=function(a){if(a===void 0&&(a=null),a===null)return this.jb.iterator;var y=new er(this.jb),x=this;return y.predicate=function(E){return E.fromNode===x&&E.fromPortId===a||E.toNode===x&&E.toPortId===a},y},Ct=bi.prototype,Ct.Mo=function(a){a===void 0&&(a=null);var y=new er(this.jb),x=this;return y.predicate=function(E){return E.fromNode!==x?!1:a===null?!0:E.fromPortId===a},y},Ct.Sd=function(a){a===void 0&&(a=null);var y=new er(this.jb),x=this;return y.predicate=function(E){return E.toNode!==x?!1:a===null?!0:E.toPortId===a},y},Ct.Mu=function(a){a===void 0&&(a=null);for(var y=null,x=null,E=this.jb.iterator;E.next();){var b=E.value;b.fromNode===this?(a===null||b.fromPortId===a)&&(b=b.toNode,y!==null?y.add(b):x!==null&&x!==b?(y=new xn,y.add(x),y.add(b)):x=b):b.toNode!==this||a!==null&&b.toPortId!==a||(b=b.fromNode,y!==null?y.add(b):x!==null&&x!==b?(y=new xn,y.add(x),y.add(b)):x=b)}return y!==null?y.iterator:x!==null?new ji(x):Ar},Ct.Po=function(a){a===void 0&&(a=null);for(var y=null,x=null,E=this.jb.iterator;E.next();){var b=E.value;b.fromNode!==this||a!==null&&b.fromPortId!==a||(b=b.toNode,y!==null?y.add(b):x!==null&&x!==b?(y=new xn,y.add(x),y.add(b)):x=b)}return y!==null?y.iterator:x!==null?new ji(x):Ar},Ct.Oo=function(a){a===void 0&&(a=null);for(var y=null,x=null,E=this.jb.iterator;E.next();){var b=E.value;b.toNode!==this||a!==null&&b.toPortId!==a||(b=b.fromNode,y!==null?y.add(b):x!==null&&x!==b?(y=new xn,y.add(x),y.add(b)):x=b)}return y!==null?y.iterator:x!==null?new ji(x):Ar},Ct.jz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var E=new er(this.jb),b=this;return E.predicate=function(z){return!((z.fromNode!==b||z.toNode!==a||y!==null&&z.fromPortId!==y||x!==null&&z.toPortId!==x)&&(z.fromNode!==a||z.toNode!==b||x!==null&&z.fromPortId!==x||y!==null&&z.toPortId!==y))},E},Ct.kz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var E=new er(this.jb),b=this;return E.predicate=function(z){return!(z.fromNode!==b||z.toNode!==a||y!==null&&z.fromPortId!==y||x!==null&&z.toPortId!==x)},E};function Km(a,y,x){el(x);var E=a.jb.contains(y);if(E||a.jb.add(y),!E||y.fromNode===y.toNode){var b=a.linkConnected;if(b!==null){var z=!0,tt=a.diagram;tt!==null&&(z=tt.aa,tt.aa=!0),b(a,y,x),tt!==null&&(tt.aa=z)}}!E&&y.isTreeLink&&(x=y.fromNode,y=y.toNode,x!==null&&y!==null&&x!==y&&(E=!0,a=a.diagram,a!==null&&(E=a.isTreePathToChildren),b=E?y:x,z=E?x:y,b.ci||(b.ci=z),!z.isTreeLeaf||a!==null&&a.undoManager.isUndoingRedoing||(E?x===z&&(z.isTreeLeaf=!1):y===z&&(z.isTreeLeaf=!1))))}function Ym(a,y,x){el(x);var E=a.jb.remove(y),b=null;if(E||y.toNode===y.fromNode){var z=a.linkDisconnected;if(b=a.diagram,z!==null){var tt=!0;b!==null&&(tt=b.aa,b.aa=!0),z(a,y,x),b!==null&&(b.aa=tt)}}E&&y.isTreeLink&&(x=!0,b!==null&&(x=b.isTreePathToChildren),a=x?y.toNode:y.fromNode,y=x?y.fromNode:y.toNode,a!==null&&(a.ci=!1),y===null||y.isTreeLeaf||(y.jb.count===0?(y.ci=null,b!==null&&b.undoManager.isUndoingRedoing||(y.isTreeLeaf=!0)):ip(y)))}function ip(a){if(a.ci=!1,a.jb.count!==0){var y=!0,x=a.diagram;if(x===null||!x.undoManager.isUndoingRedoing){for(x!==null&&(y=x.isTreePathToChildren),x=a.jb.iterator;x.next();){var E=x.value;if(E.isTreeLink){if(y){if(E.fromNode===a){a.isTreeLeaf=!1;return}}else if(E.toNode===a){a.isTreeLeaf=!1;return}}}a.isTreeLeaf=!0}}}bi.prototype.updateRelationshipsFromData=function(){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)},Ct=bi.prototype,Ct.Vo=function(a){rr.prototype.Vo.call(this,a),a||(ip(this),a=this.Yk,a!==null&&rS(a,this))},Ct.Wo=function(a){rr.prototype.Wo.call(this,a),a||(a=this.Yk,a!==null&&a.wd!==null&&(a.wd.remove(this),a.v()))},Ct.Lj=function(){if(0<this.jb.count){var a=this.diagram;if(a!==null)for(var y=a.commandHandler!==null?a.commandHandler.deletesConnectedLinks:!0,x=this.jb.copy().iterator;x.next();){var E=x.value;y?a.remove(E):(E.fromNode===this&&(E.fromNode=null),E.toNode===this&&(E.toNode=null))}}this.labeledLink=null,rr.prototype.Lj.call(this)},Ct.ns=function(a){if(this.wc===null){if(a===""&&this.Te===!1)return this;J1(this)}var y=this.wc.I(a);return y!==null||a!==""&&(y=this.wc.I(""),y!==null)?y:this};function J1(a){a.wc===null?a.wc=new on:a.wc.clear(),a.qm(a,function(y,x){Q1(y,x)}),a.wc.count===0&&a.wc.add("",a)}function Q1(a,y){var x=y.portId;x!==null&&a.wc!==null&&a.wc.add(x,y)}function Yv(a,y,x){var E=y.portId;if(E!==null&&(a.wc!==null&&a.wc.remove(E),y=a.diagram,y!==null&&x)){for(x=null,a=a.findLinksConnected(E);a.next();)E=a.value,x===null&&(x=xi()),x.push(E);if(x!==null){for(a=0;a<x.length;a++)y.remove(x[a]);gi(x)}}}Ct.Nz=function(a){if(a===null||a===this)return!1;var y=!0,x=this.diagram;if(x!==null&&(y=x.isTreePathToChildren),x=this,y)for(;x!==a;){y=null;for(var E=x.jb.iterator;E.next();){var b=E.value;if(b.isTreeLink&&(y=b.fromNode,y!==x&&y!==this))break}if(y===this||y===null||y===x)return!1;x=y}else for(;x!==a;){for(y=null,E=x.jb.iterator;E.next()&&(b=E.value,!b.isTreeLink||(y=b.toNode,y===x||y===this)););if(y===this||y===null||y===x)return!1;x=y}return!0},Ct.xz=function(){var a=!0,y=this.diagram;if(y!==null&&(a=y.isTreePathToChildren),y=this,a)for(;;){a=null;for(var x=y.jb.iterator;x.next();){var E=x.value;if(E.isTreeLink&&(a=E.fromNode,a!==y&&a!==this))break}if(a===this)return this;if(a===null||a===y)return y;y=a}else for(;;){for(a=null,x=y.jb.iterator;x.next()&&(E=x.value,!E.isTreeLink||(a=E.toNode,a===y||a===this)););if(a===this)return this;if(a===null||a===y)return y;y=a}},Ct.gz=function(a){if(a===null)return null;if(this===a)return this;for(var y=this;y!==null;)Gm(y,!0),y=y.pg();var x=null;for(y=a;y!==null;){if(y.G&1048576){x=y;break}y=y.pg()}for(y=this;y!==null;)Gm(y,!1),y=y.pg();return x},Ct.kh=function(){var a=!0,y=this.diagram;if(y!==null&&(a=y.isTreePathToChildren),y=this.jb.iterator,a){for(;y.next();)if(a=y.value,a.isTreeLink&&a.fromNode!==this)return a}else for(;y.next();)if(a=y.value,a.isTreeLink&&a.toNode!==this)return a;return null},Ct.pg=function(){var a=this.ci;if(a===null)return null;if(a instanceof bi)return a;a=this.diagram,a=a!==null?a.isTreePathToChildren:!0;for(var y=this.jb.iterator;y.next();){var x=y.value;if(x.isTreeLink&&(x=a?x.fromNode:x.toNode,x!==this))return this.ci=x}return this.ci=null},Ct.vz=function(){function a(x,E){E.add(x);var b=x.kh();b!==null&&(E.add(b),x=x.pg(),x!==null&&a(x,E))}var y=new xn;return a(this,y),y},Ct.uz=function(){return q1(this,this)};function q1(a,y){return y=y.pg(),y===null?0:1+q1(a,y)}Ct.Qo=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren),y=new er(this.jb);var x=this;return y.predicate=a?function(E){return!!(E.isTreeLink&&E.fromNode===x)}:function(E){return!!(E.isTreeLink&&E.toNode===x)},y},Ct.Ou=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren);var x=y=null,E=this.jb.iterator;if(a)for(;E.next();)a=E.value,a.isTreeLink&&a.fromNode===this&&(a=a.toNode,y!==null?y.add(a):x!==null&&x!==a?(y=new cn,y.add(x),y.add(a)):x=a);else for(;E.next();)a=E.value,a.isTreeLink&&a.toNode===this&&(a=a.fromNode,y!==null?y.add(a):x!==null&&x!==a?(y=new cn,y.add(x),y.add(a)):x=a);return y!==null?y.iterator:x!==null?new ji(x):Ar},Ct.wz=function(a){a===void 0&&(a=1/0);var y=new xn;return cd(y,this,!1,a,!0),y},bi.prototype.collapseTree=function(a){a===void 0&&(a=1),1>a&&(a=1);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new xn;x.add(this),$1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Lh),y.Ue=!1}};function $1(a,y,x,E,b,z,tt){if(1<E)for(var rt=x?a.Mo():a.Sd();rt.next();){var ot=rt.value;ot.isTreeLink&&(ot=ot.To(a),ot===null||ot===a||y.contains(ot)||(y.add(ot),$1(ot,y,x,E-1,b,z,tt)))}else tS(a,y,x,b,z,tt)}function tS(a,y,x,E,b,z){for(var tt=b===a?!0:a.isTreeExpanded,rt=x?a.Mo():a.Sd(),ot={};rt.next();){var st=rt.value;if(st.isTreeLink&&(st=st.To(a),st!==null&&st!==a)){var ut=y.contains(st);if(ut||y.add(st),tt){var ft=x?st.Oo():st.Po();ot.uv=a,ft.all(function(vt){return function(xt){return xt===vt.uv||!xt.isTreeExpanded}}(ot))&&E.Aj(st,b),st.oh(),st.Zb(!1)}st.isTreeExpanded&&(st.wasTreeExpanded=st.isTreeExpanded,ut||tS(st,y,x,E,b,z))}ot={uv:ot.uv}}a.isTreeExpanded=!1}bi.prototype.expandTree=function(a){a===void 0&&(a=2),2>a&&(a=2);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new xn;x.add(this),eS(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Lh),y.Ue=!1}};function eS(a,y,x,E,b,z,tt){for(var rt=z===a?!1:a.isTreeExpanded,ot=x?a.Mo():a.Sd(),st={};ot.next();){var ut=ot.value;if(ut.isTreeLink&&(rt||ut.fd||ut.bb(),ut=ut.To(a),ut!==null&&ut!==a&&!y.contains(ut))){if(y.add(ut),!rt){ut.Zb(!0),ut.oh();var ft=x?ut.Oo():ut.Po();st.vv=a,ft.all(function(vt){return function(xt){return xt===vt.vv||!xt.isTreeExpanded}}(st))&&b.Cj(ut,z)}(2<E||ut.wasTreeExpanded)&&(ut.wasTreeExpanded=!1,eS(ut,y,x,E-1,b,z,tt))}st={vv:st.vv}}a.isTreeExpanded=!0}xe.Object.defineProperties(bi.prototype,{portSpreading:{get:function(){return this.Ba!==null?this.Ba.er:Um},set:function(a){var y=this.portSpreading;y!==a&&(Nh(this),this.Ba.er=a,this.g("portSpreading",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.Bd())}},avoidable:{get:function(){return(this.U&8)!==0},set:function(a){var y=(this.U&8)!==0;if(y!==a){this.U^=8;var x=this.diagram;x!==null&&Eh(x,this),this.g("avoidable",y,a)}}},avoidableMargin:{get:function(){return this.Ba!==null?this.Ba.yp:Gi},set:function(a){typeof a=="number"&&(a=new Di(a));var y=this.avoidableMargin;if(!y.D(a)){a=a.J(),Nh(this),this.Ba.yp=a;var x=this.diagram;x!==null&&Eh(x,this),this.g("avoidableMargin",y,a)}}},linksConnected:{get:function(){return this.jb.iterator}},linkConnected:{get:function(){return this.Ba!==null?this.Ba.Dq:null},set:function(a){var y=this.linkConnected;y!==a&&(Nh(this),this.Ba.Dq=a,this.g("linkConnected",y,a))}},linkDisconnected:{get:function(){return this.Ba!==null?this.Ba.Eq:null},set:function(a){var y=this.linkDisconnected;y!==a&&(Nh(this),this.Ba.Eq=a,this.g("linkDisconnected",y,a))}},linkValidation:{get:function(){return this.Ba!==null?this.Ba.gj:null},set:function(a){var y=this.linkValidation;y!==a&&(Nh(this),this.Ba.gj=a,this.g("linkValidation",y,a))}},isLinkLabel:{get:function(){return this.Yk!==null}},labeledLink:{get:function(){return this.Yk},set:function(a){var y=this.Yk;if(y!==a){var x=this.diagram,E=this.data;if(y!==null){if(y.wd!==null&&(y.wd.remove(this),y.v()),x!==null&&E!==null&&!x.undoManager.isUndoingRedoing){var b=y.data,z=x.model;if(b!==null&&z.ri()){var tt=z.wa(E);tt!==void 0&&z.Qx(b,tt)}}this.containingGroup=null}this.Yk=a,a!==null&&(rS(a,this),x===null||E===null||x.undoManager.isUndoingRedoing||(b=a.data,x=x.model,b!==null&&x.ri()&&(E=x.wa(E),E!==void 0&&x.Bu(b,E))),this.containingGroup=a.containingGroup),As(this),this.g("labeledLink",y,a)}}},port:{get:function(){return this.ns("")}},ports:{get:function(){return this.wc===null&&J1(this),this.wc.iteratorValues}},isTreeExpanded:{get:function(){return(this.U&1)!==0},set:function(a){var y=(this.U&1)!==0;if(y!==a){this.U^=1;var x=this.diagram;if(this.g("isTreeExpanded",y,a),y=this.treeExpandedChanged,y!==null){var E=!0;x!==null&&(E=x.aa,x.aa=!0),y(this),x!==null&&(x.aa=E)}x!==null&&x.undoManager.isUndoingRedoing?this.Zb(a):a?this.expandTree():this.collapseTree()}}},wasTreeExpanded:{get:function(){return(this.U&2)!==0},set:function(a){var y=(this.U&2)!==0;y!==a&&(this.U^=2,this.g("wasTreeExpanded",y,a))}},treeExpandedChanged:{get:function(){return this.Ba!==null?this.Ba.Vr:null},set:function(a){var y=this.treeExpandedChanged;y!==a&&(Nh(this),this.Ba.Vr=a,this.g("treeExpandedChanged",y,a))}},isTreeLeaf:{get:function(){return(this.U&4)!==0},set:function(a){var y=(this.U&4)!==0;y!==a&&(this.U^=4,this.g("isTreeLeaf",y,a))}}}),bi.prototype.expandTree=bi.prototype.expandTree,bi.prototype.collapseTree=bi.prototype.collapseTree,bi.prototype.findTreeParts=bi.prototype.wz,bi.prototype.findTreeChildrenNodes=bi.prototype.Ou,bi.prototype.findTreeChildrenLinks=bi.prototype.Qo,bi.prototype.findTreeLevel=bi.prototype.uz,bi.prototype.findTreeParentChain=bi.prototype.vz,bi.prototype.findTreeParentNode=bi.prototype.pg,bi.prototype.findTreeParentLink=bi.prototype.kh,bi.prototype.findCommonTreeParent=bi.prototype.gz,bi.prototype.findTreeRoot=bi.prototype.xz,bi.prototype.isInTreeOf=bi.prototype.Nz,bi.prototype.findPort=bi.prototype.ns,bi.prototype.findLinksTo=bi.prototype.kz,bi.prototype.findLinksBetween=bi.prototype.jz,bi.prototype.findNodesInto=bi.prototype.Oo,bi.prototype.findNodesOutOf=bi.prototype.Po,bi.prototype.findNodesConnected=bi.prototype.Mu,bi.prototype.findLinksInto=bi.prototype.Sd,bi.prototype.findLinksOutOf=bi.prototype.Mo,bi.prototype.findExternalTreeLinksConnected=bi.prototype.qx,bi.prototype.invalidateConnectedLinks=bi.prototype.Bd,bi.prototype.invalidateLinkBundle=bi.prototype.Lz;var Bx=new dn(bi,"SpreadingNone",10),Um=new dn(bi,"SpreadingEvenly",11),Uv=new dn(bi,"SpreadingPacked",12);bi.className="Node",bi.SpreadingNone=Bx,bi.SpreadingEvenly=Um,bi.SpreadingPacked=Uv;function Tr(a,y){a===void 0||a instanceof Oa||typeof a=="string"?bi.call(this,a):(bi.call(this),a&&(y=a)),this.U|=4608,this.Gn=new xn,this.$a=null,this.Sc=new ea,this.Sc.group=this,this.gl=new xn,this.tb=this.$p=null,y&&Object.assign(this,y)}ye(Tr,bi),Tr.prototype.cloneProtected=function(a){bi.prototype.cloneProtected.call(this,a),this.U=this.U&-32769;var y=a.Nl(function(x){return x instanceof Ms});y instanceof Ms?a.$a=y:a.$a=null,this.Sc!==null?(a.Sc=this.Sc.copy(),a.Sc.group=a):(a.Sc!==null&&(a.Sc.group=null),a.Sc=null),this.tb!==null&&(a.tb=this.tb.copy())},Ct=Tr.prototype,Ct.Af=function(a){bi.prototype.Af.call(this,a);var y=a.Rj();for(a=a.memberParts;a.next();){var x=a.value;if(x.v(),x.C(8),x.Ej(),x instanceof bi)x.Bd(y);else if(x instanceof di)for(x=x.labelNodes;x.next();)x.value.Bd(y)}},Ct.gk=function(a,y,x,E,b,z,tt){if(a===$o&&y==="elements"){if(b instanceof Ms)this.$a===null?this.$a=b:this.$a!==b&&ee("Cannot insert a second Placeholder into the visual tree of a Group.");else if(b instanceof ei){var rt=b.Nl(function(ot){return ot instanceof Ms});rt instanceof Ms&&(this.$a===null?this.$a=rt:this.$a!==rt&&ee("Cannot insert a second Placeholder into the visual tree of a Group."))}}else a===ca&&y==="elements"&&this.$a!==null&&(E===this.$a?this.$a=null:E instanceof ei&&this.$a.rg(E)&&(this.$a=null));bi.prototype.gk.call(this,a,y,x,E,b,z,tt)},Ct.Xl=function(a,y){bi.prototype.Xl.call(this,a,y),this.isClipping&&this.type!==ei.Spot&&this.isSubGraphExpanded&&(a=this.resizeObject,a instanceof ei&&(a=a.Pb()),this.tb===null&&(this.tb=new ue),a.mi(this.tb),a instanceof Wr&&this.tb.Bc(-a.strokeWidth,-a.strokeWidth))},Ct.eh=function(a,y,x,E){this.nf=this.$a,bi.prototype.eh.call(this,a,y,x,E)},Ct.Va=function(){var a=this;a.isSubGraphExpanded&&this.memberParts.each(function(y){!a.computesBoundsIncludingLinks&&y instanceof di||y.Va()}),bi.prototype.Va.call(this)},Ct.si=function(){if(!bi.prototype.si.call(this))return!1;for(var a=this.memberParts;a.next();){var y=a.value;if(y instanceof bi){if(y.isVisible()&&Ls(y))return!1}else if(y instanceof di&&y.isVisible()&&Ls(y)&&y.fromNode!==this&&y.toNode!==this)return!1}return!0};function Xv(a,y){if(a.Gn.add(y)){y instanceof Tr&&a.gl.add(y);var x=a.memberAdded;if(x!==null){var E=!0,b=a.diagram;b!==null&&(E=b.aa,b.aa=!0),x(a,y),b!==null&&(b.aa=E)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!1)}y instanceof di&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}function _v(a,y){if(a.Gn.remove(y)){y instanceof Tr&&a.gl.remove(y);var x=a.memberRemoved;if(x!==null){var E=!0,b=a.diagram;b!==null&&(E=b.aa,b.aa=!0),x(a,y),b!==null&&(b.aa=E)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!0)}y instanceof di&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}Ct.Lj=function(){if(0<this.Gn.count){var a=this.diagram;if(a!==null)for(var y=this.Gn.copy().iterator;y.next();)a.remove(y.value)}bi.prototype.Lj.call(this)},Tr.prototype.canAddMembers=function(a){var y=this.diagram;if(y===null)return!1;for(y=y.commandHandler,a=gn(a).iterator;a.next();)if(!y.isValidMember(this,a.value))return!1;return!0},Tr.prototype.addMembers=function(a,y){var x=this.diagram;if(x===null)return!1;x=x.commandHandler;var E=!0;for(a=gn(a).iterator;a.next();){var b=a.value;!y||x.isValidMember(this,b)?b.containingGroup=this:E=!1}return E},Tr.prototype.canUngroup=function(){if(!this.ungroupable)return!1;var a=this.layer;return a===null||!a.allowUngroup?!1:(a=a.diagram,!!(a===null||a.allowUngroup))},Ct=Tr.prototype,Ct.Bd=function(a){var y=(this.U&65536)!==0;if(bi.prototype.Bd.call(this,a),!y)for(!(this.U&65536)&&(this.U=this.U^65536),y=this.Lu();y.next();){var x=y.value;if(a===void 0||!a.contains(x)){var E=x.fromNode;E!==null&&E!==this&&E.Td(this)&&!E.isVisible()?(el(x.fromPort),el(x.toPort),x.bb()):(E=x.toNode,E!==null&&E!==this&&E.Td(this)&&!E.isVisible()&&(el(x.fromPort),el(x.toPort),x.bb()))}}},Ct.Lu=function(){var a=this.diagram!==null&&this.diagram.Pw;if(a&&this.$p!==null)return this.$p.iterator;var y=this.Rj();y.add(this);for(var x=new xn,E=y.iterator;E.next();){var b=E.value;if(b instanceof bi)for(b=b.linksConnected;b.next();){var z=b.value;y.contains(z)||x.add(z)}}return a&&(this.$p=x),x.iterator},Ct.iz=function(){var a=this.Rj();a.add(this);for(var y=new xn,x=a.iterator;x.next();){var E=x.value;if(E instanceof bi)for(E=E.linksConnected;E.next();){var b=E.value,z=b.fromNode;z===null||a.contains(z)&&z!==this||y.add(z),b=b.toNode,b===null||a.contains(b)&&b!==this||y.add(b)}}return y.iterator},Ct.hz=function(){function a(x,E){x!==null&&(E.add(x),a(x.containingGroup,E))}var y=new xn;return a(this,y),y},Ct.Rj=function(){var a=new xn;return cd(a,this,!0,0,!0),a.remove(this),a},Ct.Zb=function(a){bi.prototype.Zb.call(this,a);for(var y=this.memberParts;y.next();)y.value.Zb(a)},Tr.prototype.collapseSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();nS(this,y,a,this),a.Ue=!1}};function nS(a,y,x,E){for(var b=a.memberParts;b.next();){var z=b.value;if(z.Zb(!1),z instanceof Tr&&z.isSubGraphExpanded&&(z.wasSubGraphExpanded=z.isSubGraphExpanded,nS(z,y,x,E)),z instanceof bi)z.Bd(y),x.Aj(z,E);else if(z instanceof di)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!1}Tr.prototype.expandSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();iS(this,y,a,this),a.Ue=!1}};function iS(a,y,x,E){for(var b=a.memberParts;b.next();){var z=b.value;if(z.Zb(!0),z instanceof Tr&&z.wasSubGraphExpanded&&(z.wasSubGraphExpanded=!1,iS(z,y,x,E)),z instanceof bi)z.Bd(y),x.Cj(z,E);else if(z instanceof di)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!0}Tr.prototype.move=function(a,y){y===void 0&&(y=!1);var x=y?this.location:this.position,E=x.x;x=x.y;var b=a.x,z=a.y;if(!(E===b||isNaN(E)&&isNaN(b))||!(x===z||isNaN(x)&&isNaN(z))){for(E=b-(isNaN(E)?0:E),x=z-(isNaN(x)?0:x),z=Bt.alloc(),bi.prototype.move.call(this,a,y),a=new xn,y=this.Rj().iterator;y.next();)b=y.value,b instanceof di&&(b.suspendsRouting&&a.add(b),b.fd||b.fromNode!==this&&b.toNode!==this)&&(b.suspendsRouting=!0);for(y.reset();y.next();)if(b=y.value,!(b.ph()||b instanceof bi&&b.isLinkLabel)){var tt=b.position,rt=b.location;tt.w()?(z.x=tt.x+E,z.y=tt.y+x,b.position=z):rt.w()&&(z.x=rt.x+E,z.y=rt.y+x,b.location=z)}for(y.reset();y.next();)b=y.value,b instanceof di&&(b.suspendsRouting=a.contains(b),b.fd||b.fromNode!==this&&b.toNode!==this)&&(tt=b.position,z.x=tt.x+E,z.y=tt.y+x,z.w()?b.move(z):b.bb(),Qv(b)&&b.bb());Bt.free(z)}},xe.Object.defineProperties(Tr.prototype,{placeholder:{get:function(){return this.$a}},computesBoundsAfterDrag:{get:function(){return(this.U&2048)!==0},set:function(a){var y=(this.U&2048)!==0;y!==a&&(this.U^=2048,this.g("computesBoundsAfterDrag",y,a))}},computesBoundsIncludingLinks:{get:function(){return(this.U&4096)!==0},set:function(a){var y=(this.U&4096)!==0;y!==a&&(this.U^=4096,this.g("computesBoundsIncludingLinks",y,a))}},computesBoundsIncludingLocation:{get:function(){return(this.U&8192)!==0},set:function(a){var y=(this.U&8192)!==0;y!==a&&(this.U^=8192,this.g("computesBoundsIncludingLocation",y,a))}},handlesDragDropForMembers:{get:function(){return(this.U&16384)!==0},set:function(a){var y=(this.U&16384)!==0;y!==a&&(this.U^=16384,this.g("handlesDragDropForMembers",y,a))}},memberParts:{get:function(){return this.Gn.iterator}},layout:{get:function(){return this.Sc},set:function(a){var y=this.Sc;if(y!==a){a!==null&&a.diagram!==null&&a.diagram.layout===a&&ee("A layout cannot be both the Diagram.layout and a Group.layout: "+a),y!==null&&(y.diagram=null,y.group=null),this.Sc=a;var x=this.diagram;a!==null&&(a.diagram=x,a.group=this),x!==null&&(x.xh=!0),this.g("layout",y,a),x!==null&&x.$b()}}},memberAdded:{get:function(){return this.Ba!==null?this.Ba.Mq:null},set:function(a){var y=this.memberAdded;y!==a&&(Nh(this),this.Ba.Mq=a,this.g("memberAdded",y,a))}},memberRemoved:{get:function(){return this.Ba!==null?this.Ba.Nq:null},set:function(a){var y=this.memberRemoved;y!==a&&(Nh(this),this.Ba.Nq=a,this.g("memberRemoved",y,a))}},memberValidation:{get:function(){return this.Ba!==null?this.Ba.ij:null},set:function(a){var y=this.memberValidation;y!==a&&(Nh(this),this.Ba.ij=a,this.g("memberValidation",y,a))}},ungroupable:{get:function(){return(this.U&256)!==0},set:function(a){var y=(this.U&256)!==0;y!==a&&(this.U^=256,this.g("ungroupable",y,a))}},isSubGraphExpanded:{get:function(){return(this.U&512)!==0},set:function(a){var y=(this.U&512)!==0;if(y!==a){this.U^=512;var x=this.diagram;if(this.g("isSubGraphExpanded",y,a),y=this.subGraphExpandedChanged,y!==null){var E=!0;x!==null&&(E=x.aa,x.aa=!0),y(this),x!==null&&(x.aa=E)}x!==null&&x.undoManager.isUndoingRedoing?(this.$a!==null&&this.$a.v(),this.memberParts.each(function(b){b.updateAdornments()})):a?this.expandSubGraph():this.collapseSubGraph()}}},wasSubGraphExpanded:{get:function(){return(this.U&1024)!==0},set:function(a){var y=(this.U&1024)!==0;y!==a&&(this.U^=1024,this.g("wasSubGraphExpanded",y,a))}},subGraphExpandedChanged:{get:function(){return this.Ba!==null?this.Ba.Kr:null},set:function(a){var y=this.subGraphExpandedChanged;y!==a&&(Nh(this),this.Ba.Kr=a,this.g("subGraphExpandedChanged",y,a))}},rh:{get:function(){return(this.U&32768)!==0},set:function(a){(this.U&32768)!==0!==a&&(this.U^=32768)}}}),Tr.prototype.expandSubGraph=Tr.prototype.expandSubGraph,Tr.prototype.collapseSubGraph=Tr.prototype.collapseSubGraph,Tr.prototype.findSubGraphParts=Tr.prototype.Rj,Tr.prototype.findContainingGroupChain=Tr.prototype.hz,Tr.prototype.findExternalNodesConnected=Tr.prototype.iz,Tr.prototype.findExternalLinksConnected=Tr.prototype.Lu,Tr.prototype.ensureBounds=Tr.prototype.Va,Tr.className="Group";function Ms(a){Me.call(this),this.yb=Ir,this.ko=new ue(NaN,NaN,NaN,NaN),a&&Object.assign(this,a)}ye(Ms,Me),Ms.prototype.cloneProtected=function(a){Me.prototype.cloneProtected.call(this,a),a.yb=this.yb.J(),a.ko=this.ko.copy()},Ms.prototype.gh=function(a){if(this.background===null&&this.areaBackground===null)return!1;var y=this.naturalBounds;return Bi(0,0,y.width,y.height,a.x,a.y)},Ms.prototype.Wl=function(){var a=this.part;if(a!==null&&(a instanceof Tr||a instanceof uo)||ee("Placeholder is not inside a Group or Adornment."),a instanceof Tr){var y=this.computeBorder(this.ko),x=this.minSize,E=this.dc;for(Un(E,(isFinite(x.width)?Math.max(x.width,y.width):y.width)||0,(isFinite(x.height)?Math.max(x.height,y.height):y.height)||0),this.Ge(0,0,E.width,E.height),E=a.memberParts,x=!1;E.next();)if(E.value.isVisible()){x=!0;break}E=a.diagram,!x||E===null||E.animationManager.Xu(a)||isNaN(y.x)||isNaN(y.y)||(x=Bt.alloc(),x.xi(y,a.locationSpot),x.D(a.location)||(a.location=x),Bt.free(x))}else{y=this.dc,x=this.yb,E=x.left+x.right;var b=x.top+x.bottom,z=a.adornedObject;a.angle=z.li();var tt=0;z instanceof Wr&&(tt=z.strokeWidth);var rt=z.Df(),ot=z.naturalBounds,st=(ot.width+tt)*rt;tt=(ot.height+tt)*rt,a.type!==ei.Link&&(rt=z.ga(a.category==="Selection"?ar:a.locationSpot,Bt.alloc()),a.location=rt,Bt.free(rt)),isNaN(st)||isNaN(tt)?(a=z.ga(ar,Bt.alloc()),st=ue.allocAt(a.x,a.y,0,0),st.Ye(z.ga(jr,a)),st.Ye(z.ga(Br,a)),st.Ye(z.ga(Yr,a)),Un(y,st.width+E||0,st.height+b||0),this.Ge(-x.left,-x.top,y.width,y.height),Bt.free(a),ue.free(st)):(Un(y,st+E||0,tt+b||0),this.Ge(-x.left,-x.top,y.width,y.height))}},Ms.prototype.eh=function(a,y,x,E){this.actualBounds.h(a,y,x,E)},Ms.prototype.computeBorder=function(a){var y=this.part,x=y.diagram,E=x===null||!x.animationManager.isAnimating;if(x!==null&&y instanceof Tr&&!y.layer.isTemporary&&y.computesBoundsAfterDrag&&this.ko.w()){var b=x.toolManager.findTool("Dragging");if(b===x.currentTool&&(x=b.computeBorder(y,this.ko,a),x!==null))return x}x=ue.alloc(),b=this.computeMemberBounds(x);var z=this.yb;return y instanceof Tr&&!y.isSubGraphExpanded?a.h(b.x-z.left,b.y-z.top,0,0):a.h(b.x-z.left,b.y-z.top,Math.max(b.width+z.left+z.right,0),Math.max(b.height+z.top+z.bottom,0)),ue.free(x),E&&y instanceof Tr&&y.computesBoundsIncludingLocation&&y.location.w()&&a.Ye(y.location),a},Ms.prototype.computeMemberBounds=function(a){if(!(this.part instanceof Tr))return a.h(0,0,0,0),a;for(var y=this.part,x=1/0,E=1/0,b=-1/0,z=-1/0,tt=y.memberParts;tt.next();){var rt=tt.value;if(rt.isVisible()){if(rt instanceof di&&(!y.computesBoundsIncludingLinks||hl(rt)||rt.fromNode===y||rt.toNode===y))continue;rt=rt.actualBounds,rt.left<x&&(x=rt.left),rt.top<E&&(E=rt.top),rt.right>b&&(b=rt.right),rt.bottom>z&&(z=rt.bottom)}}return isFinite(x)&&isFinite(E)?a.h(x,E,b-x,z-E):(y=y.location,a.h(y.x,y.y,0,0)),a},xe.Object.defineProperties(Ms.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new Di(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),Ms.className="Placeholder";function di(a){rr.call(this,ei.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=ks,this.Om=0,this.Qm=ks,this.Rm=NaN,this.qj=ty,this.po=.5,this.wd=null,this.Nb=new cn().freeze(),this.Tg=this.Mg=null,this.ml=new ue,this.ua=new Wn,this.u=this.o=this.Sf=this.Wf=null,this.su=new Bt,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}ye(di,rr),di.prototype.cloneProtected=function(a){rr.prototype.cloneProtected.call(this,a),a.Qa=this.Qa&-113,a.ff=this.ff,a.gn=this.gn,a.vf=this.vf,a.uo=this.uo,a.qk=this.qk,a.Om=this.Om,a.Qm=this.Qm,a.Rm=this.Rm,a.qj=this.qj,a.po=this.po,this.ba!==null&&(a.ba=this.ba.copy())},Ct=di.prototype,Ct.Af=function(a){rr.prototype.Af.call(this,a),this.ff=a.ff,this.vf=a.vf,a.Mg=null,a.bb(),a.Sf=this.Sf;var y=a.fromPort;y!==null&&el(y),a=a.toPort,a!==null&&el(a)},Ct.qb=function(a){a.classType===di?(a.value&2)===2?this.routing=a:a===cl||a===Th||a===Zf?this.curve=a:a===ap||a===$m||a===t0?this.adjusting=a:a!==ty&&a!==ks&&ee("Unknown Link enum value for a Link property: "+a):rr.prototype.qb.call(this,a)},Ct.Xc=function(){this.ba===null&&(this.ba=new Yg)},Ct.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),Ls(a)||hd(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),Ls(a)||hd(a)))},Ct.zv=function(){return!1},Ct.Av=function(){},Ct.Zc=function(){return!1},di.prototype.computeAngle=function(a,y,x){return di.computeAngle(y,x)},di.computeAngle=function(a,y){switch(a){default:case ks:a=0;break;case sp:a=y;break;case lp:a=y+90;break;case up:a=y-90;break;case ey:a=y+180;break;case e0:a=me.bp(y),90<a&&270>a&&(a-=180);break;case hp:a=me.bp(y+90),90<a&&270>a&&(a-=180);break;case dp:a=me.bp(y-90),90<a&&270>a&&(a-=180);break;case n0:if(a=me.bp(y),45<a&&135>a||225<a&&315>a)return 0;90<a&&270>a&&(a-=180)}return me.bp(a)};function Wf(a){var y=a.fromNode,x=a.toNode,E=null;if(y!==null?E=x!==null?y.px(x):y.containingGroup:x!==null?E=x.containingGroup:E=null,y=E,x=a.Ah,x!==y){x!==null&&_v(x,a),a.Ah=y,y!==null&&Xv(y,a);var b=a.containingGroupChanged;if(b!==null){var z=!0,tt=a.diagram;tt!==null&&(z=tt.aa,tt.aa=!0),b(a,x,y),tt!==null&&(tt.aa=z)}!a.fd||a.Lw!==x&&a.Mw!==x||a.bb()}if(a.isLabeledLink)for(a=a.labelNodes;a.next();)a.value.containingGroup=E}Ct=di.prototype,Ct.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&rr.prototype.oh.call(this)},Ct.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},Ct.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function rS(a,y){a.wd===null&&(a.wd=new xn),a.wd.add(y),a.v()}Ct.Vo=function(a){if(rr.prototype.Vo.call(this,a),ec(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Km(a,this,y));var x=this.uf;if(x!==null){var E=this.toPort;x===a&&E===y||Km(x,this,E)}rp(this)}},Ct.Wo=function(a){if(rr.prototype.Wo.call(this,a),ec(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Ym(a,this,y));var x=this.uf;if(x!==null){var E=this.toPort;x===a&&E===y||Ym(x,this,E)}op(this)}},Ct.Lj=function(){if(this.fd=!0,this.wd!==null){var a=this.diagram;if(a!==null)for(var y=this.wd.copy().iterator;y.next();)a.remove(y.value)}this.data!==null&&(a=this.diagram,a!==null&&a.partManager.removeDataForLink(this))},di.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},di.prototype.move=function(a,y){var x=y?this.location:this.position,E=x.x;isNaN(E)&&(E=0);var b=x.y;for(isNaN(b)&&(b=0),E=a.x-E,b=a.y-b,y===!0?rr.prototype.move.call(this,a,!1):(a=Bt.allocAt(x.x+E,x.y+b),rr.prototype.move.call(this,a,!1),Bt.free(a)),Bh(this,E,b),a=this.labelNodes;a.next();)y=a.value,x=y.position,y.moveTo(x.x+E,x.y+b)},di.prototype.canRelinkFrom=function(){if(!this.relinkableFrom)return!1;var a=this.layer;return a===null?!0:a.allowRelink?(a=a.diagram,!!(a===null||a.allowRelink)):!1},di.prototype.canRelinkTo=function(){if(!this.relinkableTo)return!1;var a=this.layer;return a===null?!0:a.allowRelink?(a=a.diagram,!!(a===null||a.allowRelink)):!1},di.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(rn),a;if(y===1)return a.assign(this.i(0)),a;if(y===2){var x=this.i(0),E=this.i(1);return a.h((x.x+E.x)/2,(x.y+E.y)/2),a}if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===cl))return this.ua.Pu(.5,a),a.add(this.i(0)),x=this.ua.figures.first(),a.offset(-x.startX,-x.startY),a;if(this.computeCurve()===cl){if(y===3){x=this.i(0),E=this.i(1);var b=this.i(2);return me.ax(x.x,x.y,E.x,E.y,E.x,E.y,b.x,b.y,a),a}if(E=(y-1)/3|0,x=3*(E/2|0),E%2===1){E=this.i(x),b=this.i(x+1);var z=this.i(x+2);x=this.i(x+3),me.ax(E.x,E.y,b.x,b.y,z.x,z.y,x.x,x.y,a)}else a.assign(this.i(x));return a}var tt=this.flattenedLengths;for(x=this.flattenedTotalLength,b=z=E=0;E<x/2&&z<y&&(b=tt[z],!(E+b>x/2));)E+=b,z++;return y=this.i(z),z=this.i(z+1),1>Math.abs(y.x-z.x)?y.y>z.y?a.h(y.x,y.y-(x/2-E)):a.h(y.x,y.y+(x/2-E)):1>Math.abs(y.y-z.y)?y.x>z.x?a.h(y.x-(x/2-E),y.y):a.h(y.x+(x/2-E),y.y):(x=(x/2-E)/b,a.h(y.x+x*(z.x-y.x),y.y+x*(z.y-y.y))),a},di.prototype.computeMidAngle=function(){var a=this.pointsCount;if(2>a)return NaN;if(a===2)return this.i(0).ab(this.i(1));if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===cl))return this.ua.wx(.5);if(this.computeCurve()===cl&&4<=a){var y=(a-1)/3|0,x=3*(y/2|0);if(y%2===1){x=Math.floor(x),a=this.i(x),y=this.i(x+1);var E=this.i(x+2);return x=this.i(x+3),me.My(a.x,a.y,y.x,y.y,E.x,E.y,x.x,x.y)}if(0<x&&x+1<a)return this.i(x-1).ab(this.i(x+1))}y=this.flattenedLengths,E=this.flattenedTotalLength;var b=0;x=0;for(var z;b<E/2&&x<a&&(z=y[x],!(b+z>E/2));)b+=z,x++;if(y=this.i(x),E=this.i(x+1),1>Math.abs(y.x-E.x)&&1>Math.abs(y.y-E.y)){if(0<x&&x+2<a)return this.i(x-1).ab(this.i(x+2))}else{if(1>Math.abs(y.x-E.x))return y.y>E.y?270:90;if(1>Math.abs(y.y-E.y))return y.x>E.x?180:0}return y.ab(E)},Ct=di.prototype,Ct.i=function(a){return this.Nb.s[a]},Ct.dd=function(a,y){this.Nb.cd(a,y)},Ct.L=function(a,y,x){this.Nb.cd(a,new Bt(y,x))},Ct.Kz=function(a,y){this.Nb.Gb(a,y)},Ct.m=function(a,y,x){this.Nb.Gb(a,new Bt(y,x))},Ct.ne=function(a){this.Nb.add(a)},Ct.yf=function(a,y){this.Nb.add(new Bt(a,y))},Ct.pv=function(a){this.Nb.mb(a)},Ct.Fj=function(){this.Nb.clear()};function Bh(a,y,x){if(y!==0||x!==0)if(a.pointsCount===0)a.defaultFromPoint&&a.defaultFromPoint.offset(y,x),a.defaultToPoint&&a.defaultToPoint.offset(y,x);else{for(var E=a.fd,b=new cn,z=a.Nb.iterator;z.next();){var tt=z.value;b.add(new Bt(tt.x+y,tt.y+x).freeze())}b.freeze(),z=a.Nb,a.Nb=b,tt=a.diagram,isNaN(y)||isNaN(x)||tt!==null&&tt.animationManager.zb?a.v():(a.ke.h(a.ke.x+y,a.ke.y+x),a.pa.h(a.pa.x+y,a.pa.y+x),As(a)),E?Xm(a):(a.defaultFromPoint&&(a.defaultFromPoint=a.i(0)),a.defaultToPoint&&(a.defaultToPoint=a.i(a.pointsCount-1))),tt!==null&&tt.animationManager.zb&&cf(tt.animationManager,a,b),a.g("points",z,b)}}Ct.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},Ct.zf=function(){if(this.Mg!==null){for(var a=this.Mg,y=this.Nb,x=1/0,E=1/0,b=a.s,z=b.length,tt=0;tt<z;tt++){var rt=b[tt];x=Math.min(rt.x,x),E=Math.min(rt.y,E)}rt=tt=1/0;for(var ot=y.s,st=ot.length,ut=0;ut<st;ut++){var ft=ot[ut];tt=Math.min(ft.x,tt),rt=Math.min(ft.y,rt),ft.freeze()}if(y.freeze(),st===z){for(z=0;z<st;z++)if(ut=b[z],ft=ot[z],ut.x-x!==ft.x-tt||ut.y-E!==ft.y-rt){this.qc();break}}else this.qc();this.Mg=null,x=this.diagram,x!==null&&x.animationManager.zb&&cf(x.animationManager,this,y),Xm(this),this.g("points",a,y)}},Ct.rv=function(){this.Mg!==null&&(this.Nb=this.Mg,this.Mg=null)};function Xm(a){a.Nb.count===0?a.fd=!1:(a.fd=!0,a.cq=null,a.vt=NaN,a.defaultFromPoint=a.i(0),a.defaultToPoint=a.i(a.pointsCount-1),qm(a,!1))}Ct.bb=function(){if(!this.suspendsRouting){var a=this.diagram;if(a){if(a.As.contains(this)||a.undoManager.isUndoingRedoing||(a=a.animationManager,a.isTicking&&!a.isAnimating))return;this.Tg===null||a.isTicking||(this.Tg=null)}a=this.path,a!==null&&(this.fd=!1,this.v(),a.v())}},Ct.vg=function(){if(!this.fd&&!this.computingPoints){var a=!0;try{this.computingPoints=!0,this.uh(),a=this.computePoints()}catch(y){this.computingPoints=!1,this.rv()}finally{this.computingPoints=!1,a?this.zf():this.rv()}}},di.prototype.computePoints=function(){if(this.diagram===null)return!1;var a=this.fromNode,y=null;if(a===null?(jc||(jc=new bi,jc.desiredSize=ae,jc.Va()),this.defaultFromPoint&&(jc.location=this.defaultFromPoint,jc.Va(),y=a=jc)):y=this.fromPort,y!==null&&!a.isVisible()){var x=a.findVisibleNode();x!==null&&x!==a?(a=x,y=x.port):a=x}if(this.Lw=a,a===null||!a.location.w())return!1;for(;!(y===null||y.actualBounds.w()&&y.Ed());)y=y.panel;if(y===null)return!1;var E=this.toNode,b=null;if(E===null?(Wc||(Wc=new bi,Wc.desiredSize=ae,Wc.Va()),this.defaultToPoint&&(Wc.location=this.defaultToPoint,Wc.Va(),b=E=Wc)):b=this.toPort,b===null||E.isVisible()||(x=E.findVisibleNode(),x!==null&&x!==E?(E=x,b=x.port):E=x),this.Mw=E,E===null||!E.location.w())return!1;for(;!(b===null||b.actualBounds.w()&&b.Ed());)b=b.panel;if(b===null)return!1;var z=this.pointsCount,tt=this.computeSpot(!0,y);x=this.computeSpot(!1,b);var rt=Hf(tt),ot=Hf(x),st=y===b&&y!==null,ut=this.isOrthogonal,ft=this.curve===cl;this.Wf=st&&!ut?ft=!0:!1;var vt=this.computeAdjusting()===ks||st;if(!ut&&!st&&rt&&ot){if(rt=!1,!vt&&3<=z&&(vt=this.getLinkPoint(a,y,tt,!0,!1,E,b),ot=this.getLinkPoint(E,b,x,!1,!1,a,y),rt=this.adjustPoints(0,vt,z-1,ot))&&(vt=this.getLinkPoint(a,y,tt,!0,!1,E,b),ot=this.getLinkPoint(E,b,x,!1,!1,a,y),this.adjustPoints(0,vt,z-1,ot)),!rt)if(this.Fj(),ft){z=this.getLinkPoint(a,y,tt,!0,!1,E,b),vt=this.getLinkPoint(E,b,x,!1,!1,a,y),rt=vt.x-z.x,ot=vt.y-z.y,st=this.computeCurviness(),ft=ut=0;var xt=z.x+rt/3,Pt=z.y+ot/3,Ft=xt,Xt=Pt;me.B(ot,0)?Xt=0<rt?Xt-st:Xt+st:(ut=-rt/ot,ft=Math.sqrt(st*st/(ut*ut+1)),0>st&&(ft=-ft),Ft=(0>ot?-1:1)*ft+xt,Xt=ut*(Ft-xt)+Pt),xt=z.x+2*rt/3,Pt=z.y+2*ot/3;var Wt=xt,oe=Pt;me.B(ot,0)?oe=0<rt?oe-st:oe+st:(Wt=(0>ot?-1:1)*ft+xt,oe=ut*(Wt-xt)+Pt),this.Fj(),this.ne(z),this.yf(Ft,Xt),this.yf(Wt,oe),this.ne(vt),this.dd(0,this.getLinkPoint(a,y,tt,!0,!1,E,b)),this.dd(3,this.getLinkPoint(E,b,x,!1,!1,a,y))}else z=E,vt=b,E=this.getLinkPoint(a,y,tt,!0,!1,z,vt),b=this.getLinkPoint(z,vt,x,!1,!1,a,y),this.hasCurviness()?(vt=b.x-E.x,x=b.y-E.y,tt=this.computeCurviness(),a=E.x+vt/2,y=E.y+x/2,z=a,rt=y,me.B(x,0)?rt=0<vt?rt-tt:rt+tt:(vt=-vt/x,z=Math.sqrt(tt*tt/(vt*vt+1)),0>tt&&(z=-z),z=(0>x?-1:1)*z+a,rt=vt*(z-a)+y),this.ne(E),this.yf(z,rt),this.ne(b)):(this.ne(E),this.ne(b),rt=ue.alloc(),y.mi(rt),ot=rt.ca(b),vt.mi(rt),st=rt.ca(E),(ot||st)&&(tt=y.ga(Jm(tt),new Bt),this.dd(0,this.getLinkPointFromPoint(a,y,tt,b,!0,tt)),x=vt.ga(Jm(x),new Bt),this.dd(1,this.getLinkPointFromPoint(z,vt,x,E,!1,x))),ue.free(rt))}else{ft=this.isAvoiding,vt&&(ut&&ft||st)&&this.Fj();var le=st?this.computeCurviness():0;ft=this.getLinkPoint(a,y,tt,!0,ut,E,b),xt=Ft=Pt=0,(ut||!rt||st)&&(Xt=this.computeEndSegmentLength(a,y,tt,!0),xt=this.getLinkDirection(a,y,ft,tt,!0,ut,E,b),st&&(rt||tt.D(x)||!ut&&tt.x+x.x===1&&tt.y+x.y===1)&&(xt-=ut?90:30,0>le&&(xt-=180)),0>xt?xt+=360:360<=xt&&(xt-=360),st&&(Xt+=Math.abs(le)*(ut?1:2)),xt===0?Pt=Xt:xt===90?Ft=Xt:xt===180?Pt=-Xt:xt===270?Ft=-Xt:(Pt=Xt*Math.cos(xt*Math.PI/180),Ft=Xt*Math.sin(xt*Math.PI/180)),tt.Mc()&&st&&(Xt=y.ga(Ri,Bt.alloc()),Wt=Bt.allocAt(Xt.x+1e3*Pt,Xt.y+1e3*Ft),this.getLinkPointFromPoint(a,y,Xt,Wt,!0,ft),Bt.free(Xt),Bt.free(Wt))),Xt=this.getLinkPoint(E,b,x,!1,ut,a,y);var ce=oe=Wt=0;if(ut||!ot||st){var Ae=this.computeEndSegmentLength(E,b,x,!1);ce=this.getLinkDirection(E,b,Xt,x,!1,ut,a,y),st&&(ot||tt.D(x)||!ut&&tt.x+x.x===1&&tt.y+x.y===1)&&(ce+=ut?0:30,0>le&&(ce+=180)),0>ce?ce+=360:360<=ce&&(ce-=360),st&&(Ae+=Math.abs(le)*(ut?1:2)),ce===0?Wt=Ae:ce===90?oe=Ae:ce===180?Wt=-Ae:ce===270?oe=-Ae:(Wt=Ae*Math.cos(ce*Math.PI/180),oe=Ae*Math.sin(ce*Math.PI/180)),x.Mc()&&st&&(x=b.ga(Ri,Bt.alloc()),tt=Bt.allocAt(x.x+1e3*Wt,x.y+1e3*oe),this.getLinkPointFromPoint(E,b,x,tt,!1,Xt),Bt.free(x),Bt.free(tt))}x=ft,(ut||!rt||st)&&(x=new Bt(ft.x+Pt,ft.y+Ft)),tt=Xt,(ut||!ot||st)&&(tt=new Bt(Xt.x+Wt,Xt.y+oe)),!vt&&!ut&&rt&&3<z&&this.adjustPoints(0,ft,z-2,tt)?this.dd(z-1,Xt):!vt&&!ut&&ot&&3<z&&this.adjustPoints(1,x,z-1,Xt)?this.dd(0,ft):!vt&&(ut?6<=z:4<z)&&this.adjustPoints(1,x,z-2,tt)?(this.dd(0,ft),this.dd(z-1,Xt)):(this.Fj(),this.ne(ft),(ut||!rt||st)&&this.ne(x),ut&&this.addOrthoPoints(x,xt,tt,ce,a,E),(ut||!ot||st)&&this.ne(tt),this.ne(Xt))}return!0};function Jv(a,y){return Math.abs(y.x-a.x)>Math.abs(y.y-a.y)?(y.x>=a.x?y.x=a.x+9e9:y.x=a.x-9e9,y.y=a.y):(y.y>=a.y?y.y=a.y+9e9:y.y=a.y-9e9,y.x=a.x),y}di.prototype.getLinkPointFromPoint=function(a,y,x,E,b,z){if(z===void 0&&(z=new Bt),a===null||y===null)return z.assign(x),z;if(a.isVisible()||(b=a.findVisibleNode(),b!==null&&b!==a&&(y=b.port)),a=null,b=y.panel,b===null||b.se()||(b=b.panel),b===null){b=E.x,E=E.y;var tt=x.x;x=x.y}else{a=b.oe,b=1/(a.m11*a.m22-a.m12*a.m21),tt=a.m22*b;var rt=-a.m12*b,ot=-a.m21*b,st=a.m11*b,ut=b*(a.m21*a.dy-a.m22*a.dx),ft=b*(a.m12*a.dx-a.m11*a.dy);b=E.x*tt+E.y*ot+ut,E=E.x*rt+E.y*st+ft,tt=x.x*tt+x.y*ot+ut,x=x.x*rt+x.y*st+ft}return y.Sj(b,E,tt,x,z),a!==null&&z.transform(a),z};function _m(a,y){var x=y.Zn;return x===null&&(x=new Hc,x.port=y,x.node=y.part,y.Zn=x),cS(x,a)}di.prototype.getLinkPoint=function(a,y,x,E,b,z,tt,rt){if(rt===void 0&&(rt=new Bt),x.sb()&&!Hf(x))return y.ga(x,rt),rt;if(x.$c()){var ot=_m(this,y);if(ot!==null){if(rt.assign(ot.Zo),b&&this.routing===aS){var st=_m(this,tt);if(st!==null&&ot.Gl<st.Gl){ot=Bt.alloc(),st=Bt.alloc();var ut=new ue(y.ga(ar,ot),y.ga(jr,st)),ft=this.computeSpot(!E,tt);a=this.getLinkPoint(z,tt,ft,!E,b,a,y,st),(x.Hf(_r)||x.Hf(Vr))&&a.y>=ut.y&&a.y<=ut.y+ut.height?rt.y=a.y:(x.Hf(so)||x.Hf(fo))&&a.x>=ut.x&&a.x<=ut.x+ut.width&&(rt.x=a.x),Bt.free(ot),Bt.free(st)}}return rt}}return x=y.ga(Jm(x),Bt.alloc()),this.pointsCount>(b?6:2)?(tt=E?this.i(1):this.i(this.pointsCount-2),b&&(tt=Jv(x,tt.copy()))):(ot=this.computeSpot(!E,tt),z=Bt.alloc(),tt=tt.ga(Jm(ot),z),b&&(tt=Jv(x,tt)),Bt.free(z)),this.getLinkPointFromPoint(a,y,x,tt,E,rt),Bt.free(x),rt},di.prototype.getLinkDirection=function(a,y,x,E,b,z,tt,rt){t:if(E.sb())var ot=E.x>E.y?E.x>1-E.y?0:E.x<1-E.y?270:315:E.x<E.y?E.x>1-E.y?90:E.x<1-E.y?180:135:.5>E.x?225:.5<E.x?45:0;else{if(E.$c()&&(ot=_m(this,y),ot!==null))switch(ot.Nc){case 1:ot=270;break t;case 2:ot=180;break t;default:case 4:ot=0;break t;case 8:ot=90;break t}ot=y.ga(Ri,Bt.alloc()),this.pointsCount>(z?6:2)?(rt=b?this.i(1):this.i(this.pointsCount-2),rt=z?Jv(ot,rt.copy()):x):(x=Bt.alloc(),rt=rt.ga(Ri,x),Bt.free(x)),x=Math.abs(rt.x-ot.x)>Math.abs(rt.y-ot.y)?rt.x>=ot.x?0:180:rt.y>=ot.y?90:270,Bt.free(ot),ot=x}return E.Mc()&&tt.Td(a)&&(ot+=180,360<=ot&&(ot-=360)),Hf(E)||(a=y.li(),a===0)||(45<=a&&135>a?ot+=90:135<=a&&225>a?ot+=180:225<=a&&315>a&&(ot+=270),360<=ot&&(ot-=360)),ot},di.prototype.computeEndSegmentLength=function(a,y,x,E){return y!==null&&x.$c()&&(a=_m(this,y),a!==null)?a.Ju:(a=E?this.fromEndSegmentLength:this.toEndSegmentLength,y!==null&&isNaN(a)&&(a=E?y.fromEndSegmentLength:y.toEndSegmentLength),isNaN(a)&&(a=10),a)},di.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=Ri:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===bo?_i:y)):(a=y||this.toPort,a===null?a=Ri:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===bo?_i:y)),a};function Hf(a){return a===_i||a.x===.5&&a.y===.5}function Jm(a){return a.x===.5&&a.y===.5?a:Ri}di.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==ks&&4<this.pointsCount?this.computeMidPoint(new Bt):(a=y.Zn,a=a!==null?cS(a,this):null,a!==null?a.Zo:y.ga(Ri))},di.prototype.computeShortLength=function(a){if(a){if(a=this.fromShortLength,isNaN(a)){var y=this.fromPort;y!==null&&(a=y.fromShortLength)}return isNaN(a)?0:a}return a=this.toShortLength,isNaN(a)&&(y=this.toPort,y!==null&&(a=y.toShortLength)),isNaN(a)?0:a},di.prototype.Cf=function(a,y,x,E,b,z){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var tt=z;if(z===void 0&&(tt=Ei.alloc(),tt.reset()),tt.multiply(this.transform),this.fh(a,tt))return xv(this,y,x,b),z===void 0&&Ei.free(tt),!0;if(this.Yc(a,tt)){var rt=!1;if(!this.isAtomic)for(var ot=this.O.s,st=ot.length;st--;){var ut=ot[st];if(ut.visible||ut===this.locationObject){var ft=ut.actualBounds,vt=this.naturalBounds;if(!(ft.x>vt.width||ft.y>vt.height||0>ft.x+ft.width||0>ft.y+ft.height)){if(ft=Ei.alloc(),ft.set(tt),ut instanceof ei)rt=ut.Cf(a,y,x,E,b,ft);else if(this.path===ut){if(ut instanceof Wr)if(rt=a,vt=E,ut.pickable===!1)rt=!1;else if(ft.multiply(ut.transform),vt)t:{var xt=rt,Pt=ft;if(ut.fh(xt,Pt))rt=!0;else{if(Pt===void 0&&(Pt=ut.transform,xt.Re(ut.actualBounds))){rt=!0;break t}rt=xt.left,vt=xt.right;var Ft=xt.top;xt=xt.bottom;var Xt=Bt.alloc(),Wt=Bt.alloc(),oe=Bt.alloc(),le=Ei.alloc();le.set(Pt),le.bv(ut.transform),le.Vj(),Wt.x=vt,Wt.y=Ft,Wt.transform(le),Xt.x=rt,Xt.y=Ft,Xt.transform(le),Pt=!1,$d(ut,Xt,Wt,oe)?Pt=!0:(Xt.x=vt,Xt.y=xt,Xt.transform(le),$d(ut,Xt,Wt,oe)?Pt=!0:(Wt.x=rt,Wt.y=xt,Wt.transform(le),$d(ut,Xt,Wt,oe)?Pt=!0:(Xt.x=rt,Xt.y=Ft,Xt.transform(le),$d(ut,Xt,Wt,oe)&&(Pt=!0)))),Ei.free(le),Bt.free(Xt),Bt.free(Wt),Bt.free(oe),rt=Pt}}else rt=ut.fh(rt,ft)}else rt=ja(ut,a,E,ft);rt&&(vt=ut,y!==null&&(vt=y(ut)),vt&&(x===null||x(vt))&&b.add(vt)),Ei.free(ft)}}}return z===void 0&&Ei.free(tt),rt||this.background!==null||this.areaBackground!==null}return z===void 0&&Ei.free(tt),!1},di.prototype.computeCurve=function(){if(this.Wf===null){var a=this.fromPort,y=this.isOrthogonal;this.Wf=a!==null&&a===this.toPort&&!y}return this.Wf?cl:this.curve},di.prototype.computeCorner=function(){if(this.curve===cl)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},di.prototype.findMidLabel=function(){for(var a=this.path,y=this.O.s,x=y.length,E=0;E<x;E++){var b=y[E];if(b!==a&&!b.isPanelMain&&(b.segmentIndex===-1/0||isNaN(b.segmentIndex)))return b}for(a=this.labelNodes;a.next();)if(y=a.value,y.segmentIndex===-1/0||isNaN(y.segmentIndex))return y;return null},di.prototype.computeSpacing=function(){if(!this.isVisible())return 0;var a=lS;a=Math.max(a,this.computeThickness());var y=this.fromPort,x=this.toPort;if(y!==null&&x!==null){var E=this.findMidLabel();if(E!==null){var b=E.naturalBounds,z=E.margin,tt=isNaN(b.width)?30:b.width*E.scale+z.left+z.right;b=isNaN(b.height)?14:b.height*E.scale+z.top+z.bottom,E=E.segmentOrientation,E===sp||E===e0||E===ey?a=Math.max(a,b):E===up||E===dp||E===lp||E===hp?a=Math.max(a,tt):(y=y.ga(Ri).ab(x.ga(Ri))/180*Math.PI,a=Math.max(a,Math.abs(Math.sin(y)*tt)+Math.abs(Math.cos(y)*b)+1)),this.curve===cl&&(a*=1.333)}}return a},di.prototype.arrangeBundledLinks=function(a,y){if(y)for(y=0;y<a.length;y++){var x=a[y];x.computeAdjusting()===ks&&x.bb()}},di.prototype.computeCurviness=function(){var a=this.curviness;if(isNaN(a)){a=sS;var y=this.Sf;if(y!==null){for(var x=xi(),E=0,b=y.links,z=0;z<b.length;z++){var tt=b[z].computeSpacing();x.push(tt),E+=tt}for(E=-E/2,z=0;z<b.length;z++){if(b[z]===this){a=E+x[z]/2;break}E+=x[z]}y.Ds===this.fromNode&&(a=-a),gi(x)}}return a},di.prototype.computeThickness=function(){if(!this.isVisible())return 0;var a=this.path;return a!==null?Math.max(a.strokeWidth,1):1},di.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},di.prototype.adjustPoints=function(a,y,x,E){var b=this.computeAdjusting();if(this.isOrthogonal){if(b===$m)return!1;b===t0&&(b=ap)}switch(b){case $m:var z=this.i(a),tt=this.i(x);if(!z.Xa(y)||!tt.Xa(E)){b=z.x,z=z.y;var rt=tt.x-b,ot=tt.y-z,st=Math.sqrt(rt*rt+ot*ot);if(!me.$(st,0)){if(me.$(rt,0))var ut=0>ot?-Math.PI/2:Math.PI/2;else ut=Math.atan(ot/Math.abs(rt)),0>rt&&(ut=Math.PI-ut);tt=y.x;var ft=y.y;rt=E.x-tt;var vt=E.y-ft;for(ot=Math.sqrt(rt*rt+vt*vt),me.$(rt,0)?vt=0>vt?-Math.PI/2:Math.PI/2:(vt=Math.atan(vt/Math.abs(rt)),0>rt&&(vt=Math.PI-vt)),st=ot/st,ut=vt-ut,this.dd(a,y),a+=1;a<x;a++)y=this.i(a),rt=y.x-b,ot=y.y-z,y=Math.sqrt(rt*rt+ot*ot),me.$(y,0)||(me.$(rt,0)?ot=0>ot?-Math.PI/2:Math.PI/2:(ot=Math.atan(ot/Math.abs(rt)),0>rt&&(ot=Math.PI-ot)),rt=ot+ut,y*=st,this.L(a,tt+y*Math.cos(rt),ft+y*Math.sin(rt)));this.dd(x,E)}}return!0;case t0:if(z=this.i(a),ft=this.i(x),!z.Xa(y)||!ft.Xa(E)){b=z.x,z=z.y,tt=ft.x,ft=ft.y,st=(tt-b)*(tt-b)+(ft-z)*(ft-z),rt=y.x,ut=y.y,ot=E.x,vt=E.y;var xt=1;if(ot-rt!==0){var Pt=(vt-ut)/(ot-rt);xt=Math.sqrt(1+1/(Pt*Pt))}else Pt=9e9;for(this.dd(a,y),a+=1;a<x;a++){y=this.i(a);var Ft=y.x,Xt=y.y,Wt=.5;st!==0&&(Wt=((b-Ft)*(b-tt)+(z-Xt)*(z-ft))/st);var oe=b+Wt*(tt-b),le=z+Wt*(ft-z);y=Math.sqrt((Ft-oe)*(Ft-oe)+(Xt-le)*(Xt-le)),Xt<Pt*(Ft-oe)+le&&(y=-y),0<Pt&&(y=-y),Ft=rt+Wt*(ot-rt),Wt=ut+Wt*(vt-ut),Pt!==0?(y=Ft+y/xt,this.L(a,y,Wt-(y-Ft)/Pt)):this.L(a,Ft,Wt+y)}this.dd(x,E)}return!0;case ap:t:{if(this.isOrthogonal&&(b=this.i(a),z=this.i(a+1),tt=this.i(a+2),rt=z.x,ut=z.y,ft=rt,st=ut,me.B(b.y,z.y)?me.B(z.x,tt.x)?ut=y.y:me.B(z.y,tt.y)&&(rt=y.x):me.B(b.x,z.x)&&(me.B(z.y,tt.y)?rt=y.x:me.B(z.x,tt.x)&&(ut=y.y)),this.L(a+1,rt,ut),b=this.i(x),z=this.i(x-1),tt=this.i(x-2),rt=z.x,ut=z.y,ot=rt,vt=ut,me.B(b.y,z.y)?me.B(z.x,tt.x)?ut=E.y:me.B(z.y,tt.y)&&(rt=E.x):me.B(b.x,z.x)&&(me.B(z.y,tt.y)?rt=E.x:me.B(z.x,tt.x)&&(ut=E.y)),this.L(x-1,rt,ut),Qv(this))){this.L(a+1,ft,st),this.L(x-1,ot,vt),x=!1;break t}this.dd(a,y),this.dd(x,E),x=!0}return x;default:return!1}},di.prototype.addOrthoPoints=function(a,y,x,E,b,z){0>y?y+=360:360<=y&&(y-=360),0>E?E+=360:360<=E&&(E-=360);var tt=E;y=315<=y||45>y?0:45<=y&&135>y?90:135<=y&&225>y?180:270,E=315<=E||45>E?0:45<=E&&135>E?90:135<=E&&225>E?180:270;var rt=b.actualBounds.copy(),ot=z.actualBounds.copy();if(rt.w()&&ot.w()){rt.Bc(cp,cp),ot.Bc(cp,cp),rt.Ye(a),ot.Ye(x);var st=Bt.alloc(),ut=Bt.alloc();y===0?x.x>a.x||E===270&&x.y<a.y&&ot.right>a.x||E===90&&x.y>a.y&&ot.right>a.x?(st.h(x.x,a.y),ut.h(x.x,(a.y+x.y)/2),E===180?(st.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ut.x=st.x,ut.y=x.y):E===270&&x.y<a.y||E===90&&x.y>a.y?(st.x=a.x<ot.left?this.computeMidOrthoPosition(a.x,a.y,ot.left,x.y,!1):a.x<ot.right&&(E===270&&a.y<ot.top||E===90&&a.y>ot.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):ot.right,ut.x=st.x,ut.y=x.y):E===0&&a.x<ot.left&&a.y>ot.top&&a.y<ot.bottom&&(st.x=a.x,st.y=a.y<x.y?Math.min(x.y,ot.top):Math.max(x.y,ot.bottom),ut.y=st.y)):(st.h(a.x,x.y),ut.h((a.x+x.x)/2,x.y),(E===180||E===90&&x.y<rt.top||E===270&&x.y>rt.bottom)&&(E===180&&(ot.ca(a)||rt.ca(x))?st.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(E===180||E===90)?st.y=this.computeMidOrthoPosition(a.x,rt.top,x.x,Math.max(x.y,ot.bottom),!0):x.y>a.y&&(E===180||E===270)&&(st.y=this.computeMidOrthoPosition(a.x,rt.bottom,x.x,Math.min(x.y,ot.top),!0)),ut.x=x.x,ut.y=st.y),st.y>rt.top&&st.y<rt.bottom&&(x.x>=rt.left&&x.x<=a.x||a.x<=ot.right&&a.x>=x.x?(E===90||E===270)&&(st.h(Math.max((a.x+x.x)/2,a.x),a.y),ut.h(st.x,x.y)):(st.y=E===270||(E===0||E===180)&&x.y<a.y?Math.min(x.y,E===0?rt.top:Math.min(rt.top,ot.top)):Math.max(x.y,E===0?rt.bottom:Math.max(rt.bottom,ot.bottom)),ut.x=x.x,ut.y=st.y))):y===180?x.x<a.x||E===270&&x.y<a.y&&ot.left<a.x||E===90&&x.y>a.y&&ot.left<a.x?(st.h(x.x,a.y),ut.h(x.x,(a.y+x.y)/2),E===0?(st.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ut.x=st.x,ut.y=x.y):E===270&&x.y<a.y||E===90&&x.y>a.y?(st.x=a.x>ot.right?this.computeMidOrthoPosition(a.x,a.y,ot.right,x.y,!1):a.x>ot.left&&(E===270&&a.y<ot.top||E===90&&a.y>ot.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):ot.left,ut.x=st.x,ut.y=x.y):E===180&&a.x>ot.right&&a.y>ot.top&&a.y<ot.bottom&&(st.x=a.x,st.y=a.y<x.y?Math.min(x.y,ot.top):Math.max(x.y,ot.bottom),ut.y=st.y)):(st.h(a.x,x.y),ut.h((a.x+x.x)/2,x.y),(E===0||E===90&&x.y<rt.top||E===270&&x.y>rt.bottom)&&(E===0&&(ot.ca(a)||rt.ca(x))?st.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(E===0||E===90)?st.y=this.computeMidOrthoPosition(a.x,rt.top,x.x,Math.max(x.y,ot.bottom),!0):x.y>a.y&&(E===0||E===270)&&(st.y=this.computeMidOrthoPosition(a.x,rt.bottom,x.x,Math.min(x.y,ot.top),!0)),ut.x=x.x,ut.y=st.y),st.y>rt.top&&st.y<rt.bottom&&(x.x<=rt.right&&x.x>=a.x||a.x>=ot.left&&a.x<=x.x?(E===90||E===270)&&(st.h(Math.min((a.x+x.x)/2,a.x),a.y),ut.h(st.x,x.y)):(st.y=E===270||(E===0||E===180)&&x.y<a.y?Math.min(x.y,E===180?rt.top:Math.min(rt.top,ot.top)):Math.max(x.y,E===180?rt.bottom:Math.max(rt.bottom,ot.bottom)),ut.x=x.x,ut.y=st.y))):y===90?x.y>a.y||E===180&&x.x<a.x&&ot.bottom>a.y||E===0&&x.x>a.x&&ot.bottom>a.y?(st.h(a.x,x.y),ut.h((a.x+x.x)/2,x.y),E===270?(st.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ut.x=x.x,ut.y=st.y):E===180&&x.x<a.x||E===0&&x.x>a.x?(st.y=a.y<ot.top?this.computeMidOrthoPosition(a.x,a.y,x.x,ot.top,!0):a.y<ot.bottom&&(E===180&&a.x<ot.left||E===0&&a.x>ot.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):ot.bottom,ut.x=x.x,ut.y=st.y):E===90&&a.y<ot.top&&a.x>ot.left&&a.x<ot.right&&(st.x=a.x<x.x?Math.min(x.x,ot.left):Math.max(x.x,ot.right),st.y=a.y,ut.x=st.x)):(st.h(x.x,a.y),ut.h(x.x,(a.y+x.y)/2),(E===270||E===0&&x.x<rt.left||E===180&&x.x>rt.right)&&(E===270&&(ot.ca(a)||rt.ca(x))?st.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(E===270||E===0)?st.x=this.computeMidOrthoPosition(rt.left,a.y,Math.max(x.x,ot.right),x.y,!1):x.x>a.x&&(E===270||E===180)&&(st.x=this.computeMidOrthoPosition(rt.right,a.y,Math.min(x.x,ot.left),x.y,!1)),ut.x=st.x,ut.y=x.y),st.x>rt.left&&st.x<rt.right&&(x.y>=rt.top&&x.y<=a.y||a.y<=ot.bottom&&a.y>=x.y?(E===0||E===180)&&(st.h(a.x,Math.max((a.y+x.y)/2,a.y)),ut.h(x.x,st.y)):(st.x=E===180||(E===90||E===270)&&x.x<a.x?Math.min(x.x,E===90?rt.left:Math.min(rt.left,ot.left)):Math.max(x.x,E===90?rt.right:Math.max(rt.right,ot.right)),ut.x=st.x,ut.y=x.y))):x.y<a.y||E===180&&x.x<a.x&&ot.top<a.y||E===0&&x.x>a.x&&ot.top<a.y?(st.h(a.x,x.y),ut.h((a.x+x.x)/2,x.y),E===90?(st.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ut.x=x.x,ut.y=st.y):E===180&&x.x<a.x||E===0&&x.x>=a.x?(st.y=a.y>ot.bottom?this.computeMidOrthoPosition(a.x,a.y,x.x,ot.bottom,!0):a.y>ot.top&&(E===180&&a.x<ot.left||E===0&&a.x>ot.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):ot.top,ut.x=x.x,ut.y=st.y):E===270&&a.y>ot.bottom&&a.x>ot.left&&a.x<ot.right&&(st.x=a.x<x.x?Math.min(x.x,ot.left):Math.max(x.x,ot.right),st.y=a.y,ut.x=st.x)):(st.h(x.x,a.y),ut.h(x.x,(a.y+x.y)/2),(E===90||E===0&&x.x<rt.left||E===180&&x.x>rt.right)&&(E===90&&(ot.ca(a)||rt.ca(x))?st.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(E===90||E===0)?st.x=this.computeMidOrthoPosition(rt.left,a.y,Math.max(x.x,ot.right),x.y,!1):x.x>a.x&&(E===90||E===180)&&(st.x=this.computeMidOrthoPosition(rt.right,a.y,Math.min(x.x,ot.left),x.y,!1)),ut.x=st.x,ut.y=x.y),st.x>rt.left&&st.x<rt.right&&(x.y<=rt.bottom&&x.y>=a.y||a.y>=ot.top&&a.y<=x.y?(E===0||E===180)&&(st.h(a.x,Math.min((a.y+x.y)/2,a.y)),ut.h(x.x,st.y)):(st.x=E===180||(E===90||E===270)&&x.x<a.x?Math.min(x.x,E===270?rt.left:Math.min(rt.left,ot.left)):Math.max(x.x,E===270?rt.right:Math.max(rt.right,ot.right)),ut.x=st.x,ut.y=x.y)));var ft=x;if(this.isAvoiding){var vt=this.diagram;if(vt===null||b===z||this.layer.isTemporary||!wf(vt)||rt.ca(ft)&&!z.Td(b)||ot.ca(a)&&!b.Td(z))y=!1;else{var xt=Pf(vt,!0,this.containingGroup,null);if(this.segmentIndex!==17&&xt.Yj(Math.min(a.x,st.x),Math.min(a.y,st.y),Math.abs(a.x-st.x),Math.abs(a.y-st.y))&&xt.Yj(Math.min(st.x,ut.x),Math.min(st.y,ut.y),Math.abs(st.x-ut.x),Math.abs(st.y-ut.y))&&xt.Yj(Math.min(ut.x,ft.x),Math.min(ut.y,ft.y),Math.abs(ut.x-ft.x),Math.abs(ut.y-ft.y)))y=!1;else{b=a,z=ft;var Pt=x=null;if(vt.isVirtualized){vt=xt.bounds.copy(),vt.Bc(-xt.Ho,-xt.Go);var Ft=Bt.alloc();Vf(xt,a.x,a.y)||(me.Ff(vt.x,vt.y,vt.x+vt.width,vt.y+vt.height,a.x,a.y,st.x,st.y,Ft)?(x=a=Ft.copy(),y=Ft.ab(st)):me.Ff(vt.x,vt.y,vt.x+vt.width,vt.y+vt.height,st.x,st.y,ut.x,ut.y,Ft)?(x=a=Ft.copy(),y=Ft.ab(ut)):me.Ff(vt.x,vt.y,vt.x+vt.width,vt.y+vt.height,ut.x,ut.y,ft.x,ft.y,Ft)&&(x=a=Ft.copy(),y=Ft.ab(ft))),Vf(xt,ft.x,ft.y)||(me.Ff(vt.x,vt.y,vt.x+vt.width,vt.y+vt.height,ft.x,ft.y,ut.x,ut.y,Ft)?(Pt=ft=Ft.copy(),E=ut.ab(Ft)):me.Ff(vt.x,vt.y,vt.x+vt.width,vt.y+vt.height,ut.x,ut.y,st.x,st.y,Ft)?(Pt=ft=Ft.copy(),E=st.ab(Ft)):me.Ff(vt.x,vt.y,vt.x+vt.width,vt.y+vt.height,st.x,st.y,a.x,a.y,Ft)&&(Pt=ft=Ft.copy(),E=a.ab(Ft))),Bt.free(Ft)}rt=rt.copy().ed(ot),rt.Bc(xt.Ho*xt.Os,xt.Go*xt.Os),hS(xt,a,y,ft,E,rt,!0),ot=Zu(xt,ft.x,ft.y),!xt.abort&&ot>=Gf&&(uS(xt),rt.Bc(xt.Ho*xt.Hx,xt.Go*xt.Ix),hS(xt,a,y,ft,E,rt,!1),ot=Zu(xt,ft.x,ft.y)),!xt.abort&&ot<Gf&&Zu(xt,ft.x,ft.y)!==Oh?(qv(this,xt,ft.x,ft.y,E,!0,tt),rt=this.i(2),4>this.pointsCount?(y===0||y===180?(rt.x=a.x,rt.y=ft.y):(rt.x=ft.x,rt.y=a.y),this.L(2,rt.x,rt.y),this.m(3,rt.x,rt.y)):(tt=this.i(3),y===0||y===180?me.B(rt.x,tt.x)?(rt=y===0?Math.max(rt.x,a.x):Math.min(rt.x,a.x),this.L(2,rt,a.y),this.L(3,rt,tt.y)):me.B(rt.y,tt.y)?(Math.abs(a.y-rt.y)<=xt.Go/2&&(this.L(2,rt.x,a.y),this.L(3,tt.x,a.y)),this.m(2,rt.x,a.y)):this.L(2,a.x,rt.y):(y===90||y===270)&&(me.B(rt.y,tt.y)?(rt=y===90?Math.max(rt.y,a.y):Math.min(rt.y,a.y),this.L(2,a.x,rt),this.L(3,tt.x,rt)):me.B(rt.x,tt.x)?(Math.abs(a.x-rt.x)<=xt.Ho/2&&(this.L(2,a.x,rt.y),this.L(3,a.x,tt.y)),this.m(2,a.x,rt.y)):this.L(2,rt.x,a.y))),x!==null&&(a=this.i(1),tt=this.i(2),a.x!==tt.x&&a.y!==tt.y?y===0||y===180?this.m(2,a.x,tt.y):this.m(2,tt.x,a.y):y===0||y===180?this.m(2,b.x,x.y):this.m(2,x.x,b.y)),Pt!==null&&(E===0||E===180?this.yf(z.x,Pt.y):this.yf(Pt.x,z.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(st.copy()),this.ne(ut.copy())),Bt.free(st),Bt.free(ut)}},di.prototype.computeMidOrthoPosition=function(a,y,x,E,b){var z=0;return!this.hasCurviness()||this.computeSpot(!0,this.fromPort).$c()||this.computeSpot(!1,this.toPort).$c()||(z=this.computeCurviness()),b?(y+E)/2+z:(a+x)/2+z};function Qv(a){if(a.diagram===null||!a.isAvoiding||!wf(a.diagram))return!1;var y=a.points.s,x=y.length;if(4>x)return!1;a=Pf(a.diagram,!0,a.containingGroup,null);for(var E=1;E<x-2;E++){var b=y[E],z=y[E+1];if(!a.Yj(Math.min(b.x,z.x),Math.min(b.y,z.y),Math.abs(b.x-z.x),Math.abs(b.y-z.y)))return!0}return!1}function qv(a,y,x,E,b,z,tt){var rt=y.Ho,ot=y.Go,st=Zu(y,x,E),ut=x,ft=E;for(b===0?ut+=rt:b===90?ft+=ot:b===180?ut-=rt:ft-=ot,b!==tt&&st>nc&&Zu(y,ut,ft)!==st-1&&(Zu(y,x-rt,E)===st-1?(b=180,ut=x-rt,ft=E):Zu(y,x+rt,E)===st-1?(b=0,ut=x+rt,ft=E):Zu(y,x,E-ot)===st-1?(b=270,ut=x,ft=E-ot):Zu(y,x,E+ot)===st-1&&(b=90,ut=x,ft=E+ot));st>nc&&Zu(y,ut,ft)===st-1;)x=ut,E=ft,b===0?ut+=rt:b===90?ft+=ot:b===180?ut-=rt:ft-=ot,--st;z?st>nc&&(b===180||b===0?x=Math.floor(x/rt)*rt+rt/2:(b===90||b===270)&&(E=Math.floor(E/ot)*ot+ot/2)):(x=Math.floor(x/rt)*rt+rt/2,E=Math.floor(E/ot)*ot+ot/2),st>nc&&(z=b,tt=x,ut=E,b===0?(z=90,ut+=ot):b===90?(z=180,tt-=rt):b===180?(z=270,ut-=ot):b===270&&(z=0,tt+=rt),Zu(y,tt,ut)===st-1?qv(a,y,tt,ut,z,!1,z):(tt=x,ut=E,b===0?(z=270,ut-=ot):b===90?(z=0,tt+=rt):b===180?(z=90,ut+=ot):b===270&&(z=180,tt-=rt),Zu(y,tt,ut)===st-1&&qv(a,y,tt,ut,z,!1,z))),a.yf(x,E)}di.prototype.ez=function(a){var y=a.x;a=a.y;for(var x=this.i(0),E=this.i(1),b=hn(y,a,x.x,x.y,E.x,E.y),z=0,tt=1;tt<this.pointsCount-1;tt++){x=this.i(tt+1);var rt=hn(y,a,E.x,E.y,x.x,x.y);E=x,rt<b&&(z=tt,b=rt)}return z},di.prototype.qc=function(){this.lk=!1,this.v()},di.prototype.Ul=function(a){if(!(!a&&(this.fd===!1||(a=this.Pb(),this.lk&&(a===null||a.geometry!==null))))&&(2>this.pointsCount?this.lk=!0:this.ua=this.makeGeometry(),a=this.path,a!==null)){a.ua=this.ua;for(var y=this.O.s,x=y.length,E=0;E<x;E++){var b=y[E];b!==a&&b.isPanelMain&&b instanceof Wr&&(b.ua=this.ua)}}},di.prototype.makeGeometry=function(){var a=this.ua,y=this.pointsCount,x=!1,E=this.diagram;E!==null&&ec(this)&&E.Eh.contains(this)&&(this.ml.width!==0||this.ml.height!==0)&&(E.animationManager.isAnimating||E.currentTool!==E.toolManager)&&(x=!0);var b=this.i(0).copy(),z=b.copy();E=this.Nb.s;var tt=this.computeCurve();if(tt===cl&&3<=y&&!me.$(this.smoothness,0))if(y===3){var rt=this.i(1);E=Math.min(b.x,rt.x);var ot=Math.min(b.y,rt.y);rt=this.i(2),E=Math.min(E,rt.x),ot=Math.min(ot,rt.y)}else{if(this.isOrthogonal)for(ot=0;ot<y;ot++)rt=E[ot],z.x=Math.min(rt.x,z.x),z.y=Math.min(rt.y,z.y);else for(E=3;E<y;E+=3)E+3>=y&&(E=y-1),ot=this.i(E),z.x=Math.min(ot.x,z.x),z.y=Math.min(ot.y,z.y);E=z.x,ot=z.y}else{for(ot=0;ot<y;ot++)rt=E[ot],z.x=Math.min(rt.x,z.x),z.y=Math.min(rt.y,z.y);E=z.x,ot=z.y}if(E-=this.su.x,ot-=this.su.y,b.x-=E,b.y-=ot,y!==2||ec(this)){if(a.type=Wn.o,rt=O1(a),this.computeShortLength(!0)!==0&&(b=Rc(this,b,!0,z)),jf(rt,b.x,b.y,!1),tt===cl&&3<=y&&!me.$(this.smoothness,0))if(y===3)x=this.i(1),y=x.x-E,x=x.y-ot,b=this.i(2).copy(),b.x-=E,b.y-=ot,this.computeShortLength(!1)!==0&&(b=Rc(this,b,!1,z)),Fh(rt,y,x,y,x,b.x,b.y);else if(this.isOrthogonal){y=Bt.allocAt(E,ot),x=Bt.alloc(),x.assign(this.i(1)),z=Bt.allocAt(E,ot),b=Bt.allocAt(E,ot),tt=this.i(0);for(var st,ut=this.smoothness/3,ft=1;ft<this.pointsCount-1;ft++){st=this.i(ft);var vt=tt,xt=st,Pt=this.i($v(this,st,ft,!1));if((!me.$(vt.x,xt.x)||!me.$(xt.x,Pt.x))&&(!me.$(vt.y,xt.y)||!me.$(xt.y,Pt.y))){var Ft=ut;isNaN(Ft)&&(Ft=this.smoothness/3);var Xt=vt.x;vt=vt.y;var Wt=xt.x;xt=xt.y;var oe=Pt.x;Pt=Pt.y;var le=Ft*Qm(Xt,vt,Wt,xt);Ft*=Qm(Wt,xt,oe,Pt),me.$(vt,xt)&&me.$(Wt,oe)&&(Wt>Xt?Pt>xt?(z.x=Wt-le,z.y=xt-le,b.x=Wt+Ft,b.y=xt+Ft):(z.x=Wt-le,z.y=xt+le,b.x=Wt+Ft,b.y=xt-Ft):Pt>xt?(z.x=Wt+le,z.y=xt-le,b.x=Wt-Ft,b.y=xt+Ft):(z.x=Wt+le,z.y=xt+le,b.x=Wt-Ft,b.y=xt-Ft)),me.$(Xt,Wt)&&me.$(xt,Pt)&&(xt>vt?(oe>Wt?(z.x=Wt-le,z.y=xt-le,b.x=Wt+Ft):(z.x=Wt+le,z.y=xt-le,b.x=Wt-Ft),b.y=xt+Ft):(oe>Wt?(z.x=Wt-le,z.y=xt+le,b.x=Wt+Ft):(z.x=Wt+le,z.y=xt+le,b.x=Wt-Ft),b.y=xt-Ft)),(me.$(Xt,Wt)&&me.$(Wt,oe)||me.$(vt,xt)&&me.$(xt,Pt))&&(Xt=.5*(Xt+oe),vt=.5*(vt+Pt),z.x=Xt,z.y=vt,b.x=Xt,b.y=vt),(ft===1||ft===2&&me.$(tt.x,this.i(0).x)&&me.$(tt.y,this.i(0).y))&&(x.x=.5*(tt.x+st.x),x.y=.5*(tt.y+st.y)),Fh(rt,x.x-E,x.y-ot,z.x-E,z.y-ot,st.x-E,st.y-ot),y.set(z),x.set(b),tt=st}}st=tt.x,tt=tt.y,ut=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(ut=Rc(this,ut.copy(),!1,Zt)),st=.5*(st+ut.x),tt=.5*(tt+ut.y),Fh(rt,b.x-E,b.y-ot,st-E,tt-ot,ut.x-E,ut.y-ot),Bt.free(y),Bt.free(x),Bt.free(z),Bt.free(b)}else for(x=3;x<y;x+=3)z=this.i(x-2),x+3>=y&&(x=y-1),b=this.i(x-1),tt=this.i(x),x===y-1&&this.computeShortLength(!1)!==0&&(tt=Rc(this,tt.copy(),!1,Zt)),Fh(rt,z.x-E,z.y-ot,b.x-E,b.y-ot,tt.x-E,tt.y-ot);else{for(z=Bt.alloc(),z.assign(this.i(0)),b=Bt.alloc(),b.assign(z),tt=this.computeCorner(),ft=1,st=0;ft<y;){if(ft=$v(this,z,ft,1<ft),ut=this.i(ft),ft>=y-1){if(!z.D(ut))this.computeShortLength(!1)!==0&&(ut=Rc(this,ut.copy(),!1,Zt)),zc(this,rt,-E,-ot,z,ut,x);else if(st===0)for(ft=1;ft<y;)b.assign(z),ut=this.i(ft++),zc(this,rt,-E,-ot,z,ut,x),z.assign(ut);break}if(st=$v(this,ut,ft+1,ft<y-3),ft=-E,Xt=-ot,vt=ut,Wt=this.i(st),Ft=x,me.B(z.y,vt.y)&&me.B(vt.x,Wt.x))if(Pt=Math.min(tt,Math.abs(vt.x-b.x)/2),Pt=le=Math.min(Pt,Math.abs(Wt.y-vt.y)/2),me.B(Pt,0))zc(this,rt,ft,Xt,z,vt,Ft),z.assign(vt);else{var ce=vt.x,Ae=vt.y;xt=ce,oe=Ae,vt.x>z.x?ce=vt.x-Pt:ce=vt.x+Pt,Wt.y>vt.y?oe=vt.y+le:oe=vt.y-le,Wt=Bt.allocAt(ce,Ae),zc(this,rt,ft,Xt,z,Wt,Ft),Bt.free(Wt),Hm(rt,vt.x+ft,vt.y+Xt,xt+ft,oe+Xt),z.h(xt,oe)}else me.B(z.x,vt.x)&&me.B(vt.y,Wt.y)?(Pt=Math.min(tt,Math.abs(vt.y-b.y)/2),Pt=le=Math.min(Pt,Math.abs(Wt.x-vt.x)/2),me.B(le,0)?(zc(this,rt,ft,Xt,z,vt,Ft),z.assign(vt)):(ce=vt.x,Ae=vt.y,xt=ce,oe=Ae,vt.y>z.y?Ae=vt.y-Pt:Ae=vt.y+Pt,Wt.x>vt.x?xt=vt.x+le:xt=vt.x-le,Wt=Bt.allocAt(ce,Ae),zc(this,rt,ft,Xt,z,Wt,Ft),Bt.free(Wt),Hm(rt,vt.x+ft,vt.y+Xt,xt+ft,oe+Xt),z.h(xt,oe))):(zc(this,rt,ft,Xt,z,vt,Ft),z.assign(vt));b.assign(ut),ft=st}Bt.free(z)}Zm=rt}else rt=this.i(1).copy(),rt.x-=E,rt.y-=ot,this.computeShortLength(!0)!==0&&(b=Rc(this,b,!0,z)),this.computeShortLength(!1)!==0&&(rt=Rc(this,rt,!1,z)),a.type=Wn.j,a.startX=b.x,a.startY=b.y,a.endX=rt.x,a.endY=rt.y;return this.lk=!0,a};function Qm(a,y,x,E){return a=x-a,isNaN(a)||a===1/0||a===-1/0?NaN:(0>a&&(a=-a),y=E-y,isNaN(y)||y===1/0||y===-1/0?NaN:(0>y&&(y=-y),me.$(a,0)?y:me.$(y,0)?a:Math.sqrt(a*a+y*y)))}function Rc(a,y,x,E){var b=a.pointsCount;if(2>b)return y;if(x){var z=a.i(1);if(x=z.x-E.x,z=z.y-E.y,E=Qm(y.x,y.y,x,z),E===0)return y;b=b===2?.5*E:E,a=a.computeShortLength(!0),a>b&&(a=b),b=a*(z-y.y)/E,y.x+=a*(x-y.x)/E,y.y+=b}else{if(z=a.i(b-2),x=z.x-E.x,z=z.y-E.y,E=Qm(y.x,y.y,x,z),E===0)return y;b=b===2?.5*E:E,a=a.computeShortLength(!1),a>b&&(a=b),b=a*(y.y-z)/E,y.x-=a*(y.x-x)/E,y.y-=b}return y}function $v(a,y,x,E){for(var b=a.pointsCount,z=y;me.$(y.x,z.x)&&me.$(y.y,z.y);){if(x>=b)return b-1;z=a.i(x++)}if(!me.$(y.x,z.x)&&!me.$(y.y,z.y))return x-1;for(var tt=z;me.$(y.x,z.x)&&me.$(z.x,tt.x)&&(!E||(y.y>=z.y?z.y>=tt.y:z.y<=tt.y))||me.$(y.y,z.y)&&me.$(z.y,tt.y)&&(!E||(y.x>=z.x?z.x>=tt.x:z.x<=tt.x));){if(x>=b)return b-1;tt=a.i(x++)}return x-2}di.prototype.computeJumpLength=function(){return 10};function zc(a,y,x,E,b,z,tt){if(!tt&&ec(a)){tt=a.computeJumpLength();var rt=tt/2,ot=[],st=0;if(a.isVisible()&&(st=Tx(a,b,z,ot)),0<st){if(me.B(b.y,z.y))if(b.x<z.x)for(var ut=0;ut<st;){var ft=Math.max(b.x,Math.min(ot[ut++]-rt,z.x-tt));y.lineTo(ft+x,z.y+E);for(var vt=ft+x,xt=Math.min(ft+tt,z.x);ut<st&&(ft=ot[ut],ft<xt+tt);)ut++,xt=Math.min(ft+rt,z.x);ft=z.y-tt+E,xt+=x;var Pt=z.y+E;a.curve===Th?jf(y,xt,Pt,!1):Fh(y,vt,ft,xt,ft,xt,Pt)}else for(--st;0<=st;){for(ut=Math.min(b.x,Math.max(ot[st--]+rt,z.x+tt)),y.lineTo(ut+x,z.y+E),vt=ut+x,ft=Math.max(ut-tt,z.x);0<=st&&(ut=ot[st],ut>ft-tt);)st--,ft=Math.max(ut-rt,z.x);ut=z.y-tt+E,ft+=x,xt=z.y+E,a.curve===Th?jf(y,ft,xt,!1):Fh(y,vt,ut,ft,ut,ft,xt)}else if(me.B(b.x,z.x))if(b.y<z.y)for(ut=0;ut<st;){for(ft=Math.max(b.y,Math.min(ot[ut++]-rt,z.y-tt)),y.lineTo(z.x+x,ft+E),vt=ft+E,ft=Math.min(ft+tt,z.y);ut<st&&(xt=ot[ut],xt<ft+tt);)ut++,ft=Math.min(xt+rt,z.y);xt=z.x-tt+x,Pt=z.x+x,ft+=E,a.curve===Th?jf(y,Pt,ft,!1):Fh(y,xt,vt,xt,ft,Pt,ft)}else for(--st;0<=st;){for(ut=Math.min(b.y,Math.max(ot[st--]+rt,z.y+tt)),y.lineTo(z.x+x,ut+E),vt=ut+E,ut=Math.max(ut-tt,z.y);0<=st&&(ft=ot[st],ft>ut-tt);)st--,ut=Math.max(ft-rt,z.y);ft=z.x-tt+x,xt=z.x+x,ut+=E,a.curve===Th?jf(y,xt,ut,!1):Fh(y,ft,vt,ft,ut,xt,ut)}}}y.lineTo(z.x+x,z.y+E)}function Tx(a,y,x,E){var b=a.diagram;if(b===null||y.D(x))return 0;for(b=b.layers;b.next();){var z=b.value;if(z!==null&&z.visible){z=z.Pa.s;for(var tt=z.length,rt=0;rt<tt;rt++){var ot=z[rt];if(ot instanceof di){if(ot===a)return 0<E.length&&E.sort(function(ut,ft){return ut-ft}),E.length;if(ot.isVisible()&&ec(ot)){var st=ot.routeBounds;st.w()&&a.routeBounds.Yc(st)&&!a.usesSamePort(ot)&&(st=ot.path,st!==null&&st.Ed()&&Ox(y,x,E,ot))}}}}}return 0<E.length&&E.sort(function(ut,ft){return ut-ft}),E.length}function Ox(a,y,x,E){for(var b=me.B(a.y,y.y),z=E.pointsCount,tt=E.i(0),rt=Bt.alloc(),ot=1;ot<z;ot++){var st=E.i(ot);if(ot<z-1){var ut=E.i(ot+1);if(tt.y===st.y&&st.y===ut.y){if(st.x>tt.x&&ut.x>=st.x||st.x<tt.x&&ut.x<=st.x)continue}else if(tt.x===st.x&&st.x===ut.x&&(st.y>tt.y&&ut.y>=st.y||st.y<tt.y&&ut.y<=st.y))continue}t:{ut=a.x;var ft=a.y,vt=y.x,xt=y.y,Pt=tt.x;tt=tt.y;var Ft=st.x,Xt=st.y;if(me.B(ut,vt)){if(!me.B(ft,xt)&&me.B(tt,Xt)&&Math.min(ft,xt)<tt&&Math.max(ft,xt)>tt&&Math.min(Pt,Ft)<ut&&Math.max(Pt,Ft)>ut&&!me.B(Pt,Ft)){rt.x=ut,rt.y=tt,ut=!0;break t}}else if(me.B(ft,xt)&&me.B(Pt,Ft)&&Math.min(ut,vt)<Pt&&Math.max(ut,vt)>Pt&&Math.min(tt,Xt)<ft&&Math.max(tt,Xt)>ft&&!me.B(tt,Xt)){rt.x=Pt,rt.y=ft,ut=!0;break t}rt.x=0,rt.y=0,ut=!1}ut&&(b?x.push(rt.x):x.push(rt.y)),tt=st}Bt.free(rt)}function ec(a){return a=a.curve,a===Zf||a===Th}function qm(a,y){(y||ec(a))&&(y=a.diagram,y===null||y.animationManager.isTicking||y.Eh.contains(a)||a.ml.width===0&&a.ml.height===0||y.Eh.add(a,a.ml.copy()))}di.prototype.Xo=function(a){var y=this.layer;if(y!==null&&y.visible&&!y.isTemporary){var x=y.diagram;if(x!==null&&!x.animationManager.isTicking){var E=!1;for(x=x.layers;x.next();){var b=x.value;if(b.visible){if(b===y){E=!0;var z=!1;b=b.Pa.s;for(var tt=b.length,rt=0;rt<tt;rt++){var ot=b[rt];ot instanceof di&&(ot===this?z=!0:z&&oS(this,ot,a))}}else if(E)for(z=b.Pa.s,b=z.length,tt=0;tt<b;tt++)rt=z[tt],rt instanceof di&&oS(this,rt,a)}}}}};function oS(a,y,x){if(y!==null&&y.lk&&y.fd&&ec(y)){var E=y.routeBounds;E.w()&&(a.routeBounds.Yc(E)||x.Yc(E))&&(a.usesSamePort(y)||y.qc())}}di.prototype.usesSamePort=function(a){var y=this.pointsCount,x=a.pointsCount;if(0<y&&0<x){var E=this.i(0),b=a.i(0);if(E.Xa(b)||(y=this.i(y-1),a=a.i(x-1),y.Xa(a)||E.Xa(a)||y.Xa(b)))return!0}else if(this.fromNode===a.fromNode||this.toNode===a.toNode||this.fromNode===a.toNode||this.toNode===a.fromNode)return!0;return!1},di.prototype.isVisible=function(){if(!rr.prototype.isVisible.call(this))return!1;var a=this.containingGroup,y=!0,x=this.diagram;if(x!==null&&(y=x.isTreePathToChildren),x=this.fromNode,x!==null){if(this.isTreeLink&&y&&!x.isTreeExpanded)return!1;if(x===a)return!0;for(var E=x;E!==null;){if(E.labeledLink===this)return!0;E=E.containingGroup}if(x=x.findVisibleNode(),x===null||x===a)return!1}if(x=this.toNode,x!==null){if(this.isTreeLink&&!y&&!x.isTreeExpanded)return!1;if(x===a)return!0;for(y=x;y!==null;){if(y.labeledLink===this)return!0;y=y.containingGroup}if(y=x.findVisibleNode(),y===null||y===a)return!1}return!0},di.prototype.Zb=function(a){if(rr.prototype.Zb.call(this,a),a&&qm(this,!1),this.Sf!==null&&this.Sf.Sl(),this.wd!==null)for(var y=this.wd.iterator;y.next();)y.value.Zb(a)},di.prototype.computeAdjusting=function(){return this.isAvoiding&&this.diagram!==null&&this.diagram.animationManager.defaultAnimation.isAnimating?ap:this.qk};function rp(a){var y=a.ef;if(y!==null){var x=a.uf;if(x!==null&&isNaN(a.curviness)){for(var E=a.ff,b=a.vf,z=a=null,tt=y.jb.s,rt=tt.length,ot=0;ot<rt;ot++){var st=tt[ot];(st.ef===y&&st.ff===E&&st.uf===x&&st.vf===b||st.ef===x&&st.ff===b&&st.uf===y&&st.vf===E)&&(z===null?z=st:(a===null&&(a=[],a.push(z)),a.push(st)))}if(a!==null){for(z=U1(y,x,E,b),z===null&&(z=new i0(y,E,x,b),Y1(y,z),Y1(x,z)),z.links=a,y=0;y<a.length;y++)a[y].Sf=z;z.Sl()}}}}function op(a){var y=a.Sf;y!==null&&isNaN(a.curviness)&&(a.Sf=null,a=y.links.indexOf(a),0<=a&&(ki(y.links,a),y.Sl()))}di.prototype.ph=function(){return!0},xe.Object.defineProperties(di.prototype,{fromNode:{get:function(){return this.ef},set:function(a){var y=this.ef;if(y!==a){var x=this.fromPort;y!==null&&(this.uf!==y&&Ym(y,this,x),op(this),this.C(2)),this.ef=a,a!==null&&this.Zb(a.isVisible()),this.Wf=null,this.bb();var E=this.diagram;E!==null&&E.aa&&E.partManager.setFromNodeForLink(this,a,y);var b=this.fromPort,z=this.fromPortChanged;if(z!==null){var tt=!0;E!==null&&(tt=E.aa,E.aa=!0),z(this,x,b),E!==null&&(E.aa=tt)}a!==null&&(this.uf!==a&&Km(a,this,b),rp(this),this.C(1)),this.g("fromNode",y,a),Wf(this)}}},fromPortId:{get:function(){return this.ff},set:function(a){var y=this.ff;if(y!==a){var x=this.fromPort;x!==null&&el(x),op(this),this.ff=a;var E=this.fromPort;E!==null&&el(E);var b=this.diagram;if(b!==null){var z=this.data,tt=b.model;z!==null&&tt.ri()&&tt.xv(z,a)}x!==E&&(this.Wf=null,this.bb(),z=this.fromPortChanged,z!==null&&(tt=!0,b!==null&&(tt=b.aa,b.aa=!0),z(this,x,E),b!==null&&(b.aa=tt))),rp(this),this.g("fromPortId",y,a)}}},fromPort:{get:function(){var a=this.ef;return a===null?null:a.ns(this.ff)}},fromPortChanged:{get:function(){return this.gn},set:function(a){var y=this.gn;y!==a&&(this.gn=a,this.g("fromPortChanged",y,a))}},toNode:{get:function(){return this.uf},set:function(a){var y=this.uf;if(y!==a){var x=this.toPort;y!==null&&(this.ef!==y&&Ym(y,this,x),op(this),this.C(2)),this.uf=a,a!==null&&this.Zb(a.isVisible()),this.Wf=null,this.bb();var E=this.diagram;E!==null&&E.aa&&E.partManager.setToNodeForLink(this,a,y);var b=this.toPort,z=this.toPortChanged;if(z!==null){var tt=!0;E!==null&&(tt=E.aa,E.aa=!0),z(this,x,b),E!==null&&(E.aa=tt)}a!==null&&(this.ef!==a&&Km(a,this,b),rp(this),this.C(1)),this.g("toNode",y,a),Wf(this)}}},toPortId:{get:function(){return this.vf},set:function(a){var y=this.vf;if(y!==a){var x=this.toPort;x!==null&&el(x),op(this),this.vf=a;var E=this.toPort;E!==null&&el(E);var b=this.diagram;if(b!==null){var z=this.data,tt=b.model;z!==null&&tt.ri()&&tt.Cv(z,a)}x!==E&&(this.Wf=null,this.bb(),z=this.toPortChanged,z!==null&&(tt=!0,b!==null&&(tt=b.aa,b.aa=!0),z(this,x,E),b!==null&&(b.aa=tt))),rp(this),this.g("toPortId",y,a)}}},toPort:{get:function(){var a=this.uf;return a===null?null:a.ns(this.vf)}},toPortChanged:{get:function(){return this.uo},set:function(a){var y=this.uo;y!==a&&(this.uo=a,this.g("toPortChanged",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:bo},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),(y.$c()||a.$c())&&this.fromNode!==null&&el(this.fromPort),this.bb())}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:NaN},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&Vn(a,">= 0",di,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),this.bb())}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:NaN},set:function(a){var y=this.fromShortLength;y!==a&&(this.Xc(),this.ba.Wi=a,this.qc(),this.g("fromShortLength",y,a))}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:bo},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),(y.$c()||a.$c())&&this.toNode!==null&&el(this.toPort),this.bb())}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:NaN},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&Vn(a,">= 0",di,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),this.bb())}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:NaN},set:function(a){var y=this.toShortLength;y!==a&&(this.Xc(),this.ba.xj=a,this.qc(),this.g("toShortLength",y,a))}},isLabeledLink:{get:function(){return this.wd===null?!1:0<this.wd.count}},labelNodes:{get:function(){return this.wd===null?Ar:this.wd.iterator}},relinkableFrom:{get:function(){return(this.Qa&1)!==0},set:function(a){var y=(this.Qa&1)!==0;y!==a&&(this.Qa^=1,this.g("relinkableFrom",y,a),this.Wb())}},relinkableTo:{get:function(){return(this.Qa&2)!==0},set:function(a){var y=(this.Qa&2)!==0;y!==a&&(this.Qa^=2,this.g("relinkableTo",y,a),this.Wb())}},resegmentable:{get:function(){return(this.Qa&4)!==0},set:function(a){var y=(this.Qa&4)!==0;y!==a&&(this.Qa^=4,this.g("resegmentable",y,a),this.Wb())}},isTreeLink:{get:function(){return(this.Qa&8)!==0},set:function(a){var y=(this.Qa&8)!==0;y!==a&&(this.Qa^=8,this.g("isTreeLink",y,a),this.fromNode!==null&&ip(this.fromNode),this.toNode!==null&&ip(this.toNode))}},path:{get:function(){var a=this.Pb();return a instanceof Wr?a:null}},routeBounds:{get:function(){this.vg();var a=this.ml,y=1/0,x=1/0,E=this.pointsCount;if(E===0)a.h(NaN,NaN,0,0);else{if(E===1)E=this.i(0),y=Math.min(E.x,y),x=Math.min(E.y,x),a.h(E.x,E.y,0,0);else if(E===2){E=this.i(0);var b=this.i(1);y=Math.min(E.x,b.x),x=Math.min(E.y,b.y),a.h(E.x,E.y,0,0),a.Ye(b)}else if(this.computeCurve()===cl&&3<=E&&!this.isOrthogonal)if(b=this.i(0),y=b.x,x=b.y,a.h(y,x,0,0),E===3){E=this.i(1),y=Math.min(E.x,y),x=Math.min(E.y,x);var z=this.i(2);y=Math.min(z.x,y),x=Math.min(z.y,x),me.Dl(b.x,b.y,E.x,E.y,E.x,E.y,z.x,z.y,.5,a)}else for(z=3;z<E;z+=3){var tt=this.i(z-2);z+3>=E&&(z=E-1);var rt=this.i(z-1),ot=this.i(z);me.Dl(b.x,b.y,tt.x,tt.y,rt.x,rt.y,ot.x,ot.y,.5,a),y=Math.min(ot.x,y),x=Math.min(ot.y,x),b=ot}else for(b=this.i(0),z=this.i(1),y=Math.min(b.x,z.x),x=Math.min(b.y,z.y),a.h(b.x,b.y,0,0),a.Ye(z),b=2;b<E;b++)z=this.i(b),y=Math.min(z.x,y),x=Math.min(z.y,x),a.Ye(z);this.su.h(y-a.x,x-a.y)}return a}},midPoint:{get:function(){return this.vg(),this.computeMidPoint(new Bt)}},midAngle:{get:function(){return this.vg(),this.computeMidAngle()}},flattenedLengths:{get:function(){if(this.cq===null){this.fd||Xm(this);for(var a=this.cq=[],y=this.pointsCount,x=0;x<y-1;x++){var E=this.i(x),b=this.i(x+1);me.$(E.x,b.x)?(E=b.y-E.y,0>E&&(E=-E)):me.$(E.y,b.y)?(E=b.x-E.x,0>E&&(E=-E)):E=Math.sqrt(E.Bf(b)),a.push(E)}}return this.cq}},flattenedTotalLength:{get:function(){var a=this.vt;if(isNaN(a)){for(var y=this.flattenedLengths,x=y.length,E=a=0;E<x;E++)a+=y[E];this.vt=a}return a}},points:{get:function(){return this.Nb},set:function(a){var y=this.Nb;if(y!==a){var x=null;if(Array.isArray(a)){var E=a.length%2===0;if(E){for(var b=0;b<a.length;b++)if(typeof a[b]!="number"||isNaN(a[b])){E=!1;break}}if(E)for(x=new cn,E=0;E<a.length/2;E++)b=new Bt(a[2*E],a[2*E+1]).freeze(),x.add(b);else{for(E=!0,b=0;b<a.length;b++){var z=a[b];if(!Ke(z)||typeof z.x!="number"||isNaN(z.x)||typeof z.y!="number"||isNaN(z.y)){E=!1;break}}if(E)for(x=new cn,E=0;E<a.length;E++)b=a[E],x.add(new Bt(b.x,b.y).freeze())}}else if(a instanceof cn)for(x=a.copy(),a=x.iterator;a.next();)a.value.freeze();else ee("Link.points value is not an instance of List or Array: "+a);x.freeze(),this.Nb=x,this.qc(),Xm(this),a=this.diagram,a!==null&&(a.pi||a.undoManager.isUndoingRedoing||a.As.add(this),a.animationManager.zb&&cf(a.animationManager,this,x)),this.g("points",y,x)}}},pointsCount:{get:function(){return this.Nb.count}},fd:{get:function(){return(this.Qa&16)!==0},set:function(a){(this.Qa&16)!==0!==a&&(this.Qa^=16)}},suspendsRouting:{get:function(){return(this.Qa&32)!==0},set:function(a){(this.Qa&32)!==0!==a&&(this.Qa^=32)}},computingPoints:{get:function(){return(this.Qa&64)!==0},set:function(a){(this.Qa&64)!==0!==a&&(this.Qa^=64)}},defaultFromPoint:{get:function(){return this.o},set:function(a){this.o=a.copy()}},defaultToPoint:{get:function(){return this.u},set:function(a){this.u=a.copy()}},isOrthogonal:{get:function(){return(this.qj.value&2)===2}},isAvoiding:{get:function(){return(this.qj.value&4)===4}},lk:{get:function(){return(this.Qa&128)!==0},set:function(a){(this.Qa&128)!==0!==a&&(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||!Hf(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var a=this.pointsCount;return a===0?0:2>=a?a-1:this.isOrthogonal||!Hf(this.computeSpot(!1))?a-2:a-1}},adjusting:{get:function(){return this.qk},set:function(a){var y=this.qk;y!==a&&(this.qk=a,this.g("adjusting",y,a))}},corner:{get:function(){return this.Om},set:function(a){var y=this.Om;y!==a&&(this.Om=a,this.qc(),this.g("corner",y,a))}},curve:{get:function(){return this.Qm},set:function(a){var y=this.Qm;y!==a&&(this.Qm=a,this.bb(),this.qc(),qm(this,y===Th||y===Zf||a===Th||a===Zf),this.g("curve",y,a))}},curviness:{get:function(){return this.Rm},set:function(a){var y=this.Rm;y!==a&&(this.Rm=a,this.bb(),this.qc(),this.g("curviness",y,a))}},routing:{get:function(){return this.qj},set:function(a){var y=this.qj;y!==a&&(this.qj=a,this.Wf=null,this.bb(),qm(this,(y.value&2)===2||(a.value&2)===2),this.g("routing",y,a))}},smoothness:{get:function(){return this.po},set:function(a){var y=this.po;y!==a&&(this.po=a,this.qc(),this.g("smoothness",y,a))}},key:{get:function(){var a=this.diagram;if(a!==null&&a.model.ri())return a.model.Ac(this.data)}}}),di.prototype.invalidateOtherJumpOvers=di.prototype.Xo,di.prototype.findClosestSegment=di.prototype.ez,di.prototype.updateRoute=di.prototype.vg,di.prototype.invalidateRoute=di.prototype.bb,di.prototype.rollbackRoute=di.prototype.rv,di.prototype.commitRoute=di.prototype.zf,di.prototype.startRoute=di.prototype.uh,di.prototype.clearPoints=di.prototype.Fj,di.prototype.removePoint=di.prototype.pv,di.prototype.addPointAt=di.prototype.yf,di.prototype.addPoint=di.prototype.ne,di.prototype.insertPointAt=di.prototype.m,di.prototype.insertPoint=di.prototype.Kz,di.prototype.setPointAt=di.prototype.L,di.prototype.setPoint=di.prototype.dd,di.prototype.getPoint=di.prototype.i,di.prototype.getOtherPort=di.prototype.Cz,di.prototype.getOtherNode=di.prototype.To;var jc=null,Wc=null,ty=new dn(di,"Normal",1),Ix=new dn(di,"Orthogonal",2),Rx=new dn(di,"AvoidsNodes",6),aS=new dn(di,"AvoidsNodesStraight",7),ks=new dn(di,"None",0),cl=new dn(di,"Bezier",9),Th=new dn(di,"JumpGap",10),Zf=new dn(di,"JumpOver",11),ap=new dn(di,"End",17),$m=new dn(di,"Scale",18),t0=new dn(di,"Stretch",19),sp=new dn(di,"OrientAlong",21),lp=new dn(di,"OrientPlus90",22),up=new dn(di,"OrientMinus90",23),ey=new dn(di,"OrientOpposite",24),e0=new dn(di,"OrientUpright",25),hp=new dn(di,"OrientPlus90Upright",26),dp=new dn(di,"OrientMinus90Upright",27),n0=new dn(di,"OrientUpright45",28),sS=16,lS=14,cp=8;di.className="Link",di.Normal=ty,di.Orthogonal=Ix,di.AvoidsNodes=Rx,di.AvoidsNodesStraight=aS,di.None=ks,di.Bezier=cl,di.JumpGap=Th,di.JumpOver=Zf,di.End=ap,di.Scale=$m,di.Stretch=t0,di.OrientAlong=sp,di.OrientPlus90=lp,di.OrientMinus90=up,di.OrientOpposite=ey,di.OrientUpright=e0,di.OrientPlus90Upright=hp,di.OrientMinus90Upright=dp,di.OrientUpright45=n0,di.EndSegmentStep=8,di.CurvinessStart=sS,di.SpacingMin=lS,di.OrthoShortCut=cp;function i0(a,y,x,E){wi(this),this.Fe=this.qq=!1,this.Ds=a,this.Ox=y,this.cv=x,this.Px=E,this.links=[]}i0.prototype.Sl=function(){if(!this.qq){var a=this.links;0<a.length&&(a=a[0].diagram,a!==null&&(a.ow.add(this),this.Fe=a.undoManager.isUndoingRedoing))}this.qq=!0},i0.prototype.Nv=function(){if(this.qq){this.qq=!1;var a=this.links;if(0<a.length){var y=a[0],x=y.diagram;x=x===null||x.pi&&!this.Fe,this.Fe=!1,y.arrangeBundledLinks(a,x),a.length===1&&(y.Sf=null,a.length=0)}a.length===0&&(a=this.Ds,this!==null&&a.af!==null&&a.af.remove(this),a=this.cv,this!==null&&a.af!==null&&a.af.remove(this))}},i0.className="LinkBundle";function fp(a){wi(this),this.Yx=this.group=null,this.vs=!0,this.abort=!1,this.Od=this.Nd=1,this.Fn=this.En=-1,this.rc=a.width,this.sc=a.height,this.ac=null,this.ei=this.di=0,this.Os=11,this.Ix=this.Hx=22}fp.prototype.initialize=function(a){if(!(0>=a.width||0>=a.height)){var y=a.y,x=a.x+a.width,E=a.y+a.height;if(this.Nd=Math.floor((a.x-this.rc)/this.rc)*this.rc,this.Od=Math.floor((y-this.sc)/this.sc)*this.sc,this.En=Math.ceil((x+2*this.rc)/this.rc)*this.rc,this.Fn=Math.ceil((E+2*this.sc)/this.sc)*this.sc,a=1+(Math.ceil((this.En-this.Nd)/this.rc)|0),y=1+(Math.ceil((this.Fn-this.Od)/this.sc)|0),this.ac===null||this.di<a-1||this.ei<y-1){for(x=[],E=0;E<=a;E++)x[E]=new Uint32Array(y);this.ac=x,this.di=a-1,this.ei=y-1}if(a=ny,this.ac!==null)for(y=0;y<=this.di;y++)if(x=this.ac[y],x.fill)x.fill(a);else for(E=0;E<=this.ei;E++)x[E]=a}};function Vf(a,y,x){return a.Nd<=y&&y<=a.En&&a.Od<=x&&x<=a.Fn}function Zu(a,y,x){return Vf(a,y,x)?(y-=a.Nd,y/=a.rc,x-=a.Od,x/=a.sc,a.ac[y|0][x|0]):ny}function uS(a){if(a.ac!==null)for(var y=0;y<=a.di;y++)for(var x=a.ac[y],E=0;E<=a.ei;E++)x[E]>=nc&&(x[E]=ny)}fp.prototype.Yj=function(a,y,x,E){if(a>this.En||a+x<this.Nd||y>this.Fn||y+E<this.Od)return!0;a=(a-this.Nd)/this.rc|0,y=(y-this.Od)/this.sc|0,x=Math.max(0,x)/this.rc+1|0;var b=Math.max(0,E)/this.sc+1|0;if(0>a&&(x+=a,a=0),0>y&&(b+=y,y=0),0>x||0>b)return!0;for(E=Math.min(a+x-1,this.di)|0,x=Math.min(y+b-1,this.ei)|0;a<=E;a++){b=this.ac[a];for(var z=y;z<=x;z++)if(b[z]===Oh)return!1}return!0};function Vu(a,y,x,E,b,z,tt,rt,ot){if(!(y<z||y>tt||x<rt||x>ot)){var st=y|0,ut=x|0,ft=a.ac[st][ut];if(ft>=nc&&ft<Gf)for(b?ut+=E:st+=E,ft+=1;z<=st&&st<=tt&&rt<=ut&&ut<=ot&&!(ft>=a.ac[st][ut]);)a.ac[st][ut]=ft,ft+=1,b?ut+=E:st+=E;if(st=b?ut:st,b)if(0<E)for(x+=E;x<st;x+=E)Vu(a,y,x,1,!b,z,tt,rt,ot),Vu(a,y,x,-1,!b,z,tt,rt,ot);else for(x+=E;x>st;x+=E)Vu(a,y,x,1,!b,z,tt,rt,ot),Vu(a,y,x,-1,!b,z,tt,rt,ot);else if(0<E)for(y+=E;y<st;y+=E)Vu(a,y,x,1,!b,z,tt,rt,ot),Vu(a,y,x,-1,!b,z,tt,rt,ot);else for(y+=E;y>st;y+=E)Vu(a,y,x,1,!b,z,tt,rt,ot),Vu(a,y,x,-1,!b,z,tt,rt,ot)}}function r0(a,y,x,E,b,z,tt,rt,ot){y|=0,x|=0;var st=Oh,ut=nc;for(a.ac[y][x]=ut;st===Oh&&y>z&&y<tt&&x>rt&&x<ot;)ut+=1,a.ac[y][x]=ut,b?x+=E:y+=E,st=a.ac[y][x]}function o0(a,y,x,E,b,z,tt,rt,ot){y|=0,x|=0;var st=Oh,ut=Gf;for(a.ac[y][x]=ut;st===Oh&&y>z&&y<tt&&x>rt&&x<ot;)a.ac[y][x]=ut,b?x+=E:y+=E,st=a.ac[y][x]}function hS(a,y,x,E,b,z,tt){if(a.ac!==null){a.abort=!1;var rt=y.x,ot=y.y;if(Vf(a,rt,ot)){rt-=a.Nd,rt/=a.rc,ot-=a.Od,ot/=a.sc;var st=E.x,ut=E.y;if(Vf(a,st,ut))if(st-=a.Nd,st/=a.rc,ut-=a.Od,ut/=a.sc,1>=Math.abs(rt-st)&&1>=Math.abs(ot-ut))a.abort=!0;else{var ft=z.x;E=z.y,y=z.x+z.width;var vt=z.y+z.height;ft-=a.Nd,ft/=a.rc,E-=a.Od,E/=a.sc,y-=a.Nd,y/=a.rc,vt-=a.Od,vt/=a.sc,z=Math.max(0,Math.min(a.di,ft|0)),y=Math.min(a.di,Math.max(0,y|0)),ft=Math.max(0,Math.min(a.ei,E|0)),vt=Math.min(a.ei,Math.max(0,vt|0)),E=a.ac,rt|=0,ot|=0,st|=0,ut|=0;var xt=x===0||x===90?1:-1;if(x=x===90||x===270,E[rt][ot]===Oh?(r0(a,rt,ot,xt,x,z,y,ft,vt),r0(a,rt,ot,1,!x,z,y,ft,vt),r0(a,rt,ot,-1,!x,z,y,ft,vt)):r0(a,rt,ot,xt,x,rt,ot,rt,ot),E[st][ut]===Oh?(o0(a,st,ut,b===0||b===90?1:-1,b===90||b===270,z,y,ft,vt),o0(a,st,ut,1,!(b===90||b===270),z,y,ft,vt),o0(a,st,ut,-1,!(b===90||b===270),z,y,ft,vt)):o0(a,st,ut,xt,x,st,ut,st,ut),x=xi(),tt&&dS(a,st,ut,b,rt,ot,x))for((x[0]!==st||x[1]!==ut)&&(x.unshift(ut),x.unshift(st)),(x[x.length-2]!==rt||x[x.length-1]!==ot)&&(x.push(rt),x.push(ot)),a=nc,b=x[x.length-2],tt=x[x.length-1],E[b][tt]=a++,z=x.length-4;0<=z;z-=2)for(b=x[z+2],tt=x[z+3],y=x[z],st=x[z+1];y>b?b++:y<b?b--:st>tt?tt++:st<tt&&tt--,E[b][tt]=a++,b!==y||tt!==st;);else Vu(a,rt,ot,1,!1,z,y,ft,vt),Vu(a,rt,ot,-1,!1,z,y,ft,vt),Vu(a,rt,ot,1,!0,z,y,ft,vt),Vu(a,rt,ot,-1,!0,z,y,ft,vt);gi(x)}}}}function dS(a,y,x,E,b,z,tt){for(var rt=a.ac,ot=y,st=x;;){if(ot===b&&st===z)return!0;var ut=ot,ft=st;if(E===0)if(ut<b)ut++;else break;else if(E===90)if(ft<z)ft++;else break;else if(E===180)if(ut>b)ut--;else break;else if(ft>z)ft--;else break;var vt=rt[ut][ft];if(vt===0||vt===iy)break;ot=ut,st=ft}for(;;){if(ut=E,ft=ot,vt=st,E===0?vt<z?(ut=90,vt++):vt>z&&(ut=270,vt--):E===90?ft<b?(ut=0,ft++):ft>b&&(ut=180,ft--):E===180?vt<z?(ut=90,vt++):vt>z&&(ut=270,vt--):ft<b?(ut=0,ft++):ft>b&&(ut=180,ft--),ft=rt[ft][vt],ut!==E&&ft!==0&&ft!==iy){if(tt.push(ot),tt.push(st),dS(a,ot,st,ut,b,z,tt))return!0;tt.pop(),tt.pop()}if(rt[ot][st]=iy,E===0){if(ot===y)return!1;ot--}else if(E===90){if(st===x)return!1;st--}else if(E===180){if(ot===y)return!1;ot++}else{if(st===x)return!1;st++}}}xe.Object.defineProperties(fp.prototype,{bounds:{get:function(){return new ue(this.Nd,this.Od,this.En-this.Nd,this.Fn-this.Od)}},Ho:{get:function(){return this.rc},set:function(a){0<a&&a!==this.rc&&(this.rc=a,this.initialize(this.bounds))}},Go:{get:function(){return this.sc},set:function(a){0<a&&a!==this.sc&&(this.sc=a,this.initialize(this.bounds))}}});var Oh=0,nc=1,Gf=999999,ny=Gf+1,iy=Gf+2;fp.className="PositionArray";function Hc(){wi(this),this.port=this.node=null,this.pe=[],this.ap=!1}Hc.prototype.toString=function(){for(var a=this.pe,y=this.node.toString()+" "+a.length.toString()+":",x=0;x<a.length;x++){var E=a[x];E!==null&&(y+=`
`+E.toString())}return y};function zx(a,y,x,E){switch(y=y.offsetY,y){case 8:return 90;case 2:return 180;case 1:return 270;case 4:return 0}switch(y){case 9:return 180<x?270:90;case 6:return 90<x&&270>=x?180:0}switch(a=180*Math.atan2(a.height,a.width)/Math.PI,y){case 3:return x>a&&x<=180+a?180:270;case 5:return x>180-a&&x<=360-a?270:0;case 12:return x>a&&x<=180+a?90:0;case 10:return x>180-a&&x<=360-a?180:90;case 7:return 90<x&&x<=180+a?180:x>180+a&&x<=360-a?270:0;case 13:return 180<x&&x<=360-a?270:x>a&&180>=x?90:0;case 14:return x>a&&x<=180-a?90:x>180-a&&270>=x?180:0;case 11:return x>180-a&&x<=180+a?180:x>180+a?270:90}return E&&y!==15&&(x-=15,0>x&&(x+=360)),x>a&&x<180-a?90:x>=180-a&&x<=180+a?180:x>180+a&&x<360-a?270:0}Hc.prototype.Sl=function(){this.pe.length=0};function cS(a,y){var x=a.pe;if(x.length===0){t:if(!a.ap){x=a.ap,a.ap=!0;var E=null,b=a.node,z=b instanceof Tr?b:null;if(z===null||z.isSubGraphExpanded)var tt=b.isTreeExpanded?b.findLinksConnected(a.port.portId):b.qx();else{if(!z.actualBounds.w()){a.ap=x;break t}E=z,tt=E.Lu()}z=a.pe.length=0;var rt=a.port.ga(ar,Bt.alloc()),ot=a.port.ga(jr,Bt.alloc());for(b=ue.allocAt(rt.x,rt.y,0,0),b.Ye(ot),Bt.free(rt),Bt.free(ot),rt=Bt.allocAt(b.x+b.width/2,b.y+b.height/2),ot=a.port.li(),tt=tt.iterator;tt.next();){var st=tt.value;if(st.isVisible()&&st.fromPort!==st.toPort){var ut=st.fromPort===a.port||st.fromNode!==null&&st.fromNode.Td(E),ft=st.computeSpot(ut,a.port);if(ft.$c()&&(ut=ut?st.toPort:st.fromPort,ut!==null)){var vt=ut.part;if(vt!==null){var xt=vt.findVisibleNode();xt!==null&&xt!==vt&&(vt=xt,ut=vt.port),ut=st.computeOtherPoint(vt,ut),vt=rt.ab(ut),vt-=ot,0>vt?vt+=360:360<=vt&&(vt-=360),ft=zx(b,ft,vt,st.isOrthogonal),ft===0?(ft=4,180<vt&&(vt-=360)):ft===90?(ft=8,270<vt&&(vt-=360)):ft===180?ft=2:(ft=1,90>vt&&(vt+=360)),xt=a.pe[z],xt===void 0?(xt=new ry(st,vt,ft),a.pe[z]=xt):(xt.link=st,xt.angle=vt,xt.Nc=ft),xt.hv.set(ut),z++}}}}for(Bt.free(rt),a.pe.sort(Hc.prototype.j),ot=a.pe.length,E=-1,z=rt=0;z<ot;z++)tt=a.pe[z],tt!==void 0&&(tt.Nc!==E&&(E=tt.Nc,rt=0),tt.Uo=rt,rt++);for(E=-1,rt=0,z=ot-1;0<=z;z--)ot=a.pe[z],ot!==void 0&&(ot.Nc!==E&&(E=ot.Nc,rt=ot.Uo+1),ot.Gl=rt);if(z=a.pe,ft=a.port,E=a.node.portSpreading,rt=Bt.alloc(),ot=Bt.alloc(),tt=Bt.alloc(),st=Bt.alloc(),ft.ga(ar,rt),ft.ga(Br,ot),ft.ga(jr,tt),ft.ga(Yr,st),xt=vt=ut=ft=0,E===Uv)for(var Pt=0;Pt<z.length;Pt++){var Ft=z[Pt];if(Ft!==null){var Xt=Ft.link.computeThickness();switch(Ft.Nc){case 8:vt+=Xt;break;case 2:xt+=Xt;break;case 1:ft+=Xt;break;default:case 4:ut+=Xt}}}var Wt=Pt=0,oe=1,le=Ft=0;for(Xt=0;Xt<z.length;Xt++){var ce=z[Xt];if(ce!==null){if(Pt!==ce.Nc){switch(Pt=ce.Nc,Pt){case 8:var Ae=tt;Wt=st;break;case 2:Ae=st,Wt=rt;break;case 1:Ae=rt,Wt=ot;break;default:case 4:Ae=ot,Wt=tt}switch(Ft=Wt.x-Ae.x,le=Wt.y-Ae.y,Pt){case 8:vt>Math.abs(Ft)?(oe=Math.abs(Ft)/vt,vt=Math.abs(Ft)):oe=1;break;case 2:xt>Math.abs(le)?(oe=Math.abs(le)/xt,xt=Math.abs(le)):oe=1;break;case 1:ft>Math.abs(Ft)?(oe=Math.abs(Ft)/ft,ft=Math.abs(Ft)):oe=1;break;default:case 4:ut>Math.abs(le)?(oe=Math.abs(le)/ut,ut=Math.abs(le)):oe=1}Wt=0}var Je=ce.Zo;if(E===Uv){switch(ce=ce.link.computeThickness(),ce*=oe,Je.set(Ae),Pt){case 8:Je.x=Ae.x+Ft/2+vt/2-Wt-ce/2;break;case 2:Je.y=Ae.y+le/2+xt/2-Wt-ce/2;break;case 1:Je.x=Ae.x+Ft/2-ft/2+Wt+ce/2;break;default:case 4:Je.y=Ae.y+le/2-ut/2+Wt+ce/2}Wt+=ce}else{var Ci=.5;E===Um&&(Ci=(ce.Uo+1)/(ce.Gl+1)),Je.x=Ae.x+Ft*Ci,Je.y=Ae.y+le*Ci}}}for(Bt.free(rt),Bt.free(ot),Bt.free(tt),Bt.free(st),Ae=a.pe,z=0;z<Ae.length;z++)E=Ae[z],E!==null&&(E.Ju=a.computeEndSegmentLength(E));a.ap=x,ue.free(b)}x=a.pe}for(a=0;a<x.length;a++)if(b=x[a],b!==null&&b.link===y)return b;return null}Hc.prototype.j=function(a,y){return a===y?0:a===null?-1:y===null?1:a.Nc<y.Nc?-1:a.Nc>y.Nc?1:a.angle<y.angle?-1:a.angle>y.angle?1:0},Hc.prototype.computeEndSegmentLength=function(a){var y=a.link,x=y.computeEndSegmentLength(this.node,this.port,_i,y.fromPort===this.port),E=a.Uo;if(0>E)return x;var b=a.Gl;if(1>=b||!y.isOrthogonal)return x;y=a.hv;var z=a.Zo;return(a.Nc===2||a.Nc===8)&&(E=b-1-E),((a=a.Nc===2||a.Nc===4)?y.y<z.y:y.x<z.x)?x+8*E:(a?y.y===z.y:y.x===z.x)?x:x+8*(b-1-E)},Hc.className="Knot";function ry(a,y,x){this.link=a,this.angle=y,this.Nc=x,this.hv=new Bt,this.Gl=this.Uo=0,this.Zo=new Bt,this.Ju=0}ry.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()},ry.className="LinkInfo";function ea(a){wi(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new Bt(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,a&&Object.assign(this,a)}ea.prototype.cloneProtected=function(a){a.sn=this.sn,a.Gh=this.Gh,a.yn=this.yn,a.Am.assign(this.Am),a.vn=this.vn,a.un=this.un,a.Em=this.Em,a.xn=!0},ea.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},ea.prototype.qb=function(){},ea.prototype.toString=function(){var a=Li(this.constructor);return a+="(",this.group!==null&&(a+=" in "+this.group),this.diagram!==null&&(a+=" for "+this.diagram),a+")"},ea.prototype.C=function(){if(this.isValidLayout){var a=this.diagram;if(a!==null&&!a.undoManager.isUndoingRedoing){var y=a.animationManager;!y.isTicking&&(y.defaultAnimation.isAnimating&&y.Cc(),this.isOngoing&&a.pi||this.isInitial&&!a.pi)&&(this.isValidLayout=!1,a.$b())}}},ea.prototype.createNetwork=function(){return new zo(this)},ea.prototype.makeNetwork=function(a){var y=this.createNetwork();return a instanceof Qe?(y.lg(a.nodes,!0),y.lg(a.links,!0)):a instanceof Tr?y.lg(a.memberParts):y.lg(a.iterator),y},ea.prototype.updateParts=function(){this.isValidLayout=!0;var a=this.diagram;if(a===null&&this.network!==null)for(var y=this.network.vertexes.iterator;y.next();){var x=y.value.node;if(x!==null&&(a=x.diagram,a!==null))break}try{a!==null&&a.Ea("Layout"),this.commitLayout()}finally{a!==null&&a.eb("Layout")}},ea.prototype.commitLayout=function(){if(this.network!==null){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();if(this.isRouting)for(a=this.network.edges.iterator;a.next();)a.value.commit()}},ea.prototype.doLayout=function(a){var y=new xn;a instanceof Qe?(fd(this,y,a.nodes,!0,this.rh,!0,!1,!0),fd(this,y,a.parts,!0,this.rh,!0,!1,!0)):a instanceof Tr?fd(this,y,a.memberParts,!1,this.rh,!0,!1,!0):y.addAll(a.iterator),0<y.count&&(a=this.diagram,a!==null&&a.Ea("Layout"),this.doMinimalNoNetworkLayout(y),a!==null&&a.eb("Layout")),this.isValidLayout=!0},ea.prototype.doMinimalNoNetworkLayout=function(a){var y=Math.ceil(Math.sqrt(a.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var x=this.arrangementOrigin.x,E=x,b=this.arrangementOrigin.y,z=0,tt=0;for(a=a.iterator;a.next();){var rt=a.value;gp(rt);var ot=rt.measuredBounds,st=ot.width;ot=ot.height,rt.moveTo(E,b),rt instanceof Tr&&(rt.rh=!1),E+=Math.max(st,50)+20,tt=Math.max(tt,Math.max(ot,50)),z>=y-1?(z=0,E=x,b+=tt+20,tt=0):z++}},ea.prototype.doMinimalNetworkLayout=function(){var a=Math.ceil(Math.sqrt(this.network.vertexes.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);for(var y=this.arrangementOrigin.x,x=y,E=this.arrangementOrigin.y,b=0,z=0,tt=this.network.vertexes.iterator;tt.next();){var rt=tt.value.node;if(!(rt===null||rt instanceof di)&&(gp(rt),this.rh(rt))){var ot=rt.measuredBounds,st=ot.width;ot=ot.height,rt.moveTo(x,E),rt instanceof Tr&&(rt.rh=!1),x+=Math.max(st,50)+20,z=Math.max(z,Math.max(ot,50)),b>=a-1?(b=0,x=y,E+=z+20,z=0):b++}}},ea.prototype.rh=function(a){return!!(!a.location.w()||a instanceof Tr&&a.rh)};function fd(a,y,x,E,b,z,tt,rt){for(x=x.iterator;x.next();){var ot=x.value;E&&!ot.isTopLevel||b!==null&&!b(ot)||!ot.canLayout()||(z&&ot instanceof bi?ot.isLinkLabel||(ot instanceof Tr&&ot.layout===null?fd(a,y,ot.memberParts,!1,b,z,tt,rt):(gp(ot),y.add(ot))):tt&&ot instanceof di?y.add(ot):!rt||!ot.Zc()||ot instanceof bi||(gp(ot),y.add(ot)))}}function gp(a){var y=a.actualBounds;(y.width===0||y.height===0||isNaN(y.width)||isNaN(y.height))&&a.Va()}ea.prototype.ni=function(a,y){var x=this.boundsComputation;return x!==null?(y||(y=new ue),x(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},ea.prototype.ex=function(a){var y=new xn;return a instanceof Qe?(fd(this,y,a.nodes,!0,null,!0,!0,!0),fd(this,y,a.links,!0,null,!0,!0,!0),fd(this,y,a.parts,!0,null,!0,!0,!0)):a instanceof Tr?fd(this,y,a.memberParts,!1,null,!0,!0,!0):fd(this,y,a.iterator,!1,null,!0,!0,!0),y},ea.prototype.initialOrigin=function(a){var y=this.group;if(y!==null){var x=y.position.copy();return(isNaN(x.x)||isNaN(x.y))&&x.set(a),y=y.placeholder,y!==null&&(x=y.ga(ar),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},xe.Object.defineProperties(ea.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},group:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a,a!==null&&(this.H=a.diagram))}},isOngoing:{get:function(){return this.sn},set:function(a){this.sn!==a&&(this.sn=a)}},isInitial:{get:function(){return this.Gh},set:function(a){this.Gh=a,a||(this.xn=!0)}},isViewportSized:{get:function(){return this.yn},set:function(a){this.yn!==a&&(this.yn=a)&&this.C()}},isRouting:{get:function(){return this.vn},set:function(a){this.vn!==a&&(this.vn=a)}},isRealtime:{get:function(){return this.un},set:function(a){this.un!==a&&(this.un=a)}},isValidLayout:{get:function(){return this.xn},set:function(a){this.xn!==a&&(this.xn=a,a||(a=this.diagram,a!==null&&(a.xh=!0)))}},network:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a,a!==null&&(a.layout=this))}},boundsComputation:{get:function(){return this.Em},set:function(a){this.Em!==a&&(this.Em=a,this.C())}},arrangementOrigin:{get:function(){return this.Am},set:function(a){this.Am.D(a)||(this.Am.assign(a),this.C())}}}),ea.prototype.collectParts=ea.prototype.ex,ea.prototype.getLayoutBounds=ea.prototype.ni,ea.prototype.invalidateLayout=ea.prototype.C,ea.className="Layout";function zo(a){wi(this),this.Sc=a,this.wf=new xn,this.ye=new xn,this.Es=new on,this.zs=new on}zo.prototype.clear=function(){if(this.wf)for(var a=this.wf.iterator;a.next();)a.value.clear();if(this.ye)for(a=this.ye.iterator;a.next();)a.value.clear();this.wf=new xn,this.ye=new xn,this.Es=new on,this.zs=new on},zo.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutNetwork"+(this.layout!==null?"("+this.layout.toString()+")":"");if(0>=a)return y;if(y+=" vertexes: "+this.wf.count+" edges: "+this.ye.count,1<a){for(var x=this.wf.iterator;x.next();)y+=`
`+x.value.toString(a-1);for(x=this.ye.iterator;x.next();)y+=`
`+x.value.toString(a-1)}return y},zo.prototype.createVertex=function(){return new Ia(this)},zo.prototype.createEdge=function(){return new nl(this)},zo.prototype.lg=function(a,y,x){if(a!==null){for(y===void 0&&(y=!1),x===void 0&&(x=null),x===null&&(x=function(tt){if(tt instanceof bi)return!tt.isLinkLabel;if(tt instanceof di){var rt=tt.fromNode;return rt===null||rt.isLinkLabel?!1:(tt=tt.toNode,!(tt===null||tt.isLinkLabel))}return!1}),a=a.iterator;a.next();){var E=a.value;if(E instanceof bi&&(!y||E.isTopLevel)&&E.canLayout()&&x(E)){if(E instanceof Tr&&E.layout===null)this.lg(E.memberParts,!1);else if(this.ki(E)===null){var b=this.createVertex();b.node=E,this.dh(b)}}}for(a.reset();a.next();)if(E=a.value,E instanceof di&&(!y||E.isTopLevel)&&E.canLayout()&&x(E)&&this.Lo(E)===null){var z=E.fromNode;b=E.toNode,z!==null&&b!==null&&z!==b&&(z=this.findGroupVertex(z),b=this.findGroupVertex(b),z!==null&&b!==null&&this.Zj(z,b,E))}}},zo.prototype.findGroupVertex=function(a){if(a===null)return null;var y=a.findVisibleNode();if(y===null)return null;if(a=this.ki(y),a!==null)return a;for(y=y.containingGroup;y!==null;){if(a=this.ki(y),a!==null)return a;y=y.containingGroup}return null},Ct=zo.prototype,Ct.dh=function(a){if(a!==null){this.wf.add(a);var y=a.node;y!==null&&this.Es.add(y,a),a.network=this}},Ct.Bl=function(a){if(a===null)return null;var y=this.ki(a);return y===null&&(y=this.createVertex(),y.node=a,this.dh(y)),y},Ct.Iu=function(a){if(a!==null&&fS(this,a)){for(var y=a.tg,x=y.count-1;0<=x;x--){var E=y.M(x);this.Mj(E)}for(y=a.mg,a=y.count-1;0<=a;a--)x=y.M(a),this.Mj(x)}};function fS(a,y){if(y===null)return!1;var x=a.wf.remove(y);return x&&(y=y.node,y!==null&&a.Es.remove(y)),x}Ct.Zy=function(a){a!==null&&(a=this.ki(a),a!==null&&this.Iu(a))},Ct.ki=function(a){return a===null?null:this.Es.I(a)},Ct.Bo=function(a){if(a!==null){oy(this,a);var y=a.toVertex;y!==null&&y.Cl(a),y=a.fromVertex,y!==null&&y.zl(a)}};function oy(a,y){if(y!==null){a.ye.add(y);var x=y.link;x!==null&&a.Lo(x)===null&&a.zs.add(x,y),y.network=a}}Ct.Dy=function(a){if(a===null)return null;var y=a.fromNode,x=a.toNode,E=this.Lo(a);return E===null?(E=this.createEdge(),E.link=a,y!==null&&(E.fromVertex=this.Bl(y)),x!==null&&(E.toVertex=this.Bl(x)),this.Bo(E)):(y!==null?E.fromVertex=this.Bl(y):E.fromVertex=null,x!==null?E.toVertex=this.Bl(x):E.toVertex=null),E},Ct.Mj=function(a){if(a!==null){var y=a.toVertex;y!==null&&y.Kl(a),y=a.fromVertex,y!==null&&y.Jl(a),ay(this,a)}};function ay(a,y){y!==null&&a.ye.remove(y)&&(y=y.link,y!==null&&a.zs.remove(y))}Ct.Yy=function(a){a!==null&&(a=this.Lo(a),a!==null&&this.Mj(a))},Ct.Lo=function(a){return a===null?null:this.zs.I(a)},Ct.Zj=function(a,y,x){if(a===null||y===null)return null;if(a.network===this&&y.network===this){var E=this.createEdge();return E.link=x,E.fromVertex=a,E.toVertex=y,this.Bo(E),E}return null},Ct.gm=function(a){if(a!==null){var y=a.fromVertex,x=a.toVertex;y!==null&&x!==null&&(y.Jl(a),x.Kl(a),a.gm(),y.Cl(a),x.zl(a))}},Ct.Ko=function(){for(var a=xi(),y=this.ye.iterator;y.next();){var x=y.value;x.fromVertex===x.toVertex&&a.push(x)}for(y=a.length,x=0;x<y;x++)this.Mj(a[x]);gi(a)},zo.prototype.deleteArtificialVertexes=function(){for(var a=xi(),y=this.wf.iterator;y.next();){var x=y.value;x.node===null&&x.data===null&&a.push(x)}for(x=a.length,y=0;y<x;y++)this.Iu(a[y]);for(y=xi(),x=this.ye.iterator;x.next();){var E=x.value;E.link===null&&E.data===null&&y.push(E)}for(x=y.length,E=0;E<x;E++)this.Mj(y[E]);gi(a),gi(y)};function jx(a){for(var y=xi(),x=a.ye.iterator;x.next();){var E=x.value;E.fromVertex!==null&&E.toVertex!==null||y.push(E)}for(x=y.length,E=0;E<x;E++)a.Mj(y[E]);gi(y)}zo.prototype.Zx=function(a){a===void 0&&(a=!0),a&&(this.deleteArtificialVertexes(),jx(this),this.Ko()),a=new cn;for(var y=!0;y;){y=!1;for(var x=this.wf.iterator;x.next();){var E=x.value;if(0<E.tg.count||0<E.mg.count){y=this.layout.createNetwork(),a.add(y),sy(this,y,E),y=!0;break}}}return a.sort(function(b,z){return b===null||z===null||b===z?0:z.vertexes.count-b.vertexes.count}),a};function sy(a,y,x){if(x!==null&&x.network!==y){fS(a,x),y.dh(x);for(var E=x.sourceEdges;E.next();){var b=E.value;b.network!==y&&(ay(a,b),oy(y,b),sy(a,y,b.fromVertex))}for(E=x.destinationEdges;E.next();)x=E.value,x.network!==y&&(ay(a,x),oy(y,x),sy(a,y,x.toVertex))}}zo.prototype.dz=function(){for(var a=new xn,y=this.wf.iterator;y.next();)a.add(y.value.node);for(y=this.ye.iterator;y.next();)a.add(y.value.link);return a},xe.Object.defineProperties(zo.prototype,{layout:{get:function(){return this.Sc},set:function(a){a!==null&&(this.Sc=a)}},vertexes:{get:function(){return this.wf}},edges:{get:function(){return this.ye}}}),zo.prototype.findAllParts=zo.prototype.dz,zo.prototype.splitIntoSubNetworks=zo.prototype.Zx,zo.prototype.deleteSelfEdges=zo.prototype.Ko,zo.prototype.reverseEdge=zo.prototype.gm,zo.prototype.linkVertexes=zo.prototype.Zj,zo.prototype.findEdge=zo.prototype.Lo,zo.prototype.deleteLink=zo.prototype.Yy,zo.prototype.deleteEdge=zo.prototype.Mj,zo.prototype.addLink=zo.prototype.Dy,zo.prototype.addEdge=zo.prototype.Bo,zo.prototype.findVertex=zo.prototype.ki,zo.prototype.deleteNode=zo.prototype.Zy,zo.prototype.deleteVertex=zo.prototype.Iu,zo.prototype.addNode=zo.prototype.Bl,zo.prototype.addVertex=zo.prototype.dh,zo.prototype.addParts=zo.prototype.lg,zo.className="LayoutNetwork";function Ia(a){wi(this),this.ob=a,this.j=new ue(0,0,10,10).freeze(),this.o=new Bt(5,5).freeze(),this.Sh=this.ub=null,this.tg=new cn,this.mg=new cn}Ia.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new cn,this.mg=new cn},Ia.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutVertex#"+Sr(this);if(0<a&&(y+=this.node!==null?"("+this.node.toString()+")":"",1<a)){a="";for(var x=!0,E=this.tg.iterator;E.next();){var b=E.value;x?x=!1:a+=",",a+=b.toString(0)}for(b="",x=!0,E=this.mg.iterator;E.next();){var z=E.value;x?x=!1:b+=",",b+=z.toString(0)}y+=" sources: "+a+" destinations: "+b}return y},Ia.prototype.commit=function(){var a=this.ub;if(a!==null){var y=this.bounds,x=a.bounds;Ke(x)?(x.x=y.x,x.y=y.y,x.width=y.width,x.height=y.height):a.bounds=y.copy()}else if(a=this.node,a!==null){if(y=this.bounds,!(a instanceof Tr)){x=ue.alloc(),a.Va();var E=this.network.layout.ni(a,x),b=a.locationObject.ga(Ri);if(E.w()&&b.w()){a.moveTo(y.x+this.focusX-(b.x-E.x),y.y+this.focusY-(b.y-E.y)),ue.free(x);return}ue.free(x)}a.moveTo(y.x,y.y)}},Ia.prototype.Cl=function(a){a!==null&&(this.tg.contains(a)||this.tg.add(a))},Ia.prototype.Kl=function(a){a!==null&&this.tg.remove(a)},Ia.prototype.zl=function(a){a!==null&&(this.mg.contains(a)||this.mg.add(a))},Ia.prototype.Jl=function(a){a!==null&&this.mg.remove(a)};function ly(a,y){return a=a.Sh,y=y.Sh,a?y?(a=a.text,y=y.text,a<y?-1:a>y?1:0):1:y!==null?-1:0}xe.Object.defineProperties(Ia.prototype,{sourceEdgesArrayAccess:{get:function(){return this.tg._dataArray}},destinationEdgesArrayAccess:{get:function(){return this.mg._dataArray}},data:{get:function(){return this.ub},set:function(a){if(this.ub=a,a!==null&&a.bounds){var y=a.bounds;a=y.x;var x=y.y,E=y.width;y=y.height,this.o.h(E/2,y/2),this.j.h(a,x,E,y)}}},node:{get:function(){return this.Sh},set:function(a){if(this.Sh!==a){this.Sh=a,a.Va();var y=this.network.layout,x=ue.alloc(),E=y.ni(a,x);y=E.x;var b=E.y,z=E.width;if(E=E.height,isNaN(y)&&(y=0),isNaN(b)&&(b=0),this.j.h(y,b,z,E),ue.free(x),!(a instanceof Tr)&&(a=a.locationObject.ga(Ri),a.w())){this.o.h(a.x-y,a.y-b);return}this.o.h(z/2,E/2)}}},bounds:{get:function(){return this.j},set:function(a){this.j.D(a)||this.j.assign(a)}},focus:{get:function(){return this.o},set:function(a){this.o.D(a)||this.o.assign(a)}},centerX:{get:function(){return this.j.x+this.o.x},set:function(a){var y=this.j;y.x+this.o.x!==a&&(y.ka(),y.x=a-this.o.x,y.freeze())}},centerY:{get:function(){return this.j.y+this.o.y},set:function(a){var y=this.j;y.y+this.o.y!==a&&(y.ka(),y.y=a-this.o.y,y.freeze())}},focusX:{get:function(){return this.o.x},set:function(a){var y=this.o;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},focusY:{get:function(){return this.o.y},set:function(a){var y=this.o;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},x:{get:function(){return this.j.x},set:function(a){var y=this.j;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},y:{get:function(){return this.j.y},set:function(a){var y=this.j;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},width:{get:function(){return this.j.width},set:function(a){var y=this.j;y.width!==a&&(y.ka(),y.width=a,y.freeze())}},height:{get:function(){return this.j.height},set:function(a){var y=this.j;y.height!==a&&(y.ka(),y.height=a,y.freeze())}},network:{get:function(){return this.ob},set:function(a){this.ob=a}},sourceVertexes:{get:function(){for(var a=new xn,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new xn,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new xn,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);for(y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},sourceEdges:{get:function(){return this.tg.iterator}},destinationEdges:{get:function(){return this.mg.iterator}},edges:{get:function(){for(var a=new cn,y=this.sourceEdges;y.next();)a.add(y.value);for(y=this.destinationEdges;y.next();)a.add(y.value);return a.iterator}},edgesCount:{get:function(){return this.tg.count+this.mg.count}}}),Ia.prototype.deleteDestinationEdge=Ia.prototype.Jl,Ia.prototype.addDestinationEdge=Ia.prototype.zl,Ia.prototype.deleteSourceEdge=Ia.prototype.Kl,Ia.prototype.addSourceEdge=Ia.prototype.Cl,Ia.className="LayoutVertex",Ia.standardComparer=ly,Ia.smartComparer=function(a,y){if(a!==null){if(y!==null){a=a.Sh;var x=y.Sh;if(a!==null){if(x!==null){for(y=a.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),a=x.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),x=0;x<y.length;x++)if(a[x]!==""&&a[x]!==void 0){var E=parseFloat(y[x]),b=parseFloat(a[x]);if(isNaN(E))if(isNaN(b)){if(y[x].localeCompare(a[x])!==0)return y[x].localeCompare(a[x])}else return 1;else{if(isNaN(b))return-1;if(E-b!==0)return E-b}}else if(y[x]!=="")return 1;return a[x]!==""&&a[x]!==void 0?-1:0}return 1}return x!==null?-1:0}return 1}return y!==null?-1:0};function nl(a){wi(this),this.nb=a,this.qd=this.kd=this.$k=this.ub=null}nl.prototype.clear=function(){this.qd=this.kd=this.$k=this.ub=null},nl.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutEdge#"+Sr(this);return 0<a&&(y+=this.$k!==null?"("+this.$k.toString()+")":"",1<a&&(y+=" "+(this.kd?this.kd.toString():"null")+" --> "+(this.qd?this.qd.toString():"null"))),y},nl.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},nl.prototype.commit=function(){},nl.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},xe.Object.defineProperties(nl.prototype,{network:{get:function(){return this.nb},set:function(a){this.nb=a}},data:{get:function(){return this.ub},set:function(a){this.ub!==a&&(this.ub=a)}},link:{get:function(){return this.$k},set:function(a){this.$k!==a&&(this.$k=a)}},fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}}}),nl.prototype.getOtherVertex=nl.prototype.Ax,nl.className="LayoutEdge";function $a(a){ea.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new zt(NaN,NaN).freeze(),this.tf=new zt(10,10).freeze(),this.Jb=pp,this.Rb=s0,this.nd=mp,this.hd=gS,a&&Object.assign(this,a)}ye($a,ea),$a.prototype.cloneProtected=function(a){ea.prototype.cloneProtected.call(this,a),a.zo=this.zo,a.yo=this.yo,a.yg.assign(this.yg),a.tf.assign(this.tf),a.Jb=this.Jb,a.Rb=this.Rb,a.nd=this.nd,a.hd=this.hd},$a.prototype.qb=function(a){a.classType===$a?a===mp||a===u0||a===uy||a===l0?this.sorting=a:a===s0||a===lu?this.arrangement=a:a===pp||a===a0?this.alignment=a:ee("Unknown enum value: "+a):ea.prototype.qb.call(this,a)},$a.prototype.doLayout=function(a){this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var y=this.ex(a);a=this.diagram;for(var x=y.copy().iterator;x.next();){var E=x.value;if(!E.ph()||E.fromNode===null&&E.toNode===null){if(E.Va(),E instanceof Tr)for(E=E.memberParts;E.next();)y.remove(E.value)}else y.remove(E)}var b=y.Fa();if(b.length!==0){switch(this.sorting){case l0:b.reverse();break;case mp:b.sort(this.comparer);break;case u0:b.sort(this.comparer),b.reverse()}var z=this.wrappingColumn;isNaN(z)&&(z=0);var tt=this.wrappingWidth;switch(isNaN(tt)&&a!==null?(y=a.padding,tt=Math.max(a.viewportBounds.width-y.left-y.right,0)):tt=Math.max(this.wrappingWidth,0),0>=z&&0>=tt&&(z=1),y=this.spacing.width,isFinite(y)||(y=0),x=this.spacing.height,isFinite(x)||(x=0),a!==null&&a.Ea("Layout"),E=[],this.alignment){case a0:var rt=y,ot=x,st=ue.alloc(),ut=Math.max(this.cellSize.width,1);if(!isFinite(ut))for(var ft=ut=0;ft<b.length;ft++){var vt=this.ni(b[ft],st);ut=Math.max(ut,vt.width)}if(ut=Math.max(ut+rt,1),ft=Math.max(this.cellSize.height,1),!isFinite(ft))for(vt=ft=0;vt<b.length;vt++){var xt=this.ni(b[vt],st);ft=Math.max(ft,xt.height)}ft=Math.max(ft+ot,1),vt=this.arrangement;for(var Pt=xt=this.arrangementOrigin.x,Ft=this.arrangementOrigin.y,Xt=0,Wt=0,oe=0;oe<b.length;oe++){var le=b[oe],ce=this.ni(le,st),Ae=Math.ceil((ce.width+rt)/ut)*ut,Je=Math.ceil((ce.height+ot)/ft)*ft;switch(vt){case lu:var Ci=Math.abs(Pt-ce.width);break;default:Ci=Pt+ce.width}switch((0<z&&Xt>z-1||0<tt&&0<Xt&&Ci-xt>tt)&&(E.push(new ue(0,Ft,tt+rt,Wt)),Xt=0,Pt=xt,Ft+=Wt,Wt=0),Wt=Math.max(Wt,Je),vt){case lu:ce=-ce.width;break;default:ce=0}switch(le.moveTo(Pt+ce,Ft),vt){case lu:Pt-=Ae;break;default:Pt+=Ae}Xt++}E.push(new ue(0,Ft,tt+rt,Wt)),ue.free(st);break;case pp:for(ot=tt,ut=z,ft=y,vt=x,tt=ue.alloc(),xt=Math.max(this.cellSize.width,1),z=Ft=st=0,rt=Bt.alloc(),Pt=0;Pt<b.length;Pt++)Wt=b[Pt],Xt=this.ni(Wt,tt),Wt=Dh(Wt,Wt.locationObject,Wt.locationSpot,rt),st=Math.max(st,Wt.x),Ft=Math.max(Ft,Xt.width-Wt.x),z=Math.max(z,Wt.y);switch(Pt=this.arrangement,Pt){case lu:st+=ft;break;default:Ft+=ft}xt=isFinite(xt)?Math.max(xt+ft,1):Math.max(st+Ft,1);var Wi=Wt=this.arrangementOrigin.x;for(oe=this.arrangementOrigin.y,Ft=0,ot>=st&&(ot-=st),st=le=0,Ae=Math.max(this.cellSize.height,1),ce=z=0,Je=!0,Xt=Bt.alloc(),Ci=0;Ci<b.length;Ci++){var Ni=b[Ci],li=this.ni(Ni,tt),Tn=Dh(Ni,Ni.locationObject,Ni.locationSpot,rt);if(0<Ft)switch(Pt){case lu:Wi=(Wi-Wt-(li.width-Tn.x))/xt,Wi=me.$(Math.round(Wi),Wi)?Math.round(Wi):Math.floor(Wi),Wi=Wi*xt+Wt;break;default:Wi=(Wi-Wt+Tn.x)/xt,Wi=me.$(Math.round(Wi),Wi)?Math.round(Wi):Math.ceil(Wi),Wi=Wi*xt+Wt}else switch(Pt){case lu:le=Wi+Tn.x+li.width;break;default:le=Wi-Tn.x}switch(Pt){case lu:var Nr=-(Wi+Tn.x)+le;break;default:Nr=Wi+li.width-Tn.x-le}if(0<ut&&Ft>ut-1||0<ot&&0<Ft&&Nr>ot){for(E.push(new ue(0,Je?oe-z:oe,ot+ft,ce+z+vt)),Wi=0;Wi<Ft&&Ci!==Ft;Wi++){Nr=b[Ci-Ft+Wi];var Er=Dh(Nr,Nr.locationObject,Nr.locationSpot,Xt);Nr.moveTo(Nr.position.x,Nr.position.y+z-Er.y)}ce+=vt,oe=Je?oe+ce:oe+(ce+z),Ft=ce=z=0,Wi=Wt,Je=!1}switch(Wi===Wt&&(st=Pt===lu?Math.max(st,li.width-Tn.x):Math.min(st,-Tn.x)),z=Math.max(z,Tn.y),ce=Math.max(ce,li.height-Tn.y),isFinite(Ae)&&(ce=Math.max(ce,Math.max(li.height,Ae)-Tn.y)),Je?Ni.moveTo(Wi-Tn.x,oe-Tn.y):Ni.moveTo(Wi-Tn.x,oe),Pt){case lu:Wi-=Tn.x+ft;break;default:Wi+=li.width-Tn.x+ft}Ft++}if(E.push(new ue(0,oe,ot+ft,(Je?ce:ce+z)+vt)),b.length!==Ft)for(ot=0;ot<Ft;ot++)ut=b[b.length-Ft+ot],ft=Dh(ut,ut.locationObject,ut.locationSpot,rt),ut.moveTo(ut.position.x,ut.position.y+z-ft.y);if(Bt.free(rt),Bt.free(Xt),Pt===lu)for(b=0;b<E.length;b++)z=E[b],z.width+=st,z.x-=st;else for(b=0;b<E.length;b++)z=E[b],z.x>st&&(z.width+=z.x-st,z.x=st);ue.free(tt)}for(rt=z=tt=b=0;rt<E.length;rt++)ot=E[rt],b=Math.min(b,ot.x),tt=Math.min(tt,ot.y),z=Math.max(z,ot.x+ot.width);this.arrangement===lu?this.commitLayers(E,new Bt(b+y/2-(z+b),tt-x/2)):this.commitLayers(E,new Bt(b-y/2,tt-x/2)),a!==null&&a.eb("Layout"),this.isValidLayout=!0}},$a.prototype.commitLayers=function(){};function gS(a,y){return a=a.text,y=y.text,a<y?-1:a>y?1:0}xe.Object.defineProperties($a.prototype,{wrappingWidth:{get:function(){return this.zo},set:function(a){this.zo!==a&&(0<a||isNaN(a))&&(this.zo=a,this.isViewportSized=isNaN(a),this.C())}},wrappingColumn:{get:function(){return this.yo},set:function(a){this.yo!==a&&(0<a||isNaN(a))&&(this.yo=a,this.C())}},cellSize:{get:function(){return this.yg},set:function(a){this.yg.D(a)||(this.yg.assign(a),this.C())}},spacing:{get:function(){return this.tf},set:function(a){this.tf.D(a)||(this.tf.assign(a),this.C())}},alignment:{get:function(){return this.Jb},set:function(a){this.Jb===a||a!==pp&&a!==a0||(this.Jb=a,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==s0&&a!==lu||(this.Rb=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==uy&&a!==l0&&a!==mp&&a!==u0||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}}});var a0=new dn($a,"Position",0),pp=new dn($a,"Location",1),s0=new dn($a,"LeftToRight",2),lu=new dn($a,"RightToLeft",3),uy=new dn($a,"Forward",4),l0=new dn($a,"Reverse",5),mp=new dn($a,"Ascending",6),u0=new dn($a,"Descending",7);$a.className="GridLayout",$a.standardComparer=gS,$a.smartComparer=function(a,y){if(a!==null){if(y!==null){a=a.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),y=y.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/);for(var x=0;x<a.length;x++)if(y[x]!==""&&y[x]!==void 0){var E=parseFloat(a[x]),b=parseFloat(y[x]);if(isNaN(E))if(isNaN(b)){if(a[x].localeCompare(y[x])!==0)return a[x].localeCompare(y[x])}else return 1;else{if(isNaN(b))return-1;if(E-b!==0)return E-b}}else if(a[x]!=="")return 1;return y[x]!==""&&y[x]!==void 0?-1:0}return 1}return y!==null?-1:0},$a.Position=a0,$a.Location=pp,$a.LeftToRight=s0,$a.RightToLeft=lu,$a.Forward=uy,$a.Reverse=l0,$a.Ascending=mp,$a.Descending=u0;function Co(){this.On=new xn,this.Dn=new xn,this.Pa=new xn,this.cf=new on,this.bf=new on,this.aj=new on,this.H=null,this.tp=!1}Ct=Co.prototype,Ct.clear=function(){this.On.clear(),this.Dn.clear(),this.Pa.clear(),this.cf.clear(),this.bf.clear(),this.aj.clear()},Ct.Xe=function(a){this.H=a},Ct.oi=function(a){if(a instanceof bi){if(this.On.add(a),a instanceof Tr){var y=a.containingGroup;y===null?this.H.ai.add(a):y.gl.add(a),y=a.layout,y!==null&&(y.diagram=this.H)}}else a instanceof di?this.Dn.add(a):a instanceof uo||this.Pa.add(a);y=a.data,y===null||a instanceof uo||(a instanceof di?this.bf.add(y,a):this.cf.add(y,a))},Ct.pc=function(a){if(a.Ej(),a instanceof bi){if(this.On.remove(a),a instanceof Tr){var y=a.containingGroup;y===null?this.H.ai.remove(a):y.gl.remove(a),y=a.layout,y!==null&&(y.diagram=null)}}else a instanceof di?this.Dn.remove(a):a instanceof uo||this.Pa.remove(a);y=a.data,y===null||a instanceof uo||(a instanceof di?this.bf.remove(y):this.cf.remove(y))},Ct.Wd=function(){var a=this.H;if(a!==null){for(var y=a.nodeTemplateMap.iterator;y.next();){var x=y.value,E=y.key;(!x.Zc()||x instanceof Tr)&&ee('Invalid node template in Diagram.nodeTemplateMap: template for "'+E+'" must be a Node or a simple Part, not a Group or Link: '+x)}for(y=a.groupTemplateMap.iterator;y.next();)x=y.value,E=y.key,x instanceof Tr||ee('Invalid group template in Diagram.groupTemplateMap: template for "'+E+'" must be a Group, not a normal Node or Link: '+x);for(y=a.linkTemplateMap.iterator;y.next();)x=y.value,E=y.key,x instanceof di||ee('Invalid link template in Diagram.linkTemplateMap: template for "'+E+'" must be a Link, not a normal Node or simple Part: '+x);for(y=xi(),x=a.selection.iterator;x.next();)(E=x.value.data)&&y.push(E);for(x=xi(),a=a.highlighteds.iterator;a.next();)(E=a.value.data)&&x.push(E);for(a=xi(),E=this.nodes.iterator;E.next();){var b=E.value;b.data!==null&&(a.push(b.data),a.push(b.location))}for(E=this.links.iterator;E.next();)b=E.value,b.data!==null&&(a.push(b.data),a.push(b.location));for(E=this.parts.iterator;E.next();)b=E.value,b.data!==null&&(a.push(b.data),a.push(b.location));for(this.removeAllModeledParts(),this.addAllModeledParts(),E=0;E<y.length;E++)b=this.Lc(y[E]),b!==null&&(b.isSelected=!0);for(E=0;E<x.length;E++)b=this.Lc(x[E]),b!==null&&(b.isHighlighted=!0);for(E=0;E<a.length;E+=2)b=this.Lc(a[E]),b!==null&&(b.location=a[E+1]);gi(y),gi(x),gi(a)}},Co.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},Co.prototype.addModeledParts=function(a,y){var x=this,E=this.diagram.model;a.forEach(function(b){E.lb(b)&&pS(x,b,!1)}),a.forEach(function(b){E.lb(b)&&x.resolveReferencesForData(b)}),y!==!1&&Sf(this.diagram,!1)};function pS(a,y,x){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.cf.contains(y)){x===void 0&&(x=!0);t:{if(y!=null&&!a.H.undoManager.isUndoingRedoing&&!a.cf.contains(y)){var E=a.Ro(y),b=mS(a,y,E);if(b!==null&&(jl(b),b=b.copy(),b!==null)){var z=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,b.Tf=E,b.ub=y,a.tp&&(b.Jg="Tool"),a.diagram.add(b),b.ub=null,b.data=y,a.diagram.skipsModelSourceBindings=z,E=b;break t}}E=null}E!==null&&x&&a.resolveReferencesForData(y)}}Co.prototype.insertLink=function(){return null},Co.prototype.resolveReferencesForData=function(){},Co.prototype.Ro=function(a){return this.H.model.Ro(a)};function mS(a,y,x){a=a.H;var E=a.model;return E.Xj()&&E.Yu(y)?(y=a.groupTemplateMap.I(x),y===null&&(y=a.groupTemplateMap.I(""),y===null&&(SS||(SS=!0,_n('No Group template found for category "'+x+'"'),_n(" Using default group template")),y=a.ly))):(y=a.nodeTemplateMap.I(x),y===null&&(y=a.nodeTemplateMap.I(""),y===null&&(yS||(yS=!0,_n('No Node template found for category "'+x+'"'),_n(" Using default node template")),y=a.ny))),y}Co.prototype.getLinkCategoryForData=function(){return""},Co.prototype.setLinkCategoryForData=function(){},Co.prototype.setFromNodeForLink=function(){},Co.prototype.setToNodeForLink=function(){},Co.prototype.findLinkTemplateForCategory=function(a){var y=this.H,x=y.linkTemplateMap.I(a);return x===null&&(x=y.linkTemplateMap.I(""),x===null&&(xS||(xS=!0,_n('No Link template found for category "'+a+'"'),_n(" Using default link template")),x=y.my)),x},Co.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},Co.prototype.Gs=function(a){var y=this;a.forEach(function(x){y.ip(x)})},Co.prototype.ip=function(a){a=this.Lc(a),a!==null&&(Fg(this.diagram,a,!1),this.unresolveReferencesForPart(a))},Co.prototype.unresolveReferencesForPart=function(){},Co.prototype.removeDataForLink=function(){},Co.prototype.findPartForKey=function(a){return a==null?null:(a=this.H.model.hc(a),a!==null?this.cf.I(a):null)},Co.prototype.Vb=function(a){return a==null||(a=this.H.model.hc(a),a===null)?null:(a=this.cf.I(a),a instanceof bi?a:null)},Co.prototype.findLinkForKey=function(){return null},Ct=Co.prototype,Ct.Lc=function(a){if(a===null)return null;var y=this.cf.I(a);return y!==null?y:y=this.bf.I(a)},Ct.ii=function(a){return a===null?null:(a=this.cf.I(a),a instanceof bi?a:null)},Ct.Kc=function(a){return a===null?null:this.bf.I(a)},Ct.ms=function(a){for(var y=0;y<arguments.length;++y);y=new xn;for(var x=this.On.iterator;x.next();){var E=x.value,b=E.data;if(b!==null)for(var z=0;z<arguments.length;z++){var tt=arguments[z];if(Ke(tt)&&hy(this,b,tt)){y.add(E);break}}}return y.iterator},Ct.ls=function(a){for(var y=0;y<arguments.length;++y);y=new xn;for(var x=this.Dn.iterator;x.next();){var E=x.value,b=E.data;if(b!==null)for(var z=0;z<arguments.length;z++){var tt=arguments[z];if(Ke(tt)&&hy(this,b,tt)){y.add(E);break}}}return y.iterator};function hy(a,y,x){for(var E in x){var b=y[E],z=x[E];if(Gn(z)){if(!Gn(b)||b.length<z.length)return!1;for(var tt=0;tt<b.length;tt++){var rt=z[tt];if(rt!==void 0&&!vS(a,b[tt],rt))return!1}}else if(!vS(a,b,z))return!1}return!0}function vS(a,y,x){if(typeof x=="function"){if(!x(y))return!1}else if(x instanceof RegExp){if(!y||!x.test(y.toString()))return!1}else if(Ke(y)&&Ke(x)){if(!hy(a,y,x))return!1}else if(y!==x)return!1;return!0}Co.prototype.doModelChanged=function(a){if(this.H){var y=this.H;if(a.model===y.model){var x=a.change;if(y.doModelChanged(a),y.aa){y.aa=!1;try{var E=a.modelChange;if(E!=="")if(x===To){if(E==="nodeCategory"){var b=this.Lc(a.object),z=a.newValue;b!==null&&typeof z=="string"&&(b.category=z)}else E==="nodeDataArray"&&(this.Gs(a.oldValue),this.addModeledParts(a.newValue));y.isModified=!0}else if(x===$o){var tt=a.newValue;E==="nodeDataArray"&&Ke(tt)&&pS(this,tt),y.isModified=!0}else if(x===ca){var rt=a.oldValue;E==="nodeDataArray"&&Ke(rt)&&this.ip(rt),y.isModified=!0}else x===Ma&&(E==="SourceChanged"?a.object!==null?this.updateDataBindings(a.object,a.propertyName):(this.rp(),this.updateAllTargetBindings()):E==="ModelDisplaced"&&this.Wd());else if(x===To){var ot=a.propertyName,st=a.object;st===y.model?(ot==="nodeKeyProperty"||ot==="nodeCategoryProperty")&&(y.undoManager.isUndoingRedoing||this.Wd()):this.updateDataBindings(st,ot),y.isModified=!0}else if(x===$o||x===ca){var ut=a.change===$o,ft=ut?a.newParam:a.oldParam,vt=ut?a.newValue:a.oldValue,xt=this.aj.I(a.object);if(Array.isArray(xt))for(a=0;a<xt.length;a++){var Pt=xt[a];if(ut)Mm(Pt,vt,ft,!0);else if(!(0>ft)){var Ft=ft+Qg(Pt);Pt.pc(Ft,!0),Ev(Pt,Ft,ft)}}y.isModified=!0}}finally{y.aa=!0}}}}},Co.prototype.updateAllTargetBindings=function(a){a===void 0&&(a="");for(var y=this.parts.iterator;y.next();)y.value.La(a);for(y=this.nodes.iterator;y.next();)y.value.La(a);for(y=this.links.iterator;y.next();)y.value.La(a)},Co.prototype.rp=function(){for(var a=this.H.model,y=new xn,x=a.nodeDataArray,E=0;E<x.length;E++)y.add(x[E]);var b=[];for(this.nodes.each(function(tt){tt.data===null||y.contains(tt.data)||b.push(tt.data)}),this.parts.each(function(tt){tt.data===null||y.contains(tt.data)||b.push(tt.data)}),b.forEach(function(tt){kS(a,tt,!1)}),E=0;E<x.length;E++){var z=x[E];this.Lc(z)===null&&MS(a,z,!1)}for(this.refreshDataBoundLinks(),x=this.parts.iterator;x.next();)x.value.updateRelationshipsFromData();for(x=this.nodes.iterator;x.next();)x.value.updateRelationshipsFromData();for(x=this.links.iterator;x.next();)x.value.updateRelationshipsFromData()},Co.prototype.refreshDataBoundLinks=function(){},Co.prototype.updateRelationshipsFromData=function(){},Co.prototype.updateDataBindings=function(a,y){if(typeof y=="string"){var x=this.Lc(a);if(x!==null)x.La(y);else{x=null;for(var E=this.aj.iterator;E.next();){for(var b=E.value,z=0;z<b.length;z++){var tt=b[z].sx(a);tt!==null&&(x===null&&(x=xi()),x.push(tt))}if(x!==null)break}if(x!==null){for(E=0;E<x.length;E++)x[E].La(y);gi(x)}}a===this.diagram.model.modelData&&this.updateAllTargetBindings(y)}};function dy(a,y){var x=y.Hh;if(Gn(x)){var E=a.aj.I(x);if(E===null)E=[],E.push(y),a.aj.add(x,E);else{for(a=0;a<E.length;a++)if(E[a]===y)return;E.push(y)}}}function cy(a,y,x){Qd(y,function(tt){tt=tt.O.s;for(var rt=tt.length,ot=0;ot<rt;ot++)Og(x,tt[ot])});var E=y.Hh;if(Gn(E)){var b=a.aj.I(E);if(b!==null){for(var z=0;z<b.length;z++)if(b[z]===y){b.splice(z,1),b.length===0&&a.aj.remove(E);break}}}}Co.prototype.Kj=function(a,y,x){x===void 0&&(x=!1);var E=new on;if(Gn(a))for(var b=0;b<a.length;b++)h0(this,a[b],y,E,x);else for(a=a.iterator;a.next();)h0(this,a.value,y,E,x);if(y!==null){x=y.model,a=y.toolManager.findTool("Dragging"),a=a!==null?a.dragOptions.dragsLink:y.Wm.dragsLink,b=new xn;for(var z=new on,tt=E.iterator;tt.next();){var rt=tt.value;if(rt instanceof di)a||rt.fromNode!==null&&rt.toNode!==null||b.add(rt);else if(rt instanceof bi&&rt.data!==null&&x.Tl()){var ot=rt;rt=tt.key;var st=rt.pg();st!==null&&(st=E.I(st),st!==null?(x.qe(ot.data,x.wa(st.data)),ot=y.Kc(ot.data),rt=rt.kh(),rt!==null&&ot!==null&&z.add(rt,ot)):x.qe(ot.data,void 0))}}if(0<b.count&&y.Is(b,!1),0<z.count)for(x=z.iterator;x.next();)E.add(x.key,x.value)}if(y!==null&&this.H!==null&&(y=y.model,x=y.afterCopyFunction,x!==null)){var ut=new on;E.each(function(ft){ft.key.data!==null&&ut.add(ft.key.data,ft.value.data)}),x(ut,y,this.H.model)}for(y=E.iterator;y.next();)y.value.La();return E};function h0(a,y,x,E,b){if(y===null||b&&!y.canCopy())return null;if(E.contains(y))return E.I(y);var z=a.copyPartData(y,x);if(!(z instanceof rr))return null;if(z.isSelected=!1,z.isHighlighted=!1,E.add(y,z),y instanceof bi){for(var tt=y.linksConnected;tt.next();){var rt=tt.value;if(rt.fromNode===y){var ot=E.I(rt);ot!==null&&(ot.fromNode=z)}rt.toNode===y&&(rt=E.I(rt),rt!==null&&(rt.toNode=z))}if(y instanceof Tr&&z instanceof Tr)for(y=y.memberParts;y.next();)tt=h0(a,y.value,x,E,b),tt instanceof di||tt===null||(tt.containingGroup=z)}else if(y instanceof di&&z instanceof di)for(tt=y.fromNode,tt!==null&&(tt=E.I(tt),tt!==null&&(z.fromNode=tt)),tt=y.toNode,tt!==null&&(tt=E.I(tt),tt!==null&&(z.toNode=tt)),y=y.labelNodes;y.next();)tt=h0(a,y.value,x,E,b),tt!==null&&tt instanceof bi&&(tt.labeledLink=z);return z}Co.prototype.copyPartData=function(a,y){var x=null,E=a.data;if(E!==null&&y!==null){var b=y.model;a instanceof di||(E=b.copyNodeData(E),Ke(E)&&(b.xf(E),x=y.Lc(E)))}else jl(a),x=a.copy(),x!==null&&(b=this.H,y!==null?y.add(x):E!==null&&b!==null&&b.commandHandler!==null&&b.commandHandler.copiesClipboardData&&(y=b.model,b=null,x instanceof di||(b=y.copyNodeData(E)),Ke(b)&&(x.data=b)));return x},xe.Object.defineProperties(Co.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(a){this.tp=a}}}),Co.prototype.updateAllRelationshipsFromData=Co.prototype.rp,Co.prototype.findLinksByExample=Co.prototype.ls,Co.prototype.findNodesByExample=Co.prototype.ms,Co.prototype.findLinkForData=Co.prototype.Kc,Co.prototype.findNodeForData=Co.prototype.ii,Co.prototype.findPartForData=Co.prototype.Lc,Co.prototype.findNodeForKey=Co.prototype.Vb,Co.prototype.removeModeledPart=Co.prototype.ip,Co.prototype.removeModeledParts=Co.prototype.Gs,Co.prototype.rebuildParts=Co.prototype.Wd;var yS=!1,SS=!1,xS=!1;Co.className="PartManager";function Ga(a){Co.apply(this,arguments)}ye(Ga,Co),Ga.prototype.addAllModeledParts=function(){var a=this.diagram.model;this.addModeledParts(a.nodeDataArray),wS(this,a.linkDataArray)},Ga.prototype.addModeledParts=function(a){for(Co.prototype.addModeledParts.call(this,a,!1),a=this.links.iterator;a.next();)Wf(a.value);Sf(this.diagram,!1)};function wS(a,y){y.forEach(function(x){PS(a,x)}),Sf(a.diagram,!1)}function PS(a,y){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.bf.contains(y)){var x=a.getLinkCategoryForData(y),E=a.findLinkTemplateForCategory(x);if(E!==null){jl(E);var b=E.copy();if(b!==null){E=a.diagram.skipsModelSourceBindings,a.diagram.skipsModelSourceBindings=!0,b.Tf=x,b.ub=y,x=a.diagram.model;var z=g0(x,y,!0);z!==""&&(b.fromPortId=z),z=fl(x,y,!0),z!==void 0&&(z=a.Vb(z),z instanceof bi&&(b.fromNode=z)),z=g0(x,y,!1),z!==""&&(b.toPortId=z),z=fl(x,y,!1),z!==void 0&&(z=a.Vb(z),z instanceof bi&&(b.toNode=z)),x=x.Ef(y),Array.isArray(x)&&x.forEach(function(tt){tt=a.Vb(tt),tt!==null&&(tt.labeledLink=b)}),a.tp&&(b.Jg="Tool"),a.diagram.add(b),b.ub=null,b.data=y,a.diagram.skipsModelSourceBindings=E}}}}Ga.prototype.removeAllModeledParts=function(){var a=this.diagram.model;CS(this,a.linkDataArray),this.Gs(a.nodeDataArray)};function CS(a,y){y.forEach(function(x){a.ip(x)})}Ga.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ps(a)},Ga.prototype.setLinkCategoryForData=function(a,y){return this.diagram.model.lp(a,y)},Ga.prototype.setFromNodeForLink=function(a,y){var x=this.diagram.model;x.wv(a.data,x.wa(y!==null?y.data:null))},Ga.prototype.setToNodeForLink=function(a,y){var x=this.diagram.model;x.Bv(a.data,x.wa(y!==null?y.data:null))},Ga.prototype.removeDataForLink=function(a){this.diagram.model.bm(a.data)},Ga.prototype.findPartForKey=function(a){var y=Co.prototype.findPartForKey.call(this,a);return y===null&&(a=this.diagram.model.jh(a),a!==null)?this.bf.I(a):y},Ga.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.jh(a),a!==null?this.bf.I(a):null)},Ga.prototype.doModelChanged=function(a){var y=this;if(Co.prototype.doModelChanged.call(this,a),this.diagram){var x=this.diagram;if(a.model===x.model){var E=a.change;if(x.aa){x.aa=!1;try{var b=a.modelChange;if(b!==""){if(E===To){if(b==="linkFromKey"){var z=this.Kc(a.object);if(z!==null){var tt=this.Vb(a.newValue);z.fromNode=tt}}else if(b==="linkToKey"){var rt=this.Kc(a.object);if(rt!==null){var ot=this.Vb(a.newValue);rt.toNode=ot}}else if(b==="linkFromPortId"){var st=this.Kc(a.object);if(st!==null){var ut=a.newValue;typeof ut=="string"&&(st.fromPortId=ut)}}else if(b==="linkToPortId"){var ft=this.Kc(a.object);if(ft!==null){var vt=a.newValue;typeof vt=="string"&&(ft.toPortId=vt)}}else if(b==="nodeGroupKey"){var xt=this.Lc(a.object);if(xt!==null){var Pt=a.newValue;if(Pt!==void 0){var Ft=this.Vb(Pt);Ft instanceof Tr?xt.containingGroup=Ft:xt.containingGroup=null}else xt.containingGroup=null}}else if(b==="linkLabelKeys"){var Xt=this.Kc(a.object);if(Xt!==null){var Wt=a.oldValue,oe=a.newValue;Array.isArray(Wt)&&Wt.forEach(function(Tn){0<=oe.indexOf(Tn)||(Tn=y.Vb(Tn),Tn!==null&&(Tn.labeledLink=null))}),Array.isArray(oe)&&oe.forEach(function(Tn){Tn=y.Vb(Tn),Tn!==null&&(Tn.labeledLink=Xt)})}}else if(b==="linkCategory"){var le=this.Kc(a.object),ce=a.newValue;le!==null&&typeof ce=="string"&&(le.category=ce)}else b==="linkDataArray"&&(CS(this,a.oldValue),wS(this,a.newValue));x.isModified=!0}else if(E===$o){var Ae=a.newValue;if(b==="linkDataArray"&&typeof Ae=="object"&&Ae!==null)PS(this,Ae);else if(b==="linkLabelKeys"&&pd(Ae)){var Je=this.Kc(a.object),Ci=this.Vb(Ae);Je!==null&&Ci!==null&&(Ci.labeledLink=Je)}x.isModified=!0}else if(E===ca){var Wi=a.oldValue;if(b==="linkDataArray"&&typeof Wi=="object"&&Wi!==null)this.ip(Wi);else if(b==="linkLabelKeys"&&pd(Wi)){var Ni=this.Vb(Wi);Ni!==null&&(Ni.labeledLink=null)}x.isModified=!0}}else if(E===To){var li=a.propertyName;a.object!==x.model||li!=="linkFromKeyProperty"&&li!=="linkToKeyProperty"&&li!=="linkFromPortIdProperty"&&li!=="linkToPortIdProperty"&&li!=="linkLabelKeysProperty"&&li!=="nodeIsGroupProperty"&&li!=="nodeGroupKeyProperty"&&li!=="linkCategoryProperty"||x.undoManager.isUndoingRedoing||this.Wd(),x.isModified=!0}}finally{x.aa=!0}}}}},Ga.prototype.refreshDataBoundLinks=function(){var a=this,y=this.diagram.model,x=new xn,E=y.linkDataArray;E.forEach(function(z){x.add(z)});var b=[];this.links.each(function(z){z.data===null||x.contains(z.data)||b.push(z.data)}),b.forEach(function(z){OS(y,z,!1)}),E.forEach(function(z){a.Kc(z)===null&&TS(y,z,!1)})},Ga.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var E=x.model;if(a instanceof di){var b=fl(E,y,!0);if(b=x.Vb(b),a.fromNode=b,b=fl(E,y,!1),b=x.Vb(b),a.toNode=b,y=E.Ef(y),0<y.length||0<a.labelNodes.count){if(y.length===1&&a.labelNodes.count===1){b=y[0];var z=a.labelNodes.first();if(E.wa(z.data)===b)return}b=new xn().addAll(y);var tt=new xn;a.labelNodes.each(function(rt){rt.data!==null&&(rt=E.wa(rt.data),rt!==void 0&&tt.add(rt))}),y=tt.copy(),y.hp(b),b=b.copy(),b.hp(tt),(0<y.count||0<b.count)&&(y.each(function(rt){rt=x.Vb(rt),rt!==null&&rt.labeledLink===a&&(rt.labeledLink=null)}),b.each(function(rt){rt=x.Vb(rt),rt!==null&&rt.labeledLink!==a&&(rt.labeledLink=a)}))}}else!(a instanceof uo)&&(y=E.lh(y),y=x.findPartForKey(y),y===null||y instanceof Tr)&&(a.containingGroup=y)}}},Ga.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var E=vp(y,x),b=this.Lc(a);if(E!==null&&b!==null){E=E.iterator;for(var z={};E.next();){var tt=E.value;y.lb(tt)?b instanceof Tr&&y.lh(tt)===x&&(tt=this.Lc(tt),tt!==null&&(tt.containingGroup=b)):(z.link=this.Kc(tt),z.link!==null&&b instanceof bi&&(fl(y,tt,!0)===x&&(z.link.fromNode=b),fl(y,tt,!1)===x&&(z.link.toNode=b),tt=y.Ef(tt),Array.isArray(tt)&&tt.some(function(rt){return function(ot){return ot===x?(b.labeledLink=rt.link,!0):!1}}(z)))),z={link:z.link}}hu(y,x)}a=y.lh(a),a!==void 0&&(a=this.Vb(a),a instanceof Tr&&(b.containingGroup=a))}},Ga.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof bi){var x=y.wa(a.data);if(x!==void 0){for(var E=a.linksConnected;E.next();)uu(y,x,E.value.data);if(a.isLinkLabel&&(E=a.labeledLink,E!==null&&uu(y,x,E.data)),a instanceof Tr)for(a=a.memberParts;a.next();)E=a.value.data,y.lb(E)&&uu(y,x,E)}}},Ga.prototype.copyPartData=function(a,y){var x=Co.prototype.copyPartData.call(this,a,y);if(a instanceof di)if(a=a.data,a!==null&&y!==null){var E=y.model;a=E.Jo(a),typeof a=="object"&&a!==null&&(E.fi(a),x=y.Kc(a))}else x!==null&&(y=this.diagram,a!==null&&y!==null&&y.commandHandler!==null&&y.commandHandler.copiesClipboardData&&(y=y.model.Jo(a),typeof y=="object"&&y!==null&&(x.data=y)));return x},Ga.prototype.insertLink=function(a,y,x,E){var b=this.diagram,z=b.model,tt=b.toolManager.findTool("Linking"),rt="";if(a!==null&&(y===null&&(y=a),rt=y.portId,rt===null&&(rt="")),y="",x!==null&&(E===null&&(E=x),y=E.portId,y===null&&(y="")),E=tt.archetypeLinkData,E instanceof di){if(jl(E),z=E.copy(),z!==null)return z.fromNode=a,z.fromPortId=rt,z.toNode=x,z.toPortId=y,b.add(z),a=tt.archetypeLabelNodeData,a instanceof bi&&(jl(a),a=a.copy(),a!==null&&(a.labeledLink=z,b.add(a))),z}else if(E!==null&&(E=z.Jo(E),typeof E=="object"&&E!==null))return a!==null&&Yf(z,E,z.wa(a.data),!0),Uf(z,E,rt,!0),x!==null&&Yf(z,E,z.wa(x.data),!1),Uf(z,E,y,!1),z.fi(E),a=tt.archetypeLabelNodeData,a===null||a instanceof bi||(a=z.copyNodeData(a),typeof a=="object"&&a!==null&&(z.xf(a),a=z.wa(a),a!==void 0&&z.Bu(E,a))),b.Kc(E);return null},Ga.prototype.findLinkForKey=Ga.prototype.findLinkForKey,Ga.prototype.findPartForKey=Ga.prototype.findPartForKey,Ga.prototype.removeAllModeledParts=Ga.prototype.removeAllModeledParts,Ga.prototype.addModeledParts=Ga.prototype.addModeledParts,Ga.prototype.addAllModeledParts=Ga.prototype.addAllModeledParts,Ga.className="GraphLinksPartManager";function bl(){Co.apply(this,arguments),this.Sg=null}ye(bl,Co);function d0(a,y,x){if(y!==null&&x!==null&&x.kh()===null){var E=a.diagram.toolManager.findTool("Linking"),b=y,z=x;if(a.diagram.isTreePathToChildren||(b=x,z=y),(E===null||!Mo(E,b,z,null,!0))&&(y=a.getLinkCategoryForData(x.data),E=a.findLinkTemplateForCategory(y),E!==null&&(jl(E),E=E.copy(),E!==null))){var tt=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,E.Tf=y,E.ub=x.data,E.fromNode=b,E.toNode=z,a.diagram.add(E),E.ub=null,E.data=x.data,a.diagram.skipsModelSourceBindings=tt}}}bl.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ss(a)},bl.prototype.setLinkCategoryForData=function(a,y){this.diagram.model.Ms(a,y)},bl.prototype.setFromNodeForLink=function(a,y,x){var E=this.diagram.model;if(x===void 0&&(x=null),y=y!==null?y.data:null,this.diagram.isTreePathToChildren)E.qe(a.data,E.wa(y));else{var b=this.Sg;this.Sg=a,x!==null&&E.qe(x.data,void 0),E.qe(y,E.wa(a.toNode!==null?a.toNode.data:null)),this.Sg=b}},bl.prototype.setToNodeForLink=function(a,y,x){var E=this.diagram.model;if(x===void 0&&(x=null),y=y!==null?y.data:null,this.diagram.isTreePathToChildren){var b=this.Sg;this.Sg=a,x!==null&&E.qe(x.data,void 0),E.qe(y,E.wa(a.fromNode!==null?a.fromNode.data:null)),this.Sg=b}else E.qe(a.data,E.wa(y))},bl.prototype.removeDataForLink=function(a){this.diagram.model.qe(a.data,void 0)},bl.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.hc(a),a!==null?this.bf.I(a):null)},bl.prototype.doModelChanged=function(a){if(Co.prototype.doModelChanged.call(this,a),this.diagram){var y=this.diagram;if(a.model===y.model){var x=a.change;if(y.aa){y.aa=!1;try{var E=a.modelChange;if(E!==""){if(x===To){if(E==="nodeParentKey"){var b=a.object,z=this.Vb(a.newValue),tt=this.ii(b);if(this.Sg!==null)z!==null&&(this.Sg.data=b,this.Sg.category=this.getLinkCategoryForData(b));else if(tt!==null){var rt=tt.kh();rt!==null?z===null?y.remove(rt):y.isTreePathToChildren?rt.fromNode=z:rt.toNode=z:d0(this,z,tt)}}else if(E==="parentLinkCategory"){var ot=this.ii(a.object),st=a.newValue;if(ot!==null&&typeof st=="string"){var ut=ot.kh();ut!==null&&(ut.category=st)}}y.isModified=!0}}else if(x===To){var ft=a.propertyName;a.object===y.model&&ft==="nodeParentKeyProperty"&&(y.undoManager.isUndoingRedoing||this.Wd()),y.isModified=!0}}finally{y.aa=!0}}}}},bl.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var E=x.model;a instanceof bi&&(y=E.mh(y),y=x.Vb(y),E=a.pg(),y!==E&&(E=a.kh(),y!==null?E!==null?x.isTreePathToChildren?E.fromNode=y:E.toNode=y:d0(this,y,a):E!==null&&Fg(x,E,!1)))}}},bl.prototype.updateDataBindings=function(a,y){Co.prototype.updateDataBindings.call(this,a,y),typeof y=="string"&&this.Lc(a)!==null&&(a=this.Kc(a),a!==null&&a.La(y))},bl.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var E=vp(y,x),b=this.Lc(a);if(E!==null&&b!==null){for(E=E.iterator;E.next();){var z=E.value;y.lb(z)&&b instanceof bi&&y.mh(z)===x&&d0(this,b,this.ii(z))}hu(y,x)}a=y.mh(a),a!==void 0&&b instanceof bi&&(a=this.Vb(a),d0(this,a,b))}},bl.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof bi){var x=y.wa(a.data),E=this.Kc(a.data);if(E!==null){E.isSelected=!1,E.isHighlighted=!1;var b=E.layer;if(b!==null){var z=b.pc(-1,E,!1);0<=z&&this.diagram.cb(ca,"parts",b,E,null,z,null),z=E.layerChanged,z!==null&&z(E,b,null)}}for(E=this.diagram.isTreePathToChildren,a=a.linksConnected;a.next();)b=a.value,b=(E?b.toNode:b.fromNode).data,y.lb(b)&&uu(y,x,b)}},bl.prototype.insertLink=function(a,y,x){y=this.diagram.model;var E=a,b=x;return this.diagram.isTreePathToChildren||(E=x,b=a),E!==null&&b!==null?(y.qe(b.data,y.wa(E.data)),b.kh()):null},bl.prototype.findLinkForKey=bl.prototype.findLinkForKey,bl.className="TreePartManager";function Ui(a,y){this.kl=new xn,this.il=new xn,this.Wv=`,
"insertedNodeKeys": `,this.jy=`,
"modifiedNodeData": `,this.Yv=`,
"removedNodeKeys": `,this.vh=null,wi(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new on,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 on,this.Lt=new cn,this.Wg=!1,this.o=null,this.undoManager=new qo,a!==void 0&&(Gn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}Ui.prototype.cloneProtected=function(a){a.xa=this.xa,a.Sm=this.Sm,a.Gg=this.Gg,a.Th=this.Th,a.bl=this.bl,a.Bk=this.Bk,a.Km=this.Km,a.Jm=this.Jm,a.Mm=this.Mm,a.xm=this.xm,a.lj=this.lj},Ui.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Ui.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},Ui.prototype.toString=function(a){if(a===void 0&&(a=0),1<a)return this.np();var y=(this.name!==""?this.name:"")+" Model";if(0<a){y+=`
node data:`,a=this.nodeDataArray;for(var x=a.length,E=0;E<x;E++){var b=a[E];y+=" "+this.wa(b)+":"+Zi(b)}}return y},Ui.prototype.xA=function(a){a.change!==Ma&&ee("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+a.toString());var y=a.object;return a.isTransactionFinished&&y instanceof va?(AS(this,y),a=this.Qv(y,a.propertyName==="FinishedUndo"),this.vh=null,a):null},Ui.prototype.Qv=function(a,y){var x=this,E=!1,b=new xn,z=new xn,tt=new xn,rt=this.vh;a.changes.each(function(ft){ft.model===x&&(ft.modelChange==="nodeDataArray"?ft.change===$o?b.add(ft.newValue):ft.change===ca&&tt.add(ft.oldValue):x.lb(ft.object)?z.add(ft.object):ft.change!==To||x.modelData!==ft.object&&ft.propertyName!=="modelData"?ft.object!==null&&(rt&&rt.contains(ft.object)?rt.get(ft.object).each(function(vt){x.lb(vt)&&z.add(vt)}):ft.object instanceof Ui||x.ri()&&x.Jc(ft.object)||LS(x,ft.object).each(function(vt){z.add(vt)})):E=!0)});var ot=this.il;ot.clear(),b.each(function(ft){ot.add(x.wa(ft)),y||z.add(ft)});var st=this.kl;st.clear(),tt.each(function(ft){st.add(x.wa(ft)),y&&z.add(ft)}),a=x.cloneDeep(z.Fa());var ut=null;return E&&(ut===null&&(ut={}),ut.modelData=this.cloneDeep(this.modelData)),0<ot.count&&(ut===null&&(ut={}),y?ut.removedNodeKeys=ot.Fa():ut.insertedNodeKeys=ot.Fa()),0<a.length&&(ut===null&&(ut={}),ut.modifiedNodeData=a),0<st.count&&(ut===null&&(ut={}),y?ut.insertedNodeKeys=st.Fa():ut.removedNodeKeys=st.Fa()),st.clear(),ot.clear(),ut},Ui.prototype.cloneDeep=function(a){return Kf(this,a,!0)};function Kf(a,y,x,E,b,z){function tt(ft,vt){rt?(ft.__gohashid===void 0&&z.push(ft),E.set(ft,vt)):(ft=ao++,E.set(ft,vt),b.set(ft,y))}if(!Ke(y))return y;z||(z=[]);var rt=Object.isExtensible(y);if(E||(E=new on),rt){var ot=E.get(y);if(ot)return ot}else for(b||(b=new on),ot=b.iterator;ot.next();){var st=ot.key;if(ot.value===y&&(st=E.get(st)))return st}if(Array.isArray(y)){ot=[],tt(y,ot);for(var ut=0;ut<y.length;ut++)ot.push(Kf(a,y[ut],!1,E,b,z))}else if(y instanceof Bt||y instanceof zt||y instanceof ue||y instanceof Di||y instanceof Mn)ot=y.copy(),tt(y,ot);else{if(y instanceof wo||y instanceof Wn||y instanceof dn)return y;if(y instanceof cn)ot=new cn().addAll(Kf(a,y.Fa(),!1,E,b,z)),tt(y,ot);else if(y instanceof xn)ot=new xn().addAll(Kf(a,y.Fa(),!1,E,b,z)),tt(y,ot);else if(y instanceof on)ot=new on().addAll(Kf(a,y.Fa(),!1,E,b,z)),tt(y,ot);else if(y instanceof Date)ot=new Date(y.getTime()),tt(y,ot);else if(y instanceof RegExp)ot=new RegExp(y),tt(y,ot),ot.lastIndex=y.lastIndex;else if(typeof y.copy=="function")ot=y.copy(),tt(y,ot);else for(ut in ot={},tt(y,ot),y)ut!=="__gohashid"&&(ot[ut]=Kf(a,y[ut],!1,E,b,z))}return x&&z.forEach(function(ft){delete ft.__gohashid}),ot}Ct=Ui.prototype,Ct.quote=function(a){return JSON.stringify(a).replace(/[\u007F-\uFFFF]/g,function(y){return"\\u"+("0000"+y.charCodeAt(0).toString(16)).substr(-4)})},Ct.rm=function(){var a="";return this.name!==""&&(a+=`,
"name": `+this.quote(this.name)),this.dataFormat!==""&&(a+=`,
"dataFormat": `+this.quote(this.dataFormat)),this.isReadOnly&&(a+=`,
"isReadOnly": `+this.isReadOnly),this.nodeKeyProperty!=="key"&&typeof this.nodeKeyProperty=="string"&&(a+=`,
"nodeKeyProperty": `+this.quote(this.nodeKeyProperty)),this.copiesArrays&&(a+=`,
"copiesArrays": true`),this.copiesArrayObjects&&(a+=`,
"copiesArrayObjects": true`),this.copiesKey||(a+=`,
"copiesKey": false`),this.nodeCategoryProperty!=="category"&&typeof this.nodeCategoryProperty=="string"&&(a+=`,
"nodeCategoryProperty": `+this.quote(this.nodeCategoryProperty)),a},Ct.gp=function(a){a.name&&(this.name=a.name),a.dataFormat&&(this.dataFormat=a.dataFormat),a.isReadOnly&&(this.isReadOnly=!0),a.nodeKeyProperty&&(this.nodeKeyProperty=a.nodeKeyProperty),a.copiesArrays&&(this.copiesArrays=!0),a.copiesArrayObjects&&(this.copiesArrayObjects=!0),a.copiesKey===!1&&(this.copiesKey=!1),a.nodeCategoryProperty&&(this.nodeCategoryProperty=a.nodeCategoryProperty)};function ES(a,y){y=y.modelData,Ke(y)&&(a.dm(y),a.modelData=y)}Ct.Rv=function(){var a=this.modelData,y=!1,x;for(x in a)if(!bS(x,a[x])){y=!0;break}return a="",y&&(a=`,
"modelData": `+fy(this,this.modelData)),a+`,
"nodeDataArray": `+gd(this,this.nodeDataArray,!0)},Ct.kv=function(a){ES(this,a),a=a.nodeDataArray,Gn(a)&&(this.dm(a),this.nodeDataArray=a)};function AS(a,y){function x(b,z){if((z=z.part)&&(z=z.data,b!==z)){var tt=E.get(b);tt===null?(tt=new xn,tt.add(z),E.add(b,tt)):tt.add(z)}}var E=a.vh;E===null&&(E=new on,y.changes.each(function(b){if(b.diagram!==null){var z=b.change;z===To?(b=b.object.panel)&&(z=b.data)&&x(z,b):(z===$o||z===ca)&&(b=b.object,(z=b.itemArray)&&x(z,b))}}),a.vh=E)}function LS(a,y){for(var x=new xn,E=0;E<a.nodeDataArray.length;E++){var b=a.nodeDataArray[E];c0(a,y,b,b,x)}return x}function c0(a,y,x,E,b){if(Array.isArray(x))for(var z=0;z<x.length;z++){var tt=x[z];if(tt===y)return b.add(E),!0;if(c0(a,y,tt,E,b))return!0}else if(Ke(x)&&Object.getPrototypeOf(x)===Object.prototype)for(z in x){if(tt=x[z],tt===y)return b.add(E),!0;if(c0(a,y,tt,E,b))return!0}return!1}Ct.Pv=function(a,y){var x=this,E=!1,b=new xn,z=new xn,tt=new xn,rt=this.vh;a.changes.each(function(ut){ut.model===x&&(ut.modelChange==="nodeDataArray"?ut.change===$o?b.add(ut.newValue):ut.change===ca&&tt.add(ut.oldValue):x.lb(ut.object)?z.add(ut.object):ut.change!==To||x.modelData!==ut.object&&ut.propertyName!=="modelData"?ut.object!==null&&(rt&&rt.contains(ut.object)?rt.get(ut.object).each(function(ft){x.lb(ft)&&z.add(ft)}):ut.object instanceof Ui||x.ri()&&x.Jc(ut.object)||LS(x,ut.object).each(function(ft){z.add(ft)})):E=!0)});var ot=this.il;ot.clear(),b.each(function(ut){ot.add(x.wa(ut)),y||z.add(ut)});var st=this.kl;return st.clear(),tt.each(function(ut){st.add(x.wa(ut)),y&&z.add(ut)}),a="",E&&(a+=`,
"modelData": `+fy(this,this.modelData)),0<ot.count&&(a+=(y?this.Yv:this.Wv)+gd(this,ot.Fa(),!0)),0<z.count&&(a+=this.jy+gd(this,z.Fa(),!0)),0<st.count&&(a+=(y?this.Wv:this.Yv)+gd(this,st.Fa(),!0)),st.clear(),ot.clear(),a},Ct.fp=function(a){(a.name!==void 0&&a.name!==this.name||a.dataFormat!==void 0&&a.dataFormat!==this.dataFormat||a.isReadOnly!==void 0&&a.isReadOnly!==this.isReadOnly||a.nodeKeyProperty!==void 0&&a.nodeKeyProperty!==this.nodeKeyProperty||a.copiesArrays!==void 0&&a.copiesArrays!==this.copiesArrays||a.copiesArrayObjects!==void 0&&a.copiesArrayObjects!==this.copiesArrayObjects||a.copiesKey!==void 0&&a.copiesKey!==this.copiesKey||a.nodeCategoryProperty!==void 0&&a.nodeCategoryProperty!==this.nodeCategoryProperty)&&ee("applyIncrementalJson cannot change Model properties"),ES(this,a);var y=a.insertedNodeKeys,x=a.modifiedNodeData,E=new on;if(Array.isArray(x))for(var b=0;b<x.length;b++){var z=x[b],tt=this.wa(z);tt!=null&&E.set(tt,z)}if(Array.isArray(y))for(b=y.length,z=0;z<b;z++){tt=y[z];var rt=this.hc(tt);rt===null&&(rt=(rt=E.get(tt))?rt:this.copyNodeData({}),this.km(rt,tt),this.xf(rt))}if(Array.isArray(x)){for(y=x.length,E=0;E<y;E++)if(b=x[E],z=this.wa(b),z=this.hc(z),z!==null){for(var ot in b)ot==="__gohashid"||ot===this.nodeKeyProperty||this.Wj()&&ot===this.nodeIsGroupProperty||this.setDataProperty(z,ot,b[ot]);this.lm(b,z)}}if(a=a.removedNodeKeys,Array.isArray(a))for(x=a.length,ot=0;ot<x;ot++)y=this.hc(a[ot]),y!==null&&this.cm(y)},Ct.$x=function(a,y){a.change!==Ma&&ee("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+a.toString());var x=a.object;return a.isTransactionFinished&&x instanceof va?(y===void 0&&(y=yp(this,this)),AS(this,x),a=this.Pv(x,a.propertyName==="FinishedUndo"),this.vh=null,y==="2"?'{ "incremental": 2'+a+"}":'{ "class": '+this.quote(y)+', "incremental": 1'+this.rm()+a+"}"):'{ "incremental": 0 }'},Ct.yA=function(a,y){return this.$x(a,y)},Ct.np=function(a){return a===void 0&&(a=yp(this,this)),'{ "class": '+this.quote(a)+this.rm()+this.Rv()+"}"},Ct.toJSON=function(a){return this.np(a)},Ct.Zw=function(a){var y=null;if(typeof a=="string")try{y=Sn.JSON.parse(a)}catch(E){}else typeof a=="object"?y=a:ee("Unable to modify a Model from: "+a);var x=y.incremental;typeof x!="number"&&ee("Unable to apply non-incremental changes to Model: "+a),x!==0&&(this.Ea("applyIncrementalJson"),this.fp(y),this.eb("applyIncrementalJson"))},Ct.Ky=function(a){return this.Zw(a)},Ui.constructGraphLinksModel=function(){return new Ui},Ct=Ui.prototype,Ct.dm=function(a){if(Gn(a))for(var y=a.length,x=0;x<y;x++){var E=a[x];if(Ke(E)){var b=x;E=this.dm(E),Array.isArray(a)?a[b]=E:ee("Cannot replace an object in an HTMLCollection or NodeList at "+b)}}else if(Ke(a)){for(y in a)if(x=a[y],Ke(x)&&(x=this.dm(x),a[y]=x,y==="points"&&Array.isArray(x))){for(b=x.length%2===0,E=0;E<x.length;E++)if(typeof x[E]!="number"){b=!1;break}if(b){for(b=new cn,E=0;E<x.length/2;E++)b.add(new Bt(x[2*E],x[2*E+1]));b.freeze(),a[y]=b}}return Wx(a)}return a},Ct.sm=function(a){return a===void 0?"undefined":a===null?"null":a===!0?"true":a===!1?"false":typeof a=="string"?this.quote(a):typeof a=="number"?a===1/0?"9e9999":a===-1/0?"-9e9999":isNaN(a)?'{"class":"NaN"}':a.toString():a instanceof Date?'{"class":"Date", "value":"'+a.toJSON()+'"}':a instanceof Number?this.sm(a.valueOf()):Gn(a)?gd(this,a):Ke(a)?fy(this,a):typeof a=="function"?"null":a.toString()};function gd(a,y,x){x===void 0&&(x=!1);var E=y.length;if(0>=E)return"[]";var b=new Vi;b.add("["),x&&1<E&&b.add(`
`);for(var z=0;z<E;z++){var tt=y[z];tt!==void 0&&(0<z&&(b.add(","),x&&b.add(`
`)),b.add(a.sm(tt)))}return x&&1<E&&b.add(`
`),b.add("]"),b.toString()}function bS(a,y){return y===void 0||a==="__gohashid"||a[0]==="_"||typeof y=="function"}function Fs(a){return isNaN(a)?"NaN":a===1/0?"9e9999":a===-1/0?"-9e9999":a}function fy(a,y){var x=y;if(x instanceof Bt)y={class:"go.Point",x:Fs(x.x),y:Fs(x.y)};else if(x instanceof zt)y={class:"go.Size",width:Fs(x.width),height:Fs(x.height)};else if(x instanceof ue)y={class:"go.Rect",x:Fs(x.x),y:Fs(x.y),width:Fs(x.width),height:Fs(x.height)};else if(x instanceof Di)y={class:"go.Margin",top:Fs(x.top),right:Fs(x.right),bottom:Fs(x.bottom),left:Fs(x.left)};else if(x instanceof Mn)x.sb()?y={class:"go.Spot",x:Fs(x.x),y:Fs(x.y),offsetX:Fs(x.offsetX),offsetY:Fs(x.offsetY)}:y={class:"go.Spot",enum:x.toString()};else if(x instanceof wo){if(y={class:"go.Brush",type:x.type.name},x.type===Mh?y.color=x.color:(x.type===oh||x.type===Al)&&(y.start=x.start,y.end=x.end,x.type===Al&&(x.startRadius!==0&&(y.startRadius=Fs(x.startRadius)),isNaN(x.endRadius)||(y.endRadius=Fs(x.endRadius)))),x.colorStops!==null){var E={};for(x=x.colorStops.iterator;x.next();)E[x.key]=x.value;y.colorStops=E}}else x instanceof Wn?(y={class:"go.Geometry",type:x.type.name},x.startX!==0&&(y.startX=Fs(x.startX)),x.startY!==0&&(y.startY=Fs(x.startY)),x.endX!==0&&(y.endX=Fs(x.endX)),x.endY!==0&&(y.endY=Fs(x.endY)),x.spot1.D(ar)||(y.spot1=x.spot1),x.spot2.D(jr)||(y.spot2=x.spot2),x.type===Wn.o&&(y.path=Wn.ia(x))):x instanceof dn&&(y={class:"go.EnumValue",classType:yp(a,x.classType),name:x.name});E="{",x=!0;for(var b in y){var z=wa(y,b);if(!bS(b,z))if(x?x=!1:E+=",",E+=a.quote(b)+":",b==="points"&&z instanceof cn){var tt="[";for(z=z.iterator;z.next();){var rt=z.value;1<tt.length&&(tt+=","),tt+=a.sm(rt.x),tt+=",",tt+=a.sm(rt.y)}tt+="]",E+=tt}else E+=a.sm(z)}return E+"}"}function Ds(a){return typeof a=="number"?a:a==="NaN"?NaN:a==="9e9999"?1/0:a==="-9e9999"?-1/0:parseFloat(a)}function Wx(a){if(typeof a!="object")return a;var y=a.class||"";if(y==="NaN")return NaN;if(y==="Date")return new Date(a.value);if(y.indexOf("go.")!==0)return a;y=y.substr(3);var x=a;if(y==="Point")x=new Bt(Ds(a.x),Ds(a.y));else if(y==="Size")x=new zt(Ds(a.width),Ds(a.height));else if(y==="Rect")x=new ue(Ds(a.x),Ds(a.y),Ds(a.width),Ds(a.height));else if(y==="Margin")x=new Di(Ds(a.top),Ds(a.right),Ds(a.bottom),Ds(a.left));else if(y==="Spot")typeof a.enum=="string"?x=Mr(a.enum):x=new Mn(Ds(a.x),Ds(a.y),Ds(a.offsetX),Ds(a.offsetY));else if(y==="Brush"){if(x=new wo,x.type=Mi(wo,a.type),typeof a.color=="string"&&(x.color=a.color),a.start instanceof Mn&&(x.start=a.start),a.end instanceof Mn&&(x.end=a.end),typeof a.startRadius=="number"&&(x.startRadius=Ds(a.startRadius)),typeof a.endRadius=="number"&&(x.endRadius=Ds(a.endRadius)),a=a.colorStops,Ke(a))for(var E in a)x.addColorStop(parseFloat(E),a[E])}else y==="Geometry"?(x=null,typeof a.path=="string"?x=Wn.parse(a.path):x=new Wn,x.type=Mi(Wn,a.type),typeof a.startX=="number"&&(x.startX=Ds(a.startX)),typeof a.startY=="number"&&(x.startY=Ds(a.startY)),typeof a.endX=="number"&&(x.endX=Ds(a.endX)),typeof a.endY=="number"&&(x.endY=Ds(a.endY)),a.spot1 instanceof Mn&&(x.spot1=a.spot1),a.spot2 instanceof Mn&&(x.spot2=a.spot2)):y==="EnumValue"&&(E=a.classType,E.indexOf("go.")===0&&(E=E.substr(3)),E=py(E),typeof E=="function"&&(x=Mi(E,a.name)));return x}Ct.Pe=function(a){return this.Lt.add(a),this},Ct.ik=function(a){this.Lt.remove(a)},Ct.ds=function(a){this.skipsUndoManager||this.undoManager.Tu(a);for(var y=this.Lt,x=y.length,E=0;E<x;E++)y.M(E)(a)},Ct.cb=function(a,y,x,E,b,z,tt){Na(this,"",a,y,x,E,b,z,tt)},Ct.g=function(a,y,x,E,b){Na(this,"",To,a,this,y,x,E,b)},Ct.Fs=function(a,y,x,E,b,z){Na(this,"",To,y,a,x,E,b,z)};function Na(a,y,x,E,b,z,tt,rt,ot){rt===void 0&&(rt=null),ot===void 0&&(ot=null);var st=new Ho;st.model=a,st.change=x,st.modelChange=y,st.propertyName=E,st.object=b,st.oldValue=z,st.oldParam=rt,st.newValue=tt,st.newParam=ot,a.ds(st)}Ui.prototype.changeState=function(a,y){if(a!==null&&a.model===this)if(a.change===To){var x=a.object,E=a.propertyName,b=a.I(y);E===this.nodeKeyProperty&&this.lb(x)&&(y=a.I(!y),y!==void 0&&this.kb.remove(y),b!==void 0&&this.kb.add(b,x)),ta(x,E,b)}else a.change===$o?(x=a.newParam,a.modelChange==="nodeDataArray"?(a=a.newValue,Ke(a)&&typeof x=="number"&&(E=this.wa(a),y?(this.Tc[x]===a&&ki(this.Tc,x),E!==void 0&&this.kb.remove(E)):(this.Tc[x]!==a&&ni(this.Tc,x,a),E!==void 0&&this.kb.add(E,a)))):a.modelChange===""?((E=a.object)&&!Gn(E)&&a.propertyName&&(E=wa(a.object,a.propertyName)),Gn(E)&&typeof x=="number"&&(a=a.newValue,y?ki(E,x):ni(E,x,a))):ee("unknown ChangedEvent.Insert modelChange: "+a.toString())):a.change===ca?(x=a.oldParam,a.modelChange==="nodeDataArray"?(a=a.oldValue,Ke(a)&&typeof x=="number"&&(E=this.wa(a),y?(this.Tc[x]!==a&&ni(this.Tc,x,a),E!==void 0&&this.kb.add(E,a)):(this.Tc[x]===a&&ki(this.Tc,x),E!==void 0&&this.kb.remove(E)))):a.modelChange===""?((E=a.object)&&!Gn(E)&&a.propertyName&&(E=wa(a.object,a.propertyName)),Gn(E)&&typeof x=="number"&&(a=a.oldValue,y?ni(E,x,a):ki(E,x))):ee("unknown ChangedEvent.Remove modelChange: "+a.toString())):a.change!==Ma&&ee("unknown ChangedEvent: "+a.toString())},Ui.prototype.Ea=function(a){return this.undoManager.Ea(a)},Ui.prototype.eb=function(a){return this.undoManager.eb(a)},Ui.prototype.Kf=function(){return this.undoManager.Kf()},Ui.prototype.commit=function(a,y){y===void 0&&(y="");var x=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var E=!1;try{a(this),E=!0}finally{E?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=x}},Ct=Ui.prototype,Ct.La=function(a,y){y===void 0&&(y=""),Na(this,"SourceChanged",Ma,y,a,null,null)},Ct.wa=function(a){if(a!==null){var y=this.Th;if(y!==""&&(y=wa(a,y),y!==void 0)){if(pd(y))return y;ee("Key value for node data "+a+" is not a number or a string: "+y)}}},Ct.km=function(a,y){if(a!==null){var x=this.Th;if(x!=="")if(this.lb(a)){var E=wa(a,x);E!==y&&this.hc(y)===null&&(ta(a,x,y),E!==void 0&&this.kb.remove(E),this.kb.add(y,a),Na(this,"nodeKey",To,x,a,E,y),typeof x=="string"&&this.La(a,x),this.jp(E,y))}else ta(a,x,y)}};function pd(a){return typeof a=="number"||typeof a=="string"}Ct.lb=function(a){var y=this.wa(a);return y===void 0?!1:this.kb.I(y)===a},Ct.hc=function(a){return a===null&&ee("Model.findNodeDataForKey:key must not be null"),a!==void 0&&pd(a)?this.kb.I(a):null},Ct.$u=function(a){if(a!==null){var y=this.Th;if(y!==""){var x=this.wa(a);if(x===void 0||this.kb.contains(x)){var E=this.bl;if(E!==null&&(x=E(this,a),x!=null&&!this.kb.contains(x))){ta(a,y,x);return}if(typeof x=="string"){for(E=2;this.kb.contains(x+E);)E++;ta(a,y,x+E)}else if(x===void 0||typeof x=="number"){for(x=-this.kb.count-1;this.kb.contains(x);)x--;ta(a,y,x)}}}}},Ct.xf=function(a){a!==null&&(Xi(a),this.lb(a)||MS(this,a,!0))};function MS(a,y,x){var E=a.wa(y);(E===void 0||a.kb.I(E)!==y)&&(a.$u(y),E=a.wa(y),E===void 0&&ee("Model.makeNodeDataKeyUnique failed on "+y+". Data not added to Model."),a.kb.add(E,y),E=null,x&&(E=a.Tc.length,ni(a.Tc,E,y)),Na(a,"nodeDataArray",$o,"nodeDataArray",a,null,y,null,E),a.fm(y),a.em(y))}Ct.Fy=function(a){if(Gn(a))for(var y=a.length,x=0;x<y;x++)this.xf(a[x]);else for(a=a.iterator;a.next();)this.xf(a.value)},Ct.cm=function(a){a!==null&&kS(this,a,!0)};function kS(a,y,x){var E=a.wa(y);if(E!==void 0&&a.kb.remove(E),E=null,x){t:if(x=a.Tc,Array.isArray(x))E=x.indexOf(y);else{E=x.length;for(var b=0;b<E;b++)if(x[b]===y){E=b;break t}E=-1}if(0>E)return;ki(a.Tc,E)}Na(a,"nodeDataArray",ca,"nodeDataArray",a,y,null,E,null),a.qp(y)}Ct.nA=function(a){if(Gn(a))for(var y=a.length,x=0;x<y;x++)this.cm(a[x]);else for(a=a.iterator;a.next();)this.cm(a.value)},Ct.$z=function(a){if(a!==this.nodeDataArray&&Gn(a)){var y=this.kl;y.clear(),y.addAll(this.kb.iteratorKeys);var x=this.il;x.clear();for(var E=a.length,b=0;b<E;b++){var z=a[b],tt=this.wa(z);if(tt!==void 0){x.add(tt);var rt=this.hc(tt);rt!==z&&(rt!==null?(this.Do(rt,z),this.lm(z,rt)):(z=this.cloneDeep(z),this.km(z,tt),this.xf(z)))}else tt=this.cloneDeep(z),this.xf(tt),x.add(this.wa(tt))}for(a=y.iterator;a.next();)E=a.value,x.contains(E)||(E=this.hc(E))&&this.cm(E);y.clear(),x.clear()}},Ct.jp=function(a,y){y!==void 0&&(a=vp(this,a),a instanceof xn&&this.Vf.add(y,a))},Ct.Lv=function(){},Ct.fm=function(){},Ct.em=function(){},Ct.qp=function(){};function uu(a,y,x){if(y!==void 0){var E=a.Vf.I(y);E===null&&(E=new xn,a.Vf.add(y,E)),E.add(x)}}function hu(a,y,x){if(y!==void 0){var E=a.Vf.I(y);E instanceof xn&&(x==null?a.Vf.remove(y):(E.remove(x),E.count===0&&a.Vf.remove(y)))}}function vp(a,y){return y===void 0?null:(a=a.Vf.I(y),a instanceof xn?a:null)}Ct.Qy=function(a){a===void 0?this.Vf.clear():this.Vf.remove(a)},Ui.prototype.copyNodeData=function(a){if(a===null)return null;var y=this.Bk;return a=y!==null?y(a,this):f0(this,a,!0),Ke(a)&&wi(a),a};function f0(a,y,x){if(a.copiesArrays&&Array.isArray(y)){var E=[];for(x=0;x<y.length;x++){var b=f0(a,y[x],a.copiesArrayObjects);E.push(b)}return wi(E),E}if(x&&Ke(y)){x=(x=y.constructor)?new x:{},b=a.copiesKey||typeof a.nodeKeyProperty!="string"?null:a.nodeKeyProperty;for(E in y)if(E==="__gohashid")x.__gohashid=void 0;else if(E===b)x[b]=void 0;else{var z=wa(y,E),tt=yp(a,z);tt==="GraphObject"||tt==="Diagram"||tt==="Layer"||tt==="RowColumnDefinition"||tt==="AnimationManager"||tt==="Tool"||tt==="CommandHandler"||tt==="Layout"||tt==="InputEvent"||tt==="DiagramEvent"||z instanceof Ui||z instanceof qo||z instanceof va||z instanceof Ho||(z=f0(a,z,!1)),ta(x,E,z)}return wi(x),x}return y instanceof Bt||y instanceof zt||y instanceof ue||y instanceof Mn||y instanceof Di?y.copy():y}Ui.prototype.setDataProperty=function(a,y,x){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,x);return}if(y===this.nodeCategoryProperty){this.jm(a,x);return}}else!FS&&a instanceof Me&&(FS=!0,_n('Model.setDataProperty is modifying a GraphObject, "'+a.toString()+'"'),_n(" Is that really your intent?"));var E=wa(a,y);E!==x&&(ta(a,y,x),this.Fs(a,y,E,x))},Ct=Ui.prototype,Ct.set=function(a,y,x){this.setDataProperty(a,y,x)},Ct.Do=function(a,y){if(y){var x=this.lb(a),E;for(E in y)E==="__gohashid"||x&&E===this.nodeKeyProperty||this.setDataProperty(a,E,y[E])}},Ct.Ay=function(a,y){this.ts(a,-1,y)},Ct.ts=function(a,y,x){0>y&&(y=a.length),ni(a,y,x),Na(this,"",$o,"",a,null,x,null,y)},Ct.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&ee("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];ki(a,y),Na(this,"",ca,"",a,x,null,y,null)},Ct.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=wa(a,y),y===void 0))return"";if(typeof y=="string")return y;ee("getCategoryForNodeData found a non-string category for "+a+": "+y)},Ct.jm=function(a,y){if(a!==null){var x=this.lj;if(x!=="")if(this.lb(a)){var E=wa(a,x);E===void 0&&(E=""),E!==y&&(ta(a,x,y),Na(this,"nodeCategory",To,x,a,E,y))}else ta(a,x,y)}},Ct.lm=function(a,y){this.jm(y,this.Ro(a))},Ct.Tl=function(){return!1},Ct.Wj=function(){return!1},Ct.ri=function(){return!1},Ct.xs=function(){return!1},Ct.Xj=function(){return!1};function gy(){return new Ui}function yp(a,y){if(typeof y=="function"){if(y.className)return y.className;if(y.name)return y.name}else if(typeof y=="object"&&y!==null&&y.constructor)return yp(a,y.constructor);return typeof y}function py(a){return $l[a]?$l[a]:Sn.go!==void 0&&Sn.go[a]?Sn.go[a]:null}function wa(a,y){if(!a||!y)return null;try{if(typeof y=="function")var x=y(a);else typeof a.getAttribute=="function"?(x=a.getAttribute(y),x===null&&(x=void 0)):x=a[y]}catch(E){}return x}function ta(a,y,x){if(a&&y)try{typeof y=="function"?y(a,x):typeof a.setAttribute=="function"?a.setAttribute(y,x):a[y]=x}catch(E){}}xe.Object.defineProperties(Ui.prototype,{name:{get:function(){return this.xa},set:function(a){var y=this.xa;y!==a&&(this.xa=a,this.g("name",y,a))}},dataFormat:{get:function(){return this.Sm},set:function(a){var y=this.Sm;y!==a&&(this.Sm=a,this.g("dataFormat",y,a))}},isReadOnly:{get:function(){return this.Gg},set:function(a){var y=this.Gg;y!==a&&(this.Gg=a,this.g("isReadOnly",y,a))}},modelData:{get:function(){return this.j},set:function(a){var y=this.j;y!==a&&(this.j=a,this.g("modelData",y,a),this.La(a))}},undoManager:{get:function(){return this.o},set:function(a){var y=this.o;y!==a&&(y!==null&&y.Rx(this),this.o=a,a!==null&&a.Xw(this))}},skipsUndoManager:{get:function(){return this.Wg},set:function(a){this.Wg=a}},nodeKeyProperty:{get:function(){return this.Th},set:function(a){var y=this.Th;y!==a&&(a===""&&ee("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&ee("Cannot set Model.nodeKeyProperty when there is existing node data"),this.Th=a,this.g("nodeKeyProperty",y,a))}},makeUniqueKeyFunction:{get:function(){return this.bl},set:function(a){var y=this.bl;y!==a&&(this.bl=a,this.g("makeUniqueKeyFunction",y,a))}},nodeDataArray:{get:function(){return this.Tc},set:function(a){var y=this.Tc;if(y!==a){this.kb.clear(),this.Lv();for(var x=a.length,E=0;E<x;E++){var b=a[E];Ke(b)||ee("Model.nodeDataArray must only contain Objects, not: "+b),Xi(b)}for(this.Tc=a,E=new cn,b=0;b<x;b++){var z=a[b],tt=this.wa(z);tt===void 0||this.kb.I(tt)!==null?E.add(z):this.kb.add(tt,z)}for(E=E.iterator;E.next();)b=E.value,this.$u(b),z=this.wa(b),z!==void 0&&this.kb.add(z,b);for(Na(this,"nodeDataArray",To,"nodeDataArray",this,y,a),y=0;y<x;y++)E=a[y],this.fm(E),this.em(E);Array.isArray(a)||(this.isReadOnly=!0)}}},copyNodeDataFunction:{get:function(){return this.Bk},set:function(a){var y=this.Bk;y!==a&&(this.Bk=a,this.g("copyNodeDataFunction",y,a))}},copiesArrays:{get:function(){return this.Km},set:function(a){var y=this.Km;y!==a&&(this.Km=a,this.g("copiesArrays",y,a))}},copiesArrayObjects:{get:function(){return this.Jm},set:function(a){var y=this.Jm;y!==a&&(this.Jm=a,this.g("copiesArrayObjects",y,a))}},copiesKey:{get:function(){return this.Mm},set:function(a){var y=this.Mm;y!==a&&(this.Mm=a,this.g("copiesKey",y,a))}},afterCopyFunction:{get:function(){return this.xm},set:function(a){var y=this.xm;y!==a&&(this.xm=a,this.g("afterCopyFunction",y,a))}},nodeCategoryProperty:{get:function(){return this.lj},set:function(a){var y=this.lj;y!==a&&(this.lj=a,this.g("nodeCategoryProperty",y,a))}},type:{get:function(){return"Model"}}}),Ui.prototype.setCategoryForNodeData=Ui.prototype.jm,Ui.prototype.getCategoryForNodeData=Ui.prototype.Ro,Ui.prototype.removeArrayItem=Ui.prototype.ov,Ui.prototype.insertArrayItem=Ui.prototype.ts,Ui.prototype.addArrayItem=Ui.prototype.Ay,Ui.prototype.assignAllDataProperties=Ui.prototype.Do,Ui.prototype.set=Ui.prototype.set,Ui.prototype.clearUnresolvedReferences=Ui.prototype.Qy,Ui.prototype.mergeNodeDataArray=Ui.prototype.$z,Ui.prototype.removeNodeDataCollection=Ui.prototype.nA,Ui.prototype.removeNodeData=Ui.prototype.cm,Ui.prototype.addNodeDataCollection=Ui.prototype.Fy,Ui.prototype.addNodeData=Ui.prototype.xf,Ui.prototype.makeNodeDataKeyUnique=Ui.prototype.$u,Ui.prototype.findNodeDataForKey=Ui.prototype.hc,Ui.prototype.containsNodeData=Ui.prototype.lb,Ui.prototype.setKeyForNodeData=Ui.prototype.km,Ui.prototype.getKeyForNodeData=Ui.prototype.wa,Ui.prototype.updateTargetBindings=Ui.prototype.La,Ui.prototype.commit=Ui.prototype.commit,Ui.prototype.rollbackTransaction=Ui.prototype.Kf,Ui.prototype.commitTransaction=Ui.prototype.eb,Ui.prototype.startTransaction=Ui.prototype.Ea,Ui.prototype.raiseDataChanged=Ui.prototype.Fs,Ui.prototype.raiseChanged=Ui.prototype.g,Ui.prototype.raiseChangedEvent=Ui.prototype.cb,Ui.prototype.removeChangedListener=Ui.prototype.ik,Ui.prototype.addChangedListener=Ui.prototype.Pe,Ui.prototype.writeJsonValue=Ui.prototype.sm,Ui.prototype.replaceJsonObjects=Ui.prototype.dm,Ui.prototype.applyIncrementalJSON=Ui.prototype.Ky,Ui.prototype.applyIncrementalJson=Ui.prototype.Zw,Ui.prototype.toJSON=Ui.prototype.toJSON,Ui.prototype.toJson=Ui.prototype.np,Ui.prototype.toIncrementalJSON=Ui.prototype.yA,Ui.prototype.toIncrementalJson=Ui.prototype.$x,Ui.prototype.toIncrementalData=Ui.prototype.xA,Ui.prototype.clear=Ui.prototype.clear;var FS=!1,$l={};Ui.className="Model",Ui.fromJSON=Ui.fromJson=function(a,y){y===void 0&&(y=null);var x=null;if(typeof a=="string")try{x=Sn.JSON.parse(a)}catch(z){}else typeof a=="object"?x=a:ee("Unable to construct a Model from: "+a);if(y===null){a=null;var E=x.class;if(typeof E=="string")try{var b=null;E.indexOf("go.")===0?(E=E.substr(3),b=py(E)):(b=py(E),b===null&&(b=Sn[E])),typeof b=="function"&&(a=new b)}catch(z){}a===null||a instanceof Ui?y=a:ee("Unable to construct a Model of declared class: "+x.class)}return y===null&&(y=Ui.constructGraphLinksModel()),y.gp(x),y.kv(x),y},Ui.safePropertyValue=wa,Ui.safePropertySet=ta,$l.Brush=wo,$l.ChangedEvent=Ho,$l.Geometry=Wn,$l.Margin=Di,$l.Panel=ei,$l.Point=Bt,$l.Rect=ue,$l.Size=zt,$l.Spot=Mn,$l.Transaction=va,$l.UndoManager=qo;function Ea(a,y,x,E){wi(this),this._isFrozen=!1,a===void 0&&(a=""),y===void 0&&(y=a),x===void 0&&(x=null),this.j=-1,this.xd=null,this.xl=a,this.wl=this.to=0,this.Cr=null,this.wn=!1,this.sl=y,this.Im=x,E===void 0?(this.el=NS,this.wk=null):(this.el=Sp,this.wk=E),this.st=new xn}Ea.prototype.copy=function(){var a=new Ea;return a.xl=this.xl,a.to=this.to,a.wl=this.wl,a.Cr=this.Cr,a.wn=this.wn,a.sl=this.sl,a.Im=this.Im,a.el=this.el,a.wk=this.wk,a},Ct=Ea.prototype,Ct.qb=function(a){a.classType===Ea&&(this.mode=a)},Ct.toString=function(){return"Binding("+this.targetProperty+":"+this.sourceProperty+(this.Ai!==-1?" "+this.Ai:"")+" "+this.mode.name+")"},Ct.freeze=function(){return this._isFrozen=!0,this},Ct.ka=function(){return this._isFrozen=!1,this},Ct.Kx=function(a){return a===void 0&&(a=null),this.mode=Sp,this.backConverter=a,this},Ct.cp=function(a){return a===void 0&&(a=""),this.sourceName=a,this.isToModel=!1,this},Ct.dA=function(){return this.sourceName=null,this.isToModel=!0,this};function DS(a,y,x){return a=a.sourceName,a===null||a===""?y:a==="/"?x.part:a==="."?x:a===".."?x.panel:y.fb(a)}Ct.Mv=function(a,y,x){var E=this.sl;if(x===void 0||E===""||E===x){x=this.xl;var b=this.Im;if(b===null&&x==="")_n("Binding error: target property is the empty string: "+this.toString());else{var z=y;if(E!==""&&(z=wa(y,E)),z!==void 0)if(b===null)x!==""&&ta(a,x,z);else try{if(x!==""){var tt=b(z,a);ta(a,x,tt)}else b(z,a)}catch(rt){}}}},Ct.sp=function(a,y,x,E){if(this.el===Sp){var b=this.xl;if(x===void 0||b===x){x=this.sl;var z=this.wk,tt=a;if(b!==""&&(tt=wa(a,b)),tt!==void 0&&!this.st.contains(a))try{this.st.add(a);var rt=E!==null?E.diagram:null,ot=rt!==null?rt.model:null;if(z===null){if(x!=="")ot!==null?ot.setDataProperty(y,x,tt):ta(y,x,tt);else if(ot!==null&&E!==null&&0<=E.itemIndex&&E.panel!==null&&Array.isArray(E.panel.itemArray)){var st=E.itemIndex,ut=E.panel.itemArray;ot.ov(ut,st),ot.ts(ut,st,tt)}}else try{if(x!==""){var ft=z(tt,y,ot);ot!==null?ot.setDataProperty(y,x,ft):ta(y,x,ft)}else{var vt=z(tt,y,ot);if(vt!==void 0&&ot!==null&&E!==null&&0<=E.itemIndex&&E.panel!==null&&Array.isArray(E.panel.itemArray)){var xt=E.itemIndex,Pt=E.panel.itemArray;ot.ov(Pt,xt),ot.ts(Pt,xt,vt)}}}catch(Ft){}}finally{this.st.remove(a)}}}},xe.Object.defineProperties(Ea.prototype,{Ai:{get:function(){return this.j},set:function(a){this._isFrozen&&nn(this),this.j=a}},targetProperty:{get:function(){return this.xl},set:function(a){this._isFrozen&&nn(this),this.xl=a}},sourceName:{get:function(){return this.Cr},set:function(a){this._isFrozen&&nn(this),this.Cr=a,a!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(a){this._isFrozen&&nn(this),this.wn=a}},sourceProperty:{get:function(){return this.sl},set:function(a){this._isFrozen&&nn(this),this.sl=a}},converter:{get:function(){return this.Im},set:function(a){this._isFrozen&&nn(this),this.Im=a}},backConverter:{get:function(){return this.wk},set:function(a){this._isFrozen&&nn(this),this.wk=a}},mode:{get:function(){return this.el},set:function(a){this._isFrozen&&nn(this),this.el=a}}}),Ea.prototype.updateSource=Ea.prototype.sp,Ea.prototype.updateTarget=Ea.prototype.Mv,Ea.prototype.ofModel=Ea.prototype.dA,Ea.prototype.ofObject=Ea.prototype.cp,Ea.prototype.makeTwoWay=Ea.prototype.Kx;var Hx="Binding",NS=new dn(Ea,"OneWay",1),Sp=new dn(Ea,"TwoWay",2);Ea.className="Binding",Ea.parseEnum=function(a,y){return function(x){return x=Mi(a,x),x===null?y:x}},Ea.toString=Zi,Ea.OneWay=NS,Ea.TwoWay=Sp;function no(a,y,x){Ui.call(this),this.Vv=`,
"insertedLinkKeys": `,this.iy=`,
"modifiedLinkData": `,this.Xv=`,
"removedLinkKeys": `,this.md=[],this.$f=new xn,this.wb=new on,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,y!==void 0&&(this.linkDataArray=y),a!==void 0&&(Gn(a)?this.nodeDataArray=a:x=a),x&&(Object.assign(this,x),a=x.Changed)&&(delete this.Changed,this.Pe(a))}ye(no,Ui),no.constructGraphLinksModel=Ui.constructGraphLinksModel,no.prototype.cloneProtected=function(a){Ui.prototype.cloneProtected.call(this,a),a.Jh=this.Jh,a.cl=this.cl,a.Ak=this.Ak,a.lf=this.lf,a.mf=this.mf,a.ej=this.ej,a.fj=this.fj,a.dj=this.dj,a.je=this.je,a.jl=this.jl,a.Je=this.Je,a.Lm=this.Lm},Ct=no.prototype,Ct.clear=function(){Ui.prototype.clear.call(this),this.md=[],this.wb.clear(),this.$f.clear()},Ct.toString=function(a){if(a===void 0&&(a=0),2<=a)return this.np();var y=(this.name!==""?this.name:"")+" GraphLinksModel";if(0<a){y+=`
node data:`,a=this.nodeDataArray;var x=a.length,E;for(E=0;E<x;E++){var b=a[E];y+=" "+this.wa(b)+":"+Zi(b)}for(y+=`
link data:`,a=this.linkDataArray,x=a.length,E=0;E<x;E++)b=a[E],y+=" "+fl(this,b,!0)+"-->"+fl(this,b,!1)}return y},Ct.Qv=function(a,y){this.linkKeyProperty===""&&ee("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var x=Ui.prototype.Qv.call(this,a,y),E=this,b=new xn,z=new xn,tt=new xn,rt=this.vh;a.changes.each(function(ut){ut.model===E&&(ut.modelChange==="linkDataArray"?ut.change===$o?b.add(ut.newValue):ut.change===ca&&tt.add(ut.oldValue):E.Jc(ut.object)?z.add(ut.object):ut.object!==null&&(ut.object!==null&&rt&&rt.contains(ut.object)?rt.get(ut.object).each(function(ft){E.Jc(ft)&&z.add(ft)}):ut.object instanceof Ui||E.lb(ut.object)||BS(E,ut.object).each(function(ft){z.add(ft)})))});var ot=this.il;ot.clear(),b.each(function(ut){ot.add(E.Ac(ut)),y||z.add(ut)});var st=this.kl;return st.clear(),tt.each(function(ut){st.add(E.Ac(ut)),y&&z.add(ut)}),a=E.cloneDeep(z.Fa()),0<ot.count&&(x===null&&(x={}),y?x.removedLinkKeys=ot.Fa():x.insertedLinkKeys=ot.Fa()),0<a.length&&(x===null&&(x={}),x.modifiedLinkData=a),0<st.count&&(x===null&&(x={}),y?x.insertedLinkKeys=st.Fa():x.removedLinkKeys=st.Fa()),st.clear(),ot.clear(),x},Ct.rm=function(){var a=Ui.prototype.rm.call(this),y="";return this.linkCategoryProperty!=="category"&&typeof this.linkCategoryProperty=="string"&&(y+=`,
"linkCategoryProperty": `+this.quote(this.linkCategoryProperty)),this.linkKeyProperty!==""&&typeof this.linkKeyProperty=="string"&&(y+=`,
"linkKeyProperty": `+this.quote(this.linkKeyProperty)),this.linkFromKeyProperty!=="from"&&typeof this.linkFromKeyProperty=="string"&&(y+=`,
"linkFromKeyProperty": `+this.quote(this.linkFromKeyProperty)),this.linkToKeyProperty!=="to"&&typeof this.linkToKeyProperty=="string"&&(y+=`,
"linkToKeyProperty": `+this.quote(this.linkToKeyProperty)),this.linkFromPortIdProperty!==""&&typeof this.linkFromPortIdProperty=="string"&&(y+=`,
"linkFromPortIdProperty": `+this.quote(this.linkFromPortIdProperty)),this.linkToPortIdProperty!==""&&typeof this.linkToPortIdProperty=="string"&&(y+=`,
"linkToPortIdProperty": `+this.quote(this.linkToPortIdProperty)),this.linkLabelKeysProperty!==""&&typeof this.linkLabelKeysProperty=="string"&&(y+=`,
"linkLabelKeysProperty": `+this.quote(this.linkLabelKeysProperty)),this.nodeIsGroupProperty!=="isGroup"&&typeof this.nodeIsGroupProperty=="string"&&(y+=`,
"nodeIsGroupProperty": `+this.quote(this.nodeIsGroupProperty)),this.nodeGroupKeyProperty!=="group"&&typeof this.nodeGroupKeyProperty=="string"&&(y+=`,
"nodeGroupKeyProperty": `+this.quote(this.nodeGroupKeyProperty)),a+y},Ct.gp=function(a){Ui.prototype.gp.call(this,a),a.linkKeyProperty&&(this.linkKeyProperty=a.linkKeyProperty),a.linkFromKeyProperty&&(this.linkFromKeyProperty=a.linkFromKeyProperty),a.linkToKeyProperty&&(this.linkToKeyProperty=a.linkToKeyProperty),a.linkFromPortIdProperty&&(this.linkFromPortIdProperty=a.linkFromPortIdProperty),a.linkToPortIdProperty&&(this.linkToPortIdProperty=a.linkToPortIdProperty),a.linkCategoryProperty&&(this.linkCategoryProperty=a.linkCategoryProperty),a.linkLabelKeysProperty&&(this.linkLabelKeysProperty=a.linkLabelKeysProperty),a.nodeIsGroupProperty&&(this.nodeIsGroupProperty=a.nodeIsGroupProperty),a.nodeGroupKeyProperty&&(this.nodeGroupKeyProperty=a.nodeGroupKeyProperty)},Ct.Rv=function(){var a=Ui.prototype.Rv.call(this),y=`,
"linkDataArray": `+gd(this,this.linkDataArray,!0);return a+y},Ct.kv=function(a){Ui.prototype.kv.call(this,a),a=a.linkDataArray,Array.isArray(a)&&(this.dm(a),this.linkDataArray=a)};function BS(a,y){for(var x=new xn,E=0;E<a.linkDataArray.length;E++){var b=a.linkDataArray[E];c0(a,y,b,b,x)}return x}Ct.Pv=function(a,y){this.linkKeyProperty===""&&ee("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var x=Ui.prototype.Pv.call(this,a,y),E=this,b=new xn,z=new xn,tt=new xn,rt=this.vh;a.changes.each(function(ut){ut.model===E&&(ut.modelChange==="linkDataArray"?ut.change===$o?b.add(ut.newValue):ut.change===ca&&tt.add(ut.oldValue):E.Jc(ut.object)?z.add(ut.object):ut.object!==null&&(ut.object!==null&&rt&&rt.contains(ut.object)?rt.get(ut.object).each(function(ft){E.Jc(ft)&&z.add(ft)}):ut.object instanceof Ui||E.lb(ut.object)||BS(E,ut.object).each(function(ft){z.add(ft)})))});var ot=this.il;ot.clear(),b.each(function(ut){ot.add(E.Ac(ut)),y||z.add(ut)});var st=this.kl;return st.clear(),tt.each(function(ut){st.add(E.Ac(ut)),y&&z.add(ut)}),a=x,0<ot.count&&(a+=(y?this.Xv:this.Vv)+gd(this,ot.Fa(),!0)),0<z.count&&(a+=this.iy+gd(this,z.Fa(),!0)),0<st.count&&(a+=(y?this.Vv:this.Xv)+gd(this,st.Fa(),!0)),st.clear(),ot.clear(),a},Ct.fp=function(a){(a.linkCategoryProperty!==void 0&&a.linkCategoryProperty!==this.linkCategoryProperty||a.linkKeyProperty!==void 0&&a.linkKeyProperty!==this.linkKeyProperty||a.linkFromKeyProperty!==void 0&&a.linkFromKeyProperty!==this.linkFromKeyProperty||a.linkToKeyProperty!==void 0&&a.linkToKeyProperty!==this.linkToKeyProperty||a.linkFromPortIdProperty!==void 0&&a.linkFromPortIdProperty!==this.linkFromPortIdProperty||a.linkToPortIdProperty!==void 0&&a.linkToPortIdProperty!==this.linkToPortIdProperty||a.linkLabelKeysProperty!==void 0&&a.linkLabelKeysProperty!==this.linkLabelKeysProperty||a.nodeIsGroupProperty!==void 0&&a.nodeIsGroupProperty!==this.nodeIsGroupProperty||a.nodeGroupKeyProperty!==void 0&&a.nodeGroupKeyProperty!==this.nodeGroupKeyProperty)&&ee("applyIncrementalJson cannot change Model properties"),Ui.prototype.fp.call(this,a);var y=a.insertedLinkKeys;if(Array.isArray(y))for(var x=y.length,E=0;E<x;E++){var b=y[E],z=this.jh(b);z===null&&(z=this.Jo({}),this.Ks(z,b),this.fi(z))}if(y=a.modifiedLinkData,Array.isArray(y)){for(x=y.length,E=0;E<x;E++)if(b=y[E],z=this.Ac(b),z=this.jh(z),z!==null){for(var tt in b)tt!=="__gohashid"&&tt!==this.linkKeyProperty&&this.setDataProperty(z,tt,b[tt]);IS(this,b,z)}}if(a=a.removedLinkKeys,Array.isArray(a))for(tt=a.length,y=0;y<tt;y++)x=this.jh(a[y]),x!==null&&this.bm(x)},no.prototype.changeState=function(a,y){if(a!==null&&a.model===this){if(a.change===To){var x=a.object,E=a.propertyName;if(E===this.linkKeyProperty&&this.Jc(x)){var b=a.I(y);y=a.I(!y),y!==void 0&&this.wb.remove(y),b!==void 0&&this.wb.add(b,x),ta(x,E,b);return}}else if(a.change===$o){if(x=a.newParam,a.modelChange==="linkDataArray"){a=a.newValue,Ke(a)&&typeof x=="number"&&(E=this.Ac(a),y?(this.$f.remove(a),this.md[x]===a&&this.md.splice(x,1),E!==void 0&&this.wb.remove(E)):(this.$f.add(a),this.md[x]!==a&&this.md.splice(x,0,a),E!==void 0&&this.wb.add(E,a)));return}if(a.modelChange==="linkLabelKeys"){E=this.Ef(a.object),Array.isArray(E)&&typeof x=="number"&&(y?(x=E.indexOf(a.newValue),0<=x&&E.splice(x,1)):0>E.indexOf(a.newValue)&&E.splice(x,0,a.newValue));return}}else if(a.change===ca){if(x=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,Ke(a)&&typeof x=="number"&&(E=this.Ac(a),y?(this.$f.add(a),this.md[x]!==a&&this.md.splice(x,0,a),E!==void 0&&this.wb.add(E,a)):(this.$f.remove(a),this.md[x]===a&&this.md.splice(x,1),E!==void 0&&this.wb.remove(E)));return}if(a.modelChange==="linkLabelKeys"){E=this.Ef(a.object),Array.isArray(E)&&typeof x=="number"&&(y?0>E.indexOf(a.newValue)&&E.splice(x,0,a.newValue):(x=E.indexOf(a.newValue),0<=x&&E.splice(x,1)));return}}Ui.prototype.changeState.call(this,a,y)}},Ct=no.prototype,Ct.Vl=function(a){if(a!==void 0){var y=this.Ri;if(y!==null){var x=this.hc(a);x===null&&(x=this.copyNodeData(y),ta(x,this.nodeKeyProperty,a),this.xf(x))}return a}},Ct.yx=function(a){return fl(this,a,!0)},Ct.wv=function(a,y){Yf(this,a,y,!0)},Ct.Bx=function(a){return fl(this,a,!1)},Ct.Bv=function(a,y){Yf(this,a,y,!1)};function fl(a,y,x){if(y!==null&&(a=x?a.lf:a.mf,a!==""&&(a=wa(y,a),a!==void 0))){if(pd(a))return a;ee((x?"FromKey":"ToKey")+" value for link data "+y+" is not a number or a string: "+a)}}function Yf(a,y,x,E){if(x===null&&(x=void 0),y!==null){var b=E?a.lf:a.mf;if(b!=="")if(x=a.Vl(x),a.Jc(y)){var z=wa(y,b);z!==x&&(hu(a,z,y),ta(y,b,x),a.hc(x)===null&&uu(a,x,y),Na(a,E?"linkFromKey":"linkToKey",To,b,y,z,x),typeof b=="string"&&a.La(y,b))}else ta(y,b,x)}}Ct.zx=function(a){return g0(this,a,!0)},Ct.xv=function(a,y){Uf(this,a,y,!0)},Ct.Cx=function(a){return g0(this,a,!1)},Ct.Cv=function(a,y){Uf(this,a,y,!1)};function g0(a,y,x){return y===null||(a=x?a.ej:a.fj,a==="")?"":(y=wa(y,a),y===void 0?"":y)}function Uf(a,y,x,E){if(y!==null){var b=E?a.ej:a.fj;if(b!=="")if(a.Jc(y)){var z=wa(y,b);z===void 0&&(z=""),z!==x&&(ta(y,b,x),Na(a,E?"linkFromPortId":"linkToPortId",To,b,y,z,x),typeof b=="string"&&a.La(y,b))}else ta(y,b,x)}}Ct.Ef=function(a){if(a===null)return p0;var y=this.je;return y===""?p0:(a=wa(a,y),a===void 0?p0:a)},Ct.Ls=function(a,y){if(a!==null){var x=this.je;if(x!=="")if(this.Jc(a)){var E=wa(a,x);if(E===void 0&&(E=p0),E!==y){if(Array.isArray(E))for(var b=E.length,z=0;z<b;z++)hu(this,E[z],a);for(ta(a,x,y),b=y.length,z=0;z<b;z++){var tt=y[z];this.hc(tt)===null&&uu(this,tt,a)}Na(this,"linkLabelKeys",To,x,a,E,y),typeof x=="string"&&this.La(a,x)}}else ta(a,x,y)}},Ct.Bu=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var E=wa(a,x);if(E===void 0)x=[],x.push(y),this.Ls(a,x);else if(Array.isArray(E)){var b=E.indexOf(y);0<=b||(b=E.length,E.push(y),this.Jc(a)&&(this.hc(y)===null&&uu(this,y,a),Na(this,"linkLabelKeys",$o,x,a,null,y,null,b)))}else ee(x+" property is not an Array; cannot addLabelKeyForLinkData: "+a)}}},Ct.Qx=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var E=wa(a,x);if(Array.isArray(E)){var b=E.indexOf(y);0>b||(E.splice(b,1),this.Jc(a)&&(hu(this,y,a),Na(this,"linkLabelKeys",ca,x,a,y,null,b,null)))}else E!==void 0&&ee(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},Ct.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=wa(a,y),y!==void 0)){if(pd(y))return y;ee("Key value for link data "+a+" is not a number or a string: "+y)}}},Ct.Ks=function(a,y){if(a!==null){var x=this.Jh;if(x!=="")if(this.Jc(a)){var E=wa(a,x);E!==y&&this.jh(y)===null&&(ta(a,x,y),E!==void 0&&this.wb.remove(E),this.wb.add(y,a),Na(this,"linkKey",To,x,a,E,y),typeof x=="string"&&this.La(a,x))}else ta(a,x,y)}},Ct.jh=function(a){return a===null&&ee("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&pd(a)?this.wb.I(a):null},Ct.Bs=function(a){if(a!==null){var y=this.Jh;if(y!==""){var x=this.Ac(a);if(x===void 0||this.wb.contains(x)){var E=this.cl;if(E!==null&&(x=E(this,a),x!=null&&!this.wb.contains(x))){ta(a,y,x);return}if(typeof x=="string"){for(E=2;this.wb.contains(x+E);)E++;ta(a,y,x+E)}else if(x===void 0||typeof x=="number"){for(x=-this.wb.count-1;this.wb.contains(x);)x--;ta(a,y,x)}}}}},Ct.Jc=function(a){return a===null?!1:this.$f.contains(a)},Ct.fi=function(a){a!==null&&(Xi(a),this.Jc(a)||TS(this,a,!0))};function TS(a,y,x){if(a.linkKeyProperty!==""){var E=a.Ac(y);if(E!==void 0&&a.wb.I(E)===y)return;a.Bs(y),E=a.Ac(y),E===void 0&&ee("GraphLinksModel.makeLinkDataKeyUnique failed on "+y+". Data not added to model."),a.wb.add(E,y)}a.$f.add(y),E=null,x&&(E=a.md.length,a.md.splice(E,0,y)),Na(a,"linkDataArray",$o,"linkDataArray",a,null,y,null,E),my(a,y)}Ct.Ey=function(a){if(Array.isArray(a))for(var y=a.length,x=0;x<y;x++)this.fi(a[x]);else for(a=a.iterator;a.next();)this.fi(a.value)},Ct.bm=function(a){a!==null&&OS(this,a,!0)};function OS(a,y,x){a.$f.remove(y);var E=a.Ac(y);if(E!==void 0&&a.wb.remove(E),E=null,x){if(E=a.md.indexOf(y),0>E)return;a.md.splice(E,1)}if(Na(a,"linkDataArray",ca,"linkDataArray",a,y,null,E,null),x=fl(a,y,!0),hu(a,x,y),x=fl(a,y,!1),hu(a,x,y),E=a.Ef(y),Array.isArray(E))for(var b=E.length,z=0;z<b;z++)x=E[z],hu(a,x,y)}Ct.lA=function(a){if(Array.isArray(a))for(var y=a.length,x=0;x<y;x++)this.bm(a[x]);else for(a=a.iterator;a.next();)this.bm(a.value)},Ct.Zz=function(a){if(this.linkKeyProperty===""&&ee("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),a!==this.linkDataArray&&Gn(a)){var y=this.kl;y.clear(),y.addAll(this.wb.iteratorKeys);var x=this.il;x.clear();for(var E=a.length,b=0;b<E;b++){var z=a[b],tt=this.Ac(z);if(tt!==void 0){x.add(tt);var rt=this.jh(tt);rt!==z&&(rt!==null?(this.Do(rt,z),IS(this,z,rt)):(z=this.cloneDeep(z),this.Ks(z,tt),this.fi(z)))}else tt=this.cloneDeep(z),this.fi(tt),x.add(this.Ac(tt))}for(a=y.iterator;a.next();)E=a.value,x.contains(E)||(E=this.jh(E))&&this.bm(E);y.clear(),x.clear()}};function my(a,y){var x=fl(a,y,!0);x=a.Vl(x),a.hc(x)===null&&uu(a,x,y),x=fl(a,y,!1),x=a.Vl(x),a.hc(x)===null&&uu(a,x,y);var E=a.Ef(y);if(Array.isArray(E))for(var b=E.length,z=0;z<b;z++)x=E[z],a.hc(x)===null&&uu(a,x,y)}Ct.Jo=function(a){if(a===null)return null;var y=this.Ak;return a=y!==null?y(a,this):f0(this,a,!0),Ke(a)&&(wi(a),this.lf!==""&&ta(a,this.lf,void 0),this.mf!==""&&ta(a,this.mf,void 0),this.je!==""&&ta(a,this.je,[])),a},Ct.Yu=function(a){if(a===null)return!1;var y=this.jl;return y===""?!1:!!wa(a,y)},Ct.lh=function(a){if(a!==null){var y=this.Je;if(y!==""&&(y=wa(a,y),y!==void 0)){if(pd(y))return y;ee("GroupKey value for node data "+a+" is not a number or a string: "+y)}}},Ct.mp=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Je;if(x!=="")if(this.lb(a)){var E=wa(a,x);E!==y&&(hu(this,E,a),ta(a,x,y),this.hc(y)===null&&uu(this,y,a),Na(this,"nodeGroupKey",To,x,a,E,y),typeof x=="string"&&this.La(a,x))}else ta(a,x,y)}},no.prototype.copyNodeData=function(a){return a===null?null:(a=Ui.prototype.copyNodeData.call(this,a),this.Ij||this.Je===""||wa(a,this.Je)===void 0||ta(a,this.Je,void 0),a)},no.prototype.setDataProperty=function(a,y,x){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,x);return}if(y===this.nodeCategoryProperty){this.jm(a,x);return}if(y===this.nodeGroupKeyProperty){this.mp(a,x);return}}else if(this.Jc(a)){if(y===this.linkFromKeyProperty){Yf(this,a,x,!0);return}if(y===this.linkToKeyProperty){Yf(this,a,x,!1);return}if(y===this.linkFromPortIdProperty){Uf(this,a,x,!0);return}if(y===this.linkToPortIdProperty){Uf(this,a,x,!1);return}if(y===this.linkKeyProperty){this.Ks(a,x);return}if(y===this.linkCategoryProperty){this.lp(a,x);return}if(y===this.linkLabelKeysProperty){this.Ls(a,x);return}}var E=wa(a,y);E!==x&&(ta(a,y,x),this.Fs(a,y,E,x))},Ct=no.prototype,Ct.Do=function(a,y){if(y){var x=this.lb(a),E=this.Jc(a),b;for(b in y)b==="__gohashid"||x&&b===this.nodeKeyProperty||x&&b===this.nodeIsGroupProperty&&wa(a,b)===y[b]||E&&b===this.linkKeyProperty||this.setDataProperty(a,b,y[b])}},Ct.jp=function(a,y){Ui.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y);for(x=this.$f.iterator;x.next();){var E=x.value,b=a,z=y;if(fl(this,E,!0)===b){var tt=this.lf;ta(E,tt,z),Na(this,"linkFromKey",To,tt,E,b,z),typeof tt=="string"&&this.La(E,tt)}if(fl(this,E,!1)===b&&(tt=this.mf,ta(E,tt,z),Na(this,"linkToKey",To,tt,E,b,z),typeof tt=="string"&&this.La(E,tt)),tt=this.Ef(E),Array.isArray(tt))for(var rt=tt.length,ot=this.je,st=0;st<rt;st++)tt[st]===b&&(tt[st]=z,Na(this,"linkLabelKeys",$o,ot,E,b,z,st,st))}},Ct.qv=function(a,y,x){if(this.lh(a)===y){var E=this.Je;ta(a,E,x),Na(this,"nodeGroupKey",To,E,a,y,x),typeof E=="string"&&this.La(a,E)}},Ct.Lv=function(){Ui.prototype.Lv.call(this);for(var a=this.linkDataArray,y=a.length,x=0;x<y;x++)my(this,a[x])},Ct.fm=function(a){Ui.prototype.fm.call(this,a),a=this.wa(a);var y=vp(this,a);if(y!==null){var x=xi();for(y=y.iterator;y.next();){var E=y.value;if(this.lb(E)){if(this.lh(E)===a){var b=this.Je;Na(this,"nodeGroupKey",To,b,E,a,a),typeof b=="string"&&this.La(E,b),x.push(E)}}else if(fl(this,E,!0)===a&&(b=this.lf,Na(this,"linkFromKey",To,b,E,a,a),typeof b=="string"&&this.La(E,b),x.push(E)),fl(this,E,!1)===a&&(b=this.mf,Na(this,"linkToKey",To,b,E,a,a),typeof b=="string"&&this.La(E,b),x.push(E)),b=this.Ef(E),Array.isArray(b))for(var z=b.length,tt=this.je,rt=0;rt<z;rt++)b[rt]===a&&(Na(this,"linkLabelKeys",$o,tt,E,a,a,rt,rt),x.push(E))}for(y=0;y<x.length;y++)hu(this,a,x[y]);gi(x)}},Ct.em=function(a){Ui.prototype.em.call(this,a);var y=this.lh(a);this.hc(y)===null&&uu(this,y,a)},Ct.qp=function(a){Ui.prototype.qp.call(this,a);var y=this.lh(a);hu(this,y,a)},Ct.ps=function(a){if(a===null)return"";var y=this.dj;if(y===""||(y=wa(a,y),y===void 0))return"";if(typeof y=="string")return y;ee("getCategoryForLinkData found a non-string category for "+a+": "+y)},no.prototype.getLinkCategoryForData=function(a){return this.ps(a)},no.prototype.lp=function(a,y){if(a!==null){var x=this.dj;if(x!=="")if(this.Jc(a)){var E=wa(a,x);E===void 0&&(E=""),E!==y&&(ta(a,x,y),Na(this,"linkCategory",To,x,a,E,y),typeof x=="string"&&this.La(a,x))}else ta(a,x,y)}},no.prototype.setLinkCategoryForData=function(a,y){this.lp(a,y)},Ct=no.prototype,Ct.lm=function(a,y){Ui.prototype.lm.call(this,a,y),this.mp(y,this.lh(a))};function IS(a,y,x){a.lp(x,a.ps(y)),a.wv(x,a.yx(y)),a.Bv(x,a.Bx(y)),a.Ls(x,a.Ef(y)),a.xv(x,a.zx(y)),a.Cv(x,a.Cx(y))}Ct.Wj=function(){return!0},Ct.ri=function(){return!0},Ct.xs=function(){return!0},Ct.Xj=function(){return!0},xe.Object.defineProperties(no.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(a){var y=this.Ri;y!==a&&(this.Ri=a,this.g("archetypeNodeData",y,a))}},linkFromKeyProperty:{get:function(){return this.lf},set:function(a){var y=this.lf;y!==a&&(this.lf=a,this.g("linkFromKeyProperty",y,a))}},linkToKeyProperty:{get:function(){return this.mf},set:function(a){var y=this.mf;y!==a&&(this.mf=a,this.g("linkToKeyProperty",y,a))}},linkFromPortIdProperty:{get:function(){return this.ej},set:function(a){var y=this.ej;y!==a&&(this.ej=a,this.g("linkFromPortIdProperty",y,a))}},linkToPortIdProperty:{get:function(){return this.fj},set:function(a){var y=this.fj;y!==a&&(this.fj=a,this.g("linkToPortIdProperty",y,a))}},linkLabelKeysProperty:{get:function(){return this.je},set:function(a){var y=this.je;y!==a&&(this.je=a,this.g("linkLabelKeysProperty",y,a))}},linkDataArray:{get:function(){return this.md},set:function(a){var y=this.md;if(y!==a){this.wb.clear();for(var x=a.length,E=0;E<x;E++){var b=a[E];Ke(b)||ee("GraphLinksModel.linkDataArray must only contain Objects, not: "+b),Xi(b)}if(this.md=a,this.linkKeyProperty!==""){for(E=new cn,b=0;b<x;b++){var z=a[b],tt=this.Ac(z);tt===void 0||this.wb.I(tt)!==null?E.add(z):this.wb.add(tt,z)}for(E=E.iterator;E.next();)b=E.value,this.Bs(b),z=this.Ac(b),z!==void 0&&this.wb.add(z,b)}for(E=new xn,b=0;b<x;b++)E.add(a[b]);for(this.$f=E,Na(this,"linkDataArray",To,"linkDataArray",this,y,a),y=0;y<x;y++)my(this,a[y])}}},linkKeyProperty:{get:function(){return this.Jh},set:function(a){var y=this.Jh;if(y!==a){this.Jh=a,this.wb.clear();for(var x=this.linkDataArray.length,E=0;E<x;E++){var b=this.linkDataArray[E],z=this.Ac(b);z===void 0&&(this.Bs(b),z=this.Ac(b)),z!==void 0&&this.wb.add(z,b)}this.g("linkKeyProperty",y,a)}}},makeUniqueLinkKeyFunction:{get:function(){return this.cl},set:function(a){var y=this.cl;y!==a&&(this.cl=a,this.g("makeUniqueLinkKeyFunction",y,a))}},copyLinkDataFunction:{get:function(){return this.Ak},set:function(a){var y=this.Ak;y!==a&&(this.Ak=a,this.g("copyLinkDataFunction",y,a))}},nodeIsGroupProperty:{get:function(){return this.jl},set:function(a){var y=this.jl;y!==a&&(this.jl=a,this.g("nodeIsGroupProperty",y,a))}},nodeGroupKeyProperty:{get:function(){return this.Je},set:function(a){var y=this.Je;y!==a&&(this.Je=a,this.g("nodeGroupKeyProperty",y,a))}},Ij:{get:function(){return this.Lm},set:function(a){this.Lm!==a&&(this.Lm=a)}},linkCategoryProperty:{get:function(){return this.dj},set:function(a){var y=this.dj;y!==a&&(this.dj=a,this.g("linkCategoryProperty",y,a))}},type:{get:function(){return"GraphLinksModel"}}}),no.prototype.setCategoryForLinkData=no.prototype.lp,no.prototype.getCategoryForLinkData=no.prototype.ps,no.prototype.assignAllDataProperties=no.prototype.Do,no.prototype.setGroupKeyForNodeData=no.prototype.mp,no.prototype.getGroupKeyForNodeData=no.prototype.lh,no.prototype.isGroupForNodeData=no.prototype.Yu,no.prototype.copyLinkData=no.prototype.Jo,no.prototype.mergeLinkDataArray=no.prototype.Zz,no.prototype.removeLinkDataCollection=no.prototype.lA,no.prototype.removeLinkData=no.prototype.bm,no.prototype.addLinkDataCollection=no.prototype.Ey,no.prototype.addLinkData=no.prototype.fi,no.prototype.containsLinkData=no.prototype.Jc,no.prototype.makeLinkDataKeyUnique=no.prototype.Bs,no.prototype.findLinkDataForKey=no.prototype.jh,no.prototype.setKeyForLinkData=no.prototype.Ks,no.prototype.getKeyForLinkData=no.prototype.Ac,no.prototype.removeLabelKeyForLinkData=no.prototype.Qx,no.prototype.addLabelKeyForLinkData=no.prototype.Bu,no.prototype.setLabelKeysForLinkData=no.prototype.Ls,no.prototype.getLabelKeysForLinkData=no.prototype.Ef,no.prototype.setToPortIdForLinkData=no.prototype.Cv,no.prototype.getToPortIdForLinkData=no.prototype.Cx,no.prototype.setFromPortIdForLinkData=no.prototype.xv,no.prototype.getFromPortIdForLinkData=no.prototype.zx,no.prototype.setToKeyForLinkData=no.prototype.Bv,no.prototype.getToKeyForLinkData=no.prototype.Bx,no.prototype.setFromKeyForLinkData=no.prototype.wv,no.prototype.getFromKeyForLinkData=no.prototype.yx,no.prototype.clear=no.prototype.clear;var p0=Object.freeze([]);no.className="GraphLinksModel",$l.GraphLinksModel=no,Ui.constructGraphLinksModel=Ui.constructGraphLinksModel=function(){return new no},Ui.initDiagramModel=gy=function(){return new no};function Ns(a,y){Ui.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",a!==void 0&&(Gn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}ye(Ns,Ui),Ns.constructGraphLinksModel=Ui.constructGraphLinksModel,Ns.prototype.cloneProtected=function(a){Ui.prototype.cloneProtected.call(this,a),a.Ke=this.Ke,a.Nm=this.Nm,a.nj=this.nj},Ct=Ns.prototype,Ct.toString=function(a){if(a===void 0&&(a=0),2<=a)return this.np();var y=(this.name!==""?this.name:"")+" TreeModel";if(0<a){y+=`
node data:`,a=this.nodeDataArray;for(var x=a.length,E=0;E<x;E++){var b=a[E];y+=" "+this.wa(b)+":"+Zi(b)}}return y},Ct.rm=function(){var a=Ui.prototype.rm.call(this),y="";return this.nodeParentKeyProperty!=="parent"&&typeof this.nodeParentKeyProperty=="string"&&(y+=`,
"nodeParentKeyProperty": `+this.quote(this.nodeParentKeyProperty)),a+y},Ct.gp=function(a){Ui.prototype.gp.call(this,a),a.nodeParentKeyProperty&&(this.nodeParentKeyProperty=a.nodeParentKeyProperty)},Ct.fp=function(a){a.nodeParentKeyProperty!==void 0&&a.nodeParentKeyProperty!==this.nodeParentKeyProperty&&ee("applyIncrementalJson cannot change Model properties"),Ui.prototype.fp.call(this,a)},Ct.Vl=function(a){return a},Ct.mh=function(a){if(a!==null){var y=this.Ke;if(y!==""&&(y=wa(a,y),y!==void 0)){if(pd(y))return y;ee("ParentKey value for node data "+a+" is not a number or a string: "+y)}}},Ct.qe=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Ke;if(x!=="")if(y=this.Vl(y),this.lb(a)){var E=wa(a,x);E!==y&&(hu(this,E,a),ta(a,x,y),this.hc(y)===null&&uu(this,y,a),Na(this,"nodeParentKey",To,x,a,E,y),typeof x=="string"&&this.La(a,x))}else ta(a,x,y)}},Ct.ss=function(a){if(a===null)return"";var y=this.nj;return y===""||(y=wa(a,y),y===void 0)?"":typeof y=="string"?y:(ee("getParentLinkCategoryForNodeData found a non-string category for "+a+": "+y),"")},Ns.prototype.getLinkCategoryForData=function(a){return this.ss(a)},Ns.prototype.Ms=function(a,y){if(a!==null){var x=this.nj;if(x!=="")if(this.lb(a)){var E=wa(a,x);E===void 0&&(E=""),E!==y&&(ta(a,x,y),Na(this,"parentLinkCategory",To,x,a,E,y),typeof x=="string"&&this.La(a,x))}else ta(a,x,y)}},Ns.prototype.setLinkCategoryForData=function(a,y){this.Ms(a,y)},Ns.prototype.copyNodeData=function(a){return a===null?null:(a=Ui.prototype.copyNodeData.call(this,a),this.Jj||this.Ke===""||wa(a,this.Ke)===void 0||ta(a,this.Ke,void 0),a)},Ns.prototype.setDataProperty=function(a,y,x){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,x);return}if(y===this.nodeCategoryProperty){this.jm(a,x);return}if(y===this.nodeParentKeyProperty){this.qe(a,x);return}}var E=wa(a,y);E!==x&&(ta(a,y,x),this.Fs(a,y,E,x))},Ct=Ns.prototype,Ct.jp=function(a,y){Ui.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y)},Ct.qv=function(a,y,x){if(this.mh(a)===y){var E=this.Ke;ta(a,E,x),Na(this,"nodeParentKey",To,E,a,y,x),typeof E=="string"&&this.La(a,E)}},Ct.fm=function(a){Ui.prototype.fm.call(this,a),a=this.wa(a);var y=vp(this,a);if(y!==null){var x=xi();for(y=y.iterator;y.next();){var E=y.value;if(this.lb(E)&&this.mh(E)===a){var b=this.Ke;Na(this,"nodeParentKey",To,b,E,a,a),typeof b=="string"&&this.La(E,b),x.push(E)}}for(y=0;y<x.length;y++)hu(this,a,x[y]);gi(x)}},Ct.em=function(a){Ui.prototype.em.call(this,a);var y=this.mh(a);y=this.Vl(y),this.hc(y)===null&&uu(this,y,a)},Ct.qp=function(a){Ui.prototype.qp.call(this,a);var y=this.mh(a);hu(this,y,a)},Ct.lm=function(a,y){Ui.prototype.lm.call(this,a,y),this.Ms(y,this.ss(a)),this.qe(y,this.mh(a))},Ct.Tl=function(){return!0},Ct.xs=function(){return!0},xe.Object.defineProperties(Ns.prototype,{nodeParentKeyProperty:{get:function(){return this.Ke},set:function(a){var y=this.Ke;y!==a&&(this.Ke=a,this.g("nodeParentKeyProperty",y,a))}},Jj:{get:function(){return this.Nm},set:function(a){this.Nm!==a&&(this.Nm=a)}},parentLinkCategoryProperty:{get:function(){return this.nj},set:function(a){var y=this.nj;y!==a&&(this.nj=a,this.g("parentLinkCategoryProperty",y,a))}},linkCategoryProperty:{get:function(){return this.parentLinkCategoryProperty},set:function(a){this.parentLinkCategoryProperty=a}},type:{get:function(){return"TreeModel"}}}),Ns.prototype.setParentLinkCategoryForNodeData=Ns.prototype.Ms,Ns.prototype.getParentLinkCategoryForNodeData=Ns.prototype.ss,Ns.prototype.setParentKeyForNodeData=Ns.prototype.qe,Ns.prototype.getParentKeyForNodeData=Ns.prototype.mh,Ns.className="TreeModel",$l.TreeModel=Ns;function aa(a){ea.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=tu,this.Ti=0,this.Zv=new Bt,this.Jp=this.me=0,this.Xr=new Cp,this.gt=this.mj=0,this.ty=600,this.eo=NaN,this.Cm=1,this.ro=0,this.ul=360,this.Rb=tu,this.K=Bs,this.nd=_f,this.hd=ly,this.tf=6,this.Nn=P0,a&&Object.assign(this,a)}ye(aa,ea),aa.prototype.cloneProtected=function(a){ea.prototype.cloneProtected.call(this,a),a.eo=this.eo,a.Cm=this.Cm,a.ro=this.ro,a.ul=this.ul,a.Rb=this.Rb,a.K=this.K,a.nd=this.nd,a.hd=this.hd,a.tf=this.tf,a.Nn=this.Nn},aa.prototype.qb=function(a){a.classType===aa?a===x0||a===w0||a===y0||a===S0||a===_f?this.sorting=a:a===ic||a===Xf||a===Bs||a===vd?this.direction=a:a===Ih||a===md||a===tu||a===eu?this.arrangement=a:(a===Zc||a===P0)&&(this.nodeDiameterFormula=a):ea.prototype.qb.call(this,a)},aa.prototype.createNetwork=function(){return new Jf(this)},aa.prototype.doLayout=function(a){if(this.network===null&&(this.network=this.makeNetwork(a)),this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin),a=this.network.vertexes,1>=a.count)a.count===1&&(a=a.first(),a.centerX=0,a.centerY=0);else{var y=new cn;y.addAll(a.iterator),a=new cn;var x=new cn,E=this.sort(y),b,z,tt=this.Jp,rt=this.arrangement,ot=this.nodeDiameterFormula,st=this.radius;(!isFinite(st)||0>=st)&&(st=NaN);var ut=this.aspectRatio;(!isFinite(ut)||0>=ut)&&(ut=1);var ft=this.startAngle;isFinite(ft)||(ft=0);var vt=this.sweepAngle;if((!isFinite(vt)||360<vt||1>vt)&&(vt=360),y=this.spacing,isFinite(y)||(y=NaN),rt===eu&&ot===Zc?rt=tu:rt===eu&&ot!==Zc&&(rt=this.arrangement),(this.direction===ic||this.direction===Xf)&&this.sorting!==_f){for(ot=0;!(ot>=E.length)&&(a.add(E.M(ot)),!(ot+1>=E.length));ot+=2)x.add(E.M(ot+1));this.direction===ic?(this.arrangement===eu&&a.reverse(),E=new cn,E.addAll(a),E.addAll(x)):(this.arrangement===eu&&x.reverse(),E=new cn,E.addAll(x),E.addAll(a))}ot=E.length;for(var xt=z=b=0;xt<E.length;xt++){var Pt=ft+vt*z*(this.direction===Bs?1:-1)/ot,Ft=E.M(xt).diameter;isNaN(Ft)&&(Ft=yd(E.M(xt),Pt)),360>vt&&(xt===0||xt===E.length-1)&&(Ft/=2),b+=Ft,z++}if(isNaN(st)||rt===eu){if(isNaN(y)&&(y=6),rt!==tu&&rt!==eu){for(z=-1/0,tt=0;tt<ot;tt++)xt=E.M(tt),b=E.M(tt===ot-1?0:tt+1),isNaN(xt.diameter)&&yd(xt,0),isNaN(b.diameter)&&yd(b,0),z=Math.max(z,(xt.diameter+b.diameter)/2);tt=z+y,rt===Ih?st=(z+y)/(2*Math.PI/ot):st=m0(this,tt*(360<=vt?ot:ot-1),ut,ft*Math.PI/180,vt*Math.PI/180)}else st=m0(this,b+(360<=vt?ot:ot-1)*(rt!==eu?y:1.6*y),ut,ft*Math.PI/180,vt*Math.PI/180);z=st*ut}else if(z=st*ut,xt=vy(this,st,z,ft*Math.PI/180,vt*Math.PI/180),isNaN(y))(rt===tu||rt===eu)&&(y=(xt-b)/(360<=vt?ot:ot-1));else if(rt===tu||rt===eu)xt=(xt-b)/(360<=vt?ot:ot-1),xt<y?(st=m0(this,b+y*(360<=vt?ot:ot-1),ut,ft*Math.PI/180,vt*Math.PI/180),z=st*ut):y=xt;else{for(tt=-1/0,b=0;b<ot;b++)Pt=E.M(b),Ft=E.M(b===ot-1?0:b+1),isNaN(Pt.diameter)&&yd(Pt,0),isNaN(Ft.diameter)&&yd(Ft,0),tt=Math.max(tt,(Pt.diameter+Ft.diameter)/2);tt+=y,b=m0(this,tt*(360<=vt?ot:ot-1),ut,ft*Math.PI/180,vt*Math.PI/180),b>st?(st=b,z=st*ut):tt=xt/(360<=vt?ot:ot-1)}if(this.kw=rt,this.lc=st,this.Zm=ut,this.lw=ft,this.Wp=vt,this.Ti=y,this.me=z,this.Jp=tt,y=E,E=this.kw,rt=this.lc,st=this.lw,ut=this.Wp,ft=this.Ti,vt=this.me,ot=this.Jp,this.direction!==ic&&this.direction!==Xf||E!==eu)if(this.direction===ic||this.direction===Xf){switch(tt=0,E){case md:tt=180*v0(this,rt,vt,st,ot)/Math.PI;break;case tu:ot=y=0,tt=a.first(),tt!==null&&(y=yd(tt,Math.PI/2)),tt=x.first(),tt!==null&&(ot=yd(tt,Math.PI/2)),tt=180*v0(this,rt,vt,st,ft+(y+ot)/2)/Math.PI;break;case Ih:tt=ut/y.length}if(this.direction===ic){switch(E){case md:Pp(this,a,st,vd);break;case tu:wp(this,a,st,vd);break;case Ih:xp(this,a,ut/2,st,vd)}switch(E){case md:Pp(this,x,st+tt,Bs);break;case tu:wp(this,x,st+tt,Bs);break;case Ih:xp(this,x,ut/2,st+tt,Bs)}}else{switch(E){case md:Pp(this,x,st,vd);break;case tu:wp(this,x,st,vd);break;case Ih:xp(this,x,ut/2,st,vd)}switch(E){case md:Pp(this,a,st+tt,Bs);break;case tu:wp(this,a,st+tt,Bs);break;case Ih:xp(this,a,ut/2,st+tt,Bs)}}}else switch(E){case md:Pp(this,y,st,this.direction);break;case tu:wp(this,y,st,this.direction);break;case Ih:xp(this,y,ut,st,this.direction);break;case eu:RS(this,y,ut,st,this.direction)}else RS(this,y,ut,st-ut/2,Bs)}this.updateParts(),this.network=null,this.isValidLayout=!0};function xp(a,y,x,E,b){var z=a.Wp,tt=a.lc;a=a.me,E=E*Math.PI/180,x=x*Math.PI/180;for(var rt=y.length,ot=0;ot<rt;ot++){var st=E+(b===Bs?ot*x/(360<=z?rt:rt-1):-(ot*x)/rt),ut=y.M(ot),ft=tt*Math.tan(st)/a;ft=Math.sqrt((tt*tt+a*a*ft*ft)/(1+ft*ft)),ut.centerX=ft*Math.cos(st),ut.centerY=ft*Math.sin(st),ut.actualAngle=180*st/Math.PI}}function wp(a,y,x,E){var b=a.lc,z=a.me,tt=a.Ti;x=x*Math.PI/180;for(var rt=y.length,ot=0;ot<rt;ot++){var st=y.M(ot),ut=y.M(ot===rt-1?0:ot+1),ft=z*Math.sin(x);st.centerX=b*Math.cos(x),st.centerY=ft,st.actualAngle=180*x/Math.PI,isNaN(st.diameter)&&yd(st,0),isNaN(ut.diameter)&&yd(ut,0),st=v0(a,b,z,E===Bs?x:-x,(st.diameter+ut.diameter)/2+tt),x+=E===Bs?st:-st}}function Pp(a,y,x,E){var b=a.lc,z=a.me,tt=a.Jp;x=x*Math.PI/180;for(var rt=y.length,ot=0;ot<rt;ot++){var st=y.M(ot);st.centerX=b*Math.cos(x),st.centerY=z*Math.sin(x),st.actualAngle=180*x/Math.PI,st=v0(a,b,z,E===Bs?x:-x,tt),x+=E===Bs?st:-st}}function RS(a,y,x,E,b){var z=a.Wp;if(a.mj=0,a.Xr=new Cp,360>x){for(z=E+(b===Bs?z:-z);0>z;)z+=360;z%=360,180<z&&(z-=360),z*=Math.PI/180,a.gt=z,jS(a,y,x,E,b)}else zS(a,y,x,E,b);a.Xr.commit(y)}function zS(a,y,x,E,b){var z=a.lc,tt=a.Ti,rt=a.Zm,ot=z*Math.cos(E*Math.PI/180),st=a.me*Math.sin(E*Math.PI/180),ut=y.Fa();if(ut.length===3)ut[0].centerX=z,ut[0].centerY=0,ut[1].centerX=ut[0].centerX-ut[0].width/2-ut[1].width/2-tt,ut[1].y=ut[0].y,ut[2].centerX=(ut[0].centerX+ut[1].centerX)/2,ut[2].y=ut[0].y-ut[2].height-tt;else if(ut.length===4)ut[0].centerX=z,ut[0].centerY=0,ut[2].centerX=-ut[0].centerX,ut[2].centerY=ut[0].centerY,ut[1].centerX=0,ut[1].y=Math.min(ut[0].y,ut[2].y)-ut[1].height-tt,ut[3].centerX=0,ut[3].y=Math.max(ut[0].y+ut[0].height+tt,ut[2].y+ut[2].height+tt);else{z=Bt.alloc();for(var ft=0;ft<ut.length&&(ut[ft].centerX=ot,ut[ft].centerY=st,!(ft>=ut.length-1));ft++)WS(a,ot,st,ut,ft,b,z)||HS(a,ot,st,ut,ft,b,z),ot=z.x,st=z.y;if(Bt.free(z),a.mj++,!(23<a.mj)){ot=ut[0].centerX,st=ut[0].centerY,z=ut[ut.length-1].centerX,ft=ut[ut.length-1].centerY;var vt=Math.abs(ot-z)-((ut[0].width+ut[ut.length-1].width)/2+tt),xt=Math.abs(st-ft)-((ut[0].height+ut[ut.length-1].height)/2+tt);tt=0,1>Math.abs(xt)?Math.abs(ot-z)<(ut[0].width+ut[ut.length-1].width)/2&&(tt=0):tt=0<xt?xt:1>Math.abs(vt)?0:vt,ot=Math.abs(z)>Math.abs(ft)?0<z!=st>ft:0<ft!=ot<z,(ot=b===Bs?ot:!ot)&&(tt=-Math.abs(tt),tt=Math.min(tt,-ut[ut.length-1].width),tt=Math.min(tt,-ut[ut.length-1].height)),a.Xr.compare(tt,ut),1<Math.abs(tt)&&(a.lc=8>a.mj?a.lc-tt/(2*Math.PI):5>ut.length&&10<tt?a.lc/2:a.lc-(0<tt?1.7:-2.3),a.me=a.lc*rt,zS(a,y,x,E,b))}}}function jS(a,y,x,E,b){for(var z=a.lc,tt=a.me,rt=a.Zm,ot=z*Math.cos(E*Math.PI/180),st=tt*Math.sin(E*Math.PI/180),ut=Bt.alloc(),ft=y.Fa(),vt=0;vt<ft.length&&(ft[vt].centerX=ot,ft[vt].centerY=st,!(vt>=ft.length-1));vt++)WS(a,ot,st,ft,vt,b,ut)||HS(a,ot,st,ft,vt,b,ut),ot=ut.x,st=ut.y;if(Bt.free(ut),a.mj++,!(23<a.mj)){if(ot=Math.atan2(st,ot),ot=b===Bs?a.gt-ot:ot-a.gt,ot=Math.abs(ot)<Math.abs(ot-2*Math.PI)?ot:ot-2*Math.PI,z=ot*(z+tt)/2,tt=a.Xr,Math.abs(z)<Math.abs(tt.Pl))for(tt.Pl=z,tt.mk=[],tt.tm=[],ot=0;ot<ft.length;ot++)tt.mk[ot]=ft[ot].bounds.x,tt.tm[ot]=ft[ot].bounds.y;1<Math.abs(z)&&(a.lc=8>a.mj?a.lc-z/(2*Math.PI):a.lc-(0<z?1.7:-2.3),a.me=a.lc*rt,jS(a,y,x,E,b))}}function WS(a,y,x,E,b,z,tt){var rt=a.lc,ot=a.me,st=0;a=(E[b].width+E[b+1].width)/2+a.Ti;var ut=!1;if(0<=x!=(z===Bs)){if(z=y+a,z>rt){if(z=y-a,z<-rt)return tt.x=z,tt.y=st,!1;ut=!0}}else if(z=y-a,z<-rt){if(z=y+a,z>rt)return tt.x=z,tt.y=st,!1;ut=!0}return st=Math.sqrt(1-Math.min(1,z*z/(rt*rt)))*ot,0>x!==ut&&(st=-st),Math.abs(x-st)>(E[b].height+E[b+1].height)/2?(tt.x=z,tt.y=st,!1):(tt.x=z,tt.y=st,!0)}function HS(a,y,x,E,b,z,tt){var rt=a.lc,ot=a.me,st=0;if(a=(E[b].height+E[b+1].height)/2+a.Ti,E=!1,0<=y!=(z===Bs)){if(z=x-a,z<-ot){if(z=x+a,z>ot){tt.x=st,tt.y=z;return}E=!0}}else if(z=x+a,z>ot){if(z=x-a,z<-ot){tt.x=st,tt.y=z;return}E=!0}st=Math.sqrt(1-Math.min(1,z*z/(ot*ot)))*rt,0>y!==E&&(st=-st),tt.x=st,tt.y=z}aa.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},aa.prototype.commitNodes=function(){var a=this.group!==null&&this.group.placeholder!==null&&this.group.isSubGraphExpanded,y=a?this.group.location.copy():null,x=this.actualCenter;a?x=new Bt(0,0):(x.x=this.arrangementOrigin.x+this.lc,x.y=this.arrangementOrigin.y+this.me);for(var E=this.network.vertexes.iterator;E.next();){var b=E.value;b.x+=x.x,b.y+=x.y,b.commit()}a&&(this.group.Va(),a=this.group.position.copy(),x=this.group.location.copy(),y=y.re(x.re(a)),this.group.move(y),this.Zv=y.re(a))},aa.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()};function vy(a,y,x,E,b){var z=a.ty;if(.001>Math.abs(a.Zm-1))return E!==void 0&&b!==void 0?b*y:2*Math.PI*y;a=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x;for(var tt=0,rt=E!==void 0&&b!==void 0?b/(z+1):Math.PI/(2*(z+1)),ot=0,st=0;st<=z;st++){E!==void 0&&b!==void 0?ot=E+st*b/z:ot=st*Math.PI/(2*z);var ut=Math.sin(ot);tt+=Math.sqrt(1-a*a*ut*ut)*rt}return E!==void 0&&b!==void 0?(y>x?y:x)*tt:4*(y>x?y:x)*tt}function m0(a,y,x,E,b){return y/(E!==void 0&&b!==void 0?vy(a,1,x,E,b):vy(a,1,x))}function v0(a,y,x,E,b){if(.001>Math.abs(a.Zm-1))return b/y;var z=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x,tt=0;a=2*Math.PI/(700*a.network.vertexes.count),y>x&&(E+=Math.PI/2);for(var rt=0;;rt++){var ot=Math.sin(E+rt*a);if(tt+=(y>x?y:x)*Math.sqrt(1-z*z*ot*ot)*a,tt>=b)return rt*a}}aa.prototype.sort=function(a){switch(this.sorting){case y0:break;case S0:a.reverse();break;case x0:a.sort(this.comparer);break;case w0:a.sort(this.comparer),a.reverse();break;case _f:return this.ak(Zx(a));default:ee("Invalid sorting type.")}return a};function Zx(a){for(var y=[],x=0;x<a.length;x++)y.push(0);x=new cn;for(var E=0;E<a.length;E++){var b=-1,z=-1;if(E===0)for(var tt=0;tt<a.length;tt++){var rt=a.M(tt).edgesCount;rt>b&&(b=rt,z=tt)}else for(tt=0;tt<a.length;tt++)rt=y[tt],rt>b&&(b=rt,z=tt);for(x.add(a.M(z)),y[z]=-1,z=a.M(z),tt=z.sourceEdges;tt.next();)b=a.indexOf(tt.value.fromVertex),0>b||0<=y[b]&&y[b]++;for(z=z.destinationEdges;z.next();)b=a.indexOf(z.value.toVertex),0>b||0<=y[b]&&y[b]++}return x}aa.prototype.ak=function(a){for(var y=[],x=0;x<a.length;x++){var E=a.M(x);y[x]=[];for(var b,z=E.destinationEdges;z.next();)b=a.indexOf(z.value.toVertex),b!==x&&0>y[x].indexOf(b)&&y[x].push(b);for(E=E.sourceEdges;E.next();)b=a.indexOf(E.value.fromVertex),b!==x&&0>y[x].indexOf(b)&&y[x].push(b)}for(z=[],x=0;x<y.length;x++)z[x]=0;x=[];var tt=[],rt=[];E=[],b=new cn;for(var ot=0,st=0;st<y.length;st++){var ut=y[st].length;if(ut===1)E.push(st);else if(ut===0)b.add(a.M(st));else{if(ot===0)x.push(st);else{for(var ft=ut=1/0,vt=-1,xt=[],Pt=0;Pt<x.length;Pt++)0>y[x[Pt]].indexOf(x[Pt===x.length-1?0:Pt+1])&&xt.push(Pt===x.length-1?0:Pt+1);if(xt.length===0)for(Pt=0;Pt<x.length;Pt++)xt.push(Pt);for(Pt=0;Pt<xt.length;Pt++){for(var Ft=xt[Pt],Xt=y[st],Wt=0,oe=0;oe<tt.length;oe++){var le=z[tt[oe]],ce=z[rt[oe]];if(le<ce){var Ae=le;le=ce}else Ae=ce;if(Ae<Ft&&Ft<=le)for(ce=0;ce<Xt.length;ce++){var Je=Xt[ce];0>x.indexOf(Je)||Ae<z[Je]&&z[Je]<le||Ae===z[Je]||le===z[Je]||Wt++}else for(ce=0;ce<Xt.length;ce++)Je=Xt[ce],0>x.indexOf(Je)||Ae<z[Je]&&z[Je]<le&&Ae!==z[Je]&&le!==z[Je]&&Wt++}for(Xt=Wt,oe=Wt=0;oe<y[st].length;oe++)Ae=x.indexOf(y[st][oe]),0<=Ae&&(Ae=Math.abs(Ft-(Ae>=Ft?Ae+1:Ae)),Wt+=Ae<x.length+1-Ae?Ae:x.length+1-Ae);for(oe=0;oe<tt.length;oe++)Ae=z[tt[oe]],le=z[rt[oe]],Ae>=Ft&&Ae++,le>=Ft&&le++,Ae>le&&(ce=le,le=Ae,Ae=ce),le-Ae<(x.length+2)/2==(Ae<Ft&&Ft<=le)&&Wt++;(Xt<ut||Xt===ut&&Wt<ft)&&(ut=Xt,ft=Wt,vt=Ft)}for(x.splice(vt,0,st),ut=0;ut<x.length;ut++)z[x[ut]]=ut;for(ut=0;ut<y[st].length;ut++)ft=y[st][ut],0<=x.indexOf(ft)&&(tt.push(st),rt.push(ft))}ot++}}for(tt=x.length;;){for(z=!0,rt=0;rt<E.length;rt++)if(ot=E[rt],st=y[ot][0],ut=x.indexOf(st),0<=ut){for(vt=ft=0;vt<y[st].length;vt++)xt=x.indexOf(y[st][vt]),0>xt||xt===ut||(Pt=xt>ut?xt-ut:ut-xt,ft+=xt<ut!=Pt>tt-Pt?1:-1);x.splice(0>ft?ut:ut+1,0,ot),E.splice(rt,1),rt--}else z=!1;if(z)break;x.push(E[0]),E.splice(0,1)}for(y=0;y<x.length;y++)b.add(a.M(x[y]));return b},xe.Object.defineProperties(aa.prototype,{radius:{get:function(){return this.eo},set:function(a){this.eo!==a&&(0<a||isNaN(a))&&(this.eo=a,this.C())}},aspectRatio:{get:function(){return this.Cm},set:function(a){this.Cm!==a&&0<a&&(this.Cm=a,this.C())}},startAngle:{get:function(){return this.ro},set:function(a){this.ro!==a&&(this.ro=a,this.C())}},sweepAngle:{get:function(){return this.ul},set:function(a){this.ul!==a&&(0<a&&360>=a?this.ul=a:this.ul=360,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==eu&&a!==tu&&a!==md&&a!==Ih||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==Bs&&a!==vd&&a!==ic&&a!==Xf||(this.K=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==y0&&a!==S0&&a!==x0&&!w0&&a!==_f||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}},spacing:{get:function(){return this.tf},set:function(a){this.tf!==a&&(this.tf=a,this.C())}},nodeDiameterFormula:{get:function(){return this.Nn},set:function(a){this.Nn===a||a!==P0&&a!==Zc||(this.Nn=a,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 tu=new dn(aa,"ConstantSpacing",0),md=new dn(aa,"ConstantDistance",1),Ih=new dn(aa,"ConstantAngle",2),eu=new dn(aa,"Packed",3),Bs=new dn(aa,"Clockwise",4),vd=new dn(aa,"Counterclockwise",5),ic=new dn(aa,"BidirectionalLeft",6),Xf=new dn(aa,"BidirectionalRight",7),y0=new dn(aa,"Forwards",8),S0=new dn(aa,"Reverse",9),x0=new dn(aa,"Ascending",10),w0=new dn(aa,"Descending",11),_f=new dn(aa,"Optimized",12),P0=new dn(aa,"Pythagorean",13),Zc=new dn(aa,"Circular",14);aa.className="CircularLayout",aa.ConstantSpacing=tu,aa.ConstantDistance=md,aa.ConstantAngle=Ih,aa.Packed=eu,aa.Clockwise=Bs,aa.Counterclockwise=vd,aa.BidirectionalLeft=ic,aa.BidirectionalRight=Xf,aa.Forwards=y0,aa.Reverse=S0,aa.Ascending=x0,aa.Descending=w0,aa.Optimized=_f,aa.Pythagorean=P0,aa.Circular=Zc;function Cp(){this.Pl=-1/0,this.tm=this.mk=null}Cp.prototype.compare=function(a,y){if(0<a&&0>this.Pl||Math.abs(a)<Math.abs(this.Pl)&&!(0>a&&0<this.Pl))for(this.Pl=a,this.mk=[],this.tm=[],a=0;a<y.length;a++)this.mk[a]=y[a].bounds.x,this.tm[a]=y[a].bounds.y},Cp.prototype.commit=function(a){if(this.mk!==null&&this.tm!==null)for(var y=0;y<this.mk.length;y++){var x=a.M(y);x.x=this.mk[y],x.y=this.tm[y]}},Cp.className="VertexArrangement";function Jf(a){zo.call(this,a)}ye(Jf,zo),Jf.prototype.createVertex=function(){return new Ep(this)},Jf.prototype.createEdge=function(){return new C0(this)},Jf.className="CircularNetwork";function Ep(a){Ia.call(this,a),this.u=this.Si=NaN}ye(Ep,Ia);function yd(a,y){var x=a.network;if(x===null)return NaN;if(x=x.layout,x===null)return NaN;if(x.arrangement===eu)if(x.nodeDiameterFormula===Zc)a.Si=Math.max(a.width,a.height);else{if(x=Math.abs(Math.sin(y)),y=Math.abs(Math.cos(y)),x===0)return a.width;if(y===0)return a.height;a.Si=Math.min(a.height/x,a.width/y)}else a.Si=x.nodeDiameterFormula===Zc?Math.max(a.width,a.height):Math.sqrt(a.width*a.width+a.height*a.height);return a.Si}xe.Object.defineProperties(Ep.prototype,{diameter:{get:function(){return this.Si},set:function(a){this.Si!==a&&(this.Si=a)}},actualAngle:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}}}),Ep.className="CircularVertex";function C0(a){nl.call(this,a)}ye(C0,nl),C0.className="CircularEdge";function ls(a){ea.call(this),this.ah=null,this.An=0,this.$d=new zt(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,a&&Object.assign(this,a)}ye(ls,ea),ls.prototype.cloneProtected=function(a){ea.prototype.cloneProtected.call(this,a),a.$d.assign(this.$d),a.Bm=this.Bm,a.sf=this.sf,a.td=this.td,a.dl=this.dl,a.$m=this.$m,a.Zf=this.Zf,a.In=this.In,a.fo=this.fo,a.Hk=this.Hk,a.Gk=this.Gk,a.Ek=this.Ek,a.Fk=this.Fk,a.Vm=this.Vm,a.Um=this.Um},ls.prototype.createNetwork=function(){return new Vc(this)},ls.prototype.doLayout=function(a){if(this.network===null&&(this.network=this.makeNetwork(a)),a=this.maxIterations,0<this.network.vertexes.count){this.network.Ko();for(var y=this.network.vertexes.iterator;y.next();){var x=y.value;x.charge=this.electricalCharge(x),x.mass=this.gravitationalMass(x)}for(y=this.network.edges.iterator;y.next();)x=y.value,x.stiffness=this.springStiffness(x),x.length=this.springLength(x);if(this.Cu(),this.An=0,this.needsClusterLayout()){y=this.network,x=y.Zx();for(var E=x.iterator;E.next();){this.network=E.value;for(var b=this.network.vertexes.iterator;b.next();){var z=b.value;z.Vd=z.vertexes.count,z.sh=1,z.Hj=null,z.We=null}ZS(this,0,a)}this.network=y;var tt=E=x.iterator;E=this.arrangementSpacing;var rt=tt.count,ot=!0;z=b=0;for(var st=xi(),ut=0;ut<rt+y.vertexes.count+2;ut++)st[ut]=null;rt=0,tt.reset();for(var ft=ue.alloc();tt.next();)if(ut=tt.value,this.computeBounds(ut,ft),ot)ot=!1,b=ft.x+ft.width/2,z=ft.y+ft.height/2,st[0]=new Bt(ft.x+ft.width+E.width,ft.y),st[1]=new Bt(ft.x,ft.y+ft.height+E.height),rt=2;else{var vt=VS(st,rt,b,z,ft.width,ft.height,E),xt=st[vt],Pt=new Bt(xt.x+ft.width+E.width,xt.y),Ft=new Bt(xt.x,xt.y+ft.height+E.height);for(vt+1<rt&&st.splice(vt+1,0,null),st[vt]=Pt,st[vt+1]=Ft,rt++,vt=xt.x-ft.x,xt=xt.y-ft.y,ut=ut.vertexes.iterator;ut.next();)Pt=ut.value,Pt.centerX+=vt,Pt.centerY+=xt}for(ue.free(ft),ut=y.vertexes.iterator;ut.next();)tt=ut.value,vt=tt.bounds,2>rt?(b=vt.x+vt.width/2,z=vt.y+vt.height/2,st[0]=new Bt(vt.x+vt.width+E.width,vt.y),st[1]=new Bt(vt.x,vt.y+vt.height+E.height),rt=2):(ot=VS(st,rt,b,z,vt.width,vt.height,E),ft=st[ot],xt=new Bt(ft.x+vt.width+E.width,ft.y),vt=new Bt(ft.x,ft.y+vt.height+E.height),ot+1<rt&&st.splice(ot+1,0,null),st[ot]=xt,st[ot+1]=vt,rt++,tt.centerX=ft.x+tt.width/2,tt.centerY=ft.y+tt.height/2);for(gi(st),E=x.iterator;E.next();){for(x=E.value,b=x.vertexes.iterator;b.next();)y.dh(b.value);for(x=x.edges.iterator;x.next();)y.Bo(x.value)}}KS(this,a),this.updateParts()}this.dl=a,this.network=null,this.isValidLayout=!0},ls.prototype.needsClusterLayout=function(){if(3>this.network.vertexes.count)return!1;for(var a=0,y=0,x=this.network.vertexes.first().bounds,E=this.network.vertexes.iterator;E.next();){if(E.value.bounds.Yc(x)&&(a++,2<a))return!0;if(10<y)break;y++}return!1},ls.prototype.computeBounds=function(a,y){var x=!0;for(a=a.vertexes.iterator;a.next();){var E=a.value;x?(x=!1,y.set(E.bounds)):y.ed(E.bounds)}return y};function ZS(a,y,x){if(Vx(a,y)){var E=a.Zf;a.Zf*=1+1/(y+1);var b=Gx(a,y),z=Math.max(0,Math.max(Math.min(a.network.vertexes.count,x*(y+1)/11),10));for(a.maxIterations+=z,ZS(a,y+1,x),KS(a,z),Kx(a,b),y=b.vertexes.Fa(),y.sort(function(tt,rt){return tt===null||rt===null||tt===rt?0:rt.Vd-tt.Vd}),x=0;x<y.length;x++)Yx(a,y[x]);a.Zf=E}}function Vx(a,y){if(10<y||3>a.network.vertexes.count)return!1;for(a.ah=a.network.vertexes.Fa(),a=a.ah,a.sort(function(x,E){return x===null||E===null||x===E?0:E.Vd-x.Vd}),y=a.length-1;0<=y&&1>=a[y].Vd;)y--;return 1<a.length-y}function Gx(a,y){for(var x=a.network,E=new Vc(a),b=0;b<a.ah.length;b++){var z=a.ah[b];if(1<z.Vd){E.dh(z);var tt=new YS;tt.Rs=z.Vd,tt.Ss=z.width,tt.Qs=z.height,tt.Sv=z.focus.x,tt.Tv=z.focus.y,z.We===null&&(z.We=new cn),z.We.add(tt),z.sv=z.We.count-1}else break}for(z=x.edges.iterator;z.next();){var rt=z.value;b=rt.fromVertex,tt=rt.toVertex,b.network===E&&tt.network===E?E.Bo(rt):b.network===E?(rt=b.Hj,rt===null&&(rt=new cn,b.Hj=rt),rt.add(tt),b.Vd--,b.sh+=tt.sh):tt.network===E&&(rt=tt.Hj,rt===null&&(rt=new cn,tt.Hj=rt),rt.add(b),tt.Vd--,tt.sh+=b.sh)}for(b=E.edges.iterator;b.next();)z=b.value,z.length*=Math.max(1,me.sqrt((z.fromVertex.sh+z.toVertex.sh)/(4*y+1)));for(y=E.vertexes.iterator;y.next();){b=y.value;var ot=b.Hj;if(ot!==null&&0<ot.count&&(tt=b.We.M(b.We.count-1).Rs-b.Vd,!(0>=tt))){for(var st=rt=0,ut=ot.count-tt;ut<ot.count;ut++){var ft=ot.M(ut),vt=null;for(z=ft.edges.iterator;z.next();){var xt=z.value;if(xt.Ax(ft)===b){vt=xt;break}}vt!==null&&(st+=vt.length,rt+=ft.width*ft.height)}z=b.centerX,ot=b.centerY,ut=b.width,ft=b.height,vt=b.focus,xt=ut*ft,1>xt&&(xt=1),rt=me.sqrt((rt+xt+st*st*4/(tt*tt))/xt),tt=(rt-1)*ut/2,rt=(rt-1)*ft/2,b.bounds=new ue(z-vt.x-tt,ot-vt.y-rt,ut+2*tt,ft+2*rt),b.focus=new Bt(vt.x+tt,vt.y+rt)}}return a.network=E,x}function Kx(a,y){for(var x=a.network.vertexes.iterator;x.next();){var E=x.value;if(E.network=y,E.We!==null){var b=E.We.M(E.sv);E.Vd=b.Rs;var z=b.Sv,tt=b.Tv;E.bounds=new ue(E.centerX-z,E.centerY-tt,b.Ss,b.Qs),E.focus=new Bt(z,tt),E.sv--}}for(x=a.network.edges.iterator;x.next();)x.value.network=y;a.network=y}function Yx(a,y){var x=y.Hj;if(x!==null&&x.count!==0){var E=y.centerX,b=y.centerY,z=y.width,tt=y.height;y.We!==null&&0<y.We.count&&(tt=y.We.M(0),z=tt.Ss,tt=tt.Qs),z=me.sqrt(z*z+tt*tt)/2;for(var rt=!1,ot=tt=0,st=0,ut=y.vertexes.iterator;ut.next();){var ft=ut.value;1>=ft.Vd?ot++:(rt=!0,st++,tt+=Math.atan2(y.centerY-ft.centerY,y.centerX-ft.centerX))}if(ot!==0){for(0<st&&(tt/=st),st=y=0,y=rt?2*Math.PI/(ot+1):2*Math.PI/ot,ot%2===0&&(st=y/2),1<x.count&&x.sort(function(xt,Pt){return xt===null||Pt===null||xt===Pt?0:Pt.width*Pt.height-xt.width*xt.height}),rt=ot%2===0?0:1,x=x.iterator;x.next();)if(ot=x.value,!(1<ot.Vd||a.isFixed(ot))){for(ut=null,ft=ot.edges.iterator;ft.next();){ut=ft.value;break}ft=ot.width;var vt=ot.height;ft=me.sqrt(ft*ft+vt*vt)/2,ut=z+ut.length+ft,ft=tt+(y*(rt/2>>1)+st)*(rt%2===0?1:-1),ot.centerX=E+ut*Math.cos(ft),ot.centerY=b+ut*Math.sin(ft),rt++}}}}function VS(a,y,x,E,b,z,tt){var rt=9e19,ot=-1,st=0;t:for(;st<y;st++){var ut=a[st],ft=ut.x-x,vt=ut.y-E;if(ft=ft*ft+vt*vt,ft<rt){for(vt=st-1;0<=vt;vt--)if(a[vt].y>ut.y&&a[vt].x-ut.x<b+tt.width)continue t;for(vt=st+1;vt<y;vt++)if(a[vt].x>ut.x&&a[vt].y-ut.y<z+tt.height)continue t;ot=st,rt=ft}}return ot}ls.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},ls.prototype.addComments=function(a){var y=a.node;if(y!==null)for(y=y.Mu();y.next();){var x=y.value;if(x.category==="Comment"&&x.isVisible()){var E=this.network.ki(x);E===null&&(E=this.network.Bl(x)),E.charge=this.defaultCommentElectricalCharge,x=null;for(var b=E.destinationEdges;b.next();){var z=b.value;if(z.toVertex===a){x=z;break}}if(x===null){for(b=E.sourceEdges;b.next();)if(z=b.value,z.fromVertex===a){x=z;break}}x===null&&(x=this.network.Zj(a,E,null)),x.length=this.defaultCommentSpringLength}}};function GS(a,y){var x=a.bounds,E=x.x;a=x.y;var b=x.width;x=x.height;var z=y.bounds,tt=z.x;y=z.y;var rt=z.width;return z=z.height,E+b<tt?a>y+z?(x=E+b-tt,a=a-y-z,me.sqrt(x*x+a*a)):a+x<y?(E=E+b-tt,a=a+x-y,me.sqrt(E*E+a*a)):tt-(E+b):E>tt+rt?a>y+z?(x=E-tt-rt,a=a-y-z,me.sqrt(x*x+a*a)):a+x<y?(E=E-tt-rt,a=a+x-y,me.sqrt(E*E+a*a)):E-(tt+rt):a>y+z?a-(y+z):a+x<y?y-(a+x):.1}function KS(a,y){for(a.ah=null,y=a.An+y;a.An<y&&(a.An++,Ux(a)););a.ah=null}function Ux(a){a.ah===null&&(a.ah=a.network.vertexes.Fa());var y=a.ah;if(0>=y.length)return!1;var x=y[0];x.forceX=0,x.forceY=0;for(var E=x.centerX,b=E,z=x=x.centerY,tt=1;tt<y.length;tt++){var rt=y[tt];rt.forceX=0,rt.forceY=0;var ot=rt.centerX;rt=rt.centerY,E=Math.min(E,ot),b=Math.max(b,ot),x=Math.min(x,rt),z=Math.max(z,rt)}(b=b-E>z-x)?y.sort(function(Ft,Xt){return Ft===null||Xt===null||Ft===Xt?0:Ft.centerX-Xt.centerX}):y.sort(function(Ft,Xt){return Ft===null||Xt===null||Ft===Xt?0:Ft.centerY-Xt.centerY}),x=a.Zf;var st=E=rt=0;for(z=0;z<y.length;z++){tt=y[z],E=tt.bounds,rt=tt.focus,ot=E.x+rt.x;var ut=E.y+rt.y;E=tt.charge*a.electricalFieldX(ot,ut),st=tt.charge*a.electricalFieldY(ot,ut),E+=tt.mass*a.gravitationalFieldX(ot,ut),st+=tt.mass*a.gravitationalFieldY(ot,ut),tt.forceX+=E,tt.forceY+=st;for(var ft=z+1;ft<y.length;ft++){var vt=y[ft];if(vt!==tt){E=vt.bounds,rt=vt.focus,st=E.x+rt.x;var xt=E.y+rt.y;if(ot-st>x||st-ot>x){if(b)break}else if(ut-xt>x||xt-ut>x){if(!b)break}else{var Pt=GS(tt,vt);1>Pt?(E=a.randomNumberGenerator,E===null&&(a.randomNumberGenerator=E=new E0),Pt=E.random(),rt=E.random(),ot>st?(E=Math.abs(vt.bounds.right-tt.bounds.x),E=(1+E)*Pt):ot<st?(E=Math.abs(vt.bounds.x-tt.bounds.right),E=-(1+E)*Pt):(E=Math.max(vt.width,tt.width),E=(1+E)*Pt-E/2),ut>xt?(st=Math.abs(vt.bounds.bottom-tt.bounds.y),st=(1+st)*rt):ot<st?(st=Math.abs(vt.bounds.y-tt.bounds.bottom),st=-(1+st)*rt):(st=Math.max(vt.height,tt.height),st=(1+st)*rt-st/2)):(rt=-(tt.charge*vt.charge)/(Pt*Pt),E=(st-ot)/Pt*rt,st=(xt-ut)/Pt*rt),tt.forceX+=E,tt.forceY+=st,vt.forceX-=E,vt.forceY-=st}}}}for(b=a.network.edges.iterator;b.next();)rt=b.value,x=rt.fromVertex,z=rt.toVertex,tt=x.bounds,ot=x.focus,E=tt.x+ot.x,tt=tt.y+ot.y,ut=z.bounds,ft=z.focus,ot=ut.x+ft.x,ut=ut.y+ft.y,ft=GS(x,z),1>ft?(ft=a.randomNumberGenerator,ft===null&&(a.randomNumberGenerator=ft=new E0),rt=ft.random(),ft=ft.random(),E=(E>ot?1:-1)*(1+(z.width>x.width?z.width:x.width))*rt,st=(tt>ut?1:-1)*(1+(z.height>x.height?z.height:x.height))*ft):(rt=rt.stiffness*(ft-rt.length),E=(ot-E)/ft*rt,st=(ut-tt)/ft*rt),x.forceX+=E,x.forceY+=st,z.forceX-=E,z.forceY-=st;for(b=E=0;b<y.length;b++)x=y[b],a.isFixed(x)?a.moveFixedVertex(x):E=Math.max(E,a.moveVertex(x)||0);return E>a.epsilonDistance*a.epsilonDistance}ls.prototype.moveVertex=function(a){var y=a.forceX,x=a.forceY,E=this.moveLimit;return y<-E?y=-E:y>E&&(y=E),x<-E?x=-E:x>E&&(x=E),a.centerX+=y,a.centerY+=x,y*y+x*x},ls.prototype.moveFixedVertex=function(){},ls.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},ls.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=bo,y.toSpot=bo)}},ls.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var x=ue.alloc();this.computeBounds(this.network,x),y=this.arrangementOrigin,a=y.x-x.x,y=y.y-x.y,ue.free(x)}x=ue.alloc();for(var E=this.network.vertexes.iterator;E.next();){var b=E.value;(a!==0||y!==0)&&(x.assign(b.bounds),x.x+=a,x.y+=y,b.bounds=x),b.commit()}ue.free(x)},ls.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},ls.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},ls.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},ls.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},ls.prototype.electricalFieldX=function(){return 0},ls.prototype.electricalFieldY=function(){return 0},ls.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},ls.prototype.gravitationalFieldX=function(){return 0},ls.prototype.gravitationalFieldY=function(){return 0},ls.prototype.isFixed=function(a){return a.isFixed},xe.Object.defineProperties(ls.prototype,{currentIteration:{get:function(){return this.An}},arrangementSpacing:{get:function(){return this.$d},set:function(a){this.$d.D(a)||(this.$d.assign(a),this.C())}},arrangesToOrigin:{get:function(){return this.Bm},set:function(a){this.Bm!==a&&(this.Bm=a,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(a){this.sf!==a&&(this.sf=a,this.C())}},comments:{get:function(){return this.td},set:function(a){this.td!==a&&(this.td=a,this.C())}},maxIterations:{get:function(){return this.dl},set:function(a){this.dl!==a&&0<=a&&(this.dl=a,this.C())}},epsilonDistance:{get:function(){return this.$m},set:function(a){this.$m!==a&&0<a&&(this.$m=a,this.C())}},infinityDistance:{get:function(){return this.Zf},set:function(a){this.Zf!==a&&1<a&&(this.Zf=a,this.C())}},moveLimit:{get:function(){return this.In},set:function(a){this.In!==a&&1<a&&(this.In=a,this.C())}},randomNumberGenerator:{get:function(){return this.fo},set:function(a){this.fo!==a&&(a!==null&&typeof a.random!="function"&&ee('ForceDirectedLayout.randomNumberGenerator must have a "random()" function on it: '+a),this.fo=a)}},defaultSpringStiffness:{get:function(){return this.Hk},set:function(a){this.Hk!==a&&(this.Hk=a,this.C())}},defaultSpringLength:{get:function(){return this.Gk},set:function(a){this.Gk!==a&&(this.Gk=a,this.C())}},defaultElectricalCharge:{get:function(){return this.Ek},set:function(a){this.Ek!==a&&(this.Ek=a,this.C())}},defaultGravitationalMass:{get:function(){return this.Fk},set:function(a){this.Fk!==a&&(this.Fk=a,this.C())}},defaultCommentSpringLength:{get:function(){return this.Vm},set:function(a){this.Vm!==a&&(this.Vm=a,this.C())}},defaultCommentElectricalCharge:{get:function(){return this.Um},set:function(a){this.Um!==a&&(this.Um=a,this.C())}}}),ls.className="ForceDirectedLayout";function YS(){this.Tv=this.Sv=this.Qs=this.Ss=this.Rs=0}YS.className="ForceDirectedSubnet";function Vc(a){zo.call(this,a)}ye(Vc,zo),Vc.prototype.createVertex=function(){return new Ap(this)},Vc.prototype.createEdge=function(){return new Lp(this)},Vc.className="ForceDirectedNetwork";function Ap(a){Ia.call(this,a),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}ye(Ap,Ia),xe.Object.defineProperties(Ap.prototype,{isFixed:{get:function(){return this.ia},set:function(a){this.ia!==a&&(this.ia=a)}},charge:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},mass:{get:function(){return this.Ha},set:function(a){this.Ha!==a&&(this.Ha=a)}},forceX:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}},forceY:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}}}),Ap.className="ForceDirectedVertex";function Lp(a){nl.call(this,a),this.j=this.o=NaN}ye(Lp,nl),xe.Object.defineProperties(Lp.prototype,{stiffness:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a)}},length:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a)}}}),Lp.className="ForceDirectedEdge";function E0(){var a=0;a===void 0&&(a=42),this.seed=a,this.ay=48271,this.ey=2147483647,this.Q=44488.07041494893,this.gy=3399,this.by=1/2147483647,this.random()}E0.prototype.random=function(){var a=this.seed%this.Q*this.ay-this.seed/this.Q*this.gy;return 0<a?this.seed=a:this.seed=a+this.ey,this.seed*this.by},E0.className="RandomNumberGenerator";function Eo(a){ea.call(this),this.kc=this.ie=25,this.K=0,this.Dk=k0,this.Zk=F0,this.Qk=D0,this.bj=4,this.rk=N0,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 Bt,this.He=[],this.He.length=100,this.xw=this.ve=0,a&&Object.assign(this,a)}ye(Eo,ea),Eo.prototype.cloneProtected=function(a){ea.prototype.cloneProtected.call(this,a),a.ie=this.ie,a.kc=this.kc,a.K=this.K,a.Dk=this.Dk,a.Zk=this.Zk,a.Qk=this.Qk,a.bj=this.bj,a.rk=this.rk,a.bg=this.bg,a.sf=this.sf,a.Cn=this.Cn,a.ve=this.ve},Eo.prototype.qb=function(a){a.classType===Eo?a.name.indexOf("Aggressive")===0?this.aggressiveOption=a:a.name.indexOf("Cycle")===0?this.cycleRemoveOption=a:a.name.indexOf("Init")===0?this.initializeOption=a:a.name.indexOf("Layer")===0?this.layeringOption=a:ee("Unknown enum value: "+a):ea.prototype.qb.call(this,a)},Eo.prototype.createNetwork=function(){return new qf(this)},Eo.prototype.doLayout=function(a){for(this.network===null&&(this.network=this.makeNetwork(a)),this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin),this.Iq=-1,this.Md=this.Hn=0,this.fl=this.Jn=this.kj=null,a=0;a<this.He.length;a++)this.He[a]=null;if(0<this.network.vertexes.count){for(this.network.Ko(),this.cycleRemoveOption!==Mp&&this.removeCycles(),a=this.network.vertexes.iterator;a.next();)a.value.layer=-1;for(this.Ia=-1,this.assignLayers(),a.reset();a.next();)this.Ia=Math.max(this.Ia,a.value.layer);this.cycleRemoveOption===Mp&&this.removeCycles(),a=this.network;for(var y=[],x=a.edges.iterator;x.next();){var E=x.value;E.valid=!1,y.push(E)}for(x=0;x<y.length;x++){E=y[x];var b=E.fromVertex,z=E.toVertex;if(!(E.valid||(b.node===null&&b.data===null||z.node===null&&z.data===null)&&b.layer===z.layer)){var tt=0,rt=0,ot=0,st=0;if(E.link!==null){if(rt=E.link,rt===null)continue;var ut=b.node;if(tt=z.node,ut===null||tt===null)continue;var ft=rt.fromNode;ot=rt.toNode;for(var vt=rt.fromPort;vt!==null&&!vt.Ed();)vt=vt.panel;for(rt=rt.toPort;rt!==null&&!rt.Ed();)rt=rt.panel;if(E.rev){st=ft;var xt=vt;ft=ot,vt=rt,ot=st,rt=xt}var Pt=b.focus;st=z.focus;var Ft=E.rev?z.bounds:b.bounds;xt=Bt.alloc(),ut!==ft?Ft.w()&&ft.isVisible()?ft.actualBounds.w()?(Dh(ft,vt,Ri,xt),xt.x+=ft.actualBounds.x-Ft.x,xt.y+=ft.actualBounds.y-Ft.y):(Dh(ft,vt,Ri,xt),xt.w()||xt.assign(Pt)):xt.assign(Pt):Ft.w()?(Dh(ft,vt,Ri,xt),xt.w()||xt.assign(Pt)):xt.assign(Pt),ft=E.rev?b.bounds:z.bounds,ut=Bt.alloc(),tt!==ot?ft.w()&&ot.isVisible()?ot.actualBounds.w()?(Dh(ot,rt,Ri,ut),ut.x+=ot.actualBounds.x-ft.x,ut.y+=ot.actualBounds.y-ft.y):(Dh(ot,rt,Ri,ut),ut.w()||ut.assign(st)):ut.assign(st):ft.w()?(Dh(ot,rt,Ri,ut),ut.w()||ut.assign(st)):ut.assign(st),this.K===90||this.K===270?(tt=Math.round((xt.x-Pt.x)/this.kc),ot=xt.x,rt=Math.round((ut.x-st.x)/this.kc),st=ut.x):(tt=Math.round((xt.y-Pt.y)/this.kc),ot=xt.y,rt=Math.round((ut.y-st.y)/this.kc),st=ut.y),Bt.free(xt),Bt.free(ut),E.portFromColOffset=tt,E.portFromPos=ot,E.portToColOffset=rt,E.portToPos=st}else E.portFromColOffset=0,E.portFromPos=0,E.portToColOffset=0,E.portToPos=0;if(xt=b.layer,ut=z.layer,ft=0,Ft=E.link,Ft!==null){var Xt=Ft.fromPort,Wt=Ft.toPort;if(Xt!==null&&Wt!==null){var oe=Ft.fromNode;if(vt=Ft.toNode,oe!==null&&vt!==null){var le=M0(this,!0),ce=M0(this,!1),Ae=this.setsPortSpots?le:Ft.computeSpot(!0,Xt);Pt=this.setsPortSpots?ce:Ft.computeSpot(!1,Wt);var Je=Ft.isOrthogonal;Ae.$c()&&Ae.Hf(ce)&&Pt.$c()&&Pt.Hf(le)?ft=0:(le=Ft.getLinkPoint(oe,Xt,Ae,!0,Je,vt,Wt,Bt.alloc()),ce=Ft.getLinkDirection(oe,Xt,le,Ae,!0,Je,vt,Wt),Bt.free(le),Ae.ys()||ce!==ex(this,E,!0)?this.setsPortSpots&&oe!==null&&oe.ports.count===1&&E.rev&&(ft+=1):ft+=1,Ae=Ft.getLinkPoint(vt,Wt,Pt,!1,Je,oe,Xt,Bt.alloc()),Ft=Ft.getLinkDirection(vt,Wt,Ae,Pt,!1,Je,oe,Xt),Bt.free(Ae),Pt.ys()||Ft!==ex(this,E,!1)?this.setsPortSpots&&vt!==null&&vt.ports.count===1&&E.rev&&(ft+=2):ft+=2)}}}if(vt=ft,ft=vt===1||vt===3,(vt=vt===2||vt===3)&&(Pt=a.createVertex(),Pt.node=null,Pt.Dj=1,Pt.layer=xt,Pt.near=b,a.dh(Pt),b=a.Zj(b,Pt,E.link),b.valid=!1,b.rev=E.rev,b.portFromColOffset=tt,b.portToColOffset=0,b.portFromPos=ot,b.portToPos=0,b=Pt),Ft=1,ft&&Ft--,xt-ut>Ft&&0<xt){for(E.valid=!1,Pt=a.createVertex(),Pt.node=null,Pt.Dj=2,Pt.layer=xt-1,a.dh(Pt),b=a.Zj(b,Pt,E.link),b.valid=!0,b.rev=E.rev,b.portFromColOffset=vt?0:tt,b.portToColOffset=0,b.portFromPos=vt?0:ot,b.portToPos=0,b=Pt,xt--;xt-ut>Ft&&0<xt;)Pt=a.createVertex(),Pt.node=null,Pt.Dj=3,Pt.layer=xt-1,a.dh(Pt),b=a.Zj(b,Pt,E.link),b.valid=!0,b.rev=E.rev,b.portFromColOffset=0,b.portToColOffset=0,b.portFromPos=0,b.portToPos=0,b=Pt,xt--;b=a.Zj(Pt,z,E.link),b.valid=!ft,ft&&(Pt.near=z),b.rev=E.rev,b.portFromColOffset=0,b.portToColOffset=rt,b.portFromPos=0,b.portToPos=st}else E.valid=!0}}for(a=this.tc=[],y=0;y<=this.Ia;y++)a[y]=0;for(y=this.network.vertexes.iterator;y.next();)y.value.index=-1;for(this.initializeIndices(),this.Iq=-1,x=this.Md=this.Hn=0;x<=this.Ia;x++)a[x]>a[this.Md]&&(this.Iq=a[x]-1,this.Md=x),a[x]<a[this.Hn]&&(this.Hn=x);for(this.fl=[],x=0;x<a.length;x++)this.fl[x]=[];for(y.reset();y.next();)a=y.value,this.fl[a.layer][a.index]=a;for(this.Ra=-1,a=0;a<=this.Ia;a++){for(y=Sd(this,a),x=0,E=this.tc[a],z=0;z<E;z++)b=y[z],x+=this.nodeMinColumnSpace(b,!0),b.column=x,x+=1,x+=this.nodeMinColumnSpace(b,!1);this.Ra=Math.max(this.Ra,x-1),xd(this,a,y)}this.reduceCrossings(),this.straightenAndPack(),this.updateParts()}this.network=null,this.isValidLayout=!0},Eo.prototype.linkMinLength=function(){return 1};function yy(a){var y=a.fromVertex.node||a.fromVertex.data;return a=a.toVertex.node||a.toVertex.data,y===null&&a===null?8:y===null||a===null?4:1}Eo.prototype.nodeMinLayerSpace=function(a,y){return a.node===null&&a.data===null?0:this.K===90||this.K===270?y?a.focus.y+10:a.bounds.height-a.focus.y+10:y?a.focus.x+10:a.bounds.width-a.focus.x+10},Eo.prototype.nodeMinColumnSpace=function(a,y){if(a.node===null&&a.data===null)return 0;var x=y?a.ev:a.dv;return x!==null?x:(x=this.K,x===90||x===270?y?a.ev=a.focus.x/this.kc+1|0:a.dv=(a.bounds.width-a.focus.x)/this.kc+1|0:y?a.ev=a.focus.y/this.kc+1|0:a.dv=(a.bounds.height-a.focus.y)/this.kc+1|0)};function Zs(a){a.kj===null&&(a.kj=[]);for(var y=0,x=a.network.vertexes.iterator;x.next();){var E=x.value;a.kj[y]=E.layer,y++,a.kj[y]=E.column,y++,a.kj[y]=E.index,y++}return a.kj}function Ml(a,y){var x=0;for(a=a.network.vertexes.iterator;a.next();){var E=a.value;E.layer=y[x],x++,E.column=y[x],x++,E.index=y[x],x++}}function US(a,y,x){var E=Sd(a,y),b=a.tc[y];(a.Jn===null||a.Jn.length<b*b)&&(a.Jn=[]);for(var z=a.Jn,tt=0;tt<b;tt++){var rt=0,ot=E[tt],st=ot.near;if(st!==null&&st.layer===ot.layer)if(ot=st.index,ot>tt)for(var ut=tt+1;ut<ot;ut++){var ft=E[ut];ft.near===st&&ft.Dj===st.Dj||rt++}else for(ut=tt-1;ut>ot;ut--)ft=E[ut],ft.near===st&&ft.Dj===st.Dj||rt++;var vt;if(0<=x)for(ot=E[tt].sourceEdgesArrayAccess,st=0;st<ot.length;st++){var xt=ot[st];if(xt.valid&&xt.fromVertex.layer!==y)for(ft=xt.fromVertex.index,ut=xt.portToPos,xt=xt.portFromPos,vt=st+1;vt<ot.length;vt++){var Pt=ot[vt];if(Pt.valid&&Pt.fromVertex.layer!==y){var Ft=Pt.fromVertex.index,Xt=Pt.portToPos;Pt=Pt.portFromPos,ut<Xt&&(ft>Ft||ft===Ft&&xt>Pt)&&rt++,Xt<ut&&(Ft>ft||Ft===ft&&Pt>xt)&&rt++}}}if(0>=x){for(ot=E[tt].destinationEdgesArrayAccess,st=0;st<ot.length;st++)if(xt=ot[st],xt.valid&&xt.toVertex.layer!==y)for(ft=xt.toVertex.index,ut=xt.portToPos,xt=xt.portFromPos,vt=st+1;vt<ot.length;vt++)Pt=ot[vt],Pt.valid&&Pt.toVertex.layer!==y&&(Ft=Pt.toVertex.index,Xt=Pt.portToPos,Pt=Pt.portFromPos,xt<Pt&&(ft>Ft||ft===Ft&&ut>Xt)&&rt++,Pt<xt&&(Ft>ft||Ft===ft&&Xt>ut)&&rt++)}for(z[tt*b+tt]=rt,ot=tt+1;ot<b;ot++){var Wt=0,oe=0;if(0<=x){rt=E[tt].sourceEdgesArrayAccess;var le=E[ot].sourceEdgesArrayAccess;for(st=0;st<rt.length;st++)if(xt=rt[st],xt.valid&&xt.fromVertex.layer!==y)for(ft=xt.fromVertex.index,xt=xt.portFromPos,vt=0;vt<le.length;vt++)Pt=le[vt],Pt.valid&&Pt.fromVertex.layer!==y&&(Ft=Pt.fromVertex.index,Pt=Pt.portFromPos,(ft<Ft||ft===Ft&&xt<Pt)&&oe++,(Ft<ft||Ft===ft&&Pt<xt)&&Wt++)}if(0>=x){for(rt=E[tt].destinationEdgesArrayAccess,le=E[ot].destinationEdgesArrayAccess,st=0;st<rt.length;st++)if(xt=rt[st],xt.valid&&xt.toVertex.layer!==y)for(ft=xt.toVertex.index,ut=xt.portToPos,vt=0;vt<le.length;vt++)Pt=le[vt],Pt.valid&&Pt.toVertex.layer!==y&&(Ft=Pt.toVertex.index,Xt=Pt.portToPos,(ft<Ft||ft===Ft&&ut<Xt)&&oe++,(Ft<ft||Ft===ft&&Xt<ut)&&Wt++)}z[tt*b+ot]=Wt,z[ot*b+tt]=oe}}return xd(a,y,E),z}Eo.prototype.countCrossings=function(){for(var a=0,y=0;y<=this.Ia;y++)for(var x=US(this,y,1),E=this.tc[y],b=0;b<E;b++)for(var z=b;z<E;z++)a+=x[b*E+z];return a};function A0(a){for(var y=0,x=0;x<=a.Ia;x++){for(var E=a,b=x,z=Sd(E,b),tt=E.tc[b],rt=0,ot=0;ot<tt;ot++){var st=z[ot].destinationEdgesArrayAccess;if(st!==null)for(var ut=0;ut<st.length;ut++){var ft=st[ut];if(ft.valid&&ft.toVertex.layer!==b){var vt=ft.fromVertex.column+ft.portFromColOffset,xt=ft.toVertex.column+ft.portToColOffset;rt+=(Math.abs(vt-xt)+1)*yy(ft)}}}xd(E,b,z),y+=rt}return y}Eo.prototype.normalize=function(){var a=1/0;this.Ra=-1;for(var y=this.network.vertexes.iterator;y.next();){var x=y.value;a=Math.min(a,x.column-this.nodeMinColumnSpace(x,!0)),this.Ra=Math.max(this.Ra,x.column+this.nodeMinColumnSpace(x,!1))}for(y.reset();y.next();)y.value.column-=a;this.Ra-=a};function Sy(a,y,x){for(var E=Sd(a,y),b=a.tc[y],z=[],tt=0;tt<b;tt++){var rt=E[tt],ot=null;0>=x&&(ot=rt.sourceEdgesArrayAccess);var st=null;0<=x&&(st=rt.destinationEdgesArrayAccess);var ut=0,ft=0,vt=rt.near;if(vt!==null&&vt.layer===rt.layer&&(ut+=vt.column-1,ft++),ot!==null)for(vt=0;vt<ot.length;vt++){rt=ot[vt];var xt=rt.fromVertex;rt.valid&&!rt.rev&&xt.layer!==y&&(ut+=xt.column,ft++)}if(st!==null)for(ot=0;ot<st.length;ot++)rt=st[ot],vt=rt.toVertex,rt.valid&&!rt.rev&&vt.layer!==y&&(ut+=vt.column,ft++);z[tt]=ft===0?-1:ut/ft}return xd(a,y,E),z}function XS(a,y,x){for(var E=Sd(a,y),b=a.tc[y],z=[],tt=0;tt<b;tt++){var rt=E[tt],ot=null;0>=x&&(ot=rt.sourceEdgesArrayAccess);var st=null;0<=x&&(st=rt.destinationEdgesArrayAccess);var ut=0,ft=[],vt=rt.near;if(vt!==null&&vt.layer===rt.layer&&(ft[ut]=vt.column-1,ut++),rt=void 0,ot!==null)for(vt=0;vt<ot.length;vt++){rt=ot[vt];var xt=rt.fromVertex;rt.valid&&!rt.rev&&xt.layer!==y&&(ft[ut]=xt.column+rt.portFromColOffset,ut++)}if(st!==null)for(ot=0;ot<st.length;ot++)rt=st[ot],vt=rt.toVertex,rt.valid&&!rt.rev&&vt.layer!==y&&(ft[ut]=vt.column+rt.portToColOffset,ut++);ut===0?z[tt]=-1:(ft.sort(function(Pt,Ft){return Pt-Ft}),st=ut>>1,z[tt]=ut&1?ft[st]:ft[st-1]+ft[st]>>1)}return xd(a,y,E),z}function bp(a,y,x,E,b,z){if(y.component===E){if(y.component=x,b)for(var tt=y.destinationEdges;tt.next();){var rt=tt.value,ot=rt.toVertex,st=y.layer-ot.layer;rt=a.linkMinLength(rt),st===rt&&bp(a,ot,x,E,b,z)}if(z)for(tt=y.sourceEdges;tt.next();)rt=tt.value,ot=rt.fromVertex,st=ot.layer-y.layer,rt=a.linkMinLength(rt),st===rt&&bp(a,ot,x,E,b,z)}}function xy(a,y,x,E,b,z){if(y.component===E){if(y.component=x,b)for(var tt=y.destinationEdges;tt.next();)xy(a,tt.value.toVertex,x,E,b,z);if(z)for(y=y.sourceEdges;y.next();)xy(a,y.value.fromVertex,x,E,b,z)}}Eo.prototype.removeCycles=function(){for(var a=this.network.edges.iterator;a.next();)a.value.rev=!1;switch(this.Dk){default:case Cy:a=this.network;var y=0,x=a.vertexes.count-1,E=[];E.length=x+1;for(var b=a.vertexes.iterator;b.next();)b.value.valid=!0;for(;Xx(a)!==null;){for(b=_S(a);b!==null;)E[x]=b,x--,b.valid=!1,b=_S(a);for(b=JS(a);b!==null;)E[y]=b,y++,b.valid=!1,b=JS(a);b=null;for(var z=0,tt=this.network.vertexes.iterator;tt.next();){var rt=tt.value;if(rt.valid){for(var ot=0,st=rt.destinationEdges;st.next();)st.value.toVertex.valid&&ot++;st=0;for(var ut=rt.sourceEdges;ut.next();)ut.value.fromVertex.valid&&st++;(b===null||z<ot-st)&&(b=rt,z=ot-st)}}b!==null&&(E[y]=b,y++,b.valid=!1)}for(y=0;y<a.vertexes.count;y++)E[y].index=y;for(E=a.edges.iterator;E.next();)y=E.value,y.fromVertex.index>y.toVertex.index&&(a.gm(y),y.rev=!0);break;case k0:for(E=this.network.vertexes.iterator;E.next();)a=E.value,a.Ll=-1,a.finish=-1;for(a=this.network.edges.iterator;a.next();)a.value.forest=!1;for(this.Kn=0,E.reset();E.next();)y=E.value,y.sourceEdges.count===0&&wy(this,y);for(E.reset();E.next();)y=E.value,y.Ll===-1&&wy(this,y);for(a.reset();a.next();)E=a.value,E.forest||(y=E.fromVertex,x=y.finish,b=E.toVertex,z=b.finish,b.Ll<y.Ll&&x<z&&(this.network.gm(E),E.rev=!0));break;case Mp:for(a=this.network,y=a.vertexes.iterator,E=1/0;y.next();)E=Math.min(E,y.value.layer);if(1/0>E){if(0>E)for(y.reset();y.next();)y.value.layer-=E;for(E=[],y.reset();y.next();)x=y.value,b=E[x.layer],b===void 0?E[x.layer]=[x]:b.push(x);for(x=y=0;x<E.length;x++)if(b=E[x],!b||b.length===0)y++;else if(0<x)for(z=0;z<b.length;z++)b[z].layer-=y;for(E=a.edges.iterator;E.next();)y=E.value,y.fromVertex.layer<y.toVertex.layer&&(a.gm(y),y.rev=!0)}}};function Xx(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid)return y}return null}function _S(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid){for(var x=!0,E=y.destinationEdges;E.next();)if(E.value.toVertex.valid){x=!1;break}if(x)return y}}return null}function JS(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid){for(var x=!0,E=y.sourceEdges;E.next();)if(E.value.fromVertex.valid){x=!1;break}if(x)return y}}return null}function wy(a,y){y.Ll=a.Kn,a.Kn++;for(var x=y.destinationEdges;x.next();){var E=x.value,b=E.toVertex;b.Ll===-1&&(E.forest=!0,wy(a,b))}y.finish=a.Kn,a.Kn++}Eo.prototype.assignLayers=function(){switch(this.Zk){case Ey:QS(this);break;case Ay:for(var a,y=this.network.vertexes.iterator;y.next();)a=$S(this,y.value),this.Ia=Math.max(a,this.Ia);for(y.reset();y.next();)a=y.value,a.layer=this.Ia-a.layer;break;default:case F0:for(QS(this),y=this.network.vertexes.iterator;y.next();)y.value.valid=!1;for(y.reset();y.next();)a=y.value,a.sourceEdges.count===0&&tx(this,a);for(a=1/0,y.reset();y.next();)a=Math.min(a,y.value.layer);for(this.Ia=-1,y.reset();y.next();){var x=y.value;x.layer-=a,this.Ia=Math.max(this.Ia,x.layer)}}};function QS(a){for(var y=a.network.vertexes.iterator;y.next();){var x=qS(a,y.value);a.Ia=Math.max(x,a.Ia)}}function qS(a,y){var x=0;if(y.layer===-1){for(var E=y.destinationEdges;E.next();){var b=E.value,z=b.toVertex;b=a.linkMinLength(b),x=Math.max(x,qS(a,z)+b)}y.layer=x}else x=y.layer;return x}function $S(a,y){var x=0;if(y.layer===-1){for(var E=y.sourceEdges;E.next();){var b=E.value,z=b.fromVertex;b=a.linkMinLength(b),x=Math.max(x,$S(a,z)+b)}y.layer=x}else x=y.layer;return x}function tx(a,y){if(!y.valid){y.valid=!0;for(var x=y.destinationEdges;x.next();)tx(a,x.value.toVertex);for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(var E=y.sourceEdgesArrayAccess,b=E.length,z=0;z<b;z++){var tt=E[z],rt=tt.fromVertex,ot=tt.toVertex;tt=a.linkMinLength(tt),rt.layer-ot.layer>tt&&bp(a,rt,0,-1,!0,!1)}for(bp(a,y,1,-1,!0,!0);y.component!==0;){for(z=0,E=1/0,rt=0,ot=null,tt=a.network.vertexes.iterator;tt.next();){var st=tt.value;if(st.component===1){var ut=0,ft=!1,vt=st.sourceEdgesArrayAccess;b=vt.length;for(var xt=0;xt<b;xt++){var Pt=vt[xt],Ft=Pt.fromVertex;ut+=1,Ft.component!==1&&(z+=1,Ft=Ft.layer-st.layer,Pt=a.linkMinLength(Pt),E=Math.min(E,Ft-Pt))}for(vt=st.destinationEdgesArrayAccess,b=vt.length,xt=0;xt<b;xt++)Pt=vt[xt].toVertex,--ut,Pt.component!==1?--z:ft=!0;(ot===null||ut<rt)&&!ft&&(ot=st,rt=ut)}}if(0<z){for(x.reset();x.next();)b=x.value,b.component===1&&(b.layer+=E);y.component=0}else ot.component=0}for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(bp(a,y,1,-1,!0,!1);y.component!==0;){for(E=0,b=1/0,z=0,rt=null,ot=a.network.vertexes.iterator;ot.next();)if(tt=ot.value,tt.component===1){for(st=0,ut=!1,vt=tt.sourceEdgesArrayAccess,ft=vt.length,xt=0;xt<ft;xt++)Pt=vt[xt].fromVertex,st+=1,Pt.component!==1?E+=1:ut=!0;for(vt=tt.destinationEdgesArrayAccess,ft=vt.length,xt=0;xt<ft;xt++)Pt=vt[xt],Ft=Pt.toVertex,--st,Ft.component!==1&&(--E,Ft=tt.layer-Ft.layer,Pt=a.linkMinLength(Pt),b=Math.min(b,Ft-Pt));(rt===null||st>z)&&!ut&&(rt=tt,z=st)}if(0>E){for(x.reset();x.next();)E=x.value,E.component===1&&(E.layer-=b);y.component=0}else rt.component=0}}}function ex(a,y,x){return a.K===90?x&&!y.rev||!x&&y.rev?270:90:a.K===180?x&&!y.rev||!x&&y.rev?0:180:a.K===270?x&&!y.rev||!x&&y.rev?90:270:x&&!y.rev||!x&&y.rev?180:0}Eo.prototype.initializeIndices=function(){switch(this.Qk){default:case by:for(var a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;y.index=this.tc[x],this.tc[x]++}break;case D0:for(a=this.network.vertexes.iterator,y=this.Ia;0<=y;y--)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&nx(this,x);break;case Ly:for(a=this.network.vertexes.iterator,y=0;y<=this.Ia;y++)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&ix(this,x)}};function nx(a,y){var x=y.layer;for(y.index=a.tc[x],a.tc[x]++,y=y.destinationEdgesArrayAccess,x=!0;x;){x=!1;for(var E=0;E<y.length-1;E++){var b=y[E],z=y[E+1];b.portFromColOffset>z.portFromColOffset&&(x=!0,y[E]=z,y[E+1]=b)}}for(x=0;x<y.length;x++)E=y[x],E.valid&&(E=E.toVertex,E.index===-1&&nx(a,E))}function ix(a,y){var x=y.layer;y.index=a.tc[x],a.tc[x]++,y=y.sourceEdgesArrayAccess;for(var E=!0;E;)for(E=!1,x=0;x<y.length-1;x++){var b=y[x],z=y[x+1];b.portToColOffset>z.portToColOffset&&(E=!0,y[x]=z,y[x+1]=b)}for(x=0;x<y.length;x++)E=y[x],E.valid&&(E=E.fromVertex,E.index===-1&&ix(a,E))}Eo.prototype.reduceCrossings=function(){var a=this.countCrossings(),y=Zs(this),x,E;for(x=0;x<this.bj;x++){for(E=0;E<=this.Ia;E++)L0(this,E,1),Wl(this,E,1);var b=this.countCrossings();for(b<a&&(a=b,y=Zs(this)),E=this.Ia;0<=E;E--)L0(this,E,-1),Wl(this,E,-1);b=this.countCrossings(),b<a&&(a=b,y=Zs(this))}for(Ml(this,y),x=0;x<this.bj;x++){for(E=0;E<=this.Ia;E++)L0(this,E,0),Wl(this,E,0);for(b=this.countCrossings(),b<a&&(a=b,y=Zs(this)),E=this.Ia;0<=E;E--)L0(this,E,0),Wl(this,E,0);b=this.countCrossings(),b<a&&(a=b,y=Zs(this))}Ml(this,y);var z,tt,rt;switch(this.rk){case My:break;case ky:for(rt=a+1;(E=this.countCrossings())<rt;)for(rt=E,x=this.Ia;0<=x;x--)for(tt=0;tt<=x;tt++){for(z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=Wl(this,E,-1)||z;for(b=this.countCrossings(),b>=a?Ml(this,y):(a=b,y=Zs(this)),z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=Wl(this,E,1)||z;for(b=this.countCrossings(),b>=a?Ml(this,y):(a=b,y=Zs(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Wl(this,E,1)||z;for(b>=a?Ml(this,y):(a=b,y=Zs(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Wl(this,E,-1)||z;for(b>=a?Ml(this,y):(a=b,y=Zs(this)),z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=Wl(this,E,0)||z;for(b>=a?Ml(this,y):(a=b,y=Zs(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Wl(this,E,0)||z;b>=a?Ml(this,y):(a=b,y=Zs(this))}break;default:case N0:for(x=this.Ia,tt=0,rt=a+1;(E=this.countCrossings())<rt;){for(rt=E,z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=Wl(this,E,-1)||z;for(b=this.countCrossings(),b>=a?Ml(this,y):(a=b,y=Zs(this)),z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=Wl(this,E,1)||z;for(b=this.countCrossings(),b>=a?Ml(this,y):(a=b,y=Zs(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Wl(this,E,1)||z;for(b>=a?Ml(this,y):(a=b,y=Zs(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Wl(this,E,-1)||z;for(b>=a?Ml(this,y):(a=b,y=Zs(this)),z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=Wl(this,E,0)||z;for(b>=a?Ml(this,y):(a=b,y=Zs(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Wl(this,E,0)||z;b>=a?Ml(this,y):(a=b,y=Zs(this))}}Ml(this,y)};function L0(a,y,x){var E=Sd(a,y),b=a.tc[y],z=XS(a,y,x),tt=Sy(a,y,x);for(x=0;x<b;x++)tt[x]===-1&&(tt[x]=E[x].column),z[x]===-1&&(z[x]=E[x].column);for(var rt=!0,ot;rt;)for(rt=!1,x=0;x<b-1;x++)(z[x+1]<z[x]||z[x+1]===z[x]&&tt[x+1]<tt[x])&&(rt=!0,ot=z[x],z[x]=z[x+1],z[x+1]=ot,ot=tt[x],tt[x]=tt[x+1],tt[x+1]=ot,ot=E[x],E[x]=E[x+1],E[x+1]=ot);for(x=z=0;x<b;x++)ot=E[x],ot.index=x,z+=a.nodeMinColumnSpace(ot,!0),ot.column=z,z+=1,z+=a.nodeMinColumnSpace(ot,!1);xd(a,y,E)}function Wl(a,y,x){var E=Sd(a,y),b=a.tc[y];x=US(a,y,x);var z,tt=[];for(z=0;z<b;z++)tt[z]=-1;var rt=[];for(z=0;z<b;z++)rt[z]=-1;for(var ot=!1,st=!0;st;)for(st=!1,z=0;z<b-1;z++){var ut=x[E[z].index*b+E[z+1].index],ft=x[E[z+1].index*b+E[z].index],vt=0,xt=0,Pt=E[z].column,Ft=E[z+1].column,Xt=a.nodeMinColumnSpace(E[z],!0),Wt=a.nodeMinColumnSpace(E[z],!1),oe=a.nodeMinColumnSpace(E[z+1],!0),le=a.nodeMinColumnSpace(E[z+1],!1);Xt=Pt-Xt+oe,Wt=Ft-Wt+le;var ce=E[z].sourceEdges.iterator;for(ce.reset();ce.next();)if(oe=ce.value,le=oe.fromVertex,oe.valid&&le.layer===y){for(oe=0;E[oe]!==le;)oe++;oe<z&&(vt+=2*(z-oe),xt+=2*(z+1-oe)),oe===z+1&&(vt+=1),oe>z+1&&(vt+=4*(oe-z),xt+=4*(oe-(z+1)))}for(ce=E[z].destinationEdges.iterator,ce.reset();ce.next();)if(oe=ce.value,le=oe.toVertex,oe.valid&&le.layer===y){for(oe=0;E[oe]!==le;)oe++;oe===z+1&&(xt+=1)}for(ce=E[z+1].sourceEdges.iterator,ce.reset();ce.next();)if(oe=ce.value,le=oe.fromVertex,oe.valid&&le.layer===y){for(oe=0;E[oe]!==le;)oe++;oe<z&&(vt+=2*(z+1-oe),xt+=2*(z-oe)),oe===z&&(xt+=1),oe>z+1&&(vt+=4*(oe-(z+1)),xt+=4*(oe-z))}for(ce=E[z+1].destinationEdges.iterator,ce.reset();ce.next();)if(oe=ce.value,le=oe.toVertex,oe.valid&&le.layer===y){for(oe=0;E[oe]!==le;)oe++;oe===z&&(vt+=1)}oe=le=0,ce=tt[E[z].index];var Ae=rt[E[z].index],Je=tt[E[z+1].index],Ci=rt[E[z+1].index];ce!==-1&&(le+=Math.abs(ce-Pt),oe+=Math.abs(ce-Wt)),Ae!==-1&&(le+=Math.abs(Ae-Pt),oe+=Math.abs(Ae-Wt)),Je!==-1&&(le+=Math.abs(Je-Ft),oe+=Math.abs(Je-Xt)),Ci!==-1&&(le+=Math.abs(Ci-Ft),oe+=Math.abs(Ci-Xt)),(xt<vt-.5||xt===vt&&ft<ut-.5||xt===vt&&ft===ut&&oe<le-.5)&&(st=ot=!0,E[z].column=Wt,E[z+1].column=Xt,ut=E[z],E[z]=E[z+1],E[z+1]=ut)}for(z=0;z<b;z++)E[z].index=z;return xd(a,y,E),ot}Eo.prototype.straightenAndPack=function(){if(this.ve===0){var a=(this.bg&1)!==0,y=(this.bg&nw)!==0;if(1e3<this.network.edges.count&&y&&(a=!1),a){var x=[];for(y=0;y<=this.Ia;y++)x[y]=0;for(var E,b=this.network.vertexes.iterator;b.next();){var z=b.value;y=z.layer,E=z.column,z=this.nodeMinColumnSpace(z,!1),x[y]=Math.max(x[y],E+z)}for(b.reset();b.next();)z=b.value,y=z.layer,E=z.column,z.column=(8*(this.Ra-x[y])>>1)+8*E;this.Ra*=8}if(this.bg&2)for(x=!0;x;){for(x=!1,y=this.Md+1;y<=this.Ia;y++)x=Qf(this,y,1)||x;for(y=this.Md-1;0<=y;y--)x=Qf(this,y,-1)||x;x=Qf(this,this.Md,0)||x}if(this.bg&4){for(y=this.Md+1;y<=this.Ia;y++)Py(this,y,1);for(y=this.Md-1;0<=y;y--)Py(this,y,-1);Py(this,this.Md,0)}if(a&&(rx(this,-1),rx(this,1)),this.bg&2)for(x=!0;x;){for(x=!1,x=Qf(this,this.Md,0)||x,y=this.Md+1;y<=this.Ia;y++)x=Qf(this,y,0)||x;for(y=this.Md-1;0<=y;y--)x=Qf(this,y,0)||x}}else qx(this)};function Qf(a,y,x){for(var E=!1;_x(a,y,x);)E=!0;return E}function _x(a,y,x){var E,b=Sd(a,y),z=a.tc[y],tt=Sy(a,y,-1);if(0<x)for(E=0;E<z;E++)tt[E]=-1;var rt=Sy(a,y,1);if(0>x)for(E=0;E<z;E++)rt[E]=-1;for(var ot=!1,st=!0;st;)for(st=!1,E=0;E<z;E++){var ut=b[E].column,ft=a.nodeMinColumnSpace(b[E],!0),vt=a.nodeMinColumnSpace(b[E],!1),xt=0;0>E-1||ut-b[E-1].column-1>ft+a.nodeMinColumnSpace(b[E-1],!1)?xt=ut-1:xt=ut,ft=E+1>=z||b[E+1].column-ut-1>vt+a.nodeMinColumnSpace(b[E+1],!0)?ut+1:ut;var Pt=vt=0,Ft=0;if(0>=x)for(var Xt=b[E].sourceEdges.iterator;Xt.next();){var Wt=Xt.value,oe=Wt.fromVertex;if(Wt.valid&&oe.layer!==y){var le=yy(Wt),ce=Wt.portFromColOffset;Wt=Wt.portToColOffset,oe=oe.column,vt+=(Math.abs(ut+Wt-(oe+ce))+1)*le,Pt+=(Math.abs(xt+Wt-(oe+ce))+1)*le,Ft+=(Math.abs(ft+Wt-(oe+ce))+1)*le}}if(0<=x)for(Xt=b[E].destinationEdges.iterator;Xt.next();)Wt=Xt.value,oe=Wt.toVertex,Wt.valid&&oe.layer!==y&&(le=yy(Wt),ce=Wt.portFromColOffset,Wt=Wt.portToColOffset,oe=oe.column,vt+=(Math.abs(ut+ce-(oe+Wt))+1)*le,Pt+=(Math.abs(xt+ce-(oe+Wt))+1)*le,Ft+=(Math.abs(ft+ce-(oe+Wt))+1)*le);Wt=ce=le=0,Xt=tt[b[E].index],oe=rt[b[E].index],Xt!==-1&&(le+=Math.abs(Xt-ut),ce+=Math.abs(Xt-xt),Wt+=Math.abs(Xt-ft)),oe!==-1&&(le+=Math.abs(oe-ut),ce+=Math.abs(oe-xt),Wt+=Math.abs(oe-ft)),Pt<vt||Pt===vt&&ce<le?(st=ot=!0,b[E].column=xt):(Ft<vt||Ft===vt&&Wt<le)&&(st=ot=!0,b[E].column=ft)}return xd(a,y,b),a.normalize(),ot}function Py(a,y,x){var E=Sd(a,y),b=a.tc[y],z=XS(a,y,x),tt=[];for(x=0;x<b;x++)tt[x]=z[x];for(z=!0;z;)for(z=!1,x=0;x<b;x++){var rt=E[x].column,ot=a.nodeMinColumnSpace(E[x],!0),st=a.nodeMinColumnSpace(E[x],!1),ut=0;if(tt[x]===-1)if(x===0&&x===b-1)ut=rt;else if(x===0){var ft=E[x+1].column;ft-rt===st+a.nodeMinColumnSpace(E[x+1],!0)?ut=rt-1:ut=rt}else x===b-1?(ft=E[x-1].column,ut=rt-ft===ot+a.nodeMinColumnSpace(E[x-1],!1)?rt+1:rt):(ft=E[x-1].column,ot=ft+a.nodeMinColumnSpace(E[x-1],!1)+ot+1,ft=E[x+1].column,st=ft-a.nodeMinColumnSpace(E[x+1],!0)-st-1,ut=(ot+st)/2|0);else x===0&&x===b-1?ut=tt[x]:x===0?(ft=E[x+1].column,st=ft-a.nodeMinColumnSpace(E[x+1],!0)-st-1,ut=Math.min(tt[x],st)):x===b-1?(ft=E[x-1].column,ot=ft+a.nodeMinColumnSpace(E[x-1],!1)+ot+1,ut=Math.max(tt[x],ot)):(ft=E[x-1].column,ot=ft+a.nodeMinColumnSpace(E[x-1],!1)+ot+1,ft=E[x+1].column,st=ft-a.nodeMinColumnSpace(E[x+1],!0)-st-1,ot<tt[x]&&tt[x]<st?ut=tt[x]:ot>=tt[x]?ut=ot:st<=tt[x]&&(ut=st));ut!==rt&&(z=!0,E[x].column=ut)}xd(a,y,E),a.normalize()}function Jx(a,y){for(var x=!0,E=a.network.vertexes.iterator;E.next();){var b=E.value,z=a.nodeMinColumnSpace(b,!0),tt=a.nodeMinColumnSpace(b,!1);if(b.column-z<=y&&b.column+tt>=y){x=!1;break}}if(a=!1,x)for(E.reset();E.next();)x=E.value,x.column>y&&(--x.column,a=!0);return a}function Qx(a,y){var x=y+1,E,b=[],z=[];for(E=0;E<=a.Ia;E++)b[E]=!1,z[E]=!1;for(var tt=a.network.vertexes.iterator;tt.next();){E=tt.value;var rt=E.column-a.nodeMinColumnSpace(E,!0),ot=E.column+a.nodeMinColumnSpace(E,!1);rt<=y&&ot>=y&&(b[E.layer]=!0),rt<=x&&ot>=x&&(z[E.layer]=!0)}for(rt=!0,x=!1,E=0;E<=a.Ia;E++)rt=rt&&!(b[E]&&z[E]);if(rt)for(tt.reset();tt.next();)a=tt.value,a.column>y&&(--a.column,x=!0);return x}function rx(a,y){for(var x=0;x<=a.Ra;x++)for(;Jx(a,x););for(a.normalize(),x=0;x<a.Ra;x++)for(;Qx(a,x););a.normalize();var E;if(0<y)for(x=0;x<=a.Ra;x++){var b=Zs(a),z=A0(a);for(E=z+1;z<E;){E=z,ox(a,x,1);var tt=A0(a);tt>z?Ml(a,b):tt<z&&(z=tt,b=Zs(a))}}if(0>y)for(x=a.Ra;0<=x;x--)for(b=Zs(a),z=A0(a),E=z+1;z<E;)E=z,ox(a,x,-1),tt=A0(a),tt>z?Ml(a,b):tt<z&&(z=tt,b=Zs(a));a.normalize()}function ox(a,y,x){a.le=0;for(var E=a.network.vertexes.iterator;E.next();)E.value.component=-1;if(0<x)for(E.reset();E.next();){var b=E.value;b.column-a.nodeMinColumnSpace(b,!0)<=y&&(b.component=a.le)}if(0>x)for(E.reset();E.next();)b=E.value,b.column+a.nodeMinColumnSpace(b,!1)>=y&&(b.component=a.le);for(a.le++,E.reset();E.next();)y=E.value,y.component===-1&&(xy(a,y,a.le,-1,!0,!0),a.le++);var z;for(y=[],z=0;z<a.le*a.le;z++)y[z]=!1;for(b=[],z=0;z<(a.Ia+1)*(a.Ra+1);z++)b[z]=-1;for(E.reset();E.next();){z=E.value;for(var tt=z.layer,rt=Math.max(0,z.column-a.nodeMinColumnSpace(z,!0)),ot=Math.min(a.Ra,z.column+a.nodeMinColumnSpace(z,!1));rt<=ot;rt++)b[tt*(a.Ra+1)+rt]=z.component}for(z=0;z<=a.Ia;z++){if(0<x)for(tt=0;tt<a.Ra;tt++)b[z*(a.Ra+1)+tt]!==-1&&b[z*(a.Ra+1)+tt+1]!==-1&&b[z*(a.Ra+1)+tt]!==b[z*(a.Ra+1)+tt+1]&&(y[b[z*(a.Ra+1)+tt]*a.le+b[z*(a.Ra+1)+tt+1]]=!0);if(0>x)for(tt=a.Ra;0<tt;tt--)b[z*(a.Ra+1)+tt]!==-1&&b[z*(a.Ra+1)+tt-1]!==-1&&b[z*(a.Ra+1)+tt]!==b[z*(a.Ra+1)+tt-1]&&(y[b[z*(a.Ra+1)+tt]*a.le+b[z*(a.Ra+1)+tt-1]]=!0)}for(b=[],z=0;z<a.le;z++)b[z]=!0;for(tt=[],tt.push(0);tt.length!==0;)if(ot=tt[tt.length-1],tt.pop(),b[ot])for(b[ot]=!1,z=0;z<a.le;z++)y[ot*a.le+z]&&tt.splice(0,0,z);if(0<x)for(E.reset();E.next();)a=E.value,b[a.component]&&--a.column;if(0>x)for(E.reset();E.next();)x=E.value,b[x.component]&&(x.column+=1)}function qx(a){for(var y=xi(),x=a.fl.length,E=0;E<=x;E++)y[E]=[];for(E=a.network.vertexes.iterator;E.next();){var b=E.value;y[x-b.layer][b.index]=b}x=new xn,$x(y,x);var z=null,tt=null,rt=null,ot=null,st=(a.ve&1)!==0,ut=(a.ve&2)!==0,ft=(a.ve&4)!==0,vt=(a.ve&8)!==0;for(st&&(a.verticalAlignment(y,x,!0),z=b0(a,y,!0,!1)),y.reverse(),ft&&(a.verticalAlignment(y,x,!1),rt=b0(a,y,!1,!1)),E=Zn(y),b=E.next();!b.done;b=E.next())b.value.reverse();vt&&(a.verticalAlignment(y,x,!1),ot=b0(a,y,!1,!0)),y.reverse(),ut&&(a.verticalAlignment(y,x,!0),tt=b0(a,y,!0,!0)),gi(y),a.u(z,tt,rt,ot),a.network.vertexes.each(function(xt){var Pt=xi();st&&Pt.push(z.get(xt)),ut&&Pt.push(tt.get(xt)),ft&&Pt.push(rt.get(xt)),vt&&Pt.push(ot.get(xt)),Pt.sort(function(Xt,Wt){return Xt-Wt});var Ft=Pt.length;Ft=(Pt[Math.floor((Ft-1)/2)]+Pt[Math.ceil((Ft-1)/2)])/2,gi(Pt),xt.zc=Ft})}function $x(a,y){for(var x=a.length,E=1;E<x-1;E++)for(var b=0,z=0,tt=a[E],rt=a[E+1],ot=0;z<rt.length;ot++){var st=rt[ot];t:{if(st.node===null){var ut=Fy(st);if(0<ut.length){ut=ut[0].node===null;break t}}ut=!1}var ft=ut;if(ot===rt.length-1||ft){for(ut=tt.length-1,ft&&(ut=Fy(st)[0].index);z<=ot;){if(st=rt[z],!st.bo){ft=[];for(var vt=Zn(st.sourceEdgesArrayAccess),xt=vt.next();!xt.done;xt=vt.next())xt=xt.value,xt.valid&&ft.push(xt);st.bo=ft}for(st=Zn(st.bo),ft=st.next();!ft.done;ft=st.next())ft=ft.value,vt=ft.fromVertex.index,(vt<b||vt>ut)&&y.add(ft);z++}b=ut}}}Eo.prototype.verticalAlignment=function(a,y,x){tw(a),a=Zn(a);for(var E=a.next();!E.done;E=a.next()){var b=-1;E=Zn(E.value);for(var z=E.next();!z.done;z=E.next()){z=z.value;var tt=x?Fy(z):iw(z),rt=tt.length;if(0<rt){tt.sort(function(ft,vt){return ft.vi-vt.vi});var ot=(rt-1)/2;for(rt=Math.floor(ot),ot=Math.ceil(ot);rt<=ot;rt++)if(z.align===z){var st=tt[rt],ut=void 0;ut=x?B0(st,z):B0(z,st),!y.contains(ut)&&b<st.vi&&(st.align=z,z.root=st.root,z.align=st.root,b=st.vi)}}}}};function tw(a){for(var y=0;y<a.length;y++)for(var x=a[y],E=0;E<x.length;E++){var b=x[E];b.root=b,b.align=b,b.Tz=y,b.vi=E}}function b0(a,y,x,E){for(var b=a.K===90||a.K===270,z=Zn(y),tt=z.next();!tt.done;tt=z.next()){var rt=Zn(tt.value);for(tt=rt.next();!tt.done;tt=rt.next())tt=tt.value,tt.sd=tt,tt.shift=1/0,tt.zc=NaN,tt.qg=0}for(tt=a.K===90||a.K===270,z=Zn(y),rt=z.next();!rt.done;rt=z.next()){rt=Zn(rt.value);for(var ot=rt.next();!ot.done;ot=rt.next())if(ot=ot.value,ot.root===ot){for(var st=0,ut=ot;ut.align!==ot;){var ft=ut.align,vt=tt?ut.width:ut.height,xt=tt?ft.width:ft.height;if(x){var Pt=B0(ut,ft),Ft=Pt.portFromPos,Xt=Pt.portToPos;Pt.link!==null&&(ut.node&&ut.node!==Pt.link.fromNode&&(Ft=tt?ut.focusX:ut.focusY),ft.node&&ft.node!==Pt.link.toNode&&(Xt=tt?ft.focusX:ft.focusY))}else Pt=B0(ft,ut),Ft=Pt.portToPos,Xt=Pt.portFromPos,Pt.link!==null&&(ut.node&&ut.node!==Pt.link.toNode&&(Ft=tt?ut.focusX:ut.focusY),ft.node&&ft.node!==Pt.link.fromNode&&(Xt=tt?ft.focusX:ft.focusY));vt=E?ut.qg+(vt-Ft)-(xt-Xt):ut.qg+Ft-Xt,ft.qg=vt,st=Math.min(st,vt),ut=ut.align}ut=ot;do ut.qg=ut.qg-st,ut=ut.align;while(ut!==ot)}}for(x=Zn(y),tt=x.next();!tt.done;tt=x.next())for(z=Zn(tt.value),tt=z.next();!tt.done;tt=z.next())tt=tt.value,tt.root===tt&&ax(a,tt,y);for(x=0;x<y.length;x++)if(!(0>=y[x].length)&&(tt=y[x][0],tt.sd===tt)){tt.sd.shift===1/0&&(tt.sd.shift=0),tt=x,rt=0;do{for(z=y[tt][rt];z.align!==z.root;)z=z.align,tt++,0<z.vi&&(rt=sx(z,y),rt.sd.shift=Math.min(rt.sd.shift,z.sd.shift+z.zc+z.qg-(rt.zc+rt.qg+(b?rt.width:rt.height)+a.columnSpacing)));rt=z.vi+1}while(tt<y.length&&rt<y[tt].length&&z.sd===y[tt][rt].sd)}for(a=new on,y=Zn(y),tt=y.next();!tt.done;tt=y.next())for(x=Zn(tt.value),tt=x.next();!tt.done;tt=x.next())tt=tt.value,tt.zc=tt.zc+tt.sd.shift+tt.qg,z=b?tt.width:tt.height,a.add(tt,E?-tt.zc-z:tt.zc);return a}function ax(a,y,x){if(isNaN(y.zc)){y.zc=0;var E=y;do{if(0<E.vi){var b=sx(E,x),z=b.root;ax(a,z,x),y.sd===y&&(y.sd=z.sd);var tt=a.K===90||a.K===270?b.width:b.height;y.sd===z.sd&&(y.zc=Math.max(y.zc,z.zc+b.qg+tt-E.qg+a.columnSpacing))}E=E.align}while(E!==y);for(;E.align!==y;)E=E.align,E.zc=y.zc,E.sd=y.sd}}function sx(a,y){var x=a.Tz;return a=a.vi,1>a&&ee("Could not determine previous vertex in layer"),y[x][a-1]}Eo.prototype.u=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];x=-1;for(var E=xi(),b=xi(),z=1/0,tt=0;4>tt;tt++)if(y[tt]){var rt=ew(this,y[tt],E,b,tt);rt<z&&(x=tt,z=rt)}for(z={},tt=0;4>tt;z={delta:z.delta},tt++)y[tt]&&(z.delta=tt===0||tt===2?E[x]-E[tt]:b[x]-b[tt],z.delta!==0&&y[tt].each(function(ot){return function(st){st.value+=ot.delta}}(z)));gi(E),gi(b)};function ew(a,y,x,E,b){if(!y||y.count===0)return x[b]=0,E[b]=0,1/0;var z=1/0,tt=-1/0;return y.each(function(rt){var ot=rt.key;rt=rt.value,ot=a.K===90||a.K===270?ot.width:ot.height,rt<z&&(z=rt),rt+ot>tt&&(tt=rt+ot)}),x[b]=z,E[b]=tt,tt-z}Eo.prototype.commitLayout=function(){if(this.setsPortSpots)for(var a=M0(this,!0),y=M0(this,!1),x=this.network.edges.iterator;x.next();){var E=x.value.link;E!==null&&(E.fromSpot=a,E.toSpot=y)}this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()};function M0(a,y){return a.K===270?y?Fo:Go:a.K===90?y?Go:Fo:a.K===180?y?yo:vo:y?vo:yo}Eo.prototype.commitNodes=function(){this.he=[],this.Ld=[],this.Kd=[],this.Ta=[];for(var a=0;a<=this.Ia;a++)this.he[a]=0,this.Ld[a]=0,this.Kd[a]=0,this.Ta[a]=0;for(a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;this.he[x]=Math.max(this.he[x],this.nodeMinLayerSpace(y,!0)),this.Ld[x]=Math.max(this.Ld[x],this.nodeMinLayerSpace(y,!1))}y=0,x=this.ie;for(var E=0;E<=this.Ia;E++){var b=x;0>=this.he[E]+this.Ld[E]&&(b=0),0<E&&(y+=b/2),this.K===90||this.K===0?(y+=this.Ld[E],this.Kd[E]=y,y+=this.he[E]):(y+=this.he[E],this.Kd[E]=y,y+=this.Ld[E]),E<this.Ia&&(y+=b/2),this.Ta[E]=y}for(x=y,y=this.arrangementOrigin,E=0;E<=this.Ia;E++)this.K===270?this.Kd[E]=y.y+this.Kd[E]:this.K===90?(this.Kd[E]=y.y+x-this.Kd[E],this.Ta[E]=x-this.Ta[E]):this.K===180?this.Kd[E]=y.x+this.Kd[E]:(this.Kd[E]=y.x+x-this.Kd[E],this.Ta[E]=x-this.Ta[E]);x=this.ve!==0,a.reset(),E=this.K===270||this.K===90;for(var z=1/0,tt=b=1/0,rt=-1/0;a.next();){var ot=a.value,st=ot.layer,ut=ot.column|0;E?(tt=y.x+this.kc*ut,st=this.Kd[st]):(tt=this.Kd[st],st=y.y+this.kc*ut),ot.centerX=tt,ot.centerY=st,x&&isFinite(ot.zc)&&(E?ot.node?ot.x=y.x+ot.zc:ot.centerX=y.x+ot.zc:ot.node?ot.y=y.y+ot.zc:ot.centerY=y.y+ot.zc),z=Math.min(ot.x,z),b=Math.min(ot.y,b),E?(tt=z,rt=Math.max(rt,ot.bounds.right)):(tt=b,rt=Math.max(rt,ot.bounds.bottom))}for(this.xw=rt-tt,z=y.x-z,y=y.y-b,this.Rf=new Bt(x&&E?0:z,x&&!E?0:y),a.reset();a.next();)x=a.value,x.x+=z,x.y+=y,x.commit()},Eo.prototype.Gu=function(){for(var a=0,y=this.ie,x=0;x<=this.Ia;x++)a+=this.he[x],a+=this.Ld[x];a+=this.Ia*y,y=[],x=this.ve!==0?this.xw:this.kc*this.Ra;for(var E=this.maxLayer;0<=E;E--)this.K===270?E===0?y.push(new ue(0,0,x,Math.abs(this.Ta[0]))):y.push(new ue(0,this.Ta[E-1],x,Math.abs(this.Ta[E-1]-this.Ta[E]))):this.K===90?E===0?y.push(new ue(0,this.Ta[0],x,Math.abs(this.Ta[0]-a))):y.push(new ue(0,this.Ta[E],x,Math.abs(this.Ta[E-1]-this.Ta[E]))):this.K===180?E===0?y.push(new ue(0,0,Math.abs(this.Ta[0]),x)):y.push(new ue(this.Ta[E-1],0,Math.abs(this.Ta[E-1]-this.Ta[E]),x)):E===0?y.push(new ue(this.Ta[0],0,Math.abs(this.Ta[0]-a),x)):y.push(new ue(this.Ta[E],0,Math.abs(this.Ta[E-1]-this.Ta[E]),x));this.commitLayers(y,this.Rf)},Eo.prototype.commitLayers=function(){},Eo.prototype.commitLinks=function(){for(var a=this.network.edges.iterator,y;a.next();)y=a.value.link,y!==null&&(y.uh(),y.Fj(),y.zf());for(a.reset();a.next();)y=a.value.link,y!==null&&y.vg();for(a.reset();a.next();){var x=a.value;if(y=x.link,y!==null){y.uh();var E=y,b=E.fromNode,z=E.toNode,tt=E.fromPort,rt=E.toPort;if(b!==null){var ot=b.findVisibleNode();ot!==null&&ot!==b&&(b=ot,tt=ot.port)}z!==null&&(ot=z.findVisibleNode(),ot!==null&&ot!==z&&(z=ot,rt=ot.port));var st=y.computeSpot(!0,tt);ot=y.computeSpot(!1,rt);var ut=x.fromVertex,ft=x.toVertex;if(x.valid)y.curve===cl&&y.pointsCount===4&&(ut.column===ft.column&&this.alignOption===0?(x=y.getLinkPoint(b,tt,st,!0,!1,z,rt),rt=y.getLinkPoint(z,rt,ot,!1,!1,b,tt),x.w()||x.set(b.actualBounds.center),rt.w()||rt.set(z.actualBounds.center),y.Fj(),y.yf(x.x,x.y),y.yf((2*x.x+rt.x)/3,(2*x.y+rt.y)/3),y.yf((x.x+2*rt.x)/3,(x.y+2*rt.y)/3),y.yf(rt.x,rt.y)):(x=E=!1,tt!==null&&st===_i&&(E=!0),rt!==null&&ot===_i&&(x=!0),(E||x)&&(ot=null,E&&(ot=y.getLinkPointFromPoint(b,tt,tt.ga(Ri),y.i(3),!0),ot.w()||ot.set(b.actualBounds.center),y.L(0,ot.x,ot.y)),b=null,x&&(b=y.getLinkPointFromPoint(z,rt,rt.ga(Ri),y.i(0),!1),b.w()||b.set(z.actualBounds.center),y.L(3,b.x,b.y)),ot&&(z=y.i(2),y.L(1,(2*ot.x+z.x)/3,(2*ot.y+z.y)/3)),b&&(z=y.i(1),y.L(2,(2*b.x+z.x)/3,(2*b.y+z.y)/3))))),y.zf();else if(ut.layer===ft.layer)y.zf();else{var vt=!1,xt=!1,Pt=this.ie,Ft=y.firstPickIndex+1;if(y.isOrthogonal){xt=!0;var Xt=y.pointsCount;4<Xt&&y.points.removeRange(2,Xt-3)}else if(y.curve===cl)vt=!0,Xt=y.pointsCount,4<Xt&&y.points.removeRange(2,Xt-3),Xt===4&&(Ft=2);else{Xt=y.pointsCount;var Wt=st===_i,oe=ot===_i;2<Xt&&Wt&&oe?y.points.removeRange(1,Xt-2):3<Xt&&Wt&&!oe?y.points.removeRange(1,Xt-3):3<Xt&&!Wt&&oe?y.points.removeRange(2,Xt-2):4<Xt&&!Wt&&!oe&&y.points.removeRange(2,Xt-3)}if(x.rev){for(;ft!==null&&ut!==ft;){var le=Xt=null;for(Wt=ft.sourceEdges.iterator;Wt.next()&&(oe=Wt.value,oe.link!==x.link||(Xt=oe.fromVertex,le=oe.toVertex,Xt.node!==null)););if(Xt===null)break;if(Xt!==ut){Wt=y.i(Ft-1).x,oe=y.i(Ft-1).y;var ce=Xt.centerX,Ae=Xt.centerY;if(xt)this.K===180||this.K===0?Ft===y.firstPickIndex+1?(y.m(Ft++,Wt,oe),y.m(Ft++,Wt,Ae)):(le!==null?le.centerY:oe)!==Ae&&(le=this.Ta[Xt.layer-1]+this.Rf.x,y.m(Ft++,le,oe),y.m(Ft++,le,Ae)):Ft===y.firstPickIndex+1?(y.m(Ft++,Wt,oe),y.m(Ft++,ce,oe)):(le!==null?le.centerX:Wt)!==ce&&(le=this.Ta[Xt.layer-1]+this.Rf.y,y.m(Ft++,Wt,le),y.m(Ft++,ce,le));else if(Ft===y.firstPickIndex+1){le=Math.max(10,this.he[ft.layer]);var Je=Math.max(10,this.Ld[ft.layer]);if(vt)this.K===180?ce<=ft.bounds.x?(ft=ft.bounds.x,y.m(Ft++,ft-le,Ae),y.m(Ft++,ft,Ae),y.m(Ft++,ft+Je,Ae)):(y.m(Ft++,ce-le,Ae),y.m(Ft++,ce,Ae),y.m(Ft++,ce+Je,Ae)):this.K===90?Ae>=ft.bounds.bottom?(ft=ft.bounds.y+ft.bounds.height,y.m(Ft++,ce,ft+Je),y.m(Ft++,ce,ft),y.m(Ft++,ce,ft-le)):(y.m(Ft++,ce,Ae+Je),y.m(Ft++,ce,Ae),y.m(Ft++,ce,Ae-le)):this.K===270?Ae<=ft.bounds.y?(ft=ft.bounds.y,y.m(Ft++,ce,ft-le),y.m(Ft++,ce,ft),y.m(Ft++,ce,ft+Je)):(y.m(Ft++,ce,Ae-le),y.m(Ft++,ce,Ae),y.m(Ft++,ce,Ae+Je)):this.K===0&&(ce>=ft.bounds.right?(ft=ft.bounds.x+ft.bounds.width,y.m(Ft++,ft+Je,Ae),y.m(Ft++,ft,Ae),y.m(Ft++,ft-le,Ae)):(y.m(Ft++,ce+Je,Ae),y.m(Ft++,ce,Ae),y.m(Ft++,ce-le,Ae)));else{y.m(Ft++,Wt,oe);var Ci=0;this.K===180||this.K===0?((this.K===180?ce>=ft.bounds.right:ce<=ft.bounds.x)&&(Ci=(this.K===0?-le:Je)/2),y.m(Ft++,Wt+Ci,Ae)):((this.K===270?Ae>=ft.bounds.bottom:Ae<=ft.bounds.y)&&(Ci=(this.K===90?-le:Je)/2),y.m(Ft++,ce,oe+Ci)),y.m(Ft++,ce,Ae)}}else le=Math.max(10,this.he[Xt.layer]),Je=Math.max(10,this.Ld[Xt.layer]),vt?this.K===180?(y.m(Ft++,ce-le-Pt,Ae),y.m(Ft++,Math.min(ce-le+Pt/2,ce),Ae),y.m(Ft++,ce,Ae),y.m(Ft++,ce,Ae),y.m(Ft++,Math.max(ce+Je-Pt/2,ce),Ae),y.m(Ft++,ce+Je+Pt,Ae)):this.K===90?(y.m(Ft++,ce,Ae+Je+Pt),y.m(Ft++,ce,Math.max(Ae+Je-Pt/2,Ae)),y.m(Ft++,ce,Ae),y.m(Ft++,ce,Ae),y.m(Ft++,ce,Math.min(Ae-le+Pt/2,Ae)),y.m(Ft++,ce,Ae-le-Pt)):this.K===270?(y.m(Ft++,ce,Ae-le-Pt),y.m(Ft++,ce,Math.min(Ae-le+Pt/2,Ae)),y.m(Ft++,ce,Ae),y.m(Ft++,ce,Ae),y.m(Ft++,ce,Math.max(Ae+Je-Pt/2,Ae)),y.m(Ft++,ce,Ae+Je+Pt)):(y.m(Ft++,ce+Je+Pt,Ae),y.m(Ft++,Math.max(ce+Je-Pt/2,ce),Ae),y.m(Ft++,ce,Ae),y.m(Ft++,ce,Ae),y.m(Ft++,Math.min(ce-le+Pt/2,ce),Ae),y.m(Ft++,ce-le-Pt,Ae)):y.m(Ft++,ce,Ae)}ft=Xt}(rt===null||st!==_i||xt)&&(Wt=y.i(Ft-1).x,oe=y.i(Ft-1).y,ce=y.i(Ft).x,Ae=y.i(Ft).y,xt?(Pt=this.Ld[ut.layer],this.K===180||this.K===0?(xt=oe,xt>=ut.bounds.y&&xt<=ut.bounds.bottom&&(this.K===180?ce>=ut.bounds.x:ce<=ut.bounds.right)&&(ft=ut.centerX+(this.K===180?-Pt:Pt),xt<ut.bounds.y+ut.bounds.height/2?xt=ut.bounds.y-this.kc/2:xt=ut.bounds.bottom+this.kc/2,y.m(Ft++,ft,oe),y.m(Ft++,ft,xt)),y.m(Ft++,ce,xt)):(xt=Wt,xt>=ut.bounds.x&&xt<=ut.bounds.right&&(this.K===270?Ae>=ut.bounds.y:Ae<=ut.bounds.bottom)&&(ft=ut.centerY+(this.K===270?-Pt:Pt),xt<ut.bounds.x+ut.bounds.width/2?xt=ut.bounds.x-this.kc/2:xt=ut.bounds.right+this.kc/2,y.m(Ft++,Wt,ft),y.m(Ft++,xt,ft)),y.m(Ft++,xt,Ae)),y.m(Ft++,ce,Ae)):vt?(le=Math.max(10,this.he[ut.layer]),Je=Math.max(10,this.Ld[ut.layer]),this.K===180&&ce>=ut.bounds.x?(ft=ut.bounds.x+ut.bounds.width,y.L(Ft-2,ft,oe),y.L(Ft-1,ft+Je,oe)):this.K===90&&Ae<=ut.bounds.bottom?(ft=ut.bounds.y,y.L(Ft-2,Wt,ft),y.L(Ft-1,Wt,ft-le)):this.K===270&&Ae>=ut.bounds.y?(ft=ut.bounds.y+ut.bounds.height,y.L(Ft-2,Wt,ft),y.L(Ft-1,Wt,ft+Je)):this.K===0&&ce<=ut.bounds.right&&(ft=ut.bounds.x,y.L(Ft-2,ft,oe),y.L(Ft-1,ft-le,oe))):(le=Math.max(10,this.he[ut.layer]),Je=Math.max(10,this.Ld[ut.layer]),xt=0,this.K===180||this.K===0?((this.K===180?ce<=ut.bounds.x:ce>=ut.bounds.right)&&(xt=(this.K===0?Je:-le)/2),y.m(Ft++,ce+xt,oe)):((this.K===270?Ae<=ut.bounds.y:Ae>=ut.bounds.bottom)&&(xt=(this.K===90?Je:-le)/2),y.m(Ft++,Wt,Ae+xt)),y.m(Ft++,ce,Ae)))}else{for(;ut!==null&&ut!==ft;){for(le=Xt=null,ut=ut.destinationEdges.iterator;ut.next()&&(Wt=ut.value,Wt.link!==x.link||(Xt=Wt.toVertex,le=Wt.fromVertex,le.node!==null&&(le=null),Xt.node!==null)););if(Xt===null)break;Xt!==ft&&(Wt=y.i(Ft-1).x,oe=y.i(Ft-1).y,ce=Xt.centerX,Ae=Xt.centerY,xt?this.K===180||this.K===0?(le!==null?le.centerY:oe)!==Ae&&(le=this.Ta[Xt.layer]+this.Rf.x,Ft===y.firstPickIndex+1&&(le=this.K===0?Math.max(le,Wt):Math.min(le,Wt)),y.m(Ft++,le,oe),y.m(Ft++,le,Ae)):(le!==null?le.centerX:Wt)!==ce&&(le=this.Ta[Xt.layer]+this.Rf.y,Ft===y.firstPickIndex+1&&(le=this.K===90?Math.max(le,oe):Math.min(le,oe)),y.m(Ft++,Wt,le),y.m(Ft++,ce,le)):(le=Math.max(10,this.he[Xt.layer]),Je=Math.max(10,this.Ld[Xt.layer]),vt?this.K===180?(y.m(Ft++,ce+Je+Pt,Ae),y.m(Ft++,Math.max(ce+Je-Pt/2,ce),Ae),y.m(Ft++,ce,Ae),y.m(Ft++,ce,Ae),y.m(Ft++,Math.min(ce-le+Pt/2,ce),Ae),y.m(Ft++,ce-le-Pt,Ae)):this.K===90?(y.m(Ft++,ce,Ae-le-Pt),y.m(Ft++,ce,Math.min(Ae-le+Pt/2,Ae)),y.m(Ft++,ce,Ae),y.m(Ft++,ce,Ae),y.m(Ft++,ce,Math.max(Ae+Je-Pt/2,Ae)),y.m(Ft++,ce,Ae+Je+Pt)):this.K===270?(y.m(Ft++,ce,Ae+Je+Pt),y.m(Ft++,ce,Math.max(Ae+Je-Pt/2,Ae)),y.m(Ft++,ce,Ae),y.m(Ft++,ce,Ae),y.m(Ft++,ce,Math.min(Ae-le+Pt/2,Ae)),y.m(Ft++,ce,Ae-le-Pt)):(y.m(Ft++,ce-le-Pt,Ae),y.m(Ft++,Math.min(ce-le+Pt/2,ce),Ae),y.m(Ft++,ce,Ae),y.m(Ft++,ce,Ae),y.m(Ft++,Math.max(ce+Je-Pt/2,ce),Ae),y.m(Ft++,ce+Je+Pt,Ae)):this.K===180?(y.m(Ft++,ce+Je,Ae),y.m(Ft++,ce-le,Ae)):this.K===90?(y.m(Ft++,ce,Ae-le),y.m(Ft++,ce,Ae+Je)):this.K===270?(y.m(Ft++,ce,Ae+Je),y.m(Ft++,ce,Ae-le)):(y.m(Ft++,ce-le,Ae),y.m(Ft++,ce+Je,Ae)))),ut=Xt}xt&&(Wt=y.i(Ft-1).x,oe=y.i(Ft-1).y,ce=y.i(Ft).x,Ae=y.i(Ft).y,this.K===180||this.K===0?oe!==Ae&&(le=this.K===0?Math.min(Math.max((ce+Wt)/2,this.Ta[ft.layer]+this.Rf.x),ce):Math.max(Math.min((ce+Wt)/2,this.Ta[ft.layer]+this.Rf.x),ce),y.m(Ft++,le,oe),y.m(Ft++,le,Ae)):Wt!==ce&&(le=this.K===90?Math.min(Math.max((Ae+oe)/2,this.Ta[ft.layer]+this.Rf.y),Ae):Math.max(Math.min((Ae+oe)/2,this.Ta[ft.layer]+this.Rf.y),Ae),y.m(Ft++,Wt,le),y.m(Ft++,ce,le)))}E!==null&&vt&&4<=y.pointsCount&&(tt!==null&&(tt=st===_i?y.getLinkPointFromPoint(b,tt,tt.ga(Ri),y.i(3),!0):y.i(0),st===_i&&(st=y.i(2),E=y.i(3),this.direction===90||this.direction===270?(y.L(1,(tt.x+st.x)/2,st.y),y.L(2,E.x,(st.y+E.y)/2)):(y.L(1,st.x,(tt.y+st.y)/2),y.L(2,(st.x+E.x)/2,E.y))),tt.w()||tt.set(b.actualBounds.center),y.L(0,tt.x,tt.y)),rt!==null&&(b=ot===_i?y.getLinkPointFromPoint(z,rt,rt.ga(Ri),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),ot===_i&&(rt=y.i(y.pointsCount-3),ot=y.i(y.pointsCount-4),this.direction===90||this.direction===270?(y.L(y.pointsCount-2,(b.x+rt.x)/2,rt.y),y.L(y.pointsCount-2,ot.x,(rt.y+ot.y)/2)):(y.L(y.pointsCount-2,rt.x,(b.y+rt.y)/2),y.L(y.pointsCount-3,(rt.x+ot.x)/2,ot.y))),b.w()||b.set(z.actualBounds.center),y.L(y.pointsCount-1,b.x,b.y))),y.zf(),x.commit()}}}this.avoidOrthogonalOverlaps()},Eo.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new cn,y=this.network.edges.iterator;y.next();){var x=y.value.link;x!==null&&x.isOrthogonal&&!a.contains(x)&&a.add(x)}if(0<a.count)if(this.K===90||this.K===270){for(y=0,x=[],a=a.iterator;a.next();){var E=a.value;if(E!==null&&E.isOrthogonal)for(var b=2;b<E.pointsCount-3;b++){var z=E.i(b),tt=E.i(b+1);if(this.B(z.y,tt.y)&&!this.B(z.x,tt.x)){var rt=new wd;rt.layer=Math.floor(z.y/2);var ot=E.i(0),st=E.i(E.pointsCount-1);if(rt.first=ot.x*ot.x+ot.y,rt.jc=st.x*st.x+st.y,rt.rd=Math.min(z.x,tt.x),rt.Ic=Math.max(z.x,tt.x),rt.index=b,rt.link=E,b+2<E.pointsCount){ot=E.i(b-1),st=E.i(b+2);var ut=0;ot.y<z.y?ut=st.y<z.y?3:z.x<tt.x?2:1:ot.y>z.y&&(ut=st.y>z.y?0:tt.x<z.x?2:1),rt.j=ut}x.push(rt)}}}if(1<x.length)for(x.sort(this.Vx),a=0;a<x.length;){for(z=x[a].layer,E=a+1;E<x.length&&x[E].layer===z;)E++;if(1<E-a)for(z=a;z<E;){for(tt=x[z].Ic,b=a+1;b<E&&x[b].rd<tt;)tt=Math.max(tt,x[b].Ic),b++;if(tt=b-z,1<tt){for(this.zi(x,this.Js,z,z+tt),ut=1,rt=x[z].jc,ot=z;ot<b;ot++)st=x[ot],st.jc!==rt&&(ut++,rt=st.jc);this.zi(x,this.Ux,z,z+tt);var ft=1;for(rt=x[z].first,ot=z;ot<b;ot++)st=x[ot],st.first!==rt&&(ft++,rt=st.first);for(ot=!0,st=ft,ut<ft?(ot=!1,st=ut,rt=x[z].jc,this.zi(x,this.Js,z,z+tt)):rt=x[z].first,ut=0,ft=z;ft<b;ft++){var vt=x[ft];(ot?vt.first:vt.jc)!==rt&&(ut++,rt=ot?vt.first:vt.jc);var xt=vt.link;z=xt.i(vt.index),tt=xt.i(vt.index+1);var Pt=this.linkSpacing*(ut-(st-1)/2);y++,xt.uh(),xt.L(vt.index,z.x,z.y+Pt),xt.L(vt.index+1,tt.x,tt.y+Pt),xt.zf()}}z=b}a=E}}else{for(y=0,x=[],a=a.iterator;a.next();)if(E=a.value,E!==null&&E.isOrthogonal)for(b=2;b<E.pointsCount-3;b++)z=E.i(b),tt=E.i(b+1),this.B(z.x,tt.x)&&!this.B(z.y,tt.y)&&(rt=new wd,rt.layer=Math.floor(z.x/2),ot=E.i(0),st=E.i(E.pointsCount-1),rt.first=ot.x+ot.y*ot.y,rt.jc=st.x+st.y*st.y,rt.rd=Math.min(z.y,tt.y),rt.Ic=Math.max(z.y,tt.y),rt.index=b,rt.link=E,b+2<E.pointsCount&&(ot=E.i(b-1),st=E.i(b+2),ut=0,ot.x<z.x?ut=st.x<z.x?3:z.y<tt.y?2:1:ot.x>z.x&&(ut=st.x>z.x?0:tt.y<z.y?2:1),rt.j=ut),x.push(rt));if(1<x.length)for(x.sort(this.Vx),a=0;a<x.length;){for(z=x[a].layer,E=a+1;E<x.length&&x[E].layer===z;)E++;if(1<E-a)for(z=a;z<E;){for(tt=x[z].Ic,b=a+1;b<E&&x[b].rd<tt;)tt=Math.max(tt,x[b].Ic),b++;if(tt=b-z,1<tt){for(this.zi(x,this.Js,z,z+tt),ut=1,rt=x[z].jc,ot=z;ot<b;ot++)st=x[ot],st.jc!==rt&&(ut++,rt=st.jc);for(this.zi(x,this.Ux,z,z+tt),ft=1,rt=x[z].first,ot=z;ot<b;ot++)st=x[ot],st.first!==rt&&(ft++,rt=st.first);for(ot=!0,st=ft,ut<ft?(ot=!1,st=ut,rt=x[z].jc,this.zi(x,this.Js,z,z+tt)):rt=x[z].first,ut=0,ft=z;ft<b;ft++)vt=x[ft],(ot?vt.first:vt.jc)!==rt&&(ut++,rt=ot?vt.first:vt.jc),xt=vt.link,z=xt.i(vt.index),tt=xt.i(vt.index+1),Pt=this.linkSpacing*(ut-(st-1)/2),y++,xt.uh(),xt.L(vt.index,z.x+Pt,z.y),xt.L(vt.index+1,tt.x+Pt,tt.y),xt.zf()}z=b}a=E}}}},Ct=Eo.prototype,Ct.Vx=function(a,y){return a instanceof wd&&y instanceof wd&&a!==y?a.layer<y.layer?-1:a.layer>y.layer?1:a.rd<y.rd?-1:a.rd>y.rd?1:a.Ic<y.Ic?-1:a.Ic>y.Ic?1:0:0},Ct.Ux=function(a,y){return a instanceof wd&&y instanceof wd&&a!==y?a.first<y.first?-1:a.first>y.first||a.j<y.j?1:a.j>y.j||a.rd<y.rd?-1:a.rd>y.rd?1:a.Ic<y.Ic?-1:a.Ic>y.Ic?1:0:0},Ct.Js=function(a,y){return a instanceof wd&&y instanceof wd&&a!==y?a.jc<y.jc?-1:a.jc>y.jc||a.j<y.j?1:a.j>y.j||a.rd<y.rd?-1:a.rd>y.rd?1:a.Ic<y.Ic?-1:a.Ic>y.Ic?1:0:0},Ct.B=function(a,y){return a-=y,-1<a&&1>a},Ct.zi=function(a,y,x,E){var b=a.length,z=E-x;if(!(1>=z))if((0>x||x>=b-1)&&ee("not in range 0 <= from < length: "+x),z===2)E=a[x],b=a[x+1],0<y(E,b)&&(a[x]=b,a[x+1]=E);else if(x===0)if(E>=b)a.sort(y);else for(x=a.slice(0,E),x.sort(y),y=0;y<E;y++)a[y]=x[y];else if(E>=b)for(E=a.slice(x),E.sort(y),y=x;y<b;y++)a[y]=E[y-x];else for(b=a.slice(x,E),b.sort(y),y=x;y<E;y++)a[y]=b[y-x]};function Sd(a,y){var x=a.tc[y];if(x>=a.He.length){for(var E=[],b=0;b<a.He.length;b++)E[b]=a.He[b];a.He=E}for(a.He[x]===void 0||a.He[x]===null?E=[]:(E=a.He[x],a.He[x]=null),a=a.fl[y],y=0;y<a.length;y++)x=a[y],E[x.index]=x;return E}function xd(a,y,x){a.He[a.tc[y]]=x}xe.Object.defineProperties(Eo.prototype,{layerSpacing:{get:function(){return this.ie},set:function(a){this.ie!==a&&0<=a&&(this.ie=a,this.C())}},columnSpacing:{get:function(){return this.kc},set:function(a){this.kc!==a&&0<a&&(this.kc=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K!==a&&(a===0||a===90||a===180||a===270?(this.K=a,this.C()):ee("LayeredDigraphLayout.direction must be 0, 90, 180, or 270"))}},cycleRemoveOption:{get:function(){return this.Dk},set:function(a){this.Dk===a||a!==Cy&&a!==k0&&a!==Mp||(this.Dk=a,this.C())}},layeringOption:{get:function(){return this.Zk},set:function(a){this.Zk===a||a!==F0&&a!==Ey&&a!==Ay||(this.Zk=a,this.C())}},initializeOption:{get:function(){return this.Qk},set:function(a){this.Qk===a||a!==D0&&a!==Ly&&a!==by||(this.Qk=a,this.C())}},iterations:{get:function(){return this.bj},set:function(a){this.bj!==a&&0<=a&&(this.bj=a,this.C())}},aggressiveOption:{get:function(){return this.rk},set:function(a){this.rk===a||a!==My&&a!==N0&&a!==ky||(this.rk=a,this.C())}},packOption:{get:function(){return this.bg},set:function(a){this.bg!==a&&0<=a&&8>a&&(this.bg=a,this.C())}},alignOption:{get:function(){return this.ve},set:function(a){this.ve!==a&&0<=a&&16>a&&(this.ve=a,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(a){this.sf!==a&&(this.sf=a,this.C())}},linkSpacing:{get:function(){return this.Cn},set:function(a){this.Cn!==a&&0<=a&&(this.Cn=a,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 k0=new dn(Eo,"CycleDepthFirst",0),Cy=new dn(Eo,"CycleGreedy",1),Mp=new dn(Eo,"CycleFromLayers",2),F0=new dn(Eo,"LayerOptimalLinkLength",0),Ey=new dn(Eo,"LayerLongestPathSink",1),Ay=new dn(Eo,"LayerLongestPathSource",2),D0=new dn(Eo,"InitDepthFirstOut",0),Ly=new dn(Eo,"InitDepthFirstIn",1),by=new dn(Eo,"InitNaive",2),My=new dn(Eo,"AggressiveNone",0),N0=new dn(Eo,"AggressiveLess",1),ky=new dn(Eo,"AggressiveMore",2),nw=8;Eo.className="LayeredDigraphLayout",Eo.CycleDepthFirst=k0,Eo.CycleGreedy=Cy,Eo.CycleFromLayers=Mp,Eo.LayerOptimalLinkLength=F0,Eo.LayerLongestPathSink=Ey,Eo.LayerLongestPathSource=Ay,Eo.InitDepthFirstOut=D0,Eo.InitDepthFirstIn=Ly,Eo.InitNaive=by,Eo.AggressiveNone=My,Eo.AggressiveLess=N0,Eo.AggressiveMore=ky,Eo.PackNone=0,Eo.PackExpand=1,Eo.PackStraighten=2,Eo.PackMedian=4,Eo.PackAll=15,Eo.AlignNone=0,Eo.AlignUpperLeft=1,Eo.AlignUpperRight=2,Eo.AlignLowerLeft=4,Eo.AlignLowerRight=8,Eo.AlignAll=15;function wd(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}wd.className="SegInfo";function qf(a){zo.call(this,a)}ye(qf,zo),qf.prototype.createVertex=function(){return new kl(this)},qf.prototype.createEdge=function(){return new kp(this)},qf.className="LayeredDigraphNetwork";function kl(a){Ia.call(this,a),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}ye(kl,Ia);function lx(a,y){return a.index-y.index}function B0(a,y){if(!a.$n){for(var x=[],E=Zn(a.destinationEdgesArrayAccess),b=E.next();!b.done;b=E.next())b=b.value,b.valid&&x.push(b);a.$n=x}for(a=Zn(a.$n),x=a.next();!x.done;x=a.next())if(x=x.value,x.toVertex===y)return x;ee("Unable to find destination edge to given vertex")}function Fy(a){if(!a.co){for(var y=[],x=Zn(a.sourceEdgesArrayAccess),E=x.next();!E.done;E=x.next())E=E.value,E.valid&&y.push(E.fromVertex);y.sort(lx),a.co=y}return a.co}function iw(a){if(!a.ao){for(var y=[],x=Zn(a.destinationEdgesArrayAccess),E=x.next();!E.done;E=x.next())E=E.value,E.valid&&y.push(E.toVertex);y.sort(lx),a.ao=y}return a.ao}kl.prototype.Cl=function(a){Ia.prototype.Cl.call(this,a),this.bo=this.co=null},kl.prototype.Kl=function(a){Ia.prototype.Kl.call(this,a),this.bo=this.co=null},kl.prototype.zl=function(a){Ia.prototype.zl.call(this,a),this.$n=this.ao=null},kl.prototype.Jl=function(a){Ia.prototype.Jl.call(this,a),this.$n=this.ao=null},xe.Object.defineProperties(kl.prototype,{layer:{get:function(){return this.Ig},set:function(a){this.Ig!==a&&(this.Ig=a)}},column:{get:function(){return this.Ag},set:function(a){this.Ag!==a&&(this.Ag=a)}},index:{get:function(){return this.Za},set:function(a){this.Za!==a&&(this.Za=a)}},component:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},near:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}}}),kl.prototype.deleteDestinationEdge=kl.prototype.Jl,kl.prototype.addDestinationEdge=kl.prototype.zl,kl.prototype.deleteSourceEdge=kl.prototype.Kl,kl.prototype.addSourceEdge=kl.prototype.Cl,kl.className="LayeredDigraphVertex";function kp(a){nl.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}ye(kp,nl),xe.Object.defineProperties(kp.prototype,{fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}},valid:{get:function(){return this.Ha},set:function(a){this.Ha!==a&&(this.Ha=a)}},rev:{get:function(){return this.ia},set:function(a){this.ia!==a&&(this.ia=a)}},forest:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a)}},portFromPos:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},portToPos:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}},portFromColOffset:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a)}},portToColOffset:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}}}),kp.className="LayeredDigraphEdge";function Xr(a){ea.call(this),this.Ub=new xn,this.Wn=R0,this.ud=Gu,this.vo=j0,this.Bq=Hy,this.$v=[],this.td=!0,this.Rb=W0,this.$d=new zt(10,10).freeze();var y=new Uc(this);this.W=new Hl(y),this.Y=new Hl(y),this.ru=[],a&&Object.assign(this,a)}ye(Xr,ea),Xr.prototype.cloneProtected=function(a){ea.prototype.cloneProtected.call(this,a),a.Wn=this.Wn,a.vo=this.vo,a.Bq=this.Bq,a.td=this.td,a.Rb=this.Rb,a.$d.assign(this.$d),a.W.copyInheritedPropertiesFrom(this.W),a.Y.copyInheritedPropertiesFrom(this.Y)},Xr.prototype.qb=function(a){a.classType===Xr?a.name.indexOf("Alignment")===0?this.alignment=a:a.name.indexOf("Arrangement")===0?this.arrangement=a:a.name.indexOf("Compaction")===0?this.compaction=a:a.name.indexOf("Path")===0?this.path=a:a.name.indexOf("Sorting")===0?this.sorting=a:a.name.indexOf("Style")===0?this.treeStyle=a:ee("Unknown enum value: "+a):ea.prototype.qb.call(this,a)},Xr.prototype.createNetwork=function(){return new Uc(this)},Xr.prototype.makeNetwork=function(a){function y(E){if(E instanceof bi)return!E.isLinkLabel&&E.category!=="Comment";if(E instanceof di){var b=E.fromNode;return b===null||b.isLinkLabel||b.category==="Comment"?!1:(E=E.toNode,!(E===null||E.isLinkLabel||E.category==="Comment"))}return!1}var x=this.createNetwork();return a instanceof Qe?(x.lg(a.nodes,!0,y),x.lg(a.links,!0,y)):a instanceof Tr?x.lg(a.memberParts,!1,y):x.lg(a.iterator,!1,y),x},Xr.prototype.doLayout=function(a){this.network===null&&(this.network=this.makeNetwork(a)),this.arrangement!==H0&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var y=this.diagram;if(y===null&&a instanceof Qe&&(y=a),this.path===R0&&y!==null?this.ud=y.isTreePathToChildren?Gu:Kc:this.ud=this.path===R0?Gu:this.path,0<this.network.vertexes.count){for(this.network.Ko(),a=this.network.vertexes.iterator;a.next();)y=a.value,y.initialized=!1,y.level=0,y.parent=null,y.children=[];if(0<this.Ub.count){for(a=new xn,y=this.Ub.iterator;y.next();){var x=y.value;x instanceof bi?(x=this.network.ki(x),x!==null&&a.add(x)):x instanceof Hl&&a.add(x)}this.Ub=a}for(this.Ub.count===0&&this.findRoots(),a=this.Ub.copy().iterator;a.next();)y=a.value,y.initialized||(y.initialized=!0,Dy(this,y));for(y=this.network.vertexes,a=null;a=rw(y),0<a.count;)y=ux(this,a),y!==null&&this.Ub.add(y),y.initialized=!0,Dy(this,y),y=a;for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Hl&&dx(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Hl&&cx(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Hl&&fx(this,y);if(this.Cu(),this.layerStyle===Z0){for(a=[],y=this.network.vertexes.iterator;y.next();){x=y.value;var E=x.parent;E===null&&(E=x),E=E.angle===0||E.angle===180;var b=a[x.level];b===void 0&&(b=0),a[x.level]=Math.max(b,E?x.width:x.height)}for(y=0;y<a.length;y++)a[y]===void 0&&(a[y]=0);for(this.$v=a,y=this.network.vertexes.iterator;y.next();)x=y.value,E=x.parent,E===null&&(E=x),E.angle===0||E.angle===180?(E.angle===180&&(x.focusX+=a[x.level]-x.width),x.width=a[x.level]):(E.angle===270&&(x.focusY+=a[x.level]-x.height),x.height=a[x.level])}else if(this.layerStyle===Zy)for(a=this.network.vertexes.iterator;a.next();){for(y=a.value,x=y.angle===0||y.angle===180,E=-1,b=0;b<y.children.length;b++){var z=y.children[b];E=Math.max(E,x?z.width:z.height)}if(0<=E)for(b=0;b<y.children.length;b++)z=y.children[b],x?(y.angle===180&&(z.focusX+=E-z.width),z.width=E):(y.angle===270&&(z.focusY+=E-z.height),z.height=E)}for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Hl&&this.layoutTree(y);this.arrangeTrees(),this.updateParts()}this.network=null,this.Ub=new xn,this.isValidLayout=!0};function rw(a){var y=new xn;for(a=a.iterator;a.next();){var x=a.value;x.initialized||y.add(x)}return y}Xr.prototype.findRoots=function(){for(var a=this.network.vertexes,y=a.iterator;y.next();){var x=y.value;switch(this.ud){case Gu:x.sourceEdges.count===0&&this.Ub.add(x);break;case Kc:x.destinationEdges.count===0&&this.Ub.add(x);break;default:ee("Unhandled path value "+this.ud.toString())}}this.Ub.count===0&&(a=ux(this,a),a!==null&&this.Ub.add(a))};function ux(a,y){var x=999999,E=null;for(y=y.iterator;y.next();){var b=y.value;switch(a.ud){case Gu:b.sourceEdges.count<x&&(x=b.sourceEdges.count,E=b);break;case Kc:b.destinationEdges.count<x&&(x=b.destinationEdges.count,E=b);break;default:ee("Unhandled path value "+a.ud.toString())}}return E}function Dy(a,y){if(y!==null){switch(a.ud){case Gu:if(0<y.destinationEdges.count){for(var x=new cn,E=y.destinationVertexes;E.next();){var b=E.value;hx(a,y,b)&&x.add(b)}0<x.count&&(y.children=x.Fa())}break;case Kc:if(0<y.sourceEdges.count){for(x=new cn,E=y.sourceVertexes;E.next();)b=E.value,hx(a,y,b)&&x.add(b);0<x.count&&(y.children=x.Fa())}break;default:ee("Unhandled path value"+a.ud.toString())}for(x=y.children,E=x.length,b=0;b<E;b++){var z=x[b];z.initialized=!0,z.level=y.level+1,z.parent=y,a.Ub.remove(z)}for(y=0;y<E;y++)Dy(a,x[y])}}function hx(a,y,x){if(x.initialized){if(y===null)var E=!1;else{for(E=y.parent;E!==null&&E!==x;)E=E.parent;E=E===x}if(E||x.level>y.level)return!1;a.removeChild(x.parent,x)}return!0}Xr.prototype.removeChild=function(a,y){if(a!==null&&y!==null){for(var x=a.children,E=0,b=0;b<x.length;b++)x[b]===y&&E++;if(0<E){E=Array(x.length-E);for(var z=b=0;z<x.length;z++)x[z]!==y&&(E[b++]=x[z]);a.children=E}}};function dx(a,y){if(y!==null){a.initializeTreeVertexValues(y),y.alignment===Uu&&a.sortTreeVertexChildren(y);for(var x=0,E=y.childrenCount,b=0,z=y.children,tt=z.length,rt=0;rt<tt;rt++){var ot=z[rt];dx(a,ot),x+=ot.descendantCount+1,E=Math.max(E,ot.maxChildrenCount),b=Math.max(b,ot.maxGenerationCount)}y.descendantCount=x,y.maxChildrenCount=E,y.maxGenerationCount=0<E?b+1:0}}function ow(a,y){switch(a.vo){default:case j0:return y.parent!==null?y.parent:a.W;case jy:return y.parent===null?a.W:y.parent.parent===null?a.Y:y.parent;case zy:return y.parent!==null?y.parent.parent!==null?y.parent.parent:a.Y:a.W;case Ry:var x=!0;if(y.childrenCount===0)x=!1;else for(var E=y.children,b=E.length,z=0;z<b;z++)if(0<E[z].childrenCount){x=!1;break}return x&&y.parent!==null?a.Y:y.parent!==null?y.parent:a.W}}Xr.prototype.initializeTreeVertexValues=function(a){if(a.copyInheritedPropertiesFrom(ow(this,a)),a.parent!==null&&a.parent.alignment===Uu){for(var y=a.angle,x=a.parent.children,E=0;E<x.length&&a!==x[E];)E++;E%2===0?E!==x.length-1&&(y=y===90?180:y===180?270:y===270?180:270):y=y===90?0:y===180?90:y===270?0:90,a.angle=y}a.initialized=!0};function cx(a,y){if(y!==null){a.assignTreeVertexValues(y),y=y.children;for(var x=y.length,E=0;E<x;E++)cx(a,y[E])}}Xr.prototype.assignTreeVertexValues=function(){};function fx(a,y){if(y!==null){y.alignment!==Uu&&a.sortTreeVertexChildren(y),y=y.children;for(var x=y.length,E=0;E<x;E++)fx(a,y[E])}}Xr.prototype.sortTreeVertexChildren=function(a){switch(a.sorting){case $f:break;case Dp:a.children.reverse();break;case Np:a.children.sort(a.comparer);break;case Bp:a.children.sort(a.comparer),a.children.reverse();break;default:ee("Unhandled sorting value "+a.sorting.toString())}},Xr.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},Xr.prototype.addComments=function(a){var y=a.angle,x=a.parent,E=0,b=!1;x!==null&&(E=x.angle,b=x.alignment,b=Pd(b)),y=y===90||y===270,E=E===90||E===270,x=a.childrenCount===0;var z=0,tt=0,rt=0,ot=a.commentSpacing;if(a.node!==null)for(var st=a.node.Mu();st.next();){var ut=st.value;ut.category==="Comment"&&ut.canLayout()&&(a.comments===null&&(a.comments=[]),a.comments.push(ut),ut.Va(),ut=ut.measuredBounds,y&&!x||!b&&!E&&x||b&&E&&x?(z=Math.max(z,ut.width),tt+=ut.height+Math.abs(rt)):(z+=ut.width+Math.abs(rt),tt=Math.max(tt,ut.height)),rt=ot)}a.comments!==null&&(y&&!x||!b&&!E&&x||b&&E&&x?(z+=Math.abs(a.commentMargin),tt=Math.max(0,tt-a.height)):(tt+=Math.abs(a.commentMargin),z=Math.max(0,z-a.width)),b=ue.allocAt(0,0,a.bounds.width+z,a.bounds.height+tt),a.bounds=b,ue.free(b))};function Pd(a){return a===Rh||a===Uu||a===zh||a===lh}function Fp(a){return a===Rh||a===Uu}function Ny(a){var y=a.parent;if(y!==null){var x=y.alignment;if(Pd(x)){if(Fp(x)){for(y=y.children,x=0;x<y.length&&a!==y[x];)x++;return x%2===0}if(x===zh)return!0}}return!1}Xr.prototype.layoutComments=function(a){if(a.comments!==null){var y=a.node.measuredBounds,x=a.parent,E=a.angle,b=0,z=!1;x!==null&&(b=x.angle,z=x.alignment,z=Pd(z)),E=E===90||E===270,x=b===90||b===270;for(var tt=a.childrenCount===0,rt=Ny(a),ot=0,st=a.comments,ut=st.length,ft=Bt.alloc(),vt=0;vt<ut;vt++){var xt=st[vt],Pt=xt.measuredBounds;if(E&&!tt||!z&&!x&&tt||z&&x&&tt){if(135<b&&!z||x&&rt)if(0<=a.commentMargin)for(ft.h(a.bounds.x-a.commentMargin-Pt.width,a.bounds.y+ot),xt.move(ft),xt=xt.Sd();xt.next();){var Ft=xt.value;Ft.fromSpot=yo,Ft.toSpot=vo}else for(ft.h(a.bounds.x+2*a.focus.x-a.commentMargin,a.bounds.y+ot),xt.move(ft),xt=xt.Sd();xt.next();)Ft=xt.value,Ft.fromSpot=vo,Ft.toSpot=yo;else if(0<=a.commentMargin)for(ft.h(a.bounds.x+2*a.focus.x+a.commentMargin,a.bounds.y+ot),xt.move(ft),xt=xt.Sd();xt.next();)Ft=xt.value,Ft.fromSpot=vo,Ft.toSpot=yo;else for(ft.h(a.bounds.x+a.commentMargin-Pt.width,a.bounds.y+ot),xt.move(ft),xt=xt.Sd();xt.next();)Ft=xt.value,Ft.fromSpot=yo,Ft.toSpot=vo;ot=0<=a.commentSpacing?ot+(Pt.height+a.commentSpacing):ot+(a.commentSpacing-Pt.height)}else{if(135<b&&!z||!x&&rt)if(0<=a.commentMargin)for(ft.h(a.bounds.x+ot,a.bounds.y-a.commentMargin-Pt.height),xt.move(ft),xt=xt.Sd();xt.next();)Ft=xt.value,Ft.fromSpot=Fo,Ft.toSpot=Go;else for(ft.h(a.bounds.x+ot,a.bounds.y+2*a.focus.y-a.commentMargin),xt.move(ft),xt=xt.Sd();xt.next();)Ft=xt.value,Ft.fromSpot=Go,Ft.toSpot=Fo;else if(0<=a.commentMargin)for(ft.h(a.bounds.x+ot,a.bounds.y+2*a.focus.y+a.commentMargin),xt.move(ft),xt=xt.Sd();xt.next();)Ft=xt.value,Ft.fromSpot=Go,Ft.toSpot=Fo;else for(ft.h(a.bounds.x+ot,a.bounds.y+a.commentMargin-Pt.height),xt.move(ft),xt=xt.Sd();xt.next();)Ft=xt.value,Ft.fromSpot=Fo,Ft.toSpot=Go;ot=0<=a.commentSpacing?ot+(Pt.width+a.commentSpacing):ot+(a.commentSpacing-Pt.width)}}if(Bt.free(ft),y=ot-a.commentSpacing-(E?y.height:y.width),this.ud===Gu)for(a=a.destinationEdges;a.next();)b=a.value.link,b===null||b.isAvoiding||(b.fromEndSegmentLength=0<y?y:NaN);else for(a=a.sourceEdges;a.next();)b=a.value.link,b===null||b.isAvoiding||(b.toEndSegmentLength=0<y?y:NaN)}},Xr.prototype.layoutTree=function(a){if(a!==null){for(var y=a.children,x=y.length,E=0;E<x;E++)this.layoutTree(y[E]);switch(a.compaction){case z0:gx(this,a);break;case Tp:if(a.alignment===Uu)gx(this,a);else if(a.childrenCount===0)E=a.parent,x=!1,y=0,E!==null&&(y=E.angle,x=E.alignment,x=Pd(x)),E=Ny(a),a.S.h(0,0),a.Da.h(a.width,a.height),a.parent===null||a.comments===null||(y!==180&&y!==270||x)&&!E?a.la.h(0,0):y===180&&!x||(y===90||y===270)&&E?a.la.h(a.width-2*a.focus.x,0):a.la.h(0,a.height-2*a.focus.y),a.Yo=null,a.kp=null;else{var b=nu(a);y=b===90||b===270;var z=0,tt=a.children,rt=tt.length;for(x=0;x<rt;x++)E=tt[x],z=Math.max(z,y?E.Da.width:E.Da.height);var ot=a.alignment;E=ot===Ku;var st=ot===Yu,ut=Pd(ot),ft=Math.max(0,a.breadthLimit);x=this.computeLayerSpacing(a);var vt=a.nodeSpacing,xt=this.computeNodeIndent(a),Pt=a.rowSpacing,Ft=0;(E||st||a.hm||a.im&&a.maxGenerationCount===1)&&(Ft=Math.max(0,a.rowIndent)),E=a.width;var Xt=a.height,Wt=0,oe=0,le=0,ce=null,Ae=null,Je=0,Ci=0,Wi=0,Ni=0,li=0,Tn=0,Nr=0,Er=0;if(ut&&!Fp(ot)&&135<b&&tt.reverse(),Fp(ot))if(1<rt)for(var ho=0;ho<rt;ho++)ho%2===0&&ho!==rt-1&&(Er=Math.max(Er,y?tt[ho].Da.width:tt[ho].Da.height));else rt===1&&(Er=y?tt[0].Da.width:tt[0].Da.height);if(ut){switch(ot){case Rh:oe=135>b?px(this,a,tt,Er,Wt,oe):mx(this,a,tt,Er,Wt,oe),Er=oe.x,Wt=oe.width,oe=oe.height;break;case zh:for(ce=0;ce<rt;ce++)Ae=tt[ce],ft=Ae.Da,le=Tn===0?0:Pt,y?(Ae.S.h(z-ft.width,Ni+le),Wt=Math.max(Wt,ft.width),oe=Math.max(oe,Ni+le+ft.height),Ni+=le+ft.height):(Ae.S.h(Wi+le,z-ft.height),Wt=Math.max(Wt,Wi+le+ft.width),oe=Math.max(oe,ft.height),Wi+=le+ft.width),Tn++;break;case lh:for(ce=0;ce<rt;ce++)Ae=tt[ce],z=Ae.Da,ft=Tn===0?0:Pt,y?(Ae.S.h(vt/2+a.focus.x,Ni+ft),Wt=Math.max(Wt,z.width),oe=Math.max(oe,Ni+ft+z.height),Ni+=ft+z.height):(Ae.S.h(Wi+ft,vt/2+a.focus.y),Wt=Math.max(Wt,Wi+ft+z.width),oe=Math.max(oe,z.height),Wi+=ft+z.width),Tn++}ce=Us(this,2),Ae=Us(this,2),y?(ce[0].h(0,0),ce[1].h(0,oe),Ae[0].h(Wt,0)):(ce[0].h(0,0),ce[1].h(Wt,0),Ae[0].h(0,oe)),Ae[1].h(Wt,oe)}else for(ho=0;ho<rt;ho++){var Io=tt[ho],Wa=Io.Da;if(y){0<ft&&0<Tn&&Wi+vt+Wa.width>ft&&(Wi<z&&rc(a,ot,z-Wi,0,Nr,ho-1),li++,Tn=0,Nr=ho,le=oe,Wi=0,Ni=135<b?-oe-Pt:oe+Pt),O0(this,Io,0,Ni);var Ka=0;if(Tn===0)ce=Io.Yo,Ae=Io.kp,Je=Wa.width,Ci=Wa.height,(ce===null||Ae===null||b!==nu(Io))&&(ce=Us(this,2),Ae=Us(this,2),ce[0].h(0,0),ce[1].h(0,Ci),Ae[0].h(Je,0),Ae[1].h(Je,Ci));else{var xs=xi();Ci=vx(this,a,Io,ce,Ae,Je,Ci,xs),Ka=Ci.x,ce=xs[0],Ae=xs[1],Je=Ci.width,Ci=Ci.height,gi(xs),Wi<Wa.width&&0>Ka&&(Gc(a,-Ka,0,Nr,ho-1),I0(ce,-Ka,0),I0(Ae,-Ka,0),Ka=0)}Io.S.h(Ka,Ni),Wt=Math.max(Wt,Je),oe=Math.max(oe,le+(li===0?0:Pt)+Wa.height),Wi=Je}else 0<ft&&0<Tn&&Ni+vt+Wa.height>ft&&(Ni<z&&rc(a,ot,0,z-Ni,Nr,ho-1),li++,Tn=0,Nr=ho,le=Wt,Ni=0,Wi=135<b?-Wt-Pt:Wt+Pt),O0(this,Io,Wi,0),Ka=0,Tn===0?(ce=Io.Yo,Ae=Io.kp,Je=Wa.width,Ci=Wa.height,(ce===null||Ae===null||b!==nu(Io))&&(ce=Us(this,2),Ae=Us(this,2),ce[0].h(0,0),ce[1].h(Je,0),Ae[0].h(0,Ci),Ae[1].h(Je,Ci))):(xs=xi(),Ci=vx(this,a,Io,ce,Ae,Je,Ci,xs),Ka=Ci.x,ce=xs[0],Ae=xs[1],Je=Ci.width,Ci=Ci.height,gi(xs),Ni<Wa.height&&0>Ka&&(Gc(a,0,-Ka,Nr,ho-1),I0(ce,0,-Ka),I0(Ae,0,-Ka),Ka=0)),Io.S.h(Wi,Ka),oe=Math.max(oe,Ci),Wt=Math.max(Wt,le+(li===0?0:Pt)+Wa.width),Ni=Ci;Tn++}switch(0<li&&(y?(oe+=Math.max(0,x),Wi<Wt&&rc(a,ot,Wt-Wi,0,Nr,rt-1),0<Ft&&(st||Gc(a,Ft,0,0,rt-1),Wt+=Ft)):(Wt+=Math.max(0,x),Ni<oe&&rc(a,ot,0,oe-Ni,Nr,rt-1),0<Ft&&(st||Gc(a,0,Ft,0,rt-1),oe+=Ft))),Ft=st=0,ot){case tg:y?st+=Wt/2-a.focus.x-xt/2:Ft+=oe/2-a.focus.y-xt/2;break;case Yc:0<li?y?st+=Wt/2-a.focus.x-xt/2:Ft+=oe/2-a.focus.y-xt/2:y?(Er=tt[0].S.x+tt[0].la.x,st+=Er+(tt[rt-1].S.x+tt[rt-1].la.x+2*tt[rt-1].focus.x-Er)/2-a.focus.x-xt/2):(Er=tt[0].S.y+tt[0].la.y,Ft+=Er+(tt[rt-1].S.y+tt[rt-1].la.y+2*tt[rt-1].focus.y-Er)/2-a.focus.y-xt/2);break;case Ku:y?(st-=xt,Wt+=xt):(Ft-=xt,oe+=xt);break;case Yu:y?(st+=Wt-a.width+xt,Wt+=xt):(Ft+=oe-a.height+xt,oe+=xt);break;case Rh:y?1<rt?st+=Er+vt/2-a.focus.x:st+=tt[0].focus.x-a.focus.x+tt[0].la.x:1<rt?Ft+=Er+vt/2-a.focus.y:Ft+=tt[0].focus.y-a.focus.y+tt[0].la.y;break;case zh:y?st+=Wt+vt/2-a.focus.x:Ft+=oe+vt/2-a.focus.y;break;case lh:break;default:oe=this.customAlignment(a,st,Ft,Wt,oe),st=oe[0],Ft=oe[1],Wt=oe[2],oe=oe[3]}for(xt=0;xt<rt;xt++)Er=tt[xt],y?Er.S.h(Er.S.x+Er.la.x-st,Er.S.y+(135<b?(ut?-oe:-Er.Da.height)+Er.la.y-x:Xt+x+Er.la.y)):Er.S.h(Er.S.x+(135<b?(ut?-Wt:-Er.Da.width)+Er.la.x-x:E+x+Er.la.x),Er.S.y+Er.la.y-Ft);if(rt=tt=0,ut?y?(Wt=By(a,Wt,st),0>st&&(st=0),135<b&&(Ft+=oe+x),oe+=Xt+x,ot===lh&&(tt+=vt/2+a.focus.x),rt+=Xt+x):(135<b&&(st+=Wt+x),Wt+=E+x,oe=Ty(a,oe,Ft),0>Ft&&(Ft=0),ot===lh&&(rt+=vt/2+a.focus.y),tt+=E+x):y?(a.comments===null?E>Wt&&(Wt=Oy(ot,E-Wt,0),tt=Wt.x,rt=Wt.y,Wt=E,st=0):Wt=By(a,Wt,st),0>st&&(tt-=st,st=0),135<b&&(Ft+=oe+x),oe=Math.max(Math.max(oe,Xt),oe+Xt+x),rt+=Xt+x):(135<b&&(st+=Wt+x),Wt=Math.max(Math.max(Wt,E),Wt+E+x),a.comments===null?Xt>oe&&(oe=Oy(ot,0,Xt-oe),tt=oe.x,rt=oe.y,oe=Xt,Ft=0):oe=Ty(a,oe,Ft),0>Ft&&(rt-=Ft,Ft=0),tt+=E+x),0<li)b=Us(this,4),li=Us(this,4),y?(b[2].h(0,Xt+x),b[3].h(b[2].x,oe),li[2].h(Wt,b[2].y),li[3].h(li[2].x,b[3].y)):(b[2].h(E+x,0),b[3].h(Wt,b[2].y),li[2].h(b[2].x,oe),li[3].h(b[3].x,li[2].y));else{for(b=Us(this,ce.length+2),li=Us(this,Ae.length+2),ot=0;ot<ce.length;ot++)ut=ce[ot],b[ot+2].h(ut.x+tt,ut.y+rt);for(ot=0;ot<Ae.length;ot++)ut=Ae[ot],li[ot+2].h(ut.x+tt,ut.y+rt)}y?(b[0].h(st,0),b[1].h(b[0].x,Xt),b[2].y<b[1].y&&(b[2].x>b[0].x?b[2].assign(b[1]):b[1].assign(b[2])),b[3].y<b[2].y&&(b[3].x>b[0].x?b[3].assign(b[2]):b[2].assign(b[3])),li[0].h(st+E,0),li[1].h(li[0].x,Xt),li[2].y<li[1].y&&(li[2].x<li[0].x?li[2].assign(li[1]):li[1].assign(li[2])),li[3].y<li[2].y&&(li[3].x<li[0].x?li[3].assign(li[2]):li[2].assign(li[3])),b[2].y-=x/2,li[2].y-=x/2):(b[0].h(0,Ft),b[1].h(E,b[0].y),b[2].x<b[1].x&&(b[2].y>b[0].y?b[2].assign(b[1]):b[1].assign(b[2])),b[3].x<b[2].x&&(b[3].y>b[0].y?b[3].assign(b[2]):b[2].assign(b[3])),li[0].h(0,Ft+Xt),li[1].h(E,li[0].y),li[2].x<li[1].x&&(li[2].y<li[0].y?li[2].assign(li[1]):li[1].assign(li[2])),li[3].x<li[2].x&&(li[3].y<li[0].y?li[3].assign(li[2]):li[2].assign(li[3])),b[2].x-=x/2,li[2].x-=x/2),du(this,ce),du(this,Ae),a.Yo=b,a.kp=li,a.la.h(st,Ft),a.Da.h(Wt,oe)}break;default:ee("Unhandled compaction value "+a.compaction.toString())}}};function gx(a,y){if(y.childrenCount===0){var x=!1,E=0;y.parent!==null&&(E=y.parent.angle,x=y.parent.alignment,x=Pd(x));var b=Ny(y);y.S.h(0,0),y.Da.h(y.width,y.height),y.parent===null||y.comments===null||(E!==180&&E!==270||x)&&!b?y.la.h(0,0):E===180&&!x||(E===90||E===270)&&b?y.la.h(y.width-2*y.focus.x,0):y.la.h(0,y.height-2*y.focus.y)}else{E=nu(y),x=E===90||E===270;var z=0;b=y.children;for(var tt=b.length,rt=0;rt<tt;rt++){var ot=b[rt];z=Math.max(z,x?ot.Da.width:ot.Da.height)}var st=y.alignment,ut=st===Ku,ft=st===Yu;rt=Pd(st);var vt=Math.max(0,y.breadthLimit);ot=a.computeLayerSpacing(y);var xt=y.nodeSpacing,Pt=a.computeNodeIndent(y),Ft=ut||ft?0:Pt/2,Xt=y.rowSpacing,Wt=0;(ut||ft||y.hm||y.im&&y.maxGenerationCount===1)&&(Wt=Math.max(0,y.rowIndent)),ut=y.width;var oe=y.height,le=0,ce=0,Ae=0,Je=0,Ci=0,Wi=0,Ni=0,li=0,Tn=0,Nr=0;if(rt&&!Fp(st)&&135<E&&b.reverse(),Fp(st))if(1<tt)for(var Er=0;Er<tt;Er++){var ho=b[Er],Io=ho.Da;Er%2===0&&Er!==tt-1?Tn=Math.max(Tn,(x?Io.width:Io.height)+a.computeBusNodeSpacing(ho)-xt):Er%2!==0&&(Nr=Math.max(Nr,(x?Io.width:Io.height)+a.computeBusNodeSpacing(ho)-xt))}else tt===1&&(Tn=x?b[0].Da.width:b[0].Da.height);if(rt)switch(st){case Rh:case Uu:ce=135>E?px(a,y,b,Tn,le,ce):mx(a,y,b,Tn,le,ce),Tn=ce.x,le=ce.width,ce=ce.height;break;case zh:for(vt=0;vt<tt;vt++)Ft=b[vt],Ae=Ft.Da,Nr=Ni===0?0:Xt,x?(Ft.S.h(z-Ae.width,Ci+Nr),le=Math.max(le,Ae.width),ce=Math.max(ce,Ci+Nr+Ae.height),Ci+=Nr+Ae.height):(Ft.S.h(Je+Nr,z-Ae.height),le=Math.max(le,Je+Nr+Ae.width),ce=Math.max(ce,Ae.height),Je+=Nr+Ae.width),Ni++;break;case lh:for(z=0;z<tt;z++)vt=b[z],Ft=vt.Da,Ae=Ni===0?0:Xt,x?(vt.S.h(xt/2+y.focus.x,Ci+Ae),le=Math.max(le,Ft.width),ce=Math.max(ce,Ci+Ae+Ft.height),Ci+=Ae+Ft.height):(vt.S.h(Je+Ae,xt/2+y.focus.y),le=Math.max(le,Je+Ae+Ft.width),ce=Math.max(ce,Ft.height),Je+=Ae+Ft.width),Ni++}else for(Nr=0;Nr<tt;Nr++)Er=b[Nr],ho=Er.Da,x?(0<vt&&0<Ni&&Je+xt+ho.width>vt&&(Je<z&&rc(y,st,z-Je,0,li,Nr-1),Wi++,Ni=0,li=Nr,Ae=ce,Je=0,Ci=135<E?-ce-Xt:ce+Xt),Io=Ni===0?Ft:xt,O0(a,Er,0,Ci),Er.S.h(Je+Io,Ci),le=Math.max(le,Je+Io+ho.width),ce=Math.max(ce,Ae+(Wi===0?0:Xt)+ho.height),Je+=Io+ho.width):(0<vt&&0<Ni&&Ci+xt+ho.height>vt&&(Ci<z&&rc(y,st,0,z-Ci,li,Nr-1),Wi++,Ni=0,li=Nr,Ae=le,Ci=0,Je=135<E?-le-Xt:le+Xt),Io=Ni===0?Ft:xt,O0(a,Er,Je,0),Er.S.h(Je,Ci+Io),ce=Math.max(ce,Ci+Io+ho.height),le=Math.max(le,Ae+(Wi===0?0:Xt)+ho.width),Ci+=Io+ho.height),Ni++;switch(0<Wi&&(x?(ce+=Math.max(0,ot),Je<le&&rc(y,st,le-Je,0,li,tt-1),0<Wt&&(ft||Gc(y,Wt,0,0,tt-1),le+=Wt)):(le+=Math.max(0,ot),Ci<ce&&rc(y,st,0,ce-Ci,li,tt-1),0<Wt&&(ft||Gc(y,0,Wt,0,tt-1),ce+=Wt))),Wt=ft=0,st){case tg:x?ft+=le/2-y.focus.x-Pt/2:Wt+=ce/2-y.focus.y-Pt/2;break;case Yc:0<Wi?x?ft+=le/2-y.focus.x-Pt/2:Wt+=ce/2-y.focus.y-Pt/2:x?(a=b[0].S.x+b[0].la.x,ft+=a+(b[tt-1].S.x+b[tt-1].la.x+2*b[tt-1].focus.x-a)/2-y.focus.x-Pt/2):(a=b[0].S.y+b[0].la.y,Wt+=a+(b[tt-1].S.y+b[tt-1].la.y+2*b[tt-1].focus.y-a)/2-y.focus.y-Pt/2);break;case Ku:x?(ft-=Pt,le+=Pt):(Wt-=Pt,ce+=Pt);break;case Yu:x?(ft+=le-y.width+Pt,le+=Pt):(Wt+=ce-y.height+Pt,ce+=Pt);break;case Rh:case Uu:x?1<tt?ft+=Tn+xt/2-y.focus.x:ft+=b[0].focus.x-y.focus.x+b[0].la.x:1<tt?Wt+=Tn+xt/2-y.focus.y:Wt+=b[0].focus.y-y.focus.y+b[0].la.y;break;case zh:x?ft+=le+xt/2-y.focus.x:Wt+=ce+xt/2-y.focus.y;break;case lh:break;default:a=a.customAlignment(y,ft,Wt,le,ce),ft=a[0],Wt=a[1],le=a[2],ce=a[3]}for(a=0;a<tt;a++)Pt=b[a],x?Pt.S.h(Pt.S.x+Pt.la.x-ft,Pt.S.y+(135<E?(rt?-ce:-Pt.Da.height)+Pt.la.y-ot:oe+ot+Pt.la.y)):Pt.S.h(Pt.S.x+(135<E?(rt?-le:-Pt.Da.width)+Pt.la.x-ot:ut+ot+Pt.la.x),Pt.S.y+Pt.la.y-Wt);x?(le=By(y,le,ft),0>ft&&(ft=0),135<E&&(Wt+=ce+ot),ce=Math.max(Math.max(ce,oe),ce+oe+ot)):(135<E&&(ft+=le+ot),le=Math.max(Math.max(le,ut),le+ut+ot),ce=Ty(y,ce,Wt),0>Wt&&(Wt=0)),y.la.h(ft,Wt),y.Da.h(le,ce)}}Xr.prototype.customAlignment=function(a,y,x,E,b){return[y,x,E,b]};function px(a,y,x,E,b,z){var tt=x.length;if(tt===0)return new ue(E,0,b,z);if(tt===1)return y=x[0],b=y.Da.width,z=y.Da.height,new ue(E,0,b,z);for(var rt=y.nodeSpacing,ot=y.rowSpacing,st=nu(y)===90,ut=0,ft=0,vt=0,xt=0;xt<tt;xt++)if(!(xt%2!==0||1<tt&&xt===tt-1)){var Pt=x[xt],Ft=Pt.Da,Xt=ut===0?0:ot;if(st){var Wt=a.computeBusNodeSpacing(Pt)-rt;Pt.S.h(E-(Ft.width+Wt),vt+Xt),b=Math.max(b,Ft.width+Wt),z=Math.max(z,vt+Xt+Ft.height),vt+=Xt+Ft.height}else Wt=a.computeBusNodeSpacing(Pt)-rt,Pt.S.h(ft+Xt,E-(Ft.height+Wt)),z=Math.max(z,Ft.height+Wt),b=Math.max(b,ft+Xt+Ft.width),ft+=Xt+Ft.width;ut++}for(ut=0,Pt=ft,xt=vt,st?(ft=E+rt,vt=0):(ft=0,vt=E+rt),Ft=0;Ft<tt;Ft++)if(Ft%2!==0){Xt=x[Ft],Wt=Xt.Da;var oe=ut===0?0:ot;if(st){var le=a.computeBusNodeSpacing(Xt)-rt;Xt.S.h(ft+le,vt+oe),b=Math.max(b,ft+Wt.width+le),z=Math.max(z,vt+oe+Wt.height),vt+=oe+Wt.height}else le=a.computeBusNodeSpacing(Xt)-rt,Xt.S.h(ft+oe,vt+le),b=Math.max(b,ft+oe+Wt.width),z=Math.max(z,vt+Wt.height+le),ft+=oe+Wt.width;ut++}return 1<tt&&tt%2===1&&(x=x[tt-1],tt=x.Da,a=a.computeBusLastRowSpacing(x,st?Math.max(Math.abs(xt),Math.abs(vt)):Math.max(Math.abs(Pt),Math.abs(ft))),st?(x.S.h(E+rt/2-x.focus.x-x.la.x,z+a),st=E+rt/2-x.focus.x-x.la.x,b=Math.max(b,st+tt.width),0>st&&(b-=st),z=Math.max(z,Math.max(xt,vt)+a+tt.height),0>x.S.x&&(E=T0(y,x.S.x,!1,E,rt))):(x.S.h(b+a,E+rt/2-x.focus.y-x.la.y),b=Math.max(b,Math.max(Pt,ft)+a+tt.width),vt=E+rt/2-x.focus.y-x.la.y,z=Math.max(z,vt+tt.height),0>vt&&(z-=vt),0>x.S.y&&(E=T0(y,x.S.y,!0,E,rt)))),new ue(E,0,b,z)}function mx(a,y,x,E,b,z){var tt=x.length;if(tt===0)return new ue(E,0,b,z);if(tt===1)return x=x[0],b=x.Da.width,z=x.Da.height,new ue(E,0,b,z);for(var rt=y.nodeSpacing,ot=y.rowSpacing,st=nu(y)===270,ut=0,ft=0,vt=0,xt=0;xt<tt;xt++)if(!(xt%2!==0||1<tt&&xt===tt-1)){var Pt=x[xt],Ft=Pt.Da,Xt=ut===0?0:ot;if(st){var Wt=a.computeBusNodeSpacing(Pt)-rt;vt-=Xt+Ft.height,Pt.S.h(E-(Ft.width+Wt),vt),b=Math.max(b,Ft.width+Wt),z=Math.max(z,Math.abs(vt))}else Wt=a.computeBusNodeSpacing(Pt)-rt,ft-=Xt+Ft.width,Pt.S.h(ft,E-(Ft.height+Wt)),z=Math.max(z,Ft.height+Wt),b=Math.max(b,Math.abs(ft));ut++}for(ut=0,Pt=ft,xt=vt,st?(ft=E+rt,vt=0):(ft=0,vt=E+rt),Ft=0;Ft<tt;Ft++)if(Ft%2!==0){Xt=x[Ft],Wt=Xt.Da;var oe=ut===0?0:ot;if(st){var le=a.computeBusNodeSpacing(Xt)-rt;vt-=oe+Wt.height,Xt.S.h(ft+le,vt),b=Math.max(b,ft+Wt.width+le),z=Math.max(z,Math.abs(vt))}else le=a.computeBusNodeSpacing(Xt)-rt,ft-=oe+Wt.width,Xt.S.h(ft,vt+le),z=Math.max(z,vt+Wt.height+le),b=Math.max(b,Math.abs(ft));ut++}for(1<tt&&tt%2===1&&(ot=x[tt-1],ut=ot.Da,a=a.computeBusLastRowSpacing(ot,st?Math.max(Math.abs(xt),Math.abs(vt)):Math.max(Math.abs(Pt),Math.abs(ft))),st?(ot.S.h(E+rt/2-ot.focus.x-ot.la.x,-z-ut.height-a),ft=E+rt/2-ot.focus.x-ot.la.x,b=Math.max(b,ft+ut.width),0>ft&&(b-=ft),z=Math.max(z,Math.abs(Math.min(xt,vt))+a+ut.height),0>ot.S.x&&(E=T0(y,ot.S.x,!1,E,rt))):(ot.S.h(-b-ut.width-a,E+rt/2-ot.focus.y-ot.la.y),b=Math.max(b,Math.abs(Math.min(Pt,ft))+a+ut.width),vt=E+rt/2-ot.focus.y-ot.la.y,z=Math.max(z,vt+ut.height),0>vt&&(z-=vt),0>ot.S.y&&(E=T0(y,ot.S.y,!0,E,rt)))),y=0;y<tt;y++)rt=x[y],st?rt.S.h(rt.S.x,rt.S.y+z):rt.S.h(rt.S.x+b,rt.S.y);return new ue(E,0,b,z)}Xr.prototype.computeBusNodeSpacing=function(a){return a.parent===null?0:a.parent.nodeSpacing},Xr.prototype.computeBusLastRowSpacing=function(a){return a.parent===null?0:a.parent.rowSpacing};function T0(a,y,x,E,b){a=a.children;for(var z=a.length,tt=0;tt<z;tt++)x?a[tt].S.h(a[tt].S.x,a[tt].S.y-y):a[tt].S.h(a[tt].S.x-y,a[tt].S.y);return y=a[z-1],Math.max(E,x?y.la.y+y.focus.y-b/2:y.la.x+y.focus.x-b/2)}function By(a,y,x){switch(a.alignment){case Yc:case tg:return x+a.width>y&&(y=x+a.width),0>x&&(y-=x),y;case Ku:return a.width>y?a.width:y;case Yu:return 2*a.focus.x>y?a.width:y+a.width-2*a.focus.x;case Rh:case Uu:return Math.max(a.width,Math.max(y,x+a.width)-Math.min(0,x));case zh:return a.width-a.focus.x+a.nodeSpacing/2+y;case lh:return Math.max(a.width,a.focus.x+a.nodeSpacing/2+y);default:return y}}function Ty(a,y,x){switch(a.alignment){case Yc:case tg:return x+a.height>y&&(y=x+a.height),0>x&&(y-=x),y;case Ku:return a.height>y?a.height:y;case Yu:return 2*a.focus.y>y?a.height:y+a.height-2*a.focus.y;case Rh:case Uu:return Math.max(a.height,Math.max(y,x+a.height)-Math.min(0,x));case zh:return a.height-a.focus.y+a.nodeSpacing/2+y;case lh:return Math.max(a.height,a.focus.y+a.nodeSpacing/2+y);default:return y}}function Oy(a,y,x){switch(a){case tg:y/=2,x/=2;break;case Yc:y/=2,x/=2;break;case Ku:x=y=0;break;case Yu:break;default:ee("Unhandled alignment value "+a.toString())}return new Bt(y,x)}function rc(a,y,x,E,b,z){y=Oy(y,x,E),Gc(a,y.x,y.y,b,z)}function Gc(a,y,x,E,b){if(y!==0||x!==0)for(a=a.children;E<=b;E++){var z=a[E].S;z.x+=y,z.y+=x}}function O0(a,y,x,E){var b=y.parent;switch(a.ud){case Gu:for(a=y.sourceEdges;a.next();)y=a.value,y.fromVertex===b&&y.relativePoint.h(x,E);break;case Kc:for(a=y.destinationEdges;a.next();)y=a.value,y.toVertex===b&&y.relativePoint.h(x,E);break;default:ee("Unhandled path value "+a.ud.toString())}}function I0(a,y,x){for(var E=0;E<a.length;E++){var b=a[E];b.x+=y,b.y+=x}}function vx(a,y,x,E,b,z,tt,rt){var ot=nu(y),st=ot===90||ot===270,ut=y.nodeSpacing;y=E;var ft=b;E=z;var vt=tt,xt=x.Yo,Pt=x.kp;tt=x.Da;var Ft=st?Math.max(vt,tt.height):Math.max(E,tt.width);if((xt===null||ot!==nu(x))&&(xt=Us(a,2),Pt=Us(a,2),st?(xt[0].h(0,0),xt[1].h(0,tt.height),Pt[0].h(tt.width,0),Pt[1].h(Pt[0].x,xt[1].y)):(xt[0].h(0,0),xt[1].h(tt.width,0),Pt[0].h(0,tt.height),Pt[1].h(xt[1].x,Pt[0].y))),st){if(vt=9999999,!(ft===null||2>ft.length||xt===null||2>xt.length))for(b=x=0;x<ft.length&&b<xt.length;){z=ft[x];var Xt=xt[b];ot=Xt.x,st=Xt.y,ot+=E;var Wt=z;x+1<ft.length&&(Wt=ft[x+1]);var oe=Xt;Xt=oe.x,oe=oe.y,b+1<xt.length&&(oe=xt[b+1],Xt=oe.x,oe=oe.y,Xt+=E);var le=vt;z.y===st?le=ot-z.x:z.y>st&&z.y<oe?le=ot+(z.y-st)/(oe-st)*(Xt-ot)-z.x:st>z.y&&st<Wt.y&&(le=ot-(z.x+(st-z.y)/(Wt.y-z.y)*(Wt.x-z.x))),le<vt&&(vt=le),Wt.y<=z.y?x++:oe<=st?b++:(Wt.y<=oe&&x++,oe<=Wt.y&&b++)}if(vt=E-vt,vt+=ut,x=xt,b=vt,y===null||2>y.length||x===null||2>x.length)E=null;else{for(ut=Us(a,y.length+x.length),E=z=ot=0;z<x.length&&x[z].y<y[0].y;)st=x[z++],ut[E++].h(st.x+b,st.y);for(;ot<y.length;)st=y[ot++],ut[E++].h(st.x,st.y);for(ot=y[y.length-1].y;z<x.length&&x[z].y<=ot;)z++;for(;z<x.length&&x[z].y>ot;)st=x[z++],ut[E++].h(st.x+b,st.y);for(x=Us(a,E),ot=0;ot<E;ot++)x[ot].assign(ut[ot]);du(a,ut),E=x}if(z=Pt,ot=vt,ft===null||2>ft.length||z===null||2>z.length)b=null;else{for(ut=Us(a,ft.length+z.length),b=st=x=0;x<ft.length&&ft[x].y<z[0].y;)Wt=ft[x++],ut[b++].h(Wt.x,Wt.y);for(;st<z.length;)Wt=z[st++],ut[b++].h(Wt.x+ot,Wt.y);for(z=z[z.length-1].y;x<ft.length&&ft[x].y<=z;)x++;for(;x<ft.length&&ft[x].y>z;)ot=ft[x++],ut[b++].h(ot.x,ot.y);for(z=Us(a,b),x=0;x<b;x++)z[x].assign(ut[x]);du(a,ut),b=z}return z=Math.max(0,vt)+tt.width,tt=Ft,du(a,y),du(a,xt),du(a,ft),du(a,Pt),rt[0]=E,rt[1]=b,new ue(vt,0,z,tt)}if(E=9999999,!(ft===null||2>ft.length||xt===null||2>xt.length))for(b=x=0;x<ft.length&&b<xt.length;)z=ft[x],Xt=xt[b],ot=Xt.x,st=Xt.y,st+=vt,Wt=z,x+1<ft.length&&(Wt=ft[x+1]),oe=Xt,Xt=oe.x,oe=oe.y,b+1<xt.length&&(oe=xt[b+1],Xt=oe.x,oe=oe.y,oe+=vt),le=E,z.x===ot?le=st-z.y:z.x>ot&&z.x<Xt?le=st+(z.x-ot)/(Xt-ot)*(oe-st)-z.y:ot>z.x&&ot<Wt.x&&(le=st-(z.y+(ot-z.x)/(Wt.x-z.x)*(Wt.y-z.y))),le<E&&(E=le),Wt.x<=z.x?x++:Xt<=ot?b++:(Wt.x<=Xt&&x++,Xt<=Wt.x&&b++);if(vt-=E,vt+=ut,x=xt,b=vt,y===null||2>y.length||x===null||2>x.length)E=null;else{for(ut=Us(a,y.length+x.length),E=z=ot=0;z<x.length&&x[z].x<y[0].x;)st=x[z++],ut[E++].h(st.x,st.y+b);for(;ot<y.length;)st=y[ot++],ut[E++].h(st.x,st.y);for(ot=y[y.length-1].x;z<x.length&&x[z].x<=ot;)z++;for(;z<x.length&&x[z].x>ot;)st=x[z++],ut[E++].h(st.x,st.y+b);for(x=Us(a,E),ot=0;ot<E;ot++)x[ot].assign(ut[ot]);du(a,ut),E=x}if(z=Pt,ot=vt,ft===null||2>ft.length||z===null||2>z.length)b=null;else{for(ut=Us(a,ft.length+z.length),b=st=x=0;x<ft.length&&ft[x].x<z[0].x;)Wt=ft[x++],ut[b++].h(Wt.x,Wt.y);for(;st<z.length;)Wt=z[st++],ut[b++].h(Wt.x,Wt.y+ot);for(z=z[z.length-1].x;x<ft.length&&ft[x].x<=z;)x++;for(;x<ft.length&&ft[x].x>z;)ot=ft[x++],ut[b++].h(ot.x,ot.y);for(z=Us(a,b),x=0;x<b;x++)z[x].assign(ut[x]);du(a,ut),b=z}return z=Ft,tt=Math.max(0,vt)+tt.height,du(a,y),du(a,xt),du(a,ft),du(a,Pt),rt[0]=E,rt[1]=b,new ue(vt,0,z,tt)}function Us(a,y){if(a=a.ru[y],a!==void 0&&(a=a.pop(),a!==void 0))return a;a=[];for(var x=0;x<y;x++)a[x]=new Bt;return a}function du(a,y){var x=y.length,E=a.ru[x];E===void 0&&(E=[],a.ru[x]=E),E.push(y)}Xr.prototype.arrangeTrees=function(){if(this.Rb===H0)for(var a=this.Ub.iterator;a.next();){var y=a.value;if(y instanceof Hl){var x=y.node;if(x!==null){var E=x.position;x=E.x,E=E.y,isFinite(x)||(x=0),isFinite(E)||(E=0),Iy(this,y,x,E)}}}else{for(a=[],y=this.Ub.iterator;y.next();)x=y.value,x instanceof Hl&&a.push(x);switch(this.sorting){case $f:break;case Dp:a.reverse();break;case Np:a.sort(this.comparer);break;case Bp:a.sort(this.comparer),a.reverse();break;default:ee("Unhandled sorting value "+this.sorting.toString())}for(x=this.arrangementOrigin,y=x.x,x=x.y,E=0;E<a.length;E++){var b=a[E];switch(Iy(this,b,y+b.la.x,x+b.la.y),this.Rb){case W0:x+=b.Da.height+this.$d.height;break;case Wy:y+=b.Da.width+this.$d.width;break;default:ee("Unhandled arrangement value "+this.Rb.toString())}}}};function Iy(a,y,x,E){if(y!==null){y.x=x,y.y=E,y=y.children;for(var b=y.length,z=0;z<b;z++){var tt=y[z];Iy(a,tt,x+tt.S.x,E+tt.S.y)}}}Xr.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},Xr.prototype.commitNodes=function(){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();for(a.reset();a.next();)this.layoutComments(a.value)},Xr.prototype.Gu=function(){if(this.layerStyle===Z0){for(var a=this.$v,y=[],x=null,E=this.network.vertexes.iterator;E.next();){var b=E.value;x===null?x=b.bounds.copy():x.ed(b.bounds);var z=y[b.level];z===void 0?z=this.computeLayerSpacing(b):z=Math.max(z,this.computeLayerSpacing(b)),y[b.level]=z}for(E=0;E<y.length;E++)y[E]===void 0&&(y[E]=0);if(this.angle===90||this.angle===270?(x.Bc(this.nodeSpacing/2,this.layerSpacing),E=new Bt(-this.nodeSpacing/2,-this.layerSpacing/2)):(x.Bc(this.layerSpacing,this.nodeSpacing/2),E=new Bt(-this.layerSpacing/2,-this.nodeSpacing/2)),b=[],x=this.angle===90||this.angle===270?x.width:x.height,z=0,this.angle===180||this.angle===270)for(var tt=0;tt<a.length;tt++)z+=a[tt]+y[tt];for(tt=0;tt<a.length;tt++){var rt=a[tt]+y[tt];this.angle===270?(z-=rt,b.push(new ue(0,z,x,rt))):this.angle===90?(b.push(new ue(0,z,x,rt)),z+=rt):this.angle===180?(z-=rt,b.push(new ue(z,0,rt,x))):(b.push(new ue(z,0,rt,x)),z+=rt)}this.commitLayers(b,E)}},Xr.prototype.commitLayers=function(){},Xr.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},Xr.prototype.yv=function(){for(var a=this.Ub.iterator;a.next();){var y=a.value;y instanceof Hl&&yx(this,y)}};function yx(a,y){if(y!==null){a.setPortSpots(y),y=y.children;for(var x=y.length,E=0;E<x;E++)yx(a,y[E])}}Xr.prototype.setPortSpots=function(a){var y=a.alignment;if(Pd(y)){var x=this.ud===Gu,E=nu(a);switch(E){case 0:var b=vo;break;case 90:b=Go;break;case 180:b=yo;break;default:b=Fo}var z=a.children,tt=z.length;switch(y){case Rh:case Uu:for(y=0;y<tt;y++){var rt=z[y];if(rt=(x?rt.sourceEdges:rt.destinationEdges).first(),rt!==null&&(rt=rt.link,rt!==null)){var ot=E===90||E===270?yo:Fo;if(tt===1||y===tt-1&&tt%2===1)switch(E){case 0:ot=yo;break;case 90:ot=Fo;break;case 180:ot=vo;break;default:ot=Go}else y%2===0&&(ot=E===90||E===270?vo:Go);x?(a.setsPortSpot&&(rt.fromSpot=b),a.setsChildPortSpot&&(rt.toSpot=ot)):(a.setsPortSpot&&(rt.fromSpot=ot),a.setsChildPortSpot&&(rt.toSpot=b))}}break;case zh:for(E=E===90||E===270?vo:Go,z=x?a.destinationEdges:a.sourceEdges;z.next();)tt=z.value.link,tt!==null&&(x?(a.setsPortSpot&&(tt.fromSpot=b),a.setsChildPortSpot&&(tt.toSpot=E)):(a.setsPortSpot&&(tt.fromSpot=E),a.setsChildPortSpot&&(tt.toSpot=b)));break;case lh:for(E=E===90||E===270?yo:Fo,z=x?a.destinationEdges:a.sourceEdges;z.next();)tt=z.value.link,tt!==null&&(x?(a.setsPortSpot&&(tt.fromSpot=b),a.setsChildPortSpot&&(tt.toSpot=E)):(a.setsPortSpot&&(tt.fromSpot=E),a.setsChildPortSpot&&(tt.toSpot=b)))}}else if(x=nu(a),this.ud===Gu){for(b=a.destinationEdges;b.next();)if(E=b.value.link,E!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(x){case 0:E.fromSpot=vo;break;case 90:E.fromSpot=Go;break;case 180:E.fromSpot=yo;break;default:E.fromSpot=Fo}else E.fromSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:E.toSpot=yo;break;case 90:E.toSpot=Fo;break;case 180:E.toSpot=vo;break;default:E.toSpot=Go}else E.toSpot=a.childPortSpot}}else for(b=a.sourceEdges;b.next();)if(E=b.value.link,E!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(x){case 0:E.toSpot=vo;break;case 90:E.toSpot=Go;break;case 180:E.toSpot=yo;break;default:E.toSpot=Fo}else E.toSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:E.fromSpot=yo;break;case 90:E.fromSpot=Fo;break;case 180:E.fromSpot=vo;break;default:E.fromSpot=Go}else E.fromSpot=a.childPortSpot}};function nu(a){return a=a.angle,45>=a?0:135>=a?90:225>=a?180:315>=a?270:0}Xr.prototype.computeLayerSpacing=function(a){var y=nu(a);y=y===90||y===270;var x=a.layerSpacing;if(0<a.layerSpacingParentOverlap){var E=Math.min(1,a.layerSpacingParentOverlap);x-=y?a.height*E:a.width*E}return x<(y?-a.height:-a.width)&&(x=y?-a.height:-a.width),x},Xr.prototype.computeNodeIndent=function(a){var y=nu(a),x=a.nodeIndent;if(0<a.nodeIndentPastParent){var E=Math.min(1,a.nodeIndentPastParent);x+=y===90||y===270?a.width*E:a.height*E}return x=Math.max(0,x)},xe.Object.defineProperties(Xr.prototype,{roots:{get:function(){return this.Ub},set:function(a){this.Ub!==a&&(this.Ub=a,this.C())}},path:{get:function(){return this.Wn},set:function(a){this.Wn!==a&&(this.Wn=a,this.C())}},treeStyle:{get:function(){return this.vo},set:function(a){this.Rb===a||a!==j0&&a!==zy&&a!==Ry&&a!==jy||(this.vo=a,this.C())}},layerStyle:{get:function(){return this.Bq},set:function(a){this.Rb===a||a!==Hy&&a!==Zy&&a!==Z0||(this.Bq=a,this.C())}},comments:{get:function(){return this.td},set:function(a){this.td!==a&&(this.td=a,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==W0&&a!==Wy&&a!==H0||(this.Rb=a,this.C())}},arrangementSpacing:{get:function(){return this.$d},set:function(a){this.$d.D(a)||(this.$d.assign(a),this.C())}},rootDefaults:{get:function(){return this.W},set:function(a){this.W!==a&&(this.W=a,this.C())}},alternateDefaults:{get:function(){return this.Y},set:function(a){this.Y!==a&&(this.Y=a,this.C())}},sorting:{get:function(){return this.W.sorting},set:function(a){this.W.sorting===a||a!==$f&&a!==Dp&&a!==Np&&!Bp||(this.W.sorting=a,this.C())}},comparer:{get:function(){return this.W.comparer},set:function(a){this.W.comparer!==a&&(this.W.comparer=a,this.C())}},angle:{get:function(){return this.W.angle},set:function(a){this.W.angle!==a&&(a===0||a===90||a===180||a===270?(this.W.angle=a,this.C()):ee("TreeLayout.angle must be 0, 90, 180, or 270"))}},alignment:{get:function(){return this.W.alignment},set:function(a){this.W.alignment!==a&&(this.W.alignment=a,this.C())}},nodeIndent:{get:function(){return this.W.nodeIndent},set:function(a){this.W.nodeIndent!==a&&0<=a&&(this.W.nodeIndent=a,this.C())}},nodeIndentPastParent:{get:function(){return this.W.nodeIndentPastParent},set:function(a){this.W.nodeIndentPastParent!==a&&0<=a&&1>=a&&(this.W.nodeIndentPastParent=a,this.C())}},nodeSpacing:{get:function(){return this.W.nodeSpacing},set:function(a){this.W.nodeSpacing!==a&&(this.W.nodeSpacing=a,this.C())}},layerSpacing:{get:function(){return this.W.layerSpacing},set:function(a){this.W.layerSpacing!==a&&(this.W.layerSpacing=a,this.C())}},layerSpacingParentOverlap:{get:function(){return this.W.layerSpacingParentOverlap},set:function(a){this.W.layerSpacingParentOverlap!==a&&0<=a&&1>=a&&(this.W.layerSpacingParentOverlap=a,this.C())}},compaction:{get:function(){return this.W.compaction},set:function(a){this.W.compaction===a||a!==z0&&a!==Tp||(this.W.compaction=a,this.C())}},breadthLimit:{get:function(){return this.W.breadthLimit},set:function(a){this.W.breadthLimit!==a&&0<=a&&(this.W.breadthLimit=a,this.C())}},rowSpacing:{get:function(){return this.W.rowSpacing},set:function(a){this.W.rowSpacing!==a&&(this.W.rowSpacing=a,this.C())}},rowIndent:{get:function(){return this.W.rowIndent},set:function(a){this.W.rowIndent!==a&&0<=a&&(this.W.rowIndent=a,this.C())}},commentSpacing:{get:function(){return this.W.commentSpacing},set:function(a){this.W.commentSpacing!==a&&(this.W.commentSpacing=a,this.C())}},commentMargin:{get:function(){return this.W.commentMargin},set:function(a){this.W.commentMargin!==a&&(this.W.commentMargin=a,this.C())}},setsPortSpot:{get:function(){return this.W.setsPortSpot},set:function(a){this.W.setsPortSpot!==a&&(this.W.setsPortSpot=a,this.C())}},portSpot:{get:function(){return this.W.portSpot},set:function(a){this.W.portSpot.D(a)||(this.W.portSpot=a,this.C())}},setsChildPortSpot:{get:function(){return this.W.setsChildPortSpot},set:function(a){this.W.setsChildPortSpot!==a&&(this.W.setsChildPortSpot=a,this.C())}},childPortSpot:{get:function(){return this.W.childPortSpot},set:function(a){this.W.childPortSpot.D(a)||(this.W.childPortSpot=a,this.C())}},alternateSorting:{get:function(){return this.Y.sorting},set:function(a){this.Y.sorting===a||a!==$f&&a!==Dp&&a!==Np&&!Bp||(this.Y.sorting=a,this.C())}},alternateComparer:{get:function(){return this.Y.comparer},set:function(a){this.Y.comparer!==a&&(this.Y.comparer=a,this.C())}},alternateAngle:{get:function(){return this.Y.angle},set:function(a){this.Y.angle===a||a!==0&&a!==90&&a!==180&&a!==270||(this.Y.angle=a,this.C())}},alternateAlignment:{get:function(){return this.Y.alignment},set:function(a){this.Y.alignment!==a&&(this.Y.alignment=a,this.C())}},alternateNodeIndent:{get:function(){return this.Y.nodeIndent},set:function(a){this.Y.nodeIndent!==a&&0<=a&&(this.Y.nodeIndent=a,this.C())}},alternateNodeIndentPastParent:{get:function(){return this.Y.nodeIndentPastParent},set:function(a){this.Y.nodeIndentPastParent!==a&&0<=a&&1>=a&&(this.Y.nodeIndentPastParent=a,this.C())}},alternateNodeSpacing:{get:function(){return this.Y.nodeSpacing},set:function(a){this.Y.nodeSpacing!==a&&(this.Y.nodeSpacing=a,this.C())}},alternateLayerSpacing:{get:function(){return this.Y.layerSpacing},set:function(a){this.Y.layerSpacing!==a&&(this.Y.layerSpacing=a,this.C())}},alternateLayerSpacingParentOverlap:{get:function(){return this.Y.layerSpacingParentOverlap},set:function(a){this.Y.layerSpacingParentOverlap!==a&&0<=a&&1>=a&&(this.Y.layerSpacingParentOverlap=a,this.C())}},alternateCompaction:{get:function(){return this.Y.compaction},set:function(a){this.Y.compaction===a||a!==z0&&a!==Tp||(this.Y.compaction=a,this.C())}},alternateBreadthLimit:{get:function(){return this.Y.breadthLimit},set:function(a){this.Y.breadthLimit!==a&&0<=a&&(this.Y.breadthLimit=a,this.C())}},alternateRowSpacing:{get:function(){return this.Y.rowSpacing},set:function(a){this.Y.rowSpacing!==a&&(this.Y.rowSpacing=a,this.C())}},alternateRowIndent:{get:function(){return this.Y.rowIndent},set:function(a){this.Y.rowIndent!==a&&0<=a&&(this.Y.rowIndent=a,this.C())}},alternateCommentSpacing:{get:function(){return this.Y.commentSpacing},set:function(a){this.Y.commentSpacing!==a&&(this.Y.commentSpacing=a,this.C())}},alternateCommentMargin:{get:function(){return this.Y.commentMargin},set:function(a){this.Y.commentMargin!==a&&(this.Y.commentMargin=a,this.C())}},alternateSetsPortSpot:{get:function(){return this.Y.setsPortSpot},set:function(a){this.Y.setsPortSpot!==a&&(this.Y.setsPortSpot=a,this.C())}},alternatePortSpot:{get:function(){return this.Y.portSpot},set:function(a){this.Y.portSpot.D(a)||(this.Y.portSpot=a,this.C())}},alternateSetsChildPortSpot:{get:function(){return this.Y.setsChildPortSpot},set:function(a){this.Y.setsChildPortSpot!==a&&(this.Y.setsChildPortSpot=a,this.C())}},alternateChildPortSpot:{get:function(){return this.Y.childPortSpot},set:function(a){this.Y.childPortSpot.D(a)||(this.Y.childPortSpot=a,this.C())}}});var R0=new dn(Xr,"PathDefault",-1),Gu=new dn(Xr,"PathDestination",0),Kc=new dn(Xr,"PathSource",1),$f=new dn(Xr,"SortingForwards",10),Dp=new dn(Xr,"SortingReverse",11),Np=new dn(Xr,"SortingAscending",12),Bp=new dn(Xr,"SortingDescending",13),tg=new dn(Xr,"AlignmentCenterSubtrees",20),Yc=new dn(Xr,"AlignmentCenterChildren",21),Ku=new dn(Xr,"AlignmentStart",22),Yu=new dn(Xr,"AlignmentEnd",23),Rh=new dn(Xr,"AlignmentBus",24),Uu=new dn(Xr,"AlignmentBusBranching",25),zh=new dn(Xr,"AlignmentTopLeftBus",26),lh=new dn(Xr,"AlignmentBottomRightBus",27),z0=new dn(Xr,"CompactionNone",30),Tp=new dn(Xr,"CompactionBlock",31),j0=new dn(Xr,"StyleLayered",40),Ry=new dn(Xr,"StyleLastParents",41),zy=new dn(Xr,"StyleAlternating",42),jy=new dn(Xr,"StyleRootOnly",43),W0=new dn(Xr,"ArrangementVertical",50),Wy=new dn(Xr,"ArrangementHorizontal",51),H0=new dn(Xr,"ArrangementFixedRoots",52),Hy=new dn(Xr,"LayerIndividual",60),Zy=new dn(Xr,"LayerSiblings",61),Z0=new dn(Xr,"LayerUniform",62);Xr.className="TreeLayout",Xr.PathDefault=R0,Xr.PathDestination=Gu,Xr.PathSource=Kc,Xr.SortingForwards=$f,Xr.SortingReverse=Dp,Xr.SortingAscending=Np,Xr.SortingDescending=Bp,Xr.AlignmentCenterSubtrees=tg,Xr.AlignmentCenterChildren=Yc,Xr.AlignmentStart=Ku,Xr.AlignmentEnd=Yu,Xr.AlignmentBus=Rh,Xr.AlignmentBusBranching=Uu,Xr.AlignmentTopLeftBus=zh,Xr.AlignmentBottomRightBus=lh,Xr.CompactionNone=z0,Xr.CompactionBlock=Tp,Xr.StyleLayered=j0,Xr.StyleLastParents=Ry,Xr.StyleAlternating=zy,Xr.StyleRootOnly=jy,Xr.ArrangementVertical=W0,Xr.ArrangementHorizontal=Wy,Xr.ArrangementFixedRoots=H0,Xr.LayerIndividual=Hy,Xr.LayerSiblings=Zy,Xr.LayerUniform=Z0;function Uc(a){zo.call(this,a)}ye(Uc,zo),Uc.prototype.createVertex=function(){return new Hl(this)},Uc.prototype.createEdge=function(){return new eg(this)},Uc.className="TreeNetwork";function Hl(a){Ia.call(this,a),this.V=!1,this.hb=null,this.u=[],this.nb=this.Ha=this.F=this.ia=0,this.td=null,this.S=new Bt(0,0),this.Da=new zt(0,0),this.la=new Bt(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=$f,this.hd=ly,this.Kb=0,this.Jb=Yc,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=Tp,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=bo,this.wr=!0,this.Dp=bo}ye(Hl,Ia),Hl.prototype.copyInheritedPropertiesFrom=function(a){a!==null&&(this.nd=a.sorting,this.hd=a.comparer,this.Kb=a.angle,this.Jb=a.alignment,this.Uq=a.nodeIndent,this.Vq=a.nodeIndentPastParent,this.Wq=a.nodeSpacing,this.ie=a.layerSpacing,this.Aq=a.layerSpacingParentOverlap,this.Hp=a.compaction,this.Ap=a.breadthLimit,this.nr=a.rowSpacing,this.mr=a.rowIndent,this.Gp=a.commentSpacing,this.Fp=a.commentMargin,this.xr=a.setsPortSpot,this.dr=a.portSpot,this.wr=a.setsChildPortSpot,this.Dp=a.childPortSpot)},xe.Object.defineProperties(Hl.prototype,{initialized:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}},parent:{get:function(){return this.hb},set:function(a){this.hb!==a&&(this.hb=a)}},children:{get:function(){return this.u},set:function(a){if(this.u!==a){if(a!==null)for(var y=a.length,x=0;x<y;x++);this.u=a}}},level:{get:function(){return this.ia},set:function(a){this.ia!==a&&(this.ia=a)}},descendantCount:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}},maxChildrenCount:{get:function(){return this.Ha},set:function(a){this.Ha!==a&&(this.Ha=a)}},maxGenerationCount:{get:function(){return this.nb},set:function(a){this.nb!==a&&(this.nb=a)}},comments:{get:function(){return this.td},set:function(a){if(this.td!==a){if(a!==null)for(var y=a.length,x=0;x<y;x++);this.td=a}}},sorting:{get:function(){return this.nd},set:function(a){this.nd!==a&&(this.nd=a)}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a)}},angle:{get:function(){return this.Kb},set:function(a){this.Kb!==a&&(this.Kb=a)}},alignment:{get:function(){return this.Jb},set:function(a){this.Jb!==a&&(this.Jb=a)}},nodeIndent:{get:function(){return this.Uq},set:function(a){this.Uq!==a&&(this.Uq=a)}},nodeIndentPastParent:{get:function(){return this.Vq},set:function(a){this.Vq!==a&&(this.Vq=a)}},nodeSpacing:{get:function(){return this.Wq},set:function(a){this.Wq!==a&&(this.Wq=a)}},layerSpacing:{get:function(){return this.ie},set:function(a){this.ie!==a&&(this.ie=a)}},layerSpacingParentOverlap:{get:function(){return this.Aq},set:function(a){this.Aq!==a&&(this.Aq=a)}},compaction:{get:function(){return this.Hp},set:function(a){this.Hp!==a&&(this.Hp=a)}},breadthLimit:{get:function(){return this.Ap},set:function(a){this.Ap!==a&&(this.Ap=a)}},rowSpacing:{get:function(){return this.nr},set:function(a){this.nr!==a&&(this.nr=a)}},rowIndent:{get:function(){return this.mr},set:function(a){this.mr!==a&&(this.mr=a)}},commentSpacing:{get:function(){return this.Gp},set:function(a){this.Gp!==a&&(this.Gp=a)}},commentMargin:{get:function(){return this.Fp},set:function(a){this.Fp!==a&&(this.Fp=a)}},setsPortSpot:{get:function(){return this.xr},set:function(a){this.xr!==a&&(this.xr=a)}},portSpot:{get:function(){return this.dr},set:function(a){this.dr.D(a)||(this.dr=a)}},setsChildPortSpot:{get:function(){return this.wr},set:function(a){this.wr!==a&&(this.wr=a)}},childPortSpot:{get:function(){return this.Dp},set:function(a){this.Dp.D(a)||(this.Dp=a)}},childrenCount:{get:function(){return this.children.length}},relativePosition:{get:function(){return this.S},set:function(a){this.S.set(a)}},subtreeSize:{get:function(){return this.Da},set:function(a){this.Da.set(a)}},subtreeOffset:{get:function(){return this.la},set:function(a){this.la.set(a)}}}),Hl.className="TreeVertex";function eg(a){nl.call(this,a),this.$t=new Bt(0,0)}ye(eg,nl),eg.prototype.commit=function(){var a=this.link;if(a!==null&&!a.isAvoiding){var y=this.network.layout,x=null,E=null;switch(y.ud){case Gu:x=this.fromVertex,E=this.toVertex;break;case Kc:x=this.toVertex,E=this.fromVertex;break;default:ee("Unhandled path value "+y.ud.toString())}if(x!==null&&E!==null){var b=this.$t;if(b.x!==0||b.y!==0||x.qA){E=x.bounds;var z=nu(x),tt=y.computeLayerSpacing(x),rt=x.rowSpacing;a.vg();var ot=a.curve===cl,st=a.isOrthogonal,ut;if(a.uh(),st||ot){for(ut=2;4<a.pointsCount;)a.pv(2);var ft=a.i(1),vt=a.i(2)}else{for(ut=1;3<a.pointsCount;)a.pv(1);ft=a.i(0),vt=a.i(a.pointsCount-1)}var xt=a.i(a.pointsCount-1);z===0?(x.alignment===Yu?(z=E.bottom+b.y,b.y===0&&ft.y>xt.y+x.rowIndent&&(z=Math.min(z,Math.max(ft.y,z-y.computeNodeIndent(x))))):x.alignment===Ku?(z=E.top+b.y,b.y===0&&ft.y<xt.y-x.rowIndent&&(z=Math.max(z,Math.min(ft.y,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?E.top-x.la.y+b.y:E.y+E.height/2+b.y,ot?(a.m(ut,ft.x,z),ut++,a.m(ut,E.right+tt,z),ut++,a.m(ut,E.right+tt+(b.x-rt)/3,z),ut++,a.m(ut,E.right+tt+2*(b.x-rt)/3,z),ut++,a.m(ut,E.right+tt+(b.x-rt),z),ut++,a.m(ut,vt.x,z)):(st&&(a.m(ut,E.right+tt/2,ft.y),ut++),a.m(ut,E.right+tt/2,z),ut++,a.m(ut,E.right+tt+b.x-(st?rt/2:rt),z),ut++,st&&a.m(ut,a.i(ut-1).x,vt.y))):z===90?(x.alignment===Yu?(z=E.right+b.x,b.x===0&&ft.x>xt.x+x.rowIndent&&(z=Math.min(z,Math.max(ft.x,z-y.computeNodeIndent(x))))):x.alignment===Ku?(z=E.left+b.x,b.x===0&&ft.x<xt.x-x.rowIndent&&(z=Math.max(z,Math.min(ft.x,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?E.left-x.la.x+b.x:E.x+E.width/2+b.x,ot?(a.m(ut,z,ft.y),ut++,a.m(ut,z,E.bottom+tt),ut++,a.m(ut,z,E.bottom+tt+(b.y-rt)/3),ut++,a.m(ut,z,E.bottom+tt+2*(b.y-rt)/3),ut++,a.m(ut,z,E.bottom+tt+(b.y-rt)),ut++,a.m(ut,z,vt.y)):(st&&(a.m(ut,ft.x,E.bottom+tt/2),ut++),a.m(ut,z,E.bottom+tt/2),ut++,a.m(ut,z,E.bottom+tt+b.y-(st?rt/2:rt)),ut++,st&&a.m(ut,vt.x,a.i(ut-1).y))):z===180?(x.alignment===Yu?(z=E.bottom+b.y,b.y===0&&ft.y>xt.y+x.rowIndent&&(z=Math.min(z,Math.max(ft.y,z-y.computeNodeIndent(x))))):x.alignment===Ku?(z=E.top+b.y,b.y===0&&ft.y<xt.y-x.rowIndent&&(z=Math.max(z,Math.min(ft.y,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?E.top-x.la.y+b.y:E.y+E.height/2+b.y,ot?(a.m(ut,ft.x,z),ut++,a.m(ut,E.left-tt,z),ut++,a.m(ut,E.left-tt+(b.x+rt)/3,z),ut++,a.m(ut,E.left-tt+2*(b.x+rt)/3,z),ut++,a.m(ut,E.left-tt+(b.x+rt),z),ut++,a.m(ut,vt.x,z)):(st&&(a.m(ut,E.left-tt/2,ft.y),ut++),a.m(ut,E.left-tt/2,z),ut++,a.m(ut,E.left-tt+b.x+(st?rt/2:rt),z),ut++,st&&a.m(ut,a.i(ut-1).x,vt.y))):z===270?(x.alignment===Yu?(z=E.right+b.x,b.x===0&&ft.x>xt.x+x.rowIndent&&(z=Math.min(z,Math.max(ft.x,z-y.computeNodeIndent(x))))):x.alignment===Ku?(z=E.left+b.x,b.x===0&&ft.x<xt.x-x.rowIndent&&(z=Math.max(z,Math.min(ft.x,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?E.left-x.la.x+b.x:E.x+E.width/2+b.x,ot?(a.m(ut,z,ft.y),ut++,a.m(ut,z,E.top-tt),ut++,a.m(ut,z,E.top-tt+(b.y+rt)/3),ut++,a.m(ut,z,E.top-tt+2*(b.y+rt)/3),ut++,a.m(ut,z,E.top-tt+(b.y+rt)),ut++,a.m(ut,z,vt.y)):(st&&(a.m(ut,ft.x,E.top-tt/2),ut++),a.m(ut,z,E.top-tt/2),ut++,a.m(ut,z,E.top-tt+b.y+(st?rt/2:rt)),ut++,st&&a.m(ut,vt.x,a.i(ut-1).y))):ee("Invalid angle "+z),a.zf()}else b=E,a=this.link,E=this.network.layout,y=nu(x),y!==nu(b)&&(tt=E.computeLayerSpacing(x),rt=x.bounds,x=b.bounds,y===0&&x.left-rt.right<tt+1||y===90&&x.top-rt.bottom<tt+1||y===180&&rt.left-x.right<tt+1||y===270&&rt.top-x.bottom<tt+1||(a.vg(),x=a.curve===cl,b=a.isOrthogonal,E=Pd(this.fromVertex.alignment),a.uh(),y===0?(y=rt.right+tt/2,x?a.pointsCount===4&&(x=a.i(3).y,a.L(1,y-20,a.i(1).y),a.m(2,y-20,x),a.m(3,y,x),a.m(4,y+20,x),a.L(5,a.i(5).x,x)):b?E?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,y,a.i(2).y),a.L(3,y,a.i(3).y)):a.pointsCount===4?a.m(2,y,a.i(2).y):a.pointsCount===3?a.L(1,y,a.i(2).y):a.pointsCount===2&&a.m(1,y,a.i(1).y)):y===90?(y=rt.bottom+tt/2,x?a.pointsCount===4&&(x=a.i(3).x,a.L(1,a.i(1).x,y-20),a.m(2,x,y-20),a.m(3,x,y),a.m(4,x,y+20),a.L(5,x,a.i(5).y)):b?E?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,a.i(2).x,y),a.L(3,a.i(3).x,y)):a.pointsCount===4?a.m(2,a.i(2).x,y):a.pointsCount===3?a.L(1,a.i(2).x,y):a.pointsCount===2&&a.m(1,a.i(1).x,y)):y===180?(y=rt.left-tt/2,x?a.pointsCount===4&&(x=a.i(3).y,a.L(1,y+20,a.i(1).y),a.m(2,y+20,x),a.m(3,y,x),a.m(4,y-20,x),a.L(5,a.i(5).x,x)):b?E?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,y,a.i(2).y),a.L(3,y,a.i(3).y)):a.pointsCount===4?a.m(2,y,a.i(2).y):a.pointsCount===3?a.L(1,y,a.i(2).y):a.pointsCount===2&&a.m(1,y,a.i(1).y)):y===270&&(y=rt.top-tt/2,x?a.pointsCount===4&&(x=a.i(3).x,a.L(1,a.i(1).x,y+20),a.m(2,x,y+20),a.m(3,x,y),a.m(4,x,y-20),a.L(5,x,a.i(5).y)):b?E?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,a.i(2).x,y),a.L(3,a.i(3).x,y)):a.pointsCount===4?a.m(2,a.i(2).x,y):a.pointsCount===3?a.L(1,a.i(2).x,y):a.pointsCount===2&&a.m(1,a.i(1).x,y)),a.zf()))}}},xe.Object.defineProperties(eg.prototype,{fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}},relativePoint:{get:function(){return this.$t},set:function(a){this.$t.set(a)}}}),eg.className="TreeEdge",Lo.prototype.initializeStandardTools=function(){this.gb("Action",new Tl,this.mouseDownTools),this.gb("Relinking",new sl,this.mouseDownTools),this.gb("LinkReshaping",new Pa,this.mouseDownTools),this.gb("Rotating",new Cs,this.mouseDownTools),this.gb("Resizing",new us,this.mouseDownTools),this.gb("Linking",new fs,this.mouseMoveTools),this.gb("Dragging",new Uo,this.mouseMoveTools),this.gb("DragSelecting",new Sl,this.mouseMoveTools),this.gb("Panning",new os,this.mouseMoveTools),this.gb("ContextMenu",new Es,this.mouseUpTools),this.gb("TextEditing",new Xo,this.mouseUpTools),this.gb("ClickCreating",new yh,this.mouseUpTools),this.gb("ClickSelecting",new _h,this.mouseUpTools)},Lu("Horizontal",new vm),Lu("Spot",new Sm),Lu("Table",new wm),Lu("Viewbox",new Em),Lu("TableRow",new Pm),Lu("TableColumn",new Cm),Lu("Graduated",new Jg),Lu("Grid",new _g),Ef.add("GraphLinksModel",Ga),Ef.add("TreeModel",bl);var V0=Sn.go,Vy={get licenseKey(){return Qe.licenseKey},set licenseKey(a){Qe.licenseKey=a},get version(){return Qe.version},Group:Tr,EnumValue:dn,List:cn,Set:xn,Map:on,Point:Bt,Size:zt,Rect:ue,Margin:Di,Spot:Mn,Geometry:Wn,PathFigure:ua,PathSegment:Qr,InputEvent:za,DiagramEvent:Dl,ChangedEvent:Ho,Model:Ui,GraphLinksModel:no,TreeModel:Ns,Binding:Ea,Transaction:va,UndoManager:qo,CommandHandler:Ut,Tool:eo,DraggingTool:Uo,DraggingInfo:nh,DraggingOptions:at,LinkingBaseTool:lo,LinkingTool:fs,RelinkingTool:sl,LinkReshapingTool:Pa,ResizingTool:us,RotatingTool:Cs,ClickSelectingTool:_h,ActionTool:Tl,ClickCreatingTool:yh,HTMLInfo:wu,ContextMenuTool:Es,DragSelectingTool:Sl,PanningTool:os,TextEditingTool:Xo,ToolManager:Lo,Animation:as,AnimationManager:$s,AnimationTrigger:Xl,Layer:Xa,Diagram:Qe,Palette:ct,Overview:pt,Brush:wo,GraphObject:Me,Panel:ei,RowColumnDefinition:Da,Shape:Wr,TextBlock:Ro,Picture:Ws,Part:rr,Adornment:uo,Node:bi,Link:di,Placeholder:Ms,Layout:ea,LayoutNetwork:zo,LayoutVertex:Ia,LayoutEdge:nl,GridLayout:$a,PanelLayout:Oa,CircularLayout:aa,CircularNetwork:Jf,CircularVertex:Ep,CircularEdge:C0,ForceDirectedLayout:ls,ForceDirectedNetwork:Vc,ForceDirectedVertex:Ap,ForceDirectedEdge:Lp,LayeredDigraphLayout:Eo,LayeredDigraphNetwork:qf,LayeredDigraphVertex:kl,LayeredDigraphEdge:kp,TreeLayout:Xr,TreeNetwork:Uc,TreeVertex:Hl,TreeEdge:eg};typeof V0=="object"&&V0.version&&_n("WARNING: a `go` object on the root object is already defined. "+("Debug"in V0?"debug ":"")+"version: "+V0.version+", replaced with version: "+Vy.version),Qe.prototype.go=Vy,Sn.go=Vy,typeof Jn.exports=="object"&&(Jn.exports=typeof Dt.g!="undefined"?Dt.g.go:self.go)}();var yt=typeof Dt.g!="undefined"?Dt.g.go:self.go;const te=typeof Dt.g!="undefined"?Dt.g.go:self.go,re=te.Group,Fe=te.EnumValue,be=te.List,jt=te.Set,ge=te.Map,Ze=te.Point,Ce=te.Size,Mt=te.Rect,Re=te.Margin,Yt=te.Spot,We=te.Geometry,Nt=te.PathFigure,nt=te.PathSegment,et=te.InputEvent,dt=te.DiagramEvent,lt=te.ChangedEvent,gt=te.Model,mt=te.GraphLinksModel,St=te.TreeModel,bt=te.Binding,It=te.Transaction,Ht=te.UndoManager,se=te.CommandHandler,Vt=te.Tool,Jt=te.DraggingTool,Ee=te.DraggingInfo,we=te.LinkingBaseTool,De=te.LinkingTool,Le=te.RelinkingTool,sn=te.LinkReshapingTool,Fn=te.ResizingTool,fn=te.RotatingTool,Ge=te.ClickSelectingTool,an=te.ActionTool,Se=te.ClickCreatingTool,Qt=te.HTMLInfo,mn=te.ContextMenuTool,ii=te.DragSelectingTool,jn=te.PanningTool,ln=te.TextEditingTool,qn=te.ToolManager,Dn=te.Animation,fi=te.AnimationManager,Ve=te.AnimationTrigger,On=te.Layer,Pe=te.Diagram,Ai=te.Palette,Xn=te.Overview,Rt=te.Brush,At=te.GraphObject,wt=te.Panel,Tt=te.RowColumnDefinition,Kt=te.Shape,kt=te.TextBlock,$t=te.TextBlockMetrics,un=te.Picture,Ie=te.Part,Ue=te.Adornment,ne=te.Node,Oe=te.Link,Ne=te.Placeholder,Xe=te.Layout,En=te.LayoutNetwork,In=te.LayoutVertex,An=te.LayoutEdge,en=te.GridLayout,ze=te.PanelLayout,qe=te.CircularLayout,pn=te.CircularNetwork,bn=te.CircularVertex,Yn=te.CircularEdge,ti=te.ForceDirectedLayout,yi=te.ForceDirectedNetwork,vn=te.ForceDirectedVertex,Pi=te.ForceDirectedEdge,Ki=te.LayeredDigraphLayout,pr=te.LayeredDigraphNetwork,or=te.LayeredDigraphVertex,ir=te.LayeredDigraphEdge,vr=te.TreeLayout,ur=te.TreeNetwork,hr=te.TreeVertex,Ji=te.TreeEdge,xr=te.version},24334:function(Jn,pi,Dt){var yt,te;(function(re,Fe){Jn.exports=Fe(re)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof Dt.g!="undefined"?Dt.g:this,function(re){"use strict";re=re||{};var Fe=re.Base64,be="2.6.4",jt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ge=function(Le){for(var sn={},Fn=0,fn=Le.length;Fn<fn;Fn++)sn[Le.charAt(Fn)]=Fn;return sn}(jt),Ze=String.fromCharCode,Ce=function(Le){if(Le.length<2){var sn=Le.charCodeAt(0);return sn<128?Le:sn<2048?Ze(192|sn>>>6)+Ze(128|sn&63):Ze(224|sn>>>12&15)+Ze(128|sn>>>6&63)+Ze(128|sn&63)}else{var sn=65536+(Le.charCodeAt(0)-55296)*1024+(Le.charCodeAt(1)-56320);return Ze(240|sn>>>18&7)+Ze(128|sn>>>12&63)+Ze(128|sn>>>6&63)+Ze(128|sn&63)}},Mt=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Re=function(Le){return Le.replace(Mt,Ce)},Yt=function(Le){var sn=[0,2,1][Le.length%3],Fn=Le.charCodeAt(0)<<16|(Le.length>1?Le.charCodeAt(1):0)<<8|(Le.length>2?Le.charCodeAt(2):0),fn=[jt.charAt(Fn>>>18),jt.charAt(Fn>>>12&63),sn>=2?"=":jt.charAt(Fn>>>6&63),sn>=1?"=":jt.charAt(Fn&63)];return fn.join("")},We=re.btoa&&typeof re.btoa=="function"?function(Le){return re.btoa(Le)}:function(Le){if(Le.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return Le.replace(/[\s\S]{1,3}/g,Yt)},Nt=function(Le){return We(Re(String(Le)))},nt=function(Le){return Le.replace(/[+\/]/g,function(sn){return sn=="+"?"-":"_"}).replace(/=/g,"")},et=function(Le,sn){return sn?nt(Nt(Le)):Nt(Le)},dt=function(Le){return et(Le,!0)},lt;re.Uint8Array&&(lt=function(Le,sn){for(var Fn="",fn=0,Ge=Le.length;fn<Ge;fn+=3){var an=Le[fn],Se=Le[fn+1],Qt=Le[fn+2],mn=an<<16|Se<<8|Qt;Fn+=jt.charAt(mn>>>18)+jt.charAt(mn>>>12&63)+(typeof Se!="undefined"?jt.charAt(mn>>>6&63):"=")+(typeof Qt!="undefined"?jt.charAt(mn&63):"=")}return sn?nt(Fn):Fn});var gt=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,mt=function(Le){switch(Le.length){case 4:var sn=(7&Le.charCodeAt(0))<<18|(63&Le.charCodeAt(1))<<12|(63&Le.charCodeAt(2))<<6|63&Le.charCodeAt(3),Fn=sn-65536;return Ze((Fn>>>10)+55296)+Ze((Fn&1023)+56320);case 3:return Ze((15&Le.charCodeAt(0))<<12|(63&Le.charCodeAt(1))<<6|63&Le.charCodeAt(2));default:return Ze((31&Le.charCodeAt(0))<<6|63&Le.charCodeAt(1))}},St=function(Le){return Le.replace(gt,mt)},bt=function(Le){var sn=Le.length,Fn=sn%4,fn=(sn>0?ge[Le.charAt(0)]<<18:0)|(sn>1?ge[Le.charAt(1)]<<12:0)|(sn>2?ge[Le.charAt(2)]<<6:0)|(sn>3?ge[Le.charAt(3)]:0),Ge=[Ze(fn>>>16),Ze(fn>>>8&255),Ze(fn&255)];return Ge.length-=[0,0,2,1][Fn],Ge.join("")},It=re.atob&&typeof re.atob=="function"?function(Le){return re.atob(Le)}:function(Le){return Le.replace(/\S{1,4}/g,bt)},Ht=function(Le){return It(String(Le).replace(/[^A-Za-z0-9\+\/]/g,""))},se=function(Le){return St(It(Le))},Vt=function(Le){return String(Le).replace(/[-_]/g,function(sn){return sn=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Jt=function(Le){return se(Vt(Le))},Ee;re.Uint8Array&&(Ee=function(Le){return Uint8Array.from(Ht(Vt(Le)),function(sn){return sn.charCodeAt(0)})});var we=function(){var Le=re.Base64;return re.Base64=Fe,Le};if(re.Base64={VERSION:be,atob:Ht,btoa:We,fromBase64:Jt,toBase64:et,utob:Re,encode:et,encodeURI:dt,btou:St,decode:Jt,noConflict:we,fromUint8Array:lt,toUint8Array:Ee},typeof Object.defineProperty=="function"){var De=function(Le){return{value:Le,enumerable:!1,writable:!0,configurable:!0}};re.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",De(function(){return Jt(this)})),Object.defineProperty(String.prototype,"toBase64",De(function(Le){return et(this,Le)})),Object.defineProperty(String.prototype,"toBase64URI",De(function(){return et(this,!0)}))}}return re.Meteor&&(Base64=re.Base64),Jn.exports?Jn.exports.Base64=re.Base64:(yt=[],te=function(){return re.Base64}.apply(pi,yt),te!==void 0&&(Jn.exports=te)),{Base64:re.Base64}})},2859:function(Jn,pi,Dt){"use strict";Dt.d(pi,{hP:function(){return Xn}});var yt=function(Rt,At){return(yt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(wt,Tt){wt.__proto__=Tt}||function(wt,Tt){for(var Kt in Tt)Object.prototype.hasOwnProperty.call(Tt,Kt)&&(wt[Kt]=Tt[Kt])})(Rt,At)};function te(Rt,At){function wt(){this.constructor=Rt}yt(Rt,At),Rt.prototype=At===null?Object.create(At):(wt.prototype=At.prototype,new wt)}function re(Rt,At,wt,Tt){return new(wt||(wt=Promise))(function(Kt,kt){function $t(Ue){try{Ie(Tt.next(Ue))}catch(ne){kt(ne)}}function un(Ue){try{Ie(Tt.throw(Ue))}catch(ne){kt(ne)}}function Ie(Ue){var ne;Ue.done?Kt(Ue.value):(ne=Ue.value,ne instanceof wt?ne:new wt(function(Oe){Oe(ne)})).then($t,un)}Ie((Tt=Tt.apply(Rt,At||[])).next())})}function Fe(Rt,At){var wt,Tt,Kt,kt,$t={label:0,sent:function(){if(1&Kt[0])throw Kt[1];return Kt[1]},trys:[],ops:[]};return kt={next:un(0),throw:un(1),return:un(2)},typeof Symbol=="function"&&(kt[Symbol.iterator]=function(){return this}),kt;function un(Ie){return function(Ue){return function(ne){if(wt)throw new TypeError("Generator is already executing.");for(;$t;)try{if(wt=1,Tt&&(Kt=2&ne[0]?Tt.return:ne[0]?Tt.throw||((Kt=Tt.return)&&Kt.call(Tt),0):Tt.next)&&!(Kt=Kt.call(Tt,ne[1])).done)return Kt;switch(Tt=0,Kt&&(ne=[2&ne[0],Kt.value]),ne[0]){case 0:case 1:Kt=ne;break;case 4:return $t.label++,{value:ne[1],done:!1};case 5:$t.label++,Tt=ne[1],ne=[0];continue;case 7:ne=$t.ops.pop(),$t.trys.pop();continue;default:if(Kt=$t.trys,!((Kt=Kt.length>0&&Kt[Kt.length-1])||ne[0]!==6&&ne[0]!==2)){$t=0;continue}if(ne[0]===3&&(!Kt||ne[1]>Kt[0]&&ne[1]<Kt[3])){$t.label=ne[1];break}if(ne[0]===6&&$t.label<Kt[1]){$t.label=Kt[1],Kt=ne;break}if(Kt&&$t.label<Kt[2]){$t.label=Kt[2],$t.ops.push(ne);break}Kt[2]&&$t.ops.pop(),$t.trys.pop();continue}ne=At.call(Rt,$t)}catch(Oe){ne=[6,Oe],Tt=0}finally{wt=Kt=0}if(5&ne[0])throw ne[1];return{value:ne[0]?ne[1]:void 0,done:!0}}([Ie,Ue])}}}function be(){for(var Rt=0,At=0,wt=arguments.length;At<wt;At++)Rt+=arguments[At].length;var Tt=Array(Rt),Kt=0;for(At=0;At<wt;At++)for(var kt=arguments[At],$t=0,un=kt.length;$t<un;$t++,Kt++)Tt[Kt]=kt[$t];return Tt}var jt=function(){function Rt(){}return Rt.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},Rt.setAttributes=function(At,wt){for(var Tt=0,Kt=wt;Tt<Kt.length;Tt++){var kt=Kt[Tt],$t=kt[0],un=kt[1];At.setAttribute($t,un)}},Rt.createRect=function(At,wt,Tt){var Kt=document.createElementNS("http://www.w3.org/2000/svg","rect");return Kt.setAttribute("width",At.toString()),Kt.setAttribute("height",wt.toString()),Tt&&Rt.setAttributes(Kt,Tt),Kt},Rt.createLine=function(At,wt,Tt,Kt,kt){var $t=document.createElementNS("http://www.w3.org/2000/svg","line");return $t.setAttribute("x1",At.toString()),$t.setAttribute("y1",wt.toString()),$t.setAttribute("x2",Tt.toString()),$t.setAttribute("y2",Kt.toString()),kt&&Rt.setAttributes($t,kt),$t},Rt.createPolygon=function(At,wt){var Tt=document.createElementNS("http://www.w3.org/2000/svg","polygon");return Tt.setAttribute("points",At),wt&&Rt.setAttributes(Tt,wt),Tt},Rt.createCircle=function(At,wt){var Tt=document.createElementNS("http://www.w3.org/2000/svg","circle");return Tt.setAttribute("cx",(At/2).toString()),Tt.setAttribute("cy",(At/2).toString()),Tt.setAttribute("r",At.toString()),wt&&Rt.setAttributes(Tt,wt),Tt},Rt.createEllipse=function(At,wt,Tt){var Kt=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return Kt.setAttribute("cx",(At/2).toString()),Kt.setAttribute("cy",(wt/2).toString()),Kt.setAttribute("rx",(At/2).toString()),Kt.setAttribute("ry",(wt/2).toString()),Tt&&Rt.setAttributes(Kt,Tt),Kt},Rt.createGroup=function(At){var wt=document.createElementNS("http://www.w3.org/2000/svg","g");return At&&Rt.setAttributes(wt,At),wt},Rt.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},Rt.createMarker=function(At,wt,Tt,Kt,kt,$t,un){var Ie=document.createElementNS("http://www.w3.org/2000/svg","marker");return Rt.setAttributes(Ie,[["id",At],["orient",wt],["markerWidth",Tt.toString()],["markerHeight",Kt.toString()],["refX",kt.toString()],["refY",$t.toString()]]),Ie.appendChild(un),Ie},Rt.createText=function(At){var wt=document.createElementNS("http://www.w3.org/2000/svg","text");return wt.setAttribute("x","0"),wt.setAttribute("y","0"),At&&Rt.setAttributes(wt,At),wt},Rt.createTSpan=function(At,wt){var Tt=document.createElementNS("http://www.w3.org/2000/svg","tspan");return Tt.textContent=At,wt&&Rt.setAttributes(Tt,wt),Tt},Rt.createImage=function(At){var wt=document.createElementNS("http://www.w3.org/2000/svg","image");return At&&Rt.setAttributes(wt,At),wt},Rt.createPoint=function(At,wt){var Tt=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return Tt.x=At,Tt.y=wt,Tt},Rt.createPath=function(At,wt){var Tt=document.createElementNS("http://www.w3.org/2000/svg","path");return Tt.setAttribute("d",At),wt&&Rt.setAttributes(Tt,wt),Tt},Rt}(),ge=function(){function Rt(){}return Rt.addKey=function(At){Rt.key=At},Object.defineProperty(Rt,"isLicensed",{get:function(){return!!Rt.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(Rt.key)},enumerable:!1,configurable:!0}),Rt}(),Ze=function(){function Rt(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return Rt.prototype.rasterize=function(At,wt,Tt){var Kt=this;return new Promise(function(kt){var $t=Tt!==void 0?Tt:document.createElement("canvas");At===null&&(Kt.markersOnly=!0,Kt.naturalSize=!1);var un=document.createElementNS("http://www.w3.org/2000/svg","svg");un.setAttribute("xmlns","http://www.w3.org/2000/svg"),un.setAttribute("width",wt.width.baseVal.valueAsString),un.setAttribute("height",wt.height.baseVal.valueAsString),un.setAttribute("viewBox","0 0 "+wt.viewBox.baseVal.width.toString()+" "+wt.viewBox.baseVal.height.toString()),un.innerHTML=wt.innerHTML,Kt.naturalSize===!0?(un.width.baseVal.value=At.naturalWidth,un.height.baseVal.value=At.naturalHeight):Kt.width!==void 0&&Kt.height!==void 0&&(un.width.baseVal.value=Kt.width,un.height.baseVal.value=Kt.height),$t.width=un.width.baseVal.value,$t.height=un.height.baseVal.value;var Ie=un.outerHTML,Ue=$t.getContext("2d");Kt.markersOnly!==!0&&Ue.drawImage(At,0,0,$t.width,$t.height);var ne=window.URL,Oe=new Image($t.width,$t.height);Oe.setAttribute("crossOrigin","anonymous");var Ne=new Blob([Ie],{type:"image/svg+xml"}),Xe=ne.createObjectURL(Ne);Oe.onload=function(){Ue.drawImage(Oe,0,0),ne.revokeObjectURL(Xe);var En=$t.toDataURL(Kt.imageType,Kt.imageQuality);kt(En)},Oe.src=Xe})},Rt}(),Ce=function(){},Mt=function(){function Rt(At){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+At+"_"}return Object.defineProperty(Rt.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(Rt.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(Rt.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(Rt.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(Rt.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),Rt.prototype.addClass=function(At){return this.styleSheet===void 0&&this.addStyleSheet(),At.name=""+this.classNamePrefix+At.localName,this.classes.push(At),this.styleSheet.sheet.insertRule("."+At.name+" {"+At.style+"}",this.styleSheet.sheet.cssRules.length),At},Rt.prototype.addRule=function(At){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(At),this.styleSheet.sheet.insertRule(At.selector+" {"+At.style+"}",this.styleSheet.sheet.cssRules.length)},Rt.prototype.addStyleSheet=function(){var At;this.styleSheet=document.createElement("style"),((At=this.styleSheetRoot)!==null&&At!==void 0?At:document.head).appendChild(this.styleSheet),this.addRule(new Re("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new Re("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new Re("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new Yt("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new Yt("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},Rt.prototype.removeStyleSheet=function(){var At;this.styleSheet&&(((At=this.styleSheetRoot)!==null&&At!==void 0?At:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},Rt}(),Re=function(Rt,At){this.selector=Rt,this.style=At},Yt=function(Rt,At){this.localName=Rt,this.style=At},We=function(){function Rt(At,wt,Tt,Kt,kt){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=At,this.displayMode=wt,this.markerItems=Tt,this.uiStyleSettings=Kt,this.styles=kt,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return Rt.prototype.show=function(At){var wt=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=At,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var Tt=document.createElement("div");Tt.className=this.toolbarBlockStyleClass.name,Tt.style.whiteSpace="nowrap",this.uiContainer.appendChild(Tt),this.addActionButton(Tt,'<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(Tt,'<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(Tt,'<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(Tt,'<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(Tt,'<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(Tt,'<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(Tt,'<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(Tt,'<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(kt){var $t=document.createElement("div");$t.className=""+wt.toolbarButtonStyleClass.name,$t.setAttribute("data-type-name",kt.typeName),$t.innerHTML=kt.icon,$t.addEventListener("click",function(){wt.markerToolbarButtonClicked($t,kt)}),wt.buttons.push($t),wt.markerButtons.push($t)}),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 Kt=document.createElement("div");Kt.className=this.toolbarBlockStyleClass.name,Kt.style.whiteSpace="nowrap",Kt.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(Kt),this.addActionButton(Kt,'<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(Kt,'<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()},Rt.prototype.addButtonClickListener=function(At){this.buttonClickListeners.push(At)},Rt.prototype.removeButtonClickListener=function(At){this.buttonClickListeners.indexOf(At)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(At),1)},Rt.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},Rt.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var At=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var wt=0;wt<this.markerButtons.length;wt++)wt<At||wt===At&&this.markerButtons.length-1===At?this.markerButtonBlock.appendChild(this.markerButtons[wt]):(wt===At&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[wt]))}},Rt.prototype.overflowButtonClicked=function(){this.markerButtonOverflowBlock.style.display!=="none"?(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")},Rt.prototype.resetButtonStyles=function(){var At=this;this.buttons.forEach(function(wt){wt.className=wt.className.replace(At.uiStyleSettings.toolbarButtonStyleColorsClassName?At.uiStyleSettings.toolbarButtonStyleColorsClassName:At.toolbarButtonStyleColorsClass.name,"").trim(),wt.className=wt.className.replace(At.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?At.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:At.toolbarActiveButtonStyleColorsClass.name,"").trim(),wt.className+=" "+(At.uiStyleSettings.toolbarButtonStyleColorsClassName?At.uiStyleSettings.toolbarButtonStyleColorsClassName:At.toolbarButtonStyleColorsClass.name)})},Rt.prototype.addActionButton=function(At,wt,Tt){var Kt=this,kt=document.createElement("div");switch(kt.className=""+this.toolbarButtonStyleClass.name,kt.innerHTML=wt,kt.setAttribute("data-action",Tt),kt.addEventListener("click",function(){Kt.actionToolbarButtonClicked(kt,Tt)}),Tt){case"select":kt.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":kt.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":kt.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":kt.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":kt.style.fill=this.uiStyleSettings.closeButtonColor}At.appendChild(kt),this.buttons.push(kt)},Rt.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new Yt("toolbar",`
width: 100%;
flex-shrink: 0;
display: flex;
flex-direction: row;
justify-content: space-between;
height: `+this.uiStyleSettings.toolbarHeight+`px;
box-sizing: content-box;
`+(this.displayMode==="inline"?"border-top-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
`+(this.displayMode==="inline"?"border-top-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
overflow: hidden;
`)),this.toolbarStyleColorsClass=this.styles.addClass(new Yt("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new Yt("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new Yt("toolbar-overflow-block",`
position: absolute;
top: `+this.uiStyleSettings.toolbarHeight+`px;
max-width: `+2*this.uiStyleSettings.toolbarHeight+`px;
z-index: 10;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleColorsClass=this.styles.addClass(new Yt("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var At=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new Yt("toolbar_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*At)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*At)+`px;
padding: `+At+`px;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new Yt("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new Yt("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new Re("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new Re("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`))},Rt.prototype.markerToolbarButtonClicked=function(At,wt){this.setActiveButton(At),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Tt){return Tt("marker",wt)}),this.markerButtonOverflowBlock.style.display="none"},Rt.prototype.actionToolbarButtonClicked=function(At,wt){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Tt){return Tt("action",wt)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},Rt.prototype.setActiveButton=function(At){this.resetButtonStyles(),At.className=At.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),At.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},Rt.prototype.setActiveMarkerButton=function(At){var wt=this.markerButtons.find(function(Tt){return Tt.getAttribute("data-type-name")===At});wt&&this.setActiveButton(wt)},Rt.prototype.setCurrentMarker=function(At){var wt=this;this.currentMarker=At,this.buttons.filter(function(Tt){return/delete|notes/.test(Tt.getAttribute("data-action"))}).forEach(function(Tt){wt.currentMarker===void 0?(Tt.style.fillOpacity="0.4",Tt.style.pointerEvents="none"):(Tt.style.fillOpacity="1",Tt.style.pointerEvents="all")})},Rt}(),Nt=function(){function Rt(At,wt,Tt,Kt){this.panels=[],this.panelButtons=[],this.markerjsContainer=At,this.displayMode=wt,this.uiStyleSettings=Tt,this.styles=Kt,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return Rt.prototype.addStyles=function(){var At;this.toolboxStyleClass=this.styles.addClass(new Yt("toolbox",`
width: 100%;
flex-shrink: 0;
display: flex;
flex-direction: column;
font-family: sans-serif;
`+(this.displayMode==="popup"?"height:"+2.5*this.uiStyleSettings.toolbarHeight+"px;":"")+`
box-sizing: content-box;
`+(this.displayMode==="popup"?"background-color: "+this.uiStyleSettings.canvasBackgroundColor+";":"")+`
`+(this.displayMode==="inline"?"border-bottom-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
`+(this.displayMode==="inline"?"border-bottom-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
overflow: hidden;
`)),this.toolboxStyleColorsClass=this.styles.addClass(new Yt("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var wt=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Yt("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Yt("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new Yt("toolbox-panel-row",`
display: flex;
`+(this.displayMode==="inline"?"position: absolute;":"")+`
`+(this.displayMode==="inline"?"bottom: "+this.uiStyleSettings.toolbarHeight+"px;":"")+`
cursor: default;
height: `+1.5*this.uiStyleSettings.toolbarHeight+`px;
`+(this.displayMode==="inline"?"width: 100%;":"")+`
box-sizing: content-box;
`)),this.toolboxPanelRowStyleColorsClass=this.styles.addClass(new Yt("toolbox-panel-row_colors",`
background-color: `+((At=this.uiStyleSettings.toolboxBackgroundColor)!==null&&At!==void 0?At:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new Yt("toolbox_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*wt)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*wt)+`px;
padding: `+wt+`px;
box-sizing: content-box;
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new Yt("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Yt("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new Re("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new Re("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},Rt.prototype.show=function(At){var wt;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=At,this.uiContainer.className=this.toolboxStyleClass.name+" "+((wt=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&wt!==void 0?wt:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},Rt.prototype.setPanelButtons=function(At){var wt,Tt,Kt=this;this.panels=At,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((wt=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&wt!==void 0?wt:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((Tt=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&Tt!==void 0?Tt:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(kt){var $t;kt.uiStyleSettings=Kt.uiStyleSettings;var un=document.createElement("div");un.className=Kt.toolboxButtonStyleClass.name+" "+(($t=Kt.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&$t!==void 0?$t:Kt.toolboxButtonStyleColorsClass.name),un.innerHTML=kt.icon,un.title=kt.title,un.addEventListener("click",function(){Kt.panelButtonClick(kt)}),Kt.panelButtons.push(un),Kt.buttonRow.appendChild(un)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},Rt.prototype.panelButtonClick=function(At){var wt=this,Tt=-1;if(At!==this.activePanel){Tt=this.panels.indexOf(At),this.panelRow.innerHTML="";var Kt=At.getUi();Kt.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(Kt),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=At}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){wt.displayMode==="inline"?wt.panelRow.style.display="none":wt.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(kt,$t){var un,Ie;kt.className=wt.toolboxButtonStyleClass.name+" "+($t===Tt?""+((un=wt.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&un!==void 0?un:wt.toolboxActiveButtonStyleColorsClass.name):""+((Ie=wt.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Ie!==void 0?Ie:wt.toolboxButtonStyleColorsClass.name))})},Rt}(),nt=function(Rt,At){this.title=Rt,this.icon=At},et=function(Rt){function At(wt,Tt,Kt,kt){var $t=Rt.call(this,wt,kt||'<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 $t.colors=[],$t.addTransparent=!1,$t.colorBoxes=[],$t.colors=Tt,$t.currentColor=Kt,$t.setCurrentColor=$t.setCurrentColor.bind($t),$t.getColorBox=$t.getColorBox.bind($t),$t}return te(At,Rt),At.prototype.getUi=function(){var wt=this,Tt=document.createElement("div");return Tt.style.overflow="hidden",Tt.style.whiteSpace="nowrap",this.colors.forEach(function(Kt){var kt=wt.getColorBox(Kt);Tt.appendChild(kt),wt.colorBoxes.push(kt)}),Tt},At.prototype.getColorBox=function(wt){var Tt=this,Kt=this.uiStyleSettings.toolbarHeight/4,kt=this.uiStyleSettings.toolbarHeight-Kt,$t=document.createElement("div");$t.style.display="inline-block",$t.style.boxSizing="content-box",$t.style.width=kt-2+"px",$t.style.height=kt-2+"px",$t.style.padding="1px",$t.style.marginRight="2px",$t.style.marginBottom="2px",$t.style.borderWidth="2px",$t.style.borderStyle="solid",$t.style.borderRadius=(kt+2)/2+"px",$t.style.borderColor=wt===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",$t.addEventListener("click",function(){Tt.setCurrentColor(wt,$t)});var un=document.createElement("div");return un.style.display="inline-block",un.style.width=kt-2+"px",un.style.height=kt-2+"px",un.style.backgroundColor=wt,un.style.borderRadius=kt/2+"px",wt==="transparent"&&(un.style.fill=this.uiStyleSettings.toolboxAccentColor,un.innerHTML=`<svg viewBox="0 0 24 24">
<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" />
</svg>`),$t.appendChild(un),$t},At.prototype.setCurrentColor=function(wt,Tt){var Kt=this;this.currentColor=wt,this.colorBoxes.forEach(function(kt){kt.style.borderColor=kt===Tt?Kt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(wt)},At}(nt),dt=function(){function Rt(At,wt,Tt){this._state="new",this._isSelected=!1,this._container=At,this._overlayContainer=wt,this.globalSettings=Tt,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(Rt.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(Rt.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(Rt.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(Rt.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(Rt.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),Rt.prototype.ownsTarget=function(At){return!1},Object.defineProperty(Rt.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),Rt.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},Rt.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},Rt.prototype.pointerDown=function(At,wt){},Rt.prototype.dblClick=function(At,wt){},Rt.prototype.manipulate=function(At){},Rt.prototype.pointerUp=function(At){this.stateChanged()},Rt.prototype.dispose=function(){},Rt.prototype.addMarkerVisualToContainer=function(At){this.container.childNodes.length>0?this.container.insertBefore(At,this.container.childNodes[0]):this.container.appendChild(At)},Rt.prototype.getState=function(){return{typeName:Rt.typeName,state:this.state,notes:this.notes}},Rt.prototype.restoreState=function(At){this._state=At.state,this.notes=At.notes},Rt.prototype.scale=function(At,wt){},Rt.prototype.colorChanged=function(At){this.onColorChanged&&this.onColorChanged(At),this.stateChanged()},Rt.prototype.fillColorChanged=function(At){this.onFillColorChanged&&this.onFillColorChanged(At),this.stateChanged()},Rt.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var At=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),At.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(At)&&this.onStateChanged(this)}},Rt.typeName="MarkerBase",Rt}(),lt=function(){function Rt(){this.findGripByVisual=this.findGripByVisual.bind(this)}return Rt.prototype.findGripByVisual=function(At){return this.topLeft.ownsTarget(At)?this.topLeft:this.topCenter.ownsTarget(At)?this.topCenter:this.topRight.ownsTarget(At)?this.topRight:this.centerLeft.ownsTarget(At)?this.centerLeft:this.centerRight.ownsTarget(At)?this.centerRight:this.bottomLeft.ownsTarget(At)?this.bottomLeft:this.bottomCenter.ownsTarget(At)?this.bottomCenter:this.bottomRight.ownsTarget(At)?this.bottomRight:void 0},Rt}(),gt=function(){function Rt(){this.GRIP_SIZE=10,this.visual=jt.createGroup(),this.visual.appendChild(jt.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(jt.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return Rt.prototype.ownsTarget=function(At){return At===this.visual||At===this.visual.childNodes[0]||At===this.visual.childNodes[1]},Rt}(),mt=function(){function Rt(){}return Rt.toITransformMatrix=function(At){return{a:At.a,b:At.b,c:At.c,d:At.d,e:At.e,f:At.f}},Rt.toSVGMatrix=function(At,wt){return At.a=wt.a,At.b=wt.b,At.c=wt.c,At.d=wt.d,At.e=wt.e,At.f=wt.f,At},Rt}(),St=function(Rt){function At(wt,Tt,Kt){var kt=Rt.call(this,wt,Tt,Kt)||this;return kt.left=0,kt.top=0,kt.width=0,kt.height=0,kt.defaultSize={x:50,y:20},kt.offsetX=0,kt.offsetY=0,kt.rotationAngle=0,kt.CB_DISTANCE=10,kt._suppressMarkerCreateEvent=!1,kt.container.transform.baseVal.appendItem(jt.createTransform()),kt.setupControlBox(),kt}return te(At,Rt),Object.defineProperty(At.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(At.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(At.prototype,"visual",{get:function(){return this._visual},set:function(wt){this._visual=wt;var Tt=jt.createTransform();this._visual.transform.baseVal.appendItem(Tt)},enumerable:!1,configurable:!0}),At.prototype.ownsTarget=function(wt){return!!Rt.prototype.ownsTarget.call(this,wt)||!!(this.controlGrips.findGripByVisual(wt)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(wt))},At.prototype.pointerDown=function(wt,Tt){Rt.prototype.pointerDown.call(this,wt,Tt),this.state==="new"&&(this.left=wt.x,this.top=wt.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var Kt=this.unrotatePoint(wt);if(this.manipulationStartX=Kt.x,this.manipulationStartY=Kt.y,this.offsetX=Kt.x-this.left,this.offsetY=Kt.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(Tt),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Tt)){this.activeGrip=this.rotatorGrip;var kt=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=kt.x-this.width/2,this.top=kt.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var $t=this.container.transform.baseVal.getItem(0);$t.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem($t,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},At.prototype.pointerUp=function(wt){var Tt=this.state;Rt.prototype.pointerUp.call(this,wt),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(wt),this._state="select",Tt==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},At.prototype.moveVisual=function(wt){this.visual.style.transform="translate("+wt.x+"px, "+wt.y+"px)"},At.prototype.manipulate=function(wt){var Tt=this.unrotatePoint(wt);this.state==="creating"?this.resize(wt):this.state==="move"?(this.left=this.manipulationStartLeft+(Tt.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(Tt.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(Tt):this.state==="rotate"&&this.rotate(wt)},At.prototype.resize=function(wt){var Tt=this.manipulationStartLeft,Kt=this.manipulationStartWidth,kt=this.manipulationStartTop,$t=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:Tt=this.manipulationStartLeft+wt.x-this.manipulationStartX,Kt=this.manipulationStartWidth+this.manipulationStartLeft-Tt;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:Kt=this.manipulationStartWidth+wt.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:kt=this.manipulationStartTop+wt.y-this.manipulationStartY,$t=this.manipulationStartHeight+this.manipulationStartTop-kt;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:$t=this.manipulationStartHeight+wt.y-this.manipulationStartY}Kt>=0?(this.left=Tt,this.width=Kt):(this.left=Tt+Kt,this.width=-Kt),$t>=0?(this.top=kt,this.height=$t):(this.top=kt+$t,this.height=-$t),this.setSize()},At.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},At.prototype.rotate=function(wt){if(Math.abs(wt.x-this.centerX)>.1){var Tt=Math.sign(wt.x-this.centerX);this.rotationAngle=180*Math.atan((wt.y-this.centerY)/(wt.x-this.centerX))/Math.PI+90*Tt,this.applyRotation()}},At.prototype.applyRotation=function(){var wt=this.container.transform.baseVal.getItem(0);wt.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(wt,0)},At.prototype.rotatePoint=function(wt){if(this.rotationAngle===0)return wt;var Tt=this.container.getCTM(),Kt=jt.createPoint(wt.x,wt.y);return{x:(Kt=Kt.matrixTransform(Tt)).x,y:Kt.y}},At.prototype.unrotatePoint=function(wt){if(this.rotationAngle===0)return wt;var Tt=this.container.getCTM();Tt=Tt.inverse();var Kt=jt.createPoint(wt.x,wt.y);return{x:(Kt=Kt.matrixTransform(Tt)).x,y:Kt.y}},At.prototype.select=function(){Rt.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},At.prototype.deselect=function(){Rt.prototype.deselect.call(this),this.controlBox.style.display="none"},At.prototype.setupControlBox=function(){this.controlBox=jt.createGroup();var wt=jt.createTransform();wt.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(wt),this.container.appendChild(this.controlBox),this.controlRect=jt.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),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=jt.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 lt,this.addControlGrips(),this.controlBox.style.display="none"},At.prototype.adjustControlBox=function(){var wt=this.controlBox.transform.baseVal.getItem(0);wt.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(wt,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(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()},At.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(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},At.prototype.createGrip=function(){var wt=new gt;return wt.visual.transform.baseVal.appendItem(jt.createTransform()),this.controlBox.appendChild(wt.visual),wt},At.prototype.positionGrips=function(){var wt=this.controlGrips.topLeft.GRIP_SIZE,Tt=-wt/2,Kt=Tt,kt=(this.width+this.CB_DISTANCE)/2-wt/2,$t=(this.height+this.CB_DISTANCE)/2-wt/2,un=this.height+this.CB_DISTANCE-wt/2,Ie=this.width+this.CB_DISTANCE-wt/2;this.positionGrip(this.controlGrips.topLeft.visual,Tt,Kt),this.positionGrip(this.controlGrips.topCenter.visual,kt,Kt),this.positionGrip(this.controlGrips.topRight.visual,Ie,Kt),this.positionGrip(this.controlGrips.centerLeft.visual,Tt,$t),this.positionGrip(this.controlGrips.centerRight.visual,Ie,$t),this.positionGrip(this.controlGrips.bottomLeft.visual,Tt,un),this.positionGrip(this.controlGrips.bottomCenter.visual,kt,un),this.positionGrip(this.controlGrips.bottomRight.visual,Ie,un),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,kt,Kt-3*this.CB_DISTANCE)},At.prototype.positionGrip=function(wt,Tt,Kt){var kt=wt.transform.baseVal.getItem(0);kt.setTranslate(Tt,Kt),wt.transform.baseVal.replaceItem(kt,0)},At.prototype.hideControlBox=function(){this.controlBox.style.display="none"},At.prototype.showControlBox=function(){this.controlBox.style.display=""},At.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:mt.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:mt.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},Rt.prototype.getState.call(this))},At.prototype.restoreState=function(wt){Rt.prototype.restoreState.call(this,wt);var Tt=wt;this.left=Tt.left,this.top=Tt.top,this.width=Tt.width,this.height=Tt.height,this.rotationAngle=Tt.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(mt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,Tt.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(mt.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,Tt.containerTransformMatrix))},At.prototype.scale=function(wt,Tt){Rt.prototype.scale.call(this,wt,Tt);var Kt=this.rotatePoint({x:this.left,y:this.top}),kt=this.unrotatePoint({x:Kt.x*wt,y:Kt.y*Tt});this.left=kt.x,this.top=kt.y,this.width=this.width*wt,this.height=this.height*Tt,this.adjustControlBox()},At}(dt),bt=function(Rt){function At(wt,Tt,Kt){var kt=Rt.call(this,wt,Tt,Kt)||this;return kt.fillColor="transparent",kt.strokeColor="transparent",kt.strokeWidth=0,kt.strokeDasharray="",kt.opacity=1,kt.setStrokeColor=kt.setStrokeColor.bind(kt),kt.setFillColor=kt.setFillColor.bind(kt),kt.setStrokeWidth=kt.setStrokeWidth.bind(kt),kt.setStrokeDasharray=kt.setStrokeDasharray.bind(kt),kt.createVisual=kt.createVisual.bind(kt),kt}return te(At,Rt),At.prototype.ownsTarget=function(wt){return!(!Rt.prototype.ownsTarget.call(this,wt)&&wt!==this.visual)},At.prototype.createVisual=function(){this.visual=jt.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)},At.prototype.pointerDown=function(wt,Tt){Rt.prototype.pointerDown.call(this,wt,Tt),this.state==="new"&&(this.createVisual(),this.moveVisual(wt),this._state="creating")},At.prototype.manipulate=function(wt){Rt.prototype.manipulate.call(this,wt)},At.prototype.resize=function(wt){Rt.prototype.resize.call(this,wt),this.setSize()},At.prototype.setSize=function(){Rt.prototype.setSize.call(this),jt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},At.prototype.pointerUp=function(wt){Rt.prototype.pointerUp.call(this,wt),this.setSize()},At.prototype.setStrokeColor=function(wt){this.strokeColor=wt,this.visual&&jt.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(wt),this.stateChanged()},At.prototype.setFillColor=function(wt){this.fillColor=wt,this.visual&&jt.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},At.prototype.setStrokeWidth=function(wt){this.strokeWidth=wt,this.visual&&jt.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},At.prototype.setStrokeDasharray=function(wt){this.strokeDasharray=wt,this.visual&&jt.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},At.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Rt.prototype.getState.call(this))},At.prototype.restoreState=function(wt){var Tt=wt;this.fillColor=Tt.fillColor,this.strokeColor=Tt.strokeColor,this.strokeWidth=Tt.strokeWidth,this.strokeDasharray=Tt.strokeDasharray,this.opacity=Tt.opacity,this.createVisual(),Rt.prototype.restoreState.call(this,wt),this.setSize()},At.prototype.scale=function(wt,Tt){Rt.prototype.scale.call(this,wt,Tt),this.setSize()},At.title="Rectangle marker",At}(St),It=function(Rt){function At(wt,Tt,Kt,kt){var $t=Rt.call(this,wt,kt||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return $t.widths=[],$t.widthBoxes=[],$t.widths=Tt,$t.currentWidth=Kt,$t.setCurrentWidth=$t.setCurrentWidth.bind($t),$t}return te(At,Rt),At.prototype.getUi=function(){var wt=this,Tt=document.createElement("div");return Tt.style.display="flex",Tt.style.overflow="hidden",Tt.style.flexGrow="2",this.widths.forEach(function(Kt){var kt=document.createElement("div");kt.style.display="flex",kt.style.flexGrow="2",kt.style.alignItems="center",kt.style.justifyContent="space-between",kt.style.padding="5px",kt.style.borderWidth="2px",kt.style.borderStyle="solid",kt.style.borderColor=Kt===wt.currentWidth?wt.uiStyleSettings.toolboxAccentColor:"transparent",kt.addEventListener("click",function(){wt.setCurrentWidth(Kt,kt)}),Tt.appendChild(kt);var $t=document.createElement("div");$t.innerText=Kt.toString(),$t.style.marginRight="5px",kt.appendChild($t);var un=document.createElement("div");un.style.minHeight="20px",un.style.flexGrow="2",un.style.display="flex",un.style.alignItems="center";var Ie=document.createElement("hr");Ie.style.minWidth="20px",Ie.style.border="0px",Ie.style.borderTop=Kt+"px solid "+wt.uiStyleSettings.toolboxColor,Ie.style.flexGrow="2",un.appendChild(Ie),kt.appendChild(un),wt.widthBoxes.push(kt)}),Tt},At.prototype.setCurrentWidth=function(wt,Tt){var Kt=this;this.currentWidth=wt,this.widthBoxes.forEach(function(kt){kt.style.borderColor=kt===Tt?Kt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},At}(nt),Ht=function(Rt){function At(wt,Tt,Kt,kt){var $t=Rt.call(this,wt,kt||'<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 $t.styles=[],$t.styleBoxes=[],$t.styles=Tt,$t.currentStyle=Kt,$t.setCurrentStyle=$t.setCurrentStyle.bind($t),$t}return te(At,Rt),At.prototype.getUi=function(){var wt=this,Tt=document.createElement("div");return Tt.style.display="flex",Tt.style.overflow="hidden",Tt.style.flexGrow="2",this.styles.forEach(function(Kt){var kt=document.createElement("div");kt.style.display="flex",kt.style.alignItems="center",kt.style.justifyContent="space-between",kt.style.padding="5px",kt.style.borderWidth="2px",kt.style.borderStyle="solid",kt.style.overflow="hidden",kt.style.maxWidth=100/wt.styles.length-5+"%",kt.style.borderColor=Kt===wt.currentStyle?wt.uiStyleSettings.toolboxAccentColor:"transparent",kt.addEventListener("click",function(){wt.setCurrentStyle(Kt,kt)}),Tt.appendChild(kt);var $t=document.createElement("div");$t.style.minHeight="20px",$t.style.flexGrow="2",$t.style.overflow="hidden";var un=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+wt.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(Kt!==""?'stroke-dasharray="'+Kt+'"':"")+` />
</svg>`;$t.innerHTML=un,kt.appendChild($t),wt.styleBoxes.push(kt)}),Tt},At.prototype.setCurrentStyle=function(wt,Tt){var Kt=this;this.currentStyle=wt,this.styleBoxes.forEach(function(kt){kt.style.borderColor=kt===Tt?Kt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},At}(nt),se=function(Rt){function At(wt,Tt,Kt){var kt=Rt.call(this,wt,Tt,Kt)||this;return kt.strokeColor=Kt.defaultColor,kt.strokeWidth=Kt.defaultStrokeWidth,kt.strokeDasharray=Kt.defaultStrokeDasharray,kt.strokePanel=new et("Line color",Kt.defaultColorSet,Kt.defaultColor),kt.strokePanel.onColorChanged=kt.setStrokeColor,kt.strokeWidthPanel=new It("Line width",Kt.defaultStrokeWidths,Kt.defaultStrokeWidth),kt.strokeWidthPanel.onWidthChanged=kt.setStrokeWidth,kt.strokeStylePanel=new Ht("Line style",Kt.defaultStrokeDasharrays,Kt.defaultStrokeDasharray),kt.strokeStylePanel.onStyleChanged=kt.setStrokeDasharray,kt}return te(At,Rt),Object.defineProperty(At.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),At.prototype.getState=function(){var wt=Rt.prototype.getState.call(this);return wt.typeName=At.typeName,wt},At.typeName="FrameMarker",At.title="Frame marker",At.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',At}(bt),Vt=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"},Jt=function(Rt){function At(wt,Tt,Kt){var kt=Rt.call(this,wt,Tt,Kt)||this;return kt.x1=0,kt.y1=0,kt.x2=0,kt.y2=0,kt.defaultLength=50,kt.manipulationStartX=0,kt.manipulationStartY=0,kt.manipulationStartX1=0,kt.manipulationStartY1=0,kt.manipulationStartX2=0,kt.manipulationStartY2=0,kt.setupControlBox(),kt}return te(At,Rt),At.prototype.ownsTarget=function(wt){return!!Rt.prototype.ownsTarget.call(this,wt)||!(!this.grip1.ownsTarget(wt)&&!this.grip2.ownsTarget(wt))},At.prototype.pointerDown=function(wt,Tt){Rt.prototype.pointerDown.call(this,wt,Tt),this.manipulationStartX=wt.x,this.manipulationStartY=wt.y,this.state==="new"&&(this.x1=wt.x,this.y1=wt.y,this.x2=wt.x,this.y2=wt.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(Tt)?this.activeGrip=this.grip1:this.grip2.ownsTarget(Tt)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},At.prototype.pointerUp=function(wt){var Tt=this.state;Rt.prototype.pointerUp.call(this,wt),this.state==="creating"&&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(wt),this._state="select",Tt==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},At.prototype.adjustVisual=function(){},At.prototype.manipulate=function(wt){this.state==="creating"?this.resize(wt):this.state==="move"?(this.x1=this.manipulationStartX1+wt.x-this.manipulationStartX,this.y1=this.manipulationStartY1+wt.y-this.manipulationStartY,this.x2=this.manipulationStartX2+wt.x-this.manipulationStartX,this.y2=this.manipulationStartY2+wt.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(wt)},At.prototype.resize=function(wt){switch(this.activeGrip){case this.grip1:this.x1=wt.x,this.y1=wt.y;break;case this.grip2:case void 0:this.x2=wt.x,this.y2=wt.y}this.adjustVisual(),this.adjustControlBox()},At.prototype.select=function(){Rt.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},At.prototype.deselect=function(){Rt.prototype.deselect.call(this),this.controlBox.style.display="none"},At.prototype.setupControlBox=function(){this.controlBox=jt.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},At.prototype.adjustControlBox=function(){this.positionGrips()},At.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},At.prototype.createGrip=function(){var wt=new gt;return wt.visual.transform.baseVal.appendItem(jt.createTransform()),this.controlBox.appendChild(wt.visual),wt},At.prototype.positionGrips=function(){var wt=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-wt/2,this.y1-wt/2),this.positionGrip(this.grip2.visual,this.x2-wt/2,this.y2-wt/2)},At.prototype.positionGrip=function(wt,Tt,Kt){var kt=wt.transform.baseVal.getItem(0);kt.setTranslate(Tt,Kt),wt.transform.baseVal.replaceItem(kt,0)},At.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},Rt.prototype.getState.call(this))},At.prototype.restoreState=function(wt){Rt.prototype.restoreState.call(this,wt);var Tt=wt;this.x1=Tt.x1,this.y1=Tt.y1,this.x2=Tt.x2,this.y2=Tt.y2},At.prototype.scale=function(wt,Tt){Rt.prototype.scale.call(this,wt,Tt),this.x1=this.x1*wt,this.y1=this.y1*Tt,this.x2=this.x2*wt,this.y2=this.y2*Tt,this.adjustVisual(),this.adjustControlBox()},At}(dt),Ee=function(Rt){function At(wt,Tt,Kt){var kt=Rt.call(this,wt,Tt,Kt)||this;return kt.strokeColor="transparent",kt.strokeWidth=0,kt.strokeDasharray="",kt.setStrokeColor=kt.setStrokeColor.bind(kt),kt.setStrokeWidth=kt.setStrokeWidth.bind(kt),kt.setStrokeDasharray=kt.setStrokeDasharray.bind(kt),kt.strokeColor=Kt.defaultColor,kt.strokeWidth=Kt.defaultStrokeWidth,kt.strokeDasharray=Kt.defaultStrokeDasharray,kt.strokePanel=new et("Line color",Kt.defaultColorSet,Kt.defaultColor),kt.strokePanel.onColorChanged=kt.setStrokeColor,kt.strokeWidthPanel=new It("Line width",Kt.defaultStrokeWidths,Kt.defaultStrokeWidth),kt.strokeWidthPanel.onWidthChanged=kt.setStrokeWidth,kt.strokeStylePanel=new Ht("Line style",Kt.defaultStrokeDasharrays,Kt.defaultStrokeDasharray),kt.strokeStylePanel.onStyleChanged=kt.setStrokeDasharray,kt}return te(At,Rt),At.prototype.ownsTarget=function(wt){return!(!Rt.prototype.ownsTarget.call(this,wt)&&wt!==this.visual&&wt!==this.selectorLine&&wt!==this.visibleLine)},At.prototype.createVisual=function(){this.visual=jt.createGroup(),this.selectorLine=jt.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=jt.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)},At.prototype.pointerDown=function(wt,Tt){Rt.prototype.pointerDown.call(this,wt,Tt),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},At.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()),jt.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),jt.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),jt.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},At.prototype.setStrokeColor=function(wt){this.strokeColor=wt,this.adjustVisual(),this.colorChanged(wt)},At.prototype.setStrokeWidth=function(wt){this.strokeWidth=wt,this.adjustVisual()},At.prototype.setStrokeDasharray=function(wt){this.strokeDasharray=wt,this.adjustVisual(),this.stateChanged()},Object.defineProperty(At.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),At.prototype.getState=function(){var wt=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},Rt.prototype.getState.call(this));return wt.typeName=At.typeName,wt},At.prototype.restoreState=function(wt){Rt.prototype.restoreState.call(this,wt);var Tt=wt;this.strokeColor=Tt.strokeColor,this.strokeWidth=Tt.strokeWidth,this.strokeDasharray=Tt.strokeDasharray,this.createVisual(),this.adjustVisual()},At.typeName="LineMarker",At.title="Line marker",At.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',At}(Jt),we=function(Rt){function At(wt,Tt,Kt,kt){var $t=Rt.call(this,wt,kt||'<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 $t.fonts=[],$t.fontBoxes=[],$t.fonts=Tt,$t.currentFont=Kt,$t.setCurrentFont=$t.setCurrentFont.bind($t),$t}return te(At,Rt),At.prototype.getUi=function(){var wt=this,Tt=document.createElement("div");return Tt.style.overflow="hidden",Tt.style.flexGrow="2",this.fonts.forEach(function(Kt){var kt=document.createElement("div");kt.style.display="inline-block",kt.style.alignItems="center",kt.style.justifyContent="space-between",kt.style.padding="5px",kt.style.borderWidth="2px",kt.style.borderStyle="solid",kt.style.overflow="hidden",kt.style.maxWidth=100/wt.fonts.length-5+"%",kt.style.borderColor=Kt===wt.currentFont?wt.uiStyleSettings.toolboxAccentColor:"transparent",kt.addEventListener("click",function(){wt.setCurrentFont(Kt,kt)}),Tt.appendChild(kt);var $t=document.createElement("div");$t.style.display="flex",$t.style.minHeight="20px",$t.style.flexGrow="2",$t.style.fontFamily=Kt,$t.style.overflow="hidden";var un=document.createElement("div");un.style.whiteSpace="nowrap",un.style.overflow="hidden",un.style.textOverflow="ellipsis",un.innerHTML="The quick brown fox jumps over the lazy dog",$t.appendChild(un),kt.appendChild($t),wt.fontBoxes.push(kt)}),Tt},At.prototype.setCurrentFont=function(wt,Tt){var Kt=this;this.currentFont=wt,this.fontBoxes.forEach(function(kt){kt.style.borderColor=kt===Tt?Kt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},At}(nt),De=function(Rt){function At(wt,Tt,Kt){var kt=Rt.call(this,wt,Tt,Kt)||this;return kt.color="transparent",kt.padding=5,kt.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",kt.text=kt.DEFAULT_TEXT,kt.isMoved=!1,kt.color=Kt.defaultColor,kt.fontFamily=Kt.defaultFontFamily,kt.defaultSize={x:100,y:30},kt.setColor=kt.setColor.bind(kt),kt.setFont=kt.setFont.bind(kt),kt.renderText=kt.renderText.bind(kt),kt.sizeText=kt.sizeText.bind(kt),kt.textEditDivClicked=kt.textEditDivClicked.bind(kt),kt.showTextEditor=kt.showTextEditor.bind(kt),kt.setSize=kt.setSize.bind(kt),kt.positionTextEditor=kt.positionTextEditor.bind(kt),kt.colorPanel=new et("Color",Kt.defaultColorSet,Kt.defaultColor),kt.colorPanel.onColorChanged=kt.setColor,kt.fontFamilyPanel=new we("Font",Kt.defaultFontFamilies,Kt.defaultFontFamily),kt.fontFamilyPanel.onFontChanged=kt.setFont,kt}return te(At,Rt),At.prototype.ownsTarget=function(wt){if(Rt.prototype.ownsTarget.call(this,wt)||wt===this.visual||wt===this.textElement||wt===this.bgRectangle)return!0;var Tt=!1;return this.textElement.childNodes.forEach(function(Kt){Kt===wt&&(Tt=!0)}),Tt},At.prototype.createVisual=function(){this.visual=jt.createGroup(),this.bgRectangle=jt.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=jt.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(jt.createTransform()),this.textElement.transform.baseVal.appendItem(jt.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},At.prototype.pointerDown=function(wt,Tt){Rt.prototype.pointerDown.call(this,wt,Tt),this.isMoved=!1,this.pointerDownPoint=wt,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(wt),this._state="creating")},At.prototype.renderText=function(){var wt=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(Tt){wt.textElement.appendChild(jt.createTSpan(Tt.trim()===""?" ":Tt.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},At.prototype.getTextScale=function(){var wt=this.textElement.getBBox(),Tt=1;if(wt.width>0&&wt.height>0){var Kt=(1*this.width-this.width*this.padding*2/100)/wt.width,kt=(1*this.height-this.height*this.padding*2/100)/wt.height;Tt=Math.min(Kt,kt)}return Tt},At.prototype.getTextPosition=function(wt){var Tt=this.textElement.getBBox(),Kt=0,kt=0;return Tt.width>0&&Tt.height>0&&(Kt=(this.width-Tt.width*wt)/2,kt=this.height/2-Tt.height*wt/2),{x:Kt,y:kt}},At.prototype.sizeText=function(){var wt=this.textElement.getBBox(),Tt=this.getTextScale(),Kt=this.getTextPosition(Tt);Kt.y-=wt.y*Tt,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+Kt.x+"px, "+Kt.y+"px) scale("+Tt+", "+Tt+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(Kt.x,Kt.y),this.textElement.transform.baseVal.getItem(1).setScale(Tt,Tt))},At.prototype.manipulate=function(wt){Rt.prototype.manipulate.call(this,wt),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(wt.x-this.pointerDownPoint.x)>5||Math.abs(wt.y-this.pointerDownPoint.y)>5)},At.prototype.resize=function(wt){Rt.prototype.resize.call(this,wt),this.isMoved=!0,this.setSize(),this.sizeText()},At.prototype.setSize=function(){Rt.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(jt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),jt.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},At.prototype.pointerUp=function(wt){var Tt=this.state;Tt==="creating"&&(this._suppressMarkerCreateEvent=!0),Rt.prototype.pointerUp.call(this,wt),this.setSize(),(Tt==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},At.prototype.showTextEditor=function(){var wt=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(Tt){Tt.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var Tt=Number.parseFloat(wt.textEditor.style.fontSize);wt.textEditor.clientWidth>=Number.parseInt(wt.textEditor.style.maxWidth)&&Tt>.9;)Tt-=.1,wt.textEditor.style.fontSize=Math.max(Tt,.9)+"em"}),this.textEditor.addEventListener("keyup",function(Tt){Tt.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(Tt){if(Tt.clipboardData){var Kt=Tt.clipboardData.getData("text"),kt=window.getSelection();if(!kt.rangeCount)return!1;kt.deleteFromDocument(),kt.getRangeAt(0).insertNode(document.createTextNode(Kt)),Tt.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){wt.textEditDivClicked(wt.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},At.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var wt=this.getTextScale(),Tt=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),Kt=this.textElement.getBBox(),kt={x:Kt.width*wt,y:Kt.height*wt};Tt.x-=kt.x/2,Tt.y-=kt.y/2,this.textEditor.style.top=Tt.y+"px",this.textEditor.style.left=Tt.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-Tt.x+"px",this.textEditor.style.fontSize=Math.max(16*wt,12)+"px",this.textElement.style.display="none"}},At.prototype.textEditDivClicked=function(wt){this.text=wt.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},At.prototype.select=function(){Rt.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},At.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),Rt.prototype.deselect.call(this)},At.prototype.dblClick=function(wt,Tt){Rt.prototype.dblClick.call(this,wt,Tt),this.showTextEditor()},At.prototype.setColor=function(wt){this.textElement&&jt.setAttributes(this.textElement,[["fill",wt]]),this.color=wt,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(wt)},At.prototype.setFont=function(wt){this.textElement&&jt.setAttributes(this.textElement,[["font-family",wt]]),this.fontFamily=wt,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},At.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},At.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(At.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),At.prototype.getState=function(){var wt=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},Rt.prototype.getState.call(this));return wt.typeName=At.typeName,wt},At.prototype.restoreState=function(wt){var Tt=wt;this.color=Tt.color,this.fontFamily=Tt.fontFamily,this.padding=Tt.padding,this.text=Tt.text,this.createVisual(),Rt.prototype.restoreState.call(this,wt),this.setSize()},At.prototype.scale=function(wt,Tt){Rt.prototype.scale.call(this,wt,Tt),this.setSize(),this.sizeText(),this.positionTextEditor()},At.typeName="TextMarker",At.title="Text marker",At.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>',At}(St),Le=function(Rt){function At(wt,Tt,Kt){var kt=Rt.call(this,wt,Tt,Kt)||this;return kt.color="transparent",kt.lineWidth=3,kt.drawing=!1,kt.pixelRatio=1,kt.color=Kt.defaultColor,kt.lineWidth=Kt.defaultStrokeWidth,kt.pixelRatio=Kt.freehandPixelRatio,kt.setColor=kt.setColor.bind(kt),kt.addCanvas=kt.addCanvas.bind(kt),kt.finishCreation=kt.finishCreation.bind(kt),kt.setLineWidth=kt.setLineWidth.bind(kt),kt.colorPanel=new et("Color",Kt.defaultColorSet,Kt.defaultColor),kt.colorPanel.onColorChanged=kt.setColor,kt.lineWidthPanel=new It("Line width",Kt.defaultStrokeWidths,Kt.defaultStrokeWidth),kt.lineWidthPanel.onWidthChanged=kt.setLineWidth,kt}return te(At,Rt),At.prototype.ownsTarget=function(wt){return!(!Rt.prototype.ownsTarget.call(this,wt)&&wt!==this.visual&&wt!==this.drawingImage)},At.prototype.createVisual=function(){this.visual=jt.createGroup(),this.drawingImage=jt.createImage(),this.visual.appendChild(this.drawingImage);var wt=jt.createTransform();this.visual.transform.baseVal.appendItem(wt),this.addMarkerVisualToContainer(this.visual)},At.prototype.pointerDown=function(wt,Tt){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(wt.x,wt.y),this.drawing=!0):Rt.prototype.pointerDown.call(this,wt,Tt)},At.prototype.manipulate=function(wt){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(wt.x,wt.y),this.canvasContext.stroke()):Rt.prototype.manipulate.call(this,wt)},At.prototype.resize=function(wt){Rt.prototype.resize.call(this,wt),jt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),jt.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},At.prototype.pointerUp=function(wt){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):Rt.prototype.pointerUp.call(this,wt)},At.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)},At.prototype.select=function(){this.state==="creating"&&this.finishCreation(),Rt.prototype.select.call(this)},At.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),Rt.prototype.deselect.call(this)},At.prototype.finishCreation=function(){for(var wt=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),Tt=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],Kt=Tt[0],kt=Tt[1],$t=Tt[2],un=Tt[3],Ie=!1,Ue=0;Ue<this.canvasElement.height;Ue++)for(var ne=0;ne<this.canvasElement.width;ne++)wt.data[Ue*this.canvasElement.width*4+4*ne+3]>0&&(Ie=!0,Ue<kt&&(kt=Ue),ne<Kt&&(Kt=ne),Ue>un&&(un=Ue),ne>$t&&($t=ne));if(Ie){this.left=Kt/this.pixelRatio,this.top=kt/this.pixelRatio,this.width=($t-Kt)/this.pixelRatio,this.height=(un-kt)/this.pixelRatio;var Oe=document.createElement("canvas");Oe.width=$t-Kt,Oe.height=un-kt,Oe.getContext("2d").putImageData(this.canvasContext.getImageData(Kt,kt,$t-Kt,un-kt),0,0),this.drawingImgUrl=Oe.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},At.prototype.setDrawingImage=function(){jt.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),jt.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},At.prototype.setColor=function(wt){this.color=wt,this.colorChanged(wt)},At.prototype.setLineWidth=function(wt){this.lineWidth=wt},Object.defineProperty(At.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),At.prototype.getState=function(){var wt=Object.assign({drawingImgUrl:this.drawingImgUrl},Rt.prototype.getState.call(this));return wt.typeName=At.typeName,wt},At.prototype.restoreState=function(wt){this.createVisual(),Rt.prototype.restoreState.call(this,wt),this.drawingImgUrl=wt.drawingImgUrl,this.setDrawingImage()},At.prototype.scale=function(wt,Tt){Rt.prototype.scale.call(this,wt,Tt),this.setDrawingImage()},At.typeName="FreehandMarker",At.title="Freehand marker",At.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>',At}(St),sn=function(Rt){function At(wt,Tt,Kt){var kt=Rt.call(this,wt,Kt||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return kt.typeBoxes=[],kt.currentType=Tt,kt.setCurrentType=kt.setCurrentType.bind(kt),kt}return te(At,Rt),At.prototype.getUi=function(){var wt=this,Tt=document.createElement("div");Tt.style.display="flex",Tt.style.overflow="hidden",Tt.style.flexGrow="2";for(var Kt=function(un){var Ie="both";switch(un){case 0:Ie="both";break;case 1:Ie="start";break;case 2:Ie="end";break;case 3:Ie="none"}var Ue=document.createElement("div");if(Ue.style.display="flex",Ue.style.flexGrow="2",Ue.style.alignItems="center",Ue.style.justifyContent="space-between",Ue.style.padding="5px",Ue.style.borderWidth="2px",Ue.style.borderStyle="solid",Ue.style.borderColor=Ie===kt.currentType?kt.uiStyleSettings.toolboxAccentColor:"transparent",Ue.addEventListener("click",function(){wt.setCurrentType(Ie,Ue)}),Tt.appendChild(Ue),Ie==="both"||Ie==="start"){var ne=document.createElement("div");ne.style.display="flex",ne.style.alignItems="center",ne.style.minHeight="20px",ne.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,5 10,0 10,10" fill="`+(kt.uiStyleSettings!==void 0?kt.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,ne.style.marginLeft="5px",Ue.appendChild(ne)}var Oe=document.createElement("div");Oe.style.display="flex",Oe.style.alignItems="center",Oe.style.minHeight="20px",Oe.style.flexGrow="2";var Ne=document.createElement("hr");if(Ne.style.minWidth="20px",Ne.style.border="0px",Ne.style.borderTop="3px solid "+(kt.uiStyleSettings!==void 0?kt.uiStyleSettings.toolboxColor:"#eeeeee"),Ne.style.flexGrow="2",Oe.appendChild(Ne),Ue.appendChild(Oe),Ie==="both"||Ie==="end"){var Xe=document.createElement("div");Xe.style.display="flex",Xe.style.alignItems="center",Xe.style.minHeight="20px",Xe.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,0 10,5 0,10" fill="`+(kt.uiStyleSettings!==void 0?kt.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,Xe.style.marginRight="5px",Ue.appendChild(Xe)}kt.typeBoxes.push(Ue)},kt=this,$t=0;$t<4;$t++)Kt($t);return Tt},At.prototype.setCurrentType=function(wt,Tt){var Kt=this;this.currentType=wt,this.typeBoxes.forEach(function(kt){kt.style.borderColor=kt===Tt?Kt.uiStyleSettings!==void 0?Kt.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},At}(nt),Fn=function(Rt){function At(wt,Tt,Kt){var kt=Rt.call(this,wt,Tt,Kt)||this;return kt.arrowType="end",kt.arrowBaseHeight=10,kt.arrowBaseWidth=10,kt.getArrowPoints=kt.getArrowPoints.bind(kt),kt.setArrowType=kt.setArrowType.bind(kt),kt.arrowTypePanel=new sn("Arrow type","end"),kt.arrowTypePanel.onArrowTypeChanged=kt.setArrowType,kt}return te(At,Rt),At.prototype.ownsTarget=function(wt){return!(!Rt.prototype.ownsTarget.call(this,wt)&&wt!==this.arrow1&&wt!==this.arrow2)},At.prototype.getArrowPoints=function(wt,Tt){var Kt=this.arrowBaseWidth+2*this.strokeWidth,kt=this.arrowBaseHeight+2*this.strokeWidth;return wt-Kt/2+","+(Tt+kt/2)+" "+wt+","+(Tt-kt/2)+" "+(wt+Kt/2)+","+(Tt+kt/2)},At.prototype.createTips=function(){this.arrow1=jt.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(jt.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=jt.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(jt.createTransform()),this.visual.appendChild(this.arrow2)},At.prototype.pointerDown=function(wt,Tt){Rt.prototype.pointerDown.call(this,wt,Tt),this.state==="creating"&&this.createTips()},At.prototype.adjustVisual=function(){if(Rt.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2){this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",jt.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),jt.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var wt=0;Math.abs(this.x1-this.x2)>.1&&(wt=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var Tt=this.arrow1.transform.baseVal.getItem(0);Tt.setRotate(wt,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(Tt,0);var Kt=this.arrow2.transform.baseVal.getItem(0);Kt.setRotate(wt+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(Kt,0)}},At.prototype.setArrowType=function(wt){this.arrowType=wt,this.adjustVisual(),this.stateChanged()},Object.defineProperty(At.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),At.prototype.getState=function(){var wt=Object.assign({arrowType:this.arrowType},Rt.prototype.getState.call(this));return wt.typeName=At.typeName,wt},At.prototype.restoreState=function(wt){Rt.prototype.restoreState.call(this,wt);var Tt=wt;this.arrowType=Tt.arrowType,this.createTips(),this.adjustVisual()},At.typeName="ArrowMarker",At.title="Arrow marker",At.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',At}(Ee),fn=function(Rt){function At(wt,Tt,Kt){var kt=Rt.call(this,wt,Tt,Kt)||this;return kt.fillColor=Kt.defaultFillColor,kt.strokeWidth=0,kt.fillPanel=new et("Color",Kt.defaultColorSet,Kt.defaultFillColor),kt.fillPanel.onColorChanged=kt.setFillColor,kt}return te(At,Rt),Object.defineProperty(At.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),At.prototype.getState=function(){var wt=Rt.prototype.getState.call(this);return wt.typeName=At.typeName,wt},At.typeName="CoverMarker",At.title="Cover marker",At.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',At}(bt),Ge=function(Rt){function At(wt,Tt,Kt,kt){var $t=Rt.call(this,wt,kt||'<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 $t.opacities=[],$t.opacityBoxes=[],$t.opacities=Tt,$t.currentOpacity=Kt,$t.setCurrentOpacity=$t.setCurrentOpacity.bind($t),$t}return te(At,Rt),At.prototype.getUi=function(){var wt=this,Tt=document.createElement("div");return Tt.style.display="flex",Tt.style.overflow="hidden",Tt.style.flexGrow="2",Tt.style.justifyContent="space-between",this.opacities.forEach(function(Kt){var kt=document.createElement("div");kt.style.display="flex",kt.style.alignItems="center",kt.style.justifyContent="center",kt.style.padding="5px",kt.style.borderWidth="2px",kt.style.borderStyle="solid",kt.style.borderColor=Kt===wt.currentOpacity?wt.uiStyleSettings.toolboxAccentColor:"transparent",kt.addEventListener("click",function(){wt.setCurrentOpacity(Kt,kt)}),Tt.appendChild(kt);var $t=document.createElement("div");$t.innerText=100*Kt+"%",kt.appendChild($t),wt.opacityBoxes.push(kt)}),Tt},At.prototype.setCurrentOpacity=function(wt,Tt){var Kt=this;this.currentOpacity=wt,this.opacityBoxes.forEach(function(kt){kt.style.borderColor=kt===Tt?Kt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},At}(nt),an=function(Rt){function At(wt,Tt,Kt){var kt=Rt.call(this,wt,Tt,Kt)||this;return kt.setOpacity=kt.setOpacity.bind(kt),kt.fillColor=Kt.defaultHighlightColor,kt.strokeWidth=0,kt.opacity=Kt.defaultHighlightOpacity,kt.fillPanel=new et("Color",Kt.defaultColorSet,kt.fillColor),kt.fillPanel.onColorChanged=kt.setFillColor,kt.opacityPanel=new Ge("Opacity",Kt.defaultOpacitySteps,kt.opacity),kt.opacityPanel.onOpacityChanged=kt.setOpacity,kt}return te(At,Rt),At.prototype.setOpacity=function(wt){this.opacity=wt,this.visual&&jt.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(At.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),At.prototype.getState=function(){var wt=Rt.prototype.getState.call(this);return wt.typeName=At.typeName,wt},At.typeName="HighlightMarker",At.title="Highlight marker",At.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>',At}(fn),Se='<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>',Qt='<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>',mn=function(Rt){function At(wt,Tt,Kt){var kt=Rt.call(this,wt,Tt,Kt)||this;return kt.bgColor="transparent",kt.tipPosition={x:0,y:0},kt.tipBase1Position={x:0,y:0},kt.tipBase2Position={x:0,y:0},kt.tipMoving=!1,kt.color=Kt.defaultStrokeColor,kt.bgColor=Kt.defaultFillColor,kt.fontFamily=Kt.defaultFontFamily,kt.defaultSize={x:100,y:30},kt.setBgColor=kt.setBgColor.bind(kt),kt.getTipPoints=kt.getTipPoints.bind(kt),kt.positionTip=kt.positionTip.bind(kt),kt.setTipPoints=kt.setTipPoints.bind(kt),kt.colorPanel=new et("Text color",Kt.defaultColorSet,kt.color,Se),kt.colorPanel.onColorChanged=kt.setColor,kt.bgColorPanel=new et("Fill color",Kt.defaultColorSet,kt.bgColor,Qt),kt.bgColorPanel.onColorChanged=kt.setBgColor,kt.fontFamilyPanel=new we("Font",Kt.defaultFontFamilies,Kt.defaultFontFamily),kt.fontFamilyPanel.onFontChanged=kt.setFont,kt.tipGrip=new gt,kt.tipGrip.visual.transform.baseVal.appendItem(jt.createTransform()),kt.controlBox.appendChild(kt.tipGrip.visual),kt}return te(At,Rt),At.prototype.ownsTarget=function(wt){return Rt.prototype.ownsTarget.call(this,wt)||this.tipGrip.ownsTarget(wt)||this.tip===wt},At.prototype.createTip=function(){jt.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=jt.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},At.prototype.pointerDown=function(wt,Tt){this.state==="new"&&Rt.prototype.pointerDown.call(this,wt,Tt),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(Tt)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):Rt.prototype.pointerDown.call(this,wt,Tt)},At.prototype.pointerUp=function(wt){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,Rt.prototype.pointerUp.call(this,wt);else{var Tt=this.state==="creating";Rt.prototype.pointerUp.call(this,wt),this.setTipPoints(Tt),this.positionTip()}},At.prototype.manipulate=function(wt){if(this.tipMoving){var Tt=this.unrotatePoint(wt);this.tipPosition={x:Tt.x-this.manipulationStartLeft,y:Tt.y-this.manipulationStartTop},this.positionTip()}else Rt.prototype.manipulate.call(this,wt)},At.prototype.setBgColor=function(wt){this.bgRectangle&&this.tip&&(jt.setAttributes(this.bgRectangle,[["fill",wt]]),jt.setAttributes(this.tip,[["fill",wt]])),this.bgColor=wt,this.fillColorChanged(wt)},At.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},At.prototype.setTipPoints=function(wt){wt===void 0&&(wt=!1);var Tt=Math.min(this.height/2,15),Kt=this.height/5;wt&&(this.tipPosition={x:Tt+Kt/2,y:this.height+20});var kt=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?kt<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(Kt=this.width/5,Tt=Math.min(this.width/2,15),this.tipBase1Position={x:Tt,y:0},this.tipBase2Position={x:Tt+Kt,y:0}):(this.tipBase1Position={x:0,y:Tt},this.tipBase2Position={x:0,y:Tt+Kt}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?kt<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(Kt=this.width/5,Tt=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Tt-Kt,y:0},this.tipBase2Position={x:this.width-Tt,y:0}):(this.tipBase1Position={x:this.width,y:Tt},this.tipBase2Position={x:this.width,y:Tt+Kt}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?kt<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(Kt=this.width/5,Tt=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Tt-Kt,y:this.height},this.tipBase2Position={x:this.width-Tt,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-Tt-Kt},this.tipBase2Position={x:this.width,y:this.height-Tt}):kt<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(Kt=this.width/5,Tt=Math.min(this.width/2,15),this.tipBase1Position={x:Tt,y:this.height},this.tipBase2Position={x:Tt+Kt,y:this.height}):(this.tipBase1Position={x:0,y:this.height-Tt},this.tipBase2Position={x:0,y:this.height-Tt-Kt})},At.prototype.resize=function(wt){Rt.prototype.resize.call(this,wt),this.positionTip()},At.prototype.positionTip=function(){jt.setAttributes(this.tip,[["points",this.getTipPoints()]]);var wt=this.tipGrip.visual.transform.baseVal.getItem(0);wt.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(wt,0)},Object.defineProperty(At.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),At.prototype.select=function(){this.positionTip(),Rt.prototype.select.call(this)},At.prototype.getState=function(){var wt=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},Rt.prototype.getState.call(this));return wt.typeName=At.typeName,wt},At.prototype.restoreState=function(wt){var Tt=wt;this.bgColor=Tt.bgColor,this.tipPosition=Tt.tipPosition,Rt.prototype.restoreState.call(this,wt),this.createTip(),this.setTipPoints()},At.prototype.scale=function(wt,Tt){Rt.prototype.scale.call(this,wt,Tt),this.tipPosition={x:this.tipPosition.x*wt,y:this.tipPosition.y*Tt},this.positionTip()},At.typeName="CalloutMarker",At.title="Callout marker",At.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>',At}(De),ii=function(Rt){function At(wt,Tt,Kt){var kt=Rt.call(this,wt,Tt,Kt)||this;return kt.fillColor="transparent",kt.strokeColor="transparent",kt.strokeWidth=0,kt.strokeDasharray="",kt.opacity=1,kt.strokeColor=Kt.defaultColor,kt.strokeWidth=Kt.defaultStrokeWidth,kt.strokeDasharray=Kt.defaultStrokeDasharray,kt.fillColor=Kt.defaultFillColor,kt.setStrokeColor=kt.setStrokeColor.bind(kt),kt.setFillColor=kt.setFillColor.bind(kt),kt.setStrokeWidth=kt.setStrokeWidth.bind(kt),kt.setStrokeDasharray=kt.setStrokeDasharray.bind(kt),kt.setOpacity=kt.setOpacity.bind(kt),kt.createVisual=kt.createVisual.bind(kt),kt.strokePanel=new et("Line color",be(Kt.defaultColorSet,["transparent"]),Kt.defaultColor),kt.strokePanel.onColorChanged=kt.setStrokeColor,kt.fillPanel=new et("Fill color",be(Kt.defaultColorSet,["transparent"]),kt.fillColor,Qt),kt.fillPanel.onColorChanged=kt.setFillColor,kt.strokeWidthPanel=new It("Line width",Kt.defaultStrokeWidths,Kt.defaultStrokeWidth),kt.strokeWidthPanel.onWidthChanged=kt.setStrokeWidth,kt.strokeStylePanel=new Ht("Line style",Kt.defaultStrokeDasharrays,Kt.defaultStrokeDasharray),kt.strokeStylePanel.onStyleChanged=kt.setStrokeDasharray,kt.opacityPanel=new Ge("Opacity",Kt.defaultOpacitySteps,kt.opacity),kt.opacityPanel.onOpacityChanged=kt.setOpacity,kt}return te(At,Rt),At.prototype.ownsTarget=function(wt){return!(!Rt.prototype.ownsTarget.call(this,wt)&&wt!==this.visual)},At.prototype.createVisual=function(){this.visual=jt.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)},At.prototype.pointerDown=function(wt,Tt){Rt.prototype.pointerDown.call(this,wt,Tt),this.state==="new"&&(this.createVisual(),this.moveVisual(wt),this._state="creating")},At.prototype.manipulate=function(wt){Rt.prototype.manipulate.call(this,wt)},At.prototype.resize=function(wt){Rt.prototype.resize.call(this,wt),this.setSize()},At.prototype.setSize=function(){Rt.prototype.setSize.call(this),jt.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},At.prototype.pointerUp=function(wt){Rt.prototype.pointerUp.call(this,wt),this.setSize()},At.prototype.setStrokeColor=function(wt){this.strokeColor=wt,this.visual&&jt.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(wt),this.stateChanged()},At.prototype.setFillColor=function(wt){this.fillColor=wt,this.visual&&jt.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(wt),this.stateChanged()},At.prototype.setStrokeWidth=function(wt){this.strokeWidth=wt,this.visual&&jt.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},At.prototype.setStrokeDasharray=function(wt){this.strokeDasharray=wt,this.visual&&jt.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},At.prototype.setOpacity=function(wt){this.opacity=wt,this.visual&&jt.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(At.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),At.prototype.getState=function(){var wt=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Rt.prototype.getState.call(this));return wt.typeName=At.typeName,wt},At.prototype.restoreState=function(wt){var Tt=wt;this.fillColor=Tt.fillColor,this.strokeColor=Tt.strokeColor,this.strokeWidth=Tt.strokeWidth,this.strokeDasharray=Tt.strokeDasharray,this.opacity=Tt.opacity,this.createVisual(),Rt.prototype.restoreState.call(this,wt),this.setSize()},At.prototype.scale=function(wt,Tt){Rt.prototype.scale.call(this,wt,Tt),this.setSize()},At.typeName="EllipseMarker",At.title="Ellipse marker",At.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>',At}(St),jn=function(Rt){function At(wt,Tt,Kt){return Rt.call(this,wt,Tt,Kt)||this}return te(At,Rt),Object.defineProperty(At.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),At.prototype.ownsTarget=function(wt){return!(!Rt.prototype.ownsTarget.call(this,wt)&&wt!==this.tip1&&wt!==this.tip2)},At.prototype.createTips=function(){this.tip1=jt.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(jt.createTransform()),this.visual.appendChild(this.tip1),this.tip2=jt.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(jt.createTransform()),this.visual.appendChild(this.tip2)},At.prototype.pointerDown=function(wt,Tt){Rt.prototype.pointerDown.call(this,wt,Tt),this.state==="creating"&&this.createTips()},At.prototype.adjustVisual=function(){if(Rt.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(jt.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()]]),jt.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 wt=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),Tt=this.tip1.transform.baseVal.getItem(0);Tt.setRotate(wt,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(Tt,0);var Kt=this.tip2.transform.baseVal.getItem(0);Kt.setRotate(wt+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(Kt,0)}},Object.defineProperty(At.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),At.prototype.getState=function(){var wt=Rt.prototype.getState.call(this);return wt.typeName=At.typeName,wt},At.prototype.restoreState=function(wt){Rt.prototype.restoreState.call(this,wt),this.createTips(),this.adjustVisual()},At.typeName="MeasurementMarker",At.title="Measurement marker",At.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>',At}(Ee),ln=function(Rt){function At(wt,Tt,Kt){var kt=Rt.call(this,wt,Tt,Kt)||this;return kt.strokePanel.colors=Kt.defaultColorSet,kt.fillColor="transparent",kt}return te(At,Rt),Object.defineProperty(At.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),At.prototype.getState=function(){var wt=Rt.prototype.getState.call(this);return wt.typeName=At.typeName,wt},At.typeName="EllipseFrameMarker",At.title="Ellipse frame marker",At.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>',At}(ii),qn=function(){function Rt(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(Rt.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Rt.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Rt.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(Rt.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),Rt.prototype.addUndoStep=function(At){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(At)||(this.undoStack.push(At),JSON.stringify(this.lastRedoStep)!==JSON.stringify(At)&&this.redoStack.splice(0,this.redoStack.length))},Rt.prototype.replaceLastUndoStep=function(At){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=At)},Rt.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},Rt.prototype.undo=function(){if(this.undoStack.length>1){var At=this.undoStack.pop();return At!==void 0&&this.redoStack.push(At),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},Rt.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},Rt}(),Dn=function(Rt){function At(wt,Tt,Kt){var kt=Rt.call(this,wt,Tt,Kt)||this;return kt.strokeColor="transparent",kt.strokeWidth=0,kt.strokeDasharray="",kt.curveX=0,kt.curveY=0,kt.manipulationStartCurveX=0,kt.manipulationStartCurveY=0,kt.setStrokeColor=kt.setStrokeColor.bind(kt),kt.setStrokeWidth=kt.setStrokeWidth.bind(kt),kt.setStrokeDasharray=kt.setStrokeDasharray.bind(kt),kt.positionGrips=kt.positionGrips.bind(kt),kt.addControlGrips=kt.addControlGrips.bind(kt),kt.adjustVisual=kt.adjustVisual.bind(kt),kt.setupControlBox=kt.setupControlBox.bind(kt),kt.resize=kt.resize.bind(kt),kt.strokeColor=Kt.defaultColor,kt.strokeWidth=Kt.defaultStrokeWidth,kt.strokeDasharray=Kt.defaultStrokeDasharray,kt.strokePanel=new et("Line color",Kt.defaultColorSet,Kt.defaultColor),kt.strokePanel.onColorChanged=kt.setStrokeColor,kt.strokeWidthPanel=new It("Line width",Kt.defaultStrokeWidths,Kt.defaultStrokeWidth),kt.strokeWidthPanel.onWidthChanged=kt.setStrokeWidth,kt.strokeStylePanel=new Ht("Line style",Kt.defaultStrokeDasharrays,Kt.defaultStrokeDasharray),kt.strokeStylePanel.onStyleChanged=kt.setStrokeDasharray,kt}return te(At,Rt),At.prototype.ownsTarget=function(wt){return!(!Rt.prototype.ownsTarget.call(this,wt)&&wt!==this.visual&&wt!==this.selectorCurve&&wt!==this.visibleCurve&&!this.curveGrip.ownsTarget(wt))},At.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},At.prototype.createVisual=function(){this.visual=jt.createGroup(),this.selectorCurve=jt.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=jt.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)},At.prototype.pointerDown=function(wt,Tt){Rt.prototype.pointerDown.call(this,wt,Tt),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=wt.x,this.curveY=wt.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(Tt)&&(this.activeGrip=this.curveGrip,this._state="resize")},At.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),jt.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),jt.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),jt.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},At.prototype.setupControlBox=function(){Rt.prototype.setupControlBox.call(this),this.curveControlLine1=jt.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=jt.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)},At.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,Rt.prototype.addControlGrips.call(this)},At.prototype.positionGrips=function(){Rt.prototype.positionGrips.call(this);var wt=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-wt/2,this.curveY-wt/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()))},At.prototype.manipulate=function(wt){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+wt.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+wt.y-this.manipulationStartY),Rt.prototype.manipulate.call(this,wt)},At.prototype.resize=function(wt){this.activeGrip===this.curveGrip&&(this.curveX=wt.x,this.curveY=wt.y),Rt.prototype.resize.call(this,wt),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},At.prototype.setStrokeColor=function(wt){this.strokeColor=wt,this.adjustVisual(),this.colorChanged(wt)},At.prototype.setStrokeWidth=function(wt){this.strokeWidth=wt,this.adjustVisual()},At.prototype.setStrokeDasharray=function(wt){this.strokeDasharray=wt,this.adjustVisual()},At.prototype.scale=function(wt,Tt){this.curveX=this.curveX*wt,this.curveY=this.curveY*Tt,Rt.prototype.scale.call(this,wt,Tt)},Object.defineProperty(At.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),At.prototype.getState=function(){var wt=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},Rt.prototype.getState.call(this));return wt.typeName=At.typeName,wt},At.prototype.restoreState=function(wt){Rt.prototype.restoreState.call(this,wt);var Tt=wt;this.strokeColor=Tt.strokeColor,this.strokeWidth=Tt.strokeWidth,this.strokeDasharray=Tt.strokeDasharray,this.curveX=Tt.curveX,this.curveY=Tt.curveY,this.createVisual(),this.adjustVisual()},At.typeName="CurveMarker",At.title="Curve marker",At.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>',At}(Jt),fi=function(Rt){function At(wt,Tt,Kt){var kt=Rt.call(this,wt,Tt,Kt)||this;return kt.fillColor="transparent",kt.strokeColor="transparent",kt.strokeWidth=0,kt.strokeDasharray="",kt.textColor="transparent",kt.fontSize="1rem",kt.isMoved=!1,kt.captionText="Caption",kt.PADDING=5,kt.captionBoxWidth=0,kt.captionBoxHeight=0,kt.strokeColor=Kt.defaultColor,kt.strokeWidth=Kt.defaultStrokeWidth,kt.strokeDasharray=Kt.defaultStrokeDasharray,kt.fillColor=Kt.defaultFillColor,kt.textColor=Kt.defaultStrokeColor,kt.fontFamily=Kt.defaultFontFamily,kt.fontSize=Kt.defaultCaptionFontSize,kt.captionText=Kt.defaultCaptionText,kt.setStrokeColor=kt.setStrokeColor.bind(kt),kt.setFillColor=kt.setFillColor.bind(kt),kt.setStrokeWidth=kt.setStrokeWidth.bind(kt),kt.setStrokeDasharray=kt.setStrokeDasharray.bind(kt),kt.createVisual=kt.createVisual.bind(kt),kt.sizeCaption=kt.sizeCaption.bind(kt),kt.setCaptionText=kt.setCaptionText.bind(kt),kt.showTextEditor=kt.showTextEditor.bind(kt),kt.positionTextEditor=kt.positionTextEditor.bind(kt),kt.finishTextEditing=kt.finishTextEditing.bind(kt),kt.setFont=kt.setFont.bind(kt),kt.setTextColor=kt.setTextColor.bind(kt),kt.strokePanel=new et("Line color",be(Kt.defaultColorSet,["transparent"]),kt.strokeColor),kt.strokePanel.onColorChanged=kt.setStrokeColor,kt.fillPanel=new et("Fill color",be(Kt.defaultColorSet,["transparent"]),kt.fillColor,Qt),kt.fillPanel.onColorChanged=kt.setFillColor,kt.strokeWidthPanel=new It("Line width",Kt.defaultStrokeWidths,Kt.defaultStrokeWidth),kt.strokeWidthPanel.onWidthChanged=kt.setStrokeWidth,kt.strokeStylePanel=new Ht("Line style",Kt.defaultStrokeDasharrays,Kt.defaultStrokeDasharray),kt.strokeStylePanel.onStyleChanged=kt.setStrokeDasharray,kt.fontFamilyPanel=new we("Font",Kt.defaultFontFamilies,Kt.defaultFontFamily),kt.fontFamilyPanel.onFontChanged=kt.setFont,kt.textColorPanel=new et("Text color",Kt.defaultColorSet,kt.textColor,Se),kt.textColorPanel.onColorChanged=kt.setTextColor,kt}return te(At,Rt),At.prototype.ownsTarget=function(wt){return!(!Rt.prototype.ownsTarget.call(this,wt)&&wt!==this.visual&&wt!==this.frame&&wt!==this.captionBg&&wt!==this.captionElement)},At.prototype.createVisual=function(){this.visual=jt.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=jt.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=jt.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=jt.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()},At.prototype.setCaptionText=function(wt){this.captionText=wt,this.captionElement.textContent=this.captionText,this.sizeCaption()},At.prototype.pointerDown=function(wt,Tt){Rt.prototype.pointerDown.call(this,wt,Tt),this.isMoved=!1,this.pointerDownPoint=wt,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(wt),this._state="creating")},At.prototype.manipulate=function(wt){Rt.prototype.manipulate.call(this,wt),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(wt.x-this.pointerDownPoint.x)>5||Math.abs(wt.y-this.pointerDownPoint.y)>5)},At.prototype.resize=function(wt){Rt.prototype.resize.call(this,wt),this.setSize()},At.prototype.sizeCaption=function(){var wt=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=wt.width+2*this.PADDING,this.captionBoxHeight=wt.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),jt.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')"]]),jt.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')"]])},At.prototype.showTextEditor=function(){var wt=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(Tt){Tt.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(Tt){Tt.key==="Enter"&&wt.finishTextEditing(wt.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(Tt){Tt.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){wt.finishTextEditing(wt.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){wt.finishTextEditing(wt.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},At.prototype.positionTextEditor=function(){this.state==="edit"&&(this.textEditBox===void 0?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"))},At.prototype.finishTextEditing=function(wt){this.setCaptionText(wt.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},At.prototype.setFont=function(wt){this.captionElement&&jt.setAttributes(this.captionElement,[["font-family",wt]]),this.fontFamily=wt,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},At.prototype.setTextColor=function(wt){this.captionElement&&jt.setAttributes(this.captionElement,[["fill",wt]]),this.textColor=wt,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},At.prototype.setSize=function(){Rt.prototype.setSize.call(this),jt.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},At.prototype.pointerUp=function(wt){Rt.prototype.pointerUp.call(this,wt),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},At.prototype.dblClick=function(wt,Tt){Rt.prototype.dblClick.call(this,wt,Tt),this.showTextEditor()},At.prototype.setStrokeColor=function(wt){this.strokeColor=wt,this.frame&&jt.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(wt),this.stateChanged()},At.prototype.setFillColor=function(wt){this.fillColor=wt,this.captionBg&&jt.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(wt),this.stateChanged()},At.prototype.setStrokeWidth=function(wt){this.strokeWidth=wt,this.frame&&jt.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},At.prototype.setStrokeDasharray=function(wt){this.strokeDasharray=wt,this.frame&&jt.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(At.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),At.prototype.getState=function(){var wt=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},Rt.prototype.getState.call(this));return wt.typeName=this.typeName,wt},At.prototype.restoreState=function(wt){var Tt=wt;this.fillColor=Tt.fillColor,this.strokeColor=Tt.strokeColor,this.strokeWidth=Tt.strokeWidth,this.strokeDasharray=Tt.strokeDasharray,this.textColor=Tt.textColor,this.fontFamily=Tt.fontFamily,this.captionText=Tt.captionText,this.fontSize=Tt.fontSize,this.createVisual(),Rt.prototype.restoreState.call(this,wt),this.setSize()},At.prototype.scale=function(wt,Tt){Rt.prototype.scale.call(this,wt,Tt),this.setSize()},At.typeName="CaptionFrameMarker",At.title="Caption frame marker",At.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>',At}(St),Ve=function(){function Rt(At,wt){wt===void 0&&(wt=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=At,this.cancelable=wt}return Object.defineProperty(Rt.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),Rt.prototype.preventDefault=function(){this._defaultPrevented=!0},Rt}(),On=function(Rt){function At(wt,Tt,Kt){var kt=Rt.call(this,wt,!1)||this;return kt.dataUrl=Tt,kt.state=Kt,kt}return te(At,Rt),At}(Ve),Pe=function(Rt){function At(wt,Tt,Kt){Kt===void 0&&(Kt=!1);var kt=Rt.call(this,wt,Kt)||this;return kt.marker=Tt,kt}return te(At,Rt),At}(Ve),Ai=function(){function Rt(){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 Rt.prototype.addEventListener=function(At,wt){this[At].push(wt)},Rt.prototype.removeEventListener=function(At,wt){var Tt=this[At].indexOf(wt);Tt>-1&&this[At].splice(Tt,1)},Rt}(),Xn=function(){function Rt(At){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Vt,this._isOpen=!1,this.undoRedoManager=new qn,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 Ai,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=Rt.instanceCounter++,this.styles=new Mt(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=At,this.targetRoot=document.body,this.width=At.clientWidth,this.height=At.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(Rt.prototype,"ALL_MARKER_TYPES",{get:function(){return[se,Le,Fn,De,ln,ii,an,mn,jn,fn,Ee,Dn,fi]},enumerable:!1,configurable:!0}),Object.defineProperty(Rt.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[se,Le,Fn,De,ii,an,mn]},enumerable:!1,configurable:!0}),Object.defineProperty(Rt.prototype,"BASIC_MARKER_TYPES",{get:function(){return[se,Le,Fn,De,an]},enumerable:!1,configurable:!0}),Object.defineProperty(Rt.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(At){var wt=this;this._availableMarkerTypes.splice(0),At.forEach(function(Tt){if(typeof Tt=="string"){var Kt=wt.ALL_MARKER_TYPES.find(function(kt){return kt.typeName===Tt});Kt!==void 0&&wt._availableMarkerTypes.push(Kt)}else wt._availableMarkerTypes.push(Tt)})},enumerable:!1,configurable:!0}),Object.defineProperty(Rt.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(Rt.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Rt.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Rt.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Rt.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(At){this._zoomLevel=At,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(Rt.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Rt.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),ge.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},Rt.prototype.show=function(){var At=this;this.styles.styleSheetRoot===void 0&&Ce.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Ce.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(wt){return wt(new Ve(At))})},Rt.prototype.render=function(){return re(this,void 0,void 0,function(){var At;return Fe(this,function(wt){switch(wt.label){case 0:return this.setCurrentMarker(),(At=new Ze).naturalSize=this.renderAtNaturalSize,At.imageType=this.renderImageType,At.imageQuality=this.renderImageQuality,At.markersOnly=this.renderMarkersOnly,At.width=this.renderWidth,At.height=this.renderHeight,[4,At.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return wt.sent(),[4,At.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,wt.sent()]}})})},Rt.prototype.close=function(At){var wt=this;if(At===void 0&&(At=!1),this.isOpen){var Tt=!1;At||this.eventListeners.beforeclose.forEach(function(Kt){var kt=new Ve(wt,!0);Kt(kt),kt.defaultPrevented&&(Tt=!0)}),Tt||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(Kt){return Kt(new Ve(wt))}),this.detachEvents(),this._isOpen=!1)}},Rt.prototype.addMarkersToToolbar=function(){for(var At,wt=[],Tt=0;Tt<arguments.length;Tt++)wt[Tt]=arguments[Tt];(At=this._availableMarkerTypes).push.apply(At,wt)},Rt.prototype.addRenderEventListener=function(At){this.addEventListener("render",function(wt){At(wt.dataUrl,wt.state)})},Rt.prototype.removeRenderEventListener=function(At){},Rt.prototype.addCloseEventListener=function(At){this.addEventListener("close",function(){At()})},Rt.prototype.removeCloseEventListener=function(At){},Rt.prototype.setupResizeObserver=function(){var At=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){At.resize(At.target.clientWidth,At.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return At.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},Rt.prototype.onPopupTargetResize=function(){var At=1*this.target.clientWidth/this.target.clientHeight,wt=this.editorCanvas.clientWidth/At>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*At:this.editorCanvas.clientWidth,Tt=wt<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/At;this.resize(wt,Tt)},Rt.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},Rt.prototype.resize=function(At,wt){this._isResizing=!0;var Tt=At/this.imageWidth,Kt=wt/this.imageHeight;this.imageWidth=Math.round(At),this.imageHeight=Math.round(wt),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",this.settings.displayMode!=="popup"?this.coverDiv.style.width=this.imageWidth.toString()+"px":(this.setTopLeft(),this.positionMarkerImage()),this.toolbar!==void 0&&this.toolbar.adjustLayout(),this.positionLogo(),this.scaleMarkers(Tt,Kt),this._isResizing=!1},Rt.prototype.scaleMarkers=function(At,wt){var Tt,Kt=this;this._currentMarker&&this._currentMarker instanceof De?this._currentMarker.scale(At,wt):(Tt=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(kt){kt!==Kt._currentMarker&&kt.scale(At,wt)}),Tt!==void 0&&this.setCurrentMarker(Tt)},Rt.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"},Rt.prototype.setTopLeft=function(){var At=this.editingTarget.getBoundingClientRect(),wt=this.editorCanvas.getBoundingClientRect();this.left=At.left-wt.left,this.top=At.top-wt.top},Rt.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)},Rt.prototype.addDefs=function(){for(var At,wt=[],Tt=0;Tt<arguments.length;Tt++)wt[Tt]=arguments[Tt];this.defs=jt.createDefs(),this.addDefsToImage(),(At=this.defs).append.apply(At,wt)},Rt.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},Rt.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)},Rt.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},Rt.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},Rt.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)},Rt.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},Rt.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)},Rt.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 At=document.createElement("a");At.href="https://markerjs.com/",At.target="_blank",At.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>',At.title="Powered by marker.js",At.style.display="grid",At.style.alignItems="center",At.style.justifyItems="center",At.style.padding="3px",At.style.width="20px",At.style.height="20px",this.logoUI.appendChild(At),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},Rt.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?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")},Rt.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"},Rt.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},Rt.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&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 At=this.settings.uiOffsetTop!==void 0?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=At+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?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=this.uiStyleSettings.zIndex!==void 0?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=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new We(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",this.settings.displayMode==="popup"&&(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",this.settings.displayMode==="popup"&&(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"),this.settings.uiOffsetTop===void 0&&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 Nt(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},Rt.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},Rt.prototype.removeMarker=function(At){this.markerImage.removeChild(At.container),this.markers.indexOf(At)>-1&&this.markers.splice(this.markers.indexOf(At),1),At.dispose()},Rt.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},Rt.prototype.toolbarButtonClicked=function(At,wt){if(At==="marker"&&wt!==void 0)this.createNewMarker(wt);else if(At==="action")switch(wt){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":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},Rt.prototype.deleteSelectedMarker=function(){var At=this;if(this._currentMarker!==void 0){var wt=!1;if(this.eventListeners.markerbeforedelete.forEach(function(Kt){var kt=new Pe(At,At._currentMarker,!0);Kt(kt),kt.defaultPrevented&&(wt=!0)}),!wt){var Tt=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(Kt){return Kt(new Pe(At,Tt))})}}},Rt.prototype.clear=function(){var At=this,wt=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function($t){var un=new Pe(At,void 0,!0);$t(un),un.defaultPrevented&&(wt=!0)}),!wt)){this.setCurrentMarker();for(var Tt=function($t){var un=Kt.markers[$t];Kt.setCurrentMarker(Kt.markers[$t]),Kt._currentMarker.dispose(),Kt.markerImage.removeChild(Kt._currentMarker.container),Kt.markers.splice(Kt.markers.indexOf(Kt._currentMarker),1),Kt.eventListeners.markerdelete.forEach(function(Ie){return Ie(new Pe(At,un))})},Kt=this,kt=this.markers.length-1;kt>=0;kt--)Tt(kt);this.addUndoStep()}},Object.defineProperty(Rt.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),Rt.prototype.showNotesEditor=function(){var At;this._currentMarker!==void 0&&(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=(At=this._currentMarker.notes)!==null&&At!==void 0?At:"",this.overlayContainer.appendChild(this.notesArea))},Rt.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},Rt.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},Rt.prototype.addUndoStep=function(){var At=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var wt=this.getState(),Tt=this.undoRedoManager.getLastUndoStep();if(!Tt||Tt.width===wt.width&&Tt.height===wt.height){var Kt=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(wt),Kt<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(kt){return kt(new Ve(At))})}else this.undoRedoManager.replaceLastUndoStep(wt),this.eventListeners.statechange.forEach(function(kt){return kt(new Ve(At))})}},Rt.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},Rt.prototype.undoStep=function(){var At=this,wt=this.undoRedoManager.undo();wt!==void 0&&(this.restoreState(wt),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Tt){return Tt(new Ve(At))}))},Rt.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},Rt.prototype.redoStep=function(){var At=this,wt=this.undoRedoManager.redo();wt!==void 0&&(this.restoreState(wt),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Tt){return Tt(new Ve(At))}))},Rt.prototype.stepZoom=function(){var At=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=At<this.zoomSteps.length-1?this.zoomSteps[At+1]:this.zoomSteps[0]},Rt.prototype.panTo=function(At){this.contentDiv.scrollBy({left:this.prevPanPoint.x-At.x,top:this.prevPanPoint.y-At.y}),this.prevPanPoint=At},Rt.prototype.startRenderAndClose=function(){return re(this,void 0,void 0,function(){var At,wt,Tt=this;return Fe(this,function(Kt){switch(Kt.label){case 0:return[4,this.render()];case 1:return At=Kt.sent(),wt=this.getState(),this.eventListeners.render.forEach(function(kt){return kt(new On(Tt,At,wt))}),this.close(!0),[2]}})})},Rt.prototype.getState=function(At){At===!0&&this.setCurrentMarker();var wt={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(Tt){return wt.markers.push(Tt.getState())}),wt},Rt.prototype.restoreState=function(At){var wt=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);At.markers.forEach(function(Tt){var Kt=wt._availableMarkerTypes.find(function($t){return $t.typeName===Tt.typeName});if(Kt!==void 0){var kt=wt.addNewMarker(Kt);kt.restoreState(Tt),wt.markers.push(kt)}}),At.width&&At.height&&(At.width!==this.imageWidth||At.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/At.width,this.imageHeight/At.height),this.eventListeners.restorestate.forEach(function(Tt){return Tt(new Ve(wt))})},Rt.prototype.addNewMarker=function(At){var wt=jt.createGroup();return this.markerImage.appendChild(wt),new At(wt,this.overlayContainer,this.settings)},Rt.prototype.createNewMarker=function(At){var wt,Tt=this;(wt=typeof At=="string"?this._availableMarkerTypes.find(function(Kt){return Kt.typeName===At}):At)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(wt),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(wt.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(Kt){return Kt(new Pe(Tt,Tt._currentMarker))}))},Rt.prototype.markerCreated=function(At){var wt=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(At),this.setCurrentMarker(At),At instanceof Le&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(Le):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(Tt){return Tt(new Pe(wt,wt._currentMarker))})},Rt.prototype.colorChanged=function(At){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=At,this.settings.defaultStrokeColor=At)},Rt.prototype.fillColorChanged=function(At){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=At)},Rt.prototype.markerStateChanged=function(At){var wt=this;this.eventListeners.markerchange.forEach(function(Tt){return Tt(new Pe(wt,At))})},Rt.prototype.setCurrentMarker=function(At){var wt=this;this._currentMarker!==At&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(Tt){return Tt(new Pe(wt,wt._currentMarker))})),this._currentMarker=At,this._currentMarker===void 0||this._currentMarker.isSelected||(this._currentMarker.state!=="new"&&this._currentMarker.select(),this.toolbar.setCurrentMarker(this._currentMarker),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this._isResizing||this.eventListeners.markerselect.forEach(function(Tt){return Tt(new Pe(wt,wt._currentMarker))}))},Rt.prototype.onPointerDown=function(At){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||At.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var wt=this.markers.find(function(Tt){return Tt.ownsTarget(At.target)});wt!==void 0?(this.setCurrentMarker(wt),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(At.clientX,At.clientY),At.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:At.clientX,y:At.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(At.clientX,At.clientY))},Rt.prototype.onDblClick=function(At){if(this._isFocused||this.focus(),this.mode==="select"){var wt=this.markers.find(function(Tt){return Tt.ownsTarget(At.target)});wt!==void 0&&wt!==this._currentMarker&&this.setCurrentMarker(wt),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(At.clientX,At.clientY),At.target):this.setCurrentMarker()}},Rt.prototype.onPointerMove=function(At){this.touchPoints!==1&&At.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||At.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(At.clientX,At.clientY)):this.zoomLevel>1&&this.panTo({x:At.clientX,y:At.clientY}))},Rt.prototype.onPointerUp=function(At){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(At.clientX,At.clientY)),this.isDragging=!1,this.addUndoStep()},Rt.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},Rt.prototype.onKeyUp=function(At){this._currentMarker===void 0||this.notesArea!==void 0||At.key!=="Delete"&&At.key!=="Backspace"||this.deleteSelectedMarker()},Rt.prototype.clientToLocalCoordinates=function(At,wt){var Tt=this.markerImage.getBoundingClientRect();return{x:(At-Tt.left)/this.zoomLevel,y:(wt-Tt.top)/this.zoomLevel}},Rt.prototype.onWindowResize=function(){this.positionUI()},Rt.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var At=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=At+"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()},Rt.prototype.addLicenseKey=function(At){ge.addKey(At)},Rt.prototype.addEventListener=function(At,wt){this.eventListeners.addEventListener(At,wt)},Rt.prototype.removeEventListener=function(At,wt){this.eventListeners.removeEventListener(At,wt)},Rt.prototype.renderState=function(At){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(At),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(Rt.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),Rt.prototype.focus=function(){var At=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(wt){return wt(new Ve(At))}))},Rt.prototype.blur=function(){var At=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(wt){return wt(new Ve(At))}))},Rt.instanceCounter=0,Rt}()},63727:function(Jn,pi,Dt){"use strict";Dt.d(pi,{s:function(){return ne},default:function(){return en}});var yt=Dt(72308),te=Dt(77321),re=Dt(80702),Fe=Dt(52487),be=Dt(74416),jt=Dt(45560),ge=Dt(69582),Ze=Dt(6089),Ce=Dt(18929),Mt=Dt(59301),Re=Mt.createContext({}),Yt=Re,We=Dt(62853),Nt=Dt(49618),nt="__rc_cascader_search_mark__",et=function(qe,pn,bn){var Yn=bn.label,ti=Yn===void 0?"":Yn;return pn.some(function(yi){return String(yi[ti]).toLowerCase().includes(qe.toLowerCase())})},dt=function(qe,pn,bn,Yn){return pn.map(function(ti){return ti[Yn.label]}).join(" / ")},lt=function(qe,pn,bn,Yn,ti,yi){var vn=ti.filter,Pi=vn===void 0?et:vn,Ki=ti.render,pr=Ki===void 0?dt:Ki,or=ti.limit,ir=or===void 0?50:or,vr=ti.sort;return Mt.useMemo(function(){var ur=[];if(!qe)return[];function hr(Ji,xr){var Ct=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Ji.forEach(function(yn){if(!(!vr&&ir!==!1&&ir>0&&ur.length>=ir)){var Zn=[].concat((0,re.Z)(xr),[yn]),dr=yn[bn.children],sr=Ct||yn.disabled;if((!dr||dr.length===0||yi)&&Pi(qe,Zn,{label:bn.label})){var Oi;ur.push((0,te.Z)((0,te.Z)({},yn),{},(Oi={disabled:sr},(0,Nt.Z)(Oi,bn.label,pr(qe,Zn,Yn,bn)),(0,Nt.Z)(Oi,nt,Zn),(0,Nt.Z)(Oi,bn.children,void 0),Oi)))}dr&&hr(yn[bn.children],Zn,sr)}})}return hr(pn,[]),vr&&ur.sort(function(Ji,xr){return vr(Ji[nt],xr[nt],qe,bn)}),ir!==!1&&ir>0?ur.slice(0,ir):ur},[qe,pn,bn,Yn,pr,yi,Pi,vr,ir])},gt=lt,mt="__RC_CASCADER_SPLIT__",St="SHOW_PARENT",bt="SHOW_CHILD";function It(ze){return ze.join(mt)}function Ht(ze){return ze.map(It)}function se(ze){return ze.split(mt)}function Vt(ze){var qe=ze||{},pn=qe.label,bn=qe.value,Yn=qe.children,ti=bn||"value";return{label:pn||"label",value:ti,key:ti,children:Yn||"children"}}function Jt(ze,qe){var pn,bn;return(pn=ze.isLeaf)!==null&&pn!==void 0?pn:!((bn=ze[qe.children])!==null&&bn!==void 0&&bn.length)}function Ee(ze){var qe=ze.parentElement;if(qe){var pn=ze.offsetTop-qe.offsetTop;pn-qe.scrollTop<0?qe.scrollTo({top:pn}):pn+ze.offsetHeight-qe.scrollTop>qe.offsetHeight&&qe.scrollTo({top:pn+ze.offsetHeight-qe.offsetHeight})}}function we(ze,qe){return ze.map(function(pn){var bn;return(bn=pn[nt])===null||bn===void 0?void 0:bn.map(function(Yn){return Yn[qe.value]})})}function De(ze){return Array.isArray(ze)&&Array.isArray(ze[0])}function Le(ze){return ze?De(ze)?ze:(ze.length===0?[]:[ze]).map(function(qe){return Array.isArray(qe)?qe:[qe]}):[]}function sn(ze,qe,pn){var bn=new Set(ze),Yn=qe();return ze.filter(function(ti){var yi=Yn[ti],vn=yi?yi.parent:null,Pi=yi?yi.children:null;return yi&&yi.node.disabled?!0:pn===bt?!(Pi&&Pi.some(function(Ki){return Ki.key&&bn.has(Ki.key)})):!(vn&&!vn.node.disabled&&bn.has(vn.key))})}function Fn(ze,qe,pn){for(var bn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,Yn=qe,ti=[],yi=function(){var Ki,pr,or,ir=ze[vn],vr=(Ki=Yn)===null||Ki===void 0?void 0:Ki.findIndex(function(hr){var Ji=hr[pn.value];return bn?String(Ji)===String(ir):Ji===ir}),ur=vr!==-1?(pr=Yn)===null||pr===void 0?void 0:pr[vr]:null;ti.push({value:(or=ur==null?void 0:ur[pn.value])!==null&&or!==void 0?or:ir,index:vr,option:ur}),Yn=ur==null?void 0:ur[pn.children]},vn=0;vn<ze.length;vn+=1)yi();return ti}var fn=function(ze,qe,pn,bn,Yn){return Mt.useMemo(function(){var ti=Yn||function(yi){var vn=bn?yi.slice(-1):yi,Pi=" / ";return vn.every(function(Ki){return["string","number"].includes((0,We.Z)(Ki))})?vn.join(Pi):vn.reduce(function(Ki,pr,or){var ir=Mt.isValidElement(pr)?Mt.cloneElement(pr,{key:or}):pr;return or===0?[ir]:[].concat((0,re.Z)(Ki),[Pi,ir])},[])};return ze.map(function(yi){var vn,Pi=Fn(yi,qe,pn),Ki=ti(Pi.map(function(or){var ir,vr=or.option,ur=or.value;return(ir=vr==null?void 0:vr[pn.label])!==null&&ir!==void 0?ir:ur}),Pi.map(function(or){var ir=or.option;return ir})),pr=It(yi);return{label:Ki,value:pr,key:pr,valueCells:yi,disabled:(vn=Pi[Pi.length-1])===null||vn===void 0||(vn=vn.option)===null||vn===void 0?void 0:vn.disabled}})},[ze,qe,pn,Yn,bn])};function Ge(ze,qe){return Mt.useCallback(function(pn){var bn=[],Yn=[];return pn.forEach(function(ti){var yi=Fn(ti,ze,qe);yi.every(function(vn){return vn.option})?Yn.push(ti):bn.push(ti)}),[Yn,bn]},[ze,qe])}var an=Dt(34061),Se=function(ze,qe){var pn=Mt.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}}),bn=Mt.useCallback(function(){return pn.current.options!==ze&&(pn.current.options=ze,pn.current.info=(0,an.I8)(ze,{fieldNames:qe,initWrapper:function(ti){return(0,te.Z)((0,te.Z)({},ti),{},{pathKeyEntities:{}})},processEntity:function(ti,yi){var vn=ti.nodes.map(function(Pi){return Pi[qe.value]}).join(mt);yi.pathKeyEntities[vn]=ti,ti.key=vn}})),pn.current.info.pathKeyEntities},[qe,ze]);return bn};function Qt(ze,qe){var pn=Mt.useMemo(function(){return qe||[]},[qe]),bn=Se(pn,ze),Yn=Mt.useCallback(function(ti){var yi=bn();return ti.map(function(vn){var Pi=yi[vn].nodes;return Pi.map(function(Ki){return Ki[ze.value]})})},[bn,ze]);return[pn,bn,Yn]}var mn=Dt(48736);function ii(ze){return Mt.useMemo(function(){if(!ze)return[!1,{}];var qe={matchInputWidth:!0,limit:50};return ze&&(0,We.Z)(ze)==="object"&&(qe=(0,te.Z)((0,te.Z)({},qe),ze)),qe.limit<=0&&(qe.limit=!1),[!0,qe]},[ze])}var jn=Dt(34643);function ln(ze,qe,pn,bn,Yn,ti,yi,vn){return function(Pi){if(!ze)qe(Pi);else{var Ki=It(Pi),pr=Ht(pn),or=Ht(bn),ir=pr.includes(Ki),vr=Yn.some(function(sr){return It(sr)===Ki}),ur=pn,hr=Yn;if(vr&&!ir)hr=Yn.filter(function(sr){return It(sr)!==Ki});else{var Ji=ir?pr.filter(function(sr){return sr!==Ki}):[].concat((0,re.Z)(pr),[Ki]),xr=ti(),Ct;if(ir){var yn=(0,jn.S)(Ji,{checked:!1,halfCheckedKeys:or},xr);Ct=yn.checkedKeys}else{var Zn=(0,jn.S)(Ji,!0,xr);Ct=Zn.checkedKeys}var dr=sn(Ct,ti,vn);ur=yi(dr)}qe([].concat((0,re.Z)(hr),(0,re.Z)(ur)))}}}function qn(ze,qe,pn,bn,Yn){return Mt.useMemo(function(){var ti=Yn(qe),yi=(0,Fe.Z)(ti,2),vn=yi[0],Pi=yi[1];if(!ze||!qe.length)return[vn,[],Pi];var Ki=Ht(vn),pr=pn(),or=(0,jn.S)(Ki,!0,pr),ir=or.checkedKeys,vr=or.halfCheckedKeys;return[bn(ir),bn(vr),Pi]},[ze,qe,pn,bn,Yn])}var Dn=Dt(92310),fi=Dt.n(Dn),Ve=Mt.memo(function(ze){var qe=ze.children;return qe},function(ze,qe){return!qe.open}),On=Ve;function Pe(ze){var qe,pn=ze.prefixCls,bn=ze.checked,Yn=ze.halfChecked,ti=ze.disabled,yi=ze.onClick,vn=ze.disableCheckbox,Pi=Mt.useContext(Yt),Ki=Pi.checkable,pr=typeof Ki!="boolean"?Ki:null;return Mt.createElement("span",{className:fi()("".concat(pn),(qe={},(0,Nt.Z)(qe,"".concat(pn,"-checked"),bn),(0,Nt.Z)(qe,"".concat(pn,"-indeterminate"),!bn&&Yn),(0,Nt.Z)(qe,"".concat(pn,"-disabled"),ti||vn),qe)),onClick:yi},pr)}var Ai="__cascader_fix_label__";function Xn(ze){var qe=ze.prefixCls,pn=ze.multiple,bn=ze.options,Yn=ze.activeValue,ti=ze.prevValuePath,yi=ze.onToggleOpen,vn=ze.onSelect,Pi=ze.onActive,Ki=ze.checkedSet,pr=ze.halfCheckedSet,or=ze.loadingKeys,ir=ze.isSelectable,vr=ze.disabled,ur="".concat(qe,"-menu"),hr="".concat(qe,"-menu-item"),Ji=Mt.useContext(Yt),xr=Ji.fieldNames,Ct=Ji.changeOnSelect,yn=Ji.expandTrigger,Zn=Ji.expandIcon,dr=Ji.loadingIcon,sr=Ji.dropdownMenuColumnStyle,Oi=Ji.optionRender,Nn=yn==="hover",Cn=function(ye){return vr||ye},kn=Mt.useMemo(function(){return bn.map(function(ve){var ye,xe=ve.disabled,Kn=ve.disableCheckbox,$n=ve[nt],ui=(ye=ve[Ai])!==null&&ye!==void 0?ye:ve[xr.label],Sn=ve[xr.value],oi=Jt(ve,xr),fe=$n?$n.map(function(Vn){return Vn[xr.value]}):[].concat((0,re.Z)(ti),[Sn]),Te=It(fe),hi=or.includes(Te),ee=Ki.has(Te),nn=pr.has(Te);return{disabled:xe,label:ui,value:Sn,isLeaf:oi,isLoading:hi,checked:ee,halfChecked:nn,option:ve,disableCheckbox:Kn,fullPath:fe,fullPathKey:Te}})},[bn,Ki,xr,pr,or,ti]);return Mt.createElement("ul",{className:ur,role:"menu"},kn.map(function(ve){var ye,xe=ve.disabled,Kn=ve.label,$n=ve.value,ui=ve.isLeaf,Sn=ve.isLoading,oi=ve.checked,fe=ve.halfChecked,Te=ve.option,hi=ve.fullPath,ee=ve.fullPathKey,nn=ve.disableCheckbox,Vn=function(){if(!Cn(xe)){var ai=(0,re.Z)(hi);Nn&&ui&&ai.pop(),Pi(ai)}},_n=function(){ir(Te)&&!Cn(xe)&&vn(hi,ui)},Ke;return typeof Te.title=="string"?Ke=Te.title:typeof Kn=="string"&&(Ke=Kn),Mt.createElement("li",{key:ee,className:fi()(hr,(ye={},(0,Nt.Z)(ye,"".concat(hr,"-expand"),!ui),(0,Nt.Z)(ye,"".concat(hr,"-active"),Yn===$n||Yn===ee),(0,Nt.Z)(ye,"".concat(hr,"-disabled"),Cn(xe)),(0,Nt.Z)(ye,"".concat(hr,"-loading"),Sn),ye)),style:sr,role:"menuitemcheckbox",title:Ke,"aria-checked":oi,"data-path-key":ee,onClick:function(){Vn(),!nn&&(!pn||ui)&&_n()},onDoubleClick:function(){Ct&&yi(!1)},onMouseEnter:function(){Nn&&Vn()},onMouseDown:function(ai){ai.preventDefault()}},pn&&Mt.createElement(Pe,{prefixCls:"".concat(qe,"-checkbox"),checked:oi,halfChecked:fe,disabled:Cn(xe)||nn,disableCheckbox:nn,onClick:function(ai){nn||(ai.stopPropagation(),_n())}}),Mt.createElement("div",{className:"".concat(hr,"-content")},Oi?Oi(Te):Kn),!Sn&&Zn&&!ui&&Mt.createElement("div",{className:"".concat(hr,"-expand-icon")},Zn),Sn&&dr&&Mt.createElement("div",{className:"".concat(hr,"-loading-icon")},dr))}))}var Rt=function(qe,pn){var bn=Mt.useContext(Yt),Yn=bn.values,ti=Yn[0],yi=Mt.useState([]),vn=(0,Fe.Z)(yi,2),Pi=vn[0],Ki=vn[1];return Mt.useEffect(function(){qe||Ki(ti||[])},[pn,ti]),[Pi,Ki]},At=Rt,wt=Dt(10228),Tt=function(ze,qe,pn,bn,Yn,ti,yi){var vn=yi.direction,Pi=yi.searchValue,Ki=yi.toggleOpen,pr=yi.open,or=vn==="rtl",ir=Mt.useMemo(function(){for(var sr=-1,Oi=qe,Nn=[],Cn=[],kn=bn.length,ve=we(qe,pn),ye=function(Sn){var oi=Oi.findIndex(function(fe,Te){return(ve[Te]?It(ve[Te]):fe[pn.value])===bn[Sn]});if(oi===-1)return 1;sr=oi,Nn.push(sr),Cn.push(bn[Sn]),Oi=Oi[sr][pn.children]},xe=0;xe<kn&&Oi&&!ye(xe);xe+=1);for(var Kn=qe,$n=0;$n<Nn.length-1;$n+=1)Kn=Kn[Nn[$n]][pn.children];return[Cn,sr,Kn,ve]},[bn,pn,qe]),vr=(0,Fe.Z)(ir,4),ur=vr[0],hr=vr[1],Ji=vr[2],xr=vr[3],Ct=function(Oi){Yn(Oi)},yn=function(Oi){var Nn=Ji.length,Cn=hr;Cn===-1&&Oi<0&&(Cn=Nn);for(var kn=0;kn<Nn;kn+=1){Cn=(Cn+Oi+Nn)%Nn;var ve=Ji[Cn];if(ve&&!ve.disabled){var ye=ur.slice(0,-1).concat(xr[Cn]?It(xr[Cn]):ve[pn.value]);Ct(ye);return}}},Zn=function(){if(ur.length>1){var Oi=ur.slice(0,-1);Ct(Oi)}else Ki(!1)},dr=function(){var Oi,Nn=((Oi=Ji[hr])===null||Oi===void 0?void 0:Oi[pn.children])||[],Cn=Nn.find(function(ve){return!ve.disabled});if(Cn){var kn=[].concat((0,re.Z)(ur),[Cn[pn.value]]);Ct(kn)}};Mt.useImperativeHandle(ze,function(){return{onKeyDown:function(Oi){var Nn=Oi.which;switch(Nn){case wt.Z.UP:case wt.Z.DOWN:{var Cn=0;Nn===wt.Z.UP?Cn=-1:Nn===wt.Z.DOWN&&(Cn=1),Cn!==0&&yn(Cn);break}case wt.Z.LEFT:{if(Pi)break;or?dr():Zn();break}case wt.Z.RIGHT:{if(Pi)break;or?Zn():dr();break}case wt.Z.BACKSPACE:{Pi||Zn();break}case wt.Z.ENTER:{if(ur.length){var kn=Ji[hr],ve=(kn==null?void 0:kn[nt])||[];ve.length?ti(ve.map(function(ye){return ye[pn.value]}),ve[ve.length-1]):ti(ur,Ji[hr])}break}case wt.Z.ESC:Ki(!1),pr&&Oi.stopPropagation()}},onKeyUp:function(){}}})},Kt=Mt.forwardRef(function(ze,qe){var pn,bn,Yn,ti=ze.prefixCls,yi=ze.multiple,vn=ze.searchValue,Pi=ze.toggleOpen,Ki=ze.notFoundContent,pr=ze.direction,or=ze.open,ir=ze.disabled,vr=Mt.useRef(null),ur=pr==="rtl",hr=Mt.useContext(Yt),Ji=hr.options,xr=hr.values,Ct=hr.halfValues,yn=hr.fieldNames,Zn=hr.changeOnSelect,dr=hr.onSelect,sr=hr.searchOptions,Oi=hr.dropdownPrefixCls,Nn=hr.loadData,Cn=hr.expandTrigger,kn=Oi||ti,ve=Mt.useState([]),ye=(0,Fe.Z)(ve,2),xe=ye[0],Kn=ye[1],$n=function(Zi){if(!(!Nn||vn)){var tr=Fn(Zi,Ji,yn),zi=tr.map(function(Lr){var Hr=Lr.option;return Hr}),wn=zi[zi.length-1];if(wn&&!Jt(wn,yn)){var Rr=It(Zi);Kn(function(Lr){return[].concat((0,re.Z)(Lr),[Rr])}),Nn(zi)}}};Mt.useEffect(function(){xe.length&&xe.forEach(function(Li){var Zi=se(Li),tr=Fn(Zi,Ji,yn,!0).map(function(wn){var Rr=wn.option;return Rr}),zi=tr[tr.length-1];(!zi||zi[yn.children]||Jt(zi,yn))&&Kn(function(wn){return wn.filter(function(Rr){return Rr!==Li})})})},[Ji,xe,yn]);var ui=Mt.useMemo(function(){return new Set(Ht(xr))},[xr]),Sn=Mt.useMemo(function(){return new Set(Ht(Ct))},[Ct]),oi=At(yi,or),fe=(0,Fe.Z)(oi,2),Te=fe[0],hi=fe[1],ee=function(Zi){hi(Zi),$n(Zi)},nn=function(Zi){if(ir)return!1;var tr=Zi.disabled,zi=Jt(Zi,yn);return!tr&&(zi||Zn||yi)},Vn=function(Zi,tr){var zi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;dr(Zi),!yi&&(tr||Zn&&(Cn==="hover"||zi))&&Pi(!1)},_n=Mt.useMemo(function(){return vn?sr:Ji},[vn,sr,Ji]),Ke=Mt.useMemo(function(){for(var Li=[{options:_n}],Zi=_n,tr=we(Zi,yn),zi=function(){var Lr=Te[wn],Hr=Zi.find(function(Mi,Vi){return(tr[Vi]?It(tr[Vi]):Mi[yn.value])===Lr}),dn=Hr==null?void 0:Hr[yn.children];if(!(dn!=null&&dn.length))return 1;Zi=dn,Li.push({options:dn})},wn=0;wn<Te.length&&!zi();wn+=1);return Li},[_n,Te,yn]),Gn=function(Zi,tr){nn(tr)&&Vn(Zi,Jt(tr,yn),!0)};Tt(qe,_n,yn,Te,ee,Gn,{direction:pr,searchValue:vn,toggleOpen:Pi,open:or}),Mt.useEffect(function(){if(!vn)for(var Li=0;Li<Te.length;Li+=1){var Zi,tr=Te.slice(0,Li+1),zi=It(tr),wn=(Zi=vr.current)===null||Zi===void 0?void 0:Zi.querySelector('li[data-path-key="'.concat(zi.replace(/\\{0,2}"/g,'\\"'),'"]'));wn&&Ee(wn)}},[Te,vn]);var ai=!((pn=Ke[0])!==null&&pn!==void 0&&(pn=pn.options)!==null&&pn!==void 0&&pn.length),ni=[(bn={},(0,Nt.Z)(bn,yn.value,"__EMPTY__"),(0,Nt.Z)(bn,Ai,Ki),(0,Nt.Z)(bn,"disabled",!0),bn)],ki=(0,te.Z)((0,te.Z)({},ze),{},{multiple:!ai&&yi,onSelect:Vn,onActive:ee,onToggleOpen:Pi,checkedSet:ui,halfCheckedSet:Sn,loadingKeys:xe,isSelectable:nn}),xi=ai?[{options:ni}]:Ke,gi=xi.map(function(Li,Zi){var tr=Te.slice(0,Zi),zi=Te[Zi];return Mt.createElement(Xn,(0,yt.Z)({key:Zi},ki,{prefixCls:kn,options:Li.options,prevValuePath:tr,activeValue:zi}))});return Mt.createElement(On,{open:or},Mt.createElement("div",{className:fi()("".concat(kn,"-menus"),(Yn={},(0,Nt.Z)(Yn,"".concat(kn,"-menu-empty"),ai),(0,Nt.Z)(Yn,"".concat(kn,"-rtl"),ur),Yn)),ref:vr},gi))}),kt=Kt,$t=Mt.forwardRef(function(ze,qe){var pn=(0,jt.lk)();return Mt.createElement(kt,(0,yt.Z)({},ze,pn,{ref:qe}))}),un=$t,Ie=Dt(70425);function Ue(){}function ne(ze){var qe,pn=ze,bn=pn.prefixCls,Yn=bn===void 0?"rc-cascader":bn,ti=pn.style,yi=pn.className,vn=pn.options,Pi=pn.checkable,Ki=pn.defaultValue,pr=pn.value,or=pn.fieldNames,ir=pn.changeOnSelect,vr=pn.onChange,ur=pn.showCheckedStrategy,hr=pn.loadData,Ji=pn.expandTrigger,xr=pn.expandIcon,Ct=xr===void 0?">":xr,yn=pn.loadingIcon,Zn=pn.direction,dr=pn.notFoundContent,sr=dr===void 0?"Not Found":dr,Oi=pn.disabled,Nn=!!Pi,Cn=(0,Ie.C8)(Ki,{value:pr,postState:Le}),kn=(0,Fe.Z)(Cn,2),ve=kn[0],ye=kn[1],xe=Mt.useMemo(function(){return Vt(or)},[JSON.stringify(or)]),Kn=Qt(xe,vn),$n=(0,Fe.Z)(Kn,3),ui=$n[0],Sn=$n[1],oi=$n[2],fe=Ge(ui,xe),Te=qn(Nn,ve,Sn,oi,fe),hi=(0,Fe.Z)(Te,3),ee=hi[0],nn=hi[1],Vn=hi[2],_n=(0,Ie.zX)(function(xi){if(ye(xi),vr){var gi=Le(xi),Li=gi.map(function(zi){return Fn(zi,ui,xe).map(function(wn){return wn.option})}),Zi=Nn?gi:gi[0],tr=Nn?Li:Li[0];vr(Zi,tr)}}),Ke=ln(Nn,_n,ee,nn,Vn,Sn,oi,ur),Gn=(0,Ie.zX)(function(xi){Ke(xi)}),ai=Mt.useMemo(function(){return{options:ui,fieldNames:xe,values:ee,halfValues:nn,changeOnSelect:ir,onSelect:Gn,checkable:Pi,searchOptions:[],dropdownPrefixCls:void 0,loadData:hr,expandTrigger:Ji,expandIcon:Ct,loadingIcon:yn,dropdownMenuColumnStyle:void 0}},[ui,xe,ee,nn,ir,Gn,Pi,hr,Ji,Ct,yn]),ni="".concat(Yn,"-panel"),ki=!ui.length;return Mt.createElement(Yt.Provider,{value:ai},Mt.createElement("div",{className:fi()(ni,(qe={},(0,Nt.Z)(qe,"".concat(ni,"-rtl"),Zn==="rtl"),(0,Nt.Z)(qe,"".concat(ni,"-empty"),ki),qe),yi),style:ti},ki?sr:Mt.createElement(kt,{prefixCls:Yn,searchValue:"",multiple:Nn,toggleOpen:Ue,open:!0,direction:Zn,disabled:Oi})))}function Oe(ze){var qe=ze.onPopupVisibleChange,pn=ze.popupVisible,bn=ze.popupClassName,Yn=ze.popupPlacement;warning(!qe,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(pn===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(bn===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(Yn===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function Ne(ze,qe){if(ze){var pn=function bn(Yn){for(var ti=0;ti<Yn.length;ti++){var yi=Yn[ti];if(yi[qe==null?void 0:qe.value]===null)return warning(!1,"`value` in Cascader options should not be `null`."),!0;if(Array.isArray(yi[qe==null?void 0:qe.children])&&bn(yi[qe==null?void 0:qe.children]))return!0}};pn(ze)}}var Xe=null,En=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","dropdownStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy","optionRender"],In=Mt.forwardRef(function(ze,qe){var pn=ze.id,bn=ze.prefixCls,Yn=bn===void 0?"rc-cascader":bn,ti=ze.fieldNames,yi=ze.defaultValue,vn=ze.value,Pi=ze.changeOnSelect,Ki=ze.onChange,pr=ze.displayRender,or=ze.checkable,ir=ze.autoClearSearchValue,vr=ir===void 0?!0:ir,ur=ze.searchValue,hr=ze.onSearch,Ji=ze.showSearch,xr=ze.expandTrigger,Ct=ze.options,yn=ze.dropdownPrefixCls,Zn=ze.loadData,dr=ze.popupVisible,sr=ze.open,Oi=ze.popupClassName,Nn=ze.dropdownClassName,Cn=ze.dropdownMenuColumnStyle,kn=ze.dropdownStyle,ve=ze.popupPlacement,ye=ze.placement,xe=ze.onDropdownVisibleChange,Kn=ze.onPopupVisibleChange,$n=ze.expandIcon,ui=$n===void 0?">":$n,Sn=ze.loadingIcon,oi=ze.children,fe=ze.dropdownMatchSelectWidth,Te=fe===void 0?!1:fe,hi=ze.showCheckedStrategy,ee=hi===void 0?St:hi,nn=ze.optionRender,Vn=(0,be.Z)(ze,En),_n=(0,ge.ZP)(pn),Ke=!!or,Gn=(0,Ce.Z)(yi,{value:vn,postState:Le}),ai=(0,Fe.Z)(Gn,2),ni=ai[0],ki=ai[1],xi=Mt.useMemo(function(){return Vt(ti)},[JSON.stringify(ti)]),gi=Qt(xi,Ct),Li=(0,Fe.Z)(gi,3),Zi=Li[0],tr=Li[1],zi=Li[2],wn=(0,Ce.Z)("",{value:ur,postState:function(he){return he||""}}),Rr=(0,Fe.Z)(wn,2),Lr=Rr[0],Hr=Rr[1],dn=function(he,Be){Hr(he),Be.source!=="blur"&&hr&&hr(he)},Mi=ii(Ji),Vi=(0,Fe.Z)(Mi,2),Qi=Vi[0],qi=Vi[1],cr=gt(Lr,Zi,xi,yn||Yn,qi,Pi||Ke),Ar=Ge(Zi,xi),ji=qn(Ke,ni,tr,zi,Ar),er=(0,Fe.Z)(ji,3),Hi=er[0],cn=er[1],lr=er[2],xn=Mt.useMemo(function(){var Gt=Ht(Hi),he=sn(Gt,tr,ee);return[].concat((0,re.Z)(lr),(0,re.Z)(zi(he)))},[Hi,tr,zi,lr,ee]),wi=fn(xn,Zi,xi,Ke,pr),Xi=(0,Ze.Z)(function(Gt){if(ki(Gt),Ki){var he=Le(Gt),Be=he.map(function(ke){return Fn(ke,Zi,xi).map(function(He){return He.option})}),rn=Ke?he:he[0],ie=Ke?Be:Be[0];Ki(rn,ie)}}),Sr=ln(Ke,Xi,Hi,cn,lr,tr,zi,ee),ao=(0,Ze.Z)(function(Gt){(!Ke||vr)&&Hr(""),Sr(Gt)}),co=function(he,Be){if(Be.type==="clear"){Xi([]);return}var rn=Be.values[0],ie=rn.valueCells;ao(ie)},qr=sr!==void 0?sr:dr,io=Nn||Oi,$e=ye||ve,Rn=function(he){xe==null||xe(he),Kn==null||Kn(he)},on=Mt.useMemo(function(){return{options:Zi,fieldNames:xi,values:Hi,halfValues:cn,changeOnSelect:Pi,onSelect:ao,checkable:or,searchOptions:cr,dropdownPrefixCls:yn,loadData:Zn,expandTrigger:xr,expandIcon:ui,loadingIcon:Sn,dropdownMenuColumnStyle:Cn,optionRender:nn}},[Zi,xi,Hi,cn,Pi,ao,or,cr,yn,Zn,xr,ui,Sn,Cn,nn]),Bt=!(Lr?cr:Zi).length,Zt=Lr&&qi.matchInputWidth||Bt?{}:{minWidth:"auto"};return Mt.createElement(Yt.Provider,{value:on},Mt.createElement(jt.Ac,(0,yt.Z)({},Vn,{ref:qe,id:_n,prefixCls:Yn,autoClearSearchValue:vr,dropdownMatchSelectWidth:Te,dropdownStyle:(0,te.Z)((0,te.Z)({},Zt),kn),displayValues:wi,onDisplayValuesChange:co,mode:Ke?"multiple":void 0,searchValue:Lr,onSearch:dn,showSearch:Qi,OptionList:un,emptyOptions:Bt,open:qr,dropdownClassName:io,placement:$e,onDropdownVisibleChange:Rn,getRawInputElement:function(){return oi}})))});In.SHOW_PARENT=St,In.SHOW_CHILD=bt,In.Panel=ne;var An=In,en=An},23425:function(Jn,pi,Dt){"use strict";Dt.d(pi,{Z:function(){return Ht}});var yt=Dt(49618),te=Dt(72308),re=Dt(62853),Fe=Dt(77321),be=Dt(52487),jt=Dt(92310),ge=Dt.n(jt),Ze=Dt(18929),Ce=Dt(10228),Mt=Dt(26112),Re=Dt(48736),Yt=Dt(59301),We=Dt(17119),Nt=[10,20,50,100],nt=function(Vt){var Jt=Vt.pageSizeOptions,Ee=Jt===void 0?Nt:Jt,we=Vt.locale,De=Vt.changeSize,Le=Vt.pageSize,sn=Vt.goButton,Fn=Vt.quickGo,fn=Vt.rootPrefixCls,Ge=Vt.disabled,an=Vt.buildOptionText,Se=Vt.showSizeChanger,Qt=Vt.sizeChangerRender,mn=Yt.useState(""),ii=(0,be.Z)(mn,2),jn=ii[0],ln=ii[1],qn=function(){return!jn||Number.isNaN(jn)?void 0:Number(jn)},Dn=typeof an=="function"?an:function(wt){return"".concat(wt," ").concat(we.items_per_page)},fi=function(Tt){ln(Tt.target.value)},Ve=function(Tt){sn||jn===""||(ln(""),!(Tt.relatedTarget&&(Tt.relatedTarget.className.indexOf("".concat(fn,"-item-link"))>=0||Tt.relatedTarget.className.indexOf("".concat(fn,"-item"))>=0))&&(Fn==null||Fn(qn())))},On=function(Tt){jn!==""&&(Tt.keyCode===Ce.Z.ENTER||Tt.type==="click")&&(ln(""),Fn==null||Fn(qn()))},Pe=function(){return Ee.some(function(Tt){return Tt.toString()===Le.toString()})?Ee:Ee.concat([Le]).sort(function(Tt,Kt){var kt=Number.isNaN(Number(Tt))?0:Number(Tt),$t=Number.isNaN(Number(Kt))?0:Number(Kt);return kt-$t})},Ai="".concat(fn,"-options");if(!Se&&!Fn)return null;var Xn=null,Rt=null,At=null;return Se&&Qt&&(Xn=Qt({disabled:Ge,size:Le,onSizeChange:function(Tt){De==null||De(Number(Tt))},"aria-label":we.page_size,className:"".concat(Ai,"-size-changer"),options:Pe().map(function(wt){return{label:Dn(wt),value:wt}})})),Fn&&(sn&&(At=typeof sn=="boolean"?Yt.createElement("button",{type:"button",onClick:On,onKeyUp:On,disabled:Ge,className:"".concat(Ai,"-quick-jumper-button")},we.jump_to_confirm):Yt.createElement("span",{onClick:On,onKeyUp:On},sn)),Rt=Yt.createElement("div",{className:"".concat(Ai,"-quick-jumper")},we.jump_to,Yt.createElement("input",{disabled:Ge,type:"text",value:jn,onChange:fi,onKeyUp:On,onBlur:Ve,"aria-label":we.page}),we.page,At)),Yt.createElement("li",{className:Ai},Xn,Rt)},et=nt,dt=function(Vt){var Jt=Vt.rootPrefixCls,Ee=Vt.page,we=Vt.active,De=Vt.className,Le=Vt.showTitle,sn=Vt.onClick,Fn=Vt.onKeyPress,fn=Vt.itemRender,Ge="".concat(Jt,"-item"),an=ge()(Ge,"".concat(Ge,"-").concat(Ee),(0,yt.Z)((0,yt.Z)({},"".concat(Ge,"-active"),we),"".concat(Ge,"-disabled"),!Ee),De),Se=function(){sn(Ee)},Qt=function(jn){Fn(jn,sn,Ee)},mn=fn(Ee,"page",Yt.createElement("a",{rel:"nofollow"},Ee));return mn?Yt.createElement("li",{title:Le?String(Ee):null,className:an,onClick:Se,onKeyDown:Qt,tabIndex:0},mn):null},lt=dt,gt=function(Vt,Jt,Ee){return Ee};function mt(){}function St(se){var Vt=Number(se);return typeof Vt=="number"&&!Number.isNaN(Vt)&&isFinite(Vt)&&Math.floor(Vt)===Vt}function bt(se,Vt,Jt){var Ee=typeof se=="undefined"?Vt:se;return Math.floor((Jt-1)/Ee)+1}var It=function(Vt){var Jt=Vt.prefixCls,Ee=Jt===void 0?"rc-pagination":Jt,we=Vt.selectPrefixCls,De=we===void 0?"rc-select":we,Le=Vt.className,sn=Vt.current,Fn=Vt.defaultCurrent,fn=Fn===void 0?1:Fn,Ge=Vt.total,an=Ge===void 0?0:Ge,Se=Vt.pageSize,Qt=Vt.defaultPageSize,mn=Qt===void 0?10:Qt,ii=Vt.onChange,jn=ii===void 0?mt:ii,ln=Vt.hideOnSinglePage,qn=Vt.align,Dn=Vt.showPrevNextJumpers,fi=Dn===void 0?!0:Dn,Ve=Vt.showQuickJumper,On=Vt.showLessItems,Pe=Vt.showTitle,Ai=Pe===void 0?!0:Pe,Xn=Vt.onShowSizeChange,Rt=Xn===void 0?mt:Xn,At=Vt.locale,wt=At===void 0?We.Z:At,Tt=Vt.style,Kt=Vt.totalBoundaryShowSizeChanger,kt=Kt===void 0?50:Kt,$t=Vt.disabled,un=Vt.simple,Ie=Vt.showTotal,Ue=Vt.showSizeChanger,ne=Ue===void 0?an>kt:Ue,Oe=Vt.sizeChangerRender,Ne=Vt.pageSizeOptions,Xe=Vt.itemRender,En=Xe===void 0?gt:Xe,In=Vt.jumpPrevIcon,An=Vt.jumpNextIcon,en=Vt.prevIcon,ze=Vt.nextIcon,qe=Yt.useRef(null),pn=(0,Ze.Z)(10,{value:Se,defaultValue:mn}),bn=(0,be.Z)(pn,2),Yn=bn[0],ti=bn[1],yi=(0,Ze.Z)(1,{value:sn,defaultValue:fn,postState:function(Xi){return Math.max(1,Math.min(Xi,bt(void 0,Yn,an)))}}),vn=(0,be.Z)(yi,2),Pi=vn[0],Ki=vn[1],pr=Yt.useState(Pi),or=(0,be.Z)(pr,2),ir=or[0],vr=or[1];(0,Yt.useEffect)(function(){vr(Pi)},[Pi]);var ur=jn!==mt,hr="current"in Vt,Ji=Math.max(1,Pi-(On?3:5)),xr=Math.min(bt(void 0,Yn,an),Pi+(On?3:5));function Ct(wi,Xi){var Sr=wi||Yt.createElement("button",{type:"button","aria-label":Xi,className:"".concat(Ee,"-item-link")});return typeof wi=="function"&&(Sr=Yt.createElement(wi,(0,Fe.Z)({},Vt))),Sr}function yn(wi){var Xi=wi.target.value,Sr=bt(void 0,Yn,an),ao;return Xi===""?ao=Xi:Number.isNaN(Number(Xi))?ao=ir:Xi>=Sr?ao=Sr:ao=Number(Xi),ao}function Zn(wi){return St(wi)&&wi!==Pi&&St(an)&&an>0}var dr=an>Yn?Ve:!1;function sr(wi){(wi.keyCode===Ce.Z.UP||wi.keyCode===Ce.Z.DOWN)&&wi.preventDefault()}function Oi(wi){var Xi=yn(wi);switch(Xi!==ir&&vr(Xi),wi.keyCode){case Ce.Z.ENTER:kn(Xi);break;case Ce.Z.UP:kn(Xi-1);break;case Ce.Z.DOWN:kn(Xi+1);break;default:break}}function Nn(wi){kn(yn(wi))}function Cn(wi){var Xi=bt(wi,Yn,an),Sr=Pi>Xi&&Xi!==0?Xi:Pi;ti(wi),vr(Sr),Rt==null||Rt(Pi,wi),Ki(Sr),jn==null||jn(Sr,wi)}function kn(wi){if(Zn(wi)&&!$t){var Xi=bt(void 0,Yn,an),Sr=wi;return wi>Xi?Sr=Xi:wi<1&&(Sr=1),Sr!==ir&&vr(Sr),Ki(Sr),jn==null||jn(Sr,Yn),Sr}return Pi}var ve=Pi>1,ye=Pi<bt(void 0,Yn,an);function xe(){ve&&kn(Pi-1)}function Kn(){ye&&kn(Pi+1)}function $n(){kn(Ji)}function ui(){kn(xr)}function Sn(wi,Xi){if(wi.key==="Enter"||wi.charCode===Ce.Z.ENTER||wi.keyCode===Ce.Z.ENTER){for(var Sr=arguments.length,ao=new Array(Sr>2?Sr-2:0),co=2;co<Sr;co++)ao[co-2]=arguments[co];Xi.apply(void 0,ao)}}function oi(wi){Sn(wi,xe)}function fe(wi){Sn(wi,Kn)}function Te(wi){Sn(wi,$n)}function hi(wi){Sn(wi,ui)}function ee(wi){var Xi=En(wi,"prev",Ct(en,"prev page"));return Yt.isValidElement(Xi)?Yt.cloneElement(Xi,{disabled:!ve}):Xi}function nn(wi){var Xi=En(wi,"next",Ct(ze,"next page"));return Yt.isValidElement(Xi)?Yt.cloneElement(Xi,{disabled:!ye}):Xi}function Vn(wi){(wi.type==="click"||wi.keyCode===Ce.Z.ENTER)&&kn(ir)}var _n=null,Ke=(0,Mt.Z)(Vt,{aria:!0,data:!0}),Gn=Ie&&Yt.createElement("li",{className:"".concat(Ee,"-total-text")},Ie(an,[an===0?0:(Pi-1)*Yn+1,Pi*Yn>an?an:Pi*Yn])),ai=null,ni=bt(void 0,Yn,an);if(ln&&an<=Yn)return null;var ki=[],xi={rootPrefixCls:Ee,onClick:kn,onKeyPress:Sn,showTitle:Ai,itemRender:En,page:-1},gi=Pi-1>0?Pi-1:0,Li=Pi+1<ni?Pi+1:ni,Zi=Ve&&Ve.goButton,tr=(0,re.Z)(un)==="object"?un.readOnly:!un,zi=Zi,wn=null;un&&(Zi&&(typeof Zi=="boolean"?zi=Yt.createElement("button",{type:"button",onClick:Vn,onKeyUp:Vn},wt.jump_to_confirm):zi=Yt.createElement("span",{onClick:Vn,onKeyUp:Vn},Zi),zi=Yt.createElement("li",{title:Ai?"".concat(wt.jump_to).concat(Pi,"/").concat(ni):null,className:"".concat(Ee,"-simple-pager")},zi)),wn=Yt.createElement("li",{title:Ai?"".concat(Pi,"/").concat(ni):null,className:"".concat(Ee,"-simple-pager")},tr?ir:Yt.createElement("input",{type:"text","aria-label":wt.jump_to,value:ir,disabled:$t,onKeyDown:sr,onKeyUp:Oi,onChange:Oi,onBlur:Nn,size:3}),Yt.createElement("span",{className:"".concat(Ee,"-slash")},"/"),ni));var Rr=On?1:2;if(ni<=3+Rr*2){ni||ki.push(Yt.createElement(lt,(0,te.Z)({},xi,{key:"noPager",page:1,className:"".concat(Ee,"-item-disabled")})));for(var Lr=1;Lr<=ni;Lr+=1)ki.push(Yt.createElement(lt,(0,te.Z)({},xi,{key:Lr,page:Lr,active:Pi===Lr})))}else{var Hr=On?wt.prev_3:wt.prev_5,dn=On?wt.next_3:wt.next_5,Mi=En(Ji,"jump-prev",Ct(In,"prev page")),Vi=En(xr,"jump-next",Ct(An,"next page"));fi&&(_n=Mi?Yt.createElement("li",{title:Ai?Hr:null,key:"prev",onClick:$n,tabIndex:0,onKeyDown:Te,className:ge()("".concat(Ee,"-jump-prev"),(0,yt.Z)({},"".concat(Ee,"-jump-prev-custom-icon"),!!In))},Mi):null,ai=Vi?Yt.createElement("li",{title:Ai?dn:null,key:"next",onClick:ui,tabIndex:0,onKeyDown:hi,className:ge()("".concat(Ee,"-jump-next"),(0,yt.Z)({},"".concat(Ee,"-jump-next-custom-icon"),!!An))},Vi):null);var Qi=Math.max(1,Pi-Rr),qi=Math.min(Pi+Rr,ni);Pi-1<=Rr&&(qi=1+Rr*2),ni-Pi<=Rr&&(Qi=ni-Rr*2);for(var cr=Qi;cr<=qi;cr+=1)ki.push(Yt.createElement(lt,(0,te.Z)({},xi,{key:cr,page:cr,active:Pi===cr})));if(Pi-1>=Rr*2&&Pi!==3&&(ki[0]=Yt.cloneElement(ki[0],{className:ge()("".concat(Ee,"-item-after-jump-prev"),ki[0].props.className)}),ki.unshift(_n)),ni-Pi>=Rr*2&&Pi!==ni-2){var Ar=ki[ki.length-1];ki[ki.length-1]=Yt.cloneElement(Ar,{className:ge()("".concat(Ee,"-item-before-jump-next"),Ar.props.className)}),ki.push(ai)}Qi!==1&&ki.unshift(Yt.createElement(lt,(0,te.Z)({},xi,{key:1,page:1}))),qi!==ni&&ki.push(Yt.createElement(lt,(0,te.Z)({},xi,{key:ni,page:ni})))}var ji=ee(gi);if(ji){var er=!ve||!ni;ji=Yt.createElement("li",{title:Ai?wt.prev_page:null,onClick:xe,tabIndex:er?null:0,onKeyDown:oi,className:ge()("".concat(Ee,"-prev"),(0,yt.Z)({},"".concat(Ee,"-disabled"),er)),"aria-disabled":er},ji)}var Hi=nn(Li);if(Hi){var cn,lr;un?(cn=!ye,lr=ve?0:null):(cn=!ye||!ni,lr=cn?null:0),Hi=Yt.createElement("li",{title:Ai?wt.next_page:null,onClick:Kn,tabIndex:lr,onKeyDown:fe,className:ge()("".concat(Ee,"-next"),(0,yt.Z)({},"".concat(Ee,"-disabled"),cn)),"aria-disabled":cn},Hi)}var xn=ge()(Ee,Le,(0,yt.Z)((0,yt.Z)((0,yt.Z)((0,yt.Z)((0,yt.Z)({},"".concat(Ee,"-start"),qn==="start"),"".concat(Ee,"-center"),qn==="center"),"".concat(Ee,"-end"),qn==="end"),"".concat(Ee,"-simple"),un),"".concat(Ee,"-disabled"),$t));return Yt.createElement("ul",(0,te.Z)({className:xn,style:Tt,ref:qe},Ke),Gn,ji,un?wn:ki,Hi,Yt.createElement(et,{locale:wt,rootPrefixCls:Ee,disabled:$t,selectPrefixCls:De,changeSize:Cn,pageSize:Yn,pageSizeOptions:Ne,quickGo:dr?kn:null,goButton:zi,showSizeChanger:ne,sizeChangerRender:Oe}))},Ht=It},48365:function(Jn,pi,Dt){"use strict";var yt=Dt(61186),te=Dt.n(yt),re=Dt(90111),Fe=Dt.n(re),be=Dt(58319),jt=Dt.n(be),ge=Dt(23250),Ze=Dt.n(ge),Ce=Dt(74959),Mt=Dt.n(Ce),Re=Dt(10238),Yt=Dt.n(Re),We=Dt(33656),Nt=Dt.n(We);te().extend(Nt()),te().extend(Yt()),te().extend(Fe()),te().extend(jt()),te().extend(Ze()),te().extend(Mt()),te().extend(function(gt,mt){var St=mt.prototype,bt=St.format;St.format=function(Ht){var se=(Ht||"").replace("Wo","wo");return bt.bind(this)(se)}});var nt={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},et=function(mt){var St=nt[mt];return St||mt.split("_")[0]},dt=function(){},lt={getNow:function(){var mt=te()();return typeof mt.tz=="function"?mt.tz():mt},getFixedDate:function(mt){return te()(mt,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(mt){return mt.endOf("month")},getWeekDay:function(mt){var St=mt.locale("en");return St.weekday()+St.localeData().firstDayOfWeek()},getYear:function(mt){return mt.year()},getMonth:function(mt){return mt.month()},getDate:function(mt){return mt.date()},getHour:function(mt){return mt.hour()},getMinute:function(mt){return mt.minute()},getSecond:function(mt){return mt.second()},getMillisecond:function(mt){return mt.millisecond()},addYear:function(mt,St){return mt.add(St,"year")},addMonth:function(mt,St){return mt.add(St,"month")},addDate:function(mt,St){return mt.add(St,"day")},setYear:function(mt,St){return mt.year(St)},setMonth:function(mt,St){return mt.month(St)},setDate:function(mt,St){return mt.date(St)},setHour:function(mt,St){return mt.hour(St)},setMinute:function(mt,St){return mt.minute(St)},setSecond:function(mt,St){return mt.second(St)},setMillisecond:function(mt,St){return mt.millisecond(St)},isAfter:function(mt,St){return mt.isAfter(St)},isValidate:function(mt){return mt.isValid()},locale:{getWeekFirstDay:function(mt){return te()().locale(et(mt)).localeData().firstDayOfWeek()},getWeekFirstDate:function(mt,St){return St.locale(et(mt)).weekday(0)},getWeek:function(mt,St){return St.locale(et(mt)).week()},getShortWeekDays:function(mt){return te()().locale(et(mt)).localeData().weekdaysMin()},getShortMonths:function(mt){return te()().locale(et(mt)).localeData().monthsShort()},format:function(mt,St,bt){return St.locale(et(mt)).format(bt)},parse:function(mt,St,bt){for(var It=et(mt),Ht=0;Ht<bt.length;Ht+=1){var se=bt[Ht],Vt=St;if(se.includes("wo")||se.includes("Wo")){for(var Jt=Vt.split("-")[0],Ee=Vt.split("-")[1],we=te()(Jt,"YYYY").startOf("year").locale(It),De=0;De<=52;De+=1){var Le=we.add(De,"week");if(Le.format("Wo")===Ee)return Le}return dt(),null}var sn=te()(Vt,se,!0).locale(It);if(sn.isValid())return sn}return St&&dt(),null}}};pi.Z=lt},8571:function(Jn,pi,Dt){"use strict";Dt.d(pi,{Sq:function(){return Zt},ZP:function(){return mi}});var yt=Dt(72308),te=Dt(80702),re=Dt(77321),Fe=Dt(52487),be=Dt(70425),jt=Dt(34280),ge=Dt(2738),Ze=Dt(26112),Ce=Dt(48736),Mt=Dt(59301),Re=Dt(49618),Yt=Dt(65352),We=Dt(92310),Nt=Dt.n(We);function nt(Et,qt){return Et!==void 0?Et:qt?"bottomRight":"bottomLeft"}var et=Mt.createContext(null),dt=et,lt={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function gt(Et){var qt=Et.popupElement,zt=Et.popupStyle,ae=Et.popupClassName,de=Et.popupAlign,je=Et.transitionName,Ye=Et.getPopupContainer,tn=Et.children,Ln=Et.range,Bn=Et.placement,Pn=Et.builtinPlacements,ri=Pn===void 0?lt:Pn,Si=Et.direction,ue=Et.visible,Un=Et.onClose,si=Mt.useContext(dt),zn=si.prefixCls,ci="".concat(zn,"-dropdown"),vi=nt(Bn,Si==="rtl");return Mt.createElement(Yt.Z,{showAction:[],hideAction:["click"],popupPlacement:vi,builtinPlacements:ri,prefixCls:ci,popupTransitionName:je,popup:qt,popupAlign:de,popupVisible:ue,popupClassName:Nt()(ae,(0,Re.Z)((0,Re.Z)({},"".concat(ci,"-range"),Ln),"".concat(ci,"-rtl"),Si==="rtl")),popupStyle:zt,stretch:"minWidth",getPopupContainer:Ye,onPopupVisibleChange:function(Fi){Fi||Un()}},tn)}var mt=gt;function St(Et,qt){for(var zt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",ae=String(Et);ae.length<qt;)ae="".concat(zt).concat(ae);return ae}function bt(Et){return Et==null?[]:Array.isArray(Et)?Et:[Et]}function It(Et,qt,zt){var ae=(0,te.Z)(Et);return ae[qt]=zt,ae}function Ht(Et,qt){var zt={},ae=qt||Object.keys(Et);return ae.forEach(function(de){Et[de]!==void 0&&(zt[de]=Et[de])}),zt}function se(Et,qt,zt){if(zt)return zt;switch(Et){case"time":return qt.fieldTimeFormat;case"datetime":return qt.fieldDateTimeFormat;case"month":return qt.fieldMonthFormat;case"year":return qt.fieldYearFormat;case"quarter":return qt.fieldQuarterFormat;case"week":return qt.fieldWeekFormat;default:return qt.fieldDateFormat}}function Vt(Et,qt,zt){var ae=zt!==void 0?zt:qt[qt.length-1],de=qt.find(function(je){return Et[je]});return ae!==de?Et[de]:void 0}function Jt(Et){return Ht(Et,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function Ee(Et,qt,zt,ae){var de=Mt.useMemo(function(){return Et||function(Ye,tn){var Ln=Ye;return qt&&tn.type==="date"?qt(Ln,tn.today):zt&&tn.type==="month"?zt(Ln,tn.locale):tn.originNode}},[Et,zt,qt]),je=Mt.useCallback(function(Ye,tn){return de(Ye,(0,re.Z)((0,re.Z)({},tn),{},{range:ae}))},[de,ae]);return je}function we(Et,qt){var zt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],ae=Mt.useState([!1,!1]),de=(0,Fe.Z)(ae,2),je=de[0],Ye=de[1],tn=function(Pn,ri){Ye(function(Si){return It(Si,ri,Pn)})},Ln=Mt.useMemo(function(){return je.map(function(Bn,Pn){if(Bn)return!0;var ri=Et[Pn];return ri?!!(!zt[Pn]&&!ri||ri&&qt(ri,{activeIndex:Pn})):!1})},[Et,je,qt,zt]);return[Ln,tn]}function De(Et,qt,zt,ae,de){var je="",Ye=[];return Et&&Ye.push(de?"hh":"HH"),qt&&Ye.push("mm"),zt&&Ye.push("ss"),je=Ye.join(":"),ae&&(je+=".SSS"),de&&(je+=" A"),je}function Le(Et,qt,zt,ae,de,je){var Ye=Et.fieldDateTimeFormat,tn=Et.fieldDateFormat,Ln=Et.fieldTimeFormat,Bn=Et.fieldMonthFormat,Pn=Et.fieldYearFormat,ri=Et.fieldWeekFormat,Si=Et.fieldQuarterFormat,ue=Et.yearFormat,Un=Et.cellYearFormat,si=Et.cellQuarterFormat,zn=Et.dayFormat,ci=Et.cellDateFormat,vi=De(qt,zt,ae,de,je);return(0,re.Z)((0,re.Z)({},Et),{},{fieldDateTimeFormat:Ye||"YYYY-MM-DD ".concat(vi),fieldDateFormat:tn||"YYYY-MM-DD",fieldTimeFormat:Ln||vi,fieldMonthFormat:Bn||"YYYY-MM",fieldYearFormat:Pn||"YYYY",fieldWeekFormat:ri||"gggg-wo",fieldQuarterFormat:Si||"YYYY-[Q]Q",yearFormat:ue||"YYYY",cellYearFormat:Un||"YYYY",cellQuarterFormat:si||"[Q]Q",cellDateFormat:ci||zn||"D"})}function sn(Et,qt){var zt=qt.showHour,ae=qt.showMinute,de=qt.showSecond,je=qt.showMillisecond,Ye=qt.use12Hours;return Mt.useMemo(function(){return Le(Et,zt,ae,de,je,Ye)},[Et,zt,ae,de,je,Ye])}var Fn=Dt(62853);function fn(Et,qt,zt){return zt!=null?zt:qt.some(function(ae){return Et.includes(ae)})}var Ge=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function an(Et){var qt=Ht(Et,Ge),zt=Et.format,ae=Et.picker,de=null;return zt&&(de=zt,Array.isArray(de)&&(de=de[0]),de=(0,Fn.Z)(de)==="object"?de.format:de),ae==="time"&&(qt.format=de),[qt,de]}function Se(Et){return Et&&typeof Et=="string"}function Qt(Et,qt,zt,ae){return[Et,qt,zt,ae].some(function(de){return de!==void 0})}function mn(Et,qt,zt,ae,de){var je=qt,Ye=zt,tn=ae;if(!Et&&!je&&!Ye&&!tn&&!de)je=!0,Ye=!0,tn=!0;else if(Et){var Ln,Bn,Pn,ri=[je,Ye,tn].some(function(Un){return Un===!1}),Si=[je,Ye,tn].some(function(Un){return Un===!0}),ue=ri?!0:!Si;je=(Ln=je)!==null&&Ln!==void 0?Ln:ue,Ye=(Bn=Ye)!==null&&Bn!==void 0?Bn:ue,tn=(Pn=tn)!==null&&Pn!==void 0?Pn:ue}return[je,Ye,tn,de]}function ii(Et){var qt=Et.showTime,zt=an(Et),ae=(0,Fe.Z)(zt,2),de=ae[0],je=ae[1],Ye=qt&&(0,Fn.Z)(qt)==="object"?qt:{},tn=(0,re.Z)((0,re.Z)({defaultOpenValue:Ye.defaultOpenValue||Ye.defaultValue},de),Ye),Ln=tn.showMillisecond,Bn=tn.showHour,Pn=tn.showMinute,ri=tn.showSecond,Si=Qt(Bn,Pn,ri,Ln),ue=mn(Si,Bn,Pn,ri,Ln),Un=(0,Fe.Z)(ue,3);return Bn=Un[0],Pn=Un[1],ri=Un[2],[tn,(0,re.Z)((0,re.Z)({},tn),{},{showHour:Bn,showMinute:Pn,showSecond:ri,showMillisecond:Ln}),tn.format,je]}function jn(Et,qt,zt,ae,de){var je=Et==="time";if(Et==="datetime"||je){for(var Ye=ae,tn=se(Et,de,null),Ln=tn,Bn=[qt,zt],Pn=0;Pn<Bn.length;Pn+=1){var ri=bt(Bn[Pn])[0];if(Se(ri)){Ln=ri;break}}var Si=Ye.showHour,ue=Ye.showMinute,Un=Ye.showSecond,si=Ye.showMillisecond,zn=Ye.use12Hours,ci=fn(Ln,["a","A","LT","LLL","LTS"],zn),vi=Qt(Si,ue,Un,si);vi||(Si=fn(Ln,["H","h","k","LT","LLL"]),ue=fn(Ln,["m","LT","LLL"]),Un=fn(Ln,["s","LTS"]),si=fn(Ln,["SSS"]));var Ti=mn(vi,Si,ue,Un,si),Fi=(0,Fe.Z)(Ti,3);Si=Fi[0],ue=Fi[1],Un=Fi[2];var Ii=qt||De(Si,ue,Un,si,ci);return(0,re.Z)((0,re.Z)({},Ye),{},{format:Ii,showHour:Si,showMinute:ue,showSecond:Un,showMillisecond:si,use12Hours:ci})}return null}function ln(Et,qt,zt){if(qt===!1)return null;var ae=qt&&(0,Fn.Z)(qt)==="object"?qt:{};return ae.clearIcon||zt||Mt.createElement("span",{className:"".concat(Et,"-clear-btn")})}var qn=7;function Dn(Et,qt,zt){return!Et&&!qt||Et===qt?!0:!Et||!qt?!1:zt()}function fi(Et,qt,zt){return Dn(qt,zt,function(){var ae=Math.floor(Et.getYear(qt)/10),de=Math.floor(Et.getYear(zt)/10);return ae===de})}function Ve(Et,qt,zt){return Dn(qt,zt,function(){return Et.getYear(qt)===Et.getYear(zt)})}function On(Et,qt){var zt=Math.floor(Et.getMonth(qt)/3);return zt+1}function Pe(Et,qt,zt){return Dn(qt,zt,function(){return Ve(Et,qt,zt)&&On(Et,qt)===On(Et,zt)})}function Ai(Et,qt,zt){return Dn(qt,zt,function(){return Ve(Et,qt,zt)&&Et.getMonth(qt)===Et.getMonth(zt)})}function Xn(Et,qt,zt){return Dn(qt,zt,function(){return Ve(Et,qt,zt)&&Ai(Et,qt,zt)&&Et.getDate(qt)===Et.getDate(zt)})}function Rt(Et,qt,zt){return Dn(qt,zt,function(){return Et.getHour(qt)===Et.getHour(zt)&&Et.getMinute(qt)===Et.getMinute(zt)&&Et.getSecond(qt)===Et.getSecond(zt)})}function At(Et,qt,zt){return Dn(qt,zt,function(){return Xn(Et,qt,zt)&&Rt(Et,qt,zt)&&Et.getMillisecond(qt)===Et.getMillisecond(zt)})}function wt(Et,qt,zt,ae){return Dn(zt,ae,function(){var de=Et.locale.getWeekFirstDate(qt,zt),je=Et.locale.getWeekFirstDate(qt,ae);return Ve(Et,de,je)&&Et.locale.getWeek(qt,zt)===Et.locale.getWeek(qt,ae)})}function Tt(Et,qt,zt,ae,de){switch(de){case"date":return Xn(Et,zt,ae);case"week":return wt(Et,qt.locale,zt,ae);case"month":return Ai(Et,zt,ae);case"quarter":return Pe(Et,zt,ae);case"year":return Ve(Et,zt,ae);case"decade":return fi(Et,zt,ae);case"time":return Rt(Et,zt,ae);default:return At(Et,zt,ae)}}function Kt(Et,qt,zt,ae){return!qt||!zt||!ae?!1:Et.isAfter(ae,qt)&&Et.isAfter(zt,ae)}function kt(Et,qt,zt,ae,de){return Tt(Et,qt,zt,ae,de)?!0:Et.isAfter(zt,ae)}function $t(Et,qt,zt){var ae=qt.locale.getWeekFirstDay(Et),de=qt.setDate(zt,1),je=qt.getWeekDay(de),Ye=qt.addDate(de,ae-je);return qt.getMonth(Ye)===qt.getMonth(zt)&&qt.getDate(Ye)>1&&(Ye=qt.addDate(Ye,-7)),Ye}function un(Et,qt){var zt=qt.generateConfig,ae=qt.locale,de=qt.format;return Et?typeof de=="function"?de(Et):zt.locale.format(ae.locale,Et,de):""}function Ie(Et,qt,zt){var ae=qt,de=["getHour","getMinute","getSecond","getMillisecond"],je=["setHour","setMinute","setSecond","setMillisecond"];return je.forEach(function(Ye,tn){zt?ae=Et[Ye](ae,Et[de[tn]](zt)):ae=Et[Ye](ae,0)}),ae}function Ue(Et,qt,zt,ae,de){var je=(0,be.zX)(function(Ye,tn){return!!(zt&&zt(Ye,tn)||ae&&Et.isAfter(ae,Ye)&&!Tt(Et,qt,ae,Ye,tn.type)||de&&Et.isAfter(Ye,de)&&!Tt(Et,qt,de,Ye,tn.type))});return je}function ne(Et,qt,zt){return Mt.useMemo(function(){var ae=se(Et,qt,zt),de=bt(ae),je=de[0],Ye=(0,Fn.Z)(je)==="object"&&je.type==="mask"?je.format:null;return[de.map(function(tn){return typeof tn=="string"||typeof tn=="function"?tn:tn.format}),Ye]},[Et,qt,zt])}function Oe(Et,qt,zt){return typeof Et[0]=="function"||zt?!0:qt}function Ne(Et,qt,zt,ae){var de=(0,be.zX)(function(je,Ye){var tn=(0,re.Z)({type:qt},Ye);if(delete tn.activeIndex,!Et.isValidate(je)||zt&&zt(je,tn))return!0;if((qt==="date"||qt==="time")&&ae){var Ln,Bn=Ye&&Ye.activeIndex===1?"end":"start",Pn=((Ln=ae.disabledTime)===null||Ln===void 0?void 0:Ln.call(ae,je,Bn,{from:tn.from}))||{},ri=Pn.disabledHours,Si=Pn.disabledMinutes,ue=Pn.disabledSeconds,Un=Pn.disabledMilliseconds,si=ae.disabledHours,zn=ae.disabledMinutes,ci=ae.disabledSeconds,vi=ri||si,Ti=Si||zn,Fi=ue||ci,Ii=Et.getHour(je),Bi=Et.getMinute(je),gr=Et.getSecond(je),Fr=Et.getMillisecond(je);if(vi&&vi().includes(Ii)||Ti&&Ti(Ii).includes(Bi)||Fi&&Fi(Ii,Bi).includes(gr)||Un&&Un(Ii,Bi,gr).includes(Fr))return!0}return!1});return de}function Xe(Et){var qt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,zt=Mt.useMemo(function(){var ae=Et&&bt(Et);return qt&&ae&&(ae[1]=ae[1]||ae[0]),ae},[Et,qt]);return zt}function En(Et,qt){var zt=Et.generateConfig,ae=Et.locale,de=Et.picker,je=de===void 0?"date":de,Ye=Et.prefixCls,tn=Ye===void 0?"rc-picker":Ye,Ln=Et.styles,Bn=Ln===void 0?{}:Ln,Pn=Et.classNames,ri=Pn===void 0?{}:Pn,Si=Et.order,ue=Si===void 0?!0:Si,Un=Et.components,si=Un===void 0?{}:Un,zn=Et.inputRender,ci=Et.allowClear,vi=Et.clearIcon,Ti=Et.needConfirm,Fi=Et.multiple,Ii=Et.format,Bi=Et.inputReadOnly,gr=Et.disabledDate,Fr=Et.minDate,zr=Et.maxDate,Zr=Et.showTime,Di=Et.value,wr=Et.defaultValue,Cr=Et.pickerValue,Ir=Et.defaultPickerValue,Gi=Xe(Di),nr=Xe(wr),Mn=Xe(Cr),_i=Xe(Ir),ar=je==="date"&&Zr?"datetime":je,Dr=ar==="time"||ar==="datetime",Br=Dr||Fi,Pr=Ti!=null?Ti:Dr,Ri=ii(Et),kr=(0,Fe.Z)(Ri,4),Yr=kr[0],Jr=kr[1],jr=kr[2],so=kr[3],_r=sn(ae,Jr),Vr=Mt.useMemo(function(){return jn(ar,jr,so,Yr,_r)},[ar,jr,so,Yr,_r]),fo=Mt.useMemo(function(){return(0,re.Z)((0,re.Z)({},Et),{},{prefixCls:tn,locale:_r,picker:je,styles:Bn,classNames:ri,order:ue,components:(0,re.Z)({input:zn},si),clearIcon:ln(tn,ci,vi),showTime:Vr,value:Gi,defaultValue:nr,pickerValue:Mn,defaultPickerValue:_i},qt==null?void 0:qt())},[Et]),Ao=ne(ar,_r,Ii),Jo=(0,Fe.Z)(Ao,2),ro=Jo[0],na=Jo[1],mo=Oe(ro,Bi,Fi),ra=Ue(zt,ae,gr,Fr,zr),Po=Ne(zt,je,ra,Vr),Vo=Mt.useMemo(function(){return(0,re.Z)((0,re.Z)({},fo),{},{needConfirm:Pr,inputReadOnly:mo,disabledDate:ra})},[fo,Pr,mo,ra]);return[Vo,ar,Br,ro,na,Po]}var In=Dt(16089);function An(Et,qt,zt){var ae=(0,be.C8)(qt,{value:Et}),de=(0,Fe.Z)(ae,2),je=de[0],Ye=de[1],tn=Mt.useRef(Et),Ln=Mt.useRef(),Bn=function(){In.Z.cancel(Ln.current)},Pn=(0,be.zX)(function(){Ye(tn.current),zt&&je!==tn.current&&zt(tn.current)}),ri=(0,be.zX)(function(Si,ue){Bn(),tn.current=Si,Si||ue?Pn():Ln.current=(0,In.Z)(Pn)});return Mt.useEffect(function(){return Bn},[]),[je,ri]}function en(Et,qt){var zt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],ae=arguments.length>3?arguments[3]:void 0,de=zt.every(function(Pn){return Pn})?!1:Et,je=An(de,qt||!1,ae),Ye=(0,Fe.Z)(je,2),tn=Ye[0],Ln=Ye[1];function Bn(Pn){var ri=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!ri.inherit||tn)&&Ln(Pn,ri.force)}return[tn,Bn]}function ze(Et){var qt=Mt.useRef();return Mt.useImperativeHandle(Et,function(){var zt;return{nativeElement:(zt=qt.current)===null||zt===void 0?void 0:zt.nativeElement,focus:function(de){var je;(je=qt.current)===null||je===void 0||je.focus(de)},blur:function(){var de;(de=qt.current)===null||de===void 0||de.blur()}}}),qt}function qe(Et,qt){return Mt.useMemo(function(){return Et||(qt?((0,Ce.ZP)(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(qt).map(function(zt){var ae=(0,Fe.Z)(zt,2),de=ae[0],je=ae[1];return{label:de,value:je}})):[])},[Et,qt])}function pn(Et,qt){var zt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,ae=Mt.useRef(qt);ae.current=qt,(0,jt.o)(function(){if(Et)ae.current(Et);else{var de=(0,In.Z)(function(){ae.current(Et)},zt);return function(){In.Z.cancel(de)}}},[Et])}function bn(Et){var qt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],zt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ae=Mt.useState(0),de=(0,Fe.Z)(ae,2),je=de[0],Ye=de[1],tn=Mt.useState(!1),Ln=(0,Fe.Z)(tn,2),Bn=Ln[0],Pn=Ln[1],ri=Mt.useRef([]),Si=Mt.useRef(null),ue=Mt.useRef(null),Un=function(Fi){Si.current=Fi},si=function(Fi){return Si.current===Fi},zn=function(Fi){Pn(Fi)},ci=function(Fi){return Fi&&(ue.current=Fi),ue.current},vi=function(Fi){var Ii=ri.current,Bi=new Set(Ii.filter(function(Fr){return Fi[Fr]||qt[Fr]})),gr=Ii[Ii.length-1]===0?1:0;return Bi.size>=2||Et[gr]?null:gr};return pn(Bn||zt,function(){Bn||(ri.current=[],Un(null))}),Mt.useEffect(function(){Bn&&ri.current.push(je)},[Bn,je]),[Bn,zn,ci,je,Ye,vi,ri.current,Un,si]}function Yn(Et,qt,zt,ae,de,je){var Ye=zt[zt.length-1],tn=function(Bn,Pn){var ri=(0,Fe.Z)(Et,2),Si=ri[0],ue=ri[1],Un=(0,re.Z)((0,re.Z)({},Pn),{},{from:Vt(Et,zt)});return Ye===1&&qt[0]&&Si&&!Tt(ae,de,Si,Bn,Un.type)&&ae.isAfter(Si,Bn)||Ye===0&&qt[1]&&ue&&!Tt(ae,de,ue,Bn,Un.type)&&ae.isAfter(Bn,ue)?!0:je==null?void 0:je(Bn,Un)};return tn}function ti(Et,qt,zt,ae){switch(qt){case"date":case"week":return Et.addMonth(zt,ae);case"month":case"quarter":return Et.addYear(zt,ae);case"year":return Et.addYear(zt,ae*10);case"decade":return Et.addYear(zt,ae*100);default:return zt}}var yi=[];function vn(Et,qt,zt,ae,de,je,Ye,tn){var Ln=arguments.length>8&&arguments[8]!==void 0?arguments[8]:yi,Bn=arguments.length>9&&arguments[9]!==void 0?arguments[9]:yi,Pn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:yi,ri=arguments.length>11?arguments[11]:void 0,Si=arguments.length>12?arguments[12]:void 0,ue=arguments.length>13?arguments[13]:void 0,Un=Ye==="time",si=je||0,zn=function(Mn){var _i=Et.getNow();return Un&&(_i=Ie(Et,_i)),Ln[Mn]||zt[Mn]||_i},ci=(0,Fe.Z)(Bn,2),vi=ci[0],Ti=ci[1],Fi=(0,be.C8)(function(){return zn(0)},{value:vi}),Ii=(0,Fe.Z)(Fi,2),Bi=Ii[0],gr=Ii[1],Fr=(0,be.C8)(function(){return zn(1)},{value:Ti}),zr=(0,Fe.Z)(Fr,2),Zr=zr[0],Di=zr[1],wr=Mt.useMemo(function(){var nr=[Bi,Zr][si];return Un?nr:Ie(Et,nr,Pn[si])},[Un,Bi,Zr,si,Et,Pn]),Cr=function(Mn){var _i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",ar=[gr,Di][si];ar(Mn);var Dr=[Bi,Zr];Dr[si]=Mn,ri&&(!Tt(Et,qt,Bi,Dr[0],Ye)||!Tt(Et,qt,Zr,Dr[1],Ye))&&ri(Dr,{source:_i,range:si===1?"end":"start",mode:ae})},Ir=function(Mn,_i){if(tn){var ar={date:"month",week:"month",month:"year",quarter:"year"},Dr=ar[Ye];if(Dr&&!Tt(Et,qt,Mn,_i,Dr))return ti(Et,Ye,_i,-1);if(Ye==="year"&&Mn){var Br=Math.floor(Et.getYear(Mn)/10),Pr=Math.floor(Et.getYear(_i)/10);if(Br!==Pr)return ti(Et,Ye,_i,-1)}}return _i},Gi=Mt.useRef(null);return(0,jt.Z)(function(){if(de&&!Ln[si]){var nr=Un?null:Et.getNow();if(Gi.current!==null&&Gi.current!==si?nr=[Bi,Zr][si^1]:zt[si]?nr=si===0?zt[0]:Ir(zt[0],zt[1]):zt[si^1]&&(nr=zt[si^1]),nr){Si&&Et.isAfter(Si,nr)&&(nr=Si);var Mn=tn?ti(Et,Ye,nr,1):nr;ue&&Et.isAfter(Mn,ue)&&(nr=tn?ti(Et,Ye,ue,-1):ue),Cr(nr,"reset")}}},[de,si,zt[si]]),Mt.useEffect(function(){de?Gi.current=si:Gi.current=null},[de,si]),(0,jt.Z)(function(){de&&Ln&&Ln[si]&&Cr(Ln[si],"reset")},[de,si]),[wr,Cr]}function Pi(Et,qt){var zt=Mt.useRef(Et),ae=Mt.useState({}),de=(0,Fe.Z)(ae,2),je=de[1],Ye=function(Bn){return Bn&&qt!==void 0?qt:zt.current},tn=function(Bn){zt.current=Bn,je({})};return[Ye,tn,Ye(!0)]}var Ki=[];function pr(Et,qt,zt){var ae=function(Ye){return Ye.map(function(tn){return un(tn,{generateConfig:Et,locale:qt,format:zt[0]})})},de=function(Ye,tn){for(var Ln=Math.max(Ye.length,tn.length),Bn=-1,Pn=0;Pn<Ln;Pn+=1){var ri=Ye[Pn]||null,Si=tn[Pn]||null;if(ri!==Si&&!At(Et,ri,Si)){Bn=Pn;break}}return[Bn<0,Bn!==0]};return[ae,de]}function or(Et,qt){return(0,te.Z)(Et).sort(function(zt,ae){return qt.isAfter(zt,ae)?1:-1})}function ir(Et){var qt=Pi(Et),zt=(0,Fe.Z)(qt,2),ae=zt[0],de=zt[1],je=(0,be.zX)(function(){de(Et)});return Mt.useEffect(function(){je()},[Et]),[ae,de]}function vr(Et,qt,zt,ae,de,je,Ye,tn,Ln){var Bn=(0,be.C8)(je,{value:Ye}),Pn=(0,Fe.Z)(Bn,2),ri=Pn[0],Si=Pn[1],ue=ri||Ki,Un=ir(ue),si=(0,Fe.Z)(Un,2),zn=si[0],ci=si[1],vi=pr(Et,qt,zt),Ti=(0,Fe.Z)(vi,2),Fi=Ti[0],Ii=Ti[1],Bi=(0,be.zX)(function(Fr){var zr=(0,te.Z)(Fr);if(ae)for(var Zr=0;Zr<2;Zr+=1)zr[Zr]=zr[Zr]||null;else de&&(zr=or(zr.filter(function(nr){return nr}),Et));var Di=Ii(zn(),zr),wr=(0,Fe.Z)(Di,2),Cr=wr[0],Ir=wr[1];if(!Cr&&(ci(zr),tn)){var Gi=Fi(zr);tn(zr,Gi,{range:Ir?"end":"start"})}}),gr=function(){Ln&&Ln(zn())};return[ue,Si,zn,Bi,gr]}function ur(Et,qt,zt,ae,de,je,Ye,tn,Ln,Bn){var Pn=Et.generateConfig,ri=Et.locale,Si=Et.picker,ue=Et.onChange,Un=Et.allowEmpty,si=Et.order,zn=je.some(function(Cr){return Cr})?!1:si,ci=pr(Pn,ri,Ye),vi=(0,Fe.Z)(ci,2),Ti=vi[0],Fi=vi[1],Ii=Pi(qt),Bi=(0,Fe.Z)(Ii,2),gr=Bi[0],Fr=Bi[1],zr=(0,be.zX)(function(){Fr(qt)});Mt.useEffect(function(){zr()},[qt]);var Zr=(0,be.zX)(function(Cr){var Ir=Cr===null,Gi=(0,te.Z)(Cr||gr());if(Ir)for(var nr=Math.max(je.length,Gi.length),Mn=0;Mn<nr;Mn+=1)je[Mn]||(Gi[Mn]=null);zn&&Gi[0]&&Gi[1]&&(Gi=or(Gi,Pn)),de(Gi);var _i=Gi,ar=(0,Fe.Z)(_i,2),Dr=ar[0],Br=ar[1],Pr=!Dr,Ri=!Br,kr=Un?(!Pr||Un[0])&&(!Ri||Un[1]):!0,Yr=!si||Pr||Ri||Tt(Pn,ri,Dr,Br,Si)||Pn.isAfter(Br,Dr),Jr=(je[0]||!Dr||!Bn(Dr,{activeIndex:0}))&&(je[1]||!Br||!Bn(Br,{from:Dr,activeIndex:1})),jr=Ir||kr&&Yr&&Jr;if(jr){zt(Gi);var so=Fi(Gi,qt),_r=(0,Fe.Z)(so,1),Vr=_r[0];ue&&!Vr&&ue(Ir&&Gi.every(function(fo){return!fo})?null:Gi,Ti(Gi))}return jr}),Di=(0,be.zX)(function(Cr,Ir){var Gi=It(gr(),Cr,ae()[Cr]);Fr(Gi),Ir&&Zr()}),wr=!tn&&!Ln;return pn(!wr,function(){wr&&(Zr(),de(qt),zr())},2),[Di,Zr]}function hr(Et,qt,zt,ae,de){return qt!=="date"&&qt!=="time"?!1:zt!==void 0?zt:ae!==void 0?ae:!de&&(Et==="date"||Et==="time")}var Ji=Dt(29301);function xr(Et,qt,zt,ae,de,je){var Ye=Et;function tn(ri,Si,ue){var Un=je[ri](Ye),si=ue.find(function(Ti){return Ti.value===Un});if(!si||si.disabled){var zn=ue.filter(function(Ti){return!Ti.disabled}),ci=(0,te.Z)(zn).reverse(),vi=ci.find(function(Ti){return Ti.value<=Un})||zn[0];vi&&(Un=vi.value,Ye=je[Si](Ye,Un))}return Un}var Ln=tn("getHour","setHour",qt()),Bn=tn("getMinute","setMinute",zt(Ln)),Pn=tn("getSecond","setSecond",ae(Ln,Bn));return tn("getMillisecond","setMillisecond",de(Ln,Bn,Pn)),Ye}function Ct(){return[]}function yn(Et,qt){for(var zt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,ae=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,de=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],je=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,Ye=[],tn=zt>=1?zt|0:1,Ln=Et;Ln<=qt;Ln+=tn){var Bn=de.includes(Ln);(!Bn||!ae)&&Ye.push({label:St(Ln,je),value:Ln,disabled:Bn})}return Ye}function Zn(Et){var qt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},zt=arguments.length>2?arguments[2]:void 0,ae=qt||{},de=ae.use12Hours,je=ae.hourStep,Ye=je===void 0?1:je,tn=ae.minuteStep,Ln=tn===void 0?1:tn,Bn=ae.secondStep,Pn=Bn===void 0?1:Bn,ri=ae.millisecondStep,Si=ri===void 0?100:ri,ue=ae.hideDisabledOptions,Un=ae.disabledTime,si=ae.disabledHours,zn=ae.disabledMinutes,ci=ae.disabledSeconds,vi=Mt.useMemo(function(){return zt||Et.getNow()},[zt,Et]);if(0)var Ti,Fi,Ii;var Bi=Mt.useCallback(function(Br){var Pr=(Un==null?void 0:Un(Br))||{};return[Pr.disabledHours||si||Ct,Pr.disabledMinutes||zn||Ct,Pr.disabledSeconds||ci||Ct,Pr.disabledMilliseconds||Ct]},[Un,si,zn,ci]),gr=Mt.useMemo(function(){return Bi(vi)},[vi,Bi]),Fr=(0,Fe.Z)(gr,4),zr=Fr[0],Zr=Fr[1],Di=Fr[2],wr=Fr[3],Cr=Mt.useCallback(function(Br,Pr,Ri,kr){var Yr=yn(0,23,Ye,ue,Br()),Jr=de?Yr.map(function(Vr){return(0,re.Z)((0,re.Z)({},Vr),{},{label:St(Vr.value%12||12,2)})}):Yr,jr=function(fo){return yn(0,59,Ln,ue,Pr(fo))},so=function(fo,Ao){return yn(0,59,Pn,ue,Ri(fo,Ao))},_r=function(fo,Ao,Jo){return yn(0,999,Si,ue,kr(fo,Ao,Jo),3)};return[Jr,jr,so,_r]},[ue,Ye,de,Si,Ln,Pn]),Ir=Mt.useMemo(function(){return Cr(zr,Zr,Di,wr)},[Cr,zr,Zr,Di,wr]),Gi=(0,Fe.Z)(Ir,4),nr=Gi[0],Mn=Gi[1],_i=Gi[2],ar=Gi[3],Dr=function(Pr,Ri){var kr=function(){return nr},Yr=Mn,Jr=_i,jr=ar;if(Ri){var so=Bi(Ri),_r=(0,Fe.Z)(so,4),Vr=_r[0],fo=_r[1],Ao=_r[2],Jo=_r[3],ro=Cr(Vr,fo,Ao,Jo),na=(0,Fe.Z)(ro,4),mo=na[0],ra=na[1],Po=na[2],Vo=na[3];kr=function(){return mo},Yr=ra,Jr=Po,jr=Vo}var jo=xr(Pr,kr,Yr,Jr,jr,Et);return jo};return[Dr,nr,Mn,_i,ar]}function dr(Et){var qt=Et.mode,zt=Et.internalMode,ae=Et.renderExtraFooter,de=Et.showNow,je=Et.showTime,Ye=Et.onSubmit,tn=Et.onNow,Ln=Et.invalid,Bn=Et.needConfirm,Pn=Et.generateConfig,ri=Et.disabledDate,Si=Mt.useContext(dt),ue=Si.prefixCls,Un=Si.locale,si=Si.button,zn=si===void 0?"button":si,ci=Pn.getNow(),vi=Zn(Pn,je,ci),Ti=(0,Fe.Z)(vi,1),Fi=Ti[0],Ii=ae==null?void 0:ae(qt),Bi=ri(ci,{type:qt}),gr=function(){if(!Bi){var Ir=Fi(ci);tn(Ir)}},Fr="".concat(ue,"-now"),zr="".concat(Fr,"-btn"),Zr=de&&Mt.createElement("li",{className:Fr},Mt.createElement("a",{className:Nt()(zr,Bi&&"".concat(zr,"-disabled")),"aria-disabled":Bi,onClick:gr},zt==="date"?Un.today:Un.now)),Di=Bn&&Mt.createElement("li",{className:"".concat(ue,"-ok")},Mt.createElement(zn,{disabled:Ln,onClick:Ye},Un.ok)),wr=(Zr||Di)&&Mt.createElement("ul",{className:"".concat(ue,"-ranges")},Zr,Di);return!Ii&&!wr?null:Mt.createElement("div",{className:"".concat(ue,"-footer")},Ii&&Mt.createElement("div",{className:"".concat(ue,"-footer-extra")},Ii),wr)}function sr(Et,qt,zt){function ae(de,je){var Ye=de.findIndex(function(Ln){return Tt(Et,qt,Ln,je,zt)});if(Ye===-1)return[].concat((0,te.Z)(de),[je]);var tn=(0,te.Z)(de);return tn.splice(Ye,1),tn}return ae}var Oi=Mt.createContext(null);function Nn(){return Mt.useContext(Oi)}function Cn(Et,qt){var zt=Et.prefixCls,ae=Et.generateConfig,de=Et.locale,je=Et.disabledDate,Ye=Et.minDate,tn=Et.maxDate,Ln=Et.cellRender,Bn=Et.hoverValue,Pn=Et.hoverRangeValue,ri=Et.onHover,Si=Et.values,ue=Et.pickerValue,Un=Et.onSelect,si=Et.prevIcon,zn=Et.nextIcon,ci=Et.superPrevIcon,vi=Et.superNextIcon,Ti=ae.getNow(),Fi={now:Ti,values:Si,pickerValue:ue,prefixCls:zt,disabledDate:je,minDate:Ye,maxDate:tn,cellRender:Ln,hoverValue:Bn,hoverRangeValue:Pn,onHover:ri,locale:de,generateConfig:ae,onSelect:Un,panelType:qt,prevIcon:si,nextIcon:zn,superPrevIcon:ci,superNextIcon:vi};return[Fi,Ti]}var kn=Mt.createContext({});function ve(Et){for(var qt=Et.rowNum,zt=Et.colNum,ae=Et.baseDate,de=Et.getCellDate,je=Et.prefixColumn,Ye=Et.rowClassName,tn=Et.titleFormat,Ln=Et.getCellText,Bn=Et.getCellClassName,Pn=Et.headerCells,ri=Et.cellSelection,Si=ri===void 0?!0:ri,ue=Et.disabledDate,Un=Nn(),si=Un.prefixCls,zn=Un.panelType,ci=Un.now,vi=Un.disabledDate,Ti=Un.cellRender,Fi=Un.onHover,Ii=Un.hoverValue,Bi=Un.hoverRangeValue,gr=Un.generateConfig,Fr=Un.values,zr=Un.locale,Zr=Un.onSelect,Di=ue||vi,wr="".concat(si,"-cell"),Cr=Mt.useContext(kn),Ir=Cr.onCellDblClick,Gi=function(Ri){return Fr.some(function(kr){return kr&&Tt(gr,zr,Ri,kr,zn)})},nr=[],Mn=0;Mn<qt;Mn+=1){for(var _i=[],ar=void 0,Dr=function(){var Ri=Mn*zt+Br,kr=de(ae,Ri),Yr=Di==null?void 0:Di(kr,{type:zn});Br===0&&(ar=kr,je&&_i.push(je(ar)));var Jr=!1,jr=!1,so=!1;if(Si&&Bi){var _r=(0,Fe.Z)(Bi,2),Vr=_r[0],fo=_r[1];Jr=Kt(gr,Vr,fo,kr),jr=Tt(gr,zr,kr,Vr,zn),so=Tt(gr,zr,kr,fo,zn)}var Ao=tn?un(kr,{locale:zr,format:tn,generateConfig:gr}):void 0,Jo=Mt.createElement("div",{className:"".concat(wr,"-inner")},Ln(kr));_i.push(Mt.createElement("td",{key:Br,title:Ao,className:Nt()(wr,(0,re.Z)((0,Re.Z)((0,Re.Z)((0,Re.Z)((0,Re.Z)((0,Re.Z)((0,Re.Z)({},"".concat(wr,"-disabled"),Yr),"".concat(wr,"-hover"),(Ii||[]).some(function(ro){return Tt(gr,zr,kr,ro,zn)})),"".concat(wr,"-in-range"),Jr&&!jr&&!so),"".concat(wr,"-range-start"),jr),"".concat(wr,"-range-end"),so),"".concat(si,"-cell-selected"),!Bi&&zn!=="week"&&Gi(kr)),Bn(kr))),onClick:function(){Yr||Zr(kr)},onDoubleClick:function(){!Yr&&Ir&&Ir()},onMouseEnter:function(){Yr||Fi==null||Fi(kr)},onMouseLeave:function(){Yr||Fi==null||Fi(null)}},Ti?Ti(kr,{prefixCls:si,originNode:Jo,today:ci,type:zn,locale:zr}):Jo))},Br=0;Br<zt;Br+=1)Dr();nr.push(Mt.createElement("tr",{key:Mn,className:Ye==null?void 0:Ye(ar)},_i))}return Mt.createElement("div",{className:"".concat(si,"-body")},Mt.createElement("table",{className:"".concat(si,"-content")},Pn&&Mt.createElement("thead",null,Mt.createElement("tr",null,Pn)),Mt.createElement("tbody",null,nr)))}var ye={visibility:"hidden"};function xe(Et){var qt=Et.offset,zt=Et.superOffset,ae=Et.onChange,de=Et.getStart,je=Et.getEnd,Ye=Et.children,tn=Nn(),Ln=tn.prefixCls,Bn=tn.prevIcon,Pn=Bn===void 0?"\u2039":Bn,ri=tn.nextIcon,Si=ri===void 0?"\u203A":ri,ue=tn.superPrevIcon,Un=ue===void 0?"\xAB":ue,si=tn.superNextIcon,zn=si===void 0?"\xBB":si,ci=tn.minDate,vi=tn.maxDate,Ti=tn.generateConfig,Fi=tn.locale,Ii=tn.pickerValue,Bi=tn.panelType,gr="".concat(Ln,"-header"),Fr=Mt.useContext(kn),zr=Fr.hidePrev,Zr=Fr.hideNext,Di=Fr.hideHeader,wr=Mt.useMemo(function(){if(!ci||!qt||!je)return!1;var Pr=je(qt(-1,Ii));return!kt(Ti,Fi,Pr,ci,Bi)},[ci,qt,Ii,je,Ti,Fi,Bi]),Cr=Mt.useMemo(function(){if(!ci||!zt||!je)return!1;var Pr=je(zt(-1,Ii));return!kt(Ti,Fi,Pr,ci,Bi)},[ci,zt,Ii,je,Ti,Fi,Bi]),Ir=Mt.useMemo(function(){if(!vi||!qt||!de)return!1;var Pr=de(qt(1,Ii));return!kt(Ti,Fi,vi,Pr,Bi)},[vi,qt,Ii,de,Ti,Fi,Bi]),Gi=Mt.useMemo(function(){if(!vi||!zt||!de)return!1;var Pr=de(zt(1,Ii));return!kt(Ti,Fi,vi,Pr,Bi)},[vi,zt,Ii,de,Ti,Fi,Bi]),nr=function(Ri){qt&&ae(qt(Ri,Ii))},Mn=function(Ri){zt&&ae(zt(Ri,Ii))};if(Di)return null;var _i="".concat(gr,"-prev-btn"),ar="".concat(gr,"-next-btn"),Dr="".concat(gr,"-super-prev-btn"),Br="".concat(gr,"-super-next-btn");return Mt.createElement("div",{className:gr},zt&&Mt.createElement("button",{type:"button","aria-label":Fi.previousYear,onClick:function(){return Mn(-1)},tabIndex:-1,className:Nt()(Dr,Cr&&"".concat(Dr,"-disabled")),disabled:Cr,style:zr?ye:{}},Un),qt&&Mt.createElement("button",{type:"button","aria-label":Fi.previousMonth,onClick:function(){return nr(-1)},tabIndex:-1,className:Nt()(_i,wr&&"".concat(_i,"-disabled")),disabled:wr,style:zr?ye:{}},Pn),Mt.createElement("div",{className:"".concat(gr,"-view")},Ye),qt&&Mt.createElement("button",{type:"button","aria-label":Fi.nextMonth,onClick:function(){return nr(1)},tabIndex:-1,className:Nt()(ar,Ir&&"".concat(ar,"-disabled")),disabled:Ir,style:Zr?ye:{}},Si),zt&&Mt.createElement("button",{type:"button","aria-label":Fi.nextYear,onClick:function(){return Mn(1)},tabIndex:-1,className:Nt()(Br,Gi&&"".concat(Br,"-disabled")),disabled:Gi,style:Zr?ye:{}},zn))}var Kn=xe;function $n(Et){var qt=Et.prefixCls,zt=Et.panelName,ae=zt===void 0?"date":zt,de=Et.locale,je=Et.generateConfig,Ye=Et.pickerValue,tn=Et.onPickerValueChange,Ln=Et.onModeChange,Bn=Et.mode,Pn=Bn===void 0?"date":Bn,ri=Et.disabledDate,Si=Et.onSelect,ue=Et.onHover,Un=Et.showWeek,si="".concat(qt,"-").concat(ae,"-panel"),zn="".concat(qt,"-cell"),ci=Pn==="week",vi=Cn(Et,Pn),Ti=(0,Fe.Z)(vi,2),Fi=Ti[0],Ii=Ti[1],Bi=je.locale.getWeekFirstDay(de.locale),gr=je.setDate(Ye,1),Fr=$t(de.locale,je,gr),zr=je.getMonth(Ye),Zr=Un===void 0?ci:Un,Di=Zr?function(Pr){var Ri=ri==null?void 0:ri(Pr,{type:"week"});return Mt.createElement("td",{key:"week",className:Nt()(zn,"".concat(zn,"-week"),(0,Re.Z)({},"".concat(zn,"-disabled"),Ri)),onClick:function(){Ri||Si(Pr)},onMouseEnter:function(){Ri||ue==null||ue(Pr)},onMouseLeave:function(){Ri||ue==null||ue(null)}},Mt.createElement("div",{className:"".concat(zn,"-inner")},je.locale.getWeek(de.locale,Pr)))}:null,wr=[],Cr=de.shortWeekDays||(je.locale.getShortWeekDays?je.locale.getShortWeekDays(de.locale):[]);Di&&wr.push(Mt.createElement("th",{key:"empty"},Mt.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},de.week)));for(var Ir=0;Ir<qn;Ir+=1)wr.push(Mt.createElement("th",{key:Ir},Cr[(Ir+Bi)%qn]));var Gi=function(Ri,kr){return je.addDate(Ri,kr)},nr=function(Ri){return un(Ri,{locale:de,format:de.cellDateFormat,generateConfig:je})},Mn=function(Ri){var kr=(0,Re.Z)((0,Re.Z)({},"".concat(qt,"-cell-in-view"),Ai(je,Ri,Ye)),"".concat(qt,"-cell-today"),Xn(je,Ri,Ii));return kr},_i=de.shortMonths||(je.locale.getShortMonths?je.locale.getShortMonths(de.locale):[]),ar=Mt.createElement("button",{type:"button","aria-label":de.yearSelect,key:"year",onClick:function(){Ln("year",Ye)},tabIndex:-1,className:"".concat(qt,"-year-btn")},un(Ye,{locale:de,format:de.yearFormat,generateConfig:je})),Dr=Mt.createElement("button",{type:"button","aria-label":de.monthSelect,key:"month",onClick:function(){Ln("month",Ye)},tabIndex:-1,className:"".concat(qt,"-month-btn")},de.monthFormat?un(Ye,{locale:de,format:de.monthFormat,generateConfig:je}):_i[zr]),Br=de.monthBeforeYear?[Dr,ar]:[ar,Dr];return Mt.createElement(Oi.Provider,{value:Fi},Mt.createElement("div",{className:Nt()(si,Un&&"".concat(si,"-show-week"))},Mt.createElement(Kn,{offset:function(Ri){return je.addMonth(Ye,Ri)},superOffset:function(Ri){return je.addYear(Ye,Ri)},onChange:tn,getStart:function(Ri){return je.setDate(Ri,1)},getEnd:function(Ri){var kr=je.setDate(Ri,1);return kr=je.addMonth(kr,1),je.addDate(kr,-1)}},Br),Mt.createElement(ve,(0,yt.Z)({titleFormat:de.fieldDateFormat},Et,{colNum:qn,rowNum:6,baseDate:Fr,headerCells:wr,getCellDate:Gi,getCellText:nr,getCellClassName:Mn,prefixColumn:Di,cellSelection:!ci}))))}var ui=Dt(29194),Sn=1/3;function oi(Et,qt){var zt=Mt.useRef(!1),ae=Mt.useRef(null),de=Mt.useRef(null),je=function(){return zt.current},Ye=function(){In.Z.cancel(ae.current),zt.current=!1},tn=Mt.useRef(),Ln=function(){var ri=Et.current;if(de.current=null,tn.current=0,ri){var Si=ri.querySelector('[data-value="'.concat(qt,'"]')),ue=ri.querySelector("li"),Un=function si(){Ye(),zt.current=!0,tn.current+=1;var zn=ri.scrollTop,ci=ue.offsetTop,vi=Si.offsetTop,Ti=vi-ci;if(vi===0&&Si!==ue||!(0,ui.Z)(ri)){tn.current<=5&&(ae.current=(0,In.Z)(si));return}var Fi=zn+(Ti-zn)*Sn,Ii=Math.abs(Ti-Fi);if(de.current!==null&&de.current<Ii){Ye();return}if(de.current=Ii,Ii<=1){ri.scrollTop=Ti,Ye();return}ri.scrollTop=Fi,ae.current=(0,In.Z)(si)};Si&&ue&&Un()}},Bn=(0,be.zX)(Ln);return[Bn,Ye,je]}var fe=300;function Te(Et){return Et.map(function(qt){var zt=qt.value,ae=qt.label,de=qt.disabled;return[zt,ae,de].join(",")}).join(";")}function hi(Et){var qt=Et.units,zt=Et.value,ae=Et.optionalValue,de=Et.type,je=Et.onChange,Ye=Et.onHover,tn=Et.onDblClick,Ln=Et.changeOnScroll,Bn=Nn(),Pn=Bn.prefixCls,ri=Bn.cellRender,Si=Bn.now,ue=Bn.locale,Un="".concat(Pn,"-time-panel"),si="".concat(Pn,"-time-panel-cell"),zn=Mt.useRef(null),ci=Mt.useRef(),vi=function(){clearTimeout(ci.current)},Ti=oi(zn,zt!=null?zt:ae),Fi=(0,Fe.Z)(Ti,3),Ii=Fi[0],Bi=Fi[1],gr=Fi[2];(0,jt.Z)(function(){return Ii(),vi(),function(){Bi(),vi()}},[zt,ae,Te(qt)]);var Fr=function(Di){vi();var wr=Di.target;!gr()&&Ln&&(ci.current=setTimeout(function(){var Cr=zn.current,Ir=Cr.querySelector("li").offsetTop,Gi=Array.from(Cr.querySelectorAll("li")),nr=Gi.map(function(Br){return Br.offsetTop-Ir}),Mn=nr.map(function(Br,Pr){return qt[Pr].disabled?Number.MAX_SAFE_INTEGER:Math.abs(Br-wr.scrollTop)}),_i=Math.min.apply(Math,(0,te.Z)(Mn)),ar=Mn.findIndex(function(Br){return Br===_i}),Dr=qt[ar];Dr&&!Dr.disabled&&je(Dr.value)},fe))},zr="".concat(Un,"-column");return Mt.createElement("ul",{className:zr,ref:zn,"data-type":de,onScroll:Fr},qt.map(function(Zr){var Di=Zr.label,wr=Zr.value,Cr=Zr.disabled,Ir=Mt.createElement("div",{className:"".concat(si,"-inner")},Di);return Mt.createElement("li",{key:wr,className:Nt()(si,(0,Re.Z)((0,Re.Z)({},"".concat(si,"-selected"),zt===wr),"".concat(si,"-disabled"),Cr)),onClick:function(){Cr||je(wr)},onDoubleClick:function(){!Cr&&tn&&tn()},onMouseEnter:function(){Ye(wr)},onMouseLeave:function(){Ye(null)},"data-value":wr},ri?ri(wr,{prefixCls:Pn,originNode:Ir,today:Si,type:"time",subType:de,locale:ue}):Ir)}))}function ee(Et){return Et<12}function nn(Et){var qt=Et.showHour,zt=Et.showMinute,ae=Et.showSecond,de=Et.showMillisecond,je=Et.use12Hours,Ye=Et.changeOnScroll,tn=Nn(),Ln=tn.prefixCls,Bn=tn.values,Pn=tn.generateConfig,ri=tn.locale,Si=tn.onSelect,ue=tn.onHover,Un=ue===void 0?function(){}:ue,si=tn.pickerValue,zn=(Bn==null?void 0:Bn[0])||null,ci=Mt.useContext(kn),vi=ci.onCellDblClick,Ti=Zn(Pn,Et,zn),Fi=(0,Fe.Z)(Ti,5),Ii=Fi[0],Bi=Fi[1],gr=Fi[2],Fr=Fi[3],zr=Fi[4],Zr=function(Ei){var Qo=zn&&Pn[Ei](zn),me=si&&Pn[Ei](si);return[Qo,me]},Di=Zr("getHour"),wr=(0,Fe.Z)(Di,2),Cr=wr[0],Ir=wr[1],Gi=Zr("getMinute"),nr=(0,Fe.Z)(Gi,2),Mn=nr[0],_i=nr[1],ar=Zr("getSecond"),Dr=(0,Fe.Z)(ar,2),Br=Dr[0],Pr=Dr[1],Ri=Zr("getMillisecond"),kr=(0,Fe.Z)(Ri,2),Yr=kr[0],Jr=kr[1],jr=Cr===null?null:ee(Cr)?"am":"pm",so=Mt.useMemo(function(){return je?ee(Cr)?Bi.filter(function(yr){return ee(yr.value)}):Bi.filter(function(yr){return!ee(yr.value)}):Bi},[Cr,Bi,je]),_r=function(Ei,Qo){var me,Wn=Ei.filter(function(pa){return!pa.disabled});return Qo!=null?Qo:Wn==null||(me=Wn[0])===null||me===void 0?void 0:me.value},Vr=_r(Bi,Cr),fo=Mt.useMemo(function(){return gr(Vr)},[gr,Vr]),Ao=_r(fo,Mn),Jo=Mt.useMemo(function(){return Fr(Vr,Ao)},[Fr,Vr,Ao]),ro=_r(Jo,Br),na=Mt.useMemo(function(){return zr(Vr,Ao,ro)},[zr,Vr,Ao,ro]),mo=_r(na,Yr),ra=Mt.useMemo(function(){if(!je)return[];var yr=Pn.getNow(),Ei=Pn.setHour(yr,6),Qo=Pn.setHour(yr,18),me=function(pa,Sa){var sa=ri.cellMeridiemFormat;return sa?un(pa,{generateConfig:Pn,locale:ri,format:sa}):Sa};return[{label:me(Ei,"AM"),value:"am",disabled:Bi.every(function(Wn){return Wn.disabled||!ee(Wn.value)})},{label:me(Qo,"PM"),value:"pm",disabled:Bi.every(function(Wn){return Wn.disabled||ee(Wn.value)})}]},[Bi,je,Pn,ri]),Po=function(Ei){var Qo=Ii(Ei);Si(Qo)},Vo=Mt.useMemo(function(){var yr=zn||si||Pn.getNow(),Ei=function(me){return me!=null};return Ei(Cr)?(yr=Pn.setHour(yr,Cr),yr=Pn.setMinute(yr,Mn),yr=Pn.setSecond(yr,Br),yr=Pn.setMillisecond(yr,Yr)):Ei(Ir)?(yr=Pn.setHour(yr,Ir),yr=Pn.setMinute(yr,_i),yr=Pn.setSecond(yr,Pr),yr=Pn.setMillisecond(yr,Jr)):Ei(Vr)&&(yr=Pn.setHour(yr,Vr),yr=Pn.setMinute(yr,Ao),yr=Pn.setSecond(yr,ro),yr=Pn.setMillisecond(yr,mo)),yr},[zn,si,Cr,Mn,Br,Yr,Vr,Ao,ro,mo,Ir,_i,Pr,Jr,Pn]),jo=function(Ei,Qo){return Ei===null?null:Pn[Qo](Vo,Ei)},Yo=function(Ei){return jo(Ei,"setHour")},Bo=function(Ei){return jo(Ei,"setMinute")},bo=function(Ei){return jo(Ei,"setSecond")},oa=function(Ei){return jo(Ei,"setMillisecond")},ya=function(Ei){return Ei===null?null:Ei==="am"&&!ee(Cr)?Pn.setHour(Vo,Cr-12):Ei==="pm"&&ee(Cr)?Pn.setHour(Vo,Cr+12):Vo},Wo=function(Ei){Po(Yo(Ei))},Ba=function(Ei){Po(Bo(Ei))},Fo=function(Ei){Po(bo(Ei))},yo=function(Ei){Po(oa(Ei))},vo=function(Ei){Po(ya(Ei))},Go=function(Ei){Un(Yo(Ei))},br=function(Ei){Un(Bo(Ei))},Ur=function(Ei){Un(bo(Ei))},fr=function(Ei){Un(oa(Ei))},Mr=function(Ei){Un(ya(Ei))},$r={onDblClick:vi,changeOnScroll:Ye};return Mt.createElement("div",{className:"".concat(Ln,"-content")},qt&&Mt.createElement(hi,(0,yt.Z)({units:so,value:Cr,optionalValue:Ir,type:"hour",onChange:Wo,onHover:Go},$r)),zt&&Mt.createElement(hi,(0,yt.Z)({units:fo,value:Mn,optionalValue:_i,type:"minute",onChange:Ba,onHover:br},$r)),ae&&Mt.createElement(hi,(0,yt.Z)({units:Jo,value:Br,optionalValue:Pr,type:"second",onChange:Fo,onHover:Ur},$r)),de&&Mt.createElement(hi,(0,yt.Z)({units:na,value:Yr,optionalValue:Jr,type:"millisecond",onChange:yo,onHover:fr},$r)),je&&Mt.createElement(hi,(0,yt.Z)({units:ra,value:jr,type:"meridiem",onChange:vo,onHover:Mr},$r)))}function Vn(Et){var qt=Et.prefixCls,zt=Et.value,ae=Et.locale,de=Et.generateConfig,je=Et.showTime,Ye=je||{},tn=Ye.format,Ln="".concat(qt,"-time-panel"),Bn=Cn(Et,"time"),Pn=(0,Fe.Z)(Bn,1),ri=Pn[0];return Mt.createElement(Oi.Provider,{value:ri},Mt.createElement("div",{className:Nt()(Ln)},Mt.createElement(Kn,null,zt?un(zt,{locale:ae,format:tn,generateConfig:de}):"\xA0"),Mt.createElement(nn,je)))}function _n(Et){var qt=Et.prefixCls,zt=Et.generateConfig,ae=Et.showTime,de=Et.onSelect,je=Et.value,Ye=Et.pickerValue,tn=Et.onHover,Ln="".concat(qt,"-datetime-panel"),Bn=Zn(zt,ae),Pn=(0,Fe.Z)(Bn,1),ri=Pn[0],Si=function(zn){return je?Ie(zt,zn,je):Ie(zt,zn,Ye)},ue=function(zn){tn==null||tn(zn&&Si(zn))},Un=function(zn){var ci=Si(zn);de(ri(ci,ci))};return Mt.createElement("div",{className:Ln},Mt.createElement($n,(0,yt.Z)({},Et,{onSelect:Un,onHover:ue})),Mt.createElement(Vn,Et))}function Ke(Et){var qt=Et.prefixCls,zt=Et.locale,ae=Et.generateConfig,de=Et.pickerValue,je=Et.disabledDate,Ye=Et.onPickerValueChange,tn="".concat(qt,"-decade-panel"),Ln=Cn(Et,"decade"),Bn=(0,Fe.Z)(Ln,1),Pn=Bn[0],ri=function(Bi){var gr=Math.floor(ae.getYear(Bi)/100)*100;return ae.setYear(Bi,gr)},Si=function(Bi){var gr=ri(Bi);return ae.addYear(gr,99)},ue=ri(de),Un=Si(de),si=ae.addYear(ue,-10),zn=function(Bi,gr){return ae.addYear(Bi,gr*10)},ci=function(Bi){var gr=zt.cellYearFormat,Fr=un(Bi,{locale:zt,format:gr,generateConfig:ae}),zr=un(ae.addYear(Bi,9),{locale:zt,format:gr,generateConfig:ae});return"".concat(Fr,"-").concat(zr)},vi=function(Bi){return(0,Re.Z)({},"".concat(qt,"-cell-in-view"),fi(ae,Bi,ue)||fi(ae,Bi,Un)||Kt(ae,ue,Un,Bi))},Ti=je?function(Ii,Bi){var gr=ae.setDate(Ii,1),Fr=ae.setMonth(gr,0),zr=ae.setYear(Fr,Math.floor(ae.getYear(Fr)/10)*10),Zr=ae.addYear(zr,10),Di=ae.addDate(Zr,-1);return je(zr,Bi)&&je(Di,Bi)}:null,Fi="".concat(un(ue,{locale:zt,format:zt.yearFormat,generateConfig:ae}),"-").concat(un(Un,{locale:zt,format:zt.yearFormat,generateConfig:ae}));return Mt.createElement(Oi.Provider,{value:Pn},Mt.createElement("div",{className:tn},Mt.createElement(Kn,{superOffset:function(Bi){return ae.addYear(de,Bi*100)},onChange:Ye,getStart:ri,getEnd:Si},Fi),Mt.createElement(ve,(0,yt.Z)({},Et,{disabledDate:Ti,colNum:3,rowNum:4,baseDate:si,getCellDate:zn,getCellText:ci,getCellClassName:vi}))))}function Gn(Et){var qt=Et.prefixCls,zt=Et.locale,ae=Et.generateConfig,de=Et.pickerValue,je=Et.disabledDate,Ye=Et.onPickerValueChange,tn=Et.onModeChange,Ln="".concat(qt,"-month-panel"),Bn=Cn(Et,"month"),Pn=(0,Fe.Z)(Bn,1),ri=Pn[0],Si=ae.setMonth(de,0),ue=zt.shortMonths||(ae.locale.getShortMonths?ae.locale.getShortMonths(zt.locale):[]),Un=function(Fi,Ii){return ae.addMonth(Fi,Ii)},si=function(Fi){var Ii=ae.getMonth(Fi);return zt.monthFormat?un(Fi,{locale:zt,format:zt.monthFormat,generateConfig:ae}):ue[Ii]},zn=function(){return(0,Re.Z)({},"".concat(qt,"-cell-in-view"),!0)},ci=je?function(Ti,Fi){var Ii=ae.setDate(Ti,1),Bi=ae.setMonth(Ii,ae.getMonth(Ii)+1),gr=ae.addDate(Bi,-1);return je(Ii,Fi)&&je(gr,Fi)}:null,vi=Mt.createElement("button",{type:"button",key:"year","aria-label":zt.yearSelect,onClick:function(){tn("year")},tabIndex:-1,className:"".concat(qt,"-year-btn")},un(de,{locale:zt,format:zt.yearFormat,generateConfig:ae}));return Mt.createElement(Oi.Provider,{value:ri},Mt.createElement("div",{className:Ln},Mt.createElement(Kn,{superOffset:function(Fi){return ae.addYear(de,Fi)},onChange:Ye,getStart:function(Fi){return ae.setMonth(Fi,0)},getEnd:function(Fi){return ae.setMonth(Fi,11)}},vi),Mt.createElement(ve,(0,yt.Z)({},Et,{disabledDate:ci,titleFormat:zt.fieldMonthFormat,colNum:3,rowNum:4,baseDate:Si,getCellDate:Un,getCellText:si,getCellClassName:zn}))))}function ai(Et){var qt=Et.prefixCls,zt=Et.locale,ae=Et.generateConfig,de=Et.pickerValue,je=Et.onPickerValueChange,Ye=Et.onModeChange,tn="".concat(qt,"-quarter-panel"),Ln=Cn(Et,"quarter"),Bn=(0,Fe.Z)(Ln,1),Pn=Bn[0],ri=ae.setMonth(de,0),Si=function(ci,vi){return ae.addMonth(ci,vi*3)},ue=function(ci){return un(ci,{locale:zt,format:zt.cellQuarterFormat,generateConfig:ae})},Un=function(){return(0,Re.Z)({},"".concat(qt,"-cell-in-view"),!0)},si=Mt.createElement("button",{type:"button",key:"year","aria-label":zt.yearSelect,onClick:function(){Ye("year")},tabIndex:-1,className:"".concat(qt,"-year-btn")},un(de,{locale:zt,format:zt.yearFormat,generateConfig:ae}));return Mt.createElement(Oi.Provider,{value:Pn},Mt.createElement("div",{className:tn},Mt.createElement(Kn,{superOffset:function(ci){return ae.addYear(de,ci)},onChange:je,getStart:function(ci){return ae.setMonth(ci,0)},getEnd:function(ci){return ae.setMonth(ci,11)}},si),Mt.createElement(ve,(0,yt.Z)({},Et,{titleFormat:zt.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:ri,getCellDate:Si,getCellText:ue,getCellClassName:Un}))))}function ni(Et){var qt=Et.prefixCls,zt=Et.generateConfig,ae=Et.locale,de=Et.value,je=Et.hoverValue,Ye=Et.hoverRangeValue,tn=ae.locale,Ln="".concat(qt,"-week-panel-row"),Bn=function(ri){var Si={};if(Ye){var ue=(0,Fe.Z)(Ye,2),Un=ue[0],si=ue[1],zn=wt(zt,tn,Un,ri),ci=wt(zt,tn,si,ri);Si["".concat(Ln,"-range-start")]=zn,Si["".concat(Ln,"-range-end")]=ci,Si["".concat(Ln,"-range-hover")]=!zn&&!ci&&Kt(zt,Un,si,ri)}return je&&(Si["".concat(Ln,"-hover")]=je.some(function(vi){return wt(zt,tn,ri,vi)})),Nt()(Ln,(0,Re.Z)({},"".concat(Ln,"-selected"),!Ye&&wt(zt,tn,de,ri)),Si)};return Mt.createElement($n,(0,yt.Z)({},Et,{mode:"week",panelName:"week",rowClassName:Bn}))}function ki(Et){var qt=Et.prefixCls,zt=Et.locale,ae=Et.generateConfig,de=Et.pickerValue,je=Et.disabledDate,Ye=Et.onPickerValueChange,tn=Et.onModeChange,Ln="".concat(qt,"-year-panel"),Bn=Cn(Et,"year"),Pn=(0,Fe.Z)(Bn,1),ri=Pn[0],Si=function(gr){var Fr=Math.floor(ae.getYear(gr)/10)*10;return ae.setYear(gr,Fr)},ue=function(gr){var Fr=Si(gr);return ae.addYear(Fr,9)},Un=Si(de),si=ue(de),zn=ae.addYear(Un,-1),ci=function(gr,Fr){return ae.addYear(gr,Fr)},vi=function(gr){return un(gr,{locale:zt,format:zt.cellYearFormat,generateConfig:ae})},Ti=function(gr){return(0,Re.Z)({},"".concat(qt,"-cell-in-view"),Ve(ae,gr,Un)||Ve(ae,gr,si)||Kt(ae,Un,si,gr))},Fi=je?function(Bi,gr){var Fr=ae.setMonth(Bi,0),zr=ae.setDate(Fr,1),Zr=ae.addYear(zr,1),Di=ae.addDate(Zr,-1);return je(zr,gr)&&je(Di,gr)}:null,Ii=Mt.createElement("button",{type:"button",key:"decade","aria-label":zt.decadeSelect,onClick:function(){tn("decade")},tabIndex:-1,className:"".concat(qt,"-decade-btn")},un(Un,{locale:zt,format:zt.yearFormat,generateConfig:ae}),"-",un(si,{locale:zt,format:zt.yearFormat,generateConfig:ae}));return Mt.createElement(Oi.Provider,{value:ri},Mt.createElement("div",{className:Ln},Mt.createElement(Kn,{superOffset:function(gr){return ae.addYear(de,gr*10)},onChange:Ye,getStart:Si,getEnd:ue},Ii),Mt.createElement(ve,(0,yt.Z)({},Et,{disabledDate:Fi,titleFormat:zt.fieldYearFormat,colNum:3,rowNum:4,baseDate:zn,getCellDate:ci,getCellText:vi,getCellClassName:Ti}))))}var xi={date:$n,datetime:_n,week:ni,month:Gn,quarter:ai,year:ki,decade:Ke,time:Vn};function gi(Et,qt){var zt,ae=Et.locale,de=Et.generateConfig,je=Et.direction,Ye=Et.prefixCls,tn=Et.tabIndex,Ln=tn===void 0?0:tn,Bn=Et.multiple,Pn=Et.defaultValue,ri=Et.value,Si=Et.onChange,ue=Et.onSelect,Un=Et.defaultPickerValue,si=Et.pickerValue,zn=Et.onPickerValueChange,ci=Et.mode,vi=Et.onPanelChange,Ti=Et.picker,Fi=Ti===void 0?"date":Ti,Ii=Et.showTime,Bi=Et.hoverValue,gr=Et.hoverRangeValue,Fr=Et.cellRender,zr=Et.dateRender,Zr=Et.monthCellRender,Di=Et.components,wr=Di===void 0?{}:Di,Cr=Et.hideHeader,Ir=((zt=Mt.useContext(dt))===null||zt===void 0?void 0:zt.prefixCls)||Ye||"rc-picker",Gi=Mt.useRef();Mt.useImperativeHandle(qt,function(){return{nativeElement:Gi.current}});var nr=ii(Et),Mn=(0,Fe.Z)(nr,4),_i=Mn[0],ar=Mn[1],Dr=Mn[2],Br=Mn[3],Pr=sn(ae,ar),Ri=Fi==="date"&&Ii?"datetime":Fi,kr=Mt.useMemo(function(){return jn(Ri,Dr,Br,_i,Pr)},[Ri,Dr,Br,_i,Pr]),Yr=de.getNow(),Jr=(0,be.C8)(Fi,{value:ci,postState:function(Mr){return Mr||"date"}}),jr=(0,Fe.Z)(Jr,2),so=jr[0],_r=jr[1],Vr=so==="date"&&kr?"datetime":so,fo=sr(de,ae,Ri),Ao=(0,be.C8)(Pn,{value:ri}),Jo=(0,Fe.Z)(Ao,2),ro=Jo[0],na=Jo[1],mo=Mt.useMemo(function(){var fr=bt(ro).filter(function(Mr){return Mr});return Bn?fr:fr.slice(0,1)},[ro,Bn]),ra=(0,be.zX)(function(fr){na(fr),Si&&(fr===null||mo.length!==fr.length||mo.some(function(Mr,$r){return!Tt(de,ae,Mr,fr[$r],Ri)}))&&(Si==null||Si(Bn?fr:fr[0]))}),Po=(0,be.zX)(function(fr){if(ue==null||ue(fr),so===Fi){var Mr=Bn?fo(mo,fr):[fr];ra(Mr)}}),Vo=(0,be.C8)(Un||mo[0]||Yr,{value:si}),jo=(0,Fe.Z)(Vo,2),Yo=jo[0],Bo=jo[1];Mt.useEffect(function(){mo[0]&&!si&&Bo(mo[0])},[mo[0]]);var bo=function(Mr,$r){vi==null||vi(Mr||si,$r||so)},oa=function(Mr){var $r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Bo(Mr),zn==null||zn(Mr),$r&&bo(Mr)},ya=function(Mr,$r){_r(Mr),$r&&oa($r),bo($r,Mr)},Wo=function(Mr){if(Po(Mr),oa(Mr),so!==Fi){var $r=["decade","year"],yr=[].concat($r,["month"]),Ei={quarter:[].concat($r,["quarter"]),week:[].concat((0,te.Z)(yr),["week"]),date:[].concat((0,te.Z)(yr),["date"])},Qo=Ei[Fi]||yr,me=Qo.indexOf(so),Wn=Qo[me+1];Wn&&ya(Wn,Mr)}},Ba=Mt.useMemo(function(){var fr,Mr;if(Array.isArray(gr)){var $r=(0,Fe.Z)(gr,2);fr=$r[0],Mr=$r[1]}else fr=gr;return!fr&&!Mr?null:(fr=fr||Mr,Mr=Mr||fr,de.isAfter(fr,Mr)?[Mr,fr]:[fr,Mr])},[gr,de]),Fo=Ee(Fr,zr,Zr),yo=wr[Vr]||xi[Vr]||$n,vo=Mt.useContext(kn),Go=Mt.useMemo(function(){return(0,re.Z)((0,re.Z)({},vo),{},{hideHeader:Cr})},[vo,Cr]),br="".concat(Ir,"-panel"),Ur=Ht(Et,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return Mt.createElement(kn.Provider,{value:Go},Mt.createElement("div",{ref:Gi,tabIndex:Ln,className:Nt()(br,(0,Re.Z)({},"".concat(br,"-rtl"),je==="rtl"))},Mt.createElement(yo,(0,yt.Z)({},Ur,{showTime:kr,prefixCls:Ir,locale:Pr,generateConfig:de,onModeChange:ya,pickerValue:Yo,onPickerValueChange:function(Mr){oa(Mr,!0)},value:mo[0],onSelect:Wo,values:mo,cellRender:Fo,hoverRangeValue:Ba,hoverValue:Bi}))))}var Li=Mt.memo(Mt.forwardRef(gi)),Zi=Li;function tr(Et){var qt=Et.picker,zt=Et.multiplePanel,ae=Et.pickerValue,de=Et.onPickerValueChange,je=Et.needConfirm,Ye=Et.onSubmit,tn=Et.range,Ln=Et.hoverValue,Bn=Mt.useContext(dt),Pn=Bn.prefixCls,ri=Bn.generateConfig,Si=Mt.useCallback(function(vi,Ti){return ti(ri,qt,vi,Ti)},[ri,qt]),ue=Mt.useMemo(function(){return Si(ae,1)},[ae,Si]),Un=function(Ti){de(Si(Ti,-1))},si={onCellDblClick:function(){je&&Ye()}},zn=qt==="time",ci=(0,re.Z)((0,re.Z)({},Et),{},{hoverValue:null,hoverRangeValue:null,hideHeader:zn});return tn?ci.hoverRangeValue=Ln:ci.hoverValue=Ln,zt?Mt.createElement("div",{className:"".concat(Pn,"-panels")},Mt.createElement(kn.Provider,{value:(0,re.Z)((0,re.Z)({},si),{},{hideNext:!0})},Mt.createElement(Zi,ci)),Mt.createElement(kn.Provider,{value:(0,re.Z)((0,re.Z)({},si),{},{hidePrev:!0})},Mt.createElement(Zi,(0,yt.Z)({},ci,{pickerValue:ue,onPickerValueChange:Un})))):Mt.createElement(kn.Provider,{value:(0,re.Z)({},si)},Mt.createElement(Zi,ci))}function zi(Et){return typeof Et=="function"?Et():Et}function wn(Et){var qt=Et.prefixCls,zt=Et.presets,ae=Et.onClick,de=Et.onHover;return zt.length?Mt.createElement("div",{className:"".concat(qt,"-presets")},Mt.createElement("ul",null,zt.map(function(je,Ye){var tn=je.label,Ln=je.value;return Mt.createElement("li",{key:Ye,onClick:function(){ae(zi(Ln))},onMouseEnter:function(){de(zi(Ln))},onMouseLeave:function(){de(null)}},tn)}))):null}function Rr(Et){var qt=Et.panelRender,zt=Et.internalMode,ae=Et.picker,de=Et.showNow,je=Et.range,Ye=Et.multiple,tn=Et.activeInfo,Ln=tn===void 0?[0,0,0]:tn,Bn=Et.presets,Pn=Et.onPresetHover,ri=Et.onPresetSubmit,Si=Et.onFocus,ue=Et.onBlur,Un=Et.onPanelMouseDown,si=Et.direction,zn=Et.value,ci=Et.onSelect,vi=Et.isInvalid,Ti=Et.defaultOpenValue,Fi=Et.onOk,Ii=Et.onSubmit,Bi=Mt.useContext(dt),gr=Bi.prefixCls,Fr="".concat(gr,"-panel"),zr=si==="rtl",Zr=Mt.useRef(null),Di=Mt.useRef(null),wr=Mt.useState(0),Cr=(0,Fe.Z)(wr,2),Ir=Cr[0],Gi=Cr[1],nr=Mt.useState(0),Mn=(0,Fe.Z)(nr,2),_i=Mn[0],ar=Mn[1],Dr=Mt.useState(0),Br=(0,Fe.Z)(Dr,2),Pr=Br[0],Ri=Br[1],kr=function(Wo){Wo.width&&Gi(Wo.width)},Yr=(0,Fe.Z)(Ln,3),Jr=Yr[0],jr=Yr[1],so=Yr[2],_r=Mt.useState(0),Vr=(0,Fe.Z)(_r,2),fo=Vr[0],Ao=Vr[1];Mt.useEffect(function(){Ao(10)},[Jr]),Mt.useEffect(function(){if(je&&Di.current){var ya,Wo=((ya=Zr.current)===null||ya===void 0?void 0:ya.offsetWidth)||0,Ba=Di.current.getBoundingClientRect();if(!Ba.height||Ba.right<0){Ao(function(Go){return Math.max(0,Go-1)});return}var Fo=(zr?jr-Wo:Jr)-Ba.left;if(Ri(Fo),Ir&&Ir<so){var yo=zr?Ba.right-(jr-Wo+Ir):Jr+Wo-Ba.left-Ir,vo=Math.max(0,yo);ar(vo)}else ar(0)}},[fo,zr,Ir,Jr,jr,so,je]);function Jo(ya){return ya.filter(function(Wo){return Wo})}var ro=Mt.useMemo(function(){return Jo(bt(zn))},[zn]),na=ae==="time"&&!ro.length,mo=Mt.useMemo(function(){return na?Jo([Ti]):ro},[na,ro,Ti]),ra=na?Ti:ro,Po=Mt.useMemo(function(){return mo.length?mo.some(function(ya){return vi(ya)}):!0},[mo,vi]),Vo=function(){na&&ci(Ti),Fi(),Ii()},jo=Mt.createElement("div",{className:"".concat(gr,"-panel-layout")},Mt.createElement(wn,{prefixCls:gr,presets:Bn,onClick:ri,onHover:Pn}),Mt.createElement("div",null,Mt.createElement(tr,(0,yt.Z)({},Et,{value:ra})),Mt.createElement(dr,(0,yt.Z)({},Et,{showNow:Ye?!1:de,invalid:Po,onSubmit:Vo}))));qt&&(jo=qt(jo));var Yo="".concat(Fr,"-container"),Bo="marginLeft",bo="marginRight",oa=Mt.createElement("div",{onMouseDown:Un,tabIndex:-1,className:Nt()(Yo,"".concat(gr,"-").concat(zt,"-panel-container")),style:(0,Re.Z)((0,Re.Z)({},zr?bo:Bo,_i),zr?Bo:bo,"auto"),onFocus:Si,onBlur:ue},jo);return je&&(oa=Mt.createElement("div",{onMouseDown:Un,ref:Di,className:Nt()("".concat(gr,"-range-wrapper"),"".concat(gr,"-").concat(ae,"-range-wrapper"))},Mt.createElement("div",{ref:Zr,className:"".concat(gr,"-range-arrow"),style:{left:Pr}}),Mt.createElement(Ji.Z,{onResize:kr},oa))),oa}var Lr=Dt(74416);function Hr(Et,qt){var zt=Et.format,ae=Et.maskFormat,de=Et.generateConfig,je=Et.locale,Ye=Et.preserveInvalidOnBlur,tn=Et.inputReadOnly,Ln=Et.required,Bn=Et["aria-required"],Pn=Et.onSubmit,ri=Et.onFocus,Si=Et.onBlur,ue=Et.onInputChange,Un=Et.onInvalid,si=Et.open,zn=Et.onOpenChange,ci=Et.onKeyDown,vi=Et.onChange,Ti=Et.activeHelp,Fi=Et.name,Ii=Et.autoComplete,Bi=Et.id,gr=Et.value,Fr=Et.invalid,zr=Et.placeholder,Zr=Et.disabled,Di=Et.activeIndex,wr=Et.allHelp,Cr=Et.picker,Ir=function(Pr,Ri){var kr=de.locale.parse(je.locale,Pr,[Ri]);return kr&&de.isValidate(kr)?kr:null},Gi=zt[0],nr=Mt.useCallback(function(Br){return un(Br,{locale:je,format:Gi,generateConfig:de})},[je,de,Gi]),Mn=Mt.useMemo(function(){return gr.map(nr)},[gr,nr]),_i=Mt.useMemo(function(){var Br=Cr==="time"?8:10,Pr=typeof Gi=="function"?Gi(de.getNow()).length:Gi.length;return Math.max(Br,Pr)+2},[Gi,Cr,de]),ar=function(Pr){for(var Ri=0;Ri<zt.length;Ri+=1){var kr=zt[Ri];if(typeof kr=="string"){var Yr=Ir(Pr,kr);if(Yr)return Yr}}return!1},Dr=function(Pr){function Ri(Jr){return Pr!==void 0?Jr[Pr]:Jr}var kr=(0,Ze.Z)(Et,{aria:!0,data:!0}),Yr=(0,re.Z)((0,re.Z)({},kr),{},{format:ae,validateFormat:function(jr){return!!ar(jr)},preserveInvalidOnBlur:Ye,readOnly:tn,required:Ln,"aria-required":Bn,name:Fi,autoComplete:Ii,size:_i,id:Ri(Bi),value:Ri(Mn)||"",invalid:Ri(Fr),placeholder:Ri(zr),active:Di===Pr,helped:wr||Ti&&Di===Pr,disabled:Ri(Zr),onFocus:function(jr){ri(jr,Pr)},onBlur:function(jr){Si(jr,Pr)},onSubmit:Pn,onChange:function(jr){ue();var so=ar(jr);if(so){Un(!1,Pr),vi(so,Pr);return}Un(!!jr,Pr)},onHelp:function(){zn(!0,{index:Pr})},onKeyDown:function(jr){var so=!1;if(ci==null||ci(jr,function(){so=!0}),!jr.defaultPrevented&&!so)switch(jr.key){case"Escape":zn(!1,{index:Pr});break;case"Enter":si||zn(!0);break}}},qt==null?void 0:qt({valueTexts:Mn}));return Object.keys(Yr).forEach(function(Jr){Yr[Jr]===void 0&&delete Yr[Jr]}),Yr};return[Dr,nr]}var dn=["onMouseEnter","onMouseLeave"];function Mi(Et){return Mt.useMemo(function(){return Ht(Et,dn)},[Et])}var Vi=["icon","type"],Qi=["onClear"];function qi(Et){var qt=Et.icon,zt=Et.type,ae=(0,Lr.Z)(Et,Vi),de=Mt.useContext(dt),je=de.prefixCls;return qt?Mt.createElement("span",(0,yt.Z)({className:"".concat(je,"-").concat(zt)},ae),qt):null}function cr(Et){var qt=Et.onClear,zt=(0,Lr.Z)(Et,Qi);return Mt.createElement(qi,(0,yt.Z)({},zt,{type:"clear",role:"button",onMouseDown:function(de){de.preventDefault()},onClick:function(de){de.stopPropagation(),qt()}}))}var Ar=Dt(96949),ji=Dt(55090),er=["YYYY","MM","DD","HH","mm","ss","SSS"],Hi="\u9867",cn=function(){function Et(qt){(0,Ar.Z)(this,Et),(0,Re.Z)(this,"format",void 0),(0,Re.Z)(this,"maskFormat",void 0),(0,Re.Z)(this,"cells",void 0),(0,Re.Z)(this,"maskCells",void 0),this.format=qt;var zt=er.map(function(tn){return"(".concat(tn,")")}).join("|"),ae=new RegExp(zt,"g");this.maskFormat=qt.replace(ae,function(tn){return Hi.repeat(tn.length)});var de=new RegExp("(".concat(er.join("|"),")")),je=(qt.split(de)||[]).filter(function(tn){return tn}),Ye=0;this.cells=je.map(function(tn){var Ln=er.includes(tn),Bn=Ye,Pn=Ye+tn.length;return Ye=Pn,{text:tn,mask:Ln,start:Bn,end:Pn}}),this.maskCells=this.cells.filter(function(tn){return tn.mask})}return(0,ji.Z)(Et,[{key:"getSelection",value:function(zt){var ae=this.maskCells[zt]||{},de=ae.start,je=ae.end;return[de||0,je||0]}},{key:"match",value:function(zt){for(var ae=0;ae<this.maskFormat.length;ae+=1){var de=this.maskFormat[ae],je=zt[ae];if(!je||de!==Hi&&de!==je)return!1}return!0}},{key:"size",value:function(){return this.maskCells.length}},{key:"getMaskCellIndex",value:function(zt){for(var ae=Number.MAX_SAFE_INTEGER,de=0,je=0;je<this.maskCells.length;je+=1){var Ye=this.maskCells[je],tn=Ye.start,Ln=Ye.end;if(zt>=tn&&zt<=Ln)return je;var Bn=Math.min(Math.abs(zt-tn),Math.abs(zt-Ln));Bn<ae&&(ae=Bn,de=je)}return de}}]),Et}();function lr(Et){var qt={YYYY:[0,9999,new Date().getFullYear()],MM:[1,12],DD:[1,31],HH:[0,23],mm:[0,59],ss:[0,59],SSS:[0,999]};return qt[Et]}var xn=["active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"],wi=Mt.forwardRef(function(Et,qt){var zt=Et.active,ae=Et.showActiveCls,de=ae===void 0?!0:ae,je=Et.suffixIcon,Ye=Et.format,tn=Et.validateFormat,Ln=Et.onChange,Bn=Et.onInput,Pn=Et.helped,ri=Et.onHelp,Si=Et.onSubmit,ue=Et.onKeyDown,Un=Et.preserveInvalidOnBlur,si=Un===void 0?!1:Un,zn=Et.invalid,ci=Et.clearIcon,vi=(0,Lr.Z)(Et,xn),Ti=Et.value,Fi=Et.onFocus,Ii=Et.onBlur,Bi=Et.onMouseUp,gr=Mt.useContext(dt),Fr=gr.prefixCls,zr=gr.input,Zr=zr===void 0?"input":zr,Di="".concat(Fr,"-input"),wr=Mt.useState(!1),Cr=(0,Fe.Z)(wr,2),Ir=Cr[0],Gi=Cr[1],nr=Mt.useState(Ti),Mn=(0,Fe.Z)(nr,2),_i=Mn[0],ar=Mn[1],Dr=Mt.useState(""),Br=(0,Fe.Z)(Dr,2),Pr=Br[0],Ri=Br[1],kr=Mt.useState(null),Yr=(0,Fe.Z)(kr,2),Jr=Yr[0],jr=Yr[1],so=Mt.useState(null),_r=(0,Fe.Z)(so,2),Vr=_r[0],fo=_r[1],Ao=_i||"";Mt.useEffect(function(){ar(Ti)},[Ti]);var Jo=Mt.useRef(),ro=Mt.useRef();Mt.useImperativeHandle(qt,function(){return{nativeElement:Jo.current,inputElement:ro.current,focus:function(Mr){ro.current.focus(Mr)},blur:function(){ro.current.blur()}}});var na=Mt.useMemo(function(){return new cn(Ye||"")},[Ye]),mo=Mt.useMemo(function(){return Pn?[0,0]:na.getSelection(Jr)},[na,Jr,Pn]),ra=(0,Fe.Z)(mo,2),Po=ra[0],Vo=ra[1],jo=function(Mr){Mr&&Mr!==Ye&&Mr!==Ti&&ri()},Yo=(0,be.zX)(function(fr){tn(fr)&&Ln(fr),ar(fr),jo(fr)}),Bo=function(Mr){if(!Ye){var $r=Mr.target.value;jo($r),ar($r),Ln($r)}},bo=function(Mr){var $r=Mr.clipboardData.getData("text");tn($r)&&Yo($r)},oa=Mt.useRef(!1),ya=function(){oa.current=!0},Wo=function(Mr){var $r=Mr.target,yr=$r.selectionStart,Ei=na.getMaskCellIndex(yr);jr(Ei),fo({}),Bi==null||Bi(Mr),oa.current=!1},Ba=function(Mr){Gi(!0),jr(0),Ri(""),Fi(Mr)},Fo=function(Mr){Ii(Mr)},yo=function(Mr){Gi(!1),Fo(Mr)};pn(zt,function(){!zt&&!si&&ar(Ti)});var vo=function(Mr){Mr.key==="Enter"&&tn(Ao)&&Si(),ue==null||ue(Mr)},Go=function(Mr){vo(Mr);var $r=Mr.key,yr=null,Ei=null,Qo=Vo-Po,me=Ye.slice(Po,Vo),Wn=function(xa){jr(function(Ta){var Ra=Ta+xa;return Ra=Math.max(Ra,0),Ra=Math.min(Ra,na.size()-1),Ra})},pa=function(xa){var Ta=lr(me),Ra=(0,Fe.Z)(Ta,3),hs=Ra[0],ua=Ra[1],Qr=Ra[2],Ya=Ao.slice(Po,Vo),es=Number(Ya);if(isNaN(es))return String(Qr||(xa>0?hs:ua));var ha=es+xa,So=ua-hs+1;return String(hs+(So+ha-hs)%So)};switch($r){case"Backspace":case"Delete":yr="",Ei=me;break;case"ArrowLeft":yr="",Wn(-1);break;case"ArrowRight":yr="",Wn(1);break;case"ArrowUp":yr="",Ei=pa(1);break;case"ArrowDown":yr="",Ei=pa(-1);break;default:isNaN(Number($r))||(yr=Pr+$r,Ei=yr);break}if(yr!==null&&(Ri(yr),yr.length>=Qo&&(Wn(1),Ri(""))),Ei!==null){var Sa=Ao.slice(0,Po)+St(Ei,Qo)+Ao.slice(Vo);Yo(Sa.slice(0,Ye.length))}fo({})},br=Mt.useRef();(0,jt.Z)(function(){if(!(!Ir||!Ye||oa.current)){if(!na.match(Ao)){Yo(Ye);return}return ro.current.setSelectionRange(Po,Vo),br.current=(0,In.Z)(function(){ro.current.setSelectionRange(Po,Vo)}),function(){In.Z.cancel(br.current)}}},[na,Ye,Ir,Ao,Jr,Po,Vo,Vr,Yo]);var Ur=Ye?{onFocus:Ba,onBlur:yo,onKeyDown:Go,onMouseDown:ya,onMouseUp:Wo,onPaste:bo}:{};return Mt.createElement("div",{ref:Jo,className:Nt()(Di,(0,Re.Z)((0,Re.Z)({},"".concat(Di,"-active"),zt&&de),"".concat(Di,"-placeholder"),Pn))},Mt.createElement(Zr,(0,yt.Z)({ref:ro,"aria-invalid":zn,autoComplete:"off"},vi,{onKeyDown:vo,onBlur:Fo},Ur,{value:Ao,onChange:Bo})),Mt.createElement(qi,{type:"suffix",icon:je}),ci)}),Xi=wi,Sr=["id","prefix","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveInfo","placement","onMouseDown","required","aria-required","autoFocus","tabIndex"],ao=["index"];function co(Et,qt){var zt=Et.id,ae=Et.prefix,de=Et.clearIcon,je=Et.suffixIcon,Ye=Et.separator,tn=Ye===void 0?"~":Ye,Ln=Et.activeIndex,Bn=Et.activeHelp,Pn=Et.allHelp,ri=Et.focused,Si=Et.onFocus,ue=Et.onBlur,Un=Et.onKeyDown,si=Et.locale,zn=Et.generateConfig,ci=Et.placeholder,vi=Et.className,Ti=Et.style,Fi=Et.onClick,Ii=Et.onClear,Bi=Et.value,gr=Et.onChange,Fr=Et.onSubmit,zr=Et.onInputChange,Zr=Et.format,Di=Et.maskFormat,wr=Et.preserveInvalidOnBlur,Cr=Et.onInvalid,Ir=Et.disabled,Gi=Et.invalid,nr=Et.inputReadOnly,Mn=Et.direction,_i=Et.onOpenChange,ar=Et.onActiveInfo,Dr=Et.placement,Br=Et.onMouseDown,Pr=Et.required,Ri=Et["aria-required"],kr=Et.autoFocus,Yr=Et.tabIndex,Jr=(0,Lr.Z)(Et,Sr),jr=Mn==="rtl",so=Mt.useContext(dt),_r=so.prefixCls,Vr=Mt.useMemo(function(){if(typeof zt=="string")return[zt];var Fo=zt||{};return[Fo.start,Fo.end]},[zt]),fo=Mt.useRef(),Ao=Mt.useRef(),Jo=Mt.useRef(),ro=function(yo){var vo;return(vo=[Ao,Jo][yo])===null||vo===void 0?void 0:vo.current};Mt.useImperativeHandle(qt,function(){return{nativeElement:fo.current,focus:function(yo){if((0,Fn.Z)(yo)==="object"){var vo,Go=yo||{},br=Go.index,Ur=br===void 0?0:br,fr=(0,Lr.Z)(Go,ao);(vo=ro(Ur))===null||vo===void 0||vo.focus(fr)}else{var Mr;(Mr=ro(yo!=null?yo:0))===null||Mr===void 0||Mr.focus()}},blur:function(){var yo,vo;(yo=ro(0))===null||yo===void 0||yo.blur(),(vo=ro(1))===null||vo===void 0||vo.blur()}}});var na=Mi(Jr),mo=Mt.useMemo(function(){return Array.isArray(ci)?ci:[ci,ci]},[ci]),ra=Hr((0,re.Z)((0,re.Z)({},Et),{},{id:Vr,placeholder:mo})),Po=(0,Fe.Z)(ra,1),Vo=Po[0],jo=Mt.useState({position:"absolute",width:0}),Yo=(0,Fe.Z)(jo,2),Bo=Yo[0],bo=Yo[1],oa=(0,be.zX)(function(){var Fo=ro(Ln);if(Fo){var yo=Fo.nativeElement.getBoundingClientRect(),vo=fo.current.getBoundingClientRect(),Go=yo.left-vo.left;bo(function(br){return(0,re.Z)((0,re.Z)({},br),{},{width:yo.width,left:Go})}),ar([yo.left,yo.right,vo.width])}});Mt.useEffect(function(){oa()},[Ln]);var ya=de&&(Bi[0]&&!Ir[0]||Bi[1]&&!Ir[1]),Wo=kr&&!Ir[0],Ba=kr&&!Wo&&!Ir[1];return Mt.createElement(Ji.Z,{onResize:oa},Mt.createElement("div",(0,yt.Z)({},na,{className:Nt()(_r,"".concat(_r,"-range"),(0,Re.Z)((0,Re.Z)((0,Re.Z)((0,Re.Z)({},"".concat(_r,"-focused"),ri),"".concat(_r,"-disabled"),Ir.every(function(Fo){return Fo})),"".concat(_r,"-invalid"),Gi.some(function(Fo){return Fo})),"".concat(_r,"-rtl"),jr),vi),style:Ti,ref:fo,onClick:Fi,onMouseDown:function(yo){var vo=yo.target;vo!==Ao.current.inputElement&&vo!==Jo.current.inputElement&&yo.preventDefault(),Br==null||Br(yo)}}),ae&&Mt.createElement("div",{className:"".concat(_r,"-prefix")},ae),Mt.createElement(Xi,(0,yt.Z)({ref:Ao},Vo(0),{autoFocus:Wo,tabIndex:Yr,"date-range":"start"})),Mt.createElement("div",{className:"".concat(_r,"-range-separator")},tn),Mt.createElement(Xi,(0,yt.Z)({ref:Jo},Vo(1),{autoFocus:Ba,tabIndex:Yr,"date-range":"end"})),Mt.createElement("div",{className:"".concat(_r,"-active-bar"),style:Bo}),Mt.createElement(qi,{type:"suffix",icon:je}),ya&&Mt.createElement(cr,{icon:de,onClear:Ii})))}var qr=Mt.forwardRef(co),io=qr;function $e(Et,qt){var zt=Et!=null?Et:qt;return Array.isArray(zt)?zt:[zt,zt]}function Rn(Et){return Et===1?"end":"start"}function on(Et,qt){var zt=En(Et,function(){var lo=Et.disabled,po=Et.allowEmpty,Mo=$e(lo,!1),ia=$e(po,!1);return{disabled:Mo,allowEmpty:ia}}),ae=(0,Fe.Z)(zt,6),de=ae[0],je=ae[1],Ye=ae[2],tn=ae[3],Ln=ae[4],Bn=ae[5],Pn=de.prefixCls,ri=de.styles,Si=de.classNames,ue=de.defaultValue,Un=de.value,si=de.needConfirm,zn=de.onKeyDown,ci=de.disabled,vi=de.allowEmpty,Ti=de.disabledDate,Fi=de.minDate,Ii=de.maxDate,Bi=de.defaultOpen,gr=de.open,Fr=de.onOpenChange,zr=de.locale,Zr=de.generateConfig,Di=de.picker,wr=de.showNow,Cr=de.showToday,Ir=de.showTime,Gi=de.mode,nr=de.onPanelChange,Mn=de.onCalendarChange,_i=de.onOk,ar=de.defaultPickerValue,Dr=de.pickerValue,Br=de.onPickerValueChange,Pr=de.inputReadOnly,Ri=de.suffixIcon,kr=de.onFocus,Yr=de.onBlur,Jr=de.presets,jr=de.ranges,so=de.components,_r=de.cellRender,Vr=de.dateRender,fo=de.monthCellRender,Ao=de.onClick,Jo=ze(qt),ro=en(gr,Bi,ci,Fr),na=(0,Fe.Z)(ro,2),mo=na[0],ra=na[1],Po=function(po,Mo){(ci.some(function(ia){return!ia})||!po)&&ra(po,Mo)},Vo=vr(Zr,zr,tn,!0,!1,ue,Un,Mn,_i),jo=(0,Fe.Z)(Vo,5),Yo=jo[0],Bo=jo[1],bo=jo[2],oa=jo[3],ya=jo[4],Wo=bo(),Ba=bn(ci,vi,mo),Fo=(0,Fe.Z)(Ba,9),yo=Fo[0],vo=Fo[1],Go=Fo[2],br=Fo[3],Ur=Fo[4],fr=Fo[5],Mr=Fo[6],$r=Fo[7],yr=Fo[8],Ei=function(po,Mo){vo(!0),kr==null||kr(po,{range:Rn(Mo!=null?Mo:br)})},Qo=function(po,Mo){vo(!1),Yr==null||Yr(po,{range:Rn(Mo!=null?Mo:br)})},me=Mt.useMemo(function(){if(!Ir)return null;var lo=Ir.disabledTime,po=lo?function(Mo){var ia=Rn(br),rs=Vt(Wo,Mr,br);return lo(Mo,ia,{from:rs})}:void 0;return(0,re.Z)((0,re.Z)({},Ir),{},{disabledTime:po})},[Ir,br,Wo,Mr]),Wn=(0,be.C8)([Di,Di],{value:Gi}),pa=(0,Fe.Z)(Wn,2),Sa=pa[0],sa=pa[1],xa=Sa[br]||Di,Ta=xa==="date"&&me?"datetime":xa,Ra=Ta===Di&&Ta!=="time",hs=hr(Di,xa,wr,Cr,!0),ua=ur(de,Yo,Bo,bo,oa,ci,tn,yo,mo,Bn),Qr=(0,Fe.Z)(ua,2),Ya=Qr[0],es=Qr[1],ha=Yn(Wo,ci,Mr,Zr,zr,Ti),So=we(Wo,Bn,vi),ma=(0,Fe.Z)(So,2),ds=ma[0],la=ma[1],cs=vn(Zr,zr,Wo,Sa,mo,br,je,Ra,ar,Dr,me==null?void 0:me.defaultOpenValue,Br,Fi,Ii),za=(0,Fe.Z)(cs,2),Dl=za[0],Ho=za[1],Ma=(0,be.zX)(function(lo,po,Mo){var ia=It(Sa,br,po);if((ia[0]!==Sa[0]||ia[1]!==Sa[1])&&sa(ia),nr&&Mo!==!1){var rs=(0,te.Z)(Wo);lo&&(rs[br]=lo),nr(rs,ia)}}),To=function(po,Mo){return It(Wo,Mo,po)},$o=function(po,Mo){var ia=Wo;po&&(ia=To(po,br)),$r(br);var rs=fr(ia);oa(ia),Ya(br,rs===null),rs===null?Po(!1,{force:!0}):Mo||Jo.current.focus({index:rs})},ca=function(po){var Mo,ia=po.target.getRootNode();if(!Jo.current.nativeElement.contains((Mo=ia.activeElement)!==null&&Mo!==void 0?Mo:document.activeElement)){var rs=ci.findIndex(function(fs){return!fs});rs>=0&&Jo.current.focus({index:rs})}Po(!0),Ao==null||Ao(po)},va=function(){es(null),Po(!1,{force:!0})},qo=Mt.useState(null),pl=(0,Fe.Z)(qo,2),eo=pl[0],vu=pl[1],Lo=Mt.useState(null),Kl=(0,Fe.Z)(Lo,2),qs=Kl[0],Nl=Kl[1],yu=Mt.useMemo(function(){return qs||Wo},[Wo,qs]);Mt.useEffect(function(){mo||Nl(null)},[mo]);var Su=Mt.useState([0,0,0]),Vs=(0,Fe.Z)(Su,2),Yl=Vs[0],Uo=Vs[1],Gs=qe(Jr,jr),xu=function(po){Nl(po),vu("preset")},ml=function(po){var Mo=es(po);Mo&&Po(!1,{force:!0})},Nu=function(po){$o(po)},vl=function(po){Nl(po?To(po,br):null),vu("cell")},No=function(po){Po(!0),Ei(po)},Ko=function(){Go("panel")},ba=function(po){var Mo=It(Wo,br,po);oa(Mo),!si&&!Ye&&je===Ta&&$o(po)},ns=function(){Po(!1)},Qa=Ee(_r,Vr,fo,Rn(br)),Bl=Wo[br]||null,yl=(0,be.zX)(function(lo){return Bn(lo,{activeIndex:br})}),Oo=Mt.useMemo(function(){var lo=(0,Ze.Z)(de,!1),po=(0,ge.Z)(de,[].concat((0,te.Z)(Object.keys(lo)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return po},[de]),xo=Mt.createElement(Rr,(0,yt.Z)({},Oo,{showNow:hs,showTime:me,range:!0,multiplePanel:Ra,activeInfo:Yl,disabledDate:ha,onFocus:No,onBlur:Qo,onPanelMouseDown:Ko,picker:Di,mode:xa,internalMode:Ta,onPanelChange:Ma,format:Ln,value:Bl,isInvalid:yl,onChange:null,onSelect:ba,pickerValue:Dl,defaultOpenValue:bt(Ir==null?void 0:Ir.defaultOpenValue)[br],onPickerValueChange:Ho,hoverValue:yu,onHover:vl,needConfirm:si,onSubmit:$o,onOk:ya,presets:Gs,onPresetHover:xu,onPresetSubmit:ml,onNow:Nu,cellRender:Qa})),Ua=function(po,Mo){var ia=To(po,Mo);oa(ia)},ou=function(){Go("input")},Dd=function(po,Mo){var ia=Mr.length,rs=Mr[ia-1];if(ia&&rs!==Mo&&si&&!vi[rs]&&!yr(rs)&&Wo[rs]){Jo.current.focus({index:rs});return}Go("input"),Po(!0,{inherit:!0}),br!==Mo&&mo&&!si&&Ye&&$o(null,!0),Ur(Mo),Ei(po,Mo)},cg=function(po,Mo){if(Po(!1),!si&&Go()==="input"){var ia=fr(Wo);Ya(br,ia===null)}Qo(po,Mo)},nf=function(po,Mo){po.key==="Tab"&&$o(null,!0),zn==null||zn(po,Mo)},Va=Mt.useMemo(function(){return{prefixCls:Pn,locale:zr,generateConfig:Zr,button:so.button,input:so.input}},[Pn,zr,Zr,so.button,so.input]);if((0,jt.Z)(function(){mo&&br!==void 0&&Ma(null,Di,!1)},[mo,br,Di]),(0,jt.Z)(function(){var lo=Go();!mo&&lo==="input"&&(Po(!1),$o(null,!0)),!mo&&Ye&&!si&&lo==="panel"&&(Po(!0),$o())},[mo]),0)var Qu;return Mt.createElement(dt.Provider,{value:Va},Mt.createElement(mt,(0,yt.Z)({},Jt(de),{popupElement:xo,popupStyle:ri.popup,popupClassName:Si.popup,visible:mo,onClose:ns,range:!0}),Mt.createElement(io,(0,yt.Z)({},de,{ref:Jo,suffixIcon:Ri,activeIndex:yo||mo?br:null,activeHelp:!!qs,allHelp:!!qs&&eo==="preset",focused:yo,onFocus:Dd,onBlur:cg,onKeyDown:nf,onSubmit:$o,value:yu,maskFormat:Ln,onChange:Ua,onInputChange:ou,format:tn,inputReadOnly:Pr,disabled:ci,open:mo,onOpenChange:Po,onClick:ca,onClear:va,invalid:ds,onInvalid:la,onActiveInfo:Uo}))))}var Bt=Mt.forwardRef(on),Zt=Bt,Gt=Dt(11780);function he(Et){var qt=Et.prefixCls,zt=Et.value,ae=Et.onRemove,de=Et.removeIcon,je=de===void 0?"\xD7":de,Ye=Et.formatDate,tn=Et.disabled,Ln=Et.maxTagCount,Bn=Et.placeholder,Pn="".concat(qt,"-selector"),ri="".concat(qt,"-selection"),Si="".concat(ri,"-overflow");function ue(zn,ci){return Mt.createElement("span",{className:Nt()("".concat(ri,"-item")),title:typeof zn=="string"?zn:null},Mt.createElement("span",{className:"".concat(ri,"-item-content")},zn),!tn&&ci&&Mt.createElement("span",{onMouseDown:function(Ti){Ti.preventDefault()},onClick:ci,className:"".concat(ri,"-item-remove")},je))}function Un(zn){var ci=Ye(zn),vi=function(Fi){Fi&&Fi.stopPropagation(),ae(zn)};return ue(ci,vi)}function si(zn){var ci="+ ".concat(zn.length," ...");return ue(ci)}return Mt.createElement("div",{className:Pn},Mt.createElement(Gt.Z,{prefixCls:Si,data:zt,renderItem:Un,renderRest:si,itemKey:function(ci){return Ye(ci)},maxCount:Ln}),!zt.length&&Mt.createElement("span",{className:"".concat(qt,"-selection-placeholder")},Bn))}var Be=["id","open","prefix","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","tabIndex","removeIcon"];function rn(Et,qt){var zt=Et.id,ae=Et.open,de=Et.prefix,je=Et.clearIcon,Ye=Et.suffixIcon,tn=Et.activeHelp,Ln=Et.allHelp,Bn=Et.focused,Pn=Et.onFocus,ri=Et.onBlur,Si=Et.onKeyDown,ue=Et.locale,Un=Et.generateConfig,si=Et.placeholder,zn=Et.className,ci=Et.style,vi=Et.onClick,Ti=Et.onClear,Fi=Et.internalPicker,Ii=Et.value,Bi=Et.onChange,gr=Et.onSubmit,Fr=Et.onInputChange,zr=Et.multiple,Zr=Et.maxTagCount,Di=Et.format,wr=Et.maskFormat,Cr=Et.preserveInvalidOnBlur,Ir=Et.onInvalid,Gi=Et.disabled,nr=Et.invalid,Mn=Et.inputReadOnly,_i=Et.direction,ar=Et.onOpenChange,Dr=Et.onMouseDown,Br=Et.required,Pr=Et["aria-required"],Ri=Et.autoFocus,kr=Et.tabIndex,Yr=Et.removeIcon,Jr=(0,Lr.Z)(Et,Be),jr=_i==="rtl",so=Mt.useContext(dt),_r=so.prefixCls,Vr=Mt.useRef(),fo=Mt.useRef();Mt.useImperativeHandle(qt,function(){return{nativeElement:Vr.current,focus:function(Bo){var bo;(bo=fo.current)===null||bo===void 0||bo.focus(Bo)},blur:function(){var Bo;(Bo=fo.current)===null||Bo===void 0||Bo.blur()}}});var Ao=Mi(Jr),Jo=function(Bo){Bi([Bo])},ro=function(Bo){var bo=Ii.filter(function(oa){return oa&&!Tt(Un,ue,oa,Bo,Fi)});Bi(bo),ae||gr()},na=Hr((0,re.Z)((0,re.Z)({},Et),{},{onChange:Jo}),function(Yo){var Bo=Yo.valueTexts;return{value:Bo[0]||"",active:Bn}}),mo=(0,Fe.Z)(na,2),ra=mo[0],Po=mo[1],Vo=!!(je&&Ii.length&&!Gi),jo=zr?Mt.createElement(Mt.Fragment,null,Mt.createElement(he,{prefixCls:_r,value:Ii,onRemove:ro,formatDate:Po,maxTagCount:Zr,disabled:Gi,removeIcon:Yr,placeholder:si}),Mt.createElement("input",{className:"".concat(_r,"-multiple-input"),value:Ii.map(Po).join(","),ref:fo,readOnly:!0,autoFocus:Ri,tabIndex:kr}),Mt.createElement(qi,{type:"suffix",icon:Ye}),Vo&&Mt.createElement(cr,{icon:je,onClear:Ti})):Mt.createElement(Xi,(0,yt.Z)({ref:fo},ra(),{autoFocus:Ri,tabIndex:kr,suffixIcon:Ye,clearIcon:Vo&&Mt.createElement(cr,{icon:je,onClear:Ti}),showActiveCls:!1}));return Mt.createElement("div",(0,yt.Z)({},Ao,{className:Nt()(_r,(0,Re.Z)((0,Re.Z)((0,Re.Z)((0,Re.Z)((0,Re.Z)({},"".concat(_r,"-multiple"),zr),"".concat(_r,"-focused"),Bn),"".concat(_r,"-disabled"),Gi),"".concat(_r,"-invalid"),nr),"".concat(_r,"-rtl"),jr),zn),style:ci,ref:Vr,onClick:vi,onMouseDown:function(Bo){var bo,oa=Bo.target;oa!==((bo=fo.current)===null||bo===void 0?void 0:bo.inputElement)&&Bo.preventDefault(),Dr==null||Dr(Bo)}}),de&&Mt.createElement("div",{className:"".concat(_r,"-prefix")},de),jo)}var ie=Mt.forwardRef(rn),ke=ie;function He(Et,qt){var zt=En(Et),ae=(0,Fe.Z)(zt,6),de=ae[0],je=ae[1],Ye=ae[2],tn=ae[3],Ln=ae[4],Bn=ae[5],Pn=de,ri=Pn.prefixCls,Si=Pn.styles,ue=Pn.classNames,Un=Pn.order,si=Pn.defaultValue,zn=Pn.value,ci=Pn.needConfirm,vi=Pn.onChange,Ti=Pn.onKeyDown,Fi=Pn.disabled,Ii=Pn.disabledDate,Bi=Pn.minDate,gr=Pn.maxDate,Fr=Pn.defaultOpen,zr=Pn.open,Zr=Pn.onOpenChange,Di=Pn.locale,wr=Pn.generateConfig,Cr=Pn.picker,Ir=Pn.showNow,Gi=Pn.showToday,nr=Pn.showTime,Mn=Pn.mode,_i=Pn.onPanelChange,ar=Pn.onCalendarChange,Dr=Pn.onOk,Br=Pn.multiple,Pr=Pn.defaultPickerValue,Ri=Pn.pickerValue,kr=Pn.onPickerValueChange,Yr=Pn.inputReadOnly,Jr=Pn.suffixIcon,jr=Pn.removeIcon,so=Pn.onFocus,_r=Pn.onBlur,Vr=Pn.presets,fo=Pn.components,Ao=Pn.cellRender,Jo=Pn.dateRender,ro=Pn.monthCellRender,na=Pn.onClick,mo=ze(qt);function ra(Oo){return Oo===null?null:Br?Oo:Oo[0]}var Po=sr(wr,Di,je),Vo=en(zr,Fr,[Fi],Zr),jo=(0,Fe.Z)(Vo,2),Yo=jo[0],Bo=jo[1],bo=function(xo,Ua,ou){if(ar){var Dd=(0,re.Z)({},ou);delete Dd.range,ar(ra(xo),ra(Ua),Dd)}},oa=function(xo){Dr==null||Dr(ra(xo))},ya=vr(wr,Di,tn,!1,Un,si,zn,bo,oa),Wo=(0,Fe.Z)(ya,5),Ba=Wo[0],Fo=Wo[1],yo=Wo[2],vo=Wo[3],Go=Wo[4],br=yo(),Ur=bn([Fi]),fr=(0,Fe.Z)(Ur,4),Mr=fr[0],$r=fr[1],yr=fr[2],Ei=fr[3],Qo=function(xo){$r(!0),so==null||so(xo,{})},me=function(xo){$r(!1),_r==null||_r(xo,{})},Wn=(0,be.C8)(Cr,{value:Mn}),pa=(0,Fe.Z)(Wn,2),Sa=pa[0],sa=pa[1],xa=Sa==="date"&&nr?"datetime":Sa,Ta=hr(Cr,Sa,Ir,Gi),Ra=vi&&function(Oo,xo){vi(ra(Oo),ra(xo))},hs=ur((0,re.Z)((0,re.Z)({},de),{},{onChange:Ra}),Ba,Fo,yo,vo,[],tn,Mr,Yo,Bn),ua=(0,Fe.Z)(hs,2),Qr=ua[1],Ya=we(br,Bn),es=(0,Fe.Z)(Ya,2),ha=es[0],So=es[1],ma=Mt.useMemo(function(){return ha.some(function(Oo){return Oo})},[ha]),ds=function(xo,Ua){if(kr){var ou=(0,re.Z)((0,re.Z)({},Ua),{},{mode:Ua.mode[0]});delete ou.range,kr(xo[0],ou)}},la=vn(wr,Di,br,[Sa],Yo,Ei,je,!1,Pr,Ri,bt(nr==null?void 0:nr.defaultOpenValue),ds,Bi,gr),cs=(0,Fe.Z)(la,2),za=cs[0],Dl=cs[1],Ho=(0,be.zX)(function(Oo,xo,Ua){if(sa(xo),_i&&Ua!==!1){var ou=Oo||br[br.length-1];_i(ou,xo)}}),Ma=function(){Qr(yo()),Bo(!1,{force:!0})},To=function(xo){!Fi&&!mo.current.nativeElement.contains(document.activeElement)&&mo.current.focus(),Bo(!0),na==null||na(xo)},$o=function(){Qr(null),Bo(!1,{force:!0})},ca=Mt.useState(null),va=(0,Fe.Z)(ca,2),qo=va[0],pl=va[1],eo=Mt.useState(null),vu=(0,Fe.Z)(eo,2),Lo=vu[0],Kl=vu[1],qs=Mt.useMemo(function(){var Oo=[Lo].concat((0,te.Z)(br)).filter(function(xo){return xo});return Br?Oo:Oo.slice(0,1)},[br,Lo,Br]),Nl=Mt.useMemo(function(){return!Br&&Lo?[Lo]:br.filter(function(Oo){return Oo})},[br,Lo,Br]);Mt.useEffect(function(){Yo||Kl(null)},[Yo]);var yu=qe(Vr),Su=function(xo){Kl(xo),pl("preset")},Vs=function(xo){var Ua=Br?Po(yo(),xo):[xo],ou=Qr(Ua);ou&&!Br&&Bo(!1,{force:!0})},Yl=function(xo){Vs(xo)},Uo=function(xo){Kl(xo),pl("cell")},Gs=function(xo){Bo(!0),Qo(xo)},xu=function(xo){if(yr("panel"),!(Br&&xa!==Cr)){var Ua=Br?Po(yo(),xo):[xo];vo(Ua),!ci&&!Ye&&je===xa&&Ma()}},ml=function(){Bo(!1)},Nu=Ee(Ao,Jo,ro),vl=Mt.useMemo(function(){var Oo=(0,Ze.Z)(de,!1),xo=(0,ge.Z)(de,[].concat((0,te.Z)(Object.keys(Oo)),["onChange","onCalendarChange","style","className","onPanelChange"]));return(0,re.Z)((0,re.Z)({},xo),{},{multiple:de.multiple})},[de]),No=Mt.createElement(Rr,(0,yt.Z)({},vl,{showNow:Ta,showTime:nr,disabledDate:Ii,onFocus:Gs,onBlur:me,picker:Cr,mode:Sa,internalMode:xa,onPanelChange:Ho,format:Ln,value:br,isInvalid:Bn,onChange:null,onSelect:xu,pickerValue:za,defaultOpenValue:nr==null?void 0:nr.defaultOpenValue,onPickerValueChange:Dl,hoverValue:qs,onHover:Uo,needConfirm:ci,onSubmit:Ma,onOk:Go,presets:yu,onPresetHover:Su,onPresetSubmit:Vs,onNow:Yl,cellRender:Nu})),Ko=function(xo){vo(xo)},ba=function(){yr("input")},ns=function(xo){yr("input"),Bo(!0,{inherit:!0}),Qo(xo)},Qa=function(xo){Bo(!1),me(xo)},Bl=function(xo,Ua){xo.key==="Tab"&&Ma(),Ti==null||Ti(xo,Ua)},yl=Mt.useMemo(function(){return{prefixCls:ri,locale:Di,generateConfig:wr,button:fo.button,input:fo.input}},[ri,Di,wr,fo.button,fo.input]);return(0,jt.Z)(function(){Yo&&Ei!==void 0&&Ho(null,Cr,!1)},[Yo,Ei,Cr]),(0,jt.Z)(function(){var Oo=yr();!Yo&&Oo==="input"&&(Bo(!1),Ma()),!Yo&&Ye&&!ci&&Oo==="panel"&&Ma()},[Yo]),Mt.createElement(dt.Provider,{value:yl},Mt.createElement(mt,(0,yt.Z)({},Jt(de),{popupElement:No,popupStyle:Si.popup,popupClassName:ue.popup,visible:Yo,onClose:ml}),Mt.createElement(ke,(0,yt.Z)({},de,{ref:mo,suffixIcon:Jr,removeIcon:jr,activeHelp:!!Lo,allHelp:!!Lo&&qo==="preset",focused:Mr,onFocus:ns,onBlur:Qa,onKeyDown:Bl,onSubmit:Ma,value:Nl,maskFormat:Ln,onChange:Ko,onInputChange:ba,internalPicker:je,format:tn,inputReadOnly:Yr,disabled:Fi,open:Yo,onOpenChange:Bo,onClick:To,onClear:$o,invalid:ma,onInvalid:function(xo){So(xo,0)}}))))}var _e=Mt.forwardRef(He),hn=_e,mi=hn},738:function(Jn,pi,Dt){"use strict";Dt.d(pi,{Z:function(){return mt}});var yt=Dt(72308),te=Dt(49618),re=Dt(52487),Fe=Dt(74416),be=Dt(92310),jt=Dt.n(be),ge=Dt(18929),Ze=Dt(10228),Ce=Dt(26112),Mt=Dt(59301);function Re(St,bt){var It=St.disabled,Ht=St.prefixCls,se=St.character,Vt=St.characterRender,Jt=St.index,Ee=St.count,we=St.value,De=St.allowHalf,Le=St.focused,sn=St.onHover,Fn=St.onClick,fn=function(ln){sn(ln,Jt)},Ge=function(ln){Fn(ln,Jt)},an=function(ln){ln.keyCode===Ze.Z.ENTER&&Fn(ln,Jt)},Se=Jt+1,Qt=new Set([Ht]);we===0&&Jt===0&&Le?Qt.add("".concat(Ht,"-focused")):De&&we+.5>=Se&&we<Se?(Qt.add("".concat(Ht,"-half")),Qt.add("".concat(Ht,"-active")),Le&&Qt.add("".concat(Ht,"-focused"))):(Se<=we?Qt.add("".concat(Ht,"-full")):Qt.add("".concat(Ht,"-zero")),Se===we&&Le&&Qt.add("".concat(Ht,"-focused")));var mn=typeof se=="function"?se(St):se,ii=Mt.createElement("li",{className:jt()(Array.from(Qt)),ref:bt},Mt.createElement("div",{onClick:It?null:Ge,onKeyDown:It?null:an,onMouseMove:It?null:fn,role:"radio","aria-checked":we>Jt?"true":"false","aria-posinset":Jt+1,"aria-setsize":Ee,tabIndex:It?-1:0},Mt.createElement("div",{className:"".concat(Ht,"-first")},mn),Mt.createElement("div",{className:"".concat(Ht,"-second")},mn)));return Vt&&(ii=Vt(ii,St)),ii}var Yt=Mt.forwardRef(Re);function We(){var St=Mt.useRef({});function bt(Ht){return St.current[Ht]}function It(Ht){return function(se){St.current[Ht]=se}}return[bt,It]}function Nt(St){var bt=St.pageXOffset,It="scrollLeft";if(typeof bt!="number"){var Ht=St.document;bt=Ht.documentElement[It],typeof bt!="number"&&(bt=Ht.body[It])}return bt}function nt(St){var bt,It,Ht=St.ownerDocument,se=Ht.body,Vt=Ht&&Ht.documentElement,Jt=St.getBoundingClientRect();return bt=Jt.left,It=Jt.top,bt-=Vt.clientLeft||se.clientLeft||0,It-=Vt.clientTop||se.clientTop||0,{left:bt,top:It}}function et(St){var bt=nt(St),It=St.ownerDocument,Ht=It.defaultView||It.parentWindow;return bt.left+=Nt(Ht),bt.left}var dt=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function lt(St,bt){var It=St.prefixCls,Ht=It===void 0?"rc-rate":It,se=St.className,Vt=St.defaultValue,Jt=St.value,Ee=St.count,we=Ee===void 0?5:Ee,De=St.allowHalf,Le=De===void 0?!1:De,sn=St.allowClear,Fn=sn===void 0?!0:sn,fn=St.keyboard,Ge=fn===void 0?!0:fn,an=St.character,Se=an===void 0?"\u2605":an,Qt=St.characterRender,mn=St.disabled,ii=St.direction,jn=ii===void 0?"ltr":ii,ln=St.tabIndex,qn=ln===void 0?0:ln,Dn=St.autoFocus,fi=St.onHoverChange,Ve=St.onChange,On=St.onFocus,Pe=St.onBlur,Ai=St.onKeyDown,Xn=St.onMouseLeave,Rt=(0,Fe.Z)(St,dt),At=We(),wt=(0,re.Z)(At,2),Tt=wt[0],Kt=wt[1],kt=Mt.useRef(null),$t=function(){if(!mn){var Ji;(Ji=kt.current)===null||Ji===void 0||Ji.focus()}};Mt.useImperativeHandle(bt,function(){return{focus:$t,blur:function(){if(!mn){var Ji;(Ji=kt.current)===null||Ji===void 0||Ji.blur()}}}});var un=(0,ge.Z)(Vt||0,{value:Jt}),Ie=(0,re.Z)(un,2),Ue=Ie[0],ne=Ie[1],Oe=(0,ge.Z)(null),Ne=(0,re.Z)(Oe,2),Xe=Ne[0],En=Ne[1],In=function(Ji,xr){var Ct=jn==="rtl",yn=Ji+1;if(Le){var Zn=Tt(Ji),dr=et(Zn),sr=Zn.clientWidth;(Ct&&xr-dr>sr/2||!Ct&&xr-dr<sr/2)&&(yn-=.5)}return yn},An=function(Ji){ne(Ji),Ve==null||Ve(Ji)},en=Mt.useState(!1),ze=(0,re.Z)(en,2),qe=ze[0],pn=ze[1],bn=function(){pn(!0),On==null||On()},Yn=function(){pn(!1),Pe==null||Pe()},ti=Mt.useState(null),yi=(0,re.Z)(ti,2),vn=yi[0],Pi=yi[1],Ki=function(Ji,xr){var Ct=In(xr,Ji.pageX);Ct!==Xe&&(Pi(Ct),En(null)),fi==null||fi(Ct)},pr=function(Ji){mn||(Pi(null),En(null),fi==null||fi(void 0)),Ji&&(Xn==null||Xn(Ji))},or=function(Ji,xr){var Ct=In(xr,Ji.pageX),yn=!1;Fn&&(yn=Ct===Ue),pr(),An(yn?0:Ct),En(yn?Ct:null)},ir=function(Ji){var xr=Ji.keyCode,Ct=jn==="rtl",yn=Le?.5:1;Ge&&(xr===Ze.Z.RIGHT&&Ue<we&&!Ct?(An(Ue+yn),Ji.preventDefault()):xr===Ze.Z.LEFT&&Ue>0&&!Ct||xr===Ze.Z.RIGHT&&Ue>0&&Ct?(An(Ue-yn),Ji.preventDefault()):xr===Ze.Z.LEFT&&Ue<we&&Ct&&(An(Ue+yn),Ji.preventDefault())),Ai==null||Ai(Ji)};Mt.useEffect(function(){Dn&&!mn&&$t()},[]);var vr=new Array(we).fill(0).map(function(hr,Ji){return Mt.createElement(Yt,{ref:Kt(Ji),index:Ji,count:we,disabled:mn,prefixCls:"".concat(Ht,"-star"),allowHalf:Le,value:vn===null?Ue:vn,onClick:or,onHover:Ki,key:hr||Ji,character:Se,characterRender:Qt,focused:qe})}),ur=jt()(Ht,se,(0,te.Z)((0,te.Z)({},"".concat(Ht,"-disabled"),mn),"".concat(Ht,"-rtl"),jn==="rtl"));return Mt.createElement("ul",(0,yt.Z)({className:ur,onMouseLeave:pr,tabIndex:mn?-1:qn,onFocus:mn?null:bn,onBlur:mn?null:Yn,onKeyDown:mn?null:ir,ref:kt},(0,Ce.Z)(Rt,{aria:!0,data:!0,attr:!0})),vr)}var gt=Mt.forwardRef(lt),mt=gt},69582:function(Jn,pi,Dt){"use strict";Dt.d(pi,{ZP:function(){return ge}});var yt=Dt(52487),te=Dt(59301),re=Dt(47273),Fe=0,be=(0,re.Z)();function jt(){var Ze;return be?(Ze=Fe,Fe+=1):Ze="TEST_OR_SSR",Ze}function ge(Ze){var Ce=te.useState(),Mt=(0,yt.Z)(Ce,2),Re=Mt[0],Yt=Mt[1];return te.useEffect(function(){Yt("rc_select_".concat(jt()))},[]),Ze||Re}},45560:function(Jn,pi,Dt){"use strict";Dt.d(pi,{Ac:function(){return en},Xo:function(){return qe},Wx:function(){return bn},ZP:function(){return oi},lk:function(){return mt}});var yt=Dt(72308),te=Dt(80702),re=Dt(49618),Fe=Dt(77321),be=Dt(52487),jt=Dt(74416),ge=Dt(62853),Ze=Dt(18929),Ce=Dt(48736),Mt=Dt(59301),Re=Dt(92310),Yt=Dt.n(Re),We=Dt(34280),Nt=Dt(49658),nt=Dt(8654),et=function(Te){var hi=Te.className,ee=Te.customizeIcon,nn=Te.customizeIconProps,Vn=Te.children,_n=Te.onMouseDown,Ke=Te.onClick,Gn=typeof ee=="function"?ee(nn):ee;return Mt.createElement("span",{className:hi,onMouseDown:function(ni){ni.preventDefault(),_n==null||_n(ni)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Ke,"aria-hidden":!0},Gn!==void 0?Gn:Mt.createElement("span",{className:Yt()(hi.split(/\s+/).map(function(ai){return"".concat(ai,"-icon")}))},Vn))},dt=et,lt=function(Te,hi,ee,nn,Vn){var _n=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Ke=arguments.length>6?arguments[6]:void 0,Gn=arguments.length>7?arguments[7]:void 0,ai=Mt.useMemo(function(){if((0,ge.Z)(nn)==="object")return nn.clearIcon;if(Vn)return Vn},[nn,Vn]),ni=Mt.useMemo(function(){return!!(!_n&&nn&&(ee.length||Ke)&&!(Gn==="combobox"&&Ke===""))},[nn,_n,ee.length,Ke,Gn]);return{allowClear:ni,clearIcon:Mt.createElement(dt,{className:"".concat(Te,"-clear"),onMouseDown:hi,customizeIcon:ai},"\xD7")}},gt=Mt.createContext(null);function mt(){return Mt.useContext(gt)}function St(){var fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Te=Mt.useState(!1),hi=(0,be.Z)(Te,2),ee=hi[0],nn=hi[1],Vn=Mt.useRef(null),_n=function(){window.clearTimeout(Vn.current)};Mt.useEffect(function(){return _n},[]);var Ke=function(ai,ni){_n(),Vn.current=window.setTimeout(function(){nn(ai),ni&&ni()},fe)};return[ee,Ke,_n]}function bt(){var fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Te=Mt.useRef(null),hi=Mt.useRef(null);Mt.useEffect(function(){return function(){window.clearTimeout(hi.current)}},[]);function ee(nn){(nn||Te.current===null)&&(Te.current=nn),window.clearTimeout(hi.current),hi.current=window.setTimeout(function(){Te.current=null},fe)}return[function(){return Te.current},ee]}function It(fe,Te,hi,ee){var nn=Mt.useRef(null);nn.current={open:Te,triggerOpen:hi,customizedTrigger:ee},Mt.useEffect(function(){function Vn(_n){var Ke;if(!((Ke=nn.current)!==null&&Ke!==void 0&&Ke.customizedTrigger)){var Gn=_n.target;Gn.shadowRoot&&_n.composed&&(Gn=_n.composedPath()[0]||Gn),nn.current.open&&fe().filter(function(ai){return ai}).every(function(ai){return!ai.contains(Gn)&&ai!==Gn})&&nn.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Vn),function(){return window.removeEventListener("mousedown",Vn)}},[])}var Ht=Dt(10228);function se(fe){return fe&&![Ht.Z.ESC,Ht.Z.SHIFT,Ht.Z.BACKSPACE,Ht.Z.TAB,Ht.Z.WIN_KEY,Ht.Z.ALT,Ht.Z.META,Ht.Z.WIN_KEY_RIGHT,Ht.Z.CTRL,Ht.Z.SEMICOLON,Ht.Z.EQUALS,Ht.Z.CAPS_LOCK,Ht.Z.CONTEXT_MENU,Ht.Z.F1,Ht.Z.F2,Ht.Z.F3,Ht.Z.F4,Ht.Z.F5,Ht.Z.F6,Ht.Z.F7,Ht.Z.F8,Ht.Z.F9,Ht.Z.F10,Ht.Z.F11,Ht.Z.F12].includes(fe)}var Vt=Dt(26112),Jt=Dt(11780),Ee=function(Te,hi){var ee,nn=Te.prefixCls,Vn=Te.id,_n=Te.inputElement,Ke=Te.disabled,Gn=Te.tabIndex,ai=Te.autoFocus,ni=Te.autoComplete,ki=Te.editable,xi=Te.activeDescendantId,gi=Te.value,Li=Te.maxLength,Zi=Te.onKeyDown,tr=Te.onMouseDown,zi=Te.onChange,wn=Te.onPaste,Rr=Te.onCompositionStart,Lr=Te.onCompositionEnd,Hr=Te.onBlur,dn=Te.open,Mi=Te.attrs,Vi=_n||Mt.createElement("input",null),Qi=Vi,qi=Qi.ref,cr=Qi.props,Ar=cr.onKeyDown,ji=cr.onChange,er=cr.onMouseDown,Hi=cr.onCompositionStart,cn=cr.onCompositionEnd,lr=cr.onBlur,xn=cr.style;return(0,Ce.Kp)(!("maxLength"in Vi.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Vi=Mt.cloneElement(Vi,(0,Fe.Z)((0,Fe.Z)((0,Fe.Z)({type:"search"},cr),{},{id:Vn,ref:(0,nt.sQ)(hi,qi),disabled:Ke,tabIndex:Gn,autoComplete:ni||"off",autoFocus:ai,className:Yt()("".concat(nn,"-selection-search-input"),(ee=Vi)===null||ee===void 0||(ee=ee.props)===null||ee===void 0?void 0:ee.className),role:"combobox","aria-expanded":dn||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Vn,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Vn,"_list"),"aria-activedescendant":dn?xi:void 0},Mi),{},{value:ki?gi:"",maxLength:Li,readOnly:!ki,unselectable:ki?null:"on",style:(0,Fe.Z)((0,Fe.Z)({},xn),{},{opacity:ki?null:0}),onKeyDown:function(Xi){Zi(Xi),Ar&&Ar(Xi)},onMouseDown:function(Xi){tr(Xi),er&&er(Xi)},onChange:function(Xi){zi(Xi),ji&&ji(Xi)},onCompositionStart:function(Xi){Rr(Xi),Hi&&Hi(Xi)},onCompositionEnd:function(Xi){Lr(Xi),cn&&cn(Xi)},onPaste:wn,onBlur:function(Xi){Hr(Xi),lr&&lr(Xi)}})),Vi},we=Mt.forwardRef(Ee),De=we;function Le(fe){return Array.isArray(fe)?fe:fe!==void 0?[fe]:[]}var sn=typeof window!="undefined"&&window.document&&window.document.documentElement,Fn=sn;function fn(fe){return fe!=null}function Ge(fe){return!fe&&fe!==0}function an(fe){return["string","number"].includes((0,ge.Z)(fe))}function Se(fe){var Te=void 0;return fe&&(an(fe.title)?Te=fe.title.toString():an(fe.label)&&(Te=fe.label.toString())),Te}function Qt(fe,Te){Fn?Mt.useLayoutEffect(fe,Te):Mt.useEffect(fe,Te)}function mn(fe){var Te;return(Te=fe.key)!==null&&Te!==void 0?Te:fe.value}var ii=function(Te){Te.preventDefault(),Te.stopPropagation()},jn=function(Te){var hi=Te.id,ee=Te.prefixCls,nn=Te.values,Vn=Te.open,_n=Te.searchValue,Ke=Te.autoClearSearchValue,Gn=Te.inputRef,ai=Te.placeholder,ni=Te.disabled,ki=Te.mode,xi=Te.showSearch,gi=Te.autoFocus,Li=Te.autoComplete,Zi=Te.activeDescendantId,tr=Te.tabIndex,zi=Te.removeIcon,wn=Te.maxTagCount,Rr=Te.maxTagTextLength,Lr=Te.maxTagPlaceholder,Hr=Lr===void 0?function(rn){return"+ ".concat(rn.length," ...")}:Lr,dn=Te.tagRender,Mi=Te.onToggleOpen,Vi=Te.onRemove,Qi=Te.onInputChange,qi=Te.onInputPaste,cr=Te.onInputKeyDown,Ar=Te.onInputMouseDown,ji=Te.onInputCompositionStart,er=Te.onInputCompositionEnd,Hi=Te.onInputBlur,cn=Mt.useRef(null),lr=(0,Mt.useState)(0),xn=(0,be.Z)(lr,2),wi=xn[0],Xi=xn[1],Sr=(0,Mt.useState)(!1),ao=(0,be.Z)(Sr,2),co=ao[0],qr=ao[1],io="".concat(ee,"-selection"),$e=Vn||ki==="multiple"&&Ke===!1||ki==="tags"?_n:"",Rn=ki==="tags"||ki==="multiple"&&Ke===!1||xi&&(Vn||co);Qt(function(){Xi(cn.current.scrollWidth)},[$e]);var on=function(ie,ke,He,_e,hn){return Mt.createElement("span",{title:Se(ie),className:Yt()("".concat(io,"-item"),(0,re.Z)({},"".concat(io,"-item-disabled"),He))},Mt.createElement("span",{className:"".concat(io,"-item-content")},ke),_e&&Mt.createElement(dt,{className:"".concat(io,"-item-remove"),onMouseDown:ii,onClick:hn,customizeIcon:zi},"\xD7"))},Bt=function(ie,ke,He,_e,hn,mi){var Et=function(zt){ii(zt),Mi(!Vn)};return Mt.createElement("span",{onMouseDown:Et},dn({label:ke,value:ie,disabled:He,closable:_e,onClose:hn,isMaxTag:!!mi}))},Zt=function(ie){var ke=ie.disabled,He=ie.label,_e=ie.value,hn=!ni&&!ke,mi=He;if(typeof Rr=="number"&&(typeof He=="string"||typeof He=="number")){var Et=String(mi);Et.length>Rr&&(mi="".concat(Et.slice(0,Rr),"..."))}var qt=function(ae){ae&&ae.stopPropagation(),Vi(ie)};return typeof dn=="function"?Bt(_e,mi,ke,hn,qt):on(ie,mi,ke,hn,qt)},Gt=function(ie){if(!nn.length)return null;var ke=typeof Hr=="function"?Hr(ie):Hr;return typeof dn=="function"?Bt(void 0,ke,!1,!1,void 0,!0):on({title:ke},ke,!1)},he=Mt.createElement("div",{className:"".concat(io,"-search"),style:{width:wi},onFocus:function(){qr(!0)},onBlur:function(){qr(!1)}},Mt.createElement(De,{ref:Gn,open:Vn,prefixCls:ee,id:hi,inputElement:null,disabled:ni,autoFocus:gi,autoComplete:Li,editable:Rn,activeDescendantId:Zi,value:$e,onKeyDown:cr,onMouseDown:Ar,onChange:Qi,onPaste:qi,onCompositionStart:ji,onCompositionEnd:er,onBlur:Hi,tabIndex:tr,attrs:(0,Vt.Z)(Te,!0)}),Mt.createElement("span",{ref:cn,className:"".concat(io,"-search-mirror"),"aria-hidden":!0},$e,"\xA0")),Be=Mt.createElement(Jt.Z,{prefixCls:"".concat(io,"-overflow"),data:nn,renderItem:Zt,renderRest:Gt,suffix:he,itemKey:mn,maxCount:wn});return Mt.createElement("span",{className:"".concat(io,"-wrap")},Be,!nn.length&&!$e&&Mt.createElement("span",{className:"".concat(io,"-placeholder")},ai))},ln=jn,qn=function(Te){var hi=Te.inputElement,ee=Te.prefixCls,nn=Te.id,Vn=Te.inputRef,_n=Te.disabled,Ke=Te.autoFocus,Gn=Te.autoComplete,ai=Te.activeDescendantId,ni=Te.mode,ki=Te.open,xi=Te.values,gi=Te.placeholder,Li=Te.tabIndex,Zi=Te.showSearch,tr=Te.searchValue,zi=Te.activeValue,wn=Te.maxLength,Rr=Te.onInputKeyDown,Lr=Te.onInputMouseDown,Hr=Te.onInputChange,dn=Te.onInputPaste,Mi=Te.onInputCompositionStart,Vi=Te.onInputCompositionEnd,Qi=Te.onInputBlur,qi=Te.title,cr=Mt.useState(!1),Ar=(0,be.Z)(cr,2),ji=Ar[0],er=Ar[1],Hi=ni==="combobox",cn=Hi||Zi,lr=xi[0],xn=tr||"";Hi&&zi&&!ji&&(xn=zi),Mt.useEffect(function(){Hi&&er(!1)},[Hi,zi]);var wi=ni!=="combobox"&&!ki&&!Zi?!1:!!xn,Xi=qi===void 0?Se(lr):qi,Sr=Mt.useMemo(function(){return lr?null:Mt.createElement("span",{className:"".concat(ee,"-selection-placeholder"),style:wi?{visibility:"hidden"}:void 0},gi)},[lr,wi,gi,ee]);return Mt.createElement("span",{className:"".concat(ee,"-selection-wrap")},Mt.createElement("span",{className:"".concat(ee,"-selection-search")},Mt.createElement(De,{ref:Vn,prefixCls:ee,id:nn,open:ki,inputElement:hi,disabled:_n,autoFocus:Ke,autoComplete:Gn,editable:cn,activeDescendantId:ai,value:xn,onKeyDown:Rr,onMouseDown:Lr,onChange:function(co){er(!0),Hr(co)},onPaste:dn,onCompositionStart:Mi,onCompositionEnd:Vi,onBlur:Qi,tabIndex:Li,attrs:(0,Vt.Z)(Te,!0),maxLength:Hi?wn:void 0})),!Hi&&lr?Mt.createElement("span",{className:"".concat(ee,"-selection-item"),title:Xi,style:wi?{visibility:"hidden"}:void 0},lr.label):null,Sr)},Dn=qn,fi=function(Te,hi){var ee=(0,Mt.useRef)(null),nn=(0,Mt.useRef)(!1),Vn=Te.prefixCls,_n=Te.open,Ke=Te.mode,Gn=Te.showSearch,ai=Te.tokenWithEnter,ni=Te.disabled,ki=Te.prefix,xi=Te.autoClearSearchValue,gi=Te.onSearch,Li=Te.onSearchSubmit,Zi=Te.onToggleOpen,tr=Te.onInputKeyDown,zi=Te.onInputBlur,wn=Te.domRef;Mt.useImperativeHandle(hi,function(){return{focus:function(Xi){ee.current.focus(Xi)},blur:function(){ee.current.blur()}}});var Rr=bt(0),Lr=(0,be.Z)(Rr,2),Hr=Lr[0],dn=Lr[1],Mi=function(Xi){var Sr=Xi.which,ao=ee.current instanceof HTMLTextAreaElement;!ao&&_n&&(Sr===Ht.Z.UP||Sr===Ht.Z.DOWN)&&Xi.preventDefault(),tr&&tr(Xi),Sr===Ht.Z.ENTER&&Ke==="tags"&&!nn.current&&!_n&&(Li==null||Li(Xi.target.value)),!(ao&&!_n&&~[Ht.Z.UP,Ht.Z.DOWN,Ht.Z.LEFT,Ht.Z.RIGHT].indexOf(Sr))&&se(Sr)&&Zi(!0)},Vi=function(){dn(!0)},Qi=(0,Mt.useRef)(null),qi=function(Xi){gi(Xi,!0,nn.current)!==!1&&Zi(!0)},cr=function(){nn.current=!0},Ar=function(Xi){nn.current=!1,Ke!=="combobox"&&qi(Xi.target.value)},ji=function(Xi){var Sr=Xi.target.value;if(ai&&Qi.current&&/[\r\n]/.test(Qi.current)){var ao=Qi.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Sr=Sr.replace(ao,Qi.current)}Qi.current=null,qi(Sr)},er=function(Xi){var Sr=Xi.clipboardData,ao=Sr==null?void 0:Sr.getData("text");Qi.current=ao||""},Hi=function(Xi){var Sr=Xi.target;if(Sr!==ee.current){var ao=document.body.style.msTouchAction!==void 0;ao?setTimeout(function(){ee.current.focus()}):ee.current.focus()}},cn=function(Xi){var Sr=Hr();Xi.target!==ee.current&&!Sr&&!(Ke==="combobox"&&ni)&&Xi.preventDefault(),(Ke!=="combobox"&&(!Gn||!Sr)||!_n)&&(_n&&xi!==!1&&gi("",!0,!1),Zi())},lr={inputRef:ee,onInputKeyDown:Mi,onInputMouseDown:Vi,onInputChange:ji,onInputPaste:er,onInputCompositionStart:cr,onInputCompositionEnd:Ar,onInputBlur:zi},xn=Ke==="multiple"||Ke==="tags"?Mt.createElement(ln,(0,yt.Z)({},Te,lr)):Mt.createElement(Dn,(0,yt.Z)({},Te,lr));return Mt.createElement("div",{ref:wn,className:"".concat(Vn,"-selector"),onClick:Hi,onMouseDown:cn},ki&&Mt.createElement("div",{className:"".concat(Vn,"-prefix")},ki),xn)},Ve=Mt.forwardRef(fi),On=Ve,Pe=Dt(65352),Ai=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Xn=function(Te){var hi=Te===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:hi,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:hi,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:hi,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:hi,adjustY:1},htmlRegion:"scroll"}}},Rt=function(Te,hi){var ee=Te.prefixCls,nn=Te.disabled,Vn=Te.visible,_n=Te.children,Ke=Te.popupElement,Gn=Te.animation,ai=Te.transitionName,ni=Te.dropdownStyle,ki=Te.dropdownClassName,xi=Te.direction,gi=xi===void 0?"ltr":xi,Li=Te.placement,Zi=Te.builtinPlacements,tr=Te.dropdownMatchSelectWidth,zi=Te.dropdownRender,wn=Te.dropdownAlign,Rr=Te.getPopupContainer,Lr=Te.empty,Hr=Te.getTriggerDOMNode,dn=Te.onPopupVisibleChange,Mi=Te.onPopupMouseEnter,Vi=(0,jt.Z)(Te,Ai),Qi="".concat(ee,"-dropdown"),qi=Ke;zi&&(qi=zi(Ke));var cr=Mt.useMemo(function(){return Zi||Xn(tr)},[Zi,tr]),Ar=Gn?"".concat(Qi,"-").concat(Gn):ai,ji=typeof tr=="number",er=Mt.useMemo(function(){return ji?null:tr===!1?"minWidth":"width"},[tr,ji]),Hi=ni;ji&&(Hi=(0,Fe.Z)((0,Fe.Z)({},Hi),{},{width:tr}));var cn=Mt.useRef(null);return Mt.useImperativeHandle(hi,function(){return{getPopupElement:function(){var xn;return(xn=cn.current)===null||xn===void 0?void 0:xn.popupElement}}}),Mt.createElement(Pe.Z,(0,yt.Z)({},Vi,{showAction:dn?["click"]:[],hideAction:dn?["click"]:[],popupPlacement:Li||(gi==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:cr,prefixCls:Qi,popupTransitionName:Ar,popup:Mt.createElement("div",{onMouseEnter:Mi},qi),ref:cn,stretch:er,popupAlign:wn,popupVisible:Vn,getPopupContainer:Rr,popupClassName:Yt()(ki,(0,re.Z)({},"".concat(Qi,"-empty"),Lr)),popupStyle:Hi,getTriggerDOMNode:Hr,onPopupVisibleChange:dn}),_n)},At=Mt.forwardRef(Rt),wt=At,Tt=Dt(68413);function Kt(fe,Te){var hi=fe.key,ee;return"value"in fe&&(ee=fe.value),hi!=null?hi:ee!==void 0?ee:"rc-index-key-".concat(Te)}function kt(fe){return typeof fe!="undefined"&&!Number.isNaN(fe)}function $t(fe,Te){var hi=fe||{},ee=hi.label,nn=hi.value,Vn=hi.options,_n=hi.groupLabel,Ke=ee||(Te?"children":"label");return{label:Ke,value:nn||"value",options:Vn||"options",groupLabel:_n||Ke}}function un(fe){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},hi=Te.fieldNames,ee=Te.childrenAsData,nn=[],Vn=$t(hi,!1),_n=Vn.label,Ke=Vn.value,Gn=Vn.options,ai=Vn.groupLabel;function ni(ki,xi){Array.isArray(ki)&&ki.forEach(function(gi){if(xi||!(Gn in gi)){var Li=gi[Ke];nn.push({key:Kt(gi,nn.length),groupOption:xi,data:gi,label:gi[_n],value:Li})}else{var Zi=gi[ai];Zi===void 0&&ee&&(Zi=gi.label),nn.push({key:Kt(gi,nn.length),group:!0,data:gi,label:Zi}),ni(gi[Gn],!0)}})}return ni(fe,!1),nn}function Ie(fe){var Te=(0,Fe.Z)({},fe);return"props"in Te||Object.defineProperty(Te,"props",{get:function(){return(0,Ce.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Te}}),Te}var Ue=function(Te,hi,ee){if(!hi||!hi.length)return null;var nn=!1,Vn=function Ke(Gn,ai){var ni=(0,Tt.Z)(ai),ki=ni[0],xi=ni.slice(1);if(!ki)return[Gn];var gi=Gn.split(ki);return nn=nn||gi.length>1,gi.reduce(function(Li,Zi){return[].concat((0,te.Z)(Li),(0,te.Z)(Ke(Zi,xi)))},[]).filter(Boolean)},_n=Vn(Te,hi);return nn?typeof ee!="undefined"?_n.slice(0,ee):_n:null},ne=Mt.createContext(null),Oe=ne;function Ne(fe){var Te=fe.visible,hi=fe.values;if(!Te)return null;var ee=50;return Mt.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(hi.slice(0,ee).map(function(nn){var Vn=nn.label,_n=nn.value;return["number","string"].includes((0,ge.Z)(Vn))?Vn:_n}).join(", ")),hi.length>ee?", ...":null)}var Xe=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],En=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],In=function(Te){return Te==="tags"||Te==="multiple"},An=Mt.forwardRef(function(fe,Te){var hi,ee=fe.id,nn=fe.prefixCls,Vn=fe.className,_n=fe.showSearch,Ke=fe.tagRender,Gn=fe.direction,ai=fe.omitDomProps,ni=fe.displayValues,ki=fe.onDisplayValuesChange,xi=fe.emptyOptions,gi=fe.notFoundContent,Li=gi===void 0?"Not Found":gi,Zi=fe.onClear,tr=fe.mode,zi=fe.disabled,wn=fe.loading,Rr=fe.getInputElement,Lr=fe.getRawInputElement,Hr=fe.open,dn=fe.defaultOpen,Mi=fe.onDropdownVisibleChange,Vi=fe.activeValue,Qi=fe.onActiveValueChange,qi=fe.activeDescendantId,cr=fe.searchValue,Ar=fe.autoClearSearchValue,ji=fe.onSearch,er=fe.onSearchSplit,Hi=fe.tokenSeparators,cn=fe.allowClear,lr=fe.prefix,xn=fe.suffixIcon,wi=fe.clearIcon,Xi=fe.OptionList,Sr=fe.animation,ao=fe.transitionName,co=fe.dropdownStyle,qr=fe.dropdownClassName,io=fe.dropdownMatchSelectWidth,$e=fe.dropdownRender,Rn=fe.dropdownAlign,on=fe.placement,Bt=fe.builtinPlacements,Zt=fe.getPopupContainer,Gt=fe.showAction,he=Gt===void 0?[]:Gt,Be=fe.onFocus,rn=fe.onBlur,ie=fe.onKeyUp,ke=fe.onKeyDown,He=fe.onMouseDown,_e=(0,jt.Z)(fe,Xe),hn=In(tr),mi=(_n!==void 0?_n:hn)||tr==="combobox",Et=(0,Fe.Z)({},_e);En.forEach(function(br){delete Et[br]}),ai==null||ai.forEach(function(br){delete Et[br]});var qt=Mt.useState(!1),zt=(0,be.Z)(qt,2),ae=zt[0],de=zt[1];Mt.useEffect(function(){de((0,Nt.Z)())},[]);var je=Mt.useRef(null),Ye=Mt.useRef(null),tn=Mt.useRef(null),Ln=Mt.useRef(null),Bn=Mt.useRef(null),Pn=Mt.useRef(!1),ri=St(),Si=(0,be.Z)(ri,3),ue=Si[0],Un=Si[1],si=Si[2];Mt.useImperativeHandle(Te,function(){var br,Ur;return{focus:(br=Ln.current)===null||br===void 0?void 0:br.focus,blur:(Ur=Ln.current)===null||Ur===void 0?void 0:Ur.blur,scrollTo:function(Mr){var $r;return($r=Bn.current)===null||$r===void 0?void 0:$r.scrollTo(Mr)},nativeElement:je.current||Ye.current}});var zn=Mt.useMemo(function(){var br;if(tr!=="combobox")return cr;var Ur=(br=ni[0])===null||br===void 0?void 0:br.value;return typeof Ur=="string"||typeof Ur=="number"?String(Ur):""},[cr,tr,ni]),ci=tr==="combobox"&&typeof Rr=="function"&&Rr()||null,vi=typeof Lr=="function"&&Lr(),Ti=(0,nt.x1)(Ye,vi==null||(hi=vi.props)===null||hi===void 0?void 0:hi.ref),Fi=Mt.useState(!1),Ii=(0,be.Z)(Fi,2),Bi=Ii[0],gr=Ii[1];(0,We.Z)(function(){gr(!0)},[]);var Fr=(0,Ze.Z)(!1,{defaultValue:dn,value:Hr}),zr=(0,be.Z)(Fr,2),Zr=zr[0],Di=zr[1],wr=Bi?Zr:!1,Cr=!Li&&xi;(zi||Cr&&wr&&tr==="combobox")&&(wr=!1);var Ir=Cr?!1:wr,Gi=Mt.useCallback(function(br){var Ur=br!==void 0?br:!wr;zi||(Di(Ur),wr!==Ur&&(Mi==null||Mi(Ur)))},[zi,wr,Di,Mi]),nr=Mt.useMemo(function(){return(Hi||[]).some(function(br){return[`
`,`\r
`].includes(br)})},[Hi]),Mn=Mt.useContext(Oe)||{},_i=Mn.maxCount,ar=Mn.rawValues,Dr=function(Ur,fr,Mr){if(!(hn&&kt(_i)&&(ar==null?void 0:ar.size)>=_i)){var $r=!0,yr=Ur;Qi==null||Qi(null);var Ei=Ue(Ur,Hi,kt(_i)?_i-ar.size:void 0),Qo=Mr?null:Ei;return tr!=="combobox"&&Qo&&(yr="",er==null||er(Qo),Gi(!1),$r=!1),ji&&zn!==yr&&ji(yr,{source:fr?"typing":"effect"}),$r}},Br=function(Ur){!Ur||!Ur.trim()||ji(Ur,{source:"submit"})};Mt.useEffect(function(){!wr&&!hn&&tr!=="combobox"&&Dr("",!1,!1)},[wr]),Mt.useEffect(function(){Zr&&zi&&Di(!1),zi&&!Pn.current&&Un(!1)},[zi]);var Pr=bt(),Ri=(0,be.Z)(Pr,2),kr=Ri[0],Yr=Ri[1],Jr=Mt.useRef(!1),jr=function(Ur){var fr=kr(),Mr=Ur.key,$r=Mr==="Enter";if($r&&(tr!=="combobox"&&Ur.preventDefault(),wr||Gi(!0)),Yr(!!zn),Mr==="Backspace"&&!fr&&hn&&!zn&&ni.length){for(var yr=(0,te.Z)(ni),Ei=null,Qo=yr.length-1;Qo>=0;Qo-=1){var me=yr[Qo];if(!me.disabled){yr.splice(Qo,1),Ei=me;break}}Ei&&ki(yr,{type:"remove",values:[Ei]})}for(var Wn=arguments.length,pa=new Array(Wn>1?Wn-1:0),Sa=1;Sa<Wn;Sa++)pa[Sa-1]=arguments[Sa];if(wr&&(!$r||!Jr.current)){var sa;$r&&(Jr.current=!0),(sa=Bn.current)===null||sa===void 0||sa.onKeyDown.apply(sa,[Ur].concat(pa))}ke==null||ke.apply(void 0,[Ur].concat(pa))},so=function(Ur){for(var fr=arguments.length,Mr=new Array(fr>1?fr-1:0),$r=1;$r<fr;$r++)Mr[$r-1]=arguments[$r];if(wr){var yr;(yr=Bn.current)===null||yr===void 0||yr.onKeyUp.apply(yr,[Ur].concat(Mr))}Ur.key==="Enter"&&(Jr.current=!1),ie==null||ie.apply(void 0,[Ur].concat(Mr))},_r=function(Ur){var fr=ni.filter(function(Mr){return Mr!==Ur});ki(fr,{type:"remove",values:[Ur]})},Vr=function(){Jr.current=!1},fo=Mt.useRef(!1),Ao=function(){Un(!0),zi||(Be&&!fo.current&&Be.apply(void 0,arguments),he.includes("focus")&&Gi(!0)),fo.current=!0},Jo=function(){Pn.current=!0,Un(!1,function(){fo.current=!1,Pn.current=!1,Gi(!1)}),!zi&&(zn&&(tr==="tags"?ji(zn,{source:"submit"}):tr==="multiple"&&ji("",{source:"blur"})),rn&&rn.apply(void 0,arguments))},ro=[];Mt.useEffect(function(){return function(){ro.forEach(function(br){return clearTimeout(br)}),ro.splice(0,ro.length)}},[]);var na=function(Ur){var fr,Mr=Ur.target,$r=(fr=tn.current)===null||fr===void 0?void 0:fr.getPopupElement();if($r&&$r.contains(Mr)){var yr=setTimeout(function(){var Wn=ro.indexOf(yr);if(Wn!==-1&&ro.splice(Wn,1),si(),!ae&&!$r.contains(document.activeElement)){var pa;(pa=Ln.current)===null||pa===void 0||pa.focus()}});ro.push(yr)}for(var Ei=arguments.length,Qo=new Array(Ei>1?Ei-1:0),me=1;me<Ei;me++)Qo[me-1]=arguments[me];He==null||He.apply(void 0,[Ur].concat(Qo))},mo=Mt.useState({}),ra=(0,be.Z)(mo,2),Po=ra[1];function Vo(){Po({})}var jo;vi&&(jo=function(Ur){Gi(Ur)}),It(function(){var br;return[je.current,(br=tn.current)===null||br===void 0?void 0:br.getPopupElement()]},Ir,Gi,!!vi);var Yo=Mt.useMemo(function(){return(0,Fe.Z)((0,Fe.Z)({},fe),{},{notFoundContent:Li,open:wr,triggerOpen:Ir,id:ee,showSearch:mi,multiple:hn,toggleOpen:Gi})},[fe,Li,Ir,wr,ee,mi,hn,Gi]),Bo=!!xn||wn,bo;Bo&&(bo=Mt.createElement(dt,{className:Yt()("".concat(nn,"-arrow"),(0,re.Z)({},"".concat(nn,"-arrow-loading"),wn)),customizeIcon:xn,customizeIconProps:{loading:wn,searchValue:zn,open:wr,focused:ue,showSearch:mi}}));var oa=function(){var Ur;Zi==null||Zi(),(Ur=Ln.current)===null||Ur===void 0||Ur.focus(),ki([],{type:"clear",values:ni}),Dr("",!1,!1)},ya=lt(nn,oa,ni,cn,wi,zi,zn,tr),Wo=ya.allowClear,Ba=ya.clearIcon,Fo=Mt.createElement(Xi,{ref:Bn}),yo=Yt()(nn,Vn,(0,re.Z)((0,re.Z)((0,re.Z)((0,re.Z)((0,re.Z)((0,re.Z)((0,re.Z)((0,re.Z)((0,re.Z)((0,re.Z)({},"".concat(nn,"-focused"),ue),"".concat(nn,"-multiple"),hn),"".concat(nn,"-single"),!hn),"".concat(nn,"-allow-clear"),cn),"".concat(nn,"-show-arrow"),Bo),"".concat(nn,"-disabled"),zi),"".concat(nn,"-loading"),wn),"".concat(nn,"-open"),wr),"".concat(nn,"-customize-input"),ci),"".concat(nn,"-show-search"),mi)),vo=Mt.createElement(wt,{ref:tn,disabled:zi,prefixCls:nn,visible:Ir,popupElement:Fo,animation:Sr,transitionName:ao,dropdownStyle:co,dropdownClassName:qr,direction:Gn,dropdownMatchSelectWidth:io,dropdownRender:$e,dropdownAlign:Rn,placement:on,builtinPlacements:Bt,getPopupContainer:Zt,empty:xi,getTriggerDOMNode:function(Ur){return Ye.current||Ur},onPopupVisibleChange:jo,onPopupMouseEnter:Vo},vi?Mt.cloneElement(vi,{ref:Ti}):Mt.createElement(On,(0,yt.Z)({},fe,{domRef:Ye,prefixCls:nn,inputElement:ci,ref:Ln,id:ee,prefix:lr,showSearch:mi,autoClearSearchValue:Ar,mode:tr,activeDescendantId:qi,tagRender:Ke,values:ni,open:wr,onToggleOpen:Gi,activeValue:Vi,searchValue:zn,onSearch:Dr,onSearchSubmit:Br,onRemove:_r,tokenWithEnter:nr,onInputBlur:Vr}))),Go;return vi?Go=vo:Go=Mt.createElement("div",(0,yt.Z)({className:yo},Et,{ref:je,onMouseDown:na,onKeyDown:jr,onKeyUp:so,onFocus:Ao,onBlur:Jo}),Mt.createElement(Ne,{visible:ue&&!wr,values:ni}),vo,bo,Wo&&Ba),Mt.createElement(gt.Provider,{value:Yo},Go)}),en=An,ze=function(){return null};ze.isSelectOptGroup=!0;var qe=ze,pn=function(){return null};pn.isSelectOption=!0;var bn=pn,Yn=Dt(80547),ti=Dt(2738),yi=Dt(45680);function vn(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Pi=["disabled","title","children","style","className"];function Ki(fe){return typeof fe=="string"||typeof fe=="number"}var pr=function(Te,hi){var ee=mt(),nn=ee.prefixCls,Vn=ee.id,_n=ee.open,Ke=ee.multiple,Gn=ee.mode,ai=ee.searchValue,ni=ee.toggleOpen,ki=ee.notFoundContent,xi=ee.onPopupScroll,gi=Mt.useContext(Oe),Li=gi.maxCount,Zi=gi.flattenOptions,tr=gi.onActiveValue,zi=gi.defaultActiveFirstOption,wn=gi.onSelect,Rr=gi.menuItemSelectedIcon,Lr=gi.rawValues,Hr=gi.fieldNames,dn=gi.virtual,Mi=gi.direction,Vi=gi.listHeight,Qi=gi.listItemHeight,qi=gi.optionRender,cr="".concat(nn,"-item"),Ar=(0,Yn.Z)(function(){return Zi},[_n,Zi],function(Gt,he){return he[0]&&Gt[1]!==he[1]}),ji=Mt.useRef(null),er=Mt.useMemo(function(){return Ke&&kt(Li)&&(Lr==null?void 0:Lr.size)>=Li},[Ke,Li,Lr==null?void 0:Lr.size]),Hi=function(he){he.preventDefault()},cn=function(he){var Be;(Be=ji.current)===null||Be===void 0||Be.scrollTo(typeof he=="number"?{index:he}:he)},lr=Mt.useCallback(function(Gt){return Gn==="combobox"?!1:Lr.has(Gt)},[Gn,(0,te.Z)(Lr).toString(),Lr.size]),xn=function(he){for(var Be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,rn=Ar.length,ie=0;ie<rn;ie+=1){var ke=(he+ie*Be+rn)%rn,He=Ar[ke]||{},_e=He.group,hn=He.data;if(!_e&&!(hn!=null&&hn.disabled)&&(lr(hn.value)||!er))return ke}return-1},wi=Mt.useState(function(){return xn(0)}),Xi=(0,be.Z)(wi,2),Sr=Xi[0],ao=Xi[1],co=function(he){var Be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;ao(he);var rn={source:Be?"keyboard":"mouse"},ie=Ar[he];if(!ie){tr(null,-1,rn);return}tr(ie.value,he,rn)};(0,Mt.useEffect)(function(){co(zi!==!1?xn(0):-1)},[Ar.length,ai]);var qr=Mt.useCallback(function(Gt){return Gn==="combobox"?String(Gt).toLowerCase()===ai.toLowerCase():Lr.has(Gt)},[Gn,ai,(0,te.Z)(Lr).toString(),Lr.size]);(0,Mt.useEffect)(function(){var Gt=setTimeout(function(){if(!Ke&&_n&&Lr.size===1){var Be=Array.from(Lr)[0],rn=Ar.findIndex(function(ie){var ke=ie.data;return ke.value===Be});rn!==-1&&(co(rn),cn(rn))}});if(_n){var he;(he=ji.current)===null||he===void 0||he.scrollTo(void 0)}return function(){return clearTimeout(Gt)}},[_n,ai]);var io=function(he){he!==void 0&&wn(he,{selected:!Lr.has(he)}),Ke||ni(!1)};if(Mt.useImperativeHandle(hi,function(){return{onKeyDown:function(he){var Be=he.which,rn=he.ctrlKey;switch(Be){case Ht.Z.N:case Ht.Z.P:case Ht.Z.UP:case Ht.Z.DOWN:{var ie=0;if(Be===Ht.Z.UP?ie=-1:Be===Ht.Z.DOWN?ie=1:vn()&&rn&&(Be===Ht.Z.N?ie=1:Be===Ht.Z.P&&(ie=-1)),ie!==0){var ke=xn(Sr+ie,ie);cn(ke),co(ke,!0)}break}case Ht.Z.TAB:case Ht.Z.ENTER:{var He,_e=Ar[Sr];_e&&!(_e!=null&&(He=_e.data)!==null&&He!==void 0&&He.disabled)&&!er?io(_e.value):io(void 0),_n&&he.preventDefault();break}case Ht.Z.ESC:ni(!1),_n&&he.stopPropagation()}},onKeyUp:function(){},scrollTo:function(he){cn(he)}}}),Ar.length===0)return Mt.createElement("div",{role:"listbox",id:"".concat(Vn,"_list"),className:"".concat(cr,"-empty"),onMouseDown:Hi},ki);var $e=Object.keys(Hr).map(function(Gt){return Hr[Gt]}),Rn=function(he){return he.label};function on(Gt,he){var Be=Gt.group;return{role:Be?"presentation":"option",id:"".concat(Vn,"_list_").concat(he)}}var Bt=function(he){var Be=Ar[he];if(!Be)return null;var rn=Be.data||{},ie=rn.value,ke=Be.group,He=(0,Vt.Z)(rn,!0),_e=Rn(Be);return Be?Mt.createElement("div",(0,yt.Z)({"aria-label":typeof _e=="string"&&!ke?_e:null},He,{key:he},on(Be,he),{"aria-selected":qr(ie)}),ie):null},Zt={role:"listbox",id:"".concat(Vn,"_list")};return Mt.createElement(Mt.Fragment,null,dn&&Mt.createElement("div",(0,yt.Z)({},Zt,{style:{height:0,width:0,overflow:"hidden"}}),Bt(Sr-1),Bt(Sr),Bt(Sr+1)),Mt.createElement(yi.Z,{itemKey:"key",ref:ji,data:Ar,height:Vi,itemHeight:Qi,fullHeight:!1,onMouseDown:Hi,onScroll:xi,virtual:dn,direction:Mi,innerProps:dn?null:Zt},function(Gt,he){var Be=Gt.group,rn=Gt.groupOption,ie=Gt.data,ke=Gt.label,He=Gt.value,_e=ie.key;if(Be){var hn,mi=(hn=ie.title)!==null&&hn!==void 0?hn:Ki(ke)?ke.toString():void 0;return Mt.createElement("div",{className:Yt()(cr,"".concat(cr,"-group"),ie.className),title:mi},ke!==void 0?ke:_e)}var Et=ie.disabled,qt=ie.title,zt=ie.children,ae=ie.style,de=ie.className,je=(0,jt.Z)(ie,Pi),Ye=(0,ti.Z)(je,$e),tn=lr(He),Ln=Et||!tn&&er,Bn="".concat(cr,"-option"),Pn=Yt()(cr,Bn,de,(0,re.Z)((0,re.Z)((0,re.Z)((0,re.Z)({},"".concat(Bn,"-grouped"),rn),"".concat(Bn,"-active"),Sr===he&&!Ln),"".concat(Bn,"-disabled"),Ln),"".concat(Bn,"-selected"),tn)),ri=Rn(Gt),Si=!Rr||typeof Rr=="function"||tn,ue=typeof ri=="number"?ri:ri||He,Un=Ki(ue)?ue.toString():void 0;return qt!==void 0&&(Un=qt),Mt.createElement("div",(0,yt.Z)({},(0,Vt.Z)(Ye),dn?{}:on(Gt,he),{"aria-selected":qr(He),className:Pn,title:Un,onMouseMove:function(){Sr===he||Ln||co(he)},onClick:function(){Ln||io(He)},style:ae}),Mt.createElement("div",{className:"".concat(Bn,"-content")},typeof qi=="function"?qi(Gt,{index:he}):ue),Mt.isValidElement(Rr)||tn,Si&&Mt.createElement(dt,{className:"".concat(cr,"-option-state"),customizeIcon:Rr,customizeIconProps:{value:He,disabled:Ln,isSelected:tn}},tn?"\u2713":null))}))},or=Mt.forwardRef(pr),ir=or,vr=function(fe,Te){var hi=Mt.useRef({values:new Map,options:new Map}),ee=Mt.useMemo(function(){var Vn=hi.current,_n=Vn.values,Ke=Vn.options,Gn=fe.map(function(ki){if(ki.label===void 0){var xi;return(0,Fe.Z)((0,Fe.Z)({},ki),{},{label:(xi=_n.get(ki.value))===null||xi===void 0?void 0:xi.label})}return ki}),ai=new Map,ni=new Map;return Gn.forEach(function(ki){ai.set(ki.value,ki),ni.set(ki.value,Te.get(ki.value)||Ke.get(ki.value))}),hi.current.values=ai,hi.current.options=ni,Gn},[fe,Te]),nn=Mt.useCallback(function(Vn){return Te.get(Vn)||hi.current.options.get(Vn)},[Te]);return[ee,nn]};function ur(fe,Te){return Le(fe).join("").toUpperCase().includes(Te)}var hr=function(fe,Te,hi,ee,nn){return Mt.useMemo(function(){if(!hi||ee===!1)return fe;var Vn=Te.options,_n=Te.label,Ke=Te.value,Gn=[],ai=typeof ee=="function",ni=hi.toUpperCase(),ki=ai?ee:function(gi,Li){return nn?ur(Li[nn],ni):Li[Vn]?ur(Li[_n!=="children"?_n:"label"],ni):ur(Li[Ke],ni)},xi=ai?function(gi){return Ie(gi)}:function(gi){return gi};return fe.forEach(function(gi){if(gi[Vn]){var Li=ki(hi,xi(gi));if(Li)Gn.push(gi);else{var Zi=gi[Vn].filter(function(tr){return ki(hi,xi(tr))});Zi.length&&Gn.push((0,Fe.Z)((0,Fe.Z)({},gi),{},(0,re.Z)({},Vn,Zi)))}return}ki(hi,xi(gi))&&Gn.push(gi)}),Gn},[fe,ee,nn,hi,Te])},Ji=Dt(69582),xr=Dt(11592),Ct=["children","value"],yn=["children"];function Zn(fe){var Te=fe,hi=Te.key,ee=Te.props,nn=ee.children,Vn=ee.value,_n=(0,jt.Z)(ee,Ct);return(0,Fe.Z)({key:hi,value:Vn!==void 0?Vn:hi,children:nn},_n)}function dr(fe){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,xr.Z)(fe).map(function(hi,ee){if(!Mt.isValidElement(hi)||!hi.type)return null;var nn=hi,Vn=nn.type.isSelectOptGroup,_n=nn.key,Ke=nn.props,Gn=Ke.children,ai=(0,jt.Z)(Ke,yn);return Te||!Vn?Zn(hi):(0,Fe.Z)((0,Fe.Z)({key:"__RC_SELECT_GRP__".concat(_n===null?ee:_n,"__"),label:_n},ai),{},{options:dr(Gn)})}).filter(function(hi){return hi})}var sr=function(Te,hi,ee,nn,Vn){return Mt.useMemo(function(){var _n=Te,Ke=!Te;Ke&&(_n=dr(hi));var Gn=new Map,ai=new Map,ni=function(gi,Li,Zi){Zi&&typeof Zi=="string"&&gi.set(Li[Zi],Li)},ki=function xi(gi){for(var Li=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Zi=0;Zi<gi.length;Zi+=1){var tr=gi[Zi];!tr[ee.options]||Li?(Gn.set(tr[ee.value],tr),ni(ai,tr,ee.label),ni(ai,tr,nn),ni(ai,tr,Vn)):xi(tr[ee.options],!0)}};return ki(_n),{options:_n,valueOptions:Gn,labelOptions:ai}},[Te,hi,ee,nn,Vn])},Oi=sr;function Nn(fe){var Te=Mt.useRef();Te.current=fe;var hi=Mt.useCallback(function(){return Te.current.apply(Te,arguments)},[]);return hi}function Cn(fe){var Te=fe.mode,hi=fe.options,ee=fe.children,nn=fe.backfill,Vn=fe.allowClear,_n=fe.placeholder,Ke=fe.getInputElement,Gn=fe.showSearch,ai=fe.onSearch,ni=fe.defaultOpen,ki=fe.autoFocus,xi=fe.labelInValue,gi=fe.value,Li=fe.inputValue,Zi=fe.optionLabelProp,tr=isMultiple(Te),zi=Gn!==void 0?Gn:tr||Te==="combobox",wn=hi||convertChildrenToData(ee);if(warning(Te!=="tags"||wn.every(function(dn){return!dn.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Te==="tags"||Te==="combobox"){var Rr=wn.some(function(dn){return dn.options?dn.options.some(function(Mi){return typeof("value"in Mi?Mi.value:Mi.key)=="number"}):typeof("value"in dn?dn.value:dn.key)=="number"});warning(!Rr,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Te!=="combobox"||!Zi,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Te==="combobox"||!nn,"`backfill` only works with `combobox` mode."),warning(Te==="combobox"||!Ke,"`getInputElement` only work with `combobox` mode."),noteOnce(Te!=="combobox"||!Ke||!Vn||!_n,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),ai&&!zi&&Te!=="combobox"&&Te!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!ni||ki,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),gi!=null){var Lr=toArray(gi);warning(!xi||Lr.every(function(dn){return _typeof(dn)==="object"&&("key"in dn||"value"in dn)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!tr||Array.isArray(gi),"`value` should be array when `mode` is `multiple` or `tags`")}if(ee){var Hr=null;toNodeArray(ee).some(function(dn){if(!React.isValidElement(dn)||!dn.type)return!1;var Mi=dn,Vi=Mi.type;if(Vi.isSelectOption)return!1;if(Vi.isSelectOptGroup){var Qi=toNodeArray(dn.props.children).every(function(qi){return!React.isValidElement(qi)||!dn.type||qi.type.isSelectOption?!0:(Hr=qi.type,!1)});return!Qi}return Hr=Vi,!0}),Hr&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Hr.displayName||Hr.name||Hr,"`.")),warning(Li===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function kn(fe,Te){if(fe){var hi=function ee(nn){for(var Vn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,_n=0;_n<nn.length;_n++){var Ke=nn[_n];if(Ke[Te==null?void 0:Te.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Vn&&Array.isArray(Ke[Te==null?void 0:Te.options])&&ee(Ke[Te==null?void 0:Te.options],!0))break}};hi(fe)}}var ve=null,ye=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],xe=["inputValue"];function Kn(fe){return!fe||(0,ge.Z)(fe)!=="object"}var $n=Mt.forwardRef(function(fe,Te){var hi=fe.id,ee=fe.mode,nn=fe.prefixCls,Vn=nn===void 0?"rc-select":nn,_n=fe.backfill,Ke=fe.fieldNames,Gn=fe.inputValue,ai=fe.searchValue,ni=fe.onSearch,ki=fe.autoClearSearchValue,xi=ki===void 0?!0:ki,gi=fe.onSelect,Li=fe.onDeselect,Zi=fe.dropdownMatchSelectWidth,tr=Zi===void 0?!0:Zi,zi=fe.filterOption,wn=fe.filterSort,Rr=fe.optionFilterProp,Lr=fe.optionLabelProp,Hr=fe.options,dn=fe.optionRender,Mi=fe.children,Vi=fe.defaultActiveFirstOption,Qi=fe.menuItemSelectedIcon,qi=fe.virtual,cr=fe.direction,Ar=fe.listHeight,ji=Ar===void 0?200:Ar,er=fe.listItemHeight,Hi=er===void 0?20:er,cn=fe.labelRender,lr=fe.value,xn=fe.defaultValue,wi=fe.labelInValue,Xi=fe.onChange,Sr=fe.maxCount,ao=(0,jt.Z)(fe,ye),co=(0,Ji.ZP)(hi),qr=In(ee),io=!!(!Hr&&Mi),$e=Mt.useMemo(function(){return zi===void 0&&ee==="combobox"?!1:zi},[zi,ee]),Rn=Mt.useMemo(function(){return $t(Ke,io)},[JSON.stringify(Ke),io]),on=(0,Ze.Z)("",{value:ai!==void 0?ai:Gn,postState:function(nr){return nr||""}}),Bt=(0,be.Z)(on,2),Zt=Bt[0],Gt=Bt[1],he=Oi(Hr,Mi,Rn,Rr,Lr),Be=he.valueOptions,rn=he.labelOptions,ie=he.options,ke=Mt.useCallback(function(Gi){var nr=Le(Gi);return nr.map(function(Mn){var _i,ar,Dr,Br,Pr;if(Kn(Mn))_i=Mn;else{var Ri;Dr=Mn.key,ar=Mn.label,_i=(Ri=Mn.value)!==null&&Ri!==void 0?Ri:Dr}var kr=Be.get(_i);if(kr){var Yr;if(ar===void 0&&(ar=kr==null?void 0:kr[Lr||Rn.label]),Dr===void 0&&(Dr=(Yr=kr==null?void 0:kr.key)!==null&&Yr!==void 0?Yr:_i),Br=kr==null?void 0:kr.disabled,Pr=kr==null?void 0:kr.title,0)var Jr}return{label:ar,value:_i,key:Dr,disabled:Br,title:Pr}})},[Rn,Lr,Be]),He=(0,Ze.Z)(xn,{value:lr}),_e=(0,be.Z)(He,2),hn=_e[0],mi=_e[1],Et=Mt.useMemo(function(){var Gi,nr=qr&&hn===null?[]:hn,Mn=ke(nr);return ee==="combobox"&&Ge((Gi=Mn[0])===null||Gi===void 0?void 0:Gi.value)?[]:Mn},[hn,ke,ee,qr]),qt=vr(Et,Be),zt=(0,be.Z)(qt,2),ae=zt[0],de=zt[1],je=Mt.useMemo(function(){if(!ee&&ae.length===1){var Gi=ae[0];if(Gi.value===null&&(Gi.label===null||Gi.label===void 0))return[]}return ae.map(function(nr){var Mn;return(0,Fe.Z)((0,Fe.Z)({},nr),{},{label:(Mn=typeof cn=="function"?cn(nr):nr.label)!==null&&Mn!==void 0?Mn:nr.value})})},[ee,ae,cn]),Ye=Mt.useMemo(function(){return new Set(ae.map(function(Gi){return Gi.value}))},[ae]);Mt.useEffect(function(){if(ee==="combobox"){var Gi,nr=(Gi=ae[0])===null||Gi===void 0?void 0:Gi.value;Gt(fn(nr)?String(nr):"")}},[ae]);var tn=Nn(function(Gi,nr){var Mn=nr!=null?nr:Gi;return(0,re.Z)((0,re.Z)({},Rn.value,Gi),Rn.label,Mn)}),Ln=Mt.useMemo(function(){if(ee!=="tags")return ie;var Gi=(0,te.Z)(ie),nr=function(_i){return Be.has(_i)};return(0,te.Z)(ae).sort(function(Mn,_i){return Mn.value<_i.value?-1:1}).forEach(function(Mn){var _i=Mn.value;nr(_i)||Gi.push(tn(_i,Mn.label))}),Gi},[tn,ie,Be,ae,ee]),Bn=hr(Ln,Rn,Zt,$e,Rr),Pn=Mt.useMemo(function(){return ee!=="tags"||!Zt||Bn.some(function(Gi){return Gi[Rr||"value"]===Zt})||Bn.some(function(Gi){return Gi[Rn.value]===Zt})?Bn:[tn(Zt)].concat((0,te.Z)(Bn))},[tn,Rr,ee,Bn,Zt,Rn]),ri=function Gi(nr){var Mn=(0,te.Z)(nr).sort(function(_i,ar){return wn(_i,ar,{searchValue:Zt})});return Mn.map(function(_i){return Array.isArray(_i.options)?(0,Fe.Z)((0,Fe.Z)({},_i),{},{options:_i.options.length>0?Gi(_i.options):_i.options}):_i})},Si=Mt.useMemo(function(){return wn?ri(Pn):Pn},[Pn,wn,Zt]),ue=Mt.useMemo(function(){return un(Si,{fieldNames:Rn,childrenAsData:io})},[Si,Rn,io]),Un=function(nr){var Mn=ke(nr);if(mi(Mn),Xi&&(Mn.length!==ae.length||Mn.some(function(Dr,Br){var Pr;return((Pr=ae[Br])===null||Pr===void 0?void 0:Pr.value)!==(Dr==null?void 0:Dr.value)}))){var _i=wi?Mn:Mn.map(function(Dr){return Dr.value}),ar=Mn.map(function(Dr){return Ie(de(Dr.value))});Xi(qr?_i:_i[0],qr?ar:ar[0])}},si=Mt.useState(null),zn=(0,be.Z)(si,2),ci=zn[0],vi=zn[1],Ti=Mt.useState(0),Fi=(0,be.Z)(Ti,2),Ii=Fi[0],Bi=Fi[1],gr=Vi!==void 0?Vi:ee!=="combobox",Fr=Mt.useCallback(function(Gi,nr){var Mn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},_i=Mn.source,ar=_i===void 0?"keyboard":_i;Bi(nr),_n&&ee==="combobox"&&Gi!==null&&ar==="keyboard"&&vi(String(Gi))},[_n,ee]),zr=function(nr,Mn,_i){var ar=function(){var _r,Vr=de(nr);return[wi?{label:Vr==null?void 0:Vr[Rn.label],value:nr,key:(_r=Vr==null?void 0:Vr.key)!==null&&_r!==void 0?_r:nr}:nr,Ie(Vr)]};if(Mn&&gi){var Dr=ar(),Br=(0,be.Z)(Dr,2),Pr=Br[0],Ri=Br[1];gi(Pr,Ri)}else if(!Mn&&Li&&_i!=="clear"){var kr=ar(),Yr=(0,be.Z)(kr,2),Jr=Yr[0],jr=Yr[1];Li(Jr,jr)}},Zr=Nn(function(Gi,nr){var Mn,_i=qr?nr.selected:!0;_i?Mn=qr?[].concat((0,te.Z)(ae),[Gi]):[Gi]:Mn=ae.filter(function(ar){return ar.value!==Gi}),Un(Mn),zr(Gi,_i),ee==="combobox"?vi(""):(!In||xi)&&(Gt(""),vi(""))}),Di=function(nr,Mn){Un(nr);var _i=Mn.type,ar=Mn.values;(_i==="remove"||_i==="clear")&&ar.forEach(function(Dr){zr(Dr.value,!1,_i)})},wr=function(nr,Mn){if(Gt(nr),vi(null),Mn.source==="submit"){var _i=(nr||"").trim();if(_i){var ar=Array.from(new Set([].concat((0,te.Z)(Ye),[_i])));Un(ar),zr(_i,!0),Gt("")}return}Mn.source!=="blur"&&(ee==="combobox"&&Un(nr),ni==null||ni(nr))},Cr=function(nr){var Mn=nr;ee!=="tags"&&(Mn=nr.map(function(ar){var Dr=rn.get(ar);return Dr==null?void 0:Dr.value}).filter(function(ar){return ar!==void 0}));var _i=Array.from(new Set([].concat((0,te.Z)(Ye),(0,te.Z)(Mn))));Un(_i),_i.forEach(function(ar){zr(ar,!0)})},Ir=Mt.useMemo(function(){var Gi=qi!==!1&&tr!==!1;return(0,Fe.Z)((0,Fe.Z)({},he),{},{flattenOptions:ue,onActiveValue:Fr,defaultActiveFirstOption:gr,onSelect:Zr,menuItemSelectedIcon:Qi,rawValues:Ye,fieldNames:Rn,virtual:Gi,direction:cr,listHeight:ji,listItemHeight:Hi,childrenAsData:io,maxCount:Sr,optionRender:dn})},[Sr,he,ue,Fr,gr,Zr,Qi,Ye,Rn,qi,tr,cr,ji,Hi,io,dn]);return Mt.createElement(Oe.Provider,{value:Ir},Mt.createElement(en,(0,yt.Z)({},ao,{id:co,prefixCls:Vn,ref:Te,omitDomProps:xe,mode:ee,displayValues:je,onDisplayValuesChange:Di,direction:cr,searchValue:Zt,onSearch:wr,autoClearSearchValue:xi,onSearchSplit:Cr,dropdownMatchSelectWidth:tr,OptionList:ir,emptyOptions:!ue.length,activeValue:ci,activeDescendantId:"".concat(co,"_list_").concat(Ii)})))}),ui=$n;ui.Option=bn,ui.OptGroup=qe;var Sn=ui,oi=Sn},63158:function(Jn,pi,Dt){"use strict";var yt=Dt(72308),te=Dt(49618),re=Dt(52487),Fe=Dt(74416),be=Dt(59301),jt=Dt(92310),ge=Dt.n(jt),Ze=Dt(18929),Ce=Dt(10228),Mt=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Re=be.forwardRef(function(Yt,We){var Nt,nt=Yt.prefixCls,et=nt===void 0?"rc-switch":nt,dt=Yt.className,lt=Yt.checked,gt=Yt.defaultChecked,mt=Yt.disabled,St=Yt.loadingIcon,bt=Yt.checkedChildren,It=Yt.unCheckedChildren,Ht=Yt.onClick,se=Yt.onChange,Vt=Yt.onKeyDown,Jt=(0,Fe.Z)(Yt,Mt),Ee=(0,Ze.Z)(!1,{value:lt,defaultValue:gt}),we=(0,re.Z)(Ee,2),De=we[0],Le=we[1];function sn(an,Se){var Qt=De;return mt||(Qt=an,Le(Qt),se==null||se(Qt,Se)),Qt}function Fn(an){an.which===Ce.Z.LEFT?sn(!1,an):an.which===Ce.Z.RIGHT&&sn(!0,an),Vt==null||Vt(an)}function fn(an){var Se=sn(!De,an);Ht==null||Ht(Se,an)}var Ge=ge()(et,dt,(Nt={},(0,te.Z)(Nt,"".concat(et,"-checked"),De),(0,te.Z)(Nt,"".concat(et,"-disabled"),mt),Nt));return be.createElement("button",(0,yt.Z)({},Jt,{type:"button",role:"switch","aria-checked":De,disabled:mt,className:Ge,ref:We,onKeyDown:Fn,onClick:fn}),St,be.createElement("span",{className:"".concat(et,"-inner")},be.createElement("span",{className:"".concat(et,"-inner-checked")},bt),be.createElement("span",{className:"".concat(et,"-inner-unchecked")},It)))});Re.displayName="Switch",pi.Z=Re},67204:function(Jn,pi,Dt){"use strict";Dt.d(pi,{R:function(){return te},w:function(){return yt}});var yt={},te="rc-table-internal-hook"},78612:function(Jn,pi,Dt){"use strict";Dt.d(pi,{L:function(){return et},Z:function(){return St}});var yt=Dt(52487),te=Dt(49618),re=Dt(80702),Fe=Dt(62853),be=Dt(77321),jt=Dt(74416),ge=Dt(11592),Ze=Dt(48736),Ce=Dt(59301),Mt=Dt(67204),Re=Dt(90494);function Yt(bt){var It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof It=="number"?It:It.endsWith("%")?bt*parseFloat(It)/100:null}function We(bt,It,Ht){return Ce.useMemo(function(){if(It&&It>0){var se=0,Vt=0;bt.forEach(function(fn){var Ge=Yt(It,fn.width);Ge?se+=Ge:Vt+=1});var Jt=Math.max(It,Ht),Ee=Math.max(Jt-se,Vt),we=Vt,De=Ee/Vt,Le=0,sn=bt.map(function(fn){var Ge=(0,be.Z)({},fn),an=Yt(It,Ge.width);if(an)Ge.width=an;else{var Se=Math.floor(De);Ge.width=we===1?Ee:Se,Ee-=Se,we-=1}return Le+=Ge.width,Ge});if(Le<Jt){var Fn=Jt/Le;Ee=Jt,sn.forEach(function(fn,Ge){var an=Math.floor(fn.width*Fn);fn.width=Ge===sn.length-1?Ee:an,Ee-=an})}return[sn,Math.max(Le,Jt)]}return[bt,It]},[bt,It,Ht])}var Nt=["children"],nt=["fixed"];function et(bt){return(0,ge.Z)(bt).filter(function(It){return Ce.isValidElement(It)}).map(function(It){var Ht=It.key,se=It.props,Vt=se.children,Jt=(0,jt.Z)(se,Nt),Ee=(0,be.Z)({key:Ht},Jt);return Vt&&(Ee.children=et(Vt)),Ee})}function dt(bt){return bt.filter(function(It){return It&&(0,Fe.Z)(It)==="object"&&!It.hidden}).map(function(It){var Ht=It.children;return Ht&&Ht.length>0?(0,be.Z)((0,be.Z)({},It),{},{children:dt(Ht)}):It})}function lt(bt){var It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return bt.filter(function(Ht){return Ht&&(0,Fe.Z)(Ht)==="object"}).reduce(function(Ht,se,Vt){var Jt=se.fixed,Ee=Jt===!0?"left":Jt,we="".concat(It,"-").concat(Vt),De=se.children;return De&&De.length>0?[].concat((0,re.Z)(Ht),(0,re.Z)(lt(De,we).map(function(Le){return(0,be.Z)({fixed:Ee},Le)}))):[].concat((0,re.Z)(Ht),[(0,be.Z)((0,be.Z)({key:we},se),{},{fixed:Ee})])},[])}function gt(bt){return bt.map(function(It){var Ht=It.fixed,se=(0,jt.Z)(It,nt),Vt=Ht;return Ht==="left"?Vt="right":Ht==="right"&&(Vt="left"),(0,be.Z)({fixed:Vt},se)})}function mt(bt,It){var Ht=bt.prefixCls,se=bt.columns,Vt=bt.children,Jt=bt.expandable,Ee=bt.expandedKeys,we=bt.columnTitle,De=bt.getRowKey,Le=bt.onTriggerExpand,sn=bt.expandIcon,Fn=bt.rowExpandable,fn=bt.expandIconColumnIndex,Ge=bt.direction,an=bt.expandRowByClick,Se=bt.columnWidth,Qt=bt.fixed,mn=bt.scrollWidth,ii=bt.clientWidth,jn=Ce.useMemo(function(){var Xn=se||et(Vt)||[];return dt(Xn.slice())},[se,Vt]),ln=Ce.useMemo(function(){if(Jt){var Xn=jn.slice();if(!Xn.includes(Mt.w)){var Rt=fn||0;Rt>=0&&(Rt||Qt==="left"||!Qt)&&Xn.splice(Rt,0,Mt.w),Qt==="right"&&Xn.splice(jn.length,0,Mt.w)}var At=Xn.indexOf(Mt.w);Xn=Xn.filter(function(kt,$t){return kt!==Mt.w||$t===At});var wt=jn[At],Tt;Qt?Tt=Qt:Tt=wt?wt.fixed:null;var Kt=(0,te.Z)((0,te.Z)((0,te.Z)((0,te.Z)((0,te.Z)((0,te.Z)({},Re.v,{className:"".concat(Ht,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",we),"fixed",Tt),"className","".concat(Ht,"-row-expand-icon-cell")),"width",Se),"render",function($t,un,Ie){var Ue=De(un,Ie),ne=Ee.has(Ue),Oe=Fn?Fn(un):!0,Ne=sn({prefixCls:Ht,expanded:ne,expandable:Oe,record:un,onExpand:Le});return an?Ce.createElement("span",{onClick:function(En){return En.stopPropagation()}},Ne):Ne});return Xn.map(function(kt){return kt===Mt.w?Kt:kt})}return jn.filter(function(kt){return kt!==Mt.w})},[Jt,jn,De,Ee,sn,Ge]),qn=Ce.useMemo(function(){var Xn=ln;return It&&(Xn=It(Xn)),Xn.length||(Xn=[{render:function(){return null}}]),Xn},[It,ln,Ge]),Dn=Ce.useMemo(function(){return Ge==="rtl"?gt(lt(qn)):lt(qn)},[qn,Ge,mn]),fi=Ce.useMemo(function(){for(var Xn=-1,Rt=Dn.length-1;Rt>=0;Rt-=1){var At=Dn[Rt].fixed;if(At==="left"||At===!0){Xn=Rt;break}}if(Xn>=0)for(var wt=0;wt<=Xn;wt+=1){var Tt=Dn[wt].fixed;if(Tt!=="left"&&Tt!==!0)return!0}var Kt=Dn.findIndex(function(un){var Ie=un.fixed;return Ie==="right"});if(Kt>=0)for(var kt=Kt;kt<Dn.length;kt+=1){var $t=Dn[kt].fixed;if($t!=="right")return!0}return!1},[Dn]),Ve=We(Dn,mn,ii),On=(0,yt.Z)(Ve,2),Pe=On[0],Ai=On[1];return[qn,Pe,Ai,fi]}var St=mt},16596:function(Jn,pi,Dt){"use strict";Dt.d(pi,{w2:function(){return yt.w},vP:function(){return ir.v},RQ:function(){return yt.R},ER:function(){return Ue},Q$:function(){return Lr},TN:function(){return co}});var yt=Dt(67204),te=Dt(52487),re=Dt(6089),Fe=Dt(34280),be=Dt(13697),jt=Dt(59301),ge=Dt(4676);function Ze($e){var Rn=jt.createContext(void 0),on=function(Zt){var Gt=Zt.value,he=Zt.children,Be=jt.useRef(Gt);Be.current=Gt;var rn=jt.useState(function(){return{getValue:function(){return Be.current},listeners:new Set}}),ie=(0,te.Z)(rn,1),ke=ie[0];return(0,Fe.Z)(function(){(0,ge.unstable_batchedUpdates)(function(){ke.listeners.forEach(function(He){He(Gt)})})},[Gt]),jt.createElement(Rn.Provider,{value:ke},he)};return{Context:Rn,Provider:on,defaultValue:$e}}function Ce($e,Rn){var on=(0,re.Z)(typeof Rn=="function"?Rn:function(He){if(Rn===void 0)return He;if(!Array.isArray(Rn))return He[Rn];var _e={};return Rn.forEach(function(hn){_e[hn]=He[hn]}),_e}),Bt=jt.useContext($e==null?void 0:$e.Context),Zt=Bt||{},Gt=Zt.listeners,he=Zt.getValue,Be=jt.useRef();Be.current=on(Bt?he():$e==null?void 0:$e.defaultValue);var rn=jt.useState({}),ie=(0,te.Z)(rn,2),ke=ie[1];return(0,Fe.Z)(function(){if(!Bt)return;function He(_e){var hn=on(_e);(0,be.Z)(Be.current,hn,!0)||ke({})}return Gt.add(He),function(){Gt.delete(He)}},[Bt]),Be.current}var Mt=Dt(72308),Re=Dt(8654);function Yt(){var $e=jt.createContext(null);function Rn(){return jt.useContext($e)}function on(Zt,Gt){var he=(0,Re.Yr)(Zt),Be=function(ie,ke){var He=he?{ref:ke}:{},_e=jt.useRef(0),hn=jt.useRef(ie),mi=Rn();return mi!==null?jt.createElement(Zt,(0,Mt.Z)({},ie,He)):((!Gt||Gt(hn.current,ie))&&(_e.current+=1),hn.current=ie,jt.createElement($e.Provider,{value:_e.current},jt.createElement(Zt,(0,Mt.Z)({},ie,He))))};return he?jt.forwardRef(Be):Be}function Bt(Zt,Gt){var he=(0,Re.Yr)(Zt),Be=function(ie,ke){var He=he?{ref:ke}:{};return Rn(),jt.createElement(Zt,(0,Mt.Z)({},ie,He))};return he?jt.memo(jt.forwardRef(Be),Gt):jt.memo(Be,Gt)}return{makeImmutable:on,responseImmutable:Bt,useImmutableMark:Rn}}var We=Yt(),Nt=We.makeImmutable,nt=We.responseImmutable,et=We.useImmutableMark,dt=Yt(),lt=dt.makeImmutable,gt=dt.responseImmutable,mt=dt.useImmutableMark,St=Ze(),bt=St;function It($e,Rn){var on=React.useRef(0);on.current+=1;var Bt=React.useRef($e),Zt=[];Object.keys($e||{}).map(function(he){var Be;($e==null?void 0:$e[he])!==((Be=Bt.current)===null||Be===void 0?void 0:Be[he])&&Zt.push(he)}),Bt.current=$e;var Gt=React.useRef([]);return Zt.length&&(Gt.current=Zt),React.useDebugValue(on.current),React.useDebugValue(Gt.current.join(", ")),Rn&&console.log("".concat(Rn,":"),on.current,Gt.current),on.current}var Ht=null,se=null,Vt=Dt(62853),Jt=Dt(77321),Ee=Dt(49618),we=Dt(92310),De=Dt.n(we),Le=Dt(80547),sn=Dt(97938),Fn=Dt(48736),fn=jt.createContext({renderWithProps:!1}),Ge=fn,an="RC_TABLE_KEY";function Se($e){return $e==null?[]:Array.isArray($e)?$e:[$e]}function Qt($e){var Rn=[],on={};return $e.forEach(function(Bt){for(var Zt=Bt||{},Gt=Zt.key,he=Zt.dataIndex,Be=Gt||Se(he).join("-")||an;on[Be];)Be="".concat(Be,"_next");on[Be]=!0,Rn.push(Be)}),Rn}function mn($e){return $e!=null}function ii($e){return typeof $e=="number"&&!Number.isNaN($e)}function jn($e){return $e&&(0,Vt.Z)($e)==="object"&&!Array.isArray($e)&&!jt.isValidElement($e)}function ln($e,Rn,on,Bt,Zt,Gt){var he=jt.useContext(Ge),Be=mt(),rn=(0,Le.Z)(function(){if(mn(Bt))return[Bt];var ie=Rn==null||Rn===""?[]:Array.isArray(Rn)?Rn:[Rn],ke=(0,sn.Z)($e,ie),He=ke,_e=void 0;if(Zt){var hn=Zt(ke,$e,on);jn(hn)?(He=hn.children,_e=hn.props,he.renderWithProps=!0):He=hn}return[He,_e]},[Be,$e,Bt,Rn,Zt,on],function(ie,ke){if(Gt){var He=(0,te.Z)(ie,2),_e=He[1],hn=(0,te.Z)(ke,2),mi=hn[1];return Gt(mi,_e)}return he.renderWithProps?!0:!(0,be.Z)(ie,ke,!0)});return rn}function qn($e,Rn,on,Bt){var Zt=$e+Rn-1;return $e<=Bt&&Zt>=on}function Dn($e,Rn){return Ce(bt,function(on){var Bt=qn($e,Rn||1,on.hoverStartRow,on.hoverEndRow);return[Bt,on.onHover]})}var fi=Dt(70425),Ve=function(Rn){var on=Rn.ellipsis,Bt=Rn.rowType,Zt=Rn.children,Gt,he=on===!0?{showTitle:!0}:on;return he&&(he.showTitle||Bt==="header")&&(typeof Zt=="string"||typeof Zt=="number"?Gt=Zt.toString():jt.isValidElement(Zt)&&typeof Zt.props.children=="string"&&(Gt=Zt.props.children)),Gt};function On($e){var Rn,on,Bt,Zt,Gt,he,Be,rn,ie=$e.component,ke=$e.children,He=$e.ellipsis,_e=$e.scope,hn=$e.prefixCls,mi=$e.className,Et=$e.align,qt=$e.record,zt=$e.render,ae=$e.dataIndex,de=$e.renderIndex,je=$e.shouldCellUpdate,Ye=$e.index,tn=$e.rowType,Ln=$e.colSpan,Bn=$e.rowSpan,Pn=$e.fixLeft,ri=$e.fixRight,Si=$e.firstFixLeft,ue=$e.lastFixLeft,Un=$e.firstFixRight,si=$e.lastFixRight,zn=$e.appendNode,ci=$e.additionalProps,vi=ci===void 0?{}:ci,Ti=$e.isSticky,Fi="".concat(hn,"-cell"),Ii=Ce(bt,["supportSticky","allColumnsFixedLeft","rowHoverable"]),Bi=Ii.supportSticky,gr=Ii.allColumnsFixedLeft,Fr=Ii.rowHoverable,zr=ln(qt,ae,de,ke,zt,je),Zr=(0,te.Z)(zr,2),Di=Zr[0],wr=Zr[1],Cr={},Ir=typeof Pn=="number"&&Bi,Gi=typeof ri=="number"&&Bi;Ir&&(Cr.position="sticky",Cr.left=Pn),Gi&&(Cr.position="sticky",Cr.right=ri);var nr=(Rn=(on=(Bt=wr==null?void 0:wr.colSpan)!==null&&Bt!==void 0?Bt:vi.colSpan)!==null&&on!==void 0?on:Ln)!==null&&Rn!==void 0?Rn:1,Mn=(Zt=(Gt=(he=wr==null?void 0:wr.rowSpan)!==null&&he!==void 0?he:vi.rowSpan)!==null&&Gt!==void 0?Gt:Bn)!==null&&Zt!==void 0?Zt:1,_i=Dn(Ye,Mn),ar=(0,te.Z)(_i,2),Dr=ar[0],Br=ar[1],Pr=(0,fi.zX)(function(_r){var Vr;qt&&Br(Ye,Ye+Mn-1),vi==null||(Vr=vi.onMouseEnter)===null||Vr===void 0||Vr.call(vi,_r)}),Ri=(0,fi.zX)(function(_r){var Vr;qt&&Br(-1,-1),vi==null||(Vr=vi.onMouseLeave)===null||Vr===void 0||Vr.call(vi,_r)});if(nr===0||Mn===0)return null;var kr=(Be=vi.title)!==null&&Be!==void 0?Be:Ve({rowType:tn,ellipsis:He,children:Di}),Yr=De()(Fi,mi,(rn={},(0,Ee.Z)((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)(rn,"".concat(Fi,"-fix-left"),Ir&&Bi),"".concat(Fi,"-fix-left-first"),Si&&Bi),"".concat(Fi,"-fix-left-last"),ue&&Bi),"".concat(Fi,"-fix-left-all"),ue&&gr&&Bi),"".concat(Fi,"-fix-right"),Gi&&Bi),"".concat(Fi,"-fix-right-first"),Un&&Bi),"".concat(Fi,"-fix-right-last"),si&&Bi),"".concat(Fi,"-ellipsis"),He),"".concat(Fi,"-with-append"),zn),"".concat(Fi,"-fix-sticky"),(Ir||Gi)&&Ti&&Bi),(0,Ee.Z)(rn,"".concat(Fi,"-row-hover"),!wr&&Dr)),vi.className,wr==null?void 0:wr.className),Jr={};Et&&(Jr.textAlign=Et);var jr=(0,Jt.Z)((0,Jt.Z)((0,Jt.Z)((0,Jt.Z)({},wr==null?void 0:wr.style),Cr),Jr),vi.style),so=Di;return(0,Vt.Z)(so)==="object"&&!Array.isArray(so)&&!jt.isValidElement(so)&&(so=null),He&&(ue||Un)&&(so=jt.createElement("span",{className:"".concat(Fi,"-content")},so)),jt.createElement(ie,(0,Mt.Z)({},wr,vi,{className:Yr,style:jr,title:kr,scope:_e,onMouseEnter:Fr?Pr:void 0,onMouseLeave:Fr?Ri:void 0,colSpan:nr!==1?nr:null,rowSpan:Mn!==1?Mn:null}),zn,so)}var Pe=jt.memo(On);function Ai($e,Rn,on,Bt,Zt){var Gt=on[$e]||{},he=on[Rn]||{},Be,rn;Gt.fixed==="left"?Be=Bt.left[Zt==="rtl"?Rn:$e]:he.fixed==="right"&&(rn=Bt.right[Zt==="rtl"?$e:Rn]);var ie=!1,ke=!1,He=!1,_e=!1,hn=on[Rn+1],mi=on[$e-1],Et=hn&&!hn.fixed||mi&&!mi.fixed||on.every(function(je){return je.fixed==="left"});if(Zt==="rtl"){if(Be!==void 0){var qt=mi&&mi.fixed==="left";_e=!qt&&Et}else if(rn!==void 0){var zt=hn&&hn.fixed==="right";He=!zt&&Et}}else if(Be!==void 0){var ae=hn&&hn.fixed==="left";ie=!ae&&Et}else if(rn!==void 0){var de=mi&&mi.fixed==="right";ke=!de&&Et}return{fixLeft:Be,fixRight:rn,lastFixLeft:ie,firstFixRight:ke,lastFixRight:He,firstFixLeft:_e,isSticky:Bt.isSticky}}var Xn=jt.createContext({}),Rt=Xn;function At($e){var Rn=$e.className,on=$e.index,Bt=$e.children,Zt=$e.colSpan,Gt=Zt===void 0?1:Zt,he=$e.rowSpan,Be=$e.align,rn=Ce(bt,["prefixCls","direction"]),ie=rn.prefixCls,ke=rn.direction,He=jt.useContext(Rt),_e=He.scrollColumnIndex,hn=He.stickyOffsets,mi=He.flattenColumns,Et=on+Gt-1,qt=Et+1===_e?Gt+1:Gt,zt=Ai(on,on+qt-1,mi,hn,ke);return jt.createElement(Pe,(0,Mt.Z)({className:Rn,index:on,component:"td",prefixCls:ie,record:null,dataIndex:null,align:Be,colSpan:qt,rowSpan:he,render:function(){return Bt}},zt))}var wt=Dt(74416),Tt=["children"];function Kt($e){var Rn=$e.children,on=(0,wt.Z)($e,Tt);return jt.createElement("tr",on,Rn)}function kt($e){var Rn=$e.children;return Rn}kt.Row=Kt,kt.Cell=At;var $t=kt;function un($e){var Rn=$e.children,on=$e.stickyOffsets,Bt=$e.flattenColumns,Zt=Ce(bt,"prefixCls"),Gt=Bt.length-1,he=Bt[Gt],Be=jt.useMemo(function(){return{stickyOffsets:on,flattenColumns:Bt,scrollColumnIndex:he!=null&&he.scrollbar?Gt:null}},[he,Bt,Gt,on]);return jt.createElement(Rt.Provider,{value:Be},jt.createElement("tfoot",{className:"".concat(Zt,"-summary")},Rn))}var Ie=gt(un),Ue=$t,ne=Dt(29301),Oe=Dt(29194),Ne=Dt(24514),Xe=Dt(75152),En=Dt(26112);function In($e,Rn,on,Bt,Zt,Gt,he){$e.push({record:Rn,indent:on,index:he});var Be=Gt(Rn),rn=Zt==null?void 0:Zt.has(Be);if(Rn&&Array.isArray(Rn[Bt])&&rn)for(var ie=0;ie<Rn[Bt].length;ie+=1)In($e,Rn[Bt][ie],on+1,Bt,Zt,Gt,ie)}function An($e,Rn,on,Bt){var Zt=jt.useMemo(function(){if(on!=null&&on.size){for(var Gt=[],he=0;he<($e==null?void 0:$e.length);he+=1){var Be=$e[he];In(Gt,Be,0,Rn,on,Bt,he)}return Gt}return $e==null?void 0:$e.map(function(rn,ie){return{record:rn,indent:0,index:ie}})},[$e,Rn,on,Bt]);return Zt}function en($e,Rn,on,Bt){var Zt=Ce(bt,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),Gt=Zt.flattenColumns,he=Zt.expandableType,Be=Zt.expandedKeys,rn=Zt.childrenColumnName,ie=Zt.onTriggerExpand,ke=Zt.rowExpandable,He=Zt.onRow,_e=Zt.expandRowByClick,hn=Zt.rowClassName,mi=he==="nest",Et=he==="row"&&(!ke||ke($e)),qt=Et||mi,zt=Be&&Be.has(Rn),ae=rn&&$e&&$e[rn],de=(0,fi.zX)(ie),je=He==null?void 0:He($e,on),Ye=je==null?void 0:je.onClick,tn=function(ri){_e&&qt&&ie($e,ri);for(var Si=arguments.length,ue=new Array(Si>1?Si-1:0),Un=1;Un<Si;Un++)ue[Un-1]=arguments[Un];Ye==null||Ye.apply(void 0,[ri].concat(ue))},Ln;typeof hn=="string"?Ln=hn:typeof hn=="function"&&(Ln=hn($e,on,Bt));var Bn=Qt(Gt);return(0,Jt.Z)((0,Jt.Z)({},Zt),{},{columnsKey:Bn,nestExpandable:mi,expanded:zt,hasNestChildren:ae,record:$e,onTriggerExpand:de,rowSupportExpand:Et,expandable:qt,rowProps:(0,Jt.Z)((0,Jt.Z)({},je),{},{className:De()(Ln,je==null?void 0:je.className),onClick:tn})})}function ze($e){var Rn=$e.prefixCls,on=$e.children,Bt=$e.component,Zt=$e.cellComponent,Gt=$e.className,he=$e.expanded,Be=$e.colSpan,rn=$e.isEmpty,ie=Ce(bt,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),ke=ie.scrollbarSize,He=ie.fixHeader,_e=ie.fixColumn,hn=ie.componentWidth,mi=ie.horizonScroll,Et=on;return(rn?mi&&hn:_e)&&(Et=jt.createElement("div",{style:{width:hn-(He&&!rn?ke:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Rn,"-expanded-row-fixed")},Et)),jt.createElement(Bt,{className:Gt,style:{display:he?null:"none"}},jt.createElement(Pe,{component:Zt,prefixCls:Rn,colSpan:Be},Et))}var qe=ze;function pn($e){var Rn=$e.prefixCls,on=$e.record,Bt=$e.onExpand,Zt=$e.expanded,Gt=$e.expandable,he="".concat(Rn,"-row-expand-icon");if(!Gt)return jt.createElement("span",{className:De()(he,"".concat(Rn,"-row-spaced"))});var Be=function(ie){Bt(on,ie),ie.stopPropagation()};return jt.createElement("span",{className:De()(he,(0,Ee.Z)((0,Ee.Z)({},"".concat(Rn,"-row-expanded"),Zt),"".concat(Rn,"-row-collapsed"),!Zt)),onClick:Be})}function bn($e,Rn,on){var Bt=[];function Zt(Gt){(Gt||[]).forEach(function(he,Be){Bt.push(Rn(he,Be)),Zt(he[on])})}return Zt($e),Bt}function Yn($e,Rn,on,Bt){return typeof $e=="string"?$e:typeof $e=="function"?$e(Rn,on,Bt):""}function ti($e,Rn,on,Bt,Zt){var Gt=$e.record,he=$e.prefixCls,Be=$e.columnsKey,rn=$e.fixedInfoList,ie=$e.expandIconColumnIndex,ke=$e.nestExpandable,He=$e.indentSize,_e=$e.expandIcon,hn=$e.expanded,mi=$e.hasNestChildren,Et=$e.onTriggerExpand,qt=Be[on],zt=rn[on],ae;on===(ie||0)&&ke&&(ae=jt.createElement(jt.Fragment,null,jt.createElement("span",{style:{paddingLeft:"".concat(He*Bt,"px")},className:"".concat(he,"-row-indent indent-level-").concat(Bt)}),_e({prefixCls:he,expanded:hn,expandable:mi,record:Gt,onExpand:Et})));var de;return Rn.onCell&&(de=Rn.onCell(Gt,Zt)),{key:qt,fixedInfo:zt,appendCellNode:ae,additionalCellProps:de||{}}}function yi($e){var Rn=$e.className,on=$e.style,Bt=$e.record,Zt=$e.index,Gt=$e.renderIndex,he=$e.rowKey,Be=$e.indent,rn=Be===void 0?0:Be,ie=$e.rowComponent,ke=$e.cellComponent,He=$e.scopeCellComponent,_e=en(Bt,he,Zt,rn),hn=_e.prefixCls,mi=_e.flattenColumns,Et=_e.expandedRowClassName,qt=_e.expandedRowRender,zt=_e.rowProps,ae=_e.expanded,de=_e.rowSupportExpand,je=jt.useRef(!1);je.current||(je.current=ae);var Ye=Yn(Et,Bt,Zt,rn),tn=jt.createElement(ie,(0,Mt.Z)({},zt,{"data-row-key":he,className:De()(Rn,"".concat(hn,"-row"),"".concat(hn,"-row-level-").concat(rn),zt==null?void 0:zt.className,(0,Ee.Z)({},Ye,rn>=1)),style:(0,Jt.Z)((0,Jt.Z)({},on),zt==null?void 0:zt.style)}),mi.map(function(Pn,ri){var Si=Pn.render,ue=Pn.dataIndex,Un=Pn.className,si=ti(_e,Pn,ri,rn,Zt),zn=si.key,ci=si.fixedInfo,vi=si.appendCellNode,Ti=si.additionalCellProps;return jt.createElement(Pe,(0,Mt.Z)({className:Un,ellipsis:Pn.ellipsis,align:Pn.align,scope:Pn.rowScope,component:Pn.rowScope?He:ke,prefixCls:hn,key:zn,record:Bt,index:Zt,renderIndex:Gt,dataIndex:ue,render:Si,shouldCellUpdate:Pn.shouldCellUpdate},ci,{appendNode:vi,additionalProps:Ti}))})),Ln;if(de&&(je.current||ae)){var Bn=qt(Bt,Zt,rn+1,ae);Ln=jt.createElement(qe,{expanded:ae,className:De()("".concat(hn,"-expanded-row"),"".concat(hn,"-expanded-row-level-").concat(rn+1),Ye),prefixCls:hn,component:ie,cellComponent:ke,colSpan:mi.length,isEmpty:!1},Bn)}return jt.createElement(jt.Fragment,null,tn,Ln)}var vn=gt(yi);function Pi($e){var Rn=$e.columnKey,on=$e.onColumnResize,Bt=jt.useRef();return jt.useEffect(function(){Bt.current&&on(Rn,Bt.current.offsetWidth)},[]),jt.createElement(ne.Z,{data:Rn},jt.createElement("td",{ref:Bt,style:{padding:0,border:0,height:0}},jt.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function Ki($e){var Rn=$e.prefixCls,on=$e.columnsKey,Bt=$e.onColumnResize;return jt.createElement("tr",{"aria-hidden":"true",className:"".concat(Rn,"-measure-row"),style:{height:0,fontSize:0}},jt.createElement(ne.Z.Collection,{onBatchResize:function(Gt){Gt.forEach(function(he){var Be=he.data,rn=he.size;Bt(Be,rn.offsetWidth)})}},on.map(function(Zt){return jt.createElement(Pi,{key:Zt,columnKey:Zt,onColumnResize:Bt})})))}function pr($e){var Rn=$e.data,on=$e.measureColumnWidth,Bt=Ce(bt,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Zt=Bt.prefixCls,Gt=Bt.getComponent,he=Bt.onColumnResize,Be=Bt.flattenColumns,rn=Bt.getRowKey,ie=Bt.expandedKeys,ke=Bt.childrenColumnName,He=Bt.emptyNode,_e=An(Rn,ke,ie,rn),hn=jt.useRef({renderWithProps:!1}),mi=Gt(["body","wrapper"],"tbody"),Et=Gt(["body","row"],"tr"),qt=Gt(["body","cell"],"td"),zt=Gt(["body","cell"],"th"),ae;Rn.length?ae=_e.map(function(je,Ye){var tn=je.record,Ln=je.indent,Bn=je.index,Pn=rn(tn,Ye);return jt.createElement(vn,{key:Pn,rowKey:Pn,record:tn,index:Ye,renderIndex:Bn,rowComponent:Et,cellComponent:qt,scopeCellComponent:zt,indent:Ln})}):ae=jt.createElement(qe,{expanded:!0,className:"".concat(Zt,"-placeholder"),prefixCls:Zt,component:Et,cellComponent:qt,colSpan:Be.length,isEmpty:!0},He);var de=Qt(Be);return jt.createElement(Ge.Provider,{value:hn.current},jt.createElement(mi,{className:"".concat(Zt,"-tbody")},on&&jt.createElement(Ki,{prefixCls:Zt,columnsKey:de,onColumnResize:he}),ae))}var or=gt(pr),ir=Dt(90494),vr=["columnType"];function ur($e){for(var Rn=$e.colWidths,on=$e.columns,Bt=$e.columCount,Zt=Ce(bt,["tableLayout"]),Gt=Zt.tableLayout,he=[],Be=Bt||on.length,rn=!1,ie=Be-1;ie>=0;ie-=1){var ke=Rn[ie],He=on&&on[ie],_e=void 0,hn=void 0;if(He&&(_e=He[ir.v],Gt==="auto"&&(hn=He.minWidth)),ke||hn||_e||rn){var mi=_e||{},Et=mi.columnType,qt=(0,wt.Z)(mi,vr);he.unshift(jt.createElement("col",(0,Mt.Z)({key:ie,style:{width:ke,minWidth:hn}},qt))),rn=!0}}return jt.createElement("colgroup",null,he)}var hr=ur,Ji=Dt(80702),xr=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Ct($e,Rn){return(0,jt.useMemo)(function(){for(var on=[],Bt=0;Bt<Rn;Bt+=1){var Zt=$e[Bt];if(Zt!==void 0)on[Bt]=Zt;else return null}return on},[$e.join("_"),Rn])}var yn=jt.forwardRef(function($e,Rn){var on=$e.className,Bt=$e.noData,Zt=$e.columns,Gt=$e.flattenColumns,he=$e.colWidths,Be=$e.columCount,rn=$e.stickyOffsets,ie=$e.direction,ke=$e.fixHeader,He=$e.stickyTopOffset,_e=$e.stickyBottomOffset,hn=$e.stickyClassName,mi=$e.onScroll,Et=$e.maxContentScroll,qt=$e.children,zt=(0,wt.Z)($e,xr),ae=Ce(bt,["prefixCls","scrollbarSize","isSticky","getComponent"]),de=ae.prefixCls,je=ae.scrollbarSize,Ye=ae.isSticky,tn=ae.getComponent,Ln=tn(["header","table"],"table"),Bn=Ye&&!ke?0:je,Pn=jt.useRef(null),ri=jt.useCallback(function(Ti){(0,Re.mH)(Rn,Ti),(0,Re.mH)(Pn,Ti)},[]);jt.useEffect(function(){var Ti;function Fi(Ii){var Bi=Ii,gr=Bi.currentTarget,Fr=Bi.deltaX;Fr&&(mi({currentTarget:gr,scrollLeft:gr.scrollLeft+Fr}),Ii.preventDefault())}return(Ti=Pn.current)===null||Ti===void 0||Ti.addEventListener("wheel",Fi,{passive:!1}),function(){var Ii;(Ii=Pn.current)===null||Ii===void 0||Ii.removeEventListener("wheel",Fi)}},[]);var Si=jt.useMemo(function(){return Gt.every(function(Ti){return Ti.width})},[Gt]),ue=Gt[Gt.length-1],Un={fixed:ue?ue.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(de,"-cell-scrollbar")}}},si=(0,jt.useMemo)(function(){return Bn?[].concat((0,Ji.Z)(Zt),[Un]):Zt},[Bn,Zt]),zn=(0,jt.useMemo)(function(){return Bn?[].concat((0,Ji.Z)(Gt),[Un]):Gt},[Bn,Gt]),ci=(0,jt.useMemo)(function(){var Ti=rn.right,Fi=rn.left;return(0,Jt.Z)((0,Jt.Z)({},rn),{},{left:ie==="rtl"?[].concat((0,Ji.Z)(Fi.map(function(Ii){return Ii+Bn})),[0]):Fi,right:ie==="rtl"?Ti:[].concat((0,Ji.Z)(Ti.map(function(Ii){return Ii+Bn})),[0]),isSticky:Ye})},[Bn,rn,Ye]),vi=Ct(he,Be);return jt.createElement("div",{style:(0,Jt.Z)({overflow:"hidden"},Ye?{top:He,bottom:_e}:{}),ref:ri,className:De()(on,(0,Ee.Z)({},hn,!!hn))},jt.createElement(Ln,{style:{tableLayout:"fixed",visibility:Bt||vi?null:"hidden"}},(!Bt||!Et||Si)&&jt.createElement(hr,{colWidths:vi?[].concat((0,Ji.Z)(vi),[Bn]):[],columCount:Be+1,columns:zn}),qt((0,Jt.Z)((0,Jt.Z)({},zt),{},{stickyOffsets:ci,columns:si,flattenColumns:zn}))))}),Zn=jt.memo(yn),dr=function(Rn){var on=Rn.cells,Bt=Rn.stickyOffsets,Zt=Rn.flattenColumns,Gt=Rn.rowComponent,he=Rn.cellComponent,Be=Rn.onHeaderRow,rn=Rn.index,ie=Ce(bt,["prefixCls","direction"]),ke=ie.prefixCls,He=ie.direction,_e;Be&&(_e=Be(on.map(function(mi){return mi.column}),rn));var hn=Qt(on.map(function(mi){return mi.column}));return jt.createElement(Gt,_e,on.map(function(mi,Et){var qt=mi.column,zt=Ai(mi.colStart,mi.colEnd,Zt,Bt,He),ae;return qt&&qt.onHeaderCell&&(ae=mi.column.onHeaderCell(qt)),jt.createElement(Pe,(0,Mt.Z)({},mi,{scope:qt.title?mi.colSpan>1?"colgroup":"col":null,ellipsis:qt.ellipsis,align:qt.align,component:he,prefixCls:ke,key:hn[Et]},zt,{additionalProps:ae,rowType:"header"}))}))},sr=dr;function Oi($e){var Rn=[];function on(he,Be){var rn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Rn[rn]=Rn[rn]||[];var ie=Be,ke=he.filter(Boolean).map(function(He){var _e={key:He.key,className:He.className||"",children:He.title,column:He,colStart:ie},hn=1,mi=He.children;return mi&&mi.length>0&&(hn=on(mi,ie,rn+1).reduce(function(Et,qt){return Et+qt},0),_e.hasSubColumns=!0),"colSpan"in He&&(hn=He.colSpan),"rowSpan"in He&&(_e.rowSpan=He.rowSpan),_e.colSpan=hn,_e.colEnd=_e.colStart+hn-1,Rn[rn].push(_e),ie+=hn,hn});return ke}on($e,0);for(var Bt=Rn.length,Zt=function(Be){Rn[Be].forEach(function(rn){!("rowSpan"in rn)&&!rn.hasSubColumns&&(rn.rowSpan=Bt-Be)})},Gt=0;Gt<Bt;Gt+=1)Zt(Gt);return Rn}var Nn=function(Rn){var on=Rn.stickyOffsets,Bt=Rn.columns,Zt=Rn.flattenColumns,Gt=Rn.onHeaderRow,he=Ce(bt,["prefixCls","getComponent"]),Be=he.prefixCls,rn=he.getComponent,ie=jt.useMemo(function(){return Oi(Bt)},[Bt]),ke=rn(["header","wrapper"],"thead"),He=rn(["header","row"],"tr"),_e=rn(["header","cell"],"th");return jt.createElement(ke,{className:"".concat(Be,"-thead")},ie.map(function(hn,mi){var Et=jt.createElement(sr,{key:mi,flattenColumns:Zt,cells:hn,stickyOffsets:on,rowComponent:He,cellComponent:_e,onHeaderRow:Gt,index:mi});return Et}))},Cn=gt(Nn),kn=Dt(78612);function ve($e,Rn,on){var Bt=(0,ir.g)($e),Zt=Bt.expandIcon,Gt=Bt.expandedRowKeys,he=Bt.defaultExpandedRowKeys,Be=Bt.defaultExpandAllRows,rn=Bt.expandedRowRender,ie=Bt.onExpand,ke=Bt.onExpandedRowsChange,He=Bt.childrenColumnName,_e=Zt||pn,hn=He||"children",mi=jt.useMemo(function(){return rn?"row":$e.expandable&&$e.internalHooks===yt.R&&$e.expandable.__PARENT_RENDER_ICON__||Rn.some(function(Ye){return Ye&&(0,Vt.Z)(Ye)==="object"&&Ye[hn]})?"nest":!1},[!!rn,Rn]),Et=jt.useState(function(){return he||(Be?bn(Rn,on,hn):[])}),qt=(0,te.Z)(Et,2),zt=qt[0],ae=qt[1],de=jt.useMemo(function(){return new Set(Gt||zt||[])},[Gt,zt]),je=jt.useCallback(function(Ye){var tn=on(Ye,Rn.indexOf(Ye)),Ln,Bn=de.has(tn);Bn?(de.delete(tn),Ln=(0,Ji.Z)(de)):Ln=[].concat((0,Ji.Z)(de),[tn]),ae(Ln),ie&&ie(!Bn,Ye),ke&&ke(Ln)},[on,de,Rn,ie,ke]);return[Bt,mi,de,_e,hn,je]}function ye($e,Rn,on){var Bt=$e.map(function(Zt,Gt){return Ai(Gt,Gt,$e,Rn,on)});return(0,Le.Z)(function(){return Bt},[Bt],function(Zt,Gt){return!(0,be.Z)(Zt,Gt)})}function xe($e){var Rn=(0,jt.useRef)($e),on=(0,jt.useState)({}),Bt=(0,te.Z)(on,2),Zt=Bt[1],Gt=(0,jt.useRef)(null),he=(0,jt.useRef)([]);function Be(rn){he.current.push(rn);var ie=Promise.resolve();Gt.current=ie,ie.then(function(){if(Gt.current===ie){var ke=he.current,He=Rn.current;he.current=[],ke.forEach(function(_e){Rn.current=_e(Rn.current)}),Gt.current=null,He!==Rn.current&&Zt({})}})}return(0,jt.useEffect)(function(){return function(){Gt.current=null}},[]),[Rn.current,Be]}function Kn($e){var Rn=(0,jt.useRef)($e||null),on=(0,jt.useRef)();function Bt(){window.clearTimeout(on.current)}function Zt(he){Rn.current=he,Bt(),on.current=window.setTimeout(function(){Rn.current=null,on.current=void 0},100)}function Gt(){return Rn.current}return(0,jt.useEffect)(function(){return Bt},[]),[Zt,Gt]}function $n(){var $e=jt.useState(-1),Rn=(0,te.Z)($e,2),on=Rn[0],Bt=Rn[1],Zt=jt.useState(-1),Gt=(0,te.Z)(Zt,2),he=Gt[0],Be=Gt[1],rn=jt.useCallback(function(ie,ke){Bt(ie),Be(ke)},[]);return[on,he,rn]}var ui=Dt(47273),Sn=(0,ui.Z)()?window:null;function oi($e,Rn){var on=(0,Vt.Z)($e)==="object"?$e:{},Bt=on.offsetHeader,Zt=Bt===void 0?0:Bt,Gt=on.offsetSummary,he=Gt===void 0?0:Gt,Be=on.offsetScroll,rn=Be===void 0?0:Be,ie=on.getContainer,ke=ie===void 0?function(){return Sn}:ie,He=ke()||Sn,_e=!!$e;return jt.useMemo(function(){return{isSticky:_e,stickyClassName:_e?"".concat(Rn,"-sticky-holder"):"",offsetHeader:Zt,offsetSummary:he,offsetScroll:rn,container:He}},[_e,rn,Zt,he,Rn,He])}function fe($e,Rn,on){var Bt=(0,jt.useMemo)(function(){var Zt=Rn.length,Gt=function(ie,ke,He){for(var _e=[],hn=0,mi=ie;mi!==ke;mi+=He)_e.push(hn),Rn[mi].fixed&&(hn+=$e[mi]||0);return _e},he=Gt(0,Zt,1),Be=Gt(Zt-1,-1,-1).reverse();return on==="rtl"?{left:Be,right:he}:{left:he,right:Be}},[$e,Rn,on]);return Bt}var Te=fe;function hi($e){var Rn=$e.className,on=$e.children;return jt.createElement("div",{className:Rn},on)}var ee=hi,nn=Dt(8224),Vn=Dt(16089),_n=Dt(76846);function Ke($e){var Rn=(0,_n.bn)($e),on=Rn.getBoundingClientRect(),Bt=document.documentElement;return{left:on.left+(window.pageXOffset||Bt.scrollLeft)-(Bt.clientLeft||document.body.clientLeft||0),top:on.top+(window.pageYOffset||Bt.scrollTop)-(Bt.clientTop||document.body.clientTop||0)}}var Gn=function(Rn,on){var Bt,Zt,Gt=Rn.scrollBodyRef,he=Rn.onScroll,Be=Rn.offsetScroll,rn=Rn.container,ie=Rn.direction,ke=Ce(bt,"prefixCls"),He=((Bt=Gt.current)===null||Bt===void 0?void 0:Bt.scrollWidth)||0,_e=((Zt=Gt.current)===null||Zt===void 0?void 0:Zt.clientWidth)||0,hn=He&&_e*(_e/He),mi=jt.useRef(),Et=xe({scrollLeft:0,isHiddenScrollBar:!0}),qt=(0,te.Z)(Et,2),zt=qt[0],ae=qt[1],de=jt.useRef({delta:0,x:0}),je=jt.useState(!1),Ye=(0,te.Z)(je,2),tn=Ye[0],Ln=Ye[1],Bn=jt.useRef(null);jt.useEffect(function(){return function(){Vn.Z.cancel(Bn.current)}},[]);var Pn=function(){Ln(!1)},ri=function(zn){zn.persist(),de.current.delta=zn.pageX-zt.scrollLeft,de.current.x=0,Ln(!0),zn.preventDefault()},Si=function(zn){var ci,vi=zn||((ci=window)===null||ci===void 0?void 0:ci.event),Ti=vi.buttons;if(!tn||Ti===0){tn&&Ln(!1);return}var Fi=de.current.x+zn.pageX-de.current.x-de.current.delta,Ii=ie==="rtl";Fi=Math.max(Ii?hn-_e:0,Math.min(Ii?0:_e-hn,Fi));var Bi=!Ii||Math.abs(Fi)+Math.abs(hn)<_e;Bi&&(he({scrollLeft:Fi/_e*(He+2)}),de.current.x=zn.pageX)},ue=function(){Vn.Z.cancel(Bn.current),Bn.current=(0,Vn.Z)(function(){if(Gt.current){var zn=Ke(Gt.current).top,ci=zn+Gt.current.offsetHeight,vi=rn===window?document.documentElement.scrollTop+window.innerHeight:Ke(rn).top+rn.clientHeight;ci-(0,Xe.Z)()<=vi||zn>=vi-Be?ae(function(Ti){return(0,Jt.Z)((0,Jt.Z)({},Ti),{},{isHiddenScrollBar:!0})}):ae(function(Ti){return(0,Jt.Z)((0,Jt.Z)({},Ti),{},{isHiddenScrollBar:!1})})}})},Un=function(zn){ae(function(ci){return(0,Jt.Z)((0,Jt.Z)({},ci),{},{scrollLeft:zn/He*_e||0})})};return jt.useImperativeHandle(on,function(){return{setScrollLeft:Un,checkScrollBarVisible:ue}}),jt.useEffect(function(){var si=(0,nn.Z)(document.body,"mouseup",Pn,!1),zn=(0,nn.Z)(document.body,"mousemove",Si,!1);return ue(),function(){si.remove(),zn.remove()}},[hn,tn]),jt.useEffect(function(){if(Gt.current){for(var si=[],zn=(0,_n.bn)(Gt.current);zn;)si.push(zn),zn=zn.parentElement;return si.forEach(function(ci){return ci.addEventListener("scroll",ue,!1)}),window.addEventListener("resize",ue,!1),window.addEventListener("scroll",ue,!1),rn.addEventListener("scroll",ue,!1),function(){si.forEach(function(ci){return ci.removeEventListener("scroll",ue)}),window.removeEventListener("resize",ue),window.removeEventListener("scroll",ue),rn.removeEventListener("scroll",ue)}}},[rn]),jt.useEffect(function(){zt.isHiddenScrollBar||ae(function(si){var zn=Gt.current;return zn?(0,Jt.Z)((0,Jt.Z)({},si),{},{scrollLeft:zn.scrollLeft/zn.scrollWidth*zn.clientWidth}):si})},[zt.isHiddenScrollBar]),He<=_e||!hn||zt.isHiddenScrollBar?null:jt.createElement("div",{style:{height:(0,Xe.Z)(),width:_e,bottom:Be},className:"".concat(ke,"-sticky-scroll")},jt.createElement("div",{onMouseDown:ri,ref:mi,className:De()("".concat(ke,"-sticky-scroll-bar"),(0,Ee.Z)({},"".concat(ke,"-sticky-scroll-bar-active"),tn)),style:{width:"".concat(hn,"px"),transform:"translate3d(".concat(zt.scrollLeft,"px, 0, 0)")}}))},ai=jt.forwardRef(Gn);function ni($e){return null}var ki=ni;function xi($e){return null}var gi=xi,Li="rc-table",Zi=[],tr={};function zi(){return"No Data"}function wn($e,Rn){var on=(0,Jt.Z)({rowKey:"key",prefixCls:Li,emptyText:zi},$e),Bt=on.prefixCls,Zt=on.className,Gt=on.rowClassName,he=on.style,Be=on.data,rn=on.rowKey,ie=on.scroll,ke=on.tableLayout,He=on.direction,_e=on.title,hn=on.footer,mi=on.summary,Et=on.caption,qt=on.id,zt=on.showHeader,ae=on.components,de=on.emptyText,je=on.onRow,Ye=on.onHeaderRow,tn=on.onScroll,Ln=on.internalHooks,Bn=on.transformColumns,Pn=on.internalRefs,ri=on.tailor,Si=on.getContainerWidth,ue=on.sticky,Un=on.rowHoverable,si=Un===void 0?!0:Un,zn=Be||Zi,ci=!!zn.length,vi=Ln===yt.R,Ti=jt.useCallback(function(No,Ko){return(0,sn.Z)(ae,No)||Ko},[ae]),Fi=jt.useMemo(function(){return typeof rn=="function"?rn:function(No){var Ko=No&&No[rn];return Ko}},[rn]),Ii=Ti(["body"]),Bi=$n(),gr=(0,te.Z)(Bi,3),Fr=gr[0],zr=gr[1],Zr=gr[2],Di=ve(on,zn,Fi),wr=(0,te.Z)(Di,6),Cr=wr[0],Ir=wr[1],Gi=wr[2],nr=wr[3],Mn=wr[4],_i=wr[5],ar=ie==null?void 0:ie.x,Dr=jt.useState(0),Br=(0,te.Z)(Dr,2),Pr=Br[0],Ri=Br[1],kr=(0,kn.Z)((0,Jt.Z)((0,Jt.Z)((0,Jt.Z)({},on),Cr),{},{expandable:!!Cr.expandedRowRender,columnTitle:Cr.columnTitle,expandedKeys:Gi,getRowKey:Fi,onTriggerExpand:_i,expandIcon:nr,expandIconColumnIndex:Cr.expandIconColumnIndex,direction:He,scrollWidth:vi&&ri&&typeof ar=="number"?ar:null,clientWidth:Pr}),vi?Bn:null),Yr=(0,te.Z)(kr,4),Jr=Yr[0],jr=Yr[1],so=Yr[2],_r=Yr[3],Vr=so!=null?so:ar,fo=jt.useMemo(function(){return{columns:Jr,flattenColumns:jr}},[Jr,jr]),Ao=jt.useRef(),Jo=jt.useRef(),ro=jt.useRef(),na=jt.useRef();jt.useImperativeHandle(Rn,function(){return{nativeElement:Ao.current,scrollTo:function(Ko){var ba;if(ro.current instanceof HTMLElement){var ns=Ko.index,Qa=Ko.top,Bl=Ko.key;if(ii(Qa)){var yl;(yl=ro.current)===null||yl===void 0||yl.scrollTo({top:Qa})}else{var Oo,xo=Bl!=null?Bl:Fi(zn[ns]);(Oo=ro.current.querySelector('[data-row-key="'.concat(xo,'"]')))===null||Oo===void 0||Oo.scrollIntoView()}}else(ba=ro.current)!==null&&ba!==void 0&&ba.scrollTo&&ro.current.scrollTo(Ko)}}});var mo=jt.useRef(),ra=jt.useState(!1),Po=(0,te.Z)(ra,2),Vo=Po[0],jo=Po[1],Yo=jt.useState(!1),Bo=(0,te.Z)(Yo,2),bo=Bo[0],oa=Bo[1],ya=xe(new Map),Wo=(0,te.Z)(ya,2),Ba=Wo[0],Fo=Wo[1],yo=Qt(jr),vo=yo.map(function(No){return Ba.get(No)}),Go=jt.useMemo(function(){return vo},[vo.join("_")]),br=Te(Go,jr,He),Ur=ie&&mn(ie.y),fr=ie&&mn(Vr)||!!Cr.fixed,Mr=fr&&jr.some(function(No){var Ko=No.fixed;return Ko}),$r=jt.useRef(),yr=oi(ue,Bt),Ei=yr.isSticky,Qo=yr.offsetHeader,me=yr.offsetSummary,Wn=yr.offsetScroll,pa=yr.stickyClassName,Sa=yr.container,sa=jt.useMemo(function(){return mi==null?void 0:mi(zn)},[mi,zn]),xa=(Ur||Ei)&&jt.isValidElement(sa)&&sa.type===$t&&sa.props.fixed,Ta,Ra,hs;Ur&&(Ra={overflowY:ci?"scroll":"auto",maxHeight:ie.y}),fr&&(Ta={overflowX:"auto"},Ur||(Ra={overflowY:"hidden"}),hs={width:Vr===!0?"auto":Vr,minWidth:"100%"});var ua=jt.useCallback(function(No,Ko){(0,Oe.Z)(Ao.current)&&Fo(function(ba){if(ba.get(No)!==Ko){var ns=new Map(ba);return ns.set(No,Ko),ns}return ba})},[]),Qr=Kn(null),Ya=(0,te.Z)(Qr,2),es=Ya[0],ha=Ya[1];function So(No,Ko){Ko&&(typeof Ko=="function"?Ko(No):Ko.scrollLeft!==No&&(Ko.scrollLeft=No,Ko.scrollLeft!==No&&setTimeout(function(){Ko.scrollLeft=No},0)))}var ma=(0,re.Z)(function(No){var Ko=No.currentTarget,ba=No.scrollLeft,ns=He==="rtl",Qa=typeof ba=="number"?ba:Ko.scrollLeft,Bl=Ko||tr;if(!ha()||ha()===Bl){var yl;es(Bl),So(Qa,Jo.current),So(Qa,ro.current),So(Qa,mo.current),So(Qa,(yl=$r.current)===null||yl===void 0?void 0:yl.setScrollLeft)}var Oo=Ko||Jo.current;if(Oo){var xo=vi&&ri&&typeof Vr=="number"?Vr:Oo.scrollWidth,Ua=Oo.clientWidth;if(xo===Ua){jo(!1),oa(!1);return}ns?(jo(-Qa<xo-Ua),oa(-Qa>0)):(jo(Qa>0),oa(Qa<xo-Ua))}}),ds=(0,re.Z)(function(No){ma(No),tn==null||tn(No)}),la=function(){if(fr&&ro.current){var Ko;ma({currentTarget:(0,_n.bn)(ro.current),scrollLeft:(Ko=ro.current)===null||Ko===void 0?void 0:Ko.scrollLeft})}else jo(!1),oa(!1)},cs=function(Ko){var ba,ns=Ko.width;(ba=$r.current)===null||ba===void 0||ba.checkScrollBarVisible();var Qa=Ao.current?Ao.current.offsetWidth:ns;vi&&Si&&Ao.current&&(Qa=Si(Ao.current,Qa)||Qa),Qa!==Pr&&(la(),Ri(Qa))},za=jt.useRef(!1);jt.useEffect(function(){za.current&&la()},[fr,Be,Jr.length]),jt.useEffect(function(){za.current=!0},[]);var Dl=jt.useState(0),Ho=(0,te.Z)(Dl,2),Ma=Ho[0],To=Ho[1],$o=jt.useState(!0),ca=(0,te.Z)($o,2),va=ca[0],qo=ca[1];jt.useEffect(function(){(!ri||!vi)&&(ro.current instanceof Element?To((0,Xe.o)(ro.current).width):To((0,Xe.o)(na.current).width)),qo((0,Ne.G)("position","sticky"))},[]),jt.useEffect(function(){vi&&Pn&&(Pn.body.current=ro.current)});var pl=jt.useCallback(function(No){return jt.createElement(jt.Fragment,null,jt.createElement(Cn,No),xa==="top"&&jt.createElement(Ie,No,sa))},[xa,sa]),eo=jt.useCallback(function(No){return jt.createElement(Ie,No,sa)},[sa]),vu=Ti(["table"],"table"),Lo=jt.useMemo(function(){return ke||(Mr?Vr==="max-content"?"auto":"fixed":Ur||Ei||jr.some(function(No){var Ko=No.ellipsis;return Ko})?"fixed":"auto")},[Ur,Mr,jr,ke,Ei]),Kl,qs={colWidths:Go,columCount:jr.length,stickyOffsets:br,onHeaderRow:Ye,fixHeader:Ur,scroll:ie},Nl=jt.useMemo(function(){return ci?null:typeof de=="function"?de():de},[ci,de]),yu=jt.createElement(or,{data:zn,measureColumnWidth:Ur||fr||Ei}),Su=jt.createElement(hr,{colWidths:jr.map(function(No){var Ko=No.width;return Ko}),columns:jr}),Vs=Et!=null?jt.createElement("caption",{className:"".concat(Bt,"-caption")},Et):void 0,Yl=(0,En.Z)(on,{data:!0}),Uo=(0,En.Z)(on,{aria:!0});if(Ur||Ei){var Gs;typeof Ii=="function"?(Gs=Ii(zn,{scrollbarSize:Ma,ref:ro,onScroll:ma}),qs.colWidths=jr.map(function(No,Ko){var ba=No.width,ns=Ko===jr.length-1?ba-Ma:ba;return typeof ns=="number"&&!Number.isNaN(ns)?ns:0})):Gs=jt.createElement("div",{style:(0,Jt.Z)((0,Jt.Z)({},Ta),Ra),onScroll:ds,ref:ro,className:De()("".concat(Bt,"-body"))},jt.createElement(vu,(0,Mt.Z)({style:(0,Jt.Z)((0,Jt.Z)({},hs),{},{tableLayout:Lo})},Uo),Vs,Su,yu,!xa&&sa&&jt.createElement(Ie,{stickyOffsets:br,flattenColumns:jr},sa)));var xu=(0,Jt.Z)((0,Jt.Z)((0,Jt.Z)({noData:!zn.length,maxContentScroll:fr&&Vr==="max-content"},qs),fo),{},{direction:He,stickyClassName:pa,onScroll:ma});Kl=jt.createElement(jt.Fragment,null,zt!==!1&&jt.createElement(Zn,(0,Mt.Z)({},xu,{stickyTopOffset:Qo,className:"".concat(Bt,"-header"),ref:Jo}),pl),Gs,xa&&xa!=="top"&&jt.createElement(Zn,(0,Mt.Z)({},xu,{stickyBottomOffset:me,className:"".concat(Bt,"-summary"),ref:mo}),eo),Ei&&ro.current&&ro.current instanceof Element&&jt.createElement(ai,{ref:$r,offsetScroll:Wn,scrollBodyRef:ro,onScroll:ma,container:Sa,direction:He}))}else Kl=jt.createElement("div",{style:(0,Jt.Z)((0,Jt.Z)({},Ta),Ra),className:De()("".concat(Bt,"-content")),onScroll:ma,ref:ro},jt.createElement(vu,(0,Mt.Z)({style:(0,Jt.Z)((0,Jt.Z)({},hs),{},{tableLayout:Lo})},Uo),Vs,Su,zt!==!1&&jt.createElement(Cn,(0,Mt.Z)({},qs,fo)),yu,sa&&jt.createElement(Ie,{stickyOffsets:br,flattenColumns:jr},sa)));var ml=jt.createElement("div",(0,Mt.Z)({className:De()(Bt,Zt,(0,Ee.Z)((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)({},"".concat(Bt,"-rtl"),He==="rtl"),"".concat(Bt,"-ping-left"),Vo),"".concat(Bt,"-ping-right"),bo),"".concat(Bt,"-layout-fixed"),ke==="fixed"),"".concat(Bt,"-fixed-header"),Ur),"".concat(Bt,"-fixed-column"),Mr),"".concat(Bt,"-fixed-column-gapped"),Mr&&_r),"".concat(Bt,"-scroll-horizontal"),fr),"".concat(Bt,"-has-fix-left"),jr[0]&&jr[0].fixed),"".concat(Bt,"-has-fix-right"),jr[jr.length-1]&&jr[jr.length-1].fixed==="right")),style:he,id:qt,ref:Ao},Yl),_e&&jt.createElement(ee,{className:"".concat(Bt,"-title")},_e(zn)),jt.createElement("div",{ref:na,className:"".concat(Bt,"-container")},Kl),hn&&jt.createElement(ee,{className:"".concat(Bt,"-footer")},hn(zn)));fr&&(ml=jt.createElement(ne.Z,{onResize:cs},ml));var Nu=ye(jr,br,He),vl=jt.useMemo(function(){return{scrollX:Vr,prefixCls:Bt,getComponent:Ti,scrollbarSize:Ma,direction:He,fixedInfoList:Nu,isSticky:Ei,supportSticky:va,componentWidth:Pr,fixHeader:Ur,fixColumn:Mr,horizonScroll:fr,tableLayout:Lo,rowClassName:Gt,expandedRowClassName:Cr.expandedRowClassName,expandIcon:nr,expandableType:Ir,expandRowByClick:Cr.expandRowByClick,expandedRowRender:Cr.expandedRowRender,onTriggerExpand:_i,expandIconColumnIndex:Cr.expandIconColumnIndex,indentSize:Cr.indentSize,allColumnsFixedLeft:jr.every(function(No){return No.fixed==="left"}),emptyNode:Nl,columns:Jr,flattenColumns:jr,onColumnResize:ua,hoverStartRow:Fr,hoverEndRow:zr,onHover:Zr,rowExpandable:Cr.rowExpandable,onRow:je,getRowKey:Fi,expandedKeys:Gi,childrenColumnName:Mn,rowHoverable:si}},[Vr,Bt,Ti,Ma,He,Nu,Ei,va,Pr,Ur,Mr,fr,Lo,Gt,Cr.expandedRowClassName,nr,Ir,Cr.expandRowByClick,Cr.expandedRowRender,_i,Cr.expandIconColumnIndex,Cr.indentSize,Nl,Jr,jr,ua,Fr,zr,Zr,Cr.rowExpandable,je,Fi,Gi,Mn,si]);return jt.createElement(bt.Provider,{value:vl},ml)}var Rr=jt.forwardRef(wn);function Lr($e){return lt(Rr,$e)}var Hr=Lr();Hr.EXPAND_COLUMN=yt.w,Hr.INTERNAL_HOOKS=yt.R,Hr.Column=ki,Hr.ColumnGroup=gi,Hr.Summary=Ue;var dn=Hr,Mi=Dt(45680),Vi=Ze(null),Qi=Ze(null);function qi($e,Rn,on){var Bt=Rn||1;return on[$e+Bt]-(on[$e]||0)}function cr($e){var Rn=$e.rowInfo,on=$e.column,Bt=$e.colIndex,Zt=$e.indent,Gt=$e.index,he=$e.component,Be=$e.renderIndex,rn=$e.record,ie=$e.style,ke=$e.className,He=$e.inverse,_e=$e.getHeight,hn=on.render,mi=on.dataIndex,Et=on.className,qt=on.width,zt=Ce(Qi,["columnsOffset"]),ae=zt.columnsOffset,de=ti(Rn,on,Bt,Zt,Gt),je=de.key,Ye=de.fixedInfo,tn=de.appendCellNode,Ln=de.additionalCellProps,Bn=Ln.style,Pn=Ln.colSpan,ri=Pn===void 0?1:Pn,Si=Ln.rowSpan,ue=Si===void 0?1:Si,Un=Bt-1,si=qi(Un,ri,ae),zn=ri>1?qt-si:0,ci=(0,Jt.Z)((0,Jt.Z)((0,Jt.Z)({},Bn),ie),{},{flex:"0 0 ".concat(si,"px"),width:"".concat(si,"px"),marginRight:zn,pointerEvents:"auto"}),vi=jt.useMemo(function(){return He?ue<=1:ri===0||ue===0||ue>1},[ue,ri,He]);vi?ci.visibility="hidden":He&&(ci.height=_e==null?void 0:_e(ue));var Ti=vi?function(){return null}:hn,Fi={};return(ue===0||ri===0)&&(Fi.rowSpan=1,Fi.colSpan=1),jt.createElement(Pe,(0,Mt.Z)({className:De()(Et,ke),ellipsis:on.ellipsis,align:on.align,scope:on.rowScope,component:he,prefixCls:Rn.prefixCls,key:je,record:rn,index:Gt,renderIndex:Be,dataIndex:mi,render:Ti,shouldCellUpdate:on.shouldCellUpdate},Ye,{appendNode:tn,additionalProps:(0,Jt.Z)((0,Jt.Z)({},Ln),{},{style:ci},Fi)}))}var Ar=cr,ji=["data","index","className","rowKey","style","extra","getHeight"],er=jt.forwardRef(function($e,Rn){var on=$e.data,Bt=$e.index,Zt=$e.className,Gt=$e.rowKey,he=$e.style,Be=$e.extra,rn=$e.getHeight,ie=(0,wt.Z)($e,ji),ke=on.record,He=on.indent,_e=on.index,hn=Ce(bt,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),mi=hn.scrollX,Et=hn.flattenColumns,qt=hn.prefixCls,zt=hn.fixColumn,ae=hn.componentWidth,de=Ce(Vi,["getComponent"]),je=de.getComponent,Ye=en(ke,Gt,Bt,He),tn=je(["body","row"],"div"),Ln=je(["body","cell"],"div"),Bn=Ye.rowSupportExpand,Pn=Ye.expanded,ri=Ye.rowProps,Si=Ye.expandedRowRender,ue=Ye.expandedRowClassName,Un;if(Bn&&Pn){var si=Si(ke,Bt,He+1,Pn),zn=Yn(ue,ke,Bt,He),ci={};zt&&(ci={style:(0,Ee.Z)({},"--virtual-width","".concat(ae,"px"))});var vi="".concat(qt,"-expanded-row-cell");Un=jt.createElement(tn,{className:De()("".concat(qt,"-expanded-row"),"".concat(qt,"-expanded-row-level-").concat(He+1),zn)},jt.createElement(Pe,{component:Ln,prefixCls:qt,className:De()(vi,(0,Ee.Z)({},"".concat(vi,"-fixed"),zt)),additionalProps:ci},si))}var Ti=(0,Jt.Z)((0,Jt.Z)({},he),{},{width:mi});Be&&(Ti.position="absolute",Ti.pointerEvents="none");var Fi=jt.createElement(tn,(0,Mt.Z)({},ri,ie,{"data-row-key":Gt,ref:Bn?null:Rn,className:De()(Zt,"".concat(qt,"-row"),ri==null?void 0:ri.className,(0,Ee.Z)({},"".concat(qt,"-row-extra"),Be)),style:(0,Jt.Z)((0,Jt.Z)({},Ti),ri==null?void 0:ri.style)}),Et.map(function(Ii,Bi){return jt.createElement(Ar,{key:Bi,component:Ln,rowInfo:Ye,column:Ii,colIndex:Bi,indent:He,index:Bt,renderIndex:_e,record:ke,inverse:Be,getHeight:rn})}));return Bn?jt.createElement("div",{ref:Rn},Fi,Un):Fi}),Hi=gt(er),cn=Hi,lr=jt.forwardRef(function($e,Rn){var on=$e.data,Bt=$e.onScroll,Zt=Ce(bt,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),Gt=Zt.flattenColumns,he=Zt.onColumnResize,Be=Zt.getRowKey,rn=Zt.expandedKeys,ie=Zt.prefixCls,ke=Zt.childrenColumnName,He=Zt.scrollX,_e=Zt.direction,hn=Ce(Vi),mi=hn.sticky,Et=hn.scrollY,qt=hn.listItemHeight,zt=hn.getComponent,ae=hn.onScroll,de=jt.useRef(),je=An(on,ke,rn,Be),Ye=jt.useMemo(function(){var Un=0;return Gt.map(function(si){var zn=si.width,ci=si.key;return Un+=zn,[ci,zn,Un]})},[Gt]),tn=jt.useMemo(function(){return Ye.map(function(Un){return Un[2]})},[Ye]);jt.useEffect(function(){Ye.forEach(function(Un){var si=(0,te.Z)(Un,2),zn=si[0],ci=si[1];he(zn,ci)})},[Ye]),jt.useImperativeHandle(Rn,function(){var Un,si={scrollTo:function(ci){var vi;(vi=de.current)===null||vi===void 0||vi.scrollTo(ci)},nativeElement:(Un=de.current)===null||Un===void 0?void 0:Un.nativeElement};return Object.defineProperty(si,"scrollLeft",{get:function(){var ci;return((ci=de.current)===null||ci===void 0?void 0:ci.getScrollInfo().x)||0},set:function(ci){var vi;(vi=de.current)===null||vi===void 0||vi.scrollTo({left:ci})}}),si});var Ln=function(si,zn){var ci,vi=(ci=je[zn])===null||ci===void 0?void 0:ci.record,Ti=si.onCell;if(Ti){var Fi,Ii=Ti(vi,zn);return(Fi=Ii==null?void 0:Ii.rowSpan)!==null&&Fi!==void 0?Fi:1}return 1},Bn=function(si){var zn=si.start,ci=si.end,vi=si.getSize,Ti=si.offsetY;if(ci<0)return null;for(var Fi=Gt.filter(function(nr){return Ln(nr,zn)===0}),Ii=zn,Bi=function(Mn){if(Fi=Fi.filter(function(_i){return Ln(_i,Mn)===0}),!Fi.length)return Ii=Mn,1},gr=zn;gr>=0&&!Bi(gr);gr-=1);for(var Fr=Gt.filter(function(nr){return Ln(nr,ci)!==1}),zr=ci,Zr=function(Mn){if(Fr=Fr.filter(function(_i){return Ln(_i,Mn)!==1}),!Fr.length)return zr=Math.max(Mn-1,ci),1},Di=ci;Di<je.length&&!Zr(Di);Di+=1);for(var wr=[],Cr=function(Mn){var _i=je[Mn];if(!_i)return 1;Gt.some(function(ar){return Ln(ar,Mn)>1})&&wr.push(Mn)},Ir=Ii;Ir<=zr;Ir+=1)Cr(Ir);var Gi=wr.map(function(nr){var Mn=je[nr],_i=Be(Mn.record,nr),ar=function(Pr){var Ri=nr+Pr-1,kr=Be(je[Ri].record,Ri),Yr=vi(_i,kr);return Yr.bottom-Yr.top},Dr=vi(_i);return jt.createElement(cn,{key:nr,data:Mn,rowKey:_i,index:nr,style:{top:-Ti+Dr.top},extra:!0,getHeight:ar})});return Gi},Pn=jt.useMemo(function(){return{columnsOffset:tn}},[tn]),ri="".concat(ie,"-tbody"),Si=zt(["body","wrapper"]),ue={};return mi&&(ue.position="sticky",ue.bottom=0,(0,Vt.Z)(mi)==="object"&&mi.offsetScroll&&(ue.bottom=mi.offsetScroll)),jt.createElement(Qi.Provider,{value:Pn},jt.createElement(Mi.Z,{fullHeight:!1,ref:de,prefixCls:"".concat(ri,"-virtual"),styles:{horizontalScrollBar:ue},className:ri,height:Et,itemHeight:qt||24,data:je,itemKey:function(si){return Be(si.record)},component:Si,scrollWidth:He,direction:_e,onVirtualScroll:function(si){var zn,ci=si.x;Bt({currentTarget:(zn=de.current)===null||zn===void 0?void 0:zn.nativeElement,scrollLeft:ci})},onScroll:ae,extraRender:Bn},function(Un,si,zn){var ci=Be(Un.record,si);return jt.createElement(cn,{data:Un,rowKey:ci,index:si,style:zn.style})}))}),xn=gt(lr),wi=xn,Xi=function(Rn,on){var Bt=on.ref,Zt=on.onScroll;return jt.createElement(wi,{ref:Bt,data:Rn,onScroll:Zt})};function Sr($e,Rn){var on=$e.data,Bt=$e.columns,Zt=$e.scroll,Gt=$e.sticky,he=$e.prefixCls,Be=he===void 0?Li:he,rn=$e.className,ie=$e.listItemHeight,ke=$e.components,He=$e.onScroll,_e=Zt||{},hn=_e.x,mi=_e.y;typeof hn!="number"&&(hn=1),typeof mi!="number"&&(mi=500);var Et=(0,fi.zX)(function(ae,de){return(0,sn.Z)(ke,ae)||de}),qt=(0,fi.zX)(He),zt=jt.useMemo(function(){return{sticky:Gt,scrollY:mi,listItemHeight:ie,getComponent:Et,onScroll:qt}},[Gt,mi,ie,Et,qt]);return jt.createElement(Vi.Provider,{value:zt},jt.createElement(dn,(0,Mt.Z)({},$e,{className:De()(rn,"".concat(Be,"-virtual")),scroll:(0,Jt.Z)((0,Jt.Z)({},Zt),{},{x:hn}),components:(0,Jt.Z)((0,Jt.Z)({},ke),{},{body:on!=null&&on.length?Xi:void 0}),columns:Bt,internalHooks:yt.R,tailor:!0,ref:Rn})))}var ao=jt.forwardRef(Sr);function co($e){return lt(ao,$e)}var qr=co(),io=null},90494:function(Jn,pi,Dt){"use strict";Dt.d(pi,{g:function(){return jt},v:function(){return be}});var yt=Dt(77321),te=Dt(74416),re=Dt(48736),Fe=["expandable"],be="RC_TABLE_INTERNAL_COL_DEFINE";function jt(ge){var Ze=ge.expandable,Ce=(0,te.Z)(ge,Fe),Mt;return"expandable"in ge?Mt=(0,yt.Z)((0,yt.Z)({},Ce),Ze):Mt=Ce,Mt.showExpandColumn===!1&&(Mt.expandIconColumnIndex=-1),Mt}},22711:function(Jn,pi,Dt){"use strict";Dt.r(pi),Dt.d(pi,{ResizableTextArea:function(){return we},default:function(){return Fn}});var yt=Dt(72308),te=Dt(49618),re=Dt(77321),Fe=Dt(80702),be=Dt(52487),jt=Dt(74416),ge=Dt(92310),Ze=Dt.n(ge),Ce=Dt(36901),Mt=Dt(66003),Re=Dt(30292),Yt=Dt(18929),We=Dt(59301),Nt=Dt(62853),nt=Dt(29301),et=Dt(34280),dt=Dt(16089),lt=`
min-height:0 !important;
max-height:none !important;
height:0 !important;
visibility:hidden !important;
overflow:hidden !important;
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important;
pointer-events: none !important;
`,gt=["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"],mt={},St;function bt(fn){var Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,an=fn.getAttribute("id")||fn.getAttribute("data-reactid")||fn.getAttribute("name");if(Ge&&mt[an])return mt[an];var Se=window.getComputedStyle(fn),Qt=Se.getPropertyValue("box-sizing")||Se.getPropertyValue("-moz-box-sizing")||Se.getPropertyValue("-webkit-box-sizing"),mn=parseFloat(Se.getPropertyValue("padding-bottom"))+parseFloat(Se.getPropertyValue("padding-top")),ii=parseFloat(Se.getPropertyValue("border-bottom-width"))+parseFloat(Se.getPropertyValue("border-top-width")),jn=gt.map(function(qn){return"".concat(qn,":").concat(Se.getPropertyValue(qn))}).join(";"),ln={sizingStyle:jn,paddingSize:mn,borderSize:ii,boxSizing:Qt};return Ge&&an&&(mt[an]=ln),ln}function It(fn){var Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,an=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Se=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;St||(St=document.createElement("textarea"),St.setAttribute("tab-index","-1"),St.setAttribute("aria-hidden","true"),St.setAttribute("name","hiddenTextarea"),document.body.appendChild(St)),fn.getAttribute("wrap")?St.setAttribute("wrap",fn.getAttribute("wrap")):St.removeAttribute("wrap");var Qt=bt(fn,Ge),mn=Qt.paddingSize,ii=Qt.borderSize,jn=Qt.boxSizing,ln=Qt.sizingStyle;St.setAttribute("style","".concat(ln,";").concat(lt)),St.value=fn.value||fn.placeholder||"";var qn=void 0,Dn=void 0,fi,Ve=St.scrollHeight;if(jn==="border-box"?Ve+=ii:jn==="content-box"&&(Ve-=mn),an!==null||Se!==null){St.value=" ";var On=St.scrollHeight-mn;an!==null&&(qn=On*an,jn==="border-box"&&(qn=qn+mn+ii),Ve=Math.max(qn,Ve)),Se!==null&&(Dn=On*Se,jn==="border-box"&&(Dn=Dn+mn+ii),fi=Ve>Dn?"":"hidden",Ve=Math.min(Dn,Ve))}var Pe={height:Ve,overflowY:fi,resize:"none"};return qn&&(Pe.minHeight=qn),Dn&&(Pe.maxHeight=Dn),Pe}var Ht=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],se=0,Vt=1,Jt=2,Ee=We.forwardRef(function(fn,Ge){var an=fn,Se=an.prefixCls,Qt=an.defaultValue,mn=an.value,ii=an.autoSize,jn=an.onResize,ln=an.className,qn=an.style,Dn=an.disabled,fi=an.onChange,Ve=an.onInternalAutoSize,On=(0,jt.Z)(an,Ht),Pe=(0,Yt.Z)(Qt,{value:mn,postState:function(yi){return yi!=null?yi:""}}),Ai=(0,be.Z)(Pe,2),Xn=Ai[0],Rt=Ai[1],At=function(yi){Rt(yi.target.value),fi==null||fi(yi)},wt=We.useRef();We.useImperativeHandle(Ge,function(){return{textArea:wt.current}});var Tt=We.useMemo(function(){return ii&&(0,Nt.Z)(ii)==="object"?[ii.minRows,ii.maxRows]:[]},[ii]),Kt=(0,be.Z)(Tt,2),kt=Kt[0],$t=Kt[1],un=!!ii,Ie=function(){try{if(document.activeElement===wt.current){var yi=wt.current,vn=yi.selectionStart,Pi=yi.selectionEnd,Ki=yi.scrollTop;wt.current.setSelectionRange(vn,Pi),wt.current.scrollTop=Ki}}catch(pr){}},Ue=We.useState(Jt),ne=(0,be.Z)(Ue,2),Oe=ne[0],Ne=ne[1],Xe=We.useState(),En=(0,be.Z)(Xe,2),In=En[0],An=En[1],en=function(){Ne(se)};(0,et.Z)(function(){un&&en()},[mn,kt,$t,un]),(0,et.Z)(function(){if(Oe===se)Ne(Vt);else if(Oe===Vt){var ti=It(wt.current,!1,kt,$t);Ne(Jt),An(ti)}else Ie()},[Oe]);var ze=We.useRef(),qe=function(){dt.Z.cancel(ze.current)},pn=function(yi){Oe===Jt&&(jn==null||jn(yi),ii&&(qe(),ze.current=(0,dt.Z)(function(){en()})))};We.useEffect(function(){return qe},[]);var bn=un?In:null,Yn=(0,re.Z)((0,re.Z)({},qn),bn);return(Oe===se||Oe===Vt)&&(Yn.overflowY="hidden",Yn.overflowX="hidden"),We.createElement(nt.Z,{onResize:pn,disabled:!(ii||jn)},We.createElement("textarea",(0,yt.Z)({},On,{ref:wt,style:Yn,className:Ze()(Se,ln,(0,te.Z)({},"".concat(Se,"-disabled"),Dn)),disabled:Dn,value:Xn,onChange:At})))}),we=Ee,De=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],Le=We.forwardRef(function(fn,Ge){var an,Se=fn.defaultValue,Qt=fn.value,mn=fn.onFocus,ii=fn.onBlur,jn=fn.onChange,ln=fn.allowClear,qn=fn.maxLength,Dn=fn.onCompositionStart,fi=fn.onCompositionEnd,Ve=fn.suffix,On=fn.prefixCls,Pe=On===void 0?"rc-textarea":On,Ai=fn.showCount,Xn=fn.count,Rt=fn.className,At=fn.style,wt=fn.disabled,Tt=fn.hidden,Kt=fn.classNames,kt=fn.styles,$t=fn.onResize,un=fn.onClear,Ie=fn.onPressEnter,Ue=fn.readOnly,ne=fn.autoSize,Oe=fn.onKeyDown,Ne=(0,jt.Z)(fn,De),Xe=(0,Yt.Z)(Se,{value:Qt,defaultValue:Se}),En=(0,be.Z)(Xe,2),In=En[0],An=En[1],en=In==null?"":String(In),ze=We.useState(!1),qe=(0,be.Z)(ze,2),pn=qe[0],bn=qe[1],Yn=We.useRef(!1),ti=We.useState(null),yi=(0,be.Z)(ti,2),vn=yi[0],Pi=yi[1],Ki=(0,We.useRef)(null),pr=(0,We.useRef)(null),or=function(){var fe;return(fe=pr.current)===null||fe===void 0?void 0:fe.textArea},ir=function(){or().focus()};(0,We.useImperativeHandle)(Ge,function(){var oi;return{resizableTextArea:pr.current,focus:ir,blur:function(){or().blur()},nativeElement:((oi=Ki.current)===null||oi===void 0?void 0:oi.nativeElement)||or()}}),(0,We.useEffect)(function(){bn(function(oi){return!wt&&oi})},[wt]);var vr=We.useState(null),ur=(0,be.Z)(vr,2),hr=ur[0],Ji=ur[1];We.useEffect(function(){if(hr){var oi;(oi=or()).setSelectionRange.apply(oi,(0,Fe.Z)(hr))}},[hr]);var xr=(0,Mt.Z)(Xn,Ai),Ct=(an=xr.max)!==null&&an!==void 0?an:qn,yn=Number(Ct)>0,Zn=xr.strategy(en),dr=!!Ct&&Zn>Ct,sr=function(fe,Te){var hi=Te;!Yn.current&&xr.exceedFormatter&&xr.max&&xr.strategy(Te)>xr.max&&(hi=xr.exceedFormatter(Te,{max:xr.max}),Te!==hi&&Ji([or().selectionStart||0,or().selectionEnd||0])),An(hi),(0,Re.rJ)(fe.currentTarget,fe,jn,hi)},Oi=function(fe){Yn.current=!0,Dn==null||Dn(fe)},Nn=function(fe){Yn.current=!1,sr(fe,fe.currentTarget.value),fi==null||fi(fe)},Cn=function(fe){sr(fe,fe.target.value)},kn=function(fe){fe.key==="Enter"&&Ie&&Ie(fe),Oe==null||Oe(fe)},ve=function(fe){bn(!0),mn==null||mn(fe)},ye=function(fe){bn(!1),ii==null||ii(fe)},xe=function(fe){An(""),ir(),(0,Re.rJ)(or(),fe,jn)},Kn=Ve,$n;xr.show&&(xr.showFormatter?$n=xr.showFormatter({value:en,count:Zn,maxLength:Ct}):$n="".concat(Zn).concat(yn?" / ".concat(Ct):""),Kn=We.createElement(We.Fragment,null,Kn,We.createElement("span",{className:Ze()("".concat(Pe,"-data-count"),Kt==null?void 0:Kt.count),style:kt==null?void 0:kt.count},$n)));var ui=function(fe){var Te;$t==null||$t(fe),(Te=or())!==null&&Te!==void 0&&Te.style.height&&Pi(!0)},Sn=!ne&&!Ai&&!ln;return We.createElement(Ce.BaseInput,{ref:Ki,value:en,allowClear:ln,handleReset:xe,suffix:Kn,prefixCls:Pe,classNames:(0,re.Z)((0,re.Z)({},Kt),{},{affixWrapper:Ze()(Kt==null?void 0:Kt.affixWrapper,(0,te.Z)((0,te.Z)({},"".concat(Pe,"-show-count"),Ai),"".concat(Pe,"-textarea-allow-clear"),ln))}),disabled:wt,focused:pn,className:Ze()(Rt,dr&&"".concat(Pe,"-out-of-range")),style:(0,re.Z)((0,re.Z)({},At),vn&&!Sn?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof $n=="string"?$n:void 0}},hidden:Tt,readOnly:Ue,onClear:un},We.createElement(we,(0,yt.Z)({},Ne,{autoSize:ne,maxLength:qn,onKeyDown:kn,onChange:Cn,onFocus:ve,onBlur:ye,onCompositionStart:Oi,onCompositionEnd:Nn,className:Ze()(Kt==null?void 0:Kt.textarea),style:(0,re.Z)((0,re.Z)({},kt==null?void 0:kt.textarea),{},{resize:At==null?void 0:At.resize}),disabled:wt,prefixCls:Pe,onResize:ui,ref:pr,readOnly:Ue})))}),sn=Le,Fn=sn},9940:function(Jn,pi,Dt){"use strict";Dt.d(pi,{Qw:function(){return Ai},FJ:function(){return Rt},hT:function(){return Xn},OF:function(){return St},ZP:function(){return Ue}});var yt=Dt(72308),te=Dt(80702),re=Dt(77321),Fe=Dt(52487),be=Dt(74416),jt=Dt(62853),ge=Dt(45560),Ze=Dt(69582),Ce=Dt(34643),Mt=Dt(18929),Re=Dt(48736),Yt=Dt(59301),We=function(ne){var Oe=Yt.useRef({valueLabels:new Map});return Yt.useMemo(function(){var Ne=Oe.current.valueLabels,Xe=new Map,En=ne.map(function(In){var An=In.value,en=In.label,ze=en!=null?en:Ne.get(An);return Xe.set(An,ze),(0,re.Z)((0,re.Z)({},In),{},{label:ze})});return Oe.current.valueLabels=Xe,[En]},[ne])},Nt=function(Oe,Ne,Xe,En){return Yt.useMemo(function(){var In=function(ti){return ti.map(function(yi){var vn=yi.value;return vn})},An=In(Oe),en=In(Ne),ze=An.filter(function(Yn){return!En[Yn]}),qe=An,pn=en;if(Xe){var bn=(0,Ce.S)(An,!0,En);qe=bn.checkedKeys,pn=bn.halfCheckedKeys}return[Array.from(new Set([].concat((0,te.Z)(ze),(0,te.Z)(qe)))),pn]},[Oe,Ne,Xe,En])},nt=Nt,et=Dt(34061),dt=function(ne,Oe){return Yt.useMemo(function(){var Ne=(0,et.I8)(ne,{fieldNames:Oe,initWrapper:function(En){return(0,re.Z)((0,re.Z)({},En),{},{valueEntities:new Map})},processEntity:function(En,In){var An=En.node[Oe.value];if(0)var en;In.valueEntities.set(An,En)}});return Ne},[ne,Oe])},lt=Dt(49618),gt=Dt(11592),mt=function(){return null},St=mt,bt=["children","value"];function It(ne){return(0,gt.Z)(ne).map(function(Oe){if(!Yt.isValidElement(Oe)||!Oe.type)return null;var Ne=Oe,Xe=Ne.key,En=Ne.props,In=En.children,An=En.value,en=(0,be.Z)(En,bt),ze=(0,re.Z)({key:Xe,value:An},en),qe=It(In);return qe.length&&(ze.children=qe),ze}).filter(function(Oe){return Oe})}function Ht(ne){if(!ne)return ne;var Oe=(0,re.Z)({},ne);return"props"in Oe||Object.defineProperty(Oe,"props",{get:function(){return(0,Re.ZP)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),Oe}}),Oe}function se(ne,Oe,Ne,Xe,En,In){var An=null,en=null;function ze(){function qe(pn){var bn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",Yn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return pn.map(function(ti,yi){var vn="".concat(bn,"-").concat(yi),Pi=ti[In.value],Ki=Ne.includes(Pi),pr=qe(ti[In.children]||[],vn,Ki),or=Yt.createElement(St,ti,pr.map(function(vr){return vr.node}));if(Oe===Pi&&(An=or),Ki){var ir={pos:vn,node:or,children:pr};return Yn||en.push(ir),ir}return null}).filter(function(ti){return ti})}en||(en=[],qe(Xe),en.sort(function(pn,bn){var Yn=pn.node.props.value,ti=bn.node.props.value,yi=Ne.indexOf(Yn),vn=Ne.indexOf(ti);return yi-vn}))}Object.defineProperty(ne,"triggerNode",{get:function(){return(0,Re.ZP)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),ze(),An}}),Object.defineProperty(ne,"allCheckedNodes",{get:function(){return(0,Re.ZP)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),ze(),En?en:en.map(function(pn){var bn=pn.node;return bn})}})}var Vt=function(Oe,Ne,Xe){var En=Xe.fieldNames,In=Xe.treeNodeFilterProp,An=Xe.filterTreeNode,en=En.children;return Yt.useMemo(function(){if(!Ne||An===!1)return Oe;var ze=typeof An=="function"?An:function(pn,bn){return String(bn[In]).toUpperCase().includes(Ne.toUpperCase())},qe=function pn(bn){var Yn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return bn.reduce(function(ti,yi){var vn=yi[en],Pi=Yn||ze(Ne,Ht(yi)),Ki=pn(vn||[],Pi);return(Pi||Ki.length)&&ti.push((0,re.Z)((0,re.Z)({},yi),{},(0,lt.Z)({isLeaf:void 0},en,Ki))),ti},[])};return qe(Oe)},[Oe,Ne,en,In,An])},Jt=Vt;function Ee(ne){var Oe=Yt.useRef();Oe.current=ne;var Ne=Yt.useCallback(function(){return Oe.current.apply(Oe,arguments)},[]);return Ne}function we(ne,Oe){var Ne=Oe.id,Xe=Oe.pId,En=Oe.rootPId,In=new Map,An=[];return ne.forEach(function(en){var ze=en[Ne],qe=(0,re.Z)((0,re.Z)({},en),{},{key:en.key||ze});In.set(ze,qe)}),In.forEach(function(en){var ze=en[Xe],qe=In.get(ze);qe?(qe.children=qe.children||[],qe.children.push(en)):(ze===En||En===null)&&An.push(en)}),An}function De(ne,Oe,Ne){return Yt.useMemo(function(){if(ne){if(Ne){var Xe=(0,re.Z)({id:"id",pId:"pId",rootPId:null},(0,jt.Z)(Ne)==="object"?Ne:{});return we(ne,Xe)}return ne}return It(Oe)},[Oe,Ne,ne])}var Le=Yt.createContext(null),sn=Le,Fn=Dt(2826),fn=Dt(15018),Ge=Dt(10228),an=Dt(80547),Se=Yt.createContext(null),Qt=Se,mn=function(Oe){return Array.isArray(Oe)?Oe:Oe!==void 0?[Oe]:[]},ii=function(Oe){var Ne=Oe||{},Xe=Ne.label,En=Ne.value,In=Ne.children;return{_title:Xe?[Xe]:["title","label"],value:En||"value",key:En||"value",children:In||"children"}},jn=function(Oe){return!Oe||Oe.disabled||Oe.disableCheckbox||Oe.checkable===!1},ln=function(Oe,Ne){var Xe=[],En=function In(An){An.forEach(function(en){var ze=en[Ne.children];ze&&(Xe.push(en[Ne.value]),In(ze))})};return En(Oe),Xe},qn=function(Oe){return Oe==null},Dn=Dt(70425),fi={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Ve=function(Oe,Ne){var Xe=(0,ge.lk)(),En=Xe.prefixCls,In=Xe.multiple,An=Xe.searchValue,en=Xe.toggleOpen,ze=Xe.open,qe=Xe.notFoundContent,pn=Yt.useContext(Qt),bn=pn.virtual,Yn=pn.listHeight,ti=pn.listItemHeight,yi=pn.listItemScrollOffset,vn=pn.treeData,Pi=pn.fieldNames,Ki=pn.onSelect,pr=pn.dropdownMatchSelectWidth,or=pn.treeExpandAction,ir=pn.treeTitleRender,vr=pn.onPopupScroll,ur=pn.leftMaxCount,hr=pn.leafCountOnly,Ji=pn.valueEntities,xr=Yt.useContext(sn),Ct=xr.checkable,yn=xr.checkedKeys,Zn=xr.halfCheckedKeys,dr=xr.treeExpandedKeys,sr=xr.treeDefaultExpandAll,Oi=xr.treeDefaultExpandedKeys,Nn=xr.onTreeExpand,Cn=xr.treeIcon,kn=xr.showTreeIcon,ve=xr.switcherIcon,ye=xr.treeLine,xe=xr.treeNodeFilterProp,Kn=xr.loadData,$n=xr.treeLoadedKeys,ui=xr.treeMotion,Sn=xr.onTreeLoad,oi=xr.keyEntities,fe=Yt.useRef(),Te=(0,an.Z)(function(){return vn},[ze,vn],function(cn,lr){return lr[0]&&cn[1]!==lr[1]}),hi=Yt.useMemo(function(){return Ct?{checked:yn,halfChecked:Zn}:null},[Ct,yn,Zn]);Yt.useEffect(function(){if(ze&&!In&&yn.length){var cn;(cn=fe.current)===null||cn===void 0||cn.scrollTo({key:yn[0]})}},[ze]);var ee=function(lr){lr.preventDefault()},nn=function(lr,xn){var wi=xn.node;Ct&&jn(wi)||(Ki(wi.key,{selected:!yn.includes(wi.key)}),In||en(!1))},Vn=Yt.useState(Oi),_n=(0,Fe.Z)(Vn,2),Ke=_n[0],Gn=_n[1],ai=Yt.useState(null),ni=(0,Fe.Z)(ai,2),ki=ni[0],xi=ni[1],gi=Yt.useMemo(function(){return dr?(0,te.Z)(dr):An?ki:Ke},[Ke,ki,dr,An]),Li=function(lr){Gn(lr),xi(lr),Nn&&Nn(lr)},Zi=String(An).toLowerCase(),tr=function(lr){return Zi?String(lr[xe]).toLowerCase().includes(Zi):!1};Yt.useEffect(function(){An&&xi(ln(vn,Pi))},[An]);var zi=Yt.useState(function(){return new Map}),wn=(0,Fe.Z)(zi,2),Rr=wn[0],Lr=wn[1];Yt.useEffect(function(){ur&&Lr(new Map)},[ur]);function Hr(cn){var lr=cn[Pi.value];if(!Rr.has(lr)){var xn=Ji.get(lr),wi=(xn.children||[]).length===0;if(wi)Rr.set(lr,!1);else{var Xi=xn.children.filter(function(ao){return!ao.node.disabled&&!ao.node.disableCheckbox&&!yn.includes(ao.node[Pi.value])}),Sr=Xi.length;Rr.set(lr,Sr>ur)}}return Rr.get(lr)}var dn=(0,Dn.zX)(function(cn){var lr=cn[Pi.value];return yn.includes(lr)||ur===null?!1:ur<=0?!0:hr&&ur?Hr(cn):!1}),Mi=function cn(lr){var xn=(0,Fn.Z)(lr),wi;try{for(xn.s();!(wi=xn.n()).done;){var Xi=wi.value;if(!(Xi.disabled||Xi.selectable===!1)){if(An){if(tr(Xi))return Xi}else return Xi;if(Xi[Pi.children]){var Sr=cn(Xi[Pi.children]);if(Sr)return Sr}}}}catch(ao){xn.e(ao)}finally{xn.f()}return null},Vi=Yt.useState(null),Qi=(0,Fe.Z)(Vi,2),qi=Qi[0],cr=Qi[1],Ar=oi[qi];Yt.useEffect(function(){if(ze){var cn=null,lr=function(){var wi=Mi(Te);return wi?wi[Pi.value]:null};!In&&yn.length&&!An?cn=yn[0]:cn=lr(),cr(cn)}},[ze,An]),Yt.useImperativeHandle(Ne,function(){var cn;return{scrollTo:(cn=fe.current)===null||cn===void 0?void 0:cn.scrollTo,onKeyDown:function(xn){var wi,Xi=xn.which;switch(Xi){case Ge.Z.UP:case Ge.Z.DOWN:case Ge.Z.LEFT:case Ge.Z.RIGHT:(wi=fe.current)===null||wi===void 0||wi.onKeyDown(xn);break;case Ge.Z.ENTER:{if(Ar){var Sr=dn(Ar.node),ao=(Ar==null?void 0:Ar.node)||{},co=ao.selectable,qr=ao.value,io=ao.disabled;co!==!1&&!io&&!Sr&&nn(null,{node:{key:qi},selected:!yn.includes(qr)})}break}case Ge.Z.ESC:en(!1)}},onKeyUp:function(){}}});var ji=(0,an.Z)(function(){return!An},[An,dr||Ke],function(cn,lr){var xn=(0,Fe.Z)(cn,1),wi=xn[0],Xi=(0,Fe.Z)(lr,2),Sr=Xi[0],ao=Xi[1];return wi!==Sr&&!!(Sr||ao)}),er=ji?Kn:null;if(Te.length===0)return Yt.createElement("div",{role:"listbox",className:"".concat(En,"-empty"),onMouseDown:ee},qe);var Hi={fieldNames:Pi};return $n&&(Hi.loadedKeys=$n),gi&&(Hi.expandedKeys=gi),Yt.createElement("div",{onMouseDown:ee},Ar&&ze&&Yt.createElement("span",{style:fi,"aria-live":"assertive"},Ar.node.value),Yt.createElement(fn.y6.Provider,{value:{nodeDisabled:dn}},Yt.createElement(fn.ZP,(0,yt.Z)({ref:fe,focusable:!1,prefixCls:"".concat(En,"-tree"),treeData:Te,height:Yn,itemHeight:ti,itemScrollOffset:yi,virtual:bn!==!1&&pr!==!1,multiple:In,icon:Cn,showIcon:kn,switcherIcon:ve,showLine:ye,loadData:er,motion:ui,activeKey:qi,checkable:Ct,checkStrictly:!0,checkedKeys:hi,selectedKeys:Ct?[]:yn,defaultExpandAll:sr,titleRender:ir},Hi,{onActiveChange:cr,onSelect:nn,onCheck:nn,onExpand:Li,onLoad:Sn,filterTreeNode:tr,expandAction:or,onScroll:vr}))))},On=Yt.forwardRef(Ve),Pe=On,Ai="SHOW_ALL",Xn="SHOW_PARENT",Rt="SHOW_CHILD";function At(ne,Oe,Ne,Xe){var En=new Set(ne);return Oe===Rt?ne.filter(function(In){var An=Ne[In];return!An||!An.children||!An.children.some(function(en){var ze=en.node;return En.has(ze[Xe.value])})||!An.children.every(function(en){var ze=en.node;return jn(ze)||En.has(ze[Xe.value])})}):Oe===Xn?ne.filter(function(In){var An=Ne[In],en=An?An.parent:null;return!en||jn(en.node)||!En.has(en.key)}):ne}function wt(ne){var Oe=ne.searchPlaceholder,Ne=ne.treeCheckStrictly,Xe=ne.treeCheckable,En=ne.labelInValue,In=ne.value,An=ne.multiple,en=ne.showCheckedStrategy,ze=ne.maxCount;warning(!Oe,"`searchPlaceholder` has been removed."),Ne&&En===!1&&warning(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(En||Ne)&&warning(toArray(In).every(function(qe){return qe&&_typeof(qe)==="object"&&"value"in qe}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),Ne||An||Xe?warning(!In||Array.isArray(In),"`value` should be an array when `TreeSelect` is checkable or multiple."):warning(!Array.isArray(In),"`value` should not be array when `TreeSelect` is single mode."),ze&&(en==="SHOW_ALL"&&!Ne||en==="SHOW_PARENT")&&warning(!1,"`maxCount` not work with `showCheckedStrategy=SHOW_ALL` (when `treeCheckStrictly=false`) or `showCheckedStrategy=SHOW_PARENT`.")}var Tt=null,Kt=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","maxCount","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","listItemScrollOffset","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion","treeTitleRender","onPopupScroll"];function kt(ne){return!ne||(0,jt.Z)(ne)!=="object"}var $t=Yt.forwardRef(function(ne,Oe){var Ne=ne.id,Xe=ne.prefixCls,En=Xe===void 0?"rc-tree-select":Xe,In=ne.value,An=ne.defaultValue,en=ne.onChange,ze=ne.onSelect,qe=ne.onDeselect,pn=ne.searchValue,bn=ne.inputValue,Yn=ne.onSearch,ti=ne.autoClearSearchValue,yi=ti===void 0?!0:ti,vn=ne.filterTreeNode,Pi=ne.treeNodeFilterProp,Ki=Pi===void 0?"value":Pi,pr=ne.showCheckedStrategy,or=ne.treeNodeLabelProp,ir=ne.multiple,vr=ne.treeCheckable,ur=ne.treeCheckStrictly,hr=ne.labelInValue,Ji=ne.maxCount,xr=ne.fieldNames,Ct=ne.treeDataSimpleMode,yn=ne.treeData,Zn=ne.children,dr=ne.loadData,sr=ne.treeLoadedKeys,Oi=ne.onTreeLoad,Nn=ne.treeDefaultExpandAll,Cn=ne.treeExpandedKeys,kn=ne.treeDefaultExpandedKeys,ve=ne.onTreeExpand,ye=ne.treeExpandAction,xe=ne.virtual,Kn=ne.listHeight,$n=Kn===void 0?200:Kn,ui=ne.listItemHeight,Sn=ui===void 0?20:ui,oi=ne.listItemScrollOffset,fe=oi===void 0?0:oi,Te=ne.onDropdownVisibleChange,hi=ne.dropdownMatchSelectWidth,ee=hi===void 0?!0:hi,nn=ne.treeLine,Vn=ne.treeIcon,_n=ne.showTreeIcon,Ke=ne.switcherIcon,Gn=ne.treeMotion,ai=ne.treeTitleRender,ni=ne.onPopupScroll,ki=(0,be.Z)(ne,Kt),xi=(0,Ze.ZP)(Ne),gi=vr&&!ur,Li=vr||ur,Zi=ur||hr,tr=Li||ir,zi=(0,Mt.Z)(An,{value:In}),wn=(0,Fe.Z)(zi,2),Rr=wn[0],Lr=wn[1],Hr=Yt.useMemo(function(){return vr?pr||Rt:Ai},[pr,vr]),dn=Yt.useMemo(function(){return ii(xr)},[JSON.stringify(xr)]),Mi=(0,Mt.Z)("",{value:pn!==void 0?pn:bn,postState:function(zt){return zt||""}}),Vi=(0,Fe.Z)(Mi,2),Qi=Vi[0],qi=Vi[1],cr=function(zt){qi(zt),Yn==null||Yn(zt)},Ar=De(yn,Zn,Ct),ji=dt(Ar,dn),er=ji.keyEntities,Hi=ji.valueEntities,cn=Yt.useCallback(function(qt){var zt=[],ae=[];return qt.forEach(function(de){Hi.has(de)?ae.push(de):zt.push(de)}),{missingRawValues:zt,existRawValues:ae}},[Hi]),lr=Jt(Ar,Qi,{fieldNames:dn,treeNodeFilterProp:Ki,filterTreeNode:vn}),xn=Yt.useCallback(function(qt){if(qt){if(or)return qt[or];for(var zt=dn._title,ae=0;ae<zt.length;ae+=1){var de=qt[zt[ae]];if(de!==void 0)return de}}},[dn,or]),wi=Yt.useCallback(function(qt){var zt=mn(qt);return zt.map(function(ae){return kt(ae)?{value:ae}:ae})},[]),Xi=Yt.useCallback(function(qt){var zt=wi(qt);return zt.map(function(ae){var de=ae.label,je=ae.value,Ye=ae.halfChecked,tn,Ln=Hi.get(je);if(Ln){var Bn;de=ai?ai(Ln.node):(Bn=de)!==null&&Bn!==void 0?Bn:xn(Ln.node),tn=Ln.node.disabled}else if(de===void 0){var Pn=wi(Rr).find(function(ri){return ri.value===je});de=Pn.label}return{label:de,value:je,halfChecked:Ye,disabled:tn}})},[Hi,xn,wi,Rr]),Sr=Yt.useMemo(function(){return wi(Rr===null?[]:Rr)},[wi,Rr]),ao=Yt.useMemo(function(){var qt=[],zt=[];return Sr.forEach(function(ae){ae.halfChecked?zt.push(ae):qt.push(ae)}),[qt,zt]},[Sr]),co=(0,Fe.Z)(ao,2),qr=co[0],io=co[1],$e=Yt.useMemo(function(){return qr.map(function(qt){return qt.value})},[qr]),Rn=nt(qr,io,gi,er),on=(0,Fe.Z)(Rn,2),Bt=on[0],Zt=on[1],Gt=Yt.useMemo(function(){var qt=At(Bt,Hr,er,dn),zt=qt.map(function(Ye){var tn,Ln;return(tn=(Ln=er[Ye])===null||Ln===void 0||(Ln=Ln.node)===null||Ln===void 0?void 0:Ln[dn.value])!==null&&tn!==void 0?tn:Ye}),ae=zt.map(function(Ye){var tn=qr.find(function(Bn){return Bn.value===Ye}),Ln=hr?tn==null?void 0:tn.label:ai==null?void 0:ai(tn);return{value:Ye,label:Ln}}),de=Xi(ae),je=de[0];return!tr&&je&&qn(je.value)&&qn(je.label)?[]:de.map(function(Ye){var tn;return(0,re.Z)((0,re.Z)({},Ye),{},{label:(tn=Ye.label)!==null&&tn!==void 0?tn:Ye.value})})},[dn,tr,Bt,qr,Xi,Hr,er]),he=We(Gt),Be=(0,Fe.Z)(he,1),rn=Be[0],ie=Yt.useMemo(function(){return tr&&(Hr==="SHOW_CHILD"||ur||!vr)?Ji:null},[Ji,tr,ur,Hr,vr]),ke=Ee(function(qt,zt,ae){var de=At(qt,Hr,er,dn);if(!(ie&&de.length>ie)){var je=Xi(qt);if(Lr(je),yi&&qi(""),en){var Ye=qt;gi&&(Ye=de.map(function(zn){var ci=Hi.get(zn);return ci?ci.node[dn.value]:zn}));var tn=zt||{triggerValue:void 0,selected:void 0},Ln=tn.triggerValue,Bn=tn.selected,Pn=Ye;if(ur){var ri=io.filter(function(zn){return!Ye.includes(zn.value)});Pn=[].concat((0,te.Z)(Pn),(0,te.Z)(ri))}var Si=Xi(Pn),ue={preValue:qr,triggerValue:Ln},Un=!0;(ur||ae==="selection"&&!Bn)&&(Un=!1),se(ue,Ln,qt,Ar,Un,dn),Li?ue.checked=Bn:ue.selected=Bn;var si=Zi?Si:Si.map(function(zn){return zn.value});en(tr?si:si[0],Zi?null:Si.map(function(zn){return zn.label}),ue)}}}),He=Yt.useCallback(function(qt,zt){var ae,de=zt.selected,je=zt.source,Ye=er[qt],tn=Ye==null?void 0:Ye.node,Ln=(ae=tn==null?void 0:tn[dn.value])!==null&&ae!==void 0?ae:qt;if(!tr)ke([Ln],{selected:!0,triggerValue:Ln},"option");else{var Bn=de?[].concat((0,te.Z)($e),[Ln]):Bt.filter(function(ci){return ci!==Ln});if(gi){var Pn=cn(Bn),ri=Pn.missingRawValues,Si=Pn.existRawValues,ue=Si.map(function(ci){return Hi.get(ci).key}),Un;if(de){var si=(0,Ce.S)(ue,!0,er);Un=si.checkedKeys}else{var zn=(0,Ce.S)(ue,{checked:!1,halfCheckedKeys:Zt},er);Un=zn.checkedKeys}Bn=[].concat((0,te.Z)(ri),(0,te.Z)(Un.map(function(ci){return er[ci].node[dn.value]})))}ke(Bn,{selected:de,triggerValue:Ln},je||"option")}de||!tr?ze==null||ze(Ln,Ht(tn)):qe==null||qe(Ln,Ht(tn))},[cn,Hi,er,dn,tr,$e,ke,gi,ze,qe,Bt,Zt,Ji]),_e=Yt.useCallback(function(qt){if(Te){var zt={};Object.defineProperty(zt,"documentClickClose",{get:function(){return(0,Re.ZP)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),Te(qt,zt)}},[Te]),hn=Ee(function(qt,zt){var ae=qt.map(function(de){return de.value});if(zt.type==="clear"){ke(ae,{},"selection");return}zt.values.length&&He(zt.values[0].value,{selected:!1,source:"selection"})}),mi=Yt.useMemo(function(){return{virtual:xe,dropdownMatchSelectWidth:ee,listHeight:$n,listItemHeight:Sn,listItemScrollOffset:fe,treeData:lr,fieldNames:dn,onSelect:He,treeExpandAction:ye,treeTitleRender:ai,onPopupScroll:ni,leftMaxCount:Ji===void 0?null:Ji-rn.length,leafCountOnly:Hr==="SHOW_CHILD"&&!ur&&!!vr,valueEntities:Hi}},[xe,ee,$n,Sn,fe,lr,dn,He,ye,ai,ni,Ji,rn.length,Hr,ur,vr,Hi]),Et=Yt.useMemo(function(){return{checkable:Li,loadData:dr,treeLoadedKeys:sr,onTreeLoad:Oi,checkedKeys:Bt,halfCheckedKeys:Zt,treeDefaultExpandAll:Nn,treeExpandedKeys:Cn,treeDefaultExpandedKeys:kn,onTreeExpand:ve,treeIcon:Vn,treeMotion:Gn,showTreeIcon:_n,switcherIcon:Ke,treeLine:nn,treeNodeFilterProp:Ki,keyEntities:er}},[Li,dr,sr,Oi,Bt,Zt,Nn,Cn,kn,ve,Vn,Gn,_n,Ke,nn,Ki,er]);return Yt.createElement(Qt.Provider,{value:mi},Yt.createElement(sn.Provider,{value:Et},Yt.createElement(ge.Ac,(0,yt.Z)({ref:Oe},ki,{id:xi,prefixCls:En,mode:tr?"multiple":void 0,displayValues:rn,onDisplayValuesChange:hn,searchValue:Qi,onSearch:cr,OptionList:Pe,emptyOptions:!Ar.length,onDropdownVisibleChange:_e,dropdownMatchSelectWidth:ee}))))}),un=$t;un.TreeNode=St,un.SHOW_ALL=Ai,un.SHOW_PARENT=Xn,un.SHOW_CHILD=Rt;var Ie=un,Ue=Ie},639:function(Jn,pi,Dt){"use strict";Dt.d(pi,{Z:function(){return mt}});var yt=Dt(72308),te=Dt(49618),re=Dt(77321),Fe=Dt(52487),be=Dt(74416),jt=Dt(59301),ge=Dt(92310),Ze=Dt.n(ge),Ce=Dt(26112),Mt=Dt(30699),Re=function(bt){for(var It=bt.prefixCls,Ht=bt.level,se=bt.isStart,Vt=bt.isEnd,Jt="".concat(It,"-indent-unit"),Ee=[],we=0;we<Ht;we+=1)Ee.push(jt.createElement("span",{key:we,className:Ze()(Jt,(0,te.Z)((0,te.Z)({},"".concat(Jt,"-start"),se[we]),"".concat(Jt,"-end"),Vt[we]))}));return jt.createElement("span",{"aria-hidden":"true",className:"".concat(It,"-indent")},Ee)},Yt=jt.memo(Re),We=Dt(65065),Nt=Dt(34061),nt=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],et="open",dt="close",lt="---",gt=function(bt){var It,Ht,se,Vt=bt.eventKey,Jt=bt.className,Ee=bt.style,we=bt.dragOver,De=bt.dragOverGapTop,Le=bt.dragOverGapBottom,sn=bt.isLeaf,Fn=bt.isStart,fn=bt.isEnd,Ge=bt.expanded,an=bt.selected,Se=bt.checked,Qt=bt.halfChecked,mn=bt.loading,ii=bt.domRef,jn=bt.active,ln=bt.data,qn=bt.onMouseMove,Dn=bt.selectable,fi=(0,be.Z)(bt,nt),Ve=jt.useContext(Mt.k),On=jt.useContext(Mt.y),Pe=jt.useRef(null),Ai=jt.useState(!1),Xn=(0,Fe.Z)(Ai,2),Rt=Xn[0],At=Xn[1],wt=!!(Ve.disabled||bt.disabled||(It=On.nodeDisabled)!==null&&It!==void 0&&It.call(On,ln)),Tt=jt.useMemo(function(){return!Ve.checkable||bt.checkable===!1?!1:Ve.checkable},[Ve.checkable,bt.checkable]),Kt=function(Zn){wt||Ve.onNodeSelect(Zn,(0,Nt.F)(bt))},kt=function(Zn){wt||!Tt||bt.disableCheckbox||Ve.onNodeCheck(Zn,(0,Nt.F)(bt),!Se)},$t=jt.useMemo(function(){return typeof Dn=="boolean"?Dn:Ve.selectable},[Dn,Ve.selectable]),un=function(Zn){Ve.onNodeClick(Zn,(0,Nt.F)(bt)),$t?Kt(Zn):kt(Zn)},Ie=function(Zn){Ve.onNodeDoubleClick(Zn,(0,Nt.F)(bt))},Ue=function(Zn){Ve.onNodeMouseEnter(Zn,(0,Nt.F)(bt))},ne=function(Zn){Ve.onNodeMouseLeave(Zn,(0,Nt.F)(bt))},Oe=function(Zn){Ve.onNodeContextMenu(Zn,(0,Nt.F)(bt))},Ne=jt.useMemo(function(){return!!(Ve.draggable&&(!Ve.draggable.nodeDraggable||Ve.draggable.nodeDraggable(ln)))},[Ve.draggable,ln]),Xe=function(Zn){Zn.stopPropagation(),At(!0),Ve.onNodeDragStart(Zn,bt);try{Zn.dataTransfer.setData("text/plain","")}catch(dr){}},En=function(Zn){Zn.preventDefault(),Zn.stopPropagation(),Ve.onNodeDragEnter(Zn,bt)},In=function(Zn){Zn.preventDefault(),Zn.stopPropagation(),Ve.onNodeDragOver(Zn,bt)},An=function(Zn){Zn.stopPropagation(),Ve.onNodeDragLeave(Zn,bt)},en=function(Zn){Zn.stopPropagation(),At(!1),Ve.onNodeDragEnd(Zn,bt)},ze=function(Zn){Zn.preventDefault(),Zn.stopPropagation(),At(!1),Ve.onNodeDrop(Zn,bt)},qe=function(Zn){mn||Ve.onNodeExpand(Zn,(0,Nt.F)(bt))},pn=jt.useMemo(function(){var yn=(0,We.Z)(Ve.keyEntities,Vt)||{},Zn=yn.children;return!!(Zn||[]).length},[Ve.keyEntities,Vt]),bn=jt.useMemo(function(){return sn===!1?!1:sn||!Ve.loadData&&!pn||Ve.loadData&&bt.loaded&&!pn},[sn,Ve.loadData,pn,bt.loaded]);jt.useEffect(function(){mn||typeof Ve.loadData=="function"&&Ge&&!bn&&!bt.loaded&&Ve.onNodeLoad((0,Nt.F)(bt))},[mn,Ve.loadData,Ve.onNodeLoad,Ge,bn,bt]);var Yn=jt.useMemo(function(){var yn;return(yn=Ve.draggable)!==null&&yn!==void 0&&yn.icon?jt.createElement("span",{className:"".concat(Ve.prefixCls,"-draggable-icon")},Ve.draggable.icon):null},[Ve.draggable]),ti=function(Zn){var dr=bt.switcherIcon||Ve.switcherIcon;return typeof dr=="function"?dr((0,re.Z)((0,re.Z)({},bt),{},{isLeaf:Zn})):dr},yi=function(){if(bn){var Zn=ti(!0);return Zn!==!1?jt.createElement("span",{className:Ze()("".concat(Ve.prefixCls,"-switcher"),"".concat(Ve.prefixCls,"-switcher-noop"))},Zn):null}var dr=ti(!1);return dr!==!1?jt.createElement("span",{onClick:qe,className:Ze()("".concat(Ve.prefixCls,"-switcher"),"".concat(Ve.prefixCls,"-switcher_").concat(Ge?et:dt))},dr):null},vn=jt.useMemo(function(){if(!Tt)return null;var yn=typeof Tt!="boolean"?Tt:null;return jt.createElement("span",{className:Ze()("".concat(Ve.prefixCls,"-checkbox"),(0,te.Z)((0,te.Z)((0,te.Z)({},"".concat(Ve.prefixCls,"-checkbox-checked"),Se),"".concat(Ve.prefixCls,"-checkbox-indeterminate"),!Se&&Qt),"".concat(Ve.prefixCls,"-checkbox-disabled"),wt||bt.disableCheckbox)),onClick:kt,role:"checkbox","aria-checked":Qt?"mixed":Se,"aria-disabled":wt||bt.disableCheckbox,"aria-label":"Select ".concat(typeof bt.title=="string"?bt.title:"tree node")},yn)},[Tt,Se,Qt,wt,bt.disableCheckbox,bt.title]),Pi=jt.useMemo(function(){return bn?null:Ge?et:dt},[bn,Ge]),Ki=jt.useMemo(function(){return jt.createElement("span",{className:Ze()("".concat(Ve.prefixCls,"-iconEle"),"".concat(Ve.prefixCls,"-icon__").concat(Pi||"docu"),(0,te.Z)({},"".concat(Ve.prefixCls,"-icon_loading"),mn))})},[Ve.prefixCls,Pi,mn]),pr=jt.useMemo(function(){var yn=!!Ve.draggable,Zn=!bt.disabled&&yn&&Ve.dragOverNodeKey===Vt;return Zn?Ve.dropIndicatorRender({dropPosition:Ve.dropPosition,dropLevelOffset:Ve.dropLevelOffset,indent:Ve.indent,prefixCls:Ve.prefixCls,direction:Ve.direction}):null},[Ve.dropPosition,Ve.dropLevelOffset,Ve.indent,Ve.prefixCls,Ve.direction,Ve.draggable,Ve.dragOverNodeKey,Ve.dropIndicatorRender]),or=jt.useMemo(function(){var yn=bt.title,Zn=yn===void 0?lt:yn,dr="".concat(Ve.prefixCls,"-node-content-wrapper"),sr;if(Ve.showIcon){var Oi=bt.icon||Ve.icon;sr=Oi?jt.createElement("span",{className:Ze()("".concat(Ve.prefixCls,"-iconEle"),"".concat(Ve.prefixCls,"-icon__customize"))},typeof Oi=="function"?Oi(bt):Oi):Ki}else Ve.loadData&&mn&&(sr=Ki);var Nn;return typeof Zn=="function"?Nn=Zn(ln):Ve.titleRender?Nn=Ve.titleRender(ln):Nn=Zn,jt.createElement("span",{ref:Pe,title:typeof Zn=="string"?Zn:"",className:Ze()(dr,"".concat(dr,"-").concat(Pi||"normal"),(0,te.Z)({},"".concat(Ve.prefixCls,"-node-selected"),!wt&&(an||Rt))),onMouseEnter:Ue,onMouseLeave:ne,onContextMenu:Oe,onClick:un,onDoubleClick:Ie},sr,jt.createElement("span",{className:"".concat(Ve.prefixCls,"-title")},Nn),pr)},[Ve.prefixCls,Ve.showIcon,bt,Ve.icon,Ki,Ve.titleRender,ln,Pi,Ue,ne,Oe,un,Ie]),ir=(0,Ce.Z)(fi,{aria:!0,data:!0}),vr=(0,We.Z)(Ve.keyEntities,Vt)||{},ur=vr.level,hr=fn[fn.length-1],Ji=!wt&&Ne,xr=Ve.draggingNodeKey===Vt,Ct=Dn!==void 0?{"aria-selected":!!Dn}:void 0;return jt.createElement("div",(0,yt.Z)({ref:ii,role:"treeitem","aria-expanded":sn?void 0:Ge,className:Ze()(Jt,"".concat(Ve.prefixCls,"-treenode"),(se={},(0,te.Z)((0,te.Z)((0,te.Z)((0,te.Z)((0,te.Z)((0,te.Z)((0,te.Z)((0,te.Z)((0,te.Z)((0,te.Z)(se,"".concat(Ve.prefixCls,"-treenode-disabled"),wt),"".concat(Ve.prefixCls,"-treenode-switcher-").concat(Ge?"open":"close"),!sn),"".concat(Ve.prefixCls,"-treenode-checkbox-checked"),Se),"".concat(Ve.prefixCls,"-treenode-checkbox-indeterminate"),Qt),"".concat(Ve.prefixCls,"-treenode-selected"),an),"".concat(Ve.prefixCls,"-treenode-loading"),mn),"".concat(Ve.prefixCls,"-treenode-active"),jn),"".concat(Ve.prefixCls,"-treenode-leaf-last"),hr),"".concat(Ve.prefixCls,"-treenode-draggable"),Ne),"dragging",xr),(0,te.Z)((0,te.Z)((0,te.Z)((0,te.Z)((0,te.Z)((0,te.Z)((0,te.Z)(se,"drop-target",Ve.dropTargetKey===Vt),"drop-container",Ve.dropContainerKey===Vt),"drag-over",!wt&&we),"drag-over-gap-top",!wt&&De),"drag-over-gap-bottom",!wt&&Le),"filter-node",(Ht=Ve.filterTreeNode)===null||Ht===void 0?void 0:Ht.call(Ve,(0,Nt.F)(bt))),"".concat(Ve.prefixCls,"-treenode-leaf"),bn))),style:Ee,draggable:Ji,onDragStart:Ji?Xe:void 0,onDragEnter:Ne?En:void 0,onDragOver:Ne?In:void 0,onDragLeave:Ne?An:void 0,onDrop:Ne?ze:void 0,onDragEnd:Ne?en:void 0,onMouseMove:qn},Ct,ir),jt.createElement(Yt,{prefixCls:Ve.prefixCls,level:ur,isStart:Fn,isEnd:fn}),Yn,yi(),vn,or)};gt.isTreeNode=1;var mt=gt},30699:function(Jn,pi,Dt){"use strict";Dt.d(pi,{k:function(){return te},y:function(){return re}});var yt=Dt(59301),te=yt.createContext(null),re=yt.createContext({})},15018:function(Jn,pi,Dt){"use strict";Dt.d(pi,{OF:function(){return Vt.Z},y6:function(){return dt.y},ZP:function(){return wt}});var yt=Dt(72308),te=Dt(62853),re=Dt(77321),Fe=Dt(80702),be=Dt(96949),jt=Dt(55090),ge=Dt(80237),Ze=Dt(77205),Ce=Dt(38793),Mt=Dt(49618),Re=Dt(92310),Yt=Dt.n(Re),We=Dt(10228),Nt=Dt(26112),nt=Dt(48736),et=Dt(59301),dt=Dt(30699),lt=function(Kt){var kt=Kt.dropPosition,$t=Kt.dropLevelOffset,un=Kt.indent,Ie={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(kt){case-1:Ie.top=0,Ie.left=-$t*un;break;case 1:Ie.bottom=0,Ie.left=-$t*un;break;case 0:Ie.bottom=0,Ie.left=un;break}return et.createElement("div",{style:Ie})},gt=lt;function mt(Tt){if(Tt==null)throw new TypeError("Cannot destructure "+Tt)}var St=Dt(52487),bt=Dt(74416),It=Dt(34280),Ht=Dt(45680),se=Dt(77900),Vt=Dt(639);function Jt(Tt,Kt){var kt=et.useState(!1),$t=(0,St.Z)(kt,2),un=$t[0],Ie=$t[1];(0,It.Z)(function(){if(un)return Tt(),function(){Kt()}},[un]),(0,It.Z)(function(){return Ie(!0),function(){Ie(!1)}},[])}var Ee=Jt,we=Dt(34061),De=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Le=et.forwardRef(function(Tt,Kt){var kt=Tt.className,$t=Tt.style,un=Tt.motion,Ie=Tt.motionNodes,Ue=Tt.motionType,ne=Tt.onMotionStart,Oe=Tt.onMotionEnd,Ne=Tt.active,Xe=Tt.treeNodeRequiredProps,En=(0,bt.Z)(Tt,De),In=et.useState(!0),An=(0,St.Z)(In,2),en=An[0],ze=An[1],qe=et.useContext(dt.k),pn=qe.prefixCls,bn=Ie&&Ue!=="hide";(0,It.Z)(function(){Ie&&bn!==en&&ze(bn)},[Ie]);var Yn=function(){Ie&&ne()},ti=et.useRef(!1),yi=function(){Ie&&!ti.current&&(ti.current=!0,Oe())};Ee(Yn,yi);var vn=function(Ki){bn===Ki&&yi()};return Ie?et.createElement(se.default,(0,yt.Z)({ref:Kt,visible:en},un,{motionAppear:Ue==="show",onVisibleChanged:vn}),function(Pi,Ki){var pr=Pi.className,or=Pi.style;return et.createElement("div",{ref:Ki,className:Yt()("".concat(pn,"-treenode-motion"),pr),style:or},Ie.map(function(ir){var vr=Object.assign({},(mt(ir.data),ir.data)),ur=ir.title,hr=ir.key,Ji=ir.isStart,xr=ir.isEnd;delete vr.children;var Ct=(0,we.H8)(hr,Xe);return et.createElement(Vt.Z,(0,yt.Z)({},vr,Ct,{title:ur,active:Ne,data:ir.data,key:hr,isStart:Ji,isEnd:xr}))}))}):et.createElement(Vt.Z,(0,yt.Z)({domRef:Kt,className:kt,style:$t},En,{active:Ne}))}),sn=Le;function Fn(){var Tt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Kt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],kt=Tt.length,$t=Kt.length;if(Math.abs(kt-$t)!==1)return{add:!1,key:null};function un(Ie,Ue){var ne=new Map;Ie.forEach(function(Ne){ne.set(Ne,!0)});var Oe=Ue.filter(function(Ne){return!ne.has(Ne)});return Oe.length===1?Oe[0]:null}return kt<$t?{add:!0,key:un(Tt,Kt)}:{add:!1,key:un(Kt,Tt)}}function fn(Tt,Kt,kt){var $t=Tt.findIndex(function(ne){return ne.key===kt}),un=Tt[$t+1],Ie=Kt.findIndex(function(ne){return ne.key===kt});if(un){var Ue=Kt.findIndex(function(ne){return ne.key===un.key});return Kt.slice(Ie+1,Ue)}return Kt.slice(Ie+1)}var Ge=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],an={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Se=function(){},Qt="RC_TREE_MOTION_".concat(Math.random()),mn={key:Qt},ii={key:Qt,level:0,index:0,pos:"0",node:mn,nodes:[mn]},jn={parent:null,children:[],pos:ii.pos,data:mn,title:null,key:Qt,isStart:[],isEnd:[]};function ln(Tt,Kt,kt,$t){return Kt===!1||!kt?Tt:Tt.slice(0,Math.ceil(kt/$t)+1)}function qn(Tt){var Kt=Tt.key,kt=Tt.pos;return(0,we.km)(Kt,kt)}function Dn(Tt){for(var Kt=String(Tt.data.key),kt=Tt;kt.parent;)kt=kt.parent,Kt="".concat(kt.data.key," > ").concat(Kt);return Kt}var fi=et.forwardRef(function(Tt,Kt){var kt=Tt.prefixCls,$t=Tt.data,un=Tt.selectable,Ie=Tt.checkable,Ue=Tt.expandedKeys,ne=Tt.selectedKeys,Oe=Tt.checkedKeys,Ne=Tt.loadedKeys,Xe=Tt.loadingKeys,En=Tt.halfCheckedKeys,In=Tt.keyEntities,An=Tt.disabled,en=Tt.dragging,ze=Tt.dragOverNodeKey,qe=Tt.dropPosition,pn=Tt.motion,bn=Tt.height,Yn=Tt.itemHeight,ti=Tt.virtual,yi=Tt.scrollWidth,vn=Tt.focusable,Pi=Tt.activeItem,Ki=Tt.focused,pr=Tt.tabIndex,or=Tt.onKeyDown,ir=Tt.onFocus,vr=Tt.onBlur,ur=Tt.onActiveChange,hr=Tt.onListChangeStart,Ji=Tt.onListChangeEnd,xr=(0,bt.Z)(Tt,Ge),Ct=et.useRef(null),yn=et.useRef(null);et.useImperativeHandle(Kt,function(){return{scrollTo:function(ni){Ct.current.scrollTo(ni)},getIndentWidth:function(){return yn.current.offsetWidth}}});var Zn=et.useState(Ue),dr=(0,St.Z)(Zn,2),sr=dr[0],Oi=dr[1],Nn=et.useState($t),Cn=(0,St.Z)(Nn,2),kn=Cn[0],ve=Cn[1],ye=et.useState($t),xe=(0,St.Z)(ye,2),Kn=xe[0],$n=xe[1],ui=et.useState([]),Sn=(0,St.Z)(ui,2),oi=Sn[0],fe=Sn[1],Te=et.useState(null),hi=(0,St.Z)(Te,2),ee=hi[0],nn=hi[1],Vn=et.useRef($t);Vn.current=$t;function _n(){var ai=Vn.current;ve(ai),$n(ai),fe([]),nn(null),Ji()}(0,It.Z)(function(){Oi(Ue);var ai=Fn(sr,Ue);if(ai.key!==null)if(ai.add){var ni=kn.findIndex(function(tr){var zi=tr.key;return zi===ai.key}),ki=ln(fn(kn,$t,ai.key),ti,bn,Yn),xi=kn.slice();xi.splice(ni+1,0,jn),$n(xi),fe(ki),nn("show")}else{var gi=$t.findIndex(function(tr){var zi=tr.key;return zi===ai.key}),Li=ln(fn($t,kn,ai.key),ti,bn,Yn),Zi=$t.slice();Zi.splice(gi+1,0,jn),$n(Zi),fe(Li),nn("hide")}else kn!==$t&&(ve($t),$n($t))},[Ue,$t]),et.useEffect(function(){en||_n()},[en]);var Ke=pn?Kn:$t,Gn={expandedKeys:Ue,selectedKeys:ne,loadedKeys:Ne,loadingKeys:Xe,checkedKeys:Oe,halfCheckedKeys:En,dragOverNodeKey:ze,dropPosition:qe,keyEntities:In};return et.createElement(et.Fragment,null,Ki&&Pi&&et.createElement("span",{style:an,"aria-live":"assertive"},Dn(Pi)),et.createElement("div",null,et.createElement("input",{style:an,disabled:vn===!1||An,tabIndex:vn!==!1?pr:null,onKeyDown:or,onFocus:ir,onBlur:vr,value:"",onChange:Se,"aria-label":"for screen reader"})),et.createElement("div",{className:"".concat(kt,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},et.createElement("div",{className:"".concat(kt,"-indent")},et.createElement("div",{ref:yn,className:"".concat(kt,"-indent-unit")}))),et.createElement(Ht.Z,(0,yt.Z)({},xr,{data:Ke,itemKey:qn,height:bn,fullHeight:!1,virtual:ti,itemHeight:Yn,scrollWidth:yi,prefixCls:"".concat(kt,"-list"),ref:Ct,role:"tree",onVisibleChange:function(ni){ni.every(function(ki){return qn(ki)!==Qt})&&_n()}}),function(ai){var ni=ai.pos,ki=Object.assign({},(mt(ai.data),ai.data)),xi=ai.title,gi=ai.key,Li=ai.isStart,Zi=ai.isEnd,tr=(0,we.km)(gi,ni);delete ki.key,delete ki.children;var zi=(0,we.H8)(tr,Gn);return et.createElement(sn,(0,yt.Z)({},ki,zi,{title:xi,active:!!Pi&&gi===Pi.key,pos:ni,data:ai.data,isStart:Li,isEnd:Zi,motion:pn,motionNodes:gi===Qt?oi:null,motionType:ee,onMotionStart:hr,onMotionEnd:_n,treeNodeRequiredProps:Gn,onMouseMove:function(){ur(null)}}))}))}),Ve=fi,On=Dt(82661),Pe=Dt(34643),Ai=Dt(65065),Xn=10,Rt=function(Tt){(0,Ze.Z)(kt,Tt);var Kt=(0,Ce.Z)(kt);function kt(){var $t;(0,be.Z)(this,kt);for(var un=arguments.length,Ie=new Array(un),Ue=0;Ue<un;Ue++)Ie[Ue]=arguments[Ue];return $t=Kt.call.apply(Kt,[this].concat(Ie)),(0,Mt.Z)((0,ge.Z)($t),"destroyed",!1),(0,Mt.Z)((0,ge.Z)($t),"delayedDragEnterLogic",void 0),(0,Mt.Z)((0,ge.Z)($t),"loadingRetryTimes",{}),(0,Mt.Z)((0,ge.Z)($t),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,we.w$)()}),(0,Mt.Z)((0,ge.Z)($t),"dragStartMousePosition",null),(0,Mt.Z)((0,ge.Z)($t),"dragNodeProps",null),(0,Mt.Z)((0,ge.Z)($t),"currentMouseOverDroppableNodeKey",null),(0,Mt.Z)((0,ge.Z)($t),"listRef",et.createRef()),(0,Mt.Z)((0,ge.Z)($t),"onNodeDragStart",function(ne,Oe){var Ne=$t.state,Xe=Ne.expandedKeys,En=Ne.keyEntities,In=$t.props.onDragStart,An=Oe.eventKey;$t.dragNodeProps=Oe,$t.dragStartMousePosition={x:ne.clientX,y:ne.clientY};var en=(0,On._5)(Xe,An);$t.setState({draggingNodeKey:An,dragChildrenKeys:(0,On.wA)(An,En),indent:$t.listRef.current.getIndentWidth()}),$t.setExpandedKeys(en),window.addEventListener("dragend",$t.onWindowDragEnd),In==null||In({event:ne,node:(0,we.F)(Oe)})}),(0,Mt.Z)((0,ge.Z)($t),"onNodeDragEnter",function(ne,Oe){var Ne=$t.state,Xe=Ne.expandedKeys,En=Ne.keyEntities,In=Ne.dragChildrenKeys,An=Ne.flattenNodes,en=Ne.indent,ze=$t.props,qe=ze.onDragEnter,pn=ze.onExpand,bn=ze.allowDrop,Yn=ze.direction,ti=Oe.pos,yi=Oe.eventKey;if($t.currentMouseOverDroppableNodeKey!==yi&&($t.currentMouseOverDroppableNodeKey=yi),!$t.dragNodeProps){$t.resetDragState();return}var vn=(0,On.OM)(ne,$t.dragNodeProps,Oe,en,$t.dragStartMousePosition,bn,An,En,Xe,Yn),Pi=vn.dropPosition,Ki=vn.dropLevelOffset,pr=vn.dropTargetKey,or=vn.dropContainerKey,ir=vn.dropTargetPos,vr=vn.dropAllowed,ur=vn.dragOverNodeKey;if(In.includes(pr)||!vr){$t.resetDragState();return}if($t.delayedDragEnterLogic||($t.delayedDragEnterLogic={}),Object.keys($t.delayedDragEnterLogic).forEach(function(hr){clearTimeout($t.delayedDragEnterLogic[hr])}),$t.dragNodeProps.eventKey!==Oe.eventKey&&(ne.persist(),$t.delayedDragEnterLogic[ti]=window.setTimeout(function(){if($t.state.draggingNodeKey!==null){var hr=(0,Fe.Z)(Xe),Ji=(0,Ai.Z)(En,Oe.eventKey);Ji&&(Ji.children||[]).length&&(hr=(0,On.L0)(Xe,Oe.eventKey)),$t.props.hasOwnProperty("expandedKeys")||$t.setExpandedKeys(hr),pn==null||pn(hr,{node:(0,we.F)(Oe),expanded:!0,nativeEvent:ne.nativeEvent})}},800)),$t.dragNodeProps.eventKey===pr&&Ki===0){$t.resetDragState();return}$t.setState({dragOverNodeKey:ur,dropPosition:Pi,dropLevelOffset:Ki,dropTargetKey:pr,dropContainerKey:or,dropTargetPos:ir,dropAllowed:vr}),qe==null||qe({event:ne,node:(0,we.F)(Oe),expandedKeys:Xe})}),(0,Mt.Z)((0,ge.Z)($t),"onNodeDragOver",function(ne,Oe){var Ne=$t.state,Xe=Ne.dragChildrenKeys,En=Ne.flattenNodes,In=Ne.keyEntities,An=Ne.expandedKeys,en=Ne.indent,ze=$t.props,qe=ze.onDragOver,pn=ze.allowDrop,bn=ze.direction;if($t.dragNodeProps){var Yn=(0,On.OM)(ne,$t.dragNodeProps,Oe,en,$t.dragStartMousePosition,pn,En,In,An,bn),ti=Yn.dropPosition,yi=Yn.dropLevelOffset,vn=Yn.dropTargetKey,Pi=Yn.dropContainerKey,Ki=Yn.dropTargetPos,pr=Yn.dropAllowed,or=Yn.dragOverNodeKey;Xe.includes(vn)||!pr||($t.dragNodeProps.eventKey===vn&&yi===0?$t.state.dropPosition===null&&$t.state.dropLevelOffset===null&&$t.state.dropTargetKey===null&&$t.state.dropContainerKey===null&&$t.state.dropTargetPos===null&&$t.state.dropAllowed===!1&&$t.state.dragOverNodeKey===null||$t.resetDragState():ti===$t.state.dropPosition&&yi===$t.state.dropLevelOffset&&vn===$t.state.dropTargetKey&&Pi===$t.state.dropContainerKey&&Ki===$t.state.dropTargetPos&&pr===$t.state.dropAllowed&&or===$t.state.dragOverNodeKey||$t.setState({dropPosition:ti,dropLevelOffset:yi,dropTargetKey:vn,dropContainerKey:Pi,dropTargetPos:Ki,dropAllowed:pr,dragOverNodeKey:or}),qe==null||qe({event:ne,node:(0,we.F)(Oe)}))}}),(0,Mt.Z)((0,ge.Z)($t),"onNodeDragLeave",function(ne,Oe){$t.currentMouseOverDroppableNodeKey===Oe.eventKey&&!ne.currentTarget.contains(ne.relatedTarget)&&($t.resetDragState(),$t.currentMouseOverDroppableNodeKey=null);var Ne=$t.props.onDragLeave;Ne==null||Ne({event:ne,node:(0,we.F)(Oe)})}),(0,Mt.Z)((0,ge.Z)($t),"onWindowDragEnd",function(ne){$t.onNodeDragEnd(ne,null,!0),window.removeEventListener("dragend",$t.onWindowDragEnd)}),(0,Mt.Z)((0,ge.Z)($t),"onNodeDragEnd",function(ne,Oe){var Ne=$t.props.onDragEnd;$t.setState({dragOverNodeKey:null}),$t.cleanDragState(),Ne==null||Ne({event:ne,node:(0,we.F)(Oe)}),$t.dragNodeProps=null,window.removeEventListener("dragend",$t.onWindowDragEnd)}),(0,Mt.Z)((0,ge.Z)($t),"onNodeDrop",function(ne,Oe){var Ne,Xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,En=$t.state,In=En.dragChildrenKeys,An=En.dropPosition,en=En.dropTargetKey,ze=En.dropTargetPos,qe=En.dropAllowed;if(qe){var pn=$t.props.onDrop;if($t.setState({dragOverNodeKey:null}),$t.cleanDragState(),en!==null){var bn=(0,re.Z)((0,re.Z)({},(0,we.H8)(en,$t.getTreeNodeRequiredProps())),{},{active:((Ne=$t.getActiveItem())===null||Ne===void 0?void 0:Ne.key)===en,data:(0,Ai.Z)($t.state.keyEntities,en).node}),Yn=In.includes(en);(0,nt.ZP)(!Yn,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var ti=(0,On.yx)(ze),yi={event:ne,node:(0,we.F)(bn),dragNode:$t.dragNodeProps?(0,we.F)($t.dragNodeProps):null,dragNodesKeys:[$t.dragNodeProps.eventKey].concat(In),dropToGap:An!==0,dropPosition:An+Number(ti[ti.length-1])};Xe||pn==null||pn(yi),$t.dragNodeProps=null}}}),(0,Mt.Z)((0,ge.Z)($t),"cleanDragState",function(){var ne=$t.state.draggingNodeKey;ne!==null&&$t.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),$t.dragStartMousePosition=null,$t.currentMouseOverDroppableNodeKey=null}),(0,Mt.Z)((0,ge.Z)($t),"triggerExpandActionExpand",function(ne,Oe){var Ne=$t.state,Xe=Ne.expandedKeys,En=Ne.flattenNodes,In=Oe.expanded,An=Oe.key,en=Oe.isLeaf;if(!(en||ne.shiftKey||ne.metaKey||ne.ctrlKey)){var ze=En.filter(function(pn){return pn.key===An})[0],qe=(0,we.F)((0,re.Z)((0,re.Z)({},(0,we.H8)(An,$t.getTreeNodeRequiredProps())),{},{data:ze.data}));$t.setExpandedKeys(In?(0,On._5)(Xe,An):(0,On.L0)(Xe,An)),$t.onNodeExpand(ne,qe)}}),(0,Mt.Z)((0,ge.Z)($t),"onNodeClick",function(ne,Oe){var Ne=$t.props,Xe=Ne.onClick,En=Ne.expandAction;En==="click"&&$t.triggerExpandActionExpand(ne,Oe),Xe==null||Xe(ne,Oe)}),(0,Mt.Z)((0,ge.Z)($t),"onNodeDoubleClick",function(ne,Oe){var Ne=$t.props,Xe=Ne.onDoubleClick,En=Ne.expandAction;En==="doubleClick"&&$t.triggerExpandActionExpand(ne,Oe),Xe==null||Xe(ne,Oe)}),(0,Mt.Z)((0,ge.Z)($t),"onNodeSelect",function(ne,Oe){var Ne=$t.state.selectedKeys,Xe=$t.state,En=Xe.keyEntities,In=Xe.fieldNames,An=$t.props,en=An.onSelect,ze=An.multiple,qe=Oe.selected,pn=Oe[In.key],bn=!qe;bn?ze?Ne=(0,On.L0)(Ne,pn):Ne=[pn]:Ne=(0,On._5)(Ne,pn);var Yn=Ne.map(function(ti){var yi=(0,Ai.Z)(En,ti);return yi?yi.node:null}).filter(Boolean);$t.setUncontrolledState({selectedKeys:Ne}),en==null||en(Ne,{event:"select",selected:bn,node:Oe,selectedNodes:Yn,nativeEvent:ne.nativeEvent})}),(0,Mt.Z)((0,ge.Z)($t),"onNodeCheck",function(ne,Oe,Ne){var Xe=$t.state,En=Xe.keyEntities,In=Xe.checkedKeys,An=Xe.halfCheckedKeys,en=$t.props,ze=en.checkStrictly,qe=en.onCheck,pn=Oe.key,bn,Yn={event:"check",node:Oe,checked:Ne,nativeEvent:ne.nativeEvent};if(ze){var ti=Ne?(0,On.L0)(In,pn):(0,On._5)(In,pn),yi=(0,On._5)(An,pn);bn={checked:ti,halfChecked:yi},Yn.checkedNodes=ti.map(function(ir){return(0,Ai.Z)(En,ir)}).filter(Boolean).map(function(ir){return ir.node}),$t.setUncontrolledState({checkedKeys:ti})}else{var vn=(0,Pe.S)([].concat((0,Fe.Z)(In),[pn]),!0,En),Pi=vn.checkedKeys,Ki=vn.halfCheckedKeys;if(!Ne){var pr=new Set(Pi);pr.delete(pn);var or=(0,Pe.S)(Array.from(pr),{checked:!1,halfCheckedKeys:Ki},En);Pi=or.checkedKeys,Ki=or.halfCheckedKeys}bn=Pi,Yn.checkedNodes=[],Yn.checkedNodesPositions=[],Yn.halfCheckedKeys=Ki,Pi.forEach(function(ir){var vr=(0,Ai.Z)(En,ir);if(vr){var ur=vr.node,hr=vr.pos;Yn.checkedNodes.push(ur),Yn.checkedNodesPositions.push({node:ur,pos:hr})}}),$t.setUncontrolledState({checkedKeys:Pi},!1,{halfCheckedKeys:Ki})}qe==null||qe(bn,Yn)}),(0,Mt.Z)((0,ge.Z)($t),"onNodeLoad",function(ne){var Oe,Ne=ne.key,Xe=$t.state.keyEntities,En=(0,Ai.Z)(Xe,Ne);if(!(En!=null&&(Oe=En.children)!==null&&Oe!==void 0&&Oe.length)){var In=new Promise(function(An,en){$t.setState(function(ze){var qe=ze.loadedKeys,pn=qe===void 0?[]:qe,bn=ze.loadingKeys,Yn=bn===void 0?[]:bn,ti=$t.props,yi=ti.loadData,vn=ti.onLoad;if(!yi||pn.includes(Ne)||Yn.includes(Ne))return null;var Pi=yi(ne);return Pi.then(function(){var Ki=$t.state.loadedKeys,pr=(0,On.L0)(Ki,Ne);vn==null||vn(pr,{event:"load",node:ne}),$t.setUncontrolledState({loadedKeys:pr}),$t.setState(function(or){return{loadingKeys:(0,On._5)(or.loadingKeys,Ne)}}),An()}).catch(function(Ki){if($t.setState(function(or){return{loadingKeys:(0,On._5)(or.loadingKeys,Ne)}}),$t.loadingRetryTimes[Ne]=($t.loadingRetryTimes[Ne]||0)+1,$t.loadingRetryTimes[Ne]>=Xn){var pr=$t.state.loadedKeys;(0,nt.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),$t.setUncontrolledState({loadedKeys:(0,On.L0)(pr,Ne)}),An()}en(Ki)}),{loadingKeys:(0,On.L0)(Yn,Ne)}})});return In.catch(function(){}),In}}),(0,Mt.Z)((0,ge.Z)($t),"onNodeMouseEnter",function(ne,Oe){var Ne=$t.props.onMouseEnter;Ne==null||Ne({event:ne,node:Oe})}),(0,Mt.Z)((0,ge.Z)($t),"onNodeMouseLeave",function(ne,Oe){var Ne=$t.props.onMouseLeave;Ne==null||Ne({event:ne,node:Oe})}),(0,Mt.Z)((0,ge.Z)($t),"onNodeContextMenu",function(ne,Oe){var Ne=$t.props.onRightClick;Ne&&(ne.preventDefault(),Ne({event:ne,node:Oe}))}),(0,Mt.Z)((0,ge.Z)($t),"onFocus",function(){var ne=$t.props.onFocus;$t.setState({focused:!0});for(var Oe=arguments.length,Ne=new Array(Oe),Xe=0;Xe<Oe;Xe++)Ne[Xe]=arguments[Xe];ne==null||ne.apply(void 0,Ne)}),(0,Mt.Z)((0,ge.Z)($t),"onBlur",function(){var ne=$t.props.onBlur;$t.setState({focused:!1}),$t.onActiveChange(null);for(var Oe=arguments.length,Ne=new Array(Oe),Xe=0;Xe<Oe;Xe++)Ne[Xe]=arguments[Xe];ne==null||ne.apply(void 0,Ne)}),(0,Mt.Z)((0,ge.Z)($t),"getTreeNodeRequiredProps",function(){var ne=$t.state,Oe=ne.expandedKeys,Ne=ne.selectedKeys,Xe=ne.loadedKeys,En=ne.loadingKeys,In=ne.checkedKeys,An=ne.halfCheckedKeys,en=ne.dragOverNodeKey,ze=ne.dropPosition,qe=ne.keyEntities;return{expandedKeys:Oe||[],selectedKeys:Ne||[],loadedKeys:Xe||[],loadingKeys:En||[],checkedKeys:In||[],halfCheckedKeys:An||[],dragOverNodeKey:en,dropPosition:ze,keyEntities:qe}}),(0,Mt.Z)((0,ge.Z)($t),"setExpandedKeys",function(ne){var Oe=$t.state,Ne=Oe.treeData,Xe=Oe.fieldNames,En=(0,we.oH)(Ne,ne,Xe);$t.setUncontrolledState({expandedKeys:ne,flattenNodes:En},!0)}),(0,Mt.Z)((0,ge.Z)($t),"onNodeExpand",function(ne,Oe){var Ne=$t.state.expandedKeys,Xe=$t.state,En=Xe.listChanging,In=Xe.fieldNames,An=$t.props,en=An.onExpand,ze=An.loadData,qe=Oe.expanded,pn=Oe[In.key];if(!En){var bn=Ne.includes(pn),Yn=!qe;if((0,nt.ZP)(qe&&bn||!qe&&!bn,"Expand state not sync with index check"),Ne=Yn?(0,On.L0)(Ne,pn):(0,On._5)(Ne,pn),$t.setExpandedKeys(Ne),en==null||en(Ne,{node:Oe,expanded:Yn,nativeEvent:ne.nativeEvent}),Yn&&ze){var ti=$t.onNodeLoad(Oe);ti&&ti.then(function(){var yi=(0,we.oH)($t.state.treeData,Ne,In);$t.setUncontrolledState({flattenNodes:yi})}).catch(function(){var yi=$t.state.expandedKeys,vn=(0,On._5)(yi,pn);$t.setExpandedKeys(vn)})}}}),(0,Mt.Z)((0,ge.Z)($t),"onListChangeStart",function(){$t.setUncontrolledState({listChanging:!0})}),(0,Mt.Z)((0,ge.Z)($t),"onListChangeEnd",function(){setTimeout(function(){$t.setUncontrolledState({listChanging:!1})})}),(0,Mt.Z)((0,ge.Z)($t),"onActiveChange",function(ne){var Oe=$t.state.activeKey,Ne=$t.props,Xe=Ne.onActiveChange,En=Ne.itemScrollOffset,In=En===void 0?0:En;Oe!==ne&&($t.setState({activeKey:ne}),ne!==null&&$t.scrollTo({key:ne,offset:In}),Xe==null||Xe(ne))}),(0,Mt.Z)((0,ge.Z)($t),"getActiveItem",function(){var ne=$t.state,Oe=ne.activeKey,Ne=ne.flattenNodes;return Oe===null?null:Ne.find(function(Xe){var En=Xe.key;return En===Oe})||null}),(0,Mt.Z)((0,ge.Z)($t),"offsetActiveKey",function(ne){var Oe=$t.state,Ne=Oe.flattenNodes,Xe=Oe.activeKey,En=Ne.findIndex(function(en){var ze=en.key;return ze===Xe});En===-1&&ne<0&&(En=Ne.length),En=(En+ne+Ne.length)%Ne.length;var In=Ne[En];if(In){var An=In.key;$t.onActiveChange(An)}else $t.onActiveChange(null)}),(0,Mt.Z)((0,ge.Z)($t),"onKeyDown",function(ne){var Oe=$t.state,Ne=Oe.activeKey,Xe=Oe.expandedKeys,En=Oe.checkedKeys,In=Oe.fieldNames,An=$t.props,en=An.onKeyDown,ze=An.checkable,qe=An.selectable;switch(ne.which){case We.Z.UP:{$t.offsetActiveKey(-1),ne.preventDefault();break}case We.Z.DOWN:{$t.offsetActiveKey(1),ne.preventDefault();break}}var pn=$t.getActiveItem();if(pn&&pn.data){var bn=$t.getTreeNodeRequiredProps(),Yn=pn.data.isLeaf===!1||!!(pn.data[In.children]||[]).length,ti=(0,we.F)((0,re.Z)((0,re.Z)({},(0,we.H8)(Ne,bn)),{},{data:pn.data,active:!0}));switch(ne.which){case We.Z.LEFT:{Yn&&Xe.includes(Ne)?$t.onNodeExpand({},ti):pn.parent&&$t.onActiveChange(pn.parent.key),ne.preventDefault();break}case We.Z.RIGHT:{Yn&&!Xe.includes(Ne)?$t.onNodeExpand({},ti):pn.children&&pn.children.length&&$t.onActiveChange(pn.children[0].key),ne.preventDefault();break}case We.Z.ENTER:case We.Z.SPACE:{ze&&!ti.disabled&&ti.checkable!==!1&&!ti.disableCheckbox?$t.onNodeCheck({},ti,!En.includes(Ne)):!ze&&qe&&!ti.disabled&&ti.selectable!==!1&&$t.onNodeSelect({},ti);break}}}en==null||en(ne)}),(0,Mt.Z)((0,ge.Z)($t),"setUncontrolledState",function(ne){var Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!$t.destroyed){var Xe=!1,En=!0,In={};Object.keys(ne).forEach(function(An){if($t.props.hasOwnProperty(An)){En=!1;return}Xe=!0,In[An]=ne[An]}),Xe&&(!Oe||En)&&$t.setState((0,re.Z)((0,re.Z)({},In),Ne))}}),(0,Mt.Z)((0,ge.Z)($t),"scrollTo",function(ne){$t.listRef.current.scrollTo(ne)}),$t}return(0,jt.Z)(kt,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var un=this.props,Ie=un.activeKey,Ue=un.itemScrollOffset,ne=Ue===void 0?0:Ue;Ie!==void 0&&Ie!==this.state.activeKey&&(this.setState({activeKey:Ie}),Ie!==null&&this.scrollTo({key:Ie,offset:ne}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var un=this.state,Ie=un.focused,Ue=un.flattenNodes,ne=un.keyEntities,Oe=un.draggingNodeKey,Ne=un.activeKey,Xe=un.dropLevelOffset,En=un.dropContainerKey,In=un.dropTargetKey,An=un.dropPosition,en=un.dragOverNodeKey,ze=un.indent,qe=this.props,pn=qe.prefixCls,bn=qe.className,Yn=qe.style,ti=qe.showLine,yi=qe.focusable,vn=qe.tabIndex,Pi=vn===void 0?0:vn,Ki=qe.selectable,pr=qe.showIcon,or=qe.icon,ir=qe.switcherIcon,vr=qe.draggable,ur=qe.checkable,hr=qe.checkStrictly,Ji=qe.disabled,xr=qe.motion,Ct=qe.loadData,yn=qe.filterTreeNode,Zn=qe.height,dr=qe.itemHeight,sr=qe.scrollWidth,Oi=qe.virtual,Nn=qe.titleRender,Cn=qe.dropIndicatorRender,kn=qe.onContextMenu,ve=qe.onScroll,ye=qe.direction,xe=qe.rootClassName,Kn=qe.rootStyle,$n=(0,Nt.Z)(this.props,{aria:!0,data:!0}),ui;vr&&((0,te.Z)(vr)==="object"?ui=vr:typeof vr=="function"?ui={nodeDraggable:vr}:ui={});var Sn={prefixCls:pn,selectable:Ki,showIcon:pr,icon:or,switcherIcon:ir,draggable:ui,draggingNodeKey:Oe,checkable:ur,checkStrictly:hr,disabled:Ji,keyEntities:ne,dropLevelOffset:Xe,dropContainerKey:En,dropTargetKey:In,dropPosition:An,dragOverNodeKey:en,indent:ze,direction:ye,dropIndicatorRender:Cn,loadData:Ct,filterTreeNode:yn,titleRender:Nn,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return et.createElement(dt.k.Provider,{value:Sn},et.createElement("div",{className:Yt()(pn,bn,xe,(0,Mt.Z)((0,Mt.Z)((0,Mt.Z)({},"".concat(pn,"-show-line"),ti),"".concat(pn,"-focused"),Ie),"".concat(pn,"-active-focused"),Ne!==null)),style:Kn},et.createElement(Ve,(0,yt.Z)({ref:this.listRef,prefixCls:pn,style:Yn,data:Ue,disabled:Ji,selectable:Ki,checkable:!!ur,motion:xr,dragging:Oe!==null,height:Zn,itemHeight:dr,virtual:Oi,focusable:yi,focused:Ie,tabIndex:Pi,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:kn,onScroll:ve,scrollWidth:sr},this.getTreeNodeRequiredProps(),$n))))}}],[{key:"getDerivedStateFromProps",value:function(un,Ie){var Ue=Ie.prevProps,ne={prevProps:un};function Oe(Pi){return!Ue&&un.hasOwnProperty(Pi)||Ue&&Ue[Pi]!==un[Pi]}var Ne,Xe=Ie.fieldNames;if(Oe("fieldNames")&&(Xe=(0,we.w$)(un.fieldNames),ne.fieldNames=Xe),Oe("treeData")?Ne=un.treeData:Oe("children")&&((0,nt.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Ne=(0,we.zn)(un.children)),Ne){ne.treeData=Ne;var En=(0,we.I8)(Ne,{fieldNames:Xe});ne.keyEntities=(0,re.Z)((0,Mt.Z)({},Qt,ii),En.keyEntities)}var In=ne.keyEntities||Ie.keyEntities;if(Oe("expandedKeys")||Ue&&Oe("autoExpandParent"))ne.expandedKeys=un.autoExpandParent||!Ue&&un.defaultExpandParent?(0,On.r7)(un.expandedKeys,In):un.expandedKeys;else if(!Ue&&un.defaultExpandAll){var An=(0,re.Z)({},In);delete An[Qt];var en=[];Object.keys(An).forEach(function(Pi){var Ki=An[Pi];Ki.children&&Ki.children.length&&en.push(Ki.key)}),ne.expandedKeys=en}else!Ue&&un.defaultExpandedKeys&&(ne.expandedKeys=un.autoExpandParent||un.defaultExpandParent?(0,On.r7)(un.defaultExpandedKeys,In):un.defaultExpandedKeys);if(ne.expandedKeys||delete ne.expandedKeys,Ne||ne.expandedKeys){var ze=(0,we.oH)(Ne||Ie.treeData,ne.expandedKeys||Ie.expandedKeys,Xe);ne.flattenNodes=ze}if(un.selectable&&(Oe("selectedKeys")?ne.selectedKeys=(0,On.BT)(un.selectedKeys,un):!Ue&&un.defaultSelectedKeys&&(ne.selectedKeys=(0,On.BT)(un.defaultSelectedKeys,un))),un.checkable){var qe;if(Oe("checkedKeys")?qe=(0,On.E6)(un.checkedKeys)||{}:!Ue&&un.defaultCheckedKeys?qe=(0,On.E6)(un.defaultCheckedKeys)||{}:Ne&&(qe=(0,On.E6)(un.checkedKeys)||{checkedKeys:Ie.checkedKeys,halfCheckedKeys:Ie.halfCheckedKeys}),qe){var pn=qe,bn=pn.checkedKeys,Yn=bn===void 0?[]:bn,ti=pn.halfCheckedKeys,yi=ti===void 0?[]:ti;if(!un.checkStrictly){var vn=(0,Pe.S)(Yn,!0,In);Yn=vn.checkedKeys,yi=vn.halfCheckedKeys}ne.checkedKeys=Yn,ne.halfCheckedKeys=yi}}return Oe("loadedKeys")&&(ne.loadedKeys=un.loadedKeys),ne}}]),kt}(et.Component);(0,Mt.Z)(Rt,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:gt,allowDrop:function(){return!0},expandAction:!1}),(0,Mt.Z)(Rt,"TreeNode",Vt.Z);var At=Rt,wt=At},82661:function(Jn,pi,Dt){"use strict";Dt.d(pi,{BT:function(){return et},E6:function(){return gt},L0:function(){return Mt},OM:function(){return nt},_5:function(){return Ce},r7:function(){return mt},wA:function(){return Yt},yx:function(){return Re}});var yt=Dt(80702),te=Dt(62853),re=Dt(48736),Fe=Dt(59301),be=Dt(639),jt=Dt(65065),ge=Dt(34061),Ze=null;function Ce(St,bt){if(!St)return[];var It=St.slice(),Ht=It.indexOf(bt);return Ht>=0&&It.splice(Ht,1),It}function Mt(St,bt){var It=(St||[]).slice();return It.indexOf(bt)===-1&&It.push(bt),It}function Re(St){return St.split("-")}function Yt(St,bt){var It=[],Ht=(0,jt.Z)(bt,St);function se(){var Vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Vt.forEach(function(Jt){var Ee=Jt.key,we=Jt.children;It.push(Ee),se(we)})}return se(Ht.children),It}function We(St){if(St.parent){var bt=Re(St.pos);return Number(bt[bt.length-1])===St.parent.children.length-1}return!1}function Nt(St){var bt=Re(St.pos);return Number(bt[bt.length-1])===0}function nt(St,bt,It,Ht,se,Vt,Jt,Ee,we,De){var Le,sn=St.clientX,Fn=St.clientY,fn=St.target.getBoundingClientRect(),Ge=fn.top,an=fn.height,Se=(De==="rtl"?-1:1)*(((se==null?void 0:se.x)||0)-sn),Qt=(Se-12)/Ht,mn=we.filter(function(wt){var Tt;return(Tt=Ee[wt])===null||Tt===void 0||(Tt=Tt.children)===null||Tt===void 0?void 0:Tt.length}),ii=(0,jt.Z)(Ee,It.eventKey);if(Fn<Ge+an/2){var jn=Jt.findIndex(function(wt){return wt.key===ii.key}),ln=jn<=0?0:jn-1,qn=Jt[ln].key;ii=(0,jt.Z)(Ee,qn)}var Dn=ii.key,fi=ii,Ve=ii.key,On=0,Pe=0;if(!mn.includes(Dn))for(var Ai=0;Ai<Qt&&We(ii);Ai+=1)ii=ii.parent,Pe+=1;var Xn=bt.data,Rt=ii.node,At=!0;return Nt(ii)&&ii.level===0&&Fn<Ge+an/2&&Vt({dragNode:Xn,dropNode:Rt,dropPosition:-1})&&ii.key===It.eventKey?On=-1:(fi.children||[]).length&&mn.includes(Ve)?Vt({dragNode:Xn,dropNode:Rt,dropPosition:0})?On=0:At=!1:Pe===0?Qt>-1.5?Vt({dragNode:Xn,dropNode:Rt,dropPosition:1})?On=1:At=!1:Vt({dragNode:Xn,dropNode:Rt,dropPosition:0})?On=0:Vt({dragNode:Xn,dropNode:Rt,dropPosition:1})?On=1:At=!1:Vt({dragNode:Xn,dropNode:Rt,dropPosition:1})?On=1:At=!1,{dropPosition:On,dropLevelOffset:Pe,dropTargetKey:ii.key,dropTargetPos:ii.pos,dragOverNodeKey:Ve,dropContainerKey:On===0?null:((Le=ii.parent)===null||Le===void 0?void 0:Le.key)||null,dropAllowed:At}}function et(St,bt){if(St){var It=bt.multiple;return It?St.slice():St.length?[St[0]]:St}}var dt=function(bt){return bt};function lt(St,bt){if(!St)return[];var It=bt||{},Ht=It.processProps,se=Ht===void 0?dt:Ht,Vt=Array.isArray(St)?St:[St];return Vt.map(function(Jt){var Ee=Jt.children,we=_objectWithoutProperties(Jt,Ze),De=lt(Ee,bt);return React.createElement(TreeNode,_extends({key:we.key},se(we)),De)})}function gt(St){if(!St)return null;var bt;if(Array.isArray(St))bt={checkedKeys:St,halfCheckedKeys:void 0};else if((0,te.Z)(St)==="object")bt={checkedKeys:St.checked||void 0,halfCheckedKeys:St.halfChecked||void 0};else return(0,re.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return bt}function mt(St,bt){var It=new Set;function Ht(se){if(!It.has(se)){var Vt=(0,jt.Z)(bt,se);if(Vt){It.add(se);var Jt=Vt.parent,Ee=Vt.node;Ee.disabled||Jt&&Ht(Jt.key)}}}return(St||[]).forEach(function(se){Ht(se)}),(0,yt.Z)(It)}},34643:function(Jn,pi,Dt){"use strict";Dt.d(pi,{S:function(){return ge}});var yt=Dt(48736),te=Dt(65065);function re(Ze,Ce){var Mt=new Set;return Ze.forEach(function(Re){Ce.has(Re)||Mt.add(Re)}),Mt}function Fe(Ze){var Ce=Ze||{},Mt=Ce.disabled,Re=Ce.disableCheckbox,Yt=Ce.checkable;return!!(Mt||Re)||Yt===!1}function be(Ze,Ce,Mt,Re){for(var Yt=new Set(Ze),We=new Set,Nt=0;Nt<=Mt;Nt+=1){var nt=Ce.get(Nt)||new Set;nt.forEach(function(gt){var mt=gt.key,St=gt.node,bt=gt.children,It=bt===void 0?[]:bt;Yt.has(mt)&&!Re(St)&&It.filter(function(Ht){return!Re(Ht.node)}).forEach(function(Ht){Yt.add(Ht.key)})})}for(var et=new Set,dt=Mt;dt>=0;dt-=1){var lt=Ce.get(dt)||new Set;lt.forEach(function(gt){var mt=gt.parent,St=gt.node;if(!(Re(St)||!gt.parent||et.has(gt.parent.key))){if(Re(gt.parent.node)){et.add(mt.key);return}var bt=!0,It=!1;(mt.children||[]).filter(function(Ht){return!Re(Ht.node)}).forEach(function(Ht){var se=Ht.key,Vt=Yt.has(se);bt&&!Vt&&(bt=!1),!It&&(Vt||We.has(se))&&(It=!0)}),bt&&Yt.add(mt.key),It&&We.add(mt.key),et.add(mt.key)}})}return{checkedKeys:Array.from(Yt),halfCheckedKeys:Array.from(re(We,Yt))}}function jt(Ze,Ce,Mt,Re,Yt){for(var We=new Set(Ze),Nt=new Set(Ce),nt=0;nt<=Re;nt+=1){var et=Mt.get(nt)||new Set;et.forEach(function(mt){var St=mt.key,bt=mt.node,It=mt.children,Ht=It===void 0?[]:It;!We.has(St)&&!Nt.has(St)&&!Yt(bt)&&Ht.filter(function(se){return!Yt(se.node)}).forEach(function(se){We.delete(se.key)})})}Nt=new Set;for(var dt=new Set,lt=Re;lt>=0;lt-=1){var gt=Mt.get(lt)||new Set;gt.forEach(function(mt){var St=mt.parent,bt=mt.node;if(!(Yt(bt)||!mt.parent||dt.has(mt.parent.key))){if(Yt(mt.parent.node)){dt.add(St.key);return}var It=!0,Ht=!1;(St.children||[]).filter(function(se){return!Yt(se.node)}).forEach(function(se){var Vt=se.key,Jt=We.has(Vt);It&&!Jt&&(It=!1),!Ht&&(Jt||Nt.has(Vt))&&(Ht=!0)}),It||We.delete(St.key),Ht&&Nt.add(St.key),dt.add(St.key)}})}return{checkedKeys:Array.from(We),halfCheckedKeys:Array.from(re(Nt,We))}}function ge(Ze,Ce,Mt,Re){var Yt=[],We;Re?We=Re:We=Fe;var Nt=new Set(Ze.filter(function(lt){var gt=!!(0,te.Z)(Mt,lt);return gt||Yt.push(lt),gt})),nt=new Map,et=0;Object.keys(Mt).forEach(function(lt){var gt=Mt[lt],mt=gt.level,St=nt.get(mt);St||(St=new Set,nt.set(mt,St)),St.add(gt),et=Math.max(et,mt)}),(0,yt.ZP)(!Yt.length,"Tree missing follow keys: ".concat(Yt.slice(0,100).map(function(lt){return"'".concat(lt,"'")}).join(", ")));var dt;return Ce===!0?dt=be(Nt,nt,et,We):dt=jt(Nt,Ce.halfCheckedKeys,nt,et,We),dt}},65065:function(Jn,pi,Dt){"use strict";Dt.d(pi,{Z:function(){return yt}});function yt(te,re){return te[re]}},34061:function(Jn,pi,Dt){"use strict";Dt.d(pi,{F:function(){return mt},H8:function(){return gt},I8:function(){return lt},km:function(){return Yt},oH:function(){return et},w$:function(){return We},zn:function(){return nt}});var yt=Dt(62853),te=Dt(80702),re=Dt(77321),Fe=Dt(74416),be=Dt(11592),jt=Dt(2738),ge=Dt(48736),Ze=Dt(65065),Ce=["children"];function Mt(St,bt){return"".concat(St,"-").concat(bt)}function Re(St){return St&&St.type&&St.type.isTreeNode}function Yt(St,bt){return St!=null?St:bt}function We(St){var bt=St||{},It=bt.title,Ht=bt._title,se=bt.key,Vt=bt.children,Jt=It||"title";return{title:Jt,_title:Ht||[Jt],key:se||"key",children:Vt||"children"}}function Nt(St,bt){var It=new Map;function Ht(se){var Vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(se||[]).forEach(function(Jt){var Ee=Jt[bt.key],we=Jt[bt.children];warning(Ee!=null,"Tree node must have a certain key: [".concat(Vt).concat(Ee,"]"));var De=String(Ee);warning(!It.has(De)||Ee===null||Ee===void 0,"Same 'key' exist in the Tree: ".concat(De)),It.set(De,!0),Ht(we,"".concat(Vt).concat(De," > "))})}Ht(St)}function nt(St){function bt(It){var Ht=(0,be.Z)(It);return Ht.map(function(se){if(!Re(se))return(0,ge.ZP)(!se,"Tree/TreeNode can only accept TreeNode as children."),null;var Vt=se.key,Jt=se.props,Ee=Jt.children,we=(0,Fe.Z)(Jt,Ce),De=(0,re.Z)({key:Vt},we),Le=bt(Ee);return Le.length&&(De.children=Le),De}).filter(function(se){return se})}return bt(St)}function et(St,bt,It){var Ht=We(It),se=Ht._title,Vt=Ht.key,Jt=Ht.children,Ee=new Set(bt===!0?[]:bt),we=[];function De(Le){var sn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Le.map(function(Fn,fn){for(var Ge=Mt(sn?sn.pos:"0",fn),an=Yt(Fn[Vt],Ge),Se,Qt=0;Qt<se.length;Qt+=1){var mn=se[Qt];if(Fn[mn]!==void 0){Se=Fn[mn];break}}var ii=Object.assign((0,jt.Z)(Fn,[].concat((0,te.Z)(se),[Vt,Jt])),{title:Se,key:an,parent:sn,pos:Ge,children:null,data:Fn,isStart:[].concat((0,te.Z)(sn?sn.isStart:[]),[fn===0]),isEnd:[].concat((0,te.Z)(sn?sn.isEnd:[]),[fn===Le.length-1])});return we.push(ii),bt===!0||Ee.has(an)?ii.children=De(Fn[Jt]||[],ii):ii.children=[],ii})}return De(St),we}function dt(St,bt,It){var Ht={};(0,yt.Z)(It)==="object"?Ht=It:Ht={externalGetKey:It},Ht=Ht||{};var se=Ht,Vt=se.childrenPropName,Jt=se.externalGetKey,Ee=se.fieldNames,we=We(Ee),De=we.key,Le=we.children,sn=Vt||Le,Fn;Jt?typeof Jt=="string"?Fn=function(an){return an[Jt]}:typeof Jt=="function"&&(Fn=function(an){return Jt(an)}):Fn=function(an,Se){return Yt(an[De],Se)};function fn(Ge,an,Se,Qt){var mn=Ge?Ge[sn]:St,ii=Ge?Mt(Se.pos,an):"0",jn=Ge?[].concat((0,te.Z)(Qt),[Ge]):[];if(Ge){var ln=Fn(Ge,ii),qn={node:Ge,index:an,pos:ii,key:ln,parentPos:Se.node?Se.pos:null,level:Se.level+1,nodes:jn};bt(qn)}mn&&mn.forEach(function(Dn,fi){fn(Dn,fi,{node:Ge,pos:ii,level:Se?Se.level+1:-1},jn)})}fn(null)}function lt(St){var bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},It=bt.initWrapper,Ht=bt.processEntity,se=bt.onProcessFinished,Vt=bt.externalGetKey,Jt=bt.childrenPropName,Ee=bt.fieldNames,we=arguments.length>2?arguments[2]:void 0,De=Vt||we,Le={},sn={},Fn={posEntities:Le,keyEntities:sn};return It&&(Fn=It(Fn)||Fn),dt(St,function(fn){var Ge=fn.node,an=fn.index,Se=fn.pos,Qt=fn.key,mn=fn.parentPos,ii=fn.level,jn=fn.nodes,ln={node:Ge,nodes:jn,index:an,key:Qt,pos:Se,level:ii},qn=Yt(Qt,Se);Le[Se]=ln,sn[qn]=ln,ln.parent=Le[mn],ln.parent&&(ln.parent.children=ln.parent.children||[],ln.parent.children.push(ln)),Ht&&Ht(ln,Fn)},{externalGetKey:De,childrenPropName:Jt,fieldNames:Ee}),se&&se(Fn),Fn}function gt(St,bt){var It=bt.expandedKeys,Ht=bt.selectedKeys,se=bt.loadedKeys,Vt=bt.loadingKeys,Jt=bt.checkedKeys,Ee=bt.halfCheckedKeys,we=bt.dragOverNodeKey,De=bt.dropPosition,Le=bt.keyEntities,sn=(0,Ze.Z)(Le,St),Fn={eventKey:St,expanded:It.indexOf(St)!==-1,selected:Ht.indexOf(St)!==-1,loaded:se.indexOf(St)!==-1,loading:Vt.indexOf(St)!==-1,checked:Jt.indexOf(St)!==-1,halfChecked:Ee.indexOf(St)!==-1,pos:String(sn?sn.pos:""),dragOver:we===St&&De===0,dragOverGapTop:we===St&&De===-1,dragOverGapBottom:we===St&&De===1};return Fn}function mt(St){var bt=St.data,It=St.expanded,Ht=St.selected,se=St.checked,Vt=St.loaded,Jt=St.loading,Ee=St.halfChecked,we=St.dragOver,De=St.dragOverGapTop,Le=St.dragOverGapBottom,sn=St.pos,Fn=St.active,fn=St.eventKey,Ge=(0,re.Z)((0,re.Z)({},bt),{},{expanded:It,selected:Ht,checked:se,loaded:Vt,loading:Jt,halfChecked:Ee,dragOver:we,dragOverGapTop:De,dragOverGapBottom:Le,pos:sn,active:Fn,key:fn});return"props"in Ge||Object.defineProperty(Ge,"props",{get:function(){return(0,ge.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),St}}),Ge}},8224:function(Jn,pi,Dt){"use strict";Dt.d(pi,{Z:function(){return te}});var yt=Dt(4676);function te(re,Fe,be,jt){var ge=yt.unstable_batchedUpdates?function(Ce){yt.unstable_batchedUpdates(be,Ce)}:be;return re!=null&&re.addEventListener&&re.addEventListener(Fe,ge,jt),{remove:function(){re!=null&&re.removeEventListener&&re.removeEventListener(Fe,ge,jt)}}}},24514:function(Jn,pi,Dt){"use strict";Dt.d(pi,{G:function(){return Fe}});var yt=Dt(47273),te=function(jt){if((0,yt.Z)()&&window.document.documentElement){var ge=Array.isArray(jt)?jt:[jt],Ze=window.document.documentElement;return ge.some(function(Ce){return Ce in Ze.style})}return!1},re=function(jt,ge){if(!te(jt))return!1;var Ze=document.createElement("div"),Ce=Ze.style[jt];return Ze.style[jt]=ge,Ze.style[jt]!==Ce};function Fe(be,jt){return!Array.isArray(be)&&jt!==void 0?re(be,jt):te(be)}},45680:function(Jn,pi,Dt){"use strict";Dt.d(pi,{Z:function(){return Xn}});var yt=Dt(72308),te=Dt(62853),re=Dt(77321),Fe=Dt(49618),be=Dt(52487),jt=Dt(74416),ge=Dt(92310),Ze=Dt.n(ge),Ce=Dt(29301),Mt=Dt(70425),Re=Dt(34280),Yt=Dt(59301),We=Dt(4676),Nt=Yt.forwardRef(function(Rt,At){var wt=Rt.height,Tt=Rt.offsetY,Kt=Rt.offsetX,kt=Rt.children,$t=Rt.prefixCls,un=Rt.onInnerResize,Ie=Rt.innerProps,Ue=Rt.rtl,ne=Rt.extra,Oe={},Ne={display:"flex",flexDirection:"column"};return Tt!==void 0&&(Oe={height:wt,position:"relative",overflow:"hidden"},Ne=(0,re.Z)((0,re.Z)({},Ne),{},(0,Fe.Z)((0,Fe.Z)((0,Fe.Z)((0,Fe.Z)((0,Fe.Z)({transform:"translateY(".concat(Tt,"px)")},Ue?"marginRight":"marginLeft",-Kt),"position","absolute"),"left",0),"right",0),"top",0))),Yt.createElement("div",{style:Oe},Yt.createElement(Ce.Z,{onResize:function(En){var In=En.offsetHeight;In&&un&&un()}},Yt.createElement("div",(0,yt.Z)({style:Ne,className:Ze()((0,Fe.Z)({},"".concat($t,"-holder-inner"),$t)),ref:At},Ie),kt,ne)))});Nt.displayName="Filler";var nt=Nt;function et(Rt){var At=Rt.children,wt=Rt.setRef,Tt=Yt.useCallback(function(Kt){wt(Kt)},[]);return Yt.cloneElement(At,{ref:Tt})}function dt(Rt,At,wt,Tt,Kt,kt,$t,un){var Ie=un.getKey;return Rt.slice(At,wt+1).map(function(Ue,ne){var Oe=At+ne,Ne=$t(Ue,Oe,{style:{width:Tt},offsetX:Kt}),Xe=Ie(Ue);return Yt.createElement(et,{key:Xe,setRef:function(In){return kt(Ue,In)}},Ne)})}function lt(Rt,At,wt,Tt){var Kt=wt-Rt,kt=At-wt,$t=Math.min(Kt,kt)*2;if(Tt<=$t){var un=Math.floor(Tt/2);return Tt%2?wt+un+1:wt-un}return Kt>kt?wt-(Tt-kt):wt+(Tt-Kt)}function gt(Rt,At,wt){var Tt=Rt.length,Kt=At.length,kt,$t;if(Tt===0&&Kt===0)return null;Tt<Kt?(kt=Rt,$t=At):(kt=At,$t=Rt);var un={__EMPTY_ITEM__:!0};function Ie(En){return En!==void 0?wt(En):un}for(var Ue=null,ne=Math.abs(Tt-Kt)!==1,Oe=0;Oe<$t.length;Oe+=1){var Ne=Ie(kt[Oe]),Xe=Ie($t[Oe]);if(Ne!==Xe){Ue=Oe,ne=ne||Ne!==Ie($t[Oe+1]);break}}return Ue===null?null:{index:Ue,multiple:ne}}function mt(Rt,At,wt){var Tt=Yt.useState(Rt),Kt=(0,be.Z)(Tt,2),kt=Kt[0],$t=Kt[1],un=Yt.useState(null),Ie=(0,be.Z)(un,2),Ue=Ie[0],ne=Ie[1];return Yt.useEffect(function(){var Oe=gt(kt||[],Rt||[],At);(Oe==null?void 0:Oe.index)!==void 0&&(wt==null||wt(Oe.index),ne(Rt[Oe.index])),$t(Rt)},[Rt]),[Ue]}var St=Dt(16089),bt=(typeof navigator=="undefined"?"undefined":(0,te.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),It=bt,Ht=function(Rt,At,wt,Tt){var Kt=(0,Yt.useRef)(!1),kt=(0,Yt.useRef)(null);function $t(){clearTimeout(kt.current),Kt.current=!0,kt.current=setTimeout(function(){Kt.current=!1},50)}var un=(0,Yt.useRef)({top:Rt,bottom:At,left:wt,right:Tt});return un.current.top=Rt,un.current.bottom=At,un.current.left=wt,un.current.right=Tt,function(Ie,Ue){var ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Oe=Ie?Ue<0&&un.current.left||Ue>0&&un.current.right:Ue<0&&un.current.top||Ue>0&&un.current.bottom;return ne&&Oe?(clearTimeout(kt.current),Kt.current=!1):(!Oe||Kt.current)&&$t(),!Kt.current&&Oe}};function se(Rt,At,wt,Tt,Kt,kt,$t){var un=(0,Yt.useRef)(0),Ie=(0,Yt.useRef)(null),Ue=(0,Yt.useRef)(null),ne=(0,Yt.useRef)(!1),Oe=Ht(At,wt,Tt,Kt);function Ne(ze,qe){if(St.Z.cancel(Ie.current),!Oe(!1,qe)){var pn=ze;if(!pn._virtualHandled)pn._virtualHandled=!0;else return;un.current+=qe,Ue.current=qe,It||pn.preventDefault(),Ie.current=(0,St.Z)(function(){var bn=ne.current?10:1;$t(un.current*bn,!1),un.current=0})}}function Xe(ze,qe){$t(qe,!0),It||ze.preventDefault()}var En=(0,Yt.useRef)(null),In=(0,Yt.useRef)(null);function An(ze){if(Rt){St.Z.cancel(In.current),In.current=(0,St.Z)(function(){En.current=null},2);var qe=ze.deltaX,pn=ze.deltaY,bn=ze.shiftKey,Yn=qe,ti=pn;(En.current==="sx"||!En.current&&bn&&pn&&!qe)&&(Yn=pn,ti=0,En.current="sx");var yi=Math.abs(Yn),vn=Math.abs(ti);En.current===null&&(En.current=kt&&yi>vn?"x":"y"),En.current==="y"?Ne(ze,ti):Xe(ze,Yn)}}function en(ze){Rt&&(ne.current=ze.detail===Ue.current)}return[An,en]}function Vt(Rt,At,wt,Tt){var Kt=Yt.useMemo(function(){return[new Map,[]]},[Rt,wt.id,Tt]),kt=(0,be.Z)(Kt,2),$t=kt[0],un=kt[1],Ie=function(ne){var Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ne,Ne=$t.get(ne),Xe=$t.get(Oe);if(Ne===void 0||Xe===void 0)for(var En=Rt.length,In=un.length;In<En;In+=1){var An,en=Rt[In],ze=At(en);$t.set(ze,In);var qe=(An=wt.get(ze))!==null&&An!==void 0?An:Tt;if(un[In]=(un[In-1]||0)+qe,ze===ne&&(Ne=In),ze===Oe&&(Xe=In),Ne!==void 0&&Xe!==void 0)break}return{top:un[Ne-1]||0,bottom:un[Xe]}};return Ie}var Jt=Dt(96949),Ee=Dt(55090),we=function(){function Rt(){(0,Jt.Z)(this,Rt),(0,Fe.Z)(this,"maps",void 0),(0,Fe.Z)(this,"id",0),(0,Fe.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,Ee.Z)(Rt,[{key:"set",value:function(wt,Tt){this.maps[wt]=Tt,this.id+=1,this.diffKeys.add(wt)}},{key:"get",value:function(wt){return this.maps[wt]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),Rt}(),De=we;function Le(Rt){var At=parseFloat(Rt);return isNaN(At)?0:At}function sn(Rt,At,wt){var Tt=Yt.useState(0),Kt=(0,be.Z)(Tt,2),kt=Kt[0],$t=Kt[1],un=(0,Yt.useRef)(new Map),Ie=(0,Yt.useRef)(new De),Ue=(0,Yt.useRef)(0);function ne(){Ue.current+=1}function Oe(){var Xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;ne();var En=function(){var en=!1;un.current.forEach(function(ze,qe){if(ze&&ze.offsetParent){var pn=ze.offsetHeight,bn=getComputedStyle(ze),Yn=bn.marginTop,ti=bn.marginBottom,yi=Le(Yn),vn=Le(ti),Pi=pn+yi+vn;Ie.current.get(qe)!==Pi&&(Ie.current.set(qe,Pi),en=!0)}}),en&&$t(function(ze){return ze+1})};if(Xe)En();else{Ue.current+=1;var In=Ue.current;Promise.resolve().then(function(){In===Ue.current&&En()})}}function Ne(Xe,En){var In=Rt(Xe),An=un.current.get(In);En?(un.current.set(In,En),Oe()):un.current.delete(In),!An!=!En&&(En?At==null||At(Xe):wt==null||wt(Xe))}return(0,Yt.useEffect)(function(){return ne},[]),[Ne,Oe,Ie.current,kt]}var Fn=14/15;function fn(Rt,At,wt){var Tt=(0,Yt.useRef)(!1),Kt=(0,Yt.useRef)(0),kt=(0,Yt.useRef)(0),$t=(0,Yt.useRef)(null),un=(0,Yt.useRef)(null),Ie,Ue=function(Xe){if(Tt.current){var En=Math.ceil(Xe.touches[0].pageX),In=Math.ceil(Xe.touches[0].pageY),An=Kt.current-En,en=kt.current-In,ze=Math.abs(An)>Math.abs(en);ze?Kt.current=En:kt.current=In;var qe=wt(ze,ze?An:en,!1,Xe);qe&&Xe.preventDefault(),clearInterval(un.current),qe&&(un.current=setInterval(function(){ze?An*=Fn:en*=Fn;var pn=Math.floor(ze?An:en);(!wt(ze,pn,!0)||Math.abs(pn)<=.1)&&clearInterval(un.current)},16))}},ne=function(){Tt.current=!1,Ie()},Oe=function(Xe){Ie(),Xe.touches.length===1&&!Tt.current&&(Tt.current=!0,Kt.current=Math.ceil(Xe.touches[0].pageX),kt.current=Math.ceil(Xe.touches[0].pageY),$t.current=Xe.target,$t.current.addEventListener("touchmove",Ue,{passive:!1}),$t.current.addEventListener("touchend",ne,{passive:!0}))};Ie=function(){$t.current&&($t.current.removeEventListener("touchmove",Ue),$t.current.removeEventListener("touchend",ne))},(0,Re.Z)(function(){return Rt&&At.current.addEventListener("touchstart",Oe,{passive:!0}),function(){var Ne;(Ne=At.current)===null||Ne===void 0||Ne.removeEventListener("touchstart",Oe),Ie(),clearInterval(un.current)}},[Rt])}function Ge(Rt){return Math.floor(Math.pow(Rt,.5))}function an(Rt,At){var wt="touches"in Rt?Rt.touches[0]:Rt;return wt[At?"pageX":"pageY"]-window[At?"scrollX":"scrollY"]}function Se(Rt,At,wt){Yt.useEffect(function(){var Tt=At.current;if(Rt&&Tt){var Kt=!1,kt,$t,un=function(){St.Z.cancel(kt)},Ie=function Ne(){un(),kt=(0,St.Z)(function(){wt($t),Ne()})},Ue=function(Xe){if(!(Xe.target.draggable||Xe.button!==0)){var En=Xe;En._virtualHandled||(En._virtualHandled=!0,Kt=!0)}},ne=function(){Kt=!1,un()},Oe=function(Xe){if(Kt){var En=an(Xe,!1),In=Tt.getBoundingClientRect(),An=In.top,en=In.bottom;if(En<=An){var ze=An-En;$t=-Ge(ze),Ie()}else if(En>=en){var qe=En-en;$t=Ge(qe),Ie()}else un()}};return Tt.addEventListener("mousedown",Ue),Tt.ownerDocument.addEventListener("mouseup",ne),Tt.ownerDocument.addEventListener("mousemove",Oe),function(){Tt.removeEventListener("mousedown",Ue),Tt.ownerDocument.removeEventListener("mouseup",ne),Tt.ownerDocument.removeEventListener("mousemove",Oe),un()}}},[Rt])}var Qt=10;function mn(Rt,At,wt,Tt,Kt,kt,$t,un){var Ie=Yt.useRef(),Ue=Yt.useState(null),ne=(0,be.Z)(Ue,2),Oe=ne[0],Ne=ne[1];return(0,Re.Z)(function(){if(Oe&&Oe.times<Qt){if(!Rt.current){Ne(function(xr){return(0,re.Z)({},xr)});return}kt();var Xe=Oe.targetAlign,En=Oe.originAlign,In=Oe.index,An=Oe.offset,en=Rt.current.clientHeight,ze=!1,qe=Xe,pn=null;if(en){for(var bn=Xe||En,Yn=0,ti=0,yi=0,vn=Math.min(At.length-1,In),Pi=0;Pi<=vn;Pi+=1){var Ki=Kt(At[Pi]);ti=Yn;var pr=wt.get(Ki);yi=ti+(pr===void 0?Tt:pr),Yn=yi}for(var or=bn==="top"?An:en-An,ir=vn;ir>=0;ir-=1){var vr=Kt(At[ir]),ur=wt.get(vr);if(ur===void 0){ze=!0;break}if(or-=ur,or<=0)break}switch(bn){case"top":pn=ti-An;break;case"bottom":pn=yi-en+An;break;default:{var hr=Rt.current.scrollTop,Ji=hr+en;ti<hr?qe="top":yi>Ji&&(qe="bottom")}}pn!==null&&$t(pn),pn!==Oe.lastTop&&(ze=!0)}ze&&Ne((0,re.Z)((0,re.Z)({},Oe),{},{times:Oe.times+1,targetAlign:qe,lastTop:pn}))}},[Oe,Rt.current]),function(Xe){if(Xe==null){un();return}if(St.Z.cancel(Ie.current),typeof Xe=="number")$t(Xe);else if(Xe&&(0,te.Z)(Xe)==="object"){var En,In=Xe.align;"index"in Xe?En=Xe.index:En=At.findIndex(function(ze){return Kt(ze)===Xe.key});var An=Xe.offset,en=An===void 0?0:An;Ne({times:0,index:En,offset:en,originAlign:In})}}}var ii=Yt.forwardRef(function(Rt,At){var wt=Rt.prefixCls,Tt=Rt.rtl,Kt=Rt.scrollOffset,kt=Rt.scrollRange,$t=Rt.onStartMove,un=Rt.onStopMove,Ie=Rt.onScroll,Ue=Rt.horizontal,ne=Rt.spinSize,Oe=Rt.containerSize,Ne=Rt.style,Xe=Rt.thumbStyle,En=Rt.showScrollBar,In=Yt.useState(!1),An=(0,be.Z)(In,2),en=An[0],ze=An[1],qe=Yt.useState(null),pn=(0,be.Z)(qe,2),bn=pn[0],Yn=pn[1],ti=Yt.useState(null),yi=(0,be.Z)(ti,2),vn=yi[0],Pi=yi[1],Ki=!Tt,pr=Yt.useRef(),or=Yt.useRef(),ir=Yt.useState(En),vr=(0,be.Z)(ir,2),ur=vr[0],hr=vr[1],Ji=Yt.useRef(),xr=function(){En===!0||En===!1||(clearTimeout(Ji.current),hr(!0),Ji.current=setTimeout(function(){hr(!1)},3e3))},Ct=kt-Oe||0,yn=Oe-ne||0,Zn=Yt.useMemo(function(){if(Kt===0||Ct===0)return 0;var xe=Kt/Ct;return xe*yn},[Kt,Ct,yn]),dr=function(Kn){Kn.stopPropagation(),Kn.preventDefault()},sr=Yt.useRef({top:Zn,dragging:en,pageY:bn,startTop:vn});sr.current={top:Zn,dragging:en,pageY:bn,startTop:vn};var Oi=function(Kn){ze(!0),Yn(an(Kn,Ue)),Pi(sr.current.top),$t(),Kn.stopPropagation(),Kn.preventDefault()};Yt.useEffect(function(){var xe=function(Sn){Sn.preventDefault()},Kn=pr.current,$n=or.current;return Kn.addEventListener("touchstart",xe,{passive:!1}),$n.addEventListener("touchstart",Oi,{passive:!1}),function(){Kn.removeEventListener("touchstart",xe),$n.removeEventListener("touchstart",Oi)}},[]);var Nn=Yt.useRef();Nn.current=Ct;var Cn=Yt.useRef();Cn.current=yn,Yt.useEffect(function(){if(en){var xe,Kn=function(Sn){var oi=sr.current,fe=oi.dragging,Te=oi.pageY,hi=oi.startTop;St.Z.cancel(xe);var ee=pr.current.getBoundingClientRect(),nn=Oe/(Ue?ee.width:ee.height);if(fe){var Vn=(an(Sn,Ue)-Te)*nn,_n=hi;!Ki&&Ue?_n-=Vn:_n+=Vn;var Ke=Nn.current,Gn=Cn.current,ai=Gn?_n/Gn:0,ni=Math.ceil(ai*Ke);ni=Math.max(ni,0),ni=Math.min(ni,Ke),xe=(0,St.Z)(function(){Ie(ni,Ue)})}},$n=function(){ze(!1),un()};return window.addEventListener("mousemove",Kn,{passive:!0}),window.addEventListener("touchmove",Kn,{passive:!0}),window.addEventListener("mouseup",$n,{passive:!0}),window.addEventListener("touchend",$n,{passive:!0}),function(){window.removeEventListener("mousemove",Kn),window.removeEventListener("touchmove",Kn),window.removeEventListener("mouseup",$n),window.removeEventListener("touchend",$n),St.Z.cancel(xe)}}},[en]),Yt.useEffect(function(){return xr(),function(){clearTimeout(Ji.current)}},[Kt]),Yt.useImperativeHandle(At,function(){return{delayHidden:xr}});var kn="".concat(wt,"-scrollbar"),ve={position:"absolute",visibility:ur?null:"hidden"},ye={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return Ue?(ve.height=8,ve.left=0,ve.right=0,ve.bottom=0,ye.height="100%",ye.width=ne,Ki?ye.left=Zn:ye.right=Zn):(ve.width=8,ve.top=0,ve.bottom=0,Ki?ve.right=0:ve.left=0,ye.width="100%",ye.height=ne,ye.top=Zn),Yt.createElement("div",{ref:pr,className:Ze()(kn,(0,Fe.Z)((0,Fe.Z)((0,Fe.Z)({},"".concat(kn,"-horizontal"),Ue),"".concat(kn,"-vertical"),!Ue),"".concat(kn,"-visible"),ur)),style:(0,re.Z)((0,re.Z)({},ve),Ne),onMouseDown:dr,onMouseMove:xr},Yt.createElement("div",{ref:or,className:Ze()("".concat(kn,"-thumb"),(0,Fe.Z)({},"".concat(kn,"-thumb-moving"),en)),style:(0,re.Z)((0,re.Z)({},ye),Xe),onMouseDown:Oi}))}),jn=ii,ln=20;function qn(){var Rt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,At=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,wt=Rt/At*Rt;return isNaN(wt)&&(wt=0),wt=Math.max(wt,ln),Math.floor(wt)}var Dn=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],fi=[],Ve={overflowY:"auto",overflowAnchor:"none"};function On(Rt,At){var wt=Rt.prefixCls,Tt=wt===void 0?"rc-virtual-list":wt,Kt=Rt.className,kt=Rt.height,$t=Rt.itemHeight,un=Rt.fullHeight,Ie=un===void 0?!0:un,Ue=Rt.style,ne=Rt.data,Oe=Rt.children,Ne=Rt.itemKey,Xe=Rt.virtual,En=Rt.direction,In=Rt.scrollWidth,An=Rt.component,en=An===void 0?"div":An,ze=Rt.onScroll,qe=Rt.onVirtualScroll,pn=Rt.onVisibleChange,bn=Rt.innerProps,Yn=Rt.extraRender,ti=Rt.styles,yi=Rt.showScrollBar,vn=yi===void 0?"optional":yi,Pi=(0,jt.Z)(Rt,Dn),Ki=Yt.useCallback(function(ie){return typeof Ne=="function"?Ne(ie):ie==null?void 0:ie[Ne]},[Ne]),pr=sn(Ki,null,null),or=(0,be.Z)(pr,4),ir=or[0],vr=or[1],ur=or[2],hr=or[3],Ji=!!(Xe!==!1&&kt&&$t),xr=Yt.useMemo(function(){return Object.values(ur.maps).reduce(function(ie,ke){return ie+ke},0)},[ur.id,ur.maps]),Ct=Ji&&ne&&(Math.max($t*ne.length,xr)>kt||!!In),yn=En==="rtl",Zn=Ze()(Tt,(0,Fe.Z)({},"".concat(Tt,"-rtl"),yn),Kt),dr=ne||fi,sr=(0,Yt.useRef)(),Oi=(0,Yt.useRef)(),Nn=(0,Yt.useRef)(),Cn=(0,Yt.useState)(0),kn=(0,be.Z)(Cn,2),ve=kn[0],ye=kn[1],xe=(0,Yt.useState)(0),Kn=(0,be.Z)(xe,2),$n=Kn[0],ui=Kn[1],Sn=(0,Yt.useState)(!1),oi=(0,be.Z)(Sn,2),fe=oi[0],Te=oi[1],hi=function(){Te(!0)},ee=function(){Te(!1)},nn={getKey:Ki};function Vn(ie){ye(function(ke){var He;typeof ie=="function"?He=ie(ke):He=ie;var _e=cr(He);return sr.current.scrollTop=_e,_e})}var _n=(0,Yt.useRef)({start:0,end:dr.length}),Ke=(0,Yt.useRef)(),Gn=mt(dr,Ki),ai=(0,be.Z)(Gn,1),ni=ai[0];Ke.current=ni;var ki=Yt.useMemo(function(){if(!Ji)return{scrollHeight:void 0,start:0,end:dr.length-1,offset:void 0};if(!Ct){var ie;return{scrollHeight:((ie=Oi.current)===null||ie===void 0?void 0:ie.offsetHeight)||0,start:0,end:dr.length-1,offset:void 0}}for(var ke=0,He,_e,hn,mi=dr.length,Et=0;Et<mi;Et+=1){var qt=dr[Et],zt=Ki(qt),ae=ur.get(zt),de=ke+(ae===void 0?$t:ae);de>=ve&&He===void 0&&(He=Et,_e=ke),de>ve+kt&&hn===void 0&&(hn=Et),ke=de}return He===void 0&&(He=0,_e=0,hn=Math.ceil(kt/$t)),hn===void 0&&(hn=dr.length-1),hn=Math.min(hn+1,dr.length-1),{scrollHeight:ke,start:He,end:hn,offset:_e}},[Ct,Ji,ve,dr,hr,kt]),xi=ki.scrollHeight,gi=ki.start,Li=ki.end,Zi=ki.offset;_n.current.start=gi,_n.current.end=Li,Yt.useLayoutEffect(function(){var ie=ur.getRecord();if(ie.size===1){var ke=Array.from(ie)[0],He=dr[gi];if(He){var _e=Ki(He);if(_e===ke){var hn=ur.get(ke),mi=hn-$t;Vn(function(Et){return Et+mi})}}}ur.resetRecord()},[xi]);var tr=Yt.useState({width:0,height:kt}),zi=(0,be.Z)(tr,2),wn=zi[0],Rr=zi[1],Lr=function(ke){Rr({width:ke.offsetWidth,height:ke.offsetHeight})},Hr=(0,Yt.useRef)(),dn=(0,Yt.useRef)(),Mi=Yt.useMemo(function(){return qn(wn.width,In)},[wn.width,In]),Vi=Yt.useMemo(function(){return qn(wn.height,xi)},[wn.height,xi]),Qi=xi-kt,qi=(0,Yt.useRef)(Qi);qi.current=Qi;function cr(ie){var ke=ie;return Number.isNaN(qi.current)||(ke=Math.min(ke,qi.current)),ke=Math.max(ke,0),ke}var Ar=ve<=0,ji=ve>=Qi,er=$n<=0,Hi=$n>=In,cn=Ht(Ar,ji,er,Hi),lr=function(){return{x:yn?-$n:$n,y:ve}},xn=(0,Yt.useRef)(lr()),wi=(0,Mt.zX)(function(ie){if(qe){var ke=(0,re.Z)((0,re.Z)({},lr()),ie);(xn.current.x!==ke.x||xn.current.y!==ke.y)&&(qe(ke),xn.current=ke)}});function Xi(ie,ke){var He=ie;ke?((0,We.flushSync)(function(){ui(He)}),wi()):Vn(He)}function Sr(ie){var ke=ie.currentTarget.scrollTop;ke!==ve&&Vn(ke),ze==null||ze(ie),wi()}var ao=function(ke){var He=ke,_e=In?In-wn.width:0;return He=Math.max(He,0),He=Math.min(He,_e),He},co=(0,Mt.zX)(function(ie,ke){ke?((0,We.flushSync)(function(){ui(function(He){var _e=He+(yn?-ie:ie);return ao(_e)})}),wi()):Vn(function(He){var _e=He+ie;return _e})}),qr=se(Ji,Ar,ji,er,Hi,!!In,co),io=(0,be.Z)(qr,2),$e=io[0],Rn=io[1];fn(Ji,sr,function(ie,ke,He,_e){var hn=_e;return cn(ie,ke,He)?!1:!hn||!hn._virtualHandled?(hn&&(hn._virtualHandled=!0),$e({preventDefault:function(){},deltaX:ie?ke:0,deltaY:ie?0:ke}),!0):!1}),Se(Ct,sr,function(ie){Vn(function(ke){return ke+ie})}),(0,Re.Z)(function(){function ie(He){var _e=Ar&&He.detail<0,hn=ji&&He.detail>0;Ji&&!_e&&!hn&&He.preventDefault()}var ke=sr.current;return ke.addEventListener("wheel",$e,{passive:!1}),ke.addEventListener("DOMMouseScroll",Rn,{passive:!0}),ke.addEventListener("MozMousePixelScroll",ie,{passive:!1}),function(){ke.removeEventListener("wheel",$e),ke.removeEventListener("DOMMouseScroll",Rn),ke.removeEventListener("MozMousePixelScroll",ie)}},[Ji,Ar,ji]),(0,Re.Z)(function(){if(In){var ie=ao($n);ui(ie),wi({x:ie})}},[wn.width,In]);var on=function(){var ke,He;(ke=Hr.current)===null||ke===void 0||ke.delayHidden(),(He=dn.current)===null||He===void 0||He.delayHidden()},Bt=mn(sr,dr,ur,$t,Ki,function(){return vr(!0)},Vn,on);Yt.useImperativeHandle(At,function(){return{nativeElement:Nn.current,getScrollInfo:lr,scrollTo:function(ke){function He(_e){return _e&&(0,te.Z)(_e)==="object"&&("left"in _e||"top"in _e)}He(ke)?(ke.left!==void 0&&ui(ao(ke.left)),Bt(ke.top)):Bt(ke)}}}),(0,Re.Z)(function(){if(pn){var ie=dr.slice(gi,Li+1);pn(ie,dr)}},[gi,Li,dr]);var Zt=Vt(dr,Ki,ur,$t),Gt=Yn==null?void 0:Yn({start:gi,end:Li,virtual:Ct,offsetX:$n,offsetY:Zi,rtl:yn,getSize:Zt}),he=dt(dr,gi,Li,In,$n,ir,Oe,nn),Be=null;kt&&(Be=(0,re.Z)((0,Fe.Z)({},Ie?"height":"maxHeight",kt),Ve),Ji&&(Be.overflowY="hidden",In&&(Be.overflowX="hidden"),fe&&(Be.pointerEvents="none")));var rn={};return yn&&(rn.dir="rtl"),Yt.createElement("div",(0,yt.Z)({ref:Nn,style:(0,re.Z)((0,re.Z)({},Ue),{},{position:"relative"}),className:Zn},rn,Pi),Yt.createElement(Ce.Z,{onResize:Lr},Yt.createElement(en,{className:"".concat(Tt,"-holder"),style:Be,ref:sr,onScroll:Sr,onMouseEnter:on},Yt.createElement(nt,{prefixCls:Tt,height:xi,offsetX:$n,offsetY:Zi,scrollWidth:In,onInnerResize:vr,ref:Oi,innerProps:bn,rtl:yn,extra:Gt},he))),Ct&&xi>kt&&Yt.createElement(jn,{ref:Hr,prefixCls:Tt,scrollOffset:ve,scrollRange:xi,rtl:yn,onScroll:Xi,onStartMove:hi,onStopMove:ee,spinSize:Vi,containerSize:wn.height,style:ti==null?void 0:ti.verticalScrollBar,thumbStyle:ti==null?void 0:ti.verticalScrollBarThumb,showScrollBar:vn}),Ct&&In>wn.width&&Yt.createElement(jn,{ref:dn,prefixCls:Tt,scrollOffset:$n,scrollRange:In,rtl:yn,onScroll:Xi,onStartMove:hi,onStopMove:ee,spinSize:Mi,containerSize:wn.width,horizontal:!0,style:ti==null?void 0:ti.horizontalScrollBar,thumbStyle:ti==null?void 0:ti.horizontalScrollBarThumb,showScrollBar:vn}))}var Pe=Yt.forwardRef(On);Pe.displayName="List";var Ai=Pe,Xn=Ai},25510:function(Jn){"use strict";Jn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAiwAAAIsCAYAAADRd/LpAAAgAElEQVR4Xuyda5BtVXXvV3efc+CAYBQRjaJBeWjiVVKVB0mMUV6GKv0cvVVG/XTrViUlSd0bqUoQg4KapKJW8j3mWinNx1SRSgkciKARYiqi1ycvFZSggHgFDofz6L71m3v/9xk9eq695ty91t67u8eimu6z91zzMcaYY/znGGPOudLEExQICgQFggJBgaBAUGDJKbBC/26+98jGkvczuhcUCAoEBYICQYGgwB6lwJUXnroSgGWPMj+GHRQICgQFggJBgZ1CgS2A5YoLTtkpfY9+BgWCAkGBoEBQICiwyylwy33PpREGYNnljI7hBQWCAkGBoEBQYCdTIADLTuZe9D0oEBQICgQFggJ7hAIBWPYIo2OYQYGgQFAgKBAU2MkUCMCyk7kXfQ8KBAWCAkGBoMAeoUAAlj3C6BhmUCAoEBQICgQFdjIFArDsZO5F34MCQYGgQFAgKLBHKBCAZ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2u4vOtyuuuNyO+eY3bez4Cbbi8svbqy/PtJf+9oLNnTXbRsydZ8d+81u21VZb2wpvfasdcMD+dtIpPwoxLJMmTwrbp595/Anb7O1vt2223Mq+9pWv2siJE+33l15iJ//0p/brs39jy660oj14/73hbKQVV1jBPrznXnbAgQeGocAVRF+gr790rnUBLAWwtCsOC2DJp1wBLAWw5HNNB54ogKUZsMjCcuXlV9hvzzrHvnPccTZ50mRbcurUEAD68ssvhziM0WPG2vhJE23Ft65kxxx/rM18eaZ9fr/97E+3/skmjB9v3zjqKFt6yaXs+quutUsvuMiuue5aW2T8Inbu+efZVltvHbZG33LrLfaRj3zEXnvtVVtnnbXt9F/+0iZMnBjcUQR7H3HEkbbV5pvZT37ykwBifnDiD0KW1n9+3wfsC1/6oq215po2ZpGxfUGsNrtvU01I+DbK5r4+x8aMGGUv/O0Fm3H3Pfbv/7a3PXD/X23XXXe19ddfzzbb5G12wcUX2+k//6W99tosW3+99e1XZ54Z3DCf+PQn7eprrrannn/aPvjB3e0D73+/PfPUU3brLX+y478JPSbaN75xtG280UZhq/deH/mwzXx1pu20y062yz/ubBPfsqjtt+8X7MmHH7X11p5m//Otb9vqq69tN15/rZ140g/sxz/7ic0dO9Le99732YYbTLcVll/epq21tm20ySbzdzD17S9iy7cy7gZXyPw5UABLASztisMCWPIpVwBLASz5XNOBJwpg6QMs7CB59NFHbcsttwxU1Xb4kOhtvmK84vLf2zlnnWXHH3ucTZo4ySZNmmSjx4wOwbFYENiGO2nRybbKaqvaMccdazded4Mdeeih9tijj4Wg2lN/9rOwK2jG7XfY1b//vX3xC1+28YtOsF+feaZtseWWNmvOHLvplpsDYGG30Lrrrms//elPQ06Na66+OgCWww873LbeZhs76Yc/tD/84UY78cQT7cKLLrL37/FB+++v7G9rrLGmjSADLwnm5r7WlzyMlLbs+QnpS14P7bn5pltt749+xJZdehk78sgjbOONN7IllphiL738ou237352+SWX29hRY+17J37fVnjrCvbxT37C/vDHP9riUxcPcSwrLLO8vfDC32zG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,Dt){"use strict";Jn.exports=Dt.p+"static/AssistantCode3.a8740efb.jpeg"},93314:function(Jn){"use strict";Jn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMAHv6xP4/6VXw/+OxNx/bM/pIohdUE9VW/VxwjOHiJYO5A6xolpGSpYW3jIW4w/A8wM+h+UHSY2pvHgzV9NXymeor0wPc7Cf7XzWJ/4Nsm+Ly2LzZx+OwZ3yuVbzhNsPEMwcI3rM8wMikHiURi5gNbbQoKrc84zpjkj2eYzQC6f96DomUd305ctrp8tp5gSk/f1utzlFhUOHYthy9f8D1gdpwn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Jj4ewC0QIGOQgEMvh6i+IKw609hIpxv8+mAWp0O0+ZftanLo0hOKRyUYrBl4aG5mvKOWo6ojtRY+72x+z3+Lz8egOhrofOxhXpUd8+h+tc9oS7g9EAF0EYvwJLNJc6n/qQOW3bb0SVS3XhTyYK5LjUL6vlUXJNSaLixlOrSnHZ55MeSaU5fE1pjrEilPNOiqkMtSiSmc/1oNxbXDPJSFxp6P23AZgRx17vu/HCtAD5mo/5t3Rpp2p6aFHji4VBgdaIwd0SsFN2YlE/tZAEfIAuB848lRxbQUq9Plo0ts3hxp7+HY3ti33ANi19fbUvsor0GFoRZHOvk1Y6FIC7q5dSPzcw4Gv8iZ4mnNtBQp0l9BlcHzFAAeu0h8B48V+JdQjQri2D57a/VyBBkMNanSOw1WNCt0bSUh82FZXHgD3cwM81VxbAT10yNWlQm+6vceupKuTQTJ7J7ZYGZE9AHZtHzy1XViBSn0B1Hpnr5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},2826:function(Jn,pi,Dt){"use strict";Dt.d(pi,{Z:function(){return te}});var yt=Dt(13873);function te(re,Fe){var be=typeof Symbol!="undefined"&&re[Symbol.iterator]||re["@@iterator"];if(!be){if(Array.isArray(re)||(be=(0,yt.Z)(re))||Fe&&re&&typeof re.length=="number"){be&&(re=be);var jt=0,ge=function(){};return{s:ge,n:function(){return jt>=re.length?{done:!0}:{done:!1,value:re[jt++]}},e:function(Yt){throw Yt},f:ge}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Ze,Ce=!0,Mt=!1;return{s:function(){be=be.call(re)},n:function(){var Yt=be.next();return Ce=Yt.done,Yt},e:function(Yt){Mt=!0,Ze=Yt},f:function(){try{Ce||be.return==null||be.return()}finally{if(Mt)throw Ze}}}}},16722:function(Jn,pi,Dt){"use strict";Dt.d(pi,{Z:function(){return Ze}});const yt=Ce=>typeof Ce=="object"&&Ce!=null&&Ce.nodeType===1,te=(Ce,Mt)=>(!Mt||Ce!=="hidden")&&Ce!=="visible"&&Ce!=="clip",re=(Ce,Mt)=>{if(Ce.clientHeight<Ce.scrollHeight||Ce.clientWidth<Ce.scrollWidth){const Re=getComputedStyle(Ce,null);return te(Re.overflowY,Mt)||te(Re.overflowX,Mt)||(Yt=>{const We=(Nt=>{if(!Nt.ownerDocument||!Nt.ownerDocument.defaultView)return null;try{return Nt.ownerDocument.defaultView.frameElement}catch(nt){return null}})(Yt);return!!We&&(We.clientHeight<Yt.scrollHeight||We.clientWidth<Yt.scrollWidth)})(Ce)}return!1},Fe=(Ce,Mt,Re,Yt,We,Nt,nt,et)=>Nt<Ce&&nt>Mt||Nt>Ce&&nt<Mt?0:Nt<=Ce&&et<=Re||nt>=Mt&&et>=Re?Nt-Ce-Yt:nt>Mt&&et<Re||Nt<Ce&&et>Re?nt-Mt+We:0,be=Ce=>{const Mt=Ce.parentElement;return Mt==null?Ce.getRootNode().host||null:Mt},jt=(Ce,Mt)=>{var Re,Yt,We,Nt;if(typeof document=="undefined")return[];const{scrollMode:nt,block:et,inline:dt,boundary:lt,skipOverflowHiddenElements:gt}=Mt,mt=typeof lt=="function"?lt:jn=>jn!==lt;if(!yt(Ce))throw new TypeError("Invalid target");const St=document.scrollingElement||document.documentElement,bt=[];let It=Ce;for(;yt(It)&&mt(It);){if(It=be(It),It===St){bt.push(It);break}It!=null&&It===document.body&&re(It)&&!re(document.documentElement)||It!=null&&re(It,gt)&&bt.push(It)}const Ht=(Yt=(Re=window.visualViewport)==null?void 0:Re.width)!=null?Yt:innerWidth,se=(Nt=(We=window.visualViewport)==null?void 0:We.height)!=null?Nt:innerHeight,{scrollX:Vt,scrollY:Jt}=window,{height:Ee,width:we,top:De,right:Le,bottom:sn,left:Fn}=Ce.getBoundingClientRect(),{top:fn,right:Ge,bottom:an,left:Se}=(jn=>{const ln=window.getComputedStyle(jn);return{top:parseFloat(ln.scrollMarginTop)||0,right:parseFloat(ln.scrollMarginRight)||0,bottom:parseFloat(ln.scrollMarginBottom)||0,left:parseFloat(ln.scrollMarginLeft)||0}})(Ce);let Qt=et==="start"||et==="nearest"?De-fn:et==="end"?sn+an:De+Ee/2-fn+an,mn=dt==="center"?Fn+we/2-Se+Ge:dt==="end"?Le+Ge:Fn-Se;const ii=[];for(let jn=0;jn<bt.length;jn++){const ln=bt[jn],{height:qn,width:Dn,top:fi,right:Ve,bottom:On,left:Pe}=ln.getBoundingClientRect();if(nt==="if-needed"&&De>=0&&Fn>=0&&sn<=se&&Le<=Ht&&(ln===St&&!re(ln)||De>=fi&&sn<=On&&Fn>=Pe&&Le<=Ve))return ii;const Ai=getComputedStyle(ln),Xn=parseInt(Ai.borderLeftWidth,10),Rt=parseInt(Ai.borderTopWidth,10),At=parseInt(Ai.borderRightWidth,10),wt=parseInt(Ai.borderBottomWidth,10);let Tt=0,Kt=0;const kt="offsetWidth"in ln?ln.offsetWidth-ln.clientWidth-Xn-At:0,$t="offsetHeight"in ln?ln.offsetHeight-ln.clientHeight-Rt-wt:0,un="offsetWidth"in ln?ln.offsetWidth===0?0:Dn/ln.offsetWidth:0,Ie="offsetHeight"in ln?ln.offsetHeight===0?0:qn/ln.offsetHeight:0;if(St===ln)Tt=et==="start"?Qt:et==="end"?Qt-se:et==="nearest"?Fe(Jt,Jt+se,se,Rt,wt,Jt+Qt,Jt+Qt+Ee,Ee):Qt-se/2,Kt=dt==="start"?mn:dt==="center"?mn-Ht/2:dt==="end"?mn-Ht:Fe(Vt,Vt+Ht,Ht,Xn,At,Vt+mn,Vt+mn+we,we),Tt=Math.max(0,Tt+Jt),Kt=Math.max(0,Kt+Vt);else{Tt=et==="start"?Qt-fi-Rt:et==="end"?Qt-On+wt+$t:et==="nearest"?Fe(fi,On,qn,Rt,wt+$t,Qt,Qt+Ee,Ee):Qt-(fi+qn/2)+$t/2,Kt=dt==="start"?mn-Pe-Xn:dt==="center"?mn-(Pe+Dn/2)+kt/2:dt==="end"?mn-Ve+At+kt:Fe(Pe,Ve,Dn,Xn,At+kt,mn,mn+we,we);const{scrollLeft:Ue,scrollTop:ne}=ln;Tt=Ie===0?0:Math.max(0,Math.min(ne+Tt/Ie,ln.scrollHeight-qn/Ie+$t)),Kt=un===0?0:Math.max(0,Math.min(Ue+Kt/un,ln.scrollWidth-Dn/un+kt)),Qt+=ne-Tt,mn+=Ue-Kt}ii.push({el:ln,top:Tt,left:Kt})}return ii},ge=Ce=>Ce===!1?{block:"end",inline:"nearest"}:(Mt=>Mt===Object(Mt)&&Object.keys(Mt).length!==0)(Ce)?Ce:{block:"start",inline:"nearest"};function Ze(Ce,Mt){if(!Ce.isConnected||!(We=>{let Nt=We;for(;Nt&&Nt.parentNode;){if(Nt.parentNode===document)return!0;Nt=Nt.parentNode instanceof ShadowRoot?Nt.parentNode.host:Nt.parentNode}return!1})(Ce))return;const Re=(We=>{const Nt=window.getComputedStyle(We);return{top:parseFloat(Nt.scrollMarginTop)||0,right:parseFloat(Nt.scrollMarginRight)||0,bottom:parseFloat(Nt.scrollMarginBottom)||0,left:parseFloat(Nt.scrollMarginLeft)||0}})(Ce);if((We=>typeof We=="object"&&typeof We.behavior=="function")(Mt))return Mt.behavior(jt(Ce,Mt));const Yt=typeof Mt=="boolean"||Mt==null?void 0:Mt.behavior;for(const{el:We,top:Nt,left:nt}of jt(Ce,ge(Mt))){const et=Nt-Re.top+Re.bottom,dt=nt-Re.left+Re.right;We.scroll({top:et,left:dt,behavior:Yt})}}}}]);
}());