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.
1182 lines
2.3 MiB
1182 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=(Qn,pi,Dt)=>pi in Qn?lw(Qn,pi,{enumerable:!0,configurable:!0,writable:!0,value:Dt}):Qn[pi]=Dt,Fo=(Qn,pi)=>{for(var Dt in pi||(pi={}))wx.call(pi,Dt)&&xx(Qn,Dt,pi[Dt]);if(ev)for(var Dt of ev(pi))Px.call(pi,Dt)&&xx(Qn,Dt,pi[Dt]);return Qn},Za=(Qn,pi)=>uw(Qn,hw(pi));var nv=(Qn,pi)=>{var Dt={};for(var yt in Qn)wx.call(Qn,yt)&&pi.indexOf(yt)<0&&(Dt[yt]=Qn[yt]);if(Qn!=null&&ev)for(var yt of ev(Qn))pi.indexOf(yt)<0&&Px.call(Qn,yt)&&(Dt[yt]=Qn[yt]);return Dt};var Cx=(Qn,pi,Dt)=>new Promise((yt,ee)=>{var ie=jt=>{try{Ee(Dt.next(jt))}catch(ce){ee(ce)}},we=jt=>{try{Ee(Dt.throw(jt))}catch(ce){ee(ce)}},Ee=jt=>jt.done?yt(jt.value):Promise.resolve(jt.value).then(ie,we);Ee((Dt=Dt.apply(Qn,pi)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[4030],{87954:function(Qn,pi,Dt){"use strict";Dt.d(pi,{LB:function(){return ar},g4:function(){return bn},VK:function(){return fn},Cj:function(){return Wr},O1:function(){return Or},Zj:function(){return Qi}});var yt=Dt(59301),ee=Dt(4676),ie=Dt(35241);const we={display:"none"};function Ee(Wt){let{id:qt,value:Se}=Wt;return yt.createElement("div",{id:qt,style:we},Se)}function jt(Wt){let{id:qt,announcement:Se,ariaLiveType:Te="assertive"}=Wt;const en={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:qt,style:en,role:"status","aria-live":Te,"aria-atomic":!0},Se)}function ce(){const[Wt,qt]=(0,yt.useState)("");return{announce:(0,yt.useCallback)(Te=>{Te!=null&&qt(Te)},[]),announcement:Wt}}const Ve=(0,yt.createContext)(null);function xe(Wt){const qt=(0,yt.useContext)(Ve);(0,yt.useEffect)(()=>{if(!qt)throw new Error("useDndMonitor must be used within a children of <DndContext>");return qt(Wt)},[Wt,qt])}function Lt(){const[Wt]=(0,yt.useState)(()=>new Set),qt=(0,yt.useCallback)(Te=>(Wt.add(Te),()=>Wt.delete(Te)),[Wt]);return[(0,yt.useCallback)(Te=>{let{type:en,event:ne}=Te;Wt.forEach(Me=>{var Ke;return(Ke=Me[en])==null?void 0:Ke.call(Me,ne)})},[Wt]),qt]}const ze={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.
|
|
`},Kt={onDragStart(Wt){let{active:qt}=Wt;return"Picked up draggable item "+qt.id+"."},onDragOver(Wt){let{active:qt,over:Se}=Wt;return Se?"Draggable item "+qt.id+" was moved over droppable area "+Se.id+".":"Draggable item "+qt.id+" is no longer over a droppable area."},onDragEnd(Wt){let{active:qt,over:Se}=Wt;return Se?"Draggable item "+qt.id+" was dropped over droppable area "+Se.id:"Draggable item "+qt.id+" was dropped."},onDragCancel(Wt){let{active:qt}=Wt;return"Dragging was cancelled. Draggable item "+qt.id+" was dropped."}};function Je(Wt){let{announcements:qt=Kt,container:Se,hiddenTextDescribedById:Te,screenReaderInstructions:en=ze}=Wt;const{announce:ne,announcement:Me}=ce(),Ke=(0,ie.Ld)("DndLiveRegion"),[je,hn]=(0,yt.useState)(!1);if((0,yt.useEffect)(()=>{hn(!0)},[]),xe((0,yt.useMemo)(()=>({onDragStart(Ct){let{active:Qt}=Ct;ne(qt.onDragStart({active:Qt}))},onDragMove(Ct){let{active:Qt,over:zt}=Ct;qt.onDragMove&&ne(qt.onDragMove({active:Qt,over:zt}))},onDragOver(Ct){let{active:Qt,over:zt}=Ct;ne(qt.onDragOver({active:Qt,over:zt}))},onDragEnd(Ct){let{active:Qt,over:zt}=Ct;ne(qt.onDragEnd({active:Qt,over:zt}))},onDragCancel(Ct){let{active:Qt,over:zt}=Ct;ne(qt.onDragCancel({active:Qt,over:zt}))}}),[ne,qt])),!je)return null;const An=yt.createElement(yt.Fragment,null,yt.createElement(Ee,{id:Te,value:en.draggable}),yt.createElement(jt,{id:Ke,announcement:Me}));return Se?(0,ee.createPortal)(An,Se):An}var Bt;(function(Wt){Wt.DragStart="dragStart",Wt.DragMove="dragMove",Wt.DragEnd="dragEnd",Wt.DragCancel="dragCancel",Wt.DragOver="dragOver",Wt.RegisterDroppable="registerDroppable",Wt.SetDroppableDisabled="setDroppableDisabled",Wt.UnregisterDroppable="unregisterDroppable"})(Bt||(Bt={}));function nt(){}function et(Wt,qt){return useMemo(()=>({sensor:Wt,options:qt!=null?qt:{}}),[Wt,qt])}function dt(){for(var Wt=arguments.length,qt=new Array(Wt),Se=0;Se<Wt;Se++)qt[Se]=arguments[Se];return useMemo(()=>[...qt].filter(Te=>Te!=null),[...qt])}const lt=Object.freeze({x:0,y:0});function gt(Wt,qt){return Math.sqrt(Math.pow(Wt.x-qt.x,2)+Math.pow(Wt.y-qt.y,2))}function mt(Wt,qt){const Se=getEventCoordinates(Wt);if(!Se)return"0 0";const Te={x:(Se.x-qt.left)/qt.width*100,y:(Se.y-qt.top)/qt.height*100};return Te.x+"% "+Te.y+"%"}function St(Wt,qt){let{data:{value:Se}}=Wt,{data:{value:Te}}=qt;return Se-Te}function Mt(Wt,qt){let{data:{value:Se}}=Wt,{data:{value:Te}}=qt;return Te-Se}function It(Wt){let{left:qt,top:Se,height:Te,width:en}=Wt;return[{x:qt,y:Se},{x:qt+en,y:Se},{x:qt,y:Se+Te},{x:qt+en,y:Se+Te}]}function Zt(Wt,qt){if(!Wt||Wt.length===0)return null;const[Se]=Wt;return qt?Se[qt]:Se}function oe(Wt,qt,Se){return qt===void 0&&(qt=Wt.left),Se===void 0&&(Se=Wt.top),{x:qt+Wt.width*.5,y:Se+Wt.height*.5}}const Gt=Wt=>{let{collisionRect:qt,droppableRects:Se,droppableContainers:Te}=Wt;const en=oe(qt,qt.left,qt.top),ne=[];for(const Me of Te){const{id:Ke}=Me,je=Se.get(Ke);if(je){const hn=gt(oe(je),en);ne.push({id:Ke,data:{droppableContainer:Me,value:hn}})}}return ne.sort(St)},_t=Wt=>{let{collisionRect:qt,droppableRects:Se,droppableContainers:Te}=Wt;const en=It(qt),ne=[];for(const Me of Te){const{id:Ke}=Me,je=Se.get(Ke);if(je){const hn=It(je),An=en.reduce((Qt,zt,de)=>Qt+gt(hn[de],zt),0),Ct=Number((An/4).toFixed(4));ne.push({id:Ke,data:{droppableContainer:Me,value:Ct}})}}return ne.sort(St)};function ge(Wt,qt){const Se=Math.max(qt.top,Wt.top),Te=Math.max(qt.left,Wt.left),en=Math.min(qt.left+qt.width,Wt.left+Wt.width),ne=Math.min(qt.top+qt.height,Wt.top+Wt.height),Me=en-Te,Ke=ne-Se;if(Te<en&&Se<ne){const je=qt.width*qt.height,hn=Wt.width*Wt.height,An=Me*Ke,Ct=An/(je+hn-An);return Number(Ct.toFixed(4))}return 0}const me=Wt=>{let{collisionRect:qt,droppableRects:Se,droppableContainers:Te}=Wt;const en=[];for(const ne of Te){const{id:Me}=ne,Ke=Se.get(Me);if(Ke){const je=ge(Ke,qt);je>0&&en.push({id:Me,data:{droppableContainer:ne,value:je}})}}return en.sort(Mt)};function Pe(Wt,qt){const{top:Se,left:Te,bottom:en,right:ne}=qt;return Se<=Wt.y&&Wt.y<=en&&Te<=Wt.x&&Wt.x<=ne}const ye=Wt=>{let{droppableContainers:qt,droppableRects:Se,pointerCoordinates:Te}=Wt;if(!Te)return[];const en=[];for(const ne of qt){const{id:Me}=ne,Ke=Se.get(Me);if(Ke&&Pe(Te,Ke)){const hn=It(Ke).reduce((Ct,Qt)=>Ct+gt(Te,Qt),0),An=Number((hn/4).toFixed(4));en.push({id:Me,data:{droppableContainer:ne,value:An}})}}return en.sort(St)};function He(Wt,qt,Se){return Za(Fo({},Wt),{scaleX:qt&&Se?qt.width/Se.width:1,scaleY:qt&&Se?qt.height/Se.height:1})}function wn(Wt,qt){return Wt&&qt?{x:Wt.left-qt.left,y:Wt.top-qt.top}:lt}function ln(Wt){return function(Se){for(var Te=arguments.length,en=new Array(Te>1?Te-1:0),ne=1;ne<Te;ne++)en[ne-1]=arguments[ne];return en.reduce((Me,Ke)=>Za(Fo({},Me),{top:Me.top+Wt*Ke.y,bottom:Me.bottom+Wt*Ke.y,left:Me.left+Wt*Ke.x,right:Me.right+Wt*Ke.x}),Fo({},Se))}}const Oe=ln(1);function Sn(Wt){if(Wt.startsWith("matrix3d(")){const qt=Wt.slice(9,-1).split(/, /);return{x:+qt[12],y:+qt[13],scaleX:+qt[0],scaleY:+qt[5]}}else if(Wt.startsWith("matrix(")){const qt=Wt.slice(7,-1).split(/, /);return{x:+qt[4],y:+qt[5],scaleX:+qt[0],scaleY:+qt[3]}}return null}function se(Wt,qt,Se){const Te=Sn(qt);if(!Te)return Wt;const{scaleX:en,scaleY:ne,x:Me,y:Ke}=Te,je=Wt.left-Me-(1-en)*parseFloat(Se),hn=Wt.top-Ke-(1-ne)*parseFloat(Se.slice(Se.indexOf(" ")+1)),An=en?Wt.width/en:Wt.width,Ct=ne?Wt.height/ne:Wt.height;return{width:An,height:Ct,top:hn,right:je+An,bottom:hn+Ct,left:je}}const Yt={ignoreTransform:!1};function fn(Wt,qt){qt===void 0&&(qt=Yt);let Se=Wt.getBoundingClientRect();if(qt.ignoreTransform){const{transform:hn,transformOrigin:An}=(0,ie.Jj)(Wt).getComputedStyle(Wt);hn&&(Se=se(Se,hn,An))}const{top:Te,left:en,width:ne,height:Me,bottom:Ke,right:je}=Se;return{top:Te,left:en,width:ne,height:Me,bottom:Ke,right:je}}function _n(Wt){return fn(Wt,{ignoreTransform:!0})}function In(Wt){const qt=Wt.innerWidth,Se=Wt.innerHeight;return{top:0,left:0,right:qt,bottom:Se,width:qt,height:Se}}function on(Wt,qt){return qt===void 0&&(qt=(0,ie.Jj)(Wt).getComputedStyle(Wt)),qt.position==="fixed"}function jn(Wt,qt){qt===void 0&&(qt=(0,ie.Jj)(Wt).getComputedStyle(Wt));const Se=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(en=>{const ne=qt[en];return typeof ne=="string"?Se.test(ne):!1})}function Pn(Wt,qt){const Se=[];function Te(en){if(qt!=null&&Se.length>=qt||!en)return Se;if((0,ie.qk)(en)&&en.scrollingElement!=null&&!Se.includes(en.scrollingElement))return Se.push(en.scrollingElement),Se;if(!(0,ie.Re)(en)||(0,ie.vZ)(en)||Se.includes(en))return Se;const ne=(0,ie.Jj)(Wt).getComputedStyle(en);return en!==Wt&&jn(en,ne)&&Se.push(en),on(en,ne)?Se:Te(en.parentNode)}return Wt?Te(Wt):Se}function di(Wt){const[qt]=Pn(Wt,1);return qt!=null?qt:null}function Re(Wt){return!ie.Nq||!Wt?null:(0,ie.FJ)(Wt)?Wt:(0,ie.UG)(Wt)?(0,ie.qk)(Wt)||Wt===(0,ie.r3)(Wt).scrollingElement?window:(0,ie.Re)(Wt)?Wt:null:null}function ve(Wt){return(0,ie.FJ)(Wt)?Wt.scrollX:Wt.scrollLeft}function Ye(Wt){return(0,ie.FJ)(Wt)?Wt.scrollY:Wt.scrollTop}function mi(Wt){return{x:ve(Wt),y:Ye(Wt)}}var Cn;(function(Wt){Wt[Wt.Forward=1]="Forward",Wt[Wt.Backward=-1]="Backward"})(Cn||(Cn={}));function Ot(Wt){return!ie.Nq||!Wt?!1:Wt===document.scrollingElement}function At(Wt){const qt={x:0,y:0},Se=Ot(Wt)?{height:window.innerHeight,width:window.innerWidth}:{height:Wt.clientHeight,width:Wt.clientWidth},Te={x:Wt.scrollWidth-Se.width,y:Wt.scrollHeight-Se.height},en=Wt.scrollTop<=qt.y,ne=Wt.scrollLeft<=qt.x,Me=Wt.scrollTop>=Te.y,Ke=Wt.scrollLeft>=Te.x;return{isTop:en,isLeft:ne,isBottom:Me,isRight:Ke,maxScroll:Te,minScroll:qt}}const wt={x:.2,y:.2};function Nt(Wt,qt,Se,Te,en){let{top:ne,left:Me,right:Ke,bottom:je}=Se;Te===void 0&&(Te=10),en===void 0&&(en=wt);const{isTop:hn,isBottom:An,isLeft:Ct,isRight:Qt}=At(Wt),zt={x:0,y:0},de={x:0,y:0},ue={height:qt.height*en.y,width:qt.width*en.x};return!hn&&ne<=qt.top+ue.height?(zt.y=Cn.Backward,de.y=Te*Math.abs((qt.top+ue.height-ne)/ue.height)):!An&&je>=qt.bottom-ue.height&&(zt.y=Cn.Forward,de.y=Te*Math.abs((qt.bottom-ue.height-je)/ue.height)),!Qt&&Ke>=qt.right-ue.width?(zt.x=Cn.Forward,de.x=Te*Math.abs((qt.right-ue.width-Ke)/ue.width)):!Ct&&Me<=qt.left+ue.width&&(zt.x=Cn.Backward,de.x=Te*Math.abs((qt.left+ue.width-Me)/ue.width)),{direction:zt,speed:de}}function Vt(Wt){if(Wt===document.scrollingElement){const{innerWidth:ne,innerHeight:Me}=window;return{top:0,left:0,right:ne,bottom:Me,width:ne,height:Me}}const{top:qt,left:Se,right:Te,bottom:en}=Wt.getBoundingClientRect();return{top:qt,left:Se,right:Te,bottom:en,width:Wt.clientWidth,height:Wt.clientHeight}}function kt(Wt){return Wt.reduce((qt,Se)=>(0,ie.IH)(qt,mi(Se)),lt)}function $t(Wt){return Wt.reduce((qt,Se)=>qt+ve(Se),0)}function nn(Wt){return Wt.reduce((qt,Se)=>qt+Ye(Se),0)}function dn(Wt,qt){if(qt===void 0&&(qt=fn),!Wt)return;const{top:Se,left:Te,bottom:en,right:ne}=qt(Wt);di(Wt)&&(en<=0||ne<=0||Se>=window.innerHeight||Te>=window.innerWidth)&&Wt.scrollIntoView({block:"center",inline:"center"})}const En=[["x",["left","right"],$t],["y",["top","bottom"],nn]];class De{constructor(qt,Se){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 Te=Pn(Se),en=kt(Te);this.rect=Fo({},qt),this.width=qt.width,this.height=qt.height;for(const[ne,Me,Ke]of En)for(const je of Me)Object.defineProperty(this,je,{get:()=>{const hn=Ke(Te),An=en[ne]-hn;return this.rect[je]+An},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Ce{constructor(qt){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(Se=>{var Te;return(Te=this.target)==null?void 0:Te.removeEventListener(...Se)})},this.target=qt}add(qt,Se,Te){var en;(en=this.target)==null||en.addEventListener(qt,Se,Te),this.listeners.push([qt,Se,Te])}}function Qe(Wt){const{EventTarget:qt}=(0,ie.Jj)(Wt);return Wt instanceof qt?Wt:(0,ie.r3)(Wt)}function un(Wt,qt){const Se=Math.abs(Wt.x),Te=Math.abs(Wt.y);return typeof qt=="number"?Math.sqrt(Qy(Se,2)+Qy(Te,2))>qt:"x"in qt&&"y"in qt?Se>qt.x&&Te>qt.y:"x"in qt?Se>qt.x:"y"in qt?Te>qt.y:!1}var Nn;(function(Wt){Wt.Click="click",Wt.DragStart="dragstart",Wt.Keydown="keydown",Wt.ContextMenu="contextmenu",Wt.Resize="resize",Wt.SelectionChange="selectionchange",Wt.VisibilityChange="visibilitychange"})(Nn||(Nn={}));function ai(Wt){Wt.preventDefault()}function Tn(Wt){Wt.stopPropagation()}var bn;(function(Wt){Wt.Space="Space",Wt.Down="ArrowDown",Wt.Right="ArrowRight",Wt.Left="ArrowLeft",Wt.Up="ArrowUp",Wt.Esc="Escape",Wt.Enter="Enter",Wt.Tab="Tab"})(bn||(bn={}));const Ie={start:[bn.Space,bn.Enter],cancel:[bn.Esc],end:[bn.Space,bn.Enter,bn.Tab]},Ue=(Wt,qt)=>{let{currentCoordinates:Se}=qt;switch(Wt.code){case bn.Right:return Za(Fo({},Se),{x:Se.x+25});case bn.Left:return Za(Fo({},Se),{x:Se.x-25});case bn.Down:return Za(Fo({},Se),{y:Se.y+25});case bn.Up:return Za(Fo({},Se),{y:Se.y-25})}};class cn{constructor(qt){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=qt;const{event:{target:Se}}=qt;this.props=qt,this.listeners=new Ce((0,ie.r3)(Se)),this.windowListeners=new Ce((0,ie.Jj)(Se)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Nn.Resize,this.handleCancel),this.windowListeners.add(Nn.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(Nn.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:qt,onStart:Se}=this.props,Te=qt.node.current;Te&&dn(Te),Se(lt)}handleKeyDown(qt){if((0,ie.vd)(qt)){const{active:Se,context:Te,options:en}=this.props,{keyboardCodes:ne=Ie,coordinateGetter:Me=Ue,scrollBehavior:Ke="smooth"}=en,{code:je}=qt;if(ne.end.includes(je)){this.handleEnd(qt);return}if(ne.cancel.includes(je)){this.handleCancel(qt);return}const{collisionRect:hn}=Te.current,An=hn?{x:hn.left,y:hn.top}:lt;this.referenceCoordinates||(this.referenceCoordinates=An);const Ct=Me(qt,{active:Se,context:Te.current,currentCoordinates:An});if(Ct){const Qt=(0,ie.$X)(Ct,An),zt={x:0,y:0},{scrollableAncestors:de}=Te.current;for(const ue of de){const Ge=qt.code,{isTop:Ze,isRight:an,isLeft:kn,isBottom:Un,maxScroll:yn,minScroll:si}=At(ue),vi=Vt(ue),le={x:Math.min(Ge===bn.Right?vi.right-vi.width/2:vi.right,Math.max(Ge===bn.Right?vi.left:vi.left+vi.width/2,Ct.x)),y:Math.min(Ge===bn.Down?vi.bottom-vi.height/2:vi.bottom,Math.max(Ge===bn.Down?vi.top:vi.top+vi.height/2,Ct.y))},ei=Ge===bn.Right&&!an||Ge===bn.Left&&!kn,ni=Ge===bn.Down&&!Un||Ge===bn.Up&&!Ze;if(ei&&le.x!==Ct.x){const Wn=ue.scrollLeft+Qt.x,Vn=Ge===bn.Right&&Wn<=yn.x||Ge===bn.Left&&Wn>=si.x;if(Vn&&!Qt.y){ue.scrollTo({left:Wn,behavior:Ke});return}Vn?zt.x=ue.scrollLeft-Wn:zt.x=Ge===bn.Right?ue.scrollLeft-yn.x:ue.scrollLeft-si.x,zt.x&&ue.scrollBy({left:-zt.x,behavior:Ke});break}else if(ni&&le.y!==Ct.y){const Wn=ue.scrollTop+Qt.y,Vn=Ge===bn.Down&&Wn<=yn.y||Ge===bn.Up&&Wn>=si.y;if(Vn&&!Qt.x){ue.scrollTo({top:Wn,behavior:Ke});return}Vn?zt.y=ue.scrollTop-Wn:zt.y=Ge===bn.Down?ue.scrollTop-yn.y:ue.scrollTop-si.y,zt.y&&ue.scrollBy({top:-zt.y,behavior:Ke});break}}this.handleMove(qt,(0,ie.IH)((0,ie.$X)(Ct,this.referenceCoordinates),zt))}}}handleMove(qt,Se){const{onMove:Te}=this.props;qt.preventDefault(),Te(Se)}handleEnd(qt){const{onEnd:Se}=this.props;qt.preventDefault(),this.detach(),Se()}handleCancel(qt){const{onCancel:Se}=this.props;qt.preventDefault(),this.detach(),Se()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}cn.activators=[{eventName:"onKeyDown",handler:(Wt,qt,Se)=>{let{keyboardCodes:Te=Ie,onActivation:en}=qt,{active:ne}=Se;const{code:Me}=Wt.nativeEvent;if(Te.start.includes(Me)){const Ke=ne.activatorNode.current;return Ke&&Wt.target!==Ke?!1:(Wt.preventDefault(),en==null||en({event:Wt.nativeEvent}),!0)}return!1}}];function Ln(Wt){return!!(Wt&&"distance"in Wt)}function Xn(Wt){return!!(Wt&&"delay"in Wt)}class li{constructor(qt,Se,Te){var en;Te===void 0&&(Te=Qe(qt.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=qt,this.events=Se;const{event:ne}=qt,{target:Me}=ne;this.props=qt,this.events=Se,this.document=(0,ie.r3)(Me),this.documentListeners=new Ce(this.document),this.listeners=new Ce(Te),this.windowListeners=new Ce((0,ie.Jj)(Me)),this.initialCoordinates=(en=(0,ie.DC)(ne))!=null?en: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:qt,props:{options:{activationConstraint:Se,bypassActivationConstraint:Te}}}=this;if(this.listeners.add(qt.move.name,this.handleMove,{passive:!1}),this.listeners.add(qt.end.name,this.handleEnd),qt.cancel&&this.listeners.add(qt.cancel.name,this.handleCancel),this.windowListeners.add(Nn.Resize,this.handleCancel),this.windowListeners.add(Nn.DragStart,ai),this.windowListeners.add(Nn.VisibilityChange,this.handleCancel),this.windowListeners.add(Nn.ContextMenu,ai),this.documentListeners.add(Nn.Keydown,this.handleKeydown),Se){if(Te!=null&&Te({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Xn(Se)){this.timeoutId=setTimeout(this.handleStart,Se.delay),this.handlePending(Se);return}if(Ln(Se)){this.handlePending(Se);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(qt,Se){const{active:Te,onPending:en}=this.props;en(Te,qt,this.initialCoordinates,Se)}handleStart(){const{initialCoordinates:qt}=this,{onStart:Se}=this.props;qt&&(this.activated=!0,this.documentListeners.add(Nn.Click,Tn,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Nn.SelectionChange,this.removeTextSelection),Se(qt))}handleMove(qt){var Se;const{activated:Te,initialCoordinates:en,props:ne}=this,{onMove:Me,options:{activationConstraint:Ke}}=ne;if(!en)return;const je=(Se=(0,ie.DC)(qt))!=null?Se:lt,hn=(0,ie.$X)(en,je);if(!Te&&Ke){if(Ln(Ke)){if(Ke.tolerance!=null&&un(hn,Ke.tolerance))return this.handleCancel();if(un(hn,Ke.distance))return this.handleStart()}if(Xn(Ke)&&un(hn,Ke.tolerance))return this.handleCancel();this.handlePending(Ke,hn);return}qt.cancelable&&qt.preventDefault(),Me(je)}handleEnd(){const{onAbort:qt,onEnd:Se}=this.props;this.detach(),this.activated||qt(this.props.active),Se()}handleCancel(){const{onAbort:qt,onCancel:Se}=this.props;this.detach(),this.activated||qt(this.props.active),Se()}handleKeydown(qt){qt.code===bn.Esc&&this.handleCancel()}removeTextSelection(){var qt;(qt=this.document.getSelection())==null||qt.removeAllRanges()}}const Ci={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class gn extends li{constructor(qt){const{event:Se}=qt,Te=(0,ie.r3)(Se.target);super(qt,Ci,Te)}}gn.activators=[{eventName:"onPointerDown",handler:(Wt,qt)=>{let{nativeEvent:Se}=Wt,{onActivation:Te}=qt;return!Se.isPrimary||Se.button!==0?!1:(Te==null||Te({event:Se}),!0)}}];const ti={move:{name:"mousemove"},end:{name:"mouseup"}};var _i;(function(Wt){Wt[Wt.RightClick=2]="RightClick"})(_i||(_i={}));class fr extends li{constructor(qt){super(qt,ti,(0,ie.r3)(qt.event.target))}}fr.activators=[{eventName:"onMouseDown",handler:(Wt,qt)=>{let{nativeEvent:Se}=Wt,{onActivation:Te}=qt;return Se.button===_i.RightClick?!1:(Te==null||Te({event:Se}),!0)}}];const tr={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class er extends li{constructor(qt){super(qt,tr)}static setup(){return window.addEventListener(tr.move.name,qt,{capture:!1,passive:!1}),function(){window.removeEventListener(tr.move.name,qt)};function qt(){}}}er.activators=[{eventName:"onTouchStart",handler:(Wt,qt)=>{let{nativeEvent:Se}=Wt,{onActivation:Te}=qt;const{touches:en}=Se;return en.length>1?!1:(Te==null||Te({event:Se}),!0)}}];var yr;(function(Wt){Wt[Wt.Pointer=0]="Pointer",Wt[Wt.DraggableRect=1]="DraggableRect"})(yr||(yr={}));var sr;(function(Wt){Wt[Wt.TreeOrder=0]="TreeOrder",Wt[Wt.ReversedTreeOrder=1]="ReversedTreeOrder"})(sr||(sr={}));function hr(Wt){let{acceleration:qt,activator:Se=yr.Pointer,canScroll:Te,draggingRect:en,enabled:ne,interval:Me=5,order:Ke=sr.TreeOrder,pointerCoordinates:je,scrollableAncestors:hn,scrollableAncestorRects:An,delta:Ct,threshold:Qt}=Wt;const zt=gr({delta:Ct,disabled:!ne}),[de,ue]=(0,ie.Yz)(),Ge=(0,yt.useRef)({x:0,y:0}),Ze=(0,yt.useRef)({x:0,y:0}),an=(0,yt.useMemo)(()=>{switch(Se){case yr.Pointer:return je?{top:je.y,bottom:je.y,left:je.x,right:je.x}:null;case yr.DraggableRect:return en}},[Se,en,je]),kn=(0,yt.useRef)(null),Un=(0,yt.useCallback)(()=>{const si=kn.current;if(!si)return;const vi=Ge.current.x*Ze.current.x,le=Ge.current.y*Ze.current.y;si.scrollBy(vi,le)},[]),yn=(0,yt.useMemo)(()=>Ke===sr.TreeOrder?[...hn].reverse():hn,[Ke,hn]);(0,yt.useEffect)(()=>{if(!ne||!hn.length||!an){ue();return}for(const si of yn){if((Te==null?void 0:Te(si))===!1)continue;const vi=hn.indexOf(si),le=An[vi];if(!le)continue;const{direction:ei,speed:ni}=Nt(si,le,an,qt,Qt);for(const Wn of["x","y"])zt[Wn][ei[Wn]]||(ni[Wn]=0,ei[Wn]=0);if(ni.x>0||ni.y>0){ue(),kn.current=si,de(Un,Me),Ge.current=ni,Ze.current=ei;return}}Ge.current={x:0,y:0},Ze.current={x:0,y:0},ue()},[qt,Un,Te,ue,ne,Me,JSON.stringify(an),JSON.stringify(zt),de,hn,yn,An,JSON.stringify(Qt)])}const zi={x:{[Cn.Backward]:!1,[Cn.Forward]:!1},y:{[Cn.Backward]:!1,[Cn.Forward]:!1}};function gr(Wt){let{delta:qt,disabled:Se}=Wt;const Te=(0,ie.D9)(qt);return(0,ie.Gj)(en=>{if(Se||!Te||!en)return zi;const ne={x:Math.sign(qt.x-Te.x),y:Math.sign(qt.y-Te.y)};return{x:{[Cn.Backward]:en.x[Cn.Backward]||ne.x===-1,[Cn.Forward]:en.x[Cn.Forward]||ne.x===1},y:{[Cn.Backward]:en.y[Cn.Backward]||ne.y===-1,[Cn.Forward]:en.y[Cn.Forward]||ne.y===1}}},[Se,qt,Te])}function Et(Wt,qt){const Se=qt!=null?Wt.get(qt):void 0,Te=Se?Se.node.current:null;return(0,ie.Gj)(en=>{var ne;return qt==null?null:(ne=Te!=null?Te:en)!=null?ne:null},[Te,qt])}function Bn(Wt,qt){return(0,yt.useMemo)(()=>Wt.reduce((Se,Te)=>{const{sensor:en}=Te,ne=en.activators.map(Me=>({eventName:Me.eventName,handler:qt(Me.handler,Te)}));return[...Se,...ne]},[]),[Wt,qt])}var Gn;(function(Wt){Wt[Wt.Always=0]="Always",Wt[Wt.BeforeDragging=1]="BeforeDragging",Wt[Wt.WhileDragging=2]="WhileDragging"})(Gn||(Gn={}));var fi;(function(Wt){Wt.Optimized="optimized"})(fi||(fi={}));const ci=new Map;function Kn(Wt,qt){let{dragging:Se,dependencies:Te,config:en}=qt;const[ne,Me]=(0,yt.useState)(null),{frequency:Ke,measure:je,strategy:hn}=en,An=(0,yt.useRef)(Wt),Ct=Ge(),Qt=(0,ie.Ey)(Ct),zt=(0,yt.useCallback)(function(Ze){Ze===void 0&&(Ze=[]),!Qt.current&&Me(an=>an===null?Ze:an.concat(Ze.filter(kn=>!an.includes(kn))))},[Qt]),de=(0,yt.useRef)(null),ue=(0,ie.Gj)(Ze=>{if(Ct&&!Se)return ci;if(!Ze||Ze===ci||An.current!==Wt||ne!=null){const an=new Map;for(let kn of Wt){if(!kn)continue;if(ne&&ne.length>0&&!ne.includes(kn.id)&&kn.rect.current){an.set(kn.id,kn.rect.current);continue}const Un=kn.node.current,yn=Un?new De(je(Un),Un):null;kn.rect.current=yn,yn&&an.set(kn.id,yn)}return an}return Ze},[Wt,ne,Se,Ct,je]);return(0,yt.useEffect)(()=>{An.current=Wt},[Wt]),(0,yt.useEffect)(()=>{Ct||zt()},[Se,Ct]),(0,yt.useEffect)(()=>{ne&&ne.length>0&&Me(null)},[JSON.stringify(ne)]),(0,yt.useEffect)(()=>{Ct||typeof Ke!="number"||de.current!==null||(de.current=setTimeout(()=>{zt(),de.current=null},Ke))},[Ke,Ct,zt,...Te]),{droppableRects:ue,measureDroppableContainers:zt,measuringScheduled:ne!=null};function Ge(){switch(hn){case Gn.Always:return!1;case Gn.BeforeDragging:return Se;default:return!Se}}}function rn(Wt,qt){return(0,ie.Gj)(Se=>Wt?Se||(typeof qt=="function"?qt(Wt):Wt):null,[qt,Wt])}function Yn(Wt,qt){return rn(Wt,qt)}function Fe(Wt){let{callback:qt,disabled:Se}=Wt;const Te=(0,ie.zX)(qt),en=(0,yt.useMemo)(()=>{if(Se||typeof window=="undefined"||typeof window.MutationObserver=="undefined")return;const{MutationObserver:ne}=window;return new ne(Te)},[Te,Se]);return(0,yt.useEffect)(()=>()=>en==null?void 0:en.disconnect(),[en]),en}function Ne(Wt){let{callback:qt,disabled:Se}=Wt;const Te=(0,ie.zX)(qt),en=(0,yt.useMemo)(()=>{if(Se||typeof window=="undefined"||typeof window.ResizeObserver=="undefined")return;const{ResizeObserver:ne}=window;return new ne(Te)},[Se]);return(0,yt.useEffect)(()=>()=>en==null?void 0:en.disconnect(),[en]),en}function ke(Wt){return new De(fn(Wt),Wt)}function sn(Wt,qt,Se){qt===void 0&&(qt=ke);const[Te,en]=(0,yt.useState)(null);function ne(){en(je=>{if(!Wt)return null;if(Wt.isConnected===!1){var hn;return(hn=je!=null?je:Se)!=null?hn:null}const An=qt(Wt);return JSON.stringify(je)===JSON.stringify(An)?je:An})}const Me=Fe({callback(je){if(Wt)for(const hn of je){const{type:An,target:Ct}=hn;if(An==="childList"&&Ct instanceof HTMLElement&&Ct.contains(Wt)){ne();break}}}}),Ke=Ne({callback:ne});return(0,ie.LI)(()=>{ne(),Wt?(Ke==null||Ke.observe(Wt),Me==null||Me.observe(document.body,{childList:!0,subtree:!0})):(Ke==null||Ke.disconnect(),Me==null||Me.disconnect())},[Wt]),Te}function xi(Wt){const qt=rn(Wt);return wn(Wt,qt)}const yi=[];function Fi(Wt){const qt=(0,yt.useRef)(Wt),Se=(0,ie.Gj)(Te=>Wt?Te&&Te!==yi&&Wt&&qt.current&&Wt.parentNode===qt.current.parentNode?Te:Pn(Wt):yi,[Wt]);return(0,yt.useEffect)(()=>{qt.current=Wt},[Wt]),Se}function Xe(Wt){const[qt,Se]=(0,yt.useState)(null),Te=(0,yt.useRef)(Wt),en=(0,yt.useCallback)(ne=>{const Me=Re(ne.target);Me&&Se(Ke=>Ke?(Ke.set(Me,mi(Me)),new Map(Ke)):null)},[]);return(0,yt.useEffect)(()=>{const ne=Te.current;if(Wt!==ne){Me(ne);const Ke=Wt.map(je=>{const hn=Re(je);return hn?(hn.addEventListener("scroll",en,{passive:!0}),[hn,mi(hn)]):null}).filter(je=>je!=null);Se(Ke.length?new Map(Ke):null),Te.current=Wt}return()=>{Me(Wt),Me(ne)};function Me(Ke){Ke.forEach(je=>{const hn=Re(je);hn==null||hn.removeEventListener("scroll",en)})}},[en,Wt]),(0,yt.useMemo)(()=>Wt.length?qt?Array.from(qt.values()).reduce((ne,Me)=>(0,ie.IH)(ne,Me),lt):kt(Wt):lt,[Wt,qt])}function Dn(Wt,qt){qt===void 0&&(qt=[]);const Se=(0,yt.useRef)(null);return(0,yt.useEffect)(()=>{Se.current=null},qt),(0,yt.useEffect)(()=>{const Te=Wt!==lt;Te&&!Se.current&&(Se.current=Wt),!Te&&Se.current&&(Se.current=null)},[Wt]),Se.current?(0,ie.$X)(Wt,Se.current):lt}function mn(Wt){(0,yt.useEffect)(()=>{if(!ie.Nq)return;const qt=Wt.map(Se=>{let{sensor:Te}=Se;return Te.setup==null?void 0:Te.setup()});return()=>{for(const Se of qt)Se==null||Se()}},Wt.map(qt=>{let{sensor:Se}=qt;return Se}))}function Hi(Wt,qt){return(0,yt.useMemo)(()=>Wt.reduce((Se,Te)=>{let{eventName:en,handler:ne}=Te;return Se[en]=Me=>{ne(Me,qt)},Se},{}),[Wt,qt])}function qn(Wt){return(0,yt.useMemo)(()=>Wt?In(Wt):null,[Wt])}const te=[];function be(Wt,qt){qt===void 0&&(qt=fn);const[Se]=Wt,Te=qn(Se?(0,ie.Jj)(Se):null),[en,ne]=(0,yt.useState)(te);function Me(){ne(()=>Wt.length?Wt.map(je=>Ot(je)?Te:new De(qt(je),je)):te)}const Ke=Ne({callback:Me});return(0,ie.LI)(()=>{Ke==null||Ke.disconnect(),Me(),Wt.forEach(je=>Ke==null?void 0:Ke.observe(je))},[Wt]),en}function Jn(Wt){if(!Wt)return null;if(Wt.children.length>1)return Wt;const qt=Wt.children[0];return(0,ie.Re)(qt)?qt:Wt}function Fn(Wt){let{measure:qt}=Wt;const[Se,Te]=(0,yt.useState)(null),en=(0,yt.useCallback)(hn=>{for(const{target:An}of hn)if((0,ie.Re)(An)){Te(Ct=>{const Qt=qt(An);return Ct?Za(Fo({},Ct),{width:Qt.width,height:Qt.height}):Qt});break}},[qt]),ne=Ne({callback:en}),Me=(0,yt.useCallback)(hn=>{const An=Jn(hn);ne==null||ne.disconnect(),An&&(ne==null||ne.observe(An)),Te(An?qt(An):null)},[qt,ne]),[Ke,je]=(0,ie.wm)(Me);return(0,yt.useMemo)(()=>({nodeRef:Ke,rect:Se,setRef:je}),[Se,Ke,je])}const Be=[{sensor:gn,options:{}},{sensor:cn,options:{}}],zn={current:{}},Ai={draggable:{measure:_n},droppable:{measure:_n,strategy:Gn.WhileDragging,frequency:fi.Optimized},dragOverlay:{measure:fn}};class Ii extends Map{get(qt){var Se;return qt!=null&&(Se=super.get(qt))!=null?Se:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(qt=>{let{disabled:Se}=qt;return!Se})}getNodeFor(qt){var Se,Te;return(Se=(Te=this.get(qt))==null?void 0:Te.node.current)!=null?Se:void 0}}const Ki={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Ii,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:nt},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Ai,measureDroppableContainers:nt,windowRect:null,measuringScheduled:!1},oi={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:nt,draggableNodes:new Map,over:null,measureDroppableContainers:nt},gi=(0,yt.createContext)(oi),Si=(0,yt.createContext)(Ki);function Ui(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Ii}}}function ji(Wt,qt){switch(qt.type){case Bt.DragStart:return Za(Fo({},Wt),{draggable:Za(Fo({},Wt.draggable),{initialCoordinates:qt.initialCoordinates,active:qt.active})});case Bt.DragMove:return Wt.draggable.active==null?Wt:Za(Fo({},Wt),{draggable:Za(Fo({},Wt.draggable),{translate:{x:qt.coordinates.x-Wt.draggable.initialCoordinates.x,y:qt.coordinates.y-Wt.draggable.initialCoordinates.y}})});case Bt.DragEnd:case Bt.DragCancel:return Za(Fo({},Wt),{draggable:Za(Fo({},Wt.draggable),{active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}})});case Bt.RegisterDroppable:{const{element:Se}=qt,{id:Te}=Se,en=new Ii(Wt.droppable.containers);return en.set(Te,Se),Za(Fo({},Wt),{droppable:Za(Fo({},Wt.droppable),{containers:en})})}case Bt.SetDroppableDisabled:{const{id:Se,key:Te,disabled:en}=qt,ne=Wt.droppable.containers.get(Se);if(!ne||Te!==ne.key)return Wt;const Me=new Ii(Wt.droppable.containers);return Me.set(Se,Za(Fo({},ne),{disabled:en})),Za(Fo({},Wt),{droppable:Za(Fo({},Wt.droppable),{containers:Me})})}case Bt.UnregisterDroppable:{const{id:Se,key:Te}=qt,en=Wt.droppable.containers.get(Se);if(!en||Te!==en.key)return Wt;const ne=new Ii(Wt.droppable.containers);return ne.delete(Se),Za(Fo({},Wt),{droppable:Za(Fo({},Wt.droppable),{containers:ne})})}default:return Wt}}function Mn(Wt){let{disabled:qt}=Wt;const{active:Se,activatorEvent:Te,draggableNodes:en}=(0,yt.useContext)(gi),ne=(0,ie.D9)(Te),Me=(0,ie.D9)(Se==null?void 0:Se.id);return(0,yt.useEffect)(()=>{if(!qt&&!Te&&ne&&Me!=null){if(!(0,ie.vd)(ne)||document.activeElement===ne.target)return;const Ke=en.get(Me);if(!Ke)return;const{activatorNode:je,node:hn}=Ke;if(!je.current&&!hn.current)return;requestAnimationFrame(()=>{for(const An of[je.current,hn.current]){if(!An)continue;const Ct=(0,ie.so)(An);if(Ct){Ct.focus();break}}})}},[Te,qt,en,Me,ne]),null}function Ei(Wt,qt){let en=qt,{transform:Se}=en,Te=nv(en,["transform"]);return Wt!=null&&Wt.length?Wt.reduce((ne,Me)=>Me(Fo({transform:ne},Te)),Se):Se}function xr(Wt){return(0,yt.useMemo)(()=>({draggable:Fo(Fo({},Ai.draggable),Wt==null?void 0:Wt.draggable),droppable:Fo(Fo({},Ai.droppable),Wt==null?void 0:Wt.droppable),dragOverlay:Fo(Fo({},Ai.dragOverlay),Wt==null?void 0:Wt.dragOverlay)}),[Wt==null?void 0:Wt.draggable,Wt==null?void 0:Wt.droppable,Wt==null?void 0:Wt.dragOverlay])}function Tr(Wt){let{activeNode:qt,measure:Se,initialRect:Te,config:en=!0}=Wt;const ne=(0,yt.useRef)(!1),{x:Me,y:Ke}=typeof en=="boolean"?{x:en,y:en}:en;(0,ie.LI)(()=>{if(!Me&&!Ke||!qt){ne.current=!1;return}if(ne.current||!Te)return;const hn=qt==null?void 0:qt.node.current;if(!hn||hn.isConnected===!1)return;const An=Se(hn),Ct=wn(An,Te);if(Me||(Ct.x=0),Ke||(Ct.y=0),ne.current=!0,Math.abs(Ct.x)>0||Math.abs(Ct.y)>0){const Qt=di(hn);Qt&&Qt.scrollBy({top:Ct.y,left:Ct.x})}},[qt,Me,Ke,Te,Se])}const _r=(0,yt.createContext)(Za(Fo({},lt),{scaleX:1,scaleY:1}));var We;(function(Wt){Wt[Wt.Uninitialized=0]="Uninitialized",Wt[Wt.Initializing=1]="Initializing",Wt[Wt.Initialized=2]="Initialized"})(We||(We={}));const ar=(0,yt.memo)(function(qt){var Se,Te,en,ne;let Qo=qt,{id:Me,accessibility:Ke,autoScroll:je=!0,children:hn,sensors:An=Be,collisionDetection:Ct=me,measuring:Qt,modifiers:zt}=Qo,de=nv(Qo,["id","accessibility","autoScroll","children","sensors","collisionDetection","measuring","modifiers"]);const ue=(0,yt.useReducer)(ji,void 0,Ui),[Ge,Ze]=ue,[an,kn]=Lt(),[Un,yn]=(0,yt.useState)(We.Uninitialized),si=Un===We.Initialized,{draggable:{active:vi,nodes:le,translate:ei},droppable:{containers:ni}}=Ge,Wn=vi!=null?le.get(vi):null,Vn=(0,yt.useRef)({initial:null,translated:null}),Ni=(0,yt.useMemo)(()=>{var ro;return vi!=null?{id:vi,data:(ro=Wn==null?void 0:Wn.data)!=null?ro:zn,rect:Vn}:null},[vi,Wn]),Di=(0,yt.useRef)(null),[Mi,Ti]=(0,yt.useState)(null),[Ri,or]=(0,yt.useState)(null),Ir=(0,ie.Ey)(de,Object.values(de)),jr=(0,ie.Ld)("DndDescribedBy",Me),Hr=(0,yt.useMemo)(()=>ni.getEnabled(),[ni]),Bi=xr(Qt),{droppableRects:Ar,measureDroppableContainers:wr,measuringScheduled:Nr}=Kn(Hr,{dragging:si,dependencies:[ei.x,ei.y],config:Bi.droppable}),mr=Et(le,vi),Rr=(0,yt.useMemo)(()=>Ri?(0,ie.DC)(Ri):null,[Ri]),ri=vo(),Vi=Yn(mr,Bi.draggable.measure);Tr({activeNode:vi!=null?le.get(vi):null,config:ri.layoutShiftCompensation,initialRect:Vi,measure:Bi.draggable.measure});const Ji=sn(mr,Bi.draggable.measure,Vi),lr=sn(mr?mr.parentElement:null),qi=(0,yt.useRef)({activatorEvent:null,active:null,activeNode:mr,collisionRect:null,collisions:null,droppableRects:Ar,draggableNodes:le,draggingNode:null,draggingNodeRect:null,droppableContainers:ni,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),nr=ni.getNodeFor((Se=qi.current.over)==null?void 0:Se.id),ki=Fn({measure:Bi.dragOverlay.measure}),Br=(Te=ki.nodeRef.current)!=null?Te:mr,Kr=si?(en=ki.rect)!=null?en:Ji:null,Qr=!!(ki.nodeRef.current&&ki.rect),Pr=xi(Qr?null:Ji),to=qn(Br?(0,ie.Jj)(Br):null),Ur=Fi(si?nr!=null?nr:mr:null),Xr=be(Ur),fo=Ei(zt,{transform:{x:ei.x-Pr.x,y:ei.y-Pr.y,scaleX:1,scaleY:1},activatorEvent:Ri,active:Ni,activeNodeRect:Ji,containerNodeRect:lr,draggingNodeRect:Kr,over:qi.current.over,overlayNodeRect:ki.rect,scrollableAncestors:Ur,scrollableAncestorRects:Xr,windowRect:to}),mo=Rr?(0,ie.IH)(Rr,ei):null,Bo=Xe(Ur),ao=Dn(Bo),ia=Dn(Bo,[Ji]),po=(0,ie.IH)(fo,ao),Jo=Kr?Oe(Kr,fo):null,Po=Ni&&Jo?Ct({active:Ni,collisionRect:Jo,droppableRects:Ar,droppableContainers:Hr,pointerCoordinates:mo}):null,Vo=Zt(Po,"id"),[Go,Yo]=(0,yt.useState)(null),Ro=Qr?fo:(0,ie.IH)(fo,ia),Lo=He(Ro,(ne=Go==null?void 0:Go.rect)!=null?ne:null,Ji),oa=(0,yt.useRef)(null),wa=(0,yt.useCallback)((ro,ea)=>{let{sensor:vr,options:ur}=ea;if(Di.current==null)return;const Lr=le.get(Di.current);if(!Lr)return;const pr=ro.nativeEvent,wi=new vr({active:Di.current,activeNode:Lr,event:pr,options:ur,context:qi,onAbort(pe){if(!le.get(pe))return;const{onDragAbort:ha}=Ir.current,ga={id:pe};ha==null||ha(ga),an({type:"onDragAbort",event:ga})},onPending(pe,Rn,ha,ga){if(!le.get(pe))return;const{onDragPending:sa}=Ir.current,ya={id:pe,constraint:Rn,initialCoordinates:ha,offset:ga};sa==null||sa(ya),an({type:"onDragPending",event:ya})},onStart(pe){const Rn=Di.current;if(Rn==null)return;const ha=le.get(Rn);if(!ha)return;const{onDragStart:ga}=Ir.current,aa={activatorEvent:pr,active:{id:Rn,data:ha.data,rect:Vn}};(0,ee.unstable_batchedUpdates)(()=>{ga==null||ga(aa),yn(We.Initializing),Ze({type:Bt.DragStart,initialCoordinates:pe,active:Rn}),an({type:"onDragStart",event:aa}),Ti(oa.current),or(pr)})},onMove(pe){Ze({type:Bt.DragMove,coordinates:pe})},onEnd:Do(Bt.DragEnd),onCancel:Do(Bt.DragCancel)});oa.current=wi;function Do(pe){return function(){return Cx(this,null,function*(){const{active:ha,collisions:ga,over:aa,scrollAdjustedTranslate:sa}=qi.current;let ya=null;if(ha&&sa){const{cancelDrop:Pa}=Ir.current;ya={activatorEvent:pr,active:ha,collisions:ga,delta:sa,over:aa},pe===Bt.DragEnd&&typeof Pa=="function"&&(yield Promise.resolve(Pa(ya)))&&(pe=Bt.DragCancel)}Di.current=null,(0,ee.unstable_batchedUpdates)(()=>{Ze({type:pe}),yn(We.Uninitialized),Yo(null),Ti(null),or(null),oa.current=null;const Pa=pe===Bt.DragEnd?"onDragEnd":"onDragCancel";if(ya){const hs=Ir.current[Pa];hs==null||hs(ya),an({type:Pa,event:ya})}})})}}},[le]),zo=(0,yt.useCallback)((ro,ea)=>(vr,ur)=>{const Lr=vr.nativeEvent,pr=le.get(ur);if(Di.current!==null||!pr||Lr.dndKit||Lr.defaultPrevented)return;const wi={active:pr};ro(vr,ea.options,wi)===!0&&(Lr.dndKit={capturedBy:ea.sensor},Di.current=ur,wa(vr,ea))},[le,wa]),Oa=Bn(An,zo);mn(An),(0,ie.LI)(()=>{Ji&&Un===We.Initializing&&yn(We.Initialized)},[Ji,Un]),(0,yt.useEffect)(()=>{const{onDragMove:ro}=Ir.current,{active:ea,activatorEvent:vr,collisions:ur,over:Lr}=qi.current;if(!ea||!vr)return;const pr={active:ea,activatorEvent:vr,collisions:ur,delta:{x:po.x,y:po.y},over:Lr};(0,ee.unstable_batchedUpdates)(()=>{ro==null||ro(pr),an({type:"onDragMove",event:pr})})},[po.x,po.y]),(0,yt.useEffect)(()=>{const{active:ro,activatorEvent:ea,collisions:vr,droppableContainers:ur,scrollAdjustedTranslate:Lr}=qi.current;if(!ro||Di.current==null||!ea||!Lr)return;const{onDragOver:pr}=Ir.current,wi=ur.get(Vo),Do=wi&&wi.rect.current?{id:wi.id,rect:wi.rect.current,data:wi.data,disabled:wi.disabled}:null,pe={active:ro,activatorEvent:ea,collisions:vr,delta:{x:Lr.x,y:Lr.y},over:Do};(0,ee.unstable_batchedUpdates)(()=>{Yo(Do),pr==null||pr(pe),an({type:"onDragOver",event:pe})})},[Vo]),(0,ie.LI)(()=>{qi.current={activatorEvent:Ri,active:Ni,activeNode:mr,collisionRect:Jo,collisions:Po,droppableRects:Ar,draggableNodes:le,draggingNode:Br,draggingNodeRect:Kr,droppableContainers:ni,over:Go,scrollableAncestors:Ur,scrollAdjustedTranslate:po},Vn.current={initial:Kr,translated:Jo}},[Ni,mr,Po,Jo,le,Br,Kr,Ar,ni,Go,Ur,po]),hr(Za(Fo({},ri),{delta:ei,draggingRect:Jo,pointerCoordinates:mo,scrollableAncestors:Ur,scrollableAncestorRects:Xr}));const bo=(0,yt.useMemo)(()=>({active:Ni,activeNode:mr,activeNodeRect:Ji,activatorEvent:Ri,collisions:Po,containerNodeRect:lr,dragOverlay:ki,draggableNodes:le,droppableContainers:ni,droppableRects:Ar,over:Go,measureDroppableContainers:wr,scrollableAncestors:Ur,scrollableAncestorRects:Xr,measuringConfiguration:Bi,measuringScheduled:Nr,windowRect:to}),[Ni,mr,Ji,Ri,Po,lr,ki,le,ni,Ar,Go,wr,Ur,Xr,Bi,Nr,to]),yo=(0,yt.useMemo)(()=>({activatorEvent:Ri,activators:Oa,active:Ni,activeNodeRect:Ji,ariaDescribedById:{draggable:jr},dispatch:Ze,draggableNodes:le,over:Go,measureDroppableContainers:wr}),[Ri,Oa,Ni,Ji,Ze,jr,le,Go,wr]);return yt.createElement(Ve.Provider,{value:kn},yt.createElement(gi.Provider,{value:yo},yt.createElement(Si.Provider,{value:bo},yt.createElement(_r.Provider,{value:Lo},hn)),yt.createElement(Mn,{disabled:(Ke==null?void 0:Ke.restoreFocus)===!1})),yt.createElement(Je,Za(Fo({},Ke),{hiddenTextDescribedById:jr})));function vo(){const ro=(Mi==null?void 0:Mi.autoScrollEnabled)===!1,ea=typeof je=="object"?je.enabled===!1:je===!1,vr=si&&!ro&&!ea;return typeof je=="object"?Za(Fo({},je),{enabled:vr}):{enabled:vr}}}),br=(0,yt.createContext)(null),Gi="button",Gr="Draggable";function Or(Wt){let{id:qt,data:Se,disabled:Te=!1,attributes:en}=Wt;const ne=(0,ie.Ld)(Gr),{activators:Me,activatorEvent:Ke,active:je,activeNodeRect:hn,ariaDescribedById:An,draggableNodes:Ct,over:Qt}=(0,yt.useContext)(gi),{role:zt=Gi,roleDescription:de="draggable",tabIndex:ue=0}=en!=null?en:{},Ge=(je==null?void 0:je.id)===qt,Ze=(0,yt.useContext)(Ge?_r:br),[an,kn]=(0,ie.wm)(),[Un,yn]=(0,ie.wm)(),si=Hi(Me,qt),vi=(0,ie.Ey)(Se);(0,ie.LI)(()=>(Ct.set(qt,{id:qt,key:ne,node:an,activatorNode:Un,data:vi}),()=>{const ei=Ct.get(qt);ei&&ei.key===ne&&Ct.delete(qt)}),[Ct,qt]);const le=(0,yt.useMemo)(()=>({role:zt,tabIndex:ue,"aria-disabled":Te,"aria-pressed":Ge&&zt===Gi?!0:void 0,"aria-roledescription":de,"aria-describedby":An.draggable}),[Te,zt,ue,Ge,de,An.draggable]);return{active:je,activatorEvent:Ke,activeNodeRect:hn,attributes:le,isDragging:Ge,listeners:Te?void 0:si,node:an,over:Qt,setNodeRef:kn,setActivatorNodeRef:yn,transform:Ze}}function Wr(){return(0,yt.useContext)(Si)}const Zi="Droppable",ir={timeout:25};function Qi(Wt){let{data:qt,disabled:Se=!1,id:Te,resizeObserverConfig:en}=Wt;const ne=(0,ie.Ld)(Zi),{active:Me,dispatch:Ke,over:je,measureDroppableContainers:hn}=(0,yt.useContext)(gi),An=(0,yt.useRef)({disabled:Se}),Ct=(0,yt.useRef)(!1),Qt=(0,yt.useRef)(null),zt=(0,yt.useRef)(null),{disabled:de,updateMeasurementsFor:ue,timeout:Ge}=Fo(Fo({},ir),en),Ze=(0,ie.Ey)(ue!=null?ue:Te),an=(0,yt.useCallback)(()=>{if(!Ct.current){Ct.current=!0;return}zt.current!=null&&clearTimeout(zt.current),zt.current=setTimeout(()=>{hn(Array.isArray(Ze.current)?Ze.current:[Ze.current]),zt.current=null},Ge)},[Ge]),kn=Ne({callback:an,disabled:de||!Me}),Un=(0,yt.useCallback)((le,ei)=>{kn&&(ei&&(kn.unobserve(ei),Ct.current=!1),le&&kn.observe(le))},[kn]),[yn,si]=(0,ie.wm)(Un),vi=(0,ie.Ey)(qt);return(0,yt.useEffect)(()=>{!kn||!yn.current||(kn.disconnect(),Ct.current=!1,kn.observe(yn.current))},[yn,kn]),(0,yt.useEffect)(()=>(Ke({type:Bt.RegisterDroppable,element:{id:Te,key:ne,disabled:Se,node:yn,rect:Qt,data:vi}}),()=>Ke({type:Bt.UnregisterDroppable,key:ne,id:Te})),[Te]),(0,yt.useEffect)(()=>{Se!==An.current.disabled&&(Ke({type:Bt.SetDroppableDisabled,id:Te,key:ne,disabled:Se}),An.current.disabled=Se)},[Te,ne,Se,Ke]),{active:Me,rect:Qt,isOver:(je==null?void 0:je.id)===Te,node:yn,over:je,setNodeRef:si}}function pn(Wt){let{animation:qt,children:Se}=Wt;const[Te,en]=useState(null),[ne,Me]=useState(null),Ke=usePrevious(Se);return!Se&&!Te&&Ke&&en(Ke),useIsomorphicLayoutEffect(()=>{if(!ne)return;const je=Te==null?void 0:Te.key,hn=Te==null?void 0:Te.props.id;if(je==null||hn==null){en(null);return}Promise.resolve(qt(hn,ne)).then(()=>{en(null)})},[qt,Te,ne]),React.createElement(React.Fragment,null,Se,Te?cloneElement(Te,{ref:Me}):null)}const dr={x:0,y:0,scaleX:1,scaleY:1};function xn(Wt){let{children:qt}=Wt;return React.createElement(gi.Provider,{value:oi},React.createElement(_r.Provider,{value:dr},qt))}const bi={position:"fixed",touchAction:"none"},Sr=Wt=>isKeyboardEvent(Wt)?"transform 250ms ease":void 0,Er=null,Mr={duration:250,easing:"ease",keyframes:Wt=>{let{transform:{initial:qt,final:Se}}=Wt;return[{transform:ie.ux.Transform.toString(qt)},{transform:ie.ux.Transform.toString(Se)}]},sideEffects:(Wt=>qt=>{let{active:Se,dragOverlay:Te}=qt;const en={},{styles:ne,className:Me}=Wt;if(ne!=null&&ne.active)for(const[Ke,je]of Object.entries(ne.active))je!==void 0&&(en[Ke]=Se.node.style.getPropertyValue(Ke),Se.node.style.setProperty(Ke,je));if(ne!=null&&ne.dragOverlay)for(const[Ke,je]of Object.entries(ne.dragOverlay))je!==void 0&&Te.node.style.setProperty(Ke,je);return Me!=null&&Me.active&&Se.node.classList.add(Me.active),Me!=null&&Me.dragOverlay&&Te.node.classList.add(Me.dragOverlay),function(){for(const[je,hn]of Object.entries(en))Se.node.style.setProperty(je,hn);Me!=null&&Me.active&&Se.node.classList.remove(Me.active)}})({styles:{active:{opacity:"0"}}})};function uo(Wt){let{config:qt,draggableNodes:Se,droppableContainers:Te,measuringConfiguration:en}=Wt;return useEvent((ne,Me)=>{if(qt===null)return;const Ke=Se.get(ne);if(!Ke)return;const je=Ke.node.current;if(!je)return;const hn=Jn(Me);if(!hn)return;const{transform:An}=getWindow(Me).getComputedStyle(Me),Ct=Sn(An);if(!Ct)return;const Qt=typeof qt=="function"?qt:tn(qt);return dn(je,en.draggable.measure),Qt({active:{id:ne,data:Ke.data,node:je,rect:en.draggable.measure(je)},draggableNodes:Se,dragOverlay:{node:Me,rect:en.dragOverlay.measure(hn)},droppableContainers:Te,measuringConfiguration:en,transform:Ct})})}function tn(Wt){const{duration:qt,easing:Se,sideEffects:Te,keyframes:en}=Fo(Fo({},Mr),Wt);return ne=>{let an=ne,{active:Me,dragOverlay:Ke,transform:je}=an,hn=nv(an,["active","dragOverlay","transform"]);if(!qt)return;const An={x:Ke.rect.left-Me.rect.left,y:Ke.rect.top-Me.rect.top},Ct={scaleX:je.scaleX!==1?Me.rect.width*je.scaleX/Ke.rect.width:1,scaleY:je.scaleY!==1?Me.rect.height*je.scaleY/Ke.rect.height:1},Qt=Fo({x:je.x-An.x,y:je.y-An.y},Ct),zt=en(Za(Fo({},hn),{active:Me,dragOverlay:Ke,transform:{initial:je,final:Qt}})),[de]=zt,ue=zt[zt.length-1];if(JSON.stringify(de)===JSON.stringify(ue))return;const Ge=Te==null?void 0:Te(Fo({active:Me,dragOverlay:Ke},hn)),Ze=Ke.node.animate(zt,{duration:qt,easing:Se,fill:"forwards"});return new Promise(kn=>{Ze.onfinish=()=>{Ge==null||Ge(),kn()}})}}let Hn=0;function _e(Wt){return useMemo(()=>{if(Wt!=null)return Hn++,Hn},[Wt])}const Tt=null},18257:function(Qn,pi,Dt){"use strict";Dt.d(pi,{DL:function(){return ce}});var yt=Dt(35241);function ee(Lt){return ze=>{let{transform:Kt}=ze;return Za(Fo({},Kt),{x:Math.ceil(Kt.x/Lt)*Lt,y:Math.ceil(Kt.y/Lt)*Lt})}}const ie=Lt=>{let{transform:ze}=Lt;return Za(Fo({},ze),{y:0})};function we(Lt,ze,Kt){const Je=Fo({},Lt);return ze.top+Lt.y<=Kt.top?Je.y=Kt.top-ze.top:ze.bottom+Lt.y>=Kt.top+Kt.height&&(Je.y=Kt.top+Kt.height-ze.bottom),ze.left+Lt.x<=Kt.left?Je.x=Kt.left-ze.left:ze.right+Lt.x>=Kt.left+Kt.width&&(Je.x=Kt.left+Kt.width-ze.right),Je}const Ee=Lt=>{let{containerNodeRect:ze,draggingNodeRect:Kt,transform:Je}=Lt;return!Kt||!ze?Je:we(Je,Kt,ze)},jt=Lt=>{let{draggingNodeRect:ze,transform:Kt,scrollableAncestorRects:Je}=Lt;const Bt=Je[0];return!ze||!Bt?Kt:we(Kt,ze,Bt)},ce=Lt=>{let{transform:ze}=Lt;return Za(Fo({},ze),{x:0})},Ve=Lt=>{let{transform:ze,draggingNodeRect:Kt,windowRect:Je}=Lt;return!Kt||!Je?ze:we(ze,Kt,Je)},xe=Lt=>{let{activatorEvent:ze,draggingNodeRect:Kt,transform:Je}=Lt;if(Kt&&ze){const Bt=getEventCoordinates(ze);if(!Bt)return Je;const nt=Bt.x-Kt.left,et=Bt.y-Kt.top;return Za(Fo({},Je),{x:Je.x+nt-Kt.width/2,y:Je.y+et-Kt.height/2})}return Je}},19719:function(Qn,pi,Dt){"use strict";Dt.d(pi,{Fo:function(){return mt},Rp:function(){return we},nB:function(){return ge},qw:function(){return et}});var yt=Dt(59301),ee=Dt(87954),ie=Dt(35241);function we(Oe,Sn,se){const Yt=Oe.slice();return Yt.splice(se<0?Yt.length+se:se,0,Yt.splice(Sn,1)[0]),Yt}function Ee(Oe,Sn,se){const Yt=Oe.slice();return Yt[Sn]=Oe[se],Yt[se]=Oe[Sn],Yt}function jt(Oe,Sn){return Oe.reduce((se,Yt,fn)=>{const _n=Sn.get(Yt);return _n&&(se[fn]=_n),se},Array(Oe.length))}function ce(Oe){return Oe!==null&&Oe>=0}function Ve(Oe,Sn){if(Oe===Sn)return!0;if(Oe.length!==Sn.length)return!1;for(let se=0;se<Oe.length;se++)if(Oe[se]!==Sn[se])return!1;return!0}function xe(Oe){return typeof Oe=="boolean"?{draggable:Oe,droppable:Oe}:Oe}const Lt={scaleX:1,scaleY:1},ze=Oe=>{var Sn;let{rects:se,activeNodeRect:Yt,activeIndex:fn,overIndex:_n,index:In}=Oe;const on=(Sn=se[fn])!=null?Sn:Yt;if(!on)return null;const jn=Kt(se,In,fn);if(In===fn){const Pn=se[_n];return Pn?Fo({x:fn<_n?Pn.left+Pn.width-(on.left+on.width):Pn.left-on.left,y:0},Lt):null}return In>fn&&In<=_n?Fo({x:-on.width-jn,y:0},Lt):In<fn&&In>=_n?Fo({x:on.width+jn,y:0},Lt):Fo({x:0,y:0},Lt)};function Kt(Oe,Sn,se){const Yt=Oe[Sn],fn=Oe[Sn-1],_n=Oe[Sn+1];return!Yt||!fn&&!_n?0:se<Sn?fn?Yt.left-(fn.left+fn.width):_n.left-(Yt.left+Yt.width):_n?_n.left-(Yt.left+Yt.width):Yt.left-(fn.left+fn.width)}const Je=Oe=>{let{rects:Sn,activeIndex:se,overIndex:Yt,index:fn}=Oe;const _n=we(Sn,Yt,se),In=Sn[fn],on=_n[fn];return!on||!In?null:{x:on.left-In.left,y:on.top-In.top,scaleX:on.width/In.width,scaleY:on.height/In.height}},Bt=Oe=>{let{activeIndex:Sn,index:se,rects:Yt,overIndex:fn}=Oe,_n,In;return se===Sn&&(_n=Yt[se],In=Yt[fn]),se===fn&&(_n=Yt[se],In=Yt[Sn]),!In||!_n?null:{x:In.left-_n.left,y:In.top-_n.top,scaleX:In.width/_n.width,scaleY:In.height/_n.height}},nt={scaleX:1,scaleY:1},et=Oe=>{var Sn;let{activeIndex:se,activeNodeRect:Yt,index:fn,rects:_n,overIndex:In}=Oe;const on=(Sn=_n[se])!=null?Sn:Yt;if(!on)return null;if(fn===se){const Pn=_n[In];return Pn?Fo({x:0,y:se<In?Pn.top+Pn.height-(on.top+on.height):Pn.top-on.top},nt):null}const jn=dt(_n,fn,se);return fn>se&&fn<=In?Fo({x:0,y:-on.height-jn},nt):fn<se&&fn>=In?Fo({x:0,y:on.height+jn},nt):Fo({x:0,y:0},nt)};function dt(Oe,Sn,se){const Yt=Oe[Sn],fn=Oe[Sn-1],_n=Oe[Sn+1];return Yt?se<Sn?fn?Yt.top-(fn.top+fn.height):_n?_n.top-(Yt.top+Yt.height):0:_n?_n.top-(Yt.top+Yt.height):fn?Yt.top-(fn.top+fn.height):0:0}const lt="Sortable",gt=yt.createContext({activeIndex:-1,containerId:lt,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Je,disabled:{draggable:!1,droppable:!1}});function mt(Oe){let{children:Sn,id:se,items:Yt,strategy:fn=Je,disabled:_n=!1}=Oe;const{active:In,dragOverlay:on,droppableRects:jn,over:Pn,measureDroppableContainers:di}=(0,ee.Cj)(),Re=(0,ie.Ld)(lt,se),ve=on.rect!==null,Ye=(0,yt.useMemo)(()=>Yt.map($t=>typeof $t=="object"&&"id"in $t?$t.id:$t),[Yt]),mi=In!=null,Cn=In?Ye.indexOf(In.id):-1,Ot=Pn?Ye.indexOf(Pn.id):-1,At=(0,yt.useRef)(Ye),wt=!Ve(Ye,At.current),Nt=Ot!==-1&&Cn===-1||wt,Vt=xe(_n);(0,ie.LI)(()=>{wt&&mi&&di(Ye)},[wt,Ye,mi,di]),(0,yt.useEffect)(()=>{At.current=Ye},[Ye]);const kt=(0,yt.useMemo)(()=>({activeIndex:Cn,containerId:Re,disabled:Vt,disableTransforms:Nt,items:Ye,overIndex:Ot,useDragOverlay:ve,sortedRects:jt(Ye,jn),strategy:fn}),[Cn,Re,Vt.draggable,Vt.droppable,Nt,Ye,Ot,jn,ve,fn]);return yt.createElement(gt.Provider,{value:kt},Sn)}const St=Oe=>{let{id:Sn,items:se,activeIndex:Yt,overIndex:fn}=Oe;return we(se,Yt,fn).indexOf(Sn)},Mt=Oe=>{let{containerId:Sn,isSorting:se,wasDragging:Yt,index:fn,items:_n,newIndex:In,previousItems:on,previousContainerId:jn,transition:Pn}=Oe;return!Pn||!Yt||on!==_n&&fn===In?!1:se?!0:In!==fn&&Sn===jn},It={duration:200,easing:"ease"},Zt="transform",oe=ie.ux.Transition.toString({property:Zt,duration:0,easing:"linear"}),Gt={roleDescription:"sortable"};function _t(Oe){let{disabled:Sn,index:se,node:Yt,rect:fn}=Oe;const[_n,In]=(0,yt.useState)(null),on=(0,yt.useRef)(se);return(0,ie.LI)(()=>{if(!Sn&&se!==on.current&&Yt.current){const jn=fn.current;if(jn){const Pn=(0,ee.VK)(Yt.current,{ignoreTransform:!0}),di={x:jn.left-Pn.left,y:jn.top-Pn.top,scaleX:jn.width/Pn.width,scaleY:jn.height/Pn.height};(di.x||di.y)&&In(di)}}se!==on.current&&(on.current=se)},[Sn,se,Yt,fn]),(0,yt.useEffect)(()=>{_n&&In(null)},[_n]),_n}function ge(Oe){let{animateLayoutChanges:Sn=Mt,attributes:se,disabled:Yt,data:fn,getNewIndex:_n=St,id:In,strategy:on,resizeObserverConfig:jn,transition:Pn=It}=Oe;const{items:di,containerId:Re,activeIndex:ve,disabled:Ye,disableTransforms:mi,sortedRects:Cn,overIndex:Ot,useDragOverlay:At,strategy:wt}=(0,yt.useContext)(gt),Nt=me(Yt,Ye),Vt=di.indexOf(In),kt=(0,yt.useMemo)(()=>Fo({sortable:{containerId:Re,index:Vt,items:di}},fn),[Re,fn,Vt,di]),$t=(0,yt.useMemo)(()=>di.slice(di.indexOf(In)),[di,In]),{rect:nn,node:dn,isOver:En,setNodeRef:De}=(0,ee.Zj)({id:In,data:kt,disabled:Nt.droppable,resizeObserverConfig:Fo({updateMeasurementsFor:$t},jn)}),{active:Ce,activatorEvent:Qe,activeNodeRect:un,attributes:Nn,setNodeRef:ai,listeners:Tn,isDragging:bn,over:Ie,setActivatorNodeRef:Ue,transform:cn}=(0,ee.O1)({id:In,data:kt,attributes:Fo(Fo({},Gt),se),disabled:Nt.draggable}),Ln=(0,ie.HB)(De,ai),Xn=!!Ce,li=Xn&&!mi&&ce(ve)&&ce(Ot),Ci=!At&&bn,gn=Ci&&li?cn:null,ti=on!=null?on:wt,_i=li?gn!=null?gn:ti({rects:Cn,activeNodeRect:un,activeIndex:ve,overIndex:Ot,index:Vt}):null,fr=ce(ve)&&ce(Ot)?_n({id:In,items:di,activeIndex:ve,overIndex:Ot}):Vt,tr=Ce==null?void 0:Ce.id,er=(0,yt.useRef)({activeId:tr,items:di,newIndex:fr,containerId:Re}),yr=di!==er.current.items,sr=Sn({active:Ce,containerId:Re,isDragging:bn,isSorting:Xn,id:In,index:Vt,items:di,newIndex:er.current.newIndex,previousItems:er.current.items,previousContainerId:er.current.containerId,transition:Pn,wasDragging:er.current.activeId!=null}),hr=_t({disabled:!sr,index:Vt,node:dn,rect:nn});return(0,yt.useEffect)(()=>{Xn&&er.current.newIndex!==fr&&(er.current.newIndex=fr),Re!==er.current.containerId&&(er.current.containerId=Re),di!==er.current.items&&(er.current.items=di)},[Xn,fr,Re,di]),(0,yt.useEffect)(()=>{if(tr===er.current.activeId)return;if(tr&&!er.current.activeId){er.current.activeId=tr;return}const gr=setTimeout(()=>{er.current.activeId=tr},50);return()=>clearTimeout(gr)},[tr]),{active:Ce,activeIndex:ve,attributes:Nn,data:kt,rect:nn,index:Vt,newIndex:fr,items:di,isOver:En,isSorting:Xn,isDragging:bn,listeners:Tn,node:dn,overIndex:Ot,over:Ie,setNodeRef:Ln,setActivatorNodeRef:Ue,setDroppableNodeRef:De,setDraggableNodeRef:ai,transform:hr!=null?hr:_i,transition:zi()};function zi(){if(hr||yr&&er.current.newIndex===Vt)return oe;if(!(Ci&&!(0,ie.vd)(Qe)||!Pn)&&(Xn||sr))return ie.ux.Transition.toString(Za(Fo({},Pn),{property:Zt}))}}function me(Oe,Sn){var se,Yt;return typeof Oe=="boolean"?{draggable:Oe,droppable:!1}:{draggable:(se=Oe==null?void 0:Oe.draggable)!=null?se:Sn.draggable,droppable:(Yt=Oe==null?void 0:Oe.droppable)!=null?Yt:Sn.droppable}}function Pe(Oe){if(!Oe)return!1;const Sn=Oe.data.current;return!!(Sn&&"sortable"in Sn&&typeof Sn.sortable=="object"&&"containerId"in Sn.sortable&&"items"in Sn.sortable&&"index"in Sn.sortable)}const ye=[ee.g4.Down,ee.g4.Right,ee.g4.Up,ee.g4.Left],He=(Oe,Sn)=>{let{context:{active:se,collisionRect:Yt,droppableRects:fn,droppableContainers:_n,over:In,scrollableAncestors:on}}=Sn;if(ye.includes(Oe.code)){if(Oe.preventDefault(),!se||!Yt)return;const jn=[];_n.getEnabled().forEach(Re=>{if(!Re||Re!=null&&Re.disabled)return;const ve=fn.get(Re.id);if(ve)switch(Oe.code){case KeyboardCode.Down:Yt.top<ve.top&&jn.push(Re);break;case KeyboardCode.Up:Yt.top>ve.top&&jn.push(Re);break;case KeyboardCode.Left:Yt.left>ve.left&&jn.push(Re);break;case KeyboardCode.Right:Yt.left<ve.left&&jn.push(Re);break}});const Pn=closestCorners({active:se,collisionRect:Yt,droppableRects:fn,droppableContainers:jn,pointerCoordinates:null});let di=getFirstCollision(Pn,"id");if(di===(In==null?void 0:In.id)&&Pn.length>1&&(di=Pn[1].id),di!=null){const Re=_n.get(se.id),ve=_n.get(di),Ye=ve?fn.get(ve.id):null,mi=ve==null?void 0:ve.node.current;if(mi&&Ye&&Re&&ve){const Ot=getScrollableAncestors(mi).some(($t,nn)=>on[nn]!==$t),At=wn(Re,ve),wt=ln(Re,ve),Nt=Ot||!At?{x:0,y:0}:{x:wt?Yt.width-Ye.width:0,y:wt?Yt.height-Ye.height:0},Vt={x:Ye.left,y:Ye.top};return Nt.x&&Nt.y?Vt:subtract(Vt,Nt)}}}};function wn(Oe,Sn){return!Pe(Oe)||!Pe(Sn)?!1:Oe.data.current.sortable.containerId===Sn.data.current.sortable.containerId}function ln(Oe,Sn){return!Pe(Oe)||!Pe(Sn)||!wn(Oe,Sn)?!1:Oe.data.current.sortable.index<Sn.data.current.sortable.index}},35241:function(Qn,pi,Dt){"use strict";Dt.d(pi,{$X:function(){return Mt},D9:function(){return dt},DC:function(){return Gt},Ey:function(){return Bt},FJ:function(){return we},Gj:function(){return nt},HB:function(){return ee},IH:function(){return St},Jj:function(){return jt},LI:function(){return ze},Ld:function(){return gt},Nq:function(){return ie},Re:function(){return Ve},UG:function(){return Ee},Yz:function(){return Je},qk:function(){return ce},r3:function(){return Lt},so:function(){return me},ux:function(){return _t},vZ:function(){return xe},vd:function(){return Zt},wm:function(){return et},zX:function(){return Kt}});var yt=Dt(59301);function ee(){for(var Pe=arguments.length,ye=new Array(Pe),He=0;He<Pe;He++)ye[He]=arguments[He];return(0,yt.useMemo)(()=>wn=>{ye.forEach(ln=>ln(wn))},ye)}const ie=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined";function we(Pe){const ye=Object.prototype.toString.call(Pe);return ye==="[object Window]"||ye==="[object global]"}function Ee(Pe){return"nodeType"in Pe}function jt(Pe){var ye,He;return Pe?we(Pe)?Pe:Ee(Pe)&&(ye=(He=Pe.ownerDocument)==null?void 0:He.defaultView)!=null?ye:window:window}function ce(Pe){const{Document:ye}=jt(Pe);return Pe instanceof ye}function Ve(Pe){return we(Pe)?!1:Pe instanceof jt(Pe).HTMLElement}function xe(Pe){return Pe instanceof jt(Pe).SVGElement}function Lt(Pe){return Pe?we(Pe)?Pe.document:Ee(Pe)?ce(Pe)?Pe:Ve(Pe)||xe(Pe)?Pe.ownerDocument:document:document:document}const ze=ie?yt.useLayoutEffect:yt.useEffect;function Kt(Pe){const ye=(0,yt.useRef)(Pe);return ze(()=>{ye.current=Pe}),(0,yt.useCallback)(function(){for(var He=arguments.length,wn=new Array(He),ln=0;ln<He;ln++)wn[ln]=arguments[ln];return ye.current==null?void 0:ye.current(...wn)},[])}function Je(){const Pe=(0,yt.useRef)(null),ye=(0,yt.useCallback)((wn,ln)=>{Pe.current=setInterval(wn,ln)},[]),He=(0,yt.useCallback)(()=>{Pe.current!==null&&(clearInterval(Pe.current),Pe.current=null)},[]);return[ye,He]}function Bt(Pe,ye){ye===void 0&&(ye=[Pe]);const He=(0,yt.useRef)(Pe);return ze(()=>{He.current!==Pe&&(He.current=Pe)},ye),He}function nt(Pe,ye){const He=(0,yt.useRef)();return(0,yt.useMemo)(()=>{const wn=Pe(He.current);return He.current=wn,wn},[...ye])}function et(Pe){const ye=Kt(Pe),He=(0,yt.useRef)(null),wn=(0,yt.useCallback)(ln=>{ln!==He.current&&(ye==null||ye(ln,He.current)),He.current=ln},[]);return[He,wn]}function dt(Pe){const ye=(0,yt.useRef)();return(0,yt.useEffect)(()=>{ye.current=Pe},[Pe]),ye.current}let lt={};function gt(Pe,ye){return(0,yt.useMemo)(()=>{if(ye)return ye;const He=lt[Pe]==null?0:lt[Pe]+1;return lt[Pe]=He,Pe+"-"+He},[Pe,ye])}function mt(Pe){return function(ye){for(var He=arguments.length,wn=new Array(He>1?He-1:0),ln=1;ln<He;ln++)wn[ln-1]=arguments[ln];return wn.reduce((Oe,Sn)=>{const se=Object.entries(Sn);for(const[Yt,fn]of se){const _n=Oe[Yt];_n!=null&&(Oe[Yt]=_n+Pe*fn)}return Oe},Fo({},ye))}}const St=mt(1),Mt=mt(-1);function It(Pe){return"clientX"in Pe&&"clientY"in Pe}function Zt(Pe){if(!Pe)return!1;const{KeyboardEvent:ye}=jt(Pe.target);return ye&&Pe instanceof ye}function oe(Pe){if(!Pe)return!1;const{TouchEvent:ye}=jt(Pe.target);return ye&&Pe instanceof ye}function Gt(Pe){if(oe(Pe)){if(Pe.touches&&Pe.touches.length){const{clientX:ye,clientY:He}=Pe.touches[0];return{x:ye,y:He}}else if(Pe.changedTouches&&Pe.changedTouches.length){const{clientX:ye,clientY:He}=Pe.changedTouches[0];return{x:ye,y:He}}}return It(Pe)?{x:Pe.clientX,y:Pe.clientY}:null}const _t=Object.freeze({Translate:{toString(Pe){if(!Pe)return;const{x:ye,y:He}=Pe;return"translate3d("+(ye?Math.round(ye):0)+"px, "+(He?Math.round(He):0)+"px, 0)"}},Scale:{toString(Pe){if(!Pe)return;const{scaleX:ye,scaleY:He}=Pe;return"scaleX("+ye+") scaleY("+He+")"}},Transform:{toString(Pe){if(Pe)return[_t.Translate.toString(Pe),_t.Scale.toString(Pe)].join(" ")}},Transition:{toString(Pe){let{property:ye,duration:He,easing:wn}=Pe;return ye+" "+He+"ms "+wn}}}),ge="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function me(Pe){return Pe.matches(ge)?Pe:Pe.querySelector(ge)}},8336:function(){"use strict"},12469:function(){"use strict"},99587:function(Qn,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"}},22982:function(Qn,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"}},57149:function(Qn,pi,Dt){"use strict";var yt=Dt(59301),ee=Object.defineProperty,ie=Object.getOwnPropertySymbols,we=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable,jt=(xe,Lt,ze)=>Lt in xe?ee(xe,Lt,{enumerable:!0,configurable:!0,writable:!0,value:ze}):xe[Lt]=ze,ce=(xe,Lt)=>{for(var ze in Lt||(Lt={}))we.call(Lt,ze)&&jt(xe,ze,Lt[ze]);if(ie)for(var ze of ie(Lt))Ee.call(Lt,ze)&&jt(xe,ze,Lt[ze]);return xe};const Ve=xe=>React.createElement("svg",ce({className:"jiangxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},xe),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+"},61250:function(Qn,pi,Dt){"use strict";var yt=Dt(59301),ee=Object.defineProperty,ie=Object.getOwnPropertySymbols,we=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable,jt=(xe,Lt,ze)=>Lt in xe?ee(xe,Lt,{enumerable:!0,configurable:!0,writable:!0,value:ze}):xe[Lt]=ze,ce=(xe,Lt)=>{for(var ze in Lt||(Lt={}))we.call(Lt,ze)&&jt(xe,ze,Lt[ze]);if(ie)for(var ze of ie(Lt))Ee.call(Lt,ze)&&jt(xe,ze,Lt[ze]);return xe};const Ve=xe=>React.createElement("svg",ce({className:"shengxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},xe),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=="},63720:function(){"use strict";function Qn(Bt,nt,et,dt){et===void 0&&(et=0),dt===void 0&&(dt=1/0),this._name=Bt,this._defaultValue=nt,this._minimum=et,this._maximum=dt}Object.defineProperty(Qn.prototype,"name",{get:function(){return this._name},set:function(Bt){if(typeof Bt!="string"||Bt==="")throw new Error("Shape name must be a valid string.");this._name=Bt}}),Object.defineProperty(Qn.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(Bt){if(typeof Bt!="number"||isNaN(Bt))throw new Error("The default value must be a real number, not: "+Bt);this._defaultValue=Bt}}),Object.defineProperty(Qn.prototype,"minimum",{get:function(){return this._minimum},set:function(Bt){if(typeof Bt!="number"||isNaN(Bt))throw new Error("Minimum must be a real number, not: "+Bt);this._minimum=Bt}}),Object.defineProperty(Qn.prototype,"maximum",{get:function(){return this._maximum},set:function(Bt){if(typeof Bt!="number"||isNaN(Bt))throw new Error("Maximum must be a real number, not: "+Bt);this._maximum=Bt}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(Bt,nt){var et=go.Shape._FigureParameters[Bt];return et?et[nt]:null},go.Shape.setFigureParameter=function(Bt,nt,et){if(!(et instanceof Qn))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[Bt];dt||(dt=[],go.Shape._FigureParameters[Bt]=dt),dt[nt]=et};var pi=[];function Dt(Bt,nt){var et=pi.pop();return et===void 0?new go.Point(Bt,nt):(et.x=Bt,et.y=nt,et)}function yt(){var Bt=pi.pop();return Bt===void 0?new go.Point:Bt}function ee(Bt){pi.push(Bt)}function ie(Bt,nt,et,dt,lt,gt,mt,St,Mt){Mt||(Mt=new go.Point);var It=Bt-et,Zt=lt-mt,oe=NaN,Gt=NaN;if(It===0)if(Zt===0)Bt===et&&(oe=Bt,Gt=nt);else{var _t=(gt-St)/Zt,ge=gt-_t*lt;oe=Bt,Gt=_t*oe+ge}else if(Zt===0){var me=(nt-dt)/It,Pe=nt-me*Bt;oe=lt,Gt=me*oe+Pe}else{var me=(nt-dt)/It,_t=(gt-St)/Zt,Pe=nt-me*Bt,ge=gt-_t*lt;oe=(ge-Pe)/(me-_t),Gt=me*oe+Pe}return Mt.x=oe,Mt.y=Gt,Mt}function we(Bt,nt,et,dt,lt,gt,mt,St,Mt,It,Zt,oe,Gt,_t){var ge=1-Mt,me=Mt,Pe=Bt*ge+et*me,ye=nt*ge+dt*me,He=et*ge+lt*me,wn=dt*ge+gt*me,ln=lt*ge+mt*me,Oe=gt*ge+St*me,Sn=Pe*ge+He*me,se=ye*ge+wn*me,Yt=He*ge+ln*me,fn=wn*ge+Oe*me,_n=Sn*ge+Yt*me,In=se*ge+fn*me;It.x=Pe,It.y=ye,Zt.x=Sn,Zt.y=se,oe.x=_n,oe.y=In,Gt.x=Yt,Gt.y=fn,_t.x=ln,_t.y=Oe}var Ee=new go.Spot(.156,.156),jt=new go.Spot(.844,.844),ce=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Qn("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(Bt,nt,et){var dt=Bt?Bt.parameter1:NaN;(isNaN(dt)||dt<0)&&(dt=5),dt=Math.min(dt,nt/3),dt=Math.min(dt,et/3);var lt=dt*ce,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(Bt,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(Bt,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(Bt,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(Bt,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(Bt,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(Bt,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(Bt,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(Bt,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(Bt,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(Bt,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(Bt,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(Bt,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(Bt,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(Bt,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(Bt,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=Ee,lt.spot2=jt,lt.defaultStretch=go.GraphObject.Uniform,lt}),go.Shape.defineFigureGenerator("Line1",function(Bt,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(Bt,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(Bt,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,nt,et,ce*nt,0,nt,(1-ce)*et)))}),go.Shape.defineFigureGenerator("Curve2",function(Bt,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,nt,et,0,ce*et,(1-ce)*nt,et)))}),go.Shape.defineFigureGenerator("Curve3",function(Bt,nt,et){return new go.Geometry().add(new go.PathFigure(nt,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,et,nt,ce*et,ce*nt,et)))}),go.Shape.defineFigureGenerator("Curve4",function(Bt,nt,et){return new go.Geometry().add(new go.PathFigure(nt,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,et,(1-ce)*nt,0,0,(1-ce)*et)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(Bt,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(Bt,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(Bt,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(Bt,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 Qn("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(Bt,nt,et){var dt=Bt?Bt.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&>.setSpots(lt/nt,0,(nt-lt)/nt,1),gt}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new Qn("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(Bt,nt,et){var dt=Bt?Bt.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&>.setSpots(lt/nt,0,(nt-lt)/nt,1),gt}}),go.Shape.setFigureParameter("Trapezoid1",0,new Qn("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(Bt,nt,et){var dt=Bt?Bt.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&>.setSpots(lt/nt,0,(nt-lt)/nt,1),gt}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new Qn("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(Bt,nt,et){var dt=Bt?Bt.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&>.setSpots(lt/nt,0,(nt-lt)/nt,1),gt}}),go.Shape.setFigureParameter("ManualOperation",0,new Qn("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(Bt,nt,et){var dt=Bt?Bt.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&>.setSpots(lt/nt,0,(nt-lt)/nt,1),gt}});var Ve=[];function xe(){var Bt=Ve.pop();return Bt===void 0?[]:Bt}function Lt(Bt){Bt.length=0,Ve.push(Bt)}function ze(Bt){for(var nt=xe(),et=.5,dt=.5,lt=Math.PI*1.5,gt=0,mt=0;mt<Bt;mt++)gt=2*Math.PI/Bt*mt+lt,nt[mt]=new go.Point(dt+et*Math.cos(gt),dt+et*Math.sin(gt));return nt.push(nt[0]),nt}function Kt(Bt){var nt=Je(Bt),et=xe();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 Lt(nt),et}function Je(Bt){for(var nt=ze(Bt),et=xe(),dt=Math.floor(nt.length/2),lt=nt.length-1,gt=Bt%2===0?2:1,mt=0;mt<lt;mt++){var St=nt[mt],Mt=nt[mt+1],It=nt[(dt+mt-1)%lt],Zt=nt[(dt+mt+gt)%lt];et[mt*2]=St,et[mt*2+1]=ie(St.x,St.y,It.x,It.y,Mt.x,Mt.y,Zt.x,Zt.y,new go.Point)}return et[et.length]=et[0],Lt(nt),et}go.Shape.defineFigureGenerator("Pentagon",function(Bt,nt,et){var dt=ze(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()),Lt(dt),lt.spot1=new go.Spot(.2,.22),lt.spot2=new go.Spot(.8,.9),lt}),go.Shape.defineFigureGenerator("Hexagon",function(Bt,nt,et){var dt=ze(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()),Lt(dt),lt.spot1=new go.Spot(.07,.25),lt.spot2=new go.Spot(.93,.75),lt}),go.Shape.defineFigureGenerator("Heptagon",function(Bt,nt,et){var dt=ze(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()),Lt(dt),lt.spot1=new go.Spot(.2,.15),lt.spot2=new go.Spot(.8,.85),lt}),go.Shape.defineFigureGenerator("Octagon",function(Bt,nt,et){var dt=ze(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()),Lt(dt),lt.spot1=new go.Spot(.15,.15),lt.spot2=new go.Spot(.85,.85),lt}),go.Shape.defineFigureGenerator("Nonagon",function(Bt,nt,et){var dt=ze(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()),Lt(dt),lt.spot1=new go.Spot(.17,.13),lt.spot2=new go.Spot(.82,.82),lt}),go.Shape.defineFigureGenerator("Decagon",function(Bt,nt,et){var dt=ze(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()),Lt(dt),lt.spot1=new go.Spot(.16,.16),lt.spot2=new go.Spot(.84,.84),lt}),go.Shape.defineFigureGenerator("Dodecagon",function(Bt,nt,et){var dt=ze(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()),Lt(dt),lt.spot1=new go.Spot(.16,.16),lt.spot2=new go.Spot(.84,.84),lt}),go.Shape.defineFigureGenerator("FivePointedStar",function(Bt,nt,et){var dt=Je(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()),Lt(dt),lt.spot1=new go.Spot(.266,.333),lt.spot2=new go.Spot(.733,.733),lt}),go.Shape.defineFigureGenerator("SixPointedStar",function(Bt,nt,et){var dt=Je(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()),Lt(dt),lt.spot1=new go.Spot(.17,.25),lt.spot2=new go.Spot(.83,.75),lt}),go.Shape.defineFigureGenerator("SevenPointedStar",function(Bt,nt,et){var dt=Je(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()),Lt(dt),lt.spot1=new go.Spot(.222,.277),lt.spot2=new go.Spot(.777,.666),lt}),go.Shape.defineFigureGenerator("EightPointedStar",function(Bt,nt,et){var dt=Je(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()),Lt(dt),lt.spot1=new go.Spot(.25,.25),lt.spot2=new go.Spot(.75,.75),lt}),go.Shape.defineFigureGenerator("NinePointedStar",function(Bt,nt,et){var dt=Je(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()),Lt(dt),lt.spot1=new go.Spot(.222,.277),lt.spot2=new go.Spot(.777,.666),lt}),go.Shape.defineFigureGenerator("TenPointedStar",function(Bt,nt,et){var dt=Je(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()),Lt(dt),lt.spot1=new go.Spot(.281,.261),lt.spot2=new go.Spot(.723,.748),lt}),go.Shape.defineFigureGenerator("FivePointedBurst",function(Bt,nt,et){var dt=Kt(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(),Lt(dt),lt.spot1=new go.Spot(.222,.277),lt.spot2=new go.Spot(.777,.777),lt}),go.Shape.defineFigureGenerator("SixPointedBurst",function(Bt,nt,et){var dt=Kt(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(),Lt(dt),lt.spot1=new go.Spot(.17,.222),lt.spot2=new go.Spot(.833,.777),lt}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(Bt,nt,et){var dt=Kt(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(),Lt(dt),lt.spot1=new go.Spot(.222,.222),lt.spot2=new go.Spot(.777,.777),lt}),go.Shape.defineFigureGenerator("EightPointedBurst",function(Bt,nt,et){var dt=Kt(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(),Lt(dt),lt.spot1=new go.Spot(.222,.222),lt.spot2=new go.Spot(.777,.777),lt}),go.Shape.defineFigureGenerator("NinePointedBurst",function(Bt,nt,et){var dt=Kt(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(),Lt(dt),lt.spot1=new go.Spot(.222,.222),lt.spot2=new go.Spot(.777,.777),lt}),go.Shape.defineFigureGenerator("TenPointedBurst",function(Bt,nt,et){var dt=Kt(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(),Lt(dt),lt.spot1=new go.Spot(.222,.222),lt.spot2=new go.Spot(.777,.777),lt}),go.Shape.setFigureParameter("FramedRectangle",0,new Qn("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Qn("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(Bt,nt,et){var dt=Bt?Bt.parameter1:NaN,lt=Bt?Bt.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&<<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 Qn("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(Bt,nt,et){var dt=Bt?Bt.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=Ee,gt.spot2=jt,gt.defaultStretch=go.GraphObject.Uniform,gt}),go.Shape.defineFigureGenerator("Cloud",function(Bt,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(Bt,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 Qn("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Qn("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(Bt,nt,et){var dt=Bt?Bt.parameter1:NaN,lt=Bt?Bt.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(Bt,nt,et){var dt=ce/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 Qn("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(Bt,nt,et){var dt=Bt?Bt.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 Qn("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(Bt,nt,et){var dt=Bt?Bt.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 Qn("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(Bt,nt,et){var dt=Bt?Bt.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),Mt=dt-Math.min(Math.cos(St)*dt/2,gt),It=dt-Math.min(Math.sin(St)*dt/2,mt),lt=new go.Geometry,Zt=new go.PathFigure(Mt,0,!0);return lt.add(Zt),Zt.add(new go.PathSegment(go.PathSegment.Line,gt,.2*et)),Zt.add(new go.PathSegment(go.PathSegment.Line,nt-Mt,0)),Zt.add(new go.PathSegment(go.PathSegment.Line,nt,It)),Zt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,mt)),Zt.add(new go.PathSegment(go.PathSegment.Line,nt,et-It)),Zt.add(new go.PathSegment(go.PathSegment.Line,nt-Mt,et)),Zt.add(new go.PathSegment(go.PathSegment.Line,gt,.8*et)),Zt.add(new go.PathSegment(go.PathSegment.Line,Mt,et)),Zt.add(new go.PathSegment(go.PathSegment.Line,0,et-It)),Zt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,mt)),Zt.add(new go.PathSegment(go.PathSegment.Line,0,It).close()),lt}}),go.Shape.setFigureParameter("ThinX",0,new Qn("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(Bt,nt,et){var dt=Bt?Bt.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 Qn("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(Bt,nt,et){var dt=Bt?Bt.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 Qn("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(Bt,nt,et){var dt=Bt?Bt.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(Bt,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,nt,.5*et,ce*nt,0,nt,(.5-ce/2)*et)).add(new go.PathSegment(go.PathSegment.Bezier,0,et,nt,(.5+ce/2)*et,ce*nt,et).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(Bt,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(Bt,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(Bt,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(Bt,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,Mt=gt*ce;return lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+mt)*nt,(.5+gt+St)*et,(.5-gt+mt)*nt,(.5+Mt+St)*et,(.5-Mt+mt)*nt,(.5+gt+St)*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+gt+mt)*nt,(.5+St)*et,(.5+Mt+mt)*nt,(.5+gt+St)*et,(.5+gt+mt)*nt,(.5+Mt+St)*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+mt)*nt,(.5-gt+St)*et,(1-.5+gt+mt)*nt,(.5-Mt+St)*et,(.5+Mt+mt)*nt,(.5-gt+St)*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.65*nt,.36771243*et,(.5-Mt+mt)*nt,(.5-gt+St)*et,(.5-gt+mt+.05)*nt,(.5-Mt+St-.02)*et)),gt=.2,mt=0,St=-.3,Mt=gt*ce,lt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+gt+mt)*nt,(.5+St)*et,(.5+Mt+mt)*nt,(.5+gt+St)*et,(.5+gt+mt)*nt,(.5+Mt+St)*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+mt)*nt,(.5-gt+St)*et,(1-.5+gt+mt)*nt,(.5-Mt+St)*et,(.5+Mt+mt)*nt,(.5-gt+St)*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-gt+mt)*nt,(.5+St)*et,(.5-Mt+mt)*nt,(.5-gt+St)*et,(.5-gt+mt)*nt,(.5-Mt+St)*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-Mt+mt)*nt,(.5+gt+St)*et,(.5-gt+mt)*nt,(.5+Mt+St)*et,(.5-Mt+mt)*nt,(.5+gt+St)*et)),gt=.2,mt=-.3,St=0,Mt=gt*ce,lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+mt)*nt,(.5-gt+St)*et,(1-.5+gt+mt-.05)*nt,(.5-Mt+St-.02)*et,(.5+Mt+mt)*nt,(.5-gt+St)*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-gt+mt)*nt,(.5+St)*et,(.5-Mt+mt)*nt,(.5-gt+St)*et,(.5-gt+mt)*nt,(.5-Mt+St)*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+mt)*nt,(.5+gt+St)*et,(.5-gt+mt)*nt,(.5+Mt+St)*et,(.5-Mt+mt)*nt,(.5+gt+St)*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.4*nt,.6*et,(.5+Mt+mt)*nt,(.5+gt+St)*et,(.5+gt+mt)*nt,(.5+Mt+St)*et).close()),dt.setSpots(.06,.33,.93,.68),dt}),go.Shape.defineFigureGenerator("YinYang",function(Bt,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(Bt,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(Bt,nt,et){var dt=new go.Geometry,lt=ce*.5,gt=.5,mt=.5,St=.5,Mt=new go.PathFigure(mt*nt,(St-gt)*et);dt.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-gt)*nt,St*et,(mt-lt)*nt,(St-gt)*et,(mt-gt)*nt,(St-lt)*et)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St+gt)*et,(mt-gt)*nt,(St+lt)*et,(mt-lt)*nt,(St+gt)*et)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*nt,St*et,(mt+lt)*nt,(St+gt)*et,(mt+gt)*nt,(St+lt)*et)),Mt.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=ce*.4;var It=yt(),Zt=yt(),oe=yt(),Gt=yt();we(mt,St-gt,mt+lt,St-gt,mt+gt,St-lt,mt+gt,St,.42,It,Zt,oe,Gt,Gt);var _t=yt(),ge=yt(),me=yt();we(mt,St-gt,mt+lt,St-gt,mt+gt,St-lt,mt+gt,St,.58,Gt,Gt,me,_t,ge);var Pe=yt(),ye=yt(),He=yt();we(mt,St+gt,mt-lt,St+gt,mt-gt,St+lt,mt-gt,St,.42,Pe,ye,He,Gt,Gt);var wn=yt(),ln=yt(),Oe=yt();return we(mt,St+gt,mt-lt,St+gt,mt-gt,St+lt,mt-gt,St,.58,Gt,Gt,Oe,wn,ln),Mt.add(new go.PathSegment(go.PathSegment.Move,Oe.x*nt,Oe.y*et)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-gt)*nt,St*et,wn.x*nt,wn.y*et,ln.x*nt,ln.y*et)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St-gt)*et,(mt-gt)*nt,(St-lt)*et,(mt-lt)*nt,(St-gt)*et)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*nt,oe.y*et,It.x*nt,It.y*et,Zt.x*nt,Zt.y*et)),Mt.add(new go.PathSegment(go.PathSegment.Line,Oe.x*nt,Oe.y*et).close()),Mt.add(new go.PathSegment(go.PathSegment.Move,He.x*nt,He.y*et)),Mt.add(new go.PathSegment(go.PathSegment.Line,me.x*nt,me.y*et)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*nt,St*et,_t.x*nt,_t.y*et,ge.x*nt,ge.y*et)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St+gt)*et,(mt+gt)*nt,(St+lt)*et,(mt+lt)*nt,(St+gt)*et)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,He.x*nt,He.y*et,Pe.x*nt,Pe.y*et,ye.x*nt,ye.y*et).close()),ee(It),ee(Zt),ee(oe),ee(Gt),ee(_t),ee(ge),ee(me),ee(Pe),ee(ye),ee(He),ee(wn),ee(ln),ee(Oe),dt.defaultStretch=go.GraphObject.Uniform,dt}),go.Shape.defineFigureGenerator("Fragile",function(Bt,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 Qn("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(Bt,nt,et){var dt=Bt?Bt.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(Bt,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(Bt,nt,et){var dt=new go.Geometry,lt=ce*.4,gt=.4,mt=.5,St=.5,Mt=yt(),It=yt(),Zt=yt(),oe=yt(),Gt=new go.PathFigure((mt-gt)*nt,St*et,!1);dt.add(Gt),Gt.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(mt,St-gt,mt+lt,St-gt,mt+gt,St-lt,mt+gt,St,.44,Zt,oe,It,Mt,Mt),Gt.add(new go.PathSegment(go.PathSegment.Bezier,It.x*nt,It.y*et,Zt.x*nt,Zt.y*et,oe.x*nt,oe.y*et));var _t=Dt(It.x,It.y);we(mt,St-gt,mt+lt,St-gt,mt+gt,St-lt,mt+gt,St,.56,Mt,Mt,It,Zt,oe);var ge=Dt(It.x,It.y);Gt.add(new go.PathSegment(go.PathSegment.Line,(_t.x*.1+.95*.9)*nt,_t.y*.1*et)),Gt.add(new go.PathSegment(go.PathSegment.Line,.85*nt,_t.y*.1*et)),Gt.add(new go.PathSegment(go.PathSegment.Line,.85*nt,0)),Gt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),Gt.add(new go.PathSegment(go.PathSegment.Line,nt,.15*et)),Gt.add(new go.PathSegment(go.PathSegment.Line,(ge.x*.1+.9)*nt,.15*et)),Gt.add(new go.PathSegment(go.PathSegment.Line,(ge.x*.1+.9)*nt,(ge.y*.1+.05*.9)*et)),Gt.add(new go.PathSegment(go.PathSegment.Line,ge.x*nt,ge.y*et)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*nt,St*et,Zt.x*nt,Zt.y*et,oe.x*nt,oe.y*et)),Gt.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.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=ce*.35;var me=new go.PathFigure(mt*nt,(St-gt)*et,!1);dt.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,(mt-gt)*nt,St*et,(mt-lt)*nt,(St-gt)*et,(mt-gt)*nt,(St-lt)*et)),me.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St+gt)*et,(mt-gt)*nt,(St+lt)*et,(mt-lt)*nt,(St+gt)*et)),me.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*nt,St*et,(mt+lt)*nt,(St+gt)*et,(mt+gt)*nt,(St+lt)*et)),me.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 Pe=new go.PathFigure((mt-gt)*nt,St*et,!1);return dt.add(Pe),ee(Mt),ee(It),ee(Zt),ee(oe),ee(_t),ee(ge),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(Bt,nt,et){var dt=new go.Geometry,lt=.375,gt=0,mt=-.125,St=lt*ce,Mt=new go.PathFigure((.525+gt)*nt,(.5+lt+mt)*et,!1);dt.add(Mt),Mt.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)),Mt.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)),Mt.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)),Mt.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)),Mt.add(new go.PathSegment(go.PathSegment.Line,.475*nt,.85*et)),Mt.add(new go.PathSegment(go.PathSegment.Line,.425*nt,.85*et)),Mt.add(new go.PathSegment(go.PathSegment.Line,.425*nt,.9*et)),Mt.add(new go.PathSegment(go.PathSegment.Line,.475*nt,.9*et)),Mt.add(new go.PathSegment(go.PathSegment.Line,.475*nt,et)),Mt.add(new go.PathSegment(go.PathSegment.Line,.525*nt,et)),Mt.add(new go.PathSegment(go.PathSegment.Line,.525*nt,.9*et)),Mt.add(new go.PathSegment(go.PathSegment.Line,.575*nt,.9*et)),Mt.add(new go.PathSegment(go.PathSegment.Line,.575*nt,.85*et)),Mt.add(new go.PathSegment(go.PathSegment.Line,.525*nt,.85*et).close()),lt=.325,gt=0,mt=-.125,St=lt*ce;var Mt=new go.PathFigure((1-.5+lt+gt)*nt,(.5+mt)*et,!1);dt.add(Mt),Mt.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)),Mt.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)),Mt.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)),Mt.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 Mt=new go.PathFigure((.525+gt)*nt,(.5+lt+mt)*et,!1);return dt.add(Mt),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(Bt,nt,et){var dt=Bt?Bt.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(Bt,nt,et){var dt=Bt?Bt.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(Bt,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(Bt,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(Bt,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(Bt,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(Bt,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(Bt,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(Bt,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(Bt,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(Bt,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(Bt,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(Bt,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 Qn("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Qn("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(Bt,nt,et){var dt=Bt?Bt.parameter1:NaN;isNaN(dt)&&(dt=.3);var lt=Bt?Bt.parameter2:NaN;isNaN(lt)&&(lt=.3);var gt=(1-dt)*nt,mt=(.5-lt/2)*et,St=(.5+lt/2)*et,Mt=new go.Geometry,It=new go.PathFigure(0,mt,!0);Mt.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()),Mt.spot1=new go.Spot(0,mt/et);var Zt=ie(0,St/et,1,St/et,gt/nt,1,1,.5,yt());return Mt.spot2=new go.Spot(Zt.x,Zt.y),ee(Zt),Mt}),go.Shape.setFigureParameter("Arrow2",0,new Qn("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Qn("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(Bt,nt,et){var dt=Bt?Bt.parameter1:NaN;isNaN(dt)&&(dt=30),dt>nt&&(dt=nt);var lt=Bt?Bt.parameter2:NaN;isNaN(lt)&&(lt=30),lt=Math.min(lt,et/2);var gt=nt-dt,mt=(et-lt)/2,St=mt+lt,Mt=new go.Geometry,It=new go.PathFigure(0,mt,!0);Mt.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()),Mt.spot1=new go.Spot(0,mt/et);var Zt=ie(0,St/et,1,St/et,gt/nt,1,1,.5,yt());return Mt.spot2=new go.Spot(Zt.x,Zt.y),ee(Zt),Mt}),go.Shape.defineFigureGenerator("Chevron",function(Bt,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(Bt,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 Qn("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(Bt,nt,et){var dt=Bt?Bt.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 Mt=ie(0,.5,.3,0,0,lt/et,.1,lt/et,yt());return mt.spot1=new go.Spot(Mt.x,Mt.y),Mt=ie(.7,1,1,.5,0,gt/et,1,gt/et,Mt),mt.spot2=new go.Spot(Mt.x,Mt.y),ee(Mt),mt}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Qn("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Qn("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(Bt,nt,et){var dt=Bt?Bt.parameter1:NaN;isNaN(dt)&&(dt=40);var lt=Bt?Bt.parameter2:NaN;isNaN(lt)&&(lt=100);var gt=(et-dt)/2,mt=gt+dt,St=(et-lt)/2,Mt=St+lt;(dt>et||lt>et)&&(lt>dt?(dt=dt*et/lt,gt=(et-dt)/2,mt=gt+dt,St=0,Mt=et):(gt=0,mt=et,St=0,Mt=et));var It=new go.Geometry,Zt=new go.PathFigure(nt,.5*et,!0);It.add(Zt),Zt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,Mt)),Zt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,mt)),Zt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,mt)),Zt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,Mt)),Zt.add(new go.PathSegment(go.PathSegment.Line,0,.5*et)),Zt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,St)),Zt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,gt)),Zt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,gt)),Zt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,St).close());var oe=ie(0,.5,.3,St/et,0,gt/et,1,gt/et,yt());return It.spot1=new go.Spot(oe.x,oe.y),oe=ie(.7,Mt/et,1,.5,0,mt/et,1,mt/et,oe),It.spot2=new go.Spot(oe.x,oe.y),ee(oe),It}),go.Shape.setFigureParameter("IBeamArrow",0,new Qn("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(Bt,nt,et){var dt=Bt?Bt.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 Mt=ie(.7,1,1,.5,0,gt/et,1,gt/et,yt());return mt.spot2=new go.Spot(Mt.x,Mt.y),ee(Mt),mt}),go.Shape.setFigureParameter("IBeamArrow2",0,new Qn("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Qn("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(Bt,nt,et){var dt=Bt?Bt.parameter1:NaN;isNaN(dt)&&(dt=40);var lt=Bt?Bt.parameter2:NaN;isNaN(lt)&&(lt=100);var gt=(et-dt)/2,mt=gt+dt,St=(et-lt)/2,Mt=St+lt;(dt>et||lt>et)&&(lt>dt?(dt=dt*et/lt,gt=(et-dt)/2,mt=gt+dt,St=0,Mt=et):(gt=0,mt=et,St=0,Mt=et));var It=new go.Geometry,Zt=new go.PathFigure(nt,.5*et,!0);It.add(Zt),Zt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,Mt)),Zt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,mt)),Zt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,mt)),Zt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,Mt)),Zt.add(new go.PathSegment(go.PathSegment.Line,0,Mt)),Zt.add(new go.PathSegment(go.PathSegment.Line,0,St)),Zt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,St)),Zt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,gt)),Zt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,gt)),Zt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,St).close()),It.spot1=new go.Spot(0,gt/et);var oe=ie(.7,Mt/et,1,.5,0,mt/et,1,mt/et,yt());return It.spot2=new go.Spot(oe.x,oe.y),ee(oe),It}),go.Shape.setFigureParameter("Pointer",0,new Qn("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(Bt,nt,et){var dt=Bt?Bt.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=ie(.2,.65,1,.65,0,1,1,.5,yt());return lt.spot2=new go.Spot(mt.x,mt.y),ee(mt),lt}),go.Shape.setFigureParameter("RoundedPointer",0,new Qn("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(Bt,nt,et){var dt=Bt?Bt.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=ie(0,.65,1,.65,0,1,1,.5,yt());return lt.spot2=new go.Spot(mt.x,mt.y),ee(mt),lt}),go.Shape.setFigureParameter("SplitEndArrow",0,new Qn("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(Bt,nt,et){var dt=Bt?Bt.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 Mt=ie(.7,1,1,.5,0,gt/et,1,gt/et,yt());return mt.spot2=new go.Spot(Mt.x,Mt.y),ee(Mt),mt}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Qn("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(Bt,nt,et){var dt=Bt?Bt.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 Mt=ie(.7,1,1,.5,0,gt/et,1,gt/et,yt());return mt.spot2=new go.Spot(Mt.x,Mt.y),ee(Mt),mt}),go.Shape.setFigureParameter("SquareArrow",0,new Qn("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(Bt,nt,et){var dt=Bt?Bt.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(Bt,nt,et){var dt=new go.Geometry,lt=ce*.5,gt=ce*.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(Bt,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(Bt,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(Bt,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(Bt,nt,et){var dt=Bt?Bt.parameter1:NaN;isNaN(dt)&&(dt=5),dt=Math.min(dt,et/3);var lt=new go.Geometry,gt=ce*.5,mt=new go.PathFigure(0,dt,!0);lt.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,0,0,ce*dt,(.5-gt)*nt,0)),mt.add(new go.PathSegment(go.PathSegment.Bezier,1*nt,dt,(.5+gt)*nt,0,1*nt,ce*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-ce*dt,(.5+gt)*nt,1*et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,et-dt,(.5-gt)*nt,1*et,0,et-ce*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-ce*dt,(.5+gt)*nt,2*dt)),St.add(new go.PathSegment(go.PathSegment.Bezier,0,dt,(.5-gt)*nt,2*dt,0,2*dt-ce*dt)),lt.spot1=new go.Spot(0,0,0,2*dt),lt.spot2=new go.Spot(1,1),lt}),go.Shape.defineFigureGenerator("Cylinder2",function(Bt,nt,et){var dt=Bt?Bt.parameter1:NaN;isNaN(dt)&&(dt=5),dt=Math.min(dt,et/3);var lt=new go.Geometry,gt=ce*.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,ce*dt,(.5-gt)*nt,0)),mt.add(new go.PathSegment(go.PathSegment.Bezier,nt,dt,(.5+gt)*nt,0,nt,ce*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-ce*dt,(.5+gt)*nt,et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,et-dt,(.5-gt)*nt,et,0,et-ce*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-ce*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-ce*dt)),lt.spot1=new go.Spot(0,0),lt.spot2=new go.Spot(1,1,0,-2*dt),lt}),go.Shape.defineFigureGenerator("Cylinder3",function(Bt,nt,et){var dt=Bt?Bt.parameter1:NaN;isNaN(dt)&&(dt=5),dt=Math.min(dt,nt/3);var lt=new go.Geometry,gt=ce*.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-ce*dt,0,nt,(.5-gt)*et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,nt-dt,et,nt,(.5+gt)*et,nt-ce*dt,et)),mt.add(new go.PathSegment(go.PathSegment.Line,dt,et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*et,ce*dt,et,0,(.5+gt)*et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,dt,0,0,(.5-gt)*et,ce*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+ce*dt,0,2*dt,(.5-gt)*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,dt,et,2*dt,(.5+gt)*et,dt+ce*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(Bt,nt,et){var dt=Bt?Bt.parameter1:NaN;isNaN(dt)&&(dt=5),dt=Math.min(dt,nt/3);var lt=new go.Geometry,gt=ce*.5,mt=new go.PathFigure(nt-dt,0,!0);lt.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.5*et,nt-ce*dt,0,nt,(.5-gt)*et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,nt-dt,et,nt,(.5+gt)*et,nt-ce*dt,et)),mt.add(new go.PathSegment(go.PathSegment.Line,dt,et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*et,ce*dt,et,0,(.5+gt)*et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,dt,0,0,(.5-gt)*et,ce*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-ce*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-ce*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(Bt,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(Bt,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(Bt,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(Bt,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(Bt,nt,et){var dt=new go.Geometry,lt=.2,gt=.1,mt=ce*lt,St=ce*gt,Mt=.5,It=.1,Zt=new go.PathFigure(Mt*nt,(It+gt)*et,!0);dt.add(Zt),Zt.add(new go.PathSegment(go.PathSegment.Bezier,(Mt-lt)*nt,It*et,(Mt-mt)*nt,(It+gt)*et,(Mt-lt)*nt,(It+St)*et)),Zt.add(new go.PathSegment(go.PathSegment.Bezier,Mt*nt,(It-gt)*et,(Mt-lt)*nt,(It-St)*et,(Mt-mt)*nt,(It-gt)*et)),Zt.add(new go.PathSegment(go.PathSegment.Bezier,(Mt+lt)*nt,It*et,(Mt+mt)*nt,(It-gt)*et,(Mt+lt)*nt,(It-St)*et)),Zt.add(new go.PathSegment(go.PathSegment.Bezier,Mt*nt,(It+gt)*et,(Mt+lt)*nt,(It+St)*et,(Mt+mt)*nt,(It+gt)*et));var oe=.05,Gt=ce*oe;Mt=.05,It=.25;var _t=new go.PathFigure(.5*nt,.2*et,!0);return dt.add(_t),_t.add(new go.PathSegment(go.PathSegment.Line,.95*nt,.2*et)),Mt=.95,It=.25,_t.add(new go.PathSegment(go.PathSegment.Bezier,(Mt+oe)*nt,It*et,(Mt+Gt)*nt,(It-oe)*et,(Mt+oe)*nt,(It-Gt)*et)),_t.add(new go.PathSegment(go.PathSegment.Line,nt,.6*et)),_t.add(new go.PathSegment(go.PathSegment.Line,.85*nt,.6*et)),_t.add(new go.PathSegment(go.PathSegment.Line,.85*nt,.35*et)),oe=.025,Gt=ce*oe,Mt=.825,It=.35,_t.add(new go.PathSegment(go.PathSegment.Bezier,Mt*nt,(It-oe)*et,(Mt+oe)*nt,(It-Gt)*et,(Mt+Gt)*nt,(It-oe)*et)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(Mt-oe)*nt,It*et,(Mt-Gt)*nt,(It-oe)*et,(Mt-oe)*nt,(It-Gt)*et)),_t.add(new go.PathSegment(go.PathSegment.Line,.8*nt,et)),_t.add(new go.PathSegment(go.PathSegment.Line,.55*nt,et)),_t.add(new go.PathSegment(go.PathSegment.Line,.55*nt,.7*et)),oe=.05,Gt=ce*oe,Mt=.5,It=.7,_t.add(new go.PathSegment(go.PathSegment.Bezier,Mt*nt,(It-oe)*et,(Mt+oe)*nt,(It-Gt)*et,(Mt+Gt)*nt,(It-oe)*et)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(Mt-oe)*nt,It*et,(Mt-Gt)*nt,(It-oe)*et,(Mt-oe)*nt,(It-Gt)*et)),_t.add(new go.PathSegment(go.PathSegment.Line,.45*nt,et)),_t.add(new go.PathSegment(go.PathSegment.Line,.2*nt,et)),_t.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.35*et)),oe=.025,Gt=ce*oe,Mt=.175,It=.35,_t.add(new go.PathSegment(go.PathSegment.Bezier,Mt*nt,(It-oe)*et,(Mt+oe)*nt,(It-Gt)*et,(Mt+Gt)*nt,(It-oe)*et)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(Mt-oe)*nt,It*et,(Mt-Gt)*nt,(It-oe)*et,(Mt-oe)*nt,(It-Gt)*et)),_t.add(new go.PathSegment(go.PathSegment.Line,.15*nt,.6*et)),_t.add(new go.PathSegment(go.PathSegment.Line,0,.6*et)),_t.add(new go.PathSegment(go.PathSegment.Line,0,.25*et)),oe=.05,Gt=ce*oe,Mt=.05,It=.25,_t.add(new go.PathSegment(go.PathSegment.Bezier,Mt*nt,(It-oe)*et,(Mt-oe)*nt,(It-Gt)*et,(Mt-Gt)*nt,(It-oe)*et)),_t.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 Qn("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(Bt,nt,et){var dt=Bt?Bt.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(Bt,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(Bt,nt,et){var dt=new go.Geometry,lt=Bt?Bt.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(Bt,nt,et){var dt=new go.Geometry,lt=ce*.5,gt=ce*.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(Bt,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(Bt,nt,et){var dt=new go.Geometry,lt=ce*.5,gt=ce*.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(Bt,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(Bt,nt,et){var dt=new go.Geometry,lt=Bt?Bt.parameter1:NaN;isNaN(lt)?lt=.2:lt<.15&&(lt=.15);var gt=ce*.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(Bt,nt,et){var dt=new go.Geometry,lt=Bt?Bt.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(Bt,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(Bt,nt,et){var dt=new go.Geometry,lt=Bt?Bt.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(Bt,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(Bt,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(Bt,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(Bt,nt,et){var dt=new go.Geometry,lt=Bt?Bt.parameter1:NaN,gt=Bt?Bt.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(Bt,nt,et){var dt=new go.Geometry,lt=1/Math.SQRT2,gt=(1-1/Math.SQRT2)/2,mt=ce*.5,St=.5,Mt=new go.PathFigure(nt,St*et,!0);dt.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,St*nt,et,nt,(St+mt)*et,(St+mt)*nt,et)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,0,St*et,(St-mt)*nt,et,0,(St+mt)*et)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,St*nt,0,0,(St-mt)*et,(St-mt)*nt,0)),Mt.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(Bt,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(Bt,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(Bt,nt,et){var dt=new go.Geometry,lt=ce*.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(Bt,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(Bt,nt,et){var dt=new go.Geometry,lt=Bt?Bt.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(Bt,nt,et){var dt=new go.Geometry,lt=Bt?Bt.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(Bt,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(Bt,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(Bt,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(Bt,nt,et){var dt=new go.Geometry,lt=Bt?Bt.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(Bt,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(Bt,nt,et){var dt=new go.Geometry,lt=ce*.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(Bt,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(Bt,nt,et){var dt=new go.Geometry,lt=Bt?Bt.parameter1:NaN,gt=Bt?Bt.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(Bt,nt,et){var dt=new go.Geometry,lt=Bt?Bt.parameter1:NaN,gt=Bt?Bt.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(Bt,nt,et){var dt=new go.Geometry,lt=Bt?Bt.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(Bt,nt,et){var dt=new go.Geometry,lt=Bt?Bt.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(Bt,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(Bt,nt,et){var dt=new go.Geometry,lt=Bt?Bt.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(Bt,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(Bt,nt,et){var dt=new go.Geometry,lt=Bt?Bt.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(Bt,nt,et){var dt=new go.Geometry,lt=ce*.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(Bt,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(Bt,nt,et){var dt=new go.Geometry,lt=ce*.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 Mt=new go.PathFigure(.8*nt,.75*et,!1);return dt.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.25*et)),Mt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,.25*et)),Mt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,.75*et)),Mt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,.75*et)),Mt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,.25*et)),Mt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.25*et)),Mt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.75*et)),dt}),go.Shape.defineFigureGenerator("Ground",function(Bt,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(Bt,nt,et){var dt=new go.Geometry,lt=ce*.1,gt=.1,mt=.9,St=.5,Mt=new go.PathFigure(.8*nt,.5*et,!0);dt.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Line,0,et)),Mt.add(new go.PathSegment(go.PathSegment.Line,0,0)),Mt.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(Bt,nt,et){var dt=new go.Geometry,lt=ce*.5,gt=ce*.4,mt=ce*.1,St=.1,Mt=.9,It=.5,Zt=new go.PathFigure(.8*nt,.5*et,!0);dt.add(Zt),Zt.add(new go.PathSegment(go.PathSegment.Bezier,.4*nt,et,.8*nt,(.5+gt)*et,(.4+lt)*nt,et)),Zt.add(new go.PathSegment(go.PathSegment.Line,0,et)),Zt.add(new go.PathSegment(go.PathSegment.Line,0,0)),Zt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,0)),Zt.add(new go.PathSegment(go.PathSegment.Bezier,.8*nt,.5*et,(.4+lt)*nt,0,.8*nt,(.5-gt)*et));var oe=new go.PathFigure((Mt+St)*nt,It*et,!0);return dt.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,Mt*nt,(It+St)*et,(Mt+St)*nt,(It+mt)*et,(Mt+mt)*nt,(It+St)*et)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(Mt-St)*nt,It*et,(Mt-mt)*nt,(It+St)*et,(Mt-St)*nt,(It+mt)*et)),oe.add(new go.PathSegment(go.PathSegment.Bezier,Mt*nt,(It-St)*et,(Mt-St)*nt,(It-mt)*et,(Mt-mt)*nt,(It-St)*et)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(Mt+St)*nt,It*et,(Mt+mt)*nt,(It-St)*et,(Mt+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(Bt,nt,et){var dt=new go.Geometry,lt=.5,gt=ce*lt,mt=0,St=.5,Mt=new go.PathFigure(.8*nt,.5*et,!0);dt.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,0,et,.7*nt,(St+gt)*et,(mt+gt)*nt,(St+lt)*et)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*nt,.75*et,.25*nt,.25*et)),Mt.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=ce*.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(Bt,nt,et){var dt=new go.Geometry,lt=.5,gt=ce*lt,mt=0,St=.5,Mt=new go.PathFigure(0,0,!0);return dt.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.5*et,(mt+gt+gt)*nt,(St-lt)*et,.8*nt,(St-gt)*et)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,0,et,.8*nt,(St+gt)*et,(mt+gt+gt)*nt,(St+lt)*et)),Mt.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(Bt,nt,et){var dt=new go.Geometry,lt=.5,gt=ce*lt,mt=.2,St=.5,Mt=new go.PathFigure(.1*nt,0,!1);dt.add(Mt),Mt.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=ce*.1,mt=.9,St=.5;var Zt=new go.PathFigure((mt-lt)*nt,St*et,!0);return dt.add(Zt),Zt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St-lt)*et,(mt-lt)*nt,(St-gt)*et,(mt-gt)*nt,(St-lt)*et)),Zt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+lt)*nt,St*et,(mt+gt)*nt,(St-lt)*et,(mt+lt)*nt,(St-gt)*et)),Zt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St+lt)*et,(mt+lt)*nt,(St+gt)*et,(mt+gt)*nt,(St+lt)*et)),Zt.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(Bt,nt,et){var dt=new go.Geometry,lt=.5,gt=ce*lt,mt=.2,St=.5,Mt=new go.PathFigure(.1*nt,0,!1);dt.add(Mt),Mt.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(Bt,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(Bt,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(Bt,nt,et){var dt=new go.Geometry,lt=ce*.1,gt=.1,mt=.1,St=.5,Mt=new go.PathFigure((mt-lt*.5)*nt,et,!1);return dt.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*nt,0,(mt-lt)*nt,et,(mt-gt)*nt,0)),mt=.3,Mt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,et,(mt+gt)*nt,0,(mt+lt)*nt,et)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*nt,0,(mt-lt)*nt,et,(mt-gt)*nt,0)),mt=.5,Mt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,et,(mt+gt)*nt,0,(mt+lt)*nt,et)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*nt,0,(mt-lt)*nt,et,(mt-gt)*nt,0)),mt=.7,Mt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,et,(mt+gt)*nt,0,(mt+lt)*nt,et)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*nt,0,(mt-lt)*nt,et,(mt-gt)*nt,0)),mt=.9,Mt.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(Bt,nt,et){var dt=new go.Geometry,lt=ce*.5,gt=.5,mt=.5,St=.5,Mt=new go.PathFigure((mt-gt)*nt,St*et,!1);return dt.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St-gt)*et,(mt-gt)*nt,(St-lt)*et,(mt-lt)*nt,(St-gt)*et)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*nt,St*et,(mt+lt)*nt,(St-gt)*et,(mt+gt)*nt,(St-lt)*et)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St+gt)*et,(mt+gt)*nt,(St+lt)*et,(mt+lt)*nt,(St+gt)*et)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-gt)*nt,St*et,(mt-lt)*nt,(St+gt)*et,(mt-gt)*nt,(St+lt)*et)),Mt.add(new go.PathSegment(go.PathSegment.Move,(mt-gt+.1)*nt,St*et)),Mt.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(Bt,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(Bt,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(Bt,nt,et){var dt=new go.Geometry,lt=nt,gt=et;nt=nt*.38,et=et*.6;var mt=ce*.8,St=.8,Mt=0,It=.5,Zt=(lt-nt)/2,oe=(gt-et)/2,Gt=new go.PathFigure(Mt*nt+Zt,(It+St)*et+oe,!0);dt.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(Mt-St)*nt+Zt,It*et+oe,(Mt-mt)*nt+Zt,(It+St)*et+oe,(Mt-St)*nt+Zt,(It+mt)*et+oe)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,Mt*nt+Zt,(It-St)*et+oe,(Mt-St)*nt+Zt,(It-mt)*et+oe,(Mt-mt)*nt+Zt,(It-St)*et+oe)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(Mt-St+mt*.5)*nt+Zt,It*et+oe,Mt*nt+Zt,(It-St)*et+oe,(Mt-St+mt*.5)*nt+Zt,(It-mt)*et+oe)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,Mt*nt+Zt,(It+St)*et+oe,(Mt-St+mt*.5)*nt+Zt,(It+mt)*et+oe,Mt*nt+Zt,(It+St)*et+oe).close()),mt=ce*.4,St=.4,Mt=.2,It=.5;var _t=new go.PathFigure(Mt*nt+Zt,(It+St)*et+oe,!0);dt.add(_t),_t.add(new go.PathSegment(go.PathSegment.Bezier,(Mt-St)*nt+Zt,It*et+oe,(Mt-mt)*nt+Zt,(It+St)*et+oe,(Mt-St)*nt+Zt,(It+mt)*et+oe)),_t.add(new go.PathSegment(go.PathSegment.Bezier,Mt*nt+Zt,(It-St)*et+oe,(Mt-St)*nt+Zt,(It-mt)*et+oe,(Mt-mt)*nt+Zt,(It-St)*et+oe)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(Mt-St+mt*.5)*nt+Zt,It*et+oe,Mt*nt+Zt,(It-St)*et+oe,(Mt-St+mt*.5)*nt+Zt,(It-mt)*et+oe)),_t.add(new go.PathSegment(go.PathSegment.Bezier,Mt*nt+Zt,(It+St)*et+oe,(Mt-St+mt*.5)*nt+Zt,(It+mt)*et+oe,Mt*nt+Zt,(It+St)*et+oe).close()),mt=ce*.2,St=.2,Mt=.5,It=.5;var ge=new go.PathFigure((Mt-St)*nt+Zt,It*et+oe,!0);dt.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,Mt*nt+Zt,(It-St)*et+oe,(Mt-St)*nt+Zt,(It-mt)*et+oe,(Mt-mt)*nt+Zt,(It-St)*et+oe)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(Mt+St)*nt+Zt,It*et+oe,(Mt+mt)*nt+Zt,(It-St)*et+oe,(Mt+St)*nt+Zt,(It-mt)*et+oe)),ge.add(new go.PathSegment(go.PathSegment.Bezier,Mt*nt+Zt,(It+St)*et+oe,(Mt+St)*nt+Zt,(It+mt)*et+oe,(Mt+mt)*nt+Zt,(It+St)*et+oe)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(Mt-St)*nt+Zt,It*et+oe,(Mt-mt)*nt+Zt,(It+St)*et+oe,(Mt-St)*nt+Zt,(It+mt)*et+oe)),mt=ce*.4,St=.4,Mt=.8,It=.5;var me=new go.PathFigure(Mt*nt+Zt,(It-St)*et+oe,!0);dt.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,(Mt+St)*nt+Zt,It*et+oe,(Mt+mt)*nt+Zt,(It-St)*et+oe,(Mt+St)*nt+Zt,(It-mt)*et+oe)),me.add(new go.PathSegment(go.PathSegment.Bezier,Mt*nt+Zt,(It+St)*et+oe,(Mt+St)*nt+Zt,(It+mt)*et+oe,(Mt+mt)*nt+Zt,(It+St)*et+oe)),me.add(new go.PathSegment(go.PathSegment.Bezier,(Mt+St-mt*.5)*nt+Zt,It*et+oe,Mt*nt+Zt,(It+St)*et+oe,(Mt+St-mt*.5)*nt+Zt,(It+mt)*et+oe)),me.add(new go.PathSegment(go.PathSegment.Bezier,Mt*nt+Zt,(It-St)*et+oe,(Mt+St-mt*.5)*nt+Zt,(It-mt)*et+oe,Mt*nt+Zt,(It-St)*et+oe).close()),mt=ce*.8,St=.8,Mt=1,It=.5;var Pe=new go.PathFigure(Mt*nt+Zt,(It-St)*et+oe,!0);return dt.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(Mt+St)*nt+Zt,It*et+oe,(Mt+mt)*nt+Zt,(It-St)*et+oe,(Mt+St)*nt+Zt,(It-mt)*et+oe)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,Mt*nt+Zt,(It+St)*et+oe,(Mt+St)*nt+Zt,(It+mt)*et+oe,(Mt+mt)*nt+Zt,(It+St)*et+oe)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(Mt+St-mt*.5)*nt+Zt,It*et+oe,Mt*nt+Zt,(It+St)*et+oe,(Mt+St-mt*.5)*nt+Zt,(It+mt)*et+oe)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,Mt*nt+Zt,(It-St)*et+oe,(Mt+St-mt*.5)*nt+Zt,(It-mt)*et+oe,Mt*nt+Zt,(It-St)*et+oe).close()),dt}),go.Shape.defineFigureGenerator("Email",function(Bt,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(Bt,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(Bt,nt,et){var dt=new go.Geometry,lt=ce*.4,gt=.4,mt=.5,St=.5,Mt=yt(),It=yt(),Zt=yt(),oe=yt();we(mt,St-gt,mt+lt,St-gt,mt+gt,St-lt,mt+gt,St,.5,Mt,Mt,It,Zt,oe);var Gt=Dt(It.x,It.y),_t=new go.PathFigure(It.x*nt,It.y*et,!0);dt.add(_t),_t.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*nt,St*et,Zt.x*nt,Zt.y*et,oe.x*nt,oe.y*et)),_t.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St+gt)*et,(mt+gt)*nt,(St+lt)*et,(mt+lt)*nt,(St+gt)*et)),_t.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(mt-gt,St,mt-gt,St-lt,mt-lt,St-gt,mt,St-gt,.5,Zt,oe,It,Mt,Mt),_t.add(new go.PathSegment(go.PathSegment.Bezier,It.x*nt,It.y*et,Zt.x*nt,Zt.y*et,oe.x*nt,oe.y*et)),lt=ce*.3,gt=.3,we(mt-gt,St,mt-gt,St-lt,mt-lt,St-gt,mt,St-gt,.5,Zt,oe,It,Mt,Mt),_t.add(new go.PathSegment(go.PathSegment.Line,It.x*nt,It.y*et)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(mt-gt)*nt,St*et,oe.x*nt,oe.y*et,Zt.x*nt,Zt.y*et)),_t.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St+gt)*et,(mt-gt)*nt,(St+lt)*et,(mt-lt)*nt,(St+gt)*et)),_t.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(mt,St-gt,mt+lt,St-gt,mt+gt,St-lt,mt+gt,St,.5,Mt,Mt,It,Zt,oe),_t.add(new go.PathSegment(go.PathSegment.Bezier,It.x*nt,It.y*et,oe.x*nt,oe.y*et,Zt.x*nt,Zt.y*et).close());var _t=new go.PathFigure(.45*nt,0,!0);return dt.add(_t),_t.add(new go.PathSegment(go.PathSegment.Line,.45*nt,.5*et)),_t.add(new go.PathSegment(go.PathSegment.Line,.55*nt,.5*et)),_t.add(new go.PathSegment(go.PathSegment.Line,.55*nt,0).close()),ee(Mt),ee(It),ee(Zt),ee(oe),ee(Gt),dt.spot1=new go.Spot(.25,.45),dt.spot2=new go.Spot(.75,.8),dt}),go.Shape.defineFigureGenerator("Fallout",function(Bt,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,Mt){mt.add(new go.PathSegment(go.PathSegment.Move,(.3+St)*nt,(.8+Mt)*et)),mt.add(new go.PathSegment(go.PathSegment.Line,(.5+St)*nt,(.5+Mt)*et)),mt.add(new go.PathSegment(go.PathSegment.Line,(.1+St)*nt,(.5+Mt)*et)),mt.add(new go.PathSegment(go.PathSegment.Line,(.3+St)*nt,(.8+Mt)*et).close())}return gt(lt,0,0),gt(lt,.4,0),gt(lt,.2,-.3),dt}),go.Shape.defineFigureGenerator("IrritationHazard",function(Bt,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(Bt,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(Bt,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(Bt,nt,et){var dt=new go.Geometry,lt=.5,gt=0,mt=0,St=lt*ce,Mt=.4*Math.SQRT2/2+.5,It=.5-.5*Math.SQRT2/2,Zt=1,oe=.5,Gt=.5,_t=0,ge=new go.PathFigure(Mt*nt,(1-It)*et,!1);return dt.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,Zt*nt,oe*et,Zt*nt,.7*et,Zt*nt,oe*et)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(Gt+gt)*nt,(_t+gt)*et,(.5+lt+gt)*nt,(.5-St+gt)*et,(.5+St+gt)*nt,(.5-lt+gt)*et)),ge.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)),ge.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)),ge.add(new go.PathSegment(go.PathSegment.Move,(.25+gt)*nt,.8*et)),ge.add(new go.PathSegment(go.PathSegment.Line,(.35+gt)*nt,.9*et)),ge.add(new go.PathSegment(go.PathSegment.Line,(.2+gt)*nt,.95*et)),dt}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(Bt,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(Bt,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(Bt,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(Bt,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(Bt,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(Bt,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(Bt,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,Mt=mt,It=Math.PI/4,Zt=4*(1-Math.cos(It))/(3*Math.sin(It)),oe=Zt*.5,Gt=mt,_t=mt,ge=Zt*Gt,me=Zt*_t;gt.add(new go.PathSegment(go.PathSegment.Bezier,(St-Gt)*nt,Mt*et,(St-(ge+Gt)/2)*nt,(Mt+(_t+me)/2)*et,(St-Gt)*nt,(Mt+me)*et)),gt.add(new go.PathSegment(go.PathSegment.Bezier,St*nt,(Mt-_t)*et,(St-Gt)*nt,(Mt-me)*et,(St-ge)*nt,(Mt-_t)*et)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(St+Gt)*nt,Mt*et,(St+ge)*nt,(Mt-_t)*et,(St+Gt)*nt,(Mt-me)*et)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*nt,(1-.595)*et,(St+Gt)*nt,(Mt+me)*et,(St+(ge+Gt)/2)*nt,(Mt+(_t+me)/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 Pe=new go.PathFigure(.2*nt,et,!1);dt.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.8*et));var ye=new go.PathFigure(.8*nt,et,!1);return dt.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.8*et)),dt}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(Bt,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(Bt,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(Bt,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(Bt,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(Bt,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(Bt,nt,et){var dt=new go.Geometry,lt=.5,gt=ce*.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(Bt,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(Bt,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(Bt,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(Bt,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(Bt,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(Bt,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(Bt,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(Bt,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=ce*.1,Mt=.2,It=.9,Zt=new go.PathFigure((Mt-mt)*nt,It*et,!0);dt.add(Zt),Zt.add(new go.PathSegment(go.PathSegment.Bezier,Mt*nt,(It-mt)*et,(Mt-mt)*nt,(It-St)*et,(Mt-St)*nt,(It-mt)*et)),Zt.add(new go.PathSegment(go.PathSegment.Bezier,(Mt+mt)*nt,It*et,(Mt+St)*nt,(It-mt)*et,(Mt+mt)*nt,(It-St)*et)),Zt.add(new go.PathSegment(go.PathSegment.Bezier,Mt*nt,(It+mt)*et,(Mt+mt)*nt,(It+St)*et,(Mt+St)*nt,(It+mt)*et)),Zt.add(new go.PathSegment(go.PathSegment.Bezier,(Mt-mt)*nt,It*et,(Mt-St)*nt,(It+mt)*et,(Mt-mt)*nt,(It+St)*et).close()),mt=.1,St=ce*.1,Mt=.8,It=.9;var oe=new go.PathFigure((Mt-mt)*nt,It*et,!0);return dt.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,Mt*nt,(It-mt)*et,(Mt-mt)*nt,(It-St)*et,(Mt-St)*nt,(It-mt)*et)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(Mt+mt)*nt,It*et,(Mt+St)*nt,(It-mt)*et,(Mt+mt)*nt,(It-St)*et)),oe.add(new go.PathSegment(go.PathSegment.Bezier,Mt*nt,(It+mt)*et,(Mt+mt)*nt,(It+St)*et,(Mt+St)*nt,(It+mt)*et)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(Mt-mt)*nt,It*et,(Mt-St)*nt,(It+mt)*et,(Mt-mt)*nt,(It+St)*et).close()),dt}),go.Shape.defineFigureGenerator("KanbanPost",function(Bt,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(Bt,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 Mt=.1,It=ce*.1,Zt=.1,oe=.9,Gt=new go.PathFigure((Zt-Mt)*nt,oe*et,!0);dt.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Bezier,Zt*nt,(oe-Mt)*et,(Zt-Mt)*nt,(oe-It)*et,(Zt-It)*nt,(oe-Mt)*et)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(Zt+Mt)*nt,oe*et,(Zt+It)*nt,(oe-Mt)*et,(Zt+Mt)*nt,(oe-It)*et)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,Zt*nt,(oe+Mt)*et,(Zt+Mt)*nt,(oe+It)*et,(Zt+It)*nt,(oe+Mt)*et)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(Zt-Mt)*nt,oe*et,(Zt-It)*nt,(oe+Mt)*et,(Zt-Mt)*nt,(oe+It)*et)),Mt=.1,It=ce*.1,Zt=.4,oe=.9;var _t=new go.PathFigure((Zt-Mt)*nt,oe*et,!0);return dt.add(_t),_t.add(new go.PathSegment(go.PathSegment.Bezier,Zt*nt,(oe-Mt)*et,(Zt-Mt)*nt,(oe-It)*et,(Zt-It)*nt,(oe-Mt)*et)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(Zt+Mt)*nt,oe*et,(Zt+It)*nt,(oe-Mt)*et,(Zt+Mt)*nt,(oe-It)*et)),_t.add(new go.PathSegment(go.PathSegment.Bezier,Zt*nt,(oe+Mt)*et,(Zt+Mt)*nt,(oe+It)*et,(Zt+It)*nt,(oe+Mt)*et)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(Zt-Mt)*nt,oe*et,(Zt-It)*nt,(oe+Mt)*et,(Zt-Mt)*nt,(oe+It)*et)),dt}),go.Shape.defineFigureGenerator("RailShipment",function(Bt,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 Zt=.05,oe=ce*.05,Gt=.175,_t=.95,St=new go.PathFigure((Gt-Zt)*nt,_t*et,!0);dt.add(St),St.add(new go.PathSegment(go.PathSegment.Bezier,Gt*nt,(_t-Zt)*et,(Gt-Zt)*nt,(_t-oe)*et,(Gt-oe)*nt,(_t-Zt)*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,(Gt+Zt)*nt,_t*et,(Gt+oe)*nt,(_t-Zt)*et,(Gt+Zt)*nt,(_t-oe)*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,Gt*nt,(_t+Zt)*et,(Gt+Zt)*nt,(_t+oe)*et,(Gt+oe)*nt,(_t+Zt)*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,(Gt-Zt)*nt,_t*et,(Gt-oe)*nt,(_t+Zt)*et,(Gt-Zt)*nt,(_t+oe)*et));var Zt=.05,oe=ce*.05,Gt=.375,_t=.95,Mt=new go.PathFigure((Gt-Zt)*nt,_t*et,!0);dt.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,Gt*nt,(_t-Zt)*et,(Gt-Zt)*nt,(_t-oe)*et,(Gt-oe)*nt,(_t-Zt)*et)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(Gt+Zt)*nt,_t*et,(Gt+oe)*nt,(_t-Zt)*et,(Gt+Zt)*nt,(_t-oe)*et)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,Gt*nt,(_t+Zt)*et,(Gt+Zt)*nt,(_t+oe)*et,(Gt+oe)*nt,(_t+Zt)*et)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(Gt-Zt)*nt,_t*et,(Gt-oe)*nt,(_t+Zt)*et,(Gt-Zt)*nt,(_t+oe)*et));var Zt=.05,oe=ce*.05,Gt=.625,_t=.95,It=new go.PathFigure((Gt-Zt)*nt,_t*et,!0);dt.add(It),It.add(new go.PathSegment(go.PathSegment.Bezier,Gt*nt,(_t-Zt)*et,(Gt-Zt)*nt,(_t-oe)*et,(Gt-oe)*nt,(_t-Zt)*et)),It.add(new go.PathSegment(go.PathSegment.Bezier,(Gt+Zt)*nt,_t*et,(Gt+oe)*nt,(_t-Zt)*et,(Gt+Zt)*nt,(_t-oe)*et)),It.add(new go.PathSegment(go.PathSegment.Bezier,Gt*nt,(_t+Zt)*et,(Gt+Zt)*nt,(_t+oe)*et,(Gt+oe)*nt,(_t+Zt)*et)),It.add(new go.PathSegment(go.PathSegment.Bezier,(Gt-Zt)*nt,_t*et,(Gt-oe)*nt,(_t+Zt)*et,(Gt-Zt)*nt,(_t+oe)*et));var Zt=.05,oe=ce*.05,Gt=.825,_t=.95,ge=new go.PathFigure((Gt-Zt)*nt,_t*et,!0);dt.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,Gt*nt,(_t-Zt)*et,(Gt-Zt)*nt,(_t-oe)*et,(Gt-oe)*nt,(_t-Zt)*et)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(Gt+Zt)*nt,_t*et,(Gt+oe)*nt,(_t-Zt)*et,(Gt+Zt)*nt,(_t-oe)*et)),ge.add(new go.PathSegment(go.PathSegment.Bezier,Gt*nt,(_t+Zt)*et,(Gt+Zt)*nt,(_t+oe)*et,(Gt+oe)*nt,(_t+Zt)*et)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(Gt-Zt)*nt,_t*et,(Gt-oe)*nt,(_t+Zt)*et,(Gt-Zt)*nt,(_t+oe)*et).close());var me=new go.PathFigure(0,et,!1);return dt.add(me),me.add(new go.PathSegment(go.PathSegment.Line,nt,et).close()),dt}),go.Shape.defineFigureGenerator("Warehouse",function(Bt,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,Mt=ce*.05,It=.35,Zt=.775,oe=new go.PathFigure((It-St)*nt,Zt*et,!0);return dt.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,It*nt,(Zt-St)*et,(It-St)*nt,(Zt-Mt)*et,(It-Mt)*nt,(Zt-St)*et)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(It+St)*nt,Zt*et,(It+Mt)*nt,(Zt-St)*et,(It+St)*nt,(Zt-Mt)*et)),oe.add(new go.PathSegment(go.PathSegment.Bezier,It*nt,(Zt+St)*et,(It+St)*nt,(Zt+Mt)*et,(It+Mt)*nt,(Zt+St)*et)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(It-St)*nt,Zt*et,(It-Mt)*nt,(Zt+St)*et,(It-St)*nt,(Zt+Mt)*et).close()),dt}),go.Shape.defineFigureGenerator("ControlCenter",function(Bt,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(Bt,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(Bt,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(Bt,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(Bt,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(Bt,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(Bt,nt,et){var dt=new go.Geometry,lt=.3,gt=ce*.3,mt=.5,St=.7,Mt=new go.PathFigure((mt-lt)*nt,St*et,!0);dt.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St-lt)*et,(mt-lt)*nt,(St-gt)*et,(mt-gt)*nt,(St-lt)*et)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+lt)*nt,St*et,(mt+gt)*nt,(St-lt)*et,(mt+lt)*nt,(St-gt)*et)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St+lt)*et,(mt+lt)*nt,(St+gt)*et,(mt+gt)*nt,(St+lt)*et)),Mt.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(Bt,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(Bt,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(Bt,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(Bt,nt,et){var dt=new go.Geometry,lt=.5,gt=ce*.5,mt=.5,St=.5,Mt=new go.PathFigure((mt-lt)*nt,St*et,!0);dt.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St-lt)*et,(mt-lt)*nt,(St-gt)*et,(mt-gt)*nt,(St-lt)*et)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+lt)*nt,St*et,(mt+gt)*nt,(St-lt)*et,(mt+lt)*nt,(St-gt)*et)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St+lt)*et,(mt+lt)*nt,(St+gt)*et,(mt+gt)*nt,(St+lt)*et)),Mt.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(Bt,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(Bt,nt,et){var dt=new go.Geometry,lt=.5,gt=ce*.5,mt=.5,St=.5,Mt=new go.PathFigure((mt-lt)*nt,St*et,!1);dt.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St-lt)*et,(mt-lt)*nt,(St-gt)*et,(mt-gt)*nt,(St-lt)*et)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+lt)*nt,St*et,(mt+gt)*nt,(St-lt)*et,(mt+lt)*nt,(St-gt)*et)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St+lt)*et,(mt+lt)*nt,(St+gt)*et,(mt+gt)*nt,(St+lt)*et)),Mt.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=ce*.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(Bt,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(Bt,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(Bt,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(Bt,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(Bt,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(Bt,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(Bt,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(Bt,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(Bt,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 Mt=new go.PathFigure(.5*nt,.1*et,!1);return dt.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*nt,.3*et)),Mt.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*nt,.3*et).close()),dt}),go.Shape.defineFigureGenerator("Staircase",function(Bt,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(Bt,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 Mt=new go.PathFigure(nt*.816,et,!0);return dt.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Line,nt*.816,et*(1-.184*4))),Mt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*(1-.184*5))),Mt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*1).close()),dt}),go.Shape.defineFigureGenerator("PC",function(Bt,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 Mt=new go.PathFigure(nt*1,0,!0);return dt.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Line,nt*.4,0)),Mt.add(new go.PathSegment(go.PathSegment.Line,nt*.4,et*.65)),Mt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*.65).close()),dt}),go.Shape.defineFigureGenerator("Plane",function(Bt,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(Bt,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(Bt,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 Mt=new go.PathFigure(nt*(.11+.24133333*2+.028*2),et*.1,!1);return dt.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Line,nt*(.11+.24133333*3+.028*2),et*.1)),Mt.add(new go.PathSegment(go.PathSegment.Line,nt*(.11+.24133333*3+.028*2),et*.8)),Mt.add(new go.PathSegment(go.PathSegment.Line,nt*(.11+.24133333*2+.028*2),et*.8).close()),dt}),go.Shape.defineFigureGenerator("FloppyDisk",function(Bt,nt,et){var dt=new go.Geometry,lt=8,gt=lt*ce,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 Mt=new go.PathFigure(nt*.83,et*1,!1);dt.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Line,nt*.83,et*.5)),Mt.add(new go.PathSegment(go.PathSegment.Line,nt*.17,et*.5)),Mt.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(Bt,nt,et){var dt=Bt?Bt.parameter1:NaN;(isNaN(dt)||dt<0)&&(dt=15),dt=Math.min(dt,nt/3),dt=Math.min(dt,et/3);var lt=dt*ce,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(Bt,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(Bt,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(Bt,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(Bt,nt,et){var dt=new go.Geometry,lt=15,gt=lt*ce,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(Bt,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(Bt,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(Bt,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(Bt,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(Bt,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(Bt,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")},43001: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 Qn={},pi="5.0",Dt={},yt=null,ee=!1,ie=!1,we=null,Ee=!1,jt=null,ce=null,Ve=0;Ve<arguments.length;Ve++){var xe=arguments[Ve];if(xe!==null)switch(typeof xe){case"number":pi=xe.toFixed(1);break;case"string":xe.match(new RegExp("^[0-9]\\.[0-9]+$"))?pi=xe:we=xe;break;case"object":typeof xe.is3D!="undefined"?yt=xe:Dt=xe;break;case"boolean":ee=xe,ie=!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&&!ie&&(ee=!0)),we!==null&&Dt.id===void 0&&(Dt.id=we);var Lt="",ze="",Kt=!1,Je=null,Bt=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 Mt=function(on){return parseFloat(on)>4?parseFloat(on):5};Qn.setHTML5Codebase=function(on,jn){ce=on,fn(on,jn)},Qn.setJavaCodebase=Qn.setJavaCodebaseVersion=Qn.isCompiledInstalled=Qn.setPreCompiledScriptPath=Qn.setPreCompiledResourcePath=function(){},Qn.setHTML5CodebaseVersion=function(on,jn){var Pn=parseFloat(on);if(Pn!==NaN&&Pn<5){console.log("The GeoGebra HTML5 codebase version "+Pn+" is deprecated. Using version latest instead.");return}jt=on,Yt(on,jn)},Qn.getHTML5CodebaseVersion=function(){return Bt},Qn.getParameters=function(){return Dt},Qn.setFontsCSSURL=function(on){mt=on},Qn.setGiacJSURL=function(on){},Qn.setJNLPFile=function(on){Lt=on},Qn.setJNLPBaseDir=function(on){},Qn.inject=function(){function on(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var jn="auto",Pn=Dt.id,di,Re=!1,ve=0;ve<arguments.length;ve++){var Ye=arguments[ve];typeof Ye=="string"?(Ye=Ye.toLowerCase(),Ye.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?jn=Ye:Pn=arguments[ve]):typeof Ye=="boolean"?Re=Ye:Ye instanceof HTMLElement&&(di=Ye)}mi();function mi(){if(!Ee){setTimeout(mi,200);return}jn=Sn(jn);var Cn=di||document.getElementById(Pn);if(!Cn){console.log("possibly bug on ajax loading? ");return}if(Qn.removeExistingApplet(Cn,!1),Dt.width===void 0&&Cn.clientWidth&&(Dt.width=Cn.clientWidth),Dt.height===void 0&&Cn.clientHeight&&(Dt.height=Cn.clientHeight),!(Dt.width&&Dt.height)&&jn==="html5"&&(delete Dt.width,delete Dt.height),Je=jn,jn==="screenshot")ye(Cn,Dt);else{var Ot=!1;Dt.hasOwnProperty("playButton")&&Dt.playButton||Dt.hasOwnProperty("clickToLoad")&&Dt.clickToLoad?Ot=!0:Dt.hasOwnProperty("playButtonAutoDecide")&&Dt.playButtonAutoDecide&&(Ot=(!It()||on())&&Zt()),Ot?(Je="screenshot",wn(Cn,Dt,Re,jn)):Pe(Cn,Dt,Re)}}};function It(){try{return window.self!==window.top}catch(on){return!0}}function Zt(){return Dt.hasOwnProperty("screenshotGenerator")&&Dt.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Qn.getViews=function(){return yt},Qn.isJavaInstalled=function(){return!1};var oe=function(on){var jn=function(ve){var Ye=JSON.parse(ve),mi=function(At){return At.type=="G"||At.type=="E"},Cn=Ye.elements?Ye.elements.filter(mi)[0]:Ye;if(!Cn||!Cn.url){Pn();return}Dt.fileName=Cn.url,Gt(Cn.settings||{}),yt.is3D=!0;var Ot="https://www.geogebra.org/images/";Qn.setPreviewImage(dt||Cn.previewUrl,Ot+"GeoGebra_loading.png",Ot+"applet_play.png"),on()},Pn=function(){Dt.onError&&Dt.onError(),_n("Error: Fetching material (id "+Dt.material_id+") failed.",Dt)},di=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Re="/materials/"+Dt.material_id+"?scope=basic";_t("https://"+di+"/api/proxy.php?path="+encodeURIComponent(Re),jn,Pn)};function Gt(on){var jn=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Pn){on[Pn]=!!on[Pn]}),jn.forEach(function(Pn){Dt[Pn]===void 0&&on[Pn]!==void 0&&(Dt[Pn]=on[Pn])}),Dt.showToolBarHelp===void 0&&(Dt.showToolBarHelp=Dt.showToolBar)}function _t(on,jn,Pn){var di=new XMLHttpRequest;di.open("GET",on),di.onload=function(){jn(di.responseText)},di.onerror=Pn,di.send()}Qn.isHTML5Installed=function(){return!0},Qn.getLoadedAppletType=function(){return Je},Qn.setPreviewImage=function(on,jn,Pn){dt=on,lt=jn,gt=Pn},Qn.removeExistingApplet=function(on,jn){var Pn;typeof on=="string"&&(on=document.getElementById(on)),Je=null;var di=null;for(Pn=0;Pn<on.childNodes.length;Pn++){var Re=on.childNodes[Pn],ve=Re.className;ve==="applet_screenshot"?jn?(Re.style.display="block",Je="screenshot"):Re.style.display="none":ve!=="applet_scaler prerender"&&(on.removeChild(Re),di=ve&&ve.indexOf("appletParameters")!=-1?Re.id:null,Pn--)}var Ye=Dt.id!==void 0?Dt.id:di,mi=window[Ye];mi&&typeof mi.getBase64=="function"&&(mi.remove(),window[Ye]=null)},Qn.refreshHitPoints=function(){if(Mt(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var on=Qn.getAppletObject();return on&&typeof on.recalculateEnvironments=="function"?(on.recalculateEnvironments(),!0):!1},Qn.startAnimation=function(){var on=Qn.getAppletObject();return on&&typeof on.startAnimation=="function"?(on.startAnimation(),!0):!1},Qn.stopAnimation=function(){var on=Qn.getAppletObject();return on&&typeof on.stopAnimation=="function"?(on.stopAnimation(),!0):!1},Qn.getAppletObject=function(){var on=Dt.id!==void 0?Dt.id:"ggbApplet";return window[on]},Qn.resize=function(){};var ge=function(on,jn,Pn){var di=document.createElement("param");di.setAttribute("name",jn),di.setAttribute("value",Pn),on.appendChild(di)},me=function(on){return on&&on!=="false"},Pe=function(on,jn,Pn){Mt(Bt)<=4.2&&(Pn=!0);var di=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Bt||ggbHTML5LoadedCodebaseIsWebSimple&&!et)&&(di=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Re=document.createElement("div");Re.classList.add("appletParameters","notranslate");var ve=jn.width,Ye=jn.height;if(jn.disableAutoScale=jn.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():jn.disableAutoScale,jn.width!==void 0)if(Mt(Bt)<=4.4)me(jn.showToolBar)&&(jn.height-=7),me(jn.showAlgebraInput)&&(jn.height-=37),jn.width<605&&me(jn.showToolBar)&&(jn.width=605,ve=605);else{var mi=100;(me(jn.showToolBar)||me(jn.showMenuBar))&&(jn.hasOwnProperty("customToolBar")&&(jn.customToolbar=jn.customToolBar),mi=me(jn.showMenuBar)?245:155),ve<mi&&(jn.width=mi,ve=mi)}Re.style.border="none",Re.style.display="inline-block";for(var Cn in jn)jn.hasOwnProperty(Cn)&&Cn!=="appletOnLoad"&&Re.setAttribute("data-param-"+Cn,jn[Cn]);mt&&Re.setAttribute("data-param-fontscssurl",mt),Qn.resize=function(){GGBAppletUtils.responsiveResize(on,jn)},window.addEventListener("resize",function(Qe){Qn.resize()});var Ot=typeof jn.appletOnLoad=="function"?jn.appletOnLoad:function(){};if(!Pn&&jn.width!==void 0){jn.hasOwnProperty("showSplash")||Re.setAttribute("data-param-showSplash","false");var At=on.querySelector(".applet_scaler.prerender"),wt=At!==null;if(wt)var Nt=At.querySelector(".ggb_preview");else{var Nt=Oe(ve,Ye,jn.borderColor,!1);At=document.createElement("div"),At.className="applet_scaler",At.style.position="relative",At.style.display="block",At.style.width=ve+"px",At.style.height=Ye+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(At,"66%"),Mt(Bt)>=5?(jn.appletOnLoad=function(Qe){var un=on.querySelector(".ggb_preview");un&&un.parentNode.removeChild(un),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(At),window.GGBT_wsf_view&&$(window).trigger("resize"),Ot(Qe)},wt||At.appendChild(Nt)):Re.appendChild(Nt),At.appendChild(Re),wt||on.appendChild(At),setTimeout(function(){Qn.resize()},1)}else{var Vt=document.createElement("div");Vt.className="applet_scaler",Vt.style.position="relative",Vt.style.display="block",Vt.appendChild(Re),on.appendChild(Vt),jn.appletOnLoad=function(Qe){Qn.resize(),Ot(Qe)}}function kt(Qe,un){un&&typeof un.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Qe,un.appletOnLoad):renderGGBElement(Qe),_n("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",un)}function $t(Qe,un){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Qe,params:un}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Nn){kt(Nn.article,Nn.params)}),html5AppletsToProcess=null)},Mt(Bt)<5&&(Qe.className+=" geogebraweb")):kt(Qe,un)}if(di){scriptLoadStarted=!0;for(var nn=0;nn<Re.childNodes.length;nn++){var dn=Re.childNodes[nn].tagName;dn==="TABLE"&&(Re.removeChild(Re.childNodes[nn]),nn--)}if(ggbHTML5LoadedScript!==null){var En=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');En!=null&&En.parentNode.removeChild(En)}var De=document.createElement("script"),Ce=function(){$t(Re,jn)};De.src=ze+nt,ggbHTML5LoadedCodebaseIsWebSimple=et,ggbHTML5LoadedCodebaseVersion=Bt,ggbHTML5LoadedScript=De.src,_n("GeoGebra HTML5 codebase loaded: '"+ze+"'.",jn),!ce&&(!jt||jt=="5.0")?(et?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Ce()):ze.requirejs?__webpack_require__.e(7963).then(function(){var Qe=[__webpack_require__(87963)];Ce.apply(null,Qe)}.bind(this)).catch(__webpack_require__.oe):(De.onload=Ce,on.appendChild(De))}else $t(Re,jn);jn.height=Ye,jn.width=ve},ye=function(on,jn,Pn){var di=Oe(jn.width,jn.height,jn.borderColor,Pn),Re=document.createElement("div");Re.style.position="relative",Re.style.display="block",Re.style.width=jn.width+"px",Re.style.height=jn.height+"px",Re.className="applet_screenshot applet_scaler"+(Pn?" applet_screenshot_play":""),Re.appendChild(di);var ve=GGBAppletUtils.getScale(jn,on,Pn);Pn?(on.appendChild(ln()),window.GGBT_wsf_view||(on.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Re,"66%"),on.appendChild(Re),ve!==1&&!isNaN(ve)&&(GGBAppletUtils.scaleElement(Re,ve),Re.style.width=jn.width+"px",Re.style.height=jn.height+"px",Re.parentNode.style.width=jn.width*ve+"px",Re.parentNode.style.height=jn.height*ve+"px"),Qn.resize=function(){He(on,di,Re,Pn)},window.addEventListener("resize",function(Ye){Qn.resize()}),Qn.resize()};function He(on,jn,Pn,di){if(on.contains(jn)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(on.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(on)}var Re=GGBAppletUtils.getScale(Dt,on,di);Pn.parentNode!==null&&(!isNaN(Re)&&Re!==1?(GGBAppletUtils.scaleElement(Pn,Re),Pn.parentNode.style.width=Dt.width*Re+"px",Pn.parentNode.style.height=Dt.height*Re+"px"):(GGBAppletUtils.scaleElement(Pn,1),Pn.parentNode.style.width=Dt.width+"px",Pn.parentNode.style.height=Dt.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(on),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Qn.onExitFullscreen=function(on,jn){jn.appendChild(on)};var wn=function(on,jn,Pn,di){ye(on,jn,!0);for(var Re=function(){var mi=[];for(Ye=0;Ye<on.childNodes.length;Ye++)mi.push(on.childNodes[Ye]);if(window.GGBT_wsf_view){var Cn=window.GGBT_wsf_view.renderFullScreen(on,jn.id),Ot=document.getElementById("fullscreencontainer"),At=jQuery(on).find(".fullscreencontent");At.length>0?(Cn.remove(),At.attr("id","fullscreencontent").show(),jQuery(Ot).append(At),window.dispatchEvent(new Event("resize"))):Pe(Cn,jn,!1),window.GGBT_wsf_view.launchFullScreen(Ot)}else Je=di,Pe(on,jn,!1);if(!window.GGBT_wsf_view)for(Ye=0;Ye<mi.length;Ye++)on.removeChild(mi[Ye])},ve=on.getElementsByClassName("ggb_preview_play"),Ye=0;Ye<ve.length;Ye++)ve[Ye].addEventListener("click",Re,!1),ve[Ye].addEventListener("ontouchstart",Re,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(on),Zt()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},ln=function(){var on=document.createElement("div");if(on.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var jn='.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");}',Pn=document.createElement("style");Pn.styleSheet?Pn.styleSheet.cssText=jn:Pn.appendChild(document.createTextNode(jn)),document.getElementsByTagName("head")[0].appendChild(Pn)}return on},Oe=function(on,jn,Pn,di){var Re=document.createElement("div");Re.className="ggb_preview",Re.style.position="absolute",Re.style.zIndex="90",Re.style.width=on-2+"px",Re.style.height=jn-2+"px",Re.style.top="0px",Re.style.left="0px",Re.style.overflow="hidden",Re.style.backgroundColor="white";var ve="lightgrey";Pn!==void 0&&(Pn==="none"?ve="transparent":ve=Pn),Re.style.border="1px solid "+ve;var Ye=document.createElement("img");if(Ye.style.position="relative",Ye.style.zIndex="1000",Ye.style.top="-1px",Ye.style.left="-1px",dt!==null&&Ye.setAttribute("src",dt),Ye.style.opacity=.7,lt!==null){var mi,Cn,Ot;if(!di){mi=document.createElement("img"),mi.style.position="absolute",mi.style.zIndex="1001",mi.style.opacity=1,Ye.style.opacity=.3,Cn=360,Cn>on/4*3&&(Cn=on/4*3),Ot=Cn/5.8,mi.setAttribute("src",lt),mi.setAttribute("width",Cn),mi.setAttribute("height",Ot);var At=(on-Cn)/2,wt=(jn-Ot)/2;mi.style.left=At+"px",mi.style.top=wt+"px",Re.appendChild(mi)}}return Re.appendChild(Ye),Re},Sn=function(on){return on=on.toLowerCase(),on==="html5"||on==="screenshot"?on:"html5"},se=["web","webSimple","web3d","tablet","tablet3d","phone"],Yt=function(on,jn){if(Bt=on,jn){fn(Bt,!0);return}var Pn=!ee;if(Pn){var di=Mt(Bt);!isNaN(di)&&di<4.4&&(Pn=!1)}var Re,ve;window.location.protocol.substr(0,4)==="http"?Re=window.location.protocol:Re="http:";var Ye=Bt.indexOf("//");Ye>0?ve=Bt:Ye===0?ve=Re+Bt:ve="https://www.geogebra.org/apps/5.2.814.0/";for(var mi in se)if(Bt.slice(se[mi].length*-1)===se[mi]||Bt.slice((se[mi].length+1)*-1)===se[mi]+"/"){fn(ve,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Pn&&!yt.is3D&&!yt.AV&&!yt.SV&&!yt.CV&&!yt.EV2&&!yt.CP&&!yt.PC&&!yt.DA&&!yt.FI&&!yt.PV&&!me(Dt.showToolBar)&&!me(Dt.showMenuBar)&&!me(Dt.showAlgebraInput)&&!me(Dt.enableRightClick)&&(!Dt.appName||Dt.appName=="classic")?ve+="webSimple/":ve+="web3d/",fn(ve,!1)},fn=function(on,jn){if(on.requirejs){ze=on;return}on.slice(-1)!=="/"&&(on+="/"),ze=on,jn===null&&(jn=on.indexOf("http")===-1),Kt=jn,nt="web.nocache.js",et=!1;var Pn=ze.split("/");Pn.length>1&&(!jn&&Pn[Pn.length-2]==="webSimple"?(nt="webSimple.nocache.js",et=!0):se.indexOf(Pn[Pn.length-2])>=0&&(nt=Pn[Pn.length-2]+".nocache.js")),Pn=on.split("/"),Bt=Pn[Pn.length-3],Bt.substr(0,4)==="test"?Bt=Bt.substr(4,1)+"."+Bt.substr(5,1):(Bt.substr(0,3)==="war"||Bt.substr(0,4)==="beta")&&(Bt="5.0");var di=parseFloat(Bt);di!==NaN&&di<5&&on.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+di+" is deprecated. Using version latest instead."),Yt("5.0",jn))},_n=function(on,jn){window.console&&window.console.log&&(!jn||typeof jn.showLogging=="undefined"||jn.showLogging&&jn.showLogging!=="false")&&console.log(on)};Dt.material_id!==void 0?oe(In):In();function In(){var on=pi;jt!==null?on=jt:parseFloat(on)<5&&(on="5.0"),Yt(on,!1),ce!==null&&fn(ce,Kt),Ee=!0}return Qn},GGBAppletUtils=function(){"use strict";function Qn(){return window.GGBT_wsf_edit!==void 0}function pi(Ee,jt){jt!=1?(Ee.style.transformOrigin="0% 0% 0px",Ee.style.webkitTransformOrigin="0% 0% 0px",Ee.style.transform="scale("+jt+","+jt+")",Ee.style.webkitTransform="scale("+jt+","+jt+")",Ee.style.maxWidth="initial",Ee.querySelector(".ggb_preview")!==null&&(Ee.querySelector(".ggb_preview").style.maxWidth="initial"),Ee.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Ee.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Ee.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Ee.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Ee.style.transform="none",Ee.style.webkitTransform="none")}function Dt(Ee,jt,ce,Ve,xe,Lt){var ze=null;if(Lt!=null&&Lt!="")for(var Kt=Ee.parentNode;Kt!=null;)if((" "+Kt.className+" ").indexOf(" "+Lt+" ")>-1){ze=Kt;break}else Kt=Kt.parentNode;var Je=0,Bt=0,nt=0,et=0,dt=0,lt=0,gt=0;if(ze)Je=ze.offsetWidth,Bt=Math.max(Ve?ze.offsetWidth:0,ze.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Je=Math.min(window.innerWidth,document.documentElement.clientWidth),Bt=Math.min(window.innerHeight,document.documentElement.clientHeight),nt=Je):(Je=window.innerWidth,Bt=window.innerHeight,nt=window.innerWidth),Ee){var mt=Ee.getBoundingClientRect();mt.left>0&&mt.left<=Je&&(xe===void 0||!xe)&&(document.dir==="rtl"?(dt=Je-mt.width-mt.left,lt=nt<=480?10:30):(lt=mt.left,dt=nt<=480?10:30),et=lt+dt)}if(Ee&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var St=Ee.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(et=40,gt=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(et=0,gt=40)}}return Ee&&((ce===void 0||!ce)&&jt>0&&jt+et<Je?Je=jt:Je-=et,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ce===void 0||!ce)&&(Bt-=gt)),{width:Je,height:Bt}}function yt(Ee,jt,ce,Ve,xe){if(Ee.isScreenshoGenerator)return 1;var Lt=Ve!==void 0&&Ve,ze=Ee.noScaleMargin!=null&&Ee.noScaleMargin,Kt=function(St){return St&&St!=="false"},Je=Kt(Ee.autoHeight),Bt=Dt(jt,Ee.width,ce,Je,Lt&&window.GGBT_wsf_view||ze,xe),nt=parseInt(Bt.width),et=Ee.width,dt=Ee.height;if(et===void 0){var lt=jt.querySelector(".appletParameters");lt&&(et=lt.offsetWidth,dt=lt.offsetHeight)}var gt=nt/et,mt=Lt?1:Bt.height/dt;return ce!==void 0&&!ce&&(gt=Math.min(1,gt),mt=Math.min(1,mt)),Math.min(gt,mt)}function ee(Ee,jt,ce){var Ve=1,xe,Lt=!1;if(Ee.hasOwnProperty("allowUpscale")&&(Lt=Ee.allowUpscale),Ee.hasOwnProperty("scale")&&(Ve=parseFloat(Ee.scale),(isNaN(Ve)||Ve===null||Ve===0)&&(Ve=1),Ve>1&&(Lt=!0)),jt&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Lt=!0),!(Ee.hasOwnProperty("disableAutoScale")&&Ee.disableAutoScale))xe=yt(Ee,jt,Lt,ce,Ee.scaleContainerClass);else return Ve;return Lt&&(!Ee.hasOwnProperty("scale")||Ve===1)?xe:Math.min(Ve,xe)}function ie(Ee){var jt=Math.min(window.innerWidth,document.documentElement.clientWidth),ce=Math.min(window.innerHeight,document.documentElement.clientHeight),Ve=Ee.getBoundingClientRect(),xe=(jt-Ve.width)/2,Lt=(ce-Ve.height)/2;Lt<0&&(Lt=0),Ee.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(xe<40?Ee.style.left="40px":Ee.style.left=xe+"px",Ee.style.top=Lt+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Lt<40?Ee.style.top="40px":Ee.style.top=Lt+"px",Ee.style.left=xe+"px")}function we(Ee,jt){var ce=Ee.querySelector(".appletParameters");if(ce){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(jt.id!==ce.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Ee)}if(ce.parentElement&&/fullscreen/.test(ce.parentElement.className))return;var Ve=ee(jt,Ee);Qn()&&ce.setAttribute("data-param-scale",Ve);for(var xe=null,Lt=0;Lt<Ee.childNodes.length;Lt++)if(Ee.childNodes[Lt].className!==void 0&&Ee.childNodes[Lt].className.match(/^applet_scaler/)){xe=Ee.childNodes[Lt];break}if(xe!==null&&xe.querySelector(".noscale")!==null)return;var ze=jt.id!==void 0?jt.id:"ggbApplet",Kt=window[ze];(Kt==null||!Kt.recalculateEnvironments)&&xe!==null&&!xe.className.match(/fullscreen/)&&(xe.parentNode.style.transform="",!isNaN(Ve)&&Ve!==1?(xe.parentNode.style.width=jt.width*Ve+"px",xe.parentNode.style.height=jt.height*Ve+"px",pi(xe,Ve)):(pi(xe,1),xe.parentNode.style.width=jt.width+"px",xe.parentNode.style.height=jt.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&ie(Ee),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(ce).parents(".content-added-content"))}}return{responsiveResize:we,isFlexibleWorksheetEditor:Qn,positionCenter:ie,getScale:ee,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 Qn=n.location.search;return Qn.indexOf(J)!=-1||Qn.indexOf(K)!=-1}function q(Qn,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(Qn){var pi=s[L].bindings;s[L].bindings=function(){for(var Dt=pi?pi():{},yt=Qn[webModule.__softPermutationId],ee=O;ee<yt.length;ee++){var ie=yt[ee];Dt[ie[O]]=ie[P]}return Dt}};var t;function u(){return v(),t}function v(){if(!t){var Qn=o.createElement(Q);if(Qn.id=L,Qn.style.cssText=R+S,Qn.tabIndex=-1,o.body.appendChild(Qn),t=Qn.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var pi=document.compatMode==U?V:W;t.write(pi+X),t.close()}}}function w(Qn){function pi(yt){function ee(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var ie=ee();if(ie){yt();return}function we(){if(!ie){if(!ee())return;ie=!0,yt(),o.removeEventListener&&o.removeEventListener(Z,we,!1),Ee&&clearInterval(Ee)}}o.addEventListener&&o.addEventListener(Z,we,!1);var Ee=setInterval(function(){we()},$)}function Dt(yt){var ee=u(),ie=ee.body,we=ee.createElement(_);we.language=ab,we.crossOrigin=W,we.src=yt,webModule.__errFn&&(we.onerror=function(){webModule.__errFn(L,new Error(bb+yt))}),ie.appendChild(we)}pi(function(){Dt(Qn)})}webModule.__startLoadingFragment=function(Qn){return C(Qn)},webModule.__installRunAsyncCode=function(Qn){var pi=u(),Dt=pi.body,yt=pi.createElement(_);yt.language=ab,yt.text=Qn,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(Qn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Qn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Qn){var pi=c[Qn];return pi==null?null:pi},r=d,webModule.__errFn=e}function B(){function Qn(Ee){var jt=Ee.lastIndexOf(rb);jt==-1&&(jt=Ee.length);var ce=Ee.indexOf(sb);ce==-1&&(ce=Ee.length);var Ve=Ee.lastIndexOf(tb,Math.min(ce,jt));return Ve>=O?Ee.substring(O,Ve+P):W}function pi(Ee){if(!Ee.match(/^\w+:\/\//)){var jt=o.createElement(ub);jt.src=Ee+vb,Ee=Qn(jt.src)}return Ee}function Dt(){var Ee=__gwt_getMetaProperty(wb);return Ee!=null?Ee:W}function yt(){for(var Ee=o.getElementsByTagName(_),jt=O;jt<Ee.length;++jt)if(Ee[jt].src.indexOf(xb)!=-1)return Qn(Ee[jt].src);return W}function ee(){var Ee=o.getElementsByTagName(yb);return Ee.length>O?Ee[Ee.length-P].href:W}function ie(){var Ee=o.location;return Ee.href==Ee.protocol+zb+Ee.host+Ee.pathname+Ee.search+Ee.hash}var we=Dt();return we==W&&(we=yt()),we==W&&(we=ee()),we==W&&ie()&&(we=Qn(o.location.href)),we=pi(we),we}function C(Qn){return Qn.match(/^\//)||Qn.match(/^[a-zA-Z]+:\/\//)?Qn:webModule.__moduleBase+Qn}function D(){var Qn=[],pi=O,Dt=[],yt=[];function ee(Ee){var jt=yt[Ee](),ce=Dt[Ee];if(jt in ce)return jt;var Ve=[];for(var xe in ce)Ve[ce[xe]]=xe;throw r&&r(Ee,Ve,jt),null}if(__gwt_isKnownPropertyValue=function(Ee,jt){return jt in Dt[Ee]},webModule.__getPropMap=function(){var Ee={};for(var jt in Dt)Dt.hasOwnProperty(jt)&&(Ee[jt]=ee(jt));return Ee},webModule.__computePropValue=ee,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var ie;try{ie=Cb;var we=ie.indexOf(Db);we!=-1&&(pi=parseInt(ie.substring(we+P),$),ie=ie.substring(O,we))}catch(Ee){}return webModule.__softPermutationId=pi,C(ie+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})()},46699:function(Qn,pi,Dt){"use strict";Dt.d(pi,{Ax:function(){return we},Ds:function(){return Ee},KI:function(){return ce},SI:function(){return ie},f1:function(){return ee}});var yt=Dt(346);function ee(Ve){let xe=!0;if(Ve.length>0){for(let Lt=0;Lt<Ve.length;Lt++)if(Ve[Lt].compile_success==0||!Ve[Lt].compile_success){xe=!1;break}}else xe=!1;return xe}function ie(Ve,xe=""){let Lt=[];for(let ze=0;ze<Ve.length;ze++){let Kt=Ve[ze],Je=xe?`${xe}/${Kt.name}`:`${Kt.name}`;Lt.push({title:Kt.name,type:Kt.type,isLeaf:Kt.type!=="tree",key:Je})}return Lt}function we(Ve,xe,Lt){for(let ze=0;ze<Ve.length;ze++){let Kt=Ve[ze];if(Kt.key===xe){Kt.children=Lt;break}Kt.children&&we(Kt.children,xe,Lt)}return Ve}function Ee(Ve,xe,Lt){let ze;return function(){let Kt=this,Je=arguments,Bt=function(){ze=null,Lt||Ve.apply(Kt,Je)},nt=Lt&&!ze;clearTimeout(ze),ze=setTimeout(Bt,xe),nt&&Ve.apply(Kt,Je)}}const jt=!0,ce=yt.Z.API_SERVER},9507:function(Qn,pi,Dt){"use strict";Dt.d(pi,{Z:function(){return ze}});var yt=Dt(59301),ee={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},ie=Dt(92310),we=Dt.n(ie),Ee=Dt(29787),jt=Dt(2859),ce=Dt(38986),Ve=Dt(51257),xe=(Kt,Je,Bt)=>new Promise((nt,et)=>{var dt=mt=>{try{gt(Bt.next(mt))}catch(St){et(St)}},lt=mt=>{try{gt(Bt.throw(mt))}catch(St){et(St)}},gt=mt=>mt.done?nt(mt.value):Promise.resolve(mt.value).then(dt,lt);gt((Bt=Bt.apply(Kt,Je)).next())}),ze=({data:Kt,className:Je,fullWidth:Bt,style:nt={},onClose:et,onOk:dt,showFullTools:lt,noAssociationId:gt})=>{const mt=(0,yt.useRef)(null),St=(0,yt.useRef)(null),Mt=(0,yt.useRef)(null),It=(0,yt.useRef)(null),[Zt,oe]=(0,yt.useState)(!1),[Gt,_t]=(0,yt.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,yt.useEffect)(()=>(Mt.current||(Mt.current=document.createElement("style"),document.head.appendChild(Mt.current)),Kt!=null&&Kt.visible?(document.body.setAttribute("data-custom","y-hidden"),Mt.current.innerHTML=" html { overflow-y: hidden; }",Kt!=null&&Kt.src&&ge()):(document.body.removeAttribute("data-custom"),Mt.current&&(document.head.removeChild(Mt.current),Mt.current=null)),()=>{document.body.removeAttribute("data-custom"),Mt.current&&(document.head.removeChild(Mt.current),Mt.current=null)}),[Kt==null?void 0:Kt.visible]);const ge=()=>xe(void 0,null,function*(){oe(!0),_t("\u6B63\u5728\u52A0\u8F7D\u4E2D");const He=yield(0,Ve.ZJ)(Kt==null?void 0:Kt.src);mt.current.src="",mt.current.src=He,mt.current.onload=function(){ye()},oe(!1),_t("")}),me=He=>xe(void 0,null,function*(){oe(!0),_t("\u6B63\u5728\u4FDD\u5B58\u4E2D");const wn=yield(0,ce.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Kt.title,file:He.dataUrl}});wn!=null&&wn.id&&!gt?(yield(0,ce.ZP)(`/api/attachments/${Kt.id}/add_subitem.json`,{method:"post",body:{subitem_id:wn==null?void 0:wn.id,settings:JSON.stringify(He.state)}})).status===0&&dt():wn!=null&&wn.id&&dt(wn),oe(!1),_t("")}),Pe=()=>{const He=document.querySelector('a[href="https://markerjs.com/"]');He&&He.parentNode&&(He.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(ln=>{const Oe=document.querySelector(ln.name);Oe&&Oe.setAttribute("title",ln.title)})},ye=()=>{St.current=new jt.hP(mt.current),St.current.targetRoot=It.current,St.current.addEventListener("render",me),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(),Kt!=null&&Kt.snapshotData&&St.current.restoreState(Kt.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Pe()},300)};return yt.createElement(yt.Fragment,null,(Kt==null?void 0:Kt.visible)&&yt.createElement(Ee.Z,{spinning:Zt,tip:Gt,style:{position:"absolute",width:"100vw"}},yt.createElement("div",{ref:It,className:we()(ee.imageDimensions,Je,Bt?ee.fullWidth:""),style:nt},yt.createElement("img",{className:ee.img,ref:mt}))))}},76562:function(Qn,pi,Dt){"use strict";var yt=Dt(59301),ee=Dt(77019),ie=Dt(5269),we=Dt(20554),Ee=Dt(99571),jt=Dt(76902),ce=Dt(99587),Ve=Dt(48136),xe=Dt(59301);const Lt=(0,yt.forwardRef)(({callback:ze,showSaveButton:Kt,value:Je=""},Bt)=>{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:xe.createElement(ee.Z,{className:ce.Z.lists,gutter:[10,10]},et.map((St,Mt)=>xe.createElement(ie.Z,{flex:"110px",className:ce.Z.item},xe.createElement("div",null,xe.createElement(jt.Z,{value:`$$${St.value}$$`}),St.name),xe.createElement("div",{className:ce.Z.children},St.children.map((It,Zt)=>xe.createElement("div",{key:Zt},xe.createElement("h1",null,It.name),xe.createElement(ee.Z,{gutter:[10,10]},It.data.map((oe,Gt)=>xe.createElement(ie.Z,{key:Gt,onClick:()=>lt(oe),className:ce.Z.diamond},xe.createElement(jt.Z,{value:"`$$"+oe.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:xe.createElement(ee.Z,{className:ce.Z.lists,gutter:[10,10]},dt.map((St,Mt)=>xe.createElement(ie.Z,{flex:"110px",className:ce.Z.item},xe.createElement("div",null,xe.createElement(jt.Z,{value:"`$$"+St.value+"$$`"}),St.name),xe.createElement("div",{className:ce.Z.children},St.children.map((It,Zt)=>xe.createElement("div",{key:Zt},It.name&&xe.createElement("h1",null,It.name),xe.createElement(ee.Z,{gutter:[10,10]},It.data.map((oe,Gt)=>xe.createElement(ie.Z,{key:Gt,onClick:()=>lt(oe),className:ce.Z.diamond},xe.createElement(jt.Z,{value:"`$$"+oe.value+"$$`"}))))))))))}],mt=()=>{var St=document.createElement("div");St.innerHTML=nt.current.getValue();var Mt=St.innerText;return ze&&ze(Mt),Mt};return(0,yt.useImperativeHandle)(Bt,()=>({getData:mt})),xe.createElement("div",{className:ce.Z.mathWrap},xe.createElement(we.default,{defaultActiveKey:"1",items:gt}),xe.createElement("math-field",{locale:"zh_cn",className:ce.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:nt,style:{width:800,marginTop:30,fontSize:18}},Je||""),Kt&&xe.createElement("div",{className:ce.Z.button},xe.createElement(Ee.ZP,{size:"large",onClick:mt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});pi.Z=Lt},28426:function(Qn,pi,Dt){"use strict";var yt=Dt(59301),ee=Dt(93314),ie=Dt(99571),we=Object.defineProperty,Ee=Object.defineProperties,jt=Object.getOwnPropertyDescriptors,ce=Object.getOwnPropertySymbols,Ve=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,Lt=(Bt,nt,et)=>nt in Bt?we(Bt,nt,{enumerable:!0,configurable:!0,writable:!0,value:et}):Bt[nt]=et,ze=(Bt,nt)=>{for(var et in nt||(nt={}))Ve.call(nt,et)&&Lt(Bt,et,nt[et]);if(ce)for(var et of ce(nt))xe.call(nt,et)&&Lt(Bt,et,nt[et]);return Bt},Kt=(Bt,nt)=>Ee(Bt,jt(nt));const Je=({img:Bt,buttonProps:nt={},styles:et={},customText:dt,ButtonText:lt,ButtonClick:gt,Buttonclass:mt,ButtonTwo:St,imgStyles:Mt,loading:It=!1,className:Zt=""})=>yt.createElement("section",{className:`tc animated fadeIn ${Zt}`,style:ze({color:"#999",margin:"100px auto",visibility:It?"hidden":"visible"},et)},yt.createElement("img",{src:Bt||ee,style:Kt(ze({},Mt),{pointerEvents:"none",userSelect:"none"})}),yt.createElement("p",{className:"mt20 font14"},dt||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),lt&&yt.createElement(ie.ZP,ze({className:mt,onClick:gt},nt),lt),St&&St);pi.Z=Je},43155:function(Qn,pi,Dt){"use strict";Dt.d(pi,{Q:function(){return jt}});var yt=Dt(59301),ee=Dt(82326),ie=Dt(47889),we=Dt(71051),Ee=Dt(59301),jt=(Ve=>(Ve[Ve.Number=1]="Number",Ve[Ve.Percent=2]="Percent",Ve))(jt||{});const ce=({value:Ve,onChange:xe,disabled:Lt,hidePercentOption:ze=!1,percentType:Kt="select"})=>{const Je=(0,yt.useMemo)(()=>ze?1:2,[ze]),[Bt,nt]=(0,yt.useState)(Je);console.log(Bt);const et=lt=>Ve.type===1?`${lt}\u5206`:`${lt}%`,dt=(0,yt.useCallback)(lt=>{if(Bt===1){const gt=lt.replace("\u5206","");return isNaN(parseInt(gt,10))?0:gt}else return lt.replace("%","")},[Bt]);return(0,yt.useEffect)(()=>{nt(Ve.type)},[Ve]),Ee.createElement("div",{style:{display:"flex",alignItems:"center"}},Kt=="select"&&Ee.createElement(ee.default,{size:"large",onChange:lt=>{nt(lt),xe({type:lt,inputValue:lt===1?5:20})},value:Bt||Je,style:{width:100},options:ze?[{label:"\u5206\u503C",value:1}]:[{label:"\u767E\u5206\u6BD4",value:2},{label:"\u5206\u503C",value:1}],disabled:Lt}),Kt=="radio"&&Ee.createElement(ie.ZP.Group,{size:"large",onChange:lt=>{const gt=lt.target.value;nt(gt),xe({type:gt,inputValue:gt===1?5:20})},value:Bt||Je,disabled:Lt},!ze&&Ee.createElement(ie.ZP,{value:2,style:{marginRight:"50px"}},"\u767E\u5206\u6BD4\u6263\u5206"),Ee.createElement(ie.ZP,{value:1},"\u56FA\u5B9A\u5206\u503C")),Kt=="radio"&&Ee.createElement("div",{style:{marginRight:"10px",color:"#000000"}},Ve.type==2?"\u6263\u9664\u8865\u4EA4\u9636\u6BB5\u5F97\u5206\u7684":"\u6263\u9664\u603B\u6210\u7EE9\u7684"),Ee.createElement(we.Z,{size:"large",disabled:Lt,value:Ve.inputValue,style:{width:"120px"},parser:dt,addonAfter:Ve.type===1?"\u5206":"%",max:Bt===2?100:Number.MAX_SAFE_INTEGER,min:0,precision:0,onChange:lt=>{xe({type:Bt,inputValue:lt})}}),Kt=="radio"&&Ve.type==2&&Ee.createElement("div",{style:{marginLeft:"10px",color:"#000000"}},"\u5206\u6570"))};pi.Z=ce},45677:function(Qn,pi,Dt){"use strict";Dt.d(pi,{Z:function(){return mt}});var yt=Dt(59301),ee={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},ie=Dt(99571),we=Dt(70557),Ee=Dt(75975),jt=Dt(25399),ce=Dt(51257),Ve=Dt(81722),xe=Dt(28426),Lt=Dt(346),ze=Dt(44203),Kt=Dt(59301),Je=Object.defineProperty,Bt=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,dt=(St,Mt,It)=>Mt in St?Je(St,Mt,{enumerable:!0,configurable:!0,writable:!0,value:It}):St[Mt]=It,lt=(St,Mt)=>{for(var It in Mt||(Mt={}))nt.call(Mt,It)&&dt(St,It,Mt[It]);if(Bt)for(var It of Bt(Mt))et.call(Mt,It)&&dt(St,It,Mt[It]);return St},gt=(St,Mt,It)=>new Promise((Zt,oe)=>{var Gt=me=>{try{ge(It.next(me))}catch(Pe){oe(Pe)}},_t=me=>{try{ge(It.throw(me))}catch(Pe){oe(Pe)}},ge=me=>me.done?Zt(me.value):Promise.resolve(me.value).then(Gt,_t);ge((It=It.apply(St,Mt)).next())}),mt=({editOffice:St="view",data:Mt,issaver:It,onSaver:Zt,theme:oe,type:Gt,filename:_t,monacoEditor:ge,className:me,style:Pe,close:ye,onClose:He,hasMask:wn,disabledDownload:ln,onImgDimensions:Oe,showNodata:Sn,recordInfo:se})=>{const[Yt,fn]=(0,yt.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[_n,In]=(0,yt.useState)(""),[on,jn]=(0,yt.useState)(),Pn=window.ENV==="build"?"/react/build":"",di=location.host.startsWith("localhost")?Lt.Z.PROXY_SERVER:Lt.Z.API_SERVER,ve=10*(1024*1024),Ye=(0,yt.useRef)();Mt!=null&&Mt.startsWith("/api")&&Gt!=="txt"&&(Mt=Lt.Z.API_SERVER+Mt);const mi=Nt=>Nt.substring(Nt.lastIndexOf("/")+1).split(".").pop();_t&&ge&&(ge.filename=_t),(0,yt.useEffect)(()=>{var Nt,Vt;const kt=(Vt=(Nt=document.cookie)==null?void 0:Nt.replace(/\s/g,""))==null?void 0:Vt.split(";");kt==null||kt.map($t=>{let nn=$t.split("=");nn[0]==="_educoder_session"&&In(nn[1])})},[]),(0,yt.useEffect)(()=>{Gt==="office"&&(Mt.indexOf("bigfilescdn.")>-1||Mt.indexOf("bigfiles1")>-1?jn({url:Mt,fileType:mi(Mt),model:Mt.indexOf("model=edit")?"edit":"view"}):Ot())},[Gt,Mt]);function Cn(Nt){return gt(this,null,function*(){Nt.data.type==="pdfdata"&&(Zt(Nt.data.data),window.removeEventListener("message",Cn,!1)),console.log("mess---:",Nt.data)})}const Ot=()=>gt(void 0,null,function*(){console.log("data:",Mt);let Nt=Mt;Mt.startsWith("http")||(Nt=location.origin+Nt);let Vt=new URL(Nt).pathname.split("/").pop();const kt=yield(0,Ve.gJ)({attachment_id:Vt});kt.url=di+kt.url,jn(kt)}),At=()=>{if(Mt.startsWith("http")||Mt.startsWith("blob:")){wt();return}(0,ce.Sv)(_t||"educoder",Mt,_t)},wt=()=>{se&&(0,ze.fc)({id:se==null?void 0:se.id,watch_type:1,course_id:se==null?void 0:se.course_id}),(0,ce.Nd)(_t||"educoder",decodeURIComponent(Mt))};return Kt.createElement("div",{style:lt({},Pe||{}),className:`${wn&&ee.bgBlack} ${Gt?ee.wrp:"hide"}`},ye&&Kt.createElement("div",{className:ee.close,ref:Ye},!!Oe&&Kt.createElement(jt.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Ye.current},Kt.createElement("span",{onClick:()=>{He(),Oe()}},Kt.createElement("i",{className:"icon-yulanpizhu"}))),!ln&&Kt.createElement(jt.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Ye.current},Kt.createElement("span",{onClick:wt},Kt.createElement("i",{className:"icon-quxiaozhiding"}))),It&&Kt.createElement(jt.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>Ye.current},Kt.createElement("span",{className:"",onClick:()=>{const Nt=document.getElementById("pdfiframe");window.addEventListener("message",Cn,!1),setTimeout(()=>{Nt.contentWindow.postMessage("getData","*")},300)}},Kt.createElement("i",{className:"icon-baocun"}))),Kt.createElement(jt.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Ye.current},Kt.createElement("span",{className:"",onClick:()=>{He()}},Kt.createElement("i",{className:"icon-guanbi1"})))),Kt.createElement("div",{className:`${ee[me]} ${me} ${ee.monaco} ${Gt==="txt"?"show":"hide"}`},Gt==="txt"&&Kt.createElement(Kt.Fragment,null,Kt.createElement(Ee.ZP,lt({},ge)))),Gt==="audio"&&Kt.createElement("audio",{src:`${(Mt==null?void 0:Mt.indexOf("http://"))>-1||(Mt==null?void 0:Mt.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Mt}`,autoPlay:!0}),Gt==="video"&&Kt.createElement(Kt.Fragment,null,(Mt==null?void 0:Mt.indexOf("http"))>-1?Kt.createElement("video",{controls:!0,src:`${Mt}`,autoPlay:!0}):Kt.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Mt}`,autoPlay:!0})),Gt==="office"&&on&&Kt.createElement("iframe",{src:`${Pn}/office.html?key=${on.key}&url=${btoa(on.url)}&callbackUrl=${di+(on.callbackUrl||"")}&fileType=${on.fileType}&title=${on.title||""}&model=${St}&officeServer=${Lt.Z.ONLYOFFICE}&disabledDownload=${!!ln}`}),Gt==="html"&&Kt.createElement("iframe",{src:Mt+"&disposition=inline"}),Gt==="pdf"&&Kt.createElement("iframe",{id:"pdfiframe",src:`${Pn}/js/pdfview/index.html?filename=${_t||"educoder.pdf"}&url=${encodeURIComponent(Mt)}&disabledDownload=${!!ln}&model=${St}`}),Gt==="image"&&Kt.createElement("img",{src:`${(Mt==null?void 0:Mt.indexOf("http://"))>-1||(Mt==null?void 0:Mt.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Mt}`}),(Gt==="other"||Gt==="download")&&Kt.createElement(Kt.Fragment,null,Sn?Kt.createElement(xe.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:Kt.createElement(ie.ZP,{icon:Kt.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:At,disabled:ln},"\u4E0B\u8F7D")}):Kt.createElement(ie.ZP,{type:"primary",size:"middle",onClick:At,disabled:ln},Kt.createElement(we.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},76902:function(Qn,pi,Dt){"use strict";Dt.d(pi,{z:function(){return oe},Z:function(){return Gt}});var yt=Dt(59301),ee=Dt(8944),ie=Dt(81428),we=Dt(64018),Ee=Dt(81168),jt=Dt(346),ce=Dt(51257),Ve=Dt(15342),xe=Dt(1012),Lt=Dt(45677),ze=Dt(59301),Je=({html:_t})=>{const ge=(0,yt.useRef)(null),me=(0,yt.useRef)(null),Pe=`.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 56px !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 ye=ge.current.attachShadow({mode:"open"});me.current=document.createElement("div"),me.current.className="markdown-body",me.current.innerHTML=_t,ye.appendChild(me.current);const He=document.createElement("style");return He.textContent=Pe,ye.appendChild(He),()=>{ye.innerHTML=""}},[]),(0,yt.useEffect)(()=>{me.current&&(me.current.innerHTML=_t)},[_t]),ze.createElement("div",{ref:ge})};function Bt(_t){const ge=["onabort","onanimationend","onanimationiteration","onanimationstart","onauxclick","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncopy","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitionend","onvolumechange","onwaiting","onwheel"],me=new RegExp(`\\b(${ge.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi");return _t.replace(me,"").trim()}var nt=Object.defineProperty,et=Object.getOwnPropertySymbols,dt=Object.prototype.hasOwnProperty,lt=Object.prototype.propertyIsEnumerable,gt=(_t,ge,me)=>ge in _t?nt(_t,ge,{enumerable:!0,configurable:!0,writable:!0,value:me}):_t[ge]=me,mt=(_t,ge)=>{for(var me in ge||(ge={}))dt.call(ge,me)&>(_t,me,ge[me]);if(et)for(var me of et(ge))lt.call(ge,me)&>(_t,me,ge[me]);return _t};const St="@\u2581\u2581@",Mt="@\u2581@",It=/<pre[^>]*>/g;function Zt(_t){let ge=document.createElement("div");return ge.innerHTML=_t,ge.childNodes.length===0?"":ge.childNodes[0].nodeValue}const oe=(_t,ge)=>{_t=_t||"";const me=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Pe=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,ye=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,He=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return ge?_t.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(me,(wn,ln,Oe,Sn,se,Yt,fn)=>{const _n=ln||Sn||Yt,In=Oe||se||fn||"?";return jt.Z.API_SERVER+"/api/attachments/"+_n+In+"&t="+(0,ce.Jn)(_n,Date.now())+(wn.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(_t=_t.replace(He,(wn,ln,Oe,Sn,se,Yt,fn)=>{const _n=ln||Sn||Yt,In=Oe||se||fn||"?";return jt.Z.API_SERVER+"/attachments/download/"+_n+In+"&t="+(0,ce.Jn)(_n,Date.now())+(wn.indexOf(")")>-1?")":"&")}).replace(me,(wn,ln,Oe,Sn,se,Yt,fn)=>{const _n=ln||Sn||Yt,In=Oe||se||fn||"?";return jt.Z.API_SERVER+"/api/attachments/"+_n+In+"&t="+(0,ce.Jn)(_n,Date.now())+(wn.indexOf(")")>-1?")":"&")}).replace(Pe,(wn,ln,Oe,Sn,se)=>{const Yt=ln||Sn,fn=Oe||se||"";return'"'+jt.Z.API_SERVER+"/api/attachments/"+Yt+fn+Yt+fn+"&t="+(0,ce.Jn)(Yt,Date.now())}).replace(ye,(wn,ln,Oe,Sn,se)=>{const Yt=ln||Sn,fn=Oe||se||"";return"("+jt.Z.API_SERVER+"/files/uploads/"+Yt+fn+Yt+fn+"&t="+(0,ce.Jn)(Yt,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,`
|
|
`),_t)};var Gt=({value:_t="",className:ge,showTextOnly:me,showLines:Pe,style:ye={},stylesPrev:He={},highlightKeywords:wn,showProgramFill:ln,isProgramFill:Oe,disabledFill:Sn=!1,programFillValue:se,onFillChange:Yt=In=>{},onFillBlur:fn=()=>{},onFillFocus:_n=()=>{}})=>{let In=Bt(String(_t||""));const[on,jn]=(0,yt.useState)(""),[Pn,di]=(0,yt.useState)("office"),[Re,ve]=(0,yt.useState)([]),Ye=(0,yt.useRef)("a"+(0,xe.Z)()),mi={},Cn=Ce=>/<style[\s\S]*?>/i.test(Ce||""),Ot=(Ce,Qe,un)=>{const Nn=document.createElement(Ce===Mt?"input":"textarea");Nn.style.width="100%",Nn.style.height=Ce===Mt?"40px":"151px",Nn.rows=5,Nn.spellcheck=!1,Nn.name="edu-program-fill",Nn.placeholder="\u8BF7\u8F93\u5165",Nn.dataset.id=Qe;const ai=Object.keys(mi).length;return mi[ai]=Nn,`<span class="edu-program-fill-wrap ${Ce===Mt?"":"show"}" style="width:${Ce===Mt?"600px":"100%"}" title=${un||""}><span>${Nn.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function At(Ce){return Ce=Ce.replace(/!\[.*?\]\(.*?\)/g,""),Ce=Ce.replace(/\[.*?\]\(.*?\)/g,""),Ce=Ce.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),Ce=Ce.replace(/<embed.*?>/g,""),Ce=Ce.replace(/<img.*?>/g,""),Ce=Ce.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),Ce=Ce.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),Ce=Ce.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),Ce=Ce.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),Ce}const wt=Ce=>!me&&Cn(In)?Ce:Ce.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(Qe,un){let Nn=un.replace(/(\n|\r)/g,"").split("}"),ai=[];return Nn.map(Tn=>{Tn!=""&&ai.push(`.${Ye.current} ${Tn}`)}),`<style>${ai.join("}")}</style>`}),Nt=(0,yt.useMemo)(()=>{try{const Nn=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,ai=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Tn=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,bn=/\(\/attachments\/download\//g;In=In.replace(bn,"("+jt.Z.API_SERVER+"/attachments/download/").replace(Nn,"("+jt.Z.API_SERVER+"/api/attachments/").replace(ai,'"'+jt.Z.API_SERVER+"/api/attachments/").replace(Tn,'"'+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(Nn){}if(ln){let Nn=-1;return In=In.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(ai,Tn,bn){var Ie;return++Nn,Ot(ai,Nn,(Ie=se==null?void 0:se[Nn])==null?void 0:Ie.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${wt(In||"")}</pre>`}let Ce=wt(In);Ce=(0,ie.ZP)(Ce);const Qe=(0,ie.ez)();In.match(/\[TOC\]/)&&(Ce=Ce.replace("<p>[TOC]</p>",(0,ie.Qv)()),(0,ie.Iy)()),Ce=Ce.replace(/(__special_katext_id_\d+__)/g,(Nn,ai)=>{const{type:Tn,expression:bn}=Qe[ai];return(0,Ve.renderToString)(Zt(bn)||"",{displayMode:Tn==="block",throwOnError:!1,output:"html"})}),Ce=Ce.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,ie.AL)();const un=document.createElement("div");if(un.innerHTML=Ce,me)return un.innerText;if(wn){const Nn=wn.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return nn(un,Nn),un.innerHTML}return setTimeout(()=>De(),500),un.innerHTML},[In,wn]);(0,yt.useEffect)(()=>{dn.current&&dn.current.querySelectorAll(["input","textarea"]).forEach(Qe=>{Qe.oninput=Vt,Qe.onblur=kt,Qe.onfocus=$t})},[Re]),(0,yt.useEffect)(()=>{var Ce,Qe,un,Nn,ai;if(se!=null&&se.length)try{const Tn=dn.current.querySelectorAll(".edu-program-fill-score"),bn=dn.current.querySelectorAll('[name="edu-program-fill"]');for(const[Ie,Ue]of bn.entries())Ue.value=((Ce=se==null?void 0:se[Ie])==null?void 0:Ce.value)||"",((Qe=se==null?void 0:se[Ie])==null?void 0:Qe.type)==="warning"?Ue.className="program-fill-warning":((un=se==null?void 0:se[Ie])==null?void 0:un.type)==="success"?Ue.className="program-fill-success":Ue.className="";for(const[Ie,Ue]of Tn.entries())Ue.innerHTML=(Nn=se==null?void 0:se[Ie])!=null&&Nn.score?`${(ai=se==null?void 0:se[Ie])==null?void 0:ai.score}\u5206`:"";ve(se)}catch(Tn){console.log(Tn,"error")}},[se]);const Vt=Ce=>{Re[Ce.target.dataset.id]=Re[Ce.target.dataset.id]||{},Re[Ce.target.dataset.id].value=Ce.target.value,ve([...Re]),Yt(Re,Ce.target.dataset.id)},kt=Ce=>{Re[Ce.target.dataset.id]=Re[Ce.target.dataset.id]||{},Re[Ce.target.dataset.id].value=Ce.target.value,ve([...Re]),fn(Re,Ce.target.dataset.id)},$t=Ce=>{Re[Ce.target.dataset.id]=Re[Ce.target.dataset.id]||{},Re[Ce.target.dataset.id].value=Ce.target.value,ve([...Re]),_n(Re,Ce.target.dataset.id)};function nn(Ce,Qe){return Ce.childNodes.forEach(un=>{var Nn;if(un.childNodes.length>0)nn(un,Qe);else if(un.nodeName!=="IMG")if(un.innerHTML)un.innerHTML=(Nn=un.innerHTML)==null?void 0:Nn.replace(new RegExp(Qe,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const ai=document.createElement("span");ai.innerHTML=un.textContent.replace(new RegExp(Qe,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),un.replaceWith(ai)}})}const dn=(0,yt.useRef)();ie.jb.WebkitLineClamp=Pe,Pe&&(ye=mt(mt({},ye),ie.jb));function En(Ce){let Qe=Ce.target;if(Qe.tagName.toUpperCase()==="A"){let un=Qe.getAttribute("href");if(un.indexOf("office")>-1)Ce.preventDefault(),jn(un),di("office");else if(un.indexOf("application/pdf")>-1)Ce.preventDefault(),jn(un),di("pdf");else if(un.indexOf("text/html")>-1)Ce.preventDefault(),jn(un),di("html");else if(un.startsWith("#")){Ce.preventDefault();let Nn=document.getElementById(un.replace("#",""));Nn&&Nn.scrollIntoView(!0)}}}const De=()=>{var Ce;const Qe=(Ce=dn.current)==null?void 0:Ce.querySelectorAll("video");Qe==null||Qe.forEach(un=>{if(un.oncontextmenu=()=>!1,un.src.indexOf(".m3u8")>-1&&!un.canPlayType("application/vnd.apple.mpegurl")){if(Ee.ZP.isSupported()){var Nn=new Ee.ZP;Nn.loadSource(un.src),Nn.attachMedia(un)}}})};return(0,yt.useEffect)(()=>{if(dn.current&&Nt&&Nt.match(It)&&window.PR.prettyPrint(),dn.current)return dn.current.addEventListener("click",En),()=>{var Ce;(Ce=dn.current)==null||Ce.removeEventListener("click",En),(0,ie.AL)(),(0,ie.Iy)()}},[Nt,dn.current,En]),(0,yt.useEffect)(()=>{var Ce;const Qe=un=>{un.preventDefault(),un.clipboardData.setData("text",window.getSelection().toString())};return(Ce=dn.current)==null||Ce.addEventListener("copy",Qe),()=>{var un;(un=dn.current)==null||un.removeEventListener("copy",Qe)}},[dn.current]),yt.createElement(yt.Fragment,null,me&&yt.createElement("div",{ref:dn},Nt),!me&&!Cn(Nt)&&yt.createElement("div",{ref:dn,style:mt({},ye),className:`${ge||""} ${Sn?"disabled-fill":""} markdown-body ${Ye.current}`,dangerouslySetInnerHTML:{__html:Nt}}),!me&&Cn(Nt)&&yt.createElement(Je,{html:Nt}),yt.createElement(Lt.Z,{close:!0,data:on,type:on!=null&&on.length?Pn:"",style:mt({},He),onClose:()=>jn("")}))}},3039:function(Qn,pi,Dt){"use strict";Dt.d(pi,{Z:function(){return Ve}});var yt=Dt(59301),ee={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"},ie=Dt(62957),we="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAPCAYAAADUFP50AAAAAXNSR0IArs4c6QAAAUFJREFUOE+V0ktKw1AUxvH/rVqIxT4wkgwEUSmK4APRBfiYCKU7cOZEBOkadAMZiwhuwJETBQciFRTtwJkPBLW2BRGrRanU9kpN2sSYiGaWc/PjuznnCN2Qh8AkPo+AzXxKLLiPhW7ICtDqB4GzQkqM/huGFZgZcDCBBDaaicsTMKbZH2xfwdY5/ICAEGSasC0AwRYblj+gKkENwfy4WS9V4LHsgsk49EZteJKHdBa6w7AybdZzr3D64ILxGKjtNrx9gfsSRBSYtf6xZh1/u+qQClrIhtdFuHmGvhisJcz65RPsZl2Jc/3QE7FhpgDHuT80x2+O9cR1K/GiCDt3rkQ/+Ns43gDFD0YVmHIuQGOOmiGTARhxwkGd1cZ7Vwd0OppWr3911StpcV++Iwn67q/kyBMuHchErcqwFxT1XZXsfQJqo2zI6kdI4QAAAABJRU5ErkJggg==",Ee="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAW1JREFUOE+dkj1IQmEUht9z/blp4VQEjS39eW+oSCFCpFCI4BiKFGWWQUSrCjVVg+lQNJZQDZGNTm1B4NTibS3n2lo0wuqEN8i/a0HfeN7v+d73nO+QJEcKAJzQPAwCnSpKNtoqkyRHqgDrtUFAb6Rnedx43KgT6O5P0GQijFiNLe/Sy3/B8g+YTIRRrb5jP32JYNADr8eOldU0RJEqVlm8r1kyuA/AIEB10OWy4vBgA4ryCIdjCJlMDmfn1zAY6EmyGY/UrAwrgGATWKsn4mGEQl4Uiw+YX9hT73aZiEcl8eMbZAGA0AT6/ZPY3Ykiny/A55tA7uoGqdQFBD2VbDbDugoSTTEj3gTGYgG8Vt7UeG63hNkZJ7a2s+gw1XqPnf5REKhkt4kxNakO08ycbOtRC/7FcakCwNTJ0WwmDI+1LUCZZDkSYGa5Eewf0G0KAnprNYtFQHdPbZhNS1cmLafF5bUTJsyBSVMHPm+/ADTrfrtCH68WAAAAAElFTkSuQmCC",jt=(xe,Lt,ze)=>new Promise((Kt,Je)=>{var Bt=dt=>{try{et(ze.next(dt))}catch(lt){Je(lt)}},nt=dt=>{try{et(ze.throw(dt))}catch(lt){Je(lt)}},et=dt=>dt.done?Kt(dt.value):Promise.resolve(dt.value).then(Bt,nt);et((ze=ze.apply(xe,Lt)).next())}),Ve=({type:xe,resdata:Lt,onok:ze,oktext:Kt,okloading:Je})=>{const[Bt,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:Mt,no_use_num:It,repeat_shixun_num:Zt,student_count:oe,total_num:Gt,use_num:_t}=Lt;let ge=dt>0||xe==="exercise";(0,yt.useEffect)(()=>{(Lt==null?void 0:Lt.student_count)>0&&nt(!0)},[Lt]),console.log("---11",Je),(0,yt.useEffect)(()=>{Je||nt(!1)},[Je]);const me=()=>{if(xe==="exercise"&<===1)return yt.createElement(yt.Fragment,null,"\u8BFE\u5802\u5185\u6709",yt.createElement("span",{className:ee.orangeColor},oe),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",yt.createElement("span",{className:ee.orangeColor},_t),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",yt.createElement("span",{className:ee.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(xe==="exercise"&<===2)return yt.createElement(yt.Fragment,null,"\u8BFE\u5802\u5185\u6709",yt.createElement("span",{className:ee.orangeColor},oe),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",yt.createElement("span",{className:ee.orangeColor},_t),"\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:ee.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(xe==="shixun"&<===1)return yt.createElement(yt.Fragment,null,"\u8BFE\u5802\u5185\u6709",yt.createElement("span",{className:ee.orangeColor},oe),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C",yt.createElement("span",{className:ee.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(xe==="shixun"&<===2)return yt.createElement(yt.Fragment,null,"\u8BFE\u5802\u5185\u6709",yt.createElement("span",{className:ee.orangeColor},oe),"\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:ee.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(xe==="subject"&<===1)return yt.createElement(yt.Fragment,null,"\u8BFE\u5802\u5185\u6709",yt.createElement("span",{className:ee.orangeColor},oe),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",yt.createElement("span",{className:ee.orangeColor},_t),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",yt.createElement("span",{className:ee.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(xe==="subject"&<===2)return yt.createElement(yt.Fragment,null,"\u8BFE\u5802\u5185\u6709 ",yt.createElement("span",{className:ee.orangeColor},oe)," \u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u6311\u6218\u8FC7\u5176\u4E2D\u7684 ",yt.createElement("span",{className:ee.orangeColor},_t)," \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:ee.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(xe==="exercisepush")return yt.createElement(yt.Fragment,null,"\u8BFE\u5802\u5185\u6709",yt.createElement("span",{className:ee.orangeColor},oe),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BD5\u5377\u4E2D\u7684",yt.createElement("span",{className:ee.orangeColor},_t),"\u4E2A\u5B9E\u8DF5\u9879\u76EE \uFF0C",yt.createElement("span",{className:ee.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(xe==="shixunpush"&<===1)return yt.createElement(yt.Fragment,null,"\u8BFE\u5802\u5185\u6709",yt.createElement("span",{className:ee.orangeColor},oe),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",yt.createElement("span",{className:ee.orangeColor},_t),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",yt.createElement("span",{className:ee.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(xe==="shixunpush"&<===2)return yt.createElement(yt.Fragment,null,"\u8BFE\u5802\u5185\u6709",yt.createElement("span",{className:ee.orangeColor},oe),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7",yt.createElement("span",{className:ee.orangeColor},_t),"\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:ee.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"))},Pe=()=>{if(xe==="exercise"||xe==="subject"||xe==="exercisepush"||xe==="shixunpush")return yt.createElement("div",{style:{marginTop:20}},St>0&&yt.createElement("div",null,yt.createElement("span",{className:ee.flex},yt.createElement("img",{src:Ee,style:{width:14}}),yt.createElement("span",{className:ee.statustitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),yt.createElement("div",{className:ee.statusbody},xe==="exercise"&&yt.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",yt.createElement("span",{className:ee.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"),(xe==="subject"||xe==="exercisepush")&&yt.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",ge&&yt.createElement("span",{className:ee.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"),xe==="shixunpush"&&yt.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",ge&&yt.createElement("span",{className:ee.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((ye,He)=>yt.createElement("a",{href:`/shixuns/${ye.identifier}/challenges`,target:"_blank"},"\u300A",ye==null?void 0:ye.name,"\u300B",He+1!==St&&"\u3001"))))),dt>0&&yt.createElement("div",{style:{marginTop:20}},yt.createElement("span",{className:ee.flex},yt.createElement("img",{src:we,style:{width:14}}),yt.createElement("span",{className:ee.statustitle},"\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),yt.createElement("div",{className:ee.statusbody},xe==="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"),(xe==="subject"||xe==="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"),xe==="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((ye,He)=>yt.createElement("a",{href:`/shixuns/${ye.identifier}/challenges`,target:"_blank"},"\u300A",ye==null?void 0:ye.name,"\u300B",He+1!==dt&&"\u3001"))))));if(xe==="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(ie.default,{open:Bt,onCancel:()=>{nt(!1)},cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",width:700,centered:!0,cancelButtonProps:{style:{display:!ge&&"none"}},zIndex:1003,confirmLoading:Je,okText:ge?Kt:"\u6211\u77E5\u9053\u4E86",onOk:()=>jt(void 0,null,function*(){ge?yield ze([...et,...Mt]):nt(!1)})},yt.createElement("div",{style:{maxHeight:600,overflow:"auto"}},me(),Pe()))}},69720:function(Qn,pi,Dt){"use strict";Dt.d(pi,{h:function(){return St}});var yt=Dt(59301),ee=Dt(82326),ie=Dt(28284),we=Dt(99571),Ee=Dt(89780),jt=Dt.n(Ee),ce=Dt(8336),Ve=Dt(12469),xe=Object.defineProperty,Lt=Object.defineProperties,ze=Object.getOwnPropertyDescriptors,Kt=Object.getOwnPropertySymbols,Je=Object.prototype.hasOwnProperty,Bt=Object.prototype.propertyIsEnumerable,nt=(Mt,It,Zt)=>It in Mt?xe(Mt,It,{enumerable:!0,configurable:!0,writable:!0,value:Zt}):Mt[It]=Zt,et=(Mt,It)=>{for(var Zt in It||(It={}))Je.call(It,Zt)&&nt(Mt,Zt,It[Zt]);if(Kt)for(var Zt of Kt(It))Bt.call(It,Zt)&&nt(Mt,Zt,It[Zt]);return Mt},dt=(Mt,It)=>Lt(Mt,ze(It));const lt=ee.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:Mt,onCancel:It})=>{const[Zt,oe]=(0,yt.useState)("python");function Gt(ge){oe(mt[ge][1])}function _t(ge){Mt(ge)}return yt.createElement(ie.default,dt(et({},gt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:_t,style:{width:500}}),yt.createElement(ie.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},yt.createElement(ee.default,{getPopupContainer:ge=>ge.parentNode,onChange:Gt},Object.keys(mt).map(ge=>yt.createElement(lt,{key:ge,value:ge},mt[ge][0])))),yt.createElement(ie.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},yt.createElement(St,{mode:Zt})),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:It},"\u53D6\u6D88")))};function St({value:Mt,onChange:It,mode:Zt,options:oe={}}){const Gt=(0,yt.useRef)(),[_t,ge]=(0,yt.useState)();return(0,yt.useEffect)(()=>{if(_t){let me=function(Pe){const ye=Pe.getValue();It&&It(ye)};return _t.on("change",me),()=>{_t.off("change",me)}}},[_t,It]),(0,yt.useEffect)(()=>{_t&&_t.setOption("mode",Zt)},[_t,Zt]),(0,yt.useEffect)(()=>{_t&&(Mt!==_t.getValue()||Mt==="")&&setTimeout(()=>{_t.setValue(Mt||"")},300)},[_t,Mt]),(0,yt.useEffect)(()=>{if(Gt.current&&!_t){const me=jt().fromTextArea(Gt.current,et({mode:Zt,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},oe));ge(me)}},[Gt.current,_t]),yt.createElement("div",{className:"my-codemirror-container"},yt.createElement("textarea",{ref:Gt}))}},39793:function(Qn,pi,Dt){"use strict";Dt.d(pi,{Z:function(){return Yn}});var yt=Dt(59301),ee=Dt(89780),ie=Dt.n(ee),we=Dt(76374),Ee=Dt(8336),jt=Dt(6313),ce=Dt(25717),Ve=Dt(99498),xe=Dt(25419),Lt=Dt(67549),ze=Dt(76902),Kt=({value:Fe="",className:Ne,showTextOnly:ke,showLines:sn,style:xi={}})=>{const yi=(0,yt.useMemo)(()=>"",[Fe]);return yt.createElement(yt.Fragment,null,yt.createElement("div",{dangerouslySetInnerHTML:{__html:yi}}))},Je=Object.defineProperty,Bt=Object.defineProperties,nt=Object.getOwnPropertyDescriptors,et=Object.getOwnPropertySymbols,dt=Object.prototype.hasOwnProperty,lt=Object.prototype.propertyIsEnumerable,gt=(Fe,Ne,ke)=>Ne in Fe?Je(Fe,Ne,{enumerable:!0,configurable:!0,writable:!0,value:ke}):Fe[Ne]=ke,mt=(Fe,Ne)=>{for(var ke in Ne||(Ne={}))dt.call(Ne,ke)&>(Fe,ke,Ne[ke]);if(et)for(var ke of et(Ne))lt.call(Ne,ke)&>(Fe,ke,Ne[ke]);return Fe},St=(Fe,Ne)=>Bt(Fe,nt(Ne));let Mt=[{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\u516C\u5F0F",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"md-iconfont icon-formula",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 It({onActionCallback:Fe,title:Ne,icon:ke,actionName:sn,className:xi="",children:yi}){function Fi(){Fe(sn)}return yt.createElement("a",{title:Ne,className:xi,onClick:Fi},yt.createElement("i",{className:`${ke}`}),yi)}var Zt=({watch:Fe,showNullButton:Ne,showNullProgramButton:ke,onActionCallback:sn,fullScreen:xi,insertTemp:yi,hidetoolBar:Fi,extraUse:Xe})=>{const Dn=[...Mt,{title:`${Fe?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Fe?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return yt.createElement("ul",{className:"markdown-toolbar-container"},!Fi&&Dn.map((mn,Hi)=>yt.createElement("li",{key:Hi},mn.actionName?yt.createElement(It,St(mt({},mn),{onActionCallback:sn})):yt.createElement("span",{className:"v-line"}))),Ne?yt.createElement("li",null,yt.createElement(It,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:sn},yt.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,ke?yt.createElement(yt.Fragment,null,yt.createElement("li",null,yt.createElement(It,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:sn},yt.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),yt.createElement("li",null,yt.createElement(It,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:sn},yt.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,yi&&yt.createElement("li",null,yt.createElement(It,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${yi}`,onActionCallback:sn},yt.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Xe&&yt.createElement("li",null,Xe),yt.createElement("li",{className:"btn-full-screen"},yt.createElement(It,{icon:`${xi?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:xi?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:sn})))},oe=Dt(91558),Gt=Dt(28284),_t=Dt(37568),ge=Dt(99571),me=Object.defineProperty,Pe=Object.defineProperties,ye=Object.getOwnPropertyDescriptors,He=Object.getOwnPropertySymbols,wn=Object.prototype.hasOwnProperty,ln=Object.prototype.propertyIsEnumerable,Oe=(Fe,Ne,ke)=>Ne in Fe?me(Fe,Ne,{enumerable:!0,configurable:!0,writable:!0,value:ke}):Fe[Ne]=ke,Sn=(Fe,Ne)=>{for(var ke in Ne||(Ne={}))wn.call(Ne,ke)&&Oe(Fe,ke,Ne[ke]);if(He)for(var ke of He(Ne))ln.call(Ne,ke)&&Oe(Fe,ke,Ne[ke]);return Fe},se=(Fe,Ne)=>Pe(Fe,ye(Ne));const Yt={labelCol:{span:4},wrapperCol:{span:20}};var fn=({callback:Fe,onCancel:Ne})=>{function ke(sn){Fe(sn)}return yt.createElement(Gt.default,se(Sn({},Yt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:ke,style:{width:500}}),yt.createElement(Gt.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},yt.createElement(_t.default,null)),yt.createElement(Gt.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},yt.createElement(_t.default,null)),yt.createElement("div",{className:"flex-container flex-end"},yt.createElement(ge.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),yt.createElement(ge.ZP,{type:"ghost",onClick:Ne},"\u53D6\u6D88")))},_n=Dt(69720),In=Dt(17077),on=Dt(62957),jn=Dt(77019),Pn=Dt(9507),di=Dt(59301),Re=({callback:Fe,onCancel:Ne})=>{const ke=document.createElement("canvas"),sn=ke.getContext("2d");ke.width=1e3,ke.height=800,sn.fillStyle="#ffffff",sn.fillRect(0,0,ke.width,ke.height);const xi=ke.toDataURL("image/png");return di.createElement(on.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},di.createElement(jn.Z,{style:{height:"100vh"}},di.createElement(Pn.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:xi,visible:!0,title:String(Date.now())},onOk:yi=>{Fe({src:yi.url})},onClose:Ne})))},ve=Dt(12378);function Ye(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Ye,go.CommandHandler),Ye.prototype.canAlignSelection=function(){var Fe=this.diagram;return!(Fe===null||Fe.isReadOnly||Fe.isModelReadOnly||Fe.selection.count<2)},Ye.prototype.alignLeft=function(){var Fe=this.diagram;Fe.startTransaction("aligning left");var Ne=1/0;Fe.selection.each(function(ke){ke instanceof go.Link||(Ne=Math.min(ke.position.x,Ne))}),Fe.selection.each(function(ke){ke instanceof go.Link||ke.move(new go.Point(Ne,ke.position.y))}),Fe.commitTransaction("aligning left")},Ye.prototype.alignRight=function(){var Fe=this.diagram;Fe.startTransaction("aligning right");var Ne=-1/0;Fe.selection.each(function(ke){if(!(ke instanceof go.Link)){var sn=ke.actualBounds.x+ke.actualBounds.width;Ne=Math.max(sn,Ne)}}),Fe.selection.each(function(ke){ke instanceof go.Link||ke.move(new go.Point(Ne-ke.actualBounds.width,ke.position.y))}),Fe.commitTransaction("aligning right")},Ye.prototype.alignTop=function(){var Fe=this.diagram;Fe.startTransaction("alignTop");var Ne=1/0;Fe.selection.each(function(ke){ke instanceof go.Link||(Ne=Math.min(ke.position.y,Ne))}),Fe.selection.each(function(ke){ke instanceof go.Link||ke.move(new go.Point(ke.position.x,Ne))}),Fe.commitTransaction("alignTop")},Ye.prototype.alignBottom=function(){var Fe=this.diagram;Fe.startTransaction("aligning bottom");var Ne=-1/0;Fe.selection.each(function(ke){if(!(ke instanceof go.Link)){var sn=ke.actualBounds.y+ke.actualBounds.height;Ne=Math.max(sn,Ne)}}),Fe.selection.each(function(ke){ke instanceof go.Link||ke.move(new go.Point(ke.actualBounds.x,Ne-ke.actualBounds.height))}),Fe.commitTransaction("aligning bottom")},Ye.prototype.alignCenterX=function(){var Fe=this.diagram,Ne=Fe.selection.first();if(Ne){Fe.startTransaction("aligning Center X");var ke=Ne.actualBounds.x+Ne.actualBounds.width/2;Fe.selection.each(function(sn){sn instanceof go.Link||sn.move(new go.Point(ke-sn.actualBounds.width/2,sn.actualBounds.y))}),Fe.commitTransaction("aligning Center X")}},Ye.prototype.alignCenterY=function(){var Fe=this.diagram,Ne=Fe.selection.first();if(Ne){Fe.startTransaction("aligning Center Y");var ke=Ne.actualBounds.y+Ne.actualBounds.height/2;Fe.selection.each(function(sn){sn instanceof go.Link||sn.move(new go.Point(sn.actualBounds.x,ke-sn.actualBounds.height/2))}),Fe.commitTransaction("aligning Center Y")}},Ye.prototype.alignColumn=function(Fe){var Ne=this.diagram;Ne.startTransaction("align Column"),Fe===void 0&&(Fe=0),Fe=parseFloat(Fe);var ke=new Array;Ne.selection.each(function(Xe){Xe instanceof go.Link||ke.push(Xe)});for(var sn=0;sn<ke.length-1;sn++){var xi=ke[sn],yi=xi.actualBounds.y+xi.actualBounds.height+Fe,Fi=ke[sn+1];Fi.move(new go.Point(xi.actualBounds.x,yi))}Ne.commitTransaction("align Column")},Ye.prototype.alignRow=function(Fe){Fe===void 0&&(Fe=0),Fe=parseFloat(Fe);var Ne=this.diagram;Ne.startTransaction("align Row");var ke=new Array;Ne.selection.each(function(Xe){Xe instanceof go.Link||ke.push(Xe)});for(var sn=0;sn<ke.length-1;sn++){var xi=ke[sn],yi=xi.actualBounds.x+xi.actualBounds.width+Fe,Fi=ke[sn+1];Fi.move(new go.Point(yi,xi.actualBounds.y))}Ne.commitTransaction("align Row")},Ye.prototype.canRotate=function(Fe){var Ne=this.diagram;return!(Ne===null||Ne.isReadOnly||Ne.isModelReadOnly||Ne.selection.count<1)},Ye.prototype.rotate=function(Fe){Fe===void 0&&(Fe=90);var Ne=this.diagram;Ne.startTransaction("rotate "+Fe.toString());var Ne=this.diagram;Ne.selection.each(function(ke){ke instanceof go.Link||ke instanceof go.Group||(ke.angle+=Fe)}),Ne.commitTransaction("rotate "+Fe.toString())},Ye.prototype.pullToFront=function(){var Fe=this.diagram;Fe.startTransaction("pullToFront");var Ne=new go.Map;Fe.selection.each(function(ke){Ne.set(ke.layer,0)}),Ne.iteratorKeys.each(function(ke){var sn=0;ke.parts.each(function(xi){if(!xi.isSelected){var yi=xi.zOrder;isNaN(yi)?xi.zOrder=0:sn=Math.max(sn,yi)}}),Ne.set(ke,sn)}),Fe.selection.each(function(ke){Ye._assignZOrder(ke,Ne.get(ke.layer)+1)}),Fe.commitTransaction("pullToFront")},Ye.prototype.pushToBack=function(){var Fe=this.diagram;Fe.startTransaction("pushToBack");var Ne=new go.Map;Fe.selection.each(function(ke){Ne.set(ke.layer,0)}),Ne.iteratorKeys.each(function(ke){var sn=0;ke.parts.each(function(xi){if(!xi.isSelected){var yi=xi.zOrder;isNaN(yi)?xi.zOrder=0:sn=Math.min(sn,yi)}}),Ne.set(ke,sn)}),Fe.selection.each(function(ke){Ye._assignZOrder(ke,Ne.get(ke.layer)-1-Ye._findGroupDepth(ke))}),Fe.commitTransaction("pushToBack")},Ye._assignZOrder=function(Fe,Ne,ke){ke===void 0&&(ke=Fe),Fe.layer===ke.layer&&(Fe.zOrder=Ne),Fe instanceof go.Group&&Fe.memberParts.each(function(sn){Ye._assignZOrder(sn,Ne+1,ke)})},Ye._findGroupDepth=function(Fe){if(Fe instanceof go.Group){var Ne=0;return Fe.memberParts.each(function(ke){Ne=Math.max(Ne,Ye._findGroupDepth(ke))}),Ne+1}else return 0},Ye.prototype.doKeyDown=function(){var Fe=this.diagram;if(Fe!==null){var Ne=Fe.lastInput;if(Ne.key==="Up"||Ne.key==="Down"||Ne.key==="Left"||Ne.key==="Right"){var ke=this.arrowKeyBehavior;if(ke==="none")return;if(ke==="select"){this._arrowKeySelect();return}else if(ke==="move"){this._arrowKeyMove();return}else if(ke==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Ye.prototype._getAllParts=function(){var Fe=new Array;return this.diagram.nodes.each(function(Ne){Fe.push(Ne)}),this.diagram.parts.each(function(Ne){Fe.push(Ne)}),Fe},Ye.prototype._arrowKeyMove=function(){var Fe=this.diagram,Ne=Fe.lastInput,ke=0,sn=0;if(Ne.control||Ne.meta)ke=1,sn=1;else if(Fe.grid!==null){var xi=Fe.grid.gridCellSize;sn=xi.width,ke=xi.height}Fe.startTransaction("arrowKeyMove"),Fe.selection.each(function(yi){Ne.key==="Up"?yi.move(new go.Point(yi.actualBounds.x,yi.actualBounds.y-ke)):Ne.key==="Down"?yi.move(new go.Point(yi.actualBounds.x,yi.actualBounds.y+ke)):Ne.key==="Left"?yi.move(new go.Point(yi.actualBounds.x-sn,yi.actualBounds.y)):Ne.key==="Right"&&yi.move(new go.Point(yi.actualBounds.x+sn,yi.actualBounds.y))}),Fe.commitTransaction("arrowKeyMove")},Ye.prototype._arrowKeySelect=function(){var Fe=this.diagram,Ne=Fe.lastInput,ke=null;Ne.key==="Up"?ke=this._findNearestPartTowards(270):Ne.key==="Down"?ke=this._findNearestPartTowards(90):Ne.key==="Left"?ke=this._findNearestPartTowards(180):Ne.key==="Right"&&(ke=this._findNearestPartTowards(0)),ke!==null&&(Ne.shift?ke.isSelected=!0:Ne.control||Ne.meta?ke.isSelected=!ke.isSelected:Fe.select(ke))},Ye.prototype._findNearestPartTowards=function(Fe){var Ne=this.diagram.selection.first();if(Ne===null)return null;for(var ke=Ne.actualBounds.center,sn=this._getAllParts(),xi=1/0,yi=Ne,Fi=0;Fi<sn.length;Fi++){var Xe=sn[Fi];if(Xe!==Ne&&Xe.canSelect()){var Dn=Xe.actualBounds.center,mn=ke.directionPoint(Dn),Hi=this._angleCloseness(mn,Fe);if(Hi<=45){var qn=ke.distanceSquaredPoint(Dn);qn*=1+Math.sin(Hi*Math.PI/180),qn<xi&&(xi=qn,yi=Xe)}}}return yi},Ye.prototype._angleCloseness=function(Fe,Ne){return Math.min(Math.abs(Ne-Fe),Math.min(Math.abs(Ne+360-Fe),Math.abs(Ne-360-Fe)))},Ye.prototype._arrowKeyTree=function(){var Fe=this.diagram,Ne=Fe.selection.first();if(Ne instanceof go.Node){var ke=Fe.lastInput;if(ke.key==="Right"){if(!Ne.isTreeLeaf)if(!Ne.isTreeExpanded)Fe.commandHandler.canExpandTree(Ne)&&Fe.commandHandler.expandTree(Ne);else{var sn=this._sortTreeChildrenByY(Ne).first();sn!==null&&Fe.select(sn)}}else if(ke.key==="Left")if(!Ne.isTreeLeaf&&Ne.isTreeExpanded)Fe.commandHandler.canCollapseTree(Ne)&&Fe.commandHandler.collapseTree(Ne);else{var xi=Ne.findTreeParentNode();xi!==null&&Fe.select(xi)}else if(ke.key==="Up"){var xi=Ne.findTreeParentNode();if(xi!==null){var yi=this._sortTreeChildrenByY(xi),Fi=yi.indexOf(Ne);if(Fi>0){for(var Xe=yi.elt(Fi-1);Xe!==null&&Xe.isTreeExpanded&&!Xe.isTreeLeaf;){var Dn=this._sortTreeChildrenByY(Xe);Xe=Dn.last()}Xe!==null&&Fe.select(Xe)}else Fe.select(xi)}}else if(ke.key==="Down")if(Ne.isTreeExpanded&&!Ne.isTreeLeaf){var sn=this._sortTreeChildrenByY(Ne).first();sn!==null&&Fe.select(sn)}else for(;Ne!==null;){var xi=Ne.findTreeParentNode();if(xi===null)break;var yi=this._sortTreeChildrenByY(xi),Fi=yi.indexOf(Ne);if(Fi<yi.length-1){Fe.select(yi.elt(Fi+1));break}else Ne=xi}var mn=Fe.selection.first();mn!==null&&Fe.scrollToRect(mn.actualBounds)}},Ye.prototype._sortTreeChildrenByY=function(Fe){var Ne=new go.List().addAll(Fe.findTreeChildrenNodes());return Ne.sort(function(ke,sn){var xi=ke.location,yi=sn.location;return xi.y<yi.y?-1:xi.y>yi.y?1:xi.x<yi.x?-1:xi.x>yi.x?1:0}),Ne},Ye.prototype.copyToClipboard=function(Fe){go.CommandHandler.prototype.copyToClipboard.call(this,Fe),this._lastPasteOffset.set(this.pasteOffset)},Ye.prototype.pasteFromClipboard=function(){var Fe=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(Fe,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),Fe},Object.defineProperty(Ye.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(Fe){if(Fe!=="move"&&Fe!=="select"&&Fe!=="scroll"&&Fe!=="tree"&&Fe!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+Fe);this._arrowKeyBehavior=Fe}}),Object.defineProperty(Ye.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(Fe){if(!(Fe instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+Fe);this._pasteOffset.set(Fe)}});var mi=Ye,Cn=Dt(63720),Ot=Dt(5269),At=Dt(38986),wt={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Nt=Dt(48790),Vt=Dt(59301),kt=(Fe,Ne,ke)=>new Promise((sn,xi)=>{var yi=Dn=>{try{Xe(ke.next(Dn))}catch(mn){xi(mn)}},Fi=Dn=>{try{Xe(ke.throw(Dn))}catch(mn){xi(mn)}},Xe=Dn=>Dn.done?sn(Dn.value):Promise.resolve(Dn.value).then(yi,Fi);Xe((ke=ke.apply(Fe,Ne)).next())});function $t({onCancel:Fe,callback:Ne}){let ke=(0,yt.useRef)(),sn=(0,yt.useRef)(),xi=(0,yt.useRef)(),yi=(0,yt.useRef)(!1);const Fi=(0,yt.useRef)(!1),[Xe,Dn]=(0,yt.useState)(0);function mn(){const qn=ve.bx.make,te={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"};ke.current=new ve.S0(sn.current,{padding:20,grid:qn(ve.s_,"Grid",qn(ve.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),qn(ve.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:We=>{var ar=We.diagram.commandHandler.addTopLevelParts(We.diagram.selection,!0);ar||We.diagram.currentTool.doCancel()},commandHandler:qn(mi),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:We=>{var ar=We.subject;ar.location=ar.location.copy().snapToGridPoint(We.diagram.grid.gridOrigin,We.diagram.grid.gridCellSize),setTimeout(()=>{We.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:We=>{var ar=We.subject;setTimeout(()=>{We.diagram.commandHandler.editTextBlock()})},LinkRelinked:We=>{var ar=We.parameter.part;ar.invalidateConnectedLinks();var br=We.subject;We.diagram.toolManager.linkingTool.isForwards?br.toNode.invalidateConnectedLinks():br.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),ke.current.nodeTemplate=qn(ve.NB,"Auto",{locationSpot:ve.z6.Center,locationObjectName:"SHAPE",desiredSize:new ve.$u(120,60),minSize:new ve.$u(40,40),resizable:!0,resizeCellSize:new ve.$u(10,10),rotatable:!0},new ve.KX("location","loc",ve.E9.parse).makeTwoWay(ve.E9.stringify),new ve.KX("desiredSize","size",ve.$u.parse).makeTwoWay(ve.$u.stringify),qn(ve.bn,{name:"SHAPE",fill:te.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:ve.z6.AllSides,toSpot:ve.z6.AllSides},new ve.KX("figure"),new ve.KX("fill"),new ve.KX("stroke","borderColor"),new ve.KX("strokeWidth","thickness"),new ve.KX("strokeDashArray","dash")),qn(ve.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),qn(ve.al,{margin:1,textAlign:"center",overflow:ve.al.OverflowEllipsis,editable:!0},new ve.KX("text").makeTwoWay(),new ve.KX("stroke","color"))),ke.current.nodeTemplate.toolTip=qn("ToolTip",qn(ve.s_,"Vertical",{maxSize:new ve.$u(200,NaN)},qn(ve.al,{font:"bold 10pt sans-serif",textAlign:"center"},new ve.KX("text")),qn(ve.al,{font:"10pt sans-serif",textAlign:"center"},new ve.KX("text","details"))));function be(We,ar){var br=(Gi,Gr)=>{Gi.handled=!0,Gi.diagram.model.commit(Or=>{var Wr=Gr.part.adornedPart,Zi=new ve.E9().setRectSpot(Wr.actualBounds,We);Zi.subtract(Wr.location),Zi.scale(2,2),Zi.x+=Math.sign(Zi.x)*130,Zi.y+=Math.sign(Zi.y)*130,Zi.add(Wr.location),Zi.snapToGridPoint(Gi.diagram.grid.gridOrigin,Gi.diagram.grid.gridCellSize);var ir=Or.copyNodeData(Wr.data);Or.setGroupKeyForNodeData(ir,Or.getGroupKeyForNodeData(Wr.data)),Or.addNodeData(ir);var Qi={from:Wr.key,to:Or.getKeyForNodeData(ir)};Or.addLinkData(Qi);var pn=Gi.diagram.findNodeForData(ir);pn.location=Zi,Gi.diagram.select(pn),setTimeout(()=>{Gi.diagram.commandHandler.editTextBlock()},20)})};return qn(ve.bn,{figure:ar,alignment:We,alignmentFocus:We.opposite(),width:We.equals(ve.z6.Top)||We.equals(ve.z6.Bottom)?25:18,height:We.equals(ve.z6.Top)||We.equals(ve.z6.Bottom)?18:25,fill:"orange",stroke:te.white,strokeWidth:4,mouseEnter:(Gi,Gr)=>Gr.fill="dodgerblue",mouseLeave:(Gi,Gr)=>Gr.fill="orange",isActionable:!0,click:br,contextClick:br})}function Jn(We){return qn(ve.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:(ar,br)=>br.fill="dodgerblue",mouseLeave:(ar,br)=>br.fill="orange",click:(ar,br)=>{ar.diagram.commandHandler.showContextMenu(br.part.adornedPart)}},We||{})}ke.current.nodeTemplate.selectionAdornmentTemplate=qn(ve.uz,"Spot",qn(ve.Vm,{padding:10}),be(ve.z6.Top,"TriangleUp"),be(ve.z6.Left,"TriangleLeft"),be(ve.z6.Right,"TriangleRight"),be(ve.z6.Bottom,"TriangleDown"),Jn({alignment:new ve.z6(.75,0)}));function Fn(We,ar){return(br,Gi)=>{br.handled=!0,br.diagram.model.commit(Gr=>{Gr.set(Gi.part.adornedPart.data,We,ar)})}}function Be(We,ar){return ar||(ar="color"),qn(ve.bn,{width:16,height:16,stroke:"lightgray",fill:We,margin:1,background:"transparent",mouseEnter:(br,Gi)=>Gi.stroke="dodgerblue",mouseLeave:(br,Gi)=>Gi.stroke="lightgray",click:Fn(ar,We),contextClick:Fn(ar,We)})}function zn(){return[qn("ContextMenuButton",qn(ve.s_,"Horizontal",Be(te.white,"fill"),Be(te.beige,"fill"),Be(te.extralightblue,"fill"),Be(te.extralightred,"fill"))),qn("ContextMenuButton",qn(ve.s_,"Horizontal",Be(te.lightgray,"fill"),Be(te.lightgreen,"fill"),Be(te.lightblue,"fill"),Be(te.lightred,"fill")))]}function Ai(){return[qn("ContextMenuButton",qn(ve.s_,"Horizontal",Be(te.black),Be(te.green),Be(te.blue),Be(te.red))),qn("ContextMenuButton",qn(ve.s_,"Horizontal",Be(te.white),Be(te.magenta),Be(te.purple),Be(te.orange)))]}function Ii(We,ar){return ar||(ar="thickness"),qn(ve.bn,"LineH",{width:16,height:16,strokeWidth:We,margin:1,background:"transparent",mouseEnter:(br,Gi)=>Gi.background="dodgerblue",mouseLeave:(br,Gi)=>Gi.background="transparent",click:Fn(ar,We),contextClick:Fn(ar,We)})}function Ki(We,ar){return ar||(ar="dash"),qn(ve.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:We,margin:1,background:"transparent",mouseEnter:(br,Gi)=>Gi.background="dodgerblue",mouseLeave:(br,Gi)=>Gi.background="transparent",click:Fn(ar,We),contextClick:Fn(ar,We)})}function oi(){return[qn("ContextMenuButton",qn(ve.s_,"Horizontal",Ii(1),Ii(2),Ii(3),Ii(4))),qn("ContextMenuButton",qn(ve.s_,"Horizontal",Ki(null),Ki([2,4]),Ki([4,4])))]}function gi(We,ar){return ar||(ar="figure"),qn(ve.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:We,margin:1,background:"transparent",mouseEnter:(br,Gi)=>Gi.fill="dodgerblue",mouseLeave:(br,Gi)=>Gi.fill="lightgray",click:Fn(ar,We),contextClick:Fn(ar,We)})}ke.current.nodeTemplate.contextMenu=qn("ContextMenu",qn("ContextMenuButton",qn(ve.s_,"Horizontal",gi("Rectangle"),gi("RoundedRectangle"),gi("Ellipse"),gi("Diamond"))),qn("ContextMenuButton",qn(ve.s_,"Horizontal",gi("Parallelogram2"),gi("ManualOperation"),gi("Procedure"),gi("Cylinder1"))),qn("ContextMenuButton",qn(ve.s_,"Horizontal",gi("Terminator"),gi("CreateRequest"),gi("Document"),gi("TriangleDown"))),zn(),Ai(),oi()),ke.current.groupTemplate=qn(ve.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:ve.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(We,ar)=>{var br=ar.addMembers(ar.diagram.selection,!0);br||ar.diagram.currentTool.doCancel()},avoidable:!1},new ve.KX("location","loc",ve.E9.parse).makeTwoWay(ve.E9.stringify),qn(ve.s_,"Auto",{name:"BODY"},qn(ve.bn,{parameter1:10,fill:te.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:ve.z6.AllSides,toSpot:ve.z6.AllSides},new ve.KX("fill"),new ve.KX("stroke","color"),new ve.KX("strokeWidth","thickness"),new ve.KX("strokeDashArray","dash")),qn(ve.Vm,{background:"transparent",margin:20})),qn(ve.al,{alignment:ve.z6.Top,alignmentFocus:ve.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new ve.KX("text"),new ve.KX("stroke","color"))),ke.current.groupTemplate.selectionAdornmentTemplate=qn(ve.uz,"Spot",qn(ve.s_,"Auto",qn(ve.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),qn(ve.Vm,{margin:1.5})),Jn({alignment:ve.z6.TopRight,alignmentFocus:ve.z6.BottomRight})),ke.current.groupTemplate.contextMenu=qn("ContextMenu",zn(),Ai(),oi()),ke.current.linkTemplate=qn(ve.rU,{layerName:"Foreground",routing:ve.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new ve.KX("fromSpot","fromSpot",ve.z6.parse),new ve.KX("toSpot","toSpot",ve.z6.parse),new ve.KX("fromShortLength","dir",We=>We>=1?10:0),new ve.KX("toShortLength","dir",We=>We>=1?10:0),new ve.KX("points").makeTwoWay(),qn(ve.bn,{strokeWidth:2},new ve.KX("stroke","color"),new ve.KX("strokeWidth","thickness"),new ve.KX("strokeDashArray","dash")),qn(ve.bn,{segmentIndex:0,segmentOffset:new ve.E9(15,0),segmentOrientation:ve.rU.OrientAlong,alignmentFocus:ve.z6.Right,figure:"circle",width:10,strokeWidth:0},new ve.KX("fill","color"),new ve.KX("visible","dir",We=>We===1)),qn(ve.bn,{segmentIndex:-1,segmentOffset:new ve.E9(-10,6),segmentOrientation:ve.rU.OrientPlus90,alignmentFocus:ve.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new ve.KX("fill","color"),new ve.KX("visible","dir",We=>We>=1),new ve.KX("width","thickness",We=>7+3*We),new ve.KX("height","thickness",We=>7+3*We),new ve.KX("segmentOffset","thickness",We=>new ve.E9(-15,4+1.5*We))),qn(ve.bn,{segmentIndex:0,segmentOffset:new ve.E9(15,-6),segmentOrientation:ve.rU.OrientMinus90,alignmentFocus:ve.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new ve.KX("fill","color"),new ve.KX("visible","dir",We=>We===2),new ve.KX("width","thickness",We=>7+3*We),new ve.KX("height","thickness",We=>7+3*We),new ve.KX("segmentOffset","thickness",We=>new ve.E9(-15,4+1.5*We))),qn(ve.al,{alignmentFocus:new ve.z6(0,1,-4,0),editable:!0},new ve.KX("text").makeTwoWay(),new ve.KX("stroke","color"))),ke.current.linkTemplate.selectionAdornmentTemplate=qn(ve.uz,qn(ve.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Si(2)},new ve.KX("pathPattern","thickness",Si)),Jn({alignmentFocus:new ve.z6(0,0,-6,-4)}));function Si(We){return qn(ve.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(We+4).toString()+" H3"})}function Ui(We){var ar="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return We===0?ar="M0 0 M16 16 M0 8 L16 8":We===2&&(ar="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),qn(ve.bn,{geometryString:ar,margin:2,background:"transparent",mouseEnter:(br,Gi)=>Gi.background="dodgerblue",mouseLeave:(br,Gi)=>Gi.background="transparent",click:Fn("dir",We),contextClick:Fn("dir",We)})}function ji(We){var ar=(br,Gi)=>{br.handled=!0,br.diagram.model.commit(Gr=>{var Or=Gi.part.adornedPart;Gr.set(Or.data,We?"toSpot":"fromSpot",ve.z6.stringify(ve.z6.AllSides)),(We?Or.toNode:Or.fromNode).invalidateConnectedLinks()})};return qn(ve.bn,{width:12,height:12,fill:"transparent",mouseEnter:(br,Gi)=>Gi.background="dodgerblue",mouseLeave:(br,Gi)=>Gi.background="transparent",click:ar,contextClick:ar})}function Mn(We,ar){var br=0,Gi=ve.z6.RightSide;We.equals(ve.z6.Top)?(br=270,Gi=ve.z6.TopSide):We.equals(ve.z6.Left)?(br=180,Gi=ve.z6.LeftSide):We.equals(ve.z6.Bottom)&&(br=90,Gi=ve.z6.BottomSide),ar||(br-=180);var Gr=(Or,Wr)=>{Or.handled=!0,Or.diagram.model.commit(Zi=>{var ir=Wr.part.adornedPart;Zi.set(ir.data,ar?"toSpot":"fromSpot",ve.z6.stringify(Gi)),(ar?ir.toNode:ir.fromNode).invalidateConnectedLinks()})};return qn(ve.bn,{alignment:We,alignmentFocus:We.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:br,background:"transparent",mouseEnter:(Or,Wr)=>Wr.background="dodgerblue",mouseLeave:(Or,Wr)=>Wr.background="transparent",click:Gr,contextClick:Gr})}ke.current.linkTemplate.contextMenu=qn("ContextMenu",Ai(),oi(),qn("ContextMenuButton",qn(ve.s_,"Horizontal",Ui(0),Ui(1),Ui(2))),qn("ContextMenuButton",qn(ve.s_,"Horizontal",qn(ve.s_,"Spot",ji(!1),Mn(ve.z6.Top,!1),Mn(ve.z6.Left,!1),Mn(ve.z6.Right,!1),Mn(ve.z6.Bottom,!1)),qn(ve.s_,"Spot",{margin:new ve.Zt(0,0,0,2)},ji(!0),Mn(ve.z6.Top,!0),Mn(ve.z6.Left,!0),Mn(ve.z6.Right,!0),Mn(ve.z6.Bottom,!0)))));const Ei=`{ "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 xr=["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 Tr(We){return console.log("shapeName:",We),xr.indexOf(We)>=0}var _r=new ve.YI(xi.current,{maxSelectionCount:1,linkTemplate:qn(ve.rU,{locationSpot:ve.z6.Center,selectionAdornmentTemplate:qn(ve.uz,"Link",{locationSpot:ve.z6.Center},qn(ve.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),qn(ve.bn,{toArrow:"Standard",stroke:null}))},{routing:ve.rU.AvoidsNodes,curve:ve.rU.JumpOver,corner:5,toShortLength:4},new ve.KX("points"),qn(ve.bn,{isPanelMain:!0,strokeWidth:2}),qn(ve.bn,{toArrow:"Standard",stroke:null})),model:new ve.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...ve.bn.getFigureGenerators().toArray().map(We=>({text:"\u672A\u547D\u540D",size:"100 100",figure:We.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return ke.current.addDiagramListener("TextEdited",function(We){var ar;const br=We.subject.part;var Gi=(ar=document.activeElement)==null?void 0:ar.value;typeof Gi=="string"&&Gi.trim()===""&&ke.current.model.commit(function(Gr){Gr.set(br.data,"text","\u672A\u547D\u540D"),ke.current.commandHandler.stopCommand()},"increment")}),_r.nodeTemplate=qn(ve.NB,"Auto",{locationSpot:ve.z6.Center},new ve.KX("location","location",ve.E9.parse).makeTwoWay(ve.E9.stringify),qn(ve.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 ve.KX("stroke").makeTwoWay(),new ve.KX("fill").makeTwoWay(),new ve.KX("figure")),qn(ve.al,{margin:new ve.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new ve.$u(16,16),maxSize:new ve.$u(10,NaN),textAlign:"center",editable:!0},new ve.KX("key").makeTwoWay())),setTimeout(()=>{ke.current.grid=qn(ve.s_,"Grid",qn(ve.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),qn(ve.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),ke.current.grid.visible=!0,ke.current.grid.gridCellStroke="darkgray",ke.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=ke.current,ke.current}const Hi=()=>kt(this,null,function*(){var qn,te=ke.current.makeImage();const be=yield(0,At.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:te.src,file_data:JSON.stringify({login:(qn=(0,Nt.eY)())==null?void 0:qn.login,data:JSON.parse(ke.current.model.toJson())})}});Ne({src:be.url})});return(0,yt.useEffect)(()=>(setTimeout(()=>{mn()},500),Dn(Xe+1),()=>{ke.current=null}),[]),Vt.createElement("div",{ref:Fi,className:"body-overflow-initial"},Vt.createElement(on.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Xe,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Vt.createElement(jn.Z,null,Vt.createElement(Ot.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Vt.createElement(Ot.Z,{onClick:()=>{var qn,te,be=ke.current.selection.first();if(yi.current=!yi.current,document.activeElement&&be){let Jn=(te=(qn=document.activeElement)==null?void 0:qn.value)==null?void 0:te.trim();typeof Jn=="string"&&ke.current.model.commit(function(Fn){Fn.set(be.data,"text",Jn||"\u672A\u547D\u540D"),ke.current.commandHandler.stopCommand()},"increment")}Dn(Xe+1)}},Vt.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:Fe},Vt.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative",display:yi.current?"none":"block"},className:wt.flowChartWrp},Vt.createElement("div",{style:{display:"flex",height:"100%"}},Vt.createElement("div",{style:{width:"300px",height:"100%"}},Vt.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Vt.createElement("div",{style:{height:"calc(100% - 50px)"},className:wt.myPaletteDiv,ref:xi})),Vt.createElement("div",{style:{flex:1,position:"relative"}},Vt.createElement("div",{ref:sn,style:{height:"80vh"}}))),Vt.createElement("div",{className:"tr"},Vt.createElement(ge.ZP,{size:"large",onClick:Hi,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var nn=$t,dn=Dt(47889),En=Dt(71051);const De=dn.ZP.Group,Ce={margin:"0 8px"};var Qe=({callback:Fe,onCancel:Ne})=>{function ke(sn){Fe(sn)}return yt.createElement(Gt.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:ke},yt.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},yt.createElement("span",{style:Ce},"\u5355\u5143\u683C\u6570\uFF1A"),yt.createElement("span",{style:Ce},"\u884C\u6570"),yt.createElement(Gt.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},yt.createElement(En.Z,null)),yt.createElement("span",{style:Ce},"\u5217\u6570"),yt.createElement(Gt.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},yt.createElement(En.Z,null))),yt.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},yt.createElement("span",{style:Ce},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),yt.createElement(Gt.default.Item,{name:"align"},yt.createElement(De,null,yt.createElement(dn.ZP,{value:"default"},yt.createElement("i",{className:"fa fa-align-justify"})),yt.createElement(dn.ZP,{value:"left"},yt.createElement("i",{className:"fa fa-align-left"})),yt.createElement(dn.ZP,{value:"center"},yt.createElement("i",{className:"fa fa-align-center"})),yt.createElement(dn.ZP,{value:"right"},yt.createElement("i",{className:"fa fa-align-right"}))))),yt.createElement("div",{className:"flex-container flex-end"},yt.createElement(ge.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),yt.createElement(ge.ZP,{type:"ghost",onClick:Ne},"\u53D6\u6D88")))},un=Dt(71411),Nn=Dt(43001),ai=Dt.n(Nn),bn=(0,yt.forwardRef)(({use3d:Fe,width:Ne,height:ke,callback:sn,showSaveButton:xi},yi)=>{const Fi=(0,yt.useRef)(),Xe=(0,yt.useRef)(),[Dn,mn]=(0,yt.useState)(!1),Hi=(0,yt.useRef)({id:Fi,appName:"graphing",width:Ne||1e3,height:ke||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)(()=>{Xe.current=new(ai())(Hi.current,!0),window.onload=function(){Xe.current.inject("applet_container")}},[]);const qn=()=>{var te=window.ggbApplet.getPNGBase64(1,!0,72);return sn&&sn(te),te};return(0,yt.useEffect)(()=>{Hi.current.appName=Dn?"3D":"graphing",Xe.current.inject("applet_container")},[Dn]),(0,yt.useEffect)(()=>{mn(Fe)},[Fe]),(0,yt.useImperativeHandle)(yi,()=>({getImgData:qn})),yt.createElement(yt.Fragment,null,yt.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Fi}),yt.createElement(jn.Z,{align:"middle"},yt.createElement(Ot.Z,{flex:1},yt.createElement(un.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Dn,onChange:te=>mn(te)})),yt.createElement(Ot.Z,null,yt.createElement(ge.ZP,{size:"large",onClick:qn,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Ie=Dt(76562),Ue=Dt(6767);const cn="link",Ln="upload-image",Xn="add-flowchart",li="draw-image",Ci="add-flowchart",gn="code-block",ti="add-table",_i="------------",fr={default:_i,left:`:${_i}`,center:`:${_i}:`,right:`${_i}:`};var tr=Dt(37808);function er(){}let yr=0;const sr=1e4,hr="\u2581",zi="@\u2581\u2581@",gr="@\u2581@",Et=`
|
|
**\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`,Bn=["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 Gn(Fe){return/^\d+$/.test(Fe)?`${Fe}px`:Fe}const ci=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Kn={[ci+"-B"]:"bold",[ci+"-I"]:"italic"},rn={[cn]:"\u6DFB\u52A0\u94FE\u63A5",[gn]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Ln]:"\u6DFB\u52A0\u56FE\u7247",[li]:"\u6DFB\u52A0\u753B\u56FE",[Xn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[ti]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Yn=({defaultValue:Fe="",onChange:Ne,width:ke="100%",height:sn=400,miniToolbar:xi=!1,isFocus:yi=!1,watch:Fi,insertTemp:Xe,mode:Dn="markdown",id:mn="markdown-editor-id",showResizeBar:Hi=!1,noStorage:qn=!1,showNullButton:te=!1,showNullProgramButton:be=!1,hidetoolBar:Jn=!1,fullScreen:Fn=!1,onBlur:Be,onCMBeforeChange:zn,onFullScreen:Ai,className:Ii="",disablePaste:Ki=!1,disabled:oi=!1,disabledFill:gi=!1,placeholder:Si="",values:Ui="",extraUse:ji})=>{const[Mn,Ei]=(0,yt.useState)(null),[xr,Tr]=(0,yt.useState)(Fe),[_r,We]=(0,yt.useState)(Fi),[ar,br]=(0,yt.useState)(Fn),[Gi,Gr]=(0,yt.useState)(""),[Or,Wr]=(0,yt.useState)(0),[Zi,ir]=(0,yt.useState)(sn),[Qi,pn]=(0,yt.useState)(!1),[dr,xn]=(0,yt.useState)(0),[bi,Sr]=(0,yt.useState)(0),Er=(0,yt.useRef)(),io=(0,yt.useRef)(),Yr=(0,yt.useRef)(),Mr=(0,yt.useRef)();(0,yt.useEffect)(()=>{const An=window.scrollY||window.pageYOffset;Tr(Ui),Mn==null||Mn.setValue(Ui),window.scrollTo(0,An)},[Ui]),(0,yt.useEffect)(()=>{Ai==null||Ai(ar)},[ar]),(0,yt.useEffect)(()=>{if(Er.current){let An=function(Qt,zt){var de;if(Ki){zt.preventDefault();return}const ue=zt.clipboardData;if(ue){const Ge=ue.types.toString(),Ze=ue.items;if(Ge==="Files"||ue.types.indexOf("Files")>-1){if(zt.preventDefault(),Dn=="stex")return;try{let an=Ze[1];((de=Ze[0])==null?void 0:de.kind)==="file"&&(an=Ze[0]);const kn=an.getAsFile(),Un=kn.name.split(".").pop();(0,In.I)(kn,yn=>{var si,vi,le;yn.id?((si=kn==null?void 0:kn.type)==null?void 0:si.indexOf("image"))>-1?Ct.replaceSelection(`<img width="100%" src="/api/attachments/${yn.id}?type=${yn.content_type})" alt="" />`):((vi=kn==null?void 0:kn.type)==null?void 0:vi.indexOf("video"))>-1?Ct.replaceSelection(`<video width="100%" controls src="/api/attachments/${yn.id}"></video>`):((le=kn==null?void 0:kn.type)==null?void 0:le.indexOf("pdf"))>-1?Ct.replaceSelection(`<a href="/api/attachments/${yn.id}?type=${kn.type}&disposition=inline" target="_blank">${kn.name}</a>`):Bn.includes(Un)?Ct.replaceSelection(`<a href="/api/attachments/${yn.id}?type=office&disposition=inline" target="_blank">${kn.name}</a>`):Ct.replaceSelection(`[${kn.name}](/api/attachments/${yn.id}?type=${yn.content_type})`):(yn==null?void 0:yn.status)===401&&(document.location.href="/user/login")})}catch(an){Ue.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Ct=ie().fromTextArea(Er.current,{mode:Dn,lineNumbers:!xi,lineWrapping:!0,value:Fe,autoCloseTags:!0,autoCloseBrackets:!0});return Ct.on("keyup",function(Qt,zt){zt.keyCode===8&&(Qt.getValue()==""?Ct.setOption("placeholder",Si):Ct.setOption("placeholder",null))}),Ct.on("keydown",function(Qt,zt){if(zt.keyCode===8){var de=tn(Qt);de&&zt.preventDefault()}}),yi&&Ct.focus(),Ct.on("paste",An),oi&&Ct.on("beforeChange",function(Qt,zt){(zt.origin==="paste"||zt.origin==="+input")&&zt.cancel()}),Ei(Ct),()=>{Ct.off("paste",An)}}},[]);const uo=(0,yt.useCallback)(()=>{if(io.current)try{}catch(An){console.log(An,"---- to set md editor body height")}},[Zi,io,ar]);(0,yt.useEffect)(()=>{function An(){let Ct=new we.Z(Qt=>{for(let zt of Qt)(zt.target.offsetHeight>0||zt.target.offsetWidth>0)&&(uo(),Mn.setSize("100%","100%"),Mn.refresh())});return Ct.observe(Er.current.parentElement),Ct}if(Mn){const Ct=An();return()=>{var Qt,zt;(Qt=Er.current)!=null&&Qt.parentElement&&Ct.unobserve((zt=Er.current)==null?void 0:zt.parentElement)}}},[Mn,uo]),(0,yt.useEffect)(()=>{if(Mn){let An=[];for(const[Ct,Qt]of Object.entries(Kn)){let zt={[Ct]:()=>{Hn(Qt)}};An.push(zt),Mn.addKeyMap(zt)}return()=>{for(let Ct of An)Mn.removeKeyMap(Ct)}}},[Mn]),(0,yt.useEffect)(()=>{Fn!==ar&&br(Fn)},[Fn]),(0,tr.Z)(()=>{if(!qn&&Or>0){let An=new Date().getTime(),Ct=window.sessionStorage.getItem(mn);An>=Or+sr&&(!Ct||Ct!==xr)&&(window.sessionStorage.setItem(mn,xr),pn(!0))}},sr),(0,yt.useEffect)(()=>{We(Fi)},[Mn,Fi]),(0,yt.useEffect)(()=>{Mn&&yi&&Mn.focus()},[Mn,yi]),(0,yt.useEffect)(()=>{if(_r&&Mn){let An=function(Qt){let zt=Qt.target;if(Mr.current){let de=zt.scrollTop/zt.scrollHeight;Mr.current.scrollTop=Mr.current.scrollHeight*de}};const Ct=Mn.getScrollerElement();return Ct.addEventListener("scroll",An),()=>{Ct.removeEventListener("scroll",An)}}},[Mn,_r]),(0,yt.useEffect)(()=>{if(Mn&&zn){let An=function(Ct,Qt){zn(Ct,Qt)};return Mn.on("beforeChange",An),()=>{Mn.off("beforeChange",An)}}},[Mn,zn]),(0,yt.useEffect)(()=>{if(Mn&&Be){let An=function(){Be(Mn.getValue())};return Mn.on("blur",An),()=>{Mn.off("blur",An)}}},[Mn,Be]);function tn(An,Ct){var Qt=An.getDoc(),zt=Qt.getCursor(),de=Qt.getLine(zt.line),ue=de.charAt(zt.ch-1),Ge=de.lastIndexOf("@\u2581@",zt.ch),Ze=de.lastIndexOf("@\u2581\u2581@",zt.ch),an=Ge>Ze?Ge:Ze,kn=Ge>Ze?3:4;if(zi.indexOf(ue)===-1)return null;if(console.log("change1:",Ct,An,de,zt,an,Ge,Ze,ue),an>=0&&zt.ch-an<5){var Un=an+kn;return Qt.replaceRange("",{line:zt.line,ch:an},{line:zt.line,ch:Un}),{line:zt.line,ch:Un}}return null}(0,yt.useEffect)(()=>{if(Mn){let An=function(Ct,Qt){const zt=Ct.getValue();Tr(zt),Wr(new Date().getTime()),Ct.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Ne&&(be?Ne(zt,ne(zt)):Ne(zt))};return Mn.on("change",An),()=>{Mn.off("change",An)}}},[Mn,Ne]),(0,yt.useEffect)(()=>{if(Mn)if(Fe==null)Mn.setValue(""),Tr("");else{const An=window.scrollY||window.pageYOffset;Fe!==Mn.getValue()&&(Mn.setValue(Fe),Tr(Fe),Mn.setCursor(oi?1:Mn.lineCount(),0),window.scrollTo(0,An))}},[Mn,Fe]);const Hn=(0,yt.useCallback)(An=>{const Ct=Mn.getCursor(),Qt=Mn.getSelection();let zt=Qt.split(`
|
|
`);switch(An){case"bold":return Mn.replaceSelection("**"+Qt+"**"),Qt===""&&Mn.setCursor(Ct.line,Ct.ch+2),Mn.focus();case"italic":return Mn.replaceSelection("*"+Qt+"*"),Qt===""&&Mn.setCursor(Ct.line,Ct.ch+1),Mn.focus();case"code":return Mn.replaceSelection("`"+Qt+"`"),Qt===""&&Mn.setCursor(Ct.line,Ct.ch+1),Mn.focus();case"inline-latex":return Gr("inline-latex"),Mn.focus();case"latex":return Mn.replaceSelection("```latex\n"+Qt+"\n```"),Mn.setCursor(Ct.line+1,Qt.length+1),Mn.focus();case"line-break":return Mn.replaceSelection(`<br/>
|
|
`),Mn.focus();case"list-ul":return Qt===""?Mn.replaceSelection("- "+Qt):Mn.replaceSelection(zt.map(de=>de===""?"":`- ${de}`).join(`
|
|
`)),Mn.focus();case"list-ol":return Qt===""?Mn.replaceSelection("1. "+Qt):Mn.replaceSelection(zt.map((de,ue)=>de===""?"":`${ue+1}. ${de}`).join(`
|
|
`)),Mn.focus();case"add-null-ch":return Qt===""&&Mn.setCursor(Ct.line,Ct.ch),Mn.replaceSelection(hr),Mn.focus();case"add-signal":return Qt===""&&Mn.setCursor(Ct.line,Ct.ch),Mn.replaceSelection(gr),Mn.focus();case"add-multiple":return Qt===""&&Mn.setCursor(Ct.line,Ct.ch),Mn.replaceSelection(zi),Mn.focus();case"inster-template-1":return Qt===""&&Mn.setCursor(Ct.line,Ct.ch),Mn.replaceSelection(Et),Mn.focus();case"eraser":return Mn.setValue(""),Mn.focus();case"trigger-watch":return We(!_r),Mn.focus();case"trigger-full-screen":return br(!ar),Mn.focus();case cn:Gr(cn);return;case gn:Gr(gn);return;case Ln:Gr(Ln);return;case li:Gr(li);return;case"maths-latex":Gr("maths-latex");return;case Xn:Gr(Xn);return;case ti:Gr(ti);return;default:throw new Error}},[Mn,_r,ar]),_e=(0,yt.useCallback)((An,Ct)=>{var Qt,zt,de,ue,Ge,Ze;switch(Gr(""),Gi){case cn:const{title:si,link:vi}=An;return Mn.replaceSelection(`[${si}](${vi})`),Mn.focus();case gn:const{language:le,content:ei}=An;return Mn.replaceSelection(["```"+le,ei,"```"].join(`
|
|
`)),Mn.focus();case"maths-latex":for(var an=atob(An),kn=new Uint8Array(an.length),Un=0;Un<an.length;Un++)kn[Un]=an.charCodeAt(Un);var yn=new Blob([kn],{type:"image/png"});(0,In.I)(yn,or=>{or.id?Mn.replaceSelection(``):(or==null?void 0:or.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Mn.replaceSelection("`$$"+An+"$$`");break;case Ln:case li:case Ci:const{src:ni,alt:Wn}=An,Vn=Ct,Ni=(de=(zt=(Qt=Vn==null?void 0:Vn.name)==null?void 0:Qt.split("."))==null?void 0:zt.pop)==null?void 0:de.call(zt);return((ue=Vn==null?void 0:Vn.type)==null?void 0:ue.indexOf("image"))>-1||!(Vn!=null&&Vn.type)?Vn!=null&&Vn.align||Vn!=null&&Vn.width?Mn.replaceSelection(`<p style="text-align:${Vn.align||"initial"}"><img width="${Vn.width?Vn.width+"%":"initial"}" src="${ni}" alt="${Wn||""}" /></p>`):Mn.replaceSelection(`<img width="100%" src="${ni}" alt="${Wn||""}" />`):((Ge=Vn==null?void 0:Vn.type)==null?void 0:Ge.indexOf("video"))>-1?Mn.replaceSelection(`<video width="100%" controls src="${ni}"></video>`):((Ze=Vn==null?void 0:Vn.type)==null?void 0:Ze.indexOf("pdf"))>-1?Mn.replaceSelection(`<a href="${ni}?type=${Vn.type}&disposition=inline" target="_blank">${Vn.name}</a>`):Bn.includes(Ni)?Mn.replaceSelection(`<a href="${ni}?type=office&disposition=inline" target="_blank">${Vn.name}</a>`):Mn.replaceSelection(`[${Vn.name}](${ni})`),Mn.focus();case ti:const{row:Di,col:Mi,align:Ti}=An;let Ri=`
|
|
`;for(let or=0;or<Di;or++){let Ir=[],jr=[];for(let Hr=0;Hr<Mi;Hr++)or===1&&jr.push(fr[Ti]),Ir.push(" ");or===1&&(Ri+=`| ${jr.join(" | ")} |
|
|
`),Ri+=`| ${Ir.join(Mi===1?"":" | ")} |
|
|
`}return Mn.replaceSelection(Ri+`
|
|
`),Mn.focus();default:throw new Error}},[Mn,Gi]),Tt=(0,yt.useMemo)(()=>{switch(Gi){case cn:return yt.createElement(fn,{callback:_e,onCancel:Wt});case gn:return yt.createElement(_n.Z,{callback:_e,onCancel:Wt});case Ln:return yt.createElement(In.Z,{callback:_e,onCancel:Wt});case Xn:return yt.createElement(nn,{callback:_e,onCancel:Wt});case ti:return yt.createElement(Qe,{callback:_e,onCancel:Wt});case"maths-latex":return yt.createElement(bn,{showSaveButton:!0,callback:_e});case"inline-latex":return yt.createElement(Ie.Z,{showSaveButton:!0,callback:_e});default:return null}},[Gi]);function Wt(){Gr("")}(0,yt.useEffect)(()=>{if(Yr.current){let An=function(Ge){de=!0,ue=Ge.pageY},Ct=function(){de=!1},Qt=function(Ge){if(de){let Ze=Ge.pageY-ue;Ze<0&&(Ze=0),Ze>300&&(Ze=300);let an=sn+Ze+"px";ir(an)}},zt=Yr.current,de=!1,ue=0;return zt.addEventListener("mousedown",An),document.addEventListener("mousemove",Qt),document.addEventListener("mouseup",Ct),()=>{zt.removeEventListener("mousedown",An),document.removeEventListener("mousemove",Qt),document.removeEventListener("mouseup",Ct)}}},[Mn,Yr]),(0,yt.useEffect)(()=>{ir(sn)},[sn]);const qt=Gn(ke),Se=Gn(Zi),Te={width:qt,height:Se},en=(0,yt.useMemo)(()=>{if(Or){let An=new Date(Or),Ct=An.getHours(),Qt=An.getMinutes(),zt=An.getSeconds();return Ct=Ct<10?"0"+Ct:Ct,Qt=Qt<10?"0"+Qt:Qt,zt=zt<10?"0"+zt:zt,`${Ct}:${Qt}:${zt}`}return 0},[Or]),ne=An=>{const Ct=[];if(be){let Qt=-1;An=An.replace(/(@▁▁@|@▁@)/g,function(zt,de,ue){Ct.push({multiLine:zt!==gr})})}return Ct};function Me(){window.sessionStorage.removeItem(mn),pn(!1),Wr(0)}function Ke(){pn(!1),Wr(0),Mn.setValue(window.sessionStorage.getItem(mn))}(0,yt.useEffect)(()=>{rn[Gi]&&Gi!==li&&Gi!==Xn&&setTimeout(()=>{const An=document.getElementsByClassName("markdown-popup-form")[0],Ct=window.innerWidth/2-An.offsetWidth/2,Qt=window.innerHeight/2-An.offsetHeight/2;xn(Ct),Sr(Qt)},0)},[Gi]);const je=An=>{An.preventDefault();const Ct=An.clientX-dr,Qt=An.clientY-bi;document.body.onmousemove=zt=>{let de=zt.clientX-Ct,ue=zt.clientY-Qt;const Ge=document.getElementsByClassName("markdown-popup-form")[0],Ze=window.innerWidth-Ge.offsetWidth,an=window.innerHeight-Ge.offsetHeight;de=Math.max(0,Math.min(de,Ze)),ue=Math.max(0,Math.min(ue,an)),hn(zt.clientX,zt.clientY,Ct,Qt)&&(xn(de),Sr(ue))},document.body.onmouseup=function(){document.body.onmousemove=null}},hn=(An,Ct,Qt,zt)=>{const de=document.body.clientHeight,ue=document.body.clientWidth;return An<20&&Qt>An||An>ue-20&&Qt<An||Ct<20&&zt>Ct||Ct>de-20&&zt<Ct?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return yt.createElement(yt.Fragment,null,yt.createElement("div",{className:"markdown-editor-wrapper",ref:io},yt.createElement("div",{className:`markdown-editor-container ${Ii} ${_r?"on-preview":""} ${xi?"mini":""} ${ar?"full-screen":""}`,style:Te},yt.createElement(Zt,{insertTemp:Xe,watch:_r,fullScreen:ar,showNullButton:te,showNullProgramButton:be,onActionCallback:Hn,hidetoolBar:Jn,extraUse:ji}),yt.createElement("div",{className:"markdown-editor-body"},yt.createElement("div",{className:"codemirror-container"},yt.createElement("textarea",{ref:Er,placeholder:Si})),_r?yt.createElement("div",{ref:Mr,className:"preview-container"},Dn==="stex"&&yt.createElement(Kt,{value:xr}),Dn!=="stex"&&yt.createElement(ze.Z,{disabledFill:gi,showProgramFill:be,value:xr})):null))),Hi?yt.createElement("a",{ref:Yr,className:"editor-resize"}):null,Gi===li&&yt.createElement(Re,{callback:_e,onCancel:Wt}),Gi===Xn&&yt.createElement(nn,{callback:_e,onCancel:Wt}),yt.createElement(oe.Z,null,rn[Gi]&&Gi!==li&&Gi!==Xn?yt.createElement(on.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:dr,top:bi},title:yt.createElement("div",{style:{cursor:"move"},onMouseDown:je},rn[Gi]),open:!0,onCancel:Wt,footer:null,destroyOnClose:!0,width:Gi===Xn?"1200px":null,height:Gi===Xn?"80vh":null,className:"markdown-popup-form"},Tt):null))}},17077:function(Qn,pi,Dt){"use strict";Dt.d(pi,{Z:function(){return It},I:function(){return oe}});var yt=Dt(28284),ee=Dt(6767),ie=Dt(37568),we=Dt(77736),Ee=Dt(71051),jt=Dt(47889),ce=Dt(99571),Ve=Dt(46699),xe=Dt(59301),Lt=Dt(59301),ze=Object.defineProperty,Kt=Object.defineProperties,Je=Object.getOwnPropertyDescriptors,Bt=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,dt=(Gt,_t,ge)=>_t in Gt?ze(Gt,_t,{enumerable:!0,configurable:!0,writable:!0,value:ge}):Gt[_t]=ge,lt=(Gt,_t)=>{for(var ge in _t||(_t={}))nt.call(_t,ge)&&dt(Gt,ge,_t[ge]);if(Bt)for(var ge of Bt(_t))et.call(_t,ge)&&dt(Gt,ge,_t[ge]);return Gt},gt=(Gt,_t)=>Kt(Gt,Je(_t));const{useForm:mt}=yt.default,St={width:280,marginRight:10},Mt={labelCol:{span:5},wrapperCol:{span:19}};var It=({callback:Gt,onCancel:_t})=>{const[ge]=mt();let me=(0,xe.useRef)();function Pe(wn){me.current.width=ge.getFieldValue("width"),me.current.align=ge.getFieldValue("align"),Gt(wn,me.current)}function ye(wn,ln){if(wn.status===-1){ee.ZP.error(wn.message);return}ge.setFieldsValue({src:`/api/attachments/${wn.id}`,type:ln.type})}function He(wn){let ln=wn.target.files[0];me.current=ln,oe(ln,ye)}return Lt.createElement(yt.default,gt(lt({form:ge},Mt),{className:"upload-image-panel",onFinish:Pe,style:{width:470,overflow:"hidden"}}),Lt.createElement(yt.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Lt.createElement("div",{className:"flex-container"},Lt.createElement(yt.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},Lt.createElement(ie.default,{style:St})),Lt.createElement(Zt,{onFileChange:He}))),Lt.createElement(yt.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Lt.createElement(ie.default,{style:{width:264}})),Lt.createElement(yt.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Lt.createElement(we.Z,null,Lt.createElement(yt.default.Item,{name:"width",style:{margin:0}},Lt.createElement(Ee.Z,{style:{width:264}})),Lt.createElement("span",{className:"ml8"},"%"))),Lt.createElement(yt.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Lt.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"}]})),Lt.createElement("aside",null,Lt.createElement(yt.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Lt.createElement(ce.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Lt.createElement(ce.ZP,{type:"default",onClick:_t},"\u53D6\u6D88"))))};function Zt({onFileChange:Gt}){return Lt.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Lt.createElement("input",{type:"file",onChange:Gt}))}function oe(Gt,_t){if(!Gt)throw new String("\u6CA1\u6709\u6587\u4EF6");let ge=new FormData;ge.append("editormd-image-file",Gt),ge.append("file_param_name","editormd-image-file"),ge.append("byxhr","true");var me=new window.XMLHttpRequest;me.withCredentials=!0,me.addEventListener("load",function(Pe){_t(JSON.parse(Pe.target.responseText),Gt)},!1),me.addEventListener("error",function(Pe){console.error(Pe)},!1),me.open("POST",`${Ve.KI}/api/attachments.json`),me.send(ge)}},91558:function(Qn,pi,Dt){"use strict";Dt.d(pi,{Z:function(){return ie}});var yt=Dt(59301),ee=Dt(4676);class ie extends yt.Component{constructor(Ee){super(Ee);const jt=window.document;this.node=jt.createElement("div"),jt.body.appendChild(this.node)}render(){const{children:Ee}=this.props;return(0,ee.createPortal)(Ee,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},75975:function(Qn,pi,Dt){"use strict";Dt.d(pi,{SV:function(){return ve},ZP:function(){return Re}});var yt=Dt(59301),ee=Dt(76374);const ie={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"]},we={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"]},Ee={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(`
|
|
`)}]},ce={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 Ve=Dt(53184),xe=Dt.n(Ve),Lt=(Ye,mi,Cn)=>new Promise((Ot,At)=>{var wt=kt=>{try{Vt(Cn.next(kt))}catch($t){At($t)}},Nt=kt=>{try{Vt(Cn.throw(kt))}catch($t){At($t)}},Vt=kt=>kt.done?Ot(kt.value):Promise.resolve(kt.value).then(wt,Nt);Vt((Cn=Cn.apply(Ye,mi)).next())});const ze={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"]}},Kt=(Ye,mi,Cn,Ot)=>{const At=mi.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:Cn.lineNumber,endColumn:Cn.column});return Array.from(new Set(At.match(/\b\w{2,}\b/g)||[])).map(Nt=>({label:Nt,kind:Ye.languages.CompletionItemKind.Text,insertText:Nt,range:Ot}))},Je=(Ye,mi,Cn,Ot)=>{Ye.languages.registerCompletionItemProvider(mi,{provideCompletionItems(At,wt){const Nt=At.getWordUntilPosition(wt),Vt={startLineNumber:wt.lineNumber,endLineNumber:wt.lineNumber,startColumn:Nt.startColumn,endColumn:Nt.endColumn},kt=At.getLineContent(wt.lineNumber).substring(Nt.startColumn-2,Nt.endColumn);return{suggestions:[...Kt(Ye,At,wt,Vt),...Cn.map(nn=>({label:nn,kind:Ye.languages.CompletionItemKind.Keyword,documentation:nn,insertText:nn,insertTextRules:Ye.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Vt})),...Ot.map(nn=>({label:nn.label,kind:Ye.languages.CompletionItemKind.Snippet,documentation:nn.content,insertText:kt.startsWith("#")?nn.content.replace(/#/,""):nn.content,insertTextRules:Ye.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Vt}))]}}})};var Bt=Ye=>{ze.languages.forEach(mi=>{Ye.languages.registerDocumentFormattingEditProvider(mi,{provideDocumentFormattingEdits(Cn){return Lt(this,null,function*(){const Ot=xe()(Cn.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:Cn.getFullModelRange(),text:Ot}]})}})}),Je(Ye,"java",we.keywords,we.quickKey),Je(Ye,"cpp",Ee.keywords,Ee.quickKey),Je(Ye,"c",ie.keywords,[]),Je(Ye,"python",jt.keywords,jt.quickKey),Je(Ye,"scala",ce.keywords,ce.quickKey)};const nt="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var et=Object.defineProperty,dt=(Ye,mi,Cn)=>mi in Ye?et(Ye,mi,{enumerable:!0,configurable:!0,writable:!0,value:Cn}):Ye[mi]=Cn,lt=(Ye,mi,Cn)=>dt(Ye,typeof mi!="symbol"?mi+"":mi,Cn);const gt=class Ex{constructor(mi,Cn,Ot){this.placeholder=mi,this.editor=Cn,this.monaco=Ot,Cn.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)}};lt(gt,"ID","editor.widget.placeholderHint");var St=gt,Mt=Dt(96236),It=Dt(6767),Zt=Dt(25399),oe=Dt(89392),Gt=Dt(49535),_t=Dt(56102),ge=Object.defineProperty,me=Object.defineProperties,Pe=Object.getOwnPropertyDescriptors,ye=Object.getOwnPropertySymbols,He=Object.prototype.hasOwnProperty,wn=Object.prototype.propertyIsEnumerable,ln=(Ye,mi,Cn)=>mi in Ye?ge(Ye,mi,{enumerable:!0,configurable:!0,writable:!0,value:Cn}):Ye[mi]=Cn,Oe=(Ye,mi)=>{for(var Cn in mi||(mi={}))He.call(mi,Cn)&&ln(Ye,Cn,mi[Cn]);if(ye)for(var Cn of ye(mi))wn.call(mi,Cn)&&ln(Ye,Cn,mi[Cn]);return Ye},Sn=(Ye,mi)=>me(Ye,Pe(mi)),se=(Ye,mi)=>{var Cn={};for(var Ot in Ye)He.call(Ye,Ot)&&mi.indexOf(Ot)<0&&(Cn[Ot]=Ye[Ot]);if(Ye!=null&&ye)for(var Ot of ye(Ye))mi.indexOf(Ot)<0&&wn.call(Ye,Ot)&&(Cn[Ot]=Ye[Ot]);return Cn},Yt=(Ye,mi,Cn)=>new Promise((Ot,At)=>{var wt=kt=>{try{Vt(Cn.next(kt))}catch($t){At($t)}},Nt=kt=>{try{Vt(Cn.throw(kt))}catch($t){At($t)}},Vt=kt=>kt.done?Ot(kt.value):Promise.resolve(kt.value).then(wt,Nt);Vt((Cn=Cn.apply(Ye,mi)).next())});function fn(Ye){return/^\d+$/.test(Ye)?`${Ye}px`:Ye}function _n(){}let In=!1;const on={"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 jn(Ye=[]){let mi=Ye;if(Array.isArray(Ye)){for(let Cn=0;Cn<Ye.length;Cn++){let Ot=on[Ye[Cn]];if(Ot)return Ot}return mi[0]}return on[mi]||mi}let Pn=null;const di=()=>Yt(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(Ye){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",Ye)}});var Re=Ye=>{var mi=Ye,{width:Cn="100%",height:Ot="100%",value:At,language:wt="javascript",style:Nt={},options:Vt={},overrideServices:kt={},theme:$t="vs-dark",onEditBlur:nn,isCopy:dn=!1,onSave:En,autoHeight:De=!1,forbidCopy:Ce=!1,onChange:Qe=_n,editorDidMount:un=_n,onFocus:Nn=_n,onBreakPoint:ai=_n,breakPointValue:Tn=[],filename:bn="educoder.txt",errorLine:Ie,errorContent:Ue="",highlightLine:cn,openBreakPoint:Ln=!1,placeholder:Xn="",showMiniMap:li=!0}=mi,Ci=se(mi,["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 gn=(0,yt.useRef)(),ti=(0,yt.useRef)({}),_i=(0,yt.useRef)(),fr=(0,yt.useRef)(),tr=(0,yt.useRef)([]),er=(0,yt.useRef)(!1),yr=(0,yt.useRef)(),sr=(0,yt.useRef)(),hr=(0,yt.useRef)(!1),[zi,gr]=(0,yt.useState)(!1);function Et(){let Xe;return gn.current&&(Xe=new ee.Z(Dn=>{for(let mn of Dn)(mn.target.offsetHeight>0||mn.target.offsetWidth>0)&&ti.current.instance.layout()}),Xe.observe(gn.current)),Xe}function Bn(){It.ZP.warning({content:decodeURIComponent(nt),key:"monaco-editor-tip"})}const Gn=()=>{let Xe=ti.current.instance;if(At!=null&&Xe&&zi){const Dn=Xe.getModel();Dn&&At!==Dn.getValue()&&(In=!0,Dn.setValue(At),Xe.layout(),In=!1)}};(0,yt.useEffect)(()=>{const Xe=Gt.Z.subscribe("formatDocument",Dn=>{var mn;let Hi=ti.current.instance;(mn=Hi==null?void 0:Hi.getAction)==null||mn.call(Hi,"editor.action.formatDocument").run()});return window.updateMonacoValue=Dn=>{Qe(Dn)},Xe},[]),(0,yt.useEffect)(()=>{var Xe;let Dn=ti.current.instance;fr.current&&clearTimeout(fr.current),fr.current=setTimeout(()=>{Gn()},500),At&&(At!=null&&At.length)&&((Xe=Dn==null?void 0:Dn.updateOptions)==null||Xe.call(Dn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(At.split(/\r\n|\r|\n/g).length))+3,5)}))},[At,zi,ti.current]),(0,yt.useEffect)(()=>{if(Ie&&ti.current&&ti.current.instance){let Dn=ti.current.instance;Dn.changeViewZones(function(mn){var Hi=document.createElement("div");Hi.style.padding="10px 20px",Hi.style.width="calc(100% - 20px)",Hi.className="my-error-line-wrp",Hi.innerHTML=Ue,mn.addZone({afterLineNumber:Ie||11,heightInLines:3,domNode:Hi})});var Xe={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}};Dn.addOverlayWidget(Xe),Dn.revealPositionInCenter({lineNumber:20,column:1})}},[Ie,ti.current,zi]);const fi=(Xe="",Dn)=>{if(!Xe||Xe.trim()==="")return!0;const Hi=ti.current.instance.getModel().getLineTokens(Dn);let qn=!1;for(let te=0;te<2;te++)Hi.getStandardTokenType(te)===1&&(qn=!0);return qn};(0,yt.useEffect)(()=>{var Xe;const Dn=(Xe=ti.current)==null?void 0:Xe.instance;if(Dn&&zi&&Ce){const mn=Dn.onDidBlurEditorWidget(()=>{hr.current=!1}),Hi=Dn.onDidFocusEditorText(()=>{hr.current=!0});return()=>{mn.dispose(),Hi.dispose()}}},[ti.current,zi,Ce]),(0,yt.useEffect)(()=>{var Xe;if((Xe=ti.current)!=null&&Xe.instance&&zi&&Ln){let Dn=ti.current.instance,mn=Dn.getModel();if(!mn)return;(()=>{var oi;let gi=[],Si=[];const Ui=mn.getAllDecorations();for(let Mn of Ui)Mn.options.className==="highlighted-line"&&(gi.push((oi=Mn==null?void 0:Mn.range)==null?void 0:oi.startLineNumber),Si.push(Mn==null?void 0:Mn.id));if(cn===gi[0])return;mn.deltaDecorations(Si,[]);const ji=mn.getLineCount();cn&&cn<=ji&&(Dn.deltaDecorations([],[{range:new Pn.Range(cn,1,cn,mn.getLineMaxColumn(cn)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Dn.revealLineInCenter(cn))})();const qn=(oi=!1)=>{var gi;let Si=[],Ui=[];const ji=mn.getAllDecorations();for(let Mn of ji)Mn.options.linesDecorationsClassName==="breakpoints-select"&&(Si.push((gi=Mn==null?void 0:Mn.range)==null?void 0:gi.startLineNumber),Ui.push(Mn==null?void 0:Mn.id));if(oi)return{lines:Si,ids:Ui};ai(Si)},te=oi=>Yt(void 0,null,function*(){let gi={range:new Pn.Range(oi,1,oi,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield mn.deltaDecorations([],[gi]),qn()}),be=oi=>Yt(void 0,null,function*(){let gi=[];const Si=Dn.getLineDecorations(oi);for(let Ui of Si)Ui.options.linesDecorationsClassName==="breakpoints-select"&&gi.push(Ui.id);yield mn.deltaDecorations(gi,[]),qn()}),Jn=oi=>{let gi=Dn.getLineDecorations(oi);for(let Si of gi)if(Si.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,oe.isEqual)(Tn,qn(!0).lines)){mn.deltaDecorations(qn(!0).ids,[]);const oi=Tn.map(gi=>({range:new Pn.Range(gi,1,gi,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));mn.deltaDecorations([],oi)}const Fn=Dn.onDidChangeModelContent(oi=>{let gi=Dn.getPosition();if(gi){let Si=gi.lineNumber;clearTimeout(sr.current),sr.current=setTimeout(()=>{fi(mn.getLineContent(Si),Si)?be(Si):Jn(Si)?(be(Si),te(Si)):qn()},100)}}),Be=Dn.onMouseDown(oi=>{var gi,Si,Ui;if(oi.target.detail&&((Ui=(Si=(gi=oi.target)==null?void 0:gi.element)==null?void 0:Si.className)!=null&&Ui.includes("line-numbers"))){let ji=oi.target.position.lineNumber;if(fi(mn.getLineContent(ji),ji))return;Jn(ji)?be(ji):te(ji)}}),zn=oi=>{let gi={range:new Pn.Range(oi,1,oi,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};tr.current=Dn.deltaDecorations(tr.current,[gi])},Ai=()=>{tr.current=Dn.deltaDecorations(tr.current,[])},Ii=Dn.onMouseMove(oi=>{var gi,Si,Ui;if(Ai(),oi.target.detail&&((Ui=(Si=(gi=oi.target)==null?void 0:gi.element)==null?void 0:Si.className)!=null&&Ui.includes("line-numbers"))){let ji=oi.target.position.lineNumber;if(fi(mn.getLineContent(ji),ji))return;zn(ji)}}),Ki=Dn.onMouseLeave(()=>{Ai()});return()=>{Fn.dispose(),Be.dispose(),Ii.dispose(),Ki.dispose()}}},[ti.current,zi,Tn,cn,Ln,wt]),(0,yt.useEffect)(()=>{var Xe;(Xe=ti.current)!=null&&Xe.instance&&Ln&&ti.current.instance.setPosition({lineNumber:0,column:0})},[cn]);function ci(){let Xe=ti.current.instance;if(Xe){const Dn=Xe.getSelection(),mn=ti.current.pastePos||{},Hi=new Pn.Range(mn.startLineNumber||Dn.endLineNumber,mn.startColumn||Dn.endColumn,mn.endLineNumber||Dn.endLineNumber,mn.endColumn||Dn.endColumn);setTimeout(()=>{Xe.executeEdits("",[{range:Hi,text:""}])},300)}}function Kn(Xe){(window.navigator.platform.match("Mac")?Xe.metaKey:Xe.ctrlKey)&&Xe.keyCode==83&&(Xe.preventDefault(),En())}const rn=()=>{if(De&&ti.current.instance){const Xe=ti.current.instance.getContentHeight();yi(Xe<Ot?Ot:Xe)}else yi(Ot)};function Yn(Xe){var Dn=document.createEvent("MouseEvents");Dn.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Xe.dispatchEvent(Dn)}const Fe=Xe=>{if(!hr.current)return;const{keyCode:Dn,ctrlKey:mn,metaKey:Hi,target:qn,type:te}=Xe;return(te==="paste"||(Dn===67||Dn===86)&&(Hi||mn))&&qn.nodeName==="TEXTAREA"&&(Bn(),Xe.preventDefault()),!1};function Ne(Xe,Dn){var mn=window.URL||window.webkitURL||window,Hi=new Blob([Dn]),qn=document.createElementNS("http://www.w3.org/1999/xhtml","a");qn.href=mn.createObjectURL(Hi),qn.download=Xe,Yn(qn)}(0,yt.useEffect)(()=>{rn()},[rn]),(0,yt.useEffect)(()=>{gn.current&&!zi&&Promise.all([Dt.e(8909),Dt.e(6656)]).then(Dt.bind(Dt,71448)).then(Xe=>{try{Pn=Xe,ti.current.instance=Pn.editor.create(gn.current,{value:At,language:jn(wt),theme:$t,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:li||!1}},kt);const Dn=ti.current.instance;let qn=[...Mt.BH._menuItems].find(Fn=>Fn[0]._debugName=="EditorContext")[1],te=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],be=(Fn,Be)=>{var zn,Ai;let Ii=Fn._first;do Be.includes((Ai=(zn=Ii.element)==null?void 0:zn.command)==null?void 0:Ai.id)&&Fn._remove(Ii);while(Ii=Ii.next)};if(un(Dn,Pn),setTimeout(()=>{rn(),ti.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Ne(bn||"educoder.txt",Dn.getValue())}})},500),ti.current.subscription=Dn.onDidChangeModelContent(Fn=>{er.current?clearTimeout(yr.current):(rn(),Qe(Dn.getValue(),Fn)),yr.current=setTimeout(()=>{er.current=!1},500)}),window.Monaco||Bt(Pn,jn(wt)),Ce&&(be(qn,te),gn.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Fe),window.removeEventListener("paste",Fe),window.addEventListener("keydown",Fe),window.addEventListener("paste",Fe)),window.Monaco=Pn,nn&&Dn.onDidBlurEditorWidget(()=>{nn(Dn.getValue())}),Nn&&Dn.onDidFocusEditorText(()=>{Ce&&di(),Nn(Dn.getValue())}),Ce){di();try{Dn.onDidPaste(Fn=>{const Be=Dn.getSelection(),zn=ti.current.pastePos||{},Ai=new Pn.Range(zn.startLineNumber||Be.endLineNumber,zn.startColumn||Be.endColumn,zn.endLineNumber||Be.endLineNumber,zn.endColumn||Be.endColumn);Dn.executeEdits("",[{range:Fn.range,text:""}])})}catch(Fn){}}let Jn=Et();return Xn&&typeof Xn=="string"&&new St(Xn,Dn,Pn),gr(!0),()=>{const Fn=ti.current.instance;Fn.dispose();const Be=Fn.getModel();Be&&Be.dispose(),ti.current.subscription&&ti.current.subscription.dispose(),Jn.unobserve(gn.current)}}catch(Dn){}})},[]),(0,yt.useEffect)(()=>{if(ti.current.instance&&zi)return document.addEventListener("keydown",Kn,!1),()=>{document.removeEventListener("keydown",Kn)}},[En,zi]),(0,yt.useEffect)(()=>{let Xe=ti.current.instance;if(Xe&&zi){let Dn=jn(wt);Pn.editor.setModelLanguage(Xe.getModel(),Dn)}},[wt,zi]),(0,yt.useEffect)(()=>{ti.current.instance&&zi&&Pn.editor.setTheme($t)},[$t,zi]),(0,yt.useEffect)(()=>{let Xe=ti.current.instance;_i.current=Vt,Xe&&zi&&(Xe.updateOptions(Oe({},Vt)),setTimeout(()=>{Xe.getModel().updateOptions(Oe({},Vt))},200))},[JSON.stringify(Vt),zi]),(0,yt.useEffect)(()=>{let Xe=ti.current.instance;Xe&&zi&&Xe.layout()},[Cn,Ot,zi]);const[ke,sn]=(0,yt.useState)(fn(Cn)),[xi,yi]=(0,yt.useState)(fn(Ot)),Fi=Sn(Oe({},Nt),{width:ke,height:xi,position:"relative"});return yt.createElement("div",{className:"my-monaco-editor",ref:gn,style:Fi},dn&&yt.createElement(_t.CopyToClipboard,{text:At,onCopy:()=>It.ZP.success("\u590D\u5236\u6210\u529F")},yt.createElement(Zt.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 ve({width:Ye="100%",height:mi="100%",original:Cn,modified:Ot,language:At,options:wt={}}){const Nt=(0,yt.useRef)(),[Vt,kt]=(0,yt.useState)(null);function $t(De){let Ce;return Nt.current&&(Ce=new ee.Z(Qe=>{for(let un of Qe)(un.target.offsetHeight>0||un.target.offsetWidth>0)&&De.layout()}),Ce.observe(Nt.current)),Ce}(0,yt.useEffect)(()=>(Nt.current&&Promise.all([Dt.e(8909),Dt.e(9404)]).then(Dt.bind(Dt,2550)).then(De=>{Pn=De;const Ce=Pn.editor.createDiffEditor(Nt.current,Sn(Oe({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},wt),{wordWrap:!0}));kt(Ce);let Qe=$t(Ce);return()=>{Ce.dispose();const un=Ce.getModel();un&&un.dispose(),Qe.unobserve(Nt.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,yt.useEffect)(()=>{Vt&&Vt.setModel({original:Pn.editor.createModel(Cn,At),modified:Pn.editor.createModel(Ot,At)})},[Cn,Ot,At,Vt]);const nn=fn(Ye),dn=fn(mi),En={width:nn,height:dn};return yt.createElement("div",{className:"my-diff-editor",ref:Nt,style:En})}},10661:function(Qn,pi,Dt){"use strict";Dt.d(pi,{Z:function(){return Kt}});var yt={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",wrapisCurrent:"wrapisCurrent___qIfQT"},ee=Dt(29787),ie=Dt(25399),we=Dt(60242),Ee=Dt(92310),jt=Dt.n(Ee),ce=Dt(51257),Ve=Dt(28426),xe=Dt(48790),Lt=Dt(59301),Kt=({className:Je,dataSource:Bt=[],col:nt=4,right:et,bottom:dt=23,precision:lt=0,wrapWidth:gt=1200,trackEventItems:mt,loading:St,onRemove:Mt=()=>{},isCurrent:It=!0,showProgress:Zt=!1,showAlias:oe=!1})=>{const Gt=Math.floor((gt-(nt-1)*et)/nt),_t=[{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 Lt.createElement(ee.Z,{spinning:St},Lt.createElement("div",{className:jt()(yt.list,Je)},!!(Bt!=null&&Bt.length)&&(Bt==null?void 0:Bt.map((ge,me)=>{var Pe,ye,He,wn,ln,Oe;const{name:Sn,id:se,identifier:Yt,featured:fn,school_name:_n,image_url:In,excellent:on,is_plan:jn}=ge;return Lt.createElement("div",{key:se,className:It&&Zt?yt.wrapisCurrent:yt.wrap,style:{width:Gt,marginRight:(1+me)%nt===0?0:et+lt,marginBottom:dt}},Lt.createElement("a",{className:yt.li,onClick:Pn=>{Pn.preventDefault(),Pn.stopPropagation(),mt&&(0,ce.L9)([mt]),(0,ce.xg)(`/paths/${Yt}`)}},Lt.createElement("div",{className:yt.img},Lt.createElement("img",{className:yt.cover,src:`${In}`}),It&&(0,xe.bg)()&&(ge==null?void 0:ge.studying)&&Lt.createElement("div",{className:`${yt.movebq} user-path-items`,onClick:Pn=>{Pn.stopPropagation(),Mt(ge)}},Lt.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),Lt.createElement("span",{className:"c-red"},"\u79FB\u9664")),(Pe=ge==null?void 0:ge.subject_tags)==null?void 0:Pe.map((Pn,di)=>{var Re,ve;if(di===0){const mi=(Re=_t.find(Cn=>Cn.name==Pn))==null?void 0:Re.swimg;return Lt.createElement("img",{className:yt.sign,src:mi,style:{left:"-4px"}})}const Ye=(ve=_t.find(mi=>mi.name==Pn))==null?void 0:ve.ptimg;return Lt.createElement("img",{className:yt.sign,src:Ye,style:{left:`${48+52*(di-1)+2*di}px`}})}),Lt.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(ge==null?void 0:ge.excellent)&&Lt.createElement("div",{className:yt.bq},"\u5F00\u653E\u8BFE\u7A0B"))),Lt.createElement("div",{className:yt.name},Lt.createElement(ie.Z,{title:oe&&(ge!=null&&ge.excellent_alias_name)?Lt.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${Sn}`,Lt.createElement("br",null),Lt.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${ge==null?void 0:ge.excellent_alias_name}`)):Sn},Lt.createElement("span",{className:yt.e},oe&&(ge==null?void 0:ge.excellent_alias_name)||Sn))),It&&Zt&&((ye=ge==null?void 0:ge.progress)==null?void 0:ye.all_score)!=0&&Lt.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},Lt.createElement(we.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((He=ge==null?void 0:ge.progress)==null?void 0:He.my_score)/((wn=ge==null?void 0:ge.progress)==null?void 0:wn.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(ln=ge==null?void 0:ge.progress)==null?void 0:ln.my_score,"/",(Oe=ge==null?void 0:ge.progress)==null?void 0:Oe.all_score),(!It||!Zt)&&Lt.createElement(ie.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${_n}`},Lt.createElement("div",{className:yt.unit},Lt.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),_n)),(!It||!Zt)&&Lt.createElement("div",{className:yt.tags},Lt.createElement("div",null,Lt.createElement(ie.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Lt.createElement("span",null,Lt.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Lt.createElement("span",null,ge.stages_count))),Lt.createElement(ie.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Lt.createElement("span",null,Lt.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Lt.createElement("span",null,ge.members_count)))))))})),!Bt.length&&Lt.createElement(Ve.Z,null)))}},9148:function(Qn,pi,Dt){"use strict";Dt.d(pi,{jL:function(){return Ee},w9:function(){return fn},QD:function(){return Ie},cQ:function(){return ln.Z},op:function(){return Qe},O5:function(){return Gn},_b:function(){return Ci},t7:function(){return lt},Gi:function(){return di},YG:function(){return jn},qp:function(){return ze},vr:function(){return Ln},qE:function(){return ai},Je:function(){return St},wb:function(){return wn},cq:function(){return Ot},tp:function(){return Bt}});var yt=Dt(59301),ee={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"},ie="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+rwg9WPTfpHgpEgUQgAFJwU6LSDwjS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+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",Ee=({dataSource:fi=[],img:ci,imgWidth:Kn=346,title:rn,sunTitle:Yn,bannerExtraContent:Fe})=>yt.createElement("div",{className:ee.banner},yt.createElement("div",{className:ee.content},yt.createElement("aside",null,yt.createElement("p",null,yt.createElement("b",null,rn),yt.createElement("span",null,Yn)),fi.length>0&&yt.createElement("div",{className:ee.btns},fi.map((Ne,ke)=>yt.createElement("div",{key:ke,onClick:Ne.click},Ne.name,Ne.sign?yt.createElement("img",{src:ie,width:39}):null))),Fe),ci&&yt.createElement("img",{style:{marginTop:33,marginRight:38},src:ci,width:Kn}))),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"},ce=Dt(92310),Ve=Dt.n(ce),xe=Dt(89392),ze=({dataSource:fi=[],value:ci,onChange:Kn,onTitleChange:rn,className:Yn,title:Fe,titleWidth:Ne=41,style:ke={},fontColor:sn="#6A7283",showCount:xi})=>{const[yi,Fi]=(0,yt.useState)(0),[Xe,Dn]=(0,yt.useState)(!1),mn=(0,yt.useRef)(null),Hi=(0,yt.useRef)(null);return(0,yt.useEffect)(()=>{var qn;fi.length!==0&&(((qn=mn==null?void 0:mn.current)==null?void 0:qn.clientHeight)>97?Fi(1):Fi(0)),fi.length===0&&Fi(0),Dn(!1)},[fi]),yt.createElement("div",{className:Ve()(jt.row,Yn),style:ke},yt.createElement("div",{onClick:(0,xe.throttle)(()=>rn==null?void 0:rn(),2e3),style:{width:Ne,marginTop:Xe?12:4},className:`${jt.title} ${rn?"current":""}`},Fe),yt.createElement("div",{className:Xe?`${jt.tagsWrap} ${jt.tagsBorderWrap}`:jt.tagsWrap},yt.createElement("div",{className:jt.bar,ref:Hi,style:yi>0?{height:yi===1?97:"auto",overflow:yi===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},yt.createElement("div",{className:jt.tag,ref:mn},fi==null?void 0:fi.map(qn=>yt.createElement("span",{onClick:()=>Kn(qn.id),key:qn.id,style:{color:sn},className:ci===qn.id?jt.active:""},yt.createElement("span",{title:qn.name,className:jt.name},qn.name),!!xi&&yt.createElement("span",{className:jt.num},qn.count))))),!!yi&&yt.createElement(yt.Fragment,null,yi===1?yt.createElement("div",{onClick:()=>{var qn;Fi(2),((qn=mn==null?void 0:mn.current)==null?void 0:qn.clientHeight)>245?Dn(!0):Dn(!1)},className:jt.action},"\u5C55\u5F00",yt.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):yt.createElement("div",{onClick:()=>{Hi.current.scrollTop=0,Fi(1),Dn(!1)},className:jt.action},"\u6536\u8D77",yt.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},Kt={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"},Bt=({dataSource:fi=[],value:ci,onChange:Kn,className:rn,style:Yn={}})=>yt.createElement("div",{style:Yn,className:Ve()(Kt.tabs,rn)},fi.map(Fe=>yt.createElement("span",{onClick:()=>Kn(Fe.id),className:ci===Fe.id?Kt.active:"",key:Fe.id},Fe.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:fi=[],value:ci="",onChange:Kn,onInputChange:rn=()=>{},className:Yn,style:Fe={},placeholder:Ne,allowClear:ke=!1})=>{var sn;const[xi,yi]=(0,yt.useState)(""),[Fi,Xe]=(0,yt.useState)("");(0,yt.useEffect)(()=>{var Hi;let qn=ci;(Hi=JSON.stringify(ci))!=null&&Hi.includes("{")&&(yi(ci.id),qn=ci.value||"");try{Xe(decodeURIComponent(qn||""))}catch(te){Xe(decodeURIComponent(qn||""))}},[ci]);const Dn=()=>{Kn(encodeURIComponent(Fi),xi||null)},mn=Hi=>{Hi!==xi&&(yi(Hi),Kn(encodeURIComponent(Fi),Hi))};return yt.createElement("div",{className:Ve()(nt.input,Yn),style:Fe},!!fi.length&&yt.createElement("div",{className:nt.dropdown},yt.createElement("div",{className:nt.text},(sn=fi.find(Hi=>Hi.id===xi))==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},fi.map((Hi,qn)=>yt.createElement("div",{key:qn,onClick:()=>mn(Hi.id)},Hi.name)))),yt.createElement(et.default,{onPressEnter:Dn,value:Fi,onChange:Hi=>{Xe(Hi.target.value),rn(encodeURIComponent(Hi.target.value),xi||null)},bordered:!1,placeholder:Ne}),yt.createElement("i",{onClick:Dn,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:fi,onChange:ci,className:Kn,total:rn,pageSize:Yn,style:Fe={}})=>{const Ne=fi<2,ke=fi>=Math.ceil(rn/Yn);return rn<=Yn?yt.createElement(yt.Fragment,null):yt.createElement("div",{className:Ve()(gt.quickPager,Kn),style:Fe},yt.createElement("div",{onClick:()=>{Ne||ci(fi-1,"prev")},className:Ne?gt.disabled:""},"\u4E0A\u4E00\u9875"),yt.createElement("div",{onClick:()=>{ke||ci(fi+1,"next")},className:ke?gt.disabled:""},"\u4E0B\u4E00\u9875"))},Mt={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),Zt=Dt(25399),oe=Dt(58018),Gt=Dt(346),_t=Dt(51257),ge=Dt(96908),me=Dt(57177),Pe=Dt(81378),ye=Dt(28426),wn=({className:fi,dataSource:ci=[],col:Kn=4,right:rn,bottom:Yn=23,precision:Fe=0,wrapWidth:Ne=1200,trackEventItems:ke,loading:sn})=>{const xi=Math.floor((Ne-(Kn-1)*rn)/Kn);return yt.createElement(It.Z,{spinning:sn},yt.createElement("div",{className:Ve()(Mt.list,fi)},!!ci.length&&ci.map((yi,Fi)=>{const{name:Xe,id:Dn,identifier:mn,power:Hi,cover_image_id:qn,pic:te}=yi;return yt.createElement("div",{className:Mt.wrap,key:Dn,style:{width:xi,marginRight:(1+Fi)%Kn===0?0:rn+Fe,marginBottom:Yn}},yt.createElement("a",{target:"_blank",href:`/shixuns/${mn}/challenges`,className:Mt.li,onClick:be=>{be.preventDefault(),ke&&(0,_t.L9)([ke]),Hi&&(0,_t.xg)(`/shixuns/${mn}/challenges`)}},yt.createElement("div",{className:Mt.img},yt.createElement("img",{className:Mt.cover,src:`${te}`}),yi.is_jupyter&&yt.createElement("img",{className:Mt.sign,src:ge}),yi.is_jupyter_lab&&yt.createElement("img",{className:Mt.sign,src:me}),yi.is_unity_3d&&yt.createElement("img",{className:Mt.sign,src:Pe})),yt.createElement("div",{className:Mt.name},yt.createElement(Zt.Z,{title:Xe||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},yt.createElement("span",{className:Mt.e},Xe||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),yt.createElement("div",{className:Mt.tags},yt.createElement(Zt.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},yt.createElement("span",null,yt.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),yt.createElement("span",null,yi.challenges_count))),!!yi.myshixuns_count&&yt.createElement(Zt.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,yi.myshixuns_count))),yt.createElement(Zt.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},yt.createElement("span",null,yt.createElement("span",null,yi.level))),yt.createElement("div",{className:Mt.rate},yt.createElement(oe.Z,{allowHalf:!0,disabled:!0,defaultValue:yi.score_info}),yt.createElement("span",null,"\xA0",yi.score_info?`${yi.score_info}\u5206`:"5\u5206")))),!Hi&&yt.createElement("div",{className:Mt.lockWrap},yt.createElement("img",{src:`${Gt.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")))}),!ci.length&&yt.createElement(ye.Z,null)))},ln=Dt(10661),Oe={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"},Sn="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/njVVUvgvmW5djUqu+D6JHHbgfTS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Qw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",se=Dt(59301),fn=({className:fi,dataSource:ci=[],col:Kn=4,right:rn,bottom:Yn=23,precision:Fe=0,wrapWidth:Ne=1200,trackEventItems:ke,loading:sn,handleVery:xi=()=>!0})=>{const yi=Math.floor((Ne-(Kn-1)*rn)/Kn);return se.createElement(It.Z,{spinning:sn},se.createElement("div",{className:Ve()(Oe.list,fi)},!!ci.length&&ci.map((Fi,Xe)=>{const{subject_identifier:Dn,id:mn,identifier:Hi,power:qn}=Fi,te=Fi.is_public!=0&&Fi.is_public;return se.createElement("div",{className:Oe.wrap,key:mn,style:{width:yi,marginRight:(1+Xe)%Kn===0?0:rn+Fe,marginBottom:Yn}},se.createElement("a",{className:Oe.li,onClick:be=>{be.preventDefault(),xi(Fi==null?void 0:Fi.first_category_url)&&(ke&&(0,_t.L9)([ke]),(0,_t.xg)(Fi.first_category_url))}},se.createElement("div",{className:Oe.top},se.createElement(Zt.Z,{title:Fi.name},se.createElement("div",{className:Oe.name},Fi.name)),se.createElement("img",{className:Oe.img,src:Gt.Z.IMG_SERVER+"/images/"+Fi.avatar_url}),se.createElement("div",{className:Oe.text,title:Fi.creator},Fi.creator),Dn&&se.createElement("div",{className:Oe.btns},se.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),se.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),te&&se.createElement("div",{className:Oe.sign},"\u516C\u5F00")),se.createElement("div",{className:Oe.bottom},Fi.visits>0&&se.createElement(Zt.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},se.createElement("span",null,se.createElement("i",{className:"iconfont icon-liulanyan"}),se.createElement("span",null,Fi.visits))),Fi.course_members_count>0&&se.createElement(Zt.Z,{title:"\u6210\u5458",placement:"bottom"},se.createElement("span",null,se.createElement("i",{className:"iconfont icon-chengyuan"}),Fi.course_members_count)),Fi.tasks_count>0&&se.createElement(Zt.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},se.createElement("span",null,se.createElement("i",{className:"iconfont icon-zuoye"}),Fi.tasks_count)),Fi.is_end?se.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):se.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Fi.is_accessible&&se.createElement("div",{className:Oe.lockWrap},se.createElement("img",{src:`${Gt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),se.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!ci.length&&se.createElement(ye.Z,null)))},_n={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"},In=Dt(25690),jn=({dataSource:fi=[],value:ci,onChange:Kn,className:rn,style:Yn={},tabBarExtraContent:Fe})=>yt.createElement("div",{className:Ve()(_n.tabs,rn),style:Yn},yt.createElement("div",{className:_n.tabsWrap},fi.map((Ne,ke)=>!(Ne!=null&&Ne.hide)&&yt.createElement("aside",{className:_n.tab,onClick:()=>{Kn(Ne.id),Ne.link&&In.history.push(Ne.link)},key:ke},yt.createElement("div",{className:ci===Ne.id?_n.active:""},Ne.name),(Ne==null?void 0:Ne.resetCount)==null&&(Ne==null?void 0:Ne.total)!==void 0&&yt.createElement("span",null,"\uFF08",Ne==null?void 0:Ne.total,"\uFF09"),(Ne==null?void 0:Ne.resetCount)!==void 0&&(Ne==null?void 0:Ne.total)!==void 0&&yt.createElement(Zt.Z,{title:(Ne==null?void 0:Ne.tip)!=null?Ne==null?void 0:Ne.tip:""},yt.createElement("span",{style:{color:"#9096A3"}},"\uFF08",yt.createElement("span",{style:{color:"#000"}},Ne==null?void 0:Ne.resetCount),"/",yt.createElement("span",null,Ne==null?void 0:Ne.total),"\uFF09"))))),yt.createElement("div",{className:_n.tabBar},Fe)),di=({className:fi,style:ci={},children:Kn})=>yt.createElement("div",{className:Ve()(fi),style:ci},Kn),Re={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"},ve=Dt(75727),Ye=Dt(93041);const mi=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var Ot=({sortValue:fi,dropValue:ci,className:Kn,onSort:rn,onDrop:Yn,dataSource:Fe=mi})=>{var Ne;return yt.createElement("div",{className:Ve()(Re.orderWrap,Kn)},yt.createElement(ve.Z,{dropdownRender:()=>yt.createElement(Ye.default,null,Fe.map((ke,sn)=>yt.createElement(Ye.default.Item,{key:sn,onClick:()=>Yn(ke.id)},ke.name)))},yt.createElement("span",{className:Re.orderTextWrap},(Ne=Fe.find(ke=>ci===ke.id))==null?void 0:Ne.name)),yt.createElement("span",{className:Re.orderIconWrap},yt.createElement("span",{className:Re.orderAsc},yt.createElement("i",{className:fi==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Re.cursorPointer} ${Re.active}`:`iconfont icon-sanjiaoxing-up font12 ${Re.cursorPointer}`,onClick:()=>rn(fi==="asc"?"desc":"asc")})),yt.createElement("span",{className:Re.orderDesc},yt.createElement("i",{className:fi==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Re.cursorPointer} ${Re.active}`:`iconfont icon-sanjiaoxing-down font12 ${Re.cursorPointer}`,onClick:()=>rn(fi==="asc"?"desc":"asc")}))))},At={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"},wt=Dt(99571),Nt=Object.defineProperty,Vt=Object.getOwnPropertySymbols,kt=Object.prototype.hasOwnProperty,$t=Object.prototype.propertyIsEnumerable,nn=(fi,ci,Kn)=>ci in fi?Nt(fi,ci,{enumerable:!0,configurable:!0,writable:!0,value:Kn}):fi[ci]=Kn,dn=(fi,ci)=>{for(var Kn in ci||(ci={}))kt.call(ci,Kn)&&nn(fi,Kn,ci[Kn]);if(Vt)for(var Kn of Vt(ci))$t.call(ci,Kn)&&nn(fi,Kn,ci[Kn]);return fi},En=(fi,ci)=>{var Kn={};for(var rn in fi)kt.call(fi,rn)&&ci.indexOf(rn)<0&&(Kn[rn]=fi[rn]);if(fi!=null&&Vt)for(var rn of Vt(fi))ci.indexOf(rn)<0&&$t.call(fi,rn)&&(Kn[rn]=fi[rn]);return Kn},De=(fi,ci,Kn)=>new Promise((rn,Yn)=>{var Fe=sn=>{try{ke(Kn.next(sn))}catch(xi){Yn(xi)}},Ne=sn=>{try{ke(Kn.throw(sn))}catch(xi){Yn(xi)}},ke=sn=>sn.done?rn(sn.value):Promise.resolve(sn.value).then(Fe,Ne);ke((Kn=Kn.apply(fi,ci)).next())}),Qe=fi=>{var ci=fi,{className:Kn,style:rn,children:Yn,loading:Fe=!1,openLoading:Ne,onClick:ke=()=>{},size:sn="middle",shape:xi="round"}=ci,yi=En(ci,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Fi,Xe]=(0,yt.useState)(!1);return yt.createElement(wt.ZP,dn({onClick:(0,xe.throttle)(Dn=>De(void 0,null,function*(){Ne&&Xe(!0);try{yield ke(Dn)}catch(mn){console.log("error",mn)}Ne&&Xe(!1)}),2e3,{leading:!0,trailing:!1}),className:Ve()(At.btn,At[`${sn}-${xi}`],Kn),style:rn,size:sn,shape:xi,loading:Fi||Fe},yi),Yn)},un={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"},ai=({className:fi,style:ci,children:Kn=null,onClick:rn,title:Yn})=>yt.createElement("div",{className:Ve()(un.head,fi),style:ci},yt.createElement("span",{className:"primary-hover",onClick:rn},yt.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),yt.createElement("b",{title:Yn},Yn),yt.createElement("div",{className:un.node},Kn)),Tn={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"},Ie=({confirmShow:fi=!0,confirmTitle:ci,confirmClick:Kn,cancelShow:rn=!0,cancelTitle:Yn,cancelClick:Fe,className:Ne,style:ke,confirmLoading:sn=!1})=>yt.createElement("div",{className:Ve()(Tn.btns,Ne),style:ke},fi&&yt.createElement(wt.ZP,{loading:sn,onClick:Kn,type:"primary",className:Tn.confirm},ci),rn&&yt.createElement(wt.ZP,{onClick:Fe,className:Tn.cancel},Yn)),Ue={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"},Ln=({className:fi,style:ci={},LeftContent:Kn,children:rn,RightContent:Yn})=>yt.createElement("div",{className:Ve()(Ue.fixedBottom,fi),style:ci},yt.createElement("div",{className:Ue.wrap},yt.createElement("div",{className:Ue.left},Kn),yt.createElement("div",{className:Ue.center},rn),yt.createElement("div",{className:Ue.right},Yn))),Xn={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"},Ci=({className:fi,style:ci={},dataSource:Kn=[]})=>yt.createElement("div",{className:Ve()(Xn.crumbs,fi),style:ci},Kn.map((rn,Yn)=>Yn<Kn.length-1?yt.createElement(yt.Fragment,{key:Yn},rn.path||rn.onClick?yt.createElement("span",{className:Xn.hover,onClick:rn!=null&&rn.onClick?rn.onClick:()=>In.history.push(rn.path)},rn.name):yt.createElement("span",null,rn.name),yt.createElement("span",null,"\xA0",">","\xA0")):yt.createElement("span",{key:Yn,style:{color:"#5F6368"}},rn.name))),gn=Dt(11938),ti=Object.defineProperty,_i=Object.defineProperties,fr=Object.getOwnPropertyDescriptors,tr=Object.getOwnPropertySymbols,er=Object.prototype.hasOwnProperty,yr=Object.prototype.propertyIsEnumerable,sr=(fi,ci,Kn)=>ci in fi?ti(fi,ci,{enumerable:!0,configurable:!0,writable:!0,value:Kn}):fi[ci]=Kn,hr=(fi,ci)=>{for(var Kn in ci||(ci={}))er.call(ci,Kn)&&sr(fi,Kn,ci[Kn]);if(tr)for(var Kn of tr(ci))yr.call(ci,Kn)&&sr(fi,Kn,ci[Kn]);return fi},zi=(fi,ci)=>_i(fi,fr(ci)),gr=(fi,ci)=>{var Kn={};for(var rn in fi)er.call(fi,rn)&&ci.indexOf(rn)<0&&(Kn[rn]=fi[rn]);if(fi!=null&&tr)for(var rn of tr(fi))ci.indexOf(rn)<0&&yr.call(fi,rn)&&(Kn[rn]=fi[rn]);return Kn};const{Countdown:Et}=gn.default;var Gn=fi=>{var ci=fi,{onChange:Kn}=ci,rn=gr(ci,["onChange"]);const[Yn,Fe]=(0,yt.useState)(null);(0,yt.useEffect)(()=>{typeof Yn=="number"&&Yn>=0&&Kn(Yn)},[Yn]);const Ne=ke=>{const sn=Math.floor(ke/1e3);Fe(sn)};return yt.createElement(Et,zi(hr({},rn),{onChange:Ne}))}},37808:function(Qn,pi,Dt){"use strict";Dt.d(pi,{Z:function(){return ee}});var yt=Dt(59301);function ee(ie,we){const Ee=(0,yt.useRef)();(0,yt.useEffect)(()=>{Ee.current=ie}),(0,yt.useEffect)(()=>{function jt(){Ee.current()}if(we!==null){let ce=setInterval(jt,we);return()=>clearInterval(ce)}},[we])}},35171:function(Qn,pi,Dt){"use strict";Dt.r(pi),Dt.d(pi,{default:function(){return Kn}});var yt=Dt(59301),ee={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"},ie=Dt(92310),we=Dt.n(ie),Ee=Dt(9148),jt=Dt(39793),ce=Dt(77019),Ve=Dt(99571),xe=Dt(62957),Lt=Dt(37568),ze=Dt(54172),Kt=Dt(28284),Je=Dt(25399),Bt=Dt(71051),nt=Dt(6767),et=Dt(29787),dt=Dt(62673),lt=Dt(47889),gt=Dt(16326),mt=Dt(51257),St=Dt(25690),Mt=Dt(56082),It=Dt(87954),Zt=Dt(18257),oe=Dt(19719),Gt=Dt(35241),_t=Dt(28426),ge=Object.defineProperty,me=Object.defineProperties,Pe=Object.getOwnPropertyDescriptors,ye=Object.getOwnPropertySymbols,He=Object.prototype.hasOwnProperty,wn=Object.prototype.propertyIsEnumerable,ln=(rn,Yn,Fe)=>Yn in rn?ge(rn,Yn,{enumerable:!0,configurable:!0,writable:!0,value:Fe}):rn[Yn]=Fe,Oe=(rn,Yn)=>{for(var Fe in Yn||(Yn={}))He.call(Yn,Fe)&&ln(rn,Fe,Yn[Fe]);if(ye)for(var Fe of ye(Yn))wn.call(Yn,Fe)&&ln(rn,Fe,Yn[Fe]);return rn},Sn=(rn,Yn)=>me(rn,Pe(Yn));const se=yt.createContext({}),Yt=()=>{const{setActivatorNodeRef:rn,listeners:Yn}=(0,yt.useContext)(se);return yt.createElement(Ve.ZP,Oe({type:"text",size:"small",icon:yt.createElement(Je.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(Mt.Z,null)),style:{cursor:"move"},ref:rn},Yn))},fn=rn=>{const{attributes:Yn,listeners:Fe,setNodeRef:Ne,setActivatorNodeRef:ke,transform:sn,transition:xi,isDragging:yi}=(0,oe.nB)({id:rn["data-row-key"]}),Fi=Oe(Sn(Oe({},rn.style),{transform:Gt.ux.Translate.toString(sn),transition:xi}),yi?{position:"relative",zIndex:99}:{}),Xe=(0,yt.useMemo)(()=>({setActivatorNodeRef:ke,listeners:Fe}),[ke,Fe]);return yt.createElement(se.Provider,{value:Xe},yt.createElement("tr",Oe(Sn(Oe({},rn),{ref:Ne,style:Fi}),Yn)))};var In=({columns:rn,dataSource:Yn,setDataSource:Fe,loading:Ne})=>{const ke=({active:sn,over:xi})=>{sn.id!==(xi==null?void 0:xi.id)&&Fe(yi=>{const Fi=yi.findIndex(Dn=>Dn.id===(sn==null?void 0:sn.id)),Xe=yi.findIndex(Dn=>Dn.id===(xi==null?void 0:xi.id));return(0,oe.Rp)(yi,Fi,Xe)})};return yt.createElement(It.LB,{modifiers:[Zt.DL],onDragEnd:ke},yt.createElement(oe.Fo,{items:Yn.map(sn=>sn.id),strategy:oe.qw},yt.createElement(ze.default,{pagination:!1,scroll:{y:400},rowKey:"id",loading:Ne,locale:{emptyText:yt.createElement(_t.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:Yn,components:{body:{row:fn}},columns:[{key:"sort",align:"center",width:80,render:()=>yt.createElement(Yt,null)},...rn],size:"middle"})))},on=Dt(20554),jn=Dt(17149),Pn=Dt(82326),di=Dt(69219),Re=Dt(13747),ve=Dt(38986),Ye={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"},mi=Dt(55305),Cn={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"},Ot=Dt(76902),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 Vt=({qitem:rn})=>{var Yn,Fe,Ne,ke,sn,xi,yi,Fi,Xe,Dn;return yt.createElement("div",{className:Cn.warp},yt.createElement("div",{className:Cn.mainPart},yt.createElement("div",{className:Cn.qcount},(rn==null?void 0:rn.question_type)===8&&yt.createElement(Ot.Z,{className:Cn.content,showProgramFill:!0,value:(Yn=rn==null?void 0:rn.program_attr)==null?void 0:Yn.description}),(rn==null?void 0:rn.question_type)!=8&&yt.createElement(Ot.Z,{className:Cn.qtitle,value:(rn==null?void 0:rn.name)||(rn==null?void 0:rn.title)})),((rn==null?void 0:rn.question_type)===0||(rn==null?void 0:rn.question_type)===2)&&yt.createElement("div",null,(Fe=rn==null?void 0:rn.choices)==null?void 0:Fe.map((mn,Hi)=>yt.createElement("div",{className:Cn.redio},!(mn!=null&&mn.is_answer)&&yt.createElement("span",{className:Cn.redioitem}),(mn==null?void 0:mn.is_answer)&&yt.createElement("i",{className:`${Cn.redioitemyes} icon-duigou1`}),yt.createElement(Ot.Z,{className:mn!=null&&mn.is_answer?Cn.titleyes:Cn.title,value:wt[Hi]+(mn==null?void 0:mn.choice_text)}),(mn==null?void 0:mn.is_answer)&&yt.createElement("div",{className:Cn.yestag},"\u6B63\u786E\u7B54\u6848")))),(rn==null?void 0:rn.question_type)===1&&yt.createElement("div",null,(Ne=rn==null?void 0:rn.choices)==null?void 0:Ne.map((mn,Hi)=>yt.createElement("div",{className:Cn.checkbox},!(mn!=null&&mn.is_answer)&&yt.createElement("span",{className:Cn.checkboxitem}),(mn==null?void 0:mn.is_answer)&&yt.createElement("i",{className:`${Cn.checkboxitemyes} icon-duigou1`}),yt.createElement(Ot.Z,{className:mn!=null&&mn.is_answer?Cn.titleyes:Cn.title,value:wt[Hi]+(mn==null?void 0:mn.choice_text)}),(mn==null?void 0:mn.is_answer)&&yt.createElement("div",{className:Cn.yestag},"\u6B63\u786E\u7B54\u6848")))),(rn==null?void 0:rn.question_type)===3&&yt.createElement("div",{className:Cn.completion},(ke=rn==null?void 0:rn.standard_answer)==null?void 0:ke.map((mn,Hi)=>{var qn;return yt.createElement("div",{style:{display:"flex"}},yt.createElement("span",{className:Cn.title},"\u586B\u7A7A\u9879",Hi+1),yt.createElement("div",{className:Cn.content},(qn=mn==null?void 0:mn.answer_text)==null?void 0:qn.map((te,be)=>yt.createElement("div",{className:Cn.items},te))))})),(rn==null?void 0:rn.question_type)===4&&yt.createElement("div",{className:Cn.simple},yt.createElement("div",{className:Cn.title},"\u53C2\u8003\u7B54\u6848"),yt.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(sn=rn==null?void 0:rn.answer_texts)!=null&&sn[0]?yt.createElement(Ot.Z,{className:Cn.content,value:(xi=rn==null?void 0:rn.answer_texts)==null?void 0:xi[0]}):yt.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),(rn==null?void 0:rn.question_type)===5&&((yi=rn==null?void 0:rn.challenge_names)==null?void 0:yi.map((mn,Hi)=>yt.createElement("div",{className:Cn.shixun},yt.createElement("span",{className:Cn.qtitle},yt.createElement("span",{style:{marginRight:10}},"\u7B2C",(0,mt.EM)(Hi+1),"\u9898"),mn)))),(rn==null?void 0:rn.question_type)===6&&yt.createElement("div",{className:Cn.program},yt.createElement(Ot.Z,{className:Cn.content,value:((Fi=rn==null?void 0:rn.program_attr)==null?void 0:Fi.description)||"- -"})),(rn==null?void 0:rn.question_type)===7&&((Xe=rn==null?void 0:rn.sub_item_banks)==null?void 0:Xe.map((mn,Hi)=>{var qn,te,be,Jn,Fn;return yt.createElement("div",null,yt.createElement("div",{className:Cn.combination},yt.createElement("span",{className:Cn.qtitle},mn==null?void 0:mn.name)),yt.createElement("div",{className:Cn.warp,style:{padding:"0px",paddingTop:20}},yt.createElement("div",null,((mn==null?void 0:mn.item_type)=="SINGLE"||(mn==null?void 0:mn.item_type)=="JUDGMENT")&&((qn=mn==null?void 0:mn.choices)==null?void 0:qn.map((Be,zn)=>yt.createElement("div",{className:Cn.redio},!(Be!=null&&Be.is_answer)&&yt.createElement("span",{className:Cn.redioitem}),(Be==null?void 0:Be.is_answer)&&yt.createElement("i",{className:`${Cn.redioitemyes} icon-duigou1`}),yt.createElement(Ot.Z,{className:Be!=null&&Be.is_answer?Cn.titleyes:Cn.title,value:wt[zn]+(Be==null?void 0:Be.choice_text)}),(Be==null?void 0:Be.is_answer)&&yt.createElement("div",{className:Cn.yestag},"\u6B63\u786E\u7B54\u6848")))),(mn==null?void 0:mn.item_type)=="MULTIPLE"&&((te=mn==null?void 0:mn.choices)==null?void 0:te.map((Be,zn)=>yt.createElement("div",{className:Cn.checkbox},!(Be!=null&&Be.is_answer)&&yt.createElement("span",{className:Cn.checkboxitem}),(Be==null?void 0:Be.is_answer)&&yt.createElement("i",{className:`${Cn.checkboxitemyes} icon-duigou1`}),yt.createElement(Ot.Z,{className:Be!=null&&Be.is_answer?Cn.titleyes:Cn.title,value:wt[zn]+(Be==null?void 0:Be.choice_text)}),(Be==null?void 0:Be.is_answer)&&yt.createElement("div",{className:Cn.yestag},"\u6B63\u786E\u7B54\u6848")))),(mn==null?void 0:mn.item_type)=="COMPLETION"&&yt.createElement("div",{className:Cn.completion},(be=mn==null?void 0:mn.standard_answer)==null?void 0:be.map((Be,zn)=>{var Ai;return yt.createElement("div",{style:{display:"flex"}},yt.createElement("span",{className:Cn.title},"\u586B\u7A7A\u9879",zn+1),yt.createElement("div",{className:Cn.content},(Ai=Be==null?void 0:Be.answer_text)==null?void 0:Ai.map((Ii,Ki)=>yt.createElement("div",{className:Cn.items},Ii))))})),(mn==null?void 0:mn.item_type)=="SUBJECTIVE"&&yt.createElement("div",{className:Cn.simple},yt.createElement("div",{className:Cn.title},"\u53C2\u8003\u7B54\u6848"),yt.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(Jn=mn==null?void 0:mn.answer_texts)!=null&&Jn[0]?yt.createElement(Ot.Z,{className:Cn.content,value:(Fn=mn==null?void 0:mn.answer_texts)==null?void 0:Fn[0]}):yt.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))))))})),(rn==null?void 0:rn.question_type)===8&&yt.createElement("div",null,yt.createElement(Ot.Z,{disabledFill:!0,className:Cn.content,showProgramFill:!0,value:At.Base64.decode(((Dn=rn==null?void 0:rn.program_attr)==null?void 0:Dn.code)||"")})),(rn==null?void 0:rn.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"}},(rn==null?void 0:rn.author_name)||"- -")),yt.createElement("div",{style:{marginRight:30}},yt.createElement("span",{style:{marginRight:10}},"\u6240\u5C5E\u5355\u4F4D"),yt.createElement("span",{style:{color:"#000000"}},(rn==null?void 0:rn.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"}},(rn==null?void 0:rn.study_count)||"0"))),yt.createElement("a",{className:Cn.shixunbutton,href:`/shixuns/${rn==null?void 0:rn.identifier}/challenges?exercise=true`,target:"_blank"},yt.createElement("i",{onClick:()=>{},style:{marginRight:20},className:"iconfont icon-shixunkecheng mr5 "}),"\u5B9E\u8BAD\u8BE6\u60C5"))),((rn==null?void 0:rn.question_type)<=4||[6,8].includes(rn==null?void 0:rn.question_type))&&yt.createElement("div",{className:Cn.bottom},yt.createElement("div",{className:Cn.bottomitem},yt.createElement("span",{className:Cn.left},"\u89E3\u6790"),yt.createElement("span",{className:Cn.right},rn!=null&&rn.analysis?yt.createElement(Ot.Z,{value:rn==null?void 0:rn.analysis}):yt.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),yt.createElement("div",{className:Cn.bottomitem},yt.createElement("span",{className:Cn.left},"\u96BE\u5EA6"),yt.createElement("span",{className:Cn.right},(rn==null?void 0:rn.difficulty)===1?"\u7B80\u5355":(rn==null?void 0:rn.difficulty)===2?"\u9002\u4E2D":"\u56F0\u96BE")),yt.createElement("div",{className:Cn.bottomitem},yt.createElement("span",{className:Cn.left},"\u77E5\u8BC6\u70B9"),yt.createElement("span",{className:Cn.right},rn!=null&&rn.tag_discipline?rn==null?void 0:rn.tag_discipline:yt.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~")))))},kt=Dt(61250),$t=Dt(57149),nn=Dt(46722),dn=Dt(61485),En=Dt(59301),De=Object.defineProperty,Ce=Object.defineProperties,Qe=Object.getOwnPropertyDescriptors,un=Object.getOwnPropertySymbols,Nn=Object.prototype.hasOwnProperty,ai=Object.prototype.propertyIsEnumerable,Tn=(rn,Yn,Fe)=>Yn in rn?De(rn,Yn,{enumerable:!0,configurable:!0,writable:!0,value:Fe}):rn[Yn]=Fe,bn=(rn,Yn)=>{for(var Fe in Yn||(Yn={}))Nn.call(Yn,Fe)&&Tn(rn,Fe,Yn[Fe]);if(un)for(var Fe of un(Yn))ai.call(Yn,Fe)&&Tn(rn,Fe,Yn[Fe]);return rn},Ie=(rn,Yn)=>Ce(rn,Qe(Yn)),Ue=(rn,Yn,Fe)=>new Promise((Ne,ke)=>{var sn=Fi=>{try{yi(Fe.next(Fi))}catch(Xe){ke(Xe)}},xi=Fi=>{try{yi(Fe.throw(Fi))}catch(Xe){ke(Xe)}},yi=Fi=>Fi.done?Ne(Fi.value):Promise.resolve(Fi.value).then(sn,xi);yi((Fe=Fe.apply(rn,Yn)).next())});const cn=({setScoreShow:rn,ScoreShow:Yn,onOk:Fe,isshixuns:Ne,isloadings:ke,dispatch:sn,selectedIds:xi,user:yi,virtualId:Fi,shixunsDetail:Xe})=>{var Dn;let[mn,Hi]=(0,yt.useState)({type:"0",page:1,per_page:10,updated_at:"",quotes:"",item_type:"PROGRAM"}),[qn,te]=(0,yt.useState)([]),[be,Jn]=(0,yt.useState)([]),[Fn,Be]=(0,yt.useState)([]),[zn,Ai]=(0,yt.useState)([]);const[Ii,Ki]=(0,yt.useState)(!1),[oi]=Kt.default.useForm(),[gi,Si]=(0,yt.useState)(),[Ui,ji]=(0,yt.useState)(!1);let[Mn,Ei]=(0,yt.useState)(Ne);const[xr,Tr]=(0,yt.useState)([]),[_r,We]=(0,yt.useState)(0),[ar,br]=(0,yt.useState)(!0),[Gi,Gr]=(0,yt.useState)([]),[Or,Wr]=(0,yt.useState)([]),Zi=[{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}],[ir,Qi]=(0,yt.useState)([]),pn=(0,yt.useRef)(new Set),dr=(0,yt.useRef)(new Set),xn=(0,yt.useRef)(1),bi=[{name:"\u7B80\u5355",value:1},{name:"\u9002\u4E2D",value:2},{name:"\u56F0\u96BE",value:3}],Sr=[{name:"\u521D\u7EA7",value:1},{name:"\u4E2D\u7EA7",value:2},{name:"\u4E2D\u9AD8\u7EA7",value:3},{name:"\u9AD8\u7EA7",value:4}],Er=[{name:"\u672A\u53D1\u5E03",value:"unpublish"},{name:"\u9759\u9ED8\u53D1\u5E03",value:"silent_publish"},{name:"\u516C\u5F00\u53D1\u5E03",value:"public_publish"}],[io,Yr]=(0,yt.useState)(!1),Mr=()=>{oi.resetFields(),Mn=!1,Ei(!1),Yr(!1),oi.submit()};(0,yt.useEffect)(()=>{Yn&&(oi.setFieldsValue({item_type:"",courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,teach_group_id:null}),ar&&Mn&&(oi.setFieldsValue({item_type:"SHIXUN"}),mn.item_type="SHIXUN",Hi(bn({},mn)),br(!1)),mn.type="0",Jn(xi),Be(xi),dr.current=new Set(xi),uo(mn),tn(),Hn({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}),_e())},[Yn]),console.log(be,Fn,"listitems"),(0,yt.useEffect)(()=>{_r>0&&setTimeout(()=>{We(0)},2e3)},[_r]);function uo(ne){return Ue(this,null,function*(){var Me,Ke,je;if(Ki(!0),Hi(bn({},ne)),(Fn==null?void 0:Fn.length)<=0&&ne.type==="5"){Ai([]),Ki(!1);return}let hn=ne.type==="5"?Fn==null?void 0:Fn.filter(zt=>!xr.includes(zt)):null,An=ne.type==="5"?Fn==null?void 0:Fn.filter(zt=>xr.includes(zt)):null;xn.current=xn.current+1;const Ct=xn.current;let Qt=yield(0,ve.ZP)("/api/item_banks.json",{method:"get",params:Ie(bn({},ne),{discipline_id:((Me=ne==null?void 0:ne.courseid)==null?void 0:Me[0])||null,sub_discipline_id:((Ke=ne==null?void 0:ne.courseid)==null?void 0:Ke[1])||null,ids:hn,shixun_ids:An,include_shixuns:!0,group_id:((je=ne.group_id)==null?void 0:je.map(zt=>zt==null?void 0:zt.value))||null,keyword:ne.keyword?encodeURIComponent(ne.keyword):ne.keyword,type:ne.type==="5"?null:ne.type,clazz:ne.type==="3"?"ItemBanksGroup":null})});xn.current===Ct&&(Ai(Qt),Ki(!1))})}function tn(){return Ue(this,null,function*(){let ne=yield(0,ve.ZP)("/api/disciplines.json",{method:"get",params:{source:"question",group_id:0,group_type:mn.type==="5"?null:mn.type,clazz:"ItemBanksGroup"}});te((0,mi.L)(ne==null?void 0:ne.disciplines))})}function Hn(ne){return Ue(this,null,function*(){var Me;let Ke=yield(0,ve.ZP)("/api/item_banks_groups/for_problemset.json",{method:"post",body:ne}),je=[{title:"\u6839\u76EE\u5F55",id:0,pid:0,value:0,key:0,isLeaf:!1,children:(Me=Ke==null?void 0:Ke.data)==null?void 0:Me.map(hn=>({title:hn.name,id:hn.id,pid:hn.id,value:hn.id,key:hn.id,isLeaf:!hn.have_child}))}];Gr(je)})}function _e(){return Ue(this,null,function*(){let ne=yield(0,nn.Dm)({});(ne==null?void 0:ne.status)===0&&Wr(ne==null?void 0:ne.groups)})}function Tt(ne){return Ue(this,null,function*(){var Me,Ke,je,hn;Ki(!0);let An=(Me=ne.list)==null?void 0:Me.filter(zt=>!xr.includes(zt)),Ct=(Ke=ne.list)==null?void 0:Ke.filter(zt=>xr.includes(zt));if(An.length===0&&Ct.length===0){Ki(!1),Ai([]);return}let Qt=yield(0,ve.ZP)("/api/item_banks.json",{method:"get",params:Ie(bn({},ne),{discipline_id:((je=ne==null?void 0:ne.courseid)==null?void 0:je[0])||null,sub_discipline_id:((hn=ne==null?void 0:ne.courseid)==null?void 0:hn[1])||null,ids:An,shixun_ids:Ct,type:ne.type==="5"?null:ne.type,clazz:ne.type==="3"?"ItemBanksGroup":null})});Ki(!1),Ai(Qt)})}const Wt=ne=>Ue(void 0,null,function*(){const Me=yield sn({type:"shixunsDetail/release",payload:{id:ne}});let Ke=Me==null?void 0:Me.tag_position,je=(Me==null?void 0:Me.evaluation_set_position)||[],hn=Me.status;return hn===0?(nt.ZP.success("\u53D1\u5E03\u6210\u529F"),uo(mn),!0):(hn===2?nt.ZP.error(`\u7B2C${je.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${Ke.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)}),qt=ne=>(ne==null?void 0:ne.shixun_tag_num)===1?"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528\uFF0C\u8BF7\u5148\u8FDB\u884C\u53D1\u5E03":"",Se=()=>Ii?"\u6682\u65E0\u6570\u636E":mn.type==="3"&&!(Or!=null&&Or.length)?En.createElement("span",null,"\u4F60\u8FD8\u672A\u52A0\u5165\u6559\u7814\u56E2\u961F\uFF0C\u8BF7\u5148 ",En.createElement("span",{onClick:()=>{var ne;return(0,mt.xg)(`/users/${(ne=yi==null?void 0:yi.userInfo)==null?void 0:ne.login}/teach-group`)},style:{color:"#3061D0",cursor:"pointer"}},"\u65B0\u521B\u5EFA\u6559\u7814\u56E2\u961F")):mn.type==="0"&&(zn==null?void 0:zn.items_count)===0&&!(mn!=null&&mn.tag_discipline_id)&&!(mn!=null&&mn.difficulty)&&!(mn!=null&&mn.keyword)&&!(mn!=null&&mn.group_id)&&!(mn!=null&&mn.difficulty)?En.createElement("span",null,"\u4F60\u8FD8\u672A\u521B\u5EFA\u8FC7\u7F16\u7A0B\u9898\uFF0C\u8BF7\u5148 ",En.createElement("span",{onClick:()=>{(0,mt.xg)(`/problems/newcreate?&pageId=${Fi}`),rn(!1)},style:{color:"#3061D0",cursor:"pointer"}},"\u521B\u5EFA\u7F16\u7A0B\u9898")):"\u6682\u65E0\u6570\u636E",Te=(ne,Me,Ke)=>ne.map(je=>je.key===Me?bn(bn({},je),Ke):je.children?Ie(bn({},je),{children:Te(je.children,Me,Ke)}):je),en=ne=>Ue(void 0,null,function*(){const{key:Me}=ne;let Ke=mn.type;const je=yield(0,nn.ex)({page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",group_id:Math.abs(Me),type:Ke}),{data:hn,total_count:An}=je||{};An>0&&Gr(Ct=>Te(Ct,Me,{children:hn.map(Qt=>({title:Qt.name,id:Qt.id,pid:Qt.id,value:Qt.id,key:Qt.id,isLeaf:!Qt.have_child}))}))});return En.createElement("div",null,En.createElement(xe.default,{title:!1,footer:!1,open:Yn,width:1200,centered:!0,className:Ye.scoremodal,onCancel:()=>{rn(!1)}},En.createElement("div",{style:{display:"flex",alignItems:"center"}},En.createElement("div",{className:Ye.title},"\u9009\u62E9\u7F16\u7A0B\u9898")),En.createElement(on.default,{className:Ye.tabWrap,activeKey:mn.type,onChange:ne=>{ne==="3"?(mn.show_all_share=!0,Hn({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"3"})):mn.show_all_share=null,ne==="0"&&Hn({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}),mn.type=ne,mn.page=1,mn.updated_at="",mn.quotes="",mn.courseid="",mn.tag_discipline_id=null,mn.difficulty=null,mn.keyword=null,mn.group_id=null,mn.teach_group_id=null,oi.setFieldsValue({courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,group_id:[],teach_group_id:null}),(mn==null?void 0:mn.item_type)==="SHIXUN"&&mn.type!=="5"&&(Mn=!0,Ei(!0)),Yr(!1),mn.type==="5"&&(Mn=!1,Ei(!1)),Hi(bn({},mn)),uo(bn({},mn)),tn()},items:[{label:"\u6211\u521B\u5EFA\u7684",key:"0"},{label:"\u56E2\u961F\u5171\u4EAB",key:"3"},{label:"\u516C\u5171",key:"1"},{label:En.createElement("div",null,"\u5DF2\u9009",Fn.length>0&&En.createElement("span",{className:Ye.titlecount},Fn.length),_r>0&&En.createElement("span",{className:Ye.add},"+",_r)),key:"5"}]}),En.createElement(Kt.default,{layout:"inline",form:oi,onValuesChange:(ne,Me)=>{const Ke=Object.values(Me).some(hn=>hn!==null&&hn!==""&&hn!==void 0),je=Me.keyword==="";if(Yr(Ke||!je),mn.page=1,(Me==null?void 0:Me.item_type)==="SHIXUN"){if(mn.type==="5"?Ei(!1):Ei(!0),ne.keyword||ne.keyword==="")return;oi.submit()}else{if(ne!=null&&ne.courseid&&oi.setFieldsValue({tag_discipline_id:""}),Ei(!1),ne.keyword||ne.keyword==="")return;oi.submit()}},onFinish:ne=>{var Me;mn.type==="3"&&(!ne.group_id||((Me=ne==null?void 0:ne.group_id)==null?void 0:Me.length)===0)?mn.show_all_share=!0:mn.show_all_share=null,Hi(bn(bn({},mn),ne)),uo(bn(bn({},mn),ne))}},En.createElement(Kt.default.Item,{name:"courseid"},En.createElement(jn.Z,{className:Ye.selectWrapper,style:{width:160},size:"middle",placeholder:"\u65B9\u5411&\u8BFE\u7A0B",options:qn})),!Mn&&En.createElement(Kt.default.Item,{name:"tag_discipline_id"},En.createElement(Pn.default,{className:Ye.selectWrapper,placeholder:"\u77E5\u8BC6\u70B9",style:{width:160},size:"middle",allowClear:!0},(Dn=zn==null?void 0:zn.tag_disciplines)==null?void 0:Dn.map(ne=>En.createElement(Pn.default.Option,{key:ne.id},ne.name)))),En.createElement(Kt.default.Item,{name:Mn?"diff":"difficulty"},En.createElement(Pn.default,{className:Ye.selectWrapper,placeholder:"\u96BE\u5EA6",style:{width:118},size:"middle",allowClear:!0},!Mn&&bi.map(ne=>En.createElement(Pn.default.Option,{key:ne.value},ne.name)),Mn&&Sr.map(ne=>En.createElement(Pn.default.Option,{key:ne.value},ne.name)))),Mn&&En.createElement(Kt.default.Item,{name:"shixun_publish_status"},En.createElement(Pn.default,{className:Ye.selectWrapper,placeholder:"\u5168\u90E8\u72B6\u6001",style:{width:118},size:"middle",allowClear:!0},Er.map(ne=>En.createElement(Pn.default.Option,{key:ne.value},ne.name)))),mn.type==="3"&&!Mn&&En.createElement(Kt.default.Item,{name:"teach_group_id"},En.createElement(Pn.default,{className:Ye.selectWrapper,placeholder:"\u56E2\u961F",style:{width:118},size:"middle",showSearch:!0,allowClear:!0,filterOption:(ne,Me)=>(console.log("---",ne,Me),Me.children.toUpperCase().indexOf(ne.toUpperCase())!==-1)},Or==null?void 0:Or.map(ne=>En.createElement(Pn.default.Option,{key:ne.group_id},ne.name)))),(mn.type==="3"||mn.type==="0")&&!Mn&&En.createElement(Kt.default.Item,{name:"group_id"},En.createElement(di.default,{treeDataSimpleMode:!0,style:{width:118},className:Ye.selectWrappers,multiple:!0,allowClear:!0,showSearch:!0,filterTreeNode:(ne,Me)=>Me.title.toUpperCase().indexOf(ne.toUpperCase())!==-1,dropdownStyle:{maxHeight:400,width:500,overflow:"auto"},placeholder:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939",treeCheckStrictly:!0,loadData:en,treeDefaultExpandedKeys:[0],maxTagCount:0,treeCheckable:!0,treeData:Gi})),io&&En.createElement("span",{className:Ye.allqingchu,onClick:Mr},En.createElement("i",{className:"iconfont icon-guanbi4"}),En.createElement("span",null,"\u6E05\u9664\u7B5B\u9009\u6761\u4EF6")),En.createElement(Kt.default.Item,{style:{flex:"0 0 auto",marginRight:0,marginLeft:"auto"},name:"keyword"},En.createElement(Lt.default.Search,{className:Ye.search,placeholder:"\u8BF7\u8F93\u5165\u8BD5\u9898\u7F16\u53F7\u6216\u5173\u952E\u8BCD\u641C\u7D22",allowClear:!0,suffix:En.createElement("i",{className:`iconfont icon-sousuo9 font14 ${Ye.searchIcon}`,onClick:()=>oi.submit()}),onSearch:ne=>{oi.submit()}}))),En.createElement("div",{style:{background:"#F6F7F9",display:"flex",alignItems:"center",marginTop:18,height:40,paddingLeft:10,paddingRight:20}},En.createElement("div",{onClick:()=>{mn.updated_at==="asc"?mn.updated_at="desc":mn.updated_at="asc",Hi(Ie(bn({},mn),{page:1})),uo(Ie(bn({},mn),{page:1}))}}," ",mn.updated_at?En.createElement("img",{src:mn.updated_at==="asc"?kt.Z:$t.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):En.createElement("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"\u6309\u66F4\u65B0\u65F6\u95F4\u6392\u5E8F"),En.createElement("div",{onClick:()=>{mn.quotes==="asc"?mn.quotes="desc":mn.quotes="asc",Hi(Ie(bn({},mn),{page:1})),uo(Ie(bn({},mn),{page:1}))},style:{marginLeft:20}}," ",mn.quotes?En.createElement("img",{src:mn.quotes==="asc"?kt.Z:$t.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):En.createElement("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"\u6309\u4F7F\u7528\u6B21\u6570\u6392\u5E8F")),En.createElement(ze.default,{style:{marginTop:2,marginBottom:20},scroll:{y:260},dataSource:(zn==null?void 0:zn.items)||(zn==null?void 0:zn.shixun_list),pagination:!1,locale:{emptyText:En.createElement(_t.Z,{styles:{margin:"18px auto"},customText:Se()})},loading:Ii,rowKey:ne=>ne.id,rowSelection:{type:"checkbox",selectedRowKeys:be,getCheckboxProps:ne=>({disabled:ne.shixun_tag_num===1}),onSelect(ne,Me,Ke){if(Me)Mn&&Tr([...xr,ne.id]),Jn([...be,ne.id]),Qi([...ir,ne]),ne.identifier?pn.current.add(ne.id):dr.current.add(ne.id),We(1),Be([...Fn,ne.id]);else{const je=ir.filter(Ct=>Ct.id!==ne.id);Qi(je);const hn=je.map(Ct=>Ct.id);Jn([...hn]),ne.identifier?pn.current.delete(ne.id):dr.current.delete(ne.id);let An=Fn.filter(Ct=>Ct!==ne.id);if(Be(An),Mn){let Ct=xr.filter(Qt=>Qt!==ne.id);Tr([...Ct])}if(mn.type==="5"){Tt(Ie(bn({},mn),{list:[...An]}));return}}},onSelectAll(ne,Me,Ke){if(ne){const je=Ke.map(hn=>hn.id);Mn&&Tr([...xr,...je]),Qi([...ir,...Ke]),Jn([...be,...je]),Be([...Fn,...je]);for(const hn of Ke)hn.identifier?pn.current.add(hn.id):dr.current.add(hn.id)}else{const je=Ke.map(Ct=>Ct.id),hn=be.filter(Ct=>!je.some(Qt=>Qt===Ct)),An=ir.filter(Ct=>!je.some(Qt=>Qt===Ct.id));if(Qi(An),Jn([...hn]),Be([...hn]),Mn){let Ct=xr.filter(Qt=>!je.some(zt=>zt===Qt.id));Tr([...Ct])}mn.type==="5"&&Tt(Ie(bn({},mn),{list:[...hn]}));for(const Ct of je)Ct.identifier?pn.current.delete(Ct):dr.current.delete(Ct)}}},columns:[{title:"\u8BD5\u9898\u7F16\u53F7",dataIndex:"id",key:"id",width:110,render:(ne,Me,Ke)=>{const je=`No.${ne}`;return En.createElement(Je.Z,{title:je},En.createElement("span",null,je))}},{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",width:Mn?"30%":"60%",key:"name",render:(ne,Me,Ke)=>{var je;return En.createElement(Je.Z,{title:qt(Me)},En.createElement("span",null,En.createElement(Ot.Z,{key:1,showLines:1,showTextOnly:!0,value:Mn||Me!=null&&Me.challenge_names?Me!=null&&Me.title||ne===null?"--":ne:(Me==null?void 0:Me.item_type)=="BPROGRAM"?(je=Me==null?void 0:Me.program_attr)==null?void 0:je.description:ne})))}},{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_discipline",key:"tag_discipline",ellipsis:!0,width:150,render:(ne,Me,Ke)=>En.createElement(Je.Z,{title:ne},En.createElement("span",null,ne||"- -"))},{title:"\u521B\u5EFA\u8005",dataIndex:"author_name",key:"author_name",hidden:!Mn,render:(ne,Me,Ke)=>{var je;return En.createElement(Je.Z,{title:qt(Me)},En.createElement("span",null,ne?(je=ne==null?void 0:ne.split("\u3001"))==null?void 0:je[0]:"- -"))}},{title:"\u6240\u5C5E\u5355\u4F4D",dataIndex:"author_school_name",key:"author_school_name",hidden:!Mn,render:(ne,Me,Ke)=>En.createElement(Je.Z,{title:qt(Me)},En.createElement("span",null,ne||"- -"))},{title:"\u96BE\u5EA6",dataIndex:"difficulty",key:"difficulty",width:50,render:(ne,Me,Ke)=>{var je,hn,An,Ct;return En.createElement(Je.Z,{title:qt(Me)},En.createElement("div",null,Mn||Me!=null&&Me.challenge_names?(Me==null?void 0:Me.level)||((hn=(je=bi==null?void 0:bi.filter(Qt=>Qt.value===ne))==null?void 0:je[0])==null?void 0:hn.name):(Ct=(An=bi==null?void 0:bi.filter(Qt=>Qt.value===ne))==null?void 0:An[0])==null?void 0:Ct.name))}},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",hidden:!Mn,render:(ne,Me,Ke)=>En.createElement(Je.Z,{title:qt(Me)},En.createElement("div",null,ne||"- -"))},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"quotes",key:"quotes",width:74,render:(ne,Me,Ke)=>En.createElement(Je.Z,{title:qt(Me)},En.createElement("div",null,Mn||Me!=null&&Me.challenge_names?(Me==null?void 0:Me.study_count)||(Me==null?void 0:Me.stu_num):ne))},{title:En.createElement("span",null,"\u53D1\u5E03\u72B6\u6001 ",En.createElement(Je.Z,{title:"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528"},En.createElement(dn.Z,null))),dataIndex:"shixun_tag_num_name",key:"shixun_tag_num_name",hidden:!Mn,render:(ne,Me,Ke)=>En.createElement(Je.Z,{title:qt(Me)},En.createElement("div",null,ne||"- -"))},{title:"\u64CD\u4F5C",dataIndex:"id",key:"item_type",width:50,align:"right",render:(ne,Me,Ke)=>En.createElement(Je.Z,{title:qt(Me)},En.createElement("div",{style:{flex:1,textAlign:"start"}},En.createElement("a",{onClick:()=>{var je,hn;Si(Ie(bn({},Me),{question_type:Mn||Me!=null&&Me.challenge_names?5:(hn=(je=Zi==null?void 0:Zi.filter(An=>An.value===(Me==null?void 0:Me.item_type)))==null?void 0:je[0])==null?void 0:hn.question_type})),ji(!0)}},"\u67E5\u770B"),(Me==null?void 0:Me.shixun_tag_num)===1&&En.createElement("a",{style:{marginLeft:10},onClick:()=>{xe.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,width:400,content:En.createElement("div",null,"\u662F\u5426\u786E\u5B9A\u53D1\u5E03",En.createElement("span",{style:{cursor:"pointer",color:"#3061D0"},onClick:()=>{window.open(`/shixuns/${Me==null?void 0:Me.identifier}/challenges`)}},(Me==null?void 0:Me.shixun_name)||"--"),"\uFF1F"),onOk:()=>Ue(void 0,null,function*(){if(!Wt(Me==null?void 0:Me.identifier))return new Promise((je,hn)=>{hn()})})})}},"\u53D1\u5E03")))}].filter(ne=>!ne.hidden)}),En.createElement(Re.Z,{current:mn.page,total:(zn==null?void 0:zn.items_count)||(zn==null?void 0:zn.shixuns_count),style:{marginBottom:20},defaultPageSize:mn.per_page,hideOnSinglePage:!(zn!=null&&zn.items_count),showTotal:ne=>En.createElement("span",null,"\u5171\xA0",En.createElement("span",{style:{color:"#165DFF"}},ne),"\xA0\u6761\u6570\u636E"),pageSize:mn.per_page,onChange:(ne,Me)=>{mn.page=ne,mn.per_page=Me,Hi(bn({},mn)),uo(bn({},mn))}}),En.createElement("div",{className:Ye.bottom},En.createElement(Ve.ZP,{className:Ye.no,onClick:()=>{rn(!1)}},"\u53D6\u6D88"),En.createElement(Ve.ZP,{loading:ke,style:{width:ke&&75},className:Ye.yes,onClick:()=>Ue(void 0,null,function*(){if((Fn==null?void 0:Fn.length)<=0){nt.ZP.info("\u5F53\u524D\u6682\u672A\u9009\u62E9\u6570\u636E");return}Fe([...dr.current],[...pn.current],!0,Fn==null?void 0:Fn.length)})},"\u786E\u8BA4"))),En.createElement(xe.default,{open:Ui,title:"\u9898\u76EE\u8BE6\u60C5",footer:!1,className:Ye.previewModal,width:1e3,centered:!0,onCancel:()=>{ji(!1)},onOk:()=>{ji(!1)}},En.createElement(Vt,{qitem:gi})))};var Ln=(0,St.connect)(({shixunsDetail:rn,user:Yn})=>({shixunsDetail:rn,user:Yn}))(cn),Xn=Dt(29267),li=Dt(61186),Ci=Dt.n(li),gn=Dt(59301),ti=Object.defineProperty,_i=Object.defineProperties,fr=Object.getOwnPropertyDescriptors,tr=Object.getOwnPropertySymbols,er=Object.prototype.hasOwnProperty,yr=Object.prototype.propertyIsEnumerable,sr=(rn,Yn,Fe)=>Yn in rn?ti(rn,Yn,{enumerable:!0,configurable:!0,writable:!0,value:Fe}):rn[Yn]=Fe,hr=(rn,Yn)=>{for(var Fe in Yn||(Yn={}))er.call(Yn,Fe)&&sr(rn,Fe,Yn[Fe]);if(tr)for(var Fe of tr(Yn))yr.call(Yn,Fe)&&sr(rn,Fe,Yn[Fe]);return rn},zi=(rn,Yn)=>_i(rn,fr(Yn)),gr=(rn,Yn)=>{var Fe={};for(var Ne in rn)er.call(rn,Ne)&&Yn.indexOf(Ne)<0&&(Fe[Ne]=rn[Ne]);if(rn!=null&&tr)for(var Ne of tr(rn))Yn.indexOf(Ne)<0&&yr.call(rn,Ne)&&(Fe[Ne]=rn[Ne]);return Fe},Et=(rn,Yn,Fe)=>new Promise((Ne,ke)=>{var sn=Fi=>{try{yi(Fe.next(Fi))}catch(Xe){ke(Xe)}},xi=Fi=>{try{yi(Fe.throw(Fi))}catch(Xe){ke(Xe)}},yi=Fi=>Fi.done?Ne(Fi.value):Promise.resolve(Fi.value).then(sn,xi);yi((Fe=Fe.apply(rn,Yn)).next())});const Bn=({title:rn,icon:Yn,className:Fe,style:Ne,children:ke})=>gn.createElement("div",{className:we()(ee.card,Fe),style:Ne},gn.createElement("div",{className:ee.head},gn.createElement("i",{className:Yn}),gn.createElement("b",null,rn)),gn.createElement("div",{className:ee.element},ke)),Gn=rn=>{var Yn=rn,{value:Fe,onChange:Ne}=Yn,ke=gr(Yn,["value","onChange"]);return gn.createElement(jt.Z,zi(hr({},ke),{defaultValue:Fe,onChange:Ne}))},fi=({value:rn=[],onChange:Yn,params:Fe,className:Ne})=>{const[ke,sn]=(0,yt.useState)(!1),[xi,yi]=(0,yt.useState)([]),[Fi,Xe]=(0,yt.useState)(""),[Dn,mn]=(0,yt.useState)([]),[Hi,qn]=(0,yt.useState)("");(0,yt.useEffect)(()=>{te()},[]);function te(){return Et(this,null,function*(){let be=yield(0,ve.ZP)(`/api/courses/${Fe==null?void 0:Fe.coursesId}/teachers`,{method:"get",params:{homework_id:Fe.categoryId,limit:1e3}});mn((be==null?void 0:be.teacher_list)||[])})}return gn.createElement(yt.Fragment,null,gn.createElement("div",{className:we()(ee.collaborator,Ne)},rn==null?void 0:rn.map(be=>gn.createElement(ce.Z,{align:"middle",className:`${ee.btn} ${Hi==(be==null?void 0:be.user_id)?ee.delBorder:""}`,key:be.user_id},gn.createElement("span",{className:"c-grey-333"},be==null?void 0:be.name),gn.createElement("span",{className:`iconfont icon-guanbi11 current ml20 c-grey-ccc ${ee.delSty}`,onMouseEnter:()=>{qn(be==null?void 0:be.user_id)},onMouseLeave:()=>{qn("")},onClick:()=>{const Jn=rn.filter(Fn=>Fn.user_id!==be.user_id);yi(Jn.map(Fn=>Fn.user_id)),Yn(Jn)}}))),gn.createElement(Ve.ZP,{className:ee.copHover,style:{height:38,padding:"6px 15px"},type:"primary",ghost:!0,onClick:()=>sn(!0)},"\u6DFB\u52A0\u534F\u4F5C\u8005")),gn.createElement(xe.default,{title:"\u6DFB\u52A0\u534F\u4F5C\u8005",open:ke,onCancel:()=>sn(!1),onOk:()=>{const be=Dn.filter(Jn=>xi.includes(Jn.user_id));Yn(be),sn(!1)},afterClose:()=>{Xe("")}},gn.createElement(ce.Z,{align:"middle"},gn.createElement("label",null,"\u59D3\u540D\uFF1A"),gn.createElement(Lt.default.Search,{value:Fi,size:"middle",style:{flex:1},onChange:be=>Xe(be.target.value)})),gn.createElement(ze.default,{style:{marginTop:10,height:300,overflow:"auto"},rowSelection:{type:"checkbox",onChange:be=>{yi(be)},selectedRowKeys:xi,getCheckboxProps:be=>({disabled:be.is_collaborator})},pagination:!1,rowKey:"user_id",size:"middle",dataSource:Dn.filter(be=>be.name.includes(Fi)),columns:[{title:"\u59D3\u540D",dataIndex:"name"},{title:"\u89D2\u8272",dataIndex:"role"}]})))};var Kn=()=>{var rn;const Yn=(0,St.useParams)(),Fe=(0,St.useDispatch)(),[Ne]=Kt.default.useForm(),ke=Kt.default.useWatch("hack_score_settings",Ne),sn=Kt.default.useWatch("open_code",Ne),xi=Kt.default.useWatch("rank_forbidden",Ne),yi=Kt.default.useWatch("hack_analysis",Ne),Fi=Kt.default.useWatch("hack_answer",Ne),[Xe,Dn]=(0,yt.useState)([]),[mn,Hi]=(0,yt.useState)({}),[qn,te]=(0,yt.useState)({course_end_date:null,manage_all_group:!0,send_type:0,can_publish:!0,difficult_settings:[],difficult_count:[],unified_setting:!0}),[be,Jn]=(0,yt.useState)(!0),[Fn,Be]=(0,yt.useState)(!1),[zn,Ai]=(0,yt.useState)(!1),[Ii,Ki]=(0,yt.useState)({}),[oi,gi]=(0,yt.useState)(!1),[Si,Ui]=(0,yt.useState)(!1),ji=(0,yt.useRef)(!1),Mn=(0,yt.useRef)(String(Math.random()).slice(-6)),Ei=(rn=window.location.pathname)==null?void 0:rn.includes("add");(0,yt.useEffect)(()=>(window.addEventListener("visibilitychange",xr),()=>{window.removeEventListener("visibilitychange",xr)}),[Xe,Ii]),(0,yt.useEffect)(()=>(Fe({type:"globalSetting/footerToggle",payload:!1}),()=>{Fe({type:"globalSetting/footerToggle",payload:!0})}),[]),(0,yt.useEffect)(()=>{Xe.length&&ke!==void 0&&Gi()},[ke,JSON.stringify(Xe==null?void 0:Xe.map(Zi=>Zi.id+Zi.hack_score))]),(0,yt.useEffect)(()=>{Tr(),Ei?Jn(!1):_r()},[]);const xr=()=>Et(void 0,null,function*(){var Zi;if(document.visibilityState==="visible"){Ui(!0);let ir=Xe.map(dr=>dr.id),Qi=localStorage.getItem(Mn.current);Qi&&(Qi=JSON.parse(Qi),Qi=Array.isArray(Qi)?Qi:[],ir=[...ir,...Qi],localStorage.removeItem(Mn.current));const pn=yield(0,ve.ZP)("/api/item_banks.json",{method:"get",params:{hack_item_bank_ids:ir.length?ir:-1,homework_common_id:Ei?null:Ii==null?void 0:Ii.homework_id}});if(pn!=null&&pn.items){const dr=(Zi=pn==null?void 0:pn.items)==null?void 0:Zi.map(xn=>{const bi=Xe.find(Sr=>Sr.id===xn.id);return bi?zi(hr({},xn),{hack_score:bi.hack_score}):xn});Dn(dr)}Ui(!1)}}),Tr=()=>Et(void 0,null,function*(){const Zi=yield(0,ve.ZP)(`/api/courses/${Yn.coursesId}/homework_commons/new.json`,{method:"get",params:{category:Yn==null?void 0:Yn.categoryId,type:5}});Zi!=null&&Zi.course_name&&Hi(Zi)}),_r=()=>Et(void 0,null,function*(){var Zi,ir;const Qi=yield(0,ve.ZP)(`/api/homework_commons/${Yn==null?void 0:Yn.categoryId}/edit_hack.json`,{method:"get"});if((Qi==null?void 0:Qi.status)===0){const pn=(Zi=Qi==null?void 0:Qi.collaborators_data)==null?void 0:Zi.map(xn=>({user_id:xn.id,name:xn.real_name}));Ne.setFieldsValue(zi(hr({},Qi),{user_ids:pn,rank_forbidden_start:Qi!=null&&Qi.rank_forbidden_start?Ci()(Qi==null?void 0:Qi.rank_forbidden_start):"",rank_forbidden_end:Qi!=null&&Qi.rank_forbidden_end?Ci()(Qi==null?void 0:Qi.rank_forbidden_end):""}));const dr=(ir=Qi==null?void 0:Qi.items)==null?void 0:ir.map((xn,bi)=>{var Sr,Er;return zi(hr({},xn),{hack_score:(Er=(Sr=Qi==null?void 0:Qi.hack_settings)==null?void 0:Sr[bi])==null?void 0:Er.hack_score})});Dn(dr||[]),Ki(hr({},Qi))}Jn(!1)}),We=()=>{let Zi=`/classrooms/${Yn==null?void 0:Yn.coursesId}/program_homework`;return Ei||(Zi=`/classrooms/${Yn==null?void 0:Yn.coursesId}/program_homework/${Yn==null?void 0:Yn.categoryId}/detail`),Zi},ar=[{name:(mn==null?void 0:mn.course_name)||"",path:`/classrooms/${mn==null?void 0:mn.course_id}/program_homework`},{name:Ei?"\u7F16\u7A0B\u4F5C\u4E1A":Ii==null?void 0:Ii.name,path:We()},{name:(Ei?"\u65B0\u5EFA":"\u7F16\u8F91")+"\u7F16\u7A0B\u4F5C\u4E1A"}],br=[{title:"\u5E8F\u53F7",dataIndex:"index",width:80,render:(Zi,ir,Qi)=>Qi+1},{title:"\u6807\u9898",dataIndex:"name",ellipsis:!0,render:Zi=>gn.createElement(Je.Z,{placement:"topLeft",title:Zi},gn.createElement("span",null,Zi||"--"))},{title:"\u5206\u503C",dataIndex:"hack_score",render:(Zi,ir,Qi)=>gn.createElement(Bt.Z,{disabled:ke!==2,size:"middle",min:0,precision:1,addonAfter:"\u5206",value:Zi,onChange:pn=>{Xe[Qi].hack_score=pn;const dr=Xe.reduce((xn,bi)=>xn+Number(bi.hack_score||0),0);Ne.setFieldsValue({total_score:dr.toFixed(2)}),Dn([...Xe])}})},{title:"\u96BE\u5EA6",dataIndex:"difficulty",align:"center",width:90,render:Zi=>gn.createElement("span",null,Zi===1?"\u7B80\u5355":Zi===2?"\u4E2D\u7B49":"\u56F0\u96BE")},{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_discipline",render:Zi=>gn.createElement(Je.Z,{placement:"topLeft",title:Zi},gn.createElement("span",{style:{backgroundColor:"#ECFAF5",color:"#1B8565",overflow:"hidden",textOverflow:"ellipsis",padding:"2px 6px"}},Zi||"--"))},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"quotes"},{title:"\u64CD\u4F5C",dataIndex:"action",width:146,render:(Zi,ir)=>gn.createElement("span",null,gn.createElement("span",{onClick:()=>Et(void 0,null,function*(){var Qi;Fe({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u521D\u59CB\u5316\uFF0C\u8BF7\u7A0D\u540E..."}});let pn=yield(0,ve.ZP)(`/api/problems/${(Qi=ir==null?void 0:ir.program_attr)==null?void 0:Qi.identifier}/start.json`,{method:"get"});(pn==null?void 0:pn.status)===0&&(0,mt.xg)(`/myproblems/${pn==null?void 0:pn.identifier}?type=1&pageId=edit&backUrl=${We()}`),Fe({type:"globalSetting/setGlobalLoading",payload:{show:!1}})}),className:"c-light-primary current"},"\u4F53\u9A8C"),gn.createElement("span",{onClick:()=>{var Qi;return(0,mt.xg)(`/problems/newedit/${(Qi=ir==null?void 0:ir.program_attr)==null?void 0:Qi.identifier}?type=1&pageId=edit&backUrl=${window.location.pathname}`)},className:"c-light-primary current mr20 ml20"},"\u7F16\u8F91"),gn.createElement("span",{onClick:()=>{const Qi=Xe.filter(pn=>pn.id!==ir.id);Dn(Qi),nt.ZP.success("\u5220\u9664\u6210\u529F")},className:"current",style:{color:"#E30000"}},"\u5220\u9664"))}],Gi=()=>{const Zi=[...Xe],ir=Ne.getFieldValue("total_score"),Qi=Zi==null?void 0:Zi.length;let pn=0,dr;switch(ke){case 0:const xn=(ir/Qi).toFixed(2);Zi.map((tn,Hn)=>{pn=Hn,tn.hack_score=xn>0?xn:0}),dr=(ir-xn*(Qi-1)).toFixed(2),Zi[pn].hack_score=dr>0?dr:0;break;case 1:const bi=[0,1,3,6];let Sr=0;const Er=Zi.filter(tn=>tn.difficulty===1).length*bi[1],io=Zi.filter(tn=>tn.difficulty===2).length*bi[2],Yr=Zi.filter(tn=>tn.difficulty===3).length*bi[3],Mr=ir/(Er+io+Yr);Zi.map((tn,Hn)=>{pn=Hn,tn.hack_score=(bi[tn.difficulty]*Mr).toFixed(2),Sr=Sr+Number(tn.hack_score)});let uo=Zi[pn].hack_score;dr=(ir-Sr+Number(uo)).toFixed(2),Zi[pn].hack_score=dr>0?dr:0;break}Dn(Zi)},Gr=Zi=>{ji.current=Zi,Ne.submit()},Or=Zi=>Et(void 0,null,function*(){var ir;if(!Xe.length){nt.ZP.error("\u672A\u8BBE\u7F6E\u7F16\u7A0B\u9898\uFF0C\u8BF7\u6DFB\u52A0\u7F16\u7A0B\u9898"),Ne.scrollToField("hack_score_settings",{behavior:"smooth",block:"center"});return}gi(!0);const Qi=[],pn=Xe.map(bi=>(Qi.push(bi.hack_id),{hack_id:bi.hack_id,hack_name:bi.name,hack_score:bi.hack_score,difficult:bi.difficulty})),dr=(ir=Zi==null?void 0:Zi.user_ids)==null?void 0:ir.map(bi=>bi.user_id),xn=yield(0,ve.ZP)(`/api/courses/${Yn.coursesId}/homework_commons/create_hack_homework.json`,{method:"post",body:zi(hr({},Zi),{category:Ei?Number(Yn==null?void 0:Yn.categoryId):null,homework_id:Ei?null:Ii==null?void 0:Ii.homework_id,hack_settings:pn,user_ids:dr,hack_ids:Qi})});if((xn==null?void 0:xn.status)===0)if(nt.ZP.success("\u4FDD\u5B58\u6210\u529F"),ji.current){const bi=hr({},xn);te(bi),Fe({type:"classroomList/setActionTabs",payload:{key:"\u7ACB\u5373\u53D1\u5E03",selectArrs:[xn==null?void 0:xn.id],selectArrsAll:[bi],params:Yn,detail:!0,type:2,manage_all_group:bi==null?void 0:bi.manage_all_group}})}else St.history.push(`/classrooms/${Yn.coursesId}/program_homework/${xn==null?void 0:xn.id}/detail`);gi(!1)}),Wr=Zi=>Et(void 0,null,function*(){if(!Zi.length){nt.ZP.warning("\u8BF7\u9009\u62E9\u7F16\u7A0B\u9898");return}if(Zi.length>200){nt.ZP.warning("\u7F16\u7A0B\u9898\u6570\u91CF\u4E0D\u5F97\u8D85\u8FC7200\u9053");return}const ir=[],Qi=Xe.map(xn=>{var bi;return(bi=xn.program_attr)==null?void 0:bi.origin_item_bank_id}),pn=[];Zi.forEach(xn=>{if(Qi.includes(xn)){const bi=Xe.find(Sr=>{var Er;return((Er=Sr.program_attr)==null?void 0:Er.origin_item_bank_id)===xn});pn.push(bi)}else ir.push(xn)}),Ai(!0);const dr=yield(0,ve.ZP)("/api/problems/copy_item_banks.json",{method:"post",body:{ids:ir}});if(dr!=null&&dr.items){const xn=[...pn,...dr==null?void 0:dr.items];if(ke===2){const bi=xn.reduce((Sr,Er)=>Sr+Number(Er.hack_score||0),0);Ne.setFieldsValue({total_score:bi.toFixed(2)})}Dn(xn),Be(!1)}Ai(!1)});return gn.createElement("div",{className:ee.wrap},gn.createElement(et.Z,{spinning:be},gn.createElement("div",{className:ee.center},gn.createElement(Ee._b,{dataSource:ar,className:"mb20"}),gn.createElement(Kt.default,{form:Ne,preserve:!1,onValuesChange:Zi=>{"total_score"in Zi&&Gi()},onFinishFailed:Zi=>Et(void 0,null,function*(){var ir,Qi;nt.ZP.error(Zi.errorFields[0].errors[0]),Ne.scrollToField((Qi=(ir=Zi==null?void 0:Zi.errorFields)==null?void 0:ir[0])==null?void 0:Qi.name,{behavior:"smooth",block:"center"})}),onFinish:Or,colon:!1,size:"large"},gn.createElement(Bn,{className:"mb20",title:"\u57FA\u672C\u4FE1\u606F",icon:"iconfont icon-jibenxinxi2"},gn.createElement(Kt.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"}]},gn.createElement(Lt.default,{placeholder:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u540D\u79F0",showCount:!0,maxLength:60})),gn.createElement(Kt.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"}]},gn.createElement(Gn,{placeholder:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u8BF4\u660E\uFF0C\u6700\u5927\u9650\u523650000\u4E2A\u5B57\u7B26",watch:!0}))),gn.createElement(Bn,{className:"mb20",title:"\u9898\u76EE\u8BBE\u7F6E",icon:"iconfont icon-timushezhi"},gn.createElement(Kt.default.Item,{label:"\u8BD5\u9898\u7F16\u7A0B\u8BED\u8A00",name:"languages",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BD5\u9898\u7F16\u7A0B\u8BED\u8A00"}]},gn.createElement(dt.default.Group,null,gn.createElement(dt.default,{value:"c"},"C\u8BED\u8A00"),gn.createElement(dt.default,{value:"c++"},"C++\u8BED\u8A00"),gn.createElement(dt.default,{value:"java"},"Java\u8BED\u8A00"),gn.createElement(dt.default,{value:"python"},"Python\u8BED\u8A00"))),gn.createElement(ce.Z,{align:"middle"},gn.createElement(Kt.default.Item,{label:"\u603B\u5206\u503C",name:"total_score",rules:[{required:!0,message:"\u603B\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A"}],initialValue:100},gn.createElement(Bt.Z,{precision:1,disabled:ke===2,min:0,style:{width:223},addonAfter:"\u5206"})),gn.createElement(Kt.default.Item,{label:"\u6D4B\u8BC4\u5355\u6B21\u62A5\u9519\u589E\u52A0\u65F6\u957F",name:"punish_time",initialValue:0,style:{marginLeft:40}},gn.createElement(Bt.Z,{min:0,style:{width:223},addonAfter:"\u5206\u949F"}))),gn.createElement(Kt.default.Item,{label:"\u8BD5\u9898\u5206\u503C",name:"hack_score_settings",initialValue:0},gn.createElement(lt.ZP.Group,null,gn.createElement(lt.ZP,{value:0},"\u5747\u5206\u6BD4\u4F8B"),gn.createElement(lt.ZP,{style:{margin:"0 40px"},value:1},"\u96BE\u6613\u5EA6"),gn.createElement(lt.ZP,{value:2},"\u81EA\u5B9A\u4E49\u5206\u503C"))),gn.createElement(ce.Z,{align:"middle"},gn.createElement("span",null,"\u9898\u76EE\u5217\u8868"),gn.createElement(Ve.ZP,{onClick:()=>Be(!0),style:{marginLeft:"auto",width:110},type:"primary",ghost:!0},"\u9009\u62E9\u7F16\u7A0B\u9898"),gn.createElement(Ve.ZP,{onClick:()=>(0,mt.xg)(`/problems/newcreate?pageId=${Mn.current}`),style:{marginLeft:20,width:110},type:"primary"},"\u65B0\u589E\u7F16\u7A0B\u9898")),gn.createElement("div",{className:ee.tip},gn.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"),gn.createElement(Kt.default.Item,{name:"hack_settings",className:"mb0",initialValue:[]},gn.createElement(In,{dataSource:Xe,setDataSource:Dn,columns:br,loading:Si}))),gn.createElement(Bn,{style:{marginBottom:100},title:"\u4F5C\u4E1A\u8BBE\u7F6E",icon:"iconfont icon-zuoyeshezhi"},gn.createElement("div",{className:ee.title},"\u6392\u884C\u699C\u65F6\u95F4\u540D\u6B21\u89C4\u5219"),gn.createElement("div",{className:`${ee.content} mb30`},gn.createElement(Kt.default.Item,{name:"hack_rank_rule",noStyle:!0,initialValue:0},gn.createElement(lt.ZP.Group,null,gn.createElement(lt.ZP,{value:0},gn.createElement("span",{className:"c-black"},"\u8017\u65F6\u65F6\u957F\u4F18\u5148"),gn.createElement("span",{className:"c-grey-666 font14"},"\uFF08\u540C\u6210\u7EE9\uFF0C\u8017\u65F6\u8D8A\u77ED\u540D\u6B21\u8D8A\u524D\uFF09")),gn.createElement(lt.ZP,{style:{marginLeft:40},value:1},gn.createElement("span",{className:"c-black"},"\u5B8C\u6210\u65F6\u95F4\u70B9\u4F18\u5148"),gn.createElement("span",{className:"c-grey-666 font14"},"\uFF08\u540C\u6210\u7EE9\uFF0C\u5B8C\u6210\u65F6\u95F4\u8D8A\u65E9\u540D\u6B21\u8D8A\u524D\uFF09"))))),gn.createElement("div",{className:`${ee.title} mt30`},"\u5B66\u751F\u5B9E\u9A8C\u62A5\u544A\u4EE3\u7801\u5C55\u793A\u8BBE\u7F6E"),gn.createElement("div",{className:ee.content},gn.createElement(Kt.default.Item,{name:"show_late_code",noStyle:!0,valuePropName:"checked",initialValue:!0},gn.createElement(dt.default,null,gn.createElement("span",{className:"c-black"},"\u5C55\u793A\u6240\u6709\u8BC4\u6D4B\u4EE3\u7801"),gn.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")))),gn.createElement("div",{className:`${ee.title} mt30`},"\u516C\u5F00\u8BBE\u7F6E"),gn.createElement("div",{className:ee.content},gn.createElement(Kt.default.Item,{name:"score_open",valuePropName:"checked",className:"mb0",initialValue:!1},gn.createElement(dt.default,null,gn.createElement("span",{className:"c-black"},"\u516C\u5F00\u6210\u7EE9"),gn.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"))),gn.createElement(Kt.default.Item,{name:"open_code",valuePropName:"checked",className:"mb0",initialValue:!1},gn.createElement(dt.default,null,gn.createElement("span",{className:"c-black"},"\u516C\u5F00\u4EE3\u7801"),gn.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"))),!!sn&&gn.createElement(Kt.default.Item,{name:"open_code_type",className:"mb0 ml25",initialValue:1},gn.createElement(lt.ZP.Group,null,gn.createElement(lt.ZP,{value:1},"\u4F5C\u4E1A\u7ED3\u675F\u540E"),gn.createElement(lt.ZP,{style:{marginLeft:60},value:0},"\u4EFB\u610F\u65F6\u95F4"))),gn.createElement(Kt.default.Item,{name:"rank_forbidden",valuePropName:"checked",className:"mb0",initialValue:!1},gn.createElement(dt.default,null,gn.createElement("span",{className:"c-black"},"\u5F00\u542F\u5C01\u699C"),gn.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"))),!!xi&&gn.createElement(ce.Z,{align:"middle",className:"ml25"},gn.createElement(Kt.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"},gn.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})),gn.createElement(Kt.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"},gn.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}))),gn.createElement(Kt.default.Item,{name:"hack_analysis",valuePropName:"checked",className:"mb0",initialValue:!1},gn.createElement(dt.default,null,gn.createElement("span",{className:"c-black"},"\u516C\u5F00\u89E3\u6790"),gn.createElement("span",{className:"c-grey-666 ml10"},"\uFF08\u8BBE\u7F6E\u5B66\u751F\u5728\u5B9E\u9A8C\u9875\u9762\u67E5\u770B\u8BD5\u9898\u89E3\u6790\uFF09"))),!!yi&&gn.createElement(Kt.default.Item,{name:"hack_analysis_type",className:"mb0 ml25",initialValue:2},gn.createElement(lt.ZP.Group,null,gn.createElement(lt.ZP,{value:2},"\u4F5C\u4E1A\u7ED3\u675F\u540E"),gn.createElement(lt.ZP,{value:0,style:{marginLeft:60}},"\u4EFB\u610F\u65F6\u95F4"),gn.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"))),gn.createElement(Kt.default.Item,{name:"hack_answer",valuePropName:"checked",className:"mb0",initialValue:!1},gn.createElement(dt.default,null,gn.createElement("span",{className:"c-black"},"\u516C\u5F00\u7B54\u6848"),gn.createElement("span",{className:"c-grey-666 ml10"},"\uFF08\u8BBE\u7F6E\u5B66\u751F\u5728\u5B9E\u9A8C\u9875\u9762\u67E5\u770B\u8BD5\u9898\u7B54\u6848\uFF09"))),!!Fi&&gn.createElement(Kt.default.Item,{name:"hack_answer_type",className:"mb0 ml25",initialValue:1},gn.createElement(lt.ZP.Group,null,gn.createElement(lt.ZP,{value:1},"\u4F5C\u4E1A\u7ED3\u675F\u540E"),gn.createElement(lt.ZP,{value:0,style:{marginLeft:60}},"\u4EFB\u610F\u65F6\u95F4")))),gn.createElement("div",{className:`${ee.title} mt30`},"\u534F\u4F5C\u8BBE\u7F6E"),gn.createElement(Kt.default.Item,{name:"user_ids",noStyle:!0,initialValue:[]},gn.createElement(fi,{params:Yn}))))),gn.createElement("div",{className:ee.fixedBtns},gn.createElement(ce.Z,{align:"middle",className:ee.center},gn.createElement(Ve.ZP,{onClick:()=>St.history.push(We()),style:{padding:"6px 15px"},type:"primary",ghost:!0},"\u53D6\u6D88"),gn.createElement(Ve.ZP,{loading:oi&&!ji.current,disabled:oi&&ji.current,onClick:()=>Gr(!1),style:{marginLeft:"auto",marginRight:20,padding:"6px 40px"},type:"primary",ghost:!0},"\u4FDD\u5B58\u4F5C\u4E1A"),gn.createElement(Ve.ZP,{loading:oi&&ji.current,disabled:oi&&!ji.current,onClick:()=>Gr(!0),style:{padding:"6px 19px"},type:"primary"},"\u4FDD\u5B58\u5E76\u53D1\u5E03\u4F5C\u4E1A")))),gn.createElement(Ln,{setScoreShow:Be,isshixuns:!1,ScoreShow:Fn,virtualId:Mn.current,isloadings:zn,onOk:Wr,selectedIds:Xe.map(Zi=>{var ir;return(ir=Zi.program_attr)==null?void 0:ir.origin_item_bank_id})||[]}),gn.createElement(Xn.Z,{courseEndTime:qn==null?void 0:qn.course_end_date,onWindowBack:()=>{window.location.href=`/classrooms/${Yn==null?void 0:Yn.coursesId}/program_homework/${qn==null?void 0:qn.id}/detail`}}))}},29267:function(Qn,pi,Dt){"use strict";var yt=Dt(59301),ee=Dt(28284),ie=Dt(6767),we=Dt(62957),Ee=Dt(77019),jt=Dt(47889),ce=Dt(71051),Ve=Dt(5269),xe=Dt(16326),Lt=Dt(62673),ze=Dt(61186),Kt=Dt.n(ze),Je=Dt(38986),Bt=Dt(48790),nt=Dt(51257),et=Dt(25690),dt=Dt(73410),lt=Dt(82264),gt=Dt(48716),mt=Dt(59301),St=Object.defineProperty,Mt=Object.defineProperties,It=Object.getOwnPropertyDescriptors,Zt=Object.getOwnPropertySymbols,oe=Object.prototype.hasOwnProperty,Gt=Object.prototype.propertyIsEnumerable,_t=(wn,ln,Oe)=>ln in wn?St(wn,ln,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):wn[ln]=Oe,ge=(wn,ln)=>{for(var Oe in ln||(ln={}))oe.call(ln,Oe)&&_t(wn,Oe,ln[Oe]);if(Zt)for(var Oe of Zt(ln))Gt.call(ln,Oe)&&_t(wn,Oe,ln[Oe]);return wn},me=(wn,ln)=>Mt(wn,It(ln)),Pe=(wn,ln)=>{var Oe={};for(var Sn in wn)oe.call(wn,Sn)&&ln.indexOf(Sn)<0&&(Oe[Sn]=wn[Sn]);if(wn!=null&&Zt)for(var Sn of Zt(wn))ln.indexOf(Sn)<0&&Gt.call(wn,Sn)&&(Oe[Sn]=wn[Sn]);return Oe},ye=(wn,ln,Oe)=>new Promise((Sn,se)=>{var Yt=In=>{try{_n(Oe.next(In))}catch(on){se(on)}},fn=In=>{try{_n(Oe.throw(In))}catch(on){se(on)}},_n=In=>In.done?Sn(In.value):Promise.resolve(In.value).then(Yt,fn);_n((Oe=Oe.apply(wn,ln)).next())});const He=wn=>{var ln=wn,{classroomList:Oe,dispatch:Sn,courseEndTime:se,onWindowBack:Yt}=ln,fn=Pe(ln,["classroomList","dispatch","courseEndTime","onWindowBack"]),_n,In,on,jn,Pn,di,Re,ve,Ye,mi,Cn,Ot,At,wt,Nt,Vt,kt,$t,nn,dn,En,De,Ce,Qe,un,Nn,ai,Tn,bn,Ie,Ue,cn,Ln,Xn,li,Ci,gn,ti,_i;const fr=(0,et.useParams)(),[tr]=ee.default.useForm(),[er,yr]=(0,yt.useState)(1),[sr,hr]=(0,yt.useState)([]),[zi,gr]=(0,yt.useState)(0),[Et,Bn]=(0,yt.useState)(2e3),[Gn,fi]=(0,yt.useState)(!0),[ci,Kn]=(0,yt.useState)(!1),[rn,Yn]=(0,yt.useState)(!1),[Fe,Ne]=(0,yt.useState)([]),[ke,sn]=(0,yt.useState)(!0),[xi,yi]=(0,yt.useState)(!((on=(In=(_n=Oe.actionTabs)==null?void 0:_n.selectArrsAll)==null?void 0:In[0])!=null&&on.send_type));let[Fi,Xe]=(0,yt.useState)([0,0,0]);(0,yt.useEffect)(()=>{var Fn,Be,zn,Ai,Ii,Ki,oi,gi,Si,Ui,ji,Mn,Ei;if(Oe.actionTabs.key==="\u7ACB\u5373\u53D1\u5E03")if(qn(),(zn=(Be=(Fn=Oe.actionTabs)==null?void 0:Fn.selectArrsAll)==null?void 0:Be[0])!=null&&zn.can_publish?Xe([...(Si=(gi=(oi=Oe.actionTabs)==null?void 0:oi.selectArrsAll)==null?void 0:gi[0])==null?void 0:Si.difficult_count]):Xe([...(Ki=(Ii=(Ai=Oe.actionTabs)==null?void 0:Ai.selectArrsAll)==null?void 0:Ii[0])==null?void 0:Ki.difficult_settings]),yi(!((Mn=(ji=(Ui=Oe.actionTabs)==null?void 0:Ui.selectArrsAll)==null?void 0:ji[0])!=null&&Mn.send_type)),Dn(),Oe.actionTabs.type===2){const xr=(Ei=Oe.actionTabs.selectArrsAll)==null?void 0:Ei[0];sn(xr.unified_setting)}else sn(!1)},[Oe.actionTabs]),(0,yt.useEffect)(()=>{if(ci){if(rn)return;Sn({type:"classroomList/setActionTabs",payload:{}}),(0,Bt.GJ)()?(Sn({type:"classroomList/getClassroomTeacherCommonList",payload:me(ge({},Oe.actionTabs.params),{type:1})}),Sn({type:"shixunHomeworks/getWorkList",payload:ge({},fr)})):Sn({type:"classroomList/getClassroomCommonList",payload:ge({},Oe.actionTabs.params)})}},[ci]);const Dn=Fn=>ye(void 0,null,function*(){fi(!0);const Be=yield(0,lt.c_)(me(ge({},fr),{page:Fn||er,limit:2e4,homework_id:Oe.actionTabs.type===1?"":Oe.actionTabs.selectArrs[0]}));Be==null||Be.course_groups.map((zn,Ai)=>{zn.key=zn.id,zn.title=zn.name,zn.disabled=zn.is_published}),Be&&(hr([...Be==null?void 0:Be.course_groups]),gr(Be==null?void 0:Be.course_groups_count),fi(!1),Fn||tr.setFieldsValue({publish_time:Kt()(Kt()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm")),end_time:Kt()(Kt()(new Date).add(7,"days").format("YYYY-MM-DD HH:mm"))}))}),mn=()=>{(0,Bt.GJ)()?Oe.actionTabs.detail?(Sn({type:"shixunHomeworks/setActionTabs",payload:{}}),Sn({type:"shixunHomeworks/getWorkList",payload:ge({},fr)}),Sn({type:"shixunHomeworks/getWorkSetting",payload:ge({},fr)})):Sn({type:"classroomList/getClassroomTeacherCommonList",payload:me(ge({},Oe.actionTabs.params),{type:5,category:Oe.actionTabs.params.categoryId})}):Sn({type:"classroomList/getClassroomCommonList",payload:ge({},Oe.actionTabs.params)})},Hi=()=>ye(void 0,null,function*(){var Fn,Be;if((0,Bt.Rm)()&&!((Fn=Oe.AssistantObject.hack)!=null&&Fn.can_publish)){ie.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"),Jn(!1);return}const zn=ge({},tr.getFieldsValue());if(zn.end_time<=zn.publish_time){ie.ZP.info("\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u5927\u4E8E\u6216\u7B49\u4E8E\u53D1\u5E03\u65F6\u95F4"),Jn(!1);return}if((Fe==null?void 0:Fe.length)<=0&&!ke&&sr.length>0){ie.ZP.info("\u53D1\u5E03\u73ED\u7EA7\u4E0D\u80FD\u4E3A\u7A7A"),Jn(!1);return}if(Fi.reduce((Ki,oi)=>Ki+oi)===0&&!xi){ie.ZP.info("\u7B80\u5355\u9002\u4E2D\u56F0\u96BE\u9898\u6570\u76F8\u52A0\u4E0D\u80FD\u4E3A0"),Jn(!1);return}let Ai={homework_ids:[...Oe.actionTabs.selectArrs],group_ids:Fe.length>0?Fe.map(Ki=>Ki.id):(Be=Oe.detailCommonHomeworksList)==null?void 0:Be.course_groups,end_time:Kt()(zn.end_time).format("YYYY-MM-DD HH:mm"),publish_time:Kt()(zn.publish_time).format("YYYY-MM-DD HH:mm"),difficult_settings:Fi==null?void 0:Fi.map(Ki=>Ki),send_type:xi?"0":"1",unified_setting:!Fe.length};if(Jn(!0),(yield(0,Je.ZP)(`/api/courses/${fr.coursesId}/homework_commons/publish_with_homework_list_position.json`,{method:"post",body:ge({},Ai)})).status===0){if(Jn(!1),(0,nt.L9)(["\u6559\u5B66\u8BFE\u5802","\u56FE\u6587\u4F5C\u4E1A","\u7ACB\u5373\u53D1\u5E03"]),ie.ZP.success("\u53D1\u5E03\u6210\u529F"),Sn({type:"classroomList/setActionTabs",payload:{key:"\u6E05\u9664\u9009\u62E9\u6570\u636E"}}),Yt){Yt();return}fn.onCallback&&fn.onCallback(),mn(),localStorage.getItem("Noviceguide")==="0"||Sn({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 Jn(!1)}),qn=()=>{yr(1),hr([]),Ne([])},te=zi>er*Et,[be,Jn]=(0,yt.useState)(!1);return mt.createElement(we.default,{width:600,confirmLoading:be,centered:!0,title:"\u53D1\u5E03\u4F5C\u4E1A",open:Oe.actionTabs.key==="\u7ACB\u5373\u53D1\u5E03",okText:"\u53D1\u5E03\u4F5C\u4E1A",cancelText:"\u6682\u4E0D\u53D1\u5E03",onOk:Hi,onCancel:()=>{if(qn(),Sn({type:"classroomList/setActionTabs",payload:{}}),Yt){Yt();return}mn()}},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'),sr&&mt.createElement(ee.default,{form:tr},mt.createElement("div",{style:{paddingLeft:0}},Oe.actionTabs.type===2&&mt.createElement(Ee.Z,{style:{marginBottom:"10px"}},mt.createElement("span",{className:"mr5"},"\u8BD5\u9898\u53D1\u9001:"),mt.createElement(jt.ZP.Group,{value:xi,disabled:!((di=(Pn=(jn=Oe.actionTabs)==null?void 0:jn.selectArrsAll)==null?void 0:Pn[0])!=null&&di.can_publish),onChange:Fn=>{yi(Fn.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"))),!xi&&mt.createElement(Ee.Z,{style:{marginBottom:"10px"}},mt.createElement("span",{style:{marginRight:65}}),mt.createElement("span",null,"\u7B80\u5355\u9898\u6570 ",mt.createElement(ce.Z,{value:Fi[0],onChange:Fn=>{Fi[0]=Fn,Xe([...Fi])},min:0,disabled:!((Ye=(ve=(Re=Oe.actionTabs)==null?void 0:Re.selectArrsAll)==null?void 0:ve[0])!=null&&Ye.can_publish),placeholder:`\u6700\u5927${(At=(Ot=(Cn=(mi=Oe.actionTabs)==null?void 0:mi.selectArrsAll)==null?void 0:Cn[0])==null?void 0:Ot.difficult_count)==null?void 0:At[0]}`,max:(kt=(Vt=(Nt=(wt=Oe.actionTabs)==null?void 0:wt.selectArrsAll)==null?void 0:Nt[0])==null?void 0:Vt.difficult_count)==null?void 0:kt[0],style:{width:60}})),mt.createElement("span",{style:{margin:"0px 40px"}},"\u9002\u4E2D\u9898\u6570 ",mt.createElement(ce.Z,{value:Fi[1],onChange:Fn=>{Fi[1]=Fn,Xe([...Fi])},min:0,disabled:!((dn=(nn=($t=Oe.actionTabs)==null?void 0:$t.selectArrsAll)==null?void 0:nn[0])!=null&&dn.can_publish),max:(Qe=(Ce=(De=(En=Oe.actionTabs)==null?void 0:En.selectArrsAll)==null?void 0:De[0])==null?void 0:Ce.difficult_count)==null?void 0:Qe[1],placeholder:`\u6700\u5927${(Tn=(ai=(Nn=(un=Oe.actionTabs)==null?void 0:un.selectArrsAll)==null?void 0:Nn[0])==null?void 0:ai.difficult_count)==null?void 0:Tn[1]}`,style:{width:60}})),mt.createElement("span",null,"\u56F0\u96BE\u9898\u6570 ",mt.createElement(ce.Z,{value:Fi[2],onChange:Fn=>{Fi[2]=Fn,Xe([...Fi])},min:0,disabled:!((Ue=(Ie=(bn=Oe.actionTabs)==null?void 0:bn.selectArrsAll)==null?void 0:Ie[0])!=null&&Ue.can_publish),placeholder:`\u6700\u5927${(li=(Xn=(Ln=(cn=Oe.actionTabs)==null?void 0:cn.selectArrsAll)==null?void 0:Ln[0])==null?void 0:Xn.difficult_count)==null?void 0:li[2]}`,max:(_i=(ti=(gn=(Ci=Oe.actionTabs)==null?void 0:Ci.selectArrsAll)==null?void 0:gn[0])==null?void 0:ti.difficult_count)==null?void 0:_i[2],style:{width:60}}))),mt.createElement(Ee.Z,{className:"mt30",align:"middle"},mt.createElement(Ve.Z,null,mt.createElement(ee.default.Item,{name:"publish_time",label:"\u53D1\u5E03\u65F6\u95F4"},mt.createElement(xe.default,{style:{width:170,marginRight:"25px"},disabledDate:Fn=>(0,gt.Q8)(Fn,se),disabledTime:Fn=>(0,gt.d0)(Fn),placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:Kt()((0,nt.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1}))),mt.createElement(Ve.Z,{className:"ml20"},mt.createElement(ee.default.Item,{name:"end_time",label:"\u622A\u6B62\u65F6\u95F4"},mt.createElement(xe.default,{style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:Kt()((0,nt.U6)(),"HH:mm")},disabledDate:Fn=>(0,gt.Q8)(Fn,se,tr.getFieldValue("publish_time")),disabledTime:Fn=>(0,gt.d0)(Fn,tr.getFieldValue("publish_time")),format:"YYYY-MM-DD HH:mm",allowClear:!1})))),Oe.actionTabs.type===2&&mt.createElement(Ee.Z,{style:{marginBottom:"10px"}},mt.createElement("span",{className:"mr5"},"\u53D1\u5E03\u8BBE\u7F6E:"),mt.createElement(jt.ZP.Group,{value:ke,onChange:Fn=>{sn(Fn.target.value),Ne([])}},mt.createElement(jt.ZP,{value:!0,disabled:!Oe.actionTabs.manage_all_group},"\u7EDF\u4E00\u53D1\u5E03"),mt.createElement(jt.ZP,{className:"ml20",disabled:sr.length<=0,value:!1},"\u5206\u73ED\u53D1\u5E03"))),sr.length<=0&&Oe.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"')),(Oe.actionTabs.type===1||!ke)&&sr.length>0&&mt.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"}},mt.createElement("span",{style:{flex:1}},mt.createElement(Lt.default,{checked:Fe.length===sr.length,onChange:Fn=>{Fe.length===sr.length?Ne([]):Ne(sr.filter(Be=>!Be.is_published))}},"\u5168\u9009")," "),mt.createElement("span",{style:{width:16}}),mt.createElement("span",{style:{flex:1}},"\u5DF2\u9009\u62E9",Fe.length||0,"\u4E2A\u5206\u73ED")),(Oe.actionTabs.type===1||!ke)&&sr.length>0&&mt.createElement(dt.Z,{data:sr,selectedRowKeys:Fe,setSelectedRowKeys:Ne})))};pi.Z=(0,et.connect)(({classroomList:wn})=>({classroomList:wn}))(He)},48716:function(Qn,pi,Dt){"use strict";Dt.d(pi,{Q8:function(){return Yt},d0:function(){return fn},w6:function(){return se}});var yt=Dt(59301),ee=Dt(16326),ie=Dt(82326),we=Dt(6767),Ee=Dt(62957),jt=Dt(47889),ce=Dt(77019),Ve=Dt(5269),xe=Dt(25399),Lt=Dt(62673),ze=Dt(99571),Kt=Dt(61186),Je=Dt.n(Kt),Bt=Dt(48790),nt=Dt(38986),et=Dt(89392),dt=Dt.n(et),lt=Dt(51257),gt=Dt(22982),mt=Dt(25690),St=Dt(43155),Mt=Dt(40197),It=Dt(59229),Zt=Dt(3039),oe=Dt(75736),Gt=Dt(59301),_t=Object.defineProperty,ge=Object.defineProperties,me=Object.getOwnPropertyDescriptors,Pe=Object.getOwnPropertySymbols,ye=Object.prototype.hasOwnProperty,He=Object.prototype.propertyIsEnumerable,wn=(Pn,di,Re)=>di in Pn?_t(Pn,di,{enumerable:!0,configurable:!0,writable:!0,value:Re}):Pn[di]=Re,ln=(Pn,di)=>{for(var Re in di||(di={}))ye.call(di,Re)&&wn(Pn,Re,di[Re]);if(Pe)for(var Re of Pe(di))He.call(di,Re)&&wn(Pn,Re,di[Re]);return Pn},Oe=(Pn,di)=>ge(Pn,me(di)),Sn=(Pn,di,Re)=>new Promise((ve,Ye)=>{var mi=At=>{try{Ot(Re.next(At))}catch(wt){Ye(wt)}},Cn=At=>{try{Ot(Re.throw(At))}catch(wt){Ye(wt)}},Ot=At=>At.done?ve(At.value):Promise.resolve(At.value).then(mi,Cn);Ot((Re=Re.apply(Pn,di)).next())});function se(Pn,di){const Re=[];for(let ve=Pn;ve<di;ve++)Re.push(ve);return Re}const Yt=(Pn,di,Re)=>{const ve=Pn<Je()().startOf("day"),Ye=Pn>Je()(di).endOf("day"),mi=Pn<Je()(Re).startOf("day");return di?Re?Je()()<=Je()(Re)?mi||Ye:ve||Ye:Pn&&ve||Ye:Re&&Je()()<=Je()(Re)?mi:ve},fn=(Pn,di)=>{const Re=parseInt(Je()(Pn).format("HH")),ve=parseInt(Je()().format("HH")),Ye=parseInt(Je()().format("mm"));if(!Pn)return{disabledHours:()=>se(0,ve),disabledMinutes:()=>se(0,Ye)};if(di){const mi=parseInt(Je()(di).format("HH")),Cn=parseInt(Je()(di).format("mm"));return Je()(Pn).isSame(Je()(di),"day")?{disabledHours:()=>se(0,mi),disabledMinutes:()=>Re<=mi?se(0,Cn):[]}:void 0}if(Je()(Pn).isSame(Je()(),"day"))return{disabledHours:()=>se(0,ve),disabledMinutes:()=>Je()(Pn).isSame(Je()(),"hour")&&Re<=ve?se(0,Ye):[]}},_n=(Pn,di)=>Pn==null?void 0:Pn.map(Re=>{var ve;return(ve=di==null?void 0:di.find(Ye=>Ye.value===Re))==null?void 0:ve.id}),{RangePicker:In}=ee.default,{Option:on}=ie.default,jn=({shixunHomeworks:Pn,loading:di,dispatch:Re,classroomList:ve,user:Ye})=>{var mi,Cn,Ot,At,wt,Nt,Vt,kt,$t;const nn=(0,mt.useParams)(),{workSetting:dn,workList:En,shixunWorkList:De,headerInfo:Ce,changeData:Qe}=Pn,[un,Nn]=(0,yt.useState)(!1),[ai,Tn]=(0,yt.useState)(!1);let[bn,Ie]=(0,yt.useState)([]),[Ue,cn]=(0,yt.useState)([]),[Ln,Xn]=(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[li,Ci]=(0,yt.useState)({}),[gn,ti]=(0,yt.useState)({});(0,yt.useEffect)(()=>()=>{Ie([])},[]),(0,yt.useEffect)(()=>{Nn(!(0,Bt.GJ)())},[(0,Bt.GJ)()]);const _i=()=>{Re({type:"shixunHomeworks/getWorkSetting",payload:ln({},nn)})};(0,yt.useEffect)(()=>{if(!(dn!=null&&dn.course_id))return;Object.keys(Ln).map(function(Gn){Ln[Gn]=dn[Gn]}),(!Ln.allow_late||!Ln.unified_late)&&(Ln.late_penalty=20,Ln.penalty_type=St.Q.Percent),Ln.unified_setting||(Ln.unified_late=!1,Ln.unified_anonymous_comment=!1,Ln.unified_anonymous_appeal=!1),bn=JSON.parse(JSON.stringify(dn.group_settings.map(Gn=>Oe(ln({},Gn),{group_name:[Gn.group_name]})).filter(Gn=>Gn.publish_time!==null))),Ue=JSON.parse(JSON.stringify(dn.allow_late_settings.map(Gn=>Oe(ln({},Gn),{group_name:[Gn.group_name]})).filter(Gn=>Gn.late_time!==null))),Xn(ln({},Ln));const Bn=(0,lt.QE)((bn==null?void 0:bn.length)>0?bn:[]);Ie([...Bn]),(Ue==null?void 0:Ue.length)<=0?cn([{penalty_type:St.Q.Percent,late_penalty:20}]):cn([...Ue])},[dn]);const fr=()=>Sn(void 0,null,function*(){var Bn,Gn;if(((Bn=Ye==null?void 0:Ye.userInfo)==null?void 0:Bn.user_status)===2){(0,Mt.Rd)();return}const fi=JSON.parse(JSON.stringify(Ln));if(fi.challenge_settings.filter(Kn=>!Kn.hide),fi.categoryId=nn.categoryId,(Gn=fi.challenge_settings)!=null&&Gn.every(Kn=>!Kn.checked)){we.ZP.warning("\u5173\u5361\u4E0D\u80FD\u5168\u90E8\u8BBE\u7F6E\u4E3A\u53EF\u4E0D\u505A");return}if(console.log(bn),!Ln.unified_setting)bn=bn==null?void 0:bn.map(Kn=>{var rn;if(!Kn.publish_time||!Kn.end_time)throw we.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(!Kn.group_name)throw we.ZP.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return Kn.group_name=typeof(Kn==null?void 0:Kn.group_name)=="string"?[Kn==null?void 0:Kn.group_name]:Kn==null?void 0:Kn.group_name,Kn.group_id=(rn=dn.group_settings)==null?void 0:rn.filter(Yn=>{var Fe;return(Fe=Kn==null?void 0:Kn.group_name)==null?void 0:Fe.includes(Yn.group_name)}).map(Yn=>Yn.group_id||Yn.id).toString().split(","),Kn});else if(!Ln.publish_time||!Ln.end_time)throw we.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(fi.group_settings=bn,Ln.allow_late)if(Ln.unified_late){if(Ln.late_penalty===null||Ln.late_penalty===void 0||Ln.late_penalty<0||Ln.late_penalty>100)throw we.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(!Ln.late_time)throw we.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 Ue=Ue==null?void 0:Ue.map(Kn=>{var rn,Yn;if(Kn.late_penalty===null||Kn.late_penalty===void 0||Kn.late_penalty<0||Kn.late_penalty>100)throw we.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(!Kn.late_time)throw we.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(!Kn.group_name)throw we.ZP.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return Kn.group_name=typeof(Kn==null?void 0:Kn.group_name)=="string"?[Kn==null?void 0:Kn.group_name]:Kn==null?void 0:Kn.group_name,Kn.group_id=(Yn=(rn=Kn==null?void 0:Kn.group_name)==null?void 0:rn.map(Fe=>{var Ne,ke;let sn=(ke=(Ne=dn.group_settings)==null?void 0:Ne.filter(xi=>(xi==null?void 0:xi.group_name)===Fe))==null?void 0:ke[0];return sn==null?void 0:sn.group_id}))==null?void 0:Yn.toString().split(","),Kn}),fi.allow_late_settings=Ue;let ci=yield(0,oe.Tr)({homework_common_ids:[parseInt(nn.categoryId)],course_id:nn.coursesId,type:"homework_common"});(ci==null?void 0:ci.student_count)===0?tr(fi):(ti(fi),Ci(ci))}),tr=Bn=>{var Gn;if(Bn.total_score===null){we.ZP.warning("\u603B\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A");return}if(Bn!=null&&Bn.work_efficiency&&Bn.eff_score===null){we.ZP.warning("\u6548\u7387\u5206\u4E0D\u80FD\u4E3A\u7A7A");return}const fi=Bn.challenge_settings.reduce((rn,Yn)=>rn+Number(Yn.challenge_score),0);if((fi==null?void 0:fi.toFixed(10))!==((Gn=Bn.total_score-Bn.eff_score)==null?void 0:Gn.toFixed(10))){we.ZP.warning(`\u6548\u7387\u5206\u52A0\u5173\u5361\u4EFB\u52A1\u603B\u5206\u5FC5\u987B\u7B49\u4E8E\u603B\u5206\u503C\uFF1A${Bn.total_score}\u5206`);return}const ci={shixun_evaluation:Bn.shixun_evaluation,challenge_settings:Bn.challenge_settings};let Kn=()=>{var rn;const Yn=()=>Sn(void 0,null,function*(){Tn(!0),(yield(0,nt.ZP)(`/api/homework_commons/${nn.categoryId}/publish_setting.json`,{method:"post",body:ln({},Bn)})).status===0&&(we.ZP.success("\u66F4\u65B0\u6210\u529F"),_i(),Re({type:"shixunHomeworks/getShixunWorkHeadInfo",payload:ln({},nn)})),Tn(!1)});!(0,et.isEqual)(Qe,ci)&&!((rn=Ce==null?void 0:Ce.homework_status)!=null&&rn.includes("\u672A\u53D1\u5E03"))?Ee.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:Yn}):Yn()};dn!=null&&dn.high_resources_consume&&!(dn!=null&&dn.high_resources_consume_permission)?Re({type:"classroomList/setActionTabs",payload:{key:"\u6388\u6743\u4F7F\u7528",id:nn.coursesId,type:"shixun",type_id:nn.categoryId,name:dn.homework_name,fn:()=>{Kn()}}}):Kn()},er=(Bn,Gn,fi="group_id")=>{var ci;return Gn?Gn.find(Kn=>Kn[fi]===Bn):(ci=dn==null?void 0:dn.group_settings)==null?void 0:ci.find(Kn=>Kn.group_id[0]===Bn)},yr=(dn==null?void 0:dn.allow_late)||(dn==null?void 0:dn.anonymous_comment),sr=Bn=>{var Gn,fi;const ci=er(Bn,dn==null?void 0:dn.allow_late_settings,"id"),Kn=er(Bn,dn==null?void 0:dn.anonymous_comment_settings),rn=er(Bn);return(dn==null?void 0:dn.allow_late)&&ci&&Je()(ci==null?void 0:ci.late_time)<=Je()()||(dn==null?void 0:dn.anonymous_comment)&&Kn&&(Kn==null?void 0:Kn.evaluation_start)!==null||((fi=(Je()(rn==null?void 0:rn.end_time)<=Je()()&&((Gn=dn==null?void 0:dn.allow_late_settings)==null?void 0:Gn.filter(Yn=>Yn.group_id.includes(Bn))))[0])==null?void 0:fi.late_time)!=null},hr=(0,yt.useMemo)(()=>(dn==null?void 0:dn.allow_late)||(dn==null?void 0:dn.all_group_late),[dn,Ce]),zi=dn==null?void 0:dn.anonymous_comment,gr=Bn=>{if(!Bn)return!1;const Gn=er(Bn,dn==null?void 0:dn.anonymous_comment_settings);return(dn==null?void 0:dn.anonymous_comment)&&Gn&&(Gn==null?void 0:Gn.evaluation_start)!==null},Et=(Bn,Gn)=>{var fi,ci,Kn,rn,Yn;Bn!=null&&Bn.group_id||(Bn.group_id=_n(Bn==null?void 0:Bn.group_name,dn==null?void 0:dn.group_settings)),Re({type:"classroomList/setActionTabs",payload:{key:"\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",data:Bn,index:Gn,rangePickerDisabled:(ci=(fi=Bn==null?void 0:Bn.group_id)==null?void 0:fi[0])!=null&&ci.publish_time?un||(Je()()<=Je()((rn=er((Kn=Bn==null?void 0:Bn.group_id)==null?void 0:Kn[0]))==null?void 0:rn.publish_time)?!1:[!0,sr((Yn=Bn==null?void 0:Bn.group_id)==null?void 0:Yn[0])]):!1,disabledDate:dn==null?void 0:dn.course_end_date}})};return Gt.createElement("section",{className:gt.Z.form},Gt.createElement("div",{className:gt.Z.title},"\u4F5C\u4E1A\u53D1\u5E03",Gt.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")),Gt.createElement("div",null,Gt.createElement("div",{style:{background:"#F6F7F9",padding:"13px 30px",display:"flex",alignItems:"center"}},Gt.createElement(jt.ZP.Group,{disabled:un||!((mi=Ce==null?void 0:Ce.homework_status)!=null&&mi.includes("\u672A\u53D1\u5E03"))||(0,Bt.Rm)()&&!((Cn=ve.AssistantObject.practice)!=null&&Cn.can_publish),value:Ln.unified_setting,onChange:Bn=>{var Gn;if(!((Gn=Ce==null?void 0:Ce.homework_status)!=null&&Gn.includes("\u672A\u53D1\u5E03"))){we.ZP.error("\u5DF2\u53D1\u5E03\uFF0C\u4E0D\u80FD\u518D\u4FEE\u6539\u7EDF\u4E00\u8BBE\u7F6E");return}if(Ln.unified_setting=!Ln.unified_setting,Ln.unified_setting||(Ln.unified_late=!1,cn([{late_penalty:5}])),Xn(Object.assign({},Ln)),Ln.unified_setting===!1&&bn==""){Ie(bn.concat({}));return}Ln.unified_setting&&(Ie([]),cn([{late_penalty:5}]))}},Gt.createElement(jt.ZP,{value:!0,disabled:un||!(dn!=null&&dn.manage_all_group),style:{marginRight:"50px"}},"\u7EDF\u4E00\u53D1\u5E03"),Gt.createElement(jt.ZP,{disabled:un||!((Ot=dn==null?void 0:dn.group_settings)!=null&&Ot.length),value:!1},"\u5206\u73ED\u53D1\u5E03")),((At=dn==null?void 0:dn.group_settings)==null?void 0:At.length)===0&&Gt.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")),Ln.unified_setting&&Gt.createElement("div",{style:{display:"flex",color:"#666666",background:"#F6F7F9",padding:"5px 30px",height:"50px",marginTop:"1px"}},Gt.createElement(ce.Z,{align:"middle"},Gt.createElement(Ve.Z,{style:{marginLeft:"23px"}},"\u53D1\u5E03\u65F6\u95F4"),Gt.createElement(Ve.Z,{className:"ml10"},Gt.createElement(ee.default,{size:"large",disabled:un||!((wt=Ce==null?void 0:Ce.homework_status)!=null&&wt.includes("\u672A\u53D1\u5E03")||(Nt=Ce==null?void 0:Ce.homework_status)!=null&&Nt.includes("\u672A\u5F00\u59CB"))||(0,Bt.Rm)()&&!((Vt=ve.AssistantObject.practice)!=null&&Vt.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:Bn=>Yt(Bn,dn==null?void 0:dn.course_end_date),disabledTime:Bn=>fn(Bn),value:Ln.publish_time?Je()(Ln.publish_time):"",onChange:(Bn,Gn)=>{Ln.publish_time=Gn,(Ln.end_time==""||!Ln.end_time)&&Ln.unified_setting&&(Ln.end_time=Je()(Bn).add(7,"days").format("YYYY-MM-DD HH:mm:ss")),Xn(Object.assign({},Ln))}}))),Gt.createElement(ce.Z,{align:"middle",className:"pl30"},Gt.createElement(Ve.Z,null,"\u622A\u6B62\u65F6\u95F4"),Gt.createElement(Ve.Z,{className:"ml10"},Gt.createElement(ee.default,{size:"large",style:{width:170},allowClear:!1,placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:Je()((0,lt.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:(dn==null?void 0:dn.allow_late)&&(dn==null?void 0:dn.homework_status.includes("\u5DF2\u622A\u6B62"))||un||(dn==null?void 0:dn.allow_late)&&Je()()>=Je()(dn==null?void 0:dn.end_time)||(0,Bt.Rm)()&&!((kt=ve.AssistantObject.practice)!=null&&kt.can_publish),disabledDate:Bn=>Yt(Bn,dn==null?void 0:dn.course_end_date,Ln.publish_time),disabledTime:Bn=>fn(Bn,Ln.publish_time),value:Ln.end_time?Je()(Ln.end_time):"",onChange:(Bn,Gn)=>{Ln.end_time=Gn,Xn(Object.assign({},Ln))}})))),!Ln.unified_setting&&(bn==null?void 0:bn.length)>0&&Gt.createElement(ce.Z,{style:{display:"flex",color:"#666666",background:"#F6F7F9",padding:"5px 30px",marginTop:"1px"}},bn&&bn.map(function(Bn,Gn){var fi,ci,Kn,rn,Yn,Fe,Ne;return Gt.createElement(Ve.Z,{span:24,key:Gn},Gt.createElement(ce.Z,{gutter:[8,16],style:{display:"flex",alignItems:"center",marginBottom:Gn==(bn==null?void 0:bn.length)-1?"0px":"10px"}},Gt.createElement("div",{style:{minWidth:85,marginRight:"15px",textAlign:"right"}},"\u53D1\u5E03\u89C4\u5219",Gn+1),Gt.createElement(ie.default,{disabled:un||((fi=Ce==null?void 0:Ce.homework_status)!=null&&fi.includes("\u672A\u53D1\u5E03")&&Bn.id||Je()()<Je()(Bn==null?void 0:Bn.publish_time)?!1:!!(Bn!=null&&Bn.publish_time))||(0,Bt.Rm)()&&!((ci=ve.AssistantObject.practice)!=null&&ci.can_publish),mode:"multiple",className:gt.Z.multiple_select,style:{width:"250px"},value:Bn.group_name,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",onChange:ke=>{var sn;if((0,Bt.Rm)()&&!((sn=ve.AssistantObject.practice)!=null&&sn.can_publish)){we.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[Gn].group_name=ke,bn[Gn].group_id=Bn.group_id;const xi=(0,et.flattenDeep)(bn.map(Fi=>Fi.group_name)),yi=Ue.map(Fi=>{let Xe=(Fi==null?void 0:Fi.group_name)||[];return Oe(ln({},Fi),{group_name:(0,et.remove)(Xe,Dn=>xi.includes(Dn))})});cn(yi),Ie(bn.slice())},maxTagCount:4,maxTagPlaceholder:ke=>Gt.createElement("div",{style:{cursor:"pointer"},onClick:()=>Et(Bn,Gn)},"+",ke==null?void 0:ke.length)},dn.group_settings&&dn.group_settings.map(function(ke){if(!bn.map(xi=>xi.group_name).flat().includes(ke.group_name))return Gt.createElement(on,{value:ke.group_name,key:ke.id},ke.group_name)})),Gt.createElement("div",{className:"ml20"},Gt.createElement(In,{size:"large",ranges:{\u6B64\u523B:[Bn.publish_time?Je()(Bn.publish_time):Je()(),Je()()]},allowClear:!1,disabled:un||(Je()()<=Je()((rn=er((Kn=Bn==null?void 0:Bn.group_id)==null?void 0:Kn[0]))==null?void 0:rn.publish_time)?!1:[!0,sr((Yn=Bn==null?void 0:Bn.group_id)==null?void 0:Yn[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:ke=>Yt(ke,dn==null?void 0:dn.course_end_date),disabledTime:ke=>fn(ke),showTime:{showNow:!0,format:"HH:mm",defaultValue:[Je()((0,lt.U6)(),"HH:mm"),Je()((0,lt.U6)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:[Bn.publish_time?Je()(Bn.publish_time):void 0,Bn.end_time?Je()(Bn.end_time):void 0],onChange:(ke,sn)=>{var xi;if((0,Bt.Rm)()&&!((xi=ve.AssistantObject.practice)!=null&&xi.can_publish)){we.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[Gn].publish_time=sn[0],!Bn.end_time&&sn[0]?bn[Gn].end_time=Je()(sn[0]).add(7,"days"):bn[Gn].end_time=sn[1],Ie([...bn])},onCalendarChange:(ke,sn,xi)=>{if(sn!=null&&sn[0]&&!sn[1]){const yi=Je()(sn[0]).add(7,"days");bn[Gn].publish_time=sn[0],bn[Gn].end_time=yi,Ie([...bn])}}})),!un&&Gt.createElement("div",{style:{display:"flex",width:"50px"}},((Fe=Bn==null?void 0:Bn.group_id)==null?void 0:Fe.length)>1&&Gt.createElement(xe.Z,{title:"\u89C4\u5219\u62C6\u5206"},Gt.createElement("i",{className:"iconfont icon-chaifen ml10",style:{cursor:"pointer",color:"#3061d0"},onClick:()=>Et(Bn,Gn)})),bn.length<((Ne=dn==null?void 0:dn.group_settings)==null?void 0:Ne.length)&&Gt.createElement("i",{className:"iconfont icon-zengjia1 ml10 mr10",style:{cursor:"pointer",color:"#00B187"},onClick:()=>{var ke;if((0,Bt.Rm)()&&!((ke=ve.AssistantObject.practice)!=null&&ke.can_publish)){we.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}Ie(bn.concat({}))}}),((Bn==null?void 0:Bn.publish_time)&&Je()()<Je()(Bn==null?void 0:Bn.publish_time)||!(Bn!=null&&Bn.publish_time))&&Gn!=0&&Gt.createElement("i",{className:"iconfont icon-shanjian1",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{const ke=(0,et.cloneDeep)(Ue);ke.forEach((sn,xi)=>{sn.group_name&&(sn.group_name=sn.group_name.filter(yi=>{var Fi;return!((Fi=bn[Gn].group_name)!=null&&Fi.includes(yi))}))}),bn=bn.filter((sn,xi)=>Gn!==xi),cn(ke),Ie(bn.slice()),setTimeout(()=>Ie(bn.slice()),10)}}))))}))),Gt.createElement(ce.Z,null,Gt.createElement(Ve.Z,null,Gt.createElement("div",{className:gt.Z.title,style:{marginTop:"30px"}},"\u8865\u4EA4\u8BBE\u7F6E",Gt.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"))),Gt.createElement(Ve.Z,{span:24,style:{background:"#F6F7F9",padding:"13px 30px",display:"flex",alignItems:"center"}},Gt.createElement(Lt.default,{checked:Ln.allow_late,disabled:un||hr,onChange:Bn=>{var Gn;if((0,Bt.Rm)()&&!((Gn=ve.AssistantObject.practice)!=null&&Gn.can_late)){we.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.target.checked&&Ee.default.warning({title:"\u5F00\u542F\u8865\u4EA4\u63D0\u793A",centered:!0,width:480,content:Gt.createElement("div",{style:{padding:10,background:"#f5f6f9"}},Gt.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"),Gt.createElement("div",null,"2.\u8865\u4EA4\u622A\u6B62\u65F6\u95F4\u5FC5\u987B\u665A\u4E8E\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\uFF1B"),Gt.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"))}),Ln.allow_late=!Ln.allow_late,Ue==""&&cn([{late_penalty:5}]),Xn(Object.assign({},Ln))}},Gt.createElement("strong",null,"\u5F00\u542F\u8865\u4EA4")))),(Ln==null?void 0:Ln.allow_late)&&Gt.createElement("div",{style:{background:"#F6F7F9",padding:"10px 30px",marginTop:"1px",color:"#666666"}},Gt.createElement("div",{style:{display:"flex"}},Gt.createElement("div",{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u65B9\u5F0F"),Gt.createElement(jt.ZP.Group,{style:{marginLeft:"20px"},disabled:un||(dn==null?void 0:dn.anonymous_comment)||(dn==null?void 0:dn.allow_late),value:Ln.unified_late,onChange:Bn=>{var Gn;if((0,Bt.Rm)()&&!((Gn=ve.AssistantObject.practice)!=null&&Gn.can_late)){we.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}Ln.unified_late=Bn.target.value,Ue==""&&!Bn.target.value&&cn([{penalty_type:St.Q.Percent,late_penalty:20}]),Xn(ln({},Ln))}},(Ln==null?void 0:Ln.unified_setting)&&Gt.createElement(jt.ZP,{value:!0,disabled:!(dn!=null&&dn.manage_all_group),style:{marginRight:"50px"}},"\u7EDF\u4E00\u8865\u4EA4"),(($t=dn==null?void 0:dn.group_settings)==null?void 0:$t.length)>0&&Gt.createElement(jt.ZP,{value:!1},"\u5206\u73ED\u8865\u4EA4"))),Ln!=null&&Ln.unified_late?Gt.createElement(Gt.Fragment,null,Gt.createElement(ce.Z,{align:"middle",style:{marginTop:"10px"}},Gt.createElement(Ve.Z,{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u6263\u5206"),Gt.createElement(Ve.Z,{className:"ml20"},Gt.createElement(St.Z,{disabled:un||zi,value:{type:Ln.penalty_type,inputValue:Ln.late_penalty},onChange:Bn=>{var Gn;if((0,Bt.Rm)()&&!((Gn=ve.AssistantObject.practice)!=null&&Gn.can_late)){we.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}Xn(Oe(ln({},Ln),{late_penalty:Bn.inputValue,penalty_type:Bn.type}))}})),Gt.createElement(Ve.Z,{flex:"1",className:"ml5"},Gt.createElement("span",{className:"c-grey-c ml10"},Ln.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)"))),Gt.createElement(ce.Z,{align:"middle",style:{marginTop:"15px"}},Gt.createElement(Ve.Z,{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4"),Gt.createElement(Ve.Z,{className:"ml20"},Gt.createElement(ee.default,{size:"large",allowClear:!1,style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:Je()((0,lt.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:un||zi,value:Ln.late_time?Je()(Ln.late_time):"",disabledDate:Bn=>Yt(Bn,dn==null?void 0:dn.course_end_date),onChange:(Bn,Gn)=>{var fi;if((0,Bt.Rm)()&&!((fi=ve.AssistantObject.practice)!=null&&fi.can_late)){we.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}Ln.late_time=Gn,Xn(Object.assign({},Ln))}})))):Ue.map(function(Bn,Gn){var fi;return Gt.createElement(Ve.Z,{span:24,key:Gn},Gt.createElement(ce.Z,{style:{display:"flex",alignItems:"center",marginTop:"10px"}},Gt.createElement("div",{style:{width:"85px",marginLeft:"27px",textAlign:"right"}},"\u8865\u4EA4\u89C4\u5219",Gn+1),Gt.createElement(ie.default,{disabled:un||!((fi=Ce==null?void 0:Ce.homework_status)!=null&&fi.includes("\u672A\u53D1\u5E03"))&&Bn.id||(dn==null?void 0:dn.anonymous_comment),mode:"multiple",className:gt.Z.multiple_select,style:{width:"212px",marginLeft:"18px"},value:typeof Bn.group_name=="string"?[Bn.group_name]:Bn.group_name,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",onChange:ci=>{var Kn;if((0,Bt.Rm)()&&!((Kn=ve.AssistantObject.practice)!=null&&Kn.can_late)){we.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}Ue[Gn].group_name=ci,Ue[Gn].group_id=Bn.group_id,cn(Ue.slice())}},dn.group_settings&&dn.group_settings.map(function(ci){const Kn=Ue.map(Yn=>Yn.group_name).flat(),rn=bn.map(Yn=>Yn.group_name).flat();if(Ln!=null&&Ln.unified_setting){if(!Kn.includes(ci.group_name))return Gt.createElement(on,{value:ci.group_name,key:ci.id},ci.group_name)}else if(rn.includes(ci.group_name)&&!Kn.includes(ci.group_name))return Gt.createElement(on,{value:ci.group_name,key:ci.id},ci.group_name)})),Gt.createElement("div",{className:"ml20 mr10"},"\u8865\u4EA4\u6263\u5206"),Gt.createElement(St.Z,{disabled:un||gr(Bn.id),value:{type:Bn.penalty_type,inputValue:Bn.late_penalty},onChange:ci=>{var Kn;if((0,Bt.Rm)()&&!((Kn=ve.AssistantObject.practice)!=null&&Kn.can_late)){we.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}Ue[Gn].late_penalty=ci.inputValue,Ue[Gn].penalty_type=ci.type,cn([...Ue])}}),Gt.createElement("div",{className:"ml20 mr10"},"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4"),Gt.createElement(ee.default,{size:"large",disabled:un||gr(Bn.id),style:{width:225},showTime:{format:"HH:mm",defaultValue:Je()((0,lt.U6)(),"HH:mm")},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",disabledDate:ci=>Yt(ci,dn==null?void 0:dn.course_end_date),format:"YYYY-MM-DD HH:mm",value:Bn!=null&&Bn.late_time?Je()(Bn.late_time):void 0,onChange:(ci,Kn)=>{var rn;if((0,Bt.Rm)()&&!((rn=ve.AssistantObject.practice)!=null&&rn.can_late)){we.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}Ue[Gn].late_time=Kn,cn([...Ue])}}),!un&&Gt.createElement("div",{style:{display:"flex",width:"50px"}},Gt.createElement("i",{className:"iconfont icon-zengjia1 ml10 mr10",style:{cursor:"pointer",color:"#00B187"},onClick:()=>{var ci;if((0,Bt.Rm)()&&!((ci=ve.AssistantObject.practice)!=null&&ci.can_late)){we.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}cn(Ue.concat({penalty_type:St.Q.Percent,late_penalty:20}))}}),Gn>0&&!Bn.id&&Gt.createElement("i",{className:"iconfont icon-shanjian1",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{var ci;if((0,Bt.Rm)()&&!((ci=ve.AssistantObject.practice)!=null&&ci.can_late)){we.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}Ue=Ue.filter((Kn,rn)=>Gn!==rn),cn(Ue.slice()),setTimeout(()=>cn(Ue.slice()),10)}}))))})),!un&&Gt.createElement(Gt.Fragment,null,Gt.createElement(ze.ZP,{type:"primary",size:"large",loading:ai,style:{width:"138px",marginTop:"30px"},onClick:()=>fr()},"\u4FDD\u5B58")),Gt.createElement(It.Z,{onConfirm:(Bn,Gn)=>{bn.splice(Bn,0,...Gn),bn.splice(Bn+Gn.length,1);const fi=(0,lt.QE)([...bn]);Ie([...fi])}}),Gt.createElement(Zt.Z,{resdata:li,type:"shixun",okloading:ai,oktext:(li==null?void 0:li.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:Bn=>Sn(void 0,null,function*(){Tn(!0);let Gn=yield(0,nt.ZP)(`/api/courses/${nn.coursesId}/batch_copy_shixuns.json`,{method:"post",body:{type:"homework_common",ids:[parseInt(nn.categoryId)]}});Tn(!1),(Gn==null?void 0:Gn.status)===0&&tr(gn)})}))};pi.ZP=(0,mt.connect)(({shixunHomeworks:Pn,classroomList:di,loading:Re,user:ve})=>({shixunHomeworks:Pn,classroomList:di,loading:Re.effects,user:ve}))(jn)},73410:function(Qn,pi,Dt){"use strict";Dt.d(pi,{Z:function(){return Lt}});var yt=Dt(59301),ee=Dt(37568),ie=Dt(62673),we=Dt(77019),Ee={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",ce=Dt(28426),Ve=(ze,Kt,Je)=>new Promise((Bt,nt)=>{var et=gt=>{try{lt(Je.next(gt))}catch(mt){nt(mt)}},dt=gt=>{try{lt(Je.throw(gt))}catch(mt){nt(mt)}},lt=gt=>gt.done?Bt(gt.value):Promise.resolve(gt.value).then(et,dt);lt((Je=Je.apply(ze,Kt)).next())}),Lt=({data:ze,value:Kt=[],handleChangePage:Je,className:Bt="",setSelectedRowKeys:nt,selectedRowKeys:et,onChange:dt=()=>{}})=>{const[lt,gt]=(0,yt.useState)([]),[mt,St]=(0,yt.useState)([]),[Mt,It]=(0,yt.useState)([]);let[Zt,oe]=(0,yt.useState)(1),[Gt,_t]=(0,yt.useState)();return(0,yt.useEffect)(()=>{gt(ze),St([]),It([])},[ze]),(0,yt.useEffect)(()=>{nt&&(St(et),It(et))},[et]),yt.createElement("div",{className:`flex justify-between w-full ${Bt}`},yt.createElement("div",{className:Ee.leftdiv},yt.createElement(ee.default.Search,{size:"middle",style:{marginBottom:"10rem"},onChange:ge=>Ve(void 0,null,function*(){gt(ze.filter(me=>{var Pe;return(Pe=me==null?void 0:me.name)==null?void 0:Pe.includes(ge.target.value)}))}),placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),lt.length===0&&yt.createElement(ce.Z,{styles:{margin:"70rem auto"},customText:"\u6682\u65E0\u5206\u73ED"}),yt.createElement("div",{style:{height:"85%",overflow:"auto",overflowX:"hidden"}},yt.createElement(ie.default.Group,{value:mt.map(ge=>`${ge.id}`),onChange:ge=>{nt(lt.filter(me=>ge.includes(`${me.id}`)))},style:{marginTop:"10px",flexDirection:"column"}},lt.map((ge,me)=>yt.createElement(we.Z,{key:ge.id,style:{marginTop:"10rem",lineHeight:"24rem",display:"flex",width:"200rem"}},yt.createElement(ie.default,{style:{display:"flex",height:"24px",alignItems:"center"},disabled:ge.is_published,value:`${ge.id}`},yt.createElement("div",{className:Ee.listClass},yt.createElement("span",{className:Ee.spantitle,style:{width:ge.is_published?"108px":"170px"}},ge.name),ge.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:Ee.rightdiv},yt.createElement(ee.default.Search,{onChange:ge=>{It(mt.filter(me=>me.name.includes(ge.target.value)))},size:"middle",placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),Mt.length===0&&yt.createElement(ce.Z,{imgStyles:{width:"200rem"},styles:{margin:"70rem auto"},customText:"\u6682\u672A\u9009\u62E9\u5206\u73ED"}),Mt.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}},Mt.map((ge,me)=>yt.createElement("div",{className:"flex justify-between item-center",style:{marginTop:"10rem"},key:ge.id},yt.createElement("div",{className:"multi_ellipsis1 flex-1 minW-0",style:{margin:"0 5rem"}},ge.name),yt.createElement("img",{src:jt,className:"current",style:{height:"16rem",marginRight:"17rem"},onClick:()=>{nt(mt.filter(Pe=>`${Pe.id}`!=`${ge.id}`))}})))))))}},59229:function(Qn,pi,Dt){"use strict";Dt.d(pi,{Z:function(){return dt}});var yt=Dt(59301),ee=Dt(25690),ie=Dt(16326),we=Dt(62957),Ee=Dt(37568),jt=Dt(6767),ce=Dt(77019),Ve=Dt(5269),xe={title_tooltip:"title_tooltip___LLdrn",multiple_select:"multiple_select___kDXUm",modal_con:"modal_con___ERnkW"},Lt=Dt(61186),ze=Dt.n(Lt),Kt=Dt(51257),Je=Dt(28426),Bt=Dt(59301);const{RangePicker:nt}=ie.default,et=({dispatch:lt,classroomList:gt,onConfirm:mt})=>{const[St,Mt]=(0,yt.useState)([]),[It,Zt]=(0,yt.useState)([]),[oe,Gt]=(0,yt.useState)(""),[_t,ge]=(0,yt.useState)([!1,!1]);(0,yt.useEffect)(()=>{var ye,He,wn,ln;if(gt.actionTabs.key==="\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206"){console.log((ye=gt.actionTabs)==null?void 0:ye.rangePickerDisabled),(He=gt.actionTabs)!=null&&He.rangePickerDisabled?ge((wn=gt.actionTabs)==null?void 0:wn.rangePickerDisabled):ge([!1,!1]);let Oe=gt.actionTabs.data,Sn=(ln=Oe==null?void 0:Oe.group_name)==null?void 0:ln.map((se,Yt)=>{var fn;return{group_id:Oe==null?void 0:Oe.group_id[Yt],group_name:Oe==null?void 0:Oe.group_name[Yt],is_admin:Oe==null?void 0:Oe.is_admin,end_time:Oe==null?void 0:Oe.end_time,publish_time:Array.isArray(Oe==null?void 0:Oe.publish_time)?(fn=Oe==null?void 0:Oe.publish_time)==null?void 0:fn[0]:Oe==null?void 0:Oe.publish_time}});Sn&&(Mt([...Sn]),Zt([...Sn]))}},[gt.actionTabs]);const me=()=>{lt({type:"classroomList/setActionTabs",payload:{}}),Gt("")},Pe=ye=>{if(ye){const He=It==null?void 0:It.filter(wn=>{var ln,Oe;return(Oe=(ln=wn==null?void 0:wn.group_name)==null?void 0:ln.toLowerCase())==null?void 0:Oe.includes(ye==null?void 0:ye.toLowerCase())});Mt(He)}else Mt(It)};return Bt.createElement(we.default,{width:980,title:Bt.createElement("div",{style:{fontWeight:"bold",display:"flex"}},Bt.createElement("div",null,"\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",Bt.createElement("span",{className:xe.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")),Bt.createElement(Ee.default.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22",style:{width:220,marginLeft:"60px"},value:oe,onChange:ye=>{Gt(ye.target.value.trim()),Pe(ye.target.value.trim())}})),centered:!0,maskClosable:!1,open:gt.actionTabs.key==="\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",onCancel:()=>me(),onOk:()=>{var ye;if(It.some(wn=>!wn.end_time||!wn.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((ye=gt.actionTabs)==null?void 0:ye.index,It),me()}},Bt.createElement("div",{className:xe.modal_con},Bt.createElement(ce.Z,{style:{display:"flex",color:"#666666",padding:"5px",marginTop:"1px"}},(St==null?void 0:St.length)>0?St.map(function(ye,He){return Bt.createElement(Ve.Z,{span:24,key:He},Bt.createElement(ce.Z,{gutter:[8,16],style:{display:"flex",alignItems:"center",marginBottom:He==(St==null?void 0:St.length)-1?"0px":"10px"}},Bt.createElement("div",{className:xe.multiple_select,title:ye==null?void 0:ye.group_name},ye==null?void 0:ye.group_name),Bt.createElement("div",{className:"ml20"},Bt.createElement(nt,{size:"large",allowClear:!1,disabled:_t,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:wn=>{var ln;return(0,Kt.Q8)(wn,(ln=gt.actionTabs)==null?void 0:ln.disabledDate)},disabledTime:wn=>(0,Kt.d0)(wn),showTime:{showNow:!0,format:"HH:mm",defaultValue:[ze()((0,Kt.U6)(),"HH:mm"),ze()((0,Kt.U6)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:(ye==null?void 0:ye.publish_time)&&[ze()(ye==null?void 0:ye.publish_time),ye!=null&&ye.end_time?ze()(ye==null?void 0:ye.end_time):void 0],onChange:(wn,ln)=>{St[He].publish_time=ln[0],St[He].end_time=ln[1],Mt([...St]),It.forEach(Oe=>{Oe.group_id===(ye==null?void 0:ye.group_id)&&(Oe.publish_time=ln[0],Oe.end_time=ln[1])}),Zt([...It])},onCalendarChange:(wn,ln,Oe)=>{if(ln!=null&&ln[0]&&!ln[1]){const Sn=ze()(ln[0]).add(7,"days");St[He].publish_time=ln[0],St[He].end_time=Sn,Mt([...St]),It.forEach(se=>{se.group_id===(ye==null?void 0:ye.group_id)&&(se.publish_time=ln[0],se.end_time=Sn)}),Zt([...It])}}})),_t[0]?Bt.createElement("i",{className:"iconfont icon-shanjian1 ml15",style:{color:"#E30000",opacity:"0.2",cursor:"not-allowed"}}):Bt.createElement("i",{className:"iconfont icon-shanjian1 ml15",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{St.splice(He,1),Mt([...St]),It.forEach((wn,ln)=>{wn.group_id===(ye==null?void 0:ye.group_id)&&It.splice(ln,1)}),Zt([...It])}})))}):Bt.createElement(Je.Z,null))))};var dt=(0,ee.connect)(({classroomList:lt})=>({classroomList:lt}))(et)},81428:function(Qn,pi,Dt){"use strict";Dt.d(pi,{AL:function(){return St},Iy:function(){return ze},Qv:function(){return Bt},ez:function(){return mt},jb:function(){return Kt}});var yt=Dt(32834),ee=Dt.n(yt),ie=Dt(11690),we=Dt.n(ie);let Ee=1;function jt(Gt,_t){const ge=Gt.match(/^(\s+)(?:```)/);if(ge===null)return _t;const me=ge[1];return _t.split(`
|
|
`).map(Pe=>{const ye=Pe.match(/^\s+/);if(ye===null)return Pe;const[He]=ye;return He.length>=me.length?Pe.slice(me.length):Pe}).join(`
|
|
`)}let ce=[],Ve=["<ul>"];const xe=new(ee()).Renderer,Lt=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function ze(){ce.length=0,Ve=["<ul>"]}const Kt={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function Je(Gt,_t,ge,me){if(_t>=Gt.length||Gt[_t].level<=ge)return _t;var Pe=Gt[_t];me.push("<li><a href='#"+Ee+Pe.anchor+"'>"+Pe.text+"</a>"),_t++;var ye=[];return _t=Je(Gt,_t,Pe.level,ye),ye.length>0&&(me.push("<ul>"),ye.forEach(function(He){me.push(He)}),me.push("</ul>")),me.push("</li>"),_t=Je(Gt,_t,ge,me),_t}function Bt(){return Je(ce,0,0,Ve),Ve.push("</ul>"),Ve.join("")}const nt={heading(Gt){const _t=Lt.exec(Gt);if(Ee+=1,_t)return{type:"heading",raw:_t[0],depth:_t[1].length,text:_t[2]}},fences(Gt){const _t=this.rules.block.fences.exec(Gt);if(_t){const ge=_t[0];let me=jt(ge,_t[3]||"");const Pe=_t[2]?_t[2].trim():_t[2];if(["latex","katex","math"].indexOf(Pe)>=0){const ye=lt(),He=me;me=ye,gt[ye]={type:"block",expression:He}}return{type:"code",raw:ge,lang:Pe,text:me}}}},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 Mt(Gt){return Gt=Gt.replace(et,(_t,ge)=>{const me=lt();return gt[me]={type:"inline",expression:ge},me}),Gt}const It=xe.listitem;xe.listitem=function(Gt){return It(Mt(Gt))};const Zt=xe.paragraph;xe.paragraph=function(Gt){return Zt(Mt(Gt))};const oe=xe.tablecell;xe.tablecell=function(Gt,_t){return oe(Mt(Gt),_t)},xe.code=function(Gt,_t,ge){const me=(_t||"").match(/\S*/)[0];return me?["latex","katex","math"].indexOf(me)>=0?`<p class='editormd-tex'>${Gt}</p>`:`<pre class="prettyprint linenums"><code class="language-${_t}">${ge?Gt:(0,ie.escape)(Gt,!0)}</code></pre>
|
|
`:'<pre class="prettyprint linenums"><code>'+(ge?Gt:(0,ie.escape)(Gt,!0))+"</code></pre>"},xe.heading=function(Gt,_t,ge){let me=this.options.headerPrefix+ge.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return ce.push({anchor:me,level:_t,text:Gt}),"<h"+_t+' id="'+Ee+me+'">'+Gt+"</h"+_t+">"},ee().setOptions({silent:!0,gfm:!0,pedantic:!1}),ee().use({tokenizer:nt,renderer:xe}),pi.ZP=ee()},40197:function(Qn,pi,Dt){"use strict";Dt.d(pi,{rX:function(){return Mt},pW:function(){return It},gy:function(){return Zt},xY:function(){return St},O5:function(){return mt},hs:function(){return et},tJ:function(){return Bt},o1:function(){return nt},Rd:function(){return gt}});var yt=Dt(25690),ee=Dt(62957),ie=Dt(37285),we=Dt(6767),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png",ze=Dt(32637),Kt=Dt(59301),Je=(oe,Gt,_t)=>new Promise((ge,me)=>{var Pe=wn=>{try{He(_t.next(wn))}catch(ln){me(ln)}},ye=wn=>{try{He(_t.throw(wn))}catch(ln){me(ln)}},He=wn=>wn.done?ge(wn.value):Promise.resolve(wn.value).then(Pe,ye);He((_t=_t.apply(oe,Gt)).next())});const Bt=(oe,Gt=!1,_t=!1,ge="",me=!1)=>!!(nt(oe)&&dt(oe,Gt,_t,ge,me)),nt=oe=>(0,Ee.bg)()?!0:(oe({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1),et=oe=>{var Gt,_t,ge;const{user:me}=(0,yt.getDvaApp)()._store.getState();(0,Ee.bg)()&&!((_t=(Gt=me==null?void 0:me.userInfo)==null?void 0:Gt.course)!=null&&_t.course_public)&&!((ge=me==null?void 0:me.userInfo)!=null&&ge.profile_completed)&&oe({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:"/account/profile/edit",isCurrentPage:!0}})},dt=(oe,Gt=!1,_t=!0,ge="",me=!1)=>{var Pe;const{user:ye}=(0,yt.getDvaApp)()._store.getState();return(Pe=ye.userInfo)!=null&&Pe.profile_completed?!0:(_t?oe({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:ge,isCurrentPage:me}}):ee.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=()=>{ee.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=()=>{ee.default.warning({title:"\u63D0\u793A",icon:null,width:400,content:Kt.createElement("div",{style:{textAlign:"center"}},Kt.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"),Kt.createElement("img",{style:{border:"1px solid #D8E3E9",width:190,height:180},src:ze}),Kt.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 oe;const{user:Gt}=(0,yt.getDvaApp)()._store.getState();return(oe=Gt.userInfo)!=null&&oe.professional_certification?!0:(ee.default.confirm({title:"\u63D0\u793A",centered:!0,content:Kt.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,Ee.V9)()?!0:(ee.default.warning({centered:!0,width:530,title:"\u63D0\u793A",content:Kt.createElement("div",{className:"tc",style:{marginLeft:-38}},Kt.createElement("p",null,"\u626B\u7801\u52A0\u5934\u6B4C\u52A9\u6559\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650"),Kt.createElement("img",{src:Lt,width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1),Mt=(oe,Gt)=>oe?!0:(ee.default.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:Kt.createElement("div",null,Kt.createElement("p",null,Gt||"\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"),Kt.createElement("div",{style:{marginLeft:"110px"}},Kt.createElement("img",{src:xe,width:200}),Kt.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=oe=>{ee.default.info({title:"\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425",icon:null,width:615,centered:!0,content:Kt.createElement("div",null,Kt.createElement("div",null,Kt.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"),Kt.createElement(ie.Z,null),Kt.createElement("p",{style:{color:"#666666",fontSize:12}}," ",Kt.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 ",Kt.createElement("a",null,oe),"\u5929\u3002"),Kt.createElement("p",{style:{color:"#666666",fontSize:12}}," ",Kt.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")),Kt.createElement("div",{style:{textAlign:"center",marginTop:30}},Kt.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:Ve,alt:"\u4E8C\u7EF4\u7801",width:160})))})},Zt=(oe,Gt="")=>{const{shixunsDetail:{detail:_t}}=(0,yt.getDvaApp)()._store.getState();if((_t==null?void 0:_t.public)===2||(_t==null?void 0:_t.public)===1||(_t==null?void 0:_t.shixun_status)===3){let ge="";return(_t==null?void 0:_t.public)===2&&(ge="\u5DF2\u516C\u5F00"),(_t==null?void 0:_t.public)===1&&(ge="\u5F85\u5BA1\u6838"),(_t==null?void 0:_t.shixun_status)===3&&(ge="\u5DF2\u5173\u95ED"),ee.default.info({centered:!0,icon:Kt.createElement(ce.Z,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:Kt.createElement("div",{className:"tc",style:{marginLeft:-38}},Kt.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},Kt.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",ge,"\uFF0C",Gt,"\u3002"),Kt.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),Kt.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:Ve,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0}return(_t==null?void 0:_t.shixun_status)===2?(ee.default.confirm({centered:!0,icon:Kt.createElement(ce.Z,null),title:"\u63D0\u793A",content:Kt.createElement("div",null,Kt.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",Gt,"\u3002"),Kt.createElement("br",null),Kt.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:()=>{ee.default.confirm({width:440,centered:!0,icon:Kt.createElement(ce.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:()=>Je(void 0,null,function*(){(yield oe({type:"shixunsDetail/cancelRelease",payload:{id:_t==null?void 0:_t.identifier}})).status!==401&&(we.ZP.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),oe({type:"shixunsDetail/getShixunsDetail",payload:{id:_t==null?void 0:_t.identifier}}),oe({type:"practiceSetting/getCommonData",payload:{id:_t==null?void 0:_t.identifier}}))})})}}),!0):!1}},99498:function(Qn,pi,Dt){(function(yt){yt(Dt(89780))})(function(yt){yt.defineOption("placeholder","",function(Ve,xe,Lt){var ze=Lt&&Lt!=yt.Init;if(xe&&!ze)Ve.on("blur",Ee),Ve.on("change",jt),Ve.on("swapDoc",jt),yt.on(Ve.getInputField(),"compositionupdate",Ve.state.placeholderCompose=function(){we(Ve)}),jt(Ve);else if(!xe&&ze){Ve.off("blur",Ee),Ve.off("change",jt),Ve.off("swapDoc",jt),yt.off(Ve.getInputField(),"compositionupdate",Ve.state.placeholderCompose),ee(Ve);var Kt=Ve.getWrapperElement();Kt.className=Kt.className.replace(" CodeMirror-empty","")}xe&&!Ve.hasFocus()&&Ee(Ve)});function ee(Ve){Ve.state.placeholder&&(Ve.state.placeholder.parentNode.removeChild(Ve.state.placeholder),Ve.state.placeholder=null)}function ie(Ve){ee(Ve);var xe=Ve.state.placeholder=document.createElement("pre");xe.style.cssText="height: 0; overflow: visible",xe.style.direction=Ve.getOption("direction"),xe.className="CodeMirror-placeholder CodeMirror-line-like";var Lt=Ve.getOption("placeholder");typeof Lt=="string"&&(Lt=document.createTextNode(Lt)),xe.appendChild(Lt),Ve.display.lineSpace.insertBefore(xe,Ve.display.lineSpace.firstChild)}function we(Ve){setTimeout(function(){var xe=!1,Lt=Ve.getInputField();Lt.nodeName=="TEXTAREA"?xe=!Lt.value:Ve.lineCount()==1&&(xe=!/[^\u200b]/.test(Lt.querySelector(".CodeMirror-line").textContent)),xe?ie(Ve):ee(Ve)},20)}function Ee(Ve){ce(Ve)&&ie(Ve)}function jt(Ve){var xe=Ve.getWrapperElement(),Lt=ce(Ve);xe.className=xe.className.replace(" CodeMirror-empty","")+(Lt?" CodeMirror-empty":""),Lt?ie(Ve):ee(Ve)}function ce(Ve){return Ve.lineCount()===1&&Ve.getLine(0)===""}})},25717:function(Qn,pi,Dt){(function(yt){yt(Dt(89780))})(function(yt){var ee={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},ie=yt.Pos;yt.defineOption("autoCloseBrackets",!1,function(nt,et,dt){dt&&dt!=yt.Init&&(nt.removeKeyMap(Ee),nt.state.closeBrackets=null),et&&(jt(we(et,"pairs")),nt.state.closeBrackets=et,nt.addKeyMap(Ee))});function we(nt,et){return et=="pairs"&&typeof nt=="string"?nt:typeof nt=="object"&&nt[et]!=null?nt[et]:ee[et]}var Ee={Backspace:xe,Enter:Lt};function jt(nt){for(var et=0;et<nt.length;et++){var dt=nt.charAt(et),lt="'"+dt+"'";Ee[lt]||(Ee[lt]=ce(dt))}}jt(ee.pairs+"`");function ce(nt){return function(et){return Kt(et,nt)}}function Ve(nt){var et=nt.state.closeBrackets;if(!et||et.override)return et;var dt=nt.getModeAt(nt.getCursor());return dt.closeBrackets||et}function xe(nt){var et=Ve(nt);if(!et||nt.getOption("disableInput"))return yt.Pass;for(var dt=we(et,"pairs"),lt=nt.listSelections(),gt=0;gt<lt.length;gt++){if(!lt[gt].empty())return yt.Pass;var mt=Je(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("",ie(St.line,St.ch-1),ie(St.line,St.ch+1),"+delete")}}function Lt(nt){var et=Ve(nt),dt=et&&we(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=Je(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 Mt=0;Mt<lt.length;Mt++){var It=lt[Mt].head.line;nt.indentLine(It,null,!0),nt.indentLine(It+1,null,!0)}})}function ze(nt){var et=yt.cmpPos(nt.anchor,nt.head)>0;return{anchor:new ie(nt.anchor.line,nt.anchor.ch+(et?-1:1)),head:new ie(nt.head.line,nt.head.ch+(et?1:-1))}}function Kt(nt,et){var dt=Ve(nt);if(!dt||nt.getOption("disableInput"))return yt.Pass;var lt=we(dt,"pairs"),gt=lt.indexOf(et);if(gt==-1)return yt.Pass;for(var mt=we(dt,"closeBefore"),St=we(dt,"triples"),Mt=lt.charAt(gt+1)==et,It=nt.listSelections(),Zt=gt%2==0,oe,Gt=0;Gt<It.length;Gt++){var _t=It[Gt],ge=_t.head,me,Pe=nt.getRange(ge,ie(ge.line,ge.ch+1));if(Zt&&!_t.empty())me="surround";else if((Mt||!Zt)&&Pe==et)Mt&&Bt(nt,ge)?me="both":St.indexOf(et)>=0&&nt.getRange(ge,ie(ge.line,ge.ch+3))==et+et+et?me="skipThree":me="skip";else if(Mt&&ge.ch>1&&St.indexOf(et)>=0&&nt.getRange(ie(ge.line,ge.ch-2),ge)==et+et){if(ge.ch>2&&/\bstring/.test(nt.getTokenTypeAt(ie(ge.line,ge.ch-2))))return yt.Pass;me="addFour"}else if(Mt){var ye=ge.ch==0?" ":nt.getRange(ie(ge.line,ge.ch-1),ge);if(!yt.isWordChar(Pe)&&ye!=et&&!yt.isWordChar(ye))me="both";else return yt.Pass}else if(Zt&&(Pe.length===0||/\s/.test(Pe)||mt.indexOf(Pe)>-1))me="both";else return yt.Pass;if(!oe)oe=me;else if(oe!=me)return yt.Pass}var He=gt%2?lt.charAt(gt-1):et,wn=gt%2?et:lt.charAt(gt+1);nt.operation(function(){if(oe=="skip")nt.execCommand("goCharRight");else if(oe=="skipThree")for(var ln=0;ln<3;ln++)nt.execCommand("goCharRight");else if(oe=="surround"){for(var Oe=nt.getSelections(),ln=0;ln<Oe.length;ln++)Oe[ln]=He+Oe[ln]+wn;nt.replaceSelections(Oe,"around"),Oe=nt.listSelections().slice();for(var ln=0;ln<Oe.length;ln++)Oe[ln]=ze(Oe[ln]);nt.setSelections(Oe)}else oe=="both"?(nt.replaceSelection(He+wn,null),nt.triggerElectric(He+wn),nt.execCommand("goCharLeft")):oe=="addFour"&&(nt.replaceSelection(He+He+He+He,"before"),nt.execCommand("goCharRight"))})}function Je(nt,et){var dt=nt.getRange(ie(et.line,et.ch-1),ie(et.line,et.ch+1));return dt.length==2?dt:null}function Bt(nt,et){var dt=nt.getTokenAt(ie(et.line,et.ch+1));return/\bstring/.test(dt.type)&&dt.start==et.ch&&(et.ch==0||!/\bstring/.test(nt.getTokenTypeAt(et)))}})},6313:function(Qn,pi,Dt){(function(yt){yt(Dt(89780),Dt(32855))})(function(yt){yt.defineOption("autoCloseTags",!1,function(xe,Lt,ze){if(ze!=yt.Init&&ze&&xe.removeKeyMap("autoCloseTags"),!!Lt){var Kt={name:"autoCloseTags"};(typeof Lt!="object"||Lt.whenClosing!==!1)&&(Kt["'/'"]=function(Je){return jt(Je)}),(typeof Lt!="object"||Lt.whenOpening!==!1)&&(Kt["'>'"]=function(Je){return we(Je)}),xe.addKeyMap(Kt)}});var ee=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],ie=["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 we(xe){if(xe.getOption("disableInput"))return yt.Pass;for(var Lt=xe.listSelections(),ze=[],Kt=xe.getOption("autoCloseTags"),Je=0;Je<Lt.length;Je++){if(!Lt[Je].empty())return yt.Pass;var Bt=Lt[Je].head,nt=xe.getTokenAt(Bt),et=yt.innerMode(xe.getMode(),nt.state),dt=et.state,lt=et.mode.xmlCurrentTag&&et.mode.xmlCurrentTag(dt),gt=lt&<.name;if(!gt)return yt.Pass;var mt=et.mode.configuration=="html",St=typeof Kt=="object"&&Kt.dontCloseTags||mt&&ee,Mt=typeof Kt=="object"&&Kt.indentTags||mt&&ie;nt.end>Bt.ch&&(gt=gt.slice(0,gt.length-nt.end+Bt.ch));var It=gt.toLowerCase();if(!gt||nt.type=="string"&&(nt.end!=Bt.ch||!/[\"\']/.test(nt.string.charAt(nt.string.length-1))||nt.string.length==1)||nt.type=="tag"&<.close||nt.string.indexOf("/")==Bt.ch-nt.start-1||St&&ce(St,It)>-1||Ve(xe,et.mode.xmlCurrentContext&&et.mode.xmlCurrentContext(dt)||[],gt,Bt,!0))return yt.Pass;var Zt=typeof Kt=="object"&&Kt.emptyTags;if(Zt&&ce(Zt,gt)>-1){ze[Je]={text:"/>",newPos:yt.Pos(Bt.line,Bt.ch+2)};continue}var oe=Mt&&ce(Mt,It)>-1;ze[Je]={indent:oe,text:">"+(oe?`
|
|
|
|
`:"")+"</"+gt+">",newPos:oe?yt.Pos(Bt.line+1,0):yt.Pos(Bt.line,Bt.ch+1)}}for(var Gt=typeof Kt=="object"&&Kt.dontIndentOnAutoClose,Je=Lt.length-1;Je>=0;Je--){var _t=ze[Je];xe.replaceRange(_t.text,Lt[Je].head,Lt[Je].anchor,"+insert");var ge=xe.listSelections().slice(0);ge[Je]={head:_t.newPos,anchor:_t.newPos},xe.setSelections(ge),!Gt&&_t.indent&&(xe.indentLine(_t.newPos.line,null,!0),xe.indentLine(_t.newPos.line+1,null,!0))}}function Ee(xe,Lt){for(var ze=xe.listSelections(),Kt=[],Je=Lt?"/":"</",Bt=xe.getOption("autoCloseTags"),nt=typeof Bt=="object"&&Bt.dontIndentOnSlash,et=0;et<ze.length;et++){if(!ze[et].empty())return yt.Pass;var dt=ze[et].head,lt=xe.getTokenAt(dt),gt=yt.innerMode(xe.getMode(),lt.state),mt=gt.state;if(Lt&&(lt.type=="string"||lt.string.charAt(0)!="<"||lt.start!=dt.ch-1))return yt.Pass;var St,Mt=gt.mode.name!="xml"&&xe.getMode().name=="htmlmixed";if(Mt&>.mode.name=="javascript")St=Je+"script";else if(Mt&>.mode.name=="css")St=Je+"style";else{var It=gt.mode.xmlCurrentContext&>.mode.xmlCurrentContext(mt);if(!It||It.length&&Ve(xe,It,It[It.length-1],dt))return yt.Pass;St=Je+It[It.length-1]}xe.getLine(dt.line).charAt(lt.end)!=">"&&(St+=">"),Kt[et]=St}if(xe.replaceSelections(Kt),ze=xe.listSelections(),!nt)for(var et=0;et<ze.length;et++)(et==ze.length-1||ze[et].head.line<ze[et+1].head.line)&&xe.indentLine(ze[et].head.line)}function jt(xe){return xe.getOption("disableInput")?yt.Pass:Ee(xe,!0)}yt.commands.closeTag=function(xe){return Ee(xe)};function ce(xe,Lt){if(xe.indexOf)return xe.indexOf(Lt);for(var ze=0,Kt=xe.length;ze<Kt;++ze)if(xe[ze]==Lt)return ze;return-1}function Ve(xe,Lt,ze,Kt,Je){if(!yt.scanForClosingTag)return!1;var Bt=Math.min(xe.lastLine()+1,Kt.line+500),nt=yt.scanForClosingTag(xe,Kt,null,Bt);if(!nt||nt.tag!=ze)return!1;for(var et=Je?1:0,dt=Lt.length-1;dt>=0&&Lt[dt]==ze;dt--)++et;Kt=nt.to;for(var dt=1;dt<et;dt++){var lt=yt.scanForClosingTag(xe,Kt,null,Bt);if(!lt||lt.tag!=ze)return!1;Kt=lt.to}return!0}})},32855:function(Qn,pi,Dt){(function(yt){yt(Dt(89780))})(function(yt){"use strict";var ee=yt.Pos;function ie(dt,lt){return dt.line-lt.line||dt.ch-lt.ch}var we="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",Ee=we+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",jt=new RegExp("<(/?)(["+we+"]["+Ee+"]*)","g");function ce(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 Ve(dt,lt){var gt=dt.cm.getTokenTypeAt(ee(dt.line,lt));return gt&&/\btag\b/.test(gt)}function xe(dt){if(!(dt.line>=dt.max))return dt.ch=0,dt.text=dt.cm.getLine(++dt.line),!0}function Lt(dt){if(!(dt.line<=dt.min))return dt.text=dt.cm.getLine(--dt.line),dt.ch=dt.text.length,!0}function ze(dt){for(;;){var lt=dt.text.indexOf(">",dt.ch);if(lt==-1){if(xe(dt))continue;return}if(!Ve(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 Kt(dt){for(;;){var lt=dt.ch?dt.text.lastIndexOf("<",dt.ch-1):-1;if(lt==-1){if(Lt(dt))continue;return}if(!Ve(dt,lt+1)){dt.ch=lt;continue}jt.lastIndex=lt,dt.ch=lt;var gt=jt.exec(dt.text);if(gt&>.index==lt)return gt}}function Je(dt){for(;;){jt.lastIndex=dt.ch;var lt=jt.exec(dt.text);if(!lt){if(xe(dt))continue;return}if(!Ve(dt,lt.index+1)){dt.ch=lt.index+1;continue}return dt.ch=lt.index+lt[0].length,lt}}function Bt(dt){for(;;){var lt=dt.ch?dt.text.lastIndexOf(">",dt.ch-1):-1;if(lt==-1){if(Lt(dt))continue;return}if(!Ve(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=Je(dt),St,Mt=dt.line,It=dt.ch-(mt?mt[0].length:0);if(!mt||!(St=ze(dt)))return;if(St!="selfClose")if(mt[1]){for(var Zt=gt.length-1;Zt>=0;--Zt)if(gt[Zt]==mt[2]){gt.length=Zt;break}if(Zt<0&&(!lt||lt==mt[2]))return{tag:mt[2],from:ee(Mt,It),to:ee(dt.line,dt.ch)}}else gt.push(mt[2])}}function et(dt,lt){for(var gt=[];;){var mt=Bt(dt);if(!mt)return;if(mt=="selfClose"){Kt(dt);continue}var St=dt.line,Mt=dt.ch,It=Kt(dt);if(!It)return;if(It[1])gt.push(It[2]);else{for(var Zt=gt.length-1;Zt>=0;--Zt)if(gt[Zt]==It[2]){gt.length=Zt;break}if(Zt<0&&(!lt||lt==It[2]))return{tag:It[2],from:ee(dt.line,dt.ch),to:ee(St,Mt)}}}}yt.registerHelper("fold","xml",function(dt,lt){for(var gt=new ce(dt,lt.line,0);;){var mt=Je(gt);if(!mt||gt.line!=lt.line)return;var St=ze(gt);if(!St)return;if(!mt[1]&&St!="selfClose"){var Mt=ee(gt.line,gt.ch),It=nt(gt,mt[2]);return It&&ie(It.from,Mt)>0?{from:Mt,to:It.from}:null}}}),yt.findMatchingTag=function(dt,lt,gt){var mt=new ce(dt,lt.line,lt.ch,gt);if(!(mt.text.indexOf(">")==-1&&mt.text.indexOf("<")==-1)){var St=ze(mt),Mt=St&&ee(mt.line,mt.ch),It=St&&Kt(mt);if(!(!St||!It||ie(mt,lt)>0)){var Zt={from:ee(mt.line,mt.ch),to:Mt,tag:It[2]};return St=="selfClose"?{open:Zt,close:null,at:"open"}:It[1]?{open:et(mt,It[2]),close:Zt,at:"close"}:(mt=new ce(dt,Mt.line,Mt.ch,gt),{open:Zt,close:nt(mt,It[2]),at:"open"})}}},yt.findEnclosingTag=function(dt,lt,gt,mt){for(var St=new ce(dt,lt.line,lt.ch,gt);;){var Mt=et(St,mt);if(!Mt)break;var It=new ce(dt,lt.line,lt.ch,gt),Zt=nt(It,Mt.tag);if(Zt)return{open:Mt,close:Zt}}},yt.scanForClosingTag=function(dt,lt,gt,mt){var St=new ce(dt,lt.line,lt.ch,mt?{from:0,to:mt}:null);return nt(St,gt)}})},89780:function(Qn){(function(pi,Dt){Qn.exports=Dt()})(this,function(){"use strict";var pi=navigator.userAgent,Dt=navigator.platform,yt=/gecko\/\d/i.test(pi),ee=/MSIE \d/.test(pi),ie=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(pi),we=/Edge\/(\d+)/.exec(pi),Ee=ee||ie||we,jt=Ee&&(ee?document.documentMode||6:+(we||ie)[1]),ce=!we&&/WebKit\//.test(pi),Ve=ce&&/Qt\/\d+\.\d+/.test(pi),xe=!we&&/Chrome\//.test(pi),Lt=/Opera\//.test(pi),ze=/Apple Computer/.test(navigator.vendor),Kt=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(pi),Je=/PhantomJS/.test(pi),Bt=!we&&/AppleWebKit/.test(pi)&&/Mobile\/\w+/.test(pi),nt=/Android/.test(pi),et=Bt||nt||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(pi),dt=Bt||/Mac/.test(Dt),lt=/\bCrOS\b/.test(pi),gt=/win/i.test(Dt),mt=Lt&&pi.match(/Version\/(\d*\.\d*)/);mt&&(mt=Number(mt[1])),mt&&mt>=15&&(Lt=!1,ce=!0);var St=dt&&(Ve||Lt&&(mt==null||mt<12.11)),Mt=yt||Ee&&jt>=9;function It(it){return new RegExp("(^|\\s)"+it+"(?:$|\\s)\\s*")}var Zt=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 oe(it){for(var at=it.childNodes.length;at>0;--at)it.removeChild(it.firstChild);return it}function Gt(it,at){return oe(it).appendChild(at)}function _t(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 bt=0;bt<at.length;++bt)pt.appendChild(at[bt]);return pt}function ge(it,at,ct,ht){var pt=_t(it,at,ct,ht);return pt.setAttribute("role","presentation"),pt}var me;document.createRange?me=function(it,at,ct,ht){var pt=document.createRange();return pt.setEnd(ht||it,ct),pt.setStart(it,at),pt}:me=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 Pe(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 ye(){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 He(it,at){var ct=it.className;It(at).test(ct)||(it.className+=(ct?" ":"")+at)}function wn(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 ln=function(it){it.select()};Bt?ln=function(it){it.selectionStart=0,it.selectionEnd=it.value.length}:Ee&&(ln=function(it){try{it.select()}catch(at){}});function Oe(it){var at=Array.prototype.slice.call(arguments,1);return function(){return it.apply(null,at)}}function Sn(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 bt=ht||0,Rt=pt||0;;){var Jt=it.indexOf(" ",bt);if(Jt<0||Jt>=at)return Rt+(at-bt);Rt+=Jt-bt,Rt+=ct-Rt%ct,bt=Jt+1}}var Yt=function(){this.id=null,this.f=null,this.time=0,this.handler=Oe(this.onTimeout,this)};Yt.prototype.onTimeout=function(it){it.id=0,it.time<=+new Date?it.f():setTimeout(it.handler,it.time-+new Date)},Yt.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 fn(it,at){for(var ct=0;ct<it.length;++ct)if(it[ct]==at)return ct;return-1}var _n=50,In={toString:function(){return"CodeMirror.Pass"}},on={scroll:!1},jn={origin:"*mouse"},Pn={origin:"+move"};function di(it,at,ct){for(var ht=0,pt=0;;){var bt=it.indexOf(" ",ht);bt==-1&&(bt=it.length);var Rt=bt-ht;if(bt==it.length||pt+Rt>=at)return ht+Math.min(Rt,at-pt);if(pt+=bt-ht,pt+=ct-pt%ct,ht=bt+1,pt>=at)return ht}}var Re=[""];function ve(it){for(;Re.length<=it;)Re.push(Ye(Re)+" ");return Re[it]}function Ye(it){return it[it.length-1]}function mi(it,at){for(var ct=[],ht=0;ht<it.length;ht++)ct[ht]=at(it[ht],ht);return ct}function Cn(it,at,ct){for(var ht=0,pt=ct(at);ht<it.length&&ct(it[ht])<=pt;)ht++;it.splice(ht,0,at)}function Ot(){}function At(it,at){var ct;return Object.create?ct=Object.create(it):(Ot.prototype=it,ct=new Ot),at&&Sn(at,ct),ct}var wt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Nt(it){return/\w/.test(it)||it>"\x80"&&(it.toUpperCase()!=it.toLowerCase()||wt.test(it))}function Vt(it,at){return at?at.source.indexOf("\\w")>-1&&Nt(it)?!0:at.test(it):Nt(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 nn(it){return it.charCodeAt(0)>=768&&$t.test(it)}function dn(it,at,ct){for(;(ct<0?at>0:at<it.length)&&nn(it.charAt(at));)at+=ct;return at}function En(it,at,ct){for(var ht=at>ct?-1:1;;){if(at==ct)return at;var pt=(at+ct)/2,bt=ht<0?Math.ceil(pt):Math.floor(pt);if(bt==at)return it(bt)?at:ct;it(bt)?ct=bt:at=bt+ht}}function De(it,at,ct,ht){if(!it)return ht(at,ct,"ltr",0);for(var pt=!1,bt=0;bt<it.length;++bt){var Rt=it[bt];(Rt.from<ct&&Rt.to>at||at==ct&&Rt.to==at)&&(ht(Math.max(Rt.from,at),Math.min(Rt.to,ct),Rt.level==1?"rtl":"ltr",bt),pt=!0)}pt||ht(at,ct,"ltr")}var Ce=null;function Qe(it,at,ct){var ht;Ce=null;for(var pt=0;pt<it.length;++pt){var bt=it[pt];if(bt.from<at&&bt.to>at)return pt;bt.to==at&&(bt.from!=bt.to&&ct=="before"?ht=pt:Ce=pt),bt.from==at&&(bt.from!=bt.to&&ct!="before"?ht=pt:Ce=pt)}return ht!=null?ht:Ce}var un=function(){var it="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",at="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ct(fe){return fe<=247?it.charAt(fe):1424<=fe&&fe<=1524?"R":1536<=fe&&fe<=1785?at.charAt(fe-1536):1774<=fe&&fe<=2220?"r":8192<=fe&&fe<=8203?"w":fe==8204?"b":"L"}var ht=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,pt=/[stwN]/,bt=/[LRr]/,Rt=/[Lb1n]/,Jt=/[1n]/;function Ut(fe,vn,Le){this.level=fe,this.from=vn,this.to=Le}return function(fe,vn){var Le=vn=="ltr"?"L":"R";if(fe.length==0||vn=="ltr"&&!ht.test(fe))return!1;for(var $n=fe.length,Zn=[],Yi=0;Yi<$n;++Yi)Zn.push(ct(fe.charCodeAt(Yi)));for(var $i=0,cr=Le;$i<$n;++$i){var Dr=Zn[$i];Dr=="m"?Zn[$i]=cr:cr=Dr}for(var $r=0,Vr=Le;$r<$n;++$r){var oo=Zn[$r];oo=="1"&&Vr=="r"?Zn[$r]="n":bt.test(oo)&&(Vr=oo,oo=="r"&&(Zn[$r]="R"))}for(var ko=1,Zr=Zn[0];ko<$n-1;++ko){var _o=Zn[ko];_o=="+"&&Zr=="1"&&Zn[ko+1]=="1"?Zn[ko]="1":_o==","&&Zr==Zn[ko+1]&&(Zr=="1"||Zr=="n")&&(Zn[ko]=Zr),Zr=_o}for(var ja=0;ja<$n;++ja){var Ss=Zn[ja];if(Ss==",")Zn[ja]="N";else if(Ss=="%"){var _a=void 0;for(_a=ja+1;_a<$n&&Zn[_a]=="%";++_a);for(var ul=ja&&Zn[ja-1]=="!"||_a<$n&&Zn[_a]=="1"?"1":"N",Ys=ja;Ys<_a;++Ys)Zn[Ys]=ul;ja=_a-1}}for(var ps=0,Pl=Le;ps<$n;++ps){var Rs=Zn[ps];Pl=="L"&&Rs=="1"?Zn[ps]="L":bt.test(Rs)&&(Pl=Rs)}for(var ms=0;ms<$n;++ms)if(pt.test(Zn[ms])){var ma=void 0;for(ma=ms+1;ma<$n&&pt.test(Zn[ma]);++ma);for(var qa=(ms?Zn[ms-1]:Le)=="L",As=(ma<$n?Zn[ma]:Le)=="L",zs=qa==As?qa?"L":"R":Le,su=ms;su<ma;++su)Zn[su]=zs;ms=ma-1}for(var Ja=[],Jl,is=0;is<$n;)if(Rt.test(Zn[is])){var Bc=is;for(++is;is<$n&&Rt.test(Zn[is]);++is);Ja.push(new Ut(0,Bc,is))}else{var Rl=is,Cl=Ja.length,hl=vn=="rtl"?1:0;for(++is;is<$n&&Zn[is]!="L";++is);for(var Na=Rl;Na<is;)if(Jt.test(Zn[Na])){Rl<Na&&(Ja.splice(Cl,0,new Ut(1,Rl,Na)),Cl+=hl);var Ls=Na;for(++Na;Na<is&&Jt.test(Zn[Na]);++Na);Ja.splice(Cl,0,new Ut(2,Ls,Na)),Cl+=hl,Rl=Na}else++Na;Rl<is&&Ja.splice(Cl,0,new Ut(1,Rl,is))}return vn=="ltr"&&(Ja[0].level==1&&(Jl=fe.match(/^\s+/))&&(Ja[0].from=Jl[0].length,Ja.unshift(new Ut(0,0,Jl[0].length))),Ye(Ja).level==1&&(Jl=fe.match(/\s+$/))&&(Ye(Ja).to-=Jl[0].length,Ja.push(new Ut(0,$n-Jl[0].length,$n)))),vn=="rtl"?Ja.reverse():Ja}}();function Nn(it,at){var ct=it.order;return ct==null&&(ct=it.order=un(it.text,at)),ct}var ai=[],Tn=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]||ai).concat(ct)}};function bn(it,at){return it._handlers&&it._handlers[at]||ai}function Ie(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 bt=fn(pt,ct);bt>-1&&(ht[at]=pt.slice(0,bt).concat(pt.slice(bt+1)))}}}function Ue(it,at){var ct=bn(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 cn(it,at,ct){return typeof at=="string"&&(at={type:at,preventDefault:function(){this.defaultPrevented=!0}}),Ue(it,ct||at.type,it,at),ti(at)||at.codemirrorIgnore}function Ln(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)fn(ct,at[ht])==-1&&ct.push(at[ht])}function Xn(it,at){return bn(it,at).length>0}function li(it){it.prototype.on=function(at,ct){Tn(this,at,ct)},it.prototype.off=function(at,ct){Ie(this,at,ct)}}function Ci(it){it.preventDefault?it.preventDefault():it.returnValue=!1}function gn(it){it.stopPropagation?it.stopPropagation():it.cancelBubble=!0}function ti(it){return it.defaultPrevented!=null?it.defaultPrevented:it.returnValue==!1}function _i(it){Ci(it),gn(it)}function fr(it){return it.target||it.srcElement}function tr(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 er=function(){if(Ee&&jt<9)return!1;var it=_t("div");return"draggable"in it||"dragDrop"in it}(),yr;function sr(it){if(yr==null){var at=_t("span","\u200B");Gt(it,_t("span",[at,document.createTextNode("x")])),it.firstChild.offsetHeight!=0&&(yr=at.offsetWidth<=1&&at.offsetHeight>2&&!(Ee&&jt<8))}var ct=yr?_t("span","\u200B"):_t("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ct.setAttribute("cm-text",""),ct}var hr;function zi(it){if(hr!=null)return hr;var at=Gt(it,document.createTextNode("A\u062EA")),ct=me(at,0,1).getBoundingClientRect(),ht=me(at,1,2).getBoundingClientRect();return oe(it),!ct||ct.left==ct.right?!1:hr=ht.right-ct.right<3}var gr=`
|
|
|
|
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 bt=it.slice(at,it.charAt(pt-1)=="\r"?pt-1:pt),Rt=bt.indexOf("\r");Rt!=-1?(ct.push(bt.slice(0,Rt)),at+=Rt+1):(ct.push(bt),at=pt+1)}return ct}:function(it){return it.split(/\r\n?|\n/)},Et=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},Bn=function(){var it=_t("div");return"oncopy"in it?!0:(it.setAttribute("oncopy","return;"),typeof it.oncopy=="function")}(),Gn=null;function fi(it){if(Gn!=null)return Gn;var at=Gt(it,_t("span","x")),ct=at.getBoundingClientRect(),ht=me(at,0,1).getBoundingClientRect();return Gn=Math.abs(ct.left-ht.left)>1}var ci={},Kn={};function rn(it,at){arguments.length>2&&(at.dependencies=Array.prototype.slice.call(arguments,2)),ci[it]=at}function Yn(it,at){Kn[it]=at}function Fe(it){if(typeof it=="string"&&Kn.hasOwnProperty(it))it=Kn[it];else if(it&&typeof it.name=="string"&&Kn.hasOwnProperty(it.name)){var at=Kn[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 Fe("application/xml");if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(it))return Fe("application/json")}return typeof it=="string"?{name:it}:it||{name:"null"}}function Ne(it,at){at=Fe(at);var ct=ci[at.name];if(!ct)return Ne(it,"text/plain");var ht=ct(it,at);if(ke.hasOwnProperty(at.name)){var pt=ke[at.name];for(var bt in pt)pt.hasOwnProperty(bt)&&(ht.hasOwnProperty(bt)&&(ht["_"+bt]=ht[bt]),ht[bt]=pt[bt])}if(ht.name=at.name,at.helperType&&(ht.helperType=at.helperType),at.modeProps)for(var Rt in at.modeProps)ht[Rt]=at.modeProps[Rt];return ht}var ke={};function sn(it,at){var ct=ke.hasOwnProperty(it)?ke[it]:ke[it]={};Sn(at,ct)}function xi(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 yi(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 Fi(it,at,ct){return it.startState?it.startState(at,ct):!0}var Xe=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};Xe.prototype.eol=function(){return this.pos>=this.string.length},Xe.prototype.sol=function(){return this.pos==this.lineStart},Xe.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Xe.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Xe.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},Xe.prototype.eatWhile=function(it){for(var at=this.pos;this.eat(it););return this.pos>at},Xe.prototype.eatSpace=function(){for(var it=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>it},Xe.prototype.skipToEnd=function(){this.pos=this.string.length},Xe.prototype.skipTo=function(it){var at=this.string.indexOf(it,this.pos);if(at>-1)return this.pos=at,!0},Xe.prototype.backUp=function(it){this.pos-=it},Xe.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)},Xe.prototype.indentation=function(){return se(this.string,null,this.tabSize)-(this.lineStart?se(this.string,this.lineStart,this.tabSize):0)},Xe.prototype.match=function(it,at,ct){if(typeof it=="string"){var ht=function(Rt){return ct?Rt.toLowerCase():Rt},pt=this.string.substr(this.pos,it.length);if(ht(pt)==ht(it))return at!==!1&&(this.pos+=it.length),!0}else{var bt=this.string.slice(this.pos).match(it);return bt&&bt.index>0?null:(bt&&at!==!1&&(this.pos+=bt[0].length),bt)}},Xe.prototype.current=function(){return this.string.slice(this.start,this.pos)},Xe.prototype.hideFirstChars=function(it,at){this.lineStart+=it;try{return at()}finally{this.lineStart-=it}},Xe.prototype.lookAhead=function(it){var at=this.lineOracle;return at&&at.lookAhead(it)},Xe.prototype.baseToken=function(){var it=this.lineOracle;return it&&it.baseToken(this.pos)};function Dn(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],bt=pt.chunkSize();if(at<bt){ct=pt;break}at-=bt}return ct.lines[at]}function mn(it,at,ct){var ht=[],pt=at.line;return it.iter(at.line,ct.line+1,function(bt){var Rt=bt.text;pt==ct.line&&(Rt=Rt.slice(0,ct.ch)),pt==at.line&&(Rt=Rt.slice(at.ch)),ht.push(Rt),++pt}),ht}function Hi(it,at,ct){var ht=[];return it.iter(at,ct,function(pt){ht.push(pt.text)}),ht}function qn(it,at){var ct=at-it.height;if(ct)for(var ht=it;ht;ht=ht.parent)ht.height+=ct}function te(it){if(it.parent==null)return null;for(var at=it.parent,ct=fn(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 be(it,at){var ct=it.first;t:do{for(var ht=0;ht<it.children.length;++ht){var pt=it.children[ht],bt=pt.height;if(at<bt){it=pt;continue t}at-=bt,ct+=pt.chunkSize()}return ct}while(!it.lines);for(var Rt=0;Rt<it.lines.length;++Rt){var Jt=it.lines[Rt],Ut=Jt.height;if(at<Ut)break;at-=Ut}return ct+Rt}function Jn(it,at){return at>=it.first&&at<it.first+it.size}function Fn(it,at){return String(it.lineNumberFormatter(at+it.firstLineNumber))}function Be(it,at,ct){if(ct===void 0&&(ct=null),!(this instanceof Be))return new Be(it,at,ct);this.line=it,this.ch=at,this.sticky=ct}function zn(it,at){return it.line-at.line||it.ch-at.ch}function Ai(it,at){return it.sticky==at.sticky&&zn(it,at)==0}function Ii(it){return Be(it.line,it.ch)}function Ki(it,at){return zn(it,at)<0?at:it}function oi(it,at){return zn(it,at)<0?it:at}function gi(it,at){return Math.max(it.first,Math.min(at,it.first+it.size-1))}function Si(it,at){if(at.line<it.first)return Be(it.first,0);var ct=it.first+it.size-1;return at.line>ct?Be(ct,Dn(it,ct).text.length):Ui(at,Dn(it,at.line).text.length)}function Ui(it,at){var ct=it.ch;return ct==null||ct>at?Be(it.line,at):ct<0?Be(it.line,0):it}function ji(it,at){for(var ct=[],ht=0;ht<at.length;ht++)ct[ht]=Si(it,at[ht]);return ct}var Mn=function(it,at){this.state=it,this.lookAhead=at},Ei=function(it,at,ct,ht){this.state=at,this.doc=it,this.line=ct,this.maxLookAhead=ht||0,this.baseTokens=null,this.baseTokenPos=1};Ei.prototype.lookAhead=function(it){var at=this.doc.getLine(this.line+it);return at!=null&&it>this.maxLookAhead&&(this.maxLookAhead=it),at},Ei.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}},Ei.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Ei.fromSaved=function(it,at,ct){return at instanceof Mn?new Ei(it,xi(it.mode,at.state),ct,at.lookAhead):new Ei(it,xi(it.mode,at),ct)},Ei.prototype.save=function(it){var at=it!==!1?xi(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Mn(at,this.maxLookAhead):at};function xr(it,at,ct,ht){var pt=[it.state.modeGen],bt={};Wr(it,at.text,it.doc.mode,ct,function(fe,vn){return pt.push(fe,vn)},bt,ht);for(var Rt=ct.state,Jt=function(fe){ct.baseTokens=pt;var vn=it.state.overlays[fe],Le=1,$n=0;ct.state=!0,Wr(it,at.text,vn.mode,ct,function(Zn,Yi){for(var $i=Le;$n<Zn;){var cr=pt[Le];cr>Zn&&pt.splice(Le,1,Zn,pt[Le+1],cr),Le+=2,$n=Math.min(Zn,cr)}if(Yi)if(vn.opaque)pt.splice($i,Le-$i,Zn,"overlay "+Yi),Le=$i+2;else for(;$i<Le;$i+=2){var Dr=pt[$i+1];pt[$i+1]=(Dr?Dr+" ":"")+"overlay "+Yi}},bt),ct.state=Rt,ct.baseTokens=null,ct.baseTokenPos=1},Ut=0;Ut<it.state.overlays.length;++Ut)Jt(Ut);return{styles:pt,classes:bt.bgClass||bt.textClass?bt:null}}function Tr(it,at,ct){if(!at.styles||at.styles[0]!=it.state.modeGen){var ht=_r(it,te(at)),pt=at.text.length>it.options.maxHighlightLength&&xi(it.doc.mode,ht.state),bt=xr(it,at,ht);pt&&(ht.state=pt),at.stateAfter=ht.save(!pt),at.styles=bt.styles,bt.classes?at.styleClasses=bt.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 _r(it,at,ct){var ht=it.doc,pt=it.display;if(!ht.mode.startState)return new Ei(ht,!0,at);var bt=Zi(it,at,ct),Rt=bt>ht.first&&Dn(ht,bt-1).stateAfter,Jt=Rt?Ei.fromSaved(ht,Rt,bt):new Ei(ht,Fi(ht.mode),bt);return ht.iter(bt,at,function(Ut){We(it,Ut.text,Jt);var fe=Jt.line;Ut.stateAfter=fe==at-1||fe%5==0||fe>=pt.viewFrom&&fe<pt.viewTo?Jt.save():null,Jt.nextLine()}),ct&&(ht.modeFrontier=Jt.line),Jt}function We(it,at,ct,ht){var pt=it.doc.mode,bt=new Xe(at,it.options.tabSize,ct);for(bt.start=bt.pos=ht||0,at==""&&ar(pt,ct.state);!bt.eol();)br(pt,bt,ct.state),bt.start=bt.pos}function ar(it,at){if(it.blankLine)return it.blankLine(at);if(it.innerMode){var ct=yi(it,at);if(ct.mode.blankLine)return ct.mode.blankLine(ct.state)}}function br(it,at,ct,ht){for(var pt=0;pt<10;pt++){ht&&(ht[0]=yi(it,ct).mode);var bt=it.token(at,ct);if(at.pos>at.start)return bt}throw new Error("Mode "+it.name+" failed to advance stream.")}var Gi=function(it,at,ct){this.start=it.start,this.end=it.pos,this.string=it.current(),this.type=at||null,this.state=ct};function Gr(it,at,ct,ht){var pt=it.doc,bt=pt.mode,Rt;at=Si(pt,at);var Jt=Dn(pt,at.line),Ut=_r(it,at.line,ct),fe=new Xe(Jt.text,it.options.tabSize,Ut),vn;for(ht&&(vn=[]);(ht||fe.pos<at.ch)&&!fe.eol();)fe.start=fe.pos,Rt=br(bt,fe,Ut.state),ht&&vn.push(new Gi(fe,Rt,xi(pt.mode,Ut.state)));return ht?vn:new Gi(fe,Rt,Ut.state)}function Or(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 Wr(it,at,ct,ht,pt,bt,Rt){var Jt=ct.flattenSpans;Jt==null&&(Jt=it.options.flattenSpans);var Ut=0,fe=null,vn=new Xe(at,it.options.tabSize,ht),Le,$n=it.options.addModeClass&&[null];for(at==""&&Or(ar(ct,ht.state),bt);!vn.eol();){if(vn.pos>it.options.maxHighlightLength?(Jt=!1,Rt&&We(it,at,ht,vn.pos),vn.pos=at.length,Le=null):Le=Or(br(ct,vn,ht.state,$n),bt),$n){var Zn=$n[0].name;Zn&&(Le="m-"+(Le?Zn+" "+Le:Zn))}if(!Jt||fe!=Le){for(;Ut<vn.start;)Ut=Math.min(vn.start,Ut+5e3),pt(Ut,fe);fe=Le}vn.start=vn.pos}for(;Ut<vn.pos;){var Yi=Math.min(vn.pos,Ut+5e3);pt(Yi,fe),Ut=Yi}}function Zi(it,at,ct){for(var ht,pt,bt=it.doc,Rt=ct?-1:at-(it.doc.mode.innerMode?1e3:100),Jt=at;Jt>Rt;--Jt){if(Jt<=bt.first)return bt.first;var Ut=Dn(bt,Jt-1),fe=Ut.stateAfter;if(fe&&(!ct||Jt+(fe instanceof Mn?fe.lookAhead:0)<=bt.modeFrontier))return Jt;var vn=se(Ut.text,null,it.options.tabSize);(pt==null||ht>vn)&&(pt=Jt-1,ht=vn)}return pt}function ir(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=Dn(it,ht).stateAfter;if(pt&&(!(pt instanceof Mn)||ht+pt.lookAhead<at)){ct=ht+1;break}}it.highlightFrontier=Math.min(it.highlightFrontier,ct)}}var Qi=!1,pn=!1;function dr(){Qi=!0}function xn(){pn=!0}function bi(it,at,ct){this.marker=it,this.from=at,this.to=ct}function Sr(it,at){if(it)for(var ct=0;ct<it.length;++ct){var ht=it[ct];if(ht.marker==at)return ht}}function Er(it,at){for(var ct,ht=0;ht<it.length;++ht)it[ht]!=at&&(ct||(ct=[])).push(it[ht]);return ct}function io(it,at){it.markedSpans=it.markedSpans?it.markedSpans.concat([at]):[at],at.marker.attachLine(it)}function Yr(it,at,ct){var ht;if(it)for(var pt=0;pt<it.length;++pt){var bt=it[pt],Rt=bt.marker,Jt=bt.from==null||(Rt.inclusiveLeft?bt.from<=at:bt.from<at);if(Jt||bt.from==at&&Rt.type=="bookmark"&&(!ct||!bt.marker.insertLeft)){var Ut=bt.to==null||(Rt.inclusiveRight?bt.to>=at:bt.to>at);(ht||(ht=[])).push(new bi(Rt,bt.from,Ut?null:bt.to))}}return ht}function Mr(it,at,ct){var ht;if(it)for(var pt=0;pt<it.length;++pt){var bt=it[pt],Rt=bt.marker,Jt=bt.to==null||(Rt.inclusiveRight?bt.to>=at:bt.to>at);if(Jt||bt.from==at&&Rt.type=="bookmark"&&(!ct||bt.marker.insertLeft)){var Ut=bt.from==null||(Rt.inclusiveLeft?bt.from<=at:bt.from<at);(ht||(ht=[])).push(new bi(Rt,Ut?null:bt.from-at,bt.to==null?null:bt.to-at))}}return ht}function uo(it,at){if(at.full)return null;var ct=Jn(it,at.from.line)&&Dn(it,at.from.line).markedSpans,ht=Jn(it,at.to.line)&&Dn(it,at.to.line).markedSpans;if(!ct&&!ht)return null;var pt=at.from.ch,bt=at.to.ch,Rt=zn(at.from,at.to)==0,Jt=Yr(ct,pt,Rt),Ut=Mr(ht,bt,Rt),fe=at.text.length==1,vn=Ye(at.text).length+(fe?pt:0);if(Jt)for(var Le=0;Le<Jt.length;++Le){var $n=Jt[Le];if($n.to==null){var Zn=Sr(Ut,$n.marker);Zn?fe&&($n.to=Zn.to==null?null:Zn.to+vn):$n.to=pt}}if(Ut)for(var Yi=0;Yi<Ut.length;++Yi){var $i=Ut[Yi];if($i.to!=null&&($i.to+=vn),$i.from==null){var cr=Sr(Jt,$i.marker);cr||($i.from=vn,fe&&(Jt||(Jt=[])).push($i))}else $i.from+=vn,fe&&(Jt||(Jt=[])).push($i)}Jt&&(Jt=tn(Jt)),Ut&&Ut!=Jt&&(Ut=tn(Ut));var Dr=[Jt];if(!fe){var $r=at.text.length-2,Vr;if($r>0&&Jt)for(var oo=0;oo<Jt.length;++oo)Jt[oo].to==null&&(Vr||(Vr=[])).push(new bi(Jt[oo].marker,null,null));for(var ko=0;ko<$r;++ko)Dr.push(Vr);Dr.push(Ut)}return Dr}function tn(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 Hn(it,at,ct){var ht=null;if(it.iter(at.line,ct.line+1,function(Zn){if(Zn.markedSpans)for(var Yi=0;Yi<Zn.markedSpans.length;++Yi){var $i=Zn.markedSpans[Yi].marker;$i.readOnly&&(!ht||fn(ht,$i)==-1)&&(ht||(ht=[])).push($i)}}),!ht)return null;for(var pt=[{from:at,to:ct}],bt=0;bt<ht.length;++bt)for(var Rt=ht[bt],Jt=Rt.find(0),Ut=0;Ut<pt.length;++Ut){var fe=pt[Ut];if(!(zn(fe.to,Jt.from)<0||zn(fe.from,Jt.to)>0)){var vn=[Ut,1],Le=zn(fe.from,Jt.from),$n=zn(fe.to,Jt.to);(Le<0||!Rt.inclusiveLeft&&!Le)&&vn.push({from:fe.from,to:Jt.from}),($n>0||!Rt.inclusiveRight&&!$n)&&vn.push({from:Jt.to,to:fe.to}),pt.splice.apply(pt,vn),Ut+=vn.length-3}}return pt}function _e(it){var at=it.markedSpans;if(at){for(var ct=0;ct<at.length;++ct)at[ct].marker.detachLine(it);it.markedSpans=null}}function Tt(it,at){if(at){for(var ct=0;ct<at.length;++ct)at[ct].marker.attachLine(it);it.markedSpans=at}}function Wt(it){return it.inclusiveLeft?-1:0}function qt(it){return it.inclusiveRight?1:0}function Se(it,at){var ct=it.lines.length-at.lines.length;if(ct!=0)return ct;var ht=it.find(),pt=at.find(),bt=zn(ht.from,pt.from)||Wt(it)-Wt(at);if(bt)return-bt;var Rt=zn(ht.to,pt.to)||qt(it)-qt(at);return Rt||at.id-it.id}function Te(it,at){var ct=pn&&it.markedSpans,ht;if(ct)for(var pt=void 0,bt=0;bt<ct.length;++bt)pt=ct[bt],pt.marker.collapsed&&(at?pt.from:pt.to)==null&&(!ht||Se(ht,pt.marker)<0)&&(ht=pt.marker);return ht}function en(it){return Te(it,!0)}function ne(it){return Te(it,!1)}function Me(it,at){var ct=pn&&it.markedSpans,ht;if(ct)for(var pt=0;pt<ct.length;++pt){var bt=ct[pt];bt.marker.collapsed&&(bt.from==null||bt.from<at)&&(bt.to==null||bt.to>at)&&(!ht||Se(ht,bt.marker)<0)&&(ht=bt.marker)}return ht}function Ke(it,at,ct,ht,pt){var bt=Dn(it,at),Rt=pn&&bt.markedSpans;if(Rt)for(var Jt=0;Jt<Rt.length;++Jt){var Ut=Rt[Jt];if(Ut.marker.collapsed){var fe=Ut.marker.find(0),vn=zn(fe.from,ct)||Wt(Ut.marker)-Wt(pt),Le=zn(fe.to,ht)||qt(Ut.marker)-qt(pt);if(!(vn>=0&&Le<=0||vn<=0&&Le>=0)&&(vn<=0&&(Ut.marker.inclusiveRight&&pt.inclusiveLeft?zn(fe.to,ct)>=0:zn(fe.to,ct)>0)||vn>=0&&(Ut.marker.inclusiveRight&&pt.inclusiveLeft?zn(fe.from,ht)<=0:zn(fe.from,ht)<0)))return!0}}}function je(it){for(var at;at=en(it);)it=at.find(-1,!0).line;return it}function hn(it){for(var at;at=ne(it);)it=at.find(1,!0).line;return it}function An(it){for(var at,ct;at=ne(it);)it=at.find(1,!0).line,(ct||(ct=[])).push(it);return ct}function Ct(it,at){var ct=Dn(it,at),ht=je(ct);return ct==ht?at:te(ht)}function Qt(it,at){if(at>it.lastLine())return at;var ct=Dn(it,at),ht;if(!zt(it,ct))return at;for(;ht=ne(ct);)ct=ht.find(1,!0).line;return te(ct)+1}function zt(it,at){var ct=pn&&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&&de(it,at,ht))return!0}}}function de(it,at,ct){if(ct.to==null){var ht=ct.marker.find(1,!0);return de(it,ht.line,Sr(ht.line.markedSpans,ct.marker))}if(ct.marker.inclusiveRight&&ct.to==at.text.length)return!0;for(var pt=void 0,bt=0;bt<at.markedSpans.length;++bt)if(pt=at.markedSpans[bt],pt.marker.collapsed&&!pt.marker.widgetNode&&pt.from==ct.to&&(pt.to==null||pt.to!=ct.from)&&(pt.marker.inclusiveLeft||ct.marker.inclusiveRight)&&de(it,at,pt))return!0}function ue(it){it=je(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 bt=ct.parent;bt;ct=bt,bt=ct.parent)for(var Rt=0;Rt<bt.children.length;++Rt){var Jt=bt.children[Rt];if(Jt==ct)break;at+=Jt.height}return at}function Ge(it){if(it.height==0)return 0;for(var at=it.text.length,ct,ht=it;ct=en(ht);){var pt=ct.find(0,!0);ht=pt.from.line,at+=pt.from.ch-pt.to.ch}for(ht=it;ct=ne(ht);){var bt=ct.find(0,!0);at-=ht.text.length-bt.from.ch,ht=bt.to.line,at+=ht.text.length-bt.to.ch}return at}function Ze(it){var at=it.display,ct=it.doc;at.maxLine=Dn(ct,ct.first),at.maxLineLength=Ge(at.maxLine),at.maxLineChanged=!0,ct.iter(function(ht){var pt=Ge(ht);pt>at.maxLineLength&&(at.maxLineLength=pt,at.maxLine=ht)})}var an=function(it,at,ct){this.text=it,Tt(this,at),this.height=ct?ct(this):1};an.prototype.lineNo=function(){return te(this)},li(an);function kn(it,at,ct,ht){it.text=at,it.stateAfter&&(it.stateAfter=null),it.styles&&(it.styles=null),it.order!=null&&(it.order=null),_e(it),Tt(it,ct);var pt=ht?ht(it):1;pt!=it.height&&qn(it,pt)}function Un(it){it.parent=null,_e(it)}var yn={},si={};function vi(it,at){if(!it||/^\s*$/.test(it))return null;var ct=at.addModeClass?si:yn;return ct[it]||(ct[it]=it.replace(/\S+/g,"cm-$&"))}function le(it,at){var ct=ge("span",null,null,ce?"padding-right: .1px":null),ht={pre:ge("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 bt=pt?at.rest[pt-1]:at.line,Rt=void 0;ht.pos=0,ht.addToken=ni,zi(it.display.measure)&&(Rt=Nn(bt,it.doc.direction))&&(ht.addToken=Vn(ht.addToken,Rt)),ht.map=[];var Jt=at!=it.display.externalMeasured&&te(bt);Di(bt,ht,Tr(it,bt,Jt)),bt.styleClasses&&(bt.styleClasses.bgClass&&(ht.bgClass=wn(bt.styleClasses.bgClass,ht.bgClass||"")),bt.styleClasses.textClass&&(ht.textClass=wn(bt.styleClasses.textClass,ht.textClass||""))),ht.map.length==0&&ht.map.push(0,0,ht.content.appendChild(sr(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(ce){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 Ue(it,"renderLine",it,at.line,ht.pre),ht.pre.className&&(ht.textClass=wn(ht.pre.className,ht.textClass||"")),ht}function ei(it){var at=_t("span","\u2022","cm-invalidchar");return at.title="\\u"+it.charCodeAt(0).toString(16),at.setAttribute("aria-label",at.title),at}function ni(it,at,ct,ht,pt,bt,Rt){if(at){var Jt=it.splitSpaces?Wn(at,it.trailingSpace):at,Ut=it.cm.state.specialChars,fe=!1,vn;if(!Ut.test(at))it.col+=at.length,vn=document.createTextNode(Jt),it.map.push(it.pos,it.pos+at.length,vn),Ee&&jt<9&&(fe=!0),it.pos+=at.length;else{vn=document.createDocumentFragment();for(var Le=0;;){Ut.lastIndex=Le;var $n=Ut.exec(at),Zn=$n?$n.index-Le:at.length-Le;if(Zn){var Yi=document.createTextNode(Jt.slice(Le,Le+Zn));Ee&&jt<9?vn.appendChild(_t("span",[Yi])):vn.appendChild(Yi),it.map.push(it.pos,it.pos+Zn,Yi),it.col+=Zn,it.pos+=Zn}if(!$n)break;Le+=Zn+1;var $i=void 0;if($n[0]==" "){var cr=it.cm.options.tabSize,Dr=cr-it.col%cr;$i=vn.appendChild(_t("span",ve(Dr),"cm-tab")),$i.setAttribute("role","presentation"),$i.setAttribute("cm-text"," "),it.col+=Dr}else $n[0]=="\r"||$n[0]==`
|
|
`?($i=vn.appendChild(_t("span",$n[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),$i.setAttribute("cm-text",$n[0]),it.col+=1):($i=it.cm.options.specialCharPlaceholder($n[0]),$i.setAttribute("cm-text",$n[0]),Ee&&jt<9?vn.appendChild(_t("span",[$i])):vn.appendChild($i),it.col+=1);it.map.push(it.pos,it.pos+1,$i),it.pos++}}if(it.trailingSpace=Jt.charCodeAt(at.length-1)==32,ct||ht||pt||fe||bt||Rt){var $r=ct||"";ht&&($r+=ht),pt&&($r+=pt);var Vr=_t("span",[vn],$r,bt);if(Rt)for(var oo in Rt)Rt.hasOwnProperty(oo)&&oo!="style"&&oo!="class"&&Vr.setAttribute(oo,Rt[oo]);return it.content.appendChild(Vr)}it.content.appendChild(vn)}}function Wn(it,at){if(it.length>1&&!/ /.test(it))return it;for(var ct=at,ht="",pt=0;pt<it.length;pt++){var bt=it.charAt(pt);bt==" "&&ct&&(pt==it.length-1||it.charCodeAt(pt+1)==32)&&(bt="\xA0"),ht+=bt,ct=bt==" "}return ht}function Vn(it,at){return function(ct,ht,pt,bt,Rt,Jt,Ut){pt=pt?pt+" cm-force-border":"cm-force-border";for(var fe=ct.pos,vn=fe+ht.length;;){for(var Le=void 0,$n=0;$n<at.length&&(Le=at[$n],!(Le.to>fe&&Le.from<=fe));$n++);if(Le.to>=vn)return it(ct,ht,pt,bt,Rt,Jt,Ut);it(ct,ht.slice(0,Le.to-fe),pt,bt,null,Jt,Ut),bt=null,ht=ht.slice(Le.to-fe),fe=Le.to}}}function Ni(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 Di(it,at,ct){var ht=it.markedSpans,pt=it.text,bt=0;if(!ht){for(var Rt=1;Rt<ct.length;Rt+=2)at.addToken(at,pt.slice(bt,bt=ct[Rt]),vi(ct[Rt+1],at.cm.options));return}for(var Jt=pt.length,Ut=0,fe=1,vn="",Le,$n,Zn=0,Yi,$i,cr,Dr,$r;;){if(Zn==Ut){Yi=$i=cr=$n="",$r=null,Dr=null,Zn=1/0;for(var Vr=[],oo=void 0,ko=0;ko<ht.length;++ko){var Zr=ht[ko],_o=Zr.marker;if(_o.type=="bookmark"&&Zr.from==Ut&&_o.widgetNode)Vr.push(_o);else if(Zr.from<=Ut&&(Zr.to==null||Zr.to>Ut||_o.collapsed&&Zr.to==Ut&&Zr.from==Ut)){if(Zr.to!=null&&Zr.to!=Ut&&Zn>Zr.to&&(Zn=Zr.to,$i=""),_o.className&&(Yi+=" "+_o.className),_o.css&&($n=($n?$n+";":"")+_o.css),_o.startStyle&&Zr.from==Ut&&(cr+=" "+_o.startStyle),_o.endStyle&&Zr.to==Zn&&(oo||(oo=[])).push(_o.endStyle,Zr.to),_o.title&&(($r||($r={})).title=_o.title),_o.attributes)for(var ja in _o.attributes)($r||($r={}))[ja]=_o.attributes[ja];_o.collapsed&&(!Dr||Se(Dr.marker,_o)<0)&&(Dr=Zr)}else Zr.from>Ut&&Zn>Zr.from&&(Zn=Zr.from)}if(oo)for(var Ss=0;Ss<oo.length;Ss+=2)oo[Ss+1]==Zn&&($i+=" "+oo[Ss]);if(!Dr||Dr.from==Ut)for(var _a=0;_a<Vr.length;++_a)Ni(at,0,Vr[_a]);if(Dr&&(Dr.from||0)==Ut){if(Ni(at,(Dr.to==null?Jt+1:Dr.to)-Ut,Dr.marker,Dr.from==null),Dr.to==null)return;Dr.to==Ut&&(Dr=!1)}}if(Ut>=Jt)break;for(var ul=Math.min(Jt,Zn);;){if(vn){var Ys=Ut+vn.length;if(!Dr){var ps=Ys>ul?vn.slice(0,ul-Ut):vn;at.addToken(at,ps,Le?Le+Yi:Yi,cr,Ut+ps.length==Zn?$i:"",$n,$r)}if(Ys>=ul){vn=vn.slice(ul-Ut),Ut=ul;break}Ut=Ys,cr=""}vn=pt.slice(bt,bt=ct[fe++]),Le=vi(ct[fe++],at.cm.options)}}}function Mi(it,at,ct){this.line=at,this.rest=An(at),this.size=this.rest?te(Ye(this.rest))-ct+1:1,this.node=this.text=null,this.hidden=zt(it,at)}function Ti(it,at,ct){for(var ht=[],pt,bt=at;bt<ct;bt=pt){var Rt=new Mi(it.doc,Dn(it.doc,bt),bt);pt=bt+Rt.size,ht.push(Rt)}return ht}var Ri=null;function or(it){Ri?Ri.ops.push(it):it.ownsGroup=Ri={ops:[it],delayedCallbacks:[]}}function Ir(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 jr(it,at){var ct=it.ownsGroup;if(ct)try{Ir(ct)}finally{Ri=null,at(ct)}}var Hr=null;function Bi(it,at){var ct=bn(it,at);if(ct.length){var ht=Array.prototype.slice.call(arguments,2),pt;Ri?pt=Ri.delayedCallbacks:Hr?pt=Hr:(pt=Hr=[],setTimeout(Ar,0));for(var bt=function(Jt){pt.push(function(){return ct[Jt].apply(null,ht)})},Rt=0;Rt<ct.length;++Rt)bt(Rt)}}function Ar(){var it=Hr;Hr=null;for(var at=0;at<it.length;++at)it[at]()}function wr(it,at,ct,ht){for(var pt=0;pt<at.changes.length;pt++){var bt=at.changes[pt];bt=="text"?ri(it,at):bt=="gutter"?Ji(it,at,ct,ht):bt=="class"?Vi(it,at):bt=="widget"&&lr(it,at,ht)}at.changes=null}function Nr(it){return it.node==it.text&&(it.node=_t("div",null,null,"position: relative"),it.text.parentNode&&it.text.parentNode.replaceChild(it.node,it.text),it.node.appendChild(it.text),Ee&&jt<8&&(it.node.style.zIndex=2)),it.node}function mr(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=Nr(at);at.background=ht.insertBefore(_t("div",null,ct),ht.firstChild),it.display.input.setUneditable(at.background)}}function Rr(it,at){var ct=it.display.externalMeasured;return ct&&ct.line==at.line?(it.display.externalMeasured=null,at.measure=ct.measure,ct.built):le(it,at)}function ri(it,at){var ct=at.text.className,ht=Rr(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,Vi(it,at)):ct&&(at.text.className=ct)}function Vi(it,at){mr(it,at),at.line.wrapClass?Nr(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 Ji(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=Nr(at);at.gutterBackground=_t("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 bt=at.line.gutterMarkers;if(it.options.lineNumbers||bt){var Rt=Nr(at),Jt=at.gutter=_t("div",null,"CodeMirror-gutter-wrapper","left: "+(it.options.fixedGutter?ht.fixedPos:-ht.gutterTotalWidth)+"px");if(it.display.input.setUneditable(Jt),Rt.insertBefore(Jt,at.text),at.line.gutterClass&&(Jt.className+=" "+at.line.gutterClass),it.options.lineNumbers&&(!bt||!bt["CodeMirror-linenumbers"])&&(at.lineNumber=Jt.appendChild(_t("div",Fn(it.options,ct),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+ht.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+it.display.lineNumInnerWidth+"px"))),bt)for(var Ut=0;Ut<it.display.gutterSpecs.length;++Ut){var fe=it.display.gutterSpecs[Ut].className,vn=bt.hasOwnProperty(fe)&&bt[fe];vn&&Jt.appendChild(_t("div",[vn],"CodeMirror-gutter-elt","left: "+ht.gutterLeft[fe]+"px; width: "+ht.gutterWidth[fe]+"px"))}}}function lr(it,at,ct){at.alignable&&(at.alignable=null);for(var ht=It("CodeMirror-linewidget"),pt=at.node.firstChild,bt=void 0;pt;pt=bt)bt=pt.nextSibling,ht.test(pt.className)&&at.node.removeChild(pt);nr(it,at,ct)}function qi(it,at,ct,ht){var pt=Rr(it,at);return at.text=at.node=pt.pre,pt.bgClass&&(at.bgClass=pt.bgClass),pt.textClass&&(at.textClass=pt.textClass),Vi(it,at),Ji(it,at,ct,ht),nr(it,at,ht),at.node}function nr(it,at,ct){if(ki(it,at.line,at,ct,!0),at.rest)for(var ht=0;ht<at.rest.length;ht++)ki(it,at.rest[ht],at,ct,!1)}function ki(it,at,ct,ht,pt){if(at.widgets)for(var bt=Nr(ct),Rt=0,Jt=at.widgets;Rt<Jt.length;++Rt){var Ut=Jt[Rt],fe=_t("div",[Ut.node],"CodeMirror-linewidget"+(Ut.className?" "+Ut.className:""));Ut.handleMouseEvents||fe.setAttribute("cm-ignore-events","true"),Br(Ut,fe,ct,ht),it.display.input.setUneditable(fe),pt&&Ut.above?bt.insertBefore(fe,ct.gutter||ct.text):bt.appendChild(fe),Bi(Ut,"redraw")}}function Br(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 Kr(it){if(it.height!=null)return it.height;var at=it.doc.cm;if(!at)return 0;if(!Pe(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;"),Gt(at.display.measure,_t("div",[it.node],null,ct))}return it.height=it.node.parentNode.offsetHeight}function Qr(it,at){for(var ct=fr(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 Pr(it){return it.lineSpace.offsetTop}function to(it){return it.mover.offsetHeight-it.lineSpace.offsetHeight}function Ur(it){if(it.cachedPaddingH)return it.cachedPaddingH;var at=Gt(it.measure,_t("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 Xr(it){return _n-it.display.nativeBarWidth}function fo(it){return it.display.scroller.clientWidth-Xr(it)-it.display.barWidth}function mo(it){return it.display.scroller.clientHeight-Xr(it)-it.display.barHeight}function Bo(it,at,ct){var ht=it.options.lineWrapping,pt=ht&&fo(it);if(!at.measure.heights||ht&&at.measure.width!=pt){var bt=at.measure.heights=[];if(ht){at.measure.width=pt;for(var Rt=at.text.firstChild.getClientRects(),Jt=0;Jt<Rt.length-1;Jt++){var Ut=Rt[Jt],fe=Rt[Jt+1];Math.abs(Ut.bottom-fe.bottom)>2&&bt.push((Ut.bottom+fe.top)/2-ct.top)}}bt.push(ct.bottom-ct.top)}}function ao(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(te(it.rest[pt])>ct)return{map:it.measure.maps[pt],cache:it.measure.caches[pt],before:!0}}function ia(it,at){at=je(at);var ct=te(at),ht=it.display.externalMeasured=new Mi(it.doc,at,ct);ht.lineN=ct;var pt=ht.built=le(it,ht);return ht.text=pt.pre,Gt(it.display.lineMeasure,pt.pre),ht}function po(it,at,ct,ht){return Vo(it,Po(it,at),ct,ht)}function Jo(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=te(at),ht=Jo(it,ct);ht&&!ht.text?ht=null:ht&&ht.changes&&(wr(it,ht,ct,Pa(it)),it.curOp.forceUpdate=!0),ht||(ht=ia(it,at));var pt=ao(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 bt=ct+(ht||""),Rt;return at.cache.hasOwnProperty(bt)?Rt=at.cache[bt]:(at.rect||(at.rect=at.view.text.getBoundingClientRect()),at.hasHeights||(Bo(it,at.view,at.rect),at.hasHeights=!0),Rt=Lo(it,at,ct,ht),Rt.bogus||(at.cache[bt]=Rt)),{left:Rt.left,right:Rt.right,top:pt?Rt.rtop:Rt.top,bottom:pt?Rt.rbottom:Rt.bottom}}var Go={left:0,right:0,top:0,bottom:0};function Yo(it,at,ct){for(var ht,pt,bt,Rt,Jt,Ut,fe=0;fe<it.length;fe+=3)if(Jt=it[fe],Ut=it[fe+1],at<Jt?(pt=0,bt=1,Rt="left"):at<Ut?(pt=at-Jt,bt=pt+1):(fe==it.length-3||at==Ut&&it[fe+3]>at)&&(bt=Ut-Jt,pt=bt-1,at>=Ut&&(Rt="right")),pt!=null){if(ht=it[fe+2],Jt==Ut&&ct==(ht.insertLeft?"left":"right")&&(Rt=ct),ct=="left"&&pt==0)for(;fe&&it[fe-2]==it[fe-3]&&it[fe-1].insertLeft;)ht=it[(fe-=3)+2],Rt="left";if(ct=="right"&&pt==Ut-Jt)for(;fe<it.length-3&&it[fe+3]==it[fe+4]&&!it[fe+5].insertLeft;)ht=it[(fe+=3)+2],Rt="right";break}return{node:ht,start:pt,end:bt,collapse:Rt,coverStart:Jt,coverEnd:Ut}}function Ro(it,at){var ct=Go;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 Lo(it,at,ct,ht){var pt=Yo(at.map,ct,ht),bt=pt.node,Rt=pt.start,Jt=pt.end,Ut=pt.collapse,fe;if(bt.nodeType==3){for(var vn=0;vn<4;vn++){for(;Rt&&nn(at.line.text.charAt(pt.coverStart+Rt));)--Rt;for(;pt.coverStart+Jt<pt.coverEnd&&nn(at.line.text.charAt(pt.coverStart+Jt));)++Jt;if(Ee&&jt<9&&Rt==0&&Jt==pt.coverEnd-pt.coverStart?fe=bt.parentNode.getBoundingClientRect():fe=Ro(me(bt,Rt,Jt).getClientRects(),ht),fe.left||fe.right||Rt==0)break;Jt=Rt,Rt=Rt-1,Ut="right"}Ee&&jt<11&&(fe=oa(it.display.measure,fe))}else{Rt>0&&(Ut=ht="right");var Le;it.options.lineWrapping&&(Le=bt.getClientRects()).length>1?fe=Le[ht=="right"?Le.length-1:0]:fe=bt.getBoundingClientRect()}if(Ee&&jt<9&&!Rt&&(!fe||!fe.left&&!fe.right)){var $n=bt.parentNode.getClientRects()[0];$n?fe={left:$n.left,right:$n.left+ya(it.display),top:$n.top,bottom:$n.bottom}:fe=Go}for(var Zn=fe.top-at.rect.top,Yi=fe.bottom-at.rect.top,$i=(Zn+Yi)/2,cr=at.view.measure.heights,Dr=0;Dr<cr.length-1&&!($i<cr[Dr]);Dr++);var $r=Dr?cr[Dr-1]:0,Vr=cr[Dr],oo={left:(Ut=="right"?fe.right:fe.left)-at.rect.left,right:(Ut=="left"?fe.left:fe.right)-at.rect.left,top:$r,bottom:Vr};return!fe.left&&!fe.right&&(oo.bogus=!0),it.options.singleCursorHeightPerLine||(oo.rtop=Zn,oo.rbottom=Yi),oo}function oa(it,at){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!fi(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 wa(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 zo(it){it.display.externalMeasure=null,oe(it.display.lineMeasure);for(var at=0;at<it.display.view.length;at++)wa(it.display.view[at])}function Oa(it){zo(it),it.display.cachedCharWidth=it.display.cachedTextHeight=it.display.cachedPaddingH=null,it.options.lineWrapping||(it.display.maxLineChanged=!0),it.display.lineNumChars=null}function bo(){return xe&&nt?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function yo(){return xe&&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+=Kr(it.widgets[ct]));return at}function Qo(it,at,ct,ht,pt){if(!pt){var bt=vo(at);ct.top+=bt,ct.bottom+=bt}if(ht=="line")return ct;ht||(ht="local");var Rt=ue(at);if(ht=="local"?Rt+=Pr(it.display):Rt-=it.display.viewOffset,ht=="page"||ht=="window"){var Jt=it.display.lineSpace.getBoundingClientRect();Rt+=Jt.top+(ht=="window"?0:yo());var Ut=Jt.left+(ht=="window"?0:bo());ct.left+=Ut,ct.right+=Ut}return ct.top+=Rt,ct.bottom+=Rt,ct}function ro(it,at,ct){if(ct=="div")return at;var ht=at.left,pt=at.top;if(ct=="page")ht-=bo(),pt-=yo();else if(ct=="local"||!ct){var bt=it.display.sizer.getBoundingClientRect();ht+=bt.left,pt+=bt.top}var Rt=it.display.lineSpace.getBoundingClientRect();return{left:ht-Rt.left,top:pt-Rt.top}}function ea(it,at,ct,ht,pt){return ht||(ht=Dn(it.doc,at.line)),Qo(it,ht,po(it,ht,at.ch,pt),ct)}function vr(it,at,ct,ht,pt,bt){ht=ht||Dn(it.doc,at.line),pt||(pt=Po(it,ht));function Rt(Yi,$i){var cr=Vo(it,pt,Yi,$i?"right":"left",bt);return $i?cr.left=cr.right:cr.right=cr.left,Qo(it,ht,cr,ct)}var Jt=Nn(ht,it.doc.direction),Ut=at.ch,fe=at.sticky;if(Ut>=ht.text.length?(Ut=ht.text.length,fe="before"):Ut<=0&&(Ut=0,fe="after"),!Jt)return Rt(fe=="before"?Ut-1:Ut,fe=="before");function vn(Yi,$i,cr){var Dr=Jt[$i],$r=Dr.level==1;return Rt(cr?Yi-1:Yi,$r!=cr)}var Le=Qe(Jt,Ut,fe),$n=Ce,Zn=vn(Ut,Le,fe=="before");return $n!=null&&(Zn.other=vn(Ut,$n,fe!="before")),Zn}function ur(it,at){var ct=0;at=Si(it.doc,at),it.options.lineWrapping||(ct=ya(it.display)*at.ch);var ht=Dn(it.doc,at.line),pt=ue(ht)+Pr(it.display);return{left:ct,right:ct,top:pt,bottom:pt+ht.height}}function Lr(it,at,ct,ht,pt){var bt=Be(it,at,ct);return bt.xRel=pt,ht&&(bt.outside=ht),bt}function pr(it,at,ct){var ht=it.doc;if(ct+=it.display.viewOffset,ct<0)return Lr(ht.first,0,null,-1,-1);var pt=be(ht,ct),bt=ht.first+ht.size-1;if(pt>bt)return Lr(ht.first+ht.size-1,Dn(ht,bt).text.length,null,1,1);at<0&&(at=0);for(var Rt=Dn(ht,pt);;){var Jt=Rn(it,Rt,pt,at,ct),Ut=Me(Rt,Jt.ch+(Jt.xRel>0||Jt.outside>0?1:0));if(!Ut)return Jt;var fe=Ut.find(1);if(fe.line==pt)return fe;Rt=Dn(ht,pt=fe.line)}}function wi(it,at,ct,ht){ht-=vo(at);var pt=at.text.length,bt=En(function(Rt){return Vo(it,ct,Rt-1).bottom<=ht},pt,0);return pt=En(function(Rt){return Vo(it,ct,Rt).top>ht},bt,pt),{begin:bt,end:pt}}function Do(it,at,ct,ht){ct||(ct=Po(it,at));var pt=Qo(it,at,Vo(it,ct,ht),"line").top;return wi(it,at,ct,pt)}function pe(it,at,ct,ht){return it.bottom<=ct?!1:it.top>ct?!0:(ht?it.left:it.right)>at}function Rn(it,at,ct,ht,pt){pt-=ue(at);var bt=Po(it,at),Rt=vo(at),Jt=0,Ut=at.text.length,fe=!0,vn=Nn(at,it.doc.direction);if(vn){var Le=(it.options.lineWrapping?ga:ha)(it,at,ct,bt,vn,ht,pt);fe=Le.level!=1,Jt=fe?Le.from:Le.to-1,Ut=fe?Le.to:Le.from-1}var $n=null,Zn=null,Yi=En(function(ko){var Zr=Vo(it,bt,ko);return Zr.top+=Rt,Zr.bottom+=Rt,pe(Zr,ht,pt,!1)?(Zr.top<=pt&&Zr.left<=ht&&($n=ko,Zn=Zr),!0):!1},Jt,Ut),$i,cr,Dr=!1;if(Zn){var $r=ht-Zn.left<Zn.right-ht,Vr=$r==fe;Yi=$n+(Vr?0:1),cr=Vr?"after":"before",$i=$r?Zn.left:Zn.right}else{!fe&&(Yi==Ut||Yi==Jt)&&Yi++,cr=Yi==0?"after":Yi==at.text.length?"before":Vo(it,bt,Yi-(fe?1:0)).bottom+Rt<=pt==fe?"after":"before";var oo=vr(it,Be(ct,Yi,cr),"line",at,bt);$i=oo.left,Dr=pt<oo.top?-1:pt>=oo.bottom?1:0}return Yi=dn(at.text,Yi,1),Lr(ct,Yi,cr,Dr,ht-$i)}function ha(it,at,ct,ht,pt,bt,Rt){var Jt=En(function(Le){var $n=pt[Le],Zn=$n.level!=1;return pe(vr(it,Be(ct,Zn?$n.to:$n.from,Zn?"before":"after"),"line",at,ht),bt,Rt,!0)},0,pt.length-1),Ut=pt[Jt];if(Jt>0){var fe=Ut.level!=1,vn=vr(it,Be(ct,fe?Ut.from:Ut.to,fe?"after":"before"),"line",at,ht);pe(vn,bt,Rt,!0)&&vn.top>Rt&&(Ut=pt[Jt-1])}return Ut}function ga(it,at,ct,ht,pt,bt,Rt){var Jt=wi(it,at,ht,Rt),Ut=Jt.begin,fe=Jt.end;/\s/.test(at.text.charAt(fe-1))&&fe--;for(var vn=null,Le=null,$n=0;$n<pt.length;$n++){var Zn=pt[$n];if(!(Zn.from>=fe||Zn.to<=Ut)){var Yi=Zn.level!=1,$i=Vo(it,ht,Yi?Math.min(fe,Zn.to)-1:Math.max(Ut,Zn.from)).right,cr=$i<bt?bt-$i+1e9:$i-bt;(!vn||Le>cr)&&(vn=Zn,Le=cr)}}return vn||(vn=pt[pt.length-1]),vn.from<Ut&&(vn={from:Ut,to:vn.to,level:vn.level}),vn.to>fe&&(vn={from:vn.from,to:fe,level:vn.level}),vn}var aa;function sa(it){if(it.cachedTextHeight!=null)return it.cachedTextHeight;if(aa==null){aa=_t("pre",null,"CodeMirror-line-like");for(var at=0;at<49;++at)aa.appendChild(document.createTextNode("x")),aa.appendChild(_t("br"));aa.appendChild(document.createTextNode("x"))}Gt(it.measure,aa);var ct=aa.offsetHeight/50;return ct>3&&(it.cachedTextHeight=ct),oe(it.measure),ct||1}function ya(it){if(it.cachedCharWidth!=null)return it.cachedCharWidth;var at=_t("span","xxxxxxxxxx"),ct=_t("pre",[at],"CodeMirror-line-like");Gt(it.measure,ct);var ht=at.getBoundingClientRect(),pt=(ht.right-ht.left)/10;return pt>2&&(it.cachedCharWidth=pt),pt||10}function Pa(it){for(var at=it.display,ct={},ht={},pt=at.gutters.clientLeft,bt=at.gutters.firstChild,Rt=0;bt;bt=bt.nextSibling,++Rt){var Jt=it.display.gutterSpecs[Rt].className;ct[Jt]=bt.offsetLeft+bt.clientLeft+pt,ht[Jt]=bt.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 da(it){var at=sa(it.display),ct=it.options.lineWrapping,ht=ct&&Math.max(5,it.display.scroller.clientWidth/ya(it.display)-3);return function(pt){if(zt(it.doc,pt))return 0;var bt=0;if(pt.widgets)for(var Rt=0;Rt<pt.widgets.length;Rt++)pt.widgets[Rt].height&&(bt+=pt.widgets[Rt].height);return ct?bt+(Math.ceil(pt.text.length/ht)||1)*at:bt+at}}function qr(it){var at=it.doc,ct=da(it);at.iter(function(ht){var pt=ct(ht);pt!=ht.height&&qn(ht,pt)})}function Ya(it,at,ct,ht){var pt=it.display;if(!ct&&fr(at).getAttribute("cm-not-content")=="true")return null;var bt,Rt,Jt=pt.lineSpace.getBoundingClientRect();try{bt=at.clientX-Jt.left,Rt=at.clientY-Jt.top}catch(Le){return null}var Ut=pr(it,bt,Rt),fe;if(ht&&Ut.xRel>0&&(fe=Dn(it.doc,Ut.line).text).length==Ut.ch){var vn=se(fe,fe.length,it.options.tabSize)-fe.length;Ut=Be(Ut.line,Math.max(0,Math.round((bt-Ur(it.display).left)/ya(it.display))-vn))}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 ca(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)pn&&Ct(it.doc,at)<pt.viewTo&&Sa(it);else if(ct<=pt.viewFrom)pn&&Qt(it.doc,ct+ht)>pt.viewFrom?Sa(it):(pt.viewFrom+=ht,pt.viewTo+=ht);else if(at<=pt.viewFrom&&ct>=pt.viewTo)Sa(it);else if(at<=pt.viewFrom){var bt=ds(it,ct,ct+ht,1);bt?(pt.view=pt.view.slice(bt.index),pt.viewFrom=bt.lineN,pt.viewTo+=ht):Sa(it)}else if(ct>=pt.viewTo){var Rt=ds(it,at,at,-1);Rt?(pt.view=pt.view.slice(0,Rt.index),pt.viewTo=Rt.lineN):Sa(it)}else{var Jt=ds(it,at,at,-1),Ut=ds(it,ct,ct+ht,1);Jt&&Ut?(pt.view=pt.view.slice(0,Jt.index).concat(Ti(it,Jt.lineN,Ut.lineN)).concat(pt.view.slice(Ut.index)),pt.viewTo+=ht):Sa(it)}var fe=pt.externalMeasured;fe&&(ct<fe.lineN?fe.lineN+=ht:at<fe.lineN+fe.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 bt=ht.view[es(it,at)];if(bt.node!=null){var Rt=bt.changes||(bt.changes=[]);fn(Rt,ct)==-1&&Rt.push(ct)}}}function Sa(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),bt,Rt=it.display.view;if(!pn||ct==it.doc.first+it.doc.size)return{index:pt,lineN:ct};for(var Jt=it.display.viewFrom,Ut=0;Ut<pt;Ut++)Jt+=Rt[Ut].size;if(Jt!=at){if(ht>0){if(pt==Rt.length-1)return null;bt=Jt+Rt[pt].size-at,pt++}else bt=Jt-at;at+=bt,ct+=bt}for(;Ct(it.doc,ct)!=ct;){if(pt==(ht<0?0:Rt.length-1))return null;ct+=ht*Rt[pt-(ht<0?1:0)].size,pt+=ht}return{index:pt,lineN:ct}}function ua(it,at,ct){var ht=it.display,pt=ht.view;pt.length==0||at>=ht.viewTo||ct<=ht.viewFrom?(ht.view=Ti(it,at,ct),ht.viewFrom=at):(ht.viewFrom>at?ht.view=Ti(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(Ti(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(),bt=ht.selection=document.createDocumentFragment(),Rt=0;Rt<ct.sel.ranges.length;Rt++)if(!(!at&&Rt==ct.sel.primIndex)){var Jt=ct.sel.ranges[Rt];if(!(Jt.from().line>=it.display.viewTo||Jt.to().line<it.display.viewFrom)){var Ut=Jt.empty();(Ut||it.options.showCursorWhenSelecting)&&Ho(it,Jt.head,pt),Ut||To(it,Jt,bt)}}return ht}function Ho(it,at,ct){var ht=vr(it,at,"div",null,null,!it.options.singleCursorHeightPerLine),pt=ct.appendChild(_t("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 bt=ct.appendChild(_t("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));bt.style.display="",bt.style.left=ht.other.left+"px",bt.style.top=ht.other.top+"px",bt.style.height=(ht.other.bottom-ht.other.top)*.85+"px"}}function Fa(it,at){return it.top-at.top||it.left-at.left}function To(it,at,ct){var ht=it.display,pt=it.doc,bt=document.createDocumentFragment(),Rt=Ur(it.display),Jt=Rt.left,Ut=Math.max(ht.sizerWidth,fo(it)-ht.sizer.offsetLeft)-Rt.right,fe=pt.direction=="ltr";function vn(Vr,oo,ko,Zr){oo<0&&(oo=0),oo=Math.round(oo),Zr=Math.round(Zr),bt.appendChild(_t("div",null,"CodeMirror-selected","position: absolute; left: "+Vr+`px;
|
|
top: `+oo+"px; width: "+(ko==null?Ut-Vr:ko)+`px;
|
|
height: `+(Zr-oo)+"px"))}function Le(Vr,oo,ko){var Zr=Dn(pt,Vr),_o=Zr.text.length,ja,Ss;function _a(ps,Pl){return ea(it,Be(Vr,ps),"div",Zr,Pl)}function ul(ps,Pl,Rs){var ms=Do(it,Zr,null,ps),ma=Pl=="ltr"==(Rs=="after")?"left":"right",qa=Rs=="after"?ms.begin:ms.end-(/\s/.test(Zr.text.charAt(ms.end-1))?2:1);return _a(qa,ma)[ma]}var Ys=Nn(Zr,pt.direction);return De(Ys,oo||0,ko==null?_o:ko,function(ps,Pl,Rs,ms){var ma=Rs=="ltr",qa=_a(ps,ma?"left":"right"),As=_a(Pl-1,ma?"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=(fe?zs:su)&&Ja,Bc=(fe?su:zs)&&Jl,Rl=is?Jt:(ma?qa:As).left,Cl=Bc?Ut:(ma?As:qa).right;vn(Rl,qa.top,Cl-Rl,qa.bottom)}else{var hl,Na,Ls,Ru;ma?(hl=fe&&zs&&Ja?Jt:qa.left,Na=fe?Ut:ul(ps,Rs,"before"),Ls=fe?Jt:ul(Pl,Rs,"after"),Ru=fe&&su&&Jl?Ut:As.right):(hl=fe?ul(ps,Rs,"before"):Jt,Na=!fe&&zs&&Ja?Ut:qa.right,Ls=!fe&&su&&Jl?Jt:As.left,Ru=fe?ul(Pl,Rs,"after"):Ut),vn(hl,qa.top,Na-hl,qa.bottom),qa.bottom<As.top&&vn(Jt,qa.bottom,null,As.top),vn(Ls,As.top,Ru-Ls,As.bottom)}(!ja||Fa(qa,ja)<0)&&(ja=qa),Fa(As,ja)<0&&(ja=As),(!Ss||Fa(qa,Ss)<0)&&(Ss=qa),Fa(As,Ss)<0&&(Ss=As)}),{start:ja,end:Ss}}var $n=at.from(),Zn=at.to();if($n.line==Zn.line)Le($n.line,$n.ch,Zn.ch);else{var Yi=Dn(pt,$n.line),$i=Dn(pt,Zn.line),cr=je(Yi)==je($i),Dr=Le($n.line,$n.ch,cr?Yi.text.length+1:null).end,$r=Le(Zn.line,cr?0:null,Zn.ch).start;cr&&(Dr.top<$r.top-2?(vn(Dr.right,Dr.top,null,Dr.bottom),vn(Jt,$r.top,$r.left,$r.bottom)):vn(Dr.right,Dr.top,$r.left-Dr.right,Dr.bottom)),Dr.bottom<$r.top&&vn(Jt,Dr.bottom,null,$r.top)}ct.appendChild(bt)}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 pa(it){it.state.focused||(it.display.input.focus(),qo(it))}function xa(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||(Ue(it,"focus",it,at),it.state.focused=!0,He(it.display.wrapper,"CodeMirror-focused"),!it.curOp&&it.display.selForContextMenu!=it.doc.sel&&(it.display.input.reset(),ce&&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&&(Ue(it,"blur",it,at),it.state.focused=!1,Zt(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],bt=it.options.lineWrapping,Rt=void 0,Jt=0;if(!pt.hidden){if(Ee&&jt<8){var Ut=pt.node.offsetTop+pt.node.offsetHeight;Rt=Ut-ct,ct=Ut}else{var fe=pt.node.getBoundingClientRect();Rt=fe.bottom-fe.top,!bt&&pt.text.firstChild&&(Jt=pt.text.firstChild.getBoundingClientRect().right-fe.left-1)}var vn=pt.line.height-Rt;if((vn>.005||vn<-.005)&&(qn(pt.line,Rt),vu(pt.line),pt.rest))for(var Le=0;Le<pt.rest.length;Le++)vu(pt.rest[Le]);if(Jt>it.display.sizerWidth){var $n=Math.ceil(Jt/ya(it.display));$n>it.display.maxLineLength&&(it.display.maxLineLength=$n,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 Ao(it,at,ct){var ht=ct&&ct.top!=null?Math.max(0,ct.top):it.scroller.scrollTop;ht=Math.floor(ht-Pr(it));var pt=ct&&ct.bottom!=null?ct.bottom:ht+it.wrapper.clientHeight,bt=be(at,ht),Rt=be(at,pt);if(ct&&ct.ensure){var Jt=ct.ensure.from.line,Ut=ct.ensure.to.line;Jt<bt?(bt=Jt,Rt=be(at,ue(Dn(at,Jt))+it.wrapper.clientHeight)):Math.min(Ut,at.lastLine())>=Rt&&(bt=be(at,ue(Dn(at,Ut))-it.wrapper.clientHeight),Rt=Ut)}return{from:bt,to:Math.max(Rt,bt+1)}}function Kl(it,at){if(!cn(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&&!Je){var bt=_t("div","\u200B",null,`position: absolute;
|
|
top: `+(at.top-ct.viewOffset-Pr(it.display))+`px;
|
|
height: `+(at.bottom-at.top+Xr(it)+ct.barHeight)+`px;
|
|
left: `+at.left+"px; width: "+Math.max(2,at.right-at.left)+"px;");it.display.lineSpace.appendChild(bt),bt.scrollIntoView(pt),it.display.lineSpace.removeChild(bt)}}}function qs(it,at,ct,ht){ht==null&&(ht=0);var pt;!it.options.lineWrapping&&at==ct&&(at=at.ch?Be(at.line,at.sticky=="before"?at.ch-1:at.ch,"after"):at,ct=at.sticky=="before"?Be(at.line,at.ch+1,"before"):at);for(var bt=0;bt<5;bt++){var Rt=!1,Jt=vr(it,at),Ut=!ct||ct==at?Jt:vr(it,ct);pt={left:Math.min(Jt.left,Ut.left),top:Math.min(Jt.top,Ut.top)-ht,right:Math.max(Jt.left,Ut.left),bottom:Math.max(Jt.bottom,Ut.bottom)+ht};var fe=yu(it,pt),vn=it.doc.scrollTop,Le=it.doc.scrollLeft;if(fe.scrollTop!=null&&(ml(it,fe.scrollTop),Math.abs(it.doc.scrollTop-vn)>1&&(Rt=!0)),fe.scrollLeft!=null&&(vl(it,fe.scrollLeft),Math.abs(it.doc.scrollLeft-Le)>1&&(Rt=!0)),!Rt)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=sa(it.display);at.top<0&&(at.top=0);var pt=it.curOp&&it.curOp.scrollTop!=null?it.curOp.scrollTop:ct.scroller.scrollTop,bt=mo(it),Rt={};at.bottom-at.top>bt&&(at.bottom=at.top+bt);var Jt=it.doc.height+to(ct),Ut=at.top<ht,fe=at.bottom>Jt-ht;if(at.top<pt)Rt.scrollTop=Ut?0:at.top;else if(at.bottom>pt+bt){var vn=Math.min(at.top,(fe?Jt:at.bottom)-bt);vn!=pt&&(Rt.scrollTop=vn)}var Le=it.options.fixedGutter?0:ct.gutters.offsetWidth,$n=it.curOp&&it.curOp.scrollLeft!=null?it.curOp.scrollLeft:ct.scroller.scrollLeft-Le,Zn=fo(it)-ct.gutters.offsetWidth,Yi=at.right-at.left>Zn;return Yi&&(at.right=at.left+Zn),at.left<10?Rt.scrollLeft=0:at.left<$n?Rt.scrollLeft=Math.max(0,at.left+Le-(Yi?0:10)):at.right>Zn+$n-3&&(Rt.scrollLeft=at.right+(Yi?0:10)-Zn),Rt}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=ur(it,at.from),ht=ur(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+to(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+Xr(it)+at.barHeight,nativeBarWidth:at.nativeBarWidth,gutterWidth:ct}}var Ko=function(it,at,ct){this.cm=ct;var ht=this.vert=_t("div",[_t("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),pt=this.horiz=_t("div",[_t("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");ht.tabIndex=pt.tabIndex=-1,it(ht),it(pt),Tn(ht,"scroll",function(){ht.clientHeight&&at(ht.scrollTop,"vertical")}),Tn(pt,"scroll",function(){pt.clientWidth&&at(pt.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Ee&&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 bt=it.viewWidth-it.barLeft-(ct?ht:0);this.horiz.firstChild.style.width=Math.max(0,it.scrollWidth-it.clientWidth+bt)+"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&&!Kt?"12px":"18px";this.horiz.style.height=this.vert.style.width=it,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Yt,this.disableVert=new Yt},Ko.prototype.enableZeroWidthBar=function(it,at,ct){it.style.pointerEvents="auto";function ht(){var pt=it.getBoundingClientRect(),bt=ct=="vert"?document.elementFromPoint(pt.right-1,(pt.top+pt.bottom)/2):document.elementFromPoint((pt.right+pt.left)/2,pt.bottom-1);bt!=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 ka=function(){};ka.prototype.update=function(){return{bottom:0,right:0}},ka.prototype.setScrollLeft=function(){},ka.prototype.setScrollTop=function(){},ka.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:ka};function yl(it){it.display.scrollbars&&(it.display.scrollbars.clear(),it.display.scrollbars.addClass&&Zt(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),Tn(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&&He(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},or(it.curOp)}function Ua(it){var at=it.curOp;at&&jr(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 bt=0;bt<at.length;bt++)Va(at[bt]);for(var Rt=0;Rt<at.length;Rt++)Qu(at[Rt])}function Dd(it){var at=it.cm,ct=at.display;Vp(at),it.updateMaxLine&&Ze(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=po(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+Xr(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==ye();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&&pa(it.cm)}function Qu(it){var at=it.cm,ct=at.display,ht=at.doc;if(it.updatedDisplay&&Ea(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,Si(ht,it.scrollToPos.from),Si(ht,it.scrollToPos.to),it.scrollToPos.margin);Kl(at,pt)}var bt=it.maybeHiddenMarkers,Rt=it.maybeUnhiddenMarkers;if(bt)for(var Jt=0;Jt<bt.length;++Jt)bt[Jt].lines.length||Ue(bt[Jt],"hide");if(Rt)for(var Ut=0;Ut<Rt.length;++Ut)Rt[Ut].lines.length&&Ue(Rt[Ut],"unhide");ct.wrapper.offsetHeight&&(ht.scrollTop=at.display.scroller.scrollTop),it.changeObjs&&Ue(at,"changes",at,it.changeObjs),it.update&&it.update.finish()}function so(it,at){if(it.curOp)return at();xo(it);try{return at()}finally{Ua(it)}}function co(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 ra(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,Oe(fs,it))}function fs(it){var at=it.doc;if(!(at.highlightFrontier>=it.display.viewTo)){var ct=+new Date+it.options.workTime,ht=_r(it,at.highlightFrontier),pt=[];at.iter(ht.line,Math.min(at.first+at.size,it.display.viewTo+500),function(bt){if(ht.line>=it.display.viewFrom){var Rt=bt.styles,Jt=bt.text.length>it.options.maxHighlightLength?xi(at.mode,ht.state):null,Ut=xr(it,bt,ht,!0);Jt&&(ht.state=Jt),bt.styles=Ut.styles;var fe=bt.styleClasses,vn=Ut.classes;vn?bt.styleClasses=vn:fe&&(bt.styleClasses=null);for(var Le=!Rt||Rt.length!=bt.styles.length||fe!=vn&&(!fe||!vn||fe.bgClass!=vn.bgClass||fe.textClass!=vn.textClass),$n=0;!Le&&$n<Rt.length;++$n)Le=Rt[$n]!=bt.styles[$n];Le&&pt.push(ht.line),bt.stateAfter=ht.save(),ht.nextLine()}else bt.text.length<=it.options.maxHighlightLength&&We(it,bt.text,ht),bt.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&&so(it,function(){for(var bt=0;bt<pt.length;bt++)So(it,pt[bt],"text")})}}var Xh=function(it,at,ct){var ht=it.display;this.viewport=at,this.visible=Ao(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=Pa(it),this.events=[]};Xh.prototype.signal=function(it,at){Xn(it,at)&&this.events.push(arguments)},Xh.prototype.finish=function(){for(var it=0;it<this.events.length;it++)Ue.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=Xr(it)+"px",at.sizer.style.marginBottom=-at.nativeBarWidth+"px",at.sizer.style.borderRightWidth=Xr(it)+"px",at.scrollbarsClipped=!0)}function Gp(it){if(it.hasFocus())return null;var at=ye();if(!at||!Pe(it.display.lineDiv,at))return null;var ct={activeElt:at};if(window.getSelection){var ht=window.getSelection();ht.anchorNode&&ht.extend&&Pe(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==ye())&&(it.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(it.activeElt.nodeName)&&it.anchorNode&&Pe(document.body,it.anchorNode)&&Pe(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 Sa(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)&&(Sa(it),at.dims=Pa(it));var pt=ht.first+ht.size,bt=Math.max(at.visible.from-it.options.viewportMargin,ht.first),Rt=Math.min(pt,at.visible.to+it.options.viewportMargin);ct.viewFrom<bt&&bt-ct.viewFrom<20&&(bt=Math.max(ht.first,ct.viewFrom)),ct.viewTo>Rt&&ct.viewTo-Rt<20&&(Rt=Math.min(pt,ct.viewTo)),pn&&(bt=Ct(it.doc,bt),Rt=Qt(it.doc,Rt));var Jt=bt!=ct.viewFrom||Rt!=ct.viewTo||ct.lastWrapHeight!=at.wrapperHeight||ct.lastWrapWidth!=at.wrapperWidth;ua(it,bt,Rt),ct.viewOffset=ue(Dn(it.doc,ct.viewFrom)),it.display.mover.style.top=ct.viewOffset+"px";var Ut=cs(it);if(!Jt&&Ut==0&&!at.force&&ct.renderedView==ct.view&&(ct.updateLineNumbers==null||ct.updateLineNumbers>=ct.viewTo))return!1;var fe=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(fe),oe(ct.cursorDiv),oe(ct.selectionDiv),ct.gutters.style.height=ct.sizer.style.minHeight=0,Jt&&(ct.lastWrapHeight=at.wrapperHeight,ct.lastWrapWidth=at.wrapperWidth,rs(it,400)),ct.updateLineNumbers=null,!0}function Ea(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+to(it.display)-mo(it),ct.top)}),at.visible=Ao(it.display,it.doc,ct),at.visible.from>=it.display.viewFrom&&at.visible.to<=it.display.viewTo)break}else ht&&(at.visible=Ao(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),Ea(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,bt=ht.lineDiv,Rt=bt.firstChild;function Jt(Yi){var $i=Yi.nextSibling;return ce&&dt&&it.display.currentWheelTarget==Yi?Yi.style.display="none":Yi.parentNode.removeChild(Yi),$i}for(var Ut=ht.view,fe=ht.viewFrom,vn=0;vn<Ut.length;vn++){var Le=Ut[vn];if(!Le.hidden)if(!Le.node||Le.node.parentNode!=bt){var $n=qi(it,Le,fe,ct);bt.insertBefore($n,Rt)}else{for(;Rt!=Le.node;)Rt=Jt(Rt);var Zn=pt&&at!=null&&at<=fe&&Le.lineNumber;Le.changes&&(fn(Le.changes,"gutter")>-1&&(Zn=!1),wr(it,Le,fe,ct)),Zn&&(oe(Le.lineNumber),Le.lineNumber.appendChild(document.createTextNode(Fn(it.options,fe)))),Rt=Le.node.nextSibling}fe+=Le.size}for(;Rt;)Rt=Jt(Rt)}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+Xr(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,bt=ht+"px",Rt=0;Rt<ct.length;Rt++)if(!ct[Rt].hidden){it.options.fixedGutter&&(ct[Rt].gutter&&(ct[Rt].gutter.style.left=bt),ct[Rt].gutterBackground&&(ct[Rt].gutterBackground.style.left=bt));var Jt=ct[Rt].alignable;if(Jt)for(var Ut=0;Ut<Jt.length;Ut++)Jt[Ut].style.left=bt}it.options.fixedGutter&&(at.gutters.style.left=ht+pt+"px")}}function us(it){if(!it.options.lineNumbers)return!1;var at=it.doc,ct=Fn(it.options,at.first+at.size-1),ht=it.display;if(ct.length!=ht.lineNumChars){var pt=ht.measure.appendChild(_t("div",[_t("div",ct)],"CodeMirror-linenumber CodeMirror-gutter-elt")),bt=pt.firstChild.offsetWidth,Rt=pt.offsetWidth-bt;return ht.lineGutter.style.width="",ht.lineNumInnerWidth=Math.max(bt,ht.lineGutter.offsetWidth-Rt)+1,ht.lineNumWidth=ht.lineNumInnerWidth+Rt,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 bt=it[pt],Rt=null;if(typeof bt!="string"&&(Rt=bt.style,bt=bt.className),bt=="CodeMirror-linenumbers")if(at)ht=!0;else continue;ct.push({className:bt,style:Rt})}return at&&!ht&&ct.push({className:"CodeMirror-linenumbers",style:null}),ct}function _h(it){var at=it.gutters,ct=it.gutterSpecs;oe(at),it.lineGutter=null;for(var ht=0;ht<ct.length;++ht){var pt=ct[ht],bt=pt.className,Rt=pt.style,Jt=at.appendChild(_t("div",null,"CodeMirror-gutter "+bt));Rt&&(Jt.style.cssText=Rt),bt=="CodeMirror-linenumbers"&&(it.lineGutter=Jt,Jt.style.width=(it.lineNumWidth||1)+"px")}at.style.display=ct.length?"":"none",mh(it)}function Tl(it){_h(it.display),ca(it),of(it)}function yh(it,at,ct,ht){var pt=this;this.input=ct,pt.scrollbarFiller=_t("div",null,"CodeMirror-scrollbar-filler"),pt.scrollbarFiller.setAttribute("cm-not-content","true"),pt.gutterFiller=_t("div",null,"CodeMirror-gutter-filler"),pt.gutterFiller.setAttribute("cm-not-content","true"),pt.lineDiv=ge("div",null,"CodeMirror-code"),pt.selectionDiv=_t("div",null,null,"position: relative; z-index: 1"),pt.cursorDiv=_t("div",null,"CodeMirror-cursors"),pt.measure=_t("div",null,"CodeMirror-measure"),pt.lineMeasure=_t("div",null,"CodeMirror-measure"),pt.lineSpace=ge("div",[pt.measure,pt.lineMeasure,pt.selectionDiv,pt.cursorDiv,pt.lineDiv],null,"position: relative; outline: none");var bt=ge("div",[pt.lineSpace],"CodeMirror-lines");pt.mover=_t("div",[bt],null,"position: relative"),pt.sizer=_t("div",[pt.mover],"CodeMirror-sizer"),pt.sizerWidth=null,pt.heightForcer=_t("div",null,null,"position: absolute; height: "+_n+"px; width: 1px;"),pt.gutters=_t("div",null,"CodeMirror-gutters"),pt.lineGutter=null,pt.scroller=_t("div",[pt.sizer,pt.heightForcer,pt.gutters],"CodeMirror-scroll"),pt.scroller.setAttribute("tabIndex","-1"),pt.wrapper=_t("div",[pt.scrollbarFiller,pt.gutterFiller,pt.scroller],"CodeMirror"),Ee&&jt<8&&(pt.gutters.style.zIndex=-1,pt.scroller.style.paddingRight=0),!ce&&!(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;Ee?os=-.53:yt?os=15:xe?os=-.7:ze&&(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,bt=it.display,Rt=bt.scroller,Jt=Rt.scrollWidth>Rt.clientWidth,Ut=Rt.scrollHeight>Rt.clientHeight;if(ht&&Jt||pt&&Ut){if(pt&&dt&&ce){t:for(var fe=at.target,vn=bt.view;fe!=Rt;fe=fe.parentNode)for(var Le=0;Le<vn.length;Le++)if(vn[Le].node==fe){it.display.currentWheelTarget=fe;break t}}if(ht&&!yt&&!Lt&&os!=null){pt&&Ut&&ml(it,Math.max(0,Rt.scrollTop+pt*os)),vl(it,Math.max(0,Rt.scrollLeft+ht*os)),(!pt||pt&&Ut)&&Ci(at),bt.wheelStartX=null;return}if(pt&&os!=null){var $n=pt*os,Zn=it.doc.scrollTop,Yi=Zn+bt.wrapper.clientHeight;$n<0?Zn=Math.max(0,Zn+$n-50):Yi=Math.min(it.doc.height,Yi+$n+50),ph(it,{top:Zn,bottom:Yi})}Sl<20&&(bt.wheelStartX==null?(bt.wheelStartX=Rt.scrollLeft,bt.wheelStartY=Rt.scrollTop,bt.wheelDX=ht,bt.wheelDY=pt,setTimeout(function(){if(bt.wheelStartX!=null){var $i=Rt.scrollLeft-bt.wheelStartX,cr=Rt.scrollTop-bt.wheelStartY,Dr=cr&&bt.wheelDY&&cr/bt.wheelDY||$i&&bt.wheelDX&&$i/bt.wheelDX;bt.wheelStartX=bt.wheelStartY=null,Dr&&(os=(os*Sl+Dr)/(Sl+1),++Sl)}},200)):(bt.wheelDX+=ht,bt.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 Aa(Ii(this.ranges[at].anchor),Ii(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(zn(at,ht.from())>=0&&zn(it,ht.to())<=0)return ct}return-1};var Aa=function(it,at){this.anchor=it,this.head=at};Aa.prototype.from=function(){return oi(this.anchor,this.head)},Aa.prototype.to=function(){return Ki(this.anchor,this.head)},Aa.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($n,Zn){return zn($n.from(),Zn.from())}),ct=fn(at,pt);for(var bt=1;bt<at.length;bt++){var Rt=at[bt],Jt=at[bt-1],Ut=zn(Jt.to(),Rt.from());if(ht&&!Rt.empty()?Ut>0:Ut>=0){var fe=oi(Jt.from(),Rt.from()),vn=Ki(Jt.to(),Rt.to()),Le=Jt.empty()?Rt.from()==Rt.head:Jt.from()==Jt.head;bt<=ct&&--ct,at.splice(--bt,2,new Aa(Le?vn:fe,Le?fe:vn))}}return new Ul(at,ct)}function qu(it,at){return new Ul([new Aa(it,at||it)],0)}function Sh(it){return it.text?Be(it.from.line+it.text.length-1,Ye(it.text).length+(it.text.length==1?it.from.ch:0)):it.to}function Jh(it,at){if(zn(it,at.from)<0)return it;if(zn(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),Be(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 Aa(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?Be(ct.line,it.ch-at.ch+ct.ch):Be(ct.line+(it.line-at.line),it.ch)}function fc(it,at,ct){for(var ht=[],pt=Be(it.first,0),bt=pt,Rt=0;Rt<at.length;Rt++){var Jt=at[Rt],Ut=Nd(Jt.from,pt,bt),fe=Nd(Sh(Jt),pt,bt);if(pt=Jt.to,bt=fe,ct=="around"){var vn=it.sel.ranges[Rt],Le=zn(vn.head,vn.anchor)<0;ht[Rt]=new Aa(Le?fe:Ut,Le?Ut:fe)}else ht[Rt]=new Aa(Ut,Ut)}return new Ul(ht,it.sel.primIndex)}function Xo(it){it.doc.mode=Ne(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&&ca(it)}function gg(it,at){return at.from.ch==0&&at.to.ch==0&&Ye(at.text)==""&&(!it.cm||it.cm.options.wholeLineUpdateBefore)}function af(it,at,ct,ht){function pt($r){return ct?ct[$r]:null}function bt($r,Vr,oo){kn($r,Vr,oo,ht),Bi($r,"change",$r,at)}function Rt($r,Vr){for(var oo=[],ko=$r;ko<Vr;++ko)oo.push(new an(fe[ko],pt(ko),ht));return oo}var Jt=at.from,Ut=at.to,fe=at.text,vn=Dn(it,Jt.line),Le=Dn(it,Ut.line),$n=Ye(fe),Zn=pt(fe.length-1),Yi=Ut.line-Jt.line;if(at.full)it.insert(0,Rt(0,fe.length)),it.remove(fe.length,it.size-fe.length);else if(gg(it,at)){var $i=Rt(0,fe.length-1);bt(Le,Le.text,Zn),Yi&&it.remove(Jt.line,Yi),$i.length&&it.insert(Jt.line,$i)}else if(vn==Le)if(fe.length==1)bt(vn,vn.text.slice(0,Jt.ch)+$n+vn.text.slice(Ut.ch),Zn);else{var cr=Rt(1,fe.length-1);cr.push(new an($n+vn.text.slice(Ut.ch),Zn,ht)),bt(vn,vn.text.slice(0,Jt.ch)+fe[0],pt(0)),it.insert(Jt.line+1,cr)}else if(fe.length==1)bt(vn,vn.text.slice(0,Jt.ch)+fe[0]+Le.text.slice(Ut.ch),pt(0)),it.remove(Jt.line+1,Yi);else{bt(vn,vn.text.slice(0,Jt.ch)+fe[0],pt(0)),bt(Le,$n+Le.text.slice(Ut.ch),Zn);var Dr=Rt(1,fe.length-1);Yi>1&&it.remove(Jt.line+1,Yi-1),it.insert(Jt.line+1,Dr)}Bi(it,"change",it,at)}function Pu(it,at,ct){function ht(pt,bt,Rt){if(pt.linked)for(var Jt=0;Jt<pt.linked.length;++Jt){var Ut=pt.linked[Jt];if(Ut.doc!=bt){var fe=Rt&&Ut.sharedHist;ct&&!fe||(at(Ut.doc,fe),ht(Ut.doc,pt,fe))}}}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||Ze(it),it.options.mode=at.modeOption,ca(it)}function pc(it){(it.doc.direction=="rtl"?He:Zt)(it.display.lineDiv,"CodeMirror-rtl")}function iv(it){so(it,function(){pc(it),ca(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:Ii(at.from),to:Sh(at),text:mn(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=Ye(it);if(at.ranges)it.pop();else break}}function mc(it,at){if(at)return Td(it.done),Ye(it.done);if(it.done.length&&!Ye(it.done).ranges)return Ye(it.done);if(it.done.length>1&&!it.done[it.done.length-2].ranges)return it.done.pop(),Ye(it.done)}function vc(it,at,ct,ht){var pt=it.history;pt.undone.length=0;var bt=+new Date,Rt,Jt;if((pt.lastOp==ht||pt.lastOrigin==at.origin&&at.origin&&(at.origin.charAt(0)=="+"&&pt.lastModTime>bt-(it.cm?it.cm.options.historyEventDelay:500)||at.origin.charAt(0)=="*"))&&(Rt=mc(pt,pt.lastOp==ht)))Jt=Ye(Rt.changes),zn(at.from,at.to)==0&&zn(at.from,Jt.to)==0?Jt.to=Sh(at):Rt.changes.push(lf(it,at));else{var Ut=Ye(pt.done);for((!Ut||!Ut.ranges)&&Od(it.sel,pt.done),Rt={changes:[lf(it,at)],generation:pt.generation},pt.done.push(Rt);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=bt,pt.lastOp=pt.lastSelOp=ht,pt.lastOrigin=pt.lastSelOrigin=at.origin,Jt||Ue(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,bt=ht&&ht.origin;ct==pt.lastSelOp||bt&&pt.lastSelOrigin==bt&&(pt.lastModTime==pt.lastSelTime&&pt.lastOrigin==bt||pg(it,bt,Ye(pt.done),at))?pt.done[pt.done.length-1]=at:Od(at,pt.done),pt.lastSelTime=+new Date,pt.lastSelOrigin=bt,pt.lastSelOp=ct,ht&&ht.clearRedo!==!1&&Td(pt.undone)}function Od(it,at){var ct=Ye(at);ct&&ct.ranges&&ct.equals(it)||at.push(it)}function xh(it,at,ct,ht){var pt=at["spans_"+it.id],bt=0;it.iter(Math.max(it.first,ct),Math.min(it.first+it.size,ht),function(Rt){Rt.markedSpans&&((pt||(pt=at["spans_"+it.id]={}))[bt]=Rt.markedSpans),++bt})}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=uo(it,at);if(!ct)return ht;if(!ht)return ct;for(var pt=0;pt<ct.length;++pt){var bt=ct[pt],Rt=ht[pt];if(bt&&Rt)t:for(var Jt=0;Jt<Rt.length;++Jt){for(var Ut=Rt[Jt],fe=0;fe<bt.length;++fe)if(bt[fe].marker==Ut.marker)continue t;bt.push(Ut)}else Rt&&(ct[pt]=Rt)}return ct}function $u(it,at,ct){for(var ht=[],pt=0;pt<it.length;++pt){var bt=it[pt];if(bt.ranges){ht.push(ct?Ul.prototype.deepCopy.call(bt):bt);continue}var Rt=bt.changes,Jt=[];ht.push({changes:Jt});for(var Ut=0;Ut<Rt.length;++Ut){var fe=Rt[Ut],vn=void 0;if(Jt.push({from:fe.from,to:fe.to,text:fe.text}),at)for(var Le in fe)(vn=Le.match(/^spans_(\d+)$/))&&fn(at,Number(vn[1]))>-1&&(Ye(Jt)[Le]=fe[Le],delete fe[Le])}}return ht}function hf(it,at,ct,ht){if(ht){var pt=it.anchor;if(ct){var bt=zn(at,pt)<0;bt!=zn(ct,pt)<0?(pt=at,at=ct):bt!=zn(at,ct)<0&&(at=ct)}return new Aa(pt,at)}else return new Aa(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),bt=0;bt<it.sel.ranges.length;bt++)ht[bt]=hf(it.sel.ranges[bt],at[bt],null,pt);var Rt=au(it.cm,ht,it.sel.primIndex);Ks(it,Rt,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 bt=0;bt<pt.length;bt++)this.ranges[bt]=new Aa(Si(it,pt[bt].anchor),Si(it,pt[bt].head))},origin:ct&&ct.origin};return Ue(it,"beforeSelectionChange",it,ht),it.cm&&Ue(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=Ye(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){(Xn(it,"beforeSelectionChange")||it.cm&&Xn(it.cm,"beforeSelectionChange"))&&(at=Yp(it,at,ct));var ht=ct&&ct.bias||(zn(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,Ln(it.cm)),Bi(it,"cursorActivity",it))}function Sc(it){mg(it,xc(it,it.sel,null,!1))}function xc(it,at,ct,ht){for(var pt,bt=0;bt<at.ranges.length;bt++){var Rt=at.ranges[bt],Jt=at.ranges.length==it.sel.ranges.length&&it.sel.ranges[bt],Ut=wc(it,Rt.anchor,Jt&&Jt.anchor,ct,ht),fe=wc(it,Rt.head,Jt&&Jt.head,ct,ht);(pt||Ut!=Rt.anchor||fe!=Rt.head)&&(pt||(pt=at.ranges.slice(0,bt)),pt[bt]=new Aa(Ut,fe))}return pt?au(it.cm,pt,at.primIndex):at}function th(it,at,ct,ht,pt){var bt=Dn(it,at.line);if(bt.markedSpans)for(var Rt=0;Rt<bt.markedSpans.length;++Rt){var Jt=bt.markedSpans[Rt],Ut=Jt.marker,fe="selectLeft"in Ut?!Ut.selectLeft:Ut.inclusiveLeft,vn="selectRight"in Ut?!Ut.selectRight:Ut.inclusiveRight;if((Jt.from==null||(fe?Jt.from<=at.ch:Jt.from<at.ch))&&(Jt.to==null||(vn?Jt.to>=at.ch:Jt.to>at.ch))){if(pt&&(Ue(Ut,"beforeCursorEnter"),Ut.explicitlyCleared))if(bt.markedSpans){--Rt;continue}else break;if(!Ut.atomic)continue;if(ct){var Le=Ut.find(ht<0?1:-1),$n=void 0;if((ht<0?vn:fe)&&(Le=vg(it,Le,-ht,Le&&Le.line==at.line?bt:null)),Le&&Le.line==at.line&&($n=zn(Le,ct))&&(ht<0?$n<0:$n>0))return th(it,Le,at,ht,pt)}var Zn=Ut.find(ht<0?-1:1);return(ht<0?fe:vn)&&(Zn=vg(it,Zn,ht,Zn.line==at.line?bt:null)),Zn?th(it,Zn,at,ht,pt):null}}return at}function wc(it,at,ct,ht,pt){var bt=ht||1,Rt=th(it,at,ct,bt,pt)||!pt&&th(it,at,ct,bt,!0)||th(it,at,ct,-bt,pt)||!pt&&th(it,at,ct,-bt,!0);return Rt||(it.cantEdit=!0,Be(it.first,0))}function vg(it,at,ct,ht){return ct<0&&at.ch==0?at.line>it.first?Si(it,Be(at.line-1)):null:ct>0&&at.ch==(ht||Dn(it,at.line)).text.length?at.line<it.first+it.size-1?Be(at.line+1,0):null:new Be(at.line,at.ch+ct)}function as(it){it.setSelection(Be(it.firstLine(),0),Be(it.lastLine()),on)}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,bt,Rt,Jt){pt&&(ht.from=Si(it,pt)),bt&&(ht.to=Si(it,bt)),Rt&&(ht.text=Rt),Jt!==void 0&&(ht.origin=Jt)}),Ue(it,"beforeChange",it,ht),it.cm&&Ue(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 co(it.cm,Ph)(it,at,ct);if(it.cm.state.suppressEdits)return}if(!((Xn(it,"beforeChange")||it.cm&&Xn(it.cm,"beforeChange"))&&(at=Pc(it,at,!0),!at))){var ht=Qi&&!ct&&Hn(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]==""&&zn(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,uo(it,at));var ht=[];Pu(it,function(pt,bt){!bt&&fn(ht,pt.history)==-1&&(Sg(pt.history,at),ht.push(pt.history)),Id(pt,at,null,uo(pt,at))})}}function Cc(it,at,ct){var ht=it.cm&&it.cm.state.suppressEdits;if(!(ht&&!ct)){for(var pt=it.history,bt,Rt=it.sel,Jt=at=="undo"?pt.done:pt.undone,Ut=at=="undo"?pt.undone:pt.done,fe=0;fe<Jt.length&&(bt=Jt[fe],!(ct?bt.ranges&&!bt.equals(it.sel):!bt.ranges));fe++);if(fe!=Jt.length){for(pt.lastOrigin=pt.lastSelOrigin=null;;)if(bt=Jt.pop(),bt.ranges){if(Od(bt,Ut),ct&&!bt.equals(it.sel)){Ks(it,bt,{clearRedo:!1});return}Rt=bt}else if(ht){Jt.push(bt);return}else break;var vn=[];Od(Rt,Ut),Ut.push({changes:vn,generation:pt.generation}),pt.generation=bt.generation||++pt.maxGeneration;for(var Le=Xn(it,"beforeChange")||it.cm&&Xn(it.cm,"beforeChange"),$n=function($i){var cr=bt.changes[$i];if(cr.origin=at,Le&&!Pc(it,cr,!1))return Jt.length=0,{};vn.push(lf(it,cr));var Dr=$i?cc(it,cr):Ye(Jt);Id(it,cr,Dr,uf(it,cr)),!$i&&it.cm&&it.cm.scrollIntoView({from:cr.from,to:Sh(cr)});var $r=[];Pu(it,function(Vr,oo){!oo&&fn($r,Vr.history)==-1&&(Sg(Vr.history,cr),$r.push(Vr.history)),Id(Vr,cr,null,uf(Vr,cr))})},Zn=bt.changes.length-1;Zn>=0;--Zn){var Yi=$n(Zn);if(Yi)return Yi.v}}}}function yg(it,at){if(at!=0&&(it.first+=at,it.sel=new Ul(mi(it.sel.ranges,function(pt){return new Aa(Be(pt.anchor.line+at,pt.anchor.ch),Be(pt.head.line+at,pt.head.ch))}),it.sel.primIndex),it.cm)){ca(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 co(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:Be(it.first,0),to:Be(at.to.line+pt,at.to.ch),text:[Ye(at.text)],origin:at.origin}}var bt=it.lastLine();at.to.line>bt&&(at={from:at.from,to:Be(bt,Dn(it,bt).text.length),text:[at.text[0]],origin:at.origin}),at.removed=mn(it,at.from,at.to),ct||(ct=cc(it,at)),it.cm?Up(it.cm,at,ht):af(it,at,ht),qh(it,ct,on),it.cantEdit&&wc(it,Be(it.firstLine(),0))&&(it.cantEdit=!1)}}function Up(it,at,ct){var ht=it.doc,pt=it.display,bt=at.from,Rt=at.to,Jt=!1,Ut=bt.line;it.options.lineWrapping||(Ut=te(je(Dn(ht,bt.line))),ht.iter(Ut,Rt.line+1,function(Zn){if(Zn==pt.maxLine)return Jt=!0,!0})),ht.sel.contains(at.from,at.to)>-1&&Ln(it),af(ht,at,ct,da(it)),it.options.lineWrapping||(ht.iter(Ut,bt.line+at.text.length,function(Zn){var Yi=Ge(Zn);Yi>pt.maxLineLength&&(pt.maxLine=Zn,pt.maxLineLength=Yi,pt.maxLineChanged=!0,Jt=!1)}),Jt&&(it.curOp.updateMaxLine=!0)),ir(ht,bt.line),rs(it,400);var fe=at.text.length-(Rt.line-bt.line)-1;at.full?ca(it):bt.line==Rt.line&&at.text.length==1&&!gg(it.doc,at)?So(it,bt.line,"text"):ca(it,bt.line,Rt.line+1,fe);var vn=Xn(it,"changes"),Le=Xn(it,"change");if(Le||vn){var $n={from:bt,to:Rt,text:at.text,removed:at.removed,origin:at.origin};Le&&Bi(it,"change",it,$n),vn&&(it.curOp.changeObjs||(it.curOp.changeObjs=[])).push($n)}it.display.selForContextMenu=null}function td(it,at,ct,ht,pt){var bt;ht||(ht=ct),zn(ht,ct)<0&&(bt=[ht,ct],ct=bt[0],ht=bt[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 bt=it[pt],Rt=!0;if(bt.ranges){bt.copied||(bt=it[pt]=bt.deepCopy(),bt.copied=!0);for(var Jt=0;Jt<bt.ranges.length;Jt++)Xl(bt.ranges[Jt].anchor,at,ct,ht),Xl(bt.ranges[Jt].head,at,ct,ht);continue}for(var Ut=0;Ut<bt.changes.length;++Ut){var fe=bt.changes[Ut];if(ct<fe.from.line)fe.from=Be(fe.from.line+ht,fe.from.ch),fe.to=Be(fe.to.line+ht,fe.to.ch);else if(at<=fe.to.line){Rt=!1;break}}Rt||(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,bt=at;return typeof at=="number"?bt=Dn(it,gi(it,at)):pt=te(at),pt==null?null:(ht(bt,pt)&&it.cm&&So(it.cm,pt,ct),bt)}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,Un(pt),Bi(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 bt=Math.min(at,pt-it),Rt=ht.height;if(ht.removeInner(it,bt),this.height-=Rt-ht.height,pt==bt&&(this.children.splice(ct--,1),ht.parent=null),(at-=bt)==0)break;it=0}else it-=pt}if(this.size-at<25&&(this.children.length>1||!(this.children[0]instanceof Rd))){var Jt=[];this.collapse(Jt),this.children=[new Rd(Jt)],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],bt=pt.chunkSize();if(it<=bt){if(pt.insertInner(it,at,ct),pt.lines&&pt.lines.length>50){for(var Rt=pt.lines.length%25+25,Jt=Rt;Jt<pt.lines.length;){var Ut=new Rd(pt.lines.slice(Jt,Jt+=25));pt.height-=Ut.height,this.children.splice(++ht,0,Ut),Ut.parent=this}pt.lines=pt.lines.slice(0,Rt),this.maybeSpill()}break}it-=bt}},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=fn(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],bt=pt.chunkSize();if(it<bt){var Rt=Math.min(at,bt-it);if(pt.iterN(it,Rt,ct))return!0;if((at-=Rt)==0)break;it=0}else it-=bt}}};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=te(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 bt=Kr(this);qn(ct,Math.max(0,ct.height-bt)),it&&(so(it,function(){_p(it,ct,-bt),So(it,ht,"widget")}),Bi(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=Kr(this)-at;pt&&(zt(this.doc,ht)||qn(ht,ht.height+pt),ct&&so(ct,function(){ct.curOp.forceUpdate=!0,_p(ct,ht,pt),Bi(ct,"lineWidgetChanged",ct,it,te(ht))}))},li(eh);function _p(it,at,ct){ue(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),bt=it.cm;return bt&&pt.noHScroll&&(bt.display.alignWidgets=!0),ed(it,at,"widget",function(Rt){var Jt=Rt.widgets||(Rt.widgets=[]);if(pt.insertAt==null?Jt.push(pt):Jt.splice(Math.min(Jt.length-1,Math.max(0,pt.insertAt)),0,pt),pt.line=Rt,bt&&!zt(it,Rt)){var Ut=ue(Rt)<it.scrollTop;qn(Rt,Rt.height+Kr(pt)),Ut&&Su(bt,pt.height),bt.curOp.forceUpdate=!0}return!0}),bt&&Bi(bt,"lineWidgetAdded",bt,pt,typeof at=="number"?at:te(at)),pt}var Jp=0,$e=function(it,at){this.lines=[],this.type=at,this.doc=it,this.id=++Jp};$e.prototype.clear=function(){if(!this.explicitlyCleared){var it=this.doc.cm,at=it&&!it.curOp;if(at&&xo(it),Xn(this,"clear")){var ct=this.find();ct&&Bi(this,"clear",ct.from,ct.to)}for(var ht=null,pt=null,bt=0;bt<this.lines.length;++bt){var Rt=this.lines[bt],Jt=Sr(Rt.markedSpans,this);it&&!this.collapsed?So(it,te(Rt),"text"):it&&(Jt.to!=null&&(pt=te(Rt)),Jt.from!=null&&(ht=te(Rt))),Rt.markedSpans=Er(Rt.markedSpans,Jt),Jt.from==null&&this.collapsed&&!zt(this.doc,Rt)&&it&&qn(Rt,sa(it.display))}if(it&&this.collapsed&&!it.options.lineWrapping)for(var Ut=0;Ut<this.lines.length;++Ut){var fe=je(this.lines[Ut]),vn=Ge(fe);vn>it.display.maxLineLength&&(it.display.maxLine=fe,it.display.maxLineLength=vn,it.display.maxLineChanged=!0)}ht!=null&&it&&this.collapsed&&ca(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&&Bi(it,"markerCleared",it,this,ht,pt),at&&Ua(it),this.parent&&this.parent.clear()}},$e.prototype.find=function(it,at){it==null&&this.type=="bookmark"&&(it=1);for(var ct,ht,pt=0;pt<this.lines.length;++pt){var bt=this.lines[pt],Rt=Sr(bt.markedSpans,this);if(Rt.from!=null&&(ct=Be(at?bt:te(bt),Rt.from),it==-1))return ct;if(Rt.to!=null&&(ht=Be(at?bt:te(bt),Rt.to),it==1))return ht}return ct&&{from:ct,to:ht}},$e.prototype.changed=function(){var it=this,at=this.find(-1,!0),ct=this,ht=this.doc.cm;!at||!ht||so(ht,function(){var pt=at.line,bt=te(at.line),Rt=Jo(ht,bt);if(Rt&&(wa(Rt),ht.curOp.selectionChanged=ht.curOp.forceUpdate=!0),ht.curOp.updateMaxLine=!0,!zt(ct.doc,pt)&&ct.height!=null){var Jt=ct.height;ct.height=null;var Ut=Kr(ct)-Jt;Ut&&qn(pt,pt.height+Ut)}Bi(ht,"markerChanged",ht,it)})},$e.prototype.attachLine=function(it){if(!this.lines.length&&this.doc.cm){var at=this.doc.cm.curOp;(!at.maybeHiddenMarkers||fn(at.maybeHiddenMarkers,this)==-1)&&(at.maybeUnhiddenMarkers||(at.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(it)},$e.prototype.detachLine=function(it){if(this.lines.splice(fn(this.lines,it),1),!this.lines.length&&this.doc.cm){var at=this.doc.cm.curOp;(at.maybeHiddenMarkers||(at.maybeHiddenMarkers=[])).push(this)}},li($e);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 co(it.cm,nd)(it,at,ct,ht,pt);var bt=new $e(it,pt),Rt=zn(at,ct);if(ht&&Sn(ht,bt,!1),Rt>0||Rt==0&&bt.clearWhenEmpty!==!1)return bt;if(bt.replacedWith&&(bt.collapsed=!0,bt.widgetNode=ge("span",[bt.replacedWith],"CodeMirror-widget"),ht.handleMouseEvents||bt.widgetNode.setAttribute("cm-ignore-events","true"),ht.insertLeft&&(bt.widgetNode.insertLeft=!0)),bt.collapsed){if(Ke(it,at.line,at,ct,bt)||at.line!=ct.line&&Ke(it,ct.line,at,ct,bt))throw new Error("Inserting collapsed marker partially overlapping an existing one");xn()}bt.addToHistory&&vc(it,{from:at,to:ct,origin:"markText"},it.sel,NaN);var Jt=at.line,Ut=it.cm,fe;if(it.iter(Jt,ct.line+1,function(Le){Ut&&bt.collapsed&&!Ut.options.lineWrapping&&je(Le)==Ut.display.maxLine&&(fe=!0),bt.collapsed&&Jt!=at.line&&qn(Le,0),io(Le,new bi(bt,Jt==at.line?at.ch:null,Jt==ct.line?ct.ch:null)),++Jt}),bt.collapsed&&it.iter(at.line,ct.line+1,function(Le){zt(it,Le)&&qn(Le,0)}),bt.clearOnEnter&&Tn(bt,"beforeCursorEnter",function(){return bt.clear()}),bt.readOnly&&(dr(),(it.history.done.length||it.history.undone.length)&&it.clearHistory()),bt.collapsed&&(bt.id=++Jp,bt.atomic=!0),Ut){if(fe&&(Ut.curOp.updateMaxLine=!0),bt.collapsed)ca(Ut,at.line,ct.line+1);else if(bt.className||bt.startStyle||bt.endStyle||bt.css||bt.attributes||bt.title)for(var vn=at.line;vn<=ct.line;vn++)So(Ut,vn,"text");bt.atomic&&Sc(Ut.doc),Bi(Ut,"markerAdded",Ut,bt)}return bt}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();Bi(this,"clear")}},Tu.prototype.find=function(it,at){return this.primary.find(it,at)},li(Tu);function Qp(it,at,ct,ht,pt){ht=Sn(ht),ht.shared=!1;var bt=[nd(it,at,ct,ht,pt)],Rt=bt[0],Jt=ht.widgetNode;return Pu(it,function(Ut){Jt&&(ht.widgetNode=Jt.cloneNode(!0)),bt.push(nd(Ut,Si(Ut,at),Si(Ut,ct),ht,pt));for(var fe=0;fe<Ut.linked.length;++fe)if(Ut.linked[fe].isParent)return;Rt=Ye(bt)}),new Tu(bt,Rt)}function xg(it){return it.findMarks(Be(it.first,0),it.clipPos(Be(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(),bt=it.clipPos(pt.from),Rt=it.clipPos(pt.to);if(zn(bt,Rt)){var Jt=nd(it,bt,Rt,ht.primary,ht.primary.type);ht.markers.push(Jt),Jt.parent=ht}}}function wg(it){for(var at=function(ht){var pt=it[ht],bt=[pt.primary.doc];Pu(pt.primary.doc,function(Ut){return bt.push(Ut)});for(var Rt=0;Rt<pt.markers.length;Rt++){var Jt=pt.markers[Rt];fn(bt,Jt.doc)==-1&&(Jt.parent=null,pt.markers.splice(Rt--,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 an("",null)])]),this.first=ct,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=ct;var bt=Be(ct,0);this.sel=qu(bt),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:bt,to:bt,text:it}),Ks(this,qu(bt),on)};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=Hi(this,this.first,this.first+this.size);return it===!1?at:at.join(it||this.lineSeparator())},setValue:ra(function(it){var at=Be(this.first,0),ct=this.first+this.size-1;Ph(this,{from:at,to:Be(ct,Dn(this,ct).text.length),text:this.splitLines(it),origin:"setValue",full:!0},!0),this.cm&&Yl(this.cm,0,0),Ks(this,qu(at),on)}),replaceRange:function(it,at,ct,ht){at=Si(this,at),ct=ct?Si(this,ct):at,td(this,it,at,ct,ht)},getRange:function(it,at,ct){var ht=mn(this,Si(this,it),Si(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(Jn(this,it))return Dn(this,it)},getLineNumber:function(it){return te(it)},getLineHandleVisualStart:function(it){return typeof it=="number"&&(it=Dn(this,it)),je(it)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(it){return Si(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:ra(function(it,at,ct){Qh(this,Si(this,typeof it=="number"?Be(it,at||0):it),null,ct)}),setSelection:ra(function(it,at,ct){Qh(this,Si(this,it),Si(this,at||it),ct)}),extendSelection:ra(function(it,at,ct){df(this,Si(this,it),at&&Si(this,at),ct)}),extendSelections:ra(function(it,at){Kp(this,ji(this,it),at)}),extendSelectionsBy:ra(function(it,at){var ct=mi(this.sel.ranges,it);Kp(this,ji(this,ct),at)}),setSelections:ra(function(it,at,ct){if(it.length){for(var ht=[],pt=0;pt<it.length;pt++)ht[pt]=new Aa(Si(this,it[pt].anchor),Si(this,it[pt].head));at==null&&(at=Math.min(it.length-1,this.sel.primIndex)),Ks(this,au(this.cm,ht,at),ct)}}),addSelection:ra(function(it,at,ct){var ht=this.sel.ranges.slice(0);ht.push(new Aa(Si(this,it),Si(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=mn(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=mn(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:ra(function(it,at,ct){for(var ht=[],pt=this.sel,bt=0;bt<pt.ranges.length;bt++){var Rt=pt.ranges[bt];ht[bt]={from:Rt.from(),to:Rt.to(),text:this.splitLines(it[bt]),origin:ct}}for(var Jt=at&&at!="end"&&fc(this,ht,at),Ut=ht.length-1;Ut>=0;Ut--)Ph(this,ht[Ut]);Jt?cf(this,Jt):this.cm&&Vs(this.cm)}),undo:ra(function(){Cc(this,"undo")}),redo:ra(function(){Cc(this,"redo")}),undoSelection:ra(function(){Cc(this,"undo",!0)}),redoSelection:ra(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:ra(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:ra(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(!Jn(this,it)||(at=it,it=Dn(this,it),!it))return null}else if(at=te(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:ra(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:ra(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",bt=ht[pt];if(bt)if(ct==null)ht[pt]=null;else{var Rt=bt.match(It(ct));if(!Rt)return!1;var Jt=Rt.index+Rt[0].length;ht[pt]=bt.slice(0,Rt.index)+(!Rt.index||Jt==bt.length?"":" ")+bt.slice(Jt)||null}else return!1;return!0})}),addLineWidget:ra(function(it,at,ct){return ff(this,it,at,ct)}),removeLineWidget:function(it){it.clear()},markText:function(it,at,ct){return nd(this,Si(this,it),Si(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=Si(this,it),nd(this,it,it,ct,"bookmark")},findMarksAt:function(it){it=Si(this,it);var at=[],ct=Dn(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=Si(this,it),at=Si(this,at);var ht=[],pt=it.line;return this.iter(it.line,at.line+1,function(bt){var Rt=bt.markedSpans;if(Rt)for(var Jt=0;Jt<Rt.length;Jt++){var Ut=Rt[Jt];!(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 bt=pt.text.length+ht;if(bt>it)return at=it,!0;it-=bt,++ct}),Si(this,Be(ct,at))},indexFromPos:function(it){it=Si(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(Hi(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(Hi(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 fa&&(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):gr(it)},lineSeparator:function(){return this.lineSep||`
|
|
`},setDirection:ra(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),!(cn(at,it)||Qr(at.display,it))){Ci(it),Ee&&(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,bt=Array(pt),Rt=0,Jt=function(){++Rt==pt&&co(at,function(){ct=Si(at.doc,ct);var Zn={from:ct,to:ct,text:at.doc.splitLines(bt.filter(function(Yi){return Yi!=null}).join(at.doc.lineSeparator())),origin:"paste"};Ph(at.doc,Zn),cf(at.doc,qu(Si(at.doc,ct),Si(at.doc,Sh(Zn))))})()},Ut=function(Zn,Yi){if(at.options.allowDropFileTypes&&fn(at.options.allowDropFileTypes,Zn.type)==-1){Jt();return}var $i=new FileReader;$i.onerror=function(){return Jt()},$i.onload=function(){var cr=$i.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(cr)){Jt();return}bt[Yi]=cr,Jt()},$i.readAsText(Zn)},fe=0;fe<ht.length;fe++)Ut(ht[fe],fe);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 vn=it.dataTransfer.getData("Text");if(vn){var Le;if(at.state.draggingText&&!at.state.draggingText.copy&&(Le=at.listSelections()),qh(at.doc,qu(ct,ct)),Le)for(var $n=0;$n<Le.length;++$n)td(at.doc,"",Le[$n].anchor,Le[$n].head,"drag");at.replaceSelection(vn,"around","paste"),at.display.input.focus()}}catch(Zn){}}}}function $p(it,at){if(Ee&&(!it.state.draggingText||+new Date-Ec<100)){_i(at);return}if(!(cn(it,at)||Qr(it.display,at))&&(at.dataTransfer.setData("Text",it.getSelection()),at.dataTransfer.effectAllowed="copyMove",at.dataTransfer.setDragImage&&!ze)){var ct=_t("img",null,null,"position: fixed; left: 0; top: 0;");ct.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",Lt&&(ct.width=ct.height=1,it.display.wrapper.appendChild(ct),ct._top=ct.offsetTop),at.dataTransfer.setDragImage(ct,0,0),Lt&&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=_t("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),it.display.lineSpace.insertBefore(it.display.dragCursor,it.display.cursorDiv)),Gt(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 bt=0;bt<ct.length;bt++)it(ct[bt])})}}var Cg=!1;function Il(){Cg||(zd(),Cg=!0)}function zd(){var it;Tn(window,"resize",function(){it==null&&(it=setTimeout(function(){it=null,nm(Eg)},100))}),Tn(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,bt,Rt=0;Rt<at.length-1;Rt++){var Jt=at[Rt];if(/^(cmd|meta|m)$/i.test(Jt))bt=!0;else if(/^a(lt)?$/i.test(Jt))ct=!0;else if(/^(c|ctrl|control)$/i.test(Jt))ht=!0;else if(/^s(hift)?$/i.test(Jt))pt=!0;else throw new Error("Unrecognized modifier name: "+Jt)}return ct&&(it="Alt-"+it),ht&&(it="Ctrl-"+it),bt&&(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=mi(ct.split(" "),Ag),bt=0;bt<pt.length;bt++){var Rt=void 0,Jt=void 0;bt==pt.length-1?(Jt=pt.join(" "),Rt=ht):(Jt=pt.slice(0,bt+1).join(" "),Rt="...");var Ut=at[Jt];if(!Ut)at[Jt]=Rt;else if(Ut!=Rt)throw new Error("Inconsistent bindings for "+Jt)}delete it[ct]}for(var fe in at)it[fe]=at[fe];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 bt=0;bt<at.fallthrough.length;bt++){var Rt=_l(it,at.fallthrough[bt],ct,ht);if(Rt)return Rt}}}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(Lt&&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 bt=at(ct[pt]);ht.length&&zn(bt.from,Ye(ht).to)<=0;){var Rt=ht.pop();if(zn(Rt.from,bt.from)<0){bt.from=Rt.from;break}}ht.push(bt)}so(it,function(){for(var Jt=ht.length-1;Jt>=0;Jt--)td(it.doc,"",ht[Jt].from,ht[Jt].to,"+delete");Vs(it)})}function Mg(it,at,ct){var ht=dn(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 Be(at.line,ht,ct<0?"after":"before")}function bc(it,at,ct,ht,pt){if(it){at.doc.direction=="rtl"&&(pt=-pt);var bt=Nn(ct,at.doc.direction);if(bt){var Rt=pt<0?Ye(bt):bt[0],Jt=pt<0==(Rt.level==1),Ut=Jt?"after":"before",fe;if(Rt.level>0||at.doc.direction=="rtl"){var vn=Po(at,ct);fe=pt<0?ct.text.length-1:0;var Le=Vo(at,vn,fe).top;fe=En(function($n){return Vo(at,vn,$n).top==Le},pt<0==(Rt.level==1)?Rt.from:Rt.to-1,fe),Ut=="before"&&(fe=Mg(ct,fe,1))}else fe=pt<0?Rt.to:Rt.from;return new Be(ht,fe,Ut)}}return new Be(ht,pt<0?ct.text.length:0,pt<0?"before":"after")}function pf(it,at,ct,ht){var pt=Nn(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 bt=Qe(pt,ct.ch,ct.sticky),Rt=pt[bt];if(it.doc.direction=="ltr"&&Rt.level%2==0&&(ht>0?Rt.to>ct.ch:Rt.from<ct.ch))return ss(at,ct,ht);var Jt=function(Dr,$r){return Mg(at,Dr instanceof Be?Dr.ch:Dr,$r)},Ut,fe=function(Dr){return it.options.lineWrapping?(Ut=Ut||Po(it,at),Do(it,at,Ut,Dr)):{begin:0,end:at.text.length}},vn=fe(ct.sticky=="before"?Jt(ct,-1):ct.ch);if(it.doc.direction=="rtl"||Rt.level==1){var Le=Rt.level==1==ht<0,$n=Jt(ct,Le?1:-1);if($n!=null&&(Le?$n<=Rt.to&&$n<=vn.end:$n>=Rt.from&&$n>=vn.begin)){var Zn=Le?"before":"after";return new Be(ct.line,$n,Zn)}}var Yi=function(Dr,$r,Vr){for(var oo=function(ja,Ss){return Ss?new Be(ct.line,Jt(ja,1),"before"):new Be(ct.line,ja,"after")};Dr>=0&&Dr<pt.length;Dr+=$r){var ko=pt[Dr],Zr=$r>0==(ko.level!=1),_o=Zr?Vr.begin:Jt(Vr.end,-1);if(ko.from<=_o&&_o<ko.to||(_o=Zr?ko.from:Jt(ko.to,-1),Vr.begin<=_o&&_o<Vr.end))return oo(_o,Zr)}},$i=Yi(bt+ht,ht,vn);if($i)return $i;var cr=ht>0?vn.end:Jt(vn.begin,-1);return cr!=null&&!(ht>0&&cr==at.text.length)&&($i=Yi(ht>0?0:pt.length-1,ht,fe(cr)),$i)?$i:null}var Ch={selectAll:as,singleSelection:function(it){return it.setSelection(it.getCursor("anchor"),it.getCursor("head"),on)},killLine:function(it){return wl(it,function(at){if(at.empty()){var ct=Dn(it.doc,at.head.line).text.length;return at.head.ch==ct&&at.head.line<it.lastLine()?{from:at.head,to:Be(at.head.line+1,0)}:{from:at.head,to:Be(at.head.line,ct)}}else return{from:at.from(),to:at.to()}})},deleteLine:function(it){return wl(it,function(at){return{from:Be(at.from().line,0),to:Si(it.doc,Be(at.to().line+1,0))}})},delLineLeft:function(it){return wl(it,function(at){return{from:Be(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(Be(it.firstLine(),0))},goDocEnd:function(it){return it.extendSelection(Be(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")},Pn)},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")},Pn)},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},Pn)},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 bt=ct[pt].from(),Rt=se(it.getLine(bt.line),bt.ch,ht);at.push(ve(ht-Rt%ht))}it.replaceSelections(at)},defaultTab:function(it){it.somethingSelected()?it.indentSelection("add"):it.execCommand("insertTab")},transposeChars:function(it){return so(it,function(){for(var at=it.listSelections(),ct=[],ht=0;ht<at.length;ht++)if(at[ht].empty()){var pt=at[ht].head,bt=Dn(it.doc,pt.line).text;if(bt){if(pt.ch==bt.length&&(pt=new Be(pt.line,pt.ch-1)),pt.ch>0)pt=new Be(pt.line,pt.ch+1),it.replaceRange(bt.charAt(pt.ch-1)+bt.charAt(pt.ch-2),Be(pt.line,pt.ch-2),pt,"+transpose");else if(pt.line>it.doc.first){var Rt=Dn(it.doc,pt.line-1).text;Rt&&(pt=new Be(pt.line,1),it.replaceRange(bt.charAt(0)+it.doc.lineSeparator()+Rt.charAt(Rt.length-1),Be(pt.line-1,Rt.length-1),pt,"+transpose"))}}ct.push(new Aa(pt,pt))}it.setSelections(ct)})},newlineAndIndent:function(it){return so(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=Dn(it.doc,at),ht=je(ct);return ht!=ct&&(at=te(ht)),bc(!0,it,ht,at,1)}function Hd(it,at){var ct=Dn(it.doc,at),ht=hn(ct);return ht!=ct&&(at=te(ht)),bc(!0,it,ct,at,-1)}function kg(it,at){var ct=Wd(it,at.line),ht=Dn(it.doc,ct.line),pt=Nn(ht,it.doc.direction);if(!pt||pt[0].level==0){var bt=Math.max(ct.ch,ht.text.search(/\S/)),Rt=at.line==ct.line&&at.ch<=bt&&at.ch;return Be(ct.line,Rt?0:bt,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)!=In}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 Yt;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"&&Bi(it,"keyHandled",it,at,ct),(pt=="handled"||pt=="multi")&&(Ci(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=ye(),!cn(at,it))){Ee&&jt<11&&it.keyCode==27&&(it.returnValue=!1);var ct=it.keyCode;at.display.shift=ct==16||it.shiftKey;var ht=vf(at,it);Lt&&(od=ht?ct:null,!ht&&ct==88&&!Bn&&(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;He(at,"CodeMirror-crosshair");function ct(ht){(ht.keyCode==18||!ht.altKey)&&(Zt(at,"CodeMirror-crosshair"),Ie(document,"keyup",ct),Ie(document,"mouseover",ct))}Tn(document,"keyup",ct),Tn(document,"mouseover",ct)}function Bg(it){it.keyCode==16&&(this.doc.sel.shift=!1),cn(this,it)}function Cu(it){var at=this;if(!(it.target&&it.target!=at.display.input.getField())&&!(Qr(at.display,it)||cn(at,it)||it.ctrlKey&&!it.altKey||dt&&it.metaKey)){var ct=it.keyCode,ht=it.charCode;if(Lt&&ct==od){od=null,Ci(it);return}if(!(Lt&&(!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&&zn(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(!(cn(at,it)||ct.activeTouch&&ct.input.supportsTouch())){if(ct.input.ensurePolled(),ct.shift=it.shiftKey,Qr(ct,it)){ce||(ct.scroller.draggable=!1,setTimeout(function(){return ct.scroller.draggable=!0},100));return}if(!wf(at,it)){var ht=Ya(at,it),pt=tr(it),bt=ht?Og(ht,pt):"single";window.focus(),pt==1&&at.state.selectingText&&at.state.selectingText(it),!(ht&&Ig(at,pt,ht,bt,it))&&(pt==1?ht?om(at,ht,bt,it):fr(it)==ct.scroller&&Ci(it):pt==2?(ht&&df(at.doc,ht),setTimeout(function(){return ct.input.focus()},20)):pt==3&&(Mt?at.display.input.onContextMenu(it):xa(at)))}}}function Ig(it,at,ct,ht,pt){var bt="Click";return ht=="double"?bt="Double"+bt:ht=="triple"&&(bt="Triple"+bt),bt=(at==1?"Left":at==2?"Middle":"Right")+bt,rd(it,bg(bt,pt),pt,function(Rt){if(typeof Rt=="string"&&(Rt=Ch[Rt]),!Rt)return!1;var Jt=!1;try{it.isReadOnly()&&(it.state.suppressEdits=!0),Jt=Rt(it,ct)!=In}finally{it.state.suppressEdits=!1}return Jt})}function Sf(it,at,ct){var ht=it.getOption("configureMouse"),pt=ht?ht(it,at,ct):{};if(pt.unit==null){var bt=lt?ct.shiftKey&&ct.metaKey:ct.altKey;pt.unit=bt?"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){Ee?setTimeout(Oe(pa,it),0):it.curOp.focus=ye();var pt=Sf(it,ct,ht),bt=it.doc.sel,Rt;it.options.dragDrop&&er&&!it.isReadOnly()&&ct=="single"&&(Rt=bt.contains(at))>-1&&(zn((Rt=bt.ranges[Rt]).from(),at)<0||at.xRel>0)&&(zn(Rt.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,bt=!1,Rt=co(it,function(fe){ce&&(pt.scroller.draggable=!1),it.state.draggingText=!1,Ie(pt.wrapper.ownerDocument,"mouseup",Rt),Ie(pt.wrapper.ownerDocument,"mousemove",Jt),Ie(pt.scroller,"dragstart",Ut),Ie(pt.scroller,"drop",Rt),bt||(Ci(fe),ht.addNew||df(it.doc,ct,null,null,ht.extend),ce&&!ze||Ee&&jt==9?setTimeout(function(){pt.wrapper.ownerDocument.body.focus({preventScroll:!0}),pt.input.focus()},20):pt.input.focus())}),Jt=function(fe){bt=bt||Math.abs(at.clientX-fe.clientX)+Math.abs(at.clientY-fe.clientY)>=10},Ut=function(){return bt=!0};ce&&(pt.scroller.draggable=!0),it.state.draggingText=Rt,Rt.copy=!ht.moveOnDrag,pt.scroller.dragDrop&&pt.scroller.dragDrop(),Tn(pt.wrapper.ownerDocument,"mouseup",Rt),Tn(pt.wrapper.ownerDocument,"mousemove",Jt),Tn(pt.scroller,"dragstart",Ut),Tn(pt.scroller,"drop",Rt),xa(it),setTimeout(function(){return pt.input.focus()},20)}function zg(it,at,ct){if(ct=="char")return new Aa(at,at);if(ct=="word")return it.findWordAt(at);if(ct=="line")return new Aa(Be(at.line,0),Si(it.doc,Be(at.line+1,0)));var ht=ct(it,at);return new Aa(ht.from,ht.to)}function ov(it,at,ct,ht){var pt=it.display,bt=it.doc;Ci(at);var Rt,Jt,Ut=bt.sel,fe=Ut.ranges;if(ht.addNew&&!ht.extend?(Jt=bt.sel.contains(ct),Jt>-1?Rt=fe[Jt]:Rt=new Aa(ct,ct)):(Rt=bt.sel.primary(),Jt=bt.sel.primIndex),ht.unit=="rectangle")ht.addNew||(Rt=new Aa(ct,ct)),ct=Ya(it,at,!0,!0),Jt=-1;else{var vn=zg(it,ct,ht.unit);ht.extend?Rt=hf(Rt,vn.anchor,vn.head,ht.extend):Rt=vn}ht.addNew?Jt==-1?(Jt=fe.length,Ks(bt,au(it,fe.concat([Rt]),Jt),{scroll:!1,origin:"*mouse"})):fe.length>1&&fe[Jt].empty()&&ht.unit=="char"&&!ht.extend?(Ks(bt,au(it,fe.slice(0,Jt).concat(fe.slice(Jt+1)),0),{scroll:!1,origin:"*mouse"}),Ut=bt.sel):wh(bt,Jt,Rt,jn):(Jt=0,Ks(bt,new Ul([Rt],0),jn),Ut=bt.sel);var Le=ct;function $n(Vr){if(zn(Le,Vr)!=0)if(Le=Vr,ht.unit=="rectangle"){for(var oo=[],ko=it.options.tabSize,Zr=se(Dn(bt,ct.line).text,ct.ch,ko),_o=se(Dn(bt,Vr.line).text,Vr.ch,ko),ja=Math.min(Zr,_o),Ss=Math.max(Zr,_o),_a=Math.min(ct.line,Vr.line),ul=Math.min(it.lastLine(),Math.max(ct.line,Vr.line));_a<=ul;_a++){var Ys=Dn(bt,_a).text,ps=di(Ys,ja,ko);ja==Ss?oo.push(new Aa(Be(_a,ps),Be(_a,ps))):Ys.length>ps&&oo.push(new Aa(Be(_a,ps),Be(_a,di(Ys,Ss,ko))))}oo.length||oo.push(new Aa(ct,ct)),Ks(bt,au(it,Ut.ranges.slice(0,Jt).concat(oo),Jt),{origin:"*mouse",scroll:!1}),it.scrollIntoView(Vr)}else{var Pl=Rt,Rs=zg(it,Vr,ht.unit),ms=Pl.anchor,ma;zn(Rs.anchor,ms)>0?(ma=Rs.head,ms=oi(Pl.from(),Rs.anchor)):(ma=Rs.anchor,ms=Ki(Pl.to(),Rs.head));var qa=Ut.ranges.slice(0);qa[Jt]=am(it,new Aa(Si(bt,ms),ma)),Ks(bt,au(it,qa,Jt),jn)}}var Zn=pt.wrapper.getBoundingClientRect(),Yi=0;function $i(Vr){var oo=++Yi,ko=Ya(it,Vr,!0,ht.unit=="rectangle");if(ko)if(zn(ko,Le)!=0){it.curOp.focus=ye(),$n(ko);var Zr=Ao(pt,bt);(ko.line>=Zr.to||ko.line<Zr.from)&&setTimeout(co(it,function(){Yi==oo&&$i(Vr)}),150)}else{var _o=Vr.clientY<Zn.top?-20:Vr.clientY>Zn.bottom?20:0;_o&&setTimeout(co(it,function(){Yi==oo&&(pt.scroller.scrollTop+=_o,$i(Vr))}),50)}}function cr(Vr){it.state.selectingText=!1,Yi=1/0,Vr&&(Ci(Vr),pt.input.focus()),Ie(pt.wrapper.ownerDocument,"mousemove",Dr),Ie(pt.wrapper.ownerDocument,"mouseup",$r),bt.history.lastSelOrigin=null}var Dr=co(it,function(Vr){Vr.buttons===0||!tr(Vr)?cr(Vr):$i(Vr)}),$r=co(it,cr);it.state.selectingText=$r,Tn(pt.wrapper.ownerDocument,"mousemove",Dr),Tn(pt.wrapper.ownerDocument,"mouseup",$r)}function am(it,at){var ct=at.anchor,ht=at.head,pt=Dn(it.doc,ct.line);if(zn(ct,ht)==0&&ct.sticky==ht.sticky)return at;var bt=Nn(pt);if(!bt)return at;var Rt=Qe(bt,ct.ch,ct.sticky),Jt=bt[Rt];if(Jt.from!=ct.ch&&Jt.to!=ct.ch)return at;var Ut=Rt+(Jt.from==ct.ch==(Jt.level!=1)?0:1);if(Ut==0||Ut==bt.length)return at;var fe;if(ht.line!=ct.line)fe=(ht.line-ct.line)*(it.doc.direction=="ltr"?1:-1)>0;else{var vn=Qe(bt,ht.ch,ht.sticky),Le=vn-Rt||(ht.ch-ct.ch)*(Jt.level==1?-1:1);vn==Ut-1||vn==Ut?fe=Le<0:fe=Le>0}var $n=bt[Ut+(fe?-1:0)],Zn=fe==($n.level==1),Yi=Zn?$n.from:$n.to,$i=Zn?"after":"before";return ct.ch==Yi&&ct.sticky==$i?at:new Aa(new Be(ct.line,Yi,$i),ht)}function xf(it,at,ct,ht){var pt,bt;if(at.touches)pt=at.touches[0].clientX,bt=at.touches[0].clientY;else try{pt=at.clientX,bt=at.clientY}catch($n){return!1}if(pt>=Math.floor(it.display.gutters.getBoundingClientRect().right))return!1;ht&&Ci(at);var Rt=it.display,Jt=Rt.lineDiv.getBoundingClientRect();if(bt>Jt.bottom||!Xn(it,ct))return ti(at);bt-=Jt.top-Rt.viewOffset;for(var Ut=0;Ut<it.display.gutterSpecs.length;++Ut){var fe=Rt.gutters.childNodes[Ut];if(fe&&fe.getBoundingClientRect().right>=pt){var vn=be(it.doc,bt),Le=it.display.gutterSpecs[Ut];return Ue(it,ct,it,vn,Le.className,at),ti(at)}}}function wf(it,at){return xf(it,at,"gutterClick",!0)}function Pf(it,at){Qr(it.display,at)||sm(it,at)||cn(it,at,"contextmenu")||Mt||it.display.input.onContextMenu(at)}function sm(it,at){return Xn(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-"),Oa(it)}var Eh={toString:function(){return"CodeMirror.Init"}},jg={},Mc={};function lm(it){var at=it.optionHandlers;function ct(ht,pt,bt,Rt){it.defaults[ht]=pt,bt&&(at[ht]=Rt?function(Jt,Ut,fe){fe!=Eh&&bt(Jt,Ut,fe)}:bt)}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),Oa(ht),ca(ht)},!0),ct("lineSeparator",null,function(ht,pt){if(ht.doc.lineSep=pt,!!pt){var bt=[],Rt=ht.doc.first;ht.doc.iter(function(Ut){for(var fe=0;;){var vn=Ut.text.indexOf(pt,fe);if(vn==-1)break;fe=vn+pt.length,bt.push(Be(Rt,vn))}Rt++});for(var Jt=bt.length-1;Jt>=0;Jt--)td(ht.doc,pt,bt[Jt],Be(bt[Jt].line,bt[Jt].ch+pt.length))}}),ct("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(ht,pt,bt){ht.state.specialChars=new RegExp(pt.source+(pt.test(" ")?"":"| "),"g"),bt!=Eh&&ht.refresh()}),ct("specialCharPlaceholder",ei,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,bt){var Rt=id(pt),Jt=bt!=Eh&&id(bt);Jt&&Jt.detach&&Jt.detach(ht,Rt),Rt.attach&&Rt.attach(ht,Jt||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,bt=at?Tn:Ie;bt(it.display.scroller,"dragstart",pt.start),bt(it.display.scroller,"dragenter",pt.enter),bt(it.display.scroller,"dragover",pt.over),bt(it.display.scroller,"dragleave",pt.leave),bt(it.display.scroller,"drop",pt.drop)}}function um(it){it.options.lineWrapping?(He(it.display.wrapper,"CodeMirror-wrap"),it.display.sizer.style.minWidth="",it.display.sizerWidth=null):(Zt(it.display.wrapper,"CodeMirror-wrap"),Ze(it)),qr(it),ca(it),Oa(it),setTimeout(function(){return ns(it)},100)}function fa(it,at){var ct=this;if(!(this instanceof fa))return new fa(it,at);this.options=at=at?Sn(at):{},Sn(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 fa.inputStyles[at.inputStyle](this),bt=this.display=new yh(it,ht,pt,at);bt.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 Yt,keySeq:null,specialChars:null},at.autofocus&&!et&&bt.input.focus(),Ee&&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 Rt in Mc)Mc.hasOwnProperty(Rt)&&Mc[Rt](this,at[Rt],Eh);us(this),at.finishInit&&at.finishInit(this);for(var Jt=0;Jt<sd.length;++Jt)sd[Jt](this);Ua(this),ce&&at.lineWrapping&&getComputedStyle(bt.lineDiv).textRendering=="optimizelegibility"&&(bt.lineDiv.style.textRendering="auto")}fa.defaults=jg,fa.optionHandlers=Mc;function Gd(it){var at=it.display;Tn(at.scroller,"mousedown",co(it,Eu)),Ee&&jt<11?Tn(at.scroller,"dblclick",co(it,function(Ut){if(!cn(it,Ut)){var fe=Ya(it,Ut);if(!(!fe||wf(it,Ut)||Qr(it.display,Ut))){Ci(Ut);var vn=it.findWordAt(fe);df(it.doc,vn.anchor,vn.head)}}})):Tn(at.scroller,"dblclick",function(Ut){return cn(it,Ut)||Ci(Ut)}),Tn(at.scroller,"contextmenu",function(Ut){return Pf(it,Ut)}),Tn(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 bt(Ut){if(Ut.touches.length!=1)return!1;var fe=Ut.touches[0];return fe.radiusX<=1&&fe.radiusY<=1}function Rt(Ut,fe){if(fe.left==null)return!0;var vn=fe.left-Ut.left,Le=fe.top-Ut.top;return vn*vn+Le*Le>20*20}Tn(at.scroller,"touchstart",function(Ut){if(!cn(it,Ut)&&!bt(Ut)&&!wf(it,Ut)){at.input.ensurePolled(),clearTimeout(ct);var fe=+new Date;at.activeTouch={start:fe,moved:!1,prev:fe-ht.end<=300?ht:null},Ut.touches.length==1&&(at.activeTouch.left=Ut.touches[0].pageX,at.activeTouch.top=Ut.touches[0].pageY)}}),Tn(at.scroller,"touchmove",function(){at.activeTouch&&(at.activeTouch.moved=!0)}),Tn(at.scroller,"touchend",function(Ut){var fe=at.activeTouch;if(fe&&!Qr(at,Ut)&&fe.left!=null&&!fe.moved&&new Date-fe.start<300){var vn=it.coordsChar(at.activeTouch,"page"),Le;!fe.prev||Rt(fe,fe.prev)?Le=new Aa(vn,vn):!fe.prev.prev||Rt(fe,fe.prev.prev)?Le=it.findWordAt(vn):Le=new Aa(Be(vn.line,0),Si(it.doc,Be(vn.line+1,0))),it.setSelection(Le.anchor,Le.head),it.focus(),Ci(Ut)}pt()}),Tn(at.scroller,"touchcancel",pt),Tn(at.scroller,"scroll",function(){at.scroller.clientHeight&&(ml(it,at.scroller.scrollTop),vl(it,at.scroller.scrollLeft,!0),Ue(it,"scroll",it))}),Tn(at.scroller,"mousewheel",function(Ut){return Es(it,Ut)}),Tn(at.scroller,"DOMMouseScroll",function(Ut){return Es(it,Ut)}),Tn(at.wrapper,"scroll",function(){return at.wrapper.scrollTop=at.wrapper.scrollLeft=0}),at.dragFunctions={enter:function(Ut){cn(it,Ut)||_i(Ut)},over:function(Ut){cn(it,Ut)||(tm(it,Ut),_i(Ut))},start:function(Ut){return $p(it,Ut)},drop:co(it,Pg),leave:function(Ut){cn(it,Ut)||em(it)}};var Jt=at.input.getField();Tn(Jt,"keyup",function(Ut){return Bg.call(it,Ut)}),Tn(Jt,"keydown",co(it,Dg)),Tn(Jt,"keypress",co(it,Cu)),Tn(Jt,"focus",function(Ut){return qo(it,Ut)}),Tn(Jt,"blur",function(Ut){return pl(it,Ut)})}var sd=[];fa.defineInitHook=function(it){return sd.push(it)};function ys(it,at,ct,ht){var pt=it.doc,bt;ct==null&&(ct="add"),ct=="smart"&&(pt.mode.indent?bt=_r(it,at).state:ct="prev");var Rt=it.options.tabSize,Jt=Dn(pt,at),Ut=se(Jt.text,null,Rt);Jt.stateAfter&&(Jt.stateAfter=null);var fe=Jt.text.match(/^\s*/)[0],vn;if(!ht&&!/\S/.test(Jt.text))vn=0,ct="not";else if(ct=="smart"&&(vn=pt.mode.indent(bt,Jt.text.slice(fe.length),Jt.text),vn==In||vn>150)){if(!ht)return;ct="prev"}ct=="prev"?at>pt.first?vn=se(Dn(pt,at-1).text,null,Rt):vn=0:ct=="add"?vn=Ut+it.options.indentUnit:ct=="subtract"?vn=Ut-it.options.indentUnit:typeof ct=="number"&&(vn=Ut+ct),vn=Math.max(0,vn);var Le="",$n=0;if(it.options.indentWithTabs)for(var Zn=Math.floor(vn/Rt);Zn;--Zn)$n+=Rt,Le+=" ";if($n<vn&&(Le+=ve(vn-$n)),Le!=fe)return td(pt,Le,Be(at,0),Be(at,fe.length),"+input"),Jt.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<fe.length){var cr=Be(at,fe.length);wh(pt,Yi,new Aa(cr,cr));break}}}var ll=null;function ld(it){ll=it}function kc(it,at,ct,ht,pt){var bt=it.doc;it.display.shift=!1,ht||(ht=bt.sel);var Rt=+new Date-200,Jt=pt=="paste"||it.state.pasteIncoming>Rt,Ut=gr(at),fe=null;if(Jt&&ht.ranges.length>1)if(ll&&ll.text.join(`
|
|
`)==at){if(ht.ranges.length%ll.text.length==0){fe=[];for(var vn=0;vn<ll.text.length;vn++)fe.push(bt.splitLines(ll.text[vn]))}}else Ut.length==ht.ranges.length&&it.options.pasteLinesPerSelection&&(fe=mi(Ut,function(Dr){return[Dr]}));for(var Le=it.curOp.updateInput,$n=ht.ranges.length-1;$n>=0;$n--){var Zn=ht.ranges[$n],Yi=Zn.from(),$i=Zn.to();Zn.empty()&&(ct&&ct>0?Yi=Be(Yi.line,Yi.ch-ct):it.state.overwrite&&!Jt?$i=Be($i.line,Math.min(Dn(bt,$i.line).text.length,$i.ch+Ye(Ut).length)):Jt&&ll&&ll.lineWise&&ll.text.join(`
|
|
`)==Ut.join(`
|
|
`)&&(Yi=$i=Be(Yi.line,0)));var cr={from:Yi,to:$i,text:fe?fe[$n%fe.length]:Ut,origin:pt||(Jt?"paste":it.state.cutIncoming>Rt?"cut":"+input")};Ph(it.doc,cr),Bi(it,"inputRead",it,cr)}at&&!Jt&&Hg(it,at),Vs(it),it.curOp.updateInput<2&&(it.curOp.updateInput=Le),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&&so(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 bt=it.getModeAt(pt.head),Rt=!1;if(bt.electricChars){for(var Jt=0;Jt<bt.electricChars.length;Jt++)if(at.indexOf(bt.electricChars.charAt(Jt))>-1){Rt=ys(it,pt.head.line,"smart");break}}else bt.electricInput&&bt.electricInput.test(Dn(it.doc,pt.head.line).text.slice(0,pt.head.ch))&&(Rt=ys(it,pt.head.line,"smart"));Rt&&Bi(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,bt={anchor:Be(pt,0),head:Be(pt+1,0)};ct.push(bt),at.push(it.getRange(bt.anchor,bt.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=_t("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),at=_t("div",[it],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return ce?it.style.width="1000px":it.setAttribute("wrap","off"),Bt&&(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 bt=this.options,Rt=bt[ht];bt[ht]==pt&&ht!="mode"||(bt[ht]=pt,at.hasOwnProperty(ht)&&co(this,at[ht])(this,pt,Rt),Ue(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,bt=0;bt<pt.length;++bt)if(pt[bt]==ht||pt[bt].name==ht)return pt.splice(bt,1),!0},addOverlay:Mo(function(ht,pt){var bt=ht.token?ht:it.getMode(this.options,ht);if(bt.startState)throw new Error("Overlays may not be stateful.");Cn(this.state.overlays,{mode:bt,modeSpec:ht,opaque:pt&&pt.opaque,priority:pt&&pt.priority||0},function(Rt){return Rt.priority}),this.state.modeGen++,ca(this)}),removeOverlay:Mo(function(ht){for(var pt=this.state.overlays,bt=0;bt<pt.length;++bt){var Rt=pt[bt].modeSpec;if(Rt==ht||typeof ht=="string"&&Rt.name==ht){pt.splice(bt,1),this.state.modeGen++,ca(this);return}}}),indentLine:Mo(function(ht,pt,bt){typeof pt!="string"&&typeof pt!="number"&&(pt==null?pt=this.options.smartIndent?"smart":"prev":pt=pt?"add":"subtract"),Jn(this.doc,ht)&&ys(this,ht,pt,bt)}),indentSelection:Mo(function(ht){for(var pt=this.doc.sel.ranges,bt=-1,Rt=0;Rt<pt.length;Rt++){var Jt=pt[Rt];if(Jt.empty())Jt.head.line>bt&&(ys(this,Jt.head.line,ht,!0),bt=Jt.head.line,Rt==this.doc.sel.primIndex&&Vs(this));else{var Ut=Jt.from(),fe=Jt.to(),vn=Math.max(bt,Ut.line);bt=Math.min(this.lastLine(),fe.line-(fe.ch?0:1))+1;for(var Le=vn;Le<bt;++Le)ys(this,Le,ht);var $n=this.doc.sel.ranges;Ut.ch==0&&pt.length==$n.length&&$n[Rt].from().ch>0&&wh(this.doc,Rt,new Aa(Ut,$n[Rt].to()),on)}}}),getTokenAt:function(ht,pt){return Gr(this,ht,pt)},getLineTokens:function(ht,pt){return Gr(this,Be(ht),pt,!0)},getTokenTypeAt:function(ht){ht=Si(this.doc,ht);var pt=Tr(this,Dn(this.doc,ht.line)),bt=0,Rt=(pt.length-1)/2,Jt=ht.ch,Ut;if(Jt==0)Ut=pt[2];else for(;;){var fe=bt+Rt>>1;if((fe?pt[fe*2-1]:0)>=Jt)Rt=fe;else if(pt[fe*2+1]<Jt)bt=fe+1;else{Ut=pt[fe*2+2];break}}var vn=Ut?Ut.indexOf("overlay "):-1;return vn<0?Ut:vn==0?null:Ut.slice(0,vn-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 bt=[];if(!ct.hasOwnProperty(pt))return bt;var Rt=ct[pt],Jt=this.getModeAt(ht);if(typeof Jt[pt]=="string")Rt[Jt[pt]]&&bt.push(Rt[Jt[pt]]);else if(Jt[pt])for(var Ut=0;Ut<Jt[pt].length;Ut++){var fe=Rt[Jt[pt][Ut]];fe&&bt.push(fe)}else Jt.helperType&&Rt[Jt.helperType]?bt.push(Rt[Jt.helperType]):Rt[Jt.name]&&bt.push(Rt[Jt.name]);for(var vn=0;vn<Rt._global.length;vn++){var Le=Rt._global[vn];Le.pred(Jt,this)&&fn(bt,Le.val)==-1&&bt.push(Le.val)}return bt},getStateAfter:function(ht,pt){var bt=this.doc;return ht=gi(bt,ht==null?bt.first+bt.size-1:ht),_r(this,ht+1,pt).state},cursorCoords:function(ht,pt){var bt,Rt=this.doc.sel.primary();return ht==null?bt=Rt.head:typeof ht=="object"?bt=Si(this.doc,ht):bt=ht?Rt.from():Rt.to(),vr(this,bt,pt||"page")},charCoords:function(ht,pt){return ea(this,Si(this.doc,ht),pt||"page")},coordsChar:function(ht,pt){return ht=ro(this,ht,pt||"page"),pr(this,ht.left,ht.top)},lineAtHeight:function(ht,pt){return ht=ro(this,{top:ht,left:0},pt||"page").top,be(this.doc,ht+this.display.viewOffset)},heightAtLine:function(ht,pt,bt){var Rt=!1,Jt;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,Rt=!0),Jt=Dn(this.doc,ht)}else Jt=ht;return Qo(this,Jt,{top:0,left:0},pt||"page",bt||Rt).top+(Rt?this.doc.height-ue(Jt):0)},defaultTextHeight:function(){return sa(this.display)},defaultCharWidth:function(){return ya(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(ht,pt,bt,Rt,Jt){var Ut=this.display;ht=vr(this,Si(this.doc,ht));var fe=ht.bottom,vn=ht.left;if(pt.style.position="absolute",pt.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(pt),Ut.sizer.appendChild(pt),Rt=="over")fe=ht.top;else if(Rt=="above"||Rt=="near"){var Le=Math.max(Ut.wrapper.clientHeight,this.doc.height),$n=Math.max(Ut.sizer.clientWidth,Ut.lineSpace.clientWidth);(Rt=="above"||ht.bottom+pt.offsetHeight>Le)&&ht.top>pt.offsetHeight?fe=ht.top-pt.offsetHeight:ht.bottom+pt.offsetHeight<=Le&&(fe=ht.bottom),vn+pt.offsetWidth>$n&&(vn=$n-pt.offsetWidth)}pt.style.top=fe+"px",pt.style.left=pt.style.right="",Jt=="right"?(vn=Ut.sizer.clientWidth-pt.offsetWidth,pt.style.right="0px"):(Jt=="left"?vn=0:Jt=="middle"&&(vn=(Ut.sizer.clientWidth-pt.offsetWidth)/2),pt.style.left=vn+"px"),bt&&Nl(this,{left:vn,top:fe,right:vn+pt.offsetWidth,bottom:fe+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,bt,Rt){var Jt=1;pt<0&&(Jt=-1,pt=-pt);for(var Ut=Si(this.doc,ht),fe=0;fe<pt&&(Ut=Fc(this.doc,Ut,Jt,bt,Rt),!Ut.hitSide);++fe);return Ut},moveH:Mo(function(ht,pt){var bt=this;this.extendSelectionsBy(function(Rt){return bt.display.shift||bt.doc.extend||Rt.empty()?Fc(bt.doc,Rt.head,ht,pt,bt.options.rtlMoveVisually):ht<0?Rt.from():Rt.to()},Pn)}),deleteH:Mo(function(ht,pt){var bt=this.doc.sel,Rt=this.doc;bt.somethingSelected()?Rt.replaceSelection("",null,"+delete"):wl(this,function(Jt){var Ut=Fc(Rt,Jt.head,ht,pt,!1);return ht<0?{from:Ut,to:Jt.head}:{from:Jt.head,to:Ut}})}),findPosV:function(ht,pt,bt,Rt){var Jt=1,Ut=Rt;pt<0&&(Jt=-1,pt=-pt);for(var fe=Si(this.doc,ht),vn=0;vn<pt;++vn){var Le=vr(this,fe,"div");if(Ut==null?Ut=Le.left:Le.left=Ut,fe=Lh(this,Le,Jt,bt),fe.hitSide)break}return fe},moveV:Mo(function(ht,pt){var bt=this,Rt=this.doc,Jt=[],Ut=!this.display.shift&&!Rt.extend&&Rt.sel.somethingSelected();if(Rt.extendSelectionsBy(function(vn){if(Ut)return ht<0?vn.from():vn.to();var Le=vr(bt,vn.head,"div");vn.goalColumn!=null&&(Le.left=vn.goalColumn),Jt.push(Le.left);var $n=Lh(bt,Le,ht,pt);return pt=="page"&&vn==Rt.sel.primary()&&Su(bt,ea(bt,$n,"div").top-Le.top),$n},Pn),Jt.length)for(var fe=0;fe<Rt.sel.ranges.length;fe++)Rt.sel.ranges[fe].goalColumn=Jt[fe]}),findWordAt:function(ht){var pt=this.doc,bt=Dn(pt,ht.line).text,Rt=ht.ch,Jt=ht.ch;if(bt){var Ut=this.getHelper(ht,"wordChars");(ht.sticky=="before"||Jt==bt.length)&&Rt?--Rt:++Jt;for(var fe=bt.charAt(Rt),vn=Vt(fe,Ut)?function(Le){return Vt(Le,Ut)}:/\s/.test(fe)?function(Le){return/\s/.test(Le)}:function(Le){return!/\s/.test(Le)&&!Vt(Le)};Rt>0&&vn(bt.charAt(Rt-1));)--Rt;for(;Jt<bt.length&&vn(bt.charAt(Jt));)++Jt}return new Aa(Be(ht.line,Rt),Be(ht.line,Jt))},toggleOverwrite:function(ht){ht!=null&&ht==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?He(this.display.cursorDiv,"CodeMirror-overwrite"):Zt(this.display.cursorDiv,"CodeMirror-overwrite"),Ue(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==ye()},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-Xr(this)-this.display.barHeight,width:ht.scrollWidth-Xr(this)-this.display.barWidth,clientHeight:mo(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:Be(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 bt=this,Rt=function(Ut){return typeof Ut=="number"||/^\d+$/.test(String(Ut))?Ut+"px":Ut};ht!=null&&(this.display.wrapper.style.width=Rt(ht)),pt!=null&&(this.display.wrapper.style.height=Rt(pt)),this.options.lineWrapping&&zo(this);var Jt=this.display.viewFrom;this.doc.iter(Jt,this.display.viewTo,function(Ut){if(Ut.widgets){for(var fe=0;fe<Ut.widgets.length;fe++)if(Ut.widgets[fe].noHScroll){So(bt,Jt,"widget");break}}++Jt}),this.curOp.forceUpdate=!0,Ue(this,"refresh",this)}),operation:function(ht){return so(this,ht)},startOperation:function(){return xo(this)},endOperation:function(){return Ua(this)},refresh:Mo(function(){var ht=this.display.cachedTextHeight;ca(this),this.curOp.forceUpdate=!0,Oa(this),Yl(this,this.doc.scrollLeft,this.doc.scrollTop),mh(this.display),(ht==null||Math.abs(ht-sa(this.display))>.5||this.options.lineWrapping)&&qr(this),Ue(this,"refresh",this)}),swapDoc:Mo(function(ht){var pt=this.doc;return pt.cm=null,this.state.selectingText&&this.state.selectingText(),sf(this,ht),Oa(this),this.display.input.reset(),Yl(this,ht.scrollLeft,ht.scrollTop),this.curOp.forceScroll=!0,Bi(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}},li(it),it.registerHelper=function(ht,pt,bt){ct.hasOwnProperty(ht)||(ct[ht]=it[ht]={_global:[]}),ct[ht][pt]=bt},it.registerGlobalHelper=function(ht,pt,bt,Rt){it.registerHelper(ht,pt,Rt),ct[ht]._global.push({pred:bt,val:Rt})}}function Fc(it,at,ct,ht,pt){var bt=at,Rt=ct,Jt=Dn(it,at.line),Ut=pt&&it.direction=="rtl"?-ct:ct;function fe(){var $r=at.line+Ut;return $r<it.first||$r>=it.first+it.size?!1:(at=new Be($r,at.ch,at.sticky),Jt=Dn(it,$r))}function vn($r){var Vr;if(ht=="codepoint"){var oo=Jt.text.charCodeAt(at.ch+(ht>0?0:-1));isNaN(oo)?Vr=null:Vr=new Be(at.line,Math.max(0,Math.min(Jt.text.length,at.ch+ct*(oo>=55296&&oo<56320?2:1))),-ct)}else pt?Vr=pf(it.cm,Jt,at,ct):Vr=ss(Jt,at,ct);if(Vr==null)if(!$r&&fe())at=bc(pt,it.cm,Jt,at.line,Ut);else return!1;else at=Vr;return!0}if(ht=="char"||ht=="codepoint")vn();else if(ht=="column")vn(!0);else if(ht=="word"||ht=="group")for(var Le=null,$n=ht=="group",Zn=it.cm&&it.cm.getHelper(at,"wordChars"),Yi=!0;!(ct<0&&!vn(!Yi));Yi=!1){var $i=Jt.text.charAt(at.ch)||`
|
|
`,cr=Vt($i,Zn)?"w":$n&&$i==`
|
|
`?"n":!$n||/\s/.test($i)?null:"p";if($n&&!Yi&&!cr&&(cr="s"),Le&&Le!=cr){ct<0&&(ct=1,vn(),at.sticky="after");break}if(cr&&(Le=cr),ct>0&&!vn(!Yi))break}var Dr=wc(it,at,bt,Rt,!0);return Ai(bt,Dr)&&(Dr.hitSide=!0),Dr}function Lh(it,at,ct,ht){var pt=it.doc,bt=at.left,Rt;if(ht=="page"){var Jt=Math.min(it.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Ut=Math.max(Jt-.5*sa(it.display),3);Rt=(ct>0?at.bottom:at.top)+ct*Ut}else ht=="line"&&(Rt=ct>0?at.bottom+3:at.top-3);for(var fe;fe=pr(it,bt,Rt),!!fe.outside;){if(ct<0?Rt<=0:Rt>=pt.height){fe.hitSide=!0;break}Rt+=ct*5}return fe}var Da=function(it){this.cm=it,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Yt,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Da.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 bt(Jt){for(var Ut=Jt.target;Ut;Ut=Ut.parentNode){if(Ut==pt)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Ut.className))break}return!1}Tn(pt,"paste",function(Jt){!bt(Jt)||cn(ht,Jt)||Wg(Jt,ht)||jt<=11&&setTimeout(co(ht,function(){return at.updateFromDOM()}),20)}),Tn(pt,"compositionstart",function(Jt){at.composing={data:Jt.data,done:!1}}),Tn(pt,"compositionupdate",function(Jt){at.composing||(at.composing={data:Jt.data,done:!1})}),Tn(pt,"compositionend",function(Jt){at.composing&&(Jt.data!=at.composing.data&&at.readFromDOMSoon(),at.composing.done=!0)}),Tn(pt,"touchstart",function(){return ct.forceCompositionEnd()}),Tn(pt,"input",function(){at.composing||at.readFromDOMSoon()});function Rt(Jt){if(!(!bt(Jt)||cn(ht,Jt))){if(ht.somethingSelected())ld({lineWise:!1,text:ht.getSelections()}),Jt.type=="cut"&&ht.replaceSelection("",null,"cut");else if(ht.options.lineWiseCopyCut){var Ut=Zg(ht);ld({lineWise:!0,text:Ut.text}),Jt.type=="cut"&&ht.operation(function(){ht.setSelections(Ut.ranges,0,on),ht.replaceSelection("",null,"cut")})}else return;if(Jt.clipboardData){Jt.clipboardData.clearData();var fe=ll.text.join(`
|
|
`);if(Jt.clipboardData.setData("Text",fe),Jt.clipboardData.getData("Text")==fe){Jt.preventDefault();return}}var vn=Gg(),Le=vn.firstChild;ht.display.lineSpace.insertBefore(vn,ht.display.lineSpace.firstChild),Le.value=ll.text.join(`
|
|
`);var $n=document.activeElement;ln(Le),setTimeout(function(){ht.display.lineSpace.removeChild(vn),$n.focus(),$n==pt&&ct.showPrimarySelection()},50)}}Tn(pt,"copy",Rt),Tn(pt,"cut",Rt)},Da.prototype.screenReaderLabelChanged=function(it){it?this.div.setAttribute("aria-label",it):this.div.removeAttribute("aria-label")},Da.prototype.prepareSelection=function(){var it=Dl(this.cm,!1);return it.focus=document.activeElement==this.div,it},Da.prototype.showSelection=function(it,at){!it||!this.cm.display.view.length||((it.focus||at)&&this.showPrimarySelection(),this.showMultipleSelections(it))},Da.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Da.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 bt=Dc(at,it.anchorNode,it.anchorOffset),Rt=Dc(at,it.focusNode,it.focusOffset);if(!(bt&&!bt.bad&&Rt&&!Rt.bad&&zn(oi(bt,Rt),ht)==0&&zn(Ki(bt,Rt),pt)==0)){var Jt=at.display.view,Ut=ht.line>=at.display.viewFrom&&Af(at,ht)||{node:Jt[0].measure.map[2],offset:0},fe=pt.line<at.display.viewTo&&Af(at,pt);if(!fe){var vn=Jt[Jt.length-1].measure,Le=vn.maps?vn.maps[vn.maps.length-1]:vn.map;fe={node:Le[Le.length-1],offset:Le[Le.length-2]-Le[Le.length-3]}}if(!Ut||!fe){it.removeAllRanges();return}var $n=it.rangeCount&&it.getRangeAt(0),Zn;try{Zn=me(Ut.node,Ut.offset,fe.offset,fe.node)}catch(Yi){}Zn&&(!yt&&at.state.focused?(it.collapse(Ut.node,Ut.offset),Zn.collapsed||(it.removeAllRanges(),it.addRange(Zn))):(it.removeAllRanges(),it.addRange(Zn)),$n&&it.anchorNode==null?it.addRange($n):yt&&this.startGracePeriod()),this.rememberSelection()}},Da.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)},Da.prototype.showMultipleSelections=function(it){Gt(this.cm.display.cursorDiv,it.cursors),Gt(this.cm.display.selectionDiv,it.selection)},Da.prototype.rememberSelection=function(){var it=this.getSelection();this.lastAnchorNode=it.anchorNode,this.lastAnchorOffset=it.anchorOffset,this.lastFocusNode=it.focusNode,this.lastFocusOffset=it.focusOffset},Da.prototype.selectionInEditor=function(){var it=this.getSelection();if(!it.rangeCount)return!1;var at=it.getRangeAt(0).commonAncestorContainer;return Pe(this.div,at)},Da.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Da.prototype.blur=function(){this.div.blur()},Da.prototype.getField=function(){return this.div},Da.prototype.supportsTouch=function(){return!0},Da.prototype.receivedFocus=function(){var it=this;this.selectionInEditor()?this.pollSelection():so(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)},Da.prototype.selectionChanged=function(){var it=this.getSelection();return it.anchorNode!=this.lastAnchorNode||it.anchorOffset!=this.lastAnchorOffset||it.focusNode!=this.lastFocusNode||it.focusOffset!=this.lastFocusOffset},Da.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var it=this.getSelection(),at=this.cm;if(nt&&xe&&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&&so(at,function(){Ks(at.doc,qu(ct,ht),on),(ct.bad||ht.bad)&&(at.curOp.selectionChanged=!0)})}}},Da.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=Be(ht.line-1,Dn(it.doc,ht.line-1).length)),pt.ch==Dn(it.doc,pt.line).text.length&&pt.line<it.lastLine()&&(pt=Be(pt.line+1,0)),ht.line<at.viewFrom||pt.line>at.viewTo-1)return!1;var bt,Rt,Jt;ht.line==at.viewFrom||(bt=es(it,ht.line))==0?(Rt=te(at.view[0].line),Jt=at.view[0].node):(Rt=te(at.view[bt].line),Jt=at.view[bt-1].node.nextSibling);var Ut=es(it,pt.line),fe,vn;if(Ut==at.view.length-1?(fe=at.viewTo-1,vn=at.lineDiv.lastChild):(fe=te(at.view[Ut+1].line)-1,vn=at.view[Ut+1].node.previousSibling),!Jt)return!1;for(var Le=it.doc.splitLines(Yd(it,Jt,vn,Rt,fe)),$n=mn(it.doc,Be(Rt,0),Be(fe,Dn(it.doc,fe).text.length));Le.length>1&&$n.length>1;)if(Ye(Le)==Ye($n))Le.pop(),$n.pop(),fe--;else if(Le[0]==$n[0])Le.shift(),$n.shift(),Rt++;else break;for(var Zn=0,Yi=0,$i=Le[0],cr=$n[0],Dr=Math.min($i.length,cr.length);Zn<Dr&&$i.charCodeAt(Zn)==cr.charCodeAt(Zn);)++Zn;for(var $r=Ye(Le),Vr=Ye($n),oo=Math.min($r.length-(Le.length==1?Zn:0),Vr.length-($n.length==1?Zn:0));Yi<oo&&$r.charCodeAt($r.length-Yi-1)==Vr.charCodeAt(Vr.length-Yi-1);)++Yi;if(Le.length==1&&$n.length==1&&Rt==ht.line)for(;Zn&&Zn>ht.ch&&$r.charCodeAt($r.length-Yi-1)==Vr.charCodeAt(Vr.length-Yi-1);)Zn--,Yi++;Le[Le.length-1]=$r.slice(0,$r.length-Yi).replace(/^\u200b+/,""),Le[0]=Le[0].slice(Zn).replace(/\u200b+$/,"");var ko=Be(Rt,Zn),Zr=Be(fe,$n.length?Ye($n).length-Yi:0);if(Le.length>1||Le[0]||zn(ko,Zr))return td(it.doc,Le,ko,Zr,"+input"),!0},Da.prototype.ensurePolled=function(){this.forceCompositionEnd()},Da.prototype.reset=function(){this.forceCompositionEnd()},Da.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Da.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))},Da.prototype.updateFromDOM=function(){var it=this;(this.cm.isReadOnly()||!this.pollContent())&&so(this.cm,function(){return ca(it.cm)})},Da.prototype.setUneditable=function(it){it.contentEditable="false"},Da.prototype.onKeyPress=function(it){it.charCode==0||this.composing||(it.preventDefault(),this.cm.isReadOnly()||co(this.cm,kc)(this.cm,String.fromCharCode(it.charCode==null?it.keyCode:it.charCode),0))},Da.prototype.readOnlyChanged=function(it){this.div.contentEditable=String(it!="nocursor")},Da.prototype.onContextMenu=function(){},Da.prototype.resetPosition=function(){},Da.prototype.needsContentAttribute=!0;function Af(it,at){var ct=Jo(it,at.line);if(!ct||ct.hidden)return null;var ht=Dn(it.doc,at.line),pt=ao(ct,ht,at.line),bt=Nn(ht,it.doc.direction),Rt="left";if(bt){var Jt=Qe(bt,at.ch);Rt=Jt%2?"right":"left"}var Ut=Yo(pt.map,at.ch,Rt);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 bt="",Rt=!1,Jt=it.doc.lineSeparator(),Ut=!1;function fe(Zn){return function(Yi){return Yi.id==Zn}}function vn(){Rt&&(bt+=Jt,Ut&&(bt+=Jt),Rt=Ut=!1)}function Le(Zn){Zn&&(vn(),bt+=Zn)}function $n(Zn){if(Zn.nodeType==1){var Yi=Zn.getAttribute("cm-text");if(Yi){Le(Yi);return}var $i=Zn.getAttribute("cm-marker"),cr;if($i){var Dr=it.findMarks(Be(ht,0),Be(pt+1,0),fe(+$i));Dr.length&&(cr=Dr[0].find(0))&&Le(mn(it.doc,cr.from,cr.to).join(Jt));return}if(Zn.getAttribute("contenteditable")=="false")return;var $r=/^(pre|div|p|li|table|br)$/i.test(Zn.nodeName);if(!/^br$/i.test(Zn.nodeName)&&Zn.textContent.length==0)return;$r&&vn();for(var Vr=0;Vr<Zn.childNodes.length;Vr++)$n(Zn.childNodes[Vr]);/^(pre|p)$/i.test(Zn.nodeName)&&(Ut=!0),$r&&(Rt=!0)}else Zn.nodeType==3&&Le(Zn.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;$n(at),at!=ct;)at=at.nextSibling,Ut=!1;return bt}function Dc(it,at,ct){var ht;if(at==it.display.lineDiv){if(ht=it.display.lineDiv.childNodes[ct],!ht)return Kd(it.clipPos(Be(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 bt=it.display.view[pt];if(bt.node==ht)return hm(bt,at,ct)}}function hm(it,at,ct){var ht=it.text.firstChild,pt=!1;if(!at||!Pe(ht,at))return Kd(Be(te(it.line),0),!0);if(at==ht&&(pt=!0,at=ht.childNodes[ct],ct=0,!at)){var bt=it.rest?Ye(it.rest):it.line;return Kd(Be(te(bt),bt.text.length),pt)}var Rt=at.nodeType==3?at:null,Jt=at;for(!Rt&&at.childNodes.length==1&&at.firstChild.nodeType==3&&(Rt=at.firstChild,ct&&(ct=Rt.nodeValue.length));Jt.parentNode!=ht;)Jt=Jt.parentNode;var Ut=it.measure,fe=Ut.maps;function vn(cr,Dr,$r){for(var Vr=-1;Vr<(fe?fe.length:0);Vr++)for(var oo=Vr<0?Ut.map:fe[Vr],ko=0;ko<oo.length;ko+=3){var Zr=oo[ko+2];if(Zr==cr||Zr==Dr){var _o=te(Vr<0?it.line:it.rest[Vr]),ja=oo[ko]+$r;return($r<0||Zr!=cr)&&(ja=oo[ko+($r?1:0)]),Be(_o,ja)}}}var Le=vn(Rt,Jt,ct);if(Le)return Kd(Le,pt);for(var $n=Jt.nextSibling,Zn=Rt?Rt.nodeValue.length-ct:0;$n;$n=$n.nextSibling){if(Le=vn($n,$n.firstChild,0),Le)return Kd(Be(Le.line,Le.ch-Zn),pt);Zn+=$n.textContent.length}for(var Yi=Jt.previousSibling,$i=ct;Yi;Yi=Yi.previousSibling){if(Le=vn(Yi,Yi.firstChild,-1),Le)return Kd(Be(Le.line,Le.ch+$i),pt);$i+=Yi.textContent.length}}var gs=function(it){this.cm=it,this.prevInput="",this.pollingFast=!1,this.polling=new Yt,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),Bt&&(pt.style.width="0px"),Tn(pt,"input",function(){Ee&&jt>=9&&at.hasSelection&&(at.hasSelection=null),ct.poll()}),Tn(pt,"paste",function(Rt){cn(ht,Rt)||Wg(Rt,ht)||(ht.state.pasteIncoming=+new Date,ct.fastPoll())});function bt(Rt){if(!cn(ht,Rt)){if(ht.somethingSelected())ld({lineWise:!1,text:ht.getSelections()});else if(ht.options.lineWiseCopyCut){var Jt=Zg(ht);ld({lineWise:!0,text:Jt.text}),Rt.type=="cut"?ht.setSelections(Jt.ranges,null,on):(ct.prevInput="",pt.value=Jt.text.join(`
|
|
`),ln(pt))}else return;Rt.type=="cut"&&(ht.state.cutIncoming=+new Date)}}Tn(pt,"cut",bt),Tn(pt,"copy",bt),Tn(it.scroller,"paste",function(Rt){if(!(Qr(it,Rt)||cn(ht,Rt))){if(!pt.dispatchEvent){ht.state.pasteIncoming=+new Date,ct.focus();return}var Jt=new Event("paste");Jt.clipboardData=Rt.clipboardData,pt.dispatchEvent(Jt)}}),Tn(it.lineSpace,"selectstart",function(Rt){Qr(it,Rt)||Ci(Rt)}),Tn(pt,"compositionstart",function(){var Rt=ht.getCursor("from");ct.composing&&ct.composing.range.clear(),ct.composing={start:Rt,range:ht.markText(Rt,ht.getCursor("to"),{className:"CodeMirror-composing"})}}),Tn(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=vr(it,ct.sel.primary().head,"div"),bt=at.wrapper.getBoundingClientRect(),Rt=at.lineDiv.getBoundingClientRect();ht.teTop=Math.max(0,Math.min(at.wrapper.clientHeight-10,pt.top+Rt.top-bt.top)),ht.teLeft=Math.max(0,Math.min(at.wrapper.clientWidth-10,pt.left+Rt.left-bt.left))}return ht},gs.prototype.showSelection=function(it){var at=this.cm,ct=at.display;Gt(ct.cursorDiv,it.cursors),Gt(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&&ln(this.textarea),Ee&&jt>=9&&(this.hasSelection=ct)}else it||(this.prevInput=this.textarea.value="",Ee&&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||ye()!=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||Et(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(Ee&&jt>=9&&this.hasSelection===pt||dt&&/[\uf700-\uf7ff]/.test(pt))return at.display.input.reset(),!1;if(at.doc.sel==at.display.selForContextMenu){var bt=pt.charCodeAt(0);if(bt==8203&&!ht&&(ht="\u200B"),bt==8666)return this.reset(),this.cm.execCommand("undo")}for(var Rt=0,Jt=Math.min(ht.length,pt.length);Rt<Jt&&ht.charCodeAt(Rt)==pt.charCodeAt(Rt);)++Rt;return so(at,function(){kc(at,pt.slice(Rt),ht.length-Rt,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(){Ee&&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 bt=Ya(ct,it),Rt=ht.scroller.scrollTop;if(!bt||Lt)return;var Jt=ct.options.resetSelectionOnContextMenu;Jt&&ct.doc.sel.contains(bt)==-1&&co(ct,Ks)(ct.doc,qu(bt),on);var Ut=pt.style.cssText,fe=at.wrapper.style.cssText,vn=at.wrapper.offsetParent.getBoundingClientRect();at.wrapper.style.cssText="position: static",pt.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
top: `+(it.clientY-vn.top-5)+"px; left: "+(it.clientX-vn.left-5)+`px;
|
|
z-index: 1000; background: `+(Ee?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Le;ce&&(Le=window.scrollY),ht.input.focus(),ce&&window.scrollTo(null,Le),ht.input.reset(),ct.somethingSelected()||(pt.value=at.prevInput=" "),at.contextMenuPending=Zn,ht.selForContextMenu=ct.doc.sel,clearTimeout(ht.detectingSelectAll);function $n(){if(pt.selectionStart!=null){var $i=ct.somethingSelected(),cr="\u200B"+($i?pt.value:"");pt.value="\u21DA",pt.value=cr,at.prevInput=$i?"":"\u200B",pt.selectionStart=1,pt.selectionEnd=cr.length,ht.selForContextMenu=ct.doc.sel}}function Zn(){if(at.contextMenuPending==Zn&&(at.contextMenuPending=!1,at.wrapper.style.cssText=fe,pt.style.cssText=Ut,Ee&&jt<9&&ht.scrollbars.setScrollTop(ht.scroller.scrollTop=Rt),pt.selectionStart!=null)){(!Ee||Ee&&jt<9)&&$n();var $i=0,cr=function(){ht.selForContextMenu==ct.doc.sel&&pt.selectionStart==0&&pt.selectionEnd>0&&at.prevInput=="\u200B"?co(ct,as)(ct):$i++<10?ht.detectingSelectAll=setTimeout(cr,500):(ht.selForContextMenu=null,ht.input.reset())};ht.detectingSelectAll=setTimeout(cr,200)}}if(Ee&&jt>=9&&$n(),Mt){_i(it);var Yi=function(){Ie(window,"mouseup",Yi),setTimeout(Zn,20)};Tn(window,"mouseup",Yi)}else setTimeout(Zn,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?Sn(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=ye();at.autofocus=ct==it||it.getAttribute("autofocus")!=null&&ct==document.body}function ht(){it.value=Jt.getValue()}var pt;if(it.form&&(Tn(it.form,"submit",ht),!at.leaveSubmitMethodAlone)){var bt=it.form;pt=bt.submit;try{var Rt=bt.submit=function(){ht(),bt.submit=pt,bt.submit(),bt.submit=Rt}}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&&(Ie(it.form,"submit",ht),!at.leaveSubmitMethodAlone&&typeof it.form.submit=="function"&&(it.form.submit=pt))}},it.style.display="none";var Jt=fa(function(Ut){return it.parentNode.insertBefore(Ut,it.nextSibling)},at);return Jt}function Ud(it){it.off=Ie,it.on=Tn,it.wheelEventPixels=Ol,it.Doc=Is,it.splitLines=gr,it.countColumn=se,it.findColumn=di,it.isWordChar=Nt,it.Pass=In,it.signal=Ue,it.Line=an,it.changeEnd=Sh,it.scrollbarModel=Bl,it.Pos=Be,it.cmpPos=zn,it.modes=ci,it.mimeModes=Kn,it.resolveMode=Fe,it.getMode=Ne,it.modeExtensions=ke,it.extendMode=sn,it.copyState=xi,it.startState=Fi,it.innerMode=yi,it.commands=Ch,it.keyMap=xl,it.keyName=im,it.isModifierKey=jd,it.lookupKey=_l,it.normalizeKeyMap=Lg,it.StringStream=Xe,it.SharedTextMarker=Tu,it.TextMarker=$e,it.LineWidget=eh,it.e_preventDefault=Ci,it.e_stopPropagation=gn,it.e_stop=_i,it.addClass=He,it.contains=Pe,it.rmClass=Zt,it.keyNames=Ou}lm(fa),Ah(fa);var nh="iter insert remove copy getEditor constructor".split(" ");for(var Nc in Is.prototype)Is.prototype.hasOwnProperty(Nc)&&fn(nh,Nc)<0&&(fa.prototype[Nc]=function(it){return function(){return it.apply(this.doc,arguments)}}(Is.prototype[Nc]));return li(Is),fa.inputStyles={textarea:gs,contenteditable:Da},fa.defineMode=function(it){!fa.defaults.mode&&it!="null"&&(fa.defaults.mode=it),rn.apply(this,arguments)},fa.defineMIME=Yn,fa.defineMode("null",function(){return{token:function(it){return it.skipToEnd()}}}),fa.defineMIME("text/plain","null"),fa.defineExtension=function(it,at){fa.prototype[it]=at},fa.defineDocExtension=function(it,at){Is.prototype[it]=at},fa.fromTextArea=dm,Ud(fa),fa.version="5.58.2",fa})},25419:function(Qn,pi,Dt){(function(yt){yt(Dt(89780),Dt(15525),Dt(98101))})(function(yt){"use strict";yt.defineMode("markdown",function(ee,ie){var we=yt.getMode(ee,"text/html"),Ee=we.name=="null";function jt(se){if(yt.findModeByName){var Yt=yt.findModeByName(se);Yt&&(se=Yt.mime||Yt.mimes[0])}var fn=yt.getMode(ee,se);return fn.name=="null"?null:fn}ie.highlightFormatting===void 0&&(ie.highlightFormatting=!1),ie.maxBlockquoteDepth===void 0&&(ie.maxBlockquoteDepth=0),ie.taskLists===void 0&&(ie.taskLists=!1),ie.strikethrough===void 0&&(ie.strikethrough=!1),ie.emoji===void 0&&(ie.emoji=!1),ie.fencedCodeBlockHighlighting===void 0&&(ie.fencedCodeBlockHighlighting=!0),ie.fencedCodeBlockDefaultMode===void 0&&(ie.fencedCodeBlockDefaultMode="text/plain"),ie.xml===void 0&&(ie.xml=!0),ie.tokenTypeOverrides===void 0&&(ie.tokenTypeOverrides={});var ce={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 Ve in ce)ce.hasOwnProperty(Ve)&&ie.tokenTypeOverrides[Ve]&&(ce[Ve]=ie.tokenTypeOverrides[Ve]);var xe=/^([*\-_])(?:\s*\1){2,}\s*$/,Lt=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,ze=/^\[(x| )\](?=\s)/i,Kt=ie.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,Je=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Bt=/^[^#!\[\]*_\\<>` "'(~:]+/,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,Yt,fn){return Yt.f=Yt.inline=fn,fn(se,Yt)}function mt(se,Yt,fn){return Yt.f=Yt.block=fn,fn(se,Yt)}function St(se){return!se||!/\S/.test(se.string)}function Mt(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==Zt){var Yt=Ee;if(!Yt){var fn=yt.innerMode(we,se.htmlState);Yt=fn.mode.name=="xml"&&fn.state.tagStart===null&&!fn.state.context&&fn.state.tokenize.isInText}Yt&&(se.f=ge,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,Yt){var fn=se.column()===Yt.indentation,_n=St(Yt.prevLine.stream),In=Yt.indentedCode,on=Yt.prevLine.hr,jn=Yt.list!==!1,Pn=(Yt.listStack[Yt.listStack.length-1]||0)+3;Yt.indentedCode=!1;var di=Yt.indentation;if(Yt.indentationDiff===null&&(Yt.indentationDiff=Yt.indentation,jn)){for(Yt.list=null;di<Yt.listStack[Yt.listStack.length-1];)Yt.listStack.pop(),Yt.listStack.length?Yt.indentation=Yt.listStack[Yt.listStack.length-1]:Yt.list=!1;Yt.list!==!1&&(Yt.indentationDiff=di-Yt.listStack[Yt.listStack.length-1])}var Re=!_n&&!on&&!Yt.prevLine.header&&(!jn||!In)&&!Yt.prevLine.fencedCodeEnd,ve=(Yt.list===!1||on||_n)&&Yt.indentation<=Pn&&se.match(xe),Ye=null;if(Yt.indentationDiff>=4&&(In||Yt.prevLine.fencedCodeEnd||Yt.prevLine.header||_n))return se.skipToEnd(),Yt.indentedCode=!0,ce.code;if(se.eatSpace())return null;if(fn&&Yt.indentation<=Pn&&(Ye=se.match(Kt))&&Ye[1].length<=6)return Yt.quote=0,Yt.header=Ye[1].length,Yt.thisLine.header=!0,ie.highlightFormatting&&(Yt.formatting="header"),Yt.f=Yt.inline,Gt(Yt);if(Yt.indentation<=Pn&&se.eat(">"))return Yt.quote=fn?1:Yt.quote+1,ie.highlightFormatting&&(Yt.formatting="quote"),se.eatSpace(),Gt(Yt);if(!ve&&!Yt.setext&&fn&&Yt.indentation<=Pn&&(Ye=se.match(Lt))){var mi=Ye[1]?"ol":"ul";return Yt.indentation=di+se.current().length,Yt.list=!0,Yt.quote=0,Yt.listStack.push(Yt.indentation),Yt.em=!1,Yt.strong=!1,Yt.code=!1,Yt.strikethrough=!1,ie.taskLists&&se.match(ze,!1)&&(Yt.taskList=!0),Yt.f=Yt.inline,ie.highlightFormatting&&(Yt.formatting=["list","list-"+mi]),Gt(Yt)}else{if(fn&&Yt.indentation<=Pn&&(Ye=se.match(nt,!0)))return Yt.quote=0,Yt.fencedEndRE=new RegExp(Ye[1]+"+ *$"),Yt.localMode=ie.fencedCodeBlockHighlighting&&jt(Ye[2]||ie.fencedCodeBlockDefaultMode),Yt.localMode&&(Yt.localState=yt.startState(Yt.localMode)),Yt.f=Yt.block=oe,ie.highlightFormatting&&(Yt.formatting="code-block"),Yt.code=-1,Gt(Yt);if(Yt.setext||(!Re||!jn)&&!Yt.quote&&Yt.list===!1&&!Yt.code&&!ve&&!et.test(se.string)&&(Ye=se.lookAhead(1))&&(Ye=Ye.match(Je)))return Yt.setext?(Yt.header=Yt.setext,Yt.setext=0,se.skipToEnd(),ie.highlightFormatting&&(Yt.formatting="header")):(Yt.header=Ye[0].charAt(0)=="="?1:2,Yt.setext=Yt.header),Yt.thisLine.header=!0,Yt.f=Yt.inline,Gt(Yt);if(ve)return se.skipToEnd(),Yt.hr=!0,Yt.thisLine.hr=!0,ce.hr;if(se.peek()==="[")return gt(se,Yt,wn)}return gt(se,Yt,Yt.inline)}function Zt(se,Yt){var fn=we.token(se,Yt.htmlState);if(!Ee){var _n=yt.innerMode(we,Yt.htmlState);(_n.mode.name=="xml"&&_n.state.tagStart===null&&!_n.state.context&&_n.state.tokenize.isInText||Yt.md_inside&&se.current().indexOf(">")>-1)&&(Yt.f=ge,Yt.block=It,Yt.htmlState=null)}return fn}function oe(se,Yt){var fn=Yt.listStack[Yt.listStack.length-1]||0,_n=Yt.indentation<fn,In=fn+3;if(Yt.fencedEndRE&&Yt.indentation<=In&&(_n||se.match(Yt.fencedEndRE))){ie.highlightFormatting&&(Yt.formatting="code-block");var on;return _n||(on=Gt(Yt)),Yt.localMode=Yt.localState=null,Yt.block=It,Yt.f=ge,Yt.fencedEndRE=null,Yt.code=0,Yt.thisLine.fencedCodeEnd=!0,_n?mt(se,Yt,Yt.block):on}else return Yt.localMode?Yt.localMode.token(se,Yt.localState):(se.skipToEnd(),ce.code)}function Gt(se){var Yt=[];if(se.formatting){Yt.push(ce.formatting),typeof se.formatting=="string"&&(se.formatting=[se.formatting]);for(var fn=0;fn<se.formatting.length;fn++)Yt.push(ce.formatting+"-"+se.formatting[fn]),se.formatting[fn]==="header"&&Yt.push(ce.formatting+"-"+se.formatting[fn]+"-"+se.header),se.formatting[fn]==="quote"&&(!ie.maxBlockquoteDepth||ie.maxBlockquoteDepth>=se.quote?Yt.push(ce.formatting+"-"+se.formatting[fn]+"-"+se.quote):Yt.push("error"))}if(se.taskOpen)return Yt.push("meta"),Yt.length?Yt.join(" "):null;if(se.taskClosed)return Yt.push("property"),Yt.length?Yt.join(" "):null;if(se.linkHref?Yt.push(ce.linkHref,"url"):(se.strong&&Yt.push(ce.strong),se.em&&Yt.push(ce.em),se.strikethrough&&Yt.push(ce.strikethrough),se.emoji&&Yt.push(ce.emoji),se.linkText&&Yt.push(ce.linkText),se.code&&Yt.push(ce.code),se.image&&Yt.push(ce.image),se.imageAltText&&Yt.push(ce.imageAltText,"link"),se.imageMarker&&Yt.push(ce.imageMarker)),se.header&&Yt.push(ce.header,ce.header+"-"+se.header),se.quote&&(Yt.push(ce.quote),!ie.maxBlockquoteDepth||ie.maxBlockquoteDepth>=se.quote?Yt.push(ce.quote+"-"+se.quote):Yt.push(ce.quote+"-"+ie.maxBlockquoteDepth)),se.list!==!1){var _n=(se.listStack.length-1)%3;_n?_n===1?Yt.push(ce.list2):Yt.push(ce.list3):Yt.push(ce.list1)}return se.trailingSpaceNewLine?Yt.push("trailing-space-new-line"):se.trailingSpace&&Yt.push("trailing-space-"+(se.trailingSpace%2?"a":"b")),Yt.length?Yt.join(" "):null}function _t(se,Yt){if(se.match(Bt,!0))return Gt(Yt)}function ge(se,Yt){var fn=Yt.text(se,Yt);if(typeof fn!="undefined")return fn;if(Yt.list)return Yt.list=null,Gt(Yt);if(Yt.taskList){var _n=se.match(ze,!0)[1]===" ";return _n?Yt.taskOpen=!0:Yt.taskClosed=!0,ie.highlightFormatting&&(Yt.formatting="task"),Yt.taskList=!1,Gt(Yt)}if(Yt.taskOpen=!1,Yt.taskClosed=!1,Yt.header&&se.match(/^#+$/,!0))return ie.highlightFormatting&&(Yt.formatting="header"),Gt(Yt);var In=se.next();if(Yt.linkTitle){Yt.linkTitle=!1;var on=In;In==="("&&(on=")"),on=(on+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var jn="^\\s*(?:[^"+on+"\\\\]+|\\\\\\\\|\\\\.)"+on;if(se.match(new RegExp(jn),!0))return ce.linkHref}if(In==="`"){var Pn=Yt.formatting;ie.highlightFormatting&&(Yt.formatting="code"),se.eatWhile("`");var di=se.current().length;if(Yt.code==0&&(!Yt.quote||di==1))return Yt.code=di,Gt(Yt);if(di==Yt.code){var Re=Gt(Yt);return Yt.code=0,Re}else return Yt.formatting=Pn,Gt(Yt)}else if(Yt.code)return Gt(Yt);if(In==="\\"&&(se.next(),ie.highlightFormatting)){var ve=Gt(Yt),Ye=ce.formatting+"-escape";return ve?ve+" "+Ye:Ye}if(In==="!"&&se.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return Yt.imageMarker=!0,Yt.image=!0,ie.highlightFormatting&&(Yt.formatting="image"),Gt(Yt);if(In==="["&&Yt.imageMarker&&se.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return Yt.imageMarker=!1,Yt.imageAltText=!0,ie.highlightFormatting&&(Yt.formatting="image"),Gt(Yt);if(In==="]"&&Yt.imageAltText){ie.highlightFormatting&&(Yt.formatting="image");var ve=Gt(Yt);return Yt.imageAltText=!1,Yt.image=!1,Yt.inline=Yt.f=Pe,ve}if(In==="["&&!Yt.image)return Yt.linkText&&se.match(/^.*?\]/)||(Yt.linkText=!0,ie.highlightFormatting&&(Yt.formatting="link")),Gt(Yt);if(In==="]"&&Yt.linkText){ie.highlightFormatting&&(Yt.formatting="link");var ve=Gt(Yt);return Yt.linkText=!1,Yt.inline=Yt.f=se.match(/\(.*?\)| ?\[.*?\]/,!1)?Pe:ge,ve}if(In==="<"&&se.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){Yt.f=Yt.inline=me,ie.highlightFormatting&&(Yt.formatting="link");var ve=Gt(Yt);return ve?ve+=" ":ve="",ve+ce.linkInline}if(In==="<"&&se.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){Yt.f=Yt.inline=me,ie.highlightFormatting&&(Yt.formatting="link");var ve=Gt(Yt);return ve?ve+=" ":ve="",ve+ce.linkEmail}if(ie.xml&&In==="<"&&se.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var mi=se.string.indexOf(">",se.pos);if(mi!=-1){var Cn=se.string.substring(se.start,mi);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Cn)&&(Yt.md_inside=!0)}return se.backUp(1),Yt.htmlState=yt.startState(we),mt(se,Yt,Zt)}if(ie.xml&&In==="<"&&se.match(/^\/\w*?>/))return Yt.md_inside=!1,"tag";if(In==="*"||In==="_"){for(var Ot=1,At=se.pos==1?" ":se.string.charAt(se.pos-2);Ot<3&&se.eat(In);)Ot++;var wt=se.peek()||" ",Nt=!/\s/.test(wt)&&(!dt.test(wt)||/\s/.test(At)||dt.test(At)),Vt=!/\s/.test(At)&&(!dt.test(At)||/\s/.test(wt)||dt.test(wt)),kt=null,$t=null;if(Ot%2&&(!Yt.em&&Nt&&(In==="*"||!Vt||dt.test(At))?kt=!0:Yt.em==In&&Vt&&(In==="*"||!Nt||dt.test(wt))&&(kt=!1)),Ot>1&&(!Yt.strong&&Nt&&(In==="*"||!Vt||dt.test(At))?$t=!0:Yt.strong==In&&Vt&&(In==="*"||!Nt||dt.test(wt))&&($t=!1)),$t!=null||kt!=null){ie.highlightFormatting&&(Yt.formatting=kt==null?"strong":$t==null?"em":"strong em"),kt===!0&&(Yt.em=In),$t===!0&&(Yt.strong=In);var Re=Gt(Yt);return kt===!1&&(Yt.em=!1),$t===!1&&(Yt.strong=!1),Re}}else if(In===" "&&(se.eat("*")||se.eat("_"))){if(se.peek()===" ")return Gt(Yt);se.backUp(1)}if(ie.strikethrough){if(In==="~"&&se.eatWhile(In)){if(Yt.strikethrough){ie.highlightFormatting&&(Yt.formatting="strikethrough");var Re=Gt(Yt);return Yt.strikethrough=!1,Re}else if(se.match(/^[^\s]/,!1))return Yt.strikethrough=!0,ie.highlightFormatting&&(Yt.formatting="strikethrough"),Gt(Yt)}else if(In===" "&&se.match(/^~~/,!0)){if(se.peek()===" ")return Gt(Yt);se.backUp(2)}}if(ie.emoji&&In===":"&&se.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){Yt.emoji=!0,ie.highlightFormatting&&(Yt.formatting="emoji");var nn=Gt(Yt);return Yt.emoji=!1,nn}return In===" "&&(se.match(/^ +$/,!1)?Yt.trailingSpace++:Yt.trailingSpace&&(Yt.trailingSpaceNewLine=!0)),Gt(Yt)}function me(se,Yt){var fn=se.next();if(fn===">"){Yt.f=Yt.inline=ge,ie.highlightFormatting&&(Yt.formatting="link");var _n=Gt(Yt);return _n?_n+=" ":_n="",_n+ce.linkInline}return se.match(/^[^>]+/,!0),ce.linkInline}function Pe(se,Yt){if(se.eatSpace())return null;var fn=se.next();return fn==="("||fn==="["?(Yt.f=Yt.inline=He(fn==="("?")":"]"),ie.highlightFormatting&&(Yt.formatting="link-string"),Yt.linkHref=!0,Gt(Yt)):"error"}var ye={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function He(se){return function(Yt,fn){var _n=Yt.next();if(_n===se){fn.f=fn.inline=ge,ie.highlightFormatting&&(fn.formatting="link-string");var In=Gt(fn);return fn.linkHref=!1,In}return Yt.match(ye[se]),fn.linkHref=!0,Gt(fn)}}function wn(se,Yt){return se.match(/^([^\]\\]|\\.)*\]:/,!1)?(Yt.f=ln,se.next(),ie.highlightFormatting&&(Yt.formatting="link"),Yt.linkText=!0,Gt(Yt)):gt(se,Yt,ge)}function ln(se,Yt){if(se.match(/^\]:/,!0)){Yt.f=Yt.inline=Oe,ie.highlightFormatting&&(Yt.formatting="link");var fn=Gt(Yt);return Yt.linkText=!1,fn}return se.match(/^([^\]\\]|\\.)+/,!0),ce.linkText}function Oe(se,Yt){return se.eatSpace()?null:(se.match(/^[^\s]+/,!0),se.peek()===void 0?Yt.linkTitle=!0:se.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),Yt.f=Yt.inline=ge,ce.linkHref+" url")}var Sn={startState:function(){return{f:It,prevLine:{stream:null},thisLine:{stream:null},block:It,htmlState:null,indentation:0,inline:ge,text:_t,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(we,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,Yt){if(Yt.formatting=!1,se!=Yt.thisLine.stream){if(Yt.header=0,Yt.hr=!1,se.match(/^\s*$/,!0))return Mt(Yt),null;if(Yt.prevLine=Yt.thisLine,Yt.thisLine={stream:se},Yt.taskList=!1,Yt.trailingSpace=0,Yt.trailingSpaceNewLine=!1,!Yt.localState&&(Yt.f=Yt.block,Yt.f!=Zt)){var fn=se.match(/^\s*/,!0)[0].replace(/\t/g,lt).length;if(Yt.indentation=fn,Yt.indentationDiff=null,fn>0)return null}}return Yt.f(se,Yt)},innerMode:function(se){return se.block==Zt?{state:se.htmlState,mode:we}:se.localState?{state:se.localState,mode:se.localMode}:{state:se,mode:Sn}},indent:function(se,Yt,fn){return se.block==Zt&&we.indent?we.indent(se.htmlState,Yt,fn):se.localState&&se.localMode.indent?se.localMode.indent(se.localState,Yt,fn):yt.Pass},blankLine:Mt,getType:Gt,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Sn},"xml"),yt.defineMIME("text/markdown","markdown"),yt.defineMIME("text/x-markdown","markdown")})},98101:function(Qn,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 ee=0;ee<yt.modeInfo.length;ee++){var ie=yt.modeInfo[ee];ie.mimes&&(ie.mime=ie.mimes[0])}yt.findModeByMIME=function(we){we=we.toLowerCase();for(var Ee=0;Ee<yt.modeInfo.length;Ee++){var jt=yt.modeInfo[Ee];if(jt.mime==we)return jt;if(jt.mimes){for(var ce=0;ce<jt.mimes.length;ce++)if(jt.mimes[ce]==we)return jt}}if(/\+xml$/.test(we))return yt.findModeByMIME("application/xml");if(/\+json$/.test(we))return yt.findModeByMIME("application/json")},yt.findModeByExtension=function(we){we=we.toLowerCase();for(var Ee=0;Ee<yt.modeInfo.length;Ee++){var jt=yt.modeInfo[Ee];if(jt.ext){for(var ce=0;ce<jt.ext.length;ce++)if(jt.ext[ce]==we)return jt}}},yt.findModeByFileName=function(we){for(var Ee=0;Ee<yt.modeInfo.length;Ee++){var jt=yt.modeInfo[Ee];if(jt.file&&jt.file.test(we))return jt}var ce=we.lastIndexOf("."),Ve=ce>-1&&we.substring(ce+1,we.length);if(Ve)return yt.findModeByExtension(Ve)},yt.findModeByName=function(we){we=we.toLowerCase();for(var Ee=0;Ee<yt.modeInfo.length;Ee++){var jt=yt.modeInfo[Ee];if(jt.name.toLowerCase()==we)return jt;if(jt.alias){for(var ce=0;ce<jt.alias.length;ce++)if(jt.alias[ce].toLowerCase()==we)return jt}}}})},67549:function(Qn,pi,Dt){(function(yt){yt(Dt(89780))})(function(yt){"use strict";yt.defineMode("stex",function(ee,ie){"use strict";function we(Bt,nt){Bt.cmdState.push(nt)}function Ee(Bt){return Bt.cmdState.length>0?Bt.cmdState[Bt.cmdState.length-1]:null}function jt(Bt){var nt=Bt.cmdState.pop();nt&&nt.closeBracket()}function ce(Bt){for(var nt=Bt.cmdState,et=nt.length-1;et>=0;et--){var dt=nt[et];if(dt.name!="DEFAULT")return dt}return{styleIdentifier:function(){return null}}}function Ve(Bt,nt,et){return function(){this.name=Bt,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 xe={};xe.importmodule=Ve("importmodule","tag",["string","builtin"]),xe.documentclass=Ve("documentclass","tag",["","atom"]),xe.usepackage=Ve("usepackage","tag",["atom"]),xe.begin=Ve("begin","tag",["atom"]),xe.end=Ve("end","tag",["atom"]),xe.label=Ve("label","tag",["atom"]),xe.ref=Ve("ref","tag",["atom"]),xe.eqref=Ve("eqref","tag",["atom"]),xe.cite=Ve("cite","tag",["atom"]),xe.bibitem=Ve("bibitem","tag",["atom"]),xe.Bibitem=Ve("Bibitem","tag",["atom"]),xe.RBibitem=Ve("RBibitem","tag",["atom"]),xe.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function Lt(Bt,nt){Bt.f=nt}function ze(Bt,nt){var et;if(Bt.match(/^\\[a-zA-Z@]+/)){var dt=Bt.current().slice(1);return et=xe.hasOwnProperty(dt)?xe[dt]:xe.DEFAULT,et=new et,we(nt,et),Lt(nt,Je),et.style}if(Bt.match(/^\\[$&%#{}_]/)||Bt.match(/^\\[,;!\/\\]/))return"tag";if(Bt.match("\\["))return Lt(nt,function(gt,mt){return Kt(gt,mt,"\\]")}),"keyword";if(Bt.match("\\("))return Lt(nt,function(gt,mt){return Kt(gt,mt,"\\)")}),"keyword";if(Bt.match("$$"))return Lt(nt,function(gt,mt){return Kt(gt,mt,"$$")}),"keyword";if(Bt.match("$"))return Lt(nt,function(gt,mt){return Kt(gt,mt,"$")}),"keyword";var lt=Bt.next();if(lt=="%")return Bt.skipToEnd(),"comment";if(lt=="}"||lt=="]"){if(et=Ee(nt),et)et.closeBracket(lt),Lt(nt,Je);else return"error";return"bracket"}else return lt=="{"||lt=="["?(et=xe.DEFAULT,et=new et,we(nt,et),"bracket"):/\d/.test(lt)?(Bt.eatWhile(/[\w.%]/),"atom"):(Bt.eatWhile(/[\w\-_]/),et=ce(nt),et.name=="begin"&&(et.argument=Bt.current()),et.styleIdentifier())}function Kt(Bt,nt,et){if(Bt.eatSpace())return null;if(et&&Bt.match(et))return Lt(nt,ze),"keyword";if(Bt.match(/^\\[a-zA-Z@]+/))return"tag";if(Bt.match(/^[a-zA-Z]+/))return"variable-2";if(Bt.match(/^\\[$&%#{}_]/)||Bt.match(/^\\[,;!\/]/)||Bt.match(/^[\^_&]/))return"tag";if(Bt.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Bt.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var dt=Bt.next();return dt=="{"||dt=="}"||dt=="["||dt=="]"||dt=="("||dt==")"?"bracket":dt=="%"?(Bt.skipToEnd(),"comment"):"error"}function Je(Bt,nt){var et=Bt.peek(),dt;return et=="{"||et=="["?(dt=Ee(nt),dt.openBracket(et),Bt.eat(et),Lt(nt,ze),"bracket"):/[ \t\r]/.test(et)?(Bt.eat(et),null):(Lt(nt,ze),jt(nt),ze(Bt,nt))}return{startState:function(){var Bt=ie.inMathMode?function(nt,et){return Kt(nt,et)}:ze;return{cmdState:[],f:Bt}},copyState:function(Bt){return{cmdState:Bt.cmdState.slice(),f:Bt.f}},token:function(Bt,nt){return nt.f(Bt,nt)},blankLine:function(Bt){Bt.f=ze,Bt.cmdState.length=0},lineComment:"%"}}),yt.defineMIME("text/x-stex","stex"),yt.defineMIME("text/x-latex","stex")})},15525:function(Qn,pi,Dt){(function(yt){yt(Dt(89780))})(function(yt){"use strict";var ee={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},ie={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};yt.defineMode("xml",function(we,Ee){var jt=we.indentUnit,ce={},Ve=Ee.htmlMode?ee:ie;for(var xe in Ve)ce[xe]=Ve[xe];for(var xe in Ee)ce[xe]=Ee[xe];var Lt,ze;function Kt(me,Pe){function ye(ln){return Pe.tokenize=ln,ln(me,Pe)}var He=me.next();if(He=="<")return me.eat("!")?me.eat("[")?me.match("CDATA[")?ye(nt("atom","]]>")):null:me.match("--")?ye(nt("comment","-->")):me.match("DOCTYPE",!0,!0)?(me.eatWhile(/[\w\._\-]/),ye(et(1))):null:me.eat("?")?(me.eatWhile(/[\w\._\-]/),Pe.tokenize=nt("meta","?>"),"meta"):(Lt=me.eat("/")?"closeTag":"openTag",Pe.tokenize=Je,"tag bracket");if(He=="&"){var wn;return me.eat("#")?me.eat("x")?wn=me.eatWhile(/[a-fA-F\d]/)&&me.eat(";"):wn=me.eatWhile(/[\d]/)&&me.eat(";"):wn=me.eatWhile(/[\w\.\-:]/)&&me.eat(";"),wn?"atom":"error"}else return me.eatWhile(/[^&<]/),null}Kt.isInText=!0;function Je(me,Pe){var ye=me.next();if(ye==">"||ye=="/"&&me.eat(">"))return Pe.tokenize=Kt,Lt=ye==">"?"endTag":"selfcloseTag","tag bracket";if(ye=="=")return Lt="equals",null;if(ye=="<"){Pe.tokenize=Kt,Pe.state=mt,Pe.tagName=Pe.tagStart=null;var He=Pe.tokenize(me,Pe);return He?He+" tag error":"tag error"}else return/[\'\"]/.test(ye)?(Pe.tokenize=Bt(ye),Pe.stringStartCol=me.column(),Pe.tokenize(me,Pe)):(me.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Bt(me){var Pe=function(ye,He){for(;!ye.eol();)if(ye.next()==me){He.tokenize=Je;break}return"string"};return Pe.isInAttribute=!0,Pe}function nt(me,Pe){return function(ye,He){for(;!ye.eol();){if(ye.match(Pe)){He.tokenize=Kt;break}ye.next()}return me}}function et(me){return function(Pe,ye){for(var He;(He=Pe.next())!=null;){if(He=="<")return ye.tokenize=et(me+1),ye.tokenize(Pe,ye);if(He==">")if(me==1){ye.tokenize=Kt;break}else return ye.tokenize=et(me-1),ye.tokenize(Pe,ye)}return"meta"}}function dt(me,Pe,ye){this.prev=me.context,this.tagName=Pe,this.indent=me.indented,this.startOfLine=ye,(ce.doNotIndent.hasOwnProperty(Pe)||me.context&&me.context.noIndent)&&(this.noIndent=!0)}function lt(me){me.context&&(me.context=me.context.prev)}function gt(me,Pe){for(var ye;;){if(!me.context||(ye=me.context.tagName,!ce.contextGrabbers.hasOwnProperty(ye)||!ce.contextGrabbers[ye].hasOwnProperty(Pe)))return;lt(me)}}function mt(me,Pe,ye){return me=="openTag"?(ye.tagStart=Pe.column(),St):me=="closeTag"?Mt:mt}function St(me,Pe,ye){return me=="word"?(ye.tagName=Pe.current(),ze="tag",oe):ce.allowMissingTagName&&me=="endTag"?(ze="tag bracket",oe(me,Pe,ye)):(ze="error",St)}function Mt(me,Pe,ye){if(me=="word"){var He=Pe.current();return ye.context&&ye.context.tagName!=He&&ce.implicitlyClosed.hasOwnProperty(ye.context.tagName)&<(ye),ye.context&&ye.context.tagName==He||ce.matchClosing===!1?(ze="tag",It):(ze="tag error",Zt)}else return ce.allowMissingTagName&&me=="endTag"?(ze="tag bracket",It(me,Pe,ye)):(ze="error",Zt)}function It(me,Pe,ye){return me!="endTag"?(ze="error",It):(lt(ye),mt)}function Zt(me,Pe,ye){return ze="error",It(me,Pe,ye)}function oe(me,Pe,ye){if(me=="word")return ze="attribute",Gt;if(me=="endTag"||me=="selfcloseTag"){var He=ye.tagName,wn=ye.tagStart;return ye.tagName=ye.tagStart=null,me=="selfcloseTag"||ce.autoSelfClosers.hasOwnProperty(He)?gt(ye,He):(gt(ye,He),ye.context=new dt(ye,He,wn==ye.indented)),mt}return ze="error",oe}function Gt(me,Pe,ye){return me=="equals"?_t:(ce.allowMissing||(ze="error"),oe(me,Pe,ye))}function _t(me,Pe,ye){return me=="string"?ge:me=="word"&&ce.allowUnquoted?(ze="string",oe):(ze="error",oe(me,Pe,ye))}function ge(me,Pe,ye){return me=="string"?ge:oe(me,Pe,ye)}return{startState:function(me){var Pe={tokenize:Kt,state:mt,indented:me||0,tagName:null,tagStart:null,context:null};return me!=null&&(Pe.baseIndent=me),Pe},token:function(me,Pe){if(!Pe.tagName&&me.sol()&&(Pe.indented=me.indentation()),me.eatSpace())return null;Lt=null;var ye=Pe.tokenize(me,Pe);return(ye||Lt)&&ye!="comment"&&(ze=null,Pe.state=Pe.state(Lt||ye,me,Pe),ze&&(ye=ze=="error"?ye+" error":ze)),ye},indent:function(me,Pe,ye){var He=me.context;if(me.tokenize.isInAttribute)return me.tagStart==me.indented?me.stringStartCol+1:me.indented+jt;if(He&&He.noIndent)return yt.Pass;if(me.tokenize!=Je&&me.tokenize!=Kt)return ye?ye.match(/^(\s*)/)[0].length:0;if(me.tagName)return ce.multilineTagIndentPastTag!==!1?me.tagStart+me.tagName.length+2:me.tagStart+jt*(ce.multilineTagIndentFactor||1);if(ce.alignCDATA&&/<!\[CDATA\[/.test(Pe))return 0;var wn=Pe&&/^<(\/)?([\w_:\.-]*)/.exec(Pe);if(wn&&wn[1])for(;He;)if(He.tagName==wn[2]){He=He.prev;break}else if(ce.implicitlyClosed.hasOwnProperty(He.tagName))He=He.prev;else break;else if(wn)for(;He;){var ln=ce.contextGrabbers[He.tagName];if(ln&&ln.hasOwnProperty(wn[2]))He=He.prev;else break}for(;He&&He.prev&&!He.startOfLine;)He=He.prev;return He?He.indent+jt:me.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:ce.htmlMode?"html":"xml",helperType:ce.htmlMode?"html":"xml",skipAttribute:function(me){me.state==_t&&(me.state=oe)},xmlCurrentTag:function(me){return me.tagName?{name:me.tagName,close:me.type=="closeTag"}:null},xmlCurrentContext:function(me){for(var Pe=[],ye=me.context;ye;ye=ye.prev)ye.tagName&&Pe.push(ye.tagName);return Pe.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(Qn,pi,Dt){"use strict";Dt.d(pi,{$u:function(){return xe},BD:function(){return Ot},E9:function(){return Ve},FF:function(){return yr},FJ:function(){return mt},Hn:function(){return gt},KX:function(){return Mt},NB:function(){return De},S0:function(){return Ye},UL:function(){return Lt},Vk:function(){return lt},Vm:function(){return Qe},YI:function(){return mi},ZA:function(){return ie},Zt:function(){return ze},al:function(){return kt},bn:function(){return Vt},bx:function(){return At},g2:function(){return Cn},h1:function(){return _t},hD:function(){return li},l4:function(){return jt},rU:function(){return Ce},s_:function(){return wt},uz:function(){return En},z6:function(){return Kt}}),Qn=Dt.hmd(Qn),function(){var Et;function Bn(a){var y=0;return function(){return y<a.length?{done:!1,value:a[y++]}:{done:!0}}}function Gn(a){var y=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];return y?y.call(a):{next:Bn(a)}}function fi(a){for(var y,x=[];!(y=a.next()).done;)x.push(y.value);return x}var ci=typeof Object.create=="function"?Object.create:function(a){function y(){}return y.prototype=a,new y},Kn;if(typeof Object.setPrototypeOf=="function")Kn=Object.setPrototypeOf;else{var rn;t:{var Yn={a:!0},Fe={};try{Fe.__proto__=Yn,rn=Fe.a;break t}catch(a){}rn=!1}Kn=rn?function(a,y){if(a.__proto__=y,a.__proto__!==y)throw new TypeError(a+" is not extensible");return a}:null}var Ne=Kn;function ke(a,y){if(a.prototype=ci(y.prototype),a.prototype.constructor=a,Ne)Ne(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 sn=typeof Dt.g!="undefined"&&Dt.g!=null?Dt.g:self,xi=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},yi=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,y,x){a!=Array.prototype&&a!=Object.prototype&&(a[y]=x.value)};function Fi(a,y){if(y){var x=sn;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&&yi(x,a,{writable:!0,value:y})}}Fi("Object.assign",function(a){return a||xi}),Fi("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 Xe=typeof globalThis=="object"&&globalThis||typeof Dt.g=="object"&&Dt.g.global===Dt.g&&Dt.g||typeof self=="object"&&self.self===self&&self||{};Xe.requestAnimationFrame===void 0&&(Xe.setImmediate===void 0?Xe.requestAnimationFrame=function(a){Xe.setTimeout(a,0)}:Xe.requestAnimationFrame=Xe.setImmediate);function Dn(){}function mn(a,y){var x=-1;return function(){var E=this,b=arguments;x!==-1&&Xe.clearTimeout(x),x=Hi(function(){x=-1,a.apply(E,b)},y)}}function Hi(a,y){return Xe.setTimeout(a,y)}function qn(a){return Xe.document.createElement(a)}function te(a){throw Error(a)}function be(a,y){a="The object is frozen, so its properties cannot be set: "+a.toString(),y!==void 0&&(a+=" to value: "+y),te(a)}function Jn(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),te(x+" is not in the range "+y+": "+a)}function Fn(a){Xe.console&&Xe.console.log(a)}function Be(a){return typeof a=="object"&&a!==null}function zn(a){return Array.isArray(a)||Xe.NodeList&&a instanceof Xe.NodeList||Xe.HTMLCollection&&a instanceof Xe.HTMLCollection}function Ai(a){return Array.prototype.slice.call(a)}function Ii(a,y,x){Array.isArray(a)?y>=a.length?a.push(x):a.splice(y,0,x):te("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):te("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function oi(){var a=_r.pop();return a===void 0?[]:a}function gi(a){a.length=0,_r.push(a)}function Si(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(Be(a)&&a.constructor)return Si(a.constructor);return typeof a}function Ui(a){var y=a;return Be(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 ji(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 Mn(a,y,x){Object.defineProperty(Ao.prototype,a,{get:y,set:x})}function Ei(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 xr=Xe.navigator!==void 0&&0<Xe.navigator.userAgent.indexOf("Trident/7"),Tr=Xe.navigator!==void 0&&Xe.navigator.platform!==void 0&&Xe.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,_r=[];Object.freeze([]),Dn.className="Util",Dn.Dx="32ab5ff3b26f42dc0ed90f21472913b5",Dn.adym="gojs.net",Dn.vfo="28e645fdb266",Dn.className="Util";function We(a,y,x){bi(this),this.j=a,this.xa=y,this.o=x}We.prototype.toString=function(){return"EnumValue."+this.xa};function ar(a,y){return y==null||y===""?null:a[y]}sn.Object.defineProperties(We.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),We.className="EnumValue";function br(){this.ew=[]}br.prototype.toString=function(){return this.ew.join("")},br.prototype.add=function(a){a!==""&&this.ew.push(a)},br.className="StringBuilder";function Gi(){}Gi.className="PropertyCollection";var Gr={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(a){Xe.console&&Xe.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 Or(){}Or.prototype.reset=function(){},Or.prototype.next=function(){return!1},Or.prototype.Ad=function(){return!1},Or.prototype.first=function(){return null},Or.prototype.any=function(){return!1},Or.prototype.all=function(){return!0},Or.prototype.each=function(){return this},Or.prototype.map=function(){return this},Or.prototype.filter=function(){return this},Or.prototype.de=function(){},Or.prototype.toString=function(){return"EmptyIterator"},sn.Object.defineProperties(Or.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),Or.prototype.first=Or.prototype.first,Or.prototype.hasNext=Or.prototype.Ad,Or.prototype.next=Or.prototype.next,Or.prototype.reset=Or.prototype.reset;var Wr=null;Or.className="EmptyIterator",Wr=new Or;function Zi(a){this.key=-1,this.value=a}Zi.prototype.reset=function(){this.key=-1},Zi.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},Zi.prototype.Ad=function(){return this.next()},Zi.prototype.first=function(){return this.key=0,this.value},Zi.prototype.any=function(a){return this.key=-1,a(this.value)},Zi.prototype.all=function(a){return this.key=-1,a(this.value)},Zi.prototype.each=function(a){return this.key=-1,a(this.value),this},Zi.prototype.map=function(a){return new Zi(a(this.value))},Zi.prototype.filter=function(a){return a(this.value)?new Zi(this.value):Wr},Zi.prototype.de=function(){this.value=null},Zi.prototype.toString=function(){return"SingletonIterator("+this.value+")"},sn.Object.defineProperties(Zi.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),Zi.prototype.first=Zi.prototype.first,Zi.prototype.hasNext=Zi.prototype.Ad,Zi.prototype.next=Zi.prototype.next,Zi.prototype.reset=Zi.prototype.reset,Zi.className="SingletonIterator";function ir(a){this.Bb=a,this.qf=null,a.Sa=null,this.qa=a.Ja,this.Za=-1}ir.prototype.reset=function(){var a=this.Bb;a.Sa=null,this.qa=a.Ja,this.Za=-1},ir.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},ir.prototype.Ad=function(){return this.next()},ir.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},ir.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},ir.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},ir.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},ir.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 pn,a.s=x,a.xb(),a.iterator},ir.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 pn,a.s=x,a.xb(),a.iterator},ir.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},ir.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},sn.Object.defineProperties(ir.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}}}),ir.prototype.first=ir.prototype.first,ir.prototype.hasNext=ir.prototype.Ad,ir.prototype.next=ir.prototype.next,ir.prototype.reset=ir.prototype.reset,ir.className="ListIterator";function Qi(a){this.Bb=a,a.Hg=null,this.qa=a.Ja,this.Za=a.s.length}Qi.prototype.reset=function(){var a=this.Bb;a.Hg=null,this.qa=a.Ja,this.Za=a.s.length},Qi.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)},Qi.prototype.Ad=function(){return this.next()},Qi.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},Qi.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},Qi.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},Qi.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},Qi.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 pn,a.s=x,a.xb(),a.iterator},Qi.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 pn,a.s=x,a.xb(),a.iterator},Qi.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},Qi.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},sn.Object.defineProperties(Qi.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),Qi.prototype.first=Qi.prototype.first,Qi.prototype.hasNext=Qi.prototype.Ad,Qi.prototype.next=Qi.prototype.next,Qi.prototype.reset=Qi.prototype.reset,Qi.className="ListIteratorBackwards";function pn(a){bi(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&te("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Et=pn.prototype,Et.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Et.freeze=function(){return this._isFrozen=!0,this},Et.ka=function(){return this._isFrozen=!1,this},Et.toString=function(){return"List()#"+Er(this)},Et.add=function(a){return a===null?this:(this._isFrozen&&be(this,a),this.s.push(a),this.xb(),this)},Et.push=function(a){this.add(a)},Et.addAll=function(a){if(a===null)return this;this._isFrozen&&be(this);var y=this.s;if(zn(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},Et.clear=function(){this._isFrozen&&be(this),this.s.length=0,this.xb()},Et.contains=function(a){return a===null?!1:this.s.indexOf(a)!==-1},Et.has=function(a){return this.contains(a)},Et.indexOf=function(a){return a===null?-1:this.s.indexOf(a)},Et.M=function(a){var y=this.s;return(0>a||a>=y.length)&&Jn(a,"0 <= i < length",pn,"elt:i"),y[a]},Et.get=function(a){return this.M(a)},Et.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&Jn(a,"0 <= i < length",pn,"setElt:i"),this._isFrozen&&be(this,a),x[a]=y},Et.set=function(a,y){this.cd(a,y)},Et.first=function(){var a=this.s;return a.length===0?null:a[0]},Et.jc=function(){var a=this.s,y=a.length;return 0<y?a[y-1]:null},Et.pop=function(){this._isFrozen&&be(this);var a=this.s;return 0<a.length?a.pop():null},pn.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},pn.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},pn.prototype.each=function(a){for(var y=this.s,x=y.length,E=0;E<x;E++)a(y[E]);return this},pn.prototype.map=function(a){for(var y=new pn,x=[],E=this.s,b=E.length,z=0;z<b;z++)x.push(a(E[z]));return y.s=x,y.xb(),y},pn.prototype.filter=function(a){for(var y=new pn,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},Et=pn.prototype,Et.Gb=function(a,y){0>a&&Jn(a,">= 0",pn,"insertAt:i"),this._isFrozen&&be(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},Et.remove=function(a){if(a===null)return!1;this._isFrozen&&be(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)},Et.delete=function(a){return this.remove(a)},Et.mb=function(a){var y=this.s;(0>a||a>=y.length)&&Jn(a,"0 <= i < length",pn,"removeAt:i"),this._isFrozen&&be(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},Et.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&&be(this);for(var b=a,z=y+1;z<E;)x[b++]=x[z++];return x.length=E-(y-a+1),this.xb(),this},pn.prototype.copy=function(){var a=new pn,y=this.s;return 0<y.length&&(a.s=Array.prototype.slice.call(y)),a},Et=pn.prototype,Et.Fa=function(){for(var a=this.s,y=this.count,x=Array(y),E=0;E<y;E++)x[E]=a[E];return x},Et.Iv=function(){for(var a=new xn,y=this.s,x=this.count,E=0;E<x;E++)a.add(y[E]);return a},Et.sort=function(a){return this._isFrozen&&be(this),this.s.sort(a),this.xb(),this},Et.zi=function(a,y,x){var E=this.s,b=E.length;y===void 0&&(y=0),x===void 0&&(x=b),this._isFrozen&&be(this);var z=x-y;if(1>=z)return this;if((0>y||y>=b-1)&&Jn(y,"0 <= from < length",pn,"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},Et.reverse=function(){return this._isFrozen&&be(this),this.s.reverse(),this.xb(),this},sn.Object.defineProperties(pn.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 Wr;var a=this.Sa;return a!==null?(a.reset(),a):new ir(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return Wr;var a=this.Hg;return a!==null?(a.reset(),a):new Qi(this)}}}),pn.prototype.reverse=pn.prototype.reverse,pn.prototype.sortRange=pn.prototype.zi,pn.prototype.sort=pn.prototype.sort,pn.prototype.toSet=pn.prototype.Iv,pn.prototype.toArray=pn.prototype.Fa,pn.prototype.removeRange=pn.prototype.removeRange,pn.prototype.removeAt=pn.prototype.mb,pn.prototype.delete=pn.prototype.delete,pn.prototype.remove=pn.prototype.remove,pn.prototype.insertAt=pn.prototype.Gb,pn.prototype.pop=pn.prototype.pop,pn.prototype.last=pn.prototype.jc,pn.prototype.first=pn.prototype.first,pn.prototype.set=pn.prototype.set,pn.prototype.setElt=pn.prototype.cd,pn.prototype.get=pn.prototype.get,pn.prototype.elt=pn.prototype.M,pn.prototype.indexOf=pn.prototype.indexOf,pn.prototype.has=pn.prototype.has,pn.prototype.contains=pn.prototype.contains,pn.prototype.clear=pn.prototype.clear,pn.prototype.addAll=pn.prototype.addAll,pn.prototype.push=pn.prototype.push,pn.prototype.add=pn.prototype.add,pn.prototype.thaw=pn.prototype.ka,pn.prototype.freeze=pn.prototype.freeze,pn.className="List";function dr(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}dr.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},dr.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)},dr.prototype.Ad=function(){return this.next()},dr.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},dr.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},dr.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},dr.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},dr.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new pn;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},dr.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new pn;for(y=y.ea;y!==null;){var E=y.value;a(E)&&x.add(E),y=y.va}return x.iterator},dr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},dr.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},sn.Object.defineProperties(dr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),dr.prototype.first=dr.prototype.first,dr.prototype.hasNext=dr.prototype.Ad,dr.prototype.next=dr.prototype.next,dr.prototype.reset=dr.prototype.reset,dr.className="SetIterator";function xn(a){bi(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&te("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Et=xn.prototype,Et.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Et.freeze=function(){return this._isFrozen=!0,this},Et.ka=function(){return this._isFrozen=!1,this},Et.toString=function(){return"Set()#"+Er(this)},Et.add=function(a){if(a===null)return this;this._isFrozen&&be(this,a);var y=a;return Be(a)&&(y=Sr(a)),this.Tb[y]===void 0&&(this.Sb++,a=new tn(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},Et.addAll=function(a){if(a===null)return this;if(this._isFrozen&&be(this),zn(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},Et.contains=function(a){if(a===null)return!1;var y=a;return Be(a)&&(y=Er(a),y===void 0)?!1:this.Tb[y]!==void 0},Et.has=function(a){return this.contains(a)},Et.Sy=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(!this.contains(a.value))return!1;return!0},Et.Ty=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(this.contains(a.value))return!0;return!1},Et.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},Et=xn.prototype,Et.remove=function(a){if(a===null)return!1;this._isFrozen&&be(this,a);var y=a;if(Be(a)&&(y=Er(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},Et.delete=function(a){return this.remove(a)},Et.hp=function(a){if(a===null)return this;if(this._isFrozen&&be(this),zn(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},Et.pA=function(a){if(a===null||this.count===0)return this;this._isFrozen&&be(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},Et.clear=function(){this._isFrozen&&be(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 pn,y=this.Tb,x;for(x in y)a.add(y[x].value);return a};function bi(a){a.__gohashid=io++}function Sr(a){var y=a.__gohashid;return y===void 0&&(y=io++,a.__gohashid=y),y}function Er(a){return a.__gohashid}sn.Object.defineProperties(xn.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return Wr;var a=this.Sa;return a!==null?(a.reset(),a):new dr(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 io=1;xn.className="Set",xn.uniqueHash=bi,xn.hashIdUnique=Sr,xn.hashId=Er;function Yr(a){this.ma=a,this.qa=a.Ja,this.sa=null}Yr.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},Yr.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)},Yr.prototype.Ad=function(){return this.next()},Yr.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},Yr.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},Yr.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},Yr.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},Yr.prototype.map=function(a){var y=this.ma;this.sa=null;var x=new pn;for(y=y.ea;y!==null;)x.add(a(y.key)),y=y.va;return x.iterator},Yr.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new pn;for(y=y.ea;y!==null;){var E=y.key;a(E)&&x.add(E),y=y.va}return x.iterator},Yr.prototype.de=function(){this.value=this.key=null,this.qa=-1},Yr.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},sn.Object.defineProperties(Yr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Yr.prototype.first=Yr.prototype.first,Yr.prototype.hasNext=Yr.prototype.Ad,Yr.prototype.next=Yr.prototype.next,Yr.prototype.reset=Yr.prototype.reset,Yr.className="MapKeySetIterator";function Mr(a){xn.call(this),bi(this),this._isFrozen=!0,this.ma=a}ke(Mr,xn),Et=Mr.prototype,Et.freeze=function(){return this},Et.ka=function(){return this},Et.toString=function(){return"MapKeySet("+this.ma.toString()+")"},Et.add=function(){te("This Set is read-only: "+this.toString())},Et.contains=function(a){return this.ma.contains(a)},Et.has=function(a){return this.contains(a)},Et.remove=function(){te("This Set is read-only: "+this.toString())},Et.delete=function(a){return this.remove(a)},Et.clear=function(){te("This Set is read-only: "+this.toString())},Et.first=function(){var a=this.ma.ea;return a!==null?a.key:null},Mr.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},Mr.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},Mr.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},Mr.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},Mr.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},Mr.prototype.copy=function(){return new Mr(this.ma)},Mr.prototype.Iv=function(){var a=new xn,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},Mr.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},Mr.prototype.Hv=function(){var a=new pn,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},sn.Object.defineProperties(Mr.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?Wr:new Yr(this.ma)}}}),Mr.prototype.toList=Mr.prototype.Hv,Mr.prototype.toArray=Mr.prototype.Fa,Mr.prototype.toSet=Mr.prototype.Iv,Mr.prototype.first=Mr.prototype.first,Mr.prototype.clear=Mr.prototype.clear,Mr.prototype.delete=Mr.prototype.delete,Mr.prototype.remove=Mr.prototype.remove,Mr.prototype.has=Mr.prototype.has,Mr.prototype.contains=Mr.prototype.contains,Mr.prototype.add=Mr.prototype.add,Mr.prototype.thaw=Mr.prototype.ka,Mr.prototype.freeze=Mr.prototype.freeze,Mr.className="MapKeySet";function uo(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}uo.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},uo.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)},uo.prototype.Ad=function(){return this.next()},uo.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},uo.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},uo.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},uo.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},uo.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var x=new pn;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},uo.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var x=new pn;for(y=y.ea;y!==null;){var E=y.value;a(E)&&x.add(E),y=y.va}return x.iterator},uo.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},uo.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},sn.Object.defineProperties(uo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),uo.prototype.first=uo.prototype.first,uo.prototype.hasNext=uo.prototype.Ad,uo.prototype.next=uo.prototype.next,uo.prototype.reset=uo.prototype.reset,uo.className="MapValueSetIterator";function tn(a,y){this.key=a,this.value=y,this.ll=this.va=null}tn.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},tn.className="KeyValuePair";function Hn(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}Hn.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},Hn.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)},Hn.prototype.Ad=function(){return this.next()},Hn.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},Hn.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},Hn.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},Hn.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},Hn.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new pn;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},Hn.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new pn;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},Hn.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},Hn.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},sn.Object.defineProperties(Hn.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Hn.prototype.first=Hn.prototype.first,Hn.prototype.hasNext=Hn.prototype.Ad,Hn.prototype.next=Hn.prototype.next,Hn.prototype.reset=Hn.prototype.reset,Hn.className="MapIterator";function _e(a){bi(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"&&te("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Et=_e.prototype,Et.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Et.freeze=function(){return this._isFrozen=!0,this},Et.ka=function(){return this._isFrozen=!1,this},Et.toString=function(){return"Map()#"+Er(this)},Et.add=function(a,y){this._isFrozen&&be(this,a);var x=a;Be(a)&&(x=Sr(a));var E=this.Tb[x];return E===void 0?(this.Sb++,a=new tn(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},Et.set=function(a,y){return this.add(a,y)},Et.addAll=function(a){if(a===null)return this;if(zn(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 _e)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},Et.first=function(){return this.ea},_e.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},_e.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},_e.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y),y=y.va;return this},_e.prototype.map=function(a){for(var y=new _e,x=this.ea;x!==null;)y.add(x.key,a(x)),x=x.va;return y},_e.prototype.filter=function(a){for(var y=new _e,x=this.ea;x!==null;)a(x)&&y.add(x.key,x.value),x=x.va;return y},Et=_e.prototype,Et.contains=function(a){var y=a;return Be(a)&&(y=Er(a),y===void 0)?!1:this.Tb[y]!==void 0},Et.has=function(a){return this.contains(a)},Et.I=function(a){var y=a;return Be(a)&&(y=Er(a),y===void 0)?null:(a=this.Tb[y],a===void 0?null:a.value)},Et.get=function(a){return this.I(a)},Et.remove=function(a){if(a===null)return!1;this._isFrozen&&be(this,a);var y=a;if(Be(a)&&(y=Er(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},Et.delete=function(a){return this.remove(a)},Et.clear=function(){this._isFrozen&&be(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()},_e.prototype.copy=function(){var a=new _e,y=this.Tb,x;for(x in y){var E=y[x];a.add(E.key,E.value)}return a},_e.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 tn(b.key,b.value),x++}return y},_e.prototype.Lf=function(){return new Mr(this)},sn.Object.defineProperties(_e.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return Wr;var a=this.Sa;return a!==null?(a.reset(),a):new Hn(this)}},iteratorKeys:{get:function(){return 0>=this.count?Wr:new Yr(this)}},iteratorValues:{get:function(){if(0>=this.count)return Wr;var a=this.jf;return a!==null?(a.reset(),a):new uo(this)}}}),_e.prototype.toKeySet=_e.prototype.Lf,_e.prototype.toArray=_e.prototype.Fa,_e.prototype.clear=_e.prototype.clear,_e.prototype.delete=_e.prototype.delete,_e.prototype.remove=_e.prototype.remove,_e.prototype.get=_e.prototype.get,_e.prototype.getValue=_e.prototype.I,_e.prototype.has=_e.prototype.has,_e.prototype.contains=_e.prototype.contains,_e.prototype.first=_e.prototype.first,_e.prototype.addAll=_e.prototype.addAll,_e.prototype.set=_e.prototype.set,_e.prototype.add=_e.prototype.add,_e.prototype.thaw=_e.prototype.ka,_e.prototype.freeze=_e.prototype.freeze,_e.className="Map";function Tt(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):te("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var Wt,qt,Se,Te,en;Tt.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},Tt.prototype.h=function(a,y){return this.x=a,this.y=y,this},Tt.prototype.sg=function(a,y){return this.x=a,this.y=y,this},Tt.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},Tt.prototype.copy=function(){var a=new Tt;return a.x=this.x,a.y=this.y,a},Et=Tt.prototype,Et.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Et.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Et.freeze=function(){return this._isFrozen=!0,this},Et.ka=function(){return Object.isFrozen(this)&&te("cannot thaw constant: "+this),this._isFrozen=!1,this};function ne(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 Tt(x,b)}return new Tt}function Me(a){return a.x.toString()+" "+a.y.toString()}Et.toString=function(){return"Point("+this.x+","+this.y+")"},Et.D=function(a){return a instanceof Tt?this.x===a.x&&this.y===a.y:!1},Et.hi=function(a,y){return this.x===a&&this.y===y},Et.Xa=function(a){return pe.B(this.x,a.x)&&pe.B(this.y,a.y)},Et.add=function(a){return this.x+=a.x,this.y+=a.y,this},Et.re=function(a){return this.x-=a.x,this.y-=a.y,this},Et.offset=function(a,y){return this.x+=a,this.y+=y,this},Tt.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},Et=Tt.prototype,Et.scale=function(a,y){return this.x*=a,this.y*=y,this},Et.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},Et.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},Et.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},Et.ab=function(a){return Ke(a.x-this.x,a.y-this.y)},Et.direction=function(a,y){return Ke(a-this.x,y-this.y)};function Ke(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}Et.Ry=function(a,y){return pe.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},Et.fA=function(a,y,x,E){return pe.qh(a,y,x,E,this.x,this.y,this),this},Et.gA=function(a,y){return pe.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},Et.uA=function(a,y,x,E){return pe.No(this.x,this.y,a,y,x,E,this),this},Et.vA=function(a,y){return pe.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},Et.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},Et.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},Et.transform=function(a){return a.Ga(this),this};function je(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 An(a,y,x,E){return a=x-a,y=E-y,a*a+y*y}function Ct(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)}Et.w=function(){return isFinite(this.x)&&isFinite(this.y)},Tt.alloc=function(){var a=Qt.pop();return a===void 0?new Tt:a},Tt.allocAt=function(a,y){var x=Qt.pop();return x===void 0?new Tt(a,y):(x.x=a,x.y=y,x)},Tt.free=function(a){Qt.push(a)},Tt.prototype.isReal=Tt.prototype.w,Tt.prototype.setSpot=Tt.prototype.yi,Tt.prototype.setRectSpot=Tt.prototype.xi,Tt.prototype.snapToGridPoint=Tt.prototype.vA,Tt.prototype.snapToGrid=Tt.prototype.uA,Tt.prototype.projectOntoLineSegmentPoint=Tt.prototype.gA,Tt.prototype.projectOntoLineSegment=Tt.prototype.fA,Tt.intersectingLineSegments=function(a,y,x,E,b,z,tt,rt){return pe.Rl(a,y,x,E,b,z,tt,rt)},Tt.prototype.compareWithLineSegmentPoint=Tt.prototype.Ry,Tt.compareWithLineSegment=function(a,y,x,E,b,z){return pe.Fl(a,y,x,E,b,z)},Tt.prototype.direction=Tt.prototype.direction,Tt.prototype.directionPoint=Tt.prototype.ab,Tt.prototype.normalize=Tt.prototype.normalize,Tt.prototype.distanceSquared=Tt.prototype.zd,Tt.prototype.distanceSquaredPoint=Tt.prototype.Bf,Tt.prototype.scale=Tt.prototype.scale,Tt.prototype.rotate=Tt.prototype.rotate,Tt.prototype.offset=Tt.prototype.offset,Tt.prototype.subtract=Tt.prototype.re,Tt.prototype.add=Tt.prototype.add,Tt.prototype.equalsApprox=Tt.prototype.Xa,Tt.prototype.equalTo=Tt.prototype.hi,Tt.prototype.equals=Tt.prototype.D,Tt.prototype.set=Tt.prototype.set,Tt.prototype.setTo=Tt.prototype.sg;var Qt=[];Tt.className="Point",Tt.parse=ne,Tt.stringify=Me,Tt.distanceLineSegmentSquared=hn,Tt.distanceSquared=An,Tt.direction=Ct,Tt.Origin=Wt=new Tt(0,0).ja(),Tt.InfiniteTopLeft=qt=new Tt(-1/0,-1/0).ja(),Tt.InfiniteBottomRight=Se=new Tt(1/0,1/0).ja(),Tt.SixPoint=Te=new Tt(6,6).ja(),Tt.NoPoint=en=new Tt(NaN,NaN).ja(),Tt.parse=ne,Tt.stringify=Me,Tt.distanceLineSegmentSquared=hn,Tt.distanceSquared=An,Tt.direction=Ct;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):te("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var de,ue,Ge,Ze,an,kn,Un;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},Et=zt.prototype,Et.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Et.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Et.freeze=function(){return this._isFrozen=!0,this},Et.ka=function(){return Object.isFrozen(this)&&te("cannot thaw constant: "+this),this._isFrozen=!1,this};function yn(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 si(a){return a.width.toString()+" "+a.height.toString()}Et.toString=function(){return"Size("+this.width+","+this.height+")"},Et.D=function(a){return a instanceof zt?this.width===a.width&&this.height===a.height:!1},Et.hi=function(a,y){return this.width===a&&this.height===y},Et.Xa=function(a){return pe.B(this.width,a.width)&&pe.B(this.height,a.height)},Et.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},Et.w=function(){return isFinite(this.width)&&isFinite(this.height)},zt.alloc=function(){var a=vi.pop();return a===void 0?new zt:a},zt.free=function(a){vi.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 vi=[];zt.className="Size",zt.parse=yn,zt.stringify=si,zt.ZeroSize=de=new zt(0,0).ja(),zt.OneSize=ue=new zt(1,1).ja(),zt.SixSize=Ge=new zt(6,6).ja(),zt.EightSize=Ze=new zt(8,8).ja(),zt.TenSize=an=new zt(10,10).ja(),zt.InfiniteSize=kn=new zt(1/0,1/0).ja(),zt.NoSize=Un=new zt(NaN,NaN).ja(),zt.parse=yn,zt.stringify=si;function le(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 Tt?(x=a.x,a=a.y,y instanceof Tt?(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):te("Incorrect second argument supplied to Rect constructor "+y)):te("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+E),this._isFrozen=!1}Et=le.prototype,Et.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Et.h=function(a,y,x,E){return this.x=a,this.y=y,this.width=x,this.height=E,this};function ei(a,y,x){a.width=y,a.height=x}Et.sg=function(a,y,x,E){return this.x=a,this.y=y,this.width=x,this.height=E,this},Et.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Et.dd=function(a){return this.x=a.x,this.y=a.y,this},Et.tA=function(a){return this.width=a.width,this.height=a.height,this},le.prototype.copy=function(){var a=new le;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},Et=le.prototype,Et.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Et.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Et.freeze=function(){return this._isFrozen=!0,this},Et.ka=function(){return Object.isFrozen(this)&&te("cannot thaw constant: "+this),this._isFrozen=!1,this};function ni(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 le(x,b,z,tt)}return new le}function Wn(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}Et.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},Et.D=function(a){return a instanceof le?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},Et.hi=function(a,y,x,E){return this.x===a&&this.y===y&&this.width===x&&this.height===E},Et.Xa=function(a){return pe.B(this.x,a.x)&&pe.B(this.y,a.y)&&pe.B(this.width,a.width)&&pe.B(this.height,a.height)};function Vn(a,y){return pe.$(a.x,y.x)&&pe.$(a.y,y.y)&&pe.$(a.width,y.width)&&pe.$(a.height,y.height)}Et.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},Et.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},Et.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},Et.offset=function(a,y){return this.x+=a,this.y+=y,this},Et.Bc=function(a,y){return Ni(this,y,a,y,a)},Et.Co=function(a){return Ni(this,a.top,a.right,a.bottom,a.left)},Et.Fv=function(a){return Ni(this,-a.top,-a.right,-a.bottom,-a.left)},Et.Hz=function(a,y,x,E){return Ni(this,a,y,x,E)};function Ni(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}Et.Ex=function(a){return Di(this,a.x,a.y,a.width,a.height)},Et.Uu=function(a,y,x,E){return Di(this,a,y,x,E)};function Di(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}Et.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},Et.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 Mi(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))}Et.Ye=function(a){return Ti(this,a.x,a.y,0,0)},Et.ed=function(a){return Ti(this,a.x,a.y,a.width,a.height)},Et.Kv=function(a,y,x,E){return x===void 0&&(x=0),E===void 0&&(E=0),Ti(this,a,y,x,E)};function Ti(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}Et.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 Ri(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 or(a,y,x,E,b,z,tt,rt){return a>tt+b||b>x+a?!1:!(y>rt+z||z>E+y)}Et.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},Et.Mz=function(){return this.width===0&&this.height===0},le.alloc=function(){var a=Hr.pop();return a===void 0?new le:a},le.allocAt=function(a,y,x,E){var b=Hr.pop();return b===void 0?new le(a,y,x,E):b.h(a,y,x,E)},le.free=function(a){Hr.push(a)},sn.Object.defineProperties(le.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 Tt(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 Tt(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}}}),le.prototype.isEmpty=le.prototype.Mz,le.prototype.isReal=le.prototype.w,le.intersectsLineSegment=function(a,y,x,E,b,z,tt,rt){return pe.Fx(a,y,x,E,b,z,tt,rt)},le.prototype.setSpot=le.prototype.yi,le.prototype.union=le.prototype.Kv,le.prototype.unionRect=le.prototype.ed,le.prototype.unionPoint=le.prototype.Ye,le.prototype.intersects=le.prototype.Vu,le.prototype.intersectsRect=le.prototype.Yc,le.prototype.intersect=le.prototype.Uu,le.prototype.intersectRect=le.prototype.Ex,le.prototype.grow=le.prototype.Hz,le.prototype.subtractMargin=le.prototype.Fv,le.prototype.addMargin=le.prototype.Co,le.prototype.inflate=le.prototype.Bc,le.prototype.offset=le.prototype.offset,le.prototype.contains=le.prototype.contains,le.prototype.containsRect=le.prototype.Re,le.prototype.containsPoint=le.prototype.ca,le.prototype.equalsApprox=le.prototype.Xa,le.prototype.equalTo=le.prototype.hi,le.prototype.equals=le.prototype.D,le.prototype.setSize=le.prototype.tA,le.prototype.setPoint=le.prototype.dd,le.prototype.set=le.prototype.set,le.prototype.setTo=le.prototype.sg;var Ir=null,jr=null,Hr=[];le.className="Rect",le.parse=ni,le.stringify=Wn,le.contains=Ri,le.intersects=or,le.ZeroRect=Ir=new le(0,0,0,0).ja(),le.NoRect=jr=new le(NaN,NaN,NaN,NaN).ja(),le.parse=ni,le.stringify=Wn,le.contains=Ri,le.intersects=or;function Bi(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):te("Invalid arguments to Margin constructor: "+a+", "+y+", "+x+", "+E),this._isFrozen=!1}Bi.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Bi.prototype.sg=function(a,y,x,E){return this.top=a,this.right=y,this.bottom=x,this.left=E,this},Bi.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Bi.prototype.copy=function(){var a=new Bi;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},Et=Bi.prototype,Et.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Et.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Et.freeze=function(){return this._isFrozen=!0,this},Et.ka=function(){return Object.isFrozen(this)&&te("cannot thaw constant: "+this),this._isFrozen=!1,this};function Ar(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 Bi;for(var b=NaN;a[y]==="";)y++;if((E=a[y++])&&(b=parseFloat(E)),isNaN(b))return new Bi(x);for(var z=NaN;a[y]==="";)y++;if((E=a[y++])&&(z=parseFloat(E)),isNaN(z))return new Bi(x,b);for(var tt=NaN;a[y]==="";)y++;return(E=a[y++])&&(tt=parseFloat(E)),isNaN(tt)?new Bi(x,b):new Bi(x,b,z,tt)}return new Bi}function wr(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}Et.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},Et.D=function(a){return a instanceof Bi?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},Et.hi=function(a,y,x,E){return this.top===a&&this.right===y&&this.bottom===x&&this.left===E},Et.Xa=function(a){return pe.B(this.top,a.top)&&pe.B(this.right,a.right)&&pe.B(this.bottom,a.bottom)&&pe.B(this.left,a.left)},Et.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},Bi.alloc=function(){var a=Rr.pop();return a===void 0?new Bi:a},Bi.free=function(a){Rr.push(a)},Bi.prototype.isReal=Bi.prototype.w,Bi.prototype.equalsApprox=Bi.prototype.Xa,Bi.prototype.equalTo=Bi.prototype.hi,Bi.prototype.equals=Bi.prototype.D,Bi.prototype.set=Bi.prototype.set,Bi.prototype.setTo=Bi.prototype.sg;var Nr=null,mr=null,Rr=[];Bi.className="Margin",Bi.parse=Ar,Bi.stringify=wr,Bi.ZeroMargin=Nr=new Bi(0,0,0,0).ja(),Bi.TwoMargin=mr=new Bi(2,2,2,2).ja(),Bi.parse=Ar,Bi.stringify=wr;function ri(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 Vi,Ji,lr,qi,nr,ki,Br,Kr,Qr,Pr,to,Ur,Xr,fo,mo,Bo,ao,ia,po,Jo,Po,Vo,Go,Yo,Ro,Lo,oa,wa,zo,Oa,bo,yo,vo,Qo,ro,ea;ri.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},ri.prototype.sg=function(a,y,x,E){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=E,this},ri.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},ri.prototype.copy=function(){var a=new ri;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},Et=ri.prototype,Et.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Et.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Et.freeze=function(){return this._isFrozen=!0,this},Et.ka=function(){return Object.isFrozen(this)&&te("cannot thaw constant: "+this),this._isFrozen=!1,this};function vr(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function ur(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return Vi;if(a==="TopLeft")return Ji;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return lr;if(a==="TopRight")return qi;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return nr;if(a==="Center")return ki;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return Br;if(a==="BottomLeft")return Kr;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return Qr;if(a==="BottomRight")return Pr;if(a==="TopSide")return to;if(a==="LeftSide")return Ur;if(a==="RightSide")return Xr;if(a==="BottomSide")return fo;if(a==="TopBottomSides")return mo;if(a==="LeftRightSides")return Bo;if(a==="TopLeftSides")return ao;if(a==="TopRightSides")return ia;if(a==="BottomLeftSides")return po;if(a==="BottomRightSides")return Jo;if(a==="NotTopSide")return Po;if(a==="NotLeftSide")return Vo;if(a==="NotRightSide")return Go;if(a==="NotBottomSide")return Yo;if(a==="AllSides")return Ro;if(a==="Default")return Lo;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 ri(x,b,z,tt)}return new ri}function Lr(a){return a.sb()?a.x.toString()+" "+a.y.toString()+" "+a.offsetX.toString()+" "+a.offsetY.toString():a.toString()}Et.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(Vi)?"None":this.D(Ji)?"TopLeft":this.D(lr)?"Top":this.D(qi)?"TopRight":this.D(nr)?"Left":this.D(ki)?"Center":this.D(Br)?"Right":this.D(Kr)?"BottomLeft":this.D(Qr)?"Bottom":this.D(Pr)?"BottomRight":this.D(to)?"TopSide":this.D(Ur)?"LeftSide":this.D(Xr)?"RightSide":this.D(fo)?"BottomSide":this.D(mo)?"TopBottomSides":this.D(Bo)?"LeftRightSides":this.D(ao)?"TopLeftSides":this.D(ia)?"TopRightSides":this.D(po)?"BottomLeftSides":this.D(Jo)?"BottomRightSides":this.D(Po)?"NotTopSide":this.D(Vo)?"NotLeftSide":this.D(Go)?"NotRightSide":this.D(Yo)?"NotBottomSide":this.D(Ro)?"AllSides":this.D(Lo)?"Default":"None"},Et.D=function(a){return a instanceof ri?(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},Et.gv=function(){return new ri(.5-(this.x-.5),.5-(this.y-.5),-this.offsetX,-this.offsetY)},Et.Hf=function(a){if(!this.$c())return!1;if(!a.$c())if(a.D(oa))a=Ur;else if(a.D(wa))a=Xr;else if(a.D(zo))a=to;else if(a.D(Oa))a=fo;else return!1;return a=a.offsetY,(this.offsetY&a)===a},Et.sb=function(){return!isNaN(this.x)&&!isNaN(this.y)},Et.Mc=function(){return isNaN(this.x)||isNaN(this.y)},Et.$c=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===1&&this.offsetY!==0},Et.ys=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===0&&this.offsetY===0},Et.Xb=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===-1&&this.offsetY===0},ri.alloc=function(){var a=pr.pop();return a===void 0?new ri:a},ri.free=function(a){pr.push(a)},ri.prototype.isDefault=ri.prototype.Xb,ri.prototype.isNone=ri.prototype.ys,ri.prototype.isSide=ri.prototype.$c,ri.prototype.isNoSpot=ri.prototype.Mc,ri.prototype.isSpot=ri.prototype.sb,ri.prototype.includesSide=ri.prototype.Hf,ri.prototype.opposite=ri.prototype.gv,ri.prototype.equals=ri.prototype.D,ri.prototype.set=ri.prototype.set,ri.prototype.setTo=ri.prototype.sg;var pr=[];ri.className="Spot",ri.parse=ur,ri.stringify=Lr,ri.None=Vi=vr(new ri(0,0,0,0),0).ja(),ri.Default=Lo=vr(new ri(0,0,-1,0),-1).ja(),ri.TopLeft=Ji=new ri(0,0,0,0).ja(),ri.TopCenter=lr=new ri(.5,0,0,0).ja(),ri.TopRight=qi=new ri(1,0,0,0).ja(),ri.LeftCenter=nr=new ri(0,.5,0,0).ja(),ri.Center=ki=new ri(.5,.5,0,0).ja(),ri.RightCenter=Br=new ri(1,.5,0,0).ja(),ri.BottomLeft=Kr=new ri(0,1,0,0).ja(),ri.BottomCenter=Qr=new ri(.5,1,0,0).ja(),ri.BottomRight=Pr=new ri(1,1,0,0).ja(),ri.MiddleTop=bo=lr,ri.MiddleLeft=yo=nr,ri.MiddleRight=vo=Br,ri.MiddleBottom=Qo=Qr,ri.Top=zo=lr,ri.Left=oa=nr,ri.Right=wa=Br,ri.Bottom=Oa=Qr,ri.TopSide=to=vr(new ri(0,0,1,1),1).ja(),ri.LeftSide=Ur=vr(new ri(0,0,1,2),1).ja(),ri.RightSide=Xr=vr(new ri(0,0,1,4),1).ja(),ri.BottomSide=fo=vr(new ri(0,0,1,8),1).ja(),ri.TopBottomSides=mo=vr(new ri(0,0,1,9),1).ja(),ri.LeftRightSides=Bo=vr(new ri(0,0,1,6),1).ja(),ri.TopLeftSides=ao=vr(new ri(0,0,1,3),1).ja(),ri.TopRightSides=ia=vr(new ri(0,0,1,5),1).ja(),ri.BottomLeftSides=po=vr(new ri(0,0,1,10),1).ja(),ri.BottomRightSides=Jo=vr(new ri(0,0,1,12),1).ja(),ri.NotTopSide=Po=vr(new ri(0,0,1,14),1).ja(),ri.NotLeftSide=Vo=vr(new ri(0,0,1,13),1).ja(),ri.NotRightSide=Go=vr(new ri(0,0,1,11),1).ja(),ri.NotBottomSide=Yo=vr(new ri(0,0,1,7),1).ja(),ri.AllSides=Ro=vr(new ri(0,0,1,15),1).ja(),ro=new ri(.156,.156).ja(),ea=new ri(.844,.844).ja(),ri.parse=ur,ri.stringify=Lr;function wi(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}wi.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},wi.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},wi.prototype.copy=function(){var a=new wi;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},wi.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},wi.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},wi.prototype.ws=function(){return this.dx===0&&this.dy===0&&this.m11===1&&this.m12===0&&this.m21===0&&this.m22===1},wi.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},wi.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},wi.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},wi.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},wi.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},Et=wi.prototype,Et.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},Et.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},Et.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)},Et.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))},Et.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))},Et.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},wi.alloc=function(){var a=Do.pop();return a===void 0?new wi:a},wi.free=function(a){Do.push(a)},wi.prototype.transformRect=wi.prototype.pp,wi.prototype.transformPoint=wi.prototype.Ga,wi.prototype.scale=wi.prototype.scale,wi.prototype.translate=wi.prototype.translate,wi.prototype.rotate=wi.prototype.rotate,wi.prototype.invert=wi.prototype.Vj,wi.prototype.multiplyInverted=wi.prototype.bv,wi.prototype.multiply=wi.prototype.multiply,wi.prototype.reset=wi.prototype.reset,wi.prototype.isIdentity=wi.prototype.ws,wi.prototype.equals=wi.prototype.D,wi.prototype.setTransform=wi.prototype.setTransform,wi.prototype.set=wi.prototype.set;var Do=[];wi.className="Transform",wi.xF="54a702f3e53909c447824c6706603faf4c";var pe={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=pe.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);pe.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(pe.Yb(a,y,tt,rt,ft,x,E)&&pe.Yb(a,y,tt,rt,ft,b,z))return pe.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,Ht=(x+Ft)/2;return pe.cs(a,y,vt,xt,E,x,Xt,Ht,ot,st,ut,ft)||pe.cs(Xt,Ht,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 Ct(((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(pe.Yb(a,y,tt,rt,ot,x,E)&&pe.Yb(a,y,tt,rt,ot,b,z))Ti(st,a,y,0,0),Ti(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;pe.Dl(a,y,ut,ft,E,x,Pt,Ft,ot,st),pe.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(pe.Yb(a,y,tt,rt,ot,x,E)&&pe.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;pe.Qe(a,y,ut,ft,E,x,Pt,Ft,ot,st),pe.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(pe.Yb(a,y,b,z,st,x,E))return pe.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 pe.jv(a,y,ut,ft,vt,xt,tt,rt,ot,st)||pe.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(pe.Yb(a,y,b,z,tt,x,E))Ti(rt,a,y,0,0),Ti(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;pe.iv(a,y,ot,st,ut,ft,tt,rt),pe.iv(ut,ft,x,E,b,z,tt,rt)}return rt},ep:function(a,y,x,E,b,z,tt,rt){if(pe.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;pe.ep(a,y,ot,st,ut,ft,tt,rt),pe.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(pe.Yb(a,y,tt,rt,vt,x,E)&&pe.Yb(a,y,tt,rt,vt,b,z))return!pe.Rl(a,y,tt,rt,ot,st,ut,ft)||(vt=(a-tt)*(st-ft)-(y-rt)*(ot-ut),vt===0)?!1:(xt.h(((a*rt-y*tt)*(ot-ut)-(a-tt)*(ot*ft-st*ut))/vt,((a*rt-y*tt)*(st-ft)-(y-rt)*(ot*ft-st*ut))/vt),!0);var Pt=(a+x)/2,Ft=(y+E)/2,Xt=(x+b)/2,Ht=(E+z)/2;b=(b+tt)/2,z=(z+rt)/2,E=(Pt+Xt)/2,x=(Ft+Ht)/2,Xt=(Xt+b)/2,Ht=(Ht+z)/2;var re=(E+Xt)/2,ae=(x+Ht)/2,he=1/0,Ae=!1,qe=0,Pi=0;return pe.Eo(a,y,Pt,Ft,E,x,re,ae,ot,st,ut,ft,vt,x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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 pe.B(a,x)&&pe.B(y,E)?(ot.h(a,y),!1):pe.$(b,tt)?pe.$(a,x)?(pe.qh(a,y,x,E,b,z,ot),!1):pe.qh(a,y,x,E,b,(E-y)/(x-a)*(b-a)+y,ot):(rt=(rt-z)/(tt-b),pe.$(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),pe.$(rt,tt)?(pe.qh(a,y,x,E,b,z,ot),!1):(b=(tt*a-rt*b+z-y)/(tt-rt),pe.$(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)):pe.qh(a,y,x,E,b,tt*(b-a)+y,ot))))},MA:function(a,y,x,E,b){return pe.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,Ht){var re=(Xt-a)*(Xt-a)+(Ht-y)*(Ht-y);re<ft&&(ft=re,ot.h(Xt,Ht))}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(pe.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 pe.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)),pe.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)),pe.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 pe.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):!!(Ri(a,y,x,E,b,z)||Ri(a,y,x,E,tt,rt)||pe.Rl(a,y,ot,y,b,z,tt,rt)||pe.Rl(ot,y,ot,st,b,z,tt,rt)||pe.Rl(ot,st,a,st,b,z,tt,rt)||pe.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>=pe.Fl(a,y,x,E,b,z)*pe.Fl(a,y,x,E,tt,rt)&&0>=pe.Fl(b,z,tt,rt,a,y)*pe.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(pe.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),pe.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 Gi,um:new Gi,Mf:new Gi,Nf:0,vm:100};pe.za=pe.AA;function Rn(a){bi(this),this.l=2,a===void 0&&(a=Rn.o),this.na=a,this.Ec=this.Dc=this.pd=this.od=0,a===Rn.o?this.ee=new pn:(Rn.V===null&&(Rn.V=new pn().freeze()),this.ee=Rn.V),this.aq=this.ee.Ja,this.Ip=new le().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=Ji,this.gg=Pr,this.Rk=this.Sk=NaN,this.Uf=$n}Rn.prototype.copy=function(){var a=new Rn;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===Rn.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},Rn.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},Rn.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==Rn.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},Rn.prototype.ka=function(){if(Object.isFrozen(this)&&te("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==Rn.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},Rn.prototype.Xa=function(a){if(!(a instanceof Rn))return!1;if(this.type!==a.type)return this.type===Rn.j&&a.type===Rn.o?ha(this,a):a.type===Rn.j&&this.type===Rn.o?ha(a,this):!1;if(this.type===Rn.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 pe.B(this.startX,a.startX)&&pe.B(this.startY,a.startY)&&pe.B(this.endX,a.endX)&&pe.B(this.endY,a.endY)};function ha(a,y){return a.type!==Rn.j||y.type!==Rn.o?!1:!!(y.figures.count===1&&(y=y.figures.M(0),y.segments.count===1&&pe.B(a.startX,y.startX)&&pe.B(a.startY,y.startY)&&(y=y.segments.M(0),y.type===So&&pe.B(a.endX,y.endX)&&pe.B(a.endY,y.endY))))}Rn.ia=function(a){return a.toString()},Rn.prototype.qb=function(a){a.classType===Rn&&(this.type=a)},Rn.prototype.toString=function(a){switch(a===void 0&&(a=-1),this.type){case Rn.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 Rn.u:var y=new le(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 Rn.F:if(y=new le(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 Rn.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()}},Rn.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},Rn.parse=function(a,y){function x(){return Ft>=he-1?!0:st[Ft+1].match(Ae)!==null}function E(){return Ft++,st[Ft]}function b(kr){var Cr=parseFloat(E()),ho=parseFloat(E());Xt===Xt.toLowerCase()&&(Cr=ae.x+Cr,ho=ae.y+ho),kr.h(Cr,ho)}function z(){return b(ae),ae}function tt(){return b(re),re}function rt(){var kr=Ht.toLowerCase();return kr!=="c"&&kr!=="s"&&kr!=="q"&&kr!=="t"?ae:new Tt(2*ae.x-re.x,2*ae.y-re.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=oi();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="",Ht="";ot=new Tt(0,0);var re=new Tt(0,0),ae=new Tt(0,0),he=st.length;a=O1(null),vt=ft=ut=!1,xt=!0,Pt=null;for(var Ae=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(Ft>=he-1);)if(Ht=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(ae);!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();)ae=new Tt((Xt===Xt.toLowerCase()?ae.x:0)+parseFloat(E()),ae.y),a.lineTo(ae.x,ae.y);break;case"V":for(;!x();)ae=new Tt(ae.x,(Xt===Xt.toLowerCase()?ae.y:0)+parseFloat(E())),a.lineTo(ae.x,ae.y);break;case"C":for(;!x();){Pt=new Tt,b(Pt);var qe=tt(),Pi=z();Fh(a,Pt.x,Pt.y,qe.x,qe.y,Pi.x,Pi.y)}break;case"S":for(;!x();)Pt=rt(),qe=tt(),Pi=z(),Fh(a,Pt.x,Pt.y,qe.x,qe.y,Pi.x,Pi.y);break;case"Q":for(;!x();)Pt=tt(),qe=z(),Hm(a,Pt.x,Pt.y,qe.x,qe.y);break;case"T":for(;!x();)re=Pt=rt(),qe=z(),Hm(a,Pt.x,Pt.y,qe.x,qe.y);break;case"B":for(;!x();){Pt=parseFloat(E()),qe=parseFloat(E()),Pi=parseFloat(E());var Wi=parseFloat(E()),Oi=parseFloat(E()),ui=Oi,On=!1;x()||(ui=parseFloat(E()),x()||(On=parseFloat(E())!==0)),Xt===Xt.toLowerCase()&&(Pi+=ae.x,Wi+=ae.y),a.arcTo(Pt,qe,Pi,Wi,Oi,ui,On)}break;case"A":for(;!x();)Pt=Math.abs(parseFloat(E())),qe=Math.abs(parseFloat(E())),Pi=parseFloat(E()),Oi=Wi=!1,On=ui=0,ui=E(),ui.length===1?(Wi=!!parseFloat(ui),Oi=!!parseFloat(E()),ui=parseFloat(E())):ui.length===2?(Wi=!!parseFloat(ui[0]),Oi=!!parseFloat(ui[1]),ui=parseFloat(E())):(Wi=!!parseFloat(ui[0]),Oi=!!parseFloat(ui[1]),ui=parseFloat(ui.slice(2))),On=parseFloat(E()),Xt===Xt.toLowerCase()&&(ui=ae.x+ui,On=ae.y+On),ae.h(ui,On),Dx(a,Pt,qe,Pi,Wi,Oi,ui,On);break;case"Z":Fx(a),ae.assign(ot);break;case"F":for(Pt="",qe=1;st[Ft+qe];)if(st[Ft+qe]==="0")vt=!0,qe++;else if(st[Ft+qe].match(/[Uu]/)!==null)qe++;else if(st[Ft+qe].match(Ae)===null)qe++;else{Pt=st[Ft+qe];break}Pt.match(/[Mm]/)?ut=!0:0<a.mc.segments.length&&(a.mc.isFilled=!0);break;case"U":for(Pt="",qe=1;st[Ft+qe];)if(st[Ft+qe].match(/[Ff]/)!==null)qe++;else if(st[Ft+qe].match(Ae)===null)qe++;else{Pt=st[Ft+qe];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},Rn.Ha=function(a,y){for(var x=a.length,E=Tt.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}Tt.free(E)},Rn.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===Rn.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},Rn.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===Rn.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),ga(this,a,!1),Ti(a,0,0,0,0),a.freeze()},Rn.prototype.ix=function(){var a=new le;return ga(this,a,!0),a};function ga(a,y,x){switch(a.type){case Rn.j:case Rn.u:case Rn.F:x?y.h(a.od,a.pd,0,0):Ti(y,a.od,a.pd,0,0),Ti(y,a.Dc,a.Ec,0,0);break;case Rn.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):Ti(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 ca:ot=ft.endX,st=ft.endY,Ti(y,ot,st,0,0);break;case Sa:pe.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:pe.iv(ot,st,ft.point1X,ft.point1Y,ft.endX,ft.endY,.5,y),ot=ft.endX,st=ft.endY;break;case ua:case cs:var vt=ft.type===ua?Ya(ft,z):es(ft,z,ot,st),xt=vt.length;if(xt===0){ot=ft.type===ua?ft.centerX:ft.endX,st=ft.type===ua?ft.centerY:ft.endY,Ti(y,ot,st,0,0);break}ft=null;for(var Pt=0;Pt<xt;Pt++)ft=vt[Pt],pe.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:te("Unknown Segment type: "+ft.type)}}}break;default:te("Unknown Geometry type: "+a.type)}}Rn.prototype.normalize=function(){this._isFrozen&&be(this);var a=this.ix();return this.offset(-a.x,-a.y),new Tt(-a.x,-a.y)},Rn.prototype.offset=function(a,y){return this._isFrozen&&be(this),this.transform(1,0,0,1,a,y),this},Rn.prototype.scale=function(a,y){return this._isFrozen&&be(this),this.transform(a,0,0,y,0,0),this},Rn.prototype.rotate=function(a,y,x){this._isFrozen&&be(this),y===void 0&&(y=0),x===void 0&&(x=0);var E=wi.alloc();return E.reset(),E.rotate(a,y,x),this.transform(E.m11,E.m12,E.m21,E.m22,E.dx,E.dy),wi.free(E),this},Et=Rn.prototype,Et.transform=function(a,y,x,E,b,z){switch(this.type){case Rn.j:case Rn.u:case Rn.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 Rn.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 ca:tt=Pt.endX,rt=Pt.endY,Pt.endX=tt*a+rt*x+b,Pt.endY=tt*y+rt*E+z;break;case Sa: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 ua: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:te("Unknown Segment type: "+Pt.type)}}}}return this._isInvalidBounds=!0,this},Et.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 Rn.j:return pe.Yb(x,E,b,z,y,a.x,a.y);case Rn.u:var tt=le.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),le.free(tt),a;case Rn.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 Rn.o:return aa(this,a,y,!0,!1);default:return!1}};function aa(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 Ht=Ft.segments;ot=Ft.startX,st=Ft.startY;for(var re=ot,ae=st,he=Ht.s,Ae=0;Ae<=Ht.length;Ae++){var qe=void 0;if(Ae!==Ht.length){qe=he[Ae];var Pi=qe.type;a=qe.endX,ft=qe.endY}else Pi=So,a=re,ft=ae;switch(Pi){case ca:if(re=sa(z,y,tt,y,ot,st,re,ae),isNaN(re))return!0;rt+=re,re=a,ae=ft;break;case So:if(ot=sa(z,y,tt,y,ot,st,a,ft),isNaN(ot))return!0;rt+=ot;break;case Sa:ut=pe.Fo(ot,st,qe.point1X,qe.point1Y,qe.point2X,qe.point2Y,a,ft,tt,y,z,y,.5),rt+=ut;break;case ds:ut=pe.Fo(ot,st,(ot+2*qe.point1X)/3,(st+2*qe.point1Y)/3,(2*qe.point1X+a)/3,(2*qe.point1Y+ft)/3,a,ft,tt,y,z,y,.5),rt+=ut;break;case ua:case cs:Pi=qe.type===ua?Ya(qe,Ft):es(qe,Ft,ot,st);var Wi=Pi.length;if(Wi===0){if(ot=sa(z,y,tt,y,ot,st,qe.type===ua?qe.centerX:qe.endX,qe.type===ua?qe.centerY:qe.endY),isNaN(ot))return!0;rt+=ot;break}qe=null;for(var Oi=0;Oi<Wi;Oi++){if(qe=Pi[Oi],Oi===0){if(ut=sa(z,y,tt,y,ot,st,qe[0],qe[1]),isNaN(ut))return!0;rt+=ut}ut=pe.Fo(qe[0],qe[1],qe[2],qe[3],qe[4],qe[5],qe[6],qe[7],tt,y,z,y,.5),rt+=ut}qe!==null&&(a=qe[6],ft=qe[7]);break;default:te("Unknown Segment type: "+qe.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 sa(a,y,x,E,b,z,tt,rt){if(pe.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 ya(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}Et.Pu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=new Tt),this.type===Rn.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},Et.wx=function(a){if(0>a?a=0:1<a&&(a=1),this.type===Rn.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},Et.Qu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=[]),y.length=3,this.type===Rn.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},Et.xx=function(a){if(this.type===Rn.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=Tt.alloc();return pe.qh(y,x,E,b,z,a,rt),a=rt.x,z=rt.y,Tt.free(rt),Math.sqrt(((a-y)*(a-y)+(z-x)*(z-x))/tt)}}else if(this.type===Rn.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=Tt.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],Ht=vt[Ft+1];if(Ft!==0){pe.qh(st,ut,Xt,Ht,a.x,a.y,E);var re=(E.x-a.x)*(E.x-a.x)+(E.y-a.y)*(E.y-a.y);re<b&&(b=re,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=Ht}return Tt.free(E),a=tt/z,0>a?0:1<a?1:a}return 0};function Pa(a){if(a.tk===null){var y=a.tk=[],x=a.ym=[],E=[],b=[];if(a.type===Rn.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===Rn.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===Rn.F){var z=new da;z.startX=a.endX,z.startY=(a.startY+a.endY)/2;var tt=new qr(ua);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];pe.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 ca: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 Sa:pe.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:pe.ep(tt,z,vt.point1X,vt.point1Y,vt.endX,vt.endY,.5,E),tt=vt.endX,z=vt.endY;break;case ua: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];pe.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],pe.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:te("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(An(x,E,tt,rt))),x=tt,E=rt}return y}Et.add=function(a){return this.ee.add(a),this},Et.pm=function(a,y,x,E,b,z,tt,rt){return this._isFrozen&&be(this),this.fg=new ri(a,y,b,z).freeze(),this.gg=new ri(x,E,tt,rt).freeze(),this},sn.Object.defineProperties(Rn.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 Pa(this),this.tk}},flattenedLengths:{get:function(){return Pa(this),this.ym}},flattenedTotalLength:{get:function(){var a=this.zm;if(isNaN(a)){if(this.type===Rn.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===Rn.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&&be(this,a),this.na=a,a===Rn.o?this.ee=new pn:(Rn.V===null&&(Rn.V=new pn().freeze()),this.ee=Rn.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(a){this.od!==a&&(this._isFrozen&&be(this,a),this.od=a,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(a){this.pd!==a&&(this._isFrozen&&be(this,a),this.pd=a,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(a){this.Dc!==a&&(this._isFrozen&&be(this,a),this.Dc=a,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(a){this.Ec!==a&&(this._isFrozen&&be(this,a),this.Ec=a,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(a){this.ee!==a&&(this._isFrozen&&be(this,a),this.ee=a,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(a){this._isFrozen&&be(this,a),this.fg=a.J()}},spot2:{get:function(){return this.gg},set:function(a){this._isFrozen&&be(this,a),this.gg=a.J()}},defaultStretch:{get:function(){return this.Uf},set:function(a){this._isFrozen&&be(this,a),this.Uf=a}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),Rn.prototype.setSpots=Rn.prototype.pm,Rn.prototype.add=Rn.prototype.add,Rn.prototype.getFractionForPoint=Rn.prototype.xx,Rn.prototype.getPointAndAngleAlongPath=Rn.prototype.Qu,Rn.prototype.getAngleAlongPath=Rn.prototype.wx,Rn.prototype.getPointAlongPath=Rn.prototype.Pu,Rn.prototype.containsPoint=Rn.prototype.ca,Rn.prototype.transform=Rn.prototype.transform,Rn.prototype.rotate=Rn.prototype.rotate,Rn.prototype.scale=Rn.prototype.scale,Rn.prototype.offset=Rn.prototype.offset,Rn.prototype.normalize=Rn.prototype.normalize,Rn.prototype.computeBoundsWithoutOrigin=Rn.prototype.ix,Rn.prototype.equalsApprox=Rn.prototype.Xa,Rn.className="Geometry",Rn.j=new We(Rn,"Line",0),Rn.u=new We(Rn,"Rectangle",1),Rn.F=new We(Rn,"Ellipse",2),Rn.o=new We(Rn,"Path",3),Rn.V=null,Rn.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",Rn.className="Geometry",Rn.stringify=Rn.ia,Rn.fillPath=Rn.nb,Rn.parse=Rn.parse,Rn.Line=Rn.j,Rn.Rectangle=Rn.u,Rn.Ellipse=Rn.F,Rn.Path=Rn.o;function da(a,y,x,E,b){bi(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 pn,this.sr=this.pl.Ja,this.fw=null}da.prototype.copy=function(){var a=new da;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},Et=da.prototype,Et.Xa=function(a){if(!(a instanceof da&&pe.B(this.startX,a.startX)&&pe.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},Et.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},Et.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},Et.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},Et.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},Et.add=function(a){return this.pl.add(a),this},Et.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 ca:z=ut.endX,tt=ut.endY,E=ut.endX,b=ut.endY;break;case So:if(pe.Yb(E,b,ut.endX,ut.endY,x,a,y))return!0;E=ut.endX,b=ut.endY;break;case Sa:if(pe.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(pe.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 ua:case cs:var ft=ut.type===ua?Ya(ut,this):es(ut,this,E,b),vt=ft.length,xt=ut.type===ua?ut.centerX:ut.endX,Pt=ut.type===ua?ut.centerY:ut.endY;if(vt===0){if(pe.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&&pe.Yb(E,b,xt[0],xt[1],x,a,y)||pe.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:te("Unknown Segment type: "+ut.type)}if(ut.isClosed&&(E!==z||b!==tt)&&pe.Yb(E,b,z,tt,x,a,y))return!0}return!1},sn.Object.defineProperties(da.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&&be(this,a),this.l=a?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(a){this._isFrozen&&be(this,a),this.l=a?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&be(this,a),this.l=a?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(a){this._isFrozen&&be(this,a),this.od=a,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(a){this._isFrozen&&be(this,a),this.pd=a,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(a){this._isFrozen&&be(this,a),this.pl=a,this._isInvalidBounds=!0}}}),da.prototype.add=da.prototype.add,da.prototype.equalsApprox=da.prototype.Xa,da.className="PathFigure";function qr(a,y,x,E,b,z,tt,rt){bi(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===ua&&(z=Math.max(z,0)),this.Wh=z,typeof tt=="number"?(a===ua&&(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},Et=qr.prototype,Et.Xa=function(a){if(!(a instanceof qr)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case ca:case So:return pe.B(this.endX,a.endX)&&pe.B(this.endY,a.endY);case Sa:return pe.B(this.endX,a.endX)&&pe.B(this.endY,a.endY)&&pe.B(this.point1X,a.point1X)&&pe.B(this.point1Y,a.point1Y)&&pe.B(this.point2X,a.point2X)&&pe.B(this.point2Y,a.point2Y);case ds:return pe.B(this.endX,a.endX)&&pe.B(this.endY,a.endY)&&pe.B(this.point1X,a.point1X)&&pe.B(this.point1Y,a.point1Y);case ua:return pe.B(this.startAngle,a.startAngle)&&pe.B(this.sweepAngle,a.sweepAngle)&&pe.B(this.centerX,a.centerX)&&pe.B(this.centerY,a.centerY)&&pe.B(this.radiusX,a.radiusX)&&pe.B(this.radiusY,a.radiusY);case cs:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&pe.B(this.xAxisRotation,a.xAxisRotation)&&pe.B(this.endX,a.endX)&&pe.B(this.endY,a.endY)&&pe.B(this.radiusX,a.radiusX)&&pe.B(this.radiusY,a.radiusY);default:return!1}},Et.qb=function(a){a.classType===qr&&(this.type=a)},Et.toString=function(a){switch(a===void 0&&(a=-1),this.type){case ca: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 Sa: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 ua: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":"")},Et.freeze=function(){return this._isFrozen=!0,this},Et.ka=function(){return this._isFrozen=!1,this},Et.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=pe.jx(0,0,x<E?x:E,a.startAngle,a.startAngle+a.sweepAngle,!1);if(x!==E){var tt=wi.alloc();tt.reset(),x<E?tt.scale(1,E/x):tt.scale(x/E,1),Rn.Ha(z,tt),wi.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,Ht,re){return(Ft*re<Xt*Ht?-1:1)*Math.acos((Ft*Ht+Xt*re)/(Math.sqrt(Ft*Ft+Xt*Xt)*Math.sqrt(Ht*Ht+re*re)))}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=pe.jx(0,0,y>z?y:z,ut,ut+tt,!0),z=wi.alloc(),z.reset(),z.translate(x,E),z.rotate(a.Ne,0,0),z.scale(ot,xt),Rn.Ha(y,z),wi.free(z),a.ae=y,a.ae}sn.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&&be(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&be(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&be(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&be(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&be(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&be(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&be(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&be(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&be(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&Jn(a,">= zero",qr,"radiusX"),this._isFrozen&&be(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&Jn(a,">= zero",qr,"radiusY"),this._isFrozen&&be(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&be(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&&be(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&&be(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&&be(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&&be(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),qr.prototype.equalsApprox=qr.prototype.Xa;var ca=new We(qr,"Move",0),So=new We(qr,"Line",1),Sa=new We(qr,"Bezier",2),ds=new We(qr,"QuadraticBezier",3),ua=new We(qr,"Arc",4),cs=new We(qr,"SvgArc",4);qr.className="PathSegment",qr.Move=ca,qr.Line=So,qr.Bezier=Sa,qr.QuadraticBezier=ds,qr.Arc=ua,qr.SvgArc=cs;function za(){this.H=null,this.xu=new Tt(0,0).freeze(),this.mt=new Tt(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},sn.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},sn.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=Be(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=Be(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=Be(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=Be(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===Fa?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===Fa?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=Ui(this.object)),this.oldValue!==null&&(a+=" old: "+Ui(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+Ui(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))},sn.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===Fa&&(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 Fa=new We(Ho,"Transaction",-1),To=new We(Ho,"Property",0),$o=new We(Ho,"Insert",1),pa=new We(Ho,"Remove",2);Ho.className="ChangedEvent",Ho.Transaction=Fa,Ho.Property=To,Ho.Insert=$o,Ho.Remove=pa;function xa(){this.o=new pn().freeze(),this.xa="",this.j=!1}xa.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},xa.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()},xa.prototype.canUndo=function(){return this.isComplete},xa.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()}},xa.prototype.canRedo=function(){return this.isComplete},xa.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()}},xa.prototype.ak=function(){if(this.isComplete){var a=this.changes;a.ka();for(var y=new _e,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 _e,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()}},sn.Object.defineProperties(xa.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}}}),xa.prototype.optimize=xa.prototype.ak,xa.prototype.redo=xa.prototype.redo,xa.prototype.canRedo=xa.prototype.canRedo,xa.prototype.undo=xa.prototype.undo,xa.prototype.canUndo=xa.prototype.canUndo,xa.prototype.clear=xa.prototype.clear,xa.className="Transaction";function qo(){this.Pt=new xn,this.Jd=!1,this.u=new pn().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new pn().freeze(),this.hl=new pn,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},Et=qo.prototype,Et.Xw=function(a){this.Pt.add(a)},Et.Rx=function(a){this.Pt.remove(a)},Et.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},Et.eb=function(a){return a===void 0&&(a=""),pl(this,!0,a)},Et.Kf=function(){return pl(this,!1,"")};function pl(a,y,x){if(a.isUndoingRedoing)return!1;a.checksTransactionLevel&&1>a.transactionLevel&&Fn("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}Et.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){Fn("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){Fn("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=Fa,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 xa);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||Fn("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},sn.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(){bi(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":Si(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,Tt.allocAt(NaN,NaN)),E=y.So(1,Tt.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}Tt.free(x),Tt.free(E)},eo.prototype.standardPinchZoomMove=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,Tt.allocAt(NaN,NaN)),E=y.So(1,Tt.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 Tt((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}Tt.free(x),Tt.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(Tr?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||(Tr?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=Hi(function(){x.doWaitAfter(E)},a)},eo.prototype.cancelWaitAfter=function(){this.Zr!==-1&&Xe.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 lo);)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},sn.Object.defineProperties(eo.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof $e&&(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 Ao(){eo.call(this),this.name="ToolManager",this.hb=new pn,this.ob=new pn,this.Hb=new pn,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}ke(Ao,eo),Ao.prototype.initializeStandardTools=function(){},Ao.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof lo&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},Ao.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)},Ao.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)}Ao.prototype.doCurrentObjectChanged=function(a,y){a=this.currentToolTip,a===null||y!==null&&a instanceof lo&&(y===a||y.rg(a))||this.hideToolTip()},Ao.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()))},Ao.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)},Ao.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 lo)||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()},Ao.prototype.showToolTip=function(a,y){var x=this.diagram;if(a!==this.currentToolTip&&this.hideToolTip(),a instanceof lo){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&&(Xe.clearTimeout(this.zj),this.zj=-1),a=this.toolTipDuration,0<a&&a!==1/0){var b=this;this.zj=Hi(function(){b.hideToolTip()},a)}},Ao.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}},Ao.prototype.hideToolTip=function(){this.zj!==-1&&(Xe.clearTimeout(this.zj),this.zj=-1);var a=this.diagram,y=this.currentToolTip;y!==null&&(y instanceof lo?(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)},Ao.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()},Ao.prototype.doMouseWheel=function(){this.standardMouseWheel()},Ao.prototype.doKeyDown=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyDown()},Ao.prototype.doKeyUp=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyUp()},Ao.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},Ao.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},Ao.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)},sn.Object.defineProperties(Ao.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 lo?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}}}),Ao.prototype.replaceStandardTool=Ao.prototype.gb;var qs=new We(Ao,"WheelScroll",0),Nl=new We(Ao,"WheelZoom",1),yu=new We(Ao,"WheelNone",2),Su=new We(Ao,"GestureZoom",3),Vs=new We(Ao,"GestureCancel",4),Yl=new We(Ao,"GestureNone",5);Ao.className="ToolManager",Ao.WheelScroll=qs,Ao.WheelZoom=Nl,Ao.WheelNone=yu,Ao.GestureZoom=Su,Ao.GestureCancel=Vs,Ao.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 Tt(NaN,NaN),this.Fr=new Tt,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;ke(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,(Tr?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 hi?(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(Wt):this.isGridSnapEnabled?new nh(new Tt(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 _e,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 hi&&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 hi&&(x.value.point=new Tt(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 ka(a,y,x){var E=a.diagram,b=a.startPoint,z=Tt.alloc();z.assign(E.lastInput.documentPoint),a.moveParts(y,z.re(b),x),Tt.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 hi&&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 Fr)){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 lo||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 Fr)&&(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=Tt.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(ki,a);ot=y.Bf(ot),ot<z&&(tt=rt,z=ot)}}return Tt.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 Li&&z.linksConnected.each(function(rt){rt.suspendsRouting=!1});if(a.doDropOnto(y,E),a.isActive||Va!==null){for(a=le.alloc(),y=x.selection.iterator;y.next();)E=y.value,E instanceof Li&&Dd(x,E,a);le.free(a)}}}function ou(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof Fr||(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 hi},!0,function(b){return b instanceof hi},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),ka(this,this.copiedParts,!1),od(a,this.copiedParts)):this.mayMove()?(No(this),ka(this,this.draggedParts,!0)):this.mayDragOut()?(vl(this,!1),ka(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),ka(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()&&(ka(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 $e||(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 Tt),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 Li&&(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||(Tr?!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),ka(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),ka(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=le.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,le.free(z),z=a.Fr,tt=new _e,rt=Tt.alloc(),ot=y.iterator;ot.next();)st=ot.value,st instanceof hi&&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))));Tt.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 Tt},sn.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 pn,Mn("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),Ao.prototype.doCancel=function(){Va!==null&&Va.doCancel(),eo.prototype.doCancel.call(this)};function so(){eo.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new hi,y=new zr;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new zr,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new Li,y=new zr,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=ue,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new Li,y=new zr,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=ue,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 _e,this.Of=this.gj=this.Pf=null}ke(so,eo),so.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},so.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=ki,z=Tt.alloc(),x.location=y.ga(ki,z),Tt.free(z),E.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,E,b)}},so.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=ue,y.fromSpot=Vi,y.toSpot=Vi),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},so.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},so.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof Li){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)}},so.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof Li))return null;for(;a!==null;){var E=y?a.toLinkable:a.fromLinkable;if(E===!0&&(a.portId!==null||a instanceof Li)&&(y?this.isValidTo(x,a):this.isValidFrom(x,a)))return a;if(E===!1)break;a=a.panel}return null},so.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 Li){var ot=tt.ga(ki,Tt.alloc()),st=x.x-ot.x,ut=x.y-ot.y;Tt.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 Li&&(x.layer===null||x.layer.allowLink))?y:null},so.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},so.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},so.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},so.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof Li))return!1;a=a.portId,a===null&&(a="");var E=y.part;if(!(E instanceof Li))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},so.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)},so.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),co(this,x,y,E)};function co(a,y,x,E){if(y===x)return!0;var b=y.fromNode;return b!==null&&b.isLinkLabel&&(E.add(b),co(a,b.labeledLink,x,E))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(E.add(y),co(a,y.labeledLink,x,E))))}so.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=ra(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 ra(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&&ra(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}sn.Object.defineProperties(so.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}}}),so.className="LinkingBaseTool";function fs(){so.call(this),this.name="Linking",this.V={},this.F=null,this.K=Xh,this.Xd=null}ke(fs,so),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 Li)))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 Li&&(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 Li&&(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(){so.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 Li&&(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 hi)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(){},sn.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 We(fs,"Either",0),Vp=new We(fs,"ForwardsOnly",0),Gp=new We(fs,"BackwardsOnly",0);fs.className="LinkingTool",fs.Either=Xh,fs.ForwardsOnly=Vp,fs.BackwardsOnly=Gp;function sl(){so.call(this),this.name="Relinking";var a=new zr;a.figure="Diamond",a.desiredSize=Ze,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new zr,a.figure="Diamond",a.desiredSize=Ze,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new le}ke(sl,so),sl.prototype.updateAdornments=function(a){if(a!==null&&a instanceof hi){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 lo;return x.type=ii.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 lo&&x.adornedPart instanceof hi))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=de),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=de),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(){so.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 Li&&(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)}sn.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 lo))throw Error("new handle is not in an Adornment: "+a);this.F=a}}}),sl.className="RelinkingTool",Mn("linkingTool",function(){return this.findTool("Linking")},function(a){this.gb("Linking",a,this.mouseMoveTools)}),Mn("relinkingTool",function(){return this.findTool("Relinking")},function(a){this.gb("Relinking",a,this.mouseDownTools)});function Ea(){eo.call(this),this.name="LinkReshaping";var a=new zr;a.figure="Rectangle",a.desiredSize=Ge,a.fill="lightblue",a.stroke="dodgerblue",this.o=a,a=new zr,a.figure="Diamond",a.desiredSize=Ze,a.fill="lightblue",a.stroke="dodgerblue",a.cursor="move",this.u=a,this.F=3,this.Ts=this.j=null,this.Fw=new Tt,this.Yq=new pn}ke(Ea,eo),Ea.prototype.Ru=function(a){return a&&a.reshapingBehavior.value!==0?a.reshapingBehavior:fg},Ea.prototype.om=function(a,y){a.reshapingBehavior=y},Ea.prototype.updateAdornments=function(a){if(a!==null&&a instanceof hi){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)}},Ea.prototype.makeAdornment=function(a){var y=a.part,x=y.pointsCount,E=y.isOrthogonal,b=null;if(y.points!==null&&1<x){b=new lo,b.type=ii.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);pe.B(ot.x,st.x)&&pe.B(ot.y,st.y)&&(st=y.i(x-1)),pe.B(ot.x,st.x)?(this.om(rt,vh),rt.cursor="n-resize"):pe.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),pe.B(ot.x,st.x)&&pe.B(ot.y,st.y)&&(ot=y.i(z+1)),pe.B(ot.x,st.x)?(this.om(rt,vh),rt.cursor="n-resize"):pe.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},Ea.prototype.makeHandle=function(){var a=this.handleArchetype;return a===null?null:a.copy()},Ea.prototype.makeResegmentHandle=function(){var a=this.midHandleArchetype;return a===null?null:a.copy()},Ea.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},Ea.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 hi){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}}},Ea.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},Ea.prototype.stopTransaction=function(){var a=this.diagram,y=eo.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Ea.prototype.doCancel=function(){var a=this.adornedLink;a!==null&&(a.points=this.Yq),this.stopTool()},Ea.prototype.getResegmentingPoint=function(){return this.handle.ga(ki)},Ea.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeReshape(a.lastInput.documentPoint),this.reshape(a))},Ea.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 Tt(tt.x,(z.y+tt.y)/2)),rt.cd(x+1,new Tt(z.x,(z.y+tt.y)/2))):(rt.cd(x-2,new Tt((z.x+tt.x)/2,tt.y)),rt.cd(x+1,new Tt((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 Tt(E.x,(E.y+tt.y)/2)),rt.cd(x+2,new Tt(tt.x,(E.y+tt.y)/2))):(rt.cd(x-1,new Tt((E.x+tt.x)/2,E.y)),rt.cd(x+2,new Tt((E.x+tt.x)/2,tt.y))),rt.mb(x+1),rt.mb(x),y.points=rt,y.Wb())}}else tt=Tt.alloc(),pe.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()),Tt.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}Ea.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);pe.B(z.x,b.x)&&pe.B(b.y,tt.y)?(pe.B(z.x,y.i(E-2).x)&&!pe.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),pe.B(tt.y,y.i(E+2).y)&&!pe.B(tt.x,y.i(E+2).x)?y.m(E+1,tt.x,a.y):y.L(E+1,tt.x,a.y)):pe.B(z.y,b.y)&&pe.B(b.x,tt.x)?(pe.B(z.y,y.i(E-2).y)&&!pe.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),pe.B(tt.x,y.i(E+2).x)&&!pe.B(tt.y,y.i(E+2).y)?y.m(E+1,a.x,tt.y):y.L(E+1,a.x,tt.y)):pe.B(z.x,b.x)&&pe.B(b.x,tt.x)?(pe.B(z.x,y.i(E-2).x)&&!pe.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),pe.B(tt.x,y.i(E+2).x)&&!pe.B(tt.y,y.i(E+2).y)?y.m(E+1,a.x,tt.y):y.L(E+1,a.x,tt.y)):pe.B(z.y,b.y)&&pe.B(b.y,tt.y)&&(pe.B(z.y,y.i(E-2).y)&&!pe.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),pe.B(tt.y,y.i(E+2).y)&&!pe.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(ki,Tt.alloc()),E=y.getLinkPointFromPoint(E,b,z,a,!0,Tt.alloc()),y.L(0,E.x,E.y),Tt.free(z),Tt.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(ki,Tt.alloc()),a=y.getLinkPointFromPoint(E,b,x,a,!1,Tt.alloc()),y.L(y.pointsCount-1,a.x,a.y),Tt.free(x),Tt.free(a));y.zf()},Ea.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 Tt(y.i(x).x,a.y);case mh:return new Tt(a.x,y.i(x).y);default:case fg:return y.i(x)}},sn.Object.defineProperties(Ea.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 lo))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}}}),Ea.prototype.setReshapingBehavior=Ea.prototype.om,Ea.prototype.getReshapingBehavior=Ea.prototype.Ru;var fg=new We(Ea,"None",0),mh=new We(Ea,"Horizontal",1),vh=new We(Ea,"Vertical",2),of=new We(Ea,"All",3);Ea.className="LinkReshapingTool",Ea.None=fg,Ea.Horizontal=mh,Ea.Vertical=vh,Ea.All=of,Mn("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 zr;a.alignmentFocus=ki,a.figure="Rectangle",a.desiredSize=Ge,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.F=a,this.u=null,this.Xq=new Tt,this.Dw=new zt,this.Tn=new Tt,this.rt=new zt(0,0),this.qt=new zt(1/0,1/0),this.pt=new zt(1,1)}ke(us,eo),us.prototype.updateAdornments=function(a){if(!(a===null||a instanceof hi)){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 lo,y.type=ii.Spot,y.locationSpot=ki;var x=new Ms;x.isPanelMain=!0,y.add(x),y.add(this.makeHandle(a,Ji)),y.add(this.makeHandle(a,qi)),y.add(this.makeHandle(a,Pr)),y.add(this.makeHandle(a,Kr)),y.add(this.makeHandle(a,bo)),y.add(this.makeHandle(a,vo)),y.add(this.makeHandle(a,Qo)),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=ki),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 ii)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,Tt.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,x,E,z),this.resize(y),a.bd(),Tt.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,Tt.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,x,E,z),this.resize(y),Tt.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 Fr){var E=new pn;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=ki);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=Tt.alloc(),pe.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))),Tt.free(vt),a},us.prototype.computeReshape=function(){var a=Zn;return this.adornedObject instanceof zr&&(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},sn.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 lo))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 lo)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",Mn("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 Tt,this.ue=null;var a=new zr;a.figure="Ellipse",a.desiredSize=Ze,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.o=a,this.j=null,this.Cw=0,this.kr=new Tt(NaN,NaN),this.u=0,this.F=50}ke(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 lo,y.type=ii.Position,y.locationSpot=ki;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(ki)},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 Tt(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},sn.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 lo))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 lo)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",Mn("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function _h(){eo.call(this),this.name="ClickSelecting"}ke(_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}ke(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 Tt(0,0)}ke(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);Be(b)&&(y.model.xf(b),E=y.Lc(b))}if(E!==null){var z=Tt.allocAt(a.x,a.y);this.isGridSnapEnabled&&vf(this.diagram,E,a,z),E.location=z,y.allowSelect&&(y.clearSelection(!0),E.isSelected=!0),Tt.free(z)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",E)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return E},sn.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 zr;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}ke(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 le(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),Tr?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 pn,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)}},sn.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 Tt,this.xy=new Tt,this.xg=!1;var a=this;this.Kw=function(){var y=a.diagram;y!==null&&y.removeEventListener(Xe.document,"scroll",a.Kw,!1),a.stopTool()}}ke(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(Xe.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)}},sn.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",Mn("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(a){this.gb("ClickCreating",a,this.mouseUpTools)}),Mn("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(a){this.gb("ClickSelecting",a,this.mouseUpTools)}),Mn("panningTool",function(){return this.findTool("Panning")},function(a){this.gb("Panning",a,this.mouseMoveTools)}),Mn("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(a){this.gb("DragSelecting",a,this.mouseMoveTools)}),Mn("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}sn.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 Tt,this.jt=null,this.Et=!1;var a=this;this.tu=function(){a.stopTool()}}ke(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=qn("div");var x=qn("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=qn("style");Xe.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",Aa,!1),E.addEventListener(y,"selectstart",Aa,!1),E.addEventListener(x,"contextmenu",Aa,!1)),y.className="goCXforeground",x.className="goCXbackground",Xe.document.body&&(Xe.document.body.appendChild(y),Xe.document.body.appendChild(x)),fc=y,Nd=x,cc=!0}function Aa(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 $e||(a instanceof Le?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 lo){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 lo){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 Le?x:null,a.showContextMenu(E,a.currentObject)):y!==null&&a.showContextMenu(y,a.currentObject)}else y!==null&&a.showContextMenu(y,null);a.currentContextMenu instanceof lo&&!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 lo){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 lo?(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 pn;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=qn("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=qn("li"),z.className="goCXli";var tt=qn("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}},sn.Object.defineProperties(Es.prototype,{currentContextMenu:{get:function(){return this.j},set:function(a){this.j=a,this.ht=a instanceof lo?a.adornedPart:null}},defaultTouchContextMenu:{get:function(){return cc===!1&&Jh===null&&fa&&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",Mn("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 jo,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)}ke(Xo,eo);function gc(a,y){if(fa){var x=qn("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 jo&&z instanceof Xo)if(z.state===yc)x.style.border="3px solid red",x.focus();else{var tt=E.ga(ki),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 jo&&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 jo&&(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 le(this.textBlock.ga(Ji),this.textBlock.ga(Pr));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},sn.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 We(Xo,"LostFocus",0),Pu=new We(Xo,"MouseDown",1),sf=new We(Xo,"Tab",2),pc=new We(Xo,"Enter",3),iv=new We(Xo,"SingleClick",0),Bd=new We(Xo,"SingleClickSelected",1),lf=new We(Xo,"DoubleClick",2),Td=new We(Xo,"StateNone",0),mc=new We(Xo,"StateActive",1),vc=new We(Xo,"StateEditing",2),pg=new We(Xo,"StateValidating",3),yc=new We(Xo,"StateInvalid",4),Od=new We(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,Mn("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),Xe.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 hi&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,E,!1)}Et=$s.prototype,Et.fv=function(a){return this.ce.fv(a)},Et.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 Le&&ot.diagram!==null||ot instanceof $e){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)),Xe.requestAnimationFrame(x)}}var E=a.Ei,b=a;a.bc?a.Sr.add(y):(a.bc=!0,E.add(y),Xe.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}Et.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)},Et.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))},Et.Cj=function(a,y){this.zb&&(this.Zd.contains("Expand Tree")||this.Zd.contains("Expand SubGraph"))&&(this.ce.Cj(a,y),Ks(this,a))},Et.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 Tt(z(tt,E.x,b.x-E.x,rt),z(tt,E.y,b.y-E.y,rt))}var y=new _e;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 Tt(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 Tt(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 Tt(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 Tt(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 le(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}sn.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&&Jn(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 We($s,"Default",1),wc=new We($s,"AnimateLocations",2),vg=new We($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=Wt,this.vc=new _e,this.Tt=new _e,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}Et=as.prototype,Et.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 $e?a=x:x instanceof Le&&(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)},Et.Iy=function(a,y){return a.Zc()?(this.yl.add(a),this.H=y,this):this},Et.add=function(a,y,x,E,b){if(y==="position"&&x.Xa(E))return this;if(this.H===null&&(a instanceof $e?this.H=a:a instanceof Le&&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 $e&&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 Le&&rt instanceof Tt&&!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 Tt&&!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 Tt||a instanceof zt?a.copy():a}Et.fv=function(a){return this.bc?(a=this.vc.I(a),a!==null&&a.nv):!1},Et.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 Le&&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)}}}Et.stop=function(){return this.bc?(this.Ml(!0),this):this},Et.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())}},Et.Cj=function(a,y){var x=y.actualBounds,E=null;if(y instanceof Fr&&(E=y.placeholder),E!==null?(x=E.ga(Ji),E=E.padding,x.x+=E.left,x.y+=E.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new Tt(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof Fr)for(a=a.memberParts;a.next();)E=a.value,E instanceof Li&&this.Cj(E,y)},Et.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof Fr&&(x=y.placeholder),x!==null){var E=x.ga(Ji);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 Fr)for(a=a.memberParts;a.next();)E=a.value,E instanceof Li&&this.Aj(E,y)}},Et.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},sn.Object.defineProperties(as.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&Jn(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:te("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))}sn.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 We(Xl,"Default",1),ed=new We(Xl,"Immediate",2),Rd=new We(Xl,"Bundled",3);Xl.className="AnimationTrigger",Xl.Default=Sg,Xl.Immediate=ed,Xl.Bundled=Rd;function Xa(a){bi(this),this.H=null,this.Pa=new pn,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)}Et=Xa.prototype,Et.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},Et.Xe=function(a){this.H=a},Et.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 Fr?b++:ot instanceof Li?E++:ot instanceof hi?z++:ot instanceof lo?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&&Er(E)&&(rt+=" #"+Er(E)),x instanceof Li?rt+=" "+Ui(E):x instanceof hi&&(rt+=" "+Ui(x.fromNode)+" "+Ui(x.toNode));return y+" "+this.Pa.count+": "+rt},Et.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=Tt.alloc(),z=this.Pa.s,tt=z.length;tt--;){var rt=z[tt];if((E!==!0||dd(rt)!==!1)&&rt.isVisible()&&(b.assign(a),je(b,rt.oe),rt=rt.ic(b,y,x),rt!==null&&(y!==null&&(rt=y(rt)),rt!==null&&(x===null||x(rt)))))return Tt.free(b),rt}return Tt.free(b),null},Et.ji=function(a,y,x,E){if(y===void 0&&(y=null),x===void 0&&(x=null),E instanceof pn||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=Tt.alloc(),tt=this.Pa.s,rt=tt.length;rt--;){var ot=tt[rt];if((b!==!0||dd(ot)!==!1)&&ot.isVisible()){z.assign(a),je(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 Tt.free(z),E},Et.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 pn||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},Et.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},Et.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 pn||b instanceof xn)&&(z=b),b=!0),z instanceof pn||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=Tt.alloc(),ot=Tt.alloc(),st=this.Pa.s,ut=st.length;ut--;){var ft=st[ut];if((tt!==!0||dd(ft)!==!1)&&ft.isVisible()){rt.assign(a),je(rt,ft.oe),ot.h(a.x+y,a.y),je(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 Tt.free(rt),Tt.free(ot),z},Et.Fd=function(a,y){if(this.visible){var x=this.Pa.s,E=x.length;if(E!==0){a=oi();for(var b=oi(),z=0;z<E;z++){var tt=x[z];if(tt.vw=z,tt instanceof hi){if(tt.fd===!1)continue}else if(tt instanceof lo&&tt.adornedPart!==null)continue;var rt=tt.actualBounds;tt.isVisible()&&Mi(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}Et.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=le.alloc(),ot=0;ot<E;ot++)this.Oj(a,x[ot],y,z,tt,rt,!0);if(le.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=le.alloc(),ut=0;ut<z;ut++){var ft=b[ut];E.contains(ft)&&a.Oj(y,ft,x,rt,ot,st,!1)}le.free(st),y.globalAlpha=tt}}}Et.Oj=function(a,y,x,E,b,z,tt){if(tt&&!dd(y))a.Hs(y);else{if(E!==null&&y instanceof hi&&(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&&(ma(y,a,y.areaBackground,!0,!0,z,b),a.fillRect(b.x,b.y,b.width,b.height)),y.areaBackground===null&&y.background===null&&(ma(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),ma(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))}},Et.g=function(a,y,x,E,b){var z=this.diagram;z!==null&&z.cb(To,a,this,y,x,E,b)},Et.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},Et.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 Fr&&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}sn.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===""&&te("Cannot rename default Layer to: "+a),x=x.layers;x.next();)x.value.name===a&&te("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)&&Jn(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 $e(a,y){if(hm||(gs(),hm=!0),bi(this),Tu=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,fa){var x=this,E=function(){x.removeEventListener(Xe.document,"DOMContentLoaded",E,!1),x.setRTL()};Xe.document.body!==null?this.setRTL():x.addEventListener(Xe.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 na,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"||Xe.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 pn,a.pj=new _e,a.nl="default",a.Tx(),a.Sx(),a.pb=1,a.pa=new Tt(NaN,NaN).freeze(),a.du=new Tt(NaN,NaN),a.Ca=1,a.Pp=1,a.zt=new Tt(NaN,NaN).freeze(),a.At=NaN,a.Ot=1e-4,a.Mt=100,a.Ab=new wi,a.zu=new Tt(NaN,NaN).freeze(),a.ut=new le(NaN,NaN,NaN,NaN).freeze(),a.rj=new Bi(0,0,0,0).freeze(),a.sj=Ah,a.nu=!1,a.Zt=null,a.fu=null,a.yh=ys,a.zk=Lo,a.Fg=ys,a.pq=Lo,a.yt=Ji,a.Bt=Ji,a.Fc=!0,a.pn=!1,a.De=new xn,a.Eh=new _e,a.Xm=!0,a.vp=250,a.vk=-1,a.xp=new Bi(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 _e,a.Xn=new pn,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 Bi(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 Tt,bounds:new le,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 le(NaN,NaN,NaN,NaN).freeze(),a.wo=new zt(NaN,NaN).freeze(),a.Sp=new le(NaN,NaN,NaN,NaN).freeze(),a.It=!1,a.Lg=new _e;var y=new Li,x=new jo;x.bind(new La("text","",Ui)),y.add(x),a.ny=y,a.Lg.add("",y),y=new Li,x=new jo,x.stroke="brown",x.bind(new La("text","",Ui)),y.add(x),a.Lg.add("Comment",y),y=new Li,y.selectable=!1,y.avoidable=!1,x=new zr,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 _e,y=new Fr,y.selectionObjectName="GROUPPANEL",y.type=ii.Vertical,x=new jo,x.font="bold 12pt sans-serif",x.bind(new La("text","",Ui)),y.add(x),x=new ii(ii.Auto),x.name="GROUPPANEL";var E=new zr;E.figure="Rectangle",E.fill="rgba(128,128,128,0.2)",E.stroke="black",x.add(E),E=new Ms,E.padding=new Bi(5,5,5,5).ja(),x.add(E),y.add(x),a.ly=y,a.Yi.add("",y),a.Kh=new _e,y=new hi,x=new zr,x.isPanelMain=!0,y.add(x),x=new zr,x.toArrow="Standard",x.fill="black",x.stroke=null,x.strokeWidth=0,y.add(x),a.my=y,a.Kh.add("",y),y=new hi,x=new zr,x.isPanelMain=!0,x.stroke="brown",y.add(x),a.Kh.add("Comment",y),y=new lo,y.type=ii.Auto,x=new zr,x.fill=null,x.stroke="dodgerblue",x.strokeWidth=3,y.add(x),x=new Ms,x.margin=new Bi(1.5,1.5,1.5,1.5).ja(),y.add(x),a.St=y,a.wt=y,y=new lo,y.type=ii.Link,x=new zr,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 Ao,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=en,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 Tt,a.zy=500,a.wp=new Tt,a.wq=!1}$e.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(),_r=[],b!==null&&(a.add(b),a.partManager.parts.remove(b)),E&&(a.skipsUndoManager=x),z}function qp(){return null}$e.prototype.reset=function(){this.clear(),this.vb=!0,Qp(this),Eu(this),this.Wg=!0,$p(this),this.layout=new na,this.Wg=!1,this.model=gy(),this.model.undoManager=new qo,this.vb=this.rn=!1,this.N()},$e.prototype.setRTL=function(a){a=a===void 0?this.div:a,a===null&&(a=Xe.document.body);var y=qn("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},$e.prototype.setScrollWidth=function(a){a=a===void 0?this.div:a,a===null&&(a=Xe.document.body);var y=0;if(fa){var x=um;y=nd,x===null&&(x=um=qn("p"),x.style.width="100%",x.style.height="200px",x.style.boxSizing="content-box",y=nd=qn("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||Tr||(y=11)}this.Db=y,this.Gw=!0},$e.prototype.qb=function(a){a.classType===$e&&(this.autoScale=a)},$e.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(fa){if(y!=null||te("Diagram setup requires an argument DIV."),a.Ka!==null&&te("Diagram has already completed setup."),typeof y=="string"?a.Ka=Xe.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:te("No DIV or DIV id supplied: "+y),a.Ka===null&&te("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&te("Invalid div id; div already has a Diagram associated with it."),!a.ol&&Xe.ResizeObserver){var x=mn(function(){a.$b()},250);a.ol=new Xe.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}Xe.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=Xe.go;var b=new zl(a);if(b.style!==void 0&&(b.style.position="absolute",b.style.top="0px",b.style.left="0px",Xe.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,fa){b=qn("div");var z=qn("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=mn(function(){a.Yh=null,a.N()},300),a.Ov=mn(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=Xe.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=Xe.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 $e&&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)}}$e.prototype.addEventListener=function(a,y,x,E){a.addEventListener(y,x,{capture:E,passive:!1})},$e.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(Xe,"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(),Gr&&Gr.nx||(a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0))}$e.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:Xe.devicePixelRatio||1},$e.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},$e.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},$e.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},$e.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},$e.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},$e.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},$e.prototype.doFocus=function(){this.focus()},$e.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var a=Xe.scrollX||Xe.pageXOffset,y=Xe.scrollY||Xe.pageYOffset;this.ta.focus(),Xe.scrollTo(a,y)}},$e.prototype.Oy=function(){this.H.R("GainedFocus")},$e.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 ii(ii.Grid);y.name="GRID";var x=new zr;return x.figure="LineH",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new zr,x.figure="LineH",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new zr,x.figure="LineH",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new zr,x.figure="LineV",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new zr,x.figure="LineV",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new zr,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)}$e.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 Ht=Xt;vt<ot||xt<st?(Xt=Tt.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==Ht&&(Xt.x=Ht/b+tt,this.ju=Ht),this.allowVerticalScroll&&this.lu!==a.scrollTop&&(Xt.y=a.scrollTop/b+rt,this.lu=a.scrollTop),this.position=Xt,Tt.free(Xt),this.Ee=this.qr=!1):(Xt=Tt.alloc(),a.uy&&this.allowHorizontalScroll&&(tt<ft&&(this.position=Xt.h(Ht+tt,this.position.y)),ut>Pt&&(this.position=Xt.h(-(y.scrollWidth-this.Aa)+Ht-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))),Tt.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"))}},$e.prototype.computeBounds=function(a){return a===void 0&&(a=new le),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}$e.prototype.computePartsBounds=function(a,y){y===void 0&&(y=!1);var x=null;if(zn(a))for(var E=0;E<a.length;E++){var b=a[E];!y&&b instanceof hi||(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 hi||(E.Va(),x===null?x=E.actualBounds.copy():x.ed(E.actualBounds));return x===null?new le(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=Tt.alloc(),x.xi(a.documentBounds,a.initialDocumentSpot);var E=a.viewportBounds;E=le.allocAt(0,0,E.width,E.height);var b=Tt.alloc();b.xi(E,a.initialViewportSpot),b.h(x.x-b.x,x.y-b.y),a.position=b,le.free(E),Tt.free(b),Tt.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()?ki:ot),Eg(a,a.documentBounds,b,tt,rt,y),y=a.scale,a.scale=z,a.vb=!1,z=a.viewportBounds,pe.B(z.x,x)&&pe.B(z.y,E)&&pe.B(z.width,b)&&pe.B(z.height,tt)||a.onViewportBoundsChanged(new le(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}$e.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},Et=$e.prototype,Et.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 Tt(a.x,a.y)}},Et.Jy=function(a,y){this.Va();var x=this.documentBounds,E=this.viewportBounds;this.position=new Tt(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))},Et.zz=function(a){if(a instanceof Le){this.eq=a;var y=Tt.alloc();this.fq=this.op(a.ga(Ji,y)),Tt.free(y)}else this.eq=null,this.fq=en};function Eg(a,y,x,E,b,z){var tt=Tt.allocAt(a.pa.x,a.pa.y),rt=tt.x,ot=tt.y;if(a.eq!==null){var st=Tt.alloc();st=a.eq.ga(Ji,st),rt=st.x-a.fq.x/a.scale,ot=st.y-a.fq.y/a.scale,b=Vi,Tt.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),Tt.free(tt)}Et.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},Et.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}Et.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 pn||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}Et.ji=function(a,y,x,E){y===void 0&&(y=null),x===void 0&&(x=null),E instanceof pn||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},Et.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)},Et.Cf=function(a,y,x,E,b){y===void 0&&(y=null),x===void 0&&(x=null),E===void 0&&(E=!1),b instanceof pn||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},Et.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 pn||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}Et.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)},Et.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 pn||b instanceof xn)&&(z=b),b=!0),z instanceof pn||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 pn||b instanceof xn)&&(z=b),b=!0),z instanceof pn||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}$e.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),Tr&&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,Tr&&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)}$e.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)},$e.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)},$e.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)},$e.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)},$e.prototype.getMouse=function(a){var y=this.ta;if(y===null)return new Tt(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?je(new Tt(y,a),this.Ab):new Tt(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=Tt.allocAt(tt,rt),a.Ab.Cd(y),x.documentPoint.assign(y),Tt.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))}}$e.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function im(a){a.ld||ss(a),a.Va()}$e.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},Et=$e.prototype,Et.Pz=function(){return this.kg},Et.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 Tt(NaN,NaN),y.isEnabled=x,this.ld=!0;var E=this;a!==null&&Hi(function(){E.ld=!1,Bu(y,"Model"),a(E)},1)},Et.$b=function(a){if(a===void 0&&(a=!1),this.kg!==!0&&!(this.vb||a===!1&&this.ld)){this.kg=!0;var y=this;Xe.requestAnimationFrame(function(){y.kg&&y.bd()})}},Et.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];Na(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=le.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),le.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 Fr&&E.U&65536&&(E.U=E.U^65536)})}}Et.Nv=function(a,y){for(a.reset();a.next();){var x=a.value;!x.Zc()||x instanceof Fr||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof Fr&&x.isVisible()&&bc(this,x);for(a.reset();a.next();)x=a.value,x instanceof hi&&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 lo&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function bc(a,y){for(var x=oi(),E=oi(),b=y.memberParts;b.next();){var z=b.value;z.isVisible()&&(z instanceof Fr?(hl(z)||Ls(z)||hd(z))&&bc(a,z):z instanceof hi?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)}Et.Fd=function(a,y,x,E){if(this.vd||this.animationManager.isAnimating)for(var b=0;b<y;b++)a[b].Fd(x,E)},Et.gc=function(a){if(this.Ka!==null){if(this.ta===null&&te("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&&(wi.prototype.Cd=wi.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&&(wi.prototype.Cd=wi.prototype.Eu),E?(this.ib.Vc(!0),this.vd=!0):this.Fc=this.vd=!1,y=+new Date-+x,E=Gr&&Gr.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&&te("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 le(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=wi.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),wi.free(Xt),Ch(a,y),y.globalAlpha=a.pb;var Ht=a.Qj("Grid");if(tt){var re=new xn,ae=tt.iterator;for(ae.reset();ae.next();){var he=ae.value;he instanceof rr&&(st||he.layer!==Ht)&&(he.Gj(),re.add(he))}for(st=0;st<vt;st++)_p(ft[st],y,a,re,ot);re.each(function(qe){return qe.Gj()})}else for(re=0;re<vt;re++){var Ae=ft[re];Ae===Ht?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())}}}Et.Gf=function(a){return this.Rg[a]},Et.Xx=function(a,y){a==="minDrawingLength"&&(this.Oq=y),this.Rg[a]=y,this.redraw()},Et.Tx=function(){this.Rg=new Gi,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(Tr||xr),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))}Et.Ql=function(a){return this.on[a]},Et.sA=function(a,y){this.on[a]=y},Et.Sx=function(){this.on=new Gi,this.on.extraTouchArea=10,this.on.extraTouchThreshold=10,this.on.hasGestureZoom=!0},Et.set=function(a){return Object.assign(this,a),this},Et.Du=function(a){return this.nm(a)},Et.nm=function(a){return Wd(this,a),this};function Wd(a,y){var x=a instanceof ii,E=a instanceof $e,b;for(b in y){b===""&&te("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])),Be(z)?tt=b.substr(rt+1):te("Unable to find object named: "+ot+" in "+a.toString()+" when trying to set property: "+b)}}if(tt[0]!=="_"&&!ji(z,tt))if(E&&tt==="ModelChanged"){a.Yw(y[tt]);continue}else if(E&&tt==="Changed"){a.Pe(y[tt]);continue}else if(E&&ji(a.toolManager,tt))z=a.toolManager;else if(E&&am(a,tt)){a.Bj(tt,y[tt]);continue}else if(a instanceof Xi&&tt==="Changed"){a.Pe(y[tt]);continue}else te('Trying to set undefined property "'+tt+'" on object: '+z.toString());z[tt]=y[b],tt[0]==="_"&&z instanceof Le&&z.Vw(tt)}}Et.bx=function(){if(this.Eh.count!==0&&!(1<this.undoManager.transactionLevel)){for(;0<this.Eh.count;){var a=this.Eh;for(this.Eh=new _e,a=a.iterator;a.next();){var y=a.key;y.Xo(a.value),y.qc()}}this.N()}},Et.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")},$e.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=le.alloc(),Ig(this,this.computeBounds(E)),le.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=oi(),a=oi(),xt=Math.abs(z),vt=Math.abs(y);var Pt=ut===0?0:b-xt;ut=Tt.allocAt(Pt,0),xt=Tt.allocAt(xt+Pt,rt),a.push(new le(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),je(ut,Ft),je(xt,Ft),E.push(new le(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 le(Math.min(ut.x,xt.x),Math.min(ut.y,xt.y),Math.abs(ut.x-xt.x),Math.abs(ut.y-xt.y))),je(ut,Ft),je(xt,Ft),E.push(new le(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 le(Math.min(ut.x,xt.x),Math.min(ut.y,xt.y),Math.abs(ut.x-xt.x),Math.abs(ut.y-xt.y))),je(ut,Ft),je(xt,Ft),E.push(new le(Math.min(ut.x,xt.x),Math.min(ut.y,xt.y),Math.abs(ut.x-xt.x),Math.abs(ut.y-xt.y)))),Tt.free(ut),Tt.free(xt),id(this,!1,!0),this.Ka===null&&te("No div specified"),this.ta===null&&te("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=le.alloc(),xt=tt.Pa.s,Ft=xt.length,Pt=ot.length;for(var Xt=0;Xt<Ft;Xt++){var Ht=xt[Xt],re=tc(Ht,Ht.actualBounds);t:{for(var ae=2/ut,he=4/ut,Ae=0;Ae<Pt;Ae++){var qe=ot[Ae];if(qe.width!==0&&qe.height!==0&&re.Vu(qe.x-ae,qe.y-ae,qe.width+he,qe.height+he)){re=!0;break t}}re=!1}re&&tt.Oj(b,Ht,this,ft,ut,vt,!0)}le.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,Ht=0,re=0,ae=0,he=0,Ae=ut.width,qe=ut.height,Pi=a.rj;a.contentAlignment.sb()?(Xt.width>Ae&&(Ht=Pi.left,re=Pi.right),Xt.height>qe&&(ae=Pi.top,he=Pi.bottom)):(Ht=Pi.left,re=Pi.right,ae=Pi.top,he=Pi.bottom);var Wi=Xt.width+Ht+re,Oi=Xt.height+ae+he;Pi=a.scale;var ui=Wi>ot/Pi,On=Oi>st/Pi;if(!(z||a.gf||a.Be||ui||On))return!0;Ht=Xt.x-Ht,ot=ut.x,re=Xt.right+re,st=ut.right+tt,ae=Xt.y-ae;var kr=ut.y;Xt=Xt.bottom+he,ut=ut.bottom+rt;var Cr="1px";if(he="1px",a.scrollMode===Ah&&(ui||On)&&(ui&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(ui=1,Ht+1<ot&&(ui=Math.max((ot-Ht)*Pi+a.Aa,ui)),re>st+1&&(ui=Math.max((re-st)*Pi+a.Aa,ui)),Ae+tt+1<Wi&&(ui=Math.max((Wi-Ae)*Pi+a.Aa,ui)),Cr=ui.toString()+"px"),On&&a.hasVerticalScrollbar&&a.allowVerticalScroll&&(ui=1,ae+1<kr&&(ui=Math.max((kr-ae)*Pi+a.ya,ui)),Xt>ut+1&&(ui=Math.max((Xt-ut)*Pi+a.ya,ui)),qe+rt+1<Oi&&(ui=Math.max((Oi-qe)*Pi+a.ya,ui)),he=ui.toString()+"px")),ui=Cr!=="1px",On=he!=="1px",ui&&On||!ui&&!On||(On&&(st-=a.Db),ui&&(ut-=a.Db),Wi<Ae+tt||!a.hasHorizontalScrollbar||!a.allowHorizontalScroll||(tt=1,Ht+1<ot&&(tt=Math.max((ot-Ht)*Pi+a.Aa,tt)),re>st+1&&(tt=Math.max((re-st)*Pi+a.Aa,tt)),Ae+1<Wi&&(tt=Math.max((Wi-Ae)*Pi+a.Aa,tt)),Cr=tt.toString()+"px"),ui=Cr!=="1px",tt=a.ya,ui!==a.Be&&(tt=ui?a.ya-a.Db:a.ya+a.Db),Oi<qe+rt||!a.hasVerticalScrollbar||!a.allowVerticalScroll||(rt=1,ae+1<kr&&(rt=Math.max((kr-ae)*Pi+tt,rt)),Xt>ut+1&&(rt=Math.max((Xt-ut)*Pi+tt,rt)),qe+1<Oi&&(rt=Math.max((Oi-qe)*Pi+tt,rt)),he=rt.toString()+"px"),On=he!=="1px"),a.qr&&ui===a.Be&&On===a.gf)return x===a.Aa&&E===a.ya||a.bd(),!1;if(ui!==a.Be&&(Cr==="1px"?a.ya=a.ya+a.Db:a.ya=Math.max(a.ya-a.Db,1),z=!0),a.Be=ui,Ft.style.width=Cr,On!==a.gf&&(he==="1px"?a.Aa=a.Aa+a.Db:a.Aa=Math.max(a.Aa-a.Db,1),z=!0,a.tn&&(rt=Tt.alloc(),On?(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)),Tt.free(rt))),z&&Eu(a),a.gf=On,Ft.style.height=he,a.gu=!0,z&&(a.pn=!0),y=Pt.scrollLeft,a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Ae+1<Wi?y=(a.position.x-Ht)*Pi:Ht+1<ot?y=Pt.scrollWidth-Pt.clientWidth:re>st+1&&(y=a.position.x*Pi)),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&&(qe+1<Oi?Pt.scrollTop=(a.position.y-ae)*Pi:ae+1<kr?Pt.scrollTop=Pt.scrollHeight-Pt.clientHeight:Xt>ut+1&&(Pt.scrollTop=a.position.y*Pi)),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=le.allocAt(b,ft,vt,xt),a.onViewportBoundsChanged(x,a.viewportBounds,Pi,z),le.free(x),!1):!0}Et=$e.prototype,Et.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&te("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&&te('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)}},Et.oi=function(a){this.partManager.oi(a);var y=this;Qd(a,function(x){Vd(y,x)}),(a instanceof lo||a instanceof Fr&&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()},Et.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()},Et.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(pa,"parts",E,y,null,x,null),a=y.layerChanged,a!==null&&a(y,E,null))}Et.Is=function(a,y){if(y===void 0&&(y=!1),zn(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)},Et.Kj=function(a,y,x){return x===void 0&&(x=!1),this.partManager.Kj(a,y,x)},$e.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 _e;if(a!==null)if(zn(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 Li){if(y.add(x,a.Pd(b,x,x.location)),x instanceof Fr&&(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 hi)for(y.add(x,a.Pd(b,x)),x=x.labelNodes;x.next();)Iu(a,y,x.value,E,b);else x instanceof lo||y.add(x,a.Pd(b,x,x.location))}function rd(a,y,x,E,b){if(y!==null&&y.count!==0){var z=Tt.alloc(),tt=Tt.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=oi(),ot=oi(),st=y.iterator,ut=Tt.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 Tt),vt.shifted.assign(ut.re(xt)))}else st.key instanceof hi&&ot.push(st.sa)}for(Tt.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 Tt),ft.node.location=z.add(ft.Su.shifted);for(b=Tt.alloc(),st=Tt.alloc(),ft=ot.length,vt=0;vt<ft;vt++){var Pt=ot[vt];if(xt=Pt.key,xt instanceof hi)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=Tt.allocAt(0,0),(ut=xt.i(0))&&ut.w()&&Pt.assign(ut);var Xt=ut=Tt.alloc().assign(Pt).add(tt);E.isGridSnapEnabled&&(E.isGridSnapRealtime||a.lastInput.up)&&(Xt=Tt.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),Tt.free(Pt),Tt.free(ut),Xt!==ut&&Tt.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))}Tt.free(z),Tt.free(tt),Tt.free(b),Tt.free(st),gi(rt),gi(ot),x||(ss(a),od(a,y))}}$e.prototype.computeMove=function(a,y,x,E){if(E===void 0&&(E=new Tt),E.assign(y),a===null)return E;var b=y,z=x.isGridSnapEnabled;z&&(x.isGridSnapRealtime||this.lastInput.up)&&(b=Tt.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&&Tt.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=Tt.allocAt(0,0),z.yi(0,0,a,y,b),pe.No(x.x,x.y,rt+z.x,tt+z.y,a,y,E),Tt.free(z)}}function yf(a,y){if(y!==null)for(a.Mr=!0,a=y.iterator;a.next();)y=a.key,y instanceof hi&&(y.suspendsRouting=!0)}function od(a,y){if(y!==null){for(y=y.iterator;y.next();){var x=y.key;x instanceof hi&&(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}Et=$e.prototype,Et.Pd=function(a,y,x){if(x===void 0)return new nh(Wt);var E=a.isGridSnapEnabled;return a.groupsSnapMembers||y.containingGroup===null||(E=!1),E?new nh(new Tt(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&&te("Cannot share a Layer with another Diagram: "+y+" of "+y.diagram),x===null?y.diagram!==null&&te("Cannot add an existing Layer to this Diagram again: "+y):(x.diagram!==a&&te("Existing Layer must be in this Diagram: "+x+" not in "+x.diagram),y===x&&te("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&&te("Cannot add Layer with the name '"+y+"'; a Layer with the same name is already present in this Diagram.")}}Et.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},Et.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(pa,"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},Et.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(pa,"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},Et.kA=function(a){if(a.diagram!==this&&te("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(pa,"layers",this,a,null,x,null),this.N(),this.Ya()}}},Et.Qj=function(a){for(var y=this.layers;y.next();){var x=y.value;if(x.name===a)return x}return null},Et.Yw=function(a){return this.pf===null&&(this.pf=new pn),this.pf.add(a),this.model.Pe(a),this},Et.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},Et.Pe=function(a){return this.zg===null&&(this.zg=new pn),this.zg.add(a),this},Et.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},Et.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==Fa&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,x=y.length,E=0;E<x;E++)y.M(E)(a)},Et.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)},Et.g=function(a,y,x,E,b){this.cb(To,a,this,y,x,E,b)},$e.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 Le){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 ii)if(typeof rt=="number"&&ot instanceof Le){y?tt.pc(rt):tt.Gb(rt,ot);var st=tt.part;st!==null&&st.Wb()}else typeof rt=="number"&&ot instanceof Ba&&(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 $e?typeof rt=="number"&&ot instanceof Xa&&(y?this.Wa.mb(rt):(ot.Xe(this),this.Wa.Gb(rt,ot))):te("unknown ChangedEvent.Insert object: "+a.toString());this.isModified=!0}else if(E===pa){var ft=a.object,vt=a.oldParam,xt=a.oldValue;if(ft instanceof ii)typeof vt=="number"&&xt instanceof Le?y?ft.Gb(vt,xt):ft.pc(vt):typeof vt=="number"&&xt instanceof Ba&&(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 $e?typeof vt=="number"&&xt instanceof Xa&&(y?(xt.Xe(this),this.Wa.Gb(vt,xt)):this.Wa.mb(vt)):te("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else E!==Fa&&te("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},$e.prototype.Ea=function(a){return this.undoManager.Ea(a)},$e.prototype.eb=function(a){return this.undoManager.eb(a)},$e.prototype.Kf=function(){return this.undoManager.Kf()},$e.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}},$e.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},$e.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(Ur)?rt=0:st.Hf(Xr)&&(rt=z-1):rt=st.sb()?st.x*(z-1):z/2),isNaN(ot)&&(st.$c()?st.Hf(to)?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=Tt.allocAt(a.pa.x+rt/y-rt/x,a.pa.y+ot/y-ot/x),a.position=z,Tt.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))}}$e.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 Ao&&(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/pe.vx(z,ut):b=b*ut/pe.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=le.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){le.free(y);return}b=y.width,z=y.height,a=y.x,tt=y.y,le.free(y)}x.width=b+2*E.width,x.height=z+2*E.height,y=Tt.alloc(),pe.No(a,tt,0,0,E.width,E.height,y),y.offset(-E.width,-E.height),zt.free(E),x.part.location=y,Tt.free(y)}}$e.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)}},$e.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))},$e.prototype.rA=function(a){if(this.R("ChangingSelection",this.selection),this.clearSelection(!0),zn(a))for(var y=a.length,x=0;x<y;x++){var E=a[x];E instanceof rr||te("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||te("Diagram.selectCollection given something that is not a Part: "+y),y.isSelected=!0;this.R("ChangedSelection",this.selection)},$e.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()}},Et=$e.prototype,Et.Iz=function(a){a!==null&&a.diagram===this&&(!a.isHighlighted||1<this.highlighteds.count)&&(this.clearHighlighteds(),a.isHighlighted=!0)},Et.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||te("Diagram.highlightCollection given something that is not a Part: "+y),y.isHighlighted=!0},Et.scroll=function(a,y,x){x===void 0&&(x=1);var E=y==="up"||y==="down",b=0,z=Tt.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)),Tt.free(z);return}te("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):te("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+y),Tt.free(z)},Et.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)},Et.es=function(a){var y=this.viewportBounds;a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a},Et.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)},Et.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 le(z,xt,vt-z,y-xt)},Et.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),je(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}$e.prototype.doModelChanged=function(a){var y=this;if(a.model===this.model){var x=a.change,E=a.propertyName;if(x===Fa&&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===Fa){(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;Hi(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}}}}}$e.prototype.Wd=function(){this.partManager.Wd()},$e.prototype.Aj=function(a,y){this.Yd.Aj(a,y)},$e.prototype.Cj=function(a,y){this.Yd.Cj(a,y)},$e.prototype.findPartForKey=function(a){return this.partManager.findPartForKey(a)},$e.prototype.Vb=function(a){return this.partManager.Vb(a)},$e.prototype.findLinkForKey=function(a){return this.partManager.findLinkForKey(a)},Et=$e.prototype,Et.Lc=function(a){return this.partManager.Lc(a)},Et.ii=function(a){return this.partManager.ii(a)},Et.Kc=function(a){return this.partManager.Kc(a)},Et.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:fi(Gn(y)))},Et.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:fi(Gn(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())}Et.Va=function(){if(this.Zi){var a=le.alloc();Ig(this,this.computeBounds(a)),le.free(a)}},Et.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},Et.qz=function(){return this.ai.iterator},Et.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)}}Et.yz=function(){for(var a=new pn,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 pn;x.add(b,tt),x.add(z,tt),E.add(b,b),E.add(z,b)}var x=new _e,E=new _e;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;te("Unknown DiagramEvent name: "+y)}Et.Bj=function(a,y){return a=xf(this,a),a!==null&&a.add(y),this},Et.am=function(a,y){a=xf(this,a),a!==null&&a.remove(y)},Et.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}Et.Yj=function(a,y){return Pf(this,!1,null,y||null).Yj(a.x,a.y,a.width,a.height)},$e.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=le.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)}le.free(y)}else{for(0<x.memberParts.count&&(y=a.computePartsBounds(x.memberParts,!1),y.Bc(20,20),b.initialize(y)),y=le.alloc(),z=x.memberParts;z.next();)tt=z.value,tt instanceof Li&&Cf(a,tt,E,y);le.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 Fr)for(y=y.memberParts;y.next();)b=y.value,b instanceof Li&&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)}$e.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=Hi(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=le.alloc(),a.computeBounds(y),y.ed(a.documentBounds),Ig(a,y),le.free(y),a.Fc=!0,a.bd(),jg(a))}},a.vp))}$e.prototype.ug=function(){this.vk!==-1&&(Xe.clearTimeout(this.vk),this.vk=-1)},$e.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=le.allocAt(0,0,E.width*b,E.height*b);var z=Tt.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(Wt)||(y=new Tt(y.x+z.x/b,y.y+z.y/b)),le.free(E),Tt.free(z),y},Et=$e.prototype,Et.Cs=function(){return null},Et.av=function(){return null},Et.bs=function(a,y){this.pj.add(a,y)},Et.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof Fr&&(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):Xe.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 Xe.requestAnimationFrame(function(){E()}),null}Et.Wz=function(a){return fa?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},Et.Jx=function(a){return a===void 0&&(a={}),Mc(this,this.Xz,a)},Et.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"&&te('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"&&te("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 Bi(st):st instanceof Bi||te("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,Ht=a.documentBounds.copy();if(Ht.Fv(a.yb),Pt)for(var re=a.Wa.s,ae=re.length,he=0;he<ae;he++){var Ae=re[he];if(Ae.visible&&Ae.isTemporary){Ae=Ae.Pa.s;for(var qe=Ae.length,Pi=0;Pi<qe;Pi++){var Wi=Ae[Pi];Wi.isInDocumentBounds&&Wi.isVisible()&&(Wi=Wi.actualBounds,Wi.w()&&Ht.ed(Wi))}}}if(re=new Tt(Ht.x,Ht.y),ot!==null){for(ae=new le(0,0,0,0),he=!0,Ae=ot.iterator,Ae.reset();Ae.next();)qe=Ae.value,qe instanceof rr&&(Pi=qe.layer,Pi!==null&&!Pi.visible||Pi!==null&&!Pt&&Pi.isTemporary||!qe.isVisible()||(qe=qe.actualBounds,qe.w()&&(he?(he=!1,ae.assign(qe)):ae.ed(qe))));Ht.width=ae.width,Ht.height=ae.height,re.x=ae.x,re.y=ae.y}return rt!==null&&rt.w()&&(re=rt,z||(z=Xt)),ae=rt=0,st!==null&&(rt=st.left+st.right,ae=st.top+st.bottom),he=Ae=0,b!==null&&(Ae=b.width,he=b.height,isFinite(Ae)&&(Ae=Math.max(0,Ae-rt)),isFinite(he)&&(he=Math.max(0,he-ae))),b!==null&&z!==null?(z==="NaN"&&(z=Xt),b.w()?(b=Ae,Ht=he):isNaN(he)?(b=Ae,Ht=Ht.height*z):(b=Ht.width*z,Ht=he)):b!==null?b.w()?(z=Math.min(Ae/Ht.width,he/Ht.height),b=Ae,Ht=he):isNaN(he)?(z=Ae/Ht.width,b=Ae,Ht=Ht.height*z):(z=he/Ht.height,b=Ht.width*z,Ht=he):z!==null?z==="NaN"&&tt.w()?(z=Math.min((tt.width-rt)/Ht.width,(tt.height-ae)/Ht.height),z>Xt?(z=Xt,b=Ht.width,Ht=Ht.height):(b=tt.width,Ht=tt.height)):(b=Ht.width*z,Ht=Ht.height*z):(z=Xt,b=Ht.width,Ht=Ht.height),st!==null?(b+=rt,Ht+=ae):st=new Bi(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)&&(Ht=Math.min(Ht,tt))),ft.width=Math.ceil(b),ft.height=Math.ceil(Ht),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(Ht)),z,re,ot,ut,Pt,y),E.context):(a.Xm=!1,pf(a,Ft,st,new zt(Math.ceil(b),Math.ceil(Ht)),z,re,ot,ut,Pt,y),a.Xm=!0,ft.context)}sn.Object.defineProperties($e.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,Xe.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,Xe.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(Xe,"resize",this.Ov,!1),this.removeEventListener(Xe,"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)&&Jn(a,"0 <= value <= 1",$e,"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&&Jn(a,">= 0",$e,"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&&Jn(a,">= 0",$e,"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 Jn(a,">= 0",$e,"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&&te("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(Xe,"pointermove",this.dk,!0),this.addEventListener(Xe,"pointerdown",this.ui,!0),this.addEventListener(Xe,"pointerup",this.fk,!0),this.addEventListener(Xe,"pointerout",this.ek,!0),this.addEventListener(Xe,"pointercancel",this.ck,!0),this.removeEventListener(y,"wheel",this.$j,!1),this.addEventListener(Xe,"wheel",this.$j,!0),this.addEventListener(Xe,"selectstart",this.preventDefault,!1)):(this.removeEventListener(Xe,"pointermove",this.dk,!0),this.removeEventListener(Xe,"pointerdown",this.ui,!0),this.removeEventListener(Xe,"pointerup",this.fk,!0),this.removeEventListener(Xe,"pointerout",this.ek,!0),this.removeEventListener(Xe,"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(Xe,"wheel",this.$j,!0),this.removeEventListener(Xe,"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=Tt.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)}Tt.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!==ii.Grid&&te("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||te("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 Bi(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()||te("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()||te("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)):Jn(a,"> 0",$e,"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)):Jn(a,"> 0",$e,"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 Bi(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&&te("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!==Da&&a!==Af&&te("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 Bi(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),sn.Object.defineProperties($e,{licenseKey:{get:function(){return Kg.jc()},set:function(a){Kg.add(a.replace(/\s/g,""))}},version:{get:function(){return Kd}}}),$e.prototype.makeImageData=$e.prototype.Jx,$e.prototype.makeImage=$e.prototype.Wz,$e.prototype.cacheGroupExternalLinks=$e.prototype.Fu,$e.prototype.addRenderer=$e.prototype.bs,$e.prototype.makeSVG=$e.prototype.av,$e.prototype.makeSvg=$e.prototype.Cs,$e.prototype.stopAutoScroll=$e.prototype.ug,$e.prototype.doAutoScroll=$e.prototype.gs,$e.prototype.isUnoccupied=$e.prototype.Yj,$e.prototype.raiseDiagramEvent=$e.prototype.R,$e.prototype.removeDiagramListener=$e.prototype.am,$e.prototype.addDiagramListener=$e.prototype.Bj,$e.prototype.findTreeRoots=$e.prototype.yz,$e.prototype.layoutDiagram=$e.prototype.Uz,$e.prototype.findTopLevelGroups=$e.prototype.qz,$e.prototype.findTopLevelNodesAndLinks=$e.prototype.rz,$e.prototype.ensureBounds=$e.prototype.Va,$e.prototype.findLinksByExample=$e.prototype.ls,$e.prototype.findNodesByExample=$e.prototype.ms,$e.prototype.findLinkForData=$e.prototype.Kc,$e.prototype.findNodeForData=$e.prototype.ii,$e.prototype.findPartForData=$e.prototype.Lc,$e.prototype.findLinkForKey=$e.prototype.findLinkForKey,$e.prototype.findNodeForKey=$e.prototype.Vb,$e.prototype.findPartForKey=$e.prototype.findPartForKey,$e.prototype.rebuildParts=$e.prototype.Wd,$e.prototype.transformViewToDoc=$e.prototype.Ps,$e.prototype.transformRectDocToView=$e.prototype.zA,$e.prototype.transformDocToView=$e.prototype.op,$e.prototype.centerRect=$e.prototype.es,$e.prototype.scrollToRect=$e.prototype.tv,$e.prototype.scroll=$e.prototype.scroll,$e.prototype.highlightCollection=$e.prototype.Jz,$e.prototype.highlight=$e.prototype.Iz,$e.prototype.selectCollection=$e.prototype.rA,$e.prototype.select=$e.prototype.select,$e.prototype.updateAllRelationshipsFromData=$e.prototype.rp,$e.prototype.updateAllTargetBindings=$e.prototype.updateAllTargetBindings,$e.prototype.commit=$e.prototype.commit,$e.prototype.rollbackTransaction=$e.prototype.Kf,$e.prototype.commitTransaction=$e.prototype.eb,$e.prototype.startTransaction=$e.prototype.Ea,$e.prototype.raiseChanged=$e.prototype.g,$e.prototype.raiseChangedEvent=$e.prototype.cb,$e.prototype.removeChangedListener=$e.prototype.ik,$e.prototype.addChangedListener=$e.prototype.Pe,$e.prototype.removeModelChangedListener=$e.prototype.mA,$e.prototype.addModelChangedListener=$e.prototype.Yw,$e.prototype.findLayer=$e.prototype.Qj,$e.prototype.removeLayer=$e.prototype.kA,$e.prototype.addLayerAfter=$e.prototype.Cy,$e.prototype.addLayerBefore=$e.prototype.Ww,$e.prototype.addLayer=$e.prototype.Al,$e.prototype.moveParts=$e.prototype.moveParts,$e.prototype.copyParts=$e.prototype.Kj,$e.prototype.removeParts=$e.prototype.Is,$e.prototype.remove=$e.prototype.remove,$e.prototype.add=$e.prototype.add,$e.prototype.clearDelayedGeometries=$e.prototype.bx,$e.prototype.setProperties=$e.prototype.nm,$e.prototype.attach=$e.prototype.Du,$e.prototype.set=$e.prototype.set,$e.prototype.resetInputOptions=$e.prototype.Sx,$e.prototype.setInputOption=$e.prototype.sA,$e.prototype.getInputOption=$e.prototype.Ql,$e.prototype.resetRenderingHints=$e.prototype.Tx,$e.prototype.setRenderingHint=$e.prototype.Xx,$e.prototype.getRenderingHint=$e.prototype.Gf,$e.prototype.maybeUpdate=$e.prototype.bd,$e.prototype.requestUpdate=$e.prototype.$b,$e.prototype.delayInitialization=$e.prototype.Xy,$e.prototype.isUpdateRequested=$e.prototype.Pz,$e.prototype.invalidateDocumentBounds=$e.prototype.Ya,$e.prototype.findObjectsNear=$e.prototype.og,$e.prototype.findPartsNear=$e.prototype.mz,$e.prototype.findObjectsIn=$e.prototype.Cf,$e.prototype.findPartsIn=$e.prototype.ux,$e.prototype.findObjectsAt=$e.prototype.ji,$e.prototype.findPartsAt=$e.prototype.lz,$e.prototype.findObjectAt=$e.prototype.ic,$e.prototype.findPartAt=$e.prototype.Ol,$e.prototype.focusObject=$e.prototype.zz,$e.prototype.alignDocument=$e.prototype.Jy,$e.prototype.zoomToRect=$e.prototype.BA,$e.prototype.zoomToFit=$e.prototype.zoomToFit,$e.prototype.diagramScroll=$e.prototype.kx,$e.prototype.focus=$e.prototype.focus;var Ef=new _e,um=null,fa=Xe.document!==void 0,Gd=null,sd="",ys=new We($e,"None",0),ll=new We($e,"Uniform",1),ld=new We($e,"UniformToFill",2),kc=new We($e,"CycleAll",10),Wg=new We($e,"CycleNotDirected",11),Hg=new We($e,"CycleNotDirectedFast",12),Zg=new We($e,"CycleNotUndirected",13),Vg=new We($e,"CycleDestinationTree",14),Gg=new We($e,"CycleSourceTree",15),Ah=new We($e,"DocumentScroll",1),Fc=new We($e,"InfiniteScroll",2),Lh=new We($e,"TreeParentCollapsed",21),Da=new We($e,"AllParentsCollapsed",22),Af=new We($e,"AnyParentsCollapsed",23),Kg=new pn,Kd="2.3.10",Yd="image",Dc=null,hm=!1;function gs(){if(fa){var a=Xe.document.createElement("canvas"),y=a.getContext("2d"),x=Ei("7ca11abfd022028846");y[x]=Ei("398c3597c01238");for(var E=["5da73c80a36455d7038e4972187c3cae51fd22",Dn.Dx+"4ae6247590da4bb21c324ba3a84e385776",wi.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",pe.za],b=1;5>b;b++)y[Ei("7ca11abfd7330390")](Ei(E[b-1]),10,15*b);for(y[x]=Ei("39f046ebb36e4b"),x=1;5>x;x++)y[Ei("7ca11abfd7330390")](Ei(E[x-1]),10,15*x);(E.length!==4||E[0][0]!=="5"||E[3][0]!=="7")&&(wi.prototype.Cd=wi.prototype.Eu),Dc=a}}$e.className="Diagram",$e.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=Xe.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof $e?y.H:null},$e.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},$e.useDOM=function(a){fa=a?Xe.document!==void 0:!1},$e.isUsingDOM=function(){return fa},$e.None=ys,$e.Uniform=ll,$e.UniformToFill=ld,$e.CycleAll=kc,$e.CycleNotDirected=Wg,$e.CycleNotDirectedFast=Hg,$e.CycleNotUndirected=Zg,$e.CycleDestinationTree=Vg,$e.CycleSourceTree=Gg,$e.DocumentScroll=Ah,$e.InfiniteScroll=Fc,$e.TreeParentCollapsed=Lh,$e.AllParentsCollapsed=Da,$e.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=Xe[Ei("76a715b2f73f148a")][Ei("72ba13b5")]||"";if(a.Rc=!0,fa){var E=$e[Ei("76a115b6ed251eaf4692")];if(E)for(var b=Kg.iterator;b.next()&&(E=b.value,E=Ei(E).split(Ei("39e9")),!(6>E.length));){var z=Ei(E[1]).split(".");if(E[4]!=="7da71ca0")break;var tt=Ei(Dn[Ei("6cae19")]).split(".");if(z[0]>tt[0]||z[0]===tt[0]&&z[1]>=tt[1]){var rt=Xe[Ei("74a900bae4370f8b51")][Ei("6fbb13a1c2311e8a57")].toLowerCase();if(tt=rt[Ei("73a612b6fb191d")](Ei("3aad1ab6e022098b4dc4")),z=Ei(E[2]),-1<tt&&(rt=rt[Ei("73a612b6fb191d")](z.toLowerCase()+"/"),a.Rc=!(-1<rt&&rt<tt),!a.Rc))break;for(tt=x[Ei("76ad18b4f73e")],rt=x[Ei("73a612b6fb191d")](Ei("35e7"))+2;rt<tt;rt++)y+=x[rt];if(tt=y[Ei("73a612b6fb191d")](z),0>tt&&z!==Ei("7da71ca0ad381e90")&&(tt=y[Ei("73a612b6fb191d")](Ei("76a715b2ef3e149757"))),0>tt&&(tt=y[Ei("73a612b6fb191d")](Ei("76a715b2ef3e149757"))),0>tt&&(tt=y[Ei("73a612b6fb191d")](Ei("2bfa41fdb3784bca12"))),0>tt&&(tt=x[Ei("73a612b6fb191d")](Ei("7baa19a6f76c1988428554"))),a.Rc=!(0<=tt&&tt<y[Ei("73a612b6fb191d")](Ei("35"))||y[Ei("73a612b6fb191d")](Ei("35"))===-1),!a.Rc||x[Ei("73a612b6fb191d")](Ei("7fb002b6ed25128b4da25b2e"))&&(a.Rc=!(-1<x[Ei("73a612b6fb191d")](z)),!a.Rc)||(tt=Xe[Ei("76a715b2f73f148a")][Ei("69ad17a1e03e")],rt=tt[Ei("73a612b6fb191d")](Ei("7fb002b6ed25128b4da25b2e")),-1<rt&&(a.Rc=!(tt[Ei("73a612b6fb191d")](z)>rt),!a.Rc)))break;if(z[0]==="#"){tt=Xe.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[Ei("79a417a0f0181a8946")]=E,Xe.document[Ei("78a712aa")]){Xe.document[Ei("78a712aa")][Ei("7bb806b6ed32388c4a875b")](tt),ot=Xe.getComputedStyle(tt).getPropertyValue(Ei("78a704b7e62456904c9b12701b6532a8"));var st=Xe.getComputedStyle(tt).getPropertyValue(Ei("75b817b0ea2202"));if(Xe.document[Ei("78a712aa")][Ei("68ad1bbcf533388c4a875b")](tt),ot){if(tt=Xe[Ei("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(Ei("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[Ei("76ad18b4f73e")],b=x[Ei("73a612b6fb191d")](Ei("35e7"))+2;b<ut;b++)y+=x[b];x=y[Ei("73a612b6fb191d")](Ei("7da71ca0ad381e90")),a.Rc=!(0<=x&&x<y[Ei("73a612b6fb191d")](Ei("35")))}}}return 0<a.Rc&&a!==a.wy}dm.className="DiagramHelper";function nh(a){this.j=a===void 0?new Tt:a,this.o=new Tt}sn.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=Ji,this.gridSnapOrigin=new Tt(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"||Xe.Element&&a instanceof Element)var x=$e.call(this,a)||this;else x=$e.call(this)||this,y=a;return ht(x),y&&x.nm(y),x}ke(ct,$e);function ht(a){a.allowDragOut=!0,a.allowMove=!1,a.isReadOnly=!0,a.contentAlignment=lr,a.layout=new $a}ct.prototype.reset=function(){$e.prototype.reset.call(this),ht(this)},ct.className="Palette";function pt(a,y){if(typeof a=="string"||Xe.Element&&a instanceof Element)var x=$e.call(this,a)||this;else x=$e.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 zr;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 Bi(0,0,0,0),x.pa.h(0,0),x.toolManager.gb("Dragging",new Jt,x.toolManager.mouseMoveTools),x.click=function(){var z=E.observed;if(z!==null){var tt=z.viewportBounds,rt=E.lastInput.documentPoint;z.position=new Tt(rt.x-tt.width/2,rt.y-tt.height/2)}},x.Pf=function(){E.Ya(),Rt(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&&Rt(E)},x.autoScale=ll,x.vb=!1,y&&Object.assign(x,y),x}ke(pt,$e),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),bt(this)}finally{this.ta=a,this.ib=y}}}$e.prototype.redraw.call(this)},pt.prototype.gc=function(){if(this.Ka===null&&te("No div specified"),this.ta===null&&te("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?bt(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 bt(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=le.alloc().assign(a.viewportBounds).ed(y.viewportBounds),Cu(y,b),le.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=le.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)}le.free(vt),b.globalAlpha=ut}}}}}function Rt(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 zr&&(E.strokeWidth=a),y.location=new Tt(x.x-a/2,x.y-a/2),y.isSelected=!0}}}pt.prototype.computeBounds=function(){var a=this.observed;if(a===null)return Ir;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(),Rt(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))},sn.Object.defineProperties(pt.prototype,{observed:{get:function(){return this.V},set:function(a){var y=this.V;if(a instanceof pt&&te("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),Rt(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),Rt(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 Jt(){Uo.call(this),this.j=null}ke(Jt,Uo),Jt.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 Tt(x.width/2,x.height/2),a=a.firstInput.documentPoint,y.position=new Tt(a.x-this.j.x,a.y-this.j.y)),!0)},Jt.prototype.doActivate=function(){this.j=null,Uo.prototype.doActivate.call(this)},Jt.prototype.doUpdateCursor=function(){var a=this.diagram,y=a.box;y!==null&&y.cursor&&(a.currentCursor=y.cursor)},Jt.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 Tt(E.x-x.x,E.y-x.y)}a=a.lastInput.documentPoint,y.position=new Tt(a.x-this.j.x,a.y-this.j.y)}}},Jt.className="OverviewDraggingTool";function Ut(){bi(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=Ir,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=Tr?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 Ao&&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 pn,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 Tt(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=Ir):(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=fe(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 Li&&ot.isTreeExpanded&&(!(ot instanceof Fr)||ot.isSubGraphExpanded);)ot=b.pop();0<b.length?(ot instanceof rr&&y.tv(ot.actualBounds),ot instanceof Li&&!ot.isTreeExpanded&&(ot.isTreeExpanded=!0),ot instanceof Fr&&!ot.isSubGraphExpanded&&(ot.isSubGraphExpanded=!0)):(ot instanceof rr&&y.es(ot.actualBounds),y.am("LayoutCompleted",tt)),y.eb("Scroll To Part")},tt=function(){Hi(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 fe(a,y,x){if(y.isVisible())return x;if(y instanceof lo)fe(a,y.adornedPart,x);else if(y instanceof hi){var E=y.fromNode;E!==null&&fe(a,E,x),y=y.toNode,y!==null&&fe(a,y,x)}else y instanceof Li&&(E=y.labeledLink,E!==null&&fe(a,E,x),E=y.pg(),E!==null&&(E.isTreeExpanded||E.wasTreeExpanded||x.push(E),fe(a,E,x))),y=y.containingGroup,y!==null&&(y.isSubGraphExpanded||y.wasSubGraphExpanded||x.push(y),fe(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 pn;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 Li&&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 Li&&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 Li&&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 pn;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 Li&&!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 Li)||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 Li&&!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 pn,z=a.selection.iterator;z.next();){var tt=z.value;tt.Zc()&&tt.canGroup()&&b.add(tt)}for(var rt=new pn,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 Fr)jl(x),E=x.copy(),E!==null&&a.add(E);else if(y.Yu(x)){var xt=y.copyNodeData(x);Be(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 vn(a){var y=oi();for(a=a.iterator;a.next();){var x=a.value;x instanceof hi||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 hi)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 pn;if(a!==null)E.add(a);else for(var b=y.selection.iterator;b.next();){var z=b.value;z instanceof Fr&&z.canUngroup()&&E.add(z)}var tt=new pn;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 hi)){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 Fr))return!1;if(a.canUngroup())return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Fr&&y.canUngroup())return!0;return!1},Ut.prototype.addTopLevelParts=function(a,y){var x=!0;for(a=vn(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 pn;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 Fr&&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 Fr&&a.isSubGraphExpanded);for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Fr&&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 pn;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 Fr&&!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 Fr&&!a.isSubGraphExpanded;for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Fr&&!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 jo&&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 jo))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 jo&&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 Le?b=a.ga(ki):y.viewportBounds.ca(E.documentPoint)||(b=y.viewportBounds,b=new Tt(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 _e,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 hi&&(y=a.fromNode,y===null||E.contains(y)?(y=a.toNode,y===null||E.contains(y)||E.remove(a)):E.remove(a));return E},sn.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||te("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 Le(){bi(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new Tt(NaN,NaN).freeze(),this.jd=Un,this.Ab=new wi,this.wh=new wi,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=Nr,this.uc=new le(NaN,NaN,NaN,NaN).freeze(),this.Ib=new le(NaN,NaN,NaN,NaN).freeze(),this.dc=new le(0,0,NaN,NaN).freeze(),this.ba=this.Yn=this.Zn=null,this.sk=this.Jb=Lo,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 $n,Zn,Yi,$i,cr,Dr,$r,Vr,oo,ko;Le.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())},Le.prototype.Vw=function(a){var y=this.Dh;if(zn(y)){for(var x=0;x<y.length;x++)if(y[x]===a)return}else this.Dh=y=[];y.push(a)},Le.prototype.Af=function(a){a.Zn=null,a.Ng=null,a.v()},Le.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},Le.prototype.copy=function(){return this.clone()},Et=Le.prototype,Et.qb=function(a){a.classType===hi?a.name.indexOf("Orient")===0?this.segmentOrientation=a:te("Unknown Link enum value for GraphObject.segmentOrientation property: "+a):a.classType===Le&&(this.stretch=a)},Et.toString=function(){return Si(this.constructor)+"#"+Er(this)},Et.th=function(){this.A!==null&&(this.A.nc=!0)};function Zr(a){a.A===null?a.A=new Tc:a.A.nc&&(a.A=a.A.copy())}Et.Xc=function(){if(this.ba===null){var a=new Yg;a.Xi=Vi,a.yj=Vi,a.Vi=10,a.wj=10,a.Wi=0,a.xj=0,this.ba=a}},Et.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 _e),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 ii&&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 ii&&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))}}Et.ks=function(a){return this.bindingId===a?this:null},Et.g=function(a,y,x){this.cb(To,a,this,y,x)},Et.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 wi);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))}Et.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},Et.se=function(){return!0},Et.ca=function(a){var y=Tt.alloc();y.assign(a),this.transform.Ga(y);var x=this.actualBounds;if(!x.w())return Tt.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=Ri(x.x-tt*ot,x.y-tt*ot,x.width+z*ot,x.height+z*ot,y.x,y.y),Tt.free(y),a}return b=!1,(this instanceof lo||this instanceof zr?Ri(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)),Tt.free(y),b},Et.gh=function(a){var y=this.naturalBounds;return Ri(0,0,y.width,y.height,a.x,a.y)},Et.Re=function(a){if(this.angle===0)return this.actualBounds.Re(a);var y=this.naturalBounds;y=le.allocAt(0,0,y.width,y.height);var x=this.transform,E=!1,b=Tt.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)))),Tt.free(b),le.free(y),E},Et.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.naturalBounds,E=!1,b=Tt.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)))),Tt.free(b),E},Et.Yc=function(a,y){if(y===void 0&&(y=this.transform,this.angle===0))return a.Yc(this.actualBounds);var x=this.naturalBounds,E=Tt.allocAt(0,0),b=Tt.allocAt(0,x.height),z=Tt.allocAt(x.width,x.height),tt=Tt.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=le.allocAt(0,0,x.width,x.height);var ot=Tt.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)))),Tt.free(ot),le.free(x),!rt&&(pe.us(a,E,b)||pe.us(a,b,z)||pe.us(a,z,tt)||pe.us(a,tt,E))&&(rt=!0)}return Tt.free(E),Tt.free(b),Tt.free(z),Tt.free(tt),rt},Et.ga=function(a,y){if(y===void 0&&(y=new Tt),a instanceof ri){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},Et.mi=function(a){a===void 0&&(a=new le);var y=this.naturalBounds,x=this.oe,E=Tt.allocAt(0,0).transform(x);return a.h(E.x,E.y,0,0),E.h(y.width,0).transform(x),Ti(a,E.x,E.y,0,0),E.h(y.width,y.height).transform(x),Ti(a,E.x,E.y,0,0),E.h(0,y.height).transform(x),Ti(a,E.x,E.y,0,0),Tt.free(E),a},Et.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},Et.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},Et.qs=function(a,y){return y===void 0&&(y=new Tt),y.assign(a),this.oe.Cd(y),y},Et.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},Et.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,pe.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=pe.Ff(0,0,E.width,E.height,tt,a,y,x,b),b.transform(z),x)},Le.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 ii;switch(zs(this,!0)){case Zn:tt=b=0,rt&&(y=a=1/0);break;case $n: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 cr: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()||te("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),Na(this,!1)}},Le.prototype.Wl=function(){},Le.prototype.Dd=function(){return!1},Le.prototype.arrange=function(a,y,x,E,b){this.Uk();var z=le.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 jo&&(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()||te("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(z,this.Ib),Ru(this,!1),le.free(z)},Et=Le.prototype,Et.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=Zn),y){case Zn:(x>E||z>b)&&(Na(a,!0),a.measure(x>E?E:x,z>b?b:z,0,0));break;case $n:Na(a,!0),a.measure(E,b,0,0);break;case $i:Na(a,!0),a.measure(E,z,0,0);break;case cr:Na(a,!0),a.measure(x,b,0,0)}}}Et.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(),Vn(a,y)||(x.oh(),this.Pn(x)))},Et.Pn=function(a){this.portId!==null&&(Zv(a,!0),a instanceof Li&&X1(a,this))},Et.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 ii&&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&&(ma(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&&(ma(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,Ht=vt.m12,re=vt.m22,ae=vt.dy,he,Ae=he=0;vt=he*Pt+Ae*Ft+Xt;var qe=he*Ht+Ae*re+ae;he=xt.width+ft,Ae=0;var Pi=he*Pt+Ae*Ft+Xt;he=he*Ht+Ae*re+ae,Ae=Math.min(vt,Pi);var Wi=Math.min(qe,he),Oi=Math.max(vt+0,Pi)-Ae,ui=Math.max(qe+0,he)-Wi;vt=Ae,qe=Wi,he=xt.width+ft,Ae=xt.height+ft,Pi=he*Pt+Ae*Ft+Xt,he=he*Ht+Ae*re+ae,Ae=Math.min(vt,Pi),Wi=Math.min(qe,he),Oi=Math.max(vt+Oi,Pi)-Ae,ui=Math.max(qe+ui,he)-Wi,vt=Ae,qe=Wi,he=0,Ae=xt.height+ft,Pi=he*Pt+Ae*Ft+Xt,he=he*Ht+Ae*re+ae,Ae=Math.min(vt,Pi),Wi=Math.min(qe,he),Oi=Math.max(vt+Oi,Pi)-Ae,ui=Math.max(qe+ui,he)-Wi,vt=Ae,qe=Wi,ft=y.viewportBounds,xt=ft.x,Pt=ft.y,vt=!(vt>ft.width+xt||xt>Oi+vt||qe>ft.height+Pt||Pt>ui+qe)}if(vt){if(vt=(this.l&256)!==0,a.clipInsteadOfFill&&(vt=!1),this instanceof jo&&(a.font=this.font),vt){if(qe=rt.se()?rt.naturalBounds:rt.actualBounds,Oi=Math.max(tt.x,qe.x),ui=Math.max(tt.y,qe.y),ft=Math.min(tt.right,qe.right)-Oi,xt=Math.min(tt.bottom,qe.bottom)-ui,Pt=this.tb,Pt!==null&&(Oi=Pt.x,ui=Pt.y,ft=Pt.width,xt=Pt.height),Oi>tt.width+tt.x||tt.x>qe.width+qe.x){x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b);return}a.save(),a.beginPath(),a.rect(Oi,ui,ft,xt),a.clip()}if(ut){if(!st.isVisible()){x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b);return}ot&&(qe=st.shadowOffset,a.Ev(qe.x*y.scale*this.scale*y.Mb,qe.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 ii)),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===ii.Auto||y.type===ii.Spot)&&y.Pb()!==a)}Et.Dv=function(){};function ul(a,y,x,E){ma(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;ma(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===ii.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 jo&&(y.font=a.font),y.yd=null;var tt=a.transform;z=a instanceof ii;var rt=a instanceof ii?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)}Et.$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"+io++,rt=a.Ud("clipPath",{id:z}),y=a.Ud("rect",{x:y,y:b,width:tt,height:x}),this instanceof ii&&(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=Gn(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()}}Et.hh=function(){},Et.lv=function(){this.Uc=!0},Et.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 ii?kh(this):!1;if(!(this instanceof ii&&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 ii)y.setAttributeNS(null,"transform","matrix("+E.m11+", "+E.m12+", "+E.m21+", "+E.m22+", "+E.dx+", "+E.dy+")");else if(this instanceof zr){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 ii))&&(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},Et.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 ma(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(re){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 Ht=a.diagram;Ht!==null&&x.yk===-1&&Hi(function(){Ht.redraw()},600)}}E?y.fillStyle=ut:y.strokeStyle=ut}}}Et.rg=function(a){if(a instanceof ii)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},Et.Ed=function(){if(!this.visible)return!1;var a=this.panel;return a!==null?a.Ed():!0},Et.If=function(){for(var a=this instanceof ii?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)))}Et.no=function(a,y,x,E,b){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=Tt.alloc();z.yi(y,x,E,b,ki),a.rotate(this.Kb,z.x,z.y),Tt.free(z)}},Et.v=function(a){if(!hl(this)){a===void 0&&(a=!1),Na(this,!0),Ru(this,!0);var y=this.panel;y===null||a||y.v()}},Et.Uj=function(){hl(this)||(Na(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 Li&&a.Bd(),y.$b())),Ru(a,!0)}}Et.Uk=function(){!(this.l&2048)&&(Rl(this,!0),Cl(this,!0))},Et.Wu=function(){Cl(this,!0)},Et.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===ii.Table?su(a,E.Fb(a.row),E.Eb(a.column),y):E!==null&&E.type===ii.Auto&&E.Pb()===a?Ja(a,$n,y):x===Dr?E!==null?E.type===ii.Spot&&E.Pb()===a?Ja(a,$n,y):(x=E.defaultStretch,x===Dr?Ja(a,Zn,y):Ja(a,x,y)):Ja(a,Zn,y):Ja(a,x,y)}function su(a,y,x,E){var b=a.stretch;if(b!==Dr)return Ja(a,b,E);var z=b=null;switch(y.stretch){case cr:z=!0;break;case $n:z=!0}switch(x.stretch){case $i:b=!0;break;case $n:b=!0}return y=a.panel.defaultStretch,b===null&&(b=y===$i||y===$n),z===null&&(z=y===cr||y===$n),b===!0&&z===!0?Ja(a,$n,E):b===!0?Ja(a,$i,E):z===!0?Ja(a,cr,E):Ja(a,Zn,E)}function Ja(a,y,x){if(x)return y;if(y===Zn||(x=a.desiredSize,x.w()))return Zn;if(a=a.angle,!isNaN(x.width))if(a!==90&&a!==270){if(y===$i)return Zn;if(y===$n)return cr}else{if(y===cr)return Zn;if(y===$n)return $i}if(!isNaN(x.height))if(a!==90&&a!==270){if(y===cr)return Zn;if(y===$n)return $i}else{if(y===$i)return Zn;if(y===$n)return cr}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 Na(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}Et.Gj=function(){this.svg=null},Et.wi=function(a){this.Me=a,this.svg!==null&&this.svg.remove()},Et.Av=function(){},Et.zv=function(a){return this.pa=a,As(this),!0},Et.mm=function(a,y){(this.pa.x!==a||this.pa.y!==y)&&(this.pa.h(a,y),this.Uk())},Et.kq=function(){return 0};function Xd(a){var y=a.part;if(y instanceof Li&&(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 ii?a instanceof Li?a.Bd():a.qm(a,function(x){Xd(x)}):Xd(a))}Et.bind=function(a,y,x,E){var b=null;return typeof a=="string"?b=new La(a,y,x,E):b=a,b.xd=this,a=this.ih(),a!==null&&v1(a)&&te("Cannot add a Binding to a template that has already been copied: "+b),this.localBindings===null&&(this.localBindings=new pn),this.localBindings.add(b),this},Et.set=function(a){return Object.assign(this,a),this},Et.Du=function(a){return av(this,a),this},Et.apply=function(a){return a(this),this},Et.nm=function(a){return Wd(this,a),this},Et.pz=function(){return this.ih()},Et.ih=function(){for(var a=this instanceof ii?this:this.panel;a!==null;){if(a.allBindings!==null)return a;a=a.panel}return null},Et.Jv=function(a){return a.xd=this,this.animationTriggers===null&&(this.animationTriggers=new _e),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),Be(E)||te('GraphObject.make invoked object builder "'+a+'", but it did not return an Object')):b=Xe.go[a]}if(E===null&&(b!=null&&b.constructor||te("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 $e&&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?te("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 jo)a.text=y;else if(a instanceof zr)a.figure=y;else if(a instanceof Ws)a.source=y;else if(a instanceof ii)y=Ql.I(y),y!==null&&(a.type=y);else if(a instanceof wo){var x=ar(wo,y);x!==null?a.type=x:te("Unknown Brush type as an argument to GraphObject.make: "+y)}else a instanceof Rn?(y=ar(Rn,y),y!==null&&(a.type=y)):a instanceof qr&&(y=ar(qr,y),y!==null&&(a.type=y));else if(y instanceof Le)a instanceof ii||te("A GraphObject can only be added to a Panel, not to: "+a),a.add(y);else if(y instanceof Ba){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 Ba?Fm(E,y):te("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+a)}else if(y instanceof We)typeof a.qb=="function"&&a.qb(y);else if(y instanceof Ia)a.type=y;else if(y instanceof La)a instanceof Le||a instanceof Ba?a.bind(y):te("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+a);else if(y instanceof Xl)a instanceof Le?a.Jv(y):te("An AnimationTrigger can only be applied to a GraphObject, not to: "+a);else if(y instanceof da)a instanceof Rn&&a.type===Rn.o?a.figures.add(y):te("A PathFigure can only be added to a Path Geometry, not to: "+a);else if(y instanceof qr)a instanceof da?a.segments.add(y):te("A PathSegment can only be added to a PathFigure, not to: "+a);else if(y instanceof na)a instanceof $e||a instanceof Fr?a.layout=y:te("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 Gi;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 Ba){y.row!==void 0?(b=y.row,(b==null||b===1/0||isNaN(b)||0>b)&&te("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)&&te("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+b),a.isRow=!1,a.index=b),b=new Gi;for(x in y)x!=="row"&&x!=="column"&&(b[x]=y[x]);Wd(a,b)}else Wd(a,y);else te('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}sn.Object.defineProperties(Le.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&&(Zr(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&&(Zr(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:Wt},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:Dr},set:function(a){var y=this.stretch;y!==a&&(Zr(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&&(Zr(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)&&Jn(a,"0 <= value <= 1",Le,"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(),Zr(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 Tt(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&&te("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 zr&&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 zr&&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 zr&&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:de},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(),Zr(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:kn},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(),Zr(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 Bi(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&&(Zr(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:Zn},set:function(a){this.reshapingBehavior!==a&&(Zr(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()&&te("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&&Jn(a,">= 0",Le,"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&&Jn(a,">= 1",Le,"columnSpan"),Zr(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&&Jn(a,">= 0",Le,"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&&Jn(a,">= 1",Le,"rowSpan"),Zr(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&&(Zr(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 Li||te("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:Vi},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&&Jn(a,">= 0",Le,"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&&Jn(a,">= 0",Le,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:Vi},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&&Jn(a,">= 0",Le,"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&&Jn(a,">= 0",Le,"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&&(Zr(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&&(Zr(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&&(Zr(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&&(Zr(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&&(Zr(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&&(Zr(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&&(Zr(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&&(Zr(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&&(Zr(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&&(Zr(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&&(Zr(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&&(Zr(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&&(Zr(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&&(Zr(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&&(Zr(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&&(Zr(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&&(Zr(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&&(Zr(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),Le.prototype.trigger=Le.prototype.Jv,Le.prototype.findBindingPanel=Le.prototype.ih,Le.prototype.findTemplateBinder=Le.prototype.pz,Le.prototype.setProperties=Le.prototype.nm,Le.prototype.apply=Le.prototype.apply,Le.prototype.attach=Le.prototype.Du,Le.prototype.set=Le.prototype.set,Le.prototype.isEnabledObject=Le.prototype.If,Le.prototype.isVisibleObject=Le.prototype.Ed,Le.prototype.isContainedBy=Le.prototype.rg,Le.prototype.getNearestIntersectionPoint=Le.prototype.rs,Le.prototype.getLocalPoint=Le.prototype.qs,Le.prototype.getDocumentScale=Le.prototype.Df,Le.prototype.getDocumentAngle=Le.prototype.li,Le.prototype.getDocumentBounds=Le.prototype.mi,Le.prototype.getDocumentPoint=Le.prototype.ga,Le.prototype.intersectsRect=Le.prototype.Yc,Le.prototype.containedInRect=Le.prototype.fh,Le.prototype.containsRect=Le.prototype.Re,Le.prototype.containsPoint=Le.prototype.ca,Le.prototype.raiseChanged=Le.prototype.g,Le.prototype.raiseChangedEvent=Le.prototype.cb,Le.prototype.addCopyProperty=Le.prototype.Vw;var Lf=null;Le.className="GraphObject",Lf=new _e,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(ii,ii.Auto,{isActionable:!0,enabledChanged:function(x,E){if(x instanceof ii){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(zr,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new ri(0,0,2.76142374915397,2.761423749153969),spot2:new ri(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 ii&&(x=E.fb("ButtonBorder"),x instanceof zr)){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 ii&&(x=E.fb("ButtonBorder"),x instanceof zr&&(x.fill=E._buttonFillNormal,x.stroke=E._buttonStrokeNormal))},y.actionDown=function(x,E){if(E.If()&&E instanceof ii&&E._buttonFillPressed!==null&&x.button===0){var b=E.fb("ButtonBorder");if(b instanceof zr){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 ii&&E._buttonFillPressed!==null&&x.button===0){var b=E.fb("ButtonBorder");if(b instanceof zr){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 ii&&E._buttonFillPressed!==null){var b=E.fb("ButtonBorder");if(b instanceof zr){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 ii&&E._buttonFillPressed!==null){var b=x.diagram;if(b.firstInput.button===0&&(b.currentTool.standardMouseOver(),a(x,E)&&(x=E.fb("ButtonBorder"),x instanceof zr))){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(zr,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Ze},new La("figure","isTreeExpanded",function(y,x){return x=x.panel,y?x._treeExpandedFigure:x._treeCollapsedFigure}).cp()),{visible:!1},new La("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,x){if(x=x.part,x instanceof lo&&(x=x.adornedPart),x instanceof Li){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(zr,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Ze},new La("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 lo&&(x=x.adornedPart),x instanceof Fr){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(lo,ii.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Tt(0,3),shadowBlur:5},El(zr,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new ri(0,0,4,6),spot2:new ri(1,1,-4,-4)}))}),bh("ContextMenu",function(){return El(lo,ii.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Tt(0,3),shadowBlur:5},new La("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 zr&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new ri(0,0,2,3),y.spot2=new ri(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(zr,{name:"ButtonIcon",strokeWidth:2},new La("geometryString","visible",function(E){return E?x._buttonExpandedFigure:x._buttonCollapsedFigure}).cp(y)));return a=x.fb("ButtonBorder"),a instanceof zr&&(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(zr,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:$n,geometryStretch:Yi,visible:!1},y!==""?new La("visible",y).Kx():[])),a.click=function(x,E){if(E instanceof ii){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 Bi(0,1,0,0)});var y=El(ii,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new Bi(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}),Le.None=Zn=new We(Le,"None",0),Le.Default=Dr=new We(Le,"Default",0),Le.Vertical=cr=new We(Le,"Vertical",4),Le.Horizontal=$i=new We(Le,"Horizontal",5),Le.Fill=$n=new We(Le,"Fill",3),Le.Uniform=Yi=new We(Le,"Uniform",1),Le.UniformToFill=$r=new We(Le,"UniformToFill",2),Le.FlipVertical=Vr=new We(Le,"FlipVertical",1),Le.FlipHorizontal=oo=new We(Le,"FlipHorizontal",2),Le.FlipBoth=ko=new We(Le,"FlipBoth",3),Le.make=El,Le.getBuilders=function(){var a=new _e,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},Le.defineBuilder=bh,Le.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 Le))return y&&E.set(y),E;te('GraphObject.build invoked object builder "'+a+'", but it did not return an Object')},Le.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=de,this.o=kn,this.hg=Dr,this.ob=this.Bi=1,this.Pf=Zn,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=Wt,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=Lo,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?Xe.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),Be(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},sn.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=io++,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+")")}Et=tl.prototype,Et.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)])},Et.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},Et.Se=function(a){this.addPath(this.path,this.rb,a||0)},Et.bezierCurveTo=function(a,y,x,E,b,z){this.path.push(["C",a,y,x,E,b,z])},Et.clearRect=function(){},Et.clip=function(){this.Yl.clipPath=!0},Et.closePath=function(){this.path.push(["z"])},Et.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},Et.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"+io++,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+")"},Et.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)}Et.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},pe.$(E,rt)&&pe.$(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)},Et.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),sv(this,this.Yl)},Et.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},Et.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)},Et.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))},Et.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])},Et.lineTo=function(a,y){this.path.push(["L",a,y])},Et.moveTo=function(a,y){this.path.push(["M",a,y])},Et.quadraticCurveTo=function(a,y,x,E){this.path.push(["Q",a,y,x,E])},Et.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"])},Et.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},Et.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())},Et.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]+")"}Et.scale=function(a,y){this.rb.scale(a,y)},Et.translate=function(a,y){this.rb.translate(a,y)},Et.transform=function(){},Et.yc=function(){},Et.stroke=function(){i1(this,this.Yl)},Et.jk=function(){this.clipInsteadOfFill||this.stroke()},Et.Ud=function(a,y,x){return this.Gv.Ud(a,y,x)},Et.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"+io++,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+")"}Et.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}Et.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}Et.js=function(a,y){this.Ct=!0,this.Yg=a,this.uj=y},Et.fs=function(){this.Ct=!1},Et.Vc=function(){},Et.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",$e.prototype.Cs=function(a){this.pj.contains("SVG")||this.bs("SVG",new Au(this,Xe.document));var y=new Au(this,Xe.document,!0);a===void 0&&(a=new Gi);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)},$e.prototype.makeSvg=$e.prototype.Cs,$e.prototype.av=function(a){return this.Cs(a)},$e.prototype.makeSVG=$e.prototype.av;function zl(a,y,x,E){this.ownerDocument=y=y===void 0?Xe.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},sn.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&&te("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 wi,this.isTemporary=!!x}Et=Jd.prototype,Et.Wx=function(a){this.Z.imageSmoothingEnabled=a},Et.arc=function(a,y,x,E,b,z){this.Z.arc(a,y,x,E,b,z)},Et.beginPath=function(){this.Z.beginPath()},Et.Se=function(){},Et.bezierCurveTo=function(a,y,x,E,b,z){this.Z.bezierCurveTo(a,y,x,E,b,z)},Et.clearRect=function(a,y,x,E){this.yc(),this.Z.clearRect(a,y,x,E)},Et.clip=function(){this.Z.clip()},Et.closePath=function(){this.Z.closePath()},Et.createLinearGradient=function(a,y,x,E){return this.Z.createLinearGradient(a,y,x,E)},Et.createPattern=function(a,y){return this.Z.createPattern(a,y)},Et.createRadialGradient=function(a,y,x,E,b,z){return this.Z.createRadialGradient(a,y,x,E,b,z)},Et.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)},Et.fill=function(a){this.Z.fill(a?"evenodd":"nonzero")},Et.fillRect=function(a,y,x,E){this.Z.fillRect(a,y,x,E)},Et.ox=function(a,y,x,E){this.Z.fillRect(a,y,x,E)},Et.fillText=function(a,y,x){this.Z.fillText(a,y,x)},Et.getImageData=function(a,y,x,E){return this.Z.getImageData(a,y,x,E)},Et.lineTo=function(a,y){this.Z.lineTo(a,y)},Et.measureText=function(a){return this.Z.measureText(a)},Et.moveTo=function(a,y){this.Z.moveTo(a,y)},Et.quadraticCurveTo=function(a,y,x,E){this.Z.quadraticCurveTo(a,y,x,E)},Et.rect=function(a,y,x,E){this.Z.rect(a,y,x,E)},Et.restore=function(){this.Z.restore()},Et.save=function(){this.yc(),this.Z.save()},Jd.prototype.rotate=function(a){this.El.rotate(57.2958*a,0,0)},Et=Jd.prototype,Et.setTransform=function(a,y,x,E,b,z){this.El.setTransform(a,y,x,E,b,z)},Et.scale=function(a,y){this.El.scale(a,y)},Et.translate=function(a,y){this.El.translate(a,y)},Et.stroke=function(){this.Z.stroke()},Et.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}},Et.yc=function(){var a=this.El;this.Z.setTransform(a.m11,a.m12,a.m21,a.m22,a.dx,a.dy)},Et.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)},Et.jk=function(){this.Hm||this.stroke()},Et.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},Et.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},Et.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(Ax),a.lineDashOffset=0)},Et.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},Et.Hs=function(){},sn.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),bi(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=lr,this.Lk=Qr):this.Lk=a===Al?this.Qd=ki:this.Qd=Vi,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},Et=wo.prototype,Et.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},Et.ka=function(){return Object.isFrozen(this)&&te("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},Et.qb=function(a){a.classType===wo&&(this.type=a)},Et.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+")"},Et.addColorStop=function(a,y){return this._isFrozen&&be(this),(typeof a!="number"||!isFinite(a)||1<a||0>a)&&Jn(a,"0 <= loc <= 1",wo,"addColorStop:loc"),this.we===null&&(this.we=new _e),this.we.add(a,y),this.na===Mh&&(this.type=oh),this.xe=null,this},Et.Vz=function(a,y){if(this._isFrozen&&be(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)}Et.Wy=function(a,y){if(this._isFrozen&&be(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)+")"}Et.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:te("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||te("Value for "+y+" must be a color string or a Brush, not "+a))}function gv(){mv=fa?new zl(null,void 0,{willReadFrequently:!0}).context:null}sn.Object.defineProperties(wo.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&be(this,a),this.na=a,this.start.Mc()&&(a===oh?this.start=lr:a===Al&&(this.start=ki)),this.end.Mc()&&(a===oh?this.end=Qr:a===Al&&(this.end=ki)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&be(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&be(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&be(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&be(this,a),0>a&&Jn(a,">= zero",wo,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&be(this,a),0>a&&Jn(a,">= zero",wo,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&be(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&be(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 We(wo,"Solid",0);var oh;wo.Linear=oh=new We(wo,"Linear",1);var Al;wo.Radial=Al=new We(wo,"Radial",2);var Nf;wo.Pattern=Nf=new We(wo,"Pattern",4);var Bf;wo.Lab=Bf=new We(wo,"Lab",5);var s1;wo.HSL=s1=new We(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 Ia(){this.xa="Base"}Ia.prototype.measure=function(){},Ia.prototype.Yz=function(a,y,x,E,b){a.measure(y,x,E,b)},Ia.prototype.arrange=function(){},Ia.prototype.Ly=function(a,y,x,E,b,z){a.arrange(y,x,E,b,z)},Ia.prototype.iA=function(a){a.Uj()},Ia.prototype.gc=function(){},sn.Object.defineProperties(Ia.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return ii}}}),Ia.prototype.remeasureObject=Ia.prototype.iA,Ia.prototype.arrangeElement=Ia.prototype.Ly,Ia.prototype.measureElement=Ia.prototype.Yz,Ia.className="PanelLayout";function mm(){this.xa="Base"}ke(mm,Ia),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 zr&&st.isGeometryPositioned&&(st=st.strokeWidth/2,vt-=st,xt-=st),Ti(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 zr&&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"}ke(vm,Ia),vm.prototype.measure=function(a,y,x,E,b,z,tt){var rt=E.length;y=oi(),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!==Zn&&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===$n||Xt===cr)&&(Ft=Math.max(x.height-xt-Pt,0)),xt=Ft+xt+Pt,Pt=ut.alignment,Pt.Xb()&&(Pt=a.defaultAlignment),Pt.sb()||(Pt=ki),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"}ke(ym,Ia),ym.prototype.measure=function(a,y,x,E,b,z){var tt=E.length;x=oi();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!==Zn&&ut!==cr)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,ei(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===$n||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=ki),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"}ke(Sm,Ia),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=le.allocAt(-st.left,-st.top,xt,Pt),Ht=le.allocAt(0,0,z,tt);vv(ot,Ht,!0),z=Ht.width,tt=Ht.height;for(var re=!0,ae=ah(a),he=0;he<rt;he++){var Ae=E[he];vt=y;var qe=x;if(Ae!==ot&&(Ae.visible||Ae===ae)){st=Ae.margin;var Pi=st.left,Wi=st.top;switch(xt=st.right+st.left,Pt=st.top+st.bottom,st=zs(Ae,!1),st){case $n:vt=z,qe=tt,Wi=Pi=Pt=xt=0;break;case $i:vt=z,Pi=xt=0;break;case cr:qe=tt,Wi=Pt=0}Ae.measure(vt,qe,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=ki);var Oi=Ae.alignmentFocus;if(Oi.Xb()&&(Oi=ki),qe=null,Ae instanceof ii&&Ae.$e!==""&&(qe=Ae.fb(Ae.$e),qe===Ae&&(qe=null)),Pi=Ht.x-Pi,Wi=Ht.y-Wi,qe!==null){for(Ae.arrange(0,0,vt.width,vt.height),vt=qe.actualBounds,vt=Tt.allocAt(vt.x+(Oi.x*vt.width-Oi.offsetX),vt.y+(Oi.y*vt.height-Oi.offsetY)),qe=qe.panel;qe!==Ae;)qe.transform.Ga(vt),qe=qe.panel;Pi+=st.x*z+st.offsetX-vt.x,Wi+=st.y*tt+st.offsetY-vt.y,Tt.free(vt)}else Pi+=st.x*z+st.offsetX-(Oi.x*vt.width+Oi.offsetX),Wi+=st.y*tt+st.offsetY-(Oi.y*vt.height+Oi.offsetY);re?(re=!1,b.h(Pi,Wi,xt,Pt)):Ti(b,Pi,Wi,xt,Pt)}}switch(re?b.assign(Xt):Ft?b.Uu(Ht.x,Ht.y,Ht.width,Ht.height):Ti(b,Xt.x,Xt.y,Xt.width,Xt.height),le.free(Xt),le.free(Ht),st=ot.stretch,st===Dr&&(st=zs(ot,!1)),st){case Zn:return;case $n:if(!isFinite(y)&&!isFinite(x))return;break;case $i:if(!isFinite(y))return;break;case cr: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,Ht=le.allocAt(-st.left,-st.top,xt,Pt),vv(ot,Ht,!0),z=Ht.width,tt=Ht.height,y=0;y<rt;y++)x=E[y],x===ot||!x.visible&&x!==ae||(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=ki),x=x.alignmentFocus,x.Xb()&&(x=ki),re?(re=!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)):Ti(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));re?b.assign(Xt):Ft?b.Uu(Ht.x,Ht.y,Ht.width,Ht.height):Ti(b,Xt.x,Xt.y,Xt.width,Xt.height),le.free(Ht)},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=le.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=ki);var Pt=ft.alignmentFocus;if(Pt.Xb()&&(Pt=ki),st=null,ft instanceof ii&&ft.$e!==""&&(st=ft.fb(ft.$e),st===ft&&(st=null)),st!==null){var Ft=st.actualBounds;for(Pt=Tt.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,Tt.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)}}le.free(tt)};function vv(a,y,x){var E=null;if(a instanceof ii&&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"}ke(xm,Ia),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 zr&&(Ft=ot,Pt=Ft.strokeWidth*Ft.scale);var Xt=Math.max(st.width+vt,0);st=Math.max(st.height+xt,0);var Ht=wv(ot),re=Ht.x*Xt+Ht.offsetX;Ht=Ht.y*st+Ht.offsetY;var ae=Pv(ot),he=ae.x*Xt+ae.offsetX;for(ae=ae.y*st+ae.offsetY,isFinite(y)&&(ut=Math.max(Math.abs(re-he)-Pt,0)),isFinite(x)&&(ft=Math.max(Math.abs(Ht-ae)-Pt,0)),Pt=zt.alloc(),Pt.h(0,0),a=ah(a),ae=0;ae<rt;ae++)Ht=E[ae],Ht===ot||!Ht.visible&&Ht!==a||(st=Ht.margin,Xt=st.right+st.left,re=st.top+st.bottom,Ht.measure(ut,ft,0,0),st=Ht.measuredBounds,Xt=Math.max(st.width+Xt,0),st=Math.max(st.height+re,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(Ht=wv(ot),ae=Pv(ot),rt=E=0,ae.x!==Ht.x&&ae.y!==Ht.y&&(E=Pt.width/Math.abs(ae.x-Ht.x),rt=Pt.height/Math.abs(ae.y-Ht.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(Ht.offsetX)+Math.abs(ae.offsetX)+Pt,rt+=Math.abs(Ht.offsetY)+Math.abs(ae.offsetY)+Pt,Ft=ot.stretch,Ft===Dr&&(Ft=zs(ot,!1)),Ft){case Zn:tt=z=0;break;case $n:isFinite(y)&&(E=y),isFinite(x)&&(rt=x);break;case $i:isFinite(y)&&(E=y),tt=0;break;case cr: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=le.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,Ti(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=ki),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&&(Ri(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 le(z.x,z.y,z.width,z.height))));le.free(z)};function wm(){this.xa="Base",this.name="Table"}ke(wm,Ia),wm.prototype.measure=function(a,y,x,E,b){for(var z=E.length,tt=oi(),rt=oi(),ot=0;ot<z;ot++){var st=E[ot],ut=st instanceof ii?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===ii.TableRow?Pt.row=st.row:ut.type===ii.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 Ht=tt[Xt];Ht.visible&&(Na(Ht,!0),Ru(Ht,!0),Ft[Ht.row]||(Ft[Ht.row]=[]),Ft[Ht.row][Ht.column]||(Ft[Ht.row][Ht.column]=[]),Ft[Ht.row][Ht.column].push(Ht))}gi(tt);var re=oi(),ae=oi(),he=oi(),Ae={count:0},qe={count:0},Pi=y,Wi=x,Oi=a.rowDefs,ui=a.colDefs,On=null;z=Oi.length;for(var kr=0;kr<z;kr++)On=Oi[kr],On!==void 0&&(On.actual=0);z=ui.length;for(var Cr=0;Cr<z;Cr++)On=ui[Cr],On!==void 0&&(On.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),ba=0;ba<ho;ba++)if(Ft[ba]){Io=Ft[ba].length;var cu=a.Fb(ba);cu.actual=0;for(var ws=cu.oc=0;ws<Io;ws++)if(Ft[ba][ws]){var Wh=a.Eb(ws);re[ws]===void 0&&(Wh.actual=0,Wh.oc=0,re[ws]=!0);for(var gl=Ft[ba][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&&(ba<Ka||ws<xs||ae.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===Zn||Mu||ba<Ka||ws<xs||(Ae[ws]!==void 0||Ps!==$n&&Ps!==$i||(Ae[ws]=-1,Ae.count++),qe[ba]!==void 0||Ps!==$n&&Ps!==cr||(qe[ba]=-1,qe.count++),he.push(Xs)),Xs.measure(1/0,1/0,0,0),!(ba<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===Zn||Ps===$i)){On=a.Fb(ba);var Ed=On.Wc();Ha=Math.max(ol-On.actual,0),Ha+Ed>Wi&&(Ha=Math.max(Wi-Ed,0));var G0=On.oa===0;On.oc=On.oc+Ha,On.actual=On.oa+Ha,Wi=Math.max(Wi-(Ha+(G0?Ed:0)),0)}if(Xs.columnSpan===1&&(Ps===Zn||Ps===cr)){On=a.Eb(ws);var Ip=On.Wc();Ha=Math.max(oc-On.actual,0),Ha+Ip>Pi&&(Ha=Math.max(Pi-Ip,0));var Gy=On.oa===0;On.oc=On.oc+Ha,On.actual=On.oa+Ha,Pi=Math.max(Pi-(Ha+(Gy?Ip:0)),0)}Cd&&Xs.Uj()}}}}}gi(re);var Xu=0,uh=0;z=a.columnCount;for(var _c=0;_c<z;_c++){var Ad=ui[_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=Oi[ig];Ld!==void 0&&(uh+=isNaN(Ld.Hc)?Ld.oc:Ld.Hc,Ld.oc!==0&&(uh+=Ld.Wc()))}Pi=Math.max(y-Xu,0);var _u=Wi=Math.max(x-uh,0),Hh=Pi;z=he.length;for(var Js=0;Js<z;Js++){var ku=he[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,qe[ku.row]=K0.oc===0&&qe[ku.row]!==void 0?Math.max(rg.height+Fu,qe[ku.row]):null}var Jc=0,og=0,iu;for(iu in qe)iu!=="count"&&(Jc+=qe[iu]);for(iu in Ae)iu!=="count"&&(og+=Ae[iu]);for(var ts=zt.alloc(),Rp=0;Rp<z;Rp++){var Ts=he[Rp];if(Ts.visible||Ts===jh){var Ma=a.Fb(Ts.row),Os=a.Eb(Ts.column),dh=0;isFinite(Os.width)?dh=Os.width:(isFinite(Pi)&&Ae[Ts.column]!==null?og===0?dh=Os.actual+Pi:dh=Ae[Ts.column]/og*Hh:Ae[Ts.column]!==null?dh=Pi:dh=Os.actual||Pi,dh=Math.max(0,dh-Os.Wc()));var Zh=0;switch(isFinite(Ma.height)?Zh=Ma.height:(isFinite(Wi)&&qe[Ts.row]!==null?Jc===0?Zh=Ma.actual+Wi:Zh=qe[Ts.row]/Jc*_u:qe[Ts.row]!==null?Zh=Wi:Zh=Ma.actual||Wi,Zh=Math.max(0,Zh-Ma.Wc())),ts.h(Math.max(Os.minimum,Math.min(dh,Os.maximum)),Math.max(Ma.minimum,Math.min(Zh,Ma.maximum))),Ps=su(Ts,Ma,Os,!1),Ps){case $i:ts.height=Math.max(ts.height,Ma.actual+Wi);break;case cr:ts.width=Math.max(ts.width,Os.actual+Pi)}var sc=Ts.margin,Ky=sc.right+sc.left,Y0=sc.top+sc.bottom;Ts.Uj(),Ts.measure(ts.width,ts.height,Os.minimum,Ma.minimum);var ag=Ts.measuredBounds,lc=Math.max(ag.width+Ky,0),Qc=Math.max(ag.height+Y0,0);isFinite(Pi)&&(lc=Math.min(lc,ts.width)),isFinite(Wi)&&(Qc=Math.min(Qc,ts.height));var Qs=0;Qs=Ma.actual,Ma.actual=Math.max(Ma.actual,Qc),Ma.oc=Math.max(Ma.oc,Qc),Ha=Ma.actual-Qs,Wi=Math.max(Wi-Ha,0),qe[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,Pi=Math.max(Pi-Ha,0),Ae[Ts.column]===null&&(Hh=Math.max(Hh-Ha,0))}}gi(he);var ch=zt.alloc(),pu=oi(),Fl=oi();if(z=ae.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 va=ae[lg];if(va.visible||va===jh){var ru=a.Fb(va.row),Vl=a.Eb(va.column);switch(ts.h(Math.max(Vl.minimum,Math.min(y,Vl.maximum)),Math.max(ru.minimum,Math.min(x,ru.maximum))),Ps=su(va,ru,Vl,!1),Ps){case $n: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 cr: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<va.rowSpan&&!(va.row+Vh>=a.rowCount);Vh++)On=a.Fb(va.row+Vh),Ha=0,Ha=Ps===$n||Ps===cr?Math.max(On.minimum,pu[va.row+Vh]===0?On.maximum:Math.min(pu[va.row+Vh],On.maximum)):Math.max(On.minimum,isNaN(On.Hc)?On.maximum:Math.min(On.Hc,On.maximum)),ch.height+=Ha,al+=On.minimum;for(var Gl=1;Gl<va.columnSpan&&!(va.column+Gl>=a.columnCount);Gl++)On=a.Eb(va.column+Gl),Ha=0,Ha=Ps===$n||Ps===$i?Math.max(On.minimum,Fl[va.column+Gl]===0?On.maximum:Math.min(Fl[va.column+Gl],On.maximum)):Math.max(On.minimum,isNaN(On.Hc)?On.maximum:Math.min(On.Hc,On.maximum)),ch.width+=Ha,X0+=On.minimum;ts.width+=ch.width,ts.height+=ch.height;var ug=va.margin,kd=ug.right+ug.left,zp=ug.top+ug.bottom;va.measure(ts.width,ts.height,X0,al);for(var hg=va.measuredBounds,Du=Math.max(hg.width+kd,0),uc=Math.max(hg.height+zp,0),Fd=0,dg=0;dg<va.rowSpan&&!(va.row+dg>=a.rowCount);dg++)On=a.Fb(va.row+dg),Fd+=On.total||0;if(Fd<uc){var Gh=uc-Fd,Ju=uc-Fd;if(va.spanAllocation!==null)for(var Kh=va.spanAllocation,fh=0;fh<va.rowSpan&&!(0>=Gh)&&!(va.row+fh>=a.rowCount);fh++){On=a.Fb(va.row+fh);var Yh=On.oa||0,hc=Kh(va,On,Ju);On.actual=Math.min(On.maximum,Yh+hc),On.oa!==Yh&&(Gh-=On.oa-Yh)}for(;0<Gh;){var mu=On.oa||0;if(isNaN(On.height)&&On.maximum>mu&&(On.actual=Math.min(On.maximum,mu+Gh),On.oa!==mu&&(Gh-=On.oa-mu)),On.index===0)break;On=a.Fb(On.index-1)}}for(var qc=0,Uh=0;Uh<va.columnSpan&&!(va.column+Uh>=a.columnCount);Uh++)On=a.Eb(va.column+Uh),qc+=On.total||0;if(qc<Du){var $c=Du-qc,Yy=Du-qc;if(va.spanAllocation!==null)for(var gh=va.spanAllocation,dc=0;dc<va.columnSpan&&!(0>=$c)&&!(va.column+dc>=a.columnCount);dc++){On=a.Eb(va.column+dc);var jp=On.oa||0,Uy=gh(va,On,Yy);On.actual=Math.min(On.maximum,jp+Uy),On.oa!==jp&&($c-=On.oa-jp)}for(;0<$c;){var _0=On.oa||0;if(isNaN(On.width)&&On.maximum>_0&&(On.actual=Math.min(On.maximum,_0+$c),On.oa!==_0&&($c-=On.oa-_0)),On.index===0)break;On=a.Eb(On.index-1)}}}}gi(ae),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++)ui[Q0]!==void 0&&(On=a.Eb(Q0),isFinite(On.width)?(Wp+=On.width,Wp+=On.Wc()):Dm(On)===qg?(Wp+=On.oa,Wp+=On.Wc()):On.oa!==0&&(Xu+=On.oa,Xu+=On.Wc()));isFinite(J0.width)?tf=Math.min(J0.width,Sx.width):tf=Ps!==Zn&&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++)ui[q0]!==void 0&&(On=a.Eb(q0),isFinite(On.width)||Dm(On)===qg||(On.actual=On.oa*aw),On.position=b.width,On.oa!==0&&(b.width+=On.oa,b.width+=On.Wc()));z=a.rowCount;for(var $0=0;$0<z;$0++)Oi[$0]!==void 0&&(On=a.Fb($0),isFinite(On.height)?(Hp+=On.height,Hp+=On.Wc()):Dm(On)===qg?(Hp+=On.oa,Hp+=On.Wc()):On.oa!==0&&(uh+=On.oa,uh+=On.Wc()));isFinite(J0.height)?ef=Math.min(J0.height,Sx.height):ef=Ps!==Zn&&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++)Oi[tv]!==void 0&&(On=a.Fb(tv),isFinite(On.height)||Dm(On)===qg||(On.actual=On.oa*sw),On.position=b.height,On.oa!==0&&(b.height+=On.oa,b.height+=On.Wc()));z=rt.length;for(var Xy=0;Xy<z;Xy++){var Zp=rt[Xy],_y=0,Jy=0;Zp.type===ii.TableRow?(_y=b.width,On=a.Fb(Zp.row),Jy=On.actual):(On=a.Eb(Zp.column),_y=On.actual,Jy=b.height),Zp.measuredBounds.h(0,0,_y,Jy),Na(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 Ht=0;Ht<y.length;Ht++){var re=y[Ht];if(re instanceof ii&&re.visible&&kh(re)){if(re.type===ii.TableRow){rt=a.Fb(re.row);var ae=a.Eb(Xt)}else rt=a.Fb(Ft),ae=a.Eb(re.column);ot=rt.position+ft+b,rt.oa!==0&&(ot+=rt.Io(Math.max(Ft,xt))),rt=ae.position+vt+z,ae.oa!==0&&(rt+=ae.Io(Math.max(Xt,Pt))),ae=re.measuredBounds,re.Uk(),re.actualBounds.ka();var he=re.actualBounds,Ae=le.allocAt(he.x,he.y,he.width,he.height);he.x=re.type===ii.TableRow?z:rt,he.y=re.type===ii.TableColumn?b:ot,he.width=ae.width,he.height=ae.height,re.actualBounds.freeze(),Ru(re,!1),Vn(Ae,he)||ut===null||(ut.oh(),re.Pn(ut)),le.free(Ae)}}for(Ht=zt.alloc(),re=0;re<st;re++)if(tt[re]){for(ut=tt[re].length,ae=a.Fb(re),ot=ae.position+ft+b,ae.oa!==0&&(ot+=ae.Io(Math.max(Ft,xt))),he=0;he<ut;he++)if(tt[re][he]){Ae=a.Eb(he),rt=Ae.position+vt+z,Ae.oa!==0&&(rt+=Ae.Io(Math.max(Xt,Pt)));for(var qe=tt[re][he],Pi=qe.length,Wi=0;Wi<Pi;Wi++){var Oi=qe[Wi],ui=Oi.measuredBounds;Ht.h(0,0);for(var On=1;On<Oi.rowSpan&&!(re+On>=a.rowCount);On++){var kr=a.Fb(re+On);kr.oa!==0&&(Ht.height+=kr.total)}for(On=1;On<Oi.columnSpan&&!(he+On>=a.columnCount);On++)kr=a.Eb(he+On),kr.oa!==0&&(Ht.width+=kr.total);var Cr=Ae.oa+Ht.width,ho=ae.oa+Ht.height;On=rt,kr=ot;var Io=Cr,Wa=ho,Ka=rt,xs=ot,Ha=Cr,jh=ho;rt+Cr>x.width&&(Ha=Math.max(x.width-rt,0)),ot+ho>x.height&&(jh=Math.max(x.height-ot,0));var ba=Oi.alignment;if(ba.Xb()){ba=a.defaultAlignment,ba.sb()||(ba=ki);var cu=ba.x,ws=ba.y,Wh=ba.offsetX;ba=ba.offsetY;var gl=Ae.alignment,Zl=ae.alignment;gl.sb()&&(cu=gl.x,Wh=gl.offsetX),Zl.sb()&&(ws=Zl.y,ba=Zl.offsetY)}else cu=ba.x,ws=ba.y,Wh=ba.offsetX,ba=ba.offsetY;(isNaN(cu)||isNaN(ws))&&(ws=cu=.5,ba=Wh=0),gl=ui.width,Zl=ui.height;var il=Oi.margin,Xs=il.left+il.right,Cd=il.top+il.bottom,fu=su(Oi,ae,Ae,!1);!isNaN(Oi.desiredSize.width)||fu!==$n&&fu!==$i||(gl=Math.max(Cr-Xs,0)),!isNaN(Oi.desiredSize.height)||fu!==$n&&fu!==cr||(Zl=Math.max(ho-Cd,0)),Cr=Oi.maxSize,ho=Oi.minSize,gl=Math.min(Cr.width,gl),Zl=Math.min(Cr.height,Zl),gl=Math.max(ho.width,gl),Zl=Math.max(ho.height,Zl),Cr=Zl+Cd,On+=Io*cu-(gl+Xs)*cu+Wh+il.left,kr+=Wa*ws-Cr*ws+ba+il.top,Oi.visible&&(Ri(Ka,xs,Ha,jh,On,kr,ui.width,ui.height)?Oi.arrange(On,kr,gl,Zl):Oi.arrange(On,kr,gl,Zl,new le(Ka,xs,Ha,jh)))}}}for(zt.free(Ht),a=0;a<E;a++)x=y[a],z=x instanceof ii?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"}ke(Pm,Ia),Pm.prototype.measure=function(){},Pm.prototype.arrange=function(){};function Cm(){this.xa="Base"}ke(Cm,Ia),Cm.prototype.measure=function(){},Cm.prototype.arrange=function(){};function Em(){this.xa="Base"}ke(Em,Ia),Em.prototype.measure=function(a,y,x,E,b,z,tt){1<E.length&&te("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&&(Na(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=ki),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"}ke(_g,Ia),_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 Ht=Pt[Xt],re=[];if(xt.push(re),Ht.visible){var ae=Ht.interval;if(!(0>ae)){Ht=Sv(Ht.figure);for(var he=0;he<Ft;he++)if(he!==Xt){var Ae=Pt[he];Ae.visible&&Sv(Ae.figure)===Ht&&(Ae=Ae.interval,Ae>ae&&re.push(Ae))}}}}for(Pt=a.O.s,Ft=Pt.length,Xt=0;Xt<Ft;Xt++){var qe=Pt[Xt];if(qe.visible&&(re=qe.interval||1,Ht=Math.abs(re),!(2>b*Ht*x))){if(ae=qe.segmentIndex,(!isFinite(ae)||isNaN(ae))&&(ae=0),0>ae&&(ae=Ht-Math.min(-ae,Ht)),ae=Math.round(ae%Ht),Ht=qe.opacity,he=1,Ht!==1){if(Ht===0)continue;he=y.globalAlpha,y.globalAlpha=he*Ht}Ae=xt[Xt];var Pi=!1,Wi=qe.strokeDashArray;if(Wi!==null&&(Pi=!0,y.js(Wi,qe.strokeDashOffset)),qe.figure==="LineV"&&qe.stroke!==null&&0<qe.strokeWidth){for(y.lineWidth=qe.strokeWidth,ma(a,y,qe.stroke,!1,!1,z,tt),y.beginPath(),Wi=qe=Math.floor((vt-b)/b);Wi<=qe+st;Wi++){var Oi=Wi*b+vt;0<=Oi&&Oi<=rt&&Am(Wi,re,ae,Ae)&&(y.moveTo(Oi,0),y.lineTo(Oi,ot))}y.stroke(),y.Se()}else if(qe.figure==="LineH"&&qe.stroke!==null&&0<qe.strokeWidth){for(y.lineWidth=qe.strokeWidth,ma(a,y,qe.stroke,!1,!1,z,tt),y.beginPath(),Wi=qe=Math.floor((ft-E)/E);Wi<=qe+ut;Wi++)Oi=Wi*E+ft,0<=Oi&&Oi<=ot&&Am(Wi,re,ae,Ae)&&(y.moveTo(0,Oi),y.lineTo(rt,Oi));y.stroke(),y.Se()}else if(qe.figure==="BarV"&&qe.fill!==null)for(ma(a,y,qe.fill,!0,!1,z,tt),qe=qe.width,isNaN(qe)&&(qe=b),Oi=Wi=Math.floor((vt-b)/b);Oi<=Wi+st;Oi++){var ui=Oi*b+vt;0<=ui+qe&&ui<=rt&&Am(Oi,re,ae,Ae)&&y.fillRect(ui,0,qe,ot)}else if(qe.figure==="BarH"&&qe.fill!==null)for(ma(a,y,qe.fill,!0,!1,z,tt),qe=qe.height,isNaN(qe)&&(qe=E),Oi=Wi=Math.floor((ft-E)/E);Oi<=Wi+ut;Oi++)ui=Oi*E+ft,0<=ui+qe&&ui<=ot&&Am(Oi,re,ae,Ae)&&y.fillRect(0,ui,rt,qe);Pi&&y.fs(),Ht!==1&&(y.globalAlpha=he)}}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"}ke(Lm,Ia),Lm.prototype.measure=function(a,y,x,E,b){var z=E.length;if(a instanceof lo||a instanceof hi){var tt=null,rt=null;if(a instanceof hi&&(tt=a),a instanceof lo&&(rt=a,tt=rt.adornedPart,a.j===null&&(a.j=[])),tt instanceof hi){var ot=tt;if(z===0)ei(a.naturalBounds,0,0),a.measuredBounds.h(0,0,0,0);else{var st=a instanceof lo?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=wi.alloc();for(var Ft=Tt.alloc(),Xt=Tt.alloc(),Ht=0;Ht<z;Ht++){var re=E[Ht];if(re!==st)if(re.isPanelMain&&re instanceof zr){l1(a,rt,vt,re);var ae=re.measuredBounds;x.ed(ae),xt.push(ae)}else if(2>ft)re.measure(1/0,1/0,0,0),ae=re.measuredBounds,x.ed(ae),xt.push(ae);else{var he=re.segmentIndex,Ae=re.segmentFraction,qe=re.alignmentFocus;qe.Mc()&&(qe=ki);var Pi=re.segmentOrientation,Wi=re.segmentOffset;if(isNaN(he)){var Oi=ot.ua;ae=oi(),Oi.Qu(Ae,ae);var ui=Tt.allocAt(ae[0],ae[1]);if(ui.add(ot.i(0)),Oi.type===Rn.j?ui.offset(-Oi.startX,-Oi.startY):(Oi=Oi.figures.first(),Oi!==null&&ui.offset(-Oi.startX,-Oi.startY)),Oi=ae[2],Pi!==ks){var On=ot.computeAngle(re,Pi,Oi);re.Kb=On}On=ui.x-y.x;var kr=ui.y-y.y;Tt.free(ui),gi(ae)}else if(he<-ft||he>=ft)ae=Tt.alloc(),ot.vg(),ot.computeMidPoint(ae),Oi=ot.midAngle,Pi!==ks&&(On=ot.computeAngle(re,Pi,Oi),re.Kb=On),On=ae.x-y.x,kr=ae.y-y.y,Tt.free(ae);else{if(On=0,0<=he?(kr=ut.M(he),ae=he<ft-1?ut.M(he+1):kr):(On=ft+he,kr=ut.M(On),ae=0<On?ut.M(On-1):kr),kr.Xa(ae)){0<=he?(Oi=0<he?ut.M(he-1):kr,On=he<ft-2?ut.M(he+2):ae):(Oi=On<ft-1?ut.M(On+1):kr,On=1<On?ut.M(On-2):ae),ui=Oi.Bf(kr);var Cr=ae.Bf(On);Oi=ui>Cr+10?0<=he?Oi.ab(kr):kr.ab(Oi):Cr>ui+10?0<=he?ae.ab(On):On.ab(ae):0<=he?Oi.ab(On):On.ab(Oi)}else Oi=0<=he?kr.ab(ae):ae.ab(kr);Pi!==ks&&(On=ot.computeAngle(re,Pi,Oi),re.Kb=On),On=kr.x+(ae.x-kr.x)*Ae-y.x,kr=kr.y+(ae.y-kr.y)*Ae-y.y}re.measure(1/0,1/0,0,0),ae=re.measuredBounds,ui=re.naturalBounds;var ho=0;re instanceof zr&&(ho=re.strokeWidth),Cr=ui.width+ho;var Io=ui.height+ho;Pt.reset(),Pt.translate(-ae.x,-ae.y),Pt.scale(re.scale,re.scale),Pt.rotate(Pi===ks?re.angle:Oi,Cr/2,Io/2),Pi!==lp&&Pi!==hp||Pt.rotate(90,Cr/2,Io/2),Pi!==up&&Pi!==dp||Pt.rotate(-90,Cr/2,Io/2),Pi===n0&&(45<Oi&&135>Oi||225<Oi&&315>Oi)&&Pt.rotate(-Oi,Cr/2,Io/2),ui=new le(0,0,Cr,Io),Ft.xi(ui,qe),Pt.Ga(Ft),qe=-Ft.x+ho/2*re.scale,re=-Ft.y+ho/2*re.scale,Xt.assign(Wi),ho=isNaN(Wi.x);var Wa=isNaN(Wi.y);if(ho||Wa){Cr=Cr/2+3,Io=Io/2+3;var Ka=45<=Oi&&135>=Oi,xs=225<=Oi&&315>=Oi;Pi===ks&&(Ka||xs)?(Xt.x=Wa?Cr:Wi.y,Xt.y=ho?Io:Wi.x,Ka?0<=he||isNaN(he)&&.5>Ae||!ho||(Xt.y=-Io):xs&&((0<=he||isNaN(he)&&.5>Ae)&&ho&&(Xt.y=-Io),Wa&&(Xt.x=-Cr))):(ho&&(Xt.x=0<=he||isNaN(he)&&.5>Ae?Cr:-Cr),Wa&&(Xt.y=-Io),Xt.rotate(Oi))}else Xt.rotate(Oi);On+=Xt.x,kr+=Xt.y,ui.set(ae),ui.h(On+qe,kr+re,ae.width,ae.height),xt.push(ui),x.ed(ui)}}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),ei(b,x.width||0,x.height||0),wi.free(Pt),Tt.free(Ft),Tt.free(Xt)}}}},Lm.prototype.arrange=function(a,y){var x=y.length;if(a instanceof lo||a instanceof hi){var E=a,b=null;a instanceof lo&&(b=a,E=b.adornedPart);var z=a instanceof lo?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 hi)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=oi();xt.Qu(ot,Pt);var Ft=Tt.allocAt(Pt[0],Pt[1]);Ft.add(ft.i(0)),xt.type===Rn.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;Tt.free(Ft),gi(Pt)}else if(rt<-x||rt>=x)Pt=Tt.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,Tt.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 Ht=xt.Bf(Pt),re=Xt.Bf(Ft);xt=Ht>re+10?0<=rt?xt.ab(Pt):Pt.ab(xt):re>Ht+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 Tt(ft,Xt);else{vt.Mc()&&(vt=ki),Pt=wi.alloc(),Pt.reset(),Pt.scale(tt.scale,tt.scale),Pt.rotate(tt.angle,0,0);var ae=tt.naturalBounds;Ft=le.allocAt(0,0,ae.width,ae.height),Ht=Tt.alloc(),Ht.xi(Ft,vt),Pt.Ga(Ht),vt=-Ht.x,re=-Ht.y;var he=ae.width,Ae=ae.height;ae=Tt.alloc(),ae.assign(ut);var qe=isNaN(ut.x),Pi=isNaN(ut.y);if(qe||Pi){he=he/2+3,Ae=Ae/2+3;var Wi=45<=xt&&135>=xt,Oi=225<=xt&&315>=xt;st===ks&&(Wi||Oi)?(ae.x=Pi?he:ut.y,ae.y=qe?Ae:ut.x,Wi?0<=rt||isNaN(rt)&&.5>ot||!qe||(ae.y=-Ae):Oi&&((0<=rt||isNaN(rt)&&.5>ot)&&qe&&(ae.y=-Ae),Pi&&(ae.x=-he))):(qe&&(ae.x=0<=rt||isNaN(rt)&&.5>ot?he:-he),Pi&&(ae.y=-Ae),ae.rotate(xt))}else ae.rotate(xt);ft+=ae.x,Xt+=ae.y,Pt.pp(Ft),vt+=Ft.x,re+=Ft.y,rt=Tt.allocAt(ft+vt,Xt+re),tt.move(rt),Tt.free(rt),Tt.free(ae),Tt.free(Ht),le.free(Ft),wi.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),Tt.free(E)}};function l1(a,y,x,E){if(hl(E)!==!1){var b=E.strokeWidth;b===0&&a instanceof lo&&a.type===ii.Link&&a.adornedObject instanceof zr&&(b=a.adornedObject.strokeWidth),b*=E.Ca,a instanceof hi&&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 lo&&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),Na(E,!1)}}function Jg(){this.xa="Base"}ke(Jg,Ia),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 le(-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,Ht=xt.flattenedTotalLength,re=Ft.length,ae=0,he=0,Ae=oi(),qe=0;qe<re;qe++){var Pi=Ft[qe],Wi=[];he=ae=0;for(var Oi=Pi.length,ui=0;ui<Oi;ui+=2){var On=Pi[ui],kr=Pi[ui+1];if(ui!==0){var Cr=180*Math.atan2(kr-he,On-ae)/Math.PI;0>Cr&&(Cr+=360),Wi.push(Cr)}ae=On,he=kr}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 ba=0;ba<Wa;ba++)if(ba!==Ka){var cu=Io[ba];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=Ht;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*Ht/a.graduatedRange&&rl.graduatedSkip===null)){var Xc=Xt[0][0],Mu=0,_s=0;Xs=Ht*rl.graduatedStart-1e-4,Cd=Ht*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 jo&&!rl.graduatedSkip(ol,rl)||rl instanceof zr&&!rl.graduatedSkip(ol,rl))&&(il=(ol-a.graduatedMin)*Ht/a.graduatedRange,il>Ht&&(il=Ht),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 Tt(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]:pe.$(Js[0],Js[Js.length-2])&&pe.$(Js[1],Js[Js.length-1])&&(Fu=ac[ac.length-1]):.5<hh&&(_s+1<ac.length?Fu=ac[_s+1]:pe.$(Js[0],Js[Js.length-2])&&pe.$(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 jo){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 Ma=E[Ts],Os=ts[Ts];if(Ma.visible&&Ma!==rt&&Os.length!==0){if(Ma instanceof zr){var dh=a,Zh=b,sc=Ma.alignmentFocus;sc.Mc()&&(sc=lr);var Ky=Ma.angle;Ma.Kb=0,Ma.measure(1/0,1/0,0,0),Ma.Kb=Ky;var Y0=Ma.measuredBounds,ag=Y0.width,lc=Y0.height,Qc=le.allocAt(0,0,ag,lc),Qs=Tt.alloc();Qs.xi(Qc,sc),le.free(Qc);for(var ch=-Qs.x,pu=-Qs.y,Fl=new le,bd=Os.length,sg=0;sg<bd;sg++)for(var Md=Os[sg],U0=Md.$l.x,lg=Md.$l.y,va=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(va+Ma.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(-va-Ma.angle)}Tt.free(Qs),dh.graduatedBounds!==null&&dh.graduatedBounds.push(Fl),Ti(Zh,Fl.x,Fl.y,Fl.width,Fl.height)}else if(Ma instanceof jo){var Vl=a,X0=b;Vl.temporaryTextBlock===null&&(Vl.temporaryTextBlock=new jo);var al=Vl.temporaryTextBlock;C1(al,Ma);var Vh=Ma.alignmentFocus;Vh.Mc()&&(Vh=lr);for(var Gl=Ma.segmentOrientation,ug=Ma.segmentOffset,kd=new le,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=Ma.angle,Gl!==ks&&(Fd=Gl===sp||Gl===e0?Du+Ma.angle:Du,uc=hi.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=wi.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=le.allocAt(0,0,Yh,hc),Uh=Tt.alloc();Uh.xi(qc,Vh),mu.Ga(Uh);var $c=-Uh.x,Yy=-Uh.y,gh=Tt.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 le(zp,hg,Kh.width,Kh.height),jp=new le(Kh.x,Kh.y,Kh.width,Kh.height),Uy=new le(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),Tt.free(gh),Tt.free(Uh),le.free(qc),wi.free(mu)}Vl.graduatedBounds!==null&&Vl.graduatedBounds.push(kd),Ti(X0,kd.x,kd.y,kd.width,kd.height)}Na(Ma,!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 zr){if(!(2>a.graduatedTickUnit*vt.interval*z.geometry.flattenedTotalLength/a.graduatedRange*tt&&vt.graduatedSkip===null)){var Ft=vt.measuredBounds,Xt=vt.strokeWidth*vt.scale,Ht=vt.alignmentFocus;Ht.Mc()&&(Ht=lr);for(var re=0;re<Pt;re++){var ae=xt[re].$l,he=xt[re].angle,Ae=Ht,qe=vt.Ab;qe.reset(),qe.translate(ae.x+rt.x,ae.y+rt.y),qe.rotate(he+vt.angle,0,0),qe.translate(-Ft.width*Ae.x+Ae.offsetX+Xt/2,-Ft.height*Ae.y+Ae.offsetY+Xt/2),qe.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 jo)for(a.temporaryTextBlock===null&&(a.temporaryTextBlock=new jo),Ft=a.temporaryTextBlock,C1(Ft,vt),Xt=0;Xt<Pt;Xt++)Ht=xt[Xt],Ht.actualBounds&&Ht.measuredBounds&&Ht.naturalBounds&&(Ft.ec=Ht.text||"",Ft.Kb=Ht.Sz||0,Ft.Gc=Ht.lineCount||0,re=Ht.lines,re!==void 0&&(Ft.Cb=re[0],Ft.Ih=re[1],Ft.df=re[2],Ft.Le=re[3],Ft.Qc=re[4],Ft.Qb=re[5],Ft.ze=re[6]),Ht.naturalBounds&&(Ft.dc=Ht.naturalBounds),Ht.actualBounds&&(re=Ht.actualBounds,Ft.arrange(re.x,re.y,re.width,re.height)),re=Ht.actualBounds,Ft.arrange(re.x,re.y,re.width,re.height),ae=Ht.measuredBounds,Ht=Ht.naturalBounds,he=Ft.Ab,he.reset(),he.translate(re.x+rt.x,re.y+rt.y),he.translate(-ae.x,-ae.y),Ft.no(he,Ht.x,Ht.y,Ht.width,Ht.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 ii(a,y){if(Le.call(this),this.na=null,a===void 0)this.na=ii.Position;else if(typeof a=="string"){var x=Ql.I(a);x!==null&&(this.na=x)}else a instanceof Ia?this.na=a:a&&(this.na=ii.Position,y=a);this.na===null&&te("Panel type not specified or PanelLayout not loaded: "+a),this.l=this.l|4194304|(this.na===ii.Grid?1048576:0),this.O=new pn,this.yb=Nr,this.Tm=Lo,this.Uf=Dr,this.$g=null,this.$e="",this.jg=new le(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=Yi,this.jn=an,this.kn=Wt,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,y&&Object.assign(this,y)}ke(ii,Le),ii.prototype.cloneProtected=function(a){Le.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},ii.prototype.Af=function(a){Le.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},ii.prototype.copy=function(){var a=Le.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 Li&&(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},Et=ii.prototype,Et.toString=function(){return"Panel("+this.type.name+")#"+Er(this)},Et.Pn=function(a){Le.prototype.Pn.call(this,a);for(var y=this.O.s,x=y.length,E=0;E<x;E++)y[E].Pn(a)},Et.hh=function(a,y){if(this.na===ii.Grid)a.yc(),this.na.gc(this,a,y);else if(this.na===ii.Graduated)a.yc(),this.na.gc(this,a,y);else{if(this.na===ii.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===ii.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){ma(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,ma(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"}Et.lv=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].lv();this.Uc=!0},Et.kk=function(a,y,x){if(!Le.prototype.kk.call(this,a,y,x))return!1;if(this.type===ii.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===ii.Grid||this.na===ii.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},Et.nk=function(){return!0},Et.$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 Le.prototype.$o.call(this,a,y,x,E)},Et.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,pe.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=pe.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=Tt.alloc(),vt=null,y=1/0;var Pt=null,Ft=this.isClipping&&this.na===ii.Spot;Ft&&(Pt=Tt.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 Ht=ft[Xt];Ht.visible&&Ht!==vt&&Ht.Sj(rt,a,ot,x,ut)&&(st=!0,Ht=(rt-ut.x)*(rt-ut.x)+(a-ut.y)*(a-ut.y),Ht<E&&(E=Ht,b.set(ut)))}return Ft&&(y>E&&b.set(Pt),Tt.free(Pt)),Tt.free(ut),z&&b.transform(tt),st},Et.Gj=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Gj();Le.prototype.Gj.call(this)},Et.v=function(a){if(!hl(this)){Le.prototype.v.call(this,a),a=null,(this.na===ii.Auto||this.na===ii.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 ii||b instanceof jo||z!==Zn)&&b.v(!0)}}}},Et.Uj=function(){if(!hl(this)){Na(this,!0),Ru(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Uj()}},Et.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()}},Et.Wu=function(){Cl(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()},Et.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),ei(b,a,ot),ei(this.naturalBounds,a,ot),this.Ge(0,0,a,ot)},Et.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}Et.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=Zn),a){case Zn:(y>x||z>E)&&(this.v(),this.measure(y>x?x:y,z>E?E:z,0,0));break;case $n: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 cr:this.v(!0),this.measure(y+rt,E+tt,0,0)}}this.na.arrange(this,b,this.jg)}},Et.gh=function(a){var y=this.naturalBounds,x=ah(this);if(Ri(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var E=y.length,b=Tt.allocAt(0,0);E--;){var z=y[E];if((z.visible||z===x)&&(je(b.set(a),z.transform),z.ca(b)))return Tt.free(b),!0}return Tt.free(b),!(this.Ma===null&&this.areaBackground===null)}return!1},Et.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},Et.qm=function(a,y){if(y(this,a),a instanceof ii){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 ii&&d1(a,z,x)}}function Lx(a,y){c1(a,a,y)}function c1(a,y,x){if(x(y),y instanceof ii){y=y.O.s;for(var E=y.length,b=0;b<E;b++)c1(a,y[b],x)}}Et.Nl=function(a){return f1(this,this,a)};function f1(a,y,x){if(x(y))return y;if(y instanceof ii){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}Et.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 ii){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 ii?x=Math.max(x,g1(b)):b instanceof zr&&(x=Math.max(x,b.ig/2*b.strokeMiterLimit*b.Df()))}return x}Et.se=function(){return!(this.type===ii.TableRow||this.type===ii.TableColumn)};function kh(a){return a.type===ii.TableRow||a.type===ii.TableColumn}Et.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:je(Tt.allocAt(a.x,a.y),this.transform),rt=this.diagram,ot=10,st=5;if(rt!==null&&(ot=rt.Ql("extraTouchArea"),st=ot/2),Ri(-(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=Tt.alloc(),st=(ot=this.isClipping&&this.na===ii.Spot)?this.Pb():null,ot&&(st.se()?je(rt.set(a),st.transform):rt.set(a),!st.ca(rt)))return Tt.free(rt),z||Tt.free(tt),null;for(var ft=ah(this);ut--;){var vt=b[ut];if((vt.visible||vt===ft)&&(vt.se()?je(rt.set(a),vt.transform):rt.set(a),!ot||vt!==st)){var xt=null;if(vt instanceof ii?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 Tt.free(rt),z||Tt.free(tt),xt}}Tt.free(rt)}return this.background===null&&this.areaBackground===null?(z||Tt.free(tt),null):(a=Ri(0,0,E.width,E.height,tt.x,tt.y)?this:null,z||Tt.free(tt),a)}return z||Tt.free(tt),null},Et.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:je(Tt.allocAt(a.x,a.y),this.transform);if(b=Ri(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=Tt.alloc(),ut=ah(this);ot--;){var ft=rt[ot];if(ft.visible||ft===ut){ft.se()?je(st.set(a),ft.transform):st.set(a);var vt=ft;ft=ft instanceof ii?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))}}Tt.free(st)}return z||Tt.free(tt),b&&(this.background!==null||this.areaBackground!==null)}return z||Tt.free(tt),!1},Et.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=wi.alloc(),tt.reset()),tt.multiply(this.transform),this.fh(a,tt))return xv(this,y,x,b),z===void 0&&wi.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 ii?ut:null,vt=wi.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)),wi.free(vt))}}return z===void 0&&wi.free(tt),E}return z===void 0&&wi.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 ii&&xv(tt,y,x,E),y!==null&&(tt=y(tt)),tt===null||x!==null&&!x(tt)||E.add(tt))}}}Et.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:je(Tt.allocAt(a.x,a.y),this.transform),st=rt?y:je(Tt.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||(Tt.free(ot),Tt.free(st)),ft){if(!this.isAtomic){ot=Tt.alloc(),st=Tt.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,je(ot.set(a),Ft),je(st.set(y),Ft)):(ot.set(a),st.set(y)),Ft=Pt,Pt=Pt instanceof ii?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)))}}Tt.free(ot),Tt.free(st)}return b?ft:tt}return!1};function wv(a){var y=null;return a instanceof zr&&(y=a.spot1,y===Lo&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=Ji),y}function Pv(a){var y=null;return a instanceof zr&&(y=a.spot2,y===Lo&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=Pr),y}Et.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},Et.M=function(a){return this.O.M(a)},Et.Gb=function(a,y){y instanceof rr&&te("Cannot add a Part to a Panel: "+y+"; use a Panel instead"),(this===y||this.rg(y))&&(this===y&&te("Cannot make a Panel contain itself: "+this.toString()),te("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+y.toString()));var x=y.panel;if(x!==null&&x!==this&&te("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!==ii.Grid||y instanceof zr||te("Can only add Shapes to a Grid Panel, not: "+y),this.na!==ii.Graduated||y instanceof zr||y instanceof jo||te("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 _e),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 te("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 ii&&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 Li&&(x.Te=!0),x.Te&&x instanceof Li&&(x.wc=null),b=this.diagram,b!==null&&b.undoManager.isUndoingRedoing||(E!==-1&&x.cb(pa,"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}Et.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)},Et.mb=function(a){0<=a&&this.pc(a,!0)},Et.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),Na(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 Li&&(E instanceof ii?E.qm(E,function(tt,rt){Yv(z,rt,y)}):Yv(z,E,y)),x=this.diagram,x!==null&&x.undoManager.isUndoingRedoing||z.cb(pa,"elements",this,E,null,a,null))},Et.Fb=function(a){0>a&&Jn(a,">= 0",ii,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new Ba;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb($o,"rowdefs",this,null,x,null,a)}return y[a]},Et.oA=function(a){if(0>a&&Jn(a,">= 0",ii,"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(pa,"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 Ba?x:void 0,!x)for(y=E.length-1;0<=y&&E[y--]===void 0;)E.length--;a.v()}}Et.Eb=function(a){0>a&&Jn(a,">= 0",ii,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new Ba;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb($o,"coldefs",this,null,x,null,a)}return y[a]},Et.jA=function(a){if(0>a&&Jn(a,">= 0",ii,"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(pa,"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 Ba?x:void 0,!x)for(y=E.length-1;0<=y&&E[y--]===void 0;)E.length--;a.v()}}Et.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},Et.Hy=function(a,y){return(a=this.Fb(a))&&Fm(a,new Ba(y)),this},Et.By=function(a,y){return(a=this.Eb(a))&&Fm(a,new Ba(y)),this},Et.nz=function(a){if(0>a||this.type!==ii.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},Et.fz=function(a){if(0>a||this.type!==ii.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},Et.Fz=function(a,y){if(y===void 0&&(y=new Tt(NaN,NaN)),this.type!==ii.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)},Et.Gz=function(a){if(this.type!==ii.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&&te("Template cannot have .data be non-null: "+a),a.allBindings=y=new pn;else if(y._isFrozen)return;var x=new pn;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 pn),xt.srcBindings.add(vt))),y.add(vt)}if(ut instanceof ii&&ut.type===ii.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 pn),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 ii&&(tt=rt.substring(0,ot),rt=rt.substr(ot+1),ot=z.fb(tt),ot!==null?(z=ot,b.targetProperty=rt):Fn('Warning: unable to find GraphObject named "'+tt+'" for Binding: '+b.toString())),z instanceof Ba?(tt=Er(z.panel),b.Ai=tt===void 0?-1:tt,z.panel.bindingId=b.Ai):z instanceof Le?(tt=Er(z),b.Ai=tt===void 0?-1:tt,z.bindingId=b.Ai):te("Unknown type of binding target: "+z)}y.freeze(),a instanceof rr&&a.Zc()&&a.Va()}Et.Uy=function(a){a===void 0&&(a=!1);var y=this.copy();return Lx(y,function(x){x instanceof ii&&(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},Et.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 ii))continue;b===1?z=z.Eb(x.wl):b===2&&(z=z.Fb(x.wl))}z!==void 0&&x.Mv(z,E)}}},Et.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 ii&&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 ii)||z.data!==y[tt])return!0;b++,tt++}return!1}function Qg(a){if(a.type===ii.Spot||a.type===ii.Auto)return Math.min(a.O.length,1);if(a.type===ii.Link){a=a.O;for(var y=a.length,x=0;x<y;x++){var E=a.M(x);if(!(E instanceof zr&&E.isPanelMain))break}return x}return a.type===ii.Table&&0<a.O.length&&(a=a.O.M(0),a.isPanelMain&&a instanceof ii&&kh(a))?1:0}Et.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 ii){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 Li&&(y.Te=!0),y.Te&&y instanceof Li&&(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 _e),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 ii){var b=y,z=x;E.type===ii.TableRow?E.row=b:E.type===ii.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=Ca(y,a)}else return"";if(a===void 0)return"";if(typeof a=="string")return a;te("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,Fn('No item template Panel found for category "'+y+'" on '+a),Fn(" Using default item template."),a=new ii,y=new jo,y.bind(new La("text","",Ui)),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 ii){y=y.O.s,E=y.length;for(var b=0;b<E;b++){var z=y[b];x&&z instanceof ii&&!z.isEnabled||km(a,z,x)}}}function Lu(a,y){y.name=a,Ql.add(a,y)}sn.Object.defineProperties(ii.prototype,{type:{get:function(){return this.na},set:function(a){var y=this.na;y!==a&&(this.na=a,this.isAtomic=this.na===ii.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&&Jn(a,">= 0",ii,"padding"),a=new Bi(a)):(0>a.left&&Jn(a.left,">= 0",ii,"padding:value.left"),0>a.right&&Jn(a.right,">= 0",ii,"padding:value.right"),0>a.top&&Jn(a.top,">= 0",ii,"padding:value.top"),0>a.bottom&&Jn(a.bottom,">= 0",ii,"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:Nr},set:function(a){typeof a=="number"&&(a=new Bi(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)||te("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)||te("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||te("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()||te("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)&&te("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)&&te("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 lo);jl(this),this.ub=a;var E=this.diagram;E!==null&&(x?(x=E.partManager,this instanceof hi?(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 _e}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof rr||a.isPanelMain)&&te("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(););Zr(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&&(Zr(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 Fr&&(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))}}}),sn.Object.defineProperties(ii,{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")}}}),ii.prototype.rebuildItemElements=ii.prototype.mv,ii.prototype.findItemPanelForData=ii.prototype.sx,ii.prototype.updateTargetBindings=ii.prototype.La,ii.prototype.copyTemplate=ii.prototype.Uy,ii.prototype.graduatedValueForPoint=ii.prototype.Gz,ii.prototype.graduatedPointForValue=ii.prototype.Fz,ii.prototype.findColumnForLocalX=ii.prototype.fz,ii.prototype.findRowForLocalY=ii.prototype.nz,ii.prototype.addColumnDefinition=ii.prototype.By,ii.prototype.addRowDefinition=ii.prototype.Hy,ii.prototype.addRowColumnDefinition=ii.prototype.Gy,ii.prototype.removeColumnDefinition=ii.prototype.jA,ii.prototype.getColumnDefinition=ii.prototype.Eb,ii.prototype.removeRowDefinition=ii.prototype.oA,ii.prototype.getRowDefinition=ii.prototype.Fb,ii.prototype.removeAt=ii.prototype.mb,ii.prototype.remove=ii.prototype.remove,ii.prototype.insertAt=ii.prototype.Gb,ii.prototype.elt=ii.prototype.M,ii.prototype.add=ii.prototype.add,ii.prototype.findObject=ii.prototype.fb,ii.prototype.findInVisualTree=ii.prototype.Nl,ii.prototype.walkVisualTreeFrom=ii.prototype.qm,ii.prototype.findMainElement=ii.prototype.Pb;var S1=!1,x1=null,Ql=new _e;ii.className="Panel",ii.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=Nr,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 Ba(a){bi(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=Lo,this.pa=this.oc=this.oa=0,this.be=null,this.oo=bv,this.hg=Dr,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))}Ba.prototype.copy=function(){var a=new Ba;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}Et=Ba.prototype,Et.qb=function(a){a.classType===Ba&&(this.sizing=a)},Et.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+Er(this)},Et.wi=function(a){this.Me=a},Et.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)},Et.Wc=function(){var a=0,y=this.Me,x=0,E=this.isRow;if(y!==null&&y.type===ii.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)},Et.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}Et.bind=function(a,y,x,E){var b=null;return typeof a=="string"?b=new La(a,y,x,E):b=a,b.xd=this,a=this.panel,a!==null&&(y=a.ih(),y!==null&&v1(y)&&te("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+b+" on "+a)),this.be===null&&(this.be=new pn),this.be.add(b),this},sn.Object.defineProperties(Ba.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&&Jn(a,">= 0",Ba,"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&&Jn(a,">= 0",Ba,"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))&&Jn(a,">= 0",Ba,"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&&Jn(a,">= 0",Ba,"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 Bi(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)||te("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}}}),Ba.prototype.computeEffectiveSpacing=Ba.prototype.Wc,Ba.prototype.computeEffectiveSpacingTop=Ba.prototype.Io;var bv=new We(Ba,"Default",0),qg=new We(Ba,"None",1),Nm=new We(Ba,"ProportionalExtra",2);Ba.className="RowColumnDefinition",Ba.Default=bv,Ba.None=qg,Ba.ProportionalExtra=Nm;function zr(a,y){Le.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)}ke(zr,Le),zr.prototype.cloneProtected=function(a){Le.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())}Et=zr.prototype,Et.th=function(){Le.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},Et.qb=function(a){a===Zn||a===Yi||a===$r||a===Dr?this.geometryStretch=a:Le.prototype.qb.call(this,a)},Et.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+Er(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=oi(),Ht=2;Ht<b;Ht+=2)st=x[Ht],ut=x[Ht+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 zr&&(ft-=E.strokeWidth),1>ft&&(ft=1),b=x=ft,st=tt/2,ut=st!==0,Ht=0,Pt=Xt[Ht],ft=Pt[0],xt=Pt[1],vt=Pt[2],Pt=Pt[3];for(var re=0;.1<=Ft;){if(re===0&&(ut?(b=x,b-=st,Ft-=st,ut=!1):b=x,b===0&&(b=1)),b>Ft){gi(Xt);return}b>Pt?(re=b-Pt,b=Pt):re=0;var ae=Math.sqrt(b*b/(1+vt*vt));if(0>ft&&(ae=-ae),rt+=ae,ot+=vt*ae,a.translate(rt,ot),a.rotate(xt),a.translate(-(tt/2),-(z/2)),re===0&&E.hh(a,y),a.translate(tt/2,z/2),a.rotate(-xt),a.translate(-rt,-ot),Ft-=b,Pt-=b,re!==0){if(Ht++,Ht===Xt.length){gi(Xt);return}Pt=Xt[Ht],ft=Pt[0],xt=Pt[1],vt=Pt[2],Pt=Pt[3],b=re}}gi(Xt)}}Et.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&&ma(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===ii.Link&&rt instanceof lo&&rt.category==="Selection"&&rt.adornedObject instanceof zr&&rt.adornedPart.Pb()===rt.adornedObject?rt.adornedObject.strokeWidth:0),ot===0&&(x=null),x!==null&&ot!==0&&(ma(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===Rn.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===Rn.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===Rn.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+pe.wg*b,ot-vt,st+b,ot-pe.wg*vt,st+b,ot),a.bezierCurveTo(st+b,ot+pe.wg*vt,st+pe.wg*b,ot+vt,st,ot+vt),a.bezierCurveTo(st-pe.wg*b,ot+vt,st-b,ot+pe.wg*vt,st-b,ot),a.bezierCurveTo(st-b,ot-pe.wg*vt,st-pe.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===Rn.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 ca:a.moveTo(Ft.endX,Ft.endY);break;case So:a.lineTo(Ft.endX,Ft.endY);break;case Sa: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 ua: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 Ht=0;Ht<Xt;Ht++){var re=xt[Ht];Ht===0&&a.lineTo(re[0],re[1]),a.bezierCurveTo(re[2],re[3],re[4],re[5],re[6],re[7])}break;case cs:if(Ht=Xt=0,xt!==null&&xt.type===ua){if(xt=Ya(xt,st),re=xt.length,re===0){a.lineTo(Ft.endX,Ft.endY);break}xt=xt[re-1]||null,xt!==null&&(Xt=xt[6],Ht=xt[7])}else Xt=xt!==null?xt.endX:st.startX,Ht=xt!==null?xt.endY:st.startY;if(xt=es(Ft,st,Xt,Ht),Xt=xt.length,Xt===0){a.lineTo(Ft.endX,Ft.endY);break}for(Ht=0;Ht<Xt;Ht++)re=xt[Ht],a.bezierCurveTo(re[2],re[3],re[4],re[5],re[6],re[7]);break;default:te("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=oi(),z.type===Rn.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===Rn.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 ca: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 Sa:pe.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:pe.ep(tt,b,Pt.point1X,Pt.point1Y,Pt.endX,Pt.endY,.5,E),tt=Pt.endX,b=Pt.endY;break;case ua: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++)Ht=Ft[Xt],pe.Qe(tt,b,Ht[2],Ht[3],Ht[4],Ht[5],Ht[6],Ht[7],.5,E),tt=Ht[6],b=Ht[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++)Ht=Ft[Xt],pe.Qe(tt,b,Ht[2],Ht[3],Ht[4],Ht[5],Ht[6],Ht[7],.5,E),tt=Ht[6],b=Ht[7];break;default:te("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===Rn.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===Rn.F){if(b=new da,b.startX=z.endX,b.startY=(z.startY+z.endY)/2,tt=new qr(ua),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],pe.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)}}}},Et.kk=function(a,y,x){return!Le.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)},Et.nk=function(a){return this.geometry!==null&&1<this.geometry.figures.length||this.pathPattern!==null?!0:Le.prototype.nk.call(this,a)},Et.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)}},Et.ga=function(a,y){if(y===void 0&&(y=new Tt),a instanceof ri){a.Mc()&&te("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},Et.mi=function(a){a===void 0&&(a=new le);var y=this.naturalBounds,x=this.oe;y=le.allocAt(y.x,y.y,y.width,y.height);var E=this.strokeWidth;return y.Bc(E/2,E/2),E=Tt.allocAt(y.x,y.y).transform(x),a.h(E.x,E.y,0,0),E.h(y.right,y.y).transform(x),Ti(a,E.x,E.y,0,0),E.h(y.right,y.bottom).transform(x),Ti(a,E.x,E.y,0,0),E.h(y.x,y.bottom).transform(x),Ti(a,E.x,E.y,0,0),le.free(y),Tt.free(E),a},Et.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!==Rn.j||y||(b+=2);var z=le.alloc();if(z.assign(E),z.Bc(b+2,b+2),!z.ca(a))return le.free(z),!1;if(E=b+1e-4,x.type===Rn.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:(le.free(z),pe.Yb(x.startX,x.startY,x.endX,x.endY,b,a.x,a.y));if(x.type===Rn.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 le.free(z),!1;z.Bc(E,E)}return this.stroke!==null&&z.Bc(b,b),a=z.ca(a),le.free(z),a}if(x.type===Rn.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 le.free(z),!1;tt+=E,b+=E}return this.stroke!==null&&(tt+=E,b+=E),le.free(z),0>=tt||0>=b?!1:1>=x*x/(tt*tt)+y*y/(b*b)}if(x.type===Rn.o)return le.free(z),this.fill===null?ya(x,a.x,a.y,b):aa(x,a,b,1<this.strokeWidth,y);te("Unknown Geometry type: "+x.type)},Et.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=pe.Ze[rt];typeof st=="string"&&(st=pe.Ze[st]),typeof st=="function"?(ot=st(null,100,100),kv[rt]=ot):te("Unsupported Figure: "+rt)}tt=ot.bounds}rt=tt.width,ot=tt.height,st=tt.width;var ut=tt.height;switch(zs(this,!0)){case Zn:E=x=0;break;case $n: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 cr: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 Zn:break;case $n:rt=st,ot=ut;break;case Yi:x=Math.min(st/rt,ut/ot),isFinite(x)||(x=1),rt*=x,ot*=x;break;default:te(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&&pe.$(this.ua.Sk,a-z)&&pe.$(this.ua.Rk,y-z)||(this.ua=zr.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===Dr?$n:y:y===Dr?kv[a.figure].defaultStretch:y}Et.eh=function(a,y,x,E){Ss(this,a,y,x,E)},Et.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},Et.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===Rn.j)if(1.5>=this.strokeWidth)ut=pe.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=oi(),a=new Tt,pe.Ve(st.startX+E,st.startY+ut,st.endX+E,st.endY+ut,z,tt,rt,ot,a)&&y.push(a),a=new Tt,pe.Ve(st.startX-E,st.startY-ut,st.endX-E,st.endY-ut,z,tt,rt,ot,a)&&y.push(a),a=new Tt,pe.Ve(st.startX+E,st.startY+ut,st.startX-E,st.startY-ut,z,tt,rt,ot,a)&&y.push(a),a=new Tt,pe.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===Rn.u)ut=pe.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===Rn.F){y=le.allocAt(xt.x,xt.y,xt.width,xt.height).Bc(ft,ft);t:if(y.width===0)ut=pe.Ve(y.x,y.y,y.x,y.y+y.height,z,tt,rt,ot,b);else if(y.height===0)ut=pe.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}le.free(y)}else if(st.type===Rn.o){vt=Tt.alloc();var Pt=rt-z,Ft=ot-tt,Xt=Pt*Pt+Ft*Ft,Ht=z,re=tt;if(0<Xt&&xt.contains(Ht,re)&&(vt.x=Ht,vt.y=re,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),Ht-=Pt,re-=Ft;xt.contains(Ht,re);)Ht-=Pt,re-=Ft;for(b.x=rt,b.y=ot,Ft=0;Ft<st.figures.count;Ft++){var ae=st.figures.s[Ft],he=ae.isFilled?Ht:z,Ae=ae.isFilled?re:tt,qe=ae.segments;xt=ae.startX,Pt=ae.startY;for(var Pi=xt,Wi=Pt,Oi=0;Oi<qe.count;Oi++){var ui=qe.s[Oi],On=ui.type,kr=ui.endX,Cr=ui.endY,ho=!1;switch(On){case ca:Pi=kr,Wi=Cr;break;case So:ho=Tm(xt,Pt,kr,Cr,he,Ae,rt,ot,vt);break;case Sa:ho=pe.Eo(xt,Pt,ui.point1X,ui.point1Y,ui.point2X,ui.point2Y,kr,Cr,he,Ae,rt,ot,.6,vt);break;case ds:ho=pe.Eo(xt,Pt,xt+2/3*(ui.point1X-xt),Pt+2/3*(ui.point1Y-Pt),kr+2/3*(ui.point1X-kr),Cr+2/3*(ui.point1Y-Cr),kr,Cr,he,Ae,rt,ot,.6,vt);break;case ua:case cs:On=ui.type===ua?Ya(ui,ae):es(ui,ae,xt,Pt);var Io=On.length;if(Io===0){ho=Tm(xt,Pt,ui.type===ua?ui.centerX:ui.endX,ui.type===ua?ui.centerY:ui.endY,he,Ae,rt,ot,vt);break}for(Cr=null,kr=0;kr<Io;kr++){if(Cr=On[kr],kr===0&&Tm(xt,Pt,Cr[0],Cr[1],he,Ae,rt,ot,vt)){var Wa=Bm(he,Ae,vt,Xt,b);Wa<Xt&&(Xt=Wa,ut=!0)}pe.Eo(Cr[0],Cr[1],Cr[2],Cr[3],Cr[4],Cr[5],Cr[6],Cr[7],he,Ae,rt,ot,.6,vt)&&(Wa=Bm(he,Ae,vt,Xt,b),Wa<Xt&&(Xt=Wa,ut=!0))}kr=Cr[6],Cr=Cr[7];break;default:te("Unknown Segment type: "+On)}xt=kr,Pt=Cr,ho&&(ho=Bm(he,Ae,vt,Xt,b),ho<Xt&&(Xt=ho,ut=!0)),ui.isClosed&&(kr=Pi,Cr=Wi,Tm(xt,Pt,kr,Cr,he,Ae,rt,ot,vt)&&(ui=Bm(he,Ae,vt,Xt,b),ui<Xt&&(Xt=ui,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,Tt.free(vt)}else te("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(pe.$(a,x)&&pe.$(y,E)||pe.$(b,tt)&&pe.$(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||pe.$(ot.y,a))&&(ot.y<y||pe.$(ot.y,y))&&(st=!0)):(y=a<x?a:x,a=a<x?x:a,(ot.x>y||pe.$(ot.x,y))&&(ot.x<a||pe.$(ot.x,a))&&(st=!0)),st)}Et.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=Tt.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)))),Tt.free(z),b},Et.Yc=function(a,y){if(this.fh(a,y)||y===void 0&&(y=this.transform,a.Re(this.actualBounds)))return!0;var x=wi.alloc();x.set(y),x.Vj();var E=a.left,b=a.right,z=a.top;a=a.bottom;var tt=Tt.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 Tt.free(tt),!0;var rt=Tt.alloc(),ot=Tt.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)))),Tt.free(tt),wi.free(x),Tt.free(rt),Tt.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)}Et.tx=function(a,y,x){function E(Xt,Ht){for(var re=Xt.length,ae=0;ae<re;ae+=2)if(Ht.zd(Xt[ae],Xt[ae+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,An(a.x,a.y,rt,ot)<=b&&An(a.x,a.y,st,ot)<=b&&An(a.x,a.y,rt,tt)<=b&&An(a.x,a.y,st,tt)<=b)return!0}if(rt=y.startX,ot=y.startY,st=y.endX,tt=y.endY,y.type===Rn.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===Rn.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===Rn.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=pe.$y(ut,ft,y,z),a*a<=b)return!0}else return!(An(y,z,-ut,0)>=b||An(y,z,0,-ft)>=b||An(y,z,0,ft)>=b||An(y,z,ut,0)>=b)}else if(y.type===Rn.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?ya(y,a.x,a.y,z):aa(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 ca:case So:if(tt=ft.endX,ut=ft.endY,a.zd(tt,ut)>b)return!1;break;case Sa:var vt=oi();if(pe.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=oi(),pe.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 ua:case cs:vt=ft.type===ua?Ya(ft,z):es(ft,z,tt,ut);var xt=vt.length;if(xt===0){if(tt=ft.type===ua?ft.centerX:ft.endX,ut=ft.type===ua?ft.centerY:ft.endY,a.zd(tt,ut)>b)return!1;break}ft=null;for(var Pt=oi(),Ft=0;Ft<xt;Ft++)if(ft=vt[Ft],Pt.length=0,pe.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:te("Unknown Segment type: "+ft.type)}}return!0}}}return!1},Et.qc=function(){this.ua=null},Et.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 ri(1-vo.x,vo.y)))}zr.makeGeometry=function(a,y,x){if(a.toArrow!=="None")var E=Wu[a.toArrow];else a.fromArrow!=="None"?E=Wu[a.fromArrow]:(E=pe.Ze[a.figure],typeof E=="string"&&(E=pe.Ze[E]),E===void 0&&te("Unknown Shape.figure: "+a.figure),E=E(a,y,x),E.Sk=y,E.Rk=x);if(E===null){var b=pe.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 pe.um)if(b.toLowerCase()===x){E=b;break}if(E!==null)return a=Rn.parse(pe.um[E],!1),Wu[E]=a,x!==E&&(Wu[x]=E),E}}return typeof y=="string"?y:y instanceof Rn?a:null}sn.Object.defineProperties(zr.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=Rn.parse(a);var y=a.normalize();this.geometry=a,this.position=a=Tt.allocAt(-y.x,-y.y),Tt.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 Jn(a,"value >= 0",zr,"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"?Jn(a,'"butt", "round", or "square"',zr,"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"?Jn(a,'"miter", "bevel", or "round"',zr,"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)||te("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=pe.Ze[a];typeof x=="function"?x=a:(x=pe.Ze[a.toLowerCase()])||te("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?te("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?te("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:Lo},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:Lo},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:Dr},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))}}}),zr.prototype.intersectsRect=zr.prototype.Yc,zr.prototype.containedInRect=zr.prototype.fh,zr.prototype.getNearestIntersectionPoint=zr.prototype.rs,zr.prototype.getDocumentBounds=zr.prototype.mi,zr.prototype.getDocumentPoint=zr.prototype.ga;var Wu=new Gi,kv=new Gi;zr.className="Shape",zr.getFigureGenerators=function(){var a=new _e,y;for(y in pe.Ze)y!==y.toLowerCase()&&a.add(y,pe.Ze[y]);return a.freeze(),a},zr.defineFigureGenerator=function(a,y){var x=a.toLowerCase(),E=pe.Ze;E[a]=y,E[x]=a},zr.getArrowheadGeometries=function(){var a=new _e;for(E in pe.um)if(Wu[E]===void 0){var y=Rn.parse(pe.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 Rn&&a.add(x,E)}return a.freeze(),a},zr.defineArrowheadGeometry=function(a,y){var x=null;typeof y=="string"?x=Rn.parse(y,!1):x=y,y=a.toLowerCase(),y!=="none"&&a!==y||te("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=Dr,this.gg=this.fg=Lo}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 jo(a,y){return Le.call(this),jm||(js=fa?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}ke(jo,Le),jo.prototype.cloneProtected=function(a){Le.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())}Et=jo.prototype,Et.th=function(){Le.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}Et.qb=function(a){a.classType===jo?this.wrap=a:Le.prototype.qb.call(this,a)},Et.toString=function(){return 22<this.ec.length?'TextBlock("'+this.ec.substring(0,20)+'"...)':'TextBlock("'+this.ec+'")'},Et.v=function(){Le.prototype.v.call(this)},Et.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;ma(this,a,this.xc,!0,!1,x,E),(ot||st)&&ma(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 Vr: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 Vr:a.scale(1,-1),a.translate(0,-z);break;case ko:a.scale(-1,-1),a.translate(-b,-z)}}},Et.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"))}},Et.kk=function(a,y,x){if(!Le.prototype.kk.call(this,a,y,x))return!1;if(ma(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},Et.nk=function(a){return 1<this.lineCount||this.isUnderline||this.isStrikethrough?!0:Le.prototype.nk.call(this,a)},Et.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)}},Et.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),ei(this.dc,z,tt),this.Ge(0,0,z,tt),this.svg!==null&&b!==this.Gc&&(this.Uc=!0)},Et.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}sn.Object.defineProperties(jo.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:Zn},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:zo},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),ei(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&&Jn(a,"> 0",jo,"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 We(jo,"None",0),L1=new We(jo,"WrapFit",1),Bv=new We(jo,"WrapDesiredSize",2),b1=new We(jo,"WrapBreakAll",3),Tv=new We(jo,"OverflowClip",0),Rm=new We(jo,"OverflowEllipsis",1),ep=new We(jo,"FormatTrim",0),M1=new We(jo,"FormatNone",0),Mx=/[ \u200b\u00ad]/,Ov=new Gi,k1=0,zm=new Gi,Iv=0,np="...",F1="",js=null,jm=!1;jo.className="TextBlock";function Rv(){this.nc=!1,this.Hd=null,this.Xf=Zn,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=zo,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},jo.getEllipsis=function(){return np},jo.setEllipsis=function(a){np=a,zm=new Gi,Iv=0},jo.getBaseline=function(){return Om},jo.setBaseline=function(a){Om=a},jo.getUnderline=function(){return Im},jo.setUnderline=function(a){Im=a},jo.isValidFont=function(a){if(jm||(js=fa?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},jo.FormatNone=M1,jo.FormatTrim=ep,jo.None=Nv,jo.OverflowClip=Tv,jo.OverflowEllipsis=Rm,jo.WrapBreakAll=b1,jo.WrapDesiredSize=Bv,jo.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){Le.call(this),this.Eg=null,this.qo="",this.Xg=jr,this.Nk=$n,this.Zg=this.Hd=null,this.Mk=ki,this.Xf=Zn,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;ke(Ws,Le),Ws.prototype.cloneProtected=function(a){Le.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===Zn||a===Yi||a===$r?this.imageStretch=a:Le.prototype.qb.call(this,a)},Ws.prototype.toString=function(){return"Picture("+this.source+")#"+Er(this)};function Rf(a){a===void 0&&(a=""),a!==""?If[a]&&(delete If[a],Wm--):(If=new Gi,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()||(Na(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=oi();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 Zn: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 $n:ft=E.width,vt=E.height;break;case Yi:case $r:xt===Yi?(xt=Math.min(E.height/vt,E.width/ft),ft*=xt,vt*=xt):xt===$r&&(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,Ht=x.__goCache;xt=null;var re=kx;if(!b){if(x.sq&&Ht!==void 0&&4<Ft&&Xt>re*re)for(Ht.gi===null&&(B1(Ht,4,st,ut,x),B1(Ht,16,st,ut,x)),b=Ht.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(ae){this.en=!1}try{b.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(ae){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 Vr: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&&Ht!==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(ae){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(ae){this.en=!1}switch(this.flip){case oo:a.scale(-1,1),a.translate(-Math.min(E.width,ft),0);break;case Vr: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===$n||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===$n||z===cr?(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)),ei(this.dc,a,y),this.Ge(0,0,a,y)},Ws.prototype.eh=function(a,y,x,E){Ss(this,a,y,x,E)},sn.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||te("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()||(Na(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(fa){var E=null;if(x[a]!==void 0)E=x[a];else if(a!==""){30<Wm&&(Rf(),x=If),E=qn("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 Gi,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 Rn,this.mc=null}zf.prototype.reset=function(a){a!==null?(a.ka(),this.os=a,a.figures.clear()):this.os=new Rn,this.mc=null};function jf(a,y,x,E,b,z){a.mc=new da,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(ca);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(Sa);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(ua);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=pe.Ze;E[a]=y,E[x]=a}vs("Rectangle",function(a,y,x){a="r"+y+","+x;var E=pe.Mf[a];return E!==void 0||(E=new Rn(Rn.u),E.endX=y,E.endY=x,pe.Nf<pe.vm&&(pe.Mf[a]=E,pe.Nf++)),E}),vs("Square",function(a,y,x){a="s"+y+","+x;var E=pe.Mf[a];return E!==void 0||(E=new Rn(Rn.u),E.endX=y,E.endY=x,E.defaultStretch=Yi,pe.Nf<pe.vm&&(pe.Mf[a]=E,pe.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=pe.Mf[E];if(b!==void 0)return b;var z=a*pe.wg;return b=new Rn().add(new da(a,0,!0).add(new qr(So,y-a,0)).add(new qr(Sa,y,a,y-z,0,y,z)).add(new qr(So,y,x-a)).add(new qr(Sa,y-a,x,y,x-z,y-z,x)).add(new qr(So,a,x)).add(new qr(Sa,0,x-a,z,x,0,x-z)).add(new qr(So,0,a)).add(new qr(Sa,a,0,0,z,z,0).close())),1<z&&(b.spot1=new ri(0,0,z,z),b.spot2=new ri(1,1,-z,-z)),pe.Nf<pe.vm&&(pe.Mf[E]=b,pe.Nf++),b}),vs("Border","RoundedRectangle"),vs("Ellipse",function(a,y,x){a="e"+y+","+x;var E=pe.Mf[a];return E!==void 0||(E=new Rn(Rn.F),E.endX=y,E.endY=x,E.spot1=ro,E.spot2=ea,pe.Nf<pe.vm&&(pe.Mf[a]=E,pe.Nf++)),E}),vs("Circle",function(a,y,x){a="c"+y+","+x;var E=pe.Mf[a];return E!==void 0||(E=new Rn(Rn.F),E.endX=y,E.endY=x,E.spot1=ro,E.spot2=ea,E.defaultStretch=Yi,pe.Nf<pe.vm&&(pe.Mf[a]=E,pe.Nf++)),E}),vs("TriangleRight",function(a,y,x){return new Rn().add(new da(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 Rn().add(new da(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 Rn().add(new da(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 Rn().add(new da(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 Rn().add(new da(.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 Rn(Rn.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 Rn(Rn.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 Rn().add(new da(0,x/2,!1).add(new qr(So,y,x/2)).add(new qr(ca,y/2,0)).add(new qr(So,y/2,x)))}),vs("XLine",function(a,y,x){return new Rn().add(new da(0,x,!1).add(new qr(So,y,0)).add(new qr(ca,0,0)).add(new qr(So,y,x)))}),vs("LineRight",function(a,y,x){return new Rn().add(new da(.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 Rn().add(new da(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 Rn().add(new da(.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 Rn().add(new da(0,.75*x,!1).add(new qr(So,.5*y,.25*x)).add(new qr(So,y,.75*x)))}),pe.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=Un,this.ir=null,this.jr="",this.lr=Lo,this.Gq="",this.Hq=Ji,this.Pq=qt,this.Kq=Se,this.Up=null,this.Cq=127,this.zr=Te,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 Ia||typeof a=="string"?ii.call(this,a):(ii.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 Tt(NaN,NaN).freeze(),this.nf=null,this.Ao=NaN,this.vw=-1,this.py=new le,this.Rh=null,this.ag=NaN,y&&Object.assign(this,y)}ke(rr,ii),rr.prototype.cloneProtected=function(a){ii.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},Et=rr.prototype,Et.Af=function(a){ii.prototype.Af.call(this,a),a.oh(),a.Ug=null,a.nf=null,a.Rh=null},Et.toString=function(){var a=Si(this.constructor)+"#"+Er(this);return this.data!==null&&(a+="("+Ui(this.data)+")"),a};function Hs(a){a.P===null?a.P=new zv:a.P.nc&&(a.P=a.P.copy())}Et.th=function(){ii.prototype.th.call(this),this.P!==null&&(this.P.nc=!0)},Et.gk=function(a,y,x,E,b,z,tt){var rt=this.diagram;rt!==null&&(a===$o&&y==="elements"?b instanceof ii?Qd(b,function(ot){dy(rt.partManager,ot),Vd(rt,ot)}):ad(rt,b):a===pa&&y==="elements"&&(b instanceof ii?Qd(b,function(ot){cy(rt.partManager,ot,rt)}):Og(rt,b)),rt.cb(a,y,x,E,b,z,tt))},Et.La=function(a){if(ii.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 ii&&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 _e),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=oi();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 Fr?a.groupSelectionAdornmentTemplate:a.nodeSelectionAdornmentTemplate),!(x instanceof lo))break t;jl(x),x=x.copy(),x!==null&&(this.ph()&&this.selectionObject===this.path&&(x.type=ii.Link),x.adornedObject=y)}if(x!==null){x.type===ii.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=le.alloc().assign(x);x.ka(),x.x=y.x,x.y=y.y,x.freeze(),a.Xl(E,x),le.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 wi);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=ki;this.locationSpot.sb()&&(z=this.locationSpot);var tt=Tt.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),Tt.free(tt)}},rr.prototype.move=function(a,y){y===!0?this.location=a:this.position=a},rr.prototype.moveTo=function(a,y,x){a=Tt.allocAt(a,y),this.move(a,x),Tt.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 _e),y.I(a)!==null)return y.I(a);var x=ii.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 Tt),x=x.Mc()?ki: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 le),a.assign(this.actualBounds)},rr.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function R1(a){var y=Tt.alloc(),x=a.locationObject,E=x.naturalBounds,b=x instanceof zr?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=le.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()||pe.B(y.width,a.width)&&pe.B(y.height,a.height)||0<=this.vw&&this.C(16),le.free(y),Hv(this,!1)}},Et=rr.prototype,Et.Xl=function(a,y){var x=this.diagram;if(x!==null){var E=!1;if(x.Zi===!1&&a.w()){var b=le.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),le.free(b)}!(this.G&65536)&&a.D(y)||Z1(this,E,x),x.N(),!a.w()&&!y.w()||Vn(a,y)||(this instanceof Li&&!x.undoManager.isUndoingRedoing&&this.Bd(),this.oh())}},Et.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 Tt(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 lo||(y=y.animationManager,y.zb&&hf(y,a,new Tt(E,b),x))}Et.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)},Et.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,Tt.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 lo||hf(x,a,new Tt(z,tt),y),E||y.x===z&&y.y===tt||a.g("position",new Tt(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 Li&&Eh(x,a),a.layer.isTemporary||y||x.Ya(),y=a.Ib;var E=x.viewportBounds;E.w()?dd(a)?(Mi(y,E)||a.Fd(!1),a.updateAdornments()):a.isVisible()&&y.Yc(E)?(a.Fd(!0),a.updateAdornments()):a.Wb():x.vd=!0}Et.si=function(){return!0},Et.Zc=function(){return!0},Et.ph=function(){return!1},Et.Dd=function(){return!0};function Wv(a,y,x,E){y.constructor===a.constructor||K1||(K1=!0,Fn('Should not change the class of the Part when changing category from "'+x+'" to "'+E+'"'),Fn(" Old class: "+Si(a.constructor)+", new class: "+Si(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 Li&&(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 Li&&(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}Et=rr.prototype,Et.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}Et.oh=function(){var a=this.containingGroup;a!==null&&(a.v(),a.placeholder!==null&&a.placeholder.v(),a.Bd())},Et.N=function(){var a=this.diagram;a!==null&&!Ls(this)&&!hd(this)&&this.isVisible()&&this.Ib.w()&&a.N(tc(this,this.Ib))},Et.v=function(){ii.prototype.v.call(this);var a=this.diagram;a!==null&&(a.De.add(this),this instanceof Li&&this.labeledLink!==null&&As(this.labeledLink),a.$b(!0))},Et.Vo=function(a){a||(a=this.Ah,a!==null&&Xv(a,this))},Et.Wo=function(a){a||(a=this.Ah,a!==null&&_v(a,this))},Et.Lj=function(){var a=this.data;if(a!==null){var y=this.diagram;y!==null&&(y=y.model,y!==null&&y.cm(a))}},Et.oz=function(){return Vv(this,this)};function Vv(a,y){var x=y.containingGroup;return x!==null?1+Vv(a,x):y instanceof Li&&(y=y.labeledLink,y!==null)?Vv(a,y):0}Et.sz=function(){return V1(this,this)};function V1(a,y){var x=y.containingGroup;return x!==null||y instanceof Li&&(x=y.labeledLink,x!==null)?V1(a,x):y}Et.Td=function(a){return a instanceof Fr?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 Li&&(y=y.labeledLink,y!==null)?Gv(a,y,x):!1:!0}Et.px=function(a){if(a===null)return null;if(this===a)return this.containingGroup;for(var y=this;y!==null;){if(y instanceof Fr&&Gm(y,!0),y instanceof Li){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 Li&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup}for(y=this;y!==null;)y instanceof Fr&&Gm(y,!1),y instanceof Li&&(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 Li&&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 Li&&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 lo)){if(a.add(y),y instanceof Li){if(x&&y instanceof Fr)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 hi)for(y=y.labelNodes;y.next();)cd(a,y.value,x,E,b,z)}}sn.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?Wr: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(pa,"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 lo?this.type!==ii.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:qt},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:Se},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:Ji},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 lo)){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 lo?this instanceof lo&&(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 hi||(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 hi?(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:Un},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:Lo},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&&te("Cannot make a Group a member of itself: "+this.toString()),te("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 Fr&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?Xv(a,this):this instanceof Fr&&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 Fr){for(x=new xn,cd(x,this,!0,0,!0),x=x.iterator;x.next();)if(E=x.value,E instanceof Li)for(E=E.linksConnected;E.next();)Wf(E.value)}if(this instanceof Li){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 te("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 Li&&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:Te},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 lo(a,y){a===void 0||a instanceof Ia||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)}ke(lo,rr),lo.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},lo.prototype.updateRelationshipsFromData=function(){},lo.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof hi&&y instanceof zr){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 zr&&(b.ua=a)}}},lo.prototype.si=function(){var a=this.ue;return a===null?!0:(a=a.part,a===null||!Ls(a))},lo.prototype.Zc=function(){return!1},lo.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 ii){var rt=b.Nl(function(ot){return ot instanceof Ms});rt instanceof Ms&&this.$a===null&&(this.$a=rt)}}else a===pa&&y==="elements"&&this.$a!==null&&(E===this.$a?this.$a=null:E instanceof ii&&this.$a.rg(E)&&(this.$a=null));rr.prototype.gk.call(this,a,y,x,E,b,z,tt)},lo.prototype.updateAdornments=function(){},lo.prototype.Lj=function(){},sn.Object.defineProperties(lo.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}}}),lo.className="Adornment";function Kv(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=mr,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 Li(a,y){a===void 0||a instanceof Ia||typeof a=="string"?rr.call(this,a):(rr.call(this),a&&(y=a)),this.U=13,this.Ba=null,this.jb=new pn,this.wc=this.af=this.Yk=null,this.ci=!1,y&&Object.assign(this,y)}ke(Li,rr),Li.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())},Et=Li.prototype,Et.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())}Et.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}Et.Lz=function(a,y,x){y==null&&(y=""),x==null&&(x=""),a=U1(this,a,y,x),a!==null&&a.Sl()},Et.gk=function(a,y,x,E,b,z,tt){a===$o&&y==="elements"?this.wc=null:a===pa&&y==="elements"&&(this.wc=null),rr.prototype.gk.call(this,a,y,x,E,b,z,tt)},Et.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)}}Et.si=function(){return!0},Li.prototype.getAvoidableRect=function(a){return a.set(this.actualBounds),a.Co(this.avoidableMargin),a},Li.prototype.findVisibleNode=function(){for(var a=this;a!==null&&!a.isVisible();)a=a.containingGroup;return a},Li.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===Da){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},Li.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)}},Li.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)})}}Li.prototype.findLinksConnected=function(a){if(a===void 0&&(a=null),a===null)return this.jb.iterator;var y=new ir(this.jb),x=this;return y.predicate=function(E){return E.fromNode===x&&E.fromPortId===a||E.toNode===x&&E.toPortId===a},y},Et=Li.prototype,Et.Mo=function(a){a===void 0&&(a=null);var y=new ir(this.jb),x=this;return y.predicate=function(E){return E.fromNode!==x?!1:a===null?!0:E.fromPortId===a},y},Et.Sd=function(a){a===void 0&&(a=null);var y=new ir(this.jb),x=this;return y.predicate=function(E){return E.toNode!==x?!1:a===null?!0:E.toPortId===a},y},Et.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 Zi(x):Wr},Et.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 Zi(x):Wr},Et.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 Zi(x):Wr},Et.jz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var E=new ir(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},Et.kz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var E=new ir(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}}}Li.prototype.updateRelationshipsFromData=function(){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)},Et=Li.prototype,Et.Vo=function(a){rr.prototype.Vo.call(this,a),a||(ip(this),a=this.Yk,a!==null&&rS(a,this))},Et.Wo=function(a){rr.prototype.Wo.call(this,a),a||(a=this.Yk,a!==null&&a.wd!==null&&(a.wd.remove(this),a.v()))},Et.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)},Et.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 _e: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=oi()),x.push(E);if(x!==null){for(a=0;a<x.length;a++)y.remove(x[a]);gi(x)}}}Et.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},Et.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}},Et.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},Et.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},Et.pg=function(){var a=this.ci;if(a===null)return null;if(a instanceof Li)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},Et.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},Et.uz=function(){return q1(this,this)};function q1(a,y){return y=y.pg(),y===null?0:1+q1(a,y)}Et.Qo=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren),y=new ir(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},Et.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 pn,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 pn,y.add(x),y.add(a)):x=a);return y!==null?y.iterator:x!==null?new Zi(x):Wr},Et.wz=function(a){a===void 0&&(a=1/0);var y=new xn;return cd(y,this,!1,a,!0),y},Li.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}Li.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}sn.Object.defineProperties(Li.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:mr},set:function(a){typeof a=="number"&&(a=new Bi(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))}}}),Li.prototype.expandTree=Li.prototype.expandTree,Li.prototype.collapseTree=Li.prototype.collapseTree,Li.prototype.findTreeParts=Li.prototype.wz,Li.prototype.findTreeChildrenNodes=Li.prototype.Ou,Li.prototype.findTreeChildrenLinks=Li.prototype.Qo,Li.prototype.findTreeLevel=Li.prototype.uz,Li.prototype.findTreeParentChain=Li.prototype.vz,Li.prototype.findTreeParentNode=Li.prototype.pg,Li.prototype.findTreeParentLink=Li.prototype.kh,Li.prototype.findCommonTreeParent=Li.prototype.gz,Li.prototype.findTreeRoot=Li.prototype.xz,Li.prototype.isInTreeOf=Li.prototype.Nz,Li.prototype.findPort=Li.prototype.ns,Li.prototype.findLinksTo=Li.prototype.kz,Li.prototype.findLinksBetween=Li.prototype.jz,Li.prototype.findNodesInto=Li.prototype.Oo,Li.prototype.findNodesOutOf=Li.prototype.Po,Li.prototype.findNodesConnected=Li.prototype.Mu,Li.prototype.findLinksInto=Li.prototype.Sd,Li.prototype.findLinksOutOf=Li.prototype.Mo,Li.prototype.findExternalTreeLinksConnected=Li.prototype.qx,Li.prototype.invalidateConnectedLinks=Li.prototype.Bd,Li.prototype.invalidateLinkBundle=Li.prototype.Lz;var Bx=new We(Li,"SpreadingNone",10),Um=new We(Li,"SpreadingEvenly",11),Uv=new We(Li,"SpreadingPacked",12);Li.className="Node",Li.SpreadingNone=Bx,Li.SpreadingEvenly=Um,Li.SpreadingPacked=Uv;function Fr(a,y){a===void 0||a instanceof Ia||typeof a=="string"?Li.call(this,a):(Li.call(this),a&&(y=a)),this.U|=4608,this.Gn=new xn,this.$a=null,this.Sc=new na,this.Sc.group=this,this.gl=new xn,this.tb=this.$p=null,y&&Object.assign(this,y)}ke(Fr,Li),Fr.prototype.cloneProtected=function(a){Li.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())},Et=Fr.prototype,Et.Af=function(a){Li.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 Li)x.Bd(y);else if(x instanceof hi)for(x=x.labelNodes;x.next();)x.value.Bd(y)}},Et.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&&te("Cannot insert a second Placeholder into the visual tree of a Group.");else if(b instanceof ii){var rt=b.Nl(function(ot){return ot instanceof Ms});rt instanceof Ms&&(this.$a===null?this.$a=rt:this.$a!==rt&&te("Cannot insert a second Placeholder into the visual tree of a Group."))}}else a===pa&&y==="elements"&&this.$a!==null&&(E===this.$a?this.$a=null:E instanceof ii&&this.$a.rg(E)&&(this.$a=null));Li.prototype.gk.call(this,a,y,x,E,b,z,tt)},Et.Xl=function(a,y){Li.prototype.Xl.call(this,a,y),this.isClipping&&this.type!==ii.Spot&&this.isSubGraphExpanded&&(a=this.resizeObject,a instanceof ii&&(a=a.Pb()),this.tb===null&&(this.tb=new le),a.mi(this.tb),a instanceof zr&&this.tb.Bc(-a.strokeWidth,-a.strokeWidth))},Et.eh=function(a,y,x,E){this.nf=this.$a,Li.prototype.eh.call(this,a,y,x,E)},Et.Va=function(){var a=this;a.isSubGraphExpanded&&this.memberParts.each(function(y){!a.computesBoundsIncludingLinks&&y instanceof hi||y.Va()}),Li.prototype.Va.call(this)},Et.si=function(){if(!Li.prototype.si.call(this))return!1;for(var a=this.memberParts;a.next();){var y=a.value;if(y instanceof Li){if(y.isVisible()&&Ls(y))return!1}else if(y instanceof hi&&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 Fr&&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 hi&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}function _v(a,y){if(a.Gn.remove(y)){y instanceof Fr&&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 hi&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}Et.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)}Li.prototype.Lj.call(this)},Fr.prototype.canAddMembers=function(a){var y=this.diagram;if(y===null)return!1;for(y=y.commandHandler,a=vn(a).iterator;a.next();)if(!y.isValidMember(this,a.value))return!1;return!0},Fr.prototype.addMembers=function(a,y){var x=this.diagram;if(x===null)return!1;x=x.commandHandler;var E=!0;for(a=vn(a).iterator;a.next();){var b=a.value;!y||x.isValidMember(this,b)?b.containingGroup=this:E=!1}return E},Fr.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))},Et=Fr.prototype,Et.Bd=function(a){var y=(this.U&65536)!==0;if(Li.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()))}}},Et.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 Li)for(b=b.linksConnected;b.next();){var z=b.value;y.contains(z)||x.add(z)}}return a&&(this.$p=x),x.iterator},Et.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 Li)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},Et.hz=function(){function a(x,E){x!==null&&(E.add(x),a(x.containingGroup,E))}var y=new xn;return a(this,y),y},Et.Rj=function(){var a=new xn;return cd(a,this,!0,0,!0),a.remove(this),a},Et.Zb=function(a){Li.prototype.Zb.call(this,a);for(var y=this.memberParts;y.next();)y.value.Zb(a)},Fr.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 Fr&&z.isSubGraphExpanded&&(z.wasSubGraphExpanded=z.isSubGraphExpanded,nS(z,y,x,E)),z instanceof Li)z.Bd(y),x.Aj(z,E);else if(z instanceof hi)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!1}Fr.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 Fr&&z.wasSubGraphExpanded&&(z.wasSubGraphExpanded=!1,iS(z,y,x,E)),z instanceof Li)z.Bd(y),x.Cj(z,E);else if(z instanceof hi)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!0}Fr.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=Tt.alloc(),Li.prototype.move.call(this,a,y),a=new xn,y=this.Rj().iterator;y.next();)b=y.value,b instanceof hi&&(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 Li&&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 hi&&(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());Tt.free(z)}},sn.Object.defineProperties(Fr.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&&te("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)}}}),Fr.prototype.expandSubGraph=Fr.prototype.expandSubGraph,Fr.prototype.collapseSubGraph=Fr.prototype.collapseSubGraph,Fr.prototype.findSubGraphParts=Fr.prototype.Rj,Fr.prototype.findContainingGroupChain=Fr.prototype.hz,Fr.prototype.findExternalNodesConnected=Fr.prototype.iz,Fr.prototype.findExternalLinksConnected=Fr.prototype.Lu,Fr.prototype.ensureBounds=Fr.prototype.Va,Fr.className="Group";function Ms(a){Le.call(this),this.yb=Nr,this.ko=new le(NaN,NaN,NaN,NaN),a&&Object.assign(this,a)}ke(Ms,Le),Ms.prototype.cloneProtected=function(a){Le.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 Ri(0,0,y.width,y.height,a.x,a.y)},Ms.prototype.Wl=function(){var a=this.part;if(a!==null&&(a instanceof Fr||a instanceof lo)||te("Placeholder is not inside a Group or Adornment."),a instanceof Fr){var y=this.computeBorder(this.ko),x=this.minSize,E=this.dc;for(ei(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=Tt.alloc(),x.xi(y,a.locationSpot),x.D(a.location)||(a.location=x),Tt.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 zr&&(tt=z.strokeWidth);var rt=z.Df(),ot=z.naturalBounds,st=(ot.width+tt)*rt;tt=(ot.height+tt)*rt,a.type!==ii.Link&&(rt=z.ga(a.category==="Selection"?Ji:a.locationSpot,Tt.alloc()),a.location=rt,Tt.free(rt)),isNaN(st)||isNaN(tt)?(a=z.ga(Ji,Tt.alloc()),st=le.allocAt(a.x,a.y,0,0),st.Ye(z.ga(Pr,a)),st.Ye(z.ga(qi,a)),st.Ye(z.ga(Kr,a)),ei(y,st.width+E||0,st.height+b||0),this.Ge(-x.left,-x.top,y.width,y.height),Tt.free(a),le.free(st)):(ei(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 Fr&&!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=le.alloc(),b=this.computeMemberBounds(x);var z=this.yb;return y instanceof Fr&&!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)),le.free(x),E&&y instanceof Fr&&y.computesBoundsIncludingLocation&&y.location.w()&&a.Ye(y.location),a},Ms.prototype.computeMemberBounds=function(a){if(!(this.part instanceof Fr))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 hi&&(!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},sn.Object.defineProperties(Ms.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new Bi(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),Ms.className="Placeholder";function hi(a){rr.call(this,ii.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 pn().freeze(),this.Tg=this.Mg=null,this.ml=new le,this.ua=new Rn,this.u=this.o=this.Sf=this.Wf=null,this.su=new Tt,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}ke(hi,rr),hi.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())},Et=hi.prototype,Et.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)},Et.qb=function(a){a.classType===hi?(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&&te("Unknown Link enum value for a Link property: "+a):rr.prototype.qb.call(this,a)},Et.Xc=function(){this.ba===null&&(this.ba=new Yg)},Et.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)))},Et.zv=function(){return!1},Et.Av=function(){},Et.Zc=function(){return!1},hi.prototype.computeAngle=function(a,y,x){return hi.computeAngle(y,x)},hi.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=pe.bp(y),90<a&&270>a&&(a-=180);break;case hp:a=pe.bp(y+90),90<a&&270>a&&(a-=180);break;case dp:a=pe.bp(y-90),90<a&&270>a&&(a-=180);break;case n0:if(a=pe.bp(y),45<a&&135>a||225<a&&315>a)return 0;90<a&&270>a&&(a-=180)}return pe.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}Et=hi.prototype,Et.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&rr.prototype.oh.call(this)},Et.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},Et.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()}Et.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)}},Et.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)}},Et.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))},hi.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},hi.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=Tt.allocAt(x.x+E,x.y+b),rr.prototype.move.call(this,a,!1),Tt.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)},hi.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},hi.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},hi.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(en),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 pe.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),pe.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},hi.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),pe.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)},Et=hi.prototype,Et.i=function(a){return this.Nb.s[a]},Et.dd=function(a,y){this.Nb.cd(a,y)},Et.L=function(a,y,x){this.Nb.cd(a,new Tt(y,x))},Et.Kz=function(a,y){this.Nb.Gb(a,y)},Et.m=function(a,y,x){this.Nb.Gb(a,new Tt(y,x))},Et.ne=function(a){this.Nb.add(a)},Et.yf=function(a,y){this.Nb.add(new Tt(a,y))},Et.pv=function(a){this.Nb.mb(a)},Et.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 pn,z=a.Nb.iterator;z.next();){var tt=z.value;b.add(new Tt(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)}}Et.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},Et.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)}},Et.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))}Et.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())}},Et.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()}}},hi.prototype.computePoints=function(){if(this.diagram===null)return!1;var a=this.fromNode,y=null;if(a===null?(jc||(jc=new Li,jc.desiredSize=de,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 Li,Wc.desiredSize=de,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;pe.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 Ht=xt,re=Pt;pe.B(ot,0)?re=0<rt?re-st:re+st:(Ht=(0>ot?-1:1)*ft+xt,re=ut*(Ht-xt)+Pt),this.Fj(),this.ne(z),this.yf(Ft,Xt),this.yf(Ht,re),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,pe.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=le.alloc(),y.mi(rt),ot=rt.ca(b),vt.mi(rt),st=rt.ca(E),(ot||st)&&(tt=y.ga(Jm(tt),new Tt),this.dd(0,this.getLinkPointFromPoint(a,y,tt,b,!0,tt)),x=vt.ga(Jm(x),new Tt),this.dd(1,this.getLinkPointFromPoint(z,vt,x,E,!1,x))),le.free(rt))}else{ft=this.isAvoiding,vt&&(ut&&ft||st)&&this.Fj();var ae=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>ae&&(xt-=180)),0>xt?xt+=360:360<=xt&&(xt-=360),st&&(Xt+=Math.abs(ae)*(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(ki,Tt.alloc()),Ht=Tt.allocAt(Xt.x+1e3*Pt,Xt.y+1e3*Ft),this.getLinkPointFromPoint(a,y,Xt,Ht,!0,ft),Tt.free(Xt),Tt.free(Ht))),Xt=this.getLinkPoint(E,b,x,!1,ut,a,y);var he=re=Ht=0;if(ut||!ot||st){var Ae=this.computeEndSegmentLength(E,b,x,!1);he=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)&&(he+=ut?0:30,0>ae&&(he+=180)),0>he?he+=360:360<=he&&(he-=360),st&&(Ae+=Math.abs(ae)*(ut?1:2)),he===0?Ht=Ae:he===90?re=Ae:he===180?Ht=-Ae:he===270?re=-Ae:(Ht=Ae*Math.cos(he*Math.PI/180),re=Ae*Math.sin(he*Math.PI/180)),x.Mc()&&st&&(x=b.ga(ki,Tt.alloc()),tt=Tt.allocAt(x.x+1e3*Ht,x.y+1e3*re),this.getLinkPointFromPoint(E,b,x,tt,!1,Xt),Tt.free(x),Tt.free(tt))}x=ft,(ut||!rt||st)&&(x=new Tt(ft.x+Pt,ft.y+Ft)),tt=Xt,(ut||!ot||st)&&(tt=new Tt(Xt.x+Ht,Xt.y+re)),!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,he,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}hi.prototype.getLinkPointFromPoint=function(a,y,x,E,b,z){if(z===void 0&&(z=new Tt),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)}hi.prototype.getLinkPoint=function(a,y,x,E,b,z,tt,rt){if(rt===void 0&&(rt=new Tt),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=Tt.alloc(),st=Tt.alloc();var ut=new le(y.ga(Ji,ot),y.ga(Pr,st)),ft=this.computeSpot(!E,tt);a=this.getLinkPoint(z,tt,ft,!E,b,a,y,st),(x.Hf(Ur)||x.Hf(Xr))&&a.y>=ut.y&&a.y<=ut.y+ut.height?rt.y=a.y:(x.Hf(to)||x.Hf(fo))&&a.x>=ut.x&&a.x<=ut.x+ut.width&&(rt.x=a.x),Tt.free(ot),Tt.free(st)}}return rt}}return x=y.ga(Jm(x),Tt.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=Tt.alloc(),tt=tt.ga(Jm(ot),z),b&&(tt=Jv(x,tt)),Tt.free(z)),this.getLinkPointFromPoint(a,y,x,tt,E,rt),Tt.free(x),rt},hi.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(ki,Tt.alloc()),this.pointsCount>(z?6:2)?(rt=b?this.i(1):this.i(this.pointsCount-2),rt=z?Jv(ot,rt.copy()):x):(x=Tt.alloc(),rt=rt.ga(ki,x),Tt.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,Tt.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},hi.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)},hi.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=ki:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===Lo?Vi:y)):(a=y||this.toPort,a===null?a=ki:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===Lo?Vi:y)),a};function Hf(a){return a===Vi||a.x===.5&&a.y===.5}function Jm(a){return a.x===.5&&a.y===.5?a:ki}hi.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==ks&&4<this.pointsCount?this.computeMidPoint(new Tt):(a=y.Zn,a=a!==null?cS(a,this):null,a!==null?a.Zo:y.ga(ki))},hi.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},hi.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=wi.alloc(),tt.reset()),tt.multiply(this.transform),this.fh(a,tt))return xv(this,y,x,b),z===void 0&&wi.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=wi.alloc(),ft.set(tt),ut instanceof ii)rt=ut.Cf(a,y,x,E,b,ft);else if(this.path===ut){if(ut instanceof zr)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=Tt.alloc(),Ht=Tt.alloc(),re=Tt.alloc(),ae=wi.alloc();ae.set(Pt),ae.bv(ut.transform),ae.Vj(),Ht.x=vt,Ht.y=Ft,Ht.transform(ae),Xt.x=rt,Xt.y=Ft,Xt.transform(ae),Pt=!1,$d(ut,Xt,Ht,re)?Pt=!0:(Xt.x=vt,Xt.y=xt,Xt.transform(ae),$d(ut,Xt,Ht,re)?Pt=!0:(Ht.x=rt,Ht.y=xt,Ht.transform(ae),$d(ut,Xt,Ht,re)?Pt=!0:(Xt.x=rt,Xt.y=Ft,Xt.transform(ae),$d(ut,Xt,Ht,re)&&(Pt=!0)))),wi.free(ae),Tt.free(Xt),Tt.free(Ht),Tt.free(re),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)),wi.free(ft)}}}return z===void 0&&wi.free(tt),rt||this.background!==null||this.areaBackground!==null}return z===void 0&&wi.free(tt),!1},hi.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},hi.prototype.computeCorner=function(){if(this.curve===cl)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},hi.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},hi.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(ki).ab(x.ga(ki))/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},hi.prototype.arrangeBundledLinks=function(a,y){if(y)for(y=0;y<a.length;y++){var x=a[y];x.computeAdjusting()===ks&&x.bb()}},hi.prototype.computeCurviness=function(){var a=this.curviness;if(isNaN(a)){a=sS;var y=this.Sf;if(y!==null){for(var x=oi(),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},hi.prototype.computeThickness=function(){if(!this.isVisible())return 0;var a=this.path;return a!==null?Math.max(a.strokeWidth,1):1},hi.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},hi.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(!pe.$(st,0)){if(pe.$(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),pe.$(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),pe.$(y,0)||(pe.$(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,Ht=.5;st!==0&&(Ht=((b-Ft)*(b-tt)+(z-Xt)*(z-ft))/st);var re=b+Ht*(tt-b),ae=z+Ht*(ft-z);y=Math.sqrt((Ft-re)*(Ft-re)+(Xt-ae)*(Xt-ae)),Xt<Pt*(Ft-re)+ae&&(y=-y),0<Pt&&(y=-y),Ft=rt+Ht*(ot-rt),Ht=ut+Ht*(vt-ut),Pt!==0?(y=Ft+y/xt,this.L(a,y,Ht-(y-Ft)/Pt)):this.L(a,Ft,Ht+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,pe.B(b.y,z.y)?pe.B(z.x,tt.x)?ut=y.y:pe.B(z.y,tt.y)&&(rt=y.x):pe.B(b.x,z.x)&&(pe.B(z.y,tt.y)?rt=y.x:pe.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,pe.B(b.y,z.y)?pe.B(z.x,tt.x)?ut=E.y:pe.B(z.y,tt.y)&&(rt=E.x):pe.B(b.x,z.x)&&(pe.B(z.y,tt.y)?rt=E.x:pe.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}},hi.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=Tt.alloc(),ut=Tt.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=Tt.alloc();Vf(xt,a.x,a.y)||(pe.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)):pe.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)):pe.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)||(pe.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)):pe.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)):pe.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))),Tt.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?pe.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)):pe.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)&&(pe.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)):pe.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())),Tt.free(st),Tt.free(ut)}},hi.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)}hi.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},hi.prototype.qc=function(){this.lk=!1,this.v()},hi.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 zr&&(b.ua=this.ua)}}},hi.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&&!pe.$(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=Rn.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&&!pe.$(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=Tt.allocAt(E,ot),x=Tt.alloc(),x.assign(this.i(1)),z=Tt.allocAt(E,ot),b=Tt.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((!pe.$(vt.x,xt.x)||!pe.$(xt.x,Pt.x))&&(!pe.$(vt.y,xt.y)||!pe.$(xt.y,Pt.y))){var Ft=ut;isNaN(Ft)&&(Ft=this.smoothness/3);var Xt=vt.x;vt=vt.y;var Ht=xt.x;xt=xt.y;var re=Pt.x;Pt=Pt.y;var ae=Ft*Qm(Xt,vt,Ht,xt);Ft*=Qm(Ht,xt,re,Pt),pe.$(vt,xt)&&pe.$(Ht,re)&&(Ht>Xt?Pt>xt?(z.x=Ht-ae,z.y=xt-ae,b.x=Ht+Ft,b.y=xt+Ft):(z.x=Ht-ae,z.y=xt+ae,b.x=Ht+Ft,b.y=xt-Ft):Pt>xt?(z.x=Ht+ae,z.y=xt-ae,b.x=Ht-Ft,b.y=xt+Ft):(z.x=Ht+ae,z.y=xt+ae,b.x=Ht-Ft,b.y=xt-Ft)),pe.$(Xt,Ht)&&pe.$(xt,Pt)&&(xt>vt?(re>Ht?(z.x=Ht-ae,z.y=xt-ae,b.x=Ht+Ft):(z.x=Ht+ae,z.y=xt-ae,b.x=Ht-Ft),b.y=xt+Ft):(re>Ht?(z.x=Ht-ae,z.y=xt+ae,b.x=Ht+Ft):(z.x=Ht+ae,z.y=xt+ae,b.x=Ht-Ft),b.y=xt-Ft)),(pe.$(Xt,Ht)&&pe.$(Ht,re)||pe.$(vt,xt)&&pe.$(xt,Pt))&&(Xt=.5*(Xt+re),vt=.5*(vt+Pt),z.x=Xt,z.y=vt,b.x=Xt,b.y=vt),(ft===1||ft===2&&pe.$(tt.x,this.i(0).x)&&pe.$(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,Wt)),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),Tt.free(y),Tt.free(x),Tt.free(z),Tt.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,Wt)),Fh(rt,z.x-E,z.y-ot,b.x-E,b.y-ot,tt.x-E,tt.y-ot);else{for(z=Tt.alloc(),z.assign(this.i(0)),b=Tt.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,Wt)),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,Ht=this.i(st),Ft=x,pe.B(z.y,vt.y)&&pe.B(vt.x,Ht.x))if(Pt=Math.min(tt,Math.abs(vt.x-b.x)/2),Pt=ae=Math.min(Pt,Math.abs(Ht.y-vt.y)/2),pe.B(Pt,0))zc(this,rt,ft,Xt,z,vt,Ft),z.assign(vt);else{var he=vt.x,Ae=vt.y;xt=he,re=Ae,vt.x>z.x?he=vt.x-Pt:he=vt.x+Pt,Ht.y>vt.y?re=vt.y+ae:re=vt.y-ae,Ht=Tt.allocAt(he,Ae),zc(this,rt,ft,Xt,z,Ht,Ft),Tt.free(Ht),Hm(rt,vt.x+ft,vt.y+Xt,xt+ft,re+Xt),z.h(xt,re)}else pe.B(z.x,vt.x)&&pe.B(vt.y,Ht.y)?(Pt=Math.min(tt,Math.abs(vt.y-b.y)/2),Pt=ae=Math.min(Pt,Math.abs(Ht.x-vt.x)/2),pe.B(ae,0)?(zc(this,rt,ft,Xt,z,vt,Ft),z.assign(vt)):(he=vt.x,Ae=vt.y,xt=he,re=Ae,vt.y>z.y?Ae=vt.y-Pt:Ae=vt.y+Pt,Ht.x>vt.x?xt=vt.x+ae:xt=vt.x-ae,Ht=Tt.allocAt(he,Ae),zc(this,rt,ft,Xt,z,Ht,Ft),Tt.free(Ht),Hm(rt,vt.x+ft,vt.y+Xt,xt+ft,re+Xt),z.h(xt,re))):(zc(this,rt,ft,Xt,z,vt,Ft),z.assign(vt));b.assign(ut),ft=st}Tt.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=Rn.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),pe.$(a,0)?y:pe.$(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;pe.$(y.x,z.x)&&pe.$(y.y,z.y);){if(x>=b)return b-1;z=a.i(x++)}if(!pe.$(y.x,z.x)&&!pe.$(y.y,z.y))return x-1;for(var tt=z;pe.$(y.x,z.x)&&pe.$(z.x,tt.x)&&(!E||(y.y>=z.y?z.y>=tt.y:z.y<=tt.y))||pe.$(y.y,z.y)&&pe.$(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}hi.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(pe.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(pe.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 hi){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=pe.B(a.y,y.y),z=E.pointsCount,tt=E.i(0),rt=Tt.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(pe.B(ut,vt)){if(!pe.B(ft,xt)&&pe.B(tt,Xt)&&Math.min(ft,xt)<tt&&Math.max(ft,xt)>tt&&Math.min(Pt,Ft)<ut&&Math.max(Pt,Ft)>ut&&!pe.B(Pt,Ft)){rt.x=ut,rt.y=tt,ut=!0;break t}}else if(pe.B(ft,xt)&&pe.B(Pt,Ft)&&Math.min(ut,vt)<Pt&&Math.max(ut,vt)>Pt&&Math.min(tt,Xt)<ft&&Math.max(tt,Xt)>ft&&!pe.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}Tt.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()))}hi.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 hi&&(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 hi&&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())}}hi.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},hi.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},hi.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)},hi.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()))}hi.prototype.ph=function(){return!0},sn.Object.defineProperties(hi.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:Lo},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&&Jn(a,">= 0",hi,"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:Lo},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&&Jn(a,">= 0",hi,"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?Wr: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 zr?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),pe.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);pe.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 Tt)}},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);pe.$(E.x,b.x)?(E=b.y-E.y,0>E&&(E=-E)):pe.$(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 pn,E=0;E<a.length/2;E++)b=new Tt(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(!Be(z)||typeof z.x!="number"||isNaN(z.x)||typeof z.y!="number"||isNaN(z.y)){E=!1;break}}if(E)for(x=new pn,E=0;E<a.length;E++)b=a[E],x.add(new Tt(b.x,b.y).freeze())}}else if(a instanceof pn)for(x=a.copy(),a=x.iterator;a.next();)a.value.freeze();else te("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)}}}),hi.prototype.invalidateOtherJumpOvers=hi.prototype.Xo,hi.prototype.findClosestSegment=hi.prototype.ez,hi.prototype.updateRoute=hi.prototype.vg,hi.prototype.invalidateRoute=hi.prototype.bb,hi.prototype.rollbackRoute=hi.prototype.rv,hi.prototype.commitRoute=hi.prototype.zf,hi.prototype.startRoute=hi.prototype.uh,hi.prototype.clearPoints=hi.prototype.Fj,hi.prototype.removePoint=hi.prototype.pv,hi.prototype.addPointAt=hi.prototype.yf,hi.prototype.addPoint=hi.prototype.ne,hi.prototype.insertPointAt=hi.prototype.m,hi.prototype.insertPoint=hi.prototype.Kz,hi.prototype.setPointAt=hi.prototype.L,hi.prototype.setPoint=hi.prototype.dd,hi.prototype.getPoint=hi.prototype.i,hi.prototype.getOtherPort=hi.prototype.Cz,hi.prototype.getOtherNode=hi.prototype.To;var jc=null,Wc=null,ty=new We(hi,"Normal",1),Ix=new We(hi,"Orthogonal",2),Rx=new We(hi,"AvoidsNodes",6),aS=new We(hi,"AvoidsNodesStraight",7),ks=new We(hi,"None",0),cl=new We(hi,"Bezier",9),Th=new We(hi,"JumpGap",10),Zf=new We(hi,"JumpOver",11),ap=new We(hi,"End",17),$m=new We(hi,"Scale",18),t0=new We(hi,"Stretch",19),sp=new We(hi,"OrientAlong",21),lp=new We(hi,"OrientPlus90",22),up=new We(hi,"OrientMinus90",23),ey=new We(hi,"OrientOpposite",24),e0=new We(hi,"OrientUpright",25),hp=new We(hi,"OrientPlus90Upright",26),dp=new We(hi,"OrientMinus90Upright",27),n0=new We(hi,"OrientUpright45",28),sS=16,lS=14,cp=8;hi.className="Link",hi.Normal=ty,hi.Orthogonal=Ix,hi.AvoidsNodes=Rx,hi.AvoidsNodesStraight=aS,hi.None=ks,hi.Bezier=cl,hi.JumpGap=Th,hi.JumpOver=Zf,hi.End=ap,hi.Scale=$m,hi.Stretch=t0,hi.OrientAlong=sp,hi.OrientPlus90=lp,hi.OrientMinus90=up,hi.OrientOpposite=ey,hi.OrientUpright=e0,hi.OrientPlus90Upright=hp,hi.OrientMinus90Upright=dp,hi.OrientUpright45=n0,hi.EndSegmentStep=8,hi.CurvinessStart=sS,hi.SpacingMin=lS,hi.OrthoShortCut=cp;function i0(a,y,x,E){bi(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){bi(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=oi(),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++}}}sn.Object.defineProperties(fp.prototype,{bounds:{get:function(){return new le(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(){bi(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 Fr?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(Ji,Tt.alloc()),ot=a.port.ga(Pr,Tt.alloc());for(b=le.allocAt(rt.x,rt.y,0,0),b.Ye(ot),Tt.free(rt),Tt.free(ot),rt=Tt.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(Tt.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=Tt.alloc(),ot=Tt.alloc(),tt=Tt.alloc(),st=Tt.alloc(),ft.ga(Ji,rt),ft.ga(qi,ot),ft.ga(Pr,tt),ft.ga(Kr,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 Ht=Pt=0,re=1,ae=Ft=0;for(Xt=0;Xt<z.length;Xt++){var he=z[Xt];if(he!==null){if(Pt!==he.Nc){switch(Pt=he.Nc,Pt){case 8:var Ae=tt;Ht=st;break;case 2:Ae=st,Ht=rt;break;case 1:Ae=rt,Ht=ot;break;default:case 4:Ae=ot,Ht=tt}switch(Ft=Ht.x-Ae.x,ae=Ht.y-Ae.y,Pt){case 8:vt>Math.abs(Ft)?(re=Math.abs(Ft)/vt,vt=Math.abs(Ft)):re=1;break;case 2:xt>Math.abs(ae)?(re=Math.abs(ae)/xt,xt=Math.abs(ae)):re=1;break;case 1:ft>Math.abs(Ft)?(re=Math.abs(Ft)/ft,ft=Math.abs(Ft)):re=1;break;default:case 4:ut>Math.abs(ae)?(re=Math.abs(ae)/ut,ut=Math.abs(ae)):re=1}Ht=0}var qe=he.Zo;if(E===Uv){switch(he=he.link.computeThickness(),he*=re,qe.set(Ae),Pt){case 8:qe.x=Ae.x+Ft/2+vt/2-Ht-he/2;break;case 2:qe.y=Ae.y+ae/2+xt/2-Ht-he/2;break;case 1:qe.x=Ae.x+Ft/2-ft/2+Ht+he/2;break;default:case 4:qe.y=Ae.y+ae/2-ut/2+Ht+he/2}Ht+=he}else{var Pi=.5;E===Um&&(Pi=(he.Uo+1)/(he.Gl+1)),qe.x=Ae.x+Ft*Pi,qe.y=Ae.y+ae*Pi}}}for(Tt.free(rt),Tt.free(ot),Tt.free(tt),Tt.free(st),Ae=a.pe,z=0;z<Ae.length;z++)E=Ae[z],E!==null&&(E.Ju=a.computeEndSegmentLength(E));a.ap=x,le.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,Vi,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 Tt,this.Gl=this.Uo=0,this.Zo=new Tt,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 na(a){bi(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new Tt(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,a&&Object.assign(this,a)}na.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},na.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},na.prototype.qb=function(){},na.prototype.toString=function(){var a=Si(this.constructor);return a+="(",this.group!==null&&(a+=" in "+this.group),this.diagram!==null&&(a+=" for "+this.diagram),a+")"},na.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())}}},na.prototype.createNetwork=function(){return new Wo(this)},na.prototype.makeNetwork=function(a){var y=this.createNetwork();return a instanceof $e?(y.lg(a.nodes,!0),y.lg(a.links,!0)):a instanceof Fr?y.lg(a.memberParts):y.lg(a.iterator),y},na.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")}},na.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()}},na.prototype.doLayout=function(a){var y=new xn;a instanceof $e?(fd(this,y,a.nodes,!0,this.rh,!0,!1,!0),fd(this,y,a.parts,!0,this.rh,!0,!1,!0)):a instanceof Fr?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},na.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 Fr&&(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++}},na.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 hi)&&(gp(rt),this.rh(rt))){var ot=rt.measuredBounds,st=ot.width;ot=ot.height,rt.moveTo(x,E),rt instanceof Fr&&(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++}}},na.prototype.rh=function(a){return!!(!a.location.w()||a instanceof Fr&&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 Li?ot.isLinkLabel||(ot instanceof Fr&&ot.layout===null?fd(a,y,ot.memberParts,!1,b,z,tt,rt):(gp(ot),y.add(ot))):tt&&ot instanceof hi?y.add(ot):!rt||!ot.Zc()||ot instanceof Li||(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()}na.prototype.ni=function(a,y){var x=this.boundsComputation;return x!==null?(y||(y=new le),x(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},na.prototype.ex=function(a){var y=new xn;return a instanceof $e?(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 Fr?fd(this,y,a.memberParts,!1,null,!0,!0,!0):fd(this,y,a.iterator,!1,null,!0,!0,!0),y},na.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(Ji),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},sn.Object.defineProperties(na.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())}}}),na.prototype.collectParts=na.prototype.ex,na.prototype.getLayoutBounds=na.prototype.ni,na.prototype.invalidateLayout=na.prototype.C,na.className="Layout";function Wo(a){bi(this),this.Sc=a,this.wf=new xn,this.ye=new xn,this.Es=new _e,this.zs=new _e}Wo.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 _e,this.zs=new _e},Wo.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},Wo.prototype.createVertex=function(){return new Ra(this)},Wo.prototype.createEdge=function(){return new nl(this)},Wo.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 Li)return!tt.isLinkLabel;if(tt instanceof hi){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 Li&&(!y||E.isTopLevel)&&E.canLayout()&&x(E)){if(E instanceof Fr&&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 hi&&(!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))}}},Wo.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},Et=Wo.prototype,Et.dh=function(a){if(a!==null){this.wf.add(a);var y=a.node;y!==null&&this.Es.add(y,a),a.network=this}},Et.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},Et.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}Et.Zy=function(a){a!==null&&(a=this.ki(a),a!==null&&this.Iu(a))},Et.ki=function(a){return a===null?null:this.Es.I(a)},Et.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}}Et.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},Et.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))}Et.Yy=function(a){a!==null&&(a=this.Lo(a),a!==null&&this.Mj(a))},Et.Lo=function(a){return a===null?null:this.zs.I(a)},Et.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},Et.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))}},Et.Ko=function(){for(var a=oi(),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)},Wo.prototype.deleteArtificialVertexes=function(){for(var a=oi(),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=oi(),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=oi(),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)}Wo.prototype.Zx=function(a){a===void 0&&(a=!0),a&&(this.deleteArtificialVertexes(),jx(this),this.Ko()),a=new pn;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))}}Wo.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},sn.Object.defineProperties(Wo.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}}}),Wo.prototype.findAllParts=Wo.prototype.dz,Wo.prototype.splitIntoSubNetworks=Wo.prototype.Zx,Wo.prototype.deleteSelfEdges=Wo.prototype.Ko,Wo.prototype.reverseEdge=Wo.prototype.gm,Wo.prototype.linkVertexes=Wo.prototype.Zj,Wo.prototype.findEdge=Wo.prototype.Lo,Wo.prototype.deleteLink=Wo.prototype.Yy,Wo.prototype.deleteEdge=Wo.prototype.Mj,Wo.prototype.addLink=Wo.prototype.Dy,Wo.prototype.addEdge=Wo.prototype.Bo,Wo.prototype.findVertex=Wo.prototype.ki,Wo.prototype.deleteNode=Wo.prototype.Zy,Wo.prototype.deleteVertex=Wo.prototype.Iu,Wo.prototype.addNode=Wo.prototype.Bl,Wo.prototype.addVertex=Wo.prototype.dh,Wo.prototype.addParts=Wo.prototype.lg,Wo.className="LayoutNetwork";function Ra(a){bi(this),this.ob=a,this.j=new le(0,0,10,10).freeze(),this.o=new Tt(5,5).freeze(),this.Sh=this.ub=null,this.tg=new pn,this.mg=new pn}Ra.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new pn,this.mg=new pn},Ra.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutVertex#"+Er(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},Ra.prototype.commit=function(){var a=this.ub;if(a!==null){var y=this.bounds,x=a.bounds;Be(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 Fr)){x=le.alloc(),a.Va();var E=this.network.layout.ni(a,x),b=a.locationObject.ga(ki);if(E.w()&&b.w()){a.moveTo(y.x+this.focusX-(b.x-E.x),y.y+this.focusY-(b.y-E.y)),le.free(x);return}le.free(x)}a.moveTo(y.x,y.y)}},Ra.prototype.Cl=function(a){a!==null&&(this.tg.contains(a)||this.tg.add(a))},Ra.prototype.Kl=function(a){a!==null&&this.tg.remove(a)},Ra.prototype.zl=function(a){a!==null&&(this.mg.contains(a)||this.mg.add(a))},Ra.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}sn.Object.defineProperties(Ra.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=le.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),le.free(x),!(a instanceof Fr)&&(a=a.locationObject.ga(ki),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 pn,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}}}),Ra.prototype.deleteDestinationEdge=Ra.prototype.Jl,Ra.prototype.addDestinationEdge=Ra.prototype.zl,Ra.prototype.deleteSourceEdge=Ra.prototype.Kl,Ra.prototype.addSourceEdge=Ra.prototype.Cl,Ra.className="LayoutVertex",Ra.standardComparer=ly,Ra.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){bi(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#"+Er(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},sn.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){na.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)}ke($a,na),$a.prototype.cloneProtected=function(a){na.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:te("Unknown enum value: "+a):na.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 Fr)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=le.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,Ht=0,re=0;re<b.length;re++){var ae=b[re],he=this.ni(ae,st),Ae=Math.ceil((he.width+rt)/ut)*ut,qe=Math.ceil((he.height+ot)/ft)*ft;switch(vt){case lu:var Pi=Math.abs(Pt-he.width);break;default:Pi=Pt+he.width}switch((0<z&&Xt>z-1||0<tt&&0<Xt&&Pi-xt>tt)&&(E.push(new le(0,Ft,tt+rt,Ht)),Xt=0,Pt=xt,Ft+=Ht,Ht=0),Ht=Math.max(Ht,qe),vt){case lu:he=-he.width;break;default:he=0}switch(ae.moveTo(Pt+he,Ft),vt){case lu:Pt-=Ae;break;default:Pt+=Ae}Xt++}E.push(new le(0,Ft,tt+rt,Ht)),le.free(st);break;case pp:for(ot=tt,ut=z,ft=y,vt=x,tt=le.alloc(),xt=Math.max(this.cellSize.width,1),z=Ft=st=0,rt=Tt.alloc(),Pt=0;Pt<b.length;Pt++)Ht=b[Pt],Xt=this.ni(Ht,tt),Ht=Dh(Ht,Ht.locationObject,Ht.locationSpot,rt),st=Math.max(st,Ht.x),Ft=Math.max(Ft,Xt.width-Ht.x),z=Math.max(z,Ht.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=Ht=this.arrangementOrigin.x;for(re=this.arrangementOrigin.y,Ft=0,ot>=st&&(ot-=st),st=ae=0,Ae=Math.max(this.cellSize.height,1),he=z=0,qe=!0,Xt=Tt.alloc(),Pi=0;Pi<b.length;Pi++){var Oi=b[Pi],ui=this.ni(Oi,tt),On=Dh(Oi,Oi.locationObject,Oi.locationSpot,rt);if(0<Ft)switch(Pt){case lu:Wi=(Wi-Ht-(ui.width-On.x))/xt,Wi=pe.$(Math.round(Wi),Wi)?Math.round(Wi):Math.floor(Wi),Wi=Wi*xt+Ht;break;default:Wi=(Wi-Ht+On.x)/xt,Wi=pe.$(Math.round(Wi),Wi)?Math.round(Wi):Math.ceil(Wi),Wi=Wi*xt+Ht}else switch(Pt){case lu:ae=Wi+On.x+ui.width;break;default:ae=Wi-On.x}switch(Pt){case lu:var kr=-(Wi+On.x)+ae;break;default:kr=Wi+ui.width-On.x-ae}if(0<ut&&Ft>ut-1||0<ot&&0<Ft&&kr>ot){for(E.push(new le(0,qe?re-z:re,ot+ft,he+z+vt)),Wi=0;Wi<Ft&&Pi!==Ft;Wi++){kr=b[Pi-Ft+Wi];var Cr=Dh(kr,kr.locationObject,kr.locationSpot,Xt);kr.moveTo(kr.position.x,kr.position.y+z-Cr.y)}he+=vt,re=qe?re+he:re+(he+z),Ft=he=z=0,Wi=Ht,qe=!1}switch(Wi===Ht&&(st=Pt===lu?Math.max(st,ui.width-On.x):Math.min(st,-On.x)),z=Math.max(z,On.y),he=Math.max(he,ui.height-On.y),isFinite(Ae)&&(he=Math.max(he,Math.max(ui.height,Ae)-On.y)),qe?Oi.moveTo(Wi-On.x,re-On.y):Oi.moveTo(Wi-On.x,re),Pt){case lu:Wi-=On.x+ft;break;default:Wi+=ui.width-On.x+ft}Ft++}if(E.push(new le(0,re,ot+ft,(qe?he:he+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(Tt.free(rt),Tt.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);le.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 Tt(b+y/2-(z+b),tt-x/2)):this.commitLayers(E,new Tt(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}sn.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 We($a,"Position",0),pp=new We($a,"Location",1),s0=new We($a,"LeftToRight",2),lu=new We($a,"RightToLeft",3),uy=new We($a,"Forward",4),l0=new We($a,"Reverse",5),mp=new We($a,"Ascending",6),u0=new We($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 _e,this.bf=new _e,this.aj=new _e,this.H=null,this.tp=!1}Et=Co.prototype,Et.clear=function(){this.On.clear(),this.Dn.clear(),this.Pa.clear(),this.cf.clear(),this.bf.clear(),this.aj.clear()},Et.Xe=function(a){this.H=a},Et.oi=function(a){if(a instanceof Li){if(this.On.add(a),a instanceof Fr){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 hi?this.Dn.add(a):a instanceof lo||this.Pa.add(a);y=a.data,y===null||a instanceof lo||(a instanceof hi?this.bf.add(y,a):this.cf.add(y,a))},Et.pc=function(a){if(a.Ej(),a instanceof Li){if(this.On.remove(a),a instanceof Fr){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 hi?this.Dn.remove(a):a instanceof lo||this.Pa.remove(a);y=a.data,y===null||a instanceof lo||(a instanceof hi?this.bf.remove(y):this.cf.remove(y))},Et.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 Fr)&&te('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 Fr||te('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 hi||te('Invalid link template in Diagram.linkTemplateMap: template for "'+E+'" must be a Link, not a normal Node or simple Part: '+x);for(y=oi(),x=a.selection.iterator;x.next();)(E=x.value.data)&&y.push(E);for(x=oi(),a=a.highlighteds.iterator;a.next();)(E=a.value.data)&&x.push(E);for(a=oi(),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,Fn('No Group template found for category "'+x+'"'),Fn(" Using default group template")),y=a.ly))):(y=a.nodeTemplateMap.I(x),y===null&&(y=a.nodeTemplateMap.I(""),y===null&&(yS||(yS=!0,Fn('No Node template found for category "'+x+'"'),Fn(" 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,Fn('No Link template found for category "'+a+'"'),Fn(" 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 Li?a:null)},Co.prototype.findLinkForKey=function(){return null},Et=Co.prototype,Et.Lc=function(a){if(a===null)return null;var y=this.cf.I(a);return y!==null?y:y=this.bf.I(a)},Et.ii=function(a){return a===null?null:(a=this.cf.I(a),a instanceof Li?a:null)},Et.Kc=function(a){return a===null?null:this.bf.I(a)},Et.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(Be(tt)&&hy(this,b,tt)){y.add(E);break}}}return y.iterator},Et.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(Be(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(zn(z)){if(!zn(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(Be(y)&&Be(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"&&Be(tt)&&pS(this,tt),y.isModified=!0}else if(x===pa){var rt=a.oldValue;E==="nodeDataArray"&&Be(rt)&&this.ip(rt),y.isModified=!0}else x===Fa&&(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===pa){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=oi()),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(zn(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(zn(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 _e;if(zn(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 _e,tt=E.iterator;tt.next();){var rt=tt.value;if(rt instanceof hi)a||rt.fromNode!==null&&rt.toNode!==null||b.add(rt);else if(rt instanceof Li&&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 _e;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 Li){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 Fr&&z instanceof Fr)for(y=y.memberParts;y.next();)tt=h0(a,y.value,x,E,b),tt instanceof hi||tt===null||(tt.containingGroup=z)}else if(y instanceof hi&&z instanceof hi)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 Li&&(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 hi||(E=b.copyNodeData(E),Be(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 hi||(b=y.copyNodeData(E)),Be(b)&&(x.data=b)));return x},sn.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)}ke(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 Li&&(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 Li&&(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 Fr?xt.containingGroup=Ft:xt.containingGroup=null}else xt.containingGroup=null}}else if(b==="linkLabelKeys"){var Xt=this.Kc(a.object);if(Xt!==null){var Ht=a.oldValue,re=a.newValue;Array.isArray(Ht)&&Ht.forEach(function(On){0<=re.indexOf(On)||(On=y.Vb(On),On!==null&&(On.labeledLink=null))}),Array.isArray(re)&&re.forEach(function(On){On=y.Vb(On),On!==null&&(On.labeledLink=Xt)})}}else if(b==="linkCategory"){var ae=this.Kc(a.object),he=a.newValue;ae!==null&&typeof he=="string"&&(ae.category=he)}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 qe=this.Kc(a.object),Pi=this.Vb(Ae);qe!==null&&Pi!==null&&(Pi.labeledLink=qe)}x.isModified=!0}else if(E===pa){var Wi=a.oldValue;if(b==="linkDataArray"&&typeof Wi=="object"&&Wi!==null)this.ip(Wi);else if(b==="linkLabelKeys"&&pd(Wi)){var Oi=this.Vb(Wi);Oi!==null&&(Oi.labeledLink=null)}x.isModified=!0}}else if(E===To){var ui=a.propertyName;a.object!==x.model||ui!=="linkFromKeyProperty"&&ui!=="linkToKeyProperty"&&ui!=="linkFromPortIdProperty"&&ui!=="linkToPortIdProperty"&&ui!=="linkLabelKeysProperty"&&ui!=="nodeIsGroupProperty"&&ui!=="nodeGroupKeyProperty"&&ui!=="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 hi){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 lo)&&(y=E.lh(y),y=x.findPartForKey(y),y===null||y instanceof Fr)&&(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 Fr&&y.lh(tt)===x&&(tt=this.Lc(tt),tt!==null&&(tt.containingGroup=b)):(z.link=this.Kc(tt),z.link!==null&&b instanceof Li&&(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 Fr&&(b.containingGroup=a))}},Ga.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof Li){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 Fr)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 hi)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 hi){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 Li&&(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 Li||(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}ke(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 Li&&(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 Li&&y.mh(z)===x&&d0(this,b,this.ii(z))}hu(y,x)}a=y.mh(a),a!==void 0&&b instanceof Li&&(a=this.Vb(a),d0(this,a,b))}},bl.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof Li){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(pa,"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 Xi(a,y){this.kl=new xn,this.il=new xn,this.Wv=`,
|
|
"insertedNodeKeys": `,this.jy=`,
|
|
"modifiedNodeData": `,this.Yv=`,
|
|
"removedNodeKeys": `,this.vh=null,bi(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new _e,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 _e,this.Lt=new pn,this.Wg=!1,this.o=null,this.undoManager=new qo,a!==void 0&&(zn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}Xi.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},Xi.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Xi.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},Xi.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)+":"+Ui(b)}}return y},Xi.prototype.xA=function(a){a.change!==Fa&&te("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+a.toString());var y=a.object;return a.isTransactionFinished&&y instanceof xa?(AS(this,y),a=this.Qv(y,a.propertyName==="FinishedUndo"),this.vh=null,a):null},Xi.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===pa&&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 Xi||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},Xi.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=io++,E.set(ft,vt),b.set(ft,y))}if(!Be(y))return y;z||(z=[]);var rt=Object.isExtensible(y);if(E||(E=new _e),rt){var ot=E.get(y);if(ot)return ot}else for(b||(b=new _e),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 Tt||y instanceof zt||y instanceof le||y instanceof Bi||y instanceof ri)ot=y.copy(),tt(y,ot);else{if(y instanceof wo||y instanceof Rn||y instanceof We)return y;if(y instanceof pn)ot=new pn().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 _e)ot=new _e().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}Et=Xi.prototype,Et.quote=function(a){return JSON.stringify(a).replace(/[\u007F-\uFFFF]/g,function(y){return"\\u"+("0000"+y.charCodeAt(0).toString(16)).substr(-4)})},Et.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},Et.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,Be(y)&&(a.dm(y),a.modelData=y)}Et.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)},Et.kv=function(a){ES(this,a),a=a.nodeDataArray,zn(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 _e,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===pa)&&(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(Be(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}Et.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===pa&&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 Xi||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},Et.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)&&te("applyIncrementalJson cannot change Model properties"),ES(this,a);var y=a.insertedNodeKeys,x=a.modifiedNodeData,E=new _e;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)},Et.$x=function(a,y){a.change!==Fa&&te("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+a.toString());var x=a.object;return a.isTransactionFinished&&x instanceof xa?(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 }'},Et.yA=function(a,y){return this.$x(a,y)},Et.np=function(a){return a===void 0&&(a=yp(this,this)),'{ "class": '+this.quote(a)+this.rm()+this.Rv()+"}"},Et.toJSON=function(a){return this.np(a)},Et.Zw=function(a){var y=null;if(typeof a=="string")try{y=Xe.JSON.parse(a)}catch(E){}else typeof a=="object"?y=a:te("Unable to modify a Model from: "+a);var x=y.incremental;typeof x!="number"&&te("Unable to apply non-incremental changes to Model: "+a),x!==0&&(this.Ea("applyIncrementalJson"),this.fp(y),this.eb("applyIncrementalJson"))},Et.Ky=function(a){return this.Zw(a)},Xi.constructGraphLinksModel=function(){return new Xi},Et=Xi.prototype,Et.dm=function(a){if(zn(a))for(var y=a.length,x=0;x<y;x++){var E=a[x];if(Be(E)){var b=x;E=this.dm(E),Array.isArray(a)?a[b]=E:te("Cannot replace an object in an HTMLCollection or NodeList at "+b)}}else if(Be(a)){for(y in a)if(x=a[y],Be(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 pn,E=0;E<x.length/2;E++)b.add(new Tt(x[2*E],x[2*E+1]));b.freeze(),a[y]=b}}return Wx(a)}return a},Et.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()):zn(a)?gd(this,a):Be(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 br;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 Tt)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 le)y={class:"go.Rect",x:Fs(x.x),y:Fs(x.y),width:Fs(x.width),height:Fs(x.height)};else if(x instanceof Bi)y={class:"go.Margin",top:Fs(x.top),right:Fs(x.right),bottom:Fs(x.bottom),left:Fs(x.left)};else if(x instanceof ri)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 Rn?(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(Ji)||(y.spot1=x.spot1),x.spot2.D(Pr)||(y.spot2=x.spot2),x.type===Rn.o&&(y.path=Rn.ia(x))):x instanceof We&&(y={class:"go.EnumValue",classType:yp(a,x.classType),name:x.name});E="{",x=!0;for(var b in y){var z=Ca(y,b);if(!bS(b,z))if(x?x=!1:E+=",",E+=a.quote(b)+":",b==="points"&&z instanceof pn){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 Tt(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 le(Ds(a.x),Ds(a.y),Ds(a.width),Ds(a.height));else if(y==="Margin")x=new Bi(Ds(a.top),Ds(a.right),Ds(a.bottom),Ds(a.left));else if(y==="Spot")typeof a.enum=="string"?x=ur(a.enum):x=new ri(Ds(a.x),Ds(a.y),Ds(a.offsetX),Ds(a.offsetY));else if(y==="Brush"){if(x=new wo,x.type=ar(wo,a.type),typeof a.color=="string"&&(x.color=a.color),a.start instanceof ri&&(x.start=a.start),a.end instanceof ri&&(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,Be(a))for(var E in a)x.addColorStop(parseFloat(E),a[E])}else y==="Geometry"?(x=null,typeof a.path=="string"?x=Rn.parse(a.path):x=new Rn,x.type=ar(Rn,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 ri&&(x.spot1=a.spot1),a.spot2 instanceof ri&&(x.spot2=a.spot2)):y==="EnumValue"&&(E=a.classType,E.indexOf("go.")===0&&(E=E.substr(3)),E=py(E),typeof E=="function"&&(x=ar(E,a.name)));return x}Et.Pe=function(a){return this.Lt.add(a),this},Et.ik=function(a){this.Lt.remove(a)},Et.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)},Et.cb=function(a,y,x,E,b,z,tt){Ta(this,"",a,y,x,E,b,z,tt)},Et.g=function(a,y,x,E,b){Ta(this,"",To,a,this,y,x,E,b)},Et.Fs=function(a,y,x,E,b,z){Ta(this,"",To,y,a,x,E,b,z)};function Ta(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)}Xi.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,Be(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&&Ii(this.Tc,x,a),E!==void 0&&this.kb.add(E,a)))):a.modelChange===""?((E=a.object)&&!zn(E)&&a.propertyName&&(E=Ca(a.object,a.propertyName)),zn(E)&&typeof x=="number"&&(a=a.newValue,y?Ki(E,x):Ii(E,x,a))):te("unknown ChangedEvent.Insert modelChange: "+a.toString())):a.change===pa?(x=a.oldParam,a.modelChange==="nodeDataArray"?(a=a.oldValue,Be(a)&&typeof x=="number"&&(E=this.wa(a),y?(this.Tc[x]!==a&&Ii(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)&&!zn(E)&&a.propertyName&&(E=Ca(a.object,a.propertyName)),zn(E)&&typeof x=="number"&&(a=a.oldValue,y?Ii(E,x,a):Ki(E,x))):te("unknown ChangedEvent.Remove modelChange: "+a.toString())):a.change!==Fa&&te("unknown ChangedEvent: "+a.toString())},Xi.prototype.Ea=function(a){return this.undoManager.Ea(a)},Xi.prototype.eb=function(a){return this.undoManager.eb(a)},Xi.prototype.Kf=function(){return this.undoManager.Kf()},Xi.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}},Et=Xi.prototype,Et.La=function(a,y){y===void 0&&(y=""),Ta(this,"SourceChanged",Fa,y,a,null,null)},Et.wa=function(a){if(a!==null){var y=this.Th;if(y!==""&&(y=Ca(a,y),y!==void 0)){if(pd(y))return y;te("Key value for node data "+a+" is not a number or a string: "+y)}}},Et.km=function(a,y){if(a!==null){var x=this.Th;if(x!=="")if(this.lb(a)){var E=Ca(a,x);E!==y&&this.hc(y)===null&&(ta(a,x,y),E!==void 0&&this.kb.remove(E),this.kb.add(y,a),Ta(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"}Et.lb=function(a){var y=this.wa(a);return y===void 0?!1:this.kb.I(y)===a},Et.hc=function(a){return a===null&&te("Model.findNodeDataForKey:key must not be null"),a!==void 0&&pd(a)?this.kb.I(a):null},Et.$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)}}}}},Et.xf=function(a){a!==null&&(Sr(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&&te("Model.makeNodeDataKeyUnique failed on "+y+". Data not added to Model."),a.kb.add(E,y),E=null,x&&(E=a.Tc.length,Ii(a.Tc,E,y)),Ta(a,"nodeDataArray",$o,"nodeDataArray",a,null,y,null,E),a.fm(y),a.em(y))}Et.Fy=function(a){if(zn(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)},Et.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)}Ta(a,"nodeDataArray",pa,"nodeDataArray",a,y,null,E,null),a.qp(y)}Et.nA=function(a){if(zn(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)},Et.$z=function(a){if(a!==this.nodeDataArray&&zn(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()}},Et.jp=function(a,y){y!==void 0&&(a=vp(this,a),a instanceof xn&&this.Vf.add(y,a))},Et.Lv=function(){},Et.fm=function(){},Et.em=function(){},Et.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)}Et.Qy=function(a){a===void 0?this.Vf.clear():this.Vf.remove(a)},Xi.prototype.copyNodeData=function(a){if(a===null)return null;var y=this.Bk;return a=y!==null?y(a,this):f0(this,a,!0),Be(a)&&bi(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 bi(E),E}if(x&&Be(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=Ca(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 Xi||z instanceof qo||z instanceof xa||z instanceof Ho||(z=f0(a,z,!1)),ta(x,E,z)}return bi(x),x}return y instanceof Tt||y instanceof zt||y instanceof le||y instanceof ri||y instanceof Bi?y.copy():y}Xi.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 Le&&(FS=!0,Fn('Model.setDataProperty is modifying a GraphObject, "'+a.toString()+'"'),Fn(" Is that really your intent?"));var E=Ca(a,y);E!==x&&(ta(a,y,x),this.Fs(a,y,E,x))},Et=Xi.prototype,Et.set=function(a,y,x){this.setDataProperty(a,y,x)},Et.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])}},Et.Ay=function(a,y){this.ts(a,-1,y)},Et.ts=function(a,y,x){0>y&&(y=a.length),Ii(a,y,x),Ta(this,"",$o,"",a,null,x,null,y)},Et.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&te("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];Ki(a,y),Ta(this,"",pa,"",a,x,null,y,null)},Et.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=Ca(a,y),y===void 0))return"";if(typeof y=="string")return y;te("getCategoryForNodeData found a non-string category for "+a+": "+y)},Et.jm=function(a,y){if(a!==null){var x=this.lj;if(x!=="")if(this.lb(a)){var E=Ca(a,x);E===void 0&&(E=""),E!==y&&(ta(a,x,y),Ta(this,"nodeCategory",To,x,a,E,y))}else ta(a,x,y)}},Et.lm=function(a,y){this.jm(y,this.Ro(a))},Et.Tl=function(){return!1},Et.Wj=function(){return!1},Et.ri=function(){return!1},Et.xs=function(){return!1},Et.Xj=function(){return!1};function gy(){return new Xi}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]:Xe.go!==void 0&&Xe.go[a]?Xe.go[a]:null}function Ca(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){}}sn.Object.defineProperties(Xi.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===""&&te("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&te("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];Be(b)||te("Model.nodeDataArray must only contain Objects, not: "+b),Sr(b)}for(this.Tc=a,E=new pn,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(Ta(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"}}}),Xi.prototype.setCategoryForNodeData=Xi.prototype.jm,Xi.prototype.getCategoryForNodeData=Xi.prototype.Ro,Xi.prototype.removeArrayItem=Xi.prototype.ov,Xi.prototype.insertArrayItem=Xi.prototype.ts,Xi.prototype.addArrayItem=Xi.prototype.Ay,Xi.prototype.assignAllDataProperties=Xi.prototype.Do,Xi.prototype.set=Xi.prototype.set,Xi.prototype.clearUnresolvedReferences=Xi.prototype.Qy,Xi.prototype.mergeNodeDataArray=Xi.prototype.$z,Xi.prototype.removeNodeDataCollection=Xi.prototype.nA,Xi.prototype.removeNodeData=Xi.prototype.cm,Xi.prototype.addNodeDataCollection=Xi.prototype.Fy,Xi.prototype.addNodeData=Xi.prototype.xf,Xi.prototype.makeNodeDataKeyUnique=Xi.prototype.$u,Xi.prototype.findNodeDataForKey=Xi.prototype.hc,Xi.prototype.containsNodeData=Xi.prototype.lb,Xi.prototype.setKeyForNodeData=Xi.prototype.km,Xi.prototype.getKeyForNodeData=Xi.prototype.wa,Xi.prototype.updateTargetBindings=Xi.prototype.La,Xi.prototype.commit=Xi.prototype.commit,Xi.prototype.rollbackTransaction=Xi.prototype.Kf,Xi.prototype.commitTransaction=Xi.prototype.eb,Xi.prototype.startTransaction=Xi.prototype.Ea,Xi.prototype.raiseDataChanged=Xi.prototype.Fs,Xi.prototype.raiseChanged=Xi.prototype.g,Xi.prototype.raiseChangedEvent=Xi.prototype.cb,Xi.prototype.removeChangedListener=Xi.prototype.ik,Xi.prototype.addChangedListener=Xi.prototype.Pe,Xi.prototype.writeJsonValue=Xi.prototype.sm,Xi.prototype.replaceJsonObjects=Xi.prototype.dm,Xi.prototype.applyIncrementalJSON=Xi.prototype.Ky,Xi.prototype.applyIncrementalJson=Xi.prototype.Zw,Xi.prototype.toJSON=Xi.prototype.toJSON,Xi.prototype.toJson=Xi.prototype.np,Xi.prototype.toIncrementalJSON=Xi.prototype.yA,Xi.prototype.toIncrementalJson=Xi.prototype.$x,Xi.prototype.toIncrementalData=Xi.prototype.xA,Xi.prototype.clear=Xi.prototype.clear;var FS=!1,$l={};Xi.className="Model",Xi.fromJSON=Xi.fromJson=function(a,y){y===void 0&&(y=null);var x=null;if(typeof a=="string")try{x=Xe.JSON.parse(a)}catch(z){}else typeof a=="object"?x=a:te("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=Xe[E])),typeof b=="function"&&(a=new b)}catch(z){}a===null||a instanceof Xi?y=a:te("Unable to construct a Model of declared class: "+x.class)}return y===null&&(y=Xi.constructGraphLinksModel()),y.gp(x),y.kv(x),y},Xi.safePropertyValue=Ca,Xi.safePropertySet=ta,$l.Brush=wo,$l.ChangedEvent=Ho,$l.Geometry=Rn,$l.Margin=Bi,$l.Panel=ii,$l.Point=Tt,$l.Rect=le,$l.Size=zt,$l.Spot=ri,$l.Transaction=xa,$l.UndoManager=qo;function La(a,y,x,E){bi(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}La.prototype.copy=function(){var a=new La;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},Et=La.prototype,Et.qb=function(a){a.classType===La&&(this.mode=a)},Et.toString=function(){return"Binding("+this.targetProperty+":"+this.sourceProperty+(this.Ai!==-1?" "+this.Ai:"")+" "+this.mode.name+")"},Et.freeze=function(){return this._isFrozen=!0,this},Et.ka=function(){return this._isFrozen=!1,this},Et.Kx=function(a){return a===void 0&&(a=null),this.mode=Sp,this.backConverter=a,this},Et.cp=function(a){return a===void 0&&(a=""),this.sourceName=a,this.isToModel=!1,this},Et.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)}Et.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==="")Fn("Binding error: target property is the empty string: "+this.toString());else{var z=y;if(E!==""&&(z=Ca(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){}}}},Et.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=Ca(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)}}}},sn.Object.defineProperties(La.prototype,{Ai:{get:function(){return this.j},set:function(a){this._isFrozen&&be(this),this.j=a}},targetProperty:{get:function(){return this.xl},set:function(a){this._isFrozen&&be(this),this.xl=a}},sourceName:{get:function(){return this.Cr},set:function(a){this._isFrozen&&be(this),this.Cr=a,a!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(a){this._isFrozen&&be(this),this.wn=a}},sourceProperty:{get:function(){return this.sl},set:function(a){this._isFrozen&&be(this),this.sl=a}},converter:{get:function(){return this.Im},set:function(a){this._isFrozen&&be(this),this.Im=a}},backConverter:{get:function(){return this.wk},set:function(a){this._isFrozen&&be(this),this.wk=a}},mode:{get:function(){return this.el},set:function(a){this._isFrozen&&be(this),this.el=a}}}),La.prototype.updateSource=La.prototype.sp,La.prototype.updateTarget=La.prototype.Mv,La.prototype.ofModel=La.prototype.dA,La.prototype.ofObject=La.prototype.cp,La.prototype.makeTwoWay=La.prototype.Kx;var Hx="Binding",NS=new We(La,"OneWay",1),Sp=new We(La,"TwoWay",2);La.className="Binding",La.parseEnum=function(a,y){return function(x){return x=ar(a,x),x===null?y:x}},La.toString=Ui,La.OneWay=NS,La.TwoWay=Sp;function no(a,y,x){Xi.call(this),this.Vv=`,
|
|
"insertedLinkKeys": `,this.iy=`,
|
|
"modifiedLinkData": `,this.Xv=`,
|
|
"removedLinkKeys": `,this.md=[],this.$f=new xn,this.wb=new _e,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&&(zn(a)?this.nodeDataArray=a:x=a),x&&(Object.assign(this,x),a=x.Changed)&&(delete this.Changed,this.Pe(a))}ke(no,Xi),no.constructGraphLinksModel=Xi.constructGraphLinksModel,no.prototype.cloneProtected=function(a){Xi.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},Et=no.prototype,Et.clear=function(){Xi.prototype.clear.call(this),this.md=[],this.wb.clear(),this.$f.clear()},Et.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)+":"+Ui(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},Et.Qv=function(a,y){this.linkKeyProperty===""&&te("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var x=Xi.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===pa&&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 Xi||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},Et.rm=function(){var a=Xi.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},Et.gp=function(a){Xi.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)},Et.Rv=function(){var a=Xi.prototype.Rv.call(this),y=`,
|
|
"linkDataArray": `+gd(this,this.linkDataArray,!0);return a+y},Et.kv=function(a){Xi.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}Et.Pv=function(a,y){this.linkKeyProperty===""&&te("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var x=Xi.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===pa&&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 Xi||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},Et.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)&&te("applyIncrementalJson cannot change Model properties"),Xi.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,Be(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===pa){if(x=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,Be(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}}Xi.prototype.changeState.call(this,a,y)}},Et=no.prototype,Et.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}},Et.yx=function(a){return fl(this,a,!0)},Et.wv=function(a,y){Yf(this,a,y,!0)},Et.Bx=function(a){return fl(this,a,!1)},Et.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=Ca(y,a),a!==void 0))){if(pd(a))return a;te((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=Ca(y,b);z!==x&&(hu(a,z,y),ta(y,b,x),a.hc(x)===null&&uu(a,x,y),Ta(a,E?"linkFromKey":"linkToKey",To,b,y,z,x),typeof b=="string"&&a.La(y,b))}else ta(y,b,x)}}Et.zx=function(a){return g0(this,a,!0)},Et.xv=function(a,y){Uf(this,a,y,!0)},Et.Cx=function(a){return g0(this,a,!1)},Et.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=Ca(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=Ca(y,b);z===void 0&&(z=""),z!==x&&(ta(y,b,x),Ta(a,E?"linkFromPortId":"linkToPortId",To,b,y,z,x),typeof b=="string"&&a.La(y,b))}else ta(y,b,x)}}Et.Ef=function(a){if(a===null)return p0;var y=this.je;return y===""?p0:(a=Ca(a,y),a===void 0?p0:a)},Et.Ls=function(a,y){if(a!==null){var x=this.je;if(x!=="")if(this.Jc(a)){var E=Ca(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)}Ta(this,"linkLabelKeys",To,x,a,E,y),typeof x=="string"&&this.La(a,x)}}else ta(a,x,y)}},Et.Bu=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var E=Ca(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),Ta(this,"linkLabelKeys",$o,x,a,null,y,null,b)))}else te(x+" property is not an Array; cannot addLabelKeyForLinkData: "+a)}}},Et.Qx=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var E=Ca(a,x);if(Array.isArray(E)){var b=E.indexOf(y);0>b||(E.splice(b,1),this.Jc(a)&&(hu(this,y,a),Ta(this,"linkLabelKeys",pa,x,a,y,null,b,null)))}else E!==void 0&&te(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},Et.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=Ca(a,y),y!==void 0)){if(pd(y))return y;te("Key value for link data "+a+" is not a number or a string: "+y)}}},Et.Ks=function(a,y){if(a!==null){var x=this.Jh;if(x!=="")if(this.Jc(a)){var E=Ca(a,x);E!==y&&this.jh(y)===null&&(ta(a,x,y),E!==void 0&&this.wb.remove(E),this.wb.add(y,a),Ta(this,"linkKey",To,x,a,E,y),typeof x=="string"&&this.La(a,x))}else ta(a,x,y)}},Et.jh=function(a){return a===null&&te("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&pd(a)?this.wb.I(a):null},Et.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)}}}}},Et.Jc=function(a){return a===null?!1:this.$f.contains(a)},Et.fi=function(a){a!==null&&(Sr(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&&te("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)),Ta(a,"linkDataArray",$o,"linkDataArray",a,null,y,null,E),my(a,y)}Et.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)},Et.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(Ta(a,"linkDataArray",pa,"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)}Et.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)},Et.Zz=function(a){if(this.linkKeyProperty===""&&te("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),a!==this.linkDataArray&&zn(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)}Et.Jo=function(a){if(a===null)return null;var y=this.Ak;return a=y!==null?y(a,this):f0(this,a,!0),Be(a)&&(bi(a),this.lf!==""&&ta(a,this.lf,void 0),this.mf!==""&&ta(a,this.mf,void 0),this.je!==""&&ta(a,this.je,[])),a},Et.Yu=function(a){if(a===null)return!1;var y=this.jl;return y===""?!1:!!Ca(a,y)},Et.lh=function(a){if(a!==null){var y=this.Je;if(y!==""&&(y=Ca(a,y),y!==void 0)){if(pd(y))return y;te("GroupKey value for node data "+a+" is not a number or a string: "+y)}}},Et.mp=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Je;if(x!=="")if(this.lb(a)){var E=Ca(a,x);E!==y&&(hu(this,E,a),ta(a,x,y),this.hc(y)===null&&uu(this,y,a),Ta(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=Xi.prototype.copyNodeData.call(this,a),this.Ij||this.Je===""||Ca(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=Ca(a,y);E!==x&&(ta(a,y,x),this.Fs(a,y,E,x))},Et=no.prototype,Et.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&&Ca(a,b)===y[b]||E&&b===this.linkKeyProperty||this.setDataProperty(a,b,y[b])}},Et.jp=function(a,y){Xi.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),Ta(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),Ta(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,Ta(this,"linkLabelKeys",$o,ot,E,b,z,st,st))}},Et.qv=function(a,y,x){if(this.lh(a)===y){var E=this.Je;ta(a,E,x),Ta(this,"nodeGroupKey",To,E,a,y,x),typeof E=="string"&&this.La(a,E)}},Et.Lv=function(){Xi.prototype.Lv.call(this);for(var a=this.linkDataArray,y=a.length,x=0;x<y;x++)my(this,a[x])},Et.fm=function(a){Xi.prototype.fm.call(this,a),a=this.wa(a);var y=vp(this,a);if(y!==null){var x=oi();for(y=y.iterator;y.next();){var E=y.value;if(this.lb(E)){if(this.lh(E)===a){var b=this.Je;Ta(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,Ta(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,Ta(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&&(Ta(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)}},Et.em=function(a){Xi.prototype.em.call(this,a);var y=this.lh(a);this.hc(y)===null&&uu(this,y,a)},Et.qp=function(a){Xi.prototype.qp.call(this,a);var y=this.lh(a);hu(this,y,a)},Et.ps=function(a){if(a===null)return"";var y=this.dj;if(y===""||(y=Ca(a,y),y===void 0))return"";if(typeof y=="string")return y;te("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=Ca(a,x);E===void 0&&(E=""),E!==y&&(ta(a,x,y),Ta(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)},Et=no.prototype,Et.lm=function(a,y){Xi.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))}Et.Wj=function(){return!0},Et.ri=function(){return!0},Et.xs=function(){return!0},Et.Xj=function(){return!0},sn.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];Be(b)||te("GraphLinksModel.linkDataArray must only contain Objects, not: "+b),Sr(b)}if(this.md=a,this.linkKeyProperty!==""){for(E=new pn,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,Ta(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,Xi.constructGraphLinksModel=Xi.constructGraphLinksModel=function(){return new no},Xi.initDiagramModel=gy=function(){return new no};function Ns(a,y){Xi.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",a!==void 0&&(zn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}ke(Ns,Xi),Ns.constructGraphLinksModel=Xi.constructGraphLinksModel,Ns.prototype.cloneProtected=function(a){Xi.prototype.cloneProtected.call(this,a),a.Ke=this.Ke,a.Nm=this.Nm,a.nj=this.nj},Et=Ns.prototype,Et.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)+":"+Ui(b)}}return y},Et.rm=function(){var a=Xi.prototype.rm.call(this),y="";return this.nodeParentKeyProperty!=="parent"&&typeof this.nodeParentKeyProperty=="string"&&(y+=`,
|
|
"nodeParentKeyProperty": `+this.quote(this.nodeParentKeyProperty)),a+y},Et.gp=function(a){Xi.prototype.gp.call(this,a),a.nodeParentKeyProperty&&(this.nodeParentKeyProperty=a.nodeParentKeyProperty)},Et.fp=function(a){a.nodeParentKeyProperty!==void 0&&a.nodeParentKeyProperty!==this.nodeParentKeyProperty&&te("applyIncrementalJson cannot change Model properties"),Xi.prototype.fp.call(this,a)},Et.Vl=function(a){return a},Et.mh=function(a){if(a!==null){var y=this.Ke;if(y!==""&&(y=Ca(a,y),y!==void 0)){if(pd(y))return y;te("ParentKey value for node data "+a+" is not a number or a string: "+y)}}},Et.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=Ca(a,x);E!==y&&(hu(this,E,a),ta(a,x,y),this.hc(y)===null&&uu(this,y,a),Ta(this,"nodeParentKey",To,x,a,E,y),typeof x=="string"&&this.La(a,x))}else ta(a,x,y)}},Et.ss=function(a){if(a===null)return"";var y=this.nj;return y===""||(y=Ca(a,y),y===void 0)?"":typeof y=="string"?y:(te("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=Ca(a,x);E===void 0&&(E=""),E!==y&&(ta(a,x,y),Ta(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=Xi.prototype.copyNodeData.call(this,a),this.Jj||this.Ke===""||Ca(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=Ca(a,y);E!==x&&(ta(a,y,x),this.Fs(a,y,E,x))},Et=Ns.prototype,Et.jp=function(a,y){Xi.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y)},Et.qv=function(a,y,x){if(this.mh(a)===y){var E=this.Ke;ta(a,E,x),Ta(this,"nodeParentKey",To,E,a,y,x),typeof E=="string"&&this.La(a,E)}},Et.fm=function(a){Xi.prototype.fm.call(this,a),a=this.wa(a);var y=vp(this,a);if(y!==null){var x=oi();for(y=y.iterator;y.next();){var E=y.value;if(this.lb(E)&&this.mh(E)===a){var b=this.Ke;Ta(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)}},Et.em=function(a){Xi.prototype.em.call(this,a);var y=this.mh(a);y=this.Vl(y),this.hc(y)===null&&uu(this,y,a)},Et.qp=function(a){Xi.prototype.qp.call(this,a);var y=this.mh(a);hu(this,y,a)},Et.lm=function(a,y){Xi.prototype.lm.call(this,a,y),this.Ms(y,this.ss(a)),this.qe(y,this.mh(a))},Et.Tl=function(){return!0},Et.xs=function(){return!0},sn.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 la(a){na.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=tu,this.Ti=0,this.Zv=new Tt,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)}ke(la,na),la.prototype.cloneProtected=function(a){na.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},la.prototype.qb=function(a){a.classType===la?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):na.prototype.qb.call(this,a)},la.prototype.createNetwork=function(){return new Jf(this)},la.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 pn;y.addAll(a.iterator),a=new pn;var x=new pn,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 pn,E.addAll(a),E.addAll(x)):(this.arrangement===eu&&x.reverse(),E=new pn,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=Tt.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(Tt.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=Tt.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(Tt.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}la.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},la.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 Tt(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))},la.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}}la.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:te("Invalid sorting type.")}return a};function Zx(a){for(var y=[],x=0;x<a.length;x++)y.push(0);x=new pn;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}la.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 pn;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],Ht=0,re=0;re<tt.length;re++){var ae=z[tt[re]],he=z[rt[re]];if(ae<he){var Ae=ae;ae=he}else Ae=he;if(Ae<Ft&&Ft<=ae)for(he=0;he<Xt.length;he++){var qe=Xt[he];0>x.indexOf(qe)||Ae<z[qe]&&z[qe]<ae||Ae===z[qe]||ae===z[qe]||Ht++}else for(he=0;he<Xt.length;he++)qe=Xt[he],0>x.indexOf(qe)||Ae<z[qe]&&z[qe]<ae&&Ae!==z[qe]&&ae!==z[qe]&&Ht++}for(Xt=Ht,re=Ht=0;re<y[st].length;re++)Ae=x.indexOf(y[st][re]),0<=Ae&&(Ae=Math.abs(Ft-(Ae>=Ft?Ae+1:Ae)),Ht+=Ae<x.length+1-Ae?Ae:x.length+1-Ae);for(re=0;re<tt.length;re++)Ae=z[tt[re]],ae=z[rt[re]],Ae>=Ft&&Ae++,ae>=Ft&&ae++,Ae>ae&&(he=ae,ae=Ae,Ae=he),ae-Ae<(x.length+2)/2==(Ae<Ft&&Ft<=ae)&&Ht++;(Xt<ut||Xt===ut&&Ht<ft)&&(ut=Xt,ft=Ht,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},sn.Object.defineProperties(la.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 We(la,"ConstantSpacing",0),md=new We(la,"ConstantDistance",1),Ih=new We(la,"ConstantAngle",2),eu=new We(la,"Packed",3),Bs=new We(la,"Clockwise",4),vd=new We(la,"Counterclockwise",5),ic=new We(la,"BidirectionalLeft",6),Xf=new We(la,"BidirectionalRight",7),y0=new We(la,"Forwards",8),S0=new We(la,"Reverse",9),x0=new We(la,"Ascending",10),w0=new We(la,"Descending",11),_f=new We(la,"Optimized",12),P0=new We(la,"Pythagorean",13),Zc=new We(la,"Circular",14);la.className="CircularLayout",la.ConstantSpacing=tu,la.ConstantDistance=md,la.ConstantAngle=Ih,la.Packed=eu,la.Clockwise=Bs,la.Counterclockwise=vd,la.BidirectionalLeft=ic,la.BidirectionalRight=Xf,la.Forwards=y0,la.Reverse=S0,la.Ascending=x0,la.Descending=w0,la.Optimized=_f,la.Pythagorean=P0,la.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){Wo.call(this,a)}ke(Jf,Wo),Jf.prototype.createVertex=function(){return new Ep(this)},Jf.prototype.createEdge=function(){return new C0(this)},Jf.className="CircularNetwork";function Ep(a){Ra.call(this,a),this.u=this.Si=NaN}ke(Ep,Ra);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}sn.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)}ke(C0,nl),C0.className="CircularEdge";function ls(a){na.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)}ke(ls,na),ls.prototype.cloneProtected=function(a){na.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=oi(),ut=0;ut<rt+y.vertexes.count+2;ut++)st[ut]=null;rt=0,tt.reset();for(var ft=le.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 Tt(ft.x+ft.width+E.width,ft.y),st[1]=new Tt(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 Tt(xt.x+ft.width+E.width,xt.y),Ft=new Tt(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(le.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 Tt(vt.x+vt.width+E.width,vt.y),st[1]=new Tt(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 Tt(ft.x+vt.width+E.width,ft.y),vt=new Tt(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 pn),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 pn,b.Hj=rt),rt.add(tt),b.Vd--,b.sh+=tt.sh):tt.network===E&&(rt=tt.Hj,rt===null&&(rt=new pn,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,pe.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=pe.sqrt((rt+xt+st*st*4/(tt*tt))/xt),tt=(rt-1)*ut/2,rt=(rt-1)*ft/2,b.bounds=new le(z-vt.x-tt,ot-vt.y-rt,ut+2*tt,ft+2*rt),b.focus=new Tt(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 le(E.centerX-z,E.centerY-tt,b.Ss,b.Qs),E.focus=new Tt(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=pe.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=pe.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,pe.sqrt(x*x+a*a)):a+x<y?(E=E+b-tt,a=a+x-y,pe.sqrt(E*E+a*a)):tt-(E+b):E>tt+rt?a>y+z?(x=E-tt-rt,a=a-y-z,pe.sqrt(x*x+a*a)):a+x<y?(E=E-tt-rt,a=a+x-y,pe.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=Lo,y.toSpot=Lo)}},ls.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var x=le.alloc();this.computeBounds(this.network,x),y=this.arrangementOrigin,a=y.x-x.x,y=y.y-x.y,le.free(x)}x=le.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()}le.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},sn.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"&&te('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){Wo.call(this,a)}ke(Vc,Wo),Vc.prototype.createVertex=function(){return new Ap(this)},Vc.prototype.createEdge=function(){return new Lp(this)},Vc.className="ForceDirectedNetwork";function Ap(a){Ra.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}ke(Ap,Ra),sn.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}ke(Lp,nl),sn.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){na.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 Tt,this.He=[],this.He.length=100,this.xw=this.ve=0,a&&Object.assign(this,a)}ke(Eo,na),Eo.prototype.cloneProtected=function(a){na.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:te("Unknown enum value: "+a):na.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=Tt.alloc(),ut!==ft?Ft.w()&&ft.isVisible()?ft.actualBounds.w()?(Dh(ft,vt,ki,xt),xt.x+=ft.actualBounds.x-Ft.x,xt.y+=ft.actualBounds.y-Ft.y):(Dh(ft,vt,ki,xt),xt.w()||xt.assign(Pt)):xt.assign(Pt):Ft.w()?(Dh(ft,vt,ki,xt),xt.w()||xt.assign(Pt)):xt.assign(Pt),ft=E.rev?b.bounds:z.bounds,ut=Tt.alloc(),tt!==ot?ft.w()&&ot.isVisible()?ot.actualBounds.w()?(Dh(ot,rt,ki,ut),ut.x+=ot.actualBounds.x-ft.x,ut.y+=ot.actualBounds.y-ft.y):(Dh(ot,rt,ki,ut),ut.w()||ut.assign(st)):ut.assign(st):ft.w()?(Dh(ot,rt,ki,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),Tt.free(xt),Tt.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,Ht=Ft.toPort;if(Xt!==null&&Ht!==null){var re=Ft.fromNode;if(vt=Ft.toNode,re!==null&&vt!==null){var ae=M0(this,!0),he=M0(this,!1),Ae=this.setsPortSpots?ae:Ft.computeSpot(!0,Xt);Pt=this.setsPortSpots?he:Ft.computeSpot(!1,Ht);var qe=Ft.isOrthogonal;Ae.$c()&&Ae.Hf(he)&&Pt.$c()&&Pt.Hf(ae)?ft=0:(ae=Ft.getLinkPoint(re,Xt,Ae,!0,qe,vt,Ht,Tt.alloc()),he=Ft.getLinkDirection(re,Xt,ae,Ae,!0,qe,vt,Ht),Tt.free(ae),Ae.ys()||he!==ex(this,E,!0)?this.setsPortSpots&&re!==null&&re.ports.count===1&&E.rev&&(ft+=1):ft+=1,Ae=Ft.getLinkPoint(vt,Ht,Pt,!1,qe,re,Xt,Tt.alloc()),Ft=Ft.getLinkDirection(vt,Ht,Ae,Pt,!1,qe,re,Xt),Tt.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 Ht=0,re=0;if(0<=x){rt=E[tt].sourceEdgesArrayAccess;var ae=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<ae.length;vt++)Pt=ae[vt],Pt.valid&&Pt.fromVertex.layer!==y&&(Ft=Pt.fromVertex.index,Pt=Pt.portFromPos,(ft<Ft||ft===Ft&&xt<Pt)&&re++,(Ft<ft||Ft===ft&&Pt<xt)&&Ht++)}if(0>=x){for(rt=E[tt].destinationEdgesArrayAccess,ae=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<ae.length;vt++)Pt=ae[vt],Pt.valid&&Pt.toVertex.layer!==y&&(Ft=Pt.toVertex.index,Xt=Pt.portToPos,(ft<Ft||ft===Ft&&ut<Xt)&&re++,(Ft<ft||Ft===ft&&Xt<ut)&&Ht++)}z[tt*b+ot]=Ht,z[ot*b+tt]=re}}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),Ht=a.nodeMinColumnSpace(E[z],!1),re=a.nodeMinColumnSpace(E[z+1],!0),ae=a.nodeMinColumnSpace(E[z+1],!1);Xt=Pt-Xt+re,Ht=Ft-Ht+ae;var he=E[z].sourceEdges.iterator;for(he.reset();he.next();)if(re=he.value,ae=re.fromVertex,re.valid&&ae.layer===y){for(re=0;E[re]!==ae;)re++;re<z&&(vt+=2*(z-re),xt+=2*(z+1-re)),re===z+1&&(vt+=1),re>z+1&&(vt+=4*(re-z),xt+=4*(re-(z+1)))}for(he=E[z].destinationEdges.iterator,he.reset();he.next();)if(re=he.value,ae=re.toVertex,re.valid&&ae.layer===y){for(re=0;E[re]!==ae;)re++;re===z+1&&(xt+=1)}for(he=E[z+1].sourceEdges.iterator,he.reset();he.next();)if(re=he.value,ae=re.fromVertex,re.valid&&ae.layer===y){for(re=0;E[re]!==ae;)re++;re<z&&(vt+=2*(z+1-re),xt+=2*(z-re)),re===z&&(xt+=1),re>z+1&&(vt+=4*(re-(z+1)),xt+=4*(re-z))}for(he=E[z+1].destinationEdges.iterator,he.reset();he.next();)if(re=he.value,ae=re.toVertex,re.valid&&ae.layer===y){for(re=0;E[re]!==ae;)re++;re===z&&(vt+=1)}re=ae=0,he=tt[E[z].index];var Ae=rt[E[z].index],qe=tt[E[z+1].index],Pi=rt[E[z+1].index];he!==-1&&(ae+=Math.abs(he-Pt),re+=Math.abs(he-Ht)),Ae!==-1&&(ae+=Math.abs(Ae-Pt),re+=Math.abs(Ae-Ht)),qe!==-1&&(ae+=Math.abs(qe-Ft),re+=Math.abs(qe-Xt)),Pi!==-1&&(ae+=Math.abs(Pi-Ft),re+=Math.abs(Pi-Xt)),(xt<vt-.5||xt===vt&&ft<ut-.5||xt===vt&&ft===ut&&re<ae-.5)&&(st=ot=!0,E[z].column=Ht,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 Ht=Xt.value,re=Ht.fromVertex;if(Ht.valid&&re.layer!==y){var ae=yy(Ht),he=Ht.portFromColOffset;Ht=Ht.portToColOffset,re=re.column,vt+=(Math.abs(ut+Ht-(re+he))+1)*ae,Pt+=(Math.abs(xt+Ht-(re+he))+1)*ae,Ft+=(Math.abs(ft+Ht-(re+he))+1)*ae}}if(0<=x)for(Xt=b[E].destinationEdges.iterator;Xt.next();)Ht=Xt.value,re=Ht.toVertex,Ht.valid&&re.layer!==y&&(ae=yy(Ht),he=Ht.portFromColOffset,Ht=Ht.portToColOffset,re=re.column,vt+=(Math.abs(ut+he-(re+Ht))+1)*ae,Pt+=(Math.abs(xt+he-(re+Ht))+1)*ae,Ft+=(Math.abs(ft+he-(re+Ht))+1)*ae);Ht=he=ae=0,Xt=tt[b[E].index],re=rt[b[E].index],Xt!==-1&&(ae+=Math.abs(Xt-ut),he+=Math.abs(Xt-xt),Ht+=Math.abs(Xt-ft)),re!==-1&&(ae+=Math.abs(re-ut),he+=Math.abs(re-xt),Ht+=Math.abs(re-ft)),Pt<vt||Pt===vt&&he<ae?(st=ot=!0,b[E].column=xt):(Ft<vt||Ft===vt&&Ht<ae)&&(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=oi(),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=Gn(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=oi();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,Ht){return Xt-Ht});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=Gn(st.sourceEdgesArrayAccess),xt=vt.next();!xt.done;xt=vt.next())xt=xt.value,xt.valid&&ft.push(xt);st.bo=ft}for(st=Gn(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=Gn(a);for(var E=a.next();!E.done;E=a.next()){var b=-1;E=Gn(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=Gn(y),tt=z.next();!tt.done;tt=z.next()){var rt=Gn(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=Gn(y),rt=z.next();!rt.done;rt=z.next()){rt=Gn(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=Gn(y),tt=x.next();!tt.done;tt=x.next())for(z=Gn(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 _e,y=Gn(y),tt=y.next();!tt.done;tt=y.next())for(x=Gn(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&&te("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=oi(),b=oi(),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?bo:Qo:a.K===90?y?Qo:bo: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 Tt(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 le(0,0,x,Math.abs(this.Ta[0]))):y.push(new le(0,this.Ta[E-1],x,Math.abs(this.Ta[E-1]-this.Ta[E]))):this.K===90?E===0?y.push(new le(0,this.Ta[0],x,Math.abs(this.Ta[0]-a))):y.push(new le(0,this.Ta[E],x,Math.abs(this.Ta[E-1]-this.Ta[E]))):this.K===180?E===0?y.push(new le(0,0,Math.abs(this.Ta[0]),x)):y.push(new le(this.Ta[E-1],0,Math.abs(this.Ta[E-1]-this.Ta[E]),x)):E===0?y.push(new le(this.Ta[0],0,Math.abs(this.Ta[0]-a),x)):y.push(new le(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===Vi&&(E=!0),rt!==null&&ot===Vi&&(x=!0),(E||x)&&(ot=null,E&&(ot=y.getLinkPointFromPoint(b,tt,tt.ga(ki),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(ki),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 Ht=st===Vi,re=ot===Vi;2<Xt&&Ht&&re?y.points.removeRange(1,Xt-2):3<Xt&&Ht&&!re?y.points.removeRange(1,Xt-3):3<Xt&&!Ht&&re?y.points.removeRange(2,Xt-2):4<Xt&&!Ht&&!re&&y.points.removeRange(2,Xt-3)}if(x.rev){for(;ft!==null&&ut!==ft;){var ae=Xt=null;for(Ht=ft.sourceEdges.iterator;Ht.next()&&(re=Ht.value,re.link!==x.link||(Xt=re.fromVertex,ae=re.toVertex,Xt.node!==null)););if(Xt===null)break;if(Xt!==ut){Ht=y.i(Ft-1).x,re=y.i(Ft-1).y;var he=Xt.centerX,Ae=Xt.centerY;if(xt)this.K===180||this.K===0?Ft===y.firstPickIndex+1?(y.m(Ft++,Ht,re),y.m(Ft++,Ht,Ae)):(ae!==null?ae.centerY:re)!==Ae&&(ae=this.Ta[Xt.layer-1]+this.Rf.x,y.m(Ft++,ae,re),y.m(Ft++,ae,Ae)):Ft===y.firstPickIndex+1?(y.m(Ft++,Ht,re),y.m(Ft++,he,re)):(ae!==null?ae.centerX:Ht)!==he&&(ae=this.Ta[Xt.layer-1]+this.Rf.y,y.m(Ft++,Ht,ae),y.m(Ft++,he,ae));else if(Ft===y.firstPickIndex+1){ae=Math.max(10,this.he[ft.layer]);var qe=Math.max(10,this.Ld[ft.layer]);if(vt)this.K===180?he<=ft.bounds.x?(ft=ft.bounds.x,y.m(Ft++,ft-ae,Ae),y.m(Ft++,ft,Ae),y.m(Ft++,ft+qe,Ae)):(y.m(Ft++,he-ae,Ae),y.m(Ft++,he,Ae),y.m(Ft++,he+qe,Ae)):this.K===90?Ae>=ft.bounds.bottom?(ft=ft.bounds.y+ft.bounds.height,y.m(Ft++,he,ft+qe),y.m(Ft++,he,ft),y.m(Ft++,he,ft-ae)):(y.m(Ft++,he,Ae+qe),y.m(Ft++,he,Ae),y.m(Ft++,he,Ae-ae)):this.K===270?Ae<=ft.bounds.y?(ft=ft.bounds.y,y.m(Ft++,he,ft-ae),y.m(Ft++,he,ft),y.m(Ft++,he,ft+qe)):(y.m(Ft++,he,Ae-ae),y.m(Ft++,he,Ae),y.m(Ft++,he,Ae+qe)):this.K===0&&(he>=ft.bounds.right?(ft=ft.bounds.x+ft.bounds.width,y.m(Ft++,ft+qe,Ae),y.m(Ft++,ft,Ae),y.m(Ft++,ft-ae,Ae)):(y.m(Ft++,he+qe,Ae),y.m(Ft++,he,Ae),y.m(Ft++,he-ae,Ae)));else{y.m(Ft++,Ht,re);var Pi=0;this.K===180||this.K===0?((this.K===180?he>=ft.bounds.right:he<=ft.bounds.x)&&(Pi=(this.K===0?-ae:qe)/2),y.m(Ft++,Ht+Pi,Ae)):((this.K===270?Ae>=ft.bounds.bottom:Ae<=ft.bounds.y)&&(Pi=(this.K===90?-ae:qe)/2),y.m(Ft++,he,re+Pi)),y.m(Ft++,he,Ae)}}else ae=Math.max(10,this.he[Xt.layer]),qe=Math.max(10,this.Ld[Xt.layer]),vt?this.K===180?(y.m(Ft++,he-ae-Pt,Ae),y.m(Ft++,Math.min(he-ae+Pt/2,he),Ae),y.m(Ft++,he,Ae),y.m(Ft++,he,Ae),y.m(Ft++,Math.max(he+qe-Pt/2,he),Ae),y.m(Ft++,he+qe+Pt,Ae)):this.K===90?(y.m(Ft++,he,Ae+qe+Pt),y.m(Ft++,he,Math.max(Ae+qe-Pt/2,Ae)),y.m(Ft++,he,Ae),y.m(Ft++,he,Ae),y.m(Ft++,he,Math.min(Ae-ae+Pt/2,Ae)),y.m(Ft++,he,Ae-ae-Pt)):this.K===270?(y.m(Ft++,he,Ae-ae-Pt),y.m(Ft++,he,Math.min(Ae-ae+Pt/2,Ae)),y.m(Ft++,he,Ae),y.m(Ft++,he,Ae),y.m(Ft++,he,Math.max(Ae+qe-Pt/2,Ae)),y.m(Ft++,he,Ae+qe+Pt)):(y.m(Ft++,he+qe+Pt,Ae),y.m(Ft++,Math.max(he+qe-Pt/2,he),Ae),y.m(Ft++,he,Ae),y.m(Ft++,he,Ae),y.m(Ft++,Math.min(he-ae+Pt/2,he),Ae),y.m(Ft++,he-ae-Pt,Ae)):y.m(Ft++,he,Ae)}ft=Xt}(rt===null||st!==Vi||xt)&&(Ht=y.i(Ft-1).x,re=y.i(Ft-1).y,he=y.i(Ft).x,Ae=y.i(Ft).y,xt?(Pt=this.Ld[ut.layer],this.K===180||this.K===0?(xt=re,xt>=ut.bounds.y&&xt<=ut.bounds.bottom&&(this.K===180?he>=ut.bounds.x:he<=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,re),y.m(Ft++,ft,xt)),y.m(Ft++,he,xt)):(xt=Ht,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++,Ht,ft),y.m(Ft++,xt,ft)),y.m(Ft++,xt,Ae)),y.m(Ft++,he,Ae)):vt?(ae=Math.max(10,this.he[ut.layer]),qe=Math.max(10,this.Ld[ut.layer]),this.K===180&&he>=ut.bounds.x?(ft=ut.bounds.x+ut.bounds.width,y.L(Ft-2,ft,re),y.L(Ft-1,ft+qe,re)):this.K===90&&Ae<=ut.bounds.bottom?(ft=ut.bounds.y,y.L(Ft-2,Ht,ft),y.L(Ft-1,Ht,ft-ae)):this.K===270&&Ae>=ut.bounds.y?(ft=ut.bounds.y+ut.bounds.height,y.L(Ft-2,Ht,ft),y.L(Ft-1,Ht,ft+qe)):this.K===0&&he<=ut.bounds.right&&(ft=ut.bounds.x,y.L(Ft-2,ft,re),y.L(Ft-1,ft-ae,re))):(ae=Math.max(10,this.he[ut.layer]),qe=Math.max(10,this.Ld[ut.layer]),xt=0,this.K===180||this.K===0?((this.K===180?he<=ut.bounds.x:he>=ut.bounds.right)&&(xt=(this.K===0?qe:-ae)/2),y.m(Ft++,he+xt,re)):((this.K===270?Ae<=ut.bounds.y:Ae>=ut.bounds.bottom)&&(xt=(this.K===90?qe:-ae)/2),y.m(Ft++,Ht,Ae+xt)),y.m(Ft++,he,Ae)))}else{for(;ut!==null&&ut!==ft;){for(ae=Xt=null,ut=ut.destinationEdges.iterator;ut.next()&&(Ht=ut.value,Ht.link!==x.link||(Xt=Ht.toVertex,ae=Ht.fromVertex,ae.node!==null&&(ae=null),Xt.node!==null)););if(Xt===null)break;Xt!==ft&&(Ht=y.i(Ft-1).x,re=y.i(Ft-1).y,he=Xt.centerX,Ae=Xt.centerY,xt?this.K===180||this.K===0?(ae!==null?ae.centerY:re)!==Ae&&(ae=this.Ta[Xt.layer]+this.Rf.x,Ft===y.firstPickIndex+1&&(ae=this.K===0?Math.max(ae,Ht):Math.min(ae,Ht)),y.m(Ft++,ae,re),y.m(Ft++,ae,Ae)):(ae!==null?ae.centerX:Ht)!==he&&(ae=this.Ta[Xt.layer]+this.Rf.y,Ft===y.firstPickIndex+1&&(ae=this.K===90?Math.max(ae,re):Math.min(ae,re)),y.m(Ft++,Ht,ae),y.m(Ft++,he,ae)):(ae=Math.max(10,this.he[Xt.layer]),qe=Math.max(10,this.Ld[Xt.layer]),vt?this.K===180?(y.m(Ft++,he+qe+Pt,Ae),y.m(Ft++,Math.max(he+qe-Pt/2,he),Ae),y.m(Ft++,he,Ae),y.m(Ft++,he,Ae),y.m(Ft++,Math.min(he-ae+Pt/2,he),Ae),y.m(Ft++,he-ae-Pt,Ae)):this.K===90?(y.m(Ft++,he,Ae-ae-Pt),y.m(Ft++,he,Math.min(Ae-ae+Pt/2,Ae)),y.m(Ft++,he,Ae),y.m(Ft++,he,Ae),y.m(Ft++,he,Math.max(Ae+qe-Pt/2,Ae)),y.m(Ft++,he,Ae+qe+Pt)):this.K===270?(y.m(Ft++,he,Ae+qe+Pt),y.m(Ft++,he,Math.max(Ae+qe-Pt/2,Ae)),y.m(Ft++,he,Ae),y.m(Ft++,he,Ae),y.m(Ft++,he,Math.min(Ae-ae+Pt/2,Ae)),y.m(Ft++,he,Ae-ae-Pt)):(y.m(Ft++,he-ae-Pt,Ae),y.m(Ft++,Math.min(he-ae+Pt/2,he),Ae),y.m(Ft++,he,Ae),y.m(Ft++,he,Ae),y.m(Ft++,Math.max(he+qe-Pt/2,he),Ae),y.m(Ft++,he+qe+Pt,Ae)):this.K===180?(y.m(Ft++,he+qe,Ae),y.m(Ft++,he-ae,Ae)):this.K===90?(y.m(Ft++,he,Ae-ae),y.m(Ft++,he,Ae+qe)):this.K===270?(y.m(Ft++,he,Ae+qe),y.m(Ft++,he,Ae-ae)):(y.m(Ft++,he-ae,Ae),y.m(Ft++,he+qe,Ae)))),ut=Xt}xt&&(Ht=y.i(Ft-1).x,re=y.i(Ft-1).y,he=y.i(Ft).x,Ae=y.i(Ft).y,this.K===180||this.K===0?re!==Ae&&(ae=this.K===0?Math.min(Math.max((he+Ht)/2,this.Ta[ft.layer]+this.Rf.x),he):Math.max(Math.min((he+Ht)/2,this.Ta[ft.layer]+this.Rf.x),he),y.m(Ft++,ae,re),y.m(Ft++,ae,Ae)):Ht!==he&&(ae=this.K===90?Math.min(Math.max((Ae+re)/2,this.Ta[ft.layer]+this.Rf.y),Ae):Math.max(Math.min((Ae+re)/2,this.Ta[ft.layer]+this.Rf.y),Ae),y.m(Ft++,Ht,ae),y.m(Ft++,he,ae)))}E!==null&&vt&&4<=y.pointsCount&&(tt!==null&&(tt=st===Vi?y.getLinkPointFromPoint(b,tt,tt.ga(ki),y.i(3),!0):y.i(0),st===Vi&&(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===Vi?y.getLinkPointFromPoint(z,rt,rt.ga(ki),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),ot===Vi&&(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 pn,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}}}},Et=Eo.prototype,Et.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},Et.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},Et.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},Et.B=function(a,y){return a-=y,-1<a&&1>a},Et.zi=function(a,y,x,E){var b=a.length,z=E-x;if(!(1>=z))if((0>x||x>=b-1)&&te("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}sn.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()):te("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 We(Eo,"CycleDepthFirst",0),Cy=new We(Eo,"CycleGreedy",1),Mp=new We(Eo,"CycleFromLayers",2),F0=new We(Eo,"LayerOptimalLinkLength",0),Ey=new We(Eo,"LayerLongestPathSink",1),Ay=new We(Eo,"LayerLongestPathSource",2),D0=new We(Eo,"InitDepthFirstOut",0),Ly=new We(Eo,"InitDepthFirstIn",1),by=new We(Eo,"InitNaive",2),My=new We(Eo,"AggressiveNone",0),N0=new We(Eo,"AggressiveLess",1),ky=new We(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){Wo.call(this,a)}ke(qf,Wo),qf.prototype.createVertex=function(){return new kl(this)},qf.prototype.createEdge=function(){return new kp(this)},qf.className="LayeredDigraphNetwork";function kl(a){Ra.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}ke(kl,Ra);function lx(a,y){return a.index-y.index}function B0(a,y){if(!a.$n){for(var x=[],E=Gn(a.destinationEdgesArrayAccess),b=E.next();!b.done;b=E.next())b=b.value,b.valid&&x.push(b);a.$n=x}for(a=Gn(a.$n),x=a.next();!x.done;x=a.next())if(x=x.value,x.toVertex===y)return x;te("Unable to find destination edge to given vertex")}function Fy(a){if(!a.co){for(var y=[],x=Gn(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=Gn(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){Ra.prototype.Cl.call(this,a),this.bo=this.co=null},kl.prototype.Kl=function(a){Ra.prototype.Kl.call(this,a),this.bo=this.co=null},kl.prototype.zl=function(a){Ra.prototype.zl.call(this,a),this.$n=this.ao=null},kl.prototype.Jl=function(a){Ra.prototype.Jl.call(this,a),this.$n=this.ao=null},sn.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}ke(kp,nl),sn.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 Jr(a){na.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)}ke(Jr,na),Jr.prototype.cloneProtected=function(a){na.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)},Jr.prototype.qb=function(a){a.classType===Jr?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:te("Unknown enum value: "+a):na.prototype.qb.call(this,a)},Jr.prototype.createNetwork=function(){return new Uc(this)},Jr.prototype.makeNetwork=function(a){function y(E){if(E instanceof Li)return!E.isLinkLabel&&E.category!=="Comment";if(E instanceof hi){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 $e?(x.lg(a.nodes,!0,y),x.lg(a.links,!0,y)):a instanceof Fr?x.lg(a.memberParts,!1,y):x.lg(a.iterator,!1,y),x},Jr.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 $e&&(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 Li?(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}Jr.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:te("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:te("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 pn,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 pn,E=y.sourceVertexes;E.next();)b=E.value,hx(a,y,b)&&x.add(b);0<x.count&&(y.children=x.Fa())}break;default:te("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}Jr.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}}Jr.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])}}Jr.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])}}Jr.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:te("Unhandled sorting value "+a.sorting.toString())}},Jr.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},Jr.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=le.allocAt(0,0,a.bounds.width+z,a.bounds.height+tt),a.bounds=b,le.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}Jr.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=Tt.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=bo,Ft.toSpot=Qo;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=Qo,Ft.toSpot=bo;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=Qo,Ft.toSpot=bo;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=bo,Ft.toSpot=Qo;ot=0<=a.commentSpacing?ot+(Pt.width+a.commentSpacing):ot+(a.commentSpacing-Pt.width)}}if(Tt.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)}},Jr.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,Ht=0,re=0,ae=0,he=null,Ae=null,qe=0,Pi=0,Wi=0,Oi=0,ui=0,On=0,kr=0,Cr=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&&(Cr=Math.max(Cr,y?tt[ho].Da.width:tt[ho].Da.height));else rt===1&&(Cr=y?tt[0].Da.width:tt[0].Da.height);if(ut){switch(ot){case Rh:re=135>b?px(this,a,tt,Cr,Ht,re):mx(this,a,tt,Cr,Ht,re),Cr=re.x,Ht=re.width,re=re.height;break;case zh:for(he=0;he<rt;he++)Ae=tt[he],ft=Ae.Da,ae=On===0?0:Pt,y?(Ae.S.h(z-ft.width,Oi+ae),Ht=Math.max(Ht,ft.width),re=Math.max(re,Oi+ae+ft.height),Oi+=ae+ft.height):(Ae.S.h(Wi+ae,z-ft.height),Ht=Math.max(Ht,Wi+ae+ft.width),re=Math.max(re,ft.height),Wi+=ae+ft.width),On++;break;case lh:for(he=0;he<rt;he++)Ae=tt[he],z=Ae.Da,ft=On===0?0:Pt,y?(Ae.S.h(vt/2+a.focus.x,Oi+ft),Ht=Math.max(Ht,z.width),re=Math.max(re,Oi+ft+z.height),Oi+=ft+z.height):(Ae.S.h(Wi+ft,vt/2+a.focus.y),Ht=Math.max(Ht,Wi+ft+z.width),re=Math.max(re,z.height),Wi+=ft+z.width),On++}he=Us(this,2),Ae=Us(this,2),y?(he[0].h(0,0),he[1].h(0,re),Ae[0].h(Ht,0)):(he[0].h(0,0),he[1].h(Ht,0),Ae[0].h(0,re)),Ae[1].h(Ht,re)}else for(ho=0;ho<rt;ho++){var Io=tt[ho],Wa=Io.Da;if(y){0<ft&&0<On&&Wi+vt+Wa.width>ft&&(Wi<z&&rc(a,ot,z-Wi,0,kr,ho-1),ui++,On=0,kr=ho,ae=re,Wi=0,Oi=135<b?-re-Pt:re+Pt),O0(this,Io,0,Oi);var Ka=0;if(On===0)he=Io.Yo,Ae=Io.kp,qe=Wa.width,Pi=Wa.height,(he===null||Ae===null||b!==nu(Io))&&(he=Us(this,2),Ae=Us(this,2),he[0].h(0,0),he[1].h(0,Pi),Ae[0].h(qe,0),Ae[1].h(qe,Pi));else{var xs=oi();Pi=vx(this,a,Io,he,Ae,qe,Pi,xs),Ka=Pi.x,he=xs[0],Ae=xs[1],qe=Pi.width,Pi=Pi.height,gi(xs),Wi<Wa.width&&0>Ka&&(Gc(a,-Ka,0,kr,ho-1),I0(he,-Ka,0),I0(Ae,-Ka,0),Ka=0)}Io.S.h(Ka,Oi),Ht=Math.max(Ht,qe),re=Math.max(re,ae+(ui===0?0:Pt)+Wa.height),Wi=qe}else 0<ft&&0<On&&Oi+vt+Wa.height>ft&&(Oi<z&&rc(a,ot,0,z-Oi,kr,ho-1),ui++,On=0,kr=ho,ae=Ht,Oi=0,Wi=135<b?-Ht-Pt:Ht+Pt),O0(this,Io,Wi,0),Ka=0,On===0?(he=Io.Yo,Ae=Io.kp,qe=Wa.width,Pi=Wa.height,(he===null||Ae===null||b!==nu(Io))&&(he=Us(this,2),Ae=Us(this,2),he[0].h(0,0),he[1].h(qe,0),Ae[0].h(0,Pi),Ae[1].h(qe,Pi))):(xs=oi(),Pi=vx(this,a,Io,he,Ae,qe,Pi,xs),Ka=Pi.x,he=xs[0],Ae=xs[1],qe=Pi.width,Pi=Pi.height,gi(xs),Oi<Wa.height&&0>Ka&&(Gc(a,0,-Ka,kr,ho-1),I0(he,0,-Ka),I0(Ae,0,-Ka),Ka=0)),Io.S.h(Wi,Ka),re=Math.max(re,Pi),Ht=Math.max(Ht,ae+(ui===0?0:Pt)+Wa.width),Oi=Pi;On++}switch(0<ui&&(y?(re+=Math.max(0,x),Wi<Ht&&rc(a,ot,Ht-Wi,0,kr,rt-1),0<Ft&&(st||Gc(a,Ft,0,0,rt-1),Ht+=Ft)):(Ht+=Math.max(0,x),Oi<re&&rc(a,ot,0,re-Oi,kr,rt-1),0<Ft&&(st||Gc(a,0,Ft,0,rt-1),re+=Ft))),Ft=st=0,ot){case tg:y?st+=Ht/2-a.focus.x-xt/2:Ft+=re/2-a.focus.y-xt/2;break;case Yc:0<ui?y?st+=Ht/2-a.focus.x-xt/2:Ft+=re/2-a.focus.y-xt/2:y?(Cr=tt[0].S.x+tt[0].la.x,st+=Cr+(tt[rt-1].S.x+tt[rt-1].la.x+2*tt[rt-1].focus.x-Cr)/2-a.focus.x-xt/2):(Cr=tt[0].S.y+tt[0].la.y,Ft+=Cr+(tt[rt-1].S.y+tt[rt-1].la.y+2*tt[rt-1].focus.y-Cr)/2-a.focus.y-xt/2);break;case Ku:y?(st-=xt,Ht+=xt):(Ft-=xt,re+=xt);break;case Yu:y?(st+=Ht-a.width+xt,Ht+=xt):(Ft+=re-a.height+xt,re+=xt);break;case Rh:y?1<rt?st+=Cr+vt/2-a.focus.x:st+=tt[0].focus.x-a.focus.x+tt[0].la.x:1<rt?Ft+=Cr+vt/2-a.focus.y:Ft+=tt[0].focus.y-a.focus.y+tt[0].la.y;break;case zh:y?st+=Ht+vt/2-a.focus.x:Ft+=re+vt/2-a.focus.y;break;case lh:break;default:re=this.customAlignment(a,st,Ft,Ht,re),st=re[0],Ft=re[1],Ht=re[2],re=re[3]}for(xt=0;xt<rt;xt++)Cr=tt[xt],y?Cr.S.h(Cr.S.x+Cr.la.x-st,Cr.S.y+(135<b?(ut?-re:-Cr.Da.height)+Cr.la.y-x:Xt+x+Cr.la.y)):Cr.S.h(Cr.S.x+(135<b?(ut?-Ht:-Cr.Da.width)+Cr.la.x-x:E+x+Cr.la.x),Cr.S.y+Cr.la.y-Ft);if(rt=tt=0,ut?y?(Ht=By(a,Ht,st),0>st&&(st=0),135<b&&(Ft+=re+x),re+=Xt+x,ot===lh&&(tt+=vt/2+a.focus.x),rt+=Xt+x):(135<b&&(st+=Ht+x),Ht+=E+x,re=Ty(a,re,Ft),0>Ft&&(Ft=0),ot===lh&&(rt+=vt/2+a.focus.y),tt+=E+x):y?(a.comments===null?E>Ht&&(Ht=Oy(ot,E-Ht,0),tt=Ht.x,rt=Ht.y,Ht=E,st=0):Ht=By(a,Ht,st),0>st&&(tt-=st,st=0),135<b&&(Ft+=re+x),re=Math.max(Math.max(re,Xt),re+Xt+x),rt+=Xt+x):(135<b&&(st+=Ht+x),Ht=Math.max(Math.max(Ht,E),Ht+E+x),a.comments===null?Xt>re&&(re=Oy(ot,0,Xt-re),tt=re.x,rt=re.y,re=Xt,Ft=0):re=Ty(a,re,Ft),0>Ft&&(rt-=Ft,Ft=0),tt+=E+x),0<ui)b=Us(this,4),ui=Us(this,4),y?(b[2].h(0,Xt+x),b[3].h(b[2].x,re),ui[2].h(Ht,b[2].y),ui[3].h(ui[2].x,b[3].y)):(b[2].h(E+x,0),b[3].h(Ht,b[2].y),ui[2].h(b[2].x,re),ui[3].h(b[3].x,ui[2].y));else{for(b=Us(this,he.length+2),ui=Us(this,Ae.length+2),ot=0;ot<he.length;ot++)ut=he[ot],b[ot+2].h(ut.x+tt,ut.y+rt);for(ot=0;ot<Ae.length;ot++)ut=Ae[ot],ui[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])),ui[0].h(st+E,0),ui[1].h(ui[0].x,Xt),ui[2].y<ui[1].y&&(ui[2].x<ui[0].x?ui[2].assign(ui[1]):ui[1].assign(ui[2])),ui[3].y<ui[2].y&&(ui[3].x<ui[0].x?ui[3].assign(ui[2]):ui[2].assign(ui[3])),b[2].y-=x/2,ui[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])),ui[0].h(0,Ft+Xt),ui[1].h(E,ui[0].y),ui[2].x<ui[1].x&&(ui[2].y<ui[0].y?ui[2].assign(ui[1]):ui[1].assign(ui[2])),ui[3].x<ui[2].x&&(ui[3].y<ui[0].y?ui[3].assign(ui[2]):ui[2].assign(ui[3])),b[2].x-=x/2,ui[2].x-=x/2),du(this,he),du(this,Ae),a.Yo=b,a.kp=ui,a.la.h(st,Ft),a.Da.h(Ht,re)}break;default:te("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,Ht=0;(ut||ft||y.hm||y.im&&y.maxGenerationCount===1)&&(Ht=Math.max(0,y.rowIndent)),ut=y.width;var re=y.height,ae=0,he=0,Ae=0,qe=0,Pi=0,Wi=0,Oi=0,ui=0,On=0,kr=0;if(rt&&!Fp(st)&&135<E&&b.reverse(),Fp(st))if(1<tt)for(var Cr=0;Cr<tt;Cr++){var ho=b[Cr],Io=ho.Da;Cr%2===0&&Cr!==tt-1?On=Math.max(On,(x?Io.width:Io.height)+a.computeBusNodeSpacing(ho)-xt):Cr%2!==0&&(kr=Math.max(kr,(x?Io.width:Io.height)+a.computeBusNodeSpacing(ho)-xt))}else tt===1&&(On=x?b[0].Da.width:b[0].Da.height);if(rt)switch(st){case Rh:case Uu:he=135>E?px(a,y,b,On,ae,he):mx(a,y,b,On,ae,he),On=he.x,ae=he.width,he=he.height;break;case zh:for(vt=0;vt<tt;vt++)Ft=b[vt],Ae=Ft.Da,kr=Oi===0?0:Xt,x?(Ft.S.h(z-Ae.width,Pi+kr),ae=Math.max(ae,Ae.width),he=Math.max(he,Pi+kr+Ae.height),Pi+=kr+Ae.height):(Ft.S.h(qe+kr,z-Ae.height),ae=Math.max(ae,qe+kr+Ae.width),he=Math.max(he,Ae.height),qe+=kr+Ae.width),Oi++;break;case lh:for(z=0;z<tt;z++)vt=b[z],Ft=vt.Da,Ae=Oi===0?0:Xt,x?(vt.S.h(xt/2+y.focus.x,Pi+Ae),ae=Math.max(ae,Ft.width),he=Math.max(he,Pi+Ae+Ft.height),Pi+=Ae+Ft.height):(vt.S.h(qe+Ae,xt/2+y.focus.y),ae=Math.max(ae,qe+Ae+Ft.width),he=Math.max(he,Ft.height),qe+=Ae+Ft.width),Oi++}else for(kr=0;kr<tt;kr++)Cr=b[kr],ho=Cr.Da,x?(0<vt&&0<Oi&&qe+xt+ho.width>vt&&(qe<z&&rc(y,st,z-qe,0,ui,kr-1),Wi++,Oi=0,ui=kr,Ae=he,qe=0,Pi=135<E?-he-Xt:he+Xt),Io=Oi===0?Ft:xt,O0(a,Cr,0,Pi),Cr.S.h(qe+Io,Pi),ae=Math.max(ae,qe+Io+ho.width),he=Math.max(he,Ae+(Wi===0?0:Xt)+ho.height),qe+=Io+ho.width):(0<vt&&0<Oi&&Pi+xt+ho.height>vt&&(Pi<z&&rc(y,st,0,z-Pi,ui,kr-1),Wi++,Oi=0,ui=kr,Ae=ae,Pi=0,qe=135<E?-ae-Xt:ae+Xt),Io=Oi===0?Ft:xt,O0(a,Cr,qe,0),Cr.S.h(qe,Pi+Io),he=Math.max(he,Pi+Io+ho.height),ae=Math.max(ae,Ae+(Wi===0?0:Xt)+ho.width),Pi+=Io+ho.height),Oi++;switch(0<Wi&&(x?(he+=Math.max(0,ot),qe<ae&&rc(y,st,ae-qe,0,ui,tt-1),0<Ht&&(ft||Gc(y,Ht,0,0,tt-1),ae+=Ht)):(ae+=Math.max(0,ot),Pi<he&&rc(y,st,0,he-Pi,ui,tt-1),0<Ht&&(ft||Gc(y,0,Ht,0,tt-1),he+=Ht))),Ht=ft=0,st){case tg:x?ft+=ae/2-y.focus.x-Pt/2:Ht+=he/2-y.focus.y-Pt/2;break;case Yc:0<Wi?x?ft+=ae/2-y.focus.x-Pt/2:Ht+=he/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,Ht+=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,ae+=Pt):(Ht-=Pt,he+=Pt);break;case Yu:x?(ft+=ae-y.width+Pt,ae+=Pt):(Ht+=he-y.height+Pt,he+=Pt);break;case Rh:case Uu:x?1<tt?ft+=On+xt/2-y.focus.x:ft+=b[0].focus.x-y.focus.x+b[0].la.x:1<tt?Ht+=On+xt/2-y.focus.y:Ht+=b[0].focus.y-y.focus.y+b[0].la.y;break;case zh:x?ft+=ae+xt/2-y.focus.x:Ht+=he+xt/2-y.focus.y;break;case lh:break;default:a=a.customAlignment(y,ft,Ht,ae,he),ft=a[0],Ht=a[1],ae=a[2],he=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?-he:-Pt.Da.height)+Pt.la.y-ot:re+ot+Pt.la.y)):Pt.S.h(Pt.S.x+(135<E?(rt?-ae:-Pt.Da.width)+Pt.la.x-ot:ut+ot+Pt.la.x),Pt.S.y+Pt.la.y-Ht);x?(ae=By(y,ae,ft),0>ft&&(ft=0),135<E&&(Ht+=he+ot),he=Math.max(Math.max(he,re),he+re+ot)):(135<E&&(ft+=ae+ot),ae=Math.max(Math.max(ae,ut),ae+ut+ot),he=Ty(y,he,Ht),0>Ht&&(Ht=0)),y.la.h(ft,Ht),y.Da.h(ae,he)}}Jr.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 le(E,0,b,z);if(tt===1)return y=x[0],b=y.Da.width,z=y.Da.height,new le(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 Ht=a.computeBusNodeSpacing(Pt)-rt;Pt.S.h(E-(Ft.width+Ht),vt+Xt),b=Math.max(b,Ft.width+Ht),z=Math.max(z,vt+Xt+Ft.height),vt+=Xt+Ft.height}else Ht=a.computeBusNodeSpacing(Pt)-rt,Pt.S.h(ft+Xt,E-(Ft.height+Ht)),z=Math.max(z,Ft.height+Ht),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],Ht=Xt.Da;var re=ut===0?0:ot;if(st){var ae=a.computeBusNodeSpacing(Xt)-rt;Xt.S.h(ft+ae,vt+re),b=Math.max(b,ft+Ht.width+ae),z=Math.max(z,vt+re+Ht.height),vt+=re+Ht.height}else ae=a.computeBusNodeSpacing(Xt)-rt,Xt.S.h(ft+re,vt+ae),b=Math.max(b,ft+re+Ht.width),z=Math.max(z,vt+Ht.height+ae),ft+=re+Ht.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 le(E,0,b,z)}function mx(a,y,x,E,b,z){var tt=x.length;if(tt===0)return new le(E,0,b,z);if(tt===1)return x=x[0],b=x.Da.width,z=x.Da.height,new le(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 Ht=a.computeBusNodeSpacing(Pt)-rt;vt-=Xt+Ft.height,Pt.S.h(E-(Ft.width+Ht),vt),b=Math.max(b,Ft.width+Ht),z=Math.max(z,Math.abs(vt))}else Ht=a.computeBusNodeSpacing(Pt)-rt,ft-=Xt+Ft.width,Pt.S.h(ft,E-(Ft.height+Ht)),z=Math.max(z,Ft.height+Ht),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],Ht=Xt.Da;var re=ut===0?0:ot;if(st){var ae=a.computeBusNodeSpacing(Xt)-rt;vt-=re+Ht.height,Xt.S.h(ft+ae,vt),b=Math.max(b,ft+Ht.width+ae),z=Math.max(z,Math.abs(vt))}else ae=a.computeBusNodeSpacing(Xt)-rt,ft-=re+Ht.width,Xt.S.h(ft,vt+ae),z=Math.max(z,vt+Ht.height+ae),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 le(E,0,b,z)}Jr.prototype.computeBusNodeSpacing=function(a){return a.parent===null?0:a.parent.nodeSpacing},Jr.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:te("Unhandled alignment value "+a.toString())}return new Tt(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:te("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 Ht=z;x+1<ft.length&&(Ht=ft[x+1]);var re=Xt;Xt=re.x,re=re.y,b+1<xt.length&&(re=xt[b+1],Xt=re.x,re=re.y,Xt+=E);var ae=vt;z.y===st?ae=ot-z.x:z.y>st&&z.y<re?ae=ot+(z.y-st)/(re-st)*(Xt-ot)-z.x:st>z.y&&st<Ht.y&&(ae=ot-(z.x+(st-z.y)/(Ht.y-z.y)*(Ht.x-z.x))),ae<vt&&(vt=ae),Ht.y<=z.y?x++:re<=st?b++:(Ht.y<=re&&x++,re<=Ht.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;)Ht=ft[x++],ut[b++].h(Ht.x,Ht.y);for(;st<z.length;)Ht=z[st++],ut[b++].h(Ht.x+ot,Ht.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 le(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,Ht=z,x+1<ft.length&&(Ht=ft[x+1]),re=Xt,Xt=re.x,re=re.y,b+1<xt.length&&(re=xt[b+1],Xt=re.x,re=re.y,re+=vt),ae=E,z.x===ot?ae=st-z.y:z.x>ot&&z.x<Xt?ae=st+(z.x-ot)/(Xt-ot)*(re-st)-z.y:ot>z.x&&ot<Ht.x&&(ae=st-(z.y+(ot-z.x)/(Ht.x-z.x)*(Ht.y-z.y))),ae<E&&(E=ae),Ht.x<=z.x?x++:Xt<=ot?b++:(Ht.x<=Xt&&x++,Xt<=Ht.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;)Ht=ft[x++],ut[b++].h(Ht.x,Ht.y);for(;st<z.length;)Ht=z[st++],ut[b++].h(Ht.x,Ht.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 le(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 Tt;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)}Jr.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:te("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:te("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)}}}Jr.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},Jr.prototype.commitNodes=function(){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();for(a.reset();a.next();)this.layoutComments(a.value)},Jr.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 Tt(-this.nodeSpacing/2,-this.layerSpacing/2)):(x.Bc(this.layerSpacing,this.nodeSpacing/2),E=new Tt(-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 le(0,z,x,rt))):this.angle===90?(b.push(new le(0,z,x,rt)),z+=rt):this.angle===180?(z-=rt,b.push(new le(z,0,rt,x))):(b.push(new le(z,0,rt,x)),z+=rt)}this.commitLayers(b,E)}},Jr.prototype.commitLayers=function(){},Jr.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},Jr.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])}}Jr.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=Qo;break;case 180:b=yo;break;default:b=bo}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:bo;if(tt===1||y===tt-1&&tt%2===1)switch(E){case 0:ot=yo;break;case 90:ot=bo;break;case 180:ot=vo;break;default:ot=Qo}else y%2===0&&(ot=E===90||E===270?vo:Qo);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:Qo,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:bo,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=Qo;break;case 180:E.fromSpot=yo;break;default:E.fromSpot=bo}else E.fromSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:E.toSpot=yo;break;case 90:E.toSpot=bo;break;case 180:E.toSpot=vo;break;default:E.toSpot=Qo}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=Qo;break;case 180:E.toSpot=yo;break;default:E.toSpot=bo}else E.toSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:E.fromSpot=yo;break;case 90:E.fromSpot=bo;break;case 180:E.fromSpot=vo;break;default:E.fromSpot=Qo}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}Jr.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},Jr.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)},sn.Object.defineProperties(Jr.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()):te("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 We(Jr,"PathDefault",-1),Gu=new We(Jr,"PathDestination",0),Kc=new We(Jr,"PathSource",1),$f=new We(Jr,"SortingForwards",10),Dp=new We(Jr,"SortingReverse",11),Np=new We(Jr,"SortingAscending",12),Bp=new We(Jr,"SortingDescending",13),tg=new We(Jr,"AlignmentCenterSubtrees",20),Yc=new We(Jr,"AlignmentCenterChildren",21),Ku=new We(Jr,"AlignmentStart",22),Yu=new We(Jr,"AlignmentEnd",23),Rh=new We(Jr,"AlignmentBus",24),Uu=new We(Jr,"AlignmentBusBranching",25),zh=new We(Jr,"AlignmentTopLeftBus",26),lh=new We(Jr,"AlignmentBottomRightBus",27),z0=new We(Jr,"CompactionNone",30),Tp=new We(Jr,"CompactionBlock",31),j0=new We(Jr,"StyleLayered",40),Ry=new We(Jr,"StyleLastParents",41),zy=new We(Jr,"StyleAlternating",42),jy=new We(Jr,"StyleRootOnly",43),W0=new We(Jr,"ArrangementVertical",50),Wy=new We(Jr,"ArrangementHorizontal",51),H0=new We(Jr,"ArrangementFixedRoots",52),Hy=new We(Jr,"LayerIndividual",60),Zy=new We(Jr,"LayerSiblings",61),Z0=new We(Jr,"LayerUniform",62);Jr.className="TreeLayout",Jr.PathDefault=R0,Jr.PathDestination=Gu,Jr.PathSource=Kc,Jr.SortingForwards=$f,Jr.SortingReverse=Dp,Jr.SortingAscending=Np,Jr.SortingDescending=Bp,Jr.AlignmentCenterSubtrees=tg,Jr.AlignmentCenterChildren=Yc,Jr.AlignmentStart=Ku,Jr.AlignmentEnd=Yu,Jr.AlignmentBus=Rh,Jr.AlignmentBusBranching=Uu,Jr.AlignmentTopLeftBus=zh,Jr.AlignmentBottomRightBus=lh,Jr.CompactionNone=z0,Jr.CompactionBlock=Tp,Jr.StyleLayered=j0,Jr.StyleLastParents=Ry,Jr.StyleAlternating=zy,Jr.StyleRootOnly=jy,Jr.ArrangementVertical=W0,Jr.ArrangementHorizontal=Wy,Jr.ArrangementFixedRoots=H0,Jr.LayerIndividual=Hy,Jr.LayerSiblings=Zy,Jr.LayerUniform=Z0;function Uc(a){Wo.call(this,a)}ke(Uc,Wo),Uc.prototype.createVertex=function(){return new Hl(this)},Uc.prototype.createEdge=function(){return new eg(this)},Uc.className="TreeNetwork";function Hl(a){Ra.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 Tt(0,0),this.Da=new zt(0,0),this.la=new Tt(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=Lo,this.wr=!0,this.Dp=Lo}ke(Hl,Ra),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)},sn.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 Tt(0,0)}ke(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:te("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))):te("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()))}}},sn.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",Ao.prototype.initializeStandardTools=function(){this.gb("Action",new Tl,this.mouseDownTools),this.gb("Relinking",new sl,this.mouseDownTools),this.gb("LinkReshaping",new Ea,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=Xe.go,Vy={get licenseKey(){return $e.licenseKey},set licenseKey(a){$e.licenseKey=a},get version(){return $e.version},Group:Fr,EnumValue:We,List:pn,Set:xn,Map:_e,Point:Tt,Size:zt,Rect:le,Margin:Bi,Spot:ri,Geometry:Rn,PathFigure:da,PathSegment:qr,InputEvent:za,DiagramEvent:Dl,ChangedEvent:Ho,Model:Xi,GraphLinksModel:no,TreeModel:Ns,Binding:La,Transaction:xa,UndoManager:qo,CommandHandler:Ut,Tool:eo,DraggingTool:Uo,DraggingInfo:nh,DraggingOptions:at,LinkingBaseTool:so,LinkingTool:fs,RelinkingTool:sl,LinkReshapingTool:Ea,ResizingTool:us,RotatingTool:Cs,ClickSelectingTool:_h,ActionTool:Tl,ClickCreatingTool:yh,HTMLInfo:wu,ContextMenuTool:Es,DragSelectingTool:Sl,PanningTool:os,TextEditingTool:Xo,ToolManager:Ao,Animation:as,AnimationManager:$s,AnimationTrigger:Xl,Layer:Xa,Diagram:$e,Palette:ct,Overview:pt,Brush:wo,GraphObject:Le,Panel:ii,RowColumnDefinition:Ba,Shape:zr,TextBlock:jo,Picture:Ws,Part:rr,Adornment:lo,Node:Li,Link:hi,Placeholder:Ms,Layout:na,LayoutNetwork:Wo,LayoutVertex:Ra,LayoutEdge:nl,GridLayout:$a,PanelLayout:Ia,CircularLayout:la,CircularNetwork:Jf,CircularVertex:Ep,CircularEdge:C0,ForceDirectedLayout:ls,ForceDirectedNetwork:Vc,ForceDirectedVertex:Ap,ForceDirectedEdge:Lp,LayeredDigraphLayout:Eo,LayeredDigraphNetwork:qf,LayeredDigraphVertex:kl,LayeredDigraphEdge:kp,TreeLayout:Jr,TreeNetwork:Uc,TreeVertex:Hl,TreeEdge:eg};typeof V0=="object"&&V0.version&&Fn("WARNING: a `go` object on the root object is already defined. "+("Debug"in V0?"debug ":"")+"version: "+V0.version+", replaced with version: "+Vy.version),$e.prototype.go=Vy,Xe.go=Vy,typeof Qn.exports=="object"&&(Qn.exports=typeof Dt.g!="undefined"?Dt.g.go:self.go)}();var yt=typeof Dt.g!="undefined"?Dt.g.go:self.go;const ee=typeof Dt.g!="undefined"?Dt.g.go:self.go,ie=ee.Group,we=ee.EnumValue,Ee=ee.List,jt=ee.Set,ce=ee.Map,Ve=ee.Point,xe=ee.Size,Lt=ee.Rect,ze=ee.Margin,Kt=ee.Spot,Je=ee.Geometry,Bt=ee.PathFigure,nt=ee.PathSegment,et=ee.InputEvent,dt=ee.DiagramEvent,lt=ee.ChangedEvent,gt=ee.Model,mt=ee.GraphLinksModel,St=ee.TreeModel,Mt=ee.Binding,It=ee.Transaction,Zt=ee.UndoManager,oe=ee.CommandHandler,Gt=ee.Tool,_t=ee.DraggingTool,ge=ee.DraggingInfo,me=ee.LinkingBaseTool,Pe=ee.LinkingTool,ye=ee.RelinkingTool,He=ee.LinkReshapingTool,wn=ee.ResizingTool,ln=ee.RotatingTool,Oe=ee.ClickSelectingTool,Sn=ee.ActionTool,se=ee.ClickCreatingTool,Yt=ee.HTMLInfo,fn=ee.ContextMenuTool,_n=ee.DragSelectingTool,In=ee.PanningTool,on=ee.TextEditingTool,jn=ee.ToolManager,Pn=ee.Animation,di=ee.AnimationManager,Re=ee.AnimationTrigger,ve=ee.Layer,Ye=ee.Diagram,mi=ee.Palette,Cn=ee.Overview,Ot=ee.Brush,At=ee.GraphObject,wt=ee.Panel,Nt=ee.RowColumnDefinition,Vt=ee.Shape,kt=ee.TextBlock,$t=ee.TextBlockMetrics,nn=ee.Picture,dn=ee.Part,En=ee.Adornment,De=ee.Node,Ce=ee.Link,Qe=ee.Placeholder,un=ee.Layout,Nn=ee.LayoutNetwork,ai=ee.LayoutVertex,Tn=ee.LayoutEdge,bn=ee.GridLayout,Ie=ee.PanelLayout,Ue=ee.CircularLayout,cn=ee.CircularNetwork,Ln=ee.CircularVertex,Xn=ee.CircularEdge,li=ee.ForceDirectedLayout,Ci=ee.ForceDirectedNetwork,gn=ee.ForceDirectedVertex,ti=ee.ForceDirectedEdge,_i=ee.LayeredDigraphLayout,fr=ee.LayeredDigraphNetwork,tr=ee.LayeredDigraphVertex,er=ee.LayeredDigraphEdge,yr=ee.TreeLayout,sr=ee.TreeNetwork,hr=ee.TreeVertex,zi=ee.TreeEdge,gr=ee.version},24334:function(Qn,pi,Dt){var yt,ee;(function(ie,we){Qn.exports=we(ie)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof Dt.g!="undefined"?Dt.g:this,function(ie){"use strict";ie=ie||{};var we=ie.Base64,Ee="2.6.4",jt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ce=function(ye){for(var He={},wn=0,ln=ye.length;wn<ln;wn++)He[ye.charAt(wn)]=wn;return He}(jt),Ve=String.fromCharCode,xe=function(ye){if(ye.length<2){var He=ye.charCodeAt(0);return He<128?ye:He<2048?Ve(192|He>>>6)+Ve(128|He&63):Ve(224|He>>>12&15)+Ve(128|He>>>6&63)+Ve(128|He&63)}else{var He=65536+(ye.charCodeAt(0)-55296)*1024+(ye.charCodeAt(1)-56320);return Ve(240|He>>>18&7)+Ve(128|He>>>12&63)+Ve(128|He>>>6&63)+Ve(128|He&63)}},Lt=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,ze=function(ye){return ye.replace(Lt,xe)},Kt=function(ye){var He=[0,2,1][ye.length%3],wn=ye.charCodeAt(0)<<16|(ye.length>1?ye.charCodeAt(1):0)<<8|(ye.length>2?ye.charCodeAt(2):0),ln=[jt.charAt(wn>>>18),jt.charAt(wn>>>12&63),He>=2?"=":jt.charAt(wn>>>6&63),He>=1?"=":jt.charAt(wn&63)];return ln.join("")},Je=ie.btoa&&typeof ie.btoa=="function"?function(ye){return ie.btoa(ye)}:function(ye){if(ye.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return ye.replace(/[\s\S]{1,3}/g,Kt)},Bt=function(ye){return Je(ze(String(ye)))},nt=function(ye){return ye.replace(/[+\/]/g,function(He){return He=="+"?"-":"_"}).replace(/=/g,"")},et=function(ye,He){return He?nt(Bt(ye)):Bt(ye)},dt=function(ye){return et(ye,!0)},lt;ie.Uint8Array&&(lt=function(ye,He){for(var wn="",ln=0,Oe=ye.length;ln<Oe;ln+=3){var Sn=ye[ln],se=ye[ln+1],Yt=ye[ln+2],fn=Sn<<16|se<<8|Yt;wn+=jt.charAt(fn>>>18)+jt.charAt(fn>>>12&63)+(typeof se!="undefined"?jt.charAt(fn>>>6&63):"=")+(typeof Yt!="undefined"?jt.charAt(fn&63):"=")}return He?nt(wn):wn});var gt=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,mt=function(ye){switch(ye.length){case 4:var He=(7&ye.charCodeAt(0))<<18|(63&ye.charCodeAt(1))<<12|(63&ye.charCodeAt(2))<<6|63&ye.charCodeAt(3),wn=He-65536;return Ve((wn>>>10)+55296)+Ve((wn&1023)+56320);case 3:return Ve((15&ye.charCodeAt(0))<<12|(63&ye.charCodeAt(1))<<6|63&ye.charCodeAt(2));default:return Ve((31&ye.charCodeAt(0))<<6|63&ye.charCodeAt(1))}},St=function(ye){return ye.replace(gt,mt)},Mt=function(ye){var He=ye.length,wn=He%4,ln=(He>0?ce[ye.charAt(0)]<<18:0)|(He>1?ce[ye.charAt(1)]<<12:0)|(He>2?ce[ye.charAt(2)]<<6:0)|(He>3?ce[ye.charAt(3)]:0),Oe=[Ve(ln>>>16),Ve(ln>>>8&255),Ve(ln&255)];return Oe.length-=[0,0,2,1][wn],Oe.join("")},It=ie.atob&&typeof ie.atob=="function"?function(ye){return ie.atob(ye)}:function(ye){return ye.replace(/\S{1,4}/g,Mt)},Zt=function(ye){return It(String(ye).replace(/[^A-Za-z0-9\+\/]/g,""))},oe=function(ye){return St(It(ye))},Gt=function(ye){return String(ye).replace(/[-_]/g,function(He){return He=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},_t=function(ye){return oe(Gt(ye))},ge;ie.Uint8Array&&(ge=function(ye){return Uint8Array.from(Zt(Gt(ye)),function(He){return He.charCodeAt(0)})});var me=function(){var ye=ie.Base64;return ie.Base64=we,ye};if(ie.Base64={VERSION:Ee,atob:Zt,btoa:Je,fromBase64:_t,toBase64:et,utob:ze,encode:et,encodeURI:dt,btou:St,decode:_t,noConflict:me,fromUint8Array:lt,toUint8Array:ge},typeof Object.defineProperty=="function"){var Pe=function(ye){return{value:ye,enumerable:!1,writable:!0,configurable:!0}};ie.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",Pe(function(){return _t(this)})),Object.defineProperty(String.prototype,"toBase64",Pe(function(ye){return et(this,ye)})),Object.defineProperty(String.prototype,"toBase64URI",Pe(function(){return et(this,!0)}))}}return ie.Meteor&&(Base64=ie.Base64),Qn.exports?Qn.exports.Base64=ie.Base64:(yt=[],ee=function(){return ie.Base64}.apply(pi,yt),ee!==void 0&&(Qn.exports=ee)),{Base64:ie.Base64}})},2859:function(Qn,pi,Dt){"use strict";Dt.d(pi,{hP:function(){return Cn}});var yt=function(Ot,At){return(yt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(wt,Nt){wt.__proto__=Nt}||function(wt,Nt){for(var Vt in Nt)Object.prototype.hasOwnProperty.call(Nt,Vt)&&(wt[Vt]=Nt[Vt])})(Ot,At)};function ee(Ot,At){function wt(){this.constructor=Ot}yt(Ot,At),Ot.prototype=At===null?Object.create(At):(wt.prototype=At.prototype,new wt)}function ie(Ot,At,wt,Nt){return new(wt||(wt=Promise))(function(Vt,kt){function $t(En){try{dn(Nt.next(En))}catch(De){kt(De)}}function nn(En){try{dn(Nt.throw(En))}catch(De){kt(De)}}function dn(En){var De;En.done?Vt(En.value):(De=En.value,De instanceof wt?De:new wt(function(Ce){Ce(De)})).then($t,nn)}dn((Nt=Nt.apply(Ot,At||[])).next())})}function we(Ot,At){var wt,Nt,Vt,kt,$t={label:0,sent:function(){if(1&Vt[0])throw Vt[1];return Vt[1]},trys:[],ops:[]};return kt={next:nn(0),throw:nn(1),return:nn(2)},typeof Symbol=="function"&&(kt[Symbol.iterator]=function(){return this}),kt;function nn(dn){return function(En){return function(De){if(wt)throw new TypeError("Generator is already executing.");for(;$t;)try{if(wt=1,Nt&&(Vt=2&De[0]?Nt.return:De[0]?Nt.throw||((Vt=Nt.return)&&Vt.call(Nt),0):Nt.next)&&!(Vt=Vt.call(Nt,De[1])).done)return Vt;switch(Nt=0,Vt&&(De=[2&De[0],Vt.value]),De[0]){case 0:case 1:Vt=De;break;case 4:return $t.label++,{value:De[1],done:!1};case 5:$t.label++,Nt=De[1],De=[0];continue;case 7:De=$t.ops.pop(),$t.trys.pop();continue;default:if(Vt=$t.trys,!((Vt=Vt.length>0&&Vt[Vt.length-1])||De[0]!==6&&De[0]!==2)){$t=0;continue}if(De[0]===3&&(!Vt||De[1]>Vt[0]&&De[1]<Vt[3])){$t.label=De[1];break}if(De[0]===6&&$t.label<Vt[1]){$t.label=Vt[1],Vt=De;break}if(Vt&&$t.label<Vt[2]){$t.label=Vt[2],$t.ops.push(De);break}Vt[2]&&$t.ops.pop(),$t.trys.pop();continue}De=At.call(Ot,$t)}catch(Ce){De=[6,Ce],Nt=0}finally{wt=Vt=0}if(5&De[0])throw De[1];return{value:De[0]?De[1]:void 0,done:!0}}([dn,En])}}}function Ee(){for(var Ot=0,At=0,wt=arguments.length;At<wt;At++)Ot+=arguments[At].length;var Nt=Array(Ot),Vt=0;for(At=0;At<wt;At++)for(var kt=arguments[At],$t=0,nn=kt.length;$t<nn;$t++,Vt++)Nt[Vt]=kt[$t];return Nt}var jt=function(){function Ot(){}return Ot.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},Ot.setAttributes=function(At,wt){for(var Nt=0,Vt=wt;Nt<Vt.length;Nt++){var kt=Vt[Nt],$t=kt[0],nn=kt[1];At.setAttribute($t,nn)}},Ot.createRect=function(At,wt,Nt){var Vt=document.createElementNS("http://www.w3.org/2000/svg","rect");return Vt.setAttribute("width",At.toString()),Vt.setAttribute("height",wt.toString()),Nt&&Ot.setAttributes(Vt,Nt),Vt},Ot.createLine=function(At,wt,Nt,Vt,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",Nt.toString()),$t.setAttribute("y2",Vt.toString()),kt&&Ot.setAttributes($t,kt),$t},Ot.createPolygon=function(At,wt){var Nt=document.createElementNS("http://www.w3.org/2000/svg","polygon");return Nt.setAttribute("points",At),wt&&Ot.setAttributes(Nt,wt),Nt},Ot.createCircle=function(At,wt){var Nt=document.createElementNS("http://www.w3.org/2000/svg","circle");return Nt.setAttribute("cx",(At/2).toString()),Nt.setAttribute("cy",(At/2).toString()),Nt.setAttribute("r",At.toString()),wt&&Ot.setAttributes(Nt,wt),Nt},Ot.createEllipse=function(At,wt,Nt){var Vt=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return Vt.setAttribute("cx",(At/2).toString()),Vt.setAttribute("cy",(wt/2).toString()),Vt.setAttribute("rx",(At/2).toString()),Vt.setAttribute("ry",(wt/2).toString()),Nt&&Ot.setAttributes(Vt,Nt),Vt},Ot.createGroup=function(At){var wt=document.createElementNS("http://www.w3.org/2000/svg","g");return At&&Ot.setAttributes(wt,At),wt},Ot.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},Ot.createMarker=function(At,wt,Nt,Vt,kt,$t,nn){var dn=document.createElementNS("http://www.w3.org/2000/svg","marker");return Ot.setAttributes(dn,[["id",At],["orient",wt],["markerWidth",Nt.toString()],["markerHeight",Vt.toString()],["refX",kt.toString()],["refY",$t.toString()]]),dn.appendChild(nn),dn},Ot.createText=function(At){var wt=document.createElementNS("http://www.w3.org/2000/svg","text");return wt.setAttribute("x","0"),wt.setAttribute("y","0"),At&&Ot.setAttributes(wt,At),wt},Ot.createTSpan=function(At,wt){var Nt=document.createElementNS("http://www.w3.org/2000/svg","tspan");return Nt.textContent=At,wt&&Ot.setAttributes(Nt,wt),Nt},Ot.createImage=function(At){var wt=document.createElementNS("http://www.w3.org/2000/svg","image");return At&&Ot.setAttributes(wt,At),wt},Ot.createPoint=function(At,wt){var Nt=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return Nt.x=At,Nt.y=wt,Nt},Ot.createPath=function(At,wt){var Nt=document.createElementNS("http://www.w3.org/2000/svg","path");return Nt.setAttribute("d",At),wt&&Ot.setAttributes(Nt,wt),Nt},Ot}(),ce=function(){function Ot(){}return Ot.addKey=function(At){Ot.key=At},Object.defineProperty(Ot,"isLicensed",{get:function(){return!!Ot.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(Ot.key)},enumerable:!1,configurable:!0}),Ot}(),Ve=function(){function Ot(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return Ot.prototype.rasterize=function(At,wt,Nt){var Vt=this;return new Promise(function(kt){var $t=Nt!==void 0?Nt:document.createElement("canvas");At===null&&(Vt.markersOnly=!0,Vt.naturalSize=!1);var nn=document.createElementNS("http://www.w3.org/2000/svg","svg");nn.setAttribute("xmlns","http://www.w3.org/2000/svg"),nn.setAttribute("width",wt.width.baseVal.valueAsString),nn.setAttribute("height",wt.height.baseVal.valueAsString),nn.setAttribute("viewBox","0 0 "+wt.viewBox.baseVal.width.toString()+" "+wt.viewBox.baseVal.height.toString()),nn.innerHTML=wt.innerHTML,Vt.naturalSize===!0?(nn.width.baseVal.value=At.naturalWidth,nn.height.baseVal.value=At.naturalHeight):Vt.width!==void 0&&Vt.height!==void 0&&(nn.width.baseVal.value=Vt.width,nn.height.baseVal.value=Vt.height),$t.width=nn.width.baseVal.value,$t.height=nn.height.baseVal.value;var dn=nn.outerHTML,En=$t.getContext("2d");Vt.markersOnly!==!0&&En.drawImage(At,0,0,$t.width,$t.height);var De=window.URL,Ce=new Image($t.width,$t.height);Ce.setAttribute("crossOrigin","anonymous");var Qe=new Blob([dn],{type:"image/svg+xml"}),un=De.createObjectURL(Qe);Ce.onload=function(){En.drawImage(Ce,0,0),De.revokeObjectURL(un);var Nn=$t.toDataURL(Vt.imageType,Vt.imageQuality);kt(Nn)},Ce.src=un})},Ot}(),xe=function(){},Lt=function(){function Ot(At){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+At+"_"}return Object.defineProperty(Ot.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.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(Ot.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),Ot.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},Ot.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)},Ot.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 ze("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new ze("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
`)),this.addRule(new ze("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
from {
|
|
opacity: 1;
|
|
}
|
|
to {
|
|
opacity: 0;
|
|
}
|
|
`)),this.addClass(new Kt("fade_in",`
|
|
animation-duration: 0.3s;
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
`)),this.addClass(new Kt("fade_out",`
|
|
animation-duration: 0.3s;
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
`))},Ot.prototype.removeStyleSheet=function(){var At;this.styleSheet&&(((At=this.styleSheetRoot)!==null&&At!==void 0?At:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},Ot}(),ze=function(Ot,At){this.selector=Ot,this.style=At},Kt=function(Ot,At){this.localName=Ot,this.style=At},Je=function(){function Ot(At,wt,Nt,Vt,kt){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=At,this.displayMode=wt,this.markerItems=Nt,this.uiStyleSettings=Vt,this.styles=kt,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return Ot.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 Nt=document.createElement("div");Nt.className=this.toolbarBlockStyleClass.name,Nt.style.whiteSpace="nowrap",this.uiContainer.appendChild(Nt),this.addActionButton(Nt,'<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(Nt,'<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(Nt,'<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(Nt,'<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(Nt,'<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(Nt,'<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(Nt,'<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(Nt,'<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 Vt=document.createElement("div");Vt.className=this.toolbarBlockStyleClass.name,Vt.style.whiteSpace="nowrap",Vt.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(Vt),this.addActionButton(Vt,'<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(Vt,'<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()},Ot.prototype.addButtonClickListener=function(At){this.buttonClickListeners.push(At)},Ot.prototype.removeButtonClickListener=function(At){this.buttonClickListeners.indexOf(At)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(At),1)},Ot.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},Ot.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]))}},Ot.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")},Ot.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)})},Ot.prototype.addActionButton=function(At,wt,Nt){var Vt=this,kt=document.createElement("div");switch(kt.className=""+this.toolbarButtonStyleClass.name,kt.innerHTML=wt,kt.setAttribute("data-action",Nt),kt.addEventListener("click",function(){Vt.actionToolbarButtonClicked(kt,Nt)}),Nt){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)},Ot.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new Kt("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 Kt("toolbar_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new Kt("toolbar-block",`
|
|
display: inline-block;
|
|
box-sizing: content-box;
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new Kt("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 Kt("toolbar-overflow-block_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
`));var At=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new Kt("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 Kt("toolbar_button_colors",`
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new Kt("toolbar_active_button",`
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
`)),this.styles.addRule(new ze("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
`)),this.styles.addRule(new ze("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
`))},Ot.prototype.markerToolbarButtonClicked=function(At,wt){this.setActiveButton(At),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Nt){return Nt("marker",wt)}),this.markerButtonOverflowBlock.style.display="none"},Ot.prototype.actionToolbarButtonClicked=function(At,wt){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Nt){return Nt("action",wt)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},Ot.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)},Ot.prototype.setActiveMarkerButton=function(At){var wt=this.markerButtons.find(function(Nt){return Nt.getAttribute("data-type-name")===At});wt&&this.setActiveButton(wt)},Ot.prototype.setCurrentMarker=function(At){var wt=this;this.currentMarker=At,this.buttons.filter(function(Nt){return/delete|notes/.test(Nt.getAttribute("data-action"))}).forEach(function(Nt){wt.currentMarker===void 0?(Nt.style.fillOpacity="0.4",Nt.style.pointerEvents="none"):(Nt.style.fillOpacity="1",Nt.style.pointerEvents="all")})},Ot}(),Bt=function(){function Ot(At,wt,Nt,Vt){this.panels=[],this.panelButtons=[],this.markerjsContainer=At,this.displayMode=wt,this.uiStyleSettings=Nt,this.styles=Vt,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return Ot.prototype.addStyles=function(){var At;this.toolboxStyleClass=this.styles.addClass(new Kt("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 Kt("toolbox_colors",`
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
`));var wt=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Kt("toolbox-button-row",`
|
|
display: flex;
|
|
cursor: default;
|
|
box-sizing: content-box;
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Kt("toolbox-button-row_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new Kt("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 Kt("toolbox-panel-row_colors",`
|
|
background-color: `+((At=this.uiStyleSettings.toolboxBackgroundColor)!==null&&At!==void 0?At:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new Kt("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 Kt("toolbox-button_colors",`
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Kt("toolbox-active-button_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
`)),this.styles.addRule(new ze("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
`)),this.styles.addRule(new ze("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
`))},Ot.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)},Ot.prototype.setPanelButtons=function(At){var wt,Nt,Vt=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+" "+((Nt=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&Nt!==void 0?Nt:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(kt){var $t;kt.uiStyleSettings=Vt.uiStyleSettings;var nn=document.createElement("div");nn.className=Vt.toolboxButtonStyleClass.name+" "+(($t=Vt.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&$t!==void 0?$t:Vt.toolboxButtonStyleColorsClass.name),nn.innerHTML=kt.icon,nn.title=kt.title,nn.addEventListener("click",function(){Vt.panelButtonClick(kt)}),Vt.panelButtons.push(nn),Vt.buttonRow.appendChild(nn)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},Ot.prototype.panelButtonClick=function(At){var wt=this,Nt=-1;if(At!==this.activePanel){Nt=this.panels.indexOf(At),this.panelRow.innerHTML="";var Vt=At.getUi();Vt.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(Vt),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 nn,dn;kt.className=wt.toolboxButtonStyleClass.name+" "+($t===Nt?""+((nn=wt.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&nn!==void 0?nn:wt.toolboxActiveButtonStyleColorsClass.name):""+((dn=wt.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&dn!==void 0?dn:wt.toolboxButtonStyleColorsClass.name))})},Ot}(),nt=function(Ot,At){this.title=Ot,this.icon=At},et=function(Ot){function At(wt,Nt,Vt,kt){var $t=Ot.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=Nt,$t.currentColor=Vt,$t.setCurrentColor=$t.setCurrentColor.bind($t),$t.getColorBox=$t.getColorBox.bind($t),$t}return ee(At,Ot),At.prototype.getUi=function(){var wt=this,Nt=document.createElement("div");return Nt.style.overflow="hidden",Nt.style.whiteSpace="nowrap",this.colors.forEach(function(Vt){var kt=wt.getColorBox(Vt);Nt.appendChild(kt),wt.colorBoxes.push(kt)}),Nt},At.prototype.getColorBox=function(wt){var Nt=this,Vt=this.uiStyleSettings.toolbarHeight/4,kt=this.uiStyleSettings.toolbarHeight-Vt,$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(){Nt.setCurrentColor(wt,$t)});var nn=document.createElement("div");return nn.style.display="inline-block",nn.style.width=kt-2+"px",nn.style.height=kt-2+"px",nn.style.backgroundColor=wt,nn.style.borderRadius=kt/2+"px",wt==="transparent"&&(nn.style.fill=this.uiStyleSettings.toolboxAccentColor,nn.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(nn),$t},At.prototype.setCurrentColor=function(wt,Nt){var Vt=this;this.currentColor=wt,this.colorBoxes.forEach(function(kt){kt.style.borderColor=kt===Nt?Vt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(wt)},At}(nt),dt=function(){function Ot(At,wt,Nt){this._state="new",this._isSelected=!1,this._container=At,this._overlayContainer=wt,this.globalSettings=Nt,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(Ot.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),Ot.prototype.ownsTarget=function(At){return!1},Object.defineProperty(Ot.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),Ot.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},Ot.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},Ot.prototype.pointerDown=function(At,wt){},Ot.prototype.dblClick=function(At,wt){},Ot.prototype.manipulate=function(At){},Ot.prototype.pointerUp=function(At){this.stateChanged()},Ot.prototype.dispose=function(){},Ot.prototype.addMarkerVisualToContainer=function(At){this.container.childNodes.length>0?this.container.insertBefore(At,this.container.childNodes[0]):this.container.appendChild(At)},Ot.prototype.getState=function(){return{typeName:Ot.typeName,state:this.state,notes:this.notes}},Ot.prototype.restoreState=function(At){this._state=At.state,this.notes=At.notes},Ot.prototype.scale=function(At,wt){},Ot.prototype.colorChanged=function(At){this.onColorChanged&&this.onColorChanged(At),this.stateChanged()},Ot.prototype.fillColorChanged=function(At){this.onFillColorChanged&&this.onFillColorChanged(At),this.stateChanged()},Ot.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)}},Ot.typeName="MarkerBase",Ot}(),lt=function(){function Ot(){this.findGripByVisual=this.findGripByVisual.bind(this)}return Ot.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},Ot}(),gt=function(){function Ot(){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 Ot.prototype.ownsTarget=function(At){return At===this.visual||At===this.visual.childNodes[0]||At===this.visual.childNodes[1]},Ot}(),mt=function(){function Ot(){}return Ot.toITransformMatrix=function(At){return{a:At.a,b:At.b,c:At.c,d:At.d,e:At.e,f:At.f}},Ot.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},Ot}(),St=function(Ot){function At(wt,Nt,Vt){var kt=Ot.call(this,wt,Nt,Vt)||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 ee(At,Ot),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 Nt=jt.createTransform();this._visual.transform.baseVal.appendItem(Nt)},enumerable:!1,configurable:!0}),At.prototype.ownsTarget=function(wt){return!!Ot.prototype.ownsTarget.call(this,wt)||!!(this.controlGrips.findGripByVisual(wt)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(wt))},At.prototype.pointerDown=function(wt,Nt){Ot.prototype.pointerDown.call(this,wt,Nt),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 Vt=this.unrotatePoint(wt);if(this.manipulationStartX=Vt.x,this.manipulationStartY=Vt.y,this.offsetX=Vt.x-this.left,this.offsetY=Vt.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(Nt),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Nt)){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 Nt=this.state;Ot.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",Nt==="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 Nt=this.unrotatePoint(wt);this.state==="creating"?this.resize(wt):this.state==="move"?(this.left=this.manipulationStartLeft+(Nt.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(Nt.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(Nt):this.state==="rotate"&&this.rotate(wt)},At.prototype.resize=function(wt){var Nt=this.manipulationStartLeft,Vt=this.manipulationStartWidth,kt=this.manipulationStartTop,$t=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:Nt=this.manipulationStartLeft+wt.x-this.manipulationStartX,Vt=this.manipulationStartWidth+this.manipulationStartLeft-Nt;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:Vt=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}Vt>=0?(this.left=Nt,this.width=Vt):(this.left=Nt+Vt,this.width=-Vt),$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 Nt=Math.sign(wt.x-this.centerX);this.rotationAngle=180*Math.atan((wt.y-this.centerY)/(wt.x-this.centerX))/Math.PI+90*Nt,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 Nt=this.container.getCTM(),Vt=jt.createPoint(wt.x,wt.y);return{x:(Vt=Vt.matrixTransform(Nt)).x,y:Vt.y}},At.prototype.unrotatePoint=function(wt){if(this.rotationAngle===0)return wt;var Nt=this.container.getCTM();Nt=Nt.inverse();var Vt=jt.createPoint(wt.x,wt.y);return{x:(Vt=Vt.matrixTransform(Nt)).x,y:Vt.y}},At.prototype.select=function(){Ot.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},At.prototype.deselect=function(){Ot.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,Nt=-wt/2,Vt=Nt,kt=(this.width+this.CB_DISTANCE)/2-wt/2,$t=(this.height+this.CB_DISTANCE)/2-wt/2,nn=this.height+this.CB_DISTANCE-wt/2,dn=this.width+this.CB_DISTANCE-wt/2;this.positionGrip(this.controlGrips.topLeft.visual,Nt,Vt),this.positionGrip(this.controlGrips.topCenter.visual,kt,Vt),this.positionGrip(this.controlGrips.topRight.visual,dn,Vt),this.positionGrip(this.controlGrips.centerLeft.visual,Nt,$t),this.positionGrip(this.controlGrips.centerRight.visual,dn,$t),this.positionGrip(this.controlGrips.bottomLeft.visual,Nt,nn),this.positionGrip(this.controlGrips.bottomCenter.visual,kt,nn),this.positionGrip(this.controlGrips.bottomRight.visual,dn,nn),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,kt,Vt-3*this.CB_DISTANCE)},At.prototype.positionGrip=function(wt,Nt,Vt){var kt=wt.transform.baseVal.getItem(0);kt.setTranslate(Nt,Vt),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)},Ot.prototype.getState.call(this))},At.prototype.restoreState=function(wt){Ot.prototype.restoreState.call(this,wt);var Nt=wt;this.left=Nt.left,this.top=Nt.top,this.width=Nt.width,this.height=Nt.height,this.rotationAngle=Nt.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(mt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,Nt.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(mt.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,Nt.containerTransformMatrix))},At.prototype.scale=function(wt,Nt){Ot.prototype.scale.call(this,wt,Nt);var Vt=this.rotatePoint({x:this.left,y:this.top}),kt=this.unrotatePoint({x:Vt.x*wt,y:Vt.y*Nt});this.left=kt.x,this.top=kt.y,this.width=this.width*wt,this.height=this.height*Nt,this.adjustControlBox()},At}(dt),Mt=function(Ot){function At(wt,Nt,Vt){var kt=Ot.call(this,wt,Nt,Vt)||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 ee(At,Ot),At.prototype.ownsTarget=function(wt){return!(!Ot.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,Nt){Ot.prototype.pointerDown.call(this,wt,Nt),this.state==="new"&&(this.createVisual(),this.moveVisual(wt),this._state="creating")},At.prototype.manipulate=function(wt){Ot.prototype.manipulate.call(this,wt)},At.prototype.resize=function(wt){Ot.prototype.resize.call(this,wt),this.setSize()},At.prototype.setSize=function(){Ot.prototype.setSize.call(this),jt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},At.prototype.pointerUp=function(wt){Ot.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},Ot.prototype.getState.call(this))},At.prototype.restoreState=function(wt){var Nt=wt;this.fillColor=Nt.fillColor,this.strokeColor=Nt.strokeColor,this.strokeWidth=Nt.strokeWidth,this.strokeDasharray=Nt.strokeDasharray,this.opacity=Nt.opacity,this.createVisual(),Ot.prototype.restoreState.call(this,wt),this.setSize()},At.prototype.scale=function(wt,Nt){Ot.prototype.scale.call(this,wt,Nt),this.setSize()},At.title="Rectangle marker",At}(St),It=function(Ot){function At(wt,Nt,Vt,kt){var $t=Ot.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=Nt,$t.currentWidth=Vt,$t.setCurrentWidth=$t.setCurrentWidth.bind($t),$t}return ee(At,Ot),At.prototype.getUi=function(){var wt=this,Nt=document.createElement("div");return Nt.style.display="flex",Nt.style.overflow="hidden",Nt.style.flexGrow="2",this.widths.forEach(function(Vt){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=Vt===wt.currentWidth?wt.uiStyleSettings.toolboxAccentColor:"transparent",kt.addEventListener("click",function(){wt.setCurrentWidth(Vt,kt)}),Nt.appendChild(kt);var $t=document.createElement("div");$t.innerText=Vt.toString(),$t.style.marginRight="5px",kt.appendChild($t);var nn=document.createElement("div");nn.style.minHeight="20px",nn.style.flexGrow="2",nn.style.display="flex",nn.style.alignItems="center";var dn=document.createElement("hr");dn.style.minWidth="20px",dn.style.border="0px",dn.style.borderTop=Vt+"px solid "+wt.uiStyleSettings.toolboxColor,dn.style.flexGrow="2",nn.appendChild(dn),kt.appendChild(nn),wt.widthBoxes.push(kt)}),Nt},At.prototype.setCurrentWidth=function(wt,Nt){var Vt=this;this.currentWidth=wt,this.widthBoxes.forEach(function(kt){kt.style.borderColor=kt===Nt?Vt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},At}(nt),Zt=function(Ot){function At(wt,Nt,Vt,kt){var $t=Ot.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=Nt,$t.currentStyle=Vt,$t.setCurrentStyle=$t.setCurrentStyle.bind($t),$t}return ee(At,Ot),At.prototype.getUi=function(){var wt=this,Nt=document.createElement("div");return Nt.style.display="flex",Nt.style.overflow="hidden",Nt.style.flexGrow="2",this.styles.forEach(function(Vt){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=Vt===wt.currentStyle?wt.uiStyleSettings.toolboxAccentColor:"transparent",kt.addEventListener("click",function(){wt.setCurrentStyle(Vt,kt)}),Nt.appendChild(kt);var $t=document.createElement("div");$t.style.minHeight="20px",$t.style.flexGrow="2",$t.style.overflow="hidden";var nn=`<svg width="100" height="20">
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+wt.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(Vt!==""?'stroke-dasharray="'+Vt+'"':"")+` />
|
|
</svg>`;$t.innerHTML=nn,kt.appendChild($t),wt.styleBoxes.push(kt)}),Nt},At.prototype.setCurrentStyle=function(wt,Nt){var Vt=this;this.currentStyle=wt,this.styleBoxes.forEach(function(kt){kt.style.borderColor=kt===Nt?Vt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},At}(nt),oe=function(Ot){function At(wt,Nt,Vt){var kt=Ot.call(this,wt,Nt,Vt)||this;return kt.strokeColor=Vt.defaultColor,kt.strokeWidth=Vt.defaultStrokeWidth,kt.strokeDasharray=Vt.defaultStrokeDasharray,kt.strokePanel=new et("Line color",Vt.defaultColorSet,Vt.defaultColor),kt.strokePanel.onColorChanged=kt.setStrokeColor,kt.strokeWidthPanel=new It("Line width",Vt.defaultStrokeWidths,Vt.defaultStrokeWidth),kt.strokeWidthPanel.onWidthChanged=kt.setStrokeWidth,kt.strokeStylePanel=new Zt("Line style",Vt.defaultStrokeDasharrays,Vt.defaultStrokeDasharray),kt.strokeStylePanel.onStyleChanged=kt.setStrokeDasharray,kt}return ee(At,Ot),Object.defineProperty(At.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),At.prototype.getState=function(){var wt=Ot.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}(Mt),Gt=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"},_t=function(Ot){function At(wt,Nt,Vt){var kt=Ot.call(this,wt,Nt,Vt)||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 ee(At,Ot),At.prototype.ownsTarget=function(wt){return!!Ot.prototype.ownsTarget.call(this,wt)||!(!this.grip1.ownsTarget(wt)&&!this.grip2.ownsTarget(wt))},At.prototype.pointerDown=function(wt,Nt){Ot.prototype.pointerDown.call(this,wt,Nt),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(Nt)?this.activeGrip=this.grip1:this.grip2.ownsTarget(Nt)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},At.prototype.pointerUp=function(wt){var Nt=this.state;Ot.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",Nt==="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(){Ot.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},At.prototype.deselect=function(){Ot.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,Nt,Vt){var kt=wt.transform.baseVal.getItem(0);kt.setTranslate(Nt,Vt),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},Ot.prototype.getState.call(this))},At.prototype.restoreState=function(wt){Ot.prototype.restoreState.call(this,wt);var Nt=wt;this.x1=Nt.x1,this.y1=Nt.y1,this.x2=Nt.x2,this.y2=Nt.y2},At.prototype.scale=function(wt,Nt){Ot.prototype.scale.call(this,wt,Nt),this.x1=this.x1*wt,this.y1=this.y1*Nt,this.x2=this.x2*wt,this.y2=this.y2*Nt,this.adjustVisual(),this.adjustControlBox()},At}(dt),ge=function(Ot){function At(wt,Nt,Vt){var kt=Ot.call(this,wt,Nt,Vt)||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=Vt.defaultColor,kt.strokeWidth=Vt.defaultStrokeWidth,kt.strokeDasharray=Vt.defaultStrokeDasharray,kt.strokePanel=new et("Line color",Vt.defaultColorSet,Vt.defaultColor),kt.strokePanel.onColorChanged=kt.setStrokeColor,kt.strokeWidthPanel=new It("Line width",Vt.defaultStrokeWidths,Vt.defaultStrokeWidth),kt.strokeWidthPanel.onWidthChanged=kt.setStrokeWidth,kt.strokeStylePanel=new Zt("Line style",Vt.defaultStrokeDasharrays,Vt.defaultStrokeDasharray),kt.strokeStylePanel.onStyleChanged=kt.setStrokeDasharray,kt}return ee(At,Ot),At.prototype.ownsTarget=function(wt){return!(!Ot.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,Nt){Ot.prototype.pointerDown.call(this,wt,Nt),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},Ot.prototype.getState.call(this));return wt.typeName=At.typeName,wt},At.prototype.restoreState=function(wt){Ot.prototype.restoreState.call(this,wt);var Nt=wt;this.strokeColor=Nt.strokeColor,this.strokeWidth=Nt.strokeWidth,this.strokeDasharray=Nt.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}(_t),me=function(Ot){function At(wt,Nt,Vt,kt){var $t=Ot.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=Nt,$t.currentFont=Vt,$t.setCurrentFont=$t.setCurrentFont.bind($t),$t}return ee(At,Ot),At.prototype.getUi=function(){var wt=this,Nt=document.createElement("div");return Nt.style.overflow="hidden",Nt.style.flexGrow="2",this.fonts.forEach(function(Vt){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=Vt===wt.currentFont?wt.uiStyleSettings.toolboxAccentColor:"transparent",kt.addEventListener("click",function(){wt.setCurrentFont(Vt,kt)}),Nt.appendChild(kt);var $t=document.createElement("div");$t.style.display="flex",$t.style.minHeight="20px",$t.style.flexGrow="2",$t.style.fontFamily=Vt,$t.style.overflow="hidden";var nn=document.createElement("div");nn.style.whiteSpace="nowrap",nn.style.overflow="hidden",nn.style.textOverflow="ellipsis",nn.innerHTML="The quick brown fox jumps over the lazy dog",$t.appendChild(nn),kt.appendChild($t),wt.fontBoxes.push(kt)}),Nt},At.prototype.setCurrentFont=function(wt,Nt){var Vt=this;this.currentFont=wt,this.fontBoxes.forEach(function(kt){kt.style.borderColor=kt===Nt?Vt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},At}(nt),Pe=function(Ot){function At(wt,Nt,Vt){var kt=Ot.call(this,wt,Nt,Vt)||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=Vt.defaultColor,kt.fontFamily=Vt.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",Vt.defaultColorSet,Vt.defaultColor),kt.colorPanel.onColorChanged=kt.setColor,kt.fontFamilyPanel=new me("Font",Vt.defaultFontFamilies,Vt.defaultFontFamily),kt.fontFamilyPanel.onFontChanged=kt.setFont,kt}return ee(At,Ot),At.prototype.ownsTarget=function(wt){if(Ot.prototype.ownsTarget.call(this,wt)||wt===this.visual||wt===this.textElement||wt===this.bgRectangle)return!0;var Nt=!1;return this.textElement.childNodes.forEach(function(Vt){Vt===wt&&(Nt=!0)}),Nt},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,Nt){Ot.prototype.pointerDown.call(this,wt,Nt),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(Nt){wt.textElement.appendChild(jt.createTSpan(Nt.trim()===""?" ":Nt.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},At.prototype.getTextScale=function(){var wt=this.textElement.getBBox(),Nt=1;if(wt.width>0&&wt.height>0){var Vt=(1*this.width-this.width*this.padding*2/100)/wt.width,kt=(1*this.height-this.height*this.padding*2/100)/wt.height;Nt=Math.min(Vt,kt)}return Nt},At.prototype.getTextPosition=function(wt){var Nt=this.textElement.getBBox(),Vt=0,kt=0;return Nt.width>0&&Nt.height>0&&(Vt=(this.width-Nt.width*wt)/2,kt=this.height/2-Nt.height*wt/2),{x:Vt,y:kt}},At.prototype.sizeText=function(){var wt=this.textElement.getBBox(),Nt=this.getTextScale(),Vt=this.getTextPosition(Nt);Vt.y-=wt.y*Nt,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+Vt.x+"px, "+Vt.y+"px) scale("+Nt+", "+Nt+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(Vt.x,Vt.y),this.textElement.transform.baseVal.getItem(1).setScale(Nt,Nt))},At.prototype.manipulate=function(wt){Ot.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){Ot.prototype.resize.call(this,wt),this.isMoved=!0,this.setSize(),this.sizeText()},At.prototype.setSize=function(){Ot.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 Nt=this.state;Nt==="creating"&&(this._suppressMarkerCreateEvent=!0),Ot.prototype.pointerUp.call(this,wt),this.setSize(),(Nt==="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(Nt){Nt.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var Nt=Number.parseFloat(wt.textEditor.style.fontSize);wt.textEditor.clientWidth>=Number.parseInt(wt.textEditor.style.maxWidth)&&Nt>.9;)Nt-=.1,wt.textEditor.style.fontSize=Math.max(Nt,.9)+"em"}),this.textEditor.addEventListener("keyup",function(Nt){Nt.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(Nt){if(Nt.clipboardData){var Vt=Nt.clipboardData.getData("text"),kt=window.getSelection();if(!kt.rangeCount)return!1;kt.deleteFromDocument(),kt.getRangeAt(0).insertNode(document.createTextNode(Vt)),Nt.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(),Nt=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),Vt=this.textElement.getBBox(),kt={x:Vt.width*wt,y:Vt.height*wt};Nt.x-=kt.x/2,Nt.y-=kt.y/2,this.textEditor.style.top=Nt.y+"px",this.textEditor.style.left=Nt.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-Nt.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(){Ot.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},At.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),Ot.prototype.deselect.call(this)},At.prototype.dblClick=function(wt,Nt){Ot.prototype.dblClick.call(this,wt,Nt),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},Ot.prototype.getState.call(this));return wt.typeName=At.typeName,wt},At.prototype.restoreState=function(wt){var Nt=wt;this.color=Nt.color,this.fontFamily=Nt.fontFamily,this.padding=Nt.padding,this.text=Nt.text,this.createVisual(),Ot.prototype.restoreState.call(this,wt),this.setSize()},At.prototype.scale=function(wt,Nt){Ot.prototype.scale.call(this,wt,Nt),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),ye=function(Ot){function At(wt,Nt,Vt){var kt=Ot.call(this,wt,Nt,Vt)||this;return kt.color="transparent",kt.lineWidth=3,kt.drawing=!1,kt.pixelRatio=1,kt.color=Vt.defaultColor,kt.lineWidth=Vt.defaultStrokeWidth,kt.pixelRatio=Vt.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",Vt.defaultColorSet,Vt.defaultColor),kt.colorPanel.onColorChanged=kt.setColor,kt.lineWidthPanel=new It("Line width",Vt.defaultStrokeWidths,Vt.defaultStrokeWidth),kt.lineWidthPanel.onWidthChanged=kt.setLineWidth,kt}return ee(At,Ot),At.prototype.ownsTarget=function(wt){return!(!Ot.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,Nt){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):Ot.prototype.pointerDown.call(this,wt,Nt)},At.prototype.manipulate=function(wt){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(wt.x,wt.y),this.canvasContext.stroke()):Ot.prototype.manipulate.call(this,wt)},At.prototype.resize=function(wt){Ot.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()):Ot.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(),Ot.prototype.select.call(this)},At.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),Ot.prototype.deselect.call(this)},At.prototype.finishCreation=function(){for(var wt=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),Nt=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],Vt=Nt[0],kt=Nt[1],$t=Nt[2],nn=Nt[3],dn=!1,En=0;En<this.canvasElement.height;En++)for(var De=0;De<this.canvasElement.width;De++)wt.data[En*this.canvasElement.width*4+4*De+3]>0&&(dn=!0,En<kt&&(kt=En),De<Vt&&(Vt=De),En>nn&&(nn=En),De>$t&&($t=De));if(dn){this.left=Vt/this.pixelRatio,this.top=kt/this.pixelRatio,this.width=($t-Vt)/this.pixelRatio,this.height=(nn-kt)/this.pixelRatio;var Ce=document.createElement("canvas");Ce.width=$t-Vt,Ce.height=nn-kt,Ce.getContext("2d").putImageData(this.canvasContext.getImageData(Vt,kt,$t-Vt,nn-kt),0,0),this.drawingImgUrl=Ce.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},Ot.prototype.getState.call(this));return wt.typeName=At.typeName,wt},At.prototype.restoreState=function(wt){this.createVisual(),Ot.prototype.restoreState.call(this,wt),this.drawingImgUrl=wt.drawingImgUrl,this.setDrawingImage()},At.prototype.scale=function(wt,Nt){Ot.prototype.scale.call(this,wt,Nt),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),He=function(Ot){function At(wt,Nt,Vt){var kt=Ot.call(this,wt,Vt||'<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=Nt,kt.setCurrentType=kt.setCurrentType.bind(kt),kt}return ee(At,Ot),At.prototype.getUi=function(){var wt=this,Nt=document.createElement("div");Nt.style.display="flex",Nt.style.overflow="hidden",Nt.style.flexGrow="2";for(var Vt=function(nn){var dn="both";switch(nn){case 0:dn="both";break;case 1:dn="start";break;case 2:dn="end";break;case 3:dn="none"}var En=document.createElement("div");if(En.style.display="flex",En.style.flexGrow="2",En.style.alignItems="center",En.style.justifyContent="space-between",En.style.padding="5px",En.style.borderWidth="2px",En.style.borderStyle="solid",En.style.borderColor=dn===kt.currentType?kt.uiStyleSettings.toolboxAccentColor:"transparent",En.addEventListener("click",function(){wt.setCurrentType(dn,En)}),Nt.appendChild(En),dn==="both"||dn==="start"){var De=document.createElement("div");De.style.display="flex",De.style.alignItems="center",De.style.minHeight="20px",De.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>`,De.style.marginLeft="5px",En.appendChild(De)}var Ce=document.createElement("div");Ce.style.display="flex",Ce.style.alignItems="center",Ce.style.minHeight="20px",Ce.style.flexGrow="2";var Qe=document.createElement("hr");if(Qe.style.minWidth="20px",Qe.style.border="0px",Qe.style.borderTop="3px solid "+(kt.uiStyleSettings!==void 0?kt.uiStyleSettings.toolboxColor:"#eeeeee"),Qe.style.flexGrow="2",Ce.appendChild(Qe),En.appendChild(Ce),dn==="both"||dn==="end"){var un=document.createElement("div");un.style.display="flex",un.style.alignItems="center",un.style.minHeight="20px",un.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>`,un.style.marginRight="5px",En.appendChild(un)}kt.typeBoxes.push(En)},kt=this,$t=0;$t<4;$t++)Vt($t);return Nt},At.prototype.setCurrentType=function(wt,Nt){var Vt=this;this.currentType=wt,this.typeBoxes.forEach(function(kt){kt.style.borderColor=kt===Nt?Vt.uiStyleSettings!==void 0?Vt.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},At}(nt),wn=function(Ot){function At(wt,Nt,Vt){var kt=Ot.call(this,wt,Nt,Vt)||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 He("Arrow type","end"),kt.arrowTypePanel.onArrowTypeChanged=kt.setArrowType,kt}return ee(At,Ot),At.prototype.ownsTarget=function(wt){return!(!Ot.prototype.ownsTarget.call(this,wt)&&wt!==this.arrow1&&wt!==this.arrow2)},At.prototype.getArrowPoints=function(wt,Nt){var Vt=this.arrowBaseWidth+2*this.strokeWidth,kt=this.arrowBaseHeight+2*this.strokeWidth;return wt-Vt/2+","+(Nt+kt/2)+" "+wt+","+(Nt-kt/2)+" "+(wt+Vt/2)+","+(Nt+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,Nt){Ot.prototype.pointerDown.call(this,wt,Nt),this.state==="creating"&&this.createTips()},At.prototype.adjustVisual=function(){if(Ot.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 Nt=this.arrow1.transform.baseVal.getItem(0);Nt.setRotate(wt,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(Nt,0);var Vt=this.arrow2.transform.baseVal.getItem(0);Vt.setRotate(wt+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(Vt,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},Ot.prototype.getState.call(this));return wt.typeName=At.typeName,wt},At.prototype.restoreState=function(wt){Ot.prototype.restoreState.call(this,wt);var Nt=wt;this.arrowType=Nt.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}(ge),ln=function(Ot){function At(wt,Nt,Vt){var kt=Ot.call(this,wt,Nt,Vt)||this;return kt.fillColor=Vt.defaultFillColor,kt.strokeWidth=0,kt.fillPanel=new et("Color",Vt.defaultColorSet,Vt.defaultFillColor),kt.fillPanel.onColorChanged=kt.setFillColor,kt}return ee(At,Ot),Object.defineProperty(At.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),At.prototype.getState=function(){var wt=Ot.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}(Mt),Oe=function(Ot){function At(wt,Nt,Vt,kt){var $t=Ot.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=Nt,$t.currentOpacity=Vt,$t.setCurrentOpacity=$t.setCurrentOpacity.bind($t),$t}return ee(At,Ot),At.prototype.getUi=function(){var wt=this,Nt=document.createElement("div");return Nt.style.display="flex",Nt.style.overflow="hidden",Nt.style.flexGrow="2",Nt.style.justifyContent="space-between",this.opacities.forEach(function(Vt){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=Vt===wt.currentOpacity?wt.uiStyleSettings.toolboxAccentColor:"transparent",kt.addEventListener("click",function(){wt.setCurrentOpacity(Vt,kt)}),Nt.appendChild(kt);var $t=document.createElement("div");$t.innerText=100*Vt+"%",kt.appendChild($t),wt.opacityBoxes.push(kt)}),Nt},At.prototype.setCurrentOpacity=function(wt,Nt){var Vt=this;this.currentOpacity=wt,this.opacityBoxes.forEach(function(kt){kt.style.borderColor=kt===Nt?Vt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},At}(nt),Sn=function(Ot){function At(wt,Nt,Vt){var kt=Ot.call(this,wt,Nt,Vt)||this;return kt.setOpacity=kt.setOpacity.bind(kt),kt.fillColor=Vt.defaultHighlightColor,kt.strokeWidth=0,kt.opacity=Vt.defaultHighlightOpacity,kt.fillPanel=new et("Color",Vt.defaultColorSet,kt.fillColor),kt.fillPanel.onColorChanged=kt.setFillColor,kt.opacityPanel=new Oe("Opacity",Vt.defaultOpacitySteps,kt.opacity),kt.opacityPanel.onOpacityChanged=kt.setOpacity,kt}return ee(At,Ot),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=Ot.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}(ln),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>',Yt='<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>',fn=function(Ot){function At(wt,Nt,Vt){var kt=Ot.call(this,wt,Nt,Vt)||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=Vt.defaultStrokeColor,kt.bgColor=Vt.defaultFillColor,kt.fontFamily=Vt.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",Vt.defaultColorSet,kt.color,se),kt.colorPanel.onColorChanged=kt.setColor,kt.bgColorPanel=new et("Fill color",Vt.defaultColorSet,kt.bgColor,Yt),kt.bgColorPanel.onColorChanged=kt.setBgColor,kt.fontFamilyPanel=new me("Font",Vt.defaultFontFamilies,Vt.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 ee(At,Ot),At.prototype.ownsTarget=function(wt){return Ot.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,Nt){this.state==="new"&&Ot.prototype.pointerDown.call(this,wt,Nt),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(Nt)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):Ot.prototype.pointerDown.call(this,wt,Nt)},At.prototype.pointerUp=function(wt){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,Ot.prototype.pointerUp.call(this,wt);else{var Nt=this.state==="creating";Ot.prototype.pointerUp.call(this,wt),this.setTipPoints(Nt),this.positionTip()}},At.prototype.manipulate=function(wt){if(this.tipMoving){var Nt=this.unrotatePoint(wt);this.tipPosition={x:Nt.x-this.manipulationStartLeft,y:Nt.y-this.manipulationStartTop},this.positionTip()}else Ot.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 Nt=Math.min(this.height/2,15),Vt=this.height/5;wt&&(this.tipPosition={x:Nt+Vt/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))?(Vt=this.width/5,Nt=Math.min(this.width/2,15),this.tipBase1Position={x:Nt,y:0},this.tipBase2Position={x:Nt+Vt,y:0}):(this.tipBase1Position={x:0,y:Nt},this.tipBase2Position={x:0,y:Nt+Vt}):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))?(Vt=this.width/5,Nt=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Nt-Vt,y:0},this.tipBase2Position={x:this.width-Nt,y:0}):(this.tipBase1Position={x:this.width,y:Nt},this.tipBase2Position={x:this.width,y:Nt+Vt}):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))?(Vt=this.width/5,Nt=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Nt-Vt,y:this.height},this.tipBase2Position={x:this.width-Nt,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-Nt-Vt},this.tipBase2Position={x:this.width,y:this.height-Nt}):kt<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(Vt=this.width/5,Nt=Math.min(this.width/2,15),this.tipBase1Position={x:Nt,y:this.height},this.tipBase2Position={x:Nt+Vt,y:this.height}):(this.tipBase1Position={x:0,y:this.height-Nt},this.tipBase2Position={x:0,y:this.height-Nt-Vt})},At.prototype.resize=function(wt){Ot.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(),Ot.prototype.select.call(this)},At.prototype.getState=function(){var wt=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},Ot.prototype.getState.call(this));return wt.typeName=At.typeName,wt},At.prototype.restoreState=function(wt){var Nt=wt;this.bgColor=Nt.bgColor,this.tipPosition=Nt.tipPosition,Ot.prototype.restoreState.call(this,wt),this.createTip(),this.setTipPoints()},At.prototype.scale=function(wt,Nt){Ot.prototype.scale.call(this,wt,Nt),this.tipPosition={x:this.tipPosition.x*wt,y:this.tipPosition.y*Nt},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}(Pe),_n=function(Ot){function At(wt,Nt,Vt){var kt=Ot.call(this,wt,Nt,Vt)||this;return kt.fillColor="transparent",kt.strokeColor="transparent",kt.strokeWidth=0,kt.strokeDasharray="",kt.opacity=1,kt.strokeColor=Vt.defaultColor,kt.strokeWidth=Vt.defaultStrokeWidth,kt.strokeDasharray=Vt.defaultStrokeDasharray,kt.fillColor=Vt.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",Ee(Vt.defaultColorSet,["transparent"]),Vt.defaultColor),kt.strokePanel.onColorChanged=kt.setStrokeColor,kt.fillPanel=new et("Fill color",Ee(Vt.defaultColorSet,["transparent"]),kt.fillColor,Yt),kt.fillPanel.onColorChanged=kt.setFillColor,kt.strokeWidthPanel=new It("Line width",Vt.defaultStrokeWidths,Vt.defaultStrokeWidth),kt.strokeWidthPanel.onWidthChanged=kt.setStrokeWidth,kt.strokeStylePanel=new Zt("Line style",Vt.defaultStrokeDasharrays,Vt.defaultStrokeDasharray),kt.strokeStylePanel.onStyleChanged=kt.setStrokeDasharray,kt.opacityPanel=new Oe("Opacity",Vt.defaultOpacitySteps,kt.opacity),kt.opacityPanel.onOpacityChanged=kt.setOpacity,kt}return ee(At,Ot),At.prototype.ownsTarget=function(wt){return!(!Ot.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,Nt){Ot.prototype.pointerDown.call(this,wt,Nt),this.state==="new"&&(this.createVisual(),this.moveVisual(wt),this._state="creating")},At.prototype.manipulate=function(wt){Ot.prototype.manipulate.call(this,wt)},At.prototype.resize=function(wt){Ot.prototype.resize.call(this,wt),this.setSize()},At.prototype.setSize=function(){Ot.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){Ot.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},Ot.prototype.getState.call(this));return wt.typeName=At.typeName,wt},At.prototype.restoreState=function(wt){var Nt=wt;this.fillColor=Nt.fillColor,this.strokeColor=Nt.strokeColor,this.strokeWidth=Nt.strokeWidth,this.strokeDasharray=Nt.strokeDasharray,this.opacity=Nt.opacity,this.createVisual(),Ot.prototype.restoreState.call(this,wt),this.setSize()},At.prototype.scale=function(wt,Nt){Ot.prototype.scale.call(this,wt,Nt),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),In=function(Ot){function At(wt,Nt,Vt){return Ot.call(this,wt,Nt,Vt)||this}return ee(At,Ot),Object.defineProperty(At.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),At.prototype.ownsTarget=function(wt){return!(!Ot.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,Nt){Ot.prototype.pointerDown.call(this,wt,Nt),this.state==="creating"&&this.createTips()},At.prototype.adjustVisual=function(){if(Ot.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),Nt=this.tip1.transform.baseVal.getItem(0);Nt.setRotate(wt,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(Nt,0);var Vt=this.tip2.transform.baseVal.getItem(0);Vt.setRotate(wt+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(Vt,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=Ot.prototype.getState.call(this);return wt.typeName=At.typeName,wt},At.prototype.restoreState=function(wt){Ot.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}(ge),on=function(Ot){function At(wt,Nt,Vt){var kt=Ot.call(this,wt,Nt,Vt)||this;return kt.strokePanel.colors=Vt.defaultColorSet,kt.fillColor="transparent",kt}return ee(At,Ot),Object.defineProperty(At.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),At.prototype.getState=function(){var wt=Ot.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}(_n),jn=function(){function Ot(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(Ot.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),Ot.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))},Ot.prototype.replaceLastUndoStep=function(At){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=At)},Ot.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},Ot.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}},Ot.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},Ot}(),Pn=function(Ot){function At(wt,Nt,Vt){var kt=Ot.call(this,wt,Nt,Vt)||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=Vt.defaultColor,kt.strokeWidth=Vt.defaultStrokeWidth,kt.strokeDasharray=Vt.defaultStrokeDasharray,kt.strokePanel=new et("Line color",Vt.defaultColorSet,Vt.defaultColor),kt.strokePanel.onColorChanged=kt.setStrokeColor,kt.strokeWidthPanel=new It("Line width",Vt.defaultStrokeWidths,Vt.defaultStrokeWidth),kt.strokeWidthPanel.onWidthChanged=kt.setStrokeWidth,kt.strokeStylePanel=new Zt("Line style",Vt.defaultStrokeDasharrays,Vt.defaultStrokeDasharray),kt.strokeStylePanel.onStyleChanged=kt.setStrokeDasharray,kt}return ee(At,Ot),At.prototype.ownsTarget=function(wt){return!(!Ot.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,Nt){Ot.prototype.pointerDown.call(this,wt,Nt),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(Nt)&&(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(){Ot.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,Ot.prototype.addControlGrips.call(this)},At.prototype.positionGrips=function(){Ot.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),Ot.prototype.manipulate.call(this,wt)},At.prototype.resize=function(wt){this.activeGrip===this.curveGrip&&(this.curveX=wt.x,this.curveY=wt.y),Ot.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,Nt){this.curveX=this.curveX*wt,this.curveY=this.curveY*Nt,Ot.prototype.scale.call(this,wt,Nt)},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},Ot.prototype.getState.call(this));return wt.typeName=At.typeName,wt},At.prototype.restoreState=function(wt){Ot.prototype.restoreState.call(this,wt);var Nt=wt;this.strokeColor=Nt.strokeColor,this.strokeWidth=Nt.strokeWidth,this.strokeDasharray=Nt.strokeDasharray,this.curveX=Nt.curveX,this.curveY=Nt.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}(_t),di=function(Ot){function At(wt,Nt,Vt){var kt=Ot.call(this,wt,Nt,Vt)||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=Vt.defaultColor,kt.strokeWidth=Vt.defaultStrokeWidth,kt.strokeDasharray=Vt.defaultStrokeDasharray,kt.fillColor=Vt.defaultFillColor,kt.textColor=Vt.defaultStrokeColor,kt.fontFamily=Vt.defaultFontFamily,kt.fontSize=Vt.defaultCaptionFontSize,kt.captionText=Vt.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",Ee(Vt.defaultColorSet,["transparent"]),kt.strokeColor),kt.strokePanel.onColorChanged=kt.setStrokeColor,kt.fillPanel=new et("Fill color",Ee(Vt.defaultColorSet,["transparent"]),kt.fillColor,Yt),kt.fillPanel.onColorChanged=kt.setFillColor,kt.strokeWidthPanel=new It("Line width",Vt.defaultStrokeWidths,Vt.defaultStrokeWidth),kt.strokeWidthPanel.onWidthChanged=kt.setStrokeWidth,kt.strokeStylePanel=new Zt("Line style",Vt.defaultStrokeDasharrays,Vt.defaultStrokeDasharray),kt.strokeStylePanel.onStyleChanged=kt.setStrokeDasharray,kt.fontFamilyPanel=new me("Font",Vt.defaultFontFamilies,Vt.defaultFontFamily),kt.fontFamilyPanel.onFontChanged=kt.setFont,kt.textColorPanel=new et("Text color",Vt.defaultColorSet,kt.textColor,se),kt.textColorPanel.onColorChanged=kt.setTextColor,kt}return ee(At,Ot),At.prototype.ownsTarget=function(wt){return!(!Ot.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,Nt){Ot.prototype.pointerDown.call(this,wt,Nt),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){Ot.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){Ot.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(Nt){Nt.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(Nt){Nt.key==="Enter"&&wt.finishTextEditing(wt.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(Nt){Nt.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(){Ot.prototype.setSize.call(this),jt.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},At.prototype.pointerUp=function(wt){Ot.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,Nt){Ot.prototype.dblClick.call(this,wt,Nt),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},Ot.prototype.getState.call(this));return wt.typeName=this.typeName,wt},At.prototype.restoreState=function(wt){var Nt=wt;this.fillColor=Nt.fillColor,this.strokeColor=Nt.strokeColor,this.strokeWidth=Nt.strokeWidth,this.strokeDasharray=Nt.strokeDasharray,this.textColor=Nt.textColor,this.fontFamily=Nt.fontFamily,this.captionText=Nt.captionText,this.fontSize=Nt.fontSize,this.createVisual(),Ot.prototype.restoreState.call(this,wt),this.setSize()},At.prototype.scale=function(wt,Nt){Ot.prototype.scale.call(this,wt,Nt),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),Re=function(){function Ot(At,wt){wt===void 0&&(wt=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=At,this.cancelable=wt}return Object.defineProperty(Ot.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),Ot.prototype.preventDefault=function(){this._defaultPrevented=!0},Ot}(),ve=function(Ot){function At(wt,Nt,Vt){var kt=Ot.call(this,wt,!1)||this;return kt.dataUrl=Nt,kt.state=Vt,kt}return ee(At,Ot),At}(Re),Ye=function(Ot){function At(wt,Nt,Vt){Vt===void 0&&(Vt=!1);var kt=Ot.call(this,wt,Vt)||this;return kt.marker=Nt,kt}return ee(At,Ot),At}(Re),mi=function(){function Ot(){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 Ot.prototype.addEventListener=function(At,wt){this[At].push(wt)},Ot.prototype.removeEventListener=function(At,wt){var Nt=this[At].indexOf(wt);Nt>-1&&this[At].splice(Nt,1)},Ot}(),Cn=function(){function Ot(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 Gt,this._isOpen=!1,this.undoRedoManager=new jn,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 mi,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=Ot.instanceCounter++,this.styles=new Lt(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(Ot.prototype,"ALL_MARKER_TYPES",{get:function(){return[oe,ye,wn,Pe,on,_n,Sn,fn,In,ln,ge,Pn,di]},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[oe,ye,wn,Pe,_n,Sn,fn]},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"BASIC_MARKER_TYPES",{get:function(){return[oe,ye,wn,Pe,Sn]},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(At){var wt=this;this._availableMarkerTypes.splice(0),At.forEach(function(Nt){if(typeof Nt=="string"){var Vt=wt.ALL_MARKER_TYPES.find(function(kt){return kt.typeName===Nt});Vt!==void 0&&wt._availableMarkerTypes.push(Vt)}else wt._availableMarkerTypes.push(Nt)})},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.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(Ot.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Ot.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),ce.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},Ot.prototype.show=function(){var At=this;this.styles.styleSheetRoot===void 0&&xe.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=xe.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(wt){return wt(new Re(At))})},Ot.prototype.render=function(){return ie(this,void 0,void 0,function(){var At;return we(this,function(wt){switch(wt.label){case 0:return this.setCurrentMarker(),(At=new Ve).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()]}})})},Ot.prototype.close=function(At){var wt=this;if(At===void 0&&(At=!1),this.isOpen){var Nt=!1;At||this.eventListeners.beforeclose.forEach(function(Vt){var kt=new Re(wt,!0);Vt(kt),kt.defaultPrevented&&(Nt=!0)}),Nt||(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(Vt){return Vt(new Re(wt))}),this.detachEvents(),this._isOpen=!1)}},Ot.prototype.addMarkersToToolbar=function(){for(var At,wt=[],Nt=0;Nt<arguments.length;Nt++)wt[Nt]=arguments[Nt];(At=this._availableMarkerTypes).push.apply(At,wt)},Ot.prototype.addRenderEventListener=function(At){this.addEventListener("render",function(wt){At(wt.dataUrl,wt.state)})},Ot.prototype.removeRenderEventListener=function(At){},Ot.prototype.addCloseEventListener=function(At){this.addEventListener("close",function(){At()})},Ot.prototype.removeCloseEventListener=function(At){},Ot.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))},Ot.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,Nt=wt<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/At;this.resize(wt,Nt)},Ot.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},Ot.prototype.resize=function(At,wt){this._isResizing=!0;var Nt=At/this.imageWidth,Vt=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(Nt,Vt),this._isResizing=!1},Ot.prototype.scaleMarkers=function(At,wt){var Nt,Vt=this;this._currentMarker&&this._currentMarker instanceof Pe?this._currentMarker.scale(At,wt):(Nt=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(kt){kt!==Vt._currentMarker&&kt.scale(At,wt)}),Nt!==void 0&&this.setCurrentMarker(Nt)},Ot.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"},Ot.prototype.setTopLeft=function(){var At=this.editingTarget.getBoundingClientRect(),wt=this.editorCanvas.getBoundingClientRect();this.left=At.left-wt.left,this.top=At.top-wt.top},Ot.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)},Ot.prototype.addDefs=function(){for(var At,wt=[],Nt=0;Nt<arguments.length;Nt++)wt[Nt]=arguments[Nt];this.defs=jt.createDefs(),this.addDefsToImage(),(At=this.defs).append.apply(At,wt)},Ot.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},Ot.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)},Ot.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},Ot.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},Ot.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)},Ot.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},Ot.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)},Ot.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()},Ot.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")},Ot.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"},Ot.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},Ot.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 Je(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 Bt(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},Ot.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},Ot.prototype.removeMarker=function(At){this.markerImage.removeChild(At.container),this.markers.indexOf(At)>-1&&this.markers.splice(this.markers.indexOf(At),1),At.dispose()},Ot.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())},Ot.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()}},Ot.prototype.deleteSelectedMarker=function(){var At=this;if(this._currentMarker!==void 0){var wt=!1;if(this.eventListeners.markerbeforedelete.forEach(function(Vt){var kt=new Ye(At,At._currentMarker,!0);Vt(kt),kt.defaultPrevented&&(wt=!0)}),!wt){var Nt=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(Vt){return Vt(new Ye(At,Nt))})}}},Ot.prototype.clear=function(){var At=this,wt=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function($t){var nn=new Ye(At,void 0,!0);$t(nn),nn.defaultPrevented&&(wt=!0)}),!wt)){this.setCurrentMarker();for(var Nt=function($t){var nn=Vt.markers[$t];Vt.setCurrentMarker(Vt.markers[$t]),Vt._currentMarker.dispose(),Vt.markerImage.removeChild(Vt._currentMarker.container),Vt.markers.splice(Vt.markers.indexOf(Vt._currentMarker),1),Vt.eventListeners.markerdelete.forEach(function(dn){return dn(new Ye(At,nn))})},Vt=this,kt=this.markers.length-1;kt>=0;kt--)Nt(kt);this.addUndoStep()}},Object.defineProperty(Ot.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),Ot.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))},Ot.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)},Ot.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},Ot.prototype.addUndoStep=function(){var At=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var wt=this.getState(),Nt=this.undoRedoManager.getLastUndoStep();if(!Nt||Nt.width===wt.width&&Nt.height===wt.height){var Vt=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(wt),Vt<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(kt){return kt(new Re(At))})}else this.undoRedoManager.replaceLastUndoStep(wt),this.eventListeners.statechange.forEach(function(kt){return kt(new Re(At))})}},Ot.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},Ot.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(Nt){return Nt(new Re(At))}))},Ot.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},Ot.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(Nt){return Nt(new Re(At))}))},Ot.prototype.stepZoom=function(){var At=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=At<this.zoomSteps.length-1?this.zoomSteps[At+1]:this.zoomSteps[0]},Ot.prototype.panTo=function(At){this.contentDiv.scrollBy({left:this.prevPanPoint.x-At.x,top:this.prevPanPoint.y-At.y}),this.prevPanPoint=At},Ot.prototype.startRenderAndClose=function(){return ie(this,void 0,void 0,function(){var At,wt,Nt=this;return we(this,function(Vt){switch(Vt.label){case 0:return[4,this.render()];case 1:return At=Vt.sent(),wt=this.getState(),this.eventListeners.render.forEach(function(kt){return kt(new ve(Nt,At,wt))}),this.close(!0),[2]}})})},Ot.prototype.getState=function(At){At===!0&&this.setCurrentMarker();var wt={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(Nt){return wt.markers.push(Nt.getState())}),wt},Ot.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(Nt){var Vt=wt._availableMarkerTypes.find(function($t){return $t.typeName===Nt.typeName});if(Vt!==void 0){var kt=wt.addNewMarker(Vt);kt.restoreState(Nt),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(Nt){return Nt(new Re(wt))})},Ot.prototype.addNewMarker=function(At){var wt=jt.createGroup();return this.markerImage.appendChild(wt),new At(wt,this.overlayContainer,this.settings)},Ot.prototype.createNewMarker=function(At){var wt,Nt=this;(wt=typeof At=="string"?this._availableMarkerTypes.find(function(Vt){return Vt.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(Vt){return Vt(new Ye(Nt,Nt._currentMarker))}))},Ot.prototype.markerCreated=function(At){var wt=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(At),this.setCurrentMarker(At),At instanceof ye&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(ye):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(Nt){return Nt(new Ye(wt,wt._currentMarker))})},Ot.prototype.colorChanged=function(At){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=At,this.settings.defaultStrokeColor=At)},Ot.prototype.fillColorChanged=function(At){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=At)},Ot.prototype.markerStateChanged=function(At){var wt=this;this.eventListeners.markerchange.forEach(function(Nt){return Nt(new Ye(wt,At))})},Ot.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(Nt){return Nt(new Ye(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(Nt){return Nt(new Ye(wt,wt._currentMarker))}))},Ot.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(Nt){return Nt.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))},Ot.prototype.onDblClick=function(At){if(this._isFocused||this.focus(),this.mode==="select"){var wt=this.markers.find(function(Nt){return Nt.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()}},Ot.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}))},Ot.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()},Ot.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},Ot.prototype.onKeyUp=function(At){this._currentMarker===void 0||this.notesArea!==void 0||At.key!=="Delete"&&At.key!=="Backspace"||this.deleteSelectedMarker()},Ot.prototype.clientToLocalCoordinates=function(At,wt){var Nt=this.markerImage.getBoundingClientRect();return{x:(At-Nt.left)/this.zoomLevel,y:(wt-Nt.top)/this.zoomLevel}},Ot.prototype.onWindowResize=function(){this.positionUI()},Ot.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()},Ot.prototype.addLicenseKey=function(At){ce.addKey(At)},Ot.prototype.addEventListener=function(At,wt){this.eventListeners.addEventListener(At,wt)},Ot.prototype.removeEventListener=function(At,wt){this.eventListeners.removeEventListener(At,wt)},Ot.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(Ot.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),Ot.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 Re(At))}))},Ot.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 Re(At))}))},Ot.instanceCounter=0,Ot}()},63727:function(Qn,pi,Dt){"use strict";Dt.d(pi,{s:function(){return De},default:function(){return bn}});var yt=Dt(67711),ee=Dt(98506),ie=Dt(15142),we=Dt(16886),Ee=Dt(33346),jt=Dt(37463),ce=Dt(6551),Ve=Dt(6089),xe=Dt(18929),Lt=Dt(59301),ze=Lt.createContext({}),Kt=ze,Je=Dt(26420),Bt=Dt(52873),nt="__rc_cascader_search_mark__",et=function(Ue,cn,Ln){var Xn=Ln.label,li=Xn===void 0?"":Xn;return cn.some(function(Ci){return String(Ci[li]).toLowerCase().includes(Ue.toLowerCase())})},dt=function(Ue,cn,Ln,Xn){return cn.map(function(li){return li[Xn.label]}).join(" / ")},lt=function(Ue,cn,Ln,Xn,li,Ci){var gn=li.filter,ti=gn===void 0?et:gn,_i=li.render,fr=_i===void 0?dt:_i,tr=li.limit,er=tr===void 0?50:tr,yr=li.sort;return Lt.useMemo(function(){var sr=[];if(!Ue)return[];function hr(zi,gr){var Et=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;zi.forEach(function(Bn){if(!(!yr&&er!==!1&&er>0&&sr.length>=er)){var Gn=[].concat((0,ie.Z)(gr),[Bn]),fi=Bn[Ln.children],ci=Et||Bn.disabled;if((!fi||fi.length===0||Ci)&&ti(Ue,Gn,{label:Ln.label})){var Kn;sr.push((0,ee.Z)((0,ee.Z)({},Bn),{},(Kn={disabled:ci},(0,Bt.Z)(Kn,Ln.label,fr(Ue,Gn,Xn,Ln)),(0,Bt.Z)(Kn,nt,Gn),(0,Bt.Z)(Kn,Ln.children,void 0),Kn)))}fi&&hr(Bn[Ln.children],Gn,ci)}})}return hr(cn,[]),yr&&sr.sort(function(zi,gr){return yr(zi[nt],gr[nt],Ue,Ln)}),er!==!1&&er>0?sr.slice(0,er):sr},[Ue,cn,Ln,Xn,fr,Ci,ti,yr,er])},gt=lt,mt="__RC_CASCADER_SPLIT__",St="SHOW_PARENT",Mt="SHOW_CHILD";function It(Ie){return Ie.join(mt)}function Zt(Ie){return Ie.map(It)}function oe(Ie){return Ie.split(mt)}function Gt(Ie){var Ue=Ie||{},cn=Ue.label,Ln=Ue.value,Xn=Ue.children,li=Ln||"value";return{label:cn||"label",value:li,key:li,children:Xn||"children"}}function _t(Ie,Ue){var cn,Ln;return(cn=Ie.isLeaf)!==null&&cn!==void 0?cn:!((Ln=Ie[Ue.children])!==null&&Ln!==void 0&&Ln.length)}function ge(Ie){var Ue=Ie.parentElement;if(Ue){var cn=Ie.offsetTop-Ue.offsetTop;cn-Ue.scrollTop<0?Ue.scrollTo({top:cn}):cn+Ie.offsetHeight-Ue.scrollTop>Ue.offsetHeight&&Ue.scrollTo({top:cn+Ie.offsetHeight-Ue.offsetHeight})}}function me(Ie,Ue){return Ie.map(function(cn){var Ln;return(Ln=cn[nt])===null||Ln===void 0?void 0:Ln.map(function(Xn){return Xn[Ue.value]})})}function Pe(Ie){return Array.isArray(Ie)&&Array.isArray(Ie[0])}function ye(Ie){return Ie?Pe(Ie)?Ie:(Ie.length===0?[]:[Ie]).map(function(Ue){return Array.isArray(Ue)?Ue:[Ue]}):[]}function He(Ie,Ue,cn){var Ln=new Set(Ie),Xn=Ue();return Ie.filter(function(li){var Ci=Xn[li],gn=Ci?Ci.parent:null,ti=Ci?Ci.children:null;return Ci&&Ci.node.disabled?!0:cn===Mt?!(ti&&ti.some(function(_i){return _i.key&&Ln.has(_i.key)})):!(gn&&!gn.node.disabled&&Ln.has(gn.key))})}function wn(Ie,Ue,cn){for(var Ln=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,Xn=Ue,li=[],Ci=function(){var _i,fr,tr,er=Ie[gn],yr=(_i=Xn)===null||_i===void 0?void 0:_i.findIndex(function(hr){var zi=hr[cn.value];return Ln?String(zi)===String(er):zi===er}),sr=yr!==-1?(fr=Xn)===null||fr===void 0?void 0:fr[yr]:null;li.push({value:(tr=sr==null?void 0:sr[cn.value])!==null&&tr!==void 0?tr:er,index:yr,option:sr}),Xn=sr==null?void 0:sr[cn.children]},gn=0;gn<Ie.length;gn+=1)Ci();return li}var ln=function(Ie,Ue,cn,Ln,Xn){return Lt.useMemo(function(){var li=Xn||function(Ci){var gn=Ln?Ci.slice(-1):Ci,ti=" / ";return gn.every(function(_i){return["string","number"].includes((0,Je.Z)(_i))})?gn.join(ti):gn.reduce(function(_i,fr,tr){var er=Lt.isValidElement(fr)?Lt.cloneElement(fr,{key:tr}):fr;return tr===0?[er]:[].concat((0,ie.Z)(_i),[ti,er])},[])};return Ie.map(function(Ci){var gn,ti=wn(Ci,Ue,cn),_i=li(ti.map(function(tr){var er,yr=tr.option,sr=tr.value;return(er=yr==null?void 0:yr[cn.label])!==null&&er!==void 0?er:sr}),ti.map(function(tr){var er=tr.option;return er})),fr=It(Ci);return{label:_i,value:fr,key:fr,valueCells:Ci,disabled:(gn=ti[ti.length-1])===null||gn===void 0||(gn=gn.option)===null||gn===void 0?void 0:gn.disabled}})},[Ie,Ue,cn,Xn,Ln])};function Oe(Ie,Ue){return Lt.useCallback(function(cn){var Ln=[],Xn=[];return cn.forEach(function(li){var Ci=wn(li,Ie,Ue);Ci.every(function(gn){return gn.option})?Xn.push(li):Ln.push(li)}),[Xn,Ln]},[Ie,Ue])}var Sn=Dt(34061),se=function(Ie,Ue){var cn=Lt.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}}),Ln=Lt.useCallback(function(){return cn.current.options!==Ie&&(cn.current.options=Ie,cn.current.info=(0,Sn.I8)(Ie,{fieldNames:Ue,initWrapper:function(li){return(0,ee.Z)((0,ee.Z)({},li),{},{pathKeyEntities:{}})},processEntity:function(li,Ci){var gn=li.nodes.map(function(ti){return ti[Ue.value]}).join(mt);Ci.pathKeyEntities[gn]=li,li.key=gn}})),cn.current.info.pathKeyEntities},[Ue,Ie]);return Ln};function Yt(Ie,Ue){var cn=Lt.useMemo(function(){return Ue||[]},[Ue]),Ln=se(cn,Ie),Xn=Lt.useCallback(function(li){var Ci=Ln();return li.map(function(gn){var ti=Ci[gn].nodes;return ti.map(function(_i){return _i[Ie.value]})})},[Ln,Ie]);return[cn,Ln,Xn]}var fn=Dt(48736);function _n(Ie){return Lt.useMemo(function(){if(!Ie)return[!1,{}];var Ue={matchInputWidth:!0,limit:50};return Ie&&(0,Je.Z)(Ie)==="object"&&(Ue=(0,ee.Z)((0,ee.Z)({},Ue),Ie)),Ue.limit<=0&&(Ue.limit=!1),[!0,Ue]},[Ie])}var In=Dt(34643);function on(Ie,Ue,cn,Ln,Xn,li,Ci,gn){return function(ti){if(!Ie)Ue(ti);else{var _i=It(ti),fr=Zt(cn),tr=Zt(Ln),er=fr.includes(_i),yr=Xn.some(function(ci){return It(ci)===_i}),sr=cn,hr=Xn;if(yr&&!er)hr=Xn.filter(function(ci){return It(ci)!==_i});else{var zi=er?fr.filter(function(ci){return ci!==_i}):[].concat((0,ie.Z)(fr),[_i]),gr=li(),Et;if(er){var Bn=(0,In.S)(zi,{checked:!1,halfCheckedKeys:tr},gr);Et=Bn.checkedKeys}else{var Gn=(0,In.S)(zi,!0,gr);Et=Gn.checkedKeys}var fi=He(Et,li,gn);sr=Ci(fi)}Ue([].concat((0,ie.Z)(hr),(0,ie.Z)(sr)))}}}function jn(Ie,Ue,cn,Ln,Xn){return Lt.useMemo(function(){var li=Xn(Ue),Ci=(0,we.Z)(li,2),gn=Ci[0],ti=Ci[1];if(!Ie||!Ue.length)return[gn,[],ti];var _i=Zt(gn),fr=cn(),tr=(0,In.S)(_i,!0,fr),er=tr.checkedKeys,yr=tr.halfCheckedKeys;return[Ln(er),Ln(yr),ti]},[Ie,Ue,cn,Ln,Xn])}var Pn=Dt(92310),di=Dt.n(Pn),Re=Lt.memo(function(Ie){var Ue=Ie.children;return Ue},function(Ie,Ue){return!Ue.open}),ve=Re;function Ye(Ie){var Ue,cn=Ie.prefixCls,Ln=Ie.checked,Xn=Ie.halfChecked,li=Ie.disabled,Ci=Ie.onClick,gn=Ie.disableCheckbox,ti=Lt.useContext(Kt),_i=ti.checkable,fr=typeof _i!="boolean"?_i:null;return Lt.createElement("span",{className:di()("".concat(cn),(Ue={},(0,Bt.Z)(Ue,"".concat(cn,"-checked"),Ln),(0,Bt.Z)(Ue,"".concat(cn,"-indeterminate"),!Ln&&Xn),(0,Bt.Z)(Ue,"".concat(cn,"-disabled"),li||gn),Ue)),onClick:Ci},fr)}var mi="__cascader_fix_label__";function Cn(Ie){var Ue=Ie.prefixCls,cn=Ie.multiple,Ln=Ie.options,Xn=Ie.activeValue,li=Ie.prevValuePath,Ci=Ie.onToggleOpen,gn=Ie.onSelect,ti=Ie.onActive,_i=Ie.checkedSet,fr=Ie.halfCheckedSet,tr=Ie.loadingKeys,er=Ie.isSelectable,yr=Ie.disabled,sr="".concat(Ue,"-menu"),hr="".concat(Ue,"-menu-item"),zi=Lt.useContext(Kt),gr=zi.fieldNames,Et=zi.changeOnSelect,Bn=zi.expandTrigger,Gn=zi.expandIcon,fi=zi.loadingIcon,ci=zi.dropdownMenuColumnStyle,Kn=zi.optionRender,rn=Bn==="hover",Yn=function(ke){return yr||ke},Fe=Lt.useMemo(function(){return Ln.map(function(Ne){var ke,sn=Ne.disabled,xi=Ne.disableCheckbox,yi=Ne[nt],Fi=(ke=Ne[mi])!==null&&ke!==void 0?ke:Ne[gr.label],Xe=Ne[gr.value],Dn=_t(Ne,gr),mn=yi?yi.map(function(Jn){return Jn[gr.value]}):[].concat((0,ie.Z)(li),[Xe]),Hi=It(mn),qn=tr.includes(Hi),te=_i.has(Hi),be=fr.has(Hi);return{disabled:sn,label:Fi,value:Xe,isLeaf:Dn,isLoading:qn,checked:te,halfChecked:be,option:Ne,disableCheckbox:xi,fullPath:mn,fullPathKey:Hi}})},[Ln,_i,gr,fr,tr,li]);return Lt.createElement("ul",{className:sr,role:"menu"},Fe.map(function(Ne){var ke,sn=Ne.disabled,xi=Ne.label,yi=Ne.value,Fi=Ne.isLeaf,Xe=Ne.isLoading,Dn=Ne.checked,mn=Ne.halfChecked,Hi=Ne.option,qn=Ne.fullPath,te=Ne.fullPathKey,be=Ne.disableCheckbox,Jn=function(){if(!Yn(sn)){var Ai=(0,ie.Z)(qn);rn&&Fi&&Ai.pop(),ti(Ai)}},Fn=function(){er(Hi)&&!Yn(sn)&&gn(qn,Fi)},Be;return typeof Hi.title=="string"?Be=Hi.title:typeof xi=="string"&&(Be=xi),Lt.createElement("li",{key:te,className:di()(hr,(ke={},(0,Bt.Z)(ke,"".concat(hr,"-expand"),!Fi),(0,Bt.Z)(ke,"".concat(hr,"-active"),Xn===yi||Xn===te),(0,Bt.Z)(ke,"".concat(hr,"-disabled"),Yn(sn)),(0,Bt.Z)(ke,"".concat(hr,"-loading"),Xe),ke)),style:ci,role:"menuitemcheckbox",title:Be,"aria-checked":Dn,"data-path-key":te,onClick:function(){Jn(),!be&&(!cn||Fi)&&Fn()},onDoubleClick:function(){Et&&Ci(!1)},onMouseEnter:function(){rn&&Jn()},onMouseDown:function(Ai){Ai.preventDefault()}},cn&&Lt.createElement(Ye,{prefixCls:"".concat(Ue,"-checkbox"),checked:Dn,halfChecked:mn,disabled:Yn(sn)||be,disableCheckbox:be,onClick:function(Ai){be||(Ai.stopPropagation(),Fn())}}),Lt.createElement("div",{className:"".concat(hr,"-content")},Kn?Kn(Hi):xi),!Xe&&Gn&&!Fi&&Lt.createElement("div",{className:"".concat(hr,"-expand-icon")},Gn),Xe&&fi&&Lt.createElement("div",{className:"".concat(hr,"-loading-icon")},fi))}))}var Ot=function(Ue,cn){var Ln=Lt.useContext(Kt),Xn=Ln.values,li=Xn[0],Ci=Lt.useState([]),gn=(0,we.Z)(Ci,2),ti=gn[0],_i=gn[1];return Lt.useEffect(function(){Ue||_i(li||[])},[cn,li]),[ti,_i]},At=Ot,wt=Dt(10228),Nt=function(Ie,Ue,cn,Ln,Xn,li,Ci){var gn=Ci.direction,ti=Ci.searchValue,_i=Ci.toggleOpen,fr=Ci.open,tr=gn==="rtl",er=Lt.useMemo(function(){for(var ci=-1,Kn=Ue,rn=[],Yn=[],Fe=Ln.length,Ne=me(Ue,cn),ke=function(Xe){var Dn=Kn.findIndex(function(mn,Hi){return(Ne[Hi]?It(Ne[Hi]):mn[cn.value])===Ln[Xe]});if(Dn===-1)return 1;ci=Dn,rn.push(ci),Yn.push(Ln[Xe]),Kn=Kn[ci][cn.children]},sn=0;sn<Fe&&Kn&&!ke(sn);sn+=1);for(var xi=Ue,yi=0;yi<rn.length-1;yi+=1)xi=xi[rn[yi]][cn.children];return[Yn,ci,xi,Ne]},[Ln,cn,Ue]),yr=(0,we.Z)(er,4),sr=yr[0],hr=yr[1],zi=yr[2],gr=yr[3],Et=function(Kn){Xn(Kn)},Bn=function(Kn){var rn=zi.length,Yn=hr;Yn===-1&&Kn<0&&(Yn=rn);for(var Fe=0;Fe<rn;Fe+=1){Yn=(Yn+Kn+rn)%rn;var Ne=zi[Yn];if(Ne&&!Ne.disabled){var ke=sr.slice(0,-1).concat(gr[Yn]?It(gr[Yn]):Ne[cn.value]);Et(ke);return}}},Gn=function(){if(sr.length>1){var Kn=sr.slice(0,-1);Et(Kn)}else _i(!1)},fi=function(){var Kn,rn=((Kn=zi[hr])===null||Kn===void 0?void 0:Kn[cn.children])||[],Yn=rn.find(function(Ne){return!Ne.disabled});if(Yn){var Fe=[].concat((0,ie.Z)(sr),[Yn[cn.value]]);Et(Fe)}};Lt.useImperativeHandle(Ie,function(){return{onKeyDown:function(Kn){var rn=Kn.which;switch(rn){case wt.Z.UP:case wt.Z.DOWN:{var Yn=0;rn===wt.Z.UP?Yn=-1:rn===wt.Z.DOWN&&(Yn=1),Yn!==0&&Bn(Yn);break}case wt.Z.LEFT:{if(ti)break;tr?fi():Gn();break}case wt.Z.RIGHT:{if(ti)break;tr?Gn():fi();break}case wt.Z.BACKSPACE:{ti||Gn();break}case wt.Z.ENTER:{if(sr.length){var Fe=zi[hr],Ne=(Fe==null?void 0:Fe[nt])||[];Ne.length?li(Ne.map(function(ke){return ke[cn.value]}),Ne[Ne.length-1]):li(sr,zi[hr])}break}case wt.Z.ESC:_i(!1),fr&&Kn.stopPropagation()}},onKeyUp:function(){}}})},Vt=Lt.forwardRef(function(Ie,Ue){var cn,Ln,Xn,li=Ie.prefixCls,Ci=Ie.multiple,gn=Ie.searchValue,ti=Ie.toggleOpen,_i=Ie.notFoundContent,fr=Ie.direction,tr=Ie.open,er=Ie.disabled,yr=Lt.useRef(null),sr=fr==="rtl",hr=Lt.useContext(Kt),zi=hr.options,gr=hr.values,Et=hr.halfValues,Bn=hr.fieldNames,Gn=hr.changeOnSelect,fi=hr.onSelect,ci=hr.searchOptions,Kn=hr.dropdownPrefixCls,rn=hr.loadData,Yn=hr.expandTrigger,Fe=Kn||li,Ne=Lt.useState([]),ke=(0,we.Z)(Ne,2),sn=ke[0],xi=ke[1],yi=function(Ui){if(!(!rn||gn)){var ji=wn(Ui,zi,Bn),Mn=ji.map(function(Tr){var _r=Tr.option;return _r}),Ei=Mn[Mn.length-1];if(Ei&&!_t(Ei,Bn)){var xr=It(Ui);xi(function(Tr){return[].concat((0,ie.Z)(Tr),[xr])}),rn(Mn)}}};Lt.useEffect(function(){sn.length&&sn.forEach(function(Si){var Ui=oe(Si),ji=wn(Ui,zi,Bn,!0).map(function(Ei){var xr=Ei.option;return xr}),Mn=ji[ji.length-1];(!Mn||Mn[Bn.children]||_t(Mn,Bn))&&xi(function(Ei){return Ei.filter(function(xr){return xr!==Si})})})},[zi,sn,Bn]);var Fi=Lt.useMemo(function(){return new Set(Zt(gr))},[gr]),Xe=Lt.useMemo(function(){return new Set(Zt(Et))},[Et]),Dn=At(Ci,tr),mn=(0,we.Z)(Dn,2),Hi=mn[0],qn=mn[1],te=function(Ui){qn(Ui),yi(Ui)},be=function(Ui){if(er)return!1;var ji=Ui.disabled,Mn=_t(Ui,Bn);return!ji&&(Mn||Gn||Ci)},Jn=function(Ui,ji){var Mn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;fi(Ui),!Ci&&(ji||Gn&&(Yn==="hover"||Mn))&&ti(!1)},Fn=Lt.useMemo(function(){return gn?ci:zi},[gn,ci,zi]),Be=Lt.useMemo(function(){for(var Si=[{options:Fn}],Ui=Fn,ji=me(Ui,Bn),Mn=function(){var Tr=Hi[Ei],_r=Ui.find(function(ar,br){return(ji[br]?It(ji[br]):ar[Bn.value])===Tr}),We=_r==null?void 0:_r[Bn.children];if(!(We!=null&&We.length))return 1;Ui=We,Si.push({options:We})},Ei=0;Ei<Hi.length&&!Mn();Ei+=1);return Si},[Fn,Hi,Bn]),zn=function(Ui,ji){be(ji)&&Jn(Ui,_t(ji,Bn),!0)};Nt(Ue,Fn,Bn,Hi,te,zn,{direction:fr,searchValue:gn,toggleOpen:ti,open:tr}),Lt.useEffect(function(){if(!gn)for(var Si=0;Si<Hi.length;Si+=1){var Ui,ji=Hi.slice(0,Si+1),Mn=It(ji),Ei=(Ui=yr.current)===null||Ui===void 0?void 0:Ui.querySelector('li[data-path-key="'.concat(Mn.replace(/\\{0,2}"/g,'\\"'),'"]'));Ei&&ge(Ei)}},[Hi,gn]);var Ai=!((cn=Be[0])!==null&&cn!==void 0&&(cn=cn.options)!==null&&cn!==void 0&&cn.length),Ii=[(Ln={},(0,Bt.Z)(Ln,Bn.value,"__EMPTY__"),(0,Bt.Z)(Ln,mi,_i),(0,Bt.Z)(Ln,"disabled",!0),Ln)],Ki=(0,ee.Z)((0,ee.Z)({},Ie),{},{multiple:!Ai&&Ci,onSelect:Jn,onActive:te,onToggleOpen:ti,checkedSet:Fi,halfCheckedSet:Xe,loadingKeys:sn,isSelectable:be}),oi=Ai?[{options:Ii}]:Be,gi=oi.map(function(Si,Ui){var ji=Hi.slice(0,Ui),Mn=Hi[Ui];return Lt.createElement(Cn,(0,yt.Z)({key:Ui},Ki,{prefixCls:Fe,options:Si.options,prevValuePath:ji,activeValue:Mn}))});return Lt.createElement(ve,{open:tr},Lt.createElement("div",{className:di()("".concat(Fe,"-menus"),(Xn={},(0,Bt.Z)(Xn,"".concat(Fe,"-menu-empty"),Ai),(0,Bt.Z)(Xn,"".concat(Fe,"-rtl"),sr),Xn)),ref:yr},gi))}),kt=Vt,$t=Lt.forwardRef(function(Ie,Ue){var cn=(0,jt.lk)();return Lt.createElement(kt,(0,yt.Z)({},Ie,cn,{ref:Ue}))}),nn=$t,dn=Dt(70425);function En(){}function De(Ie){var Ue,cn=Ie,Ln=cn.prefixCls,Xn=Ln===void 0?"rc-cascader":Ln,li=cn.style,Ci=cn.className,gn=cn.options,ti=cn.checkable,_i=cn.defaultValue,fr=cn.value,tr=cn.fieldNames,er=cn.changeOnSelect,yr=cn.onChange,sr=cn.showCheckedStrategy,hr=cn.loadData,zi=cn.expandTrigger,gr=cn.expandIcon,Et=gr===void 0?">":gr,Bn=cn.loadingIcon,Gn=cn.direction,fi=cn.notFoundContent,ci=fi===void 0?"Not Found":fi,Kn=cn.disabled,rn=!!ti,Yn=(0,dn.C8)(_i,{value:fr,postState:ye}),Fe=(0,we.Z)(Yn,2),Ne=Fe[0],ke=Fe[1],sn=Lt.useMemo(function(){return Gt(tr)},[JSON.stringify(tr)]),xi=Yt(sn,gn),yi=(0,we.Z)(xi,3),Fi=yi[0],Xe=yi[1],Dn=yi[2],mn=Oe(Fi,sn),Hi=jn(rn,Ne,Xe,Dn,mn),qn=(0,we.Z)(Hi,3),te=qn[0],be=qn[1],Jn=qn[2],Fn=(0,dn.zX)(function(oi){if(ke(oi),yr){var gi=ye(oi),Si=gi.map(function(Mn){return wn(Mn,Fi,sn).map(function(Ei){return Ei.option})}),Ui=rn?gi:gi[0],ji=rn?Si:Si[0];yr(Ui,ji)}}),Be=on(rn,Fn,te,be,Jn,Xe,Dn,sr),zn=(0,dn.zX)(function(oi){Be(oi)}),Ai=Lt.useMemo(function(){return{options:Fi,fieldNames:sn,values:te,halfValues:be,changeOnSelect:er,onSelect:zn,checkable:ti,searchOptions:[],dropdownPrefixCls:void 0,loadData:hr,expandTrigger:zi,expandIcon:Et,loadingIcon:Bn,dropdownMenuColumnStyle:void 0}},[Fi,sn,te,be,er,zn,ti,hr,zi,Et,Bn]),Ii="".concat(Xn,"-panel"),Ki=!Fi.length;return Lt.createElement(Kt.Provider,{value:Ai},Lt.createElement("div",{className:di()(Ii,(Ue={},(0,Bt.Z)(Ue,"".concat(Ii,"-rtl"),Gn==="rtl"),(0,Bt.Z)(Ue,"".concat(Ii,"-empty"),Ki),Ue),Ci),style:li},Ki?ci:Lt.createElement(kt,{prefixCls:Xn,searchValue:"",multiple:rn,toggleOpen:En,open:!0,direction:Gn,disabled:Kn})))}function Ce(Ie){var Ue=Ie.onPopupVisibleChange,cn=Ie.popupVisible,Ln=Ie.popupClassName,Xn=Ie.popupPlacement;warning(!Ue,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(cn===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(Ln===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(Xn===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function Qe(Ie,Ue){if(Ie){var cn=function Ln(Xn){for(var li=0;li<Xn.length;li++){var Ci=Xn[li];if(Ci[Ue==null?void 0:Ue.value]===null)return warning(!1,"`value` in Cascader options should not be `null`."),!0;if(Array.isArray(Ci[Ue==null?void 0:Ue.children])&&Ln(Ci[Ue==null?void 0:Ue.children]))return!0}};cn(Ie)}}var un=null,Nn=["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"],ai=Lt.forwardRef(function(Ie,Ue){var cn=Ie.id,Ln=Ie.prefixCls,Xn=Ln===void 0?"rc-cascader":Ln,li=Ie.fieldNames,Ci=Ie.defaultValue,gn=Ie.value,ti=Ie.changeOnSelect,_i=Ie.onChange,fr=Ie.displayRender,tr=Ie.checkable,er=Ie.autoClearSearchValue,yr=er===void 0?!0:er,sr=Ie.searchValue,hr=Ie.onSearch,zi=Ie.showSearch,gr=Ie.expandTrigger,Et=Ie.options,Bn=Ie.dropdownPrefixCls,Gn=Ie.loadData,fi=Ie.popupVisible,ci=Ie.open,Kn=Ie.popupClassName,rn=Ie.dropdownClassName,Yn=Ie.dropdownMenuColumnStyle,Fe=Ie.dropdownStyle,Ne=Ie.popupPlacement,ke=Ie.placement,sn=Ie.onDropdownVisibleChange,xi=Ie.onPopupVisibleChange,yi=Ie.expandIcon,Fi=yi===void 0?">":yi,Xe=Ie.loadingIcon,Dn=Ie.children,mn=Ie.dropdownMatchSelectWidth,Hi=mn===void 0?!1:mn,qn=Ie.showCheckedStrategy,te=qn===void 0?St:qn,be=Ie.optionRender,Jn=(0,Ee.Z)(Ie,Nn),Fn=(0,ce.ZP)(cn),Be=!!tr,zn=(0,xe.Z)(Ci,{value:gn,postState:ye}),Ai=(0,we.Z)(zn,2),Ii=Ai[0],Ki=Ai[1],oi=Lt.useMemo(function(){return Gt(li)},[JSON.stringify(li)]),gi=Yt(oi,Et),Si=(0,we.Z)(gi,3),Ui=Si[0],ji=Si[1],Mn=Si[2],Ei=(0,xe.Z)("",{value:sr,postState:function(Se){return Se||""}}),xr=(0,we.Z)(Ei,2),Tr=xr[0],_r=xr[1],We=function(Se,Te){_r(Se),Te.source!=="blur"&&hr&&hr(Se)},ar=_n(zi),br=(0,we.Z)(ar,2),Gi=br[0],Gr=br[1],Or=gt(Tr,Ui,oi,Bn||Xn,Gr,ti||Be),Wr=Oe(Ui,oi),Zi=jn(Be,Ii,ji,Mn,Wr),ir=(0,we.Z)(Zi,3),Qi=ir[0],pn=ir[1],dr=ir[2],xn=Lt.useMemo(function(){var qt=Zt(Qi),Se=He(qt,ji,te);return[].concat((0,ie.Z)(dr),(0,ie.Z)(Mn(Se)))},[Qi,ji,Mn,dr,te]),bi=ln(xn,Ui,oi,Be,fr),Sr=(0,Ve.Z)(function(qt){if(Ki(qt),_i){var Se=ye(qt),Te=Se.map(function(Me){return wn(Me,Ui,oi).map(function(Ke){return Ke.option})}),en=Be?Se:Se[0],ne=Be?Te:Te[0];_i(en,ne)}}),Er=on(Be,Sr,Qi,pn,dr,ji,Mn,te),io=(0,Ve.Z)(function(qt){(!Be||yr)&&_r(""),Er(qt)}),Yr=function(Se,Te){if(Te.type==="clear"){Sr([]);return}var en=Te.values[0],ne=en.valueCells;io(ne)},Mr=ci!==void 0?ci:fi,uo=rn||Kn,tn=ke||Ne,Hn=function(Se){sn==null||sn(Se),xi==null||xi(Se)},_e=Lt.useMemo(function(){return{options:Ui,fieldNames:oi,values:Qi,halfValues:pn,changeOnSelect:ti,onSelect:io,checkable:tr,searchOptions:Or,dropdownPrefixCls:Bn,loadData:Gn,expandTrigger:gr,expandIcon:Fi,loadingIcon:Xe,dropdownMenuColumnStyle:Yn,optionRender:be}},[Ui,oi,Qi,pn,ti,io,tr,Or,Bn,Gn,gr,Fi,Xe,Yn,be]),Tt=!(Tr?Or:Ui).length,Wt=Tr&&Gr.matchInputWidth||Tt?{}:{minWidth:"auto"};return Lt.createElement(Kt.Provider,{value:_e},Lt.createElement(jt.Ac,(0,yt.Z)({},Jn,{ref:Ue,id:Fn,prefixCls:Xn,autoClearSearchValue:yr,dropdownMatchSelectWidth:Hi,dropdownStyle:(0,ee.Z)((0,ee.Z)({},Wt),Fe),displayValues:bi,onDisplayValuesChange:Yr,mode:Be?"multiple":void 0,searchValue:Tr,onSearch:We,showSearch:Gi,OptionList:nn,emptyOptions:Tt,open:Mr,dropdownClassName:uo,placement:tn,onDropdownVisibleChange:Hn,getRawInputElement:function(){return Dn}})))});ai.SHOW_PARENT=St,ai.SHOW_CHILD=Mt,ai.Panel=De;var Tn=ai,bn=Tn},23425:function(Qn,pi,Dt){"use strict";Dt.d(pi,{Z:function(){return Zt}});var yt=Dt(52873),ee=Dt(67711),ie=Dt(26420),we=Dt(98506),Ee=Dt(16886),jt=Dt(92310),ce=Dt.n(jt),Ve=Dt(18929),xe=Dt(10228),Lt=Dt(26112),ze=Dt(48736),Kt=Dt(59301),Je=Dt(17119),Bt=[10,20,50,100],nt=function(Gt){var _t=Gt.pageSizeOptions,ge=_t===void 0?Bt:_t,me=Gt.locale,Pe=Gt.changeSize,ye=Gt.pageSize,He=Gt.goButton,wn=Gt.quickGo,ln=Gt.rootPrefixCls,Oe=Gt.disabled,Sn=Gt.buildOptionText,se=Gt.showSizeChanger,Yt=Gt.sizeChangerRender,fn=Kt.useState(""),_n=(0,Ee.Z)(fn,2),In=_n[0],on=_n[1],jn=function(){return!In||Number.isNaN(In)?void 0:Number(In)},Pn=typeof Sn=="function"?Sn:function(wt){return"".concat(wt," ").concat(me.items_per_page)},di=function(Nt){on(Nt.target.value)},Re=function(Nt){He||In===""||(on(""),!(Nt.relatedTarget&&(Nt.relatedTarget.className.indexOf("".concat(ln,"-item-link"))>=0||Nt.relatedTarget.className.indexOf("".concat(ln,"-item"))>=0))&&(wn==null||wn(jn())))},ve=function(Nt){In!==""&&(Nt.keyCode===xe.Z.ENTER||Nt.type==="click")&&(on(""),wn==null||wn(jn()))},Ye=function(){return ge.some(function(Nt){return Nt.toString()===ye.toString()})?ge:ge.concat([ye]).sort(function(Nt,Vt){var kt=Number.isNaN(Number(Nt))?0:Number(Nt),$t=Number.isNaN(Number(Vt))?0:Number(Vt);return kt-$t})},mi="".concat(ln,"-options");if(!se&&!wn)return null;var Cn=null,Ot=null,At=null;return se&&Yt&&(Cn=Yt({disabled:Oe,size:ye,onSizeChange:function(Nt){Pe==null||Pe(Number(Nt))},"aria-label":me.page_size,className:"".concat(mi,"-size-changer"),options:Ye().map(function(wt){return{label:Pn(wt),value:wt}})})),wn&&(He&&(At=typeof He=="boolean"?Kt.createElement("button",{type:"button",onClick:ve,onKeyUp:ve,disabled:Oe,className:"".concat(mi,"-quick-jumper-button")},me.jump_to_confirm):Kt.createElement("span",{onClick:ve,onKeyUp:ve},He)),Ot=Kt.createElement("div",{className:"".concat(mi,"-quick-jumper")},me.jump_to,Kt.createElement("input",{disabled:Oe,type:"text",value:In,onChange:di,onKeyUp:ve,onBlur:Re,"aria-label":me.page}),me.page,At)),Kt.createElement("li",{className:mi},Cn,Ot)},et=nt,dt=function(Gt){var _t=Gt.rootPrefixCls,ge=Gt.page,me=Gt.active,Pe=Gt.className,ye=Gt.showTitle,He=Gt.onClick,wn=Gt.onKeyPress,ln=Gt.itemRender,Oe="".concat(_t,"-item"),Sn=ce()(Oe,"".concat(Oe,"-").concat(ge),(0,yt.Z)((0,yt.Z)({},"".concat(Oe,"-active"),me),"".concat(Oe,"-disabled"),!ge),Pe),se=function(){He(ge)},Yt=function(In){wn(In,He,ge)},fn=ln(ge,"page",Kt.createElement("a",{rel:"nofollow"},ge));return fn?Kt.createElement("li",{title:ye?String(ge):null,className:Sn,onClick:se,onKeyDown:Yt,tabIndex:0},fn):null},lt=dt,gt=function(Gt,_t,ge){return ge};function mt(){}function St(oe){var Gt=Number(oe);return typeof Gt=="number"&&!Number.isNaN(Gt)&&isFinite(Gt)&&Math.floor(Gt)===Gt}function Mt(oe,Gt,_t){var ge=typeof oe=="undefined"?Gt:oe;return Math.floor((_t-1)/ge)+1}var It=function(Gt){var _t=Gt.prefixCls,ge=_t===void 0?"rc-pagination":_t,me=Gt.selectPrefixCls,Pe=me===void 0?"rc-select":me,ye=Gt.className,He=Gt.current,wn=Gt.defaultCurrent,ln=wn===void 0?1:wn,Oe=Gt.total,Sn=Oe===void 0?0:Oe,se=Gt.pageSize,Yt=Gt.defaultPageSize,fn=Yt===void 0?10:Yt,_n=Gt.onChange,In=_n===void 0?mt:_n,on=Gt.hideOnSinglePage,jn=Gt.align,Pn=Gt.showPrevNextJumpers,di=Pn===void 0?!0:Pn,Re=Gt.showQuickJumper,ve=Gt.showLessItems,Ye=Gt.showTitle,mi=Ye===void 0?!0:Ye,Cn=Gt.onShowSizeChange,Ot=Cn===void 0?mt:Cn,At=Gt.locale,wt=At===void 0?Je.Z:At,Nt=Gt.style,Vt=Gt.totalBoundaryShowSizeChanger,kt=Vt===void 0?50:Vt,$t=Gt.disabled,nn=Gt.simple,dn=Gt.showTotal,En=Gt.showSizeChanger,De=En===void 0?Sn>kt:En,Ce=Gt.sizeChangerRender,Qe=Gt.pageSizeOptions,un=Gt.itemRender,Nn=un===void 0?gt:un,ai=Gt.jumpPrevIcon,Tn=Gt.jumpNextIcon,bn=Gt.prevIcon,Ie=Gt.nextIcon,Ue=Kt.useRef(null),cn=(0,Ve.Z)(10,{value:se,defaultValue:fn}),Ln=(0,Ee.Z)(cn,2),Xn=Ln[0],li=Ln[1],Ci=(0,Ve.Z)(1,{value:He,defaultValue:ln,postState:function(Sr){return Math.max(1,Math.min(Sr,Mt(void 0,Xn,Sn)))}}),gn=(0,Ee.Z)(Ci,2),ti=gn[0],_i=gn[1],fr=Kt.useState(ti),tr=(0,Ee.Z)(fr,2),er=tr[0],yr=tr[1];(0,Kt.useEffect)(function(){yr(ti)},[ti]);var sr=In!==mt,hr="current"in Gt,zi=Math.max(1,ti-(ve?3:5)),gr=Math.min(Mt(void 0,Xn,Sn),ti+(ve?3:5));function Et(bi,Sr){var Er=bi||Kt.createElement("button",{type:"button","aria-label":Sr,className:"".concat(ge,"-item-link")});return typeof bi=="function"&&(Er=Kt.createElement(bi,(0,we.Z)({},Gt))),Er}function Bn(bi){var Sr=bi.target.value,Er=Mt(void 0,Xn,Sn),io;return Sr===""?io=Sr:Number.isNaN(Number(Sr))?io=er:Sr>=Er?io=Er:io=Number(Sr),io}function Gn(bi){return St(bi)&&bi!==ti&&St(Sn)&&Sn>0}var fi=Sn>Xn?Re:!1;function ci(bi){(bi.keyCode===xe.Z.UP||bi.keyCode===xe.Z.DOWN)&&bi.preventDefault()}function Kn(bi){var Sr=Bn(bi);switch(Sr!==er&&yr(Sr),bi.keyCode){case xe.Z.ENTER:Fe(Sr);break;case xe.Z.UP:Fe(Sr-1);break;case xe.Z.DOWN:Fe(Sr+1);break;default:break}}function rn(bi){Fe(Bn(bi))}function Yn(bi){var Sr=Mt(bi,Xn,Sn),Er=ti>Sr&&Sr!==0?Sr:ti;li(bi),yr(Er),Ot==null||Ot(ti,bi),_i(Er),In==null||In(Er,bi)}function Fe(bi){if(Gn(bi)&&!$t){var Sr=Mt(void 0,Xn,Sn),Er=bi;return bi>Sr?Er=Sr:bi<1&&(Er=1),Er!==er&&yr(Er),_i(Er),In==null||In(Er,Xn),Er}return ti}var Ne=ti>1,ke=ti<Mt(void 0,Xn,Sn);function sn(){Ne&&Fe(ti-1)}function xi(){ke&&Fe(ti+1)}function yi(){Fe(zi)}function Fi(){Fe(gr)}function Xe(bi,Sr){if(bi.key==="Enter"||bi.charCode===xe.Z.ENTER||bi.keyCode===xe.Z.ENTER){for(var Er=arguments.length,io=new Array(Er>2?Er-2:0),Yr=2;Yr<Er;Yr++)io[Yr-2]=arguments[Yr];Sr.apply(void 0,io)}}function Dn(bi){Xe(bi,sn)}function mn(bi){Xe(bi,xi)}function Hi(bi){Xe(bi,yi)}function qn(bi){Xe(bi,Fi)}function te(bi){var Sr=Nn(bi,"prev",Et(bn,"prev page"));return Kt.isValidElement(Sr)?Kt.cloneElement(Sr,{disabled:!Ne}):Sr}function be(bi){var Sr=Nn(bi,"next",Et(Ie,"next page"));return Kt.isValidElement(Sr)?Kt.cloneElement(Sr,{disabled:!ke}):Sr}function Jn(bi){(bi.type==="click"||bi.keyCode===xe.Z.ENTER)&&Fe(er)}var Fn=null,Be=(0,Lt.Z)(Gt,{aria:!0,data:!0}),zn=dn&&Kt.createElement("li",{className:"".concat(ge,"-total-text")},dn(Sn,[Sn===0?0:(ti-1)*Xn+1,ti*Xn>Sn?Sn:ti*Xn])),Ai=null,Ii=Mt(void 0,Xn,Sn);if(on&&Sn<=Xn)return null;var Ki=[],oi={rootPrefixCls:ge,onClick:Fe,onKeyPress:Xe,showTitle:mi,itemRender:Nn,page:-1},gi=ti-1>0?ti-1:0,Si=ti+1<Ii?ti+1:Ii,Ui=Re&&Re.goButton,ji=(0,ie.Z)(nn)==="object"?nn.readOnly:!nn,Mn=Ui,Ei=null;nn&&(Ui&&(typeof Ui=="boolean"?Mn=Kt.createElement("button",{type:"button",onClick:Jn,onKeyUp:Jn},wt.jump_to_confirm):Mn=Kt.createElement("span",{onClick:Jn,onKeyUp:Jn},Ui),Mn=Kt.createElement("li",{title:mi?"".concat(wt.jump_to).concat(ti,"/").concat(Ii):null,className:"".concat(ge,"-simple-pager")},Mn)),Ei=Kt.createElement("li",{title:mi?"".concat(ti,"/").concat(Ii):null,className:"".concat(ge,"-simple-pager")},ji?er:Kt.createElement("input",{type:"text","aria-label":wt.jump_to,value:er,disabled:$t,onKeyDown:ci,onKeyUp:Kn,onChange:Kn,onBlur:rn,size:3}),Kt.createElement("span",{className:"".concat(ge,"-slash")},"/"),Ii));var xr=ve?1:2;if(Ii<=3+xr*2){Ii||Ki.push(Kt.createElement(lt,(0,ee.Z)({},oi,{key:"noPager",page:1,className:"".concat(ge,"-item-disabled")})));for(var Tr=1;Tr<=Ii;Tr+=1)Ki.push(Kt.createElement(lt,(0,ee.Z)({},oi,{key:Tr,page:Tr,active:ti===Tr})))}else{var _r=ve?wt.prev_3:wt.prev_5,We=ve?wt.next_3:wt.next_5,ar=Nn(zi,"jump-prev",Et(ai,"prev page")),br=Nn(gr,"jump-next",Et(Tn,"next page"));di&&(Fn=ar?Kt.createElement("li",{title:mi?_r:null,key:"prev",onClick:yi,tabIndex:0,onKeyDown:Hi,className:ce()("".concat(ge,"-jump-prev"),(0,yt.Z)({},"".concat(ge,"-jump-prev-custom-icon"),!!ai))},ar):null,Ai=br?Kt.createElement("li",{title:mi?We:null,key:"next",onClick:Fi,tabIndex:0,onKeyDown:qn,className:ce()("".concat(ge,"-jump-next"),(0,yt.Z)({},"".concat(ge,"-jump-next-custom-icon"),!!Tn))},br):null);var Gi=Math.max(1,ti-xr),Gr=Math.min(ti+xr,Ii);ti-1<=xr&&(Gr=1+xr*2),Ii-ti<=xr&&(Gi=Ii-xr*2);for(var Or=Gi;Or<=Gr;Or+=1)Ki.push(Kt.createElement(lt,(0,ee.Z)({},oi,{key:Or,page:Or,active:ti===Or})));if(ti-1>=xr*2&&ti!==3&&(Ki[0]=Kt.cloneElement(Ki[0],{className:ce()("".concat(ge,"-item-after-jump-prev"),Ki[0].props.className)}),Ki.unshift(Fn)),Ii-ti>=xr*2&&ti!==Ii-2){var Wr=Ki[Ki.length-1];Ki[Ki.length-1]=Kt.cloneElement(Wr,{className:ce()("".concat(ge,"-item-before-jump-next"),Wr.props.className)}),Ki.push(Ai)}Gi!==1&&Ki.unshift(Kt.createElement(lt,(0,ee.Z)({},oi,{key:1,page:1}))),Gr!==Ii&&Ki.push(Kt.createElement(lt,(0,ee.Z)({},oi,{key:Ii,page:Ii})))}var Zi=te(gi);if(Zi){var ir=!Ne||!Ii;Zi=Kt.createElement("li",{title:mi?wt.prev_page:null,onClick:sn,tabIndex:ir?null:0,onKeyDown:Dn,className:ce()("".concat(ge,"-prev"),(0,yt.Z)({},"".concat(ge,"-disabled"),ir)),"aria-disabled":ir},Zi)}var Qi=be(Si);if(Qi){var pn,dr;nn?(pn=!ke,dr=Ne?0:null):(pn=!ke||!Ii,dr=pn?null:0),Qi=Kt.createElement("li",{title:mi?wt.next_page:null,onClick:xi,tabIndex:dr,onKeyDown:mn,className:ce()("".concat(ge,"-next"),(0,yt.Z)({},"".concat(ge,"-disabled"),pn)),"aria-disabled":pn},Qi)}var xn=ce()(ge,ye,(0,yt.Z)((0,yt.Z)((0,yt.Z)((0,yt.Z)((0,yt.Z)({},"".concat(ge,"-start"),jn==="start"),"".concat(ge,"-center"),jn==="center"),"".concat(ge,"-end"),jn==="end"),"".concat(ge,"-simple"),nn),"".concat(ge,"-disabled"),$t));return Kt.createElement("ul",(0,ee.Z)({className:xn,style:Nt,ref:Ue},Be),zn,Zi,nn?Ei:Ki,Qi,Kt.createElement(et,{locale:wt,rootPrefixCls:ge,disabled:$t,selectPrefixCls:Pe,changeSize:Yn,pageSize:Xn,pageSizeOptions:Qe,quickGo:fi?Fe:null,goButton:Mn,showSizeChanger:De,sizeChangerRender:Ce}))},Zt=It},48365:function(Qn,pi,Dt){"use strict";var yt=Dt(61186),ee=Dt.n(yt),ie=Dt(90111),we=Dt.n(ie),Ee=Dt(58319),jt=Dt.n(Ee),ce=Dt(23250),Ve=Dt.n(ce),xe=Dt(74959),Lt=Dt.n(xe),ze=Dt(10238),Kt=Dt.n(ze),Je=Dt(33656),Bt=Dt.n(Je);ee().extend(Bt()),ee().extend(Kt()),ee().extend(we()),ee().extend(jt()),ee().extend(Ve()),ee().extend(Lt()),ee().extend(function(gt,mt){var St=mt.prototype,Mt=St.format;St.format=function(Zt){var oe=(Zt||"").replace("Wo","wo");return Mt.bind(this)(oe)}});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=ee()();return typeof mt.tz=="function"?mt.tz():mt},getFixedDate:function(mt){return ee()(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 ee()().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 ee()().locale(et(mt)).localeData().weekdaysMin()},getShortMonths:function(mt){return ee()().locale(et(mt)).localeData().monthsShort()},format:function(mt,St,Mt){return St.locale(et(mt)).format(Mt)},parse:function(mt,St,Mt){for(var It=et(mt),Zt=0;Zt<Mt.length;Zt+=1){var oe=Mt[Zt],Gt=St;if(oe.includes("wo")||oe.includes("Wo")){for(var _t=Gt.split("-")[0],ge=Gt.split("-")[1],me=ee()(_t,"YYYY").startOf("year").locale(It),Pe=0;Pe<=52;Pe+=1){var ye=me.add(Pe,"week");if(ye.format("Wo")===ge)return ye}return dt(),null}var He=ee()(Gt,oe,!0).locale(It);if(He.isValid())return He}return St&&dt(),null}}};pi.Z=lt},8571:function(Qn,pi,Dt){"use strict";Dt.d(pi,{Sq:function(){return Wt},ZP:function(){return An}});var yt=Dt(67711),ee=Dt(15142),ie=Dt(98506),we=Dt(16886),Ee=Dt(70425),jt=Dt(34280),ce=Dt(2738),Ve=Dt(26112),xe=Dt(48736),Lt=Dt(59301),ze=Dt(52873),Kt=Dt(65030),Je=Dt(92310),Bt=Dt.n(Je);function nt(Ct,Qt){return Ct!==void 0?Ct:Qt?"bottomRight":"bottomLeft"}var et=Lt.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(Ct){var Qt=Ct.popupElement,zt=Ct.popupStyle,de=Ct.popupClassName,ue=Ct.popupAlign,Ge=Ct.transitionName,Ze=Ct.getPopupContainer,an=Ct.children,kn=Ct.range,Un=Ct.placement,yn=Ct.builtinPlacements,si=yn===void 0?lt:yn,vi=Ct.direction,le=Ct.visible,ei=Ct.onClose,ni=Lt.useContext(dt),Wn=ni.prefixCls,Vn="".concat(Wn,"-dropdown"),Ni=nt(Un,vi==="rtl");return Lt.createElement(Kt.Z,{showAction:[],hideAction:["click"],popupPlacement:Ni,builtinPlacements:si,prefixCls:Vn,popupTransitionName:Ge,popup:Qt,popupAlign:ue,popupVisible:le,popupClassName:Bt()(de,(0,ze.Z)((0,ze.Z)({},"".concat(Vn,"-range"),kn),"".concat(Vn,"-rtl"),vi==="rtl")),popupStyle:zt,stretch:"minWidth",getPopupContainer:Ze,onPopupVisibleChange:function(Mi){Mi||ei()}},an)}var mt=gt;function St(Ct,Qt){for(var zt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",de=String(Ct);de.length<Qt;)de="".concat(zt).concat(de);return de}function Mt(Ct){return Ct==null?[]:Array.isArray(Ct)?Ct:[Ct]}function It(Ct,Qt,zt){var de=(0,ee.Z)(Ct);return de[Qt]=zt,de}function Zt(Ct,Qt){var zt={},de=Qt||Object.keys(Ct);return de.forEach(function(ue){Ct[ue]!==void 0&&(zt[ue]=Ct[ue])}),zt}function oe(Ct,Qt,zt){if(zt)return zt;switch(Ct){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 Gt(Ct,Qt,zt){var de=zt!==void 0?zt:Qt[Qt.length-1],ue=Qt.find(function(Ge){return Ct[Ge]});return de!==ue?Ct[ue]:void 0}function _t(Ct){return Zt(Ct,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function ge(Ct,Qt,zt,de){var ue=Lt.useMemo(function(){return Ct||function(Ze,an){var kn=Ze;return Qt&&an.type==="date"?Qt(kn,an.today):zt&&an.type==="month"?zt(kn,an.locale):an.originNode}},[Ct,zt,Qt]),Ge=Lt.useCallback(function(Ze,an){return ue(Ze,(0,ie.Z)((0,ie.Z)({},an),{},{range:de}))},[ue,de]);return Ge}function me(Ct,Qt){var zt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],de=Lt.useState([!1,!1]),ue=(0,we.Z)(de,2),Ge=ue[0],Ze=ue[1],an=function(yn,si){Ze(function(vi){return It(vi,si,yn)})},kn=Lt.useMemo(function(){return Ge.map(function(Un,yn){if(Un)return!0;var si=Ct[yn];return si?!!(!zt[yn]&&!si||si&&Qt(si,{activeIndex:yn})):!1})},[Ct,Ge,Qt,zt]);return[kn,an]}function Pe(Ct,Qt,zt,de,ue){var Ge="",Ze=[];return Ct&&Ze.push(ue?"hh":"HH"),Qt&&Ze.push("mm"),zt&&Ze.push("ss"),Ge=Ze.join(":"),de&&(Ge+=".SSS"),ue&&(Ge+=" A"),Ge}function ye(Ct,Qt,zt,de,ue,Ge){var Ze=Ct.fieldDateTimeFormat,an=Ct.fieldDateFormat,kn=Ct.fieldTimeFormat,Un=Ct.fieldMonthFormat,yn=Ct.fieldYearFormat,si=Ct.fieldWeekFormat,vi=Ct.fieldQuarterFormat,le=Ct.yearFormat,ei=Ct.cellYearFormat,ni=Ct.cellQuarterFormat,Wn=Ct.dayFormat,Vn=Ct.cellDateFormat,Ni=Pe(Qt,zt,de,ue,Ge);return(0,ie.Z)((0,ie.Z)({},Ct),{},{fieldDateTimeFormat:Ze||"YYYY-MM-DD ".concat(Ni),fieldDateFormat:an||"YYYY-MM-DD",fieldTimeFormat:kn||Ni,fieldMonthFormat:Un||"YYYY-MM",fieldYearFormat:yn||"YYYY",fieldWeekFormat:si||"gggg-wo",fieldQuarterFormat:vi||"YYYY-[Q]Q",yearFormat:le||"YYYY",cellYearFormat:ei||"YYYY",cellQuarterFormat:ni||"[Q]Q",cellDateFormat:Vn||Wn||"D"})}function He(Ct,Qt){var zt=Qt.showHour,de=Qt.showMinute,ue=Qt.showSecond,Ge=Qt.showMillisecond,Ze=Qt.use12Hours;return Lt.useMemo(function(){return ye(Ct,zt,de,ue,Ge,Ze)},[Ct,zt,de,ue,Ge,Ze])}var wn=Dt(26420);function ln(Ct,Qt,zt){return zt!=null?zt:Qt.some(function(de){return Ct.includes(de)})}var Oe=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function Sn(Ct){var Qt=Zt(Ct,Oe),zt=Ct.format,de=Ct.picker,ue=null;return zt&&(ue=zt,Array.isArray(ue)&&(ue=ue[0]),ue=(0,wn.Z)(ue)==="object"?ue.format:ue),de==="time"&&(Qt.format=ue),[Qt,ue]}function se(Ct){return Ct&&typeof Ct=="string"}function Yt(Ct,Qt,zt,de){return[Ct,Qt,zt,de].some(function(ue){return ue!==void 0})}function fn(Ct,Qt,zt,de,ue){var Ge=Qt,Ze=zt,an=de;if(!Ct&&!Ge&&!Ze&&!an&&!ue)Ge=!0,Ze=!0,an=!0;else if(Ct){var kn,Un,yn,si=[Ge,Ze,an].some(function(ei){return ei===!1}),vi=[Ge,Ze,an].some(function(ei){return ei===!0}),le=si?!0:!vi;Ge=(kn=Ge)!==null&&kn!==void 0?kn:le,Ze=(Un=Ze)!==null&&Un!==void 0?Un:le,an=(yn=an)!==null&&yn!==void 0?yn:le}return[Ge,Ze,an,ue]}function _n(Ct){var Qt=Ct.showTime,zt=Sn(Ct),de=(0,we.Z)(zt,2),ue=de[0],Ge=de[1],Ze=Qt&&(0,wn.Z)(Qt)==="object"?Qt:{},an=(0,ie.Z)((0,ie.Z)({defaultOpenValue:Ze.defaultOpenValue||Ze.defaultValue},ue),Ze),kn=an.showMillisecond,Un=an.showHour,yn=an.showMinute,si=an.showSecond,vi=Yt(Un,yn,si,kn),le=fn(vi,Un,yn,si,kn),ei=(0,we.Z)(le,3);return Un=ei[0],yn=ei[1],si=ei[2],[an,(0,ie.Z)((0,ie.Z)({},an),{},{showHour:Un,showMinute:yn,showSecond:si,showMillisecond:kn}),an.format,Ge]}function In(Ct,Qt,zt,de,ue){var Ge=Ct==="time";if(Ct==="datetime"||Ge){for(var Ze=de,an=oe(Ct,ue,null),kn=an,Un=[Qt,zt],yn=0;yn<Un.length;yn+=1){var si=Mt(Un[yn])[0];if(se(si)){kn=si;break}}var vi=Ze.showHour,le=Ze.showMinute,ei=Ze.showSecond,ni=Ze.showMillisecond,Wn=Ze.use12Hours,Vn=ln(kn,["a","A","LT","LLL","LTS"],Wn),Ni=Yt(vi,le,ei,ni);Ni||(vi=ln(kn,["H","h","k","LT","LLL"]),le=ln(kn,["m","LT","LLL"]),ei=ln(kn,["s","LTS"]),ni=ln(kn,["SSS"]));var Di=fn(Ni,vi,le,ei,ni),Mi=(0,we.Z)(Di,3);vi=Mi[0],le=Mi[1],ei=Mi[2];var Ti=Qt||Pe(vi,le,ei,ni,Vn);return(0,ie.Z)((0,ie.Z)({},Ze),{},{format:Ti,showHour:vi,showMinute:le,showSecond:ei,showMillisecond:ni,use12Hours:Vn})}return null}function on(Ct,Qt,zt){if(Qt===!1)return null;var de=Qt&&(0,wn.Z)(Qt)==="object"?Qt:{};return de.clearIcon||zt||Lt.createElement("span",{className:"".concat(Ct,"-clear-btn")})}var jn=7;function Pn(Ct,Qt,zt){return!Ct&&!Qt||Ct===Qt?!0:!Ct||!Qt?!1:zt()}function di(Ct,Qt,zt){return Pn(Qt,zt,function(){var de=Math.floor(Ct.getYear(Qt)/10),ue=Math.floor(Ct.getYear(zt)/10);return de===ue})}function Re(Ct,Qt,zt){return Pn(Qt,zt,function(){return Ct.getYear(Qt)===Ct.getYear(zt)})}function ve(Ct,Qt){var zt=Math.floor(Ct.getMonth(Qt)/3);return zt+1}function Ye(Ct,Qt,zt){return Pn(Qt,zt,function(){return Re(Ct,Qt,zt)&&ve(Ct,Qt)===ve(Ct,zt)})}function mi(Ct,Qt,zt){return Pn(Qt,zt,function(){return Re(Ct,Qt,zt)&&Ct.getMonth(Qt)===Ct.getMonth(zt)})}function Cn(Ct,Qt,zt){return Pn(Qt,zt,function(){return Re(Ct,Qt,zt)&&mi(Ct,Qt,zt)&&Ct.getDate(Qt)===Ct.getDate(zt)})}function Ot(Ct,Qt,zt){return Pn(Qt,zt,function(){return Ct.getHour(Qt)===Ct.getHour(zt)&&Ct.getMinute(Qt)===Ct.getMinute(zt)&&Ct.getSecond(Qt)===Ct.getSecond(zt)})}function At(Ct,Qt,zt){return Pn(Qt,zt,function(){return Cn(Ct,Qt,zt)&&Ot(Ct,Qt,zt)&&Ct.getMillisecond(Qt)===Ct.getMillisecond(zt)})}function wt(Ct,Qt,zt,de){return Pn(zt,de,function(){var ue=Ct.locale.getWeekFirstDate(Qt,zt),Ge=Ct.locale.getWeekFirstDate(Qt,de);return Re(Ct,ue,Ge)&&Ct.locale.getWeek(Qt,zt)===Ct.locale.getWeek(Qt,de)})}function Nt(Ct,Qt,zt,de,ue){switch(ue){case"date":return Cn(Ct,zt,de);case"week":return wt(Ct,Qt.locale,zt,de);case"month":return mi(Ct,zt,de);case"quarter":return Ye(Ct,zt,de);case"year":return Re(Ct,zt,de);case"decade":return di(Ct,zt,de);case"time":return Ot(Ct,zt,de);default:return At(Ct,zt,de)}}function Vt(Ct,Qt,zt,de){return!Qt||!zt||!de?!1:Ct.isAfter(de,Qt)&&Ct.isAfter(zt,de)}function kt(Ct,Qt,zt,de,ue){return Nt(Ct,Qt,zt,de,ue)?!0:Ct.isAfter(zt,de)}function $t(Ct,Qt,zt){var de=Qt.locale.getWeekFirstDay(Ct),ue=Qt.setDate(zt,1),Ge=Qt.getWeekDay(ue),Ze=Qt.addDate(ue,de-Ge);return Qt.getMonth(Ze)===Qt.getMonth(zt)&&Qt.getDate(Ze)>1&&(Ze=Qt.addDate(Ze,-7)),Ze}function nn(Ct,Qt){var zt=Qt.generateConfig,de=Qt.locale,ue=Qt.format;return Ct?typeof ue=="function"?ue(Ct):zt.locale.format(de.locale,Ct,ue):""}function dn(Ct,Qt,zt){var de=Qt,ue=["getHour","getMinute","getSecond","getMillisecond"],Ge=["setHour","setMinute","setSecond","setMillisecond"];return Ge.forEach(function(Ze,an){zt?de=Ct[Ze](de,Ct[ue[an]](zt)):de=Ct[Ze](de,0)}),de}function En(Ct,Qt,zt,de,ue){var Ge=(0,Ee.zX)(function(Ze,an){return!!(zt&&zt(Ze,an)||de&&Ct.isAfter(de,Ze)&&!Nt(Ct,Qt,de,Ze,an.type)||ue&&Ct.isAfter(Ze,ue)&&!Nt(Ct,Qt,ue,Ze,an.type))});return Ge}function De(Ct,Qt,zt){return Lt.useMemo(function(){var de=oe(Ct,Qt,zt),ue=Mt(de),Ge=ue[0],Ze=(0,wn.Z)(Ge)==="object"&&Ge.type==="mask"?Ge.format:null;return[ue.map(function(an){return typeof an=="string"||typeof an=="function"?an:an.format}),Ze]},[Ct,Qt,zt])}function Ce(Ct,Qt,zt){return typeof Ct[0]=="function"||zt?!0:Qt}function Qe(Ct,Qt,zt,de){var ue=(0,Ee.zX)(function(Ge,Ze){var an=(0,ie.Z)({type:Qt},Ze);if(delete an.activeIndex,!Ct.isValidate(Ge)||zt&&zt(Ge,an))return!0;if((Qt==="date"||Qt==="time")&&de){var kn,Un=Ze&&Ze.activeIndex===1?"end":"start",yn=((kn=de.disabledTime)===null||kn===void 0?void 0:kn.call(de,Ge,Un,{from:an.from}))||{},si=yn.disabledHours,vi=yn.disabledMinutes,le=yn.disabledSeconds,ei=yn.disabledMilliseconds,ni=de.disabledHours,Wn=de.disabledMinutes,Vn=de.disabledSeconds,Ni=si||ni,Di=vi||Wn,Mi=le||Vn,Ti=Ct.getHour(Ge),Ri=Ct.getMinute(Ge),or=Ct.getSecond(Ge),Ir=Ct.getMillisecond(Ge);if(Ni&&Ni().includes(Ti)||Di&&Di(Ti).includes(Ri)||Mi&&Mi(Ti,Ri).includes(or)||ei&&ei(Ti,Ri,or).includes(Ir))return!0}return!1});return ue}function un(Ct){var Qt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,zt=Lt.useMemo(function(){var de=Ct&&Mt(Ct);return Qt&&de&&(de[1]=de[1]||de[0]),de},[Ct,Qt]);return zt}function Nn(Ct,Qt){var zt=Ct.generateConfig,de=Ct.locale,ue=Ct.picker,Ge=ue===void 0?"date":ue,Ze=Ct.prefixCls,an=Ze===void 0?"rc-picker":Ze,kn=Ct.styles,Un=kn===void 0?{}:kn,yn=Ct.classNames,si=yn===void 0?{}:yn,vi=Ct.order,le=vi===void 0?!0:vi,ei=Ct.components,ni=ei===void 0?{}:ei,Wn=Ct.inputRender,Vn=Ct.allowClear,Ni=Ct.clearIcon,Di=Ct.needConfirm,Mi=Ct.multiple,Ti=Ct.format,Ri=Ct.inputReadOnly,or=Ct.disabledDate,Ir=Ct.minDate,jr=Ct.maxDate,Hr=Ct.showTime,Bi=Ct.value,Ar=Ct.defaultValue,wr=Ct.pickerValue,Nr=Ct.defaultPickerValue,mr=un(Bi),Rr=un(Ar),ri=un(wr),Vi=un(Nr),Ji=Ge==="date"&&Hr?"datetime":Ge,lr=Ji==="time"||Ji==="datetime",qi=lr||Mi,nr=Di!=null?Di:lr,ki=_n(Ct),Br=(0,we.Z)(ki,4),Kr=Br[0],Qr=Br[1],Pr=Br[2],to=Br[3],Ur=He(de,Qr),Xr=Lt.useMemo(function(){return In(Ji,Pr,to,Kr,Ur)},[Ji,Pr,to,Kr,Ur]),fo=Lt.useMemo(function(){return(0,ie.Z)((0,ie.Z)({},Ct),{},{prefixCls:an,locale:Ur,picker:Ge,styles:Un,classNames:si,order:le,components:(0,ie.Z)({input:Wn},ni),clearIcon:on(an,Vn,Ni),showTime:Xr,value:mr,defaultValue:Rr,pickerValue:ri,defaultPickerValue:Vi},Qt==null?void 0:Qt())},[Ct]),mo=De(Ji,Ur,Ti),Bo=(0,we.Z)(mo,2),ao=Bo[0],ia=Bo[1],po=Ce(ao,Ri,Mi),Jo=En(zt,de,or,Ir,jr),Po=Qe(zt,Ge,Jo,Xr),Vo=Lt.useMemo(function(){return(0,ie.Z)((0,ie.Z)({},fo),{},{needConfirm:nr,inputReadOnly:po,disabledDate:Jo})},[fo,nr,po,Jo]);return[Vo,Ji,qi,ao,ia,Po]}var ai=Dt(16089);function Tn(Ct,Qt,zt){var de=(0,Ee.C8)(Qt,{value:Ct}),ue=(0,we.Z)(de,2),Ge=ue[0],Ze=ue[1],an=Lt.useRef(Ct),kn=Lt.useRef(),Un=function(){ai.Z.cancel(kn.current)},yn=(0,Ee.zX)(function(){Ze(an.current),zt&&Ge!==an.current&&zt(an.current)}),si=(0,Ee.zX)(function(vi,le){Un(),an.current=vi,vi||le?yn():kn.current=(0,ai.Z)(yn)});return Lt.useEffect(function(){return Un},[]),[Ge,si]}function bn(Ct,Qt){var zt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],de=arguments.length>3?arguments[3]:void 0,ue=zt.every(function(yn){return yn})?!1:Ct,Ge=Tn(ue,Qt||!1,de),Ze=(0,we.Z)(Ge,2),an=Ze[0],kn=Ze[1];function Un(yn){var si=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!si.inherit||an)&&kn(yn,si.force)}return[an,Un]}function Ie(Ct){var Qt=Lt.useRef();return Lt.useImperativeHandle(Ct,function(){var zt;return{nativeElement:(zt=Qt.current)===null||zt===void 0?void 0:zt.nativeElement,focus:function(ue){var Ge;(Ge=Qt.current)===null||Ge===void 0||Ge.focus(ue)},blur:function(){var ue;(ue=Qt.current)===null||ue===void 0||ue.blur()}}}),Qt}function Ue(Ct,Qt){return Lt.useMemo(function(){return Ct||(Qt?((0,xe.ZP)(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(Qt).map(function(zt){var de=(0,we.Z)(zt,2),ue=de[0],Ge=de[1];return{label:ue,value:Ge}})):[])},[Ct,Qt])}function cn(Ct,Qt){var zt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,de=Lt.useRef(Qt);de.current=Qt,(0,jt.o)(function(){if(Ct)de.current(Ct);else{var ue=(0,ai.Z)(function(){de.current(Ct)},zt);return function(){ai.Z.cancel(ue)}}},[Ct])}function Ln(Ct){var Qt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],zt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,de=Lt.useState(0),ue=(0,we.Z)(de,2),Ge=ue[0],Ze=ue[1],an=Lt.useState(!1),kn=(0,we.Z)(an,2),Un=kn[0],yn=kn[1],si=Lt.useRef([]),vi=Lt.useRef(null),le=Lt.useRef(null),ei=function(Mi){vi.current=Mi},ni=function(Mi){return vi.current===Mi},Wn=function(Mi){yn(Mi)},Vn=function(Mi){return Mi&&(le.current=Mi),le.current},Ni=function(Mi){var Ti=si.current,Ri=new Set(Ti.filter(function(Ir){return Mi[Ir]||Qt[Ir]})),or=Ti[Ti.length-1]===0?1:0;return Ri.size>=2||Ct[or]?null:or};return cn(Un||zt,function(){Un||(si.current=[],ei(null))}),Lt.useEffect(function(){Un&&si.current.push(Ge)},[Un,Ge]),[Un,Wn,Vn,Ge,Ze,Ni,si.current,ei,ni]}function Xn(Ct,Qt,zt,de,ue,Ge){var Ze=zt[zt.length-1],an=function(Un,yn){var si=(0,we.Z)(Ct,2),vi=si[0],le=si[1],ei=(0,ie.Z)((0,ie.Z)({},yn),{},{from:Gt(Ct,zt)});return Ze===1&&Qt[0]&&vi&&!Nt(de,ue,vi,Un,ei.type)&&de.isAfter(vi,Un)||Ze===0&&Qt[1]&&le&&!Nt(de,ue,le,Un,ei.type)&&de.isAfter(Un,le)?!0:Ge==null?void 0:Ge(Un,ei)};return an}function li(Ct,Qt,zt,de){switch(Qt){case"date":case"week":return Ct.addMonth(zt,de);case"month":case"quarter":return Ct.addYear(zt,de);case"year":return Ct.addYear(zt,de*10);case"decade":return Ct.addYear(zt,de*100);default:return zt}}var Ci=[];function gn(Ct,Qt,zt,de,ue,Ge,Ze,an){var kn=arguments.length>8&&arguments[8]!==void 0?arguments[8]:Ci,Un=arguments.length>9&&arguments[9]!==void 0?arguments[9]:Ci,yn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:Ci,si=arguments.length>11?arguments[11]:void 0,vi=arguments.length>12?arguments[12]:void 0,le=arguments.length>13?arguments[13]:void 0,ei=Ze==="time",ni=Ge||0,Wn=function(ri){var Vi=Ct.getNow();return ei&&(Vi=dn(Ct,Vi)),kn[ri]||zt[ri]||Vi},Vn=(0,we.Z)(Un,2),Ni=Vn[0],Di=Vn[1],Mi=(0,Ee.C8)(function(){return Wn(0)},{value:Ni}),Ti=(0,we.Z)(Mi,2),Ri=Ti[0],or=Ti[1],Ir=(0,Ee.C8)(function(){return Wn(1)},{value:Di}),jr=(0,we.Z)(Ir,2),Hr=jr[0],Bi=jr[1],Ar=Lt.useMemo(function(){var Rr=[Ri,Hr][ni];return ei?Rr:dn(Ct,Rr,yn[ni])},[ei,Ri,Hr,ni,Ct,yn]),wr=function(ri){var Vi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",Ji=[or,Bi][ni];Ji(ri);var lr=[Ri,Hr];lr[ni]=ri,si&&(!Nt(Ct,Qt,Ri,lr[0],Ze)||!Nt(Ct,Qt,Hr,lr[1],Ze))&&si(lr,{source:Vi,range:ni===1?"end":"start",mode:de})},Nr=function(ri,Vi){if(an){var Ji={date:"month",week:"month",month:"year",quarter:"year"},lr=Ji[Ze];if(lr&&!Nt(Ct,Qt,ri,Vi,lr))return li(Ct,Ze,Vi,-1);if(Ze==="year"&&ri){var qi=Math.floor(Ct.getYear(ri)/10),nr=Math.floor(Ct.getYear(Vi)/10);if(qi!==nr)return li(Ct,Ze,Vi,-1)}}return Vi},mr=Lt.useRef(null);return(0,jt.Z)(function(){if(ue&&!kn[ni]){var Rr=ei?null:Ct.getNow();if(mr.current!==null&&mr.current!==ni?Rr=[Ri,Hr][ni^1]:zt[ni]?Rr=ni===0?zt[0]:Nr(zt[0],zt[1]):zt[ni^1]&&(Rr=zt[ni^1]),Rr){vi&&Ct.isAfter(vi,Rr)&&(Rr=vi);var ri=an?li(Ct,Ze,Rr,1):Rr;le&&Ct.isAfter(ri,le)&&(Rr=an?li(Ct,Ze,le,-1):le),wr(Rr,"reset")}}},[ue,ni,zt[ni]]),Lt.useEffect(function(){ue?mr.current=ni:mr.current=null},[ue,ni]),(0,jt.Z)(function(){ue&&kn&&kn[ni]&&wr(kn[ni],"reset")},[ue,ni]),[Ar,wr]}function ti(Ct,Qt){var zt=Lt.useRef(Ct),de=Lt.useState({}),ue=(0,we.Z)(de,2),Ge=ue[1],Ze=function(Un){return Un&&Qt!==void 0?Qt:zt.current},an=function(Un){zt.current=Un,Ge({})};return[Ze,an,Ze(!0)]}var _i=[];function fr(Ct,Qt,zt){var de=function(Ze){return Ze.map(function(an){return nn(an,{generateConfig:Ct,locale:Qt,format:zt[0]})})},ue=function(Ze,an){for(var kn=Math.max(Ze.length,an.length),Un=-1,yn=0;yn<kn;yn+=1){var si=Ze[yn]||null,vi=an[yn]||null;if(si!==vi&&!At(Ct,si,vi)){Un=yn;break}}return[Un<0,Un!==0]};return[de,ue]}function tr(Ct,Qt){return(0,ee.Z)(Ct).sort(function(zt,de){return Qt.isAfter(zt,de)?1:-1})}function er(Ct){var Qt=ti(Ct),zt=(0,we.Z)(Qt,2),de=zt[0],ue=zt[1],Ge=(0,Ee.zX)(function(){ue(Ct)});return Lt.useEffect(function(){Ge()},[Ct]),[de,ue]}function yr(Ct,Qt,zt,de,ue,Ge,Ze,an,kn){var Un=(0,Ee.C8)(Ge,{value:Ze}),yn=(0,we.Z)(Un,2),si=yn[0],vi=yn[1],le=si||_i,ei=er(le),ni=(0,we.Z)(ei,2),Wn=ni[0],Vn=ni[1],Ni=fr(Ct,Qt,zt),Di=(0,we.Z)(Ni,2),Mi=Di[0],Ti=Di[1],Ri=(0,Ee.zX)(function(Ir){var jr=(0,ee.Z)(Ir);if(de)for(var Hr=0;Hr<2;Hr+=1)jr[Hr]=jr[Hr]||null;else ue&&(jr=tr(jr.filter(function(Rr){return Rr}),Ct));var Bi=Ti(Wn(),jr),Ar=(0,we.Z)(Bi,2),wr=Ar[0],Nr=Ar[1];if(!wr&&(Vn(jr),an)){var mr=Mi(jr);an(jr,mr,{range:Nr?"end":"start"})}}),or=function(){kn&&kn(Wn())};return[le,vi,Wn,Ri,or]}function sr(Ct,Qt,zt,de,ue,Ge,Ze,an,kn,Un){var yn=Ct.generateConfig,si=Ct.locale,vi=Ct.picker,le=Ct.onChange,ei=Ct.allowEmpty,ni=Ct.order,Wn=Ge.some(function(wr){return wr})?!1:ni,Vn=fr(yn,si,Ze),Ni=(0,we.Z)(Vn,2),Di=Ni[0],Mi=Ni[1],Ti=ti(Qt),Ri=(0,we.Z)(Ti,2),or=Ri[0],Ir=Ri[1],jr=(0,Ee.zX)(function(){Ir(Qt)});Lt.useEffect(function(){jr()},[Qt]);var Hr=(0,Ee.zX)(function(wr){var Nr=wr===null,mr=(0,ee.Z)(wr||or());if(Nr)for(var Rr=Math.max(Ge.length,mr.length),ri=0;ri<Rr;ri+=1)Ge[ri]||(mr[ri]=null);Wn&&mr[0]&&mr[1]&&(mr=tr(mr,yn)),ue(mr);var Vi=mr,Ji=(0,we.Z)(Vi,2),lr=Ji[0],qi=Ji[1],nr=!lr,ki=!qi,Br=ei?(!nr||ei[0])&&(!ki||ei[1]):!0,Kr=!ni||nr||ki||Nt(yn,si,lr,qi,vi)||yn.isAfter(qi,lr),Qr=(Ge[0]||!lr||!Un(lr,{activeIndex:0}))&&(Ge[1]||!qi||!Un(qi,{from:lr,activeIndex:1})),Pr=Nr||Br&&Kr&&Qr;if(Pr){zt(mr);var to=Mi(mr,Qt),Ur=(0,we.Z)(to,1),Xr=Ur[0];le&&!Xr&&le(Nr&&mr.every(function(fo){return!fo})?null:mr,Di(mr))}return Pr}),Bi=(0,Ee.zX)(function(wr,Nr){var mr=It(or(),wr,de()[wr]);Ir(mr),Nr&&Hr()}),Ar=!an&&!kn;return cn(!Ar,function(){Ar&&(Hr(),ue(Qt),jr())},2),[Bi,Hr]}function hr(Ct,Qt,zt,de,ue){return Qt!=="date"&&Qt!=="time"?!1:zt!==void 0?zt:de!==void 0?de:!ue&&(Ct==="date"||Ct==="time")}var zi=Dt(29301);function gr(Ct,Qt,zt,de,ue,Ge){var Ze=Ct;function an(si,vi,le){var ei=Ge[si](Ze),ni=le.find(function(Di){return Di.value===ei});if(!ni||ni.disabled){var Wn=le.filter(function(Di){return!Di.disabled}),Vn=(0,ee.Z)(Wn).reverse(),Ni=Vn.find(function(Di){return Di.value<=ei})||Wn[0];Ni&&(ei=Ni.value,Ze=Ge[vi](Ze,ei))}return ei}var kn=an("getHour","setHour",Qt()),Un=an("getMinute","setMinute",zt(kn)),yn=an("getSecond","setSecond",de(kn,Un));return an("getMillisecond","setMillisecond",ue(kn,Un,yn)),Ze}function Et(){return[]}function Bn(Ct,Qt){for(var zt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,de=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,ue=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],Ge=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,Ze=[],an=zt>=1?zt|0:1,kn=Ct;kn<=Qt;kn+=an){var Un=ue.includes(kn);(!Un||!de)&&Ze.push({label:St(kn,Ge),value:kn,disabled:Un})}return Ze}function Gn(Ct){var Qt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},zt=arguments.length>2?arguments[2]:void 0,de=Qt||{},ue=de.use12Hours,Ge=de.hourStep,Ze=Ge===void 0?1:Ge,an=de.minuteStep,kn=an===void 0?1:an,Un=de.secondStep,yn=Un===void 0?1:Un,si=de.millisecondStep,vi=si===void 0?100:si,le=de.hideDisabledOptions,ei=de.disabledTime,ni=de.disabledHours,Wn=de.disabledMinutes,Vn=de.disabledSeconds,Ni=Lt.useMemo(function(){return zt||Ct.getNow()},[zt,Ct]);if(0)var Di,Mi,Ti;var Ri=Lt.useCallback(function(qi){var nr=(ei==null?void 0:ei(qi))||{};return[nr.disabledHours||ni||Et,nr.disabledMinutes||Wn||Et,nr.disabledSeconds||Vn||Et,nr.disabledMilliseconds||Et]},[ei,ni,Wn,Vn]),or=Lt.useMemo(function(){return Ri(Ni)},[Ni,Ri]),Ir=(0,we.Z)(or,4),jr=Ir[0],Hr=Ir[1],Bi=Ir[2],Ar=Ir[3],wr=Lt.useCallback(function(qi,nr,ki,Br){var Kr=Bn(0,23,Ze,le,qi()),Qr=ue?Kr.map(function(Xr){return(0,ie.Z)((0,ie.Z)({},Xr),{},{label:St(Xr.value%12||12,2)})}):Kr,Pr=function(fo){return Bn(0,59,kn,le,nr(fo))},to=function(fo,mo){return Bn(0,59,yn,le,ki(fo,mo))},Ur=function(fo,mo,Bo){return Bn(0,999,vi,le,Br(fo,mo,Bo),3)};return[Qr,Pr,to,Ur]},[le,Ze,ue,vi,kn,yn]),Nr=Lt.useMemo(function(){return wr(jr,Hr,Bi,Ar)},[wr,jr,Hr,Bi,Ar]),mr=(0,we.Z)(Nr,4),Rr=mr[0],ri=mr[1],Vi=mr[2],Ji=mr[3],lr=function(nr,ki){var Br=function(){return Rr},Kr=ri,Qr=Vi,Pr=Ji;if(ki){var to=Ri(ki),Ur=(0,we.Z)(to,4),Xr=Ur[0],fo=Ur[1],mo=Ur[2],Bo=Ur[3],ao=wr(Xr,fo,mo,Bo),ia=(0,we.Z)(ao,4),po=ia[0],Jo=ia[1],Po=ia[2],Vo=ia[3];Br=function(){return po},Kr=Jo,Qr=Po,Pr=Vo}var Go=gr(nr,Br,Kr,Qr,Pr,Ct);return Go};return[lr,Rr,ri,Vi,Ji]}function fi(Ct){var Qt=Ct.mode,zt=Ct.internalMode,de=Ct.renderExtraFooter,ue=Ct.showNow,Ge=Ct.showTime,Ze=Ct.onSubmit,an=Ct.onNow,kn=Ct.invalid,Un=Ct.needConfirm,yn=Ct.generateConfig,si=Ct.disabledDate,vi=Lt.useContext(dt),le=vi.prefixCls,ei=vi.locale,ni=vi.button,Wn=ni===void 0?"button":ni,Vn=yn.getNow(),Ni=Gn(yn,Ge,Vn),Di=(0,we.Z)(Ni,1),Mi=Di[0],Ti=de==null?void 0:de(Qt),Ri=si(Vn,{type:Qt}),or=function(){if(!Ri){var Nr=Mi(Vn);an(Nr)}},Ir="".concat(le,"-now"),jr="".concat(Ir,"-btn"),Hr=ue&&Lt.createElement("li",{className:Ir},Lt.createElement("a",{className:Bt()(jr,Ri&&"".concat(jr,"-disabled")),"aria-disabled":Ri,onClick:or},zt==="date"?ei.today:ei.now)),Bi=Un&&Lt.createElement("li",{className:"".concat(le,"-ok")},Lt.createElement(Wn,{disabled:kn,onClick:Ze},ei.ok)),Ar=(Hr||Bi)&&Lt.createElement("ul",{className:"".concat(le,"-ranges")},Hr,Bi);return!Ti&&!Ar?null:Lt.createElement("div",{className:"".concat(le,"-footer")},Ti&&Lt.createElement("div",{className:"".concat(le,"-footer-extra")},Ti),Ar)}function ci(Ct,Qt,zt){function de(ue,Ge){var Ze=ue.findIndex(function(kn){return Nt(Ct,Qt,kn,Ge,zt)});if(Ze===-1)return[].concat((0,ee.Z)(ue),[Ge]);var an=(0,ee.Z)(ue);return an.splice(Ze,1),an}return de}var Kn=Lt.createContext(null);function rn(){return Lt.useContext(Kn)}function Yn(Ct,Qt){var zt=Ct.prefixCls,de=Ct.generateConfig,ue=Ct.locale,Ge=Ct.disabledDate,Ze=Ct.minDate,an=Ct.maxDate,kn=Ct.cellRender,Un=Ct.hoverValue,yn=Ct.hoverRangeValue,si=Ct.onHover,vi=Ct.values,le=Ct.pickerValue,ei=Ct.onSelect,ni=Ct.prevIcon,Wn=Ct.nextIcon,Vn=Ct.superPrevIcon,Ni=Ct.superNextIcon,Di=de.getNow(),Mi={now:Di,values:vi,pickerValue:le,prefixCls:zt,disabledDate:Ge,minDate:Ze,maxDate:an,cellRender:kn,hoverValue:Un,hoverRangeValue:yn,onHover:si,locale:ue,generateConfig:de,onSelect:ei,panelType:Qt,prevIcon:ni,nextIcon:Wn,superPrevIcon:Vn,superNextIcon:Ni};return[Mi,Di]}var Fe=Lt.createContext({});function Ne(Ct){for(var Qt=Ct.rowNum,zt=Ct.colNum,de=Ct.baseDate,ue=Ct.getCellDate,Ge=Ct.prefixColumn,Ze=Ct.rowClassName,an=Ct.titleFormat,kn=Ct.getCellText,Un=Ct.getCellClassName,yn=Ct.headerCells,si=Ct.cellSelection,vi=si===void 0?!0:si,le=Ct.disabledDate,ei=rn(),ni=ei.prefixCls,Wn=ei.panelType,Vn=ei.now,Ni=ei.disabledDate,Di=ei.cellRender,Mi=ei.onHover,Ti=ei.hoverValue,Ri=ei.hoverRangeValue,or=ei.generateConfig,Ir=ei.values,jr=ei.locale,Hr=ei.onSelect,Bi=le||Ni,Ar="".concat(ni,"-cell"),wr=Lt.useContext(Fe),Nr=wr.onCellDblClick,mr=function(ki){return Ir.some(function(Br){return Br&&Nt(or,jr,ki,Br,Wn)})},Rr=[],ri=0;ri<Qt;ri+=1){for(var Vi=[],Ji=void 0,lr=function(){var ki=ri*zt+qi,Br=ue(de,ki),Kr=Bi==null?void 0:Bi(Br,{type:Wn});qi===0&&(Ji=Br,Ge&&Vi.push(Ge(Ji)));var Qr=!1,Pr=!1,to=!1;if(vi&&Ri){var Ur=(0,we.Z)(Ri,2),Xr=Ur[0],fo=Ur[1];Qr=Vt(or,Xr,fo,Br),Pr=Nt(or,jr,Br,Xr,Wn),to=Nt(or,jr,Br,fo,Wn)}var mo=an?nn(Br,{locale:jr,format:an,generateConfig:or}):void 0,Bo=Lt.createElement("div",{className:"".concat(Ar,"-inner")},kn(Br));Vi.push(Lt.createElement("td",{key:qi,title:mo,className:Bt()(Ar,(0,ie.Z)((0,ze.Z)((0,ze.Z)((0,ze.Z)((0,ze.Z)((0,ze.Z)((0,ze.Z)({},"".concat(Ar,"-disabled"),Kr),"".concat(Ar,"-hover"),(Ti||[]).some(function(ao){return Nt(or,jr,Br,ao,Wn)})),"".concat(Ar,"-in-range"),Qr&&!Pr&&!to),"".concat(Ar,"-range-start"),Pr),"".concat(Ar,"-range-end"),to),"".concat(ni,"-cell-selected"),!Ri&&Wn!=="week"&&mr(Br)),Un(Br))),onClick:function(){Kr||Hr(Br)},onDoubleClick:function(){!Kr&&Nr&&Nr()},onMouseEnter:function(){Kr||Mi==null||Mi(Br)},onMouseLeave:function(){Kr||Mi==null||Mi(null)}},Di?Di(Br,{prefixCls:ni,originNode:Bo,today:Vn,type:Wn,locale:jr}):Bo))},qi=0;qi<zt;qi+=1)lr();Rr.push(Lt.createElement("tr",{key:ri,className:Ze==null?void 0:Ze(Ji)},Vi))}return Lt.createElement("div",{className:"".concat(ni,"-body")},Lt.createElement("table",{className:"".concat(ni,"-content")},yn&&Lt.createElement("thead",null,Lt.createElement("tr",null,yn)),Lt.createElement("tbody",null,Rr)))}var ke={visibility:"hidden"};function sn(Ct){var Qt=Ct.offset,zt=Ct.superOffset,de=Ct.onChange,ue=Ct.getStart,Ge=Ct.getEnd,Ze=Ct.children,an=rn(),kn=an.prefixCls,Un=an.prevIcon,yn=Un===void 0?"\u2039":Un,si=an.nextIcon,vi=si===void 0?"\u203A":si,le=an.superPrevIcon,ei=le===void 0?"\xAB":le,ni=an.superNextIcon,Wn=ni===void 0?"\xBB":ni,Vn=an.minDate,Ni=an.maxDate,Di=an.generateConfig,Mi=an.locale,Ti=an.pickerValue,Ri=an.panelType,or="".concat(kn,"-header"),Ir=Lt.useContext(Fe),jr=Ir.hidePrev,Hr=Ir.hideNext,Bi=Ir.hideHeader,Ar=Lt.useMemo(function(){if(!Vn||!Qt||!Ge)return!1;var nr=Ge(Qt(-1,Ti));return!kt(Di,Mi,nr,Vn,Ri)},[Vn,Qt,Ti,Ge,Di,Mi,Ri]),wr=Lt.useMemo(function(){if(!Vn||!zt||!Ge)return!1;var nr=Ge(zt(-1,Ti));return!kt(Di,Mi,nr,Vn,Ri)},[Vn,zt,Ti,Ge,Di,Mi,Ri]),Nr=Lt.useMemo(function(){if(!Ni||!Qt||!ue)return!1;var nr=ue(Qt(1,Ti));return!kt(Di,Mi,Ni,nr,Ri)},[Ni,Qt,Ti,ue,Di,Mi,Ri]),mr=Lt.useMemo(function(){if(!Ni||!zt||!ue)return!1;var nr=ue(zt(1,Ti));return!kt(Di,Mi,Ni,nr,Ri)},[Ni,zt,Ti,ue,Di,Mi,Ri]),Rr=function(ki){Qt&&de(Qt(ki,Ti))},ri=function(ki){zt&&de(zt(ki,Ti))};if(Bi)return null;var Vi="".concat(or,"-prev-btn"),Ji="".concat(or,"-next-btn"),lr="".concat(or,"-super-prev-btn"),qi="".concat(or,"-super-next-btn");return Lt.createElement("div",{className:or},zt&&Lt.createElement("button",{type:"button","aria-label":Mi.previousYear,onClick:function(){return ri(-1)},tabIndex:-1,className:Bt()(lr,wr&&"".concat(lr,"-disabled")),disabled:wr,style:jr?ke:{}},ei),Qt&&Lt.createElement("button",{type:"button","aria-label":Mi.previousMonth,onClick:function(){return Rr(-1)},tabIndex:-1,className:Bt()(Vi,Ar&&"".concat(Vi,"-disabled")),disabled:Ar,style:jr?ke:{}},yn),Lt.createElement("div",{className:"".concat(or,"-view")},Ze),Qt&&Lt.createElement("button",{type:"button","aria-label":Mi.nextMonth,onClick:function(){return Rr(1)},tabIndex:-1,className:Bt()(Ji,Nr&&"".concat(Ji,"-disabled")),disabled:Nr,style:Hr?ke:{}},vi),zt&&Lt.createElement("button",{type:"button","aria-label":Mi.nextYear,onClick:function(){return ri(1)},tabIndex:-1,className:Bt()(qi,mr&&"".concat(qi,"-disabled")),disabled:mr,style:Hr?ke:{}},Wn))}var xi=sn;function yi(Ct){var Qt=Ct.prefixCls,zt=Ct.panelName,de=zt===void 0?"date":zt,ue=Ct.locale,Ge=Ct.generateConfig,Ze=Ct.pickerValue,an=Ct.onPickerValueChange,kn=Ct.onModeChange,Un=Ct.mode,yn=Un===void 0?"date":Un,si=Ct.disabledDate,vi=Ct.onSelect,le=Ct.onHover,ei=Ct.showWeek,ni="".concat(Qt,"-").concat(de,"-panel"),Wn="".concat(Qt,"-cell"),Vn=yn==="week",Ni=Yn(Ct,yn),Di=(0,we.Z)(Ni,2),Mi=Di[0],Ti=Di[1],Ri=Ge.locale.getWeekFirstDay(ue.locale),or=Ge.setDate(Ze,1),Ir=$t(ue.locale,Ge,or),jr=Ge.getMonth(Ze),Hr=ei===void 0?Vn:ei,Bi=Hr?function(nr){var ki=si==null?void 0:si(nr,{type:"week"});return Lt.createElement("td",{key:"week",className:Bt()(Wn,"".concat(Wn,"-week"),(0,ze.Z)({},"".concat(Wn,"-disabled"),ki)),onClick:function(){ki||vi(nr)},onMouseEnter:function(){ki||le==null||le(nr)},onMouseLeave:function(){ki||le==null||le(null)}},Lt.createElement("div",{className:"".concat(Wn,"-inner")},Ge.locale.getWeek(ue.locale,nr)))}:null,Ar=[],wr=ue.shortWeekDays||(Ge.locale.getShortWeekDays?Ge.locale.getShortWeekDays(ue.locale):[]);Bi&&Ar.push(Lt.createElement("th",{key:"empty"},Lt.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},ue.week)));for(var Nr=0;Nr<jn;Nr+=1)Ar.push(Lt.createElement("th",{key:Nr},wr[(Nr+Ri)%jn]));var mr=function(ki,Br){return Ge.addDate(ki,Br)},Rr=function(ki){return nn(ki,{locale:ue,format:ue.cellDateFormat,generateConfig:Ge})},ri=function(ki){var Br=(0,ze.Z)((0,ze.Z)({},"".concat(Qt,"-cell-in-view"),mi(Ge,ki,Ze)),"".concat(Qt,"-cell-today"),Cn(Ge,ki,Ti));return Br},Vi=ue.shortMonths||(Ge.locale.getShortMonths?Ge.locale.getShortMonths(ue.locale):[]),Ji=Lt.createElement("button",{type:"button","aria-label":ue.yearSelect,key:"year",onClick:function(){kn("year",Ze)},tabIndex:-1,className:"".concat(Qt,"-year-btn")},nn(Ze,{locale:ue,format:ue.yearFormat,generateConfig:Ge})),lr=Lt.createElement("button",{type:"button","aria-label":ue.monthSelect,key:"month",onClick:function(){kn("month",Ze)},tabIndex:-1,className:"".concat(Qt,"-month-btn")},ue.monthFormat?nn(Ze,{locale:ue,format:ue.monthFormat,generateConfig:Ge}):Vi[jr]),qi=ue.monthBeforeYear?[lr,Ji]:[Ji,lr];return Lt.createElement(Kn.Provider,{value:Mi},Lt.createElement("div",{className:Bt()(ni,ei&&"".concat(ni,"-show-week"))},Lt.createElement(xi,{offset:function(ki){return Ge.addMonth(Ze,ki)},superOffset:function(ki){return Ge.addYear(Ze,ki)},onChange:an,getStart:function(ki){return Ge.setDate(ki,1)},getEnd:function(ki){var Br=Ge.setDate(ki,1);return Br=Ge.addMonth(Br,1),Ge.addDate(Br,-1)}},qi),Lt.createElement(Ne,(0,yt.Z)({titleFormat:ue.fieldDateFormat},Ct,{colNum:jn,rowNum:6,baseDate:Ir,headerCells:Ar,getCellDate:mr,getCellText:Rr,getCellClassName:ri,prefixColumn:Bi,cellSelection:!Vn}))))}var Fi=Dt(29194),Xe=1/3;function Dn(Ct,Qt){var zt=Lt.useRef(!1),de=Lt.useRef(null),ue=Lt.useRef(null),Ge=function(){return zt.current},Ze=function(){ai.Z.cancel(de.current),zt.current=!1},an=Lt.useRef(),kn=function(){var si=Ct.current;if(ue.current=null,an.current=0,si){var vi=si.querySelector('[data-value="'.concat(Qt,'"]')),le=si.querySelector("li"),ei=function ni(){Ze(),zt.current=!0,an.current+=1;var Wn=si.scrollTop,Vn=le.offsetTop,Ni=vi.offsetTop,Di=Ni-Vn;if(Ni===0&&vi!==le||!(0,Fi.Z)(si)){an.current<=5&&(de.current=(0,ai.Z)(ni));return}var Mi=Wn+(Di-Wn)*Xe,Ti=Math.abs(Di-Mi);if(ue.current!==null&&ue.current<Ti){Ze();return}if(ue.current=Ti,Ti<=1){si.scrollTop=Di,Ze();return}si.scrollTop=Mi,de.current=(0,ai.Z)(ni)};vi&&le&&ei()}},Un=(0,Ee.zX)(kn);return[Un,Ze,Ge]}var mn=300;function Hi(Ct){return Ct.map(function(Qt){var zt=Qt.value,de=Qt.label,ue=Qt.disabled;return[zt,de,ue].join(",")}).join(";")}function qn(Ct){var Qt=Ct.units,zt=Ct.value,de=Ct.optionalValue,ue=Ct.type,Ge=Ct.onChange,Ze=Ct.onHover,an=Ct.onDblClick,kn=Ct.changeOnScroll,Un=rn(),yn=Un.prefixCls,si=Un.cellRender,vi=Un.now,le=Un.locale,ei="".concat(yn,"-time-panel"),ni="".concat(yn,"-time-panel-cell"),Wn=Lt.useRef(null),Vn=Lt.useRef(),Ni=function(){clearTimeout(Vn.current)},Di=Dn(Wn,zt!=null?zt:de),Mi=(0,we.Z)(Di,3),Ti=Mi[0],Ri=Mi[1],or=Mi[2];(0,jt.Z)(function(){return Ti(),Ni(),function(){Ri(),Ni()}},[zt,de,Hi(Qt)]);var Ir=function(Bi){Ni();var Ar=Bi.target;!or()&&kn&&(Vn.current=setTimeout(function(){var wr=Wn.current,Nr=wr.querySelector("li").offsetTop,mr=Array.from(wr.querySelectorAll("li")),Rr=mr.map(function(qi){return qi.offsetTop-Nr}),ri=Rr.map(function(qi,nr){return Qt[nr].disabled?Number.MAX_SAFE_INTEGER:Math.abs(qi-Ar.scrollTop)}),Vi=Math.min.apply(Math,(0,ee.Z)(ri)),Ji=ri.findIndex(function(qi){return qi===Vi}),lr=Qt[Ji];lr&&!lr.disabled&&Ge(lr.value)},mn))},jr="".concat(ei,"-column");return Lt.createElement("ul",{className:jr,ref:Wn,"data-type":ue,onScroll:Ir},Qt.map(function(Hr){var Bi=Hr.label,Ar=Hr.value,wr=Hr.disabled,Nr=Lt.createElement("div",{className:"".concat(ni,"-inner")},Bi);return Lt.createElement("li",{key:Ar,className:Bt()(ni,(0,ze.Z)((0,ze.Z)({},"".concat(ni,"-selected"),zt===Ar),"".concat(ni,"-disabled"),wr)),onClick:function(){wr||Ge(Ar)},onDoubleClick:function(){!wr&&an&&an()},onMouseEnter:function(){Ze(Ar)},onMouseLeave:function(){Ze(null)},"data-value":Ar},si?si(Ar,{prefixCls:yn,originNode:Nr,today:vi,type:"time",subType:ue,locale:le}):Nr)}))}function te(Ct){return Ct<12}function be(Ct){var Qt=Ct.showHour,zt=Ct.showMinute,de=Ct.showSecond,ue=Ct.showMillisecond,Ge=Ct.use12Hours,Ze=Ct.changeOnScroll,an=rn(),kn=an.prefixCls,Un=an.values,yn=an.generateConfig,si=an.locale,vi=an.onSelect,le=an.onHover,ei=le===void 0?function(){}:le,ni=an.pickerValue,Wn=(Un==null?void 0:Un[0])||null,Vn=Lt.useContext(Fe),Ni=Vn.onCellDblClick,Di=Gn(yn,Ct,Wn),Mi=(0,we.Z)(Di,5),Ti=Mi[0],Ri=Mi[1],or=Mi[2],Ir=Mi[3],jr=Mi[4],Hr=function(wi){var Do=Wn&&yn[wi](Wn),pe=ni&&yn[wi](ni);return[Do,pe]},Bi=Hr("getHour"),Ar=(0,we.Z)(Bi,2),wr=Ar[0],Nr=Ar[1],mr=Hr("getMinute"),Rr=(0,we.Z)(mr,2),ri=Rr[0],Vi=Rr[1],Ji=Hr("getSecond"),lr=(0,we.Z)(Ji,2),qi=lr[0],nr=lr[1],ki=Hr("getMillisecond"),Br=(0,we.Z)(ki,2),Kr=Br[0],Qr=Br[1],Pr=wr===null?null:te(wr)?"am":"pm",to=Lt.useMemo(function(){return Ge?te(wr)?Ri.filter(function(pr){return te(pr.value)}):Ri.filter(function(pr){return!te(pr.value)}):Ri},[wr,Ri,Ge]),Ur=function(wi,Do){var pe,Rn=wi.filter(function(ha){return!ha.disabled});return Do!=null?Do:Rn==null||(pe=Rn[0])===null||pe===void 0?void 0:pe.value},Xr=Ur(Ri,wr),fo=Lt.useMemo(function(){return or(Xr)},[or,Xr]),mo=Ur(fo,ri),Bo=Lt.useMemo(function(){return Ir(Xr,mo)},[Ir,Xr,mo]),ao=Ur(Bo,qi),ia=Lt.useMemo(function(){return jr(Xr,mo,ao)},[jr,Xr,mo,ao]),po=Ur(ia,Kr),Jo=Lt.useMemo(function(){if(!Ge)return[];var pr=yn.getNow(),wi=yn.setHour(pr,6),Do=yn.setHour(pr,18),pe=function(ha,ga){var aa=si.cellMeridiemFormat;return aa?nn(ha,{generateConfig:yn,locale:si,format:aa}):ga};return[{label:pe(wi,"AM"),value:"am",disabled:Ri.every(function(Rn){return Rn.disabled||!te(Rn.value)})},{label:pe(Do,"PM"),value:"pm",disabled:Ri.every(function(Rn){return Rn.disabled||te(Rn.value)})}]},[Ri,Ge,yn,si]),Po=function(wi){var Do=Ti(wi);vi(Do)},Vo=Lt.useMemo(function(){var pr=Wn||ni||yn.getNow(),wi=function(pe){return pe!=null};return wi(wr)?(pr=yn.setHour(pr,wr),pr=yn.setMinute(pr,ri),pr=yn.setSecond(pr,qi),pr=yn.setMillisecond(pr,Kr)):wi(Nr)?(pr=yn.setHour(pr,Nr),pr=yn.setMinute(pr,Vi),pr=yn.setSecond(pr,nr),pr=yn.setMillisecond(pr,Qr)):wi(Xr)&&(pr=yn.setHour(pr,Xr),pr=yn.setMinute(pr,mo),pr=yn.setSecond(pr,ao),pr=yn.setMillisecond(pr,po)),pr},[Wn,ni,wr,ri,qi,Kr,Xr,mo,ao,po,Nr,Vi,nr,Qr,yn]),Go=function(wi,Do){return wi===null?null:yn[Do](Vo,wi)},Yo=function(wi){return Go(wi,"setHour")},Ro=function(wi){return Go(wi,"setMinute")},Lo=function(wi){return Go(wi,"setSecond")},oa=function(wi){return Go(wi,"setMillisecond")},wa=function(wi){return wi===null?null:wi==="am"&&!te(wr)?yn.setHour(Vo,wr-12):wi==="pm"&&te(wr)?yn.setHour(Vo,wr+12):Vo},zo=function(wi){Po(Yo(wi))},Oa=function(wi){Po(Ro(wi))},bo=function(wi){Po(Lo(wi))},yo=function(wi){Po(oa(wi))},vo=function(wi){Po(wa(wi))},Qo=function(wi){ei(Yo(wi))},ro=function(wi){ei(Ro(wi))},ea=function(wi){ei(Lo(wi))},vr=function(wi){ei(oa(wi))},ur=function(wi){ei(wa(wi))},Lr={onDblClick:Ni,changeOnScroll:Ze};return Lt.createElement("div",{className:"".concat(kn,"-content")},Qt&&Lt.createElement(qn,(0,yt.Z)({units:to,value:wr,optionalValue:Nr,type:"hour",onChange:zo,onHover:Qo},Lr)),zt&&Lt.createElement(qn,(0,yt.Z)({units:fo,value:ri,optionalValue:Vi,type:"minute",onChange:Oa,onHover:ro},Lr)),de&&Lt.createElement(qn,(0,yt.Z)({units:Bo,value:qi,optionalValue:nr,type:"second",onChange:bo,onHover:ea},Lr)),ue&&Lt.createElement(qn,(0,yt.Z)({units:ia,value:Kr,optionalValue:Qr,type:"millisecond",onChange:yo,onHover:vr},Lr)),Ge&&Lt.createElement(qn,(0,yt.Z)({units:Jo,value:Pr,type:"meridiem",onChange:vo,onHover:ur},Lr)))}function Jn(Ct){var Qt=Ct.prefixCls,zt=Ct.value,de=Ct.locale,ue=Ct.generateConfig,Ge=Ct.showTime,Ze=Ge||{},an=Ze.format,kn="".concat(Qt,"-time-panel"),Un=Yn(Ct,"time"),yn=(0,we.Z)(Un,1),si=yn[0];return Lt.createElement(Kn.Provider,{value:si},Lt.createElement("div",{className:Bt()(kn)},Lt.createElement(xi,null,zt?nn(zt,{locale:de,format:an,generateConfig:ue}):"\xA0"),Lt.createElement(be,Ge)))}function Fn(Ct){var Qt=Ct.prefixCls,zt=Ct.generateConfig,de=Ct.showTime,ue=Ct.onSelect,Ge=Ct.value,Ze=Ct.pickerValue,an=Ct.onHover,kn="".concat(Qt,"-datetime-panel"),Un=Gn(zt,de),yn=(0,we.Z)(Un,1),si=yn[0],vi=function(Wn){return Ge?dn(zt,Wn,Ge):dn(zt,Wn,Ze)},le=function(Wn){an==null||an(Wn&&vi(Wn))},ei=function(Wn){var Vn=vi(Wn);ue(si(Vn,Vn))};return Lt.createElement("div",{className:kn},Lt.createElement(yi,(0,yt.Z)({},Ct,{onSelect:ei,onHover:le})),Lt.createElement(Jn,Ct))}function Be(Ct){var Qt=Ct.prefixCls,zt=Ct.locale,de=Ct.generateConfig,ue=Ct.pickerValue,Ge=Ct.disabledDate,Ze=Ct.onPickerValueChange,an="".concat(Qt,"-decade-panel"),kn=Yn(Ct,"decade"),Un=(0,we.Z)(kn,1),yn=Un[0],si=function(Ri){var or=Math.floor(de.getYear(Ri)/100)*100;return de.setYear(Ri,or)},vi=function(Ri){var or=si(Ri);return de.addYear(or,99)},le=si(ue),ei=vi(ue),ni=de.addYear(le,-10),Wn=function(Ri,or){return de.addYear(Ri,or*10)},Vn=function(Ri){var or=zt.cellYearFormat,Ir=nn(Ri,{locale:zt,format:or,generateConfig:de}),jr=nn(de.addYear(Ri,9),{locale:zt,format:or,generateConfig:de});return"".concat(Ir,"-").concat(jr)},Ni=function(Ri){return(0,ze.Z)({},"".concat(Qt,"-cell-in-view"),di(de,Ri,le)||di(de,Ri,ei)||Vt(de,le,ei,Ri))},Di=Ge?function(Ti,Ri){var or=de.setDate(Ti,1),Ir=de.setMonth(or,0),jr=de.setYear(Ir,Math.floor(de.getYear(Ir)/10)*10),Hr=de.addYear(jr,10),Bi=de.addDate(Hr,-1);return Ge(jr,Ri)&&Ge(Bi,Ri)}:null,Mi="".concat(nn(le,{locale:zt,format:zt.yearFormat,generateConfig:de}),"-").concat(nn(ei,{locale:zt,format:zt.yearFormat,generateConfig:de}));return Lt.createElement(Kn.Provider,{value:yn},Lt.createElement("div",{className:an},Lt.createElement(xi,{superOffset:function(Ri){return de.addYear(ue,Ri*100)},onChange:Ze,getStart:si,getEnd:vi},Mi),Lt.createElement(Ne,(0,yt.Z)({},Ct,{disabledDate:Di,colNum:3,rowNum:4,baseDate:ni,getCellDate:Wn,getCellText:Vn,getCellClassName:Ni}))))}function zn(Ct){var Qt=Ct.prefixCls,zt=Ct.locale,de=Ct.generateConfig,ue=Ct.pickerValue,Ge=Ct.disabledDate,Ze=Ct.onPickerValueChange,an=Ct.onModeChange,kn="".concat(Qt,"-month-panel"),Un=Yn(Ct,"month"),yn=(0,we.Z)(Un,1),si=yn[0],vi=de.setMonth(ue,0),le=zt.shortMonths||(de.locale.getShortMonths?de.locale.getShortMonths(zt.locale):[]),ei=function(Mi,Ti){return de.addMonth(Mi,Ti)},ni=function(Mi){var Ti=de.getMonth(Mi);return zt.monthFormat?nn(Mi,{locale:zt,format:zt.monthFormat,generateConfig:de}):le[Ti]},Wn=function(){return(0,ze.Z)({},"".concat(Qt,"-cell-in-view"),!0)},Vn=Ge?function(Di,Mi){var Ti=de.setDate(Di,1),Ri=de.setMonth(Ti,de.getMonth(Ti)+1),or=de.addDate(Ri,-1);return Ge(Ti,Mi)&&Ge(or,Mi)}:null,Ni=Lt.createElement("button",{type:"button",key:"year","aria-label":zt.yearSelect,onClick:function(){an("year")},tabIndex:-1,className:"".concat(Qt,"-year-btn")},nn(ue,{locale:zt,format:zt.yearFormat,generateConfig:de}));return Lt.createElement(Kn.Provider,{value:si},Lt.createElement("div",{className:kn},Lt.createElement(xi,{superOffset:function(Mi){return de.addYear(ue,Mi)},onChange:Ze,getStart:function(Mi){return de.setMonth(Mi,0)},getEnd:function(Mi){return de.setMonth(Mi,11)}},Ni),Lt.createElement(Ne,(0,yt.Z)({},Ct,{disabledDate:Vn,titleFormat:zt.fieldMonthFormat,colNum:3,rowNum:4,baseDate:vi,getCellDate:ei,getCellText:ni,getCellClassName:Wn}))))}function Ai(Ct){var Qt=Ct.prefixCls,zt=Ct.locale,de=Ct.generateConfig,ue=Ct.pickerValue,Ge=Ct.onPickerValueChange,Ze=Ct.onModeChange,an="".concat(Qt,"-quarter-panel"),kn=Yn(Ct,"quarter"),Un=(0,we.Z)(kn,1),yn=Un[0],si=de.setMonth(ue,0),vi=function(Vn,Ni){return de.addMonth(Vn,Ni*3)},le=function(Vn){return nn(Vn,{locale:zt,format:zt.cellQuarterFormat,generateConfig:de})},ei=function(){return(0,ze.Z)({},"".concat(Qt,"-cell-in-view"),!0)},ni=Lt.createElement("button",{type:"button",key:"year","aria-label":zt.yearSelect,onClick:function(){Ze("year")},tabIndex:-1,className:"".concat(Qt,"-year-btn")},nn(ue,{locale:zt,format:zt.yearFormat,generateConfig:de}));return Lt.createElement(Kn.Provider,{value:yn},Lt.createElement("div",{className:an},Lt.createElement(xi,{superOffset:function(Vn){return de.addYear(ue,Vn)},onChange:Ge,getStart:function(Vn){return de.setMonth(Vn,0)},getEnd:function(Vn){return de.setMonth(Vn,11)}},ni),Lt.createElement(Ne,(0,yt.Z)({},Ct,{titleFormat:zt.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:si,getCellDate:vi,getCellText:le,getCellClassName:ei}))))}function Ii(Ct){var Qt=Ct.prefixCls,zt=Ct.generateConfig,de=Ct.locale,ue=Ct.value,Ge=Ct.hoverValue,Ze=Ct.hoverRangeValue,an=de.locale,kn="".concat(Qt,"-week-panel-row"),Un=function(si){var vi={};if(Ze){var le=(0,we.Z)(Ze,2),ei=le[0],ni=le[1],Wn=wt(zt,an,ei,si),Vn=wt(zt,an,ni,si);vi["".concat(kn,"-range-start")]=Wn,vi["".concat(kn,"-range-end")]=Vn,vi["".concat(kn,"-range-hover")]=!Wn&&!Vn&&Vt(zt,ei,ni,si)}return Ge&&(vi["".concat(kn,"-hover")]=Ge.some(function(Ni){return wt(zt,an,si,Ni)})),Bt()(kn,(0,ze.Z)({},"".concat(kn,"-selected"),!Ze&&wt(zt,an,ue,si)),vi)};return Lt.createElement(yi,(0,yt.Z)({},Ct,{mode:"week",panelName:"week",rowClassName:Un}))}function Ki(Ct){var Qt=Ct.prefixCls,zt=Ct.locale,de=Ct.generateConfig,ue=Ct.pickerValue,Ge=Ct.disabledDate,Ze=Ct.onPickerValueChange,an=Ct.onModeChange,kn="".concat(Qt,"-year-panel"),Un=Yn(Ct,"year"),yn=(0,we.Z)(Un,1),si=yn[0],vi=function(or){var Ir=Math.floor(de.getYear(or)/10)*10;return de.setYear(or,Ir)},le=function(or){var Ir=vi(or);return de.addYear(Ir,9)},ei=vi(ue),ni=le(ue),Wn=de.addYear(ei,-1),Vn=function(or,Ir){return de.addYear(or,Ir)},Ni=function(or){return nn(or,{locale:zt,format:zt.cellYearFormat,generateConfig:de})},Di=function(or){return(0,ze.Z)({},"".concat(Qt,"-cell-in-view"),Re(de,or,ei)||Re(de,or,ni)||Vt(de,ei,ni,or))},Mi=Ge?function(Ri,or){var Ir=de.setMonth(Ri,0),jr=de.setDate(Ir,1),Hr=de.addYear(jr,1),Bi=de.addDate(Hr,-1);return Ge(jr,or)&&Ge(Bi,or)}:null,Ti=Lt.createElement("button",{type:"button",key:"decade","aria-label":zt.decadeSelect,onClick:function(){an("decade")},tabIndex:-1,className:"".concat(Qt,"-decade-btn")},nn(ei,{locale:zt,format:zt.yearFormat,generateConfig:de}),"-",nn(ni,{locale:zt,format:zt.yearFormat,generateConfig:de}));return Lt.createElement(Kn.Provider,{value:si},Lt.createElement("div",{className:kn},Lt.createElement(xi,{superOffset:function(or){return de.addYear(ue,or*10)},onChange:Ze,getStart:vi,getEnd:le},Ti),Lt.createElement(Ne,(0,yt.Z)({},Ct,{disabledDate:Mi,titleFormat:zt.fieldYearFormat,colNum:3,rowNum:4,baseDate:Wn,getCellDate:Vn,getCellText:Ni,getCellClassName:Di}))))}var oi={date:yi,datetime:Fn,week:Ii,month:zn,quarter:Ai,year:Ki,decade:Be,time:Jn};function gi(Ct,Qt){var zt,de=Ct.locale,ue=Ct.generateConfig,Ge=Ct.direction,Ze=Ct.prefixCls,an=Ct.tabIndex,kn=an===void 0?0:an,Un=Ct.multiple,yn=Ct.defaultValue,si=Ct.value,vi=Ct.onChange,le=Ct.onSelect,ei=Ct.defaultPickerValue,ni=Ct.pickerValue,Wn=Ct.onPickerValueChange,Vn=Ct.mode,Ni=Ct.onPanelChange,Di=Ct.picker,Mi=Di===void 0?"date":Di,Ti=Ct.showTime,Ri=Ct.hoverValue,or=Ct.hoverRangeValue,Ir=Ct.cellRender,jr=Ct.dateRender,Hr=Ct.monthCellRender,Bi=Ct.components,Ar=Bi===void 0?{}:Bi,wr=Ct.hideHeader,Nr=((zt=Lt.useContext(dt))===null||zt===void 0?void 0:zt.prefixCls)||Ze||"rc-picker",mr=Lt.useRef();Lt.useImperativeHandle(Qt,function(){return{nativeElement:mr.current}});var Rr=_n(Ct),ri=(0,we.Z)(Rr,4),Vi=ri[0],Ji=ri[1],lr=ri[2],qi=ri[3],nr=He(de,Ji),ki=Mi==="date"&&Ti?"datetime":Mi,Br=Lt.useMemo(function(){return In(ki,lr,qi,Vi,nr)},[ki,lr,qi,Vi,nr]),Kr=ue.getNow(),Qr=(0,Ee.C8)(Mi,{value:Vn,postState:function(ur){return ur||"date"}}),Pr=(0,we.Z)(Qr,2),to=Pr[0],Ur=Pr[1],Xr=to==="date"&&Br?"datetime":to,fo=ci(ue,de,ki),mo=(0,Ee.C8)(yn,{value:si}),Bo=(0,we.Z)(mo,2),ao=Bo[0],ia=Bo[1],po=Lt.useMemo(function(){var vr=Mt(ao).filter(function(ur){return ur});return Un?vr:vr.slice(0,1)},[ao,Un]),Jo=(0,Ee.zX)(function(vr){ia(vr),vi&&(vr===null||po.length!==vr.length||po.some(function(ur,Lr){return!Nt(ue,de,ur,vr[Lr],ki)}))&&(vi==null||vi(Un?vr:vr[0]))}),Po=(0,Ee.zX)(function(vr){if(le==null||le(vr),to===Mi){var ur=Un?fo(po,vr):[vr];Jo(ur)}}),Vo=(0,Ee.C8)(ei||po[0]||Kr,{value:ni}),Go=(0,we.Z)(Vo,2),Yo=Go[0],Ro=Go[1];Lt.useEffect(function(){po[0]&&!ni&&Ro(po[0])},[po[0]]);var Lo=function(ur,Lr){Ni==null||Ni(ur||ni,Lr||to)},oa=function(ur){var Lr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Ro(ur),Wn==null||Wn(ur),Lr&&Lo(ur)},wa=function(ur,Lr){Ur(ur),Lr&&oa(Lr),Lo(Lr,ur)},zo=function(ur){if(Po(ur),oa(ur),to!==Mi){var Lr=["decade","year"],pr=[].concat(Lr,["month"]),wi={quarter:[].concat(Lr,["quarter"]),week:[].concat((0,ee.Z)(pr),["week"]),date:[].concat((0,ee.Z)(pr),["date"])},Do=wi[Mi]||pr,pe=Do.indexOf(to),Rn=Do[pe+1];Rn&&wa(Rn,ur)}},Oa=Lt.useMemo(function(){var vr,ur;if(Array.isArray(or)){var Lr=(0,we.Z)(or,2);vr=Lr[0],ur=Lr[1]}else vr=or;return!vr&&!ur?null:(vr=vr||ur,ur=ur||vr,ue.isAfter(vr,ur)?[ur,vr]:[vr,ur])},[or,ue]),bo=ge(Ir,jr,Hr),yo=Ar[Xr]||oi[Xr]||yi,vo=Lt.useContext(Fe),Qo=Lt.useMemo(function(){return(0,ie.Z)((0,ie.Z)({},vo),{},{hideHeader:wr})},[vo,wr]),ro="".concat(Nr,"-panel"),ea=Zt(Ct,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return Lt.createElement(Fe.Provider,{value:Qo},Lt.createElement("div",{ref:mr,tabIndex:kn,className:Bt()(ro,(0,ze.Z)({},"".concat(ro,"-rtl"),Ge==="rtl"))},Lt.createElement(yo,(0,yt.Z)({},ea,{showTime:Br,prefixCls:Nr,locale:nr,generateConfig:ue,onModeChange:wa,pickerValue:Yo,onPickerValueChange:function(ur){oa(ur,!0)},value:po[0],onSelect:zo,values:po,cellRender:bo,hoverRangeValue:Oa,hoverValue:Ri}))))}var Si=Lt.memo(Lt.forwardRef(gi)),Ui=Si;function ji(Ct){var Qt=Ct.picker,zt=Ct.multiplePanel,de=Ct.pickerValue,ue=Ct.onPickerValueChange,Ge=Ct.needConfirm,Ze=Ct.onSubmit,an=Ct.range,kn=Ct.hoverValue,Un=Lt.useContext(dt),yn=Un.prefixCls,si=Un.generateConfig,vi=Lt.useCallback(function(Ni,Di){return li(si,Qt,Ni,Di)},[si,Qt]),le=Lt.useMemo(function(){return vi(de,1)},[de,vi]),ei=function(Di){ue(vi(Di,-1))},ni={onCellDblClick:function(){Ge&&Ze()}},Wn=Qt==="time",Vn=(0,ie.Z)((0,ie.Z)({},Ct),{},{hoverValue:null,hoverRangeValue:null,hideHeader:Wn});return an?Vn.hoverRangeValue=kn:Vn.hoverValue=kn,zt?Lt.createElement("div",{className:"".concat(yn,"-panels")},Lt.createElement(Fe.Provider,{value:(0,ie.Z)((0,ie.Z)({},ni),{},{hideNext:!0})},Lt.createElement(Ui,Vn)),Lt.createElement(Fe.Provider,{value:(0,ie.Z)((0,ie.Z)({},ni),{},{hidePrev:!0})},Lt.createElement(Ui,(0,yt.Z)({},Vn,{pickerValue:le,onPickerValueChange:ei})))):Lt.createElement(Fe.Provider,{value:(0,ie.Z)({},ni)},Lt.createElement(Ui,Vn))}function Mn(Ct){return typeof Ct=="function"?Ct():Ct}function Ei(Ct){var Qt=Ct.prefixCls,zt=Ct.presets,de=Ct.onClick,ue=Ct.onHover;return zt.length?Lt.createElement("div",{className:"".concat(Qt,"-presets")},Lt.createElement("ul",null,zt.map(function(Ge,Ze){var an=Ge.label,kn=Ge.value;return Lt.createElement("li",{key:Ze,onClick:function(){de(Mn(kn))},onMouseEnter:function(){ue(Mn(kn))},onMouseLeave:function(){ue(null)}},an)}))):null}function xr(Ct){var Qt=Ct.panelRender,zt=Ct.internalMode,de=Ct.picker,ue=Ct.showNow,Ge=Ct.range,Ze=Ct.multiple,an=Ct.activeInfo,kn=an===void 0?[0,0,0]:an,Un=Ct.presets,yn=Ct.onPresetHover,si=Ct.onPresetSubmit,vi=Ct.onFocus,le=Ct.onBlur,ei=Ct.onPanelMouseDown,ni=Ct.direction,Wn=Ct.value,Vn=Ct.onSelect,Ni=Ct.isInvalid,Di=Ct.defaultOpenValue,Mi=Ct.onOk,Ti=Ct.onSubmit,Ri=Lt.useContext(dt),or=Ri.prefixCls,Ir="".concat(or,"-panel"),jr=ni==="rtl",Hr=Lt.useRef(null),Bi=Lt.useRef(null),Ar=Lt.useState(0),wr=(0,we.Z)(Ar,2),Nr=wr[0],mr=wr[1],Rr=Lt.useState(0),ri=(0,we.Z)(Rr,2),Vi=ri[0],Ji=ri[1],lr=Lt.useState(0),qi=(0,we.Z)(lr,2),nr=qi[0],ki=qi[1],Br=function(zo){zo.width&&mr(zo.width)},Kr=(0,we.Z)(kn,3),Qr=Kr[0],Pr=Kr[1],to=Kr[2],Ur=Lt.useState(0),Xr=(0,we.Z)(Ur,2),fo=Xr[0],mo=Xr[1];Lt.useEffect(function(){mo(10)},[Qr]),Lt.useEffect(function(){if(Ge&&Bi.current){var wa,zo=((wa=Hr.current)===null||wa===void 0?void 0:wa.offsetWidth)||0,Oa=Bi.current.getBoundingClientRect();if(!Oa.height||Oa.right<0){mo(function(Qo){return Math.max(0,Qo-1)});return}var bo=(jr?Pr-zo:Qr)-Oa.left;if(ki(bo),Nr&&Nr<to){var yo=jr?Oa.right-(Pr-zo+Nr):Qr+zo-Oa.left-Nr,vo=Math.max(0,yo);Ji(vo)}else Ji(0)}},[fo,jr,Nr,Qr,Pr,to,Ge]);function Bo(wa){return wa.filter(function(zo){return zo})}var ao=Lt.useMemo(function(){return Bo(Mt(Wn))},[Wn]),ia=de==="time"&&!ao.length,po=Lt.useMemo(function(){return ia?Bo([Di]):ao},[ia,ao,Di]),Jo=ia?Di:ao,Po=Lt.useMemo(function(){return po.length?po.some(function(wa){return Ni(wa)}):!0},[po,Ni]),Vo=function(){ia&&Vn(Di),Mi(),Ti()},Go=Lt.createElement("div",{className:"".concat(or,"-panel-layout")},Lt.createElement(Ei,{prefixCls:or,presets:Un,onClick:si,onHover:yn}),Lt.createElement("div",null,Lt.createElement(ji,(0,yt.Z)({},Ct,{value:Jo})),Lt.createElement(fi,(0,yt.Z)({},Ct,{showNow:Ze?!1:ue,invalid:Po,onSubmit:Vo}))));Qt&&(Go=Qt(Go));var Yo="".concat(Ir,"-container"),Ro="marginLeft",Lo="marginRight",oa=Lt.createElement("div",{onMouseDown:ei,tabIndex:-1,className:Bt()(Yo,"".concat(or,"-").concat(zt,"-panel-container")),style:(0,ze.Z)((0,ze.Z)({},jr?Lo:Ro,Vi),jr?Ro:Lo,"auto"),onFocus:vi,onBlur:le},Go);return Ge&&(oa=Lt.createElement("div",{onMouseDown:ei,ref:Bi,className:Bt()("".concat(or,"-range-wrapper"),"".concat(or,"-").concat(de,"-range-wrapper"))},Lt.createElement("div",{ref:Hr,className:"".concat(or,"-range-arrow"),style:{left:nr}}),Lt.createElement(zi.Z,{onResize:Br},oa))),oa}var Tr=Dt(33346);function _r(Ct,Qt){var zt=Ct.format,de=Ct.maskFormat,ue=Ct.generateConfig,Ge=Ct.locale,Ze=Ct.preserveInvalidOnBlur,an=Ct.inputReadOnly,kn=Ct.required,Un=Ct["aria-required"],yn=Ct.onSubmit,si=Ct.onFocus,vi=Ct.onBlur,le=Ct.onInputChange,ei=Ct.onInvalid,ni=Ct.open,Wn=Ct.onOpenChange,Vn=Ct.onKeyDown,Ni=Ct.onChange,Di=Ct.activeHelp,Mi=Ct.name,Ti=Ct.autoComplete,Ri=Ct.id,or=Ct.value,Ir=Ct.invalid,jr=Ct.placeholder,Hr=Ct.disabled,Bi=Ct.activeIndex,Ar=Ct.allHelp,wr=Ct.picker,Nr=function(nr,ki){var Br=ue.locale.parse(Ge.locale,nr,[ki]);return Br&&ue.isValidate(Br)?Br:null},mr=zt[0],Rr=Lt.useCallback(function(qi){return nn(qi,{locale:Ge,format:mr,generateConfig:ue})},[Ge,ue,mr]),ri=Lt.useMemo(function(){return or.map(Rr)},[or,Rr]),Vi=Lt.useMemo(function(){var qi=wr==="time"?8:10,nr=typeof mr=="function"?mr(ue.getNow()).length:mr.length;return Math.max(qi,nr)+2},[mr,wr,ue]),Ji=function(nr){for(var ki=0;ki<zt.length;ki+=1){var Br=zt[ki];if(typeof Br=="string"){var Kr=Nr(nr,Br);if(Kr)return Kr}}return!1},lr=function(nr){function ki(Qr){return nr!==void 0?Qr[nr]:Qr}var Br=(0,Ve.Z)(Ct,{aria:!0,data:!0}),Kr=(0,ie.Z)((0,ie.Z)({},Br),{},{format:de,validateFormat:function(Pr){return!!Ji(Pr)},preserveInvalidOnBlur:Ze,readOnly:an,required:kn,"aria-required":Un,name:Mi,autoComplete:Ti,size:Vi,id:ki(Ri),value:ki(ri)||"",invalid:ki(Ir),placeholder:ki(jr),active:Bi===nr,helped:Ar||Di&&Bi===nr,disabled:ki(Hr),onFocus:function(Pr){si(Pr,nr)},onBlur:function(Pr){vi(Pr,nr)},onSubmit:yn,onChange:function(Pr){le();var to=Ji(Pr);if(to){ei(!1,nr),Ni(to,nr);return}ei(!!Pr,nr)},onHelp:function(){Wn(!0,{index:nr})},onKeyDown:function(Pr){var to=!1;if(Vn==null||Vn(Pr,function(){to=!0}),!Pr.defaultPrevented&&!to)switch(Pr.key){case"Escape":Wn(!1,{index:nr});break;case"Enter":ni||Wn(!0);break}}},Qt==null?void 0:Qt({valueTexts:ri}));return Object.keys(Kr).forEach(function(Qr){Kr[Qr]===void 0&&delete Kr[Qr]}),Kr};return[lr,Rr]}var We=["onMouseEnter","onMouseLeave"];function ar(Ct){return Lt.useMemo(function(){return Zt(Ct,We)},[Ct])}var br=["icon","type"],Gi=["onClear"];function Gr(Ct){var Qt=Ct.icon,zt=Ct.type,de=(0,Tr.Z)(Ct,br),ue=Lt.useContext(dt),Ge=ue.prefixCls;return Qt?Lt.createElement("span",(0,yt.Z)({className:"".concat(Ge,"-").concat(zt)},de),Qt):null}function Or(Ct){var Qt=Ct.onClear,zt=(0,Tr.Z)(Ct,Gi);return Lt.createElement(Gr,(0,yt.Z)({},zt,{type:"clear",role:"button",onMouseDown:function(ue){ue.preventDefault()},onClick:function(ue){ue.stopPropagation(),Qt()}}))}var Wr=Dt(42573),Zi=Dt(58698),ir=["YYYY","MM","DD","HH","mm","ss","SSS"],Qi="\u9867",pn=function(){function Ct(Qt){(0,Wr.Z)(this,Ct),(0,ze.Z)(this,"format",void 0),(0,ze.Z)(this,"maskFormat",void 0),(0,ze.Z)(this,"cells",void 0),(0,ze.Z)(this,"maskCells",void 0),this.format=Qt;var zt=ir.map(function(an){return"(".concat(an,")")}).join("|"),de=new RegExp(zt,"g");this.maskFormat=Qt.replace(de,function(an){return Qi.repeat(an.length)});var ue=new RegExp("(".concat(ir.join("|"),")")),Ge=(Qt.split(ue)||[]).filter(function(an){return an}),Ze=0;this.cells=Ge.map(function(an){var kn=ir.includes(an),Un=Ze,yn=Ze+an.length;return Ze=yn,{text:an,mask:kn,start:Un,end:yn}}),this.maskCells=this.cells.filter(function(an){return an.mask})}return(0,Zi.Z)(Ct,[{key:"getSelection",value:function(zt){var de=this.maskCells[zt]||{},ue=de.start,Ge=de.end;return[ue||0,Ge||0]}},{key:"match",value:function(zt){for(var de=0;de<this.maskFormat.length;de+=1){var ue=this.maskFormat[de],Ge=zt[de];if(!Ge||ue!==Qi&&ue!==Ge)return!1}return!0}},{key:"size",value:function(){return this.maskCells.length}},{key:"getMaskCellIndex",value:function(zt){for(var de=Number.MAX_SAFE_INTEGER,ue=0,Ge=0;Ge<this.maskCells.length;Ge+=1){var Ze=this.maskCells[Ge],an=Ze.start,kn=Ze.end;if(zt>=an&&zt<=kn)return Ge;var Un=Math.min(Math.abs(zt-an),Math.abs(zt-kn));Un<de&&(de=Un,ue=Ge)}return ue}}]),Ct}();function dr(Ct){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[Ct]}var xn=["active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"],bi=Lt.forwardRef(function(Ct,Qt){var zt=Ct.active,de=Ct.showActiveCls,ue=de===void 0?!0:de,Ge=Ct.suffixIcon,Ze=Ct.format,an=Ct.validateFormat,kn=Ct.onChange,Un=Ct.onInput,yn=Ct.helped,si=Ct.onHelp,vi=Ct.onSubmit,le=Ct.onKeyDown,ei=Ct.preserveInvalidOnBlur,ni=ei===void 0?!1:ei,Wn=Ct.invalid,Vn=Ct.clearIcon,Ni=(0,Tr.Z)(Ct,xn),Di=Ct.value,Mi=Ct.onFocus,Ti=Ct.onBlur,Ri=Ct.onMouseUp,or=Lt.useContext(dt),Ir=or.prefixCls,jr=or.input,Hr=jr===void 0?"input":jr,Bi="".concat(Ir,"-input"),Ar=Lt.useState(!1),wr=(0,we.Z)(Ar,2),Nr=wr[0],mr=wr[1],Rr=Lt.useState(Di),ri=(0,we.Z)(Rr,2),Vi=ri[0],Ji=ri[1],lr=Lt.useState(""),qi=(0,we.Z)(lr,2),nr=qi[0],ki=qi[1],Br=Lt.useState(null),Kr=(0,we.Z)(Br,2),Qr=Kr[0],Pr=Kr[1],to=Lt.useState(null),Ur=(0,we.Z)(to,2),Xr=Ur[0],fo=Ur[1],mo=Vi||"";Lt.useEffect(function(){Ji(Di)},[Di]);var Bo=Lt.useRef(),ao=Lt.useRef();Lt.useImperativeHandle(Qt,function(){return{nativeElement:Bo.current,inputElement:ao.current,focus:function(ur){ao.current.focus(ur)},blur:function(){ao.current.blur()}}});var ia=Lt.useMemo(function(){return new pn(Ze||"")},[Ze]),po=Lt.useMemo(function(){return yn?[0,0]:ia.getSelection(Qr)},[ia,Qr,yn]),Jo=(0,we.Z)(po,2),Po=Jo[0],Vo=Jo[1],Go=function(ur){ur&&ur!==Ze&&ur!==Di&&si()},Yo=(0,Ee.zX)(function(vr){an(vr)&&kn(vr),Ji(vr),Go(vr)}),Ro=function(ur){if(!Ze){var Lr=ur.target.value;Go(Lr),Ji(Lr),kn(Lr)}},Lo=function(ur){var Lr=ur.clipboardData.getData("text");an(Lr)&&Yo(Lr)},oa=Lt.useRef(!1),wa=function(){oa.current=!0},zo=function(ur){var Lr=ur.target,pr=Lr.selectionStart,wi=ia.getMaskCellIndex(pr);Pr(wi),fo({}),Ri==null||Ri(ur),oa.current=!1},Oa=function(ur){mr(!0),Pr(0),ki(""),Mi(ur)},bo=function(ur){Ti(ur)},yo=function(ur){mr(!1),bo(ur)};cn(zt,function(){!zt&&!ni&&Ji(Di)});var vo=function(ur){ur.key==="Enter"&&an(mo)&&vi(),le==null||le(ur)},Qo=function(ur){vo(ur);var Lr=ur.key,pr=null,wi=null,Do=Vo-Po,pe=Ze.slice(Po,Vo),Rn=function(sa){Pr(function(ya){var Pa=ya+sa;return Pa=Math.max(Pa,0),Pa=Math.min(Pa,ia.size()-1),Pa})},ha=function(sa){var ya=dr(pe),Pa=(0,we.Z)(ya,3),hs=Pa[0],da=Pa[1],qr=Pa[2],Ya=mo.slice(Po,Vo),es=Number(Ya);if(isNaN(es))return String(qr||(sa>0?hs:da));var ca=es+sa,So=da-hs+1;return String(hs+(So+ca-hs)%So)};switch(Lr){case"Backspace":case"Delete":pr="",wi=pe;break;case"ArrowLeft":pr="",Rn(-1);break;case"ArrowRight":pr="",Rn(1);break;case"ArrowUp":pr="",wi=ha(1);break;case"ArrowDown":pr="",wi=ha(-1);break;default:isNaN(Number(Lr))||(pr=nr+Lr,wi=pr);break}if(pr!==null&&(ki(pr),pr.length>=Do&&(Rn(1),ki(""))),wi!==null){var ga=mo.slice(0,Po)+St(wi,Do)+mo.slice(Vo);Yo(ga.slice(0,Ze.length))}fo({})},ro=Lt.useRef();(0,jt.Z)(function(){if(!(!Nr||!Ze||oa.current)){if(!ia.match(mo)){Yo(Ze);return}return ao.current.setSelectionRange(Po,Vo),ro.current=(0,ai.Z)(function(){ao.current.setSelectionRange(Po,Vo)}),function(){ai.Z.cancel(ro.current)}}},[ia,Ze,Nr,mo,Qr,Po,Vo,Xr,Yo]);var ea=Ze?{onFocus:Oa,onBlur:yo,onKeyDown:Qo,onMouseDown:wa,onMouseUp:zo,onPaste:Lo}:{};return Lt.createElement("div",{ref:Bo,className:Bt()(Bi,(0,ze.Z)((0,ze.Z)({},"".concat(Bi,"-active"),zt&&ue),"".concat(Bi,"-placeholder"),yn))},Lt.createElement(Hr,(0,yt.Z)({ref:ao,"aria-invalid":Wn,autoComplete:"off"},Ni,{onKeyDown:vo,onBlur:bo},ea,{value:mo,onChange:Ro})),Lt.createElement(Gr,{type:"suffix",icon:Ge}),Vn)}),Sr=bi,Er=["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"],io=["index"];function Yr(Ct,Qt){var zt=Ct.id,de=Ct.prefix,ue=Ct.clearIcon,Ge=Ct.suffixIcon,Ze=Ct.separator,an=Ze===void 0?"~":Ze,kn=Ct.activeIndex,Un=Ct.activeHelp,yn=Ct.allHelp,si=Ct.focused,vi=Ct.onFocus,le=Ct.onBlur,ei=Ct.onKeyDown,ni=Ct.locale,Wn=Ct.generateConfig,Vn=Ct.placeholder,Ni=Ct.className,Di=Ct.style,Mi=Ct.onClick,Ti=Ct.onClear,Ri=Ct.value,or=Ct.onChange,Ir=Ct.onSubmit,jr=Ct.onInputChange,Hr=Ct.format,Bi=Ct.maskFormat,Ar=Ct.preserveInvalidOnBlur,wr=Ct.onInvalid,Nr=Ct.disabled,mr=Ct.invalid,Rr=Ct.inputReadOnly,ri=Ct.direction,Vi=Ct.onOpenChange,Ji=Ct.onActiveInfo,lr=Ct.placement,qi=Ct.onMouseDown,nr=Ct.required,ki=Ct["aria-required"],Br=Ct.autoFocus,Kr=Ct.tabIndex,Qr=(0,Tr.Z)(Ct,Er),Pr=ri==="rtl",to=Lt.useContext(dt),Ur=to.prefixCls,Xr=Lt.useMemo(function(){if(typeof zt=="string")return[zt];var bo=zt||{};return[bo.start,bo.end]},[zt]),fo=Lt.useRef(),mo=Lt.useRef(),Bo=Lt.useRef(),ao=function(yo){var vo;return(vo=[mo,Bo][yo])===null||vo===void 0?void 0:vo.current};Lt.useImperativeHandle(Qt,function(){return{nativeElement:fo.current,focus:function(yo){if((0,wn.Z)(yo)==="object"){var vo,Qo=yo||{},ro=Qo.index,ea=ro===void 0?0:ro,vr=(0,Tr.Z)(Qo,io);(vo=ao(ea))===null||vo===void 0||vo.focus(vr)}else{var ur;(ur=ao(yo!=null?yo:0))===null||ur===void 0||ur.focus()}},blur:function(){var yo,vo;(yo=ao(0))===null||yo===void 0||yo.blur(),(vo=ao(1))===null||vo===void 0||vo.blur()}}});var ia=ar(Qr),po=Lt.useMemo(function(){return Array.isArray(Vn)?Vn:[Vn,Vn]},[Vn]),Jo=_r((0,ie.Z)((0,ie.Z)({},Ct),{},{id:Xr,placeholder:po})),Po=(0,we.Z)(Jo,1),Vo=Po[0],Go=Lt.useState({position:"absolute",width:0}),Yo=(0,we.Z)(Go,2),Ro=Yo[0],Lo=Yo[1],oa=(0,Ee.zX)(function(){var bo=ao(kn);if(bo){var yo=bo.nativeElement.getBoundingClientRect(),vo=fo.current.getBoundingClientRect(),Qo=yo.left-vo.left;Lo(function(ro){return(0,ie.Z)((0,ie.Z)({},ro),{},{width:yo.width,left:Qo})}),Ji([yo.left,yo.right,vo.width])}});Lt.useEffect(function(){oa()},[kn]);var wa=ue&&(Ri[0]&&!Nr[0]||Ri[1]&&!Nr[1]),zo=Br&&!Nr[0],Oa=Br&&!zo&&!Nr[1];return Lt.createElement(zi.Z,{onResize:oa},Lt.createElement("div",(0,yt.Z)({},ia,{className:Bt()(Ur,"".concat(Ur,"-range"),(0,ze.Z)((0,ze.Z)((0,ze.Z)((0,ze.Z)({},"".concat(Ur,"-focused"),si),"".concat(Ur,"-disabled"),Nr.every(function(bo){return bo})),"".concat(Ur,"-invalid"),mr.some(function(bo){return bo})),"".concat(Ur,"-rtl"),Pr),Ni),style:Di,ref:fo,onClick:Mi,onMouseDown:function(yo){var vo=yo.target;vo!==mo.current.inputElement&&vo!==Bo.current.inputElement&&yo.preventDefault(),qi==null||qi(yo)}}),de&&Lt.createElement("div",{className:"".concat(Ur,"-prefix")},de),Lt.createElement(Sr,(0,yt.Z)({ref:mo},Vo(0),{autoFocus:zo,tabIndex:Kr,"date-range":"start"})),Lt.createElement("div",{className:"".concat(Ur,"-range-separator")},an),Lt.createElement(Sr,(0,yt.Z)({ref:Bo},Vo(1),{autoFocus:Oa,tabIndex:Kr,"date-range":"end"})),Lt.createElement("div",{className:"".concat(Ur,"-active-bar"),style:Ro}),Lt.createElement(Gr,{type:"suffix",icon:Ge}),wa&&Lt.createElement(Or,{icon:ue,onClear:Ti})))}var Mr=Lt.forwardRef(Yr),uo=Mr;function tn(Ct,Qt){var zt=Ct!=null?Ct:Qt;return Array.isArray(zt)?zt:[zt,zt]}function Hn(Ct){return Ct===1?"end":"start"}function _e(Ct,Qt){var zt=Nn(Ct,function(){var so=Ct.disabled,co=Ct.allowEmpty,Mo=tn(so,!1),ra=tn(co,!1);return{disabled:Mo,allowEmpty:ra}}),de=(0,we.Z)(zt,6),ue=de[0],Ge=de[1],Ze=de[2],an=de[3],kn=de[4],Un=de[5],yn=ue.prefixCls,si=ue.styles,vi=ue.classNames,le=ue.defaultValue,ei=ue.value,ni=ue.needConfirm,Wn=ue.onKeyDown,Vn=ue.disabled,Ni=ue.allowEmpty,Di=ue.disabledDate,Mi=ue.minDate,Ti=ue.maxDate,Ri=ue.defaultOpen,or=ue.open,Ir=ue.onOpenChange,jr=ue.locale,Hr=ue.generateConfig,Bi=ue.picker,Ar=ue.showNow,wr=ue.showToday,Nr=ue.showTime,mr=ue.mode,Rr=ue.onPanelChange,ri=ue.onCalendarChange,Vi=ue.onOk,Ji=ue.defaultPickerValue,lr=ue.pickerValue,qi=ue.onPickerValueChange,nr=ue.inputReadOnly,ki=ue.suffixIcon,Br=ue.onFocus,Kr=ue.onBlur,Qr=ue.presets,Pr=ue.ranges,to=ue.components,Ur=ue.cellRender,Xr=ue.dateRender,fo=ue.monthCellRender,mo=ue.onClick,Bo=Ie(Qt),ao=bn(or,Ri,Vn,Ir),ia=(0,we.Z)(ao,2),po=ia[0],Jo=ia[1],Po=function(co,Mo){(Vn.some(function(ra){return!ra})||!co)&&Jo(co,Mo)},Vo=yr(Hr,jr,an,!0,!1,le,ei,ri,Vi),Go=(0,we.Z)(Vo,5),Yo=Go[0],Ro=Go[1],Lo=Go[2],oa=Go[3],wa=Go[4],zo=Lo(),Oa=Ln(Vn,Ni,po),bo=(0,we.Z)(Oa,9),yo=bo[0],vo=bo[1],Qo=bo[2],ro=bo[3],ea=bo[4],vr=bo[5],ur=bo[6],Lr=bo[7],pr=bo[8],wi=function(co,Mo){vo(!0),Br==null||Br(co,{range:Hn(Mo!=null?Mo:ro)})},Do=function(co,Mo){vo(!1),Kr==null||Kr(co,{range:Hn(Mo!=null?Mo:ro)})},pe=Lt.useMemo(function(){if(!Nr)return null;var so=Nr.disabledTime,co=so?function(Mo){var ra=Hn(ro),rs=Gt(zo,ur,ro);return so(Mo,ra,{from:rs})}:void 0;return(0,ie.Z)((0,ie.Z)({},Nr),{},{disabledTime:co})},[Nr,ro,zo,ur]),Rn=(0,Ee.C8)([Bi,Bi],{value:mr}),ha=(0,we.Z)(Rn,2),ga=ha[0],aa=ha[1],sa=ga[ro]||Bi,ya=sa==="date"&&pe?"datetime":sa,Pa=ya===Bi&&ya!=="time",hs=hr(Bi,sa,Ar,wr,!0),da=sr(ue,Yo,Ro,Lo,oa,Vn,an,yo,po,Un),qr=(0,we.Z)(da,2),Ya=qr[0],es=qr[1],ca=Xn(zo,Vn,ur,Hr,jr,Di),So=me(zo,Un,Ni),Sa=(0,we.Z)(So,2),ds=Sa[0],ua=Sa[1],cs=gn(Hr,jr,zo,ga,po,ro,Ge,Pa,Ji,lr,pe==null?void 0:pe.defaultOpenValue,qi,Mi,Ti),za=(0,we.Z)(cs,2),Dl=za[0],Ho=za[1],Fa=(0,Ee.zX)(function(so,co,Mo){var ra=It(ga,ro,co);if((ra[0]!==ga[0]||ra[1]!==ga[1])&&aa(ra),Rr&&Mo!==!1){var rs=(0,ee.Z)(zo);so&&(rs[ro]=so),Rr(rs,ra)}}),To=function(co,Mo){return It(zo,Mo,co)},$o=function(co,Mo){var ra=zo;co&&(ra=To(co,ro)),Lr(ro);var rs=vr(ra);oa(ra),Ya(ro,rs===null),rs===null?Po(!1,{force:!0}):Mo||Bo.current.focus({index:rs})},pa=function(co){var Mo,ra=co.target.getRootNode();if(!Bo.current.nativeElement.contains((Mo=ra.activeElement)!==null&&Mo!==void 0?Mo:document.activeElement)){var rs=Vn.findIndex(function(fs){return!fs});rs>=0&&Bo.current.focus({index:rs})}Po(!0),mo==null||mo(co)},xa=function(){es(null),Po(!1,{force:!0})},qo=Lt.useState(null),pl=(0,we.Z)(qo,2),eo=pl[0],vu=pl[1],Ao=Lt.useState(null),Kl=(0,we.Z)(Ao,2),qs=Kl[0],Nl=Kl[1],yu=Lt.useMemo(function(){return qs||zo},[zo,qs]);Lt.useEffect(function(){po||Nl(null)},[po]);var Su=Lt.useState([0,0,0]),Vs=(0,we.Z)(Su,2),Yl=Vs[0],Uo=Vs[1],Gs=Ue(Qr,Pr),xu=function(co){Nl(co),vu("preset")},ml=function(co){var Mo=es(co);Mo&&Po(!1,{force:!0})},Nu=function(co){$o(co)},vl=function(co){Nl(co?To(co,ro):null),vu("cell")},No=function(co){Po(!0),wi(co)},Ko=function(){Qo("panel")},ka=function(co){var Mo=It(zo,ro,co);oa(Mo),!ni&&!Ze&&Ge===ya&&$o(co)},ns=function(){Po(!1)},Qa=ge(Ur,Xr,fo,Hn(ro)),Bl=zo[ro]||null,yl=(0,Ee.zX)(function(so){return Un(so,{activeIndex:ro})}),Oo=Lt.useMemo(function(){var so=(0,Ve.Z)(ue,!1),co=(0,ce.Z)(ue,[].concat((0,ee.Z)(Object.keys(so)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return co},[ue]),xo=Lt.createElement(xr,(0,yt.Z)({},Oo,{showNow:hs,showTime:pe,range:!0,multiplePanel:Pa,activeInfo:Yl,disabledDate:ca,onFocus:No,onBlur:Do,onPanelMouseDown:Ko,picker:Bi,mode:sa,internalMode:ya,onPanelChange:Fa,format:kn,value:Bl,isInvalid:yl,onChange:null,onSelect:ka,pickerValue:Dl,defaultOpenValue:Mt(Nr==null?void 0:Nr.defaultOpenValue)[ro],onPickerValueChange:Ho,hoverValue:yu,onHover:vl,needConfirm:ni,onSubmit:$o,onOk:wa,presets:Gs,onPresetHover:xu,onPresetSubmit:ml,onNow:Nu,cellRender:Qa})),Ua=function(co,Mo){var ra=To(co,Mo);oa(ra)},ou=function(){Qo("input")},Dd=function(co,Mo){var ra=ur.length,rs=ur[ra-1];if(ra&&rs!==Mo&&ni&&!Ni[rs]&&!pr(rs)&&zo[rs]){Bo.current.focus({index:rs});return}Qo("input"),Po(!0,{inherit:!0}),ro!==Mo&&po&&!ni&&Ze&&$o(null,!0),ea(Mo),wi(co,Mo)},cg=function(co,Mo){if(Po(!1),!ni&&Qo()==="input"){var ra=vr(zo);Ya(ro,ra===null)}Do(co,Mo)},nf=function(co,Mo){co.key==="Tab"&&$o(null,!0),Wn==null||Wn(co,Mo)},Va=Lt.useMemo(function(){return{prefixCls:yn,locale:jr,generateConfig:Hr,button:to.button,input:to.input}},[yn,jr,Hr,to.button,to.input]);if((0,jt.Z)(function(){po&&ro!==void 0&&Fa(null,Bi,!1)},[po,ro,Bi]),(0,jt.Z)(function(){var so=Qo();!po&&so==="input"&&(Po(!1),$o(null,!0)),!po&&Ze&&!ni&&so==="panel"&&(Po(!0),$o())},[po]),0)var Qu;return Lt.createElement(dt.Provider,{value:Va},Lt.createElement(mt,(0,yt.Z)({},_t(ue),{popupElement:xo,popupStyle:si.popup,popupClassName:vi.popup,visible:po,onClose:ns,range:!0}),Lt.createElement(uo,(0,yt.Z)({},ue,{ref:Bo,suffixIcon:ki,activeIndex:yo||po?ro:null,activeHelp:!!qs,allHelp:!!qs&&eo==="preset",focused:yo,onFocus:Dd,onBlur:cg,onKeyDown:nf,onSubmit:$o,value:yu,maskFormat:kn,onChange:Ua,onInputChange:ou,format:an,inputReadOnly:nr,disabled:Vn,open:po,onOpenChange:Po,onClick:pa,onClear:xa,invalid:ds,onInvalid:ua,onActiveInfo:Uo}))))}var Tt=Lt.forwardRef(_e),Wt=Tt,qt=Dt(11780);function Se(Ct){var Qt=Ct.prefixCls,zt=Ct.value,de=Ct.onRemove,ue=Ct.removeIcon,Ge=ue===void 0?"\xD7":ue,Ze=Ct.formatDate,an=Ct.disabled,kn=Ct.maxTagCount,Un=Ct.placeholder,yn="".concat(Qt,"-selector"),si="".concat(Qt,"-selection"),vi="".concat(si,"-overflow");function le(Wn,Vn){return Lt.createElement("span",{className:Bt()("".concat(si,"-item")),title:typeof Wn=="string"?Wn:null},Lt.createElement("span",{className:"".concat(si,"-item-content")},Wn),!an&&Vn&&Lt.createElement("span",{onMouseDown:function(Di){Di.preventDefault()},onClick:Vn,className:"".concat(si,"-item-remove")},Ge))}function ei(Wn){var Vn=Ze(Wn),Ni=function(Mi){Mi&&Mi.stopPropagation(),de(Wn)};return le(Vn,Ni)}function ni(Wn){var Vn="+ ".concat(Wn.length," ...");return le(Vn)}return Lt.createElement("div",{className:yn},Lt.createElement(qt.Z,{prefixCls:vi,data:zt,renderItem:ei,renderRest:ni,itemKey:function(Vn){return Ze(Vn)},maxCount:kn}),!zt.length&&Lt.createElement("span",{className:"".concat(Qt,"-selection-placeholder")},Un))}var Te=["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 en(Ct,Qt){var zt=Ct.id,de=Ct.open,ue=Ct.prefix,Ge=Ct.clearIcon,Ze=Ct.suffixIcon,an=Ct.activeHelp,kn=Ct.allHelp,Un=Ct.focused,yn=Ct.onFocus,si=Ct.onBlur,vi=Ct.onKeyDown,le=Ct.locale,ei=Ct.generateConfig,ni=Ct.placeholder,Wn=Ct.className,Vn=Ct.style,Ni=Ct.onClick,Di=Ct.onClear,Mi=Ct.internalPicker,Ti=Ct.value,Ri=Ct.onChange,or=Ct.onSubmit,Ir=Ct.onInputChange,jr=Ct.multiple,Hr=Ct.maxTagCount,Bi=Ct.format,Ar=Ct.maskFormat,wr=Ct.preserveInvalidOnBlur,Nr=Ct.onInvalid,mr=Ct.disabled,Rr=Ct.invalid,ri=Ct.inputReadOnly,Vi=Ct.direction,Ji=Ct.onOpenChange,lr=Ct.onMouseDown,qi=Ct.required,nr=Ct["aria-required"],ki=Ct.autoFocus,Br=Ct.tabIndex,Kr=Ct.removeIcon,Qr=(0,Tr.Z)(Ct,Te),Pr=Vi==="rtl",to=Lt.useContext(dt),Ur=to.prefixCls,Xr=Lt.useRef(),fo=Lt.useRef();Lt.useImperativeHandle(Qt,function(){return{nativeElement:Xr.current,focus:function(Ro){var Lo;(Lo=fo.current)===null||Lo===void 0||Lo.focus(Ro)},blur:function(){var Ro;(Ro=fo.current)===null||Ro===void 0||Ro.blur()}}});var mo=ar(Qr),Bo=function(Ro){Ri([Ro])},ao=function(Ro){var Lo=Ti.filter(function(oa){return oa&&!Nt(ei,le,oa,Ro,Mi)});Ri(Lo),de||or()},ia=_r((0,ie.Z)((0,ie.Z)({},Ct),{},{onChange:Bo}),function(Yo){var Ro=Yo.valueTexts;return{value:Ro[0]||"",active:Un}}),po=(0,we.Z)(ia,2),Jo=po[0],Po=po[1],Vo=!!(Ge&&Ti.length&&!mr),Go=jr?Lt.createElement(Lt.Fragment,null,Lt.createElement(Se,{prefixCls:Ur,value:Ti,onRemove:ao,formatDate:Po,maxTagCount:Hr,disabled:mr,removeIcon:Kr,placeholder:ni}),Lt.createElement("input",{className:"".concat(Ur,"-multiple-input"),value:Ti.map(Po).join(","),ref:fo,readOnly:!0,autoFocus:ki,tabIndex:Br}),Lt.createElement(Gr,{type:"suffix",icon:Ze}),Vo&&Lt.createElement(Or,{icon:Ge,onClear:Di})):Lt.createElement(Sr,(0,yt.Z)({ref:fo},Jo(),{autoFocus:ki,tabIndex:Br,suffixIcon:Ze,clearIcon:Vo&&Lt.createElement(Or,{icon:Ge,onClear:Di}),showActiveCls:!1}));return Lt.createElement("div",(0,yt.Z)({},mo,{className:Bt()(Ur,(0,ze.Z)((0,ze.Z)((0,ze.Z)((0,ze.Z)((0,ze.Z)({},"".concat(Ur,"-multiple"),jr),"".concat(Ur,"-focused"),Un),"".concat(Ur,"-disabled"),mr),"".concat(Ur,"-invalid"),Rr),"".concat(Ur,"-rtl"),Pr),Wn),style:Vn,ref:Xr,onClick:Ni,onMouseDown:function(Ro){var Lo,oa=Ro.target;oa!==((Lo=fo.current)===null||Lo===void 0?void 0:Lo.inputElement)&&Ro.preventDefault(),lr==null||lr(Ro)}}),ue&&Lt.createElement("div",{className:"".concat(Ur,"-prefix")},ue),Go)}var ne=Lt.forwardRef(en),Me=ne;function Ke(Ct,Qt){var zt=Nn(Ct),de=(0,we.Z)(zt,6),ue=de[0],Ge=de[1],Ze=de[2],an=de[3],kn=de[4],Un=de[5],yn=ue,si=yn.prefixCls,vi=yn.styles,le=yn.classNames,ei=yn.order,ni=yn.defaultValue,Wn=yn.value,Vn=yn.needConfirm,Ni=yn.onChange,Di=yn.onKeyDown,Mi=yn.disabled,Ti=yn.disabledDate,Ri=yn.minDate,or=yn.maxDate,Ir=yn.defaultOpen,jr=yn.open,Hr=yn.onOpenChange,Bi=yn.locale,Ar=yn.generateConfig,wr=yn.picker,Nr=yn.showNow,mr=yn.showToday,Rr=yn.showTime,ri=yn.mode,Vi=yn.onPanelChange,Ji=yn.onCalendarChange,lr=yn.onOk,qi=yn.multiple,nr=yn.defaultPickerValue,ki=yn.pickerValue,Br=yn.onPickerValueChange,Kr=yn.inputReadOnly,Qr=yn.suffixIcon,Pr=yn.removeIcon,to=yn.onFocus,Ur=yn.onBlur,Xr=yn.presets,fo=yn.components,mo=yn.cellRender,Bo=yn.dateRender,ao=yn.monthCellRender,ia=yn.onClick,po=Ie(Qt);function Jo(Oo){return Oo===null?null:qi?Oo:Oo[0]}var Po=ci(Ar,Bi,Ge),Vo=bn(jr,Ir,[Mi],Hr),Go=(0,we.Z)(Vo,2),Yo=Go[0],Ro=Go[1],Lo=function(xo,Ua,ou){if(Ji){var Dd=(0,ie.Z)({},ou);delete Dd.range,Ji(Jo(xo),Jo(Ua),Dd)}},oa=function(xo){lr==null||lr(Jo(xo))},wa=yr(Ar,Bi,an,!1,ei,ni,Wn,Lo,oa),zo=(0,we.Z)(wa,5),Oa=zo[0],bo=zo[1],yo=zo[2],vo=zo[3],Qo=zo[4],ro=yo(),ea=Ln([Mi]),vr=(0,we.Z)(ea,4),ur=vr[0],Lr=vr[1],pr=vr[2],wi=vr[3],Do=function(xo){Lr(!0),to==null||to(xo,{})},pe=function(xo){Lr(!1),Ur==null||Ur(xo,{})},Rn=(0,Ee.C8)(wr,{value:ri}),ha=(0,we.Z)(Rn,2),ga=ha[0],aa=ha[1],sa=ga==="date"&&Rr?"datetime":ga,ya=hr(wr,ga,Nr,mr),Pa=Ni&&function(Oo,xo){Ni(Jo(Oo),Jo(xo))},hs=sr((0,ie.Z)((0,ie.Z)({},ue),{},{onChange:Pa}),Oa,bo,yo,vo,[],an,ur,Yo,Un),da=(0,we.Z)(hs,2),qr=da[1],Ya=me(ro,Un),es=(0,we.Z)(Ya,2),ca=es[0],So=es[1],Sa=Lt.useMemo(function(){return ca.some(function(Oo){return Oo})},[ca]),ds=function(xo,Ua){if(Br){var ou=(0,ie.Z)((0,ie.Z)({},Ua),{},{mode:Ua.mode[0]});delete ou.range,Br(xo[0],ou)}},ua=gn(Ar,Bi,ro,[ga],Yo,wi,Ge,!1,nr,ki,Mt(Rr==null?void 0:Rr.defaultOpenValue),ds,Ri,or),cs=(0,we.Z)(ua,2),za=cs[0],Dl=cs[1],Ho=(0,Ee.zX)(function(Oo,xo,Ua){if(aa(xo),Vi&&Ua!==!1){var ou=Oo||ro[ro.length-1];Vi(ou,xo)}}),Fa=function(){qr(yo()),Ro(!1,{force:!0})},To=function(xo){!Mi&&!po.current.nativeElement.contains(document.activeElement)&&po.current.focus(),Ro(!0),ia==null||ia(xo)},$o=function(){qr(null),Ro(!1,{force:!0})},pa=Lt.useState(null),xa=(0,we.Z)(pa,2),qo=xa[0],pl=xa[1],eo=Lt.useState(null),vu=(0,we.Z)(eo,2),Ao=vu[0],Kl=vu[1],qs=Lt.useMemo(function(){var Oo=[Ao].concat((0,ee.Z)(ro)).filter(function(xo){return xo});return qi?Oo:Oo.slice(0,1)},[ro,Ao,qi]),Nl=Lt.useMemo(function(){return!qi&&Ao?[Ao]:ro.filter(function(Oo){return Oo})},[ro,Ao,qi]);Lt.useEffect(function(){Yo||Kl(null)},[Yo]);var yu=Ue(Xr),Su=function(xo){Kl(xo),pl("preset")},Vs=function(xo){var Ua=qi?Po(yo(),xo):[xo],ou=qr(Ua);ou&&!qi&&Ro(!1,{force:!0})},Yl=function(xo){Vs(xo)},Uo=function(xo){Kl(xo),pl("cell")},Gs=function(xo){Ro(!0),Do(xo)},xu=function(xo){if(pr("panel"),!(qi&&sa!==wr)){var Ua=qi?Po(yo(),xo):[xo];vo(Ua),!Vn&&!Ze&&Ge===sa&&Fa()}},ml=function(){Ro(!1)},Nu=ge(mo,Bo,ao),vl=Lt.useMemo(function(){var Oo=(0,Ve.Z)(ue,!1),xo=(0,ce.Z)(ue,[].concat((0,ee.Z)(Object.keys(Oo)),["onChange","onCalendarChange","style","className","onPanelChange"]));return(0,ie.Z)((0,ie.Z)({},xo),{},{multiple:ue.multiple})},[ue]),No=Lt.createElement(xr,(0,yt.Z)({},vl,{showNow:ya,showTime:Rr,disabledDate:Ti,onFocus:Gs,onBlur:pe,picker:wr,mode:ga,internalMode:sa,onPanelChange:Ho,format:kn,value:ro,isInvalid:Un,onChange:null,onSelect:xu,pickerValue:za,defaultOpenValue:Rr==null?void 0:Rr.defaultOpenValue,onPickerValueChange:Dl,hoverValue:qs,onHover:Uo,needConfirm:Vn,onSubmit:Fa,onOk:Qo,presets:yu,onPresetHover:Su,onPresetSubmit:Vs,onNow:Yl,cellRender:Nu})),Ko=function(xo){vo(xo)},ka=function(){pr("input")},ns=function(xo){pr("input"),Ro(!0,{inherit:!0}),Do(xo)},Qa=function(xo){Ro(!1),pe(xo)},Bl=function(xo,Ua){xo.key==="Tab"&&Fa(),Di==null||Di(xo,Ua)},yl=Lt.useMemo(function(){return{prefixCls:si,locale:Bi,generateConfig:Ar,button:fo.button,input:fo.input}},[si,Bi,Ar,fo.button,fo.input]);return(0,jt.Z)(function(){Yo&&wi!==void 0&&Ho(null,wr,!1)},[Yo,wi,wr]),(0,jt.Z)(function(){var Oo=pr();!Yo&&Oo==="input"&&(Ro(!1),Fa()),!Yo&&Ze&&!Vn&&Oo==="panel"&&Fa()},[Yo]),Lt.createElement(dt.Provider,{value:yl},Lt.createElement(mt,(0,yt.Z)({},_t(ue),{popupElement:No,popupStyle:vi.popup,popupClassName:le.popup,visible:Yo,onClose:ml}),Lt.createElement(Me,(0,yt.Z)({},ue,{ref:po,suffixIcon:Qr,removeIcon:Pr,activeHelp:!!Ao,allHelp:!!Ao&&qo==="preset",focused:ur,onFocus:ns,onBlur:Qa,onKeyDown:Bl,onSubmit:Fa,value:Nl,maskFormat:kn,onChange:Ko,onInputChange:ka,internalPicker:Ge,format:an,inputReadOnly:Kr,disabled:Mi,open:Yo,onOpenChange:Ro,onClick:To,onClear:$o,invalid:Sa,onInvalid:function(xo){So(xo,0)}}))))}var je=Lt.forwardRef(Ke),hn=je,An=hn},25930:function(Qn,pi,Dt){"use strict";Dt.d(pi,{Cd:function(){return ge}});var yt=Dt(67711),ee=Dt(98506),ie=Dt(33346),we=Dt(59301),Ee=Dt(92310),jt=Dt.n(Ee),ce={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Ve=function(){var ye=(0,we.useRef)([]),He=(0,we.useRef)(null);return(0,we.useEffect)(function(){var wn=Date.now(),ln=!1;ye.current.forEach(function(Oe){if(Oe){ln=!0;var Sn=Oe.style;Sn.transitionDuration=".3s, .3s, .3s, .06s",He.current&&wn-He.current<100&&(Sn.transitionDuration="0s, 0s")}}),ln&&(He.current=Date.now())}),ye.current},xe=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],Lt=function(ye){var He=(0,ee.Z)((0,ee.Z)({},ce),ye),wn=He.className,ln=He.percent,Oe=He.prefixCls,Sn=He.strokeColor,se=He.strokeLinecap,Yt=He.strokeWidth,fn=He.style,_n=He.trailColor,In=He.trailWidth,on=He.transition,jn=(0,ie.Z)(He,xe);delete jn.gapPosition;var Pn=Array.isArray(ln)?ln:[ln],di=Array.isArray(Sn)?Sn:[Sn],Re=Ve(),ve=Yt/2,Ye=100-Yt/2,mi="M ".concat(se==="round"?ve:0,",").concat(ve,`
|
|
L `).concat(se==="round"?Ye:100,",").concat(ve),Cn="0 0 100 ".concat(Yt),Ot=0;return we.createElement("svg",(0,yt.Z)({className:jt()("".concat(Oe,"-line"),wn),viewBox:Cn,preserveAspectRatio:"none",style:fn},jn),we.createElement("path",{className:"".concat(Oe,"-line-trail"),d:mi,strokeLinecap:se,stroke:_n,strokeWidth:In||Yt,fillOpacity:"0"}),Pn.map(function(At,wt){var Nt=1;switch(se){case"round":Nt=1-Yt/100;break;case"square":Nt=1-Yt/2/100;break;default:Nt=1;break}var Vt={strokeDasharray:"".concat(At*Nt,"px, 100px"),strokeDashoffset:"-".concat(Ot,"px"),transition:on||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},kt=di[wt]||di[di.length-1];return Ot+=At,we.createElement("path",{key:wt,className:"".concat(Oe,"-line-path"),d:mi,strokeLinecap:se,stroke:kt,strokeWidth:Yt,fillOpacity:"0",ref:function(nn){Re[wt]=nn},style:Vt})}))},ze=Lt,Kt=Dt(26420),Je=Dt(16886),Bt=Dt(47273),nt=0,et=(0,Bt.Z)();function dt(){var Pe;return et?(Pe=nt,nt+=1):Pe="TEST_OR_SSR",Pe}var lt=function(Pe){var ye=we.useState(),He=(0,Je.Z)(ye,2),wn=He[0],ln=He[1];return we.useEffect(function(){ln("rc_progress_".concat(dt()))},[]),Pe||wn},gt=function(ye){var He=ye.bg,wn=ye.children;return we.createElement("div",{style:{width:"100%",height:"100%",background:He}},wn)};function mt(Pe,ye){return Object.keys(Pe).map(function(He){var wn=parseFloat(He),ln="".concat(Math.floor(wn*ye),"%");return"".concat(Pe[He]," ").concat(ln)})}var St=we.forwardRef(function(Pe,ye){var He=Pe.prefixCls,wn=Pe.color,ln=Pe.gradientId,Oe=Pe.radius,Sn=Pe.style,se=Pe.ptg,Yt=Pe.strokeLinecap,fn=Pe.strokeWidth,_n=Pe.size,In=Pe.gapDegree,on=wn&&(0,Kt.Z)(wn)==="object",jn=on?"#FFF":void 0,Pn=_n/2,di=we.createElement("circle",{className:"".concat(He,"-circle-path"),r:Oe,cx:Pn,cy:Pn,stroke:jn,strokeLinecap:Yt,strokeWidth:fn,opacity:se===0?0:1,style:Sn,ref:ye});if(!on)return di;var Re="".concat(ln,"-conic"),ve=In?"".concat(180+In/2,"deg"):"0deg",Ye=mt(wn,(360-In)/360),mi=mt(wn,1),Cn="conic-gradient(from ".concat(ve,", ").concat(Ye.join(", "),")"),Ot="linear-gradient(to ".concat(In?"bottom":"top",", ").concat(mi.join(", "),")");return we.createElement(we.Fragment,null,we.createElement("mask",{id:Re},di),we.createElement("foreignObject",{x:0,y:0,width:_n,height:_n,mask:"url(#".concat(Re,")")},we.createElement(gt,{bg:Ot},we.createElement(gt,{bg:Cn}))))}),Mt=St,It=100,Zt=function(ye,He,wn,ln,Oe,Sn,se,Yt,fn,_n){var In=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,on=wn/100*360*((360-Sn)/360),jn=Sn===0?0:{bottom:0,top:180,left:90,right:-90}[se],Pn=(100-ln)/100*He;fn==="round"&&ln!==100&&(Pn+=_n/2,Pn>=He&&(Pn=He-.01));var di=It/2;return{stroke:typeof Yt=="string"?Yt:void 0,strokeDasharray:"".concat(He,"px ").concat(ye),strokeDashoffset:Pn+In,transform:"rotate(".concat(Oe+on+jn,"deg)"),transformOrigin:"".concat(di,"px ").concat(di,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},oe=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Gt(Pe){var ye=Pe!=null?Pe:[];return Array.isArray(ye)?ye:[ye]}var _t=function(ye){var He=(0,ee.Z)((0,ee.Z)({},ce),ye),wn=He.id,ln=He.prefixCls,Oe=He.steps,Sn=He.strokeWidth,se=He.trailWidth,Yt=He.gapDegree,fn=Yt===void 0?0:Yt,_n=He.gapPosition,In=He.trailColor,on=He.strokeLinecap,jn=He.style,Pn=He.className,di=He.strokeColor,Re=He.percent,ve=(0,ie.Z)(He,oe),Ye=It/2,mi=lt(wn),Cn="".concat(mi,"-gradient"),Ot=Ye-Sn/2,At=Math.PI*2*Ot,wt=fn>0?90+fn/2:-90,Nt=At*((360-fn)/360),Vt=(0,Kt.Z)(Oe)==="object"?Oe:{count:Oe,gap:2},kt=Vt.count,$t=Vt.gap,nn=Gt(Re),dn=Gt(di),En=dn.find(function(Tn){return Tn&&(0,Kt.Z)(Tn)==="object"}),De=En&&(0,Kt.Z)(En)==="object",Ce=De?"butt":on,Qe=Zt(At,Nt,0,100,wt,fn,_n,In,Ce,Sn),un=Ve(),Nn=function(){var bn=0;return nn.map(function(Ie,Ue){var cn=dn[Ue]||dn[dn.length-1],Ln=Zt(At,Nt,bn,Ie,wt,fn,_n,cn,Ce,Sn);return bn+=Ie,we.createElement(Mt,{key:Ue,color:cn,ptg:Ie,radius:Ot,prefixCls:ln,gradientId:Cn,style:Ln,strokeLinecap:Ce,strokeWidth:Sn,gapDegree:fn,ref:function(li){un[Ue]=li},size:It})}).reverse()},ai=function(){var bn=Math.round(kt*(nn[0]/100)),Ie=100/kt,Ue=0;return new Array(kt).fill(null).map(function(cn,Ln){var Xn=Ln<=bn-1?dn[0]:In,li=Xn&&(0,Kt.Z)(Xn)==="object"?"url(#".concat(Cn,")"):void 0,Ci=Zt(At,Nt,Ue,Ie,wt,fn,_n,Xn,"butt",Sn,$t);return Ue+=(Nt-Ci.strokeDashoffset+$t)*100/Nt,we.createElement("circle",{key:Ln,className:"".concat(ln,"-circle-path"),r:Ot,cx:Ye,cy:Ye,stroke:li,strokeWidth:Sn,opacity:1,style:Ci,ref:function(ti){un[Ln]=ti}})})};return we.createElement("svg",(0,yt.Z)({className:jt()("".concat(ln,"-circle"),Pn),viewBox:"0 0 ".concat(It," ").concat(It),style:jn,id:wn,role:"presentation"},ve),!kt&&we.createElement("circle",{className:"".concat(ln,"-circle-trail"),r:Ot,cx:Ye,cy:Ye,stroke:In,strokeLinecap:Ce,strokeWidth:se||Sn,style:Qe}),kt?ai():Nn())},ge=_t,me={Line:ze,Circle:ge}},738:function(Qn,pi,Dt){"use strict";Dt.d(pi,{Z:function(){return mt}});var yt=Dt(67711),ee=Dt(52873),ie=Dt(16886),we=Dt(33346),Ee=Dt(92310),jt=Dt.n(Ee),ce=Dt(18929),Ve=Dt(10228),xe=Dt(26112),Lt=Dt(59301);function ze(St,Mt){var It=St.disabled,Zt=St.prefixCls,oe=St.character,Gt=St.characterRender,_t=St.index,ge=St.count,me=St.value,Pe=St.allowHalf,ye=St.focused,He=St.onHover,wn=St.onClick,ln=function(on){He(on,_t)},Oe=function(on){wn(on,_t)},Sn=function(on){on.keyCode===Ve.Z.ENTER&&wn(on,_t)},se=_t+1,Yt=new Set([Zt]);me===0&&_t===0&&ye?Yt.add("".concat(Zt,"-focused")):Pe&&me+.5>=se&&me<se?(Yt.add("".concat(Zt,"-half")),Yt.add("".concat(Zt,"-active")),ye&&Yt.add("".concat(Zt,"-focused"))):(se<=me?Yt.add("".concat(Zt,"-full")):Yt.add("".concat(Zt,"-zero")),se===me&&ye&&Yt.add("".concat(Zt,"-focused")));var fn=typeof oe=="function"?oe(St):oe,_n=Lt.createElement("li",{className:jt()(Array.from(Yt)),ref:Mt},Lt.createElement("div",{onClick:It?null:Oe,onKeyDown:It?null:Sn,onMouseMove:It?null:ln,role:"radio","aria-checked":me>_t?"true":"false","aria-posinset":_t+1,"aria-setsize":ge,tabIndex:It?-1:0},Lt.createElement("div",{className:"".concat(Zt,"-first")},fn),Lt.createElement("div",{className:"".concat(Zt,"-second")},fn)));return Gt&&(_n=Gt(_n,St)),_n}var Kt=Lt.forwardRef(ze);function Je(){var St=Lt.useRef({});function Mt(Zt){return St.current[Zt]}function It(Zt){return function(oe){St.current[Zt]=oe}}return[Mt,It]}function Bt(St){var Mt=St.pageXOffset,It="scrollLeft";if(typeof Mt!="number"){var Zt=St.document;Mt=Zt.documentElement[It],typeof Mt!="number"&&(Mt=Zt.body[It])}return Mt}function nt(St){var Mt,It,Zt=St.ownerDocument,oe=Zt.body,Gt=Zt&&Zt.documentElement,_t=St.getBoundingClientRect();return Mt=_t.left,It=_t.top,Mt-=Gt.clientLeft||oe.clientLeft||0,It-=Gt.clientTop||oe.clientTop||0,{left:Mt,top:It}}function et(St){var Mt=nt(St),It=St.ownerDocument,Zt=It.defaultView||It.parentWindow;return Mt.left+=Bt(Zt),Mt.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,Mt){var It=St.prefixCls,Zt=It===void 0?"rc-rate":It,oe=St.className,Gt=St.defaultValue,_t=St.value,ge=St.count,me=ge===void 0?5:ge,Pe=St.allowHalf,ye=Pe===void 0?!1:Pe,He=St.allowClear,wn=He===void 0?!0:He,ln=St.keyboard,Oe=ln===void 0?!0:ln,Sn=St.character,se=Sn===void 0?"\u2605":Sn,Yt=St.characterRender,fn=St.disabled,_n=St.direction,In=_n===void 0?"ltr":_n,on=St.tabIndex,jn=on===void 0?0:on,Pn=St.autoFocus,di=St.onHoverChange,Re=St.onChange,ve=St.onFocus,Ye=St.onBlur,mi=St.onKeyDown,Cn=St.onMouseLeave,Ot=(0,we.Z)(St,dt),At=Je(),wt=(0,ie.Z)(At,2),Nt=wt[0],Vt=wt[1],kt=Lt.useRef(null),$t=function(){if(!fn){var zi;(zi=kt.current)===null||zi===void 0||zi.focus()}};Lt.useImperativeHandle(Mt,function(){return{focus:$t,blur:function(){if(!fn){var zi;(zi=kt.current)===null||zi===void 0||zi.blur()}}}});var nn=(0,ce.Z)(Gt||0,{value:_t}),dn=(0,ie.Z)(nn,2),En=dn[0],De=dn[1],Ce=(0,ce.Z)(null),Qe=(0,ie.Z)(Ce,2),un=Qe[0],Nn=Qe[1],ai=function(zi,gr){var Et=In==="rtl",Bn=zi+1;if(ye){var Gn=Nt(zi),fi=et(Gn),ci=Gn.clientWidth;(Et&&gr-fi>ci/2||!Et&&gr-fi<ci/2)&&(Bn-=.5)}return Bn},Tn=function(zi){De(zi),Re==null||Re(zi)},bn=Lt.useState(!1),Ie=(0,ie.Z)(bn,2),Ue=Ie[0],cn=Ie[1],Ln=function(){cn(!0),ve==null||ve()},Xn=function(){cn(!1),Ye==null||Ye()},li=Lt.useState(null),Ci=(0,ie.Z)(li,2),gn=Ci[0],ti=Ci[1],_i=function(zi,gr){var Et=ai(gr,zi.pageX);Et!==un&&(ti(Et),Nn(null)),di==null||di(Et)},fr=function(zi){fn||(ti(null),Nn(null),di==null||di(void 0)),zi&&(Cn==null||Cn(zi))},tr=function(zi,gr){var Et=ai(gr,zi.pageX),Bn=!1;wn&&(Bn=Et===En),fr(),Tn(Bn?0:Et),Nn(Bn?Et:null)},er=function(zi){var gr=zi.keyCode,Et=In==="rtl",Bn=ye?.5:1;Oe&&(gr===Ve.Z.RIGHT&&En<me&&!Et?(Tn(En+Bn),zi.preventDefault()):gr===Ve.Z.LEFT&&En>0&&!Et||gr===Ve.Z.RIGHT&&En>0&&Et?(Tn(En-Bn),zi.preventDefault()):gr===Ve.Z.LEFT&&En<me&&Et&&(Tn(En+Bn),zi.preventDefault())),mi==null||mi(zi)};Lt.useEffect(function(){Pn&&!fn&&$t()},[]);var yr=new Array(me).fill(0).map(function(hr,zi){return Lt.createElement(Kt,{ref:Vt(zi),index:zi,count:me,disabled:fn,prefixCls:"".concat(Zt,"-star"),allowHalf:ye,value:gn===null?En:gn,onClick:tr,onHover:_i,key:hr||zi,character:se,characterRender:Yt,focused:Ue})}),sr=jt()(Zt,oe,(0,ee.Z)((0,ee.Z)({},"".concat(Zt,"-disabled"),fn),"".concat(Zt,"-rtl"),In==="rtl"));return Lt.createElement("ul",(0,yt.Z)({className:sr,onMouseLeave:fr,tabIndex:fn?-1:jn,onFocus:fn?null:Ln,onBlur:fn?null:Xn,onKeyDown:fn?null:er,ref:kt},(0,xe.Z)(Ot,{aria:!0,data:!0,attr:!0})),yr)}var gt=Lt.forwardRef(lt),mt=gt},6551:function(Qn,pi,Dt){"use strict";Dt.d(pi,{ZP:function(){return ce}});var yt=Dt(16886),ee=Dt(59301),ie=Dt(47273),we=0,Ee=(0,ie.Z)();function jt(){var Ve;return Ee?(Ve=we,we+=1):Ve="TEST_OR_SSR",Ve}function ce(Ve){var xe=ee.useState(),Lt=(0,yt.Z)(xe,2),ze=Lt[0],Kt=Lt[1];return ee.useEffect(function(){Kt("rc_select_".concat(jt()))},[]),Ve||ze}},37463:function(Qn,pi,Dt){"use strict";Dt.d(pi,{Ac:function(){return cn},Xo:function(){return Xn},Wx:function(){return Ci},ZP:function(){return qn},lk:function(){return mt}});var yt=Dt(67711),ee=Dt(15142),ie=Dt(52873),we=Dt(98506),Ee=Dt(16886),jt=Dt(33346),ce=Dt(26420),Ve=Dt(18929),xe=Dt(48736),Lt=Dt(59301),ze=Dt(92310),Kt=Dt.n(ze),Je=Dt(34280),Bt=Dt(49658),nt=Dt(8654),et=function(be){var Jn=be.className,Fn=be.customizeIcon,Be=be.customizeIconProps,zn=be.children,Ai=be.onMouseDown,Ii=be.onClick,Ki=typeof Fn=="function"?Fn(Be):Fn;return Lt.createElement("span",{className:Jn,onMouseDown:function(gi){gi.preventDefault(),Ai==null||Ai(gi)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Ii,"aria-hidden":!0},Ki!==void 0?Ki:Lt.createElement("span",{className:Kt()(Jn.split(/\s+/).map(function(oi){return"".concat(oi,"-icon")}))},zn))},dt=et,lt=function(be,Jn,Fn,Be,zn){var Ai=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Ii=arguments.length>6?arguments[6]:void 0,Ki=arguments.length>7?arguments[7]:void 0,oi=Lt.useMemo(function(){if((0,ce.Z)(Be)==="object")return Be.clearIcon;if(zn)return zn},[Be,zn]),gi=Lt.useMemo(function(){return!!(!Ai&&Be&&(Fn.length||Ii)&&!(Ki==="combobox"&&Ii===""))},[Be,Ai,Fn.length,Ii,Ki]);return{allowClear:gi,clearIcon:Lt.createElement(dt,{className:"".concat(be,"-clear"),onMouseDown:Jn,customizeIcon:oi},"\xD7")}},gt=Lt.createContext(null);function mt(){return Lt.useContext(gt)}function St(){var te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,be=Lt.useState(!1),Jn=(0,Ee.Z)(be,2),Fn=Jn[0],Be=Jn[1],zn=Lt.useRef(null),Ai=function(){window.clearTimeout(zn.current)};Lt.useEffect(function(){return Ai},[]);var Ii=function(oi,gi){Ai(),zn.current=window.setTimeout(function(){Be(oi),gi&&gi()},te)};return[Fn,Ii,Ai]}function Mt(){var te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,be=Lt.useRef(null),Jn=Lt.useRef(null);Lt.useEffect(function(){return function(){window.clearTimeout(Jn.current)}},[]);function Fn(Be){(Be||be.current===null)&&(be.current=Be),window.clearTimeout(Jn.current),Jn.current=window.setTimeout(function(){be.current=null},te)}return[function(){return be.current},Fn]}function It(te,be,Jn,Fn){var Be=Lt.useRef(null);Be.current={open:be,triggerOpen:Jn,customizedTrigger:Fn},Lt.useEffect(function(){function zn(Ai){var Ii;if(!((Ii=Be.current)!==null&&Ii!==void 0&&Ii.customizedTrigger)){var Ki=Ai.target;Ki.shadowRoot&&Ai.composed&&(Ki=Ai.composedPath()[0]||Ki),Be.current.open&&te().filter(function(oi){return oi}).every(function(oi){return!oi.contains(Ki)&&oi!==Ki})&&Be.current.triggerOpen(!1)}}return window.addEventListener("mousedown",zn),function(){return window.removeEventListener("mousedown",zn)}},[])}var Zt=Dt(10228);function oe(te){return te&&![Zt.Z.ESC,Zt.Z.SHIFT,Zt.Z.BACKSPACE,Zt.Z.TAB,Zt.Z.WIN_KEY,Zt.Z.ALT,Zt.Z.META,Zt.Z.WIN_KEY_RIGHT,Zt.Z.CTRL,Zt.Z.SEMICOLON,Zt.Z.EQUALS,Zt.Z.CAPS_LOCK,Zt.Z.CONTEXT_MENU,Zt.Z.F1,Zt.Z.F2,Zt.Z.F3,Zt.Z.F4,Zt.Z.F5,Zt.Z.F6,Zt.Z.F7,Zt.Z.F8,Zt.Z.F9,Zt.Z.F10,Zt.Z.F11,Zt.Z.F12].includes(te)}var Gt=Dt(26112),_t=Dt(11780);function ge(te,be,Jn){var Fn=(0,we.Z)((0,we.Z)({},te),Jn?be:{});return Object.keys(be).forEach(function(Be){var zn=be[Be];typeof zn=="function"&&(Fn[Be]=function(){for(var Ai,Ii=arguments.length,Ki=new Array(Ii),oi=0;oi<Ii;oi++)Ki[oi]=arguments[oi];return zn.apply(void 0,Ki),(Ai=te[Be])===null||Ai===void 0?void 0:Ai.call.apply(Ai,[te].concat(Ki))})}),Fn}var me=ge,Pe=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],ye=function(be,Jn){var Fn=be.prefixCls,Be=be.id,zn=be.inputElement,Ai=be.autoFocus,Ii=be.autoComplete,Ki=be.editable,oi=be.activeDescendantId,gi=be.value,Si=be.open,Ui=be.attrs,ji=(0,jt.Z)(be,Pe),Mn=zn||Lt.createElement("input",null),Ei=Mn,xr=Ei.ref,Tr=Ei.props;return(0,xe.Kp)(!("maxLength"in Mn.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Mn=Lt.cloneElement(Mn,(0,we.Z)((0,we.Z)((0,we.Z)({type:"search"},me(ji,Tr,!0)),{},{id:Be,ref:(0,nt.sQ)(Jn,xr),autoComplete:Ii||"off",autoFocus:Ai,className:Kt()("".concat(Fn,"-selection-search-input"),Tr==null?void 0:Tr.className),role:"combobox","aria-expanded":Si||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Be,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Be,"_list"),"aria-activedescendant":Si?oi:void 0},Ui),{},{value:Ki?gi:"",readOnly:!Ki,unselectable:Ki?null:"on",style:(0,we.Z)((0,we.Z)({},Tr.style),{},{opacity:Ki?null:0})})),Mn},He=Lt.forwardRef(ye),wn=He;function ln(te){return Array.isArray(te)?te:te!==void 0?[te]:[]}var Oe=typeof window!="undefined"&&window.document&&window.document.documentElement,Sn=Oe;function se(te){return te!=null}function Yt(te){return!te&&te!==0}function fn(te){return["string","number"].includes((0,ce.Z)(te))}function _n(te){var be=void 0;return te&&(fn(te.title)?be=te.title.toString():fn(te.label)&&(be=te.label.toString())),be}function In(te,be){Sn?Lt.useLayoutEffect(te,be):Lt.useEffect(te,be)}function on(te){var be;return(be=te.key)!==null&&be!==void 0?be:te.value}var jn=function(be){be.preventDefault(),be.stopPropagation()},Pn=function(be){var Jn=be.id,Fn=be.prefixCls,Be=be.values,zn=be.open,Ai=be.searchValue,Ii=be.autoClearSearchValue,Ki=be.inputRef,oi=be.placeholder,gi=be.disabled,Si=be.mode,Ui=be.showSearch,ji=be.autoFocus,Mn=be.autoComplete,Ei=be.activeDescendantId,xr=be.tabIndex,Tr=be.removeIcon,_r=be.maxTagCount,We=be.maxTagTextLength,ar=be.maxTagPlaceholder,br=ar===void 0?function(Ke){return"+ ".concat(Ke.length," ...")}:ar,Gi=be.tagRender,Gr=be.onToggleOpen,Or=be.onRemove,Wr=be.onInputChange,Zi=be.onInputPaste,ir=be.onInputKeyDown,Qi=be.onInputMouseDown,pn=be.onInputCompositionStart,dr=be.onInputCompositionEnd,xn=be.onInputBlur,bi=Lt.useRef(null),Sr=(0,Lt.useState)(0),Er=(0,Ee.Z)(Sr,2),io=Er[0],Yr=Er[1],Mr=(0,Lt.useState)(!1),uo=(0,Ee.Z)(Mr,2),tn=uo[0],Hn=uo[1],_e="".concat(Fn,"-selection"),Tt=zn||Si==="multiple"&&Ii===!1||Si==="tags"?Ai:"",Wt=Si==="tags"||Si==="multiple"&&Ii===!1||Ui&&(zn||tn);In(function(){Yr(bi.current.scrollWidth)},[Tt]);var qt=function(je,hn,An,Ct,Qt){return Lt.createElement("span",{title:_n(je),className:Kt()("".concat(_e,"-item"),(0,ie.Z)({},"".concat(_e,"-item-disabled"),An))},Lt.createElement("span",{className:"".concat(_e,"-item-content")},hn),Ct&&Lt.createElement(dt,{className:"".concat(_e,"-item-remove"),onMouseDown:jn,onClick:Qt,customizeIcon:Tr},"\xD7"))},Se=function(je,hn,An,Ct,Qt,zt){var de=function(Ge){jn(Ge),Gr(!zn)};return Lt.createElement("span",{onMouseDown:de},Gi({label:hn,value:je,disabled:An,closable:Ct,onClose:Qt,isMaxTag:!!zt}))},Te=function(je){var hn=je.disabled,An=je.label,Ct=je.value,Qt=!gi&&!hn,zt=An;if(typeof We=="number"&&(typeof An=="string"||typeof An=="number")){var de=String(zt);de.length>We&&(zt="".concat(de.slice(0,We),"..."))}var ue=function(Ze){Ze&&Ze.stopPropagation(),Or(je)};return typeof Gi=="function"?Se(Ct,zt,hn,Qt,ue):qt(je,zt,hn,Qt,ue)},en=function(je){if(!Be.length)return null;var hn=typeof br=="function"?br(je):br;return typeof Gi=="function"?Se(void 0,hn,!1,!1,void 0,!0):qt({title:hn},hn,!1)},ne=Lt.createElement("div",{className:"".concat(_e,"-search"),style:{width:io},onFocus:function(){Hn(!0)},onBlur:function(){Hn(!1)}},Lt.createElement(wn,{ref:Ki,open:zn,prefixCls:Fn,id:Jn,inputElement:null,disabled:gi,autoFocus:ji,autoComplete:Mn,editable:Wt,activeDescendantId:Ei,value:Tt,onKeyDown:ir,onMouseDown:Qi,onChange:Wr,onPaste:Zi,onCompositionStart:pn,onCompositionEnd:dr,onBlur:xn,tabIndex:xr,attrs:(0,Gt.Z)(be,!0)}),Lt.createElement("span",{ref:bi,className:"".concat(_e,"-search-mirror"),"aria-hidden":!0},Tt,"\xA0")),Me=Lt.createElement(_t.Z,{prefixCls:"".concat(_e,"-overflow"),data:Be,renderItem:Te,renderRest:en,suffix:ne,itemKey:on,maxCount:_r});return Lt.createElement("span",{className:"".concat(_e,"-wrap")},Me,!Be.length&&!Tt&&Lt.createElement("span",{className:"".concat(_e,"-placeholder")},oi))},di=Pn,Re=function(be){var Jn=be.inputElement,Fn=be.prefixCls,Be=be.id,zn=be.inputRef,Ai=be.disabled,Ii=be.autoFocus,Ki=be.autoComplete,oi=be.activeDescendantId,gi=be.mode,Si=be.open,Ui=be.values,ji=be.placeholder,Mn=be.tabIndex,Ei=be.showSearch,xr=be.searchValue,Tr=be.activeValue,_r=be.maxLength,We=be.onInputKeyDown,ar=be.onInputMouseDown,br=be.onInputChange,Gi=be.onInputPaste,Gr=be.onInputCompositionStart,Or=be.onInputCompositionEnd,Wr=be.onInputBlur,Zi=be.title,ir=Lt.useState(!1),Qi=(0,Ee.Z)(ir,2),pn=Qi[0],dr=Qi[1],xn=gi==="combobox",bi=xn||Ei,Sr=Ui[0],Er=xr||"";xn&&Tr&&!pn&&(Er=Tr),Lt.useEffect(function(){xn&&dr(!1)},[xn,Tr]);var io=gi!=="combobox"&&!Si&&!Ei?!1:!!Er,Yr=Zi===void 0?_n(Sr):Zi,Mr=Lt.useMemo(function(){return Sr?null:Lt.createElement("span",{className:"".concat(Fn,"-selection-placeholder"),style:io?{visibility:"hidden"}:void 0},ji)},[Sr,io,ji,Fn]);return Lt.createElement("span",{className:"".concat(Fn,"-selection-wrap")},Lt.createElement("span",{className:"".concat(Fn,"-selection-search")},Lt.createElement(wn,{ref:zn,prefixCls:Fn,id:Be,open:Si,inputElement:Jn,disabled:Ai,autoFocus:Ii,autoComplete:Ki,editable:bi,activeDescendantId:oi,value:Er,onKeyDown:We,onMouseDown:ar,onChange:function(tn){dr(!0),br(tn)},onPaste:Gi,onCompositionStart:Gr,onCompositionEnd:Or,onBlur:Wr,tabIndex:Mn,attrs:(0,Gt.Z)(be,!0),maxLength:xn?_r:void 0})),!xn&&Sr?Lt.createElement("span",{className:"".concat(Fn,"-selection-item"),title:Yr,style:io?{visibility:"hidden"}:void 0},Sr.label):null,Mr)},ve=Re,Ye=function(be,Jn){var Fn=(0,Lt.useRef)(null),Be=(0,Lt.useRef)(!1),zn=be.prefixCls,Ai=be.open,Ii=be.mode,Ki=be.showSearch,oi=be.tokenWithEnter,gi=be.disabled,Si=be.prefix,Ui=be.autoClearSearchValue,ji=be.onSearch,Mn=be.onSearchSubmit,Ei=be.onToggleOpen,xr=be.onInputKeyDown,Tr=be.onInputBlur,_r=be.domRef;Lt.useImperativeHandle(Jn,function(){return{focus:function(Yr){Fn.current.focus(Yr)},blur:function(){Fn.current.blur()}}});var We=Mt(0),ar=(0,Ee.Z)(We,2),br=ar[0],Gi=ar[1],Gr=function(Yr){var Mr=Yr.which,uo=Fn.current instanceof HTMLTextAreaElement;!uo&&Ai&&(Mr===Zt.Z.UP||Mr===Zt.Z.DOWN)&&Yr.preventDefault(),xr&&xr(Yr),Mr===Zt.Z.ENTER&&Ii==="tags"&&!Be.current&&!Ai&&(Mn==null||Mn(Yr.target.value)),!(uo&&!Ai&&~[Zt.Z.UP,Zt.Z.DOWN,Zt.Z.LEFT,Zt.Z.RIGHT].indexOf(Mr))&&oe(Mr)&&Ei(!0)},Or=function(){Gi(!0)},Wr=(0,Lt.useRef)(null),Zi=function(Yr){ji(Yr,!0,Be.current)!==!1&&Ei(!0)},ir=function(){Be.current=!0},Qi=function(Yr){Be.current=!1,Ii!=="combobox"&&Zi(Yr.target.value)},pn=function(Yr){var Mr=Yr.target.value;if(oi&&Wr.current&&/[\r\n]/.test(Wr.current)){var uo=Wr.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Mr=Mr.replace(uo,Wr.current)}Wr.current=null,Zi(Mr)},dr=function(Yr){var Mr=Yr.clipboardData,uo=Mr==null?void 0:Mr.getData("text");Wr.current=uo||""},xn=function(Yr){var Mr=Yr.target;if(Mr!==Fn.current){var uo=document.body.style.msTouchAction!==void 0;uo?setTimeout(function(){Fn.current.focus()}):Fn.current.focus()}},bi=function(Yr){var Mr=br();Yr.target!==Fn.current&&!Mr&&!(Ii==="combobox"&&gi)&&Yr.preventDefault(),(Ii!=="combobox"&&(!Ki||!Mr)||!Ai)&&(Ai&&Ui!==!1&&ji("",!0,!1),Ei())},Sr={inputRef:Fn,onInputKeyDown:Gr,onInputMouseDown:Or,onInputChange:pn,onInputPaste:dr,onInputCompositionStart:ir,onInputCompositionEnd:Qi,onInputBlur:Tr},Er=Ii==="multiple"||Ii==="tags"?Lt.createElement(di,(0,yt.Z)({},be,Sr)):Lt.createElement(ve,(0,yt.Z)({},be,Sr));return Lt.createElement("div",{ref:_r,className:"".concat(zn,"-selector"),onClick:xn,onMouseDown:bi},Si&&Lt.createElement("div",{className:"".concat(zn,"-prefix")},Si),Er)},mi=Lt.forwardRef(Ye),Cn=mi,Ot=Dt(65030),At=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],wt=function(be){var Jn=be===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Jn,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Jn,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Jn,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Jn,adjustY:1},htmlRegion:"scroll"}}},Nt=function(be,Jn){var Fn=be.prefixCls,Be=be.disabled,zn=be.visible,Ai=be.children,Ii=be.popupElement,Ki=be.animation,oi=be.transitionName,gi=be.dropdownStyle,Si=be.dropdownClassName,Ui=be.direction,ji=Ui===void 0?"ltr":Ui,Mn=be.placement,Ei=be.builtinPlacements,xr=be.dropdownMatchSelectWidth,Tr=be.dropdownRender,_r=be.dropdownAlign,We=be.getPopupContainer,ar=be.empty,br=be.getTriggerDOMNode,Gi=be.onPopupVisibleChange,Gr=be.onPopupMouseEnter,Or=(0,jt.Z)(be,At),Wr="".concat(Fn,"-dropdown"),Zi=Ii;Tr&&(Zi=Tr(Ii));var ir=Lt.useMemo(function(){return Ei||wt(xr)},[Ei,xr]),Qi=Ki?"".concat(Wr,"-").concat(Ki):oi,pn=typeof xr=="number",dr=Lt.useMemo(function(){return pn?null:xr===!1?"minWidth":"width"},[xr,pn]),xn=gi;pn&&(xn=(0,we.Z)((0,we.Z)({},xn),{},{width:xr}));var bi=Lt.useRef(null);return Lt.useImperativeHandle(Jn,function(){return{getPopupElement:function(){var Er;return(Er=bi.current)===null||Er===void 0?void 0:Er.popupElement}}}),Lt.createElement(Ot.Z,(0,yt.Z)({},Or,{showAction:Gi?["click"]:[],hideAction:Gi?["click"]:[],popupPlacement:Mn||(ji==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:ir,prefixCls:Wr,popupTransitionName:Qi,popup:Lt.createElement("div",{onMouseEnter:Gr},Zi),ref:bi,stretch:dr,popupAlign:_r,popupVisible:zn,getPopupContainer:We,popupClassName:Kt()(Si,(0,ie.Z)({},"".concat(Wr,"-empty"),ar)),popupStyle:xn,getTriggerDOMNode:br,onPopupVisibleChange:Gi}),Ai)},Vt=Lt.forwardRef(Nt),kt=Vt,$t=Dt(57879);function nn(te,be){var Jn=te.key,Fn;return"value"in te&&(Fn=te.value),Jn!=null?Jn:Fn!==void 0?Fn:"rc-index-key-".concat(be)}function dn(te){return typeof te!="undefined"&&!Number.isNaN(te)}function En(te,be){var Jn=te||{},Fn=Jn.label,Be=Jn.value,zn=Jn.options,Ai=Jn.groupLabel,Ii=Fn||(be?"children":"label");return{label:Ii,value:Be||"value",options:zn||"options",groupLabel:Ai||Ii}}function De(te){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Jn=be.fieldNames,Fn=be.childrenAsData,Be=[],zn=En(Jn,!1),Ai=zn.label,Ii=zn.value,Ki=zn.options,oi=zn.groupLabel;function gi(Si,Ui){Array.isArray(Si)&&Si.forEach(function(ji){if(Ui||!(Ki in ji)){var Mn=ji[Ii];Be.push({key:nn(ji,Be.length),groupOption:Ui,data:ji,label:ji[Ai],value:Mn})}else{var Ei=ji[oi];Ei===void 0&&Fn&&(Ei=ji.label),Be.push({key:nn(ji,Be.length),group:!0,data:ji,label:Ei}),gi(ji[Ki],!0)}})}return gi(te,!1),Be}function Ce(te){var be=(0,we.Z)({},te);return"props"in be||Object.defineProperty(be,"props",{get:function(){return(0,xe.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),be}}),be}var Qe=function(be,Jn,Fn){if(!Jn||!Jn.length)return null;var Be=!1,zn=function Ii(Ki,oi){var gi=(0,$t.Z)(oi),Si=gi[0],Ui=gi.slice(1);if(!Si)return[Ki];var ji=Ki.split(Si);return Be=Be||ji.length>1,ji.reduce(function(Mn,Ei){return[].concat((0,ee.Z)(Mn),(0,ee.Z)(Ii(Ei,Ui)))},[]).filter(Boolean)},Ai=zn(be,Jn);return Be?typeof Fn!="undefined"?Ai.slice(0,Fn):Ai:null},un=Lt.createContext(null),Nn=un;function ai(te){var be=te.visible,Jn=te.values;if(!be)return null;var Fn=50;return Lt.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(Jn.slice(0,Fn).map(function(Be){var zn=Be.label,Ai=Be.value;return["number","string"].includes((0,ce.Z)(zn))?zn:Ai}).join(", ")),Jn.length>Fn?", ...":null)}var Tn=["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"],bn=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Ie=function(be){return be==="tags"||be==="multiple"},Ue=Lt.forwardRef(function(te,be){var Jn,Fn=te.id,Be=te.prefixCls,zn=te.className,Ai=te.showSearch,Ii=te.tagRender,Ki=te.direction,oi=te.omitDomProps,gi=te.displayValues,Si=te.onDisplayValuesChange,Ui=te.emptyOptions,ji=te.notFoundContent,Mn=ji===void 0?"Not Found":ji,Ei=te.onClear,xr=te.mode,Tr=te.disabled,_r=te.loading,We=te.getInputElement,ar=te.getRawInputElement,br=te.open,Gi=te.defaultOpen,Gr=te.onDropdownVisibleChange,Or=te.activeValue,Wr=te.onActiveValueChange,Zi=te.activeDescendantId,ir=te.searchValue,Qi=te.autoClearSearchValue,pn=te.onSearch,dr=te.onSearchSplit,xn=te.tokenSeparators,bi=te.allowClear,Sr=te.prefix,Er=te.suffixIcon,io=te.clearIcon,Yr=te.OptionList,Mr=te.animation,uo=te.transitionName,tn=te.dropdownStyle,Hn=te.dropdownClassName,_e=te.dropdownMatchSelectWidth,Tt=te.dropdownRender,Wt=te.dropdownAlign,qt=te.placement,Se=te.builtinPlacements,Te=te.getPopupContainer,en=te.showAction,ne=en===void 0?[]:en,Me=te.onFocus,Ke=te.onBlur,je=te.onKeyUp,hn=te.onKeyDown,An=te.onMouseDown,Ct=(0,jt.Z)(te,Tn),Qt=Ie(xr),zt=(Ai!==void 0?Ai:Qt)||xr==="combobox",de=(0,we.Z)({},Ct);bn.forEach(function(ur){delete de[ur]}),oi==null||oi.forEach(function(ur){delete de[ur]});var ue=Lt.useState(!1),Ge=(0,Ee.Z)(ue,2),Ze=Ge[0],an=Ge[1];Lt.useEffect(function(){an((0,Bt.Z)())},[]);var kn=Lt.useRef(null),Un=Lt.useRef(null),yn=Lt.useRef(null),si=Lt.useRef(null),vi=Lt.useRef(null),le=Lt.useRef(!1),ei=St(),ni=(0,Ee.Z)(ei,3),Wn=ni[0],Vn=ni[1],Ni=ni[2];Lt.useImperativeHandle(be,function(){var ur,Lr;return{focus:(ur=si.current)===null||ur===void 0?void 0:ur.focus,blur:(Lr=si.current)===null||Lr===void 0?void 0:Lr.blur,scrollTo:function(wi){var Do;return(Do=vi.current)===null||Do===void 0?void 0:Do.scrollTo(wi)},nativeElement:kn.current||Un.current}});var Di=Lt.useMemo(function(){var ur;if(xr!=="combobox")return ir;var Lr=(ur=gi[0])===null||ur===void 0?void 0:ur.value;return typeof Lr=="string"||typeof Lr=="number"?String(Lr):""},[ir,xr,gi]),Mi=xr==="combobox"&&typeof We=="function"&&We()||null,Ti=typeof ar=="function"&&ar(),Ri=(0,nt.x1)(Un,Ti==null||(Jn=Ti.props)===null||Jn===void 0?void 0:Jn.ref),or=Lt.useState(!1),Ir=(0,Ee.Z)(or,2),jr=Ir[0],Hr=Ir[1];(0,Je.Z)(function(){Hr(!0)},[]);var Bi=(0,Ve.Z)(!1,{defaultValue:Gi,value:br}),Ar=(0,Ee.Z)(Bi,2),wr=Ar[0],Nr=Ar[1],mr=jr?wr:!1,Rr=!Mn&&Ui;(Tr||Rr&&mr&&xr==="combobox")&&(mr=!1);var ri=Rr?!1:mr,Vi=Lt.useCallback(function(ur){var Lr=ur!==void 0?ur:!mr;Tr||(Nr(Lr),mr!==Lr&&(Gr==null||Gr(Lr)))},[Tr,mr,Nr,Gr]),Ji=Lt.useMemo(function(){return(xn||[]).some(function(ur){return[`
|
|
`,`\r
|
|
`].includes(ur)})},[xn]),lr=Lt.useContext(Nn)||{},qi=lr.maxCount,nr=lr.rawValues,ki=function(Lr,pr,wi){if(!(Qt&&dn(qi)&&(nr==null?void 0:nr.size)>=qi)){var Do=!0,pe=Lr;Wr==null||Wr(null);var Rn=Qe(Lr,xn,dn(qi)?qi-nr.size:void 0),ha=wi?null:Rn;return xr!=="combobox"&&ha&&(pe="",dr==null||dr(ha),Vi(!1),Do=!1),pn&&Di!==pe&&pn(pe,{source:pr?"typing":"effect"}),Do}},Br=function(Lr){!Lr||!Lr.trim()||pn(Lr,{source:"submit"})};Lt.useEffect(function(){!mr&&!Qt&&xr!=="combobox"&&ki("",!1,!1)},[mr]),Lt.useEffect(function(){wr&&Tr&&Nr(!1),Tr&&!le.current&&Vn(!1)},[Tr]);var Kr=Mt(),Qr=(0,Ee.Z)(Kr,2),Pr=Qr[0],to=Qr[1],Ur=Lt.useRef(!1),Xr=function(Lr){var pr=Pr(),wi=Lr.key,Do=wi==="Enter";if(Do&&(xr!=="combobox"&&Lr.preventDefault(),mr||Vi(!0)),to(!!Di),wi==="Backspace"&&!pr&&Qt&&!Di&&gi.length){for(var pe=(0,ee.Z)(gi),Rn=null,ha=pe.length-1;ha>=0;ha-=1){var ga=pe[ha];if(!ga.disabled){pe.splice(ha,1),Rn=ga;break}}Rn&&Si(pe,{type:"remove",values:[Rn]})}for(var aa=arguments.length,sa=new Array(aa>1?aa-1:0),ya=1;ya<aa;ya++)sa[ya-1]=arguments[ya];if(mr&&(!Do||!Ur.current)){var Pa;Do&&(Ur.current=!0),(Pa=vi.current)===null||Pa===void 0||Pa.onKeyDown.apply(Pa,[Lr].concat(sa))}hn==null||hn.apply(void 0,[Lr].concat(sa))},fo=function(Lr){for(var pr=arguments.length,wi=new Array(pr>1?pr-1:0),Do=1;Do<pr;Do++)wi[Do-1]=arguments[Do];if(mr){var pe;(pe=vi.current)===null||pe===void 0||pe.onKeyUp.apply(pe,[Lr].concat(wi))}Lr.key==="Enter"&&(Ur.current=!1),je==null||je.apply(void 0,[Lr].concat(wi))},mo=function(Lr){var pr=gi.filter(function(wi){return wi!==Lr});Si(pr,{type:"remove",values:[Lr]})},Bo=function(){Ur.current=!1},ao=Lt.useRef(!1),ia=function(){Vn(!0),Tr||(Me&&!ao.current&&Me.apply(void 0,arguments),ne.includes("focus")&&Vi(!0)),ao.current=!0},po=function(){le.current=!0,Vn(!1,function(){ao.current=!1,le.current=!1,Vi(!1)}),!Tr&&(Di&&(xr==="tags"?pn(Di,{source:"submit"}):xr==="multiple"&&pn("",{source:"blur"})),Ke&&Ke.apply(void 0,arguments))},Jo=[];Lt.useEffect(function(){return function(){Jo.forEach(function(ur){return clearTimeout(ur)}),Jo.splice(0,Jo.length)}},[]);var Po=function(Lr){var pr,wi=Lr.target,Do=(pr=yn.current)===null||pr===void 0?void 0:pr.getPopupElement();if(Do&&Do.contains(wi)){var pe=setTimeout(function(){var aa=Jo.indexOf(pe);if(aa!==-1&&Jo.splice(aa,1),Ni(),!Ze&&!Do.contains(document.activeElement)){var sa;(sa=si.current)===null||sa===void 0||sa.focus()}});Jo.push(pe)}for(var Rn=arguments.length,ha=new Array(Rn>1?Rn-1:0),ga=1;ga<Rn;ga++)ha[ga-1]=arguments[ga];An==null||An.apply(void 0,[Lr].concat(ha))},Vo=Lt.useState({}),Go=(0,Ee.Z)(Vo,2),Yo=Go[1];function Ro(){Yo({})}var Lo;Ti&&(Lo=function(Lr){Vi(Lr)}),It(function(){var ur;return[kn.current,(ur=yn.current)===null||ur===void 0?void 0:ur.getPopupElement()]},ri,Vi,!!Ti);var oa=Lt.useMemo(function(){return(0,we.Z)((0,we.Z)({},te),{},{notFoundContent:Mn,open:mr,triggerOpen:ri,id:Fn,showSearch:zt,multiple:Qt,toggleOpen:Vi})},[te,Mn,ri,mr,Fn,zt,Qt,Vi]),wa=!!Er||_r,zo;wa&&(zo=Lt.createElement(dt,{className:Kt()("".concat(Be,"-arrow"),(0,ie.Z)({},"".concat(Be,"-arrow-loading"),_r)),customizeIcon:Er,customizeIconProps:{loading:_r,searchValue:Di,open:mr,focused:Wn,showSearch:zt}}));var Oa=function(){var Lr;Ei==null||Ei(),(Lr=si.current)===null||Lr===void 0||Lr.focus(),Si([],{type:"clear",values:gi}),ki("",!1,!1)},bo=lt(Be,Oa,gi,bi,io,Tr,Di,xr),yo=bo.allowClear,vo=bo.clearIcon,Qo=Lt.createElement(Yr,{ref:vi}),ro=Kt()(Be,zn,(0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)({},"".concat(Be,"-focused"),Wn),"".concat(Be,"-multiple"),Qt),"".concat(Be,"-single"),!Qt),"".concat(Be,"-allow-clear"),bi),"".concat(Be,"-show-arrow"),wa),"".concat(Be,"-disabled"),Tr),"".concat(Be,"-loading"),_r),"".concat(Be,"-open"),mr),"".concat(Be,"-customize-input"),Mi),"".concat(Be,"-show-search"),zt)),ea=Lt.createElement(kt,{ref:yn,disabled:Tr,prefixCls:Be,visible:ri,popupElement:Qo,animation:Mr,transitionName:uo,dropdownStyle:tn,dropdownClassName:Hn,direction:Ki,dropdownMatchSelectWidth:_e,dropdownRender:Tt,dropdownAlign:Wt,placement:qt,builtinPlacements:Se,getPopupContainer:Te,empty:Ui,getTriggerDOMNode:function(Lr){return Un.current||Lr},onPopupVisibleChange:Lo,onPopupMouseEnter:Ro},Ti?Lt.cloneElement(Ti,{ref:Ri}):Lt.createElement(Cn,(0,yt.Z)({},te,{domRef:Un,prefixCls:Be,inputElement:Mi,ref:si,id:Fn,prefix:Sr,showSearch:zt,autoClearSearchValue:Qi,mode:xr,activeDescendantId:Zi,tagRender:Ii,values:gi,open:mr,onToggleOpen:Vi,activeValue:Or,searchValue:Di,onSearch:ki,onSearchSubmit:Br,onRemove:mo,tokenWithEnter:Ji,onInputBlur:Bo}))),vr;return Ti?vr=ea:vr=Lt.createElement("div",(0,yt.Z)({className:ro},de,{ref:kn,onMouseDown:Po,onKeyDown:Xr,onKeyUp:fo,onFocus:ia,onBlur:po}),Lt.createElement(ai,{visible:Wn&&!mr,values:gi}),ea,zo,yo&&vo),Lt.createElement(gt.Provider,{value:oa},vr)}),cn=Ue,Ln=function(){return null};Ln.isSelectOptGroup=!0;var Xn=Ln,li=function(){return null};li.isSelectOption=!0;var Ci=li,gn=Dt(80547),ti=Dt(2738),_i=Dt(6790);function fr(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var tr=["disabled","title","children","style","className"];function er(te){return typeof te=="string"||typeof te=="number"}var yr=function(be,Jn){var Fn=mt(),Be=Fn.prefixCls,zn=Fn.id,Ai=Fn.open,Ii=Fn.multiple,Ki=Fn.mode,oi=Fn.searchValue,gi=Fn.toggleOpen,Si=Fn.notFoundContent,Ui=Fn.onPopupScroll,ji=Lt.useContext(Nn),Mn=ji.maxCount,Ei=ji.flattenOptions,xr=ji.onActiveValue,Tr=ji.defaultActiveFirstOption,_r=ji.onSelect,We=ji.menuItemSelectedIcon,ar=ji.rawValues,br=ji.fieldNames,Gi=ji.virtual,Gr=ji.direction,Or=ji.listHeight,Wr=ji.listItemHeight,Zi=ji.optionRender,ir="".concat(Be,"-item"),Qi=(0,gn.Z)(function(){return Ei},[Ai,Ei],function(en,ne){return ne[0]&&en[1]!==ne[1]}),pn=Lt.useRef(null),dr=Lt.useMemo(function(){return Ii&&dn(Mn)&&(ar==null?void 0:ar.size)>=Mn},[Ii,Mn,ar==null?void 0:ar.size]),xn=function(ne){ne.preventDefault()},bi=function(ne){var Me;(Me=pn.current)===null||Me===void 0||Me.scrollTo(typeof ne=="number"?{index:ne}:ne)},Sr=Lt.useCallback(function(en){return Ki==="combobox"?!1:ar.has(en)},[Ki,(0,ee.Z)(ar).toString(),ar.size]),Er=function(ne){for(var Me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Ke=Qi.length,je=0;je<Ke;je+=1){var hn=(ne+je*Me+Ke)%Ke,An=Qi[hn]||{},Ct=An.group,Qt=An.data;if(!Ct&&!(Qt!=null&&Qt.disabled)&&(Sr(Qt.value)||!dr))return hn}return-1},io=Lt.useState(function(){return Er(0)}),Yr=(0,Ee.Z)(io,2),Mr=Yr[0],uo=Yr[1],tn=function(ne){var Me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;uo(ne);var Ke={source:Me?"keyboard":"mouse"},je=Qi[ne];if(!je){xr(null,-1,Ke);return}xr(je.value,ne,Ke)};(0,Lt.useEffect)(function(){tn(Tr!==!1?Er(0):-1)},[Qi.length,oi]);var Hn=Lt.useCallback(function(en){return Ki==="combobox"?String(en).toLowerCase()===oi.toLowerCase():ar.has(en)},[Ki,oi,(0,ee.Z)(ar).toString(),ar.size]);(0,Lt.useEffect)(function(){var en=setTimeout(function(){if(!Ii&&Ai&&ar.size===1){var Me=Array.from(ar)[0],Ke=Qi.findIndex(function(je){var hn=je.data;return oi?String(hn.value).startsWith(oi):hn.value===Me});Ke!==-1&&(tn(Ke),bi(Ke))}});if(Ai){var ne;(ne=pn.current)===null||ne===void 0||ne.scrollTo(void 0)}return function(){return clearTimeout(en)}},[Ai,oi]);var _e=function(ne){ne!==void 0&&_r(ne,{selected:!ar.has(ne)}),Ii||gi(!1)};if(Lt.useImperativeHandle(Jn,function(){return{onKeyDown:function(ne){var Me=ne.which,Ke=ne.ctrlKey;switch(Me){case Zt.Z.N:case Zt.Z.P:case Zt.Z.UP:case Zt.Z.DOWN:{var je=0;if(Me===Zt.Z.UP?je=-1:Me===Zt.Z.DOWN?je=1:fr()&&Ke&&(Me===Zt.Z.N?je=1:Me===Zt.Z.P&&(je=-1)),je!==0){var hn=Er(Mr+je,je);bi(hn),tn(hn,!0)}break}case Zt.Z.TAB:case Zt.Z.ENTER:{var An,Ct=Qi[Mr];Ct&&!(Ct!=null&&(An=Ct.data)!==null&&An!==void 0&&An.disabled)&&!dr?_e(Ct.value):_e(void 0),Ai&&ne.preventDefault();break}case Zt.Z.ESC:gi(!1),Ai&&ne.stopPropagation()}},onKeyUp:function(){},scrollTo:function(ne){bi(ne)}}}),Qi.length===0)return Lt.createElement("div",{role:"listbox",id:"".concat(zn,"_list"),className:"".concat(ir,"-empty"),onMouseDown:xn},Si);var Tt=Object.keys(br).map(function(en){return br[en]}),Wt=function(ne){return ne.label};function qt(en,ne){var Me=en.group;return{role:Me?"presentation":"option",id:"".concat(zn,"_list_").concat(ne)}}var Se=function(ne){var Me=Qi[ne];if(!Me)return null;var Ke=Me.data||{},je=Ke.value,hn=Me.group,An=(0,Gt.Z)(Ke,!0),Ct=Wt(Me);return Me?Lt.createElement("div",(0,yt.Z)({"aria-label":typeof Ct=="string"&&!hn?Ct:null},An,{key:ne},qt(Me,ne),{"aria-selected":Hn(je)}),je):null},Te={role:"listbox",id:"".concat(zn,"_list")};return Lt.createElement(Lt.Fragment,null,Gi&&Lt.createElement("div",(0,yt.Z)({},Te,{style:{height:0,width:0,overflow:"hidden"}}),Se(Mr-1),Se(Mr),Se(Mr+1)),Lt.createElement(_i.Z,{itemKey:"key",ref:pn,data:Qi,height:Or,itemHeight:Wr,fullHeight:!1,onMouseDown:xn,onScroll:Ui,virtual:Gi,direction:Gr,innerProps:Gi?null:Te},function(en,ne){var Me=en.group,Ke=en.groupOption,je=en.data,hn=en.label,An=en.value,Ct=je.key;if(Me){var Qt,zt=(Qt=je.title)!==null&&Qt!==void 0?Qt:er(hn)?hn.toString():void 0;return Lt.createElement("div",{className:Kt()(ir,"".concat(ir,"-group"),je.className),title:zt},hn!==void 0?hn:Ct)}var de=je.disabled,ue=je.title,Ge=je.children,Ze=je.style,an=je.className,kn=(0,jt.Z)(je,tr),Un=(0,ti.Z)(kn,Tt),yn=Sr(An),si=de||!yn&&dr,vi="".concat(ir,"-option"),le=Kt()(ir,vi,an,(0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)({},"".concat(vi,"-grouped"),Ke),"".concat(vi,"-active"),Mr===ne&&!si),"".concat(vi,"-disabled"),si),"".concat(vi,"-selected"),yn)),ei=Wt(en),ni=!We||typeof We=="function"||yn,Wn=typeof ei=="number"?ei:ei||An,Vn=er(Wn)?Wn.toString():void 0;return ue!==void 0&&(Vn=ue),Lt.createElement("div",(0,yt.Z)({},(0,Gt.Z)(Un),Gi?{}:qt(en,ne),{"aria-selected":Hn(An),className:le,title:Vn,onMouseMove:function(){Mr===ne||si||tn(ne)},onClick:function(){si||_e(An)},style:Ze}),Lt.createElement("div",{className:"".concat(vi,"-content")},typeof Zi=="function"?Zi(en,{index:ne}):Wn),Lt.isValidElement(We)||yn,ni&&Lt.createElement(dt,{className:"".concat(ir,"-option-state"),customizeIcon:We,customizeIconProps:{value:An,disabled:si,isSelected:yn}},yn?"\u2713":null))}))},sr=Lt.forwardRef(yr),hr=sr,zi=function(te,be){var Jn=Lt.useRef({values:new Map,options:new Map}),Fn=Lt.useMemo(function(){var zn=Jn.current,Ai=zn.values,Ii=zn.options,Ki=te.map(function(Si){if(Si.label===void 0){var Ui;return(0,we.Z)((0,we.Z)({},Si),{},{label:(Ui=Ai.get(Si.value))===null||Ui===void 0?void 0:Ui.label})}return Si}),oi=new Map,gi=new Map;return Ki.forEach(function(Si){oi.set(Si.value,Si),gi.set(Si.value,be.get(Si.value)||Ii.get(Si.value))}),Jn.current.values=oi,Jn.current.options=gi,Ki},[te,be]),Be=Lt.useCallback(function(zn){return be.get(zn)||Jn.current.options.get(zn)},[be]);return[Fn,Be]};function gr(te,be){return ln(te).join("").toUpperCase().includes(be)}var Et=function(te,be,Jn,Fn,Be){return Lt.useMemo(function(){if(!Jn||Fn===!1)return te;var zn=be.options,Ai=be.label,Ii=be.value,Ki=[],oi=typeof Fn=="function",gi=Jn.toUpperCase(),Si=oi?Fn:function(ji,Mn){return Be?gr(Mn[Be],gi):Mn[zn]?gr(Mn[Ai!=="children"?Ai:"label"],gi):gr(Mn[Ii],gi)},Ui=oi?function(ji){return Ce(ji)}:function(ji){return ji};return te.forEach(function(ji){if(ji[zn]){var Mn=Si(Jn,Ui(ji));if(Mn)Ki.push(ji);else{var Ei=ji[zn].filter(function(xr){return Si(Jn,Ui(xr))});Ei.length&&Ki.push((0,we.Z)((0,we.Z)({},ji),{},(0,ie.Z)({},zn,Ei)))}return}Si(Jn,Ui(ji))&&Ki.push(ji)}),Ki},[te,Fn,Be,Jn,be])},Bn=Dt(6551),Gn=Dt(11592),fi=["children","value"],ci=["children"];function Kn(te){var be=te,Jn=be.key,Fn=be.props,Be=Fn.children,zn=Fn.value,Ai=(0,jt.Z)(Fn,fi);return(0,we.Z)({key:Jn,value:zn!==void 0?zn:Jn,children:Be},Ai)}function rn(te){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Gn.Z)(te).map(function(Jn,Fn){if(!Lt.isValidElement(Jn)||!Jn.type)return null;var Be=Jn,zn=Be.type.isSelectOptGroup,Ai=Be.key,Ii=Be.props,Ki=Ii.children,oi=(0,jt.Z)(Ii,ci);return be||!zn?Kn(Jn):(0,we.Z)((0,we.Z)({key:"__RC_SELECT_GRP__".concat(Ai===null?Fn:Ai,"__"),label:Ai},oi),{},{options:rn(Ki)})}).filter(function(Jn){return Jn})}var Yn=function(be,Jn,Fn,Be,zn){return Lt.useMemo(function(){var Ai=be,Ii=!be;Ii&&(Ai=rn(Jn));var Ki=new Map,oi=new Map,gi=function(ji,Mn,Ei){Ei&&typeof Ei=="string"&&ji.set(Mn[Ei],Mn)},Si=function Ui(ji){for(var Mn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ei=0;Ei<ji.length;Ei+=1){var xr=ji[Ei];!xr[Fn.options]||Mn?(Ki.set(xr[Fn.value],xr),gi(oi,xr,Fn.label),gi(oi,xr,Be),gi(oi,xr,zn)):Ui(xr[Fn.options],!0)}};return Si(Ai),{options:Ai,valueOptions:Ki,labelOptions:oi}},[be,Jn,Fn,Be,zn])},Fe=Yn;function Ne(te){var be=Lt.useRef();be.current=te;var Jn=Lt.useCallback(function(){return be.current.apply(be,arguments)},[]);return Jn}function ke(te){var be=te.mode,Jn=te.options,Fn=te.children,Be=te.backfill,zn=te.allowClear,Ai=te.placeholder,Ii=te.getInputElement,Ki=te.showSearch,oi=te.onSearch,gi=te.defaultOpen,Si=te.autoFocus,Ui=te.labelInValue,ji=te.value,Mn=te.inputValue,Ei=te.optionLabelProp,xr=isMultiple(be),Tr=Ki!==void 0?Ki:xr||be==="combobox",_r=Jn||convertChildrenToData(Fn);if(warning(be!=="tags"||_r.every(function(Gi){return!Gi.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),be==="tags"||be==="combobox"){var We=_r.some(function(Gi){return Gi.options?Gi.options.some(function(Gr){return typeof("value"in Gr?Gr.value:Gr.key)=="number"}):typeof("value"in Gi?Gi.value:Gi.key)=="number"});warning(!We,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(be!=="combobox"||!Ei,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(be==="combobox"||!Be,"`backfill` only works with `combobox` mode."),warning(be==="combobox"||!Ii,"`getInputElement` only work with `combobox` mode."),noteOnce(be!=="combobox"||!Ii||!zn||!Ai,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),oi&&!Tr&&be!=="combobox"&&be!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!gi||Si,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),ji!=null){var ar=toArray(ji);warning(!Ui||ar.every(function(Gi){return _typeof(Gi)==="object"&&("key"in Gi||"value"in Gi)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!xr||Array.isArray(ji),"`value` should be array when `mode` is `multiple` or `tags`")}if(Fn){var br=null;toNodeArray(Fn).some(function(Gi){if(!React.isValidElement(Gi)||!Gi.type)return!1;var Gr=Gi,Or=Gr.type;if(Or.isSelectOption)return!1;if(Or.isSelectOptGroup){var Wr=toNodeArray(Gi.props.children).every(function(Zi){return!React.isValidElement(Zi)||!Gi.type||Zi.type.isSelectOption?!0:(br=Zi.type,!1)});return!Wr}return br=Or,!0}),br&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(br.displayName||br.name||br,"`.")),warning(Mn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function sn(te,be){if(te){var Jn=function Fn(Be){for(var zn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ai=0;Ai<Be.length;Ai++){var Ii=Be[Ai];if(Ii[be==null?void 0:be.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!zn&&Array.isArray(Ii[be==null?void 0:be.options])&&Fn(Ii[be==null?void 0:be.options],!0))break}};Jn(te)}}var xi=null,yi=["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"],Fi=["inputValue"];function Xe(te){return!te||(0,ce.Z)(te)!=="object"}var Dn=Lt.forwardRef(function(te,be){var Jn=te.id,Fn=te.mode,Be=te.prefixCls,zn=Be===void 0?"rc-select":Be,Ai=te.backfill,Ii=te.fieldNames,Ki=te.inputValue,oi=te.searchValue,gi=te.onSearch,Si=te.autoClearSearchValue,Ui=Si===void 0?!0:Si,ji=te.onSelect,Mn=te.onDeselect,Ei=te.dropdownMatchSelectWidth,xr=Ei===void 0?!0:Ei,Tr=te.filterOption,_r=te.filterSort,We=te.optionFilterProp,ar=te.optionLabelProp,br=te.options,Gi=te.optionRender,Gr=te.children,Or=te.defaultActiveFirstOption,Wr=te.menuItemSelectedIcon,Zi=te.virtual,ir=te.direction,Qi=te.listHeight,pn=Qi===void 0?200:Qi,dr=te.listItemHeight,xn=dr===void 0?20:dr,bi=te.labelRender,Sr=te.value,Er=te.defaultValue,io=te.labelInValue,Yr=te.onChange,Mr=te.maxCount,uo=(0,jt.Z)(te,yi),tn=(0,Bn.ZP)(Jn),Hn=Ie(Fn),_e=!!(!br&&Gr),Tt=Lt.useMemo(function(){return Tr===void 0&&Fn==="combobox"?!1:Tr},[Tr,Fn]),Wt=Lt.useMemo(function(){return En(Ii,_e)},[JSON.stringify(Ii),_e]),qt=(0,Ve.Z)("",{value:oi!==void 0?oi:Ki,postState:function(Ji){return Ji||""}}),Se=(0,Ee.Z)(qt,2),Te=Se[0],en=Se[1],ne=Fe(br,Gr,Wt,We,ar),Me=ne.valueOptions,Ke=ne.labelOptions,je=ne.options,hn=Lt.useCallback(function(Vi){var Ji=ln(Vi);return Ji.map(function(lr){var qi,nr,ki,Br,Kr;if(Xe(lr))qi=lr;else{var Qr;ki=lr.key,nr=lr.label,qi=(Qr=lr.value)!==null&&Qr!==void 0?Qr:ki}var Pr=Me.get(qi);if(Pr){var to;if(nr===void 0&&(nr=Pr==null?void 0:Pr[ar||Wt.label]),ki===void 0&&(ki=(to=Pr==null?void 0:Pr.key)!==null&&to!==void 0?to:qi),Br=Pr==null?void 0:Pr.disabled,Kr=Pr==null?void 0:Pr.title,0)var Ur}return{label:nr,value:qi,key:ki,disabled:Br,title:Kr}})},[Wt,ar,Me]),An=(0,Ve.Z)(Er,{value:Sr}),Ct=(0,Ee.Z)(An,2),Qt=Ct[0],zt=Ct[1],de=Lt.useMemo(function(){var Vi,Ji=Hn&&Qt===null?[]:Qt,lr=hn(Ji);return Fn==="combobox"&&Yt((Vi=lr[0])===null||Vi===void 0?void 0:Vi.value)?[]:lr},[Qt,hn,Fn,Hn]),ue=zi(de,Me),Ge=(0,Ee.Z)(ue,2),Ze=Ge[0],an=Ge[1],kn=Lt.useMemo(function(){if(!Fn&&Ze.length===1){var Vi=Ze[0];if(Vi.value===null&&(Vi.label===null||Vi.label===void 0))return[]}return Ze.map(function(Ji){var lr;return(0,we.Z)((0,we.Z)({},Ji),{},{label:(lr=typeof bi=="function"?bi(Ji):Ji.label)!==null&&lr!==void 0?lr:Ji.value})})},[Fn,Ze,bi]),Un=Lt.useMemo(function(){return new Set(Ze.map(function(Vi){return Vi.value}))},[Ze]);Lt.useEffect(function(){if(Fn==="combobox"){var Vi,Ji=(Vi=Ze[0])===null||Vi===void 0?void 0:Vi.value;en(se(Ji)?String(Ji):"")}},[Ze]);var yn=Ne(function(Vi,Ji){var lr=Ji!=null?Ji:Vi;return(0,ie.Z)((0,ie.Z)({},Wt.value,Vi),Wt.label,lr)}),si=Lt.useMemo(function(){if(Fn!=="tags")return je;var Vi=(0,ee.Z)(je),Ji=function(qi){return Me.has(qi)};return(0,ee.Z)(Ze).sort(function(lr,qi){return lr.value<qi.value?-1:1}).forEach(function(lr){var qi=lr.value;Ji(qi)||Vi.push(yn(qi,lr.label))}),Vi},[yn,je,Me,Ze,Fn]),vi=Et(si,Wt,Te,Tt,We),le=Lt.useMemo(function(){return Fn!=="tags"||!Te||vi.some(function(Vi){return Vi[We||"value"]===Te})||vi.some(function(Vi){return Vi[Wt.value]===Te})?vi:[yn(Te)].concat((0,ee.Z)(vi))},[yn,We,Fn,vi,Te,Wt]),ei=function Vi(Ji){var lr=(0,ee.Z)(Ji).sort(function(qi,nr){return _r(qi,nr,{searchValue:Te})});return lr.map(function(qi){return Array.isArray(qi.options)?(0,we.Z)((0,we.Z)({},qi),{},{options:qi.options.length>0?Vi(qi.options):qi.options}):qi})},ni=Lt.useMemo(function(){return _r?ei(le):le},[le,_r,Te]),Wn=Lt.useMemo(function(){return De(ni,{fieldNames:Wt,childrenAsData:_e})},[ni,Wt,_e]),Vn=function(Ji){var lr=hn(Ji);if(zt(lr),Yr&&(lr.length!==Ze.length||lr.some(function(ki,Br){var Kr;return((Kr=Ze[Br])===null||Kr===void 0?void 0:Kr.value)!==(ki==null?void 0:ki.value)}))){var qi=io?lr:lr.map(function(ki){return ki.value}),nr=lr.map(function(ki){return Ce(an(ki.value))});Yr(Hn?qi:qi[0],Hn?nr:nr[0])}},Ni=Lt.useState(null),Di=(0,Ee.Z)(Ni,2),Mi=Di[0],Ti=Di[1],Ri=Lt.useState(0),or=(0,Ee.Z)(Ri,2),Ir=or[0],jr=or[1],Hr=Or!==void 0?Or:Fn!=="combobox",Bi=Lt.useCallback(function(Vi,Ji){var lr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},qi=lr.source,nr=qi===void 0?"keyboard":qi;jr(Ji),Ai&&Fn==="combobox"&&Vi!==null&&nr==="keyboard"&&Ti(String(Vi))},[Ai,Fn]),Ar=function(Ji,lr,qi){var nr=function(){var mo,Bo=an(Ji);return[io?{label:Bo==null?void 0:Bo[Wt.label],value:Ji,key:(mo=Bo==null?void 0:Bo.key)!==null&&mo!==void 0?mo:Ji}:Ji,Ce(Bo)]};if(lr&&ji){var ki=nr(),Br=(0,Ee.Z)(ki,2),Kr=Br[0],Qr=Br[1];ji(Kr,Qr)}else if(!lr&&Mn&&qi!=="clear"){var Pr=nr(),to=(0,Ee.Z)(Pr,2),Ur=to[0],Xr=to[1];Mn(Ur,Xr)}},wr=Ne(function(Vi,Ji){var lr,qi=Hn?Ji.selected:!0;qi?lr=Hn?[].concat((0,ee.Z)(Ze),[Vi]):[Vi]:lr=Ze.filter(function(nr){return nr.value!==Vi}),Vn(lr),Ar(Vi,qi),Fn==="combobox"?Ti(""):(!Ie||Ui)&&(en(""),Ti(""))}),Nr=function(Ji,lr){Vn(Ji);var qi=lr.type,nr=lr.values;(qi==="remove"||qi==="clear")&&nr.forEach(function(ki){Ar(ki.value,!1,qi)})},mr=function(Ji,lr){if(en(Ji),Ti(null),lr.source==="submit"){var qi=(Ji||"").trim();if(qi){var nr=Array.from(new Set([].concat((0,ee.Z)(Un),[qi])));Vn(nr),Ar(qi,!0),en("")}return}lr.source!=="blur"&&(Fn==="combobox"&&Vn(Ji),gi==null||gi(Ji))},Rr=function(Ji){var lr=Ji;Fn!=="tags"&&(lr=Ji.map(function(nr){var ki=Ke.get(nr);return ki==null?void 0:ki.value}).filter(function(nr){return nr!==void 0}));var qi=Array.from(new Set([].concat((0,ee.Z)(Un),(0,ee.Z)(lr))));Vn(qi),qi.forEach(function(nr){Ar(nr,!0)})},ri=Lt.useMemo(function(){var Vi=Zi!==!1&&xr!==!1;return(0,we.Z)((0,we.Z)({},ne),{},{flattenOptions:Wn,onActiveValue:Bi,defaultActiveFirstOption:Hr,onSelect:wr,menuItemSelectedIcon:Wr,rawValues:Un,fieldNames:Wt,virtual:Vi,direction:ir,listHeight:pn,listItemHeight:xn,childrenAsData:_e,maxCount:Mr,optionRender:Gi})},[Mr,ne,Wn,Bi,Hr,wr,Wr,Un,Wt,Zi,xr,ir,pn,xn,_e,Gi]);return Lt.createElement(Nn.Provider,{value:ri},Lt.createElement(cn,(0,yt.Z)({},uo,{id:tn,prefixCls:zn,ref:be,omitDomProps:Fi,mode:Fn,displayValues:kn,onDisplayValuesChange:Nr,direction:ir,searchValue:Te,onSearch:mr,autoClearSearchValue:Ui,onSearchSplit:Rr,dropdownMatchSelectWidth:xr,OptionList:hr,emptyOptions:!Wn.length,activeValue:Mi,activeDescendantId:"".concat(tn,"_list_").concat(Ir)})))}),mn=Dn;mn.Option=Ci,mn.OptGroup=Xn;var Hi=mn,qn=Hi},63158:function(Qn,pi,Dt){"use strict";var yt=Dt(67711),ee=Dt(52873),ie=Dt(16886),we=Dt(33346),Ee=Dt(59301),jt=Dt(92310),ce=Dt.n(jt),Ve=Dt(18929),xe=Dt(10228),Lt=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],ze=Ee.forwardRef(function(Kt,Je){var Bt,nt=Kt.prefixCls,et=nt===void 0?"rc-switch":nt,dt=Kt.className,lt=Kt.checked,gt=Kt.defaultChecked,mt=Kt.disabled,St=Kt.loadingIcon,Mt=Kt.checkedChildren,It=Kt.unCheckedChildren,Zt=Kt.onClick,oe=Kt.onChange,Gt=Kt.onKeyDown,_t=(0,we.Z)(Kt,Lt),ge=(0,Ve.Z)(!1,{value:lt,defaultValue:gt}),me=(0,ie.Z)(ge,2),Pe=me[0],ye=me[1];function He(Sn,se){var Yt=Pe;return mt||(Yt=Sn,ye(Yt),oe==null||oe(Yt,se)),Yt}function wn(Sn){Sn.which===xe.Z.LEFT?He(!1,Sn):Sn.which===xe.Z.RIGHT&&He(!0,Sn),Gt==null||Gt(Sn)}function ln(Sn){var se=He(!Pe,Sn);Zt==null||Zt(se,Sn)}var Oe=ce()(et,dt,(Bt={},(0,ee.Z)(Bt,"".concat(et,"-checked"),Pe),(0,ee.Z)(Bt,"".concat(et,"-disabled"),mt),Bt));return Ee.createElement("button",(0,yt.Z)({},_t,{type:"button",role:"switch","aria-checked":Pe,disabled:mt,className:Oe,ref:Je,onKeyDown:wn,onClick:ln}),St,Ee.createElement("span",{className:"".concat(et,"-inner")},Ee.createElement("span",{className:"".concat(et,"-inner-checked")},Mt),Ee.createElement("span",{className:"".concat(et,"-inner-unchecked")},It)))});ze.displayName="Switch",pi.Z=ze},86351:function(Qn,pi,Dt){"use strict";Dt.d(pi,{R:function(){return ee},w:function(){return yt}});var yt={},ee="rc-table-internal-hook"},97347:function(Qn,pi,Dt){"use strict";Dt.d(pi,{L:function(){return et},Z:function(){return St}});var yt=Dt(16886),ee=Dt(52873),ie=Dt(15142),we=Dt(26420),Ee=Dt(98506),jt=Dt(33346),ce=Dt(11592),Ve=Dt(48736),xe=Dt(59301),Lt=Dt(86351),ze=Dt(54451);function Kt(Mt){var It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof It=="number"?It:It.endsWith("%")?Mt*parseFloat(It)/100:null}function Je(Mt,It,Zt){return xe.useMemo(function(){if(It&&It>0){var oe=0,Gt=0;Mt.forEach(function(ln){var Oe=Kt(It,ln.width);Oe?oe+=Oe:Gt+=1});var _t=Math.max(It,Zt),ge=Math.max(_t-oe,Gt),me=Gt,Pe=ge/Gt,ye=0,He=Mt.map(function(ln){var Oe=(0,Ee.Z)({},ln),Sn=Kt(It,Oe.width);if(Sn)Oe.width=Sn;else{var se=Math.floor(Pe);Oe.width=me===1?ge:se,ge-=se,me-=1}return ye+=Oe.width,Oe});if(ye<_t){var wn=_t/ye;ge=_t,He.forEach(function(ln,Oe){var Sn=Math.floor(ln.width*wn);ln.width=Oe===He.length-1?ge:Sn,ge-=Sn})}return[He,Math.max(ye,_t)]}return[Mt,It]},[Mt,It,Zt])}var Bt=["children"],nt=["fixed"];function et(Mt){return(0,ce.Z)(Mt).filter(function(It){return xe.isValidElement(It)}).map(function(It){var Zt=It.key,oe=It.props,Gt=oe.children,_t=(0,jt.Z)(oe,Bt),ge=(0,Ee.Z)({key:Zt},_t);return Gt&&(ge.children=et(Gt)),ge})}function dt(Mt){return Mt.filter(function(It){return It&&(0,we.Z)(It)==="object"&&!It.hidden}).map(function(It){var Zt=It.children;return Zt&&Zt.length>0?(0,Ee.Z)((0,Ee.Z)({},It),{},{children:dt(Zt)}):It})}function lt(Mt){var It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return Mt.filter(function(Zt){return Zt&&(0,we.Z)(Zt)==="object"}).reduce(function(Zt,oe,Gt){var _t=oe.fixed,ge=_t===!0?"left":_t,me="".concat(It,"-").concat(Gt),Pe=oe.children;return Pe&&Pe.length>0?[].concat((0,ie.Z)(Zt),(0,ie.Z)(lt(Pe,me).map(function(ye){return(0,Ee.Z)({fixed:ge},ye)}))):[].concat((0,ie.Z)(Zt),[(0,Ee.Z)((0,Ee.Z)({key:me},oe),{},{fixed:ge})])},[])}function gt(Mt){return Mt.map(function(It){var Zt=It.fixed,oe=(0,jt.Z)(It,nt),Gt=Zt;return Zt==="left"?Gt="right":Zt==="right"&&(Gt="left"),(0,Ee.Z)({fixed:Gt},oe)})}function mt(Mt,It){var Zt=Mt.prefixCls,oe=Mt.columns,Gt=Mt.children,_t=Mt.expandable,ge=Mt.expandedKeys,me=Mt.columnTitle,Pe=Mt.getRowKey,ye=Mt.onTriggerExpand,He=Mt.expandIcon,wn=Mt.rowExpandable,ln=Mt.expandIconColumnIndex,Oe=Mt.direction,Sn=Mt.expandRowByClick,se=Mt.columnWidth,Yt=Mt.fixed,fn=Mt.scrollWidth,_n=Mt.clientWidth,In=xe.useMemo(function(){var Cn=oe||et(Gt)||[];return dt(Cn.slice())},[oe,Gt]),on=xe.useMemo(function(){if(_t){var Cn=In.slice();if(!Cn.includes(Lt.w)){var Ot=ln||0;Ot>=0&&(Ot||Yt==="left"||!Yt)&&Cn.splice(Ot,0,Lt.w),Yt==="right"&&Cn.splice(In.length,0,Lt.w)}var At=Cn.indexOf(Lt.w);Cn=Cn.filter(function(kt,$t){return kt!==Lt.w||$t===At});var wt=In[At],Nt;Yt?Nt=Yt:Nt=wt?wt.fixed:null;var Vt=(0,ee.Z)((0,ee.Z)((0,ee.Z)((0,ee.Z)((0,ee.Z)((0,ee.Z)({},ze.v,{className:"".concat(Zt,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",me),"fixed",Nt),"className","".concat(Zt,"-row-expand-icon-cell")),"width",se),"render",function($t,nn,dn){var En=Pe(nn,dn),De=ge.has(En),Ce=wn?wn(nn):!0,Qe=He({prefixCls:Zt,expanded:De,expandable:Ce,record:nn,onExpand:ye});return Sn?xe.createElement("span",{onClick:function(Nn){return Nn.stopPropagation()}},Qe):Qe});return Cn.map(function(kt){return kt===Lt.w?Vt:kt})}return In.filter(function(kt){return kt!==Lt.w})},[_t,In,Pe,ge,He,Oe]),jn=xe.useMemo(function(){var Cn=on;return It&&(Cn=It(Cn)),Cn.length||(Cn=[{render:function(){return null}}]),Cn},[It,on,Oe]),Pn=xe.useMemo(function(){return Oe==="rtl"?gt(lt(jn)):lt(jn)},[jn,Oe,fn]),di=xe.useMemo(function(){for(var Cn=-1,Ot=Pn.length-1;Ot>=0;Ot-=1){var At=Pn[Ot].fixed;if(At==="left"||At===!0){Cn=Ot;break}}if(Cn>=0)for(var wt=0;wt<=Cn;wt+=1){var Nt=Pn[wt].fixed;if(Nt!=="left"&&Nt!==!0)return!0}var Vt=Pn.findIndex(function(nn){var dn=nn.fixed;return dn==="right"});if(Vt>=0)for(var kt=Vt;kt<Pn.length;kt+=1){var $t=Pn[kt].fixed;if($t!=="right")return!0}return!1},[Pn]),Re=Je(Pn,fn,_n),ve=(0,yt.Z)(Re,2),Ye=ve[0],mi=ve[1];return[jn,Ye,mi,di]}var St=mt},4030:function(Qn,pi,Dt){"use strict";Dt.d(pi,{w2:function(){return yt.w},vP:function(){return er.v},RQ:function(){return yt.R},ER:function(){return En},Q$:function(){return Tr},TN:function(){return Yr}});var yt=Dt(86351),ee=Dt(16886),ie=Dt(6089),we=Dt(34280),Ee=Dt(13697),jt=Dt(59301),ce=Dt(4676);function Ve(tn){var Hn=jt.createContext(void 0),_e=function(Wt){var qt=Wt.value,Se=Wt.children,Te=jt.useRef(qt);Te.current=qt;var en=jt.useState(function(){return{getValue:function(){return Te.current},listeners:new Set}}),ne=(0,ee.Z)(en,1),Me=ne[0];return(0,we.Z)(function(){(0,ce.unstable_batchedUpdates)(function(){Me.listeners.forEach(function(Ke){Ke(qt)})})},[qt]),jt.createElement(Hn.Provider,{value:Me},Se)};return{Context:Hn,Provider:_e,defaultValue:tn}}function xe(tn,Hn){var _e=(0,ie.Z)(typeof Hn=="function"?Hn:function(Ke){if(Hn===void 0)return Ke;if(!Array.isArray(Hn))return Ke[Hn];var je={};return Hn.forEach(function(hn){je[hn]=Ke[hn]}),je}),Tt=jt.useContext(tn==null?void 0:tn.Context),Wt=Tt||{},qt=Wt.listeners,Se=Wt.getValue,Te=jt.useRef();Te.current=_e(Tt?Se():tn==null?void 0:tn.defaultValue);var en=jt.useState({}),ne=(0,ee.Z)(en,2),Me=ne[1];return(0,we.Z)(function(){if(!Tt)return;function Ke(je){var hn=_e(je);(0,Ee.Z)(Te.current,hn,!0)||Me({})}return qt.add(Ke),function(){qt.delete(Ke)}},[Tt]),Te.current}var Lt=Dt(67711),ze=Dt(8654);function Kt(){var tn=jt.createContext(null);function Hn(){return jt.useContext(tn)}function _e(Wt,qt){var Se=(0,ze.Yr)(Wt),Te=function(ne,Me){var Ke=Se?{ref:Me}:{},je=jt.useRef(0),hn=jt.useRef(ne),An=Hn();return An!==null?jt.createElement(Wt,(0,Lt.Z)({},ne,Ke)):((!qt||qt(hn.current,ne))&&(je.current+=1),hn.current=ne,jt.createElement(tn.Provider,{value:je.current},jt.createElement(Wt,(0,Lt.Z)({},ne,Ke))))};return Se?jt.forwardRef(Te):Te}function Tt(Wt,qt){var Se=(0,ze.Yr)(Wt),Te=function(ne,Me){var Ke=Se?{ref:Me}:{};return Hn(),jt.createElement(Wt,(0,Lt.Z)({},ne,Ke))};return Se?jt.memo(jt.forwardRef(Te),qt):jt.memo(Te,qt)}return{makeImmutable:_e,responseImmutable:Tt,useImmutableMark:Hn}}var Je=Kt(),Bt=Je.makeImmutable,nt=Je.responseImmutable,et=Je.useImmutableMark,dt=Kt(),lt=dt.makeImmutable,gt=dt.responseImmutable,mt=dt.useImmutableMark,St=Ve(),Mt=St;function It(tn,Hn){var _e=React.useRef(0);_e.current+=1;var Tt=React.useRef(tn),Wt=[];Object.keys(tn||{}).map(function(Se){var Te;(tn==null?void 0:tn[Se])!==((Te=Tt.current)===null||Te===void 0?void 0:Te[Se])&&Wt.push(Se)}),Tt.current=tn;var qt=React.useRef([]);return Wt.length&&(qt.current=Wt),React.useDebugValue(_e.current),React.useDebugValue(qt.current.join(", ")),Hn&&console.log("".concat(Hn,":"),_e.current,qt.current),_e.current}var Zt=null,oe=null,Gt=Dt(26420),_t=Dt(98506),ge=Dt(52873),me=Dt(92310),Pe=Dt.n(me),ye=Dt(80547),He=Dt(97938),wn=Dt(48736),ln=jt.createContext({renderWithProps:!1}),Oe=ln,Sn="RC_TABLE_KEY";function se(tn){return tn==null?[]:Array.isArray(tn)?tn:[tn]}function Yt(tn){var Hn=[],_e={};return tn.forEach(function(Tt){for(var Wt=Tt||{},qt=Wt.key,Se=Wt.dataIndex,Te=qt||se(Se).join("-")||Sn;_e[Te];)Te="".concat(Te,"_next");_e[Te]=!0,Hn.push(Te)}),Hn}function fn(tn){return tn!=null}function _n(tn){return typeof tn=="number"&&!Number.isNaN(tn)}function In(tn){return tn&&(0,Gt.Z)(tn)==="object"&&!Array.isArray(tn)&&!jt.isValidElement(tn)}function on(tn,Hn,_e,Tt,Wt,qt){var Se=jt.useContext(Oe),Te=mt(),en=(0,ye.Z)(function(){if(fn(Tt))return[Tt];var ne=Hn==null||Hn===""?[]:Array.isArray(Hn)?Hn:[Hn],Me=(0,He.Z)(tn,ne),Ke=Me,je=void 0;if(Wt){var hn=Wt(Me,tn,_e);In(hn)?(Ke=hn.children,je=hn.props,Se.renderWithProps=!0):Ke=hn}return[Ke,je]},[Te,tn,Tt,Hn,Wt,_e],function(ne,Me){if(qt){var Ke=(0,ee.Z)(ne,2),je=Ke[1],hn=(0,ee.Z)(Me,2),An=hn[1];return qt(An,je)}return Se.renderWithProps?!0:!(0,Ee.Z)(ne,Me,!0)});return en}function jn(tn,Hn,_e,Tt){var Wt=tn+Hn-1;return tn<=Tt&&Wt>=_e}function Pn(tn,Hn){return xe(Mt,function(_e){var Tt=jn(tn,Hn||1,_e.hoverStartRow,_e.hoverEndRow);return[Tt,_e.onHover]})}var di=Dt(70425),Re=function(Hn){var _e=Hn.ellipsis,Tt=Hn.rowType,Wt=Hn.children,qt,Se=_e===!0?{showTitle:!0}:_e;return Se&&(Se.showTitle||Tt==="header")&&(typeof Wt=="string"||typeof Wt=="number"?qt=Wt.toString():jt.isValidElement(Wt)&&typeof Wt.props.children=="string"&&(qt=Wt.props.children)),qt};function ve(tn){var Hn,_e,Tt,Wt,qt,Se,Te,en,ne=tn.component,Me=tn.children,Ke=tn.ellipsis,je=tn.scope,hn=tn.prefixCls,An=tn.className,Ct=tn.align,Qt=tn.record,zt=tn.render,de=tn.dataIndex,ue=tn.renderIndex,Ge=tn.shouldCellUpdate,Ze=tn.index,an=tn.rowType,kn=tn.colSpan,Un=tn.rowSpan,yn=tn.fixLeft,si=tn.fixRight,vi=tn.firstFixLeft,le=tn.lastFixLeft,ei=tn.firstFixRight,ni=tn.lastFixRight,Wn=tn.appendNode,Vn=tn.additionalProps,Ni=Vn===void 0?{}:Vn,Di=tn.isSticky,Mi="".concat(hn,"-cell"),Ti=xe(Mt,["supportSticky","allColumnsFixedLeft","rowHoverable"]),Ri=Ti.supportSticky,or=Ti.allColumnsFixedLeft,Ir=Ti.rowHoverable,jr=on(Qt,de,ue,Me,zt,Ge),Hr=(0,ee.Z)(jr,2),Bi=Hr[0],Ar=Hr[1],wr={},Nr=typeof yn=="number"&&Ri,mr=typeof si=="number"&&Ri;Nr&&(wr.position="sticky",wr.left=yn),mr&&(wr.position="sticky",wr.right=si);var Rr=(Hn=(_e=(Tt=Ar==null?void 0:Ar.colSpan)!==null&&Tt!==void 0?Tt:Ni.colSpan)!==null&&_e!==void 0?_e:kn)!==null&&Hn!==void 0?Hn:1,ri=(Wt=(qt=(Se=Ar==null?void 0:Ar.rowSpan)!==null&&Se!==void 0?Se:Ni.rowSpan)!==null&&qt!==void 0?qt:Un)!==null&&Wt!==void 0?Wt:1,Vi=Pn(Ze,ri),Ji=(0,ee.Z)(Vi,2),lr=Ji[0],qi=Ji[1],nr=(0,di.zX)(function(Ur){var Xr;Qt&&qi(Ze,Ze+ri-1),Ni==null||(Xr=Ni.onMouseEnter)===null||Xr===void 0||Xr.call(Ni,Ur)}),ki=(0,di.zX)(function(Ur){var Xr;Qt&&qi(-1,-1),Ni==null||(Xr=Ni.onMouseLeave)===null||Xr===void 0||Xr.call(Ni,Ur)});if(Rr===0||ri===0)return null;var Br=(Te=Ni.title)!==null&&Te!==void 0?Te:Re({rowType:an,ellipsis:Ke,children:Bi}),Kr=Pe()(Mi,An,(en={},(0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)(en,"".concat(Mi,"-fix-left"),Nr&&Ri),"".concat(Mi,"-fix-left-first"),vi&&Ri),"".concat(Mi,"-fix-left-last"),le&&Ri),"".concat(Mi,"-fix-left-all"),le&&or&&Ri),"".concat(Mi,"-fix-right"),mr&&Ri),"".concat(Mi,"-fix-right-first"),ei&&Ri),"".concat(Mi,"-fix-right-last"),ni&&Ri),"".concat(Mi,"-ellipsis"),Ke),"".concat(Mi,"-with-append"),Wn),"".concat(Mi,"-fix-sticky"),(Nr||mr)&&Di&&Ri),(0,ge.Z)(en,"".concat(Mi,"-row-hover"),!Ar&&lr)),Ni.className,Ar==null?void 0:Ar.className),Qr={};Ct&&(Qr.textAlign=Ct);var Pr=(0,_t.Z)((0,_t.Z)((0,_t.Z)((0,_t.Z)({},Ar==null?void 0:Ar.style),wr),Qr),Ni.style),to=Bi;return(0,Gt.Z)(to)==="object"&&!Array.isArray(to)&&!jt.isValidElement(to)&&(to=null),Ke&&(le||ei)&&(to=jt.createElement("span",{className:"".concat(Mi,"-content")},to)),jt.createElement(ne,(0,Lt.Z)({},Ar,Ni,{className:Kr,style:Pr,title:Br,scope:je,onMouseEnter:Ir?nr:void 0,onMouseLeave:Ir?ki:void 0,colSpan:Rr!==1?Rr:null,rowSpan:ri!==1?ri:null}),Wn,to)}var Ye=jt.memo(ve);function mi(tn,Hn,_e,Tt,Wt){var qt=_e[tn]||{},Se=_e[Hn]||{},Te,en;qt.fixed==="left"?Te=Tt.left[Wt==="rtl"?Hn:tn]:Se.fixed==="right"&&(en=Tt.right[Wt==="rtl"?tn:Hn]);var ne=!1,Me=!1,Ke=!1,je=!1,hn=_e[Hn+1],An=_e[tn-1],Ct=hn&&!hn.fixed||An&&!An.fixed||_e.every(function(Ge){return Ge.fixed==="left"});if(Wt==="rtl"){if(Te!==void 0){var Qt=An&&An.fixed==="left";je=!Qt&&Ct}else if(en!==void 0){var zt=hn&&hn.fixed==="right";Ke=!zt&&Ct}}else if(Te!==void 0){var de=hn&&hn.fixed==="left";ne=!de&&Ct}else if(en!==void 0){var ue=An&&An.fixed==="right";Me=!ue&&Ct}return{fixLeft:Te,fixRight:en,lastFixLeft:ne,firstFixRight:Me,lastFixRight:Ke,firstFixLeft:je,isSticky:Tt.isSticky}}var Cn=jt.createContext({}),Ot=Cn;function At(tn){var Hn=tn.className,_e=tn.index,Tt=tn.children,Wt=tn.colSpan,qt=Wt===void 0?1:Wt,Se=tn.rowSpan,Te=tn.align,en=xe(Mt,["prefixCls","direction"]),ne=en.prefixCls,Me=en.direction,Ke=jt.useContext(Ot),je=Ke.scrollColumnIndex,hn=Ke.stickyOffsets,An=Ke.flattenColumns,Ct=_e+qt-1,Qt=Ct+1===je?qt+1:qt,zt=mi(_e,_e+Qt-1,An,hn,Me);return jt.createElement(Ye,(0,Lt.Z)({className:Hn,index:_e,component:"td",prefixCls:ne,record:null,dataIndex:null,align:Te,colSpan:Qt,rowSpan:Se,render:function(){return Tt}},zt))}var wt=Dt(33346),Nt=["children"];function Vt(tn){var Hn=tn.children,_e=(0,wt.Z)(tn,Nt);return jt.createElement("tr",_e,Hn)}function kt(tn){var Hn=tn.children;return Hn}kt.Row=Vt,kt.Cell=At;var $t=kt;function nn(tn){var Hn=tn.children,_e=tn.stickyOffsets,Tt=tn.flattenColumns,Wt=xe(Mt,"prefixCls"),qt=Tt.length-1,Se=Tt[qt],Te=jt.useMemo(function(){return{stickyOffsets:_e,flattenColumns:Tt,scrollColumnIndex:Se!=null&&Se.scrollbar?qt:null}},[Se,Tt,qt,_e]);return jt.createElement(Ot.Provider,{value:Te},jt.createElement("tfoot",{className:"".concat(Wt,"-summary")},Hn))}var dn=gt(nn),En=$t,De=Dt(29301),Ce=Dt(24514),Qe=Dt(75152),un=Dt(26112);function Nn(tn,Hn,_e,Tt,Wt,qt,Se){tn.push({record:Hn,indent:_e,index:Se});var Te=qt(Hn),en=Wt==null?void 0:Wt.has(Te);if(Hn&&Array.isArray(Hn[Tt])&&en)for(var ne=0;ne<Hn[Tt].length;ne+=1)Nn(tn,Hn[Tt][ne],_e+1,Tt,Wt,qt,ne)}function ai(tn,Hn,_e,Tt){var Wt=jt.useMemo(function(){if(_e!=null&&_e.size){for(var qt=[],Se=0;Se<(tn==null?void 0:tn.length);Se+=1){var Te=tn[Se];Nn(qt,Te,0,Hn,_e,Tt,Se)}return qt}return tn==null?void 0:tn.map(function(en,ne){return{record:en,indent:0,index:ne}})},[tn,Hn,_e,Tt]);return Wt}function Tn(tn,Hn,_e,Tt){var Wt=xe(Mt,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),qt=Wt.flattenColumns,Se=Wt.expandableType,Te=Wt.expandedKeys,en=Wt.childrenColumnName,ne=Wt.onTriggerExpand,Me=Wt.rowExpandable,Ke=Wt.onRow,je=Wt.expandRowByClick,hn=Wt.rowClassName,An=Se==="nest",Ct=Se==="row"&&(!Me||Me(tn)),Qt=Ct||An,zt=Te&&Te.has(Hn),de=en&&tn&&tn[en],ue=(0,di.zX)(ne),Ge=Ke==null?void 0:Ke(tn,_e),Ze=Ge==null?void 0:Ge.onClick,an=function(si){je&&Qt&&ne(tn,si);for(var vi=arguments.length,le=new Array(vi>1?vi-1:0),ei=1;ei<vi;ei++)le[ei-1]=arguments[ei];Ze==null||Ze.apply(void 0,[si].concat(le))},kn;typeof hn=="string"?kn=hn:typeof hn=="function"&&(kn=hn(tn,_e,Tt));var Un=Yt(qt);return(0,_t.Z)((0,_t.Z)({},Wt),{},{columnsKey:Un,nestExpandable:An,expanded:zt,hasNestChildren:de,record:tn,onTriggerExpand:ue,rowSupportExpand:Ct,expandable:Qt,rowProps:(0,_t.Z)((0,_t.Z)({},Ge),{},{className:Pe()(kn,Ge==null?void 0:Ge.className),onClick:an})})}function bn(tn){var Hn=tn.prefixCls,_e=tn.children,Tt=tn.component,Wt=tn.cellComponent,qt=tn.className,Se=tn.expanded,Te=tn.colSpan,en=tn.isEmpty,ne=xe(Mt,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Me=ne.scrollbarSize,Ke=ne.fixHeader,je=ne.fixColumn,hn=ne.componentWidth,An=ne.horizonScroll,Ct=_e;return(en?An&&hn:je)&&(Ct=jt.createElement("div",{style:{width:hn-(Ke&&!en?Me:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Hn,"-expanded-row-fixed")},Ct)),jt.createElement(Tt,{className:qt,style:{display:Se?null:"none"}},jt.createElement(Ye,{component:Wt,prefixCls:Hn,colSpan:Te},Ct))}var Ie=bn;function Ue(tn){var Hn=tn.prefixCls,_e=tn.record,Tt=tn.onExpand,Wt=tn.expanded,qt=tn.expandable,Se="".concat(Hn,"-row-expand-icon");if(!qt)return jt.createElement("span",{className:Pe()(Se,"".concat(Hn,"-row-spaced"))});var Te=function(ne){Tt(_e,ne),ne.stopPropagation()};return jt.createElement("span",{className:Pe()(Se,(0,ge.Z)((0,ge.Z)({},"".concat(Hn,"-row-expanded"),Wt),"".concat(Hn,"-row-collapsed"),!Wt)),onClick:Te})}function cn(tn,Hn,_e){var Tt=[];function Wt(qt){(qt||[]).forEach(function(Se,Te){Tt.push(Hn(Se,Te)),Wt(Se[_e])})}return Wt(tn),Tt}function Ln(tn,Hn,_e,Tt){return typeof tn=="string"?tn:typeof tn=="function"?tn(Hn,_e,Tt):""}function Xn(tn,Hn,_e,Tt,Wt){var qt=tn.record,Se=tn.prefixCls,Te=tn.columnsKey,en=tn.fixedInfoList,ne=tn.expandIconColumnIndex,Me=tn.nestExpandable,Ke=tn.indentSize,je=tn.expandIcon,hn=tn.expanded,An=tn.hasNestChildren,Ct=tn.onTriggerExpand,Qt=Te[_e],zt=en[_e],de;_e===(ne||0)&&Me&&(de=jt.createElement(jt.Fragment,null,jt.createElement("span",{style:{paddingLeft:"".concat(Ke*Tt,"px")},className:"".concat(Se,"-row-indent indent-level-").concat(Tt)}),je({prefixCls:Se,expanded:hn,expandable:An,record:qt,onExpand:Ct})));var ue;return Hn.onCell&&(ue=Hn.onCell(qt,Wt)),{key:Qt,fixedInfo:zt,appendCellNode:de,additionalCellProps:ue||{}}}function li(tn){var Hn=tn.className,_e=tn.style,Tt=tn.record,Wt=tn.index,qt=tn.renderIndex,Se=tn.rowKey,Te=tn.indent,en=Te===void 0?0:Te,ne=tn.rowComponent,Me=tn.cellComponent,Ke=tn.scopeCellComponent,je=Tn(Tt,Se,Wt,en),hn=je.prefixCls,An=je.flattenColumns,Ct=je.expandedRowClassName,Qt=je.expandedRowRender,zt=je.rowProps,de=je.expanded,ue=je.rowSupportExpand,Ge=jt.useRef(!1);Ge.current||(Ge.current=de);var Ze=Ln(Ct,Tt,Wt,en),an=jt.createElement(ne,(0,Lt.Z)({},zt,{"data-row-key":Se,className:Pe()(Hn,"".concat(hn,"-row"),"".concat(hn,"-row-level-").concat(en),zt==null?void 0:zt.className,(0,ge.Z)({},Ze,en>=1)),style:(0,_t.Z)((0,_t.Z)({},_e),zt==null?void 0:zt.style)}),An.map(function(yn,si){var vi=yn.render,le=yn.dataIndex,ei=yn.className,ni=Xn(je,yn,si,en,Wt),Wn=ni.key,Vn=ni.fixedInfo,Ni=ni.appendCellNode,Di=ni.additionalCellProps;return jt.createElement(Ye,(0,Lt.Z)({className:ei,ellipsis:yn.ellipsis,align:yn.align,scope:yn.rowScope,component:yn.rowScope?Ke:Me,prefixCls:hn,key:Wn,record:Tt,index:Wt,renderIndex:qt,dataIndex:le,render:vi,shouldCellUpdate:yn.shouldCellUpdate},Vn,{appendNode:Ni,additionalProps:Di}))})),kn;if(ue&&(Ge.current||de)){var Un=Qt(Tt,Wt,en+1,de);kn=jt.createElement(Ie,{expanded:de,className:Pe()("".concat(hn,"-expanded-row"),"".concat(hn,"-expanded-row-level-").concat(en+1),Ze),prefixCls:hn,component:ne,cellComponent:Me,colSpan:An.length,isEmpty:!1},Un)}return jt.createElement(jt.Fragment,null,an,kn)}var Ci=gt(li);function gn(tn){var Hn=tn.columnKey,_e=tn.onColumnResize,Tt=jt.useRef();return(0,we.Z)(function(){Tt.current&&_e(Hn,Tt.current.offsetWidth)},[]),jt.createElement(De.Z,{data:Hn},jt.createElement("td",{ref:Tt,style:{padding:0,border:0,height:0}},jt.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}var ti=Dt(29194);function _i(tn){var Hn=tn.prefixCls,_e=tn.columnsKey,Tt=tn.onColumnResize,Wt=jt.useRef(null);return jt.createElement("tr",{"aria-hidden":"true",className:"".concat(Hn,"-measure-row"),style:{height:0,fontSize:0},ref:Wt},jt.createElement(De.Z.Collection,{onBatchResize:function(Se){(0,ti.Z)(Wt.current)&&Se.forEach(function(Te){var en=Te.data,ne=Te.size;Tt(en,ne.offsetWidth)})}},_e.map(function(qt){return jt.createElement(gn,{key:qt,columnKey:qt,onColumnResize:Tt})})))}function fr(tn){var Hn=tn.data,_e=tn.measureColumnWidth,Tt=xe(Mt,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Wt=Tt.prefixCls,qt=Tt.getComponent,Se=Tt.onColumnResize,Te=Tt.flattenColumns,en=Tt.getRowKey,ne=Tt.expandedKeys,Me=Tt.childrenColumnName,Ke=Tt.emptyNode,je=ai(Hn,Me,ne,en),hn=jt.useRef({renderWithProps:!1}),An=qt(["body","wrapper"],"tbody"),Ct=qt(["body","row"],"tr"),Qt=qt(["body","cell"],"td"),zt=qt(["body","cell"],"th"),de;Hn.length?de=je.map(function(Ge,Ze){var an=Ge.record,kn=Ge.indent,Un=Ge.index,yn=en(an,Ze);return jt.createElement(Ci,{key:yn,rowKey:yn,record:an,index:Ze,renderIndex:Un,rowComponent:Ct,cellComponent:Qt,scopeCellComponent:zt,indent:kn})}):de=jt.createElement(Ie,{expanded:!0,className:"".concat(Wt,"-placeholder"),prefixCls:Wt,component:Ct,cellComponent:Qt,colSpan:Te.length,isEmpty:!0},Ke);var ue=Yt(Te);return jt.createElement(Oe.Provider,{value:hn.current},jt.createElement(An,{className:"".concat(Wt,"-tbody")},_e&&jt.createElement(_i,{prefixCls:Wt,columnsKey:ue,onColumnResize:Se}),de))}var tr=gt(fr),er=Dt(54451),yr=["columnType"];function sr(tn){for(var Hn=tn.colWidths,_e=tn.columns,Tt=tn.columCount,Wt=xe(Mt,["tableLayout"]),qt=Wt.tableLayout,Se=[],Te=Tt||_e.length,en=!1,ne=Te-1;ne>=0;ne-=1){var Me=Hn[ne],Ke=_e&&_e[ne],je=void 0,hn=void 0;if(Ke&&(je=Ke[er.v],qt==="auto"&&(hn=Ke.minWidth)),Me||hn||je||en){var An=je||{},Ct=An.columnType,Qt=(0,wt.Z)(An,yr);Se.unshift(jt.createElement("col",(0,Lt.Z)({key:ne,style:{width:Me,minWidth:hn}},Qt))),en=!0}}return jt.createElement("colgroup",null,Se)}var hr=sr,zi=Dt(15142),gr=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Et(tn,Hn){return(0,jt.useMemo)(function(){for(var _e=[],Tt=0;Tt<Hn;Tt+=1){var Wt=tn[Tt];if(Wt!==void 0)_e[Tt]=Wt;else return null}return _e},[tn.join("_"),Hn])}var Bn=jt.forwardRef(function(tn,Hn){var _e=tn.className,Tt=tn.noData,Wt=tn.columns,qt=tn.flattenColumns,Se=tn.colWidths,Te=tn.columCount,en=tn.stickyOffsets,ne=tn.direction,Me=tn.fixHeader,Ke=tn.stickyTopOffset,je=tn.stickyBottomOffset,hn=tn.stickyClassName,An=tn.onScroll,Ct=tn.maxContentScroll,Qt=tn.children,zt=(0,wt.Z)(tn,gr),de=xe(Mt,["prefixCls","scrollbarSize","isSticky","getComponent"]),ue=de.prefixCls,Ge=de.scrollbarSize,Ze=de.isSticky,an=de.getComponent,kn=an(["header","table"],"table"),Un=Ze&&!Me?0:Ge,yn=jt.useRef(null),si=jt.useCallback(function(Di){(0,ze.mH)(Hn,Di),(0,ze.mH)(yn,Di)},[]);jt.useEffect(function(){var Di;function Mi(Ti){var Ri=Ti,or=Ri.currentTarget,Ir=Ri.deltaX;Ir&&(An({currentTarget:or,scrollLeft:or.scrollLeft+Ir}),Ti.preventDefault())}return(Di=yn.current)===null||Di===void 0||Di.addEventListener("wheel",Mi,{passive:!1}),function(){var Ti;(Ti=yn.current)===null||Ti===void 0||Ti.removeEventListener("wheel",Mi)}},[]);var vi=jt.useMemo(function(){return qt.every(function(Di){return Di.width})},[qt]),le=qt[qt.length-1],ei={fixed:le?le.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(ue,"-cell-scrollbar")}}},ni=(0,jt.useMemo)(function(){return Un?[].concat((0,zi.Z)(Wt),[ei]):Wt},[Un,Wt]),Wn=(0,jt.useMemo)(function(){return Un?[].concat((0,zi.Z)(qt),[ei]):qt},[Un,qt]),Vn=(0,jt.useMemo)(function(){var Di=en.right,Mi=en.left;return(0,_t.Z)((0,_t.Z)({},en),{},{left:ne==="rtl"?[].concat((0,zi.Z)(Mi.map(function(Ti){return Ti+Un})),[0]):Mi,right:ne==="rtl"?Di:[].concat((0,zi.Z)(Di.map(function(Ti){return Ti+Un})),[0]),isSticky:Ze})},[Un,en,Ze]),Ni=Et(Se,Te);return jt.createElement("div",{style:(0,_t.Z)({overflow:"hidden"},Ze?{top:Ke,bottom:je}:{}),ref:si,className:Pe()(_e,(0,ge.Z)({},hn,!!hn))},jt.createElement(kn,{style:{tableLayout:"fixed",visibility:Tt||Ni?null:"hidden"}},(!Tt||!Ct||vi)&&jt.createElement(hr,{colWidths:Ni?[].concat((0,zi.Z)(Ni),[Un]):[],columCount:Te+1,columns:Wn}),Qt((0,_t.Z)((0,_t.Z)({},zt),{},{stickyOffsets:Vn,columns:ni,flattenColumns:Wn}))))}),Gn=jt.memo(Bn),fi=function(Hn){var _e=Hn.cells,Tt=Hn.stickyOffsets,Wt=Hn.flattenColumns,qt=Hn.rowComponent,Se=Hn.cellComponent,Te=Hn.onHeaderRow,en=Hn.index,ne=xe(Mt,["prefixCls","direction"]),Me=ne.prefixCls,Ke=ne.direction,je;Te&&(je=Te(_e.map(function(An){return An.column}),en));var hn=Yt(_e.map(function(An){return An.column}));return jt.createElement(qt,je,_e.map(function(An,Ct){var Qt=An.column,zt=mi(An.colStart,An.colEnd,Wt,Tt,Ke),de;return Qt&&Qt.onHeaderCell&&(de=An.column.onHeaderCell(Qt)),jt.createElement(Ye,(0,Lt.Z)({},An,{scope:Qt.title?An.colSpan>1?"colgroup":"col":null,ellipsis:Qt.ellipsis,align:Qt.align,component:Se,prefixCls:Me,key:hn[Ct]},zt,{additionalProps:de,rowType:"header"}))}))},ci=fi;function Kn(tn){var Hn=[];function _e(Se,Te){var en=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Hn[en]=Hn[en]||[];var ne=Te,Me=Se.filter(Boolean).map(function(Ke){var je={key:Ke.key,className:Ke.className||"",children:Ke.title,column:Ke,colStart:ne},hn=1,An=Ke.children;return An&&An.length>0&&(hn=_e(An,ne,en+1).reduce(function(Ct,Qt){return Ct+Qt},0),je.hasSubColumns=!0),"colSpan"in Ke&&(hn=Ke.colSpan),"rowSpan"in Ke&&(je.rowSpan=Ke.rowSpan),je.colSpan=hn,je.colEnd=je.colStart+hn-1,Hn[en].push(je),ne+=hn,hn});return Me}_e(tn,0);for(var Tt=Hn.length,Wt=function(Te){Hn[Te].forEach(function(en){!("rowSpan"in en)&&!en.hasSubColumns&&(en.rowSpan=Tt-Te)})},qt=0;qt<Tt;qt+=1)Wt(qt);return Hn}var rn=function(Hn){var _e=Hn.stickyOffsets,Tt=Hn.columns,Wt=Hn.flattenColumns,qt=Hn.onHeaderRow,Se=xe(Mt,["prefixCls","getComponent"]),Te=Se.prefixCls,en=Se.getComponent,ne=jt.useMemo(function(){return Kn(Tt)},[Tt]),Me=en(["header","wrapper"],"thead"),Ke=en(["header","row"],"tr"),je=en(["header","cell"],"th");return jt.createElement(Me,{className:"".concat(Te,"-thead")},ne.map(function(hn,An){var Ct=jt.createElement(ci,{key:An,flattenColumns:Wt,cells:hn,stickyOffsets:_e,rowComponent:Ke,cellComponent:je,onHeaderRow:qt,index:An});return Ct}))},Yn=gt(rn),Fe=Dt(97347);function Ne(tn,Hn,_e){var Tt=(0,er.g)(tn),Wt=Tt.expandIcon,qt=Tt.expandedRowKeys,Se=Tt.defaultExpandedRowKeys,Te=Tt.defaultExpandAllRows,en=Tt.expandedRowRender,ne=Tt.onExpand,Me=Tt.onExpandedRowsChange,Ke=Tt.childrenColumnName,je=Wt||Ue,hn=Ke||"children",An=jt.useMemo(function(){return en?"row":tn.expandable&&tn.internalHooks===yt.R&&tn.expandable.__PARENT_RENDER_ICON__||Hn.some(function(Ze){return Ze&&(0,Gt.Z)(Ze)==="object"&&Ze[hn]})?"nest":!1},[!!en,Hn]),Ct=jt.useState(function(){return Se||(Te?cn(Hn,_e,hn):[])}),Qt=(0,ee.Z)(Ct,2),zt=Qt[0],de=Qt[1],ue=jt.useMemo(function(){return new Set(qt||zt||[])},[qt,zt]),Ge=jt.useCallback(function(Ze){var an=_e(Ze,Hn.indexOf(Ze)),kn,Un=ue.has(an);Un?(ue.delete(an),kn=(0,zi.Z)(ue)):kn=[].concat((0,zi.Z)(ue),[an]),de(kn),ne&&ne(!Un,Ze),Me&&Me(kn)},[_e,ue,Hn,ne,Me]);return[Tt,An,ue,je,hn,Ge]}function ke(tn,Hn,_e){var Tt=tn.map(function(Wt,qt){return mi(qt,qt,tn,Hn,_e)});return(0,ye.Z)(function(){return Tt},[Tt],function(Wt,qt){return!(0,Ee.Z)(Wt,qt)})}function sn(tn){var Hn=(0,jt.useRef)(tn),_e=(0,jt.useState)({}),Tt=(0,ee.Z)(_e,2),Wt=Tt[1],qt=(0,jt.useRef)(null),Se=(0,jt.useRef)([]);function Te(en){Se.current.push(en);var ne=Promise.resolve();qt.current=ne,ne.then(function(){if(qt.current===ne){var Me=Se.current,Ke=Hn.current;Se.current=[],Me.forEach(function(je){Hn.current=je(Hn.current)}),qt.current=null,Ke!==Hn.current&&Wt({})}})}return(0,jt.useEffect)(function(){return function(){qt.current=null}},[]),[Hn.current,Te]}function xi(tn){var Hn=(0,jt.useRef)(tn||null),_e=(0,jt.useRef)();function Tt(){window.clearTimeout(_e.current)}function Wt(Se){Hn.current=Se,Tt(),_e.current=window.setTimeout(function(){Hn.current=null,_e.current=void 0},100)}function qt(){return Hn.current}return(0,jt.useEffect)(function(){return Tt},[]),[Wt,qt]}function yi(){var tn=jt.useState(-1),Hn=(0,ee.Z)(tn,2),_e=Hn[0],Tt=Hn[1],Wt=jt.useState(-1),qt=(0,ee.Z)(Wt,2),Se=qt[0],Te=qt[1],en=jt.useCallback(function(ne,Me){Tt(ne),Te(Me)},[]);return[_e,Se,en]}var Fi=Dt(47273),Xe=(0,Fi.Z)()?window:null;function Dn(tn,Hn){var _e=(0,Gt.Z)(tn)==="object"?tn:{},Tt=_e.offsetHeader,Wt=Tt===void 0?0:Tt,qt=_e.offsetSummary,Se=qt===void 0?0:qt,Te=_e.offsetScroll,en=Te===void 0?0:Te,ne=_e.getContainer,Me=ne===void 0?function(){return Xe}:ne,Ke=Me()||Xe,je=!!tn;return jt.useMemo(function(){return{isSticky:je,stickyClassName:je?"".concat(Hn,"-sticky-holder"):"",offsetHeader:Wt,offsetSummary:Se,offsetScroll:en,container:Ke}},[je,en,Wt,Se,Hn,Ke])}function mn(tn,Hn,_e){var Tt=(0,jt.useMemo)(function(){var Wt=Hn.length,qt=function(ne,Me,Ke){for(var je=[],hn=0,An=ne;An!==Me;An+=Ke)je.push(hn),Hn[An].fixed&&(hn+=tn[An]||0);return je},Se=qt(0,Wt,1),Te=qt(Wt-1,-1,-1).reverse();return _e==="rtl"?{left:Te,right:Se}:{left:Se,right:Te}},[tn,Hn,_e]);return Tt}var Hi=mn;function qn(tn){var Hn=tn.className,_e=tn.children;return jt.createElement("div",{className:Hn},_e)}var te=qn,be=Dt(8224),Jn=Dt(16089),Fn=Dt(76846);function Be(tn){var Hn=(0,Fn.bn)(tn),_e=Hn.getBoundingClientRect(),Tt=document.documentElement;return{left:_e.left+(window.pageXOffset||Tt.scrollLeft)-(Tt.clientLeft||document.body.clientLeft||0),top:_e.top+(window.pageYOffset||Tt.scrollTop)-(Tt.clientTop||document.body.clientTop||0)}}var zn=function(Hn,_e){var Tt,Wt,qt=Hn.scrollBodyRef,Se=Hn.onScroll,Te=Hn.offsetScroll,en=Hn.container,ne=Hn.direction,Me=xe(Mt,"prefixCls"),Ke=((Tt=qt.current)===null||Tt===void 0?void 0:Tt.scrollWidth)||0,je=((Wt=qt.current)===null||Wt===void 0?void 0:Wt.clientWidth)||0,hn=Ke&&je*(je/Ke),An=jt.useRef(),Ct=sn({scrollLeft:0,isHiddenScrollBar:!0}),Qt=(0,ee.Z)(Ct,2),zt=Qt[0],de=Qt[1],ue=jt.useRef({delta:0,x:0}),Ge=jt.useState(!1),Ze=(0,ee.Z)(Ge,2),an=Ze[0],kn=Ze[1],Un=jt.useRef(null);jt.useEffect(function(){return function(){Jn.Z.cancel(Un.current)}},[]);var yn=function(){kn(!1)},si=function(Wn){Wn.persist(),ue.current.delta=Wn.pageX-zt.scrollLeft,ue.current.x=0,kn(!0),Wn.preventDefault()},vi=function(Wn){var Vn,Ni=Wn||((Vn=window)===null||Vn===void 0?void 0:Vn.event),Di=Ni.buttons;if(!an||Di===0){an&&kn(!1);return}var Mi=ue.current.x+Wn.pageX-ue.current.x-ue.current.delta,Ti=ne==="rtl";Mi=Math.max(Ti?hn-je:0,Math.min(Ti?0:je-hn,Mi));var Ri=!Ti||Math.abs(Mi)+Math.abs(hn)<je;Ri&&(Se({scrollLeft:Mi/je*(Ke+2)}),ue.current.x=Wn.pageX)},le=function(){Jn.Z.cancel(Un.current),Un.current=(0,Jn.Z)(function(){if(qt.current){var Wn=Be(qt.current).top,Vn=Wn+qt.current.offsetHeight,Ni=en===window?document.documentElement.scrollTop+window.innerHeight:Be(en).top+en.clientHeight;Vn-(0,Qe.Z)()<=Ni||Wn>=Ni-Te?de(function(Di){return(0,_t.Z)((0,_t.Z)({},Di),{},{isHiddenScrollBar:!0})}):de(function(Di){return(0,_t.Z)((0,_t.Z)({},Di),{},{isHiddenScrollBar:!1})})}})},ei=function(Wn){de(function(Vn){return(0,_t.Z)((0,_t.Z)({},Vn),{},{scrollLeft:Wn/Ke*je||0})})};return jt.useImperativeHandle(_e,function(){return{setScrollLeft:ei,checkScrollBarVisible:le}}),jt.useEffect(function(){var ni=(0,be.Z)(document.body,"mouseup",yn,!1),Wn=(0,be.Z)(document.body,"mousemove",vi,!1);return le(),function(){ni.remove(),Wn.remove()}},[hn,an]),jt.useEffect(function(){if(qt.current){for(var ni=[],Wn=(0,Fn.bn)(qt.current);Wn;)ni.push(Wn),Wn=Wn.parentElement;return ni.forEach(function(Vn){return Vn.addEventListener("scroll",le,!1)}),window.addEventListener("resize",le,!1),window.addEventListener("scroll",le,!1),en.addEventListener("scroll",le,!1),function(){ni.forEach(function(Vn){return Vn.removeEventListener("scroll",le)}),window.removeEventListener("resize",le),window.removeEventListener("scroll",le),en.removeEventListener("scroll",le)}}},[en]),jt.useEffect(function(){zt.isHiddenScrollBar||de(function(ni){var Wn=qt.current;return Wn?(0,_t.Z)((0,_t.Z)({},ni),{},{scrollLeft:Wn.scrollLeft/Wn.scrollWidth*Wn.clientWidth}):ni})},[zt.isHiddenScrollBar]),Ke<=je||!hn||zt.isHiddenScrollBar?null:jt.createElement("div",{style:{height:(0,Qe.Z)(),width:je,bottom:Te},className:"".concat(Me,"-sticky-scroll")},jt.createElement("div",{onMouseDown:si,ref:An,className:Pe()("".concat(Me,"-sticky-scroll-bar"),(0,ge.Z)({},"".concat(Me,"-sticky-scroll-bar-active"),an)),style:{width:"".concat(hn,"px"),transform:"translate3d(".concat(zt.scrollLeft,"px, 0, 0)")}}))},Ai=jt.forwardRef(zn);function Ii(tn){return null}var Ki=Ii;function oi(tn){return null}var gi=oi,Si="rc-table",Ui=[],ji={};function Mn(){return"No Data"}function Ei(tn,Hn){var _e=(0,_t.Z)({rowKey:"key",prefixCls:Si,emptyText:Mn},tn),Tt=_e.prefixCls,Wt=_e.className,qt=_e.rowClassName,Se=_e.style,Te=_e.data,en=_e.rowKey,ne=_e.scroll,Me=_e.tableLayout,Ke=_e.direction,je=_e.title,hn=_e.footer,An=_e.summary,Ct=_e.caption,Qt=_e.id,zt=_e.showHeader,de=_e.components,ue=_e.emptyText,Ge=_e.onRow,Ze=_e.onHeaderRow,an=_e.onScroll,kn=_e.internalHooks,Un=_e.transformColumns,yn=_e.internalRefs,si=_e.tailor,vi=_e.getContainerWidth,le=_e.sticky,ei=_e.rowHoverable,ni=ei===void 0?!0:ei,Wn=Te||Ui,Vn=!!Wn.length,Ni=kn===yt.R,Di=jt.useCallback(function(No,Ko){return(0,He.Z)(de,No)||Ko},[de]),Mi=jt.useMemo(function(){return typeof en=="function"?en:function(No){var Ko=No&&No[en];return Ko}},[en]),Ti=Di(["body"]),Ri=yi(),or=(0,ee.Z)(Ri,3),Ir=or[0],jr=or[1],Hr=or[2],Bi=Ne(_e,Wn,Mi),Ar=(0,ee.Z)(Bi,6),wr=Ar[0],Nr=Ar[1],mr=Ar[2],Rr=Ar[3],ri=Ar[4],Vi=Ar[5],Ji=ne==null?void 0:ne.x,lr=jt.useState(0),qi=(0,ee.Z)(lr,2),nr=qi[0],ki=qi[1],Br=(0,Fe.Z)((0,_t.Z)((0,_t.Z)((0,_t.Z)({},_e),wr),{},{expandable:!!wr.expandedRowRender,columnTitle:wr.columnTitle,expandedKeys:mr,getRowKey:Mi,onTriggerExpand:Vi,expandIcon:Rr,expandIconColumnIndex:wr.expandIconColumnIndex,direction:Ke,scrollWidth:Ni&&si&&typeof Ji=="number"?Ji:null,clientWidth:nr}),Ni?Un:null),Kr=(0,ee.Z)(Br,4),Qr=Kr[0],Pr=Kr[1],to=Kr[2],Ur=Kr[3],Xr=to!=null?to:Ji,fo=jt.useMemo(function(){return{columns:Qr,flattenColumns:Pr}},[Qr,Pr]),mo=jt.useRef(),Bo=jt.useRef(),ao=jt.useRef(),ia=jt.useRef();jt.useImperativeHandle(Hn,function(){return{nativeElement:mo.current,scrollTo:function(Ko){var ka;if(ao.current instanceof HTMLElement){var ns=Ko.index,Qa=Ko.top,Bl=Ko.key;if(_n(Qa)){var yl;(yl=ao.current)===null||yl===void 0||yl.scrollTo({top:Qa})}else{var Oo,xo=Bl!=null?Bl:Mi(Wn[ns]);(Oo=ao.current.querySelector('[data-row-key="'.concat(xo,'"]')))===null||Oo===void 0||Oo.scrollIntoView()}}else(ka=ao.current)!==null&&ka!==void 0&&ka.scrollTo&&ao.current.scrollTo(Ko)}}});var po=jt.useRef(),Jo=jt.useState(!1),Po=(0,ee.Z)(Jo,2),Vo=Po[0],Go=Po[1],Yo=jt.useState(!1),Ro=(0,ee.Z)(Yo,2),Lo=Ro[0],oa=Ro[1],wa=jt.useState(new Map),zo=(0,ee.Z)(wa,2),Oa=zo[0],bo=zo[1],yo=Yt(Pr),vo=yo.map(function(No){return Oa.get(No)}),Qo=jt.useMemo(function(){return vo},[vo.join("_")]),ro=Hi(Qo,Pr,Ke),ea=ne&&fn(ne.y),vr=ne&&fn(Xr)||!!wr.fixed,ur=vr&&Pr.some(function(No){var Ko=No.fixed;return Ko}),Lr=jt.useRef(),pr=Dn(le,Tt),wi=pr.isSticky,Do=pr.offsetHeader,pe=pr.offsetSummary,Rn=pr.offsetScroll,ha=pr.stickyClassName,ga=pr.container,aa=jt.useMemo(function(){return An==null?void 0:An(Wn)},[An,Wn]),sa=(ea||wi)&&jt.isValidElement(aa)&&aa.type===$t&&aa.props.fixed,ya,Pa,hs;ea&&(Pa={overflowY:Vn?"scroll":"auto",maxHeight:ne.y}),vr&&(ya={overflowX:"auto"},ea||(Pa={overflowY:"hidden"}),hs={width:Xr===!0?"auto":Xr,minWidth:"100%"});var da=jt.useCallback(function(No,Ko){bo(function(ka){if(ka.get(No)!==Ko){var ns=new Map(ka);return ns.set(No,Ko),ns}return ka})},[]),qr=xi(null),Ya=(0,ee.Z)(qr,2),es=Ya[0],ca=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 Sa=(0,ie.Z)(function(No){var Ko=No.currentTarget,ka=No.scrollLeft,ns=Ke==="rtl",Qa=typeof ka=="number"?ka:Ko.scrollLeft,Bl=Ko||ji;if(!ca()||ca()===Bl){var yl;es(Bl),So(Qa,Bo.current),So(Qa,ao.current),So(Qa,po.current),So(Qa,(yl=Lr.current)===null||yl===void 0?void 0:yl.setScrollLeft)}var Oo=Ko||Bo.current;if(Oo){var xo=Ni&&si&&typeof Xr=="number"?Xr:Oo.scrollWidth,Ua=Oo.clientWidth;if(xo===Ua){Go(!1),oa(!1);return}ns?(Go(-Qa<xo-Ua),oa(-Qa>0)):(Go(Qa>0),oa(Qa<xo-Ua))}}),ds=(0,ie.Z)(function(No){Sa(No),an==null||an(No)}),ua=function(){if(vr&&ao.current){var Ko;Sa({currentTarget:(0,Fn.bn)(ao.current),scrollLeft:(Ko=ao.current)===null||Ko===void 0?void 0:Ko.scrollLeft})}else Go(!1),oa(!1)},cs=function(Ko){var ka,ns=Ko.width;(ka=Lr.current)===null||ka===void 0||ka.checkScrollBarVisible();var Qa=mo.current?mo.current.offsetWidth:ns;Ni&&vi&&mo.current&&(Qa=vi(mo.current,Qa)||Qa),Qa!==nr&&(ua(),ki(Qa))},za=jt.useRef(!1);jt.useEffect(function(){za.current&&ua()},[vr,Te,Qr.length]),jt.useEffect(function(){za.current=!0},[]);var Dl=jt.useState(0),Ho=(0,ee.Z)(Dl,2),Fa=Ho[0],To=Ho[1],$o=jt.useState(!0),pa=(0,ee.Z)($o,2),xa=pa[0],qo=pa[1];(0,we.Z)(function(){(!si||!Ni)&&(ao.current instanceof Element?To((0,Qe.o)(ao.current).width):To((0,Qe.o)(ia.current).width)),qo((0,Ce.G)("position","sticky"))},[]),jt.useEffect(function(){Ni&&yn&&(yn.body.current=ao.current)});var pl=jt.useCallback(function(No){return jt.createElement(jt.Fragment,null,jt.createElement(Yn,No),sa==="top"&&jt.createElement(dn,No,aa))},[sa,aa]),eo=jt.useCallback(function(No){return jt.createElement(dn,No,aa)},[aa]),vu=Di(["table"],"table"),Ao=jt.useMemo(function(){return Me||(ur?Xr==="max-content"?"auto":"fixed":ea||wi||Pr.some(function(No){var Ko=No.ellipsis;return Ko})?"fixed":"auto")},[ea,ur,Pr,Me,wi]),Kl,qs={colWidths:Qo,columCount:Pr.length,stickyOffsets:ro,onHeaderRow:Ze,fixHeader:ea,scroll:ne},Nl=jt.useMemo(function(){return Vn?null:typeof ue=="function"?ue():ue},[Vn,ue]),yu=jt.createElement(tr,{data:Wn,measureColumnWidth:ea||vr||wi}),Su=jt.createElement(hr,{colWidths:Pr.map(function(No){var Ko=No.width;return Ko}),columns:Pr}),Vs=Ct!=null?jt.createElement("caption",{className:"".concat(Tt,"-caption")},Ct):void 0,Yl=(0,un.Z)(_e,{data:!0}),Uo=(0,un.Z)(_e,{aria:!0});if(ea||wi){var Gs;typeof Ti=="function"?(Gs=Ti(Wn,{scrollbarSize:Fa,ref:ao,onScroll:Sa}),qs.colWidths=Pr.map(function(No,Ko){var ka=No.width,ns=Ko===Pr.length-1?ka-Fa:ka;return typeof ns=="number"&&!Number.isNaN(ns)?ns:0})):Gs=jt.createElement("div",{style:(0,_t.Z)((0,_t.Z)({},ya),Pa),onScroll:ds,ref:ao,className:Pe()("".concat(Tt,"-body"))},jt.createElement(vu,(0,Lt.Z)({style:(0,_t.Z)((0,_t.Z)({},hs),{},{tableLayout:Ao})},Uo),Vs,Su,yu,!sa&&aa&&jt.createElement(dn,{stickyOffsets:ro,flattenColumns:Pr},aa)));var xu=(0,_t.Z)((0,_t.Z)((0,_t.Z)({noData:!Wn.length,maxContentScroll:vr&&Xr==="max-content"},qs),fo),{},{direction:Ke,stickyClassName:ha,onScroll:Sa});Kl=jt.createElement(jt.Fragment,null,zt!==!1&&jt.createElement(Gn,(0,Lt.Z)({},xu,{stickyTopOffset:Do,className:"".concat(Tt,"-header"),ref:Bo}),pl),Gs,sa&&sa!=="top"&&jt.createElement(Gn,(0,Lt.Z)({},xu,{stickyBottomOffset:pe,className:"".concat(Tt,"-summary"),ref:po}),eo),wi&&ao.current&&ao.current instanceof Element&&jt.createElement(Ai,{ref:Lr,offsetScroll:Rn,scrollBodyRef:ao,onScroll:Sa,container:ga,direction:Ke}))}else Kl=jt.createElement("div",{style:(0,_t.Z)((0,_t.Z)({},ya),Pa),className:Pe()("".concat(Tt,"-content")),onScroll:Sa,ref:ao},jt.createElement(vu,(0,Lt.Z)({style:(0,_t.Z)((0,_t.Z)({},hs),{},{tableLayout:Ao})},Uo),Vs,Su,zt!==!1&&jt.createElement(Yn,(0,Lt.Z)({},qs,fo)),yu,aa&&jt.createElement(dn,{stickyOffsets:ro,flattenColumns:Pr},aa)));var ml=jt.createElement("div",(0,Lt.Z)({className:Pe()(Tt,Wt,(0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)({},"".concat(Tt,"-rtl"),Ke==="rtl"),"".concat(Tt,"-ping-left"),Vo),"".concat(Tt,"-ping-right"),Lo),"".concat(Tt,"-layout-fixed"),Me==="fixed"),"".concat(Tt,"-fixed-header"),ea),"".concat(Tt,"-fixed-column"),ur),"".concat(Tt,"-fixed-column-gapped"),ur&&Ur),"".concat(Tt,"-scroll-horizontal"),vr),"".concat(Tt,"-has-fix-left"),Pr[0]&&Pr[0].fixed),"".concat(Tt,"-has-fix-right"),Pr[Pr.length-1]&&Pr[Pr.length-1].fixed==="right")),style:Se,id:Qt,ref:mo},Yl),je&&jt.createElement(te,{className:"".concat(Tt,"-title")},je(Wn)),jt.createElement("div",{ref:ia,className:"".concat(Tt,"-container")},Kl),hn&&jt.createElement(te,{className:"".concat(Tt,"-footer")},hn(Wn)));vr&&(ml=jt.createElement(De.Z,{onResize:cs},ml));var Nu=ke(Pr,ro,Ke),vl=jt.useMemo(function(){return{scrollX:Xr,prefixCls:Tt,getComponent:Di,scrollbarSize:Fa,direction:Ke,fixedInfoList:Nu,isSticky:wi,supportSticky:xa,componentWidth:nr,fixHeader:ea,fixColumn:ur,horizonScroll:vr,tableLayout:Ao,rowClassName:qt,expandedRowClassName:wr.expandedRowClassName,expandIcon:Rr,expandableType:Nr,expandRowByClick:wr.expandRowByClick,expandedRowRender:wr.expandedRowRender,onTriggerExpand:Vi,expandIconColumnIndex:wr.expandIconColumnIndex,indentSize:wr.indentSize,allColumnsFixedLeft:Pr.every(function(No){return No.fixed==="left"}),emptyNode:Nl,columns:Qr,flattenColumns:Pr,onColumnResize:da,hoverStartRow:Ir,hoverEndRow:jr,onHover:Hr,rowExpandable:wr.rowExpandable,onRow:Ge,getRowKey:Mi,expandedKeys:mr,childrenColumnName:ri,rowHoverable:ni}},[Xr,Tt,Di,Fa,Ke,Nu,wi,xa,nr,ea,ur,vr,Ao,qt,wr.expandedRowClassName,Rr,Nr,wr.expandRowByClick,wr.expandedRowRender,Vi,wr.expandIconColumnIndex,wr.indentSize,Nl,Qr,Pr,da,Ir,jr,Hr,wr.rowExpandable,Ge,Mi,mr,ri,ni]);return jt.createElement(Mt.Provider,{value:vl},ml)}var xr=jt.forwardRef(Ei);function Tr(tn){return lt(xr,tn)}var _r=Tr();_r.EXPAND_COLUMN=yt.w,_r.INTERNAL_HOOKS=yt.R,_r.Column=Ki,_r.ColumnGroup=gi,_r.Summary=En;var We=_r,ar=Dt(6790),br=Ve(null),Gi=Ve(null);function Gr(tn,Hn,_e){var Tt=Hn||1;return _e[tn+Tt]-(_e[tn]||0)}function Or(tn){var Hn=tn.rowInfo,_e=tn.column,Tt=tn.colIndex,Wt=tn.indent,qt=tn.index,Se=tn.component,Te=tn.renderIndex,en=tn.record,ne=tn.style,Me=tn.className,Ke=tn.inverse,je=tn.getHeight,hn=_e.render,An=_e.dataIndex,Ct=_e.className,Qt=_e.width,zt=xe(Gi,["columnsOffset"]),de=zt.columnsOffset,ue=Xn(Hn,_e,Tt,Wt,qt),Ge=ue.key,Ze=ue.fixedInfo,an=ue.appendCellNode,kn=ue.additionalCellProps,Un=kn.style,yn=kn.colSpan,si=yn===void 0?1:yn,vi=kn.rowSpan,le=vi===void 0?1:vi,ei=Tt-1,ni=Gr(ei,si,de),Wn=si>1?Qt-ni:0,Vn=(0,_t.Z)((0,_t.Z)((0,_t.Z)({},Un),ne),{},{flex:"0 0 ".concat(ni,"px"),width:"".concat(ni,"px"),marginRight:Wn,pointerEvents:"auto"}),Ni=jt.useMemo(function(){return Ke?le<=1:si===0||le===0||le>1},[le,si,Ke]);Ni?Vn.visibility="hidden":Ke&&(Vn.height=je==null?void 0:je(le));var Di=Ni?function(){return null}:hn,Mi={};return(le===0||si===0)&&(Mi.rowSpan=1,Mi.colSpan=1),jt.createElement(Ye,(0,Lt.Z)({className:Pe()(Ct,Me),ellipsis:_e.ellipsis,align:_e.align,scope:_e.rowScope,component:Se,prefixCls:Hn.prefixCls,key:Ge,record:en,index:qt,renderIndex:Te,dataIndex:An,render:Di,shouldCellUpdate:_e.shouldCellUpdate},Ze,{appendNode:an,additionalProps:(0,_t.Z)((0,_t.Z)({},kn),{},{style:Vn},Mi)}))}var Wr=Or,Zi=["data","index","className","rowKey","style","extra","getHeight"],ir=jt.forwardRef(function(tn,Hn){var _e=tn.data,Tt=tn.index,Wt=tn.className,qt=tn.rowKey,Se=tn.style,Te=tn.extra,en=tn.getHeight,ne=(0,wt.Z)(tn,Zi),Me=_e.record,Ke=_e.indent,je=_e.index,hn=xe(Mt,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),An=hn.scrollX,Ct=hn.flattenColumns,Qt=hn.prefixCls,zt=hn.fixColumn,de=hn.componentWidth,ue=xe(br,["getComponent"]),Ge=ue.getComponent,Ze=Tn(Me,qt,Tt,Ke),an=Ge(["body","row"],"div"),kn=Ge(["body","cell"],"div"),Un=Ze.rowSupportExpand,yn=Ze.expanded,si=Ze.rowProps,vi=Ze.expandedRowRender,le=Ze.expandedRowClassName,ei;if(Un&&yn){var ni=vi(Me,Tt,Ke+1,yn),Wn=Ln(le,Me,Tt,Ke),Vn={};zt&&(Vn={style:(0,ge.Z)({},"--virtual-width","".concat(de,"px"))});var Ni="".concat(Qt,"-expanded-row-cell");ei=jt.createElement(an,{className:Pe()("".concat(Qt,"-expanded-row"),"".concat(Qt,"-expanded-row-level-").concat(Ke+1),Wn)},jt.createElement(Ye,{component:kn,prefixCls:Qt,className:Pe()(Ni,(0,ge.Z)({},"".concat(Ni,"-fixed"),zt)),additionalProps:Vn},ni))}var Di=(0,_t.Z)((0,_t.Z)({},Se),{},{width:An});Te&&(Di.position="absolute",Di.pointerEvents="none");var Mi=jt.createElement(an,(0,Lt.Z)({},si,ne,{"data-row-key":qt,ref:Un?null:Hn,className:Pe()(Wt,"".concat(Qt,"-row"),si==null?void 0:si.className,(0,ge.Z)({},"".concat(Qt,"-row-extra"),Te)),style:(0,_t.Z)((0,_t.Z)({},Di),si==null?void 0:si.style)}),Ct.map(function(Ti,Ri){return jt.createElement(Wr,{key:Ri,component:kn,rowInfo:Ze,column:Ti,colIndex:Ri,indent:Ke,index:Tt,renderIndex:je,record:Me,inverse:Te,getHeight:en})}));return Un?jt.createElement("div",{ref:Hn},Mi,ei):Mi}),Qi=gt(ir),pn=Qi,dr=jt.forwardRef(function(tn,Hn){var _e=tn.data,Tt=tn.onScroll,Wt=xe(Mt,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),qt=Wt.flattenColumns,Se=Wt.onColumnResize,Te=Wt.getRowKey,en=Wt.expandedKeys,ne=Wt.prefixCls,Me=Wt.childrenColumnName,Ke=Wt.scrollX,je=Wt.direction,hn=xe(br),An=hn.sticky,Ct=hn.scrollY,Qt=hn.listItemHeight,zt=hn.getComponent,de=hn.onScroll,ue=jt.useRef(),Ge=ai(_e,Me,en,Te),Ze=jt.useMemo(function(){var ei=0;return qt.map(function(ni){var Wn=ni.width,Vn=ni.key;return ei+=Wn,[Vn,Wn,ei]})},[qt]),an=jt.useMemo(function(){return Ze.map(function(ei){return ei[2]})},[Ze]);jt.useEffect(function(){Ze.forEach(function(ei){var ni=(0,ee.Z)(ei,2),Wn=ni[0],Vn=ni[1];Se(Wn,Vn)})},[Ze]),jt.useImperativeHandle(Hn,function(){var ei,ni={scrollTo:function(Vn){var Ni;(Ni=ue.current)===null||Ni===void 0||Ni.scrollTo(Vn)},nativeElement:(ei=ue.current)===null||ei===void 0?void 0:ei.nativeElement};return Object.defineProperty(ni,"scrollLeft",{get:function(){var Vn;return((Vn=ue.current)===null||Vn===void 0?void 0:Vn.getScrollInfo().x)||0},set:function(Vn){var Ni;(Ni=ue.current)===null||Ni===void 0||Ni.scrollTo({left:Vn})}}),ni});var kn=function(ni,Wn){var Vn,Ni=(Vn=Ge[Wn])===null||Vn===void 0?void 0:Vn.record,Di=ni.onCell;if(Di){var Mi,Ti=Di(Ni,Wn);return(Mi=Ti==null?void 0:Ti.rowSpan)!==null&&Mi!==void 0?Mi:1}return 1},Un=function(ni){var Wn=ni.start,Vn=ni.end,Ni=ni.getSize,Di=ni.offsetY;if(Vn<0)return null;for(var Mi=qt.filter(function(Rr){return kn(Rr,Wn)===0}),Ti=Wn,Ri=function(ri){if(Mi=Mi.filter(function(Vi){return kn(Vi,ri)===0}),!Mi.length)return Ti=ri,1},or=Wn;or>=0&&!Ri(or);or-=1);for(var Ir=qt.filter(function(Rr){return kn(Rr,Vn)!==1}),jr=Vn,Hr=function(ri){if(Ir=Ir.filter(function(Vi){return kn(Vi,ri)!==1}),!Ir.length)return jr=Math.max(ri-1,Vn),1},Bi=Vn;Bi<Ge.length&&!Hr(Bi);Bi+=1);for(var Ar=[],wr=function(ri){var Vi=Ge[ri];if(!Vi)return 1;qt.some(function(Ji){return kn(Ji,ri)>1})&&Ar.push(ri)},Nr=Ti;Nr<=jr;Nr+=1)wr(Nr);var mr=Ar.map(function(Rr){var ri=Ge[Rr],Vi=Te(ri.record,Rr),Ji=function(nr){var ki=Rr+nr-1,Br=Te(Ge[ki].record,ki),Kr=Ni(Vi,Br);return Kr.bottom-Kr.top},lr=Ni(Vi);return jt.createElement(pn,{key:Rr,data:ri,rowKey:Vi,index:Rr,style:{top:-Di+lr.top},extra:!0,getHeight:Ji})});return mr},yn=jt.useMemo(function(){return{columnsOffset:an}},[an]),si="".concat(ne,"-tbody"),vi=zt(["body","wrapper"]),le={};return An&&(le.position="sticky",le.bottom=0,(0,Gt.Z)(An)==="object"&&An.offsetScroll&&(le.bottom=An.offsetScroll)),jt.createElement(Gi.Provider,{value:yn},jt.createElement(ar.Z,{fullHeight:!1,ref:ue,prefixCls:"".concat(si,"-virtual"),styles:{horizontalScrollBar:le},className:si,height:Ct,itemHeight:Qt||24,data:Ge,itemKey:function(ni){return Te(ni.record)},component:vi,scrollWidth:Ke,direction:je,onVirtualScroll:function(ni){var Wn,Vn=ni.x;Tt({currentTarget:(Wn=ue.current)===null||Wn===void 0?void 0:Wn.nativeElement,scrollLeft:Vn})},onScroll:de,extraRender:Un},function(ei,ni,Wn){var Vn=Te(ei.record,ni);return jt.createElement(pn,{data:ei,rowKey:Vn,index:ni,style:Wn.style})}))}),xn=gt(dr),bi=xn,Sr=function(Hn,_e){var Tt=_e.ref,Wt=_e.onScroll;return jt.createElement(bi,{ref:Tt,data:Hn,onScroll:Wt})};function Er(tn,Hn){var _e=tn.data,Tt=tn.columns,Wt=tn.scroll,qt=tn.sticky,Se=tn.prefixCls,Te=Se===void 0?Si:Se,en=tn.className,ne=tn.listItemHeight,Me=tn.components,Ke=tn.onScroll,je=Wt||{},hn=je.x,An=je.y;typeof hn!="number"&&(hn=1),typeof An!="number"&&(An=500);var Ct=(0,di.zX)(function(de,ue){return(0,He.Z)(Me,de)||ue}),Qt=(0,di.zX)(Ke),zt=jt.useMemo(function(){return{sticky:qt,scrollY:An,listItemHeight:ne,getComponent:Ct,onScroll:Qt}},[qt,An,ne,Ct,Qt]);return jt.createElement(br.Provider,{value:zt},jt.createElement(We,(0,Lt.Z)({},tn,{className:Pe()(en,"".concat(Te,"-virtual")),scroll:(0,_t.Z)((0,_t.Z)({},Wt),{},{x:hn}),components:(0,_t.Z)((0,_t.Z)({},Me),{},{body:_e!=null&&_e.length?Sr:void 0}),columns:Tt,internalHooks:yt.R,tailor:!0,ref:Hn})))}var io=jt.forwardRef(Er);function Yr(tn){return lt(io,tn)}var Mr=Yr(),uo=null},54451:function(Qn,pi,Dt){"use strict";Dt.d(pi,{g:function(){return jt},v:function(){return Ee}});var yt=Dt(98506),ee=Dt(33346),ie=Dt(48736),we=["expandable"],Ee="RC_TABLE_INTERNAL_COL_DEFINE";function jt(ce){var Ve=ce.expandable,xe=(0,ee.Z)(ce,we),Lt;return"expandable"in ce?Lt=(0,yt.Z)((0,yt.Z)({},xe),Ve):Lt=xe,Lt.showExpandColumn===!1&&(Lt.expandIconColumnIndex=-1),Lt}},22711:function(Qn,pi,Dt){"use strict";Dt.r(pi),Dt.d(pi,{ResizableTextArea:function(){return me},default:function(){return wn}});var yt=Dt(67711),ee=Dt(52873),ie=Dt(98506),we=Dt(15142),Ee=Dt(16886),jt=Dt(33346),ce=Dt(92310),Ve=Dt.n(ce),xe=Dt(36901),Lt=Dt(66003),ze=Dt(30292),Kt=Dt(18929),Je=Dt(59301),Bt=Dt(26420),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 Mt(ln){var Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Sn=ln.getAttribute("id")||ln.getAttribute("data-reactid")||ln.getAttribute("name");if(Oe&&mt[Sn])return mt[Sn];var se=window.getComputedStyle(ln),Yt=se.getPropertyValue("box-sizing")||se.getPropertyValue("-moz-box-sizing")||se.getPropertyValue("-webkit-box-sizing"),fn=parseFloat(se.getPropertyValue("padding-bottom"))+parseFloat(se.getPropertyValue("padding-top")),_n=parseFloat(se.getPropertyValue("border-bottom-width"))+parseFloat(se.getPropertyValue("border-top-width")),In=gt.map(function(jn){return"".concat(jn,":").concat(se.getPropertyValue(jn))}).join(";"),on={sizingStyle:In,paddingSize:fn,borderSize:_n,boxSizing:Yt};return Oe&&Sn&&(mt[Sn]=on),on}function It(ln){var Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Sn=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)),ln.getAttribute("wrap")?St.setAttribute("wrap",ln.getAttribute("wrap")):St.removeAttribute("wrap");var Yt=Mt(ln,Oe),fn=Yt.paddingSize,_n=Yt.borderSize,In=Yt.boxSizing,on=Yt.sizingStyle;St.setAttribute("style","".concat(on,";").concat(lt)),St.value=ln.value||ln.placeholder||"";var jn=void 0,Pn=void 0,di,Re=St.scrollHeight;if(In==="border-box"?Re+=_n:In==="content-box"&&(Re-=fn),Sn!==null||se!==null){St.value=" ";var ve=St.scrollHeight-fn;Sn!==null&&(jn=ve*Sn,In==="border-box"&&(jn=jn+fn+_n),Re=Math.max(jn,Re)),se!==null&&(Pn=ve*se,In==="border-box"&&(Pn=Pn+fn+_n),di=Re>Pn?"":"hidden",Re=Math.min(Pn,Re))}var Ye={height:Re,overflowY:di,resize:"none"};return jn&&(Ye.minHeight=jn),Pn&&(Ye.maxHeight=Pn),Ye}var Zt=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],oe=0,Gt=1,_t=2,ge=Je.forwardRef(function(ln,Oe){var Sn=ln,se=Sn.prefixCls,Yt=Sn.defaultValue,fn=Sn.value,_n=Sn.autoSize,In=Sn.onResize,on=Sn.className,jn=Sn.style,Pn=Sn.disabled,di=Sn.onChange,Re=Sn.onInternalAutoSize,ve=(0,jt.Z)(Sn,Zt),Ye=(0,Kt.Z)(Yt,{value:fn,postState:function(Ci){return Ci!=null?Ci:""}}),mi=(0,Ee.Z)(Ye,2),Cn=mi[0],Ot=mi[1],At=function(Ci){Ot(Ci.target.value),di==null||di(Ci)},wt=Je.useRef();Je.useImperativeHandle(Oe,function(){return{textArea:wt.current}});var Nt=Je.useMemo(function(){return _n&&(0,Bt.Z)(_n)==="object"?[_n.minRows,_n.maxRows]:[]},[_n]),Vt=(0,Ee.Z)(Nt,2),kt=Vt[0],$t=Vt[1],nn=!!_n,dn=function(){try{if(document.activeElement===wt.current){var Ci=wt.current,gn=Ci.selectionStart,ti=Ci.selectionEnd,_i=Ci.scrollTop;wt.current.setSelectionRange(gn,ti),wt.current.scrollTop=_i}}catch(fr){}},En=Je.useState(_t),De=(0,Ee.Z)(En,2),Ce=De[0],Qe=De[1],un=Je.useState(),Nn=(0,Ee.Z)(un,2),ai=Nn[0],Tn=Nn[1],bn=function(){Qe(oe)};(0,et.Z)(function(){nn&&bn()},[fn,kt,$t,nn]),(0,et.Z)(function(){if(Ce===oe)Qe(Gt);else if(Ce===Gt){var li=It(wt.current,!1,kt,$t);Qe(_t),Tn(li)}else dn()},[Ce]);var Ie=Je.useRef(),Ue=function(){dt.Z.cancel(Ie.current)},cn=function(Ci){Ce===_t&&(In==null||In(Ci),_n&&(Ue(),Ie.current=(0,dt.Z)(function(){bn()})))};Je.useEffect(function(){return Ue},[]);var Ln=nn?ai:null,Xn=(0,ie.Z)((0,ie.Z)({},jn),Ln);return(Ce===oe||Ce===Gt)&&(Xn.overflowY="hidden",Xn.overflowX="hidden"),Je.createElement(nt.Z,{onResize:cn,disabled:!(_n||In)},Je.createElement("textarea",(0,yt.Z)({},ve,{ref:wt,style:Xn,className:Ve()(se,on,(0,ee.Z)({},"".concat(se,"-disabled"),Pn)),disabled:Pn,value:Cn,onChange:At})))}),me=ge,Pe=["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"],ye=Je.forwardRef(function(ln,Oe){var Sn,se=ln.defaultValue,Yt=ln.value,fn=ln.onFocus,_n=ln.onBlur,In=ln.onChange,on=ln.allowClear,jn=ln.maxLength,Pn=ln.onCompositionStart,di=ln.onCompositionEnd,Re=ln.suffix,ve=ln.prefixCls,Ye=ve===void 0?"rc-textarea":ve,mi=ln.showCount,Cn=ln.count,Ot=ln.className,At=ln.style,wt=ln.disabled,Nt=ln.hidden,Vt=ln.classNames,kt=ln.styles,$t=ln.onResize,nn=ln.onClear,dn=ln.onPressEnter,En=ln.readOnly,De=ln.autoSize,Ce=ln.onKeyDown,Qe=(0,jt.Z)(ln,Pe),un=(0,Kt.Z)(se,{value:Yt,defaultValue:se}),Nn=(0,Ee.Z)(un,2),ai=Nn[0],Tn=Nn[1],bn=ai==null?"":String(ai),Ie=Je.useState(!1),Ue=(0,Ee.Z)(Ie,2),cn=Ue[0],Ln=Ue[1],Xn=Je.useRef(!1),li=Je.useState(null),Ci=(0,Ee.Z)(li,2),gn=Ci[0],ti=Ci[1],_i=(0,Je.useRef)(null),fr=(0,Je.useRef)(null),tr=function(){var mn;return(mn=fr.current)===null||mn===void 0?void 0:mn.textArea},er=function(){tr().focus()};(0,Je.useImperativeHandle)(Oe,function(){var Dn;return{resizableTextArea:fr.current,focus:er,blur:function(){tr().blur()},nativeElement:((Dn=_i.current)===null||Dn===void 0?void 0:Dn.nativeElement)||tr()}}),(0,Je.useEffect)(function(){Ln(function(Dn){return!wt&&Dn})},[wt]);var yr=Je.useState(null),sr=(0,Ee.Z)(yr,2),hr=sr[0],zi=sr[1];Je.useEffect(function(){if(hr){var Dn;(Dn=tr()).setSelectionRange.apply(Dn,(0,we.Z)(hr))}},[hr]);var gr=(0,Lt.Z)(Cn,mi),Et=(Sn=gr.max)!==null&&Sn!==void 0?Sn:jn,Bn=Number(Et)>0,Gn=gr.strategy(bn),fi=!!Et&&Gn>Et,ci=function(mn,Hi){var qn=Hi;!Xn.current&&gr.exceedFormatter&&gr.max&&gr.strategy(Hi)>gr.max&&(qn=gr.exceedFormatter(Hi,{max:gr.max}),Hi!==qn&&zi([tr().selectionStart||0,tr().selectionEnd||0])),Tn(qn),(0,ze.rJ)(mn.currentTarget,mn,In,qn)},Kn=function(mn){Xn.current=!0,Pn==null||Pn(mn)},rn=function(mn){Xn.current=!1,ci(mn,mn.currentTarget.value),di==null||di(mn)},Yn=function(mn){ci(mn,mn.target.value)},Fe=function(mn){mn.key==="Enter"&&dn&&dn(mn),Ce==null||Ce(mn)},Ne=function(mn){Ln(!0),fn==null||fn(mn)},ke=function(mn){Ln(!1),_n==null||_n(mn)},sn=function(mn){Tn(""),er(),(0,ze.rJ)(tr(),mn,In)},xi=Re,yi;gr.show&&(gr.showFormatter?yi=gr.showFormatter({value:bn,count:Gn,maxLength:Et}):yi="".concat(Gn).concat(Bn?" / ".concat(Et):""),xi=Je.createElement(Je.Fragment,null,xi,Je.createElement("span",{className:Ve()("".concat(Ye,"-data-count"),Vt==null?void 0:Vt.count),style:kt==null?void 0:kt.count},yi)));var Fi=function(mn){var Hi;$t==null||$t(mn),(Hi=tr())!==null&&Hi!==void 0&&Hi.style.height&&ti(!0)},Xe=!De&&!mi&&!on;return Je.createElement(xe.BaseInput,{ref:_i,value:bn,allowClear:on,handleReset:sn,suffix:xi,prefixCls:Ye,classNames:(0,ie.Z)((0,ie.Z)({},Vt),{},{affixWrapper:Ve()(Vt==null?void 0:Vt.affixWrapper,(0,ee.Z)((0,ee.Z)({},"".concat(Ye,"-show-count"),mi),"".concat(Ye,"-textarea-allow-clear"),on))}),disabled:wt,focused:cn,className:Ve()(Ot,fi&&"".concat(Ye,"-out-of-range")),style:(0,ie.Z)((0,ie.Z)({},At),gn&&!Xe?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof yi=="string"?yi:void 0}},hidden:Nt,readOnly:En,onClear:nn},Je.createElement(me,(0,yt.Z)({},Qe,{autoSize:De,maxLength:jn,onKeyDown:Fe,onChange:Yn,onFocus:Ne,onBlur:ke,onCompositionStart:Kn,onCompositionEnd:rn,className:Ve()(Vt==null?void 0:Vt.textarea),style:(0,ie.Z)((0,ie.Z)({},kt==null?void 0:kt.textarea),{},{resize:At==null?void 0:At.resize}),disabled:wt,prefixCls:Ye,onResize:Fi,ref:fr,readOnly:En})))}),He=ye,wn=He},9940:function(Qn,pi,Dt){"use strict";Dt.d(pi,{Qw:function(){return mi},FJ:function(){return Ot},hT:function(){return Cn},OF:function(){return St},ZP:function(){return En}});var yt=Dt(67711),ee=Dt(15142),ie=Dt(98506),we=Dt(16886),Ee=Dt(33346),jt=Dt(26420),ce=Dt(37463),Ve=Dt(6551),xe=Dt(34643),Lt=Dt(18929),ze=Dt(48736),Kt=Dt(59301),Je=function(De){var Ce=Kt.useRef({valueLabels:new Map});return Kt.useMemo(function(){var Qe=Ce.current.valueLabels,un=new Map,Nn=De.map(function(ai){var Tn=ai.value,bn=ai.label,Ie=bn!=null?bn:Qe.get(Tn);return un.set(Tn,Ie),(0,ie.Z)((0,ie.Z)({},ai),{},{label:Ie})});return Ce.current.valueLabels=un,[Nn]},[De])},Bt=function(Ce,Qe,un,Nn){return Kt.useMemo(function(){var ai=function(li){return li.map(function(Ci){var gn=Ci.value;return gn})},Tn=ai(Ce),bn=ai(Qe),Ie=Tn.filter(function(Xn){return!Nn[Xn]}),Ue=Tn,cn=bn;if(un){var Ln=(0,xe.S)(Tn,!0,Nn);Ue=Ln.checkedKeys,cn=Ln.halfCheckedKeys}return[Array.from(new Set([].concat((0,ee.Z)(Ie),(0,ee.Z)(Ue)))),cn]},[Ce,Qe,un,Nn])},nt=Bt,et=Dt(34061),dt=function(De,Ce){return Kt.useMemo(function(){var Qe=(0,et.I8)(De,{fieldNames:Ce,initWrapper:function(Nn){return(0,ie.Z)((0,ie.Z)({},Nn),{},{valueEntities:new Map})},processEntity:function(Nn,ai){var Tn=Nn.node[Ce.value];if(0)var bn;ai.valueEntities.set(Tn,Nn)}});return Qe},[De,Ce])},lt=Dt(52873),gt=Dt(11592),mt=function(){return null},St=mt,Mt=["children","value"];function It(De){return(0,gt.Z)(De).map(function(Ce){if(!Kt.isValidElement(Ce)||!Ce.type)return null;var Qe=Ce,un=Qe.key,Nn=Qe.props,ai=Nn.children,Tn=Nn.value,bn=(0,Ee.Z)(Nn,Mt),Ie=(0,ie.Z)({key:un,value:Tn},bn),Ue=It(ai);return Ue.length&&(Ie.children=Ue),Ie}).filter(function(Ce){return Ce})}function Zt(De){if(!De)return De;var Ce=(0,ie.Z)({},De);return"props"in Ce||Object.defineProperty(Ce,"props",{get:function(){return(0,ze.ZP)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),Ce}}),Ce}function oe(De,Ce,Qe,un,Nn,ai){var Tn=null,bn=null;function Ie(){function Ue(cn){var Ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",Xn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return cn.map(function(li,Ci){var gn="".concat(Ln,"-").concat(Ci),ti=li[ai.value],_i=Qe.includes(ti),fr=Ue(li[ai.children]||[],gn,_i),tr=Kt.createElement(St,li,fr.map(function(yr){return yr.node}));if(Ce===ti&&(Tn=tr),_i){var er={pos:gn,node:tr,children:fr};return Xn||bn.push(er),er}return null}).filter(function(li){return li})}bn||(bn=[],Ue(un),bn.sort(function(cn,Ln){var Xn=cn.node.props.value,li=Ln.node.props.value,Ci=Qe.indexOf(Xn),gn=Qe.indexOf(li);return Ci-gn}))}Object.defineProperty(De,"triggerNode",{get:function(){return(0,ze.ZP)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),Ie(),Tn}}),Object.defineProperty(De,"allCheckedNodes",{get:function(){return(0,ze.ZP)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),Ie(),Nn?bn:bn.map(function(cn){var Ln=cn.node;return Ln})}})}var Gt=function(Ce,Qe,un){var Nn=un.fieldNames,ai=un.treeNodeFilterProp,Tn=un.filterTreeNode,bn=Nn.children;return Kt.useMemo(function(){if(!Qe||Tn===!1)return Ce;var Ie=typeof Tn=="function"?Tn:function(cn,Ln){return String(Ln[ai]).toUpperCase().includes(Qe.toUpperCase())},Ue=function cn(Ln){var Xn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Ln.reduce(function(li,Ci){var gn=Ci[bn],ti=Xn||Ie(Qe,Zt(Ci)),_i=cn(gn||[],ti);return(ti||_i.length)&&li.push((0,ie.Z)((0,ie.Z)({},Ci),{},(0,lt.Z)({isLeaf:void 0},bn,_i))),li},[])};return Ue(Ce)},[Ce,Qe,bn,ai,Tn])},_t=Gt;function ge(De){var Ce=Kt.useRef();Ce.current=De;var Qe=Kt.useCallback(function(){return Ce.current.apply(Ce,arguments)},[]);return Qe}function me(De,Ce){var Qe=Ce.id,un=Ce.pId,Nn=Ce.rootPId,ai=new Map,Tn=[];return De.forEach(function(bn){var Ie=bn[Qe],Ue=(0,ie.Z)((0,ie.Z)({},bn),{},{key:bn.key||Ie});ai.set(Ie,Ue)}),ai.forEach(function(bn){var Ie=bn[un],Ue=ai.get(Ie);Ue?(Ue.children=Ue.children||[],Ue.children.push(bn)):(Ie===Nn||Nn===null)&&Tn.push(bn)}),Tn}function Pe(De,Ce,Qe){return Kt.useMemo(function(){if(De){if(Qe){var un=(0,ie.Z)({id:"id",pId:"pId",rootPId:null},(0,jt.Z)(Qe)==="object"?Qe:{});return me(De,un)}return De}return It(Ce)},[Ce,Qe,De])}var ye=Kt.createContext(null),He=ye,wn=Dt(69889),ln=Dt(71598),Oe=Dt(10228),Sn=Dt(80547),se=Kt.createContext(null),Yt=se,fn=function(Ce){return Array.isArray(Ce)?Ce:Ce!==void 0?[Ce]:[]},_n=function(Ce){var Qe=Ce||{},un=Qe.label,Nn=Qe.value,ai=Qe.children;return{_title:un?[un]:["title","label"],value:Nn||"value",key:Nn||"value",children:ai||"children"}},In=function(Ce){return!Ce||Ce.disabled||Ce.disableCheckbox||Ce.checkable===!1},on=function(Ce,Qe){var un=[],Nn=function ai(Tn){Tn.forEach(function(bn){var Ie=bn[Qe.children];Ie&&(un.push(bn[Qe.value]),ai(Ie))})};return Nn(Ce),un},jn=function(Ce){return Ce==null},Pn=Dt(70425),di={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Re=function(Ce,Qe){var un=(0,ce.lk)(),Nn=un.prefixCls,ai=un.multiple,Tn=un.searchValue,bn=un.toggleOpen,Ie=un.open,Ue=un.notFoundContent,cn=Kt.useContext(Yt),Ln=cn.virtual,Xn=cn.listHeight,li=cn.listItemHeight,Ci=cn.listItemScrollOffset,gn=cn.treeData,ti=cn.fieldNames,_i=cn.onSelect,fr=cn.dropdownMatchSelectWidth,tr=cn.treeExpandAction,er=cn.treeTitleRender,yr=cn.onPopupScroll,sr=cn.leftMaxCount,hr=cn.leafCountOnly,zi=cn.valueEntities,gr=Kt.useContext(He),Et=gr.checkable,Bn=gr.checkedKeys,Gn=gr.halfCheckedKeys,fi=gr.treeExpandedKeys,ci=gr.treeDefaultExpandAll,Kn=gr.treeDefaultExpandedKeys,rn=gr.onTreeExpand,Yn=gr.treeIcon,Fe=gr.showTreeIcon,Ne=gr.switcherIcon,ke=gr.treeLine,sn=gr.treeNodeFilterProp,xi=gr.loadData,yi=gr.treeLoadedKeys,Fi=gr.treeMotion,Xe=gr.onTreeLoad,Dn=gr.keyEntities,mn=Kt.useRef(),Hi=(0,Sn.Z)(function(){return gn},[Ie,gn],function(pn,dr){return dr[0]&&pn[1]!==dr[1]}),qn=Kt.useMemo(function(){return Et?{checked:Bn,halfChecked:Gn}:null},[Et,Bn,Gn]);Kt.useEffect(function(){if(Ie&&!ai&&Bn.length){var pn;(pn=mn.current)===null||pn===void 0||pn.scrollTo({key:Bn[0]})}},[Ie]);var te=function(dr){dr.preventDefault()},be=function(dr,xn){var bi=xn.node;Et&&In(bi)||(_i(bi.key,{selected:!Bn.includes(bi.key)}),ai||bn(!1))},Jn=Kt.useState(Kn),Fn=(0,we.Z)(Jn,2),Be=Fn[0],zn=Fn[1],Ai=Kt.useState(null),Ii=(0,we.Z)(Ai,2),Ki=Ii[0],oi=Ii[1],gi=Kt.useMemo(function(){return fi?(0,ee.Z)(fi):Tn?Ki:Be},[Be,Ki,fi,Tn]),Si=function(dr){zn(dr),oi(dr),rn&&rn(dr)},Ui=String(Tn).toLowerCase(),ji=function(dr){return Ui?String(dr[sn]).toLowerCase().includes(Ui):!1};Kt.useEffect(function(){Tn&&oi(on(gn,ti))},[Tn]);var Mn=Kt.useState(function(){return new Map}),Ei=(0,we.Z)(Mn,2),xr=Ei[0],Tr=Ei[1];Kt.useEffect(function(){sr&&Tr(new Map)},[sr]);function _r(pn){var dr=pn[ti.value];if(!xr.has(dr)){var xn=zi.get(dr),bi=(xn.children||[]).length===0;if(bi)xr.set(dr,!1);else{var Sr=xn.children.filter(function(io){return!io.node.disabled&&!io.node.disableCheckbox&&!Bn.includes(io.node[ti.value])}),Er=Sr.length;xr.set(dr,Er>sr)}}return xr.get(dr)}var We=(0,Pn.zX)(function(pn){var dr=pn[ti.value];return Bn.includes(dr)||sr===null?!1:sr<=0?!0:hr&&sr?_r(pn):!1}),ar=function pn(dr){var xn=(0,wn.Z)(dr),bi;try{for(xn.s();!(bi=xn.n()).done;){var Sr=bi.value;if(!(Sr.disabled||Sr.selectable===!1)){if(Tn){if(ji(Sr))return Sr}else return Sr;if(Sr[ti.children]){var Er=pn(Sr[ti.children]);if(Er)return Er}}}}catch(io){xn.e(io)}finally{xn.f()}return null},br=Kt.useState(null),Gi=(0,we.Z)(br,2),Gr=Gi[0],Or=Gi[1],Wr=Dn[Gr];Kt.useEffect(function(){if(Ie){var pn=null,dr=function(){var bi=ar(Hi);return bi?bi[ti.value]:null};!ai&&Bn.length&&!Tn?pn=Bn[0]:pn=dr(),Or(pn)}},[Ie,Tn]),Kt.useImperativeHandle(Qe,function(){var pn;return{scrollTo:(pn=mn.current)===null||pn===void 0?void 0:pn.scrollTo,onKeyDown:function(xn){var bi,Sr=xn.which;switch(Sr){case Oe.Z.UP:case Oe.Z.DOWN:case Oe.Z.LEFT:case Oe.Z.RIGHT:(bi=mn.current)===null||bi===void 0||bi.onKeyDown(xn);break;case Oe.Z.ENTER:{if(Wr){var Er=We(Wr.node),io=(Wr==null?void 0:Wr.node)||{},Yr=io.selectable,Mr=io.value,uo=io.disabled;Yr!==!1&&!uo&&!Er&&be(null,{node:{key:Gr},selected:!Bn.includes(Mr)})}break}case Oe.Z.ESC:bn(!1)}},onKeyUp:function(){}}});var Zi=(0,Sn.Z)(function(){return!Tn},[Tn,fi||Be],function(pn,dr){var xn=(0,we.Z)(pn,1),bi=xn[0],Sr=(0,we.Z)(dr,2),Er=Sr[0],io=Sr[1];return bi!==Er&&!!(Er||io)}),ir=Zi?xi:null;if(Hi.length===0)return Kt.createElement("div",{role:"listbox",className:"".concat(Nn,"-empty"),onMouseDown:te},Ue);var Qi={fieldNames:ti};return yi&&(Qi.loadedKeys=yi),gi&&(Qi.expandedKeys=gi),Kt.createElement("div",{onMouseDown:te},Wr&&Ie&&Kt.createElement("span",{style:di,"aria-live":"assertive"},Wr.node.value),Kt.createElement(ln.y6.Provider,{value:{nodeDisabled:We}},Kt.createElement(ln.ZP,(0,yt.Z)({ref:mn,focusable:!1,prefixCls:"".concat(Nn,"-tree"),treeData:Hi,height:Xn,itemHeight:li,itemScrollOffset:Ci,virtual:Ln!==!1&&fr!==!1,multiple:ai,icon:Yn,showIcon:Fe,switcherIcon:Ne,showLine:ke,loadData:ir,motion:Fi,activeKey:Gr,checkable:Et,checkStrictly:!0,checkedKeys:qn,selectedKeys:Et?[]:Bn,defaultExpandAll:ci,titleRender:er},Qi,{onActiveChange:Or,onSelect:be,onCheck:be,onExpand:Si,onLoad:Xe,filterTreeNode:ji,expandAction:tr,onScroll:yr}))))},ve=Kt.forwardRef(Re),Ye=ve,mi="SHOW_ALL",Cn="SHOW_PARENT",Ot="SHOW_CHILD";function At(De,Ce,Qe,un){var Nn=new Set(De);return Ce===Ot?De.filter(function(ai){var Tn=Qe[ai];return!Tn||!Tn.children||!Tn.children.some(function(bn){var Ie=bn.node;return Nn.has(Ie[un.value])})||!Tn.children.every(function(bn){var Ie=bn.node;return In(Ie)||Nn.has(Ie[un.value])})}):Ce===Cn?De.filter(function(ai){var Tn=Qe[ai],bn=Tn?Tn.parent:null;return!bn||In(bn.node)||!Nn.has(bn.key)}):De}function wt(De){var Ce=De.searchPlaceholder,Qe=De.treeCheckStrictly,un=De.treeCheckable,Nn=De.labelInValue,ai=De.value,Tn=De.multiple,bn=De.showCheckedStrategy,Ie=De.maxCount;warning(!Ce,"`searchPlaceholder` has been removed."),Qe&&Nn===!1&&warning(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(Nn||Qe)&&warning(toArray(ai).every(function(Ue){return Ue&&_typeof(Ue)==="object"&&"value"in Ue}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),Qe||Tn||un?warning(!ai||Array.isArray(ai),"`value` should be an array when `TreeSelect` is checkable or multiple."):warning(!Array.isArray(ai),"`value` should not be array when `TreeSelect` is single mode."),Ie&&(bn==="SHOW_ALL"&&!Qe||bn==="SHOW_PARENT")&&warning(!1,"`maxCount` not work with `showCheckedStrategy=SHOW_ALL` (when `treeCheckStrictly=false`) or `showCheckedStrategy=SHOW_PARENT`.")}var Nt=null,Vt=["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(De){return!De||(0,jt.Z)(De)!=="object"}var $t=Kt.forwardRef(function(De,Ce){var Qe=De.id,un=De.prefixCls,Nn=un===void 0?"rc-tree-select":un,ai=De.value,Tn=De.defaultValue,bn=De.onChange,Ie=De.onSelect,Ue=De.onDeselect,cn=De.searchValue,Ln=De.inputValue,Xn=De.onSearch,li=De.autoClearSearchValue,Ci=li===void 0?!0:li,gn=De.filterTreeNode,ti=De.treeNodeFilterProp,_i=ti===void 0?"value":ti,fr=De.showCheckedStrategy,tr=De.treeNodeLabelProp,er=De.multiple,yr=De.treeCheckable,sr=De.treeCheckStrictly,hr=De.labelInValue,zi=De.maxCount,gr=De.fieldNames,Et=De.treeDataSimpleMode,Bn=De.treeData,Gn=De.children,fi=De.loadData,ci=De.treeLoadedKeys,Kn=De.onTreeLoad,rn=De.treeDefaultExpandAll,Yn=De.treeExpandedKeys,Fe=De.treeDefaultExpandedKeys,Ne=De.onTreeExpand,ke=De.treeExpandAction,sn=De.virtual,xi=De.listHeight,yi=xi===void 0?200:xi,Fi=De.listItemHeight,Xe=Fi===void 0?20:Fi,Dn=De.listItemScrollOffset,mn=Dn===void 0?0:Dn,Hi=De.onDropdownVisibleChange,qn=De.dropdownMatchSelectWidth,te=qn===void 0?!0:qn,be=De.treeLine,Jn=De.treeIcon,Fn=De.showTreeIcon,Be=De.switcherIcon,zn=De.treeMotion,Ai=De.treeTitleRender,Ii=De.onPopupScroll,Ki=(0,Ee.Z)(De,Vt),oi=(0,Ve.ZP)(Qe),gi=yr&&!sr,Si=yr||sr,Ui=sr||hr,ji=Si||er,Mn=(0,Lt.Z)(Tn,{value:ai}),Ei=(0,we.Z)(Mn,2),xr=Ei[0],Tr=Ei[1],_r=Kt.useMemo(function(){return yr?fr||Ot:mi},[fr,yr]),We=Kt.useMemo(function(){return _n(gr)},[JSON.stringify(gr)]),ar=(0,Lt.Z)("",{value:cn!==void 0?cn:Ln,postState:function(zt){return zt||""}}),br=(0,we.Z)(ar,2),Gi=br[0],Gr=br[1],Or=function(zt){Gr(zt),Xn==null||Xn(zt)},Wr=Pe(Bn,Gn,Et),Zi=dt(Wr,We),ir=Zi.keyEntities,Qi=Zi.valueEntities,pn=Kt.useCallback(function(Qt){var zt=[],de=[];return Qt.forEach(function(ue){Qi.has(ue)?de.push(ue):zt.push(ue)}),{missingRawValues:zt,existRawValues:de}},[Qi]),dr=_t(Wr,Gi,{fieldNames:We,treeNodeFilterProp:_i,filterTreeNode:gn}),xn=Kt.useCallback(function(Qt){if(Qt){if(tr)return Qt[tr];for(var zt=We._title,de=0;de<zt.length;de+=1){var ue=Qt[zt[de]];if(ue!==void 0)return ue}}},[We,tr]),bi=Kt.useCallback(function(Qt){var zt=fn(Qt);return zt.map(function(de){return kt(de)?{value:de}:de})},[]),Sr=Kt.useCallback(function(Qt){var zt=bi(Qt);return zt.map(function(de){var ue=de.label,Ge=de.value,Ze=de.halfChecked,an,kn=Qi.get(Ge);if(kn){var Un;ue=Ai?Ai(kn.node):(Un=ue)!==null&&Un!==void 0?Un:xn(kn.node),an=kn.node.disabled}else if(ue===void 0){var yn=bi(xr).find(function(si){return si.value===Ge});ue=yn.label}return{label:ue,value:Ge,halfChecked:Ze,disabled:an}})},[Qi,xn,bi,xr]),Er=Kt.useMemo(function(){return bi(xr===null?[]:xr)},[bi,xr]),io=Kt.useMemo(function(){var Qt=[],zt=[];return Er.forEach(function(de){de.halfChecked?zt.push(de):Qt.push(de)}),[Qt,zt]},[Er]),Yr=(0,we.Z)(io,2),Mr=Yr[0],uo=Yr[1],tn=Kt.useMemo(function(){return Mr.map(function(Qt){return Qt.value})},[Mr]),Hn=nt(Mr,uo,gi,ir),_e=(0,we.Z)(Hn,2),Tt=_e[0],Wt=_e[1],qt=Kt.useMemo(function(){var Qt=At(Tt,_r,ir,We),zt=Qt.map(function(Ze){var an,kn;return(an=(kn=ir[Ze])===null||kn===void 0||(kn=kn.node)===null||kn===void 0?void 0:kn[We.value])!==null&&an!==void 0?an:Ze}),de=zt.map(function(Ze){var an=Mr.find(function(Un){return Un.value===Ze}),kn=hr?an==null?void 0:an.label:Ai==null?void 0:Ai(an);return{value:Ze,label:kn}}),ue=Sr(de),Ge=ue[0];return!ji&&Ge&&jn(Ge.value)&&jn(Ge.label)?[]:ue.map(function(Ze){var an;return(0,ie.Z)((0,ie.Z)({},Ze),{},{label:(an=Ze.label)!==null&&an!==void 0?an:Ze.value})})},[We,ji,Tt,Mr,Sr,_r,ir]),Se=Je(qt),Te=(0,we.Z)(Se,1),en=Te[0],ne=Kt.useMemo(function(){return ji&&(_r==="SHOW_CHILD"||sr||!yr)?zi:null},[zi,ji,sr,_r,yr]),Me=ge(function(Qt,zt,de){var ue=At(Qt,_r,ir,We);if(!(ne&&ue.length>ne)){var Ge=Sr(Qt);if(Tr(Ge),Ci&&Gr(""),bn){var Ze=Qt;gi&&(Ze=ue.map(function(Wn){var Vn=Qi.get(Wn);return Vn?Vn.node[We.value]:Wn}));var an=zt||{triggerValue:void 0,selected:void 0},kn=an.triggerValue,Un=an.selected,yn=Ze;if(sr){var si=uo.filter(function(Wn){return!Ze.includes(Wn.value)});yn=[].concat((0,ee.Z)(yn),(0,ee.Z)(si))}var vi=Sr(yn),le={preValue:Mr,triggerValue:kn},ei=!0;(sr||de==="selection"&&!Un)&&(ei=!1),oe(le,kn,Qt,Wr,ei,We),Si?le.checked=Un:le.selected=Un;var ni=Ui?vi:vi.map(function(Wn){return Wn.value});bn(ji?ni:ni[0],Ui?null:vi.map(function(Wn){return Wn.label}),le)}}}),Ke=Kt.useCallback(function(Qt,zt){var de,ue=zt.selected,Ge=zt.source,Ze=ir[Qt],an=Ze==null?void 0:Ze.node,kn=(de=an==null?void 0:an[We.value])!==null&&de!==void 0?de:Qt;if(!ji)Me([kn],{selected:!0,triggerValue:kn},"option");else{var Un=ue?[].concat((0,ee.Z)(tn),[kn]):Tt.filter(function(Vn){return Vn!==kn});if(gi){var yn=pn(Un),si=yn.missingRawValues,vi=yn.existRawValues,le=vi.map(function(Vn){return Qi.get(Vn).key}),ei;if(ue){var ni=(0,xe.S)(le,!0,ir);ei=ni.checkedKeys}else{var Wn=(0,xe.S)(le,{checked:!1,halfCheckedKeys:Wt},ir);ei=Wn.checkedKeys}Un=[].concat((0,ee.Z)(si),(0,ee.Z)(ei.map(function(Vn){return ir[Vn].node[We.value]})))}Me(Un,{selected:ue,triggerValue:kn},Ge||"option")}ue||!ji?Ie==null||Ie(kn,Zt(an)):Ue==null||Ue(kn,Zt(an))},[pn,Qi,ir,We,ji,tn,Me,gi,Ie,Ue,Tt,Wt,zi]),je=Kt.useCallback(function(Qt){if(Hi){var zt={};Object.defineProperty(zt,"documentClickClose",{get:function(){return(0,ze.ZP)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),Hi(Qt,zt)}},[Hi]),hn=ge(function(Qt,zt){var de=Qt.map(function(ue){return ue.value});if(zt.type==="clear"){Me(de,{},"selection");return}zt.values.length&&Ke(zt.values[0].value,{selected:!1,source:"selection"})}),An=Kt.useMemo(function(){return{virtual:sn,dropdownMatchSelectWidth:te,listHeight:yi,listItemHeight:Xe,listItemScrollOffset:mn,treeData:dr,fieldNames:We,onSelect:Ke,treeExpandAction:ke,treeTitleRender:Ai,onPopupScroll:Ii,leftMaxCount:zi===void 0?null:zi-en.length,leafCountOnly:_r==="SHOW_CHILD"&&!sr&&!!yr,valueEntities:Qi}},[sn,te,yi,Xe,mn,dr,We,Ke,ke,Ai,Ii,zi,en.length,_r,sr,yr,Qi]),Ct=Kt.useMemo(function(){return{checkable:Si,loadData:fi,treeLoadedKeys:ci,onTreeLoad:Kn,checkedKeys:Tt,halfCheckedKeys:Wt,treeDefaultExpandAll:rn,treeExpandedKeys:Yn,treeDefaultExpandedKeys:Fe,onTreeExpand:Ne,treeIcon:Jn,treeMotion:zn,showTreeIcon:Fn,switcherIcon:Be,treeLine:be,treeNodeFilterProp:_i,keyEntities:ir}},[Si,fi,ci,Kn,Tt,Wt,rn,Yn,Fe,Ne,Jn,zn,Fn,Be,be,_i,ir]);return Kt.createElement(Yt.Provider,{value:An},Kt.createElement(He.Provider,{value:Ct},Kt.createElement(ce.Ac,(0,yt.Z)({ref:Ce},Ki,{id:oi,prefixCls:Nn,mode:ji?"multiple":void 0,displayValues:en,onDisplayValuesChange:hn,searchValue:Gi,onSearch:Or,OptionList:Ye,emptyOptions:!Wr.length,onDropdownVisibleChange:je,dropdownMatchSelectWidth:te}))))}),nn=$t;nn.TreeNode=St,nn.SHOW_ALL=mi,nn.SHOW_PARENT=Cn,nn.SHOW_CHILD=Ot;var dn=nn,En=dn},639:function(Qn,pi,Dt){"use strict";Dt.d(pi,{Z:function(){return mt}});var yt=Dt(67711),ee=Dt(52873),ie=Dt(98506),we=Dt(16886),Ee=Dt(33346),jt=Dt(59301),ce=Dt(92310),Ve=Dt.n(ce),xe=Dt(26112),Lt=Dt(30699),ze=function(Mt){for(var It=Mt.prefixCls,Zt=Mt.level,oe=Mt.isStart,Gt=Mt.isEnd,_t="".concat(It,"-indent-unit"),ge=[],me=0;me<Zt;me+=1)ge.push(jt.createElement("span",{key:me,className:Ve()(_t,(0,ee.Z)((0,ee.Z)({},"".concat(_t,"-start"),oe[me]),"".concat(_t,"-end"),Gt[me]))}));return jt.createElement("span",{"aria-hidden":"true",className:"".concat(It,"-indent")},ge)},Kt=jt.memo(ze),Je=Dt(65065),Bt=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(Mt){var It,Zt,oe,Gt=Mt.eventKey,_t=Mt.className,ge=Mt.style,me=Mt.dragOver,Pe=Mt.dragOverGapTop,ye=Mt.dragOverGapBottom,He=Mt.isLeaf,wn=Mt.isStart,ln=Mt.isEnd,Oe=Mt.expanded,Sn=Mt.selected,se=Mt.checked,Yt=Mt.halfChecked,fn=Mt.loading,_n=Mt.domRef,In=Mt.active,on=Mt.data,jn=Mt.onMouseMove,Pn=Mt.selectable,di=(0,Ee.Z)(Mt,nt),Re=jt.useContext(Lt.k),ve=jt.useContext(Lt.y),Ye=jt.useRef(null),mi=jt.useState(!1),Cn=(0,we.Z)(mi,2),Ot=Cn[0],At=Cn[1],wt=!!(Re.disabled||Mt.disabled||(It=ve.nodeDisabled)!==null&&It!==void 0&&It.call(ve,on)),Nt=jt.useMemo(function(){return!Re.checkable||Mt.checkable===!1?!1:Re.checkable},[Re.checkable,Mt.checkable]),Vt=function(Gn){wt||Re.onNodeSelect(Gn,(0,Bt.F)(Mt))},kt=function(Gn){wt||!Nt||Mt.disableCheckbox||Re.onNodeCheck(Gn,(0,Bt.F)(Mt),!se)},$t=jt.useMemo(function(){return typeof Pn=="boolean"?Pn:Re.selectable},[Pn,Re.selectable]),nn=function(Gn){Re.onNodeClick(Gn,(0,Bt.F)(Mt)),$t?Vt(Gn):kt(Gn)},dn=function(Gn){Re.onNodeDoubleClick(Gn,(0,Bt.F)(Mt))},En=function(Gn){Re.onNodeMouseEnter(Gn,(0,Bt.F)(Mt))},De=function(Gn){Re.onNodeMouseLeave(Gn,(0,Bt.F)(Mt))},Ce=function(Gn){Re.onNodeContextMenu(Gn,(0,Bt.F)(Mt))},Qe=jt.useMemo(function(){return!!(Re.draggable&&(!Re.draggable.nodeDraggable||Re.draggable.nodeDraggable(on)))},[Re.draggable,on]),un=function(Gn){Gn.stopPropagation(),At(!0),Re.onNodeDragStart(Gn,Mt);try{Gn.dataTransfer.setData("text/plain","")}catch(fi){}},Nn=function(Gn){Gn.preventDefault(),Gn.stopPropagation(),Re.onNodeDragEnter(Gn,Mt)},ai=function(Gn){Gn.preventDefault(),Gn.stopPropagation(),Re.onNodeDragOver(Gn,Mt)},Tn=function(Gn){Gn.stopPropagation(),Re.onNodeDragLeave(Gn,Mt)},bn=function(Gn){Gn.stopPropagation(),At(!1),Re.onNodeDragEnd(Gn,Mt)},Ie=function(Gn){Gn.preventDefault(),Gn.stopPropagation(),At(!1),Re.onNodeDrop(Gn,Mt)},Ue=function(Gn){fn||Re.onNodeExpand(Gn,(0,Bt.F)(Mt))},cn=jt.useMemo(function(){var Bn=(0,Je.Z)(Re.keyEntities,Gt)||{},Gn=Bn.children;return!!(Gn||[]).length},[Re.keyEntities,Gt]),Ln=jt.useMemo(function(){return He===!1?!1:He||!Re.loadData&&!cn||Re.loadData&&Mt.loaded&&!cn},[He,Re.loadData,cn,Mt.loaded]);jt.useEffect(function(){fn||typeof Re.loadData=="function"&&Oe&&!Ln&&!Mt.loaded&&Re.onNodeLoad((0,Bt.F)(Mt))},[fn,Re.loadData,Re.onNodeLoad,Oe,Ln,Mt]);var Xn=jt.useMemo(function(){var Bn;return(Bn=Re.draggable)!==null&&Bn!==void 0&&Bn.icon?jt.createElement("span",{className:"".concat(Re.prefixCls,"-draggable-icon")},Re.draggable.icon):null},[Re.draggable]),li=function(Gn){var fi=Mt.switcherIcon||Re.switcherIcon;return typeof fi=="function"?fi((0,ie.Z)((0,ie.Z)({},Mt),{},{isLeaf:Gn})):fi},Ci=function(){if(Ln){var Gn=li(!0);return Gn!==!1?jt.createElement("span",{className:Ve()("".concat(Re.prefixCls,"-switcher"),"".concat(Re.prefixCls,"-switcher-noop"))},Gn):null}var fi=li(!1);return fi!==!1?jt.createElement("span",{onClick:Ue,className:Ve()("".concat(Re.prefixCls,"-switcher"),"".concat(Re.prefixCls,"-switcher_").concat(Oe?et:dt))},fi):null},gn=jt.useMemo(function(){if(!Nt)return null;var Bn=typeof Nt!="boolean"?Nt:null;return jt.createElement("span",{className:Ve()("".concat(Re.prefixCls,"-checkbox"),(0,ee.Z)((0,ee.Z)((0,ee.Z)({},"".concat(Re.prefixCls,"-checkbox-checked"),se),"".concat(Re.prefixCls,"-checkbox-indeterminate"),!se&&Yt),"".concat(Re.prefixCls,"-checkbox-disabled"),wt||Mt.disableCheckbox)),onClick:kt,role:"checkbox","aria-checked":Yt?"mixed":se,"aria-disabled":wt||Mt.disableCheckbox,"aria-label":"Select ".concat(typeof Mt.title=="string"?Mt.title:"tree node")},Bn)},[Nt,se,Yt,wt,Mt.disableCheckbox,Mt.title]),ti=jt.useMemo(function(){return Ln?null:Oe?et:dt},[Ln,Oe]),_i=jt.useMemo(function(){return jt.createElement("span",{className:Ve()("".concat(Re.prefixCls,"-iconEle"),"".concat(Re.prefixCls,"-icon__").concat(ti||"docu"),(0,ee.Z)({},"".concat(Re.prefixCls,"-icon_loading"),fn))})},[Re.prefixCls,ti,fn]),fr=jt.useMemo(function(){var Bn=!!Re.draggable,Gn=!Mt.disabled&&Bn&&Re.dragOverNodeKey===Gt;return Gn?Re.dropIndicatorRender({dropPosition:Re.dropPosition,dropLevelOffset:Re.dropLevelOffset,indent:Re.indent,prefixCls:Re.prefixCls,direction:Re.direction}):null},[Re.dropPosition,Re.dropLevelOffset,Re.indent,Re.prefixCls,Re.direction,Re.draggable,Re.dragOverNodeKey,Re.dropIndicatorRender]),tr=jt.useMemo(function(){var Bn=Mt.title,Gn=Bn===void 0?lt:Bn,fi="".concat(Re.prefixCls,"-node-content-wrapper"),ci;if(Re.showIcon){var Kn=Mt.icon||Re.icon;ci=Kn?jt.createElement("span",{className:Ve()("".concat(Re.prefixCls,"-iconEle"),"".concat(Re.prefixCls,"-icon__customize"))},typeof Kn=="function"?Kn(Mt):Kn):_i}else Re.loadData&&fn&&(ci=_i);var rn;return typeof Gn=="function"?rn=Gn(on):Re.titleRender?rn=Re.titleRender(on):rn=Gn,jt.createElement("span",{ref:Ye,title:typeof Gn=="string"?Gn:"",className:Ve()(fi,"".concat(fi,"-").concat(ti||"normal"),(0,ee.Z)({},"".concat(Re.prefixCls,"-node-selected"),!wt&&(Sn||Ot))),onMouseEnter:En,onMouseLeave:De,onContextMenu:Ce,onClick:nn,onDoubleClick:dn},ci,jt.createElement("span",{className:"".concat(Re.prefixCls,"-title")},rn),fr)},[Re.prefixCls,Re.showIcon,Mt,Re.icon,_i,Re.titleRender,on,ti,En,De,Ce,nn,dn]),er=(0,xe.Z)(di,{aria:!0,data:!0}),yr=(0,Je.Z)(Re.keyEntities,Gt)||{},sr=yr.level,hr=ln[ln.length-1],zi=!wt&&Qe,gr=Re.draggingNodeKey===Gt,Et=Pn!==void 0?{"aria-selected":!!Pn}:void 0;return jt.createElement("div",(0,yt.Z)({ref:_n,role:"treeitem","aria-expanded":He?void 0:Oe,className:Ve()(_t,"".concat(Re.prefixCls,"-treenode"),(oe={},(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)(oe,"".concat(Re.prefixCls,"-treenode-disabled"),wt),"".concat(Re.prefixCls,"-treenode-switcher-").concat(Oe?"open":"close"),!He),"".concat(Re.prefixCls,"-treenode-checkbox-checked"),se),"".concat(Re.prefixCls,"-treenode-checkbox-indeterminate"),Yt),"".concat(Re.prefixCls,"-treenode-selected"),Sn),"".concat(Re.prefixCls,"-treenode-loading"),fn),"".concat(Re.prefixCls,"-treenode-active"),In),"".concat(Re.prefixCls,"-treenode-leaf-last"),hr),"".concat(Re.prefixCls,"-treenode-draggable"),Qe),"dragging",gr),(0,ee.Z)((0,ee.Z)((0,ee.Z)((0,ee.Z)((0,ee.Z)((0,ee.Z)((0,ee.Z)(oe,"drop-target",Re.dropTargetKey===Gt),"drop-container",Re.dropContainerKey===Gt),"drag-over",!wt&&me),"drag-over-gap-top",!wt&&Pe),"drag-over-gap-bottom",!wt&&ye),"filter-node",(Zt=Re.filterTreeNode)===null||Zt===void 0?void 0:Zt.call(Re,(0,Bt.F)(Mt))),"".concat(Re.prefixCls,"-treenode-leaf"),Ln))),style:ge,draggable:zi,onDragStart:zi?un:void 0,onDragEnter:Qe?Nn:void 0,onDragOver:Qe?ai:void 0,onDragLeave:Qe?Tn:void 0,onDrop:Qe?Ie:void 0,onDragEnd:Qe?bn:void 0,onMouseMove:jn},Et,er),jt.createElement(Kt,{prefixCls:Re.prefixCls,level:sr,isStart:wn,isEnd:ln}),Xn,Ci(),gn,tr)};gt.isTreeNode=1;var mt=gt},30699:function(Qn,pi,Dt){"use strict";Dt.d(pi,{k:function(){return ee},y:function(){return ie}});var yt=Dt(59301),ee=yt.createContext(null),ie=yt.createContext({})},71598:function(Qn,pi,Dt){"use strict";Dt.d(pi,{OF:function(){return Gt.Z},y6:function(){return dt.y},ZP:function(){return wt}});var yt=Dt(67711),ee=Dt(26420),ie=Dt(98506),we=Dt(15142),Ee=Dt(42573),jt=Dt(58698),ce=Dt(62437),Ve=Dt(74700),xe=Dt(45080),Lt=Dt(52873),ze=Dt(92310),Kt=Dt.n(ze),Je=Dt(10228),Bt=Dt(26112),nt=Dt(48736),et=Dt(59301),dt=Dt(30699),lt=function(Vt){var kt=Vt.dropPosition,$t=Vt.dropLevelOffset,nn=Vt.indent,dn={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(kt){case-1:dn.top=0,dn.left=-$t*nn;break;case 1:dn.bottom=0,dn.left=-$t*nn;break;case 0:dn.bottom=0,dn.left=nn;break}return et.createElement("div",{style:dn})},gt=lt;function mt(Nt){if(Nt==null)throw new TypeError("Cannot destructure "+Nt)}var St=Dt(16886),Mt=Dt(33346),It=Dt(34280),Zt=Dt(6790),oe=Dt(77900),Gt=Dt(639);function _t(Nt,Vt){var kt=et.useState(!1),$t=(0,St.Z)(kt,2),nn=$t[0],dn=$t[1];(0,It.Z)(function(){if(nn)return Nt(),function(){Vt()}},[nn]),(0,It.Z)(function(){return dn(!0),function(){dn(!1)}},[])}var ge=_t,me=Dt(34061),Pe=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],ye=et.forwardRef(function(Nt,Vt){var kt=Nt.className,$t=Nt.style,nn=Nt.motion,dn=Nt.motionNodes,En=Nt.motionType,De=Nt.onMotionStart,Ce=Nt.onMotionEnd,Qe=Nt.active,un=Nt.treeNodeRequiredProps,Nn=(0,Mt.Z)(Nt,Pe),ai=et.useState(!0),Tn=(0,St.Z)(ai,2),bn=Tn[0],Ie=Tn[1],Ue=et.useContext(dt.k),cn=Ue.prefixCls,Ln=dn&&En!=="hide";(0,It.Z)(function(){dn&&Ln!==bn&&Ie(Ln)},[dn]);var Xn=function(){dn&&De()},li=et.useRef(!1),Ci=function(){dn&&!li.current&&(li.current=!0,Ce())};ge(Xn,Ci);var gn=function(_i){Ln===_i&&Ci()};return dn?et.createElement(oe.default,(0,yt.Z)({ref:Vt,visible:bn},nn,{motionAppear:En==="show",onVisibleChanged:gn}),function(ti,_i){var fr=ti.className,tr=ti.style;return et.createElement("div",{ref:_i,className:Kt()("".concat(cn,"-treenode-motion"),fr),style:tr},dn.map(function(er){var yr=Object.assign({},(mt(er.data),er.data)),sr=er.title,hr=er.key,zi=er.isStart,gr=er.isEnd;delete yr.children;var Et=(0,me.H8)(hr,un);return et.createElement(Gt.Z,(0,yt.Z)({},yr,Et,{title:sr,active:Qe,data:er.data,key:hr,isStart:zi,isEnd:gr}))}))}):et.createElement(Gt.Z,(0,yt.Z)({domRef:Vt,className:kt,style:$t},Nn,{active:Qe}))}),He=ye;function wn(){var Nt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],kt=Nt.length,$t=Vt.length;if(Math.abs(kt-$t)!==1)return{add:!1,key:null};function nn(dn,En){var De=new Map;dn.forEach(function(Qe){De.set(Qe,!0)});var Ce=En.filter(function(Qe){return!De.has(Qe)});return Ce.length===1?Ce[0]:null}return kt<$t?{add:!0,key:nn(Nt,Vt)}:{add:!1,key:nn(Vt,Nt)}}function ln(Nt,Vt,kt){var $t=Nt.findIndex(function(De){return De.key===kt}),nn=Nt[$t+1],dn=Vt.findIndex(function(De){return De.key===kt});if(nn){var En=Vt.findIndex(function(De){return De.key===nn.key});return Vt.slice(dn+1,En)}return Vt.slice(dn+1)}var Oe=["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"],Sn={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},se=function(){},Yt="RC_TREE_MOTION_".concat(Math.random()),fn={key:Yt},_n={key:Yt,level:0,index:0,pos:"0",node:fn,nodes:[fn]},In={parent:null,children:[],pos:_n.pos,data:fn,title:null,key:Yt,isStart:[],isEnd:[]};function on(Nt,Vt,kt,$t){return Vt===!1||!kt?Nt:Nt.slice(0,Math.ceil(kt/$t)+1)}function jn(Nt){var Vt=Nt.key,kt=Nt.pos;return(0,me.km)(Vt,kt)}function Pn(Nt){for(var Vt=String(Nt.data.key),kt=Nt;kt.parent;)kt=kt.parent,Vt="".concat(kt.data.key," > ").concat(Vt);return Vt}var di=et.forwardRef(function(Nt,Vt){var kt=Nt.prefixCls,$t=Nt.data,nn=Nt.selectable,dn=Nt.checkable,En=Nt.expandedKeys,De=Nt.selectedKeys,Ce=Nt.checkedKeys,Qe=Nt.loadedKeys,un=Nt.loadingKeys,Nn=Nt.halfCheckedKeys,ai=Nt.keyEntities,Tn=Nt.disabled,bn=Nt.dragging,Ie=Nt.dragOverNodeKey,Ue=Nt.dropPosition,cn=Nt.motion,Ln=Nt.height,Xn=Nt.itemHeight,li=Nt.virtual,Ci=Nt.scrollWidth,gn=Nt.focusable,ti=Nt.activeItem,_i=Nt.focused,fr=Nt.tabIndex,tr=Nt.onKeyDown,er=Nt.onFocus,yr=Nt.onBlur,sr=Nt.onActiveChange,hr=Nt.onListChangeStart,zi=Nt.onListChangeEnd,gr=(0,Mt.Z)(Nt,Oe),Et=et.useRef(null),Bn=et.useRef(null);et.useImperativeHandle(Vt,function(){return{scrollTo:function(Ii){Et.current.scrollTo(Ii)},getIndentWidth:function(){return Bn.current.offsetWidth}}});var Gn=et.useState(En),fi=(0,St.Z)(Gn,2),ci=fi[0],Kn=fi[1],rn=et.useState($t),Yn=(0,St.Z)(rn,2),Fe=Yn[0],Ne=Yn[1],ke=et.useState($t),sn=(0,St.Z)(ke,2),xi=sn[0],yi=sn[1],Fi=et.useState([]),Xe=(0,St.Z)(Fi,2),Dn=Xe[0],mn=Xe[1],Hi=et.useState(null),qn=(0,St.Z)(Hi,2),te=qn[0],be=qn[1],Jn=et.useRef($t);Jn.current=$t;function Fn(){var Ai=Jn.current;Ne(Ai),yi(Ai),mn([]),be(null),zi()}(0,It.Z)(function(){Kn(En);var Ai=wn(ci,En);if(Ai.key!==null)if(Ai.add){var Ii=Fe.findIndex(function(ji){var Mn=ji.key;return Mn===Ai.key}),Ki=on(ln(Fe,$t,Ai.key),li,Ln,Xn),oi=Fe.slice();oi.splice(Ii+1,0,In),yi(oi),mn(Ki),be("show")}else{var gi=$t.findIndex(function(ji){var Mn=ji.key;return Mn===Ai.key}),Si=on(ln($t,Fe,Ai.key),li,Ln,Xn),Ui=$t.slice();Ui.splice(gi+1,0,In),yi(Ui),mn(Si),be("hide")}else Fe!==$t&&(Ne($t),yi($t))},[En,$t]),et.useEffect(function(){bn||Fn()},[bn]);var Be=cn?xi:$t,zn={expandedKeys:En,selectedKeys:De,loadedKeys:Qe,loadingKeys:un,checkedKeys:Ce,halfCheckedKeys:Nn,dragOverNodeKey:Ie,dropPosition:Ue,keyEntities:ai};return et.createElement(et.Fragment,null,_i&&ti&&et.createElement("span",{style:Sn,"aria-live":"assertive"},Pn(ti)),et.createElement("div",null,et.createElement("input",{style:Sn,disabled:gn===!1||Tn,tabIndex:gn!==!1?fr:null,onKeyDown:tr,onFocus:er,onBlur:yr,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:Bn,className:"".concat(kt,"-indent-unit")}))),et.createElement(Zt.Z,(0,yt.Z)({},gr,{data:Be,itemKey:jn,height:Ln,fullHeight:!1,virtual:li,itemHeight:Xn,scrollWidth:Ci,prefixCls:"".concat(kt,"-list"),ref:Et,role:"tree",onVisibleChange:function(Ii){Ii.every(function(Ki){return jn(Ki)!==Yt})&&Fn()}}),function(Ai){var Ii=Ai.pos,Ki=Object.assign({},(mt(Ai.data),Ai.data)),oi=Ai.title,gi=Ai.key,Si=Ai.isStart,Ui=Ai.isEnd,ji=(0,me.km)(gi,Ii);delete Ki.key,delete Ki.children;var Mn=(0,me.H8)(ji,zn);return et.createElement(He,(0,yt.Z)({},Ki,Mn,{title:oi,active:!!ti&&gi===ti.key,pos:Ii,data:Ai.data,isStart:Si,isEnd:Ui,motion:cn,motionNodes:gi===Yt?Dn:null,motionType:te,onMotionStart:hr,onMotionEnd:Fn,treeNodeRequiredProps:zn,onMouseMove:function(){sr(null)}}))}))}),Re=di,ve=Dt(82661),Ye=Dt(34643),mi=Dt(65065),Cn=10,Ot=function(Nt){(0,Ve.Z)(kt,Nt);var Vt=(0,xe.Z)(kt);function kt(){var $t;(0,Ee.Z)(this,kt);for(var nn=arguments.length,dn=new Array(nn),En=0;En<nn;En++)dn[En]=arguments[En];return $t=Vt.call.apply(Vt,[this].concat(dn)),(0,Lt.Z)((0,ce.Z)($t),"destroyed",!1),(0,Lt.Z)((0,ce.Z)($t),"delayedDragEnterLogic",void 0),(0,Lt.Z)((0,ce.Z)($t),"loadingRetryTimes",{}),(0,Lt.Z)((0,ce.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,me.w$)()}),(0,Lt.Z)((0,ce.Z)($t),"dragStartMousePosition",null),(0,Lt.Z)((0,ce.Z)($t),"dragNodeProps",null),(0,Lt.Z)((0,ce.Z)($t),"currentMouseOverDroppableNodeKey",null),(0,Lt.Z)((0,ce.Z)($t),"listRef",et.createRef()),(0,Lt.Z)((0,ce.Z)($t),"onNodeDragStart",function(De,Ce){var Qe=$t.state,un=Qe.expandedKeys,Nn=Qe.keyEntities,ai=$t.props.onDragStart,Tn=Ce.eventKey;$t.dragNodeProps=Ce,$t.dragStartMousePosition={x:De.clientX,y:De.clientY};var bn=(0,ve._5)(un,Tn);$t.setState({draggingNodeKey:Tn,dragChildrenKeys:(0,ve.wA)(Tn,Nn),indent:$t.listRef.current.getIndentWidth()}),$t.setExpandedKeys(bn),window.addEventListener("dragend",$t.onWindowDragEnd),ai==null||ai({event:De,node:(0,me.F)(Ce)})}),(0,Lt.Z)((0,ce.Z)($t),"onNodeDragEnter",function(De,Ce){var Qe=$t.state,un=Qe.expandedKeys,Nn=Qe.keyEntities,ai=Qe.dragChildrenKeys,Tn=Qe.flattenNodes,bn=Qe.indent,Ie=$t.props,Ue=Ie.onDragEnter,cn=Ie.onExpand,Ln=Ie.allowDrop,Xn=Ie.direction,li=Ce.pos,Ci=Ce.eventKey;if($t.currentMouseOverDroppableNodeKey!==Ci&&($t.currentMouseOverDroppableNodeKey=Ci),!$t.dragNodeProps){$t.resetDragState();return}var gn=(0,ve.OM)(De,$t.dragNodeProps,Ce,bn,$t.dragStartMousePosition,Ln,Tn,Nn,un,Xn),ti=gn.dropPosition,_i=gn.dropLevelOffset,fr=gn.dropTargetKey,tr=gn.dropContainerKey,er=gn.dropTargetPos,yr=gn.dropAllowed,sr=gn.dragOverNodeKey;if(ai.includes(fr)||!yr){$t.resetDragState();return}if($t.delayedDragEnterLogic||($t.delayedDragEnterLogic={}),Object.keys($t.delayedDragEnterLogic).forEach(function(hr){clearTimeout($t.delayedDragEnterLogic[hr])}),$t.dragNodeProps.eventKey!==Ce.eventKey&&(De.persist(),$t.delayedDragEnterLogic[li]=window.setTimeout(function(){if($t.state.draggingNodeKey!==null){var hr=(0,we.Z)(un),zi=(0,mi.Z)(Nn,Ce.eventKey);zi&&(zi.children||[]).length&&(hr=(0,ve.L0)(un,Ce.eventKey)),$t.props.hasOwnProperty("expandedKeys")||$t.setExpandedKeys(hr),cn==null||cn(hr,{node:(0,me.F)(Ce),expanded:!0,nativeEvent:De.nativeEvent})}},800)),$t.dragNodeProps.eventKey===fr&&_i===0){$t.resetDragState();return}$t.setState({dragOverNodeKey:sr,dropPosition:ti,dropLevelOffset:_i,dropTargetKey:fr,dropContainerKey:tr,dropTargetPos:er,dropAllowed:yr}),Ue==null||Ue({event:De,node:(0,me.F)(Ce),expandedKeys:un})}),(0,Lt.Z)((0,ce.Z)($t),"onNodeDragOver",function(De,Ce){var Qe=$t.state,un=Qe.dragChildrenKeys,Nn=Qe.flattenNodes,ai=Qe.keyEntities,Tn=Qe.expandedKeys,bn=Qe.indent,Ie=$t.props,Ue=Ie.onDragOver,cn=Ie.allowDrop,Ln=Ie.direction;if($t.dragNodeProps){var Xn=(0,ve.OM)(De,$t.dragNodeProps,Ce,bn,$t.dragStartMousePosition,cn,Nn,ai,Tn,Ln),li=Xn.dropPosition,Ci=Xn.dropLevelOffset,gn=Xn.dropTargetKey,ti=Xn.dropContainerKey,_i=Xn.dropTargetPos,fr=Xn.dropAllowed,tr=Xn.dragOverNodeKey;un.includes(gn)||!fr||($t.dragNodeProps.eventKey===gn&&Ci===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():li===$t.state.dropPosition&&Ci===$t.state.dropLevelOffset&&gn===$t.state.dropTargetKey&&ti===$t.state.dropContainerKey&&_i===$t.state.dropTargetPos&&fr===$t.state.dropAllowed&&tr===$t.state.dragOverNodeKey||$t.setState({dropPosition:li,dropLevelOffset:Ci,dropTargetKey:gn,dropContainerKey:ti,dropTargetPos:_i,dropAllowed:fr,dragOverNodeKey:tr}),Ue==null||Ue({event:De,node:(0,me.F)(Ce)}))}}),(0,Lt.Z)((0,ce.Z)($t),"onNodeDragLeave",function(De,Ce){$t.currentMouseOverDroppableNodeKey===Ce.eventKey&&!De.currentTarget.contains(De.relatedTarget)&&($t.resetDragState(),$t.currentMouseOverDroppableNodeKey=null);var Qe=$t.props.onDragLeave;Qe==null||Qe({event:De,node:(0,me.F)(Ce)})}),(0,Lt.Z)((0,ce.Z)($t),"onWindowDragEnd",function(De){$t.onNodeDragEnd(De,null,!0),window.removeEventListener("dragend",$t.onWindowDragEnd)}),(0,Lt.Z)((0,ce.Z)($t),"onNodeDragEnd",function(De,Ce){var Qe=$t.props.onDragEnd;$t.setState({dragOverNodeKey:null}),$t.cleanDragState(),Qe==null||Qe({event:De,node:(0,me.F)(Ce)}),$t.dragNodeProps=null,window.removeEventListener("dragend",$t.onWindowDragEnd)}),(0,Lt.Z)((0,ce.Z)($t),"onNodeDrop",function(De,Ce){var Qe,un=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Nn=$t.state,ai=Nn.dragChildrenKeys,Tn=Nn.dropPosition,bn=Nn.dropTargetKey,Ie=Nn.dropTargetPos,Ue=Nn.dropAllowed;if(Ue){var cn=$t.props.onDrop;if($t.setState({dragOverNodeKey:null}),$t.cleanDragState(),bn!==null){var Ln=(0,ie.Z)((0,ie.Z)({},(0,me.H8)(bn,$t.getTreeNodeRequiredProps())),{},{active:((Qe=$t.getActiveItem())===null||Qe===void 0?void 0:Qe.key)===bn,data:(0,mi.Z)($t.state.keyEntities,bn).node}),Xn=ai.includes(bn);(0,nt.ZP)(!Xn,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var li=(0,ve.yx)(Ie),Ci={event:De,node:(0,me.F)(Ln),dragNode:$t.dragNodeProps?(0,me.F)($t.dragNodeProps):null,dragNodesKeys:[$t.dragNodeProps.eventKey].concat(ai),dropToGap:Tn!==0,dropPosition:Tn+Number(li[li.length-1])};un||cn==null||cn(Ci),$t.dragNodeProps=null}}}),(0,Lt.Z)((0,ce.Z)($t),"cleanDragState",function(){var De=$t.state.draggingNodeKey;De!==null&&$t.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),$t.dragStartMousePosition=null,$t.currentMouseOverDroppableNodeKey=null}),(0,Lt.Z)((0,ce.Z)($t),"triggerExpandActionExpand",function(De,Ce){var Qe=$t.state,un=Qe.expandedKeys,Nn=Qe.flattenNodes,ai=Ce.expanded,Tn=Ce.key,bn=Ce.isLeaf;if(!(bn||De.shiftKey||De.metaKey||De.ctrlKey)){var Ie=Nn.filter(function(cn){return cn.key===Tn})[0],Ue=(0,me.F)((0,ie.Z)((0,ie.Z)({},(0,me.H8)(Tn,$t.getTreeNodeRequiredProps())),{},{data:Ie.data}));$t.setExpandedKeys(ai?(0,ve._5)(un,Tn):(0,ve.L0)(un,Tn)),$t.onNodeExpand(De,Ue)}}),(0,Lt.Z)((0,ce.Z)($t),"onNodeClick",function(De,Ce){var Qe=$t.props,un=Qe.onClick,Nn=Qe.expandAction;Nn==="click"&&$t.triggerExpandActionExpand(De,Ce),un==null||un(De,Ce)}),(0,Lt.Z)((0,ce.Z)($t),"onNodeDoubleClick",function(De,Ce){var Qe=$t.props,un=Qe.onDoubleClick,Nn=Qe.expandAction;Nn==="doubleClick"&&$t.triggerExpandActionExpand(De,Ce),un==null||un(De,Ce)}),(0,Lt.Z)((0,ce.Z)($t),"onNodeSelect",function(De,Ce){var Qe=$t.state.selectedKeys,un=$t.state,Nn=un.keyEntities,ai=un.fieldNames,Tn=$t.props,bn=Tn.onSelect,Ie=Tn.multiple,Ue=Ce.selected,cn=Ce[ai.key],Ln=!Ue;Ln?Ie?Qe=(0,ve.L0)(Qe,cn):Qe=[cn]:Qe=(0,ve._5)(Qe,cn);var Xn=Qe.map(function(li){var Ci=(0,mi.Z)(Nn,li);return Ci?Ci.node:null}).filter(Boolean);$t.setUncontrolledState({selectedKeys:Qe}),bn==null||bn(Qe,{event:"select",selected:Ln,node:Ce,selectedNodes:Xn,nativeEvent:De.nativeEvent})}),(0,Lt.Z)((0,ce.Z)($t),"onNodeCheck",function(De,Ce,Qe){var un=$t.state,Nn=un.keyEntities,ai=un.checkedKeys,Tn=un.halfCheckedKeys,bn=$t.props,Ie=bn.checkStrictly,Ue=bn.onCheck,cn=Ce.key,Ln,Xn={event:"check",node:Ce,checked:Qe,nativeEvent:De.nativeEvent};if(Ie){var li=Qe?(0,ve.L0)(ai,cn):(0,ve._5)(ai,cn),Ci=(0,ve._5)(Tn,cn);Ln={checked:li,halfChecked:Ci},Xn.checkedNodes=li.map(function(er){return(0,mi.Z)(Nn,er)}).filter(Boolean).map(function(er){return er.node}),$t.setUncontrolledState({checkedKeys:li})}else{var gn=(0,Ye.S)([].concat((0,we.Z)(ai),[cn]),!0,Nn),ti=gn.checkedKeys,_i=gn.halfCheckedKeys;if(!Qe){var fr=new Set(ti);fr.delete(cn);var tr=(0,Ye.S)(Array.from(fr),{checked:!1,halfCheckedKeys:_i},Nn);ti=tr.checkedKeys,_i=tr.halfCheckedKeys}Ln=ti,Xn.checkedNodes=[],Xn.checkedNodesPositions=[],Xn.halfCheckedKeys=_i,ti.forEach(function(er){var yr=(0,mi.Z)(Nn,er);if(yr){var sr=yr.node,hr=yr.pos;Xn.checkedNodes.push(sr),Xn.checkedNodesPositions.push({node:sr,pos:hr})}}),$t.setUncontrolledState({checkedKeys:ti},!1,{halfCheckedKeys:_i})}Ue==null||Ue(Ln,Xn)}),(0,Lt.Z)((0,ce.Z)($t),"onNodeLoad",function(De){var Ce,Qe=De.key,un=$t.state.keyEntities,Nn=(0,mi.Z)(un,Qe);if(!(Nn!=null&&(Ce=Nn.children)!==null&&Ce!==void 0&&Ce.length)){var ai=new Promise(function(Tn,bn){$t.setState(function(Ie){var Ue=Ie.loadedKeys,cn=Ue===void 0?[]:Ue,Ln=Ie.loadingKeys,Xn=Ln===void 0?[]:Ln,li=$t.props,Ci=li.loadData,gn=li.onLoad;if(!Ci||cn.includes(Qe)||Xn.includes(Qe))return null;var ti=Ci(De);return ti.then(function(){var _i=$t.state.loadedKeys,fr=(0,ve.L0)(_i,Qe);gn==null||gn(fr,{event:"load",node:De}),$t.setUncontrolledState({loadedKeys:fr}),$t.setState(function(tr){return{loadingKeys:(0,ve._5)(tr.loadingKeys,Qe)}}),Tn()}).catch(function(_i){if($t.setState(function(tr){return{loadingKeys:(0,ve._5)(tr.loadingKeys,Qe)}}),$t.loadingRetryTimes[Qe]=($t.loadingRetryTimes[Qe]||0)+1,$t.loadingRetryTimes[Qe]>=Cn){var fr=$t.state.loadedKeys;(0,nt.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),$t.setUncontrolledState({loadedKeys:(0,ve.L0)(fr,Qe)}),Tn()}bn(_i)}),{loadingKeys:(0,ve.L0)(Xn,Qe)}})});return ai.catch(function(){}),ai}}),(0,Lt.Z)((0,ce.Z)($t),"onNodeMouseEnter",function(De,Ce){var Qe=$t.props.onMouseEnter;Qe==null||Qe({event:De,node:Ce})}),(0,Lt.Z)((0,ce.Z)($t),"onNodeMouseLeave",function(De,Ce){var Qe=$t.props.onMouseLeave;Qe==null||Qe({event:De,node:Ce})}),(0,Lt.Z)((0,ce.Z)($t),"onNodeContextMenu",function(De,Ce){var Qe=$t.props.onRightClick;Qe&&(De.preventDefault(),Qe({event:De,node:Ce}))}),(0,Lt.Z)((0,ce.Z)($t),"onFocus",function(){var De=$t.props.onFocus;$t.setState({focused:!0});for(var Ce=arguments.length,Qe=new Array(Ce),un=0;un<Ce;un++)Qe[un]=arguments[un];De==null||De.apply(void 0,Qe)}),(0,Lt.Z)((0,ce.Z)($t),"onBlur",function(){var De=$t.props.onBlur;$t.setState({focused:!1}),$t.onActiveChange(null);for(var Ce=arguments.length,Qe=new Array(Ce),un=0;un<Ce;un++)Qe[un]=arguments[un];De==null||De.apply(void 0,Qe)}),(0,Lt.Z)((0,ce.Z)($t),"getTreeNodeRequiredProps",function(){var De=$t.state,Ce=De.expandedKeys,Qe=De.selectedKeys,un=De.loadedKeys,Nn=De.loadingKeys,ai=De.checkedKeys,Tn=De.halfCheckedKeys,bn=De.dragOverNodeKey,Ie=De.dropPosition,Ue=De.keyEntities;return{expandedKeys:Ce||[],selectedKeys:Qe||[],loadedKeys:un||[],loadingKeys:Nn||[],checkedKeys:ai||[],halfCheckedKeys:Tn||[],dragOverNodeKey:bn,dropPosition:Ie,keyEntities:Ue}}),(0,Lt.Z)((0,ce.Z)($t),"setExpandedKeys",function(De){var Ce=$t.state,Qe=Ce.treeData,un=Ce.fieldNames,Nn=(0,me.oH)(Qe,De,un);$t.setUncontrolledState({expandedKeys:De,flattenNodes:Nn},!0)}),(0,Lt.Z)((0,ce.Z)($t),"onNodeExpand",function(De,Ce){var Qe=$t.state.expandedKeys,un=$t.state,Nn=un.listChanging,ai=un.fieldNames,Tn=$t.props,bn=Tn.onExpand,Ie=Tn.loadData,Ue=Ce.expanded,cn=Ce[ai.key];if(!Nn){var Ln=Qe.includes(cn),Xn=!Ue;if((0,nt.ZP)(Ue&&Ln||!Ue&&!Ln,"Expand state not sync with index check"),Qe=Xn?(0,ve.L0)(Qe,cn):(0,ve._5)(Qe,cn),$t.setExpandedKeys(Qe),bn==null||bn(Qe,{node:Ce,expanded:Xn,nativeEvent:De.nativeEvent}),Xn&&Ie){var li=$t.onNodeLoad(Ce);li&&li.then(function(){var Ci=(0,me.oH)($t.state.treeData,Qe,ai);$t.setUncontrolledState({flattenNodes:Ci})}).catch(function(){var Ci=$t.state.expandedKeys,gn=(0,ve._5)(Ci,cn);$t.setExpandedKeys(gn)})}}}),(0,Lt.Z)((0,ce.Z)($t),"onListChangeStart",function(){$t.setUncontrolledState({listChanging:!0})}),(0,Lt.Z)((0,ce.Z)($t),"onListChangeEnd",function(){setTimeout(function(){$t.setUncontrolledState({listChanging:!1})})}),(0,Lt.Z)((0,ce.Z)($t),"onActiveChange",function(De){var Ce=$t.state.activeKey,Qe=$t.props,un=Qe.onActiveChange,Nn=Qe.itemScrollOffset,ai=Nn===void 0?0:Nn;Ce!==De&&($t.setState({activeKey:De}),De!==null&&$t.scrollTo({key:De,offset:ai}),un==null||un(De))}),(0,Lt.Z)((0,ce.Z)($t),"getActiveItem",function(){var De=$t.state,Ce=De.activeKey,Qe=De.flattenNodes;return Ce===null?null:Qe.find(function(un){var Nn=un.key;return Nn===Ce})||null}),(0,Lt.Z)((0,ce.Z)($t),"offsetActiveKey",function(De){var Ce=$t.state,Qe=Ce.flattenNodes,un=Ce.activeKey,Nn=Qe.findIndex(function(bn){var Ie=bn.key;return Ie===un});Nn===-1&&De<0&&(Nn=Qe.length),Nn=(Nn+De+Qe.length)%Qe.length;var ai=Qe[Nn];if(ai){var Tn=ai.key;$t.onActiveChange(Tn)}else $t.onActiveChange(null)}),(0,Lt.Z)((0,ce.Z)($t),"onKeyDown",function(De){var Ce=$t.state,Qe=Ce.activeKey,un=Ce.expandedKeys,Nn=Ce.checkedKeys,ai=Ce.fieldNames,Tn=$t.props,bn=Tn.onKeyDown,Ie=Tn.checkable,Ue=Tn.selectable;switch(De.which){case Je.Z.UP:{$t.offsetActiveKey(-1),De.preventDefault();break}case Je.Z.DOWN:{$t.offsetActiveKey(1),De.preventDefault();break}}var cn=$t.getActiveItem();if(cn&&cn.data){var Ln=$t.getTreeNodeRequiredProps(),Xn=cn.data.isLeaf===!1||!!(cn.data[ai.children]||[]).length,li=(0,me.F)((0,ie.Z)((0,ie.Z)({},(0,me.H8)(Qe,Ln)),{},{data:cn.data,active:!0}));switch(De.which){case Je.Z.LEFT:{Xn&&un.includes(Qe)?$t.onNodeExpand({},li):cn.parent&&$t.onActiveChange(cn.parent.key),De.preventDefault();break}case Je.Z.RIGHT:{Xn&&!un.includes(Qe)?$t.onNodeExpand({},li):cn.children&&cn.children.length&&$t.onActiveChange(cn.children[0].key),De.preventDefault();break}case Je.Z.ENTER:case Je.Z.SPACE:{Ie&&!li.disabled&&li.checkable!==!1&&!li.disableCheckbox?$t.onNodeCheck({},li,!Nn.includes(Qe)):!Ie&&Ue&&!li.disabled&&li.selectable!==!1&&$t.onNodeSelect({},li);break}}}bn==null||bn(De)}),(0,Lt.Z)((0,ce.Z)($t),"setUncontrolledState",function(De){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Qe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!$t.destroyed){var un=!1,Nn=!0,ai={};Object.keys(De).forEach(function(Tn){if($t.props.hasOwnProperty(Tn)){Nn=!1;return}un=!0,ai[Tn]=De[Tn]}),un&&(!Ce||Nn)&&$t.setState((0,ie.Z)((0,ie.Z)({},ai),Qe))}}),(0,Lt.Z)((0,ce.Z)($t),"scrollTo",function(De){$t.listRef.current.scrollTo(De)}),$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 nn=this.props,dn=nn.activeKey,En=nn.itemScrollOffset,De=En===void 0?0:En;dn!==void 0&&dn!==this.state.activeKey&&(this.setState({activeKey:dn}),dn!==null&&this.scrollTo({key:dn,offset:De}))}},{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 nn=this.state,dn=nn.focused,En=nn.flattenNodes,De=nn.keyEntities,Ce=nn.draggingNodeKey,Qe=nn.activeKey,un=nn.dropLevelOffset,Nn=nn.dropContainerKey,ai=nn.dropTargetKey,Tn=nn.dropPosition,bn=nn.dragOverNodeKey,Ie=nn.indent,Ue=this.props,cn=Ue.prefixCls,Ln=Ue.className,Xn=Ue.style,li=Ue.showLine,Ci=Ue.focusable,gn=Ue.tabIndex,ti=gn===void 0?0:gn,_i=Ue.selectable,fr=Ue.showIcon,tr=Ue.icon,er=Ue.switcherIcon,yr=Ue.draggable,sr=Ue.checkable,hr=Ue.checkStrictly,zi=Ue.disabled,gr=Ue.motion,Et=Ue.loadData,Bn=Ue.filterTreeNode,Gn=Ue.height,fi=Ue.itemHeight,ci=Ue.scrollWidth,Kn=Ue.virtual,rn=Ue.titleRender,Yn=Ue.dropIndicatorRender,Fe=Ue.onContextMenu,Ne=Ue.onScroll,ke=Ue.direction,sn=Ue.rootClassName,xi=Ue.rootStyle,yi=(0,Bt.Z)(this.props,{aria:!0,data:!0}),Fi;yr&&((0,ee.Z)(yr)==="object"?Fi=yr:typeof yr=="function"?Fi={nodeDraggable:yr}:Fi={});var Xe={prefixCls:cn,selectable:_i,showIcon:fr,icon:tr,switcherIcon:er,draggable:Fi,draggingNodeKey:Ce,checkable:sr,checkStrictly:hr,disabled:zi,keyEntities:De,dropLevelOffset:un,dropContainerKey:Nn,dropTargetKey:ai,dropPosition:Tn,dragOverNodeKey:bn,indent:Ie,direction:ke,dropIndicatorRender:Yn,loadData:Et,filterTreeNode:Bn,titleRender:rn,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:Xe},et.createElement("div",{className:Kt()(cn,Ln,sn,(0,Lt.Z)((0,Lt.Z)((0,Lt.Z)({},"".concat(cn,"-show-line"),li),"".concat(cn,"-focused"),dn),"".concat(cn,"-active-focused"),Qe!==null)),style:xi},et.createElement(Re,(0,yt.Z)({ref:this.listRef,prefixCls:cn,style:Xn,data:En,disabled:zi,selectable:_i,checkable:!!sr,motion:gr,dragging:Ce!==null,height:Gn,itemHeight:fi,virtual:Kn,focusable:Ci,focused:dn,tabIndex:ti,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Fe,onScroll:Ne,scrollWidth:ci},this.getTreeNodeRequiredProps(),yi))))}}],[{key:"getDerivedStateFromProps",value:function(nn,dn){var En=dn.prevProps,De={prevProps:nn};function Ce(ti){return!En&&nn.hasOwnProperty(ti)||En&&En[ti]!==nn[ti]}var Qe,un=dn.fieldNames;if(Ce("fieldNames")&&(un=(0,me.w$)(nn.fieldNames),De.fieldNames=un),Ce("treeData")?Qe=nn.treeData:Ce("children")&&((0,nt.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Qe=(0,me.zn)(nn.children)),Qe){De.treeData=Qe;var Nn=(0,me.I8)(Qe,{fieldNames:un});De.keyEntities=(0,ie.Z)((0,Lt.Z)({},Yt,_n),Nn.keyEntities)}var ai=De.keyEntities||dn.keyEntities;if(Ce("expandedKeys")||En&&Ce("autoExpandParent"))De.expandedKeys=nn.autoExpandParent||!En&&nn.defaultExpandParent?(0,ve.r7)(nn.expandedKeys,ai):nn.expandedKeys;else if(!En&&nn.defaultExpandAll){var Tn=(0,ie.Z)({},ai);delete Tn[Yt];var bn=[];Object.keys(Tn).forEach(function(ti){var _i=Tn[ti];_i.children&&_i.children.length&&bn.push(_i.key)}),De.expandedKeys=bn}else!En&&nn.defaultExpandedKeys&&(De.expandedKeys=nn.autoExpandParent||nn.defaultExpandParent?(0,ve.r7)(nn.defaultExpandedKeys,ai):nn.defaultExpandedKeys);if(De.expandedKeys||delete De.expandedKeys,Qe||De.expandedKeys){var Ie=(0,me.oH)(Qe||dn.treeData,De.expandedKeys||dn.expandedKeys,un);De.flattenNodes=Ie}if(nn.selectable&&(Ce("selectedKeys")?De.selectedKeys=(0,ve.BT)(nn.selectedKeys,nn):!En&&nn.defaultSelectedKeys&&(De.selectedKeys=(0,ve.BT)(nn.defaultSelectedKeys,nn))),nn.checkable){var Ue;if(Ce("checkedKeys")?Ue=(0,ve.E6)(nn.checkedKeys)||{}:!En&&nn.defaultCheckedKeys?Ue=(0,ve.E6)(nn.defaultCheckedKeys)||{}:Qe&&(Ue=(0,ve.E6)(nn.checkedKeys)||{checkedKeys:dn.checkedKeys,halfCheckedKeys:dn.halfCheckedKeys}),Ue){var cn=Ue,Ln=cn.checkedKeys,Xn=Ln===void 0?[]:Ln,li=cn.halfCheckedKeys,Ci=li===void 0?[]:li;if(!nn.checkStrictly){var gn=(0,Ye.S)(Xn,!0,ai);Xn=gn.checkedKeys,Ci=gn.halfCheckedKeys}De.checkedKeys=Xn,De.halfCheckedKeys=Ci}}return Ce("loadedKeys")&&(De.loadedKeys=nn.loadedKeys),De}}]),kt}(et.Component);(0,Lt.Z)(Ot,"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,Lt.Z)(Ot,"TreeNode",Gt.Z);var At=Ot,wt=At},82661:function(Qn,pi,Dt){"use strict";Dt.d(pi,{BT:function(){return et},E6:function(){return gt},L0:function(){return Lt},OM:function(){return nt},_5:function(){return xe},r7:function(){return mt},wA:function(){return Kt},yx:function(){return ze}});var yt=Dt(15142),ee=Dt(26420),ie=Dt(48736),we=Dt(59301),Ee=Dt(639),jt=Dt(65065),ce=Dt(34061),Ve=null;function xe(St,Mt){if(!St)return[];var It=St.slice(),Zt=It.indexOf(Mt);return Zt>=0&&It.splice(Zt,1),It}function Lt(St,Mt){var It=(St||[]).slice();return It.indexOf(Mt)===-1&&It.push(Mt),It}function ze(St){return St.split("-")}function Kt(St,Mt){var It=[],Zt=(0,jt.Z)(Mt,St);function oe(){var Gt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Gt.forEach(function(_t){var ge=_t.key,me=_t.children;It.push(ge),oe(me)})}return oe(Zt.children),It}function Je(St){if(St.parent){var Mt=ze(St.pos);return Number(Mt[Mt.length-1])===St.parent.children.length-1}return!1}function Bt(St){var Mt=ze(St.pos);return Number(Mt[Mt.length-1])===0}function nt(St,Mt,It,Zt,oe,Gt,_t,ge,me,Pe){var ye,He=St.clientX,wn=St.clientY,ln=St.target.getBoundingClientRect(),Oe=ln.top,Sn=ln.height,se=(Pe==="rtl"?-1:1)*(((oe==null?void 0:oe.x)||0)-He),Yt=(se-12)/Zt,fn=me.filter(function(wt){var Nt;return(Nt=ge[wt])===null||Nt===void 0||(Nt=Nt.children)===null||Nt===void 0?void 0:Nt.length}),_n=(0,jt.Z)(ge,It.eventKey);if(wn<Oe+Sn/2){var In=_t.findIndex(function(wt){return wt.key===_n.key}),on=In<=0?0:In-1,jn=_t[on].key;_n=(0,jt.Z)(ge,jn)}var Pn=_n.key,di=_n,Re=_n.key,ve=0,Ye=0;if(!fn.includes(Pn))for(var mi=0;mi<Yt&&Je(_n);mi+=1)_n=_n.parent,Ye+=1;var Cn=Mt.data,Ot=_n.node,At=!0;return Bt(_n)&&_n.level===0&&wn<Oe+Sn/2&&Gt({dragNode:Cn,dropNode:Ot,dropPosition:-1})&&_n.key===It.eventKey?ve=-1:(di.children||[]).length&&fn.includes(Re)?Gt({dragNode:Cn,dropNode:Ot,dropPosition:0})?ve=0:At=!1:Ye===0?Yt>-1.5?Gt({dragNode:Cn,dropNode:Ot,dropPosition:1})?ve=1:At=!1:Gt({dragNode:Cn,dropNode:Ot,dropPosition:0})?ve=0:Gt({dragNode:Cn,dropNode:Ot,dropPosition:1})?ve=1:At=!1:Gt({dragNode:Cn,dropNode:Ot,dropPosition:1})?ve=1:At=!1,{dropPosition:ve,dropLevelOffset:Ye,dropTargetKey:_n.key,dropTargetPos:_n.pos,dragOverNodeKey:Re,dropContainerKey:ve===0?null:((ye=_n.parent)===null||ye===void 0?void 0:ye.key)||null,dropAllowed:At}}function et(St,Mt){if(St){var It=Mt.multiple;return It?St.slice():St.length?[St[0]]:St}}var dt=function(Mt){return Mt};function lt(St,Mt){if(!St)return[];var It=Mt||{},Zt=It.processProps,oe=Zt===void 0?dt:Zt,Gt=Array.isArray(St)?St:[St];return Gt.map(function(_t){var ge=_t.children,me=_objectWithoutProperties(_t,Ve),Pe=lt(ge,Mt);return React.createElement(TreeNode,_extends({key:me.key},oe(me)),Pe)})}function gt(St){if(!St)return null;var Mt;if(Array.isArray(St))Mt={checkedKeys:St,halfCheckedKeys:void 0};else if((0,ee.Z)(St)==="object")Mt={checkedKeys:St.checked||void 0,halfCheckedKeys:St.halfChecked||void 0};else return(0,ie.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Mt}function mt(St,Mt){var It=new Set;function Zt(oe){if(!It.has(oe)){var Gt=(0,jt.Z)(Mt,oe);if(Gt){It.add(oe);var _t=Gt.parent,ge=Gt.node;ge.disabled||_t&&Zt(_t.key)}}}return(St||[]).forEach(function(oe){Zt(oe)}),(0,yt.Z)(It)}},34643:function(Qn,pi,Dt){"use strict";Dt.d(pi,{S:function(){return ce}});var yt=Dt(48736),ee=Dt(65065);function ie(Ve,xe){var Lt=new Set;return Ve.forEach(function(ze){xe.has(ze)||Lt.add(ze)}),Lt}function we(Ve){var xe=Ve||{},Lt=xe.disabled,ze=xe.disableCheckbox,Kt=xe.checkable;return!!(Lt||ze)||Kt===!1}function Ee(Ve,xe,Lt,ze){for(var Kt=new Set(Ve),Je=new Set,Bt=0;Bt<=Lt;Bt+=1){var nt=xe.get(Bt)||new Set;nt.forEach(function(gt){var mt=gt.key,St=gt.node,Mt=gt.children,It=Mt===void 0?[]:Mt;Kt.has(mt)&&!ze(St)&&It.filter(function(Zt){return!ze(Zt.node)}).forEach(function(Zt){Kt.add(Zt.key)})})}for(var et=new Set,dt=Lt;dt>=0;dt-=1){var lt=xe.get(dt)||new Set;lt.forEach(function(gt){var mt=gt.parent,St=gt.node;if(!(ze(St)||!gt.parent||et.has(gt.parent.key))){if(ze(gt.parent.node)){et.add(mt.key);return}var Mt=!0,It=!1;(mt.children||[]).filter(function(Zt){return!ze(Zt.node)}).forEach(function(Zt){var oe=Zt.key,Gt=Kt.has(oe);Mt&&!Gt&&(Mt=!1),!It&&(Gt||Je.has(oe))&&(It=!0)}),Mt&&Kt.add(mt.key),It&&Je.add(mt.key),et.add(mt.key)}})}return{checkedKeys:Array.from(Kt),halfCheckedKeys:Array.from(ie(Je,Kt))}}function jt(Ve,xe,Lt,ze,Kt){for(var Je=new Set(Ve),Bt=new Set(xe),nt=0;nt<=ze;nt+=1){var et=Lt.get(nt)||new Set;et.forEach(function(mt){var St=mt.key,Mt=mt.node,It=mt.children,Zt=It===void 0?[]:It;!Je.has(St)&&!Bt.has(St)&&!Kt(Mt)&&Zt.filter(function(oe){return!Kt(oe.node)}).forEach(function(oe){Je.delete(oe.key)})})}Bt=new Set;for(var dt=new Set,lt=ze;lt>=0;lt-=1){var gt=Lt.get(lt)||new Set;gt.forEach(function(mt){var St=mt.parent,Mt=mt.node;if(!(Kt(Mt)||!mt.parent||dt.has(mt.parent.key))){if(Kt(mt.parent.node)){dt.add(St.key);return}var It=!0,Zt=!1;(St.children||[]).filter(function(oe){return!Kt(oe.node)}).forEach(function(oe){var Gt=oe.key,_t=Je.has(Gt);It&&!_t&&(It=!1),!Zt&&(_t||Bt.has(Gt))&&(Zt=!0)}),It||Je.delete(St.key),Zt&&Bt.add(St.key),dt.add(St.key)}})}return{checkedKeys:Array.from(Je),halfCheckedKeys:Array.from(ie(Bt,Je))}}function ce(Ve,xe,Lt,ze){var Kt=[],Je;ze?Je=ze:Je=we;var Bt=new Set(Ve.filter(function(lt){var gt=!!(0,ee.Z)(Lt,lt);return gt||Kt.push(lt),gt})),nt=new Map,et=0;Object.keys(Lt).forEach(function(lt){var gt=Lt[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)(!Kt.length,"Tree missing follow keys: ".concat(Kt.slice(0,100).map(function(lt){return"'".concat(lt,"'")}).join(", ")));var dt;return xe===!0?dt=Ee(Bt,nt,et,Je):dt=jt(Bt,xe.halfCheckedKeys,nt,et,Je),dt}},65065:function(Qn,pi,Dt){"use strict";Dt.d(pi,{Z:function(){return yt}});function yt(ee,ie){return ee[ie]}},34061:function(Qn,pi,Dt){"use strict";Dt.d(pi,{F:function(){return mt},H8:function(){return gt},I8:function(){return lt},km:function(){return Kt},oH:function(){return et},w$:function(){return Je},zn:function(){return nt}});var yt=Dt(26420),ee=Dt(15142),ie=Dt(98506),we=Dt(33346),Ee=Dt(11592),jt=Dt(2738),ce=Dt(48736),Ve=Dt(65065),xe=["children"];function Lt(St,Mt){return"".concat(St,"-").concat(Mt)}function ze(St){return St&&St.type&&St.type.isTreeNode}function Kt(St,Mt){return St!=null?St:Mt}function Je(St){var Mt=St||{},It=Mt.title,Zt=Mt._title,oe=Mt.key,Gt=Mt.children,_t=It||"title";return{title:_t,_title:Zt||[_t],key:oe||"key",children:Gt||"children"}}function Bt(St,Mt){var It=new Map;function Zt(oe){var Gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(oe||[]).forEach(function(_t){var ge=_t[Mt.key],me=_t[Mt.children];warning(ge!=null,"Tree node must have a certain key: [".concat(Gt).concat(ge,"]"));var Pe=String(ge);warning(!It.has(Pe)||ge===null||ge===void 0,"Same 'key' exist in the Tree: ".concat(Pe)),It.set(Pe,!0),Zt(me,"".concat(Gt).concat(Pe," > "))})}Zt(St)}function nt(St){function Mt(It){var Zt=(0,Ee.Z)(It);return Zt.map(function(oe){if(!ze(oe))return(0,ce.ZP)(!oe,"Tree/TreeNode can only accept TreeNode as children."),null;var Gt=oe.key,_t=oe.props,ge=_t.children,me=(0,we.Z)(_t,xe),Pe=(0,ie.Z)({key:Gt},me),ye=Mt(ge);return ye.length&&(Pe.children=ye),Pe}).filter(function(oe){return oe})}return Mt(St)}function et(St,Mt,It){var Zt=Je(It),oe=Zt._title,Gt=Zt.key,_t=Zt.children,ge=new Set(Mt===!0?[]:Mt),me=[];function Pe(ye){var He=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return ye.map(function(wn,ln){for(var Oe=Lt(He?He.pos:"0",ln),Sn=Kt(wn[Gt],Oe),se,Yt=0;Yt<oe.length;Yt+=1){var fn=oe[Yt];if(wn[fn]!==void 0){se=wn[fn];break}}var _n=Object.assign((0,jt.Z)(wn,[].concat((0,ee.Z)(oe),[Gt,_t])),{title:se,key:Sn,parent:He,pos:Oe,children:null,data:wn,isStart:[].concat((0,ee.Z)(He?He.isStart:[]),[ln===0]),isEnd:[].concat((0,ee.Z)(He?He.isEnd:[]),[ln===ye.length-1])});return me.push(_n),Mt===!0||ge.has(Sn)?_n.children=Pe(wn[_t]||[],_n):_n.children=[],_n})}return Pe(St),me}function dt(St,Mt,It){var Zt={};(0,yt.Z)(It)==="object"?Zt=It:Zt={externalGetKey:It},Zt=Zt||{};var oe=Zt,Gt=oe.childrenPropName,_t=oe.externalGetKey,ge=oe.fieldNames,me=Je(ge),Pe=me.key,ye=me.children,He=Gt||ye,wn;_t?typeof _t=="string"?wn=function(Sn){return Sn[_t]}:typeof _t=="function"&&(wn=function(Sn){return _t(Sn)}):wn=function(Sn,se){return Kt(Sn[Pe],se)};function ln(Oe,Sn,se,Yt){var fn=Oe?Oe[He]:St,_n=Oe?Lt(se.pos,Sn):"0",In=Oe?[].concat((0,ee.Z)(Yt),[Oe]):[];if(Oe){var on=wn(Oe,_n),jn={node:Oe,index:Sn,pos:_n,key:on,parentPos:se.node?se.pos:null,level:se.level+1,nodes:In};Mt(jn)}fn&&fn.forEach(function(Pn,di){ln(Pn,di,{node:Oe,pos:_n,level:se?se.level+1:-1},In)})}ln(null)}function lt(St){var Mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},It=Mt.initWrapper,Zt=Mt.processEntity,oe=Mt.onProcessFinished,Gt=Mt.externalGetKey,_t=Mt.childrenPropName,ge=Mt.fieldNames,me=arguments.length>2?arguments[2]:void 0,Pe=Gt||me,ye={},He={},wn={posEntities:ye,keyEntities:He};return It&&(wn=It(wn)||wn),dt(St,function(ln){var Oe=ln.node,Sn=ln.index,se=ln.pos,Yt=ln.key,fn=ln.parentPos,_n=ln.level,In=ln.nodes,on={node:Oe,nodes:In,index:Sn,key:Yt,pos:se,level:_n},jn=Kt(Yt,se);ye[se]=on,He[jn]=on,on.parent=ye[fn],on.parent&&(on.parent.children=on.parent.children||[],on.parent.children.push(on)),Zt&&Zt(on,wn)},{externalGetKey:Pe,childrenPropName:_t,fieldNames:ge}),oe&&oe(wn),wn}function gt(St,Mt){var It=Mt.expandedKeys,Zt=Mt.selectedKeys,oe=Mt.loadedKeys,Gt=Mt.loadingKeys,_t=Mt.checkedKeys,ge=Mt.halfCheckedKeys,me=Mt.dragOverNodeKey,Pe=Mt.dropPosition,ye=Mt.keyEntities,He=(0,Ve.Z)(ye,St),wn={eventKey:St,expanded:It.indexOf(St)!==-1,selected:Zt.indexOf(St)!==-1,loaded:oe.indexOf(St)!==-1,loading:Gt.indexOf(St)!==-1,checked:_t.indexOf(St)!==-1,halfChecked:ge.indexOf(St)!==-1,pos:String(He?He.pos:""),dragOver:me===St&&Pe===0,dragOverGapTop:me===St&&Pe===-1,dragOverGapBottom:me===St&&Pe===1};return wn}function mt(St){var Mt=St.data,It=St.expanded,Zt=St.selected,oe=St.checked,Gt=St.loaded,_t=St.loading,ge=St.halfChecked,me=St.dragOver,Pe=St.dragOverGapTop,ye=St.dragOverGapBottom,He=St.pos,wn=St.active,ln=St.eventKey,Oe=(0,ie.Z)((0,ie.Z)({},Mt),{},{expanded:It,selected:Zt,checked:oe,loaded:Gt,loading:_t,halfChecked:ge,dragOver:me,dragOverGapTop:Pe,dragOverGapBottom:ye,pos:He,active:wn,key:ln});return"props"in Oe||Object.defineProperty(Oe,"props",{get:function(){return(0,ce.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),St}}),Oe}},8224:function(Qn,pi,Dt){"use strict";Dt.d(pi,{Z:function(){return ee}});var yt=Dt(4676);function ee(ie,we,Ee,jt){var ce=yt.unstable_batchedUpdates?function(xe){yt.unstable_batchedUpdates(Ee,xe)}:Ee;return ie!=null&&ie.addEventListener&&ie.addEventListener(we,ce,jt),{remove:function(){ie!=null&&ie.removeEventListener&&ie.removeEventListener(we,ce,jt)}}}},24514:function(Qn,pi,Dt){"use strict";Dt.d(pi,{G:function(){return we}});var yt=Dt(47273),ee=function(jt){if((0,yt.Z)()&&window.document.documentElement){var ce=Array.isArray(jt)?jt:[jt],Ve=window.document.documentElement;return ce.some(function(xe){return xe in Ve.style})}return!1},ie=function(jt,ce){if(!ee(jt))return!1;var Ve=document.createElement("div"),xe=Ve.style[jt];return Ve.style[jt]=ce,Ve.style[jt]!==xe};function we(Ee,jt){return!Array.isArray(Ee)&&jt!==void 0?ie(Ee,jt):ee(Ee)}},6790:function(Qn,pi,Dt){"use strict";Dt.d(pi,{Z:function(){return Cn}});var yt=Dt(67711),ee=Dt(26420),ie=Dt(98506),we=Dt(52873),Ee=Dt(16886),jt=Dt(33346),ce=Dt(92310),Ve=Dt.n(ce),xe=Dt(29301),Lt=Dt(70425),ze=Dt(34280),Kt=Dt(59301),Je=Dt(4676),Bt=Kt.forwardRef(function(Ot,At){var wt=Ot.height,Nt=Ot.offsetY,Vt=Ot.offsetX,kt=Ot.children,$t=Ot.prefixCls,nn=Ot.onInnerResize,dn=Ot.innerProps,En=Ot.rtl,De=Ot.extra,Ce={},Qe={display:"flex",flexDirection:"column"};return Nt!==void 0&&(Ce={height:wt,position:"relative",overflow:"hidden"},Qe=(0,ie.Z)((0,ie.Z)({},Qe),{},(0,we.Z)((0,we.Z)((0,we.Z)((0,we.Z)((0,we.Z)({transform:"translateY(".concat(Nt,"px)")},En?"marginRight":"marginLeft",-Vt),"position","absolute"),"left",0),"right",0),"top",0))),Kt.createElement("div",{style:Ce},Kt.createElement(xe.Z,{onResize:function(Nn){var ai=Nn.offsetHeight;ai&&nn&&nn()}},Kt.createElement("div",(0,yt.Z)({style:Qe,className:Ve()((0,we.Z)({},"".concat($t,"-holder-inner"),$t)),ref:At},dn),kt,De)))});Bt.displayName="Filler";var nt=Bt;function et(Ot){var At=Ot.children,wt=Ot.setRef,Nt=Kt.useCallback(function(Vt){wt(Vt)},[]);return Kt.cloneElement(At,{ref:Nt})}function dt(Ot,At,wt,Nt,Vt,kt,$t,nn){var dn=nn.getKey;return Ot.slice(At,wt+1).map(function(En,De){var Ce=At+De,Qe=$t(En,Ce,{style:{width:Nt},offsetX:Vt}),un=dn(En);return Kt.createElement(et,{key:un,setRef:function(ai){return kt(En,ai)}},Qe)})}function lt(Ot,At,wt,Nt){var Vt=wt-Ot,kt=At-wt,$t=Math.min(Vt,kt)*2;if(Nt<=$t){var nn=Math.floor(Nt/2);return Nt%2?wt+nn+1:wt-nn}return Vt>kt?wt-(Nt-kt):wt+(Nt-Vt)}function gt(Ot,At,wt){var Nt=Ot.length,Vt=At.length,kt,$t;if(Nt===0&&Vt===0)return null;Nt<Vt?(kt=Ot,$t=At):(kt=At,$t=Ot);var nn={__EMPTY_ITEM__:!0};function dn(Nn){return Nn!==void 0?wt(Nn):nn}for(var En=null,De=Math.abs(Nt-Vt)!==1,Ce=0;Ce<$t.length;Ce+=1){var Qe=dn(kt[Ce]),un=dn($t[Ce]);if(Qe!==un){En=Ce,De=De||Qe!==dn($t[Ce+1]);break}}return En===null?null:{index:En,multiple:De}}function mt(Ot,At,wt){var Nt=Kt.useState(Ot),Vt=(0,Ee.Z)(Nt,2),kt=Vt[0],$t=Vt[1],nn=Kt.useState(null),dn=(0,Ee.Z)(nn,2),En=dn[0],De=dn[1];return Kt.useEffect(function(){var Ce=gt(kt||[],Ot||[],At);(Ce==null?void 0:Ce.index)!==void 0&&(wt==null||wt(Ce.index),De(Ot[Ce.index])),$t(Ot)},[Ot]),[En]}var St=Dt(16089),Mt=(typeof navigator=="undefined"?"undefined":(0,ee.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),It=Mt,Zt=function(Ot,At,wt,Nt){var Vt=(0,Kt.useRef)(!1),kt=(0,Kt.useRef)(null);function $t(){clearTimeout(kt.current),Vt.current=!0,kt.current=setTimeout(function(){Vt.current=!1},50)}var nn=(0,Kt.useRef)({top:Ot,bottom:At,left:wt,right:Nt});return nn.current.top=Ot,nn.current.bottom=At,nn.current.left=wt,nn.current.right=Nt,function(dn,En){var De=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Ce=dn?En<0&&nn.current.left||En>0&&nn.current.right:En<0&&nn.current.top||En>0&&nn.current.bottom;return De&&Ce?(clearTimeout(kt.current),Vt.current=!1):(!Ce||Vt.current)&&$t(),!Vt.current&&Ce}};function oe(Ot,At,wt,Nt,Vt,kt,$t){var nn=(0,Kt.useRef)(0),dn=(0,Kt.useRef)(null),En=(0,Kt.useRef)(null),De=(0,Kt.useRef)(!1),Ce=Zt(At,wt,Nt,Vt);function Qe(Ie,Ue){if(St.Z.cancel(dn.current),!Ce(!1,Ue)){var cn=Ie;if(!cn._virtualHandled)cn._virtualHandled=!0;else return;nn.current+=Ue,En.current=Ue,It||cn.preventDefault(),dn.current=(0,St.Z)(function(){var Ln=De.current?10:1;$t(nn.current*Ln,!1),nn.current=0})}}function un(Ie,Ue){$t(Ue,!0),It||Ie.preventDefault()}var Nn=(0,Kt.useRef)(null),ai=(0,Kt.useRef)(null);function Tn(Ie){if(Ot){St.Z.cancel(ai.current),ai.current=(0,St.Z)(function(){Nn.current=null},2);var Ue=Ie.deltaX,cn=Ie.deltaY,Ln=Ie.shiftKey,Xn=Ue,li=cn;(Nn.current==="sx"||!Nn.current&&Ln&&cn&&!Ue)&&(Xn=cn,li=0,Nn.current="sx");var Ci=Math.abs(Xn),gn=Math.abs(li);Nn.current===null&&(Nn.current=kt&&Ci>gn?"x":"y"),Nn.current==="y"?Qe(Ie,li):un(Ie,Xn)}}function bn(Ie){Ot&&(De.current=Ie.detail===En.current)}return[Tn,bn]}function Gt(Ot,At,wt,Nt){var Vt=Kt.useMemo(function(){return[new Map,[]]},[Ot,wt.id,Nt]),kt=(0,Ee.Z)(Vt,2),$t=kt[0],nn=kt[1],dn=function(De){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:De,Qe=$t.get(De),un=$t.get(Ce);if(Qe===void 0||un===void 0)for(var Nn=Ot.length,ai=nn.length;ai<Nn;ai+=1){var Tn,bn=Ot[ai],Ie=At(bn);$t.set(Ie,ai);var Ue=(Tn=wt.get(Ie))!==null&&Tn!==void 0?Tn:Nt;if(nn[ai]=(nn[ai-1]||0)+Ue,Ie===De&&(Qe=ai),Ie===Ce&&(un=ai),Qe!==void 0&&un!==void 0)break}return{top:nn[Qe-1]||0,bottom:nn[un]}};return dn}var _t=Dt(42573),ge=Dt(58698),me=function(){function Ot(){(0,_t.Z)(this,Ot),(0,we.Z)(this,"maps",void 0),(0,we.Z)(this,"id",0),(0,we.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,ge.Z)(Ot,[{key:"set",value:function(wt,Nt){this.diffRecords.set(wt,this.maps[wt]),this.maps[wt]=Nt,this.id+=1}},{key:"get",value:function(wt){return this.maps[wt]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),Ot}(),Pe=me;function ye(Ot){var At=parseFloat(Ot);return isNaN(At)?0:At}function He(Ot,At,wt){var Nt=Kt.useState(0),Vt=(0,Ee.Z)(Nt,2),kt=Vt[0],$t=Vt[1],nn=(0,Kt.useRef)(new Map),dn=(0,Kt.useRef)(new Pe),En=(0,Kt.useRef)(0);function De(){En.current+=1}function Ce(){var un=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;De();var Nn=function(){var bn=!1;nn.current.forEach(function(Ie,Ue){if(Ie&&Ie.offsetParent){var cn=Ie.offsetHeight,Ln=getComputedStyle(Ie),Xn=Ln.marginTop,li=Ln.marginBottom,Ci=ye(Xn),gn=ye(li),ti=cn+Ci+gn;dn.current.get(Ue)!==ti&&(dn.current.set(Ue,ti),bn=!0)}}),bn&&$t(function(Ie){return Ie+1})};if(un)Nn();else{En.current+=1;var ai=En.current;Promise.resolve().then(function(){ai===En.current&&Nn()})}}function Qe(un,Nn){var ai=Ot(un),Tn=nn.current.get(ai);Nn?(nn.current.set(ai,Nn),Ce()):nn.current.delete(ai),!Tn!=!Nn&&(Nn?At==null||At(un):wt==null||wt(un))}return(0,Kt.useEffect)(function(){return De},[]),[Qe,Ce,dn.current,kt]}var wn=14/15;function ln(Ot,At,wt){var Nt=(0,Kt.useRef)(!1),Vt=(0,Kt.useRef)(0),kt=(0,Kt.useRef)(0),$t=(0,Kt.useRef)(null),nn=(0,Kt.useRef)(null),dn,En=function(un){if(Nt.current){var Nn=Math.ceil(un.touches[0].pageX),ai=Math.ceil(un.touches[0].pageY),Tn=Vt.current-Nn,bn=kt.current-ai,Ie=Math.abs(Tn)>Math.abs(bn);Ie?Vt.current=Nn:kt.current=ai;var Ue=wt(Ie,Ie?Tn:bn,!1,un);Ue&&un.preventDefault(),clearInterval(nn.current),Ue&&(nn.current=setInterval(function(){Ie?Tn*=wn:bn*=wn;var cn=Math.floor(Ie?Tn:bn);(!wt(Ie,cn,!0)||Math.abs(cn)<=.1)&&clearInterval(nn.current)},16))}},De=function(){Nt.current=!1,dn()},Ce=function(un){dn(),un.touches.length===1&&!Nt.current&&(Nt.current=!0,Vt.current=Math.ceil(un.touches[0].pageX),kt.current=Math.ceil(un.touches[0].pageY),$t.current=un.target,$t.current.addEventListener("touchmove",En,{passive:!1}),$t.current.addEventListener("touchend",De,{passive:!0}))};dn=function(){$t.current&&($t.current.removeEventListener("touchmove",En),$t.current.removeEventListener("touchend",De))},(0,ze.Z)(function(){return Ot&&At.current.addEventListener("touchstart",Ce,{passive:!0}),function(){var Qe;(Qe=At.current)===null||Qe===void 0||Qe.removeEventListener("touchstart",Ce),dn(),clearInterval(nn.current)}},[Ot])}function Oe(Ot){return Math.floor(Math.pow(Ot,.5))}function Sn(Ot,At){var wt="touches"in Ot?Ot.touches[0]:Ot;return wt[At?"pageX":"pageY"]-window[At?"scrollX":"scrollY"]}function se(Ot,At,wt){Kt.useEffect(function(){var Nt=At.current;if(Ot&&Nt){var Vt=!1,kt,$t,nn=function(){St.Z.cancel(kt)},dn=function Qe(){nn(),kt=(0,St.Z)(function(){wt($t),Qe()})},En=function(un){if(!(un.target.draggable||un.button!==0)){var Nn=un;Nn._virtualHandled||(Nn._virtualHandled=!0,Vt=!0)}},De=function(){Vt=!1,nn()},Ce=function(un){if(Vt){var Nn=Sn(un,!1),ai=Nt.getBoundingClientRect(),Tn=ai.top,bn=ai.bottom;if(Nn<=Tn){var Ie=Tn-Nn;$t=-Oe(Ie),dn()}else if(Nn>=bn){var Ue=Nn-bn;$t=Oe(Ue),dn()}else nn()}};return Nt.addEventListener("mousedown",En),Nt.ownerDocument.addEventListener("mouseup",De),Nt.ownerDocument.addEventListener("mousemove",Ce),function(){Nt.removeEventListener("mousedown",En),Nt.ownerDocument.removeEventListener("mouseup",De),Nt.ownerDocument.removeEventListener("mousemove",Ce),nn()}}},[Ot])}var Yt=10;function fn(Ot,At,wt,Nt,Vt,kt,$t,nn){var dn=Kt.useRef(),En=Kt.useState(null),De=(0,Ee.Z)(En,2),Ce=De[0],Qe=De[1];return(0,ze.Z)(function(){if(Ce&&Ce.times<Yt){if(!Ot.current){Qe(function(gr){return(0,ie.Z)({},gr)});return}kt();var un=Ce.targetAlign,Nn=Ce.originAlign,ai=Ce.index,Tn=Ce.offset,bn=Ot.current.clientHeight,Ie=!1,Ue=un,cn=null;if(bn){for(var Ln=un||Nn,Xn=0,li=0,Ci=0,gn=Math.min(At.length-1,ai),ti=0;ti<=gn;ti+=1){var _i=Vt(At[ti]);li=Xn;var fr=wt.get(_i);Ci=li+(fr===void 0?Nt:fr),Xn=Ci}for(var tr=Ln==="top"?Tn:bn-Tn,er=gn;er>=0;er-=1){var yr=Vt(At[er]),sr=wt.get(yr);if(sr===void 0){Ie=!0;break}if(tr-=sr,tr<=0)break}switch(Ln){case"top":cn=li-Tn;break;case"bottom":cn=Ci-bn+Tn;break;default:{var hr=Ot.current.scrollTop,zi=hr+bn;li<hr?Ue="top":Ci>zi&&(Ue="bottom")}}cn!==null&&$t(cn),cn!==Ce.lastTop&&(Ie=!0)}Ie&&Qe((0,ie.Z)((0,ie.Z)({},Ce),{},{times:Ce.times+1,targetAlign:Ue,lastTop:cn}))}},[Ce,Ot.current]),function(un){if(un==null){nn();return}if(St.Z.cancel(dn.current),typeof un=="number")$t(un);else if(un&&(0,ee.Z)(un)==="object"){var Nn,ai=un.align;"index"in un?Nn=un.index:Nn=At.findIndex(function(Ie){return Vt(Ie)===un.key});var Tn=un.offset,bn=Tn===void 0?0:Tn;Qe({times:0,index:Nn,offset:bn,originAlign:ai})}}}var _n=Kt.forwardRef(function(Ot,At){var wt=Ot.prefixCls,Nt=Ot.rtl,Vt=Ot.scrollOffset,kt=Ot.scrollRange,$t=Ot.onStartMove,nn=Ot.onStopMove,dn=Ot.onScroll,En=Ot.horizontal,De=Ot.spinSize,Ce=Ot.containerSize,Qe=Ot.style,un=Ot.thumbStyle,Nn=Ot.showScrollBar,ai=Kt.useState(!1),Tn=(0,Ee.Z)(ai,2),bn=Tn[0],Ie=Tn[1],Ue=Kt.useState(null),cn=(0,Ee.Z)(Ue,2),Ln=cn[0],Xn=cn[1],li=Kt.useState(null),Ci=(0,Ee.Z)(li,2),gn=Ci[0],ti=Ci[1],_i=!Nt,fr=Kt.useRef(),tr=Kt.useRef(),er=Kt.useState(Nn),yr=(0,Ee.Z)(er,2),sr=yr[0],hr=yr[1],zi=Kt.useRef(),gr=function(){Nn===!0||Nn===!1||(clearTimeout(zi.current),hr(!0),zi.current=setTimeout(function(){hr(!1)},3e3))},Et=kt-Ce||0,Bn=Ce-De||0,Gn=Kt.useMemo(function(){if(Vt===0||Et===0)return 0;var sn=Vt/Et;return sn*Bn},[Vt,Et,Bn]),fi=function(xi){xi.stopPropagation(),xi.preventDefault()},ci=Kt.useRef({top:Gn,dragging:bn,pageY:Ln,startTop:gn});ci.current={top:Gn,dragging:bn,pageY:Ln,startTop:gn};var Kn=function(xi){Ie(!0),Xn(Sn(xi,En)),ti(ci.current.top),$t(),xi.stopPropagation(),xi.preventDefault()};Kt.useEffect(function(){var sn=function(Xe){Xe.preventDefault()},xi=fr.current,yi=tr.current;return xi.addEventListener("touchstart",sn,{passive:!1}),yi.addEventListener("touchstart",Kn,{passive:!1}),function(){xi.removeEventListener("touchstart",sn),yi.removeEventListener("touchstart",Kn)}},[]);var rn=Kt.useRef();rn.current=Et;var Yn=Kt.useRef();Yn.current=Bn,Kt.useEffect(function(){if(bn){var sn,xi=function(Xe){var Dn=ci.current,mn=Dn.dragging,Hi=Dn.pageY,qn=Dn.startTop;St.Z.cancel(sn);var te=fr.current.getBoundingClientRect(),be=Ce/(En?te.width:te.height);if(mn){var Jn=(Sn(Xe,En)-Hi)*be,Fn=qn;!_i&&En?Fn-=Jn:Fn+=Jn;var Be=rn.current,zn=Yn.current,Ai=zn?Fn/zn:0,Ii=Math.ceil(Ai*Be);Ii=Math.max(Ii,0),Ii=Math.min(Ii,Be),sn=(0,St.Z)(function(){dn(Ii,En)})}},yi=function(){Ie(!1),nn()};return window.addEventListener("mousemove",xi,{passive:!0}),window.addEventListener("touchmove",xi,{passive:!0}),window.addEventListener("mouseup",yi,{passive:!0}),window.addEventListener("touchend",yi,{passive:!0}),function(){window.removeEventListener("mousemove",xi),window.removeEventListener("touchmove",xi),window.removeEventListener("mouseup",yi),window.removeEventListener("touchend",yi),St.Z.cancel(sn)}}},[bn]),Kt.useEffect(function(){return gr(),function(){clearTimeout(zi.current)}},[Vt]),Kt.useImperativeHandle(At,function(){return{delayHidden:gr}});var Fe="".concat(wt,"-scrollbar"),Ne={position:"absolute",visibility:sr?null:"hidden"},ke={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return En?(Object.assign(Ne,{height:8,left:0,right:0,bottom:0}),Object.assign(ke,(0,we.Z)({height:"100%",width:De},_i?"left":"right",Gn))):(Object.assign(Ne,(0,we.Z)({width:8,top:0,bottom:0},_i?"right":"left",0)),Object.assign(ke,{width:"100%",height:De,top:Gn})),Kt.createElement("div",{ref:fr,className:Ve()(Fe,(0,we.Z)((0,we.Z)((0,we.Z)({},"".concat(Fe,"-horizontal"),En),"".concat(Fe,"-vertical"),!En),"".concat(Fe,"-visible"),sr)),style:(0,ie.Z)((0,ie.Z)({},Ne),Qe),onMouseDown:fi,onMouseMove:gr},Kt.createElement("div",{ref:tr,className:Ve()("".concat(Fe,"-thumb"),(0,we.Z)({},"".concat(Fe,"-thumb-moving"),bn)),style:(0,ie.Z)((0,ie.Z)({},ke),un),onMouseDown:Kn}))}),In=_n,on=20;function jn(){var Ot=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,At=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,wt=Ot/At*Ot;return isNaN(wt)&&(wt=0),wt=Math.max(wt,on),Math.floor(wt)}var Pn=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],di=[],Re={overflowY:"auto",overflowAnchor:"none"};function ve(Ot,At){var wt=Ot.prefixCls,Nt=wt===void 0?"rc-virtual-list":wt,Vt=Ot.className,kt=Ot.height,$t=Ot.itemHeight,nn=Ot.fullHeight,dn=nn===void 0?!0:nn,En=Ot.style,De=Ot.data,Ce=Ot.children,Qe=Ot.itemKey,un=Ot.virtual,Nn=Ot.direction,ai=Ot.scrollWidth,Tn=Ot.component,bn=Tn===void 0?"div":Tn,Ie=Ot.onScroll,Ue=Ot.onVirtualScroll,cn=Ot.onVisibleChange,Ln=Ot.innerProps,Xn=Ot.extraRender,li=Ot.styles,Ci=Ot.showScrollBar,gn=Ci===void 0?"optional":Ci,ti=(0,jt.Z)(Ot,Pn),_i=Kt.useCallback(function(ne){return typeof Qe=="function"?Qe(ne):ne==null?void 0:ne[Qe]},[Qe]),fr=He(_i,null,null),tr=(0,Ee.Z)(fr,4),er=tr[0],yr=tr[1],sr=tr[2],hr=tr[3],zi=!!(un!==!1&&kt&&$t),gr=Kt.useMemo(function(){return Object.values(sr.maps).reduce(function(ne,Me){return ne+Me},0)},[sr.id,sr.maps]),Et=zi&&De&&(Math.max($t*De.length,gr)>kt||!!ai),Bn=Nn==="rtl",Gn=Ve()(Nt,(0,we.Z)({},"".concat(Nt,"-rtl"),Bn),Vt),fi=De||di,ci=(0,Kt.useRef)(),Kn=(0,Kt.useRef)(),rn=(0,Kt.useRef)(),Yn=(0,Kt.useState)(0),Fe=(0,Ee.Z)(Yn,2),Ne=Fe[0],ke=Fe[1],sn=(0,Kt.useState)(0),xi=(0,Ee.Z)(sn,2),yi=xi[0],Fi=xi[1],Xe=(0,Kt.useState)(!1),Dn=(0,Ee.Z)(Xe,2),mn=Dn[0],Hi=Dn[1],qn=function(){Hi(!0)},te=function(){Hi(!1)},be={getKey:_i};function Jn(ne){ke(function(Me){var Ke;typeof ne=="function"?Ke=ne(Me):Ke=ne;var je=Or(Ke);return ci.current.scrollTop=je,je})}var Fn=(0,Kt.useRef)({start:0,end:fi.length}),Be=(0,Kt.useRef)(),zn=mt(fi,_i),Ai=(0,Ee.Z)(zn,1),Ii=Ai[0];Be.current=Ii;var Ki=Kt.useMemo(function(){if(!zi)return{scrollHeight:void 0,start:0,end:fi.length-1,offset:void 0};if(!Et){var ne;return{scrollHeight:((ne=Kn.current)===null||ne===void 0?void 0:ne.offsetHeight)||0,start:0,end:fi.length-1,offset:void 0}}for(var Me=0,Ke,je,hn,An=fi.length,Ct=0;Ct<An;Ct+=1){var Qt=fi[Ct],zt=_i(Qt),de=sr.get(zt),ue=Me+(de===void 0?$t:de);ue>=Ne&&Ke===void 0&&(Ke=Ct,je=Me),ue>Ne+kt&&hn===void 0&&(hn=Ct),Me=ue}return Ke===void 0&&(Ke=0,je=0,hn=Math.ceil(kt/$t)),hn===void 0&&(hn=fi.length-1),hn=Math.min(hn+1,fi.length-1),{scrollHeight:Me,start:Ke,end:hn,offset:je}},[Et,zi,Ne,fi,hr,kt]),oi=Ki.scrollHeight,gi=Ki.start,Si=Ki.end,Ui=Ki.offset;Fn.current.start=gi,Fn.current.end=Si,Kt.useLayoutEffect(function(){var ne=sr.getRecord();if(ne.size===1){var Me=Array.from(ne.keys())[0],Ke=ne.get(Me),je=fi[gi];if(je&&Ke===void 0){var hn=_i(je);if(hn===Me){var An=sr.get(Me),Ct=An-$t;Jn(function(Qt){return Qt+Ct})}}}sr.resetRecord()},[oi]);var ji=Kt.useState({width:0,height:kt}),Mn=(0,Ee.Z)(ji,2),Ei=Mn[0],xr=Mn[1],Tr=function(Me){xr({width:Me.offsetWidth,height:Me.offsetHeight})},_r=(0,Kt.useRef)(),We=(0,Kt.useRef)(),ar=Kt.useMemo(function(){return jn(Ei.width,ai)},[Ei.width,ai]),br=Kt.useMemo(function(){return jn(Ei.height,oi)},[Ei.height,oi]),Gi=oi-kt,Gr=(0,Kt.useRef)(Gi);Gr.current=Gi;function Or(ne){var Me=ne;return Number.isNaN(Gr.current)||(Me=Math.min(Me,Gr.current)),Me=Math.max(Me,0),Me}var Wr=Ne<=0,Zi=Ne>=Gi,ir=yi<=0,Qi=yi>=ai,pn=Zt(Wr,Zi,ir,Qi),dr=function(){return{x:Bn?-yi:yi,y:Ne}},xn=(0,Kt.useRef)(dr()),bi=(0,Lt.zX)(function(ne){if(Ue){var Me=(0,ie.Z)((0,ie.Z)({},dr()),ne);(xn.current.x!==Me.x||xn.current.y!==Me.y)&&(Ue(Me),xn.current=Me)}});function Sr(ne,Me){var Ke=ne;Me?((0,Je.flushSync)(function(){Fi(Ke)}),bi()):Jn(Ke)}function Er(ne){var Me=ne.currentTarget.scrollTop;Me!==Ne&&Jn(Me),Ie==null||Ie(ne),bi()}var io=function(Me){var Ke=Me,je=ai?ai-Ei.width:0;return Ke=Math.max(Ke,0),Ke=Math.min(Ke,je),Ke},Yr=(0,Lt.zX)(function(ne,Me){Me?((0,Je.flushSync)(function(){Fi(function(Ke){var je=Ke+(Bn?-ne:ne);return io(je)})}),bi()):Jn(function(Ke){var je=Ke+ne;return je})}),Mr=oe(zi,Wr,Zi,ir,Qi,!!ai,Yr),uo=(0,Ee.Z)(Mr,2),tn=uo[0],Hn=uo[1];ln(zi,ci,function(ne,Me,Ke,je){var hn=je;return pn(ne,Me,Ke)?!1:!hn||!hn._virtualHandled?(hn&&(hn._virtualHandled=!0),tn({preventDefault:function(){},deltaX:ne?Me:0,deltaY:ne?0:Me}),!0):!1}),se(Et,ci,function(ne){Jn(function(Me){return Me+ne})}),(0,ze.Z)(function(){function ne(Ke){var je=Wr&&Ke.detail<0,hn=Zi&&Ke.detail>0;zi&&!je&&!hn&&Ke.preventDefault()}var Me=ci.current;return Me.addEventListener("wheel",tn,{passive:!1}),Me.addEventListener("DOMMouseScroll",Hn,{passive:!0}),Me.addEventListener("MozMousePixelScroll",ne,{passive:!1}),function(){Me.removeEventListener("wheel",tn),Me.removeEventListener("DOMMouseScroll",Hn),Me.removeEventListener("MozMousePixelScroll",ne)}},[zi,Wr,Zi]),(0,ze.Z)(function(){if(ai){var ne=io(yi);Fi(ne),bi({x:ne})}},[Ei.width,ai]);var _e=function(){var Me,Ke;(Me=_r.current)===null||Me===void 0||Me.delayHidden(),(Ke=We.current)===null||Ke===void 0||Ke.delayHidden()},Tt=fn(ci,fi,sr,$t,_i,function(){return yr(!0)},Jn,_e);Kt.useImperativeHandle(At,function(){return{nativeElement:rn.current,getScrollInfo:dr,scrollTo:function(Me){function Ke(je){return je&&(0,ee.Z)(je)==="object"&&("left"in je||"top"in je)}Ke(Me)?(Me.left!==void 0&&Fi(io(Me.left)),Tt(Me.top)):Tt(Me)}}}),(0,ze.Z)(function(){if(cn){var ne=fi.slice(gi,Si+1);cn(ne,fi)}},[gi,Si,fi]);var Wt=Gt(fi,_i,sr,$t),qt=Xn==null?void 0:Xn({start:gi,end:Si,virtual:Et,offsetX:yi,offsetY:Ui,rtl:Bn,getSize:Wt}),Se=dt(fi,gi,Si,ai,yi,er,Ce,be),Te=null;kt&&(Te=(0,ie.Z)((0,we.Z)({},dn?"height":"maxHeight",kt),Re),zi&&(Te.overflowY="hidden",ai&&(Te.overflowX="hidden"),mn&&(Te.pointerEvents="none")));var en={};return Bn&&(en.dir="rtl"),Kt.createElement("div",(0,yt.Z)({ref:rn,style:(0,ie.Z)((0,ie.Z)({},En),{},{position:"relative"}),className:Gn},en,ti),Kt.createElement(xe.Z,{onResize:Tr},Kt.createElement(bn,{className:"".concat(Nt,"-holder"),style:Te,ref:ci,onScroll:Er,onMouseEnter:_e},Kt.createElement(nt,{prefixCls:Nt,height:oi,offsetX:yi,offsetY:Ui,scrollWidth:ai,onInnerResize:yr,ref:Kn,innerProps:Ln,rtl:Bn,extra:qt},Se))),Et&&oi>kt&&Kt.createElement(In,{ref:_r,prefixCls:Nt,scrollOffset:Ne,scrollRange:oi,rtl:Bn,onScroll:Sr,onStartMove:qn,onStopMove:te,spinSize:br,containerSize:Ei.height,style:li==null?void 0:li.verticalScrollBar,thumbStyle:li==null?void 0:li.verticalScrollBarThumb,showScrollBar:gn}),Et&&ai>Ei.width&&Kt.createElement(In,{ref:We,prefixCls:Nt,scrollOffset:yi,scrollRange:ai,rtl:Bn,onScroll:Sr,onStartMove:qn,onStopMove:te,spinSize:ar,containerSize:Ei.width,horizontal:!0,style:li==null?void 0:li.horizontalScrollBar,thumbStyle:li==null?void 0:li.horizontalScrollBarThumb,showScrollBar:gn}))}var Ye=Kt.forwardRef(ve);Ye.displayName="List";var mi=Ye,Cn=mi},25510:function(Qn){"use strict";Qn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAiwAAAIsCAYAAADRd/LpAAAgAElEQVR4Xuyda5BtVXXvV3efc+CAYBQRjaJBeWjiVVKVB0mMUV6GKv0cvVVG/XTrViUlSd0bqUoQg4KapKJW8j3mWinNx1SRSgkciKARYiqi1ycvFZSggHgFDofz6L71m3v/9xk9eq695ty91t67u8eimu6z91zzMcaYY/znGGPOudLEExQICgQFggJBgaBAUGDJKbBC/26+98jGkvczuhcUCAoEBYICQYGgwB6lwJUXnroSgGWPMj+GHRQICgQFggJBgZ1CgS2A5YoLTtkpfY9+BgWCAkGBoEBQICiwyylwy33PpREGYNnljI7hBQWCAkGBoEBQYCdTIADLTuZe9D0oEBQICgQFggJ7hAIBWPYIo2OYQYGgQFAgKBAU2MkUCMCyk7kXfQ8KBAWCAkGBoMAeoUAAlj3C6BhmUCAoEBQICgQFdjIFArDsZO5F34MCQYGgQFAgKLBHKBCAZY8wOoYZFAgKBAWCAkGBnUyBACw7mXvR96BAUCAoEBQICuwRCgRg2SOMjmEGBYICQYGgQFBgJ1MgAMtO5l70PSgQFAgKBAWCAnuEAgFY9gijY5hBgaBAUCAoEBTYyRQIwLKTuRd9DwoEBYICQYGgwB6hQACWPcLoGGZQICgQFAgKBAV2MgUCsOxk7kXfgwJBgaBAUCAosEcoEIBljzA6hhkUCAoEBYICQYGdTIEALDuZe9H3oEBQICgQFAgK7BEKBGDZI4yOYQYFggJBgaBAUGAnUyA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xixvJA/rl5V5qX9oZjwJY8qlWAEtEMwEWJqvAh4CHJq8HL3o8XnXE/0ehyFdKfQiE2267LayyUq9uAhb1TRNXbfJAJrWdKeW6CViq+lDVpuEAWMAQV15xhZ177tn27e98x16byyF0fUBiNhaCvo3IQUksMXWqHfutb9huu32gPwHcaA6sm79l56UXX7a777orrLjGTxhnv/7VGbbFVlva6EVG2+tz2J3TFwvCh/iYESPGBBdReHzWXFtkLOf99OlsgNTzzzxvvzj3ZPvhKT+y+/5yv7340qthN82c2XNtypQlgmVz3333s8023sQmLDJ6vqWC+vtTwPThIawrI4m7mWcjidEJATEAlTEhcV24yBsT0MbscAbSAw89YHt9aC+774H77JBDDw2ZgjdYfwObM3den0to1CgbiYUIT1Kf4aTPUjTidZsza7aNCX6qPuCFKWXeq6/ZSE6dDtmC2SreF4ATvHHBtTQ/cGb+VmwF6DRZWIhh8S4hv02WMcPyx0o+9eoWYPHvZ14Qk0dekbqLBZqP/ZgyZYrdcccdwWKUeg01YEGO01dZvflbC0pZl3MColP7rXIFsORSzKwAlgqaEXDLqsgrvthtkkrqqq1mPLvSSiv1r2BS6+o2YEltRyfKdRuwpLSx5wHL/Lwol112qZ155pn23f/9no0ZOzakrw8wJYCJ123U6FE2b+48W3yxxe3444+xf/rHXWxsiGWZf7AzlobZs23mK6/ajHvvs03evolNHD/Rfnveb22rrbYMW4+DFXN4rTMAACAASURBVGqRMcGFQsI3EA8Wjr4wWdwrCPYxfUBontkzTz9rl156mf3Xf33K/vbc88GSM/ktb7GJEybZE089Hd6FW2qddabZGWf8ypYKro++bcGLLDLGZs0iXgaghWtrtM187dWgvIlF6XvfPBs1t89yFLqLJYQAyZFgmNfswYcetD332sse+uv9dsghX7OtttzK1pu23vw525fuf97IEfbqrFk2iXqJlyH/zJxZ4cykMLfDP9xf7Djq6zvXmDEjbebM2TZuHGCvT6nR6b44tL48LKOw/pjZtddea8suu2z/2WM+WPXFF18Mhx/GpzV73sxdEAwWYFlllVVq5VPV7iCse7kW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+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/vDHP9riUxcPcSwrLLO8vfDC32zGXXfZx/b+t5Cw8dvHn2Brr72O3XvfvfbZfT9jq6y+in1or73sA8ThjFvEDjn8SDvzF7+2xSZOtgM//2V7/7+83/508y32fz/8vp38s1Ns1PhF7Mprr7ZVlls+ZLcdM2qMjRnLoZEcc9C3zbtvbxCRyH1gZX4aluISKjEsbUvDAljySVcASwEs+VzTgScKYGkGLH0JZV+3q6+6yn7323PtW0cfbWuvsaZt+45t+/JdjCThGnlMRtioMWNssSmL2ft2+4Cdecav7bhvHWcv/O1vtsvOO9uJP/iB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C9SJgwlJv21oyI2AEjIARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SJgwlJv21oyI2AEjIARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SJgwlJv21oyI2AEjIARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SJgwlJv21oyI2AEjIARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SJgwlJv21oyI2AEjIARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SLQSFjqFdmSGQEjYASMgBEwAqsVge1b1x12GCr/8p6D/12tQrjeRsAIGAEjYASMQN0ITAhL3WJaOiNgBIyAETACRmC1I/C/+Ryxj68oilIAAAAASUVORK5CYII="},32637:function(Qn,pi,Dt){"use strict";Qn.exports=Dt.p+"static/AssistantCode3.a8740efb.jpeg"},93314:function(Qn){"use strict";Qn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmww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uB848lRxbQUq9Plo0ts3hxp7+HY3ti33ANi19fbUvsor0GFoRZHOvk1Y6FIC7q5dSPzcw4Gv8iZ4mnNtBQp0l9BlcHzFAAeu0h8B48V+JdQjQri2D57a/VyBBkMNanSOw1WNCt0bSUh82FZXHgD3cwM81VxbAT10yNWlQm+6vceupKuTQTJ7J7ZYGZE9AHZtHzy1XViBSn0B1Hpnr5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},69889:function(Qn,pi,Dt){"use strict";Dt.d(pi,{Z:function(){return ee}});var yt=Dt(42913);function ee(ie,we){var Ee=typeof Symbol!="undefined"&&ie[Symbol.iterator]||ie["@@iterator"];if(!Ee){if(Array.isArray(ie)||(Ee=(0,yt.Z)(ie))||we&&ie&&typeof ie.length=="number"){Ee&&(ie=Ee);var jt=0,ce=function(){};return{s:ce,n:function(){return jt>=ie.length?{done:!0}:{done:!1,value:ie[jt++]}},e:function(Kt){throw Kt},f:ce}}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 Ve,xe=!0,Lt=!1;return{s:function(){Ee=Ee.call(ie)},n:function(){var Kt=Ee.next();return xe=Kt.done,Kt},e:function(Kt){Lt=!0,Ve=Kt},f:function(){try{xe||Ee.return==null||Ee.return()}finally{if(Lt)throw Ve}}}}},16722:function(Qn,pi,Dt){"use strict";Dt.d(pi,{Z:function(){return Ve}});const yt=xe=>typeof xe=="object"&&xe!=null&&xe.nodeType===1,ee=(xe,Lt)=>(!Lt||xe!=="hidden")&&xe!=="visible"&&xe!=="clip",ie=(xe,Lt)=>{if(xe.clientHeight<xe.scrollHeight||xe.clientWidth<xe.scrollWidth){const ze=getComputedStyle(xe,null);return ee(ze.overflowY,Lt)||ee(ze.overflowX,Lt)||(Kt=>{const Je=(Bt=>{if(!Bt.ownerDocument||!Bt.ownerDocument.defaultView)return null;try{return Bt.ownerDocument.defaultView.frameElement}catch(nt){return null}})(Kt);return!!Je&&(Je.clientHeight<Kt.scrollHeight||Je.clientWidth<Kt.scrollWidth)})(xe)}return!1},we=(xe,Lt,ze,Kt,Je,Bt,nt,et)=>Bt<xe&&nt>Lt||Bt>xe&&nt<Lt?0:Bt<=xe&&et<=ze||nt>=Lt&&et>=ze?Bt-xe-Kt:nt>Lt&&et<ze||Bt<xe&&et>ze?nt-Lt+Je:0,Ee=xe=>{const Lt=xe.parentElement;return Lt==null?xe.getRootNode().host||null:Lt},jt=(xe,Lt)=>{var ze,Kt,Je,Bt;if(typeof document=="undefined")return[];const{scrollMode:nt,block:et,inline:dt,boundary:lt,skipOverflowHiddenElements:gt}=Lt,mt=typeof lt=="function"?lt:In=>In!==lt;if(!yt(xe))throw new TypeError("Invalid target");const St=document.scrollingElement||document.documentElement,Mt=[];let It=xe;for(;yt(It)&&mt(It);){if(It=Ee(It),It===St){Mt.push(It);break}It!=null&&It===document.body&&ie(It)&&!ie(document.documentElement)||It!=null&&ie(It,gt)&&Mt.push(It)}const Zt=(Kt=(ze=window.visualViewport)==null?void 0:ze.width)!=null?Kt:innerWidth,oe=(Bt=(Je=window.visualViewport)==null?void 0:Je.height)!=null?Bt:innerHeight,{scrollX:Gt,scrollY:_t}=window,{height:ge,width:me,top:Pe,right:ye,bottom:He,left:wn}=xe.getBoundingClientRect(),{top:ln,right:Oe,bottom:Sn,left:se}=(In=>{const on=window.getComputedStyle(In);return{top:parseFloat(on.scrollMarginTop)||0,right:parseFloat(on.scrollMarginRight)||0,bottom:parseFloat(on.scrollMarginBottom)||0,left:parseFloat(on.scrollMarginLeft)||0}})(xe);let Yt=et==="start"||et==="nearest"?Pe-ln:et==="end"?He+Sn:Pe+ge/2-ln+Sn,fn=dt==="center"?wn+me/2-se+Oe:dt==="end"?ye+Oe:wn-se;const _n=[];for(let In=0;In<Mt.length;In++){const on=Mt[In],{height:jn,width:Pn,top:di,right:Re,bottom:ve,left:Ye}=on.getBoundingClientRect();if(nt==="if-needed"&&Pe>=0&&wn>=0&&He<=oe&&ye<=Zt&&(on===St&&!ie(on)||Pe>=di&&He<=ve&&wn>=Ye&&ye<=Re))return _n;const mi=getComputedStyle(on),Cn=parseInt(mi.borderLeftWidth,10),Ot=parseInt(mi.borderTopWidth,10),At=parseInt(mi.borderRightWidth,10),wt=parseInt(mi.borderBottomWidth,10);let Nt=0,Vt=0;const kt="offsetWidth"in on?on.offsetWidth-on.clientWidth-Cn-At:0,$t="offsetHeight"in on?on.offsetHeight-on.clientHeight-Ot-wt:0,nn="offsetWidth"in on?on.offsetWidth===0?0:Pn/on.offsetWidth:0,dn="offsetHeight"in on?on.offsetHeight===0?0:jn/on.offsetHeight:0;if(St===on)Nt=et==="start"?Yt:et==="end"?Yt-oe:et==="nearest"?we(_t,_t+oe,oe,Ot,wt,_t+Yt,_t+Yt+ge,ge):Yt-oe/2,Vt=dt==="start"?fn:dt==="center"?fn-Zt/2:dt==="end"?fn-Zt:we(Gt,Gt+Zt,Zt,Cn,At,Gt+fn,Gt+fn+me,me),Nt=Math.max(0,Nt+_t),Vt=Math.max(0,Vt+Gt);else{Nt=et==="start"?Yt-di-Ot:et==="end"?Yt-ve+wt+$t:et==="nearest"?we(di,ve,jn,Ot,wt+$t,Yt,Yt+ge,ge):Yt-(di+jn/2)+$t/2,Vt=dt==="start"?fn-Ye-Cn:dt==="center"?fn-(Ye+Pn/2)+kt/2:dt==="end"?fn-Re+At+kt:we(Ye,Re,Pn,Cn,At+kt,fn,fn+me,me);const{scrollLeft:En,scrollTop:De}=on;Nt=dn===0?0:Math.max(0,Math.min(De+Nt/dn,on.scrollHeight-jn/dn+$t)),Vt=nn===0?0:Math.max(0,Math.min(En+Vt/nn,on.scrollWidth-Pn/nn+kt)),Yt+=De-Nt,fn+=En-Vt}_n.push({el:on,top:Nt,left:Vt})}return _n},ce=xe=>xe===!1?{block:"end",inline:"nearest"}:(Lt=>Lt===Object(Lt)&&Object.keys(Lt).length!==0)(xe)?xe:{block:"start",inline:"nearest"};function Ve(xe,Lt){if(!xe.isConnected||!(Je=>{let Bt=Je;for(;Bt&&Bt.parentNode;){if(Bt.parentNode===document)return!0;Bt=Bt.parentNode instanceof ShadowRoot?Bt.parentNode.host:Bt.parentNode}return!1})(xe))return;const ze=(Je=>{const Bt=window.getComputedStyle(Je);return{top:parseFloat(Bt.scrollMarginTop)||0,right:parseFloat(Bt.scrollMarginRight)||0,bottom:parseFloat(Bt.scrollMarginBottom)||0,left:parseFloat(Bt.scrollMarginLeft)||0}})(xe);if((Je=>typeof Je=="object"&&typeof Je.behavior=="function")(Lt))return Lt.behavior(jt(xe,Lt));const Kt=typeof Lt=="boolean"||Lt==null?void 0:Lt.behavior;for(const{el:Je,top:Bt,left:nt}of jt(xe,ce(Lt))){const et=Bt-ze.top+ze.bottom,dt=nt-ze.left+ze.right;Je.scroll({top:et,left:dt,behavior:Kt})}}}}]);
|
|
}()); |